@orq-ai/node 4.14.0-rc.12 → 4.14.0-rc.13

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 (408) hide show
  1. package/README.md +56 -37
  2. package/funcs/workspaceSecurityAddIPRange.d.ts +18 -0
  3. package/funcs/workspaceSecurityAddIPRange.d.ts.map +1 -0
  4. package/funcs/workspaceSecurityAddIPRange.js +122 -0
  5. package/funcs/workspaceSecurityAddIPRange.js.map +1 -0
  6. package/funcs/workspaceSecurityCreateDomain.d.ts +18 -0
  7. package/funcs/workspaceSecurityCreateDomain.d.ts.map +1 -0
  8. package/funcs/workspaceSecurityCreateDomain.js +124 -0
  9. package/funcs/workspaceSecurityCreateDomain.js.map +1 -0
  10. package/funcs/workspaceSecurityDeleteDomain.d.ts +17 -0
  11. package/funcs/workspaceSecurityDeleteDomain.d.ts.map +1 -0
  12. package/funcs/workspaceSecurityDeleteDomain.js +125 -0
  13. package/funcs/workspaceSecurityDeleteDomain.js.map +1 -0
  14. package/funcs/workspaceSecurityDeleteIPRange.d.ts +17 -0
  15. package/funcs/workspaceSecurityDeleteIPRange.d.ts.map +1 -0
  16. package/funcs/workspaceSecurityDeleteIPRange.js +125 -0
  17. package/funcs/workspaceSecurityDeleteIPRange.js.map +1 -0
  18. package/funcs/workspaceSecurityGetIPAllowlist.d.ts +18 -0
  19. package/funcs/workspaceSecurityGetIPAllowlist.d.ts.map +1 -0
  20. package/funcs/workspaceSecurityGetIPAllowlist.js +121 -0
  21. package/funcs/workspaceSecurityGetIPAllowlist.js.map +1 -0
  22. package/funcs/workspaceSecurityListDomains.d.ts +18 -0
  23. package/funcs/workspaceSecurityListDomains.d.ts.map +1 -0
  24. package/funcs/workspaceSecurityListDomains.js +121 -0
  25. package/funcs/workspaceSecurityListDomains.js.map +1 -0
  26. package/funcs/workspaceSecurityUpdateIPAllowlist.d.ts +18 -0
  27. package/funcs/workspaceSecurityUpdateIPAllowlist.d.ts.map +1 -0
  28. package/funcs/workspaceSecurityUpdateIPAllowlist.js +124 -0
  29. package/funcs/workspaceSecurityUpdateIPAllowlist.js.map +1 -0
  30. package/funcs/workspaceSecurityVerifyDomain.d.ts +18 -0
  31. package/funcs/workspaceSecurityVerifyDomain.d.ts.map +1 -0
  32. package/funcs/workspaceSecurityVerifyDomain.js +125 -0
  33. package/funcs/workspaceSecurityVerifyDomain.js.map +1 -0
  34. package/jsr.json +1 -1
  35. package/lib/config.d.ts +2 -2
  36. package/lib/config.js +2 -2
  37. package/models/components/addiprangerequest.d.ts +14 -0
  38. package/models/components/addiprangerequest.d.ts.map +1 -0
  39. package/models/components/addiprangerequest.js +50 -0
  40. package/models/components/addiprangerequest.js.map +1 -0
  41. package/models/components/addiprangeresponse.d.ts +11 -0
  42. package/models/components/addiprangeresponse.d.ts.map +1 -0
  43. package/models/components/addiprangeresponse.js +51 -0
  44. package/models/components/addiprangeresponse.js.map +1 -0
  45. package/models/components/createdomainrequest.d.ts +12 -0
  46. package/models/components/createdomainrequest.d.ts.map +1 -0
  47. package/models/components/createdomainrequest.js +49 -0
  48. package/models/components/createdomainrequest.js.map +1 -0
  49. package/models/components/createdomainresponse.d.ts +11 -0
  50. package/models/components/createdomainresponse.d.ts.map +1 -0
  51. package/models/components/createdomainresponse.js +51 -0
  52. package/models/components/createdomainresponse.js.map +1 -0
  53. package/models/components/domainverification.d.ts +19 -0
  54. package/models/components/domainverification.d.ts.map +1 -0
  55. package/models/components/domainverification.js +71 -0
  56. package/models/components/domainverification.js.map +1 -0
  57. package/models/components/domainverificationstatus.d.ts +11 -0
  58. package/models/components/domainverificationstatus.d.ts.map +1 -0
  59. package/models/components/domainverificationstatus.js +48 -0
  60. package/models/components/domainverificationstatus.js.map +1 -0
  61. package/models/components/evaluatorresponsefunction.js +2 -2
  62. package/models/components/evaluatorresponsehttp.js +2 -2
  63. package/models/components/evaluatorresponsejsonschema.js +2 -2
  64. package/models/components/evaluatorresponsellm.js +2 -2
  65. package/models/components/evaluatorresponsepython.js +2 -2
  66. package/models/components/evaluatorresponseragas.js +2 -2
  67. package/models/components/evaluatorresponsetypescript.js +2 -2
  68. package/models/components/getipallowlistresponse.d.ts +12 -0
  69. package/models/components/getipallowlistresponse.d.ts.map +1 -0
  70. package/models/components/getipallowlistresponse.js +58 -0
  71. package/models/components/getipallowlistresponse.js.map +1 -0
  72. package/models/components/index.d.ts +13 -0
  73. package/models/components/index.d.ts.map +1 -1
  74. package/models/components/index.js +13 -0
  75. package/models/components/index.js.map +1 -1
  76. package/models/components/ipallowlist.d.ts +12 -0
  77. package/models/components/ipallowlist.d.ts.map +1 -0
  78. package/models/components/ipallowlist.js +52 -0
  79. package/models/components/ipallowlist.js.map +1 -0
  80. package/models/components/iprange.d.ts +14 -0
  81. package/models/components/iprange.d.ts.map +1 -0
  82. package/models/components/iprange.js +60 -0
  83. package/models/components/iprange.js.map +1 -0
  84. package/models/components/listdomainsresponse.d.ts +11 -0
  85. package/models/components/listdomainsresponse.d.ts.map +1 -0
  86. package/models/components/listdomainsresponse.js +51 -0
  87. package/models/components/listdomainsresponse.js.map +1 -0
  88. package/models/components/reasoningpart.js +1 -1
  89. package/models/components/updateipallowlistrequest.d.ts +12 -0
  90. package/models/components/updateipallowlistrequest.d.ts.map +1 -0
  91. package/models/components/updateipallowlistrequest.js +49 -0
  92. package/models/components/updateipallowlistrequest.js.map +1 -0
  93. package/models/components/updateipallowlistresponse.d.ts +11 -0
  94. package/models/components/updateipallowlistresponse.d.ts.map +1 -0
  95. package/models/components/updateipallowlistresponse.js +56 -0
  96. package/models/components/updateipallowlistresponse.js.map +1 -0
  97. package/models/components/verifydomainresponse.d.ts +11 -0
  98. package/models/components/verifydomainresponse.d.ts.map +1 -0
  99. package/models/components/verifydomainresponse.js +51 -0
  100. package/models/components/verifydomainresponse.js.map +1 -0
  101. package/models/operations/createannotationqueue.js +1 -1
  102. package/models/operations/createdataset.js +1 -1
  103. package/models/operations/createdatasetitem.js +5 -5
  104. package/models/operations/createdatasource.js +1 -1
  105. package/models/operations/createtool.js +6 -6
  106. package/models/operations/getalltools.js +6 -6
  107. package/models/operations/geteval.js +16 -16
  108. package/models/operations/getv2humanevalsets.js +2 -2
  109. package/models/operations/getv2humanevalsetsid.js +2 -2
  110. package/models/operations/index.d.ts +8 -0
  111. package/models/operations/index.d.ts.map +1 -1
  112. package/models/operations/index.js +8 -0
  113. package/models/operations/index.js.map +1 -1
  114. package/models/operations/listannotationqueues.js +1 -1
  115. package/models/operations/listdatasetdatapoints.js +5 -5
  116. package/models/operations/listdatasets.js +1 -1
  117. package/models/operations/listdatasources.js +1 -1
  118. package/models/operations/patchv2humanevalsetsid.js +2 -2
  119. package/models/operations/postv2feedbackevaluation.js +4 -4
  120. package/models/operations/postv2humanevalsets.js +2 -2
  121. package/models/operations/responsebodynodes.js +33 -33
  122. package/models/operations/retrieveannotationqueue.js +1 -1
  123. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody204.js +31 -31
  124. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody8attributesopenresponsesoutput2.js +6 -6
  125. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody13attributes5.js +16 -16
  126. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody19attributeslogprobs.js +14 -14
  127. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributes8.js +18 -18
  128. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody24attributesopenresponsesoutput44type.js +16 -16
  129. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody257.js +2 -2
  130. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributesopenresponsesoutput44type.js +16 -16
  131. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody307.js +2 -2
  132. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody44.js +16 -16
  133. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse1.js +34 -34
  134. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse20015.js +7 -7
  135. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody102.js +32 -32
  136. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq10kind.js +15 -15
  137. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorqsource.js +2 -2
  138. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody13attributesorq8kind.js +19 -19
  139. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1417.js +4 -4
  140. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq9evaluationtype.js +17 -17
  141. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody16attributesstatus.js +30 -30
  142. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq10evaluatorconfigtype.js +15 -15
  143. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq14outputschema.js +7 -7
  144. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq7annotator.js +21 -21
  145. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq16annotator.js +4 -4
  146. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq9annotator.js +17 -17
  147. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorq5outputschema.js +24 -24
  148. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq15outputschema.js +5 -5
  149. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq8annotator.js +19 -19
  150. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq19kind.js +1 -1
  151. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25status.js +32 -32
  152. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody26attributesorq12status.js +11 -11
  153. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorq4evaluationtype.js +26 -26
  154. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq15outputschema.js +5 -5
  155. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq8annotator.js +19 -19
  156. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2source.js +2 -2
  157. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq19kind.js +1 -1
  158. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30status.js +32 -32
  159. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq17type.js +3 -3
  160. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorqvalue.js +15 -15
  161. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesevaluatorconfigtype.js +30 -30
  162. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3413.js +11 -11
  163. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.js +24 -24
  164. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq19outputschema.js +1 -1
  165. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq8outputschema.js +19 -19
  166. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq4kind.js +26 -26
  167. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq12status.js +11 -11
  168. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorqannotator.js +28 -28
  169. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq12evaluatorconfigtype.js +11 -11
  170. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponseevaluatorconfigtype.js +25 -25
  171. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse2008.js +28 -28
  172. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody11attributestype.js +20 -20
  173. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody173.js +20 -20
  174. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody18attributesopenresponses6role.js +28 -28
  175. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26attributesopenresponsestype.js +24 -24
  176. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody321.js +20 -20
  177. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody345.js +24 -24
  178. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody7attributesopenresponsestype.js +24 -24
  179. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody9attributesrole.js +24 -24
  180. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody10role.js +2 -2
  181. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody155.js +18 -18
  182. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody16status.js +4 -4
  183. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody23attributes1.js +30 -30
  184. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody28attributes1.js +30 -30
  185. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody333.js +4 -4
  186. package/models/operations/retrieveannotationqueueitemresponsebody.js +1 -1
  187. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10evaluation.js +1 -1
  188. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson12nodes.js +33 -33
  189. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson14attributesresponse.js +31 -31
  190. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16score.js +1 -1
  191. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27choice.js +1 -1
  192. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson31otlp.js +32 -32
  193. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33provider.js +1 -1
  194. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson6response.js +1 -1
  195. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8tool.js +1 -1
  196. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody22attributestype.js +10 -10
  197. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody27logprobs.js +8 -8
  198. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody353.js +10 -10
  199. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody6type.js +8 -8
  200. package/models/operations/retrievedatapoint.js +5 -5
  201. package/models/operations/retrievedataset.js +1 -1
  202. package/models/operations/retrievedatasource.js +1 -1
  203. package/models/operations/retrievetool.js +6 -6
  204. package/models/operations/runagent.js +1 -1
  205. package/models/operations/streamrunagent.js +1 -1
  206. package/models/operations/summary4.js +10 -10
  207. package/models/operations/twentythree.js +1 -1
  208. package/models/operations/updateannotationqueue.js +1 -1
  209. package/models/operations/updatedatapoint.js +5 -5
  210. package/models/operations/updatedataset.js +1 -1
  211. package/models/operations/updatedatasource.js +1 -1
  212. package/models/operations/updatetool.js +7 -7
  213. package/models/operations/workspacesecurityaddiprange.d.ts +15 -0
  214. package/models/operations/workspacesecurityaddiprange.d.ts.map +1 -0
  215. package/models/operations/workspacesecurityaddiprange.js +57 -0
  216. package/models/operations/workspacesecurityaddiprange.js.map +1 -0
  217. package/models/operations/workspacesecuritycreatedomain.d.ts +15 -0
  218. package/models/operations/workspacesecuritycreatedomain.d.ts.map +1 -0
  219. package/models/operations/workspacesecuritycreatedomain.js +57 -0
  220. package/models/operations/workspacesecuritycreatedomain.js.map +1 -0
  221. package/models/operations/workspacesecuritydeletedomain.d.ts +14 -0
  222. package/models/operations/workspacesecuritydeletedomain.d.ts.map +1 -0
  223. package/models/operations/workspacesecuritydeletedomain.js +56 -0
  224. package/models/operations/workspacesecuritydeletedomain.js.map +1 -0
  225. package/models/operations/workspacesecuritydeleteiprange.d.ts +14 -0
  226. package/models/operations/workspacesecuritydeleteiprange.d.ts.map +1 -0
  227. package/models/operations/workspacesecuritydeleteiprange.js +56 -0
  228. package/models/operations/workspacesecuritydeleteiprange.js.map +1 -0
  229. package/models/operations/workspacesecuritygetipallowlist.d.ts +12 -0
  230. package/models/operations/workspacesecuritygetipallowlist.d.ts.map +1 -0
  231. package/models/operations/workspacesecuritygetipallowlist.js +54 -0
  232. package/models/operations/workspacesecuritygetipallowlist.js.map +1 -0
  233. package/models/operations/workspacesecuritylistdomains.d.ts +12 -0
  234. package/models/operations/workspacesecuritylistdomains.d.ts.map +1 -0
  235. package/models/operations/workspacesecuritylistdomains.js +54 -0
  236. package/models/operations/workspacesecuritylistdomains.js.map +1 -0
  237. package/models/operations/workspacesecurityupdateipallowlist.d.ts +15 -0
  238. package/models/operations/workspacesecurityupdateipallowlist.d.ts.map +1 -0
  239. package/models/operations/workspacesecurityupdateipallowlist.js +57 -0
  240. package/models/operations/workspacesecurityupdateipallowlist.js.map +1 -0
  241. package/models/operations/workspacesecurityverifydomain.d.ts +14 -0
  242. package/models/operations/workspacesecurityverifydomain.d.ts.map +1 -0
  243. package/models/operations/workspacesecurityverifydomain.js +56 -0
  244. package/models/operations/workspacesecurityverifydomain.js.map +1 -0
  245. package/package.json +7 -7
  246. package/sdk/feedback.d.ts +1 -4
  247. package/sdk/feedback.d.ts.map +1 -1
  248. package/sdk/feedback.js +1 -4
  249. package/sdk/feedback.js.map +1 -1
  250. package/sdk/sdk.d.ts +3 -0
  251. package/sdk/sdk.d.ts.map +1 -1
  252. package/sdk/sdk.js +4 -0
  253. package/sdk/sdk.js.map +1 -1
  254. package/sdk/workspacesecurity.d.ts +62 -0
  255. package/sdk/workspacesecurity.d.ts.map +1 -0
  256. package/sdk/workspacesecurity.js +92 -0
  257. package/sdk/workspacesecurity.js.map +1 -0
  258. package/src/funcs/workspaceSecurityAddIPRange.ts +172 -0
  259. package/src/funcs/workspaceSecurityCreateDomain.ts +174 -0
  260. package/src/funcs/workspaceSecurityDeleteDomain.ts +177 -0
  261. package/src/funcs/workspaceSecurityDeleteIPRange.ts +177 -0
  262. package/src/funcs/workspaceSecurityGetIPAllowlist.ts +171 -0
  263. package/src/funcs/workspaceSecurityListDomains.ts +171 -0
  264. package/src/funcs/workspaceSecurityUpdateIPAllowlist.ts +174 -0
  265. package/src/funcs/workspaceSecurityVerifyDomain.ts +177 -0
  266. package/src/lib/config.ts +2 -2
  267. package/src/models/components/addiprangerequest.ts +34 -0
  268. package/src/models/components/addiprangeresponse.ts +32 -0
  269. package/src/models/components/createdomainrequest.ts +31 -0
  270. package/src/models/components/createdomainresponse.ts +35 -0
  271. package/src/models/components/domainverification.ts +63 -0
  272. package/src/models/components/domainverificationstatus.ts +20 -0
  273. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  274. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  275. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  276. package/src/models/components/evaluatorresponsellm.ts +2 -2
  277. package/src/models/components/evaluatorresponsepython.ts +2 -2
  278. package/src/models/components/evaluatorresponseragas.ts +2 -2
  279. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  280. package/src/models/components/getipallowlistresponse.ts +40 -0
  281. package/src/models/components/index.ts +13 -0
  282. package/src/models/components/ipallowlist.ts +34 -0
  283. package/src/models/components/iprange.ts +44 -0
  284. package/src/models/components/listdomainsresponse.ts +35 -0
  285. package/src/models/components/reasoningpart.ts +1 -1
  286. package/src/models/components/updateipallowlistrequest.ts +31 -0
  287. package/src/models/components/updateipallowlistresponse.ts +37 -0
  288. package/src/models/components/verifydomainresponse.ts +35 -0
  289. package/src/models/operations/createannotationqueue.ts +1 -1
  290. package/src/models/operations/createdataset.ts +1 -1
  291. package/src/models/operations/createdatasetitem.ts +5 -5
  292. package/src/models/operations/createdatasource.ts +1 -1
  293. package/src/models/operations/createtool.ts +6 -6
  294. package/src/models/operations/getalltools.ts +6 -6
  295. package/src/models/operations/geteval.ts +16 -16
  296. package/src/models/operations/getv2humanevalsets.ts +2 -2
  297. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  298. package/src/models/operations/index.ts +8 -0
  299. package/src/models/operations/listannotationqueues.ts +1 -1
  300. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  301. package/src/models/operations/listdatasets.ts +1 -1
  302. package/src/models/operations/listdatasources.ts +1 -1
  303. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  304. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  305. package/src/models/operations/postv2humanevalsets.ts +2 -2
  306. package/src/models/operations/responsebodynodes.ts +33 -33
  307. package/src/models/operations/retrieveannotationqueue.ts +1 -1
  308. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody204.ts +31 -31
  309. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody8attributesopenresponsesoutput2.ts +6 -6
  310. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody13attributes5.ts +16 -16
  311. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody19attributeslogprobs.ts +14 -14
  312. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributes8.ts +18 -18
  313. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody24attributesopenresponsesoutput44type.ts +16 -16
  314. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody257.ts +2 -2
  315. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributesopenresponsesoutput44type.ts +16 -16
  316. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody307.ts +2 -2
  317. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody44.ts +16 -16
  318. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse1.ts +34 -34
  319. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse20015.ts +7 -7
  320. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody102.ts +32 -32
  321. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq10kind.ts +15 -15
  322. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorqsource.ts +2 -2
  323. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody13attributesorq8kind.ts +19 -19
  324. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1417.ts +4 -4
  325. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq9evaluationtype.ts +17 -17
  326. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody16attributesstatus.ts +30 -30
  327. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq10evaluatorconfigtype.ts +15 -15
  328. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq14outputschema.ts +7 -7
  329. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq7annotator.ts +21 -21
  330. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq16annotator.ts +4 -4
  331. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq9annotator.ts +17 -17
  332. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorq5outputschema.ts +24 -24
  333. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq15outputschema.ts +5 -5
  334. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq8annotator.ts +19 -19
  335. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq19kind.ts +1 -1
  336. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25status.ts +32 -32
  337. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody26attributesorq12status.ts +11 -11
  338. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorq4evaluationtype.ts +26 -26
  339. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq15outputschema.ts +5 -5
  340. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq8annotator.ts +19 -19
  341. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2source.ts +2 -2
  342. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq19kind.ts +1 -1
  343. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30status.ts +32 -32
  344. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq17type.ts +3 -3
  345. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorqvalue.ts +15 -15
  346. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesevaluatorconfigtype.ts +30 -30
  347. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3413.ts +11 -11
  348. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.ts +24 -24
  349. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq19outputschema.ts +1 -1
  350. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq8outputschema.ts +19 -19
  351. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq4kind.ts +26 -26
  352. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq12status.ts +11 -11
  353. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorqannotator.ts +28 -28
  354. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq12evaluatorconfigtype.ts +11 -11
  355. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponseevaluatorconfigtype.ts +25 -25
  356. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse2008.ts +28 -28
  357. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody11attributestype.ts +20 -20
  358. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody173.ts +20 -20
  359. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody18attributesopenresponses6role.ts +28 -28
  360. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26attributesopenresponsestype.ts +24 -24
  361. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody321.ts +20 -20
  362. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody345.ts +24 -24
  363. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody7attributesopenresponsestype.ts +24 -24
  364. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody9attributesrole.ts +24 -24
  365. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody10role.ts +2 -2
  366. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody155.ts +18 -18
  367. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody16status.ts +4 -4
  368. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody23attributes1.ts +30 -30
  369. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody28attributes1.ts +30 -30
  370. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody333.ts +4 -4
  371. package/src/models/operations/retrieveannotationqueueitemresponsebody.ts +1 -1
  372. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10evaluation.ts +1 -1
  373. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson12nodes.ts +33 -33
  374. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson14attributesresponse.ts +31 -31
  375. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16score.ts +1 -1
  376. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27choice.ts +1 -1
  377. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson31otlp.ts +32 -32
  378. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33provider.ts +1 -1
  379. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson6response.ts +1 -1
  380. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8tool.ts +1 -1
  381. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody22attributestype.ts +10 -10
  382. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody27logprobs.ts +8 -8
  383. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody353.ts +10 -10
  384. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody6type.ts +8 -8
  385. package/src/models/operations/retrievedatapoint.ts +5 -5
  386. package/src/models/operations/retrievedataset.ts +1 -1
  387. package/src/models/operations/retrievedatasource.ts +1 -1
  388. package/src/models/operations/retrievetool.ts +6 -6
  389. package/src/models/operations/runagent.ts +1 -1
  390. package/src/models/operations/streamrunagent.ts +1 -1
  391. package/src/models/operations/summary4.ts +10 -10
  392. package/src/models/operations/twentythree.ts +1 -1
  393. package/src/models/operations/updateannotationqueue.ts +1 -1
  394. package/src/models/operations/updatedatapoint.ts +5 -5
  395. package/src/models/operations/updatedataset.ts +1 -1
  396. package/src/models/operations/updatedatasource.ts +1 -1
  397. package/src/models/operations/updatetool.ts +7 -7
  398. package/src/models/operations/workspacesecurityaddiprange.ts +43 -0
  399. package/src/models/operations/workspacesecuritycreatedomain.ts +43 -0
  400. package/src/models/operations/workspacesecuritydeletedomain.ts +42 -0
  401. package/src/models/operations/workspacesecuritydeleteiprange.ts +42 -0
  402. package/src/models/operations/workspacesecuritygetipallowlist.ts +39 -0
  403. package/src/models/operations/workspacesecuritylistdomains.ts +38 -0
  404. package/src/models/operations/workspacesecurityupdateipallowlist.ts +46 -0
  405. package/src/models/operations/workspacesecurityverifydomain.ts +42 -0
  406. package/src/sdk/feedback.ts +1 -4
  407. package/src/sdk/sdk.ts +6 -0
  408. package/src/sdk/workspacesecurity.ts +154 -0
