@orq-ai/node 4.13.0-rc.41 → 4.13.0-rc.43

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 (469) hide show
  1. package/README.md +36 -55
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +2 -2
  4. package/lib/config.js +2 -2
  5. package/models/components/evaluatorresponsefunction.js +2 -2
  6. package/models/components/evaluatorresponsehttp.js +2 -2
  7. package/models/components/evaluatorresponsejsonschema.js +2 -2
  8. package/models/components/evaluatorresponsellm.js +2 -2
  9. package/models/components/evaluatorresponsepython.js +2 -2
  10. package/models/components/evaluatorresponseragas.js +2 -2
  11. package/models/components/evaluatorresponsetypescript.js +2 -2
  12. package/models/components/index.d.ts +0 -17
  13. package/models/components/index.d.ts.map +1 -1
  14. package/models/components/index.js +0 -17
  15. package/models/components/index.js.map +1 -1
  16. package/models/components/modeldocument.d.ts +1 -0
  17. package/models/components/modeldocument.d.ts.map +1 -1
  18. package/models/components/modeldocument.js +2 -0
  19. package/models/components/modeldocument.js.map +1 -1
  20. package/models/components/queryreportrequest.d.ts +10 -10
  21. package/models/components/queryreportrequest.d.ts.map +1 -1
  22. package/models/components/queryreportrequest.js +11 -11
  23. package/models/components/queryreportrequest.js.map +1 -1
  24. package/models/components/reasoningpart.js +1 -1
  25. package/models/operations/billing.js +1 -1
  26. package/models/operations/createannotationqueue.js +1 -1
  27. package/models/operations/createdataset.js +1 -1
  28. package/models/operations/createdatasetitem.js +5 -5
  29. package/models/operations/createdatasource.js +1 -1
  30. package/models/operations/createtool.js +6 -6
  31. package/models/operations/getalltools.js +6 -6
  32. package/models/operations/geteval.js +16 -16
  33. package/models/operations/getv2humanevalsets.js +2 -2
  34. package/models/operations/getv2humanevalsetsid.js +2 -2
  35. package/models/operations/index.d.ts +0 -6
  36. package/models/operations/index.d.ts.map +1 -1
  37. package/models/operations/index.js +0 -6
  38. package/models/operations/index.js.map +1 -1
  39. package/models/operations/listannotationqueues.js +1 -1
  40. package/models/operations/listdatasetdatapoints.js +5 -5
  41. package/models/operations/listdatasets.js +1 -1
  42. package/models/operations/listdatasources.js +1 -1
  43. package/models/operations/modelcreate.d.ts +1 -0
  44. package/models/operations/modelcreate.d.ts.map +1 -1
  45. package/models/operations/modelcreate.js +2 -0
  46. package/models/operations/modelcreate.js.map +1 -1
  47. package/models/operations/modelcreateawsbedrock.d.ts +1 -0
  48. package/models/operations/modelcreateawsbedrock.d.ts.map +1 -1
  49. package/models/operations/modelcreateawsbedrock.js +2 -0
  50. package/models/operations/modelcreateawsbedrock.js.map +1 -1
  51. package/models/operations/modelcreateopenailike.d.ts +1 -0
  52. package/models/operations/modelcreateopenailike.d.ts.map +1 -1
  53. package/models/operations/modelcreateopenailike.js +2 -0
  54. package/models/operations/modelcreateopenailike.js.map +1 -1
  55. package/models/operations/modelcreatevertex.d.ts +1 -0
  56. package/models/operations/modelcreatevertex.d.ts.map +1 -1
  57. package/models/operations/modelcreatevertex.js +2 -0
  58. package/models/operations/modelcreatevertex.js.map +1 -1
  59. package/models/operations/modelupdate.d.ts +1 -0
  60. package/models/operations/modelupdate.d.ts.map +1 -1
  61. package/models/operations/modelupdate.js +2 -0
  62. package/models/operations/modelupdate.js.map +1 -1
  63. package/models/operations/modelupdateawsbedrock.d.ts +1 -0
  64. package/models/operations/modelupdateawsbedrock.d.ts.map +1 -1
  65. package/models/operations/modelupdateawsbedrock.js +2 -0
  66. package/models/operations/modelupdateawsbedrock.js.map +1 -1
  67. package/models/operations/modelupdateopenailike.d.ts +1 -0
  68. package/models/operations/modelupdateopenailike.d.ts.map +1 -1
  69. package/models/operations/modelupdateopenailike.js +2 -0
  70. package/models/operations/modelupdateopenailike.js.map +1 -1
  71. package/models/operations/patchv2humanevalsetsid.js +2 -2
  72. package/models/operations/postv2feedbackevaluation.js +4 -4
  73. package/models/operations/postv2humanevalsets.js +2 -2
  74. package/models/operations/retrieveannotationqueue.js +1 -1
  75. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjson2.js +28 -28
  76. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody14attributes2.js +28 -28
  77. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody22attributesopenresponsesdetail.js +6 -6
  78. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody23annotations.js +26 -26
  79. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody27attributesopenresponsesoutput3type.js +6 -6
  80. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody314.js +31 -31
  81. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody5attributestype.js +22 -22
  82. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody11attributestoplogprobs.js +14 -14
  83. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody15attributesopenresponsesoutput4type.js +14 -14
  84. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody17attributesopenresponsesoutput44type.js +16 -16
  85. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody18type.js +24 -24
  86. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody1attributestype.js +2 -2
  87. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributestoplogprobs.js +14 -14
  88. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributestoplogprobs.js +14 -14
  89. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody32attributesopenresponsesoutput48type.js +18 -18
  90. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody66.js +2 -2
  91. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody7attributes5.js +16 -16
  92. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody9attributes8.js +18 -18
  93. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1017.js +4 -4
  94. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq7evaluatorconfigtype.js +21 -21
  95. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorq15annotator.js +5 -5
  96. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody136.js +25 -25
  97. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody14attributesorq14type.js +7 -7
  98. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq7outputschema.js +21 -21
  99. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1618.js +3 -3
  100. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq8kind.js +18 -18
  101. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq12evaluatorconfigtype.js +11 -11
  102. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq5kind.js +24 -24
  103. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq14annotator.js +7 -7
  104. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq7evaluatorconfigtype.js +21 -21
  105. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorqevaluatorconfigtype.js +28 -28
  106. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq13evaluationtype.js +9 -9
  107. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq7status.js +21 -21
  108. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq18type.js +2 -2
  109. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2611.js +15 -15
  110. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorqevaluationtype.js +28 -28
  111. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq14annotator.js +7 -7
  112. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq7evaluatorconfigtype.js +21 -21
  113. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2attributesorq14type.js +7 -7
  114. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq18evaluationtype.js +2 -2
  115. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq16kind.js +4 -4
  116. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorq9evaluatorconfigtype.js +17 -17
  117. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesannotator.js +30 -30
  118. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody34attributesorq12evaluationtype.js +11 -11
  119. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.js +24 -24
  120. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq14evaluationtype.js +7 -7
  121. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq4kind.js +26 -26
  122. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody5attributesorq11evaluatorconfigtype.js +13 -13
  123. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq19annotator.js +1 -1
  124. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6value.js +32 -32
  125. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq8evaluatorconfigtype.js +19 -19
  126. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorq18annotator.js +2 -2
  127. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq9kind.js +17 -17
  128. package/models/operations/retrieveannotationqueueitemevaluationsannotator.js +32 -32
  129. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody20attributesopenresponses6role.js +28 -28
  130. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26content.js +20 -20
  131. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody28attributesopenresponses6role.js +28 -28
  132. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody34attributesrole.js +24 -24
  133. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200status.js +28 -28
  134. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody12attributes1.js +30 -30
  135. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody24attributescontent.js +14 -14
  136. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody332.js +4 -4
  137. package/models/operations/retrieveannotationqueueitemresponsebody.js +1 -1
  138. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10http.js +31 -31
  139. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16settings.js +32 -32
  140. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson17context.js +1 -1
  141. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson22call.js +1 -1
  142. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson25engine.js +33 -33
  143. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27conversation.js +1 -1
  144. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson30nodes.js +33 -33
  145. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33token.js +1 -1
  146. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8trace.js +33 -33
  147. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjsonresponse.js +1 -1
  148. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse1.js +8 -8
  149. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody13attributesopenresponsesoutputtype.js +10 -10
  150. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody193.js +10 -10
  151. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody35attributestype.js +10 -10
  152. package/models/operations/retrievedatapoint.js +5 -5
  153. package/models/operations/retrievedataset.js +1 -1
  154. package/models/operations/retrievedatasource.js +1 -1
  155. package/models/operations/retrievetool.js +6 -6
  156. package/models/operations/runagent.js +1 -1
  157. package/models/operations/streamrunagent.js +1 -1
  158. package/models/operations/twenty.js +1 -1
  159. package/models/operations/updateannotationqueue.js +1 -1
  160. package/models/operations/updatedatapoint.js +5 -5
  161. package/models/operations/updatedataset.js +1 -1
  162. package/models/operations/updatedatasource.js +1 -1
  163. package/models/operations/updatetool.js +7 -7
  164. package/package.json +6 -6
  165. package/sdk/alerts.d.ts +0 -7
  166. package/sdk/alerts.d.ts.map +1 -1
  167. package/sdk/alerts.js +0 -10
  168. package/sdk/alerts.js.map +1 -1
  169. package/sdk/budgets.d.ts +0 -7
  170. package/sdk/budgets.d.ts.map +1 -1
  171. package/sdk/budgets.js +0 -10
  172. package/sdk/budgets.js.map +1 -1
  173. package/sdk/feedback.d.ts +2 -2
  174. package/sdk/feedback.js +2 -2
  175. package/sdk/sdk.d.ts +0 -3
  176. package/sdk/sdk.d.ts.map +1 -1
  177. package/sdk/sdk.js +0 -4
  178. package/sdk/sdk.js.map +1 -1
  179. package/src/lib/config.ts +2 -2
  180. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  181. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  182. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  183. package/src/models/components/evaluatorresponsellm.ts +2 -2
  184. package/src/models/components/evaluatorresponsepython.ts +2 -2
  185. package/src/models/components/evaluatorresponseragas.ts +2 -2
  186. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  187. package/src/models/components/index.ts +0 -17
  188. package/src/models/components/modeldocument.ts +3 -0
  189. package/src/models/components/queryreportrequest.ts +20 -24
  190. package/src/models/components/reasoningpart.ts +1 -1
  191. package/src/models/operations/billing.ts +1 -1
  192. package/src/models/operations/createannotationqueue.ts +1 -1
  193. package/src/models/operations/createdataset.ts +1 -1
  194. package/src/models/operations/createdatasetitem.ts +5 -5
  195. package/src/models/operations/createdatasource.ts +1 -1
  196. package/src/models/operations/createtool.ts +6 -6
  197. package/src/models/operations/getalltools.ts +6 -6
  198. package/src/models/operations/geteval.ts +16 -16
  199. package/src/models/operations/getv2humanevalsets.ts +2 -2
  200. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  201. package/src/models/operations/index.ts +0 -6
  202. package/src/models/operations/listannotationqueues.ts +1 -1
  203. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  204. package/src/models/operations/listdatasets.ts +1 -1
  205. package/src/models/operations/listdatasources.ts +1 -1
  206. package/src/models/operations/modelcreate.ts +3 -0
  207. package/src/models/operations/modelcreateawsbedrock.ts +3 -0
  208. package/src/models/operations/modelcreateopenailike.ts +3 -0
  209. package/src/models/operations/modelcreatevertex.ts +3 -0
  210. package/src/models/operations/modelupdate.ts +3 -0
  211. package/src/models/operations/modelupdateawsbedrock.ts +3 -0
  212. package/src/models/operations/modelupdateopenailike.ts +3 -0
  213. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  214. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  215. package/src/models/operations/postv2humanevalsets.ts +2 -2
  216. package/src/models/operations/retrieveannotationqueue.ts +1 -1
  217. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjson2.ts +28 -28
  218. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody14attributes2.ts +28 -28
  219. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody22attributesopenresponsesdetail.ts +6 -6
  220. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody23annotations.ts +26 -26
  221. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody27attributesopenresponsesoutput3type.ts +6 -6
  222. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody314.ts +31 -31
  223. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody5attributestype.ts +22 -22
  224. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody11attributestoplogprobs.ts +14 -14
  225. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody15attributesopenresponsesoutput4type.ts +14 -14
  226. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody17attributesopenresponsesoutput44type.ts +16 -16
  227. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody18type.ts +24 -24
  228. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody1attributestype.ts +2 -2
  229. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributestoplogprobs.ts +14 -14
  230. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributestoplogprobs.ts +14 -14
  231. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody32attributesopenresponsesoutput48type.ts +18 -18
  232. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody66.ts +2 -2
  233. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody7attributes5.ts +16 -16
  234. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody9attributes8.ts +18 -18
  235. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1017.ts +4 -4
  236. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq7evaluatorconfigtype.ts +21 -21
  237. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorq15annotator.ts +5 -5
  238. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody136.ts +25 -25
  239. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody14attributesorq14type.ts +7 -7
  240. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq7outputschema.ts +21 -21
  241. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1618.ts +3 -3
  242. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq8kind.ts +18 -18
  243. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq12evaluatorconfigtype.ts +11 -11
  244. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq5kind.ts +24 -24
  245. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq14annotator.ts +7 -7
  246. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq7evaluatorconfigtype.ts +21 -21
  247. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorqevaluatorconfigtype.ts +28 -28
  248. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq13evaluationtype.ts +9 -9
  249. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq7status.ts +21 -21
  250. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq18type.ts +2 -2
  251. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2611.ts +15 -15
  252. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorqevaluationtype.ts +28 -28
  253. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq14annotator.ts +7 -7
  254. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq7evaluatorconfigtype.ts +21 -21
  255. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2attributesorq14type.ts +7 -7
  256. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq18evaluationtype.ts +2 -2
  257. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq16kind.ts +4 -4
  258. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorq9evaluatorconfigtype.ts +17 -17
  259. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesannotator.ts +30 -30
  260. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody34attributesorq12evaluationtype.ts +11 -11
  261. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.ts +24 -24
  262. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq14evaluationtype.ts +7 -7
  263. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq4kind.ts +26 -26
  264. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody5attributesorq11evaluatorconfigtype.ts +13 -13
  265. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq19annotator.ts +1 -1
  266. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6value.ts +32 -32
  267. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq8evaluatorconfigtype.ts +19 -19
  268. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorq18annotator.ts +2 -2
  269. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq9kind.ts +17 -17
  270. package/src/models/operations/retrieveannotationqueueitemevaluationsannotator.ts +32 -32
  271. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody20attributesopenresponses6role.ts +28 -28
  272. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26content.ts +20 -20
  273. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody28attributesopenresponses6role.ts +28 -28
  274. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody34attributesrole.ts +24 -24
  275. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200status.ts +28 -28
  276. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody12attributes1.ts +30 -30
  277. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody24attributescontent.ts +14 -14
  278. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody332.ts +4 -4
  279. package/src/models/operations/retrieveannotationqueueitemresponsebody.ts +1 -1
  280. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10http.ts +31 -31
  281. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16settings.ts +32 -32
  282. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson17context.ts +1 -1
  283. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson22call.ts +1 -1
  284. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson25engine.ts +33 -33
  285. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27conversation.ts +1 -1
  286. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson30nodes.ts +33 -33
  287. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33token.ts +1 -1
  288. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8trace.ts +33 -33
  289. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjsonresponse.ts +1 -1
  290. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse1.ts +8 -8
  291. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody13attributesopenresponsesoutputtype.ts +10 -10
  292. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody193.ts +10 -10
  293. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody35attributestype.ts +10 -10
  294. package/src/models/operations/retrievedatapoint.ts +5 -5
  295. package/src/models/operations/retrievedataset.ts +1 -1
  296. package/src/models/operations/retrievedatasource.ts +1 -1
  297. package/src/models/operations/retrievetool.ts +6 -6
  298. package/src/models/operations/runagent.ts +1 -1
  299. package/src/models/operations/streamrunagent.ts +1 -1
  300. package/src/models/operations/twenty.ts +1 -1
  301. package/src/models/operations/updateannotationqueue.ts +1 -1
  302. package/src/models/operations/updatedatapoint.ts +5 -5
  303. package/src/models/operations/updatedataset.ts +1 -1
  304. package/src/models/operations/updatedatasource.ts +1 -1
  305. package/src/models/operations/updatetool.ts +7 -7
  306. package/src/sdk/alerts.ts +0 -18
  307. package/src/sdk/budgets.ts +0 -18
  308. package/src/sdk/feedback.ts +2 -2
  309. package/src/sdk/sdk.ts +0 -6
  310. package/funcs/alertsCheckNow.d.ts +0 -18
  311. package/funcs/alertsCheckNow.d.ts.map +0 -1
  312. package/funcs/alertsCheckNow.js +0 -124
  313. package/funcs/alertsCheckNow.js.map +0 -1
  314. package/funcs/budgetsGetConsumption.d.ts +0 -18
  315. package/funcs/budgetsGetConsumption.d.ts.map +0 -1
  316. package/funcs/budgetsGetConsumption.js +0 -121
  317. package/funcs/budgetsGetConsumption.js.map +0 -1
  318. package/funcs/monitorsCreate.d.ts +0 -17
  319. package/funcs/monitorsCreate.d.ts.map +0 -1
  320. package/funcs/monitorsCreate.js +0 -115
  321. package/funcs/monitorsCreate.js.map +0 -1
  322. package/funcs/monitorsDelete.d.ts +0 -18
  323. package/funcs/monitorsDelete.d.ts.map +0 -1
  324. package/funcs/monitorsDelete.js +0 -121
  325. package/funcs/monitorsDelete.js.map +0 -1
  326. package/funcs/monitorsGet.d.ts +0 -18
  327. package/funcs/monitorsGet.d.ts.map +0 -1
  328. package/funcs/monitorsGet.js +0 -121
  329. package/funcs/monitorsGet.js.map +0 -1
  330. package/funcs/monitorsList.d.ts +0 -18
  331. package/funcs/monitorsList.d.ts.map +0 -1
  332. package/funcs/monitorsList.js +0 -122
  333. package/funcs/monitorsList.js.map +0 -1
  334. package/funcs/monitorsListPresets.d.ts +0 -17
  335. package/funcs/monitorsListPresets.d.ts.map +0 -1
  336. package/funcs/monitorsListPresets.js +0 -105
  337. package/funcs/monitorsListPresets.js.map +0 -1
  338. package/funcs/monitorsUpdate.d.ts +0 -18
  339. package/funcs/monitorsUpdate.d.ts.map +0 -1
  340. package/funcs/monitorsUpdate.js +0 -124
  341. package/funcs/monitorsUpdate.js.map +0 -1
  342. package/models/components/checkalertnowrequest.d.ts +0 -8
  343. package/models/components/checkalertnowrequest.d.ts.map +0 -1
  344. package/models/components/checkalertnowrequest.js +0 -47
  345. package/models/components/checkalertnowrequest.js.map +0 -1
  346. package/models/components/checkalertnowresponse.d.ts +0 -8
  347. package/models/components/checkalertnowresponse.d.ts.map +0 -1
  348. package/models/components/checkalertnowresponse.js +0 -48
  349. package/models/components/checkalertnowresponse.js.map +0 -1
  350. package/models/components/createmonitorrequest.d.ts +0 -44
  351. package/models/components/createmonitorrequest.d.ts.map +0 -1
  352. package/models/components/createmonitorrequest.js +0 -63
  353. package/models/components/createmonitorrequest.js.map +0 -1
  354. package/models/components/createmonitorresponse.d.ts +0 -14
  355. package/models/components/createmonitorresponse.d.ts.map +0 -1
  356. package/models/components/createmonitorresponse.js +0 -51
  357. package/models/components/createmonitorresponse.js.map +0 -1
  358. package/models/components/deletemonitorresponse.d.ts +0 -8
  359. package/models/components/deletemonitorresponse.d.ts.map +0 -1
  360. package/models/components/deletemonitorresponse.js +0 -48
  361. package/models/components/deletemonitorresponse.js.map +0 -1
  362. package/models/components/getbudgetconsumptionresponse.d.ts +0 -38
  363. package/models/components/getbudgetconsumptionresponse.d.ts.map +0 -1
  364. package/models/components/getbudgetconsumptionresponse.js +0 -63
  365. package/models/components/getbudgetconsumptionresponse.js.map +0 -1
  366. package/models/components/getmonitorresponse.d.ts +0 -14
  367. package/models/components/getmonitorresponse.d.ts.map +0 -1
  368. package/models/components/getmonitorresponse.js +0 -51
  369. package/models/components/getmonitorresponse.js.map +0 -1
  370. package/models/components/listmonitorpresetsresponse.d.ts +0 -18
  371. package/models/components/listmonitorpresetsresponse.d.ts.map +0 -1
  372. package/models/components/listmonitorpresetsresponse.js +0 -52
  373. package/models/components/listmonitorpresetsresponse.js.map +0 -1
  374. package/models/components/listmonitorsresponse.d.ts +0 -25
  375. package/models/components/listmonitorsresponse.d.ts.map +0 -1
  376. package/models/components/listmonitorsresponse.js +0 -58
  377. package/models/components/listmonitorsresponse.js.map +0 -1
  378. package/models/components/monitor.d.ts +0 -82
  379. package/models/components/monitor.d.ts.map +0 -1
  380. package/models/components/monitor.js +0 -90
  381. package/models/components/monitor.js.map +0 -1
  382. package/models/components/monitorpreset.d.ts +0 -54
  383. package/models/components/monitorpreset.d.ts.map +0 -1
  384. package/models/components/monitorpreset.js +0 -72
  385. package/models/components/monitorpreset.js.map +0 -1
  386. package/models/components/monitorwidget.d.ts +0 -72
  387. package/models/components/monitorwidget.d.ts.map +0 -1
  388. package/models/components/monitorwidget.js +0 -92
  389. package/models/components/monitorwidget.js.map +0 -1
  390. package/models/components/monitorwidgetdisplay.d.ts +0 -97
  391. package/models/components/monitorwidgetdisplay.d.ts.map +0 -1
  392. package/models/components/monitorwidgetdisplay.js +0 -113
  393. package/models/components/monitorwidgetdisplay.js.map +0 -1
  394. package/models/components/monitorwidgetlayout.d.ts +0 -35
  395. package/models/components/monitorwidgetlayout.d.ts.map +0 -1
  396. package/models/components/monitorwidgetlayout.js +0 -64
  397. package/models/components/monitorwidgetlayout.js.map +0 -1
  398. package/models/components/monitorwidgetquery.d.ts +0 -66
  399. package/models/components/monitorwidgetquery.d.ts.map +0 -1
  400. package/models/components/monitorwidgetquery.js +0 -89
  401. package/models/components/monitorwidgetquery.js.map +0 -1
  402. package/models/components/updatemonitorrequest.d.ts +0 -34
  403. package/models/components/updatemonitorrequest.d.ts.map +0 -1
  404. package/models/components/updatemonitorrequest.js +0 -59
  405. package/models/components/updatemonitorrequest.js.map +0 -1
  406. package/models/components/updatemonitorresponse.d.ts +0 -14
  407. package/models/components/updatemonitorresponse.d.ts.map +0 -1
  408. package/models/components/updatemonitorresponse.js +0 -51
  409. package/models/components/updatemonitorresponse.js.map +0 -1
  410. package/models/operations/alertchecknow.d.ts +0 -18
  411. package/models/operations/alertchecknow.d.ts.map +0 -1
  412. package/models/operations/alertchecknow.js +0 -57
  413. package/models/operations/alertchecknow.js.map +0 -1
  414. package/models/operations/budgetgetconsumption.d.ts +0 -15
  415. package/models/operations/budgetgetconsumption.d.ts.map +0 -1
  416. package/models/operations/budgetgetconsumption.js +0 -54
  417. package/models/operations/budgetgetconsumption.js.map +0 -1
  418. package/models/operations/monitordelete.d.ts +0 -15
  419. package/models/operations/monitordelete.d.ts.map +0 -1
  420. package/models/operations/monitordelete.js +0 -54
  421. package/models/operations/monitordelete.js.map +0 -1
  422. package/models/operations/monitorget.d.ts +0 -15
  423. package/models/operations/monitorget.d.ts.map +0 -1
  424. package/models/operations/monitorget.js +0 -54
  425. package/models/operations/monitorget.js.map +0 -1
  426. package/models/operations/monitorlist.d.ts +0 -39
  427. package/models/operations/monitorlist.d.ts.map +0 -1
  428. package/models/operations/monitorlist.js +0 -59
  429. package/models/operations/monitorlist.js.map +0 -1
  430. package/models/operations/monitorupdate.d.ts +0 -18
  431. package/models/operations/monitorupdate.d.ts.map +0 -1
  432. package/models/operations/monitorupdate.js +0 -57
  433. package/models/operations/monitorupdate.js.map +0 -1
  434. package/sdk/monitors.d.ts +0 -48
  435. package/sdk/monitors.d.ts.map +0 -1
  436. package/sdk/monitors.js +0 -72
  437. package/sdk/monitors.js.map +0 -1
  438. package/src/funcs/alertsCheckNow.ts +0 -171
  439. package/src/funcs/budgetsGetConsumption.ts +0 -169
  440. package/src/funcs/monitorsCreate.ts +0 -162
  441. package/src/funcs/monitorsDelete.ts +0 -168
  442. package/src/funcs/monitorsGet.ts +0 -168
  443. package/src/funcs/monitorsList.ts +0 -171
  444. package/src/funcs/monitorsListPresets.ts +0 -144
  445. package/src/funcs/monitorsUpdate.ts +0 -171
  446. package/src/models/components/checkalertnowrequest.ts +0 -25
  447. package/src/models/components/checkalertnowresponse.ts +0 -27
  448. package/src/models/components/createmonitorrequest.ts +0 -80
  449. package/src/models/components/createmonitorresponse.ts +0 -35
  450. package/src/models/components/deletemonitorresponse.ts +0 -27
  451. package/src/models/components/getbudgetconsumptionresponse.ts +0 -71
  452. package/src/models/components/getmonitorresponse.ts +0 -35
  453. package/src/models/components/listmonitorpresetsresponse.ts +0 -40
  454. package/src/models/components/listmonitorsresponse.ts +0 -53
  455. package/src/models/components/monitor.ts +0 -130
  456. package/src/models/components/monitorpreset.ts +0 -91
  457. package/src/models/components/monitorwidget.ts +0 -142
  458. package/src/models/components/monitorwidgetdisplay.ts +0 -166
  459. package/src/models/components/monitorwidgetlayout.ts +0 -75
  460. package/src/models/components/monitorwidgetquery.ts +0 -127
  461. package/src/models/components/updatemonitorrequest.ts +0 -66
  462. package/src/models/components/updatemonitorresponse.ts +0 -35
  463. package/src/models/operations/alertchecknow.ts +0 -44
  464. package/src/models/operations/budgetgetconsumption.ts +0 -41
  465. package/src/models/operations/monitordelete.ts +0 -39
  466. package/src/models/operations/monitorget.ts +0 -39
  467. package/src/models/operations/monitorlist.ts +0 -68
  468. package/src/models/operations/monitorupdate.ts +0 -44
  469. package/src/sdk/monitors.ts +0 -116
