@orq-ai/node 3.6.10 → 3.6.11
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 +40 -40
- package/bin/mcp-server.js.map +21 -21
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/bulkcreatedatapoints.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/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.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/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.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/package.json +1 -1
- package/packages/orq-rc/README.md +92 -79
- package/packages/orq-rc/docs/sdks/evals/README.md +315 -14
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/evalsAll.ts +169 -0
- package/packages/orq-rc/src/funcs/{evalsRunBertScore.ts → evalsBertScore.ts} +19 -17
- package/packages/orq-rc/src/funcs/evalsDelete.ts +169 -0
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +173 -0
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +169 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +11 -3
- package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/{evalsRunBertScore.ts → evalsBertScore.ts} +5 -5
- package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +33 -0
- package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +35 -0
- package/packages/orq-rc/src/models/errors/deleteeval.ts +71 -0
- package/packages/orq-rc/src/models/errors/evalsbertscore.ts +137 -0
- package/packages/orq-rc/src/models/errors/getevals.ts +71 -0
- package/packages/orq-rc/src/models/errors/index.ts +5 -1
- package/packages/orq-rc/src/models/errors/invokeeval.ts +137 -0
- package/packages/orq-rc/src/models/errors/updateeval.ts +71 -0
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/deleteeval.ts +66 -0
- package/packages/orq-rc/src/models/operations/evalsbertscore.ts +197 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +6187 -0
- package/packages/orq-rc/src/models/operations/index.ts +5 -1
- package/packages/orq-rc/src/models/operations/invokeeval.ts +2492 -0
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +4131 -0
- package/packages/orq-rc/src/sdk/evals.ts +65 -5
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/bulkcreatedatapoints.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/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.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/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.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/packages/orq-rc/src/models/errors/runbertscore.ts +0 -137
- package/packages/orq-rc/src/models/operations/runbertscore.ts +0 -197
|
@@ -0,0 +1,4131 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type = {
|
|
13
|
+
Number: "number",
|
|
14
|
+
} as const;
|
|
15
|
+
export type UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type = ClosedEnum<
|
|
16
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type
|
|
17
|
+
>;
|
|
18
|
+
|
|
19
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator = {
|
|
20
|
+
Eq: "eq",
|
|
21
|
+
Ne: "ne",
|
|
22
|
+
Gt: "gt",
|
|
23
|
+
Gte: "gte",
|
|
24
|
+
Lt: "lt",
|
|
25
|
+
Lte: "lte",
|
|
26
|
+
} as const;
|
|
27
|
+
export type UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator =
|
|
28
|
+
ClosedEnum<typeof UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator>;
|
|
29
|
+
|
|
30
|
+
export type UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber = {
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type;
|
|
33
|
+
value: number;
|
|
34
|
+
operator: UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type = {
|
|
38
|
+
Boolean: "boolean",
|
|
39
|
+
} as const;
|
|
40
|
+
export type UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type = ClosedEnum<
|
|
41
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type
|
|
42
|
+
>;
|
|
43
|
+
|
|
44
|
+
export type UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean = {
|
|
45
|
+
enabled: boolean;
|
|
46
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type;
|
|
47
|
+
value: boolean;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export type UpdateEvalRequestBodyEvalsRequest4GuardrailConfig =
|
|
51
|
+
| UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean
|
|
52
|
+
| UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber;
|
|
53
|
+
|
|
54
|
+
export const UpdateEvalRequestBodyEvalsRequest4Type = {
|
|
55
|
+
PythonEval: "python_eval",
|
|
56
|
+
} as const;
|
|
57
|
+
export type UpdateEvalRequestBodyEvalsRequest4Type = ClosedEnum<
|
|
58
|
+
typeof UpdateEvalRequestBodyEvalsRequest4Type
|
|
59
|
+
>;
|
|
60
|
+
|
|
61
|
+
export type RequestBodyPython = {
|
|
62
|
+
guardrailConfig?:
|
|
63
|
+
| UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean
|
|
64
|
+
| UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber
|
|
65
|
+
| undefined;
|
|
66
|
+
code?: string | undefined;
|
|
67
|
+
type: UpdateEvalRequestBodyEvalsRequest4Type;
|
|
68
|
+
/**
|
|
69
|
+
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
70
|
+
*/
|
|
71
|
+
path: string;
|
|
72
|
+
description?: string | undefined;
|
|
73
|
+
key?: string | undefined;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type = {
|
|
77
|
+
Number: "number",
|
|
78
|
+
} as const;
|
|
79
|
+
export type UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type = ClosedEnum<
|
|
80
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type
|
|
81
|
+
>;
|
|
82
|
+
|
|
83
|
+
export const UpdateEvalGuardrailConfigEvalsRequestOperator = {
|
|
84
|
+
Eq: "eq",
|
|
85
|
+
Ne: "ne",
|
|
86
|
+
Gt: "gt",
|
|
87
|
+
Gte: "gte",
|
|
88
|
+
Lt: "lt",
|
|
89
|
+
Lte: "lte",
|
|
90
|
+
} as const;
|
|
91
|
+
export type UpdateEvalGuardrailConfigEvalsRequestOperator = ClosedEnum<
|
|
92
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestOperator
|
|
93
|
+
>;
|
|
94
|
+
|
|
95
|
+
export type UpdateEvalGuardrailConfigEvalsRequestNumber = {
|
|
96
|
+
enabled: boolean;
|
|
97
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type;
|
|
98
|
+
value: number;
|
|
99
|
+
operator: UpdateEvalGuardrailConfigEvalsRequestOperator;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type = {
|
|
103
|
+
Boolean: "boolean",
|
|
104
|
+
} as const;
|
|
105
|
+
export type UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type = ClosedEnum<
|
|
106
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type
|
|
107
|
+
>;
|
|
108
|
+
|
|
109
|
+
export type UpdateEvalGuardrailConfigEvalsRequestBoolean = {
|
|
110
|
+
enabled: boolean;
|
|
111
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type;
|
|
112
|
+
value: boolean;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export type UpdateEvalRequestBodyEvalsRequestGuardrailConfig =
|
|
116
|
+
| UpdateEvalGuardrailConfigEvalsRequestBoolean
|
|
117
|
+
| UpdateEvalGuardrailConfigEvalsRequestNumber;
|
|
118
|
+
|
|
119
|
+
export const UpdateEvalRequestBodyEvalsRequestType = {
|
|
120
|
+
HttpEval: "http_eval",
|
|
121
|
+
} as const;
|
|
122
|
+
export type UpdateEvalRequestBodyEvalsRequestType = ClosedEnum<
|
|
123
|
+
typeof UpdateEvalRequestBodyEvalsRequestType
|
|
124
|
+
>;
|
|
125
|
+
|
|
126
|
+
export const RequestBodyMethod = {
|
|
127
|
+
Get: "GET",
|
|
128
|
+
Post: "POST",
|
|
129
|
+
} as const;
|
|
130
|
+
export type RequestBodyMethod = ClosedEnum<typeof RequestBodyMethod>;
|
|
131
|
+
|
|
132
|
+
export type RequestBodyHTTP = {
|
|
133
|
+
guardrailConfig?:
|
|
134
|
+
| UpdateEvalGuardrailConfigEvalsRequestBoolean
|
|
135
|
+
| UpdateEvalGuardrailConfigEvalsRequestNumber
|
|
136
|
+
| undefined;
|
|
137
|
+
type: UpdateEvalRequestBodyEvalsRequestType;
|
|
138
|
+
url?: string | undefined;
|
|
139
|
+
method?: RequestBodyMethod | undefined;
|
|
140
|
+
headers?: { [k: string]: string } | undefined;
|
|
141
|
+
payload?: { [k: string]: any } | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
144
|
+
*/
|
|
145
|
+
path: string;
|
|
146
|
+
description?: string | undefined;
|
|
147
|
+
key?: string | undefined;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBodyType = {
|
|
151
|
+
Number: "number",
|
|
152
|
+
} as const;
|
|
153
|
+
export type UpdateEvalGuardrailConfigEvalsRequestRequestBodyType = ClosedEnum<
|
|
154
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBodyType
|
|
155
|
+
>;
|
|
156
|
+
|
|
157
|
+
export const UpdateEvalGuardrailConfigEvalsOperator = {
|
|
158
|
+
Eq: "eq",
|
|
159
|
+
Ne: "ne",
|
|
160
|
+
Gt: "gt",
|
|
161
|
+
Gte: "gte",
|
|
162
|
+
Lt: "lt",
|
|
163
|
+
Lte: "lte",
|
|
164
|
+
} as const;
|
|
165
|
+
export type UpdateEvalGuardrailConfigEvalsOperator = ClosedEnum<
|
|
166
|
+
typeof UpdateEvalGuardrailConfigEvalsOperator
|
|
167
|
+
>;
|
|
168
|
+
|
|
169
|
+
export type UpdateEvalGuardrailConfigEvalsNumber = {
|
|
170
|
+
enabled: boolean;
|
|
171
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBodyType;
|
|
172
|
+
value: number;
|
|
173
|
+
operator: UpdateEvalGuardrailConfigEvalsOperator;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
export const UpdateEvalGuardrailConfigEvalsRequestType = {
|
|
177
|
+
Boolean: "boolean",
|
|
178
|
+
} as const;
|
|
179
|
+
export type UpdateEvalGuardrailConfigEvalsRequestType = ClosedEnum<
|
|
180
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestType
|
|
181
|
+
>;
|
|
182
|
+
|
|
183
|
+
export type UpdateEvalGuardrailConfigEvalsBoolean = {
|
|
184
|
+
enabled: boolean;
|
|
185
|
+
type: UpdateEvalGuardrailConfigEvalsRequestType;
|
|
186
|
+
value: boolean;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
export type UpdateEvalRequestBodyEvalsGuardrailConfig =
|
|
190
|
+
| UpdateEvalGuardrailConfigEvalsBoolean
|
|
191
|
+
| UpdateEvalGuardrailConfigEvalsNumber;
|
|
192
|
+
|
|
193
|
+
export const UpdateEvalRequestBodyEvalsType = {
|
|
194
|
+
JsonSchema: "json_schema",
|
|
195
|
+
} as const;
|
|
196
|
+
export type UpdateEvalRequestBodyEvalsType = ClosedEnum<
|
|
197
|
+
typeof UpdateEvalRequestBodyEvalsType
|
|
198
|
+
>;
|
|
199
|
+
|
|
200
|
+
export type RequestBodyJSON = {
|
|
201
|
+
guardrailConfig?:
|
|
202
|
+
| UpdateEvalGuardrailConfigEvalsBoolean
|
|
203
|
+
| UpdateEvalGuardrailConfigEvalsNumber
|
|
204
|
+
| undefined;
|
|
205
|
+
type: UpdateEvalRequestBodyEvalsType;
|
|
206
|
+
schema?: string | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
209
|
+
*/
|
|
210
|
+
path: string;
|
|
211
|
+
description?: string | undefined;
|
|
212
|
+
key?: string | undefined;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
export const UpdateEvalGuardrailConfigEvalsType = {
|
|
216
|
+
Number: "number",
|
|
217
|
+
} as const;
|
|
218
|
+
export type UpdateEvalGuardrailConfigEvalsType = ClosedEnum<
|
|
219
|
+
typeof UpdateEvalGuardrailConfigEvalsType
|
|
220
|
+
>;
|
|
221
|
+
|
|
222
|
+
export const UpdateEvalGuardrailConfigOperator = {
|
|
223
|
+
Eq: "eq",
|
|
224
|
+
Ne: "ne",
|
|
225
|
+
Gt: "gt",
|
|
226
|
+
Gte: "gte",
|
|
227
|
+
Lt: "lt",
|
|
228
|
+
Lte: "lte",
|
|
229
|
+
} as const;
|
|
230
|
+
export type UpdateEvalGuardrailConfigOperator = ClosedEnum<
|
|
231
|
+
typeof UpdateEvalGuardrailConfigOperator
|
|
232
|
+
>;
|
|
233
|
+
|
|
234
|
+
export type UpdateEvalGuardrailConfigNumber = {
|
|
235
|
+
enabled: boolean;
|
|
236
|
+
type: UpdateEvalGuardrailConfigEvalsType;
|
|
237
|
+
value: number;
|
|
238
|
+
operator: UpdateEvalGuardrailConfigOperator;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export const UpdateEvalGuardrailConfigType = {
|
|
242
|
+
Boolean: "boolean",
|
|
243
|
+
} as const;
|
|
244
|
+
export type UpdateEvalGuardrailConfigType = ClosedEnum<
|
|
245
|
+
typeof UpdateEvalGuardrailConfigType
|
|
246
|
+
>;
|
|
247
|
+
|
|
248
|
+
export type UpdateEvalGuardrailConfigBoolean = {
|
|
249
|
+
enabled: boolean;
|
|
250
|
+
type: UpdateEvalGuardrailConfigType;
|
|
251
|
+
value: boolean;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
export type UpdateEvalRequestBodyGuardrailConfig =
|
|
255
|
+
| UpdateEvalGuardrailConfigBoolean
|
|
256
|
+
| UpdateEvalGuardrailConfigNumber;
|
|
257
|
+
|
|
258
|
+
export const UpdateEvalRequestBodyType = {
|
|
259
|
+
LlmEval: "llm_eval",
|
|
260
|
+
} as const;
|
|
261
|
+
export type UpdateEvalRequestBodyType = ClosedEnum<
|
|
262
|
+
typeof UpdateEvalRequestBodyType
|
|
263
|
+
>;
|
|
264
|
+
|
|
265
|
+
export type RequestBodyLLM = {
|
|
266
|
+
guardrailConfig?:
|
|
267
|
+
| UpdateEvalGuardrailConfigBoolean
|
|
268
|
+
| UpdateEvalGuardrailConfigNumber
|
|
269
|
+
| undefined;
|
|
270
|
+
type: UpdateEvalRequestBodyType;
|
|
271
|
+
prompt?: string | undefined;
|
|
272
|
+
/**
|
|
273
|
+
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
274
|
+
*/
|
|
275
|
+
path: string;
|
|
276
|
+
description?: string | undefined;
|
|
277
|
+
model?: string | undefined;
|
|
278
|
+
key?: string | undefined;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
export type UpdateEvalRequestBody =
|
|
282
|
+
| RequestBodyJSON
|
|
283
|
+
| RequestBodyPython
|
|
284
|
+
| RequestBodyLLM
|
|
285
|
+
| RequestBodyHTTP;
|
|
286
|
+
|
|
287
|
+
export type UpdateEvalRequest = {
|
|
288
|
+
id: string;
|
|
289
|
+
requestBody?:
|
|
290
|
+
| RequestBodyJSON
|
|
291
|
+
| RequestBodyPython
|
|
292
|
+
| RequestBodyLLM
|
|
293
|
+
| RequestBodyHTTP
|
|
294
|
+
| undefined;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type =
|
|
298
|
+
{
|
|
299
|
+
Number: "number",
|
|
300
|
+
} as const;
|
|
301
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type =
|
|
302
|
+
ClosedEnum<
|
|
303
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type
|
|
304
|
+
>;
|
|
305
|
+
|
|
306
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator =
|
|
307
|
+
{
|
|
308
|
+
Eq: "eq",
|
|
309
|
+
Ne: "ne",
|
|
310
|
+
Gt: "gt",
|
|
311
|
+
Gte: "gte",
|
|
312
|
+
Lt: "lt",
|
|
313
|
+
Lte: "lte",
|
|
314
|
+
} as const;
|
|
315
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator =
|
|
316
|
+
ClosedEnum<
|
|
317
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator
|
|
318
|
+
>;
|
|
319
|
+
|
|
320
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber =
|
|
321
|
+
{
|
|
322
|
+
enabled: boolean;
|
|
323
|
+
type:
|
|
324
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type;
|
|
325
|
+
value: number;
|
|
326
|
+
operator:
|
|
327
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type =
|
|
331
|
+
{
|
|
332
|
+
Boolean: "boolean",
|
|
333
|
+
} as const;
|
|
334
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type =
|
|
335
|
+
ClosedEnum<
|
|
336
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type
|
|
337
|
+
>;
|
|
338
|
+
|
|
339
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean =
|
|
340
|
+
{
|
|
341
|
+
enabled: boolean;
|
|
342
|
+
type:
|
|
343
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type;
|
|
344
|
+
value: boolean;
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
export type UpdateEvalResponseBodyEvalsResponse200GuardrailConfig =
|
|
348
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean
|
|
349
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber;
|
|
350
|
+
|
|
351
|
+
export const UpdateEvalResponseBodyEvalsResponse200Type = {
|
|
352
|
+
PythonEval: "python_eval",
|
|
353
|
+
} as const;
|
|
354
|
+
export type UpdateEvalResponseBodyEvalsResponse200Type = ClosedEnum<
|
|
355
|
+
typeof UpdateEvalResponseBodyEvalsResponse200Type
|
|
356
|
+
>;
|
|
357
|
+
|
|
358
|
+
export type UpdateEvalResponseBodyPython = {
|
|
359
|
+
id: string;
|
|
360
|
+
description: string;
|
|
361
|
+
created?: string | undefined;
|
|
362
|
+
updated?: string | undefined;
|
|
363
|
+
guardrailConfig?:
|
|
364
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean
|
|
365
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber
|
|
366
|
+
| undefined;
|
|
367
|
+
code: string;
|
|
368
|
+
type: UpdateEvalResponseBodyEvalsResponse200Type;
|
|
369
|
+
key: string;
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type =
|
|
373
|
+
{
|
|
374
|
+
Number: "number",
|
|
375
|
+
} as const;
|
|
376
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type =
|
|
377
|
+
ClosedEnum<
|
|
378
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type
|
|
379
|
+
>;
|
|
380
|
+
|
|
381
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator =
|
|
382
|
+
{
|
|
383
|
+
Eq: "eq",
|
|
384
|
+
Ne: "ne",
|
|
385
|
+
Gt: "gt",
|
|
386
|
+
Gte: "gte",
|
|
387
|
+
Lt: "lt",
|
|
388
|
+
Lte: "lte",
|
|
389
|
+
} as const;
|
|
390
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator =
|
|
391
|
+
ClosedEnum<
|
|
392
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator
|
|
393
|
+
>;
|
|
394
|
+
|
|
395
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber = {
|
|
396
|
+
enabled: boolean;
|
|
397
|
+
type:
|
|
398
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type;
|
|
399
|
+
value: number;
|
|
400
|
+
operator: UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator;
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type =
|
|
404
|
+
{
|
|
405
|
+
Boolean: "boolean",
|
|
406
|
+
} as const;
|
|
407
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type =
|
|
408
|
+
ClosedEnum<
|
|
409
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type
|
|
410
|
+
>;
|
|
411
|
+
|
|
412
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean = {
|
|
413
|
+
enabled: boolean;
|
|
414
|
+
type:
|
|
415
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type;
|
|
416
|
+
value: boolean;
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
export type UpdateEvalResponseBodyEvalsResponseGuardrailConfig =
|
|
420
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean
|
|
421
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber;
|
|
422
|
+
|
|
423
|
+
export const UpdateEvalResponseBodyEvalsResponseType = {
|
|
424
|
+
HttpEval: "http_eval",
|
|
425
|
+
} as const;
|
|
426
|
+
export type UpdateEvalResponseBodyEvalsResponseType = ClosedEnum<
|
|
427
|
+
typeof UpdateEvalResponseBodyEvalsResponseType
|
|
428
|
+
>;
|
|
429
|
+
|
|
430
|
+
export const UpdateEvalResponseBodyMethod = {
|
|
431
|
+
Get: "GET",
|
|
432
|
+
Post: "POST",
|
|
433
|
+
} as const;
|
|
434
|
+
export type UpdateEvalResponseBodyMethod = ClosedEnum<
|
|
435
|
+
typeof UpdateEvalResponseBodyMethod
|
|
436
|
+
>;
|
|
437
|
+
|
|
438
|
+
export type UpdateEvalResponseBodyHTTP = {
|
|
439
|
+
id: string;
|
|
440
|
+
description: string;
|
|
441
|
+
created?: string | undefined;
|
|
442
|
+
updated?: string | undefined;
|
|
443
|
+
guardrailConfig?:
|
|
444
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean
|
|
445
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber
|
|
446
|
+
| undefined;
|
|
447
|
+
type: UpdateEvalResponseBodyEvalsResponseType;
|
|
448
|
+
url: string;
|
|
449
|
+
method: UpdateEvalResponseBodyMethod;
|
|
450
|
+
headers: { [k: string]: string };
|
|
451
|
+
payload: { [k: string]: any };
|
|
452
|
+
key: string;
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType =
|
|
456
|
+
{
|
|
457
|
+
Number: "number",
|
|
458
|
+
} as const;
|
|
459
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType =
|
|
460
|
+
ClosedEnum<
|
|
461
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType
|
|
462
|
+
>;
|
|
463
|
+
|
|
464
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200Operator = {
|
|
465
|
+
Eq: "eq",
|
|
466
|
+
Ne: "ne",
|
|
467
|
+
Gt: "gt",
|
|
468
|
+
Gte: "gte",
|
|
469
|
+
Lt: "lt",
|
|
470
|
+
Lte: "lte",
|
|
471
|
+
} as const;
|
|
472
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200Operator = ClosedEnum<
|
|
473
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200Operator
|
|
474
|
+
>;
|
|
475
|
+
|
|
476
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200Number = {
|
|
477
|
+
enabled: boolean;
|
|
478
|
+
type:
|
|
479
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType;
|
|
480
|
+
value: number;
|
|
481
|
+
operator: UpdateEvalGuardrailConfigEvalsResponse200Operator;
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType = {
|
|
485
|
+
Boolean: "boolean",
|
|
486
|
+
} as const;
|
|
487
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType =
|
|
488
|
+
ClosedEnum<
|
|
489
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType
|
|
490
|
+
>;
|
|
491
|
+
|
|
492
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200Boolean = {
|
|
493
|
+
enabled: boolean;
|
|
494
|
+
type: UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType;
|
|
495
|
+
value: boolean;
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
export type UpdateEvalResponseBodyEvalsGuardrailConfig =
|
|
499
|
+
| UpdateEvalGuardrailConfigEvalsResponse200Boolean
|
|
500
|
+
| UpdateEvalGuardrailConfigEvalsResponse200Number;
|
|
501
|
+
|
|
502
|
+
export const UpdateEvalResponseBodyEvalsType = {
|
|
503
|
+
JsonSchema: "json_schema",
|
|
504
|
+
} as const;
|
|
505
|
+
export type UpdateEvalResponseBodyEvalsType = ClosedEnum<
|
|
506
|
+
typeof UpdateEvalResponseBodyEvalsType
|
|
507
|
+
>;
|
|
508
|
+
|
|
509
|
+
export type UpdateEvalResponseBodyJSON = {
|
|
510
|
+
id: string;
|
|
511
|
+
description: string;
|
|
512
|
+
created?: string | undefined;
|
|
513
|
+
updated?: string | undefined;
|
|
514
|
+
guardrailConfig?:
|
|
515
|
+
| UpdateEvalGuardrailConfigEvalsResponse200Boolean
|
|
516
|
+
| UpdateEvalGuardrailConfigEvalsResponse200Number
|
|
517
|
+
| undefined;
|
|
518
|
+
type: UpdateEvalResponseBodyEvalsType;
|
|
519
|
+
schema: string;
|
|
520
|
+
key: string;
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200Type = {
|
|
524
|
+
Number: "number",
|
|
525
|
+
} as const;
|
|
526
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200Type = ClosedEnum<
|
|
527
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200Type
|
|
528
|
+
>;
|
|
529
|
+
|
|
530
|
+
export const UpdateEvalGuardrailConfigEvalsResponseOperator = {
|
|
531
|
+
Eq: "eq",
|
|
532
|
+
Ne: "ne",
|
|
533
|
+
Gt: "gt",
|
|
534
|
+
Gte: "gte",
|
|
535
|
+
Lt: "lt",
|
|
536
|
+
Lte: "lte",
|
|
537
|
+
} as const;
|
|
538
|
+
export type UpdateEvalGuardrailConfigEvalsResponseOperator = ClosedEnum<
|
|
539
|
+
typeof UpdateEvalGuardrailConfigEvalsResponseOperator
|
|
540
|
+
>;
|
|
541
|
+
|
|
542
|
+
export type UpdateEvalGuardrailConfigEvalsResponseNumber = {
|
|
543
|
+
enabled: boolean;
|
|
544
|
+
type: UpdateEvalGuardrailConfigEvalsResponse200Type;
|
|
545
|
+
value: number;
|
|
546
|
+
operator: UpdateEvalGuardrailConfigEvalsResponseOperator;
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
export const UpdateEvalGuardrailConfigEvalsResponseType = {
|
|
550
|
+
Boolean: "boolean",
|
|
551
|
+
} as const;
|
|
552
|
+
export type UpdateEvalGuardrailConfigEvalsResponseType = ClosedEnum<
|
|
553
|
+
typeof UpdateEvalGuardrailConfigEvalsResponseType
|
|
554
|
+
>;
|
|
555
|
+
|
|
556
|
+
export type UpdateEvalGuardrailConfigEvalsResponseBoolean = {
|
|
557
|
+
enabled: boolean;
|
|
558
|
+
type: UpdateEvalGuardrailConfigEvalsResponseType;
|
|
559
|
+
value: boolean;
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
export type UpdateEvalResponseBodyGuardrailConfig =
|
|
563
|
+
| UpdateEvalGuardrailConfigEvalsResponseBoolean
|
|
564
|
+
| UpdateEvalGuardrailConfigEvalsResponseNumber;
|
|
565
|
+
|
|
566
|
+
export const UpdateEvalResponseBodyType = {
|
|
567
|
+
LlmEval: "llm_eval",
|
|
568
|
+
} as const;
|
|
569
|
+
export type UpdateEvalResponseBodyType = ClosedEnum<
|
|
570
|
+
typeof UpdateEvalResponseBodyType
|
|
571
|
+
>;
|
|
572
|
+
|
|
573
|
+
export type UpdateEvalResponseBodyLLM = {
|
|
574
|
+
id: string;
|
|
575
|
+
description: string;
|
|
576
|
+
created?: string | undefined;
|
|
577
|
+
updated?: string | undefined;
|
|
578
|
+
guardrailConfig?:
|
|
579
|
+
| UpdateEvalGuardrailConfigEvalsResponseBoolean
|
|
580
|
+
| UpdateEvalGuardrailConfigEvalsResponseNumber
|
|
581
|
+
| undefined;
|
|
582
|
+
type: UpdateEvalResponseBodyType;
|
|
583
|
+
prompt: string;
|
|
584
|
+
key: string;
|
|
585
|
+
model: string;
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Successfully updated an eval
|
|
590
|
+
*/
|
|
591
|
+
export type UpdateEvalResponseBody =
|
|
592
|
+
| UpdateEvalResponseBodyJSON
|
|
593
|
+
| UpdateEvalResponseBodyPython
|
|
594
|
+
| UpdateEvalResponseBodyLLM
|
|
595
|
+
| UpdateEvalResponseBodyHTTP;
|
|
596
|
+
|
|
597
|
+
/** @internal */
|
|
598
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type$inboundSchema:
|
|
599
|
+
z.ZodNativeEnum<
|
|
600
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type
|
|
601
|
+
> = z.nativeEnum(UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type);
|
|
602
|
+
|
|
603
|
+
/** @internal */
|
|
604
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type$outboundSchema:
|
|
605
|
+
z.ZodNativeEnum<
|
|
606
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type
|
|
607
|
+
> = UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type$inboundSchema;
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* @internal
|
|
611
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
612
|
+
*/
|
|
613
|
+
export namespace UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type$ {
|
|
614
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type$inboundSchema` instead. */
|
|
615
|
+
export const inboundSchema =
|
|
616
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type$inboundSchema;
|
|
617
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type$outboundSchema` instead. */
|
|
618
|
+
export const outboundSchema =
|
|
619
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type$outboundSchema;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/** @internal */
|
|
623
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator$inboundSchema:
|
|
624
|
+
z.ZodNativeEnum<
|
|
625
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator
|
|
626
|
+
> = z.nativeEnum(UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator);
|
|
627
|
+
|
|
628
|
+
/** @internal */
|
|
629
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator$outboundSchema:
|
|
630
|
+
z.ZodNativeEnum<
|
|
631
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator
|
|
632
|
+
> = UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator$inboundSchema;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* @internal
|
|
636
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
637
|
+
*/
|
|
638
|
+
export namespace UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator$ {
|
|
639
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator$inboundSchema` instead. */
|
|
640
|
+
export const inboundSchema =
|
|
641
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator$inboundSchema;
|
|
642
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator$outboundSchema` instead. */
|
|
643
|
+
export const outboundSchema =
|
|
644
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator$outboundSchema;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
/** @internal */
|
|
648
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$inboundSchema:
|
|
649
|
+
z.ZodType<
|
|
650
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber,
|
|
651
|
+
z.ZodTypeDef,
|
|
652
|
+
unknown
|
|
653
|
+
> = z.object({
|
|
654
|
+
enabled: z.boolean(),
|
|
655
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type$inboundSchema,
|
|
656
|
+
value: z.number(),
|
|
657
|
+
operator:
|
|
658
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator$inboundSchema,
|
|
659
|
+
});
|
|
660
|
+
|
|
661
|
+
/** @internal */
|
|
662
|
+
export type UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$Outbound = {
|
|
663
|
+
enabled: boolean;
|
|
664
|
+
type: string;
|
|
665
|
+
value: number;
|
|
666
|
+
operator: string;
|
|
667
|
+
};
|
|
668
|
+
|
|
669
|
+
/** @internal */
|
|
670
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema:
|
|
671
|
+
z.ZodType<
|
|
672
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$Outbound,
|
|
673
|
+
z.ZodTypeDef,
|
|
674
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber
|
|
675
|
+
> = z.object({
|
|
676
|
+
enabled: z.boolean(),
|
|
677
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBody42Type$outboundSchema,
|
|
678
|
+
value: z.number(),
|
|
679
|
+
operator:
|
|
680
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator$outboundSchema,
|
|
681
|
+
});
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* @internal
|
|
685
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
686
|
+
*/
|
|
687
|
+
export namespace UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$ {
|
|
688
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$inboundSchema` instead. */
|
|
689
|
+
export const inboundSchema =
|
|
690
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$inboundSchema;
|
|
691
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema` instead. */
|
|
692
|
+
export const outboundSchema =
|
|
693
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema;
|
|
694
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$Outbound` instead. */
|
|
695
|
+
export type Outbound =
|
|
696
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$Outbound;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
export function updateEvalGuardrailConfigEvalsRequestRequestBodyNumberToJSON(
|
|
700
|
+
updateEvalGuardrailConfigEvalsRequestRequestBodyNumber:
|
|
701
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber,
|
|
702
|
+
): string {
|
|
703
|
+
return JSON.stringify(
|
|
704
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema.parse(
|
|
705
|
+
updateEvalGuardrailConfigEvalsRequestRequestBodyNumber,
|
|
706
|
+
),
|
|
707
|
+
);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
export function updateEvalGuardrailConfigEvalsRequestRequestBodyNumberFromJSON(
|
|
711
|
+
jsonString: string,
|
|
712
|
+
): SafeParseResult<
|
|
713
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber,
|
|
714
|
+
SDKValidationError
|
|
715
|
+
> {
|
|
716
|
+
return safeParse(
|
|
717
|
+
jsonString,
|
|
718
|
+
(x) =>
|
|
719
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$inboundSchema
|
|
720
|
+
.parse(JSON.parse(x)),
|
|
721
|
+
`Failed to parse 'UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber' from JSON`,
|
|
722
|
+
);
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/** @internal */
|
|
726
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type$inboundSchema:
|
|
727
|
+
z.ZodNativeEnum<
|
|
728
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type
|
|
729
|
+
> = z.nativeEnum(UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type);
|
|
730
|
+
|
|
731
|
+
/** @internal */
|
|
732
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type$outboundSchema:
|
|
733
|
+
z.ZodNativeEnum<
|
|
734
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type
|
|
735
|
+
> = UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type$inboundSchema;
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* @internal
|
|
739
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
740
|
+
*/
|
|
741
|
+
export namespace UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type$ {
|
|
742
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type$inboundSchema` instead. */
|
|
743
|
+
export const inboundSchema =
|
|
744
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type$inboundSchema;
|
|
745
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type$outboundSchema` instead. */
|
|
746
|
+
export const outboundSchema =
|
|
747
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type$outboundSchema;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/** @internal */
|
|
751
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$inboundSchema:
|
|
752
|
+
z.ZodType<
|
|
753
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean,
|
|
754
|
+
z.ZodTypeDef,
|
|
755
|
+
unknown
|
|
756
|
+
> = z.object({
|
|
757
|
+
enabled: z.boolean(),
|
|
758
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type$inboundSchema,
|
|
759
|
+
value: z.boolean(),
|
|
760
|
+
});
|
|
761
|
+
|
|
762
|
+
/** @internal */
|
|
763
|
+
export type UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$Outbound = {
|
|
764
|
+
enabled: boolean;
|
|
765
|
+
type: string;
|
|
766
|
+
value: boolean;
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
/** @internal */
|
|
770
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSchema:
|
|
771
|
+
z.ZodType<
|
|
772
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$Outbound,
|
|
773
|
+
z.ZodTypeDef,
|
|
774
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean
|
|
775
|
+
> = z.object({
|
|
776
|
+
enabled: z.boolean(),
|
|
777
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBody4Type$outboundSchema,
|
|
778
|
+
value: z.boolean(),
|
|
779
|
+
});
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* @internal
|
|
783
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
784
|
+
*/
|
|
785
|
+
export namespace UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$ {
|
|
786
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$inboundSchema` instead. */
|
|
787
|
+
export const inboundSchema =
|
|
788
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$inboundSchema;
|
|
789
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSchema` instead. */
|
|
790
|
+
export const outboundSchema =
|
|
791
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSchema;
|
|
792
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$Outbound` instead. */
|
|
793
|
+
export type Outbound =
|
|
794
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$Outbound;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
export function updateEvalGuardrailConfigEvalsRequestRequestBodyBooleanToJSON(
|
|
798
|
+
updateEvalGuardrailConfigEvalsRequestRequestBodyBoolean:
|
|
799
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean,
|
|
800
|
+
): string {
|
|
801
|
+
return JSON.stringify(
|
|
802
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSchema
|
|
803
|
+
.parse(updateEvalGuardrailConfigEvalsRequestRequestBodyBoolean),
|
|
804
|
+
);
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
export function updateEvalGuardrailConfigEvalsRequestRequestBodyBooleanFromJSON(
|
|
808
|
+
jsonString: string,
|
|
809
|
+
): SafeParseResult<
|
|
810
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean,
|
|
811
|
+
SDKValidationError
|
|
812
|
+
> {
|
|
813
|
+
return safeParse(
|
|
814
|
+
jsonString,
|
|
815
|
+
(x) =>
|
|
816
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$inboundSchema
|
|
817
|
+
.parse(JSON.parse(x)),
|
|
818
|
+
`Failed to parse 'UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean' from JSON`,
|
|
819
|
+
);
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
/** @internal */
|
|
823
|
+
export const UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$inboundSchema:
|
|
824
|
+
z.ZodType<
|
|
825
|
+
UpdateEvalRequestBodyEvalsRequest4GuardrailConfig,
|
|
826
|
+
z.ZodTypeDef,
|
|
827
|
+
unknown
|
|
828
|
+
> = z.union([
|
|
829
|
+
z.lazy(() =>
|
|
830
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$inboundSchema
|
|
831
|
+
),
|
|
832
|
+
z.lazy(() =>
|
|
833
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$inboundSchema
|
|
834
|
+
),
|
|
835
|
+
]);
|
|
836
|
+
|
|
837
|
+
/** @internal */
|
|
838
|
+
export type UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$Outbound =
|
|
839
|
+
| UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$Outbound
|
|
840
|
+
| UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$Outbound;
|
|
841
|
+
|
|
842
|
+
/** @internal */
|
|
843
|
+
export const UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$outboundSchema:
|
|
844
|
+
z.ZodType<
|
|
845
|
+
UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$Outbound,
|
|
846
|
+
z.ZodTypeDef,
|
|
847
|
+
UpdateEvalRequestBodyEvalsRequest4GuardrailConfig
|
|
848
|
+
> = z.union([
|
|
849
|
+
z.lazy(() =>
|
|
850
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSchema
|
|
851
|
+
),
|
|
852
|
+
z.lazy(() =>
|
|
853
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema
|
|
854
|
+
),
|
|
855
|
+
]);
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* @internal
|
|
859
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
860
|
+
*/
|
|
861
|
+
export namespace UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$ {
|
|
862
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$inboundSchema` instead. */
|
|
863
|
+
export const inboundSchema =
|
|
864
|
+
UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$inboundSchema;
|
|
865
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$outboundSchema` instead. */
|
|
866
|
+
export const outboundSchema =
|
|
867
|
+
UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$outboundSchema;
|
|
868
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$Outbound` instead. */
|
|
869
|
+
export type Outbound =
|
|
870
|
+
UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$Outbound;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
export function updateEvalRequestBodyEvalsRequest4GuardrailConfigToJSON(
|
|
874
|
+
updateEvalRequestBodyEvalsRequest4GuardrailConfig:
|
|
875
|
+
UpdateEvalRequestBodyEvalsRequest4GuardrailConfig,
|
|
876
|
+
): string {
|
|
877
|
+
return JSON.stringify(
|
|
878
|
+
UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$outboundSchema.parse(
|
|
879
|
+
updateEvalRequestBodyEvalsRequest4GuardrailConfig,
|
|
880
|
+
),
|
|
881
|
+
);
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
export function updateEvalRequestBodyEvalsRequest4GuardrailConfigFromJSON(
|
|
885
|
+
jsonString: string,
|
|
886
|
+
): SafeParseResult<
|
|
887
|
+
UpdateEvalRequestBodyEvalsRequest4GuardrailConfig,
|
|
888
|
+
SDKValidationError
|
|
889
|
+
> {
|
|
890
|
+
return safeParse(
|
|
891
|
+
jsonString,
|
|
892
|
+
(x) =>
|
|
893
|
+
UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$inboundSchema.parse(
|
|
894
|
+
JSON.parse(x),
|
|
895
|
+
),
|
|
896
|
+
`Failed to parse 'UpdateEvalRequestBodyEvalsRequest4GuardrailConfig' from JSON`,
|
|
897
|
+
);
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/** @internal */
|
|
901
|
+
export const UpdateEvalRequestBodyEvalsRequest4Type$inboundSchema:
|
|
902
|
+
z.ZodNativeEnum<typeof UpdateEvalRequestBodyEvalsRequest4Type> = z.nativeEnum(
|
|
903
|
+
UpdateEvalRequestBodyEvalsRequest4Type,
|
|
904
|
+
);
|
|
905
|
+
|
|
906
|
+
/** @internal */
|
|
907
|
+
export const UpdateEvalRequestBodyEvalsRequest4Type$outboundSchema:
|
|
908
|
+
z.ZodNativeEnum<typeof UpdateEvalRequestBodyEvalsRequest4Type> =
|
|
909
|
+
UpdateEvalRequestBodyEvalsRequest4Type$inboundSchema;
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* @internal
|
|
913
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
914
|
+
*/
|
|
915
|
+
export namespace UpdateEvalRequestBodyEvalsRequest4Type$ {
|
|
916
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsRequest4Type$inboundSchema` instead. */
|
|
917
|
+
export const inboundSchema =
|
|
918
|
+
UpdateEvalRequestBodyEvalsRequest4Type$inboundSchema;
|
|
919
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsRequest4Type$outboundSchema` instead. */
|
|
920
|
+
export const outboundSchema =
|
|
921
|
+
UpdateEvalRequestBodyEvalsRequest4Type$outboundSchema;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/** @internal */
|
|
925
|
+
export const RequestBodyPython$inboundSchema: z.ZodType<
|
|
926
|
+
RequestBodyPython,
|
|
927
|
+
z.ZodTypeDef,
|
|
928
|
+
unknown
|
|
929
|
+
> = z.object({
|
|
930
|
+
guardrail_config: z.union([
|
|
931
|
+
z.lazy(() =>
|
|
932
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$inboundSchema
|
|
933
|
+
),
|
|
934
|
+
z.lazy(() =>
|
|
935
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$inboundSchema
|
|
936
|
+
),
|
|
937
|
+
]).optional(),
|
|
938
|
+
code: z.string().optional(),
|
|
939
|
+
type: UpdateEvalRequestBodyEvalsRequest4Type$inboundSchema,
|
|
940
|
+
path: z.string(),
|
|
941
|
+
description: z.string().optional(),
|
|
942
|
+
key: z.string().optional(),
|
|
943
|
+
}).transform((v) => {
|
|
944
|
+
return remap$(v, {
|
|
945
|
+
"guardrail_config": "guardrailConfig",
|
|
946
|
+
});
|
|
947
|
+
});
|
|
948
|
+
|
|
949
|
+
/** @internal */
|
|
950
|
+
export type RequestBodyPython$Outbound = {
|
|
951
|
+
guardrail_config?:
|
|
952
|
+
| UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$Outbound
|
|
953
|
+
| UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$Outbound
|
|
954
|
+
| undefined;
|
|
955
|
+
code?: string | undefined;
|
|
956
|
+
type: string;
|
|
957
|
+
path: string;
|
|
958
|
+
description?: string | undefined;
|
|
959
|
+
key?: string | undefined;
|
|
960
|
+
};
|
|
961
|
+
|
|
962
|
+
/** @internal */
|
|
963
|
+
export const RequestBodyPython$outboundSchema: z.ZodType<
|
|
964
|
+
RequestBodyPython$Outbound,
|
|
965
|
+
z.ZodTypeDef,
|
|
966
|
+
RequestBodyPython
|
|
967
|
+
> = z.object({
|
|
968
|
+
guardrailConfig: z.union([
|
|
969
|
+
z.lazy(() =>
|
|
970
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSchema
|
|
971
|
+
),
|
|
972
|
+
z.lazy(() =>
|
|
973
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema
|
|
974
|
+
),
|
|
975
|
+
]).optional(),
|
|
976
|
+
code: z.string().optional(),
|
|
977
|
+
type: UpdateEvalRequestBodyEvalsRequest4Type$outboundSchema,
|
|
978
|
+
path: z.string(),
|
|
979
|
+
description: z.string().optional(),
|
|
980
|
+
key: z.string().optional(),
|
|
981
|
+
}).transform((v) => {
|
|
982
|
+
return remap$(v, {
|
|
983
|
+
guardrailConfig: "guardrail_config",
|
|
984
|
+
});
|
|
985
|
+
});
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* @internal
|
|
989
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
990
|
+
*/
|
|
991
|
+
export namespace RequestBodyPython$ {
|
|
992
|
+
/** @deprecated use `RequestBodyPython$inboundSchema` instead. */
|
|
993
|
+
export const inboundSchema = RequestBodyPython$inboundSchema;
|
|
994
|
+
/** @deprecated use `RequestBodyPython$outboundSchema` instead. */
|
|
995
|
+
export const outboundSchema = RequestBodyPython$outboundSchema;
|
|
996
|
+
/** @deprecated use `RequestBodyPython$Outbound` instead. */
|
|
997
|
+
export type Outbound = RequestBodyPython$Outbound;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
export function requestBodyPythonToJSON(
|
|
1001
|
+
requestBodyPython: RequestBodyPython,
|
|
1002
|
+
): string {
|
|
1003
|
+
return JSON.stringify(
|
|
1004
|
+
RequestBodyPython$outboundSchema.parse(requestBodyPython),
|
|
1005
|
+
);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
export function requestBodyPythonFromJSON(
|
|
1009
|
+
jsonString: string,
|
|
1010
|
+
): SafeParseResult<RequestBodyPython, SDKValidationError> {
|
|
1011
|
+
return safeParse(
|
|
1012
|
+
jsonString,
|
|
1013
|
+
(x) => RequestBodyPython$inboundSchema.parse(JSON.parse(x)),
|
|
1014
|
+
`Failed to parse 'RequestBodyPython' from JSON`,
|
|
1015
|
+
);
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/** @internal */
|
|
1019
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type$inboundSchema:
|
|
1020
|
+
z.ZodNativeEnum<
|
|
1021
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type
|
|
1022
|
+
> = z.nativeEnum(UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type);
|
|
1023
|
+
|
|
1024
|
+
/** @internal */
|
|
1025
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type$outboundSchema:
|
|
1026
|
+
z.ZodNativeEnum<
|
|
1027
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type
|
|
1028
|
+
> = UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type$inboundSchema;
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* @internal
|
|
1032
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1033
|
+
*/
|
|
1034
|
+
export namespace UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type$ {
|
|
1035
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type$inboundSchema` instead. */
|
|
1036
|
+
export const inboundSchema =
|
|
1037
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type$inboundSchema;
|
|
1038
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type$outboundSchema` instead. */
|
|
1039
|
+
export const outboundSchema =
|
|
1040
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type$outboundSchema;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/** @internal */
|
|
1044
|
+
export const UpdateEvalGuardrailConfigEvalsRequestOperator$inboundSchema:
|
|
1045
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsRequestOperator> = z
|
|
1046
|
+
.nativeEnum(UpdateEvalGuardrailConfigEvalsRequestOperator);
|
|
1047
|
+
|
|
1048
|
+
/** @internal */
|
|
1049
|
+
export const UpdateEvalGuardrailConfigEvalsRequestOperator$outboundSchema:
|
|
1050
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsRequestOperator> =
|
|
1051
|
+
UpdateEvalGuardrailConfigEvalsRequestOperator$inboundSchema;
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* @internal
|
|
1055
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1056
|
+
*/
|
|
1057
|
+
export namespace UpdateEvalGuardrailConfigEvalsRequestOperator$ {
|
|
1058
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestOperator$inboundSchema` instead. */
|
|
1059
|
+
export const inboundSchema =
|
|
1060
|
+
UpdateEvalGuardrailConfigEvalsRequestOperator$inboundSchema;
|
|
1061
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestOperator$outboundSchema` instead. */
|
|
1062
|
+
export const outboundSchema =
|
|
1063
|
+
UpdateEvalGuardrailConfigEvalsRequestOperator$outboundSchema;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
/** @internal */
|
|
1067
|
+
export const UpdateEvalGuardrailConfigEvalsRequestNumber$inboundSchema:
|
|
1068
|
+
z.ZodType<
|
|
1069
|
+
UpdateEvalGuardrailConfigEvalsRequestNumber,
|
|
1070
|
+
z.ZodTypeDef,
|
|
1071
|
+
unknown
|
|
1072
|
+
> = z.object({
|
|
1073
|
+
enabled: z.boolean(),
|
|
1074
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type$inboundSchema,
|
|
1075
|
+
value: z.number(),
|
|
1076
|
+
operator: UpdateEvalGuardrailConfigEvalsRequestOperator$inboundSchema,
|
|
1077
|
+
});
|
|
1078
|
+
|
|
1079
|
+
/** @internal */
|
|
1080
|
+
export type UpdateEvalGuardrailConfigEvalsRequestNumber$Outbound = {
|
|
1081
|
+
enabled: boolean;
|
|
1082
|
+
type: string;
|
|
1083
|
+
value: number;
|
|
1084
|
+
operator: string;
|
|
1085
|
+
};
|
|
1086
|
+
|
|
1087
|
+
/** @internal */
|
|
1088
|
+
export const UpdateEvalGuardrailConfigEvalsRequestNumber$outboundSchema:
|
|
1089
|
+
z.ZodType<
|
|
1090
|
+
UpdateEvalGuardrailConfigEvalsRequestNumber$Outbound,
|
|
1091
|
+
z.ZodTypeDef,
|
|
1092
|
+
UpdateEvalGuardrailConfigEvalsRequestNumber
|
|
1093
|
+
> = z.object({
|
|
1094
|
+
enabled: z.boolean(),
|
|
1095
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBody32Type$outboundSchema,
|
|
1096
|
+
value: z.number(),
|
|
1097
|
+
operator: UpdateEvalGuardrailConfigEvalsRequestOperator$outboundSchema,
|
|
1098
|
+
});
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* @internal
|
|
1102
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1103
|
+
*/
|
|
1104
|
+
export namespace UpdateEvalGuardrailConfigEvalsRequestNumber$ {
|
|
1105
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestNumber$inboundSchema` instead. */
|
|
1106
|
+
export const inboundSchema =
|
|
1107
|
+
UpdateEvalGuardrailConfigEvalsRequestNumber$inboundSchema;
|
|
1108
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestNumber$outboundSchema` instead. */
|
|
1109
|
+
export const outboundSchema =
|
|
1110
|
+
UpdateEvalGuardrailConfigEvalsRequestNumber$outboundSchema;
|
|
1111
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestNumber$Outbound` instead. */
|
|
1112
|
+
export type Outbound = UpdateEvalGuardrailConfigEvalsRequestNumber$Outbound;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
export function updateEvalGuardrailConfigEvalsRequestNumberToJSON(
|
|
1116
|
+
updateEvalGuardrailConfigEvalsRequestNumber:
|
|
1117
|
+
UpdateEvalGuardrailConfigEvalsRequestNumber,
|
|
1118
|
+
): string {
|
|
1119
|
+
return JSON.stringify(
|
|
1120
|
+
UpdateEvalGuardrailConfigEvalsRequestNumber$outboundSchema.parse(
|
|
1121
|
+
updateEvalGuardrailConfigEvalsRequestNumber,
|
|
1122
|
+
),
|
|
1123
|
+
);
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
export function updateEvalGuardrailConfigEvalsRequestNumberFromJSON(
|
|
1127
|
+
jsonString: string,
|
|
1128
|
+
): SafeParseResult<
|
|
1129
|
+
UpdateEvalGuardrailConfigEvalsRequestNumber,
|
|
1130
|
+
SDKValidationError
|
|
1131
|
+
> {
|
|
1132
|
+
return safeParse(
|
|
1133
|
+
jsonString,
|
|
1134
|
+
(x) =>
|
|
1135
|
+
UpdateEvalGuardrailConfigEvalsRequestNumber$inboundSchema.parse(
|
|
1136
|
+
JSON.parse(x),
|
|
1137
|
+
),
|
|
1138
|
+
`Failed to parse 'UpdateEvalGuardrailConfigEvalsRequestNumber' from JSON`,
|
|
1139
|
+
);
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
/** @internal */
|
|
1143
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type$inboundSchema:
|
|
1144
|
+
z.ZodNativeEnum<
|
|
1145
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type
|
|
1146
|
+
> = z.nativeEnum(UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type);
|
|
1147
|
+
|
|
1148
|
+
/** @internal */
|
|
1149
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type$outboundSchema:
|
|
1150
|
+
z.ZodNativeEnum<
|
|
1151
|
+
typeof UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type
|
|
1152
|
+
> = UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type$inboundSchema;
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* @internal
|
|
1156
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1157
|
+
*/
|
|
1158
|
+
export namespace UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type$ {
|
|
1159
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type$inboundSchema` instead. */
|
|
1160
|
+
export const inboundSchema =
|
|
1161
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type$inboundSchema;
|
|
1162
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type$outboundSchema` instead. */
|
|
1163
|
+
export const outboundSchema =
|
|
1164
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type$outboundSchema;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/** @internal */
|
|
1168
|
+
export const UpdateEvalGuardrailConfigEvalsRequestBoolean$inboundSchema:
|
|
1169
|
+
z.ZodType<
|
|
1170
|
+
UpdateEvalGuardrailConfigEvalsRequestBoolean,
|
|
1171
|
+
z.ZodTypeDef,
|
|
1172
|
+
unknown
|
|
1173
|
+
> = z.object({
|
|
1174
|
+
enabled: z.boolean(),
|
|
1175
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type$inboundSchema,
|
|
1176
|
+
value: z.boolean(),
|
|
1177
|
+
});
|
|
1178
|
+
|
|
1179
|
+
/** @internal */
|
|
1180
|
+
export type UpdateEvalGuardrailConfigEvalsRequestBoolean$Outbound = {
|
|
1181
|
+
enabled: boolean;
|
|
1182
|
+
type: string;
|
|
1183
|
+
value: boolean;
|
|
1184
|
+
};
|
|
1185
|
+
|
|
1186
|
+
/** @internal */
|
|
1187
|
+
export const UpdateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema:
|
|
1188
|
+
z.ZodType<
|
|
1189
|
+
UpdateEvalGuardrailConfigEvalsRequestBoolean$Outbound,
|
|
1190
|
+
z.ZodTypeDef,
|
|
1191
|
+
UpdateEvalGuardrailConfigEvalsRequestBoolean
|
|
1192
|
+
> = z.object({
|
|
1193
|
+
enabled: z.boolean(),
|
|
1194
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBody3Type$outboundSchema,
|
|
1195
|
+
value: z.boolean(),
|
|
1196
|
+
});
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* @internal
|
|
1200
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1201
|
+
*/
|
|
1202
|
+
export namespace UpdateEvalGuardrailConfigEvalsRequestBoolean$ {
|
|
1203
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestBoolean$inboundSchema` instead. */
|
|
1204
|
+
export const inboundSchema =
|
|
1205
|
+
UpdateEvalGuardrailConfigEvalsRequestBoolean$inboundSchema;
|
|
1206
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema` instead. */
|
|
1207
|
+
export const outboundSchema =
|
|
1208
|
+
UpdateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema;
|
|
1209
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestBoolean$Outbound` instead. */
|
|
1210
|
+
export type Outbound = UpdateEvalGuardrailConfigEvalsRequestBoolean$Outbound;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
export function updateEvalGuardrailConfigEvalsRequestBooleanToJSON(
|
|
1214
|
+
updateEvalGuardrailConfigEvalsRequestBoolean:
|
|
1215
|
+
UpdateEvalGuardrailConfigEvalsRequestBoolean,
|
|
1216
|
+
): string {
|
|
1217
|
+
return JSON.stringify(
|
|
1218
|
+
UpdateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema.parse(
|
|
1219
|
+
updateEvalGuardrailConfigEvalsRequestBoolean,
|
|
1220
|
+
),
|
|
1221
|
+
);
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
export function updateEvalGuardrailConfigEvalsRequestBooleanFromJSON(
|
|
1225
|
+
jsonString: string,
|
|
1226
|
+
): SafeParseResult<
|
|
1227
|
+
UpdateEvalGuardrailConfigEvalsRequestBoolean,
|
|
1228
|
+
SDKValidationError
|
|
1229
|
+
> {
|
|
1230
|
+
return safeParse(
|
|
1231
|
+
jsonString,
|
|
1232
|
+
(x) =>
|
|
1233
|
+
UpdateEvalGuardrailConfigEvalsRequestBoolean$inboundSchema.parse(
|
|
1234
|
+
JSON.parse(x),
|
|
1235
|
+
),
|
|
1236
|
+
`Failed to parse 'UpdateEvalGuardrailConfigEvalsRequestBoolean' from JSON`,
|
|
1237
|
+
);
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
/** @internal */
|
|
1241
|
+
export const UpdateEvalRequestBodyEvalsRequestGuardrailConfig$inboundSchema:
|
|
1242
|
+
z.ZodType<
|
|
1243
|
+
UpdateEvalRequestBodyEvalsRequestGuardrailConfig,
|
|
1244
|
+
z.ZodTypeDef,
|
|
1245
|
+
unknown
|
|
1246
|
+
> = z.union([
|
|
1247
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsRequestBoolean$inboundSchema),
|
|
1248
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsRequestNumber$inboundSchema),
|
|
1249
|
+
]);
|
|
1250
|
+
|
|
1251
|
+
/** @internal */
|
|
1252
|
+
export type UpdateEvalRequestBodyEvalsRequestGuardrailConfig$Outbound =
|
|
1253
|
+
| UpdateEvalGuardrailConfigEvalsRequestBoolean$Outbound
|
|
1254
|
+
| UpdateEvalGuardrailConfigEvalsRequestNumber$Outbound;
|
|
1255
|
+
|
|
1256
|
+
/** @internal */
|
|
1257
|
+
export const UpdateEvalRequestBodyEvalsRequestGuardrailConfig$outboundSchema:
|
|
1258
|
+
z.ZodType<
|
|
1259
|
+
UpdateEvalRequestBodyEvalsRequestGuardrailConfig$Outbound,
|
|
1260
|
+
z.ZodTypeDef,
|
|
1261
|
+
UpdateEvalRequestBodyEvalsRequestGuardrailConfig
|
|
1262
|
+
> = z.union([
|
|
1263
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema),
|
|
1264
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsRequestNumber$outboundSchema),
|
|
1265
|
+
]);
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* @internal
|
|
1269
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1270
|
+
*/
|
|
1271
|
+
export namespace UpdateEvalRequestBodyEvalsRequestGuardrailConfig$ {
|
|
1272
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsRequestGuardrailConfig$inboundSchema` instead. */
|
|
1273
|
+
export const inboundSchema =
|
|
1274
|
+
UpdateEvalRequestBodyEvalsRequestGuardrailConfig$inboundSchema;
|
|
1275
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsRequestGuardrailConfig$outboundSchema` instead. */
|
|
1276
|
+
export const outboundSchema =
|
|
1277
|
+
UpdateEvalRequestBodyEvalsRequestGuardrailConfig$outboundSchema;
|
|
1278
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsRequestGuardrailConfig$Outbound` instead. */
|
|
1279
|
+
export type Outbound =
|
|
1280
|
+
UpdateEvalRequestBodyEvalsRequestGuardrailConfig$Outbound;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
export function updateEvalRequestBodyEvalsRequestGuardrailConfigToJSON(
|
|
1284
|
+
updateEvalRequestBodyEvalsRequestGuardrailConfig:
|
|
1285
|
+
UpdateEvalRequestBodyEvalsRequestGuardrailConfig,
|
|
1286
|
+
): string {
|
|
1287
|
+
return JSON.stringify(
|
|
1288
|
+
UpdateEvalRequestBodyEvalsRequestGuardrailConfig$outboundSchema.parse(
|
|
1289
|
+
updateEvalRequestBodyEvalsRequestGuardrailConfig,
|
|
1290
|
+
),
|
|
1291
|
+
);
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
export function updateEvalRequestBodyEvalsRequestGuardrailConfigFromJSON(
|
|
1295
|
+
jsonString: string,
|
|
1296
|
+
): SafeParseResult<
|
|
1297
|
+
UpdateEvalRequestBodyEvalsRequestGuardrailConfig,
|
|
1298
|
+
SDKValidationError
|
|
1299
|
+
> {
|
|
1300
|
+
return safeParse(
|
|
1301
|
+
jsonString,
|
|
1302
|
+
(x) =>
|
|
1303
|
+
UpdateEvalRequestBodyEvalsRequestGuardrailConfig$inboundSchema.parse(
|
|
1304
|
+
JSON.parse(x),
|
|
1305
|
+
),
|
|
1306
|
+
`Failed to parse 'UpdateEvalRequestBodyEvalsRequestGuardrailConfig' from JSON`,
|
|
1307
|
+
);
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
/** @internal */
|
|
1311
|
+
export const UpdateEvalRequestBodyEvalsRequestType$inboundSchema:
|
|
1312
|
+
z.ZodNativeEnum<typeof UpdateEvalRequestBodyEvalsRequestType> = z.nativeEnum(
|
|
1313
|
+
UpdateEvalRequestBodyEvalsRequestType,
|
|
1314
|
+
);
|
|
1315
|
+
|
|
1316
|
+
/** @internal */
|
|
1317
|
+
export const UpdateEvalRequestBodyEvalsRequestType$outboundSchema:
|
|
1318
|
+
z.ZodNativeEnum<typeof UpdateEvalRequestBodyEvalsRequestType> =
|
|
1319
|
+
UpdateEvalRequestBodyEvalsRequestType$inboundSchema;
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* @internal
|
|
1323
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1324
|
+
*/
|
|
1325
|
+
export namespace UpdateEvalRequestBodyEvalsRequestType$ {
|
|
1326
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsRequestType$inboundSchema` instead. */
|
|
1327
|
+
export const inboundSchema =
|
|
1328
|
+
UpdateEvalRequestBodyEvalsRequestType$inboundSchema;
|
|
1329
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsRequestType$outboundSchema` instead. */
|
|
1330
|
+
export const outboundSchema =
|
|
1331
|
+
UpdateEvalRequestBodyEvalsRequestType$outboundSchema;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
/** @internal */
|
|
1335
|
+
export const RequestBodyMethod$inboundSchema: z.ZodNativeEnum<
|
|
1336
|
+
typeof RequestBodyMethod
|
|
1337
|
+
> = z.nativeEnum(RequestBodyMethod);
|
|
1338
|
+
|
|
1339
|
+
/** @internal */
|
|
1340
|
+
export const RequestBodyMethod$outboundSchema: z.ZodNativeEnum<
|
|
1341
|
+
typeof RequestBodyMethod
|
|
1342
|
+
> = RequestBodyMethod$inboundSchema;
|
|
1343
|
+
|
|
1344
|
+
/**
|
|
1345
|
+
* @internal
|
|
1346
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1347
|
+
*/
|
|
1348
|
+
export namespace RequestBodyMethod$ {
|
|
1349
|
+
/** @deprecated use `RequestBodyMethod$inboundSchema` instead. */
|
|
1350
|
+
export const inboundSchema = RequestBodyMethod$inboundSchema;
|
|
1351
|
+
/** @deprecated use `RequestBodyMethod$outboundSchema` instead. */
|
|
1352
|
+
export const outboundSchema = RequestBodyMethod$outboundSchema;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
/** @internal */
|
|
1356
|
+
export const RequestBodyHTTP$inboundSchema: z.ZodType<
|
|
1357
|
+
RequestBodyHTTP,
|
|
1358
|
+
z.ZodTypeDef,
|
|
1359
|
+
unknown
|
|
1360
|
+
> = z.object({
|
|
1361
|
+
guardrail_config: z.union([
|
|
1362
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsRequestBoolean$inboundSchema),
|
|
1363
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsRequestNumber$inboundSchema),
|
|
1364
|
+
]).optional(),
|
|
1365
|
+
type: UpdateEvalRequestBodyEvalsRequestType$inboundSchema,
|
|
1366
|
+
url: z.string().optional(),
|
|
1367
|
+
method: RequestBodyMethod$inboundSchema.optional(),
|
|
1368
|
+
headers: z.record(z.string()).optional(),
|
|
1369
|
+
payload: z.record(z.any()).optional(),
|
|
1370
|
+
path: z.string(),
|
|
1371
|
+
description: z.string().optional(),
|
|
1372
|
+
key: z.string().optional(),
|
|
1373
|
+
}).transform((v) => {
|
|
1374
|
+
return remap$(v, {
|
|
1375
|
+
"guardrail_config": "guardrailConfig",
|
|
1376
|
+
});
|
|
1377
|
+
});
|
|
1378
|
+
|
|
1379
|
+
/** @internal */
|
|
1380
|
+
export type RequestBodyHTTP$Outbound = {
|
|
1381
|
+
guardrail_config?:
|
|
1382
|
+
| UpdateEvalGuardrailConfigEvalsRequestBoolean$Outbound
|
|
1383
|
+
| UpdateEvalGuardrailConfigEvalsRequestNumber$Outbound
|
|
1384
|
+
| undefined;
|
|
1385
|
+
type: string;
|
|
1386
|
+
url?: string | undefined;
|
|
1387
|
+
method?: string | undefined;
|
|
1388
|
+
headers?: { [k: string]: string } | undefined;
|
|
1389
|
+
payload?: { [k: string]: any } | undefined;
|
|
1390
|
+
path: string;
|
|
1391
|
+
description?: string | undefined;
|
|
1392
|
+
key?: string | undefined;
|
|
1393
|
+
};
|
|
1394
|
+
|
|
1395
|
+
/** @internal */
|
|
1396
|
+
export const RequestBodyHTTP$outboundSchema: z.ZodType<
|
|
1397
|
+
RequestBodyHTTP$Outbound,
|
|
1398
|
+
z.ZodTypeDef,
|
|
1399
|
+
RequestBodyHTTP
|
|
1400
|
+
> = z.object({
|
|
1401
|
+
guardrailConfig: z.union([
|
|
1402
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema),
|
|
1403
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsRequestNumber$outboundSchema),
|
|
1404
|
+
]).optional(),
|
|
1405
|
+
type: UpdateEvalRequestBodyEvalsRequestType$outboundSchema,
|
|
1406
|
+
url: z.string().optional(),
|
|
1407
|
+
method: RequestBodyMethod$outboundSchema.optional(),
|
|
1408
|
+
headers: z.record(z.string()).optional(),
|
|
1409
|
+
payload: z.record(z.any()).optional(),
|
|
1410
|
+
path: z.string(),
|
|
1411
|
+
description: z.string().optional(),
|
|
1412
|
+
key: z.string().optional(),
|
|
1413
|
+
}).transform((v) => {
|
|
1414
|
+
return remap$(v, {
|
|
1415
|
+
guardrailConfig: "guardrail_config",
|
|
1416
|
+
});
|
|
1417
|
+
});
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* @internal
|
|
1421
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1422
|
+
*/
|
|
1423
|
+
export namespace RequestBodyHTTP$ {
|
|
1424
|
+
/** @deprecated use `RequestBodyHTTP$inboundSchema` instead. */
|
|
1425
|
+
export const inboundSchema = RequestBodyHTTP$inboundSchema;
|
|
1426
|
+
/** @deprecated use `RequestBodyHTTP$outboundSchema` instead. */
|
|
1427
|
+
export const outboundSchema = RequestBodyHTTP$outboundSchema;
|
|
1428
|
+
/** @deprecated use `RequestBodyHTTP$Outbound` instead. */
|
|
1429
|
+
export type Outbound = RequestBodyHTTP$Outbound;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
export function requestBodyHTTPToJSON(
|
|
1433
|
+
requestBodyHTTP: RequestBodyHTTP,
|
|
1434
|
+
): string {
|
|
1435
|
+
return JSON.stringify(RequestBodyHTTP$outboundSchema.parse(requestBodyHTTP));
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
export function requestBodyHTTPFromJSON(
|
|
1439
|
+
jsonString: string,
|
|
1440
|
+
): SafeParseResult<RequestBodyHTTP, SDKValidationError> {
|
|
1441
|
+
return safeParse(
|
|
1442
|
+
jsonString,
|
|
1443
|
+
(x) => RequestBodyHTTP$inboundSchema.parse(JSON.parse(x)),
|
|
1444
|
+
`Failed to parse 'RequestBodyHTTP' from JSON`,
|
|
1445
|
+
);
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
/** @internal */
|
|
1449
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBodyType$inboundSchema:
|
|
1450
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsRequestRequestBodyType> =
|
|
1451
|
+
z.nativeEnum(UpdateEvalGuardrailConfigEvalsRequestRequestBodyType);
|
|
1452
|
+
|
|
1453
|
+
/** @internal */
|
|
1454
|
+
export const UpdateEvalGuardrailConfigEvalsRequestRequestBodyType$outboundSchema:
|
|
1455
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsRequestRequestBodyType> =
|
|
1456
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyType$inboundSchema;
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* @internal
|
|
1460
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1461
|
+
*/
|
|
1462
|
+
export namespace UpdateEvalGuardrailConfigEvalsRequestRequestBodyType$ {
|
|
1463
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBodyType$inboundSchema` instead. */
|
|
1464
|
+
export const inboundSchema =
|
|
1465
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyType$inboundSchema;
|
|
1466
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestRequestBodyType$outboundSchema` instead. */
|
|
1467
|
+
export const outboundSchema =
|
|
1468
|
+
UpdateEvalGuardrailConfigEvalsRequestRequestBodyType$outboundSchema;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
/** @internal */
|
|
1472
|
+
export const UpdateEvalGuardrailConfigEvalsOperator$inboundSchema:
|
|
1473
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsOperator> = z.nativeEnum(
|
|
1474
|
+
UpdateEvalGuardrailConfigEvalsOperator,
|
|
1475
|
+
);
|
|
1476
|
+
|
|
1477
|
+
/** @internal */
|
|
1478
|
+
export const UpdateEvalGuardrailConfigEvalsOperator$outboundSchema:
|
|
1479
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsOperator> =
|
|
1480
|
+
UpdateEvalGuardrailConfigEvalsOperator$inboundSchema;
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* @internal
|
|
1484
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1485
|
+
*/
|
|
1486
|
+
export namespace UpdateEvalGuardrailConfigEvalsOperator$ {
|
|
1487
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsOperator$inboundSchema` instead. */
|
|
1488
|
+
export const inboundSchema =
|
|
1489
|
+
UpdateEvalGuardrailConfigEvalsOperator$inboundSchema;
|
|
1490
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsOperator$outboundSchema` instead. */
|
|
1491
|
+
export const outboundSchema =
|
|
1492
|
+
UpdateEvalGuardrailConfigEvalsOperator$outboundSchema;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
/** @internal */
|
|
1496
|
+
export const UpdateEvalGuardrailConfigEvalsNumber$inboundSchema: z.ZodType<
|
|
1497
|
+
UpdateEvalGuardrailConfigEvalsNumber,
|
|
1498
|
+
z.ZodTypeDef,
|
|
1499
|
+
unknown
|
|
1500
|
+
> = z.object({
|
|
1501
|
+
enabled: z.boolean(),
|
|
1502
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBodyType$inboundSchema,
|
|
1503
|
+
value: z.number(),
|
|
1504
|
+
operator: UpdateEvalGuardrailConfigEvalsOperator$inboundSchema,
|
|
1505
|
+
});
|
|
1506
|
+
|
|
1507
|
+
/** @internal */
|
|
1508
|
+
export type UpdateEvalGuardrailConfigEvalsNumber$Outbound = {
|
|
1509
|
+
enabled: boolean;
|
|
1510
|
+
type: string;
|
|
1511
|
+
value: number;
|
|
1512
|
+
operator: string;
|
|
1513
|
+
};
|
|
1514
|
+
|
|
1515
|
+
/** @internal */
|
|
1516
|
+
export const UpdateEvalGuardrailConfigEvalsNumber$outboundSchema: z.ZodType<
|
|
1517
|
+
UpdateEvalGuardrailConfigEvalsNumber$Outbound,
|
|
1518
|
+
z.ZodTypeDef,
|
|
1519
|
+
UpdateEvalGuardrailConfigEvalsNumber
|
|
1520
|
+
> = z.object({
|
|
1521
|
+
enabled: z.boolean(),
|
|
1522
|
+
type: UpdateEvalGuardrailConfigEvalsRequestRequestBodyType$outboundSchema,
|
|
1523
|
+
value: z.number(),
|
|
1524
|
+
operator: UpdateEvalGuardrailConfigEvalsOperator$outboundSchema,
|
|
1525
|
+
});
|
|
1526
|
+
|
|
1527
|
+
/**
|
|
1528
|
+
* @internal
|
|
1529
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1530
|
+
*/
|
|
1531
|
+
export namespace UpdateEvalGuardrailConfigEvalsNumber$ {
|
|
1532
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsNumber$inboundSchema` instead. */
|
|
1533
|
+
export const inboundSchema =
|
|
1534
|
+
UpdateEvalGuardrailConfigEvalsNumber$inboundSchema;
|
|
1535
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsNumber$outboundSchema` instead. */
|
|
1536
|
+
export const outboundSchema =
|
|
1537
|
+
UpdateEvalGuardrailConfigEvalsNumber$outboundSchema;
|
|
1538
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsNumber$Outbound` instead. */
|
|
1539
|
+
export type Outbound = UpdateEvalGuardrailConfigEvalsNumber$Outbound;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
export function updateEvalGuardrailConfigEvalsNumberToJSON(
|
|
1543
|
+
updateEvalGuardrailConfigEvalsNumber: UpdateEvalGuardrailConfigEvalsNumber,
|
|
1544
|
+
): string {
|
|
1545
|
+
return JSON.stringify(
|
|
1546
|
+
UpdateEvalGuardrailConfigEvalsNumber$outboundSchema.parse(
|
|
1547
|
+
updateEvalGuardrailConfigEvalsNumber,
|
|
1548
|
+
),
|
|
1549
|
+
);
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
export function updateEvalGuardrailConfigEvalsNumberFromJSON(
|
|
1553
|
+
jsonString: string,
|
|
1554
|
+
): SafeParseResult<UpdateEvalGuardrailConfigEvalsNumber, SDKValidationError> {
|
|
1555
|
+
return safeParse(
|
|
1556
|
+
jsonString,
|
|
1557
|
+
(x) =>
|
|
1558
|
+
UpdateEvalGuardrailConfigEvalsNumber$inboundSchema.parse(JSON.parse(x)),
|
|
1559
|
+
`Failed to parse 'UpdateEvalGuardrailConfigEvalsNumber' from JSON`,
|
|
1560
|
+
);
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
/** @internal */
|
|
1564
|
+
export const UpdateEvalGuardrailConfigEvalsRequestType$inboundSchema:
|
|
1565
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsRequestType> = z
|
|
1566
|
+
.nativeEnum(UpdateEvalGuardrailConfigEvalsRequestType);
|
|
1567
|
+
|
|
1568
|
+
/** @internal */
|
|
1569
|
+
export const UpdateEvalGuardrailConfigEvalsRequestType$outboundSchema:
|
|
1570
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsRequestType> =
|
|
1571
|
+
UpdateEvalGuardrailConfigEvalsRequestType$inboundSchema;
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* @internal
|
|
1575
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1576
|
+
*/
|
|
1577
|
+
export namespace UpdateEvalGuardrailConfigEvalsRequestType$ {
|
|
1578
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestType$inboundSchema` instead. */
|
|
1579
|
+
export const inboundSchema =
|
|
1580
|
+
UpdateEvalGuardrailConfigEvalsRequestType$inboundSchema;
|
|
1581
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsRequestType$outboundSchema` instead. */
|
|
1582
|
+
export const outboundSchema =
|
|
1583
|
+
UpdateEvalGuardrailConfigEvalsRequestType$outboundSchema;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
/** @internal */
|
|
1587
|
+
export const UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema: z.ZodType<
|
|
1588
|
+
UpdateEvalGuardrailConfigEvalsBoolean,
|
|
1589
|
+
z.ZodTypeDef,
|
|
1590
|
+
unknown
|
|
1591
|
+
> = z.object({
|
|
1592
|
+
enabled: z.boolean(),
|
|
1593
|
+
type: UpdateEvalGuardrailConfigEvalsRequestType$inboundSchema,
|
|
1594
|
+
value: z.boolean(),
|
|
1595
|
+
});
|
|
1596
|
+
|
|
1597
|
+
/** @internal */
|
|
1598
|
+
export type UpdateEvalGuardrailConfigEvalsBoolean$Outbound = {
|
|
1599
|
+
enabled: boolean;
|
|
1600
|
+
type: string;
|
|
1601
|
+
value: boolean;
|
|
1602
|
+
};
|
|
1603
|
+
|
|
1604
|
+
/** @internal */
|
|
1605
|
+
export const UpdateEvalGuardrailConfigEvalsBoolean$outboundSchema: z.ZodType<
|
|
1606
|
+
UpdateEvalGuardrailConfigEvalsBoolean$Outbound,
|
|
1607
|
+
z.ZodTypeDef,
|
|
1608
|
+
UpdateEvalGuardrailConfigEvalsBoolean
|
|
1609
|
+
> = z.object({
|
|
1610
|
+
enabled: z.boolean(),
|
|
1611
|
+
type: UpdateEvalGuardrailConfigEvalsRequestType$outboundSchema,
|
|
1612
|
+
value: z.boolean(),
|
|
1613
|
+
});
|
|
1614
|
+
|
|
1615
|
+
/**
|
|
1616
|
+
* @internal
|
|
1617
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1618
|
+
*/
|
|
1619
|
+
export namespace UpdateEvalGuardrailConfigEvalsBoolean$ {
|
|
1620
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema` instead. */
|
|
1621
|
+
export const inboundSchema =
|
|
1622
|
+
UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema;
|
|
1623
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsBoolean$outboundSchema` instead. */
|
|
1624
|
+
export const outboundSchema =
|
|
1625
|
+
UpdateEvalGuardrailConfigEvalsBoolean$outboundSchema;
|
|
1626
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsBoolean$Outbound` instead. */
|
|
1627
|
+
export type Outbound = UpdateEvalGuardrailConfigEvalsBoolean$Outbound;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
export function updateEvalGuardrailConfigEvalsBooleanToJSON(
|
|
1631
|
+
updateEvalGuardrailConfigEvalsBoolean: UpdateEvalGuardrailConfigEvalsBoolean,
|
|
1632
|
+
): string {
|
|
1633
|
+
return JSON.stringify(
|
|
1634
|
+
UpdateEvalGuardrailConfigEvalsBoolean$outboundSchema.parse(
|
|
1635
|
+
updateEvalGuardrailConfigEvalsBoolean,
|
|
1636
|
+
),
|
|
1637
|
+
);
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
export function updateEvalGuardrailConfigEvalsBooleanFromJSON(
|
|
1641
|
+
jsonString: string,
|
|
1642
|
+
): SafeParseResult<UpdateEvalGuardrailConfigEvalsBoolean, SDKValidationError> {
|
|
1643
|
+
return safeParse(
|
|
1644
|
+
jsonString,
|
|
1645
|
+
(x) =>
|
|
1646
|
+
UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema.parse(JSON.parse(x)),
|
|
1647
|
+
`Failed to parse 'UpdateEvalGuardrailConfigEvalsBoolean' from JSON`,
|
|
1648
|
+
);
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
/** @internal */
|
|
1652
|
+
export const UpdateEvalRequestBodyEvalsGuardrailConfig$inboundSchema: z.ZodType<
|
|
1653
|
+
UpdateEvalRequestBodyEvalsGuardrailConfig,
|
|
1654
|
+
z.ZodTypeDef,
|
|
1655
|
+
unknown
|
|
1656
|
+
> = z.union([
|
|
1657
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
|
|
1658
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsNumber$inboundSchema),
|
|
1659
|
+
]);
|
|
1660
|
+
|
|
1661
|
+
/** @internal */
|
|
1662
|
+
export type UpdateEvalRequestBodyEvalsGuardrailConfig$Outbound =
|
|
1663
|
+
| UpdateEvalGuardrailConfigEvalsBoolean$Outbound
|
|
1664
|
+
| UpdateEvalGuardrailConfigEvalsNumber$Outbound;
|
|
1665
|
+
|
|
1666
|
+
/** @internal */
|
|
1667
|
+
export const UpdateEvalRequestBodyEvalsGuardrailConfig$outboundSchema:
|
|
1668
|
+
z.ZodType<
|
|
1669
|
+
UpdateEvalRequestBodyEvalsGuardrailConfig$Outbound,
|
|
1670
|
+
z.ZodTypeDef,
|
|
1671
|
+
UpdateEvalRequestBodyEvalsGuardrailConfig
|
|
1672
|
+
> = z.union([
|
|
1673
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsBoolean$outboundSchema),
|
|
1674
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsNumber$outboundSchema),
|
|
1675
|
+
]);
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* @internal
|
|
1679
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1680
|
+
*/
|
|
1681
|
+
export namespace UpdateEvalRequestBodyEvalsGuardrailConfig$ {
|
|
1682
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsGuardrailConfig$inboundSchema` instead. */
|
|
1683
|
+
export const inboundSchema =
|
|
1684
|
+
UpdateEvalRequestBodyEvalsGuardrailConfig$inboundSchema;
|
|
1685
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsGuardrailConfig$outboundSchema` instead. */
|
|
1686
|
+
export const outboundSchema =
|
|
1687
|
+
UpdateEvalRequestBodyEvalsGuardrailConfig$outboundSchema;
|
|
1688
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsGuardrailConfig$Outbound` instead. */
|
|
1689
|
+
export type Outbound = UpdateEvalRequestBodyEvalsGuardrailConfig$Outbound;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
export function updateEvalRequestBodyEvalsGuardrailConfigToJSON(
|
|
1693
|
+
updateEvalRequestBodyEvalsGuardrailConfig:
|
|
1694
|
+
UpdateEvalRequestBodyEvalsGuardrailConfig,
|
|
1695
|
+
): string {
|
|
1696
|
+
return JSON.stringify(
|
|
1697
|
+
UpdateEvalRequestBodyEvalsGuardrailConfig$outboundSchema.parse(
|
|
1698
|
+
updateEvalRequestBodyEvalsGuardrailConfig,
|
|
1699
|
+
),
|
|
1700
|
+
);
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
export function updateEvalRequestBodyEvalsGuardrailConfigFromJSON(
|
|
1704
|
+
jsonString: string,
|
|
1705
|
+
): SafeParseResult<
|
|
1706
|
+
UpdateEvalRequestBodyEvalsGuardrailConfig,
|
|
1707
|
+
SDKValidationError
|
|
1708
|
+
> {
|
|
1709
|
+
return safeParse(
|
|
1710
|
+
jsonString,
|
|
1711
|
+
(x) =>
|
|
1712
|
+
UpdateEvalRequestBodyEvalsGuardrailConfig$inboundSchema.parse(
|
|
1713
|
+
JSON.parse(x),
|
|
1714
|
+
),
|
|
1715
|
+
`Failed to parse 'UpdateEvalRequestBodyEvalsGuardrailConfig' from JSON`,
|
|
1716
|
+
);
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
/** @internal */
|
|
1720
|
+
export const UpdateEvalRequestBodyEvalsType$inboundSchema: z.ZodNativeEnum<
|
|
1721
|
+
typeof UpdateEvalRequestBodyEvalsType
|
|
1722
|
+
> = z.nativeEnum(UpdateEvalRequestBodyEvalsType);
|
|
1723
|
+
|
|
1724
|
+
/** @internal */
|
|
1725
|
+
export const UpdateEvalRequestBodyEvalsType$outboundSchema: z.ZodNativeEnum<
|
|
1726
|
+
typeof UpdateEvalRequestBodyEvalsType
|
|
1727
|
+
> = UpdateEvalRequestBodyEvalsType$inboundSchema;
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* @internal
|
|
1731
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1732
|
+
*/
|
|
1733
|
+
export namespace UpdateEvalRequestBodyEvalsType$ {
|
|
1734
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsType$inboundSchema` instead. */
|
|
1735
|
+
export const inboundSchema = UpdateEvalRequestBodyEvalsType$inboundSchema;
|
|
1736
|
+
/** @deprecated use `UpdateEvalRequestBodyEvalsType$outboundSchema` instead. */
|
|
1737
|
+
export const outboundSchema = UpdateEvalRequestBodyEvalsType$outboundSchema;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
/** @internal */
|
|
1741
|
+
export const RequestBodyJSON$inboundSchema: z.ZodType<
|
|
1742
|
+
RequestBodyJSON,
|
|
1743
|
+
z.ZodTypeDef,
|
|
1744
|
+
unknown
|
|
1745
|
+
> = z.object({
|
|
1746
|
+
guardrail_config: z.union([
|
|
1747
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
|
|
1748
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsNumber$inboundSchema),
|
|
1749
|
+
]).optional(),
|
|
1750
|
+
type: UpdateEvalRequestBodyEvalsType$inboundSchema,
|
|
1751
|
+
schema: z.string().optional(),
|
|
1752
|
+
path: z.string(),
|
|
1753
|
+
description: z.string().optional(),
|
|
1754
|
+
key: z.string().optional(),
|
|
1755
|
+
}).transform((v) => {
|
|
1756
|
+
return remap$(v, {
|
|
1757
|
+
"guardrail_config": "guardrailConfig",
|
|
1758
|
+
});
|
|
1759
|
+
});
|
|
1760
|
+
|
|
1761
|
+
/** @internal */
|
|
1762
|
+
export type RequestBodyJSON$Outbound = {
|
|
1763
|
+
guardrail_config?:
|
|
1764
|
+
| UpdateEvalGuardrailConfigEvalsBoolean$Outbound
|
|
1765
|
+
| UpdateEvalGuardrailConfigEvalsNumber$Outbound
|
|
1766
|
+
| undefined;
|
|
1767
|
+
type: string;
|
|
1768
|
+
schema?: string | undefined;
|
|
1769
|
+
path: string;
|
|
1770
|
+
description?: string | undefined;
|
|
1771
|
+
key?: string | undefined;
|
|
1772
|
+
};
|
|
1773
|
+
|
|
1774
|
+
/** @internal */
|
|
1775
|
+
export const RequestBodyJSON$outboundSchema: z.ZodType<
|
|
1776
|
+
RequestBodyJSON$Outbound,
|
|
1777
|
+
z.ZodTypeDef,
|
|
1778
|
+
RequestBodyJSON
|
|
1779
|
+
> = z.object({
|
|
1780
|
+
guardrailConfig: z.union([
|
|
1781
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsBoolean$outboundSchema),
|
|
1782
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsNumber$outboundSchema),
|
|
1783
|
+
]).optional(),
|
|
1784
|
+
type: UpdateEvalRequestBodyEvalsType$outboundSchema,
|
|
1785
|
+
schema: z.string().optional(),
|
|
1786
|
+
path: z.string(),
|
|
1787
|
+
description: z.string().optional(),
|
|
1788
|
+
key: z.string().optional(),
|
|
1789
|
+
}).transform((v) => {
|
|
1790
|
+
return remap$(v, {
|
|
1791
|
+
guardrailConfig: "guardrail_config",
|
|
1792
|
+
});
|
|
1793
|
+
});
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* @internal
|
|
1797
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1798
|
+
*/
|
|
1799
|
+
export namespace RequestBodyJSON$ {
|
|
1800
|
+
/** @deprecated use `RequestBodyJSON$inboundSchema` instead. */
|
|
1801
|
+
export const inboundSchema = RequestBodyJSON$inboundSchema;
|
|
1802
|
+
/** @deprecated use `RequestBodyJSON$outboundSchema` instead. */
|
|
1803
|
+
export const outboundSchema = RequestBodyJSON$outboundSchema;
|
|
1804
|
+
/** @deprecated use `RequestBodyJSON$Outbound` instead. */
|
|
1805
|
+
export type Outbound = RequestBodyJSON$Outbound;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
export function requestBodyJSONToJSON(
|
|
1809
|
+
requestBodyJSON: RequestBodyJSON,
|
|
1810
|
+
): string {
|
|
1811
|
+
return JSON.stringify(RequestBodyJSON$outboundSchema.parse(requestBodyJSON));
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
export function requestBodyJSONFromJSON(
|
|
1815
|
+
jsonString: string,
|
|
1816
|
+
): SafeParseResult<RequestBodyJSON, SDKValidationError> {
|
|
1817
|
+
return safeParse(
|
|
1818
|
+
jsonString,
|
|
1819
|
+
(x) => RequestBodyJSON$inboundSchema.parse(JSON.parse(x)),
|
|
1820
|
+
`Failed to parse 'RequestBodyJSON' from JSON`,
|
|
1821
|
+
);
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
/** @internal */
|
|
1825
|
+
export const UpdateEvalGuardrailConfigEvalsType$inboundSchema: z.ZodNativeEnum<
|
|
1826
|
+
typeof UpdateEvalGuardrailConfigEvalsType
|
|
1827
|
+
> = z.nativeEnum(UpdateEvalGuardrailConfigEvalsType);
|
|
1828
|
+
|
|
1829
|
+
/** @internal */
|
|
1830
|
+
export const UpdateEvalGuardrailConfigEvalsType$outboundSchema: z.ZodNativeEnum<
|
|
1831
|
+
typeof UpdateEvalGuardrailConfigEvalsType
|
|
1832
|
+
> = UpdateEvalGuardrailConfigEvalsType$inboundSchema;
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* @internal
|
|
1836
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1837
|
+
*/
|
|
1838
|
+
export namespace UpdateEvalGuardrailConfigEvalsType$ {
|
|
1839
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsType$inboundSchema` instead. */
|
|
1840
|
+
export const inboundSchema = UpdateEvalGuardrailConfigEvalsType$inboundSchema;
|
|
1841
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsType$outboundSchema` instead. */
|
|
1842
|
+
export const outboundSchema =
|
|
1843
|
+
UpdateEvalGuardrailConfigEvalsType$outboundSchema;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
/** @internal */
|
|
1847
|
+
export const UpdateEvalGuardrailConfigOperator$inboundSchema: z.ZodNativeEnum<
|
|
1848
|
+
typeof UpdateEvalGuardrailConfigOperator
|
|
1849
|
+
> = z.nativeEnum(UpdateEvalGuardrailConfigOperator);
|
|
1850
|
+
|
|
1851
|
+
/** @internal */
|
|
1852
|
+
export const UpdateEvalGuardrailConfigOperator$outboundSchema: z.ZodNativeEnum<
|
|
1853
|
+
typeof UpdateEvalGuardrailConfigOperator
|
|
1854
|
+
> = UpdateEvalGuardrailConfigOperator$inboundSchema;
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* @internal
|
|
1858
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1859
|
+
*/
|
|
1860
|
+
export namespace UpdateEvalGuardrailConfigOperator$ {
|
|
1861
|
+
/** @deprecated use `UpdateEvalGuardrailConfigOperator$inboundSchema` instead. */
|
|
1862
|
+
export const inboundSchema = UpdateEvalGuardrailConfigOperator$inboundSchema;
|
|
1863
|
+
/** @deprecated use `UpdateEvalGuardrailConfigOperator$outboundSchema` instead. */
|
|
1864
|
+
export const outboundSchema =
|
|
1865
|
+
UpdateEvalGuardrailConfigOperator$outboundSchema;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
/** @internal */
|
|
1869
|
+
export const UpdateEvalGuardrailConfigNumber$inboundSchema: z.ZodType<
|
|
1870
|
+
UpdateEvalGuardrailConfigNumber,
|
|
1871
|
+
z.ZodTypeDef,
|
|
1872
|
+
unknown
|
|
1873
|
+
> = z.object({
|
|
1874
|
+
enabled: z.boolean(),
|
|
1875
|
+
type: UpdateEvalGuardrailConfigEvalsType$inboundSchema,
|
|
1876
|
+
value: z.number(),
|
|
1877
|
+
operator: UpdateEvalGuardrailConfigOperator$inboundSchema,
|
|
1878
|
+
});
|
|
1879
|
+
|
|
1880
|
+
/** @internal */
|
|
1881
|
+
export type UpdateEvalGuardrailConfigNumber$Outbound = {
|
|
1882
|
+
enabled: boolean;
|
|
1883
|
+
type: string;
|
|
1884
|
+
value: number;
|
|
1885
|
+
operator: string;
|
|
1886
|
+
};
|
|
1887
|
+
|
|
1888
|
+
/** @internal */
|
|
1889
|
+
export const UpdateEvalGuardrailConfigNumber$outboundSchema: z.ZodType<
|
|
1890
|
+
UpdateEvalGuardrailConfigNumber$Outbound,
|
|
1891
|
+
z.ZodTypeDef,
|
|
1892
|
+
UpdateEvalGuardrailConfigNumber
|
|
1893
|
+
> = z.object({
|
|
1894
|
+
enabled: z.boolean(),
|
|
1895
|
+
type: UpdateEvalGuardrailConfigEvalsType$outboundSchema,
|
|
1896
|
+
value: z.number(),
|
|
1897
|
+
operator: UpdateEvalGuardrailConfigOperator$outboundSchema,
|
|
1898
|
+
});
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* @internal
|
|
1902
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1903
|
+
*/
|
|
1904
|
+
export namespace UpdateEvalGuardrailConfigNumber$ {
|
|
1905
|
+
/** @deprecated use `UpdateEvalGuardrailConfigNumber$inboundSchema` instead. */
|
|
1906
|
+
export const inboundSchema = UpdateEvalGuardrailConfigNumber$inboundSchema;
|
|
1907
|
+
/** @deprecated use `UpdateEvalGuardrailConfigNumber$outboundSchema` instead. */
|
|
1908
|
+
export const outboundSchema = UpdateEvalGuardrailConfigNumber$outboundSchema;
|
|
1909
|
+
/** @deprecated use `UpdateEvalGuardrailConfigNumber$Outbound` instead. */
|
|
1910
|
+
export type Outbound = UpdateEvalGuardrailConfigNumber$Outbound;
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
export function updateEvalGuardrailConfigNumberToJSON(
|
|
1914
|
+
updateEvalGuardrailConfigNumber: UpdateEvalGuardrailConfigNumber,
|
|
1915
|
+
): string {
|
|
1916
|
+
return JSON.stringify(
|
|
1917
|
+
UpdateEvalGuardrailConfigNumber$outboundSchema.parse(
|
|
1918
|
+
updateEvalGuardrailConfigNumber,
|
|
1919
|
+
),
|
|
1920
|
+
);
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
export function updateEvalGuardrailConfigNumberFromJSON(
|
|
1924
|
+
jsonString: string,
|
|
1925
|
+
): SafeParseResult<UpdateEvalGuardrailConfigNumber, SDKValidationError> {
|
|
1926
|
+
return safeParse(
|
|
1927
|
+
jsonString,
|
|
1928
|
+
(x) => UpdateEvalGuardrailConfigNumber$inboundSchema.parse(JSON.parse(x)),
|
|
1929
|
+
`Failed to parse 'UpdateEvalGuardrailConfigNumber' from JSON`,
|
|
1930
|
+
);
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
/** @internal */
|
|
1934
|
+
export const UpdateEvalGuardrailConfigType$inboundSchema: z.ZodNativeEnum<
|
|
1935
|
+
typeof UpdateEvalGuardrailConfigType
|
|
1936
|
+
> = z.nativeEnum(UpdateEvalGuardrailConfigType);
|
|
1937
|
+
|
|
1938
|
+
/** @internal */
|
|
1939
|
+
export const UpdateEvalGuardrailConfigType$outboundSchema: z.ZodNativeEnum<
|
|
1940
|
+
typeof UpdateEvalGuardrailConfigType
|
|
1941
|
+
> = UpdateEvalGuardrailConfigType$inboundSchema;
|
|
1942
|
+
|
|
1943
|
+
/**
|
|
1944
|
+
* @internal
|
|
1945
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1946
|
+
*/
|
|
1947
|
+
export namespace UpdateEvalGuardrailConfigType$ {
|
|
1948
|
+
/** @deprecated use `UpdateEvalGuardrailConfigType$inboundSchema` instead. */
|
|
1949
|
+
export const inboundSchema = UpdateEvalGuardrailConfigType$inboundSchema;
|
|
1950
|
+
/** @deprecated use `UpdateEvalGuardrailConfigType$outboundSchema` instead. */
|
|
1951
|
+
export const outboundSchema = UpdateEvalGuardrailConfigType$outboundSchema;
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
/** @internal */
|
|
1955
|
+
export const UpdateEvalGuardrailConfigBoolean$inboundSchema: z.ZodType<
|
|
1956
|
+
UpdateEvalGuardrailConfigBoolean,
|
|
1957
|
+
z.ZodTypeDef,
|
|
1958
|
+
unknown
|
|
1959
|
+
> = z.object({
|
|
1960
|
+
enabled: z.boolean(),
|
|
1961
|
+
type: UpdateEvalGuardrailConfigType$inboundSchema,
|
|
1962
|
+
value: z.boolean(),
|
|
1963
|
+
});
|
|
1964
|
+
|
|
1965
|
+
/** @internal */
|
|
1966
|
+
export type UpdateEvalGuardrailConfigBoolean$Outbound = {
|
|
1967
|
+
enabled: boolean;
|
|
1968
|
+
type: string;
|
|
1969
|
+
value: boolean;
|
|
1970
|
+
};
|
|
1971
|
+
|
|
1972
|
+
/** @internal */
|
|
1973
|
+
export const UpdateEvalGuardrailConfigBoolean$outboundSchema: z.ZodType<
|
|
1974
|
+
UpdateEvalGuardrailConfigBoolean$Outbound,
|
|
1975
|
+
z.ZodTypeDef,
|
|
1976
|
+
UpdateEvalGuardrailConfigBoolean
|
|
1977
|
+
> = z.object({
|
|
1978
|
+
enabled: z.boolean(),
|
|
1979
|
+
type: UpdateEvalGuardrailConfigType$outboundSchema,
|
|
1980
|
+
value: z.boolean(),
|
|
1981
|
+
});
|
|
1982
|
+
|
|
1983
|
+
/**
|
|
1984
|
+
* @internal
|
|
1985
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1986
|
+
*/
|
|
1987
|
+
export namespace UpdateEvalGuardrailConfigBoolean$ {
|
|
1988
|
+
/** @deprecated use `UpdateEvalGuardrailConfigBoolean$inboundSchema` instead. */
|
|
1989
|
+
export const inboundSchema = UpdateEvalGuardrailConfigBoolean$inboundSchema;
|
|
1990
|
+
/** @deprecated use `UpdateEvalGuardrailConfigBoolean$outboundSchema` instead. */
|
|
1991
|
+
export const outboundSchema = UpdateEvalGuardrailConfigBoolean$outboundSchema;
|
|
1992
|
+
/** @deprecated use `UpdateEvalGuardrailConfigBoolean$Outbound` instead. */
|
|
1993
|
+
export type Outbound = UpdateEvalGuardrailConfigBoolean$Outbound;
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
export function updateEvalGuardrailConfigBooleanToJSON(
|
|
1997
|
+
updateEvalGuardrailConfigBoolean: UpdateEvalGuardrailConfigBoolean,
|
|
1998
|
+
): string {
|
|
1999
|
+
return JSON.stringify(
|
|
2000
|
+
UpdateEvalGuardrailConfigBoolean$outboundSchema.parse(
|
|
2001
|
+
updateEvalGuardrailConfigBoolean,
|
|
2002
|
+
),
|
|
2003
|
+
);
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
export function updateEvalGuardrailConfigBooleanFromJSON(
|
|
2007
|
+
jsonString: string,
|
|
2008
|
+
): SafeParseResult<UpdateEvalGuardrailConfigBoolean, SDKValidationError> {
|
|
2009
|
+
return safeParse(
|
|
2010
|
+
jsonString,
|
|
2011
|
+
(x) => UpdateEvalGuardrailConfigBoolean$inboundSchema.parse(JSON.parse(x)),
|
|
2012
|
+
`Failed to parse 'UpdateEvalGuardrailConfigBoolean' from JSON`,
|
|
2013
|
+
);
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
/** @internal */
|
|
2017
|
+
export const UpdateEvalRequestBodyGuardrailConfig$inboundSchema: z.ZodType<
|
|
2018
|
+
UpdateEvalRequestBodyGuardrailConfig,
|
|
2019
|
+
z.ZodTypeDef,
|
|
2020
|
+
unknown
|
|
2021
|
+
> = z.union([
|
|
2022
|
+
z.lazy(() => UpdateEvalGuardrailConfigBoolean$inboundSchema),
|
|
2023
|
+
z.lazy(() => UpdateEvalGuardrailConfigNumber$inboundSchema),
|
|
2024
|
+
]);
|
|
2025
|
+
|
|
2026
|
+
/** @internal */
|
|
2027
|
+
export type UpdateEvalRequestBodyGuardrailConfig$Outbound =
|
|
2028
|
+
| UpdateEvalGuardrailConfigBoolean$Outbound
|
|
2029
|
+
| UpdateEvalGuardrailConfigNumber$Outbound;
|
|
2030
|
+
|
|
2031
|
+
/** @internal */
|
|
2032
|
+
export const UpdateEvalRequestBodyGuardrailConfig$outboundSchema: z.ZodType<
|
|
2033
|
+
UpdateEvalRequestBodyGuardrailConfig$Outbound,
|
|
2034
|
+
z.ZodTypeDef,
|
|
2035
|
+
UpdateEvalRequestBodyGuardrailConfig
|
|
2036
|
+
> = z.union([
|
|
2037
|
+
z.lazy(() => UpdateEvalGuardrailConfigBoolean$outboundSchema),
|
|
2038
|
+
z.lazy(() => UpdateEvalGuardrailConfigNumber$outboundSchema),
|
|
2039
|
+
]);
|
|
2040
|
+
|
|
2041
|
+
/**
|
|
2042
|
+
* @internal
|
|
2043
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2044
|
+
*/
|
|
2045
|
+
export namespace UpdateEvalRequestBodyGuardrailConfig$ {
|
|
2046
|
+
/** @deprecated use `UpdateEvalRequestBodyGuardrailConfig$inboundSchema` instead. */
|
|
2047
|
+
export const inboundSchema =
|
|
2048
|
+
UpdateEvalRequestBodyGuardrailConfig$inboundSchema;
|
|
2049
|
+
/** @deprecated use `UpdateEvalRequestBodyGuardrailConfig$outboundSchema` instead. */
|
|
2050
|
+
export const outboundSchema =
|
|
2051
|
+
UpdateEvalRequestBodyGuardrailConfig$outboundSchema;
|
|
2052
|
+
/** @deprecated use `UpdateEvalRequestBodyGuardrailConfig$Outbound` instead. */
|
|
2053
|
+
export type Outbound = UpdateEvalRequestBodyGuardrailConfig$Outbound;
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
export function updateEvalRequestBodyGuardrailConfigToJSON(
|
|
2057
|
+
updateEvalRequestBodyGuardrailConfig: UpdateEvalRequestBodyGuardrailConfig,
|
|
2058
|
+
): string {
|
|
2059
|
+
return JSON.stringify(
|
|
2060
|
+
UpdateEvalRequestBodyGuardrailConfig$outboundSchema.parse(
|
|
2061
|
+
updateEvalRequestBodyGuardrailConfig,
|
|
2062
|
+
),
|
|
2063
|
+
);
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
export function updateEvalRequestBodyGuardrailConfigFromJSON(
|
|
2067
|
+
jsonString: string,
|
|
2068
|
+
): SafeParseResult<UpdateEvalRequestBodyGuardrailConfig, SDKValidationError> {
|
|
2069
|
+
return safeParse(
|
|
2070
|
+
jsonString,
|
|
2071
|
+
(x) =>
|
|
2072
|
+
UpdateEvalRequestBodyGuardrailConfig$inboundSchema.parse(JSON.parse(x)),
|
|
2073
|
+
`Failed to parse 'UpdateEvalRequestBodyGuardrailConfig' from JSON`,
|
|
2074
|
+
);
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
/** @internal */
|
|
2078
|
+
export const UpdateEvalRequestBodyType$inboundSchema: z.ZodNativeEnum<
|
|
2079
|
+
typeof UpdateEvalRequestBodyType
|
|
2080
|
+
> = z.nativeEnum(UpdateEvalRequestBodyType);
|
|
2081
|
+
|
|
2082
|
+
/** @internal */
|
|
2083
|
+
export const UpdateEvalRequestBodyType$outboundSchema: z.ZodNativeEnum<
|
|
2084
|
+
typeof UpdateEvalRequestBodyType
|
|
2085
|
+
> = UpdateEvalRequestBodyType$inboundSchema;
|
|
2086
|
+
|
|
2087
|
+
/**
|
|
2088
|
+
* @internal
|
|
2089
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2090
|
+
*/
|
|
2091
|
+
export namespace UpdateEvalRequestBodyType$ {
|
|
2092
|
+
/** @deprecated use `UpdateEvalRequestBodyType$inboundSchema` instead. */
|
|
2093
|
+
export const inboundSchema = UpdateEvalRequestBodyType$inboundSchema;
|
|
2094
|
+
/** @deprecated use `UpdateEvalRequestBodyType$outboundSchema` instead. */
|
|
2095
|
+
export const outboundSchema = UpdateEvalRequestBodyType$outboundSchema;
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
/** @internal */
|
|
2099
|
+
export const RequestBodyLLM$inboundSchema: z.ZodType<
|
|
2100
|
+
RequestBodyLLM,
|
|
2101
|
+
z.ZodTypeDef,
|
|
2102
|
+
unknown
|
|
2103
|
+
> = z.object({
|
|
2104
|
+
guardrail_config: z.union([
|
|
2105
|
+
z.lazy(() => UpdateEvalGuardrailConfigBoolean$inboundSchema),
|
|
2106
|
+
z.lazy(() => UpdateEvalGuardrailConfigNumber$inboundSchema),
|
|
2107
|
+
]).optional(),
|
|
2108
|
+
type: UpdateEvalRequestBodyType$inboundSchema,
|
|
2109
|
+
prompt: z.string().optional(),
|
|
2110
|
+
path: z.string(),
|
|
2111
|
+
description: z.string().optional(),
|
|
2112
|
+
model: z.string().optional(),
|
|
2113
|
+
key: z.string().optional(),
|
|
2114
|
+
}).transform((v) => {
|
|
2115
|
+
return remap$(v, {
|
|
2116
|
+
"guardrail_config": "guardrailConfig",
|
|
2117
|
+
});
|
|
2118
|
+
});
|
|
2119
|
+
|
|
2120
|
+
/** @internal */
|
|
2121
|
+
export type RequestBodyLLM$Outbound = {
|
|
2122
|
+
guardrail_config?:
|
|
2123
|
+
| UpdateEvalGuardrailConfigBoolean$Outbound
|
|
2124
|
+
| UpdateEvalGuardrailConfigNumber$Outbound
|
|
2125
|
+
| undefined;
|
|
2126
|
+
type: string;
|
|
2127
|
+
prompt?: string | undefined;
|
|
2128
|
+
path: string;
|
|
2129
|
+
description?: string | undefined;
|
|
2130
|
+
model?: string | undefined;
|
|
2131
|
+
key?: string | undefined;
|
|
2132
|
+
};
|
|
2133
|
+
|
|
2134
|
+
/** @internal */
|
|
2135
|
+
export const RequestBodyLLM$outboundSchema: z.ZodType<
|
|
2136
|
+
RequestBodyLLM$Outbound,
|
|
2137
|
+
z.ZodTypeDef,
|
|
2138
|
+
RequestBodyLLM
|
|
2139
|
+
> = z.object({
|
|
2140
|
+
guardrailConfig: z.union([
|
|
2141
|
+
z.lazy(() => UpdateEvalGuardrailConfigBoolean$outboundSchema),
|
|
2142
|
+
z.lazy(() => UpdateEvalGuardrailConfigNumber$outboundSchema),
|
|
2143
|
+
]).optional(),
|
|
2144
|
+
type: UpdateEvalRequestBodyType$outboundSchema,
|
|
2145
|
+
prompt: z.string().optional(),
|
|
2146
|
+
path: z.string(),
|
|
2147
|
+
description: z.string().optional(),
|
|
2148
|
+
model: z.string().optional(),
|
|
2149
|
+
key: z.string().optional(),
|
|
2150
|
+
}).transform((v) => {
|
|
2151
|
+
return remap$(v, {
|
|
2152
|
+
guardrailConfig: "guardrail_config",
|
|
2153
|
+
});
|
|
2154
|
+
});
|
|
2155
|
+
|
|
2156
|
+
/**
|
|
2157
|
+
* @internal
|
|
2158
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2159
|
+
*/
|
|
2160
|
+
export namespace RequestBodyLLM$ {
|
|
2161
|
+
/** @deprecated use `RequestBodyLLM$inboundSchema` instead. */
|
|
2162
|
+
export const inboundSchema = RequestBodyLLM$inboundSchema;
|
|
2163
|
+
/** @deprecated use `RequestBodyLLM$outboundSchema` instead. */
|
|
2164
|
+
export const outboundSchema = RequestBodyLLM$outboundSchema;
|
|
2165
|
+
/** @deprecated use `RequestBodyLLM$Outbound` instead. */
|
|
2166
|
+
export type Outbound = RequestBodyLLM$Outbound;
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
export function requestBodyLLMToJSON(requestBodyLLM: RequestBodyLLM): string {
|
|
2170
|
+
return JSON.stringify(RequestBodyLLM$outboundSchema.parse(requestBodyLLM));
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
export function requestBodyLLMFromJSON(
|
|
2174
|
+
jsonString: string,
|
|
2175
|
+
): SafeParseResult<RequestBodyLLM, SDKValidationError> {
|
|
2176
|
+
return safeParse(
|
|
2177
|
+
jsonString,
|
|
2178
|
+
(x) => RequestBodyLLM$inboundSchema.parse(JSON.parse(x)),
|
|
2179
|
+
`Failed to parse 'RequestBodyLLM' from JSON`,
|
|
2180
|
+
);
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
/** @internal */
|
|
2184
|
+
export const UpdateEvalRequestBody$inboundSchema: z.ZodType<
|
|
2185
|
+
UpdateEvalRequestBody,
|
|
2186
|
+
z.ZodTypeDef,
|
|
2187
|
+
unknown
|
|
2188
|
+
> = z.union([
|
|
2189
|
+
z.lazy(() => RequestBodyJSON$inboundSchema),
|
|
2190
|
+
z.lazy(() => RequestBodyPython$inboundSchema),
|
|
2191
|
+
z.lazy(() => RequestBodyLLM$inboundSchema),
|
|
2192
|
+
z.lazy(() => RequestBodyHTTP$inboundSchema),
|
|
2193
|
+
]);
|
|
2194
|
+
|
|
2195
|
+
/** @internal */
|
|
2196
|
+
export type UpdateEvalRequestBody$Outbound =
|
|
2197
|
+
| RequestBodyJSON$Outbound
|
|
2198
|
+
| RequestBodyPython$Outbound
|
|
2199
|
+
| RequestBodyLLM$Outbound
|
|
2200
|
+
| RequestBodyHTTP$Outbound;
|
|
2201
|
+
|
|
2202
|
+
/** @internal */
|
|
2203
|
+
export const UpdateEvalRequestBody$outboundSchema: z.ZodType<
|
|
2204
|
+
UpdateEvalRequestBody$Outbound,
|
|
2205
|
+
z.ZodTypeDef,
|
|
2206
|
+
UpdateEvalRequestBody
|
|
2207
|
+
> = z.union([
|
|
2208
|
+
z.lazy(() => RequestBodyJSON$outboundSchema),
|
|
2209
|
+
z.lazy(() => RequestBodyPython$outboundSchema),
|
|
2210
|
+
z.lazy(() => RequestBodyLLM$outboundSchema),
|
|
2211
|
+
z.lazy(() => RequestBodyHTTP$outboundSchema),
|
|
2212
|
+
]);
|
|
2213
|
+
|
|
2214
|
+
/**
|
|
2215
|
+
* @internal
|
|
2216
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2217
|
+
*/
|
|
2218
|
+
export namespace UpdateEvalRequestBody$ {
|
|
2219
|
+
/** @deprecated use `UpdateEvalRequestBody$inboundSchema` instead. */
|
|
2220
|
+
export const inboundSchema = UpdateEvalRequestBody$inboundSchema;
|
|
2221
|
+
/** @deprecated use `UpdateEvalRequestBody$outboundSchema` instead. */
|
|
2222
|
+
export const outboundSchema = UpdateEvalRequestBody$outboundSchema;
|
|
2223
|
+
/** @deprecated use `UpdateEvalRequestBody$Outbound` instead. */
|
|
2224
|
+
export type Outbound = UpdateEvalRequestBody$Outbound;
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
export function updateEvalRequestBodyToJSON(
|
|
2228
|
+
updateEvalRequestBody: UpdateEvalRequestBody,
|
|
2229
|
+
): string {
|
|
2230
|
+
return JSON.stringify(
|
|
2231
|
+
UpdateEvalRequestBody$outboundSchema.parse(updateEvalRequestBody),
|
|
2232
|
+
);
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
export function updateEvalRequestBodyFromJSON(
|
|
2236
|
+
jsonString: string,
|
|
2237
|
+
): SafeParseResult<UpdateEvalRequestBody, SDKValidationError> {
|
|
2238
|
+
return safeParse(
|
|
2239
|
+
jsonString,
|
|
2240
|
+
(x) => UpdateEvalRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
2241
|
+
`Failed to parse 'UpdateEvalRequestBody' from JSON`,
|
|
2242
|
+
);
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
/** @internal */
|
|
2246
|
+
export const UpdateEvalRequest$inboundSchema: z.ZodType<
|
|
2247
|
+
UpdateEvalRequest,
|
|
2248
|
+
z.ZodTypeDef,
|
|
2249
|
+
unknown
|
|
2250
|
+
> = z.object({
|
|
2251
|
+
id: z.string(),
|
|
2252
|
+
RequestBody: z.union([
|
|
2253
|
+
z.lazy(() => RequestBodyJSON$inboundSchema),
|
|
2254
|
+
z.lazy(() => RequestBodyPython$inboundSchema),
|
|
2255
|
+
z.lazy(() => RequestBodyLLM$inboundSchema),
|
|
2256
|
+
z.lazy(() => RequestBodyHTTP$inboundSchema),
|
|
2257
|
+
]).optional(),
|
|
2258
|
+
}).transform((v) => {
|
|
2259
|
+
return remap$(v, {
|
|
2260
|
+
"RequestBody": "requestBody",
|
|
2261
|
+
});
|
|
2262
|
+
});
|
|
2263
|
+
|
|
2264
|
+
/** @internal */
|
|
2265
|
+
export type UpdateEvalRequest$Outbound = {
|
|
2266
|
+
id: string;
|
|
2267
|
+
RequestBody?:
|
|
2268
|
+
| RequestBodyJSON$Outbound
|
|
2269
|
+
| RequestBodyPython$Outbound
|
|
2270
|
+
| RequestBodyLLM$Outbound
|
|
2271
|
+
| RequestBodyHTTP$Outbound
|
|
2272
|
+
| undefined;
|
|
2273
|
+
};
|
|
2274
|
+
|
|
2275
|
+
/** @internal */
|
|
2276
|
+
export const UpdateEvalRequest$outboundSchema: z.ZodType<
|
|
2277
|
+
UpdateEvalRequest$Outbound,
|
|
2278
|
+
z.ZodTypeDef,
|
|
2279
|
+
UpdateEvalRequest
|
|
2280
|
+
> = z.object({
|
|
2281
|
+
id: z.string(),
|
|
2282
|
+
requestBody: z.union([
|
|
2283
|
+
z.lazy(() => RequestBodyJSON$outboundSchema),
|
|
2284
|
+
z.lazy(() => RequestBodyPython$outboundSchema),
|
|
2285
|
+
z.lazy(() => RequestBodyLLM$outboundSchema),
|
|
2286
|
+
z.lazy(() => RequestBodyHTTP$outboundSchema),
|
|
2287
|
+
]).optional(),
|
|
2288
|
+
}).transform((v) => {
|
|
2289
|
+
return remap$(v, {
|
|
2290
|
+
requestBody: "RequestBody",
|
|
2291
|
+
});
|
|
2292
|
+
});
|
|
2293
|
+
|
|
2294
|
+
/**
|
|
2295
|
+
* @internal
|
|
2296
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2297
|
+
*/
|
|
2298
|
+
export namespace UpdateEvalRequest$ {
|
|
2299
|
+
/** @deprecated use `UpdateEvalRequest$inboundSchema` instead. */
|
|
2300
|
+
export const inboundSchema = UpdateEvalRequest$inboundSchema;
|
|
2301
|
+
/** @deprecated use `UpdateEvalRequest$outboundSchema` instead. */
|
|
2302
|
+
export const outboundSchema = UpdateEvalRequest$outboundSchema;
|
|
2303
|
+
/** @deprecated use `UpdateEvalRequest$Outbound` instead. */
|
|
2304
|
+
export type Outbound = UpdateEvalRequest$Outbound;
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
export function updateEvalRequestToJSON(
|
|
2308
|
+
updateEvalRequest: UpdateEvalRequest,
|
|
2309
|
+
): string {
|
|
2310
|
+
return JSON.stringify(
|
|
2311
|
+
UpdateEvalRequest$outboundSchema.parse(updateEvalRequest),
|
|
2312
|
+
);
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
export function updateEvalRequestFromJSON(
|
|
2316
|
+
jsonString: string,
|
|
2317
|
+
): SafeParseResult<UpdateEvalRequest, SDKValidationError> {
|
|
2318
|
+
return safeParse(
|
|
2319
|
+
jsonString,
|
|
2320
|
+
(x) => UpdateEvalRequest$inboundSchema.parse(JSON.parse(x)),
|
|
2321
|
+
`Failed to parse 'UpdateEvalRequest' from JSON`,
|
|
2322
|
+
);
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
/** @internal */
|
|
2326
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type$inboundSchema:
|
|
2327
|
+
z.ZodNativeEnum<
|
|
2328
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type
|
|
2329
|
+
> = z.nativeEnum(
|
|
2330
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type,
|
|
2331
|
+
);
|
|
2332
|
+
|
|
2333
|
+
/** @internal */
|
|
2334
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type$outboundSchema:
|
|
2335
|
+
z.ZodNativeEnum<
|
|
2336
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type
|
|
2337
|
+
> =
|
|
2338
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type$inboundSchema;
|
|
2339
|
+
|
|
2340
|
+
/**
|
|
2341
|
+
* @internal
|
|
2342
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2343
|
+
*/
|
|
2344
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type$ {
|
|
2345
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type$inboundSchema` instead. */
|
|
2346
|
+
export const inboundSchema =
|
|
2347
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type$inboundSchema;
|
|
2348
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type$outboundSchema` instead. */
|
|
2349
|
+
export const outboundSchema =
|
|
2350
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type$outboundSchema;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
/** @internal */
|
|
2354
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema:
|
|
2355
|
+
z.ZodNativeEnum<
|
|
2356
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator
|
|
2357
|
+
> = z.nativeEnum(
|
|
2358
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator,
|
|
2359
|
+
);
|
|
2360
|
+
|
|
2361
|
+
/** @internal */
|
|
2362
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$outboundSchema:
|
|
2363
|
+
z.ZodNativeEnum<
|
|
2364
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator
|
|
2365
|
+
> =
|
|
2366
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema;
|
|
2367
|
+
|
|
2368
|
+
/**
|
|
2369
|
+
* @internal
|
|
2370
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2371
|
+
*/
|
|
2372
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$ {
|
|
2373
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema` instead. */
|
|
2374
|
+
export const inboundSchema =
|
|
2375
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema;
|
|
2376
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$outboundSchema` instead. */
|
|
2377
|
+
export const outboundSchema =
|
|
2378
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$outboundSchema;
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
/** @internal */
|
|
2382
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema:
|
|
2383
|
+
z.ZodType<
|
|
2384
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber,
|
|
2385
|
+
z.ZodTypeDef,
|
|
2386
|
+
unknown
|
|
2387
|
+
> = z.object({
|
|
2388
|
+
enabled: z.boolean(),
|
|
2389
|
+
type:
|
|
2390
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type$inboundSchema,
|
|
2391
|
+
value: z.number(),
|
|
2392
|
+
operator:
|
|
2393
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema,
|
|
2394
|
+
});
|
|
2395
|
+
|
|
2396
|
+
/** @internal */
|
|
2397
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$Outbound =
|
|
2398
|
+
{
|
|
2399
|
+
enabled: boolean;
|
|
2400
|
+
type: string;
|
|
2401
|
+
value: number;
|
|
2402
|
+
operator: string;
|
|
2403
|
+
};
|
|
2404
|
+
|
|
2405
|
+
/** @internal */
|
|
2406
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema:
|
|
2407
|
+
z.ZodType<
|
|
2408
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$Outbound,
|
|
2409
|
+
z.ZodTypeDef,
|
|
2410
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber
|
|
2411
|
+
> = z.object({
|
|
2412
|
+
enabled: z.boolean(),
|
|
2413
|
+
type:
|
|
2414
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody42Type$outboundSchema,
|
|
2415
|
+
value: z.number(),
|
|
2416
|
+
operator:
|
|
2417
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$outboundSchema,
|
|
2418
|
+
});
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* @internal
|
|
2422
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2423
|
+
*/
|
|
2424
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$ {
|
|
2425
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema` instead. */
|
|
2426
|
+
export const inboundSchema =
|
|
2427
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema;
|
|
2428
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema` instead. */
|
|
2429
|
+
export const outboundSchema =
|
|
2430
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema;
|
|
2431
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$Outbound` instead. */
|
|
2432
|
+
export type Outbound =
|
|
2433
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$Outbound;
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
export function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberToJSON(
|
|
2437
|
+
updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber:
|
|
2438
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber,
|
|
2439
|
+
): string {
|
|
2440
|
+
return JSON.stringify(
|
|
2441
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
2442
|
+
.parse(
|
|
2443
|
+
updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber,
|
|
2444
|
+
),
|
|
2445
|
+
);
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
export function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON(
|
|
2449
|
+
jsonString: string,
|
|
2450
|
+
): SafeParseResult<
|
|
2451
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber,
|
|
2452
|
+
SDKValidationError
|
|
2453
|
+
> {
|
|
2454
|
+
return safeParse(
|
|
2455
|
+
jsonString,
|
|
2456
|
+
(x) =>
|
|
2457
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
2458
|
+
.parse(JSON.parse(x)),
|
|
2459
|
+
`Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber' from JSON`,
|
|
2460
|
+
);
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
/** @internal */
|
|
2464
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type$inboundSchema:
|
|
2465
|
+
z.ZodNativeEnum<
|
|
2466
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type
|
|
2467
|
+
> = z.nativeEnum(
|
|
2468
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type,
|
|
2469
|
+
);
|
|
2470
|
+
|
|
2471
|
+
/** @internal */
|
|
2472
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type$outboundSchema:
|
|
2473
|
+
z.ZodNativeEnum<
|
|
2474
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type
|
|
2475
|
+
> =
|
|
2476
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type$inboundSchema;
|
|
2477
|
+
|
|
2478
|
+
/**
|
|
2479
|
+
* @internal
|
|
2480
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2481
|
+
*/
|
|
2482
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type$ {
|
|
2483
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type$inboundSchema` instead. */
|
|
2484
|
+
export const inboundSchema =
|
|
2485
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type$inboundSchema;
|
|
2486
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type$outboundSchema` instead. */
|
|
2487
|
+
export const outboundSchema =
|
|
2488
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type$outboundSchema;
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
/** @internal */
|
|
2492
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema:
|
|
2493
|
+
z.ZodType<
|
|
2494
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean,
|
|
2495
|
+
z.ZodTypeDef,
|
|
2496
|
+
unknown
|
|
2497
|
+
> = z.object({
|
|
2498
|
+
enabled: z.boolean(),
|
|
2499
|
+
type:
|
|
2500
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type$inboundSchema,
|
|
2501
|
+
value: z.boolean(),
|
|
2502
|
+
});
|
|
2503
|
+
|
|
2504
|
+
/** @internal */
|
|
2505
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$Outbound =
|
|
2506
|
+
{
|
|
2507
|
+
enabled: boolean;
|
|
2508
|
+
type: string;
|
|
2509
|
+
value: boolean;
|
|
2510
|
+
};
|
|
2511
|
+
|
|
2512
|
+
/** @internal */
|
|
2513
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema:
|
|
2514
|
+
z.ZodType<
|
|
2515
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$Outbound,
|
|
2516
|
+
z.ZodTypeDef,
|
|
2517
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean
|
|
2518
|
+
> = z.object({
|
|
2519
|
+
enabled: z.boolean(),
|
|
2520
|
+
type:
|
|
2521
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody4Type$outboundSchema,
|
|
2522
|
+
value: z.boolean(),
|
|
2523
|
+
});
|
|
2524
|
+
|
|
2525
|
+
/**
|
|
2526
|
+
* @internal
|
|
2527
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2528
|
+
*/
|
|
2529
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$ {
|
|
2530
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema` instead. */
|
|
2531
|
+
export const inboundSchema =
|
|
2532
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema;
|
|
2533
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema` instead. */
|
|
2534
|
+
export const outboundSchema =
|
|
2535
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema;
|
|
2536
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$Outbound` instead. */
|
|
2537
|
+
export type Outbound =
|
|
2538
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$Outbound;
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
export function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanToJSON(
|
|
2542
|
+
updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean:
|
|
2543
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean,
|
|
2544
|
+
): string {
|
|
2545
|
+
return JSON.stringify(
|
|
2546
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema
|
|
2547
|
+
.parse(
|
|
2548
|
+
updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean,
|
|
2549
|
+
),
|
|
2550
|
+
);
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
export function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON(
|
|
2554
|
+
jsonString: string,
|
|
2555
|
+
): SafeParseResult<
|
|
2556
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean,
|
|
2557
|
+
SDKValidationError
|
|
2558
|
+
> {
|
|
2559
|
+
return safeParse(
|
|
2560
|
+
jsonString,
|
|
2561
|
+
(x) =>
|
|
2562
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
2563
|
+
.parse(JSON.parse(x)),
|
|
2564
|
+
`Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean' from JSON`,
|
|
2565
|
+
);
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
/** @internal */
|
|
2569
|
+
export const UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema:
|
|
2570
|
+
z.ZodType<
|
|
2571
|
+
UpdateEvalResponseBodyEvalsResponse200GuardrailConfig,
|
|
2572
|
+
z.ZodTypeDef,
|
|
2573
|
+
unknown
|
|
2574
|
+
> = z.union([
|
|
2575
|
+
z.lazy(() =>
|
|
2576
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
2577
|
+
),
|
|
2578
|
+
z.lazy(() =>
|
|
2579
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
2580
|
+
),
|
|
2581
|
+
]);
|
|
2582
|
+
|
|
2583
|
+
/** @internal */
|
|
2584
|
+
export type UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$Outbound =
|
|
2585
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$Outbound
|
|
2586
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$Outbound;
|
|
2587
|
+
|
|
2588
|
+
/** @internal */
|
|
2589
|
+
export const UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$outboundSchema:
|
|
2590
|
+
z.ZodType<
|
|
2591
|
+
UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$Outbound,
|
|
2592
|
+
z.ZodTypeDef,
|
|
2593
|
+
UpdateEvalResponseBodyEvalsResponse200GuardrailConfig
|
|
2594
|
+
> = z.union([
|
|
2595
|
+
z.lazy(() =>
|
|
2596
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema
|
|
2597
|
+
),
|
|
2598
|
+
z.lazy(() =>
|
|
2599
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
2600
|
+
),
|
|
2601
|
+
]);
|
|
2602
|
+
|
|
2603
|
+
/**
|
|
2604
|
+
* @internal
|
|
2605
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2606
|
+
*/
|
|
2607
|
+
export namespace UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$ {
|
|
2608
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema` instead. */
|
|
2609
|
+
export const inboundSchema =
|
|
2610
|
+
UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema;
|
|
2611
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$outboundSchema` instead. */
|
|
2612
|
+
export const outboundSchema =
|
|
2613
|
+
UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$outboundSchema;
|
|
2614
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$Outbound` instead. */
|
|
2615
|
+
export type Outbound =
|
|
2616
|
+
UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$Outbound;
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
export function updateEvalResponseBodyEvalsResponse200GuardrailConfigToJSON(
|
|
2620
|
+
updateEvalResponseBodyEvalsResponse200GuardrailConfig:
|
|
2621
|
+
UpdateEvalResponseBodyEvalsResponse200GuardrailConfig,
|
|
2622
|
+
): string {
|
|
2623
|
+
return JSON.stringify(
|
|
2624
|
+
UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$outboundSchema.parse(
|
|
2625
|
+
updateEvalResponseBodyEvalsResponse200GuardrailConfig,
|
|
2626
|
+
),
|
|
2627
|
+
);
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
export function updateEvalResponseBodyEvalsResponse200GuardrailConfigFromJSON(
|
|
2631
|
+
jsonString: string,
|
|
2632
|
+
): SafeParseResult<
|
|
2633
|
+
UpdateEvalResponseBodyEvalsResponse200GuardrailConfig,
|
|
2634
|
+
SDKValidationError
|
|
2635
|
+
> {
|
|
2636
|
+
return safeParse(
|
|
2637
|
+
jsonString,
|
|
2638
|
+
(x) =>
|
|
2639
|
+
UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema.parse(
|
|
2640
|
+
JSON.parse(x),
|
|
2641
|
+
),
|
|
2642
|
+
`Failed to parse 'UpdateEvalResponseBodyEvalsResponse200GuardrailConfig' from JSON`,
|
|
2643
|
+
);
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2646
|
+
/** @internal */
|
|
2647
|
+
export const UpdateEvalResponseBodyEvalsResponse200Type$inboundSchema:
|
|
2648
|
+
z.ZodNativeEnum<typeof UpdateEvalResponseBodyEvalsResponse200Type> = z
|
|
2649
|
+
.nativeEnum(UpdateEvalResponseBodyEvalsResponse200Type);
|
|
2650
|
+
|
|
2651
|
+
/** @internal */
|
|
2652
|
+
export const UpdateEvalResponseBodyEvalsResponse200Type$outboundSchema:
|
|
2653
|
+
z.ZodNativeEnum<typeof UpdateEvalResponseBodyEvalsResponse200Type> =
|
|
2654
|
+
UpdateEvalResponseBodyEvalsResponse200Type$inboundSchema;
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* @internal
|
|
2658
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2659
|
+
*/
|
|
2660
|
+
export namespace UpdateEvalResponseBodyEvalsResponse200Type$ {
|
|
2661
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsResponse200Type$inboundSchema` instead. */
|
|
2662
|
+
export const inboundSchema =
|
|
2663
|
+
UpdateEvalResponseBodyEvalsResponse200Type$inboundSchema;
|
|
2664
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsResponse200Type$outboundSchema` instead. */
|
|
2665
|
+
export const outboundSchema =
|
|
2666
|
+
UpdateEvalResponseBodyEvalsResponse200Type$outboundSchema;
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
/** @internal */
|
|
2670
|
+
export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
2671
|
+
UpdateEvalResponseBodyPython,
|
|
2672
|
+
z.ZodTypeDef,
|
|
2673
|
+
unknown
|
|
2674
|
+
> = z.object({
|
|
2675
|
+
_id: z.string(),
|
|
2676
|
+
description: z.string(),
|
|
2677
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
2678
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
2679
|
+
guardrail_config: z.union([
|
|
2680
|
+
z.lazy(() =>
|
|
2681
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
2682
|
+
),
|
|
2683
|
+
z.lazy(() =>
|
|
2684
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
2685
|
+
),
|
|
2686
|
+
]).optional(),
|
|
2687
|
+
code: z.string(),
|
|
2688
|
+
type: UpdateEvalResponseBodyEvalsResponse200Type$inboundSchema,
|
|
2689
|
+
key: z.string(),
|
|
2690
|
+
}).transform((v) => {
|
|
2691
|
+
return remap$(v, {
|
|
2692
|
+
"_id": "id",
|
|
2693
|
+
"guardrail_config": "guardrailConfig",
|
|
2694
|
+
});
|
|
2695
|
+
});
|
|
2696
|
+
|
|
2697
|
+
/** @internal */
|
|
2698
|
+
export type UpdateEvalResponseBodyPython$Outbound = {
|
|
2699
|
+
_id: string;
|
|
2700
|
+
description: string;
|
|
2701
|
+
created: string;
|
|
2702
|
+
updated: string;
|
|
2703
|
+
guardrail_config?:
|
|
2704
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$Outbound
|
|
2705
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$Outbound
|
|
2706
|
+
| undefined;
|
|
2707
|
+
code: string;
|
|
2708
|
+
type: string;
|
|
2709
|
+
key: string;
|
|
2710
|
+
};
|
|
2711
|
+
|
|
2712
|
+
/** @internal */
|
|
2713
|
+
export const UpdateEvalResponseBodyPython$outboundSchema: z.ZodType<
|
|
2714
|
+
UpdateEvalResponseBodyPython$Outbound,
|
|
2715
|
+
z.ZodTypeDef,
|
|
2716
|
+
UpdateEvalResponseBodyPython
|
|
2717
|
+
> = z.object({
|
|
2718
|
+
id: z.string(),
|
|
2719
|
+
description: z.string(),
|
|
2720
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
2721
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
2722
|
+
guardrailConfig: z.union([
|
|
2723
|
+
z.lazy(() =>
|
|
2724
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema
|
|
2725
|
+
),
|
|
2726
|
+
z.lazy(() =>
|
|
2727
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
2728
|
+
),
|
|
2729
|
+
]).optional(),
|
|
2730
|
+
code: z.string(),
|
|
2731
|
+
type: UpdateEvalResponseBodyEvalsResponse200Type$outboundSchema,
|
|
2732
|
+
key: z.string(),
|
|
2733
|
+
}).transform((v) => {
|
|
2734
|
+
return remap$(v, {
|
|
2735
|
+
id: "_id",
|
|
2736
|
+
guardrailConfig: "guardrail_config",
|
|
2737
|
+
});
|
|
2738
|
+
});
|
|
2739
|
+
|
|
2740
|
+
/**
|
|
2741
|
+
* @internal
|
|
2742
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2743
|
+
*/
|
|
2744
|
+
export namespace UpdateEvalResponseBodyPython$ {
|
|
2745
|
+
/** @deprecated use `UpdateEvalResponseBodyPython$inboundSchema` instead. */
|
|
2746
|
+
export const inboundSchema = UpdateEvalResponseBodyPython$inboundSchema;
|
|
2747
|
+
/** @deprecated use `UpdateEvalResponseBodyPython$outboundSchema` instead. */
|
|
2748
|
+
export const outboundSchema = UpdateEvalResponseBodyPython$outboundSchema;
|
|
2749
|
+
/** @deprecated use `UpdateEvalResponseBodyPython$Outbound` instead. */
|
|
2750
|
+
export type Outbound = UpdateEvalResponseBodyPython$Outbound;
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2753
|
+
export function updateEvalResponseBodyPythonToJSON(
|
|
2754
|
+
updateEvalResponseBodyPython: UpdateEvalResponseBodyPython,
|
|
2755
|
+
): string {
|
|
2756
|
+
return JSON.stringify(
|
|
2757
|
+
UpdateEvalResponseBodyPython$outboundSchema.parse(
|
|
2758
|
+
updateEvalResponseBodyPython,
|
|
2759
|
+
),
|
|
2760
|
+
);
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
export function updateEvalResponseBodyPythonFromJSON(
|
|
2764
|
+
jsonString: string,
|
|
2765
|
+
): SafeParseResult<UpdateEvalResponseBodyPython, SDKValidationError> {
|
|
2766
|
+
return safeParse(
|
|
2767
|
+
jsonString,
|
|
2768
|
+
(x) => UpdateEvalResponseBodyPython$inboundSchema.parse(JSON.parse(x)),
|
|
2769
|
+
`Failed to parse 'UpdateEvalResponseBodyPython' from JSON`,
|
|
2770
|
+
);
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2773
|
+
/** @internal */
|
|
2774
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type$inboundSchema:
|
|
2775
|
+
z.ZodNativeEnum<
|
|
2776
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type
|
|
2777
|
+
> = z.nativeEnum(
|
|
2778
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type,
|
|
2779
|
+
);
|
|
2780
|
+
|
|
2781
|
+
/** @internal */
|
|
2782
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type$outboundSchema:
|
|
2783
|
+
z.ZodNativeEnum<
|
|
2784
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type
|
|
2785
|
+
> =
|
|
2786
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type$inboundSchema;
|
|
2787
|
+
|
|
2788
|
+
/**
|
|
2789
|
+
* @internal
|
|
2790
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2791
|
+
*/
|
|
2792
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type$ {
|
|
2793
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type$inboundSchema` instead. */
|
|
2794
|
+
export const inboundSchema =
|
|
2795
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type$inboundSchema;
|
|
2796
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type$outboundSchema` instead. */
|
|
2797
|
+
export const outboundSchema =
|
|
2798
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type$outboundSchema;
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
/** @internal */
|
|
2802
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema:
|
|
2803
|
+
z.ZodNativeEnum<
|
|
2804
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator
|
|
2805
|
+
> = z.nativeEnum(
|
|
2806
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator,
|
|
2807
|
+
);
|
|
2808
|
+
|
|
2809
|
+
/** @internal */
|
|
2810
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$outboundSchema:
|
|
2811
|
+
z.ZodNativeEnum<
|
|
2812
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator
|
|
2813
|
+
> =
|
|
2814
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema;
|
|
2815
|
+
|
|
2816
|
+
/**
|
|
2817
|
+
* @internal
|
|
2818
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2819
|
+
*/
|
|
2820
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$ {
|
|
2821
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema` instead. */
|
|
2822
|
+
export const inboundSchema =
|
|
2823
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema;
|
|
2824
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$outboundSchema` instead. */
|
|
2825
|
+
export const outboundSchema =
|
|
2826
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$outboundSchema;
|
|
2827
|
+
}
|
|
2828
|
+
|
|
2829
|
+
/** @internal */
|
|
2830
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema:
|
|
2831
|
+
z.ZodType<
|
|
2832
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber,
|
|
2833
|
+
z.ZodTypeDef,
|
|
2834
|
+
unknown
|
|
2835
|
+
> = z.object({
|
|
2836
|
+
enabled: z.boolean(),
|
|
2837
|
+
type:
|
|
2838
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type$inboundSchema,
|
|
2839
|
+
value: z.number(),
|
|
2840
|
+
operator:
|
|
2841
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema,
|
|
2842
|
+
});
|
|
2843
|
+
|
|
2844
|
+
/** @internal */
|
|
2845
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$Outbound =
|
|
2846
|
+
{
|
|
2847
|
+
enabled: boolean;
|
|
2848
|
+
type: string;
|
|
2849
|
+
value: number;
|
|
2850
|
+
operator: string;
|
|
2851
|
+
};
|
|
2852
|
+
|
|
2853
|
+
/** @internal */
|
|
2854
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema:
|
|
2855
|
+
z.ZodType<
|
|
2856
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$Outbound,
|
|
2857
|
+
z.ZodTypeDef,
|
|
2858
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber
|
|
2859
|
+
> = z.object({
|
|
2860
|
+
enabled: z.boolean(),
|
|
2861
|
+
type:
|
|
2862
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody32Type$outboundSchema,
|
|
2863
|
+
value: z.number(),
|
|
2864
|
+
operator:
|
|
2865
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$outboundSchema,
|
|
2866
|
+
});
|
|
2867
|
+
|
|
2868
|
+
/**
|
|
2869
|
+
* @internal
|
|
2870
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2871
|
+
*/
|
|
2872
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$ {
|
|
2873
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema` instead. */
|
|
2874
|
+
export const inboundSchema =
|
|
2875
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema;
|
|
2876
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema` instead. */
|
|
2877
|
+
export const outboundSchema =
|
|
2878
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema;
|
|
2879
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$Outbound` instead. */
|
|
2880
|
+
export type Outbound =
|
|
2881
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$Outbound;
|
|
2882
|
+
}
|
|
2883
|
+
|
|
2884
|
+
export function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberToJSON(
|
|
2885
|
+
updateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber:
|
|
2886
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber,
|
|
2887
|
+
): string {
|
|
2888
|
+
return JSON.stringify(
|
|
2889
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
2890
|
+
.parse(updateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber),
|
|
2891
|
+
);
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
export function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON(
|
|
2895
|
+
jsonString: string,
|
|
2896
|
+
): SafeParseResult<
|
|
2897
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber,
|
|
2898
|
+
SDKValidationError
|
|
2899
|
+
> {
|
|
2900
|
+
return safeParse(
|
|
2901
|
+
jsonString,
|
|
2902
|
+
(x) =>
|
|
2903
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
2904
|
+
.parse(JSON.parse(x)),
|
|
2905
|
+
`Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber' from JSON`,
|
|
2906
|
+
);
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
/** @internal */
|
|
2910
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type$inboundSchema:
|
|
2911
|
+
z.ZodNativeEnum<
|
|
2912
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type
|
|
2913
|
+
> = z.nativeEnum(
|
|
2914
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type,
|
|
2915
|
+
);
|
|
2916
|
+
|
|
2917
|
+
/** @internal */
|
|
2918
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type$outboundSchema:
|
|
2919
|
+
z.ZodNativeEnum<
|
|
2920
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type
|
|
2921
|
+
> =
|
|
2922
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type$inboundSchema;
|
|
2923
|
+
|
|
2924
|
+
/**
|
|
2925
|
+
* @internal
|
|
2926
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2927
|
+
*/
|
|
2928
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type$ {
|
|
2929
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type$inboundSchema` instead. */
|
|
2930
|
+
export const inboundSchema =
|
|
2931
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type$inboundSchema;
|
|
2932
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type$outboundSchema` instead. */
|
|
2933
|
+
export const outboundSchema =
|
|
2934
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type$outboundSchema;
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2937
|
+
/** @internal */
|
|
2938
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema:
|
|
2939
|
+
z.ZodType<
|
|
2940
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean,
|
|
2941
|
+
z.ZodTypeDef,
|
|
2942
|
+
unknown
|
|
2943
|
+
> = z.object({
|
|
2944
|
+
enabled: z.boolean(),
|
|
2945
|
+
type:
|
|
2946
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type$inboundSchema,
|
|
2947
|
+
value: z.boolean(),
|
|
2948
|
+
});
|
|
2949
|
+
|
|
2950
|
+
/** @internal */
|
|
2951
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$Outbound =
|
|
2952
|
+
{
|
|
2953
|
+
enabled: boolean;
|
|
2954
|
+
type: string;
|
|
2955
|
+
value: boolean;
|
|
2956
|
+
};
|
|
2957
|
+
|
|
2958
|
+
/** @internal */
|
|
2959
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema:
|
|
2960
|
+
z.ZodType<
|
|
2961
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$Outbound,
|
|
2962
|
+
z.ZodTypeDef,
|
|
2963
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean
|
|
2964
|
+
> = z.object({
|
|
2965
|
+
enabled: z.boolean(),
|
|
2966
|
+
type:
|
|
2967
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody3Type$outboundSchema,
|
|
2968
|
+
value: z.boolean(),
|
|
2969
|
+
});
|
|
2970
|
+
|
|
2971
|
+
/**
|
|
2972
|
+
* @internal
|
|
2973
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2974
|
+
*/
|
|
2975
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$ {
|
|
2976
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema` instead. */
|
|
2977
|
+
export const inboundSchema =
|
|
2978
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema;
|
|
2979
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema` instead. */
|
|
2980
|
+
export const outboundSchema =
|
|
2981
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema;
|
|
2982
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$Outbound` instead. */
|
|
2983
|
+
export type Outbound =
|
|
2984
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$Outbound;
|
|
2985
|
+
}
|
|
2986
|
+
|
|
2987
|
+
export function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanToJSON(
|
|
2988
|
+
updateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean:
|
|
2989
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean,
|
|
2990
|
+
): string {
|
|
2991
|
+
return JSON.stringify(
|
|
2992
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema
|
|
2993
|
+
.parse(updateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean),
|
|
2994
|
+
);
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
export function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON(
|
|
2998
|
+
jsonString: string,
|
|
2999
|
+
): SafeParseResult<
|
|
3000
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean,
|
|
3001
|
+
SDKValidationError
|
|
3002
|
+
> {
|
|
3003
|
+
return safeParse(
|
|
3004
|
+
jsonString,
|
|
3005
|
+
(x) =>
|
|
3006
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
3007
|
+
.parse(JSON.parse(x)),
|
|
3008
|
+
`Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean' from JSON`,
|
|
3009
|
+
);
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
/** @internal */
|
|
3013
|
+
export const UpdateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema:
|
|
3014
|
+
z.ZodType<
|
|
3015
|
+
UpdateEvalResponseBodyEvalsResponseGuardrailConfig,
|
|
3016
|
+
z.ZodTypeDef,
|
|
3017
|
+
unknown
|
|
3018
|
+
> = z.union([
|
|
3019
|
+
z.lazy(() =>
|
|
3020
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
3021
|
+
),
|
|
3022
|
+
z.lazy(() =>
|
|
3023
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
3024
|
+
),
|
|
3025
|
+
]);
|
|
3026
|
+
|
|
3027
|
+
/** @internal */
|
|
3028
|
+
export type UpdateEvalResponseBodyEvalsResponseGuardrailConfig$Outbound =
|
|
3029
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$Outbound
|
|
3030
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$Outbound;
|
|
3031
|
+
|
|
3032
|
+
/** @internal */
|
|
3033
|
+
export const UpdateEvalResponseBodyEvalsResponseGuardrailConfig$outboundSchema:
|
|
3034
|
+
z.ZodType<
|
|
3035
|
+
UpdateEvalResponseBodyEvalsResponseGuardrailConfig$Outbound,
|
|
3036
|
+
z.ZodTypeDef,
|
|
3037
|
+
UpdateEvalResponseBodyEvalsResponseGuardrailConfig
|
|
3038
|
+
> = z.union([
|
|
3039
|
+
z.lazy(() =>
|
|
3040
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema
|
|
3041
|
+
),
|
|
3042
|
+
z.lazy(() =>
|
|
3043
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
3044
|
+
),
|
|
3045
|
+
]);
|
|
3046
|
+
|
|
3047
|
+
/**
|
|
3048
|
+
* @internal
|
|
3049
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3050
|
+
*/
|
|
3051
|
+
export namespace UpdateEvalResponseBodyEvalsResponseGuardrailConfig$ {
|
|
3052
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema` instead. */
|
|
3053
|
+
export const inboundSchema =
|
|
3054
|
+
UpdateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema;
|
|
3055
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsResponseGuardrailConfig$outboundSchema` instead. */
|
|
3056
|
+
export const outboundSchema =
|
|
3057
|
+
UpdateEvalResponseBodyEvalsResponseGuardrailConfig$outboundSchema;
|
|
3058
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsResponseGuardrailConfig$Outbound` instead. */
|
|
3059
|
+
export type Outbound =
|
|
3060
|
+
UpdateEvalResponseBodyEvalsResponseGuardrailConfig$Outbound;
|
|
3061
|
+
}
|
|
3062
|
+
|
|
3063
|
+
export function updateEvalResponseBodyEvalsResponseGuardrailConfigToJSON(
|
|
3064
|
+
updateEvalResponseBodyEvalsResponseGuardrailConfig:
|
|
3065
|
+
UpdateEvalResponseBodyEvalsResponseGuardrailConfig,
|
|
3066
|
+
): string {
|
|
3067
|
+
return JSON.stringify(
|
|
3068
|
+
UpdateEvalResponseBodyEvalsResponseGuardrailConfig$outboundSchema.parse(
|
|
3069
|
+
updateEvalResponseBodyEvalsResponseGuardrailConfig,
|
|
3070
|
+
),
|
|
3071
|
+
);
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
export function updateEvalResponseBodyEvalsResponseGuardrailConfigFromJSON(
|
|
3075
|
+
jsonString: string,
|
|
3076
|
+
): SafeParseResult<
|
|
3077
|
+
UpdateEvalResponseBodyEvalsResponseGuardrailConfig,
|
|
3078
|
+
SDKValidationError
|
|
3079
|
+
> {
|
|
3080
|
+
return safeParse(
|
|
3081
|
+
jsonString,
|
|
3082
|
+
(x) =>
|
|
3083
|
+
UpdateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema.parse(
|
|
3084
|
+
JSON.parse(x),
|
|
3085
|
+
),
|
|
3086
|
+
`Failed to parse 'UpdateEvalResponseBodyEvalsResponseGuardrailConfig' from JSON`,
|
|
3087
|
+
);
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
/** @internal */
|
|
3091
|
+
export const UpdateEvalResponseBodyEvalsResponseType$inboundSchema:
|
|
3092
|
+
z.ZodNativeEnum<typeof UpdateEvalResponseBodyEvalsResponseType> = z
|
|
3093
|
+
.nativeEnum(UpdateEvalResponseBodyEvalsResponseType);
|
|
3094
|
+
|
|
3095
|
+
/** @internal */
|
|
3096
|
+
export const UpdateEvalResponseBodyEvalsResponseType$outboundSchema:
|
|
3097
|
+
z.ZodNativeEnum<typeof UpdateEvalResponseBodyEvalsResponseType> =
|
|
3098
|
+
UpdateEvalResponseBodyEvalsResponseType$inboundSchema;
|
|
3099
|
+
|
|
3100
|
+
/**
|
|
3101
|
+
* @internal
|
|
3102
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3103
|
+
*/
|
|
3104
|
+
export namespace UpdateEvalResponseBodyEvalsResponseType$ {
|
|
3105
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsResponseType$inboundSchema` instead. */
|
|
3106
|
+
export const inboundSchema =
|
|
3107
|
+
UpdateEvalResponseBodyEvalsResponseType$inboundSchema;
|
|
3108
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsResponseType$outboundSchema` instead. */
|
|
3109
|
+
export const outboundSchema =
|
|
3110
|
+
UpdateEvalResponseBodyEvalsResponseType$outboundSchema;
|
|
3111
|
+
}
|
|
3112
|
+
|
|
3113
|
+
/** @internal */
|
|
3114
|
+
export const UpdateEvalResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
|
|
3115
|
+
typeof UpdateEvalResponseBodyMethod
|
|
3116
|
+
> = z.nativeEnum(UpdateEvalResponseBodyMethod);
|
|
3117
|
+
|
|
3118
|
+
/** @internal */
|
|
3119
|
+
export const UpdateEvalResponseBodyMethod$outboundSchema: z.ZodNativeEnum<
|
|
3120
|
+
typeof UpdateEvalResponseBodyMethod
|
|
3121
|
+
> = UpdateEvalResponseBodyMethod$inboundSchema;
|
|
3122
|
+
|
|
3123
|
+
/**
|
|
3124
|
+
* @internal
|
|
3125
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3126
|
+
*/
|
|
3127
|
+
export namespace UpdateEvalResponseBodyMethod$ {
|
|
3128
|
+
/** @deprecated use `UpdateEvalResponseBodyMethod$inboundSchema` instead. */
|
|
3129
|
+
export const inboundSchema = UpdateEvalResponseBodyMethod$inboundSchema;
|
|
3130
|
+
/** @deprecated use `UpdateEvalResponseBodyMethod$outboundSchema` instead. */
|
|
3131
|
+
export const outboundSchema = UpdateEvalResponseBodyMethod$outboundSchema;
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
/** @internal */
|
|
3135
|
+
export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
3136
|
+
UpdateEvalResponseBodyHTTP,
|
|
3137
|
+
z.ZodTypeDef,
|
|
3138
|
+
unknown
|
|
3139
|
+
> = z.object({
|
|
3140
|
+
_id: z.string(),
|
|
3141
|
+
description: z.string(),
|
|
3142
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
3143
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
3144
|
+
guardrail_config: z.union([
|
|
3145
|
+
z.lazy(() =>
|
|
3146
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
3147
|
+
),
|
|
3148
|
+
z.lazy(() =>
|
|
3149
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
3150
|
+
),
|
|
3151
|
+
]).optional(),
|
|
3152
|
+
type: UpdateEvalResponseBodyEvalsResponseType$inboundSchema,
|
|
3153
|
+
url: z.string(),
|
|
3154
|
+
method: UpdateEvalResponseBodyMethod$inboundSchema,
|
|
3155
|
+
headers: z.record(z.string()),
|
|
3156
|
+
payload: z.record(z.any()),
|
|
3157
|
+
key: z.string(),
|
|
3158
|
+
}).transform((v) => {
|
|
3159
|
+
return remap$(v, {
|
|
3160
|
+
"_id": "id",
|
|
3161
|
+
"guardrail_config": "guardrailConfig",
|
|
3162
|
+
});
|
|
3163
|
+
});
|
|
3164
|
+
|
|
3165
|
+
/** @internal */
|
|
3166
|
+
export type UpdateEvalResponseBodyHTTP$Outbound = {
|
|
3167
|
+
_id: string;
|
|
3168
|
+
description: string;
|
|
3169
|
+
created: string;
|
|
3170
|
+
updated: string;
|
|
3171
|
+
guardrail_config?:
|
|
3172
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$Outbound
|
|
3173
|
+
| UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$Outbound
|
|
3174
|
+
| undefined;
|
|
3175
|
+
type: string;
|
|
3176
|
+
url: string;
|
|
3177
|
+
method: string;
|
|
3178
|
+
headers: { [k: string]: string };
|
|
3179
|
+
payload: { [k: string]: any };
|
|
3180
|
+
key: string;
|
|
3181
|
+
};
|
|
3182
|
+
|
|
3183
|
+
/** @internal */
|
|
3184
|
+
export const UpdateEvalResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
3185
|
+
UpdateEvalResponseBodyHTTP$Outbound,
|
|
3186
|
+
z.ZodTypeDef,
|
|
3187
|
+
UpdateEvalResponseBodyHTTP
|
|
3188
|
+
> = z.object({
|
|
3189
|
+
id: z.string(),
|
|
3190
|
+
description: z.string(),
|
|
3191
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
3192
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
3193
|
+
guardrailConfig: z.union([
|
|
3194
|
+
z.lazy(() =>
|
|
3195
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema
|
|
3196
|
+
),
|
|
3197
|
+
z.lazy(() =>
|
|
3198
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
3199
|
+
),
|
|
3200
|
+
]).optional(),
|
|
3201
|
+
type: UpdateEvalResponseBodyEvalsResponseType$outboundSchema,
|
|
3202
|
+
url: z.string(),
|
|
3203
|
+
method: UpdateEvalResponseBodyMethod$outboundSchema,
|
|
3204
|
+
headers: z.record(z.string()),
|
|
3205
|
+
payload: z.record(z.any()),
|
|
3206
|
+
key: z.string(),
|
|
3207
|
+
}).transform((v) => {
|
|
3208
|
+
return remap$(v, {
|
|
3209
|
+
id: "_id",
|
|
3210
|
+
guardrailConfig: "guardrail_config",
|
|
3211
|
+
});
|
|
3212
|
+
});
|
|
3213
|
+
|
|
3214
|
+
/**
|
|
3215
|
+
* @internal
|
|
3216
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3217
|
+
*/
|
|
3218
|
+
export namespace UpdateEvalResponseBodyHTTP$ {
|
|
3219
|
+
/** @deprecated use `UpdateEvalResponseBodyHTTP$inboundSchema` instead. */
|
|
3220
|
+
export const inboundSchema = UpdateEvalResponseBodyHTTP$inboundSchema;
|
|
3221
|
+
/** @deprecated use `UpdateEvalResponseBodyHTTP$outboundSchema` instead. */
|
|
3222
|
+
export const outboundSchema = UpdateEvalResponseBodyHTTP$outboundSchema;
|
|
3223
|
+
/** @deprecated use `UpdateEvalResponseBodyHTTP$Outbound` instead. */
|
|
3224
|
+
export type Outbound = UpdateEvalResponseBodyHTTP$Outbound;
|
|
3225
|
+
}
|
|
3226
|
+
|
|
3227
|
+
export function updateEvalResponseBodyHTTPToJSON(
|
|
3228
|
+
updateEvalResponseBodyHTTP: UpdateEvalResponseBodyHTTP,
|
|
3229
|
+
): string {
|
|
3230
|
+
return JSON.stringify(
|
|
3231
|
+
UpdateEvalResponseBodyHTTP$outboundSchema.parse(updateEvalResponseBodyHTTP),
|
|
3232
|
+
);
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3235
|
+
export function updateEvalResponseBodyHTTPFromJSON(
|
|
3236
|
+
jsonString: string,
|
|
3237
|
+
): SafeParseResult<UpdateEvalResponseBodyHTTP, SDKValidationError> {
|
|
3238
|
+
return safeParse(
|
|
3239
|
+
jsonString,
|
|
3240
|
+
(x) => UpdateEvalResponseBodyHTTP$inboundSchema.parse(JSON.parse(x)),
|
|
3241
|
+
`Failed to parse 'UpdateEvalResponseBodyHTTP' from JSON`,
|
|
3242
|
+
);
|
|
3243
|
+
}
|
|
3244
|
+
|
|
3245
|
+
/** @internal */
|
|
3246
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType$inboundSchema:
|
|
3247
|
+
z.ZodNativeEnum<
|
|
3248
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType
|
|
3249
|
+
> = z.nativeEnum(
|
|
3250
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType,
|
|
3251
|
+
);
|
|
3252
|
+
|
|
3253
|
+
/** @internal */
|
|
3254
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType$outboundSchema:
|
|
3255
|
+
z.ZodNativeEnum<
|
|
3256
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType
|
|
3257
|
+
> =
|
|
3258
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
3259
|
+
|
|
3260
|
+
/**
|
|
3261
|
+
* @internal
|
|
3262
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3263
|
+
*/
|
|
3264
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType$ {
|
|
3265
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
|
|
3266
|
+
export const inboundSchema =
|
|
3267
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
3268
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
|
|
3269
|
+
export const outboundSchema =
|
|
3270
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType$outboundSchema;
|
|
3271
|
+
}
|
|
3272
|
+
|
|
3273
|
+
/** @internal */
|
|
3274
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema:
|
|
3275
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsResponse200Operator> = z
|
|
3276
|
+
.nativeEnum(UpdateEvalGuardrailConfigEvalsResponse200Operator);
|
|
3277
|
+
|
|
3278
|
+
/** @internal */
|
|
3279
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200Operator$outboundSchema:
|
|
3280
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsResponse200Operator> =
|
|
3281
|
+
UpdateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema;
|
|
3282
|
+
|
|
3283
|
+
/**
|
|
3284
|
+
* @internal
|
|
3285
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3286
|
+
*/
|
|
3287
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200Operator$ {
|
|
3288
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema` instead. */
|
|
3289
|
+
export const inboundSchema =
|
|
3290
|
+
UpdateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema;
|
|
3291
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200Operator$outboundSchema` instead. */
|
|
3292
|
+
export const outboundSchema =
|
|
3293
|
+
UpdateEvalGuardrailConfigEvalsResponse200Operator$outboundSchema;
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3296
|
+
/** @internal */
|
|
3297
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema:
|
|
3298
|
+
z.ZodType<
|
|
3299
|
+
UpdateEvalGuardrailConfigEvalsResponse200Number,
|
|
3300
|
+
z.ZodTypeDef,
|
|
3301
|
+
unknown
|
|
3302
|
+
> = z.object({
|
|
3303
|
+
enabled: z.boolean(),
|
|
3304
|
+
type:
|
|
3305
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
3306
|
+
value: z.number(),
|
|
3307
|
+
operator: UpdateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema,
|
|
3308
|
+
});
|
|
3309
|
+
|
|
3310
|
+
/** @internal */
|
|
3311
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200Number$Outbound = {
|
|
3312
|
+
enabled: boolean;
|
|
3313
|
+
type: string;
|
|
3314
|
+
value: number;
|
|
3315
|
+
operator: string;
|
|
3316
|
+
};
|
|
3317
|
+
|
|
3318
|
+
/** @internal */
|
|
3319
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema:
|
|
3320
|
+
z.ZodType<
|
|
3321
|
+
UpdateEvalGuardrailConfigEvalsResponse200Number$Outbound,
|
|
3322
|
+
z.ZodTypeDef,
|
|
3323
|
+
UpdateEvalGuardrailConfigEvalsResponse200Number
|
|
3324
|
+
> = z.object({
|
|
3325
|
+
enabled: z.boolean(),
|
|
3326
|
+
type:
|
|
3327
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyType$outboundSchema,
|
|
3328
|
+
value: z.number(),
|
|
3329
|
+
operator: UpdateEvalGuardrailConfigEvalsResponse200Operator$outboundSchema,
|
|
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 UpdateEvalGuardrailConfigEvalsResponse200Number$ {
|
|
3337
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema` instead. */
|
|
3338
|
+
export const inboundSchema =
|
|
3339
|
+
UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema;
|
|
3340
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema` instead. */
|
|
3341
|
+
export const outboundSchema =
|
|
3342
|
+
UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema;
|
|
3343
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200Number$Outbound` instead. */
|
|
3344
|
+
export type Outbound =
|
|
3345
|
+
UpdateEvalGuardrailConfigEvalsResponse200Number$Outbound;
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
export function updateEvalGuardrailConfigEvalsResponse200NumberToJSON(
|
|
3349
|
+
updateEvalGuardrailConfigEvalsResponse200Number:
|
|
3350
|
+
UpdateEvalGuardrailConfigEvalsResponse200Number,
|
|
3351
|
+
): string {
|
|
3352
|
+
return JSON.stringify(
|
|
3353
|
+
UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema.parse(
|
|
3354
|
+
updateEvalGuardrailConfigEvalsResponse200Number,
|
|
3355
|
+
),
|
|
3356
|
+
);
|
|
3357
|
+
}
|
|
3358
|
+
|
|
3359
|
+
export function updateEvalGuardrailConfigEvalsResponse200NumberFromJSON(
|
|
3360
|
+
jsonString: string,
|
|
3361
|
+
): SafeParseResult<
|
|
3362
|
+
UpdateEvalGuardrailConfigEvalsResponse200Number,
|
|
3363
|
+
SDKValidationError
|
|
3364
|
+
> {
|
|
3365
|
+
return safeParse(
|
|
3366
|
+
jsonString,
|
|
3367
|
+
(x) =>
|
|
3368
|
+
UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema.parse(
|
|
3369
|
+
JSON.parse(x),
|
|
3370
|
+
),
|
|
3371
|
+
`Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200Number' from JSON`,
|
|
3372
|
+
);
|
|
3373
|
+
}
|
|
3374
|
+
|
|
3375
|
+
/** @internal */
|
|
3376
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType$inboundSchema:
|
|
3377
|
+
z.ZodNativeEnum<
|
|
3378
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType
|
|
3379
|
+
> = z.nativeEnum(
|
|
3380
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType,
|
|
3381
|
+
);
|
|
3382
|
+
|
|
3383
|
+
/** @internal */
|
|
3384
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType$outboundSchema:
|
|
3385
|
+
z.ZodNativeEnum<
|
|
3386
|
+
typeof UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType
|
|
3387
|
+
> =
|
|
3388
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType$inboundSchema;
|
|
3389
|
+
|
|
3390
|
+
/**
|
|
3391
|
+
* @internal
|
|
3392
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3393
|
+
*/
|
|
3394
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType$ {
|
|
3395
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType$inboundSchema` instead. */
|
|
3396
|
+
export const inboundSchema =
|
|
3397
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType$inboundSchema;
|
|
3398
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType$outboundSchema` instead. */
|
|
3399
|
+
export const outboundSchema =
|
|
3400
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType$outboundSchema;
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3403
|
+
/** @internal */
|
|
3404
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema:
|
|
3405
|
+
z.ZodType<
|
|
3406
|
+
UpdateEvalGuardrailConfigEvalsResponse200Boolean,
|
|
3407
|
+
z.ZodTypeDef,
|
|
3408
|
+
unknown
|
|
3409
|
+
> = z.object({
|
|
3410
|
+
enabled: z.boolean(),
|
|
3411
|
+
type:
|
|
3412
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType$inboundSchema,
|
|
3413
|
+
value: z.boolean(),
|
|
3414
|
+
});
|
|
3415
|
+
|
|
3416
|
+
/** @internal */
|
|
3417
|
+
export type UpdateEvalGuardrailConfigEvalsResponse200Boolean$Outbound = {
|
|
3418
|
+
enabled: boolean;
|
|
3419
|
+
type: string;
|
|
3420
|
+
value: boolean;
|
|
3421
|
+
};
|
|
3422
|
+
|
|
3423
|
+
/** @internal */
|
|
3424
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema:
|
|
3425
|
+
z.ZodType<
|
|
3426
|
+
UpdateEvalGuardrailConfigEvalsResponse200Boolean$Outbound,
|
|
3427
|
+
z.ZodTypeDef,
|
|
3428
|
+
UpdateEvalGuardrailConfigEvalsResponse200Boolean
|
|
3429
|
+
> = z.object({
|
|
3430
|
+
enabled: z.boolean(),
|
|
3431
|
+
type:
|
|
3432
|
+
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONType$outboundSchema,
|
|
3433
|
+
value: z.boolean(),
|
|
3434
|
+
});
|
|
3435
|
+
|
|
3436
|
+
/**
|
|
3437
|
+
* @internal
|
|
3438
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3439
|
+
*/
|
|
3440
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200Boolean$ {
|
|
3441
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema` instead. */
|
|
3442
|
+
export const inboundSchema =
|
|
3443
|
+
UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema;
|
|
3444
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema` instead. */
|
|
3445
|
+
export const outboundSchema =
|
|
3446
|
+
UpdateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema;
|
|
3447
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200Boolean$Outbound` instead. */
|
|
3448
|
+
export type Outbound =
|
|
3449
|
+
UpdateEvalGuardrailConfigEvalsResponse200Boolean$Outbound;
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3452
|
+
export function updateEvalGuardrailConfigEvalsResponse200BooleanToJSON(
|
|
3453
|
+
updateEvalGuardrailConfigEvalsResponse200Boolean:
|
|
3454
|
+
UpdateEvalGuardrailConfigEvalsResponse200Boolean,
|
|
3455
|
+
): string {
|
|
3456
|
+
return JSON.stringify(
|
|
3457
|
+
UpdateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema.parse(
|
|
3458
|
+
updateEvalGuardrailConfigEvalsResponse200Boolean,
|
|
3459
|
+
),
|
|
3460
|
+
);
|
|
3461
|
+
}
|
|
3462
|
+
|
|
3463
|
+
export function updateEvalGuardrailConfigEvalsResponse200BooleanFromJSON(
|
|
3464
|
+
jsonString: string,
|
|
3465
|
+
): SafeParseResult<
|
|
3466
|
+
UpdateEvalGuardrailConfigEvalsResponse200Boolean,
|
|
3467
|
+
SDKValidationError
|
|
3468
|
+
> {
|
|
3469
|
+
return safeParse(
|
|
3470
|
+
jsonString,
|
|
3471
|
+
(x) =>
|
|
3472
|
+
UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema.parse(
|
|
3473
|
+
JSON.parse(x),
|
|
3474
|
+
),
|
|
3475
|
+
`Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200Boolean' from JSON`,
|
|
3476
|
+
);
|
|
3477
|
+
}
|
|
3478
|
+
|
|
3479
|
+
/** @internal */
|
|
3480
|
+
export const UpdateEvalResponseBodyEvalsGuardrailConfig$inboundSchema:
|
|
3481
|
+
z.ZodType<UpdateEvalResponseBodyEvalsGuardrailConfig, z.ZodTypeDef, unknown> =
|
|
3482
|
+
z.union([
|
|
3483
|
+
z.lazy(() =>
|
|
3484
|
+
UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
|
|
3485
|
+
),
|
|
3486
|
+
z.lazy(() =>
|
|
3487
|
+
UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema
|
|
3488
|
+
),
|
|
3489
|
+
]);
|
|
3490
|
+
|
|
3491
|
+
/** @internal */
|
|
3492
|
+
export type UpdateEvalResponseBodyEvalsGuardrailConfig$Outbound =
|
|
3493
|
+
| UpdateEvalGuardrailConfigEvalsResponse200Boolean$Outbound
|
|
3494
|
+
| UpdateEvalGuardrailConfigEvalsResponse200Number$Outbound;
|
|
3495
|
+
|
|
3496
|
+
/** @internal */
|
|
3497
|
+
export const UpdateEvalResponseBodyEvalsGuardrailConfig$outboundSchema:
|
|
3498
|
+
z.ZodType<
|
|
3499
|
+
UpdateEvalResponseBodyEvalsGuardrailConfig$Outbound,
|
|
3500
|
+
z.ZodTypeDef,
|
|
3501
|
+
UpdateEvalResponseBodyEvalsGuardrailConfig
|
|
3502
|
+
> = z.union([
|
|
3503
|
+
z.lazy(() =>
|
|
3504
|
+
UpdateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema
|
|
3505
|
+
),
|
|
3506
|
+
z.lazy(() =>
|
|
3507
|
+
UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
3508
|
+
),
|
|
3509
|
+
]);
|
|
3510
|
+
|
|
3511
|
+
/**
|
|
3512
|
+
* @internal
|
|
3513
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3514
|
+
*/
|
|
3515
|
+
export namespace UpdateEvalResponseBodyEvalsGuardrailConfig$ {
|
|
3516
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsGuardrailConfig$inboundSchema` instead. */
|
|
3517
|
+
export const inboundSchema =
|
|
3518
|
+
UpdateEvalResponseBodyEvalsGuardrailConfig$inboundSchema;
|
|
3519
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsGuardrailConfig$outboundSchema` instead. */
|
|
3520
|
+
export const outboundSchema =
|
|
3521
|
+
UpdateEvalResponseBodyEvalsGuardrailConfig$outboundSchema;
|
|
3522
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsGuardrailConfig$Outbound` instead. */
|
|
3523
|
+
export type Outbound = UpdateEvalResponseBodyEvalsGuardrailConfig$Outbound;
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
export function updateEvalResponseBodyEvalsGuardrailConfigToJSON(
|
|
3527
|
+
updateEvalResponseBodyEvalsGuardrailConfig:
|
|
3528
|
+
UpdateEvalResponseBodyEvalsGuardrailConfig,
|
|
3529
|
+
): string {
|
|
3530
|
+
return JSON.stringify(
|
|
3531
|
+
UpdateEvalResponseBodyEvalsGuardrailConfig$outboundSchema.parse(
|
|
3532
|
+
updateEvalResponseBodyEvalsGuardrailConfig,
|
|
3533
|
+
),
|
|
3534
|
+
);
|
|
3535
|
+
}
|
|
3536
|
+
|
|
3537
|
+
export function updateEvalResponseBodyEvalsGuardrailConfigFromJSON(
|
|
3538
|
+
jsonString: string,
|
|
3539
|
+
): SafeParseResult<
|
|
3540
|
+
UpdateEvalResponseBodyEvalsGuardrailConfig,
|
|
3541
|
+
SDKValidationError
|
|
3542
|
+
> {
|
|
3543
|
+
return safeParse(
|
|
3544
|
+
jsonString,
|
|
3545
|
+
(x) =>
|
|
3546
|
+
UpdateEvalResponseBodyEvalsGuardrailConfig$inboundSchema.parse(
|
|
3547
|
+
JSON.parse(x),
|
|
3548
|
+
),
|
|
3549
|
+
`Failed to parse 'UpdateEvalResponseBodyEvalsGuardrailConfig' from JSON`,
|
|
3550
|
+
);
|
|
3551
|
+
}
|
|
3552
|
+
|
|
3553
|
+
/** @internal */
|
|
3554
|
+
export const UpdateEvalResponseBodyEvalsType$inboundSchema: z.ZodNativeEnum<
|
|
3555
|
+
typeof UpdateEvalResponseBodyEvalsType
|
|
3556
|
+
> = z.nativeEnum(UpdateEvalResponseBodyEvalsType);
|
|
3557
|
+
|
|
3558
|
+
/** @internal */
|
|
3559
|
+
export const UpdateEvalResponseBodyEvalsType$outboundSchema: z.ZodNativeEnum<
|
|
3560
|
+
typeof UpdateEvalResponseBodyEvalsType
|
|
3561
|
+
> = UpdateEvalResponseBodyEvalsType$inboundSchema;
|
|
3562
|
+
|
|
3563
|
+
/**
|
|
3564
|
+
* @internal
|
|
3565
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3566
|
+
*/
|
|
3567
|
+
export namespace UpdateEvalResponseBodyEvalsType$ {
|
|
3568
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsType$inboundSchema` instead. */
|
|
3569
|
+
export const inboundSchema = UpdateEvalResponseBodyEvalsType$inboundSchema;
|
|
3570
|
+
/** @deprecated use `UpdateEvalResponseBodyEvalsType$outboundSchema` instead. */
|
|
3571
|
+
export const outboundSchema = UpdateEvalResponseBodyEvalsType$outboundSchema;
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3574
|
+
/** @internal */
|
|
3575
|
+
export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
3576
|
+
UpdateEvalResponseBodyJSON,
|
|
3577
|
+
z.ZodTypeDef,
|
|
3578
|
+
unknown
|
|
3579
|
+
> = z.object({
|
|
3580
|
+
_id: z.string(),
|
|
3581
|
+
description: z.string(),
|
|
3582
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
3583
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
3584
|
+
guardrail_config: z.union([
|
|
3585
|
+
z.lazy(() =>
|
|
3586
|
+
UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
|
|
3587
|
+
),
|
|
3588
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
3589
|
+
]).optional(),
|
|
3590
|
+
type: UpdateEvalResponseBodyEvalsType$inboundSchema,
|
|
3591
|
+
schema: z.string(),
|
|
3592
|
+
key: z.string(),
|
|
3593
|
+
}).transform((v) => {
|
|
3594
|
+
return remap$(v, {
|
|
3595
|
+
"_id": "id",
|
|
3596
|
+
"guardrail_config": "guardrailConfig",
|
|
3597
|
+
});
|
|
3598
|
+
});
|
|
3599
|
+
|
|
3600
|
+
/** @internal */
|
|
3601
|
+
export type UpdateEvalResponseBodyJSON$Outbound = {
|
|
3602
|
+
_id: string;
|
|
3603
|
+
description: string;
|
|
3604
|
+
created: string;
|
|
3605
|
+
updated: string;
|
|
3606
|
+
guardrail_config?:
|
|
3607
|
+
| UpdateEvalGuardrailConfigEvalsResponse200Boolean$Outbound
|
|
3608
|
+
| UpdateEvalGuardrailConfigEvalsResponse200Number$Outbound
|
|
3609
|
+
| undefined;
|
|
3610
|
+
type: string;
|
|
3611
|
+
schema: string;
|
|
3612
|
+
key: string;
|
|
3613
|
+
};
|
|
3614
|
+
|
|
3615
|
+
/** @internal */
|
|
3616
|
+
export const UpdateEvalResponseBodyJSON$outboundSchema: z.ZodType<
|
|
3617
|
+
UpdateEvalResponseBodyJSON$Outbound,
|
|
3618
|
+
z.ZodTypeDef,
|
|
3619
|
+
UpdateEvalResponseBodyJSON
|
|
3620
|
+
> = z.object({
|
|
3621
|
+
id: z.string(),
|
|
3622
|
+
description: z.string(),
|
|
3623
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
3624
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
3625
|
+
guardrailConfig: z.union([
|
|
3626
|
+
z.lazy(() =>
|
|
3627
|
+
UpdateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema
|
|
3628
|
+
),
|
|
3629
|
+
z.lazy(() =>
|
|
3630
|
+
UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
3631
|
+
),
|
|
3632
|
+
]).optional(),
|
|
3633
|
+
type: UpdateEvalResponseBodyEvalsType$outboundSchema,
|
|
3634
|
+
schema: z.string(),
|
|
3635
|
+
key: z.string(),
|
|
3636
|
+
}).transform((v) => {
|
|
3637
|
+
return remap$(v, {
|
|
3638
|
+
id: "_id",
|
|
3639
|
+
guardrailConfig: "guardrail_config",
|
|
3640
|
+
});
|
|
3641
|
+
});
|
|
3642
|
+
|
|
3643
|
+
/**
|
|
3644
|
+
* @internal
|
|
3645
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3646
|
+
*/
|
|
3647
|
+
export namespace UpdateEvalResponseBodyJSON$ {
|
|
3648
|
+
/** @deprecated use `UpdateEvalResponseBodyJSON$inboundSchema` instead. */
|
|
3649
|
+
export const inboundSchema = UpdateEvalResponseBodyJSON$inboundSchema;
|
|
3650
|
+
/** @deprecated use `UpdateEvalResponseBodyJSON$outboundSchema` instead. */
|
|
3651
|
+
export const outboundSchema = UpdateEvalResponseBodyJSON$outboundSchema;
|
|
3652
|
+
/** @deprecated use `UpdateEvalResponseBodyJSON$Outbound` instead. */
|
|
3653
|
+
export type Outbound = UpdateEvalResponseBodyJSON$Outbound;
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
export function updateEvalResponseBodyJSONToJSON(
|
|
3657
|
+
updateEvalResponseBodyJSON: UpdateEvalResponseBodyJSON,
|
|
3658
|
+
): string {
|
|
3659
|
+
return JSON.stringify(
|
|
3660
|
+
UpdateEvalResponseBodyJSON$outboundSchema.parse(updateEvalResponseBodyJSON),
|
|
3661
|
+
);
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3664
|
+
export function updateEvalResponseBodyJSONFromJSON(
|
|
3665
|
+
jsonString: string,
|
|
3666
|
+
): SafeParseResult<UpdateEvalResponseBodyJSON, SDKValidationError> {
|
|
3667
|
+
return safeParse(
|
|
3668
|
+
jsonString,
|
|
3669
|
+
(x) => UpdateEvalResponseBodyJSON$inboundSchema.parse(JSON.parse(x)),
|
|
3670
|
+
`Failed to parse 'UpdateEvalResponseBodyJSON' from JSON`,
|
|
3671
|
+
);
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3674
|
+
/** @internal */
|
|
3675
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200Type$inboundSchema:
|
|
3676
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsResponse200Type> = z
|
|
3677
|
+
.nativeEnum(UpdateEvalGuardrailConfigEvalsResponse200Type);
|
|
3678
|
+
|
|
3679
|
+
/** @internal */
|
|
3680
|
+
export const UpdateEvalGuardrailConfigEvalsResponse200Type$outboundSchema:
|
|
3681
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsResponse200Type> =
|
|
3682
|
+
UpdateEvalGuardrailConfigEvalsResponse200Type$inboundSchema;
|
|
3683
|
+
|
|
3684
|
+
/**
|
|
3685
|
+
* @internal
|
|
3686
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3687
|
+
*/
|
|
3688
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponse200Type$ {
|
|
3689
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200Type$inboundSchema` instead. */
|
|
3690
|
+
export const inboundSchema =
|
|
3691
|
+
UpdateEvalGuardrailConfigEvalsResponse200Type$inboundSchema;
|
|
3692
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponse200Type$outboundSchema` instead. */
|
|
3693
|
+
export const outboundSchema =
|
|
3694
|
+
UpdateEvalGuardrailConfigEvalsResponse200Type$outboundSchema;
|
|
3695
|
+
}
|
|
3696
|
+
|
|
3697
|
+
/** @internal */
|
|
3698
|
+
export const UpdateEvalGuardrailConfigEvalsResponseOperator$inboundSchema:
|
|
3699
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsResponseOperator> = z
|
|
3700
|
+
.nativeEnum(UpdateEvalGuardrailConfigEvalsResponseOperator);
|
|
3701
|
+
|
|
3702
|
+
/** @internal */
|
|
3703
|
+
export const UpdateEvalGuardrailConfigEvalsResponseOperator$outboundSchema:
|
|
3704
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsResponseOperator> =
|
|
3705
|
+
UpdateEvalGuardrailConfigEvalsResponseOperator$inboundSchema;
|
|
3706
|
+
|
|
3707
|
+
/**
|
|
3708
|
+
* @internal
|
|
3709
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3710
|
+
*/
|
|
3711
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponseOperator$ {
|
|
3712
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponseOperator$inboundSchema` instead. */
|
|
3713
|
+
export const inboundSchema =
|
|
3714
|
+
UpdateEvalGuardrailConfigEvalsResponseOperator$inboundSchema;
|
|
3715
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponseOperator$outboundSchema` instead. */
|
|
3716
|
+
export const outboundSchema =
|
|
3717
|
+
UpdateEvalGuardrailConfigEvalsResponseOperator$outboundSchema;
|
|
3718
|
+
}
|
|
3719
|
+
|
|
3720
|
+
/** @internal */
|
|
3721
|
+
export const UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema:
|
|
3722
|
+
z.ZodType<
|
|
3723
|
+
UpdateEvalGuardrailConfigEvalsResponseNumber,
|
|
3724
|
+
z.ZodTypeDef,
|
|
3725
|
+
unknown
|
|
3726
|
+
> = z.object({
|
|
3727
|
+
enabled: z.boolean(),
|
|
3728
|
+
type: UpdateEvalGuardrailConfigEvalsResponse200Type$inboundSchema,
|
|
3729
|
+
value: z.number(),
|
|
3730
|
+
operator: UpdateEvalGuardrailConfigEvalsResponseOperator$inboundSchema,
|
|
3731
|
+
});
|
|
3732
|
+
|
|
3733
|
+
/** @internal */
|
|
3734
|
+
export type UpdateEvalGuardrailConfigEvalsResponseNumber$Outbound = {
|
|
3735
|
+
enabled: boolean;
|
|
3736
|
+
type: string;
|
|
3737
|
+
value: number;
|
|
3738
|
+
operator: string;
|
|
3739
|
+
};
|
|
3740
|
+
|
|
3741
|
+
/** @internal */
|
|
3742
|
+
export const UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema:
|
|
3743
|
+
z.ZodType<
|
|
3744
|
+
UpdateEvalGuardrailConfigEvalsResponseNumber$Outbound,
|
|
3745
|
+
z.ZodTypeDef,
|
|
3746
|
+
UpdateEvalGuardrailConfigEvalsResponseNumber
|
|
3747
|
+
> = z.object({
|
|
3748
|
+
enabled: z.boolean(),
|
|
3749
|
+
type: UpdateEvalGuardrailConfigEvalsResponse200Type$outboundSchema,
|
|
3750
|
+
value: z.number(),
|
|
3751
|
+
operator: UpdateEvalGuardrailConfigEvalsResponseOperator$outboundSchema,
|
|
3752
|
+
});
|
|
3753
|
+
|
|
3754
|
+
/**
|
|
3755
|
+
* @internal
|
|
3756
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3757
|
+
*/
|
|
3758
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponseNumber$ {
|
|
3759
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema` instead. */
|
|
3760
|
+
export const inboundSchema =
|
|
3761
|
+
UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema;
|
|
3762
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema` instead. */
|
|
3763
|
+
export const outboundSchema =
|
|
3764
|
+
UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema;
|
|
3765
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponseNumber$Outbound` instead. */
|
|
3766
|
+
export type Outbound = UpdateEvalGuardrailConfigEvalsResponseNumber$Outbound;
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3769
|
+
export function updateEvalGuardrailConfigEvalsResponseNumberToJSON(
|
|
3770
|
+
updateEvalGuardrailConfigEvalsResponseNumber:
|
|
3771
|
+
UpdateEvalGuardrailConfigEvalsResponseNumber,
|
|
3772
|
+
): string {
|
|
3773
|
+
return JSON.stringify(
|
|
3774
|
+
UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema.parse(
|
|
3775
|
+
updateEvalGuardrailConfigEvalsResponseNumber,
|
|
3776
|
+
),
|
|
3777
|
+
);
|
|
3778
|
+
}
|
|
3779
|
+
|
|
3780
|
+
export function updateEvalGuardrailConfigEvalsResponseNumberFromJSON(
|
|
3781
|
+
jsonString: string,
|
|
3782
|
+
): SafeParseResult<
|
|
3783
|
+
UpdateEvalGuardrailConfigEvalsResponseNumber,
|
|
3784
|
+
SDKValidationError
|
|
3785
|
+
> {
|
|
3786
|
+
return safeParse(
|
|
3787
|
+
jsonString,
|
|
3788
|
+
(x) =>
|
|
3789
|
+
UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema.parse(
|
|
3790
|
+
JSON.parse(x),
|
|
3791
|
+
),
|
|
3792
|
+
`Failed to parse 'UpdateEvalGuardrailConfigEvalsResponseNumber' from JSON`,
|
|
3793
|
+
);
|
|
3794
|
+
}
|
|
3795
|
+
|
|
3796
|
+
/** @internal */
|
|
3797
|
+
export const UpdateEvalGuardrailConfigEvalsResponseType$inboundSchema:
|
|
3798
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsResponseType> = z
|
|
3799
|
+
.nativeEnum(UpdateEvalGuardrailConfigEvalsResponseType);
|
|
3800
|
+
|
|
3801
|
+
/** @internal */
|
|
3802
|
+
export const UpdateEvalGuardrailConfigEvalsResponseType$outboundSchema:
|
|
3803
|
+
z.ZodNativeEnum<typeof UpdateEvalGuardrailConfigEvalsResponseType> =
|
|
3804
|
+
UpdateEvalGuardrailConfigEvalsResponseType$inboundSchema;
|
|
3805
|
+
|
|
3806
|
+
/**
|
|
3807
|
+
* @internal
|
|
3808
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3809
|
+
*/
|
|
3810
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponseType$ {
|
|
3811
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponseType$inboundSchema` instead. */
|
|
3812
|
+
export const inboundSchema =
|
|
3813
|
+
UpdateEvalGuardrailConfigEvalsResponseType$inboundSchema;
|
|
3814
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponseType$outboundSchema` instead. */
|
|
3815
|
+
export const outboundSchema =
|
|
3816
|
+
UpdateEvalGuardrailConfigEvalsResponseType$outboundSchema;
|
|
3817
|
+
}
|
|
3818
|
+
|
|
3819
|
+
/** @internal */
|
|
3820
|
+
export const UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema:
|
|
3821
|
+
z.ZodType<
|
|
3822
|
+
UpdateEvalGuardrailConfigEvalsResponseBoolean,
|
|
3823
|
+
z.ZodTypeDef,
|
|
3824
|
+
unknown
|
|
3825
|
+
> = z.object({
|
|
3826
|
+
enabled: z.boolean(),
|
|
3827
|
+
type: UpdateEvalGuardrailConfigEvalsResponseType$inboundSchema,
|
|
3828
|
+
value: z.boolean(),
|
|
3829
|
+
});
|
|
3830
|
+
|
|
3831
|
+
/** @internal */
|
|
3832
|
+
export type UpdateEvalGuardrailConfigEvalsResponseBoolean$Outbound = {
|
|
3833
|
+
enabled: boolean;
|
|
3834
|
+
type: string;
|
|
3835
|
+
value: boolean;
|
|
3836
|
+
};
|
|
3837
|
+
|
|
3838
|
+
/** @internal */
|
|
3839
|
+
export const UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema:
|
|
3840
|
+
z.ZodType<
|
|
3841
|
+
UpdateEvalGuardrailConfigEvalsResponseBoolean$Outbound,
|
|
3842
|
+
z.ZodTypeDef,
|
|
3843
|
+
UpdateEvalGuardrailConfigEvalsResponseBoolean
|
|
3844
|
+
> = z.object({
|
|
3845
|
+
enabled: z.boolean(),
|
|
3846
|
+
type: UpdateEvalGuardrailConfigEvalsResponseType$outboundSchema,
|
|
3847
|
+
value: z.boolean(),
|
|
3848
|
+
});
|
|
3849
|
+
|
|
3850
|
+
/**
|
|
3851
|
+
* @internal
|
|
3852
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3853
|
+
*/
|
|
3854
|
+
export namespace UpdateEvalGuardrailConfigEvalsResponseBoolean$ {
|
|
3855
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema` instead. */
|
|
3856
|
+
export const inboundSchema =
|
|
3857
|
+
UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema;
|
|
3858
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema` instead. */
|
|
3859
|
+
export const outboundSchema =
|
|
3860
|
+
UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema;
|
|
3861
|
+
/** @deprecated use `UpdateEvalGuardrailConfigEvalsResponseBoolean$Outbound` instead. */
|
|
3862
|
+
export type Outbound = UpdateEvalGuardrailConfigEvalsResponseBoolean$Outbound;
|
|
3863
|
+
}
|
|
3864
|
+
|
|
3865
|
+
export function updateEvalGuardrailConfigEvalsResponseBooleanToJSON(
|
|
3866
|
+
updateEvalGuardrailConfigEvalsResponseBoolean:
|
|
3867
|
+
UpdateEvalGuardrailConfigEvalsResponseBoolean,
|
|
3868
|
+
): string {
|
|
3869
|
+
return JSON.stringify(
|
|
3870
|
+
UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema.parse(
|
|
3871
|
+
updateEvalGuardrailConfigEvalsResponseBoolean,
|
|
3872
|
+
),
|
|
3873
|
+
);
|
|
3874
|
+
}
|
|
3875
|
+
|
|
3876
|
+
export function updateEvalGuardrailConfigEvalsResponseBooleanFromJSON(
|
|
3877
|
+
jsonString: string,
|
|
3878
|
+
): SafeParseResult<
|
|
3879
|
+
UpdateEvalGuardrailConfigEvalsResponseBoolean,
|
|
3880
|
+
SDKValidationError
|
|
3881
|
+
> {
|
|
3882
|
+
return safeParse(
|
|
3883
|
+
jsonString,
|
|
3884
|
+
(x) =>
|
|
3885
|
+
UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema.parse(
|
|
3886
|
+
JSON.parse(x),
|
|
3887
|
+
),
|
|
3888
|
+
`Failed to parse 'UpdateEvalGuardrailConfigEvalsResponseBoolean' from JSON`,
|
|
3889
|
+
);
|
|
3890
|
+
}
|
|
3891
|
+
|
|
3892
|
+
/** @internal */
|
|
3893
|
+
export const UpdateEvalResponseBodyGuardrailConfig$inboundSchema: z.ZodType<
|
|
3894
|
+
UpdateEvalResponseBodyGuardrailConfig,
|
|
3895
|
+
z.ZodTypeDef,
|
|
3896
|
+
unknown
|
|
3897
|
+
> = z.union([
|
|
3898
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
3899
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
3900
|
+
]);
|
|
3901
|
+
|
|
3902
|
+
/** @internal */
|
|
3903
|
+
export type UpdateEvalResponseBodyGuardrailConfig$Outbound =
|
|
3904
|
+
| UpdateEvalGuardrailConfigEvalsResponseBoolean$Outbound
|
|
3905
|
+
| UpdateEvalGuardrailConfigEvalsResponseNumber$Outbound;
|
|
3906
|
+
|
|
3907
|
+
/** @internal */
|
|
3908
|
+
export const UpdateEvalResponseBodyGuardrailConfig$outboundSchema: z.ZodType<
|
|
3909
|
+
UpdateEvalResponseBodyGuardrailConfig$Outbound,
|
|
3910
|
+
z.ZodTypeDef,
|
|
3911
|
+
UpdateEvalResponseBodyGuardrailConfig
|
|
3912
|
+
> = z.union([
|
|
3913
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
3914
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
3915
|
+
]);
|
|
3916
|
+
|
|
3917
|
+
/**
|
|
3918
|
+
* @internal
|
|
3919
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3920
|
+
*/
|
|
3921
|
+
export namespace UpdateEvalResponseBodyGuardrailConfig$ {
|
|
3922
|
+
/** @deprecated use `UpdateEvalResponseBodyGuardrailConfig$inboundSchema` instead. */
|
|
3923
|
+
export const inboundSchema =
|
|
3924
|
+
UpdateEvalResponseBodyGuardrailConfig$inboundSchema;
|
|
3925
|
+
/** @deprecated use `UpdateEvalResponseBodyGuardrailConfig$outboundSchema` instead. */
|
|
3926
|
+
export const outboundSchema =
|
|
3927
|
+
UpdateEvalResponseBodyGuardrailConfig$outboundSchema;
|
|
3928
|
+
/** @deprecated use `UpdateEvalResponseBodyGuardrailConfig$Outbound` instead. */
|
|
3929
|
+
export type Outbound = UpdateEvalResponseBodyGuardrailConfig$Outbound;
|
|
3930
|
+
}
|
|
3931
|
+
|
|
3932
|
+
export function updateEvalResponseBodyGuardrailConfigToJSON(
|
|
3933
|
+
updateEvalResponseBodyGuardrailConfig: UpdateEvalResponseBodyGuardrailConfig,
|
|
3934
|
+
): string {
|
|
3935
|
+
return JSON.stringify(
|
|
3936
|
+
UpdateEvalResponseBodyGuardrailConfig$outboundSchema.parse(
|
|
3937
|
+
updateEvalResponseBodyGuardrailConfig,
|
|
3938
|
+
),
|
|
3939
|
+
);
|
|
3940
|
+
}
|
|
3941
|
+
|
|
3942
|
+
export function updateEvalResponseBodyGuardrailConfigFromJSON(
|
|
3943
|
+
jsonString: string,
|
|
3944
|
+
): SafeParseResult<UpdateEvalResponseBodyGuardrailConfig, SDKValidationError> {
|
|
3945
|
+
return safeParse(
|
|
3946
|
+
jsonString,
|
|
3947
|
+
(x) =>
|
|
3948
|
+
UpdateEvalResponseBodyGuardrailConfig$inboundSchema.parse(JSON.parse(x)),
|
|
3949
|
+
`Failed to parse 'UpdateEvalResponseBodyGuardrailConfig' from JSON`,
|
|
3950
|
+
);
|
|
3951
|
+
}
|
|
3952
|
+
|
|
3953
|
+
/** @internal */
|
|
3954
|
+
export const UpdateEvalResponseBodyType$inboundSchema: z.ZodNativeEnum<
|
|
3955
|
+
typeof UpdateEvalResponseBodyType
|
|
3956
|
+
> = z.nativeEnum(UpdateEvalResponseBodyType);
|
|
3957
|
+
|
|
3958
|
+
/** @internal */
|
|
3959
|
+
export const UpdateEvalResponseBodyType$outboundSchema: z.ZodNativeEnum<
|
|
3960
|
+
typeof UpdateEvalResponseBodyType
|
|
3961
|
+
> = UpdateEvalResponseBodyType$inboundSchema;
|
|
3962
|
+
|
|
3963
|
+
/**
|
|
3964
|
+
* @internal
|
|
3965
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3966
|
+
*/
|
|
3967
|
+
export namespace UpdateEvalResponseBodyType$ {
|
|
3968
|
+
/** @deprecated use `UpdateEvalResponseBodyType$inboundSchema` instead. */
|
|
3969
|
+
export const inboundSchema = UpdateEvalResponseBodyType$inboundSchema;
|
|
3970
|
+
/** @deprecated use `UpdateEvalResponseBodyType$outboundSchema` instead. */
|
|
3971
|
+
export const outboundSchema = UpdateEvalResponseBodyType$outboundSchema;
|
|
3972
|
+
}
|
|
3973
|
+
|
|
3974
|
+
/** @internal */
|
|
3975
|
+
export const UpdateEvalResponseBodyLLM$inboundSchema: z.ZodType<
|
|
3976
|
+
UpdateEvalResponseBodyLLM,
|
|
3977
|
+
z.ZodTypeDef,
|
|
3978
|
+
unknown
|
|
3979
|
+
> = z.object({
|
|
3980
|
+
_id: z.string(),
|
|
3981
|
+
description: z.string(),
|
|
3982
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
3983
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
3984
|
+
guardrail_config: z.union([
|
|
3985
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
3986
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
3987
|
+
]).optional(),
|
|
3988
|
+
type: UpdateEvalResponseBodyType$inboundSchema,
|
|
3989
|
+
prompt: z.string(),
|
|
3990
|
+
key: z.string(),
|
|
3991
|
+
model: z.string(),
|
|
3992
|
+
}).transform((v) => {
|
|
3993
|
+
return remap$(v, {
|
|
3994
|
+
"_id": "id",
|
|
3995
|
+
"guardrail_config": "guardrailConfig",
|
|
3996
|
+
});
|
|
3997
|
+
});
|
|
3998
|
+
|
|
3999
|
+
/** @internal */
|
|
4000
|
+
export type UpdateEvalResponseBodyLLM$Outbound = {
|
|
4001
|
+
_id: string;
|
|
4002
|
+
description: string;
|
|
4003
|
+
created: string;
|
|
4004
|
+
updated: string;
|
|
4005
|
+
guardrail_config?:
|
|
4006
|
+
| UpdateEvalGuardrailConfigEvalsResponseBoolean$Outbound
|
|
4007
|
+
| UpdateEvalGuardrailConfigEvalsResponseNumber$Outbound
|
|
4008
|
+
| undefined;
|
|
4009
|
+
type: string;
|
|
4010
|
+
prompt: string;
|
|
4011
|
+
key: string;
|
|
4012
|
+
model: string;
|
|
4013
|
+
};
|
|
4014
|
+
|
|
4015
|
+
/** @internal */
|
|
4016
|
+
export const UpdateEvalResponseBodyLLM$outboundSchema: z.ZodType<
|
|
4017
|
+
UpdateEvalResponseBodyLLM$Outbound,
|
|
4018
|
+
z.ZodTypeDef,
|
|
4019
|
+
UpdateEvalResponseBodyLLM
|
|
4020
|
+
> = z.object({
|
|
4021
|
+
id: z.string(),
|
|
4022
|
+
description: z.string(),
|
|
4023
|
+
created: z.string().default("2025-06-05T06:05:40.081Z"),
|
|
4024
|
+
updated: z.string().default("2025-06-05T06:05:40.082Z"),
|
|
4025
|
+
guardrailConfig: z.union([
|
|
4026
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
4027
|
+
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
4028
|
+
]).optional(),
|
|
4029
|
+
type: UpdateEvalResponseBodyType$outboundSchema,
|
|
4030
|
+
prompt: z.string(),
|
|
4031
|
+
key: z.string(),
|
|
4032
|
+
model: z.string(),
|
|
4033
|
+
}).transform((v) => {
|
|
4034
|
+
return remap$(v, {
|
|
4035
|
+
id: "_id",
|
|
4036
|
+
guardrailConfig: "guardrail_config",
|
|
4037
|
+
});
|
|
4038
|
+
});
|
|
4039
|
+
|
|
4040
|
+
/**
|
|
4041
|
+
* @internal
|
|
4042
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4043
|
+
*/
|
|
4044
|
+
export namespace UpdateEvalResponseBodyLLM$ {
|
|
4045
|
+
/** @deprecated use `UpdateEvalResponseBodyLLM$inboundSchema` instead. */
|
|
4046
|
+
export const inboundSchema = UpdateEvalResponseBodyLLM$inboundSchema;
|
|
4047
|
+
/** @deprecated use `UpdateEvalResponseBodyLLM$outboundSchema` instead. */
|
|
4048
|
+
export const outboundSchema = UpdateEvalResponseBodyLLM$outboundSchema;
|
|
4049
|
+
/** @deprecated use `UpdateEvalResponseBodyLLM$Outbound` instead. */
|
|
4050
|
+
export type Outbound = UpdateEvalResponseBodyLLM$Outbound;
|
|
4051
|
+
}
|
|
4052
|
+
|
|
4053
|
+
export function updateEvalResponseBodyLLMToJSON(
|
|
4054
|
+
updateEvalResponseBodyLLM: UpdateEvalResponseBodyLLM,
|
|
4055
|
+
): string {
|
|
4056
|
+
return JSON.stringify(
|
|
4057
|
+
UpdateEvalResponseBodyLLM$outboundSchema.parse(updateEvalResponseBodyLLM),
|
|
4058
|
+
);
|
|
4059
|
+
}
|
|
4060
|
+
|
|
4061
|
+
export function updateEvalResponseBodyLLMFromJSON(
|
|
4062
|
+
jsonString: string,
|
|
4063
|
+
): SafeParseResult<UpdateEvalResponseBodyLLM, SDKValidationError> {
|
|
4064
|
+
return safeParse(
|
|
4065
|
+
jsonString,
|
|
4066
|
+
(x) => UpdateEvalResponseBodyLLM$inboundSchema.parse(JSON.parse(x)),
|
|
4067
|
+
`Failed to parse 'UpdateEvalResponseBodyLLM' from JSON`,
|
|
4068
|
+
);
|
|
4069
|
+
}
|
|
4070
|
+
|
|
4071
|
+
/** @internal */
|
|
4072
|
+
export const UpdateEvalResponseBody$inboundSchema: z.ZodType<
|
|
4073
|
+
UpdateEvalResponseBody,
|
|
4074
|
+
z.ZodTypeDef,
|
|
4075
|
+
unknown
|
|
4076
|
+
> = z.union([
|
|
4077
|
+
z.lazy(() => UpdateEvalResponseBodyJSON$inboundSchema),
|
|
4078
|
+
z.lazy(() => UpdateEvalResponseBodyPython$inboundSchema),
|
|
4079
|
+
z.lazy(() => UpdateEvalResponseBodyLLM$inboundSchema),
|
|
4080
|
+
z.lazy(() => UpdateEvalResponseBodyHTTP$inboundSchema),
|
|
4081
|
+
]);
|
|
4082
|
+
|
|
4083
|
+
/** @internal */
|
|
4084
|
+
export type UpdateEvalResponseBody$Outbound =
|
|
4085
|
+
| UpdateEvalResponseBodyJSON$Outbound
|
|
4086
|
+
| UpdateEvalResponseBodyPython$Outbound
|
|
4087
|
+
| UpdateEvalResponseBodyLLM$Outbound
|
|
4088
|
+
| UpdateEvalResponseBodyHTTP$Outbound;
|
|
4089
|
+
|
|
4090
|
+
/** @internal */
|
|
4091
|
+
export const UpdateEvalResponseBody$outboundSchema: z.ZodType<
|
|
4092
|
+
UpdateEvalResponseBody$Outbound,
|
|
4093
|
+
z.ZodTypeDef,
|
|
4094
|
+
UpdateEvalResponseBody
|
|
4095
|
+
> = z.union([
|
|
4096
|
+
z.lazy(() => UpdateEvalResponseBodyJSON$outboundSchema),
|
|
4097
|
+
z.lazy(() => UpdateEvalResponseBodyPython$outboundSchema),
|
|
4098
|
+
z.lazy(() => UpdateEvalResponseBodyLLM$outboundSchema),
|
|
4099
|
+
z.lazy(() => UpdateEvalResponseBodyHTTP$outboundSchema),
|
|
4100
|
+
]);
|
|
4101
|
+
|
|
4102
|
+
/**
|
|
4103
|
+
* @internal
|
|
4104
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4105
|
+
*/
|
|
4106
|
+
export namespace UpdateEvalResponseBody$ {
|
|
4107
|
+
/** @deprecated use `UpdateEvalResponseBody$inboundSchema` instead. */
|
|
4108
|
+
export const inboundSchema = UpdateEvalResponseBody$inboundSchema;
|
|
4109
|
+
/** @deprecated use `UpdateEvalResponseBody$outboundSchema` instead. */
|
|
4110
|
+
export const outboundSchema = UpdateEvalResponseBody$outboundSchema;
|
|
4111
|
+
/** @deprecated use `UpdateEvalResponseBody$Outbound` instead. */
|
|
4112
|
+
export type Outbound = UpdateEvalResponseBody$Outbound;
|
|
4113
|
+
}
|
|
4114
|
+
|
|
4115
|
+
export function updateEvalResponseBodyToJSON(
|
|
4116
|
+
updateEvalResponseBody: UpdateEvalResponseBody,
|
|
4117
|
+
): string {
|
|
4118
|
+
return JSON.stringify(
|
|
4119
|
+
UpdateEvalResponseBody$outboundSchema.parse(updateEvalResponseBody),
|
|
4120
|
+
);
|
|
4121
|
+
}
|
|
4122
|
+
|
|
4123
|
+
export function updateEvalResponseBodyFromJSON(
|
|
4124
|
+
jsonString: string,
|
|
4125
|
+
): SafeParseResult<UpdateEvalResponseBody, SDKValidationError> {
|
|
4126
|
+
return safeParse(
|
|
4127
|
+
jsonString,
|
|
4128
|
+
(x) => UpdateEvalResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
4129
|
+
`Failed to parse 'UpdateEvalResponseBody' from JSON`,
|
|
4130
|
+
);
|
|
4131
|
+
}
|