@arcships/aimux 0.3.0 → 0.6.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.
Files changed (295) hide show
  1. package/README.md +92 -0
  2. package/dist/error.d.ts +28 -69
  3. package/dist/error.js +72 -160
  4. package/dist/generated/ops.d.ts +75 -0
  5. package/dist/generated/ops.js +80 -0
  6. package/dist/generated/types.d.ts +5607 -0
  7. package/dist/{types/CallOptions.js → generated/types.js} +1 -0
  8. package/dist/index.d.ts +144 -184
  9. package/dist/index.js +314 -295
  10. package/dist/native.d.ts +30 -0
  11. package/dist/native.js +116 -0
  12. package/dist/types.d.ts +1 -139
  13. package/dist/types.js +0 -3
  14. package/index.d.ts +21 -469
  15. package/index.js +57 -107
  16. package/package.json +20 -17
  17. package/dist/types/AiMuxError.d.ts +0 -48
  18. package/dist/types/AiMuxError.js +0 -2
  19. package/dist/types/ApiCallError.d.ts +0 -65
  20. package/dist/types/ApiCallError.js +0 -3
  21. package/dist/types/AspectRatio.d.ts +0 -11
  22. package/dist/types/AspectRatio.js +0 -3
  23. package/dist/types/AudioChunk.d.ts +0 -8
  24. package/dist/types/AudioChunk.js +0 -3
  25. package/dist/types/AudioData.d.ts +0 -11
  26. package/dist/types/AudioData.js +0 -3
  27. package/dist/types/AudioInput.d.ts +0 -8
  28. package/dist/types/AudioInput.js +0 -3
  29. package/dist/types/BreakKind.d.ts +0 -1
  30. package/dist/types/BreakKind.js +0 -3
  31. package/dist/types/CallOptions.d.ts +0 -117
  32. package/dist/types/CatalogueSource.d.ts +0 -4
  33. package/dist/types/CatalogueSource.js +0 -3
  34. package/dist/types/ChatCompletion.d.ts +0 -16
  35. package/dist/types/ChatCompletion.js +0 -2
  36. package/dist/types/ChatCompletionChoice.d.ts +0 -8
  37. package/dist/types/ChatCompletionChoice.js +0 -2
  38. package/dist/types/ChatCompletionChunk.d.ts +0 -15
  39. package/dist/types/ChatCompletionChunk.js +0 -2
  40. package/dist/types/ChatCompletionChunkChoice.d.ts +0 -8
  41. package/dist/types/ChatCompletionChunkChoice.js +0 -2
  42. package/dist/types/ChatCompletionChunkFunction.d.ts +0 -4
  43. package/dist/types/ChatCompletionChunkFunction.js +0 -3
  44. package/dist/types/ChatCompletionChunkToolCall.d.ts +0 -7
  45. package/dist/types/ChatCompletionChunkToolCall.js +0 -2
  46. package/dist/types/ChatCompletionDelta.d.ts +0 -7
  47. package/dist/types/ChatCompletionDelta.js +0 -2
  48. package/dist/types/ChatCompletionFunction.d.ts +0 -4
  49. package/dist/types/ChatCompletionFunction.js +0 -3
  50. package/dist/types/ChatCompletionMessage.d.ts +0 -9
  51. package/dist/types/ChatCompletionMessage.js +0 -2
  52. package/dist/types/ChatCompletionToolCall.d.ts +0 -6
  53. package/dist/types/ChatCompletionToolCall.js +0 -2
  54. package/dist/types/ChatCompletionUsage.d.ts +0 -9
  55. package/dist/types/ChatCompletionUsage.js +0 -2
  56. package/dist/types/CompletionTokensDetails.d.ts +0 -3
  57. package/dist/types/CompletionTokensDetails.js +0 -3
  58. package/dist/types/ContentPart.d.ts +0 -106
  59. package/dist/types/ContentPart.js +0 -2
  60. package/dist/types/EmbeddingCallOptions.d.ts +0 -24
  61. package/dist/types/EmbeddingCallOptions.js +0 -2
  62. package/dist/types/EmbeddingResponse.d.ts +0 -16
  63. package/dist/types/EmbeddingResponse.js +0 -2
  64. package/dist/types/EmbeddingResult.d.ts +0 -33
  65. package/dist/types/EmbeddingResult.js +0 -2
  66. package/dist/types/EmbeddingUsage.d.ts +0 -9
  67. package/dist/types/EmbeddingUsage.js +0 -3
  68. package/dist/types/FileBytes.d.ts +0 -12
  69. package/dist/types/FileBytes.js +0 -3
  70. package/dist/types/FileData.d.ts +0 -25
  71. package/dist/types/FileData.js +0 -2
  72. package/dist/types/FilePart.d.ts +0 -8
  73. package/dist/types/FilePart.js +0 -2
  74. package/dist/types/Fingerprint.d.ts +0 -21
  75. package/dist/types/Fingerprint.js +0 -3
  76. package/dist/types/FinishReason.d.ts +0 -14
  77. package/dist/types/FinishReason.js +0 -2
  78. package/dist/types/FinishReasonUnified.d.ts +0 -4
  79. package/dist/types/FinishReasonUnified.js +0 -3
  80. package/dist/types/FunctionTool.d.ts +0 -35
  81. package/dist/types/FunctionTool.js +0 -2
  82. package/dist/types/GenerateContent.d.ts +0 -77
  83. package/dist/types/GenerateContent.js +0 -2
  84. package/dist/types/GenerateObjectResult.d.ts +0 -48
  85. package/dist/types/GenerateObjectResult.js +0 -2
  86. package/dist/types/GenerateResult.d.ts +0 -45
  87. package/dist/types/GenerateResult.js +0 -2
  88. package/dist/types/GenerateTextOptions.d.ts +0 -62
  89. package/dist/types/GenerateTextOptions.js +0 -2
  90. package/dist/types/GenerateTextResult.d.ts +0 -81
  91. package/dist/types/GenerateTextResult.js +0 -2
  92. package/dist/types/HttpExchange.d.ts +0 -23
  93. package/dist/types/HttpExchange.js +0 -2
  94. package/dist/types/HttpRecord.d.ts +0 -12
  95. package/dist/types/HttpRecord.js +0 -3
  96. package/dist/types/ImageCallOptions.d.ts +0 -54
  97. package/dist/types/ImageCallOptions.js +0 -2
  98. package/dist/types/ImageFile.d.ts +0 -25
  99. package/dist/types/ImageFile.js +0 -2
  100. package/dist/types/ImageFileData.d.ts +0 -8
  101. package/dist/types/ImageFileData.js +0 -3
  102. package/dist/types/ImageOutputs.d.ts +0 -14
  103. package/dist/types/ImageOutputs.js +0 -3
  104. package/dist/types/ImageResponse.d.ts +0 -19
  105. package/dist/types/ImageResponse.js +0 -3
  106. package/dist/types/ImageResult.d.ts +0 -34
  107. package/dist/types/ImageResult.js +0 -2
  108. package/dist/types/ImageUsage.d.ts +0 -19
  109. package/dist/types/ImageUsage.js +0 -3
  110. package/dist/types/InputAudioFormat.d.ts +0 -13
  111. package/dist/types/InputAudioFormat.js +0 -3
  112. package/dist/types/InputRecord.d.ts +0 -16
  113. package/dist/types/InputRecord.js +0 -2
  114. package/dist/types/LanguageModelPromptMessage.d.ts +0 -20
  115. package/dist/types/LanguageModelPromptMessage.js +0 -2
  116. package/dist/types/MessageContent.d.ts +0 -5
  117. package/dist/types/MessageContent.js +0 -2
  118. package/dist/types/Modality.d.ts +0 -4
  119. package/dist/types/Modality.js +0 -3
  120. package/dist/types/ModelCapabilities.d.ts +0 -21
  121. package/dist/types/ModelCapabilities.js +0 -3
  122. package/dist/types/ModelCost.d.ts +0 -10
  123. package/dist/types/ModelCost.js +0 -3
  124. package/dist/types/ModelId.d.ts +0 -7
  125. package/dist/types/ModelId.js +0 -3
  126. package/dist/types/ModelLimits.d.ts +0 -17
  127. package/dist/types/ModelLimits.js +0 -3
  128. package/dist/types/ModelMessage.d.ts +0 -9
  129. package/dist/types/ModelMessage.js +0 -2
  130. package/dist/types/ModelModalities.d.ts +0 -8
  131. package/dist/types/ModelModalities.js +0 -2
  132. package/dist/types/ModelPrompt.d.ts +0 -7
  133. package/dist/types/ModelPrompt.js +0 -2
  134. package/dist/types/ModelSpec.d.ts +0 -33
  135. package/dist/types/ModelSpec.js +0 -2
  136. package/dist/types/ModelType.d.ts +0 -4
  137. package/dist/types/ModelType.js +0 -3
  138. package/dist/types/OutcomeRecord.d.ts +0 -14
  139. package/dist/types/OutcomeRecord.js +0 -2
  140. package/dist/types/OutcomeStatus.d.ts +0 -4
  141. package/dist/types/OutcomeStatus.js +0 -3
  142. package/dist/types/PrefixBreak.d.ts +0 -11
  143. package/dist/types/PrefixBreak.js +0 -2
  144. package/dist/types/PromptTokensDetails.d.ts +0 -4
  145. package/dist/types/PromptTokensDetails.js +0 -3
  146. package/dist/types/ProviderAuditSpec.d.ts +0 -33
  147. package/dist/types/ProviderAuditSpec.js +0 -2
  148. package/dist/types/ProviderFamily.d.ts +0 -5
  149. package/dist/types/ProviderFamily.js +0 -3
  150. package/dist/types/ProviderName.d.ts +0 -258
  151. package/dist/types/ProviderName.js +0 -262
  152. package/dist/types/ProviderRecord.d.ts +0 -30
  153. package/dist/types/ProviderRecord.js +0 -2
  154. package/dist/types/ProviderTool.d.ts +0 -24
  155. package/dist/types/ProviderTool.js +0 -2
  156. package/dist/types/ReasoningEffort.d.ts +0 -7
  157. package/dist/types/ReasoningEffort.js +0 -3
  158. package/dist/types/ReasoningMode.d.ts +0 -4
  159. package/dist/types/ReasoningMode.js +0 -3
  160. package/dist/types/ReasoningPart.d.ts +0 -9
  161. package/dist/types/ReasoningPart.js +0 -3
  162. package/dist/types/ReasoningSpec.d.ts +0 -39
  163. package/dist/types/ReasoningSpec.js +0 -2
  164. package/dist/types/ReasoningVisibility.d.ts +0 -4
  165. package/dist/types/ReasoningVisibility.js +0 -3
  166. package/dist/types/Recording.d.ts +0 -56
  167. package/dist/types/Recording.js +0 -2
  168. package/dist/types/RequestCacheHints.d.ts +0 -9
  169. package/dist/types/RequestCacheHints.js +0 -3
  170. package/dist/types/RequestInfo.d.ts +0 -12
  171. package/dist/types/RequestInfo.js +0 -2
  172. package/dist/types/RerankingCallOptions.d.ts +0 -33
  173. package/dist/types/RerankingCallOptions.js +0 -2
  174. package/dist/types/RerankingDocuments.d.ts +0 -15
  175. package/dist/types/RerankingDocuments.js +0 -2
  176. package/dist/types/RerankingRank.d.ts +0 -13
  177. package/dist/types/RerankingRank.js +0 -3
  178. package/dist/types/RerankingResponse.d.ts +0 -28
  179. package/dist/types/RerankingResponse.js +0 -2
  180. package/dist/types/RerankingResult.d.ts +0 -31
  181. package/dist/types/RerankingResult.js +0 -2
  182. package/dist/types/ResponseFormat.d.ts +0 -11
  183. package/dist/types/ResponseFormat.js +0 -2
  184. package/dist/types/ResponseInfo.d.ts +0 -30
  185. package/dist/types/ResponseInfo.js +0 -2
  186. package/dist/types/ResponseMetadata.d.ts +0 -8
  187. package/dist/types/ResponseMetadata.js +0 -3
  188. package/dist/types/ResponseRecord.d.ts +0 -13
  189. package/dist/types/ResponseRecord.js +0 -3
  190. package/dist/types/Role.d.ts +0 -4
  191. package/dist/types/Role.js +0 -3
  192. package/dist/types/RuntimeModel.d.ts +0 -22
  193. package/dist/types/RuntimeModel.js +0 -3
  194. package/dist/types/SearchCallOptions.d.ts +0 -46
  195. package/dist/types/SearchCallOptions.js +0 -2
  196. package/dist/types/SearchResponse.d.ts +0 -16
  197. package/dist/types/SearchResponse.js +0 -2
  198. package/dist/types/SearchResult.d.ts +0 -32
  199. package/dist/types/SearchResult.js +0 -2
  200. package/dist/types/SearchResultItem.d.ts +0 -33
  201. package/dist/types/SearchResultItem.js +0 -2
  202. package/dist/types/SessionCall.d.ts +0 -20
  203. package/dist/types/SessionCall.js +0 -3
  204. package/dist/types/SessionChainView.d.ts +0 -10
  205. package/dist/types/SessionChainView.js +0 -2
  206. package/dist/types/SessionSource.d.ts +0 -4
  207. package/dist/types/SessionSource.js +0 -3
  208. package/dist/types/SessionStepStat.d.ts +0 -27
  209. package/dist/types/SessionStepStat.js +0 -2
  210. package/dist/types/SessionView.d.ts +0 -16
  211. package/dist/types/SessionView.js +0 -2
  212. package/dist/types/Size.d.ts +0 -11
  213. package/dist/types/Size.js +0 -3
  214. package/dist/types/SourcePart.d.ts +0 -9
  215. package/dist/types/SourcePart.js +0 -3
  216. package/dist/types/SpeechCallOptions.d.ts +0 -47
  217. package/dist/types/SpeechCallOptions.js +0 -2
  218. package/dist/types/SpeechRequest.d.ts +0 -10
  219. package/dist/types/SpeechRequest.js +0 -2
  220. package/dist/types/SpeechResponse.d.ts +0 -24
  221. package/dist/types/SpeechResponse.js +0 -2
  222. package/dist/types/SpeechResult.d.ts +0 -34
  223. package/dist/types/SpeechResult.js +0 -2
  224. package/dist/types/StreamPart.d.ts +0 -161
  225. package/dist/types/StreamPart.js +0 -2
  226. package/dist/types/StreamTextResultAggregated.d.ts +0 -74
  227. package/dist/types/StreamTextResultAggregated.js +0 -2
  228. package/dist/types/TimeoutConfiguration.d.ts +0 -23
  229. package/dist/types/TimeoutConfiguration.js +0 -3
  230. package/dist/types/TimingRecord.d.ts +0 -7
  231. package/dist/types/TimingRecord.js +0 -3
  232. package/dist/types/TokenUsage.d.ts +0 -29
  233. package/dist/types/TokenUsage.js +0 -3
  234. package/dist/types/Tool.d.ts +0 -12
  235. package/dist/types/Tool.js +0 -2
  236. package/dist/types/ToolCall.d.ts +0 -33
  237. package/dist/types/ToolCall.js +0 -2
  238. package/dist/types/ToolChoice.d.ts +0 -12
  239. package/dist/types/ToolChoice.js +0 -3
  240. package/dist/types/ToolResult.d.ts +0 -22
  241. package/dist/types/ToolResult.js +0 -2
  242. package/dist/types/TraceFilter.d.ts +0 -9
  243. package/dist/types/TraceFilter.js +0 -3
  244. package/dist/types/TraceRecord.d.ts +0 -54
  245. package/dist/types/TraceRecord.js +0 -2
  246. package/dist/types/TraceStats.d.ts +0 -20
  247. package/dist/types/TraceStats.js +0 -3
  248. package/dist/types/TranscriptionCallOptions.d.ts +0 -29
  249. package/dist/types/TranscriptionCallOptions.js +0 -2
  250. package/dist/types/TranscriptionRequest.d.ts +0 -9
  251. package/dist/types/TranscriptionRequest.js +0 -3
  252. package/dist/types/TranscriptionResponse.d.ts +0 -24
  253. package/dist/types/TranscriptionResponse.js +0 -2
  254. package/dist/types/TranscriptionResult.d.ts +0 -46
  255. package/dist/types/TranscriptionResult.js +0 -2
  256. package/dist/types/TranscriptionSegment.d.ts +0 -17
  257. package/dist/types/TranscriptionSegment.js +0 -3
  258. package/dist/types/TranscriptionStreamPart.d.ts +0 -70
  259. package/dist/types/TranscriptionStreamPart.js +0 -2
  260. package/dist/types/UploadFileCallOptions.d.ts +0 -27
  261. package/dist/types/UploadFileCallOptions.js +0 -2
  262. package/dist/types/UploadFileData.d.ts +0 -17
  263. package/dist/types/UploadFileData.js +0 -2
  264. package/dist/types/UploadFileResult.d.ts +0 -35
  265. package/dist/types/UploadFileResult.js +0 -2
  266. package/dist/types/Usage.d.ts +0 -13
  267. package/dist/types/Usage.js +0 -2
  268. package/dist/types/UsageSnapshot.d.ts +0 -18
  269. package/dist/types/UsageSnapshot.js +0 -2
  270. package/dist/types/Verdict.d.ts +0 -23
  271. package/dist/types/Verdict.js +0 -2
  272. package/dist/types/VerdictConfidence.d.ts +0 -4
  273. package/dist/types/VerdictConfidence.js +0 -3
  274. package/dist/types/VerdictKind.d.ts +0 -4
  275. package/dist/types/VerdictKind.js +0 -3
  276. package/dist/types/VideoCallOptions.d.ts +0 -69
  277. package/dist/types/VideoCallOptions.js +0 -2
  278. package/dist/types/VideoData.d.ts +0 -22
  279. package/dist/types/VideoData.js +0 -3
  280. package/dist/types/VideoFile.d.ts +0 -29
  281. package/dist/types/VideoFile.js +0 -2
  282. package/dist/types/VideoFileData.d.ts +0 -8
  283. package/dist/types/VideoFileData.js +0 -3
  284. package/dist/types/VideoFrameImage.d.ts +0 -17
  285. package/dist/types/VideoFrameImage.js +0 -2
  286. package/dist/types/VideoFrameType.d.ts +0 -6
  287. package/dist/types/VideoFrameType.js +0 -3
  288. package/dist/types/VideoResponse.d.ts +0 -19
  289. package/dist/types/VideoResponse.js +0 -3
  290. package/dist/types/VideoResult.d.ts +0 -29
  291. package/dist/types/VideoResult.js +0 -2
  292. package/dist/types/Warning.d.ts +0 -23
  293. package/dist/types/Warning.js +0 -3
  294. package/dist/types/serde_json/JsonValue.d.ts +0 -3
  295. package/dist/types/serde_json/JsonValue.js +0 -3
