@orq-ai/node 4.14.0-rc.14 → 4.14.0-rc.16

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 (492) 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/createchatcompletion.d.ts +12 -12
  79. package/models/operations/createchatcompletion.d.ts.map +1 -1
  80. package/models/operations/createchatcompletion.js +5 -4
  81. package/models/operations/createchatcompletion.js.map +1 -1
  82. package/models/operations/createcompletion.d.ts +12 -12
  83. package/models/operations/createcompletion.d.ts.map +1 -1
  84. package/models/operations/createcompletion.js +4 -4
  85. package/models/operations/createcompletion.js.map +1 -1
  86. package/models/operations/createdataset.js +1 -1
  87. package/models/operations/createdatasetitem.js +5 -5
  88. package/models/operations/createdatasource.js +1 -1
  89. package/models/operations/createknowledge.d.ts +82 -4
  90. package/models/operations/createknowledge.d.ts.map +1 -1
  91. package/models/operations/createknowledge.js +46 -1
  92. package/models/operations/createknowledge.js.map +1 -1
  93. package/models/operations/createrouterresponse.d.ts +1 -4
  94. package/models/operations/createrouterresponse.d.ts.map +1 -1
  95. package/models/operations/createrouterresponse.js +1 -1
  96. package/models/operations/createrouterresponse.js.map +1 -1
  97. package/models/operations/createtool.js +6 -6
  98. package/models/operations/getalltools.js +6 -6
  99. package/models/operations/geteval.js +16 -16
  100. package/models/operations/getoneknowledge.d.ts +2 -2
  101. package/models/operations/getv2humanevalsets.js +2 -2
  102. package/models/operations/getv2humanevalsetsid.js +2 -2
  103. package/models/operations/index.d.ts +0 -5
  104. package/models/operations/index.d.ts.map +1 -1
  105. package/models/operations/index.js +0 -5
  106. package/models/operations/index.js.map +1 -1
  107. package/models/operations/listannotationqueues.js +1 -1
  108. package/models/operations/listdatasetdatapoints.js +5 -5
  109. package/models/operations/listdatasets.js +1 -1
  110. package/models/operations/listdatasources.js +1 -1
  111. package/models/operations/listknowledgebases.d.ts +2 -2
  112. package/models/operations/patchv2humanevalsetsid.js +2 -2
  113. package/models/operations/postv2feedbackevaluation.js +4 -4
  114. package/models/operations/postv2humanevalsets.js +2 -2
  115. package/models/operations/responsebodynodes.js +33 -33
  116. package/models/operations/responsebodyusage.d.ts +9 -9
  117. package/models/operations/responsebodyusage.d.ts.map +1 -1
  118. package/models/operations/responsebodyusage.js +4 -4
  119. package/models/operations/responsebodyusage.js.map +1 -1
  120. package/models/operations/retrieveannotationqueue.js +1 -1
  121. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody204.js +31 -31
  122. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody8attributesopenresponsesoutput2.js +6 -6
  123. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody13attributes5.js +16 -16
  124. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody19attributeslogprobs.js +14 -14
  125. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributes8.js +18 -18
  126. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody24attributesopenresponsesoutput44type.js +16 -16
  127. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody257.js +2 -2
  128. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributesopenresponsesoutput44type.js +16 -16
  129. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody307.js +2 -2
  130. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody44.js +16 -16
  131. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse1.js +34 -34
  132. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse20015.js +7 -7
  133. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody102.js +32 -32
  134. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq10kind.js +15 -15
  135. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorqsource.js +2 -2
  136. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody13attributesorq8kind.js +19 -19
  137. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1417.js +4 -4
  138. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq9evaluationtype.js +17 -17
  139. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody16attributesstatus.js +30 -30
  140. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq10evaluatorconfigtype.js +15 -15
  141. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq14outputschema.js +7 -7
  142. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq7annotator.js +21 -21
  143. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq16annotator.js +4 -4
  144. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq9annotator.js +17 -17
  145. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorq5outputschema.js +24 -24
  146. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq15outputschema.js +5 -5
  147. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq8annotator.js +19 -19
  148. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq19kind.js +1 -1
  149. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25status.js +32 -32
  150. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody26attributesorq12status.js +11 -11
  151. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorq4evaluationtype.js +26 -26
  152. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq15outputschema.js +5 -5
  153. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq8annotator.js +19 -19
  154. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2source.d.ts +9 -9
  155. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2source.d.ts.map +1 -1
  156. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2source.js +6 -6
  157. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2source.js.map +1 -1
  158. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq19kind.js +1 -1
  159. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30status.js +32 -32
  160. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq17type.js +3 -3
  161. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorqvalue.js +15 -15
  162. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesevaluatorconfigtype.js +30 -30
  163. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3413.js +11 -11
  164. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.js +24 -24
  165. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq19outputschema.js +1 -1
  166. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq8outputschema.js +19 -19
  167. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq4kind.js +26 -26
  168. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq12status.js +11 -11
  169. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorqannotator.js +28 -28
  170. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq12evaluatorconfigtype.js +11 -11
  171. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponseevaluatorconfigtype.js +25 -25
  172. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse2008.js +28 -28
  173. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody11attributestype.js +20 -20
  174. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody173.js +20 -20
  175. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody18attributesopenresponses6role.js +28 -28
  176. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26attributesopenresponsestype.js +24 -24
  177. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody321.js +20 -20
  178. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody345.js +24 -24
  179. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody7attributesopenresponsestype.js +24 -24
  180. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody9attributesrole.js +24 -24
  181. package/models/operations/retrieveannotationqueueiteminputorq.d.ts +9 -9
  182. package/models/operations/retrieveannotationqueueiteminputorq.d.ts.map +1 -1
  183. package/models/operations/retrieveannotationqueueiteminputorq.js +4 -5
  184. package/models/operations/retrieveannotationqueueiteminputorq.js.map +1 -1
  185. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody10role.js +2 -2
  186. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody155.js +18 -18
  187. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody16status.js +4 -4
  188. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody23attributes1.js +30 -30
  189. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody28attributes1.js +30 -30
  190. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody333.js +4 -4
  191. package/models/operations/retrieveannotationqueueitemresponsebody.js +1 -1
  192. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10evaluation.js +1 -1
  193. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson12nodes.js +33 -33
  194. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson14attributesresponse.js +31 -31
  195. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16score.js +1 -1
  196. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27choice.js +1 -1
  197. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson31otlp.js +32 -32
  198. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33provider.js +1 -1
  199. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson6response.js +1 -1
  200. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8tool.js +1 -1
  201. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody22attributestype.js +10 -10
  202. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody27logprobs.js +8 -8
  203. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody353.js +10 -10
  204. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody6type.js +8 -8
  205. package/models/operations/retrievedatapoint.js +5 -5
  206. package/models/operations/retrievedataset.js +1 -1
  207. package/models/operations/retrievedatasource.js +1 -1
  208. package/models/operations/retrieveresponse.d.ts +1 -4
  209. package/models/operations/retrieveresponse.d.ts.map +1 -1
  210. package/models/operations/retrieveresponse.js +1 -1
  211. package/models/operations/retrieveresponse.js.map +1 -1
  212. package/models/operations/retrievetool.js +6 -6
  213. package/models/operations/runagent.js +1 -1
  214. package/models/operations/searchknowledge.d.ts +12 -12
  215. package/models/operations/searchknowledge.d.ts.map +1 -1
  216. package/models/operations/searchknowledge.js +4 -4
  217. package/models/operations/searchknowledge.js.map +1 -1
  218. package/models/operations/streamrunagent.js +1 -1
  219. package/models/operations/summary4.js +10 -10
  220. package/models/operations/twentythree.js +1 -1
  221. package/models/operations/updateannotationqueue.js +1 -1
  222. package/models/operations/updatedatapoint.js +5 -5
  223. package/models/operations/updatedataset.js +1 -1
  224. package/models/operations/updatedatasource.js +1 -1
  225. package/models/operations/updateknowledge.d.ts +53 -53
  226. package/models/operations/updateknowledge.d.ts.map +1 -1
  227. package/models/operations/updateknowledge.js +38 -40
  228. package/models/operations/updateknowledge.js.map +1 -1
  229. package/models/operations/updatetool.js +7 -7
  230. package/package.json +9 -9
  231. package/sdk/feedback.d.ts +2 -2
  232. package/sdk/feedback.js +2 -2
  233. package/sdk/sdk.d.ts +0 -3
  234. package/sdk/sdk.d.ts.map +1 -1
  235. package/sdk/sdk.js +0 -4
  236. package/sdk/sdk.js.map +1 -1
  237. package/src/lib/config.ts +2 -2
  238. package/src/models/components/accesslevel.ts +20 -0
  239. package/src/models/components/createapikeyrequest.ts +4 -3
  240. package/src/models/components/createmanagementkeyrequest.ts +4 -3
  241. package/src/models/components/domain.ts +16 -8
  242. package/src/models/components/domaingroup.ts +17 -0
  243. package/src/models/components/embeddingorqparams.ts +7 -10
  244. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  245. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  246. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  247. package/src/models/components/evaluatorresponsellm.ts +2 -2
  248. package/src/models/components/evaluatorresponsepython.ts +2 -2
  249. package/src/models/components/evaluatorresponseragas.ts +2 -2
  250. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  251. package/src/models/components/index.ts +6 -11
  252. package/src/models/components/listmanagementcapabilitiesresponse.ts +6 -3
  253. package/src/models/components/managementdomain.ts +70 -0
  254. package/src/models/components/managementdomaingroup.ts +16 -0
  255. package/src/models/components/managementkey.ts +3 -2
  256. package/src/models/components/publicresponseresource.ts +6 -6
  257. package/src/models/components/reasoningpart.ts +1 -1
  258. package/src/models/components/responsetelemetry.ts +39 -0
  259. package/src/models/components/scopemode.ts +16 -0
  260. package/src/models/components/updateapikeyrequest.ts +4 -3
  261. package/src/models/components/updatemanagementkeyrequest.ts +4 -3
  262. package/src/models/operations/createannotationqueue.ts +1 -1
  263. package/src/models/operations/createchatcompletion.ts +16 -17
  264. package/src/models/operations/createcompletion.ts +15 -17
  265. package/src/models/operations/createdataset.ts +1 -1
  266. package/src/models/operations/createdatasetitem.ts +5 -5
  267. package/src/models/operations/createdatasource.ts +1 -1
  268. package/src/models/operations/createknowledge.ts +157 -4
  269. package/src/models/operations/createrouterresponse.ts +2 -5
  270. package/src/models/operations/createtool.ts +6 -6
  271. package/src/models/operations/getalltools.ts +6 -6
  272. package/src/models/operations/geteval.ts +16 -16
  273. package/src/models/operations/getoneknowledge.ts +2 -2
  274. package/src/models/operations/getv2humanevalsets.ts +2 -2
  275. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  276. package/src/models/operations/index.ts +0 -5
  277. package/src/models/operations/listannotationqueues.ts +1 -1
  278. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  279. package/src/models/operations/listdatasets.ts +1 -1
  280. package/src/models/operations/listdatasources.ts +1 -1
  281. package/src/models/operations/listknowledgebases.ts +2 -2
  282. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  283. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  284. package/src/models/operations/postv2humanevalsets.ts +2 -2
  285. package/src/models/operations/responsebodynodes.ts +33 -33
  286. package/src/models/operations/responsebodyusage.ts +12 -12
  287. package/src/models/operations/retrieveannotationqueue.ts +1 -1
  288. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody204.ts +31 -31
  289. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody8attributesopenresponsesoutput2.ts +6 -6
  290. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody13attributes5.ts +16 -16
  291. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody19attributeslogprobs.ts +14 -14
  292. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributes8.ts +18 -18
  293. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody24attributesopenresponsesoutput44type.ts +16 -16
  294. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody257.ts +2 -2
  295. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributesopenresponsesoutput44type.ts +16 -16
  296. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody307.ts +2 -2
  297. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody44.ts +16 -16
  298. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse1.ts +34 -34
  299. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse20015.ts +7 -7
  300. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody102.ts +32 -32
  301. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq10kind.ts +15 -15
  302. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorqsource.ts +2 -2
  303. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody13attributesorq8kind.ts +19 -19
  304. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1417.ts +4 -4
  305. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq9evaluationtype.ts +17 -17
  306. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody16attributesstatus.ts +30 -30
  307. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq10evaluatorconfigtype.ts +15 -15
  308. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq14outputschema.ts +7 -7
  309. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq7annotator.ts +21 -21
  310. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq16annotator.ts +4 -4
  311. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq9annotator.ts +17 -17
  312. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorq5outputschema.ts +24 -24
  313. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq15outputschema.ts +5 -5
  314. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq8annotator.ts +19 -19
  315. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq19kind.ts +1 -1
  316. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25status.ts +32 -32
  317. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody26attributesorq12status.ts +11 -11
  318. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorq4evaluationtype.ts +26 -26
  319. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq15outputschema.ts +5 -5
  320. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq8annotator.ts +19 -19
  321. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2source.ts +14 -14
  322. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq19kind.ts +1 -1
  323. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30status.ts +32 -32
  324. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq17type.ts +3 -3
  325. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorqvalue.ts +15 -15
  326. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesevaluatorconfigtype.ts +30 -30
  327. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3413.ts +11 -11
  328. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.ts +24 -24
  329. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq19outputschema.ts +1 -1
  330. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq8outputschema.ts +19 -19
  331. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq4kind.ts +26 -26
  332. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq12status.ts +11 -11
  333. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorqannotator.ts +28 -28
  334. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq12evaluatorconfigtype.ts +11 -11
  335. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponseevaluatorconfigtype.ts +25 -25
  336. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse2008.ts +28 -28
  337. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody11attributestype.ts +20 -20
  338. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody173.ts +20 -20
  339. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody18attributesopenresponses6role.ts +28 -28
  340. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26attributesopenresponsestype.ts +24 -24
  341. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody321.ts +20 -20
  342. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody345.ts +24 -24
  343. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody7attributesopenresponsestype.ts +24 -24
  344. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody9attributesrole.ts +24 -24
  345. package/src/models/operations/retrieveannotationqueueiteminputorq.ts +14 -13
  346. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody10role.ts +2 -2
  347. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody155.ts +18 -18
  348. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody16status.ts +4 -4
  349. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody23attributes1.ts +30 -30
  350. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody28attributes1.ts +30 -30
  351. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody333.ts +4 -4
  352. package/src/models/operations/retrieveannotationqueueitemresponsebody.ts +1 -1
  353. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10evaluation.ts +1 -1
  354. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson12nodes.ts +33 -33
  355. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson14attributesresponse.ts +31 -31
  356. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16score.ts +1 -1
  357. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27choice.ts +1 -1
  358. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson31otlp.ts +32 -32
  359. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33provider.ts +1 -1
  360. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson6response.ts +1 -1
  361. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8tool.ts +1 -1
  362. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody22attributestype.ts +10 -10
  363. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody27logprobs.ts +8 -8
  364. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody353.ts +10 -10
  365. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody6type.ts +8 -8
  366. package/src/models/operations/retrievedatapoint.ts +5 -5
  367. package/src/models/operations/retrievedataset.ts +1 -1
  368. package/src/models/operations/retrievedatasource.ts +1 -1
  369. package/src/models/operations/retrieveresponse.ts +2 -5
  370. package/src/models/operations/retrievetool.ts +6 -6
  371. package/src/models/operations/runagent.ts +1 -1
  372. package/src/models/operations/searchknowledge.ts +15 -15
  373. package/src/models/operations/streamrunagent.ts +1 -1
  374. package/src/models/operations/summary4.ts +10 -10
  375. package/src/models/operations/twentythree.ts +1 -1
  376. package/src/models/operations/updateannotationqueue.ts +1 -1
  377. package/src/models/operations/updatedatapoint.ts +5 -5
  378. package/src/models/operations/updatedataset.ts +1 -1
  379. package/src/models/operations/updatedatasource.ts +1 -1
  380. package/src/models/operations/updateknowledge.ts +155 -127
  381. package/src/models/operations/updatetool.ts +7 -7
  382. package/src/sdk/feedback.ts +2 -2
  383. package/src/sdk/sdk.ts +0 -6
  384. package/funcs/peopleCreate.d.ts +0 -17
  385. package/funcs/peopleCreate.d.ts.map +0 -1
  386. package/funcs/peopleCreate.js +0 -115
  387. package/funcs/peopleCreate.js.map +0 -1
  388. package/funcs/peopleDelete.d.ts +0 -18
  389. package/funcs/peopleDelete.d.ts.map +0 -1
  390. package/funcs/peopleDelete.js +0 -121
  391. package/funcs/peopleDelete.js.map +0 -1
  392. package/funcs/peopleGet.d.ts +0 -18
  393. package/funcs/peopleGet.d.ts.map +0 -1
  394. package/funcs/peopleGet.js +0 -121
  395. package/funcs/peopleGet.js.map +0 -1
  396. package/funcs/peopleList.d.ts +0 -18
  397. package/funcs/peopleList.d.ts.map +0 -1
  398. package/funcs/peopleList.js +0 -121
  399. package/funcs/peopleList.js.map +0 -1
  400. package/funcs/peopleResendInvitation.d.ts +0 -18
  401. package/funcs/peopleResendInvitation.d.ts.map +0 -1
  402. package/funcs/peopleResendInvitation.js +0 -124
  403. package/funcs/peopleResendInvitation.js.map +0 -1
  404. package/funcs/peopleUpdate.d.ts +0 -18
  405. package/funcs/peopleUpdate.d.ts.map +0 -1
  406. package/funcs/peopleUpdate.js +0 -124
  407. package/funcs/peopleUpdate.js.map +0 -1
  408. package/models/components/createpersonrequest.d.ts +0 -25
  409. package/models/components/createpersonrequest.d.ts.map +0 -1
  410. package/models/components/createpersonrequest.js.map +0 -1
  411. package/models/components/createpersonresponse.d.ts +0 -14
  412. package/models/components/createpersonresponse.d.ts.map +0 -1
  413. package/models/components/createpersonresponse.js +0 -51
  414. package/models/components/createpersonresponse.js.map +0 -1
  415. package/models/components/deletepersonresponse.d.ts +0 -8
  416. package/models/components/deletepersonresponse.d.ts.map +0 -1
  417. package/models/components/deletepersonresponse.js.map +0 -1
  418. package/models/components/getpersonresponse.d.ts +0 -14
  419. package/models/components/getpersonresponse.d.ts.map +0 -1
  420. package/models/components/getpersonresponse.js +0 -51
  421. package/models/components/getpersonresponse.js.map +0 -1
  422. package/models/components/listpeopleresponse.d.ts +0 -25
  423. package/models/components/listpeopleresponse.d.ts.map +0 -1
  424. package/models/components/listpeopleresponse.js.map +0 -1
  425. package/models/components/person.d.ts +0 -51
  426. package/models/components/person.d.ts.map +0 -1
  427. package/models/components/person.js +0 -72
  428. package/models/components/person.js.map +0 -1
  429. package/models/components/personstatus.d.ts +0 -11
  430. package/models/components/personstatus.d.ts.map +0 -1
  431. package/models/components/personstatus.js.map +0 -1
  432. package/models/components/resendinvitationrequest.d.ts +0 -8
  433. package/models/components/resendinvitationrequest.d.ts.map +0 -1
  434. package/models/components/resendinvitationrequest.js.map +0 -1
  435. package/models/components/resendinvitationresponse.d.ts +0 -14
  436. package/models/components/resendinvitationresponse.d.ts.map +0 -1
  437. package/models/components/resendinvitationresponse.js +0 -51
  438. package/models/components/resendinvitationresponse.js.map +0 -1
  439. package/models/components/updatepersonrequest.d.ts +0 -30
  440. package/models/components/updatepersonrequest.d.ts.map +0 -1
  441. package/models/components/updatepersonrequest.js.map +0 -1
  442. package/models/components/updatepersonresponse.d.ts +0 -14
  443. package/models/components/updatepersonresponse.d.ts.map +0 -1
  444. package/models/components/updatepersonresponse.js +0 -51
  445. package/models/components/updatepersonresponse.js.map +0 -1
  446. package/models/operations/persondelete.d.ts +0 -15
  447. package/models/operations/persondelete.d.ts.map +0 -1
  448. package/models/operations/persondelete.js +0 -54
  449. package/models/operations/persondelete.js.map +0 -1
  450. package/models/operations/personget.d.ts +0 -15
  451. package/models/operations/personget.d.ts.map +0 -1
  452. package/models/operations/personget.js +0 -54
  453. package/models/operations/personget.js.map +0 -1
  454. package/models/operations/personlist.d.ts +0 -31
  455. package/models/operations/personlist.d.ts.map +0 -1
  456. package/models/operations/personlist.js +0 -57
  457. package/models/operations/personlist.js.map +0 -1
  458. package/models/operations/personresendinvitation.d.ts +0 -18
  459. package/models/operations/personresendinvitation.d.ts.map +0 -1
  460. package/models/operations/personresendinvitation.js +0 -57
  461. package/models/operations/personresendinvitation.js.map +0 -1
  462. package/models/operations/personupdate.d.ts +0 -18
  463. package/models/operations/personupdate.d.ts.map +0 -1
  464. package/models/operations/personupdate.js +0 -57
  465. package/models/operations/personupdate.js.map +0 -1
  466. package/sdk/people.d.ts +0 -48
  467. package/sdk/people.d.ts.map +0 -1
  468. package/sdk/people.js +0 -72
  469. package/sdk/people.js.map +0 -1
  470. package/src/funcs/peopleCreate.ts +0 -162
  471. package/src/funcs/peopleDelete.ts +0 -168
  472. package/src/funcs/peopleGet.ts +0 -168
  473. package/src/funcs/peopleList.ts +0 -170
  474. package/src/funcs/peopleResendInvitation.ts +0 -172
  475. package/src/funcs/peopleUpdate.ts +0 -171
  476. package/src/models/components/createpersonrequest.ts +0 -46
  477. package/src/models/components/createpersonresponse.ts +0 -35
  478. package/src/models/components/deletepersonresponse.ts +0 -27
  479. package/src/models/components/getpersonresponse.ts +0 -35
  480. package/src/models/components/listpeopleresponse.ts +0 -53
  481. package/src/models/components/person.ts +0 -95
  482. package/src/models/components/personstatus.ts +0 -17
  483. package/src/models/components/resendinvitationrequest.ts +0 -25
  484. package/src/models/components/resendinvitationresponse.ts +0 -35
  485. package/src/models/components/updatepersonrequest.ts +0 -58
  486. package/src/models/components/updatepersonresponse.ts +0 -35
  487. package/src/models/operations/persondelete.ts +0 -39
  488. package/src/models/operations/personget.ts +0 -39
  489. package/src/models/operations/personlist.ts +0 -58
  490. package/src/models/operations/personresendinvitation.ts +0 -46
  491. package/src/models/operations/personupdate.ts +0 -44
  492. package/src/sdk/people.ts +0 -118
