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

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 (245) 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 +4 -4
  77. package/models/operations/createeval.d.ts.map +1 -1
  78. package/models/operations/createeval.js +20 -20
  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.js +6 -6
  85. package/models/operations/getalltools.js +6 -6
  86. package/models/operations/getevals.js +16 -16
  87. package/models/operations/getv2humanevalsets.js +2 -2
  88. package/models/operations/getv2humanevalsetsid.js +2 -2
  89. package/models/operations/guardrailrulelist.d.ts +35 -0
  90. package/models/operations/guardrailrulelist.d.ts.map +1 -1
  91. package/models/operations/guardrailrulelist.js +18 -1
  92. package/models/operations/guardrailrulelist.js.map +1 -1
  93. package/models/operations/guardrailrulelistusedguardrails.d.ts +14 -0
  94. package/models/operations/guardrailrulelistusedguardrails.d.ts.map +1 -0
  95. package/models/operations/guardrailrulelistusedguardrails.js +56 -0
  96. package/models/operations/guardrailrulelistusedguardrails.js.map +1 -0
  97. package/models/operations/index.d.ts +2 -0
  98. package/models/operations/index.d.ts.map +1 -1
  99. package/models/operations/index.js +2 -0
  100. package/models/operations/index.js.map +1 -1
  101. package/models/operations/listdatasetdatapoints.js +4 -4
  102. package/models/operations/listdatasets.js +1 -1
  103. package/models/operations/listdatasources.js +1 -1
  104. package/models/operations/patchv2humanevalsetsid.js +2 -2
  105. package/models/operations/postv2feedbackevaluation.d.ts +14 -14
  106. package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
  107. package/models/operations/postv2feedbackevaluation.js +18 -18
  108. package/models/operations/postv2feedbackevaluation.js.map +1 -1
  109. package/models/operations/postv2humanevalsets.js +2 -2
  110. package/models/operations/retrievedatapoint.js +4 -4
  111. package/models/operations/retrievedataset.js +1 -1
  112. package/models/operations/retrievedatasource.js +1 -1
  113. package/models/operations/retrievetool.js +6 -6
  114. package/models/operations/routingrulelist.d.ts +15 -0
  115. package/models/operations/routingrulelist.d.ts.map +1 -1
  116. package/models/operations/routingrulelist.js +3 -0
  117. package/models/operations/routingrulelist.js.map +1 -1
  118. package/models/operations/routingrulelistusedmodels.d.ts +14 -0
  119. package/models/operations/routingrulelistusedmodels.d.ts.map +1 -0
  120. package/models/operations/routingrulelistusedmodels.js +51 -0
  121. package/models/operations/routingrulelistusedmodels.js.map +1 -0
  122. package/models/operations/runagent.js +1 -1
  123. package/models/operations/streamrunagent.js +1 -1
  124. package/models/operations/updatedatapoint.js +4 -4
  125. package/models/operations/updatedataset.js +1 -1
  126. package/models/operations/updatedatasource.js +1 -1
  127. package/models/operations/updateeval.js +16 -16
  128. package/models/operations/updatetool.js +7 -7
  129. package/package.json +5 -5
  130. package/sdk/agents.d.ts +1 -1
  131. package/sdk/agents.d.ts.map +1 -1
  132. package/sdk/agents.js +3 -3
  133. package/sdk/agents.js.map +1 -1
  134. package/sdk/evals.d.ts +1 -1
  135. package/sdk/evals.d.ts.map +1 -1
  136. package/sdk/evals.js +3 -3
  137. package/sdk/evals.js.map +1 -1
  138. package/sdk/feedback.d.ts +10 -2
  139. package/sdk/feedback.d.ts.map +1 -1
  140. package/sdk/feedback.js +20 -6
  141. package/sdk/feedback.js.map +1 -1
  142. package/sdk/guardrailrules.d.ts +7 -0
  143. package/sdk/guardrailrules.d.ts.map +1 -1
  144. package/sdk/guardrailrules.js +10 -0
  145. package/sdk/guardrailrules.js.map +1 -1
  146. package/sdk/humanreviewsets.d.ts +5 -5
  147. package/sdk/humanreviewsets.d.ts.map +1 -1
  148. package/sdk/humanreviewsets.js +15 -15
  149. package/sdk/humanreviewsets.js.map +1 -1
  150. package/sdk/routingrules.d.ts +7 -0
  151. package/sdk/routingrules.d.ts.map +1 -1
  152. package/sdk/routingrules.js +10 -0
  153. package/sdk/routingrules.js.map +1 -1
  154. package/sdk/sdk.d.ts +1 -4
  155. package/sdk/sdk.d.ts.map +1 -1
  156. package/sdk/sdk.js +0 -9
  157. package/sdk/sdk.js.map +1 -1
  158. package/sdk/tools.d.ts +2 -2
  159. package/sdk/tools.d.ts.map +1 -1
  160. package/sdk/tools.js +6 -6
  161. package/sdk/tools.js.map +1 -1
  162. package/src/funcs/{agentsPostV2AgentsKeyCardRefresh.ts → agentsRefreshKeyCard.ts} +1 -1
  163. package/src/funcs/{evalsGetV2EvaluatorsIdVersions.ts → evalsListVersions.ts} +1 -1
  164. package/src/funcs/{feedbackPostV2Feedback.ts → feedbackCreate.ts} +1 -1
  165. package/src/funcs/{postV2FeedbackEvaluation.ts → feedbackCreateEvaluation.ts} +1 -1
  166. package/src/funcs/{feedbackPostV2FeedbackRemove.ts → feedbackRemove.ts} +1 -1
  167. package/src/funcs/{postV2FeedbackEvaluationRemove.ts → feedbackRemoveEvaluation.ts} +1 -1
  168. package/src/funcs/guardrailRulesList.ts +4 -0
  169. package/src/funcs/guardrailRulesListUsedGuardrails.ts +147 -0
  170. package/src/funcs/{humanReviewSetsPostV2HumanEvalSets.ts → humanReviewSetsCreate.ts} +1 -1
  171. package/src/funcs/{humanReviewSetsDeleteV2HumanEvalSetsId.ts → humanReviewSetsDelete.ts} +1 -1
  172. package/src/funcs/{humanReviewSetsGetV2HumanEvalSetsId.ts → humanReviewSetsGet.ts} +1 -1
  173. package/src/funcs/{humanReviewSetsGetV2HumanEvalSets.ts → humanReviewSetsList.ts} +1 -1
  174. package/src/funcs/{humanReviewSetsPatchV2HumanEvalSetsId.ts → humanReviewSetsUpdate.ts} +1 -1
  175. package/src/funcs/routingRulesList.ts +3 -0
  176. package/src/funcs/routingRulesListUsedModels.ts +144 -0
  177. package/src/funcs/{toolsGetV2ToolsToolIdVersionsVersionId.ts → toolsGetVersion.ts} +1 -1
  178. package/src/funcs/{toolsGetV2ToolsToolIdVersions.ts → toolsListVersions.ts} +1 -1
  179. package/src/lib/config.ts +2 -2
  180. package/src/models/components/createfilerequest.ts +1 -1
  181. package/src/models/components/reasoningpart.ts +1 -1
  182. package/src/models/operations/createdataset.ts +1 -1
  183. package/src/models/operations/createdatasetitem.ts +4 -4
  184. package/src/models/operations/createdatasource.ts +1 -1
  185. package/src/models/operations/createeval.ts +23 -25
  186. package/src/models/operations/createknowledge.ts +19 -33
  187. package/src/models/operations/createtool.ts +6 -6
  188. package/src/models/operations/getalltools.ts +6 -6
  189. package/src/models/operations/getevals.ts +16 -16
  190. package/src/models/operations/getv2humanevalsets.ts +2 -2
  191. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  192. package/src/models/operations/guardrailrulelist.ts +44 -0
  193. package/src/models/operations/guardrailrulelistusedguardrails.ts +48 -0
  194. package/src/models/operations/index.ts +2 -0
  195. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  196. package/src/models/operations/listdatasets.ts +1 -1
  197. package/src/models/operations/listdatasources.ts +1 -1
  198. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  199. package/src/models/operations/postv2feedbackevaluation.ts +43 -31
  200. package/src/models/operations/postv2humanevalsets.ts +2 -2
  201. package/src/models/operations/retrievedatapoint.ts +4 -4
  202. package/src/models/operations/retrievedataset.ts +1 -1
  203. package/src/models/operations/retrievedatasource.ts +1 -1
  204. package/src/models/operations/retrievetool.ts +6 -6
  205. package/src/models/operations/routingrulelist.ts +18 -0
  206. package/src/models/operations/routingrulelistusedmodels.ts +37 -0
  207. package/src/models/operations/runagent.ts +1 -1
  208. package/src/models/operations/streamrunagent.ts +1 -1
  209. package/src/models/operations/updatedatapoint.ts +4 -4
  210. package/src/models/operations/updatedataset.ts +1 -1
  211. package/src/models/operations/updatedatasource.ts +1 -1
  212. package/src/models/operations/updateeval.ts +16 -16
  213. package/src/models/operations/updatetool.ts +7 -7
  214. package/src/sdk/agents.ts +3 -3
  215. package/src/sdk/evals.ts +3 -3
  216. package/src/sdk/feedback.ts +36 -6
  217. package/src/sdk/guardrailrules.ts +16 -0
  218. package/src/sdk/humanreviewsets.ts +15 -15
  219. package/src/sdk/routingrules.ts +16 -0
  220. package/src/sdk/sdk.ts +1 -27
  221. package/src/sdk/tools.ts +6 -6
  222. package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts.map +0 -1
  223. package/funcs/agentsPostV2AgentsKeyCardRefresh.js.map +0 -1
  224. package/funcs/evalsGetV2EvaluatorsIdVersions.d.ts.map +0 -1
  225. package/funcs/evalsGetV2EvaluatorsIdVersions.js.map +0 -1
  226. package/funcs/feedbackPostV2Feedback.d.ts.map +0 -1
  227. package/funcs/feedbackPostV2Feedback.js.map +0 -1
  228. package/funcs/feedbackPostV2FeedbackRemove.d.ts.map +0 -1
  229. package/funcs/feedbackPostV2FeedbackRemove.js.map +0 -1
  230. package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.d.ts.map +0 -1
  231. package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.js.map +0 -1
  232. package/funcs/humanReviewSetsGetV2HumanEvalSets.d.ts.map +0 -1
  233. package/funcs/humanReviewSetsGetV2HumanEvalSets.js.map +0 -1
  234. package/funcs/humanReviewSetsGetV2HumanEvalSetsId.d.ts.map +0 -1
  235. package/funcs/humanReviewSetsGetV2HumanEvalSetsId.js.map +0 -1
  236. package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.d.ts.map +0 -1
  237. package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.js.map +0 -1
  238. package/funcs/humanReviewSetsPostV2HumanEvalSets.d.ts.map +0 -1
  239. package/funcs/humanReviewSetsPostV2HumanEvalSets.js.map +0 -1
  240. package/funcs/postV2FeedbackEvaluationRemove.d.ts.map +0 -1
  241. package/funcs/postV2FeedbackEvaluationRemove.js.map +0 -1
  242. package/funcs/toolsGetV2ToolsToolIdVersions.d.ts.map +0 -1
  243. package/funcs/toolsGetV2ToolsToolIdVersions.js.map +0 -1
  244. package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.d.ts.map +0 -1
  245. package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.js.map +0 -1
