@gleanwork/api-client 0.18.0 → 0.18.1

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 (1034) hide show
  1. package/README.md +64 -34
  2. package/dist/commonjs/__tests__/chat.test.js +5 -3
  3. package/dist/commonjs/__tests__/chat.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/clientagents.test.js +16 -0
  5. package/dist/commonjs/__tests__/clientagents.test.js.map +1 -1
  6. package/dist/commonjs/__tests__/clientchat.test.js +10 -0
  7. package/dist/commonjs/__tests__/clientchat.test.js.map +1 -1
  8. package/dist/commonjs/__tests__/indexingdocuments.test.js +45 -0
  9. package/dist/commonjs/__tests__/indexingdocuments.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/people.test.js +12 -0
  11. package/dist/commonjs/__tests__/people.test.js.map +1 -1
  12. package/dist/commonjs/__tests__/search.test.js +10 -0
  13. package/dist/commonjs/__tests__/search.test.js.map +1 -1
  14. package/dist/commonjs/__tests__/skills.test.js +48 -0
  15. package/dist/commonjs/__tests__/skills.test.js.map +1 -1
  16. package/dist/commonjs/__tests__/summarize.test.js +4 -3
  17. package/dist/commonjs/__tests__/summarize.test.js.map +1 -1
  18. package/dist/commonjs/__tests__/tools.test.js +14 -0
  19. package/dist/commonjs/__tests__/tools.test.js.map +1 -1
  20. package/dist/commonjs/funcs/agentsCreateRun.d.ts +1 -1
  21. package/dist/commonjs/funcs/agentsCreateRun.d.ts.map +1 -1
  22. package/dist/commonjs/funcs/agentsCreateRun.js +1 -1
  23. package/dist/commonjs/funcs/agentsCreateRun.js.map +1 -1
  24. package/dist/commonjs/funcs/chatCreate.d.ts +25 -0
  25. package/dist/commonjs/funcs/chatCreate.d.ts.map +1 -0
  26. package/dist/commonjs/funcs/chatCreate.js +132 -0
  27. package/dist/commonjs/funcs/chatCreate.js.map +1 -0
  28. package/dist/commonjs/funcs/clientAgentsImport.d.ts +18 -0
  29. package/dist/commonjs/funcs/clientAgentsImport.d.ts.map +1 -0
  30. package/dist/commonjs/funcs/clientAgentsImport.js +172 -0
  31. package/dist/commonjs/funcs/clientAgentsImport.js.map +1 -0
  32. package/dist/commonjs/funcs/clientAgentsRun.d.ts +2 -1
  33. package/dist/commonjs/funcs/clientAgentsRun.d.ts.map +1 -1
  34. package/dist/commonjs/funcs/clientAgentsRun.js +5 -1
  35. package/dist/commonjs/funcs/clientAgentsRun.js.map +1 -1
  36. package/dist/commonjs/funcs/clientAgentsRunStream.d.ts +1 -1
  37. package/dist/commonjs/funcs/clientAgentsRunStream.d.ts.map +1 -1
  38. package/dist/commonjs/funcs/clientAgentsRunStream.js +1 -1
  39. package/dist/commonjs/funcs/clientAgentsRunStream.js.map +1 -1
  40. package/dist/commonjs/funcs/clientChatRetrieve.d.ts +2 -1
  41. package/dist/commonjs/funcs/clientChatRetrieve.d.ts.map +1 -1
  42. package/dist/commonjs/funcs/clientChatRetrieve.js +5 -1
  43. package/dist/commonjs/funcs/clientChatRetrieve.js.map +1 -1
  44. package/dist/commonjs/funcs/clientToolsGetToolServerTools.d.ts +25 -0
  45. package/dist/commonjs/funcs/clientToolsGetToolServerTools.d.ts.map +1 -0
  46. package/dist/commonjs/funcs/clientToolsGetToolServerTools.js +138 -0
  47. package/dist/commonjs/funcs/clientToolsGetToolServerTools.js.map +1 -0
  48. package/dist/commonjs/funcs/indexingDatasourceStatus.js +2 -4
  49. package/dist/commonjs/funcs/indexingDatasourceStatus.js.map +1 -1
  50. package/dist/commonjs/funcs/indexingDocumentsDebug.js +2 -4
  51. package/dist/commonjs/funcs/indexingDocumentsDebug.js.map +1 -1
  52. package/dist/commonjs/funcs/indexingDocumentsDebugEvents.js +2 -4
  53. package/dist/commonjs/funcs/indexingDocumentsDebugEvents.js.map +1 -1
  54. package/dist/commonjs/funcs/indexingDocumentsDebugMany.js +2 -4
  55. package/dist/commonjs/funcs/indexingDocumentsDebugMany.js.map +1 -1
  56. package/dist/commonjs/funcs/indexingPeopleDebug.js +2 -4
  57. package/dist/commonjs/funcs/indexingPeopleDebug.js.map +1 -1
  58. package/dist/commonjs/funcs/searchListFilters.d.ts +19 -0
  59. package/dist/commonjs/funcs/searchListFilters.d.ts.map +1 -0
  60. package/dist/commonjs/funcs/searchListFilters.js +134 -0
  61. package/dist/commonjs/funcs/searchListFilters.js.map +1 -0
  62. package/dist/commonjs/funcs/searchQuery.d.ts +2 -1
  63. package/dist/commonjs/funcs/searchQuery.d.ts.map +1 -1
  64. package/dist/commonjs/funcs/searchQuery.js +3 -2
  65. package/dist/commonjs/funcs/searchQuery.js.map +1 -1
  66. package/dist/commonjs/funcs/skillsDelete.d.ts +17 -0
  67. package/dist/commonjs/funcs/skillsDelete.d.ts.map +1 -0
  68. package/dist/commonjs/funcs/skillsDelete.js +131 -0
  69. package/dist/commonjs/funcs/skillsDelete.js.map +1 -0
  70. package/dist/commonjs/funcs/skillsImport.d.ts +18 -0
  71. package/dist/commonjs/funcs/skillsImport.d.ts.map +1 -0
  72. package/dist/commonjs/funcs/skillsImport.js +122 -0
  73. package/dist/commonjs/funcs/skillsImport.js.map +1 -0
  74. package/dist/commonjs/funcs/skillsPreviewSource.d.ts +25 -0
  75. package/dist/commonjs/funcs/skillsPreviewSource.d.ts.map +1 -0
  76. package/dist/commonjs/funcs/skillsPreviewSource.js +132 -0
  77. package/dist/commonjs/funcs/skillsPreviewSource.js.map +1 -0
  78. package/dist/commonjs/funcs/skillsSync.d.ts +18 -0
  79. package/dist/commonjs/funcs/skillsSync.d.ts.map +1 -0
  80. package/dist/commonjs/funcs/skillsSync.js +131 -0
  81. package/dist/commonjs/funcs/skillsSync.js.map +1 -0
  82. package/dist/commonjs/funcs/skillsUpdate.d.ts +18 -0
  83. package/dist/commonjs/funcs/skillsUpdate.d.ts.map +1 -0
  84. package/dist/commonjs/funcs/skillsUpdate.js +135 -0
  85. package/dist/commonjs/funcs/skillsUpdate.js.map +1 -0
  86. package/dist/commonjs/lib/config.d.ts +3 -3
  87. package/dist/commonjs/lib/config.js +3 -3
  88. package/dist/commonjs/models/components/accessrequestpermissiondeniedresponseerror.d.ts +9 -0
  89. package/dist/commonjs/models/components/accessrequestpermissiondeniedresponseerror.d.ts.map +1 -0
  90. package/dist/commonjs/models/components/accessrequestpermissiondeniedresponseerror.js +48 -0
  91. package/dist/commonjs/models/components/accessrequestpermissiondeniedresponseerror.js.map +1 -0
  92. package/dist/commonjs/models/components/authconfig.d.ts +50 -3
  93. package/dist/commonjs/models/components/authconfig.d.ts.map +1 -1
  94. package/dist/commonjs/models/components/authconfig.js +42 -2
  95. package/dist/commonjs/models/components/authconfig.js.map +1 -1
  96. package/dist/commonjs/models/components/customdatasourceconfig.d.ts +2 -0
  97. package/dist/commonjs/models/components/customdatasourceconfig.d.ts.map +1 -1
  98. package/dist/commonjs/models/components/customdatasourceconfig.js +2 -0
  99. package/dist/commonjs/models/components/customdatasourceconfig.js.map +1 -1
  100. package/dist/commonjs/models/components/feedentry.d.ts +1 -0
  101. package/dist/commonjs/models/components/feedentry.d.ts.map +1 -1
  102. package/dist/commonjs/models/components/feedentry.js +1 -0
  103. package/dist/commonjs/models/components/feedentry.js.map +1 -1
  104. package/dist/commonjs/models/components/feedrequest.d.ts +1 -0
  105. package/dist/commonjs/models/components/feedrequest.d.ts.map +1 -1
  106. package/dist/commonjs/models/components/feedrequest.js +1 -0
  107. package/dist/commonjs/models/components/feedrequest.js.map +1 -1
  108. package/dist/commonjs/models/components/feedresult.d.ts +1 -0
  109. package/dist/commonjs/models/components/feedresult.d.ts.map +1 -1
  110. package/dist/commonjs/models/components/feedresult.js +1 -0
  111. package/dist/commonjs/models/components/feedresult.js.map +1 -1
  112. package/dist/commonjs/models/components/importagentrequest.d.ts +59 -0
  113. package/dist/commonjs/models/components/importagentrequest.d.ts.map +1 -0
  114. package/dist/commonjs/models/components/importagentrequest.js +71 -0
  115. package/dist/commonjs/models/components/importagentrequest.js.map +1 -0
  116. package/dist/commonjs/models/components/importagentresponse.d.ts +16 -0
  117. package/dist/commonjs/models/components/importagentresponse.d.ts.map +1 -0
  118. package/dist/commonjs/models/components/importagentresponse.js +54 -0
  119. package/dist/commonjs/models/components/importagentresponse.js.map +1 -0
  120. package/dist/commonjs/models/components/importagentstatus.d.ts +17 -0
  121. package/dist/commonjs/models/components/importagentstatus.d.ts.map +1 -0
  122. package/dist/commonjs/models/components/importagentstatus.js +52 -0
  123. package/dist/commonjs/models/components/importagentstatus.js.map +1 -0
  124. package/dist/commonjs/models/components/importagentsyncmode.d.ts +20 -0
  125. package/dist/commonjs/models/components/importagentsyncmode.d.ts.map +1 -0
  126. package/dist/commonjs/models/components/importagentsyncmode.js +53 -0
  127. package/dist/commonjs/models/components/importagentsyncmode.js.map +1 -0
  128. package/dist/commonjs/models/components/index.d.ts +38 -1
  129. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  130. package/dist/commonjs/models/components/index.js +38 -1
  131. package/dist/commonjs/models/components/index.js.map +1 -1
  132. package/dist/commonjs/models/components/manualfeedbackinfo.d.ts +2 -0
  133. package/dist/commonjs/models/components/manualfeedbackinfo.d.ts.map +1 -1
  134. package/dist/commonjs/models/components/manualfeedbackinfo.js +2 -0
  135. package/dist/commonjs/models/components/manualfeedbackinfo.js.map +1 -1
  136. package/dist/commonjs/models/components/objectdefinition.d.ts +2 -0
  137. package/dist/commonjs/models/components/objectdefinition.d.ts.map +1 -1
  138. package/dist/commonjs/models/components/objectdefinition.js +2 -0
  139. package/dist/commonjs/models/components/objectdefinition.js.map +1 -1
  140. package/dist/commonjs/models/components/personmetadata.d.ts +5 -0
  141. package/dist/commonjs/models/components/personmetadata.d.ts.map +1 -1
  142. package/dist/commonjs/models/components/personmetadata.js +2 -0
  143. package/dist/commonjs/models/components/personmetadata.js.map +1 -1
  144. package/dist/commonjs/models/components/platformauthenticationsuggestion.d.ts +20 -0
  145. package/dist/commonjs/models/components/platformauthenticationsuggestion.d.ts.map +1 -0
  146. package/dist/commonjs/models/components/platformauthenticationsuggestion.js +52 -0
  147. package/dist/commonjs/models/components/platformauthenticationsuggestion.js.map +1 -0
  148. package/dist/commonjs/models/components/platformchatcitationannotation.d.ts +23 -0
  149. package/dist/commonjs/models/components/platformchatcitationannotation.d.ts.map +1 -0
  150. package/dist/commonjs/models/components/platformchatcitationannotation.js +63 -0
  151. package/dist/commonjs/models/components/platformchatcitationannotation.js.map +1 -0
  152. package/dist/commonjs/models/components/platformchatcitationsnippet.d.ts +11 -0
  153. package/dist/commonjs/models/components/platformchatcitationsnippet.d.ts.map +1 -0
  154. package/dist/commonjs/models/components/platformchatcitationsnippet.js +52 -0
  155. package/dist/commonjs/models/components/platformchatcitationsnippet.js.map +1 -0
  156. package/dist/commonjs/models/components/platformchatcitationsource.d.ts +15 -0
  157. package/dist/commonjs/models/components/platformchatcitationsource.d.ts.map +1 -0
  158. package/dist/commonjs/models/components/platformchatcitationsource.js +58 -0
  159. package/dist/commonjs/models/components/platformchatcitationsource.js.map +1 -0
  160. package/dist/commonjs/models/components/platformchatcompletedresponse.d.ts +42 -0
  161. package/dist/commonjs/models/components/platformchatcompletedresponse.d.ts.map +1 -0
  162. package/dist/commonjs/models/components/platformchatcompletedresponse.js +70 -0
  163. package/dist/commonjs/models/components/platformchatcompletedresponse.js.map +1 -0
  164. package/dist/commonjs/models/components/platformchatcreaterequest.d.ts +50 -0
  165. package/dist/commonjs/models/components/platformchatcreaterequest.d.ts.map +1 -0
  166. package/dist/commonjs/models/components/platformchatcreaterequest.js +63 -0
  167. package/dist/commonjs/models/components/platformchatcreaterequest.js.map +1 -0
  168. package/dist/commonjs/models/components/platformchatcustomentitysource.d.ts +22 -0
  169. package/dist/commonjs/models/components/platformchatcustomentitysource.d.ts.map +1 -0
  170. package/dist/commonjs/models/components/platformchatcustomentitysource.js +61 -0
  171. package/dist/commonjs/models/components/platformchatcustomentitysource.js.map +1 -0
  172. package/dist/commonjs/models/components/platformchatdocumentsource.d.ts +41 -0
  173. package/dist/commonjs/models/components/platformchatdocumentsource.d.ts.map +1 -0
  174. package/dist/commonjs/models/components/platformchatdocumentsource.js +86 -0
  175. package/dist/commonjs/models/components/platformchatdocumentsource.js.map +1 -0
  176. package/dist/commonjs/models/components/platformchatfilesource.d.ts +21 -0
  177. package/dist/commonjs/models/components/platformchatfilesource.d.ts.map +1 -0
  178. package/dist/commonjs/models/components/platformchatfilesource.js +60 -0
  179. package/dist/commonjs/models/components/platformchatfilesource.js.map +1 -0
  180. package/dist/commonjs/models/components/platformchatinputmessage.d.ts +22 -0
  181. package/dist/commonjs/models/components/platformchatinputmessage.d.ts.map +1 -0
  182. package/dist/commonjs/models/components/platformchatinputmessage.js +57 -0
  183. package/dist/commonjs/models/components/platformchatinputmessage.js.map +1 -0
  184. package/dist/commonjs/models/components/platformchatoutputmessage.d.ts +26 -0
  185. package/dist/commonjs/models/components/platformchatoutputmessage.d.ts.map +1 -0
  186. package/dist/commonjs/models/components/platformchatoutputmessage.js +64 -0
  187. package/dist/commonjs/models/components/platformchatoutputmessage.js.map +1 -0
  188. package/dist/commonjs/models/components/platformchatoutputtextcontent.d.ts +20 -0
  189. package/dist/commonjs/models/components/platformchatoutputtextcontent.d.ts.map +1 -0
  190. package/dist/commonjs/models/components/platformchatoutputtextcontent.js +59 -0
  191. package/dist/commonjs/models/components/platformchatoutputtextcontent.js.map +1 -0
  192. package/dist/commonjs/models/components/platformchatpersonsource.d.ts +20 -0
  193. package/dist/commonjs/models/components/platformchatpersonsource.d.ts.map +1 -0
  194. package/dist/commonjs/models/components/platformchatpersonsource.js +59 -0
  195. package/dist/commonjs/models/components/platformchatpersonsource.js.map +1 -0
  196. package/dist/commonjs/models/components/platformdatasourcefilterinfo.d.ts +22 -0
  197. package/dist/commonjs/models/components/platformdatasourcefilterinfo.d.ts.map +1 -0
  198. package/dist/commonjs/models/components/platformdatasourcefilterinfo.js +53 -0
  199. package/dist/commonjs/models/components/platformdatasourcefilterinfo.js.map +1 -0
  200. package/dist/commonjs/models/components/platformfilter.d.ts +6 -4
  201. package/dist/commonjs/models/components/platformfilter.d.ts.map +1 -1
  202. package/dist/commonjs/models/components/platformfilter.js.map +1 -1
  203. package/dist/commonjs/models/components/platformfilterfieldinfo.d.ts +32 -0
  204. package/dist/commonjs/models/components/platformfilterfieldinfo.d.ts.map +1 -0
  205. package/dist/commonjs/models/components/platformfilterfieldinfo.js +55 -0
  206. package/dist/commonjs/models/components/platformfilterfieldinfo.js.map +1 -0
  207. package/dist/commonjs/models/components/platformfilteroperator.d.ts +5 -3
  208. package/dist/commonjs/models/components/platformfilteroperator.d.ts.map +1 -1
  209. package/dist/commonjs/models/components/platformfilteroperator.js +5 -3
  210. package/dist/commonjs/models/components/platformfilteroperator.js.map +1 -1
  211. package/dist/commonjs/models/components/platformproblemdetailcode.d.ts +3 -0
  212. package/dist/commonjs/models/components/platformproblemdetailcode.d.ts.map +1 -1
  213. package/dist/commonjs/models/components/platformproblemdetailcode.js +3 -0
  214. package/dist/commonjs/models/components/platformproblemdetailcode.js.map +1 -1
  215. package/dist/commonjs/models/components/platformresult.d.ts +0 -4
  216. package/dist/commonjs/models/components/platformresult.d.ts.map +1 -1
  217. package/dist/commonjs/models/components/platformresult.js +0 -1
  218. package/dist/commonjs/models/components/platformresult.js.map +1 -1
  219. package/dist/commonjs/models/components/platformsearchfiltersresponse.d.ts +20 -0
  220. package/dist/commonjs/models/components/platformsearchfiltersresponse.d.ts.map +1 -0
  221. package/dist/commonjs/models/components/platformsearchfiltersresponse.js +53 -0
  222. package/dist/commonjs/models/components/platformsearchfiltersresponse.js.map +1 -0
  223. package/dist/commonjs/models/components/platformsearchrequest.d.ts +2 -9
  224. package/dist/commonjs/models/components/platformsearchrequest.d.ts.map +1 -1
  225. package/dist/commonjs/models/components/platformsearchrequest.js +0 -1
  226. package/dist/commonjs/models/components/platformsearchrequest.js.map +1 -1
  227. package/dist/commonjs/models/components/platformsearchresponse.d.ts +10 -1
  228. package/dist/commonjs/models/components/platformsearchresponse.d.ts.map +1 -1
  229. package/dist/commonjs/models/components/platformsearchresponse.js +2 -0
  230. package/dist/commonjs/models/components/platformsearchresponse.js.map +1 -1
  231. package/dist/commonjs/models/components/platformskillimportrequest.d.ts +15 -0
  232. package/dist/commonjs/models/components/platformskillimportrequest.d.ts.map +1 -0
  233. package/dist/commonjs/models/components/platformskillimportrequest.js +50 -0
  234. package/dist/commonjs/models/components/platformskillimportrequest.js.map +1 -0
  235. package/dist/commonjs/models/components/platformskillimportresponse.d.ts +18 -0
  236. package/dist/commonjs/models/components/platformskillimportresponse.d.ts.map +1 -0
  237. package/dist/commonjs/models/components/platformskillimportresponse.js +53 -0
  238. package/dist/commonjs/models/components/platformskillimportresponse.js.map +1 -0
  239. package/dist/commonjs/models/components/platformskillsourcepreview.d.ts +38 -0
  240. package/dist/commonjs/models/components/platformskillsourcepreview.d.ts.map +1 -0
  241. package/dist/commonjs/models/components/platformskillsourcepreview.js +58 -0
  242. package/dist/commonjs/models/components/platformskillsourcepreview.js.map +1 -0
  243. package/dist/commonjs/models/components/platformskillsourcepreviewfailure.d.ts +22 -0
  244. package/dist/commonjs/models/components/platformskillsourcepreviewfailure.d.ts.map +1 -0
  245. package/dist/commonjs/models/components/platformskillsourcepreviewfailure.js +54 -0
  246. package/dist/commonjs/models/components/platformskillsourcepreviewfailure.js.map +1 -0
  247. package/dist/commonjs/models/components/platformskillsourcepreviewfailurecode.d.ts +16 -0
  248. package/dist/commonjs/models/components/platformskillsourcepreviewfailurecode.d.ts.map +1 -0
  249. package/dist/commonjs/models/components/platformskillsourcepreviewfailurecode.js +51 -0
  250. package/dist/commonjs/models/components/platformskillsourcepreviewfailurecode.js.map +1 -0
  251. package/dist/commonjs/models/components/platformskillsourcepreviewfile.d.ts +17 -0
  252. package/dist/{esm/models/components/platformskillvalidationwarning.d.ts.map → commonjs/models/components/platformskillsourcepreviewfile.d.ts.map} +1 -1
  253. package/dist/commonjs/models/components/platformskillsourcepreviewfile.js +52 -0
  254. package/dist/commonjs/models/components/{platformskillvalidationwarning.js.map → platformskillsourcepreviewfile.js.map} +1 -1
  255. package/dist/commonjs/models/components/platformskillsourcepreviewrequest.d.ts +20 -0
  256. package/dist/commonjs/models/components/platformskillsourcepreviewrequest.d.ts.map +1 -0
  257. package/dist/commonjs/models/components/platformskillsourcepreviewrequest.js +51 -0
  258. package/dist/commonjs/models/components/platformskillsourcepreviewrequest.js.map +1 -0
  259. package/dist/commonjs/models/components/platformskillsourcepreviewresponse.d.ts +23 -0
  260. package/dist/commonjs/models/components/platformskillsourcepreviewresponse.d.ts.map +1 -0
  261. package/dist/commonjs/models/components/platformskillsourcepreviewresponse.js +55 -0
  262. package/dist/commonjs/models/components/platformskillsourcepreviewresponse.js.map +1 -0
  263. package/dist/commonjs/models/components/platformskillsyncresponse.d.ts +26 -0
  264. package/dist/commonjs/models/components/platformskillsyncresponse.d.ts.map +1 -0
  265. package/dist/commonjs/models/components/platformskillsyncresponse.js +55 -0
  266. package/dist/commonjs/models/components/platformskillsyncresponse.js.map +1 -0
  267. package/dist/commonjs/models/components/platformskillsyncresultstatus.d.ts +15 -0
  268. package/dist/commonjs/models/components/platformskillsyncresultstatus.d.ts.map +1 -0
  269. package/dist/commonjs/models/components/platformskillsyncresultstatus.js +50 -0
  270. package/dist/commonjs/models/components/platformskillsyncresultstatus.js.map +1 -0
  271. package/dist/commonjs/models/components/platformskillupdaterequest.d.ts +16 -0
  272. package/dist/commonjs/models/components/platformskillupdaterequest.d.ts.map +1 -0
  273. package/dist/commonjs/models/components/platformskillupdaterequest.js +51 -0
  274. package/dist/commonjs/models/components/platformskillupdaterequest.js.map +1 -0
  275. package/dist/commonjs/models/components/platformskillupdateresponse.d.ts +15 -0
  276. package/dist/commonjs/models/components/platformskillupdateresponse.d.ts.map +1 -0
  277. package/dist/commonjs/models/components/platformskillupdateresponse.js +53 -0
  278. package/dist/commonjs/models/components/platformskillupdateresponse.js.map +1 -0
  279. package/dist/commonjs/models/components/platformskillupdatestatus.d.ts +16 -0
  280. package/dist/commonjs/models/components/platformskillupdatestatus.d.ts.map +1 -0
  281. package/dist/commonjs/models/components/platformskillupdatestatus.js +51 -0
  282. package/dist/commonjs/models/components/platformskillupdatestatus.js.map +1 -0
  283. package/dist/commonjs/models/components/platformskillvalidationresponse.d.ts +2 -2
  284. package/dist/commonjs/models/components/platformskillvalidationresponse.d.ts.map +1 -1
  285. package/dist/commonjs/models/components/platformskillvalidationresponse.js +2 -2
  286. package/dist/commonjs/models/components/platformskillvalidationresponse.js.map +1 -1
  287. package/dist/commonjs/models/components/platformwarning.d.ts +22 -0
  288. package/dist/commonjs/models/components/platformwarning.d.ts.map +1 -0
  289. package/dist/commonjs/models/components/{platformskillvalidationwarning.js → platformwarning.js} +7 -7
  290. package/dist/commonjs/models/components/platformwarning.js.map +1 -0
  291. package/dist/commonjs/models/components/toolannotations.d.ts +51 -0
  292. package/dist/commonjs/models/components/toolannotations.d.ts.map +1 -0
  293. package/dist/commonjs/models/components/toolannotations.js +55 -0
  294. package/dist/commonjs/models/components/toolannotations.js.map +1 -0
  295. package/dist/commonjs/models/components/tooldefinition.d.ts +43 -0
  296. package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -0
  297. package/dist/commonjs/models/components/tooldefinition.js +57 -0
  298. package/dist/commonjs/models/components/tooldefinition.js.map +1 -0
  299. package/dist/commonjs/models/components/tooldefinitionsresponse.d.ts +18 -0
  300. package/dist/commonjs/models/components/tooldefinitionsresponse.d.ts.map +1 -0
  301. package/dist/commonjs/models/components/tooldefinitionsresponse.js +53 -0
  302. package/dist/commonjs/models/components/tooldefinitionsresponse.js.map +1 -0
  303. package/dist/commonjs/models/components/viewerinfo.d.ts +5 -5
  304. package/dist/commonjs/models/components/viewerinfo.d.ts.map +1 -1
  305. package/dist/commonjs/models/components/viewerinfo.js +6 -6
  306. package/dist/commonjs/models/components/viewerinfo.js.map +1 -1
  307. package/dist/commonjs/models/errors/accessrequestpermissiondeniedresponseerror.d.ts +25 -0
  308. package/dist/commonjs/models/errors/accessrequestpermissiondeniedresponseerror.d.ts.map +1 -0
  309. package/dist/commonjs/models/errors/accessrequestpermissiondeniedresponseerror.js +76 -0
  310. package/dist/commonjs/models/errors/accessrequestpermissiondeniedresponseerror.js.map +1 -0
  311. package/dist/commonjs/models/errors/index.d.ts +3 -0
  312. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  313. package/dist/commonjs/models/errors/index.js +3 -0
  314. package/dist/commonjs/models/errors/index.js.map +1 -1
  315. package/dist/commonjs/models/errors/platformunauthorizedagenttoolsproblemerror.d.ts +95 -0
  316. package/dist/commonjs/models/errors/platformunauthorizedagenttoolsproblemerror.d.ts.map +1 -0
  317. package/dist/commonjs/models/errors/platformunauthorizedagenttoolsproblemerror.js +93 -0
  318. package/dist/commonjs/models/errors/platformunauthorizedagenttoolsproblemerror.js.map +1 -0
  319. package/dist/commonjs/models/errors/unauthorizedagenttoolserror.d.ts +35 -0
  320. package/dist/commonjs/models/errors/unauthorizedagenttoolserror.d.ts.map +1 -0
  321. package/dist/commonjs/models/errors/unauthorizedagenttoolserror.js +72 -0
  322. package/dist/commonjs/models/errors/unauthorizedagenttoolserror.js.map +1 -0
  323. package/dist/commonjs/models/operations/gettoolservertools.d.ts +20 -0
  324. package/dist/commonjs/models/operations/gettoolservertools.d.ts.map +1 -0
  325. package/dist/commonjs/models/operations/gettoolservertools.js +51 -0
  326. package/dist/commonjs/models/operations/gettoolservertools.js.map +1 -0
  327. package/dist/commonjs/models/operations/importagent.d.ts +28 -0
  328. package/dist/commonjs/models/operations/importagent.d.ts.map +1 -0
  329. package/dist/commonjs/models/operations/importagent.js +59 -0
  330. package/dist/commonjs/models/operations/importagent.js.map +1 -0
  331. package/dist/commonjs/models/operations/index.d.ts +8 -0
  332. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  333. package/dist/commonjs/models/operations/index.js +8 -0
  334. package/dist/commonjs/models/operations/index.js.map +1 -1
  335. package/dist/commonjs/models/operations/platformchatcreate.d.ts +9 -0
  336. package/dist/commonjs/models/operations/platformchatcreate.d.ts.map +1 -0
  337. package/dist/commonjs/models/operations/platformchatcreate.js +53 -0
  338. package/dist/commonjs/models/operations/platformchatcreate.js.map +1 -0
  339. package/dist/commonjs/models/operations/platformsearchfilters.d.ts +36 -0
  340. package/dist/commonjs/models/operations/platformsearchfilters.d.ts.map +1 -0
  341. package/dist/commonjs/models/operations/platformsearchfilters.js +67 -0
  342. package/dist/commonjs/models/operations/platformsearchfilters.js.map +1 -0
  343. package/dist/commonjs/models/operations/platformskillsdelete.d.ts +15 -0
  344. package/dist/commonjs/models/operations/platformskillsdelete.d.ts.map +1 -0
  345. package/dist/commonjs/models/operations/platformskillsdelete.js +50 -0
  346. package/dist/commonjs/models/operations/platformskillsdelete.js.map +1 -0
  347. package/dist/commonjs/models/operations/platformskillspreviewsource.d.ts +9 -0
  348. package/dist/commonjs/models/operations/platformskillspreviewsource.d.ts.map +1 -0
  349. package/dist/commonjs/models/operations/platformskillspreviewsource.js +53 -0
  350. package/dist/commonjs/models/operations/platformskillspreviewsource.js.map +1 -0
  351. package/dist/commonjs/models/operations/platformskillssync.d.ts +15 -0
  352. package/dist/commonjs/models/operations/platformskillssync.d.ts.map +1 -0
  353. package/dist/commonjs/models/operations/platformskillssync.js +50 -0
  354. package/dist/commonjs/models/operations/platformskillssync.js.map +1 -0
  355. package/dist/commonjs/models/operations/platformskillsupdate.d.ts +18 -0
  356. package/dist/commonjs/models/operations/platformskillsupdate.d.ts.map +1 -0
  357. package/dist/commonjs/models/operations/platformskillsupdate.js +57 -0
  358. package/dist/commonjs/models/operations/platformskillsupdate.js.map +1 -0
  359. package/dist/commonjs/react-query/agentsCreateRun.d.ts +1 -1
  360. package/dist/commonjs/react-query/agentsCreateRun.d.ts.map +1 -1
  361. package/dist/commonjs/react-query/agentsCreateRun.js.map +1 -1
  362. package/dist/commonjs/react-query/chatCreate.d.ts +36 -0
  363. package/dist/commonjs/react-query/chatCreate.d.ts.map +1 -0
  364. package/dist/commonjs/react-query/chatCreate.js +51 -0
  365. package/dist/commonjs/react-query/chatCreate.js.map +1 -0
  366. package/dist/commonjs/react-query/clientAgentsImport.d.ts +32 -0
  367. package/dist/commonjs/react-query/clientAgentsImport.d.ts.map +1 -0
  368. package/dist/commonjs/react-query/clientAgentsImport.js +48 -0
  369. package/dist/commonjs/react-query/clientAgentsImport.js.map +1 -0
  370. package/dist/commonjs/react-query/clientAgentsRun.d.ts +2 -1
  371. package/dist/commonjs/react-query/clientAgentsRun.d.ts.map +1 -1
  372. package/dist/commonjs/react-query/clientAgentsRun.js.map +1 -1
  373. package/dist/commonjs/react-query/clientAgentsRunStream.d.ts +1 -1
  374. package/dist/commonjs/react-query/clientAgentsRunStream.d.ts.map +1 -1
  375. package/dist/commonjs/react-query/clientAgentsRunStream.js.map +1 -1
  376. package/dist/commonjs/react-query/clientChatRetrieve.d.ts +2 -1
  377. package/dist/commonjs/react-query/clientChatRetrieve.d.ts.map +1 -1
  378. package/dist/commonjs/react-query/clientChatRetrieve.js.map +1 -1
  379. package/dist/commonjs/react-query/clientToolsGetToolServerTools.core.d.ts +14 -0
  380. package/dist/commonjs/react-query/clientToolsGetToolServerTools.core.d.ts.map +1 -0
  381. package/dist/commonjs/react-query/clientToolsGetToolServerTools.core.js +41 -0
  382. package/dist/commonjs/react-query/clientToolsGetToolServerTools.core.js.map +1 -0
  383. package/dist/commonjs/react-query/clientToolsGetToolServerTools.d.ts +50 -0
  384. package/dist/commonjs/react-query/clientToolsGetToolServerTools.d.ts.map +1 -0
  385. package/dist/commonjs/react-query/clientToolsGetToolServerTools.js +82 -0
  386. package/dist/commonjs/react-query/clientToolsGetToolServerTools.js.map +1 -0
  387. package/dist/commonjs/react-query/index.d.ts +9 -0
  388. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  389. package/dist/commonjs/react-query/index.js +9 -0
  390. package/dist/commonjs/react-query/index.js.map +1 -1
  391. package/dist/commonjs/react-query/searchListFilters.core.d.ts +15 -0
  392. package/dist/commonjs/react-query/searchListFilters.core.d.ts.map +1 -0
  393. package/dist/commonjs/react-query/searchListFilters.core.js +35 -0
  394. package/dist/commonjs/react-query/searchListFilters.core.js.map +1 -0
  395. package/dist/commonjs/react-query/searchListFilters.d.ts +40 -0
  396. package/dist/commonjs/react-query/searchListFilters.d.ts.map +1 -0
  397. package/dist/commonjs/react-query/searchListFilters.js +68 -0
  398. package/dist/commonjs/react-query/searchListFilters.js.map +1 -0
  399. package/dist/commonjs/react-query/searchQuery.d.ts +2 -1
  400. package/dist/commonjs/react-query/searchQuery.d.ts.map +1 -1
  401. package/dist/commonjs/react-query/searchQuery.js +2 -1
  402. package/dist/commonjs/react-query/searchQuery.js.map +1 -1
  403. package/dist/commonjs/react-query/skillsDelete.d.ts +28 -0
  404. package/dist/commonjs/react-query/skillsDelete.d.ts.map +1 -0
  405. package/dist/commonjs/react-query/skillsDelete.js +48 -0
  406. package/dist/commonjs/react-query/skillsDelete.js.map +1 -0
  407. package/dist/commonjs/react-query/skillsImport.d.ts +29 -0
  408. package/dist/commonjs/react-query/skillsImport.d.ts.map +1 -0
  409. package/dist/commonjs/react-query/skillsImport.js +48 -0
  410. package/dist/commonjs/react-query/skillsImport.js.map +1 -0
  411. package/dist/commonjs/react-query/skillsPreviewSource.d.ts +36 -0
  412. package/dist/commonjs/react-query/skillsPreviewSource.d.ts.map +1 -0
  413. package/dist/commonjs/react-query/skillsPreviewSource.js +51 -0
  414. package/dist/commonjs/react-query/skillsPreviewSource.js.map +1 -0
  415. package/dist/commonjs/react-query/skillsSync.d.ts +29 -0
  416. package/dist/commonjs/react-query/skillsSync.d.ts.map +1 -0
  417. package/dist/commonjs/react-query/skillsSync.js +48 -0
  418. package/dist/commonjs/react-query/skillsSync.js.map +1 -0
  419. package/dist/commonjs/react-query/skillsUpdate.d.ts +30 -0
  420. package/dist/commonjs/react-query/skillsUpdate.d.ts.map +1 -0
  421. package/dist/commonjs/react-query/skillsUpdate.js +48 -0
  422. package/dist/commonjs/react-query/skillsUpdate.js.map +1 -0
  423. package/dist/commonjs/sdk/chat.d.ts +8 -73
  424. package/dist/commonjs/sdk/chat.d.ts.map +1 -1
  425. package/dist/commonjs/sdk/chat.js +8 -106
  426. package/dist/commonjs/sdk/chat.js.map +1 -1
  427. package/dist/commonjs/sdk/client.d.ts +2 -2
  428. package/dist/commonjs/sdk/client.d.ts.map +1 -1
  429. package/dist/commonjs/sdk/client.js +2 -2
  430. package/dist/commonjs/sdk/client.js.map +1 -1
  431. package/dist/commonjs/sdk/clientagents.d.ts +7 -0
  432. package/dist/commonjs/sdk/clientagents.d.ts.map +1 -1
  433. package/dist/commonjs/sdk/clientagents.js +10 -0
  434. package/dist/commonjs/sdk/clientagents.js.map +1 -1
  435. package/dist/commonjs/sdk/clientchat.d.ts +82 -0
  436. package/dist/commonjs/sdk/clientchat.d.ts.map +1 -0
  437. package/dist/commonjs/sdk/clientchat.js +123 -0
  438. package/dist/commonjs/sdk/clientchat.js.map +1 -0
  439. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  440. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  441. package/dist/commonjs/sdk/sdk.js +4 -0
  442. package/dist/commonjs/sdk/sdk.js.map +1 -1
  443. package/dist/commonjs/sdk/search.d.ts +11 -1
  444. package/dist/commonjs/sdk/search.d.ts.map +1 -1
  445. package/dist/commonjs/sdk/search.js +13 -1
  446. package/dist/commonjs/sdk/search.js.map +1 -1
  447. package/dist/commonjs/sdk/skills.d.ts +39 -0
  448. package/dist/commonjs/sdk/skills.d.ts.map +1 -1
  449. package/dist/commonjs/sdk/skills.js +53 -1
  450. package/dist/commonjs/sdk/skills.js.map +1 -1
  451. package/dist/commonjs/sdk/tools.d.ts +15 -0
  452. package/dist/commonjs/sdk/tools.d.ts.map +1 -1
  453. package/dist/commonjs/sdk/tools.js +18 -0
  454. package/dist/commonjs/sdk/tools.js.map +1 -1
  455. package/dist/esm/__tests__/chat.test.js +5 -3
  456. package/dist/esm/__tests__/chat.test.js.map +1 -1
  457. package/dist/esm/__tests__/clientagents.test.js +16 -0
  458. package/dist/esm/__tests__/clientagents.test.js.map +1 -1
  459. package/dist/esm/__tests__/clientchat.test.js +10 -0
  460. package/dist/esm/__tests__/clientchat.test.js.map +1 -1
  461. package/dist/esm/__tests__/indexingdocuments.test.js +46 -1
  462. package/dist/esm/__tests__/indexingdocuments.test.js.map +1 -1
  463. package/dist/esm/__tests__/people.test.js +13 -1
  464. package/dist/esm/__tests__/people.test.js.map +1 -1
  465. package/dist/esm/__tests__/search.test.js +10 -0
  466. package/dist/esm/__tests__/search.test.js.map +1 -1
  467. package/dist/esm/__tests__/skills.test.js +48 -0
  468. package/dist/esm/__tests__/skills.test.js.map +1 -1
  469. package/dist/esm/__tests__/summarize.test.js +4 -3
  470. package/dist/esm/__tests__/summarize.test.js.map +1 -1
  471. package/dist/esm/__tests__/tools.test.js +14 -0
  472. package/dist/esm/__tests__/tools.test.js.map +1 -1
  473. package/dist/esm/funcs/agentsCreateRun.d.ts +1 -1
  474. package/dist/esm/funcs/agentsCreateRun.d.ts.map +1 -1
  475. package/dist/esm/funcs/agentsCreateRun.js +1 -1
  476. package/dist/esm/funcs/agentsCreateRun.js.map +1 -1
  477. package/dist/esm/funcs/chatCreate.d.ts +25 -0
  478. package/dist/esm/funcs/chatCreate.d.ts.map +1 -0
  479. package/dist/esm/funcs/chatCreate.js +95 -0
  480. package/dist/esm/funcs/chatCreate.js.map +1 -0
  481. package/dist/esm/funcs/clientAgentsImport.d.ts +18 -0
  482. package/dist/esm/funcs/clientAgentsImport.d.ts.map +1 -0
  483. package/dist/esm/funcs/clientAgentsImport.js +136 -0
  484. package/dist/esm/funcs/clientAgentsImport.js.map +1 -0
  485. package/dist/esm/funcs/clientAgentsRun.d.ts +2 -1
  486. package/dist/esm/funcs/clientAgentsRun.d.ts.map +1 -1
  487. package/dist/esm/funcs/clientAgentsRun.js +5 -1
  488. package/dist/esm/funcs/clientAgentsRun.js.map +1 -1
  489. package/dist/esm/funcs/clientAgentsRunStream.d.ts +1 -1
  490. package/dist/esm/funcs/clientAgentsRunStream.d.ts.map +1 -1
  491. package/dist/esm/funcs/clientAgentsRunStream.js +1 -1
  492. package/dist/esm/funcs/clientAgentsRunStream.js.map +1 -1
  493. package/dist/esm/funcs/clientChatRetrieve.d.ts +2 -1
  494. package/dist/esm/funcs/clientChatRetrieve.d.ts.map +1 -1
  495. package/dist/esm/funcs/clientChatRetrieve.js +5 -1
  496. package/dist/esm/funcs/clientChatRetrieve.js.map +1 -1
  497. package/dist/esm/funcs/clientToolsGetToolServerTools.d.ts +25 -0
  498. package/dist/esm/funcs/clientToolsGetToolServerTools.d.ts.map +1 -0
  499. package/dist/esm/funcs/clientToolsGetToolServerTools.js +102 -0
  500. package/dist/esm/funcs/clientToolsGetToolServerTools.js.map +1 -0
  501. package/dist/esm/funcs/indexingDatasourceStatus.js +2 -4
  502. package/dist/esm/funcs/indexingDatasourceStatus.js.map +1 -1
  503. package/dist/esm/funcs/indexingDocumentsDebug.js +2 -4
  504. package/dist/esm/funcs/indexingDocumentsDebug.js.map +1 -1
  505. package/dist/esm/funcs/indexingDocumentsDebugEvents.js +2 -4
  506. package/dist/esm/funcs/indexingDocumentsDebugEvents.js.map +1 -1
  507. package/dist/esm/funcs/indexingDocumentsDebugMany.js +2 -4
  508. package/dist/esm/funcs/indexingDocumentsDebugMany.js.map +1 -1
  509. package/dist/esm/funcs/indexingPeopleDebug.js +2 -4
  510. package/dist/esm/funcs/indexingPeopleDebug.js.map +1 -1
  511. package/dist/esm/funcs/searchListFilters.d.ts +19 -0
  512. package/dist/esm/funcs/searchListFilters.d.ts.map +1 -0
  513. package/dist/esm/funcs/searchListFilters.js +98 -0
  514. package/dist/esm/funcs/searchListFilters.js.map +1 -0
  515. package/dist/esm/funcs/searchQuery.d.ts +2 -1
  516. package/dist/esm/funcs/searchQuery.d.ts.map +1 -1
  517. package/dist/esm/funcs/searchQuery.js +3 -2
  518. package/dist/esm/funcs/searchQuery.js.map +1 -1
  519. package/dist/esm/funcs/skillsDelete.d.ts +17 -0
  520. package/dist/esm/funcs/skillsDelete.d.ts.map +1 -0
  521. package/dist/esm/funcs/skillsDelete.js +95 -0
  522. package/dist/esm/funcs/skillsDelete.js.map +1 -0
  523. package/dist/esm/funcs/skillsImport.d.ts +18 -0
  524. package/dist/esm/funcs/skillsImport.d.ts.map +1 -0
  525. package/dist/esm/funcs/skillsImport.js +86 -0
  526. package/dist/esm/funcs/skillsImport.js.map +1 -0
  527. package/dist/esm/funcs/skillsPreviewSource.d.ts +25 -0
  528. package/dist/esm/funcs/skillsPreviewSource.d.ts.map +1 -0
  529. package/dist/esm/funcs/skillsPreviewSource.js +95 -0
  530. package/dist/esm/funcs/skillsPreviewSource.js.map +1 -0
  531. package/dist/esm/funcs/skillsSync.d.ts +18 -0
  532. package/dist/esm/funcs/skillsSync.d.ts.map +1 -0
  533. package/dist/esm/funcs/skillsSync.js +95 -0
  534. package/dist/esm/funcs/skillsSync.js.map +1 -0
  535. package/dist/esm/funcs/skillsUpdate.d.ts +18 -0
  536. package/dist/esm/funcs/skillsUpdate.d.ts.map +1 -0
  537. package/dist/esm/funcs/skillsUpdate.js +99 -0
  538. package/dist/esm/funcs/skillsUpdate.js.map +1 -0
  539. package/dist/esm/lib/config.d.ts +3 -3
  540. package/dist/esm/lib/config.js +3 -3
  541. package/dist/esm/models/components/accessrequestpermissiondeniedresponseerror.d.ts +9 -0
  542. package/dist/esm/models/components/accessrequestpermissiondeniedresponseerror.d.ts.map +1 -0
  543. package/dist/esm/models/components/accessrequestpermissiondeniedresponseerror.js +12 -0
  544. package/dist/esm/models/components/accessrequestpermissiondeniedresponseerror.js.map +1 -0
  545. package/dist/esm/models/components/authconfig.d.ts +50 -3
  546. package/dist/esm/models/components/authconfig.d.ts.map +1 -1
  547. package/dist/esm/models/components/authconfig.js +41 -1
  548. package/dist/esm/models/components/authconfig.js.map +1 -1
  549. package/dist/esm/models/components/customdatasourceconfig.d.ts +2 -0
  550. package/dist/esm/models/components/customdatasourceconfig.d.ts.map +1 -1
  551. package/dist/esm/models/components/customdatasourceconfig.js +2 -0
  552. package/dist/esm/models/components/customdatasourceconfig.js.map +1 -1
  553. package/dist/esm/models/components/feedentry.d.ts +1 -0
  554. package/dist/esm/models/components/feedentry.d.ts.map +1 -1
  555. package/dist/esm/models/components/feedentry.js +1 -0
  556. package/dist/esm/models/components/feedentry.js.map +1 -1
  557. package/dist/esm/models/components/feedrequest.d.ts +1 -0
  558. package/dist/esm/models/components/feedrequest.d.ts.map +1 -1
  559. package/dist/esm/models/components/feedrequest.js +1 -0
  560. package/dist/esm/models/components/feedrequest.js.map +1 -1
  561. package/dist/esm/models/components/feedresult.d.ts +1 -0
  562. package/dist/esm/models/components/feedresult.d.ts.map +1 -1
  563. package/dist/esm/models/components/feedresult.js +1 -0
  564. package/dist/esm/models/components/feedresult.js.map +1 -1
  565. package/dist/esm/models/components/importagentrequest.d.ts +59 -0
  566. package/dist/esm/models/components/importagentrequest.d.ts.map +1 -0
  567. package/dist/esm/models/components/importagentrequest.js +33 -0
  568. package/dist/esm/models/components/importagentrequest.js.map +1 -0
  569. package/dist/esm/models/components/importagentresponse.d.ts +16 -0
  570. package/dist/esm/models/components/importagentresponse.d.ts.map +1 -0
  571. package/dist/esm/models/components/importagentresponse.js +17 -0
  572. package/dist/esm/models/components/importagentresponse.js.map +1 -0
  573. package/dist/esm/models/components/importagentstatus.d.ts +17 -0
  574. package/dist/esm/models/components/importagentstatus.d.ts.map +1 -0
  575. package/dist/esm/models/components/importagentstatus.js +16 -0
  576. package/dist/esm/models/components/importagentstatus.js.map +1 -0
  577. package/dist/esm/models/components/importagentsyncmode.d.ts +20 -0
  578. package/dist/esm/models/components/importagentsyncmode.d.ts.map +1 -0
  579. package/dist/esm/models/components/importagentsyncmode.js +17 -0
  580. package/dist/esm/models/components/importagentsyncmode.js.map +1 -0
  581. package/dist/esm/models/components/index.d.ts +38 -1
  582. package/dist/esm/models/components/index.d.ts.map +1 -1
  583. package/dist/esm/models/components/index.js +38 -1
  584. package/dist/esm/models/components/index.js.map +1 -1
  585. package/dist/esm/models/components/manualfeedbackinfo.d.ts +2 -0
  586. package/dist/esm/models/components/manualfeedbackinfo.d.ts.map +1 -1
  587. package/dist/esm/models/components/manualfeedbackinfo.js +2 -0
  588. package/dist/esm/models/components/manualfeedbackinfo.js.map +1 -1
  589. package/dist/esm/models/components/objectdefinition.d.ts +2 -0
  590. package/dist/esm/models/components/objectdefinition.d.ts.map +1 -1
  591. package/dist/esm/models/components/objectdefinition.js +2 -0
  592. package/dist/esm/models/components/objectdefinition.js.map +1 -1
  593. package/dist/esm/models/components/personmetadata.d.ts +5 -0
  594. package/dist/esm/models/components/personmetadata.d.ts.map +1 -1
  595. package/dist/esm/models/components/personmetadata.js +2 -0
  596. package/dist/esm/models/components/personmetadata.js.map +1 -1
  597. package/dist/esm/models/components/platformauthenticationsuggestion.d.ts +20 -0
  598. package/dist/esm/models/components/platformauthenticationsuggestion.d.ts.map +1 -0
  599. package/dist/esm/models/components/platformauthenticationsuggestion.js +15 -0
  600. package/dist/esm/models/components/platformauthenticationsuggestion.js.map +1 -0
  601. package/dist/esm/models/components/platformchatcitationannotation.d.ts +23 -0
  602. package/dist/esm/models/components/platformchatcitationannotation.d.ts.map +1 -0
  603. package/dist/esm/models/components/platformchatcitationannotation.js +26 -0
  604. package/dist/esm/models/components/platformchatcitationannotation.js.map +1 -0
  605. package/dist/esm/models/components/platformchatcitationsnippet.d.ts +11 -0
  606. package/dist/esm/models/components/platformchatcitationsnippet.d.ts.map +1 -0
  607. package/dist/esm/models/components/platformchatcitationsnippet.js +15 -0
  608. package/dist/esm/models/components/platformchatcitationsnippet.js.map +1 -0
  609. package/dist/esm/models/components/platformchatcitationsource.d.ts +15 -0
  610. package/dist/esm/models/components/platformchatcitationsource.d.ts.map +1 -0
  611. package/dist/esm/models/components/platformchatcitationsource.js +21 -0
  612. package/dist/esm/models/components/platformchatcitationsource.js.map +1 -0
  613. package/dist/esm/models/components/platformchatcompletedresponse.d.ts +42 -0
  614. package/dist/esm/models/components/platformchatcompletedresponse.d.ts.map +1 -0
  615. package/dist/esm/models/components/platformchatcompletedresponse.js +33 -0
  616. package/dist/esm/models/components/platformchatcompletedresponse.js.map +1 -0
  617. package/dist/esm/models/components/platformchatcreaterequest.d.ts +50 -0
  618. package/dist/esm/models/components/platformchatcreaterequest.d.ts.map +1 -0
  619. package/dist/esm/models/components/platformchatcreaterequest.js +25 -0
  620. package/dist/esm/models/components/platformchatcreaterequest.js.map +1 -0
  621. package/dist/esm/models/components/platformchatcustomentitysource.d.ts +22 -0
  622. package/dist/esm/models/components/platformchatcustomentitysource.d.ts.map +1 -0
  623. package/dist/esm/models/components/platformchatcustomentitysource.js +24 -0
  624. package/dist/esm/models/components/platformchatcustomentitysource.js.map +1 -0
  625. package/dist/esm/models/components/platformchatdocumentsource.d.ts +41 -0
  626. package/dist/esm/models/components/platformchatdocumentsource.d.ts.map +1 -0
  627. package/dist/esm/models/components/platformchatdocumentsource.js +47 -0
  628. package/dist/esm/models/components/platformchatdocumentsource.js.map +1 -0
  629. package/dist/esm/models/components/platformchatfilesource.d.ts +21 -0
  630. package/dist/esm/models/components/platformchatfilesource.d.ts.map +1 -0
  631. package/dist/esm/models/components/platformchatfilesource.js +23 -0
  632. package/dist/esm/models/components/platformchatfilesource.js.map +1 -0
  633. package/dist/esm/models/components/platformchatinputmessage.d.ts +22 -0
  634. package/dist/esm/models/components/platformchatinputmessage.d.ts.map +1 -0
  635. package/dist/esm/models/components/platformchatinputmessage.js +20 -0
  636. package/dist/esm/models/components/platformchatinputmessage.js.map +1 -0
  637. package/dist/esm/models/components/platformchatoutputmessage.d.ts +26 -0
  638. package/dist/esm/models/components/platformchatoutputmessage.d.ts.map +1 -0
  639. package/dist/esm/models/components/platformchatoutputmessage.js +27 -0
  640. package/dist/esm/models/components/platformchatoutputmessage.js.map +1 -0
  641. package/dist/esm/models/components/platformchatoutputtextcontent.d.ts +20 -0
  642. package/dist/esm/models/components/platformchatoutputtextcontent.d.ts.map +1 -0
  643. package/dist/esm/models/components/platformchatoutputtextcontent.js +22 -0
  644. package/dist/esm/models/components/platformchatoutputtextcontent.js.map +1 -0
  645. package/dist/esm/models/components/platformchatpersonsource.d.ts +20 -0
  646. package/dist/esm/models/components/platformchatpersonsource.d.ts.map +1 -0
  647. package/dist/esm/models/components/platformchatpersonsource.js +22 -0
  648. package/dist/esm/models/components/platformchatpersonsource.js.map +1 -0
  649. package/dist/esm/models/components/platformdatasourcefilterinfo.d.ts +22 -0
  650. package/dist/esm/models/components/platformdatasourcefilterinfo.d.ts.map +1 -0
  651. package/dist/esm/models/components/platformdatasourcefilterinfo.js +16 -0
  652. package/dist/esm/models/components/platformdatasourcefilterinfo.js.map +1 -0
  653. package/dist/esm/models/components/platformfilter.d.ts +6 -4
  654. package/dist/esm/models/components/platformfilter.d.ts.map +1 -1
  655. package/dist/esm/models/components/platformfilter.js.map +1 -1
  656. package/dist/esm/models/components/platformfilterfieldinfo.d.ts +32 -0
  657. package/dist/esm/models/components/platformfilterfieldinfo.d.ts.map +1 -0
  658. package/dist/esm/models/components/platformfilterfieldinfo.js +18 -0
  659. package/dist/esm/models/components/platformfilterfieldinfo.js.map +1 -0
  660. package/dist/esm/models/components/platformfilteroperator.d.ts +5 -3
  661. package/dist/esm/models/components/platformfilteroperator.d.ts.map +1 -1
  662. package/dist/esm/models/components/platformfilteroperator.js +4 -2
  663. package/dist/esm/models/components/platformfilteroperator.js.map +1 -1
  664. package/dist/esm/models/components/platformproblemdetailcode.d.ts +3 -0
  665. package/dist/esm/models/components/platformproblemdetailcode.d.ts.map +1 -1
  666. package/dist/esm/models/components/platformproblemdetailcode.js +3 -0
  667. package/dist/esm/models/components/platformproblemdetailcode.js.map +1 -1
  668. package/dist/esm/models/components/platformresult.d.ts +0 -4
  669. package/dist/esm/models/components/platformresult.d.ts.map +1 -1
  670. package/dist/esm/models/components/platformresult.js +0 -1
  671. package/dist/esm/models/components/platformresult.js.map +1 -1
  672. package/dist/esm/models/components/platformsearchfiltersresponse.d.ts +20 -0
  673. package/dist/esm/models/components/platformsearchfiltersresponse.d.ts.map +1 -0
  674. package/dist/esm/models/components/platformsearchfiltersresponse.js +16 -0
  675. package/dist/esm/models/components/platformsearchfiltersresponse.js.map +1 -0
  676. package/dist/esm/models/components/platformsearchrequest.d.ts +2 -9
  677. package/dist/esm/models/components/platformsearchrequest.d.ts.map +1 -1
  678. package/dist/esm/models/components/platformsearchrequest.js +0 -1
  679. package/dist/esm/models/components/platformsearchrequest.js.map +1 -1
  680. package/dist/esm/models/components/platformsearchresponse.d.ts +10 -1
  681. package/dist/esm/models/components/platformsearchresponse.d.ts.map +1 -1
  682. package/dist/esm/models/components/platformsearchresponse.js +2 -0
  683. package/dist/esm/models/components/platformsearchresponse.js.map +1 -1
  684. package/dist/esm/models/components/platformskillimportrequest.d.ts +15 -0
  685. package/dist/esm/models/components/platformskillimportrequest.d.ts.map +1 -0
  686. package/dist/esm/models/components/platformskillimportrequest.js +13 -0
  687. package/dist/esm/models/components/platformskillimportrequest.js.map +1 -0
  688. package/dist/esm/models/components/platformskillimportresponse.d.ts +18 -0
  689. package/dist/esm/models/components/platformskillimportresponse.d.ts.map +1 -0
  690. package/dist/esm/models/components/platformskillimportresponse.js +16 -0
  691. package/dist/esm/models/components/platformskillimportresponse.js.map +1 -0
  692. package/dist/esm/models/components/platformskillsourcepreview.d.ts +38 -0
  693. package/dist/esm/models/components/platformskillsourcepreview.d.ts.map +1 -0
  694. package/dist/esm/models/components/platformskillsourcepreview.js +21 -0
  695. package/dist/esm/models/components/platformskillsourcepreview.js.map +1 -0
  696. package/dist/esm/models/components/platformskillsourcepreviewfailure.d.ts +22 -0
  697. package/dist/esm/models/components/platformskillsourcepreviewfailure.d.ts.map +1 -0
  698. package/dist/esm/models/components/platformskillsourcepreviewfailure.js +17 -0
  699. package/dist/esm/models/components/platformskillsourcepreviewfailure.js.map +1 -0
  700. package/dist/esm/models/components/platformskillsourcepreviewfailurecode.d.ts +16 -0
  701. package/dist/esm/models/components/platformskillsourcepreviewfailurecode.d.ts.map +1 -0
  702. package/dist/esm/models/components/platformskillsourcepreviewfailurecode.js +15 -0
  703. package/dist/esm/models/components/platformskillsourcepreviewfailurecode.js.map +1 -0
  704. package/dist/esm/models/components/platformskillsourcepreviewfile.d.ts +17 -0
  705. package/dist/{commonjs/models/components/platformskillvalidationwarning.d.ts.map → esm/models/components/platformskillsourcepreviewfile.d.ts.map} +1 -1
  706. package/dist/esm/models/components/platformskillsourcepreviewfile.js +15 -0
  707. package/dist/esm/models/components/{platformskillvalidationwarning.js.map → platformskillsourcepreviewfile.js.map} +1 -1
  708. package/dist/esm/models/components/platformskillsourcepreviewrequest.d.ts +20 -0
  709. package/dist/esm/models/components/platformskillsourcepreviewrequest.d.ts.map +1 -0
  710. package/dist/esm/models/components/platformskillsourcepreviewrequest.js +14 -0
  711. package/dist/esm/models/components/platformskillsourcepreviewrequest.js.map +1 -0
  712. package/dist/esm/models/components/platformskillsourcepreviewresponse.d.ts +23 -0
  713. package/dist/esm/models/components/platformskillsourcepreviewresponse.d.ts.map +1 -0
  714. package/dist/esm/models/components/platformskillsourcepreviewresponse.js +18 -0
  715. package/dist/esm/models/components/platformskillsourcepreviewresponse.js.map +1 -0
  716. package/dist/esm/models/components/platformskillsyncresponse.d.ts +26 -0
  717. package/dist/esm/models/components/platformskillsyncresponse.d.ts.map +1 -0
  718. package/dist/esm/models/components/platformskillsyncresponse.js +18 -0
  719. package/dist/esm/models/components/platformskillsyncresponse.js.map +1 -0
  720. package/dist/esm/models/components/platformskillsyncresultstatus.d.ts +15 -0
  721. package/dist/esm/models/components/platformskillsyncresultstatus.d.ts.map +1 -0
  722. package/dist/esm/models/components/platformskillsyncresultstatus.js +14 -0
  723. package/dist/esm/models/components/platformskillsyncresultstatus.js.map +1 -0
  724. package/dist/esm/models/components/platformskillupdaterequest.d.ts +16 -0
  725. package/dist/esm/models/components/platformskillupdaterequest.d.ts.map +1 -0
  726. package/dist/esm/models/components/platformskillupdaterequest.js +14 -0
  727. package/dist/esm/models/components/platformskillupdaterequest.js.map +1 -0
  728. package/dist/esm/models/components/platformskillupdateresponse.d.ts +15 -0
  729. package/dist/esm/models/components/platformskillupdateresponse.d.ts.map +1 -0
  730. package/dist/esm/models/components/platformskillupdateresponse.js +16 -0
  731. package/dist/esm/models/components/platformskillupdateresponse.js.map +1 -0
  732. package/dist/esm/models/components/platformskillupdatestatus.d.ts +16 -0
  733. package/dist/esm/models/components/platformskillupdatestatus.d.ts.map +1 -0
  734. package/dist/esm/models/components/platformskillupdatestatus.js +15 -0
  735. package/dist/esm/models/components/platformskillupdatestatus.js.map +1 -0
  736. package/dist/esm/models/components/platformskillvalidationresponse.d.ts +2 -2
  737. package/dist/esm/models/components/platformskillvalidationresponse.d.ts.map +1 -1
  738. package/dist/esm/models/components/platformskillvalidationresponse.js +2 -2
  739. package/dist/esm/models/components/platformskillvalidationresponse.js.map +1 -1
  740. package/dist/esm/models/components/platformwarning.d.ts +22 -0
  741. package/dist/esm/models/components/platformwarning.d.ts.map +1 -0
  742. package/dist/esm/models/components/platformwarning.js +15 -0
  743. package/dist/esm/models/components/platformwarning.js.map +1 -0
  744. package/dist/esm/models/components/toolannotations.d.ts +51 -0
  745. package/dist/esm/models/components/toolannotations.d.ts.map +1 -0
  746. package/dist/esm/models/components/toolannotations.js +18 -0
  747. package/dist/esm/models/components/toolannotations.js.map +1 -0
  748. package/dist/esm/models/components/tooldefinition.d.ts +43 -0
  749. package/dist/esm/models/components/tooldefinition.d.ts.map +1 -0
  750. package/dist/esm/models/components/tooldefinition.js +20 -0
  751. package/dist/esm/models/components/tooldefinition.js.map +1 -0
  752. package/dist/esm/models/components/tooldefinitionsresponse.d.ts +18 -0
  753. package/dist/esm/models/components/tooldefinitionsresponse.d.ts.map +1 -0
  754. package/dist/esm/models/components/tooldefinitionsresponse.js +16 -0
  755. package/dist/esm/models/components/tooldefinitionsresponse.js.map +1 -0
  756. package/dist/esm/models/components/viewerinfo.d.ts +5 -5
  757. package/dist/esm/models/components/viewerinfo.d.ts.map +1 -1
  758. package/dist/esm/models/components/viewerinfo.js +5 -5
  759. package/dist/esm/models/components/viewerinfo.js.map +1 -1
  760. package/dist/esm/models/errors/accessrequestpermissiondeniedresponseerror.d.ts +25 -0
  761. package/dist/esm/models/errors/accessrequestpermissiondeniedresponseerror.d.ts.map +1 -0
  762. package/dist/esm/models/errors/accessrequestpermissiondeniedresponseerror.js +39 -0
  763. package/dist/esm/models/errors/accessrequestpermissiondeniedresponseerror.js.map +1 -0
  764. package/dist/esm/models/errors/index.d.ts +3 -0
  765. package/dist/esm/models/errors/index.d.ts.map +1 -1
  766. package/dist/esm/models/errors/index.js +3 -0
  767. package/dist/esm/models/errors/index.js.map +1 -1
  768. package/dist/esm/models/errors/platformunauthorizedagenttoolsproblemerror.d.ts +95 -0
  769. package/dist/esm/models/errors/platformunauthorizedagenttoolsproblemerror.d.ts.map +1 -0
  770. package/dist/esm/models/errors/platformunauthorizedagenttoolsproblemerror.js +56 -0
  771. package/dist/esm/models/errors/platformunauthorizedagenttoolsproblemerror.js.map +1 -0
  772. package/dist/esm/models/errors/unauthorizedagenttoolserror.d.ts +35 -0
  773. package/dist/esm/models/errors/unauthorizedagenttoolserror.d.ts.map +1 -0
  774. package/dist/esm/models/errors/unauthorizedagenttoolserror.js +35 -0
  775. package/dist/esm/models/errors/unauthorizedagenttoolserror.js.map +1 -0
  776. package/dist/esm/models/operations/gettoolservertools.d.ts +20 -0
  777. package/dist/esm/models/operations/gettoolservertools.d.ts.map +1 -0
  778. package/dist/esm/models/operations/gettoolservertools.js +14 -0
  779. package/dist/esm/models/operations/gettoolservertools.js.map +1 -0
  780. package/dist/esm/models/operations/importagent.d.ts +28 -0
  781. package/dist/esm/models/operations/importagent.d.ts.map +1 -0
  782. package/dist/esm/models/operations/importagent.js +22 -0
  783. package/dist/esm/models/operations/importagent.js.map +1 -0
  784. package/dist/esm/models/operations/index.d.ts +8 -0
  785. package/dist/esm/models/operations/index.d.ts.map +1 -1
  786. package/dist/esm/models/operations/index.js +8 -0
  787. package/dist/esm/models/operations/index.js.map +1 -1
  788. package/dist/esm/models/operations/platformchatcreate.d.ts +9 -0
  789. package/dist/esm/models/operations/platformchatcreate.d.ts.map +1 -0
  790. package/dist/esm/models/operations/platformchatcreate.js +16 -0
  791. package/dist/esm/models/operations/platformchatcreate.js.map +1 -0
  792. package/dist/esm/models/operations/platformsearchfilters.d.ts +36 -0
  793. package/dist/esm/models/operations/platformsearchfilters.d.ts.map +1 -0
  794. package/dist/esm/models/operations/platformsearchfilters.js +29 -0
  795. package/dist/esm/models/operations/platformsearchfilters.js.map +1 -0
  796. package/dist/esm/models/operations/platformskillsdelete.d.ts +15 -0
  797. package/dist/esm/models/operations/platformskillsdelete.d.ts.map +1 -0
  798. package/dist/esm/models/operations/platformskillsdelete.js +13 -0
  799. package/dist/esm/models/operations/platformskillsdelete.js.map +1 -0
  800. package/dist/esm/models/operations/platformskillspreviewsource.d.ts +9 -0
  801. package/dist/esm/models/operations/platformskillspreviewsource.d.ts.map +1 -0
  802. package/dist/esm/models/operations/platformskillspreviewsource.js +16 -0
  803. package/dist/esm/models/operations/platformskillspreviewsource.js.map +1 -0
  804. package/dist/esm/models/operations/platformskillssync.d.ts +15 -0
  805. package/dist/esm/models/operations/platformskillssync.d.ts.map +1 -0
  806. package/dist/esm/models/operations/platformskillssync.js +13 -0
  807. package/dist/esm/models/operations/platformskillssync.js.map +1 -0
  808. package/dist/esm/models/operations/platformskillsupdate.d.ts +18 -0
  809. package/dist/esm/models/operations/platformskillsupdate.d.ts.map +1 -0
  810. package/dist/esm/models/operations/platformskillsupdate.js +20 -0
  811. package/dist/esm/models/operations/platformskillsupdate.js.map +1 -0
  812. package/dist/esm/react-query/agentsCreateRun.d.ts +1 -1
  813. package/dist/esm/react-query/agentsCreateRun.d.ts.map +1 -1
  814. package/dist/esm/react-query/agentsCreateRun.js.map +1 -1
  815. package/dist/esm/react-query/chatCreate.d.ts +36 -0
  816. package/dist/esm/react-query/chatCreate.d.ts.map +1 -0
  817. package/dist/esm/react-query/chatCreate.js +44 -0
  818. package/dist/esm/react-query/chatCreate.js.map +1 -0
  819. package/dist/esm/react-query/clientAgentsImport.d.ts +32 -0
  820. package/dist/esm/react-query/clientAgentsImport.d.ts.map +1 -0
  821. package/dist/esm/react-query/clientAgentsImport.js +43 -0
  822. package/dist/esm/react-query/clientAgentsImport.js.map +1 -0
  823. package/dist/esm/react-query/clientAgentsRun.d.ts +2 -1
  824. package/dist/esm/react-query/clientAgentsRun.d.ts.map +1 -1
  825. package/dist/esm/react-query/clientAgentsRun.js.map +1 -1
  826. package/dist/esm/react-query/clientAgentsRunStream.d.ts +1 -1
  827. package/dist/esm/react-query/clientAgentsRunStream.d.ts.map +1 -1
  828. package/dist/esm/react-query/clientAgentsRunStream.js.map +1 -1
  829. package/dist/esm/react-query/clientChatRetrieve.d.ts +2 -1
  830. package/dist/esm/react-query/clientChatRetrieve.d.ts.map +1 -1
  831. package/dist/esm/react-query/clientChatRetrieve.js.map +1 -1
  832. package/dist/esm/react-query/clientToolsGetToolServerTools.core.d.ts +14 -0
  833. package/dist/esm/react-query/clientToolsGetToolServerTools.core.d.ts.map +1 -0
  834. package/dist/esm/react-query/clientToolsGetToolServerTools.core.js +36 -0
  835. package/dist/esm/react-query/clientToolsGetToolServerTools.core.js.map +1 -0
  836. package/dist/esm/react-query/clientToolsGetToolServerTools.d.ts +50 -0
  837. package/dist/esm/react-query/clientToolsGetToolServerTools.d.ts.map +1 -0
  838. package/dist/esm/react-query/clientToolsGetToolServerTools.js +72 -0
  839. package/dist/esm/react-query/clientToolsGetToolServerTools.js.map +1 -0
  840. package/dist/esm/react-query/index.d.ts +9 -0
  841. package/dist/esm/react-query/index.d.ts.map +1 -1
  842. package/dist/esm/react-query/index.js +9 -0
  843. package/dist/esm/react-query/index.js.map +1 -1
  844. package/dist/esm/react-query/searchListFilters.core.d.ts +15 -0
  845. package/dist/esm/react-query/searchListFilters.core.d.ts.map +1 -0
  846. package/dist/esm/react-query/searchListFilters.core.js +30 -0
  847. package/dist/esm/react-query/searchListFilters.core.js.map +1 -0
  848. package/dist/esm/react-query/searchListFilters.d.ts +40 -0
  849. package/dist/esm/react-query/searchListFilters.d.ts.map +1 -0
  850. package/dist/esm/react-query/searchListFilters.js +58 -0
  851. package/dist/esm/react-query/searchListFilters.js.map +1 -0
  852. package/dist/esm/react-query/searchQuery.d.ts +2 -1
  853. package/dist/esm/react-query/searchQuery.d.ts.map +1 -1
  854. package/dist/esm/react-query/searchQuery.js +2 -1
  855. package/dist/esm/react-query/searchQuery.js.map +1 -1
  856. package/dist/esm/react-query/skillsDelete.d.ts +28 -0
  857. package/dist/esm/react-query/skillsDelete.d.ts.map +1 -0
  858. package/dist/esm/react-query/skillsDelete.js +43 -0
  859. package/dist/esm/react-query/skillsDelete.js.map +1 -0
  860. package/dist/esm/react-query/skillsImport.d.ts +29 -0
  861. package/dist/esm/react-query/skillsImport.d.ts.map +1 -0
  862. package/dist/esm/react-query/skillsImport.js +43 -0
  863. package/dist/esm/react-query/skillsImport.js.map +1 -0
  864. package/dist/esm/react-query/skillsPreviewSource.d.ts +36 -0
  865. package/dist/esm/react-query/skillsPreviewSource.d.ts.map +1 -0
  866. package/dist/esm/react-query/skillsPreviewSource.js +44 -0
  867. package/dist/esm/react-query/skillsPreviewSource.js.map +1 -0
  868. package/dist/esm/react-query/skillsSync.d.ts +29 -0
  869. package/dist/esm/react-query/skillsSync.d.ts.map +1 -0
  870. package/dist/esm/react-query/skillsSync.js +43 -0
  871. package/dist/esm/react-query/skillsSync.js.map +1 -0
  872. package/dist/esm/react-query/skillsUpdate.d.ts +30 -0
  873. package/dist/esm/react-query/skillsUpdate.d.ts.map +1 -0
  874. package/dist/esm/react-query/skillsUpdate.js +43 -0
  875. package/dist/esm/react-query/skillsUpdate.js.map +1 -0
  876. package/dist/esm/sdk/chat.d.ts +8 -73
  877. package/dist/esm/sdk/chat.d.ts.map +1 -1
  878. package/dist/esm/sdk/chat.js +6 -105
  879. package/dist/esm/sdk/chat.js.map +1 -1
  880. package/dist/esm/sdk/client.d.ts +2 -2
  881. package/dist/esm/sdk/client.d.ts.map +1 -1
  882. package/dist/esm/sdk/client.js +2 -2
  883. package/dist/esm/sdk/client.js.map +1 -1
  884. package/dist/esm/sdk/clientagents.d.ts +7 -0
  885. package/dist/esm/sdk/clientagents.d.ts.map +1 -1
  886. package/dist/esm/sdk/clientagents.js +10 -0
  887. package/dist/esm/sdk/clientagents.js.map +1 -1
  888. package/dist/esm/sdk/clientchat.d.ts +82 -0
  889. package/dist/esm/sdk/clientchat.d.ts.map +1 -0
  890. package/dist/esm/sdk/clientchat.js +119 -0
  891. package/dist/esm/sdk/clientchat.js.map +1 -0
  892. package/dist/esm/sdk/sdk.d.ts +3 -0
  893. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  894. package/dist/esm/sdk/sdk.js +4 -0
  895. package/dist/esm/sdk/sdk.js.map +1 -1
  896. package/dist/esm/sdk/search.d.ts +11 -1
  897. package/dist/esm/sdk/search.d.ts.map +1 -1
  898. package/dist/esm/sdk/search.js +13 -1
  899. package/dist/esm/sdk/search.js.map +1 -1
  900. package/dist/esm/sdk/skills.d.ts +39 -0
  901. package/dist/esm/sdk/skills.d.ts.map +1 -1
  902. package/dist/esm/sdk/skills.js +51 -0
  903. package/dist/esm/sdk/skills.js.map +1 -1
  904. package/dist/esm/sdk/tools.d.ts +15 -0
  905. package/dist/esm/sdk/tools.d.ts.map +1 -1
  906. package/dist/esm/sdk/tools.js +18 -0
  907. package/dist/esm/sdk/tools.js.map +1 -1
  908. package/jsr.json +1 -1
  909. package/package.json +1 -1
  910. package/src/__tests__/chat.test.ts +5 -3
  911. package/src/__tests__/clientagents.test.ts +19 -0
  912. package/src/__tests__/clientchat.test.ts +13 -0
  913. package/src/__tests__/indexingdocuments.test.ts +61 -1
  914. package/src/__tests__/people.test.ts +18 -1
  915. package/src/__tests__/search.test.ts +13 -0
  916. package/src/__tests__/skills.test.ts +60 -0
  917. package/src/__tests__/summarize.test.ts +4 -3
  918. package/src/__tests__/tools.test.ts +17 -0
  919. package/src/funcs/agentsCreateRun.ts +8 -0
  920. package/src/funcs/chatCreate.ts +189 -0
  921. package/src/funcs/clientAgentsImport.ts +257 -0
  922. package/src/funcs/clientAgentsRun.ts +11 -2
  923. package/src/funcs/clientAgentsRunStream.ts +5 -1
  924. package/src/funcs/clientChatRetrieve.ts +14 -2
  925. package/src/funcs/clientToolsGetToolServerTools.ts +192 -0
  926. package/src/funcs/indexingDatasourceStatus.ts +2 -4
  927. package/src/funcs/indexingDocumentsDebug.ts +2 -4
  928. package/src/funcs/indexingDocumentsDebugEvents.ts +2 -4
  929. package/src/funcs/indexingDocumentsDebugMany.ts +2 -4
  930. package/src/funcs/indexingPeopleDebug.ts +2 -4
  931. package/src/funcs/searchListFilters.ts +197 -0
  932. package/src/funcs/searchQuery.ts +3 -2
  933. package/src/funcs/skillsDelete.ts +190 -0
  934. package/src/funcs/skillsImport.ts +180 -0
  935. package/src/funcs/skillsPreviewSource.ts +190 -0
  936. package/src/funcs/skillsSync.ts +189 -0
  937. package/src/funcs/skillsUpdate.ts +197 -0
  938. package/src/lib/config.ts +3 -3
  939. package/src/models/components/accessrequestpermissiondeniedresponseerror.ts +19 -0
  940. package/src/models/components/authconfig.ts +62 -3
  941. package/src/models/components/customdatasourceconfig.ts +2 -0
  942. package/src/models/components/feedentry.ts +1 -0
  943. package/src/models/components/feedrequest.ts +1 -0
  944. package/src/models/components/feedresult.ts +1 -0
  945. package/src/models/components/importagentrequest.ts +106 -0
  946. package/src/models/components/importagentresponse.ts +45 -0
  947. package/src/models/components/importagentstatus.ts +28 -0
  948. package/src/models/components/importagentsyncmode.ts +28 -0
  949. package/src/models/components/index.ts +38 -1
  950. package/src/models/components/manualfeedbackinfo.ts +2 -0
  951. package/src/models/components/objectdefinition.ts +2 -0
  952. package/src/models/components/personmetadata.ts +7 -0
  953. package/src/models/components/platformauthenticationsuggestion.ts +43 -0
  954. package/src/models/components/platformchatcitationannotation.ts +62 -0
  955. package/src/models/components/platformchatcitationsnippet.ts +34 -0
  956. package/src/models/components/platformchatcitationsource.ts +56 -0
  957. package/src/models/components/platformchatcompletedresponse.ts +83 -0
  958. package/src/models/components/platformchatcreaterequest.ts +90 -0
  959. package/src/models/components/platformchatcustomentitysource.ts +55 -0
  960. package/src/models/components/platformchatdocumentsource.ts +122 -0
  961. package/src/models/components/platformchatfilesource.ts +53 -0
  962. package/src/models/components/platformchatinputmessage.ts +49 -0
  963. package/src/models/components/platformchatoutputmessage.ts +65 -0
  964. package/src/models/components/platformchatoutputtextcontent.ts +53 -0
  965. package/src/models/components/platformchatpersonsource.ts +51 -0
  966. package/src/models/components/platformdatasourcefilterinfo.ts +48 -0
  967. package/src/models/components/platformfilter.ts +6 -4
  968. package/src/models/components/platformfilterfieldinfo.ts +60 -0
  969. package/src/models/components/platformfilteroperator.ts +14 -5
  970. package/src/models/components/platformproblemdetailcode.ts +3 -0
  971. package/src/models/components/platformresult.ts +0 -5
  972. package/src/models/components/platformsearchfiltersresponse.ts +46 -0
  973. package/src/models/components/platformsearchrequest.ts +2 -10
  974. package/src/models/components/platformsearchresponse.ts +14 -1
  975. package/src/models/components/platformskillimportrequest.ts +35 -0
  976. package/src/models/components/platformskillimportresponse.ts +41 -0
  977. package/src/models/components/platformskillsourcepreview.ts +69 -0
  978. package/src/models/components/platformskillsourcepreviewfailure.ts +49 -0
  979. package/src/models/components/platformskillsourcepreviewfailurecode.ts +29 -0
  980. package/src/models/components/platformskillsourcepreviewfile.ts +40 -0
  981. package/src/models/components/platformskillsourcepreviewrequest.ts +43 -0
  982. package/src/models/components/platformskillsourcepreviewresponse.ts +54 -0
  983. package/src/models/components/platformskillsyncresponse.ts +54 -0
  984. package/src/models/components/platformskillsyncresultstatus.ts +25 -0
  985. package/src/models/components/platformskillupdaterequest.ts +39 -0
  986. package/src/models/components/platformskillupdateresponse.ts +38 -0
  987. package/src/models/components/platformskillupdatestatus.ts +26 -0
  988. package/src/models/components/platformskillvalidationresponse.ts +5 -5
  989. package/src/models/components/{platformskillvalidationwarning.ts → platformwarning.ts} +14 -9
  990. package/src/models/components/toolannotations.ts +77 -0
  991. package/src/models/components/tooldefinition.ts +71 -0
  992. package/src/models/components/tooldefinitionsresponse.ts +44 -0
  993. package/src/models/components/viewerinfo.ts +15 -9
  994. package/src/models/errors/accessrequestpermissiondeniedresponseerror.ts +63 -0
  995. package/src/models/errors/index.ts +3 -0
  996. package/src/models/errors/platformunauthorizedagenttoolsproblemerror.ts +151 -0
  997. package/src/models/errors/unauthorizedagenttoolserror.ts +69 -0
  998. package/src/models/operations/gettoolservertools.ts +41 -0
  999. package/src/models/operations/importagent.ts +56 -0
  1000. package/src/models/operations/index.ts +8 -0
  1001. package/src/models/operations/platformchatcreate.ts +34 -0
  1002. package/src/models/operations/platformsearchfilters.ts +81 -0
  1003. package/src/models/operations/platformskillsdelete.ts +37 -0
  1004. package/src/models/operations/platformskillspreviewsource.ts +35 -0
  1005. package/src/models/operations/platformskillssync.ts +35 -0
  1006. package/src/models/operations/platformskillsupdate.ts +47 -0
  1007. package/src/react-query/agentsCreateRun.ts +1 -0
  1008. package/src/react-query/chatCreate.ts +114 -0
  1009. package/src/react-query/clientAgentsImport.ts +120 -0
  1010. package/src/react-query/clientAgentsRun.ts +2 -0
  1011. package/src/react-query/clientAgentsRunStream.ts +1 -0
  1012. package/src/react-query/clientChatRetrieve.ts +2 -0
  1013. package/src/react-query/clientToolsGetToolServerTools.core.ts +85 -0
  1014. package/src/react-query/clientToolsGetToolServerTools.ts +163 -0
  1015. package/src/react-query/index.ts +9 -0
  1016. package/src/react-query/searchListFilters.core.ts +81 -0
  1017. package/src/react-query/searchListFilters.ts +156 -0
  1018. package/src/react-query/searchQuery.ts +2 -1
  1019. package/src/react-query/skillsDelete.ts +110 -0
  1020. package/src/react-query/skillsImport.ts +111 -0
  1021. package/src/react-query/skillsPreviewSource.ts +120 -0
  1022. package/src/react-query/skillsSync.ts +111 -0
  1023. package/src/react-query/skillsUpdate.ts +114 -0
  1024. package/src/sdk/chat.ts +11 -224
  1025. package/src/sdk/client.ts +4 -4
  1026. package/src/sdk/clientagents.ts +24 -0
  1027. package/src/sdk/clientchat.ts +244 -0
  1028. package/src/sdk/sdk.ts +6 -0
  1029. package/src/sdk/search.ts +24 -1
  1030. package/src/sdk/skills.ts +99 -0
  1031. package/src/sdk/tools.ts +28 -0
  1032. package/dist/commonjs/models/components/platformskillvalidationwarning.d.ts +0 -17
  1033. package/dist/esm/models/components/platformskillvalidationwarning.d.ts +0 -17
  1034. package/dist/esm/models/components/platformskillvalidationwarning.js +0 -15
