@orq-ai/node 4.11.3 → 4.11.9

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 (278) hide show
  1. package/README.md +40 -36
  2. package/funcs/modelsImportLitellm.d.ts +17 -0
  3. package/funcs/modelsImportLitellm.d.ts.map +1 -0
  4. package/funcs/modelsImportLitellm.js +118 -0
  5. package/funcs/modelsImportLitellm.js.map +1 -0
  6. package/funcs/modelsListLitellm.d.ts +18 -0
  7. package/funcs/modelsListLitellm.d.ts.map +1 -0
  8. package/funcs/modelsListLitellm.js +105 -0
  9. package/funcs/modelsListLitellm.js.map +1 -0
  10. package/jsr.json +1 -1
  11. package/lib/config.d.ts +3 -3
  12. package/lib/config.js +3 -3
  13. package/lib/http.d.ts +1 -1
  14. package/lib/http.d.ts.map +1 -1
  15. package/lib/http.js +1 -1
  16. package/lib/http.js.map +1 -1
  17. package/lib/security.d.ts +5 -4
  18. package/lib/security.d.ts.map +1 -1
  19. package/lib/security.js +6 -7
  20. package/lib/security.js.map +1 -1
  21. package/models/components/evaluatorresponsefunction.js +2 -2
  22. package/models/components/evaluatorresponsehttp.js +2 -2
  23. package/models/components/evaluatorresponsejsonschema.js +2 -2
  24. package/models/components/evaluatorresponsellm.js +2 -2
  25. package/models/components/evaluatorresponsepython.js +2 -2
  26. package/models/components/evaluatorresponseragas.js +2 -2
  27. package/models/components/evaluatorresponsetypescript.js +2 -2
  28. package/models/components/index.d.ts +4 -0
  29. package/models/components/index.d.ts.map +1 -1
  30. package/models/components/index.js +4 -0
  31. package/models/components/index.js.map +1 -1
  32. package/models/components/litellmmodel.d.ts +18 -0
  33. package/models/components/litellmmodel.d.ts.map +1 -0
  34. package/models/components/litellmmodel.js +60 -0
  35. package/models/components/litellmmodel.js.map +1 -0
  36. package/models/components/litellmmodelinfo.d.ts +44 -0
  37. package/models/components/litellmmodelinfo.d.ts.map +1 -0
  38. package/models/components/litellmmodelinfo.js +83 -0
  39. package/models/components/litellmmodelinfo.js.map +1 -0
  40. package/models/components/litellmparams.d.ts +18 -0
  41. package/models/components/litellmparams.d.ts.map +1 -0
  42. package/models/components/litellmparams.js +59 -0
  43. package/models/components/litellmparams.js.map +1 -0
  44. package/models/components/modeldocument.d.ts +39 -0
  45. package/models/components/modeldocument.d.ts.map +1 -0
  46. package/models/components/modeldocument.js +99 -0
  47. package/models/components/modeldocument.js.map +1 -0
  48. package/models/components/reasoningpart.js +1 -1
  49. package/models/operations/createdataset.js +1 -1
  50. package/models/operations/createdatasetitem.js +4 -4
  51. package/models/operations/createdatasource.js +1 -1
  52. package/models/operations/createprompt.d.ts +3 -0
  53. package/models/operations/createprompt.d.ts.map +1 -1
  54. package/models/operations/createprompt.js +3 -0
  55. package/models/operations/createprompt.js.map +1 -1
  56. package/models/operations/createtool.js +6 -6
  57. package/models/operations/deploymentinvoke.d.ts +3 -0
  58. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  59. package/models/operations/deploymentinvoke.js +3 -0
  60. package/models/operations/deploymentinvoke.js.map +1 -1
  61. package/models/operations/deployments.d.ts +3 -0
  62. package/models/operations/deployments.d.ts.map +1 -1
  63. package/models/operations/deployments.js +3 -0
  64. package/models/operations/deployments.js.map +1 -1
  65. package/models/operations/deploymentstream.d.ts +3 -0
  66. package/models/operations/deploymentstream.d.ts.map +1 -1
  67. package/models/operations/deploymentstream.js +3 -0
  68. package/models/operations/deploymentstream.js.map +1 -1
  69. package/models/operations/getallprompts.d.ts +3 -0
  70. package/models/operations/getallprompts.d.ts.map +1 -1
  71. package/models/operations/getallprompts.js +3 -0
  72. package/models/operations/getallprompts.js.map +1 -1
  73. package/models/operations/getalltools.js +6 -6
  74. package/models/operations/getoneprompt.d.ts +3 -0
  75. package/models/operations/getoneprompt.d.ts.map +1 -1
  76. package/models/operations/getoneprompt.js +3 -0
  77. package/models/operations/getoneprompt.js.map +1 -1
  78. package/models/operations/getpromptversion.d.ts +3 -0
  79. package/models/operations/getpromptversion.d.ts.map +1 -1
  80. package/models/operations/getpromptversion.js +3 -0
  81. package/models/operations/getpromptversion.js.map +1 -1
  82. package/models/operations/getv2humanevalsets.js +2 -2
  83. package/models/operations/getv2humanevalsetsid.js +2 -2
  84. package/models/operations/invokeeval.d.ts +1 -1
  85. package/models/operations/invokeeval.d.ts.map +1 -1
  86. package/models/operations/invokeeval.js +1 -1
  87. package/models/operations/invokeeval.js.map +1 -1
  88. package/models/operations/listdatasetdatapoints.js +4 -4
  89. package/models/operations/listdatasets.js +1 -1
  90. package/models/operations/listdatasources.js +1 -1
  91. package/models/operations/listpromptversions.d.ts +3 -0
  92. package/models/operations/listpromptversions.d.ts.map +1 -1
  93. package/models/operations/listpromptversions.js +3 -0
  94. package/models/operations/listpromptversions.js.map +1 -1
  95. package/models/operations/patchv2humanevalsetsid.js +2 -2
  96. package/models/operations/postv2feedbackevaluation.js +3 -3
  97. package/models/operations/postv2humanevalsets.js +2 -2
  98. package/models/operations/retrievedatapoint.js +4 -4
  99. package/models/operations/retrievedataset.js +1 -1
  100. package/models/operations/retrievedatasource.js +1 -1
  101. package/models/operations/retrievetool.js +6 -6
  102. package/models/operations/runagent.js +1 -1
  103. package/models/operations/streamrunagent.js +1 -1
  104. package/models/operations/updatedatapoint.js +4 -4
  105. package/models/operations/updatedataset.js +1 -1
  106. package/models/operations/updatedatasource.js +1 -1
  107. package/models/operations/updateprompt.d.ts +3 -0
  108. package/models/operations/updateprompt.d.ts.map +1 -1
  109. package/models/operations/updateprompt.js +3 -0
  110. package/models/operations/updateprompt.js.map +1 -1
  111. package/models/operations/updatetool.js +7 -7
  112. package/package.json +6 -6
  113. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +2 -0
  114. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +2 -0
  115. package/packages/orq-rc/src/funcs/modelsImportLitellm.ts +166 -0
  116. package/packages/orq-rc/src/funcs/modelsListLitellm.ts +144 -0
  117. package/packages/orq-rc/src/funcs/notifiersList.ts +2 -0
  118. package/packages/orq-rc/src/funcs/reportingQuery.ts +3 -1
  119. package/packages/orq-rc/src/funcs/telemetryQuery.ts +162 -0
  120. package/packages/orq-rc/src/funcs/tracesAggregate.ts +3 -1
  121. package/packages/orq-rc/src/lib/config.ts +3 -3
  122. package/packages/orq-rc/src/lib/http.ts +3 -1
  123. package/packages/orq-rc/src/lib/security.ts +10 -5
  124. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +6 -0
  125. package/packages/orq-rc/src/models/components/apikey.ts +6 -0
  126. package/packages/orq-rc/src/models/components/budget.ts +6 -0
  127. package/packages/orq-rc/src/models/components/budgetalert.ts +92 -0
  128. package/packages/orq-rc/src/models/components/budgetalertdimension.ts +22 -0
  129. package/packages/orq-rc/src/models/components/config.ts +44 -0
  130. package/packages/orq-rc/src/models/components/createbudgetrequest.ts +14 -0
  131. package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +2 -2
  132. package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +2 -2
  133. package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  134. package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +2 -2
  135. package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +2 -2
  136. package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +2 -2
  137. package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +2 -2
  138. package/packages/orq-rc/src/models/components/filepurpose.ts +1 -0
  139. package/packages/orq-rc/src/models/components/identity.ts +6 -0
  140. package/packages/orq-rc/src/models/components/index.ts +11 -0
  141. package/packages/orq-rc/src/models/components/litellmmodel.ts +50 -0
  142. package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +97 -0
  143. package/packages/orq-rc/src/models/components/litellmparams.ts +43 -0
  144. package/packages/orq-rc/src/models/components/modeldocument.ts +115 -0
  145. package/packages/orq-rc/src/models/components/modelsconfig.ts +1 -0
  146. package/packages/orq-rc/src/models/components/querytelemetrymeta.ts +38 -0
  147. package/packages/orq-rc/src/models/components/querytelemetryrequest.ts +85 -0
  148. package/packages/orq-rc/src/models/components/querytelemetryresponse.ts +42 -0
  149. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  150. package/packages/orq-rc/src/models/components/telemetryrow.ts +42 -0
  151. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +1 -0
  152. package/packages/orq-rc/src/models/components/updatebudgetrequest.ts +21 -0
  153. package/packages/orq-rc/src/models/operations/createagentrequest.ts +127 -40
  154. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +1 -0
  155. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  156. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +237 -19
  157. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  158. package/packages/orq-rc/src/models/operations/createeval.ts +179 -175
  159. package/packages/orq-rc/src/models/operations/createknowledge.ts +18 -10
  160. package/packages/orq-rc/src/models/operations/createprompt.ts +6 -0
  161. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +127 -26
  162. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  163. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1 -0
  164. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +3 -0
  165. package/packages/orq-rc/src/models/operations/deployments.ts +4 -0
  166. package/packages/orq-rc/src/models/operations/deploymentstream.ts +3 -0
  167. package/packages/orq-rc/src/models/operations/getallmemories.ts +1 -1
  168. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +1 -1
  169. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +1 -1
  170. package/packages/orq-rc/src/models/operations/getallprompts.ts +6 -1
  171. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  172. package/packages/orq-rc/src/models/operations/getevals.ts +1 -1
  173. package/packages/orq-rc/src/models/operations/getoneprompt.ts +5 -0
  174. package/packages/orq-rc/src/models/operations/getpromptversion.ts +5 -0
  175. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +1 -1
  176. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  177. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  178. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +1 -1
  179. package/packages/orq-rc/src/models/operations/invokeeval.ts +2 -2
  180. package/packages/orq-rc/src/models/operations/listagents.ts +8 -0
  181. package/packages/orq-rc/src/models/operations/listchunks.ts +1 -1
  182. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +314 -85
  183. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  184. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  185. package/packages/orq-rc/src/models/operations/listpromptversions.ts +6 -1
  186. package/packages/orq-rc/src/models/operations/modelcreate.ts +2 -0
  187. package/packages/orq-rc/src/models/operations/modelcreateautorouter.ts +2 -0
  188. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +2 -0
  189. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +2 -0
  190. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +2 -0
  191. package/packages/orq-rc/src/models/operations/modelupdate.ts +2 -0
  192. package/packages/orq-rc/src/models/operations/modelupdateautorouter.ts +2 -0
  193. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +2 -0
  194. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +2 -0
  195. package/packages/orq-rc/src/models/operations/notifierlist.ts +13 -0
  196. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  197. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +119 -11
  198. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  199. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +8 -0
  200. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +234 -9
  201. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  202. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  203. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  204. package/packages/orq-rc/src/models/operations/runagent.ts +95 -33
  205. package/packages/orq-rc/src/models/operations/streamrunagent.ts +101 -33
  206. package/packages/orq-rc/src/models/operations/updateagent.ts +129 -40
  207. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +229 -9
  208. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  209. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  210. package/packages/orq-rc/src/models/operations/updateprompt.ts +6 -0
  211. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  212. package/packages/orq-rc/src/sdk/feedback.ts +2 -2
  213. package/packages/orq-rc/src/sdk/humanreviewsets.ts +4 -1
  214. package/packages/orq-rc/src/sdk/models.ts +35 -0
  215. package/packages/orq-rc/src/sdk/orqresponses.ts +4 -0
  216. package/packages/orq-rc/src/sdk/reporting.ts +3 -1
  217. package/packages/orq-rc/src/sdk/sdk.ts +6 -0
  218. package/packages/orq-rc/src/sdk/telemetry.ts +27 -0
  219. package/packages/orq-rc/src/sdk/traces.ts +3 -1
  220. package/sdk/feedback.d.ts +2 -2
  221. package/sdk/feedback.js +2 -2
  222. package/sdk/models.d.ts +17 -0
  223. package/sdk/models.d.ts.map +1 -1
  224. package/sdk/models.js +20 -0
  225. package/sdk/models.js.map +1 -1
  226. package/src/funcs/modelsImportLitellm.ts +166 -0
  227. package/src/funcs/modelsListLitellm.ts +144 -0
  228. package/src/lib/config.ts +3 -3
  229. package/src/lib/http.ts +3 -1
  230. package/src/lib/security.ts +10 -5
  231. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  232. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  233. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  234. package/src/models/components/evaluatorresponsellm.ts +2 -2
  235. package/src/models/components/evaluatorresponsepython.ts +2 -2
  236. package/src/models/components/evaluatorresponseragas.ts +2 -2
  237. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  238. package/src/models/components/index.ts +4 -0
  239. package/src/models/components/litellmmodel.ts +50 -0
  240. package/src/models/components/litellmmodelinfo.ts +97 -0
  241. package/src/models/components/litellmparams.ts +43 -0
  242. package/src/models/components/modeldocument.ts +112 -0
  243. package/src/models/components/reasoningpart.ts +1 -1
  244. package/src/models/operations/createdataset.ts +1 -1
  245. package/src/models/operations/createdatasetitem.ts +4 -4
  246. package/src/models/operations/createdatasource.ts +1 -1
  247. package/src/models/operations/createprompt.ts +3 -0
  248. package/src/models/operations/createtool.ts +6 -6
  249. package/src/models/operations/deploymentinvoke.ts +3 -0
  250. package/src/models/operations/deployments.ts +3 -0
  251. package/src/models/operations/deploymentstream.ts +3 -0
  252. package/src/models/operations/getallprompts.ts +3 -0
  253. package/src/models/operations/getalltools.ts +6 -6
  254. package/src/models/operations/getoneprompt.ts +3 -0
  255. package/src/models/operations/getpromptversion.ts +3 -0
  256. package/src/models/operations/getv2humanevalsets.ts +2 -2
  257. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  258. package/src/models/operations/invokeeval.ts +2 -2
  259. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  260. package/src/models/operations/listdatasets.ts +1 -1
  261. package/src/models/operations/listdatasources.ts +1 -1
  262. package/src/models/operations/listpromptversions.ts +3 -0
  263. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  264. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  265. package/src/models/operations/postv2humanevalsets.ts +2 -2
  266. package/src/models/operations/retrievedatapoint.ts +4 -4
  267. package/src/models/operations/retrievedataset.ts +1 -1
  268. package/src/models/operations/retrievedatasource.ts +1 -1
  269. package/src/models/operations/retrievetool.ts +6 -6
  270. package/src/models/operations/runagent.ts +1 -1
  271. package/src/models/operations/streamrunagent.ts +1 -1
  272. package/src/models/operations/updatedatapoint.ts +4 -4
  273. package/src/models/operations/updatedataset.ts +1 -1
  274. package/src/models/operations/updatedatasource.ts +1 -1
  275. package/src/models/operations/updateprompt.ts +3 -0
  276. package/src/models/operations/updatetool.ts +7 -7
  277. package/src/sdk/feedback.ts +2 -2
  278. package/src/sdk/models.ts +35 -0
