@gleanwork/api-client 0.1.0-beta.6 → 0.1.0-beta.7

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 (821) hide show
  1. package/README.md +136 -184
  2. package/dist/commonjs/__tests__/activity.test.js +14 -0
  3. package/dist/commonjs/__tests__/activity.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/adminsearch.test.d.ts +2 -0
  5. package/dist/commonjs/__tests__/adminsearch.test.d.ts.map +1 -0
  6. package/dist/commonjs/__tests__/adminsearch.test.js +230 -0
  7. package/dist/commonjs/__tests__/adminsearch.test.js.map +1 -0
  8. package/dist/commonjs/__tests__/agents.test.js +2 -2
  9. package/dist/commonjs/__tests__/agents.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/announcements.test.js +1 -1
  11. package/dist/commonjs/__tests__/answers.test.js +15 -3
  12. package/dist/commonjs/__tests__/answers.test.js.map +1 -1
  13. package/dist/commonjs/__tests__/chat.test.js +1878 -243
  14. package/dist/commonjs/__tests__/chat.test.js.map +1 -1
  15. package/dist/commonjs/__tests__/clientdocuments.test.js +15 -1
  16. package/dist/commonjs/__tests__/clientdocuments.test.js.map +1 -1
  17. package/dist/commonjs/__tests__/clientsearch.test.d.ts +2 -0
  18. package/dist/commonjs/__tests__/clientsearch.test.d.ts.map +1 -0
  19. package/dist/commonjs/__tests__/clientsearch.test.js +387 -0
  20. package/dist/commonjs/__tests__/clientsearch.test.js.map +1 -0
  21. package/dist/commonjs/__tests__/clientshortcuts.test.js +17 -8
  22. package/dist/commonjs/__tests__/clientshortcuts.test.js.map +1 -1
  23. package/dist/commonjs/__tests__/collections.test.js +12 -9
  24. package/dist/commonjs/__tests__/collections.test.js.map +1 -1
  25. package/dist/commonjs/__tests__/datasource.test.d.ts +2 -0
  26. package/dist/commonjs/__tests__/datasource.test.d.ts.map +1 -0
  27. package/dist/commonjs/__tests__/datasource.test.js +10 -0
  28. package/dist/commonjs/__tests__/datasource.test.js.map +1 -0
  29. package/dist/commonjs/__tests__/datasources.test.js +1 -1
  30. package/dist/commonjs/__tests__/datasources.test.js.map +1 -1
  31. package/dist/commonjs/__tests__/indexingdocuments.test.js +41 -0
  32. package/dist/commonjs/__tests__/indexingdocuments.test.js.map +1 -1
  33. package/dist/commonjs/__tests__/indexingpeople.test.d.ts +2 -0
  34. package/dist/commonjs/__tests__/indexingpeople.test.d.ts.map +1 -0
  35. package/dist/commonjs/__tests__/indexingpeople.test.js +30 -0
  36. package/dist/commonjs/__tests__/indexingpeople.test.js.map +1 -0
  37. package/dist/commonjs/__tests__/insights.test.js +1 -2
  38. package/dist/commonjs/__tests__/insights.test.js.map +1 -1
  39. package/dist/commonjs/__tests__/messages.test.js +1 -2
  40. package/dist/commonjs/__tests__/messages.test.js.map +1 -1
  41. package/dist/commonjs/__tests__/search.test.js +0 -237
  42. package/dist/commonjs/__tests__/search.test.js.map +1 -1
  43. package/dist/commonjs/__tests__/verification.test.js +1 -1
  44. package/dist/commonjs/__tests__/verification.test.js.map +1 -1
  45. package/dist/commonjs/funcs/clientAdminSearchQuery.d.ts +17 -0
  46. package/dist/commonjs/funcs/clientAdminSearchQuery.d.ts.map +1 -0
  47. package/dist/commonjs/funcs/clientAdminSearchQuery.js +118 -0
  48. package/dist/commonjs/funcs/clientAdminSearchQuery.js.map +1 -0
  49. package/dist/commonjs/funcs/clientAgentsRetrieveInputs.d.ts +16 -0
  50. package/dist/commonjs/funcs/clientAgentsRetrieveInputs.d.ts.map +1 -0
  51. package/dist/commonjs/funcs/clientAgentsRetrieveInputs.js +123 -0
  52. package/dist/commonjs/funcs/clientAgentsRetrieveInputs.js.map +1 -0
  53. package/dist/commonjs/funcs/clientAgentsRun.d.ts +16 -0
  54. package/dist/commonjs/funcs/clientAgentsRun.d.ts.map +1 -0
  55. package/dist/commonjs/funcs/clientAgentsRun.js +121 -0
  56. package/dist/commonjs/funcs/clientAgentsRun.js.map +1 -0
  57. package/dist/commonjs/funcs/clientChatDeleteFiles.d.ts +16 -0
  58. package/dist/commonjs/funcs/clientChatDeleteFiles.d.ts.map +1 -0
  59. package/dist/commonjs/funcs/clientChatDeleteFiles.js +123 -0
  60. package/dist/commonjs/funcs/clientChatDeleteFiles.js.map +1 -0
  61. package/dist/commonjs/funcs/clientChatRetrieveApplication.d.ts +16 -0
  62. package/dist/commonjs/funcs/clientChatRetrieveApplication.d.ts.map +1 -0
  63. package/dist/commonjs/funcs/clientChatRetrieveApplication.js +123 -0
  64. package/dist/commonjs/funcs/clientChatRetrieveApplication.js.map +1 -0
  65. package/dist/commonjs/funcs/clientChatRetrieveFiles.d.ts +16 -0
  66. package/dist/commonjs/funcs/clientChatRetrieveFiles.d.ts.map +1 -0
  67. package/dist/commonjs/funcs/clientChatRetrieveFiles.js +123 -0
  68. package/dist/commonjs/funcs/clientChatRetrieveFiles.js.map +1 -0
  69. package/dist/commonjs/funcs/clientChatUploadFiles.d.ts +16 -0
  70. package/dist/commonjs/funcs/clientChatUploadFiles.d.ts.map +1 -0
  71. package/dist/commonjs/funcs/clientChatUploadFiles.js +121 -0
  72. package/dist/commonjs/funcs/clientChatUploadFiles.js.map +1 -0
  73. package/dist/commonjs/funcs/clientCollectionsDeleteItem.d.ts +16 -0
  74. package/dist/commonjs/funcs/clientCollectionsDeleteItem.d.ts.map +1 -0
  75. package/dist/commonjs/funcs/clientCollectionsDeleteItem.js +112 -0
  76. package/dist/commonjs/funcs/clientCollectionsDeleteItem.js.map +1 -0
  77. package/dist/commonjs/funcs/clientCollectionsUpdateItem.d.ts +16 -0
  78. package/dist/commonjs/funcs/clientCollectionsUpdateItem.d.ts.map +1 -0
  79. package/dist/commonjs/funcs/clientCollectionsUpdateItem.js +112 -0
  80. package/dist/commonjs/funcs/clientCollectionsUpdateItem.js.map +1 -0
  81. package/dist/commonjs/funcs/clientDocumentsRetrievePermissions.d.ts +16 -0
  82. package/dist/commonjs/funcs/clientDocumentsRetrievePermissions.d.ts.map +1 -0
  83. package/dist/commonjs/funcs/clientDocumentsRetrievePermissions.js +112 -0
  84. package/dist/commonjs/funcs/clientDocumentsRetrievePermissions.js.map +1 -0
  85. package/dist/commonjs/funcs/clientDocumentsSummarize.d.ts +16 -0
  86. package/dist/commonjs/funcs/clientDocumentsSummarize.d.ts.map +1 -0
  87. package/dist/commonjs/funcs/clientDocumentsSummarize.js +112 -0
  88. package/dist/commonjs/funcs/clientDocumentsSummarize.js.map +1 -0
  89. package/dist/commonjs/funcs/clientSearchRetrieveFeed.d.ts +16 -0
  90. package/dist/commonjs/funcs/clientSearchRetrieveFeed.d.ts.map +1 -0
  91. package/dist/commonjs/funcs/clientSearchRetrieveFeed.js +112 -0
  92. package/dist/commonjs/funcs/clientSearchRetrieveFeed.js.map +1 -0
  93. package/dist/commonjs/funcs/clientShortcutsCreate.d.ts +16 -0
  94. package/dist/commonjs/funcs/clientShortcutsCreate.d.ts.map +1 -0
  95. package/dist/commonjs/funcs/clientShortcutsCreate.js +112 -0
  96. package/dist/commonjs/funcs/clientShortcutsCreate.js.map +1 -0
  97. package/dist/commonjs/funcs/clientVerificationVerify.d.ts +16 -0
  98. package/dist/commonjs/funcs/clientVerificationVerify.d.ts.map +1 -0
  99. package/dist/commonjs/funcs/clientVerificationVerify.js +112 -0
  100. package/dist/commonjs/funcs/clientVerificationVerify.js.map +1 -0
  101. package/dist/commonjs/funcs/indexingDatasourceStatus.d.ts +18 -0
  102. package/dist/commonjs/funcs/indexingDatasourceStatus.d.ts.map +1 -0
  103. package/dist/commonjs/funcs/indexingDatasourceStatus.js +126 -0
  104. package/dist/commonjs/funcs/indexingDatasourceStatus.js.map +1 -0
  105. package/dist/commonjs/funcs/indexingDatasourcesRetrieveConfig.d.ts +16 -0
  106. package/dist/commonjs/funcs/indexingDatasourcesRetrieveConfig.d.ts.map +1 -0
  107. package/dist/commonjs/funcs/indexingDatasourcesRetrieveConfig.js +112 -0
  108. package/dist/commonjs/funcs/indexingDatasourcesRetrieveConfig.js.map +1 -0
  109. package/dist/commonjs/funcs/indexingDocumentsCheckAccess.d.ts +18 -0
  110. package/dist/commonjs/funcs/indexingDocumentsCheckAccess.d.ts.map +1 -0
  111. package/dist/commonjs/funcs/indexingDocumentsCheckAccess.js +114 -0
  112. package/dist/commonjs/funcs/indexingDocumentsCheckAccess.js.map +1 -0
  113. package/dist/commonjs/funcs/indexingDocumentsCount.d.ts +20 -0
  114. package/dist/commonjs/funcs/indexingDocumentsCount.d.ts.map +1 -0
  115. package/dist/commonjs/funcs/indexingDocumentsCount.js +116 -0
  116. package/dist/commonjs/funcs/indexingDocumentsCount.js.map +1 -0
  117. package/dist/commonjs/funcs/indexingDocumentsDebug.d.ts +18 -0
  118. package/dist/commonjs/funcs/indexingDocumentsDebug.d.ts.map +1 -0
  119. package/dist/commonjs/funcs/indexingDocumentsDebug.js +130 -0
  120. package/dist/commonjs/funcs/indexingDocumentsDebug.js.map +1 -0
  121. package/dist/commonjs/funcs/indexingDocumentsDebugMany.d.ts +18 -0
  122. package/dist/commonjs/funcs/indexingDocumentsDebugMany.d.ts.map +1 -0
  123. package/dist/commonjs/funcs/indexingDocumentsDebugMany.js +130 -0
  124. package/dist/commonjs/funcs/indexingDocumentsDebugMany.js.map +1 -0
  125. package/dist/commonjs/funcs/indexingDocumentsStatus.d.ts +20 -0
  126. package/dist/commonjs/funcs/indexingDocumentsStatus.d.ts.map +1 -0
  127. package/dist/commonjs/funcs/indexingDocumentsStatus.js +116 -0
  128. package/dist/commonjs/funcs/indexingDocumentsStatus.js.map +1 -0
  129. package/dist/commonjs/funcs/indexingPeopleCount.d.ts +20 -0
  130. package/dist/commonjs/funcs/indexingPeopleCount.d.ts.map +1 -0
  131. package/dist/commonjs/funcs/indexingPeopleCount.js +116 -0
  132. package/dist/commonjs/funcs/indexingPeopleCount.js.map +1 -0
  133. package/dist/commonjs/funcs/indexingPeopleDebug.d.ts +18 -0
  134. package/dist/commonjs/funcs/indexingPeopleDebug.d.ts.map +1 -0
  135. package/dist/commonjs/funcs/indexingPeopleDebug.js +127 -0
  136. package/dist/commonjs/funcs/indexingPeopleDebug.js.map +1 -0
  137. package/dist/commonjs/funcs/indexingShortcutsUpload.d.ts +16 -0
  138. package/dist/commonjs/funcs/indexingShortcutsUpload.d.ts.map +1 -0
  139. package/dist/commonjs/funcs/indexingShortcutsUpload.js +113 -0
  140. package/dist/commonjs/funcs/indexingShortcutsUpload.js.map +1 -0
  141. package/dist/commonjs/lib/config.d.ts +2 -2
  142. package/dist/commonjs/lib/config.js +2 -2
  143. package/dist/commonjs/models/components/collectionitem.js +2 -2
  144. package/dist/commonjs/models/components/collectionitem.js.map +1 -1
  145. package/dist/commonjs/models/components/documentmetadata.js +2 -2
  146. package/dist/commonjs/models/components/documentmetadata.js.map +1 -1
  147. package/dist/commonjs/models/components/index.d.ts +1 -0
  148. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  149. package/dist/commonjs/models/components/index.js +1 -0
  150. package/dist/commonjs/models/components/index.js.map +1 -1
  151. package/dist/commonjs/models/components/indexingshortcut.d.ts +72 -0
  152. package/dist/commonjs/models/components/indexingshortcut.d.ts.map +1 -0
  153. package/dist/commonjs/models/components/indexingshortcut.js +85 -0
  154. package/dist/commonjs/models/components/indexingshortcut.js.map +1 -0
  155. package/dist/commonjs/models/components/shortcut.d.ts +77 -20
  156. package/dist/commonjs/models/components/shortcut.d.ts.map +1 -1
  157. package/dist/commonjs/models/components/shortcut.js +46 -10
  158. package/dist/commonjs/models/components/shortcut.js.map +1 -1
  159. package/dist/commonjs/models/components/structuredresult.js +2 -2
  160. package/dist/commonjs/models/components/structuredresult.js.map +1 -1
  161. package/dist/commonjs/models/components/uploadshortcutsrequest.d.ts +3 -3
  162. package/dist/commonjs/models/components/uploadshortcutsrequest.d.ts.map +1 -1
  163. package/dist/commonjs/models/components/uploadshortcutsrequest.js +3 -3
  164. package/dist/commonjs/models/components/uploadshortcutsrequest.js.map +1 -1
  165. package/dist/commonjs/react-query/clientAdminSearchQuery.d.ts +23 -0
  166. package/dist/commonjs/react-query/clientAdminSearchQuery.d.ts.map +1 -0
  167. package/dist/commonjs/react-query/clientAdminSearchQuery.js +47 -0
  168. package/dist/commonjs/react-query/clientAdminSearchQuery.js.map +1 -0
  169. package/dist/commonjs/react-query/clientAgentsRetrieveInputs.d.ts +24 -0
  170. package/dist/commonjs/react-query/clientAgentsRetrieveInputs.d.ts.map +1 -0
  171. package/dist/commonjs/react-query/clientAgentsRetrieveInputs.js +47 -0
  172. package/dist/commonjs/react-query/clientAgentsRetrieveInputs.js.map +1 -0
  173. package/dist/commonjs/react-query/clientAgentsRun.d.ts +24 -0
  174. package/dist/commonjs/react-query/clientAgentsRun.d.ts.map +1 -0
  175. package/dist/commonjs/react-query/clientAgentsRun.js +47 -0
  176. package/dist/commonjs/react-query/clientAgentsRun.js.map +1 -0
  177. package/dist/commonjs/react-query/clientChatDeleteFiles.d.ts +24 -0
  178. package/dist/commonjs/react-query/clientChatDeleteFiles.d.ts.map +1 -0
  179. package/dist/commonjs/react-query/clientChatDeleteFiles.js +47 -0
  180. package/dist/commonjs/react-query/clientChatDeleteFiles.js.map +1 -0
  181. package/dist/commonjs/react-query/clientChatRetrieveApplication.d.ts +24 -0
  182. package/dist/commonjs/react-query/clientChatRetrieveApplication.d.ts.map +1 -0
  183. package/dist/commonjs/react-query/clientChatRetrieveApplication.js +47 -0
  184. package/dist/commonjs/react-query/clientChatRetrieveApplication.js.map +1 -0
  185. package/dist/commonjs/react-query/clientChatRetrieveFiles.d.ts +24 -0
  186. package/dist/commonjs/react-query/clientChatRetrieveFiles.d.ts.map +1 -0
  187. package/dist/commonjs/react-query/clientChatRetrieveFiles.js +47 -0
  188. package/dist/commonjs/react-query/clientChatRetrieveFiles.js.map +1 -0
  189. package/dist/commonjs/react-query/clientChatUploadFiles.d.ts +24 -0
  190. package/dist/commonjs/react-query/clientChatUploadFiles.d.ts.map +1 -0
  191. package/dist/commonjs/react-query/clientChatUploadFiles.js +47 -0
  192. package/dist/commonjs/react-query/clientChatUploadFiles.js.map +1 -0
  193. package/dist/commonjs/react-query/clientCollectionsDeleteItem.d.ts +23 -0
  194. package/dist/commonjs/react-query/clientCollectionsDeleteItem.d.ts.map +1 -0
  195. package/dist/commonjs/react-query/clientCollectionsDeleteItem.js +47 -0
  196. package/dist/commonjs/react-query/clientCollectionsDeleteItem.js.map +1 -0
  197. package/dist/commonjs/react-query/clientCollectionsUpdateItem.d.ts +23 -0
  198. package/dist/commonjs/react-query/clientCollectionsUpdateItem.d.ts.map +1 -0
  199. package/dist/commonjs/react-query/clientCollectionsUpdateItem.js +47 -0
  200. package/dist/commonjs/react-query/clientCollectionsUpdateItem.js.map +1 -0
  201. package/dist/commonjs/react-query/clientDocumentsRetrievePermissions.d.ts +23 -0
  202. package/dist/commonjs/react-query/clientDocumentsRetrievePermissions.d.ts.map +1 -0
  203. package/dist/commonjs/react-query/clientDocumentsRetrievePermissions.js +47 -0
  204. package/dist/commonjs/react-query/clientDocumentsRetrievePermissions.js.map +1 -0
  205. package/dist/commonjs/react-query/clientDocumentsSummarize.d.ts +23 -0
  206. package/dist/commonjs/react-query/clientDocumentsSummarize.d.ts.map +1 -0
  207. package/dist/commonjs/react-query/clientDocumentsSummarize.js +47 -0
  208. package/dist/commonjs/react-query/clientDocumentsSummarize.js.map +1 -0
  209. package/dist/commonjs/react-query/clientSearchRetrieveFeed.d.ts +23 -0
  210. package/dist/commonjs/react-query/clientSearchRetrieveFeed.d.ts.map +1 -0
  211. package/dist/commonjs/react-query/clientSearchRetrieveFeed.js +47 -0
  212. package/dist/commonjs/react-query/clientSearchRetrieveFeed.js.map +1 -0
  213. package/dist/commonjs/react-query/clientShortcutsCreate.d.ts +23 -0
  214. package/dist/commonjs/react-query/clientShortcutsCreate.d.ts.map +1 -0
  215. package/dist/commonjs/react-query/clientShortcutsCreate.js +47 -0
  216. package/dist/commonjs/react-query/clientShortcutsCreate.js.map +1 -0
  217. package/dist/commonjs/react-query/clientVerificationVerify.d.ts +23 -0
  218. package/dist/commonjs/react-query/clientVerificationVerify.d.ts.map +1 -0
  219. package/dist/commonjs/react-query/clientVerificationVerify.js +47 -0
  220. package/dist/commonjs/react-query/clientVerificationVerify.js.map +1 -0
  221. package/dist/commonjs/react-query/index.d.ts +24 -24
  222. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  223. package/dist/commonjs/react-query/index.js +24 -24
  224. package/dist/commonjs/react-query/index.js.map +1 -1
  225. package/dist/commonjs/react-query/indexingDatasourceStatus.d.ts +25 -0
  226. package/dist/commonjs/react-query/indexingDatasourceStatus.d.ts.map +1 -0
  227. package/dist/commonjs/react-query/indexingDatasourceStatus.js +49 -0
  228. package/dist/commonjs/react-query/indexingDatasourceStatus.js.map +1 -0
  229. package/dist/commonjs/react-query/indexingDatasourcesRetrieveConfig.d.ts +23 -0
  230. package/dist/commonjs/react-query/indexingDatasourcesRetrieveConfig.d.ts.map +1 -0
  231. package/dist/commonjs/react-query/indexingDatasourcesRetrieveConfig.js +47 -0
  232. package/dist/commonjs/react-query/indexingDatasourcesRetrieveConfig.js.map +1 -0
  233. package/dist/commonjs/react-query/indexingDocumentsCheckAccess.d.ts +25 -0
  234. package/dist/commonjs/react-query/indexingDocumentsCheckAccess.d.ts.map +1 -0
  235. package/dist/commonjs/react-query/indexingDocumentsCheckAccess.js +49 -0
  236. package/dist/commonjs/react-query/indexingDocumentsCheckAccess.js.map +1 -0
  237. package/dist/commonjs/react-query/indexingDocumentsCount.d.ts +27 -0
  238. package/dist/commonjs/react-query/indexingDocumentsCount.d.ts.map +1 -0
  239. package/dist/commonjs/react-query/indexingDocumentsCount.js +51 -0
  240. package/dist/commonjs/react-query/indexingDocumentsCount.js.map +1 -0
  241. package/dist/commonjs/react-query/indexingDocumentsDebug.d.ts +26 -0
  242. package/dist/commonjs/react-query/indexingDocumentsDebug.d.ts.map +1 -0
  243. package/dist/commonjs/react-query/indexingDocumentsDebug.js +49 -0
  244. package/dist/commonjs/react-query/indexingDocumentsDebug.js.map +1 -0
  245. package/dist/commonjs/react-query/indexingDocumentsDebugMany.d.ts +26 -0
  246. package/dist/commonjs/react-query/indexingDocumentsDebugMany.d.ts.map +1 -0
  247. package/dist/commonjs/react-query/indexingDocumentsDebugMany.js +49 -0
  248. package/dist/commonjs/react-query/indexingDocumentsDebugMany.js.map +1 -0
  249. package/dist/commonjs/react-query/indexingDocumentsStatus.d.ts +27 -0
  250. package/dist/commonjs/react-query/indexingDocumentsStatus.d.ts.map +1 -0
  251. package/dist/commonjs/react-query/indexingDocumentsStatus.js +51 -0
  252. package/dist/commonjs/react-query/indexingDocumentsStatus.js.map +1 -0
  253. package/dist/commonjs/react-query/indexingPeopleCount.d.ts +27 -0
  254. package/dist/commonjs/react-query/indexingPeopleCount.d.ts.map +1 -0
  255. package/dist/commonjs/react-query/indexingPeopleCount.js +51 -0
  256. package/dist/commonjs/react-query/indexingPeopleCount.js.map +1 -0
  257. package/dist/commonjs/react-query/indexingPeopleDebug.d.ts +26 -0
  258. package/dist/commonjs/react-query/indexingPeopleDebug.d.ts.map +1 -0
  259. package/dist/commonjs/react-query/indexingPeopleDebug.js +49 -0
  260. package/dist/commonjs/react-query/indexingPeopleDebug.js.map +1 -0
  261. package/dist/commonjs/react-query/indexingShortcutsUpload.d.ts +23 -0
  262. package/dist/commonjs/react-query/indexingShortcutsUpload.d.ts.map +1 -0
  263. package/dist/commonjs/react-query/indexingShortcutsUpload.js +47 -0
  264. package/dist/commonjs/react-query/indexingShortcutsUpload.js.map +1 -0
  265. package/dist/commonjs/sdk/admin.d.ts +4 -9
  266. package/dist/commonjs/sdk/admin.d.ts.map +1 -1
  267. package/dist/commonjs/sdk/admin.js +3 -10
  268. package/dist/commonjs/sdk/admin.js.map +1 -1
  269. package/dist/commonjs/sdk/adminsearch.d.ts +12 -0
  270. package/dist/commonjs/sdk/adminsearch.d.ts.map +1 -0
  271. package/dist/commonjs/sdk/adminsearch.js +22 -0
  272. package/dist/commonjs/sdk/adminsearch.js.map +1 -0
  273. package/dist/commonjs/sdk/agents.d.ts +14 -3
  274. package/dist/commonjs/sdk/agents.d.ts.map +1 -1
  275. package/dist/commonjs/sdk/agents.js +19 -3
  276. package/dist/commonjs/sdk/agents.js.map +1 -1
  277. package/dist/commonjs/sdk/chat.d.ts +28 -6
  278. package/dist/commonjs/sdk/chat.d.ts.map +1 -1
  279. package/dist/commonjs/sdk/chat.js +40 -8
  280. package/dist/commonjs/sdk/chat.js.map +1 -1
  281. package/dist/commonjs/sdk/client.d.ts +5 -5
  282. package/dist/commonjs/sdk/client.d.ts.map +1 -1
  283. package/dist/commonjs/sdk/client.js +6 -6
  284. package/dist/commonjs/sdk/client.js.map +1 -1
  285. package/dist/commonjs/sdk/clientdocuments.d.ts +14 -3
  286. package/dist/commonjs/sdk/clientdocuments.d.ts.map +1 -1
  287. package/dist/commonjs/sdk/clientdocuments.js +19 -3
  288. package/dist/commonjs/sdk/clientdocuments.js.map +1 -1
  289. package/dist/commonjs/sdk/clientsearch.d.ts +7 -6
  290. package/dist/commonjs/sdk/clientsearch.d.ts.map +1 -1
  291. package/dist/commonjs/sdk/clientsearch.js +9 -7
  292. package/dist/commonjs/sdk/clientsearch.js.map +1 -1
  293. package/dist/commonjs/sdk/clientshortcuts.d.ts +7 -7
  294. package/dist/commonjs/sdk/clientshortcuts.d.ts.map +1 -1
  295. package/dist/commonjs/sdk/clientshortcuts.js +10 -10
  296. package/dist/commonjs/sdk/clientshortcuts.js.map +1 -1
  297. package/dist/commonjs/sdk/collections.d.ts +14 -3
  298. package/dist/commonjs/sdk/collections.d.ts.map +1 -1
  299. package/dist/commonjs/sdk/collections.js +20 -4
  300. package/dist/commonjs/sdk/collections.js.map +1 -1
  301. package/dist/commonjs/sdk/datasource.d.ts +0 -9
  302. package/dist/commonjs/sdk/datasource.d.ts.map +1 -1
  303. package/dist/commonjs/sdk/datasource.js +2 -14
  304. package/dist/commonjs/sdk/datasource.js.map +1 -1
  305. package/dist/commonjs/sdk/datasources.d.ts +7 -3
  306. package/dist/commonjs/sdk/datasources.d.ts.map +1 -1
  307. package/dist/commonjs/sdk/datasources.js +10 -4
  308. package/dist/commonjs/sdk/datasources.js.map +1 -1
  309. package/dist/commonjs/sdk/indexing.d.ts +7 -7
  310. package/dist/commonjs/sdk/indexing.d.ts.map +1 -1
  311. package/dist/commonjs/sdk/indexing.js +8 -8
  312. package/dist/commonjs/sdk/indexing.js.map +1 -1
  313. package/dist/commonjs/sdk/indexingdocuments.d.ts +49 -0
  314. package/dist/commonjs/sdk/indexingdocuments.d.ts.map +1 -1
  315. package/dist/commonjs/sdk/indexingdocuments.js +64 -0
  316. package/dist/commonjs/sdk/indexingdocuments.js.map +1 -1
  317. package/dist/commonjs/sdk/indexingpeople.d.ts +20 -0
  318. package/dist/commonjs/sdk/indexingpeople.d.ts.map +1 -1
  319. package/dist/commonjs/sdk/indexingpeople.js +26 -0
  320. package/dist/commonjs/sdk/indexingpeople.js.map +1 -1
  321. package/dist/commonjs/sdk/indexingshortcuts.d.ts +7 -0
  322. package/dist/commonjs/sdk/indexingshortcuts.d.ts.map +1 -1
  323. package/dist/commonjs/sdk/indexingshortcuts.js +10 -0
  324. package/dist/commonjs/sdk/indexingshortcuts.js.map +1 -1
  325. package/dist/commonjs/sdk/permissions.d.ts +89 -0
  326. package/dist/commonjs/sdk/permissions.d.ts.map +1 -0
  327. package/dist/commonjs/sdk/permissions.js +132 -0
  328. package/dist/commonjs/sdk/permissions.js.map +1 -0
  329. package/dist/commonjs/sdk/sdk.d.ts +0 -6
  330. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  331. package/dist/commonjs/sdk/sdk.js +0 -8
  332. package/dist/commonjs/sdk/sdk.js.map +1 -1
  333. package/dist/commonjs/sdk/verification.d.ts +14 -0
  334. package/dist/commonjs/sdk/verification.d.ts.map +1 -1
  335. package/dist/commonjs/sdk/verification.js +22 -2
  336. package/dist/commonjs/sdk/verification.js.map +1 -1
  337. package/dist/esm/__tests__/activity.test.js +14 -0
  338. package/dist/esm/__tests__/activity.test.js.map +1 -1
  339. package/dist/esm/__tests__/adminsearch.test.d.ts +2 -0
  340. package/dist/esm/__tests__/adminsearch.test.d.ts.map +1 -0
  341. package/dist/esm/__tests__/adminsearch.test.js +228 -0
  342. package/dist/esm/__tests__/adminsearch.test.js.map +1 -0
  343. package/dist/esm/__tests__/agents.test.js +2 -2
  344. package/dist/esm/__tests__/agents.test.js.map +1 -1
  345. package/dist/esm/__tests__/announcements.test.js +1 -1
  346. package/dist/esm/__tests__/answers.test.js +15 -3
  347. package/dist/esm/__tests__/answers.test.js.map +1 -1
  348. package/dist/esm/__tests__/chat.test.js +1879 -244
  349. package/dist/esm/__tests__/chat.test.js.map +1 -1
  350. package/dist/esm/__tests__/clientdocuments.test.js +15 -1
  351. package/dist/esm/__tests__/clientdocuments.test.js.map +1 -1
  352. package/dist/esm/__tests__/clientsearch.test.d.ts +2 -0
  353. package/dist/esm/__tests__/clientsearch.test.d.ts.map +1 -0
  354. package/dist/esm/__tests__/clientsearch.test.js +385 -0
  355. package/dist/esm/__tests__/clientsearch.test.js.map +1 -0
  356. package/dist/esm/__tests__/clientshortcuts.test.js +17 -8
  357. package/dist/esm/__tests__/clientshortcuts.test.js.map +1 -1
  358. package/dist/esm/__tests__/collections.test.js +12 -9
  359. package/dist/esm/__tests__/collections.test.js.map +1 -1
  360. package/dist/esm/__tests__/datasource.test.d.ts +2 -0
  361. package/dist/esm/__tests__/datasource.test.d.ts.map +1 -0
  362. package/dist/esm/__tests__/datasource.test.js +8 -0
  363. package/dist/esm/__tests__/datasource.test.js.map +1 -0
  364. package/dist/esm/__tests__/datasources.test.js +1 -1
  365. package/dist/esm/__tests__/datasources.test.js.map +1 -1
  366. package/dist/esm/__tests__/indexingdocuments.test.js +42 -1
  367. package/dist/esm/__tests__/indexingdocuments.test.js.map +1 -1
  368. package/dist/esm/__tests__/indexingpeople.test.d.ts +2 -0
  369. package/dist/esm/__tests__/indexingpeople.test.d.ts.map +1 -0
  370. package/dist/esm/__tests__/indexingpeople.test.js +28 -0
  371. package/dist/esm/__tests__/indexingpeople.test.js.map +1 -0
  372. package/dist/esm/__tests__/insights.test.js +1 -2
  373. package/dist/esm/__tests__/insights.test.js.map +1 -1
  374. package/dist/esm/__tests__/messages.test.js +1 -2
  375. package/dist/esm/__tests__/messages.test.js.map +1 -1
  376. package/dist/esm/__tests__/search.test.js +0 -237
  377. package/dist/esm/__tests__/search.test.js.map +1 -1
  378. package/dist/esm/__tests__/verification.test.js +1 -1
  379. package/dist/esm/__tests__/verification.test.js.map +1 -1
  380. package/dist/esm/funcs/clientAdminSearchQuery.d.ts +17 -0
  381. package/dist/esm/funcs/clientAdminSearchQuery.d.ts.map +1 -0
  382. package/dist/esm/funcs/clientAdminSearchQuery.js +82 -0
  383. package/dist/esm/funcs/clientAdminSearchQuery.js.map +1 -0
  384. package/dist/esm/funcs/clientAgentsRetrieveInputs.d.ts +16 -0
  385. package/dist/esm/funcs/clientAgentsRetrieveInputs.d.ts.map +1 -0
  386. package/dist/esm/funcs/clientAgentsRetrieveInputs.js +87 -0
  387. package/dist/esm/funcs/clientAgentsRetrieveInputs.js.map +1 -0
  388. package/dist/esm/funcs/clientAgentsRun.d.ts +16 -0
  389. package/dist/esm/funcs/clientAgentsRun.d.ts.map +1 -0
  390. package/dist/esm/funcs/clientAgentsRun.js +85 -0
  391. package/dist/esm/funcs/clientAgentsRun.js.map +1 -0
  392. package/dist/esm/funcs/clientChatDeleteFiles.d.ts +16 -0
  393. package/dist/esm/funcs/clientChatDeleteFiles.d.ts.map +1 -0
  394. package/dist/esm/funcs/clientChatDeleteFiles.js +87 -0
  395. package/dist/esm/funcs/clientChatDeleteFiles.js.map +1 -0
  396. package/dist/esm/funcs/clientChatRetrieveApplication.d.ts +16 -0
  397. package/dist/esm/funcs/clientChatRetrieveApplication.d.ts.map +1 -0
  398. package/dist/esm/funcs/clientChatRetrieveApplication.js +87 -0
  399. package/dist/esm/funcs/clientChatRetrieveApplication.js.map +1 -0
  400. package/dist/esm/funcs/clientChatRetrieveFiles.d.ts +16 -0
  401. package/dist/esm/funcs/clientChatRetrieveFiles.d.ts.map +1 -0
  402. package/dist/esm/funcs/clientChatRetrieveFiles.js +87 -0
  403. package/dist/esm/funcs/clientChatRetrieveFiles.js.map +1 -0
  404. package/dist/esm/funcs/clientChatUploadFiles.d.ts +16 -0
  405. package/dist/esm/funcs/clientChatUploadFiles.d.ts.map +1 -0
  406. package/dist/esm/funcs/clientChatUploadFiles.js +85 -0
  407. package/dist/esm/funcs/clientChatUploadFiles.js.map +1 -0
  408. package/dist/esm/funcs/clientCollectionsDeleteItem.d.ts +16 -0
  409. package/dist/esm/funcs/clientCollectionsDeleteItem.d.ts.map +1 -0
  410. package/dist/esm/funcs/clientCollectionsDeleteItem.js +76 -0
  411. package/dist/esm/funcs/clientCollectionsDeleteItem.js.map +1 -0
  412. package/dist/esm/funcs/clientCollectionsUpdateItem.d.ts +16 -0
  413. package/dist/esm/funcs/clientCollectionsUpdateItem.d.ts.map +1 -0
  414. package/dist/esm/funcs/clientCollectionsUpdateItem.js +76 -0
  415. package/dist/esm/funcs/clientCollectionsUpdateItem.js.map +1 -0
  416. package/dist/esm/funcs/clientDocumentsRetrievePermissions.d.ts +16 -0
  417. package/dist/esm/funcs/clientDocumentsRetrievePermissions.d.ts.map +1 -0
  418. package/dist/esm/funcs/clientDocumentsRetrievePermissions.js +76 -0
  419. package/dist/esm/funcs/clientDocumentsRetrievePermissions.js.map +1 -0
  420. package/dist/esm/funcs/clientDocumentsSummarize.d.ts +16 -0
  421. package/dist/esm/funcs/clientDocumentsSummarize.d.ts.map +1 -0
  422. package/dist/esm/funcs/clientDocumentsSummarize.js +76 -0
  423. package/dist/esm/funcs/clientDocumentsSummarize.js.map +1 -0
  424. package/dist/esm/funcs/clientSearchRetrieveFeed.d.ts +16 -0
  425. package/dist/esm/funcs/clientSearchRetrieveFeed.d.ts.map +1 -0
  426. package/dist/esm/funcs/clientSearchRetrieveFeed.js +76 -0
  427. package/dist/esm/funcs/clientSearchRetrieveFeed.js.map +1 -0
  428. package/dist/esm/funcs/clientShortcutsCreate.d.ts +16 -0
  429. package/dist/esm/funcs/clientShortcutsCreate.d.ts.map +1 -0
  430. package/dist/esm/funcs/clientShortcutsCreate.js +76 -0
  431. package/dist/esm/funcs/clientShortcutsCreate.js.map +1 -0
  432. package/dist/esm/funcs/clientVerificationVerify.d.ts +16 -0
  433. package/dist/esm/funcs/clientVerificationVerify.d.ts.map +1 -0
  434. package/dist/esm/funcs/clientVerificationVerify.js +76 -0
  435. package/dist/esm/funcs/clientVerificationVerify.js.map +1 -0
  436. package/dist/esm/funcs/indexingDatasourceStatus.d.ts +18 -0
  437. package/dist/esm/funcs/indexingDatasourceStatus.d.ts.map +1 -0
  438. package/dist/esm/funcs/indexingDatasourceStatus.js +90 -0
  439. package/dist/esm/funcs/indexingDatasourceStatus.js.map +1 -0
  440. package/dist/esm/funcs/indexingDatasourcesRetrieveConfig.d.ts +16 -0
  441. package/dist/esm/funcs/indexingDatasourcesRetrieveConfig.d.ts.map +1 -0
  442. package/dist/esm/funcs/indexingDatasourcesRetrieveConfig.js +76 -0
  443. package/dist/esm/funcs/indexingDatasourcesRetrieveConfig.js.map +1 -0
  444. package/dist/esm/funcs/indexingDocumentsCheckAccess.d.ts +18 -0
  445. package/dist/esm/funcs/indexingDocumentsCheckAccess.d.ts.map +1 -0
  446. package/dist/esm/funcs/indexingDocumentsCheckAccess.js +78 -0
  447. package/dist/esm/funcs/indexingDocumentsCheckAccess.js.map +1 -0
  448. package/dist/esm/funcs/indexingDocumentsCount.d.ts +20 -0
  449. package/dist/esm/funcs/indexingDocumentsCount.d.ts.map +1 -0
  450. package/dist/esm/funcs/indexingDocumentsCount.js +80 -0
  451. package/dist/esm/funcs/indexingDocumentsCount.js.map +1 -0
  452. package/dist/esm/funcs/indexingDocumentsDebug.d.ts +18 -0
  453. package/dist/esm/funcs/indexingDocumentsDebug.d.ts.map +1 -0
  454. package/dist/esm/funcs/indexingDocumentsDebug.js +94 -0
  455. package/dist/esm/funcs/indexingDocumentsDebug.js.map +1 -0
  456. package/dist/esm/funcs/indexingDocumentsDebugMany.d.ts +18 -0
  457. package/dist/esm/funcs/indexingDocumentsDebugMany.d.ts.map +1 -0
  458. package/dist/esm/funcs/indexingDocumentsDebugMany.js +94 -0
  459. package/dist/esm/funcs/indexingDocumentsDebugMany.js.map +1 -0
  460. package/dist/esm/funcs/indexingDocumentsStatus.d.ts +20 -0
  461. package/dist/esm/funcs/indexingDocumentsStatus.d.ts.map +1 -0
  462. package/dist/esm/funcs/indexingDocumentsStatus.js +80 -0
  463. package/dist/esm/funcs/indexingDocumentsStatus.js.map +1 -0
  464. package/dist/esm/funcs/indexingPeopleCount.d.ts +20 -0
  465. package/dist/esm/funcs/indexingPeopleCount.d.ts.map +1 -0
  466. package/dist/esm/funcs/indexingPeopleCount.js +80 -0
  467. package/dist/esm/funcs/indexingPeopleCount.js.map +1 -0
  468. package/dist/esm/funcs/indexingPeopleDebug.d.ts +18 -0
  469. package/dist/esm/funcs/indexingPeopleDebug.d.ts.map +1 -0
  470. package/dist/esm/funcs/indexingPeopleDebug.js +91 -0
  471. package/dist/esm/funcs/indexingPeopleDebug.js.map +1 -0
  472. package/dist/esm/funcs/indexingShortcutsUpload.d.ts +16 -0
  473. package/dist/esm/funcs/indexingShortcutsUpload.d.ts.map +1 -0
  474. package/dist/esm/funcs/indexingShortcutsUpload.js +77 -0
  475. package/dist/esm/funcs/indexingShortcutsUpload.js.map +1 -0
  476. package/dist/esm/lib/config.d.ts +2 -2
  477. package/dist/esm/lib/config.js +2 -2
  478. package/dist/esm/models/components/collectionitem.js +2 -2
  479. package/dist/esm/models/components/collectionitem.js.map +1 -1
  480. package/dist/esm/models/components/documentmetadata.js +2 -2
  481. package/dist/esm/models/components/documentmetadata.js.map +1 -1
  482. package/dist/esm/models/components/index.d.ts +1 -0
  483. package/dist/esm/models/components/index.d.ts.map +1 -1
  484. package/dist/esm/models/components/index.js +1 -0
  485. package/dist/esm/models/components/index.js.map +1 -1
  486. package/dist/esm/models/components/indexingshortcut.d.ts +72 -0
  487. package/dist/esm/models/components/indexingshortcut.d.ts.map +1 -0
  488. package/dist/esm/models/components/indexingshortcut.js +47 -0
  489. package/dist/esm/models/components/indexingshortcut.js.map +1 -0
  490. package/dist/esm/models/components/shortcut.d.ts +77 -20
  491. package/dist/esm/models/components/shortcut.d.ts.map +1 -1
  492. package/dist/esm/models/components/shortcut.js +46 -10
  493. package/dist/esm/models/components/shortcut.js.map +1 -1
  494. package/dist/esm/models/components/structuredresult.js +2 -2
  495. package/dist/esm/models/components/structuredresult.js.map +1 -1
  496. package/dist/esm/models/components/uploadshortcutsrequest.d.ts +3 -3
  497. package/dist/esm/models/components/uploadshortcutsrequest.d.ts.map +1 -1
  498. package/dist/esm/models/components/uploadshortcutsrequest.js +3 -3
  499. package/dist/esm/models/components/uploadshortcutsrequest.js.map +1 -1
  500. package/dist/esm/react-query/clientAdminSearchQuery.d.ts +23 -0
  501. package/dist/esm/react-query/clientAdminSearchQuery.d.ts.map +1 -0
  502. package/dist/esm/react-query/clientAdminSearchQuery.js +42 -0
  503. package/dist/esm/react-query/clientAdminSearchQuery.js.map +1 -0
  504. package/dist/esm/react-query/clientAgentsRetrieveInputs.d.ts +24 -0
  505. package/dist/esm/react-query/clientAgentsRetrieveInputs.d.ts.map +1 -0
  506. package/dist/esm/react-query/clientAgentsRetrieveInputs.js +42 -0
  507. package/dist/esm/react-query/clientAgentsRetrieveInputs.js.map +1 -0
  508. package/dist/esm/react-query/clientAgentsRun.d.ts +24 -0
  509. package/dist/esm/react-query/clientAgentsRun.d.ts.map +1 -0
  510. package/dist/esm/react-query/clientAgentsRun.js +42 -0
  511. package/dist/esm/react-query/clientAgentsRun.js.map +1 -0
  512. package/dist/esm/react-query/clientChatDeleteFiles.d.ts +24 -0
  513. package/dist/esm/react-query/clientChatDeleteFiles.d.ts.map +1 -0
  514. package/dist/esm/react-query/clientChatDeleteFiles.js +42 -0
  515. package/dist/esm/react-query/clientChatDeleteFiles.js.map +1 -0
  516. package/dist/esm/react-query/clientChatRetrieveApplication.d.ts +24 -0
  517. package/dist/esm/react-query/clientChatRetrieveApplication.d.ts.map +1 -0
  518. package/dist/esm/react-query/clientChatRetrieveApplication.js +42 -0
  519. package/dist/esm/react-query/clientChatRetrieveApplication.js.map +1 -0
  520. package/dist/esm/react-query/clientChatRetrieveFiles.d.ts +24 -0
  521. package/dist/esm/react-query/clientChatRetrieveFiles.d.ts.map +1 -0
  522. package/dist/esm/react-query/clientChatRetrieveFiles.js +42 -0
  523. package/dist/esm/react-query/clientChatRetrieveFiles.js.map +1 -0
  524. package/dist/esm/react-query/clientChatUploadFiles.d.ts +24 -0
  525. package/dist/esm/react-query/clientChatUploadFiles.d.ts.map +1 -0
  526. package/dist/esm/react-query/clientChatUploadFiles.js +42 -0
  527. package/dist/esm/react-query/clientChatUploadFiles.js.map +1 -0
  528. package/dist/esm/react-query/clientCollectionsDeleteItem.d.ts +23 -0
  529. package/dist/esm/react-query/clientCollectionsDeleteItem.d.ts.map +1 -0
  530. package/dist/esm/react-query/clientCollectionsDeleteItem.js +42 -0
  531. package/dist/esm/react-query/clientCollectionsDeleteItem.js.map +1 -0
  532. package/dist/esm/react-query/clientCollectionsUpdateItem.d.ts +23 -0
  533. package/dist/esm/react-query/clientCollectionsUpdateItem.d.ts.map +1 -0
  534. package/dist/esm/react-query/clientCollectionsUpdateItem.js +42 -0
  535. package/dist/esm/react-query/clientCollectionsUpdateItem.js.map +1 -0
  536. package/dist/esm/react-query/clientDocumentsRetrievePermissions.d.ts +23 -0
  537. package/dist/esm/react-query/clientDocumentsRetrievePermissions.d.ts.map +1 -0
  538. package/dist/esm/react-query/clientDocumentsRetrievePermissions.js +42 -0
  539. package/dist/esm/react-query/clientDocumentsRetrievePermissions.js.map +1 -0
  540. package/dist/esm/react-query/clientDocumentsSummarize.d.ts +23 -0
  541. package/dist/esm/react-query/clientDocumentsSummarize.d.ts.map +1 -0
  542. package/dist/esm/react-query/clientDocumentsSummarize.js +42 -0
  543. package/dist/esm/react-query/clientDocumentsSummarize.js.map +1 -0
  544. package/dist/esm/react-query/clientSearchRetrieveFeed.d.ts +23 -0
  545. package/dist/esm/react-query/clientSearchRetrieveFeed.d.ts.map +1 -0
  546. package/dist/esm/react-query/clientSearchRetrieveFeed.js +42 -0
  547. package/dist/esm/react-query/clientSearchRetrieveFeed.js.map +1 -0
  548. package/dist/esm/react-query/clientShortcutsCreate.d.ts +23 -0
  549. package/dist/esm/react-query/clientShortcutsCreate.d.ts.map +1 -0
  550. package/dist/esm/react-query/clientShortcutsCreate.js +42 -0
  551. package/dist/esm/react-query/clientShortcutsCreate.js.map +1 -0
  552. package/dist/esm/react-query/clientVerificationVerify.d.ts +23 -0
  553. package/dist/esm/react-query/clientVerificationVerify.d.ts.map +1 -0
  554. package/dist/esm/react-query/clientVerificationVerify.js +42 -0
  555. package/dist/esm/react-query/clientVerificationVerify.js.map +1 -0
  556. package/dist/esm/react-query/index.d.ts +24 -24
  557. package/dist/esm/react-query/index.d.ts.map +1 -1
  558. package/dist/esm/react-query/index.js +24 -24
  559. package/dist/esm/react-query/index.js.map +1 -1
  560. package/dist/esm/react-query/indexingDatasourceStatus.d.ts +25 -0
  561. package/dist/esm/react-query/indexingDatasourceStatus.d.ts.map +1 -0
  562. package/dist/esm/react-query/indexingDatasourceStatus.js +44 -0
  563. package/dist/esm/react-query/indexingDatasourceStatus.js.map +1 -0
  564. package/dist/esm/react-query/indexingDatasourcesRetrieveConfig.d.ts +23 -0
  565. package/dist/esm/react-query/indexingDatasourcesRetrieveConfig.d.ts.map +1 -0
  566. package/dist/esm/react-query/indexingDatasourcesRetrieveConfig.js +42 -0
  567. package/dist/esm/react-query/indexingDatasourcesRetrieveConfig.js.map +1 -0
  568. package/dist/esm/react-query/indexingDocumentsCheckAccess.d.ts +25 -0
  569. package/dist/esm/react-query/indexingDocumentsCheckAccess.d.ts.map +1 -0
  570. package/dist/esm/react-query/indexingDocumentsCheckAccess.js +44 -0
  571. package/dist/esm/react-query/indexingDocumentsCheckAccess.js.map +1 -0
  572. package/dist/esm/react-query/indexingDocumentsCount.d.ts +27 -0
  573. package/dist/esm/react-query/indexingDocumentsCount.d.ts.map +1 -0
  574. package/dist/esm/react-query/indexingDocumentsCount.js +46 -0
  575. package/dist/esm/react-query/indexingDocumentsCount.js.map +1 -0
  576. package/dist/esm/react-query/indexingDocumentsDebug.d.ts +26 -0
  577. package/dist/esm/react-query/indexingDocumentsDebug.d.ts.map +1 -0
  578. package/dist/esm/react-query/indexingDocumentsDebug.js +44 -0
  579. package/dist/esm/react-query/indexingDocumentsDebug.js.map +1 -0
  580. package/dist/esm/react-query/indexingDocumentsDebugMany.d.ts +26 -0
  581. package/dist/esm/react-query/indexingDocumentsDebugMany.d.ts.map +1 -0
  582. package/dist/esm/react-query/indexingDocumentsDebugMany.js +44 -0
  583. package/dist/esm/react-query/indexingDocumentsDebugMany.js.map +1 -0
  584. package/dist/esm/react-query/indexingDocumentsStatus.d.ts +27 -0
  585. package/dist/esm/react-query/indexingDocumentsStatus.d.ts.map +1 -0
  586. package/dist/esm/react-query/indexingDocumentsStatus.js +46 -0
  587. package/dist/esm/react-query/indexingDocumentsStatus.js.map +1 -0
  588. package/dist/esm/react-query/indexingPeopleCount.d.ts +27 -0
  589. package/dist/esm/react-query/indexingPeopleCount.d.ts.map +1 -0
  590. package/dist/esm/react-query/indexingPeopleCount.js +46 -0
  591. package/dist/esm/react-query/indexingPeopleCount.js.map +1 -0
  592. package/dist/esm/react-query/indexingPeopleDebug.d.ts +26 -0
  593. package/dist/esm/react-query/indexingPeopleDebug.d.ts.map +1 -0
  594. package/dist/esm/react-query/indexingPeopleDebug.js +44 -0
  595. package/dist/esm/react-query/indexingPeopleDebug.js.map +1 -0
  596. package/dist/esm/react-query/indexingShortcutsUpload.d.ts +23 -0
  597. package/dist/esm/react-query/indexingShortcutsUpload.d.ts.map +1 -0
  598. package/dist/esm/react-query/indexingShortcutsUpload.js +42 -0
  599. package/dist/esm/react-query/indexingShortcutsUpload.js.map +1 -0
  600. package/dist/esm/sdk/admin.d.ts +4 -9
  601. package/dist/esm/sdk/admin.d.ts.map +1 -1
  602. package/dist/esm/sdk/admin.js +3 -10
  603. package/dist/esm/sdk/admin.js.map +1 -1
  604. package/dist/esm/sdk/adminsearch.d.ts +12 -0
  605. package/dist/esm/sdk/adminsearch.d.ts.map +1 -0
  606. package/dist/esm/sdk/adminsearch.js +18 -0
  607. package/dist/esm/sdk/adminsearch.js.map +1 -0
  608. package/dist/esm/sdk/agents.d.ts +14 -3
  609. package/dist/esm/sdk/agents.d.ts.map +1 -1
  610. package/dist/esm/sdk/agents.js +19 -3
  611. package/dist/esm/sdk/agents.js.map +1 -1
  612. package/dist/esm/sdk/chat.d.ts +28 -6
  613. package/dist/esm/sdk/chat.d.ts.map +1 -1
  614. package/dist/esm/sdk/chat.js +40 -8
  615. package/dist/esm/sdk/chat.js.map +1 -1
  616. package/dist/esm/sdk/client.d.ts +5 -5
  617. package/dist/esm/sdk/client.d.ts.map +1 -1
  618. package/dist/esm/sdk/client.js +6 -6
  619. package/dist/esm/sdk/client.js.map +1 -1
  620. package/dist/esm/sdk/clientdocuments.d.ts +14 -3
  621. package/dist/esm/sdk/clientdocuments.d.ts.map +1 -1
  622. package/dist/esm/sdk/clientdocuments.js +19 -3
  623. package/dist/esm/sdk/clientdocuments.js.map +1 -1
  624. package/dist/esm/sdk/clientsearch.d.ts +7 -6
  625. package/dist/esm/sdk/clientsearch.d.ts.map +1 -1
  626. package/dist/esm/sdk/clientsearch.js +9 -7
  627. package/dist/esm/sdk/clientsearch.js.map +1 -1
  628. package/dist/esm/sdk/clientshortcuts.d.ts +7 -7
  629. package/dist/esm/sdk/clientshortcuts.d.ts.map +1 -1
  630. package/dist/esm/sdk/clientshortcuts.js +10 -10
  631. package/dist/esm/sdk/clientshortcuts.js.map +1 -1
  632. package/dist/esm/sdk/collections.d.ts +14 -3
  633. package/dist/esm/sdk/collections.d.ts.map +1 -1
  634. package/dist/esm/sdk/collections.js +20 -4
  635. package/dist/esm/sdk/collections.js.map +1 -1
  636. package/dist/esm/sdk/datasource.d.ts +0 -9
  637. package/dist/esm/sdk/datasource.d.ts.map +1 -1
  638. package/dist/esm/sdk/datasource.js +2 -14
  639. package/dist/esm/sdk/datasource.js.map +1 -1
  640. package/dist/esm/sdk/datasources.d.ts +7 -3
  641. package/dist/esm/sdk/datasources.d.ts.map +1 -1
  642. package/dist/esm/sdk/datasources.js +10 -4
  643. package/dist/esm/sdk/datasources.js.map +1 -1
  644. package/dist/esm/sdk/indexing.d.ts +7 -7
  645. package/dist/esm/sdk/indexing.d.ts.map +1 -1
  646. package/dist/esm/sdk/indexing.js +8 -8
  647. package/dist/esm/sdk/indexing.js.map +1 -1
  648. package/dist/esm/sdk/indexingdocuments.d.ts +49 -0
  649. package/dist/esm/sdk/indexingdocuments.d.ts.map +1 -1
  650. package/dist/esm/sdk/indexingdocuments.js +64 -0
  651. package/dist/esm/sdk/indexingdocuments.js.map +1 -1
  652. package/dist/esm/sdk/indexingpeople.d.ts +20 -0
  653. package/dist/esm/sdk/indexingpeople.d.ts.map +1 -1
  654. package/dist/esm/sdk/indexingpeople.js +26 -0
  655. package/dist/esm/sdk/indexingpeople.js.map +1 -1
  656. package/dist/esm/sdk/indexingshortcuts.d.ts +7 -0
  657. package/dist/esm/sdk/indexingshortcuts.d.ts.map +1 -1
  658. package/dist/esm/sdk/indexingshortcuts.js +10 -0
  659. package/dist/esm/sdk/indexingshortcuts.js.map +1 -1
  660. package/dist/esm/sdk/permissions.d.ts +89 -0
  661. package/dist/esm/sdk/permissions.d.ts.map +1 -0
  662. package/dist/esm/sdk/permissions.js +128 -0
  663. package/dist/esm/sdk/permissions.js.map +1 -0
  664. package/dist/esm/sdk/sdk.d.ts +0 -6
  665. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  666. package/dist/esm/sdk/sdk.js +0 -8
  667. package/dist/esm/sdk/sdk.js.map +1 -1
  668. package/dist/esm/sdk/verification.d.ts +14 -0
  669. package/dist/esm/sdk/verification.d.ts.map +1 -1
  670. package/dist/esm/sdk/verification.js +22 -2
  671. package/dist/esm/sdk/verification.js.map +1 -1
  672. package/docs/sdks/admin/README.md +1 -155
  673. package/docs/sdks/adminsearch/README.md +520 -0
  674. package/docs/sdks/agents/README.md +182 -0
  675. package/docs/sdks/announcements/README.md +2 -2
  676. package/docs/sdks/answers/README.md +30 -6
  677. package/docs/sdks/chat/README.md +382 -0
  678. package/docs/sdks/clientdocuments/README.md +188 -0
  679. package/docs/sdks/clientsearch/README.md +476 -20
  680. package/docs/sdks/clientshortcuts/README.md +248 -120
  681. package/docs/sdks/collections/README.md +210 -12
  682. package/docs/sdks/datasource/README.md +6 -6
  683. package/docs/sdks/datasources/README.md +94 -0
  684. package/docs/sdks/indexingdocuments/README.md +523 -0
  685. package/docs/sdks/indexingpeople/README.md +198 -0
  686. package/docs/sdks/indexingshortcuts/README.md +106 -0
  687. package/docs/sdks/insights/README.md +2 -4
  688. package/docs/sdks/messages/README.md +2 -4
  689. package/docs/sdks/permissions/README.md +1208 -0
  690. package/docs/sdks/verification/README.md +190 -6
  691. package/jsr.json +1 -1
  692. package/package.json +1 -1
  693. package/src/__tests__/activity.test.ts +17 -0
  694. package/src/__tests__/adminsearch.test.ts +231 -0
  695. package/src/__tests__/agents.test.ts +2 -2
  696. package/src/__tests__/announcements.test.ts +1 -1
  697. package/src/__tests__/answers.test.ts +15 -3
  698. package/src/__tests__/chat.test.ts +1914 -267
  699. package/src/__tests__/clientdocuments.test.ts +18 -1
  700. package/src/__tests__/clientsearch.test.ts +394 -0
  701. package/src/__tests__/clientshortcuts.test.ts +17 -8
  702. package/src/__tests__/collections.test.ts +12 -9
  703. package/src/__tests__/datasource.test.ts +11 -0
  704. package/src/__tests__/datasources.test.ts +1 -1
  705. package/src/__tests__/indexingdocuments.test.ts +57 -1
  706. package/src/__tests__/indexingpeople.test.ts +38 -0
  707. package/src/__tests__/insights.test.ts +1 -2
  708. package/src/__tests__/messages.test.ts +1 -2
  709. package/src/__tests__/search.test.ts +0 -249
  710. package/src/__tests__/verification.test.ts +1 -1
  711. package/src/funcs/clientAdminSearchQuery.ts +165 -0
  712. package/src/funcs/clientAgentsRetrieveInputs.ts +170 -0
  713. package/src/funcs/clientAgentsRun.ts +168 -0
  714. package/src/funcs/clientChatDeleteFiles.ts +171 -0
  715. package/src/funcs/clientChatRetrieveApplication.ts +170 -0
  716. package/src/funcs/clientChatRetrieveFiles.ts +170 -0
  717. package/src/funcs/clientChatUploadFiles.ts +169 -0
  718. package/src/funcs/clientCollectionsDeleteItem.ts +155 -0
  719. package/src/funcs/clientCollectionsUpdateItem.ts +154 -0
  720. package/src/funcs/clientDocumentsRetrievePermissions.ts +154 -0
  721. package/src/funcs/clientDocumentsSummarize.ts +154 -0
  722. package/src/funcs/clientSearchRetrieveFeed.ts +154 -0
  723. package/src/funcs/clientShortcutsCreate.ts +154 -0
  724. package/src/funcs/clientVerificationVerify.ts +154 -0
  725. package/src/funcs/indexingDatasourceStatus.ts +173 -0
  726. package/src/funcs/indexingDatasourcesRetrieveConfig.ts +155 -0
  727. package/src/funcs/indexingDocumentsCheckAccess.ts +157 -0
  728. package/src/funcs/indexingDocumentsCount.ts +158 -0
  729. package/src/funcs/indexingDocumentsDebug.ts +180 -0
  730. package/src/funcs/indexingDocumentsDebugMany.ts +180 -0
  731. package/src/funcs/indexingDocumentsStatus.ts +158 -0
  732. package/src/funcs/indexingPeopleCount.ts +158 -0
  733. package/src/funcs/indexingPeopleDebug.ts +177 -0
  734. package/src/funcs/indexingShortcutsUpload.ts +155 -0
  735. package/src/lib/config.ts +2 -2
  736. package/src/models/components/collectionitem.ts +2 -2
  737. package/src/models/components/documentmetadata.ts +2 -2
  738. package/src/models/components/index.ts +1 -0
  739. package/src/models/components/indexingshortcut.ts +125 -0
  740. package/src/models/components/shortcut.ts +139 -30
  741. package/src/models/components/structuredresult.ts +2 -2
  742. package/src/models/components/uploadshortcutsrequest.ts +9 -9
  743. package/src/react-query/clientAdminSearchQuery.ts +88 -0
  744. package/src/react-query/clientAgentsRetrieveInputs.ts +92 -0
  745. package/src/react-query/clientAgentsRun.ts +91 -0
  746. package/src/react-query/clientChatDeleteFiles.ts +91 -0
  747. package/src/react-query/clientChatRetrieveApplication.ts +92 -0
  748. package/src/react-query/clientChatRetrieveFiles.ts +92 -0
  749. package/src/react-query/clientChatUploadFiles.ts +92 -0
  750. package/src/react-query/clientCollectionsDeleteItem.ts +89 -0
  751. package/src/react-query/clientCollectionsUpdateItem.ts +89 -0
  752. package/src/react-query/clientDocumentsRetrievePermissions.ts +89 -0
  753. package/src/react-query/clientDocumentsSummarize.ts +88 -0
  754. package/src/react-query/clientSearchRetrieveFeed.ts +88 -0
  755. package/src/react-query/clientShortcutsCreate.ts +89 -0
  756. package/src/react-query/clientVerificationVerify.ts +88 -0
  757. package/src/react-query/index.ts +24 -24
  758. package/src/react-query/indexingDatasourceStatus.ts +91 -0
  759. package/src/react-query/indexingDatasourcesRetrieveConfig.ts +89 -0
  760. package/src/react-query/indexingDocumentsCheckAccess.ts +91 -0
  761. package/src/react-query/indexingDocumentsCount.ts +93 -0
  762. package/src/react-query/indexingDocumentsDebug.ts +94 -0
  763. package/src/react-query/indexingDocumentsDebugMany.ts +94 -0
  764. package/src/react-query/indexingDocumentsStatus.ts +93 -0
  765. package/src/react-query/indexingPeopleCount.ts +92 -0
  766. package/src/react-query/indexingPeopleDebug.ts +93 -0
  767. package/src/react-query/indexingShortcutsUpload.ts +88 -0
  768. package/src/sdk/admin.ts +5 -19
  769. package/src/sdk/adminsearch.ts +27 -0
  770. package/src/sdk/agents.ts +38 -4
  771. package/src/sdk/chat.ts +80 -12
  772. package/src/sdk/client.ts +10 -10
  773. package/src/sdk/clientdocuments.ts +34 -4
  774. package/src/sdk/clientsearch.ts +16 -10
  775. package/src/sdk/clientshortcuts.ts +18 -18
  776. package/src/sdk/collections.ts +36 -6
  777. package/src/sdk/datasource.ts +2 -20
  778. package/src/sdk/datasources.ts +18 -6
  779. package/src/sdk/indexing.ts +13 -13
  780. package/src/sdk/indexingdocuments.ts +108 -0
  781. package/src/sdk/indexingpeople.ts +44 -0
  782. package/src/sdk/indexingshortcuts.ts +18 -0
  783. package/src/sdk/permissions.ts +225 -0
  784. package/src/sdk/sdk.ts +0 -12
  785. package/src/sdk/verification.ts +38 -2
  786. package/dist/commonjs/__tests__/activities.test.d.ts +0 -2
  787. package/dist/commonjs/__tests__/activities.test.d.ts.map +0 -1
  788. package/dist/commonjs/__tests__/activities.test.js +0 -23
  789. package/dist/commonjs/__tests__/activities.test.js.map +0 -1
  790. package/dist/commonjs/__tests__/people.test.d.ts +0 -2
  791. package/dist/commonjs/__tests__/people.test.d.ts.map +0 -1
  792. package/dist/commonjs/__tests__/people.test.js +0 -18
  793. package/dist/commonjs/__tests__/people.test.js.map +0 -1
  794. package/dist/commonjs/__tests__/summarize.test.d.ts +0 -2
  795. package/dist/commonjs/__tests__/summarize.test.d.ts.map +0 -1
  796. package/dist/commonjs/__tests__/summarize.test.js +0 -24
  797. package/dist/commonjs/__tests__/summarize.test.js.map +0 -1
  798. package/dist/commonjs/__tests__/troubleshooting.test.d.ts +0 -2
  799. package/dist/commonjs/__tests__/troubleshooting.test.d.ts.map +0 -1
  800. package/dist/commonjs/__tests__/troubleshooting.test.js +0 -65
  801. package/dist/commonjs/__tests__/troubleshooting.test.js.map +0 -1
  802. package/dist/esm/__tests__/activities.test.d.ts +0 -2
  803. package/dist/esm/__tests__/activities.test.d.ts.map +0 -1
  804. package/dist/esm/__tests__/activities.test.js +0 -21
  805. package/dist/esm/__tests__/activities.test.js.map +0 -1
  806. package/dist/esm/__tests__/people.test.d.ts +0 -2
  807. package/dist/esm/__tests__/people.test.d.ts.map +0 -1
  808. package/dist/esm/__tests__/people.test.js +0 -16
  809. package/dist/esm/__tests__/people.test.js.map +0 -1
  810. package/dist/esm/__tests__/summarize.test.d.ts +0 -2
  811. package/dist/esm/__tests__/summarize.test.d.ts.map +0 -1
  812. package/dist/esm/__tests__/summarize.test.js +0 -22
  813. package/dist/esm/__tests__/summarize.test.js.map +0 -1
  814. package/dist/esm/__tests__/troubleshooting.test.d.ts +0 -2
  815. package/dist/esm/__tests__/troubleshooting.test.d.ts.map +0 -1
  816. package/dist/esm/__tests__/troubleshooting.test.js +0 -63
  817. package/dist/esm/__tests__/troubleshooting.test.js.map +0 -1
  818. package/src/__tests__/activities.test.ts +0 -24
  819. package/src/__tests__/people.test.ts +0 -21
  820. package/src/__tests__/summarize.test.ts +0 -25
  821. package/src/__tests__/troubleshooting.test.ts +0 -86
