@orq-ai/node 4.10.0-rc.75 → 4.10.0-rc.81

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 (72) 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/reasoningpart.js +1 -1
  5. package/models/operations/createdataset.js +1 -1
  6. package/models/operations/createdatasetitem.js +4 -4
  7. package/models/operations/createdatasource.js +1 -1
  8. package/models/operations/createeval.js +16 -16
  9. package/models/operations/createtool.js +6 -6
  10. package/models/operations/getalltools.js +6 -6
  11. package/models/operations/getchunkscount.d.ts +18 -1
  12. package/models/operations/getchunkscount.d.ts.map +1 -1
  13. package/models/operations/getchunkscount.js +14 -2
  14. package/models/operations/getchunkscount.js.map +1 -1
  15. package/models/operations/getevals.js +16 -16
  16. package/models/operations/getv2humanevalsets.js +2 -2
  17. package/models/operations/getv2humanevalsetsid.js +2 -2
  18. package/models/operations/listchunkspaginated.d.ts +17 -1
  19. package/models/operations/listchunkspaginated.d.ts.map +1 -1
  20. package/models/operations/listchunkspaginated.js +15 -2
  21. package/models/operations/listchunkspaginated.js.map +1 -1
  22. package/models/operations/listdatasetdatapoints.js +4 -4
  23. package/models/operations/listdatasets.js +1 -1
  24. package/models/operations/listdatasources.d.ts +4 -4
  25. package/models/operations/listdatasources.d.ts.map +1 -1
  26. package/models/operations/listdatasources.js +6 -6
  27. package/models/operations/listdatasources.js.map +1 -1
  28. package/models/operations/patchv2humanevalsetsid.js +2 -2
  29. package/models/operations/postv2feedbackevaluation.js +3 -3
  30. package/models/operations/postv2humanevalsets.js +2 -2
  31. package/models/operations/retrievedatapoint.js +4 -4
  32. package/models/operations/retrievedataset.js +1 -1
  33. package/models/operations/retrievedatasource.js +1 -1
  34. package/models/operations/retrievetool.js +6 -6
  35. package/models/operations/runagent.js +1 -1
  36. package/models/operations/streamrunagent.js +1 -1
  37. package/models/operations/updatedatapoint.js +4 -4
  38. package/models/operations/updatedataset.js +1 -1
  39. package/models/operations/updatedatasource.js +1 -1
  40. package/models/operations/updateeval.js +16 -16
  41. package/models/operations/updatetool.js +7 -7
  42. package/package.json +9 -9
  43. package/src/lib/config.ts +2 -2
  44. package/src/models/components/reasoningpart.ts +1 -1
  45. package/src/models/operations/createdataset.ts +1 -1
  46. package/src/models/operations/createdatasetitem.ts +4 -4
  47. package/src/models/operations/createdatasource.ts +1 -1
  48. package/src/models/operations/createeval.ts +16 -16
  49. package/src/models/operations/createtool.ts +6 -6
  50. package/src/models/operations/getalltools.ts +6 -6
  51. package/src/models/operations/getchunkscount.ts +23 -2
  52. package/src/models/operations/getevals.ts +16 -16
  53. package/src/models/operations/getv2humanevalsets.ts +2 -2
  54. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  55. package/src/models/operations/listchunkspaginated.ts +21 -2
  56. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  57. package/src/models/operations/listdatasets.ts +1 -1
  58. package/src/models/operations/listdatasources.ts +14 -8
  59. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  60. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  61. package/src/models/operations/postv2humanevalsets.ts +2 -2
  62. package/src/models/operations/retrievedatapoint.ts +4 -4
  63. package/src/models/operations/retrievedataset.ts +1 -1
  64. package/src/models/operations/retrievedatasource.ts +1 -1
  65. package/src/models/operations/retrievetool.ts +6 -6
  66. package/src/models/operations/runagent.ts +1 -1
  67. package/src/models/operations/streamrunagent.ts +1 -1
  68. package/src/models/operations/updatedatapoint.ts +4 -4
  69. package/src/models/operations/updatedataset.ts +1 -1
  70. package/src/models/operations/updatedatasource.ts +1 -1
  71. package/src/models/operations/updateeval.ts +16 -16
  72. package/src/models/operations/updatetool.ts +7 -7