@@ -0,0 +1,111 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b58d55335ec3
4
+ */
5
+
6
+ import {
7
+ MutationKey,
8
+ useMutation,
9
+ UseMutationResult,
10
+ } from "@tanstack/react-query";
11
+ import { GleanCore } from "../core.js";
12
+ import { skillsImport } from "../funcs/skillsImport.js";
13
+ import { combineSignals } from "../lib/primitives.js";
14
+ import { RequestOptions } from "../lib/sdks.js";
15
+ import * as components from "../models/components/index.js";
16
+ import { GleanBaseError } from "../models/errors/gleanbaseerror.js";
17
+ import {
18
+ ConnectionError,
19
+ InvalidRequestError,
20
+ RequestAbortedError,
21
+ RequestTimeoutError,
22
+ UnexpectedClientError,
23
+ } from "../models/errors/httpclienterrors.js";
24
+ import * as errors from "../models/errors/index.js";
25
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
26
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
27
+ import { unwrapAsync } from "../types/fp.js";
28
+ import { useGleanContext } from "./_context.js";
29
+ import { MutationHookOptions } from "./_types.js";
30
+
31
+ export type SkillsImportMutationVariables = {
32
+ request: components.PlatformSkillImportRequest;
33
+ options?: RequestOptions;
34
+ };
35
+
36
+ export type SkillsImportMutationData = components.PlatformSkillImportResponse;
37
+
38
+ export type SkillsImportMutationError =
39
+ | errors.PlatformProblemDetailError
40
+ | GleanBaseError
41
+ | ResponseValidationError
42
+ | ConnectionError
43
+ | RequestAbortedError
44
+ | RequestTimeoutError
45
+ | InvalidRequestError
46
+ | UnexpectedClientError
47
+ | SDKValidationError;
48
+
49
+ /**
50
+ * Import skills from GitHub
51
+ *
52
+ * @remarks
53
+ * Import one or more skills selected from a GitHub source preview. Each source URL is fetched and persisted as an independent skill with source provenance. This operation does not create a durable source resource. The import is atomic: if any source cannot be fetched, validated, or persisted, no skills are created.
54
+ */
55
+ export function useSkillsImportMutation(
56
+ options?: MutationHookOptions<
57
+ SkillsImportMutationData,
58
+ SkillsImportMutationError,
59
+ SkillsImportMutationVariables
60
+ >,
61
+ ): UseMutationResult<
62
+ SkillsImportMutationData,
63
+ SkillsImportMutationError,
64
+ SkillsImportMutationVariables
65
+ > {
66
+ const client = useGleanContext();
67
+ return useMutation({
68
+ ...buildSkillsImportMutation(client, options),
69
+ ...options,
70
+ });
71
+ }
72
+
73
+ export function mutationKeySkillsImport(): MutationKey {
74
+ return ["@gleanwork/api-client", "skills", "import"];
75
+ }
76
+
77
+ export function buildSkillsImportMutation(
78
+ client$: GleanCore,
79
+ hookOptions?: RequestOptions,
80
+ ): {
81
+ mutationKey: MutationKey;
82
+ mutationFn: (
83
+ variables: SkillsImportMutationVariables,
84
+ ) => Promise<SkillsImportMutationData>;
85
+ } {
86
+ return {
87
+ mutationKey: mutationKeySkillsImport(),
88
+ mutationFn: function skillsImportMutationFn({
89
+ request,
90
+ options,
91
+ }): Promise<SkillsImportMutationData> {
92
+ const mergedOptions = {
93
+ ...hookOptions,
94
+ ...options,
95
+ fetchOptions: {
96
+ ...hookOptions?.fetchOptions,
97
+ ...options?.fetchOptions,
98
+ signal: combineSignals(
99
+ hookOptions?.fetchOptions?.signal,
100
+ options?.fetchOptions?.signal,
101
+ ),
102
+ },
103
+ };
104
+ return unwrapAsync(skillsImport(
105
+ client$,
106
+ request,
107
+ mergedOptions,
108
+ ));
109
+ },
110
+ };
111
+ }
@@ -0,0 +1,120 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: d4697aa80a2e
4
+ */
5
+
6
+ import {
7
+ MutationKey,
8
+ useMutation,
9
+ UseMutationResult,
10
+ } from "@tanstack/react-query";
11
+ import { GleanCore } from "../core.js";
12
+ import {
13
+ PreviewSourceAcceptEnum,
14
+ skillsPreviewSource,
15
+ } from "../funcs/skillsPreviewSource.js";
16
+ import { combineSignals } from "../lib/primitives.js";
17
+ import { RequestOptions } from "../lib/sdks.js";
18
+ import * as components from "../models/components/index.js";
19
+ import { GleanBaseError } from "../models/errors/gleanbaseerror.js";
20
+ import {
21
+ ConnectionError,
22
+ InvalidRequestError,
23
+ RequestAbortedError,
24
+ RequestTimeoutError,
25
+ UnexpectedClientError,
26
+ } from "../models/errors/httpclienterrors.js";
27
+ import * as errors from "../models/errors/index.js";
28
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
29
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
30
+ import * as operations from "../models/operations/index.js";
31
+ import { unwrapAsync } from "../types/fp.js";
32
+ import { useGleanContext } from "./_context.js";
33
+ import { MutationHookOptions } from "./_types.js";
34
+
35
+ export { PreviewSourceAcceptEnum } from "../funcs/skillsPreviewSource.js";
36
+
37
+ export type SkillsPreviewSourceMutationVariables = {
38
+ request: components.PlatformSkillSourcePreviewRequest;
39
+ options?: RequestOptions & { acceptHeaderOverride?: PreviewSourceAcceptEnum };
40
+ };
41
+
42
+ export type SkillsPreviewSourceMutationData =
43
+ operations.PlatformSkillsPreviewSourceResponse;
44
+
45
+ export type SkillsPreviewSourceMutationError =
46
+ | errors.PlatformProblemDetailError
47
+ | GleanBaseError
48
+ | ResponseValidationError
49
+ | ConnectionError
50
+ | RequestAbortedError
51
+ | RequestTimeoutError
52
+ | InvalidRequestError
53
+ | UnexpectedClientError
54
+ | SDKValidationError;
55
+
56
+ /**
57
+ * Preview a GitHub skill source
58
+ *
59
+ * @remarks
60
+ * Inspect a GitHub URL without persisting a source or any discovered skills. Set stream to true to receive repository scan progress as server-sent events; otherwise the response contains the completed preview.
61
+ */
62
+ export function useSkillsPreviewSourceMutation(
63
+ options?: MutationHookOptions<
64
+ SkillsPreviewSourceMutationData,
65
+ SkillsPreviewSourceMutationError,
66
+ SkillsPreviewSourceMutationVariables
67
+ >,
68
+ ): UseMutationResult<
69
+ SkillsPreviewSourceMutationData,
70
+ SkillsPreviewSourceMutationError,
71
+ SkillsPreviewSourceMutationVariables
72
+ > {
73
+ const client = useGleanContext();
74
+ return useMutation({
75
+ ...buildSkillsPreviewSourceMutation(client, options),
76
+ ...options,
77
+ });
78
+ }
79
+
80
+ export function mutationKeySkillsPreviewSource(): MutationKey {
81
+ return ["@gleanwork/api-client", "skills", "previewSource"];
82
+ }
83
+
84
+ export function buildSkillsPreviewSourceMutation(
85
+ client$: GleanCore,
86
+ hookOptions?: RequestOptions & {
87
+ acceptHeaderOverride?: PreviewSourceAcceptEnum;
88
+ },
89
+ ): {
90
+ mutationKey: MutationKey;
91
+ mutationFn: (
92
+ variables: SkillsPreviewSourceMutationVariables,
93
+ ) => Promise<SkillsPreviewSourceMutationData>;
94
+ } {
95
+ return {
96
+ mutationKey: mutationKeySkillsPreviewSource(),
97
+ mutationFn: function skillsPreviewSourceMutationFn({
98
+ request,
99
+ options,
100
+ }): Promise<SkillsPreviewSourceMutationData> {
101
+ const mergedOptions = {
102
+ ...hookOptions,
103
+ ...options,
104
+ fetchOptions: {
105
+ ...hookOptions?.fetchOptions,
106
+ ...options?.fetchOptions,
107
+ signal: combineSignals(
108
+ hookOptions?.fetchOptions?.signal,
109
+ options?.fetchOptions?.signal,
110
+ ),
111
+ },
112
+ };
113
+ return unwrapAsync(skillsPreviewSource(
114
+ client$,
115
+ request,
116
+ mergedOptions,
117
+ ));
118
+ },
119
+ };
120
+ }
@@ -0,0 +1,111 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: c5d5816caa2b
4
+ */
5
+
6
+ import {
7
+ MutationKey,
8
+ useMutation,
9
+ UseMutationResult,
10
+ } from "@tanstack/react-query";
11
+ import { GleanCore } from "../core.js";
12
+ import { skillsSync } from "../funcs/skillsSync.js";
13
+ import { combineSignals } from "../lib/primitives.js";
14
+ import { RequestOptions } from "../lib/sdks.js";
15
+ import * as components from "../models/components/index.js";
16
+ import { GleanBaseError } from "../models/errors/gleanbaseerror.js";
17
+ import {
18
+ ConnectionError,
19
+ InvalidRequestError,
20
+ RequestAbortedError,
21
+ RequestTimeoutError,
22
+ UnexpectedClientError,
23
+ } from "../models/errors/httpclienterrors.js";
24
+ import * as errors from "../models/errors/index.js";
25
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
26
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
27
+ import { unwrapAsync } from "../types/fp.js";
28
+ import { useGleanContext } from "./_context.js";
29
+ import { MutationHookOptions } from "./_types.js";
30
+
31
+ export type SkillsSyncMutationVariables = {
32
+ skillId: string;
33
+ options?: RequestOptions;
34
+ };
35
+
36
+ export type SkillsSyncMutationData = components.PlatformSkillSyncResponse;
37
+
38
+ export type SkillsSyncMutationError =
39
+ | errors.PlatformProblemDetailError
40
+ | GleanBaseError
41
+ | ResponseValidationError
42
+ | ConnectionError
43
+ | RequestAbortedError
44
+ | RequestTimeoutError
45
+ | InvalidRequestError
46
+ | UnexpectedClientError
47
+ | SDKValidationError;
48
+
49
+ /**
50
+ * Sync a GitHub-imported skill
51
+ *
52
+ * @remarks
53
+ * Refresh one GitHub-imported skill from its stored source URL. If the skill content has changed, this operation creates a new skill version. If the skill is no longer present upstream, the stored skill is left unchanged and must be deleted explicitly.
54
+ */
55
+ export function useSkillsSyncMutation(
56
+ options?: MutationHookOptions<
57
+ SkillsSyncMutationData,
58
+ SkillsSyncMutationError,
59
+ SkillsSyncMutationVariables
60
+ >,
61
+ ): UseMutationResult<
62
+ SkillsSyncMutationData,
63
+ SkillsSyncMutationError,
64
+ SkillsSyncMutationVariables
65
+ > {
66
+ const client = useGleanContext();
67
+ return useMutation({
68
+ ...buildSkillsSyncMutation(client, options),
69
+ ...options,
70
+ });
71
+ }
72
+
73
+ export function mutationKeySkillsSync(): MutationKey {
74
+ return ["@gleanwork/api-client", "skills", "sync"];
75
+ }
76
+
77
+ export function buildSkillsSyncMutation(
78
+ client$: GleanCore,
79
+ hookOptions?: RequestOptions,
80
+ ): {
81
+ mutationKey: MutationKey;
82
+ mutationFn: (
83
+ variables: SkillsSyncMutationVariables,
84
+ ) => Promise<SkillsSyncMutationData>;
85
+ } {
86
+ return {
87
+ mutationKey: mutationKeySkillsSync(),
88
+ mutationFn: function skillsSyncMutationFn({
89
+ skillId,
90
+ options,
91
+ }): Promise<SkillsSyncMutationData> {
92
+ const mergedOptions = {
93
+ ...hookOptions,
94
+ ...options,
95
+ fetchOptions: {
96
+ ...hookOptions?.fetchOptions,
97
+ ...options?.fetchOptions,
98
+ signal: combineSignals(
99
+ hookOptions?.fetchOptions?.signal,
100
+ options?.fetchOptions?.signal,
101
+ ),
102
+ },
103
+ };
104
+ return unwrapAsync(skillsSync(
105
+ client$,
106
+ skillId,
107
+ mergedOptions,
108
+ ));
109
+ },
110
+ };
111
+ }
@@ -0,0 +1,114 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e62e124a1043
4
+ */
5
+
6
+ import {
7
+ MutationKey,
8
+ useMutation,
9
+ UseMutationResult,
10
+ } from "@tanstack/react-query";
11
+ import { GleanCore } from "../core.js";
12
+ import { skillsUpdate } from "../funcs/skillsUpdate.js";
13
+ import { combineSignals } from "../lib/primitives.js";
14
+ import { RequestOptions } from "../lib/sdks.js";
15
+ import * as components from "../models/components/index.js";
16
+ import { GleanBaseError } from "../models/errors/gleanbaseerror.js";
17
+ import {
18
+ ConnectionError,
19
+ InvalidRequestError,
20
+ RequestAbortedError,
21
+ RequestTimeoutError,
22
+ UnexpectedClientError,
23
+ } from "../models/errors/httpclienterrors.js";
24
+ import * as errors from "../models/errors/index.js";
25
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
26
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
27
+ import { unwrapAsync } from "../types/fp.js";
28
+ import { useGleanContext } from "./_context.js";
29
+ import { MutationHookOptions } from "./_types.js";
30
+
31
+ export type SkillsUpdateMutationVariables = {
32
+ platformSkillUpdateRequest: components.PlatformSkillUpdateRequest;
33
+ skillId: string;
34
+ options?: RequestOptions;
35
+ };
36
+
37
+ export type SkillsUpdateMutationData = components.PlatformSkillUpdateResponse;
38
+
39
+ export type SkillsUpdateMutationError =
40
+ | errors.PlatformProblemDetailError
41
+ | GleanBaseError
42
+ | ResponseValidationError
43
+ | ConnectionError
44
+ | RequestAbortedError
45
+ | RequestTimeoutError
46
+ | InvalidRequestError
47
+ | UnexpectedClientError
48
+ | SDKValidationError;
49
+
50
+ /**
51
+ * Update skill
52
+ *
53
+ * @remarks
54
+ * Update mutable metadata for a skill. V1 supports enabling or disabling a skill without changing its content.
55
+ */
56
+ export function useSkillsUpdateMutation(
57
+ options?: MutationHookOptions<
58
+ SkillsUpdateMutationData,
59
+ SkillsUpdateMutationError,
60
+ SkillsUpdateMutationVariables
61
+ >,
62
+ ): UseMutationResult<
63
+ SkillsUpdateMutationData,
64
+ SkillsUpdateMutationError,
65
+ SkillsUpdateMutationVariables
66
+ > {
67
+ const client = useGleanContext();
68
+ return useMutation({
69
+ ...buildSkillsUpdateMutation(client, options),
70
+ ...options,
71
+ });
72
+ }
73
+
74
+ export function mutationKeySkillsUpdate(): MutationKey {
75
+ return ["@gleanwork/api-client", "skills", "update"];
76
+ }
77
+
78
+ export function buildSkillsUpdateMutation(
79
+ client$: GleanCore,
80
+ hookOptions?: RequestOptions,
81
+ ): {
82
+ mutationKey: MutationKey;
83
+ mutationFn: (
84
+ variables: SkillsUpdateMutationVariables,
85
+ ) => Promise<SkillsUpdateMutationData>;
86
+ } {
87
+ return {
88
+ mutationKey: mutationKeySkillsUpdate(),
89
+ mutationFn: function skillsUpdateMutationFn({
90
+ platformSkillUpdateRequest,
91
+ skillId,
92
+ options,
93
+ }): Promise<SkillsUpdateMutationData> {
94
+ const mergedOptions = {
95
+ ...hookOptions,
96
+ ...options,
97
+ fetchOptions: {
98
+ ...hookOptions?.fetchOptions,
99
+ ...options?.fetchOptions,
100
+ signal: combineSignals(
101
+ hookOptions?.fetchOptions?.signal,
102
+ options?.fetchOptions?.signal,
103
+ ),
104
+ },
105
+ };
106
+ return unwrapAsync(skillsUpdate(
107
+ client$,
108
+ platformSkillUpdateRequest,
109
+ skillId,
110
+ mergedOptions,
111
+ ));
112
+ },
113
+ };
114
+ }
package/src/sdk/chat.ts CHANGED
@@ -3,241 +3,28 @@
3
3
  * @generated-id: c56babc22a20