@@ -1,57 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.PersonResendInvitationRequest$outboundSchema = void 0;
40
- exports.personResendInvitationRequestToJSON = personResendInvitationRequestToJSON;
41
- const z = __importStar(require("zod/v3"));
42
- const primitives_js_1 = require("../../lib/primitives.js");
43
- const components = __importStar(require("../components/index.js"));
44
- /** @internal */
45
- exports.PersonResendInvitationRequest$outboundSchema = z.object({
46
- personId: z.string(),
47
- resendInvitationRequest: components.ResendInvitationRequest$outboundSchema,
48
- }).transform((v) => {
49
- return (0, primitives_js_1.remap)(v, {
50
- personId: "person_id",
51
- resendInvitationRequest: "ResendInvitationRequest",
52
- });
53
- });
54
- function personResendInvitationRequestToJSON(personResendInvitationRequest) {
55
- return JSON.stringify(exports.PersonResendInvitationRequest$outboundSchema.parse(personResendInvitationRequest));
56
- }
57
- //# sourceMappingURL=personresendinvitation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"personresendinvitation.js","sourceRoot":"","sources":["../../src/models/operations/personresendinvitation.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,kFAQC;AAzCD,0CAA4B;AAC5B,2DAA0D;AAC1D,mEAAqD;AAgBrD,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,uBAAuB,EAAE,UAAU,CAAC,sCAAsC;CAC3E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,uBAAuB,EAAE,yBAAyB;KACnD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,mCAAmC,CACjD,6BAA4D;IAE5D,OAAO,IAAI,CAAC,SAAS,CACnB,oDAA4C,CAAC,KAAK,CAChD,6BAA6B,CAC9B,CACF,CAAC;AACJ,CAAC"}
@@ -1,18 +0,0 @@
1
- import * as z from "zod/v3";
2
- import * as components from "../components/index.js";
3
- export type PersonUpdateRequest = {
4
- /**
5
- * Person ID to update.
6
- */
7
- personId: string;
8
- updatePersonRequest: components.UpdatePersonRequest;
9
- };
10
- /** @internal */
11
- export type PersonUpdateRequest$Outbound = {
12
- person_id: string;
13
- UpdatePersonRequest: components.UpdatePersonRequest$Outbound;
14
- };
15
- /** @internal */
16
- export declare const PersonUpdateRequest$outboundSchema: z.ZodType<PersonUpdateRequest$Outbound, z.ZodTypeDef, PersonUpdateRequest>;
17
- export declare function personUpdateRequestToJSON(personUpdateRequest: PersonUpdateRequest): string;
18
- //# sourceMappingURL=personupdate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"personupdate.d.ts","sourceRoot":"","sources":["../../src/models/operations/personupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,UAAU,CAAC,mBAAmB,CAAC;CACrD,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,UAAU,CAAC,4BAA4B,CAAC;CAC9D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CASnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR"}
@@ -1,57 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.PersonUpdateRequest$outboundSchema = void 0;
40
- exports.personUpdateRequestToJSON = personUpdateRequestToJSON;
41
- const z = __importStar(require("zod/v3"));
42
- const primitives_js_1 = require("../../lib/primitives.js");
43
- const components = __importStar(require("../components/index.js"));
44
- /** @internal */
45
- exports.PersonUpdateRequest$outboundSchema = z.object({
46
- personId: z.string(),
47
- updatePersonRequest: components.UpdatePersonRequest$outboundSchema,
48
- }).transform((v) => {
49
- return (0, primitives_js_1.remap)(v, {
50
- personId: "person_id",
51
- updatePersonRequest: "UpdatePersonRequest",
52
- });
53
- });
54
- function personUpdateRequestToJSON(personUpdateRequest) {
55
- return JSON.stringify(exports.PersonUpdateRequest$outboundSchema.parse(personUpdateRequest));
56
- }
57
- //# sourceMappingURL=personupdate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"personupdate.js","sourceRoot":"","sources":["../../src/models/operations/personupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,8DAMC;AAvCD,0CAA4B;AAC5B,2DAA0D;AAC1D,mEAAqD;AAgBrD,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,mBAAmB,EAAE,UAAU,CAAC,kCAAkC;CACnE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,mBAAmB,EAAE,qBAAqB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
package/sdk/people.d.ts DELETED
@@ -1,48 +0,0 @@
1
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
- import * as components from "../models/components/index.js";
3
- import * as operations from "../models/operations/index.js";
4
- export declare class People extends ClientSDK {
5
- /**
6
- * List all people
7
- *
8
- * @remarks
9
- * Returns a paginated list of people in the current workspace. Use `starting_after` or `ending_before` to page through large collections.
10
- */
11
- list(request?: operations.PersonListRequest | undefined, options?: RequestOptions): Promise<components.ListPeopleResponse>;
12
- /**
13
- * Invite people to a workspace
14
- *
15
- * @remarks
16
- * Invites one or more people to the current workspace. If an email is not already registered, a new account is created and an invitation email is sent. Existing accounts are linked directly to the workspace.
17
- */
18
- create(request: components.CreatePersonRequest, options?: RequestOptions): Promise<components.CreatePersonResponse>;
19
- /**
20
- * Retrieve a person
21
- *
22
- * @remarks
23
- * Retrieves the details of an existing workspace member or invited user by their person ID.
24
- */
25
- get(request: operations.PersonGetRequest, options?: RequestOptions): Promise<components.GetPersonResponse>;
26
- /**
27
- * Delete a person
28
- *
29
- * @remarks
30
- * 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.
31
- */
32
- delete(request: operations.PersonDeleteRequest, options?: RequestOptions): Promise<components.DeletePersonResponse>;
33
- /**
34
- * Update a person
35
- *
36
- * @remarks
37
- * Updates the roles and group assignments of a workspace member. Omitted fields keep their current values.
38
- */
39
- update(request: operations.PersonUpdateRequest, options?: RequestOptions): Promise<components.UpdatePersonResponse>;
40
- /**
41
- * Resend invitation
42
- *
43
- * @remarks
44
- * Resends the invitation email to a pending workspace member. Has no effect if the person has already accepted.
45
- */
46
- resendInvitation(request: operations.PersonResendInvitationRequest, options?: RequestOptions): Promise<components.ResendInvitationResponse>;
47
- }
48
- //# sourceMappingURL=people.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"people.d.ts","sourceRoot":"","sources":["../src/sdk/people.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,MAAO,SAAQ,SAAS;IACnC;;;;;OAKG;IACG,IAAI,CACR,OAAO,CAAC,EAAE,UAAU,CAAC,iBAAiB,GAAG,SAAS,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQxC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAOhD"}
package/sdk/people.js DELETED
@@ -1,72 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.People = void 0;
7
- const peopleCreate_js_1 = require("../funcs/peopleCreate.js");
8
- const peopleDelete_js_1 = require("../funcs/peopleDelete.js");
9
- const peopleGet_js_1 = require("../funcs/peopleGet.js");
10
- const peopleList_js_1 = require("../funcs/peopleList.js");
11
- const peopleResendInvitation_js_1 = require("../funcs/peopleResendInvitation.js");
12
- const peopleUpdate_js_1 = require("../funcs/peopleUpdate.js");
13
- const sdks_js_1 = require("../lib/sdks.js");
14
- const fp_js_1 = require("../types/fp.js");
15
- class People extends sdks_js_1.ClientSDK {
16
- /**
17
- * List all people
18
- *
19
- * @remarks
20
- * Returns a paginated list of people in the current workspace. Use `starting_after` or `ending_before` to page through large collections.
21
- */
22
- async list(request, options) {
23
- return (0, fp_js_1.unwrapAsync)((0, peopleList_js_1.peopleList)(this, request, options));
24
- }
25
- /**
26
- * Invite people to a workspace
27
- *
28
- * @remarks
29
- * Invites one or more people to the current workspace. If an email is not already registered, a new account is created and an invitation email is sent. Existing accounts are linked directly to the workspace.
30
- */
31
- async create(request, options) {
32
- return (0, fp_js_1.unwrapAsync)((0, peopleCreate_js_1.peopleCreate)(this, request, options));
33
- }
34
- /**
35
- * Retrieve a person
36
- *
37
- * @remarks
38
- * Retrieves the details of an existing workspace member or invited user by their person ID.
39
- */
40
- async get(request, options) {
41
- return (0, fp_js_1.unwrapAsync)((0, peopleGet_js_1.peopleGet)(this, request, options));
42
- }
43
- /**
44
- * Delete a person
45
- *
46
- * @remarks
47
- * 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.
48
- */
49
- async delete(request, options) {
50
- return (0, fp_js_1.unwrapAsync)((0, peopleDelete_js_1.peopleDelete)(this, request, options));
51
- }
52
- /**
53
- * Update a person
54
- *
55
- * @remarks
56
- * Updates the roles and group assignments of a workspace member. Omitted fields keep their current values.
57
- */
58
- async update(request, options) {
59
- return (0, fp_js_1.unwrapAsync)((0, peopleUpdate_js_1.peopleUpdate)(this, request, options));
60
- }
61
- /**
62
- * Resend invitation
63
- *
64
- * @remarks
65
- * Resends the invitation email to a pending workspace member. Has no effect if the person has already accepted.
66
- */
67
- async resendInvitation(request, options) {
68
- return (0, fp_js_1.unwrapAsync)((0, peopleResendInvitation_js_1.peopleResendInvitation)(this, request, options));
69
- }
70
- }
71
- exports.People = People;
72
- //# sourceMappingURL=people.js.map
package/sdk/people.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"people.js","sourceRoot":"","sources":["../src/sdk/people.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8DAAwD;AACxD,8DAAwD;AACxD,wDAAkD;AAClD,0DAAoD;AACpD,kFAA4E;AAC5E,8DAAwD;AACxD,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,MAAO,SAAQ,mBAAS;IACnC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0BAAU,EAC3B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wBAAS,EAC1B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kDAAsB,EACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAtGD,wBAsGC"}
@@ -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
- * Invite people to a workspace
30
- *
31
- * @remarks
32
- * Invites one or more people to the current workspace. If an email is not already registered, a new account is created and an invitation email is sent. Existing accounts are linked directly to the workspace.
33
- */
34
- export function peopleCreate(
35
- client: OrqCore,
36
- request: components.CreatePersonRequest,
37
- options?: RequestOptions,
38
- ): APIPromise<
39
- Result<
40
- components.CreatePersonResponse,
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.CreatePersonRequest,
61
- options?: RequestOptions,
62
- ): Promise<
63
- [
64
- Result<
65
- components.CreatePersonResponse,
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.CreatePersonRequest$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/people")();
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: "PersonCreate",
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.CreatePersonResponse,
144
- | OrqError
145
- | ResponseValidationError
146
- | ConnectionError
147
- | RequestAbortedError
148
- | RequestTimeoutError
149
- | InvalidRequestError
150
- | UnexpectedClientError
151
- | SDKValidationError
152
- >(
153
- M.json(200, components.CreatePersonResponse$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 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
- }