@orq-ai/node 4.12.0-rc.32 → 4.12.0-rc.34

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 (92) 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/evaluatorresponsefunction.js +2 -2
  5. package/models/components/evaluatorresponsehttp.js +2 -2
  6. package/models/components/evaluatorresponsejsonschema.js +2 -2
  7. package/models/components/evaluatorresponsellm.js +2 -2
  8. package/models/components/evaluatorresponsepython.js +2 -2
  9. package/models/components/evaluatorresponseragas.js +2 -2
  10. package/models/components/evaluatorresponsetypescript.js +2 -2
  11. package/models/components/reasoningpart.js +1 -1
  12. package/models/operations/createdataset.js +1 -1
  13. package/models/operations/createdatasetitem.d.ts +121 -8
  14. package/models/operations/createdatasetitem.d.ts.map +1 -1
  15. package/models/operations/createdatasetitem.js +97 -12
  16. package/models/operations/createdatasetitem.js.map +1 -1
  17. package/models/operations/createdatasource.js +1 -1
  18. package/models/operations/createtool.js +6 -6
  19. package/models/operations/getalltools.js +6 -6
  20. package/models/operations/getv2humanevalsets.js +2 -2
  21. package/models/operations/getv2humanevalsetsid.js +2 -2
  22. package/models/operations/listdatasetdatapoints.d.ts +149 -36
  23. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  24. package/models/operations/listdatasetdatapoints.js +119 -37
  25. package/models/operations/listdatasetdatapoints.js.map +1 -1
  26. package/models/operations/listdatasets.js +1 -1
  27. package/models/operations/listdatasources.js +1 -1
  28. package/models/operations/patchv2humanevalsetsid.js +2 -2
  29. package/models/operations/postv2feedbackevaluation.d.ts +68 -6
  30. package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
  31. package/models/operations/postv2feedbackevaluation.js +46 -6
  32. package/models/operations/postv2feedbackevaluation.js.map +1 -1
  33. package/models/operations/postv2humanevalsets.js +2 -2
  34. package/models/operations/retrievedatapoint.d.ts +117 -4
  35. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  36. package/models/operations/retrievedatapoint.js +90 -8
  37. package/models/operations/retrievedatapoint.js.map +1 -1
  38. package/models/operations/retrievedataset.js +1 -1
  39. package/models/operations/retrievedatasource.js +1 -1
  40. package/models/operations/retrievetool.js +6 -6
  41. package/models/operations/runagent.js +1 -1
  42. package/models/operations/streamrunagent.js +1 -1
  43. package/models/operations/updatedatapoint.d.ts +117 -4
  44. package/models/operations/updatedatapoint.d.ts.map +1 -1
  45. package/models/operations/updatedatapoint.js +92 -8
  46. package/models/operations/updatedatapoint.js.map +1 -1
  47. package/models/operations/updatedataset.js +1 -1
  48. package/models/operations/updatedatasource.js +1 -1
  49. package/models/operations/updatetool.js +7 -7
  50. package/package.json +8 -8
  51. package/sdk/feedback.d.ts +4 -1
  52. package/sdk/feedback.d.ts.map +1 -1
  53. package/sdk/feedback.js +4 -1
  54. package/sdk/feedback.js.map +1 -1
  55. package/sdk/humanreviewsets.d.ts +4 -1
  56. package/sdk/humanreviewsets.d.ts.map +1 -1
  57. package/sdk/humanreviewsets.js +4 -1
  58. package/sdk/humanreviewsets.js.map +1 -1
  59. package/src/lib/config.ts +2 -2
  60. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  61. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  62. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  63. package/src/models/components/evaluatorresponsellm.ts +2 -2
  64. package/src/models/components/evaluatorresponsepython.ts +2 -2
  65. package/src/models/components/evaluatorresponseragas.ts +2 -2
  66. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  67. package/src/models/components/reasoningpart.ts +1 -1
  68. package/src/models/operations/createdataset.ts +1 -1
  69. package/src/models/operations/createdatasetitem.ts +237 -19
  70. package/src/models/operations/createdatasource.ts +1 -1
  71. package/src/models/operations/createtool.ts +6 -6
  72. package/src/models/operations/getalltools.ts +6 -6
  73. package/src/models/operations/getv2humanevalsets.ts +2 -2
  74. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  75. package/src/models/operations/listdatasetdatapoints.ts +313 -84
  76. package/src/models/operations/listdatasets.ts +1 -1
  77. package/src/models/operations/listdatasources.ts +1 -1
  78. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  79. package/src/models/operations/postv2feedbackevaluation.ts +119 -11
  80. package/src/models/operations/postv2humanevalsets.ts +2 -2
  81. package/src/models/operations/retrievedatapoint.ts +234 -9
  82. package/src/models/operations/retrievedataset.ts +1 -1
  83. package/src/models/operations/retrievedatasource.ts +1 -1
  84. package/src/models/operations/retrievetool.ts +6 -6
  85. package/src/models/operations/runagent.ts +1 -1
  86. package/src/models/operations/streamrunagent.ts +1 -1
  87. package/src/models/operations/updatedatapoint.ts +229 -9
  88. package/src/models/operations/updatedataset.ts +1 -1
  89. package/src/models/operations/updatedatasource.ts +1 -1
  90. package/src/models/operations/updatetool.ts +7 -7
  91. package/src/sdk/feedback.ts +4 -1
  92. package/src/sdk/humanreviewsets.ts +4 -1