4
4
  */
5
5
 
6
- import { clientChatCreate } from "../funcs/clientChatCreate.js";
7
- import { clientChatCreateStream } from "../funcs/clientChatCreateStream.js";
8
- import { clientChatDelete } from "../funcs/clientChatDelete.js";
9
- import { clientChatDeleteAll } from "../funcs/clientChatDeleteAll.js";
10
- import { clientChatDeleteFiles } from "../funcs/clientChatDeleteFiles.js";
11
- import { clientChatList } from "../funcs/clientChatList.js";
12
- import { clientChatRetrieve } from "../funcs/clientChatRetrieve.js";
13
- import { clientChatRetrieveApplication } from "../funcs/clientChatRetrieveApplication.js";
14
- import { clientChatRetrieveFile } from "../funcs/clientChatRetrieveFile.js";
15
- import { clientChatRetrieveFiles } from "../funcs/clientChatRetrieveFiles.js";
16
- import { clientChatUploadFiles } from "../funcs/clientChatUploadFiles.js";
6
+ import { chatCreate, CreateAcceptEnum } from "../funcs/chatCreate.js";
17
7
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
18
8
  import * as components from "../models/components/index.js";
9
+ import * as operations from "../models/operations/index.js";
19
10
  import { unwrapAsync } from "../types/fp.js";