@@ -21,7 +21,7 @@ export type CreateFileRequest = {
21
21
  */
22
22
  contentType?: string | undefined;
23
23
  /**
24
- * Project the file is created in. Optional for project-scoped API keys (defaults to the key's bound project); required for workspace-scoped callers.
24
+ * Project the file is created in. Optional: project-scoped API keys default to the key's bound project; workspace-scoped callers default to the workspace's default project.
25
25
  */
26
26
  projectId?: string | undefined;
27
27
  };
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
40
40
  z.ZodTypeDef,
41
41
  unknown
42
42
  > = z.object({
43
- _id: z.string().default("reasoning_01ktb6k5hnyksmjd51bj2ftxx2"),
43
+ _id: z.string().default("reasoning_01ktjvkq9rh90r4gx90qcjrnwv"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
138
138
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
139
139
  .optional(),
140
140
  updated: z.string().datetime({ offset: true }).default(
141
- "2026-06-05T06:12:26.568Z",
141
+ "2026-06-08T05:34:18.893Z",
142
142
  ).transform(v => new Date(v)),
143
143
  }).transform((v) => {
144
144
  return remap$(v, {
@@ -2355,7 +2355,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
2355
2355
  ),
2356
2356
  reviewed_by_id: z.string(),
2357
2357
  reviewed_at: z.string().datetime({ offset: true }).default(
2358
- "2026-06-05T06:12:43.227Z",
2358
+ "2026-06-08T05:34:42.557Z",
2359
2359
  ).transform(v => new Date(v)),
2360
2360
  type: z.literal("string_array"),
2361
2361
  values: z.array(z.string()),
@@ -2400,7 +2400,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2400
2400
  source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
2401
2401
  reviewed_by_id: z.string(),
2402
2402
  reviewed_at: z.string().datetime({ offset: true }).default(
2403
- "2026-06-05T06:12:43.226Z",
2403
+ "2026-06-08T05:34:42.557Z",
2404
2404
  ).transform(v => new Date(v)),
2405
2405
  type: z.literal("number"),
2406
2406
  value: z.number(),
@@ -2446,7 +2446,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2446
2446
  source: EvaluationsSource$inboundSchema.default("orq"),
2447
2447
  reviewed_by_id: z.string(),
2448
2448
  reviewed_at: z.string().datetime({ offset: true }).default(
2449
- "2026-06-05T06:12:43.225Z",
2449
+ "2026-06-08T05:34:42.556Z",
2450
2450
  ).transform(v => new Date(v)),
2451
2451
  type: z.literal("string"),
2452
2452
  value: z.string(),
@@ -2529,7 +2529,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2529
2529
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2530
2530
  .optional(),
2531
2531
  updated: z.string().datetime({ offset: true }).default(
2532
- "2026-06-05T06:12:26.568Z",
2532
+ "2026-06-08T05:34:18.893Z",
2533
2533
  ).transform(v => new Date(v)),
2534
2534
  }).transform((v) => {
2535
2535
  return remap$(v, {
@@ -409,7 +409,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
409
409
  z.ZodTypeDef,
410
410
  unknown
411
411
  > = z.object({
412
- _id: z.string().default("01KTB6K60JRA6Z0WS8753R5G4Y"),
412
+ _id: z.string().default("01KTJVKQSKHEQGNGTCZ17Y5BQX"),
413
413
  display_name: z.string(),
414
414
  description: z.nullable(z.string()).optional(),
415
415
  status: CreateDatasourceStatus$inboundSchema,
@@ -54,12 +54,10 @@ export const OutputType = {
54
54
  } as const;
55
55
  export type OutputType = ClosedEnum<typeof OutputType>;
56
56
 
57
- export const CreateEvalRequestBodyType = {
57
+ export const RequestBodyType = {
58
58
  PythonEval: "python_eval",
59
59
  } as const;
60
- export type CreateEvalRequestBodyType = ClosedEnum<
61
- typeof CreateEvalRequestBodyType
62
- >;
60
+ export type RequestBodyType = ClosedEnum<typeof RequestBodyType>;
63
61
 
64
62
  export type Python = {
65
63
  guardrailConfig?:
@@ -70,7 +68,7 @@ export type Python = {
70
68
  | undefined;
71
69
  outputType?: OutputType | undefined;
72
70
  code: string;
73
- type: CreateEvalRequestBodyType;
71
+ type: RequestBodyType;
74
72
  /**
75
73
  * Entity storage path.
76
74
  *
@@ -1299,9 +1297,9 @@ export const OutputType$outboundSchema: z.ZodNativeEnum<typeof OutputType> = z
1299
1297
  .nativeEnum(OutputType);
1300
1298
 
1301
1299
  /** @internal */
1302
- export const CreateEvalRequestBodyType$outboundSchema: z.ZodNativeEnum<
1303
- typeof CreateEvalRequestBodyType
1304
- > = z.nativeEnum(CreateEvalRequestBodyType);
1300
+ export const RequestBodyType$outboundSchema: z.ZodNativeEnum<
1301
+ typeof RequestBodyType
1302
+ > = z.nativeEnum(RequestBodyType);
1305
1303
 
1306
1304
  /** @internal */
1307
1305
  export type Python$Outbound = {
@@ -1334,7 +1332,7 @@ export const Python$outboundSchema: z.ZodType<
1334
1332
  ).optional(),
1335
1333
  outputType: OutputType$outboundSchema.optional(),
1336
1334
  code: z.string(),
1337
- type: CreateEvalRequestBodyType$outboundSchema,
1335
+ type: RequestBodyType$outboundSchema,
1338
1336
  path: z.string(),
1339
1337
  description: z.string().default(""),
1340
1338
  key: z.string(),
@@ -2190,8 +2188,8 @@ export const Typescript$inboundSchema: z.ZodType<
2190
2188
  > = z.object({
2191
2189
  _id: z.string(),
2192
2190
  description: z.string(),
2193
- created: z.string().default("2026-06-05T06:12:28.028Z"),
2194
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
2191
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
2192
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
2195
2193
  updated_by_id: z.nullable(z.string()).optional(),
2196
2194
  guardrail_config: z.nullable(
2197
2195
  z.union([
@@ -2381,8 +2379,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
2381
2379
  .object({
2382
2380
  _id: z.string(),
2383
2381
  description: z.string(),
2384
- created: z.string().default("2026-06-05T06:12:28.028Z"),
2385
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
2382
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
2383
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
2386
2384
  updated_by_id: z.nullable(z.string()).optional(),
2387
2385
  guardrail_config: z.nullable(
2388
2386
  z.union([
@@ -3207,8 +3205,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
3207
3205
  > = z.object({
3208
3206
  _id: z.string(),
3209
3207
  description: z.string(),
3210
- created: z.string().default("2026-06-05T06:12:28.028Z"),
3211
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
3208
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
3209
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
3212
3210
  updated_by_id: z.nullable(z.string()).optional(),
3213
3211
  guardrail_config: z.nullable(
3214
3212
  z.union([
@@ -3427,8 +3425,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
3427
3425
  > = z.object({
3428
3426
  _id: z.string(),
3429
3427
  description: z.string(),
3430
- created: z.string().default("2026-06-05T06:12:28.028Z"),
3431
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
3428
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
3429
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
3432
3430
  updated_by_id: z.nullable(z.string()).optional(),
3433
3431
  guardrail_config: z.nullable(
3434
3432
  z.union([
@@ -3609,8 +3607,8 @@ export const CreateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
3609
3607
  > = z.object({
3610
3608
  _id: z.string(),
3611
3609
  description: z.string(),
3612
- created: z.string().default("2026-06-05T06:12:28.028Z"),
3613
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
3610
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
3611
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
3614
3612
  updated_by_id: z.nullable(z.string()).optional(),
3615
3613
  guardrail_config: z.nullable(
3616
3614
  z.union([
@@ -3769,8 +3767,8 @@ export const Json$inboundSchema: z.ZodType<Json, z.ZodTypeDef, unknown> = z
3769
3767
  .object({
3770
3768
  _id: z.string(),
3771
3769
  description: z.string(),
3772
- created: z.string().default("2026-06-05T06:12:28.028Z"),
3773
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
3770
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
3771
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
3774
3772
  updated_by_id: z.nullable(z.string()).optional(),
3775
3773
  guardrail_config: z.nullable(
3776
3774
  z.union([
@@ -4140,8 +4138,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
4140
4138
  > = z.object({
4141
4139
  _id: z.string(),
4142
4140
  description: z.string(),
4143
- created: z.string().default("2026-06-05T06:12:28.028Z"),
4144
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
4141
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
4142
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
4145
4143
  updated_by_id: z.nullable(z.string()).optional(),
4146
4144
  guardrail_config: z.nullable(
4147
4145
  z.union([
@@ -4360,8 +4358,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
4360
4358
  > = z.object({
4361
4359
  _id: z.string(),
4362
4360
  description: z.string(),
4363
- created: z.string().default("2026-06-05T06:12:28.028Z"),
4364
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
4361
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
4362
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
4365
4363
  updated_by_id: z.nullable(z.string()).optional(),
4366
4364
  guardrail_config: z.nullable(
4367
4365
  z.union([
@@ -31,7 +31,7 @@ export type ExternalConfig = {
31
31
  apiKey: string;
32
32
  };
33
33
 
34
- export type CreateKnowledgeRequestBody2 = {
34
+ export type RequestBody2 = {
35
35
  type?: CreateKnowledgeRequestBodyKnowledgeType | undefined;
36
36
  key: string;
37
37
  description?: string | undefined;
@@ -115,7 +115,7 @@ export type RetrievalSettings = {
115
115
  | undefined;
116
116
  };
117
117
 
118
- export type CreateKnowledgeRequestBody1 = {
118
+ export type RequestBody1 = {
119
119
  type?: CreateKnowledgeRequestBodyType | undefined;
120
120
  key: string;
121
121
  description?: string | undefined;
@@ -139,9 +139,7 @@ export type CreateKnowledgeRequestBody1 = {
139
139
  path: string;
140
140
  };
141
141
 
142
- export type CreateKnowledgeRequestBody =
143
- | CreateKnowledgeRequestBody1
144
- | CreateKnowledgeRequestBody2;
142
+ export type CreateKnowledgeRequestBody = RequestBody1 | RequestBody2;
145
143
 
146
144
  export const CreateKnowledgeResponseBodyKnowledgeType = {
147
145
  External: "external",
@@ -421,7 +419,7 @@ export function externalConfigToJSON(externalConfig: ExternalConfig): string {
421
419
  }
422
420
 
423
421
  /** @internal */
424
- export type CreateKnowledgeRequestBody2$Outbound = {
422
+ export type RequestBody2$Outbound = {
425
423
  type: string;
426
424
  key: string;
427
425
  description?: string | undefined;
@@ -429,10 +427,10 @@ export type CreateKnowledgeRequestBody2$Outbound = {
429
427
  };
430
428
 
431
429
  /** @internal */
432
- export const CreateKnowledgeRequestBody2$outboundSchema: z.ZodType<
433
- CreateKnowledgeRequestBody2$Outbound,
430
+ export const RequestBody2$outboundSchema: z.ZodType<
431
+ RequestBody2$Outbound,
434
432
  z.ZodTypeDef,
435
- CreateKnowledgeRequestBody2
433
+ RequestBody2
436
434
  > = z.object({
437
435
  type: CreateKnowledgeRequestBodyKnowledgeType$outboundSchema.default(
438
436
  "external",
@@ -446,14 +444,8 @@ export const CreateKnowledgeRequestBody2$outboundSchema: z.ZodType<
446
444
  });
447
445
  });
448
446
 
449
- export function createKnowledgeRequestBody2ToJSON(
450
- createKnowledgeRequestBody2: CreateKnowledgeRequestBody2,
451
- ): string {
452
- return JSON.stringify(
453
- CreateKnowledgeRequestBody2$outboundSchema.parse(
454
- createKnowledgeRequestBody2,
455
- ),
456
- );
447
+ export function requestBody2ToJSON(requestBody2: RequestBody2): string {
448
+ return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
457
449
  }
458
450
 
459
451
  /** @internal */
@@ -575,7 +567,7 @@ export function retrievalSettingsToJSON(
575
567
  }
576
568
 
577
569
  /** @internal */
578
- export type CreateKnowledgeRequestBody1$Outbound = {
570
+ export type RequestBody1$Outbound = {
579
571
  type: string;
580
572
  key: string;
581
573
  description?: string | undefined;
@@ -585,10 +577,10 @@ export type CreateKnowledgeRequestBody1$Outbound = {
585
577
  };
586
578
 
587
579
  /** @internal */
588
- export const CreateKnowledgeRequestBody1$outboundSchema: z.ZodType<
589
- CreateKnowledgeRequestBody1$Outbound,
580
+ export const RequestBody1$outboundSchema: z.ZodType<
581
+ RequestBody1$Outbound,
590
582
  z.ZodTypeDef,
591
- CreateKnowledgeRequestBody1
583
+ RequestBody1
592
584
  > = z.object({
593
585
  type: CreateKnowledgeRequestBodyType$outboundSchema.default("internal"),
594
586
  key: z.string(),
@@ -603,20 +595,14 @@ export const CreateKnowledgeRequestBody1$outboundSchema: z.ZodType<
603
595
  });
604
596
  });
605
597
 
606
- export function createKnowledgeRequestBody1ToJSON(
607
- createKnowledgeRequestBody1: CreateKnowledgeRequestBody1,
608
- ): string {
609
- return JSON.stringify(
610
- CreateKnowledgeRequestBody1$outboundSchema.parse(
611
- createKnowledgeRequestBody1,
612
- ),
613
- );
598
+ export function requestBody1ToJSON(requestBody1: RequestBody1): string {
599
+ return JSON.stringify(RequestBody1$outboundSchema.parse(requestBody1));
614
600
  }
615
601
 
616
602
  /** @internal */
617
603
  export type CreateKnowledgeRequestBody$Outbound =
618
- | CreateKnowledgeRequestBody1$Outbound
619
- | CreateKnowledgeRequestBody2$Outbound;
604
+ | RequestBody1$Outbound
605
+ | RequestBody2$Outbound;
620
606
 
621
607
  /** @internal */
622
608
  export const CreateKnowledgeRequestBody$outboundSchema: z.ZodType<
@@ -624,8 +610,8 @@ export const CreateKnowledgeRequestBody$outboundSchema: z.ZodType<
624
610
  z.ZodTypeDef,
625
611
  CreateKnowledgeRequestBody
626
612
  > = z.union([
627
- z.lazy(() => CreateKnowledgeRequestBody1$outboundSchema),
628
- z.lazy(() => CreateKnowledgeRequestBody2$outboundSchema),
613
+ z.lazy(() => RequestBody1$outboundSchema),
614
+ z.lazy(() => RequestBody2$outboundSchema),
629
615
  ]);
630
616
 
631
617
  export function createKnowledgeRequestBodyToJSON(
@@ -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_01KTB6K5VVP9Y0DJXTHV7MFPBZ"),
1901
+ _id: z.string().default("tool_01KTJVKQMV3TDHWK3ZP0A4E67T"),
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("01KTB6K5VT93J5GBW4P0P9C77R"),
1998
+ id: z.string().default("01KTJVKQMTY8MJA6A4GHA4E28W"),
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_01KTB6K5VS8VGF7EXJ8PKBYJRB"),
2054
+ _id: z.string().default("tool_01KTJVKQMS6RDFNDENWCK706F9"),
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_01KTB6K5VP86NF0JYQE0W6HT4X"),
2240
+ _id: z.string().default("tool_01KTJVKQMQ7XRZFNRTBT2V364B"),
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_01KTB6K5VNVXMAZS8BD3BHGHD5"),
2333
+ _id: z.string().default("tool_01KTJVKQMNCFVNA0T4QXP147E7"),
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_01KTB6K5VKY95570JJ0871NAPR"),
2434
+ _id: z.string().default("tool_01KTJVKQMJHDCWJQ3KMEZ18T6C"),
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_01KTB6K5V63ZJ25Y0R3HN3T3ZP"),
770
+ _id: z.string().default("tool_01KTJVKQM5JY3RD8H5ZED9ZV0B"),
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("01KTB6K5V5F5ZC4XW2WTTHM7RE"),
867
+ id: z.string().default("01KTJVKQM4Q2BVAPVK3MHHK350"),
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_01KTB6K5V40M1K9JSZRXF9CHJE"),
920
+ _id: z.string().default("tool_01KTJVKQM228K32S47SZZXQK67"),
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_01KTB6K5V1SJRN8HFQCS54ZSZE"),
1105
+ _id: z.string().default("tool_01KTJVKQM09GVDZZQ7GR03KP7H"),
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_01KTB6K5TZCTHCV7MS87616NGG"),
1198
+ _id: z.string().default("tool_01KTJVKQKYDC69012XZ0CABGBB"),
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_01KTB6K5TXWSC8YYB2GEKN0Z9V"),
1300
+ _id: z.string().default("tool_01KTJVKQKWBX2FKE71QB8EVRKG"),
1301
1301
  path: z.string(),
1302
1302
  key: z.string(),
1303
1303
  display_name: z.string().optional(),
@@ -1067,8 +1067,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
1067
1067
  > = z.object({
1068
1068
  _id: z.string(),
1069
1069
  description: z.string(),
1070
- created: z.string().default("2026-06-05T06:12:28.028Z"),
1071
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
1070
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
1071
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
1072
1072
  updated_by_id: z.nullable(z.string()).optional(),
1073
1073
  guardrail_config: z.nullable(
1074
1074
  z.union([
@@ -1249,8 +1249,8 @@ export const DataRagas$inboundSchema: z.ZodType<
1249
1249
  > = z.object({
1250
1250
  _id: z.string(),
1251
1251
  description: z.string(),
1252
- created: z.string().default("2026-06-05T06:12:28.028Z"),
1253
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
1252
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
1253
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
1254
1254
  updated_by_id: z.nullable(z.string()).optional(),
1255
1255
  guardrail_config: z.nullable(
1256
1256
  z.union([
@@ -2081,8 +2081,8 @@ export const DataFunction$inboundSchema: z.ZodType<
2081
2081
  > = z.object({
2082
2082
  _id: z.string(),
2083
2083
  description: z.string(),
2084
- created: z.string().default("2026-06-05T06:12:28.028Z"),
2085
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
2084
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
2085
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
2086
2086
  updated_by_id: z.nullable(z.string()).optional(),
2087
2087
  guardrail_config: z.nullable(
2088
2088
  z.union([
@@ -2265,8 +2265,8 @@ export const DataPython$inboundSchema: z.ZodType<
2265
2265
  > = z.object({
2266
2266
  _id: z.string(),
2267
2267
  description: z.string(),
2268
- created: z.string().default("2026-06-05T06:12:28.028Z"),
2269
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
2268
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
2269
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
2270
2270
  updated_by_id: z.nullable(z.string()).optional(),
2271
2271
  guardrail_config: z.nullable(
2272
2272
  z.union([
@@ -2445,8 +2445,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
2445
2445
  > = z.object({
2446
2446
  _id: z.string(),
2447
2447
  description: z.string(),
2448
- created: z.string().default("2026-06-05T06:12:28.028Z"),
2449
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
2448
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
2449
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
2450
2450
  updated_by_id: z.nullable(z.string()).optional(),
2451
2451
  guardrail_config: z.nullable(
2452
2452
  z.union([
@@ -2637,8 +2637,8 @@ export const DataJSON$inboundSchema: z.ZodType<
2637
2637
  > = z.object({
2638
2638
  _id: z.string(),
2639
2639
  description: z.string(),
2640
- created: z.string().default("2026-06-05T06:12:28.028Z"),
2641
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
2640
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
2641
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
2642
2642
  updated_by_id: z.nullable(z.string()).optional(),
2643
2643
  guardrail_config: z.nullable(
2644
2644
  z.union([
@@ -3005,8 +3005,8 @@ export const GetEvalsLlm2$inboundSchema: z.ZodType<
3005
3005
  > = z.object({
3006
3006
  _id: z.string(),
3007
3007
  description: z.string(),
3008
- created: z.string().default("2026-06-05T06:12:28.028Z"),
3009
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
3008
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
3009
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
3010
3010
  updated_by_id: z.nullable(z.string()).optional(),
3011
3011
  guardrail_config: z.nullable(
3012
3012
  z.union([
@@ -3218,8 +3218,8 @@ export const GetEvalsLlm1$inboundSchema: z.ZodType<
3218
3218
  > = z.object({
3219
3219
  _id: z.string(),
3220
3220
  description: z.string(),
3221
- created: z.string().default("2026-06-05T06:12:28.028Z"),
3222
- updated: z.string().default("2026-06-05T06:12:28.028Z"),
3221
+ created: z.string().default("2026-06-08T05:34:20.335Z"),
3222
+ updated: z.string().default("2026-06-08T05:34:20.335Z"),
3223
3223
  updated_by_id: z.nullable(z.string()).optional(),
3224
3224
  guardrail_config: z.nullable(
3225
3225
  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-05T06:12:26.568Z",
143
+ "2026-06-08T05:34:18.893Z",
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-05T06:12:26.568Z",
188
+ "2026-06-08T05:34:18.893Z",
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-05T06:12:26.568Z",
144
+ "2026-06-08T05:34:18.893Z",
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-05T06:12:26.568Z",
189
+ "2026-06-08T05:34:18.893Z",
190
190
  ).transform(v => new Date(v)),
191
191
  filter_type: z.literal("span_type"),
192
192
  filter_values: z.array(z.string()),
@@ -5,10 +5,24 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import * as components from "../components/index.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
 
13
+ /**
14
+ * Field to sort by. Defaults to created_at (newest first).
15
+ */
16
+ export const SortBy = {
17
+ CreatedAt: "created_at",
18
+ UpdatedAt: "updated_at",
19
+ DisplayName: "display_name",
20
+ } as const;
21
+ /**
22
+ * Field to sort by. Defaults to created_at (newest first).
23
+ */
24
+ export type SortBy = ClosedEnum<typeof SortBy>;
25
+
12
26
  export type GuardrailRuleListRequest = {
13
27
  limit?: number | undefined;
14
28
  /**
@@ -23,6 +37,22 @@ export type GuardrailRuleListRequest = {
23
37
  * Optional filter by project ID.
24
38
  */
25
39
  projectId?: string | undefined;
40
+ /**
41
+ * Filter by display name or description (case-insensitive).
42
+ */
43
+ search?: string | undefined;
44
+ /**
45
+ * Field to sort by. Defaults to created_at (newest first).
46
+ */
47
+ sortBy?: SortBy | undefined;
48
+ /**
49
+ * Filter by enabled status.
50
+ */
51
+ enabled?: boolean | null | undefined;
52
+ /**
53
+ * Filter by referenced guardrail ids (comma-separated).
54
+ */
55
+ guardrailId?: Array<string> | null | undefined;
26
56
  };
27
57
 
28
58
  /**
@@ -34,12 +64,20 @@ export type GuardrailRuleListResponseBody = {
34
64
  object: string;
35
65
  };
36
66
 
67
+ /** @internal */
68
+ export const SortBy$outboundSchema: z.ZodNativeEnum<typeof SortBy> = z
69
+ .nativeEnum(SortBy);
70
+
37
71
  /** @internal */
38
72
  export type GuardrailRuleListRequest$Outbound = {
39
73
  limit: number;
40
74
  starting_after?: string | undefined;
41
75
  ending_before?: string | undefined;
42
76
  project_id?: string | undefined;
77
+ search?: string | undefined;
78
+ sort_by?: string | undefined;
79
+ enabled?: boolean | null | undefined;
80
+ guardrail_id?: Array<string> | null | undefined;
43
81
  };
44
82
 
45
83
  /** @internal */
@@ -52,11 +90,17 @@ export const GuardrailRuleListRequest$outboundSchema: z.ZodType<
52
90
  startingAfter: z.string().optional(),
53
91
  endingBefore: z.string().optional(),
54
92
  projectId: z.string().optional(),
93
+ search: z.string().optional(),
94
+ sortBy: SortBy$outboundSchema.optional(),
95
+ enabled: z.nullable(z.boolean()).optional(),
96
+ guardrailId: z.nullable(z.array(z.string())).optional(),
55
97
  }).transform((v) => {
56
98
  return remap$(v, {
57
99
  startingAfter: "starting_after",
58
100
  endingBefore: "ending_before",
59
101
  projectId: "project_id",
102
+ sortBy: "sort_by",
103
+ guardrailId: "guardrail_id",
60
104
  });
61
105
  });
62
106