@orq-ai/node 4.17.17 → 4.17.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/modelmetadata.d.ts +2 -0
  5. package/models/components/modelmetadata.d.ts.map +1 -1
  6. package/models/components/modelmetadata.js +4 -0
  7. package/models/components/modelmetadata.js.map +1 -1
  8. package/models/components/reasoningpart.js +1 -1
  9. package/models/operations/createtool.js +4 -4
  10. package/models/operations/getalltools.js +4 -4
  11. package/models/operations/getv2humanevalsets.js +2 -2
  12. package/models/operations/getv2humanevalsetsid.js +2 -2
  13. package/models/operations/listdeploymentversions.js +1 -1
  14. package/models/operations/patchv2humanevalsetsid.js +2 -2
  15. package/models/operations/postv2humanevalsets.js +2 -2
  16. package/models/operations/retrievetool.js +4 -4
  17. package/models/operations/runagent.js +1 -1
  18. package/models/operations/streamrunagent.js +1 -1
  19. package/models/operations/updatetool.js +4 -4
  20. package/package.json +9 -9
  21. package/packages/orq-rc/src/lib/config.ts +3 -3
  22. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  23. package/packages/orq-rc/src/models/operations/createeval.ts +7 -11
  24. package/packages/orq-rc/src/models/operations/createprompt.ts +1 -0
  25. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  26. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
  27. package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
  28. package/packages/orq-rc/src/models/operations/deploymentstream.ts +1 -0
  29. package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
  30. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  31. package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
  32. package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
  33. package/packages/orq-rc/src/models/operations/index.ts +0 -5
  34. package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +3 -1
  35. package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
  36. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  37. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  38. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  39. package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -0
  40. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  41. package/packages/orq-rc/src/sdk/sdk.ts +0 -6
  42. package/src/lib/config.ts +2 -2
  43. package/src/models/components/modelmetadata.ts +6 -0
  44. package/src/models/components/reasoningpart.ts +1 -1
  45. package/src/models/operations/createtool.ts +4 -4
  46. package/src/models/operations/getalltools.ts +4 -4
  47. package/src/models/operations/getv2humanevalsets.ts +2 -2
  48. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  49. package/src/models/operations/listdeploymentversions.ts +1 -1
  50. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  51. package/src/models/operations/postv2humanevalsets.ts +2 -2
  52. package/src/models/operations/retrievetool.ts +4 -4
  53. package/src/models/operations/runagent.ts +1 -1
  54. package/src/models/operations/streamrunagent.ts +1 -1
  55. package/src/models/operations/updatetool.ts +4 -4
  56. package/packages/orq-rc/src/funcs/humanReviewSetsCreate.ts +0 -178
  57. package/packages/orq-rc/src/funcs/humanReviewSetsDelete.ts +0 -180
  58. package/packages/orq-rc/src/funcs/humanReviewSetsGet.ts +0 -179
  59. package/packages/orq-rc/src/funcs/humanReviewSetsList.ts +0 -181
  60. package/packages/orq-rc/src/funcs/humanReviewSetsUpdate.ts +0 -180
  61. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +0 -36
  62. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +0 -234
  63. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +0 -235
  64. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +0 -415
  65. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +0 -351
  66. package/packages/orq-rc/src/sdk/humanreviewsets.ts +0 -109