@@ -169,7 +169,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
169
169
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
170
170
  .optional(),
171
171
  updated: z.string().datetime({ offset: true }).default(
172
- "2026-07-16T07:22:48.465Z",
172
+ "2026-07-16T11:02:21.951Z",
173
173
  ).transform(v => new Date(v)),
174
174
  }).transform((v) => {
175
175
  return remap$(v, {
@@ -182,7 +182,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
182
182
  z.ZodTypeDef,
183
183
  unknown
184
184
  > = z.object({
185
- _id: z.string().default("01KXMWXR81YC09DWWP05KEXXNK"),
185
+ _id: z.string().default("01KXN9FG8660100RJ56B9RXFCQ"),
186
186
  display_name: z.string(),
187
187
  description: z.nullable(z.string()).optional(),
188
188
  status: ListDatasourcesStatus$inboundSchema,
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
318
318
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
319
319
  .optional(),
320
320
  updated: z.string().datetime({ offset: true }).default(
321
- "2026-07-16T07:22:48.465Z",
321
+ "2026-07-16T11:02:21.951Z",
322
322
  ).transform(v => new Date(v)),
323
323
  filter_type: z.literal("name"),
324
324
  filter_value: z.string(),
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
364
364
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
365
365
  .optional(),
366
366
  updated: z.string().datetime({ offset: true }).default(
367
- "2026-07-16T07:22:48.465Z",
367
+ "2026-07-16T11:02:21.951Z",
368
368
  ).transform(v => new Date(v)),
369
369
  filter_type: z.literal("span_type"),
370
370
  filter_values: z.array(z.string()),
@@ -6,6 +6,54 @@ import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { ClosedEnum } from "../../types/enums.js";
8
8
 
9
+ /**
10
+ * The type of evaluation
11
+ */
12
+ export const PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType = {
13
+ HumanReview: "human_review",
14
+ } as const;
15
+ /**
16
+ * The type of evaluation
17
+ */
18
+ export type PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType =
19
+ ClosedEnum<typeof PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType>;
20
+
21
+ export const PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource = {
22
+ Orq: "orq",
23
+ External: "external",
24
+ } as const;
25
+ export type PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource =
26
+ ClosedEnum<typeof PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource>;
27
+
28
+ export type RequestBody4 = {
29
+ /**
30
+ * The unique identifier of the human evaluation
31
+ */
32
+ id: string;
33
+ /**
34
+ * The type of evaluation
35
+ */
36
+ evaluationType: PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType;
37
+ /**
38
+ * The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
39
+ */
40
+ humanReviewId?: string | undefined;
41
+ source?: PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource | undefined;
42
+ /**
43
+ * Optional free-text explanation of the value
44
+ */
45
+ explanation?: string | undefined;
46
+ /**
47
+ * Deprecated. The date and time the item was reviewed
48
+ *
49
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
50
+ */
51
+ reviewedAt?: Date | undefined;
52
+ type: "string_array";
53
+ values: Array<string>;
54
+ traceId: string;
55
+ };
56
+
9
57
  /**
10
58
  * The type of evaluation
11
59
  */
@@ -51,8 +99,8 @@ export type RequestBody3 = {
51
99
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
52
100
  */
53
101
  reviewedAt?: Date | undefined;
54
- type: "string_array";
55
- values: Array<string>;
102
+ type: "boolean";
103
+ value: boolean;
56
104
  traceId: string;
57
105
  };
58
106
 
@@ -155,7 +203,65 @@ export type PostV2FeedbackEvaluationRequestBody1 = {
155
203
  export type PostV2FeedbackEvaluationRequestBody =
156
204
  | PostV2FeedbackEvaluationRequestBody1
157
205
  | PostV2FeedbackEvaluationRequestBody2
158
- | RequestBody3;
206
+ | RequestBody3
207
+ | RequestBody4;
208
+
209
+ /** @internal */
210
+ export const PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType$outboundSchema:
211
+ z.ZodNativeEnum<
212
+ typeof PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType
213
+ > = z.nativeEnum(PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType);
214
+
215
+ /** @internal */
216
+ export const PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema:
217
+ z.ZodNativeEnum<
218
+ typeof PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource
219
+ > = z.nativeEnum(PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource);
220
+
221
+ /** @internal */
222
+ export type RequestBody4$Outbound = {
223
+ id: string;
224
+ evaluation_type: string;
225
+ human_review_id?: string | undefined;
226
+ source: string;
227
+ explanation?: string | undefined;
228
+ reviewed_at: string;
229
+ type: "string_array";
230
+ values: Array<string>;
231
+ trace_id: string;
232
+ };
233
+
234
+ /** @internal */
235
+ export const RequestBody4$outboundSchema: z.ZodType<
236
+ RequestBody4$Outbound,
237
+ z.ZodTypeDef,
238
+ RequestBody4
239
+ > = z.object({
240
+ id: z.string(),
241
+ evaluationType:
242
+ PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType$outboundSchema,
243
+ humanReviewId: z.string().optional(),
244
+ source:
245
+ PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
246
+ .default("orq"),
247
+ explanation: z.string().optional(),
248
+ reviewedAt: z.date().default(() => new Date("2026-07-16T11:02:38.349Z"))
249
+ .transform(v => v.toISOString()),
250
+ type: z.literal("string_array"),
251
+ values: z.array(z.string()),
252
+ traceId: z.string(),
253
+ }).transform((v) => {
254
+ return remap$(v, {
255
+ evaluationType: "evaluation_type",
256
+ humanReviewId: "human_review_id",
257
+ reviewedAt: "reviewed_at",
258
+ traceId: "trace_id",
259
+ });
260
+ });
261
+
262
+ export function requestBody4ToJSON(requestBody4: RequestBody4): string {
263
+ return JSON.stringify(RequestBody4$outboundSchema.parse(requestBody4));
264
+ }
159
265
 
160
266
  /** @internal */
161
267
  export const PostV2FeedbackEvaluationRequestBodyEvaluationType$outboundSchema:
@@ -175,8 +281,8 @@ export type RequestBody3$Outbound = {
175
281
  source: string;
176
282
  explanation?: string | undefined;
177
283
  reviewed_at: string;
178
- type: "string_array";
179
- values: Array<string>;
284
+ type: "boolean";
285
+ value: boolean;
180
286
  trace_id: string;
181
287
  };
182
288
 
@@ -193,10 +299,10 @@ export const RequestBody3$outboundSchema: z.ZodType<
193
299
  source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
194
300
  .default("orq"),
195
301
  explanation: z.string().optional(),
196
- reviewedAt: z.date().default(() => new Date("2026-07-16T07:23:13.825Z"))
302
+ reviewedAt: z.date().default(() => new Date("2026-07-16T11:02:38.348Z"))
197
303
  .transform(v => v.toISOString()),
198
- type: z.literal("string_array"),
199
- values: z.array(z.string()),
304
+ type: z.literal("boolean"),
305
+ value: z.boolean(),
200
306
  traceId: z.string(),
201
307
  }).transform((v) => {
202
308
  return remap$(v, {
@@ -247,7 +353,7 @@ export const PostV2FeedbackEvaluationRequestBody2$outboundSchema: z.ZodType<
247
353
  "orq",
248
354
  ),
249
355
  explanation: z.string().optional(),
250
- reviewedAt: z.date().default(() => new Date("2026-07-16T07:23:13.824Z"))
356
+ reviewedAt: z.date().default(() => new Date("2026-07-16T11:02:38.347Z"))
251
357
  .transform(v => v.toISOString()),
252
358
  type: z.literal("number"),
253
359
  value: z.number(),
@@ -305,7 +411,7 @@ export const PostV2FeedbackEvaluationRequestBody1$outboundSchema: z.ZodType<
305
411
  humanReviewId: z.string().optional(),
306
412
  source: RequestBodySource$outboundSchema.default("orq"),
307
413
  explanation: z.string().optional(),
308
- reviewedAt: z.date().default(() => new Date("2026-07-16T07:23:13.824Z"))
414
+ reviewedAt: z.date().default(() => new Date("2026-07-16T11:02:38.347Z"))
309
415
  .transform(v => v.toISOString()),
310
416
  type: z.literal("string"),
311
417
  value: z.string(),
@@ -333,7 +439,8 @@ export function postV2FeedbackEvaluationRequestBody1ToJSON(
333
439
  export type PostV2FeedbackEvaluationRequestBody$Outbound =
334
440
  | PostV2FeedbackEvaluationRequestBody1$Outbound
335
441
  | PostV2FeedbackEvaluationRequestBody2$Outbound
336
- | RequestBody3$Outbound;
442
+ | RequestBody3$Outbound
443
+ | RequestBody4$Outbound;
337
444
 
338
445
  /** @internal */
339
446
  export const PostV2FeedbackEvaluationRequestBody$outboundSchema: z.ZodType<
@@ -344,6 +451,7 @@ export const PostV2FeedbackEvaluationRequestBody$outboundSchema: z.ZodType<
344
451
  z.lazy(() => PostV2FeedbackEvaluationRequestBody1$outboundSchema),
345
452
  z.lazy(() => PostV2FeedbackEvaluationRequestBody2$outboundSchema),
346
453
  z.lazy(() => RequestBody3$outboundSchema),
454
+ z.lazy(() => RequestBody4$outboundSchema),
347
455
  ]);
348
456
 
349
457
  export function postV2FeedbackEvaluationRequestBodyToJSON(
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
271
271
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
272
272
  .optional(),
273
273
  updated: z.string().datetime({ offset: true }).default(
274
- "2026-07-16T07:22:48.465Z",
274
+ "2026-07-16T11:02:21.951Z",
275
275
  ).transform(v => new Date(v)),
276
276
  filter_type: z.literal("name"),
277
277
  filter_value: z.string(),
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
316
316
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
317
317
  .optional(),
318
318
  updated: z.string().datetime({ offset: true }).default(
319
- "2026-07-16T07:22:48.465Z",
319
+ "2026-07-16T11:02:21.951Z",
320
320
  ).transform(v => new Date(v)),
321
321
  filter_type: z.literal("span_type"),
322
322
  filter_values: z.array(z.string()),
@@ -373,6 +373,125 @@ export type RetrieveDatapointMessages =
373
373
  | RetrieveDatapointMessagesAssistantMessage
374
374
  | RetrieveDatapointMessagesToolMessage;
375
375
 
376
+ /**
377
+ * The type of evaluation
378
+ */
379
+ export const RetrieveDatapointEvaluationsDatasetsResponse200EvaluationType = {
380
+ HumanReview: "human_review",
381
+ } as const;
382
+ /**
383
+ * The type of evaluation
384
+ */
385
+ export type RetrieveDatapointEvaluationsDatasetsResponse200EvaluationType =
386
+ ClosedEnum<
387
+ typeof RetrieveDatapointEvaluationsDatasetsResponse200EvaluationType
388
+ >;
389
+
390
+ export const RetrieveDatapointEvaluationsDatasetsResponse200Source = {
391
+ Orq: "orq",
392
+ External: "external",
393
+ } as const;
394
+ export type RetrieveDatapointEvaluationsDatasetsResponse200Source = ClosedEnum<
395
+ typeof RetrieveDatapointEvaluationsDatasetsResponse200Source
396
+ >;
397
+
398
+ /**
399
+ * The kind of annotator that produced the evaluation
400
+ */
401
+ export const RetrieveDatapointEvaluationsDatasetsResponse200Kind = {
402
+ Llm: "llm",
403
+ Code: "code",
404
+ Human: "human",
405
+ Automation: "automation",
406
+ } as const;
407
+ /**
408
+ * The kind of annotator that produced the evaluation
409
+ */
410
+ export type RetrieveDatapointEvaluationsDatasetsResponse200Kind = ClosedEnum<
411
+ typeof RetrieveDatapointEvaluationsDatasetsResponse200Kind
412
+ >;
413
+
414
+ /**
415
+ * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
416
+ */
417
+ export type RetrieveDatapointEvaluationsDatasetsResponse200Annotator = {
418
+ /**
419
+ * The kind of annotator that produced the evaluation
420
+ */
421
+ kind: RetrieveDatapointEvaluationsDatasetsResponse200Kind;
422
+ /**
423
+ * Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
424
+ */
425
+ actorId: string;
426
+ };
427
+
428
+ /**
429
+ * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
430
+ */
431
+ export const RetrieveDatapointEvaluationsDatasetsResponse200OutputSchema = {
432
+ Boolean: "boolean",
433
+ Number: "number",
434
+ Categorical: "categorical",
435
+ String: "string",
436
+ } as const;
437
+ /**
438
+ * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
439
+ */
440
+ export type RetrieveDatapointEvaluationsDatasetsResponse200OutputSchema =
441
+ ClosedEnum<
442
+ typeof RetrieveDatapointEvaluationsDatasetsResponse200OutputSchema
443
+ >;
444
+
445
+ export type RetrieveDatapointEvaluations4 = {
446
+ /**
447
+ * The unique identifier of the human evaluation
448
+ */
449
+ id: string;
450
+ /**
451
+ * The type of evaluation
452
+ */
453
+ evaluationType: RetrieveDatapointEvaluationsDatasetsResponse200EvaluationType;
454
+ /**
455
+ * The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
456
+ */
457
+ humanReviewId?: string | undefined;
458
+ source: RetrieveDatapointEvaluationsDatasetsResponse200Source;
459
+ /**
460
+ * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
461
+ */
462
+ annotator?:
463
+ | RetrieveDatapointEvaluationsDatasetsResponse200Annotator
464
+ | undefined;
465
+ /**
466
+ * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
467
+ */
468
+ outputSchema?:
469
+ | RetrieveDatapointEvaluationsDatasetsResponse200OutputSchema
470
+ | undefined;
471
+ /**
472
+ * When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
473
+ */
474
+ parentAnnotationId?: string | undefined;
475
+ /**
476
+ * Optional free-text explanation of the value
477
+ */
478
+ explanation?: string | undefined;
479
+ /**
480
+ * Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
481
+ *
482
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
483
+ */
484
+ reviewedById: string;
485
+ /**
486
+ * Deprecated. The date and time the item was reviewed
487
+ *
488
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
489
+ */
490
+ reviewedAt: Date;
491
+ type: "string_array";
492
+ values: Array<string>;
493
+ };
494
+
376
495
  /**
377
496
  * The type of evaluation
378
497
  */
@@ -482,8 +601,8 @@ export type RetrieveDatapointEvaluations3 = {
482
601
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
483
602
  */
484
603
  reviewedAt: Date;
485
- type: "string_array";
486
- values: Array<string>;
604
+ type: "boolean";
605
+ value: boolean;
487
606
  };
488
607
 
489
608
  /**
@@ -715,7 +834,8 @@ export type RetrieveDatapointEvaluations1 = {
715
834
  export type RetrieveDatapointEvaluations =
716
835
  | RetrieveDatapointEvaluations1
717
836
  | RetrieveDatapointEvaluations2
718
- | RetrieveDatapointEvaluations3;
837
+ | RetrieveDatapointEvaluations3
838
+ | RetrieveDatapointEvaluations4;
719
839
 
720
840
  /**
721
841
  * Datapoint retrieved.
@@ -754,6 +874,7 @@ export type RetrieveDatapointResponseBody = {
754
874
  | RetrieveDatapointEvaluations1
755
875
  | RetrieveDatapointEvaluations2
756
876
  | RetrieveDatapointEvaluations3
877
+ | RetrieveDatapointEvaluations4
757
878
  >
758
879
  | undefined;
759
880
  /**
@@ -1381,6 +1502,108 @@ export function retrieveDatapointMessagesFromJSON(
1381
1502
  );
1382
1503
  }
1383
1504
 
1505
+ /** @internal */
1506
+ export const RetrieveDatapointEvaluationsDatasetsResponse200EvaluationType$inboundSchema:
1507
+ z.ZodNativeEnum<
1508
+ typeof RetrieveDatapointEvaluationsDatasetsResponse200EvaluationType
1509
+ > = z.nativeEnum(
1510
+ RetrieveDatapointEvaluationsDatasetsResponse200EvaluationType,
1511
+ );
1512
+
1513
+ /** @internal */
1514
+ export const RetrieveDatapointEvaluationsDatasetsResponse200Source$inboundSchema:
1515
+ z.ZodNativeEnum<
1516
+ typeof RetrieveDatapointEvaluationsDatasetsResponse200Source
1517
+ > = z.nativeEnum(RetrieveDatapointEvaluationsDatasetsResponse200Source);
1518
+
1519
+ /** @internal */
1520
+ export const RetrieveDatapointEvaluationsDatasetsResponse200Kind$inboundSchema:
1521
+ z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsResponse200Kind> =
1522
+ z.nativeEnum(RetrieveDatapointEvaluationsDatasetsResponse200Kind);
1523
+
1524
+ /** @internal */
1525
+ export const RetrieveDatapointEvaluationsDatasetsResponse200Annotator$inboundSchema:
1526
+ z.ZodType<
1527
+ RetrieveDatapointEvaluationsDatasetsResponse200Annotator,
1528
+ z.ZodTypeDef,
1529
+ unknown
1530
+ > = z.object({
1531
+ kind: RetrieveDatapointEvaluationsDatasetsResponse200Kind$inboundSchema,
1532
+ actor_id: z.string(),
1533
+ }).transform((v) => {
1534
+ return remap$(v, {
1535
+ "actor_id": "actorId",
1536
+ });
1537
+ });
1538
+
1539
+ export function retrieveDatapointEvaluationsDatasetsResponse200AnnotatorFromJSON(
1540
+ jsonString: string,
1541
+ ): SafeParseResult<
1542
+ RetrieveDatapointEvaluationsDatasetsResponse200Annotator,
1543
+ SDKValidationError
1544
+ > {
1545
+ return safeParse(
1546
+ jsonString,
1547
+ (x) =>
1548
+ RetrieveDatapointEvaluationsDatasetsResponse200Annotator$inboundSchema
1549
+ .parse(JSON.parse(x)),
1550
+ `Failed to parse 'RetrieveDatapointEvaluationsDatasetsResponse200Annotator' from JSON`,
1551
+ );
1552
+ }
1553
+
1554
+ /** @internal */
1555
+ export const RetrieveDatapointEvaluationsDatasetsResponse200OutputSchema$inboundSchema:
1556
+ z.ZodNativeEnum<
1557
+ typeof RetrieveDatapointEvaluationsDatasetsResponse200OutputSchema
1558
+ > = z.nativeEnum(RetrieveDatapointEvaluationsDatasetsResponse200OutputSchema);
1559
+
1560
+ /** @internal */
1561
+ export const RetrieveDatapointEvaluations4$inboundSchema: z.ZodType<
1562
+ RetrieveDatapointEvaluations4,
1563
+ z.ZodTypeDef,
1564
+ unknown
1565
+ > = z.object({
1566
+ id: z.string(),
1567
+ evaluation_type:
1568
+ RetrieveDatapointEvaluationsDatasetsResponse200EvaluationType$inboundSchema,
1569
+ human_review_id: z.string().optional(),
1570
+ source: RetrieveDatapointEvaluationsDatasetsResponse200Source$inboundSchema
1571
+ .default("orq"),
1572
+ annotator: z.lazy(() =>
1573
+ RetrieveDatapointEvaluationsDatasetsResponse200Annotator$inboundSchema
1574
+ ).optional(),
1575
+ output_schema:
1576
+ RetrieveDatapointEvaluationsDatasetsResponse200OutputSchema$inboundSchema
1577
+ .optional(),
1578
+ parent_annotation_id: z.string().optional(),
1579
+ explanation: z.string().optional(),
1580
+ reviewed_by_id: z.string(),
1581
+ reviewed_at: z.string().datetime({ offset: true }).default(
1582
+ "2026-07-16T11:02:38.191Z",
1583
+ ).transform(v => new Date(v)),
1584
+ type: z.literal("string_array"),
1585
+ values: z.array(z.string()),
1586
+ }).transform((v) => {
1587
+ return remap$(v, {
1588
+ "evaluation_type": "evaluationType",
1589
+ "human_review_id": "humanReviewId",
1590
+ "output_schema": "outputSchema",
1591
+ "parent_annotation_id": "parentAnnotationId",
1592
+ "reviewed_by_id": "reviewedById",
1593
+ "reviewed_at": "reviewedAt",
1594
+ });
1595
+ });
1596
+
1597
+ export function retrieveDatapointEvaluations4FromJSON(
1598
+ jsonString: string,
1599
+ ): SafeParseResult<RetrieveDatapointEvaluations4, SDKValidationError> {
1600
+ return safeParse(
1601
+ jsonString,
1602
+ (x) => RetrieveDatapointEvaluations4$inboundSchema.parse(JSON.parse(x)),
1603
+ `Failed to parse 'RetrieveDatapointEvaluations4' from JSON`,
1604
+ );
1605
+ }
1606
+
1384
1607
  /** @internal */
1385
1608
  export const RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema:
1386
1609
  z.ZodNativeEnum<
@@ -1456,10 +1679,10 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
1456
1679
  explanation: z.string().optional(),
1457
1680
  reviewed_by_id: z.string(),
1458
1681
  reviewed_at: z.string().datetime({ offset: true }).default(
1459
- "2026-07-16T07:23:13.636Z",
1682
+ "2026-07-16T11:02:38.190Z",
1460
1683
  ).transform(v => new Date(v)),
1461
- type: z.literal("string_array"),
1462
- values: z.array(z.string()),
1684
+ type: z.literal("boolean"),
1685
+ value: z.boolean(),
1463
1686
  }).transform((v) => {
1464
1687
  return remap$(v, {
1465
1688
  "evaluation_type": "evaluationType",
@@ -1554,7 +1777,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
1554
1777
  explanation: z.string().optional(),
1555
1778
  reviewed_by_id: z.string(),
1556
1779
  reviewed_at: z.string().datetime({ offset: true }).default(
1557
- "2026-07-16T07:23:13.635Z",
1780
+ "2026-07-16T11:02:38.188Z",
1558
1781
  ).transform(v => new Date(v)),
1559
1782
  type: z.literal("number"),
1560
1783
  value: z.number(),
@@ -1642,7 +1865,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
1642
1865
  explanation: z.string().optional(),
1643
1866
  reviewed_by_id: z.string(),
1644
1867
  reviewed_at: z.string().datetime({ offset: true }).default(
1645
- "2026-07-16T07:23:13.633Z",
1868
+ "2026-07-16T11:02:38.187Z",
1646
1869
  ).transform(v => new Date(v)),
1647
1870
  type: z.literal("string"),
1648
1871
  value: z.string(),
@@ -1676,6 +1899,7 @@ export const RetrieveDatapointEvaluations$inboundSchema: z.ZodType<
1676
1899
  z.lazy(() => RetrieveDatapointEvaluations1$inboundSchema),
1677
1900
  z.lazy(() => RetrieveDatapointEvaluations2$inboundSchema),
1678
1901
  z.lazy(() => RetrieveDatapointEvaluations3$inboundSchema),
1902
+ z.lazy(() => RetrieveDatapointEvaluations4$inboundSchema),
1679
1903
  ]);
1680
1904
 
1681
1905
  export function retrieveDatapointEvaluationsFromJSON(
@@ -1712,6 +1936,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
1712
1936
  z.lazy(() => RetrieveDatapointEvaluations1$inboundSchema),
1713
1937
  z.lazy(() => RetrieveDatapointEvaluations2$inboundSchema),
1714
1938
  z.lazy(() => RetrieveDatapointEvaluations3$inboundSchema),
1939
+ z.lazy(() => RetrieveDatapointEvaluations4$inboundSchema),
1715
1940
  ]),
1716
1941
  ).optional(),
1717
1942
  dataset_id: z.string(),
@@ -1721,7 +1946,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
1721
1946
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1722
1947
  .optional(),
1723
1948
  updated: z.string().datetime({ offset: true }).default(
1724
- "2026-07-16T07:22:48.465Z",
1949
+ "2026-07-16T11:02:21.951Z",
1725
1950
  ).transform(v => new Date(v)),
1726
1951
  }).transform((v) => {
1727
1952
  return remap$(v, {
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
126
126
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
127
127
  .optional(),
128
128
  updated: z.string().datetime({ offset: true }).default(
129
- "2026-07-16T07:22:48.465Z",
129
+ "2026-07-16T11:02:21.951Z",
130
130
  ).transform(v => new Date(v)),
131
131
  }).transform((v) => {
132
132
  return remap$(v, {
@@ -118,7 +118,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
118
118
  z.ZodTypeDef,
119
119
  unknown
120
120
  > = z.object({
121
- _id: z.string().default("01KXMWXR84R9XAV6VRJ9WHMQ0X"),
121
+ _id: z.string().default("01KXN9FG87SMB7CV2FAWQEA0XZ"),
122
122
  display_name: z.string(),
123
123
  description: z.nullable(z.string()).optional(),
124
124
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -753,7 +753,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
753
753
  z.ZodTypeDef,
754
754
  unknown
755
755
  > = z.object({
756
- _id: z.string().default("tool_01KXMWXR4030F3GRD7Y0DRR1D0"),
756
+ _id: z.string().default("tool_01KXN9FG55SCS6CC1F3W6KGVTZ"),
757
757
  path: z.string(),
758
758
  key: z.string(),
759
759
  display_name: z.string().optional(),
@@ -859,7 +859,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
859
859
  z.ZodTypeDef,
860
860
  unknown
861
861
  > = z.object({
862
- id: z.string().default("01KXMWXR3YGVFF05JXZVNWZ3G6"),
862
+ id: z.string().default("01KXN9FG54DJMHNGAERD1S7MH2"),
863
863
  name: z.string(),
864
864
  description: z.string().optional(),
865
865
  schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
@@ -917,7 +917,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
917
917
  z.ZodTypeDef,
918
918
  unknown
919
919
  > = z.object({
920
- _id: z.string().default("tool_01KXMWXR3XCVDRTK57NAAGCVJ0"),
920
+ _id: z.string().default("tool_01KXN9FG53TJQZKZMJQ8QYT3H7"),
921
921
  path: z.string(),
922
922
  key: z.string(),
923
923
  display_name: z.string().optional(),
@@ -1108,7 +1108,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
1108
1108
  z.ZodTypeDef,
1109
1109
  unknown
1110
1110
  > = z.object({
1111
- _id: z.string().default("tool_01KXMWXR3SMANK4GS7PM5VTYQ4"),
1111
+ _id: z.string().default("tool_01KXN9FG51W0YKZ37QDQ566YDP"),
1112
1112
  path: z.string(),
1113
1113
  key: z.string(),
1114
1114
  display_name: z.string().optional(),
@@ -1204,7 +1204,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
1204
1204
  z.ZodTypeDef,
1205
1205
  unknown
1206
1206
  > = z.object({
1207
- _id: z.string().default("tool_01KXMWXR3QVDTN9278DX0SFPH5"),
1207
+ _id: z.string().default("tool_01KXN9FG4ZH49T5FVRV0J8HZG5"),
1208
1208
  path: z.string(),
1209
1209
  key: z.string(),
1210
1210
  display_name: z.string().optional(),
@@ -1310,7 +1310,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
1310
1310
  z.ZodTypeDef,
1311
1311
  unknown
1312
1312
  > = z.object({
1313
- _id: z.string().default("tool_01KXMWXR3NWP7ESB5YTYSHHJF4"),
1313
+ _id: z.string().default("tool_01KXN9FG4XFMVV5R7DSE5R1F1W"),
1314
1314
  path: z.string(),
1315
1315
  key: z.string(),
1316
1316
  display_name: z.string().optional(),
@@ -4042,7 +4042,7 @@ export const Tools$outboundSchema: z.ZodType<
4042
4042
  z.ZodTypeDef,
4043
4043
  Tools
4044
4044
  > = z.object({
4045
- id: z.string().default("01KXMWXQSJXHKDHA1W5WCCZ2MP"),
4045
+ id: z.string().default("01KXN9FFWZ0K45VAZ70P7AVZPZ"),
4046
4046
  name: z.string(),
4047
4047
  description: z.string().optional(),
4048
4048
  schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
@@ -4098,7 +4098,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
4098
4098
  z.ZodTypeDef,
4099
4099
  AgentToolInputRunTools
4100
4100
  > = z.object({
4101
- id: z.string().default("01KXMWXQV6F6N7B78D8D849X5H"),
4101
+ id: z.string().default("01KXN9FFYEBPAE11VQR76E5MMW"),
4102
4102
  name: z.string(),
4103
4103
  description: z.string().optional(),
4104
4104
  schema: z.lazy(() =>