@@ -750,6 +750,123 @@ export type UpdateDatapointDatasetsMessages =
750
750
  | UpdateDatapointMessagesDatasetsAssistantMessage
751
751
  | UpdateDatapointMessagesDatasetsToolMessage;
752
752
 
753
+ /**
754
+ * The type of evaluation
755
+ */
756
+ export const UpdateDatapointEvaluationsDatasetsResponse200EvaluationType = {
757
+ HumanReview: "human_review",
758
+ } as const;
759
+ /**
760
+ * The type of evaluation
761
+ */
762
+ export type UpdateDatapointEvaluationsDatasetsResponse200EvaluationType =
763
+ ClosedEnum<
764
+ typeof UpdateDatapointEvaluationsDatasetsResponse200EvaluationType
765
+ >;
766
+
767
+ export const UpdateDatapointEvaluationsDatasetsResponse200Source = {
768
+ Orq: "orq",
769
+ External: "external",
770
+ } as const;
771
+ export type UpdateDatapointEvaluationsDatasetsResponse200Source = ClosedEnum<
772
+ typeof UpdateDatapointEvaluationsDatasetsResponse200Source
773
+ >;
774
+
775
+ /**
776
+ * The kind of annotator that produced the evaluation
777
+ */
778
+ export const UpdateDatapointEvaluationsDatasetsResponse200Kind = {
779
+ Llm: "llm",
780
+ Code: "code",
781
+ Human: "human",
782
+ Automation: "automation",
783
+ } as const;
784
+ /**
785
+ * The kind of annotator that produced the evaluation
786
+ */
787
+ export type UpdateDatapointEvaluationsDatasetsResponse200Kind = ClosedEnum<
788
+ typeof UpdateDatapointEvaluationsDatasetsResponse200Kind
789
+ >;
790
+
791
+ /**
792
+ * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
793
+ */
794
+ export type UpdateDatapointEvaluationsDatasetsResponse200Annotator = {
795
+ /**
796
+ * The kind of annotator that produced the evaluation
797
+ */
798
+ kind: UpdateDatapointEvaluationsDatasetsResponse200Kind;
799
+ /**
800
+ * Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
801
+ */
802
+ actorId: string;
803
+ };
804
+
805
+ /**
806
+ * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
807
+ */
808
+ export const UpdateDatapointEvaluationsDatasetsResponse200OutputSchema = {
809
+ Boolean: "boolean",
810
+ Number: "number",
811
+ Categorical: "categorical",
812
+ String: "string",
813
+ } as const;
814
+ /**
815
+ * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
816
+ */
817
+ export type UpdateDatapointEvaluationsDatasetsResponse200OutputSchema =
818
+ ClosedEnum<typeof UpdateDatapointEvaluationsDatasetsResponse200OutputSchema>;
819
+
820
+ export type UpdateDatapointEvaluations4 = {
821
+ /**
822
+ * The unique identifier of the human evaluation
823
+ */
824
+ id: string;
825
+ /**
826
+ * The type of evaluation
827
+ */
828
+ evaluationType: UpdateDatapointEvaluationsDatasetsResponse200EvaluationType;
829
+ /**
830
+ * The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
831
+ */
832
+ humanReviewId?: string | undefined;
833
+ source: UpdateDatapointEvaluationsDatasetsResponse200Source;
834
+ /**
835
+ * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
836
+ */
837
+ annotator?:
838
+ | UpdateDatapointEvaluationsDatasetsResponse200Annotator
839
+ | undefined;
840
+ /**
841
+ * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
842
+ */
843
+ outputSchema?:
844
+ | UpdateDatapointEvaluationsDatasetsResponse200OutputSchema
845
+ | undefined;
846
+ /**
847
+ * When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
848
+ */
849
+ parentAnnotationId?: string | undefined;
850
+ /**
851
+ * Optional free-text explanation of the value
852
+ */
853
+ explanation?: string | undefined;
854
+ /**
855
+ * Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
856
+ *
857
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
858
+ */
859
+ reviewedById: string;
860
+ /**
861
+ * Deprecated. The date and time the item was reviewed
862
+ *
863
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
864
+ */
865
+ reviewedAt: Date;
866
+ type: "string_array";
867
+ values: Array<string>;
868
+ };
869
+
753
870
  /**
754
871
  * The type of evaluation
755
872
  */
