@orq-ai/node 4.14.0-rc.15 → 4.14.0-rc.17

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 (452) hide show
  1. package/README.md +37 -52
  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/accesslevel.d.ts +13 -0
  6. package/models/components/accesslevel.d.ts.map +1 -0
  7. package/models/components/{createpersonrequest.js → accesslevel.js} +11 -11
  8. package/models/components/accesslevel.js.map +1 -0
  9. package/models/components/createapikeyrequest.d.ts +3 -2
  10. package/models/components/createapikeyrequest.d.ts.map +1 -1
  11. package/models/components/createapikeyrequest.js +2 -1
  12. package/models/components/createapikeyrequest.js.map +1 -1
  13. package/models/components/createmanagementkeyrequest.d.ts +3 -2
  14. package/models/components/createmanagementkeyrequest.d.ts.map +1 -1
  15. package/models/components/createmanagementkeyrequest.js +2 -1
  16. package/models/components/createmanagementkeyrequest.js.map +1 -1
  17. package/models/components/domain.d.ts +13 -7
  18. package/models/components/domain.d.ts.map +1 -1
  19. package/models/components/domain.js +5 -1
  20. package/models/components/domain.js.map +1 -1
  21. package/models/components/domaingroup.d.ts +11 -0
  22. package/models/components/domaingroup.d.ts.map +1 -0
  23. package/models/components/{resendinvitationrequest.js → domaingroup.js} +9 -7
  24. package/models/components/domaingroup.js.map +1 -0
  25. package/models/components/embeddingorqparams.d.ts +3 -6
  26. package/models/components/embeddingorqparams.d.ts.map +1 -1
  27. package/models/components/embeddingorqparams.js +2 -2
  28. package/models/components/embeddingorqparams.js.map +1 -1
  29. package/models/components/evaluatorresponsefunction.js +2 -2
  30. package/models/components/evaluatorresponsehttp.js +2 -2
  31. package/models/components/evaluatorresponsejsonschema.js +2 -2
  32. package/models/components/evaluatorresponsellm.js +2 -2
  33. package/models/components/evaluatorresponsepython.js +2 -2
  34. package/models/components/evaluatorresponseragas.js +2 -2
  35. package/models/components/evaluatorresponsetypescript.js +2 -2
  36. package/models/components/index.d.ts +6 -11
  37. package/models/components/index.d.ts.map +1 -1
  38. package/models/components/index.js +6 -11
  39. package/models/components/index.js.map +1 -1
  40. package/models/components/listmanagementcapabilitiesresponse.d.ts +2 -2
  41. package/models/components/listmanagementcapabilitiesresponse.d.ts.map +1 -1
  42. package/models/components/listmanagementcapabilitiesresponse.js +2 -2
  43. package/models/components/listmanagementcapabilitiesresponse.js.map +1 -1
  44. package/models/components/managementdomain.d.ts +37 -0
  45. package/models/components/managementdomain.d.ts.map +1 -0
  46. package/models/components/{updatepersonrequest.js → managementdomain.js} +14 -12
  47. package/models/components/managementdomain.js.map +1 -0
  48. package/models/components/managementdomaingroup.d.ts +9 -0
  49. package/models/components/managementdomaingroup.d.ts.map +1 -0
  50. package/models/components/{personstatus.js → managementdomaingroup.js} +5 -7
  51. package/models/components/managementdomaingroup.js.map +1 -0
  52. package/models/components/managementkey.d.ts +2 -1
  53. package/models/components/managementkey.d.ts.map +1 -1
  54. package/models/components/managementkey.js +2 -1
  55. package/models/components/managementkey.js.map +1 -1
  56. package/models/components/publicresponseresource.d.ts +2 -5
  57. package/models/components/publicresponseresource.d.ts.map +1 -1
  58. package/models/components/publicresponseresource.js +2 -2
  59. package/models/components/publicresponseresource.js.map +1 -1
  60. package/models/components/reasoningpart.js +1 -1
  61. package/models/components/responsetelemetry.d.ts +11 -0
  62. package/models/components/responsetelemetry.d.ts.map +1 -0
  63. package/models/components/{listpeopleresponse.js → responsetelemetry.js} +10 -11
  64. package/models/components/responsetelemetry.js.map +1 -0
  65. package/models/components/scopemode.d.ts +10 -0
  66. package/models/components/scopemode.d.ts.map +1 -0
  67. package/models/components/{deletepersonresponse.js → scopemode.js} +8 -8
  68. package/models/components/scopemode.js.map +1 -0
  69. package/models/components/updateapikeyrequest.d.ts +3 -2
  70. package/models/components/updateapikeyrequest.d.ts.map +1 -1
  71. package/models/components/updateapikeyrequest.js +2 -1
  72. package/models/components/updateapikeyrequest.js.map +1 -1
  73. package/models/components/updatemanagementkeyrequest.d.ts +3 -2
  74. package/models/components/updatemanagementkeyrequest.d.ts.map +1 -1
  75. package/models/components/updatemanagementkeyrequest.js +2 -1
  76. package/models/components/updatemanagementkeyrequest.js.map +1 -1
  77. package/models/operations/createannotationqueue.js +1 -1
  78. package/models/operations/createdataset.js +1 -1
  79. package/models/operations/createdatasetitem.js +5 -5
  80. package/models/operations/createdatasource.js +1 -1
  81. package/models/operations/createrouterresponse.d.ts +1 -4
  82. package/models/operations/createrouterresponse.d.ts.map +1 -1
  83. package/models/operations/createrouterresponse.js +1 -1
  84. package/models/operations/createrouterresponse.js.map +1 -1
  85. package/models/operations/createtool.js +6 -6
  86. package/models/operations/getalltools.js +6 -6
  87. package/models/operations/geteval.js +16 -16
  88. package/models/operations/getv2humanevalsets.js +2 -2
  89. package/models/operations/getv2humanevalsetsid.js +2 -2
  90. package/models/operations/index.d.ts +0 -5
  91. package/models/operations/index.d.ts.map +1 -1
  92. package/models/operations/index.js +0 -5
  93. package/models/operations/index.js.map +1 -1
  94. package/models/operations/listannotationqueues.js +1 -1
  95. package/models/operations/listdatasetdatapoints.js +5 -5
  96. package/models/operations/listdatasets.js +1 -1
  97. package/models/operations/listdatasources.js +1 -1
  98. package/models/operations/patchv2humanevalsetsid.js +2 -2
  99. package/models/operations/postv2feedbackevaluation.js +4 -4
  100. package/models/operations/postv2humanevalsets.js +2 -2
  101. package/models/operations/responsebodynodes.js +33 -33
  102. package/models/operations/retrieveannotationqueue.js +1 -1
  103. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody204.js +31 -31
  104. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody8attributesopenresponsesoutput2.js +6 -6
  105. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody13attributes5.js +16 -16
  106. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody19attributeslogprobs.js +14 -14
  107. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributes8.js +18 -18
  108. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody24attributesopenresponsesoutput44type.js +16 -16
  109. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody257.js +2 -2
  110. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributesopenresponsesoutput44type.js +16 -16
  111. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody307.js +2 -2
  112. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody44.js +16 -16
  113. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse1.js +34 -34
  114. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse20015.js +7 -7
  115. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody102.js +32 -32
  116. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq10kind.js +15 -15
  117. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorqsource.js +2 -2
  118. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody13attributesorq8kind.js +19 -19
  119. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1417.js +4 -4
  120. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq9evaluationtype.js +17 -17
  121. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody16attributesstatus.js +30 -30
  122. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq10evaluatorconfigtype.js +15 -15
  123. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq14outputschema.js +7 -7
  124. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq7annotator.js +21 -21
  125. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq16annotator.js +4 -4
  126. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq9annotator.js +17 -17
  127. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorq5outputschema.js +24 -24
  128. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq15outputschema.js +5 -5
  129. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq8annotator.js +19 -19
  130. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq19kind.js +1 -1
  131. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25status.js +32 -32
  132. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody26attributesorq12status.js +11 -11
  133. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorq4evaluationtype.js +26 -26
  134. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq15outputschema.js +5 -5
  135. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq8annotator.js +19 -19
  136. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2source.js +2 -2
  137. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq19kind.js +1 -1
  138. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30status.js +32 -32
  139. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq17type.js +3 -3
  140. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorqvalue.js +15 -15
  141. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesevaluatorconfigtype.js +30 -30
  142. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3413.js +11 -11
  143. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.js +24 -24
  144. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq19outputschema.js +1 -1
  145. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq8outputschema.js +19 -19
  146. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq4kind.js +26 -26
  147. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq12status.js +11 -11
  148. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorqannotator.js +28 -28
  149. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq12evaluatorconfigtype.js +11 -11
  150. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponseevaluatorconfigtype.js +25 -25
  151. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse2008.js +28 -28
  152. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody11attributestype.js +20 -20
  153. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody173.js +20 -20
  154. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody18attributesopenresponses6role.js +28 -28
  155. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26attributesopenresponsestype.js +24 -24
  156. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody321.js +20 -20
  157. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody345.js +24 -24
  158. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody7attributesopenresponsestype.js +24 -24
  159. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody9attributesrole.js +24 -24
  160. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody10role.js +2 -2
  161. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody155.js +18 -18
  162. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody16status.js +4 -4
  163. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody23attributes1.js +30 -30
  164. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody28attributes1.js +30 -30
  165. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody333.js +4 -4
  166. package/models/operations/retrieveannotationqueueitemresponsebody.js +1 -1
  167. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10evaluation.js +1 -1
  168. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson12nodes.js +33 -33
  169. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson14attributesresponse.js +31 -31
  170. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16score.js +1 -1
  171. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27choice.js +1 -1
  172. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson31otlp.js +32 -32
  173. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33provider.js +1 -1
  174. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson6response.js +1 -1
  175. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8tool.js +1 -1
  176. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody22attributestype.js +10 -10
  177. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody27logprobs.js +8 -8
  178. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody353.js +10 -10
  179. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody6type.js +8 -8
  180. package/models/operations/retrievedatapoint.js +5 -5
  181. package/models/operations/retrievedataset.js +1 -1
  182. package/models/operations/retrievedatasource.js +1 -1
  183. package/models/operations/retrieveresponse.d.ts +1 -4
  184. package/models/operations/retrieveresponse.d.ts.map +1 -1
  185. package/models/operations/retrieveresponse.js +1 -1
  186. package/models/operations/retrieveresponse.js.map +1 -1
  187. package/models/operations/retrievetool.js +6 -6
  188. package/models/operations/runagent.js +1 -1
  189. package/models/operations/streamrunagent.js +1 -1
  190. package/models/operations/summary4.js +10 -10
  191. package/models/operations/twentythree.js +1 -1
  192. package/models/operations/updateannotationqueue.js +1 -1
  193. package/models/operations/updatedatapoint.js +5 -5
  194. package/models/operations/updatedataset.js +1 -1
  195. package/models/operations/updatedatasource.js +1 -1
  196. package/models/operations/updatetool.js +7 -7
  197. package/package.json +7 -7
  198. package/sdk/feedback.d.ts +1 -4
  199. package/sdk/feedback.d.ts.map +1 -1
  200. package/sdk/feedback.js +1 -4
  201. package/sdk/feedback.js.map +1 -1
  202. package/sdk/sdk.d.ts +0 -3
  203. package/sdk/sdk.d.ts.map +1 -1
  204. package/sdk/sdk.js +0 -4
  205. package/sdk/sdk.js.map +1 -1
  206. package/src/lib/config.ts +2 -2
  207. package/src/models/components/accesslevel.ts +20 -0
  208. package/src/models/components/createapikeyrequest.ts +4 -3
  209. package/src/models/components/createmanagementkeyrequest.ts +4 -3
  210. package/src/models/components/domain.ts +16 -8
  211. package/src/models/components/domaingroup.ts +17 -0
  212. package/src/models/components/embeddingorqparams.ts +7 -10
  213. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  214. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  215. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  216. package/src/models/components/evaluatorresponsellm.ts +2 -2
  217. package/src/models/components/evaluatorresponsepython.ts +2 -2
  218. package/src/models/components/evaluatorresponseragas.ts +2 -2
  219. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  220. package/src/models/components/index.ts +6 -11
  221. package/src/models/components/listmanagementcapabilitiesresponse.ts +6 -3
  222. package/src/models/components/managementdomain.ts +70 -0
  223. package/src/models/components/managementdomaingroup.ts +16 -0
  224. package/src/models/components/managementkey.ts +3 -2
  225. package/src/models/components/publicresponseresource.ts +6 -6
  226. package/src/models/components/reasoningpart.ts +1 -1
  227. package/src/models/components/responsetelemetry.ts +39 -0
  228. package/src/models/components/scopemode.ts +16 -0
  229. package/src/models/components/updateapikeyrequest.ts +4 -3
  230. package/src/models/components/updatemanagementkeyrequest.ts +4 -3
  231. package/src/models/operations/createannotationqueue.ts +1 -1
  232. package/src/models/operations/createdataset.ts +1 -1
  233. package/src/models/operations/createdatasetitem.ts +5 -5
  234. package/src/models/operations/createdatasource.ts +1 -1
  235. package/src/models/operations/createrouterresponse.ts +2 -5
  236. package/src/models/operations/createtool.ts +6 -6
  237. package/src/models/operations/getalltools.ts +6 -6
  238. package/src/models/operations/geteval.ts +16 -16
  239. package/src/models/operations/getv2humanevalsets.ts +2 -2
  240. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  241. package/src/models/operations/index.ts +0 -5
  242. package/src/models/operations/listannotationqueues.ts +1 -1
  243. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  244. package/src/models/operations/listdatasets.ts +1 -1
  245. package/src/models/operations/listdatasources.ts +1 -1
  246. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  247. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  248. package/src/models/operations/postv2humanevalsets.ts +2 -2
  249. package/src/models/operations/responsebodynodes.ts +33 -33
  250. package/src/models/operations/retrieveannotationqueue.ts +1 -1
  251. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody204.ts +31 -31
  252. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody8attributesopenresponsesoutput2.ts +6 -6
  253. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody13attributes5.ts +16 -16
  254. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody19attributeslogprobs.ts +14 -14
  255. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributes8.ts +18 -18
  256. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody24attributesopenresponsesoutput44type.ts +16 -16
  257. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody257.ts +2 -2
  258. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributesopenresponsesoutput44type.ts +16 -16
  259. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody307.ts +2 -2
  260. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody44.ts +16 -16
  261. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse1.ts +34 -34
  262. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse20015.ts +7 -7
  263. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody102.ts +32 -32
  264. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq10kind.ts +15 -15
  265. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorqsource.ts +2 -2
  266. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody13attributesorq8kind.ts +19 -19
  267. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1417.ts +4 -4
  268. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq9evaluationtype.ts +17 -17
  269. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody16attributesstatus.ts +30 -30
  270. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq10evaluatorconfigtype.ts +15 -15
  271. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq14outputschema.ts +7 -7
  272. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq7annotator.ts +21 -21
  273. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq16annotator.ts +4 -4
  274. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq9annotator.ts +17 -17
  275. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorq5outputschema.ts +24 -24
  276. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq15outputschema.ts +5 -5
  277. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq8annotator.ts +19 -19
  278. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq19kind.ts +1 -1
  279. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25status.ts +32 -32
  280. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody26attributesorq12status.ts +11 -11
  281. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorq4evaluationtype.ts +26 -26
  282. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq15outputschema.ts +5 -5
  283. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq8annotator.ts +19 -19
  284. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2source.ts +2 -2
  285. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq19kind.ts +1 -1
  286. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30status.ts +32 -32
  287. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq17type.ts +3 -3
  288. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorqvalue.ts +15 -15
  289. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesevaluatorconfigtype.ts +30 -30
  290. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3413.ts +11 -11
  291. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.ts +24 -24
  292. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq19outputschema.ts +1 -1
  293. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq8outputschema.ts +19 -19
  294. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq4kind.ts +26 -26
  295. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq12status.ts +11 -11
  296. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorqannotator.ts +28 -28
  297. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq12evaluatorconfigtype.ts +11 -11
  298. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponseevaluatorconfigtype.ts +25 -25
  299. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse2008.ts +28 -28
  300. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody11attributestype.ts +20 -20
  301. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody173.ts +20 -20
  302. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody18attributesopenresponses6role.ts +28 -28
  303. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26attributesopenresponsestype.ts +24 -24
  304. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody321.ts +20 -20
  305. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody345.ts +24 -24
  306. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody7attributesopenresponsestype.ts +24 -24
  307. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody9attributesrole.ts +24 -24
  308. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody10role.ts +2 -2
  309. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody155.ts +18 -18
  310. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody16status.ts +4 -4
  311. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody23attributes1.ts +30 -30
  312. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody28attributes1.ts +30 -30
  313. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody333.ts +4 -4
  314. package/src/models/operations/retrieveannotationqueueitemresponsebody.ts +1 -1
  315. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10evaluation.ts +1 -1
  316. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson12nodes.ts +33 -33
  317. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson14attributesresponse.ts +31 -31
  318. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16score.ts +1 -1
  319. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27choice.ts +1 -1
  320. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson31otlp.ts +32 -32
  321. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33provider.ts +1 -1
  322. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson6response.ts +1 -1
  323. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8tool.ts +1 -1
  324. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody22attributestype.ts +10 -10
  325. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody27logprobs.ts +8 -8
  326. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody353.ts +10 -10
  327. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody6type.ts +8 -8
  328. package/src/models/operations/retrievedatapoint.ts +5 -5
  329. package/src/models/operations/retrievedataset.ts +1 -1
  330. package/src/models/operations/retrievedatasource.ts +1 -1
  331. package/src/models/operations/retrieveresponse.ts +2 -5
  332. package/src/models/operations/retrievetool.ts +6 -6
  333. package/src/models/operations/runagent.ts +1 -1
  334. package/src/models/operations/streamrunagent.ts +1 -1
  335. package/src/models/operations/summary4.ts +10 -10
  336. package/src/models/operations/twentythree.ts +1 -1
  337. package/src/models/operations/updateannotationqueue.ts +1 -1
  338. package/src/models/operations/updatedatapoint.ts +5 -5
  339. package/src/models/operations/updatedataset.ts +1 -1
  340. package/src/models/operations/updatedatasource.ts +1 -1
  341. package/src/models/operations/updatetool.ts +7 -7
  342. package/src/sdk/feedback.ts +1 -4
  343. package/src/sdk/sdk.ts +0 -6
  344. package/funcs/peopleCreate.d.ts +0 -17
  345. package/funcs/peopleCreate.d.ts.map +0 -1
  346. package/funcs/peopleCreate.js +0 -115
  347. package/funcs/peopleCreate.js.map +0 -1
  348. package/funcs/peopleDelete.d.ts +0 -18
  349. package/funcs/peopleDelete.d.ts.map +0 -1
  350. package/funcs/peopleDelete.js +0 -121
  351. package/funcs/peopleDelete.js.map +0 -1
  352. package/funcs/peopleGet.d.ts +0 -18
  353. package/funcs/peopleGet.d.ts.map +0 -1
  354. package/funcs/peopleGet.js +0 -121
  355. package/funcs/peopleGet.js.map +0 -1
  356. package/funcs/peopleList.d.ts +0 -18
  357. package/funcs/peopleList.d.ts.map +0 -1
  358. package/funcs/peopleList.js +0 -121
  359. package/funcs/peopleList.js.map +0 -1
  360. package/funcs/peopleResendInvitation.d.ts +0 -18
  361. package/funcs/peopleResendInvitation.d.ts.map +0 -1
  362. package/funcs/peopleResendInvitation.js +0 -124
  363. package/funcs/peopleResendInvitation.js.map +0 -1
  364. package/funcs/peopleUpdate.d.ts +0 -18
  365. package/funcs/peopleUpdate.d.ts.map +0 -1
  366. package/funcs/peopleUpdate.js +0 -124
  367. package/funcs/peopleUpdate.js.map +0 -1
  368. package/models/components/createpersonrequest.d.ts +0 -25
  369. package/models/components/createpersonrequest.d.ts.map +0 -1
  370. package/models/components/createpersonrequest.js.map +0 -1
  371. package/models/components/createpersonresponse.d.ts +0 -14
  372. package/models/components/createpersonresponse.d.ts.map +0 -1
  373. package/models/components/createpersonresponse.js +0 -51
  374. package/models/components/createpersonresponse.js.map +0 -1
  375. package/models/components/deletepersonresponse.d.ts +0 -8
  376. package/models/components/deletepersonresponse.d.ts.map +0 -1
  377. package/models/components/deletepersonresponse.js.map +0 -1
  378. package/models/components/getpersonresponse.d.ts +0 -14
  379. package/models/components/getpersonresponse.d.ts.map +0 -1
  380. package/models/components/getpersonresponse.js +0 -51
  381. package/models/components/getpersonresponse.js.map +0 -1
  382. package/models/components/listpeopleresponse.d.ts +0 -25
  383. package/models/components/listpeopleresponse.d.ts.map +0 -1
  384. package/models/components/listpeopleresponse.js.map +0 -1
  385. package/models/components/person.d.ts +0 -51
  386. package/models/components/person.d.ts.map +0 -1
  387. package/models/components/person.js +0 -72
  388. package/models/components/person.js.map +0 -1
  389. package/models/components/personstatus.d.ts +0 -11
  390. package/models/components/personstatus.d.ts.map +0 -1
  391. package/models/components/personstatus.js.map +0 -1
  392. package/models/components/resendinvitationrequest.d.ts +0 -8
  393. package/models/components/resendinvitationrequest.d.ts.map +0 -1
  394. package/models/components/resendinvitationrequest.js.map +0 -1
  395. package/models/components/resendinvitationresponse.d.ts +0 -14
  396. package/models/components/resendinvitationresponse.d.ts.map +0 -1
  397. package/models/components/resendinvitationresponse.js +0 -51
  398. package/models/components/resendinvitationresponse.js.map +0 -1
  399. package/models/components/updatepersonrequest.d.ts +0 -30
  400. package/models/components/updatepersonrequest.d.ts.map +0 -1
  401. package/models/components/updatepersonrequest.js.map +0 -1
  402. package/models/components/updatepersonresponse.d.ts +0 -14
  403. package/models/components/updatepersonresponse.d.ts.map +0 -1
  404. package/models/components/updatepersonresponse.js +0 -51
  405. package/models/components/updatepersonresponse.js.map +0 -1
  406. package/models/operations/persondelete.d.ts +0 -15
  407. package/models/operations/persondelete.d.ts.map +0 -1
  408. package/models/operations/persondelete.js +0 -54
  409. package/models/operations/persondelete.js.map +0 -1
  410. package/models/operations/personget.d.ts +0 -15
  411. package/models/operations/personget.d.ts.map +0 -1
  412. package/models/operations/personget.js +0 -54
  413. package/models/operations/personget.js.map +0 -1
  414. package/models/operations/personlist.d.ts +0 -31
  415. package/models/operations/personlist.d.ts.map +0 -1
  416. package/models/operations/personlist.js +0 -57
  417. package/models/operations/personlist.js.map +0 -1
  418. package/models/operations/personresendinvitation.d.ts +0 -18
  419. package/models/operations/personresendinvitation.d.ts.map +0 -1
  420. package/models/operations/personresendinvitation.js +0 -57
  421. package/models/operations/personresendinvitation.js.map +0 -1
  422. package/models/operations/personupdate.d.ts +0 -18
  423. package/models/operations/personupdate.d.ts.map +0 -1
  424. package/models/operations/personupdate.js +0 -57
  425. package/models/operations/personupdate.js.map +0 -1
  426. package/sdk/people.d.ts +0 -48
  427. package/sdk/people.d.ts.map +0 -1
  428. package/sdk/people.js +0 -72
  429. package/sdk/people.js.map +0 -1
  430. package/src/funcs/peopleCreate.ts +0 -162
  431. package/src/funcs/peopleDelete.ts +0 -168
  432. package/src/funcs/peopleGet.ts +0 -168
  433. package/src/funcs/peopleList.ts +0 -170
  434. package/src/funcs/peopleResendInvitation.ts +0 -172
  435. package/src/funcs/peopleUpdate.ts +0 -171
  436. package/src/models/components/createpersonrequest.ts +0 -46
  437. package/src/models/components/createpersonresponse.ts +0 -35
  438. package/src/models/components/deletepersonresponse.ts +0 -27
  439. package/src/models/components/getpersonresponse.ts +0 -35
  440. package/src/models/components/listpeopleresponse.ts +0 -53
  441. package/src/models/components/person.ts +0 -95
  442. package/src/models/components/personstatus.ts +0 -17
  443. package/src/models/components/resendinvitationrequest.ts +0 -25
  444. package/src/models/components/resendinvitationresponse.ts +0 -35
  445. package/src/models/components/updatepersonrequest.ts +0 -58
  446. package/src/models/components/updatepersonresponse.ts +0 -35
  447. package/src/models/operations/persondelete.ts +0 -39
  448. package/src/models/operations/personget.ts +0 -39
  449. package/src/models/operations/personlist.ts +0 -58
  450. package/src/models/operations/personresendinvitation.ts +0 -46
  451. package/src/models/operations/personupdate.ts +0 -44
  452. package/src/sdk/people.ts +0 -118