20
11
 
12
+ export { CreateAcceptEnum } from "../funcs/chatCreate.js";
13
+
21
14
  export class Chat extends ClientSDK {
22
15
  /**
23
- * Chat
16
+ * Create a chat response
24
17
  *
25
18
  * @remarks
26
- * Have a conversation with Glean AI.
19
+ * Run an assistant turn. Set `stream` to true to receive server-sent events; otherwise the response is a typed JSON response object.
27
20
  */
28
21
  async create(
29
- chatRequest: components.ChatRequest,
30
- locale?: string | undefined,
31
- timezoneOffset?: number | undefined,
32
- options?: RequestOptions,
33
- ): Promise<components.ChatResponse> {
34
- return unwrapAsync(clientChatCreate(
35
- this,
36
- chatRequest,
37
- locale,
38
- timezoneOffset,
39
- options,
40
- ));
41
- }
42
-
43
- /**
44
- * Deletes all saved Chats owned by a user
45
- *
46
- * @remarks
47
- * Deletes all saved Chats a user has had and all their contained conversational content.
48
- */
49
- async deleteAll(
50
- locale?: string | undefined,
51
- timezoneOffset?: number | undefined,
52
- options?: RequestOptions,
53
- ): Promise<void> {
54
- return unwrapAsync(clientChatDeleteAll(
55
- this,
56
- locale,
57
- timezoneOffset,
58
- options,
59
- ));
60
- }
61
-
62
- /**
63
- * Deletes saved Chats
64
- *
65
- * @remarks
66
- * Deletes saved Chats and all their contained conversational content.
67
- */
68
- async delete(
69
- deleteChatsRequest: components.DeleteChatsRequest,
70
- locale?: string | undefined,
71
- timezoneOffset?: number | undefined,
72
- options?: RequestOptions,
73
- ): Promise<void> {
74
- return unwrapAsync(clientChatDelete(
75
- this,
76
- deleteChatsRequest,
77
- locale,
78
- timezoneOffset,
79
- options,
80
- ));
81
- }
82
-
83
- /**
84
- * Retrieves a Chat
85
- *
86
- * @remarks
87
- * Retrieves the chat history between Glean Assistant and the user for a given Chat.
88
- */
89
- async retrieve(
90
- getChatRequest: components.GetChatRequest,
91
- locale?: string | undefined,
92
- timezoneOffset?: number | undefined,
93
- options?: RequestOptions,
94
- ): Promise<components.GetChatResponse> {
95
- return unwrapAsync(clientChatRetrieve(
96
- this,
97
- getChatRequest,
98
- locale,
99
- timezoneOffset,
100
- options,
101
- ));
102
- }
103
-
104
- /**
105
- * Retrieves all saved Chats
106
- *
107
- * @remarks
108
- * Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content.
109
- */
110
- async list(
111
- locale?: string | undefined,
112
- timezoneOffset?: number | undefined,
113
- options?: RequestOptions,
114
- ): Promise<components.ListChatsResponse> {
115
- return unwrapAsync(clientChatList(
116
- this,
117
- locale,
118
- timezoneOffset,
119
- options,
120
- ));
121
- }
122
-
123
- /**
124
- * Gets the metadata for a custom Chat application
125
- *
126
- * @remarks
127
- * Gets the Chat application details for the specified application ID.
128
- */
129
- async retrieveApplication(
130
- getChatApplicationRequest: components.GetChatApplicationRequest,
131
- locale?: string | undefined,
132
- timezoneOffset?: number | undefined,
133
- options?: RequestOptions,
134
- ): Promise<components.GetChatApplicationResponse> {
135
- return unwrapAsync(clientChatRetrieveApplication(
136
- this,
137
- getChatApplicationRequest,
138
- locale,
139
- timezoneOffset,
140
- options,
141
- ));
142
- }
143
-
144
- /**
145
- * Upload files for Chat
146
- *
147
- * @remarks
148
- * Upload files for Chat.
149
- */
150
- async uploadFiles(
151
- uploadChatFilesRequest: components.UploadChatFilesRequest,
152
- locale?: string | undefined,
153
- timezoneOffset?: number | undefined,
154
- options?: RequestOptions,
155
- ): Promise<components.UploadChatFilesResponse> {
156
- return unwrapAsync(clientChatUploadFiles(
157
- this,
158
- uploadChatFilesRequest,
159
- locale,
160
- timezoneOffset,
161
- options,
162
- ));
163
- }
164
-
165
- /**
166
- * Get files uploaded by a user for Chat
167
- *
168
- * @remarks
169
- * Get files uploaded by a user for Chat.
170
- */
171
- async retrieveFiles(
172
- getChatFilesRequest: components.GetChatFilesRequest,
173
- locale?: string | undefined,
174
- timezoneOffset?: number | undefined,
175
- options?: RequestOptions,
176
- ): Promise<components.GetChatFilesResponse> {
177
- return unwrapAsync(clientChatRetrieveFiles(
178
- this,
179
- getChatFilesRequest,
180
- locale,
181
- timezoneOffset,
182
- options,
183
- ));
184
- }
185
-
186
- /**
187
- * Delete files uploaded by a user for chat
188
- *
189
- * @remarks
190
- * Delete files uploaded by a user for Chat.
191
- */
192
- async deleteFiles(
193
- deleteChatFilesRequest: components.DeleteChatFilesRequest,
194
- locale?: string | undefined,
195
- timezoneOffset?: number | undefined,
196
- options?: RequestOptions,
197
- ): Promise<void> {
198
- return unwrapAsync(clientChatDeleteFiles(
199
- this,
200
- deleteChatFilesRequest,
201
- locale,
202
- timezoneOffset,
203
- options,
204
- ));
205
- }
206
-
207
- /**
208
- * Download a chat file
209
- *
210
- * @remarks
211
- * Download the raw content of a file generated or uploaded during a chat session (for example, an image produced by the assistant). Returns the file bytes with a Content-Type header matching the file's MIME type.
212
- */
213
- async retrieveFile(
214
- fileId: string,
215
- preview?: boolean | undefined,
216
- options?: RequestOptions,
217
- ): Promise<ReadableStream<Uint8Array>> {
218
- return unwrapAsync(clientChatRetrieveFile(
219
- this,
220
- fileId,
221
- preview,
222
- options,
223
- ));
224
- }
225
-
226
- /**
227
- * Chat
228
- *
229
- * @remarks
230
- * Have a conversation with Glean AI.
231
- */
232
- async createStream(
233
- chatRequest: components.ChatRequest,
234
- timezoneOffset?: number | undefined,
235
- options?: RequestOptions,
236
- ): Promise<string> {
237
- return unwrapAsync(clientChatCreateStream(
22
+ request: components.PlatformChatCreateRequest,
23
+ options?: RequestOptions & { acceptHeaderOverride?: CreateAcceptEnum },
24
+ ): Promise<operations.PlatformChatCreateResponse> {
25
+ return unwrapAsync(chatCreate(
238
26
  this,
239
- chatRequest,
240
- timezoneOffset,
27
+ request,
241
28
  options,
242
29
  ));
243
30
  }