@openrouter/sdk 0.0.0-beta.32 → 0.0.0-beta.33

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 (168) hide show
  1. package/FUNCTIONS.md +2 -0
  2. package/REACT_QUERY.md +2 -0
  3. package/README.md +12 -0
  4. package/dist/commonjs/funcs/endpointsList.d.ts +1 -1
  5. package/dist/commonjs/funcs/endpointsList.d.ts.map +1 -1
  6. package/dist/commonjs/funcs/endpointsList.js +1 -1
  7. package/dist/commonjs/funcs/endpointsList.js.map +1 -1
  8. package/dist/commonjs/funcs/modelsList.d.ts +1 -1
  9. package/dist/commonjs/funcs/modelsList.d.ts.map +1 -1
  10. package/dist/commonjs/funcs/modelsList.js +1 -1
  11. package/dist/commonjs/funcs/modelsList.js.map +1 -1
  12. package/dist/commonjs/lib/config.d.ts +2 -2
  13. package/dist/commonjs/lib/config.js +2 -2
  14. package/dist/commonjs/models/endpointslist.d.ts +768 -0
  15. package/dist/commonjs/models/endpointslist.d.ts.map +1 -0
  16. package/dist/commonjs/models/endpointslist.js +625 -0
  17. package/dist/commonjs/models/endpointslist.js.map +1 -0
  18. package/dist/commonjs/models/index.d.ts +3 -0
  19. package/dist/commonjs/models/index.d.ts.map +1 -1
  20. package/dist/commonjs/models/index.js +3 -0
  21. package/dist/commonjs/models/index.js.map +1 -1
  22. package/dist/commonjs/models/keyinfo.d.ts +155 -0
  23. package/dist/commonjs/models/keyinfo.d.ts.map +1 -0
  24. package/dist/commonjs/models/keyinfo.js +163 -0
  25. package/dist/commonjs/models/keyinfo.js.map +1 -0
  26. package/dist/commonjs/models/modelslist.d.ts +854 -0
  27. package/dist/commonjs/models/modelslist.d.ts.map +1 -0
  28. package/dist/commonjs/models/modelslist.js +768 -0
  29. package/dist/commonjs/models/modelslist.js.map +1 -0
  30. package/dist/commonjs/models/openairesponsesrequest.d.ts +52 -52
  31. package/dist/commonjs/models/openairesponsesrequest.d.ts.map +1 -1
  32. package/dist/commonjs/models/openairesponsesrequest.js +74 -76
  33. package/dist/commonjs/models/openairesponsesrequest.js.map +1 -1
  34. package/dist/commonjs/models/operations/getcurrentkey.d.ts +3 -108
  35. package/dist/commonjs/models/operations/getcurrentkey.d.ts.map +1 -1
  36. package/dist/commonjs/models/operations/getcurrentkey.js +4 -88
  37. package/dist/commonjs/models/operations/getcurrentkey.js.map +1 -1
  38. package/dist/commonjs/models/operations/list.d.ts +63 -825
  39. package/dist/commonjs/models/operations/list.d.ts.map +1 -1
  40. package/dist/commonjs/models/operations/list.js +86 -667
  41. package/dist/commonjs/models/operations/list.js.map +1 -1
  42. package/dist/commonjs/models/operations/listmodels.d.ts +16 -865
  43. package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
  44. package/dist/commonjs/models/operations/listmodels.js +19 -742
  45. package/dist/commonjs/models/operations/listmodels.js.map +1 -1
  46. package/dist/commonjs/models/operations/listusermodels.d.ts +3 -852
  47. package/dist/commonjs/models/operations/listusermodels.d.ts.map +1 -1
  48. package/dist/commonjs/models/operations/listusermodels.js +4 -730
  49. package/dist/commonjs/models/operations/listusermodels.js.map +1 -1
  50. package/dist/commonjs/models/operations/previewzdr.d.ts +97 -97
  51. package/dist/commonjs/models/operations/previewzdr.d.ts.map +1 -1
  52. package/dist/commonjs/models/operations/previewzdr.js +134 -133
  53. package/dist/commonjs/models/operations/previewzdr.js.map +1 -1
  54. package/dist/commonjs/models/responsereasoningconfig.d.ts +4 -0
  55. package/dist/commonjs/models/responsereasoningconfig.d.ts.map +1 -1
  56. package/dist/commonjs/models/responsereasoningconfig.js +13 -0
  57. package/dist/commonjs/models/responsereasoningconfig.js.map +1 -1
  58. package/dist/commonjs/models/responsesusage.d.ts +41 -0
  59. package/dist/commonjs/models/responsesusage.d.ts.map +1 -1
  60. package/dist/commonjs/models/responsesusage.js +54 -1
  61. package/dist/commonjs/models/responsesusage.js.map +1 -1
  62. package/dist/commonjs/react-query/endpointsList.d.ts +4 -4
  63. package/dist/commonjs/react-query/endpointsList.d.ts.map +1 -1
  64. package/dist/commonjs/react-query/endpointsList.js.map +1 -1
  65. package/dist/commonjs/react-query/modelsList.d.ts +4 -4
  66. package/dist/commonjs/react-query/modelsList.d.ts.map +1 -1
  67. package/dist/commonjs/react-query/modelsList.js.map +1 -1
  68. package/dist/commonjs/sdk/endpoints.d.ts +1 -1
  69. package/dist/commonjs/sdk/endpoints.d.ts.map +1 -1
  70. package/dist/commonjs/sdk/endpoints.js.map +1 -1
  71. package/dist/commonjs/sdk/models.d.ts +1 -1
  72. package/dist/commonjs/sdk/models.d.ts.map +1 -1
  73. package/dist/commonjs/sdk/models.js.map +1 -1
  74. package/dist/esm/funcs/endpointsList.d.ts +1 -1
  75. package/dist/esm/funcs/endpointsList.d.ts.map +1 -1
  76. package/dist/esm/funcs/endpointsList.js +1 -1
  77. package/dist/esm/funcs/endpointsList.js.map +1 -1
  78. package/dist/esm/funcs/modelsList.d.ts +1 -1
  79. package/dist/esm/funcs/modelsList.d.ts.map +1 -1
  80. package/dist/esm/funcs/modelsList.js +1 -1
  81. package/dist/esm/funcs/modelsList.js.map +1 -1
  82. package/dist/esm/lib/config.d.ts +2 -2
  83. package/dist/esm/lib/config.js +2 -2
  84. package/dist/esm/models/endpointslist.d.ts +768 -0
  85. package/dist/esm/models/endpointslist.d.ts.map +1 -0
  86. package/dist/esm/models/endpointslist.js +562 -0
  87. package/dist/esm/models/endpointslist.js.map +1 -0
  88. package/dist/esm/models/index.d.ts +3 -0
  89. package/dist/esm/models/index.d.ts.map +1 -1
  90. package/dist/esm/models/index.js +3 -0
  91. package/dist/esm/models/index.js.map +1 -1
  92. package/dist/esm/models/keyinfo.d.ts +155 -0
  93. package/dist/esm/models/keyinfo.d.ts.map +1 -0
  94. package/dist/esm/models/keyinfo.js +123 -0
  95. package/dist/esm/models/keyinfo.js.map +1 -0
  96. package/dist/esm/models/modelslist.d.ts +854 -0
  97. package/dist/esm/models/modelslist.d.ts.map +1 -0
  98. package/dist/esm/models/modelslist.js +697 -0
  99. package/dist/esm/models/modelslist.js.map +1 -0
  100. package/dist/esm/models/openairesponsesrequest.d.ts +52 -52
  101. package/dist/esm/models/openairesponsesrequest.d.ts.map +1 -1
  102. package/dist/esm/models/openairesponsesrequest.js +64 -66
  103. package/dist/esm/models/openairesponsesrequest.js.map +1 -1
  104. package/dist/esm/models/operations/getcurrentkey.d.ts +3 -108
  105. package/dist/esm/models/operations/getcurrentkey.d.ts.map +1 -1
  106. package/dist/esm/models/operations/getcurrentkey.js +3 -83
  107. package/dist/esm/models/operations/getcurrentkey.js.map +1 -1
  108. package/dist/esm/models/operations/list.d.ts +63 -825
  109. package/dist/esm/models/operations/list.d.ts.map +1 -1
  110. package/dist/esm/models/operations/list.js +81 -635
  111. package/dist/esm/models/operations/list.js.map +1 -1
  112. package/dist/esm/models/operations/listmodels.d.ts +16 -865
  113. package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
  114. package/dist/esm/models/operations/listmodels.js +16 -704
  115. package/dist/esm/models/operations/listmodels.js.map +1 -1
  116. package/dist/esm/models/operations/listusermodels.d.ts +3 -852
  117. package/dist/esm/models/operations/listusermodels.d.ts.map +1 -1
  118. package/dist/esm/models/operations/listusermodels.js +3 -694
  119. package/dist/esm/models/operations/listusermodels.js.map +1 -1
  120. package/dist/esm/models/operations/previewzdr.d.ts +97 -97
  121. package/dist/esm/models/operations/previewzdr.d.ts.map +1 -1
  122. package/dist/esm/models/operations/previewzdr.js +118 -117
  123. package/dist/esm/models/operations/previewzdr.js.map +1 -1
  124. package/dist/esm/models/responsereasoningconfig.d.ts +4 -0
  125. package/dist/esm/models/responsereasoningconfig.d.ts.map +1 -1
  126. package/dist/esm/models/responsereasoningconfig.js +13 -0
  127. package/dist/esm/models/responsereasoningconfig.js.map +1 -1
  128. package/dist/esm/models/responsesusage.d.ts +41 -0
  129. package/dist/esm/models/responsesusage.d.ts.map +1 -1
  130. package/dist/esm/models/responsesusage.js +51 -0
  131. package/dist/esm/models/responsesusage.js.map +1 -1
  132. package/dist/esm/react-query/endpointsList.d.ts +4 -4
  133. package/dist/esm/react-query/endpointsList.d.ts.map +1 -1
  134. package/dist/esm/react-query/endpointsList.js.map +1 -1
  135. package/dist/esm/react-query/modelsList.d.ts +4 -4
  136. package/dist/esm/react-query/modelsList.d.ts.map +1 -1
  137. package/dist/esm/react-query/modelsList.js.map +1 -1
  138. package/dist/esm/sdk/endpoints.d.ts +1 -1
  139. package/dist/esm/sdk/endpoints.d.ts.map +1 -1
  140. package/dist/esm/sdk/endpoints.js.map +1 -1
  141. package/dist/esm/sdk/models.d.ts +1 -1
  142. package/dist/esm/sdk/models.d.ts.map +1 -1
  143. package/dist/esm/sdk/models.js.map +1 -1
  144. package/docs/sdks/endpoints/README.md +1 -1
  145. package/docs/sdks/models/README.md +1 -1
  146. package/docs/sdks/responses/README.md +4 -0
  147. package/examples/betaResponsesSendRequest.example.ts +2 -0
  148. package/jsr.json +1 -1
  149. package/package.json +1 -1
  150. package/src/funcs/endpointsList.ts +3 -3
  151. package/src/funcs/modelsList.ts +3 -5
  152. package/src/lib/config.ts +2 -2
  153. package/src/models/endpointslist.ts +1034 -0
  154. package/src/models/index.ts +3 -0
  155. package/src/models/keyinfo.ts +281 -0
  156. package/src/models/modelslist.ts +1394 -0
  157. package/src/models/openairesponsesrequest.ts +133 -94
  158. package/src/models/operations/getcurrentkey.ts +5 -203
  159. package/src/models/operations/list.ts +109 -1106
  160. package/src/models/operations/listmodels.ts +26 -1436
  161. package/src/models/operations/listusermodels.ts +5 -1440
  162. package/src/models/operations/previewzdr.ts +196 -225
  163. package/src/models/responsereasoningconfig.ts +17 -0
  164. package/src/models/responsesusage.ts +96 -0
  165. package/src/react-query/endpointsList.ts +4 -4
  166. package/src/react-query/modelsList.ts +4 -4
  167. package/src/sdk/endpoints.ts +1 -1
  168. package/src/sdk/models.ts +1 -1