@@ -860,8 +977,8 @@ export type UpdateDatapointEvaluations3 = {
860
977
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
861
978
  */
862
979
  reviewedAt: Date;
863
- type: "string_array";
864
- values: Array<string>;
980
+ type: "boolean";
981
+ value: boolean;
865
982
  };
866
983
 
867
984
  /**
@@ -1093,7 +1210,8 @@ export type UpdateDatapointEvaluations1 = {
1093
1210
  export type UpdateDatapointEvaluations =
1094
1211
  | UpdateDatapointEvaluations1
1095
1212
  | UpdateDatapointEvaluations2
1096
- | UpdateDatapointEvaluations3;
1213
+ | UpdateDatapointEvaluations3
1214
+ | UpdateDatapointEvaluations4;
1097
1215
 
1098
1216
  /**
1099
1217
  * Dataset item updated.
@@ -1132,6 +1250,7 @@ export type UpdateDatapointResponseBody = {
1132
1250
  | UpdateDatapointEvaluations1
1133
1251
  | UpdateDatapointEvaluations2
1134
1252
  | UpdateDatapointEvaluations3
1253
+ | UpdateDatapointEvaluations4
1135
1254
  >
1136
1255
  | undefined;
1137
1256
  /**
@@ -2554,6 +2673,105 @@ export function updateDatapointDatasetsMessagesFromJSON(
2554
2673
  );
2555
2674
  }
2556
2675
 
2676
+ /** @internal */
2677
+ export const UpdateDatapointEvaluationsDatasetsResponse200EvaluationType$inboundSchema:
2678
+ z.ZodNativeEnum<
2679
+ typeof UpdateDatapointEvaluationsDatasetsResponse200EvaluationType
2680
+ > = z.nativeEnum(UpdateDatapointEvaluationsDatasetsResponse200EvaluationType);
2681
+
2682
+ /** @internal */
2683
+ export const UpdateDatapointEvaluationsDatasetsResponse200Source$inboundSchema:
2684
+ z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsResponse200Source> =
2685
+ z.nativeEnum(UpdateDatapointEvaluationsDatasetsResponse200Source);
2686
+
2687
+ /** @internal */
2688
+ export const UpdateDatapointEvaluationsDatasetsResponse200Kind$inboundSchema:
2689
+ z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsResponse200Kind> = z
2690
+ .nativeEnum(UpdateDatapointEvaluationsDatasetsResponse200Kind);
2691
+
2692
+ /** @internal */
2693
+ export const UpdateDatapointEvaluationsDatasetsResponse200Annotator$inboundSchema:
2694
+ z.ZodType<
2695
+ UpdateDatapointEvaluationsDatasetsResponse200Annotator,
2696
+ z.ZodTypeDef,
2697
+ unknown
2698
+ > = z.object({
2699
+ kind: UpdateDatapointEvaluationsDatasetsResponse200Kind$inboundSchema,
2700
+ actor_id: z.string(),
2701
+ }).transform((v) => {
2702
+ return remap$(v, {
2703
+ "actor_id": "actorId",
2704
+ });
2705
+ });
2706
+
2707
+ export function updateDatapointEvaluationsDatasetsResponse200AnnotatorFromJSON(
2708
+ jsonString: string,
2709
+ ): SafeParseResult<
2710
+ UpdateDatapointEvaluationsDatasetsResponse200Annotator,
2711
+ SDKValidationError
2712
+ > {
2713
+ return safeParse(
2714
+ jsonString,
2715
+ (x) =>
2716
+ UpdateDatapointEvaluationsDatasetsResponse200Annotator$inboundSchema
2717
+ .parse(JSON.parse(x)),
2718
+ `Failed to parse 'UpdateDatapointEvaluationsDatasetsResponse200Annotator' from JSON`,
2719
+ );
2720
+ }
2721
+
2722
+ /** @internal */
2723
+ export const UpdateDatapointEvaluationsDatasetsResponse200OutputSchema$inboundSchema:
2724
+ z.ZodNativeEnum<
2725
+ typeof UpdateDatapointEvaluationsDatasetsResponse200OutputSchema
2726
+ > = z.nativeEnum(UpdateDatapointEvaluationsDatasetsResponse200OutputSchema);
2727
+
2728
+ /** @internal */
2729
+ export const UpdateDatapointEvaluations4$inboundSchema: z.ZodType<
2730
+ UpdateDatapointEvaluations4,
2731
+ z.ZodTypeDef,
2732
+ unknown
2733
+ > = z.object({
2734
+ id: z.string(),
2735
+ evaluation_type:
2736
+ UpdateDatapointEvaluationsDatasetsResponse200EvaluationType$inboundSchema,
2737
+ human_review_id: z.string().optional(),
2738
+ source: UpdateDatapointEvaluationsDatasetsResponse200Source$inboundSchema
2739
+ .default("orq"),
2740
+ annotator: z.lazy(() =>
2741
+ UpdateDatapointEvaluationsDatasetsResponse200Annotator$inboundSchema
2742
+ ).optional(),
2743
+ output_schema:
2744
+ UpdateDatapointEvaluationsDatasetsResponse200OutputSchema$inboundSchema
2745
+ .optional(),
2746
+ parent_annotation_id: z.string().optional(),
2747
+ explanation: z.string().optional(),
2748
+ reviewed_by_id: z.string(),
2749
+ reviewed_at: z.string().datetime({ offset: true }).default(
2750
+ "2026-07-16T11:02:38.230Z",
2751
+ ).transform(v => new Date(v)),
2752
+ type: z.literal("string_array"),
2753
+ values: z.array(z.string()),
2754
+ }).transform((v) => {
2755
+ return remap$(v, {
2756
+ "evaluation_type": "evaluationType",
2757
+ "human_review_id": "humanReviewId",
2758
+ "output_schema": "outputSchema",
2759
+ "parent_annotation_id": "parentAnnotationId",
2760
+ "reviewed_by_id": "reviewedById",
2761
+ "reviewed_at": "reviewedAt",
2762
+ });
2763
+ });
2764
+
2765
+ export function updateDatapointEvaluations4FromJSON(
2766
+ jsonString: string,
2767
+ ): SafeParseResult<UpdateDatapointEvaluations4, SDKValidationError> {
2768
+ return safeParse(
2769
+ jsonString,
2770
+ (x) => UpdateDatapointEvaluations4$inboundSchema.parse(JSON.parse(x)),
2771
+ `Failed to parse 'UpdateDatapointEvaluations4' from JSON`,
2772
+ );
2773
+ }
2774
+
2557
2775
  /** @internal */
