@orq-ai/node 4.11.0-rc.18 → 4.11.0-rc.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 (91) hide show
  1. package/funcs/knowledgeList.js +3 -0
  2. package/funcs/knowledgeList.js.map +1 -1
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/models/components/modelmetadata.d.ts +4 -0
  7. package/models/components/modelmetadata.d.ts.map +1 -1
  8. package/models/components/modelmetadata.js +8 -0
  9. package/models/components/modelmetadata.js.map +1 -1
  10. package/models/components/reasoningpart.js +1 -1
  11. package/models/operations/createchatcompletion.d.ts +4 -4
  12. package/models/operations/createchatcompletion.d.ts.map +1 -1
  13. package/models/operations/createchatcompletion.js +5 -5
  14. package/models/operations/createchatcompletion.js.map +1 -1
  15. package/models/operations/createdataset.js +1 -1
  16. package/models/operations/createdatasetitem.d.ts +9 -3
  17. package/models/operations/createdatasetitem.d.ts.map +1 -1
  18. package/models/operations/createdatasetitem.js +14 -7
  19. package/models/operations/createdatasetitem.js.map +1 -1
  20. package/models/operations/createdatasource.js +1 -1
  21. package/models/operations/createeval.js +16 -16
  22. package/models/operations/createknowledge.d.ts +11 -0
  23. package/models/operations/createknowledge.d.ts.map +1 -1
  24. package/models/operations/createknowledge.js +1 -0
  25. package/models/operations/createknowledge.js.map +1 -1
  26. package/models/operations/createtool.js +6 -6
  27. package/models/operations/getalltools.js +6 -6
  28. package/models/operations/getevals.js +16 -16
  29. package/models/operations/getv2humanevalsets.js +2 -2
  30. package/models/operations/getv2humanevalsetsid.js +2 -2
  31. package/models/operations/listdatasetdatapoints.js +4 -4
  32. package/models/operations/listdatasets.js +1 -1
  33. package/models/operations/listdatasources.js +1 -1
  34. package/models/operations/listknowledgebases.d.ts +28 -0
  35. package/models/operations/listknowledgebases.d.ts.map +1 -1
  36. package/models/operations/listknowledgebases.js +14 -1
  37. package/models/operations/listknowledgebases.js.map +1 -1
  38. package/models/operations/patchv2humanevalsetsid.js +2 -2
  39. package/models/operations/postv2feedbackevaluation.js +3 -3
  40. package/models/operations/postv2humanevalsets.js +2 -2
  41. package/models/operations/retrievedatapoint.js +4 -4
  42. package/models/operations/retrievedataset.js +1 -1
  43. package/models/operations/retrievedatasource.js +1 -1
  44. package/models/operations/retrievetool.js +6 -6
  45. package/models/operations/runagent.js +1 -1
  46. package/models/operations/streamrunagent.js +1 -1
  47. package/models/operations/updatedatapoint.d.ts +9 -3
  48. package/models/operations/updatedatapoint.d.ts.map +1 -1
  49. package/models/operations/updatedatapoint.js +14 -7
  50. package/models/operations/updatedatapoint.js.map +1 -1
  51. package/models/operations/updatedataset.js +1 -1
  52. package/models/operations/updatedatasource.js +1 -1
  53. package/models/operations/updateeval.js +16 -16
  54. package/models/operations/updatetool.js +7 -7
  55. package/package.json +7 -7
  56. package/sdk/feedback.d.ts +2 -2
  57. package/sdk/feedback.js +2 -2
  58. package/src/funcs/knowledgeList.ts +3 -0
  59. package/src/lib/config.ts +2 -2
  60. package/src/models/components/modelmetadata.ts +12 -0
  61. package/src/models/components/reasoningpart.ts +1 -1
  62. package/src/models/operations/createchatcompletion.ts +13 -7
  63. package/src/models/operations/createdataset.ts +1 -1
  64. package/src/models/operations/createdatasetitem.ts +25 -8
  65. package/src/models/operations/createdatasource.ts +1 -1
  66. package/src/models/operations/createeval.ts +16 -16
  67. package/src/models/operations/createknowledge.ts +12 -0
  68. package/src/models/operations/createtool.ts +6 -6
  69. package/src/models/operations/getalltools.ts +6 -6
  70. package/src/models/operations/getevals.ts +16 -16
  71. package/src/models/operations/getv2humanevalsets.ts +2 -2
  72. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  73. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  74. package/src/models/operations/listdatasets.ts +1 -1
  75. package/src/models/operations/listdatasources.ts +1 -1
  76. package/src/models/operations/listknowledgebases.ts +38 -0
  77. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  78. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  79. package/src/models/operations/postv2humanevalsets.ts +2 -2
  80. package/src/models/operations/retrievedatapoint.ts +4 -4
  81. package/src/models/operations/retrievedataset.ts +1 -1
  82. package/src/models/operations/retrievedatasource.ts +1 -1
  83. package/src/models/operations/retrievetool.ts +6 -6
  84. package/src/models/operations/runagent.ts +1 -1
  85. package/src/models/operations/streamrunagent.ts +1 -1
  86. package/src/models/operations/updatedatapoint.ts +29 -8
  87. package/src/models/operations/updatedataset.ts +1 -1
  88. package/src/models/operations/updatedatasource.ts +1 -1
  89. package/src/models/operations/updateeval.ts +16 -16
  90. package/src/models/operations/updatetool.ts +7 -7
  91. package/src/sdk/feedback.ts +2 -2