@@ -2355,7 +2355,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
2355
2355
  ),
2356
2356
  reviewed_by_id: z.string(),
2357
2357
  reviewed_at: z.string().datetime({ offset: true }).default(
2358
- "2026-06-03T07:31:06.517Z",
2358
+ "2026-06-03T14:58:10.201Z",
2359
2359
  ).transform(v => new Date(v)),
2360
2360
  type: z.literal("string_array"),
2361
2361
  values: z.array(z.string()),
@@ -2400,7 +2400,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2400
2400
  source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
2401
2401
  reviewed_by_id: z.string(),
2402
2402
  reviewed_at: z.string().datetime({ offset: true }).default(
2403
- "2026-06-03T07:31:06.517Z",
2403
+ "2026-06-03T14:58:10.200Z",
2404
2404
  ).transform(v => new Date(v)),
2405
2405
  type: z.literal("number"),
2406
2406
  value: z.number(),
@@ -2446,7 +2446,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2446
2446
  source: EvaluationsSource$inboundSchema.default("orq"),
2447
2447
  reviewed_by_id: z.string(),
2448
2448
  reviewed_at: z.string().datetime({ offset: true }).default(
2449
- "2026-06-03T07:31:06.516Z",
2449
+ "2026-06-03T14:58:10.200Z",
2450
2450
  ).transform(v => new Date(v)),
2451
2451
  type: z.literal("string"),
2452
2452
  value: z.string(),
@@ -2529,7 +2529,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2529
2529
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2530
2530
  .optional(),
2531
2531
  updated: z.string().datetime({ offset: true }).default(
2532
- "2026-06-03T07:30:45.272Z",
2532
+ "2026-06-03T14:57:42.920Z",
2533
2533
  ).transform(v => new Date(v)),