2558
2776
  export const UpdateDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema:
2559
2777
  z.ZodNativeEnum<
@@ -2629,10 +2847,10 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
2629
2847
  explanation: z.string().optional(),
2630
2848
  reviewed_by_id: z.string(),
2631
2849
  reviewed_at: z.string().datetime({ offset: true }).default(
2632
- "2026-07-06T07:44:15.855Z",
2850
+ "2026-07-16T11:02:38.229Z",
2633
2851
  ).transform(v => new Date(v)),
2634
- type: z.literal("string_array"),
2635
- values: z.array(z.string()),
2852
+ type: z.literal("boolean"),
2853
+ value: z.boolean(),
2636
2854
  }).transform((v) => {
2637
2855
  return remap$(v, {
2638
2856
  "evaluation_type": "evaluationType",
@@ -2726,7 +2944,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
2726
2944
  explanation: z.string().optional(),
2727
2945
  reviewed_by_id: z.string(),
2728
2946
  reviewed_at: z.string().datetime({ offset: true }).default(
2729
- "2026-07-06T07:44:15.854Z",
2947
+ "2026-07-16T11:02:38.228Z",
2730
2948
  ).transform(v => new Date(v)),
2731
2949
  type: z.literal("number"),
2732
2950
  value: z.number(),
@@ -2815,7 +3033,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
2815
3033
  explanation: z.string().optional(),
2816
3034
  reviewed_by_id: z.string(),
2817
3035
  reviewed_at: z.string().datetime({ offset: true }).default(
2818
- "2026-07-06T07:44:15.853Z",
3036
+ "2026-07-16T11:02:38.227Z",
2819
3037
  ).transform(v => new Date(v)),
2820
3038
  type: z.literal("string"),
2821
3039
  value: z.string(),
@@ -2849,6 +3067,7 @@ export const UpdateDatapointEvaluations$inboundSchema: z.ZodType<
2849
3067
  z.lazy(() => UpdateDatapointEvaluations1$inboundSchema),
2850
3068
  z.lazy(() => UpdateDatapointEvaluations2$inboundSchema),
2851
3069
  z.lazy(() => UpdateDatapointEvaluations3$inboundSchema),
3070
+ z.lazy(() => UpdateDatapointEvaluations4$inboundSchema),
2852
3071
  ]);
2853
3072
 
2854
3073
  export function updateDatapointEvaluationsFromJSON(
@@ -2889,6 +3108,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
2889
3108
  z.lazy(() => UpdateDatapointEvaluations1$inboundSchema),
2890
3109
  z.lazy(() => UpdateDatapointEvaluations2$inboundSchema),
2891
3110
  z.lazy(() => UpdateDatapointEvaluations3$inboundSchema),
3111
+ z.lazy(() => UpdateDatapointEvaluations4$inboundSchema),
2892
3112
  ]),
2893
3113
  ).optional(),
