@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
@@ -630,11 +630,11 @@ export type ResponseBodyCodeExecutionTool = {
630
630
  /**
631
631
  * The id of the user that created the tool
632
632
  */
633
- createdById?: string | undefined;
633
+ createdById?: string | null | undefined;
634
634
  /**
635
635
  * The id of the user that last updated the tool
636
636
  */
637
- updatedById?: string | undefined;
637
+ updatedById?: string | null | undefined;
638
638
  projectId: string;
639
639
  workspaceId: string;
640
640
  created: string;
@@ -754,11 +754,11 @@ export type ResponseBodyMCPTool = {
754
754
  /**
755
755
  * The id of the user that created the tool
756
756
  */
757
- createdById?: string | undefined;
757
+ createdById?: string | null | undefined;
758
758
  /**
759
759
  * The id of the user that last updated the tool
760
760
  */
761
- updatedById?: string | undefined;
761
+ updatedById?: string | null | undefined;
762
762
  projectId: string;
763
763
  workspaceId: string;
764
764
  created: string;
@@ -911,11 +911,11 @@ export type ResponseBodyHTTPTool = {
911
911
  /**
912
912
  * The id of the user that created the tool
913
913
  */
914
- createdById?: string | undefined;
914
+ createdById?: string | null | undefined;
915
915
  /**
916
916
  * The id of the user that last updated the tool
917
917
  */
918
- updatedById?: string | undefined;
918
+ updatedById?: string | null | undefined;
919
919
  projectId: string;
920
920
  workspaceId: string;
921
921
  created: string;
@@ -1012,11 +1012,11 @@ export type ResponseBodyJSONSchemaTool = {
1012
1012
  /**
1013
1013
  * The id of the user that created the tool
1014
1014
  */
1015
- createdById?: string | undefined;
1015
+ createdById?: string | null | undefined;
1016
1016
  /**
1017
1017
  * The id of the user that last updated the tool
1018
1018
  */
1019
- updatedById?: string | undefined;
1019
+ updatedById?: string | null | undefined;
1020
1020
  projectId: string;
1021
1021
  workspaceId: string;
1022
1022
  created: string;
@@ -1123,11 +1123,11 @@ export type ResponseBodyFunctionTool = {
1123
1123
  /**
1124
1124
  * The id of the user that created the tool
1125
1125
  */
1126
- createdById?: string | undefined;
1126
+ createdById?: string | null | undefined;
1127
1127
  /**
1128
1128
  * The id of the user that last updated the tool
1129
1129
  */
1130
- updatedById?: string | undefined;
1130
+ updatedById?: string | null | undefined;
1131
1131
  projectId: string;
1132
1132
  workspaceId: string;
1133
1133
  created: string;
@@ -1898,13 +1898,13 @@ 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_01KTKNH3JS307Q33APXZFP9WMB"),
1902
1902
  path: z.string(),
1903
1903
  key: z.string(),
1904
1904
  display_name: z.string().optional(),
1905
1905
  description: z.string(),
1906
- created_by_id: z.string().optional(),
1907
- updated_by_id: z.string().optional(),
1906
+ created_by_id: z.nullable(z.string()).optional(),
1907
+ updated_by_id: z.nullable(z.string()).optional(),
1908
1908
  project_id: z.string(),
1909
1909
  workspace_id: z.string(),
1910
1910
  created: z.string(),
@@ -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("01KTKNH3JRRK1GVXWT4S5D1W6K"),
1999
1999
  name: z.string(),
2000
2000
  description: z.string().optional(),
2001
2001
  schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
@@ -2051,13 +2051,13 @@ 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_01KTKNH3JPWD6EVJGQAVWCFXQX"),
2055
2055
  path: z.string(),
2056
2056
  key: z.string(),
2057
2057
  display_name: z.string().optional(),
2058
2058
  description: z.string(),
2059
- created_by_id: z.string().optional(),
2060
- updated_by_id: z.string().optional(),
2059
+ created_by_id: z.nullable(z.string()).optional(),
2060
+ updated_by_id: z.nullable(z.string()).optional(),
2061
2061
  project_id: z.string(),
2062
2062
  workspace_id: z.string(),
2063
2063
  created: z.string(),
@@ -2237,13 +2237,13 @@ 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_01KTKNH3JM5HA7TZVPCJGGC684"),
2241
2241
  path: z.string(),
2242
2242
  key: z.string(),
2243
2243
  display_name: z.string().optional(),
2244
2244
  description: z.string(),
2245
- created_by_id: z.string().optional(),
2246
- updated_by_id: z.string().optional(),
2245
+ created_by_id: z.nullable(z.string()).optional(),
2246
+ updated_by_id: z.nullable(z.string()).optional(),
2247
2247
  project_id: z.string(),
2248
2248
  workspace_id: z.string(),
2249
2249
  created: z.string(),
@@ -2330,13 +2330,13 @@ 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_01KTKNH3JK84Q0SWRTWVKERNA9"),
2334
2334
  path: z.string(),
2335
2335
  key: z.string(),
2336
2336
  display_name: z.string().optional(),
2337
2337
  description: z.string(),
2338
- created_by_id: z.string().optional(),
2339
- updated_by_id: z.string().optional(),
2338
+ created_by_id: z.nullable(z.string()).optional(),
2339
+ updated_by_id: z.nullable(z.string()).optional(),
2340
2340
  project_id: z.string(),
2341
2341
  workspace_id: z.string(),
2342
2342
  created: z.string(),
@@ -2431,13 +2431,13 @@ 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_01KTKNH3JHP4YRF6T5FPX1WEE2"),
2435
2435
  path: z.string(),
2436
2436
  key: z.string(),
2437
2437
  display_name: z.string().optional(),
2438
2438
  description: z.string(),
2439
- created_by_id: z.string().optional(),
2440
- updated_by_id: z.string().optional(),
2439
+ created_by_id: z.nullable(z.string()).optional(),
2440
+ updated_by_id: z.nullable(z.string()).optional(),
2441
2441
  project_id: z.string(),
2442
2442
  workspace_id: z.string(),
2443
2443
  created: z.string(),
@@ -128,11 +128,11 @@ export type DataCodeExecutionTool = {
128
128
  /**
129
129
  * The id of the user that created the tool
130
130
  */
131
- createdById?: string | undefined;
131
+ createdById?: string | null | undefined;
132
132
  /**
133
133
  * The id of the user that last updated the tool
134
134
  */
135
- updatedById?: string | undefined;
135
+ updatedById?: string | null | undefined;
136
136
  projectId: string;
137
137
  workspaceId: string;
138
138
  created: string;
@@ -252,11 +252,11 @@ export type DataMCPTool = {
252
252
  /**
253
253
  * The id of the user that created the tool
254
254
  */
255
- createdById?: string | undefined;
255
+ createdById?: string | null | undefined;
256
256
  /**
257
257
  * The id of the user that last updated the tool
258
258
  */
259
- updatedById?: string | undefined;
259
+ updatedById?: string | null | undefined;
260
260
  projectId: string;
261
261
  workspaceId: string;
262
262
  created: string;
@@ -409,11 +409,11 @@ export type DataHTTPTool = {
409
409
  /**
410
410
  * The id of the user that created the tool
411
411
  */
412
- createdById?: string | undefined;
412
+ createdById?: string | null | undefined;
413
413
  /**
414
414
  * The id of the user that last updated the tool
415
415
  */
416
- updatedById?: string | undefined;
416
+ updatedById?: string | null | undefined;
417
417
  projectId: string;
418
418
  workspaceId: string;
419
419
  created: string;
@@ -508,11 +508,11 @@ export type DataJSONSchemaTool = {
508
508
  /**
509
509
  * The id of the user that created the tool
510
510
  */
511
- createdById?: string | undefined;
511
+ createdById?: string | null | undefined;
512
512
  /**
513
513
  * The id of the user that last updated the tool
514
514
  */
515
- updatedById?: string | undefined;
515
+ updatedById?: string | null | undefined;
516
516
  projectId: string;
517
517
  workspaceId: string;
518
518
  created: string;
@@ -621,11 +621,11 @@ export type DataFunctionTool = {
621
621
  /**
622
622
  * The id of the user that created the tool
623
623
  */
624
- createdById?: string | undefined;
624
+ createdById?: string | null | undefined;
625
625
  /**
626
626
  * The id of the user that last updated the tool
627
627
  */
628
- updatedById?: string | undefined;
628
+ updatedById?: string | null | undefined;
629
629
  projectId: string;
630
630
  workspaceId: string;
631
631
  created: string;
@@ -767,13 +767,13 @@ 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_01KTKNH3J5C4ZG45Z5DHP9XGZ6"),
771
771
  path: z.string(),
772
772
  key: z.string(),
773
773
  display_name: z.string().optional(),
774
774
  description: z.string(),
775
- created_by_id: z.string().optional(),
776
- updated_by_id: z.string().optional(),
775
+ created_by_id: z.nullable(z.string()).optional(),
776
+ updated_by_id: z.nullable(z.string()).optional(),
777
777
  project_id: z.string(),
778
778
  workspace_id: z.string(),
779
779
  created: z.string(),
@@ -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("01KTKNH3J4SGYSVG64HA9J781Z"),
868
868
  name: z.string(),
869
869
  description: z.string().optional(),
870
870
  schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
@@ -917,13 +917,13 @@ 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_01KTKNH3J39KK469TG2ED48TMJ"),
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(),
@@ -1102,13 +1102,13 @@ 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_01KTKNH3J1F239D1SBNHREYWK7"),
1106
1106
  path: z.string(),
1107
1107
  key: z.string(),
1108
1108
  display_name: z.string().optional(),
1109
1109
  description: z.string(),
1110
- created_by_id: z.string().optional(),
1111
- updated_by_id: z.string().optional(),
1110
+ created_by_id: z.nullable(z.string()).optional(),
1111
+ updated_by_id: z.nullable(z.string()).optional(),
1112
1112
  project_id: z.string(),
1113
1113
  workspace_id: z.string(),
1114
1114
  created: z.string(),
@@ -1195,13 +1195,13 @@ 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_01KTKNH3HZ8JV7S39A9C6XSFZP"),
1199
1199
  path: z.string(),
1200
1200
  key: z.string(),
1201
1201
  display_name: z.string().optional(),
1202
1202
  description: z.string(),
1203
- created_by_id: z.string().optional(),
1204
- updated_by_id: z.string().optional(),
1203
+ created_by_id: z.nullable(z.string()).optional(),
1204
+ updated_by_id: z.nullable(z.string()).optional(),
1205
1205
  project_id: z.string(),
1206
1206
  workspace_id: z.string(),
1207
1207
  created: z.string(),
@@ -1297,13 +1297,13 @@ 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_01KTKNH3HXB32FX22DC8GKHAG0"),
1301
1301
  path: z.string(),
1302
1302
  key: z.string(),
1303
1303
  display_name: z.string().optional(),
1304
1304
  description: z.string(),
1305
- created_by_id: z.string().optional(),
1306
- updated_by_id: z.string().optional(),
1305
+ created_by_id: z.nullable(z.string()).optional(),
1306
+ updated_by_id: z.nullable(z.string()).optional(),
1307
1307
  project_id: z.string(),
1308
1308
  workspace_id: z.string(),
1309
1309
  created: z.string(),
@@ -759,10 +759,13 @@ export type GetEvalsLlm2 = {
759
759
  | null
760
760
  | undefined;
761
761
  type: GetEvalsLLMEvalsType;
762
- repetitions?: number | undefined;
762
+ repetitions?: number | null | undefined;
763
763
  prompt: string;
764
- categories?: Array<string> | undefined;
765
- categoricalLabels?: Array<GetEvalsLLMEvalsCategoricalLabels> | undefined;
764
+ categories?: Array<string> | null | undefined;
765
+ categoricalLabels?:
766
+ | Array<GetEvalsLLMEvalsCategoricalLabels>
767
+ | null
768
+ | undefined;
766
769
  datasetId?: string | undefined;
767
770
  key: string;
768
771
  mode: "jury";
@@ -837,10 +840,10 @@ export type GetEvalsLlm1 = {
837
840
  | null
838
841
  | undefined;
839
842
  type: GetEvalsLLMType;
840
- repetitions?: number | undefined;
843
+ repetitions?: number | null | undefined;
841
844
  prompt: string;
842
- categories?: Array<string> | undefined;
843
- categoricalLabels?: Array<GetEvalsLLMCategoricalLabels> | undefined;
845
+ categories?: Array<string> | null | undefined;
846
+ categoricalLabels?: Array<GetEvalsLLMCategoricalLabels> | null | undefined;
844
847
  datasetId?: string | undefined;
845
848
  key: string;
846
849
  mode: "single";
@@ -1067,8 +1070,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
1067
1070
  > = z.object({
1068
1071
  _id: z.string(),
1069
1072
  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"),
1073
+ created: z.string().default("2026-06-08T13:07:18.574Z"),
1074
+ updated: z.string().default("2026-06-08T13:07:18.574Z"),
1072
1075
  updated_by_id: z.nullable(z.string()).optional(),
1073
1076
  guardrail_config: z.nullable(
1074
1077
  z.union([
@@ -1249,8 +1252,8 @@ export const DataRagas$inboundSchema: z.ZodType<
1249
1252
  > = z.object({
1250
1253
  _id: z.string(),
1251
1254
  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"),
1255
+ created: z.string().default("2026-06-08T13:07:18.574Z"),
1256
+ updated: z.string().default("2026-06-08T13:07:18.574Z"),
1254
1257
  updated_by_id: z.nullable(z.string()).optional(),
1255
1258
  guardrail_config: z.nullable(
1256
1259
  z.union([
@@ -2081,8 +2084,8 @@ export const DataFunction$inboundSchema: z.ZodType<
2081
2084
  > = z.object({
2082
2085
  _id: z.string(),
2083
2086
  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"),
2087
+ created: z.string().default("2026-06-08T13:07:18.574Z"),
2088
+ updated: z.string().default("2026-06-08T13:07:18.574Z"),
2086
2089
  updated_by_id: z.nullable(z.string()).optional(),
2087
2090
  guardrail_config: z.nullable(
2088
2091
  z.union([
@@ -2265,8 +2268,8 @@ export const DataPython$inboundSchema: z.ZodType<
2265
2268
  > = z.object({
2266
2269
  _id: z.string(),
2267
2270
  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"),
2271
+ created: z.string().default("2026-06-08T13:07:18.574Z"),
2272
+ updated: z.string().default("2026-06-08T13:07:18.574Z"),
2270
2273
  updated_by_id: z.nullable(z.string()).optional(),
2271
2274
  guardrail_config: z.nullable(
2272
2275
  z.union([
@@ -2445,8 +2448,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
2445
2448
  > = z.object({
2446
2449
  _id: z.string(),
2447
2450
  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"),
2451
+ created: z.string().default("2026-06-08T13:07:18.574Z"),
2452
+ updated: z.string().default("2026-06-08T13:07:18.574Z"),
2450
2453
  updated_by_id: z.nullable(z.string()).optional(),
2451
2454
  guardrail_config: z.nullable(
2452
2455
  z.union([
@@ -2637,8 +2640,8 @@ export const DataJSON$inboundSchema: z.ZodType<
2637
2640
  > = z.object({
2638
2641
  _id: z.string(),
2639
2642
  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"),
2643
+ created: z.string().default("2026-06-08T13:07:18.574Z"),
2644
+ updated: z.string().default("2026-06-08T13:07:18.574Z"),
2642
2645
  updated_by_id: z.nullable(z.string()).optional(),
2643
2646
  guardrail_config: z.nullable(
2644
2647
  z.union([
@@ -3005,8 +3008,8 @@ export const GetEvalsLlm2$inboundSchema: z.ZodType<
3005
3008
  > = z.object({
3006
3009
  _id: z.string(),
3007
3010
  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"),
3011
+ created: z.string().default("2026-06-08T13:07:18.574Z"),
3012
+ updated: z.string().default("2026-06-08T13:07:18.574Z"),
3010
3013
  updated_by_id: z.nullable(z.string()).optional(),
3011
3014
  guardrail_config: z.nullable(
3012
3015
  z.union([
@@ -3022,11 +3025,11 @@ export const GetEvalsLlm2$inboundSchema: z.ZodType<
3022
3025
  ]),
3023
3026
  ).optional(),
3024
3027
  type: GetEvalsLLMEvalsType$inboundSchema,
3025
- repetitions: z.number().int().optional(),
3028
+ repetitions: z.nullable(z.number().int()).optional(),
3026
3029
  prompt: z.string(),
3027
- categories: z.array(z.string()).optional(),
3028
- categorical_labels: z.array(
3029
- z.lazy(() => GetEvalsLLMEvalsCategoricalLabels$inboundSchema),
3030
+ categories: z.nullable(z.array(z.string())).optional(),
3031
+ categorical_labels: z.nullable(
3032
+ z.array(z.lazy(() => GetEvalsLLMEvalsCategoricalLabels$inboundSchema)),
3030
3033
  ).optional(),
3031
3034
  dataset_id: z.string().optional(),
3032
3035
  key: z.string(),
@@ -3218,8 +3221,8 @@ export const GetEvalsLlm1$inboundSchema: z.ZodType<
3218
3221
  > = z.object({
3219
3222
  _id: z.string(),
3220
3223
  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"),
3224
+ created: z.string().default("2026-06-08T13:07:18.574Z"),
3225
+ updated: z.string().default("2026-06-08T13:07:18.574Z"),
3223
3226
  updated_by_id: z.nullable(z.string()).optional(),
3224
3227
  guardrail_config: z.nullable(
3225
3228
  z.union([
@@ -3235,11 +3238,11 @@ export const GetEvalsLlm1$inboundSchema: z.ZodType<
3235
3238
  ]),
3236
3239
  ).optional(),
3237
3240
  type: GetEvalsLLMType$inboundSchema,
3238
- repetitions: z.number().int().optional(),
3241
+ repetitions: z.nullable(z.number().int()).optional(),
3239
3242
  prompt: z.string(),
3240
- categories: z.array(z.string()).optional(),
3241
- categorical_labels: z.array(
3242
- z.lazy(() => GetEvalsLLMCategoricalLabels$inboundSchema),
3243
+ categories: z.nullable(z.array(z.string())).optional(),
3244
+ categorical_labels: z.nullable(
3245
+ z.array(z.lazy(() => GetEvalsLLMCategoricalLabels$inboundSchema)),
3243
3246
  ).optional(),
3244
3247
  dataset_id: z.string().optional(),
3245
3248
  key: z.string(),
@@ -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-08T13:07:17.066Z",
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-08T13:07:17.066Z",
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-08T13:07:17.066Z",
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-08T13:07:17.066Z",
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
 
@@ -0,0 +1,48 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Used guardrails retrieved successfully
13
+ */
14
+ export type GuardrailRuleListUsedGuardrailsResponseBody = {
15
+ guardrailIds: Array<string> | null;
16
+ object: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export const GuardrailRuleListUsedGuardrailsResponseBody$inboundSchema:
21
+ z.ZodType<
22
+ GuardrailRuleListUsedGuardrailsResponseBody,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ guardrail_ids: z.nullable(z.array(z.string())),
27
+ object: z.string(),
28
+ }).transform((v) => {
29
+ return remap$(v, {
30
+ "guardrail_ids": "guardrailIds",
31
+ });
32
+ });
33
+
34
+ export function guardrailRuleListUsedGuardrailsResponseBodyFromJSON(
35
+ jsonString: string,
36
+ ): SafeParseResult<
37
+ GuardrailRuleListUsedGuardrailsResponseBody,
38
+ SDKValidationError
39
+ > {
40
+ return safeParse(
41
+ jsonString,
42
+ (x) =>
43
+ GuardrailRuleListUsedGuardrailsResponseBody$inboundSchema.parse(
44
+ JSON.parse(x),
45
+ ),
46
+ `Failed to parse 'GuardrailRuleListUsedGuardrailsResponseBody' from JSON`,
47
+ );
48
+ }
@@ -81,6 +81,7 @@ export * from "./guardrailrulecreate.js";
81
81
  export * from "./guardrailruledelete.js";
82
82
  export * from "./guardrailruleget.js";
83
83
  export * from "./guardrailrulelist.js";
84
+ export * from "./guardrailrulelistusedguardrails.js";
84
85
  export * from "./guardrailruleupdate.js";
85
86
  export * from "./invokeagent.js";
86
87
  export * from "./invokeeval.js";
@@ -143,6 +144,7 @@ export * from "./routingrulecreate.js";
143
144
  export * from "./routingruledelete.js";
144
145
  export * from "./routingruleget.js";
145
146
  export * from "./routingrulelist.js";
147
+ export * from "./routingrulelistusedmodels.js";
146
148
  export * from "./routingruleupdate.js";
147
149
  export * from "./runagent.js";
148
150
  export * from "./searchknowledge.js";