2534
2534
  }).transform((v) => {
2535
2535
  return remap$(v, {
@@ -409,7 +409,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
409
409
  z.ZodTypeDef,
410
410
  unknown
411
411
  > = z.object({
412
- _id: z.string().default("01KT66991ZPDKR90V2995SW8NB"),
412
+ _id: z.string().default("01KT6ZVW2DX2NVSQ89KM4HQJZ4"),
413
413
  display_name: z.string(),
414
414
  description: z.string().optional(),
415
415
  status: CreateDatasourceStatus$inboundSchema,
@@ -2182,8 +2182,8 @@ export const Typescript$inboundSchema: z.ZodType<
2182
2182
  > = z.object({
2183
2183
  _id: z.string(),
2184
2184
  description: z.string(),
2185
- created: z.string().default("2026-06-03T07:30:46.887Z"),
2186
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
2185
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
2186
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
2187
2187
  guardrail_config: z.nullable(
2188
2188
  z.union([
2189
2189
  z.lazy(() =>
@@ -2371,8 +2371,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
2371
2371
  .object({
2372
2372
  _id: z.string(),
2373
2373
  description: z.string(),
2374
- created: z.string().default("2026-06-03T07:30:46.887Z"),
2375
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
2374
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
2375
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
2376
2376
  guardrail_config: z.nullable(
2377
2377
  z.union([
2378
2378
  z.lazy(() =>
@@ -3195,8 +3195,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
3195
3195
  > = z.object({
3196
3196
  _id: z.string(),
3197
3197
  description: z.string(),
3198
- created: z.string().default("2026-06-03T07:30:46.887Z"),
3199
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
3198
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
3199
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
3200
3200
  guardrail_config: z.nullable(
3201
3201
  z.union([
3202
3202
  z.lazy(() =>
@@ -3413,8 +3413,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
3413
3413
  > = z.object({
3414
3414
  _id: z.string(),
3415
3415
  description: z.string(),
3416
- created: z.string().default("2026-06-03T07:30:46.887Z"),
3417
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
3416
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
3417
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
3418
3418
  guardrail_config: z.nullable(
3419
3419
  z.union([
3420
3420
  z.lazy(() =>
@@ -3593,8 +3593,8 @@ export const CreateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
3593
3593
  > = z.object({
3594
3594
  _id: z.string(),
3595
3595
  description: z.string(),
3596
- created: z.string().default("2026-06-03T07:30:46.887Z"),
3597
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
3596
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
3597
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
3598
3598
  guardrail_config: z.nullable(
3599
3599
  z.union([
3600
3600
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -3751,8 +3751,8 @@ export const Json$inboundSchema: z.ZodType<Json, z.ZodTypeDef, unknown> = z
3751
3751
  .object({
3752
3752
  _id: z.string(),
3753
3753
  description: z.string(),
3754
- created: z.string().default("2026-06-03T07:30:46.887Z"),
3755
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
3754
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
3755
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
3756
3756
  guardrail_config: z.nullable(
3757
3757
  z.union([
3758
3758
  z.lazy(() => CreateEvalGuardrailConfigEvalsBoolean$inboundSchema),
@@ -4120,8 +4120,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
4120
4120
  > = z.object({
4121
4121
  _id: z.string(),
4122
4122
  description: z.string(),
4123
- created: z.string().default("2026-06-03T07:30:46.887Z"),
4124
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
4123
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
4124
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
4125
4125
  guardrail_config: z.nullable(
4126
4126
  z.union([
4127
4127
  z.lazy(() =>
@@ -4338,8 +4338,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
4338
4338
  > = z.object({
4339
4339
  _id: z.string(),
4340
4340
  description: z.string(),
4341
- created: z.string().default("2026-06-03T07:30:46.887Z"),
4342
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
4341
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
4342
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
4343
4343
  guardrail_config: z.nullable(
4344
4344
  z.union([
4345
4345
  z.lazy(() =>
@@ -1898,7 +1898,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
1898
1898
  z.ZodTypeDef,
1899
1899
  unknown
1900
1900
  > = z.object({
1901
- _id: z.string().default("tool_01KT6698X1SQ32QBE9FAJBGPS4"),
1901
+ _id: z.string().default("tool_01KT6ZVVXFJC4XC1TJ3QT00EYM"),
1902
1902
  path: z.string(),
1903
1903
  key: z.string(),
1904
1904
  display_name: z.string().optional(),
@@ -1995,7 +1995,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
1995
1995
  z.ZodTypeDef,
1996
1996
  unknown
1997
1997
  > = z.object({
1998
- id: z.string().default("01KT6698X0ZP6A4PMYQWBE71XH"),
1998
+ id: z.string().default("01KT6ZVVXENARBRX8R2H5BME97"),
1999
1999
  name: z.string(),
2000
2000
  description: z.string().optional(),
2001
2001
  schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
@@ -2051,7 +2051,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
2051
2051
  z.ZodTypeDef,
2052
2052
  unknown
2053
2053
  > = z.object({
2054
- _id: z.string().default("tool_01KT6698WZW3XY1ESEZVJTEE77"),
2054
+ _id: z.string().default("tool_01KT6ZVVXD31QP2PSDJNCYDZ3S"),
2055
2055
  path: z.string(),
2056
2056
  key: z.string(),
2057
2057
  display_name: z.string().optional(),
@@ -2237,7 +2237,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
2237
2237
  z.ZodTypeDef,
2238
2238
  unknown
2239
2239
  > = z.object({
2240
- _id: z.string().default("tool_01KT6698WXRVM303QXWB05VJZX"),
2240
+ _id: z.string().default("tool_01KT6ZVVXABZFTGYAT1ERKSKW0"),
2241
2241
  path: z.string(),
2242
2242
  key: z.string(),
2243
2243
  display_name: z.string().optional(),
@@ -2330,7 +2330,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2330
2330
  z.ZodTypeDef,
2331
2331
  unknown
2332
2332
  > = z.object({
2333
- _id: z.string().default("tool_01KT6698WVDR4K272EJ92Q4VYN"),
2333
+ _id: z.string().default("tool_01KT6ZVVX8KV91JPRF8NWFYRJ0"),
2334
2334
  path: z.string(),
2335
2335
  key: z.string(),
2336
2336
  display_name: z.string().optional(),
@@ -2431,7 +2431,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
2431
2431
  z.ZodTypeDef,
2432
2432
  unknown
2433
2433
  > = z.object({
2434
- _id: z.string().default("tool_01KT6698WSWN79XAJDP137CG1M"),
2434
+ _id: z.string().default("tool_01KT6ZVVX67YQTCEX00W3WSR88"),
2435
2435
  path: z.string(),
2436
2436
  key: z.string(),
2437
2437
  display_name: z.string().optional(),
@@ -767,7 +767,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
767
767
  z.ZodTypeDef,
768
768
  unknown
769
769
  > = z.object({
770
- _id: z.string().default("tool_01KT6698WCKYT5XJDCQDTFFBYY"),
770
+ _id: z.string().default("tool_01KT6ZVVWR21WRRSRWNX8MEHB5"),
771
771
  path: z.string(),
772
772
  key: z.string(),
773
773
  display_name: z.string().optional(),
@@ -864,7 +864,7 @@ export const DataTools$inboundSchema: z.ZodType<
864
864
  z.ZodTypeDef,
865
865
  unknown
866
866
  > = z.object({
867
- id: z.string().default("01KT6698WBHRCJT578NZR6ZEB9"),
867
+ id: z.string().default("01KT6ZVVWP8CZ2HHPY54FF56V5"),
868
868
  name: z.string(),
869
869
  description: z.string().optional(),
870
870
  schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
@@ -917,7 +917,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
917
917
  z.ZodTypeDef,
918
918
  unknown
919
919
  > = z.object({
920
- _id: z.string().default("tool_01KT6698WANEDMFBEFBSZ0XZZQ"),
920
+ _id: z.string().default("tool_01KT6ZVVWM0E1W4ZGRRC2BG4AP"),
921
921
  path: z.string(),
922
922
  key: z.string(),
923
923
  display_name: z.string().optional(),
@@ -1102,7 +1102,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
1102
1102
  z.ZodTypeDef,
1103
1103
  unknown
1104
1104
  > = z.object({
1105
- _id: z.string().default("tool_01KT6698W767K80SG85BPB8C0X"),
1105
+ _id: z.string().default("tool_01KT6ZVVWHEAKTBDGTX49RAE9Q"),
1106
1106
  path: z.string(),
1107
1107
  key: z.string(),
1108
1108
  display_name: z.string().optional(),
@@ -1195,7 +1195,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1195
1195
  z.ZodTypeDef,
1196
1196
  unknown
1197
1197
  > = z.object({
1198
- _id: z.string().default("tool_01KT6698W65H566AEMPAKGKYTW"),
1198
+ _id: z.string().default("tool_01KT6ZVVWEHYMGSF2X7683ZRX2"),
1199
1199
  path: z.string(),
1200
1200
  key: z.string(),
1201
1201
  display_name: z.string().optional(),
@@ -1297,7 +1297,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1297
1297
  z.ZodTypeDef,
1298
1298
  unknown
1299
1299
  > = z.object({
1300
- _id: z.string().default("tool_01KT6698W4G1P632X7TQX805T7"),
1300
+ _id: z.string().default("tool_01KT6ZVVWCAQW4BW1TMZ1YHN1Q"),
1301
1301
  path: z.string(),
1302
1302
  key: z.string(),
1303
1303
  display_name: z.string().optional(),
@@ -5,9 +5,25 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
 
12
+ /**
13
+ * Filter chunks by processing status
14
+ */
15
+ export const GetChunksCountStatus = {
16
+ Pending: "pending",
17
+ Processing: "processing",
18
+ Completed: "completed",
19
+ Failed: "failed",
20
+ Queued: "queued",
21
+ } as const;
22
+ /**
23
+ * Filter chunks by processing status
24
+ */
25
+ export type GetChunksCountStatus = ClosedEnum<typeof GetChunksCountStatus>;
26
+
11
27
  export type GetChunksCountRequestBody = {
12
28
  /**
13
29
  * Search query to find chunks by text content
@@ -20,7 +36,7 @@ export type GetChunksCountRequestBody = {
20
36
  /**
21
37
  * Filter chunks by processing status
22
38
  */
23
- status?: string | undefined;
39
+ status?: GetChunksCountStatus | undefined;
24
40
  };
25
41
 
26
42
  export type GetChunksCountRequest = {
@@ -42,6 +58,11 @@ export type GetChunksCountResponseBody = {
42
58
  count: number;
43
59
  };
44
60
 
61
+ /** @internal */
62
+ export const GetChunksCountStatus$outboundSchema: z.ZodNativeEnum<
63
+ typeof GetChunksCountStatus
64
+ > = z.nativeEnum(GetChunksCountStatus);
65
+
45
66
  /** @internal */
46
67
  export type GetChunksCountRequestBody$Outbound = {
47
68
  q: string;
@@ -57,7 +78,7 @@ export const GetChunksCountRequestBody$outboundSchema: z.ZodType<
57
78
  > = z.object({
58
79
  q: z.string().default(""),
59
80
  enabled: z.boolean().optional(),
60
- status: z.string().optional(),
81
+ status: GetChunksCountStatus$outboundSchema.optional(),
61
82
  });
62
83
 
63
84
  export function getChunksCountRequestBodyToJSON(
@@ -1042,8 +1042,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
1042
1042
  > = z.object({
1043
1043
  _id: z.string(),
1044
1044
  description: z.string(),
1045
- created: z.string().default("2026-06-03T07:30:46.887Z"),
1046
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
1045
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
1046
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
1047
1047
  guardrail_config: z.nullable(
1048
1048
  z.union([
1049
1049
  z.lazy(() =>
@@ -1222,8 +1222,8 @@ export const DataRagas$inboundSchema: z.ZodType<
1222
1222
  > = z.object({
1223
1223
  _id: z.string(),
1224
1224
  description: z.string(),
1225
- created: z.string().default("2026-06-03T07:30:46.887Z"),
1226
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
1225
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
1226
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
1227
1227
  guardrail_config: z.nullable(
1228
1228
  z.union([
1229
1229
  z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -2052,8 +2052,8 @@ export const DataFunction$inboundSchema: z.ZodType<
2052
2052
  > = z.object({
2053
2053
  _id: z.string(),
2054
2054
  description: z.string(),
2055
- created: z.string().default("2026-06-03T07:30:46.887Z"),
2056
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
2055
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
2056
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
2057
2057
  guardrail_config: z.nullable(
2058
2058
  z.union([
2059
2059
  z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
@@ -2234,8 +2234,8 @@ export const DataPython$inboundSchema: z.ZodType<
2234
2234
  > = z.object({
2235
2235
  _id: z.string(),
2236
2236
  description: z.string(),
2237
- created: z.string().default("2026-06-03T07:30:46.887Z"),
2238
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
2237
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
2238
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
2239
2239
  guardrail_config: z.nullable(
2240
2240
  z.union([
2241
2241
  z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
@@ -2412,8 +2412,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
2412
2412
  > = z.object({
2413
2413
  _id: z.string(),
2414
2414
  description: z.string(),
2415
- created: z.string().default("2026-06-03T07:30:46.887Z"),
2416
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
2415
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
2416
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
2417
2417
  guardrail_config: z.nullable(
2418
2418
  z.union([
2419
2419
  z.lazy(() =>
@@ -2602,8 +2602,8 @@ export const DataJSON$inboundSchema: z.ZodType<
2602
2602
  > = z.object({
2603
2603
  _id: z.string(),
2604
2604
  description: z.string(),
2605
- created: z.string().default("2026-06-03T07:30:46.887Z"),
2606
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
2605
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
2606
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
2607
2607
  guardrail_config: z.nullable(
2608
2608
  z.union([
2609
2609
  z.lazy(() =>
@@ -2968,8 +2968,8 @@ export const GetEvalsLlm2$inboundSchema: z.ZodType<
2968
2968
  > = z.object({
2969
2969
  _id: z.string(),
2970
2970
  description: z.string(),
2971
- created: z.string().default("2026-06-03T07:30:46.887Z"),
2972
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
2971
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
2972
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
2973
2973
  guardrail_config: z.nullable(
2974
2974
  z.union([
2975
2975
  z.lazy(() =>
@@ -3179,8 +3179,8 @@ export const GetEvalsLlm1$inboundSchema: z.ZodType<
3179
3179
  > = z.object({
3180
3180
  _id: z.string(),
3181
3181
  description: z.string(),
3182
- created: z.string().default("2026-06-03T07:30:46.887Z"),
3183
- updated: z.string().default("2026-06-03T07:30:46.887Z"),
3182
+ created: z.string().default("2026-06-03T14:57:44.971Z"),
3183
+ updated: z.string().default("2026-06-03T14:57:44.971Z"),
3184
3184
  guardrail_config: z.nullable(
3185
3185
  z.union([
3186
3186
  z.lazy(() =>
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
140
140
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
141
141
  .optional(),
142
142
  updated: z.string().datetime({ offset: true }).default(
143
- "2026-06-03T07:30:45.272Z",
143
+ "2026-06-03T14:57:42.920Z",
144
144
  ).transform(v => new Date(v)),
145
145
  filter_type: z.literal("name"),
146
146
  filter_value: z.string(),
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
185
185
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
186
186
  .optional(),
187
187
  updated: z.string().datetime({ offset: true }).default(
188
- "2026-06-03T07:30:45.272Z",
188
+ "2026-06-03T14:57:42.920Z",
189
189
  ).transform(v => new Date(v)),
190
190
  filter_type: z.literal("span_type"),
191
191
  filter_values: z.array(z.string()),
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
141
141
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
142
142
  .optional(),
143
143
  updated: z.string().datetime({ offset: true }).default(
144
- "2026-06-03T07:30:45.272Z",
144
+ "2026-06-03T14:57:42.920Z",
145
145
  ).transform(v => new Date(v)),
146
146
  filter_type: z.literal("name"),
147
147
  filter_value: z.string(),
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
186
186
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
187
187
  .optional(),
188
188
  updated: z.string().datetime({ offset: true }).default(
189
- "2026-06-03T07:30:45.272Z",
189
+ "2026-06-03T14:57:42.920Z",
190
190
  ).transform(v => new Date(v)),
191
191
  filter_type: z.literal("span_type"),
192
192
  filter_values: z.array(z.string()),
@@ -9,6 +9,21 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
+ /**
13
+ * Filter chunks by processing status
14
+ */
15
+ export const Status = {
16
+ Pending: "pending",
17
+ Processing: "processing",
18
+ Completed: "completed",
19
+ Failed: "failed",
20
+ Queued: "queued",
21
+ } as const;
22
+ /**
23
+ * Filter chunks by processing status
24
+ */
25
+ export type Status = ClosedEnum<typeof Status>;
26
+
12
27
  export type ListChunksPaginatedRequestBody = {
13
28
  /**
14
29
  * Search query to find chunks by text content
@@ -21,7 +36,7 @@ export type ListChunksPaginatedRequestBody = {
21
36
  /**
22
37
  * Filter chunks by processing status
23
38
  */
24
- status?: string | undefined;
39
+ status?: Status | undefined;
25
40
  limit?: number | undefined;
26
41
  page?: number | undefined;
27
42
  };
@@ -112,6 +127,10 @@ export type ListChunksPaginatedResponseBody = {
112
127
  hasMore: boolean;
113
128
  };
114
129
 
130
+ /** @internal */
131
+ export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> = z
132
+ .nativeEnum(Status);
133
+
115
134
  /** @internal */
116
135
  export type ListChunksPaginatedRequestBody$Outbound = {
117
136
  q: string;
@@ -129,7 +148,7 @@ export const ListChunksPaginatedRequestBody$outboundSchema: z.ZodType<
129
148
  > = z.object({
130
149
  q: z.string().default(""),
131
150
  enabled: z.boolean().optional(),
132
- status: z.string().optional(),
151
+ status: Status$outboundSchema.optional(),
133
152
  limit: z.number().int().default(100),
134
153
  page: z.number().int().default(1),
135
154
  });
@@ -1270,7 +1270,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
1270
1270
  ),
1271
1271
  reviewed_by_id: z.string(),
1272
1272
  reviewed_at: z.string().datetime({ offset: true }).default(
1273
- "2026-06-03T07:31:06.503Z",
1273
+ "2026-06-03T14:58:10.185Z",
1274
1274
  ).transform(v => new Date(v)),
1275
1275
  type: z.literal("string_array"),
1276
1276
  values: z.array(z.string()),
@@ -1320,7 +1320,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
1320
1320
  source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
1321
1321
  reviewed_by_id: z.string(),
1322
1322
  reviewed_at: z.string().datetime({ offset: true }).default(
1323
- "2026-06-03T07:31:06.502Z",
1323
+ "2026-06-03T14:58:10.184Z",
1324
1324
  ).transform(v => new Date(v)),
1325
1325
  type: z.literal("number"),
1326
1326
  value: z.number(),
@@ -1369,7 +1369,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
1369
1369
  .default("orq"),
1370
1370
  reviewed_by_id: z.string(),
1371
1371
  reviewed_at: z.string().datetime({ offset: true }).default(
1372
- "2026-06-03T07:31:06.501Z",
1372
+ "2026-06-03T14:58:10.184Z",
1373
1373
  ).transform(v => new Date(v)),
1374
1374
  type: z.literal("string"),
1375
1375
  value: z.string(),
@@ -1448,7 +1448,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
1448
1448
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1449
1449
  .optional(),
1450
1450
  updated: z.string().datetime({ offset: true }).default(
1451
- "2026-06-03T07:30:45.272Z",
1451
+ "2026-06-03T14:57:42.920Z",
1452
1452
  ).transform(v => new Date(v)),
1453
1453
  }).transform((v) => {
1454
1454
  return remap$(v, {
@@ -156,7 +156,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
156
156
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
157
157
  .optional(),
158
158
  updated: z.string().datetime({ offset: true }).default(
159
- "2026-06-03T07:30:45.272Z",
159
+ "2026-06-03T14:57:42.920Z",
160
160
  ).transform(v => new Date(v)),
161
161
  }).transform((v) => {
162
162
  return remap$(v, {
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * Filter datasources by status.
14
14
  */
15
- export type Status = Array<string> | string;
15
+ export type ListDatasourcesQueryParamStatus = Array<string> | string;
16
16
 
17
17
  export type ListDatasourcesRequest = {
18
18
  /**
@@ -109,17 +109,23 @@ export type ListDatasourcesResponseBody = {
109
109
  };
110
110
 
111
111
  /** @internal */
112
- export type Status$Outbound = Array<string> | string;
112
+ export type ListDatasourcesQueryParamStatus$Outbound = Array<string> | string;
113
113
 
114
114
  /** @internal */
115
- export const Status$outboundSchema: z.ZodType<
116
- Status$Outbound,
115
+ export const ListDatasourcesQueryParamStatus$outboundSchema: z.ZodType<
116
+ ListDatasourcesQueryParamStatus$Outbound,
117
117
  z.ZodTypeDef,
118
- Status
118
+ ListDatasourcesQueryParamStatus
119
119
  > = z.union([z.array(z.string()), z.string()]);
120
120
 
121
- export function statusToJSON(status: Status): string {
122
- return JSON.stringify(Status$outboundSchema.parse(status));
121
+ export function listDatasourcesQueryParamStatusToJSON(
122
+ listDatasourcesQueryParamStatus: ListDatasourcesQueryParamStatus,
123
+ ): string {
124
+ return JSON.stringify(
125
+ ListDatasourcesQueryParamStatus$outboundSchema.parse(
126
+ listDatasourcesQueryParamStatus,
127
+ ),
128
+ );
123
129
  }
124
130
 
125
131
  /** @internal */
@@ -176,7 +182,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
176
182
  z.ZodTypeDef,
177
183
  unknown
178
184
  > = z.object({
179
- _id: z.string().default("01KT66991WWWV9SKD7F0ZFSVD9"),
185
+ _id: z.string().default("01KT6ZVW2BHF70QD5V4JKHWAVT"),
180
186
  display_name: z.string(),
181
187
  description: z.string().optional(),
182
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-06-03T07:30:45.272Z",
321
+ "2026-06-03T14:57:42.920Z",
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-06-03T07:30:45.272Z",
367
+ "2026-06-03T14:57:42.920Z",
368
368
  ).transform(v => new Date(v)),
369
369
  filter_type: z.literal("span_type"),
370
370
  filter_values: z.array(z.string()),
@@ -173,7 +173,7 @@ export const RequestBody3$outboundSchema: z.ZodType<
173
173
  humanReviewId: z.string(),
174
174
  source: PostV2FeedbackEvaluationRequestBodyRequestSource$outboundSchema
175
175
  .default("orq"),
176
- reviewedAt: z.date().default(() => new Date("2026-06-03T07:31:06.635Z"))
176
+ reviewedAt: z.date().default(() => new Date("2026-06-03T14:58:10.355Z"))
177
177
  .transform(v => v.toISOString()),
178
178
  type: z.literal("string_array"),
179
179
  values: z.array(z.string()),
@@ -225,7 +225,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
225
225
  source: PostV2FeedbackEvaluationRequestBodySource$outboundSchema.default(
226
226
  "orq",
227
227
  ),
228
- reviewedAt: z.date().default(() => new Date("2026-06-03T07:31:06.634Z"))
228
+ reviewedAt: z.date().default(() => new Date("2026-06-03T14:58:10.354Z"))
229
229
  .transform(v => v.toISOString()),
230
230
  type: z.literal("number"),
231
231
  value: z.number(),
@@ -275,7 +275,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
275
275
  evaluationType: EvaluationType$outboundSchema,
276
276
  humanReviewId: z.string(),
277
277
  source: RequestBodySource$outboundSchema.default("orq"),
278
- reviewedAt: z.date().default(() => new Date("2026-06-03T07:31:06.634Z"))
278
+ reviewedAt: z.date().default(() => new Date("2026-06-03T14:58:10.354Z"))
279
279
  .transform(v => v.toISOString()),
280
280
  type: z.literal("string"),
281
281
  value: z.string(),
@@ -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-06-03T07:30:45.272Z",
274
+ "2026-06-03T14:57:42.920Z",
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-06-03T07:30:45.272Z",
319
+ "2026-06-03T14:57:42.920Z",
320
320
  ).transform(v => new Date(v)),
321
321
  filter_type: z.literal("span_type"),
322
322
  filter_values: z.array(z.string()),