2894
3114
  dataset_id: z.string(),
@@ -2898,7 +3118,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
2898
3118
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2899
3119
  .optional(),
2900
3120
  updated: z.string().datetime({ offset: true }).default(
2901
- "2026-07-06T07:43:53.778Z",
3121
+ "2026-07-16T11:02:21.951Z",
2902
3122
  ).transform(v => new Date(v)),
2903
3123
  }).transform((v) => {
2904
3124
  return remap$(v, {
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
182
182
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
183
183
  .optional(),
184
184
  updated: z.string().datetime({ offset: true }).default(
185
- "2026-07-06T07:43:53.778Z",
185
+ "2026-07-16T11:02:21.951Z",
186
186
  ).transform(v => new Date(v)),
187
187
  }).transform((v) => {
188
188
  return remap$(v, {
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
152
152
  z.ZodTypeDef,
153
153
  unknown
154
154
  > = z.object({
155
- _id: z.string().default("01KWV652W0JAPVR32R18JG5YT1"),
155
+ _id: z.string().default("01KXN9FG8C8DTNFNH7XBTP487Q"),
156
156
  display_name: z.string(),
157
157
  description: z.nullable(z.string()).optional(),
158
158
  status: UpdateDatasourceStatus$inboundSchema,
@@ -550,6 +550,7 @@ export type UpdatePromptModalities = ClosedEnum<typeof UpdatePromptModalities>;
550
550
  */
551
551
  export const UpdatePromptId1 = {
552
552
  OrqPiiDetection: "orq_pii_detection",
553
+ OrqSecretDetection: "orq_secret_detection",
553
554
  OrqSexualModeration: "orq_sexual_moderation",
554
555
  OrqHarmfulModeration: "orq_harmful_moderation",
555
556
  } as const;
@@ -1256,6 +1257,7 @@ export type UpdatePromptVerbosity = ClosedEnum<typeof UpdatePromptVerbosity>;
1256
1257
  * The level of thinking to use for the model. Only supported by `Google AI`
1257
1258
  */
1258
1259
  export const UpdatePromptThinkingLevel = {
1260
+ Minimal: "minimal",
1259
1261
  Low: "low",
1260
1262
  Medium: "medium",
1261
1263
  High: "high",
@@ -1386,6 +1388,7 @@ export const UpdatePromptProvider = {
1386
1388
  Nvidia: "nvidia",
1387
1389
  Jina: "jina",
1388
1390
  Elevenlabs: "elevenlabs",
1391
+ Litellm: "litellm",
1389
1392
  Cerebras: "cerebras",
1390
1393
  Openailike: "openailike",
1391
1394
  Bytedance: "bytedance",
@@ -1403,6 +1406,8 @@ export const UpdatePromptProvider = {
1403
1406
  Wafer: "wafer",
1404
1407
  Poolside: "poolside",
1405
1408
  Tencent: "tencent",
1409
+ Nebius: "nebius",
1410
+ Reson8: "reson8",
1406
1411
  Slack: "slack",
1407
1412
  Orq: "orq",
1408
1413
  } as const;
@@ -1784,6 +1789,7 @@ export type UpdatePromptPromptsModalities = ClosedEnum<
1784
1789
  */
1785
1790
  export const UpdatePromptIdPrompts1 = {
1786
1791
  OrqPiiDetection: "orq_pii_detection",
1792
+ OrqSecretDetection: "orq_secret_detection",
1787
1793
  OrqSexualModeration: "orq_sexual_moderation",
1788
1794
  OrqHarmfulModeration: "orq_harmful_moderation",
1789
1795
  } as const;
@@ -1472,7 +1472,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
1472
1472
  z.ZodTypeDef,
1473
1473
  RequestBodyTools
1474
1474
  > = z.object({
1475
- id: z.string().default("01KWV652Q7HRYEYEMW5P7YPC8S"),
1475
+ id: z.string().default("01KXN9FG4FPZR9459SR60ASREV"),
1476
1476
  name: z.string(),
1477
1477
  description: z.string().optional(),
1478
1478
  schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
@@ -2193,7 +2193,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
2193
2193
  z.ZodTypeDef,
2194
2194
  unknown
2195
2195
  > = z.object({
2196
- _id: z.string().default("tool_01KWV652PYCJZH9XFJVFM2FZFD"),
2196
+ _id: z.string().default("tool_01KXN9FG4899A61A23BAPRDQ17"),
2197
2197
  path: z.string(),
2198
2198
  key: z.string(),
2199
2199
  display_name: z.string().optional(),
@@ -2296,7 +2296,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
2296
2296
  z.ZodTypeDef,
2297
2297
  unknown
2298
2298
  > = z.object({
2299
- id: z.string().default("01KWV652PWD4V1MNSB0TR18Z18"),
2299
+ id: z.string().default("01KXN9FG47KKMFNY2QG665JKWC"),
2300
2300
  name: z.string(),
2301
2301
  description: z.string().optional(),
2302
2302
  schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
@@ -2354,7 +2354,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
2354
2354
  z.ZodTypeDef,
2355
2355
  unknown
2356
2356
  > = z.object({
2357
- _id: z.string().default("tool_01KWV652PSEJE11PXQP2AWJPCZ"),
2357
+ _id: z.string().default("tool_01KXN9FG45DSCGMRBX43VK9BMM"),
2358
2358
  path: z.string(),
2359
2359
  key: z.string(),
2360
2360
  display_name: z.string().optional(),
@@ -2543,7 +2543,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
2543
2543
  z.ZodTypeDef,
2544
2544
  unknown
2545
2545
  > = z.object({
2546
- _id: z.string().default("tool_01KWV652PN20NMJXXNWAMKYGWP"),
2546
+ _id: z.string().default("tool_01KXN9FG43WJNTMCRDRGPB7K5A"),
2547
2547
  path: z.string(),
2548
2548
  key: z.string(),
2549
2549
  display_name: z.string().optional(),
@@ -2638,7 +2638,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2638
2638
  z.ZodTypeDef,
2639
2639
  unknown
2640
2640
  > = z.object({
2641
- _id: z.string().default("tool_01KWV652PK41MSWQ441PWE3HV1"),
2641
+ _id: z.string().default("tool_01KXN9FG41HNGW8NFFEVYTQKC7"),
2642
2642
  path: z.string(),
2643
2643
  key: z.string(),
2644
2644
  display_name: z.string().optional(),
@@ -2741,7 +2741,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
2741
2741
  z.ZodTypeDef,
2742
2742
  unknown
2743
2743
  > = z.object({
2744
- _id: z.string().default("tool_01KWV652PHSE0171E096FE6Y7H"),
2744
+ _id: z.string().default("tool_01KXN9FG40HXY17GFPMSQMP42Z"),
2745
2745
  path: z.string(),
2746
2746
  key: z.string(),
2747
2747
  display_name: z.string().optional(),
@@ -45,10 +45,10 @@ export class Feedback extends ClientSDK {
45
45
  }
46
46
 
47
47
  /**
48
- * Create image edit
48
+ * Create custom model
49
49
  *
50
50
  * @remarks
51
- * Edit an Image
51
+ * Creates a new custom model for the workspace. Provider credentials in the configuration are encrypted using the workspace encryption key before being persisted.
52
52
  */
53
53
  async create(
54
54
  request?: operations.PostV2FeedbackRequestBody | undefined,
@@ -27,7 +27,10 @@ export class HumanReviewSets extends ClientSDK {
27
27
  }
28
28
 
29
29
  /**
30
- * Create a human review set
30
+ * Create a new management key
31
+ *
32
+ * @remarks
33
+ * Mints a new opaque management key (`sk-orq-<key_id>-<secret>`) in the workspace. The raw secret is returned ONCE in the response and is never retrievable afterwards. The stored record retains only `token_prefix` and a SHA-256 `token_hash`.
31
34
  */
32
35
  async create(
33
36
  request?: operations.PostV2HumanEvalSetsRequestBody | undefined,
@@ -11,7 +11,9 @@ import { modelsCreateVertex } from "../funcs/modelsCreateVertex.js";
11
11
  import { modelsDelete } from "../funcs/modelsDelete.js";
12
12
  import { modelsDisable } from "../funcs/modelsDisable.js";
13
13
  import { modelsEnable } from "../funcs/modelsEnable.js";
14
+ import { modelsImportLitellm } from "../funcs/modelsImportLitellm.js";
14
15
  import { modelsList } from "../funcs/modelsList.js";
16
+ import { modelsListLitellm } from "../funcs/modelsListLitellm.js";
15
17
  import { modelsUpdate } from "../funcs/modelsUpdate.js";
16
18
  import { modelsUpdateAutorouter } from "../funcs/modelsUpdateAutorouter.js";
17
19
  import { modelsUpdateAwsBedrock } from "../funcs/modelsUpdateAwsBedrock.js";
@@ -19,6 +21,7 @@ import { modelsUpdateOpenaiLike } from "../funcs/modelsUpdateOpenaiLike.js";
19
21
  import { modelsValidate } from "../funcs/modelsValidate.js";
20
22
  import { modelsValidateAwsBedrock } from "../funcs/modelsValidateAwsBedrock.js";
21
23
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
24
+ import * as components from "../models/components/index.js";
22
25
  import * as operations from "../models/operations/index.js";
23
26
  import { unwrapAsync } from "../types/fp.js";
24
27
 
@@ -142,6 +145,38 @@ export class Models extends ClientSDK {
142
145
  ));
143
146
  }
144
147
 
148
+ /**
149
+ * Import models from LiteLLM
150
+ *
151
+ * @remarks
152
+ * Bulk-imports a list of LiteLLM model definitions into the workspace model garden.
153
+ */
154
+ async importLitellm(
155
+ request: Array<components.LiteLLMModel> | null,
156
+ options?: RequestOptions,
157
+ ): Promise<Array<components.ModelDocument>> {
158
+ return unwrapAsync(modelsImportLitellm(
159
+ this,
160
+ request,
161
+ options,
162
+ ));
163
+ }
164
+
165
+ /**
166
+ * List models from configured LiteLLM instance
167
+ *
168
+ * @remarks
169
+ * Fetches the list of models from the LiteLLM instance configured for the workspace. Requires a stored LiteLLM integration.
170
+ */
171
+ async listLitellm(
172
+ options?: RequestOptions,
173
+ ): Promise<Array<{ [k: string]: any }>> {
174
+ return unwrapAsync(modelsListLitellm(
175
+ this,
176
+ options,
177
+ ));
178
+ }
179
+
145
180
  /**
146
181
  * Create OpenAI-compatible custom model
147
182
  *
@@ -20,6 +20,8 @@ export class OrqResponses extends ClientSDK {
20
20
  *
21
21
  * @remarks
22
22
  * Initiates an agent conversation and returns a complete response. This endpoint manages the full lifecycle of an agent interaction, from receiving the initial message through all processing steps until completion. Supports synchronous execution (waits for completion) and asynchronous execution (returns immediately with task ID). The response includes all messages exchanged, tool calls made, and token usage statistics. Ideal for request-response patterns where you need the complete interaction result.
23
+ *
24
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
23
25
  */
24
26
  async create(
25
27
  agentResponseRequest: components.AgentResponseRequest,
@@ -39,6 +41,8 @@ export class OrqResponses extends ClientSDK {
39
41
  *
40
42
  * @remarks
41
43
  * Retrieves the current state of an agent response by task ID. Returns the response output, model information, token usage, and execution status. When the agent is still processing, the output array will be empty and status will be `in_progress`. Once completed, the response includes the full output, usage statistics, and finish reason.
44
+ *
45
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
42
46
  */
43
47
  async get(
44
48
  request: operations.GetAgentResponseRequest,
@@ -12,7 +12,9 @@ export class Reporting extends ClientSDK {
12
12
  * Query reporting metrics
13
13
  *
14
14
  * @remarks
15
- * Returns time-series analytics for AI usage, cost, latency, evaluator results, and guardrail outcomes. Select a metric and time range, break results down by supported dimensions, apply filters, and optionally include totals for the full range.
15
+ * Deprecated: use TelemetryService.Query (POST /v2/telemetry/query) instead. Returns time-series analytics for AI usage, cost, latency, evaluator results, and guardrail outcomes. Select a metric and time range, break results down by supported dimensions, apply filters, and optionally include totals for the full range.
16
+ *
17
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
16
18
  */
17
19
  async query(
18
20
  request: components.QueryReportRequest,
@@ -31,6 +31,7 @@ import { Router } from "./router.js";
31
31
  import { RoutingRules } from "./routingrules.js";
32
32
  import { Schedules } from "./schedules.js";
33
33
  import { Skills } from "./skills.js";
34
+ import { Telemetry } from "./telemetry.js";
34
35
  import { Tools } from "./tools.js";
35
36
  import { Traces } from "./traces.js";
36
37
 
@@ -180,6 +181,11 @@ export class Orq extends ClientSDK {
180
181
  return (this._reporting ??= new Reporting(this._options));
181
182
  }
182
183
 
184
+ private _telemetry?: Telemetry;
185
+ get telemetry(): Telemetry {
186
+ return (this._telemetry ??= new Telemetry(this._options));
187
+ }
188
+
183
189
  private _traces?: Traces;
184
190
  get traces(): Traces {
185
191
  return (this._traces ??= new Traces(this._options));
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { telemetryQuery } from "../funcs/telemetryQuery.js";
6
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
+ import * as components from "../models/components/index.js";
8
+ import { unwrapAsync } from "../types/fp.js";
9
+
10
+ export class Telemetry extends ClientSDK {
11
+ /**
12
+ * Query telemetry
13
+ *
14
+ * @remarks
15
+ * Unified query envelope for traces, metrics, and logs. Selects a source, a compute list, and a time range, with optional grain, group-by, and filters; returns a time series or a single aggregate row per group.
16
+ */
17
+ async query(
18
+ request: components.QueryTelemetryRequest,
19
+ options?: RequestOptions,
20
+ ): Promise<components.QueryTelemetryResponse> {
21
+ return unwrapAsync(telemetryQuery(
22
+ this,
23
+ request,
24
+ options,
25
+ ));
26
+ }
27
+ }
@@ -21,7 +21,9 @@ export class Traces extends ClientSDK {
21
21
  * Aggregate traces
22
22
  *
23
23
  * @remarks
24
- * Aggregate trace metrics using the structured trace filter contract.
24
+ * Deprecated: use TelemetryService.Query (POST /v2/telemetry/query, source=TRACES, grain=none) instead. Aggregate trace metrics using the structured trace filter contract.
25
+ *
26
+ * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
25
27
  */
26
28
  async aggregate(
27
29
  request: components.AggregateTracesRequest,
package/sdk/feedback.d.ts CHANGED
@@ -5,10 +5,10 @@ export declare class Feedback extends ClientSDK {
5
5
  createEvaluation(request?: operations.PostV2FeedbackEvaluationRequestBody | undefined, options?: RequestOptions): Promise<void>;
6
6
  remove(request?: operations.PostV2FeedbackRemoveRequestBody | undefined, options?: RequestOptions): Promise<operations.PostV2FeedbackRemoveResponseBody>;
7
7
  /**
8
- * Create a new API key
8
+ * Create routing rule
9
9
  *
10
10
  * @remarks
11
- * Mints a new opaque API key (`sk-orq-<key_id>-<secret>`) in the workspace. The raw secret is returned ONCE in the response and is never retrievable afterwards. The stored record retains only `token_prefix` and a SHA-256 `token_hash`.
11
+ * Creates a new routing rule with expression, models configuration, and priority settings.
12
12
  */
13
13
  create(request?: operations.PostV2FeedbackRequestBody | undefined, options?: RequestOptions): Promise<operations.PostV2FeedbackResponseBody>;
14
14
  }
package/sdk/feedback.js CHANGED
@@ -21,10 +21,10 @@ class Feedback extends sdks_js_1.ClientSDK {
21
21
  return (0, fp_js_1.unwrapAsync)((0, feedbackRemove_js_1.feedbackRemove)(this, request, options));
22
22
  }
23
23
  /**
24
- * Create a new API key
24
+ * Create routing rule
25
25
  *
26
26
  * @remarks
27
- * Mints a new opaque API key (`sk-orq-<key_id>-<secret>`) in the workspace. The raw secret is returned ONCE in the response and is never retrievable afterwards. The stored record retains only `token_prefix` and a SHA-256 `token_hash`.
27
+ * Creates a new routing rule with expression, models configuration, and priority settings.
28
28
  */
29
29
  async create(request, options) {
30
30
  return (0, fp_js_1.unwrapAsync)((0, feedbackCreate_js_1.feedbackCreate)(this, request, options));
package/sdk/models.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as components from "../models/components/index.js";
2
3
  import * as operations from "../models/operations/index.js";
3
4
  export declare class Models extends ClientSDK {
4
5
  /**
@@ -50,6 +51,22 @@ export declare class Models extends ClientSDK {
50
51
  * Lists Azure Foundry deployments under the given base_url and joins each entry with the Orq master-data row. Only OpenAI-developed deployments in succeeded state with chat/completion/embedding/vision model types are returned.
51
52
  */
52
53
  azureFoundryDeployments(request: operations.ModelAzureFoundryDeploymentsRequestBody, options?: RequestOptions): Promise<operations.ModelAzureFoundryDeploymentsResponseBody>;
54
+ /**
55
+ * Import models from LiteLLM
56
+ *
57
+ * @remarks
58
+ * Bulk-imports a list of LiteLLM model definitions into the workspace model garden.
59
+ */
60
+ importLitellm(request: Array<components.LiteLLMModel> | null, options?: RequestOptions): Promise<Array<components.ModelDocument>>;
61
+ /**
62
+ * List models from configured LiteLLM instance
63
+ *
64
+ * @remarks
65
+ * Fetches the list of models from the LiteLLM instance configured for the workspace. Requires a stored LiteLLM integration.
66
+ */
67
+ listLitellm(options?: RequestOptions): Promise<Array<{
68
+ [k: string]: any;
69
+ }>>;
53
70
  /**
54
71
  * Create OpenAI-compatible custom model
55
72
  *