@@ -0,0 +1,172 @@
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
+ * Add an IP range
31
+ *
32
+ * @remarks
33
+ * Adds an IPv4 or IPv6 CIDR range to the workspace allowlist.
34
+ */
35
+ export function workspaceSecurityAddIPRange(
36
+ client: OrqCore,
37
+ request: operations.WorkspaceSecurityAddIPRangeRequest,
38
+ options?: RequestOptions,
39
+ ): APIPromise<
40
+ Result<
41
+ components.AddIPRangeResponse,
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.WorkspaceSecurityAddIPRangeRequest,
62
+ options?: RequestOptions,
63
+ ): Promise<
64
+ [
65
+ Result<
66
+ components.AddIPRangeResponse,
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.WorkspaceSecurityAddIPRangeRequest$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.AddIPRangeRequest, { explode: true });
90
+
91
+ const pathParams = {
92
+ workspace_key: encodeSimple("workspace_key", payload.workspace_key, {
93
+ explode: false,
94
+ charEncoding: "percent",
95
+ }),
96
+ };
97
+ const path = pathToFunc("/v2/{workspace_key}/ip-allowlist/entries")(
98
+ pathParams,
99
+ );
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: "WorkspaceSecurityAddIPRange",
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.AddIPRangeResponse,
154
+ | OrqError
155
+ | ResponseValidationError
156
+ | ConnectionError
157
+ | RequestAbortedError
158
+ | RequestTimeoutError
159
+ | InvalidRequestError
160
+ | UnexpectedClientError
161
+ | SDKValidationError
162
+ >(
163
+ M.json(200, components.AddIPRangeResponse$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
+ }
@@ -0,0 +1,174 @@
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
+ * Add a domain
31
+ *
32
+ * @remarks
33
+ * Creates a domain-verification challenge and returns the TXT record to add to DNS.
34
+ */
35
+ export function workspaceSecurityCreateDomain(
36
+ client: OrqCore,
37
+ request: operations.WorkspaceSecurityCreateDomainRequest,
38
+ options?: RequestOptions,
39
+ ): APIPromise<
40
+ Result<
41
+ components.CreateDomainResponse,
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.WorkspaceSecurityCreateDomainRequest,
62
+ options?: RequestOptions,
63
+ ): Promise<
64
+ [
65
+ Result<
66
+ components.CreateDomainResponse,
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.WorkspaceSecurityCreateDomainRequest$outboundSchema.parse(
83
+ value,
84
+ ),
85
+ "Input validation failed",
86
+ );
87
+ if (!parsed.ok) {
88
+ return [parsed, { status: "invalid" }];
89
+ }
90
+ const payload = parsed.value;
91
+ const body = encodeJSON("body", payload.CreateDomainRequest, {
92
+ explode: true,
93
+ });
94
+
95
+ const pathParams = {
96
+ workspace_key: encodeSimple("workspace_key", payload.workspace_key, {
97
+ explode: false,
98
+ charEncoding: "percent",
99
+ }),
100
+ };
101
+ const path = pathToFunc("/v2/{workspace_key}/domains")(pathParams);
102
+
103
+ const headers = new Headers(compactMap({
104
+ "Content-Type": "application/json",
105
+ Accept: "application/json",
106
+ }));
107
+
108
+ const secConfig = await extractSecurity(client._options.apiKey);
109
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
110
+ const requestSecurity = resolveGlobalSecurity(securityInput);
111
+
112
+ const context = {
113
+ options: client._options,
114
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
115
+ operationID: "WorkspaceSecurityCreateDomain",
116
+ oAuth2Scopes: null,
117
+
118
+ resolvedSecurity: requestSecurity,
119
+
120
+ securitySource: client._options.apiKey,
121
+ retryConfig: options?.retries
122
+ || client._options.retryConfig
123
+ || { strategy: "none" },
124
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
125
+ };
126
+
127
+ const requestRes = client._createRequest(context, {
128
+ security: requestSecurity,
129
+ method: "POST",
130
+ baseURL: options?.serverURL,
131
+ path: path,
132
+ headers: headers,
133
+ body: body,
134
+ userAgent: client._options.userAgent,
135
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
136
+ }, options);
137
+ if (!requestRes.ok) {
138
+ return [requestRes, { status: "invalid" }];
139
+ }
140
+ const req = requestRes.value;
141
+
142
+ const doResult = await client._do(req, {
143
+ context,
144
+ isErrorStatusCode: (statusCode: number) =>
145
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
146
+ retryConfig: context.retryConfig,
147
+ retryCodes: context.retryCodes,
148
+ });
149
+ if (!doResult.ok) {
150
+ return [doResult, { status: "request-error", request: req }];
151
+ }
152
+ const response = doResult.value;
153
+
154
+ const [result] = await M.match<
155
+ components.CreateDomainResponse,
156
+ | OrqError
157
+ | ResponseValidationError
158
+ | ConnectionError
159
+ | RequestAbortedError
160
+ | RequestTimeoutError
161
+ | InvalidRequestError
162
+ | UnexpectedClientError
163
+ | SDKValidationError
164
+ >(
165
+ M.json(200, components.CreateDomainResponse$inboundSchema),
166
+ M.fail("4XX"),
167
+ M.fail("5XX"),
168
+ )(response, req);
169
+ if (!result.ok) {
170
+ return [result, { status: "complete", request: req, response }];
171
+ }
172
+
173
+ return [result, { status: "complete", request: req, response }];
174
+ }
@@ -0,0 +1,177 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { OrqCore } from "../core.js";
7
+ import { encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
9
+ import * as M from "../lib/matchers.js";
10
+ import { compactMap } from "../lib/primitives.js";
11
+ import { safeParse } from "../lib/schemas.js";
12
+ import { RequestOptions } from "../lib/sdks.js";
13
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
14
+ import { pathToFunc } from "../lib/url.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 domain
31
+ *
32
+ * @remarks
33
+ * Permanently removes a domain-verification record.
34
+ */
35
+ export function workspaceSecurityDeleteDomain(
36
+ client: OrqCore,
37
+ request: operations.WorkspaceSecurityDeleteDomainRequest,
38
+ options?: RequestOptions,
39
+ ): APIPromise<
40
+ Result<
41
+ void,
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.WorkspaceSecurityDeleteDomainRequest,
62
+ options?: RequestOptions,
63
+ ): Promise<
64
+ [
65
+ Result<
66
+ void,
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.WorkspaceSecurityDeleteDomainRequest$outboundSchema.parse(
83
+ value,
84
+ ),
85
+ "Input validation failed",
86
+ );
87
+ if (!parsed.ok) {
88
+ return [parsed, { status: "invalid" }];
89
+ }
90
+ const payload = parsed.value;
91
+ const body = null;
92
+
93
+ const pathParams = {
94
+ domain_id: encodeSimple("domain_id", payload.domain_id, {
95
+ explode: false,
96
+ charEncoding: "percent",
97
+ }),
98
+ workspace_key: encodeSimple("workspace_key", payload.workspace_key, {
99
+ explode: false,
100
+ charEncoding: "percent",
101
+ }),
102
+ };
103
+ const path = pathToFunc("/v2/{workspace_key}/domains/{domain_id}")(
104
+ pathParams,
105
+ );
106
+
107
+ const headers = new Headers(compactMap({
108
+ Accept: "*/*",
109
+ }));
110
+
111
+ const secConfig = await extractSecurity(client._options.apiKey);
112
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
113
+ const requestSecurity = resolveGlobalSecurity(securityInput);
114
+
115
+ const context = {
116
+ options: client._options,
117
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
118
+ operationID: "WorkspaceSecurityDeleteDomain",
119
+ oAuth2Scopes: null,
120
+
121
+ resolvedSecurity: requestSecurity,
122
+
123
+ securitySource: client._options.apiKey,
124
+ retryConfig: options?.retries
125
+ || client._options.retryConfig
126
+ || { strategy: "none" },
127
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
128
+ };
129
+
130
+ const requestRes = client._createRequest(context, {
131
+ security: requestSecurity,
132
+ method: "DELETE",
133
+ baseURL: options?.serverURL,
134
+ path: path,
135
+ headers: headers,
136
+ body: body,
137
+ userAgent: client._options.userAgent,
138
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
139
+ }, options);
140
+ if (!requestRes.ok) {
141
+ return [requestRes, { status: "invalid" }];
142
+ }
143
+ const req = requestRes.value;
144
+
145
+ const doResult = await client._do(req, {
146
+ context,
147
+ isErrorStatusCode: (statusCode: number) =>
148
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
149
+ retryConfig: context.retryConfig,
150
+ retryCodes: context.retryCodes,
151
+ });
152
+ if (!doResult.ok) {
153
+ return [doResult, { status: "request-error", request: req }];
154
+ }
155
+ const response = doResult.value;
156
+
157
+ const [result] = await M.match<
158
+ void,
159
+ | OrqError
160
+ | ResponseValidationError
161
+ | ConnectionError
162
+ | RequestAbortedError
163
+ | RequestTimeoutError
164
+ | InvalidRequestError
165
+ | UnexpectedClientError
166
+ | SDKValidationError
167
+ >(
168
+ M.nil(200, z.void()),
169
+ M.fail("4XX"),
170
+ M.fail("5XX"),
171
+ )(response, req);
172
+ if (!result.ok) {
173
+ return [result, { status: "complete", request: req, response }];
174
+ }
175
+
176
+ return [result, { status: "complete", request: req, response }];
177
+ }
@@ -0,0 +1,177 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { OrqCore } from "../core.js";
7
+ import { encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
9
+ import * as M from "../lib/matchers.js";
10
+ import { compactMap } from "../lib/primitives.js";
11
+ import { safeParse } from "../lib/schemas.js";
12
+ import { RequestOptions } from "../lib/sdks.js";
13
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
14
+ import { pathToFunc } from "../lib/url.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 an IP range
31
+ *
32
+ * @remarks
33
+ * Permanently removes a CIDR range from the workspace allowlist.
34
+ */
35
+ export function workspaceSecurityDeleteIPRange(
36
+ client: OrqCore,
37
+ request: operations.WorkspaceSecurityDeleteIPRangeRequest,
38
+ options?: RequestOptions,
39
+ ): APIPromise<
40
+ Result<
41
+ void,
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.WorkspaceSecurityDeleteIPRangeRequest,
62
+ options?: RequestOptions,
63
+ ): Promise<
64
+ [
65
+ Result<
66
+ void,
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.WorkspaceSecurityDeleteIPRangeRequest$outboundSchema.parse(
83
+ value,
84
+ ),
85
+ "Input validation failed",
86
+ );
87
+ if (!parsed.ok) {
88
+ return [parsed, { status: "invalid" }];
89
+ }
90
+ const payload = parsed.value;
91
+ const body = null;
92
+
93
+ const pathParams = {
94
+ range_id: encodeSimple("range_id", payload.range_id, {
95
+ explode: false,
96
+ charEncoding: "percent",
97
+ }),
98
+ workspace_key: encodeSimple("workspace_key", payload.workspace_key, {
99
+ explode: false,
100
+ charEncoding: "percent",
101
+ }),
102
+ };
103
+ const path = pathToFunc(
104
+ "/v2/{workspace_key}/ip-allowlist/entries/{range_id}",
105
+ )(pathParams);
106
+
107
+ const headers = new Headers(compactMap({
108
+ Accept: "*/*",
109
+ }));
110
+
111
+ const secConfig = await extractSecurity(client._options.apiKey);
112
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
113
+ const requestSecurity = resolveGlobalSecurity(securityInput);
114
+
115
+ const context = {
116
+ options: client._options,
117
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
118
+ operationID: "WorkspaceSecurityDeleteIPRange",
119
+ oAuth2Scopes: null,
120
+
121
+ resolvedSecurity: requestSecurity,
122
+
123
+ securitySource: client._options.apiKey,
124
+ retryConfig: options?.retries
125
+ || client._options.retryConfig
126
+ || { strategy: "none" },
127
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
128
+ };
129
+
130
+ const requestRes = client._createRequest(context, {
131
+ security: requestSecurity,
132
+ method: "DELETE",
133
+ baseURL: options?.serverURL,
134
+ path: path,
135
+ headers: headers,
136
+ body: body,
137
+ userAgent: client._options.userAgent,
138
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
139
+ }, options);
140
+ if (!requestRes.ok) {
141
+ return [requestRes, { status: "invalid" }];
142
+ }
143
+ const req = requestRes.value;
144
+
145
+ const doResult = await client._do(req, {
146
+ context,
147
+ isErrorStatusCode: (statusCode: number) =>
148
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
149
+ retryConfig: context.retryConfig,
150
+ retryCodes: context.retryCodes,
151
+ });
152
+ if (!doResult.ok) {
153
+ return [doResult, { status: "request-error", request: req }];
154
+ }
155
+ const response = doResult.value;
156
+
157
+ const [result] = await M.match<
158
+ void,
159
+ | OrqError
160
+ | ResponseValidationError
161
+ | ConnectionError
162
+ | RequestAbortedError
163
+ | RequestTimeoutError
164
+ | InvalidRequestError
165
+ | UnexpectedClientError
166
+ | SDKValidationError
167
+ >(
168
+ M.nil(200, z.void()),
169
+ M.fail("4XX"),
170
+ M.fail("5XX"),
171
+ )(response, req);
172
+ if (!result.ok) {
173
+ return [result, { status: "complete", request: req, response }];
174
+ }
175
+
176
+ return [result, { status: "complete", request: req, response }];
177
+ }