@orq-ai/node 3.12.0-rc.13 → 3.12.0-rc.16
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/bin/mcp-server.js +997 -112
- package/bin/mcp-server.js.map +32 -32
- package/docs/sdks/proxy/README.md +84 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/postv2proxycompletions.d.ts +1899 -0
- package/models/operations/postv2proxycompletions.d.ts.map +1 -1
- package/models/operations/postv2proxycompletions.js +1902 -2
- package/models/operations/postv2proxycompletions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/postv2proxycompletions.ts +4501 -246
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
|
@@ -8,6 +8,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
8
8
|
import { safeParse } from "../../lib/schemas.js";
|
|
9
9
|
import { ClosedEnum } from "../../types/enums.js";
|
|
10
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import * as components from "../components/index.js";
|
|
11
12
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -15,329 +16,4580 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
15
16
|
*/
|
|
16
17
|
export type PostV2ProxyCompletionsStop = string | Array<string>;
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
model: string;
|
|
23
|
-
/**
|
|
24
|
-
* The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.
|
|
25
|
-
*/
|
|
26
|
-
prompt: string;
|
|
27
|
-
/**
|
|
28
|
-
* Echo back the prompt in addition to the completion
|
|
29
|
-
*/
|
|
30
|
-
echo?: boolean | null | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
33
|
-
*/
|
|
34
|
-
frequencyPenalty?: number | null | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* The maximum number of tokens that can be generated in the completion.
|
|
37
|
-
*/
|
|
38
|
-
maxTokens?: number | null | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
41
|
-
*/
|
|
42
|
-
presencePenalty?: number | null | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
|
|
45
|
-
*/
|
|
46
|
-
seed?: number | null | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.
|
|
49
|
-
*/
|
|
50
|
-
stop?: string | Array<string> | null | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Retry configuration for the request
|
|
21
|
+
*/
|
|
22
|
+
export type PostV2ProxyCompletionsRetry = {
|
|
51
23
|
/**
|
|
52
|
-
*
|
|
24
|
+
* Number of retry attempts (1-5)
|
|
53
25
|
*/
|
|
54
|
-
|
|
26
|
+
count?: number | undefined;
|
|
55
27
|
/**
|
|
56
|
-
*
|
|
28
|
+
* HTTP status codes that trigger retry logic
|
|
57
29
|
*/
|
|
58
|
-
|
|
30
|
+
onCodes?: Array<number> | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type PostV2ProxyCompletionsFallbacks = {
|
|
59
34
|
/**
|
|
60
|
-
*
|
|
35
|
+
* Fallback model identifier
|
|
61
36
|
*/
|
|
62
|
-
|
|
63
|
-
stream?: boolean | undefined;
|
|
37
|
+
model: string;
|
|
64
38
|
};
|
|
65
39
|
|
|
66
40
|
/**
|
|
67
|
-
*
|
|
41
|
+
* Version of the prompt to use (currently only "latest" supported)
|
|
68
42
|
*/
|
|
69
|
-
export const
|
|
70
|
-
|
|
71
|
-
Length: "length",
|
|
72
|
-
ContentFilter: "content_filter",
|
|
73
|
-
ToolCalls: "tool_calls",
|
|
43
|
+
export const PostV2ProxyCompletionsVersion = {
|
|
44
|
+
Latest: "latest",
|
|
74
45
|
} as const;
|
|
75
46
|
/**
|
|
76
|
-
*
|
|
47
|
+
* Version of the prompt to use (currently only "latest" supported)
|
|
77
48
|
*/
|
|
78
|
-
export type
|
|
79
|
-
typeof
|
|
49
|
+
export type PostV2ProxyCompletionsVersion = ClosedEnum<
|
|
50
|
+
typeof PostV2ProxyCompletionsVersion
|
|
80
51
|
>;
|
|
81
52
|
|
|
82
|
-
export type PostV2ProxyCompletionsProxyChoices = {
|
|
83
|
-
/**
|
|
84
|
-
* The reason the model stopped generating tokens.
|
|
85
|
-
*/
|
|
86
|
-
finishReason: PostV2ProxyCompletionsProxyFinishReason;
|
|
87
|
-
/**
|
|
88
|
-
* The index of the choice in the list of choices.
|
|
89
|
-
*/
|
|
90
|
-
index: number;
|
|
91
|
-
text: string;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
53
|
/**
|
|
95
|
-
*
|
|
54
|
+
* Prompt configuration for the request
|
|
96
55
|
*/
|
|
97
|
-
export type
|
|
98
|
-
|
|
99
|
-
export type PostV2ProxyCompletionsProxyPromptTokensDetails = {
|
|
100
|
-
cachedTokens?: number | null | undefined;
|
|
56
|
+
export type PostV2ProxyCompletionsPrompt = {
|
|
101
57
|
/**
|
|
102
|
-
*
|
|
58
|
+
* Unique identifier of the prompt to use
|
|
103
59
|
*/
|
|
104
|
-
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export type PostV2ProxyCompletionsProxyCompletionTokensDetails = {
|
|
108
|
-
reasoningTokens?: number | null | undefined;
|
|
109
|
-
acceptedPredictionTokens?: number | null | undefined;
|
|
110
|
-
rejectedPredictionTokens?: number | null | undefined;
|
|
60
|
+
id: string;
|
|
111
61
|
/**
|
|
112
|
-
*
|
|
62
|
+
* Version of the prompt to use (currently only "latest" supported)
|
|
113
63
|
*/
|
|
114
|
-
|
|
64
|
+
version: PostV2ProxyCompletionsVersion;
|
|
115
65
|
};
|
|
116
66
|
|
|
117
67
|
/**
|
|
118
|
-
*
|
|
68
|
+
* Thread information to group related requests
|
|
119
69
|
*/
|
|
120
|
-
export type
|
|
121
|
-
/**
|
|
122
|
-
* Number of tokens in the generated completion.
|
|
123
|
-
*/
|
|
124
|
-
completionTokens?: number | undefined;
|
|
125
|
-
/**
|
|
126
|
-
* Number of tokens in the prompt.
|
|
127
|
-
*/
|
|
128
|
-
promptTokens?: number | undefined;
|
|
129
|
-
/**
|
|
130
|
-
* Total number of tokens used in the request (prompt + completion).
|
|
131
|
-
*/
|
|
132
|
-
totalTokens?: number | undefined;
|
|
133
|
-
promptTokensDetails?:
|
|
134
|
-
| PostV2ProxyCompletionsProxyPromptTokensDetails
|
|
135
|
-
| null
|
|
136
|
-
| undefined;
|
|
137
|
-
completionTokensDetails?:
|
|
138
|
-
| PostV2ProxyCompletionsProxyCompletionTokensDetails
|
|
139
|
-
| null
|
|
140
|
-
| undefined;
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
export type PostV2ProxyCompletionsData = {
|
|
70
|
+
export type PostV2ProxyCompletionsThread = {
|
|
144
71
|
/**
|
|
145
|
-
*
|
|
72
|
+
* Unique thread identifier to group related invocations.
|
|
146
73
|
*/
|
|
147
74
|
id: string;
|
|
148
75
|
/**
|
|
149
|
-
*
|
|
150
|
-
*/
|
|
151
|
-
choices: Array<PostV2ProxyCompletionsProxyChoices>;
|
|
152
|
-
/**
|
|
153
|
-
* The Unix timestamp (in seconds) of when the chat completion was created.
|
|
154
|
-
*/
|
|
155
|
-
created?: string | number | undefined;
|
|
156
|
-
/**
|
|
157
|
-
* The model used for the chat completion.
|
|
158
|
-
*/
|
|
159
|
-
model: string;
|
|
160
|
-
/**
|
|
161
|
-
* This fingerprint represents the backend configuration that the model runs with.
|
|
162
|
-
*/
|
|
163
|
-
systemFingerprint?: string | undefined;
|
|
164
|
-
/**
|
|
165
|
-
* The object type
|
|
166
|
-
*/
|
|
167
|
-
object: string;
|
|
168
|
-
/**
|
|
169
|
-
* Usage statistics for the completion request.
|
|
76
|
+
* Optional tags to differentiate or categorize threads
|
|
170
77
|
*/
|
|
171
|
-
|
|
78
|
+
tags?: Array<string> | undefined;
|
|
172
79
|
};
|
|
173
80
|
|
|
81
|
+
export const PostV2ProxyCompletionsType = {
|
|
82
|
+
ExactMatch: "exact_match",
|
|
83
|
+
} as const;
|
|
84
|
+
export type PostV2ProxyCompletionsType = ClosedEnum<
|
|
85
|
+
typeof PostV2ProxyCompletionsType
|
|
86
|
+
>;
|
|
87
|
+
|
|
174
88
|
/**
|
|
175
|
-
*
|
|
89
|
+
* Cache configuration for the request.
|
|
176
90
|
*/
|
|
177
|
-
export type
|
|
178
|
-
|
|
91
|
+
export type PostV2ProxyCompletionsCache = {
|
|
92
|
+
/**
|
|
93
|
+
* Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
|
|
94
|
+
*/
|
|
95
|
+
ttl?: number | undefined;
|
|
96
|
+
type: PostV2ProxyCompletionsType;
|
|
179
97
|
};
|
|
180
98
|
|
|
181
99
|
/**
|
|
182
|
-
* The
|
|
100
|
+
* The type of search to perform. If not provided, will default to the knowledge base configured `retrieval_type`
|
|
183
101
|
*/
|
|
184
|
-
export const
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
ToolCalls: "tool_calls",
|
|
102
|
+
export const PostV2ProxyCompletionsSearchType = {
|
|
103
|
+
VectorSearch: "vector_search",
|
|
104
|
+
KeywordSearch: "keyword_search",
|
|
105
|
+
HybridSearch: "hybrid_search",
|
|
189
106
|
} as const;
|
|
190
107
|
/**
|
|
191
|
-
* The
|
|
108
|
+
* The type of search to perform. If not provided, will default to the knowledge base configured `retrieval_type`
|
|
192
109
|
*/
|
|
193
|
-
export type
|
|
194
|
-
typeof
|
|
110
|
+
export type PostV2ProxyCompletionsSearchType = ClosedEnum<
|
|
111
|
+
typeof PostV2ProxyCompletionsSearchType
|
|
195
112
|
>;
|
|
196
113
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* The index of the choice in the list of choices.
|
|
204
|
-
*/
|
|
205
|
-
index: number;
|
|
206
|
-
text: string;
|
|
114
|
+
/**
|
|
115
|
+
* Exists
|
|
116
|
+
*/
|
|
117
|
+
export type PostV2ProxyCompletionsOrExists = {
|
|
118
|
+
exists: boolean;
|
|
207
119
|
};
|
|
208
120
|
|
|
121
|
+
export type PostV2ProxyCompletionsOrProxyNin = string | number | boolean;
|
|
122
|
+
|
|
209
123
|
/**
|
|
210
|
-
*
|
|
124
|
+
* Not in
|
|
211
125
|
*/
|
|
212
|
-
export type
|
|
126
|
+
export type PostV2ProxyCompletionsOrNin = {
|
|
127
|
+
nin: Array<string | number | boolean>;
|
|
128
|
+
};
|
|
213
129
|
|
|
214
|
-
export type
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
130
|
+
export type PostV2ProxyCompletionsOrProxyIn = string | number | boolean;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* In
|
|
134
|
+
*/
|
|
135
|
+
export type PostV2ProxyCompletionsOrIn = {
|
|
136
|
+
in: Array<string | number | boolean>;
|
|
220
137
|
};
|
|
221
138
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
* The number of audio output tokens produced by the response.
|
|
228
|
-
*/
|
|
229
|
-
audioTokens?: number | null | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* Less than or equal to
|
|
141
|
+
*/
|
|
142
|
+
export type PostV2ProxyCompletionsOrLte = {
|
|
143
|
+
lte: number;
|
|
230
144
|
};
|
|
231
145
|
|
|
232
146
|
/**
|
|
233
|
-
*
|
|
147
|
+
* Less than
|
|
234
148
|
*/
|
|
235
|
-
export type
|
|
236
|
-
|
|
237
|
-
* Number of tokens in the generated completion.
|
|
238
|
-
*/
|
|
239
|
-
completionTokens?: number | undefined;
|
|
240
|
-
/**
|
|
241
|
-
* Number of tokens in the prompt.
|
|
242
|
-
*/
|
|
243
|
-
promptTokens?: number | undefined;
|
|
244
|
-
/**
|
|
245
|
-
* Total number of tokens used in the request (prompt + completion).
|
|
246
|
-
*/
|
|
247
|
-
totalTokens?: number | undefined;
|
|
248
|
-
promptTokensDetails?:
|
|
249
|
-
| PostV2ProxyCompletionsPromptTokensDetails
|
|
250
|
-
| null
|
|
251
|
-
| undefined;
|
|
252
|
-
completionTokensDetails?:
|
|
253
|
-
| PostV2ProxyCompletionsCompletionTokensDetails
|
|
254
|
-
| null
|
|
255
|
-
| undefined;
|
|
149
|
+
export type PostV2ProxyCompletionsOrLt = {
|
|
150
|
+
lt: number;
|
|
256
151
|
};
|
|
257
152
|
|
|
258
153
|
/**
|
|
259
|
-
*
|
|
154
|
+
* Greater than or equal to
|
|
260
155
|
*/
|
|
261
|
-
export type
|
|
262
|
-
|
|
263
|
-
* A unique identifier for the completion.
|
|
264
|
-
*/
|
|
265
|
-
id: string;
|
|
266
|
-
/**
|
|
267
|
-
* The list of completion choices the model generated for the input prompt.
|
|
268
|
-
*/
|
|
269
|
-
choices: Array<PostV2ProxyCompletionsChoices>;
|
|
270
|
-
/**
|
|
271
|
-
* The Unix timestamp (in seconds) of when the chat completion was created.
|
|
272
|
-
*/
|
|
273
|
-
created?: string | number | undefined;
|
|
274
|
-
/**
|
|
275
|
-
* The model used for the chat completion.
|
|
276
|
-
*/
|
|
277
|
-
model: string;
|
|
278
|
-
/**
|
|
279
|
-
* This fingerprint represents the backend configuration that the model runs with.
|
|
280
|
-
*/
|
|
281
|
-
systemFingerprint?: string | undefined;
|
|
282
|
-
/**
|
|
283
|
-
* The object type
|
|
284
|
-
*/
|
|
285
|
-
object: string;
|
|
286
|
-
/**
|
|
287
|
-
* Usage statistics for the completion request.
|
|
288
|
-
*/
|
|
289
|
-
usage?: PostV2ProxyCompletionsUsage | undefined;
|
|
156
|
+
export type PostV2ProxyCompletionsOrGte = {
|
|
157
|
+
gte: number;
|
|
290
158
|
};
|
|
291
159
|
|
|
292
|
-
export type
|
|
293
|
-
|
|
294
|
-
|
|
160
|
+
export type PostV2ProxyCompletionsOr3 = {
|
|
161
|
+
gt: number;
|
|
162
|
+
};
|
|
295
163
|
|
|
296
|
-
|
|
297
|
-
export const PostV2ProxyCompletionsStop$inboundSchema: z.ZodType<
|
|
298
|
-
PostV2ProxyCompletionsStop,
|
|
299
|
-
z.ZodTypeDef,
|
|
300
|
-
unknown
|
|
301
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
164
|
+
export type PostV2ProxyCompletionsOrProxyNe = string | number | boolean;
|
|
302
165
|
|
|
303
|
-
/**
|
|
304
|
-
|
|
166
|
+
/**
|
|
167
|
+
* Not equal to
|
|
168
|
+
*/
|
|
169
|
+
export type PostV2ProxyCompletionsOrNe = {
|
|
170
|
+
ne: string | number | boolean;
|
|
171
|
+
};
|
|
305
172
|
|
|
306
|
-
|
|
307
|
-
export const PostV2ProxyCompletionsStop$outboundSchema: z.ZodType<
|
|
308
|
-
PostV2ProxyCompletionsStop$Outbound,
|
|
309
|
-
z.ZodTypeDef,
|
|
310
|
-
PostV2ProxyCompletionsStop
|
|
311
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
173
|
+
export type PostV2ProxyCompletionsOrProxyEq = string | number | boolean;
|
|
312
174
|
|
|
313
175
|
/**
|
|
314
|
-
*
|
|
176
|
+
* Equal to
|
|
177
|
+
*/
|
|
178
|
+
export type PostV2ProxyCompletionsOrEq = {
|
|
179
|
+
eq: string | number | boolean;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export type PostV2ProxyCompletionsFilterByProxyOr =
|
|
183
|
+
| PostV2ProxyCompletionsOrEq
|
|
184
|
+
| PostV2ProxyCompletionsOrNe
|
|
185
|
+
| PostV2ProxyCompletionsOr3
|
|
186
|
+
| PostV2ProxyCompletionsOrGte
|
|
187
|
+
| PostV2ProxyCompletionsOrLt
|
|
188
|
+
| PostV2ProxyCompletionsOrLte
|
|
189
|
+
| PostV2ProxyCompletionsOrIn
|
|
190
|
+
| PostV2ProxyCompletionsOrNin
|
|
191
|
+
| PostV2ProxyCompletionsOrExists;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Or
|
|
195
|
+
*/
|
|
196
|
+
export type PostV2ProxyCompletionsFilterByOr = {
|
|
197
|
+
or: Array<
|
|
198
|
+
{
|
|
199
|
+
[k: string]:
|
|
200
|
+
| PostV2ProxyCompletionsOrEq
|
|
201
|
+
| PostV2ProxyCompletionsOrNe
|
|
202
|
+
| PostV2ProxyCompletionsOr3
|
|
203
|
+
| PostV2ProxyCompletionsOrGte
|
|
204
|
+
| PostV2ProxyCompletionsOrLt
|
|
205
|
+
| PostV2ProxyCompletionsOrLte
|
|
206
|
+
| PostV2ProxyCompletionsOrIn
|
|
207
|
+
| PostV2ProxyCompletionsOrNin
|
|
208
|
+
| PostV2ProxyCompletionsOrExists;
|
|
209
|
+
}
|
|
210
|
+
>;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Exists
|
|
215
|
+
*/
|
|
216
|
+
export type PostV2ProxyCompletionsAndExists = {
|
|
217
|
+
exists: boolean;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
export type PostV2ProxyCompletionsAndProxyNin = string | number | boolean;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Not in
|
|
224
|
+
*/
|
|
225
|
+
export type PostV2ProxyCompletionsAndNin = {
|
|
226
|
+
nin: Array<string | number | boolean>;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
export type PostV2ProxyCompletionsAndProxyIn = string | number | boolean;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* In
|
|
233
|
+
*/
|
|
234
|
+
export type PostV2ProxyCompletionsAndIn = {
|
|
235
|
+
in: Array<string | number | boolean>;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Less than or equal to
|
|
240
|
+
*/
|
|
241
|
+
export type PostV2ProxyCompletionsAndLte = {
|
|
242
|
+
lte: number;
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Less than
|
|
247
|
+
*/
|
|
248
|
+
export type PostV2ProxyCompletionsAndLt = {
|
|
249
|
+
lt: number;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Greater than or equal to
|
|
254
|
+
*/
|
|
255
|
+
export type PostV2ProxyCompletionsAndGte = {
|
|
256
|
+
gte: number;
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
export type PostV2ProxyCompletionsAnd3 = {
|
|
260
|
+
gt: number;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
export type PostV2ProxyCompletionsAndProxyNe = string | number | boolean;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Not equal to
|
|
267
|
+
*/
|
|
268
|
+
export type PostV2ProxyCompletionsAndNe = {
|
|
269
|
+
ne: string | number | boolean;
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
export type PostV2ProxyCompletionsAndProxyEq = string | number | boolean;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Equal to
|
|
276
|
+
*/
|
|
277
|
+
export type PostV2ProxyCompletionsAndEq = {
|
|
278
|
+
eq: string | number | boolean;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
export type PostV2ProxyCompletionsFilterByProxyAnd =
|
|
282
|
+
| PostV2ProxyCompletionsAndEq
|
|
283
|
+
| PostV2ProxyCompletionsAndNe
|
|
284
|
+
| PostV2ProxyCompletionsAnd3
|
|
285
|
+
| PostV2ProxyCompletionsAndGte
|
|
286
|
+
| PostV2ProxyCompletionsAndLt
|
|
287
|
+
| PostV2ProxyCompletionsAndLte
|
|
288
|
+
| PostV2ProxyCompletionsAndIn
|
|
289
|
+
| PostV2ProxyCompletionsAndNin
|
|
290
|
+
| PostV2ProxyCompletionsAndExists;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* And
|
|
294
|
+
*/
|
|
295
|
+
export type PostV2ProxyCompletionsFilterByAnd = {
|
|
296
|
+
and: Array<
|
|
297
|
+
{
|
|
298
|
+
[k: string]:
|
|
299
|
+
| PostV2ProxyCompletionsAndEq
|
|
300
|
+
| PostV2ProxyCompletionsAndNe
|
|
301
|
+
| PostV2ProxyCompletionsAnd3
|
|
302
|
+
| PostV2ProxyCompletionsAndGte
|
|
303
|
+
| PostV2ProxyCompletionsAndLt
|
|
304
|
+
| PostV2ProxyCompletionsAndLte
|
|
305
|
+
| PostV2ProxyCompletionsAndIn
|
|
306
|
+
| PostV2ProxyCompletionsAndNin
|
|
307
|
+
| PostV2ProxyCompletionsAndExists;
|
|
308
|
+
}
|
|
309
|
+
>;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Exists
|
|
314
|
+
*/
|
|
315
|
+
export type PostV2ProxyCompletions1Exists = {
|
|
316
|
+
exists: boolean;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
export type PostV2ProxyCompletions1ProxyNin = string | number | boolean;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Not in
|
|
323
|
+
*/
|
|
324
|
+
export type PostV2ProxyCompletions1Nin = {
|
|
325
|
+
nin: Array<string | number | boolean>;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
export type PostV2ProxyCompletions1ProxyIn = string | number | boolean;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* In
|
|
332
|
+
*/
|
|
333
|
+
export type PostV2ProxyCompletions1In = {
|
|
334
|
+
in: Array<string | number | boolean>;
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Less than or equal to
|
|
339
|
+
*/
|
|
340
|
+
export type PostV2ProxyCompletions1Lte = {
|
|
341
|
+
lte: number;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Less than
|
|
346
|
+
*/
|
|
347
|
+
export type PostV2ProxyCompletions1Lt = {
|
|
348
|
+
lt: number;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Greater than or equal to
|
|
353
|
+
*/
|
|
354
|
+
export type PostV2ProxyCompletions1Gte = {
|
|
355
|
+
gte: number;
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
export type PostV2ProxyCompletions13 = {
|
|
359
|
+
gt: number;
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
export type PostV2ProxyCompletions1ProxyNe = string | number | boolean;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Not equal to
|
|
366
|
+
*/
|
|
367
|
+
export type PostV2ProxyCompletions1Ne = {
|
|
368
|
+
ne: string | number | boolean;
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
export type PostV2ProxyCompletions1ProxyEq = string | number | boolean;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Equal to
|
|
375
|
+
*/
|
|
376
|
+
export type PostV2ProxyCompletions1Eq = {
|
|
377
|
+
eq: string | number | boolean;
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
export type PostV2ProxyCompletionsFilterBy1 =
|
|
381
|
+
| PostV2ProxyCompletions1Eq
|
|
382
|
+
| PostV2ProxyCompletions1Ne
|
|
383
|
+
| PostV2ProxyCompletions13
|
|
384
|
+
| PostV2ProxyCompletions1Gte
|
|
385
|
+
| PostV2ProxyCompletions1Lt
|
|
386
|
+
| PostV2ProxyCompletions1Lte
|
|
387
|
+
| PostV2ProxyCompletions1In
|
|
388
|
+
| PostV2ProxyCompletions1Nin
|
|
389
|
+
| PostV2ProxyCompletions1Exists;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://dash.readme.com/project/orqai/v2.0/docs/searching-a-knowledge-base) for more information.
|
|
393
|
+
*/
|
|
394
|
+
export type PostV2ProxyCompletionsFilterBy =
|
|
395
|
+
| PostV2ProxyCompletionsFilterByAnd
|
|
396
|
+
| PostV2ProxyCompletionsFilterByOr
|
|
397
|
+
| {
|
|
398
|
+
[k: string]:
|
|
399
|
+
| PostV2ProxyCompletions1Eq
|
|
400
|
+
| PostV2ProxyCompletions1Ne
|
|
401
|
+
| PostV2ProxyCompletions13
|
|
402
|
+
| PostV2ProxyCompletions1Gte
|
|
403
|
+
| PostV2ProxyCompletions1Lt
|
|
404
|
+
| PostV2ProxyCompletions1Lte
|
|
405
|
+
| PostV2ProxyCompletions1In
|
|
406
|
+
| PostV2ProxyCompletions1Nin
|
|
407
|
+
| PostV2ProxyCompletions1Exists;
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Additional search options
|
|
412
|
+
*/
|
|
413
|
+
export type PostV2ProxyCompletionsSearchOptions = {
|
|
414
|
+
/**
|
|
415
|
+
* Whether to include the vector in the chunk
|
|
416
|
+
*/
|
|
417
|
+
includeVectors?: boolean | undefined;
|
|
418
|
+
/**
|
|
419
|
+
* Whether to include the metadata in the chunk
|
|
420
|
+
*/
|
|
421
|
+
includeMetadata?: boolean | undefined;
|
|
422
|
+
/**
|
|
423
|
+
* Whether to include the scores in the chunk
|
|
424
|
+
*/
|
|
425
|
+
includeScores?: boolean | undefined;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
export const PostV2ProxyCompletionsProvider = {
|
|
429
|
+
Cohere: "cohere",
|
|
430
|
+
Openai: "openai",
|
|
431
|
+
Anthropic: "anthropic",
|
|
432
|
+
Huggingface: "huggingface",
|
|
433
|
+
Replicate: "replicate",
|
|
434
|
+
Google: "google",
|
|
435
|
+
GoogleAi: "google-ai",
|
|
436
|
+
Azure: "azure",
|
|
437
|
+
Aws: "aws",
|
|
438
|
+
Anyscale: "anyscale",
|
|
439
|
+
Perplexity: "perplexity",
|
|
440
|
+
Groq: "groq",
|
|
441
|
+
Fal: "fal",
|
|
442
|
+
Leonardoai: "leonardoai",
|
|
443
|
+
Nvidia: "nvidia",
|
|
444
|
+
Jina: "jina",
|
|
445
|
+
Togetherai: "togetherai",
|
|
446
|
+
Elevenlabs: "elevenlabs",
|
|
447
|
+
Litellm: "litellm",
|
|
448
|
+
Openailike: "openailike",
|
|
449
|
+
Cerebras: "cerebras",
|
|
450
|
+
Bytedance: "bytedance",
|
|
451
|
+
} as const;
|
|
452
|
+
export type PostV2ProxyCompletionsProvider = ClosedEnum<
|
|
453
|
+
typeof PostV2ProxyCompletionsProvider
|
|
454
|
+
>;
|
|
455
|
+
|
|
456
|
+
export const PostV2ProxyCompletionsModelType = {
|
|
457
|
+
Rerank: "rerank",
|
|
458
|
+
} as const;
|
|
459
|
+
export type PostV2ProxyCompletionsModelType = ClosedEnum<
|
|
460
|
+
typeof PostV2ProxyCompletionsModelType
|
|
461
|
+
>;
|
|
462
|
+
|
|
463
|
+
export type PostV2ProxyCompletionsModelParameters = {
|
|
464
|
+
/**
|
|
465
|
+
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
466
|
+
*/
|
|
467
|
+
threshold?: number | undefined;
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
|
|
472
|
+
*/
|
|
473
|
+
export type PostV2ProxyCompletionsRerankConfig = {
|
|
474
|
+
enabled?: boolean | undefined;
|
|
475
|
+
provider?: PostV2ProxyCompletionsProvider | undefined;
|
|
476
|
+
/**
|
|
477
|
+
* The number of results to return by the reranking model
|
|
478
|
+
*/
|
|
479
|
+
topK?: number | undefined;
|
|
480
|
+
/**
|
|
481
|
+
* The name of the model to use
|
|
482
|
+
*/
|
|
483
|
+
model?: string | undefined;
|
|
484
|
+
/**
|
|
485
|
+
* The ID of the model in the database
|
|
486
|
+
*/
|
|
487
|
+
modelDbId?: string | undefined;
|
|
488
|
+
modelType?: PostV2ProxyCompletionsModelType | undefined;
|
|
489
|
+
modelParameters?: PostV2ProxyCompletionsModelParameters | undefined;
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
export const PostV2ProxyCompletionsProxyProvider = {
|
|
493
|
+
Cohere: "cohere",
|
|
494
|
+
Openai: "openai",
|
|
495
|
+
Anthropic: "anthropic",
|
|
496
|
+
Huggingface: "huggingface",
|
|
497
|
+
Replicate: "replicate",
|
|
498
|
+
Google: "google",
|
|
499
|
+
GoogleAi: "google-ai",
|
|
500
|
+
Azure: "azure",
|
|
501
|
+
Aws: "aws",
|
|
502
|
+
Anyscale: "anyscale",
|
|
503
|
+
Perplexity: "perplexity",
|
|
504
|
+
Groq: "groq",
|
|
505
|
+
Fal: "fal",
|
|
506
|
+
Leonardoai: "leonardoai",
|
|
507
|
+
Nvidia: "nvidia",
|
|
508
|
+
Jina: "jina",
|
|
509
|
+
Togetherai: "togetherai",
|
|
510
|
+
Elevenlabs: "elevenlabs",
|
|
511
|
+
Litellm: "litellm",
|
|
512
|
+
Openailike: "openailike",
|
|
513
|
+
Cerebras: "cerebras",
|
|
514
|
+
Bytedance: "bytedance",
|
|
515
|
+
} as const;
|
|
516
|
+
export type PostV2ProxyCompletionsProxyProvider = ClosedEnum<
|
|
517
|
+
typeof PostV2ProxyCompletionsProxyProvider
|
|
518
|
+
>;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
|
|
522
|
+
*/
|
|
523
|
+
export type PostV2ProxyCompletionsAgenticRagConfig = {
|
|
524
|
+
modelDbId: string;
|
|
525
|
+
provider: PostV2ProxyCompletionsProxyProvider;
|
|
526
|
+
integrationId?: string | null | undefined;
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
export type PostV2ProxyCompletionsKnowledgeBases = {
|
|
530
|
+
/**
|
|
531
|
+
* The number of results to return. If not provided, will default to the knowledge base configured `top_k`.
|
|
532
|
+
*/
|
|
533
|
+
topK?: number | undefined;
|
|
534
|
+
/**
|
|
535
|
+
* The threshold to apply to the search. If not provided, will default to the knowledge base configured `threshold`
|
|
536
|
+
*/
|
|
537
|
+
threshold?: number | undefined;
|
|
538
|
+
/**
|
|
539
|
+
* The type of search to perform. If not provided, will default to the knowledge base configured `retrieval_type`
|
|
540
|
+
*/
|
|
541
|
+
searchType?: PostV2ProxyCompletionsSearchType | undefined;
|
|
542
|
+
/**
|
|
543
|
+
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://dash.readme.com/project/orqai/v2.0/docs/searching-a-knowledge-base) for more information.
|
|
544
|
+
*/
|
|
545
|
+
filterBy?:
|
|
546
|
+
| PostV2ProxyCompletionsFilterByAnd
|
|
547
|
+
| PostV2ProxyCompletionsFilterByOr
|
|
548
|
+
| {
|
|
549
|
+
[k: string]:
|
|
550
|
+
| PostV2ProxyCompletions1Eq
|
|
551
|
+
| PostV2ProxyCompletions1Ne
|
|
552
|
+
| PostV2ProxyCompletions13
|
|
553
|
+
| PostV2ProxyCompletions1Gte
|
|
554
|
+
| PostV2ProxyCompletions1Lt
|
|
555
|
+
| PostV2ProxyCompletions1Lte
|
|
556
|
+
| PostV2ProxyCompletions1In
|
|
557
|
+
| PostV2ProxyCompletions1Nin
|
|
558
|
+
| PostV2ProxyCompletions1Exists;
|
|
559
|
+
}
|
|
560
|
+
| undefined;
|
|
561
|
+
/**
|
|
562
|
+
* Additional search options
|
|
563
|
+
*/
|
|
564
|
+
searchOptions?: PostV2ProxyCompletionsSearchOptions | undefined;
|
|
565
|
+
/**
|
|
566
|
+
* Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
|
|
567
|
+
*/
|
|
568
|
+
rerankConfig?: PostV2ProxyCompletionsRerankConfig | null | undefined;
|
|
569
|
+
/**
|
|
570
|
+
* Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
|
|
571
|
+
*/
|
|
572
|
+
agenticRagConfig?: PostV2ProxyCompletionsAgenticRagConfig | undefined;
|
|
573
|
+
/**
|
|
574
|
+
* Unique identifier of the knowledge base to search
|
|
575
|
+
*/
|
|
576
|
+
knowledgeId: string;
|
|
577
|
+
/**
|
|
578
|
+
* The query to use to search the knowledge base. If not provided we will use the last user message from the messages of the requests
|
|
579
|
+
*/
|
|
580
|
+
query?: string | undefined;
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Leverage Orq's intelligent routing capabilities to enhance your AI application with enterprise-grade reliability and observability. Orq provides automatic request management including retries on failures, model fallbacks for high availability, contact-level analytics tracking, conversation threading, and dynamic prompt templating with variable substitution.
|
|
585
|
+
*/
|
|
586
|
+
export type PostV2ProxyCompletionsOrq = {
|
|
587
|
+
/**
|
|
588
|
+
* The name to display on the trace. If not specified, the default system name will be used.
|
|
589
|
+
*/
|
|
590
|
+
name?: string | undefined;
|
|
591
|
+
/**
|
|
592
|
+
* Retry configuration for the request
|
|
593
|
+
*/
|
|
594
|
+
retry?: PostV2ProxyCompletionsRetry | undefined;
|
|
595
|
+
/**
|
|
596
|
+
* Array of fallback models to use if primary model fails
|
|
597
|
+
*/
|
|
598
|
+
fallbacks?: Array<PostV2ProxyCompletionsFallbacks> | undefined;
|
|
599
|
+
/**
|
|
600
|
+
* Prompt configuration for the request
|
|
601
|
+
*/
|
|
602
|
+
prompt?: PostV2ProxyCompletionsPrompt | undefined;
|
|
603
|
+
/**
|
|
604
|
+
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
605
|
+
*/
|
|
606
|
+
contact?: components.PublicContact | undefined;
|
|
607
|
+
/**
|
|
608
|
+
* Thread information to group related requests
|
|
609
|
+
*/
|
|
610
|
+
thread?: PostV2ProxyCompletionsThread | undefined;
|
|
611
|
+
/**
|
|
612
|
+
* Values to replace in the prompt messages using {{"{{"}}variableName}} syntax
|
|
613
|
+
*/
|
|
614
|
+
inputs?: { [k: string]: any } | undefined;
|
|
615
|
+
/**
|
|
616
|
+
* Cache configuration for the request.
|
|
617
|
+
*/
|
|
618
|
+
cache?: PostV2ProxyCompletionsCache | undefined;
|
|
619
|
+
knowledgeBases?: Array<PostV2ProxyCompletionsKnowledgeBases> | undefined;
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
export type PostV2ProxyCompletionsRequestBody = {
|
|
623
|
+
/**
|
|
624
|
+
* ID of the model to use
|
|
625
|
+
*/
|
|
626
|
+
model: string;
|
|
627
|
+
/**
|
|
628
|
+
* The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.
|
|
629
|
+
*/
|
|
630
|
+
prompt: string;
|
|
631
|
+
/**
|
|
632
|
+
* Echo back the prompt in addition to the completion
|
|
633
|
+
*/
|
|
634
|
+
echo?: boolean | null | undefined;
|
|
635
|
+
/**
|
|
636
|
+
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
637
|
+
*/
|
|
638
|
+
frequencyPenalty?: number | null | undefined;
|
|
639
|
+
/**
|
|
640
|
+
* The maximum number of tokens that can be generated in the completion.
|
|
641
|
+
*/
|
|
642
|
+
maxTokens?: number | null | undefined;
|
|
643
|
+
/**
|
|
644
|
+
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
645
|
+
*/
|
|
646
|
+
presencePenalty?: number | null | undefined;
|
|
647
|
+
/**
|
|
648
|
+
* If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
|
|
649
|
+
*/
|
|
650
|
+
seed?: number | null | undefined;
|
|
651
|
+
/**
|
|
652
|
+
* Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.
|
|
653
|
+
*/
|
|
654
|
+
stop?: string | Array<string> | null | undefined;
|
|
655
|
+
/**
|
|
656
|
+
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
657
|
+
*/
|
|
658
|
+
temperature?: number | null | undefined;
|
|
659
|
+
/**
|
|
660
|
+
* An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
|
|
661
|
+
*/
|
|
662
|
+
topP?: number | null | undefined;
|
|
663
|
+
/**
|
|
664
|
+
* A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
|
|
665
|
+
*/
|
|
666
|
+
user?: string | undefined;
|
|
667
|
+
/**
|
|
668
|
+
* Leverage Orq's intelligent routing capabilities to enhance your AI application with enterprise-grade reliability and observability. Orq provides automatic request management including retries on failures, model fallbacks for high availability, contact-level analytics tracking, conversation threading, and dynamic prompt templating with variable substitution.
|
|
669
|
+
*/
|
|
670
|
+
orq?: PostV2ProxyCompletionsOrq | undefined;
|
|
671
|
+
stream?: boolean | undefined;
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* The reason the model stopped generating tokens.
|
|
676
|
+
*/
|
|
677
|
+
export const PostV2ProxyCompletionsProxyFinishReason = {
|
|
678
|
+
Stop: "stop",
|
|
679
|
+
Length: "length",
|
|
680
|
+
ContentFilter: "content_filter",
|
|
681
|
+
ToolCalls: "tool_calls",
|
|
682
|
+
} as const;
|
|
683
|
+
/**
|
|
684
|
+
* The reason the model stopped generating tokens.
|
|
685
|
+
*/
|
|
686
|
+
export type PostV2ProxyCompletionsProxyFinishReason = ClosedEnum<
|
|
687
|
+
typeof PostV2ProxyCompletionsProxyFinishReason
|
|
688
|
+
>;
|
|
689
|
+
|
|
690
|
+
export type PostV2ProxyCompletionsProxyChoices = {
|
|
691
|
+
/**
|
|
692
|
+
* The reason the model stopped generating tokens.
|
|
693
|
+
*/
|
|
694
|
+
finishReason: PostV2ProxyCompletionsProxyFinishReason;
|
|
695
|
+
/**
|
|
696
|
+
* The index of the choice in the list of choices.
|
|
697
|
+
*/
|
|
698
|
+
index: number;
|
|
699
|
+
text: string;
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* The Unix timestamp (in seconds) of when the chat completion was created.
|
|
704
|
+
*/
|
|
705
|
+
export type PostV2ProxyCompletionsCreated = string | number;
|
|
706
|
+
|
|
707
|
+
export type PostV2ProxyCompletionsProxyPromptTokensDetails = {
|
|
708
|
+
cachedTokens?: number | null | undefined;
|
|
709
|
+
/**
|
|
710
|
+
* The number of audio input tokens consumed by the request.
|
|
711
|
+
*/
|
|
712
|
+
audioTokens?: number | null | undefined;
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
export type PostV2ProxyCompletionsProxyCompletionTokensDetails = {
|
|
716
|
+
reasoningTokens?: number | null | undefined;
|
|
717
|
+
acceptedPredictionTokens?: number | null | undefined;
|
|
718
|
+
rejectedPredictionTokens?: number | null | undefined;
|
|
719
|
+
/**
|
|
720
|
+
* The number of audio output tokens produced by the response.
|
|
721
|
+
*/
|
|
722
|
+
audioTokens?: number | null | undefined;
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Usage statistics for the completion request.
|
|
727
|
+
*/
|
|
728
|
+
export type PostV2ProxyCompletionsProxyUsage = {
|
|
729
|
+
/**
|
|
730
|
+
* Number of tokens in the generated completion.
|
|
731
|
+
*/
|
|
732
|
+
completionTokens?: number | undefined;
|
|
733
|
+
/**
|
|
734
|
+
* Number of tokens in the prompt.
|
|
735
|
+
*/
|
|
736
|
+
promptTokens?: number | undefined;
|
|
737
|
+
/**
|
|
738
|
+
* Total number of tokens used in the request (prompt + completion).
|
|
739
|
+
*/
|
|
740
|
+
totalTokens?: number | undefined;
|
|
741
|
+
promptTokensDetails?:
|
|
742
|
+
| PostV2ProxyCompletionsProxyPromptTokensDetails
|
|
743
|
+
| null
|
|
744
|
+
| undefined;
|
|
745
|
+
completionTokensDetails?:
|
|
746
|
+
| PostV2ProxyCompletionsProxyCompletionTokensDetails
|
|
747
|
+
| null
|
|
748
|
+
| undefined;
|
|
749
|
+
};
|
|
750
|
+
|
|
751
|
+
export type PostV2ProxyCompletionsData = {
|
|
752
|
+
/**
|
|
753
|
+
* A unique identifier for the completion.
|
|
754
|
+
*/
|
|
755
|
+
id: string;
|
|
756
|
+
/**
|
|
757
|
+
* The list of completion choices the model generated for the input prompt.
|
|
758
|
+
*/
|
|
759
|
+
choices: Array<PostV2ProxyCompletionsProxyChoices>;
|
|
760
|
+
/**
|
|
761
|
+
* The Unix timestamp (in seconds) of when the chat completion was created.
|
|
762
|
+
*/
|
|
763
|
+
created?: string | number | undefined;
|
|
764
|
+
/**
|
|
765
|
+
* The model used for the chat completion.
|
|
766
|
+
*/
|
|
767
|
+
model: string;
|
|
768
|
+
/**
|
|
769
|
+
* This fingerprint represents the backend configuration that the model runs with.
|
|
770
|
+
*/
|
|
771
|
+
systemFingerprint?: string | undefined;
|
|
772
|
+
/**
|
|
773
|
+
* The object type
|
|
774
|
+
*/
|
|
775
|
+
object: string;
|
|
776
|
+
/**
|
|
777
|
+
* Usage statistics for the completion request.
|
|
778
|
+
*/
|
|
779
|
+
usage?: PostV2ProxyCompletionsProxyUsage | undefined;
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Represents a completion response from the API.
|
|
784
|
+
*/
|
|
785
|
+
export type PostV2ProxyCompletionsProxyResponseBody = {
|
|
786
|
+
data?: PostV2ProxyCompletionsData | undefined;
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* The reason the model stopped generating tokens.
|
|
791
|
+
*/
|
|
792
|
+
export const PostV2ProxyCompletionsFinishReason = {
|
|
793
|
+
Stop: "stop",
|
|
794
|
+
Length: "length",
|
|
795
|
+
ContentFilter: "content_filter",
|
|
796
|
+
ToolCalls: "tool_calls",
|
|
797
|
+
} as const;
|
|
798
|
+
/**
|
|
799
|
+
* The reason the model stopped generating tokens.
|
|
800
|
+
*/
|
|
801
|
+
export type PostV2ProxyCompletionsFinishReason = ClosedEnum<
|
|
802
|
+
typeof PostV2ProxyCompletionsFinishReason
|
|
803
|
+
>;
|
|
804
|
+
|
|
805
|
+
export type PostV2ProxyCompletionsChoices = {
|
|
806
|
+
/**
|
|
807
|
+
* The reason the model stopped generating tokens.
|
|
808
|
+
*/
|
|
809
|
+
finishReason: PostV2ProxyCompletionsFinishReason;
|
|
810
|
+
/**
|
|
811
|
+
* The index of the choice in the list of choices.
|
|
812
|
+
*/
|
|
813
|
+
index: number;
|
|
814
|
+
text: string;
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* The Unix timestamp (in seconds) of when the chat completion was created.
|
|
819
|
+
*/
|
|
820
|
+
export type Created = string | number;
|
|
821
|
+
|
|
822
|
+
export type PostV2ProxyCompletionsPromptTokensDetails = {
|
|
823
|
+
cachedTokens?: number | null | undefined;
|
|
824
|
+
/**
|
|
825
|
+
* The number of audio input tokens consumed by the request.
|
|
826
|
+
*/
|
|
827
|
+
audioTokens?: number | null | undefined;
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
export type PostV2ProxyCompletionsCompletionTokensDetails = {
|
|
831
|
+
reasoningTokens?: number | null | undefined;
|
|
832
|
+
acceptedPredictionTokens?: number | null | undefined;
|
|
833
|
+
rejectedPredictionTokens?: number | null | undefined;
|
|
834
|
+
/**
|
|
835
|
+
* The number of audio output tokens produced by the response.
|
|
836
|
+
*/
|
|
837
|
+
audioTokens?: number | null | undefined;
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* Usage statistics for the completion request.
|
|
842
|
+
*/
|
|
843
|
+
export type PostV2ProxyCompletionsUsage = {
|
|
844
|
+
/**
|
|
845
|
+
* Number of tokens in the generated completion.
|
|
846
|
+
*/
|
|
847
|
+
completionTokens?: number | undefined;
|
|
848
|
+
/**
|
|
849
|
+
* Number of tokens in the prompt.
|
|
850
|
+
*/
|
|
851
|
+
promptTokens?: number | undefined;
|
|
852
|
+
/**
|
|
853
|
+
* Total number of tokens used in the request (prompt + completion).
|
|
854
|
+
*/
|
|
855
|
+
totalTokens?: number | undefined;
|
|
856
|
+
promptTokensDetails?:
|
|
857
|
+
| PostV2ProxyCompletionsPromptTokensDetails
|
|
858
|
+
| null
|
|
859
|
+
| undefined;
|
|
860
|
+
completionTokensDetails?:
|
|
861
|
+
| PostV2ProxyCompletionsCompletionTokensDetails
|
|
862
|
+
| null
|
|
863
|
+
| undefined;
|
|
864
|
+
};
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* Represents a completion response from the API.
|
|
868
|
+
*/
|
|
869
|
+
export type PostV2ProxyCompletionsResponseBody = {
|
|
870
|
+
/**
|
|
871
|
+
* A unique identifier for the completion.
|
|
872
|
+
*/
|
|
873
|
+
id: string;
|
|
874
|
+
/**
|
|
875
|
+
* The list of completion choices the model generated for the input prompt.
|
|
876
|
+
*/
|
|
877
|
+
choices: Array<PostV2ProxyCompletionsChoices>;
|
|
878
|
+
/**
|
|
879
|
+
* The Unix timestamp (in seconds) of when the chat completion was created.
|
|
880
|
+
*/
|
|
881
|
+
created?: string | number | undefined;
|
|
882
|
+
/**
|
|
883
|
+
* The model used for the chat completion.
|
|
884
|
+
*/
|
|
885
|
+
model: string;
|
|
886
|
+
/**
|
|
887
|
+
* This fingerprint represents the backend configuration that the model runs with.
|
|
888
|
+
*/
|
|
889
|
+
systemFingerprint?: string | undefined;
|
|
890
|
+
/**
|
|
891
|
+
* The object type
|
|
892
|
+
*/
|
|
893
|
+
object: string;
|
|
894
|
+
/**
|
|
895
|
+
* Usage statistics for the completion request.
|
|
896
|
+
*/
|
|
897
|
+
usage?: PostV2ProxyCompletionsUsage | undefined;
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
export type PostV2ProxyCompletionsResponse =
|
|
901
|
+
| PostV2ProxyCompletionsResponseBody
|
|
902
|
+
| EventStream<PostV2ProxyCompletionsProxyResponseBody>;
|
|
903
|
+
|
|
904
|
+
/** @internal */
|
|
905
|
+
export const PostV2ProxyCompletionsStop$inboundSchema: z.ZodType<
|
|
906
|
+
PostV2ProxyCompletionsStop,
|
|
907
|
+
z.ZodTypeDef,
|
|
908
|
+
unknown
|
|
909
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
910
|
+
|
|
911
|
+
/** @internal */
|
|
912
|
+
export type PostV2ProxyCompletionsStop$Outbound = string | Array<string>;
|
|
913
|
+
|
|
914
|
+
/** @internal */
|
|
915
|
+
export const PostV2ProxyCompletionsStop$outboundSchema: z.ZodType<
|
|
916
|
+
PostV2ProxyCompletionsStop$Outbound,
|
|
917
|
+
z.ZodTypeDef,
|
|
918
|
+
PostV2ProxyCompletionsStop
|
|
919
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* @internal
|
|
923
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
924
|
+
*/
|
|
925
|
+
export namespace PostV2ProxyCompletionsStop$ {
|
|
926
|
+
/** @deprecated use `PostV2ProxyCompletionsStop$inboundSchema` instead. */
|
|
927
|
+
export const inboundSchema = PostV2ProxyCompletionsStop$inboundSchema;
|
|
928
|
+
/** @deprecated use `PostV2ProxyCompletionsStop$outboundSchema` instead. */
|
|
929
|
+
export const outboundSchema = PostV2ProxyCompletionsStop$outboundSchema;
|
|
930
|
+
/** @deprecated use `PostV2ProxyCompletionsStop$Outbound` instead. */
|
|
931
|
+
export type Outbound = PostV2ProxyCompletionsStop$Outbound;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
export function postV2ProxyCompletionsStopToJSON(
|
|
935
|
+
postV2ProxyCompletionsStop: PostV2ProxyCompletionsStop,
|
|
936
|
+
): string {
|
|
937
|
+
return JSON.stringify(
|
|
938
|
+
PostV2ProxyCompletionsStop$outboundSchema.parse(postV2ProxyCompletionsStop),
|
|
939
|
+
);
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
export function postV2ProxyCompletionsStopFromJSON(
|
|
943
|
+
jsonString: string,
|
|
944
|
+
): SafeParseResult<PostV2ProxyCompletionsStop, SDKValidationError> {
|
|
945
|
+
return safeParse(
|
|
946
|
+
jsonString,
|
|
947
|
+
(x) => PostV2ProxyCompletionsStop$inboundSchema.parse(JSON.parse(x)),
|
|
948
|
+
`Failed to parse 'PostV2ProxyCompletionsStop' from JSON`,
|
|
949
|
+
);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
/** @internal */
|
|
953
|
+
export const PostV2ProxyCompletionsRetry$inboundSchema: z.ZodType<
|
|
954
|
+
PostV2ProxyCompletionsRetry,
|
|
955
|
+
z.ZodTypeDef,
|
|
956
|
+
unknown
|
|
957
|
+
> = z.object({
|
|
958
|
+
count: z.number().default(3),
|
|
959
|
+
on_codes: z.array(z.number()).optional(),
|
|
960
|
+
}).transform((v) => {
|
|
961
|
+
return remap$(v, {
|
|
962
|
+
"on_codes": "onCodes",
|
|
963
|
+
});
|
|
964
|
+
});
|
|
965
|
+
|
|
966
|
+
/** @internal */
|
|
967
|
+
export type PostV2ProxyCompletionsRetry$Outbound = {
|
|
968
|
+
count: number;
|
|
969
|
+
on_codes?: Array<number> | undefined;
|
|
970
|
+
};
|
|
971
|
+
|
|
972
|
+
/** @internal */
|
|
973
|
+
export const PostV2ProxyCompletionsRetry$outboundSchema: z.ZodType<
|
|
974
|
+
PostV2ProxyCompletionsRetry$Outbound,
|
|
975
|
+
z.ZodTypeDef,
|
|
976
|
+
PostV2ProxyCompletionsRetry
|
|
977
|
+
> = z.object({
|
|
978
|
+
count: z.number().default(3),
|
|
979
|
+
onCodes: z.array(z.number()).optional(),
|
|
980
|
+
}).transform((v) => {
|
|
981
|
+
return remap$(v, {
|
|
982
|
+
onCodes: "on_codes",
|
|
983
|
+
});
|
|
984
|
+
});
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
* @internal
|
|
988
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
989
|
+
*/
|
|
990
|
+
export namespace PostV2ProxyCompletionsRetry$ {
|
|
991
|
+
/** @deprecated use `PostV2ProxyCompletionsRetry$inboundSchema` instead. */
|
|
992
|
+
export const inboundSchema = PostV2ProxyCompletionsRetry$inboundSchema;
|
|
993
|
+
/** @deprecated use `PostV2ProxyCompletionsRetry$outboundSchema` instead. */
|
|
994
|
+
export const outboundSchema = PostV2ProxyCompletionsRetry$outboundSchema;
|
|
995
|
+
/** @deprecated use `PostV2ProxyCompletionsRetry$Outbound` instead. */
|
|
996
|
+
export type Outbound = PostV2ProxyCompletionsRetry$Outbound;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
export function postV2ProxyCompletionsRetryToJSON(
|
|
1000
|
+
postV2ProxyCompletionsRetry: PostV2ProxyCompletionsRetry,
|
|
1001
|
+
): string {
|
|
1002
|
+
return JSON.stringify(
|
|
1003
|
+
PostV2ProxyCompletionsRetry$outboundSchema.parse(
|
|
1004
|
+
postV2ProxyCompletionsRetry,
|
|
1005
|
+
),
|
|
1006
|
+
);
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
export function postV2ProxyCompletionsRetryFromJSON(
|
|
1010
|
+
jsonString: string,
|
|
1011
|
+
): SafeParseResult<PostV2ProxyCompletionsRetry, SDKValidationError> {
|
|
1012
|
+
return safeParse(
|
|
1013
|
+
jsonString,
|
|
1014
|
+
(x) => PostV2ProxyCompletionsRetry$inboundSchema.parse(JSON.parse(x)),
|
|
1015
|
+
`Failed to parse 'PostV2ProxyCompletionsRetry' from JSON`,
|
|
1016
|
+
);
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
/** @internal */
|
|
1020
|
+
export const PostV2ProxyCompletionsFallbacks$inboundSchema: z.ZodType<
|
|
1021
|
+
PostV2ProxyCompletionsFallbacks,
|
|
1022
|
+
z.ZodTypeDef,
|
|
1023
|
+
unknown
|
|
1024
|
+
> = z.object({
|
|
1025
|
+
model: z.string(),
|
|
1026
|
+
});
|
|
1027
|
+
|
|
1028
|
+
/** @internal */
|
|
1029
|
+
export type PostV2ProxyCompletionsFallbacks$Outbound = {
|
|
1030
|
+
model: string;
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
/** @internal */
|
|
1034
|
+
export const PostV2ProxyCompletionsFallbacks$outboundSchema: z.ZodType<
|
|
1035
|
+
PostV2ProxyCompletionsFallbacks$Outbound,
|
|
1036
|
+
z.ZodTypeDef,
|
|
1037
|
+
PostV2ProxyCompletionsFallbacks
|
|
1038
|
+
> = z.object({
|
|
1039
|
+
model: z.string(),
|
|
1040
|
+
});
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* @internal
|
|
1044
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1045
|
+
*/
|
|
1046
|
+
export namespace PostV2ProxyCompletionsFallbacks$ {
|
|
1047
|
+
/** @deprecated use `PostV2ProxyCompletionsFallbacks$inboundSchema` instead. */
|
|
1048
|
+
export const inboundSchema = PostV2ProxyCompletionsFallbacks$inboundSchema;
|
|
1049
|
+
/** @deprecated use `PostV2ProxyCompletionsFallbacks$outboundSchema` instead. */
|
|
1050
|
+
export const outboundSchema = PostV2ProxyCompletionsFallbacks$outboundSchema;
|
|
1051
|
+
/** @deprecated use `PostV2ProxyCompletionsFallbacks$Outbound` instead. */
|
|
1052
|
+
export type Outbound = PostV2ProxyCompletionsFallbacks$Outbound;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
export function postV2ProxyCompletionsFallbacksToJSON(
|
|
1056
|
+
postV2ProxyCompletionsFallbacks: PostV2ProxyCompletionsFallbacks,
|
|
1057
|
+
): string {
|
|
1058
|
+
return JSON.stringify(
|
|
1059
|
+
PostV2ProxyCompletionsFallbacks$outboundSchema.parse(
|
|
1060
|
+
postV2ProxyCompletionsFallbacks,
|
|
1061
|
+
),
|
|
1062
|
+
);
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
export function postV2ProxyCompletionsFallbacksFromJSON(
|
|
1066
|
+
jsonString: string,
|
|
1067
|
+
): SafeParseResult<PostV2ProxyCompletionsFallbacks, SDKValidationError> {
|
|
1068
|
+
return safeParse(
|
|
1069
|
+
jsonString,
|
|
1070
|
+
(x) => PostV2ProxyCompletionsFallbacks$inboundSchema.parse(JSON.parse(x)),
|
|
1071
|
+
`Failed to parse 'PostV2ProxyCompletionsFallbacks' from JSON`,
|
|
1072
|
+
);
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
/** @internal */
|
|
1076
|
+
export const PostV2ProxyCompletionsVersion$inboundSchema: z.ZodNativeEnum<
|
|
1077
|
+
typeof PostV2ProxyCompletionsVersion
|
|
1078
|
+
> = z.nativeEnum(PostV2ProxyCompletionsVersion);
|
|
1079
|
+
|
|
1080
|
+
/** @internal */
|
|
1081
|
+
export const PostV2ProxyCompletionsVersion$outboundSchema: z.ZodNativeEnum<
|
|
1082
|
+
typeof PostV2ProxyCompletionsVersion
|
|
1083
|
+
> = PostV2ProxyCompletionsVersion$inboundSchema;
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* @internal
|
|
1087
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1088
|
+
*/
|
|
1089
|
+
export namespace PostV2ProxyCompletionsVersion$ {
|
|
1090
|
+
/** @deprecated use `PostV2ProxyCompletionsVersion$inboundSchema` instead. */
|
|
1091
|
+
export const inboundSchema = PostV2ProxyCompletionsVersion$inboundSchema;
|
|
1092
|
+
/** @deprecated use `PostV2ProxyCompletionsVersion$outboundSchema` instead. */
|
|
1093
|
+
export const outboundSchema = PostV2ProxyCompletionsVersion$outboundSchema;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
/** @internal */
|
|
1097
|
+
export const PostV2ProxyCompletionsPrompt$inboundSchema: z.ZodType<
|
|
1098
|
+
PostV2ProxyCompletionsPrompt,
|
|
1099
|
+
z.ZodTypeDef,
|
|
1100
|
+
unknown
|
|
1101
|
+
> = z.object({
|
|
1102
|
+
id: z.string(),
|
|
1103
|
+
version: PostV2ProxyCompletionsVersion$inboundSchema,
|
|
1104
|
+
});
|
|
1105
|
+
|
|
1106
|
+
/** @internal */
|
|
1107
|
+
export type PostV2ProxyCompletionsPrompt$Outbound = {
|
|
1108
|
+
id: string;
|
|
1109
|
+
version: string;
|
|
1110
|
+
};
|
|
1111
|
+
|
|
1112
|
+
/** @internal */
|
|
1113
|
+
export const PostV2ProxyCompletionsPrompt$outboundSchema: z.ZodType<
|
|
1114
|
+
PostV2ProxyCompletionsPrompt$Outbound,
|
|
1115
|
+
z.ZodTypeDef,
|
|
1116
|
+
PostV2ProxyCompletionsPrompt
|
|
1117
|
+
> = z.object({
|
|
1118
|
+
id: z.string(),
|
|
1119
|
+
version: PostV2ProxyCompletionsVersion$outboundSchema,
|
|
1120
|
+
});
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* @internal
|
|
1124
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1125
|
+
*/
|
|
1126
|
+
export namespace PostV2ProxyCompletionsPrompt$ {
|
|
1127
|
+
/** @deprecated use `PostV2ProxyCompletionsPrompt$inboundSchema` instead. */
|
|
1128
|
+
export const inboundSchema = PostV2ProxyCompletionsPrompt$inboundSchema;
|
|
1129
|
+
/** @deprecated use `PostV2ProxyCompletionsPrompt$outboundSchema` instead. */
|
|
1130
|
+
export const outboundSchema = PostV2ProxyCompletionsPrompt$outboundSchema;
|
|
1131
|
+
/** @deprecated use `PostV2ProxyCompletionsPrompt$Outbound` instead. */
|
|
1132
|
+
export type Outbound = PostV2ProxyCompletionsPrompt$Outbound;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
export function postV2ProxyCompletionsPromptToJSON(
|
|
1136
|
+
postV2ProxyCompletionsPrompt: PostV2ProxyCompletionsPrompt,
|
|
1137
|
+
): string {
|
|
1138
|
+
return JSON.stringify(
|
|
1139
|
+
PostV2ProxyCompletionsPrompt$outboundSchema.parse(
|
|
1140
|
+
postV2ProxyCompletionsPrompt,
|
|
1141
|
+
),
|
|
1142
|
+
);
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
export function postV2ProxyCompletionsPromptFromJSON(
|
|
1146
|
+
jsonString: string,
|
|
1147
|
+
): SafeParseResult<PostV2ProxyCompletionsPrompt, SDKValidationError> {
|
|
1148
|
+
return safeParse(
|
|
1149
|
+
jsonString,
|
|
1150
|
+
(x) => PostV2ProxyCompletionsPrompt$inboundSchema.parse(JSON.parse(x)),
|
|
1151
|
+
`Failed to parse 'PostV2ProxyCompletionsPrompt' from JSON`,
|
|
1152
|
+
);
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
/** @internal */
|
|
1156
|
+
export const PostV2ProxyCompletionsThread$inboundSchema: z.ZodType<
|
|
1157
|
+
PostV2ProxyCompletionsThread,
|
|
1158
|
+
z.ZodTypeDef,
|
|
1159
|
+
unknown
|
|
1160
|
+
> = z.object({
|
|
1161
|
+
id: z.string(),
|
|
1162
|
+
tags: z.array(z.string()).optional(),
|
|
1163
|
+
});
|
|
1164
|
+
|
|
1165
|
+
/** @internal */
|
|
1166
|
+
export type PostV2ProxyCompletionsThread$Outbound = {
|
|
1167
|
+
id: string;
|
|
1168
|
+
tags?: Array<string> | undefined;
|
|
1169
|
+
};
|
|
1170
|
+
|
|
1171
|
+
/** @internal */
|
|
1172
|
+
export const PostV2ProxyCompletionsThread$outboundSchema: z.ZodType<
|
|
1173
|
+
PostV2ProxyCompletionsThread$Outbound,
|
|
1174
|
+
z.ZodTypeDef,
|
|
1175
|
+
PostV2ProxyCompletionsThread
|
|
1176
|
+
> = z.object({
|
|
1177
|
+
id: z.string(),
|
|
1178
|
+
tags: z.array(z.string()).optional(),
|
|
1179
|
+
});
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* @internal
|
|
1183
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1184
|
+
*/
|
|
1185
|
+
export namespace PostV2ProxyCompletionsThread$ {
|
|
1186
|
+
/** @deprecated use `PostV2ProxyCompletionsThread$inboundSchema` instead. */
|
|
1187
|
+
export const inboundSchema = PostV2ProxyCompletionsThread$inboundSchema;
|
|
1188
|
+
/** @deprecated use `PostV2ProxyCompletionsThread$outboundSchema` instead. */
|
|
1189
|
+
export const outboundSchema = PostV2ProxyCompletionsThread$outboundSchema;
|
|
1190
|
+
/** @deprecated use `PostV2ProxyCompletionsThread$Outbound` instead. */
|
|
1191
|
+
export type Outbound = PostV2ProxyCompletionsThread$Outbound;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
export function postV2ProxyCompletionsThreadToJSON(
|
|
1195
|
+
postV2ProxyCompletionsThread: PostV2ProxyCompletionsThread,
|
|
1196
|
+
): string {
|
|
1197
|
+
return JSON.stringify(
|
|
1198
|
+
PostV2ProxyCompletionsThread$outboundSchema.parse(
|
|
1199
|
+
postV2ProxyCompletionsThread,
|
|
1200
|
+
),
|
|
1201
|
+
);
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
export function postV2ProxyCompletionsThreadFromJSON(
|
|
1205
|
+
jsonString: string,
|
|
1206
|
+
): SafeParseResult<PostV2ProxyCompletionsThread, SDKValidationError> {
|
|
1207
|
+
return safeParse(
|
|
1208
|
+
jsonString,
|
|
1209
|
+
(x) => PostV2ProxyCompletionsThread$inboundSchema.parse(JSON.parse(x)),
|
|
1210
|
+
`Failed to parse 'PostV2ProxyCompletionsThread' from JSON`,
|
|
1211
|
+
);
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
/** @internal */
|
|
1215
|
+
export const PostV2ProxyCompletionsType$inboundSchema: z.ZodNativeEnum<
|
|
1216
|
+
typeof PostV2ProxyCompletionsType
|
|
1217
|
+
> = z.nativeEnum(PostV2ProxyCompletionsType);
|
|
1218
|
+
|
|
1219
|
+
/** @internal */
|
|
1220
|
+
export const PostV2ProxyCompletionsType$outboundSchema: z.ZodNativeEnum<
|
|
1221
|
+
typeof PostV2ProxyCompletionsType
|
|
1222
|
+
> = PostV2ProxyCompletionsType$inboundSchema;
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* @internal
|
|
1226
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1227
|
+
*/
|
|
1228
|
+
export namespace PostV2ProxyCompletionsType$ {
|
|
1229
|
+
/** @deprecated use `PostV2ProxyCompletionsType$inboundSchema` instead. */
|
|
1230
|
+
export const inboundSchema = PostV2ProxyCompletionsType$inboundSchema;
|
|
1231
|
+
/** @deprecated use `PostV2ProxyCompletionsType$outboundSchema` instead. */
|
|
1232
|
+
export const outboundSchema = PostV2ProxyCompletionsType$outboundSchema;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
/** @internal */
|
|
1236
|
+
export const PostV2ProxyCompletionsCache$inboundSchema: z.ZodType<
|
|
1237
|
+
PostV2ProxyCompletionsCache,
|
|
1238
|
+
z.ZodTypeDef,
|
|
1239
|
+
unknown
|
|
1240
|
+
> = z.object({
|
|
1241
|
+
ttl: z.number().default(1800),
|
|
1242
|
+
type: PostV2ProxyCompletionsType$inboundSchema,
|
|
1243
|
+
});
|
|
1244
|
+
|
|
1245
|
+
/** @internal */
|
|
1246
|
+
export type PostV2ProxyCompletionsCache$Outbound = {
|
|
1247
|
+
ttl: number;
|
|
1248
|
+
type: string;
|
|
1249
|
+
};
|
|
1250
|
+
|
|
1251
|
+
/** @internal */
|
|
1252
|
+
export const PostV2ProxyCompletionsCache$outboundSchema: z.ZodType<
|
|
1253
|
+
PostV2ProxyCompletionsCache$Outbound,
|
|
1254
|
+
z.ZodTypeDef,
|
|
1255
|
+
PostV2ProxyCompletionsCache
|
|
1256
|
+
> = z.object({
|
|
1257
|
+
ttl: z.number().default(1800),
|
|
1258
|
+
type: PostV2ProxyCompletionsType$outboundSchema,
|
|
1259
|
+
});
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* @internal
|
|
1263
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1264
|
+
*/
|
|
1265
|
+
export namespace PostV2ProxyCompletionsCache$ {
|
|
1266
|
+
/** @deprecated use `PostV2ProxyCompletionsCache$inboundSchema` instead. */
|
|
1267
|
+
export const inboundSchema = PostV2ProxyCompletionsCache$inboundSchema;
|
|
1268
|
+
/** @deprecated use `PostV2ProxyCompletionsCache$outboundSchema` instead. */
|
|
1269
|
+
export const outboundSchema = PostV2ProxyCompletionsCache$outboundSchema;
|
|
1270
|
+
/** @deprecated use `PostV2ProxyCompletionsCache$Outbound` instead. */
|
|
1271
|
+
export type Outbound = PostV2ProxyCompletionsCache$Outbound;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
export function postV2ProxyCompletionsCacheToJSON(
|
|
1275
|
+
postV2ProxyCompletionsCache: PostV2ProxyCompletionsCache,
|
|
1276
|
+
): string {
|
|
1277
|
+
return JSON.stringify(
|
|
1278
|
+
PostV2ProxyCompletionsCache$outboundSchema.parse(
|
|
1279
|
+
postV2ProxyCompletionsCache,
|
|
1280
|
+
),
|
|
1281
|
+
);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
export function postV2ProxyCompletionsCacheFromJSON(
|
|
1285
|
+
jsonString: string,
|
|
1286
|
+
): SafeParseResult<PostV2ProxyCompletionsCache, SDKValidationError> {
|
|
1287
|
+
return safeParse(
|
|
1288
|
+
jsonString,
|
|
1289
|
+
(x) => PostV2ProxyCompletionsCache$inboundSchema.parse(JSON.parse(x)),
|
|
1290
|
+
`Failed to parse 'PostV2ProxyCompletionsCache' from JSON`,
|
|
1291
|
+
);
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
/** @internal */
|
|
1295
|
+
export const PostV2ProxyCompletionsSearchType$inboundSchema: z.ZodNativeEnum<
|
|
1296
|
+
typeof PostV2ProxyCompletionsSearchType
|
|
1297
|
+
> = z.nativeEnum(PostV2ProxyCompletionsSearchType);
|
|
1298
|
+
|
|
1299
|
+
/** @internal */
|
|
1300
|
+
export const PostV2ProxyCompletionsSearchType$outboundSchema: z.ZodNativeEnum<
|
|
1301
|
+
typeof PostV2ProxyCompletionsSearchType
|
|
1302
|
+
> = PostV2ProxyCompletionsSearchType$inboundSchema;
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* @internal
|
|
1306
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1307
|
+
*/
|
|
1308
|
+
export namespace PostV2ProxyCompletionsSearchType$ {
|
|
1309
|
+
/** @deprecated use `PostV2ProxyCompletionsSearchType$inboundSchema` instead. */
|
|
1310
|
+
export const inboundSchema = PostV2ProxyCompletionsSearchType$inboundSchema;
|
|
1311
|
+
/** @deprecated use `PostV2ProxyCompletionsSearchType$outboundSchema` instead. */
|
|
1312
|
+
export const outboundSchema = PostV2ProxyCompletionsSearchType$outboundSchema;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
/** @internal */
|
|
1316
|
+
export const PostV2ProxyCompletionsOrExists$inboundSchema: z.ZodType<
|
|
1317
|
+
PostV2ProxyCompletionsOrExists,
|
|
1318
|
+
z.ZodTypeDef,
|
|
1319
|
+
unknown
|
|
1320
|
+
> = z.object({
|
|
1321
|
+
exists: z.boolean(),
|
|
1322
|
+
});
|
|
1323
|
+
|
|
1324
|
+
/** @internal */
|
|
1325
|
+
export type PostV2ProxyCompletionsOrExists$Outbound = {
|
|
1326
|
+
exists: boolean;
|
|
1327
|
+
};
|
|
1328
|
+
|
|
1329
|
+
/** @internal */
|
|
1330
|
+
export const PostV2ProxyCompletionsOrExists$outboundSchema: z.ZodType<
|
|
1331
|
+
PostV2ProxyCompletionsOrExists$Outbound,
|
|
1332
|
+
z.ZodTypeDef,
|
|
1333
|
+
PostV2ProxyCompletionsOrExists
|
|
1334
|
+
> = z.object({
|
|
1335
|
+
exists: z.boolean(),
|
|
1336
|
+
});
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* @internal
|
|
1340
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1341
|
+
*/
|
|
1342
|
+
export namespace PostV2ProxyCompletionsOrExists$ {
|
|
1343
|
+
/** @deprecated use `PostV2ProxyCompletionsOrExists$inboundSchema` instead. */
|
|
1344
|
+
export const inboundSchema = PostV2ProxyCompletionsOrExists$inboundSchema;
|
|
1345
|
+
/** @deprecated use `PostV2ProxyCompletionsOrExists$outboundSchema` instead. */
|
|
1346
|
+
export const outboundSchema = PostV2ProxyCompletionsOrExists$outboundSchema;
|
|
1347
|
+
/** @deprecated use `PostV2ProxyCompletionsOrExists$Outbound` instead. */
|
|
1348
|
+
export type Outbound = PostV2ProxyCompletionsOrExists$Outbound;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
export function postV2ProxyCompletionsOrExistsToJSON(
|
|
1352
|
+
postV2ProxyCompletionsOrExists: PostV2ProxyCompletionsOrExists,
|
|
1353
|
+
): string {
|
|
1354
|
+
return JSON.stringify(
|
|
1355
|
+
PostV2ProxyCompletionsOrExists$outboundSchema.parse(
|
|
1356
|
+
postV2ProxyCompletionsOrExists,
|
|
1357
|
+
),
|
|
1358
|
+
);
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
export function postV2ProxyCompletionsOrExistsFromJSON(
|
|
1362
|
+
jsonString: string,
|
|
1363
|
+
): SafeParseResult<PostV2ProxyCompletionsOrExists, SDKValidationError> {
|
|
1364
|
+
return safeParse(
|
|
1365
|
+
jsonString,
|
|
1366
|
+
(x) => PostV2ProxyCompletionsOrExists$inboundSchema.parse(JSON.parse(x)),
|
|
1367
|
+
`Failed to parse 'PostV2ProxyCompletionsOrExists' from JSON`,
|
|
1368
|
+
);
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
/** @internal */
|
|
1372
|
+
export const PostV2ProxyCompletionsOrProxyNin$inboundSchema: z.ZodType<
|
|
1373
|
+
PostV2ProxyCompletionsOrProxyNin,
|
|
1374
|
+
z.ZodTypeDef,
|
|
1375
|
+
unknown
|
|
1376
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1377
|
+
|
|
1378
|
+
/** @internal */
|
|
1379
|
+
export type PostV2ProxyCompletionsOrProxyNin$Outbound =
|
|
1380
|
+
| string
|
|
1381
|
+
| number
|
|
1382
|
+
| boolean;
|
|
1383
|
+
|
|
1384
|
+
/** @internal */
|
|
1385
|
+
export const PostV2ProxyCompletionsOrProxyNin$outboundSchema: z.ZodType<
|
|
1386
|
+
PostV2ProxyCompletionsOrProxyNin$Outbound,
|
|
1387
|
+
z.ZodTypeDef,
|
|
1388
|
+
PostV2ProxyCompletionsOrProxyNin
|
|
1389
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* @internal
|
|
1393
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1394
|
+
*/
|
|
1395
|
+
export namespace PostV2ProxyCompletionsOrProxyNin$ {
|
|
1396
|
+
/** @deprecated use `PostV2ProxyCompletionsOrProxyNin$inboundSchema` instead. */
|
|
1397
|
+
export const inboundSchema = PostV2ProxyCompletionsOrProxyNin$inboundSchema;
|
|
1398
|
+
/** @deprecated use `PostV2ProxyCompletionsOrProxyNin$outboundSchema` instead. */
|
|
1399
|
+
export const outboundSchema = PostV2ProxyCompletionsOrProxyNin$outboundSchema;
|
|
1400
|
+
/** @deprecated use `PostV2ProxyCompletionsOrProxyNin$Outbound` instead. */
|
|
1401
|
+
export type Outbound = PostV2ProxyCompletionsOrProxyNin$Outbound;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
export function postV2ProxyCompletionsOrProxyNinToJSON(
|
|
1405
|
+
postV2ProxyCompletionsOrProxyNin: PostV2ProxyCompletionsOrProxyNin,
|
|
1406
|
+
): string {
|
|
1407
|
+
return JSON.stringify(
|
|
1408
|
+
PostV2ProxyCompletionsOrProxyNin$outboundSchema.parse(
|
|
1409
|
+
postV2ProxyCompletionsOrProxyNin,
|
|
1410
|
+
),
|
|
1411
|
+
);
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
export function postV2ProxyCompletionsOrProxyNinFromJSON(
|
|
1415
|
+
jsonString: string,
|
|
1416
|
+
): SafeParseResult<PostV2ProxyCompletionsOrProxyNin, SDKValidationError> {
|
|
1417
|
+
return safeParse(
|
|
1418
|
+
jsonString,
|
|
1419
|
+
(x) => PostV2ProxyCompletionsOrProxyNin$inboundSchema.parse(JSON.parse(x)),
|
|
1420
|
+
`Failed to parse 'PostV2ProxyCompletionsOrProxyNin' from JSON`,
|
|
1421
|
+
);
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
/** @internal */
|
|
1425
|
+
export const PostV2ProxyCompletionsOrNin$inboundSchema: z.ZodType<
|
|
1426
|
+
PostV2ProxyCompletionsOrNin,
|
|
1427
|
+
z.ZodTypeDef,
|
|
1428
|
+
unknown
|
|
1429
|
+
> = z.object({
|
|
1430
|
+
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
1431
|
+
});
|
|
1432
|
+
|
|
1433
|
+
/** @internal */
|
|
1434
|
+
export type PostV2ProxyCompletionsOrNin$Outbound = {
|
|
1435
|
+
nin: Array<string | number | boolean>;
|
|
1436
|
+
};
|
|
1437
|
+
|
|
1438
|
+
/** @internal */
|
|
1439
|
+
export const PostV2ProxyCompletionsOrNin$outboundSchema: z.ZodType<
|
|
1440
|
+
PostV2ProxyCompletionsOrNin$Outbound,
|
|
1441
|
+
z.ZodTypeDef,
|
|
1442
|
+
PostV2ProxyCompletionsOrNin
|
|
1443
|
+
> = z.object({
|
|
1444
|
+
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
1445
|
+
});
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* @internal
|
|
1449
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1450
|
+
*/
|
|
1451
|
+
export namespace PostV2ProxyCompletionsOrNin$ {
|
|
1452
|
+
/** @deprecated use `PostV2ProxyCompletionsOrNin$inboundSchema` instead. */
|
|
1453
|
+
export const inboundSchema = PostV2ProxyCompletionsOrNin$inboundSchema;
|
|
1454
|
+
/** @deprecated use `PostV2ProxyCompletionsOrNin$outboundSchema` instead. */
|
|
1455
|
+
export const outboundSchema = PostV2ProxyCompletionsOrNin$outboundSchema;
|
|
1456
|
+
/** @deprecated use `PostV2ProxyCompletionsOrNin$Outbound` instead. */
|
|
1457
|
+
export type Outbound = PostV2ProxyCompletionsOrNin$Outbound;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
export function postV2ProxyCompletionsOrNinToJSON(
|
|
1461
|
+
postV2ProxyCompletionsOrNin: PostV2ProxyCompletionsOrNin,
|
|
1462
|
+
): string {
|
|
1463
|
+
return JSON.stringify(
|
|
1464
|
+
PostV2ProxyCompletionsOrNin$outboundSchema.parse(
|
|
1465
|
+
postV2ProxyCompletionsOrNin,
|
|
1466
|
+
),
|
|
1467
|
+
);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
export function postV2ProxyCompletionsOrNinFromJSON(
|
|
1471
|
+
jsonString: string,
|
|
1472
|
+
): SafeParseResult<PostV2ProxyCompletionsOrNin, SDKValidationError> {
|
|
1473
|
+
return safeParse(
|
|
1474
|
+
jsonString,
|
|
1475
|
+
(x) => PostV2ProxyCompletionsOrNin$inboundSchema.parse(JSON.parse(x)),
|
|
1476
|
+
`Failed to parse 'PostV2ProxyCompletionsOrNin' from JSON`,
|
|
1477
|
+
);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
/** @internal */
|
|
1481
|
+
export const PostV2ProxyCompletionsOrProxyIn$inboundSchema: z.ZodType<
|
|
1482
|
+
PostV2ProxyCompletionsOrProxyIn,
|
|
1483
|
+
z.ZodTypeDef,
|
|
1484
|
+
unknown
|
|
1485
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1486
|
+
|
|
1487
|
+
/** @internal */
|
|
1488
|
+
export type PostV2ProxyCompletionsOrProxyIn$Outbound =
|
|
1489
|
+
| string
|
|
1490
|
+
| number
|
|
1491
|
+
| boolean;
|
|
1492
|
+
|
|
1493
|
+
/** @internal */
|
|
1494
|
+
export const PostV2ProxyCompletionsOrProxyIn$outboundSchema: z.ZodType<
|
|
1495
|
+
PostV2ProxyCompletionsOrProxyIn$Outbound,
|
|
1496
|
+
z.ZodTypeDef,
|
|
1497
|
+
PostV2ProxyCompletionsOrProxyIn
|
|
1498
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1499
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* @internal
|
|
1502
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1503
|
+
*/
|
|
1504
|
+
export namespace PostV2ProxyCompletionsOrProxyIn$ {
|
|
1505
|
+
/** @deprecated use `PostV2ProxyCompletionsOrProxyIn$inboundSchema` instead. */
|
|
1506
|
+
export const inboundSchema = PostV2ProxyCompletionsOrProxyIn$inboundSchema;
|
|
1507
|
+
/** @deprecated use `PostV2ProxyCompletionsOrProxyIn$outboundSchema` instead. */
|
|
1508
|
+
export const outboundSchema = PostV2ProxyCompletionsOrProxyIn$outboundSchema;
|
|
1509
|
+
/** @deprecated use `PostV2ProxyCompletionsOrProxyIn$Outbound` instead. */
|
|
1510
|
+
export type Outbound = PostV2ProxyCompletionsOrProxyIn$Outbound;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
export function postV2ProxyCompletionsOrProxyInToJSON(
|
|
1514
|
+
postV2ProxyCompletionsOrProxyIn: PostV2ProxyCompletionsOrProxyIn,
|
|
1515
|
+
): string {
|
|
1516
|
+
return JSON.stringify(
|
|
1517
|
+
PostV2ProxyCompletionsOrProxyIn$outboundSchema.parse(
|
|
1518
|
+
postV2ProxyCompletionsOrProxyIn,
|
|
1519
|
+
),
|
|
1520
|
+
);
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
export function postV2ProxyCompletionsOrProxyInFromJSON(
|
|
1524
|
+
jsonString: string,
|
|
1525
|
+
): SafeParseResult<PostV2ProxyCompletionsOrProxyIn, SDKValidationError> {
|
|
1526
|
+
return safeParse(
|
|
1527
|
+
jsonString,
|
|
1528
|
+
(x) => PostV2ProxyCompletionsOrProxyIn$inboundSchema.parse(JSON.parse(x)),
|
|
1529
|
+
`Failed to parse 'PostV2ProxyCompletionsOrProxyIn' from JSON`,
|
|
1530
|
+
);
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
/** @internal */
|
|
1534
|
+
export const PostV2ProxyCompletionsOrIn$inboundSchema: z.ZodType<
|
|
1535
|
+
PostV2ProxyCompletionsOrIn,
|
|
1536
|
+
z.ZodTypeDef,
|
|
1537
|
+
unknown
|
|
1538
|
+
> = z.object({
|
|
1539
|
+
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
1540
|
+
});
|
|
1541
|
+
|
|
1542
|
+
/** @internal */
|
|
1543
|
+
export type PostV2ProxyCompletionsOrIn$Outbound = {
|
|
1544
|
+
in: Array<string | number | boolean>;
|
|
1545
|
+
};
|
|
1546
|
+
|
|
1547
|
+
/** @internal */
|
|
1548
|
+
export const PostV2ProxyCompletionsOrIn$outboundSchema: z.ZodType<
|
|
1549
|
+
PostV2ProxyCompletionsOrIn$Outbound,
|
|
1550
|
+
z.ZodTypeDef,
|
|
1551
|
+
PostV2ProxyCompletionsOrIn
|
|
1552
|
+
> = z.object({
|
|
1553
|
+
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
1554
|
+
});
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* @internal
|
|
1558
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1559
|
+
*/
|
|
1560
|
+
export namespace PostV2ProxyCompletionsOrIn$ {
|
|
1561
|
+
/** @deprecated use `PostV2ProxyCompletionsOrIn$inboundSchema` instead. */
|
|
1562
|
+
export const inboundSchema = PostV2ProxyCompletionsOrIn$inboundSchema;
|
|
1563
|
+
/** @deprecated use `PostV2ProxyCompletionsOrIn$outboundSchema` instead. */
|
|
1564
|
+
export const outboundSchema = PostV2ProxyCompletionsOrIn$outboundSchema;
|
|
1565
|
+
/** @deprecated use `PostV2ProxyCompletionsOrIn$Outbound` instead. */
|
|
1566
|
+
export type Outbound = PostV2ProxyCompletionsOrIn$Outbound;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
export function postV2ProxyCompletionsOrInToJSON(
|
|
1570
|
+
postV2ProxyCompletionsOrIn: PostV2ProxyCompletionsOrIn,
|
|
1571
|
+
): string {
|
|
1572
|
+
return JSON.stringify(
|
|
1573
|
+
PostV2ProxyCompletionsOrIn$outboundSchema.parse(postV2ProxyCompletionsOrIn),
|
|
1574
|
+
);
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
export function postV2ProxyCompletionsOrInFromJSON(
|
|
1578
|
+
jsonString: string,
|
|
1579
|
+
): SafeParseResult<PostV2ProxyCompletionsOrIn, SDKValidationError> {
|
|
1580
|
+
return safeParse(
|
|
1581
|
+
jsonString,
|
|
1582
|
+
(x) => PostV2ProxyCompletionsOrIn$inboundSchema.parse(JSON.parse(x)),
|
|
1583
|
+
`Failed to parse 'PostV2ProxyCompletionsOrIn' from JSON`,
|
|
1584
|
+
);
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
/** @internal */
|
|
1588
|
+
export const PostV2ProxyCompletionsOrLte$inboundSchema: z.ZodType<
|
|
1589
|
+
PostV2ProxyCompletionsOrLte,
|
|
1590
|
+
z.ZodTypeDef,
|
|
1591
|
+
unknown
|
|
1592
|
+
> = z.object({
|
|
1593
|
+
lte: z.number(),
|
|
1594
|
+
});
|
|
1595
|
+
|
|
1596
|
+
/** @internal */
|
|
1597
|
+
export type PostV2ProxyCompletionsOrLte$Outbound = {
|
|
1598
|
+
lte: number;
|
|
1599
|
+
};
|
|
1600
|
+
|
|
1601
|
+
/** @internal */
|
|
1602
|
+
export const PostV2ProxyCompletionsOrLte$outboundSchema: z.ZodType<
|
|
1603
|
+
PostV2ProxyCompletionsOrLte$Outbound,
|
|
1604
|
+
z.ZodTypeDef,
|
|
1605
|
+
PostV2ProxyCompletionsOrLte
|
|
1606
|
+
> = z.object({
|
|
1607
|
+
lte: z.number(),
|
|
1608
|
+
});
|
|
1609
|
+
|
|
1610
|
+
/**
|
|
1611
|
+
* @internal
|
|
1612
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1613
|
+
*/
|
|
1614
|
+
export namespace PostV2ProxyCompletionsOrLte$ {
|
|
1615
|
+
/** @deprecated use `PostV2ProxyCompletionsOrLte$inboundSchema` instead. */
|
|
1616
|
+
export const inboundSchema = PostV2ProxyCompletionsOrLte$inboundSchema;
|
|
1617
|
+
/** @deprecated use `PostV2ProxyCompletionsOrLte$outboundSchema` instead. */
|
|
1618
|
+
export const outboundSchema = PostV2ProxyCompletionsOrLte$outboundSchema;
|
|
1619
|
+
/** @deprecated use `PostV2ProxyCompletionsOrLte$Outbound` instead. */
|
|
1620
|
+
export type Outbound = PostV2ProxyCompletionsOrLte$Outbound;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
export function postV2ProxyCompletionsOrLteToJSON(
|
|
1624
|
+
postV2ProxyCompletionsOrLte: PostV2ProxyCompletionsOrLte,
|
|
1625
|
+
): string {
|
|
1626
|
+
return JSON.stringify(
|
|
1627
|
+
PostV2ProxyCompletionsOrLte$outboundSchema.parse(
|
|
1628
|
+
postV2ProxyCompletionsOrLte,
|
|
1629
|
+
),
|
|
1630
|
+
);
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
export function postV2ProxyCompletionsOrLteFromJSON(
|
|
1634
|
+
jsonString: string,
|
|
1635
|
+
): SafeParseResult<PostV2ProxyCompletionsOrLte, SDKValidationError> {
|
|
1636
|
+
return safeParse(
|
|
1637
|
+
jsonString,
|
|
1638
|
+
(x) => PostV2ProxyCompletionsOrLte$inboundSchema.parse(JSON.parse(x)),
|
|
1639
|
+
`Failed to parse 'PostV2ProxyCompletionsOrLte' from JSON`,
|
|
1640
|
+
);
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
/** @internal */
|
|
1644
|
+
export const PostV2ProxyCompletionsOrLt$inboundSchema: z.ZodType<
|
|
1645
|
+
PostV2ProxyCompletionsOrLt,
|
|
1646
|
+
z.ZodTypeDef,
|
|
1647
|
+
unknown
|
|
1648
|
+
> = z.object({
|
|
1649
|
+
lt: z.number(),
|
|
1650
|
+
});
|
|
1651
|
+
|
|
1652
|
+
/** @internal */
|
|
1653
|
+
export type PostV2ProxyCompletionsOrLt$Outbound = {
|
|
1654
|
+
lt: number;
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1657
|
+
/** @internal */
|
|
1658
|
+
export const PostV2ProxyCompletionsOrLt$outboundSchema: z.ZodType<
|
|
1659
|
+
PostV2ProxyCompletionsOrLt$Outbound,
|
|
1660
|
+
z.ZodTypeDef,
|
|
1661
|
+
PostV2ProxyCompletionsOrLt
|
|
1662
|
+
> = z.object({
|
|
1663
|
+
lt: z.number(),
|
|
1664
|
+
});
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* @internal
|
|
1668
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1669
|
+
*/
|
|
1670
|
+
export namespace PostV2ProxyCompletionsOrLt$ {
|
|
1671
|
+
/** @deprecated use `PostV2ProxyCompletionsOrLt$inboundSchema` instead. */
|
|
1672
|
+
export const inboundSchema = PostV2ProxyCompletionsOrLt$inboundSchema;
|
|
1673
|
+
/** @deprecated use `PostV2ProxyCompletionsOrLt$outboundSchema` instead. */
|
|
1674
|
+
export const outboundSchema = PostV2ProxyCompletionsOrLt$outboundSchema;
|
|
1675
|
+
/** @deprecated use `PostV2ProxyCompletionsOrLt$Outbound` instead. */
|
|
1676
|
+
export type Outbound = PostV2ProxyCompletionsOrLt$Outbound;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
export function postV2ProxyCompletionsOrLtToJSON(
|
|
1680
|
+
postV2ProxyCompletionsOrLt: PostV2ProxyCompletionsOrLt,
|
|
1681
|
+
): string {
|
|
1682
|
+
return JSON.stringify(
|
|
1683
|
+
PostV2ProxyCompletionsOrLt$outboundSchema.parse(postV2ProxyCompletionsOrLt),
|
|
1684
|
+
);
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
export function postV2ProxyCompletionsOrLtFromJSON(
|
|
1688
|
+
jsonString: string,
|
|
1689
|
+
): SafeParseResult<PostV2ProxyCompletionsOrLt, SDKValidationError> {
|
|
1690
|
+
return safeParse(
|
|
1691
|
+
jsonString,
|
|
1692
|
+
(x) => PostV2ProxyCompletionsOrLt$inboundSchema.parse(JSON.parse(x)),
|
|
1693
|
+
`Failed to parse 'PostV2ProxyCompletionsOrLt' from JSON`,
|
|
1694
|
+
);
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
/** @internal */
|
|
1698
|
+
export const PostV2ProxyCompletionsOrGte$inboundSchema: z.ZodType<
|
|
1699
|
+
PostV2ProxyCompletionsOrGte,
|
|
1700
|
+
z.ZodTypeDef,
|
|
1701
|
+
unknown
|
|
1702
|
+
> = z.object({
|
|
1703
|
+
gte: z.number(),
|
|
1704
|
+
});
|
|
1705
|
+
|
|
1706
|
+
/** @internal */
|
|
1707
|
+
export type PostV2ProxyCompletionsOrGte$Outbound = {
|
|
1708
|
+
gte: number;
|
|
1709
|
+
};
|
|
1710
|
+
|
|
1711
|
+
/** @internal */
|
|
1712
|
+
export const PostV2ProxyCompletionsOrGte$outboundSchema: z.ZodType<
|
|
1713
|
+
PostV2ProxyCompletionsOrGte$Outbound,
|
|
1714
|
+
z.ZodTypeDef,
|
|
1715
|
+
PostV2ProxyCompletionsOrGte
|
|
1716
|
+
> = z.object({
|
|
1717
|
+
gte: z.number(),
|
|
1718
|
+
});
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* @internal
|
|
1722
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1723
|
+
*/
|
|
1724
|
+
export namespace PostV2ProxyCompletionsOrGte$ {
|
|
1725
|
+
/** @deprecated use `PostV2ProxyCompletionsOrGte$inboundSchema` instead. */
|
|
1726
|
+
export const inboundSchema = PostV2ProxyCompletionsOrGte$inboundSchema;
|
|
1727
|
+
/** @deprecated use `PostV2ProxyCompletionsOrGte$outboundSchema` instead. */
|
|
1728
|
+
export const outboundSchema = PostV2ProxyCompletionsOrGte$outboundSchema;
|
|
1729
|
+
/** @deprecated use `PostV2ProxyCompletionsOrGte$Outbound` instead. */
|
|
1730
|
+
export type Outbound = PostV2ProxyCompletionsOrGte$Outbound;
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
export function postV2ProxyCompletionsOrGteToJSON(
|
|
1734
|
+
postV2ProxyCompletionsOrGte: PostV2ProxyCompletionsOrGte,
|
|
1735
|
+
): string {
|
|
1736
|
+
return JSON.stringify(
|
|
1737
|
+
PostV2ProxyCompletionsOrGte$outboundSchema.parse(
|
|
1738
|
+
postV2ProxyCompletionsOrGte,
|
|
1739
|
+
),
|
|
1740
|
+
);
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
export function postV2ProxyCompletionsOrGteFromJSON(
|
|
1744
|
+
jsonString: string,
|
|
1745
|
+
): SafeParseResult<PostV2ProxyCompletionsOrGte, SDKValidationError> {
|
|
1746
|
+
return safeParse(
|
|
1747
|
+
jsonString,
|
|
1748
|
+
(x) => PostV2ProxyCompletionsOrGte$inboundSchema.parse(JSON.parse(x)),
|
|
1749
|
+
`Failed to parse 'PostV2ProxyCompletionsOrGte' from JSON`,
|
|
1750
|
+
);
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
/** @internal */
|
|
1754
|
+
export const PostV2ProxyCompletionsOr3$inboundSchema: z.ZodType<
|
|
1755
|
+
PostV2ProxyCompletionsOr3,
|
|
1756
|
+
z.ZodTypeDef,
|
|
1757
|
+
unknown
|
|
1758
|
+
> = z.object({
|
|
1759
|
+
gt: z.number(),
|
|
1760
|
+
});
|
|
1761
|
+
|
|
1762
|
+
/** @internal */
|
|
1763
|
+
export type PostV2ProxyCompletionsOr3$Outbound = {
|
|
1764
|
+
gt: number;
|
|
1765
|
+
};
|
|
1766
|
+
|
|
1767
|
+
/** @internal */
|
|
1768
|
+
export const PostV2ProxyCompletionsOr3$outboundSchema: z.ZodType<
|
|
1769
|
+
PostV2ProxyCompletionsOr3$Outbound,
|
|
1770
|
+
z.ZodTypeDef,
|
|
1771
|
+
PostV2ProxyCompletionsOr3
|
|
1772
|
+
> = z.object({
|
|
1773
|
+
gt: z.number(),
|
|
1774
|
+
});
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* @internal
|
|
1778
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1779
|
+
*/
|
|
1780
|
+
export namespace PostV2ProxyCompletionsOr3$ {
|
|
1781
|
+
/** @deprecated use `PostV2ProxyCompletionsOr3$inboundSchema` instead. */
|
|
1782
|
+
export const inboundSchema = PostV2ProxyCompletionsOr3$inboundSchema;
|
|
1783
|
+
/** @deprecated use `PostV2ProxyCompletionsOr3$outboundSchema` instead. */
|
|
1784
|
+
export const outboundSchema = PostV2ProxyCompletionsOr3$outboundSchema;
|
|
1785
|
+
/** @deprecated use `PostV2ProxyCompletionsOr3$Outbound` instead. */
|
|
1786
|
+
export type Outbound = PostV2ProxyCompletionsOr3$Outbound;
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
export function postV2ProxyCompletionsOr3ToJSON(
|
|
1790
|
+
postV2ProxyCompletionsOr3: PostV2ProxyCompletionsOr3,
|
|
1791
|
+
): string {
|
|
1792
|
+
return JSON.stringify(
|
|
1793
|
+
PostV2ProxyCompletionsOr3$outboundSchema.parse(postV2ProxyCompletionsOr3),
|
|
1794
|
+
);
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
export function postV2ProxyCompletionsOr3FromJSON(
|
|
1798
|
+
jsonString: string,
|
|
1799
|
+
): SafeParseResult<PostV2ProxyCompletionsOr3, SDKValidationError> {
|
|
1800
|
+
return safeParse(
|
|
1801
|
+
jsonString,
|
|
1802
|
+
(x) => PostV2ProxyCompletionsOr3$inboundSchema.parse(JSON.parse(x)),
|
|
1803
|
+
`Failed to parse 'PostV2ProxyCompletionsOr3' from JSON`,
|
|
1804
|
+
);
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
/** @internal */
|
|
1808
|
+
export const PostV2ProxyCompletionsOrProxyNe$inboundSchema: z.ZodType<
|
|
1809
|
+
PostV2ProxyCompletionsOrProxyNe,
|
|
1810
|
+
z.ZodTypeDef,
|
|
1811
|
+
unknown
|
|
1812
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1813
|
+
|
|
1814
|
+
/** @internal */
|
|
1815
|
+
export type PostV2ProxyCompletionsOrProxyNe$Outbound =
|
|
1816
|
+
| string
|
|
1817
|
+
| number
|
|
1818
|
+
| boolean;
|
|
1819
|
+
|
|
1820
|
+
/** @internal */
|
|
1821
|
+
export const PostV2ProxyCompletionsOrProxyNe$outboundSchema: z.ZodType<
|
|
1822
|
+
PostV2ProxyCompletionsOrProxyNe$Outbound,
|
|
1823
|
+
z.ZodTypeDef,
|
|
1824
|
+
PostV2ProxyCompletionsOrProxyNe
|
|
1825
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1826
|
+
|
|
1827
|
+
/**
|
|
1828
|
+
* @internal
|
|
1829
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1830
|
+
*/
|
|
1831
|
+
export namespace PostV2ProxyCompletionsOrProxyNe$ {
|
|
1832
|
+
/** @deprecated use `PostV2ProxyCompletionsOrProxyNe$inboundSchema` instead. */
|
|
1833
|
+
export const inboundSchema = PostV2ProxyCompletionsOrProxyNe$inboundSchema;
|
|
1834
|
+
/** @deprecated use `PostV2ProxyCompletionsOrProxyNe$outboundSchema` instead. */
|
|
1835
|
+
export const outboundSchema = PostV2ProxyCompletionsOrProxyNe$outboundSchema;
|
|
1836
|
+
/** @deprecated use `PostV2ProxyCompletionsOrProxyNe$Outbound` instead. */
|
|
1837
|
+
export type Outbound = PostV2ProxyCompletionsOrProxyNe$Outbound;
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
export function postV2ProxyCompletionsOrProxyNeToJSON(
|
|
1841
|
+
postV2ProxyCompletionsOrProxyNe: PostV2ProxyCompletionsOrProxyNe,
|
|
1842
|
+
): string {
|
|
1843
|
+
return JSON.stringify(
|
|
1844
|
+
PostV2ProxyCompletionsOrProxyNe$outboundSchema.parse(
|
|
1845
|
+
postV2ProxyCompletionsOrProxyNe,
|
|
1846
|
+
),
|
|
1847
|
+
);
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
export function postV2ProxyCompletionsOrProxyNeFromJSON(
|
|
1851
|
+
jsonString: string,
|
|
1852
|
+
): SafeParseResult<PostV2ProxyCompletionsOrProxyNe, SDKValidationError> {
|
|
1853
|
+
return safeParse(
|
|
1854
|
+
jsonString,
|
|
1855
|
+
(x) => PostV2ProxyCompletionsOrProxyNe$inboundSchema.parse(JSON.parse(x)),
|
|
1856
|
+
`Failed to parse 'PostV2ProxyCompletionsOrProxyNe' from JSON`,
|
|
1857
|
+
);
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
/** @internal */
|
|
1861
|
+
export const PostV2ProxyCompletionsOrNe$inboundSchema: z.ZodType<
|
|
1862
|
+
PostV2ProxyCompletionsOrNe,
|
|
1863
|
+
z.ZodTypeDef,
|
|
1864
|
+
unknown
|
|
1865
|
+
> = z.object({
|
|
1866
|
+
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
1867
|
+
});
|
|
1868
|
+
|
|
1869
|
+
/** @internal */
|
|
1870
|
+
export type PostV2ProxyCompletionsOrNe$Outbound = {
|
|
1871
|
+
ne: string | number | boolean;
|
|
1872
|
+
};
|
|
1873
|
+
|
|
1874
|
+
/** @internal */
|
|
1875
|
+
export const PostV2ProxyCompletionsOrNe$outboundSchema: z.ZodType<
|
|
1876
|
+
PostV2ProxyCompletionsOrNe$Outbound,
|
|
1877
|
+
z.ZodTypeDef,
|
|
1878
|
+
PostV2ProxyCompletionsOrNe
|
|
1879
|
+
> = z.object({
|
|
1880
|
+
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
1881
|
+
});
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* @internal
|
|
1885
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1886
|
+
*/
|
|
1887
|
+
export namespace PostV2ProxyCompletionsOrNe$ {
|
|
1888
|
+
/** @deprecated use `PostV2ProxyCompletionsOrNe$inboundSchema` instead. */
|
|
1889
|
+
export const inboundSchema = PostV2ProxyCompletionsOrNe$inboundSchema;
|
|
1890
|
+
/** @deprecated use `PostV2ProxyCompletionsOrNe$outboundSchema` instead. */
|
|
1891
|
+
export const outboundSchema = PostV2ProxyCompletionsOrNe$outboundSchema;
|
|
1892
|
+
/** @deprecated use `PostV2ProxyCompletionsOrNe$Outbound` instead. */
|
|
1893
|
+
export type Outbound = PostV2ProxyCompletionsOrNe$Outbound;
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
export function postV2ProxyCompletionsOrNeToJSON(
|
|
1897
|
+
postV2ProxyCompletionsOrNe: PostV2ProxyCompletionsOrNe,
|
|
1898
|
+
): string {
|
|
1899
|
+
return JSON.stringify(
|
|
1900
|
+
PostV2ProxyCompletionsOrNe$outboundSchema.parse(postV2ProxyCompletionsOrNe),
|
|
1901
|
+
);
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
export function postV2ProxyCompletionsOrNeFromJSON(
|
|
1905
|
+
jsonString: string,
|
|
1906
|
+
): SafeParseResult<PostV2ProxyCompletionsOrNe, SDKValidationError> {
|
|
1907
|
+
return safeParse(
|
|
1908
|
+
jsonString,
|
|
1909
|
+
(x) => PostV2ProxyCompletionsOrNe$inboundSchema.parse(JSON.parse(x)),
|
|
1910
|
+
`Failed to parse 'PostV2ProxyCompletionsOrNe' from JSON`,
|
|
1911
|
+
);
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
/** @internal */
|
|
1915
|
+
export const PostV2ProxyCompletionsOrProxyEq$inboundSchema: z.ZodType<
|
|
1916
|
+
PostV2ProxyCompletionsOrProxyEq,
|
|
1917
|
+
z.ZodTypeDef,
|
|
1918
|
+
unknown
|
|
1919
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1920
|
+
|
|
1921
|
+
/** @internal */
|
|
1922
|
+
export type PostV2ProxyCompletionsOrProxyEq$Outbound =
|
|
1923
|
+
| string
|
|
1924
|
+
| number
|
|
1925
|
+
| boolean;
|
|
1926
|
+
|
|
1927
|
+
/** @internal */
|
|
1928
|
+
export const PostV2ProxyCompletionsOrProxyEq$outboundSchema: z.ZodType<
|
|
1929
|
+
PostV2ProxyCompletionsOrProxyEq$Outbound,
|
|
1930
|
+
z.ZodTypeDef,
|
|
1931
|
+
PostV2ProxyCompletionsOrProxyEq
|
|
1932
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1933
|
+
|
|
1934
|
+
/**
|
|
1935
|
+
* @internal
|
|
1936
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1937
|
+
*/
|
|
1938
|
+
export namespace PostV2ProxyCompletionsOrProxyEq$ {
|
|
1939
|
+
/** @deprecated use `PostV2ProxyCompletionsOrProxyEq$inboundSchema` instead. */
|
|
1940
|
+
export const inboundSchema = PostV2ProxyCompletionsOrProxyEq$inboundSchema;
|
|
1941
|
+
/** @deprecated use `PostV2ProxyCompletionsOrProxyEq$outboundSchema` instead. */
|
|
1942
|
+
export const outboundSchema = PostV2ProxyCompletionsOrProxyEq$outboundSchema;
|
|
1943
|
+
/** @deprecated use `PostV2ProxyCompletionsOrProxyEq$Outbound` instead. */
|
|
1944
|
+
export type Outbound = PostV2ProxyCompletionsOrProxyEq$Outbound;
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
export function postV2ProxyCompletionsOrProxyEqToJSON(
|
|
1948
|
+
postV2ProxyCompletionsOrProxyEq: PostV2ProxyCompletionsOrProxyEq,
|
|
1949
|
+
): string {
|
|
1950
|
+
return JSON.stringify(
|
|
1951
|
+
PostV2ProxyCompletionsOrProxyEq$outboundSchema.parse(
|
|
1952
|
+
postV2ProxyCompletionsOrProxyEq,
|
|
1953
|
+
),
|
|
1954
|
+
);
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
export function postV2ProxyCompletionsOrProxyEqFromJSON(
|
|
1958
|
+
jsonString: string,
|
|
1959
|
+
): SafeParseResult<PostV2ProxyCompletionsOrProxyEq, SDKValidationError> {
|
|
1960
|
+
return safeParse(
|
|
1961
|
+
jsonString,
|
|
1962
|
+
(x) => PostV2ProxyCompletionsOrProxyEq$inboundSchema.parse(JSON.parse(x)),
|
|
1963
|
+
`Failed to parse 'PostV2ProxyCompletionsOrProxyEq' from JSON`,
|
|
1964
|
+
);
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
/** @internal */
|
|
1968
|
+
export const PostV2ProxyCompletionsOrEq$inboundSchema: z.ZodType<
|
|
1969
|
+
PostV2ProxyCompletionsOrEq,
|
|
1970
|
+
z.ZodTypeDef,
|
|
1971
|
+
unknown
|
|
1972
|
+
> = z.object({
|
|
1973
|
+
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
1974
|
+
});
|
|
1975
|
+
|
|
1976
|
+
/** @internal */
|
|
1977
|
+
export type PostV2ProxyCompletionsOrEq$Outbound = {
|
|
1978
|
+
eq: string | number | boolean;
|
|
1979
|
+
};
|
|
1980
|
+
|
|
1981
|
+
/** @internal */
|
|
1982
|
+
export const PostV2ProxyCompletionsOrEq$outboundSchema: z.ZodType<
|
|
1983
|
+
PostV2ProxyCompletionsOrEq$Outbound,
|
|
1984
|
+
z.ZodTypeDef,
|
|
1985
|
+
PostV2ProxyCompletionsOrEq
|
|
1986
|
+
> = z.object({
|
|
1987
|
+
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
1988
|
+
});
|
|
1989
|
+
|
|
1990
|
+
/**
|
|
1991
|
+
* @internal
|
|
1992
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1993
|
+
*/
|
|
1994
|
+
export namespace PostV2ProxyCompletionsOrEq$ {
|
|
1995
|
+
/** @deprecated use `PostV2ProxyCompletionsOrEq$inboundSchema` instead. */
|
|
1996
|
+
export const inboundSchema = PostV2ProxyCompletionsOrEq$inboundSchema;
|
|
1997
|
+
/** @deprecated use `PostV2ProxyCompletionsOrEq$outboundSchema` instead. */
|
|
1998
|
+
export const outboundSchema = PostV2ProxyCompletionsOrEq$outboundSchema;
|
|
1999
|
+
/** @deprecated use `PostV2ProxyCompletionsOrEq$Outbound` instead. */
|
|
2000
|
+
export type Outbound = PostV2ProxyCompletionsOrEq$Outbound;
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
export function postV2ProxyCompletionsOrEqToJSON(
|
|
2004
|
+
postV2ProxyCompletionsOrEq: PostV2ProxyCompletionsOrEq,
|
|
2005
|
+
): string {
|
|
2006
|
+
return JSON.stringify(
|
|
2007
|
+
PostV2ProxyCompletionsOrEq$outboundSchema.parse(postV2ProxyCompletionsOrEq),
|
|
2008
|
+
);
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
export function postV2ProxyCompletionsOrEqFromJSON(
|
|
2012
|
+
jsonString: string,
|
|
2013
|
+
): SafeParseResult<PostV2ProxyCompletionsOrEq, SDKValidationError> {
|
|
2014
|
+
return safeParse(
|
|
2015
|
+
jsonString,
|
|
2016
|
+
(x) => PostV2ProxyCompletionsOrEq$inboundSchema.parse(JSON.parse(x)),
|
|
2017
|
+
`Failed to parse 'PostV2ProxyCompletionsOrEq' from JSON`,
|
|
2018
|
+
);
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
/** @internal */
|
|
2022
|
+
export const PostV2ProxyCompletionsFilterByProxyOr$inboundSchema: z.ZodType<
|
|
2023
|
+
PostV2ProxyCompletionsFilterByProxyOr,
|
|
2024
|
+
z.ZodTypeDef,
|
|
2025
|
+
unknown
|
|
2026
|
+
> = z.union([
|
|
2027
|
+
z.lazy(() => PostV2ProxyCompletionsOrEq$inboundSchema),
|
|
2028
|
+
z.lazy(() => PostV2ProxyCompletionsOrNe$inboundSchema),
|
|
2029
|
+
z.lazy(() => PostV2ProxyCompletionsOr3$inboundSchema),
|
|
2030
|
+
z.lazy(() => PostV2ProxyCompletionsOrGte$inboundSchema),
|
|
2031
|
+
z.lazy(() => PostV2ProxyCompletionsOrLt$inboundSchema),
|
|
2032
|
+
z.lazy(() => PostV2ProxyCompletionsOrLte$inboundSchema),
|
|
2033
|
+
z.lazy(() => PostV2ProxyCompletionsOrIn$inboundSchema),
|
|
2034
|
+
z.lazy(() => PostV2ProxyCompletionsOrNin$inboundSchema),
|
|
2035
|
+
z.lazy(() => PostV2ProxyCompletionsOrExists$inboundSchema),
|
|
2036
|
+
]);
|
|
2037
|
+
|
|
2038
|
+
/** @internal */
|
|
2039
|
+
export type PostV2ProxyCompletionsFilterByProxyOr$Outbound =
|
|
2040
|
+
| PostV2ProxyCompletionsOrEq$Outbound
|
|
2041
|
+
| PostV2ProxyCompletionsOrNe$Outbound
|
|
2042
|
+
| PostV2ProxyCompletionsOr3$Outbound
|
|
2043
|
+
| PostV2ProxyCompletionsOrGte$Outbound
|
|
2044
|
+
| PostV2ProxyCompletionsOrLt$Outbound
|
|
2045
|
+
| PostV2ProxyCompletionsOrLte$Outbound
|
|
2046
|
+
| PostV2ProxyCompletionsOrIn$Outbound
|
|
2047
|
+
| PostV2ProxyCompletionsOrNin$Outbound
|
|
2048
|
+
| PostV2ProxyCompletionsOrExists$Outbound;
|
|
2049
|
+
|
|
2050
|
+
/** @internal */
|
|
2051
|
+
export const PostV2ProxyCompletionsFilterByProxyOr$outboundSchema: z.ZodType<
|
|
2052
|
+
PostV2ProxyCompletionsFilterByProxyOr$Outbound,
|
|
2053
|
+
z.ZodTypeDef,
|
|
2054
|
+
PostV2ProxyCompletionsFilterByProxyOr
|
|
2055
|
+
> = z.union([
|
|
2056
|
+
z.lazy(() => PostV2ProxyCompletionsOrEq$outboundSchema),
|
|
2057
|
+
z.lazy(() => PostV2ProxyCompletionsOrNe$outboundSchema),
|
|
2058
|
+
z.lazy(() => PostV2ProxyCompletionsOr3$outboundSchema),
|
|
2059
|
+
z.lazy(() => PostV2ProxyCompletionsOrGte$outboundSchema),
|
|
2060
|
+
z.lazy(() => PostV2ProxyCompletionsOrLt$outboundSchema),
|
|
2061
|
+
z.lazy(() => PostV2ProxyCompletionsOrLte$outboundSchema),
|
|
2062
|
+
z.lazy(() => PostV2ProxyCompletionsOrIn$outboundSchema),
|
|
2063
|
+
z.lazy(() => PostV2ProxyCompletionsOrNin$outboundSchema),
|
|
2064
|
+
z.lazy(() => PostV2ProxyCompletionsOrExists$outboundSchema),
|
|
2065
|
+
]);
|
|
2066
|
+
|
|
2067
|
+
/**
|
|
2068
|
+
* @internal
|
|
2069
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2070
|
+
*/
|
|
2071
|
+
export namespace PostV2ProxyCompletionsFilterByProxyOr$ {
|
|
2072
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterByProxyOr$inboundSchema` instead. */
|
|
2073
|
+
export const inboundSchema =
|
|
2074
|
+
PostV2ProxyCompletionsFilterByProxyOr$inboundSchema;
|
|
2075
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterByProxyOr$outboundSchema` instead. */
|
|
2076
|
+
export const outboundSchema =
|
|
2077
|
+
PostV2ProxyCompletionsFilterByProxyOr$outboundSchema;
|
|
2078
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterByProxyOr$Outbound` instead. */
|
|
2079
|
+
export type Outbound = PostV2ProxyCompletionsFilterByProxyOr$Outbound;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
export function postV2ProxyCompletionsFilterByProxyOrToJSON(
|
|
2083
|
+
postV2ProxyCompletionsFilterByProxyOr: PostV2ProxyCompletionsFilterByProxyOr,
|
|
2084
|
+
): string {
|
|
2085
|
+
return JSON.stringify(
|
|
2086
|
+
PostV2ProxyCompletionsFilterByProxyOr$outboundSchema.parse(
|
|
2087
|
+
postV2ProxyCompletionsFilterByProxyOr,
|
|
2088
|
+
),
|
|
2089
|
+
);
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
export function postV2ProxyCompletionsFilterByProxyOrFromJSON(
|
|
2093
|
+
jsonString: string,
|
|
2094
|
+
): SafeParseResult<PostV2ProxyCompletionsFilterByProxyOr, SDKValidationError> {
|
|
2095
|
+
return safeParse(
|
|
2096
|
+
jsonString,
|
|
2097
|
+
(x) =>
|
|
2098
|
+
PostV2ProxyCompletionsFilterByProxyOr$inboundSchema.parse(JSON.parse(x)),
|
|
2099
|
+
`Failed to parse 'PostV2ProxyCompletionsFilterByProxyOr' from JSON`,
|
|
2100
|
+
);
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
/** @internal */
|
|
2104
|
+
export const PostV2ProxyCompletionsFilterByOr$inboundSchema: z.ZodType<
|
|
2105
|
+
PostV2ProxyCompletionsFilterByOr,
|
|
2106
|
+
z.ZodTypeDef,
|
|
2107
|
+
unknown
|
|
2108
|
+
> = z.object({
|
|
2109
|
+
or: z.array(
|
|
2110
|
+
z.record(z.union([
|
|
2111
|
+
z.lazy(() => PostV2ProxyCompletionsOrEq$inboundSchema),
|
|
2112
|
+
z.lazy(() =>
|
|
2113
|
+
PostV2ProxyCompletionsOrNe$inboundSchema
|
|
2114
|
+
),
|
|
2115
|
+
z.lazy(() => PostV2ProxyCompletionsOr3$inboundSchema),
|
|
2116
|
+
z.lazy(() => PostV2ProxyCompletionsOrGte$inboundSchema),
|
|
2117
|
+
z.lazy(() => PostV2ProxyCompletionsOrLt$inboundSchema),
|
|
2118
|
+
z.lazy(() => PostV2ProxyCompletionsOrLte$inboundSchema),
|
|
2119
|
+
z.lazy(() => PostV2ProxyCompletionsOrIn$inboundSchema),
|
|
2120
|
+
z.lazy(() => PostV2ProxyCompletionsOrNin$inboundSchema),
|
|
2121
|
+
z.lazy(() => PostV2ProxyCompletionsOrExists$inboundSchema),
|
|
2122
|
+
])),
|
|
2123
|
+
),
|
|
2124
|
+
});
|
|
2125
|
+
|
|
2126
|
+
/** @internal */
|
|
2127
|
+
export type PostV2ProxyCompletionsFilterByOr$Outbound = {
|
|
2128
|
+
or: Array<
|
|
2129
|
+
{
|
|
2130
|
+
[k: string]:
|
|
2131
|
+
| PostV2ProxyCompletionsOrEq$Outbound
|
|
2132
|
+
| PostV2ProxyCompletionsOrNe$Outbound
|
|
2133
|
+
| PostV2ProxyCompletionsOr3$Outbound
|
|
2134
|
+
| PostV2ProxyCompletionsOrGte$Outbound
|
|
2135
|
+
| PostV2ProxyCompletionsOrLt$Outbound
|
|
2136
|
+
| PostV2ProxyCompletionsOrLte$Outbound
|
|
2137
|
+
| PostV2ProxyCompletionsOrIn$Outbound
|
|
2138
|
+
| PostV2ProxyCompletionsOrNin$Outbound
|
|
2139
|
+
| PostV2ProxyCompletionsOrExists$Outbound;
|
|
2140
|
+
}
|
|
2141
|
+
>;
|
|
2142
|
+
};
|
|
2143
|
+
|
|
2144
|
+
/** @internal */
|
|
2145
|
+
export const PostV2ProxyCompletionsFilterByOr$outboundSchema: z.ZodType<
|
|
2146
|
+
PostV2ProxyCompletionsFilterByOr$Outbound,
|
|
2147
|
+
z.ZodTypeDef,
|
|
2148
|
+
PostV2ProxyCompletionsFilterByOr
|
|
2149
|
+
> = z.object({
|
|
2150
|
+
or: z.array(
|
|
2151
|
+
z.record(z.union([
|
|
2152
|
+
z.lazy(() => PostV2ProxyCompletionsOrEq$outboundSchema),
|
|
2153
|
+
z.lazy(() =>
|
|
2154
|
+
PostV2ProxyCompletionsOrNe$outboundSchema
|
|
2155
|
+
),
|
|
2156
|
+
z.lazy(() => PostV2ProxyCompletionsOr3$outboundSchema),
|
|
2157
|
+
z.lazy(() => PostV2ProxyCompletionsOrGte$outboundSchema),
|
|
2158
|
+
z.lazy(() => PostV2ProxyCompletionsOrLt$outboundSchema),
|
|
2159
|
+
z.lazy(() => PostV2ProxyCompletionsOrLte$outboundSchema),
|
|
2160
|
+
z.lazy(() => PostV2ProxyCompletionsOrIn$outboundSchema),
|
|
2161
|
+
z.lazy(() => PostV2ProxyCompletionsOrNin$outboundSchema),
|
|
2162
|
+
z.lazy(() => PostV2ProxyCompletionsOrExists$outboundSchema),
|
|
2163
|
+
])),
|
|
2164
|
+
),
|
|
2165
|
+
});
|
|
2166
|
+
|
|
2167
|
+
/**
|
|
2168
|
+
* @internal
|
|
2169
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2170
|
+
*/
|
|
2171
|
+
export namespace PostV2ProxyCompletionsFilterByOr$ {
|
|
2172
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterByOr$inboundSchema` instead. */
|
|
2173
|
+
export const inboundSchema = PostV2ProxyCompletionsFilterByOr$inboundSchema;
|
|
2174
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterByOr$outboundSchema` instead. */
|
|
2175
|
+
export const outboundSchema = PostV2ProxyCompletionsFilterByOr$outboundSchema;
|
|
2176
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterByOr$Outbound` instead. */
|
|
2177
|
+
export type Outbound = PostV2ProxyCompletionsFilterByOr$Outbound;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
export function postV2ProxyCompletionsFilterByOrToJSON(
|
|
2181
|
+
postV2ProxyCompletionsFilterByOr: PostV2ProxyCompletionsFilterByOr,
|
|
2182
|
+
): string {
|
|
2183
|
+
return JSON.stringify(
|
|
2184
|
+
PostV2ProxyCompletionsFilterByOr$outboundSchema.parse(
|
|
2185
|
+
postV2ProxyCompletionsFilterByOr,
|
|
2186
|
+
),
|
|
2187
|
+
);
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
export function postV2ProxyCompletionsFilterByOrFromJSON(
|
|
2191
|
+
jsonString: string,
|
|
2192
|
+
): SafeParseResult<PostV2ProxyCompletionsFilterByOr, SDKValidationError> {
|
|
2193
|
+
return safeParse(
|
|
2194
|
+
jsonString,
|
|
2195
|
+
(x) => PostV2ProxyCompletionsFilterByOr$inboundSchema.parse(JSON.parse(x)),
|
|
2196
|
+
`Failed to parse 'PostV2ProxyCompletionsFilterByOr' from JSON`,
|
|
2197
|
+
);
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
/** @internal */
|
|
2201
|
+
export const PostV2ProxyCompletionsAndExists$inboundSchema: z.ZodType<
|
|
2202
|
+
PostV2ProxyCompletionsAndExists,
|
|
2203
|
+
z.ZodTypeDef,
|
|
2204
|
+
unknown
|
|
2205
|
+
> = z.object({
|
|
2206
|
+
exists: z.boolean(),
|
|
2207
|
+
});
|
|
2208
|
+
|
|
2209
|
+
/** @internal */
|
|
2210
|
+
export type PostV2ProxyCompletionsAndExists$Outbound = {
|
|
2211
|
+
exists: boolean;
|
|
2212
|
+
};
|
|
2213
|
+
|
|
2214
|
+
/** @internal */
|
|
2215
|
+
export const PostV2ProxyCompletionsAndExists$outboundSchema: z.ZodType<
|
|
2216
|
+
PostV2ProxyCompletionsAndExists$Outbound,
|
|
2217
|
+
z.ZodTypeDef,
|
|
2218
|
+
PostV2ProxyCompletionsAndExists
|
|
2219
|
+
> = z.object({
|
|
2220
|
+
exists: z.boolean(),
|
|
2221
|
+
});
|
|
2222
|
+
|
|
2223
|
+
/**
|
|
2224
|
+
* @internal
|
|
2225
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2226
|
+
*/
|
|
2227
|
+
export namespace PostV2ProxyCompletionsAndExists$ {
|
|
2228
|
+
/** @deprecated use `PostV2ProxyCompletionsAndExists$inboundSchema` instead. */
|
|
2229
|
+
export const inboundSchema = PostV2ProxyCompletionsAndExists$inboundSchema;
|
|
2230
|
+
/** @deprecated use `PostV2ProxyCompletionsAndExists$outboundSchema` instead. */
|
|
2231
|
+
export const outboundSchema = PostV2ProxyCompletionsAndExists$outboundSchema;
|
|
2232
|
+
/** @deprecated use `PostV2ProxyCompletionsAndExists$Outbound` instead. */
|
|
2233
|
+
export type Outbound = PostV2ProxyCompletionsAndExists$Outbound;
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
export function postV2ProxyCompletionsAndExistsToJSON(
|
|
2237
|
+
postV2ProxyCompletionsAndExists: PostV2ProxyCompletionsAndExists,
|
|
2238
|
+
): string {
|
|
2239
|
+
return JSON.stringify(
|
|
2240
|
+
PostV2ProxyCompletionsAndExists$outboundSchema.parse(
|
|
2241
|
+
postV2ProxyCompletionsAndExists,
|
|
2242
|
+
),
|
|
2243
|
+
);
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
export function postV2ProxyCompletionsAndExistsFromJSON(
|
|
2247
|
+
jsonString: string,
|
|
2248
|
+
): SafeParseResult<PostV2ProxyCompletionsAndExists, SDKValidationError> {
|
|
2249
|
+
return safeParse(
|
|
2250
|
+
jsonString,
|
|
2251
|
+
(x) => PostV2ProxyCompletionsAndExists$inboundSchema.parse(JSON.parse(x)),
|
|
2252
|
+
`Failed to parse 'PostV2ProxyCompletionsAndExists' from JSON`,
|
|
2253
|
+
);
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
/** @internal */
|
|
2257
|
+
export const PostV2ProxyCompletionsAndProxyNin$inboundSchema: z.ZodType<
|
|
2258
|
+
PostV2ProxyCompletionsAndProxyNin,
|
|
2259
|
+
z.ZodTypeDef,
|
|
2260
|
+
unknown
|
|
2261
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2262
|
+
|
|
2263
|
+
/** @internal */
|
|
2264
|
+
export type PostV2ProxyCompletionsAndProxyNin$Outbound =
|
|
2265
|
+
| string
|
|
2266
|
+
| number
|
|
2267
|
+
| boolean;
|
|
2268
|
+
|
|
2269
|
+
/** @internal */
|
|
2270
|
+
export const PostV2ProxyCompletionsAndProxyNin$outboundSchema: z.ZodType<
|
|
2271
|
+
PostV2ProxyCompletionsAndProxyNin$Outbound,
|
|
2272
|
+
z.ZodTypeDef,
|
|
2273
|
+
PostV2ProxyCompletionsAndProxyNin
|
|
2274
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2275
|
+
|
|
2276
|
+
/**
|
|
2277
|
+
* @internal
|
|
2278
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2279
|
+
*/
|
|
2280
|
+
export namespace PostV2ProxyCompletionsAndProxyNin$ {
|
|
2281
|
+
/** @deprecated use `PostV2ProxyCompletionsAndProxyNin$inboundSchema` instead. */
|
|
2282
|
+
export const inboundSchema = PostV2ProxyCompletionsAndProxyNin$inboundSchema;
|
|
2283
|
+
/** @deprecated use `PostV2ProxyCompletionsAndProxyNin$outboundSchema` instead. */
|
|
2284
|
+
export const outboundSchema =
|
|
2285
|
+
PostV2ProxyCompletionsAndProxyNin$outboundSchema;
|
|
2286
|
+
/** @deprecated use `PostV2ProxyCompletionsAndProxyNin$Outbound` instead. */
|
|
2287
|
+
export type Outbound = PostV2ProxyCompletionsAndProxyNin$Outbound;
|
|
2288
|
+
}
|
|
2289
|
+
|
|
2290
|
+
export function postV2ProxyCompletionsAndProxyNinToJSON(
|
|
2291
|
+
postV2ProxyCompletionsAndProxyNin: PostV2ProxyCompletionsAndProxyNin,
|
|
2292
|
+
): string {
|
|
2293
|
+
return JSON.stringify(
|
|
2294
|
+
PostV2ProxyCompletionsAndProxyNin$outboundSchema.parse(
|
|
2295
|
+
postV2ProxyCompletionsAndProxyNin,
|
|
2296
|
+
),
|
|
2297
|
+
);
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
export function postV2ProxyCompletionsAndProxyNinFromJSON(
|
|
2301
|
+
jsonString: string,
|
|
2302
|
+
): SafeParseResult<PostV2ProxyCompletionsAndProxyNin, SDKValidationError> {
|
|
2303
|
+
return safeParse(
|
|
2304
|
+
jsonString,
|
|
2305
|
+
(x) => PostV2ProxyCompletionsAndProxyNin$inboundSchema.parse(JSON.parse(x)),
|
|
2306
|
+
`Failed to parse 'PostV2ProxyCompletionsAndProxyNin' from JSON`,
|
|
2307
|
+
);
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
/** @internal */
|
|
2311
|
+
export const PostV2ProxyCompletionsAndNin$inboundSchema: z.ZodType<
|
|
2312
|
+
PostV2ProxyCompletionsAndNin,
|
|
2313
|
+
z.ZodTypeDef,
|
|
2314
|
+
unknown
|
|
2315
|
+
> = z.object({
|
|
2316
|
+
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
2317
|
+
});
|
|
2318
|
+
|
|
2319
|
+
/** @internal */
|
|
2320
|
+
export type PostV2ProxyCompletionsAndNin$Outbound = {
|
|
2321
|
+
nin: Array<string | number | boolean>;
|
|
2322
|
+
};
|
|
2323
|
+
|
|
2324
|
+
/** @internal */
|
|
2325
|
+
export const PostV2ProxyCompletionsAndNin$outboundSchema: z.ZodType<
|
|
2326
|
+
PostV2ProxyCompletionsAndNin$Outbound,
|
|
2327
|
+
z.ZodTypeDef,
|
|
2328
|
+
PostV2ProxyCompletionsAndNin
|
|
2329
|
+
> = z.object({
|
|
2330
|
+
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
2331
|
+
});
|
|
2332
|
+
|
|
2333
|
+
/**
|
|
2334
|
+
* @internal
|
|
2335
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2336
|
+
*/
|
|
2337
|
+
export namespace PostV2ProxyCompletionsAndNin$ {
|
|
2338
|
+
/** @deprecated use `PostV2ProxyCompletionsAndNin$inboundSchema` instead. */
|
|
2339
|
+
export const inboundSchema = PostV2ProxyCompletionsAndNin$inboundSchema;
|
|
2340
|
+
/** @deprecated use `PostV2ProxyCompletionsAndNin$outboundSchema` instead. */
|
|
2341
|
+
export const outboundSchema = PostV2ProxyCompletionsAndNin$outboundSchema;
|
|
2342
|
+
/** @deprecated use `PostV2ProxyCompletionsAndNin$Outbound` instead. */
|
|
2343
|
+
export type Outbound = PostV2ProxyCompletionsAndNin$Outbound;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
export function postV2ProxyCompletionsAndNinToJSON(
|
|
2347
|
+
postV2ProxyCompletionsAndNin: PostV2ProxyCompletionsAndNin,
|
|
2348
|
+
): string {
|
|
2349
|
+
return JSON.stringify(
|
|
2350
|
+
PostV2ProxyCompletionsAndNin$outboundSchema.parse(
|
|
2351
|
+
postV2ProxyCompletionsAndNin,
|
|
2352
|
+
),
|
|
2353
|
+
);
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
export function postV2ProxyCompletionsAndNinFromJSON(
|
|
2357
|
+
jsonString: string,
|
|
2358
|
+
): SafeParseResult<PostV2ProxyCompletionsAndNin, SDKValidationError> {
|
|
2359
|
+
return safeParse(
|
|
2360
|
+
jsonString,
|
|
2361
|
+
(x) => PostV2ProxyCompletionsAndNin$inboundSchema.parse(JSON.parse(x)),
|
|
2362
|
+
`Failed to parse 'PostV2ProxyCompletionsAndNin' from JSON`,
|
|
2363
|
+
);
|
|
2364
|
+
}
|
|
2365
|
+
|
|
2366
|
+
/** @internal */
|
|
2367
|
+
export const PostV2ProxyCompletionsAndProxyIn$inboundSchema: z.ZodType<
|
|
2368
|
+
PostV2ProxyCompletionsAndProxyIn,
|
|
2369
|
+
z.ZodTypeDef,
|
|
2370
|
+
unknown
|
|
2371
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2372
|
+
|
|
2373
|
+
/** @internal */
|
|
2374
|
+
export type PostV2ProxyCompletionsAndProxyIn$Outbound =
|
|
2375
|
+
| string
|
|
2376
|
+
| number
|
|
2377
|
+
| boolean;
|
|
2378
|
+
|
|
2379
|
+
/** @internal */
|
|
2380
|
+
export const PostV2ProxyCompletionsAndProxyIn$outboundSchema: z.ZodType<
|
|
2381
|
+
PostV2ProxyCompletionsAndProxyIn$Outbound,
|
|
2382
|
+
z.ZodTypeDef,
|
|
2383
|
+
PostV2ProxyCompletionsAndProxyIn
|
|
2384
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2385
|
+
|
|
2386
|
+
/**
|
|
2387
|
+
* @internal
|
|
2388
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2389
|
+
*/
|
|
2390
|
+
export namespace PostV2ProxyCompletionsAndProxyIn$ {
|
|
2391
|
+
/** @deprecated use `PostV2ProxyCompletionsAndProxyIn$inboundSchema` instead. */
|
|
2392
|
+
export const inboundSchema = PostV2ProxyCompletionsAndProxyIn$inboundSchema;
|
|
2393
|
+
/** @deprecated use `PostV2ProxyCompletionsAndProxyIn$outboundSchema` instead. */
|
|
2394
|
+
export const outboundSchema = PostV2ProxyCompletionsAndProxyIn$outboundSchema;
|
|
2395
|
+
/** @deprecated use `PostV2ProxyCompletionsAndProxyIn$Outbound` instead. */
|
|
2396
|
+
export type Outbound = PostV2ProxyCompletionsAndProxyIn$Outbound;
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
export function postV2ProxyCompletionsAndProxyInToJSON(
|
|
2400
|
+
postV2ProxyCompletionsAndProxyIn: PostV2ProxyCompletionsAndProxyIn,
|
|
2401
|
+
): string {
|
|
2402
|
+
return JSON.stringify(
|
|
2403
|
+
PostV2ProxyCompletionsAndProxyIn$outboundSchema.parse(
|
|
2404
|
+
postV2ProxyCompletionsAndProxyIn,
|
|
2405
|
+
),
|
|
2406
|
+
);
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
export function postV2ProxyCompletionsAndProxyInFromJSON(
|
|
2410
|
+
jsonString: string,
|
|
2411
|
+
): SafeParseResult<PostV2ProxyCompletionsAndProxyIn, SDKValidationError> {
|
|
2412
|
+
return safeParse(
|
|
2413
|
+
jsonString,
|
|
2414
|
+
(x) => PostV2ProxyCompletionsAndProxyIn$inboundSchema.parse(JSON.parse(x)),
|
|
2415
|
+
`Failed to parse 'PostV2ProxyCompletionsAndProxyIn' from JSON`,
|
|
2416
|
+
);
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
/** @internal */
|
|
2420
|
+
export const PostV2ProxyCompletionsAndIn$inboundSchema: z.ZodType<
|
|
2421
|
+
PostV2ProxyCompletionsAndIn,
|
|
2422
|
+
z.ZodTypeDef,
|
|
2423
|
+
unknown
|
|
2424
|
+
> = z.object({
|
|
2425
|
+
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
2426
|
+
});
|
|
2427
|
+
|
|
2428
|
+
/** @internal */
|
|
2429
|
+
export type PostV2ProxyCompletionsAndIn$Outbound = {
|
|
2430
|
+
in: Array<string | number | boolean>;
|
|
2431
|
+
};
|
|
2432
|
+
|
|
2433
|
+
/** @internal */
|
|
2434
|
+
export const PostV2ProxyCompletionsAndIn$outboundSchema: z.ZodType<
|
|
2435
|
+
PostV2ProxyCompletionsAndIn$Outbound,
|
|
2436
|
+
z.ZodTypeDef,
|
|
2437
|
+
PostV2ProxyCompletionsAndIn
|
|
2438
|
+
> = z.object({
|
|
2439
|
+
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
2440
|
+
});
|
|
2441
|
+
|
|
2442
|
+
/**
|
|
2443
|
+
* @internal
|
|
2444
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2445
|
+
*/
|
|
2446
|
+
export namespace PostV2ProxyCompletionsAndIn$ {
|
|
2447
|
+
/** @deprecated use `PostV2ProxyCompletionsAndIn$inboundSchema` instead. */
|
|
2448
|
+
export const inboundSchema = PostV2ProxyCompletionsAndIn$inboundSchema;
|
|
2449
|
+
/** @deprecated use `PostV2ProxyCompletionsAndIn$outboundSchema` instead. */
|
|
2450
|
+
export const outboundSchema = PostV2ProxyCompletionsAndIn$outboundSchema;
|
|
2451
|
+
/** @deprecated use `PostV2ProxyCompletionsAndIn$Outbound` instead. */
|
|
2452
|
+
export type Outbound = PostV2ProxyCompletionsAndIn$Outbound;
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
export function postV2ProxyCompletionsAndInToJSON(
|
|
2456
|
+
postV2ProxyCompletionsAndIn: PostV2ProxyCompletionsAndIn,
|
|
2457
|
+
): string {
|
|
2458
|
+
return JSON.stringify(
|
|
2459
|
+
PostV2ProxyCompletionsAndIn$outboundSchema.parse(
|
|
2460
|
+
postV2ProxyCompletionsAndIn,
|
|
2461
|
+
),
|
|
2462
|
+
);
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
export function postV2ProxyCompletionsAndInFromJSON(
|
|
2466
|
+
jsonString: string,
|
|
2467
|
+
): SafeParseResult<PostV2ProxyCompletionsAndIn, SDKValidationError> {
|
|
2468
|
+
return safeParse(
|
|
2469
|
+
jsonString,
|
|
2470
|
+
(x) => PostV2ProxyCompletionsAndIn$inboundSchema.parse(JSON.parse(x)),
|
|
2471
|
+
`Failed to parse 'PostV2ProxyCompletionsAndIn' from JSON`,
|
|
2472
|
+
);
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
/** @internal */
|
|
2476
|
+
export const PostV2ProxyCompletionsAndLte$inboundSchema: z.ZodType<
|
|
2477
|
+
PostV2ProxyCompletionsAndLte,
|
|
2478
|
+
z.ZodTypeDef,
|
|
2479
|
+
unknown
|
|
2480
|
+
> = z.object({
|
|
2481
|
+
lte: z.number(),
|
|
2482
|
+
});
|
|
2483
|
+
|
|
2484
|
+
/** @internal */
|
|
2485
|
+
export type PostV2ProxyCompletionsAndLte$Outbound = {
|
|
2486
|
+
lte: number;
|
|
2487
|
+
};
|
|
2488
|
+
|
|
2489
|
+
/** @internal */
|
|
2490
|
+
export const PostV2ProxyCompletionsAndLte$outboundSchema: z.ZodType<
|
|
2491
|
+
PostV2ProxyCompletionsAndLte$Outbound,
|
|
2492
|
+
z.ZodTypeDef,
|
|
2493
|
+
PostV2ProxyCompletionsAndLte
|
|
2494
|
+
> = z.object({
|
|
2495
|
+
lte: z.number(),
|
|
2496
|
+
});
|
|
2497
|
+
|
|
2498
|
+
/**
|
|
2499
|
+
* @internal
|
|
2500
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2501
|
+
*/
|
|
2502
|
+
export namespace PostV2ProxyCompletionsAndLte$ {
|
|
2503
|
+
/** @deprecated use `PostV2ProxyCompletionsAndLte$inboundSchema` instead. */
|
|
2504
|
+
export const inboundSchema = PostV2ProxyCompletionsAndLte$inboundSchema;
|
|
2505
|
+
/** @deprecated use `PostV2ProxyCompletionsAndLte$outboundSchema` instead. */
|
|
2506
|
+
export const outboundSchema = PostV2ProxyCompletionsAndLte$outboundSchema;
|
|
2507
|
+
/** @deprecated use `PostV2ProxyCompletionsAndLte$Outbound` instead. */
|
|
2508
|
+
export type Outbound = PostV2ProxyCompletionsAndLte$Outbound;
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
export function postV2ProxyCompletionsAndLteToJSON(
|
|
2512
|
+
postV2ProxyCompletionsAndLte: PostV2ProxyCompletionsAndLte,
|
|
2513
|
+
): string {
|
|
2514
|
+
return JSON.stringify(
|
|
2515
|
+
PostV2ProxyCompletionsAndLte$outboundSchema.parse(
|
|
2516
|
+
postV2ProxyCompletionsAndLte,
|
|
2517
|
+
),
|
|
2518
|
+
);
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
export function postV2ProxyCompletionsAndLteFromJSON(
|
|
2522
|
+
jsonString: string,
|
|
2523
|
+
): SafeParseResult<PostV2ProxyCompletionsAndLte, SDKValidationError> {
|
|
2524
|
+
return safeParse(
|
|
2525
|
+
jsonString,
|
|
2526
|
+
(x) => PostV2ProxyCompletionsAndLte$inboundSchema.parse(JSON.parse(x)),
|
|
2527
|
+
`Failed to parse 'PostV2ProxyCompletionsAndLte' from JSON`,
|
|
2528
|
+
);
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
/** @internal */
|
|
2532
|
+
export const PostV2ProxyCompletionsAndLt$inboundSchema: z.ZodType<
|
|
2533
|
+
PostV2ProxyCompletionsAndLt,
|
|
2534
|
+
z.ZodTypeDef,
|
|
2535
|
+
unknown
|
|
2536
|
+
> = z.object({
|
|
2537
|
+
lt: z.number(),
|
|
2538
|
+
});
|
|
2539
|
+
|
|
2540
|
+
/** @internal */
|
|
2541
|
+
export type PostV2ProxyCompletionsAndLt$Outbound = {
|
|
2542
|
+
lt: number;
|
|
2543
|
+
};
|
|
2544
|
+
|
|
2545
|
+
/** @internal */
|
|
2546
|
+
export const PostV2ProxyCompletionsAndLt$outboundSchema: z.ZodType<
|
|
2547
|
+
PostV2ProxyCompletionsAndLt$Outbound,
|
|
2548
|
+
z.ZodTypeDef,
|
|
2549
|
+
PostV2ProxyCompletionsAndLt
|
|
2550
|
+
> = z.object({
|
|
2551
|
+
lt: z.number(),
|
|
2552
|
+
});
|
|
2553
|
+
|
|
2554
|
+
/**
|
|
2555
|
+
* @internal
|
|
2556
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2557
|
+
*/
|
|
2558
|
+
export namespace PostV2ProxyCompletionsAndLt$ {
|
|
2559
|
+
/** @deprecated use `PostV2ProxyCompletionsAndLt$inboundSchema` instead. */
|
|
2560
|
+
export const inboundSchema = PostV2ProxyCompletionsAndLt$inboundSchema;
|
|
2561
|
+
/** @deprecated use `PostV2ProxyCompletionsAndLt$outboundSchema` instead. */
|
|
2562
|
+
export const outboundSchema = PostV2ProxyCompletionsAndLt$outboundSchema;
|
|
2563
|
+
/** @deprecated use `PostV2ProxyCompletionsAndLt$Outbound` instead. */
|
|
2564
|
+
export type Outbound = PostV2ProxyCompletionsAndLt$Outbound;
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
export function postV2ProxyCompletionsAndLtToJSON(
|
|
2568
|
+
postV2ProxyCompletionsAndLt: PostV2ProxyCompletionsAndLt,
|
|
2569
|
+
): string {
|
|
2570
|
+
return JSON.stringify(
|
|
2571
|
+
PostV2ProxyCompletionsAndLt$outboundSchema.parse(
|
|
2572
|
+
postV2ProxyCompletionsAndLt,
|
|
2573
|
+
),
|
|
2574
|
+
);
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
export function postV2ProxyCompletionsAndLtFromJSON(
|
|
2578
|
+
jsonString: string,
|
|
2579
|
+
): SafeParseResult<PostV2ProxyCompletionsAndLt, SDKValidationError> {
|
|
2580
|
+
return safeParse(
|
|
2581
|
+
jsonString,
|
|
2582
|
+
(x) => PostV2ProxyCompletionsAndLt$inboundSchema.parse(JSON.parse(x)),
|
|
2583
|
+
`Failed to parse 'PostV2ProxyCompletionsAndLt' from JSON`,
|
|
2584
|
+
);
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
/** @internal */
|
|
2588
|
+
export const PostV2ProxyCompletionsAndGte$inboundSchema: z.ZodType<
|
|
2589
|
+
PostV2ProxyCompletionsAndGte,
|
|
2590
|
+
z.ZodTypeDef,
|
|
2591
|
+
unknown
|
|
2592
|
+
> = z.object({
|
|
2593
|
+
gte: z.number(),
|
|
2594
|
+
});
|
|
2595
|
+
|
|
2596
|
+
/** @internal */
|
|
2597
|
+
export type PostV2ProxyCompletionsAndGte$Outbound = {
|
|
2598
|
+
gte: number;
|
|
2599
|
+
};
|
|
2600
|
+
|
|
2601
|
+
/** @internal */
|
|
2602
|
+
export const PostV2ProxyCompletionsAndGte$outboundSchema: z.ZodType<
|
|
2603
|
+
PostV2ProxyCompletionsAndGte$Outbound,
|
|
2604
|
+
z.ZodTypeDef,
|
|
2605
|
+
PostV2ProxyCompletionsAndGte
|
|
2606
|
+
> = z.object({
|
|
2607
|
+
gte: z.number(),
|
|
2608
|
+
});
|
|
2609
|
+
|
|
2610
|
+
/**
|
|
2611
|
+
* @internal
|
|
2612
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2613
|
+
*/
|
|
2614
|
+
export namespace PostV2ProxyCompletionsAndGte$ {
|
|
2615
|
+
/** @deprecated use `PostV2ProxyCompletionsAndGte$inboundSchema` instead. */
|
|
2616
|
+
export const inboundSchema = PostV2ProxyCompletionsAndGte$inboundSchema;
|
|
2617
|
+
/** @deprecated use `PostV2ProxyCompletionsAndGte$outboundSchema` instead. */
|
|
2618
|
+
export const outboundSchema = PostV2ProxyCompletionsAndGte$outboundSchema;
|
|
2619
|
+
/** @deprecated use `PostV2ProxyCompletionsAndGte$Outbound` instead. */
|
|
2620
|
+
export type Outbound = PostV2ProxyCompletionsAndGte$Outbound;
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
export function postV2ProxyCompletionsAndGteToJSON(
|
|
2624
|
+
postV2ProxyCompletionsAndGte: PostV2ProxyCompletionsAndGte,
|
|
2625
|
+
): string {
|
|
2626
|
+
return JSON.stringify(
|
|
2627
|
+
PostV2ProxyCompletionsAndGte$outboundSchema.parse(
|
|
2628
|
+
postV2ProxyCompletionsAndGte,
|
|
2629
|
+
),
|
|
2630
|
+
);
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
export function postV2ProxyCompletionsAndGteFromJSON(
|
|
2634
|
+
jsonString: string,
|
|
2635
|
+
): SafeParseResult<PostV2ProxyCompletionsAndGte, SDKValidationError> {
|
|
2636
|
+
return safeParse(
|
|
2637
|
+
jsonString,
|
|
2638
|
+
(x) => PostV2ProxyCompletionsAndGte$inboundSchema.parse(JSON.parse(x)),
|
|
2639
|
+
`Failed to parse 'PostV2ProxyCompletionsAndGte' from JSON`,
|
|
2640
|
+
);
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
/** @internal */
|
|
2644
|
+
export const PostV2ProxyCompletionsAnd3$inboundSchema: z.ZodType<
|
|
2645
|
+
PostV2ProxyCompletionsAnd3,
|
|
2646
|
+
z.ZodTypeDef,
|
|
2647
|
+
unknown
|
|
2648
|
+
> = z.object({
|
|
2649
|
+
gt: z.number(),
|
|
2650
|
+
});
|
|
2651
|
+
|
|
2652
|
+
/** @internal */
|
|
2653
|
+
export type PostV2ProxyCompletionsAnd3$Outbound = {
|
|
2654
|
+
gt: number;
|
|
2655
|
+
};
|
|
2656
|
+
|
|
2657
|
+
/** @internal */
|
|
2658
|
+
export const PostV2ProxyCompletionsAnd3$outboundSchema: z.ZodType<
|
|
2659
|
+
PostV2ProxyCompletionsAnd3$Outbound,
|
|
2660
|
+
z.ZodTypeDef,
|
|
2661
|
+
PostV2ProxyCompletionsAnd3
|
|
2662
|
+
> = z.object({
|
|
2663
|
+
gt: z.number(),
|
|
2664
|
+
});
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* @internal
|
|
2668
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2669
|
+
*/
|
|
2670
|
+
export namespace PostV2ProxyCompletionsAnd3$ {
|
|
2671
|
+
/** @deprecated use `PostV2ProxyCompletionsAnd3$inboundSchema` instead. */
|
|
2672
|
+
export const inboundSchema = PostV2ProxyCompletionsAnd3$inboundSchema;
|
|
2673
|
+
/** @deprecated use `PostV2ProxyCompletionsAnd3$outboundSchema` instead. */
|
|
2674
|
+
export const outboundSchema = PostV2ProxyCompletionsAnd3$outboundSchema;
|
|
2675
|
+
/** @deprecated use `PostV2ProxyCompletionsAnd3$Outbound` instead. */
|
|
2676
|
+
export type Outbound = PostV2ProxyCompletionsAnd3$Outbound;
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
export function postV2ProxyCompletionsAnd3ToJSON(
|
|
2680
|
+
postV2ProxyCompletionsAnd3: PostV2ProxyCompletionsAnd3,
|
|
2681
|
+
): string {
|
|
2682
|
+
return JSON.stringify(
|
|
2683
|
+
PostV2ProxyCompletionsAnd3$outboundSchema.parse(postV2ProxyCompletionsAnd3),
|
|
2684
|
+
);
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
export function postV2ProxyCompletionsAnd3FromJSON(
|
|
2688
|
+
jsonString: string,
|
|
2689
|
+
): SafeParseResult<PostV2ProxyCompletionsAnd3, SDKValidationError> {
|
|
2690
|
+
return safeParse(
|
|
2691
|
+
jsonString,
|
|
2692
|
+
(x) => PostV2ProxyCompletionsAnd3$inboundSchema.parse(JSON.parse(x)),
|
|
2693
|
+
`Failed to parse 'PostV2ProxyCompletionsAnd3' from JSON`,
|
|
2694
|
+
);
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2697
|
+
/** @internal */
|
|
2698
|
+
export const PostV2ProxyCompletionsAndProxyNe$inboundSchema: z.ZodType<
|
|
2699
|
+
PostV2ProxyCompletionsAndProxyNe,
|
|
2700
|
+
z.ZodTypeDef,
|
|
2701
|
+
unknown
|
|
2702
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2703
|
+
|
|
2704
|
+
/** @internal */
|
|
2705
|
+
export type PostV2ProxyCompletionsAndProxyNe$Outbound =
|
|
2706
|
+
| string
|
|
2707
|
+
| number
|
|
2708
|
+
| boolean;
|
|
2709
|
+
|
|
2710
|
+
/** @internal */
|
|
2711
|
+
export const PostV2ProxyCompletionsAndProxyNe$outboundSchema: z.ZodType<
|
|
2712
|
+
PostV2ProxyCompletionsAndProxyNe$Outbound,
|
|
2713
|
+
z.ZodTypeDef,
|
|
2714
|
+
PostV2ProxyCompletionsAndProxyNe
|
|
2715
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2716
|
+
|
|
2717
|
+
/**
|
|
2718
|
+
* @internal
|
|
2719
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2720
|
+
*/
|
|
2721
|
+
export namespace PostV2ProxyCompletionsAndProxyNe$ {
|
|
2722
|
+
/** @deprecated use `PostV2ProxyCompletionsAndProxyNe$inboundSchema` instead. */
|
|
2723
|
+
export const inboundSchema = PostV2ProxyCompletionsAndProxyNe$inboundSchema;
|
|
2724
|
+
/** @deprecated use `PostV2ProxyCompletionsAndProxyNe$outboundSchema` instead. */
|
|
2725
|
+
export const outboundSchema = PostV2ProxyCompletionsAndProxyNe$outboundSchema;
|
|
2726
|
+
/** @deprecated use `PostV2ProxyCompletionsAndProxyNe$Outbound` instead. */
|
|
2727
|
+
export type Outbound = PostV2ProxyCompletionsAndProxyNe$Outbound;
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
export function postV2ProxyCompletionsAndProxyNeToJSON(
|
|
2731
|
+
postV2ProxyCompletionsAndProxyNe: PostV2ProxyCompletionsAndProxyNe,
|
|
2732
|
+
): string {
|
|
2733
|
+
return JSON.stringify(
|
|
2734
|
+
PostV2ProxyCompletionsAndProxyNe$outboundSchema.parse(
|
|
2735
|
+
postV2ProxyCompletionsAndProxyNe,
|
|
2736
|
+
),
|
|
2737
|
+
);
|
|
2738
|
+
}
|
|
2739
|
+
|
|
2740
|
+
export function postV2ProxyCompletionsAndProxyNeFromJSON(
|
|
2741
|
+
jsonString: string,
|
|
2742
|
+
): SafeParseResult<PostV2ProxyCompletionsAndProxyNe, SDKValidationError> {
|
|
2743
|
+
return safeParse(
|
|
2744
|
+
jsonString,
|
|
2745
|
+
(x) => PostV2ProxyCompletionsAndProxyNe$inboundSchema.parse(JSON.parse(x)),
|
|
2746
|
+
`Failed to parse 'PostV2ProxyCompletionsAndProxyNe' from JSON`,
|
|
2747
|
+
);
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
/** @internal */
|
|
2751
|
+
export const PostV2ProxyCompletionsAndNe$inboundSchema: z.ZodType<
|
|
2752
|
+
PostV2ProxyCompletionsAndNe,
|
|
2753
|
+
z.ZodTypeDef,
|
|
2754
|
+
unknown
|
|
2755
|
+
> = z.object({
|
|
2756
|
+
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
2757
|
+
});
|
|
2758
|
+
|
|
2759
|
+
/** @internal */
|
|
2760
|
+
export type PostV2ProxyCompletionsAndNe$Outbound = {
|
|
2761
|
+
ne: string | number | boolean;
|
|
2762
|
+
};
|
|
2763
|
+
|
|
2764
|
+
/** @internal */
|
|
2765
|
+
export const PostV2ProxyCompletionsAndNe$outboundSchema: z.ZodType<
|
|
2766
|
+
PostV2ProxyCompletionsAndNe$Outbound,
|
|
2767
|
+
z.ZodTypeDef,
|
|
2768
|
+
PostV2ProxyCompletionsAndNe
|
|
2769
|
+
> = z.object({
|
|
2770
|
+
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
2771
|
+
});
|
|
2772
|
+
|
|
2773
|
+
/**
|
|
2774
|
+
* @internal
|
|
2775
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2776
|
+
*/
|
|
2777
|
+
export namespace PostV2ProxyCompletionsAndNe$ {
|
|
2778
|
+
/** @deprecated use `PostV2ProxyCompletionsAndNe$inboundSchema` instead. */
|
|
2779
|
+
export const inboundSchema = PostV2ProxyCompletionsAndNe$inboundSchema;
|
|
2780
|
+
/** @deprecated use `PostV2ProxyCompletionsAndNe$outboundSchema` instead. */
|
|
2781
|
+
export const outboundSchema = PostV2ProxyCompletionsAndNe$outboundSchema;
|
|
2782
|
+
/** @deprecated use `PostV2ProxyCompletionsAndNe$Outbound` instead. */
|
|
2783
|
+
export type Outbound = PostV2ProxyCompletionsAndNe$Outbound;
|
|
2784
|
+
}
|
|
2785
|
+
|
|
2786
|
+
export function postV2ProxyCompletionsAndNeToJSON(
|
|
2787
|
+
postV2ProxyCompletionsAndNe: PostV2ProxyCompletionsAndNe,
|
|
2788
|
+
): string {
|
|
2789
|
+
return JSON.stringify(
|
|
2790
|
+
PostV2ProxyCompletionsAndNe$outboundSchema.parse(
|
|
2791
|
+
postV2ProxyCompletionsAndNe,
|
|
2792
|
+
),
|
|
2793
|
+
);
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2796
|
+
export function postV2ProxyCompletionsAndNeFromJSON(
|
|
2797
|
+
jsonString: string,
|
|
2798
|
+
): SafeParseResult<PostV2ProxyCompletionsAndNe, SDKValidationError> {
|
|
2799
|
+
return safeParse(
|
|
2800
|
+
jsonString,
|
|
2801
|
+
(x) => PostV2ProxyCompletionsAndNe$inboundSchema.parse(JSON.parse(x)),
|
|
2802
|
+
`Failed to parse 'PostV2ProxyCompletionsAndNe' from JSON`,
|
|
2803
|
+
);
|
|
2804
|
+
}
|
|
2805
|
+
|
|
2806
|
+
/** @internal */
|
|
2807
|
+
export const PostV2ProxyCompletionsAndProxyEq$inboundSchema: z.ZodType<
|
|
2808
|
+
PostV2ProxyCompletionsAndProxyEq,
|
|
2809
|
+
z.ZodTypeDef,
|
|
2810
|
+
unknown
|
|
2811
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2812
|
+
|
|
2813
|
+
/** @internal */
|
|
2814
|
+
export type PostV2ProxyCompletionsAndProxyEq$Outbound =
|
|
2815
|
+
| string
|
|
2816
|
+
| number
|
|
2817
|
+
| boolean;
|
|
2818
|
+
|
|
2819
|
+
/** @internal */
|
|
2820
|
+
export const PostV2ProxyCompletionsAndProxyEq$outboundSchema: z.ZodType<
|
|
2821
|
+
PostV2ProxyCompletionsAndProxyEq$Outbound,
|
|
2822
|
+
z.ZodTypeDef,
|
|
2823
|
+
PostV2ProxyCompletionsAndProxyEq
|
|
2824
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* @internal
|
|
2828
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2829
|
+
*/
|
|
2830
|
+
export namespace PostV2ProxyCompletionsAndProxyEq$ {
|
|
2831
|
+
/** @deprecated use `PostV2ProxyCompletionsAndProxyEq$inboundSchema` instead. */
|
|
2832
|
+
export const inboundSchema = PostV2ProxyCompletionsAndProxyEq$inboundSchema;
|
|
2833
|
+
/** @deprecated use `PostV2ProxyCompletionsAndProxyEq$outboundSchema` instead. */
|
|
2834
|
+
export const outboundSchema = PostV2ProxyCompletionsAndProxyEq$outboundSchema;
|
|
2835
|
+
/** @deprecated use `PostV2ProxyCompletionsAndProxyEq$Outbound` instead. */
|
|
2836
|
+
export type Outbound = PostV2ProxyCompletionsAndProxyEq$Outbound;
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
export function postV2ProxyCompletionsAndProxyEqToJSON(
|
|
2840
|
+
postV2ProxyCompletionsAndProxyEq: PostV2ProxyCompletionsAndProxyEq,
|
|
2841
|
+
): string {
|
|
2842
|
+
return JSON.stringify(
|
|
2843
|
+
PostV2ProxyCompletionsAndProxyEq$outboundSchema.parse(
|
|
2844
|
+
postV2ProxyCompletionsAndProxyEq,
|
|
2845
|
+
),
|
|
2846
|
+
);
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
export function postV2ProxyCompletionsAndProxyEqFromJSON(
|
|
2850
|
+
jsonString: string,
|
|
2851
|
+
): SafeParseResult<PostV2ProxyCompletionsAndProxyEq, SDKValidationError> {
|
|
2852
|
+
return safeParse(
|
|
2853
|
+
jsonString,
|
|
2854
|
+
(x) => PostV2ProxyCompletionsAndProxyEq$inboundSchema.parse(JSON.parse(x)),
|
|
2855
|
+
`Failed to parse 'PostV2ProxyCompletionsAndProxyEq' from JSON`,
|
|
2856
|
+
);
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
/** @internal */
|
|
2860
|
+
export const PostV2ProxyCompletionsAndEq$inboundSchema: z.ZodType<
|
|
2861
|
+
PostV2ProxyCompletionsAndEq,
|
|
2862
|
+
z.ZodTypeDef,
|
|
2863
|
+
unknown
|
|
2864
|
+
> = z.object({
|
|
2865
|
+
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
2866
|
+
});
|
|
2867
|
+
|
|
2868
|
+
/** @internal */
|
|
2869
|
+
export type PostV2ProxyCompletionsAndEq$Outbound = {
|
|
2870
|
+
eq: string | number | boolean;
|
|
2871
|
+
};
|
|
2872
|
+
|
|
2873
|
+
/** @internal */
|
|
2874
|
+
export const PostV2ProxyCompletionsAndEq$outboundSchema: z.ZodType<
|
|
2875
|
+
PostV2ProxyCompletionsAndEq$Outbound,
|
|
2876
|
+
z.ZodTypeDef,
|
|
2877
|
+
PostV2ProxyCompletionsAndEq
|
|
2878
|
+
> = z.object({
|
|
2879
|
+
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
2880
|
+
});
|
|
2881
|
+
|
|
2882
|
+
/**
|
|
2883
|
+
* @internal
|
|
2884
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2885
|
+
*/
|
|
2886
|
+
export namespace PostV2ProxyCompletionsAndEq$ {
|
|
2887
|
+
/** @deprecated use `PostV2ProxyCompletionsAndEq$inboundSchema` instead. */
|
|
2888
|
+
export const inboundSchema = PostV2ProxyCompletionsAndEq$inboundSchema;
|
|
2889
|
+
/** @deprecated use `PostV2ProxyCompletionsAndEq$outboundSchema` instead. */
|
|
2890
|
+
export const outboundSchema = PostV2ProxyCompletionsAndEq$outboundSchema;
|
|
2891
|
+
/** @deprecated use `PostV2ProxyCompletionsAndEq$Outbound` instead. */
|
|
2892
|
+
export type Outbound = PostV2ProxyCompletionsAndEq$Outbound;
|
|
2893
|
+
}
|
|
2894
|
+
|
|
2895
|
+
export function postV2ProxyCompletionsAndEqToJSON(
|
|
2896
|
+
postV2ProxyCompletionsAndEq: PostV2ProxyCompletionsAndEq,
|
|
2897
|
+
): string {
|
|
2898
|
+
return JSON.stringify(
|
|
2899
|
+
PostV2ProxyCompletionsAndEq$outboundSchema.parse(
|
|
2900
|
+
postV2ProxyCompletionsAndEq,
|
|
2901
|
+
),
|
|
2902
|
+
);
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
export function postV2ProxyCompletionsAndEqFromJSON(
|
|
2906
|
+
jsonString: string,
|
|
2907
|
+
): SafeParseResult<PostV2ProxyCompletionsAndEq, SDKValidationError> {
|
|
2908
|
+
return safeParse(
|
|
2909
|
+
jsonString,
|
|
2910
|
+
(x) => PostV2ProxyCompletionsAndEq$inboundSchema.parse(JSON.parse(x)),
|
|
2911
|
+
`Failed to parse 'PostV2ProxyCompletionsAndEq' from JSON`,
|
|
2912
|
+
);
|
|
2913
|
+
}
|
|
2914
|
+
|
|
2915
|
+
/** @internal */
|
|
2916
|
+
export const PostV2ProxyCompletionsFilterByProxyAnd$inboundSchema: z.ZodType<
|
|
2917
|
+
PostV2ProxyCompletionsFilterByProxyAnd,
|
|
2918
|
+
z.ZodTypeDef,
|
|
2919
|
+
unknown
|
|
2920
|
+
> = z.union([
|
|
2921
|
+
z.lazy(() => PostV2ProxyCompletionsAndEq$inboundSchema),
|
|
2922
|
+
z.lazy(() => PostV2ProxyCompletionsAndNe$inboundSchema),
|
|
2923
|
+
z.lazy(() => PostV2ProxyCompletionsAnd3$inboundSchema),
|
|
2924
|
+
z.lazy(() => PostV2ProxyCompletionsAndGte$inboundSchema),
|
|
2925
|
+
z.lazy(() => PostV2ProxyCompletionsAndLt$inboundSchema),
|
|
2926
|
+
z.lazy(() => PostV2ProxyCompletionsAndLte$inboundSchema),
|
|
2927
|
+
z.lazy(() => PostV2ProxyCompletionsAndIn$inboundSchema),
|
|
2928
|
+
z.lazy(() => PostV2ProxyCompletionsAndNin$inboundSchema),
|
|
2929
|
+
z.lazy(() => PostV2ProxyCompletionsAndExists$inboundSchema),
|
|
2930
|
+
]);
|
|
2931
|
+
|
|
2932
|
+
/** @internal */
|
|
2933
|
+
export type PostV2ProxyCompletionsFilterByProxyAnd$Outbound =
|
|
2934
|
+
| PostV2ProxyCompletionsAndEq$Outbound
|
|
2935
|
+
| PostV2ProxyCompletionsAndNe$Outbound
|
|
2936
|
+
| PostV2ProxyCompletionsAnd3$Outbound
|
|
2937
|
+
| PostV2ProxyCompletionsAndGte$Outbound
|
|
2938
|
+
| PostV2ProxyCompletionsAndLt$Outbound
|
|
2939
|
+
| PostV2ProxyCompletionsAndLte$Outbound
|
|
2940
|
+
| PostV2ProxyCompletionsAndIn$Outbound
|
|
2941
|
+
| PostV2ProxyCompletionsAndNin$Outbound
|
|
2942
|
+
| PostV2ProxyCompletionsAndExists$Outbound;
|
|
2943
|
+
|
|
2944
|
+
/** @internal */
|
|
2945
|
+
export const PostV2ProxyCompletionsFilterByProxyAnd$outboundSchema: z.ZodType<
|
|
2946
|
+
PostV2ProxyCompletionsFilterByProxyAnd$Outbound,
|
|
2947
|
+
z.ZodTypeDef,
|
|
2948
|
+
PostV2ProxyCompletionsFilterByProxyAnd
|
|
2949
|
+
> = z.union([
|
|
2950
|
+
z.lazy(() => PostV2ProxyCompletionsAndEq$outboundSchema),
|
|
2951
|
+
z.lazy(() => PostV2ProxyCompletionsAndNe$outboundSchema),
|
|
2952
|
+
z.lazy(() => PostV2ProxyCompletionsAnd3$outboundSchema),
|
|
2953
|
+
z.lazy(() => PostV2ProxyCompletionsAndGte$outboundSchema),
|
|
2954
|
+
z.lazy(() => PostV2ProxyCompletionsAndLt$outboundSchema),
|
|
2955
|
+
z.lazy(() => PostV2ProxyCompletionsAndLte$outboundSchema),
|
|
2956
|
+
z.lazy(() => PostV2ProxyCompletionsAndIn$outboundSchema),
|
|
2957
|
+
z.lazy(() => PostV2ProxyCompletionsAndNin$outboundSchema),
|
|
2958
|
+
z.lazy(() => PostV2ProxyCompletionsAndExists$outboundSchema),
|
|
2959
|
+
]);
|
|
2960
|
+
|
|
2961
|
+
/**
|
|
2962
|
+
* @internal
|
|
2963
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2964
|
+
*/
|
|
2965
|
+
export namespace PostV2ProxyCompletionsFilterByProxyAnd$ {
|
|
2966
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterByProxyAnd$inboundSchema` instead. */
|
|
2967
|
+
export const inboundSchema =
|
|
2968
|
+
PostV2ProxyCompletionsFilterByProxyAnd$inboundSchema;
|
|
2969
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterByProxyAnd$outboundSchema` instead. */
|
|
2970
|
+
export const outboundSchema =
|
|
2971
|
+
PostV2ProxyCompletionsFilterByProxyAnd$outboundSchema;
|
|
2972
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterByProxyAnd$Outbound` instead. */
|
|
2973
|
+
export type Outbound = PostV2ProxyCompletionsFilterByProxyAnd$Outbound;
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
export function postV2ProxyCompletionsFilterByProxyAndToJSON(
|
|
2977
|
+
postV2ProxyCompletionsFilterByProxyAnd:
|
|
2978
|
+
PostV2ProxyCompletionsFilterByProxyAnd,
|
|
2979
|
+
): string {
|
|
2980
|
+
return JSON.stringify(
|
|
2981
|
+
PostV2ProxyCompletionsFilterByProxyAnd$outboundSchema.parse(
|
|
2982
|
+
postV2ProxyCompletionsFilterByProxyAnd,
|
|
2983
|
+
),
|
|
2984
|
+
);
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2987
|
+
export function postV2ProxyCompletionsFilterByProxyAndFromJSON(
|
|
2988
|
+
jsonString: string,
|
|
2989
|
+
): SafeParseResult<PostV2ProxyCompletionsFilterByProxyAnd, SDKValidationError> {
|
|
2990
|
+
return safeParse(
|
|
2991
|
+
jsonString,
|
|
2992
|
+
(x) =>
|
|
2993
|
+
PostV2ProxyCompletionsFilterByProxyAnd$inboundSchema.parse(JSON.parse(x)),
|
|
2994
|
+
`Failed to parse 'PostV2ProxyCompletionsFilterByProxyAnd' from JSON`,
|
|
2995
|
+
);
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
/** @internal */
|
|
2999
|
+
export const PostV2ProxyCompletionsFilterByAnd$inboundSchema: z.ZodType<
|
|
3000
|
+
PostV2ProxyCompletionsFilterByAnd,
|
|
3001
|
+
z.ZodTypeDef,
|
|
3002
|
+
unknown
|
|
3003
|
+
> = z.object({
|
|
3004
|
+
and: z.array(
|
|
3005
|
+
z.record(z.union([
|
|
3006
|
+
z.lazy(() => PostV2ProxyCompletionsAndEq$inboundSchema),
|
|
3007
|
+
z.lazy(() =>
|
|
3008
|
+
PostV2ProxyCompletionsAndNe$inboundSchema
|
|
3009
|
+
),
|
|
3010
|
+
z.lazy(() => PostV2ProxyCompletionsAnd3$inboundSchema),
|
|
3011
|
+
z.lazy(() => PostV2ProxyCompletionsAndGte$inboundSchema),
|
|
3012
|
+
z.lazy(() => PostV2ProxyCompletionsAndLt$inboundSchema),
|
|
3013
|
+
z.lazy(() => PostV2ProxyCompletionsAndLte$inboundSchema),
|
|
3014
|
+
z.lazy(() => PostV2ProxyCompletionsAndIn$inboundSchema),
|
|
3015
|
+
z.lazy(() => PostV2ProxyCompletionsAndNin$inboundSchema),
|
|
3016
|
+
z.lazy(() => PostV2ProxyCompletionsAndExists$inboundSchema),
|
|
3017
|
+
])),
|
|
3018
|
+
),
|
|
3019
|
+
});
|
|
3020
|
+
|
|
3021
|
+
/** @internal */
|
|
3022
|
+
export type PostV2ProxyCompletionsFilterByAnd$Outbound = {
|
|
3023
|
+
and: Array<
|
|
3024
|
+
{
|
|
3025
|
+
[k: string]:
|
|
3026
|
+
| PostV2ProxyCompletionsAndEq$Outbound
|
|
3027
|
+
| PostV2ProxyCompletionsAndNe$Outbound
|
|
3028
|
+
| PostV2ProxyCompletionsAnd3$Outbound
|
|
3029
|
+
| PostV2ProxyCompletionsAndGte$Outbound
|
|
3030
|
+
| PostV2ProxyCompletionsAndLt$Outbound
|
|
3031
|
+
| PostV2ProxyCompletionsAndLte$Outbound
|
|
3032
|
+
| PostV2ProxyCompletionsAndIn$Outbound
|
|
3033
|
+
| PostV2ProxyCompletionsAndNin$Outbound
|
|
3034
|
+
| PostV2ProxyCompletionsAndExists$Outbound;
|
|
3035
|
+
}
|
|
3036
|
+
>;
|
|
3037
|
+
};
|
|
3038
|
+
|
|
3039
|
+
/** @internal */
|
|
3040
|
+
export const PostV2ProxyCompletionsFilterByAnd$outboundSchema: z.ZodType<
|
|
3041
|
+
PostV2ProxyCompletionsFilterByAnd$Outbound,
|
|
3042
|
+
z.ZodTypeDef,
|
|
3043
|
+
PostV2ProxyCompletionsFilterByAnd
|
|
3044
|
+
> = z.object({
|
|
3045
|
+
and: z.array(
|
|
3046
|
+
z.record(z.union([
|
|
3047
|
+
z.lazy(() => PostV2ProxyCompletionsAndEq$outboundSchema),
|
|
3048
|
+
z.lazy(() =>
|
|
3049
|
+
PostV2ProxyCompletionsAndNe$outboundSchema
|
|
3050
|
+
),
|
|
3051
|
+
z.lazy(() => PostV2ProxyCompletionsAnd3$outboundSchema),
|
|
3052
|
+
z.lazy(() => PostV2ProxyCompletionsAndGte$outboundSchema),
|
|
3053
|
+
z.lazy(() => PostV2ProxyCompletionsAndLt$outboundSchema),
|
|
3054
|
+
z.lazy(() => PostV2ProxyCompletionsAndLte$outboundSchema),
|
|
3055
|
+
z.lazy(() => PostV2ProxyCompletionsAndIn$outboundSchema),
|
|
3056
|
+
z.lazy(() => PostV2ProxyCompletionsAndNin$outboundSchema),
|
|
3057
|
+
z.lazy(() => PostV2ProxyCompletionsAndExists$outboundSchema),
|
|
3058
|
+
])),
|
|
3059
|
+
),
|
|
3060
|
+
});
|
|
3061
|
+
|
|
3062
|
+
/**
|
|
3063
|
+
* @internal
|
|
3064
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3065
|
+
*/
|
|
3066
|
+
export namespace PostV2ProxyCompletionsFilterByAnd$ {
|
|
3067
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterByAnd$inboundSchema` instead. */
|
|
3068
|
+
export const inboundSchema = PostV2ProxyCompletionsFilterByAnd$inboundSchema;
|
|
3069
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterByAnd$outboundSchema` instead. */
|
|
3070
|
+
export const outboundSchema =
|
|
3071
|
+
PostV2ProxyCompletionsFilterByAnd$outboundSchema;
|
|
3072
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterByAnd$Outbound` instead. */
|
|
3073
|
+
export type Outbound = PostV2ProxyCompletionsFilterByAnd$Outbound;
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
export function postV2ProxyCompletionsFilterByAndToJSON(
|
|
3077
|
+
postV2ProxyCompletionsFilterByAnd: PostV2ProxyCompletionsFilterByAnd,
|
|
3078
|
+
): string {
|
|
3079
|
+
return JSON.stringify(
|
|
3080
|
+
PostV2ProxyCompletionsFilterByAnd$outboundSchema.parse(
|
|
3081
|
+
postV2ProxyCompletionsFilterByAnd,
|
|
3082
|
+
),
|
|
3083
|
+
);
|
|
3084
|
+
}
|
|
3085
|
+
|
|
3086
|
+
export function postV2ProxyCompletionsFilterByAndFromJSON(
|
|
3087
|
+
jsonString: string,
|
|
3088
|
+
): SafeParseResult<PostV2ProxyCompletionsFilterByAnd, SDKValidationError> {
|
|
3089
|
+
return safeParse(
|
|
3090
|
+
jsonString,
|
|
3091
|
+
(x) => PostV2ProxyCompletionsFilterByAnd$inboundSchema.parse(JSON.parse(x)),
|
|
3092
|
+
`Failed to parse 'PostV2ProxyCompletionsFilterByAnd' from JSON`,
|
|
3093
|
+
);
|
|
3094
|
+
}
|
|
3095
|
+
|
|
3096
|
+
/** @internal */
|
|
3097
|
+
export const PostV2ProxyCompletions1Exists$inboundSchema: z.ZodType<
|
|
3098
|
+
PostV2ProxyCompletions1Exists,
|
|
3099
|
+
z.ZodTypeDef,
|
|
3100
|
+
unknown
|
|
3101
|
+
> = z.object({
|
|
3102
|
+
exists: z.boolean(),
|
|
3103
|
+
});
|
|
3104
|
+
|
|
3105
|
+
/** @internal */
|
|
3106
|
+
export type PostV2ProxyCompletions1Exists$Outbound = {
|
|
3107
|
+
exists: boolean;
|
|
3108
|
+
};
|
|
3109
|
+
|
|
3110
|
+
/** @internal */
|
|
3111
|
+
export const PostV2ProxyCompletions1Exists$outboundSchema: z.ZodType<
|
|
3112
|
+
PostV2ProxyCompletions1Exists$Outbound,
|
|
3113
|
+
z.ZodTypeDef,
|
|
3114
|
+
PostV2ProxyCompletions1Exists
|
|
3115
|
+
> = z.object({
|
|
3116
|
+
exists: z.boolean(),
|
|
3117
|
+
});
|
|
3118
|
+
|
|
3119
|
+
/**
|
|
3120
|
+
* @internal
|
|
3121
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3122
|
+
*/
|
|
3123
|
+
export namespace PostV2ProxyCompletions1Exists$ {
|
|
3124
|
+
/** @deprecated use `PostV2ProxyCompletions1Exists$inboundSchema` instead. */
|
|
3125
|
+
export const inboundSchema = PostV2ProxyCompletions1Exists$inboundSchema;
|
|
3126
|
+
/** @deprecated use `PostV2ProxyCompletions1Exists$outboundSchema` instead. */
|
|
3127
|
+
export const outboundSchema = PostV2ProxyCompletions1Exists$outboundSchema;
|
|
3128
|
+
/** @deprecated use `PostV2ProxyCompletions1Exists$Outbound` instead. */
|
|
3129
|
+
export type Outbound = PostV2ProxyCompletions1Exists$Outbound;
|
|
3130
|
+
}
|
|
3131
|
+
|
|
3132
|
+
export function postV2ProxyCompletions1ExistsToJSON(
|
|
3133
|
+
postV2ProxyCompletions1Exists: PostV2ProxyCompletions1Exists,
|
|
3134
|
+
): string {
|
|
3135
|
+
return JSON.stringify(
|
|
3136
|
+
PostV2ProxyCompletions1Exists$outboundSchema.parse(
|
|
3137
|
+
postV2ProxyCompletions1Exists,
|
|
3138
|
+
),
|
|
3139
|
+
);
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3142
|
+
export function postV2ProxyCompletions1ExistsFromJSON(
|
|
3143
|
+
jsonString: string,
|
|
3144
|
+
): SafeParseResult<PostV2ProxyCompletions1Exists, SDKValidationError> {
|
|
3145
|
+
return safeParse(
|
|
3146
|
+
jsonString,
|
|
3147
|
+
(x) => PostV2ProxyCompletions1Exists$inboundSchema.parse(JSON.parse(x)),
|
|
3148
|
+
`Failed to parse 'PostV2ProxyCompletions1Exists' from JSON`,
|
|
3149
|
+
);
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
/** @internal */
|
|
3153
|
+
export const PostV2ProxyCompletions1ProxyNin$inboundSchema: z.ZodType<
|
|
3154
|
+
PostV2ProxyCompletions1ProxyNin,
|
|
3155
|
+
z.ZodTypeDef,
|
|
3156
|
+
unknown
|
|
3157
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3158
|
+
|
|
3159
|
+
/** @internal */
|
|
3160
|
+
export type PostV2ProxyCompletions1ProxyNin$Outbound =
|
|
3161
|
+
| string
|
|
3162
|
+
| number
|
|
3163
|
+
| boolean;
|
|
3164
|
+
|
|
3165
|
+
/** @internal */
|
|
3166
|
+
export const PostV2ProxyCompletions1ProxyNin$outboundSchema: z.ZodType<
|
|
3167
|
+
PostV2ProxyCompletions1ProxyNin$Outbound,
|
|
3168
|
+
z.ZodTypeDef,
|
|
3169
|
+
PostV2ProxyCompletions1ProxyNin
|
|
3170
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3171
|
+
|
|
3172
|
+
/**
|
|
3173
|
+
* @internal
|
|
3174
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3175
|
+
*/
|
|
3176
|
+
export namespace PostV2ProxyCompletions1ProxyNin$ {
|
|
3177
|
+
/** @deprecated use `PostV2ProxyCompletions1ProxyNin$inboundSchema` instead. */
|
|
3178
|
+
export const inboundSchema = PostV2ProxyCompletions1ProxyNin$inboundSchema;
|
|
3179
|
+
/** @deprecated use `PostV2ProxyCompletions1ProxyNin$outboundSchema` instead. */
|
|
3180
|
+
export const outboundSchema = PostV2ProxyCompletions1ProxyNin$outboundSchema;
|
|
3181
|
+
/** @deprecated use `PostV2ProxyCompletions1ProxyNin$Outbound` instead. */
|
|
3182
|
+
export type Outbound = PostV2ProxyCompletions1ProxyNin$Outbound;
|
|
3183
|
+
}
|
|
3184
|
+
|
|
3185
|
+
export function postV2ProxyCompletions1ProxyNinToJSON(
|
|
3186
|
+
postV2ProxyCompletions1ProxyNin: PostV2ProxyCompletions1ProxyNin,
|
|
3187
|
+
): string {
|
|
3188
|
+
return JSON.stringify(
|
|
3189
|
+
PostV2ProxyCompletions1ProxyNin$outboundSchema.parse(
|
|
3190
|
+
postV2ProxyCompletions1ProxyNin,
|
|
3191
|
+
),
|
|
3192
|
+
);
|
|
3193
|
+
}
|
|
3194
|
+
|
|
3195
|
+
export function postV2ProxyCompletions1ProxyNinFromJSON(
|
|
3196
|
+
jsonString: string,
|
|
3197
|
+
): SafeParseResult<PostV2ProxyCompletions1ProxyNin, SDKValidationError> {
|
|
3198
|
+
return safeParse(
|
|
3199
|
+
jsonString,
|
|
3200
|
+
(x) => PostV2ProxyCompletions1ProxyNin$inboundSchema.parse(JSON.parse(x)),
|
|
3201
|
+
`Failed to parse 'PostV2ProxyCompletions1ProxyNin' from JSON`,
|
|
3202
|
+
);
|
|
3203
|
+
}
|
|
3204
|
+
|
|
3205
|
+
/** @internal */
|
|
3206
|
+
export const PostV2ProxyCompletions1Nin$inboundSchema: z.ZodType<
|
|
3207
|
+
PostV2ProxyCompletions1Nin,
|
|
3208
|
+
z.ZodTypeDef,
|
|
3209
|
+
unknown
|
|
3210
|
+
> = z.object({
|
|
3211
|
+
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3212
|
+
});
|
|
3213
|
+
|
|
3214
|
+
/** @internal */
|
|
3215
|
+
export type PostV2ProxyCompletions1Nin$Outbound = {
|
|
3216
|
+
nin: Array<string | number | boolean>;
|
|
3217
|
+
};
|
|
3218
|
+
|
|
3219
|
+
/** @internal */
|
|
3220
|
+
export const PostV2ProxyCompletions1Nin$outboundSchema: z.ZodType<
|
|
3221
|
+
PostV2ProxyCompletions1Nin$Outbound,
|
|
3222
|
+
z.ZodTypeDef,
|
|
3223
|
+
PostV2ProxyCompletions1Nin
|
|
3224
|
+
> = z.object({
|
|
3225
|
+
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3226
|
+
});
|
|
3227
|
+
|
|
3228
|
+
/**
|
|
3229
|
+
* @internal
|
|
3230
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3231
|
+
*/
|
|
3232
|
+
export namespace PostV2ProxyCompletions1Nin$ {
|
|
3233
|
+
/** @deprecated use `PostV2ProxyCompletions1Nin$inboundSchema` instead. */
|
|
3234
|
+
export const inboundSchema = PostV2ProxyCompletions1Nin$inboundSchema;
|
|
3235
|
+
/** @deprecated use `PostV2ProxyCompletions1Nin$outboundSchema` instead. */
|
|
3236
|
+
export const outboundSchema = PostV2ProxyCompletions1Nin$outboundSchema;
|
|
3237
|
+
/** @deprecated use `PostV2ProxyCompletions1Nin$Outbound` instead. */
|
|
3238
|
+
export type Outbound = PostV2ProxyCompletions1Nin$Outbound;
|
|
3239
|
+
}
|
|
3240
|
+
|
|
3241
|
+
export function postV2ProxyCompletions1NinToJSON(
|
|
3242
|
+
postV2ProxyCompletions1Nin: PostV2ProxyCompletions1Nin,
|
|
3243
|
+
): string {
|
|
3244
|
+
return JSON.stringify(
|
|
3245
|
+
PostV2ProxyCompletions1Nin$outboundSchema.parse(postV2ProxyCompletions1Nin),
|
|
3246
|
+
);
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
export function postV2ProxyCompletions1NinFromJSON(
|
|
3250
|
+
jsonString: string,
|
|
3251
|
+
): SafeParseResult<PostV2ProxyCompletions1Nin, SDKValidationError> {
|
|
3252
|
+
return safeParse(
|
|
3253
|
+
jsonString,
|
|
3254
|
+
(x) => PostV2ProxyCompletions1Nin$inboundSchema.parse(JSON.parse(x)),
|
|
3255
|
+
`Failed to parse 'PostV2ProxyCompletions1Nin' from JSON`,
|
|
3256
|
+
);
|
|
3257
|
+
}
|
|
3258
|
+
|
|
3259
|
+
/** @internal */
|
|
3260
|
+
export const PostV2ProxyCompletions1ProxyIn$inboundSchema: z.ZodType<
|
|
3261
|
+
PostV2ProxyCompletions1ProxyIn,
|
|
3262
|
+
z.ZodTypeDef,
|
|
3263
|
+
unknown
|
|
3264
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3265
|
+
|
|
3266
|
+
/** @internal */
|
|
3267
|
+
export type PostV2ProxyCompletions1ProxyIn$Outbound = string | number | boolean;
|
|
3268
|
+
|
|
3269
|
+
/** @internal */
|
|
3270
|
+
export const PostV2ProxyCompletions1ProxyIn$outboundSchema: z.ZodType<
|
|
3271
|
+
PostV2ProxyCompletions1ProxyIn$Outbound,
|
|
3272
|
+
z.ZodTypeDef,
|
|
3273
|
+
PostV2ProxyCompletions1ProxyIn
|
|
3274
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3275
|
+
|
|
3276
|
+
/**
|
|
3277
|
+
* @internal
|
|
3278
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3279
|
+
*/
|
|
3280
|
+
export namespace PostV2ProxyCompletions1ProxyIn$ {
|
|
3281
|
+
/** @deprecated use `PostV2ProxyCompletions1ProxyIn$inboundSchema` instead. */
|
|
3282
|
+
export const inboundSchema = PostV2ProxyCompletions1ProxyIn$inboundSchema;
|
|
3283
|
+
/** @deprecated use `PostV2ProxyCompletions1ProxyIn$outboundSchema` instead. */
|
|
3284
|
+
export const outboundSchema = PostV2ProxyCompletions1ProxyIn$outboundSchema;
|
|
3285
|
+
/** @deprecated use `PostV2ProxyCompletions1ProxyIn$Outbound` instead. */
|
|
3286
|
+
export type Outbound = PostV2ProxyCompletions1ProxyIn$Outbound;
|
|
3287
|
+
}
|
|
3288
|
+
|
|
3289
|
+
export function postV2ProxyCompletions1ProxyInToJSON(
|
|
3290
|
+
postV2ProxyCompletions1ProxyIn: PostV2ProxyCompletions1ProxyIn,
|
|
3291
|
+
): string {
|
|
3292
|
+
return JSON.stringify(
|
|
3293
|
+
PostV2ProxyCompletions1ProxyIn$outboundSchema.parse(
|
|
3294
|
+
postV2ProxyCompletions1ProxyIn,
|
|
3295
|
+
),
|
|
3296
|
+
);
|
|
3297
|
+
}
|
|
3298
|
+
|
|
3299
|
+
export function postV2ProxyCompletions1ProxyInFromJSON(
|
|
3300
|
+
jsonString: string,
|
|
3301
|
+
): SafeParseResult<PostV2ProxyCompletions1ProxyIn, SDKValidationError> {
|
|
3302
|
+
return safeParse(
|
|
3303
|
+
jsonString,
|
|
3304
|
+
(x) => PostV2ProxyCompletions1ProxyIn$inboundSchema.parse(JSON.parse(x)),
|
|
3305
|
+
`Failed to parse 'PostV2ProxyCompletions1ProxyIn' from JSON`,
|
|
3306
|
+
);
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3309
|
+
/** @internal */
|
|
3310
|
+
export const PostV2ProxyCompletions1In$inboundSchema: z.ZodType<
|
|
3311
|
+
PostV2ProxyCompletions1In,
|
|
3312
|
+
z.ZodTypeDef,
|
|
3313
|
+
unknown
|
|
3314
|
+
> = z.object({
|
|
3315
|
+
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3316
|
+
});
|
|
3317
|
+
|
|
3318
|
+
/** @internal */
|
|
3319
|
+
export type PostV2ProxyCompletions1In$Outbound = {
|
|
3320
|
+
in: Array<string | number | boolean>;
|
|
3321
|
+
};
|
|
3322
|
+
|
|
3323
|
+
/** @internal */
|
|
3324
|
+
export const PostV2ProxyCompletions1In$outboundSchema: z.ZodType<
|
|
3325
|
+
PostV2ProxyCompletions1In$Outbound,
|
|
3326
|
+
z.ZodTypeDef,
|
|
3327
|
+
PostV2ProxyCompletions1In
|
|
3328
|
+
> = z.object({
|
|
3329
|
+
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3330
|
+
});
|
|
3331
|
+
|
|
3332
|
+
/**
|
|
3333
|
+
* @internal
|
|
3334
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3335
|
+
*/
|
|
3336
|
+
export namespace PostV2ProxyCompletions1In$ {
|
|
3337
|
+
/** @deprecated use `PostV2ProxyCompletions1In$inboundSchema` instead. */
|
|
3338
|
+
export const inboundSchema = PostV2ProxyCompletions1In$inboundSchema;
|
|
3339
|
+
/** @deprecated use `PostV2ProxyCompletions1In$outboundSchema` instead. */
|
|
3340
|
+
export const outboundSchema = PostV2ProxyCompletions1In$outboundSchema;
|
|
3341
|
+
/** @deprecated use `PostV2ProxyCompletions1In$Outbound` instead. */
|
|
3342
|
+
export type Outbound = PostV2ProxyCompletions1In$Outbound;
|
|
3343
|
+
}
|
|
3344
|
+
|
|
3345
|
+
export function postV2ProxyCompletions1InToJSON(
|
|
3346
|
+
postV2ProxyCompletions1In: PostV2ProxyCompletions1In,
|
|
3347
|
+
): string {
|
|
3348
|
+
return JSON.stringify(
|
|
3349
|
+
PostV2ProxyCompletions1In$outboundSchema.parse(postV2ProxyCompletions1In),
|
|
3350
|
+
);
|
|
3351
|
+
}
|
|
3352
|
+
|
|
3353
|
+
export function postV2ProxyCompletions1InFromJSON(
|
|
3354
|
+
jsonString: string,
|
|
3355
|
+
): SafeParseResult<PostV2ProxyCompletions1In, SDKValidationError> {
|
|
3356
|
+
return safeParse(
|
|
3357
|
+
jsonString,
|
|
3358
|
+
(x) => PostV2ProxyCompletions1In$inboundSchema.parse(JSON.parse(x)),
|
|
3359
|
+
`Failed to parse 'PostV2ProxyCompletions1In' from JSON`,
|
|
3360
|
+
);
|
|
3361
|
+
}
|
|
3362
|
+
|
|
3363
|
+
/** @internal */
|
|
3364
|
+
export const PostV2ProxyCompletions1Lte$inboundSchema: z.ZodType<
|
|
3365
|
+
PostV2ProxyCompletions1Lte,
|
|
3366
|
+
z.ZodTypeDef,
|
|
3367
|
+
unknown
|
|
3368
|
+
> = z.object({
|
|
3369
|
+
lte: z.number(),
|
|
3370
|
+
});
|
|
3371
|
+
|
|
3372
|
+
/** @internal */
|
|
3373
|
+
export type PostV2ProxyCompletions1Lte$Outbound = {
|
|
3374
|
+
lte: number;
|
|
3375
|
+
};
|
|
3376
|
+
|
|
3377
|
+
/** @internal */
|
|
3378
|
+
export const PostV2ProxyCompletions1Lte$outboundSchema: z.ZodType<
|
|
3379
|
+
PostV2ProxyCompletions1Lte$Outbound,
|
|
3380
|
+
z.ZodTypeDef,
|
|
3381
|
+
PostV2ProxyCompletions1Lte
|
|
3382
|
+
> = z.object({
|
|
3383
|
+
lte: z.number(),
|
|
3384
|
+
});
|
|
3385
|
+
|
|
3386
|
+
/**
|
|
3387
|
+
* @internal
|
|
3388
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3389
|
+
*/
|
|
3390
|
+
export namespace PostV2ProxyCompletions1Lte$ {
|
|
3391
|
+
/** @deprecated use `PostV2ProxyCompletions1Lte$inboundSchema` instead. */
|
|
3392
|
+
export const inboundSchema = PostV2ProxyCompletions1Lte$inboundSchema;
|
|
3393
|
+
/** @deprecated use `PostV2ProxyCompletions1Lte$outboundSchema` instead. */
|
|
3394
|
+
export const outboundSchema = PostV2ProxyCompletions1Lte$outboundSchema;
|
|
3395
|
+
/** @deprecated use `PostV2ProxyCompletions1Lte$Outbound` instead. */
|
|
3396
|
+
export type Outbound = PostV2ProxyCompletions1Lte$Outbound;
|
|
3397
|
+
}
|
|
3398
|
+
|
|
3399
|
+
export function postV2ProxyCompletions1LteToJSON(
|
|
3400
|
+
postV2ProxyCompletions1Lte: PostV2ProxyCompletions1Lte,
|
|
3401
|
+
): string {
|
|
3402
|
+
return JSON.stringify(
|
|
3403
|
+
PostV2ProxyCompletions1Lte$outboundSchema.parse(postV2ProxyCompletions1Lte),
|
|
3404
|
+
);
|
|
3405
|
+
}
|
|
3406
|
+
|
|
3407
|
+
export function postV2ProxyCompletions1LteFromJSON(
|
|
3408
|
+
jsonString: string,
|
|
3409
|
+
): SafeParseResult<PostV2ProxyCompletions1Lte, SDKValidationError> {
|
|
3410
|
+
return safeParse(
|
|
3411
|
+
jsonString,
|
|
3412
|
+
(x) => PostV2ProxyCompletions1Lte$inboundSchema.parse(JSON.parse(x)),
|
|
3413
|
+
`Failed to parse 'PostV2ProxyCompletions1Lte' from JSON`,
|
|
3414
|
+
);
|
|
3415
|
+
}
|
|
3416
|
+
|
|
3417
|
+
/** @internal */
|
|
3418
|
+
export const PostV2ProxyCompletions1Lt$inboundSchema: z.ZodType<
|
|
3419
|
+
PostV2ProxyCompletions1Lt,
|
|
3420
|
+
z.ZodTypeDef,
|
|
3421
|
+
unknown
|
|
3422
|
+
> = z.object({
|
|
3423
|
+
lt: z.number(),
|
|
3424
|
+
});
|
|
3425
|
+
|
|
3426
|
+
/** @internal */
|
|
3427
|
+
export type PostV2ProxyCompletions1Lt$Outbound = {
|
|
3428
|
+
lt: number;
|
|
3429
|
+
};
|
|
3430
|
+
|
|
3431
|
+
/** @internal */
|
|
3432
|
+
export const PostV2ProxyCompletions1Lt$outboundSchema: z.ZodType<
|
|
3433
|
+
PostV2ProxyCompletions1Lt$Outbound,
|
|
3434
|
+
z.ZodTypeDef,
|
|
3435
|
+
PostV2ProxyCompletions1Lt
|
|
3436
|
+
> = z.object({
|
|
3437
|
+
lt: z.number(),
|
|
3438
|
+
});
|
|
3439
|
+
|
|
3440
|
+
/**
|
|
3441
|
+
* @internal
|
|
3442
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3443
|
+
*/
|
|
3444
|
+
export namespace PostV2ProxyCompletions1Lt$ {
|
|
3445
|
+
/** @deprecated use `PostV2ProxyCompletions1Lt$inboundSchema` instead. */
|
|
3446
|
+
export const inboundSchema = PostV2ProxyCompletions1Lt$inboundSchema;
|
|
3447
|
+
/** @deprecated use `PostV2ProxyCompletions1Lt$outboundSchema` instead. */
|
|
3448
|
+
export const outboundSchema = PostV2ProxyCompletions1Lt$outboundSchema;
|
|
3449
|
+
/** @deprecated use `PostV2ProxyCompletions1Lt$Outbound` instead. */
|
|
3450
|
+
export type Outbound = PostV2ProxyCompletions1Lt$Outbound;
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
export function postV2ProxyCompletions1LtToJSON(
|
|
3454
|
+
postV2ProxyCompletions1Lt: PostV2ProxyCompletions1Lt,
|
|
3455
|
+
): string {
|
|
3456
|
+
return JSON.stringify(
|
|
3457
|
+
PostV2ProxyCompletions1Lt$outboundSchema.parse(postV2ProxyCompletions1Lt),
|
|
3458
|
+
);
|
|
3459
|
+
}
|
|
3460
|
+
|
|
3461
|
+
export function postV2ProxyCompletions1LtFromJSON(
|
|
3462
|
+
jsonString: string,
|
|
3463
|
+
): SafeParseResult<PostV2ProxyCompletions1Lt, SDKValidationError> {
|
|
3464
|
+
return safeParse(
|
|
3465
|
+
jsonString,
|
|
3466
|
+
(x) => PostV2ProxyCompletions1Lt$inboundSchema.parse(JSON.parse(x)),
|
|
3467
|
+
`Failed to parse 'PostV2ProxyCompletions1Lt' from JSON`,
|
|
3468
|
+
);
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
/** @internal */
|
|
3472
|
+
export const PostV2ProxyCompletions1Gte$inboundSchema: z.ZodType<
|
|
3473
|
+
PostV2ProxyCompletions1Gte,
|
|
3474
|
+
z.ZodTypeDef,
|
|
3475
|
+
unknown
|
|
3476
|
+
> = z.object({
|
|
3477
|
+
gte: z.number(),
|
|
3478
|
+
});
|
|
3479
|
+
|
|
3480
|
+
/** @internal */
|
|
3481
|
+
export type PostV2ProxyCompletions1Gte$Outbound = {
|
|
3482
|
+
gte: number;
|
|
3483
|
+
};
|
|
3484
|
+
|
|
3485
|
+
/** @internal */
|
|
3486
|
+
export const PostV2ProxyCompletions1Gte$outboundSchema: z.ZodType<
|
|
3487
|
+
PostV2ProxyCompletions1Gte$Outbound,
|
|
3488
|
+
z.ZodTypeDef,
|
|
3489
|
+
PostV2ProxyCompletions1Gte
|
|
3490
|
+
> = z.object({
|
|
3491
|
+
gte: z.number(),
|
|
3492
|
+
});
|
|
3493
|
+
|
|
3494
|
+
/**
|
|
3495
|
+
* @internal
|
|
3496
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3497
|
+
*/
|
|
3498
|
+
export namespace PostV2ProxyCompletions1Gte$ {
|
|
3499
|
+
/** @deprecated use `PostV2ProxyCompletions1Gte$inboundSchema` instead. */
|
|
3500
|
+
export const inboundSchema = PostV2ProxyCompletions1Gte$inboundSchema;
|
|
3501
|
+
/** @deprecated use `PostV2ProxyCompletions1Gte$outboundSchema` instead. */
|
|
3502
|
+
export const outboundSchema = PostV2ProxyCompletions1Gte$outboundSchema;
|
|
3503
|
+
/** @deprecated use `PostV2ProxyCompletions1Gte$Outbound` instead. */
|
|
3504
|
+
export type Outbound = PostV2ProxyCompletions1Gte$Outbound;
|
|
3505
|
+
}
|
|
3506
|
+
|
|
3507
|
+
export function postV2ProxyCompletions1GteToJSON(
|
|
3508
|
+
postV2ProxyCompletions1Gte: PostV2ProxyCompletions1Gte,
|
|
3509
|
+
): string {
|
|
3510
|
+
return JSON.stringify(
|
|
3511
|
+
PostV2ProxyCompletions1Gte$outboundSchema.parse(postV2ProxyCompletions1Gte),
|
|
3512
|
+
);
|
|
3513
|
+
}
|
|
3514
|
+
|
|
3515
|
+
export function postV2ProxyCompletions1GteFromJSON(
|
|
3516
|
+
jsonString: string,
|
|
3517
|
+
): SafeParseResult<PostV2ProxyCompletions1Gte, SDKValidationError> {
|
|
3518
|
+
return safeParse(
|
|
3519
|
+
jsonString,
|
|
3520
|
+
(x) => PostV2ProxyCompletions1Gte$inboundSchema.parse(JSON.parse(x)),
|
|
3521
|
+
`Failed to parse 'PostV2ProxyCompletions1Gte' from JSON`,
|
|
3522
|
+
);
|
|
3523
|
+
}
|
|
3524
|
+
|
|
3525
|
+
/** @internal */
|
|
3526
|
+
export const PostV2ProxyCompletions13$inboundSchema: z.ZodType<
|
|
3527
|
+
PostV2ProxyCompletions13,
|
|
3528
|
+
z.ZodTypeDef,
|
|
3529
|
+
unknown
|
|
3530
|
+
> = z.object({
|
|
3531
|
+
gt: z.number(),
|
|
3532
|
+
});
|
|
3533
|
+
|
|
3534
|
+
/** @internal */
|
|
3535
|
+
export type PostV2ProxyCompletions13$Outbound = {
|
|
3536
|
+
gt: number;
|
|
3537
|
+
};
|
|
3538
|
+
|
|
3539
|
+
/** @internal */
|
|
3540
|
+
export const PostV2ProxyCompletions13$outboundSchema: z.ZodType<
|
|
3541
|
+
PostV2ProxyCompletions13$Outbound,
|
|
3542
|
+
z.ZodTypeDef,
|
|
3543
|
+
PostV2ProxyCompletions13
|
|
3544
|
+
> = z.object({
|
|
3545
|
+
gt: z.number(),
|
|
3546
|
+
});
|
|
3547
|
+
|
|
3548
|
+
/**
|
|
3549
|
+
* @internal
|
|
3550
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3551
|
+
*/
|
|
3552
|
+
export namespace PostV2ProxyCompletions13$ {
|
|
3553
|
+
/** @deprecated use `PostV2ProxyCompletions13$inboundSchema` instead. */
|
|
3554
|
+
export const inboundSchema = PostV2ProxyCompletions13$inboundSchema;
|
|
3555
|
+
/** @deprecated use `PostV2ProxyCompletions13$outboundSchema` instead. */
|
|
3556
|
+
export const outboundSchema = PostV2ProxyCompletions13$outboundSchema;
|
|
3557
|
+
/** @deprecated use `PostV2ProxyCompletions13$Outbound` instead. */
|
|
3558
|
+
export type Outbound = PostV2ProxyCompletions13$Outbound;
|
|
3559
|
+
}
|
|
3560
|
+
|
|
3561
|
+
export function postV2ProxyCompletions13ToJSON(
|
|
3562
|
+
postV2ProxyCompletions13: PostV2ProxyCompletions13,
|
|
3563
|
+
): string {
|
|
3564
|
+
return JSON.stringify(
|
|
3565
|
+
PostV2ProxyCompletions13$outboundSchema.parse(postV2ProxyCompletions13),
|
|
3566
|
+
);
|
|
3567
|
+
}
|
|
3568
|
+
|
|
3569
|
+
export function postV2ProxyCompletions13FromJSON(
|
|
3570
|
+
jsonString: string,
|
|
3571
|
+
): SafeParseResult<PostV2ProxyCompletions13, SDKValidationError> {
|
|
3572
|
+
return safeParse(
|
|
3573
|
+
jsonString,
|
|
3574
|
+
(x) => PostV2ProxyCompletions13$inboundSchema.parse(JSON.parse(x)),
|
|
3575
|
+
`Failed to parse 'PostV2ProxyCompletions13' from JSON`,
|
|
3576
|
+
);
|
|
3577
|
+
}
|
|
3578
|
+
|
|
3579
|
+
/** @internal */
|
|
3580
|
+
export const PostV2ProxyCompletions1ProxyNe$inboundSchema: z.ZodType<
|
|
3581
|
+
PostV2ProxyCompletions1ProxyNe,
|
|
3582
|
+
z.ZodTypeDef,
|
|
3583
|
+
unknown
|
|
3584
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3585
|
+
|
|
3586
|
+
/** @internal */
|
|
3587
|
+
export type PostV2ProxyCompletions1ProxyNe$Outbound = string | number | boolean;
|
|
3588
|
+
|
|
3589
|
+
/** @internal */
|
|
3590
|
+
export const PostV2ProxyCompletions1ProxyNe$outboundSchema: z.ZodType<
|
|
3591
|
+
PostV2ProxyCompletions1ProxyNe$Outbound,
|
|
3592
|
+
z.ZodTypeDef,
|
|
3593
|
+
PostV2ProxyCompletions1ProxyNe
|
|
3594
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3595
|
+
|
|
3596
|
+
/**
|
|
3597
|
+
* @internal
|
|
3598
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3599
|
+
*/
|
|
3600
|
+
export namespace PostV2ProxyCompletions1ProxyNe$ {
|
|
3601
|
+
/** @deprecated use `PostV2ProxyCompletions1ProxyNe$inboundSchema` instead. */
|
|
3602
|
+
export const inboundSchema = PostV2ProxyCompletions1ProxyNe$inboundSchema;
|
|
3603
|
+
/** @deprecated use `PostV2ProxyCompletions1ProxyNe$outboundSchema` instead. */
|
|
3604
|
+
export const outboundSchema = PostV2ProxyCompletions1ProxyNe$outboundSchema;
|
|
3605
|
+
/** @deprecated use `PostV2ProxyCompletions1ProxyNe$Outbound` instead. */
|
|
3606
|
+
export type Outbound = PostV2ProxyCompletions1ProxyNe$Outbound;
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3609
|
+
export function postV2ProxyCompletions1ProxyNeToJSON(
|
|
3610
|
+
postV2ProxyCompletions1ProxyNe: PostV2ProxyCompletions1ProxyNe,
|
|
3611
|
+
): string {
|
|
3612
|
+
return JSON.stringify(
|
|
3613
|
+
PostV2ProxyCompletions1ProxyNe$outboundSchema.parse(
|
|
3614
|
+
postV2ProxyCompletions1ProxyNe,
|
|
3615
|
+
),
|
|
3616
|
+
);
|
|
3617
|
+
}
|
|
3618
|
+
|
|
3619
|
+
export function postV2ProxyCompletions1ProxyNeFromJSON(
|
|
3620
|
+
jsonString: string,
|
|
3621
|
+
): SafeParseResult<PostV2ProxyCompletions1ProxyNe, SDKValidationError> {
|
|
3622
|
+
return safeParse(
|
|
3623
|
+
jsonString,
|
|
3624
|
+
(x) => PostV2ProxyCompletions1ProxyNe$inboundSchema.parse(JSON.parse(x)),
|
|
3625
|
+
`Failed to parse 'PostV2ProxyCompletions1ProxyNe' from JSON`,
|
|
3626
|
+
);
|
|
3627
|
+
}
|
|
3628
|
+
|
|
3629
|
+
/** @internal */
|
|
3630
|
+
export const PostV2ProxyCompletions1Ne$inboundSchema: z.ZodType<
|
|
3631
|
+
PostV2ProxyCompletions1Ne,
|
|
3632
|
+
z.ZodTypeDef,
|
|
3633
|
+
unknown
|
|
3634
|
+
> = z.object({
|
|
3635
|
+
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
3636
|
+
});
|
|
3637
|
+
|
|
3638
|
+
/** @internal */
|
|
3639
|
+
export type PostV2ProxyCompletions1Ne$Outbound = {
|
|
3640
|
+
ne: string | number | boolean;
|
|
3641
|
+
};
|
|
3642
|
+
|
|
3643
|
+
/** @internal */
|
|
3644
|
+
export const PostV2ProxyCompletions1Ne$outboundSchema: z.ZodType<
|
|
3645
|
+
PostV2ProxyCompletions1Ne$Outbound,
|
|
3646
|
+
z.ZodTypeDef,
|
|
3647
|
+
PostV2ProxyCompletions1Ne
|
|
3648
|
+
> = z.object({
|
|
3649
|
+
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
3650
|
+
});
|
|
3651
|
+
|
|
3652
|
+
/**
|
|
3653
|
+
* @internal
|
|
3654
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3655
|
+
*/
|
|
3656
|
+
export namespace PostV2ProxyCompletions1Ne$ {
|
|
3657
|
+
/** @deprecated use `PostV2ProxyCompletions1Ne$inboundSchema` instead. */
|
|
3658
|
+
export const inboundSchema = PostV2ProxyCompletions1Ne$inboundSchema;
|
|
3659
|
+
/** @deprecated use `PostV2ProxyCompletions1Ne$outboundSchema` instead. */
|
|
3660
|
+
export const outboundSchema = PostV2ProxyCompletions1Ne$outboundSchema;
|
|
3661
|
+
/** @deprecated use `PostV2ProxyCompletions1Ne$Outbound` instead. */
|
|
3662
|
+
export type Outbound = PostV2ProxyCompletions1Ne$Outbound;
|
|
3663
|
+
}
|
|
3664
|
+
|
|
3665
|
+
export function postV2ProxyCompletions1NeToJSON(
|
|
3666
|
+
postV2ProxyCompletions1Ne: PostV2ProxyCompletions1Ne,
|
|
3667
|
+
): string {
|
|
3668
|
+
return JSON.stringify(
|
|
3669
|
+
PostV2ProxyCompletions1Ne$outboundSchema.parse(postV2ProxyCompletions1Ne),
|
|
3670
|
+
);
|
|
3671
|
+
}
|
|
3672
|
+
|
|
3673
|
+
export function postV2ProxyCompletions1NeFromJSON(
|
|
3674
|
+
jsonString: string,
|
|
3675
|
+
): SafeParseResult<PostV2ProxyCompletions1Ne, SDKValidationError> {
|
|
3676
|
+
return safeParse(
|
|
3677
|
+
jsonString,
|
|
3678
|
+
(x) => PostV2ProxyCompletions1Ne$inboundSchema.parse(JSON.parse(x)),
|
|
3679
|
+
`Failed to parse 'PostV2ProxyCompletions1Ne' from JSON`,
|
|
3680
|
+
);
|
|
3681
|
+
}
|
|
3682
|
+
|
|
3683
|
+
/** @internal */
|
|
3684
|
+
export const PostV2ProxyCompletions1ProxyEq$inboundSchema: z.ZodType<
|
|
3685
|
+
PostV2ProxyCompletions1ProxyEq,
|
|
3686
|
+
z.ZodTypeDef,
|
|
3687
|
+
unknown
|
|
3688
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3689
|
+
|
|
3690
|
+
/** @internal */
|
|
3691
|
+
export type PostV2ProxyCompletions1ProxyEq$Outbound = string | number | boolean;
|
|
3692
|
+
|
|
3693
|
+
/** @internal */
|
|
3694
|
+
export const PostV2ProxyCompletions1ProxyEq$outboundSchema: z.ZodType<
|
|
3695
|
+
PostV2ProxyCompletions1ProxyEq$Outbound,
|
|
3696
|
+
z.ZodTypeDef,
|
|
3697
|
+
PostV2ProxyCompletions1ProxyEq
|
|
3698
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3699
|
+
|
|
3700
|
+
/**
|
|
3701
|
+
* @internal
|
|
3702
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3703
|
+
*/
|
|
3704
|
+
export namespace PostV2ProxyCompletions1ProxyEq$ {
|
|
3705
|
+
/** @deprecated use `PostV2ProxyCompletions1ProxyEq$inboundSchema` instead. */
|
|
3706
|
+
export const inboundSchema = PostV2ProxyCompletions1ProxyEq$inboundSchema;
|
|
3707
|
+
/** @deprecated use `PostV2ProxyCompletions1ProxyEq$outboundSchema` instead. */
|
|
3708
|
+
export const outboundSchema = PostV2ProxyCompletions1ProxyEq$outboundSchema;
|
|
3709
|
+
/** @deprecated use `PostV2ProxyCompletions1ProxyEq$Outbound` instead. */
|
|
3710
|
+
export type Outbound = PostV2ProxyCompletions1ProxyEq$Outbound;
|
|
3711
|
+
}
|
|
3712
|
+
|
|
3713
|
+
export function postV2ProxyCompletions1ProxyEqToJSON(
|
|
3714
|
+
postV2ProxyCompletions1ProxyEq: PostV2ProxyCompletions1ProxyEq,
|
|
3715
|
+
): string {
|
|
3716
|
+
return JSON.stringify(
|
|
3717
|
+
PostV2ProxyCompletions1ProxyEq$outboundSchema.parse(
|
|
3718
|
+
postV2ProxyCompletions1ProxyEq,
|
|
3719
|
+
),
|
|
3720
|
+
);
|
|
3721
|
+
}
|
|
3722
|
+
|
|
3723
|
+
export function postV2ProxyCompletions1ProxyEqFromJSON(
|
|
3724
|
+
jsonString: string,
|
|
3725
|
+
): SafeParseResult<PostV2ProxyCompletions1ProxyEq, SDKValidationError> {
|
|
3726
|
+
return safeParse(
|
|
3727
|
+
jsonString,
|
|
3728
|
+
(x) => PostV2ProxyCompletions1ProxyEq$inboundSchema.parse(JSON.parse(x)),
|
|
3729
|
+
`Failed to parse 'PostV2ProxyCompletions1ProxyEq' from JSON`,
|
|
3730
|
+
);
|
|
3731
|
+
}
|
|
3732
|
+
|
|
3733
|
+
/** @internal */
|
|
3734
|
+
export const PostV2ProxyCompletions1Eq$inboundSchema: z.ZodType<
|
|
3735
|
+
PostV2ProxyCompletions1Eq,
|
|
3736
|
+
z.ZodTypeDef,
|
|
3737
|
+
unknown
|
|
3738
|
+
> = z.object({
|
|
3739
|
+
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
3740
|
+
});
|
|
3741
|
+
|
|
3742
|
+
/** @internal */
|
|
3743
|
+
export type PostV2ProxyCompletions1Eq$Outbound = {
|
|
3744
|
+
eq: string | number | boolean;
|
|
3745
|
+
};
|
|
3746
|
+
|
|
3747
|
+
/** @internal */
|
|
3748
|
+
export const PostV2ProxyCompletions1Eq$outboundSchema: z.ZodType<
|
|
3749
|
+
PostV2ProxyCompletions1Eq$Outbound,
|
|
3750
|
+
z.ZodTypeDef,
|
|
3751
|
+
PostV2ProxyCompletions1Eq
|
|
3752
|
+
> = z.object({
|
|
3753
|
+
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
3754
|
+
});
|
|
3755
|
+
|
|
3756
|
+
/**
|
|
3757
|
+
* @internal
|
|
3758
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3759
|
+
*/
|
|
3760
|
+
export namespace PostV2ProxyCompletions1Eq$ {
|
|
3761
|
+
/** @deprecated use `PostV2ProxyCompletions1Eq$inboundSchema` instead. */
|
|
3762
|
+
export const inboundSchema = PostV2ProxyCompletions1Eq$inboundSchema;
|
|
3763
|
+
/** @deprecated use `PostV2ProxyCompletions1Eq$outboundSchema` instead. */
|
|
3764
|
+
export const outboundSchema = PostV2ProxyCompletions1Eq$outboundSchema;
|
|
3765
|
+
/** @deprecated use `PostV2ProxyCompletions1Eq$Outbound` instead. */
|
|
3766
|
+
export type Outbound = PostV2ProxyCompletions1Eq$Outbound;
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3769
|
+
export function postV2ProxyCompletions1EqToJSON(
|
|
3770
|
+
postV2ProxyCompletions1Eq: PostV2ProxyCompletions1Eq,
|
|
3771
|
+
): string {
|
|
3772
|
+
return JSON.stringify(
|
|
3773
|
+
PostV2ProxyCompletions1Eq$outboundSchema.parse(postV2ProxyCompletions1Eq),
|
|
3774
|
+
);
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
export function postV2ProxyCompletions1EqFromJSON(
|
|
3778
|
+
jsonString: string,
|
|
3779
|
+
): SafeParseResult<PostV2ProxyCompletions1Eq, SDKValidationError> {
|
|
3780
|
+
return safeParse(
|
|
3781
|
+
jsonString,
|
|
3782
|
+
(x) => PostV2ProxyCompletions1Eq$inboundSchema.parse(JSON.parse(x)),
|
|
3783
|
+
`Failed to parse 'PostV2ProxyCompletions1Eq' from JSON`,
|
|
3784
|
+
);
|
|
3785
|
+
}
|
|
3786
|
+
|
|
3787
|
+
/** @internal */
|
|
3788
|
+
export const PostV2ProxyCompletionsFilterBy1$inboundSchema: z.ZodType<
|
|
3789
|
+
PostV2ProxyCompletionsFilterBy1,
|
|
3790
|
+
z.ZodTypeDef,
|
|
3791
|
+
unknown
|
|
3792
|
+
> = z.union([
|
|
3793
|
+
z.lazy(() => PostV2ProxyCompletions1Eq$inboundSchema),
|
|
3794
|
+
z.lazy(() => PostV2ProxyCompletions1Ne$inboundSchema),
|
|
3795
|
+
z.lazy(() => PostV2ProxyCompletions13$inboundSchema),
|
|
3796
|
+
z.lazy(() => PostV2ProxyCompletions1Gte$inboundSchema),
|
|
3797
|
+
z.lazy(() => PostV2ProxyCompletions1Lt$inboundSchema),
|
|
3798
|
+
z.lazy(() => PostV2ProxyCompletions1Lte$inboundSchema),
|
|
3799
|
+
z.lazy(() => PostV2ProxyCompletions1In$inboundSchema),
|
|
3800
|
+
z.lazy(() => PostV2ProxyCompletions1Nin$inboundSchema),
|
|
3801
|
+
z.lazy(() => PostV2ProxyCompletions1Exists$inboundSchema),
|
|
3802
|
+
]);
|
|
3803
|
+
|
|
3804
|
+
/** @internal */
|
|
3805
|
+
export type PostV2ProxyCompletionsFilterBy1$Outbound =
|
|
3806
|
+
| PostV2ProxyCompletions1Eq$Outbound
|
|
3807
|
+
| PostV2ProxyCompletions1Ne$Outbound
|
|
3808
|
+
| PostV2ProxyCompletions13$Outbound
|
|
3809
|
+
| PostV2ProxyCompletions1Gte$Outbound
|
|
3810
|
+
| PostV2ProxyCompletions1Lt$Outbound
|
|
3811
|
+
| PostV2ProxyCompletions1Lte$Outbound
|
|
3812
|
+
| PostV2ProxyCompletions1In$Outbound
|
|
3813
|
+
| PostV2ProxyCompletions1Nin$Outbound
|
|
3814
|
+
| PostV2ProxyCompletions1Exists$Outbound;
|
|
3815
|
+
|
|
3816
|
+
/** @internal */
|
|
3817
|
+
export const PostV2ProxyCompletionsFilterBy1$outboundSchema: z.ZodType<
|
|
3818
|
+
PostV2ProxyCompletionsFilterBy1$Outbound,
|
|
3819
|
+
z.ZodTypeDef,
|
|
3820
|
+
PostV2ProxyCompletionsFilterBy1
|
|
3821
|
+
> = z.union([
|
|
3822
|
+
z.lazy(() => PostV2ProxyCompletions1Eq$outboundSchema),
|
|
3823
|
+
z.lazy(() => PostV2ProxyCompletions1Ne$outboundSchema),
|
|
3824
|
+
z.lazy(() => PostV2ProxyCompletions13$outboundSchema),
|
|
3825
|
+
z.lazy(() => PostV2ProxyCompletions1Gte$outboundSchema),
|
|
3826
|
+
z.lazy(() => PostV2ProxyCompletions1Lt$outboundSchema),
|
|
3827
|
+
z.lazy(() => PostV2ProxyCompletions1Lte$outboundSchema),
|
|
3828
|
+
z.lazy(() => PostV2ProxyCompletions1In$outboundSchema),
|
|
3829
|
+
z.lazy(() => PostV2ProxyCompletions1Nin$outboundSchema),
|
|
3830
|
+
z.lazy(() => PostV2ProxyCompletions1Exists$outboundSchema),
|
|
3831
|
+
]);
|
|
3832
|
+
|
|
3833
|
+
/**
|
|
3834
|
+
* @internal
|
|
3835
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3836
|
+
*/
|
|
3837
|
+
export namespace PostV2ProxyCompletionsFilterBy1$ {
|
|
3838
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterBy1$inboundSchema` instead. */
|
|
3839
|
+
export const inboundSchema = PostV2ProxyCompletionsFilterBy1$inboundSchema;
|
|
3840
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterBy1$outboundSchema` instead. */
|
|
3841
|
+
export const outboundSchema = PostV2ProxyCompletionsFilterBy1$outboundSchema;
|
|
3842
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterBy1$Outbound` instead. */
|
|
3843
|
+
export type Outbound = PostV2ProxyCompletionsFilterBy1$Outbound;
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3846
|
+
export function postV2ProxyCompletionsFilterBy1ToJSON(
|
|
3847
|
+
postV2ProxyCompletionsFilterBy1: PostV2ProxyCompletionsFilterBy1,
|
|
3848
|
+
): string {
|
|
3849
|
+
return JSON.stringify(
|
|
3850
|
+
PostV2ProxyCompletionsFilterBy1$outboundSchema.parse(
|
|
3851
|
+
postV2ProxyCompletionsFilterBy1,
|
|
3852
|
+
),
|
|
3853
|
+
);
|
|
3854
|
+
}
|
|
3855
|
+
|
|
3856
|
+
export function postV2ProxyCompletionsFilterBy1FromJSON(
|
|
3857
|
+
jsonString: string,
|
|
3858
|
+
): SafeParseResult<PostV2ProxyCompletionsFilterBy1, SDKValidationError> {
|
|
3859
|
+
return safeParse(
|
|
3860
|
+
jsonString,
|
|
3861
|
+
(x) => PostV2ProxyCompletionsFilterBy1$inboundSchema.parse(JSON.parse(x)),
|
|
3862
|
+
`Failed to parse 'PostV2ProxyCompletionsFilterBy1' from JSON`,
|
|
3863
|
+
);
|
|
3864
|
+
}
|
|
3865
|
+
|
|
3866
|
+
/** @internal */
|
|
3867
|
+
export const PostV2ProxyCompletionsFilterBy$inboundSchema: z.ZodType<
|
|
3868
|
+
PostV2ProxyCompletionsFilterBy,
|
|
3869
|
+
z.ZodTypeDef,
|
|
3870
|
+
unknown
|
|
3871
|
+
> = z.union([
|
|
3872
|
+
z.lazy(() => PostV2ProxyCompletionsFilterByAnd$inboundSchema),
|
|
3873
|
+
z.lazy(() => PostV2ProxyCompletionsFilterByOr$inboundSchema),
|
|
3874
|
+
z.record(z.union([
|
|
3875
|
+
z.lazy(() => PostV2ProxyCompletions1Eq$inboundSchema),
|
|
3876
|
+
z.lazy(() => PostV2ProxyCompletions1Ne$inboundSchema),
|
|
3877
|
+
z.lazy(() => PostV2ProxyCompletions13$inboundSchema),
|
|
3878
|
+
z.lazy(() => PostV2ProxyCompletions1Gte$inboundSchema),
|
|
3879
|
+
z.lazy(() => PostV2ProxyCompletions1Lt$inboundSchema),
|
|
3880
|
+
z.lazy(() => PostV2ProxyCompletions1Lte$inboundSchema),
|
|
3881
|
+
z.lazy(() => PostV2ProxyCompletions1In$inboundSchema),
|
|
3882
|
+
z.lazy(() => PostV2ProxyCompletions1Nin$inboundSchema),
|
|
3883
|
+
z.lazy(() => PostV2ProxyCompletions1Exists$inboundSchema),
|
|
3884
|
+
])),
|
|
3885
|
+
]);
|
|
3886
|
+
|
|
3887
|
+
/** @internal */
|
|
3888
|
+
export type PostV2ProxyCompletionsFilterBy$Outbound =
|
|
3889
|
+
| PostV2ProxyCompletionsFilterByAnd$Outbound
|
|
3890
|
+
| PostV2ProxyCompletionsFilterByOr$Outbound
|
|
3891
|
+
| {
|
|
3892
|
+
[k: string]:
|
|
3893
|
+
| PostV2ProxyCompletions1Eq$Outbound
|
|
3894
|
+
| PostV2ProxyCompletions1Ne$Outbound
|
|
3895
|
+
| PostV2ProxyCompletions13$Outbound
|
|
3896
|
+
| PostV2ProxyCompletions1Gte$Outbound
|
|
3897
|
+
| PostV2ProxyCompletions1Lt$Outbound
|
|
3898
|
+
| PostV2ProxyCompletions1Lte$Outbound
|
|
3899
|
+
| PostV2ProxyCompletions1In$Outbound
|
|
3900
|
+
| PostV2ProxyCompletions1Nin$Outbound
|
|
3901
|
+
| PostV2ProxyCompletions1Exists$Outbound;
|
|
3902
|
+
};
|
|
3903
|
+
|
|
3904
|
+
/** @internal */
|
|
3905
|
+
export const PostV2ProxyCompletionsFilterBy$outboundSchema: z.ZodType<
|
|
3906
|
+
PostV2ProxyCompletionsFilterBy$Outbound,
|
|
3907
|
+
z.ZodTypeDef,
|
|
3908
|
+
PostV2ProxyCompletionsFilterBy
|
|
3909
|
+
> = z.union([
|
|
3910
|
+
z.lazy(() => PostV2ProxyCompletionsFilterByAnd$outboundSchema),
|
|
3911
|
+
z.lazy(() => PostV2ProxyCompletionsFilterByOr$outboundSchema),
|
|
3912
|
+
z.record(z.union([
|
|
3913
|
+
z.lazy(() => PostV2ProxyCompletions1Eq$outboundSchema),
|
|
3914
|
+
z.lazy(() => PostV2ProxyCompletions1Ne$outboundSchema),
|
|
3915
|
+
z.lazy(() => PostV2ProxyCompletions13$outboundSchema),
|
|
3916
|
+
z.lazy(() => PostV2ProxyCompletions1Gte$outboundSchema),
|
|
3917
|
+
z.lazy(() => PostV2ProxyCompletions1Lt$outboundSchema),
|
|
3918
|
+
z.lazy(() => PostV2ProxyCompletions1Lte$outboundSchema),
|
|
3919
|
+
z.lazy(() => PostV2ProxyCompletions1In$outboundSchema),
|
|
3920
|
+
z.lazy(() => PostV2ProxyCompletions1Nin$outboundSchema),
|
|
3921
|
+
z.lazy(() => PostV2ProxyCompletions1Exists$outboundSchema),
|
|
3922
|
+
])),
|
|
3923
|
+
]);
|
|
3924
|
+
|
|
3925
|
+
/**
|
|
3926
|
+
* @internal
|
|
3927
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3928
|
+
*/
|
|
3929
|
+
export namespace PostV2ProxyCompletionsFilterBy$ {
|
|
3930
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterBy$inboundSchema` instead. */
|
|
3931
|
+
export const inboundSchema = PostV2ProxyCompletionsFilterBy$inboundSchema;
|
|
3932
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterBy$outboundSchema` instead. */
|
|
3933
|
+
export const outboundSchema = PostV2ProxyCompletionsFilterBy$outboundSchema;
|
|
3934
|
+
/** @deprecated use `PostV2ProxyCompletionsFilterBy$Outbound` instead. */
|
|
3935
|
+
export type Outbound = PostV2ProxyCompletionsFilterBy$Outbound;
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3938
|
+
export function postV2ProxyCompletionsFilterByToJSON(
|
|
3939
|
+
postV2ProxyCompletionsFilterBy: PostV2ProxyCompletionsFilterBy,
|
|
3940
|
+
): string {
|
|
3941
|
+
return JSON.stringify(
|
|
3942
|
+
PostV2ProxyCompletionsFilterBy$outboundSchema.parse(
|
|
3943
|
+
postV2ProxyCompletionsFilterBy,
|
|
3944
|
+
),
|
|
3945
|
+
);
|
|
3946
|
+
}
|
|
3947
|
+
|
|
3948
|
+
export function postV2ProxyCompletionsFilterByFromJSON(
|
|
3949
|
+
jsonString: string,
|
|
3950
|
+
): SafeParseResult<PostV2ProxyCompletionsFilterBy, SDKValidationError> {
|
|
3951
|
+
return safeParse(
|
|
3952
|
+
jsonString,
|
|
3953
|
+
(x) => PostV2ProxyCompletionsFilterBy$inboundSchema.parse(JSON.parse(x)),
|
|
3954
|
+
`Failed to parse 'PostV2ProxyCompletionsFilterBy' from JSON`,
|
|
3955
|
+
);
|
|
3956
|
+
}
|
|
3957
|
+
|
|
3958
|
+
/** @internal */
|
|
3959
|
+
export const PostV2ProxyCompletionsSearchOptions$inboundSchema: z.ZodType<
|
|
3960
|
+
PostV2ProxyCompletionsSearchOptions,
|
|
3961
|
+
z.ZodTypeDef,
|
|
3962
|
+
unknown
|
|
3963
|
+
> = z.object({
|
|
3964
|
+
include_vectors: z.boolean().optional(),
|
|
3965
|
+
include_metadata: z.boolean().optional(),
|
|
3966
|
+
include_scores: z.boolean().optional(),
|
|
3967
|
+
}).transform((v) => {
|
|
3968
|
+
return remap$(v, {
|
|
3969
|
+
"include_vectors": "includeVectors",
|
|
3970
|
+
"include_metadata": "includeMetadata",
|
|
3971
|
+
"include_scores": "includeScores",
|
|
3972
|
+
});
|
|
3973
|
+
});
|
|
3974
|
+
|
|
3975
|
+
/** @internal */
|
|
3976
|
+
export type PostV2ProxyCompletionsSearchOptions$Outbound = {
|
|
3977
|
+
include_vectors?: boolean | undefined;
|
|
3978
|
+
include_metadata?: boolean | undefined;
|
|
3979
|
+
include_scores?: boolean | undefined;
|
|
3980
|
+
};
|
|
3981
|
+
|
|
3982
|
+
/** @internal */
|
|
3983
|
+
export const PostV2ProxyCompletionsSearchOptions$outboundSchema: z.ZodType<
|
|
3984
|
+
PostV2ProxyCompletionsSearchOptions$Outbound,
|
|
3985
|
+
z.ZodTypeDef,
|
|
3986
|
+
PostV2ProxyCompletionsSearchOptions
|
|
3987
|
+
> = z.object({
|
|
3988
|
+
includeVectors: z.boolean().optional(),
|
|
3989
|
+
includeMetadata: z.boolean().optional(),
|
|
3990
|
+
includeScores: z.boolean().optional(),
|
|
3991
|
+
}).transform((v) => {
|
|
3992
|
+
return remap$(v, {
|
|
3993
|
+
includeVectors: "include_vectors",
|
|
3994
|
+
includeMetadata: "include_metadata",
|
|
3995
|
+
includeScores: "include_scores",
|
|
3996
|
+
});
|
|
3997
|
+
});
|
|
3998
|
+
|
|
3999
|
+
/**
|
|
4000
|
+
* @internal
|
|
4001
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4002
|
+
*/
|
|
4003
|
+
export namespace PostV2ProxyCompletionsSearchOptions$ {
|
|
4004
|
+
/** @deprecated use `PostV2ProxyCompletionsSearchOptions$inboundSchema` instead. */
|
|
4005
|
+
export const inboundSchema =
|
|
4006
|
+
PostV2ProxyCompletionsSearchOptions$inboundSchema;
|
|
4007
|
+
/** @deprecated use `PostV2ProxyCompletionsSearchOptions$outboundSchema` instead. */
|
|
4008
|
+
export const outboundSchema =
|
|
4009
|
+
PostV2ProxyCompletionsSearchOptions$outboundSchema;
|
|
4010
|
+
/** @deprecated use `PostV2ProxyCompletionsSearchOptions$Outbound` instead. */
|
|
4011
|
+
export type Outbound = PostV2ProxyCompletionsSearchOptions$Outbound;
|
|
4012
|
+
}
|
|
4013
|
+
|
|
4014
|
+
export function postV2ProxyCompletionsSearchOptionsToJSON(
|
|
4015
|
+
postV2ProxyCompletionsSearchOptions: PostV2ProxyCompletionsSearchOptions,
|
|
4016
|
+
): string {
|
|
4017
|
+
return JSON.stringify(
|
|
4018
|
+
PostV2ProxyCompletionsSearchOptions$outboundSchema.parse(
|
|
4019
|
+
postV2ProxyCompletionsSearchOptions,
|
|
4020
|
+
),
|
|
4021
|
+
);
|
|
4022
|
+
}
|
|
4023
|
+
|
|
4024
|
+
export function postV2ProxyCompletionsSearchOptionsFromJSON(
|
|
4025
|
+
jsonString: string,
|
|
4026
|
+
): SafeParseResult<PostV2ProxyCompletionsSearchOptions, SDKValidationError> {
|
|
4027
|
+
return safeParse(
|
|
4028
|
+
jsonString,
|
|
4029
|
+
(x) =>
|
|
4030
|
+
PostV2ProxyCompletionsSearchOptions$inboundSchema.parse(JSON.parse(x)),
|
|
4031
|
+
`Failed to parse 'PostV2ProxyCompletionsSearchOptions' from JSON`,
|
|
4032
|
+
);
|
|
4033
|
+
}
|
|
4034
|
+
|
|
4035
|
+
/** @internal */
|
|
4036
|
+
export const PostV2ProxyCompletionsProvider$inboundSchema: z.ZodNativeEnum<
|
|
4037
|
+
typeof PostV2ProxyCompletionsProvider
|
|
4038
|
+
> = z.nativeEnum(PostV2ProxyCompletionsProvider);
|
|
4039
|
+
|
|
4040
|
+
/** @internal */
|
|
4041
|
+
export const PostV2ProxyCompletionsProvider$outboundSchema: z.ZodNativeEnum<
|
|
4042
|
+
typeof PostV2ProxyCompletionsProvider
|
|
4043
|
+
> = PostV2ProxyCompletionsProvider$inboundSchema;
|
|
4044
|
+
|
|
4045
|
+
/**
|
|
4046
|
+
* @internal
|
|
315
4047
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
316
4048
|
*/
|
|
317
|
-
export namespace
|
|
318
|
-
/** @deprecated use `
|
|
319
|
-
export const inboundSchema =
|
|
320
|
-
/** @deprecated use `
|
|
321
|
-
export const outboundSchema =
|
|
322
|
-
/** @deprecated use `PostV2ProxyCompletionsStop$Outbound` instead. */
|
|
323
|
-
export type Outbound = PostV2ProxyCompletionsStop$Outbound;
|
|
4049
|
+
export namespace PostV2ProxyCompletionsProvider$ {
|
|
4050
|
+
/** @deprecated use `PostV2ProxyCompletionsProvider$inboundSchema` instead. */
|
|
4051
|
+
export const inboundSchema = PostV2ProxyCompletionsProvider$inboundSchema;
|
|
4052
|
+
/** @deprecated use `PostV2ProxyCompletionsProvider$outboundSchema` instead. */
|
|
4053
|
+
export const outboundSchema = PostV2ProxyCompletionsProvider$outboundSchema;
|
|
324
4054
|
}
|
|
325
4055
|
|
|
326
|
-
|
|
327
|
-
|
|
4056
|
+
/** @internal */
|
|
4057
|
+
export const PostV2ProxyCompletionsModelType$inboundSchema: z.ZodNativeEnum<
|
|
4058
|
+
typeof PostV2ProxyCompletionsModelType
|
|
4059
|
+
> = z.nativeEnum(PostV2ProxyCompletionsModelType);
|
|
4060
|
+
|
|
4061
|
+
/** @internal */
|
|
4062
|
+
export const PostV2ProxyCompletionsModelType$outboundSchema: z.ZodNativeEnum<
|
|
4063
|
+
typeof PostV2ProxyCompletionsModelType
|
|
4064
|
+
> = PostV2ProxyCompletionsModelType$inboundSchema;
|
|
4065
|
+
|
|
4066
|
+
/**
|
|
4067
|
+
* @internal
|
|
4068
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4069
|
+
*/
|
|
4070
|
+
export namespace PostV2ProxyCompletionsModelType$ {
|
|
4071
|
+
/** @deprecated use `PostV2ProxyCompletionsModelType$inboundSchema` instead. */
|
|
4072
|
+
export const inboundSchema = PostV2ProxyCompletionsModelType$inboundSchema;
|
|
4073
|
+
/** @deprecated use `PostV2ProxyCompletionsModelType$outboundSchema` instead. */
|
|
4074
|
+
export const outboundSchema = PostV2ProxyCompletionsModelType$outboundSchema;
|
|
4075
|
+
}
|
|
4076
|
+
|
|
4077
|
+
/** @internal */
|
|
4078
|
+
export const PostV2ProxyCompletionsModelParameters$inboundSchema: z.ZodType<
|
|
4079
|
+
PostV2ProxyCompletionsModelParameters,
|
|
4080
|
+
z.ZodTypeDef,
|
|
4081
|
+
unknown
|
|
4082
|
+
> = z.object({
|
|
4083
|
+
threshold: z.number().optional(),
|
|
4084
|
+
});
|
|
4085
|
+
|
|
4086
|
+
/** @internal */
|
|
4087
|
+
export type PostV2ProxyCompletionsModelParameters$Outbound = {
|
|
4088
|
+
threshold?: number | undefined;
|
|
4089
|
+
};
|
|
4090
|
+
|
|
4091
|
+
/** @internal */
|
|
4092
|
+
export const PostV2ProxyCompletionsModelParameters$outboundSchema: z.ZodType<
|
|
4093
|
+
PostV2ProxyCompletionsModelParameters$Outbound,
|
|
4094
|
+
z.ZodTypeDef,
|
|
4095
|
+
PostV2ProxyCompletionsModelParameters
|
|
4096
|
+
> = z.object({
|
|
4097
|
+
threshold: z.number().optional(),
|
|
4098
|
+
});
|
|
4099
|
+
|
|
4100
|
+
/**
|
|
4101
|
+
* @internal
|
|
4102
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4103
|
+
*/
|
|
4104
|
+
export namespace PostV2ProxyCompletionsModelParameters$ {
|
|
4105
|
+
/** @deprecated use `PostV2ProxyCompletionsModelParameters$inboundSchema` instead. */
|
|
4106
|
+
export const inboundSchema =
|
|
4107
|
+
PostV2ProxyCompletionsModelParameters$inboundSchema;
|
|
4108
|
+
/** @deprecated use `PostV2ProxyCompletionsModelParameters$outboundSchema` instead. */
|
|
4109
|
+
export const outboundSchema =
|
|
4110
|
+
PostV2ProxyCompletionsModelParameters$outboundSchema;
|
|
4111
|
+
/** @deprecated use `PostV2ProxyCompletionsModelParameters$Outbound` instead. */
|
|
4112
|
+
export type Outbound = PostV2ProxyCompletionsModelParameters$Outbound;
|
|
4113
|
+
}
|
|
4114
|
+
|
|
4115
|
+
export function postV2ProxyCompletionsModelParametersToJSON(
|
|
4116
|
+
postV2ProxyCompletionsModelParameters: PostV2ProxyCompletionsModelParameters,
|
|
328
4117
|
): string {
|
|
329
4118
|
return JSON.stringify(
|
|
330
|
-
|
|
4119
|
+
PostV2ProxyCompletionsModelParameters$outboundSchema.parse(
|
|
4120
|
+
postV2ProxyCompletionsModelParameters,
|
|
4121
|
+
),
|
|
331
4122
|
);
|
|
332
4123
|
}
|
|
333
4124
|
|
|
334
|
-
export function
|
|
4125
|
+
export function postV2ProxyCompletionsModelParametersFromJSON(
|
|
335
4126
|
jsonString: string,
|
|
336
|
-
): SafeParseResult<
|
|
4127
|
+
): SafeParseResult<PostV2ProxyCompletionsModelParameters, SDKValidationError> {
|
|
337
4128
|
return safeParse(
|
|
338
4129
|
jsonString,
|
|
339
|
-
(x) =>
|
|
340
|
-
|
|
4130
|
+
(x) =>
|
|
4131
|
+
PostV2ProxyCompletionsModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
4132
|
+
`Failed to parse 'PostV2ProxyCompletionsModelParameters' from JSON`,
|
|
4133
|
+
);
|
|
4134
|
+
}
|
|
4135
|
+
|
|
4136
|
+
/** @internal */
|
|
4137
|
+
export const PostV2ProxyCompletionsRerankConfig$inboundSchema: z.ZodType<
|
|
4138
|
+
PostV2ProxyCompletionsRerankConfig,
|
|
4139
|
+
z.ZodTypeDef,
|
|
4140
|
+
unknown
|
|
4141
|
+
> = z.object({
|
|
4142
|
+
enabled: z.boolean().optional(),
|
|
4143
|
+
provider: PostV2ProxyCompletionsProvider$inboundSchema.optional(),
|
|
4144
|
+
top_k: z.number().int().optional(),
|
|
4145
|
+
model: z.string().optional(),
|
|
4146
|
+
model_db_id: z.string().optional(),
|
|
4147
|
+
model_type: PostV2ProxyCompletionsModelType$inboundSchema.optional(),
|
|
4148
|
+
model_parameters: z.lazy(() =>
|
|
4149
|
+
PostV2ProxyCompletionsModelParameters$inboundSchema
|
|
4150
|
+
).optional(),
|
|
4151
|
+
}).transform((v) => {
|
|
4152
|
+
return remap$(v, {
|
|
4153
|
+
"top_k": "topK",
|
|
4154
|
+
"model_db_id": "modelDbId",
|
|
4155
|
+
"model_type": "modelType",
|
|
4156
|
+
"model_parameters": "modelParameters",
|
|
4157
|
+
});
|
|
4158
|
+
});
|
|
4159
|
+
|
|
4160
|
+
/** @internal */
|
|
4161
|
+
export type PostV2ProxyCompletionsRerankConfig$Outbound = {
|
|
4162
|
+
enabled?: boolean | undefined;
|
|
4163
|
+
provider?: string | undefined;
|
|
4164
|
+
top_k?: number | undefined;
|
|
4165
|
+
model?: string | undefined;
|
|
4166
|
+
model_db_id?: string | undefined;
|
|
4167
|
+
model_type?: string | undefined;
|
|
4168
|
+
model_parameters?: PostV2ProxyCompletionsModelParameters$Outbound | undefined;
|
|
4169
|
+
};
|
|
4170
|
+
|
|
4171
|
+
/** @internal */
|
|
4172
|
+
export const PostV2ProxyCompletionsRerankConfig$outboundSchema: z.ZodType<
|
|
4173
|
+
PostV2ProxyCompletionsRerankConfig$Outbound,
|
|
4174
|
+
z.ZodTypeDef,
|
|
4175
|
+
PostV2ProxyCompletionsRerankConfig
|
|
4176
|
+
> = z.object({
|
|
4177
|
+
enabled: z.boolean().optional(),
|
|
4178
|
+
provider: PostV2ProxyCompletionsProvider$outboundSchema.optional(),
|
|
4179
|
+
topK: z.number().int().optional(),
|
|
4180
|
+
model: z.string().optional(),
|
|
4181
|
+
modelDbId: z.string().optional(),
|
|
4182
|
+
modelType: PostV2ProxyCompletionsModelType$outboundSchema.optional(),
|
|
4183
|
+
modelParameters: z.lazy(() =>
|
|
4184
|
+
PostV2ProxyCompletionsModelParameters$outboundSchema
|
|
4185
|
+
).optional(),
|
|
4186
|
+
}).transform((v) => {
|
|
4187
|
+
return remap$(v, {
|
|
4188
|
+
topK: "top_k",
|
|
4189
|
+
modelDbId: "model_db_id",
|
|
4190
|
+
modelType: "model_type",
|
|
4191
|
+
modelParameters: "model_parameters",
|
|
4192
|
+
});
|
|
4193
|
+
});
|
|
4194
|
+
|
|
4195
|
+
/**
|
|
4196
|
+
* @internal
|
|
4197
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4198
|
+
*/
|
|
4199
|
+
export namespace PostV2ProxyCompletionsRerankConfig$ {
|
|
4200
|
+
/** @deprecated use `PostV2ProxyCompletionsRerankConfig$inboundSchema` instead. */
|
|
4201
|
+
export const inboundSchema = PostV2ProxyCompletionsRerankConfig$inboundSchema;
|
|
4202
|
+
/** @deprecated use `PostV2ProxyCompletionsRerankConfig$outboundSchema` instead. */
|
|
4203
|
+
export const outboundSchema =
|
|
4204
|
+
PostV2ProxyCompletionsRerankConfig$outboundSchema;
|
|
4205
|
+
/** @deprecated use `PostV2ProxyCompletionsRerankConfig$Outbound` instead. */
|
|
4206
|
+
export type Outbound = PostV2ProxyCompletionsRerankConfig$Outbound;
|
|
4207
|
+
}
|
|
4208
|
+
|
|
4209
|
+
export function postV2ProxyCompletionsRerankConfigToJSON(
|
|
4210
|
+
postV2ProxyCompletionsRerankConfig: PostV2ProxyCompletionsRerankConfig,
|
|
4211
|
+
): string {
|
|
4212
|
+
return JSON.stringify(
|
|
4213
|
+
PostV2ProxyCompletionsRerankConfig$outboundSchema.parse(
|
|
4214
|
+
postV2ProxyCompletionsRerankConfig,
|
|
4215
|
+
),
|
|
4216
|
+
);
|
|
4217
|
+
}
|
|
4218
|
+
|
|
4219
|
+
export function postV2ProxyCompletionsRerankConfigFromJSON(
|
|
4220
|
+
jsonString: string,
|
|
4221
|
+
): SafeParseResult<PostV2ProxyCompletionsRerankConfig, SDKValidationError> {
|
|
4222
|
+
return safeParse(
|
|
4223
|
+
jsonString,
|
|
4224
|
+
(x) =>
|
|
4225
|
+
PostV2ProxyCompletionsRerankConfig$inboundSchema.parse(JSON.parse(x)),
|
|
4226
|
+
`Failed to parse 'PostV2ProxyCompletionsRerankConfig' from JSON`,
|
|
4227
|
+
);
|
|
4228
|
+
}
|
|
4229
|
+
|
|
4230
|
+
/** @internal */
|
|
4231
|
+
export const PostV2ProxyCompletionsProxyProvider$inboundSchema: z.ZodNativeEnum<
|
|
4232
|
+
typeof PostV2ProxyCompletionsProxyProvider
|
|
4233
|
+
> = z.nativeEnum(PostV2ProxyCompletionsProxyProvider);
|
|
4234
|
+
|
|
4235
|
+
/** @internal */
|
|
4236
|
+
export const PostV2ProxyCompletionsProxyProvider$outboundSchema:
|
|
4237
|
+
z.ZodNativeEnum<typeof PostV2ProxyCompletionsProxyProvider> =
|
|
4238
|
+
PostV2ProxyCompletionsProxyProvider$inboundSchema;
|
|
4239
|
+
|
|
4240
|
+
/**
|
|
4241
|
+
* @internal
|
|
4242
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4243
|
+
*/
|
|
4244
|
+
export namespace PostV2ProxyCompletionsProxyProvider$ {
|
|
4245
|
+
/** @deprecated use `PostV2ProxyCompletionsProxyProvider$inboundSchema` instead. */
|
|
4246
|
+
export const inboundSchema =
|
|
4247
|
+
PostV2ProxyCompletionsProxyProvider$inboundSchema;
|
|
4248
|
+
/** @deprecated use `PostV2ProxyCompletionsProxyProvider$outboundSchema` instead. */
|
|
4249
|
+
export const outboundSchema =
|
|
4250
|
+
PostV2ProxyCompletionsProxyProvider$outboundSchema;
|
|
4251
|
+
}
|
|
4252
|
+
|
|
4253
|
+
/** @internal */
|
|
4254
|
+
export const PostV2ProxyCompletionsAgenticRagConfig$inboundSchema: z.ZodType<
|
|
4255
|
+
PostV2ProxyCompletionsAgenticRagConfig,
|
|
4256
|
+
z.ZodTypeDef,
|
|
4257
|
+
unknown
|
|
4258
|
+
> = z.object({
|
|
4259
|
+
model_db_id: z.string(),
|
|
4260
|
+
provider: PostV2ProxyCompletionsProxyProvider$inboundSchema,
|
|
4261
|
+
integration_id: z.nullable(z.string()).optional(),
|
|
4262
|
+
}).transform((v) => {
|
|
4263
|
+
return remap$(v, {
|
|
4264
|
+
"model_db_id": "modelDbId",
|
|
4265
|
+
"integration_id": "integrationId",
|
|
4266
|
+
});
|
|
4267
|
+
});
|
|
4268
|
+
|
|
4269
|
+
/** @internal */
|
|
4270
|
+
export type PostV2ProxyCompletionsAgenticRagConfig$Outbound = {
|
|
4271
|
+
model_db_id: string;
|
|
4272
|
+
provider: string;
|
|
4273
|
+
integration_id?: string | null | undefined;
|
|
4274
|
+
};
|
|
4275
|
+
|
|
4276
|
+
/** @internal */
|
|
4277
|
+
export const PostV2ProxyCompletionsAgenticRagConfig$outboundSchema: z.ZodType<
|
|
4278
|
+
PostV2ProxyCompletionsAgenticRagConfig$Outbound,
|
|
4279
|
+
z.ZodTypeDef,
|
|
4280
|
+
PostV2ProxyCompletionsAgenticRagConfig
|
|
4281
|
+
> = z.object({
|
|
4282
|
+
modelDbId: z.string(),
|
|
4283
|
+
provider: PostV2ProxyCompletionsProxyProvider$outboundSchema,
|
|
4284
|
+
integrationId: z.nullable(z.string()).optional(),
|
|
4285
|
+
}).transform((v) => {
|
|
4286
|
+
return remap$(v, {
|
|
4287
|
+
modelDbId: "model_db_id",
|
|
4288
|
+
integrationId: "integration_id",
|
|
4289
|
+
});
|
|
4290
|
+
});
|
|
4291
|
+
|
|
4292
|
+
/**
|
|
4293
|
+
* @internal
|
|
4294
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4295
|
+
*/
|
|
4296
|
+
export namespace PostV2ProxyCompletionsAgenticRagConfig$ {
|
|
4297
|
+
/** @deprecated use `PostV2ProxyCompletionsAgenticRagConfig$inboundSchema` instead. */
|
|
4298
|
+
export const inboundSchema =
|
|
4299
|
+
PostV2ProxyCompletionsAgenticRagConfig$inboundSchema;
|
|
4300
|
+
/** @deprecated use `PostV2ProxyCompletionsAgenticRagConfig$outboundSchema` instead. */
|
|
4301
|
+
export const outboundSchema =
|
|
4302
|
+
PostV2ProxyCompletionsAgenticRagConfig$outboundSchema;
|
|
4303
|
+
/** @deprecated use `PostV2ProxyCompletionsAgenticRagConfig$Outbound` instead. */
|
|
4304
|
+
export type Outbound = PostV2ProxyCompletionsAgenticRagConfig$Outbound;
|
|
4305
|
+
}
|
|
4306
|
+
|
|
4307
|
+
export function postV2ProxyCompletionsAgenticRagConfigToJSON(
|
|
4308
|
+
postV2ProxyCompletionsAgenticRagConfig:
|
|
4309
|
+
PostV2ProxyCompletionsAgenticRagConfig,
|
|
4310
|
+
): string {
|
|
4311
|
+
return JSON.stringify(
|
|
4312
|
+
PostV2ProxyCompletionsAgenticRagConfig$outboundSchema.parse(
|
|
4313
|
+
postV2ProxyCompletionsAgenticRagConfig,
|
|
4314
|
+
),
|
|
4315
|
+
);
|
|
4316
|
+
}
|
|
4317
|
+
|
|
4318
|
+
export function postV2ProxyCompletionsAgenticRagConfigFromJSON(
|
|
4319
|
+
jsonString: string,
|
|
4320
|
+
): SafeParseResult<PostV2ProxyCompletionsAgenticRagConfig, SDKValidationError> {
|
|
4321
|
+
return safeParse(
|
|
4322
|
+
jsonString,
|
|
4323
|
+
(x) =>
|
|
4324
|
+
PostV2ProxyCompletionsAgenticRagConfig$inboundSchema.parse(JSON.parse(x)),
|
|
4325
|
+
`Failed to parse 'PostV2ProxyCompletionsAgenticRagConfig' from JSON`,
|
|
4326
|
+
);
|
|
4327
|
+
}
|
|
4328
|
+
|
|
4329
|
+
/** @internal */
|
|
4330
|
+
export const PostV2ProxyCompletionsKnowledgeBases$inboundSchema: z.ZodType<
|
|
4331
|
+
PostV2ProxyCompletionsKnowledgeBases,
|
|
4332
|
+
z.ZodTypeDef,
|
|
4333
|
+
unknown
|
|
4334
|
+
> = z.object({
|
|
4335
|
+
top_k: z.number().int().optional(),
|
|
4336
|
+
threshold: z.number().optional(),
|
|
4337
|
+
search_type: PostV2ProxyCompletionsSearchType$inboundSchema.default(
|
|
4338
|
+
"hybrid_search",
|
|
4339
|
+
),
|
|
4340
|
+
filter_by: z.union([
|
|
4341
|
+
z.lazy(() => PostV2ProxyCompletionsFilterByAnd$inboundSchema),
|
|
4342
|
+
z.lazy(() => PostV2ProxyCompletionsFilterByOr$inboundSchema),
|
|
4343
|
+
z.record(
|
|
4344
|
+
z.union([
|
|
4345
|
+
z.lazy(() => PostV2ProxyCompletions1Eq$inboundSchema),
|
|
4346
|
+
z.lazy(() => PostV2ProxyCompletions1Ne$inboundSchema),
|
|
4347
|
+
z.lazy(() => PostV2ProxyCompletions13$inboundSchema),
|
|
4348
|
+
z.lazy(() => PostV2ProxyCompletions1Gte$inboundSchema),
|
|
4349
|
+
z.lazy(() => PostV2ProxyCompletions1Lt$inboundSchema),
|
|
4350
|
+
z.lazy(() => PostV2ProxyCompletions1Lte$inboundSchema),
|
|
4351
|
+
z.lazy(() => PostV2ProxyCompletions1In$inboundSchema),
|
|
4352
|
+
z.lazy(() => PostV2ProxyCompletions1Nin$inboundSchema),
|
|
4353
|
+
z.lazy(() => PostV2ProxyCompletions1Exists$inboundSchema),
|
|
4354
|
+
]),
|
|
4355
|
+
),
|
|
4356
|
+
]).optional(),
|
|
4357
|
+
search_options: z.lazy(() =>
|
|
4358
|
+
PostV2ProxyCompletionsSearchOptions$inboundSchema
|
|
4359
|
+
).optional(),
|
|
4360
|
+
rerank_config: z.nullable(
|
|
4361
|
+
z.lazy(() => PostV2ProxyCompletionsRerankConfig$inboundSchema),
|
|
4362
|
+
).optional(),
|
|
4363
|
+
agentic_rag_config: z.lazy(() =>
|
|
4364
|
+
PostV2ProxyCompletionsAgenticRagConfig$inboundSchema
|
|
4365
|
+
).optional(),
|
|
4366
|
+
knowledge_id: z.string(),
|
|
4367
|
+
query: z.string().optional(),
|
|
4368
|
+
}).transform((v) => {
|
|
4369
|
+
return remap$(v, {
|
|
4370
|
+
"top_k": "topK",
|
|
4371
|
+
"search_type": "searchType",
|
|
4372
|
+
"filter_by": "filterBy",
|
|
4373
|
+
"search_options": "searchOptions",
|
|
4374
|
+
"rerank_config": "rerankConfig",
|
|
4375
|
+
"agentic_rag_config": "agenticRagConfig",
|
|
4376
|
+
"knowledge_id": "knowledgeId",
|
|
4377
|
+
});
|
|
4378
|
+
});
|
|
4379
|
+
|
|
4380
|
+
/** @internal */
|
|
4381
|
+
export type PostV2ProxyCompletionsKnowledgeBases$Outbound = {
|
|
4382
|
+
top_k?: number | undefined;
|
|
4383
|
+
threshold?: number | undefined;
|
|
4384
|
+
search_type: string;
|
|
4385
|
+
filter_by?:
|
|
4386
|
+
| PostV2ProxyCompletionsFilterByAnd$Outbound
|
|
4387
|
+
| PostV2ProxyCompletionsFilterByOr$Outbound
|
|
4388
|
+
| {
|
|
4389
|
+
[k: string]:
|
|
4390
|
+
| PostV2ProxyCompletions1Eq$Outbound
|
|
4391
|
+
| PostV2ProxyCompletions1Ne$Outbound
|
|
4392
|
+
| PostV2ProxyCompletions13$Outbound
|
|
4393
|
+
| PostV2ProxyCompletions1Gte$Outbound
|
|
4394
|
+
| PostV2ProxyCompletions1Lt$Outbound
|
|
4395
|
+
| PostV2ProxyCompletions1Lte$Outbound
|
|
4396
|
+
| PostV2ProxyCompletions1In$Outbound
|
|
4397
|
+
| PostV2ProxyCompletions1Nin$Outbound
|
|
4398
|
+
| PostV2ProxyCompletions1Exists$Outbound;
|
|
4399
|
+
}
|
|
4400
|
+
| undefined;
|
|
4401
|
+
search_options?: PostV2ProxyCompletionsSearchOptions$Outbound | undefined;
|
|
4402
|
+
rerank_config?:
|
|
4403
|
+
| PostV2ProxyCompletionsRerankConfig$Outbound
|
|
4404
|
+
| null
|
|
4405
|
+
| undefined;
|
|
4406
|
+
agentic_rag_config?:
|
|
4407
|
+
| PostV2ProxyCompletionsAgenticRagConfig$Outbound
|
|
4408
|
+
| undefined;
|
|
4409
|
+
knowledge_id: string;
|
|
4410
|
+
query?: string | undefined;
|
|
4411
|
+
};
|
|
4412
|
+
|
|
4413
|
+
/** @internal */
|
|
4414
|
+
export const PostV2ProxyCompletionsKnowledgeBases$outboundSchema: z.ZodType<
|
|
4415
|
+
PostV2ProxyCompletionsKnowledgeBases$Outbound,
|
|
4416
|
+
z.ZodTypeDef,
|
|
4417
|
+
PostV2ProxyCompletionsKnowledgeBases
|
|
4418
|
+
> = z.object({
|
|
4419
|
+
topK: z.number().int().optional(),
|
|
4420
|
+
threshold: z.number().optional(),
|
|
4421
|
+
searchType: PostV2ProxyCompletionsSearchType$outboundSchema.default(
|
|
4422
|
+
"hybrid_search",
|
|
4423
|
+
),
|
|
4424
|
+
filterBy: z.union([
|
|
4425
|
+
z.lazy(() => PostV2ProxyCompletionsFilterByAnd$outboundSchema),
|
|
4426
|
+
z.lazy(() => PostV2ProxyCompletionsFilterByOr$outboundSchema),
|
|
4427
|
+
z.record(
|
|
4428
|
+
z.union([
|
|
4429
|
+
z.lazy(() => PostV2ProxyCompletions1Eq$outboundSchema),
|
|
4430
|
+
z.lazy(() => PostV2ProxyCompletions1Ne$outboundSchema),
|
|
4431
|
+
z.lazy(() => PostV2ProxyCompletions13$outboundSchema),
|
|
4432
|
+
z.lazy(() => PostV2ProxyCompletions1Gte$outboundSchema),
|
|
4433
|
+
z.lazy(() => PostV2ProxyCompletions1Lt$outboundSchema),
|
|
4434
|
+
z.lazy(() => PostV2ProxyCompletions1Lte$outboundSchema),
|
|
4435
|
+
z.lazy(() => PostV2ProxyCompletions1In$outboundSchema),
|
|
4436
|
+
z.lazy(() => PostV2ProxyCompletions1Nin$outboundSchema),
|
|
4437
|
+
z.lazy(() => PostV2ProxyCompletions1Exists$outboundSchema),
|
|
4438
|
+
]),
|
|
4439
|
+
),
|
|
4440
|
+
]).optional(),
|
|
4441
|
+
searchOptions: z.lazy(() =>
|
|
4442
|
+
PostV2ProxyCompletionsSearchOptions$outboundSchema
|
|
4443
|
+
).optional(),
|
|
4444
|
+
rerankConfig: z.nullable(
|
|
4445
|
+
z.lazy(() => PostV2ProxyCompletionsRerankConfig$outboundSchema),
|
|
4446
|
+
).optional(),
|
|
4447
|
+
agenticRagConfig: z.lazy(() =>
|
|
4448
|
+
PostV2ProxyCompletionsAgenticRagConfig$outboundSchema
|
|
4449
|
+
).optional(),
|
|
4450
|
+
knowledgeId: z.string(),
|
|
4451
|
+
query: z.string().optional(),
|
|
4452
|
+
}).transform((v) => {
|
|
4453
|
+
return remap$(v, {
|
|
4454
|
+
topK: "top_k",
|
|
4455
|
+
searchType: "search_type",
|
|
4456
|
+
filterBy: "filter_by",
|
|
4457
|
+
searchOptions: "search_options",
|
|
4458
|
+
rerankConfig: "rerank_config",
|
|
4459
|
+
agenticRagConfig: "agentic_rag_config",
|
|
4460
|
+
knowledgeId: "knowledge_id",
|
|
4461
|
+
});
|
|
4462
|
+
});
|
|
4463
|
+
|
|
4464
|
+
/**
|
|
4465
|
+
* @internal
|
|
4466
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4467
|
+
*/
|
|
4468
|
+
export namespace PostV2ProxyCompletionsKnowledgeBases$ {
|
|
4469
|
+
/** @deprecated use `PostV2ProxyCompletionsKnowledgeBases$inboundSchema` instead. */
|
|
4470
|
+
export const inboundSchema =
|
|
4471
|
+
PostV2ProxyCompletionsKnowledgeBases$inboundSchema;
|
|
4472
|
+
/** @deprecated use `PostV2ProxyCompletionsKnowledgeBases$outboundSchema` instead. */
|
|
4473
|
+
export const outboundSchema =
|
|
4474
|
+
PostV2ProxyCompletionsKnowledgeBases$outboundSchema;
|
|
4475
|
+
/** @deprecated use `PostV2ProxyCompletionsKnowledgeBases$Outbound` instead. */
|
|
4476
|
+
export type Outbound = PostV2ProxyCompletionsKnowledgeBases$Outbound;
|
|
4477
|
+
}
|
|
4478
|
+
|
|
4479
|
+
export function postV2ProxyCompletionsKnowledgeBasesToJSON(
|
|
4480
|
+
postV2ProxyCompletionsKnowledgeBases: PostV2ProxyCompletionsKnowledgeBases,
|
|
4481
|
+
): string {
|
|
4482
|
+
return JSON.stringify(
|
|
4483
|
+
PostV2ProxyCompletionsKnowledgeBases$outboundSchema.parse(
|
|
4484
|
+
postV2ProxyCompletionsKnowledgeBases,
|
|
4485
|
+
),
|
|
4486
|
+
);
|
|
4487
|
+
}
|
|
4488
|
+
|
|
4489
|
+
export function postV2ProxyCompletionsKnowledgeBasesFromJSON(
|
|
4490
|
+
jsonString: string,
|
|
4491
|
+
): SafeParseResult<PostV2ProxyCompletionsKnowledgeBases, SDKValidationError> {
|
|
4492
|
+
return safeParse(
|
|
4493
|
+
jsonString,
|
|
4494
|
+
(x) =>
|
|
4495
|
+
PostV2ProxyCompletionsKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
4496
|
+
`Failed to parse 'PostV2ProxyCompletionsKnowledgeBases' from JSON`,
|
|
4497
|
+
);
|
|
4498
|
+
}
|
|
4499
|
+
|
|
4500
|
+
/** @internal */
|
|
4501
|
+
export const PostV2ProxyCompletionsOrq$inboundSchema: z.ZodType<
|
|
4502
|
+
PostV2ProxyCompletionsOrq,
|
|
4503
|
+
z.ZodTypeDef,
|
|
4504
|
+
unknown
|
|
4505
|
+
> = z.object({
|
|
4506
|
+
name: z.string().optional(),
|
|
4507
|
+
retry: z.lazy(() => PostV2ProxyCompletionsRetry$inboundSchema).optional(),
|
|
4508
|
+
fallbacks: z.array(
|
|
4509
|
+
z.lazy(() => PostV2ProxyCompletionsFallbacks$inboundSchema),
|
|
4510
|
+
).optional(),
|
|
4511
|
+
prompt: z.lazy(() => PostV2ProxyCompletionsPrompt$inboundSchema).optional(),
|
|
4512
|
+
contact: components.PublicContact$inboundSchema.optional(),
|
|
4513
|
+
thread: z.lazy(() => PostV2ProxyCompletionsThread$inboundSchema).optional(),
|
|
4514
|
+
inputs: z.record(z.any()).optional(),
|
|
4515
|
+
cache: z.lazy(() => PostV2ProxyCompletionsCache$inboundSchema).optional(),
|
|
4516
|
+
knowledge_bases: z.array(
|
|
4517
|
+
z.lazy(() => PostV2ProxyCompletionsKnowledgeBases$inboundSchema),
|
|
4518
|
+
).optional(),
|
|
4519
|
+
}).transform((v) => {
|
|
4520
|
+
return remap$(v, {
|
|
4521
|
+
"knowledge_bases": "knowledgeBases",
|
|
4522
|
+
});
|
|
4523
|
+
});
|
|
4524
|
+
|
|
4525
|
+
/** @internal */
|
|
4526
|
+
export type PostV2ProxyCompletionsOrq$Outbound = {
|
|
4527
|
+
name?: string | undefined;
|
|
4528
|
+
retry?: PostV2ProxyCompletionsRetry$Outbound | undefined;
|
|
4529
|
+
fallbacks?: Array<PostV2ProxyCompletionsFallbacks$Outbound> | undefined;
|
|
4530
|
+
prompt?: PostV2ProxyCompletionsPrompt$Outbound | undefined;
|
|
4531
|
+
contact?: components.PublicContact$Outbound | undefined;
|
|
4532
|
+
thread?: PostV2ProxyCompletionsThread$Outbound | undefined;
|
|
4533
|
+
inputs?: { [k: string]: any } | undefined;
|
|
4534
|
+
cache?: PostV2ProxyCompletionsCache$Outbound | undefined;
|
|
4535
|
+
knowledge_bases?:
|
|
4536
|
+
| Array<PostV2ProxyCompletionsKnowledgeBases$Outbound>
|
|
4537
|
+
| undefined;
|
|
4538
|
+
};
|
|
4539
|
+
|
|
4540
|
+
/** @internal */
|
|
4541
|
+
export const PostV2ProxyCompletionsOrq$outboundSchema: z.ZodType<
|
|
4542
|
+
PostV2ProxyCompletionsOrq$Outbound,
|
|
4543
|
+
z.ZodTypeDef,
|
|
4544
|
+
PostV2ProxyCompletionsOrq
|
|
4545
|
+
> = z.object({
|
|
4546
|
+
name: z.string().optional(),
|
|
4547
|
+
retry: z.lazy(() => PostV2ProxyCompletionsRetry$outboundSchema).optional(),
|
|
4548
|
+
fallbacks: z.array(
|
|
4549
|
+
z.lazy(() => PostV2ProxyCompletionsFallbacks$outboundSchema),
|
|
4550
|
+
).optional(),
|
|
4551
|
+
prompt: z.lazy(() => PostV2ProxyCompletionsPrompt$outboundSchema).optional(),
|
|
4552
|
+
contact: components.PublicContact$outboundSchema.optional(),
|
|
4553
|
+
thread: z.lazy(() => PostV2ProxyCompletionsThread$outboundSchema).optional(),
|
|
4554
|
+
inputs: z.record(z.any()).optional(),
|
|
4555
|
+
cache: z.lazy(() => PostV2ProxyCompletionsCache$outboundSchema).optional(),
|
|
4556
|
+
knowledgeBases: z.array(
|
|
4557
|
+
z.lazy(() => PostV2ProxyCompletionsKnowledgeBases$outboundSchema),
|
|
4558
|
+
).optional(),
|
|
4559
|
+
}).transform((v) => {
|
|
4560
|
+
return remap$(v, {
|
|
4561
|
+
knowledgeBases: "knowledge_bases",
|
|
4562
|
+
});
|
|
4563
|
+
});
|
|
4564
|
+
|
|
4565
|
+
/**
|
|
4566
|
+
* @internal
|
|
4567
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4568
|
+
*/
|
|
4569
|
+
export namespace PostV2ProxyCompletionsOrq$ {
|
|
4570
|
+
/** @deprecated use `PostV2ProxyCompletionsOrq$inboundSchema` instead. */
|
|
4571
|
+
export const inboundSchema = PostV2ProxyCompletionsOrq$inboundSchema;
|
|
4572
|
+
/** @deprecated use `PostV2ProxyCompletionsOrq$outboundSchema` instead. */
|
|
4573
|
+
export const outboundSchema = PostV2ProxyCompletionsOrq$outboundSchema;
|
|
4574
|
+
/** @deprecated use `PostV2ProxyCompletionsOrq$Outbound` instead. */
|
|
4575
|
+
export type Outbound = PostV2ProxyCompletionsOrq$Outbound;
|
|
4576
|
+
}
|
|
4577
|
+
|
|
4578
|
+
export function postV2ProxyCompletionsOrqToJSON(
|
|
4579
|
+
postV2ProxyCompletionsOrq: PostV2ProxyCompletionsOrq,
|
|
4580
|
+
): string {
|
|
4581
|
+
return JSON.stringify(
|
|
4582
|
+
PostV2ProxyCompletionsOrq$outboundSchema.parse(postV2ProxyCompletionsOrq),
|
|
4583
|
+
);
|
|
4584
|
+
}
|
|
4585
|
+
|
|
4586
|
+
export function postV2ProxyCompletionsOrqFromJSON(
|
|
4587
|
+
jsonString: string,
|
|
4588
|
+
): SafeParseResult<PostV2ProxyCompletionsOrq, SDKValidationError> {
|
|
4589
|
+
return safeParse(
|
|
4590
|
+
jsonString,
|
|
4591
|
+
(x) => PostV2ProxyCompletionsOrq$inboundSchema.parse(JSON.parse(x)),
|
|
4592
|
+
`Failed to parse 'PostV2ProxyCompletionsOrq' from JSON`,
|
|
341
4593
|
);
|
|
342
4594
|
}
|
|
343
4595
|
|
|
@@ -358,6 +4610,7 @@ export const PostV2ProxyCompletionsRequestBody$inboundSchema: z.ZodType<
|
|
|
358
4610
|
temperature: z.nullable(z.number().default(1)),
|
|
359
4611
|
top_p: z.nullable(z.number().default(1)),
|
|
360
4612
|
user: z.string().optional(),
|
|
4613
|
+
orq: z.lazy(() => PostV2ProxyCompletionsOrq$inboundSchema).optional(),
|
|
361
4614
|
stream: z.boolean().default(false),
|
|
362
4615
|
}).transform((v) => {
|
|
363
4616
|
return remap$(v, {
|
|
@@ -381,6 +4634,7 @@ export type PostV2ProxyCompletionsRequestBody$Outbound = {
|
|
|
381
4634
|
temperature: number | null;
|
|
382
4635
|
top_p: number | null;
|
|
383
4636
|
user?: string | undefined;
|
|
4637
|
+
orq?: PostV2ProxyCompletionsOrq$Outbound | undefined;
|
|
384
4638
|
stream: boolean;
|
|
385
4639
|
};
|
|
386
4640
|
|
|
@@ -401,6 +4655,7 @@ export const PostV2ProxyCompletionsRequestBody$outboundSchema: z.ZodType<
|
|
|
401
4655
|
temperature: z.nullable(z.number().default(1)),
|
|
402
4656
|
topP: z.nullable(z.number().default(1)),
|
|
403
4657
|
user: z.string().optional(),
|
|
4658
|
+
orq: z.lazy(() => PostV2ProxyCompletionsOrq$outboundSchema).optional(),
|
|
404
4659
|
stream: z.boolean().default(false),
|
|
405
4660
|
}).transform((v) => {
|
|
406
4661
|
return remap$(v, {
|