@@ -10,6 +10,8 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import * as components from "../components/index.js";
11
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
 
13
+ export type Inputs = string | number | boolean;
14
+
13
15
  export type CreateDatasetItemContentDatasetsRequest2 =
14
16
  components.TextContentPartSchema;
15
17
 
@@ -364,9 +366,9 @@ export type CreateDatasetItemMessages =
364
366
 
365
367
  export type CreateDatasetItemRequestBody = {
366
368
  /**
367
- * The inputs of the dataset. Key value pairs where the key is the input name and the value is the input value. Nested objects are not supported.
369
+ * The inputs of the dataset. Key value pairs where the key is the input name and the value is the input value. Nested objects and arrays are not supported.
368
370
  */
369
- inputs?: { [k: string]: any } | undefined;
371
+ inputs?: { [k: string]: string | number | boolean | null } | undefined;
370
372
  /**
371
373
  * A list of messages comprising the conversation so far
372
374
  */
@@ -941,6 +943,20 @@ export type CreateDatasetItemResponseBody = {
941
943
  updated: Date;
942
944
  };
943
945
 
946
+ /** @internal */
947
+ export type Inputs$Outbound = string | number | boolean;
948
+
949
+ /** @internal */
950
+ export const Inputs$outboundSchema: z.ZodType<
951
+ Inputs$Outbound,
952
+ z.ZodTypeDef,
953
+ Inputs
954
+ > = z.union([z.string(), z.number(), z.boolean()]);
955
+
956
+ export function inputsToJSON(inputs: Inputs): string {
957
+ return JSON.stringify(Inputs$outboundSchema.parse(inputs));
958
+ }
959
+
944
960
  /** @internal */
945
961
  export type CreateDatasetItemContentDatasetsRequest2$Outbound =
946
962
  components.TextContentPartSchema$Outbound;
@@ -1624,7 +1640,7 @@ export function createDatasetItemMessagesToJSON(
1624
1640
 
1625
1641
  /** @internal */
1626
1642
  export type CreateDatasetItemRequestBody$Outbound = {
1627
- inputs?: { [k: string]: any } | undefined;
1643
+ inputs?: { [k: string]: string | number | boolean | null } | undefined;
1628
1644
  messages?:
1629
1645
  | Array<
1630
1646
  | CreateDatasetItemMessagesSystemMessage$Outbound
@@ -1643,7 +1659,8 @@ export const CreateDatasetItemRequestBody$outboundSchema: z.ZodType<
1643
1659
  z.ZodTypeDef,
1644
1660
  CreateDatasetItemRequestBody
1645
1661
  > = z.object({
1646
- inputs: z.record(z.any()).optional(),
1662
+ inputs: z.record(z.nullable(z.union([z.string(), z.number(), z.boolean()])))
1663
+ .optional(),
1647
1664
  messages: z.array(
1648
1665
  z.union([
1649
1666
  z.lazy(() => CreateDatasetItemMessagesSystemMessage$outboundSchema),
@@ -2355,7 +2372,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
2355
2372
  ),
2356
2373
  reviewed_by_id: z.string(),
2357
2374
  reviewed_at: z.string().datetime({ offset: true }).default(
2358
- "2026-06-14T13:29:47.467Z",
2375
+ "2026-06-15T05:10:28.298Z",
2359
2376
  ).transform(v => new Date(v)),
2360
2377
  type: z.literal("string_array"),
2361
2378
  values: z.array(z.string()),
@@ -2400,7 +2417,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2400
2417
  source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
2401
2418
  reviewed_by_id: z.string(),
2402
2419
  reviewed_at: z.string().datetime({ offset: true }).default(
2403
- "2026-06-14T13:29:47.466Z",
2420
+ "2026-06-15T05:10:28.298Z",
2404
2421
  ).transform(v => new Date(v)),
2405
2422
  type: z.literal("number"),
2406
2423
  value: z.number(),
@@ -2446,7 +2463,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2446
2463
  source: EvaluationsSource$inboundSchema.default("orq"),
2447
2464
  reviewed_by_id: z.string(),
2448
2465
  reviewed_at: z.string().datetime({ offset: true }).default(
2449
- "2026-06-14T13:29:47.466Z",
2466
+ "2026-06-15T05:10:28.297Z",
2450
2467
  ).transform(v => new Date(v)),
2451
2468
  type: z.literal("string"),
2452
2469
  value: z.string(),
@@ -2529,7 +2546,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2529
2546
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2530
2547
  .optional(),
2531
2548
  updated: z.string().datetime({ offset: true }).default(
2532
- "2026-06-14T13:29:29.915Z",
2549
+ "2026-06-15T05:10:09.577Z",
2533
2550
  ).transform(v => new Date(v)),
2534
2551
  }).transform((v) => {
2535
2552
  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("01KV355YM912YMYKTCMFQVMZ8Z"),
412
+ _id: z.string().default("01KV4V0CK5S4BFN78N2VT3AMM1"),
413
413
  display_name: z.string(),
414
414
  description: z.nullable(z.string()).optional(),
415
415
  status: CreateDatasourceStatus$inboundSchema,
@@ -2193,8 +2193,8 @@ export const Typescript$inboundSchema: z.ZodType<
2193
2193
  > = z.object({
2194
2194
  _id: z.string(),
2195
2195
  description: z.string(),
2196
- created: z.string().default("2026-06-14T13:29:30.996Z"),
2197
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
2196
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
2197
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
2198
2198
  updated_by_id: z.nullable(z.string()).optional(),
2199
2199
  guardrail_config: z.nullable(
2200
2200
  z.union([
@@ -2384,8 +2384,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
2384
2384
  .object({
2385
2385
  _id: z.string(),
2386
2386
  description: z.string(),
2387
- created: z.string().default("2026-06-14T13:29:30.996Z"),
2388
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
2387
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
2388
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
2389
2389
  updated_by_id: z.nullable(z.string()).optional(),
2390
2390
  guardrail_config: z.nullable(
2391
2391
  z.union([
@@ -3210,8 +3210,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
3210
3210
  > = z.object({
3211
3211
  _id: z.string(),
3212
3212
  description: z.string(),
3213
- created: z.string().default("2026-06-14T13:29:30.996Z"),
3214
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
3213
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
3214
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
3215
3215
  updated_by_id: z.nullable(z.string()).optional(),
3216
3216
  guardrail_config: z.nullable(
3217
3217
  z.union([
@@ -3430,8 +3430,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
3430
3430
  > = z.object({
3431
3431
  _id: z.string(),
3432
3432
  description: z.string(),
3433
- created: z.string().default("2026-06-14T13:29:30.996Z"),
3434
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
3433
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
3434
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
3435
3435
  updated_by_id: z.nullable(z.string()).optional(),
3436
3436
  guardrail_config: z.nullable(
3437
3437
  z.union([
@@ -3612,8 +3612,8 @@ export const CreateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
3612
3612
  > = z.object({
3613
3613
  _id: z.string(),
3614
3614
  description: z.string(),
3615
- created: z.string().default("2026-06-14T13:29:30.996Z"),
3616
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
3615
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
3616
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
3617
3617
  updated_by_id: z.nullable(z.string()).optional(),
3618
3618
  guardrail_config: z.nullable(
3619
3619
  z.union([
@@ -3772,8 +3772,8 @@ export const Json$inboundSchema: z.ZodType<Json, z.ZodTypeDef, unknown> = z
3772
3772
  .object({
3773
3773
  _id: z.string(),
3774
3774
  description: z.string(),
3775
- created: z.string().default("2026-06-14T13:29:30.996Z"),
3776
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
3775
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
3776
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
3777
3777
  updated_by_id: z.nullable(z.string()).optional(),
3778
3778
  guardrail_config: z.nullable(
3779
3779
  z.union([
@@ -4143,8 +4143,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
4143
4143
  > = z.object({
4144
4144
  _id: z.string(),
4145
4145
  description: z.string(),
4146
- created: z.string().default("2026-06-14T13:29:30.996Z"),
4147
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
4146
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
4147
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
4148
4148
  updated_by_id: z.nullable(z.string()).optional(),
4149
4149
  guardrail_config: z.nullable(
4150
4150
  z.union([
@@ -4363,8 +4363,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
4363
4363
  > = z.object({
4364
4364
  _id: z.string(),
4365
4365
  description: z.string(),
4366
- created: z.string().default("2026-06-14T13:29:30.996Z"),
4367
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
4366
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
4367
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
4368
4368
  updated_by_id: z.nullable(z.string()).optional(),
4369
4369
  guardrail_config: z.nullable(
4370
4370
  z.union([
@@ -36,6 +36,16 @@ export type RequestBody2 = {
36
36
  key: string;
37
37
  description?: string | undefined;
38
38
  externalConfig: ExternalConfig;
39
+ /**
40
+ * Entity storage path.
41
+ *
42
+ * @remarks
43
+ *
44
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
45
+ *
46
+ * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
47
+ */
48
+ path: string;
39
49
  };
40
50
 
41
51
  export const CreateKnowledgeRequestBodyType = {
@@ -424,6 +434,7 @@ export type RequestBody2$Outbound = {
424
434
  key: string;
425
435
  description?: string | undefined;
426
436
  external_config: ExternalConfig$Outbound;
437
+ path: string;
427
438
  };
428
439
 
429
440
  /** @internal */
@@ -438,6 +449,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
438
449
  key: z.string(),
439
450
  description: z.string().optional(),
440
451
  externalConfig: z.lazy(() => ExternalConfig$outboundSchema),
452
+ path: z.string(),
441
453
  }).transform((v) => {
442
454
  return remap$(v, {
443
455
  externalConfig: "external_config",
@@ -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_01KV355YG8G8TZ40ZHSTZXR0XC"),
1901
+ _id: z.string().default("tool_01KV4V0CF3RZ000JRSF3MPTRX5"),
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("01KV355YG7EQEF9KZT384HT0BR"),
1998
+ id: z.string().default("01KV4V0CEM0PAEYZQAF2KWECXK"),
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_01KV355YG60BDYXJYV2E2SHQB3"),
2054
+ _id: z.string().default("tool_01KV4V0CEKK0HRX7E1VB7PX5CR"),
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_01KV355YG4DWEH8RFFSDEDX0RA"),
2240
+ _id: z.string().default("tool_01KV4V0CEHMM0QR3H9VV94X9XY"),
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_01KV355YG3WBMTW5F6MJCXSSGT"),
2333
+ _id: z.string().default("tool_01KV4V0CEF47ZC0RTS414F31WB"),
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_01KV355YG17EVMZ0M693WDQSQ2"),
2434
+ _id: z.string().default("tool_01KV4V0CED1WGGPQDF8WCK6GNV"),
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_01KV355YFPZHKAYEPSP5NSBV9J"),
770
+ _id: z.string().default("tool_01KV4V0CE1KXD8DT8MQE8DKB4Z"),
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("01KV355YFN6Y8BQYZXT27MB14E"),
867
+ id: z.string().default("01KV4V0CE044VADS9GW2D3G2Q4"),
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_01KV355YFM26W2DH2ZK67SHN2M"),
920
+ _id: z.string().default("tool_01KV4V0CDY4TYM7JKWK0Z1A1HC"),
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_01KV355YFJZ2DFWKRJS1MA7S9T"),
1105
+ _id: z.string().default("tool_01KV4V0CDWKGC3SYEC43Q5GKAK"),
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_01KV355YFGP4ZDG1Q95S3XQK6X"),
1198
+ _id: z.string().default("tool_01KV4V0CDT674X7XCQTSKFTY7H"),
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_01KV355YFF4HA2S03WMXTFGMY0"),
1300
+ _id: z.string().default("tool_01KV4V0CDSGQ5WBRFQT8ZH0FNP"),
1301
1301
  path: z.string(),
1302
1302
  key: z.string(),
1303
1303
  display_name: z.string().optional(),
@@ -1070,8 +1070,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
1070
1070
  > = z.object({
1071
1071
  _id: z.string(),
1072
1072
  description: z.string(),
1073
- created: z.string().default("2026-06-14T13:29:30.996Z"),
1074
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
1073
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
1074
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
1075
1075
  updated_by_id: z.nullable(z.string()).optional(),
1076
1076
  guardrail_config: z.nullable(
1077
1077
  z.union([
@@ -1252,8 +1252,8 @@ export const DataRagas$inboundSchema: z.ZodType<
1252
1252
  > = z.object({
1253
1253
  _id: z.string(),
1254
1254
  description: z.string(),
1255
- created: z.string().default("2026-06-14T13:29:30.996Z"),
1256
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
1255
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
1256
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
1257
1257
  updated_by_id: z.nullable(z.string()).optional(),
1258
1258
  guardrail_config: z.nullable(
1259
1259
  z.union([
@@ -2084,8 +2084,8 @@ export const DataFunction$inboundSchema: z.ZodType<
2084
2084
  > = z.object({
2085
2085
  _id: z.string(),
2086
2086
  description: z.string(),
2087
- created: z.string().default("2026-06-14T13:29:30.996Z"),
2088
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
2087
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
2088
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
2089
2089
  updated_by_id: z.nullable(z.string()).optional(),
2090
2090
  guardrail_config: z.nullable(
2091
2091
  z.union([
@@ -2268,8 +2268,8 @@ export const DataPython$inboundSchema: z.ZodType<
2268
2268
  > = z.object({
2269
2269
  _id: z.string(),
2270
2270
  description: z.string(),
2271
- created: z.string().default("2026-06-14T13:29:30.996Z"),
2272
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
2271
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
2272
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
2273
2273
  updated_by_id: z.nullable(z.string()).optional(),
2274
2274
  guardrail_config: z.nullable(
2275
2275
  z.union([
@@ -2448,8 +2448,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
2448
2448
  > = z.object({
2449
2449
  _id: z.string(),
2450
2450
  description: z.string(),
2451
- created: z.string().default("2026-06-14T13:29:30.996Z"),
2452
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
2451
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
2452
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
2453
2453
  updated_by_id: z.nullable(z.string()).optional(),
2454
2454
  guardrail_config: z.nullable(
2455
2455
  z.union([
@@ -2640,8 +2640,8 @@ export const DataJSON$inboundSchema: z.ZodType<
2640
2640
  > = z.object({
2641
2641
  _id: z.string(),
2642
2642
  description: z.string(),
2643
- created: z.string().default("2026-06-14T13:29:30.996Z"),
2644
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
2643
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
2644
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
2645
2645
  updated_by_id: z.nullable(z.string()).optional(),
2646
2646
  guardrail_config: z.nullable(
2647
2647
  z.union([
@@ -3008,8 +3008,8 @@ export const GetEvalsLlm2$inboundSchema: z.ZodType<
3008
3008
  > = z.object({
3009
3009
  _id: z.string(),
3010
3010
  description: z.string(),
3011
- created: z.string().default("2026-06-14T13:29:30.996Z"),
3012
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
3011
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
3012
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
3013
3013
  updated_by_id: z.nullable(z.string()).optional(),
3014
3014
  guardrail_config: z.nullable(
3015
3015
  z.union([
@@ -3221,8 +3221,8 @@ export const GetEvalsLlm1$inboundSchema: z.ZodType<
3221
3221
  > = z.object({
3222
3222
  _id: z.string(),
3223
3223
  description: z.string(),
3224
- created: z.string().default("2026-06-14T13:29:30.996Z"),
3225
- updated: z.string().default("2026-06-14T13:29:30.996Z"),
3224
+ created: z.string().default("2026-06-15T05:10:10.808Z"),
3225
+ updated: z.string().default("2026-06-15T05:10:10.809Z"),
3226
3226
  updated_by_id: z.nullable(z.string()).optional(),
3227
3227
  guardrail_config: z.nullable(
3228
3228
  z.union([
@@ -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-14T13:29:29.915Z",
143
+ "2026-06-15T05:10:09.577Z",
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-14T13:29:29.915Z",
188
+ "2026-06-15T05:10:09.577Z",
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-14T13:29:29.915Z",
144
+ "2026-06-15T05:10:09.577Z",
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-14T13:29:29.915Z",
189
+ "2026-06-15T05:10:09.577Z",
190
190
  ).transform(v => new Date(v)),
191
191
  filter_type: z.literal("span_type"),
192
192
  filter_values: z.array(z.string()),
@@ -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-14T13:29:47.453Z",
1273
+ "2026-06-15T05:10:28.279Z",
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-14T13:29:47.452Z",
1323
+ "2026-06-15T05:10:28.279Z",
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-14T13:29:47.451Z",
1372
+ "2026-06-15T05:10:28.278Z",
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-14T13:29:29.915Z",
1451
+ "2026-06-15T05:10:09.577Z",
1452
1452
  ).transform(v => new Date(v)),
1453
1453
  }).transform((v) => {
1454
1454
  return remap$(v, {
@@ -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-06-14T13:29:29.915Z",
172
+ "2026-06-15T05:10:09.577Z",
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("01KV355YM7S8YEHWDZNTRV1XQX"),
185
+ _id: z.string().default("01KV4V0CK2J8DNY18WVH46SN1Z"),
186
186
  display_name: z.string(),
187
187
  description: z.nullable(z.string()).optional(),
188
188
  status: ListDatasourcesStatus$inboundSchema,
@@ -9,6 +9,20 @@ 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 knowledge bases by type
14
+ */
15
+ export const ListKnowledgeBasesQueryParamType = {
16
+ Internal: "internal",
17
+ External: "external",
18
+ } as const;
19
+ /**
20
+ * Filter knowledge bases by type
21
+ */
22
+ export type ListKnowledgeBasesQueryParamType = ClosedEnum<
23
+ typeof ListKnowledgeBasesQueryParamType
24
+ >;
25
+
12
26
  export type ListKnowledgeBasesRequest = {
13
27
  /**
14
28
  * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
@@ -22,6 +36,18 @@ export type ListKnowledgeBasesRequest = {
22
36
  * A limit on the number of objects to be returned. Limit can range between 1 and 300, and the default is 25
23
37
  */
24
38
  limit?: number | undefined;
39
+ /**
40
+ * Filter knowledge bases by key (case-insensitive match)
41
+ */
42
+ search?: string | undefined;
43
+ /**
44
+ * Filter by the users who last updated the knowledge base. Accepts a comma-separated list of user IDs
45
+ */
46
+ updatedBy?: string | undefined;
47
+ /**
48
+ * Filter knowledge bases by type
49
+ */
50
+ type?: ListKnowledgeBasesQueryParamType | undefined;
25
51
  };
26
52
 
27
53
  export const ListKnowledgeBasesObject = {
@@ -277,11 +303,19 @@ export type ListKnowledgeBasesResponseBody = {
277
303
  hasMore: boolean;
278
304
  };
279
305
 
306
+ /** @internal */
307
+ export const ListKnowledgeBasesQueryParamType$outboundSchema: z.ZodNativeEnum<
308
+ typeof ListKnowledgeBasesQueryParamType
309
+ > = z.nativeEnum(ListKnowledgeBasesQueryParamType);
310
+
280
311
  /** @internal */
281
312
  export type ListKnowledgeBasesRequest$Outbound = {
282
313
  starting_after?: string | undefined;
283
314
  ending_before?: string | undefined;
284
315
  limit: number;
316
+ search?: string | undefined;
317
+ updated_by?: string | undefined;
318
+ type?: string | undefined;
285
319
  };
286
320
 
287
321
  /** @internal */
@@ -293,10 +327,14 @@ export const ListKnowledgeBasesRequest$outboundSchema: z.ZodType<
293
327
  startingAfter: z.string().optional(),
294
328
  endingBefore: z.string().optional(),
295
329
  limit: z.number().int().default(25),
330
+ search: z.string().optional(),
331
+ updatedBy: z.string().optional(),
332
+ type: ListKnowledgeBasesQueryParamType$outboundSchema.optional(),
296
333
  }).transform((v) => {
297
334
  return remap$(v, {
298
335
  startingAfter: "starting_after",
299
336
  endingBefore: "ending_before",
337
+ updatedBy: "updated_by",
300
338
  });
301
339
  });
302
340
 
@@ -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-14T13:29:29.915Z",
321
+ "2026-06-15T05:10:09.577Z",
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-14T13:29:29.915Z",
367
+ "2026-06-15T05:10:09.577Z",
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: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
175
175
  .default("orq"),
176
- reviewedAt: z.date().default(() => new Date("2026-06-14T13:29:47.594Z"))
176
+ reviewedAt: z.date().default(() => new Date("2026-06-15T05:10:28.410Z"))
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 PostV2FeedbackEvaluationRequestBody2$outboundSchema: z.ZodType<
225
225
  source: PostV2FeedbackEvaluationRequestBodySource$outboundSchema.default(
226
226
  "orq",
227
227
  ),
228
- reviewedAt: z.date().default(() => new Date("2026-06-14T13:29:47.594Z"))
228
+ reviewedAt: z.date().default(() => new Date("2026-06-15T05:10:28.409Z"))
229
229
  .transform(v => v.toISOString()),
230
230
  type: z.literal("number"),
231
231
  value: z.number(),
@@ -281,7 +281,7 @@ export const PostV2FeedbackEvaluationRequestBody1$outboundSchema: z.ZodType<
281
281
  evaluationType: EvaluationType$outboundSchema,
282
282
  humanReviewId: z.string(),
283
283
  source: RequestBodySource$outboundSchema.default("orq"),
284
- reviewedAt: z.date().default(() => new Date("2026-06-14T13:29:47.593Z"))
284
+ reviewedAt: z.date().default(() => new Date("2026-06-15T05:10:28.409Z"))
285
285
  .transform(v => v.toISOString()),
286
286
  type: z.literal("string"),
287
287
  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-14T13:29:29.915Z",
274
+ "2026-06-15T05:10:09.577Z",
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-14T13:29:29.915Z",
319
+ "2026-06-15T05:10:09.577Z",
320
320
  ).transform(v => new Date(v)),
321
321
  filter_type: z.literal("span_type"),
322
322
  filter_values: z.array(z.string()),