@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
@@ -0,0 +1,697 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { remap as remap$ } from "../lib/primitives.js";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ /**
8
+ * Tokenizer type used by the model
9
+ */
10
+ export const Tokenizer = {
11
+ Router: "Router",
12
+ Media: "Media",
13
+ Other: "Other",
14
+ Gpt: "GPT",
15
+ Claude: "Claude",
16
+ Gemini: "Gemini",
17
+ Grok: "Grok",
18
+ Cohere: "Cohere",
19
+ Nova: "Nova",
20
+ Qwen: "Qwen",
21
+ Yi: "Yi",
22
+ DeepSeek: "DeepSeek",
23
+ Mistral: "Mistral",
24
+ Llama2: "Llama2",
25
+ Llama3: "Llama3",
26
+ Llama4: "Llama4",
27
+ PaLM: "PaLM",
28
+ Rwkv: "RWKV",
29
+ Qwen3: "Qwen3",
30
+ };
31
+ /**
32
+ * Instruction format type
33
+ */
34
+ export const InstructType = {
35
+ None: "none",
36
+ Airoboros: "airoboros",
37
+ Alpaca: "alpaca",
38
+ AlpacaModif: "alpaca-modif",
39
+ Chatml: "chatml",
40
+ Claude: "claude",
41
+ CodeLlama: "code-llama",
42
+ Gemma: "gemma",
43
+ Llama2: "llama2",
44
+ Llama3: "llama3",
45
+ Mistral: "mistral",
46
+ Nemotron: "nemotron",
47
+ Neural: "neural",
48
+ Openchat: "openchat",
49
+ Phi3: "phi3",
50
+ Rwkv: "rwkv",
51
+ Vicuna: "vicuna",
52
+ Zephyr: "zephyr",
53
+ DeepseekR1: "deepseek-r1",
54
+ DeepseekV31: "deepseek-v3.1",
55
+ Qwq: "qwq",
56
+ Qwen3: "qwen3",
57
+ };
58
+ export const InputModality = {
59
+ Text: "text",
60
+ Image: "image",
61
+ File: "file",
62
+ Audio: "audio",
63
+ };
64
+ export const OutputModality = {
65
+ Text: "text",
66
+ Image: "image",
67
+ Embeddings: "embeddings",
68
+ };
69
+ export const ModelsListSupportedParameter = {
70
+ Temperature: "temperature",
71
+ TopP: "top_p",
72
+ TopK: "top_k",
73
+ MinP: "min_p",
74
+ TopA: "top_a",
75
+ FrequencyPenalty: "frequency_penalty",
76
+ PresencePenalty: "presence_penalty",
77
+ RepetitionPenalty: "repetition_penalty",
78
+ MaxTokens: "max_tokens",
79
+ LogitBias: "logit_bias",
80
+ Logprobs: "logprobs",
81
+ TopLogprobs: "top_logprobs",
82
+ Seed: "seed",
83
+ ResponseFormat: "response_format",
84
+ StructuredOutputs: "structured_outputs",
85
+ Stop: "stop",
86
+ Tools: "tools",
87
+ ToolChoice: "tool_choice",
88
+ ParallelToolCalls: "parallel_tool_calls",
89
+ IncludeReasoning: "include_reasoning",
90
+ Reasoning: "reasoning",
91
+ WebSearchOptions: "web_search_options",
92
+ Verbosity: "verbosity",
93
+ };
94
+ /** @internal */
95
+ export const ModelsListPrompt$inboundSchema = z.union([z.number(), z.string(), z.any()]);
96
+ /** @internal */
97
+ export const ModelsListPrompt$outboundSchema = z.union([z.number(), z.string(), z.any()]);
98
+ /**
99
+ * @internal
100
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
101
+ */
102
+ export var ModelsListPrompt$;
103
+ (function (ModelsListPrompt$) {
104
+ /** @deprecated use `ModelsListPrompt$inboundSchema` instead. */
105
+ ModelsListPrompt$.inboundSchema = ModelsListPrompt$inboundSchema;
106
+ /** @deprecated use `ModelsListPrompt$outboundSchema` instead. */
107
+ ModelsListPrompt$.outboundSchema = ModelsListPrompt$outboundSchema;
108
+ })(ModelsListPrompt$ || (ModelsListPrompt$ = {}));
109
+ export function modelsListPromptToJSON(modelsListPrompt) {
110
+ return JSON.stringify(ModelsListPrompt$outboundSchema.parse(modelsListPrompt));
111
+ }
112
+ export function modelsListPromptFromJSON(jsonString) {
113
+ return safeParse(jsonString, (x) => ModelsListPrompt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListPrompt' from JSON`);
114
+ }
115
+ /** @internal */
116
+ export const ModelsListCompletion$inboundSchema = z.union([z.number(), z.string(), z.any()]);
117
+ /** @internal */
118
+ export const ModelsListCompletion$outboundSchema = z.union([z.number(), z.string(), z.any()]);
119
+ /**
120
+ * @internal
121
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
122
+ */
123
+ export var ModelsListCompletion$;
124
+ (function (ModelsListCompletion$) {
125
+ /** @deprecated use `ModelsListCompletion$inboundSchema` instead. */
126
+ ModelsListCompletion$.inboundSchema = ModelsListCompletion$inboundSchema;
127
+ /** @deprecated use `ModelsListCompletion$outboundSchema` instead. */
128
+ ModelsListCompletion$.outboundSchema = ModelsListCompletion$outboundSchema;
129
+ })(ModelsListCompletion$ || (ModelsListCompletion$ = {}));
130
+ export function modelsListCompletionToJSON(modelsListCompletion) {
131
+ return JSON.stringify(ModelsListCompletion$outboundSchema.parse(modelsListCompletion));
132
+ }
133
+ export function modelsListCompletionFromJSON(jsonString) {
134
+ return safeParse(jsonString, (x) => ModelsListCompletion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListCompletion' from JSON`);
135
+ }
136
+ /** @internal */
137
+ export const ModelsListRequest$inboundSchema = z.union([z.number(), z.string(), z.any()]);
138
+ /** @internal */
139
+ export const ModelsListRequest$outboundSchema = z.union([z.number(), z.string(), z.any()]);
140
+ /**
141
+ * @internal
142
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
143
+ */
144
+ export var ModelsListRequest$;
145
+ (function (ModelsListRequest$) {
146
+ /** @deprecated use `ModelsListRequest$inboundSchema` instead. */
147
+ ModelsListRequest$.inboundSchema = ModelsListRequest$inboundSchema;
148
+ /** @deprecated use `ModelsListRequest$outboundSchema` instead. */
149
+ ModelsListRequest$.outboundSchema = ModelsListRequest$outboundSchema;
150
+ })(ModelsListRequest$ || (ModelsListRequest$ = {}));
151
+ export function modelsListRequestToJSON(modelsListRequest) {
152
+ return JSON.stringify(ModelsListRequest$outboundSchema.parse(modelsListRequest));
153
+ }
154
+ export function modelsListRequestFromJSON(jsonString) {
155
+ return safeParse(jsonString, (x) => ModelsListRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListRequest' from JSON`);
156
+ }
157
+ /** @internal */
158
+ export const ModelsListImage$inboundSchema = z.union([z.number(), z.string(), z.any()]);
159
+ /** @internal */
160
+ export const ModelsListImage$outboundSchema = z.union([z.number(), z.string(), z.any()]);
161
+ /**
162
+ * @internal
163
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
164
+ */
165
+ export var ModelsListImage$;
166
+ (function (ModelsListImage$) {
167
+ /** @deprecated use `ModelsListImage$inboundSchema` instead. */
168
+ ModelsListImage$.inboundSchema = ModelsListImage$inboundSchema;
169
+ /** @deprecated use `ModelsListImage$outboundSchema` instead. */
170
+ ModelsListImage$.outboundSchema = ModelsListImage$outboundSchema;
171
+ })(ModelsListImage$ || (ModelsListImage$ = {}));
172
+ export function modelsListImageToJSON(modelsListImage) {
173
+ return JSON.stringify(ModelsListImage$outboundSchema.parse(modelsListImage));
174
+ }
175
+ export function modelsListImageFromJSON(jsonString) {
176
+ return safeParse(jsonString, (x) => ModelsListImage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListImage' from JSON`);
177
+ }
178
+ /** @internal */
179
+ export const ModelsListImageOutput$inboundSchema = z.union([z.number(), z.string(), z.any()]);
180
+ /** @internal */
181
+ export const ModelsListImageOutput$outboundSchema = z.union([z.number(), z.string(), z.any()]);
182
+ /**
183
+ * @internal
184
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
185
+ */
186
+ export var ModelsListImageOutput$;
187
+ (function (ModelsListImageOutput$) {
188
+ /** @deprecated use `ModelsListImageOutput$inboundSchema` instead. */
189
+ ModelsListImageOutput$.inboundSchema = ModelsListImageOutput$inboundSchema;
190
+ /** @deprecated use `ModelsListImageOutput$outboundSchema` instead. */
191
+ ModelsListImageOutput$.outboundSchema = ModelsListImageOutput$outboundSchema;
192
+ })(ModelsListImageOutput$ || (ModelsListImageOutput$ = {}));
193
+ export function modelsListImageOutputToJSON(modelsListImageOutput) {
194
+ return JSON.stringify(ModelsListImageOutput$outboundSchema.parse(modelsListImageOutput));
195
+ }
196
+ export function modelsListImageOutputFromJSON(jsonString) {
197
+ return safeParse(jsonString, (x) => ModelsListImageOutput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListImageOutput' from JSON`);
198
+ }
199
+ /** @internal */
200
+ export const ModelsListAudio$inboundSchema = z.union([z.number(), z.string(), z.any()]);
201
+ /** @internal */
202
+ export const ModelsListAudio$outboundSchema = z.union([z.number(), z.string(), z.any()]);
203
+ /**
204
+ * @internal
205
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
206
+ */
207
+ export var ModelsListAudio$;
208
+ (function (ModelsListAudio$) {
209
+ /** @deprecated use `ModelsListAudio$inboundSchema` instead. */
210
+ ModelsListAudio$.inboundSchema = ModelsListAudio$inboundSchema;
211
+ /** @deprecated use `ModelsListAudio$outboundSchema` instead. */
212
+ ModelsListAudio$.outboundSchema = ModelsListAudio$outboundSchema;
213
+ })(ModelsListAudio$ || (ModelsListAudio$ = {}));
214
+ export function modelsListAudioToJSON(modelsListAudio) {
215
+ return JSON.stringify(ModelsListAudio$outboundSchema.parse(modelsListAudio));
216
+ }
217
+ export function modelsListAudioFromJSON(jsonString) {
218
+ return safeParse(jsonString, (x) => ModelsListAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListAudio' from JSON`);
219
+ }
220
+ /** @internal */
221
+ export const ModelsListInputAudioCache$inboundSchema = z.union([z.number(), z.string(), z.any()]);
222
+ /** @internal */
223
+ export const ModelsListInputAudioCache$outboundSchema = z.union([z.number(), z.string(), z.any()]);
224
+ /**
225
+ * @internal
226
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
227
+ */
228
+ export var ModelsListInputAudioCache$;
229
+ (function (ModelsListInputAudioCache$) {
230
+ /** @deprecated use `ModelsListInputAudioCache$inboundSchema` instead. */
231
+ ModelsListInputAudioCache$.inboundSchema = ModelsListInputAudioCache$inboundSchema;
232
+ /** @deprecated use `ModelsListInputAudioCache$outboundSchema` instead. */
233
+ ModelsListInputAudioCache$.outboundSchema = ModelsListInputAudioCache$outboundSchema;
234
+ })(ModelsListInputAudioCache$ || (ModelsListInputAudioCache$ = {}));
235
+ export function modelsListInputAudioCacheToJSON(modelsListInputAudioCache) {
236
+ return JSON.stringify(ModelsListInputAudioCache$outboundSchema.parse(modelsListInputAudioCache));
237
+ }
238
+ export function modelsListInputAudioCacheFromJSON(jsonString) {
239
+ return safeParse(jsonString, (x) => ModelsListInputAudioCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListInputAudioCache' from JSON`);
240
+ }
241
+ /** @internal */
242
+ export const ModelsListWebSearch$inboundSchema = z.union([z.number(), z.string(), z.any()]);
243
+ /** @internal */
244
+ export const ModelsListWebSearch$outboundSchema = z.union([z.number(), z.string(), z.any()]);
245
+ /**
246
+ * @internal
247
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
248
+ */
249
+ export var ModelsListWebSearch$;
250
+ (function (ModelsListWebSearch$) {
251
+ /** @deprecated use `ModelsListWebSearch$inboundSchema` instead. */
252
+ ModelsListWebSearch$.inboundSchema = ModelsListWebSearch$inboundSchema;
253
+ /** @deprecated use `ModelsListWebSearch$outboundSchema` instead. */
254
+ ModelsListWebSearch$.outboundSchema = ModelsListWebSearch$outboundSchema;
255
+ })(ModelsListWebSearch$ || (ModelsListWebSearch$ = {}));
256
+ export function modelsListWebSearchToJSON(modelsListWebSearch) {
257
+ return JSON.stringify(ModelsListWebSearch$outboundSchema.parse(modelsListWebSearch));
258
+ }
259
+ export function modelsListWebSearchFromJSON(jsonString) {
260
+ return safeParse(jsonString, (x) => ModelsListWebSearch$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListWebSearch' from JSON`);
261
+ }
262
+ /** @internal */
263
+ export const ModelsListInternalReasoning$inboundSchema = z.union([z.number(), z.string(), z.any()]);
264
+ /** @internal */
265
+ export const ModelsListInternalReasoning$outboundSchema = z.union([z.number(), z.string(), z.any()]);
266
+ /**
267
+ * @internal
268
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
269
+ */
270
+ export var ModelsListInternalReasoning$;
271
+ (function (ModelsListInternalReasoning$) {
272
+ /** @deprecated use `ModelsListInternalReasoning$inboundSchema` instead. */
273
+ ModelsListInternalReasoning$.inboundSchema = ModelsListInternalReasoning$inboundSchema;
274
+ /** @deprecated use `ModelsListInternalReasoning$outboundSchema` instead. */
275
+ ModelsListInternalReasoning$.outboundSchema = ModelsListInternalReasoning$outboundSchema;
276
+ })(ModelsListInternalReasoning$ || (ModelsListInternalReasoning$ = {}));
277
+ export function modelsListInternalReasoningToJSON(modelsListInternalReasoning) {
278
+ return JSON.stringify(ModelsListInternalReasoning$outboundSchema.parse(modelsListInternalReasoning));
279
+ }
280
+ export function modelsListInternalReasoningFromJSON(jsonString) {
281
+ return safeParse(jsonString, (x) => ModelsListInternalReasoning$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListInternalReasoning' from JSON`);
282
+ }
283
+ /** @internal */
284
+ export const ModelsListInputCacheRead$inboundSchema = z.union([z.number(), z.string(), z.any()]);
285
+ /** @internal */
286
+ export const ModelsListInputCacheRead$outboundSchema = z.union([z.number(), z.string(), z.any()]);
287
+ /**
288
+ * @internal
289
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
290
+ */
291
+ export var ModelsListInputCacheRead$;
292
+ (function (ModelsListInputCacheRead$) {
293
+ /** @deprecated use `ModelsListInputCacheRead$inboundSchema` instead. */
294
+ ModelsListInputCacheRead$.inboundSchema = ModelsListInputCacheRead$inboundSchema;
295
+ /** @deprecated use `ModelsListInputCacheRead$outboundSchema` instead. */
296
+ ModelsListInputCacheRead$.outboundSchema = ModelsListInputCacheRead$outboundSchema;
297
+ })(ModelsListInputCacheRead$ || (ModelsListInputCacheRead$ = {}));
298
+ export function modelsListInputCacheReadToJSON(modelsListInputCacheRead) {
299
+ return JSON.stringify(ModelsListInputCacheRead$outboundSchema.parse(modelsListInputCacheRead));
300
+ }
301
+ export function modelsListInputCacheReadFromJSON(jsonString) {
302
+ return safeParse(jsonString, (x) => ModelsListInputCacheRead$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListInputCacheRead' from JSON`);
303
+ }
304
+ /** @internal */
305
+ export const ModelsListInputCacheWrite$inboundSchema = z.union([z.number(), z.string(), z.any()]);
306
+ /** @internal */
307
+ export const ModelsListInputCacheWrite$outboundSchema = z.union([z.number(), z.string(), z.any()]);
308
+ /**
309
+ * @internal
310
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
311
+ */
312
+ export var ModelsListInputCacheWrite$;
313
+ (function (ModelsListInputCacheWrite$) {
314
+ /** @deprecated use `ModelsListInputCacheWrite$inboundSchema` instead. */
315
+ ModelsListInputCacheWrite$.inboundSchema = ModelsListInputCacheWrite$inboundSchema;
316
+ /** @deprecated use `ModelsListInputCacheWrite$outboundSchema` instead. */
317
+ ModelsListInputCacheWrite$.outboundSchema = ModelsListInputCacheWrite$outboundSchema;
318
+ })(ModelsListInputCacheWrite$ || (ModelsListInputCacheWrite$ = {}));
319
+ export function modelsListInputCacheWriteToJSON(modelsListInputCacheWrite) {
320
+ return JSON.stringify(ModelsListInputCacheWrite$outboundSchema.parse(modelsListInputCacheWrite));
321
+ }
322
+ export function modelsListInputCacheWriteFromJSON(jsonString) {
323
+ return safeParse(jsonString, (x) => ModelsListInputCacheWrite$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListInputCacheWrite' from JSON`);
324
+ }
325
+ /** @internal */
326
+ export const ModelsListPricing$inboundSchema = z.object({
327
+ prompt: z.union([z.number(), z.string(), z.any()]).optional(),
328
+ completion: z.union([z.number(), z.string(), z.any()]).optional(),
329
+ request: z.union([z.number(), z.string(), z.any()]).optional(),
330
+ image: z.union([z.number(), z.string(), z.any()]).optional(),
331
+ image_output: z.union([z.number(), z.string(), z.any()]).optional(),
332
+ audio: z.union([z.number(), z.string(), z.any()]).optional(),
333
+ input_audio_cache: z.union([z.number(), z.string(), z.any()]).optional(),
334
+ web_search: z.union([z.number(), z.string(), z.any()]).optional(),
335
+ internal_reasoning: z.union([z.number(), z.string(), z.any()]).optional(),
336
+ input_cache_read: z.union([z.number(), z.string(), z.any()]).optional(),
337
+ input_cache_write: z.union([z.number(), z.string(), z.any()]).optional(),
338
+ discount: z.number().optional(),
339
+ }).transform((v) => {
340
+ return remap$(v, {
341
+ "image_output": "imageOutput",
342
+ "input_audio_cache": "inputAudioCache",
343
+ "web_search": "webSearch",
344
+ "internal_reasoning": "internalReasoning",
345
+ "input_cache_read": "inputCacheRead",
346
+ "input_cache_write": "inputCacheWrite",
347
+ });
348
+ });
349
+ /** @internal */
350
+ export const ModelsListPricing$outboundSchema = z.object({
351
+ prompt: z.union([z.number(), z.string(), z.any()]).optional(),
352
+ completion: z.union([z.number(), z.string(), z.any()]).optional(),
353
+ request: z.union([z.number(), z.string(), z.any()]).optional(),
354
+ image: z.union([z.number(), z.string(), z.any()]).optional(),
355
+ imageOutput: z.union([z.number(), z.string(), z.any()]).optional(),
356
+ audio: z.union([z.number(), z.string(), z.any()]).optional(),
357
+ inputAudioCache: z.union([z.number(), z.string(), z.any()]).optional(),
358
+ webSearch: z.union([z.number(), z.string(), z.any()]).optional(),
359
+ internalReasoning: z.union([z.number(), z.string(), z.any()]).optional(),
360
+ inputCacheRead: z.union([z.number(), z.string(), z.any()]).optional(),
361
+ inputCacheWrite: z.union([z.number(), z.string(), z.any()]).optional(),
362
+ discount: z.number().optional(),
363
+ }).transform((v) => {
364
+ return remap$(v, {
365
+ imageOutput: "image_output",
366
+ inputAudioCache: "input_audio_cache",
367
+ webSearch: "web_search",
368
+ internalReasoning: "internal_reasoning",
369
+ inputCacheRead: "input_cache_read",
370
+ inputCacheWrite: "input_cache_write",
371
+ });
372
+ });
373
+ /**
374
+ * @internal
375
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
376
+ */
377
+ export var ModelsListPricing$;
378
+ (function (ModelsListPricing$) {
379
+ /** @deprecated use `ModelsListPricing$inboundSchema` instead. */
380
+ ModelsListPricing$.inboundSchema = ModelsListPricing$inboundSchema;
381
+ /** @deprecated use `ModelsListPricing$outboundSchema` instead. */
382
+ ModelsListPricing$.outboundSchema = ModelsListPricing$outboundSchema;
383
+ })(ModelsListPricing$ || (ModelsListPricing$ = {}));
384
+ export function modelsListPricingToJSON(modelsListPricing) {
385
+ return JSON.stringify(ModelsListPricing$outboundSchema.parse(modelsListPricing));
386
+ }
387
+ export function modelsListPricingFromJSON(jsonString) {
388
+ return safeParse(jsonString, (x) => ModelsListPricing$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListPricing' from JSON`);
389
+ }
390
+ /** @internal */
391
+ export const Tokenizer$inboundSchema = z
392
+ .nativeEnum(Tokenizer);
393
+ /** @internal */
394
+ export const Tokenizer$outboundSchema = Tokenizer$inboundSchema;
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 var Tokenizer$;
400
+ (function (Tokenizer$) {
401
+ /** @deprecated use `Tokenizer$inboundSchema` instead. */
402
+ Tokenizer$.inboundSchema = Tokenizer$inboundSchema;
403
+ /** @deprecated use `Tokenizer$outboundSchema` instead. */
404
+ Tokenizer$.outboundSchema = Tokenizer$outboundSchema;
405
+ })(Tokenizer$ || (Tokenizer$ = {}));
406
+ /** @internal */
407
+ export const InstructType$inboundSchema = z.nativeEnum(InstructType);
408
+ /** @internal */
409
+ export const InstructType$outboundSchema = InstructType$inboundSchema;
410
+ /**
411
+ * @internal
412
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
413
+ */
414
+ export var InstructType$;
415
+ (function (InstructType$) {
416
+ /** @deprecated use `InstructType$inboundSchema` instead. */
417
+ InstructType$.inboundSchema = InstructType$inboundSchema;
418
+ /** @deprecated use `InstructType$outboundSchema` instead. */
419
+ InstructType$.outboundSchema = InstructType$outboundSchema;
420
+ })(InstructType$ || (InstructType$ = {}));
421
+ /** @internal */
422
+ export const InputModality$inboundSchema = z.nativeEnum(InputModality);
423
+ /** @internal */
424
+ export const InputModality$outboundSchema = InputModality$inboundSchema;
425
+ /**
426
+ * @internal
427
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
428
+ */
429
+ export var InputModality$;
430
+ (function (InputModality$) {
431
+ /** @deprecated use `InputModality$inboundSchema` instead. */
432
+ InputModality$.inboundSchema = InputModality$inboundSchema;
433
+ /** @deprecated use `InputModality$outboundSchema` instead. */
434
+ InputModality$.outboundSchema = InputModality$outboundSchema;
435
+ })(InputModality$ || (InputModality$ = {}));
436
+ /** @internal */
437
+ export const OutputModality$inboundSchema = z.nativeEnum(OutputModality);
438
+ /** @internal */
439
+ export const OutputModality$outboundSchema = OutputModality$inboundSchema;
440
+ /**
441
+ * @internal
442
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
443
+ */
444
+ export var OutputModality$;
445
+ (function (OutputModality$) {
446
+ /** @deprecated use `OutputModality$inboundSchema` instead. */
447
+ OutputModality$.inboundSchema = OutputModality$inboundSchema;
448
+ /** @deprecated use `OutputModality$outboundSchema` instead. */
449
+ OutputModality$.outboundSchema = OutputModality$outboundSchema;
450
+ })(OutputModality$ || (OutputModality$ = {}));
451
+ /** @internal */
452
+ export const Architecture$inboundSchema = z.object({
453
+ tokenizer: Tokenizer$inboundSchema.optional(),
454
+ instruct_type: z.nullable(InstructType$inboundSchema).optional(),
455
+ modality: z.nullable(z.string()),
456
+ input_modalities: z.array(InputModality$inboundSchema),
457
+ output_modalities: z.array(OutputModality$inboundSchema),
458
+ }).transform((v) => {
459
+ return remap$(v, {
460
+ "instruct_type": "instructType",
461
+ "input_modalities": "inputModalities",
462
+ "output_modalities": "outputModalities",
463
+ });
464
+ });
465
+ /** @internal */
466
+ export const Architecture$outboundSchema = z.object({
467
+ tokenizer: Tokenizer$outboundSchema.optional(),
468
+ instructType: z.nullable(InstructType$outboundSchema).optional(),
469
+ modality: z.nullable(z.string()),
470
+ inputModalities: z.array(InputModality$outboundSchema),
471
+ outputModalities: z.array(OutputModality$outboundSchema),
472
+ }).transform((v) => {
473
+ return remap$(v, {
474
+ instructType: "instruct_type",
475
+ inputModalities: "input_modalities",
476
+ outputModalities: "output_modalities",
477
+ });
478
+ });
479
+ /**
480
+ * @internal
481
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
482
+ */
483
+ export var Architecture$;
484
+ (function (Architecture$) {
485
+ /** @deprecated use `Architecture$inboundSchema` instead. */
486
+ Architecture$.inboundSchema = Architecture$inboundSchema;
487
+ /** @deprecated use `Architecture$outboundSchema` instead. */
488
+ Architecture$.outboundSchema = Architecture$outboundSchema;
489
+ })(Architecture$ || (Architecture$ = {}));
490
+ export function architectureToJSON(architecture) {
491
+ return JSON.stringify(Architecture$outboundSchema.parse(architecture));
492
+ }
493
+ export function architectureFromJSON(jsonString) {
494
+ return safeParse(jsonString, (x) => Architecture$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Architecture' from JSON`);
495
+ }
496
+ /** @internal */
497
+ export const TopProvider$inboundSchema = z.object({
498
+ context_length: z.nullable(z.number()).optional(),
499
+ max_completion_tokens: z.nullable(z.number()).optional(),
500
+ is_moderated: z.boolean(),
501
+ }).transform((v) => {
502
+ return remap$(v, {
503
+ "context_length": "contextLength",
504
+ "max_completion_tokens": "maxCompletionTokens",
505
+ "is_moderated": "isModerated",
506
+ });
507
+ });
508
+ /** @internal */
509
+ export const TopProvider$outboundSchema = z.object({
510
+ contextLength: z.nullable(z.number()).optional(),
511
+ maxCompletionTokens: z.nullable(z.number()).optional(),
512
+ isModerated: z.boolean(),
513
+ }).transform((v) => {
514
+ return remap$(v, {
515
+ contextLength: "context_length",
516
+ maxCompletionTokens: "max_completion_tokens",
517
+ isModerated: "is_moderated",
518
+ });
519
+ });
520
+ /**
521
+ * @internal
522
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
523
+ */
524
+ export var TopProvider$;
525
+ (function (TopProvider$) {
526
+ /** @deprecated use `TopProvider$inboundSchema` instead. */
527
+ TopProvider$.inboundSchema = TopProvider$inboundSchema;
528
+ /** @deprecated use `TopProvider$outboundSchema` instead. */
529
+ TopProvider$.outboundSchema = TopProvider$outboundSchema;
530
+ })(TopProvider$ || (TopProvider$ = {}));
531
+ export function topProviderToJSON(topProvider) {
532
+ return JSON.stringify(TopProvider$outboundSchema.parse(topProvider));
533
+ }
534
+ export function topProviderFromJSON(jsonString) {
535
+ return safeParse(jsonString, (x) => TopProvider$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TopProvider' from JSON`);
536
+ }
537
+ /** @internal */
538
+ export const PerRequestLimits$inboundSchema = z.object({
539
+ prompt_tokens: z.any().optional(),
540
+ completion_tokens: z.any().optional(),
541
+ }).transform((v) => {
542
+ return remap$(v, {
543
+ "prompt_tokens": "promptTokens",
544
+ "completion_tokens": "completionTokens",
545
+ });
546
+ });
547
+ /** @internal */
548
+ export const PerRequestLimits$outboundSchema = z.object({
549
+ promptTokens: z.any().optional(),
550
+ completionTokens: z.any().optional(),
551
+ }).transform((v) => {
552
+ return remap$(v, {
553
+ promptTokens: "prompt_tokens",
554
+ completionTokens: "completion_tokens",
555
+ });
556
+ });
557
+ /**
558
+ * @internal
559
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
560
+ */
561
+ export var PerRequestLimits$;
562
+ (function (PerRequestLimits$) {
563
+ /** @deprecated use `PerRequestLimits$inboundSchema` instead. */
564
+ PerRequestLimits$.inboundSchema = PerRequestLimits$inboundSchema;
565
+ /** @deprecated use `PerRequestLimits$outboundSchema` instead. */
566
+ PerRequestLimits$.outboundSchema = PerRequestLimits$outboundSchema;
567
+ })(PerRequestLimits$ || (PerRequestLimits$ = {}));
568
+ export function perRequestLimitsToJSON(perRequestLimits) {
569
+ return JSON.stringify(PerRequestLimits$outboundSchema.parse(perRequestLimits));
570
+ }
571
+ export function perRequestLimitsFromJSON(jsonString) {
572
+ return safeParse(jsonString, (x) => PerRequestLimits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PerRequestLimits' from JSON`);
573
+ }
574
+ /** @internal */
575
+ export const ModelsListSupportedParameter$inboundSchema = z.nativeEnum(ModelsListSupportedParameter);
576
+ /** @internal */
577
+ export const ModelsListSupportedParameter$outboundSchema = ModelsListSupportedParameter$inboundSchema;
578
+ /**
579
+ * @internal
580
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
581
+ */
582
+ export var ModelsListSupportedParameter$;
583
+ (function (ModelsListSupportedParameter$) {
584
+ /** @deprecated use `ModelsListSupportedParameter$inboundSchema` instead. */
585
+ ModelsListSupportedParameter$.inboundSchema = ModelsListSupportedParameter$inboundSchema;
586
+ /** @deprecated use `ModelsListSupportedParameter$outboundSchema` instead. */
587
+ ModelsListSupportedParameter$.outboundSchema = ModelsListSupportedParameter$outboundSchema;
588
+ })(ModelsListSupportedParameter$ || (ModelsListSupportedParameter$ = {}));
589
+ /** @internal */
590
+ export const DefaultParameters$inboundSchema = z.object({
591
+ temperature: z.nullable(z.number()).optional(),
592
+ top_p: z.nullable(z.number()).optional(),
593
+ frequency_penalty: z.nullable(z.number()).optional(),
594
+ }).transform((v) => {
595
+ return remap$(v, {
596
+ "top_p": "topP",
597
+ "frequency_penalty": "frequencyPenalty",
598
+ });
599
+ });
600
+ /** @internal */
601
+ export const DefaultParameters$outboundSchema = z.object({
602
+ temperature: z.nullable(z.number()).optional(),
603
+ topP: z.nullable(z.number()).optional(),
604
+ frequencyPenalty: z.nullable(z.number()).optional(),
605
+ }).transform((v) => {
606
+ return remap$(v, {
607
+ topP: "top_p",
608
+ frequencyPenalty: "frequency_penalty",
609
+ });
610
+ });
611
+ /**
612
+ * @internal
613
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
614
+ */
615
+ export var DefaultParameters$;
616
+ (function (DefaultParameters$) {
617
+ /** @deprecated use `DefaultParameters$inboundSchema` instead. */
618
+ DefaultParameters$.inboundSchema = DefaultParameters$inboundSchema;
619
+ /** @deprecated use `DefaultParameters$outboundSchema` instead. */
620
+ DefaultParameters$.outboundSchema = DefaultParameters$outboundSchema;
621
+ })(DefaultParameters$ || (DefaultParameters$ = {}));
622
+ export function defaultParametersToJSON(defaultParameters) {
623
+ return JSON.stringify(DefaultParameters$outboundSchema.parse(defaultParameters));
624
+ }
625
+ export function defaultParametersFromJSON(jsonString) {
626
+ return safeParse(jsonString, (x) => DefaultParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DefaultParameters' from JSON`);
627
+ }
628
+ /** @internal */
629
+ export const ModelsList$inboundSchema = z.object({
630
+ id: z.string(),
631
+ canonical_slug: z.string(),
632
+ hugging_face_id: z.nullable(z.string()).optional(),
633
+ name: z.string(),
634
+ created: z.number(),
635
+ description: z.string().optional(),
636
+ pricing: z.lazy(() => ModelsListPricing$inboundSchema),
637
+ context_length: z.nullable(z.number()),
638
+ architecture: z.lazy(() => Architecture$inboundSchema),
639
+ top_provider: z.lazy(() => TopProvider$inboundSchema),
640
+ per_request_limits: z.nullable(z.lazy(() => PerRequestLimits$inboundSchema)),
641
+ supported_parameters: z.array(ModelsListSupportedParameter$inboundSchema),
642
+ default_parameters: z.nullable(z.lazy(() => DefaultParameters$inboundSchema)),
643
+ }).transform((v) => {
644
+ return remap$(v, {
645
+ "canonical_slug": "canonicalSlug",
646
+ "hugging_face_id": "huggingFaceId",
647
+ "context_length": "contextLength",
648
+ "top_provider": "topProvider",
649
+ "per_request_limits": "perRequestLimits",
650
+ "supported_parameters": "supportedParameters",
651
+ "default_parameters": "defaultParameters",
652
+ });
653
+ });
654
+ /** @internal */
655
+ export const ModelsList$outboundSchema = z.object({
656
+ id: z.string(),
657
+ canonicalSlug: z.string(),
658
+ huggingFaceId: z.nullable(z.string()).optional(),
659
+ name: z.string(),
660
+ created: z.number(),
661
+ description: z.string().optional(),
662
+ pricing: z.lazy(() => ModelsListPricing$outboundSchema),
663
+ contextLength: z.nullable(z.number()),
664
+ architecture: z.lazy(() => Architecture$outboundSchema),
665
+ topProvider: z.lazy(() => TopProvider$outboundSchema),
666
+ perRequestLimits: z.nullable(z.lazy(() => PerRequestLimits$outboundSchema)),
667
+ supportedParameters: z.array(ModelsListSupportedParameter$outboundSchema),
668
+ defaultParameters: z.nullable(z.lazy(() => DefaultParameters$outboundSchema)),
669
+ }).transform((v) => {
670
+ return remap$(v, {
671
+ canonicalSlug: "canonical_slug",
672
+ huggingFaceId: "hugging_face_id",
673
+ contextLength: "context_length",
674
+ topProvider: "top_provider",
675
+ perRequestLimits: "per_request_limits",
676
+ supportedParameters: "supported_parameters",
677
+ defaultParameters: "default_parameters",
678
+ });
679
+ });
680
+ /**
681
+ * @internal
682
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
683
+ */
684
+ export var ModelsList$;
685
+ (function (ModelsList$) {
686
+ /** @deprecated use `ModelsList$inboundSchema` instead. */
687
+ ModelsList$.inboundSchema = ModelsList$inboundSchema;
688
+ /** @deprecated use `ModelsList$outboundSchema` instead. */
689
+ ModelsList$.outboundSchema = ModelsList$outboundSchema;
690
+ })(ModelsList$ || (ModelsList$ = {}));
691
+ export function modelsListToJSON(modelsList) {
692
+ return JSON.stringify(ModelsList$outboundSchema.parse(modelsList));
693
+ }
694
+ export function modelsListFromJSON(jsonString) {
695
+ return safeParse(jsonString, (x) => ModelsList$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsList' from JSON`);
696
+ }
697
+ //# sourceMappingURL=modelslist.js.map