@@ -10,6 +10,10 @@
10
10
  * [delete](#delete) - Deletes saved Chats
11
11
  * [retrieve](#retrieve) - Retrieves a Chat
12
12
  * [list](#list) - Retrieves all saved Chats
13
+ * [retrieveApplication](#retrieveapplication) - Gets the metadata for a custom Chat application
14
+ * [uploadFiles](#uploadfiles) - Upload files for Chat.
15
+ * [retrieveFiles](#retrievefiles) - Get files uploaded by a user for Chat.
16
+ * [deleteFiles](#deletefiles) - Delete files uploaded by a user for chat.
13
17
  * [createStream](#createstream) - Chat
14
18
 
15
19
  ## create
@@ -490,6 +494,384 @@ import {
490
494
  | ----------------- | ----------------- | ----------------- |
491
495
  | errors.GleanError | 4XX, 5XX | \*/\* |
492
496
 
497
+ ## retrieveApplication
498
+
499
+ Gets the Chat application details for the specified application ID.
500
+
501
+ ### Example Usage
502
+
503
+ ```typescript
504
+ import { Glean } from "@gleanwork/api-client";
505
+
506
+ const glean = new Glean({
507
+ bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
508
+ });
509
+
510
+ async function run() {
511
+ const result = await glean.client.chat.retrieveApplication({
512
+ id: "<id>",
513
+ });
514
+
515
+ // Handle the result
516
+ console.log(result);
517
+ }
518
+
519
+ run();
520
+ ```
521
+
522
+ ### Standalone function
523
+
524
+ The standalone function version of this method:
525
+
526
+ ```typescript
527
+ import { GleanCore } from "@gleanwork/api-client/core.js";
528
+ import { clientChatRetrieveApplication } from "@gleanwork/api-client/funcs/clientChatRetrieveApplication.js";
529
+
530
+ // Use `GleanCore` for best tree-shaking performance.
531
+ // You can create one instance of it to use across an application.
532
+ const glean = new GleanCore({
533
+ bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
534
+ });
535
+
536
+ async function run() {
537
+ const res = await clientChatRetrieveApplication(glean, {
538
+ id: "<id>",
539
+ });
540
+
541
+ if (!res.ok) {
542
+ throw res.error;
543
+ }
544
+
545
+ const { value: result } = res;
546
+
547
+ // Handle the result
548
+ console.log(result);
549
+ }
550
+
551
+ run();
552
+ ```
553
+
554
+ ### React hooks and utilities
555
+
556
+ This method can be used in React components through the following hooks and
557
+ associated utilities.
558
+
559
+ > Check out [this guide][hook-guide] for information about each of the utilities
560
+ > below and how to get started using React hooks.
561
+
562
+ [hook-guide]: ../../../REACT_QUERY.md
563
+
564
+ ```tsx
565
+ import {
566
+ // Mutation hook for triggering the API call.
567
+ useClientChatRetrieveApplicationMutation
568
+ } from "@gleanwork/api-client/react-query/clientChatRetrieveApplication.js";
569
+ ```
570
+
571
+ ### Parameters
572
+
573
+ | Parameter | Type | Required | Description |
574
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
575
+ | `getChatApplicationRequest` | [components.GetChatApplicationRequest](../../models/components/getchatapplicationrequest.md) | :heavy_check_mark: | N/A |
576
+ | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. |
577
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
578
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
579
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
580
+
581
+ ### Response
582
+
583
+ **Promise\<[components.GetChatApplicationResponse](../../models/components/getchatapplicationresponse.md)\>**
584
+
585
+ ### Errors
586
+
587
+ | Error Type | Status Code | Content Type |
588
+ | ----------------- | ----------------- | ----------------- |
589
+ | errors.GleanError | 4XX, 5XX | \*/\* |
590
+
591
+ ## uploadFiles
592
+
593
+ Upload files for Chat.
594
+
595
+ ### Example Usage
596
+
597
+ ```typescript
598
+ import { Glean } from "@gleanwork/api-client";
599
+
600
+ const glean = new Glean({
601
+ bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
602
+ });
603
+
604
+ async function run() {
605
+ const result = await glean.client.chat.uploadFiles({
606
+ files: [],
607
+ });
608
+
609
+ // Handle the result
610
+ console.log(result);
611
+ }
612
+
613
+ run();
614
+ ```
615
+
616
+ ### Standalone function
617
+
618
+ The standalone function version of this method:
619
+
620
+ ```typescript
621
+ import { GleanCore } from "@gleanwork/api-client/core.js";
622
+ import { clientChatUploadFiles } from "@gleanwork/api-client/funcs/clientChatUploadFiles.js";
623
+
624
+ // Use `GleanCore` for best tree-shaking performance.
625
+ // You can create one instance of it to use across an application.
626
+ const glean = new GleanCore({
627
+ bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
628
+ });
629
+
630
+ async function run() {
631
+ const res = await clientChatUploadFiles(glean, {
632
+ files: [],
633
+ });
634
+
635
+ if (!res.ok) {
636
+ throw res.error;
637
+ }
638
+
639
+ const { value: result } = res;
640
+
641
+ // Handle the result
642
+ console.log(result);
643
+ }
644
+
645
+ run();
646
+ ```
647
+
648
+ ### React hooks and utilities
649
+
650
+ This method can be used in React components through the following hooks and
651
+ associated utilities.
652
+
653
+ > Check out [this guide][hook-guide] for information about each of the utilities
654
+ > below and how to get started using React hooks.
655
+
656
+ [hook-guide]: ../../../REACT_QUERY.md
657
+
658
+ ```tsx
659
+ import {
660
+ // Mutation hook for triggering the API call.
661
+ useClientChatUploadFilesMutation
662
+ } from "@gleanwork/api-client/react-query/clientChatUploadFiles.js";
663
+ ```
664
+
665
+ ### Parameters
666
+
667
+ | Parameter | Type | Required | Description |
668
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
669
+ | `uploadChatFilesRequest` | [components.UploadChatFilesRequest](../../models/components/uploadchatfilesrequest.md) | :heavy_check_mark: | N/A |
670
+ | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. |
671
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
672
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
673
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
674
+
675
+ ### Response
676
+
677
+ **Promise\<[components.UploadChatFilesResponse](../../models/components/uploadchatfilesresponse.md)\>**
678
+
679
+ ### Errors
680
+
681
+ | Error Type | Status Code | Content Type |
682
+ | ----------------- | ----------------- | ----------------- |
683
+ | errors.GleanError | 4XX, 5XX | \*/\* |
684
+
685
+ ## retrieveFiles
686
+
687
+ Get files uploaded by a user for Chat.
688
+
689
+ ### Example Usage
690
+
691
+ ```typescript
692
+ import { Glean } from "@gleanwork/api-client";
693
+
694
+ const glean = new Glean({
695
+ bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
696
+ });
697
+
698
+ async function run() {
699
+ const result = await glean.client.chat.retrieveFiles({
700
+ fileIds: [],
701
+ });
702
+
703
+ // Handle the result
704
+ console.log(result);
705
+ }
706
+
707
+ run();
708
+ ```
709
+
710
+ ### Standalone function
711
+
712
+ The standalone function version of this method:
713
+
714
+ ```typescript
715
+ import { GleanCore } from "@gleanwork/api-client/core.js";
716
+ import { clientChatRetrieveFiles } from "@gleanwork/api-client/funcs/clientChatRetrieveFiles.js";
717
+
718
+ // Use `GleanCore` for best tree-shaking performance.
719
+ // You can create one instance of it to use across an application.
720
+ const glean = new GleanCore({
721
+ bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
722
+ });
723
+
724
+ async function run() {
725
+ const res = await clientChatRetrieveFiles(glean, {
726
+ fileIds: [],
727
+ });
728
+
729
+ if (!res.ok) {
730
+ throw res.error;
731
+ }
732
+
733
+ const { value: result } = res;
734
+
735
+ // Handle the result
736
+ console.log(result);
737
+ }
738
+
739
+ run();
740
+ ```
741
+
742
+ ### React hooks and utilities
743
+
744
+ This method can be used in React components through the following hooks and
745
+ associated utilities.
746
+
747
+ > Check out [this guide][hook-guide] for information about each of the utilities
748
+ > below and how to get started using React hooks.
749
+
750
+ [hook-guide]: ../../../REACT_QUERY.md
751
+
752
+ ```tsx
753
+ import {
754
+ // Mutation hook for triggering the API call.
755
+ useClientChatRetrieveFilesMutation
756
+ } from "@gleanwork/api-client/react-query/clientChatRetrieveFiles.js";
757
+ ```
758
+
759
+ ### Parameters
760
+
761
+ | Parameter | Type | Required | Description |
762
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
763
+ | `getChatFilesRequest` | [components.GetChatFilesRequest](../../models/components/getchatfilesrequest.md) | :heavy_check_mark: | N/A |
764
+ | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. |
765
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
766
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
767
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
768
+
769
+ ### Response
770
+
771
+ **Promise\<[components.GetChatFilesResponse](../../models/components/getchatfilesresponse.md)\>**
772
+
773
+ ### Errors
774
+
775
+ | Error Type | Status Code | Content Type |
776
+ | ----------------- | ----------------- | ----------------- |
777
+ | errors.GleanError | 4XX, 5XX | \*/\* |
778
+
779
+ ## deleteFiles
780
+
781
+ Delete files uploaded by a user for Chat.
782
+
783
+ ### Example Usage
784
+
785
+ ```typescript
786
+ import { Glean } from "@gleanwork/api-client";
787
+
788
+ const glean = new Glean({
789
+ bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
790
+ });
791
+
792
+ async function run() {
793
+ await glean.client.chat.deleteFiles({
794
+ fileIds: [
795
+ "<value>",
796
+ ],
797
+ });
798
+
799
+
800
+ }
801
+
802
+ run();
803
+ ```
804
+
805
+ ### Standalone function
806
+
807
+ The standalone function version of this method:
808
+
809
+ ```typescript
810
+ import { GleanCore } from "@gleanwork/api-client/core.js";
811
+ import { clientChatDeleteFiles } from "@gleanwork/api-client/funcs/clientChatDeleteFiles.js";
812
+
813
+ // Use `GleanCore` for best tree-shaking performance.
814
+ // You can create one instance of it to use across an application.
815
+ const glean = new GleanCore({
816
+ bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
817
+ });
818
+
819
+ async function run() {
820
+ const res = await clientChatDeleteFiles(glean, {
821
+ fileIds: [
822
+ "<value>",
823
+ ],
824
+ });
825
+
826
+ if (!res.ok) {
827
+ throw res.error;
828
+ }
829
+
830
+ const { value: result } = res;
831
+
832
+
833
+ }
834
+
835
+ run();
836
+ ```
837
+
838
+ ### React hooks and utilities
839
+
840
+ This method can be used in React components through the following hooks and
841
+ associated utilities.
842
+
843
+ > Check out [this guide][hook-guide] for information about each of the utilities
844
+ > below and how to get started using React hooks.
845
+
846
+ [hook-guide]: ../../../REACT_QUERY.md
847
+
848
+ ```tsx
849
+ import {
850
+ // Mutation hook for triggering the API call.
851
+ useClientChatDeleteFilesMutation
852
+ } from "@gleanwork/api-client/react-query/clientChatDeleteFiles.js";
853
+ ```
854
+
855
+ ### Parameters
856
+
857
+ | Parameter | Type | Required | Description |
858
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
859
+ | `deleteChatFilesRequest` | [components.DeleteChatFilesRequest](../../models/components/deletechatfilesrequest.md) | :heavy_check_mark: | N/A |
860
+ | `timezoneOffset` | *number* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. |
861
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
862
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
863
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
864
+
865
+ ### Response
866
+
867
+ **Promise\<void\>**
868
+
869
+ ### Errors
870
+
871
+ | Error Type | Status Code | Content Type |
872
+ | ----------------- | ----------------- | ----------------- |
873
+ | errors.GleanError | 4XX, 5XX | \*/\* |
874
+
493
875
  ## createStream
494
876
 
495
877
  Have a conversation with Glean AI.
@@ -5,8 +5,99 @@
5
5
 
6
6
  ### Available Operations
7
7
 
8
+ * [retrievePermissions](#retrievepermissions) - Read document permissions
8
9
  * [retrieve](#retrieve) - Read documents
9
10
  * [retrieveByFacets](#retrievebyfacets) - Read documents by facets
11
+ * [summarize](#summarize) - Summarize documents
12
+
13
+ ## retrievePermissions
14
+
15
+ Read the emails of all users who have access to the given document.
16
+
17
+ ### Example Usage
18
+
19
+ ```typescript
20
+ import { Glean } from "@gleanwork/api-client";
21
+
22
+ const glean = new Glean({
23
+ bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
24
+ });
25
+
26
+ async function run() {
27
+ const result = await glean.client.documents.retrievePermissions({});
28
+
29
+ // Handle the result
30
+ console.log(result);
31
+ }
32
+
33
+ run();
34
+ ```
35
+
36
+ ### Standalone function
37
+
38
+ The standalone function version of this method:
39
+
40
+ ```typescript
41
+ import { GleanCore } from "@gleanwork/api-client/core.js";
42
+ import { clientDocumentsRetrievePermissions } from "@gleanwork/api-client/funcs/clientDocumentsRetrievePermissions.js";
43
+
44
+ // Use `GleanCore` for best tree-shaking performance.
45
+ // You can create one instance of it to use across an application.
46
+ const glean = new GleanCore({
47
+ bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
48
+ });
49
+
50
+ async function run() {
51
+ const res = await clientDocumentsRetrievePermissions(glean, {});
52
+
53
+ if (!res.ok) {
54
+ throw res.error;
55
+ }
56
+
57
+ const { value: result } = res;
58
+
59
+ // Handle the result
60
+ console.log(result);
61
+ }
62
+
63
+ run();
64
+ ```
65
+
66
+ ### React hooks and utilities
67
+
68
+ This method can be used in React components through the following hooks and
69
+ associated utilities.
70
+
71
+ > Check out [this guide][hook-guide] for information about each of the utilities
72
+ > below and how to get started using React hooks.
73
+
74
+ [hook-guide]: ../../../REACT_QUERY.md
75
+
76
+ ```tsx
77
+ import {
78
+ // Mutation hook for triggering the API call.
79
+ useClientDocumentsRetrievePermissionsMutation
80
+ } from "@gleanwork/api-client/react-query/clientDocumentsRetrievePermissions.js";
81
+ ```
82
+
83
+ ### Parameters
84
+
85
+ | Parameter | Type | Required | Description |
86
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
87
+ | `request` | [components.GetDocPermissionsRequest](../../models/components/getdocpermissionsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
88
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
89
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
90
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
91
+
92
+ ### Response
93
+
94
+ **Promise\<[components.GetDocPermissionsResponse](../../models/components/getdocpermissionsresponse.md)\>**
95
+
96
+ ### Errors
97
+
98
+ | Error Type | Status Code | Content Type |
99
+ | ----------------- | ----------------- | ----------------- |
100
+ | errors.GleanError | 4XX, 5XX | \*/\* |
10
101
 
11
102
  ## retrieve
12
103
 
@@ -256,6 +347,103 @@ import {
256
347
 
257
348
  ### Errors
258
349
 
350
+ | Error Type | Status Code | Content Type |
351
+ | ----------------- | ----------------- | ----------------- |
352
+ | errors.GleanError | 4XX, 5XX | \*/\* |
353
+
354
+ ## summarize
355
+
356
+ Generate an AI summary of the requested documents.
357
+
358
+ ### Example Usage
359
+
360
+ ```typescript
361
+ import { Glean } from "@gleanwork/api-client";
362
+
363
+ const glean = new Glean({
364
+ bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
365
+ });
366
+
367
+ async function run() {
368
+ const result = await glean.client.documents.summarize({
369
+ documentSpecs: [
370
+ {},
371
+ ],
372
+ });
373
+
374
+ // Handle the result
375
+ console.log(result);
376
+ }
377
+
378
+ run();
379
+ ```
380
+
381
+ ### Standalone function
382
+
383
+ The standalone function version of this method:
384
+
385
+ ```typescript
386
+ import { GleanCore } from "@gleanwork/api-client/core.js";
387
+ import { clientDocumentsSummarize } from "@gleanwork/api-client/funcs/clientDocumentsSummarize.js";
388
+
389
+ // Use `GleanCore` for best tree-shaking performance.
390
+ // You can create one instance of it to use across an application.
391
+ const glean = new GleanCore({
392
+ bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
393
+ });
394
+
395
+ async function run() {
396
+ const res = await clientDocumentsSummarize(glean, {
397
+ documentSpecs: [
398
+ {},
399
+ ],
400
+ });
401
+
402
+ if (!res.ok) {
403
+ throw res.error;
404
+ }
405
+
406
+ const { value: result } = res;
407
+
408
+ // Handle the result
409
+ console.log(result);
410
+ }
411
+
412
+ run();
413
+ ```
414
+
415
+ ### React hooks and utilities
416
+
417
+ This method can be used in React components through the following hooks and
418
+ associated utilities.
419
+
420
+ > Check out [this guide][hook-guide] for information about each of the utilities
421
+ > below and how to get started using React hooks.
422
+
423
+ [hook-guide]: ../../../REACT_QUERY.md
424
+
425
+ ```tsx
426
+ import {
427
+ // Mutation hook for triggering the API call.
428
+ useClientDocumentsSummarizeMutation
429
+ } from "@gleanwork/api-client/react-query/clientDocumentsSummarize.js";
430
+ ```
431
+
432
+ ### Parameters
433
+
434
+ | Parameter | Type | Required | Description |
435
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
436
+ | `request` | [components.SummarizeRequest](../../models/components/summarizerequest.md) | :heavy_check_mark: | The request object to use for the request. |
437
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
438
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
439
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
440
+
441
+ ### Response
442
+
443
+ **Promise\<[components.SummarizeResponse](../../models/components/summarizeresponse.md)\>**
444
+
445
+ ### Errors
446
+
259
447
  | Error Type | Status Code | Content Type |
260
448
  | ----------------- | ----------------- | ----------------- |
261
449
  | errors.GleanError | 4XX, 5XX | \*/\* |