@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.
- package/FUNCTIONS.md +2 -0
- package/REACT_QUERY.md +2 -0
- package/README.md +12 -0
- package/dist/commonjs/funcs/endpointsList.d.ts +1 -1
- package/dist/commonjs/funcs/endpointsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/endpointsList.js +1 -1
- package/dist/commonjs/funcs/endpointsList.js.map +1 -1
- package/dist/commonjs/funcs/modelsList.d.ts +1 -1
- package/dist/commonjs/funcs/modelsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/modelsList.js +1 -1
- package/dist/commonjs/funcs/modelsList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/endpointslist.d.ts +768 -0
- package/dist/commonjs/models/endpointslist.d.ts.map +1 -0
- package/dist/commonjs/models/endpointslist.js +625 -0
- package/dist/commonjs/models/endpointslist.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +3 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +3 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/keyinfo.d.ts +155 -0
- package/dist/commonjs/models/keyinfo.d.ts.map +1 -0
- package/dist/commonjs/models/keyinfo.js +163 -0
- package/dist/commonjs/models/keyinfo.js.map +1 -0
- package/dist/commonjs/models/modelslist.d.ts +854 -0
- package/dist/commonjs/models/modelslist.d.ts.map +1 -0
- package/dist/commonjs/models/modelslist.js +768 -0
- package/dist/commonjs/models/modelslist.js.map +1 -0
- package/dist/commonjs/models/openairesponsesrequest.d.ts +52 -52
- package/dist/commonjs/models/openairesponsesrequest.d.ts.map +1 -1
- package/dist/commonjs/models/openairesponsesrequest.js +74 -76
- package/dist/commonjs/models/openairesponsesrequest.js.map +1 -1
- package/dist/commonjs/models/operations/getcurrentkey.d.ts +3 -108
- package/dist/commonjs/models/operations/getcurrentkey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcurrentkey.js +4 -88
- package/dist/commonjs/models/operations/getcurrentkey.js.map +1 -1
- package/dist/commonjs/models/operations/list.d.ts +63 -825
- package/dist/commonjs/models/operations/list.d.ts.map +1 -1
- package/dist/commonjs/models/operations/list.js +86 -667
- package/dist/commonjs/models/operations/list.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +16 -865
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +19 -742
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/commonjs/models/operations/listusermodels.d.ts +3 -852
- package/dist/commonjs/models/operations/listusermodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listusermodels.js +4 -730
- package/dist/commonjs/models/operations/listusermodels.js.map +1 -1
- package/dist/commonjs/models/operations/previewzdr.d.ts +97 -97
- package/dist/commonjs/models/operations/previewzdr.d.ts.map +1 -1
- package/dist/commonjs/models/operations/previewzdr.js +134 -133
- package/dist/commonjs/models/operations/previewzdr.js.map +1 -1
- package/dist/commonjs/models/responsereasoningconfig.d.ts +4 -0
- package/dist/commonjs/models/responsereasoningconfig.d.ts.map +1 -1
- package/dist/commonjs/models/responsereasoningconfig.js +13 -0
- package/dist/commonjs/models/responsereasoningconfig.js.map +1 -1
- package/dist/commonjs/models/responsesusage.d.ts +41 -0
- package/dist/commonjs/models/responsesusage.d.ts.map +1 -1
- package/dist/commonjs/models/responsesusage.js +54 -1
- package/dist/commonjs/models/responsesusage.js.map +1 -1
- package/dist/commonjs/react-query/endpointsList.d.ts +4 -4
- package/dist/commonjs/react-query/endpointsList.d.ts.map +1 -1
- package/dist/commonjs/react-query/endpointsList.js.map +1 -1
- package/dist/commonjs/react-query/modelsList.d.ts +4 -4
- package/dist/commonjs/react-query/modelsList.d.ts.map +1 -1
- package/dist/commonjs/react-query/modelsList.js.map +1 -1
- package/dist/commonjs/sdk/endpoints.d.ts +1 -1
- package/dist/commonjs/sdk/endpoints.d.ts.map +1 -1
- package/dist/commonjs/sdk/endpoints.js.map +1 -1
- package/dist/commonjs/sdk/models.d.ts +1 -1
- package/dist/commonjs/sdk/models.d.ts.map +1 -1
- package/dist/commonjs/sdk/models.js.map +1 -1
- package/dist/esm/funcs/endpointsList.d.ts +1 -1
- package/dist/esm/funcs/endpointsList.d.ts.map +1 -1
- package/dist/esm/funcs/endpointsList.js +1 -1
- package/dist/esm/funcs/endpointsList.js.map +1 -1
- package/dist/esm/funcs/modelsList.d.ts +1 -1
- package/dist/esm/funcs/modelsList.d.ts.map +1 -1
- package/dist/esm/funcs/modelsList.js +1 -1
- package/dist/esm/funcs/modelsList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/endpointslist.d.ts +768 -0
- package/dist/esm/models/endpointslist.d.ts.map +1 -0
- package/dist/esm/models/endpointslist.js +562 -0
- package/dist/esm/models/endpointslist.js.map +1 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/keyinfo.d.ts +155 -0
- package/dist/esm/models/keyinfo.d.ts.map +1 -0
- package/dist/esm/models/keyinfo.js +123 -0
- package/dist/esm/models/keyinfo.js.map +1 -0
- package/dist/esm/models/modelslist.d.ts +854 -0
- package/dist/esm/models/modelslist.d.ts.map +1 -0
- package/dist/esm/models/modelslist.js +697 -0
- package/dist/esm/models/modelslist.js.map +1 -0
- package/dist/esm/models/openairesponsesrequest.d.ts +52 -52
- package/dist/esm/models/openairesponsesrequest.d.ts.map +1 -1
- package/dist/esm/models/openairesponsesrequest.js +64 -66
- package/dist/esm/models/openairesponsesrequest.js.map +1 -1
- package/dist/esm/models/operations/getcurrentkey.d.ts +3 -108
- package/dist/esm/models/operations/getcurrentkey.d.ts.map +1 -1
- package/dist/esm/models/operations/getcurrentkey.js +3 -83
- package/dist/esm/models/operations/getcurrentkey.js.map +1 -1
- package/dist/esm/models/operations/list.d.ts +63 -825
- package/dist/esm/models/operations/list.d.ts.map +1 -1
- package/dist/esm/models/operations/list.js +81 -635
- package/dist/esm/models/operations/list.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +16 -865
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +16 -704
- package/dist/esm/models/operations/listmodels.js.map +1 -1
- package/dist/esm/models/operations/listusermodels.d.ts +3 -852
- package/dist/esm/models/operations/listusermodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listusermodels.js +3 -694
- package/dist/esm/models/operations/listusermodels.js.map +1 -1
- package/dist/esm/models/operations/previewzdr.d.ts +97 -97
- package/dist/esm/models/operations/previewzdr.d.ts.map +1 -1
- package/dist/esm/models/operations/previewzdr.js +118 -117
- package/dist/esm/models/operations/previewzdr.js.map +1 -1
- package/dist/esm/models/responsereasoningconfig.d.ts +4 -0
- package/dist/esm/models/responsereasoningconfig.d.ts.map +1 -1
- package/dist/esm/models/responsereasoningconfig.js +13 -0
- package/dist/esm/models/responsereasoningconfig.js.map +1 -1
- package/dist/esm/models/responsesusage.d.ts +41 -0
- package/dist/esm/models/responsesusage.d.ts.map +1 -1
- package/dist/esm/models/responsesusage.js +51 -0
- package/dist/esm/models/responsesusage.js.map +1 -1
- package/dist/esm/react-query/endpointsList.d.ts +4 -4
- package/dist/esm/react-query/endpointsList.d.ts.map +1 -1
- package/dist/esm/react-query/endpointsList.js.map +1 -1
- package/dist/esm/react-query/modelsList.d.ts +4 -4
- package/dist/esm/react-query/modelsList.d.ts.map +1 -1
- package/dist/esm/react-query/modelsList.js.map +1 -1
- package/dist/esm/sdk/endpoints.d.ts +1 -1
- package/dist/esm/sdk/endpoints.d.ts.map +1 -1
- package/dist/esm/sdk/endpoints.js.map +1 -1
- package/dist/esm/sdk/models.d.ts +1 -1
- package/dist/esm/sdk/models.d.ts.map +1 -1
- package/dist/esm/sdk/models.js.map +1 -1
- package/docs/sdks/endpoints/README.md +1 -1
- package/docs/sdks/models/README.md +1 -1
- package/docs/sdks/responses/README.md +4 -0
- package/examples/betaResponsesSendRequest.example.ts +2 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/endpointsList.ts +3 -3
- package/src/funcs/modelsList.ts +3 -5
- package/src/lib/config.ts +2 -2
- package/src/models/endpointslist.ts +1034 -0
- package/src/models/index.ts +3 -0
- package/src/models/keyinfo.ts +281 -0
- package/src/models/modelslist.ts +1394 -0
- package/src/models/openairesponsesrequest.ts +133 -94
- package/src/models/operations/getcurrentkey.ts +5 -203
- package/src/models/operations/list.ts +109 -1106
- package/src/models/operations/listmodels.ts +26 -1436
- package/src/models/operations/listusermodels.ts +5 -1440
- package/src/models/operations/previewzdr.ts +196 -225
- package/src/models/responsereasoningconfig.ts +17 -0
- package/src/models/responsesusage.ts +96 -0
- package/src/react-query/endpointsList.ts +4 -4
- package/src/react-query/modelsList.ts +4 -4
- package/src/sdk/endpoints.ts +1 -1
- package/src/sdk/models.ts +1 -1
|
@@ -3,291 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import * as models from "../index.js";
|
|
11
10
|
|
|
12
11
|
export type ListUserModelsSecurity = {
|
|
13
12
|
bearer: string;
|
|
14
13
|
};
|
|
15
14
|
|
|
16
|
-
export type ListUserModelsPrompt = number | string | any;
|
|
17
|
-
|
|
18
|
-
export type ListUserModelsCompletion = number | string | any;
|
|
19
|
-
|
|
20
|
-
export type ModelsListUserModelsRequest = number | string | any;
|
|
21
|
-
|
|
22
|
-
export type ListUserModelsImage = number | string | any;
|
|
23
|
-
|
|
24
|
-
export type ListUserModelsImageOutput = number | string | any;
|
|
25
|
-
|
|
26
|
-
export type ListUserModelsAudio = number | string | any;
|
|
27
|
-
|
|
28
|
-
export type ListUserModelsInputAudioCache = number | string | any;
|
|
29
|
-
|
|
30
|
-
export type ListUserModelsWebSearch = number | string | any;
|
|
31
|
-
|
|
32
|
-
export type ListUserModelsInternalReasoning = number | string | any;
|
|
33
|
-
|
|
34
|
-
export type ListUserModelsInputCacheRead = number | string | any;
|
|
35
|
-
|
|
36
|
-
export type ListUserModelsInputCacheWrite = number | string | any;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Pricing information for the model
|
|
40
|
-
*/
|
|
41
|
-
export type ListUserModelsPricing = {
|
|
42
|
-
prompt?: number | string | any | undefined;
|
|
43
|
-
completion?: number | string | any | undefined;
|
|
44
|
-
request?: number | string | any | undefined;
|
|
45
|
-
image?: number | string | any | undefined;
|
|
46
|
-
imageOutput?: number | string | any | undefined;
|
|
47
|
-
audio?: number | string | any | undefined;
|
|
48
|
-
inputAudioCache?: number | string | any | undefined;
|
|
49
|
-
webSearch?: number | string | any | undefined;
|
|
50
|
-
internalReasoning?: number | string | any | undefined;
|
|
51
|
-
inputCacheRead?: number | string | any | undefined;
|
|
52
|
-
inputCacheWrite?: number | string | any | undefined;
|
|
53
|
-
discount?: number | undefined;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Tokenizer type used by the model
|
|
58
|
-
*/
|
|
59
|
-
export const ListUserModelsTokenizer = {
|
|
60
|
-
Router: "Router",
|
|
61
|
-
Media: "Media",
|
|
62
|
-
Other: "Other",
|
|
63
|
-
Gpt: "GPT",
|
|
64
|
-
Claude: "Claude",
|
|
65
|
-
Gemini: "Gemini",
|
|
66
|
-
Grok: "Grok",
|
|
67
|
-
Cohere: "Cohere",
|
|
68
|
-
Nova: "Nova",
|
|
69
|
-
Qwen: "Qwen",
|
|
70
|
-
Yi: "Yi",
|
|
71
|
-
DeepSeek: "DeepSeek",
|
|
72
|
-
Mistral: "Mistral",
|
|
73
|
-
Llama2: "Llama2",
|
|
74
|
-
Llama3: "Llama3",
|
|
75
|
-
Llama4: "Llama4",
|
|
76
|
-
PaLM: "PaLM",
|
|
77
|
-
Rwkv: "RWKV",
|
|
78
|
-
Qwen3: "Qwen3",
|
|
79
|
-
} as const;
|
|
80
|
-
/**
|
|
81
|
-
* Tokenizer type used by the model
|
|
82
|
-
*/
|
|
83
|
-
export type ListUserModelsTokenizer = ClosedEnum<
|
|
84
|
-
typeof ListUserModelsTokenizer
|
|
85
|
-
>;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Instruction format type
|
|
89
|
-
*/
|
|
90
|
-
export const ListUserModelsInstructType = {
|
|
91
|
-
None: "none",
|
|
92
|
-
Airoboros: "airoboros",
|
|
93
|
-
Alpaca: "alpaca",
|
|
94
|
-
AlpacaModif: "alpaca-modif",
|
|
95
|
-
Chatml: "chatml",
|
|
96
|
-
Claude: "claude",
|
|
97
|
-
CodeLlama: "code-llama",
|
|
98
|
-
Gemma: "gemma",
|
|
99
|
-
Llama2: "llama2",
|
|
100
|
-
Llama3: "llama3",
|
|
101
|
-
Mistral: "mistral",
|
|
102
|
-
Nemotron: "nemotron",
|
|
103
|
-
Neural: "neural",
|
|
104
|
-
Openchat: "openchat",
|
|
105
|
-
Phi3: "phi3",
|
|
106
|
-
Rwkv: "rwkv",
|
|
107
|
-
Vicuna: "vicuna",
|
|
108
|
-
Zephyr: "zephyr",
|
|
109
|
-
DeepseekR1: "deepseek-r1",
|
|
110
|
-
DeepseekV31: "deepseek-v3.1",
|
|
111
|
-
Qwq: "qwq",
|
|
112
|
-
Qwen3: "qwen3",
|
|
113
|
-
} as const;
|
|
114
|
-
/**
|
|
115
|
-
* Instruction format type
|
|
116
|
-
*/
|
|
117
|
-
export type ListUserModelsInstructType = ClosedEnum<
|
|
118
|
-
typeof ListUserModelsInstructType
|
|
119
|
-
>;
|
|
120
|
-
|
|
121
|
-
export const ListUserModelsInputModality = {
|
|
122
|
-
Text: "text",
|
|
123
|
-
Image: "image",
|
|
124
|
-
File: "file",
|
|
125
|
-
Audio: "audio",
|
|
126
|
-
} as const;
|
|
127
|
-
export type ListUserModelsInputModality = ClosedEnum<
|
|
128
|
-
typeof ListUserModelsInputModality
|
|
129
|
-
>;
|
|
130
|
-
|
|
131
|
-
export const ListUserModelsOutputModality = {
|
|
132
|
-
Text: "text",
|
|
133
|
-
Image: "image",
|
|
134
|
-
Embeddings: "embeddings",
|
|
135
|
-
} as const;
|
|
136
|
-
export type ListUserModelsOutputModality = ClosedEnum<
|
|
137
|
-
typeof ListUserModelsOutputModality
|
|
138
|
-
>;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Model architecture information
|
|
142
|
-
*/
|
|
143
|
-
export type ListUserModelsArchitecture = {
|
|
144
|
-
/**
|
|
145
|
-
* Tokenizer type used by the model
|
|
146
|
-
*/
|
|
147
|
-
tokenizer?: ListUserModelsTokenizer | undefined;
|
|
148
|
-
/**
|
|
149
|
-
* Instruction format type
|
|
150
|
-
*/
|
|
151
|
-
instructType?: ListUserModelsInstructType | null | undefined;
|
|
152
|
-
/**
|
|
153
|
-
* Primary modality of the model
|
|
154
|
-
*/
|
|
155
|
-
modality: string | null;
|
|
156
|
-
/**
|
|
157
|
-
* Supported input modalities
|
|
158
|
-
*/
|
|
159
|
-
inputModalities: Array<ListUserModelsInputModality>;
|
|
160
|
-
/**
|
|
161
|
-
* Supported output modalities
|
|
162
|
-
*/
|
|
163
|
-
outputModalities: Array<ListUserModelsOutputModality>;
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Information about the top provider for this model
|
|
168
|
-
*/
|
|
169
|
-
export type ListUserModelsTopProvider = {
|
|
170
|
-
/**
|
|
171
|
-
* Context length from the top provider
|
|
172
|
-
*/
|
|
173
|
-
contextLength?: number | null | undefined;
|
|
174
|
-
/**
|
|
175
|
-
* Maximum completion tokens from the top provider
|
|
176
|
-
*/
|
|
177
|
-
maxCompletionTokens?: number | null | undefined;
|
|
178
|
-
/**
|
|
179
|
-
* Whether the top provider moderates content
|
|
180
|
-
*/
|
|
181
|
-
isModerated: boolean;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Per-request token limits
|
|
186
|
-
*/
|
|
187
|
-
export type ListUserModelsPerRequestLimits = {
|
|
188
|
-
/**
|
|
189
|
-
* Maximum prompt tokens per request
|
|
190
|
-
*/
|
|
191
|
-
promptTokens?: any | undefined;
|
|
192
|
-
/**
|
|
193
|
-
* Maximum completion tokens per request
|
|
194
|
-
*/
|
|
195
|
-
completionTokens?: any | undefined;
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
export const ListUserModelsSupportedParameter = {
|
|
199
|
-
Temperature: "temperature",
|
|
200
|
-
TopP: "top_p",
|
|
201
|
-
TopK: "top_k",
|
|
202
|
-
MinP: "min_p",
|
|
203
|
-
TopA: "top_a",
|
|
204
|
-
FrequencyPenalty: "frequency_penalty",
|
|
205
|
-
PresencePenalty: "presence_penalty",
|
|
206
|
-
RepetitionPenalty: "repetition_penalty",
|
|
207
|
-
MaxTokens: "max_tokens",
|
|
208
|
-
LogitBias: "logit_bias",
|
|
209
|
-
Logprobs: "logprobs",
|
|
210
|
-
TopLogprobs: "top_logprobs",
|
|
211
|
-
Seed: "seed",
|
|
212
|
-
ResponseFormat: "response_format",
|
|
213
|
-
StructuredOutputs: "structured_outputs",
|
|
214
|
-
Stop: "stop",
|
|
215
|
-
Tools: "tools",
|
|
216
|
-
ToolChoice: "tool_choice",
|
|
217
|
-
ParallelToolCalls: "parallel_tool_calls",
|
|
218
|
-
IncludeReasoning: "include_reasoning",
|
|
219
|
-
Reasoning: "reasoning",
|
|
220
|
-
WebSearchOptions: "web_search_options",
|
|
221
|
-
Verbosity: "verbosity",
|
|
222
|
-
} as const;
|
|
223
|
-
export type ListUserModelsSupportedParameter = ClosedEnum<
|
|
224
|
-
typeof ListUserModelsSupportedParameter
|
|
225
|
-
>;
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Default parameters for this model
|
|
229
|
-
*/
|
|
230
|
-
export type ListUserModelsDefaultParameters = {
|
|
231
|
-
temperature?: number | null | undefined;
|
|
232
|
-
topP?: number | null | undefined;
|
|
233
|
-
frequencyPenalty?: number | null | undefined;
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
export type ListUserModelsData = {
|
|
237
|
-
/**
|
|
238
|
-
* Unique identifier for the model
|
|
239
|
-
*/
|
|
240
|
-
id: string;
|
|
241
|
-
/**
|
|
242
|
-
* Canonical slug for the model
|
|
243
|
-
*/
|
|
244
|
-
canonicalSlug: string;
|
|
245
|
-
/**
|
|
246
|
-
* Hugging Face model identifier, if applicable
|
|
247
|
-
*/
|
|
248
|
-
huggingFaceId?: string | null | undefined;
|
|
249
|
-
/**
|
|
250
|
-
* Display name of the model
|
|
251
|
-
*/
|
|
252
|
-
name: string;
|
|
253
|
-
/**
|
|
254
|
-
* Unix timestamp of when the model was created
|
|
255
|
-
*/
|
|
256
|
-
created: number;
|
|
257
|
-
/**
|
|
258
|
-
* Description of the model
|
|
259
|
-
*/
|
|
260
|
-
description?: string | undefined;
|
|
261
|
-
/**
|
|
262
|
-
* Pricing information for the model
|
|
263
|
-
*/
|
|
264
|
-
pricing: ListUserModelsPricing;
|
|
265
|
-
/**
|
|
266
|
-
* Maximum context length in tokens
|
|
267
|
-
*/
|
|
268
|
-
contextLength: number | null;
|
|
269
|
-
/**
|
|
270
|
-
* Model architecture information
|
|
271
|
-
*/
|
|
272
|
-
architecture: ListUserModelsArchitecture;
|
|
273
|
-
/**
|
|
274
|
-
* Information about the top provider for this model
|
|
275
|
-
*/
|
|
276
|
-
topProvider: ListUserModelsTopProvider;
|
|
277
|
-
/**
|
|
278
|
-
* Per-request token limits
|
|
279
|
-
*/
|
|
280
|
-
perRequestLimits: ListUserModelsPerRequestLimits | null;
|
|
281
|
-
/**
|
|
282
|
-
* List of supported parameters for this model
|
|
283
|
-
*/
|
|
284
|
-
supportedParameters: Array<ListUserModelsSupportedParameter>;
|
|
285
|
-
/**
|
|
286
|
-
* Default parameters for this model
|
|
287
|
-
*/
|
|
288
|
-
defaultParameters: ListUserModelsDefaultParameters | null;
|
|
289
|
-
};
|
|
290
|
-
|
|
291
15
|
/**
|
|
292
16
|
* Returns a list of models filtered by user provider preferences
|
|
293
17
|
*/
|
|
@@ -295,7 +19,7 @@ export type ListUserModelsResponse = {
|
|
|
295
19
|
/**
|
|
296
20
|
* List of available models
|
|
297
21
|
*/
|
|
298
|
-
data: Array<
|
|
22
|
+
data: Array<models.ModelsList>;
|
|
299
23
|
};
|
|
300
24
|
|
|
301
25
|
/** @internal */
|
|
@@ -352,1177 +76,18 @@ export function listUserModelsSecurityFromJSON(
|
|
|
352
76
|
);
|
|
353
77
|
}
|
|
354
78
|
|
|
355
|
-
/** @internal */
|
|
356
|
-
export const ListUserModelsPrompt$inboundSchema: z.ZodType<
|
|
357
|
-
ListUserModelsPrompt,
|
|
358
|
-
z.ZodTypeDef,
|
|
359
|
-
unknown
|
|
360
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
361
|
-
|
|
362
|
-
/** @internal */
|
|
363
|
-
export type ListUserModelsPrompt$Outbound = number | string | any;
|
|
364
|
-
|
|
365
|
-
/** @internal */
|
|
366
|
-
export const ListUserModelsPrompt$outboundSchema: z.ZodType<
|
|
367
|
-
ListUserModelsPrompt$Outbound,
|
|
368
|
-
z.ZodTypeDef,
|
|
369
|
-
ListUserModelsPrompt
|
|
370
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* @internal
|
|
374
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
375
|
-
*/
|
|
376
|
-
export namespace ListUserModelsPrompt$ {
|
|
377
|
-
/** @deprecated use `ListUserModelsPrompt$inboundSchema` instead. */
|
|
378
|
-
export const inboundSchema = ListUserModelsPrompt$inboundSchema;
|
|
379
|
-
/** @deprecated use `ListUserModelsPrompt$outboundSchema` instead. */
|
|
380
|
-
export const outboundSchema = ListUserModelsPrompt$outboundSchema;
|
|
381
|
-
/** @deprecated use `ListUserModelsPrompt$Outbound` instead. */
|
|
382
|
-
export type Outbound = ListUserModelsPrompt$Outbound;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
export function listUserModelsPromptToJSON(
|
|
386
|
-
listUserModelsPrompt: ListUserModelsPrompt,
|
|
387
|
-
): string {
|
|
388
|
-
return JSON.stringify(
|
|
389
|
-
ListUserModelsPrompt$outboundSchema.parse(listUserModelsPrompt),
|
|
390
|
-
);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
export function listUserModelsPromptFromJSON(
|
|
394
|
-
jsonString: string,
|
|
395
|
-
): SafeParseResult<ListUserModelsPrompt, SDKValidationError> {
|
|
396
|
-
return safeParse(
|
|
397
|
-
jsonString,
|
|
398
|
-
(x) => ListUserModelsPrompt$inboundSchema.parse(JSON.parse(x)),
|
|
399
|
-
`Failed to parse 'ListUserModelsPrompt' from JSON`,
|
|
400
|
-
);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
/** @internal */
|
|
404
|
-
export const ListUserModelsCompletion$inboundSchema: z.ZodType<
|
|
405
|
-
ListUserModelsCompletion,
|
|
406
|
-
z.ZodTypeDef,
|
|
407
|
-
unknown
|
|
408
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
409
|
-
|
|
410
|
-
/** @internal */
|
|
411
|
-
export type ListUserModelsCompletion$Outbound = number | string | any;
|
|
412
|
-
|
|
413
|
-
/** @internal */
|
|
414
|
-
export const ListUserModelsCompletion$outboundSchema: z.ZodType<
|
|
415
|
-
ListUserModelsCompletion$Outbound,
|
|
416
|
-
z.ZodTypeDef,
|
|
417
|
-
ListUserModelsCompletion
|
|
418
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* @internal
|
|
422
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
423
|
-
*/
|
|
424
|
-
export namespace ListUserModelsCompletion$ {
|
|
425
|
-
/** @deprecated use `ListUserModelsCompletion$inboundSchema` instead. */
|
|
426
|
-
export const inboundSchema = ListUserModelsCompletion$inboundSchema;
|
|
427
|
-
/** @deprecated use `ListUserModelsCompletion$outboundSchema` instead. */
|
|
428
|
-
export const outboundSchema = ListUserModelsCompletion$outboundSchema;
|
|
429
|
-
/** @deprecated use `ListUserModelsCompletion$Outbound` instead. */
|
|
430
|
-
export type Outbound = ListUserModelsCompletion$Outbound;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
export function listUserModelsCompletionToJSON(
|
|
434
|
-
listUserModelsCompletion: ListUserModelsCompletion,
|
|
435
|
-
): string {
|
|
436
|
-
return JSON.stringify(
|
|
437
|
-
ListUserModelsCompletion$outboundSchema.parse(listUserModelsCompletion),
|
|
438
|
-
);
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
export function listUserModelsCompletionFromJSON(
|
|
442
|
-
jsonString: string,
|
|
443
|
-
): SafeParseResult<ListUserModelsCompletion, SDKValidationError> {
|
|
444
|
-
return safeParse(
|
|
445
|
-
jsonString,
|
|
446
|
-
(x) => ListUserModelsCompletion$inboundSchema.parse(JSON.parse(x)),
|
|
447
|
-
`Failed to parse 'ListUserModelsCompletion' from JSON`,
|
|
448
|
-
);
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
/** @internal */
|
|
452
|
-
export const ModelsListUserModelsRequest$inboundSchema: z.ZodType<
|
|
453
|
-
ModelsListUserModelsRequest,
|
|
454
|
-
z.ZodTypeDef,
|
|
455
|
-
unknown
|
|
456
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
457
|
-
|
|
458
|
-
/** @internal */
|
|
459
|
-
export type ModelsListUserModelsRequest$Outbound = number | string | any;
|
|
460
|
-
|
|
461
|
-
/** @internal */
|
|
462
|
-
export const ModelsListUserModelsRequest$outboundSchema: z.ZodType<
|
|
463
|
-
ModelsListUserModelsRequest$Outbound,
|
|
464
|
-
z.ZodTypeDef,
|
|
465
|
-
ModelsListUserModelsRequest
|
|
466
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* @internal
|
|
470
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
471
|
-
*/
|
|
472
|
-
export namespace ModelsListUserModelsRequest$ {
|
|
473
|
-
/** @deprecated use `ModelsListUserModelsRequest$inboundSchema` instead. */
|
|
474
|
-
export const inboundSchema = ModelsListUserModelsRequest$inboundSchema;
|
|
475
|
-
/** @deprecated use `ModelsListUserModelsRequest$outboundSchema` instead. */
|
|
476
|
-
export const outboundSchema = ModelsListUserModelsRequest$outboundSchema;
|
|
477
|
-
/** @deprecated use `ModelsListUserModelsRequest$Outbound` instead. */
|
|
478
|
-
export type Outbound = ModelsListUserModelsRequest$Outbound;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
export function modelsListUserModelsRequestToJSON(
|
|
482
|
-
modelsListUserModelsRequest: ModelsListUserModelsRequest,
|
|
483
|
-
): string {
|
|
484
|
-
return JSON.stringify(
|
|
485
|
-
ModelsListUserModelsRequest$outboundSchema.parse(
|
|
486
|
-
modelsListUserModelsRequest,
|
|
487
|
-
),
|
|
488
|
-
);
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
export function modelsListUserModelsRequestFromJSON(
|
|
492
|
-
jsonString: string,
|
|
493
|
-
): SafeParseResult<ModelsListUserModelsRequest, SDKValidationError> {
|
|
494
|
-
return safeParse(
|
|
495
|
-
jsonString,
|
|
496
|
-
(x) => ModelsListUserModelsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
497
|
-
`Failed to parse 'ModelsListUserModelsRequest' from JSON`,
|
|
498
|
-
);
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
/** @internal */
|
|
502
|
-
export const ListUserModelsImage$inboundSchema: z.ZodType<
|
|
503
|
-
ListUserModelsImage,
|
|
504
|
-
z.ZodTypeDef,
|
|
505
|
-
unknown
|
|
506
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
507
|
-
|
|
508
|
-
/** @internal */
|
|
509
|
-
export type ListUserModelsImage$Outbound = number | string | any;
|
|
510
|
-
|
|
511
|
-
/** @internal */
|
|
512
|
-
export const ListUserModelsImage$outboundSchema: z.ZodType<
|
|
513
|
-
ListUserModelsImage$Outbound,
|
|
514
|
-
z.ZodTypeDef,
|
|
515
|
-
ListUserModelsImage
|
|
516
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* @internal
|
|
520
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
521
|
-
*/
|
|
522
|
-
export namespace ListUserModelsImage$ {
|
|
523
|
-
/** @deprecated use `ListUserModelsImage$inboundSchema` instead. */
|
|
524
|
-
export const inboundSchema = ListUserModelsImage$inboundSchema;
|
|
525
|
-
/** @deprecated use `ListUserModelsImage$outboundSchema` instead. */
|
|
526
|
-
export const outboundSchema = ListUserModelsImage$outboundSchema;
|
|
527
|
-
/** @deprecated use `ListUserModelsImage$Outbound` instead. */
|
|
528
|
-
export type Outbound = ListUserModelsImage$Outbound;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
export function listUserModelsImageToJSON(
|
|
532
|
-
listUserModelsImage: ListUserModelsImage,
|
|
533
|
-
): string {
|
|
534
|
-
return JSON.stringify(
|
|
535
|
-
ListUserModelsImage$outboundSchema.parse(listUserModelsImage),
|
|
536
|
-
);
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
export function listUserModelsImageFromJSON(
|
|
540
|
-
jsonString: string,
|
|
541
|
-
): SafeParseResult<ListUserModelsImage, SDKValidationError> {
|
|
542
|
-
return safeParse(
|
|
543
|
-
jsonString,
|
|
544
|
-
(x) => ListUserModelsImage$inboundSchema.parse(JSON.parse(x)),
|
|
545
|
-
`Failed to parse 'ListUserModelsImage' from JSON`,
|
|
546
|
-
);
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
/** @internal */
|
|
550
|
-
export const ListUserModelsImageOutput$inboundSchema: z.ZodType<
|
|
551
|
-
ListUserModelsImageOutput,
|
|
552
|
-
z.ZodTypeDef,
|
|
553
|
-
unknown
|
|
554
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
555
|
-
|
|
556
|
-
/** @internal */
|
|
557
|
-
export type ListUserModelsImageOutput$Outbound = number | string | any;
|
|
558
|
-
|
|
559
|
-
/** @internal */
|
|
560
|
-
export const ListUserModelsImageOutput$outboundSchema: z.ZodType<
|
|
561
|
-
ListUserModelsImageOutput$Outbound,
|
|
562
|
-
z.ZodTypeDef,
|
|
563
|
-
ListUserModelsImageOutput
|
|
564
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* @internal
|
|
568
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
569
|
-
*/
|
|
570
|
-
export namespace ListUserModelsImageOutput$ {
|
|
571
|
-
/** @deprecated use `ListUserModelsImageOutput$inboundSchema` instead. */
|
|
572
|
-
export const inboundSchema = ListUserModelsImageOutput$inboundSchema;
|
|
573
|
-
/** @deprecated use `ListUserModelsImageOutput$outboundSchema` instead. */
|
|
574
|
-
export const outboundSchema = ListUserModelsImageOutput$outboundSchema;
|
|
575
|
-
/** @deprecated use `ListUserModelsImageOutput$Outbound` instead. */
|
|
576
|
-
export type Outbound = ListUserModelsImageOutput$Outbound;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
export function listUserModelsImageOutputToJSON(
|
|
580
|
-
listUserModelsImageOutput: ListUserModelsImageOutput,
|
|
581
|
-
): string {
|
|
582
|
-
return JSON.stringify(
|
|
583
|
-
ListUserModelsImageOutput$outboundSchema.parse(listUserModelsImageOutput),
|
|
584
|
-
);
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
export function listUserModelsImageOutputFromJSON(
|
|
588
|
-
jsonString: string,
|
|
589
|
-
): SafeParseResult<ListUserModelsImageOutput, SDKValidationError> {
|
|
590
|
-
return safeParse(
|
|
591
|
-
jsonString,
|
|
592
|
-
(x) => ListUserModelsImageOutput$inboundSchema.parse(JSON.parse(x)),
|
|
593
|
-
`Failed to parse 'ListUserModelsImageOutput' from JSON`,
|
|
594
|
-
);
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
/** @internal */
|
|
598
|
-
export const ListUserModelsAudio$inboundSchema: z.ZodType<
|
|
599
|
-
ListUserModelsAudio,
|
|
600
|
-
z.ZodTypeDef,
|
|
601
|
-
unknown
|
|
602
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
603
|
-
|
|
604
|
-
/** @internal */
|
|
605
|
-
export type ListUserModelsAudio$Outbound = number | string | any;
|
|
606
|
-
|
|
607
|
-
/** @internal */
|
|
608
|
-
export const ListUserModelsAudio$outboundSchema: z.ZodType<
|
|
609
|
-
ListUserModelsAudio$Outbound,
|
|
610
|
-
z.ZodTypeDef,
|
|
611
|
-
ListUserModelsAudio
|
|
612
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
613
|
-
|
|
614
|
-
/**
|
|
615
|
-
* @internal
|
|
616
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
617
|
-
*/
|
|
618
|
-
export namespace ListUserModelsAudio$ {
|
|
619
|
-
/** @deprecated use `ListUserModelsAudio$inboundSchema` instead. */
|
|
620
|
-
export const inboundSchema = ListUserModelsAudio$inboundSchema;
|
|
621
|
-
/** @deprecated use `ListUserModelsAudio$outboundSchema` instead. */
|
|
622
|
-
export const outboundSchema = ListUserModelsAudio$outboundSchema;
|
|
623
|
-
/** @deprecated use `ListUserModelsAudio$Outbound` instead. */
|
|
624
|
-
export type Outbound = ListUserModelsAudio$Outbound;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
export function listUserModelsAudioToJSON(
|
|
628
|
-
listUserModelsAudio: ListUserModelsAudio,
|
|
629
|
-
): string {
|
|
630
|
-
return JSON.stringify(
|
|
631
|
-
ListUserModelsAudio$outboundSchema.parse(listUserModelsAudio),
|
|
632
|
-
);
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
export function listUserModelsAudioFromJSON(
|
|
636
|
-
jsonString: string,
|
|
637
|
-
): SafeParseResult<ListUserModelsAudio, SDKValidationError> {
|
|
638
|
-
return safeParse(
|
|
639
|
-
jsonString,
|
|
640
|
-
(x) => ListUserModelsAudio$inboundSchema.parse(JSON.parse(x)),
|
|
641
|
-
`Failed to parse 'ListUserModelsAudio' from JSON`,
|
|
642
|
-
);
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
/** @internal */
|
|
646
|
-
export const ListUserModelsInputAudioCache$inboundSchema: z.ZodType<
|
|
647
|
-
ListUserModelsInputAudioCache,
|
|
648
|
-
z.ZodTypeDef,
|
|
649
|
-
unknown
|
|
650
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
651
|
-
|
|
652
|
-
/** @internal */
|
|
653
|
-
export type ListUserModelsInputAudioCache$Outbound = number | string | any;
|
|
654
|
-
|
|
655
|
-
/** @internal */
|
|
656
|
-
export const ListUserModelsInputAudioCache$outboundSchema: z.ZodType<
|
|
657
|
-
ListUserModelsInputAudioCache$Outbound,
|
|
658
|
-
z.ZodTypeDef,
|
|
659
|
-
ListUserModelsInputAudioCache
|
|
660
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* @internal
|
|
664
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
665
|
-
*/
|
|
666
|
-
export namespace ListUserModelsInputAudioCache$ {
|
|
667
|
-
/** @deprecated use `ListUserModelsInputAudioCache$inboundSchema` instead. */
|
|
668
|
-
export const inboundSchema = ListUserModelsInputAudioCache$inboundSchema;
|
|
669
|
-
/** @deprecated use `ListUserModelsInputAudioCache$outboundSchema` instead. */
|
|
670
|
-
export const outboundSchema = ListUserModelsInputAudioCache$outboundSchema;
|
|
671
|
-
/** @deprecated use `ListUserModelsInputAudioCache$Outbound` instead. */
|
|
672
|
-
export type Outbound = ListUserModelsInputAudioCache$Outbound;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
export function listUserModelsInputAudioCacheToJSON(
|
|
676
|
-
listUserModelsInputAudioCache: ListUserModelsInputAudioCache,
|
|
677
|
-
): string {
|
|
678
|
-
return JSON.stringify(
|
|
679
|
-
ListUserModelsInputAudioCache$outboundSchema.parse(
|
|
680
|
-
listUserModelsInputAudioCache,
|
|
681
|
-
),
|
|
682
|
-
);
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
export function listUserModelsInputAudioCacheFromJSON(
|
|
686
|
-
jsonString: string,
|
|
687
|
-
): SafeParseResult<ListUserModelsInputAudioCache, SDKValidationError> {
|
|
688
|
-
return safeParse(
|
|
689
|
-
jsonString,
|
|
690
|
-
(x) => ListUserModelsInputAudioCache$inboundSchema.parse(JSON.parse(x)),
|
|
691
|
-
`Failed to parse 'ListUserModelsInputAudioCache' from JSON`,
|
|
692
|
-
);
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/** @internal */
|
|
696
|
-
export const ListUserModelsWebSearch$inboundSchema: z.ZodType<
|
|
697
|
-
ListUserModelsWebSearch,
|
|
698
|
-
z.ZodTypeDef,
|
|
699
|
-
unknown
|
|
700
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
701
|
-
|
|
702
|
-
/** @internal */
|
|
703
|
-
export type ListUserModelsWebSearch$Outbound = number | string | any;
|
|
704
|
-
|
|
705
|
-
/** @internal */
|
|
706
|
-
export const ListUserModelsWebSearch$outboundSchema: z.ZodType<
|
|
707
|
-
ListUserModelsWebSearch$Outbound,
|
|
708
|
-
z.ZodTypeDef,
|
|
709
|
-
ListUserModelsWebSearch
|
|
710
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
711
|
-
|
|
712
|
-
/**
|
|
713
|
-
* @internal
|
|
714
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
715
|
-
*/
|
|
716
|
-
export namespace ListUserModelsWebSearch$ {
|
|
717
|
-
/** @deprecated use `ListUserModelsWebSearch$inboundSchema` instead. */
|
|
718
|
-
export const inboundSchema = ListUserModelsWebSearch$inboundSchema;
|
|
719
|
-
/** @deprecated use `ListUserModelsWebSearch$outboundSchema` instead. */
|
|
720
|
-
export const outboundSchema = ListUserModelsWebSearch$outboundSchema;
|
|
721
|
-
/** @deprecated use `ListUserModelsWebSearch$Outbound` instead. */
|
|
722
|
-
export type Outbound = ListUserModelsWebSearch$Outbound;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
export function listUserModelsWebSearchToJSON(
|
|
726
|
-
listUserModelsWebSearch: ListUserModelsWebSearch,
|
|
727
|
-
): string {
|
|
728
|
-
return JSON.stringify(
|
|
729
|
-
ListUserModelsWebSearch$outboundSchema.parse(listUserModelsWebSearch),
|
|
730
|
-
);
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
export function listUserModelsWebSearchFromJSON(
|
|
734
|
-
jsonString: string,
|
|
735
|
-
): SafeParseResult<ListUserModelsWebSearch, SDKValidationError> {
|
|
736
|
-
return safeParse(
|
|
737
|
-
jsonString,
|
|
738
|
-
(x) => ListUserModelsWebSearch$inboundSchema.parse(JSON.parse(x)),
|
|
739
|
-
`Failed to parse 'ListUserModelsWebSearch' from JSON`,
|
|
740
|
-
);
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
/** @internal */
|
|
744
|
-
export const ListUserModelsInternalReasoning$inboundSchema: z.ZodType<
|
|
745
|
-
ListUserModelsInternalReasoning,
|
|
746
|
-
z.ZodTypeDef,
|
|
747
|
-
unknown
|
|
748
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
749
|
-
|
|
750
|
-
/** @internal */
|
|
751
|
-
export type ListUserModelsInternalReasoning$Outbound = number | string | any;
|
|
752
|
-
|
|
753
|
-
/** @internal */
|
|
754
|
-
export const ListUserModelsInternalReasoning$outboundSchema: z.ZodType<
|
|
755
|
-
ListUserModelsInternalReasoning$Outbound,
|
|
756
|
-
z.ZodTypeDef,
|
|
757
|
-
ListUserModelsInternalReasoning
|
|
758
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
759
|
-
|
|
760
|
-
/**
|
|
761
|
-
* @internal
|
|
762
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
763
|
-
*/
|
|
764
|
-
export namespace ListUserModelsInternalReasoning$ {
|
|
765
|
-
/** @deprecated use `ListUserModelsInternalReasoning$inboundSchema` instead. */
|
|
766
|
-
export const inboundSchema = ListUserModelsInternalReasoning$inboundSchema;
|
|
767
|
-
/** @deprecated use `ListUserModelsInternalReasoning$outboundSchema` instead. */
|
|
768
|
-
export const outboundSchema = ListUserModelsInternalReasoning$outboundSchema;
|
|
769
|
-
/** @deprecated use `ListUserModelsInternalReasoning$Outbound` instead. */
|
|
770
|
-
export type Outbound = ListUserModelsInternalReasoning$Outbound;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
export function listUserModelsInternalReasoningToJSON(
|
|
774
|
-
listUserModelsInternalReasoning: ListUserModelsInternalReasoning,
|
|
775
|
-
): string {
|
|
776
|
-
return JSON.stringify(
|
|
777
|
-
ListUserModelsInternalReasoning$outboundSchema.parse(
|
|
778
|
-
listUserModelsInternalReasoning,
|
|
779
|
-
),
|
|
780
|
-
);
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
export function listUserModelsInternalReasoningFromJSON(
|
|
784
|
-
jsonString: string,
|
|
785
|
-
): SafeParseResult<ListUserModelsInternalReasoning, SDKValidationError> {
|
|
786
|
-
return safeParse(
|
|
787
|
-
jsonString,
|
|
788
|
-
(x) => ListUserModelsInternalReasoning$inboundSchema.parse(JSON.parse(x)),
|
|
789
|
-
`Failed to parse 'ListUserModelsInternalReasoning' from JSON`,
|
|
790
|
-
);
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
/** @internal */
|
|
794
|
-
export const ListUserModelsInputCacheRead$inboundSchema: z.ZodType<
|
|
795
|
-
ListUserModelsInputCacheRead,
|
|
796
|
-
z.ZodTypeDef,
|
|
797
|
-
unknown
|
|
798
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
799
|
-
|
|
800
|
-
/** @internal */
|
|
801
|
-
export type ListUserModelsInputCacheRead$Outbound = number | string | any;
|
|
802
|
-
|
|
803
|
-
/** @internal */
|
|
804
|
-
export const ListUserModelsInputCacheRead$outboundSchema: z.ZodType<
|
|
805
|
-
ListUserModelsInputCacheRead$Outbound,
|
|
806
|
-
z.ZodTypeDef,
|
|
807
|
-
ListUserModelsInputCacheRead
|
|
808
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* @internal
|
|
812
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
813
|
-
*/
|
|
814
|
-
export namespace ListUserModelsInputCacheRead$ {
|
|
815
|
-
/** @deprecated use `ListUserModelsInputCacheRead$inboundSchema` instead. */
|
|
816
|
-
export const inboundSchema = ListUserModelsInputCacheRead$inboundSchema;
|
|
817
|
-
/** @deprecated use `ListUserModelsInputCacheRead$outboundSchema` instead. */
|
|
818
|
-
export const outboundSchema = ListUserModelsInputCacheRead$outboundSchema;
|
|
819
|
-
/** @deprecated use `ListUserModelsInputCacheRead$Outbound` instead. */
|
|
820
|
-
export type Outbound = ListUserModelsInputCacheRead$Outbound;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
export function listUserModelsInputCacheReadToJSON(
|
|
824
|
-
listUserModelsInputCacheRead: ListUserModelsInputCacheRead,
|
|
825
|
-
): string {
|
|
826
|
-
return JSON.stringify(
|
|
827
|
-
ListUserModelsInputCacheRead$outboundSchema.parse(
|
|
828
|
-
listUserModelsInputCacheRead,
|
|
829
|
-
),
|
|
830
|
-
);
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
export function listUserModelsInputCacheReadFromJSON(
|
|
834
|
-
jsonString: string,
|
|
835
|
-
): SafeParseResult<ListUserModelsInputCacheRead, SDKValidationError> {
|
|
836
|
-
return safeParse(
|
|
837
|
-
jsonString,
|
|
838
|
-
(x) => ListUserModelsInputCacheRead$inboundSchema.parse(JSON.parse(x)),
|
|
839
|
-
`Failed to parse 'ListUserModelsInputCacheRead' from JSON`,
|
|
840
|
-
);
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
/** @internal */
|
|
844
|
-
export const ListUserModelsInputCacheWrite$inboundSchema: z.ZodType<
|
|
845
|
-
ListUserModelsInputCacheWrite,
|
|
846
|
-
z.ZodTypeDef,
|
|
847
|
-
unknown
|
|
848
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
849
|
-
|
|
850
|
-
/** @internal */
|
|
851
|
-
export type ListUserModelsInputCacheWrite$Outbound = number | string | any;
|
|
852
|
-
|
|
853
|
-
/** @internal */
|
|
854
|
-
export const ListUserModelsInputCacheWrite$outboundSchema: z.ZodType<
|
|
855
|
-
ListUserModelsInputCacheWrite$Outbound,
|
|
856
|
-
z.ZodTypeDef,
|
|
857
|
-
ListUserModelsInputCacheWrite
|
|
858
|
-
> = z.union([z.number(), z.string(), z.any()]);
|
|
859
|
-
|
|
860
|
-
/**
|
|
861
|
-
* @internal
|
|
862
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
863
|
-
*/
|
|
864
|
-
export namespace ListUserModelsInputCacheWrite$ {
|
|
865
|
-
/** @deprecated use `ListUserModelsInputCacheWrite$inboundSchema` instead. */
|
|
866
|
-
export const inboundSchema = ListUserModelsInputCacheWrite$inboundSchema;
|
|
867
|
-
/** @deprecated use `ListUserModelsInputCacheWrite$outboundSchema` instead. */
|
|
868
|
-
export const outboundSchema = ListUserModelsInputCacheWrite$outboundSchema;
|
|
869
|
-
/** @deprecated use `ListUserModelsInputCacheWrite$Outbound` instead. */
|
|
870
|
-
export type Outbound = ListUserModelsInputCacheWrite$Outbound;
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
export function listUserModelsInputCacheWriteToJSON(
|
|
874
|
-
listUserModelsInputCacheWrite: ListUserModelsInputCacheWrite,
|
|
875
|
-
): string {
|
|
876
|
-
return JSON.stringify(
|
|
877
|
-
ListUserModelsInputCacheWrite$outboundSchema.parse(
|
|
878
|
-
listUserModelsInputCacheWrite,
|
|
879
|
-
),
|
|
880
|
-
);
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
export function listUserModelsInputCacheWriteFromJSON(
|
|
884
|
-
jsonString: string,
|
|
885
|
-
): SafeParseResult<ListUserModelsInputCacheWrite, SDKValidationError> {
|
|
886
|
-
return safeParse(
|
|
887
|
-
jsonString,
|
|
888
|
-
(x) => ListUserModelsInputCacheWrite$inboundSchema.parse(JSON.parse(x)),
|
|
889
|
-
`Failed to parse 'ListUserModelsInputCacheWrite' from JSON`,
|
|
890
|
-
);
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
/** @internal */
|
|
894
|
-
export const ListUserModelsPricing$inboundSchema: z.ZodType<
|
|
895
|
-
ListUserModelsPricing,
|
|
896
|
-
z.ZodTypeDef,
|
|
897
|
-
unknown
|
|
898
|
-
> = z.object({
|
|
899
|
-
prompt: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
900
|
-
completion: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
901
|
-
request: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
902
|
-
image: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
903
|
-
image_output: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
904
|
-
audio: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
905
|
-
input_audio_cache: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
906
|
-
web_search: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
907
|
-
internal_reasoning: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
908
|
-
input_cache_read: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
909
|
-
input_cache_write: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
910
|
-
discount: z.number().optional(),
|
|
911
|
-
}).transform((v) => {
|
|
912
|
-
return remap$(v, {
|
|
913
|
-
"image_output": "imageOutput",
|
|
914
|
-
"input_audio_cache": "inputAudioCache",
|
|
915
|
-
"web_search": "webSearch",
|
|
916
|
-
"internal_reasoning": "internalReasoning",
|
|
917
|
-
"input_cache_read": "inputCacheRead",
|
|
918
|
-
"input_cache_write": "inputCacheWrite",
|
|
919
|
-
});
|
|
920
|
-
});
|
|
921
|
-
|
|
922
|
-
/** @internal */
|
|
923
|
-
export type ListUserModelsPricing$Outbound = {
|
|
924
|
-
prompt?: number | string | any | undefined;
|
|
925
|
-
completion?: number | string | any | undefined;
|
|
926
|
-
request?: number | string | any | undefined;
|
|
927
|
-
image?: number | string | any | undefined;
|
|
928
|
-
image_output?: number | string | any | undefined;
|
|
929
|
-
audio?: number | string | any | undefined;
|
|
930
|
-
input_audio_cache?: number | string | any | undefined;
|
|
931
|
-
web_search?: number | string | any | undefined;
|
|
932
|
-
internal_reasoning?: number | string | any | undefined;
|
|
933
|
-
input_cache_read?: number | string | any | undefined;
|
|
934
|
-
input_cache_write?: number | string | any | undefined;
|
|
935
|
-
discount?: number | undefined;
|
|
936
|
-
};
|
|
937
|
-
|
|
938
|
-
/** @internal */
|
|
939
|
-
export const ListUserModelsPricing$outboundSchema: z.ZodType<
|
|
940
|
-
ListUserModelsPricing$Outbound,
|
|
941
|
-
z.ZodTypeDef,
|
|
942
|
-
ListUserModelsPricing
|
|
943
|
-
> = z.object({
|
|
944
|
-
prompt: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
945
|
-
completion: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
946
|
-
request: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
947
|
-
image: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
948
|
-
imageOutput: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
949
|
-
audio: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
950
|
-
inputAudioCache: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
951
|
-
webSearch: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
952
|
-
internalReasoning: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
953
|
-
inputCacheRead: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
954
|
-
inputCacheWrite: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
955
|
-
discount: z.number().optional(),
|
|
956
|
-
}).transform((v) => {
|
|
957
|
-
return remap$(v, {
|
|
958
|
-
imageOutput: "image_output",
|
|
959
|
-
inputAudioCache: "input_audio_cache",
|
|
960
|
-
webSearch: "web_search",
|
|
961
|
-
internalReasoning: "internal_reasoning",
|
|
962
|
-
inputCacheRead: "input_cache_read",
|
|
963
|
-
inputCacheWrite: "input_cache_write",
|
|
964
|
-
});
|
|
965
|
-
});
|
|
966
|
-
|
|
967
|
-
/**
|
|
968
|
-
* @internal
|
|
969
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
970
|
-
*/
|
|
971
|
-
export namespace ListUserModelsPricing$ {
|
|
972
|
-
/** @deprecated use `ListUserModelsPricing$inboundSchema` instead. */
|
|
973
|
-
export const inboundSchema = ListUserModelsPricing$inboundSchema;
|
|
974
|
-
/** @deprecated use `ListUserModelsPricing$outboundSchema` instead. */
|
|
975
|
-
export const outboundSchema = ListUserModelsPricing$outboundSchema;
|
|
976
|
-
/** @deprecated use `ListUserModelsPricing$Outbound` instead. */
|
|
977
|
-
export type Outbound = ListUserModelsPricing$Outbound;
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
export function listUserModelsPricingToJSON(
|
|
981
|
-
listUserModelsPricing: ListUserModelsPricing,
|
|
982
|
-
): string {
|
|
983
|
-
return JSON.stringify(
|
|
984
|
-
ListUserModelsPricing$outboundSchema.parse(listUserModelsPricing),
|
|
985
|
-
);
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
export function listUserModelsPricingFromJSON(
|
|
989
|
-
jsonString: string,
|
|
990
|
-
): SafeParseResult<ListUserModelsPricing, SDKValidationError> {
|
|
991
|
-
return safeParse(
|
|
992
|
-
jsonString,
|
|
993
|
-
(x) => ListUserModelsPricing$inboundSchema.parse(JSON.parse(x)),
|
|
994
|
-
`Failed to parse 'ListUserModelsPricing' from JSON`,
|
|
995
|
-
);
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
/** @internal */
|
|
999
|
-
export const ListUserModelsTokenizer$inboundSchema: z.ZodNativeEnum<
|
|
1000
|
-
typeof ListUserModelsTokenizer
|
|
1001
|
-
> = z.nativeEnum(ListUserModelsTokenizer);
|
|
1002
|
-
|
|
1003
|
-
/** @internal */
|
|
1004
|
-
export const ListUserModelsTokenizer$outboundSchema: z.ZodNativeEnum<
|
|
1005
|
-
typeof ListUserModelsTokenizer
|
|
1006
|
-
> = ListUserModelsTokenizer$inboundSchema;
|
|
1007
|
-
|
|
1008
|
-
/**
|
|
1009
|
-
* @internal
|
|
1010
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1011
|
-
*/
|
|
1012
|
-
export namespace ListUserModelsTokenizer$ {
|
|
1013
|
-
/** @deprecated use `ListUserModelsTokenizer$inboundSchema` instead. */
|
|
1014
|
-
export const inboundSchema = ListUserModelsTokenizer$inboundSchema;
|
|
1015
|
-
/** @deprecated use `ListUserModelsTokenizer$outboundSchema` instead. */
|
|
1016
|
-
export const outboundSchema = ListUserModelsTokenizer$outboundSchema;
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
/** @internal */
|
|
1020
|
-
export const ListUserModelsInstructType$inboundSchema: z.ZodNativeEnum<
|
|
1021
|
-
typeof ListUserModelsInstructType
|
|
1022
|
-
> = z.nativeEnum(ListUserModelsInstructType);
|
|
1023
|
-
|
|
1024
|
-
/** @internal */
|
|
1025
|
-
export const ListUserModelsInstructType$outboundSchema: z.ZodNativeEnum<
|
|
1026
|
-
typeof ListUserModelsInstructType
|
|
1027
|
-
> = ListUserModelsInstructType$inboundSchema;
|
|
1028
|
-
|
|
1029
|
-
/**
|
|
1030
|
-
* @internal
|
|
1031
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1032
|
-
*/
|
|
1033
|
-
export namespace ListUserModelsInstructType$ {
|
|
1034
|
-
/** @deprecated use `ListUserModelsInstructType$inboundSchema` instead. */
|
|
1035
|
-
export const inboundSchema = ListUserModelsInstructType$inboundSchema;
|
|
1036
|
-
/** @deprecated use `ListUserModelsInstructType$outboundSchema` instead. */
|
|
1037
|
-
export const outboundSchema = ListUserModelsInstructType$outboundSchema;
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
/** @internal */
|
|
1041
|
-
export const ListUserModelsInputModality$inboundSchema: z.ZodNativeEnum<
|
|
1042
|
-
typeof ListUserModelsInputModality
|
|
1043
|
-
> = z.nativeEnum(ListUserModelsInputModality);
|
|
1044
|
-
|
|
1045
|
-
/** @internal */
|
|
1046
|
-
export const ListUserModelsInputModality$outboundSchema: z.ZodNativeEnum<
|
|
1047
|
-
typeof ListUserModelsInputModality
|
|
1048
|
-
> = ListUserModelsInputModality$inboundSchema;
|
|
1049
|
-
|
|
1050
|
-
/**
|
|
1051
|
-
* @internal
|
|
1052
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1053
|
-
*/
|
|
1054
|
-
export namespace ListUserModelsInputModality$ {
|
|
1055
|
-
/** @deprecated use `ListUserModelsInputModality$inboundSchema` instead. */
|
|
1056
|
-
export const inboundSchema = ListUserModelsInputModality$inboundSchema;
|
|
1057
|
-
/** @deprecated use `ListUserModelsInputModality$outboundSchema` instead. */
|
|
1058
|
-
export const outboundSchema = ListUserModelsInputModality$outboundSchema;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
/** @internal */
|
|
1062
|
-
export const ListUserModelsOutputModality$inboundSchema: z.ZodNativeEnum<
|
|
1063
|
-
typeof ListUserModelsOutputModality
|
|
1064
|
-
> = z.nativeEnum(ListUserModelsOutputModality);
|
|
1065
|
-
|
|
1066
|
-
/** @internal */
|
|
1067
|
-
export const ListUserModelsOutputModality$outboundSchema: z.ZodNativeEnum<
|
|
1068
|
-
typeof ListUserModelsOutputModality
|
|
1069
|
-
> = ListUserModelsOutputModality$inboundSchema;
|
|
1070
|
-
|
|
1071
|
-
/**
|
|
1072
|
-
* @internal
|
|
1073
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1074
|
-
*/
|
|
1075
|
-
export namespace ListUserModelsOutputModality$ {
|
|
1076
|
-
/** @deprecated use `ListUserModelsOutputModality$inboundSchema` instead. */
|
|
1077
|
-
export const inboundSchema = ListUserModelsOutputModality$inboundSchema;
|
|
1078
|
-
/** @deprecated use `ListUserModelsOutputModality$outboundSchema` instead. */
|
|
1079
|
-
export const outboundSchema = ListUserModelsOutputModality$outboundSchema;
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
/** @internal */
|
|
1083
|
-
export const ListUserModelsArchitecture$inboundSchema: z.ZodType<
|
|
1084
|
-
ListUserModelsArchitecture,
|
|
1085
|
-
z.ZodTypeDef,
|
|
1086
|
-
unknown
|
|
1087
|
-
> = z.object({
|
|
1088
|
-
tokenizer: ListUserModelsTokenizer$inboundSchema.optional(),
|
|
1089
|
-
instruct_type: z.nullable(ListUserModelsInstructType$inboundSchema)
|
|
1090
|
-
.optional(),
|
|
1091
|
-
modality: z.nullable(z.string()),
|
|
1092
|
-
input_modalities: z.array(ListUserModelsInputModality$inboundSchema),
|
|
1093
|
-
output_modalities: z.array(ListUserModelsOutputModality$inboundSchema),
|
|
1094
|
-
}).transform((v) => {
|
|
1095
|
-
return remap$(v, {
|
|
1096
|
-
"instruct_type": "instructType",
|
|
1097
|
-
"input_modalities": "inputModalities",
|
|
1098
|
-
"output_modalities": "outputModalities",
|
|
1099
|
-
});
|
|
1100
|
-
});
|
|
1101
|
-
|
|
1102
|
-
/** @internal */
|
|
1103
|
-
export type ListUserModelsArchitecture$Outbound = {
|
|
1104
|
-
tokenizer?: string | undefined;
|
|
1105
|
-
instruct_type?: string | null | undefined;
|
|
1106
|
-
modality: string | null;
|
|
1107
|
-
input_modalities: Array<string>;
|
|
1108
|
-
output_modalities: Array<string>;
|
|
1109
|
-
};
|
|
1110
|
-
|
|
1111
|
-
/** @internal */
|
|
1112
|
-
export const ListUserModelsArchitecture$outboundSchema: z.ZodType<
|
|
1113
|
-
ListUserModelsArchitecture$Outbound,
|
|
1114
|
-
z.ZodTypeDef,
|
|
1115
|
-
ListUserModelsArchitecture
|
|
1116
|
-
> = z.object({
|
|
1117
|
-
tokenizer: ListUserModelsTokenizer$outboundSchema.optional(),
|
|
1118
|
-
instructType: z.nullable(ListUserModelsInstructType$outboundSchema)
|
|
1119
|
-
.optional(),
|
|
1120
|
-
modality: z.nullable(z.string()),
|
|
1121
|
-
inputModalities: z.array(ListUserModelsInputModality$outboundSchema),
|
|
1122
|
-
outputModalities: z.array(ListUserModelsOutputModality$outboundSchema),
|
|
1123
|
-
}).transform((v) => {
|
|
1124
|
-
return remap$(v, {
|
|
1125
|
-
instructType: "instruct_type",
|
|
1126
|
-
inputModalities: "input_modalities",
|
|
1127
|
-
outputModalities: "output_modalities",
|
|
1128
|
-
});
|
|
1129
|
-
});
|
|
1130
|
-
|
|
1131
|
-
/**
|
|
1132
|
-
* @internal
|
|
1133
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1134
|
-
*/
|
|
1135
|
-
export namespace ListUserModelsArchitecture$ {
|
|
1136
|
-
/** @deprecated use `ListUserModelsArchitecture$inboundSchema` instead. */
|
|
1137
|
-
export const inboundSchema = ListUserModelsArchitecture$inboundSchema;
|
|
1138
|
-
/** @deprecated use `ListUserModelsArchitecture$outboundSchema` instead. */
|
|
1139
|
-
export const outboundSchema = ListUserModelsArchitecture$outboundSchema;
|
|
1140
|
-
/** @deprecated use `ListUserModelsArchitecture$Outbound` instead. */
|
|
1141
|
-
export type Outbound = ListUserModelsArchitecture$Outbound;
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
export function listUserModelsArchitectureToJSON(
|
|
1145
|
-
listUserModelsArchitecture: ListUserModelsArchitecture,
|
|
1146
|
-
): string {
|
|
1147
|
-
return JSON.stringify(
|
|
1148
|
-
ListUserModelsArchitecture$outboundSchema.parse(listUserModelsArchitecture),
|
|
1149
|
-
);
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
export function listUserModelsArchitectureFromJSON(
|
|
1153
|
-
jsonString: string,
|
|
1154
|
-
): SafeParseResult<ListUserModelsArchitecture, SDKValidationError> {
|
|
1155
|
-
return safeParse(
|
|
1156
|
-
jsonString,
|
|
1157
|
-
(x) => ListUserModelsArchitecture$inboundSchema.parse(JSON.parse(x)),
|
|
1158
|
-
`Failed to parse 'ListUserModelsArchitecture' from JSON`,
|
|
1159
|
-
);
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
/** @internal */
|
|
1163
|
-
export const ListUserModelsTopProvider$inboundSchema: z.ZodType<
|
|
1164
|
-
ListUserModelsTopProvider,
|
|
1165
|
-
z.ZodTypeDef,
|
|
1166
|
-
unknown
|
|
1167
|
-
> = z.object({
|
|
1168
|
-
context_length: z.nullable(z.number()).optional(),
|
|
1169
|
-
max_completion_tokens: z.nullable(z.number()).optional(),
|
|
1170
|
-
is_moderated: z.boolean(),
|
|
1171
|
-
}).transform((v) => {
|
|
1172
|
-
return remap$(v, {
|
|
1173
|
-
"context_length": "contextLength",
|
|
1174
|
-
"max_completion_tokens": "maxCompletionTokens",
|
|
1175
|
-
"is_moderated": "isModerated",
|
|
1176
|
-
});
|
|
1177
|
-
});
|
|
1178
|
-
|
|
1179
|
-
/** @internal */
|
|
1180
|
-
export type ListUserModelsTopProvider$Outbound = {
|
|
1181
|
-
context_length?: number | null | undefined;
|
|
1182
|
-
max_completion_tokens?: number | null | undefined;
|
|
1183
|
-
is_moderated: boolean;
|
|
1184
|
-
};
|
|
1185
|
-
|
|
1186
|
-
/** @internal */
|
|
1187
|
-
export const ListUserModelsTopProvider$outboundSchema: z.ZodType<
|
|
1188
|
-
ListUserModelsTopProvider$Outbound,
|
|
1189
|
-
z.ZodTypeDef,
|
|
1190
|
-
ListUserModelsTopProvider
|
|
1191
|
-
> = z.object({
|
|
1192
|
-
contextLength: z.nullable(z.number()).optional(),
|
|
1193
|
-
maxCompletionTokens: z.nullable(z.number()).optional(),
|
|
1194
|
-
isModerated: z.boolean(),
|
|
1195
|
-
}).transform((v) => {
|
|
1196
|
-
return remap$(v, {
|
|
1197
|
-
contextLength: "context_length",
|
|
1198
|
-
maxCompletionTokens: "max_completion_tokens",
|
|
1199
|
-
isModerated: "is_moderated",
|
|
1200
|
-
});
|
|
1201
|
-
});
|
|
1202
|
-
|
|
1203
|
-
/**
|
|
1204
|
-
* @internal
|
|
1205
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1206
|
-
*/
|
|
1207
|
-
export namespace ListUserModelsTopProvider$ {
|
|
1208
|
-
/** @deprecated use `ListUserModelsTopProvider$inboundSchema` instead. */
|
|
1209
|
-
export const inboundSchema = ListUserModelsTopProvider$inboundSchema;
|
|
1210
|
-
/** @deprecated use `ListUserModelsTopProvider$outboundSchema` instead. */
|
|
1211
|
-
export const outboundSchema = ListUserModelsTopProvider$outboundSchema;
|
|
1212
|
-
/** @deprecated use `ListUserModelsTopProvider$Outbound` instead. */
|
|
1213
|
-
export type Outbound = ListUserModelsTopProvider$Outbound;
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
export function listUserModelsTopProviderToJSON(
|
|
1217
|
-
listUserModelsTopProvider: ListUserModelsTopProvider,
|
|
1218
|
-
): string {
|
|
1219
|
-
return JSON.stringify(
|
|
1220
|
-
ListUserModelsTopProvider$outboundSchema.parse(listUserModelsTopProvider),
|
|
1221
|
-
);
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
export function listUserModelsTopProviderFromJSON(
|
|
1225
|
-
jsonString: string,
|
|
1226
|
-
): SafeParseResult<ListUserModelsTopProvider, SDKValidationError> {
|
|
1227
|
-
return safeParse(
|
|
1228
|
-
jsonString,
|
|
1229
|
-
(x) => ListUserModelsTopProvider$inboundSchema.parse(JSON.parse(x)),
|
|
1230
|
-
`Failed to parse 'ListUserModelsTopProvider' from JSON`,
|
|
1231
|
-
);
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
/** @internal */
|
|
1235
|
-
export const ListUserModelsPerRequestLimits$inboundSchema: z.ZodType<
|
|
1236
|
-
ListUserModelsPerRequestLimits,
|
|
1237
|
-
z.ZodTypeDef,
|
|
1238
|
-
unknown
|
|
1239
|
-
> = z.object({
|
|
1240
|
-
prompt_tokens: z.any().optional(),
|
|
1241
|
-
completion_tokens: z.any().optional(),
|
|
1242
|
-
}).transform((v) => {
|
|
1243
|
-
return remap$(v, {
|
|
1244
|
-
"prompt_tokens": "promptTokens",
|
|
1245
|
-
"completion_tokens": "completionTokens",
|
|
1246
|
-
});
|
|
1247
|
-
});
|
|
1248
|
-
|
|
1249
|
-
/** @internal */
|
|
1250
|
-
export type ListUserModelsPerRequestLimits$Outbound = {
|
|
1251
|
-
prompt_tokens?: any | undefined;
|
|
1252
|
-
completion_tokens?: any | undefined;
|
|
1253
|
-
};
|
|
1254
|
-
|
|
1255
|
-
/** @internal */
|
|
1256
|
-
export const ListUserModelsPerRequestLimits$outboundSchema: z.ZodType<
|
|
1257
|
-
ListUserModelsPerRequestLimits$Outbound,
|
|
1258
|
-
z.ZodTypeDef,
|
|
1259
|
-
ListUserModelsPerRequestLimits
|
|
1260
|
-
> = z.object({
|
|
1261
|
-
promptTokens: z.any().optional(),
|
|
1262
|
-
completionTokens: z.any().optional(),
|
|
1263
|
-
}).transform((v) => {
|
|
1264
|
-
return remap$(v, {
|
|
1265
|
-
promptTokens: "prompt_tokens",
|
|
1266
|
-
completionTokens: "completion_tokens",
|
|
1267
|
-
});
|
|
1268
|
-
});
|
|
1269
|
-
|
|
1270
|
-
/**
|
|
1271
|
-
* @internal
|
|
1272
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1273
|
-
*/
|
|
1274
|
-
export namespace ListUserModelsPerRequestLimits$ {
|
|
1275
|
-
/** @deprecated use `ListUserModelsPerRequestLimits$inboundSchema` instead. */
|
|
1276
|
-
export const inboundSchema = ListUserModelsPerRequestLimits$inboundSchema;
|
|
1277
|
-
/** @deprecated use `ListUserModelsPerRequestLimits$outboundSchema` instead. */
|
|
1278
|
-
export const outboundSchema = ListUserModelsPerRequestLimits$outboundSchema;
|
|
1279
|
-
/** @deprecated use `ListUserModelsPerRequestLimits$Outbound` instead. */
|
|
1280
|
-
export type Outbound = ListUserModelsPerRequestLimits$Outbound;
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
export function listUserModelsPerRequestLimitsToJSON(
|
|
1284
|
-
listUserModelsPerRequestLimits: ListUserModelsPerRequestLimits,
|
|
1285
|
-
): string {
|
|
1286
|
-
return JSON.stringify(
|
|
1287
|
-
ListUserModelsPerRequestLimits$outboundSchema.parse(
|
|
1288
|
-
listUserModelsPerRequestLimits,
|
|
1289
|
-
),
|
|
1290
|
-
);
|
|
1291
|
-
}
|
|
1292
|
-
|
|
1293
|
-
export function listUserModelsPerRequestLimitsFromJSON(
|
|
1294
|
-
jsonString: string,
|
|
1295
|
-
): SafeParseResult<ListUserModelsPerRequestLimits, SDKValidationError> {
|
|
1296
|
-
return safeParse(
|
|
1297
|
-
jsonString,
|
|
1298
|
-
(x) => ListUserModelsPerRequestLimits$inboundSchema.parse(JSON.parse(x)),
|
|
1299
|
-
`Failed to parse 'ListUserModelsPerRequestLimits' from JSON`,
|
|
1300
|
-
);
|
|
1301
|
-
}
|
|
1302
|
-
|
|
1303
|
-
/** @internal */
|
|
1304
|
-
export const ListUserModelsSupportedParameter$inboundSchema: z.ZodNativeEnum<
|
|
1305
|
-
typeof ListUserModelsSupportedParameter
|
|
1306
|
-
> = z.nativeEnum(ListUserModelsSupportedParameter);
|
|
1307
|
-
|
|
1308
|
-
/** @internal */
|
|
1309
|
-
export const ListUserModelsSupportedParameter$outboundSchema: z.ZodNativeEnum<
|
|
1310
|
-
typeof ListUserModelsSupportedParameter
|
|
1311
|
-
> = ListUserModelsSupportedParameter$inboundSchema;
|
|
1312
|
-
|
|
1313
|
-
/**
|
|
1314
|
-
* @internal
|
|
1315
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1316
|
-
*/
|
|
1317
|
-
export namespace ListUserModelsSupportedParameter$ {
|
|
1318
|
-
/** @deprecated use `ListUserModelsSupportedParameter$inboundSchema` instead. */
|
|
1319
|
-
export const inboundSchema = ListUserModelsSupportedParameter$inboundSchema;
|
|
1320
|
-
/** @deprecated use `ListUserModelsSupportedParameter$outboundSchema` instead. */
|
|
1321
|
-
export const outboundSchema = ListUserModelsSupportedParameter$outboundSchema;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
/** @internal */
|
|
1325
|
-
export const ListUserModelsDefaultParameters$inboundSchema: z.ZodType<
|
|
1326
|
-
ListUserModelsDefaultParameters,
|
|
1327
|
-
z.ZodTypeDef,
|
|
1328
|
-
unknown
|
|
1329
|
-
> = z.object({
|
|
1330
|
-
temperature: z.nullable(z.number()).optional(),
|
|
1331
|
-
top_p: z.nullable(z.number()).optional(),
|
|
1332
|
-
frequency_penalty: z.nullable(z.number()).optional(),
|
|
1333
|
-
}).transform((v) => {
|
|
1334
|
-
return remap$(v, {
|
|
1335
|
-
"top_p": "topP",
|
|
1336
|
-
"frequency_penalty": "frequencyPenalty",
|
|
1337
|
-
});
|
|
1338
|
-
});
|
|
1339
|
-
|
|
1340
|
-
/** @internal */
|
|
1341
|
-
export type ListUserModelsDefaultParameters$Outbound = {
|
|
1342
|
-
temperature?: number | null | undefined;
|
|
1343
|
-
top_p?: number | null | undefined;
|
|
1344
|
-
frequency_penalty?: number | null | undefined;
|
|
1345
|
-
};
|
|
1346
|
-
|
|
1347
|
-
/** @internal */
|
|
1348
|
-
export const ListUserModelsDefaultParameters$outboundSchema: z.ZodType<
|
|
1349
|
-
ListUserModelsDefaultParameters$Outbound,
|
|
1350
|
-
z.ZodTypeDef,
|
|
1351
|
-
ListUserModelsDefaultParameters
|
|
1352
|
-
> = z.object({
|
|
1353
|
-
temperature: z.nullable(z.number()).optional(),
|
|
1354
|
-
topP: z.nullable(z.number()).optional(),
|
|
1355
|
-
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
1356
|
-
}).transform((v) => {
|
|
1357
|
-
return remap$(v, {
|
|
1358
|
-
topP: "top_p",
|
|
1359
|
-
frequencyPenalty: "frequency_penalty",
|
|
1360
|
-
});
|
|
1361
|
-
});
|
|
1362
|
-
|
|
1363
|
-
/**
|
|
1364
|
-
* @internal
|
|
1365
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1366
|
-
*/
|
|
1367
|
-
export namespace ListUserModelsDefaultParameters$ {
|
|
1368
|
-
/** @deprecated use `ListUserModelsDefaultParameters$inboundSchema` instead. */
|
|
1369
|
-
export const inboundSchema = ListUserModelsDefaultParameters$inboundSchema;
|
|
1370
|
-
/** @deprecated use `ListUserModelsDefaultParameters$outboundSchema` instead. */
|
|
1371
|
-
export const outboundSchema = ListUserModelsDefaultParameters$outboundSchema;
|
|
1372
|
-
/** @deprecated use `ListUserModelsDefaultParameters$Outbound` instead. */
|
|
1373
|
-
export type Outbound = ListUserModelsDefaultParameters$Outbound;
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
export function listUserModelsDefaultParametersToJSON(
|
|
1377
|
-
listUserModelsDefaultParameters: ListUserModelsDefaultParameters,
|
|
1378
|
-
): string {
|
|
1379
|
-
return JSON.stringify(
|
|
1380
|
-
ListUserModelsDefaultParameters$outboundSchema.parse(
|
|
1381
|
-
listUserModelsDefaultParameters,
|
|
1382
|
-
),
|
|
1383
|
-
);
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
export function listUserModelsDefaultParametersFromJSON(
|
|
1387
|
-
jsonString: string,
|
|
1388
|
-
): SafeParseResult<ListUserModelsDefaultParameters, SDKValidationError> {
|
|
1389
|
-
return safeParse(
|
|
1390
|
-
jsonString,
|
|
1391
|
-
(x) => ListUserModelsDefaultParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1392
|
-
`Failed to parse 'ListUserModelsDefaultParameters' from JSON`,
|
|
1393
|
-
);
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
/** @internal */
|
|
1397
|
-
export const ListUserModelsData$inboundSchema: z.ZodType<
|
|
1398
|
-
ListUserModelsData,
|
|
1399
|
-
z.ZodTypeDef,
|
|
1400
|
-
unknown
|
|
1401
|
-
> = z.object({
|
|
1402
|
-
id: z.string(),
|
|
1403
|
-
canonical_slug: z.string(),
|
|
1404
|
-
hugging_face_id: z.nullable(z.string()).optional(),
|
|
1405
|
-
name: z.string(),
|
|
1406
|
-
created: z.number(),
|
|
1407
|
-
description: z.string().optional(),
|
|
1408
|
-
pricing: z.lazy(() => ListUserModelsPricing$inboundSchema),
|
|
1409
|
-
context_length: z.nullable(z.number()),
|
|
1410
|
-
architecture: z.lazy(() => ListUserModelsArchitecture$inboundSchema),
|
|
1411
|
-
top_provider: z.lazy(() => ListUserModelsTopProvider$inboundSchema),
|
|
1412
|
-
per_request_limits: z.nullable(
|
|
1413
|
-
z.lazy(() => ListUserModelsPerRequestLimits$inboundSchema),
|
|
1414
|
-
),
|
|
1415
|
-
supported_parameters: z.array(ListUserModelsSupportedParameter$inboundSchema),
|
|
1416
|
-
default_parameters: z.nullable(
|
|
1417
|
-
z.lazy(() => ListUserModelsDefaultParameters$inboundSchema),
|
|
1418
|
-
),
|
|
1419
|
-
}).transform((v) => {
|
|
1420
|
-
return remap$(v, {
|
|
1421
|
-
"canonical_slug": "canonicalSlug",
|
|
1422
|
-
"hugging_face_id": "huggingFaceId",
|
|
1423
|
-
"context_length": "contextLength",
|
|
1424
|
-
"top_provider": "topProvider",
|
|
1425
|
-
"per_request_limits": "perRequestLimits",
|
|
1426
|
-
"supported_parameters": "supportedParameters",
|
|
1427
|
-
"default_parameters": "defaultParameters",
|
|
1428
|
-
});
|
|
1429
|
-
});
|
|
1430
|
-
|
|
1431
|
-
/** @internal */
|
|
1432
|
-
export type ListUserModelsData$Outbound = {
|
|
1433
|
-
id: string;
|
|
1434
|
-
canonical_slug: string;
|
|
1435
|
-
hugging_face_id?: string | null | undefined;
|
|
1436
|
-
name: string;
|
|
1437
|
-
created: number;
|
|
1438
|
-
description?: string | undefined;
|
|
1439
|
-
pricing: ListUserModelsPricing$Outbound;
|
|
1440
|
-
context_length: number | null;
|
|
1441
|
-
architecture: ListUserModelsArchitecture$Outbound;
|
|
1442
|
-
top_provider: ListUserModelsTopProvider$Outbound;
|
|
1443
|
-
per_request_limits: ListUserModelsPerRequestLimits$Outbound | null;
|
|
1444
|
-
supported_parameters: Array<string>;
|
|
1445
|
-
default_parameters: ListUserModelsDefaultParameters$Outbound | null;
|
|
1446
|
-
};
|
|
1447
|
-
|
|
1448
|
-
/** @internal */
|
|
1449
|
-
export const ListUserModelsData$outboundSchema: z.ZodType<
|
|
1450
|
-
ListUserModelsData$Outbound,
|
|
1451
|
-
z.ZodTypeDef,
|
|
1452
|
-
ListUserModelsData
|
|
1453
|
-
> = z.object({
|
|
1454
|
-
id: z.string(),
|
|
1455
|
-
canonicalSlug: z.string(),
|
|
1456
|
-
huggingFaceId: z.nullable(z.string()).optional(),
|
|
1457
|
-
name: z.string(),
|
|
1458
|
-
created: z.number(),
|
|
1459
|
-
description: z.string().optional(),
|
|
1460
|
-
pricing: z.lazy(() => ListUserModelsPricing$outboundSchema),
|
|
1461
|
-
contextLength: z.nullable(z.number()),
|
|
1462
|
-
architecture: z.lazy(() => ListUserModelsArchitecture$outboundSchema),
|
|
1463
|
-
topProvider: z.lazy(() => ListUserModelsTopProvider$outboundSchema),
|
|
1464
|
-
perRequestLimits: z.nullable(
|
|
1465
|
-
z.lazy(() => ListUserModelsPerRequestLimits$outboundSchema),
|
|
1466
|
-
),
|
|
1467
|
-
supportedParameters: z.array(ListUserModelsSupportedParameter$outboundSchema),
|
|
1468
|
-
defaultParameters: z.nullable(
|
|
1469
|
-
z.lazy(() => ListUserModelsDefaultParameters$outboundSchema),
|
|
1470
|
-
),
|
|
1471
|
-
}).transform((v) => {
|
|
1472
|
-
return remap$(v, {
|
|
1473
|
-
canonicalSlug: "canonical_slug",
|
|
1474
|
-
huggingFaceId: "hugging_face_id",
|
|
1475
|
-
contextLength: "context_length",
|
|
1476
|
-
topProvider: "top_provider",
|
|
1477
|
-
perRequestLimits: "per_request_limits",
|
|
1478
|
-
supportedParameters: "supported_parameters",
|
|
1479
|
-
defaultParameters: "default_parameters",
|
|
1480
|
-
});
|
|
1481
|
-
});
|
|
1482
|
-
|
|
1483
|
-
/**
|
|
1484
|
-
* @internal
|
|
1485
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1486
|
-
*/
|
|
1487
|
-
export namespace ListUserModelsData$ {
|
|
1488
|
-
/** @deprecated use `ListUserModelsData$inboundSchema` instead. */
|
|
1489
|
-
export const inboundSchema = ListUserModelsData$inboundSchema;
|
|
1490
|
-
/** @deprecated use `ListUserModelsData$outboundSchema` instead. */
|
|
1491
|
-
export const outboundSchema = ListUserModelsData$outboundSchema;
|
|
1492
|
-
/** @deprecated use `ListUserModelsData$Outbound` instead. */
|
|
1493
|
-
export type Outbound = ListUserModelsData$Outbound;
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
export function listUserModelsDataToJSON(
|
|
1497
|
-
listUserModelsData: ListUserModelsData,
|
|
1498
|
-
): string {
|
|
1499
|
-
return JSON.stringify(
|
|
1500
|
-
ListUserModelsData$outboundSchema.parse(listUserModelsData),
|
|
1501
|
-
);
|
|
1502
|
-
}
|
|
1503
|
-
|
|
1504
|
-
export function listUserModelsDataFromJSON(
|
|
1505
|
-
jsonString: string,
|
|
1506
|
-
): SafeParseResult<ListUserModelsData, SDKValidationError> {
|
|
1507
|
-
return safeParse(
|
|
1508
|
-
jsonString,
|
|
1509
|
-
(x) => ListUserModelsData$inboundSchema.parse(JSON.parse(x)),
|
|
1510
|
-
`Failed to parse 'ListUserModelsData' from JSON`,
|
|
1511
|
-
);
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
79
|
/** @internal */
|
|
1515
80
|
export const ListUserModelsResponse$inboundSchema: z.ZodType<
|
|
1516
81
|
ListUserModelsResponse,
|
|
1517
82
|
z.ZodTypeDef,
|
|
1518
83
|
unknown
|
|
1519
84
|
> = z.object({
|
|
1520
|
-
data: z.array(
|
|
85
|
+
data: z.array(models.ModelsList$inboundSchema),
|
|
1521
86
|
});
|
|
1522
87
|
|
|
1523
88
|
/** @internal */
|
|
1524
89
|
export type ListUserModelsResponse$Outbound = {
|
|
1525
|
-
data: Array<
|
|
90
|
+
data: Array<models.ModelsList$Outbound>;
|
|
1526
91
|
};
|
|
1527
92
|
|
|
1528
93
|
/** @internal */
|
|
@@ -1531,7 +96,7 @@ export const ListUserModelsResponse$outboundSchema: z.ZodType<
|
|
|
1531
96
|
z.ZodTypeDef,
|
|
1532
97
|
ListUserModelsResponse
|
|
1533
98
|
> = z.object({
|
|
1534
|
-
data: z.array(
|
|
99
|
+
data: z.array(models.ModelsList$outboundSchema),
|
|
1535
100
|
});
|
|
1536
101
|
|
|
1537
102
|
/**
|