@orq-ai/node 4.10.22 → 4.10.23

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 (101) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/lib/retries.js +7 -0
  5. package/lib/retries.js.map +1 -1
  6. package/models/components/reasoningpart.js +1 -1
  7. package/models/operations/createdataset.js +1 -1
  8. package/models/operations/createdatasetitem.js +4 -4
  9. package/models/operations/createdatasource.js +1 -1
  10. package/models/operations/createeval.js +16 -16
  11. package/models/operations/createtool.js +6 -6
  12. package/models/operations/getalltools.js +6 -6
  13. package/models/operations/getevals.js +16 -16
  14. package/models/operations/getv2humanevalsets.js +2 -2
  15. package/models/operations/getv2humanevalsetsid.js +2 -2
  16. package/models/operations/listdatasetdatapoints.js +4 -4
  17. package/models/operations/listdatasets.js +1 -1
  18. package/models/operations/listdatasources.js +1 -1
  19. package/models/operations/patchv2humanevalsetsid.js +2 -2
  20. package/models/operations/postv2feedbackevaluation.js +3 -3
  21. package/models/operations/postv2humanevalsets.js +2 -2
  22. package/models/operations/retrievedatapoint.js +4 -4
  23. package/models/operations/retrievedataset.js +1 -1
  24. package/models/operations/retrievedatasource.js +1 -1
  25. package/models/operations/retrievetool.js +6 -6
  26. package/models/operations/runagent.js +1 -1
  27. package/models/operations/streamrunagent.js +1 -1
  28. package/models/operations/updatedatapoint.js +4 -4
  29. package/models/operations/updatedataset.js +1 -1
  30. package/models/operations/updatedatasource.js +1 -1
  31. package/models/operations/updateeval.js +16 -16
  32. package/models/operations/updatetool.js +7 -7
  33. package/package.json +8 -8
  34. package/packages/orq-rc/src/funcs/knowledgeList.ts +3 -0
  35. package/packages/orq-rc/src/funcs/memoryStoresList.ts +2 -0
  36. package/packages/orq-rc/src/lib/config.ts +2 -2
  37. package/packages/orq-rc/src/models/components/modelmetadata.ts +12 -0
  38. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  39. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +13 -7
  40. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  41. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +25 -8
  42. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  43. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  44. package/packages/orq-rc/src/models/operations/createknowledge.ts +12 -0
  45. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  46. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +13 -0
  47. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  48. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  49. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  50. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  51. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  52. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  53. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  54. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +38 -0
  55. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  56. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  57. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  59. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  60. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  61. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  62. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  63. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  64. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +29 -8
  65. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  66. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  67. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  68. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  69. package/packages/orq-rc/src/sdk/feedback.ts +1 -4
  70. package/sdk/feedback.d.ts +2 -2
  71. package/sdk/feedback.js +2 -2
  72. package/src/lib/config.ts +3 -3
  73. package/src/lib/retries.ts +8 -0
  74. package/src/models/components/reasoningpart.ts +1 -1
  75. package/src/models/operations/createdataset.ts +1 -1
  76. package/src/models/operations/createdatasetitem.ts +4 -4
  77. package/src/models/operations/createdatasource.ts +1 -1
  78. package/src/models/operations/createeval.ts +16 -16
  79. package/src/models/operations/createtool.ts +6 -6
  80. package/src/models/operations/getalltools.ts +6 -6
  81. package/src/models/operations/getevals.ts +16 -16
  82. package/src/models/operations/getv2humanevalsets.ts +2 -2
  83. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  84. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  85. package/src/models/operations/listdatasets.ts +1 -1
  86. package/src/models/operations/listdatasources.ts +1 -1
  87. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  88. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  89. package/src/models/operations/postv2humanevalsets.ts +2 -2
  90. package/src/models/operations/retrievedatapoint.ts +4 -4
  91. package/src/models/operations/retrievedataset.ts +1 -1
  92. package/src/models/operations/retrievedatasource.ts +1 -1
  93. package/src/models/operations/retrievetool.ts +6 -6
  94. package/src/models/operations/runagent.ts +1 -1
  95. package/src/models/operations/streamrunagent.ts +1 -1
  96. package/src/models/operations/updatedatapoint.ts +4 -4
  97. package/src/models/operations/updatedataset.ts +1 -1
  98. package/src/models/operations/updatedatasource.ts +1 -1
  99. package/src/models/operations/updateeval.ts +16 -16
  100. package/src/models/operations/updatetool.ts +7 -7
  101. package/src/sdk/feedback.ts +2 -2
@@ -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-16T10:59:04.173Z"),
2197
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:04.173Z"),
2388
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:04.173Z"),
3214
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:04.173Z"),
3434
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:04.173Z"),
3616
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:04.173Z"),
3776
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:04.173Z"),
4147
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:04.173Z"),
4367
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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_01KV81C1JA7GQZ6J25GR33VWKZ"),
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("01KV81C1J9V22NYE9R3N4RYN14"),
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_01KV81C1J8Z9PWX7CPH89T513X"),
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_01KV81C1J5DB5S4FQSM7HDMEZN"),
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_01KV81C1J4AGDXE2Q1SE9869FD"),
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_01KV81C1J1JWM60E8E9XMPS33Y"),
2435
2435
  path: z.string(),
2436
2436
  key: z.string(),
2437
2437
  display_name: z.string().optional(),
@@ -22,6 +22,14 @@ export type GetAllMemoryStoresRequest = {
22
22
  * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
23
23
  */
24
24
  endingBefore?: string | undefined;
25
+ /**
26
+ * Filter memory stores by key (case-insensitive match)
27
+ */
28
+ search?: string | undefined;
29
+ /**
30
+ * Filter by the users who last updated the memory store. Accepts a comma-separated list of user IDs
31
+ */
32
+ updatedBy?: string | undefined;
25
33
  };
26
34
 
27
35
  export const GetAllMemoryStoresObject = {
@@ -88,6 +96,8 @@ export type GetAllMemoryStoresRequest$Outbound = {
88
96
  limit: number;
89
97
  starting_after?: string | undefined;
90
98
  ending_before?: string | undefined;
99
+ search?: string | undefined;
100
+ updated_by?: string | undefined;
91
101
  };
92
102
 
93
103
  /** @internal */
@@ -99,10 +109,13 @@ export const GetAllMemoryStoresRequest$outboundSchema: z.ZodType<
99
109
  limit: z.number().int().default(10),
100
110
  startingAfter: z.string().optional(),
101
111
  endingBefore: z.string().optional(),
112
+ search: z.string().optional(),
113
+ updatedBy: z.string().optional(),
102
114
  }).transform((v) => {
103
115
  return remap$(v, {
104
116
  startingAfter: "starting_after",
105
117
  endingBefore: "ending_before",
118
+ updatedBy: "updated_by",
106
119
  });
107
120
  });
108
121
 
@@ -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_01KV81C1HPK7DASR76RPNB68QM"),
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("01KV81C1HNKYV5KXGHM7BNAGPX"),
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_01KV81C1HK6WJ6ECCFQTVBS9NQ"),
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_01KV81C1HH1YC3JSPENNM0EMED"),
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_01KV81C1HFG8RMX8GEQQ50S1KZ"),
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_01KV81C1HD239PT67W6B2SZ8VE"),
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-16T10:59:04.173Z"),
1074
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:04.173Z"),
1256
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:04.173Z"),
2088
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:04.173Z"),
2272
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:04.173Z"),
2452
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:04.173Z"),
2644
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:04.173Z"),
3012
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:04.173Z"),
3225
+ updated: z.string().default("2026-06-16T10:59:04.173Z"),
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-16T10:59:02.870Z",
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-16T10:59:02.870Z",
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-16T10:59:02.870Z",
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-16T10:59:02.870Z",
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-16T10:59:25.080Z",
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-16T10:59:25.080Z",
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-16T10:59:25.079Z",
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-16T10:59:02.870Z",
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-16T10:59:02.870Z",
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("01KV81C1PSY8N5CQ6SZZCJWHE2"),
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-16T10:59:02.870Z",
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-16T10:59:02.870Z",
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-16T10:59:25.228Z"))
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-16T10:59:25.227Z"))
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-16T10:59:25.227Z"))
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-16T10:59:02.870Z",
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-16T10:59:02.870Z",
320
320
  ).transform(v => new Date(v)),
321
321
  filter_type: z.literal("span_type"),
322
322
  filter_values: z.array(z.string()),
@@ -1207,7 +1207,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
1207
1207
  .default("orq"),
1208
1208
  reviewed_by_id: z.string(),
1209
1209
  reviewed_at: z.string().datetime({ offset: true }).default(
1210
- "2026-06-14T13:29:47.460Z",
1210
+ "2026-06-16T10:59:25.101Z",
1211
1211
  ).transform(v => new Date(v)),
1212
1212
  type: z.literal("string_array"),
1213
1213
  values: z.array(z.string()),
@@ -1255,7 +1255,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
1255
1255
  ),
1256
1256
  reviewed_by_id: z.string(),
1257
1257
  reviewed_at: z.string().datetime({ offset: true }).default(
1258
- "2026-06-14T13:29:47.459Z",
1258
+ "2026-06-16T10:59:25.101Z",
1259
1259
  ).transform(v => new Date(v)),
1260
1260
  type: z.literal("number"),
1261
1261
  value: z.number(),
@@ -1300,7 +1300,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
1300
1300
  source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
1301
1301
  reviewed_by_id: z.string(),
1302
1302
  reviewed_at: z.string().datetime({ offset: true }).default(
1303
- "2026-06-14T13:29:47.458Z",
1303
+ "2026-06-16T10:59:25.100Z",
1304
1304
  ).transform(v => new Date(v)),
1305
1305
  type: z.literal("string"),
1306
1306
  value: z.string(),
@@ -1377,7 +1377,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
1377
1377
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1378
1378
  .optional(),
1379
1379
  updated: z.string().datetime({ offset: true }).default(
1380
- "2026-06-14T13:29:29.915Z",
1380
+ "2026-06-16T10:59:02.870Z",
1381
1381
  ).transform(v => new Date(v)),
1382
1382
  }).transform((v) => {
1383
1383
  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-06-14T13:29:29.915Z",
129
+ "2026-06-16T10:59:02.870Z",
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("01KV355YM89RQY0V6T42Q6TM2Q"),
121
+ _id: z.string().default("01KV81C1PVR627CXYW15WETGP0"),
122
122
  display_name: z.string(),
123
123
  description: z.nullable(z.string()).optional(),
124
124
  status: RetrieveDatasourceStatus$inboundSchema,