@srouterhq/server 0.0.0-stage → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/client/dist/assets/am-TQ7Jmdqe.js +1 -0
- package/client/dist/assets/ar-Bf5a7yfC.js +1 -0
- package/client/dist/assets/az-CrosE1xH.js +1 -0
- package/client/dist/assets/bg-BvWnmcUz.js +1 -0
- package/client/dist/assets/bn-ams5TsJp.js +1 -0
- package/client/dist/assets/cs-Dh67CaJ_.js +1 -0
- package/client/dist/assets/da-9WlT8Iq7.js +1 -0
- package/client/dist/assets/de-lWhJJzz7.js +1 -0
- package/client/dist/assets/el-Cu7_GhNq.js +1 -0
- package/client/dist/assets/es-BZuzsBcP.js +1 -0
- package/client/dist/assets/fa-Dwdn-jKS.js +1 -0
- package/client/dist/assets/fi-BFrFyOTy.js +1 -0
- package/client/dist/assets/fr-XhbtmPpj.js +1 -0
- package/client/dist/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/client/dist/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/client/dist/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/client/dist/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/client/dist/assets/geist-mono-cyrillic-ext-wght-normal-I4S5GZfc.woff2 +0 -0
- package/client/dist/assets/geist-mono-cyrillic-wght-normal-BmXc_FBt.woff2 +0 -0
- package/client/dist/assets/geist-mono-latin-ext-wght-normal-DrnZ1wKl.woff2 +0 -0
- package/client/dist/assets/geist-mono-latin-wght-normal-B_7UjwxQ.woff2 +0 -0
- package/client/dist/assets/geist-mono-symbols2-wght-normal-GZpp1pK2.woff2 +0 -0
- package/client/dist/assets/geist-mono-vietnamese-wght-normal-D8KDMBhC.woff2 +0 -0
- package/client/dist/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/client/dist/assets/gu-D0uhLUB8.js +1 -0
- package/client/dist/assets/ha-CVlm9pqp.js +1 -0
- package/client/dist/assets/he-CMIFeoWr.js +1 -0
- package/client/dist/assets/hi-ENTwhBpn.js +1 -0
- package/client/dist/assets/hr-fc03vMy_.js +1 -0
- package/client/dist/assets/hu-YBo2BIYt.js +1 -0
- package/client/dist/assets/id-BEWXYX69.js +1 -0
- package/client/dist/assets/ig-BKLZFKka.js +1 -0
- package/client/dist/assets/index-D9I4KtvR.js +145 -0
- package/client/dist/assets/index-txhEmCdb.css +2 -0
- package/client/dist/assets/it-Bzmei1Y2.js +1 -0
- package/client/dist/assets/ja-BfcpuqEl.js +1 -0
- package/client/dist/assets/ka-CnWjRgLo.js +1 -0
- package/client/dist/assets/km-BAjPR3Qj.js +1 -0
- package/client/dist/assets/kn-B15WKU5m.js +1 -0
- package/client/dist/assets/ko-C61fAB-w.js +1 -0
- package/client/dist/assets/lt-CYTr4_YW.js +1 -0
- package/client/dist/assets/ml-CtqxgyH3.js +1 -0
- package/client/dist/assets/mr-X5TMY7aR.js +1 -0
- package/client/dist/assets/ms-DSg8RqPS.js +1 -0
- package/client/dist/assets/my-D7RqR8uE.js +1 -0
- package/client/dist/assets/ne-DaflxkDj.js +1 -0
- package/client/dist/assets/nl-BOqqtsC8.js +1 -0
- package/client/dist/assets/no-BSHp_StB.js +1 -0
- package/client/dist/assets/or-BkLR9Vub.js +1 -0
- package/client/dist/assets/pa-CarJ2XgI.js +1 -0
- package/client/dist/assets/pl-C2n0V-0k.js +1 -0
- package/client/dist/assets/pt-BR-CqJdNhg2.js +1 -0
- package/client/dist/assets/pt-PT-C_HpMyKz.js +1 -0
- package/client/dist/assets/ro-DVRZqSAS.js +1 -0
- package/client/dist/assets/ru-DwAJG7VC.js +1 -0
- package/client/dist/assets/si-BxUezXm0.js +1 -0
- package/client/dist/assets/sk-eI1VcIfY.js +1 -0
- package/client/dist/assets/sr-CJF3auCr.js +1 -0
- package/client/dist/assets/srouter-logo-C6ZfjGIi.svg +14 -0
- package/client/dist/assets/sv-nqvwHAq_.js +1 -0
- package/client/dist/assets/sw-DWynE2pW.js +1 -0
- package/client/dist/assets/ta-BVM12knC.js +1 -0
- package/client/dist/assets/te-oyzEkF7_.js +1 -0
- package/client/dist/assets/th-COVeE0ZQ.js +1 -0
- package/client/dist/assets/tl-DsJANnQz.js +1 -0
- package/client/dist/assets/tr-B-Fl-urO.js +1 -0
- package/client/dist/assets/uk-C5qketAO.js +1 -0
- package/client/dist/assets/ur-QU9KugfV.js +1 -0
- package/client/dist/assets/uz-DL9cG_mY.js +1 -0
- package/client/dist/assets/vi-CQiVy3Pu.js +1 -0
- package/client/dist/assets/yo-DqazMdrZ.js +1 -0
- package/client/dist/assets/zh-CN-DnYL_Kio.js +1 -0
- package/client/dist/assets/zh-TW-5bdbosKj.js +1 -0
- package/client/dist/favicon.svg +14 -0
- package/client/dist/icons.svg +24 -0
- package/client/dist/index.html +37 -0
- package/dist/app.d.ts +4 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +372 -0
- package/dist/app.js.map +1 -0
- package/dist/db/index.d.ts +49 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +203 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/migrate/TEMPLATE.d.ts +4 -0
- package/dist/db/migrate/TEMPLATE.d.ts.map +1 -0
- package/dist/db/migrate/TEMPLATE.js +18 -0
- package/dist/db/migrate/TEMPLATE.js.map +1 -0
- package/dist/db/migrate/cli.d.ts +2 -0
- package/dist/db/migrate/cli.d.ts.map +1 -0
- package/dist/db/migrate/cli.js +177 -0
- package/dist/db/migrate/cli.js.map +1 -0
- package/dist/db/migrate/defaults.d.ts +52 -0
- package/dist/db/migrate/defaults.d.ts.map +1 -0
- package/dist/db/migrate/defaults.js +126 -0
- package/dist/db/migrate/defaults.js.map +1 -0
- package/dist/db/migrate/runner.d.ts +16 -0
- package/dist/db/migrate/runner.d.ts.map +1 -0
- package/dist/db/migrate/runner.js +178 -0
- package/dist/db/migrate/runner.js.map +1 -0
- package/dist/db/migrations/20260101_000000_legacy_baseline.d.ts +4 -0
- package/dist/db/migrations/20260101_000000_legacy_baseline.d.ts.map +1 -0
- package/dist/db/migrations/20260101_000000_legacy_baseline.js +2240 -0
- package/dist/db/migrations/20260101_000000_legacy_baseline.js.map +1 -0
- package/dist/db/migrations/20260627_000001_custom_provider_modalities.d.ts +4 -0
- package/dist/db/migrations/20260627_000001_custom_provider_modalities.d.ts.map +1 -0
- package/dist/db/migrations/20260627_000001_custom_provider_modalities.js +27 -0
- package/dist/db/migrations/20260627_000001_custom_provider_modalities.js.map +1 -0
- package/dist/db/migrations/20260627_000002_catalog_model_state.d.ts +4 -0
- package/dist/db/migrations/20260627_000002_catalog_model_state.d.ts.map +1 -0
- package/dist/db/migrations/20260627_000002_catalog_model_state.js +30 -0
- package/dist/db/migrations/20260627_000002_catalog_model_state.js.map +1 -0
- package/dist/db/migrations/20260628_120000_request_aggregates.d.ts +6 -0
- package/dist/db/migrations/20260628_120000_request_aggregates.d.ts.map +1 -0
- package/dist/db/migrations/20260628_120000_request_aggregates.js +104 -0
- package/dist/db/migrations/20260628_120000_request_aggregates.js.map +1 -0
- package/dist/db/migrations/20260630_000001_github_gpt41_context.d.ts +9 -0
- package/dist/db/migrations/20260630_000001_github_gpt41_context.d.ts.map +1 -0
- package/dist/db/migrations/20260630_000001_github_gpt41_context.js +22 -0
- package/dist/db/migrations/20260630_000001_github_gpt41_context.js.map +1 -0
- package/dist/db/migrations/20260706_000001_request_client_info.d.ts +4 -0
- package/dist/db/migrations/20260706_000001_request_client_info.d.ts.map +1 -0
- package/dist/db/migrations/20260706_000001_request_client_info.js +30 -0
- package/dist/db/migrations/20260706_000001_request_client_info.js.map +1 -0
- package/dist/db/migrations/20260706_000002_custom_model_tool_support.d.ts +17 -0
- package/dist/db/migrations/20260706_000002_custom_model_tool_support.d.ts.map +1 -0
- package/dist/db/migrations/20260706_000002_custom_model_tool_support.js +20 -0
- package/dist/db/migrations/20260706_000002_custom_model_tool_support.js.map +1 -0
- package/dist/db/migrations/20260714_000001_profile_chain_backfill.d.ts +12 -0
- package/dist/db/migrations/20260714_000001_profile_chain_backfill.d.ts.map +1 -0
- package/dist/db/migrations/20260714_000001_profile_chain_backfill.js +45 -0
- package/dist/db/migrations/20260714_000001_profile_chain_backfill.js.map +1 -0
- package/dist/db/migrations/20260720_000001_key_health_error.d.ts +5 -0
- package/dist/db/migrations/20260720_000001_key_health_error.d.ts.map +1 -0
- package/dist/db/migrations/20260720_000001_key_health_error.js +16 -0
- package/dist/db/migrations/20260720_000001_key_health_error.js.map +1 -0
- package/dist/db/migrations/20260726_000001_cooldown_probe_provenance.d.ts +4 -0
- package/dist/db/migrations/20260726_000001_cooldown_probe_provenance.d.ts.map +1 -0
- package/dist/db/migrations/20260726_000001_cooldown_probe_provenance.js +38 -0
- package/dist/db/migrations/20260726_000001_cooldown_probe_provenance.js.map +1 -0
- package/dist/db/migrations/20260726_000002_request_attempts.d.ts +4 -0
- package/dist/db/migrations/20260726_000002_request_attempts.d.ts.map +1 -0
- package/dist/db/migrations/20260726_000002_request_attempts.js +43 -0
- package/dist/db/migrations/20260726_000002_request_attempts.js.map +1 -0
- package/dist/db/migrations/20260726_000003_model_source_provenance.d.ts +4 -0
- package/dist/db/migrations/20260726_000003_model_source_provenance.d.ts.map +1 -0
- package/dist/db/migrations/20260726_000003_model_source_provenance.js +80 -0
- package/dist/db/migrations/20260726_000003_model_source_provenance.js.map +1 -0
- package/dist/db/migrations/20260726_000004_media_model_meta.d.ts +4 -0
- package/dist/db/migrations/20260726_000004_media_model_meta.d.ts.map +1 -0
- package/dist/db/migrations/20260726_000004_media_model_meta.js +34 -0
- package/dist/db/migrations/20260726_000004_media_model_meta.js.map +1 -0
- package/dist/db/migrations/20260726_000005_request_served_model.d.ts +4 -0
- package/dist/db/migrations/20260726_000005_request_served_model.d.ts.map +1 -0
- package/dist/db/migrations/20260726_000005_request_served_model.js +31 -0
- package/dist/db/migrations/20260726_000005_request_served_model.js.map +1 -0
- package/dist/db/migrations/20260726_000006_attempt_error_summary.d.ts +4 -0
- package/dist/db/migrations/20260726_000006_attempt_error_summary.d.ts.map +1 -0
- package/dist/db/migrations/20260726_000006_attempt_error_summary.js +29 -0
- package/dist/db/migrations/20260726_000006_attempt_error_summary.js.map +1 -0
- package/dist/db/migrations/20260727_000001_agent_compatibility.d.ts +4 -0
- package/dist/db/migrations/20260727_000001_agent_compatibility.d.ts.map +1 -0
- package/dist/db/migrations/20260727_000001_agent_compatibility.js +41 -0
- package/dist/db/migrations/20260727_000001_agent_compatibility.js.map +1 -0
- package/dist/db/migrations/20260728_000001_tombstone_provenance.d.ts +12 -0
- package/dist/db/migrations/20260728_000001_tombstone_provenance.d.ts.map +1 -0
- package/dist/db/migrations/20260728_000001_tombstone_provenance.js +37 -0
- package/dist/db/migrations/20260728_000001_tombstone_provenance.js.map +1 -0
- package/dist/db/migrations/20260729_000001_custom_model_endpoint_identity.d.ts +4 -0
- package/dist/db/migrations/20260729_000001_custom_model_endpoint_identity.d.ts.map +1 -0
- package/dist/db/migrations/20260729_000001_custom_model_endpoint_identity.js +145 -0
- package/dist/db/migrations/20260729_000001_custom_model_endpoint_identity.js.map +1 -0
- package/dist/db/migrations/20260802_000001_custom_endpoint_host_labels.d.ts +6 -0
- package/dist/db/migrations/20260802_000001_custom_endpoint_host_labels.d.ts.map +1 -0
- package/dist/db/migrations/20260802_000001_custom_endpoint_host_labels.js +52 -0
- package/dist/db/migrations/20260802_000001_custom_endpoint_host_labels.js.map +1 -0
- package/dist/db/migrations/20260805_000001_key_model_scope.d.ts +6 -0
- package/dist/db/migrations/20260805_000001_key_model_scope.d.ts.map +1 -0
- package/dist/db/migrations/20260805_000001_key_model_scope.js +17 -0
- package/dist/db/migrations/20260805_000001_key_model_scope.js.map +1 -0
- package/dist/db/migrations/20260805_000002_client_profiles.d.ts +4 -0
- package/dist/db/migrations/20260805_000002_client_profiles.d.ts.map +1 -0
- package/dist/db/migrations/20260805_000002_client_profiles.js +33 -0
- package/dist/db/migrations/20260805_000002_client_profiles.js.map +1 -0
- package/dist/db/migrations/20260810_000001_api_key_proxy.d.ts +4 -0
- package/dist/db/migrations/20260810_000001_api_key_proxy.d.ts.map +1 -0
- package/dist/db/migrations/20260810_000001_api_key_proxy.js +33 -0
- package/dist/db/migrations/20260810_000001_api_key_proxy.js.map +1 -0
- package/dist/db/migrations/20260819_000001_custom_model_tombstones.d.ts +4 -0
- package/dist/db/migrations/20260819_000001_custom_model_tombstones.d.ts.map +1 -0
- package/dist/db/migrations/20260819_000001_custom_model_tombstones.js +19 -0
- package/dist/db/migrations/20260819_000001_custom_model_tombstones.js.map +1 -0
- package/dist/db/migrations/20260820_000001_playground_conversations.d.ts +4 -0
- package/dist/db/migrations/20260820_000001_playground_conversations.d.ts.map +1 -0
- package/dist/db/migrations/20260820_000001_playground_conversations.js +47 -0
- package/dist/db/migrations/20260820_000001_playground_conversations.js.map +1 -0
- package/dist/db/migrations/20260823_000001_server_logs.d.ts +4 -0
- package/dist/db/migrations/20260823_000001_server_logs.d.ts.map +1 -0
- package/dist/db/migrations/20260823_000001_server_logs.js +53 -0
- package/dist/db/migrations/20260823_000001_server_logs.js.map +1 -0
- package/dist/db/migrations/20260823_000002_backups_table.d.ts +8 -0
- package/dist/db/migrations/20260823_000002_backups_table.d.ts.map +1 -0
- package/dist/db/migrations/20260823_000002_backups_table.js +22 -0
- package/dist/db/migrations/20260823_000002_backups_table.js.map +1 -0
- package/dist/db/migrations/20260823_000003_attempt_key_label.d.ts +19 -0
- package/dist/db/migrations/20260823_000003_attempt_key_label.d.ts.map +1 -0
- package/dist/db/migrations/20260823_000003_attempt_key_label.js +28 -0
- package/dist/db/migrations/20260823_000003_attempt_key_label.js.map +1 -0
- package/dist/db/migrations/20260823_000004_profile_auto_include.d.ts +14 -0
- package/dist/db/migrations/20260823_000004_profile_auto_include.d.ts.map +1 -0
- package/dist/db/migrations/20260823_000004_profile_auto_include.js +25 -0
- package/dist/db/migrations/20260823_000004_profile_auto_include.js.map +1 -0
- package/dist/db/migrations/20260901_000001_idempotency_claims.d.ts +4 -0
- package/dist/db/migrations/20260901_000001_idempotency_claims.d.ts.map +1 -0
- package/dist/db/migrations/20260901_000001_idempotency_claims.js +46 -0
- package/dist/db/migrations/20260901_000001_idempotency_claims.js.map +1 -0
- package/dist/db/migrations/20260901_000002_quota_observation_lookup.d.ts +4 -0
- package/dist/db/migrations/20260901_000002_quota_observation_lookup.d.ts.map +1 -0
- package/dist/db/migrations/20260901_000002_quota_observation_lookup.js +37 -0
- package/dist/db/migrations/20260901_000002_quota_observation_lookup.js.map +1 -0
- package/dist/db/migrations/20260901_000003_request_caller.d.ts +4 -0
- package/dist/db/migrations/20260901_000003_request_caller.d.ts.map +1 -0
- package/dist/db/migrations/20260901_000003_request_caller.js +27 -0
- package/dist/db/migrations/20260901_000003_request_caller.js.map +1 -0
- package/dist/db/migrations/20260902_000001_analytics_latency_percentile_index.d.ts +4 -0
- package/dist/db/migrations/20260902_000001_analytics_latency_percentile_index.d.ts.map +1 -0
- package/dist/db/migrations/20260902_000001_analytics_latency_percentile_index.js +35 -0
- package/dist/db/migrations/20260902_000001_analytics_latency_percentile_index.js.map +1 -0
- package/dist/db/migrations/20260903_000001_mcp_enabled_default.d.ts +4 -0
- package/dist/db/migrations/20260903_000001_mcp_enabled_default.d.ts.map +1 -0
- package/dist/db/migrations/20260903_000001_mcp_enabled_default.js +37 -0
- package/dist/db/migrations/20260903_000001_mcp_enabled_default.js.map +1 -0
- package/dist/db/migrations/20260903_000002_response_cache.d.ts +4 -0
- package/dist/db/migrations/20260903_000002_response_cache.d.ts.map +1 -0
- package/dist/db/migrations/20260903_000002_response_cache.js +53 -0
- package/dist/db/migrations/20260903_000002_response_cache.js.map +1 -0
- package/dist/db/migrations/20260904_000001_key_monthly_budget.d.ts +13 -0
- package/dist/db/migrations/20260904_000001_key_monthly_budget.d.ts.map +1 -0
- package/dist/db/migrations/20260904_000001_key_monthly_budget.js +35 -0
- package/dist/db/migrations/20260904_000001_key_monthly_budget.js.map +1 -0
- package/dist/db/migrations/20260913_000001_request_model_attribution.d.ts +4 -0
- package/dist/db/migrations/20260913_000001_request_model_attribution.d.ts.map +1 -0
- package/dist/db/migrations/20260913_000001_request_model_attribution.js +68 -0
- package/dist/db/migrations/20260913_000001_request_model_attribution.js.map +1 -0
- package/dist/db/migrations/20260914_000001_key_monthly_usage.d.ts +5 -0
- package/dist/db/migrations/20260914_000001_key_monthly_usage.d.ts.map +1 -0
- package/dist/db/migrations/20260914_000001_key_monthly_usage.js +37 -0
- package/dist/db/migrations/20260914_000001_key_monthly_usage.js.map +1 -0
- package/dist/db/migrations/20260915_000001_quota_snapshot_freshness.d.ts +4 -0
- package/dist/db/migrations/20260915_000001_quota_snapshot_freshness.d.ts.map +1 -0
- package/dist/db/migrations/20260915_000001_quota_snapshot_freshness.js +28 -0
- package/dist/db/migrations/20260915_000001_quota_snapshot_freshness.js.map +1 -0
- package/dist/db/migrations/20261004_000001_unified_key_sr_prefix.d.ts +4 -0
- package/dist/db/migrations/20261004_000001_unified_key_sr_prefix.d.ts.map +1 -0
- package/dist/db/migrations/20261004_000001_unified_key_sr_prefix.js +25 -0
- package/dist/db/migrations/20261004_000001_unified_key_sr_prefix.js.map +1 -0
- package/dist/db/migrations/20261005_000001_key_budget_period.d.ts +10 -0
- package/dist/db/migrations/20261005_000001_key_budget_period.d.ts.map +1 -0
- package/dist/db/migrations/20261005_000001_key_budget_period.js +78 -0
- package/dist/db/migrations/20261005_000001_key_budget_period.js.map +1 -0
- package/dist/db/migrations/20261005_000002_key_budget_period_auto.d.ts +21 -0
- package/dist/db/migrations/20261005_000002_key_budget_period_auto.d.ts.map +1 -0
- package/dist/db/migrations/20261005_000002_key_budget_period_auto.js +41 -0
- package/dist/db/migrations/20261005_000002_key_budget_period_auto.js.map +1 -0
- package/dist/db/model-pricing.d.ts +39 -0
- package/dist/db/model-pricing.d.ts.map +1 -0
- package/dist/db/model-pricing.js +274 -0
- package/dist/db/model-pricing.js.map +1 -0
- package/dist/db/node-sqlite.d.ts +9 -0
- package/dist/db/node-sqlite.d.ts.map +1 -0
- package/dist/db/node-sqlite.js +87 -0
- package/dist/db/node-sqlite.js.map +1 -0
- package/dist/db/types.d.ts +22 -0
- package/dist/db/types.d.ts.map +1 -0
- package/dist/db/types.js +2 -0
- package/dist/db/types.js.map +1 -0
- package/dist/docs/docs-page.d.ts +2 -0
- package/dist/docs/docs-page.d.ts.map +1 -0
- package/dist/docs/docs-page.js +319 -0
- package/dist/docs/docs-page.js.map +1 -0
- package/dist/docs/openapi.d.ts +1896 -0
- package/dist/docs/openapi.d.ts.map +1 -0
- package/dist/docs/openapi.js +1096 -0
- package/dist/docs/openapi.js.map +1 -0
- package/dist/env.d.ts +2 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/env.js +9 -0
- package/dist/env.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +144 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/anthropic-documents.d.ts +41 -0
- package/dist/lib/anthropic-documents.d.ts.map +1 -0
- package/dist/lib/anthropic-documents.js +132 -0
- package/dist/lib/anthropic-documents.js.map +1 -0
- package/dist/lib/app-version.d.ts +5 -0
- package/dist/lib/app-version.d.ts.map +1 -0
- package/dist/lib/app-version.js +61 -0
- package/dist/lib/app-version.js.map +1 -0
- package/dist/lib/attempt-trace.d.ts +23 -0
- package/dist/lib/attempt-trace.d.ts.map +1 -0
- package/dist/lib/attempt-trace.js +32 -0
- package/dist/lib/attempt-trace.js.map +1 -0
- package/dist/lib/budget.d.ts +6 -0
- package/dist/lib/budget.d.ts.map +1 -0
- package/dist/lib/budget.js +40 -0
- package/dist/lib/budget.js.map +1 -0
- package/dist/lib/client-classifier.d.ts +10 -0
- package/dist/lib/client-classifier.d.ts.map +1 -0
- package/dist/lib/client-classifier.js +126 -0
- package/dist/lib/client-classifier.js.map +1 -0
- package/dist/lib/client-context.d.ts +10 -0
- package/dist/lib/client-context.d.ts.map +1 -0
- package/dist/lib/client-context.js +39 -0
- package/dist/lib/client-context.js.map +1 -0
- package/dist/lib/config.d.ts +33 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +94 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/content.d.ts +33 -0
- package/dist/lib/content.d.ts.map +1 -0
- package/dist/lib/content.js +201 -0
- package/dist/lib/content.js.map +1 -0
- package/dist/lib/credential.d.ts +11 -0
- package/dist/lib/credential.d.ts.map +1 -0
- package/dist/lib/credential.js +18 -0
- package/dist/lib/credential.js.map +1 -0
- package/dist/lib/crypto.d.ts +31 -0
- package/dist/lib/crypto.d.ts.map +1 -0
- package/dist/lib/crypto.js +206 -0
- package/dist/lib/crypto.js.map +1 -0
- package/dist/lib/custom-provider-cleanup.d.ts +13 -0
- package/dist/lib/custom-provider-cleanup.d.ts.map +1 -0
- package/dist/lib/custom-provider-cleanup.js +43 -0
- package/dist/lib/custom-provider-cleanup.js.map +1 -0
- package/dist/lib/db-backup.d.ts +31 -0
- package/dist/lib/db-backup.d.ts.map +1 -0
- package/dist/lib/db-backup.js +255 -0
- package/dist/lib/db-backup.js.map +1 -0
- package/dist/lib/endpoint-scope.d.ts +42 -0
- package/dist/lib/endpoint-scope.d.ts.map +1 -0
- package/dist/lib/endpoint-scope.js +95 -0
- package/dist/lib/endpoint-scope.js.map +1 -0
- package/dist/lib/env-drift.d.ts +17 -0
- package/dist/lib/env-drift.d.ts.map +1 -0
- package/dist/lib/env-drift.js +108 -0
- package/dist/lib/env-drift.js.map +1 -0
- package/dist/lib/error-classify.d.ts +40 -0
- package/dist/lib/error-classify.d.ts.map +1 -0
- package/dist/lib/error-classify.js +687 -0
- package/dist/lib/error-classify.js.map +1 -0
- package/dist/lib/error-redaction.d.ts +8 -0
- package/dist/lib/error-redaction.d.ts.map +1 -0
- package/dist/lib/error-redaction.js +45 -0
- package/dist/lib/error-redaction.js.map +1 -0
- package/dist/lib/fallback-loop.d.ts +306 -0
- package/dist/lib/fallback-loop.d.ts.map +1 -0
- package/dist/lib/fallback-loop.js +1336 -0
- package/dist/lib/fallback-loop.js.map +1 -0
- package/dist/lib/file-permissions.d.ts +98 -0
- package/dist/lib/file-permissions.d.ts.map +1 -0
- package/dist/lib/file-permissions.js +159 -0
- package/dist/lib/file-permissions.js.map +1 -0
- package/dist/lib/gemini-wire.d.ts +76 -0
- package/dist/lib/gemini-wire.d.ts.map +1 -0
- package/dist/lib/gemini-wire.js +392 -0
- package/dist/lib/gemini-wire.js.map +1 -0
- package/dist/lib/guardrails.d.ts +37 -0
- package/dist/lib/guardrails.d.ts.map +1 -0
- package/dist/lib/guardrails.js +106 -0
- package/dist/lib/guardrails.js.map +1 -0
- package/dist/lib/header-value.d.ts +8 -0
- package/dist/lib/header-value.d.ts.map +1 -0
- package/dist/lib/header-value.js +55 -0
- package/dist/lib/header-value.js.map +1 -0
- package/dist/lib/image-normalize.d.ts +21 -0
- package/dist/lib/image-normalize.d.ts.map +1 -0
- package/dist/lib/image-normalize.js +218 -0
- package/dist/lib/image-normalize.js.map +1 -0
- package/dist/lib/inbound-chat.d.ts +48 -0
- package/dist/lib/inbound-chat.d.ts.map +1 -0
- package/dist/lib/inbound-chat.js +406 -0
- package/dist/lib/inbound-chat.js.map +1 -0
- package/dist/lib/key-parser.d.ts +79 -0
- package/dist/lib/key-parser.d.ts.map +1 -0
- package/dist/lib/key-parser.js +701 -0
- package/dist/lib/key-parser.js.map +1 -0
- package/dist/lib/key-proxy.d.ts +49 -0
- package/dist/lib/key-proxy.d.ts.map +1 -0
- package/dist/lib/key-proxy.js +92 -0
- package/dist/lib/key-proxy.js.map +1 -0
- package/dist/lib/log-redaction.d.ts +28 -0
- package/dist/lib/log-redaction.d.ts.map +1 -0
- package/dist/lib/log-redaction.js +166 -0
- package/dist/lib/log-redaction.js.map +1 -0
- package/dist/lib/model-scope.d.ts +9 -0
- package/dist/lib/model-scope.d.ts.map +1 -0
- package/dist/lib/model-scope.js +29 -0
- package/dist/lib/model-scope.js.map +1 -0
- package/dist/lib/one-time-code.d.ts +15 -0
- package/dist/lib/one-time-code.d.ts.map +1 -0
- package/dist/lib/one-time-code.js +41 -0
- package/dist/lib/one-time-code.js.map +1 -0
- package/dist/lib/output-cap.d.ts +24 -0
- package/dist/lib/output-cap.d.ts.map +1 -0
- package/dist/lib/output-cap.js +80 -0
- package/dist/lib/output-cap.js.map +1 -0
- package/dist/lib/password.d.ts +3 -0
- package/dist/lib/password.d.ts.map +1 -0
- package/dist/lib/password.js +27 -0
- package/dist/lib/password.js.map +1 -0
- package/dist/lib/process-safety-net.d.ts +32 -0
- package/dist/lib/process-safety-net.d.ts.map +1 -0
- package/dist/lib/process-safety-net.js +123 -0
- package/dist/lib/process-safety-net.js.map +1 -0
- package/dist/lib/provider-identity.d.ts +37 -0
- package/dist/lib/provider-identity.d.ts.map +1 -0
- package/dist/lib/provider-identity.js +110 -0
- package/dist/lib/provider-identity.js.map +1 -0
- package/dist/lib/provider-size-parser.d.ts +6 -0
- package/dist/lib/provider-size-parser.d.ts.map +1 -0
- package/dist/lib/provider-size-parser.js +72 -0
- package/dist/lib/provider-size-parser.js.map +1 -0
- package/dist/lib/provider-timeout.d.ts +17 -0
- package/dist/lib/provider-timeout.d.ts.map +1 -0
- package/dist/lib/provider-timeout.js +70 -0
- package/dist/lib/provider-timeout.js.map +1 -0
- package/dist/lib/proxy.d.ts +180 -0
- package/dist/lib/proxy.d.ts.map +1 -0
- package/dist/lib/proxy.js +1002 -0
- package/dist/lib/proxy.js.map +1 -0
- package/dist/lib/request-log.d.ts +4 -0
- package/dist/lib/request-log.d.ts.map +1 -0
- package/dist/lib/request-log.js +161 -0
- package/dist/lib/request-log.js.map +1 -0
- package/dist/lib/reset-code.d.ts +5 -0
- package/dist/lib/reset-code.d.ts.map +1 -0
- package/dist/lib/reset-code.js +39 -0
- package/dist/lib/reset-code.js.map +1 -0
- package/dist/lib/retry-hint.d.ts +14 -0
- package/dist/lib/retry-hint.d.ts.map +1 -0
- package/dist/lib/retry-hint.js +36 -0
- package/dist/lib/retry-hint.js.map +1 -0
- package/dist/lib/route-live.d.ts +29 -0
- package/dist/lib/route-live.d.ts.map +1 -0
- package/dist/lib/route-live.js +97 -0
- package/dist/lib/route-live.js.map +1 -0
- package/dist/lib/sampling-params.d.ts +183 -0
- package/dist/lib/sampling-params.d.ts.map +1 -0
- package/dist/lib/sampling-params.js +386 -0
- package/dist/lib/sampling-params.js.map +1 -0
- package/dist/lib/scheduler.d.ts +13 -0
- package/dist/lib/scheduler.d.ts.map +1 -0
- package/dist/lib/scheduler.js +11 -0
- package/dist/lib/scheduler.js.map +1 -0
- package/dist/lib/served-model.d.ts +16 -0
- package/dist/lib/served-model.d.ts.map +1 -0
- package/dist/lib/served-model.js +0 -0
- package/dist/lib/served-model.js.map +1 -0
- package/dist/lib/server-logs.d.ts +132 -0
- package/dist/lib/server-logs.d.ts.map +1 -0
- package/dist/lib/server-logs.js +473 -0
- package/dist/lib/server-logs.js.map +1 -0
- package/dist/lib/setup-code.d.ts +5 -0
- package/dist/lib/setup-code.d.ts.map +1 -0
- package/dist/lib/setup-code.js +35 -0
- package/dist/lib/setup-code.js.map +1 -0
- package/dist/lib/structured-output.d.ts +9 -0
- package/dist/lib/structured-output.d.ts.map +1 -0
- package/dist/lib/structured-output.js +72 -0
- package/dist/lib/structured-output.js.map +1 -0
- package/dist/lib/system-prompt.d.ts +30 -0
- package/dist/lib/system-prompt.d.ts.map +1 -0
- package/dist/lib/system-prompt.js +66 -0
- package/dist/lib/system-prompt.js.map +1 -0
- package/dist/lib/task-type.d.ts +18 -0
- package/dist/lib/task-type.d.ts.map +1 -0
- package/dist/lib/task-type.js +92 -0
- package/dist/lib/task-type.js.map +1 -0
- package/dist/lib/think-tags.d.ts +37 -0
- package/dist/lib/think-tags.d.ts.map +1 -0
- package/dist/lib/think-tags.js +203 -0
- package/dist/lib/think-tags.js.map +1 -0
- package/dist/lib/tool-args.d.ts +36 -0
- package/dist/lib/tool-args.d.ts.map +1 -0
- package/dist/lib/tool-args.js +190 -0
- package/dist/lib/tool-args.js.map +1 -0
- package/dist/lib/tool-call-rescue.d.ts +62 -0
- package/dist/lib/tool-call-rescue.d.ts.map +1 -0
- package/dist/lib/tool-call-rescue.js +258 -0
- package/dist/lib/tool-call-rescue.js.map +1 -0
- package/dist/lib/tool-capability.d.ts +13 -0
- package/dist/lib/tool-capability.d.ts.map +1 -0
- package/dist/lib/tool-capability.js +70 -0
- package/dist/lib/tool-capability.js.map +1 -0
- package/dist/lib/tool-validate.d.ts +44 -0
- package/dist/lib/tool-validate.d.ts.map +1 -0
- package/dist/lib/tool-validate.js +165 -0
- package/dist/lib/tool-validate.js.map +1 -0
- package/dist/lib/ttfb-budget.d.ts +13 -0
- package/dist/lib/ttfb-budget.d.ts.map +1 -0
- package/dist/lib/ttfb-budget.js +153 -0
- package/dist/lib/ttfb-budget.js.map +1 -0
- package/dist/lib/url-guard.d.ts +47 -0
- package/dist/lib/url-guard.d.ts.map +1 -0
- package/dist/lib/url-guard.js +229 -0
- package/dist/lib/url-guard.js.map +1 -0
- package/dist/lib/wake-detect.d.ts +12 -0
- package/dist/lib/wake-detect.d.ts.map +1 -0
- package/dist/lib/wake-detect.js +99 -0
- package/dist/lib/wake-detect.js.map +1 -0
- package/dist/middleware/errorHandler.d.ts +3 -0
- package/dist/middleware/errorHandler.d.ts.map +1 -0
- package/dist/middleware/errorHandler.js +45 -0
- package/dist/middleware/errorHandler.js.map +1 -0
- package/dist/middleware/rateLimit.d.ts +4 -0
- package/dist/middleware/rateLimit.d.ts.map +1 -0
- package/dist/middleware/rateLimit.js +125 -0
- package/dist/middleware/rateLimit.js.map +1 -0
- package/dist/middleware/requireAuth.d.ts +3 -0
- package/dist/middleware/requireAuth.d.ts.map +1 -0
- package/dist/middleware/requireAuth.js +17 -0
- package/dist/middleware/requireAuth.js.map +1 -0
- package/dist/providers/aclide.d.ts +18 -0
- package/dist/providers/aclide.d.ts.map +1 -0
- package/dist/providers/aclide.js +174 -0
- package/dist/providers/aclide.js.map +1 -0
- package/dist/providers/aihorde.d.ts +42 -0
- package/dist/providers/aihorde.d.ts.map +1 -0
- package/dist/providers/aihorde.js +192 -0
- package/dist/providers/aihorde.js.map +1 -0
- package/dist/providers/airforce.d.ts +11 -0
- package/dist/providers/airforce.d.ts.map +1 -0
- package/dist/providers/airforce.js +32 -0
- package/dist/providers/airforce.js.map +1 -0
- package/dist/providers/base.d.ts +177 -0
- package/dist/providers/base.d.ts.map +1 -0
- package/dist/providers/base.js +354 -0
- package/dist/providers/base.js.map +1 -0
- package/dist/providers/blaze.d.ts +11 -0
- package/dist/providers/blaze.d.ts.map +1 -0
- package/dist/providers/blaze.js +33 -0
- package/dist/providers/blaze.js.map +1 -0
- package/dist/providers/blockrun.d.ts +14 -0
- package/dist/providers/blockrun.d.ts.map +1 -0
- package/dist/providers/blockrun.js +36 -0
- package/dist/providers/blockrun.js.map +1 -0
- package/dist/providers/clod.d.ts +11 -0
- package/dist/providers/clod.d.ts.map +1 -0
- package/dist/providers/clod.js +39 -0
- package/dist/providers/clod.js.map +1 -0
- package/dist/providers/cloudflare.d.ts +15 -0
- package/dist/providers/cloudflare.d.ts.map +1 -0
- package/dist/providers/cloudflare.js +175 -0
- package/dist/providers/cloudflare.js.map +1 -0
- package/dist/providers/cohere.d.ts +11 -0
- package/dist/providers/cohere.d.ts.map +1 -0
- package/dist/providers/cohere.js +117 -0
- package/dist/providers/cohere.js.map +1 -0
- package/dist/providers/dreamprompting.d.ts +11 -0
- package/dist/providers/dreamprompting.d.ts.map +1 -0
- package/dist/providers/dreamprompting.js +41 -0
- package/dist/providers/dreamprompting.js.map +1 -0
- package/dist/providers/electronhub.d.ts +10 -0
- package/dist/providers/electronhub.d.ts.map +1 -0
- package/dist/providers/electronhub.js +56 -0
- package/dist/providers/electronhub.js.map +1 -0
- package/dist/providers/experiential.d.ts +10 -0
- package/dist/providers/experiential.d.ts.map +1 -0
- package/dist/providers/experiential.js +33 -0
- package/dist/providers/experiential.js.map +1 -0
- package/dist/providers/gizmo.d.ts +15 -0
- package/dist/providers/gizmo.d.ts.map +1 -0
- package/dist/providers/gizmo.js +54 -0
- package/dist/providers/gizmo.js.map +1 -0
- package/dist/providers/google.d.ts +30 -0
- package/dist/providers/google.d.ts.map +1 -0
- package/dist/providers/google.js +766 -0
- package/dist/providers/google.js.map +1 -0
- package/dist/providers/index.d.ts +13 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +561 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/llmtr.d.ts +15 -0
- package/dist/providers/llmtr.d.ts.map +1 -0
- package/dist/providers/llmtr.js +51 -0
- package/dist/providers/llmtr.js.map +1 -0
- package/dist/providers/logfare.d.ts +11 -0
- package/dist/providers/logfare.d.ts.map +1 -0
- package/dist/providers/logfare.js +33 -0
- package/dist/providers/logfare.js.map +1 -0
- package/dist/providers/lucidity.d.ts +11 -0
- package/dist/providers/lucidity.d.ts.map +1 -0
- package/dist/providers/lucidity.js +37 -0
- package/dist/providers/lucidity.js.map +1 -0
- package/dist/providers/modelscope.d.ts +50 -0
- package/dist/providers/modelscope.d.ts.map +1 -0
- package/dist/providers/modelscope.js +143 -0
- package/dist/providers/modelscope.js.map +1 -0
- package/dist/providers/moondream.d.ts +17 -0
- package/dist/providers/moondream.d.ts.map +1 -0
- package/dist/providers/moondream.js +140 -0
- package/dist/providers/moondream.js.map +1 -0
- package/dist/providers/openai-compat.d.ts +140 -0
- package/dist/providers/openai-compat.d.ts.map +1 -0
- package/dist/providers/openai-compat.js +537 -0
- package/dist/providers/openai-compat.js.map +1 -0
- package/dist/providers/opencode-free.d.ts +24 -0
- package/dist/providers/opencode-free.d.ts.map +1 -0
- package/dist/providers/opencode-free.js +262 -0
- package/dist/providers/opencode-free.js.map +1 -0
- package/dist/providers/pollinations.d.ts +32 -0
- package/dist/providers/pollinations.d.ts.map +1 -0
- package/dist/providers/pollinations.js +65 -0
- package/dist/providers/pollinations.js.map +1 -0
- package/dist/providers/router9.d.ts +16 -0
- package/dist/providers/router9.d.ts.map +1 -0
- package/dist/providers/router9.js +42 -0
- package/dist/providers/router9.js.map +1 -0
- package/dist/providers/sail.d.ts +44 -0
- package/dist/providers/sail.d.ts.map +1 -0
- package/dist/providers/sail.js +302 -0
- package/dist/providers/sail.js.map +1 -0
- package/dist/providers/septor.d.ts +10 -0
- package/dist/providers/septor.d.ts.map +1 -0
- package/dist/providers/septor.js +36 -0
- package/dist/providers/septor.js.map +1 -0
- package/dist/providers/speechify.d.ts +14 -0
- package/dist/providers/speechify.d.ts.map +1 -0
- package/dist/providers/speechify.js +28 -0
- package/dist/providers/speechify.js.map +1 -0
- package/dist/providers/speka.d.ts +12 -0
- package/dist/providers/speka.d.ts.map +1 -0
- package/dist/providers/speka.js +37 -0
- package/dist/providers/speka.js.map +1 -0
- package/dist/providers/waterfall.d.ts +11 -0
- package/dist/providers/waterfall.d.ts.map +1 -0
- package/dist/providers/waterfall.js +33 -0
- package/dist/providers/waterfall.js.map +1 -0
- package/dist/providers/xkiro.d.ts +71 -0
- package/dist/providers/xkiro.d.ts.map +1 -0
- package/dist/providers/xkiro.js +119 -0
- package/dist/providers/xkiro.js.map +1 -0
- package/dist/providers/zhipu.d.ts +43 -0
- package/dist/providers/zhipu.d.ts.map +1 -0
- package/dist/providers/zhipu.js +95 -0
- package/dist/providers/zhipu.js.map +1 -0
- package/dist/routes/analytics.d.ts +2 -0
- package/dist/routes/analytics.d.ts.map +1 -0
- package/dist/routes/analytics.js +738 -0
- package/dist/routes/analytics.js.map +1 -0
- package/dist/routes/anthropic.d.ts +7 -0
- package/dist/routes/anthropic.d.ts.map +1 -0
- package/dist/routes/anthropic.js +1076 -0
- package/dist/routes/anthropic.js.map +1 -0
- package/dist/routes/auth.d.ts +2 -0
- package/dist/routes/auth.d.ts.map +1 -0
- package/dist/routes/auth.js +310 -0
- package/dist/routes/auth.js.map +1 -0
- package/dist/routes/backups.d.ts +2 -0
- package/dist/routes/backups.d.ts.map +1 -0
- package/dist/routes/backups.js +127 -0
- package/dist/routes/backups.js.map +1 -0
- package/dist/routes/cache.d.ts +2 -0
- package/dist/routes/cache.d.ts.map +1 -0
- package/dist/routes/cache.js +40 -0
- package/dist/routes/cache.js.map +1 -0
- package/dist/routes/client-profiles.d.ts +2 -0
- package/dist/routes/client-profiles.d.ts.map +1 -0
- package/dist/routes/client-profiles.js +128 -0
- package/dist/routes/client-profiles.js.map +1 -0
- package/dist/routes/compression.d.ts +2 -0
- package/dist/routes/compression.d.ts.map +1 -0
- package/dist/routes/compression.js +82 -0
- package/dist/routes/compression.js.map +1 -0
- package/dist/routes/conversations.d.ts +3 -0
- package/dist/routes/conversations.d.ts.map +1 -0
- package/dist/routes/conversations.js +215 -0
- package/dist/routes/conversations.js.map +1 -0
- package/dist/routes/docs.d.ts +2 -0
- package/dist/routes/docs.d.ts.map +1 -0
- package/dist/routes/docs.js +21 -0
- package/dist/routes/docs.js.map +1 -0
- package/dist/routes/embeddings.d.ts +2 -0
- package/dist/routes/embeddings.d.ts.map +1 -0
- package/dist/routes/embeddings.js +255 -0
- package/dist/routes/embeddings.js.map +1 -0
- package/dist/routes/fallback.d.ts +2 -0
- package/dist/routes/fallback.d.ts.map +1 -0
- package/dist/routes/fallback.js +631 -0
- package/dist/routes/fallback.js.map +1 -0
- package/dist/routes/free-tier.d.ts +22 -0
- package/dist/routes/free-tier.d.ts.map +1 -0
- package/dist/routes/free-tier.js +175 -0
- package/dist/routes/free-tier.js.map +1 -0
- package/dist/routes/gemini.d.ts +2 -0
- package/dist/routes/gemini.d.ts.map +1 -0
- package/dist/routes/gemini.js +218 -0
- package/dist/routes/gemini.js.map +1 -0
- package/dist/routes/health.d.ts +2 -0
- package/dist/routes/health.d.ts.map +1 -0
- package/dist/routes/health.js +72 -0
- package/dist/routes/health.js.map +1 -0
- package/dist/routes/keys.d.ts +17 -0
- package/dist/routes/keys.d.ts.map +1 -0
- package/dist/routes/keys.js +1787 -0
- package/dist/routes/keys.js.map +1 -0
- package/dist/routes/logs.d.ts +2 -0
- package/dist/routes/logs.d.ts.map +1 -0
- package/dist/routes/logs.js +88 -0
- package/dist/routes/logs.js.map +1 -0
- package/dist/routes/mcp.d.ts +4 -0
- package/dist/routes/mcp.d.ts.map +1 -0
- package/dist/routes/mcp.js +563 -0
- package/dist/routes/mcp.js.map +1 -0
- package/dist/routes/media.d.ts +2 -0
- package/dist/routes/media.d.ts.map +1 -0
- package/dist/routes/media.js +180 -0
- package/dist/routes/media.js.map +1 -0
- package/dist/routes/models.d.ts +2 -0
- package/dist/routes/models.d.ts.map +1 -0
- package/dist/routes/models.js +439 -0
- package/dist/routes/models.js.map +1 -0
- package/dist/routes/ollama.d.ts +7 -0
- package/dist/routes/ollama.d.ts.map +1 -0
- package/dist/routes/ollama.js +595 -0
- package/dist/routes/ollama.js.map +1 -0
- package/dist/routes/profiles.d.ts +3 -0
- package/dist/routes/profiles.d.ts.map +1 -0
- package/dist/routes/profiles.js +431 -0
- package/dist/routes/profiles.js.map +1 -0
- package/dist/routes/proxy.d.ts +32 -0
- package/dist/routes/proxy.d.ts.map +1 -0
- package/dist/routes/proxy.js +2793 -0
- package/dist/routes/proxy.js.map +1 -0
- package/dist/routes/responses.d.ts +1161 -0
- package/dist/routes/responses.d.ts.map +1 -0
- package/dist/routes/responses.js +1521 -0
- package/dist/routes/responses.js.map +1 -0
- package/dist/routes/settings.d.ts +2 -0
- package/dist/routes/settings.d.ts.map +1 -0
- package/dist/routes/settings.js +549 -0
- package/dist/routes/settings.js.map +1 -0
- package/dist/routes/status.d.ts +3 -0
- package/dist/routes/status.d.ts.map +1 -0
- package/dist/routes/status.js +214 -0
- package/dist/routes/status.js.map +1 -0
- package/dist/routes/update.d.ts +31 -0
- package/dist/routes/update.d.ts.map +1 -0
- package/dist/routes/update.js +536 -0
- package/dist/routes/update.js.map +1 -0
- package/dist/routes/url-tokens.d.ts +2 -0
- package/dist/routes/url-tokens.d.ts.map +1 -0
- package/dist/routes/url-tokens.js +31 -0
- package/dist/routes/url-tokens.js.map +1 -0
- package/dist/scripts/export-catalog.d.ts +2 -0
- package/dist/scripts/export-catalog.d.ts.map +1 -0
- package/dist/scripts/export-catalog.js +114 -0
- package/dist/scripts/export-catalog.js.map +1 -0
- package/dist/scripts/rotate-encryption-key.d.ts +81 -0
- package/dist/scripts/rotate-encryption-key.d.ts.map +1 -0
- package/dist/scripts/rotate-encryption-key.js +232 -0
- package/dist/scripts/rotate-encryption-key.js.map +1 -0
- package/dist/scripts/routing-sim.d.ts +2 -0
- package/dist/scripts/routing-sim.d.ts.map +1 -0
- package/dist/scripts/routing-sim.js +130 -0
- package/dist/scripts/routing-sim.js.map +1 -0
- package/dist/scripts/test-all-models.d.ts +2 -0
- package/dist/scripts/test-all-models.d.ts.map +1 -0
- package/dist/scripts/test-all-models.js +56 -0
- package/dist/scripts/test-all-models.js.map +1 -0
- package/dist/services/anthropic-map.d.ts +39 -0
- package/dist/services/anthropic-map.d.ts.map +1 -0
- package/dist/services/anthropic-map.js +138 -0
- package/dist/services/anthropic-map.js.map +1 -0
- package/dist/services/auth.d.ts +30 -0
- package/dist/services/auth.d.ts.map +1 -0
- package/dist/services/auth.js +124 -0
- package/dist/services/auth.js.map +1 -0
- package/dist/services/auto-discover.d.ts +77 -0
- package/dist/services/auto-discover.d.ts.map +1 -0
- package/dist/services/auto-discover.js +1047 -0
- package/dist/services/auto-discover.js.map +1 -0
- package/dist/services/backups.d.ts +67 -0
- package/dist/services/backups.d.ts.map +1 -0
- package/dist/services/backups.js +444 -0
- package/dist/services/backups.js.map +1 -0
- package/dist/services/builtin-model-discovery.d.ts +107 -0
- package/dist/services/builtin-model-discovery.d.ts.map +1 -0
- package/dist/services/builtin-model-discovery.js +296 -0
- package/dist/services/builtin-model-discovery.js.map +1 -0
- package/dist/services/cache.d.ts +190 -0
- package/dist/services/cache.d.ts.map +1 -0
- package/dist/services/cache.js +617 -0
- package/dist/services/cache.js.map +1 -0
- package/dist/services/catalog-sync.d.ts +257 -0
- package/dist/services/catalog-sync.d.ts.map +1 -0
- package/dist/services/catalog-sync.js +1041 -0
- package/dist/services/catalog-sync.js.map +1 -0
- package/dist/services/compression/config.d.ts +33 -0
- package/dist/services/compression/config.d.ts.map +1 -0
- package/dist/services/compression/config.js +158 -0
- package/dist/services/compression/config.js.map +1 -0
- package/dist/services/compression/engines/aging.d.ts +2 -0
- package/dist/services/compression/engines/aging.d.ts.map +1 -0
- package/dist/services/compression/engines/aging.js +53 -0
- package/dist/services/compression/engines/aging.js.map +1 -0
- package/dist/services/compression/engines/custom-filters.d.ts +4 -0
- package/dist/services/compression/engines/custom-filters.d.ts.map +1 -0
- package/dist/services/compression/engines/custom-filters.js +49 -0
- package/dist/services/compression/engines/custom-filters.js.map +1 -0
- package/dist/services/compression/engines/dedup.d.ts +2 -0
- package/dist/services/compression/engines/dedup.d.ts.map +1 -0
- package/dist/services/compression/engines/dedup.js +61 -0
- package/dist/services/compression/engines/dedup.js.map +1 -0
- package/dist/services/compression/engines/filter-definitions.d.ts +75 -0
- package/dist/services/compression/engines/filter-definitions.d.ts.map +1 -0
- package/dist/services/compression/engines/filter-definitions.js +45 -0
- package/dist/services/compression/engines/filter-definitions.js.map +1 -0
- package/dist/services/compression/engines/hard-budget.d.ts +2 -0
- package/dist/services/compression/engines/hard-budget.d.ts.map +1 -0
- package/dist/services/compression/engines/hard-budget.js +52 -0
- package/dist/services/compression/engines/hard-budget.js.map +1 -0
- package/dist/services/compression/engines/index.d.ts +9 -0
- package/dist/services/compression/engines/index.d.ts.map +1 -0
- package/dist/services/compression/engines/index.js +9 -0
- package/dist/services/compression/engines/index.js.map +1 -0
- package/dist/services/compression/engines/jsoncompact.d.ts +3 -0
- package/dist/services/compression/engines/jsoncompact.d.ts.map +1 -0
- package/dist/services/compression/engines/jsoncompact.js +145 -0
- package/dist/services/compression/engines/jsoncompact.js.map +1 -0
- package/dist/services/compression/engines/lite.d.ts +2 -0
- package/dist/services/compression/engines/lite.d.ts.map +1 -0
- package/dist/services/compression/engines/lite.js +34 -0
- package/dist/services/compression/engines/lite.js.map +1 -0
- package/dist/services/compression/engines/read-lifecycle.d.ts +2 -0
- package/dist/services/compression/engines/read-lifecycle.d.ts.map +1 -0
- package/dist/services/compression/engines/read-lifecycle.js +70 -0
- package/dist/services/compression/engines/read-lifecycle.js.map +1 -0
- package/dist/services/compression/engines/relevance.d.ts +2 -0
- package/dist/services/compression/engines/relevance.d.ts.map +1 -0
- package/dist/services/compression/engines/relevance.js +74 -0
- package/dist/services/compression/engines/relevance.js.map +1 -0
- package/dist/services/compression/engines/toolfilter.d.ts +2 -0
- package/dist/services/compression/engines/toolfilter.d.ts.map +1 -0
- package/dist/services/compression/engines/toolfilter.js +195 -0
- package/dist/services/compression/engines/toolfilter.js.map +1 -0
- package/dist/services/compression/fidelity-gate.d.ts +12 -0
- package/dist/services/compression/fidelity-gate.d.ts.map +1 -0
- package/dist/services/compression/fidelity-gate.js +90 -0
- package/dist/services/compression/fidelity-gate.js.map +1 -0
- package/dist/services/compression/helpers.d.ts +9 -0
- package/dist/services/compression/helpers.d.ts.map +1 -0
- package/dist/services/compression/helpers.js +52 -0
- package/dist/services/compression/helpers.js.map +1 -0
- package/dist/services/compression/pipeline.d.ts +7 -0
- package/dist/services/compression/pipeline.d.ts.map +1 -0
- package/dist/services/compression/pipeline.js +245 -0
- package/dist/services/compression/pipeline.js.map +1 -0
- package/dist/services/compression/preservation.d.ts +27 -0
- package/dist/services/compression/preservation.d.ts.map +1 -0
- package/dist/services/compression/preservation.js +109 -0
- package/dist/services/compression/preservation.js.map +1 -0
- package/dist/services/compression/registry.d.ts +6 -0
- package/dist/services/compression/registry.d.ts.map +1 -0
- package/dist/services/compression/registry.js +16 -0
- package/dist/services/compression/registry.js.map +1 -0
- package/dist/services/compression/stats.d.ts +29 -0
- package/dist/services/compression/stats.d.ts.map +1 -0
- package/dist/services/compression/stats.js +55 -0
- package/dist/services/compression/stats.js.map +1 -0
- package/dist/services/compression/types.d.ts +90 -0
- package/dist/services/compression/types.d.ts.map +1 -0
- package/dist/services/compression/types.js +2 -0
- package/dist/services/compression/types.js.map +1 -0
- package/dist/services/context-handoff.d.ts +22 -0
- package/dist/services/context-handoff.d.ts.map +1 -0
- package/dist/services/context-handoff.js +164 -0
- package/dist/services/context-handoff.js.map +1 -0
- package/dist/services/cooldown-probe.d.ts +24 -0
- package/dist/services/cooldown-probe.d.ts.map +1 -0
- package/dist/services/cooldown-probe.js +181 -0
- package/dist/services/cooldown-probe.js.map +1 -0
- package/dist/services/custom-endpoint.d.ts +58 -0
- package/dist/services/custom-endpoint.d.ts.map +1 -0
- package/dist/services/custom-endpoint.js +167 -0
- package/dist/services/custom-endpoint.js.map +1 -0
- package/dist/services/custom-media-register.d.ts +22 -0
- package/dist/services/custom-media-register.d.ts.map +1 -0
- package/dist/services/custom-media-register.js +45 -0
- package/dist/services/custom-media-register.js.map +1 -0
- package/dist/services/custom-model-register.d.ts +50 -0
- package/dist/services/custom-model-register.d.ts.map +1 -0
- package/dist/services/custom-model-register.js +103 -0
- package/dist/services/custom-model-register.js.map +1 -0
- package/dist/services/custom-model-seed.d.ts +18 -0
- package/dist/services/custom-model-seed.d.ts.map +1 -0
- package/dist/services/custom-model-seed.js +42 -0
- package/dist/services/custom-model-seed.js.map +1 -0
- package/dist/services/custom-model-sync.d.ts +37 -0
- package/dist/services/custom-model-sync.d.ts.map +1 -0
- package/dist/services/custom-model-sync.js +118 -0
- package/dist/services/custom-model-sync.js.map +1 -0
- package/dist/services/custom-model-tombstone.d.ts +5 -0
- package/dist/services/custom-model-tombstone.d.ts.map +1 -0
- package/dist/services/custom-model-tombstone.js +30 -0
- package/dist/services/custom-model-tombstone.js.map +1 -0
- package/dist/services/declarative-config.d.ts +356 -0
- package/dist/services/declarative-config.d.ts.map +1 -0
- package/dist/services/declarative-config.js +427 -0
- package/dist/services/declarative-config.js.map +1 -0
- package/dist/services/degradation.d.ts +40 -0
- package/dist/services/degradation.d.ts.map +1 -0
- package/dist/services/degradation.js +119 -0
- package/dist/services/degradation.js.map +1 -0
- package/dist/services/embeddings.d.ts +76 -0
- package/dist/services/embeddings.d.ts.map +1 -0
- package/dist/services/embeddings.js +319 -0
- package/dist/services/embeddings.js.map +1 -0
- package/dist/services/fusion.d.ts +162 -0
- package/dist/services/fusion.d.ts.map +1 -0
- package/dist/services/fusion.js +789 -0
- package/dist/services/fusion.js.map +1 -0
- package/dist/services/gemini-map.d.ts +14 -0
- package/dist/services/gemini-map.d.ts.map +1 -0
- package/dist/services/gemini-map.js +78 -0
- package/dist/services/gemini-map.js.map +1 -0
- package/dist/services/health.d.ts +52 -0
- package/dist/services/health.d.ts.map +1 -0
- package/dist/services/health.js +352 -0
- package/dist/services/health.js.map +1 -0
- package/dist/services/idempotency.d.ts +49 -0
- package/dist/services/idempotency.d.ts.map +1 -0
- package/dist/services/idempotency.js +140 -0
- package/dist/services/idempotency.js.map +1 -0
- package/dist/services/key-budget.d.ts +74 -0
- package/dist/services/key-budget.d.ts.map +1 -0
- package/dist/services/key-budget.js +200 -0
- package/dist/services/key-budget.js.map +1 -0
- package/dist/services/media.d.ts +123 -0
- package/dist/services/media.d.ts.map +1 -0
- package/dist/services/media.js +954 -0
- package/dist/services/media.js.map +1 -0
- package/dist/services/model-discovery.d.ts +126 -0
- package/dist/services/model-discovery.d.ts.map +1 -0
- package/dist/services/model-discovery.js +662 -0
- package/dist/services/model-discovery.js.map +1 -0
- package/dist/services/model-groups.d.ts +149 -0
- package/dist/services/model-groups.d.ts.map +1 -0
- package/dist/services/model-groups.js +314 -0
- package/dist/services/model-groups.js.map +1 -0
- package/dist/services/model-listing.d.ts +18 -0
- package/dist/services/model-listing.d.ts.map +1 -0
- package/dist/services/model-listing.js +94 -0
- package/dist/services/model-listing.js.map +1 -0
- package/dist/services/model-retirement.d.ts +29 -0
- package/dist/services/model-retirement.d.ts.map +1 -0
- package/dist/services/model-retirement.js +86 -0
- package/dist/services/model-retirement.js.map +1 -0
- package/dist/services/model-state.d.ts +90 -0
- package/dist/services/model-state.d.ts.map +1 -0
- package/dist/services/model-state.js +342 -0
- package/dist/services/model-state.js.map +1 -0
- package/dist/services/model-weight-overrides.d.ts +48 -0
- package/dist/services/model-weight-overrides.d.ts.map +1 -0
- package/dist/services/model-weight-overrides.js +127 -0
- package/dist/services/model-weight-overrides.js.map +1 -0
- package/dist/services/notification-emitter.d.ts +50 -0
- package/dist/services/notification-emitter.d.ts.map +1 -0
- package/dist/services/notification-emitter.js +177 -0
- package/dist/services/notification-emitter.js.map +1 -0
- package/dist/services/opencode-free-sync.d.ts +29 -0
- package/dist/services/opencode-free-sync.d.ts.map +1 -0
- package/dist/services/opencode-free-sync.js +206 -0
- package/dist/services/opencode-free-sync.js.map +1 -0
- package/dist/services/penalty-inspector.d.ts +56 -0
- package/dist/services/penalty-inspector.d.ts.map +1 -0
- package/dist/services/penalty-inspector.js +167 -0
- package/dist/services/penalty-inspector.js.map +1 -0
- package/dist/services/profile-models.d.ts +5 -0
- package/dist/services/profile-models.d.ts.map +1 -0
- package/dist/services/profile-models.js +62 -0
- package/dist/services/profile-models.js.map +1 -0
- package/dist/services/provider-credential.d.ts +19 -0
- package/dist/services/provider-credential.d.ts.map +1 -0
- package/dist/services/provider-credential.js +51 -0
- package/dist/services/provider-credential.js.map +1 -0
- package/dist/services/provider-quota.d.ts +64 -0
- package/dist/services/provider-quota.d.ts.map +1 -0
- package/dist/services/provider-quota.js +563 -0
- package/dist/services/provider-quota.js.map +1 -0
- package/dist/services/quirks.d.ts +0 -0
- package/dist/services/quirks.d.ts.map +1 -0
- package/dist/services/quirks.js +0 -0
- package/dist/services/quirks.js.map +1 -0
- package/dist/services/quota-forecast.d.ts +50 -0
- package/dist/services/quota-forecast.d.ts.map +1 -0
- package/dist/services/quota-forecast.js +150 -0
- package/dist/services/quota-forecast.js.map +1 -0
- package/dist/services/quota-outlook.d.ts +4 -0
- package/dist/services/quota-outlook.d.ts.map +1 -0
- package/dist/services/quota-outlook.js +92 -0
- package/dist/services/quota-outlook.js.map +1 -0
- package/dist/services/ratelimit.d.ts +249 -0
- package/dist/services/ratelimit.d.ts.map +1 -0
- package/dist/services/ratelimit.js +1182 -0
- package/dist/services/ratelimit.js.map +1 -0
- package/dist/services/request-retention.d.ts +60 -0
- package/dist/services/request-retention.d.ts.map +1 -0
- package/dist/services/request-retention.js +229 -0
- package/dist/services/request-retention.js.map +1 -0
- package/dist/services/router.d.ts +384 -0
- package/dist/services/router.d.ts.map +1 -0
- package/dist/services/router.js +1986 -0
- package/dist/services/router.js.map +1 -0
- package/dist/services/scoring.d.ts +156 -0
- package/dist/services/scoring.d.ts.map +1 -0
- package/dist/services/scoring.js +435 -0
- package/dist/services/scoring.js.map +1 -0
- package/dist/services/url-tokens.d.ts +15 -0
- package/dist/services/url-tokens.d.ts.map +1 -0
- package/dist/services/url-tokens.js +55 -0
- package/dist/services/url-tokens.js.map +1 -0
- package/package.json +77 -4
- package/README.md +0 -3
|
@@ -0,0 +1,1896 @@
|
|
|
1
|
+
export declare const openapiSpec: {
|
|
2
|
+
readonly openapi: "3.0.3";
|
|
3
|
+
readonly info: {
|
|
4
|
+
readonly title: "SRouter";
|
|
5
|
+
readonly version: "0.3.2";
|
|
6
|
+
readonly description: string;
|
|
7
|
+
readonly license: {
|
|
8
|
+
readonly name: "MIT";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
readonly servers: readonly [{
|
|
12
|
+
readonly url: "/";
|
|
13
|
+
readonly description: "This proxy instance";
|
|
14
|
+
}];
|
|
15
|
+
readonly security: readonly [{
|
|
16
|
+
readonly bearerAuth: readonly [];
|
|
17
|
+
}, {
|
|
18
|
+
readonly apiKeyAuth: readonly [];
|
|
19
|
+
}];
|
|
20
|
+
readonly tags: readonly [{
|
|
21
|
+
readonly name: "Chat";
|
|
22
|
+
readonly description: "OpenAI-compatible chat and completion endpoints";
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "Media";
|
|
25
|
+
readonly description: "Image generation and text-to-speech";
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "Responses";
|
|
28
|
+
readonly description: "OpenAI Responses API (Codex CLI wire format)";
|
|
29
|
+
}, {
|
|
30
|
+
readonly name: "Anthropic";
|
|
31
|
+
readonly description: "Anthropic Messages API (Claude Code and the Anthropic SDKs)";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "Models";
|
|
34
|
+
readonly description: "Model discovery";
|
|
35
|
+
}, {
|
|
36
|
+
readonly name: "Gemini";
|
|
37
|
+
readonly description: "Native Gemini generateContent wire format";
|
|
38
|
+
}, {
|
|
39
|
+
readonly name: "Ollama";
|
|
40
|
+
readonly description: "Opt-in Ollama-compatible local-client surface";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "URL tokens";
|
|
43
|
+
readonly description: "Headerless-client aliases using separately revocable URL tokens";
|
|
44
|
+
}];
|
|
45
|
+
readonly paths: {
|
|
46
|
+
readonly '/v1/chat/completions': {
|
|
47
|
+
readonly post: {
|
|
48
|
+
readonly tags: readonly ["Chat"];
|
|
49
|
+
readonly operationId: "createChatCompletion";
|
|
50
|
+
readonly summary: "Create a chat completion";
|
|
51
|
+
readonly description: string;
|
|
52
|
+
readonly requestBody: {
|
|
53
|
+
readonly required: true;
|
|
54
|
+
readonly content: {
|
|
55
|
+
readonly 'application/json': {
|
|
56
|
+
readonly schema: {
|
|
57
|
+
readonly $ref: "#/components/schemas/ChatCompletionRequest";
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
readonly responses: {
|
|
63
|
+
readonly '200': {
|
|
64
|
+
readonly description: string;
|
|
65
|
+
readonly content: {
|
|
66
|
+
readonly 'application/json': {
|
|
67
|
+
readonly schema: {
|
|
68
|
+
readonly $ref: "#/components/schemas/ChatCompletionResponse";
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
readonly '400': {
|
|
74
|
+
readonly $ref: "#/components/responses/BadRequest";
|
|
75
|
+
};
|
|
76
|
+
readonly '401': {
|
|
77
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
78
|
+
};
|
|
79
|
+
readonly '429': {
|
|
80
|
+
readonly $ref: "#/components/responses/RateLimited";
|
|
81
|
+
};
|
|
82
|
+
readonly '502': {
|
|
83
|
+
readonly $ref: "#/components/responses/UpstreamError";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly '/v1/completions': {
|
|
89
|
+
readonly post: {
|
|
90
|
+
readonly tags: readonly ["Chat"];
|
|
91
|
+
readonly operationId: "createCompletion";
|
|
92
|
+
readonly summary: "Create a legacy text completion";
|
|
93
|
+
readonly description: string;
|
|
94
|
+
readonly requestBody: {
|
|
95
|
+
readonly required: true;
|
|
96
|
+
readonly content: {
|
|
97
|
+
readonly 'application/json': {
|
|
98
|
+
readonly schema: {
|
|
99
|
+
readonly $ref: "#/components/schemas/CompletionRequest";
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
readonly responses: {
|
|
105
|
+
readonly '200': {
|
|
106
|
+
readonly description: "A text completion (`object: \"text_completion\"`), or an SSE stream when `stream: true`.";
|
|
107
|
+
readonly content: {
|
|
108
|
+
readonly 'application/json': {
|
|
109
|
+
readonly schema: {
|
|
110
|
+
readonly $ref: "#/components/schemas/CompletionResponse";
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
readonly '400': {
|
|
116
|
+
readonly $ref: "#/components/responses/BadRequest";
|
|
117
|
+
};
|
|
118
|
+
readonly '401': {
|
|
119
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
120
|
+
};
|
|
121
|
+
readonly '429': {
|
|
122
|
+
readonly $ref: "#/components/responses/RateLimited";
|
|
123
|
+
};
|
|
124
|
+
readonly '502': {
|
|
125
|
+
readonly $ref: "#/components/responses/UpstreamError";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
readonly '/v1/embeddings': {
|
|
131
|
+
readonly post: {
|
|
132
|
+
readonly tags: readonly ["Chat"];
|
|
133
|
+
readonly operationId: "createEmbedding";
|
|
134
|
+
readonly summary: "Create embeddings";
|
|
135
|
+
readonly description: "OpenAI-compatible embeddings. `input` accepts a string or an array of strings.";
|
|
136
|
+
readonly requestBody: {
|
|
137
|
+
readonly required: true;
|
|
138
|
+
readonly content: {
|
|
139
|
+
readonly 'application/json': {
|
|
140
|
+
readonly schema: {
|
|
141
|
+
readonly $ref: "#/components/schemas/EmbeddingRequest";
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
readonly responses: {
|
|
147
|
+
readonly '200': {
|
|
148
|
+
readonly description: "A list of embedding vectors.";
|
|
149
|
+
readonly content: {
|
|
150
|
+
readonly 'application/json': {
|
|
151
|
+
readonly schema: {
|
|
152
|
+
readonly $ref: "#/components/schemas/EmbeddingResponse";
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly '400': {
|
|
158
|
+
readonly $ref: "#/components/responses/BadRequest";
|
|
159
|
+
};
|
|
160
|
+
readonly '401': {
|
|
161
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
162
|
+
};
|
|
163
|
+
readonly '429': {
|
|
164
|
+
readonly $ref: "#/components/responses/RateLimited";
|
|
165
|
+
};
|
|
166
|
+
readonly '502': {
|
|
167
|
+
readonly $ref: "#/components/responses/UpstreamError";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
readonly '/v1/images/generations': {
|
|
173
|
+
readonly post: {
|
|
174
|
+
readonly tags: readonly ["Media"];
|
|
175
|
+
readonly operationId: "createImage";
|
|
176
|
+
readonly summary: "Generate images";
|
|
177
|
+
readonly description: string;
|
|
178
|
+
readonly requestBody: {
|
|
179
|
+
readonly required: true;
|
|
180
|
+
readonly content: {
|
|
181
|
+
readonly 'application/json': {
|
|
182
|
+
readonly schema: {
|
|
183
|
+
readonly $ref: "#/components/schemas/ImageRequest";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
readonly responses: {
|
|
189
|
+
readonly '200': {
|
|
190
|
+
readonly description: "Generated image(s), as URLs or base64 depending on `response_format`.";
|
|
191
|
+
readonly content: {
|
|
192
|
+
readonly 'application/json': {
|
|
193
|
+
readonly schema: {
|
|
194
|
+
readonly $ref: "#/components/schemas/ImageResponse";
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
readonly '400': {
|
|
200
|
+
readonly $ref: "#/components/responses/BadRequest";
|
|
201
|
+
};
|
|
202
|
+
readonly '401': {
|
|
203
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
204
|
+
};
|
|
205
|
+
readonly '429': {
|
|
206
|
+
readonly $ref: "#/components/responses/RateLimited";
|
|
207
|
+
};
|
|
208
|
+
readonly '502': {
|
|
209
|
+
readonly $ref: "#/components/responses/UpstreamError";
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
readonly '/v1/videos/generations': {
|
|
215
|
+
readonly post: {
|
|
216
|
+
readonly tags: readonly ["Media"];
|
|
217
|
+
readonly operationId: "createVideo";
|
|
218
|
+
readonly summary: "Generate video";
|
|
219
|
+
readonly description: string;
|
|
220
|
+
readonly requestBody: {
|
|
221
|
+
readonly required: true;
|
|
222
|
+
readonly content: {
|
|
223
|
+
readonly 'application/json': {
|
|
224
|
+
readonly schema: {
|
|
225
|
+
readonly $ref: "#/components/schemas/VideoRequest";
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
readonly responses: {
|
|
231
|
+
readonly '200': {
|
|
232
|
+
readonly description: "The generated video.";
|
|
233
|
+
readonly content: {
|
|
234
|
+
readonly 'video/mp4': {
|
|
235
|
+
readonly schema: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
readonly format: "binary";
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
readonly '400': {
|
|
243
|
+
readonly $ref: "#/components/responses/BadRequest";
|
|
244
|
+
};
|
|
245
|
+
readonly '401': {
|
|
246
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
247
|
+
};
|
|
248
|
+
readonly '429': {
|
|
249
|
+
readonly $ref: "#/components/responses/RateLimited";
|
|
250
|
+
};
|
|
251
|
+
readonly '502': {
|
|
252
|
+
readonly $ref: "#/components/responses/UpstreamError";
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
readonly '/v1/audio/speech': {
|
|
258
|
+
readonly post: {
|
|
259
|
+
readonly tags: readonly ["Media"];
|
|
260
|
+
readonly operationId: "createSpeech";
|
|
261
|
+
readonly summary: "Generate speech (text-to-speech)";
|
|
262
|
+
readonly description: string;
|
|
263
|
+
readonly requestBody: {
|
|
264
|
+
readonly required: true;
|
|
265
|
+
readonly content: {
|
|
266
|
+
readonly 'application/json': {
|
|
267
|
+
readonly schema: {
|
|
268
|
+
readonly $ref: "#/components/schemas/SpeechRequest";
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
readonly responses: {
|
|
274
|
+
readonly '200': {
|
|
275
|
+
readonly description: "Raw audio bytes.";
|
|
276
|
+
readonly content: {
|
|
277
|
+
readonly 'audio/mpeg': {
|
|
278
|
+
readonly schema: {
|
|
279
|
+
readonly type: "string";
|
|
280
|
+
readonly format: "binary";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
readonly '400': {
|
|
286
|
+
readonly $ref: "#/components/responses/BadRequest";
|
|
287
|
+
};
|
|
288
|
+
readonly '401': {
|
|
289
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
290
|
+
};
|
|
291
|
+
readonly '429': {
|
|
292
|
+
readonly $ref: "#/components/responses/RateLimited";
|
|
293
|
+
};
|
|
294
|
+
readonly '502': {
|
|
295
|
+
readonly $ref: "#/components/responses/UpstreamError";
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
readonly '/v1/audio/transcriptions': {
|
|
301
|
+
readonly post: {
|
|
302
|
+
readonly tags: readonly ["Media"];
|
|
303
|
+
readonly operationId: "createTranscription";
|
|
304
|
+
readonly summary: "Transcribe audio (speech-to-text)";
|
|
305
|
+
readonly description: string;
|
|
306
|
+
readonly requestBody: {
|
|
307
|
+
readonly required: true;
|
|
308
|
+
readonly content: {
|
|
309
|
+
readonly 'multipart/form-data': {
|
|
310
|
+
readonly schema: {
|
|
311
|
+
readonly $ref: "#/components/schemas/TranscriptionRequest";
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
readonly responses: {
|
|
317
|
+
readonly '200': {
|
|
318
|
+
readonly description: "The transcription in the requested format.";
|
|
319
|
+
readonly content: {
|
|
320
|
+
readonly 'application/json': {
|
|
321
|
+
readonly schema: {
|
|
322
|
+
readonly type: "object";
|
|
323
|
+
readonly properties: {
|
|
324
|
+
readonly text: {
|
|
325
|
+
readonly type: "string";
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
readonly 'text/plain': {
|
|
331
|
+
readonly schema: {
|
|
332
|
+
readonly type: "string";
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
readonly '400': {
|
|
338
|
+
readonly $ref: "#/components/responses/BadRequest";
|
|
339
|
+
};
|
|
340
|
+
readonly '401': {
|
|
341
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
342
|
+
};
|
|
343
|
+
readonly '413': {
|
|
344
|
+
readonly description: "The uploaded audio exceeds the 25 MB limit.";
|
|
345
|
+
readonly content: {
|
|
346
|
+
readonly 'application/json': {
|
|
347
|
+
readonly schema: {
|
|
348
|
+
readonly $ref: "#/components/schemas/Error";
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
readonly '429': {
|
|
354
|
+
readonly $ref: "#/components/responses/RateLimited";
|
|
355
|
+
};
|
|
356
|
+
readonly '502': {
|
|
357
|
+
readonly $ref: "#/components/responses/UpstreamError";
|
|
358
|
+
};
|
|
359
|
+
readonly '503': {
|
|
360
|
+
readonly description: "No transcription models synced yet (code 'no_transcription_models'): the registry arrives via catalog sync.";
|
|
361
|
+
readonly content: {
|
|
362
|
+
readonly 'application/json': {
|
|
363
|
+
readonly schema: {
|
|
364
|
+
readonly $ref: "#/components/schemas/Error";
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
readonly '/v1/responses': {
|
|
373
|
+
readonly post: {
|
|
374
|
+
readonly tags: readonly ["Responses"];
|
|
375
|
+
readonly operationId: "createResponse";
|
|
376
|
+
readonly summary: "Create a model response (OpenAI Responses API)";
|
|
377
|
+
readonly description: string;
|
|
378
|
+
readonly requestBody: {
|
|
379
|
+
readonly required: true;
|
|
380
|
+
readonly content: {
|
|
381
|
+
readonly 'application/json': {
|
|
382
|
+
readonly schema: {
|
|
383
|
+
readonly $ref: "#/components/schemas/ResponseRequest";
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
readonly responses: {
|
|
389
|
+
readonly '200': {
|
|
390
|
+
readonly description: "A response object, or an SSE stream of Responses events when `stream: true`.";
|
|
391
|
+
readonly content: {
|
|
392
|
+
readonly 'application/json': {
|
|
393
|
+
readonly schema: {
|
|
394
|
+
readonly $ref: "#/components/schemas/ResponseObject";
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
readonly '400': {
|
|
400
|
+
readonly $ref: "#/components/responses/BadRequest";
|
|
401
|
+
};
|
|
402
|
+
readonly '401': {
|
|
403
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
404
|
+
};
|
|
405
|
+
readonly '429': {
|
|
406
|
+
readonly $ref: "#/components/responses/RateLimited";
|
|
407
|
+
};
|
|
408
|
+
readonly '502': {
|
|
409
|
+
readonly $ref: "#/components/responses/UpstreamError";
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
readonly '/v1/messages': {
|
|
415
|
+
readonly post: {
|
|
416
|
+
readonly tags: readonly ["Anthropic"];
|
|
417
|
+
readonly operationId: "createMessage";
|
|
418
|
+
readonly summary: "Create a message (Anthropic Messages API)";
|
|
419
|
+
readonly description: string;
|
|
420
|
+
readonly requestBody: {
|
|
421
|
+
readonly required: true;
|
|
422
|
+
readonly content: {
|
|
423
|
+
readonly 'application/json': {
|
|
424
|
+
readonly schema: {
|
|
425
|
+
readonly $ref: "#/components/schemas/AnthropicMessageRequest";
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
readonly responses: {
|
|
431
|
+
readonly '200': {
|
|
432
|
+
readonly description: "An Anthropic message, or an SSE stream of Anthropic events when `stream: true`.";
|
|
433
|
+
readonly content: {
|
|
434
|
+
readonly 'application/json': {
|
|
435
|
+
readonly schema: {
|
|
436
|
+
readonly $ref: "#/components/schemas/AnthropicMessageResponse";
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
readonly '400': {
|
|
442
|
+
readonly $ref: "#/components/responses/BadRequest";
|
|
443
|
+
};
|
|
444
|
+
readonly '401': {
|
|
445
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
446
|
+
};
|
|
447
|
+
readonly '429': {
|
|
448
|
+
readonly $ref: "#/components/responses/RateLimited";
|
|
449
|
+
};
|
|
450
|
+
readonly '502': {
|
|
451
|
+
readonly $ref: "#/components/responses/UpstreamError";
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
readonly '/v1/messages/count_tokens': {
|
|
457
|
+
readonly post: {
|
|
458
|
+
readonly tags: readonly ["Anthropic"];
|
|
459
|
+
readonly operationId: "countTokens";
|
|
460
|
+
readonly summary: "Count input tokens (Anthropic Messages API)";
|
|
461
|
+
readonly description: "Estimates the input token count for an Anthropic Messages request without running it.";
|
|
462
|
+
readonly requestBody: {
|
|
463
|
+
readonly required: true;
|
|
464
|
+
readonly content: {
|
|
465
|
+
readonly 'application/json': {
|
|
466
|
+
readonly schema: {
|
|
467
|
+
readonly $ref: "#/components/schemas/AnthropicMessageRequest";
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
readonly responses: {
|
|
473
|
+
readonly '200': {
|
|
474
|
+
readonly description: "An estimated input token count.";
|
|
475
|
+
readonly content: {
|
|
476
|
+
readonly 'application/json': {
|
|
477
|
+
readonly schema: {
|
|
478
|
+
readonly $ref: "#/components/schemas/CountTokensResponse";
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
readonly '400': {
|
|
484
|
+
readonly $ref: "#/components/responses/BadRequest";
|
|
485
|
+
};
|
|
486
|
+
readonly '401': {
|
|
487
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
readonly '/v1/models': {
|
|
493
|
+
readonly get: {
|
|
494
|
+
readonly tags: readonly ["Models"];
|
|
495
|
+
readonly operationId: "listModels";
|
|
496
|
+
readonly summary: "List available models";
|
|
497
|
+
readonly description: string;
|
|
498
|
+
readonly parameters: readonly [{
|
|
499
|
+
readonly name: "available";
|
|
500
|
+
readonly in: "query";
|
|
501
|
+
readonly required: false;
|
|
502
|
+
readonly description: "When `true`, return only models that are currently usable.";
|
|
503
|
+
readonly schema: {
|
|
504
|
+
readonly type: "boolean";
|
|
505
|
+
};
|
|
506
|
+
}];
|
|
507
|
+
readonly responses: {
|
|
508
|
+
readonly '200': {
|
|
509
|
+
readonly description: "The model list.";
|
|
510
|
+
readonly content: {
|
|
511
|
+
readonly 'application/json': {
|
|
512
|
+
readonly schema: {
|
|
513
|
+
readonly $ref: "#/components/schemas/ModelList";
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
readonly '401': {
|
|
519
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
readonly '/v1beta/models': {
|
|
525
|
+
readonly get: {
|
|
526
|
+
readonly tags: readonly ["Gemini"];
|
|
527
|
+
readonly operationId: "listGeminiModels";
|
|
528
|
+
readonly summary: "List models in Gemini format";
|
|
529
|
+
readonly security: readonly [{
|
|
530
|
+
readonly googleApiKeyHeader: readonly [];
|
|
531
|
+
}, {
|
|
532
|
+
readonly googleApiKeyQuery: readonly [];
|
|
533
|
+
}, {
|
|
534
|
+
readonly bearerAuth: readonly [];
|
|
535
|
+
}];
|
|
536
|
+
readonly responses: {
|
|
537
|
+
readonly '200': {
|
|
538
|
+
readonly description: "Gemini-shaped model list.";
|
|
539
|
+
};
|
|
540
|
+
readonly '401': {
|
|
541
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
readonly '/v1beta/models/{model}': {
|
|
547
|
+
readonly get: {
|
|
548
|
+
readonly tags: readonly ["Gemini"];
|
|
549
|
+
readonly operationId: "getGeminiModel";
|
|
550
|
+
readonly summary: "Get Gemini-shaped model metadata";
|
|
551
|
+
readonly security: readonly [{
|
|
552
|
+
readonly googleApiKeyHeader: readonly [];
|
|
553
|
+
}, {
|
|
554
|
+
readonly googleApiKeyQuery: readonly [];
|
|
555
|
+
}, {
|
|
556
|
+
readonly bearerAuth: readonly [];
|
|
557
|
+
}];
|
|
558
|
+
readonly parameters: readonly [{
|
|
559
|
+
readonly name: "model";
|
|
560
|
+
readonly in: "path";
|
|
561
|
+
readonly required: true;
|
|
562
|
+
readonly schema: {
|
|
563
|
+
readonly type: "string";
|
|
564
|
+
};
|
|
565
|
+
}];
|
|
566
|
+
readonly responses: {
|
|
567
|
+
readonly '200': {
|
|
568
|
+
readonly description: "Gemini-shaped model metadata.";
|
|
569
|
+
};
|
|
570
|
+
readonly '404': {
|
|
571
|
+
readonly description: "Model not found.";
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
readonly '/v1beta/models/{model}:generateContent': {
|
|
577
|
+
readonly post: {
|
|
578
|
+
readonly tags: readonly ["Gemini"];
|
|
579
|
+
readonly operationId: "generateGeminiContent";
|
|
580
|
+
readonly summary: "Generate content using the native Gemini wire format";
|
|
581
|
+
readonly security: readonly [{
|
|
582
|
+
readonly googleApiKeyHeader: readonly [];
|
|
583
|
+
}, {
|
|
584
|
+
readonly googleApiKeyQuery: readonly [];
|
|
585
|
+
}, {
|
|
586
|
+
readonly bearerAuth: readonly [];
|
|
587
|
+
}];
|
|
588
|
+
readonly parameters: readonly [{
|
|
589
|
+
readonly name: "model";
|
|
590
|
+
readonly in: "path";
|
|
591
|
+
readonly required: true;
|
|
592
|
+
readonly schema: {
|
|
593
|
+
readonly type: "string";
|
|
594
|
+
};
|
|
595
|
+
}];
|
|
596
|
+
readonly requestBody: {
|
|
597
|
+
readonly required: true;
|
|
598
|
+
readonly content: {
|
|
599
|
+
readonly 'application/json': {
|
|
600
|
+
readonly schema: {
|
|
601
|
+
readonly $ref: "#/components/schemas/GeminiGenerateRequest";
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
readonly responses: {
|
|
607
|
+
readonly '200': {
|
|
608
|
+
readonly description: "Gemini candidates and usage metadata.";
|
|
609
|
+
};
|
|
610
|
+
readonly '400': {
|
|
611
|
+
readonly $ref: "#/components/responses/BadRequest";
|
|
612
|
+
};
|
|
613
|
+
readonly '401': {
|
|
614
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
readonly '/v1beta/models/{model}:streamGenerateContent': {
|
|
620
|
+
readonly post: {
|
|
621
|
+
readonly tags: readonly ["Gemini"];
|
|
622
|
+
readonly operationId: "streamGeminiContent";
|
|
623
|
+
readonly summary: "Stream native Gemini content";
|
|
624
|
+
readonly description: "Use `?alt=sse` for Gemini CLI SSE. Without it, the response is a streamed JSON array.";
|
|
625
|
+
readonly security: readonly [{
|
|
626
|
+
readonly googleApiKeyHeader: readonly [];
|
|
627
|
+
}, {
|
|
628
|
+
readonly googleApiKeyQuery: readonly [];
|
|
629
|
+
}, {
|
|
630
|
+
readonly bearerAuth: readonly [];
|
|
631
|
+
}];
|
|
632
|
+
readonly parameters: readonly [{
|
|
633
|
+
readonly name: "model";
|
|
634
|
+
readonly in: "path";
|
|
635
|
+
readonly required: true;
|
|
636
|
+
readonly schema: {
|
|
637
|
+
readonly type: "string";
|
|
638
|
+
};
|
|
639
|
+
}, {
|
|
640
|
+
readonly name: "alt";
|
|
641
|
+
readonly in: "query";
|
|
642
|
+
readonly required: false;
|
|
643
|
+
readonly schema: {
|
|
644
|
+
readonly type: "string";
|
|
645
|
+
readonly enum: readonly ["sse"];
|
|
646
|
+
};
|
|
647
|
+
}];
|
|
648
|
+
readonly requestBody: {
|
|
649
|
+
readonly required: true;
|
|
650
|
+
readonly content: {
|
|
651
|
+
readonly 'application/json': {
|
|
652
|
+
readonly schema: {
|
|
653
|
+
readonly $ref: "#/components/schemas/GeminiGenerateRequest";
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
readonly responses: {
|
|
659
|
+
readonly '200': {
|
|
660
|
+
readonly description: "SSE or JSON-array Gemini stream.";
|
|
661
|
+
};
|
|
662
|
+
readonly '400': {
|
|
663
|
+
readonly $ref: "#/components/responses/BadRequest";
|
|
664
|
+
};
|
|
665
|
+
readonly '401': {
|
|
666
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
};
|
|
671
|
+
readonly '/v1beta/models/{model}:countTokens': {
|
|
672
|
+
readonly post: {
|
|
673
|
+
readonly tags: readonly ["Gemini"];
|
|
674
|
+
readonly operationId: "countGeminiTokens";
|
|
675
|
+
readonly summary: "Estimate tokens for Gemini content";
|
|
676
|
+
readonly security: readonly [{
|
|
677
|
+
readonly googleApiKeyHeader: readonly [];
|
|
678
|
+
}, {
|
|
679
|
+
readonly googleApiKeyQuery: readonly [];
|
|
680
|
+
}, {
|
|
681
|
+
readonly bearerAuth: readonly [];
|
|
682
|
+
}];
|
|
683
|
+
readonly parameters: readonly [{
|
|
684
|
+
readonly name: "model";
|
|
685
|
+
readonly in: "path";
|
|
686
|
+
readonly required: true;
|
|
687
|
+
readonly schema: {
|
|
688
|
+
readonly type: "string";
|
|
689
|
+
};
|
|
690
|
+
}];
|
|
691
|
+
readonly requestBody: {
|
|
692
|
+
readonly required: true;
|
|
693
|
+
readonly content: {
|
|
694
|
+
readonly 'application/json': {
|
|
695
|
+
readonly schema: {
|
|
696
|
+
readonly $ref: "#/components/schemas/GeminiGenerateRequest";
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
};
|
|
700
|
+
};
|
|
701
|
+
readonly responses: {
|
|
702
|
+
readonly '200': {
|
|
703
|
+
readonly description: "Heuristic token count.";
|
|
704
|
+
};
|
|
705
|
+
readonly '401': {
|
|
706
|
+
readonly $ref: "#/components/responses/Unauthorized";
|
|
707
|
+
};
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
readonly '/api/tags': {
|
|
712
|
+
readonly get: {
|
|
713
|
+
readonly tags: readonly ["Ollama"];
|
|
714
|
+
readonly operationId: "listOllamaModels";
|
|
715
|
+
readonly summary: "List models in Ollama format";
|
|
716
|
+
readonly 'x-optional-surface': true;
|
|
717
|
+
readonly responses: {
|
|
718
|
+
readonly '200': {
|
|
719
|
+
readonly description: "Ollama model list.";
|
|
720
|
+
};
|
|
721
|
+
readonly '404': {
|
|
722
|
+
readonly description: "Emulation disabled.";
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
readonly '/api/chat': {
|
|
728
|
+
readonly post: {
|
|
729
|
+
readonly tags: readonly ["Ollama"];
|
|
730
|
+
readonly operationId: "ollamaChat";
|
|
731
|
+
readonly summary: "Create an Ollama chat response";
|
|
732
|
+
readonly description: "Streaming defaults to NDJSON, matching Ollama.";
|
|
733
|
+
readonly 'x-optional-surface': true;
|
|
734
|
+
readonly responses: {
|
|
735
|
+
readonly '200': {
|
|
736
|
+
readonly description: "Ollama chat response or NDJSON stream.";
|
|
737
|
+
};
|
|
738
|
+
readonly '404': {
|
|
739
|
+
readonly description: "Emulation disabled.";
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
readonly '/api/generate': {
|
|
745
|
+
readonly post: {
|
|
746
|
+
readonly tags: readonly ["Ollama"];
|
|
747
|
+
readonly operationId: "ollamaGenerate";
|
|
748
|
+
readonly summary: "Create an Ollama legacy prompt response";
|
|
749
|
+
readonly 'x-optional-surface': true;
|
|
750
|
+
readonly responses: {
|
|
751
|
+
readonly '200': {
|
|
752
|
+
readonly description: "Ollama generation response or NDJSON stream.";
|
|
753
|
+
};
|
|
754
|
+
readonly '404': {
|
|
755
|
+
readonly description: "Emulation disabled.";
|
|
756
|
+
};
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
};
|
|
760
|
+
readonly '/api/show': {
|
|
761
|
+
readonly post: {
|
|
762
|
+
readonly tags: readonly ["Ollama"];
|
|
763
|
+
readonly operationId: "showOllamaModel";
|
|
764
|
+
readonly summary: "Show Ollama model metadata";
|
|
765
|
+
readonly 'x-optional-surface': true;
|
|
766
|
+
readonly responses: {
|
|
767
|
+
readonly '200': {
|
|
768
|
+
readonly description: "Ollama model metadata.";
|
|
769
|
+
};
|
|
770
|
+
readonly '404': {
|
|
771
|
+
readonly description: "Emulation disabled or model missing.";
|
|
772
|
+
};
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
};
|
|
776
|
+
readonly '/api/version': {
|
|
777
|
+
readonly get: {
|
|
778
|
+
readonly tags: readonly ["Ollama"];
|
|
779
|
+
readonly operationId: "getOllamaVersion";
|
|
780
|
+
readonly summary: "Get emulated Ollama version";
|
|
781
|
+
readonly 'x-optional-surface': true;
|
|
782
|
+
readonly responses: {
|
|
783
|
+
readonly '200': {
|
|
784
|
+
readonly description: "Emulation version.";
|
|
785
|
+
};
|
|
786
|
+
readonly '404': {
|
|
787
|
+
readonly description: "Emulation disabled.";
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
readonly '/api/embed': {
|
|
793
|
+
readonly post: {
|
|
794
|
+
readonly tags: readonly ["Ollama"];
|
|
795
|
+
readonly operationId: "ollamaEmbed";
|
|
796
|
+
readonly summary: "Create Ollama embeddings";
|
|
797
|
+
readonly 'x-optional-surface': true;
|
|
798
|
+
readonly responses: {
|
|
799
|
+
readonly '200': {
|
|
800
|
+
readonly description: "Ollama embedding vectors.";
|
|
801
|
+
};
|
|
802
|
+
readonly '404': {
|
|
803
|
+
readonly description: "Emulation disabled.";
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
readonly '/api/embeddings': {
|
|
809
|
+
readonly post: {
|
|
810
|
+
readonly tags: readonly ["Ollama"];
|
|
811
|
+
readonly operationId: "ollamaLegacyEmbed";
|
|
812
|
+
readonly summary: "Create a legacy Ollama embedding";
|
|
813
|
+
readonly description: "A valid dashboard session falls through to the dashboard embeddings API.";
|
|
814
|
+
readonly 'x-optional-surface': true;
|
|
815
|
+
readonly responses: {
|
|
816
|
+
readonly '200': {
|
|
817
|
+
readonly description: "Legacy Ollama embedding.";
|
|
818
|
+
};
|
|
819
|
+
readonly '404': {
|
|
820
|
+
readonly description: "Emulation disabled.";
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
readonly '/v1/t/{token}/models': {
|
|
826
|
+
readonly get: {
|
|
827
|
+
readonly tags: readonly ["URL tokens"];
|
|
828
|
+
readonly operationId: "listModelsWithUrlToken";
|
|
829
|
+
readonly summary: "Headerless model discovery";
|
|
830
|
+
readonly parameters: readonly [{
|
|
831
|
+
readonly name: "token";
|
|
832
|
+
readonly in: "path";
|
|
833
|
+
readonly required: true;
|
|
834
|
+
readonly schema: {
|
|
835
|
+
readonly type: "string";
|
|
836
|
+
};
|
|
837
|
+
}];
|
|
838
|
+
readonly security: readonly [];
|
|
839
|
+
readonly responses: {
|
|
840
|
+
readonly '200': {
|
|
841
|
+
readonly description: "OpenAI-shaped model list.";
|
|
842
|
+
};
|
|
843
|
+
readonly '401': {
|
|
844
|
+
readonly description: "Invalid or revoked URL token.";
|
|
845
|
+
};
|
|
846
|
+
};
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
readonly '/v1/t/{token}/chat/completions': {
|
|
850
|
+
readonly post: {
|
|
851
|
+
readonly tags: readonly ["URL tokens"];
|
|
852
|
+
readonly operationId: "chatWithUrlToken";
|
|
853
|
+
readonly summary: "Headerless OpenAI chat completions";
|
|
854
|
+
readonly description: "URL tokens are separately revocable and are never the unified API key. URLs can leak into history and logs.";
|
|
855
|
+
readonly parameters: readonly [{
|
|
856
|
+
readonly name: "token";
|
|
857
|
+
readonly in: "path";
|
|
858
|
+
readonly required: true;
|
|
859
|
+
readonly schema: {
|
|
860
|
+
readonly type: "string";
|
|
861
|
+
};
|
|
862
|
+
}];
|
|
863
|
+
readonly security: readonly [];
|
|
864
|
+
readonly responses: {
|
|
865
|
+
readonly '200': {
|
|
866
|
+
readonly description: "OpenAI chat completion.";
|
|
867
|
+
};
|
|
868
|
+
readonly '401': {
|
|
869
|
+
readonly description: "Invalid or revoked URL token.";
|
|
870
|
+
};
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
readonly '/v1/t/{token}/responses': {
|
|
875
|
+
readonly post: {
|
|
876
|
+
readonly tags: readonly ["URL tokens"];
|
|
877
|
+
readonly operationId: "responsesWithUrlToken";
|
|
878
|
+
readonly summary: "Headerless OpenAI Responses API";
|
|
879
|
+
readonly parameters: readonly [{
|
|
880
|
+
readonly name: "token";
|
|
881
|
+
readonly in: "path";
|
|
882
|
+
readonly required: true;
|
|
883
|
+
readonly schema: {
|
|
884
|
+
readonly type: "string";
|
|
885
|
+
};
|
|
886
|
+
}];
|
|
887
|
+
readonly security: readonly [];
|
|
888
|
+
readonly responses: {
|
|
889
|
+
readonly '200': {
|
|
890
|
+
readonly description: "OpenAI Responses response.";
|
|
891
|
+
};
|
|
892
|
+
readonly '401': {
|
|
893
|
+
readonly description: "Invalid or revoked URL token.";
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
};
|
|
897
|
+
};
|
|
898
|
+
readonly '/v1/t/{token}/api/chat': {
|
|
899
|
+
readonly post: {
|
|
900
|
+
readonly tags: readonly ["URL tokens"];
|
|
901
|
+
readonly operationId: "ollamaChatWithUrlToken";
|
|
902
|
+
readonly summary: "Headerless Ollama chat";
|
|
903
|
+
readonly parameters: readonly [{
|
|
904
|
+
readonly name: "token";
|
|
905
|
+
readonly in: "path";
|
|
906
|
+
readonly required: true;
|
|
907
|
+
readonly schema: {
|
|
908
|
+
readonly type: "string";
|
|
909
|
+
};
|
|
910
|
+
}];
|
|
911
|
+
readonly security: readonly [];
|
|
912
|
+
readonly responses: {
|
|
913
|
+
readonly '200': {
|
|
914
|
+
readonly description: "Ollama response or NDJSON stream.";
|
|
915
|
+
};
|
|
916
|
+
readonly '401': {
|
|
917
|
+
readonly description: "Invalid or revoked URL token.";
|
|
918
|
+
};
|
|
919
|
+
};
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
readonly '/v1/t/{token}/api/tags': {
|
|
923
|
+
readonly get: {
|
|
924
|
+
readonly tags: readonly ["URL tokens"];
|
|
925
|
+
readonly operationId: "ollamaTagsWithUrlToken";
|
|
926
|
+
readonly summary: "Headerless Ollama model discovery";
|
|
927
|
+
readonly parameters: readonly [{
|
|
928
|
+
readonly name: "token";
|
|
929
|
+
readonly in: "path";
|
|
930
|
+
readonly required: true;
|
|
931
|
+
readonly schema: {
|
|
932
|
+
readonly type: "string";
|
|
933
|
+
};
|
|
934
|
+
}];
|
|
935
|
+
readonly security: readonly [];
|
|
936
|
+
readonly responses: {
|
|
937
|
+
readonly '200': {
|
|
938
|
+
readonly description: "Ollama model list.";
|
|
939
|
+
};
|
|
940
|
+
readonly '401': {
|
|
941
|
+
readonly description: "Invalid or revoked URL token.";
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
};
|
|
947
|
+
readonly components: {
|
|
948
|
+
readonly securitySchemes: {
|
|
949
|
+
readonly bearerAuth: {
|
|
950
|
+
readonly type: "http";
|
|
951
|
+
readonly scheme: "bearer";
|
|
952
|
+
readonly description: "Unified API key as `Authorization: Bearer <key>`.";
|
|
953
|
+
};
|
|
954
|
+
readonly apiKeyAuth: {
|
|
955
|
+
readonly type: "apiKey";
|
|
956
|
+
readonly in: "header";
|
|
957
|
+
readonly name: "x-api-key";
|
|
958
|
+
readonly description: "Unified API key as `x-api-key: <key>` (Anthropic-style clients).";
|
|
959
|
+
};
|
|
960
|
+
readonly googleApiKeyHeader: {
|
|
961
|
+
readonly type: "apiKey";
|
|
962
|
+
readonly in: "header";
|
|
963
|
+
readonly name: "x-goog-api-key";
|
|
964
|
+
readonly description: "Unified API key in Gemini SDK format.";
|
|
965
|
+
};
|
|
966
|
+
readonly googleApiKeyQuery: {
|
|
967
|
+
readonly type: "apiKey";
|
|
968
|
+
readonly in: "query";
|
|
969
|
+
readonly name: "key";
|
|
970
|
+
readonly description: "Gemini compatibility fallback. Prefer the header because URLs leak into history and logs.";
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
readonly responses: {
|
|
974
|
+
readonly BadRequest: {
|
|
975
|
+
readonly description: "The request was malformed.";
|
|
976
|
+
readonly content: {
|
|
977
|
+
readonly 'application/json': {
|
|
978
|
+
readonly schema: {
|
|
979
|
+
readonly $ref: "#/components/schemas/Error";
|
|
980
|
+
};
|
|
981
|
+
};
|
|
982
|
+
};
|
|
983
|
+
};
|
|
984
|
+
readonly Unauthorized: {
|
|
985
|
+
readonly description: "Missing or invalid API key.";
|
|
986
|
+
readonly content: {
|
|
987
|
+
readonly 'application/json': {
|
|
988
|
+
readonly schema: {
|
|
989
|
+
readonly $ref: "#/components/schemas/Error";
|
|
990
|
+
};
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
};
|
|
994
|
+
readonly RateLimited: {
|
|
995
|
+
readonly description: "Rate limit exceeded.";
|
|
996
|
+
readonly content: {
|
|
997
|
+
readonly 'application/json': {
|
|
998
|
+
readonly schema: {
|
|
999
|
+
readonly $ref: "#/components/schemas/Error";
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
};
|
|
1003
|
+
};
|
|
1004
|
+
readonly UpstreamError: {
|
|
1005
|
+
readonly description: "Every candidate provider failed to serve the request.";
|
|
1006
|
+
readonly content: {
|
|
1007
|
+
readonly 'application/json': {
|
|
1008
|
+
readonly schema: {
|
|
1009
|
+
readonly $ref: "#/components/schemas/Error";
|
|
1010
|
+
};
|
|
1011
|
+
};
|
|
1012
|
+
};
|
|
1013
|
+
};
|
|
1014
|
+
};
|
|
1015
|
+
readonly schemas: {
|
|
1016
|
+
readonly GeminiGenerateRequest: {
|
|
1017
|
+
readonly type: "object";
|
|
1018
|
+
readonly required: readonly ["contents"];
|
|
1019
|
+
readonly properties: {
|
|
1020
|
+
readonly contents: {
|
|
1021
|
+
readonly type: "array";
|
|
1022
|
+
readonly minItems: 1;
|
|
1023
|
+
readonly items: {
|
|
1024
|
+
readonly type: "object";
|
|
1025
|
+
readonly properties: {
|
|
1026
|
+
readonly role: {
|
|
1027
|
+
readonly type: "string";
|
|
1028
|
+
readonly enum: readonly ["user", "model"];
|
|
1029
|
+
};
|
|
1030
|
+
readonly parts: {
|
|
1031
|
+
readonly type: "array";
|
|
1032
|
+
readonly items: {
|
|
1033
|
+
readonly type: "object";
|
|
1034
|
+
readonly description: "A text, inlineData, functionCall, or functionResponse part.";
|
|
1035
|
+
};
|
|
1036
|
+
};
|
|
1037
|
+
};
|
|
1038
|
+
};
|
|
1039
|
+
};
|
|
1040
|
+
readonly systemInstruction: {
|
|
1041
|
+
readonly type: "object";
|
|
1042
|
+
};
|
|
1043
|
+
readonly tools: {
|
|
1044
|
+
readonly type: "array";
|
|
1045
|
+
readonly items: {
|
|
1046
|
+
readonly type: "object";
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
|
+
readonly toolConfig: {
|
|
1050
|
+
readonly type: "object";
|
|
1051
|
+
};
|
|
1052
|
+
readonly generationConfig: {
|
|
1053
|
+
readonly type: "object";
|
|
1054
|
+
readonly properties: {
|
|
1055
|
+
readonly temperature: {
|
|
1056
|
+
readonly type: "number";
|
|
1057
|
+
};
|
|
1058
|
+
readonly topP: {
|
|
1059
|
+
readonly type: "number";
|
|
1060
|
+
};
|
|
1061
|
+
readonly topK: {
|
|
1062
|
+
readonly type: "integer";
|
|
1063
|
+
};
|
|
1064
|
+
readonly maxOutputTokens: {
|
|
1065
|
+
readonly type: "integer";
|
|
1066
|
+
};
|
|
1067
|
+
readonly stopSequences: {
|
|
1068
|
+
readonly type: "array";
|
|
1069
|
+
readonly items: {
|
|
1070
|
+
readonly type: "string";
|
|
1071
|
+
};
|
|
1072
|
+
};
|
|
1073
|
+
readonly responseMimeType: {
|
|
1074
|
+
readonly type: "string";
|
|
1075
|
+
};
|
|
1076
|
+
readonly responseSchema: {
|
|
1077
|
+
readonly type: "object";
|
|
1078
|
+
};
|
|
1079
|
+
readonly thinkingConfig: {
|
|
1080
|
+
readonly type: "object";
|
|
1081
|
+
};
|
|
1082
|
+
};
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
readonly ChatCompletionRequest: {
|
|
1087
|
+
readonly type: "object";
|
|
1088
|
+
readonly required: readonly ["messages"];
|
|
1089
|
+
readonly properties: {
|
|
1090
|
+
readonly model: {
|
|
1091
|
+
readonly type: "string";
|
|
1092
|
+
readonly description: "Model id, or 'auto' for automatic routing.";
|
|
1093
|
+
readonly default: "auto";
|
|
1094
|
+
};
|
|
1095
|
+
readonly messages: {
|
|
1096
|
+
readonly type: "array";
|
|
1097
|
+
readonly minItems: 1;
|
|
1098
|
+
readonly items: {
|
|
1099
|
+
readonly $ref: "#/components/schemas/Message";
|
|
1100
|
+
};
|
|
1101
|
+
};
|
|
1102
|
+
readonly temperature: {
|
|
1103
|
+
readonly type: "number";
|
|
1104
|
+
readonly minimum: 0;
|
|
1105
|
+
readonly maximum: 2;
|
|
1106
|
+
};
|
|
1107
|
+
readonly max_tokens: {
|
|
1108
|
+
readonly type: "integer";
|
|
1109
|
+
readonly description: "Values <= 0 are treated as \"no limit\".";
|
|
1110
|
+
};
|
|
1111
|
+
readonly top_p: {
|
|
1112
|
+
readonly type: "number";
|
|
1113
|
+
readonly minimum: 0;
|
|
1114
|
+
readonly maximum: 1;
|
|
1115
|
+
};
|
|
1116
|
+
readonly stop: {
|
|
1117
|
+
readonly description: "Up to a few stop sequences.";
|
|
1118
|
+
readonly oneOf: readonly [{
|
|
1119
|
+
readonly type: "string";
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly type: "array";
|
|
1122
|
+
readonly items: {
|
|
1123
|
+
readonly type: "string";
|
|
1124
|
+
};
|
|
1125
|
+
}];
|
|
1126
|
+
};
|
|
1127
|
+
readonly stream: {
|
|
1128
|
+
readonly type: "boolean";
|
|
1129
|
+
readonly default: false;
|
|
1130
|
+
};
|
|
1131
|
+
readonly tools: {
|
|
1132
|
+
readonly type: "array";
|
|
1133
|
+
readonly items: {
|
|
1134
|
+
readonly $ref: "#/components/schemas/Tool";
|
|
1135
|
+
};
|
|
1136
|
+
readonly nullable: true;
|
|
1137
|
+
};
|
|
1138
|
+
readonly tool_choice: {
|
|
1139
|
+
readonly nullable: true;
|
|
1140
|
+
readonly oneOf: readonly [{
|
|
1141
|
+
readonly type: "string";
|
|
1142
|
+
readonly enum: readonly ["none", "auto", "required", "any"];
|
|
1143
|
+
}, {
|
|
1144
|
+
readonly $ref: "#/components/schemas/ToolChoiceObject";
|
|
1145
|
+
}];
|
|
1146
|
+
};
|
|
1147
|
+
readonly parallel_tool_calls: {
|
|
1148
|
+
readonly type: "boolean";
|
|
1149
|
+
readonly nullable: true;
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
readonly Message: {
|
|
1154
|
+
readonly type: "object";
|
|
1155
|
+
readonly required: readonly ["role"];
|
|
1156
|
+
readonly properties: {
|
|
1157
|
+
readonly role: {
|
|
1158
|
+
readonly type: "string";
|
|
1159
|
+
readonly enum: readonly ["system", "developer", "user", "assistant", "tool", "function"];
|
|
1160
|
+
};
|
|
1161
|
+
readonly content: {
|
|
1162
|
+
readonly description: "A string, or an array of content parts (text and image_url) for vision.";
|
|
1163
|
+
readonly oneOf: readonly [{
|
|
1164
|
+
readonly type: "string";
|
|
1165
|
+
}, {
|
|
1166
|
+
readonly type: "array";
|
|
1167
|
+
readonly items: {
|
|
1168
|
+
readonly type: "object";
|
|
1169
|
+
};
|
|
1170
|
+
}];
|
|
1171
|
+
readonly nullable: true;
|
|
1172
|
+
};
|
|
1173
|
+
readonly name: {
|
|
1174
|
+
readonly type: "string";
|
|
1175
|
+
};
|
|
1176
|
+
readonly tool_calls: {
|
|
1177
|
+
readonly type: "array";
|
|
1178
|
+
readonly items: {
|
|
1179
|
+
readonly $ref: "#/components/schemas/ToolCall";
|
|
1180
|
+
};
|
|
1181
|
+
};
|
|
1182
|
+
readonly tool_call_id: {
|
|
1183
|
+
readonly type: "string";
|
|
1184
|
+
};
|
|
1185
|
+
};
|
|
1186
|
+
};
|
|
1187
|
+
readonly Tool: {
|
|
1188
|
+
readonly type: "object";
|
|
1189
|
+
readonly required: readonly ["type", "function"];
|
|
1190
|
+
readonly properties: {
|
|
1191
|
+
readonly type: {
|
|
1192
|
+
readonly type: "string";
|
|
1193
|
+
readonly enum: readonly ["function"];
|
|
1194
|
+
};
|
|
1195
|
+
readonly function: {
|
|
1196
|
+
readonly type: "object";
|
|
1197
|
+
readonly required: readonly ["name"];
|
|
1198
|
+
readonly properties: {
|
|
1199
|
+
readonly name: {
|
|
1200
|
+
readonly type: "string";
|
|
1201
|
+
};
|
|
1202
|
+
readonly description: {
|
|
1203
|
+
readonly type: "string";
|
|
1204
|
+
};
|
|
1205
|
+
readonly parameters: {
|
|
1206
|
+
readonly type: "object";
|
|
1207
|
+
readonly description: "JSON Schema for the function arguments.";
|
|
1208
|
+
};
|
|
1209
|
+
readonly strict: {
|
|
1210
|
+
readonly type: "boolean";
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1215
|
+
};
|
|
1216
|
+
readonly ToolChoiceObject: {
|
|
1217
|
+
readonly type: "object";
|
|
1218
|
+
readonly required: readonly ["type", "function"];
|
|
1219
|
+
readonly properties: {
|
|
1220
|
+
readonly type: {
|
|
1221
|
+
readonly type: "string";
|
|
1222
|
+
readonly enum: readonly ["function"];
|
|
1223
|
+
};
|
|
1224
|
+
readonly function: {
|
|
1225
|
+
readonly type: "object";
|
|
1226
|
+
readonly required: readonly ["name"];
|
|
1227
|
+
readonly properties: {
|
|
1228
|
+
readonly name: {
|
|
1229
|
+
readonly type: "string";
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
};
|
|
1235
|
+
readonly ToolCall: {
|
|
1236
|
+
readonly type: "object";
|
|
1237
|
+
readonly properties: {
|
|
1238
|
+
readonly id: {
|
|
1239
|
+
readonly type: "string";
|
|
1240
|
+
};
|
|
1241
|
+
readonly type: {
|
|
1242
|
+
readonly type: "string";
|
|
1243
|
+
readonly enum: readonly ["function"];
|
|
1244
|
+
};
|
|
1245
|
+
readonly function: {
|
|
1246
|
+
readonly type: "object";
|
|
1247
|
+
readonly properties: {
|
|
1248
|
+
readonly name: {
|
|
1249
|
+
readonly type: "string";
|
|
1250
|
+
};
|
|
1251
|
+
readonly arguments: {
|
|
1252
|
+
readonly type: "string";
|
|
1253
|
+
readonly description: "JSON-encoded arguments.";
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
};
|
|
1258
|
+
};
|
|
1259
|
+
readonly ChatCompletionResponse: {
|
|
1260
|
+
readonly type: "object";
|
|
1261
|
+
readonly properties: {
|
|
1262
|
+
readonly id: {
|
|
1263
|
+
readonly type: "string";
|
|
1264
|
+
};
|
|
1265
|
+
readonly object: {
|
|
1266
|
+
readonly type: "string";
|
|
1267
|
+
readonly example: "chat.completion";
|
|
1268
|
+
};
|
|
1269
|
+
readonly created: {
|
|
1270
|
+
readonly type: "integer";
|
|
1271
|
+
};
|
|
1272
|
+
readonly model: {
|
|
1273
|
+
readonly type: "string";
|
|
1274
|
+
};
|
|
1275
|
+
readonly choices: {
|
|
1276
|
+
readonly type: "array";
|
|
1277
|
+
readonly items: {
|
|
1278
|
+
readonly type: "object";
|
|
1279
|
+
readonly properties: {
|
|
1280
|
+
readonly index: {
|
|
1281
|
+
readonly type: "integer";
|
|
1282
|
+
};
|
|
1283
|
+
readonly message: {
|
|
1284
|
+
readonly $ref: "#/components/schemas/Message";
|
|
1285
|
+
};
|
|
1286
|
+
readonly finish_reason: {
|
|
1287
|
+
readonly type: "string";
|
|
1288
|
+
readonly nullable: true;
|
|
1289
|
+
};
|
|
1290
|
+
};
|
|
1291
|
+
};
|
|
1292
|
+
};
|
|
1293
|
+
readonly usage: {
|
|
1294
|
+
readonly $ref: "#/components/schemas/Usage";
|
|
1295
|
+
};
|
|
1296
|
+
};
|
|
1297
|
+
};
|
|
1298
|
+
readonly CompletionRequest: {
|
|
1299
|
+
readonly type: "object";
|
|
1300
|
+
readonly required: readonly ["prompt"];
|
|
1301
|
+
readonly properties: {
|
|
1302
|
+
readonly model: {
|
|
1303
|
+
readonly type: "string";
|
|
1304
|
+
readonly default: "auto";
|
|
1305
|
+
};
|
|
1306
|
+
readonly prompt: {
|
|
1307
|
+
readonly type: "string";
|
|
1308
|
+
};
|
|
1309
|
+
readonly suffix: {
|
|
1310
|
+
readonly type: "string";
|
|
1311
|
+
readonly description: "Text after the cursor, for fill-in-the-middle clients.";
|
|
1312
|
+
};
|
|
1313
|
+
readonly temperature: {
|
|
1314
|
+
readonly type: "number";
|
|
1315
|
+
readonly minimum: 0;
|
|
1316
|
+
readonly maximum: 2;
|
|
1317
|
+
};
|
|
1318
|
+
readonly max_tokens: {
|
|
1319
|
+
readonly type: "integer";
|
|
1320
|
+
};
|
|
1321
|
+
readonly top_p: {
|
|
1322
|
+
readonly type: "number";
|
|
1323
|
+
readonly minimum: 0;
|
|
1324
|
+
readonly maximum: 1;
|
|
1325
|
+
};
|
|
1326
|
+
readonly stop: {
|
|
1327
|
+
readonly oneOf: readonly [{
|
|
1328
|
+
readonly type: "string";
|
|
1329
|
+
}, {
|
|
1330
|
+
readonly type: "array";
|
|
1331
|
+
readonly items: {
|
|
1332
|
+
readonly type: "string";
|
|
1333
|
+
};
|
|
1334
|
+
}];
|
|
1335
|
+
};
|
|
1336
|
+
readonly stream: {
|
|
1337
|
+
readonly type: "boolean";
|
|
1338
|
+
readonly default: false;
|
|
1339
|
+
};
|
|
1340
|
+
};
|
|
1341
|
+
};
|
|
1342
|
+
readonly CompletionResponse: {
|
|
1343
|
+
readonly type: "object";
|
|
1344
|
+
readonly properties: {
|
|
1345
|
+
readonly id: {
|
|
1346
|
+
readonly type: "string";
|
|
1347
|
+
};
|
|
1348
|
+
readonly object: {
|
|
1349
|
+
readonly type: "string";
|
|
1350
|
+
readonly example: "text_completion";
|
|
1351
|
+
};
|
|
1352
|
+
readonly created: {
|
|
1353
|
+
readonly type: "integer";
|
|
1354
|
+
};
|
|
1355
|
+
readonly model: {
|
|
1356
|
+
readonly type: "string";
|
|
1357
|
+
};
|
|
1358
|
+
readonly choices: {
|
|
1359
|
+
readonly type: "array";
|
|
1360
|
+
readonly items: {
|
|
1361
|
+
readonly type: "object";
|
|
1362
|
+
readonly properties: {
|
|
1363
|
+
readonly text: {
|
|
1364
|
+
readonly type: "string";
|
|
1365
|
+
};
|
|
1366
|
+
readonly index: {
|
|
1367
|
+
readonly type: "integer";
|
|
1368
|
+
};
|
|
1369
|
+
readonly logprobs: {
|
|
1370
|
+
readonly nullable: true;
|
|
1371
|
+
};
|
|
1372
|
+
readonly finish_reason: {
|
|
1373
|
+
readonly type: "string";
|
|
1374
|
+
readonly nullable: true;
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1377
|
+
};
|
|
1378
|
+
};
|
|
1379
|
+
};
|
|
1380
|
+
};
|
|
1381
|
+
readonly EmbeddingRequest: {
|
|
1382
|
+
readonly type: "object";
|
|
1383
|
+
readonly required: readonly ["input"];
|
|
1384
|
+
readonly properties: {
|
|
1385
|
+
readonly model: {
|
|
1386
|
+
readonly type: "string";
|
|
1387
|
+
readonly default: "auto";
|
|
1388
|
+
};
|
|
1389
|
+
readonly input: {
|
|
1390
|
+
readonly oneOf: readonly [{
|
|
1391
|
+
readonly type: "string";
|
|
1392
|
+
}, {
|
|
1393
|
+
readonly type: "array";
|
|
1394
|
+
readonly items: {
|
|
1395
|
+
readonly type: "string";
|
|
1396
|
+
};
|
|
1397
|
+
}];
|
|
1398
|
+
};
|
|
1399
|
+
readonly dimensions: {
|
|
1400
|
+
readonly type: "integer";
|
|
1401
|
+
readonly minimum: 1;
|
|
1402
|
+
readonly description: "Requested output dimensionality, if the model supports it.";
|
|
1403
|
+
};
|
|
1404
|
+
};
|
|
1405
|
+
};
|
|
1406
|
+
readonly EmbeddingResponse: {
|
|
1407
|
+
readonly type: "object";
|
|
1408
|
+
readonly properties: {
|
|
1409
|
+
readonly object: {
|
|
1410
|
+
readonly type: "string";
|
|
1411
|
+
readonly enum: readonly ["list"];
|
|
1412
|
+
};
|
|
1413
|
+
readonly data: {
|
|
1414
|
+
readonly type: "array";
|
|
1415
|
+
readonly items: {
|
|
1416
|
+
readonly type: "object";
|
|
1417
|
+
readonly properties: {
|
|
1418
|
+
readonly object: {
|
|
1419
|
+
readonly type: "string";
|
|
1420
|
+
readonly enum: readonly ["embedding"];
|
|
1421
|
+
};
|
|
1422
|
+
readonly index: {
|
|
1423
|
+
readonly type: "integer";
|
|
1424
|
+
};
|
|
1425
|
+
readonly embedding: {
|
|
1426
|
+
readonly type: "array";
|
|
1427
|
+
readonly items: {
|
|
1428
|
+
readonly type: "number";
|
|
1429
|
+
};
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1432
|
+
};
|
|
1433
|
+
};
|
|
1434
|
+
readonly model: {
|
|
1435
|
+
readonly type: "string";
|
|
1436
|
+
};
|
|
1437
|
+
readonly provider: {
|
|
1438
|
+
readonly type: "string";
|
|
1439
|
+
};
|
|
1440
|
+
readonly usage: {
|
|
1441
|
+
readonly $ref: "#/components/schemas/Usage";
|
|
1442
|
+
};
|
|
1443
|
+
};
|
|
1444
|
+
};
|
|
1445
|
+
readonly ImageRequest: {
|
|
1446
|
+
readonly type: "object";
|
|
1447
|
+
readonly required: readonly ["prompt"];
|
|
1448
|
+
readonly properties: {
|
|
1449
|
+
readonly model: {
|
|
1450
|
+
readonly type: "string";
|
|
1451
|
+
readonly default: "auto";
|
|
1452
|
+
};
|
|
1453
|
+
readonly prompt: {
|
|
1454
|
+
readonly type: "string";
|
|
1455
|
+
readonly minLength: 1;
|
|
1456
|
+
};
|
|
1457
|
+
readonly n: {
|
|
1458
|
+
readonly type: "integer";
|
|
1459
|
+
readonly minimum: 1;
|
|
1460
|
+
readonly maximum: 4;
|
|
1461
|
+
};
|
|
1462
|
+
readonly size: {
|
|
1463
|
+
readonly type: "string";
|
|
1464
|
+
readonly example: "1024x1024";
|
|
1465
|
+
};
|
|
1466
|
+
readonly response_format: {
|
|
1467
|
+
readonly type: "string";
|
|
1468
|
+
readonly enum: readonly ["url", "b64_json"];
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1471
|
+
};
|
|
1472
|
+
readonly ImageResponse: {
|
|
1473
|
+
readonly type: "object";
|
|
1474
|
+
readonly properties: {
|
|
1475
|
+
readonly created: {
|
|
1476
|
+
readonly type: "integer";
|
|
1477
|
+
};
|
|
1478
|
+
readonly data: {
|
|
1479
|
+
readonly type: "array";
|
|
1480
|
+
readonly items: {
|
|
1481
|
+
readonly type: "object";
|
|
1482
|
+
readonly properties: {
|
|
1483
|
+
readonly url: {
|
|
1484
|
+
readonly type: "string";
|
|
1485
|
+
};
|
|
1486
|
+
readonly b64_json: {
|
|
1487
|
+
readonly type: "string";
|
|
1488
|
+
};
|
|
1489
|
+
};
|
|
1490
|
+
};
|
|
1491
|
+
};
|
|
1492
|
+
readonly model: {
|
|
1493
|
+
readonly type: "string";
|
|
1494
|
+
};
|
|
1495
|
+
readonly provider: {
|
|
1496
|
+
readonly type: "string";
|
|
1497
|
+
};
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
readonly VideoRequest: {
|
|
1501
|
+
readonly type: "object";
|
|
1502
|
+
readonly required: readonly ["prompt"];
|
|
1503
|
+
readonly properties: {
|
|
1504
|
+
readonly model: {
|
|
1505
|
+
readonly type: "string";
|
|
1506
|
+
readonly default: "auto";
|
|
1507
|
+
};
|
|
1508
|
+
readonly prompt: {
|
|
1509
|
+
readonly type: "string";
|
|
1510
|
+
readonly minLength: 1;
|
|
1511
|
+
};
|
|
1512
|
+
readonly duration: {
|
|
1513
|
+
readonly type: "integer";
|
|
1514
|
+
readonly minimum: 1;
|
|
1515
|
+
readonly maximum: 120;
|
|
1516
|
+
readonly description: "Requested duration in seconds. Supported values are model-specific; nova-reel accepts multiples of 6.";
|
|
1517
|
+
};
|
|
1518
|
+
readonly aspect_ratio: {
|
|
1519
|
+
readonly type: "string";
|
|
1520
|
+
readonly enum: readonly ["16:9", "9:16"];
|
|
1521
|
+
};
|
|
1522
|
+
readonly image: {
|
|
1523
|
+
readonly type: "string";
|
|
1524
|
+
readonly format: "uri";
|
|
1525
|
+
readonly description: "Optional starting-frame image URL.";
|
|
1526
|
+
};
|
|
1527
|
+
readonly seed: {
|
|
1528
|
+
readonly type: "integer";
|
|
1529
|
+
readonly minimum: -1;
|
|
1530
|
+
readonly maximum: 2147483647;
|
|
1531
|
+
};
|
|
1532
|
+
readonly audio: {
|
|
1533
|
+
readonly type: "boolean";
|
|
1534
|
+
readonly description: "Request generated audio when the selected model supports it.";
|
|
1535
|
+
};
|
|
1536
|
+
};
|
|
1537
|
+
};
|
|
1538
|
+
readonly SpeechRequest: {
|
|
1539
|
+
readonly type: "object";
|
|
1540
|
+
readonly required: readonly ["input"];
|
|
1541
|
+
readonly properties: {
|
|
1542
|
+
readonly model: {
|
|
1543
|
+
readonly type: "string";
|
|
1544
|
+
readonly default: "auto";
|
|
1545
|
+
};
|
|
1546
|
+
readonly input: {
|
|
1547
|
+
readonly type: "string";
|
|
1548
|
+
readonly minLength: 1;
|
|
1549
|
+
};
|
|
1550
|
+
readonly voice: {
|
|
1551
|
+
readonly type: "string";
|
|
1552
|
+
readonly description: "OpenAI voice names are translated to the selected provider voice. Native Gemini and SiliconFlow names are also accepted; unknown names use the provider default.";
|
|
1553
|
+
};
|
|
1554
|
+
readonly response_format: {
|
|
1555
|
+
readonly type: "string";
|
|
1556
|
+
readonly example: "mp3";
|
|
1557
|
+
};
|
|
1558
|
+
};
|
|
1559
|
+
};
|
|
1560
|
+
readonly TranscriptionRequest: {
|
|
1561
|
+
readonly type: "object";
|
|
1562
|
+
readonly required: readonly ["file", "model"];
|
|
1563
|
+
readonly properties: {
|
|
1564
|
+
readonly file: {
|
|
1565
|
+
readonly type: "string";
|
|
1566
|
+
readonly format: "binary";
|
|
1567
|
+
readonly description: "The audio file to transcribe (max 25 MB).";
|
|
1568
|
+
};
|
|
1569
|
+
readonly model: {
|
|
1570
|
+
readonly type: "string";
|
|
1571
|
+
readonly description: "'whisper-1' or 'auto' lets the router pick; a provider model id (e.g. 'whisper-large-v3-turbo', '@cf/openai/whisper') pins to that deployment.";
|
|
1572
|
+
};
|
|
1573
|
+
readonly language: {
|
|
1574
|
+
readonly type: "string";
|
|
1575
|
+
readonly description: "ISO-639-1 hint forwarded to the provider.";
|
|
1576
|
+
};
|
|
1577
|
+
readonly prompt: {
|
|
1578
|
+
readonly type: "string";
|
|
1579
|
+
readonly description: "Optional context/spelling hint forwarded to the provider.";
|
|
1580
|
+
};
|
|
1581
|
+
readonly temperature: {
|
|
1582
|
+
readonly type: "number";
|
|
1583
|
+
readonly minimum: 0;
|
|
1584
|
+
readonly maximum: 1;
|
|
1585
|
+
};
|
|
1586
|
+
readonly response_format: {
|
|
1587
|
+
readonly type: "string";
|
|
1588
|
+
readonly enum: readonly ["json", "text", "verbose_json", "vtt"];
|
|
1589
|
+
readonly default: "json";
|
|
1590
|
+
readonly description: string;
|
|
1591
|
+
};
|
|
1592
|
+
};
|
|
1593
|
+
};
|
|
1594
|
+
readonly ResponseRequest: {
|
|
1595
|
+
readonly type: "object";
|
|
1596
|
+
readonly required: readonly ["input"];
|
|
1597
|
+
readonly properties: {
|
|
1598
|
+
readonly model: {
|
|
1599
|
+
readonly type: "string";
|
|
1600
|
+
readonly default: "auto";
|
|
1601
|
+
};
|
|
1602
|
+
readonly instructions: {
|
|
1603
|
+
readonly type: "string";
|
|
1604
|
+
readonly nullable: true;
|
|
1605
|
+
readonly description: "System-level guidance, sent as a system message.";
|
|
1606
|
+
};
|
|
1607
|
+
readonly input: {
|
|
1608
|
+
readonly description: "A string, or an array of Responses input items.";
|
|
1609
|
+
readonly oneOf: readonly [{
|
|
1610
|
+
readonly type: "string";
|
|
1611
|
+
}, {
|
|
1612
|
+
readonly type: "array";
|
|
1613
|
+
readonly items: {
|
|
1614
|
+
readonly type: "object";
|
|
1615
|
+
};
|
|
1616
|
+
}];
|
|
1617
|
+
};
|
|
1618
|
+
readonly stream: {
|
|
1619
|
+
readonly type: "boolean";
|
|
1620
|
+
readonly default: false;
|
|
1621
|
+
};
|
|
1622
|
+
readonly max_output_tokens: {
|
|
1623
|
+
readonly type: "integer";
|
|
1624
|
+
readonly minimum: 1;
|
|
1625
|
+
readonly nullable: true;
|
|
1626
|
+
};
|
|
1627
|
+
readonly tools: {
|
|
1628
|
+
readonly type: "array";
|
|
1629
|
+
readonly items: {
|
|
1630
|
+
readonly type: "object";
|
|
1631
|
+
};
|
|
1632
|
+
};
|
|
1633
|
+
};
|
|
1634
|
+
};
|
|
1635
|
+
readonly ResponseObject: {
|
|
1636
|
+
readonly type: "object";
|
|
1637
|
+
readonly properties: {
|
|
1638
|
+
readonly id: {
|
|
1639
|
+
readonly type: "string";
|
|
1640
|
+
};
|
|
1641
|
+
readonly object: {
|
|
1642
|
+
readonly type: "string";
|
|
1643
|
+
readonly example: "response";
|
|
1644
|
+
};
|
|
1645
|
+
readonly created_at: {
|
|
1646
|
+
readonly type: "integer";
|
|
1647
|
+
};
|
|
1648
|
+
readonly model: {
|
|
1649
|
+
readonly type: "string";
|
|
1650
|
+
};
|
|
1651
|
+
readonly status: {
|
|
1652
|
+
readonly type: "string";
|
|
1653
|
+
readonly example: "completed";
|
|
1654
|
+
};
|
|
1655
|
+
readonly output: {
|
|
1656
|
+
readonly type: "array";
|
|
1657
|
+
readonly items: {
|
|
1658
|
+
readonly type: "object";
|
|
1659
|
+
};
|
|
1660
|
+
};
|
|
1661
|
+
readonly output_text: {
|
|
1662
|
+
readonly type: "string";
|
|
1663
|
+
};
|
|
1664
|
+
readonly usage: {
|
|
1665
|
+
readonly type: "object";
|
|
1666
|
+
};
|
|
1667
|
+
};
|
|
1668
|
+
};
|
|
1669
|
+
readonly AnthropicMessageRequest: {
|
|
1670
|
+
readonly type: "object";
|
|
1671
|
+
readonly required: readonly ["messages"];
|
|
1672
|
+
readonly properties: {
|
|
1673
|
+
readonly model: {
|
|
1674
|
+
readonly type: "string";
|
|
1675
|
+
readonly description: "Anthropic model name; mapped to your free pool. Defaults to `auto`.";
|
|
1676
|
+
};
|
|
1677
|
+
readonly max_tokens: {
|
|
1678
|
+
readonly type: "integer";
|
|
1679
|
+
readonly description: "Anthropic-required; non-positive values fall back to a default.";
|
|
1680
|
+
};
|
|
1681
|
+
readonly messages: {
|
|
1682
|
+
readonly type: "array";
|
|
1683
|
+
readonly minItems: 1;
|
|
1684
|
+
readonly items: {
|
|
1685
|
+
readonly type: "object";
|
|
1686
|
+
readonly required: readonly ["role", "content"];
|
|
1687
|
+
readonly properties: {
|
|
1688
|
+
readonly role: {
|
|
1689
|
+
readonly type: "string";
|
|
1690
|
+
readonly enum: readonly ["user", "assistant", "system"];
|
|
1691
|
+
};
|
|
1692
|
+
readonly content: {
|
|
1693
|
+
readonly oneOf: readonly [{
|
|
1694
|
+
readonly type: "string";
|
|
1695
|
+
}, {
|
|
1696
|
+
readonly type: "array";
|
|
1697
|
+
readonly items: {
|
|
1698
|
+
readonly type: "object";
|
|
1699
|
+
};
|
|
1700
|
+
}];
|
|
1701
|
+
};
|
|
1702
|
+
};
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
readonly system: {
|
|
1706
|
+
readonly description: "System prompt, as a string or an array of content blocks.";
|
|
1707
|
+
readonly oneOf: readonly [{
|
|
1708
|
+
readonly type: "string";
|
|
1709
|
+
}, {
|
|
1710
|
+
readonly type: "array";
|
|
1711
|
+
readonly items: {
|
|
1712
|
+
readonly type: "object";
|
|
1713
|
+
};
|
|
1714
|
+
}];
|
|
1715
|
+
};
|
|
1716
|
+
readonly temperature: {
|
|
1717
|
+
readonly type: "number";
|
|
1718
|
+
readonly minimum: 0;
|
|
1719
|
+
readonly maximum: 2;
|
|
1720
|
+
};
|
|
1721
|
+
readonly top_p: {
|
|
1722
|
+
readonly type: "number";
|
|
1723
|
+
readonly minimum: 0;
|
|
1724
|
+
readonly maximum: 1;
|
|
1725
|
+
};
|
|
1726
|
+
readonly stream: {
|
|
1727
|
+
readonly type: "boolean";
|
|
1728
|
+
readonly default: false;
|
|
1729
|
+
};
|
|
1730
|
+
readonly stop_sequences: {
|
|
1731
|
+
readonly type: "array";
|
|
1732
|
+
readonly items: {
|
|
1733
|
+
readonly type: "string";
|
|
1734
|
+
};
|
|
1735
|
+
};
|
|
1736
|
+
readonly tools: {
|
|
1737
|
+
readonly type: "array";
|
|
1738
|
+
readonly items: {
|
|
1739
|
+
readonly type: "object";
|
|
1740
|
+
readonly required: readonly ["name"];
|
|
1741
|
+
readonly properties: {
|
|
1742
|
+
readonly name: {
|
|
1743
|
+
readonly type: "string";
|
|
1744
|
+
};
|
|
1745
|
+
readonly description: {
|
|
1746
|
+
readonly type: "string";
|
|
1747
|
+
};
|
|
1748
|
+
readonly input_schema: {
|
|
1749
|
+
readonly type: "object";
|
|
1750
|
+
};
|
|
1751
|
+
};
|
|
1752
|
+
};
|
|
1753
|
+
};
|
|
1754
|
+
readonly tool_choice: {
|
|
1755
|
+
readonly type: "object";
|
|
1756
|
+
readonly properties: {
|
|
1757
|
+
readonly type: {
|
|
1758
|
+
readonly type: "string";
|
|
1759
|
+
readonly enum: readonly ["auto", "any", "tool", "none"];
|
|
1760
|
+
};
|
|
1761
|
+
readonly name: {
|
|
1762
|
+
readonly type: "string";
|
|
1763
|
+
};
|
|
1764
|
+
};
|
|
1765
|
+
};
|
|
1766
|
+
};
|
|
1767
|
+
};
|
|
1768
|
+
readonly AnthropicMessageResponse: {
|
|
1769
|
+
readonly type: "object";
|
|
1770
|
+
readonly properties: {
|
|
1771
|
+
readonly id: {
|
|
1772
|
+
readonly type: "string";
|
|
1773
|
+
};
|
|
1774
|
+
readonly type: {
|
|
1775
|
+
readonly type: "string";
|
|
1776
|
+
readonly enum: readonly ["message"];
|
|
1777
|
+
};
|
|
1778
|
+
readonly role: {
|
|
1779
|
+
readonly type: "string";
|
|
1780
|
+
readonly enum: readonly ["assistant"];
|
|
1781
|
+
};
|
|
1782
|
+
readonly model: {
|
|
1783
|
+
readonly type: "string";
|
|
1784
|
+
};
|
|
1785
|
+
readonly content: {
|
|
1786
|
+
readonly type: "array";
|
|
1787
|
+
readonly items: {
|
|
1788
|
+
readonly type: "object";
|
|
1789
|
+
};
|
|
1790
|
+
};
|
|
1791
|
+
readonly stop_reason: {
|
|
1792
|
+
readonly type: "string";
|
|
1793
|
+
readonly nullable: true;
|
|
1794
|
+
readonly enum: readonly ["end_turn", "max_tokens", "stop_sequence", "tool_use"];
|
|
1795
|
+
};
|
|
1796
|
+
readonly stop_sequence: {
|
|
1797
|
+
readonly type: "string";
|
|
1798
|
+
readonly nullable: true;
|
|
1799
|
+
};
|
|
1800
|
+
readonly usage: {
|
|
1801
|
+
readonly type: "object";
|
|
1802
|
+
readonly properties: {
|
|
1803
|
+
readonly input_tokens: {
|
|
1804
|
+
readonly type: "integer";
|
|
1805
|
+
};
|
|
1806
|
+
readonly output_tokens: {
|
|
1807
|
+
readonly type: "integer";
|
|
1808
|
+
};
|
|
1809
|
+
};
|
|
1810
|
+
};
|
|
1811
|
+
};
|
|
1812
|
+
};
|
|
1813
|
+
readonly CountTokensResponse: {
|
|
1814
|
+
readonly type: "object";
|
|
1815
|
+
readonly properties: {
|
|
1816
|
+
readonly input_tokens: {
|
|
1817
|
+
readonly type: "integer";
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1820
|
+
};
|
|
1821
|
+
readonly Usage: {
|
|
1822
|
+
readonly type: "object";
|
|
1823
|
+
readonly properties: {
|
|
1824
|
+
readonly prompt_tokens: {
|
|
1825
|
+
readonly type: "integer";
|
|
1826
|
+
};
|
|
1827
|
+
readonly completion_tokens: {
|
|
1828
|
+
readonly type: "integer";
|
|
1829
|
+
};
|
|
1830
|
+
readonly total_tokens: {
|
|
1831
|
+
readonly type: "integer";
|
|
1832
|
+
};
|
|
1833
|
+
};
|
|
1834
|
+
};
|
|
1835
|
+
readonly ModelList: {
|
|
1836
|
+
readonly type: "object";
|
|
1837
|
+
readonly properties: {
|
|
1838
|
+
readonly object: {
|
|
1839
|
+
readonly type: "string";
|
|
1840
|
+
readonly enum: readonly ["list"];
|
|
1841
|
+
};
|
|
1842
|
+
readonly data: {
|
|
1843
|
+
readonly type: "array";
|
|
1844
|
+
readonly items: {
|
|
1845
|
+
readonly $ref: "#/components/schemas/Model";
|
|
1846
|
+
};
|
|
1847
|
+
};
|
|
1848
|
+
};
|
|
1849
|
+
};
|
|
1850
|
+
readonly Model: {
|
|
1851
|
+
readonly type: "object";
|
|
1852
|
+
readonly properties: {
|
|
1853
|
+
readonly id: {
|
|
1854
|
+
readonly type: "string";
|
|
1855
|
+
};
|
|
1856
|
+
readonly object: {
|
|
1857
|
+
readonly type: "string";
|
|
1858
|
+
readonly enum: readonly ["model"];
|
|
1859
|
+
};
|
|
1860
|
+
readonly created: {
|
|
1861
|
+
readonly type: "integer";
|
|
1862
|
+
};
|
|
1863
|
+
readonly owned_by: {
|
|
1864
|
+
readonly type: "string";
|
|
1865
|
+
};
|
|
1866
|
+
};
|
|
1867
|
+
};
|
|
1868
|
+
readonly Error: {
|
|
1869
|
+
readonly type: "object";
|
|
1870
|
+
readonly properties: {
|
|
1871
|
+
readonly error: {
|
|
1872
|
+
readonly type: "object";
|
|
1873
|
+
readonly properties: {
|
|
1874
|
+
readonly message: {
|
|
1875
|
+
readonly type: "string";
|
|
1876
|
+
};
|
|
1877
|
+
readonly type: {
|
|
1878
|
+
readonly type: "string";
|
|
1879
|
+
};
|
|
1880
|
+
readonly param: {
|
|
1881
|
+
readonly type: "string";
|
|
1882
|
+
readonly nullable: true;
|
|
1883
|
+
};
|
|
1884
|
+
readonly code: {
|
|
1885
|
+
readonly type: "string";
|
|
1886
|
+
readonly nullable: true;
|
|
1887
|
+
};
|
|
1888
|
+
};
|
|
1889
|
+
};
|
|
1890
|
+
};
|
|
1891
|
+
};
|
|
1892
|
+
};
|
|
1893
|
+
};
|
|
1894
|
+
};
|
|
1895
|
+
export type OpenApiSpec = typeof openapiSpec;
|
|
1896
|
+
//# sourceMappingURL=openapi.d.ts.map
|