@@ -1,256 +1,13 @@
1
1
  import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
2
  import { Result as SafeParseResult } from "../../types/fp.js";
4
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- export type ListModelsRequestRequest = {
4
+ import * as models from "../index.js";
5
+ export type ListModelsRequest = {
6
6
  category?: string | undefined;
7
7
  supportedParameters?: string | undefined;
8
8
  useRss?: string | undefined;
9
9
  useRssChatLinks?: string | undefined;
10
10
  };
11
- export type ListModelsPrompt = number | string | any;
12
- export type ListModelsCompletion = number | string | any;
13
- export type ModelsListModelsRequest = number | string | any;
14
- export type ListModelsImage = number | string | any;
15
- export type ListModelsImageOutput = number | string | any;
16
- export type ListModelsAudio = number | string | any;
17
- export type ListModelsInputAudioCache = number | string | any;
18
- export type ListModelsWebSearch = number | string | any;
19
- export type ListModelsInternalReasoning = number | string | any;
20
- export type ListModelsInputCacheRead = number | string | any;
21
- export type ListModelsInputCacheWrite = number | string | any;
22
- /**
23
- * Pricing information for the model
24
- */
25
- export type ListModelsPricing = {
26
- prompt?: number | string | any | undefined;
27
- completion?: number | string | any | undefined;
28
- request?: number | string | any | undefined;
29
- image?: number | string | any | undefined;
30
- imageOutput?: number | string | any | undefined;
31
- audio?: number | string | any | undefined;
32
- inputAudioCache?: number | string | any | undefined;
33
- webSearch?: number | string | any | undefined;
34
- internalReasoning?: number | string | any | undefined;
35
- inputCacheRead?: number | string | any | undefined;
36
- inputCacheWrite?: number | string | any | undefined;
37
- discount?: number | undefined;
38
- };
39
- /**
40
- * Tokenizer type used by the model
41
- */
42
- export declare const ListModelsTokenizer: {
43
- readonly Router: "Router";
44
- readonly Media: "Media";
45
- readonly Other: "Other";
46
- readonly Gpt: "GPT";
47
- readonly Claude: "Claude";
48
- readonly Gemini: "Gemini";
49
- readonly Grok: "Grok";
50
- readonly Cohere: "Cohere";
51
- readonly Nova: "Nova";
52
- readonly Qwen: "Qwen";
53
- readonly Yi: "Yi";
54
- readonly DeepSeek: "DeepSeek";
55
- readonly Mistral: "Mistral";
56
- readonly Llama2: "Llama2";
57
- readonly Llama3: "Llama3";
58
- readonly Llama4: "Llama4";
59
- readonly PaLM: "PaLM";
60
- readonly Rwkv: "RWKV";
61
- readonly Qwen3: "Qwen3";
62
- };
63
- /**
64
- * Tokenizer type used by the model
65
- */
66
- export type ListModelsTokenizer = ClosedEnum<typeof ListModelsTokenizer>;
67
- /**
68
- * Instruction format type
69
- */
70
- export declare const ListModelsInstructType: {
71
- readonly None: "none";
72
- readonly Airoboros: "airoboros";
73
- readonly Alpaca: "alpaca";
74
- readonly AlpacaModif: "alpaca-modif";
75
- readonly Chatml: "chatml";
76
- readonly Claude: "claude";
77
- readonly CodeLlama: "code-llama";
78
- readonly Gemma: "gemma";
79
- readonly Llama2: "llama2";
80
- readonly Llama3: "llama3";
81
- readonly Mistral: "mistral";
82
- readonly Nemotron: "nemotron";
83
- readonly Neural: "neural";
84
- readonly Openchat: "openchat";
85
- readonly Phi3: "phi3";
86
- readonly Rwkv: "rwkv";
87
- readonly Vicuna: "vicuna";
88
- readonly Zephyr: "zephyr";
89
- readonly DeepseekR1: "deepseek-r1";
90
- readonly DeepseekV31: "deepseek-v3.1";
91
- readonly Qwq: "qwq";
92
- readonly Qwen3: "qwen3";
93
- };
94
- /**
95
- * Instruction format type
96
- */
97
- export type ListModelsInstructType = ClosedEnum<typeof ListModelsInstructType>;
98
- export declare const ListModelsInputModality: {
99
- readonly Text: "text";
100
- readonly Image: "image";
101
- readonly File: "file";
102
- readonly Audio: "audio";
103
- };
104
- export type ListModelsInputModality = ClosedEnum<typeof ListModelsInputModality>;
105
- export declare const ListModelsOutputModality: {
106
- readonly Text: "text";
107
- readonly Image: "image";
108
- readonly Embeddings: "embeddings";
109
- };
110
- export type ListModelsOutputModality = ClosedEnum<typeof ListModelsOutputModality>;
111
- /**
112
- * Model architecture information
113
- */
114
- export type ListModelsArchitecture = {
115
- /**
116
- * Tokenizer type used by the model
117
- */
118
- tokenizer?: ListModelsTokenizer | undefined;
119
- /**
120
- * Instruction format type
121
- */
122
- instructType?: ListModelsInstructType | null | undefined;
123
- /**
124
- * Primary modality of the model
125
- */
126
- modality: string | null;
127
- /**
128
- * Supported input modalities
129
- */
130
- inputModalities: Array<ListModelsInputModality>;
131
- /**
132
- * Supported output modalities
133
- */
134
- outputModalities: Array<ListModelsOutputModality>;
135
- };
136
- /**
137
- * Information about the top provider for this model
138
- */
139
- export type ListModelsTopProvider = {
140
- /**
141
- * Context length from the top provider
142
- */
143
- contextLength?: number | null | undefined;
144
- /**
145
- * Maximum completion tokens from the top provider
146
- */
147
- maxCompletionTokens?: number | null | undefined;
148
- /**
149
- * Whether the top provider moderates content
150
- */
151
- isModerated: boolean;
152
- };
153
- /**
154
- * Per-request token limits
155
- */
156
- export type ListModelsPerRequestLimits = {
157
- /**
158
- * Maximum prompt tokens per request
159
- */
160
- promptTokens?: any | undefined;
161
- /**
162
- * Maximum completion tokens per request
163
- */
164
- completionTokens?: any | undefined;
165
- };
166
- export declare const ListModelsSupportedParameter: {
167
- readonly Temperature: "temperature";
168
- readonly TopP: "top_p";
169
- readonly TopK: "top_k";
170
- readonly MinP: "min_p";
171
- readonly TopA: "top_a";
172
- readonly FrequencyPenalty: "frequency_penalty";
173
- readonly PresencePenalty: "presence_penalty";
174
- readonly RepetitionPenalty: "repetition_penalty";
175
- readonly MaxTokens: "max_tokens";
176
- readonly LogitBias: "logit_bias";
177
- readonly Logprobs: "logprobs";
178
- readonly TopLogprobs: "top_logprobs";
179
- readonly Seed: "seed";
180
- readonly ResponseFormat: "response_format";
181
- readonly StructuredOutputs: "structured_outputs";
182
- readonly Stop: "stop";
183
- readonly Tools: "tools";
184
- readonly ToolChoice: "tool_choice";
185
- readonly ParallelToolCalls: "parallel_tool_calls";
186
- readonly IncludeReasoning: "include_reasoning";
187
- readonly Reasoning: "reasoning";
188
- readonly WebSearchOptions: "web_search_options";
189
- readonly Verbosity: "verbosity";
190
- };
191
- export type ListModelsSupportedParameter = ClosedEnum<typeof ListModelsSupportedParameter>;
192
- /**
193
- * Default parameters for this model
194
- */
195
- export type ListModelsDefaultParameters = {
196
- temperature?: number | null | undefined;
197
- topP?: number | null | undefined;
198
- frequencyPenalty?: number | null | undefined;
199
- };
200
- export type ListModelsData = {
201
- /**
202
- * Unique identifier for the model
203
- */
204
- id: string;
205
- /**
206
- * Canonical slug for the model
207
- */
208
- canonicalSlug: string;
209
- /**
210
- * Hugging Face model identifier, if applicable
211
- */
212
- huggingFaceId?: string | null | undefined;
213
- /**
214
- * Display name of the model
215
- */
216
- name: string;
217
- /**
218
- * Unix timestamp of when the model was created
219
- */
220
- created: number;
221
- /**
222
- * Description of the model
223
- */
224
- description?: string | undefined;
225
- /**
226
- * Pricing information for the model
227
- */
228
- pricing: ListModelsPricing;
229
- /**
230
- * Maximum context length in tokens
231
- */
232
- contextLength: number | null;
233
- /**
234
- * Model architecture information
235
- */
236
- architecture: ListModelsArchitecture;
237
- /**
238
- * Information about the top provider for this model
239
- */
240
- topProvider: ListModelsTopProvider;
241
- /**
242
- * Per-request token limits
243
- */
244
- perRequestLimits: ListModelsPerRequestLimits | null;
245
- /**
246
- * List of supported parameters for this model
247
- */
248
- supportedParameters: Array<ListModelsSupportedParameter>;
249
- /**
250
- * Default parameters for this model
251
- */
252
- defaultParameters: ListModelsDefaultParameters | null;
253
- };
254
11
  /**
255
12
  * Returns a list of models or RSS feed
256
13
  */
@@ -258,645 +15,39 @@ export type ListModelsResponseBody = {
258
15
  /**
259
16
  * List of available models
260
17
  */
261
- data: Array<ListModelsData>;
18
+ data: Array<models.ModelsList>;
262
19
  };
263
20
  export type ListModelsResponse = ListModelsResponseBody | string;
264
21
  /** @internal */
265
- export declare const ListModelsRequestRequest$inboundSchema: z.ZodType<ListModelsRequestRequest, z.ZodTypeDef, unknown>;
22
+ export declare const ListModelsRequest$inboundSchema: z.ZodType<ListModelsRequest, z.ZodTypeDef, unknown>;
266
23
  /** @internal */
267
- export type ListModelsRequestRequest$Outbound = {
24
+ export type ListModelsRequest$Outbound = {
268
25
  category?: string | undefined;
269
26
  supported_parameters?: string | undefined;
270
27
  use_rss?: string | undefined;
271
28
  use_rss_chat_links?: string | undefined;
272
29
  };
273
30
  /** @internal */
274
- export declare const ListModelsRequestRequest$outboundSchema: z.ZodType<ListModelsRequestRequest$Outbound, z.ZodTypeDef, ListModelsRequestRequest>;
275
- /**
276
- * @internal
277
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
278
- */
279
- export declare namespace ListModelsRequestRequest$ {
280
- /** @deprecated use `ListModelsRequestRequest$inboundSchema` instead. */
281
- const inboundSchema: z.ZodType<ListModelsRequestRequest, z.ZodTypeDef, unknown>;
282
- /** @deprecated use `ListModelsRequestRequest$outboundSchema` instead. */
283
- const outboundSchema: z.ZodType<ListModelsRequestRequest$Outbound, z.ZodTypeDef, ListModelsRequestRequest>;
284
- /** @deprecated use `ListModelsRequestRequest$Outbound` instead. */
285
- type Outbound = ListModelsRequestRequest$Outbound;
286
- }
287
- export declare function listModelsRequestRequestToJSON(listModelsRequestRequest: ListModelsRequestRequest): string;
288
- export declare function listModelsRequestRequestFromJSON(jsonString: string): SafeParseResult<ListModelsRequestRequest, SDKValidationError>;
289
- /** @internal */
290
- export declare const ListModelsPrompt$inboundSchema: z.ZodType<ListModelsPrompt, z.ZodTypeDef, unknown>;
291
- /** @internal */
292
- export type ListModelsPrompt$Outbound = number | string | any;
293
- /** @internal */
294
- export declare const ListModelsPrompt$outboundSchema: z.ZodType<ListModelsPrompt$Outbound, z.ZodTypeDef, ListModelsPrompt>;
295
- /**
296
- * @internal
297
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
298
- */
299
- export declare namespace ListModelsPrompt$ {
300
- /** @deprecated use `ListModelsPrompt$inboundSchema` instead. */
301
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
302
- /** @deprecated use `ListModelsPrompt$outboundSchema` instead. */
303
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
304
- /** @deprecated use `ListModelsPrompt$Outbound` instead. */
305
- type Outbound = ListModelsPrompt$Outbound;
306
- }
307
- export declare function listModelsPromptToJSON(listModelsPrompt: ListModelsPrompt): string;
308
- export declare function listModelsPromptFromJSON(jsonString: string): SafeParseResult<ListModelsPrompt, SDKValidationError>;
309
- /** @internal */
310
- export declare const ListModelsCompletion$inboundSchema: z.ZodType<ListModelsCompletion, z.ZodTypeDef, unknown>;
311
- /** @internal */
312
- export type ListModelsCompletion$Outbound = number | string | any;
313
- /** @internal */
314
- export declare const ListModelsCompletion$outboundSchema: z.ZodType<ListModelsCompletion$Outbound, z.ZodTypeDef, ListModelsCompletion>;
315
- /**
316
- * @internal
317
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
318
- */
319
- export declare namespace ListModelsCompletion$ {
320
- /** @deprecated use `ListModelsCompletion$inboundSchema` instead. */
321
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
322
- /** @deprecated use `ListModelsCompletion$outboundSchema` instead. */
323
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
324
- /** @deprecated use `ListModelsCompletion$Outbound` instead. */
325
- type Outbound = ListModelsCompletion$Outbound;
326
- }
327
- export declare function listModelsCompletionToJSON(listModelsCompletion: ListModelsCompletion): string;
328
- export declare function listModelsCompletionFromJSON(jsonString: string): SafeParseResult<ListModelsCompletion, SDKValidationError>;
329
- /** @internal */
330
- export declare const ModelsListModelsRequest$inboundSchema: z.ZodType<ModelsListModelsRequest, z.ZodTypeDef, unknown>;
331
- /** @internal */
332
- export type ModelsListModelsRequest$Outbound = number | string | any;
333
- /** @internal */
334
- export declare const ModelsListModelsRequest$outboundSchema: z.ZodType<ModelsListModelsRequest$Outbound, z.ZodTypeDef, ModelsListModelsRequest>;
335
- /**
336
- * @internal
337
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
338
- */
339
- export declare namespace ModelsListModelsRequest$ {
340
- /** @deprecated use `ModelsListModelsRequest$inboundSchema` instead. */
341
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
342
- /** @deprecated use `ModelsListModelsRequest$outboundSchema` instead. */
343
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
344
- /** @deprecated use `ModelsListModelsRequest$Outbound` instead. */
345
- type Outbound = ModelsListModelsRequest$Outbound;
346
- }
347
- export declare function modelsListModelsRequestToJSON(modelsListModelsRequest: ModelsListModelsRequest): string;
348
- export declare function modelsListModelsRequestFromJSON(jsonString: string): SafeParseResult<ModelsListModelsRequest, SDKValidationError>;
349
- /** @internal */
350
- export declare const ListModelsImage$inboundSchema: z.ZodType<ListModelsImage, z.ZodTypeDef, unknown>;
351
- /** @internal */
352
- export type ListModelsImage$Outbound = number | string | any;
353
- /** @internal */
354
- export declare const ListModelsImage$outboundSchema: z.ZodType<ListModelsImage$Outbound, z.ZodTypeDef, ListModelsImage>;
355
- /**
356
- * @internal
357
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
358
- */
359
- export declare namespace ListModelsImage$ {
360
- /** @deprecated use `ListModelsImage$inboundSchema` instead. */
361
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
362
- /** @deprecated use `ListModelsImage$outboundSchema` instead. */
363
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
364
- /** @deprecated use `ListModelsImage$Outbound` instead. */
365
- type Outbound = ListModelsImage$Outbound;
366
- }
367
- export declare function listModelsImageToJSON(listModelsImage: ListModelsImage): string;
368
- export declare function listModelsImageFromJSON(jsonString: string): SafeParseResult<ListModelsImage, SDKValidationError>;
369
- /** @internal */
370
- export declare const ListModelsImageOutput$inboundSchema: z.ZodType<ListModelsImageOutput, z.ZodTypeDef, unknown>;
371
- /** @internal */
372
- export type ListModelsImageOutput$Outbound = number | string | any;
373
- /** @internal */
374
- export declare const ListModelsImageOutput$outboundSchema: z.ZodType<ListModelsImageOutput$Outbound, z.ZodTypeDef, ListModelsImageOutput>;
375
- /**
376
- * @internal
377
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
378
- */
379
- export declare namespace ListModelsImageOutput$ {
380
- /** @deprecated use `ListModelsImageOutput$inboundSchema` instead. */
381
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
382
- /** @deprecated use `ListModelsImageOutput$outboundSchema` instead. */
383
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
384
- /** @deprecated use `ListModelsImageOutput$Outbound` instead. */
385
- type Outbound = ListModelsImageOutput$Outbound;
386
- }
387
- export declare function listModelsImageOutputToJSON(listModelsImageOutput: ListModelsImageOutput): string;
388
- export declare function listModelsImageOutputFromJSON(jsonString: string): SafeParseResult<ListModelsImageOutput, SDKValidationError>;
389
- /** @internal */
390
- export declare const ListModelsAudio$inboundSchema: z.ZodType<ListModelsAudio, z.ZodTypeDef, unknown>;
391
- /** @internal */
392
- export type ListModelsAudio$Outbound = number | string | any;
393
- /** @internal */
394
- export declare const ListModelsAudio$outboundSchema: z.ZodType<ListModelsAudio$Outbound, z.ZodTypeDef, ListModelsAudio>;
395
- /**
396
- * @internal
397
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
398
- */
399
- export declare namespace ListModelsAudio$ {
400
- /** @deprecated use `ListModelsAudio$inboundSchema` instead. */
401
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
402
- /** @deprecated use `ListModelsAudio$outboundSchema` instead. */
403
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
404
- /** @deprecated use `ListModelsAudio$Outbound` instead. */
405
- type Outbound = ListModelsAudio$Outbound;
406
- }
407
- export declare function listModelsAudioToJSON(listModelsAudio: ListModelsAudio): string;
408
- export declare function listModelsAudioFromJSON(jsonString: string): SafeParseResult<ListModelsAudio, SDKValidationError>;
409
- /** @internal */
410
- export declare const ListModelsInputAudioCache$inboundSchema: z.ZodType<ListModelsInputAudioCache, z.ZodTypeDef, unknown>;
411
- /** @internal */
412
- export type ListModelsInputAudioCache$Outbound = number | string | any;
413
- /** @internal */
414
- export declare const ListModelsInputAudioCache$outboundSchema: z.ZodType<ListModelsInputAudioCache$Outbound, z.ZodTypeDef, ListModelsInputAudioCache>;
415
- /**
416
- * @internal
417
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
418
- */
419
- export declare namespace ListModelsInputAudioCache$ {
420
- /** @deprecated use `ListModelsInputAudioCache$inboundSchema` instead. */
421
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
422
- /** @deprecated use `ListModelsInputAudioCache$outboundSchema` instead. */
423
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
424
- /** @deprecated use `ListModelsInputAudioCache$Outbound` instead. */
425
- type Outbound = ListModelsInputAudioCache$Outbound;
426
- }
427
- export declare function listModelsInputAudioCacheToJSON(listModelsInputAudioCache: ListModelsInputAudioCache): string;
428
- export declare function listModelsInputAudioCacheFromJSON(jsonString: string): SafeParseResult<ListModelsInputAudioCache, SDKValidationError>;
429
- /** @internal */
430
- export declare const ListModelsWebSearch$inboundSchema: z.ZodType<ListModelsWebSearch, z.ZodTypeDef, unknown>;
431
- /** @internal */
432
- export type ListModelsWebSearch$Outbound = number | string | any;
433
- /** @internal */
434
- export declare const ListModelsWebSearch$outboundSchema: z.ZodType<ListModelsWebSearch$Outbound, z.ZodTypeDef, ListModelsWebSearch>;
435
- /**
436
- * @internal
437
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
438
- */
439
- export declare namespace ListModelsWebSearch$ {
440
- /** @deprecated use `ListModelsWebSearch$inboundSchema` instead. */
441
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
442
- /** @deprecated use `ListModelsWebSearch$outboundSchema` instead. */
443
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
444
- /** @deprecated use `ListModelsWebSearch$Outbound` instead. */
445
- type Outbound = ListModelsWebSearch$Outbound;
446
- }
447
- export declare function listModelsWebSearchToJSON(listModelsWebSearch: ListModelsWebSearch): string;
448
- export declare function listModelsWebSearchFromJSON(jsonString: string): SafeParseResult<ListModelsWebSearch, SDKValidationError>;
449
- /** @internal */
450
- export declare const ListModelsInternalReasoning$inboundSchema: z.ZodType<ListModelsInternalReasoning, z.ZodTypeDef, unknown>;
451
- /** @internal */
452
- export type ListModelsInternalReasoning$Outbound = number | string | any;
453
- /** @internal */
454
- export declare const ListModelsInternalReasoning$outboundSchema: z.ZodType<ListModelsInternalReasoning$Outbound, z.ZodTypeDef, ListModelsInternalReasoning>;
455
- /**
456
- * @internal
457
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
458
- */
459
- export declare namespace ListModelsInternalReasoning$ {
460
- /** @deprecated use `ListModelsInternalReasoning$inboundSchema` instead. */
461
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
462
- /** @deprecated use `ListModelsInternalReasoning$outboundSchema` instead. */
463
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
464
- /** @deprecated use `ListModelsInternalReasoning$Outbound` instead. */
465
- type Outbound = ListModelsInternalReasoning$Outbound;
466
- }
467
- export declare function listModelsInternalReasoningToJSON(listModelsInternalReasoning: ListModelsInternalReasoning): string;
468
- export declare function listModelsInternalReasoningFromJSON(jsonString: string): SafeParseResult<ListModelsInternalReasoning, SDKValidationError>;
469
- /** @internal */
470
- export declare const ListModelsInputCacheRead$inboundSchema: z.ZodType<ListModelsInputCacheRead, z.ZodTypeDef, unknown>;
471
- /** @internal */
472
- export type ListModelsInputCacheRead$Outbound = number | string | any;
473
- /** @internal */
474
- export declare const ListModelsInputCacheRead$outboundSchema: z.ZodType<ListModelsInputCacheRead$Outbound, z.ZodTypeDef, ListModelsInputCacheRead>;
475
- /**
476
- * @internal
477
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
478
- */
479
- export declare namespace ListModelsInputCacheRead$ {
480
- /** @deprecated use `ListModelsInputCacheRead$inboundSchema` instead. */
481
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
482
- /** @deprecated use `ListModelsInputCacheRead$outboundSchema` instead. */
483
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
484
- /** @deprecated use `ListModelsInputCacheRead$Outbound` instead. */
485
- type Outbound = ListModelsInputCacheRead$Outbound;
486
- }
487
- export declare function listModelsInputCacheReadToJSON(listModelsInputCacheRead: ListModelsInputCacheRead): string;
488
- export declare function listModelsInputCacheReadFromJSON(jsonString: string): SafeParseResult<ListModelsInputCacheRead, SDKValidationError>;
489
- /** @internal */
490
- export declare const ListModelsInputCacheWrite$inboundSchema: z.ZodType<ListModelsInputCacheWrite, z.ZodTypeDef, unknown>;
491
- /** @internal */
492
- export type ListModelsInputCacheWrite$Outbound = number | string | any;
493
- /** @internal */
494
- export declare const ListModelsInputCacheWrite$outboundSchema: z.ZodType<ListModelsInputCacheWrite$Outbound, z.ZodTypeDef, ListModelsInputCacheWrite>;
495
- /**
496
- * @internal
497
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
498
- */
499
- export declare namespace ListModelsInputCacheWrite$ {
500
- /** @deprecated use `ListModelsInputCacheWrite$inboundSchema` instead. */
501
- const inboundSchema: z.ZodType<any, z.ZodTypeDef, unknown>;
502
- /** @deprecated use `ListModelsInputCacheWrite$outboundSchema` instead. */
503
- const outboundSchema: z.ZodType<any, z.ZodTypeDef, any>;
504
- /** @deprecated use `ListModelsInputCacheWrite$Outbound` instead. */
505
- type Outbound = ListModelsInputCacheWrite$Outbound;
506
- }
507
- export declare function listModelsInputCacheWriteToJSON(listModelsInputCacheWrite: ListModelsInputCacheWrite): string;
508
- export declare function listModelsInputCacheWriteFromJSON(jsonString: string): SafeParseResult<ListModelsInputCacheWrite, SDKValidationError>;
509
- /** @internal */
510
- export declare const ListModelsPricing$inboundSchema: z.ZodType<ListModelsPricing, z.ZodTypeDef, unknown>;
511
- /** @internal */
512
- export type ListModelsPricing$Outbound = {
513
- prompt?: number | string | any | undefined;
514
- completion?: number | string | any | undefined;
515
- request?: number | string | any | undefined;
516
- image?: number | string | any | undefined;
517
- image_output?: number | string | any | undefined;
518
- audio?: number | string | any | undefined;
519
- input_audio_cache?: number | string | any | undefined;
520
- web_search?: number | string | any | undefined;
521
- internal_reasoning?: number | string | any | undefined;
522
- input_cache_read?: number | string | any | undefined;
523
- input_cache_write?: number | string | any | undefined;
524
- discount?: number | undefined;
525
- };
526
- /** @internal */
527
- export declare const ListModelsPricing$outboundSchema: z.ZodType<ListModelsPricing$Outbound, z.ZodTypeDef, ListModelsPricing>;
528
- /**
529
- * @internal
530
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
531
- */
532
- export declare namespace ListModelsPricing$ {
533
- /** @deprecated use `ListModelsPricing$inboundSchema` instead. */
534
- const inboundSchema: z.ZodType<ListModelsPricing, z.ZodTypeDef, unknown>;
535
- /** @deprecated use `ListModelsPricing$outboundSchema` instead. */
536
- const outboundSchema: z.ZodType<ListModelsPricing$Outbound, z.ZodTypeDef, ListModelsPricing>;
537
- /** @deprecated use `ListModelsPricing$Outbound` instead. */
538
- type Outbound = ListModelsPricing$Outbound;
539
- }
540
- export declare function listModelsPricingToJSON(listModelsPricing: ListModelsPricing): string;
541
- export declare function listModelsPricingFromJSON(jsonString: string): SafeParseResult<ListModelsPricing, SDKValidationError>;
542
- /** @internal */
543
- export declare const ListModelsTokenizer$inboundSchema: z.ZodNativeEnum<typeof ListModelsTokenizer>;
544
- /** @internal */
545
- export declare const ListModelsTokenizer$outboundSchema: z.ZodNativeEnum<typeof ListModelsTokenizer>;
546
- /**
547
- * @internal
548
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
549
- */
550
- export declare namespace ListModelsTokenizer$ {
551
- /** @deprecated use `ListModelsTokenizer$inboundSchema` instead. */
552
- const inboundSchema: z.ZodNativeEnum<{
553
- readonly Router: "Router";
554
- readonly Media: "Media";
555
- readonly Other: "Other";
556
- readonly Gpt: "GPT";
557
- readonly Claude: "Claude";
558
- readonly Gemini: "Gemini";
559
- readonly Grok: "Grok";
560
- readonly Cohere: "Cohere";
561
- readonly Nova: "Nova";
562
- readonly Qwen: "Qwen";
563
- readonly Yi: "Yi";
564
- readonly DeepSeek: "DeepSeek";
565
- readonly Mistral: "Mistral";
566
- readonly Llama2: "Llama2";
567
- readonly Llama3: "Llama3";
568
- readonly Llama4: "Llama4";
569
- readonly PaLM: "PaLM";
570
- readonly Rwkv: "RWKV";
571
- readonly Qwen3: "Qwen3";
572
- }>;
573
- /** @deprecated use `ListModelsTokenizer$outboundSchema` instead. */
574
- const outboundSchema: z.ZodNativeEnum<{
575
- readonly Router: "Router";
576
- readonly Media: "Media";
577
- readonly Other: "Other";
578
- readonly Gpt: "GPT";
579
- readonly Claude: "Claude";
580
- readonly Gemini: "Gemini";
581
- readonly Grok: "Grok";
582
- readonly Cohere: "Cohere";
583
- readonly Nova: "Nova";
584
- readonly Qwen: "Qwen";
585
- readonly Yi: "Yi";
586
- readonly DeepSeek: "DeepSeek";
587
- readonly Mistral: "Mistral";
588
- readonly Llama2: "Llama2";
589
- readonly Llama3: "Llama3";
590
- readonly Llama4: "Llama4";
591
- readonly PaLM: "PaLM";
592
- readonly Rwkv: "RWKV";
593
- readonly Qwen3: "Qwen3";
594
- }>;
595
- }
596
- /** @internal */
597
- export declare const ListModelsInstructType$inboundSchema: z.ZodNativeEnum<typeof ListModelsInstructType>;
598
- /** @internal */
599
- export declare const ListModelsInstructType$outboundSchema: z.ZodNativeEnum<typeof ListModelsInstructType>;
600
- /**
601
- * @internal
602
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
603
- */
604
- export declare namespace ListModelsInstructType$ {
605
- /** @deprecated use `ListModelsInstructType$inboundSchema` instead. */
606
- const inboundSchema: z.ZodNativeEnum<{
607
- readonly None: "none";
608
- readonly Airoboros: "airoboros";
609
- readonly Alpaca: "alpaca";
610
- readonly AlpacaModif: "alpaca-modif";
611
- readonly Chatml: "chatml";
612
- readonly Claude: "claude";
613
- readonly CodeLlama: "code-llama";
614
- readonly Gemma: "gemma";
615
- readonly Llama2: "llama2";
616
- readonly Llama3: "llama3";
617
- readonly Mistral: "mistral";
618
- readonly Nemotron: "nemotron";
619
- readonly Neural: "neural";
620
- readonly Openchat: "openchat";
621
- readonly Phi3: "phi3";
622
- readonly Rwkv: "rwkv";
623
- readonly Vicuna: "vicuna";
624
- readonly Zephyr: "zephyr";
625
- readonly DeepseekR1: "deepseek-r1";
626
- readonly DeepseekV31: "deepseek-v3.1";
627
- readonly Qwq: "qwq";
628
- readonly Qwen3: "qwen3";
629
- }>;
630
- /** @deprecated use `ListModelsInstructType$outboundSchema` instead. */
631
- const outboundSchema: z.ZodNativeEnum<{
632
- readonly None: "none";
633
- readonly Airoboros: "airoboros";
634
- readonly Alpaca: "alpaca";
635
- readonly AlpacaModif: "alpaca-modif";
636
- readonly Chatml: "chatml";
637
- readonly Claude: "claude";
638
- readonly CodeLlama: "code-llama";
639
- readonly Gemma: "gemma";
640
- readonly Llama2: "llama2";
641
- readonly Llama3: "llama3";
642
- readonly Mistral: "mistral";
643
- readonly Nemotron: "nemotron";
644
- readonly Neural: "neural";
645
- readonly Openchat: "openchat";
646
- readonly Phi3: "phi3";
647
- readonly Rwkv: "rwkv";
648
- readonly Vicuna: "vicuna";
649
- readonly Zephyr: "zephyr";
650
- readonly DeepseekR1: "deepseek-r1";
651
- readonly DeepseekV31: "deepseek-v3.1";
652
- readonly Qwq: "qwq";
653
- readonly Qwen3: "qwen3";
654
- }>;
655
- }
656
- /** @internal */
657
- export declare const ListModelsInputModality$inboundSchema: z.ZodNativeEnum<typeof ListModelsInputModality>;
658
- /** @internal */
659
- export declare const ListModelsInputModality$outboundSchema: z.ZodNativeEnum<typeof ListModelsInputModality>;
660
- /**
661
- * @internal
662
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
663
- */
664
- export declare namespace ListModelsInputModality$ {
665
- /** @deprecated use `ListModelsInputModality$inboundSchema` instead. */
666
- const inboundSchema: z.ZodNativeEnum<{
667
- readonly Text: "text";
668
- readonly Image: "image";
669
- readonly File: "file";
670
- readonly Audio: "audio";
671
- }>;
672
- /** @deprecated use `ListModelsInputModality$outboundSchema` instead. */
673
- const outboundSchema: z.ZodNativeEnum<{
674
- readonly Text: "text";
675
- readonly Image: "image";
676
- readonly File: "file";
677
- readonly Audio: "audio";
678
- }>;
679
- }
680
- /** @internal */
681
- export declare const ListModelsOutputModality$inboundSchema: z.ZodNativeEnum<typeof ListModelsOutputModality>;
682
- /** @internal */
683
- export declare const ListModelsOutputModality$outboundSchema: z.ZodNativeEnum<typeof ListModelsOutputModality>;
684
- /**
685
- * @internal
686
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
687
- */
688
- export declare namespace ListModelsOutputModality$ {
689
- /** @deprecated use `ListModelsOutputModality$inboundSchema` instead. */
690
- const inboundSchema: z.ZodNativeEnum<{
691
- readonly Text: "text";
692
- readonly Image: "image";
693
- readonly Embeddings: "embeddings";
694
- }>;
695
- /** @deprecated use `ListModelsOutputModality$outboundSchema` instead. */
696
- const outboundSchema: z.ZodNativeEnum<{
697
- readonly Text: "text";
698
- readonly Image: "image";
699
- readonly Embeddings: "embeddings";
700
- }>;
701
- }
702
- /** @internal */
703
- export declare const ListModelsArchitecture$inboundSchema: z.ZodType<ListModelsArchitecture, z.ZodTypeDef, unknown>;
704
- /** @internal */
705
- export type ListModelsArchitecture$Outbound = {
706
- tokenizer?: string | undefined;
707
- instruct_type?: string | null | undefined;
708
- modality: string | null;
709
- input_modalities: Array<string>;
710
- output_modalities: Array<string>;
711
- };
712
- /** @internal */
713
- export declare const ListModelsArchitecture$outboundSchema: z.ZodType<ListModelsArchitecture$Outbound, z.ZodTypeDef, ListModelsArchitecture>;
714
- /**
715
- * @internal
716
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
717
- */
718
- export declare namespace ListModelsArchitecture$ {
719
- /** @deprecated use `ListModelsArchitecture$inboundSchema` instead. */
720
- const inboundSchema: z.ZodType<ListModelsArchitecture, z.ZodTypeDef, unknown>;
721
- /** @deprecated use `ListModelsArchitecture$outboundSchema` instead. */
722
- const outboundSchema: z.ZodType<ListModelsArchitecture$Outbound, z.ZodTypeDef, ListModelsArchitecture>;
723
- /** @deprecated use `ListModelsArchitecture$Outbound` instead. */
724
- type Outbound = ListModelsArchitecture$Outbound;
725
- }
726
- export declare function listModelsArchitectureToJSON(listModelsArchitecture: ListModelsArchitecture): string;
727
- export declare function listModelsArchitectureFromJSON(jsonString: string): SafeParseResult<ListModelsArchitecture, SDKValidationError>;
728
- /** @internal */
729
- export declare const ListModelsTopProvider$inboundSchema: z.ZodType<ListModelsTopProvider, z.ZodTypeDef, unknown>;
730
- /** @internal */
731
- export type ListModelsTopProvider$Outbound = {
732
- context_length?: number | null | undefined;
733
- max_completion_tokens?: number | null | undefined;
734
- is_moderated: boolean;
735
- };
736
- /** @internal */
737
- export declare const ListModelsTopProvider$outboundSchema: z.ZodType<ListModelsTopProvider$Outbound, z.ZodTypeDef, ListModelsTopProvider>;
738
- /**
739
- * @internal
740
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
741
- */
742
- export declare namespace ListModelsTopProvider$ {
743
- /** @deprecated use `ListModelsTopProvider$inboundSchema` instead. */
744
- const inboundSchema: z.ZodType<ListModelsTopProvider, z.ZodTypeDef, unknown>;
745
- /** @deprecated use `ListModelsTopProvider$outboundSchema` instead. */
746
- const outboundSchema: z.ZodType<ListModelsTopProvider$Outbound, z.ZodTypeDef, ListModelsTopProvider>;
747
- /** @deprecated use `ListModelsTopProvider$Outbound` instead. */
748
- type Outbound = ListModelsTopProvider$Outbound;
749
- }
750
- export declare function listModelsTopProviderToJSON(listModelsTopProvider: ListModelsTopProvider): string;
751
- export declare function listModelsTopProviderFromJSON(jsonString: string): SafeParseResult<ListModelsTopProvider, SDKValidationError>;
752
- /** @internal */
753
- export declare const ListModelsPerRequestLimits$inboundSchema: z.ZodType<ListModelsPerRequestLimits, z.ZodTypeDef, unknown>;
754
- /** @internal */
755
- export type ListModelsPerRequestLimits$Outbound = {
756
- prompt_tokens?: any | undefined;
757
- completion_tokens?: any | undefined;
758
- };
759
- /** @internal */
760
- export declare const ListModelsPerRequestLimits$outboundSchema: z.ZodType<ListModelsPerRequestLimits$Outbound, z.ZodTypeDef, ListModelsPerRequestLimits>;
761
- /**
762
- * @internal
763
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
764
- */
765
- export declare namespace ListModelsPerRequestLimits$ {
766
- /** @deprecated use `ListModelsPerRequestLimits$inboundSchema` instead. */
767
- const inboundSchema: z.ZodType<ListModelsPerRequestLimits, z.ZodTypeDef, unknown>;
768
- /** @deprecated use `ListModelsPerRequestLimits$outboundSchema` instead. */
769
- const outboundSchema: z.ZodType<ListModelsPerRequestLimits$Outbound, z.ZodTypeDef, ListModelsPerRequestLimits>;
770
- /** @deprecated use `ListModelsPerRequestLimits$Outbound` instead. */
771
- type Outbound = ListModelsPerRequestLimits$Outbound;
772
- }
773
- export declare function listModelsPerRequestLimitsToJSON(listModelsPerRequestLimits: ListModelsPerRequestLimits): string;
774
- export declare function listModelsPerRequestLimitsFromJSON(jsonString: string): SafeParseResult<ListModelsPerRequestLimits, SDKValidationError>;
775
- /** @internal */
776
- export declare const ListModelsSupportedParameter$inboundSchema: z.ZodNativeEnum<typeof ListModelsSupportedParameter>;
777
- /** @internal */
778
- export declare const ListModelsSupportedParameter$outboundSchema: z.ZodNativeEnum<typeof ListModelsSupportedParameter>;
779
- /**
780
- * @internal
781
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
782
- */
783
- export declare namespace ListModelsSupportedParameter$ {
784
- /** @deprecated use `ListModelsSupportedParameter$inboundSchema` instead. */
785
- const inboundSchema: z.ZodNativeEnum<{
786
- readonly Temperature: "temperature";
787
- readonly TopP: "top_p";
788
- readonly TopK: "top_k";
789
- readonly MinP: "min_p";
790
- readonly TopA: "top_a";
791
- readonly FrequencyPenalty: "frequency_penalty";
792
- readonly PresencePenalty: "presence_penalty";
793
- readonly RepetitionPenalty: "repetition_penalty";
794
- readonly MaxTokens: "max_tokens";
795
- readonly LogitBias: "logit_bias";
796
- readonly Logprobs: "logprobs";
797
- readonly TopLogprobs: "top_logprobs";
798
- readonly Seed: "seed";
799
- readonly ResponseFormat: "response_format";
800
- readonly StructuredOutputs: "structured_outputs";
801
- readonly Stop: "stop";
802
- readonly Tools: "tools";
803
- readonly ToolChoice: "tool_choice";
804
- readonly ParallelToolCalls: "parallel_tool_calls";
805
- readonly IncludeReasoning: "include_reasoning";
806
- readonly Reasoning: "reasoning";
807
- readonly WebSearchOptions: "web_search_options";
808
- readonly Verbosity: "verbosity";
809
- }>;
810
- /** @deprecated use `ListModelsSupportedParameter$outboundSchema` instead. */
811
- const outboundSchema: z.ZodNativeEnum<{
812
- readonly Temperature: "temperature";
813
- readonly TopP: "top_p";
814
- readonly TopK: "top_k";
815
- readonly MinP: "min_p";
816
- readonly TopA: "top_a";
817
- readonly FrequencyPenalty: "frequency_penalty";
818
- readonly PresencePenalty: "presence_penalty";
819
- readonly RepetitionPenalty: "repetition_penalty";
820
- readonly MaxTokens: "max_tokens";
821
- readonly LogitBias: "logit_bias";
822
- readonly Logprobs: "logprobs";
823
- readonly TopLogprobs: "top_logprobs";
824
- readonly Seed: "seed";
825
- readonly ResponseFormat: "response_format";
826
- readonly StructuredOutputs: "structured_outputs";
827
- readonly Stop: "stop";
828
- readonly Tools: "tools";
829
- readonly ToolChoice: "tool_choice";
830
- readonly ParallelToolCalls: "parallel_tool_calls";
831
- readonly IncludeReasoning: "include_reasoning";
832
- readonly Reasoning: "reasoning";
833
- readonly WebSearchOptions: "web_search_options";
834
- readonly Verbosity: "verbosity";
835
- }>;
836
- }
837
- /** @internal */
838
- export declare const ListModelsDefaultParameters$inboundSchema: z.ZodType<ListModelsDefaultParameters, z.ZodTypeDef, unknown>;
839
- /** @internal */
840
- export type ListModelsDefaultParameters$Outbound = {
841
- temperature?: number | null | undefined;
842
- top_p?: number | null | undefined;
843
- frequency_penalty?: number | null | undefined;
844
- };
845
- /** @internal */
846
- export declare const ListModelsDefaultParameters$outboundSchema: z.ZodType<ListModelsDefaultParameters$Outbound, z.ZodTypeDef, ListModelsDefaultParameters>;
847
- /**
848
- * @internal
849
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
850
- */
851
- export declare namespace ListModelsDefaultParameters$ {
852
- /** @deprecated use `ListModelsDefaultParameters$inboundSchema` instead. */
853
- const inboundSchema: z.ZodType<ListModelsDefaultParameters, z.ZodTypeDef, unknown>;
854
- /** @deprecated use `ListModelsDefaultParameters$outboundSchema` instead. */
855
- const outboundSchema: z.ZodType<ListModelsDefaultParameters$Outbound, z.ZodTypeDef, ListModelsDefaultParameters>;
856
- /** @deprecated use `ListModelsDefaultParameters$Outbound` instead. */
857
- type Outbound = ListModelsDefaultParameters$Outbound;
858
- }
859
- export declare function listModelsDefaultParametersToJSON(listModelsDefaultParameters: ListModelsDefaultParameters): string;
860
- export declare function listModelsDefaultParametersFromJSON(jsonString: string): SafeParseResult<ListModelsDefaultParameters, SDKValidationError>;
861
- /** @internal */
862
- export declare const ListModelsData$inboundSchema: z.ZodType<ListModelsData, z.ZodTypeDef, unknown>;
863
- /** @internal */
864
- export type ListModelsData$Outbound = {
865
- id: string;
866
- canonical_slug: string;
867
- hugging_face_id?: string | null | undefined;
868
- name: string;
869
- created: number;
870
- description?: string | undefined;
871
- pricing: ListModelsPricing$Outbound;
872
- context_length: number | null;
873
- architecture: ListModelsArchitecture$Outbound;
874
- top_provider: ListModelsTopProvider$Outbound;
875
- per_request_limits: ListModelsPerRequestLimits$Outbound | null;
876
- supported_parameters: Array<string>;
877
- default_parameters: ListModelsDefaultParameters$Outbound | null;
878
- };
879
- /** @internal */
880
- export declare const ListModelsData$outboundSchema: z.ZodType<ListModelsData$Outbound, z.ZodTypeDef, ListModelsData>;
31
+ export declare const ListModelsRequest$outboundSchema: z.ZodType<ListModelsRequest$Outbound, z.ZodTypeDef, ListModelsRequest>;
881
32
  /**
882
33
  * @internal
883
34
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
884
35
  */
885
- export declare namespace ListModelsData$ {
886
- /** @deprecated use `ListModelsData$inboundSchema` instead. */
887
- const inboundSchema: z.ZodType<ListModelsData, z.ZodTypeDef, unknown>;
888
- /** @deprecated use `ListModelsData$outboundSchema` instead. */
889
- const outboundSchema: z.ZodType<ListModelsData$Outbound, z.ZodTypeDef, ListModelsData>;
890
- /** @deprecated use `ListModelsData$Outbound` instead. */
891
- type Outbound = ListModelsData$Outbound;
36
+ export declare namespace ListModelsRequest$ {
37
+ /** @deprecated use `ListModelsRequest$inboundSchema` instead. */
38
+ const inboundSchema: z.ZodType<ListModelsRequest, z.ZodTypeDef, unknown>;
39
+ /** @deprecated use `ListModelsRequest$outboundSchema` instead. */
40
+ const outboundSchema: z.ZodType<ListModelsRequest$Outbound, z.ZodTypeDef, ListModelsRequest>;
41
+ /** @deprecated use `ListModelsRequest$Outbound` instead. */
42
+ type Outbound = ListModelsRequest$Outbound;
892
43
  }
893
- export declare function listModelsDataToJSON(listModelsData: ListModelsData): string;
894
- export declare function listModelsDataFromJSON(jsonString: string): SafeParseResult<ListModelsData, SDKValidationError>;
44
+ export declare function listModelsRequestToJSON(listModelsRequest: ListModelsRequest): string;
45
+ export declare function listModelsRequestFromJSON(jsonString: string): SafeParseResult<ListModelsRequest, SDKValidationError>;
895
46
  /** @internal */
896
47
  export declare const ListModelsResponseBody$inboundSchema: z.ZodType<ListModelsResponseBody, z.ZodTypeDef, unknown>;
897
48
  /** @internal */
898
49
  export type ListModelsResponseBody$Outbound = {
899
- data: Array<ListModelsData$Outbound>;
50
+ data: Array<models.ModelsList$Outbound>;
900
51
  };
901
52
  /** @internal */
902
53
  export declare const ListModelsResponseBody$outboundSchema: z.ZodType<ListModelsResponseBody$Outbound, z.ZodTypeDef, ListModelsResponseBody>;