@@ -1,171 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { OrqCore } from "../core.js";
6
- import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
- import { matchStatusCode } from "../lib/http.js";
8
- import * as M from "../lib/matchers.js";
9
- import { compactMap } from "../lib/primitives.js";
10
- import { safeParse } from "../lib/schemas.js";
11
- import { RequestOptions } from "../lib/sdks.js";
12
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
- import { pathToFunc } from "../lib/url.js";
14
- import * as components from "../models/components/index.js";
15
- import {
16
- ConnectionError,
17
- InvalidRequestError,
18
- RequestAbortedError,
19
- RequestTimeoutError,
20
- UnexpectedClientError,
21
- } from "../models/errors/httpclienterrors.js";
22
- import { OrqError } from "../models/errors/orqerror.js";
23
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
- import * as operations from "../models/operations/index.js";
26
- import { APICall, APIPromise } from "../types/async.js";
27
- import { Result } from "../types/fp.js";
28
-
29
- /**
30
- * Run an alert check now
31
- *
32
- * @remarks
33
- * Schedules one immediate evaluation of the alert (delivered within ~10 seconds), independent of its regular interval. The check runs through the normal evaluation pipeline: it records a run, can open or resolve triggers, and fires notifications. The alert must be enabled.
34
- */
35
- export function alertsCheckNow(
36
- client: OrqCore,
37
- request: operations.AlertCheckNowRequest,
38
- options?: RequestOptions,
39
- ): APIPromise<
40
- Result<
41
- components.CheckAlertNowResponse,
42
- | OrqError
43
- | ResponseValidationError
44
- | ConnectionError
45
- | RequestAbortedError
46
- | RequestTimeoutError
47
- | InvalidRequestError
48
- | UnexpectedClientError
49
- | SDKValidationError
50
- >
51
- > {
52
- return new APIPromise($do(
53
- client,
54
- request,
55
- options,
56
- ));
57
- }
58
-
59
- async function $do(
60
- client: OrqCore,
61
- request: operations.AlertCheckNowRequest,
62
- options?: RequestOptions,
63
- ): Promise<
64
- [
65
- Result<
66
- components.CheckAlertNowResponse,
67
- | OrqError
68
- | ResponseValidationError
69
- | ConnectionError
70
- | RequestAbortedError
71
- | RequestTimeoutError
72
- | InvalidRequestError
73
- | UnexpectedClientError
74
- | SDKValidationError
75
- >,
76
- APICall,
77
- ]
78
- > {
79
- const parsed = safeParse(
80
- request,
81
- (value) => operations.AlertCheckNowRequest$outboundSchema.parse(value),
82
- "Input validation failed",
83
- );
84
- if (!parsed.ok) {
85
- return [parsed, { status: "invalid" }];
86
- }
87
- const payload = parsed.value;
88
- const body = encodeJSON("body", payload.CheckAlertNowRequest, {
89
- explode: true,
90
- });
91
-
92
- const pathParams = {
93
- alert_id: encodeSimple("alert_id", payload.alert_id, {
94
- explode: false,
95
- charEncoding: "percent",
96
- }),
97
- };
98
- const path = pathToFunc("/v2/alerts/{alert_id}/check")(pathParams);
99
-
100
- const headers = new Headers(compactMap({
101
- "Content-Type": "application/json",
102
- Accept: "application/json",
103
- }));
104
-
105
- const secConfig = await extractSecurity(client._options.apiKey);
106
- const securityInput = secConfig == null ? {} : { apiKey: secConfig };
107
- const requestSecurity = resolveGlobalSecurity(securityInput);
108
-
109
- const context = {
110
- options: client._options,
111
- baseURL: options?.serverURL ?? client._baseURL ?? "",
112
- operationID: "AlertCheckNow",
113
- oAuth2Scopes: null,
114
-
115
- resolvedSecurity: requestSecurity,
116
-
117
- securitySource: client._options.apiKey,
118
- retryConfig: options?.retries
119
- || client._options.retryConfig
120
- || { strategy: "none" },
121
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
122
- };
123
-
124
- const requestRes = client._createRequest(context, {
125
- security: requestSecurity,
126
- method: "POST",
127
- baseURL: options?.serverURL,
128
- path: path,
129
- headers: headers,
130
- body: body,
131
- userAgent: client._options.userAgent,
132
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
133
- }, options);
134
- if (!requestRes.ok) {
135
- return [requestRes, { status: "invalid" }];
136
- }
137
- const req = requestRes.value;
138
-
139
- const doResult = await client._do(req, {
140
- context,
141
- isErrorStatusCode: (statusCode: number) =>
142
- matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
143
- retryConfig: context.retryConfig,
144
- retryCodes: context.retryCodes,
145
- });
146
- if (!doResult.ok) {
147
- return [doResult, { status: "request-error", request: req }];
148
- }
149
- const response = doResult.value;
150
-
151
- const [result] = await M.match<
152
- components.CheckAlertNowResponse,
153
- | OrqError
154
- | ResponseValidationError
155
- | ConnectionError
156
- | RequestAbortedError
157
- | RequestTimeoutError
158
- | InvalidRequestError
159
- | UnexpectedClientError
160
- | SDKValidationError
161
- >(
162
- M.json(200, components.CheckAlertNowResponse$inboundSchema),
163
- M.fail("4XX"),
164
- M.fail("5XX"),
165
- )(response, req);
166
- if (!result.ok) {
167
- return [result, { status: "complete", request: req, response }];
168
- }
169
-
170
- return [result, { status: "complete", request: req, response }];
171
- }
@@ -1,169 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { OrqCore } from "../core.js";
6
- import { encodeSimple } from "../lib/encodings.js";
7
- import { matchStatusCode } from "../lib/http.js";
8
- import * as M from "../lib/matchers.js";
9
- import { compactMap } from "../lib/primitives.js";
10
- import { safeParse } from "../lib/schemas.js";
11
- import { RequestOptions } from "../lib/sdks.js";
12
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
- import { pathToFunc } from "../lib/url.js";
14
- import * as components from "../models/components/index.js";
15
- import {
16
- ConnectionError,
17
- InvalidRequestError,
18
- RequestAbortedError,
19
- RequestTimeoutError,
20
- UnexpectedClientError,
21
- } from "../models/errors/httpclienterrors.js";
22
- import { OrqError } from "../models/errors/orqerror.js";
23
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
- import * as operations from "../models/operations/index.js";
26
- import { APICall, APIPromise } from "../types/async.js";
27
- import { Result } from "../types/fp.js";
28
-
29
- /**
30
- * Get current-period consumption
31
- *
32
- * @remarks
33
- * Returns the current-period cost, token, and per-minute request counters for the budget. Values reflect the live Redis state for the active period bucket.
34
- */
35
- export function budgetsGetConsumption(
36
- client: OrqCore,
37
- request: operations.BudgetGetConsumptionRequest,
38
- options?: RequestOptions,
39
- ): APIPromise<
40
- Result<
41
- components.GetBudgetConsumptionResponse,
42
- | OrqError
43
- | ResponseValidationError
44
- | ConnectionError
45
- | RequestAbortedError
46
- | RequestTimeoutError
47
- | InvalidRequestError
48
- | UnexpectedClientError
49
- | SDKValidationError
50
- >
51
- > {
52
- return new APIPromise($do(
53
- client,
54
- request,
55
- options,
56
- ));
57
- }
58
-
59
- async function $do(
60
- client: OrqCore,
61
- request: operations.BudgetGetConsumptionRequest,
62
- options?: RequestOptions,
63
- ): Promise<
64
- [
65
- Result<
66
- components.GetBudgetConsumptionResponse,
67
- | OrqError
68
- | ResponseValidationError
69
- | ConnectionError
70
- | RequestAbortedError
71
- | RequestTimeoutError
72
- | InvalidRequestError
73
- | UnexpectedClientError
74
- | SDKValidationError
75
- >,
76
- APICall,
77
- ]
78
- > {
79
- const parsed = safeParse(
80
- request,
81
- (value) =>
82
- operations.BudgetGetConsumptionRequest$outboundSchema.parse(value),
83
- "Input validation failed",
84
- );
85
- if (!parsed.ok) {
86
- return [parsed, { status: "invalid" }];
87
- }
88
- const payload = parsed.value;
89
- const body = null;
90
-
91
- const pathParams = {
92
- budget_id: encodeSimple("budget_id", payload.budget_id, {
93
- explode: false,
94
- charEncoding: "percent",
95
- }),
96
- };
97
- const path = pathToFunc("/v2/budgets/{budget_id}/consumption")(pathParams);
98
-
99
- const headers = new Headers(compactMap({
100
- Accept: "application/json",
101
- }));
102
-
103
- const secConfig = await extractSecurity(client._options.apiKey);
104
- const securityInput = secConfig == null ? {} : { apiKey: secConfig };
105
- const requestSecurity = resolveGlobalSecurity(securityInput);
106
-
107
- const context = {
108
- options: client._options,
109
- baseURL: options?.serverURL ?? client._baseURL ?? "",
110
- operationID: "BudgetGetConsumption",
111
- oAuth2Scopes: null,
112
-
113
- resolvedSecurity: requestSecurity,
114
-
115
- securitySource: client._options.apiKey,
116
- retryConfig: options?.retries
117
- || client._options.retryConfig
118
- || { strategy: "none" },
119
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
120
- };
121
-
122
- const requestRes = client._createRequest(context, {
123
- security: requestSecurity,
124
- method: "GET",
125
- baseURL: options?.serverURL,
126
- path: path,
127
- headers: headers,
128
- body: body,
129
- userAgent: client._options.userAgent,
130
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
131
- }, options);
132
- if (!requestRes.ok) {
133
- return [requestRes, { status: "invalid" }];
134
- }
135
- const req = requestRes.value;
136
-
137
- const doResult = await client._do(req, {
138
- context,
139
- isErrorStatusCode: (statusCode: number) =>
140
- matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
141
- retryConfig: context.retryConfig,
142
- retryCodes: context.retryCodes,
143
- });
144
- if (!doResult.ok) {
145
- return [doResult, { status: "request-error", request: req }];
146
- }
147
- const response = doResult.value;
148
-
149
- const [result] = await M.match<
150
- components.GetBudgetConsumptionResponse,
151
- | OrqError
152
- | ResponseValidationError
153
- | ConnectionError
154
- | RequestAbortedError
155
- | RequestTimeoutError
156
- | InvalidRequestError
157
- | UnexpectedClientError
158
- | SDKValidationError
159
- >(
160
- M.json(200, components.GetBudgetConsumptionResponse$inboundSchema),
161
- M.fail("4XX"),
162
- M.fail("5XX"),
163
- )(response, req);
164
- if (!result.ok) {
165
- return [result, { status: "complete", request: req, response }];
166
- }
167
-
168
- return [result, { status: "complete", request: req, response }];
169
- }
@@ -1,162 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { OrqCore } from "../core.js";
6
- import { encodeJSON } from "../lib/encodings.js";
7
- import { matchStatusCode } from "../lib/http.js";
8
- import * as M from "../lib/matchers.js";
9
- import { compactMap } from "../lib/primitives.js";
10
- import { safeParse } from "../lib/schemas.js";
11
- import { RequestOptions } from "../lib/sdks.js";
12
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
- import { pathToFunc } from "../lib/url.js";
14
- import * as components from "../models/components/index.js";
15
- import {
16
- ConnectionError,
17
- InvalidRequestError,
18
- RequestAbortedError,
19
- RequestTimeoutError,
20
- UnexpectedClientError,
21
- } from "../models/errors/httpclienterrors.js";
22
- import { OrqError } from "../models/errors/orqerror.js";
23
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
- import { APICall, APIPromise } from "../types/async.js";
26
- import { Result } from "../types/fp.js";
27
-
28
- /**
29
- * Create a monitor
30
- *
31
- * @remarks
32
- * Creates a monitor (custom observability dashboard) in the workspace. Set `project_id` to scope the monitor to a project; omit it to create a workspace-wide monitor, which requires admin access.
33
- */
34
- export function monitorsCreate(
35
- client: OrqCore,
36
- request: components.CreateMonitorRequest,
37
- options?: RequestOptions,
38
- ): APIPromise<
39
- Result<
40
- components.CreateMonitorResponse,
41
- | OrqError
42
- | ResponseValidationError
43
- | ConnectionError
44
- | RequestAbortedError
45
- | RequestTimeoutError
46
- | InvalidRequestError
47
- | UnexpectedClientError
48
- | SDKValidationError
49
- >
50
- > {
51
- return new APIPromise($do(
52
- client,
53
- request,
54
- options,
55
- ));
56
- }
57
-
58
- async function $do(
59
- client: OrqCore,
60
- request: components.CreateMonitorRequest,
61
- options?: RequestOptions,
62
- ): Promise<
63
- [
64
- Result<
65
- components.CreateMonitorResponse,
66
- | OrqError
67
- | ResponseValidationError
68
- | ConnectionError
69
- | RequestAbortedError
70
- | RequestTimeoutError
71
- | InvalidRequestError
72
- | UnexpectedClientError
73
- | SDKValidationError
74
- >,
75
- APICall,
76
- ]
77
- > {
78
- const parsed = safeParse(
79
- request,
80
- (value) => components.CreateMonitorRequest$outboundSchema.parse(value),
81
- "Input validation failed",
82
- );
83
- if (!parsed.ok) {
84
- return [parsed, { status: "invalid" }];
85
- }
86
- const payload = parsed.value;
87
- const body = encodeJSON("body", payload, { explode: true });
88
-
89
- const path = pathToFunc("/v2/monitors")();
90
-
91
- const headers = new Headers(compactMap({
92
- "Content-Type": "application/json",
93
- Accept: "application/json",
94
- }));
95
-
96
- const secConfig = await extractSecurity(client._options.apiKey);
97
- const securityInput = secConfig == null ? {} : { apiKey: secConfig };
98
- const requestSecurity = resolveGlobalSecurity(securityInput);
99
-
100
- const context = {
101
- options: client._options,
102
- baseURL: options?.serverURL ?? client._baseURL ?? "",
103
- operationID: "MonitorCreate",
104
- oAuth2Scopes: null,
105
-
106
- resolvedSecurity: requestSecurity,
107
-
108
- securitySource: client._options.apiKey,
109
- retryConfig: options?.retries
110
- || client._options.retryConfig
111
- || { strategy: "none" },
112
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
113
- };
114
-
115
- const requestRes = client._createRequest(context, {
116
- security: requestSecurity,
117
- method: "POST",
118
- baseURL: options?.serverURL,
119
- path: path,
120
- headers: headers,
121
- body: body,
122
- userAgent: client._options.userAgent,
123
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
124
- }, options);
125
- if (!requestRes.ok) {
126
- return [requestRes, { status: "invalid" }];
127
- }
128
- const req = requestRes.value;
129
-
130
- const doResult = await client._do(req, {
131
- context,
132
- isErrorStatusCode: (statusCode: number) =>
133
- matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
134
- retryConfig: context.retryConfig,
135
- retryCodes: context.retryCodes,
136
- });
137
- if (!doResult.ok) {
138
- return [doResult, { status: "request-error", request: req }];
139
- }
140
- const response = doResult.value;
141
-
142
- const [result] = await M.match<
143
- components.CreateMonitorResponse,
144
- | OrqError
145
- | ResponseValidationError
146
- | ConnectionError
147
- | RequestAbortedError
148
- | RequestTimeoutError
149
- | InvalidRequestError
150
- | UnexpectedClientError
151
- | SDKValidationError
152
- >(
153
- M.json(200, components.CreateMonitorResponse$inboundSchema),
154
- M.fail("4XX"),
155
- M.fail("5XX"),
156
- )(response, req);
157
- if (!result.ok) {
158
- return [result, { status: "complete", request: req, response }];
159
- }
160
-
161
- return [result, { status: "complete", request: req, response }];
162
- }
@@ -1,168 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { OrqCore } from "../core.js";
6
- import { encodeSimple } from "../lib/encodings.js";
7
- import { matchStatusCode } from "../lib/http.js";
8
- import * as M from "../lib/matchers.js";
9
- import { compactMap } from "../lib/primitives.js";
10
- import { safeParse } from "../lib/schemas.js";
11
- import { RequestOptions } from "../lib/sdks.js";
12
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
- import { pathToFunc } from "../lib/url.js";
14
- import * as components from "../models/components/index.js";
15
- import {
16
- ConnectionError,
17
- InvalidRequestError,
18
- RequestAbortedError,
19
- RequestTimeoutError,
20
- UnexpectedClientError,
21
- } from "../models/errors/httpclienterrors.js";
22
- import { OrqError } from "../models/errors/orqerror.js";
23
- import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
- import * as operations from "../models/operations/index.js";
26
- import { APICall, APIPromise } from "../types/async.js";
27
- import { Result } from "../types/fp.js";
28
-
29
- /**
30
- * Delete a monitor
31
- *
32
- * @remarks
33
- * Permanently deletes a monitor. Widgets are stored inline, so no other resources are affected.
34
- */
35
- export function monitorsDelete(
36
- client: OrqCore,
37
- request: operations.MonitorDeleteRequest,
38
- options?: RequestOptions,
39
- ): APIPromise<
40
- Result<
41
- components.DeleteMonitorResponse,
42
- | OrqError
43
- | ResponseValidationError
44
- | ConnectionError
45
- | RequestAbortedError
46
- | RequestTimeoutError
47
- | InvalidRequestError
48
- | UnexpectedClientError
49
- | SDKValidationError
50
- >
51
- > {
52
- return new APIPromise($do(
53
- client,
54
- request,
55
- options,
56
- ));
57
- }
58
-
59
- async function $do(
60
- client: OrqCore,
61
- request: operations.MonitorDeleteRequest,
62
- options?: RequestOptions,
63
- ): Promise<
64
- [
65
- Result<
66
- components.DeleteMonitorResponse,
67
- | OrqError
68
- | ResponseValidationError
69
- | ConnectionError
70
- | RequestAbortedError
71
- | RequestTimeoutError
72
- | InvalidRequestError
73
- | UnexpectedClientError
74
- | SDKValidationError
75
- >,
76
- APICall,
77
- ]
78
- > {
79
- const parsed = safeParse(
80
- request,
81
- (value) => operations.MonitorDeleteRequest$outboundSchema.parse(value),
82
- "Input validation failed",
83
- );
84
- if (!parsed.ok) {
85
- return [parsed, { status: "invalid" }];
86
- }
87
- const payload = parsed.value;
88
- const body = null;
89
-
90
- const pathParams = {
91
- monitor_id: encodeSimple("monitor_id", payload.monitor_id, {
92
- explode: false,
93
- charEncoding: "percent",
94
- }),
95
- };
96
- const path = pathToFunc("/v2/monitors/{monitor_id}")(pathParams);
97
-
98
- const headers = new Headers(compactMap({
99
- Accept: "application/json",
100
- }));
101
-
102
- const secConfig = await extractSecurity(client._options.apiKey);
103
- const securityInput = secConfig == null ? {} : { apiKey: secConfig };
104
- const requestSecurity = resolveGlobalSecurity(securityInput);
105
-
106
- const context = {
107
- options: client._options,
108
- baseURL: options?.serverURL ?? client._baseURL ?? "",
109
- operationID: "MonitorDelete",
110
- oAuth2Scopes: null,
111
-
112
- resolvedSecurity: requestSecurity,
113
-
114
- securitySource: client._options.apiKey,
115
- retryConfig: options?.retries
116
- || client._options.retryConfig
117
- || { strategy: "none" },
118
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
119
- };
120
-
121
- const requestRes = client._createRequest(context, {
122
- security: requestSecurity,
123
- method: "DELETE",
124
- baseURL: options?.serverURL,
125
- path: path,
126
- headers: headers,
127
- body: body,
128
- userAgent: client._options.userAgent,
129
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
130
- }, options);
131
- if (!requestRes.ok) {
132
- return [requestRes, { status: "invalid" }];
133
- }
134
- const req = requestRes.value;
135
-
136
- const doResult = await client._do(req, {
137
- context,
138
- isErrorStatusCode: (statusCode: number) =>
139
- matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
140
- retryConfig: context.retryConfig,
141
- retryCodes: context.retryCodes,
142
- });
143
- if (!doResult.ok) {
144
- return [doResult, { status: "request-error", request: req }];
145
- }
146
- const response = doResult.value;
147
-
148
- const [result] = await M.match<
149
- components.DeleteMonitorResponse,
150
- | OrqError
151
- | ResponseValidationError
152
- | ConnectionError
153
- | RequestAbortedError
154
- | RequestTimeoutError
155
- | InvalidRequestError
156
- | UnexpectedClientError
157
- | SDKValidationError
158
- >(
159
- M.json(200, components.DeleteMonitorResponse$inboundSchema),
160
- M.fail("4XX"),
161
- M.fail("5XX"),
162
- )(response, req);
163
- if (!result.ok) {
164
- return [result, { status: "complete", request: req, response }];
165
- }
166
-
167
- return [result, { status: "complete", request: req, response }];
168
- }