@@ -1,235 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type GetV2HumanEvalSetsIdRequest = {
12
- /**
13
- * The ID of the human review set to retrieve
14
- */
15
- id: string;
16
- };
17
-
18
- export type GetV2HumanEvalSetsIdResponseBody2 = {
19
- /**
20
- * The id of the resource
21
- */
22
- id: string;
23
- /**
24
- * Display name of the human review set
25
- */
26
- displayName: string;
27
- /**
28
- * Detailed description of the human review set
29
- */
30
- description?: string | undefined;
31
- /**
32
- * Array of human review IDs to be applied to matching spans
33
- */
34
- humanEvalIds: Array<string>;
35
- workspaceId: string;
36
- /**
37
- * Optional project ID to scope this human review set to a specific project
38
- */
39
- projectId?: string | undefined;
40
- createdById?: string | undefined;
41
- updatedById?: string | undefined;
42
- /**
43
- * The date and time the resource was created
44
- */
45
- created?: Date | undefined;
46
- /**
47
- * The date and time the resource was last updated
48
- */
49
- updated: Date;
50
- filterType: "name";
51
- /**
52
- * Name pattern to match
53
- */
54
- filterValue: string;
55
- };
56
-
57
- export type GetV2HumanEvalSetsIdResponseBody1 = {
58
- /**
59
- * The id of the resource
60
- */
61
- id: string;
62
- /**
63
- * Display name of the human review set
64
- */
65
- displayName: string;
66
- /**
67
- * Detailed description of the human review set
68
- */
69
- description?: string | undefined;
70
- /**
71
- * Array of human review IDs to be applied to matching spans
72
- */
73
- humanEvalIds: Array<string>;
74
- workspaceId: string;
75
- /**
76
- * Optional project ID to scope this human review set to a specific project
77
- */
78
- projectId?: string | undefined;
79
- createdById?: string | undefined;
80
- updatedById?: string | undefined;
81
- /**
82
- * The date and time the resource was created
83
- */
84
- created?: Date | undefined;
85
- /**
86
- * The date and time the resource was last updated
87
- */
88
- updated: Date;
89
- filterType: "span_type";
90
- /**
91
- * Array of span types to match
92
- */
93
- filterValues: Array<string>;
94
- };
95
-
96
- /**
97
- * Successfully retrieved the human review set
98
- */
99
- export type GetV2HumanEvalSetsIdResponseBody =
100
- | GetV2HumanEvalSetsIdResponseBody1
101
- | GetV2HumanEvalSetsIdResponseBody2;
102
-
103
- /** @internal */
104
- export type GetV2HumanEvalSetsIdRequest$Outbound = {
105
- id: string;
106
- };
107
-
108
- /** @internal */
109
- export const GetV2HumanEvalSetsIdRequest$outboundSchema: z.ZodType<
110
- GetV2HumanEvalSetsIdRequest$Outbound,
111
- z.ZodTypeDef,
112
- GetV2HumanEvalSetsIdRequest
113
- > = z.object({
114
- id: z.string(),
115
- });
116
-
117
- export function getV2HumanEvalSetsIdRequestToJSON(
118
- getV2HumanEvalSetsIdRequest: GetV2HumanEvalSetsIdRequest,
119
- ): string {
120
- return JSON.stringify(
121
- GetV2HumanEvalSetsIdRequest$outboundSchema.parse(
122
- getV2HumanEvalSetsIdRequest,
123
- ),
124
- );
125
- }
126
-
127
- /** @internal */
128
- export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
129
- GetV2HumanEvalSetsIdResponseBody2,
130
- z.ZodTypeDef,
131
- unknown
132
- > = z.object({
133
- _id: z.string(),
134
- display_name: z.string(),
135
- description: z.string().optional(),
136
- human_eval_ids: z.array(z.string()),
137
- workspace_id: z.string(),
138
- project_id: z.string().optional(),
139
- created_by_id: z.string().optional(),
140
- updated_by_id: z.string().optional(),
141
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
142
- .optional(),
143
- updated: z.string().datetime({ offset: true }).default(
144
- "2026-10-28T11:12:42.542Z",
145
- ).transform(v => new Date(v)),
146
- filter_type: z.literal("name"),
147
- filter_value: z.string(),
148
- }).transform((v) => {
149
- return remap$(v, {
150
- "_id": "id",
151
- "display_name": "displayName",
152
- "human_eval_ids": "humanEvalIds",
153
- "workspace_id": "workspaceId",
154
- "project_id": "projectId",
155
- "created_by_id": "createdById",
156
- "updated_by_id": "updatedById",
157
- "filter_type": "filterType",
158
- "filter_value": "filterValue",
159
- });
160
- });
161
-
162
- export function getV2HumanEvalSetsIdResponseBody2FromJSON(
163
- jsonString: string,
164
- ): SafeParseResult<GetV2HumanEvalSetsIdResponseBody2, SDKValidationError> {
165
- return safeParse(
166
- jsonString,
167
- (x) => GetV2HumanEvalSetsIdResponseBody2$inboundSchema.parse(JSON.parse(x)),
168
- `Failed to parse 'GetV2HumanEvalSetsIdResponseBody2' from JSON`,
169
- );
170
- }
171
-
172
- /** @internal */
173
- export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
174
- GetV2HumanEvalSetsIdResponseBody1,
175
- z.ZodTypeDef,
176
- unknown
177
- > = z.object({
178
- _id: z.string(),
179
- display_name: z.string(),
180
- description: z.string().optional(),
181
- human_eval_ids: z.array(z.string()),
182
- workspace_id: z.string(),
183
- project_id: z.string().optional(),
184
- created_by_id: z.string().optional(),
185
- updated_by_id: z.string().optional(),
186
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
187
- .optional(),
188
- updated: z.string().datetime({ offset: true }).default(
189
- "2026-10-28T11:12:42.542Z",
190
- ).transform(v => new Date(v)),
191
- filter_type: z.literal("span_type"),
192
- filter_values: z.array(z.string()),
193
- }).transform((v) => {
194
- return remap$(v, {
195
- "_id": "id",
196
- "display_name": "displayName",
197
- "human_eval_ids": "humanEvalIds",
198
- "workspace_id": "workspaceId",
199
- "project_id": "projectId",
200
- "created_by_id": "createdById",
201
- "updated_by_id": "updatedById",
202
- "filter_type": "filterType",
203
- "filter_values": "filterValues",
204
- });
205
- });
206
-
207
- export function getV2HumanEvalSetsIdResponseBody1FromJSON(
208
- jsonString: string,
209
- ): SafeParseResult<GetV2HumanEvalSetsIdResponseBody1, SDKValidationError> {
210
- return safeParse(
211
- jsonString,
212
- (x) => GetV2HumanEvalSetsIdResponseBody1$inboundSchema.parse(JSON.parse(x)),
213
- `Failed to parse 'GetV2HumanEvalSetsIdResponseBody1' from JSON`,
214
- );
215
- }
216
-
217
- /** @internal */
218
- export const GetV2HumanEvalSetsIdResponseBody$inboundSchema: z.ZodType<
219
- GetV2HumanEvalSetsIdResponseBody,
220
- z.ZodTypeDef,
221
- unknown
222
- > = z.union([
223
- z.lazy(() => GetV2HumanEvalSetsIdResponseBody1$inboundSchema),
224
- z.lazy(() => GetV2HumanEvalSetsIdResponseBody2$inboundSchema),
225
- ]);
226
-
227
- export function getV2HumanEvalSetsIdResponseBodyFromJSON(
228
- jsonString: string,
229
- ): SafeParseResult<GetV2HumanEvalSetsIdResponseBody, SDKValidationError> {
230
- return safeParse(
231
- jsonString,
232
- (x) => GetV2HumanEvalSetsIdResponseBody$inboundSchema.parse(JSON.parse(x)),
233
- `Failed to parse 'GetV2HumanEvalSetsIdResponseBody' from JSON`,
234
- );
235
- }
@@ -1,415 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type PatchV2HumanEvalSetsIdRequestBody2 = {
12
- /**
13
- * Display name of the human review set
14
- */
15
- displayName: string;
16
- /**
17
- * Detailed description of the human review set
18
- */
19
- description?: string | undefined;
20
- /**
21
- * Array of human review IDs to be applied to matching spans
22
- */
23
- humanEvalIds: Array<string>;
24
- /**
25
- * Optional project ID to scope this human review set to a specific project
26
- */
27
- projectId?: string | undefined;
28
- filterType: "name";
29
- /**
30
- * Name pattern to match
31
- */
32
- filterValue: string;
33
- };
34
-
35
- export type PatchV2HumanEvalSetsIdRequestBody1 = {
36
- /**
37
- * Display name of the human review set
38
- */
39
- displayName: string;
40
- /**
41
- * Detailed description of the human review set
42
- */
43
- description?: string | undefined;
44
- /**
45
- * Array of human review IDs to be applied to matching spans
46
- */
47
- humanEvalIds: Array<string>;
48
- /**
49
- * Optional project ID to scope this human review set to a specific project
50
- */
51
- projectId?: string | undefined;
52
- filterType: "span_type";
53
- /**
54
- * Array of span types to match
55
- */
56
- filterValues: Array<string>;
57
- };
58
-
59
- export type PatchV2HumanEvalSetsIdRequestBody =
60
- | PatchV2HumanEvalSetsIdRequestBody1
61
- | PatchV2HumanEvalSetsIdRequestBody2;
62
-
63
- export type PatchV2HumanEvalSetsIdRequest = {
64
- /**
65
- * The ID of the human review set to retrieve
66
- */
67
- id: string;
68
- requestBody?:
69
- | PatchV2HumanEvalSetsIdRequestBody1
70
- | PatchV2HumanEvalSetsIdRequestBody2
71
- | undefined;
72
- };
73
-
74
- export type PatchV2HumanEvalSetsIdResponseBody2 = {
75
- /**
76
- * The id of the resource
77
- */
78
- id: string;
79
- /**
80
- * Display name of the human review set
81
- */
82
- displayName: string;
83
- /**
84
- * Detailed description of the human review set
85
- */
86
- description?: string | undefined;
87
- /**
88
- * Array of human review IDs to be applied to matching spans
89
- */
90
- humanEvalIds: Array<string>;
91
- workspaceId: string;
92
- /**
93
- * Optional project ID to scope this human review set to a specific project
94
- */
95
- projectId?: string | undefined;
96
- createdById?: string | undefined;
97
- updatedById?: string | undefined;
98
- /**
99
- * The date and time the resource was created
100
- */
101
- created?: Date | undefined;
102
- /**
103
- * The date and time the resource was last updated
104
- */
105
- updated: Date;
106
- filterType: "name";
107
- /**
108
- * Name pattern to match
109
- */
110
- filterValue: string;
111
- };
112
-
113
- export type PatchV2HumanEvalSetsIdResponseBody1 = {
114
- /**
115
- * The id of the resource
116
- */
117
- id: string;
118
- /**
119
- * Display name of the human review set
120
- */
121
- displayName: string;
122
- /**
123
- * Detailed description of the human review set
124
- */
125
- description?: string | undefined;
126
- /**
127
- * Array of human review IDs to be applied to matching spans
128
- */
129
- humanEvalIds: Array<string>;
130
- workspaceId: string;
131
- /**
132
- * Optional project ID to scope this human review set to a specific project
133
- */
134
- projectId?: string | undefined;
135
- createdById?: string | undefined;
136
- updatedById?: string | undefined;
137
- /**
138
- * The date and time the resource was created
139
- */
140
- created?: Date | undefined;
141
- /**
142
- * The date and time the resource was last updated
143
- */
144
- updated: Date;
145
- filterType: "span_type";
146
- /**
147
- * Array of span types to match
148
- */
149
- filterValues: Array<string>;
150
- };
151
-
152
- /**
153
- * Successfully updated the human review set
154
- */
155
- export type PatchV2HumanEvalSetsIdResponseBody =
156
- | PatchV2HumanEvalSetsIdResponseBody1
157
- | PatchV2HumanEvalSetsIdResponseBody2;
158
-
159
- /** @internal */
160
- export type PatchV2HumanEvalSetsIdRequestBody2$Outbound = {
161
- display_name: string;
162
- description?: string | undefined;
163
- human_eval_ids: Array<string>;
164
- project_id?: string | undefined;
165
- filter_type: "name";
166
- filter_value: string;
167
- };
168
-
169
- /** @internal */
170
- export const PatchV2HumanEvalSetsIdRequestBody2$outboundSchema: z.ZodType<
171
- PatchV2HumanEvalSetsIdRequestBody2$Outbound,
172
- z.ZodTypeDef,
173
- PatchV2HumanEvalSetsIdRequestBody2
174
- > = z.object({
175
- displayName: z.string(),
176
- description: z.string().optional(),
177
- humanEvalIds: z.array(z.string()),
178
- projectId: z.string().optional(),
179
- filterType: z.literal("name"),
180
- filterValue: z.string(),
181
- }).transform((v) => {
182
- return remap$(v, {
183
- displayName: "display_name",
184
- humanEvalIds: "human_eval_ids",
185
- projectId: "project_id",
186
- filterType: "filter_type",
187
- filterValue: "filter_value",
188
- });
189
- });
190
-
191
- export function patchV2HumanEvalSetsIdRequestBody2ToJSON(
192
- patchV2HumanEvalSetsIdRequestBody2: PatchV2HumanEvalSetsIdRequestBody2,
193
- ): string {
194
- return JSON.stringify(
195
- PatchV2HumanEvalSetsIdRequestBody2$outboundSchema.parse(
196
- patchV2HumanEvalSetsIdRequestBody2,
197
- ),
198
- );
199
- }
200
-
201
- /** @internal */
202
- export type PatchV2HumanEvalSetsIdRequestBody1$Outbound = {
203
- display_name: string;
204
- description?: string | undefined;
205
- human_eval_ids: Array<string>;
206
- project_id?: string | undefined;
207
- filter_type: "span_type";
208
- filter_values: Array<string>;
209
- };
210
-
211
- /** @internal */
212
- export const PatchV2HumanEvalSetsIdRequestBody1$outboundSchema: z.ZodType<
213
- PatchV2HumanEvalSetsIdRequestBody1$Outbound,
214
- z.ZodTypeDef,
215
- PatchV2HumanEvalSetsIdRequestBody1
216
- > = z.object({
217
- displayName: z.string(),
218
- description: z.string().optional(),
219
- humanEvalIds: z.array(z.string()),
220
- projectId: z.string().optional(),
221
- filterType: z.literal("span_type"),
222
- filterValues: z.array(z.string()),
223
- }).transform((v) => {
224
- return remap$(v, {
225
- displayName: "display_name",
226
- humanEvalIds: "human_eval_ids",
227
- projectId: "project_id",
228
- filterType: "filter_type",
229
- filterValues: "filter_values",
230
- });
231
- });
232
-
233
- export function patchV2HumanEvalSetsIdRequestBody1ToJSON(
234
- patchV2HumanEvalSetsIdRequestBody1: PatchV2HumanEvalSetsIdRequestBody1,
235
- ): string {
236
- return JSON.stringify(
237
- PatchV2HumanEvalSetsIdRequestBody1$outboundSchema.parse(
238
- patchV2HumanEvalSetsIdRequestBody1,
239
- ),
240
- );
241
- }
242
-
243
- /** @internal */
244
- export type PatchV2HumanEvalSetsIdRequestBody$Outbound =
245
- | PatchV2HumanEvalSetsIdRequestBody1$Outbound
246
- | PatchV2HumanEvalSetsIdRequestBody2$Outbound;
247
-
248
- /** @internal */
249
- export const PatchV2HumanEvalSetsIdRequestBody$outboundSchema: z.ZodType<
250
- PatchV2HumanEvalSetsIdRequestBody$Outbound,
251
- z.ZodTypeDef,
252
- PatchV2HumanEvalSetsIdRequestBody
253
- > = z.union([
254
- z.lazy(() => PatchV2HumanEvalSetsIdRequestBody1$outboundSchema),
255
- z.lazy(() => PatchV2HumanEvalSetsIdRequestBody2$outboundSchema),
256
- ]);
257
-
258
- export function patchV2HumanEvalSetsIdRequestBodyToJSON(
259
- patchV2HumanEvalSetsIdRequestBody: PatchV2HumanEvalSetsIdRequestBody,
260
- ): string {
261
- return JSON.stringify(
262
- PatchV2HumanEvalSetsIdRequestBody$outboundSchema.parse(
263
- patchV2HumanEvalSetsIdRequestBody,
264
- ),
265
- );
266
- }
267
-
268
- /** @internal */
269
- export type PatchV2HumanEvalSetsIdRequest$Outbound = {
270
- id: string;
271
- RequestBody?:
272
- | PatchV2HumanEvalSetsIdRequestBody1$Outbound
273
- | PatchV2HumanEvalSetsIdRequestBody2$Outbound
274
- | undefined;
275
- };
276
-
277
- /** @internal */
278
- export const PatchV2HumanEvalSetsIdRequest$outboundSchema: z.ZodType<
279
- PatchV2HumanEvalSetsIdRequest$Outbound,
280
- z.ZodTypeDef,
281
- PatchV2HumanEvalSetsIdRequest
282
- > = z.object({
283
- id: z.string(),
284
- requestBody: z.union([
285
- z.lazy(() => PatchV2HumanEvalSetsIdRequestBody1$outboundSchema),
286
- z.lazy(() => PatchV2HumanEvalSetsIdRequestBody2$outboundSchema),
287
- ]).optional(),
288
- }).transform((v) => {
289
- return remap$(v, {
290
- requestBody: "RequestBody",
291
- });
292
- });
293
-
294
- export function patchV2HumanEvalSetsIdRequestToJSON(
295
- patchV2HumanEvalSetsIdRequest: PatchV2HumanEvalSetsIdRequest,
296
- ): string {
297
- return JSON.stringify(
298
- PatchV2HumanEvalSetsIdRequest$outboundSchema.parse(
299
- patchV2HumanEvalSetsIdRequest,
300
- ),
301
- );
302
- }
303
-
304
- /** @internal */
305
- export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
306
- PatchV2HumanEvalSetsIdResponseBody2,
307
- z.ZodTypeDef,
308
- unknown
309
- > = z.object({
310
- _id: z.string(),
311
- display_name: z.string(),
312
- description: z.string().optional(),
313
- human_eval_ids: z.array(z.string()),
314
- workspace_id: z.string(),
315
- project_id: z.string().optional(),
316
- created_by_id: z.string().optional(),
317
- updated_by_id: z.string().optional(),
318
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
319
- .optional(),
320
- updated: z.string().datetime({ offset: true }).default(
321
- "2026-10-28T11:12:42.542Z",
322
- ).transform(v => new Date(v)),
323
- filter_type: z.literal("name"),
324
- filter_value: z.string(),
325
- }).transform((v) => {
326
- return remap$(v, {
327
- "_id": "id",
328
- "display_name": "displayName",
329
- "human_eval_ids": "humanEvalIds",
330
- "workspace_id": "workspaceId",
331
- "project_id": "projectId",
332
- "created_by_id": "createdById",
333
- "updated_by_id": "updatedById",
334
- "filter_type": "filterType",
335
- "filter_value": "filterValue",
336
- });
337
- });
338
-
339
- export function patchV2HumanEvalSetsIdResponseBody2FromJSON(
340
- jsonString: string,
341
- ): SafeParseResult<PatchV2HumanEvalSetsIdResponseBody2, SDKValidationError> {
342
- return safeParse(
343
- jsonString,
344
- (x) =>
345
- PatchV2HumanEvalSetsIdResponseBody2$inboundSchema.parse(JSON.parse(x)),
346
- `Failed to parse 'PatchV2HumanEvalSetsIdResponseBody2' from JSON`,
347
- );
348
- }
349
-
350
- /** @internal */
351
- export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
352
- PatchV2HumanEvalSetsIdResponseBody1,
353
- z.ZodTypeDef,
354
- unknown
355
- > = z.object({
356
- _id: z.string(),
357
- display_name: z.string(),
358
- description: z.string().optional(),
359
- human_eval_ids: z.array(z.string()),
360
- workspace_id: z.string(),
361
- project_id: z.string().optional(),
362
- created_by_id: z.string().optional(),
363
- updated_by_id: z.string().optional(),
364
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
365
- .optional(),
366
- updated: z.string().datetime({ offset: true }).default(
367
- "2026-10-28T11:12:42.542Z",
368
- ).transform(v => new Date(v)),
369
- filter_type: z.literal("span_type"),
370
- filter_values: z.array(z.string()),
371
- }).transform((v) => {
372
- return remap$(v, {
373
- "_id": "id",
374
- "display_name": "displayName",
375
- "human_eval_ids": "humanEvalIds",
376
- "workspace_id": "workspaceId",
377
- "project_id": "projectId",
378
- "created_by_id": "createdById",
379
- "updated_by_id": "updatedById",
380
- "filter_type": "filterType",
381
- "filter_values": "filterValues",
382
- });
383
- });
384
-
385
- export function patchV2HumanEvalSetsIdResponseBody1FromJSON(
386
- jsonString: string,
387
- ): SafeParseResult<PatchV2HumanEvalSetsIdResponseBody1, SDKValidationError> {
388
- return safeParse(
389
- jsonString,
390
- (x) =>
391
- PatchV2HumanEvalSetsIdResponseBody1$inboundSchema.parse(JSON.parse(x)),
392
- `Failed to parse 'PatchV2HumanEvalSetsIdResponseBody1' from JSON`,
393
- );
394
- }
395
-
396
- /** @internal */
397
- export const PatchV2HumanEvalSetsIdResponseBody$inboundSchema: z.ZodType<
398
- PatchV2HumanEvalSetsIdResponseBody,
399
- z.ZodTypeDef,
400
- unknown
401
- > = z.union([
402
- z.lazy(() => PatchV2HumanEvalSetsIdResponseBody1$inboundSchema),
403
- z.lazy(() => PatchV2HumanEvalSetsIdResponseBody2$inboundSchema),
404
- ]);
405
-
406
- export function patchV2HumanEvalSetsIdResponseBodyFromJSON(
407
- jsonString: string,
408
- ): SafeParseResult<PatchV2HumanEvalSetsIdResponseBody, SDKValidationError> {
409
- return safeParse(
410
- jsonString,
411
- (x) =>
412
- PatchV2HumanEvalSetsIdResponseBody$inboundSchema.parse(JSON.parse(x)),
413
- `Failed to parse 'PatchV2HumanEvalSetsIdResponseBody' from JSON`,
414
- );
415
- }