@@ -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 person
31
- *
32
- * @remarks
33
- * Removes a member or invited user from the workspace. API keys owned by the removed user are cascade revoked. The response body is empty when the delete succeeds.
34
- */
35
- export function peopleDelete(
36
- client: OrqCore,
37
- request: operations.PersonDeleteRequest,
38
- options?: RequestOptions,
39
- ): APIPromise<
40
- Result<
41
- components.DeletePersonResponse,
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.PersonDeleteRequest,
62
- options?: RequestOptions,
63
- ): Promise<
64
- [
65
- Result<
66
- components.DeletePersonResponse,
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.PersonDeleteRequest$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
- person_id: encodeSimple("person_id", payload.person_id, {
92
- explode: false,
93
- charEncoding: "percent",
94
- }),
95
- };
96
- const path = pathToFunc("/v2/people/{person_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: "PersonDelete",
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.DeletePersonResponse,
150
- | OrqError
151
- | ResponseValidationError
152
- | ConnectionError
153
- | RequestAbortedError
154
- | RequestTimeoutError
155
- | InvalidRequestError
156
- | UnexpectedClientError
157
- | SDKValidationError
158
- >(
159
- M.json(200, components.DeletePersonResponse$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
- }
@@ -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
- * Retrieve a person
31
- *
32
- * @remarks
33
- * Retrieves the details of an existing workspace member or invited user by their person ID.
34
- */
35
- export function peopleGet(
36
- client: OrqCore,
37
- request: operations.PersonGetRequest,
38
- options?: RequestOptions,
39
- ): APIPromise<
40
- Result<
41
- components.GetPersonResponse,
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.PersonGetRequest,
62
- options?: RequestOptions,
63
- ): Promise<
64
- [
65
- Result<
66
- components.GetPersonResponse,
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.PersonGetRequest$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
- person_id: encodeSimple("person_id", payload.person_id, {
92
- explode: false,
93
- charEncoding: "percent",
94
- }),
95
- };
96
- const path = pathToFunc("/v2/people/{person_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: "PersonGet",
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: "GET",
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.GetPersonResponse,
150
- | OrqError
151
- | ResponseValidationError
152
- | ConnectionError
153
- | RequestAbortedError
154
- | RequestTimeoutError
155
- | InvalidRequestError
156
- | UnexpectedClientError
157
- | SDKValidationError
158
- >(
159
- M.json(200, components.GetPersonResponse$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
- }
@@ -1,170 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { OrqCore } from "../core.js";
6
- import { encodeFormQuery } 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
- * List all people
31
- *
32
- * @remarks
33
- * Returns a paginated list of people in the current workspace. Use `starting_after` or `ending_before` to page through large collections.
34
- */
35
- export function peopleList(
36
- client: OrqCore,
37
- request?: operations.PersonListRequest | undefined,
38
- options?: RequestOptions,
39
- ): APIPromise<
40
- Result<
41
- components.ListPeopleResponse,
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.PersonListRequest | undefined,
62
- options?: RequestOptions,
63
- ): Promise<
64
- [
65
- Result<
66
- components.ListPeopleResponse,
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.PersonListRequest$outboundSchema.optional().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 path = pathToFunc("/v2/people")();
92
-
93
- const query = encodeFormQuery({
94
- "ending_before": payload?.ending_before,
95
- "limit": payload?.limit,
96
- "starting_after": payload?.starting_after,
97
- });
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: "PersonList",
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
- query: query,
129
- body: body,
130
- userAgent: client._options.userAgent,
131
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
132
- }, options);
133
- if (!requestRes.ok) {
134
- return [requestRes, { status: "invalid" }];
135
- }
136
- const req = requestRes.value;
137
-
138
- const doResult = await client._do(req, {
139
- context,
140
- isErrorStatusCode: (statusCode: number) =>
141
- matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
142
- retryConfig: context.retryConfig,
143
- retryCodes: context.retryCodes,
144
- });
145
- if (!doResult.ok) {
146
- return [doResult, { status: "request-error", request: req }];
147
- }
148
- const response = doResult.value;
149
-
150
- const [result] = await M.match<
151
- components.ListPeopleResponse,
152
- | OrqError
153
- | ResponseValidationError
154
- | ConnectionError
155
- | RequestAbortedError
156
- | RequestTimeoutError
157
- | InvalidRequestError
158
- | UnexpectedClientError
159
- | SDKValidationError
160
- >(
161
- M.json(200, components.ListPeopleResponse$inboundSchema),
162
- M.fail("4XX"),
163
- M.fail("5XX"),
164
- )(response, req);
165
- if (!result.ok) {
166
- return [result, { status: "complete", request: req, response }];
167
- }
168
-
169
- return [result, { status: "complete", request: req, response }];
170
- }
@@ -1,172 +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
- * Resend invitation
31
- *
32
- * @remarks
33
- * Resends the invitation email to a pending workspace member. Has no effect if the person has already accepted.
34
- */
35
- export function peopleResendInvitation(
36
- client: OrqCore,
37
- request: operations.PersonResendInvitationRequest,
38
- options?: RequestOptions,
39
- ): APIPromise<
40
- Result<
41
- components.ResendInvitationResponse,
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.PersonResendInvitationRequest,
62
- options?: RequestOptions,
63
- ): Promise<
64
- [
65
- Result<
66
- components.ResendInvitationResponse,
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.PersonResendInvitationRequest$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 = encodeJSON("body", payload.ResendInvitationRequest, {
90
- explode: true,
91
- });
92
-
93
- const pathParams = {
94
- person_id: encodeSimple("person_id", payload.person_id, {
95
- explode: false,
96
- charEncoding: "percent",
97
- }),
98
- };
99
- const path = pathToFunc("/v2/people/{person_id}:resend")(pathParams);
100
-
101
- const headers = new Headers(compactMap({
102
- "Content-Type": "application/json",
103
- Accept: "application/json",
104
- }));
105
-
106
- const secConfig = await extractSecurity(client._options.apiKey);
107
- const securityInput = secConfig == null ? {} : { apiKey: secConfig };
108
- const requestSecurity = resolveGlobalSecurity(securityInput);
109
-
110
- const context = {
111
- options: client._options,
112
- baseURL: options?.serverURL ?? client._baseURL ?? "",
113
- operationID: "PersonResendInvitation",
114
- oAuth2Scopes: null,
115
-
116
- resolvedSecurity: requestSecurity,
117
-
118
- securitySource: client._options.apiKey,
119
- retryConfig: options?.retries
120
- || client._options.retryConfig
121
- || { strategy: "none" },
122
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
123
- };
124
-
125
- const requestRes = client._createRequest(context, {
126
- security: requestSecurity,
127
- method: "POST",
128
- baseURL: options?.serverURL,
129
- path: path,
130
- headers: headers,
131
- body: body,
132
- userAgent: client._options.userAgent,
133
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
134
- }, options);
135
- if (!requestRes.ok) {
136
- return [requestRes, { status: "invalid" }];
137
- }
138
- const req = requestRes.value;
139
-
140
- const doResult = await client._do(req, {
141
- context,
142
- isErrorStatusCode: (statusCode: number) =>
143
- matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
144
- retryConfig: context.retryConfig,
145
- retryCodes: context.retryCodes,
146
- });
147
- if (!doResult.ok) {
148
- return [doResult, { status: "request-error", request: req }];
149
- }
150
- const response = doResult.value;
151
-
152
- const [result] = await M.match<
153
- components.ResendInvitationResponse,
154
- | OrqError
155
- | ResponseValidationError
156
- | ConnectionError
157
- | RequestAbortedError
158
- | RequestTimeoutError
159
- | InvalidRequestError
160
- | UnexpectedClientError
161
- | SDKValidationError
162
- >(
163
- M.json(200, components.ResendInvitationResponse$inboundSchema),
164
- M.fail("4XX"),
165
- M.fail("5XX"),
166
- )(response, req);
167
- if (!result.ok) {
168
- return [result, { status: "complete", request: req, response }];
169
- }
170
-
171
- return [result, { status: "complete", request: req, response }];
172
- }