@@ -1,262 +0,0 @@
1
- "use strict";
2
- // ProviderName — GENERATED by `scripts/gen_provider_names.py`.
3
- // Do not edit manually; single source of truth is `provider-registry.json`.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.ProviderName = void 0;
6
- /**
7
- * Names of all built-in OpenAI-compatible providers.
8
- * Use `ProviderName.groq` etc. as the `name` argument of `provider()`.
9
- */
10
- exports.ProviderName = {
11
- abacus: 'abacus',
12
- abliteration_ai: 'abliteration_ai',
13
- ai21: 'ai21',
14
- ai302: 'ai302',
15
- ai_router: 'ai_router',
16
- aiand: 'aiand',
17
- aibadgr: 'aibadgr',
18
- aigc2d: 'aigc2d',
19
- aihubmix: 'aihubmix',
20
- ails: 'ails',
21
- aiml: 'aiml',
22
- aki_io: 'aki_io',
23
- albert: 'albert',
24
- alibaba: 'alibaba',
25
- alibaba_coding_plan: 'alibaba_coding_plan',
26
- alibaba_coding_plan_cn: 'alibaba_coding_plan_cn',
27
- alibaba_token_plan: 'alibaba_token_plan',
28
- alibaba_token_plan_cn: 'alibaba_token_plan_cn',
29
- ambient: 'ambient',
30
- anyapi: 'anyapi',
31
- anyscale: 'anyscale',
32
- apertis: 'apertis',
33
- api2d: 'api2d',
34
- api2gpt: 'api2gpt',
35
- apiserpent: 'apiserpent',
36
- atlascloud: 'atlascloud',
37
- atomic_chat: 'atomic_chat',
38
- auriko: 'auriko',
39
- azure_ai: 'azure_ai',
40
- baichuan: 'baichuan',
41
- baidu: 'baidu',
42
- baidu_v2: 'baidu_v2',
43
- bailing: 'bailing',
44
- baseten: 'baseten',
45
- berget: 'berget',
46
- bigmodel: 'bigmodel',
47
- blueclaw: 'blueclaw',
48
- bytedance: 'bytedance',
49
- byteplus: 'byteplus',
50
- bytez: 'bytez',
51
- canopywave: 'canopywave',
52
- cerebras: 'cerebras',
53
- chatgpt: 'chatgpt',
54
- cherryin: 'cherryin',
55
- chutes: 'chutes',
56
- clarifai: 'clarifai',
57
- claudinio: 'claudinio',
58
- cline_pass: 'cline_pass',
59
- closeai: 'closeai',
60
- cloudferro_sherlock: 'cloudferro_sherlock',
61
- cloudflare: 'cloudflare',
62
- cloudflare_workers_ai: 'cloudflare_workers_ai',
63
- codestral: 'codestral',
64
- cometapi: 'cometapi',
65
- commandcode: 'commandcode',
66
- compactifai: 'compactifai',
67
- copilot: 'copilot',
68
- cortecs: 'cortecs',
69
- coze: 'coze',
70
- crof: 'crof',
71
- crossmodel: 'crossmodel',
72
- crusoe: 'crusoe',
73
- daoxe: 'daoxe',
74
- darkbloom: 'darkbloom',
75
- databricks: 'databricks',
76
- datarobot: 'datarobot',
77
- deepbricks: 'deepbricks',
78
- deepinfra: 'deepinfra',
79
- deepseek: 'deepseek',
80
- digitalocean: 'digitalocean',
81
- dinference: 'dinference',
82
- doubao: 'doubao',
83
- doubleword: 'doubleword',
84
- drun: 'drun',
85
- ebcloud: 'ebcloud',
86
- embercloud: 'embercloud',
87
- empiriolabs: 'empiriolabs',
88
- evroc: 'evroc',
89
- fastcrw: 'fastcrw',
90
- fastgpt: 'fastgpt',
91
- fastrouter: 'fastrouter',
92
- featherless_ai: 'featherless_ai',
93
- firepass: 'firepass',
94
- fireworks: 'fireworks',
95
- freemodel: 'freemodel',
96
- friendliai: 'friendliai',
97
- frogbot: 'frogbot',
98
- galadriel: 'galadriel',
99
- gdc: 'gdc',
100
- gigachat: 'gigachat',
101
- github: 'github',
102
- gmi: 'gmi',
103
- gmicloud: 'gmicloud',
104
- gonka24: 'gonka24',
105
- gradient_ai: 'gradient_ai',
106
- groq: 'groq',
107
- helicone: 'helicone',
108
- heroku: 'heroku',
109
- hetzner: 'hetzner',
110
- hosted_vllm: 'hosted_vllm',
111
- hpc_ai: 'hpc_ai',
112
- hyperbolic: 'hyperbolic',
113
- iflowcn: 'iflowcn',
114
- inception: 'inception',
115
- inceptron: 'inceptron',
116
- inference_net: 'inference_net',
117
- inferencehub: 'inferencehub',
118
- inferx: 'inferx',
119
- infinity: 'infinity',
120
- io_net: 'io_net',
121
- jiekou: 'jiekou',
122
- kenari: 'kenari',
123
- kilo: 'kilo',
124
- kimi: 'kimi',
125
- kimi_for_coding: 'kimi_for_coding',
126
- kiro: 'kiro',
127
- kluster_ai: 'kluster_ai',
128
- krutrim: 'krutrim',
129
- kuae_cloud_coding_plan: 'kuae_cloud_coding_plan',
130
- lambda_ai: 'lambda_ai',
131
- lemonade: 'lemonade',
132
- lemonfox_ai: 'lemonfox_ai',
133
- libertai: 'libertai',
134
- lilac: 'lilac',
135
- lingyiwanwu: 'lingyiwanwu',
136
- llama: 'llama',
137
- llamagate: 'llamagate',
138
- llmgateway: 'llmgateway',
139
- llmtr: 'llmtr',
140
- longcat: 'longcat',
141
- lucidquery: 'lucidquery',
142
- lynkr: 'lynkr',
143
- matterai: 'matterai',
144
- meganova: 'meganova',
145
- merge_gateway: 'merge_gateway',
146
- meta: 'meta',
147
- meta_llama: 'meta_llama',
148
- mimo: 'mimo',
149
- minimax: 'minimax',
150
- minimax_cn: 'minimax_cn',
151
- minimax_cn_coding_plan: 'minimax_cn_coding_plan',
152
- minimax_coding_plan: 'minimax_coding_plan',
153
- mira: 'mira',
154
- mixlayer: 'mixlayer',
155
- moark: 'moark',
156
- modal: 'modal',
157
- model_oracle_ai: 'model_oracle_ai',
158
- modelscope: 'modelscope',
159
- moonshotai: 'moonshotai',
160
- moonshotai_cn: 'moonshotai_cn',
161
- morph: 'morph',
162
- nanogpt: 'nanogpt',
163
- ncompass: 'ncompass',
164
- nearai: 'nearai',
165
- nebius: 'nebius',
166
- neon: 'neon',
167
- neuralwatt: 'neuralwatt',
168
- nextbit: 'nextbit',
169
- nlp_cloud: 'nlp_cloud',
170
- nous_research: 'nous_research',
171
- novita: 'novita',
172
- nscale: 'nscale',
173
- nvidia_nim: 'nvidia_nim',
174
- oci: 'oci',
175
- ofox: 'ofox',
176
- ohmygpt: 'ohmygpt',
177
- ollama_cloud: 'ollama_cloud',
178
- openaimax: 'openaimax',
179
- openaisb: 'openaisb',
180
- opencode: 'opencode',
181
- opencode_go: 'opencode_go',
182
- opencode_zen: 'opencode_zen',
183
- orcarouter: 'orcarouter',
184
- ovhcloud: 'ovhcloud',
185
- parasail: 'parasail',
186
- perfxcloud: 'perfxcloud',
187
- perplexity: 'perplexity',
188
- perplexity_agent: 'perplexity_agent',
189
- petals: 'petals',
190
- pinstripes: 'pinstripes',
191
- pioneer: 'pioneer',
192
- poe: 'poe',
193
- poolside: 'poolside',
194
- portkey: 'portkey',
195
- ppinfra: 'ppinfra',
196
- predibase: 'predibase',
197
- privatemode_ai: 'privatemode_ai',
198
- publicai: 'publicai',
199
- qihang_ai: 'qihang_ai',
200
- qihoo360: 'qihoo360',
201
- qiniu_ai: 'qiniu_ai',
202
- regolo_ai: 'regolo_ai',
203
- reka_ai: 'reka_ai',
204
- requesty: 'requesty',
205
- reve: 'reve',
206
- routing_run: 'routing_run',
207
- sakana: 'sakana',
208
- sambanova: 'sambanova',
209
- sarvam: 'sarvam',
210
- scaleway: 'scaleway',
211
- scx_ai: 'scx_ai',
212
- siliconflow: 'siliconflow',
213
- snowflake: 'snowflake',
214
- snowflake_cortex: 'snowflake_cortex',
215
- stackit: 'stackit',
216
- stepfun: 'stepfun',
217
- stepfun_ai_step_plan: 'stepfun_ai_step_plan',
218
- stepfun_step_plan: 'stepfun_step_plan',
219
- subconscious: 'subconscious',
220
- submodel: 'submodel',
221
- synthetic: 'synthetic',
222
- tencent: 'tencent',
223
- tencent_coding_plan: 'tencent_coding_plan',
224
- tencent_token_plan: 'tencent_token_plan',
225
- tencent_token_plan_enterprise_auto: 'tencent_token_plan_enterprise_auto',
226
- tencent_token_plan_enterprise_pro: 'tencent_token_plan_enterprise_pro',
227
- tencent_token_plan_general_personal: 'tencent_token_plan_general_personal',
228
- tencent_token_plan_hy_personal: 'tencent_token_plan_hy_personal',
229
- tencent_tokenhub: 'tencent_tokenhub',
230
- tensormesh: 'tensormesh',
231
- the_grid_ai: 'the_grid_ai',
232
- thinkingmachines: 'thinkingmachines',
233
- tinfoil: 'tinfoil',
234
- togetherai: 'togetherai',
235
- tokenflux: 'tokenflux',
236
- tokenpony: 'tokenpony',
237
- trustedrouter: 'trustedrouter',
238
- tundra: 'tundra',
239
- umans_ai: 'umans_ai',
240
- unorouter: 'unorouter',
241
- upstage: 'upstage',
242
- v0: 'v0',
243
- venice: 'venice',
244
- vercel: 'vercel',
245
- vivgrid: 'vivgrid',
246
- volc_engine: 'volc_engine',
247
- vultr: 'vultr',
248
- wafer: 'wafer',
249
- wandb: 'wandb',
250
- xiaomi_token_plan_ams: 'xiaomi_token_plan_ams',
251
- xiaomi_token_plan_cn: 'xiaomi_token_plan_cn',
252
- xiaomi_token_plan_sgp: 'xiaomi_token_plan_sgp',
253
- xiaomimimo: 'xiaomimimo',
254
- xpersona: 'xpersona',
255
- xunfei: 'xunfei',
256
- zai: 'zai',
257
- zai_coding_plan: 'zai_coding_plan',
258
- zeldoc: 'zeldoc',
259
- zenmux: 'zenmux',
260
- zhipu_v4: 'zhipu_v4',
261
- zhipuai_coding_plan: 'zhipuai_coding_plan',
262
- };
@@ -1,30 +0,0 @@
1
- import type { JsonValue } from "./serde_json/JsonValue";
2
- /**
3
- * ② 配置侧:provider 身份(请求回放重建用)。
4
- */
5
- export type ProviderRecord = {
6
- /**
7
- * `model.provider()`,如 "openai"。
8
- */
9
- provider: string;
10
- /**
11
- * `model.model_id()`,如 "gpt-4o"。
12
- */
13
- model_id: string;
14
- /**
15
- * provider 的 base_url。
16
- */
17
- base_url: string | null;
18
- /**
19
- * api_key 来源(不存明文):"env:OPENAI_API_KEY" / "explicit" / "none" / "unknown"。
20
- */
21
- api_key_source: string;
22
- /**
23
- * OpenAICompatProfile(能力差异)。
24
- */
25
- profile: JsonValue | null;
26
- /**
27
- * ProviderOptions(headers/org/project/...;已脱敏)。
28
- */
29
- provider_options: JsonValue | null;
30
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,24 +0,0 @@
1
- import type { JsonValue } from "./serde_json/JsonValue";
2
- /**
3
- * A provider-defined tool (e.g. `anthropic.web_search_20250305`,
4
- * `google.googleSearch`). Mirrors the V4 `LanguageModelV4ProviderTool`.
5
- *
6
- * Provider tools are specific to a certain provider. The input and output
7
- * schemas are defined by the provider, and some are executed on the provider's
8
- * servers (e.g. web search, code execution).
9
- */
10
- export type ProviderTool = {
11
- /**
12
- * The ID of the tool, following the format `<provider-id>.<unique-tool-name>`.
13
- */
14
- id: string;
15
- /**
16
- * The name of the tool, unique within this model call.
17
- */
18
- name: string;
19
- /**
20
- * The arguments for configuring the tool. Must match the expected
21
- * arguments defined by the provider for this tool.
22
- */
23
- args: JsonValue;
24
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * Reasoning effort level (aligned with V4 `reasoning` option).
3
- *
4
- * Controls how much reasoning/thinking the model performs. Maps to
5
- * OpenAI `reasoning_effort` and Anthropic `thinking` config.
6
- */
7
- export type ReasoningEffort = "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh";
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- /**
2
- * How reasoning / thinking is controlled for a model.
3
- */
4
- export type ReasoningMode = "Budget" | "Effort" | "Level" | "Fixed" | "Mixed" | "Toggle" | "Other";
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- /**
2
- * A reasoning / thinking segment, extracted to the top level (M7).
3
- */
4
- export type ReasoningPart = {
5
- /**
6
- * The reasoning text.
7
- */
8
- text: string;
9
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,39 +0,0 @@
1
- import type { ReasoningMode } from "./ReasoningMode";
2
- import type { ReasoningVisibility } from "./ReasoningVisibility";
3
- /**
4
- * Reasoning / thinking portrait for a model (advisory).
5
- */
6
- export type ReasoningSpec = {
7
- /**
8
- * Whether the model family supports reasoning at all.
9
- */
10
- supported: boolean;
11
- /**
12
- * Whether reasoning should be on by default.
13
- */
14
- default_enabled: boolean;
15
- /**
16
- * Primary control mode.
17
- */
18
- mode: ReasoningMode | null;
19
- /**
20
- * Default effort level (when `mode` is Effort/Mixed).
21
- */
22
- effort_default?: string | null;
23
- /**
24
- * Supported effort levels.
25
- */
26
- effort_options?: Array<string>;
27
- /**
28
- * Minimum token budget (when `mode` is Budget/Mixed).
29
- */
30
- budget_min?: number | null;
31
- /**
32
- * Interleaved reasoning (thinking blocks between tool calls).
33
- */
34
- interleaved: boolean;
35
- /**
36
- * Output visibility.
37
- */
38
- visibility: ReasoningVisibility | null;
39
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- /**
2
- * Visibility of reasoning output to the caller.
3
- */
4
- export type ReasoningVisibility = "Hidden" | "Summary" | "Full" | "Mixed" | "Omitted" | "Other";
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,56 +0,0 @@
1
- import type { HttpExchange } from "./HttpExchange";
2
- import type { InputRecord } from "./InputRecord";
3
- import type { OutcomeRecord } from "./OutcomeRecord";
4
- import type { ProviderRecord } from "./ProviderRecord";
5
- /**
6
- * 一次完整调用的录制记录(三层 + call_id 关联)。
7
- */
8
- export type Recording = {
9
- /**
10
- * 格式版本。
11
- */
12
- schema: number;
13
- /**
14
- * 暴露逻辑调用 ID,关联三层。
15
- */
16
- call_id: string;
17
- /**
18
- * ISO 8601 时间戳。
19
- */
20
- recorded_at: string;
21
- /**
22
- * ① 输入侧:调用参数(prompt + options)。
23
- */
24
- input: InputRecord;
25
- /**
26
- * ② 配置侧:provider 身份与配置。
27
- */
28
- provider: ProviderRecord;
29
- /**
30
- * ③ HTTP 侧:实际 wire 交换(per-attempt 一条)。
31
- */
32
- exchanges: Array<HttpExchange>;
33
- /**
34
- * 最终结果摘要(状态 + finish_reason + usage)。
35
- */
36
- outcome: OutcomeRecord;
37
- /**
38
- * wire 是否完整(流式 body 未补全时为 false;由 writer 标记)。
39
- */
40
- complete: boolean;
41
- /**
42
- * 传输层封闭信号:层 B 声明"不再有 exchange"(P1:层 A 收尾自动发;
43
- * P2:由层 B 发送)。false = 仍可能来 exchange(记录暂不可定稿)。
44
- */
45
- transport_closed: boolean;
46
- /**
47
- * 会话归组(RFC-0024 P3):所在会话 id。None = 未归组(无 session_id 且
48
- * 推断关闭)。由 `Recorder::record_session` 填充,写入 InputRecord 之前
49
- * 或之后均可(writer 端按 call_id 合并)。
50
- */
51
- session_id?: string | null;
52
- /**
53
- * 会话内步号(0 起,由 SessionStore 分配)。与 `session_id` 同生命周期。
54
- */
55
- step?: number | null;
56
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- /**
2
- * Request-side cache hints (best-effort, e.g. Anthropic `cache_control`).
3
- */
4
- export type RequestCacheHints = {
5
- /**
6
- * Whether any message requested `cache_control` (write) this call.
7
- */
8
- requested_write: boolean;
9
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import type { JsonValue } from "./serde_json/JsonValue";
2
- /**
3
- * Optional request information for telemetry and debugging.
4
- *
5
- * Aligned with the `request?` object that appears on some V4 model results.
6
- */
7
- export type RequestInfo = {
8
- /**
9
- * The request body that was sent (opaque JSON).
10
- */
11
- body: JsonValue | null;
12
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,33 +0,0 @@
1
- import type { RerankingDocuments } from "./RerankingDocuments";
2
- import type { JsonValue } from "./serde_json/JsonValue";
3
- /**
4
- * Options passed to [`RerankingModel::do_rerank`].
5
- *
6
- * Aligned with V4 `RerankingModelV4CallOptions`.
7
- */
8
- export type RerankingCallOptions = {
9
- /**
10
- * Documents to rerank.
11
- */
12
- documents: RerankingDocuments;
13
- /**
14
- * The query to rerank the documents against.
15
- */
16
- query: string;
17
- /**
18
- * Optional limit: return only the top `n` documents.
19
- */
20
- top_n: number | null;
21
- /**
22
- * Additional provider-specific options, keyed by provider name.
23
- */
24
- provider_options: {
25
- [key in string]: JsonValue;
26
- } | null;
27
- /**
28
- * Additional HTTP headers to send with the request.
29
- */
30
- headers: {
31
- [key in string]: string;
32
- } | null;
33
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- import type { JsonValue } from "./serde_json/JsonValue";
2
- /**
3
- * Documents to rerank: either a list of texts or a list of JSON objects.
4
- *
5
- * Aligned with V4 `RerankingModelV4CallOptions.documents`.
6
- */
7
- export type RerankingDocuments = {
8
- "Text": {
9
- values: Array<string>;
10
- };
11
- } | {
12
- "Object": {
13
- values: Array<JsonValue>;
14
- };
15
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- /**
2
- * A single reranked entry: the original index and its relevance score.
3
- */
4
- export type RerankingRank = {
5
- /**
6
- * The index of the document in the original list (before reranking).
7
- */
8
- index: number;
9
- /**
10
- * The relevance score of the document after reranking.
11
- */
12
- relevance_score: number;
13
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,28 +0,0 @@
1
- import type { JsonValue } from "./serde_json/JsonValue";
2
- /**
3
- * Optional response information for a reranking call.
4
- */
5
- export type RerankingResponse = {
6
- /**
7
- * ID for the generated response, if the provider sends one.
8
- */
9
- id: string | null;
10
- /**
11
- * Timestamp for the start of the generated response (ISO 8601 string).
12
- */
13
- timestamp: string | null;
14
- /**
15
- * The ID of the model that was used to generate the response.
16
- */
17
- model_id: string | null;
18
- /**
19
- * Response headers.
20
- */
21
- headers: {
22
- [key in string]: string;
23
- } | null;
24
- /**
25
- * Response body (opaque JSON).
26
- */
27
- body: JsonValue | null;
28
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,31 +0,0 @@
1
- import type { RerankingRank } from "./RerankingRank";
2
- import type { RerankingResponse } from "./RerankingResponse";
3
- import type { Warning } from "./Warning";
4
- import type { JsonValue } from "./serde_json/JsonValue";
5
- /**
6
- * The result of [`RerankingModel::do_rerank`].
7
- *
8
- * Aligned with V4 `RerankingModelV4Result`.
9
- */
10
- export type RerankingResult = {
11
- /**
12
- * Ordered list of reranked documents, sorted by descending relevance
13
- * score. Each entry's `index` refers to the position in the original
14
- * `documents` list.
15
- */
16
- ranking: Array<RerankingRank>;
17
- /**
18
- * Additional provider-specific metadata, keyed by provider name.
19
- */
20
- provider_metadata: {
21
- [key in string]: JsonValue;
22
- } | null;
23
- /**
24
- * Warnings for the call, e.g. unsupported settings.
25
- */
26
- warnings: Array<Warning> | null;
27
- /**
28
- * Optional response information for debugging.
29
- */
30
- response: RerankingResponse | null;
31
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });