@orq-ai/node 4.11.0-rc.1 → 4.11.0-rc.3

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 (268) hide show
  1. package/FUNCTIONS.md +4 -4
  2. package/README.md +81 -70
  3. package/examples/{postV2FeedbackEvaluationRemove.example.ts → evalsAll.example.ts} +4 -2
  4. package/funcs/{agentsPostV2AgentsKeyCardRefresh.d.ts → agentsRefreshKeyCard.d.ts} +2 -2
  5. package/funcs/agentsRefreshKeyCard.d.ts.map +1 -0
  6. package/funcs/{agentsPostV2AgentsKeyCardRefresh.js → agentsRefreshKeyCard.js} +3 -3
  7. package/funcs/agentsRefreshKeyCard.js.map +1 -0
  8. package/funcs/{evalsGetV2EvaluatorsIdVersions.d.ts → evalsListVersions.d.ts} +2 -2
  9. package/funcs/evalsListVersions.d.ts.map +1 -0
  10. package/funcs/{evalsGetV2EvaluatorsIdVersions.js → evalsListVersions.js} +3 -3
  11. package/funcs/evalsListVersions.js.map +1 -0
  12. package/funcs/{feedbackPostV2FeedbackRemove.d.ts → feedbackCreate.d.ts} +2 -2
  13. package/funcs/feedbackCreate.d.ts.map +1 -0
  14. package/funcs/{feedbackPostV2Feedback.js → feedbackCreate.js} +3 -3
  15. package/funcs/feedbackCreate.js.map +1 -0
  16. package/funcs/{postV2FeedbackEvaluation.d.ts → feedbackCreateEvaluation.d.ts} +2 -2
  17. package/funcs/{postV2FeedbackEvaluation.d.ts.map → feedbackCreateEvaluation.d.ts.map} +1 -1
  18. package/funcs/{postV2FeedbackEvaluation.js → feedbackCreateEvaluation.js} +3 -3
  19. package/funcs/{postV2FeedbackEvaluation.js.map → feedbackCreateEvaluation.js.map} +1 -1
  20. package/funcs/{feedbackPostV2Feedback.d.ts → feedbackRemove.d.ts} +2 -2
  21. package/funcs/feedbackRemove.d.ts.map +1 -0
  22. package/funcs/{feedbackPostV2FeedbackRemove.js → feedbackRemove.js} +3 -3
  23. package/funcs/feedbackRemove.js.map +1 -0
  24. package/funcs/{humanReviewSetsDeleteV2HumanEvalSetsId.d.ts → feedbackRemoveEvaluation.d.ts} +2 -5
  25. package/funcs/feedbackRemoveEvaluation.d.ts.map +1 -0
  26. package/funcs/{postV2FeedbackEvaluationRemove.js → feedbackRemoveEvaluation.js} +3 -3
  27. package/funcs/feedbackRemoveEvaluation.js.map +1 -0
  28. package/funcs/guardrailRulesList.js +4 -0
  29. package/funcs/guardrailRulesList.js.map +1 -1
  30. package/funcs/guardrailRulesListUsedGuardrails.d.ts +17 -0
  31. package/funcs/guardrailRulesListUsedGuardrails.d.ts.map +1 -0
  32. package/funcs/guardrailRulesListUsedGuardrails.js +105 -0
  33. package/funcs/guardrailRulesListUsedGuardrails.js.map +1 -0
  34. package/funcs/{humanReviewSetsPostV2HumanEvalSets.d.ts → humanReviewSetsCreate.d.ts} +2 -2
  35. package/funcs/humanReviewSetsCreate.d.ts.map +1 -0
  36. package/funcs/{humanReviewSetsPostV2HumanEvalSets.js → humanReviewSetsCreate.js} +3 -3
  37. package/funcs/humanReviewSetsCreate.js.map +1 -0
  38. package/funcs/{humanReviewSetsGetV2HumanEvalSets.d.ts → humanReviewSetsDelete.d.ts} +3 -3
  39. package/funcs/humanReviewSetsDelete.d.ts.map +1 -0
  40. package/funcs/{humanReviewSetsDeleteV2HumanEvalSetsId.js → humanReviewSetsDelete.js} +3 -3
  41. package/funcs/humanReviewSetsDelete.js.map +1 -0
  42. package/funcs/{postV2FeedbackEvaluationRemove.d.ts → humanReviewSetsGet.d.ts} +5 -2
  43. package/funcs/humanReviewSetsGet.d.ts.map +1 -0
  44. package/funcs/{humanReviewSetsGetV2HumanEvalSetsId.js → humanReviewSetsGet.js} +3 -3
  45. package/funcs/humanReviewSetsGet.js.map +1 -0
  46. package/funcs/{humanReviewSetsGetV2HumanEvalSetsId.d.ts → humanReviewSetsList.d.ts} +3 -3
  47. package/funcs/humanReviewSetsList.d.ts.map +1 -0
  48. package/funcs/{humanReviewSetsGetV2HumanEvalSets.js → humanReviewSetsList.js} +3 -3
  49. package/funcs/humanReviewSetsList.js.map +1 -0
  50. package/funcs/{humanReviewSetsPatchV2HumanEvalSetsId.d.ts → humanReviewSetsUpdate.d.ts} +2 -2
  51. package/funcs/humanReviewSetsUpdate.d.ts.map +1 -0
  52. package/funcs/{humanReviewSetsPatchV2HumanEvalSetsId.js → humanReviewSetsUpdate.js} +3 -3
  53. package/funcs/humanReviewSetsUpdate.js.map +1 -0
  54. package/funcs/routingRulesList.js +3 -0
  55. package/funcs/routingRulesList.js.map +1 -1
  56. package/funcs/routingRulesListUsedModels.d.ts +17 -0
  57. package/funcs/routingRulesListUsedModels.d.ts.map +1 -0
  58. package/funcs/routingRulesListUsedModels.js +105 -0
  59. package/funcs/routingRulesListUsedModels.js.map +1 -0
  60. package/funcs/{toolsGetV2ToolsToolIdVersionsVersionId.d.ts → toolsGetVersion.d.ts} +2 -2
  61. package/funcs/toolsGetVersion.d.ts.map +1 -0
  62. package/funcs/{toolsGetV2ToolsToolIdVersionsVersionId.js → toolsGetVersion.js} +3 -3
  63. package/funcs/toolsGetVersion.js.map +1 -0
  64. package/funcs/{toolsGetV2ToolsToolIdVersions.d.ts → toolsListVersions.d.ts} +2 -2
  65. package/funcs/toolsListVersions.d.ts.map +1 -0
  66. package/funcs/{toolsGetV2ToolsToolIdVersions.js → toolsListVersions.js} +3 -3
  67. package/funcs/toolsListVersions.js.map +1 -0
  68. package/jsr.json +1 -1
  69. package/lib/config.d.ts +2 -2
  70. package/lib/config.js +2 -2
  71. package/models/components/createfilerequest.d.ts +1 -1
  72. package/models/components/reasoningpart.js +1 -1
  73. package/models/operations/createdataset.js +1 -1
  74. package/models/operations/createdatasetitem.js +4 -4
  75. package/models/operations/createdatasource.js +1 -1
  76. package/models/operations/createeval.d.ts +22 -22
  77. package/models/operations/createeval.d.ts.map +1 -1
  78. package/models/operations/createeval.js +32 -32
  79. package/models/operations/createeval.js.map +1 -1
  80. package/models/operations/createknowledge.d.ts +10 -10
  81. package/models/operations/createknowledge.d.ts.map +1 -1
  82. package/models/operations/createknowledge.js +11 -11
  83. package/models/operations/createknowledge.js.map +1 -1
  84. package/models/operations/createtool.d.ts +10 -10
  85. package/models/operations/createtool.d.ts.map +1 -1
  86. package/models/operations/createtool.js +16 -16
  87. package/models/operations/createtool.js.map +1 -1
  88. package/models/operations/getalltools.d.ts +10 -10
  89. package/models/operations/getalltools.d.ts.map +1 -1
  90. package/models/operations/getalltools.js +16 -16
  91. package/models/operations/getalltools.js.map +1 -1
  92. package/models/operations/getevals.d.ts +6 -6
  93. package/models/operations/getevals.d.ts.map +1 -1
  94. package/models/operations/getevals.js +22 -22
  95. package/models/operations/getevals.js.map +1 -1
  96. package/models/operations/getv2humanevalsets.js +2 -2
  97. package/models/operations/getv2humanevalsetsid.js +2 -2
  98. package/models/operations/guardrailrulelist.d.ts +35 -0
  99. package/models/operations/guardrailrulelist.d.ts.map +1 -1
  100. package/models/operations/guardrailrulelist.js +18 -1
  101. package/models/operations/guardrailrulelist.js.map +1 -1
  102. package/models/operations/guardrailrulelistusedguardrails.d.ts +14 -0
  103. package/models/operations/guardrailrulelistusedguardrails.d.ts.map +1 -0
  104. package/models/operations/guardrailrulelistusedguardrails.js +56 -0
  105. package/models/operations/guardrailrulelistusedguardrails.js.map +1 -0
  106. package/models/operations/index.d.ts +2 -0
  107. package/models/operations/index.d.ts.map +1 -1
  108. package/models/operations/index.js +2 -0
  109. package/models/operations/index.js.map +1 -1
  110. package/models/operations/listdatasetdatapoints.js +4 -4
  111. package/models/operations/listdatasets.js +1 -1
  112. package/models/operations/listdatasources.js +1 -1
  113. package/models/operations/listknowledgebases.d.ts +2 -5
  114. package/models/operations/listknowledgebases.d.ts.map +1 -1
  115. package/models/operations/listknowledgebases.js +1 -1
  116. package/models/operations/listknowledgebases.js.map +1 -1
  117. package/models/operations/patchv2humanevalsetsid.js +2 -2
  118. package/models/operations/postv2feedbackevaluation.d.ts +14 -14
  119. package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
  120. package/models/operations/postv2feedbackevaluation.js +18 -18
  121. package/models/operations/postv2feedbackevaluation.js.map +1 -1
  122. package/models/operations/postv2humanevalsets.js +2 -2
  123. package/models/operations/retrievedatapoint.js +4 -4
  124. package/models/operations/retrievedataset.js +1 -1
  125. package/models/operations/retrievedatasource.js +1 -1
  126. package/models/operations/retrievetool.d.ts +10 -10
  127. package/models/operations/retrievetool.d.ts.map +1 -1
  128. package/models/operations/retrievetool.js +16 -16
  129. package/models/operations/retrievetool.js.map +1 -1
  130. package/models/operations/routingrulelist.d.ts +15 -0
  131. package/models/operations/routingrulelist.d.ts.map +1 -1
  132. package/models/operations/routingrulelist.js +3 -0
  133. package/models/operations/routingrulelist.js.map +1 -1
  134. package/models/operations/routingrulelistusedmodels.d.ts +14 -0
  135. package/models/operations/routingrulelistusedmodels.d.ts.map +1 -0
  136. package/models/operations/routingrulelistusedmodels.js +51 -0
  137. package/models/operations/routingrulelistusedmodels.js.map +1 -0
  138. package/models/operations/runagent.js +1 -1
  139. package/models/operations/streamrunagent.js +1 -1
  140. package/models/operations/updatedatapoint.js +4 -4
  141. package/models/operations/updatedataset.js +1 -1
  142. package/models/operations/updatedatasource.js +1 -1
  143. package/models/operations/updateeval.d.ts +6 -6
  144. package/models/operations/updateeval.d.ts.map +1 -1
  145. package/models/operations/updateeval.js +22 -22
  146. package/models/operations/updateeval.js.map +1 -1
  147. package/models/operations/updatetool.d.ts +10 -10
  148. package/models/operations/updatetool.d.ts.map +1 -1
  149. package/models/operations/updatetool.js +17 -17
  150. package/models/operations/updatetool.js.map +1 -1
  151. package/package.json +8 -8
  152. package/sdk/agents.d.ts +1 -1
  153. package/sdk/agents.d.ts.map +1 -1
  154. package/sdk/agents.js +3 -3
  155. package/sdk/agents.js.map +1 -1
  156. package/sdk/evals.d.ts +1 -1
  157. package/sdk/evals.d.ts.map +1 -1
  158. package/sdk/evals.js +3 -3
  159. package/sdk/evals.js.map +1 -1
  160. package/sdk/feedback.d.ts +10 -2
  161. package/sdk/feedback.d.ts.map +1 -1
  162. package/sdk/feedback.js +20 -6
  163. package/sdk/feedback.js.map +1 -1
  164. package/sdk/guardrailrules.d.ts +7 -0
  165. package/sdk/guardrailrules.d.ts.map +1 -1
  166. package/sdk/guardrailrules.js +10 -0
  167. package/sdk/guardrailrules.js.map +1 -1
  168. package/sdk/humanreviewsets.d.ts +5 -5
  169. package/sdk/humanreviewsets.d.ts.map +1 -1
  170. package/sdk/humanreviewsets.js +15 -15
  171. package/sdk/humanreviewsets.js.map +1 -1
  172. package/sdk/routingrules.d.ts +7 -0
  173. package/sdk/routingrules.d.ts.map +1 -1
  174. package/sdk/routingrules.js +10 -0
  175. package/sdk/routingrules.js.map +1 -1
  176. package/sdk/sdk.d.ts +1 -4
  177. package/sdk/sdk.d.ts.map +1 -1
  178. package/sdk/sdk.js +0 -9
  179. package/sdk/sdk.js.map +1 -1
  180. package/sdk/tools.d.ts +2 -2
  181. package/sdk/tools.d.ts.map +1 -1
  182. package/sdk/tools.js +6 -6
  183. package/sdk/tools.js.map +1 -1
  184. package/src/funcs/{agentsPostV2AgentsKeyCardRefresh.ts → agentsRefreshKeyCard.ts} +1 -1
  185. package/src/funcs/{evalsGetV2EvaluatorsIdVersions.ts → evalsListVersions.ts} +1 -1
  186. package/src/funcs/{feedbackPostV2Feedback.ts → feedbackCreate.ts} +1 -1
  187. package/src/funcs/{postV2FeedbackEvaluation.ts → feedbackCreateEvaluation.ts} +1 -1
  188. package/src/funcs/{feedbackPostV2FeedbackRemove.ts → feedbackRemove.ts} +1 -1
  189. package/src/funcs/{postV2FeedbackEvaluationRemove.ts → feedbackRemoveEvaluation.ts} +1 -1
  190. package/src/funcs/guardrailRulesList.ts +4 -0
  191. package/src/funcs/guardrailRulesListUsedGuardrails.ts +147 -0
  192. package/src/funcs/{humanReviewSetsPostV2HumanEvalSets.ts → humanReviewSetsCreate.ts} +1 -1
  193. package/src/funcs/{humanReviewSetsDeleteV2HumanEvalSetsId.ts → humanReviewSetsDelete.ts} +1 -1
  194. package/src/funcs/{humanReviewSetsGetV2HumanEvalSetsId.ts → humanReviewSetsGet.ts} +1 -1
  195. package/src/funcs/{humanReviewSetsGetV2HumanEvalSets.ts → humanReviewSetsList.ts} +1 -1
  196. package/src/funcs/{humanReviewSetsPatchV2HumanEvalSetsId.ts → humanReviewSetsUpdate.ts} +1 -1
  197. package/src/funcs/routingRulesList.ts +3 -0
  198. package/src/funcs/routingRulesListUsedModels.ts +144 -0
  199. package/src/funcs/{toolsGetV2ToolsToolIdVersionsVersionId.ts → toolsGetVersion.ts} +1 -1
  200. package/src/funcs/{toolsGetV2ToolsToolIdVersions.ts → toolsListVersions.ts} +1 -1
  201. package/src/lib/config.ts +2 -2
  202. package/src/models/components/createfilerequest.ts +1 -1
  203. package/src/models/components/reasoningpart.ts +1 -1
  204. package/src/models/operations/createdataset.ts +1 -1
  205. package/src/models/operations/createdatasetitem.ts +4 -4
  206. package/src/models/operations/createdatasource.ts +1 -1
  207. package/src/models/operations/createeval.ts +62 -57
  208. package/src/models/operations/createknowledge.ts +19 -33
  209. package/src/models/operations/createtool.ts +26 -26
  210. package/src/models/operations/getalltools.ts +26 -26
  211. package/src/models/operations/getevals.ts +33 -30
  212. package/src/models/operations/getv2humanevalsets.ts +2 -2
  213. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  214. package/src/models/operations/guardrailrulelist.ts +44 -0
  215. package/src/models/operations/guardrailrulelistusedguardrails.ts +48 -0
  216. package/src/models/operations/index.ts +2 -0
  217. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  218. package/src/models/operations/listdatasets.ts +1 -1
  219. package/src/models/operations/listdatasources.ts +1 -1
  220. package/src/models/operations/listknowledgebases.ts +3 -6
  221. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  222. package/src/models/operations/postv2feedbackevaluation.ts +43 -31
  223. package/src/models/operations/postv2humanevalsets.ts +2 -2
  224. package/src/models/operations/retrievedatapoint.ts +4 -4
  225. package/src/models/operations/retrievedataset.ts +1 -1
  226. package/src/models/operations/retrievedatasource.ts +1 -1
  227. package/src/models/operations/retrievetool.ts +26 -26
  228. package/src/models/operations/routingrulelist.ts +18 -0
  229. package/src/models/operations/routingrulelistusedmodels.ts +37 -0
  230. package/src/models/operations/runagent.ts +1 -1
  231. package/src/models/operations/streamrunagent.ts +1 -1
  232. package/src/models/operations/updatedatapoint.ts +4 -4
  233. package/src/models/operations/updatedataset.ts +1 -1
  234. package/src/models/operations/updatedatasource.ts +1 -1
  235. package/src/models/operations/updateeval.ts +33 -30
  236. package/src/models/operations/updatetool.ts +27 -27
  237. package/src/sdk/agents.ts +3 -3
  238. package/src/sdk/evals.ts +3 -3
  239. package/src/sdk/feedback.ts +36 -6
  240. package/src/sdk/guardrailrules.ts +16 -0
  241. package/src/sdk/humanreviewsets.ts +15 -15
  242. package/src/sdk/routingrules.ts +16 -0
  243. package/src/sdk/sdk.ts +1 -27
  244. package/src/sdk/tools.ts +6 -6
  245. package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts.map +0 -1
  246. package/funcs/agentsPostV2AgentsKeyCardRefresh.js.map +0 -1
  247. package/funcs/evalsGetV2EvaluatorsIdVersions.d.ts.map +0 -1
  248. package/funcs/evalsGetV2EvaluatorsIdVersions.js.map +0 -1
  249. package/funcs/feedbackPostV2Feedback.d.ts.map +0 -1
  250. package/funcs/feedbackPostV2Feedback.js.map +0 -1
  251. package/funcs/feedbackPostV2FeedbackRemove.d.ts.map +0 -1
  252. package/funcs/feedbackPostV2FeedbackRemove.js.map +0 -1
  253. package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.d.ts.map +0 -1
  254. package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.js.map +0 -1
  255. package/funcs/humanReviewSetsGetV2HumanEvalSets.d.ts.map +0 -1
  256. package/funcs/humanReviewSetsGetV2HumanEvalSets.js.map +0 -1
  257. package/funcs/humanReviewSetsGetV2HumanEvalSetsId.d.ts.map +0 -1
  258. package/funcs/humanReviewSetsGetV2HumanEvalSetsId.js.map +0 -1
  259. package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.d.ts.map +0 -1
  260. package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.js.map +0 -1
  261. package/funcs/humanReviewSetsPostV2HumanEvalSets.d.ts.map +0 -1
  262. package/funcs/humanReviewSetsPostV2HumanEvalSets.js.map +0 -1
  263. package/funcs/postV2FeedbackEvaluationRemove.d.ts.map +0 -1
  264. package/funcs/postV2FeedbackEvaluationRemove.js.map +0 -1
  265. package/funcs/toolsGetV2ToolsToolIdVersions.d.ts.map +0 -1
  266. package/funcs/toolsGetV2ToolsToolIdVersions.js.map +0 -1
  267. package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.d.ts.map +0 -1
  268. package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.js.map +0 -1
@@ -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-05T06:12:43.212Z",
1273
+ "2026-06-08T13:07:39.427Z",
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-05T06:12:43.212Z",
1323
+ "2026-06-08T13:07:39.427Z",
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-05T06:12:43.211Z",
1372
+ "2026-06-08T13:07:39.426Z",
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-05T06:12:26.568Z",
1451
+ "2026-06-08T13:07:17.066Z",
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-05T06:12:26.568Z",
159
+ "2026-06-08T13:07:17.066Z",
160
160
  ).transform(v => new Date(v)),
161
161
  }).transform((v) => {
162
162
  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("01KTB6K60FX3WZR6WQ2QV74ZKN"),
185
+ _id: z.string().default("01KTKNH3Q7EJAMJQJ8ZSC9YB2V"),
186
186
  display_name: z.string(),
187
187
  description: z.nullable(z.string()).optional(),
188
188
  status: ListDatasourcesStatus$inboundSchema,
@@ -10,10 +10,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  export type ListKnowledgeBasesRequest = {
13
- /**
14
- * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
15
- */
16
- limit?: number | undefined;
17
13
  /**
18
14
  * 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.
19
15
  */
@@ -22,6 +18,7 @@ export type ListKnowledgeBasesRequest = {
22
18
  * 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
19
  */
24
20
  endingBefore?: string | undefined;
21
+ limit?: number | undefined;
25
22
  };
26
23
 
27
24
  export const ListKnowledgeBasesObject = {
@@ -279,9 +276,9 @@ export type ListKnowledgeBasesResponseBody = {
279
276
 
280
277
  /** @internal */
281
278
  export type ListKnowledgeBasesRequest$Outbound = {
282
- limit: number;
283
279
  starting_after?: string | undefined;
284
280
  ending_before?: string | undefined;
281
+ limit: number;
285
282
  };
286
283
 
287
284
  /** @internal */
@@ -290,9 +287,9 @@ export const ListKnowledgeBasesRequest$outboundSchema: z.ZodType<
290
287
  z.ZodTypeDef,
291
288
  ListKnowledgeBasesRequest
292
289
  > = z.object({
293
- limit: z.number().int().default(10),
294
290
  startingAfter: z.string().optional(),
295
291
  endingBefore: z.string().optional(),
292
+ limit: z.number().default(300),
296
293
  }).transform((v) => {
297
294
  return remap$(v, {
298
295
  startingAfter: "starting_after",
@@ -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-05T06:12:26.568Z",
321
+ "2026-06-08T13:07:17.066Z",
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-05T06:12:26.568Z",
367
+ "2026-06-08T13:07:17.066Z",
368
368
  ).transform(v => new Date(v)),
369
369
  filter_type: z.literal("span_type"),
370
370
  filter_values: z.array(z.string()),
@@ -19,12 +19,12 @@ export type PostV2FeedbackEvaluationRequestBodyEvaluationType = ClosedEnum<
19
19
  typeof PostV2FeedbackEvaluationRequestBodyEvaluationType
20
20
  >;
21
21
 
22
- export const PostV2FeedbackEvaluationRequestBodyRequestSource = {
22
+ export const PostV2FeedbackEvaluationRequestBodyFeedbackSource = {
23
23
  Orq: "orq",
24
24
  External: "external",
25
25
  } as const;
26
- export type PostV2FeedbackEvaluationRequestBodyRequestSource = ClosedEnum<
27
- typeof PostV2FeedbackEvaluationRequestBodyRequestSource
26
+ export type PostV2FeedbackEvaluationRequestBodyFeedbackSource = ClosedEnum<
27
+ typeof PostV2FeedbackEvaluationRequestBodyFeedbackSource
28
28
  >;
29
29
 
30
30
  export type RequestBody3 = {
@@ -40,7 +40,7 @@ export type RequestBody3 = {
40
40
  * The unique identifier of the human review
41
41
  */
42
42
  humanReviewId: string;
43
- source?: PostV2FeedbackEvaluationRequestBodyRequestSource | undefined;
43
+ source?: PostV2FeedbackEvaluationRequestBodyFeedbackSource | undefined;
44
44
  /**
45
45
  * The date and time the item was reviewed
46
46
  */
@@ -71,7 +71,7 @@ export type PostV2FeedbackEvaluationRequestBodySource = ClosedEnum<
71
71
  typeof PostV2FeedbackEvaluationRequestBodySource
72
72
  >;
73
73
 
74
- export type RequestBody2 = {
74
+ export type PostV2FeedbackEvaluationRequestBody2 = {
75
75
  /**
76
76
  * The unique identifier of the human evaluation
77
77
  */
@@ -111,7 +111,7 @@ export const RequestBodySource = {
111
111
  } as const;
112
112
  export type RequestBodySource = ClosedEnum<typeof RequestBodySource>;
113
113
 
114
- export type RequestBody1 = {
114
+ export type PostV2FeedbackEvaluationRequestBody1 = {
115
115
  /**
116
116
  * The unique identifier of the human evaluation
117
117
  */
@@ -135,8 +135,8 @@ export type RequestBody1 = {
135
135
  };
136
136
 
137
137
  export type PostV2FeedbackEvaluationRequestBody =
138
- | RequestBody1
139
- | RequestBody2
138
+ | PostV2FeedbackEvaluationRequestBody1
139
+ | PostV2FeedbackEvaluationRequestBody2
140
140
  | RequestBody3;
141
141
 
142
142
  /** @internal */
@@ -145,9 +145,9 @@ export const PostV2FeedbackEvaluationRequestBodyEvaluationType$outboundSchema:
145
145
  .nativeEnum(PostV2FeedbackEvaluationRequestBodyEvaluationType);
146
146
 
147
147
  /** @internal */
148
- export const PostV2FeedbackEvaluationRequestBodyRequestSource$outboundSchema:
149
- z.ZodNativeEnum<typeof PostV2FeedbackEvaluationRequestBodyRequestSource> = z
150
- .nativeEnum(PostV2FeedbackEvaluationRequestBodyRequestSource);
148
+ export const PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema:
149
+ z.ZodNativeEnum<typeof PostV2FeedbackEvaluationRequestBodyFeedbackSource> = z
150
+ .nativeEnum(PostV2FeedbackEvaluationRequestBodyFeedbackSource);
151
151
 
152
152
  /** @internal */
153
153
  export type RequestBody3$Outbound = {
@@ -171,9 +171,9 @@ export const RequestBody3$outboundSchema: z.ZodType<
171
171
  evaluationType:
172
172
  PostV2FeedbackEvaluationRequestBodyEvaluationType$outboundSchema,
173
173
  humanReviewId: z.string(),
174
- source: PostV2FeedbackEvaluationRequestBodyRequestSource$outboundSchema
174
+ source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
175
175
  .default("orq"),
176
- reviewedAt: z.date().default(() => new Date("2026-06-05T06:12:43.361Z"))
176
+ reviewedAt: z.date().default(() => new Date("2026-06-08T13:07:39.574Z"))
177
177
  .transform(v => v.toISOString()),
178
178
  type: z.literal("string_array"),
179
179
  values: z.array(z.string()),
@@ -202,7 +202,7 @@ export const PostV2FeedbackEvaluationRequestBodySource$outboundSchema:
202
202
  .nativeEnum(PostV2FeedbackEvaluationRequestBodySource);
203
203
 
204
204
  /** @internal */
205
- export type RequestBody2$Outbound = {
205
+ export type PostV2FeedbackEvaluationRequestBody2$Outbound = {
206
206
  id: string;
207
207
  evaluation_type: string;
208
208
  human_review_id: string;
@@ -214,10 +214,10 @@ export type RequestBody2$Outbound = {
214
214
  };
215
215
 
216
216
  /** @internal */
217
- export const RequestBody2$outboundSchema: z.ZodType<
218
- RequestBody2$Outbound,
217
+ export const PostV2FeedbackEvaluationRequestBody2$outboundSchema: z.ZodType<
218
+ PostV2FeedbackEvaluationRequestBody2$Outbound,
219
219
  z.ZodTypeDef,
220
- RequestBody2
220
+ PostV2FeedbackEvaluationRequestBody2
221
221
  > = z.object({
222
222
  id: z.string(),
223
223
  evaluationType: RequestBodyEvaluationType$outboundSchema,
@@ -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-05T06:12:43.360Z"))
228
+ reviewedAt: z.date().default(() => new Date("2026-06-08T13:07:39.574Z"))
229
229
  .transform(v => v.toISOString()),
230
230
  type: z.literal("number"),
231
231
  value: z.number(),
@@ -239,8 +239,14 @@ export const RequestBody2$outboundSchema: z.ZodType<
239
239
  });
240
240
  });
241
241
 
242
- export function requestBody2ToJSON(requestBody2: RequestBody2): string {
243
- return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
242
+ export function postV2FeedbackEvaluationRequestBody2ToJSON(
243
+ postV2FeedbackEvaluationRequestBody2: PostV2FeedbackEvaluationRequestBody2,
244
+ ): string {
245
+ return JSON.stringify(
246
+ PostV2FeedbackEvaluationRequestBody2$outboundSchema.parse(
247
+ postV2FeedbackEvaluationRequestBody2,
248
+ ),
249
+ );
244
250
  }
245
251
 
246
252
  /** @internal */
@@ -254,7 +260,7 @@ export const RequestBodySource$outboundSchema: z.ZodNativeEnum<
254
260
  > = z.nativeEnum(RequestBodySource);
255
261
 
256
262
  /** @internal */
257
- export type RequestBody1$Outbound = {
263
+ export type PostV2FeedbackEvaluationRequestBody1$Outbound = {
258
264
  id: string;
259
265
  evaluation_type: string;
260
266
  human_review_id: string;
@@ -266,16 +272,16 @@ export type RequestBody1$Outbound = {
266
272
  };
267
273
 
268
274
  /** @internal */
269
- export const RequestBody1$outboundSchema: z.ZodType<
270
- RequestBody1$Outbound,
275
+ export const PostV2FeedbackEvaluationRequestBody1$outboundSchema: z.ZodType<
276
+ PostV2FeedbackEvaluationRequestBody1$Outbound,
271
277
  z.ZodTypeDef,
272
- RequestBody1
278
+ PostV2FeedbackEvaluationRequestBody1
273
279
  > = z.object({
274
280
  id: z.string(),
275
281
  evaluationType: EvaluationType$outboundSchema,
276
282
  humanReviewId: z.string(),
277
283
  source: RequestBodySource$outboundSchema.default("orq"),
278
- reviewedAt: z.date().default(() => new Date("2026-06-05T06:12:43.359Z"))
284
+ reviewedAt: z.date().default(() => new Date("2026-06-08T13:07:39.573Z"))
279
285
  .transform(v => v.toISOString()),
280
286
  type: z.literal("string"),
281
287
  value: z.string(),
@@ -289,14 +295,20 @@ export const RequestBody1$outboundSchema: z.ZodType<
289
295
  });
290
296
  });
291
297
 
292
- export function requestBody1ToJSON(requestBody1: RequestBody1): string {
293
- return JSON.stringify(RequestBody1$outboundSchema.parse(requestBody1));
298
+ export function postV2FeedbackEvaluationRequestBody1ToJSON(
299
+ postV2FeedbackEvaluationRequestBody1: PostV2FeedbackEvaluationRequestBody1,
300
+ ): string {
301
+ return JSON.stringify(
302
+ PostV2FeedbackEvaluationRequestBody1$outboundSchema.parse(
303
+ postV2FeedbackEvaluationRequestBody1,
304
+ ),
305
+ );
294
306
  }
295
307
 
296
308
  /** @internal */
297
309
  export type PostV2FeedbackEvaluationRequestBody$Outbound =
298
- | RequestBody1$Outbound
299
- | RequestBody2$Outbound
310
+ | PostV2FeedbackEvaluationRequestBody1$Outbound
311
+ | PostV2FeedbackEvaluationRequestBody2$Outbound
300
312
  | RequestBody3$Outbound;
301
313
 
302
314
  /** @internal */
@@ -305,8 +317,8 @@ export const PostV2FeedbackEvaluationRequestBody$outboundSchema: z.ZodType<
305
317
  z.ZodTypeDef,
306
318
  PostV2FeedbackEvaluationRequestBody
307
319
  > = z.union([
308
- z.lazy(() => RequestBody1$outboundSchema),
309
- z.lazy(() => RequestBody2$outboundSchema),
320
+ z.lazy(() => PostV2FeedbackEvaluationRequestBody1$outboundSchema),
321
+ z.lazy(() => PostV2FeedbackEvaluationRequestBody2$outboundSchema),
310
322
  z.lazy(() => RequestBody3$outboundSchema),
311
323
  ]);
312
324
 
@@ -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-05T06:12:26.568Z",
274
+ "2026-06-08T13:07:17.066Z",
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-05T06:12:26.568Z",
319
+ "2026-06-08T13:07:17.066Z",
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-05T06:12:43.219Z",
1210
+ "2026-06-08T13:07:39.435Z",
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-05T06:12:43.219Z",
1258
+ "2026-06-08T13:07:39.434Z",
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-05T06:12:43.218Z",
1303
+ "2026-06-08T13:07:39.434Z",
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-05T06:12:26.568Z",
1380
+ "2026-06-08T13:07:17.066Z",
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-05T06:12:26.568Z",
129
+ "2026-06-08T13:07:17.066Z",
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("01KTB6K60HAJESYMW89KC8RYJJ"),
121
+ _id: z.string().default("01KTKNH3Q9HF3Q99C6RHZBWYJC"),
122
122
  display_name: z.string(),
123
123
  description: z.nullable(z.string()).optional(),
124
124
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -115,11 +115,11 @@ export type RetrieveToolResponseBodyCodeExecutionTool = {
115
115
  /**
116
116
  * The id of the user that created the tool
117
117
  */
118
- createdById?: string | undefined;
118
+ createdById?: string | null | undefined;
119
119
  /**
120
120
  * The id of the user that last updated the tool
121
121
  */
122
- updatedById?: string | undefined;
122
+ updatedById?: string | null | undefined;
123
123
  projectId: string;
124
124
  workspaceId: string;
125
125
  created: string;
@@ -241,11 +241,11 @@ export type RetrieveToolResponseBodyMCPTool = {
241
241
  /**
242
242
  * The id of the user that created the tool
243
243
  */
244
- createdById?: string | undefined;
244
+ createdById?: string | null | undefined;
245
245
  /**
246
246
  * The id of the user that last updated the tool
247
247
  */
248
- updatedById?: string | undefined;
248
+ updatedById?: string | null | undefined;
249
249
  projectId: string;
250
250
  workspaceId: string;
251
251
  created: string;
@@ -402,11 +402,11 @@ export type RetrieveToolResponseBodyHTTPTool = {
402
402
  /**
403
403
  * The id of the user that created the tool
404
404
  */
405
- createdById?: string | undefined;
405
+ createdById?: string | null | undefined;
406
406
  /**
407
407
  * The id of the user that last updated the tool
408
408
  */
409
- updatedById?: string | undefined;
409
+ updatedById?: string | null | undefined;
410
410
  projectId: string;
411
411
  workspaceId: string;
412
412
  created: string;
@@ -503,11 +503,11 @@ export type RetrieveToolResponseBodyJSONSchemaTool = {
503
503
  /**
504
504
  * The id of the user that created the tool
505
505
  */
506
- createdById?: string | undefined;
506
+ createdById?: string | null | undefined;
507
507
  /**
508
508
  * The id of the user that last updated the tool
509
509
  */
510
- updatedById?: string | undefined;
510
+ updatedById?: string | null | undefined;
511
511
  projectId: string;
512
512
  workspaceId: string;
513
513
  created: string;
@@ -618,11 +618,11 @@ export type RetrieveToolResponseBodyFunctionTool = {
618
618
  /**
619
619
  * The id of the user that created the tool
620
620
  */
621
- createdById?: string | undefined;
621
+ createdById?: string | null | undefined;
622
622
  /**
623
623
  * The id of the user that last updated the tool
624
624
  */
625
- updatedById?: string | undefined;
625
+ updatedById?: string | null | undefined;
626
626
  projectId: string;
627
627
  workspaceId: string;
628
628
  created: string;
@@ -753,13 +753,13 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
753
753
  z.ZodTypeDef,
754
754
  unknown
755
755
  > = z.object({
756
- _id: z.string().default("tool_01KTB6K5XDP8EHT1PEA2MEXJ2C"),
756
+ _id: z.string().default("tool_01KTKNH3M4F7JMRD2EC8E4CBBB"),
757
757
  path: z.string(),
758
758
  key: z.string(),
759
759
  display_name: z.string().optional(),
760
760
  description: z.string(),
761
- created_by_id: z.string().optional(),
762
- updated_by_id: z.string().optional(),
761
+ created_by_id: z.nullable(z.string()).optional(),
762
+ updated_by_id: z.nullable(z.string()).optional(),
763
763
  project_id: z.string(),
764
764
  workspace_id: z.string(),
765
765
  created: z.string(),
@@ -859,7 +859,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
859
859
  z.ZodTypeDef,
860
860
  unknown
861
861
  > = z.object({
862
- id: z.string().default("01KTB6K5XCEH44JJJYGWVXXQWM"),
862
+ id: z.string().default("01KTKNH3M32NSRAYHE1QJEX9XZ"),
863
863
  name: z.string(),
864
864
  description: z.string().optional(),
865
865
  schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
@@ -917,13 +917,13 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
917
917
  z.ZodTypeDef,
918
918
  unknown
919
919
  > = z.object({
920
- _id: z.string().default("tool_01KTB6K5XB0J89ZSZ21E03Y6TC"),
920
+ _id: z.string().default("tool_01KTKNH3M2DD0MJ6T341WTSV2X"),
921
921
  path: z.string(),
922
922
  key: z.string(),
923
923
  display_name: z.string().optional(),
924
924
  description: z.string(),
925
- created_by_id: z.string().optional(),
926
- updated_by_id: z.string().optional(),
925
+ created_by_id: z.nullable(z.string()).optional(),
926
+ updated_by_id: z.nullable(z.string()).optional(),
927
927
  project_id: z.string(),
928
928
  workspace_id: z.string(),
929
929
  created: z.string(),
@@ -1108,13 +1108,13 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
1108
1108
  z.ZodTypeDef,
1109
1109
  unknown
1110
1110
  > = z.object({
1111
- _id: z.string().default("tool_01KTB6K5X8C9ZSZ5CARXWQSK0P"),
1111
+ _id: z.string().default("tool_01KTKNH3M0R21XGT9RW2HEG6HN"),
1112
1112
  path: z.string(),
1113
1113
  key: z.string(),
1114
1114
  display_name: z.string().optional(),
1115
1115
  description: z.string(),
1116
- created_by_id: z.string().optional(),
1117
- updated_by_id: z.string().optional(),
1116
+ created_by_id: z.nullable(z.string()).optional(),
1117
+ updated_by_id: z.nullable(z.string()).optional(),
1118
1118
  project_id: z.string(),
1119
1119
  workspace_id: z.string(),
1120
1120
  created: z.string(),
@@ -1204,13 +1204,13 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
1204
1204
  z.ZodTypeDef,
1205
1205
  unknown
1206
1206
  > = z.object({
1207
- _id: z.string().default("tool_01KTB6K5X7DRNSPYPXXZ9NJPMQ"),
1207
+ _id: z.string().default("tool_01KTKNH3KY9YP24H3EF3CD547F"),
1208
1208
  path: z.string(),
1209
1209
  key: z.string(),
1210
1210
  display_name: z.string().optional(),
1211
1211
  description: z.string(),
1212
- created_by_id: z.string().optional(),
1213
- updated_by_id: z.string().optional(),
1212
+ created_by_id: z.nullable(z.string()).optional(),
1213
+ updated_by_id: z.nullable(z.string()).optional(),
1214
1214
  project_id: z.string(),
1215
1215
  workspace_id: z.string(),
1216
1216
  created: z.string(),
@@ -1310,13 +1310,13 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
1310
1310
  z.ZodTypeDef,
1311
1311
  unknown
1312
1312
  > = z.object({
1313
- _id: z.string().default("tool_01KTB6K5X5FXQWEAV3D6VK6VBF"),
1313
+ _id: z.string().default("tool_01KTKNH3KXRJA93F7G8EZYEHF7"),
1314
1314
  path: z.string(),
1315
1315
  key: z.string(),
1316
1316
  display_name: z.string().optional(),
1317
1317
  description: z.string(),
1318
- created_by_id: z.string().optional(),
1319
- updated_by_id: z.string().optional(),
1318
+ created_by_id: z.nullable(z.string()).optional(),
1319
+ updated_by_id: z.nullable(z.string()).optional(),
1320
1320
  project_id: z.string(),
1321
1321
  workspace_id: z.string(),
1322
1322
  created: z.string(),
@@ -23,6 +23,18 @@ export type RoutingRuleListRequest = {
23
23
  * Optional filter by project ID.
24
24
  */
25
25
  projectId?: string | undefined;
26
+ /**
27
+ * Optional search term matched against name and description.
28
+ */
29
+ search?: string | undefined;
30
+ /**
31
+ * Filter by enabled status.
32
+ */
33
+ enabled?: boolean | null | undefined;
34
+ /**
35
+ * Filter by referenced model refs (comma-separated).
36
+ */
37
+ model?: Array<string> | null | undefined;
26
38
  };
27
39
 
28
40
  /**
@@ -40,6 +52,9 @@ export type RoutingRuleListRequest$Outbound = {
40
52
  starting_after?: string | undefined;
41
53
  ending_before?: string | undefined;
42
54
  project_id?: string | undefined;
55
+ search?: string | undefined;
56
+ enabled?: boolean | null | undefined;
57
+ model?: Array<string> | null | undefined;
43
58
  };
44
59
 
45
60
  /** @internal */
@@ -52,6 +67,9 @@ export const RoutingRuleListRequest$outboundSchema: z.ZodType<
52
67
  startingAfter: z.string().optional(),
53
68
  endingBefore: z.string().optional(),
54
69
  projectId: z.string().optional(),
70
+ search: z.string().optional(),
71
+ enabled: z.nullable(z.boolean()).optional(),
72
+ model: z.nullable(z.array(z.string())).optional(),
55
73
  }).transform((v) => {
56
74
  return remap$(v, {
57
75
  startingAfter: "starting_after",
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * Used models retrieved successfully
12
+ */
13
+ export type RoutingRuleListUsedModelsResponseBody = {
14
+ models: Array<string> | null;
15
+ object: string;
16
+ };
17
+
18
+ /** @internal */
19
+ export const RoutingRuleListUsedModelsResponseBody$inboundSchema: z.ZodType<
20
+ RoutingRuleListUsedModelsResponseBody,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ models: z.nullable(z.array(z.string())),
25
+ object: z.string(),
26
+ });
27
+
28
+ export function routingRuleListUsedModelsResponseBodyFromJSON(
29
+ jsonString: string,
30
+ ): SafeParseResult<RoutingRuleListUsedModelsResponseBody, SDKValidationError> {
31
+ return safeParse(
32
+ jsonString,
33
+ (x) =>
34
+ RoutingRuleListUsedModelsResponseBody$inboundSchema.parse(JSON.parse(x)),
35
+ `Failed to parse 'RoutingRuleListUsedModelsResponseBody' from JSON`,
36
+ );
37
+ }
@@ -3626,7 +3626,7 @@ export const Tools$outboundSchema: z.ZodType<
3626
3626
  z.ZodTypeDef,
3627
3627
  Tools
3628
3628
  > = z.object({
3629
- id: z.string().default("01KTB6K5NG8NPZHS9C06MWF4FF"),
3629
+ id: z.string().default("01KTKNH3CPN1QZMENW1493XVFF"),
3630
3630
  name: z.string(),
3631
3631
  description: z.string().optional(),
3632
3632
  schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
@@ -3675,7 +3675,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
3675
3675
  z.ZodTypeDef,
3676
3676
  AgentToolInputRunTools
3677
3677
  > = z.object({
3678
- id: z.string().default("01KTB6K5PYYRZWTYZ0GFAS6EDH"),
3678
+ id: z.string().default("01KTKNH3E2VB9B1T40QQKNVW65"),
3679
3679
  name: z.string(),
3680
3680
  description: z.string().optional(),
3681
3681
  schema: z.lazy(() =>