@gleanwork/api-client 0.1.0-beta.9 → 0.3.0

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 (1267) hide show
  1. package/FUNCTIONS.md +1 -1
  2. package/LICENSE +21 -0
  3. package/README.md +105 -21
  4. package/dist/commonjs/__tests__/activity.test.js +2 -2
  5. package/dist/commonjs/__tests__/activity.test.js.map +1 -1
  6. package/dist/commonjs/__tests__/adminsearch.test.js +1784 -13
  7. package/dist/commonjs/__tests__/adminsearch.test.js.map +1 -1
  8. package/dist/commonjs/__tests__/agents.test.js +3 -3
  9. package/dist/commonjs/__tests__/agents.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/announcements.test.js +3925 -5
  11. package/dist/commonjs/__tests__/announcements.test.js.map +1 -1
  12. package/dist/commonjs/__tests__/answers.test.js +1320 -35
  13. package/dist/commonjs/__tests__/answers.test.js.map +1 -1
  14. package/dist/commonjs/__tests__/chat.test.js +19810 -1539
  15. package/dist/commonjs/__tests__/chat.test.js.map +1 -1
  16. package/dist/commonjs/__tests__/clientauthentication.test.js +1 -1
  17. package/dist/commonjs/__tests__/clientauthentication.test.js.map +1 -1
  18. package/dist/commonjs/__tests__/clientdocuments.test.js +4 -4
  19. package/dist/commonjs/__tests__/clientdocuments.test.js.map +1 -1
  20. package/dist/commonjs/__tests__/clientsearch.test.js +3852 -144
  21. package/dist/commonjs/__tests__/clientsearch.test.js.map +1 -1
  22. package/dist/commonjs/__tests__/clientshortcuts.test.js +1056 -13
  23. package/dist/commonjs/__tests__/clientshortcuts.test.js.map +1 -1
  24. package/dist/commonjs/__tests__/collections.test.js +1061 -16
  25. package/dist/commonjs/__tests__/collections.test.js.map +1 -1
  26. package/dist/commonjs/__tests__/datasources.test.js +2 -2
  27. package/dist/commonjs/__tests__/datasources.test.js.map +1 -1
  28. package/dist/commonjs/__tests__/entities.test.js +2 -2
  29. package/dist/commonjs/__tests__/entities.test.js.map +1 -1
  30. package/dist/commonjs/__tests__/indexingauthentication.test.js +1 -1
  31. package/dist/commonjs/__tests__/indexingauthentication.test.js.map +1 -1
  32. package/dist/commonjs/__tests__/indexingdocuments.test.js +8 -8
  33. package/dist/commonjs/__tests__/indexingdocuments.test.js.map +1 -1
  34. package/dist/commonjs/__tests__/indexingpeople.test.js +2 -2
  35. package/dist/commonjs/__tests__/indexingpeople.test.js.map +1 -1
  36. package/dist/commonjs/__tests__/insights.test.js +1 -1
  37. package/dist/commonjs/__tests__/insights.test.js.map +1 -1
  38. package/dist/commonjs/__tests__/messages.test.js +1 -1
  39. package/dist/commonjs/__tests__/messages.test.js.map +1 -1
  40. package/dist/commonjs/__tests__/permissions.test.js +12 -12
  41. package/dist/commonjs/__tests__/permissions.test.js.map +1 -1
  42. package/dist/commonjs/__tests__/pins.test.js +5 -5
  43. package/dist/commonjs/__tests__/pins.test.js.map +1 -1
  44. package/dist/commonjs/__tests__/search.test.js +1 -1
  45. package/dist/commonjs/__tests__/search.test.js.map +1 -1
  46. package/dist/commonjs/__tests__/verification.test.js +3 -3
  47. package/dist/commonjs/__tests__/verification.test.js.map +1 -1
  48. package/dist/commonjs/funcs/clientActivityFeedback.js +3 -3
  49. package/dist/commonjs/funcs/clientActivityFeedback.js.map +1 -1
  50. package/dist/commonjs/funcs/clientActivityReport.js +3 -3
  51. package/dist/commonjs/funcs/clientActivityReport.js.map +1 -1
  52. package/dist/commonjs/funcs/clientAgentsList.js +3 -3
  53. package/dist/commonjs/funcs/clientAgentsList.js.map +1 -1
  54. package/dist/commonjs/funcs/clientAgentsRetrieveInputs.js +3 -3
  55. package/dist/commonjs/funcs/clientAgentsRetrieveInputs.js.map +1 -1
  56. package/dist/commonjs/funcs/clientAgentsRun.js +3 -3
  57. package/dist/commonjs/funcs/clientAgentsRun.js.map +1 -1
  58. package/dist/commonjs/funcs/clientAnnouncementsCreate.js +3 -3
  59. package/dist/commonjs/funcs/clientAnnouncementsCreate.js.map +1 -1
  60. package/dist/commonjs/funcs/clientAnnouncementsDelete.js +3 -3
  61. package/dist/commonjs/funcs/clientAnnouncementsDelete.js.map +1 -1
  62. package/dist/commonjs/funcs/clientAnnouncementsUpdate.js +3 -3
  63. package/dist/commonjs/funcs/clientAnnouncementsUpdate.js.map +1 -1
  64. package/dist/commonjs/funcs/clientAnswersCreate.js +3 -3
  65. package/dist/commonjs/funcs/clientAnswersCreate.js.map +1 -1
  66. package/dist/commonjs/funcs/clientAnswersDelete.js +3 -3
  67. package/dist/commonjs/funcs/clientAnswersDelete.js.map +1 -1
  68. package/dist/commonjs/funcs/clientAnswersList.js +3 -3
  69. package/dist/commonjs/funcs/clientAnswersList.js.map +1 -1
  70. package/dist/commonjs/funcs/clientAnswersRetrieve.js +3 -3
  71. package/dist/commonjs/funcs/clientAnswersRetrieve.js.map +1 -1
  72. package/dist/commonjs/funcs/clientAnswersUpdate.js +3 -3
  73. package/dist/commonjs/funcs/clientAnswersUpdate.js.map +1 -1
  74. package/dist/commonjs/funcs/clientAuthenticationCreateToken.js +3 -3
  75. package/dist/commonjs/funcs/clientAuthenticationCreateToken.js.map +1 -1
  76. package/dist/commonjs/funcs/clientChatCreate.js +3 -3
  77. package/dist/commonjs/funcs/clientChatCreate.js.map +1 -1
  78. package/dist/commonjs/funcs/clientChatCreateStream.js +3 -3
  79. package/dist/commonjs/funcs/clientChatCreateStream.js.map +1 -1
  80. package/dist/commonjs/funcs/clientChatDelete.js +3 -3
  81. package/dist/commonjs/funcs/clientChatDelete.js.map +1 -1
  82. package/dist/commonjs/funcs/clientChatDeleteAll.js +3 -3
  83. package/dist/commonjs/funcs/clientChatDeleteAll.js.map +1 -1
  84. package/dist/commonjs/funcs/clientChatDeleteFiles.js +3 -3
  85. package/dist/commonjs/funcs/clientChatDeleteFiles.js.map +1 -1
  86. package/dist/commonjs/funcs/clientChatList.js +3 -3
  87. package/dist/commonjs/funcs/clientChatList.js.map +1 -1
  88. package/dist/commonjs/funcs/clientChatRetrieve.js +3 -3
  89. package/dist/commonjs/funcs/clientChatRetrieve.js.map +1 -1
  90. package/dist/commonjs/funcs/clientChatRetrieveApplication.js +3 -3
  91. package/dist/commonjs/funcs/clientChatRetrieveApplication.js.map +1 -1
  92. package/dist/commonjs/funcs/clientChatRetrieveFiles.js +3 -3
  93. package/dist/commonjs/funcs/clientChatRetrieveFiles.js.map +1 -1
  94. package/dist/commonjs/funcs/clientChatUploadFiles.js +3 -3
  95. package/dist/commonjs/funcs/clientChatUploadFiles.js.map +1 -1
  96. package/dist/commonjs/funcs/clientCollectionsAddItems.js +3 -3
  97. package/dist/commonjs/funcs/clientCollectionsAddItems.js.map +1 -1
  98. package/dist/commonjs/funcs/clientCollectionsCreate.js +3 -3
  99. package/dist/commonjs/funcs/clientCollectionsCreate.js.map +1 -1
  100. package/dist/commonjs/funcs/clientCollectionsDelete.js +3 -3
  101. package/dist/commonjs/funcs/clientCollectionsDelete.js.map +1 -1
  102. package/dist/commonjs/funcs/clientCollectionsDeleteItem.js +3 -3
  103. package/dist/commonjs/funcs/clientCollectionsDeleteItem.js.map +1 -1
  104. package/dist/commonjs/funcs/clientCollectionsList.js +3 -3
  105. package/dist/commonjs/funcs/clientCollectionsList.js.map +1 -1
  106. package/dist/commonjs/funcs/clientCollectionsRetrieve.js +3 -3
  107. package/dist/commonjs/funcs/clientCollectionsRetrieve.js.map +1 -1
  108. package/dist/commonjs/funcs/clientCollectionsUpdate.js +3 -3
  109. package/dist/commonjs/funcs/clientCollectionsUpdate.js.map +1 -1
  110. package/dist/commonjs/funcs/clientCollectionsUpdateItem.js +3 -3
  111. package/dist/commonjs/funcs/clientCollectionsUpdateItem.js.map +1 -1
  112. package/dist/commonjs/funcs/clientDocumentsRetrieve.js +3 -3
  113. package/dist/commonjs/funcs/clientDocumentsRetrieve.js.map +1 -1
  114. package/dist/commonjs/funcs/clientDocumentsRetrieveByFacets.js +3 -3
  115. package/dist/commonjs/funcs/clientDocumentsRetrieveByFacets.js.map +1 -1
  116. package/dist/commonjs/funcs/clientDocumentsRetrievePermissions.js +3 -3
  117. package/dist/commonjs/funcs/clientDocumentsRetrievePermissions.js.map +1 -1
  118. package/dist/commonjs/funcs/clientDocumentsSummarize.js +3 -3
  119. package/dist/commonjs/funcs/clientDocumentsSummarize.js.map +1 -1
  120. package/dist/commonjs/funcs/clientEntitiesList.js +3 -3
  121. package/dist/commonjs/funcs/clientEntitiesList.js.map +1 -1
  122. package/dist/commonjs/funcs/clientEntitiesReadPeople.js +3 -3
  123. package/dist/commonjs/funcs/clientEntitiesReadPeople.js.map +1 -1
  124. package/dist/commonjs/funcs/clientInsightsRetrieve.js +3 -3
  125. package/dist/commonjs/funcs/clientInsightsRetrieve.js.map +1 -1
  126. package/dist/commonjs/funcs/clientMessagesRetrieve.js +3 -3
  127. package/dist/commonjs/funcs/clientMessagesRetrieve.js.map +1 -1
  128. package/dist/commonjs/funcs/clientPinsCreate.js +3 -3
  129. package/dist/commonjs/funcs/clientPinsCreate.js.map +1 -1
  130. package/dist/commonjs/funcs/clientPinsList.js +3 -3
  131. package/dist/commonjs/funcs/clientPinsList.js.map +1 -1
  132. package/dist/commonjs/funcs/clientPinsRemove.js +3 -3
  133. package/dist/commonjs/funcs/clientPinsRemove.js.map +1 -1
  134. package/dist/commonjs/funcs/clientPinsRetrieve.js +3 -3
  135. package/dist/commonjs/funcs/clientPinsRetrieve.js.map +1 -1
  136. package/dist/commonjs/funcs/clientPinsUpdate.js +3 -3
  137. package/dist/commonjs/funcs/clientPinsUpdate.js.map +1 -1
  138. package/dist/commonjs/funcs/clientSearchAutocomplete.js +3 -3
  139. package/dist/commonjs/funcs/clientSearchAutocomplete.js.map +1 -1
  140. package/dist/commonjs/funcs/clientSearchQuery.js +3 -3
  141. package/dist/commonjs/funcs/clientSearchQuery.js.map +1 -1
  142. package/dist/commonjs/funcs/clientSearchQueryAsAdmin.js +3 -3
  143. package/dist/commonjs/funcs/clientSearchQueryAsAdmin.js.map +1 -1
  144. package/dist/commonjs/funcs/clientSearchRecommendations.js +3 -3
  145. package/dist/commonjs/funcs/clientSearchRecommendations.js.map +1 -1
  146. package/dist/commonjs/funcs/clientSearchRetrieveFeed.js +3 -3
  147. package/dist/commonjs/funcs/clientSearchRetrieveFeed.js.map +1 -1
  148. package/dist/commonjs/funcs/clientShortcutsCreate.js +3 -3
  149. package/dist/commonjs/funcs/clientShortcutsCreate.js.map +1 -1
  150. package/dist/commonjs/funcs/clientShortcutsDelete.js +3 -3
  151. package/dist/commonjs/funcs/clientShortcutsDelete.js.map +1 -1
  152. package/dist/commonjs/funcs/clientShortcutsList.js +3 -3
  153. package/dist/commonjs/funcs/clientShortcutsList.js.map +1 -1
  154. package/dist/commonjs/funcs/clientShortcutsRetrieve.js +3 -3
  155. package/dist/commonjs/funcs/clientShortcutsRetrieve.js.map +1 -1
  156. package/dist/commonjs/funcs/clientShortcutsUpdate.js +3 -3
  157. package/dist/commonjs/funcs/clientShortcutsUpdate.js.map +1 -1
  158. package/dist/commonjs/funcs/clientVerificationAddReminder.js +3 -3
  159. package/dist/commonjs/funcs/clientVerificationAddReminder.js.map +1 -1
  160. package/dist/commonjs/funcs/clientVerificationList.js +3 -3
  161. package/dist/commonjs/funcs/clientVerificationList.js.map +1 -1
  162. package/dist/commonjs/funcs/clientVerificationVerify.js +3 -3
  163. package/dist/commonjs/funcs/clientVerificationVerify.js.map +1 -1
  164. package/dist/commonjs/funcs/indexingAuthenticationRotateToken.js +3 -3
  165. package/dist/commonjs/funcs/indexingAuthenticationRotateToken.js.map +1 -1
  166. package/dist/commonjs/funcs/indexingDatasourceStatus.js +3 -3
  167. package/dist/commonjs/funcs/indexingDatasourceStatus.js.map +1 -1
  168. package/dist/commonjs/funcs/indexingDatasourcesAdd.js +3 -3
  169. package/dist/commonjs/funcs/indexingDatasourcesAdd.js.map +1 -1
  170. package/dist/commonjs/funcs/indexingDatasourcesRetrieveConfig.js +3 -3
  171. package/dist/commonjs/funcs/indexingDatasourcesRetrieveConfig.js.map +1 -1
  172. package/dist/commonjs/funcs/indexingDocumentsAddOrUpdate.js +3 -3
  173. package/dist/commonjs/funcs/indexingDocumentsAddOrUpdate.js.map +1 -1
  174. package/dist/commonjs/funcs/indexingDocumentsBulkIndex.js +3 -3
  175. package/dist/commonjs/funcs/indexingDocumentsBulkIndex.js.map +1 -1
  176. package/dist/commonjs/funcs/indexingDocumentsCheckAccess.js +3 -3
  177. package/dist/commonjs/funcs/indexingDocumentsCheckAccess.js.map +1 -1
  178. package/dist/commonjs/funcs/indexingDocumentsCount.js +3 -3
  179. package/dist/commonjs/funcs/indexingDocumentsCount.js.map +1 -1
  180. package/dist/commonjs/funcs/indexingDocumentsDebug.js +3 -3
  181. package/dist/commonjs/funcs/indexingDocumentsDebug.js.map +1 -1
  182. package/dist/commonjs/funcs/indexingDocumentsDebugMany.js +3 -3
  183. package/dist/commonjs/funcs/indexingDocumentsDebugMany.js.map +1 -1
  184. package/dist/commonjs/funcs/indexingDocumentsDelete.js +3 -3
  185. package/dist/commonjs/funcs/indexingDocumentsDelete.js.map +1 -1
  186. package/dist/commonjs/funcs/indexingDocumentsIndex.js +3 -3
  187. package/dist/commonjs/funcs/indexingDocumentsIndex.js.map +1 -1
  188. package/dist/commonjs/funcs/indexingDocumentsProcessAll.js +3 -3
  189. package/dist/commonjs/funcs/indexingDocumentsProcessAll.js.map +1 -1
  190. package/dist/commonjs/funcs/indexingDocumentsStatus.js +3 -3
  191. package/dist/commonjs/funcs/indexingDocumentsStatus.js.map +1 -1
  192. package/dist/commonjs/funcs/indexingPeopleBulkIndex.js +3 -3
  193. package/dist/commonjs/funcs/indexingPeopleBulkIndex.js.map +1 -1
  194. package/dist/commonjs/funcs/indexingPeopleBulkIndexTeams.js +3 -3
  195. package/dist/commonjs/funcs/indexingPeopleBulkIndexTeams.js.map +1 -1
  196. package/dist/commonjs/funcs/indexingPeopleCount.js +3 -3
  197. package/dist/commonjs/funcs/indexingPeopleCount.js.map +1 -1
  198. package/dist/commonjs/funcs/indexingPeopleDebug.js +3 -3
  199. package/dist/commonjs/funcs/indexingPeopleDebug.js.map +1 -1
  200. package/dist/commonjs/funcs/indexingPeopleDelete.js +3 -3
  201. package/dist/commonjs/funcs/indexingPeopleDelete.js.map +1 -1
  202. package/dist/commonjs/funcs/indexingPeopleDeleteTeam.js +3 -3
  203. package/dist/commonjs/funcs/indexingPeopleDeleteTeam.js.map +1 -1
  204. package/dist/commonjs/funcs/indexingPeopleIndex.js +3 -3
  205. package/dist/commonjs/funcs/indexingPeopleIndex.js.map +1 -1
  206. package/dist/commonjs/funcs/indexingPeopleIndexTeam.js +3 -3
  207. package/dist/commonjs/funcs/indexingPeopleIndexTeam.js.map +1 -1
  208. package/dist/commonjs/funcs/indexingPeopleProcessAllEmployeesAndTeams.js +3 -3
  209. package/dist/commonjs/funcs/indexingPeopleProcessAllEmployeesAndTeams.js.map +1 -1
  210. package/dist/commonjs/funcs/indexingPermissionsAuthorizeBetaUsers.js +3 -3
  211. package/dist/commonjs/funcs/indexingPermissionsAuthorizeBetaUsers.js.map +1 -1
  212. package/dist/commonjs/funcs/indexingPermissionsBulkIndexGroups.js +3 -3
  213. package/dist/commonjs/funcs/indexingPermissionsBulkIndexGroups.js.map +1 -1
  214. package/dist/commonjs/funcs/indexingPermissionsBulkIndexMemberships.js +3 -3
  215. package/dist/commonjs/funcs/indexingPermissionsBulkIndexMemberships.js.map +1 -1
  216. package/dist/commonjs/funcs/indexingPermissionsBulkIndexUsers.js +3 -3
  217. package/dist/commonjs/funcs/indexingPermissionsBulkIndexUsers.js.map +1 -1
  218. package/dist/commonjs/funcs/indexingPermissionsDeleteGroup.js +3 -3
  219. package/dist/commonjs/funcs/indexingPermissionsDeleteGroup.js.map +1 -1
  220. package/dist/commonjs/funcs/indexingPermissionsDeleteMembership.js +3 -3
  221. package/dist/commonjs/funcs/indexingPermissionsDeleteMembership.js.map +1 -1
  222. package/dist/commonjs/funcs/indexingPermissionsDeleteUser.js +3 -3
  223. package/dist/commonjs/funcs/indexingPermissionsDeleteUser.js.map +1 -1
  224. package/dist/commonjs/funcs/indexingPermissionsIndexGroup.js +3 -3
  225. package/dist/commonjs/funcs/indexingPermissionsIndexGroup.js.map +1 -1
  226. package/dist/commonjs/funcs/indexingPermissionsIndexMembership.js +3 -3
  227. package/dist/commonjs/funcs/indexingPermissionsIndexMembership.js.map +1 -1
  228. package/dist/commonjs/funcs/indexingPermissionsIndexUser.js +3 -3
  229. package/dist/commonjs/funcs/indexingPermissionsIndexUser.js.map +1 -1
  230. package/dist/commonjs/funcs/indexingPermissionsProcessMemberships.js +3 -3
  231. package/dist/commonjs/funcs/indexingPermissionsProcessMemberships.js.map +1 -1
  232. package/dist/commonjs/funcs/indexingPermissionsUpdatePermissions.js +3 -3
  233. package/dist/commonjs/funcs/indexingPermissionsUpdatePermissions.js.map +1 -1
  234. package/dist/commonjs/funcs/indexingShortcutsBulkIndex.js +3 -3
  235. package/dist/commonjs/funcs/indexingShortcutsBulkIndex.js.map +1 -1
  236. package/dist/commonjs/funcs/indexingShortcutsUpload.js +3 -3
  237. package/dist/commonjs/funcs/indexingShortcutsUpload.js.map +1 -1
  238. package/dist/commonjs/lib/config.d.ts +7 -7
  239. package/dist/commonjs/lib/config.d.ts.map +1 -1
  240. package/dist/commonjs/lib/config.js +5 -5
  241. package/dist/commonjs/lib/config.js.map +1 -1
  242. package/dist/commonjs/lib/env.d.ts +1 -1
  243. package/dist/commonjs/lib/env.d.ts.map +1 -1
  244. package/dist/commonjs/lib/env.js +1 -1
  245. package/dist/commonjs/lib/env.js.map +1 -1
  246. package/dist/commonjs/lib/security.js +1 -1
  247. package/dist/commonjs/lib/security.js.map +1 -1
  248. package/dist/commonjs/models/components/calendarevent.d.ts +5 -0
  249. package/dist/commonjs/models/components/calendarevent.d.ts.map +1 -1
  250. package/dist/commonjs/models/components/calendarevent.js +2 -0
  251. package/dist/commonjs/models/components/calendarevent.js.map +1 -1
  252. package/dist/commonjs/models/components/security.d.ts +2 -2
  253. package/dist/commonjs/models/components/security.d.ts.map +1 -1
  254. package/dist/commonjs/models/components/security.js +4 -4
  255. package/dist/commonjs/models/components/security.js.map +1 -1
  256. package/dist/esm/__tests__/activity.test.js +2 -2
  257. package/dist/esm/__tests__/activity.test.js.map +1 -1
  258. package/dist/esm/__tests__/adminsearch.test.js +1784 -13
  259. package/dist/esm/__tests__/adminsearch.test.js.map +1 -1
  260. package/dist/esm/__tests__/agents.test.js +3 -3
  261. package/dist/esm/__tests__/agents.test.js.map +1 -1
  262. package/dist/esm/__tests__/announcements.test.js +3925 -5
  263. package/dist/esm/__tests__/announcements.test.js.map +1 -1
  264. package/dist/esm/__tests__/answers.test.js +1320 -35
  265. package/dist/esm/__tests__/answers.test.js.map +1 -1
  266. package/dist/esm/__tests__/chat.test.js +19810 -1539
  267. package/dist/esm/__tests__/chat.test.js.map +1 -1
  268. package/dist/esm/__tests__/clientauthentication.test.js +1 -1
  269. package/dist/esm/__tests__/clientauthentication.test.js.map +1 -1
  270. package/dist/esm/__tests__/clientdocuments.test.js +4 -4
  271. package/dist/esm/__tests__/clientdocuments.test.js.map +1 -1
  272. package/dist/esm/__tests__/clientsearch.test.js +3852 -144
  273. package/dist/esm/__tests__/clientsearch.test.js.map +1 -1
  274. package/dist/esm/__tests__/clientshortcuts.test.js +1056 -13
  275. package/dist/esm/__tests__/clientshortcuts.test.js.map +1 -1
  276. package/dist/esm/__tests__/collections.test.js +1061 -16
  277. package/dist/esm/__tests__/collections.test.js.map +1 -1
  278. package/dist/esm/__tests__/datasources.test.js +2 -2
  279. package/dist/esm/__tests__/datasources.test.js.map +1 -1
  280. package/dist/esm/__tests__/entities.test.js +2 -2
  281. package/dist/esm/__tests__/entities.test.js.map +1 -1
  282. package/dist/esm/__tests__/indexingauthentication.test.js +1 -1
  283. package/dist/esm/__tests__/indexingauthentication.test.js.map +1 -1
  284. package/dist/esm/__tests__/indexingdocuments.test.js +8 -8
  285. package/dist/esm/__tests__/indexingdocuments.test.js.map +1 -1
  286. package/dist/esm/__tests__/indexingpeople.test.js +2 -2
  287. package/dist/esm/__tests__/indexingpeople.test.js.map +1 -1
  288. package/dist/esm/__tests__/insights.test.js +1 -1
  289. package/dist/esm/__tests__/insights.test.js.map +1 -1
  290. package/dist/esm/__tests__/messages.test.js +1 -1
  291. package/dist/esm/__tests__/messages.test.js.map +1 -1
  292. package/dist/esm/__tests__/permissions.test.js +12 -12
  293. package/dist/esm/__tests__/permissions.test.js.map +1 -1
  294. package/dist/esm/__tests__/pins.test.js +5 -5
  295. package/dist/esm/__tests__/pins.test.js.map +1 -1
  296. package/dist/esm/__tests__/search.test.js +1 -1
  297. package/dist/esm/__tests__/search.test.js.map +1 -1
  298. package/dist/esm/__tests__/verification.test.js +3 -3
  299. package/dist/esm/__tests__/verification.test.js.map +1 -1
  300. package/dist/esm/funcs/clientActivityFeedback.js +3 -3
  301. package/dist/esm/funcs/clientActivityFeedback.js.map +1 -1
  302. package/dist/esm/funcs/clientActivityReport.js +3 -3
  303. package/dist/esm/funcs/clientActivityReport.js.map +1 -1
  304. package/dist/esm/funcs/clientAgentsList.js +3 -3
  305. package/dist/esm/funcs/clientAgentsList.js.map +1 -1
  306. package/dist/esm/funcs/clientAgentsRetrieveInputs.js +3 -3
  307. package/dist/esm/funcs/clientAgentsRetrieveInputs.js.map +1 -1
  308. package/dist/esm/funcs/clientAgentsRun.js +3 -3
  309. package/dist/esm/funcs/clientAgentsRun.js.map +1 -1
  310. package/dist/esm/funcs/clientAnnouncementsCreate.js +3 -3
  311. package/dist/esm/funcs/clientAnnouncementsCreate.js.map +1 -1
  312. package/dist/esm/funcs/clientAnnouncementsDelete.js +3 -3
  313. package/dist/esm/funcs/clientAnnouncementsDelete.js.map +1 -1
  314. package/dist/esm/funcs/clientAnnouncementsUpdate.js +3 -3
  315. package/dist/esm/funcs/clientAnnouncementsUpdate.js.map +1 -1
  316. package/dist/esm/funcs/clientAnswersCreate.js +3 -3
  317. package/dist/esm/funcs/clientAnswersCreate.js.map +1 -1
  318. package/dist/esm/funcs/clientAnswersDelete.js +3 -3
  319. package/dist/esm/funcs/clientAnswersDelete.js.map +1 -1
  320. package/dist/esm/funcs/clientAnswersList.js +3 -3
  321. package/dist/esm/funcs/clientAnswersList.js.map +1 -1
  322. package/dist/esm/funcs/clientAnswersRetrieve.js +3 -3
  323. package/dist/esm/funcs/clientAnswersRetrieve.js.map +1 -1
  324. package/dist/esm/funcs/clientAnswersUpdate.js +3 -3
  325. package/dist/esm/funcs/clientAnswersUpdate.js.map +1 -1
  326. package/dist/esm/funcs/clientAuthenticationCreateToken.js +3 -3
  327. package/dist/esm/funcs/clientAuthenticationCreateToken.js.map +1 -1
  328. package/dist/esm/funcs/clientChatCreate.js +3 -3
  329. package/dist/esm/funcs/clientChatCreate.js.map +1 -1
  330. package/dist/esm/funcs/clientChatCreateStream.js +3 -3
  331. package/dist/esm/funcs/clientChatCreateStream.js.map +1 -1
  332. package/dist/esm/funcs/clientChatDelete.js +3 -3
  333. package/dist/esm/funcs/clientChatDelete.js.map +1 -1
  334. package/dist/esm/funcs/clientChatDeleteAll.js +3 -3
  335. package/dist/esm/funcs/clientChatDeleteAll.js.map +1 -1
  336. package/dist/esm/funcs/clientChatDeleteFiles.js +3 -3
  337. package/dist/esm/funcs/clientChatDeleteFiles.js.map +1 -1
  338. package/dist/esm/funcs/clientChatList.js +3 -3
  339. package/dist/esm/funcs/clientChatList.js.map +1 -1
  340. package/dist/esm/funcs/clientChatRetrieve.js +3 -3
  341. package/dist/esm/funcs/clientChatRetrieve.js.map +1 -1
  342. package/dist/esm/funcs/clientChatRetrieveApplication.js +3 -3
  343. package/dist/esm/funcs/clientChatRetrieveApplication.js.map +1 -1
  344. package/dist/esm/funcs/clientChatRetrieveFiles.js +3 -3
  345. package/dist/esm/funcs/clientChatRetrieveFiles.js.map +1 -1
  346. package/dist/esm/funcs/clientChatUploadFiles.js +3 -3
  347. package/dist/esm/funcs/clientChatUploadFiles.js.map +1 -1
  348. package/dist/esm/funcs/clientCollectionsAddItems.js +3 -3
  349. package/dist/esm/funcs/clientCollectionsAddItems.js.map +1 -1
  350. package/dist/esm/funcs/clientCollectionsCreate.js +3 -3
  351. package/dist/esm/funcs/clientCollectionsCreate.js.map +1 -1
  352. package/dist/esm/funcs/clientCollectionsDelete.js +3 -3
  353. package/dist/esm/funcs/clientCollectionsDelete.js.map +1 -1
  354. package/dist/esm/funcs/clientCollectionsDeleteItem.js +3 -3
  355. package/dist/esm/funcs/clientCollectionsDeleteItem.js.map +1 -1
  356. package/dist/esm/funcs/clientCollectionsList.js +3 -3
  357. package/dist/esm/funcs/clientCollectionsList.js.map +1 -1
  358. package/dist/esm/funcs/clientCollectionsRetrieve.js +3 -3
  359. package/dist/esm/funcs/clientCollectionsRetrieve.js.map +1 -1
  360. package/dist/esm/funcs/clientCollectionsUpdate.js +3 -3
  361. package/dist/esm/funcs/clientCollectionsUpdate.js.map +1 -1
  362. package/dist/esm/funcs/clientCollectionsUpdateItem.js +3 -3
  363. package/dist/esm/funcs/clientCollectionsUpdateItem.js.map +1 -1
  364. package/dist/esm/funcs/clientDocumentsRetrieve.js +3 -3
  365. package/dist/esm/funcs/clientDocumentsRetrieve.js.map +1 -1
  366. package/dist/esm/funcs/clientDocumentsRetrieveByFacets.js +3 -3
  367. package/dist/esm/funcs/clientDocumentsRetrieveByFacets.js.map +1 -1
  368. package/dist/esm/funcs/clientDocumentsRetrievePermissions.js +3 -3
  369. package/dist/esm/funcs/clientDocumentsRetrievePermissions.js.map +1 -1
  370. package/dist/esm/funcs/clientDocumentsSummarize.js +3 -3
  371. package/dist/esm/funcs/clientDocumentsSummarize.js.map +1 -1
  372. package/dist/esm/funcs/clientEntitiesList.js +3 -3
  373. package/dist/esm/funcs/clientEntitiesList.js.map +1 -1
  374. package/dist/esm/funcs/clientEntitiesReadPeople.js +3 -3
  375. package/dist/esm/funcs/clientEntitiesReadPeople.js.map +1 -1
  376. package/dist/esm/funcs/clientInsightsRetrieve.js +3 -3
  377. package/dist/esm/funcs/clientInsightsRetrieve.js.map +1 -1
  378. package/dist/esm/funcs/clientMessagesRetrieve.js +3 -3
  379. package/dist/esm/funcs/clientMessagesRetrieve.js.map +1 -1
  380. package/dist/esm/funcs/clientPinsCreate.js +3 -3
  381. package/dist/esm/funcs/clientPinsCreate.js.map +1 -1
  382. package/dist/esm/funcs/clientPinsList.js +3 -3
  383. package/dist/esm/funcs/clientPinsList.js.map +1 -1
  384. package/dist/esm/funcs/clientPinsRemove.js +3 -3
  385. package/dist/esm/funcs/clientPinsRemove.js.map +1 -1
  386. package/dist/esm/funcs/clientPinsRetrieve.js +3 -3
  387. package/dist/esm/funcs/clientPinsRetrieve.js.map +1 -1
  388. package/dist/esm/funcs/clientPinsUpdate.js +3 -3
  389. package/dist/esm/funcs/clientPinsUpdate.js.map +1 -1
  390. package/dist/esm/funcs/clientSearchAutocomplete.js +3 -3
  391. package/dist/esm/funcs/clientSearchAutocomplete.js.map +1 -1
  392. package/dist/esm/funcs/clientSearchQuery.js +3 -3
  393. package/dist/esm/funcs/clientSearchQuery.js.map +1 -1
  394. package/dist/esm/funcs/clientSearchQueryAsAdmin.js +3 -3
  395. package/dist/esm/funcs/clientSearchQueryAsAdmin.js.map +1 -1
  396. package/dist/esm/funcs/clientSearchRecommendations.js +3 -3
  397. package/dist/esm/funcs/clientSearchRecommendations.js.map +1 -1
  398. package/dist/esm/funcs/clientSearchRetrieveFeed.js +3 -3
  399. package/dist/esm/funcs/clientSearchRetrieveFeed.js.map +1 -1
  400. package/dist/esm/funcs/clientShortcutsCreate.js +3 -3
  401. package/dist/esm/funcs/clientShortcutsCreate.js.map +1 -1
  402. package/dist/esm/funcs/clientShortcutsDelete.js +3 -3
  403. package/dist/esm/funcs/clientShortcutsDelete.js.map +1 -1
  404. package/dist/esm/funcs/clientShortcutsList.js +3 -3
  405. package/dist/esm/funcs/clientShortcutsList.js.map +1 -1
  406. package/dist/esm/funcs/clientShortcutsRetrieve.js +3 -3
  407. package/dist/esm/funcs/clientShortcutsRetrieve.js.map +1 -1
  408. package/dist/esm/funcs/clientShortcutsUpdate.js +3 -3
  409. package/dist/esm/funcs/clientShortcutsUpdate.js.map +1 -1
  410. package/dist/esm/funcs/clientVerificationAddReminder.js +3 -3
  411. package/dist/esm/funcs/clientVerificationAddReminder.js.map +1 -1
  412. package/dist/esm/funcs/clientVerificationList.js +3 -3
  413. package/dist/esm/funcs/clientVerificationList.js.map +1 -1
  414. package/dist/esm/funcs/clientVerificationVerify.js +3 -3
  415. package/dist/esm/funcs/clientVerificationVerify.js.map +1 -1
  416. package/dist/esm/funcs/indexingAuthenticationRotateToken.js +3 -3
  417. package/dist/esm/funcs/indexingAuthenticationRotateToken.js.map +1 -1
  418. package/dist/esm/funcs/indexingDatasourceStatus.js +3 -3
  419. package/dist/esm/funcs/indexingDatasourceStatus.js.map +1 -1
  420. package/dist/esm/funcs/indexingDatasourcesAdd.js +3 -3
  421. package/dist/esm/funcs/indexingDatasourcesAdd.js.map +1 -1
  422. package/dist/esm/funcs/indexingDatasourcesRetrieveConfig.js +3 -3
  423. package/dist/esm/funcs/indexingDatasourcesRetrieveConfig.js.map +1 -1
  424. package/dist/esm/funcs/indexingDocumentsAddOrUpdate.js +3 -3
  425. package/dist/esm/funcs/indexingDocumentsAddOrUpdate.js.map +1 -1
  426. package/dist/esm/funcs/indexingDocumentsBulkIndex.js +3 -3
  427. package/dist/esm/funcs/indexingDocumentsBulkIndex.js.map +1 -1
  428. package/dist/esm/funcs/indexingDocumentsCheckAccess.js +3 -3
  429. package/dist/esm/funcs/indexingDocumentsCheckAccess.js.map +1 -1
  430. package/dist/esm/funcs/indexingDocumentsCount.js +3 -3
  431. package/dist/esm/funcs/indexingDocumentsCount.js.map +1 -1
  432. package/dist/esm/funcs/indexingDocumentsDebug.js +3 -3
  433. package/dist/esm/funcs/indexingDocumentsDebug.js.map +1 -1
  434. package/dist/esm/funcs/indexingDocumentsDebugMany.js +3 -3
  435. package/dist/esm/funcs/indexingDocumentsDebugMany.js.map +1 -1
  436. package/dist/esm/funcs/indexingDocumentsDelete.js +3 -3
  437. package/dist/esm/funcs/indexingDocumentsDelete.js.map +1 -1
  438. package/dist/esm/funcs/indexingDocumentsIndex.js +3 -3
  439. package/dist/esm/funcs/indexingDocumentsIndex.js.map +1 -1
  440. package/dist/esm/funcs/indexingDocumentsProcessAll.js +3 -3
  441. package/dist/esm/funcs/indexingDocumentsProcessAll.js.map +1 -1
  442. package/dist/esm/funcs/indexingDocumentsStatus.js +3 -3
  443. package/dist/esm/funcs/indexingDocumentsStatus.js.map +1 -1
  444. package/dist/esm/funcs/indexingPeopleBulkIndex.js +3 -3
  445. package/dist/esm/funcs/indexingPeopleBulkIndex.js.map +1 -1
  446. package/dist/esm/funcs/indexingPeopleBulkIndexTeams.js +3 -3
  447. package/dist/esm/funcs/indexingPeopleBulkIndexTeams.js.map +1 -1
  448. package/dist/esm/funcs/indexingPeopleCount.js +3 -3
  449. package/dist/esm/funcs/indexingPeopleCount.js.map +1 -1
  450. package/dist/esm/funcs/indexingPeopleDebug.js +3 -3
  451. package/dist/esm/funcs/indexingPeopleDebug.js.map +1 -1
  452. package/dist/esm/funcs/indexingPeopleDelete.js +3 -3
  453. package/dist/esm/funcs/indexingPeopleDelete.js.map +1 -1
  454. package/dist/esm/funcs/indexingPeopleDeleteTeam.js +3 -3
  455. package/dist/esm/funcs/indexingPeopleDeleteTeam.js.map +1 -1
  456. package/dist/esm/funcs/indexingPeopleIndex.js +3 -3
  457. package/dist/esm/funcs/indexingPeopleIndex.js.map +1 -1
  458. package/dist/esm/funcs/indexingPeopleIndexTeam.js +3 -3
  459. package/dist/esm/funcs/indexingPeopleIndexTeam.js.map +1 -1
  460. package/dist/esm/funcs/indexingPeopleProcessAllEmployeesAndTeams.js +3 -3
  461. package/dist/esm/funcs/indexingPeopleProcessAllEmployeesAndTeams.js.map +1 -1
  462. package/dist/esm/funcs/indexingPermissionsAuthorizeBetaUsers.js +3 -3
  463. package/dist/esm/funcs/indexingPermissionsAuthorizeBetaUsers.js.map +1 -1
  464. package/dist/esm/funcs/indexingPermissionsBulkIndexGroups.js +3 -3
  465. package/dist/esm/funcs/indexingPermissionsBulkIndexGroups.js.map +1 -1
  466. package/dist/esm/funcs/indexingPermissionsBulkIndexMemberships.js +3 -3
  467. package/dist/esm/funcs/indexingPermissionsBulkIndexMemberships.js.map +1 -1
  468. package/dist/esm/funcs/indexingPermissionsBulkIndexUsers.js +3 -3
  469. package/dist/esm/funcs/indexingPermissionsBulkIndexUsers.js.map +1 -1
  470. package/dist/esm/funcs/indexingPermissionsDeleteGroup.js +3 -3
  471. package/dist/esm/funcs/indexingPermissionsDeleteGroup.js.map +1 -1
  472. package/dist/esm/funcs/indexingPermissionsDeleteMembership.js +3 -3
  473. package/dist/esm/funcs/indexingPermissionsDeleteMembership.js.map +1 -1
  474. package/dist/esm/funcs/indexingPermissionsDeleteUser.js +3 -3
  475. package/dist/esm/funcs/indexingPermissionsDeleteUser.js.map +1 -1
  476. package/dist/esm/funcs/indexingPermissionsIndexGroup.js +3 -3
  477. package/dist/esm/funcs/indexingPermissionsIndexGroup.js.map +1 -1
  478. package/dist/esm/funcs/indexingPermissionsIndexMembership.js +3 -3
  479. package/dist/esm/funcs/indexingPermissionsIndexMembership.js.map +1 -1
  480. package/dist/esm/funcs/indexingPermissionsIndexUser.js +3 -3
  481. package/dist/esm/funcs/indexingPermissionsIndexUser.js.map +1 -1
  482. package/dist/esm/funcs/indexingPermissionsProcessMemberships.js +3 -3
  483. package/dist/esm/funcs/indexingPermissionsProcessMemberships.js.map +1 -1
  484. package/dist/esm/funcs/indexingPermissionsUpdatePermissions.js +3 -3
  485. package/dist/esm/funcs/indexingPermissionsUpdatePermissions.js.map +1 -1
  486. package/dist/esm/funcs/indexingShortcutsBulkIndex.js +3 -3
  487. package/dist/esm/funcs/indexingShortcutsBulkIndex.js.map +1 -1
  488. package/dist/esm/funcs/indexingShortcutsUpload.js +3 -3
  489. package/dist/esm/funcs/indexingShortcutsUpload.js.map +1 -1
  490. package/dist/esm/lib/config.d.ts +7 -7
  491. package/dist/esm/lib/config.d.ts.map +1 -1
  492. package/dist/esm/lib/config.js +5 -5
  493. package/dist/esm/lib/config.js.map +1 -1
  494. package/dist/esm/lib/env.d.ts +1 -1
  495. package/dist/esm/lib/env.d.ts.map +1 -1
  496. package/dist/esm/lib/env.js +1 -1
  497. package/dist/esm/lib/env.js.map +1 -1
  498. package/dist/esm/lib/security.js +1 -1
  499. package/dist/esm/lib/security.js.map +1 -1
  500. package/dist/esm/models/components/calendarevent.d.ts +5 -0
  501. package/dist/esm/models/components/calendarevent.d.ts.map +1 -1
  502. package/dist/esm/models/components/calendarevent.js +2 -0
  503. package/dist/esm/models/components/calendarevent.js.map +1 -1
  504. package/dist/esm/models/components/security.d.ts +2 -2
  505. package/dist/esm/models/components/security.d.ts.map +1 -1
  506. package/dist/esm/models/components/security.js +4 -4
  507. package/dist/esm/models/components/security.js.map +1 -1
  508. package/docs/sdks/activity/README.md +4 -4
  509. package/docs/sdks/agents/README.md +6 -6
  510. package/docs/sdks/announcements/README.md +7852 -10
  511. package/docs/sdks/answers/README.md +2916 -346
  512. package/docs/sdks/chat/README.md +20 -20
  513. package/docs/sdks/clientauthentication/README.md +2 -2
  514. package/docs/sdks/clientdocuments/README.md +8 -8
  515. package/docs/sdks/clientshortcuts/README.md +2130 -44
  516. package/docs/sdks/collections/README.md +2140 -50
  517. package/docs/sdks/datasource/README.md +2 -2
  518. package/docs/sdks/datasources/README.md +4 -4
  519. package/docs/sdks/entities/README.md +4 -4
  520. package/docs/sdks/indexingauthentication/README.md +2 -2
  521. package/docs/sdks/indexingdocuments/README.md +20 -20
  522. package/docs/sdks/indexingshortcuts/README.md +4 -4
  523. package/docs/sdks/insights/README.md +2 -2
  524. package/docs/sdks/messages/README.md +2 -2
  525. package/docs/sdks/people/README.md +18 -18
  526. package/docs/sdks/permissions/README.md +24 -24
  527. package/docs/sdks/pins/README.md +10 -10
  528. package/docs/sdks/search/README.md +11608 -650
  529. package/docs/sdks/verification/README.md +6 -6
  530. package/examples/src/search.example.ts +8 -6
  531. package/examples/src/startChat.example.ts +7 -5
  532. package/jsr.json +1 -1
  533. package/package.json +2 -1
  534. package/src/__tests__/activity.test.ts +2 -2
  535. package/src/__tests__/adminsearch.test.ts +1791 -13
  536. package/src/__tests__/agents.test.ts +3 -3
  537. package/src/__tests__/announcements.test.ts +3939 -5
  538. package/src/__tests__/answers.test.ts +1329 -35
  539. package/src/__tests__/chat.test.ts +20124 -1604
  540. package/src/__tests__/clientauthentication.test.ts +1 -1
  541. package/src/__tests__/clientdocuments.test.ts +4 -4
  542. package/src/__tests__/clientsearch.test.ts +3868 -147
  543. package/src/__tests__/clientshortcuts.test.ts +1066 -13
  544. package/src/__tests__/collections.test.ts +1070 -16
  545. package/src/__tests__/datasources.test.ts +2 -2
  546. package/src/__tests__/entities.test.ts +2 -2
  547. package/src/__tests__/indexingauthentication.test.ts +1 -1
  548. package/src/__tests__/indexingdocuments.test.ts +8 -8
  549. package/src/__tests__/indexingpeople.test.ts +2 -2
  550. package/src/__tests__/insights.test.ts +1 -1
  551. package/src/__tests__/messages.test.ts +1 -1
  552. package/src/__tests__/permissions.test.ts +12 -12
  553. package/src/__tests__/pins.test.ts +5 -5
  554. package/src/__tests__/search.test.ts +1 -1
  555. package/src/__tests__/verification.test.ts +3 -3
  556. package/src/funcs/clientActivityFeedback.ts +3 -3
  557. package/src/funcs/clientActivityReport.ts +3 -3
  558. package/src/funcs/clientAgentsList.ts +3 -3
  559. package/src/funcs/clientAgentsRetrieveInputs.ts +3 -3
  560. package/src/funcs/clientAgentsRun.ts +3 -3
  561. package/src/funcs/clientAnnouncementsCreate.ts +3 -3
  562. package/src/funcs/clientAnnouncementsDelete.ts +3 -3
  563. package/src/funcs/clientAnnouncementsUpdate.ts +3 -3
  564. package/src/funcs/clientAnswersCreate.ts +3 -3
  565. package/src/funcs/clientAnswersDelete.ts +3 -3
  566. package/src/funcs/clientAnswersList.ts +3 -3
  567. package/src/funcs/clientAnswersRetrieve.ts +3 -3
  568. package/src/funcs/clientAnswersUpdate.ts +3 -3
  569. package/src/funcs/clientAuthenticationCreateToken.ts +3 -3
  570. package/src/funcs/clientChatCreate.ts +3 -3
  571. package/src/funcs/clientChatCreateStream.ts +3 -3
  572. package/src/funcs/clientChatDelete.ts +3 -3
  573. package/src/funcs/clientChatDeleteAll.ts +3 -3
  574. package/src/funcs/clientChatDeleteFiles.ts +3 -3
  575. package/src/funcs/clientChatList.ts +3 -3
  576. package/src/funcs/clientChatRetrieve.ts +3 -3
  577. package/src/funcs/clientChatRetrieveApplication.ts +3 -3
  578. package/src/funcs/clientChatRetrieveFiles.ts +3 -3
  579. package/src/funcs/clientChatUploadFiles.ts +3 -3
  580. package/src/funcs/clientCollectionsAddItems.ts +3 -3
  581. package/src/funcs/clientCollectionsCreate.ts +3 -3
  582. package/src/funcs/clientCollectionsDelete.ts +3 -3
  583. package/src/funcs/clientCollectionsDeleteItem.ts +3 -3
  584. package/src/funcs/clientCollectionsList.ts +3 -3
  585. package/src/funcs/clientCollectionsRetrieve.ts +3 -3
  586. package/src/funcs/clientCollectionsUpdate.ts +3 -3
  587. package/src/funcs/clientCollectionsUpdateItem.ts +3 -3
  588. package/src/funcs/clientDocumentsRetrieve.ts +3 -3
  589. package/src/funcs/clientDocumentsRetrieveByFacets.ts +3 -3
  590. package/src/funcs/clientDocumentsRetrievePermissions.ts +3 -3
  591. package/src/funcs/clientDocumentsSummarize.ts +3 -3
  592. package/src/funcs/clientEntitiesList.ts +3 -3
  593. package/src/funcs/clientEntitiesReadPeople.ts +3 -3
  594. package/src/funcs/clientInsightsRetrieve.ts +3 -3
  595. package/src/funcs/clientMessagesRetrieve.ts +3 -3
  596. package/src/funcs/clientPinsCreate.ts +3 -3
  597. package/src/funcs/clientPinsList.ts +3 -3
  598. package/src/funcs/clientPinsRemove.ts +3 -3
  599. package/src/funcs/clientPinsRetrieve.ts +3 -3
  600. package/src/funcs/clientPinsUpdate.ts +3 -3
  601. package/src/funcs/clientSearchAutocomplete.ts +3 -3
  602. package/src/funcs/clientSearchQuery.ts +3 -3
  603. package/src/funcs/clientSearchQueryAsAdmin.ts +3 -3
  604. package/src/funcs/clientSearchRecommendations.ts +3 -3
  605. package/src/funcs/clientSearchRetrieveFeed.ts +3 -3
  606. package/src/funcs/clientShortcutsCreate.ts +3 -3
  607. package/src/funcs/clientShortcutsDelete.ts +3 -3
  608. package/src/funcs/clientShortcutsList.ts +3 -3
  609. package/src/funcs/clientShortcutsRetrieve.ts +3 -3
  610. package/src/funcs/clientShortcutsUpdate.ts +3 -3
  611. package/src/funcs/clientVerificationAddReminder.ts +3 -3
  612. package/src/funcs/clientVerificationList.ts +3 -3
  613. package/src/funcs/clientVerificationVerify.ts +3 -3
  614. package/src/funcs/indexingAuthenticationRotateToken.ts +3 -3
  615. package/src/funcs/indexingDatasourceStatus.ts +3 -3
  616. package/src/funcs/indexingDatasourcesAdd.ts +3 -3
  617. package/src/funcs/indexingDatasourcesRetrieveConfig.ts +3 -3
  618. package/src/funcs/indexingDocumentsAddOrUpdate.ts +3 -3
  619. package/src/funcs/indexingDocumentsBulkIndex.ts +3 -3
  620. package/src/funcs/indexingDocumentsCheckAccess.ts +3 -3
  621. package/src/funcs/indexingDocumentsCount.ts +3 -3
  622. package/src/funcs/indexingDocumentsDebug.ts +3 -3
  623. package/src/funcs/indexingDocumentsDebugMany.ts +3 -3
  624. package/src/funcs/indexingDocumentsDelete.ts +3 -3
  625. package/src/funcs/indexingDocumentsIndex.ts +3 -3
  626. package/src/funcs/indexingDocumentsProcessAll.ts +3 -3
  627. package/src/funcs/indexingDocumentsStatus.ts +3 -3
  628. package/src/funcs/indexingPeopleBulkIndex.ts +3 -3
  629. package/src/funcs/indexingPeopleBulkIndexTeams.ts +3 -3
  630. package/src/funcs/indexingPeopleCount.ts +3 -3
  631. package/src/funcs/indexingPeopleDebug.ts +3 -3
  632. package/src/funcs/indexingPeopleDelete.ts +3 -3
  633. package/src/funcs/indexingPeopleDeleteTeam.ts +3 -3
  634. package/src/funcs/indexingPeopleIndex.ts +3 -3
  635. package/src/funcs/indexingPeopleIndexTeam.ts +3 -3
  636. package/src/funcs/indexingPeopleProcessAllEmployeesAndTeams.ts +3 -3
  637. package/src/funcs/indexingPermissionsAuthorizeBetaUsers.ts +3 -3
  638. package/src/funcs/indexingPermissionsBulkIndexGroups.ts +3 -3
  639. package/src/funcs/indexingPermissionsBulkIndexMemberships.ts +3 -3
  640. package/src/funcs/indexingPermissionsBulkIndexUsers.ts +3 -3
  641. package/src/funcs/indexingPermissionsDeleteGroup.ts +3 -3
  642. package/src/funcs/indexingPermissionsDeleteMembership.ts +3 -3
  643. package/src/funcs/indexingPermissionsDeleteUser.ts +3 -3
  644. package/src/funcs/indexingPermissionsIndexGroup.ts +3 -3
  645. package/src/funcs/indexingPermissionsIndexMembership.ts +3 -3
  646. package/src/funcs/indexingPermissionsIndexUser.ts +3 -3
  647. package/src/funcs/indexingPermissionsProcessMemberships.ts +3 -3
  648. package/src/funcs/indexingPermissionsUpdatePermissions.ts +3 -3
  649. package/src/funcs/indexingShortcutsBulkIndex.ts +3 -3
  650. package/src/funcs/indexingShortcutsUpload.ts +3 -3
  651. package/src/lib/config.ts +8 -8
  652. package/src/lib/env.ts +2 -2
  653. package/src/lib/security.ts +1 -1
  654. package/src/models/components/calendarevent.ts +7 -0
  655. package/src/models/components/security.ts +6 -6
  656. package/dist/commonjs/funcs/clientAgentsAgentInputsRetrieve.d.ts +0 -16
  657. package/dist/commonjs/funcs/clientAgentsAgentInputsRetrieve.d.ts.map +0 -1
  658. package/dist/commonjs/funcs/clientAgentsAgentInputsRetrieve.js +0 -123
  659. package/dist/commonjs/funcs/clientAgentsAgentInputsRetrieve.js.map +0 -1
  660. package/dist/commonjs/funcs/clientAgentsAgentRun.d.ts +0 -16
  661. package/dist/commonjs/funcs/clientAgentsAgentRun.d.ts.map +0 -1
  662. package/dist/commonjs/funcs/clientAgentsAgentRun.js +0 -121
  663. package/dist/commonjs/funcs/clientAgentsAgentRun.js.map +0 -1
  664. package/dist/commonjs/funcs/clientChatApplicationRetrieve.d.ts +0 -16
  665. package/dist/commonjs/funcs/clientChatApplicationRetrieve.d.ts.map +0 -1
  666. package/dist/commonjs/funcs/clientChatApplicationRetrieve.js +0 -123
  667. package/dist/commonjs/funcs/clientChatApplicationRetrieve.js.map +0 -1
  668. package/dist/commonjs/funcs/clientChatFilesDelete.d.ts +0 -16
  669. package/dist/commonjs/funcs/clientChatFilesDelete.d.ts.map +0 -1
  670. package/dist/commonjs/funcs/clientChatFilesDelete.js +0 -123
  671. package/dist/commonjs/funcs/clientChatFilesDelete.js.map +0 -1
  672. package/dist/commonjs/funcs/clientChatFilesRetrieve.d.ts +0 -16
  673. package/dist/commonjs/funcs/clientChatFilesRetrieve.d.ts.map +0 -1
  674. package/dist/commonjs/funcs/clientChatFilesRetrieve.js +0 -123
  675. package/dist/commonjs/funcs/clientChatFilesRetrieve.js.map +0 -1
  676. package/dist/commonjs/funcs/clientChatFilesUpload.d.ts +0 -16
  677. package/dist/commonjs/funcs/clientChatFilesUpload.d.ts.map +0 -1
  678. package/dist/commonjs/funcs/clientChatFilesUpload.js +0 -121
  679. package/dist/commonjs/funcs/clientChatFilesUpload.js.map +0 -1
  680. package/dist/commonjs/funcs/clientCollectionsItemDelete.d.ts +0 -16
  681. package/dist/commonjs/funcs/clientCollectionsItemDelete.d.ts.map +0 -1
  682. package/dist/commonjs/funcs/clientCollectionsItemDelete.js +0 -112
  683. package/dist/commonjs/funcs/clientCollectionsItemDelete.js.map +0 -1
  684. package/dist/commonjs/funcs/clientCollectionsItemUpdate.d.ts +0 -16
  685. package/dist/commonjs/funcs/clientCollectionsItemUpdate.d.ts.map +0 -1
  686. package/dist/commonjs/funcs/clientCollectionsItemUpdate.js +0 -112
  687. package/dist/commonjs/funcs/clientCollectionsItemUpdate.js.map +0 -1
  688. package/dist/commonjs/funcs/clientDocumentsPermissionsRetrieve.d.ts +0 -16
  689. package/dist/commonjs/funcs/clientDocumentsPermissionsRetrieve.d.ts.map +0 -1
  690. package/dist/commonjs/funcs/clientDocumentsPermissionsRetrieve.js +0 -112
  691. package/dist/commonjs/funcs/clientDocumentsPermissionsRetrieve.js.map +0 -1
  692. package/dist/commonjs/funcs/clientSearchAdminQuery.d.ts +0 -17
  693. package/dist/commonjs/funcs/clientSearchAdminQuery.d.ts.map +0 -1
  694. package/dist/commonjs/funcs/clientSearchAdminQuery.js +0 -118
  695. package/dist/commonjs/funcs/clientSearchAdminQuery.js.map +0 -1
  696. package/dist/commonjs/funcs/clientSearchFeedRetrieve.d.ts +0 -16
  697. package/dist/commonjs/funcs/clientSearchFeedRetrieve.d.ts.map +0 -1
  698. package/dist/commonjs/funcs/clientSearchFeedRetrieve.js +0 -112
  699. package/dist/commonjs/funcs/clientSearchFeedRetrieve.js.map +0 -1
  700. package/dist/commonjs/funcs/clientShortcutsUpload.d.ts +0 -16
  701. package/dist/commonjs/funcs/clientShortcutsUpload.d.ts.map +0 -1
  702. package/dist/commonjs/funcs/clientShortcutsUpload.js +0 -113
  703. package/dist/commonjs/funcs/clientShortcutsUpload.js.map +0 -1
  704. package/dist/commonjs/funcs/clientSummarizeGenerate.d.ts +0 -16
  705. package/dist/commonjs/funcs/clientSummarizeGenerate.d.ts.map +0 -1
  706. package/dist/commonjs/funcs/clientSummarizeGenerate.js +0 -112
  707. package/dist/commonjs/funcs/clientSummarizeGenerate.js.map +0 -1
  708. package/dist/commonjs/funcs/indexingDatasourcesConfigRetrieve.d.ts +0 -16
  709. package/dist/commonjs/funcs/indexingDatasourcesConfigRetrieve.d.ts.map +0 -1
  710. package/dist/commonjs/funcs/indexingDatasourcesConfigRetrieve.js +0 -112
  711. package/dist/commonjs/funcs/indexingDatasourcesConfigRetrieve.js.map +0 -1
  712. package/dist/commonjs/funcs/indexingTroubleshootingCheckAccess.d.ts +0 -18
  713. package/dist/commonjs/funcs/indexingTroubleshootingCheckAccess.d.ts.map +0 -1
  714. package/dist/commonjs/funcs/indexingTroubleshootingCheckAccess.js +0 -114
  715. package/dist/commonjs/funcs/indexingTroubleshootingCheckAccess.js.map +0 -1
  716. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceDocumentDebug.d.ts +0 -18
  717. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceDocumentDebug.d.ts.map +0 -1
  718. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceDocumentDebug.js +0 -130
  719. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceDocumentDebug.js.map +0 -1
  720. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceDocumentsDebug.d.ts +0 -18
  721. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceDocumentsDebug.d.ts.map +0 -1
  722. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceDocumentsDebug.js +0 -130
  723. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceDocumentsDebug.js.map +0 -1
  724. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceStatus.d.ts +0 -18
  725. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceStatus.d.ts.map +0 -1
  726. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceStatus.js +0 -126
  727. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceStatus.js.map +0 -1
  728. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceUserDebug.d.ts +0 -18
  729. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceUserDebug.d.ts.map +0 -1
  730. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceUserDebug.js +0 -127
  731. package/dist/commonjs/funcs/indexingTroubleshootingDatasourceUserDebug.js.map +0 -1
  732. package/dist/commonjs/funcs/indexingTroubleshootingDocumentsCount.d.ts +0 -20
  733. package/dist/commonjs/funcs/indexingTroubleshootingDocumentsCount.d.ts.map +0 -1
  734. package/dist/commonjs/funcs/indexingTroubleshootingDocumentsCount.js +0 -116
  735. package/dist/commonjs/funcs/indexingTroubleshootingDocumentsCount.js.map +0 -1
  736. package/dist/commonjs/funcs/indexingTroubleshootingDocumentsStatus.d.ts +0 -20
  737. package/dist/commonjs/funcs/indexingTroubleshootingDocumentsStatus.d.ts.map +0 -1
  738. package/dist/commonjs/funcs/indexingTroubleshootingDocumentsStatus.js +0 -116
  739. package/dist/commonjs/funcs/indexingTroubleshootingDocumentsStatus.js.map +0 -1
  740. package/dist/commonjs/funcs/indexingTroubleshootingUsersCount.d.ts +0 -20
  741. package/dist/commonjs/funcs/indexingTroubleshootingUsersCount.d.ts.map +0 -1
  742. package/dist/commonjs/funcs/indexingTroubleshootingUsersCount.js +0 -116
  743. package/dist/commonjs/funcs/indexingTroubleshootingUsersCount.js.map +0 -1
  744. package/dist/commonjs/funcs/shortcutsCreateshortcut.d.ts +0 -16
  745. package/dist/commonjs/funcs/shortcutsCreateshortcut.d.ts.map +0 -1
  746. package/dist/commonjs/funcs/shortcutsCreateshortcut.js +0 -112
  747. package/dist/commonjs/funcs/shortcutsCreateshortcut.js.map +0 -1
  748. package/dist/commonjs/funcs/verificationVerify.d.ts +0 -16
  749. package/dist/commonjs/funcs/verificationVerify.d.ts.map +0 -1
  750. package/dist/commonjs/funcs/verificationVerify.js +0 -112
  751. package/dist/commonjs/funcs/verificationVerify.js.map +0 -1
  752. package/dist/commonjs/react-query/clientAgentsAgentInputsRetrieve.d.ts +0 -24
  753. package/dist/commonjs/react-query/clientAgentsAgentInputsRetrieve.d.ts.map +0 -1
  754. package/dist/commonjs/react-query/clientAgentsAgentInputsRetrieve.js +0 -47
  755. package/dist/commonjs/react-query/clientAgentsAgentInputsRetrieve.js.map +0 -1
  756. package/dist/commonjs/react-query/clientAgentsAgentRun.d.ts +0 -24
  757. package/dist/commonjs/react-query/clientAgentsAgentRun.d.ts.map +0 -1
  758. package/dist/commonjs/react-query/clientAgentsAgentRun.js +0 -47
  759. package/dist/commonjs/react-query/clientAgentsAgentRun.js.map +0 -1
  760. package/dist/commonjs/react-query/clientChatApplicationRetrieve.d.ts +0 -24
  761. package/dist/commonjs/react-query/clientChatApplicationRetrieve.d.ts.map +0 -1
  762. package/dist/commonjs/react-query/clientChatApplicationRetrieve.js +0 -47
  763. package/dist/commonjs/react-query/clientChatApplicationRetrieve.js.map +0 -1
  764. package/dist/commonjs/react-query/clientChatFilesDelete.d.ts +0 -24
  765. package/dist/commonjs/react-query/clientChatFilesDelete.d.ts.map +0 -1
  766. package/dist/commonjs/react-query/clientChatFilesDelete.js +0 -47
  767. package/dist/commonjs/react-query/clientChatFilesDelete.js.map +0 -1
  768. package/dist/commonjs/react-query/clientChatFilesRetrieve.d.ts +0 -24
  769. package/dist/commonjs/react-query/clientChatFilesRetrieve.d.ts.map +0 -1
  770. package/dist/commonjs/react-query/clientChatFilesRetrieve.js +0 -47
  771. package/dist/commonjs/react-query/clientChatFilesRetrieve.js.map +0 -1
  772. package/dist/commonjs/react-query/clientChatFilesUpload.d.ts +0 -24
  773. package/dist/commonjs/react-query/clientChatFilesUpload.d.ts.map +0 -1
  774. package/dist/commonjs/react-query/clientChatFilesUpload.js +0 -47
  775. package/dist/commonjs/react-query/clientChatFilesUpload.js.map +0 -1
  776. package/dist/commonjs/react-query/clientCollectionsItemDelete.d.ts +0 -23
  777. package/dist/commonjs/react-query/clientCollectionsItemDelete.d.ts.map +0 -1
  778. package/dist/commonjs/react-query/clientCollectionsItemDelete.js +0 -47
  779. package/dist/commonjs/react-query/clientCollectionsItemDelete.js.map +0 -1
  780. package/dist/commonjs/react-query/clientCollectionsItemUpdate.d.ts +0 -23
  781. package/dist/commonjs/react-query/clientCollectionsItemUpdate.d.ts.map +0 -1
  782. package/dist/commonjs/react-query/clientCollectionsItemUpdate.js +0 -47
  783. package/dist/commonjs/react-query/clientCollectionsItemUpdate.js.map +0 -1
  784. package/dist/commonjs/react-query/clientDocumentsPermissionsRetrieve.d.ts +0 -23
  785. package/dist/commonjs/react-query/clientDocumentsPermissionsRetrieve.d.ts.map +0 -1
  786. package/dist/commonjs/react-query/clientDocumentsPermissionsRetrieve.js +0 -47
  787. package/dist/commonjs/react-query/clientDocumentsPermissionsRetrieve.js.map +0 -1
  788. package/dist/commonjs/react-query/clientSearchAdminQuery.d.ts +0 -23
  789. package/dist/commonjs/react-query/clientSearchAdminQuery.d.ts.map +0 -1
  790. package/dist/commonjs/react-query/clientSearchAdminQuery.js +0 -47
  791. package/dist/commonjs/react-query/clientSearchAdminQuery.js.map +0 -1
  792. package/dist/commonjs/react-query/clientSearchFeedRetrieve.d.ts +0 -23
  793. package/dist/commonjs/react-query/clientSearchFeedRetrieve.d.ts.map +0 -1
  794. package/dist/commonjs/react-query/clientSearchFeedRetrieve.js +0 -47
  795. package/dist/commonjs/react-query/clientSearchFeedRetrieve.js.map +0 -1
  796. package/dist/commonjs/react-query/clientShortcutsUpload.d.ts +0 -23
  797. package/dist/commonjs/react-query/clientShortcutsUpload.d.ts.map +0 -1
  798. package/dist/commonjs/react-query/clientShortcutsUpload.js +0 -47
  799. package/dist/commonjs/react-query/clientShortcutsUpload.js.map +0 -1
  800. package/dist/commonjs/react-query/clientSummarizeGenerate.d.ts +0 -23
  801. package/dist/commonjs/react-query/clientSummarizeGenerate.d.ts.map +0 -1
  802. package/dist/commonjs/react-query/clientSummarizeGenerate.js +0 -47
  803. package/dist/commonjs/react-query/clientSummarizeGenerate.js.map +0 -1
  804. package/dist/commonjs/react-query/indexingDatasourcesConfigRetrieve.d.ts +0 -23
  805. package/dist/commonjs/react-query/indexingDatasourcesConfigRetrieve.d.ts.map +0 -1
  806. package/dist/commonjs/react-query/indexingDatasourcesConfigRetrieve.js +0 -47
  807. package/dist/commonjs/react-query/indexingDatasourcesConfigRetrieve.js.map +0 -1
  808. package/dist/commonjs/react-query/indexingTroubleshootingCheckAccess.d.ts +0 -25
  809. package/dist/commonjs/react-query/indexingTroubleshootingCheckAccess.d.ts.map +0 -1
  810. package/dist/commonjs/react-query/indexingTroubleshootingCheckAccess.js +0 -49
  811. package/dist/commonjs/react-query/indexingTroubleshootingCheckAccess.js.map +0 -1
  812. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceDocumentDebug.d.ts +0 -26
  813. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceDocumentDebug.d.ts.map +0 -1
  814. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceDocumentDebug.js +0 -49
  815. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceDocumentDebug.js.map +0 -1
  816. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceDocumentsDebug.d.ts +0 -26
  817. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceDocumentsDebug.d.ts.map +0 -1
  818. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceDocumentsDebug.js +0 -49
  819. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceDocumentsDebug.js.map +0 -1
  820. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceStatus.d.ts +0 -25
  821. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceStatus.d.ts.map +0 -1
  822. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceStatus.js +0 -49
  823. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceStatus.js.map +0 -1
  824. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceUserDebug.d.ts +0 -26
  825. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceUserDebug.d.ts.map +0 -1
  826. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceUserDebug.js +0 -49
  827. package/dist/commonjs/react-query/indexingTroubleshootingDatasourceUserDebug.js.map +0 -1
  828. package/dist/commonjs/react-query/indexingTroubleshootingDocumentsCount.d.ts +0 -27
  829. package/dist/commonjs/react-query/indexingTroubleshootingDocumentsCount.d.ts.map +0 -1
  830. package/dist/commonjs/react-query/indexingTroubleshootingDocumentsCount.js +0 -51
  831. package/dist/commonjs/react-query/indexingTroubleshootingDocumentsCount.js.map +0 -1
  832. package/dist/commonjs/react-query/indexingTroubleshootingDocumentsStatus.d.ts +0 -27
  833. package/dist/commonjs/react-query/indexingTroubleshootingDocumentsStatus.d.ts.map +0 -1
  834. package/dist/commonjs/react-query/indexingTroubleshootingDocumentsStatus.js +0 -51
  835. package/dist/commonjs/react-query/indexingTroubleshootingDocumentsStatus.js.map +0 -1
  836. package/dist/commonjs/react-query/indexingTroubleshootingUsersCount.d.ts +0 -27
  837. package/dist/commonjs/react-query/indexingTroubleshootingUsersCount.d.ts.map +0 -1
  838. package/dist/commonjs/react-query/indexingTroubleshootingUsersCount.js +0 -51
  839. package/dist/commonjs/react-query/indexingTroubleshootingUsersCount.js.map +0 -1
  840. package/dist/commonjs/react-query/shortcutsCreateshortcut.d.ts +0 -23
  841. package/dist/commonjs/react-query/shortcutsCreateshortcut.d.ts.map +0 -1
  842. package/dist/commonjs/react-query/shortcutsCreateshortcut.js +0 -47
  843. package/dist/commonjs/react-query/shortcutsCreateshortcut.js.map +0 -1
  844. package/dist/commonjs/react-query/verificationVerify.d.ts +0 -23
  845. package/dist/commonjs/react-query/verificationVerify.d.ts.map +0 -1
  846. package/dist/commonjs/react-query/verificationVerify.js +0 -47
  847. package/dist/commonjs/react-query/verificationVerify.js.map +0 -1
  848. package/dist/commonjs/sdk/agent.d.ts +0 -15
  849. package/dist/commonjs/sdk/agent.d.ts.map +0 -1
  850. package/dist/commonjs/sdk/agent.js +0 -26
  851. package/dist/commonjs/sdk/agent.js.map +0 -1
  852. package/dist/commonjs/sdk/application.d.ts +0 -12
  853. package/dist/commonjs/sdk/application.d.ts.map +0 -1
  854. package/dist/commonjs/sdk/application.js +0 -22
  855. package/dist/commonjs/sdk/application.js.map +0 -1
  856. package/dist/commonjs/sdk/clientverification.d.ts +0 -19
  857. package/dist/commonjs/sdk/clientverification.d.ts.map +0 -1
  858. package/dist/commonjs/sdk/clientverification.js +0 -32
  859. package/dist/commonjs/sdk/clientverification.js.map +0 -1
  860. package/dist/commonjs/sdk/config.d.ts +0 -12
  861. package/dist/commonjs/sdk/config.d.ts.map +0 -1
  862. package/dist/commonjs/sdk/config.js +0 -22
  863. package/dist/commonjs/sdk/config.js.map +0 -1
  864. package/dist/commonjs/sdk/datasourcedocuments.d.ts +0 -14
  865. package/dist/commonjs/sdk/datasourcedocuments.d.ts.map +0 -1
  866. package/dist/commonjs/sdk/datasourcedocuments.js +0 -24
  867. package/dist/commonjs/sdk/datasourcedocuments.js.map +0 -1
  868. package/dist/commonjs/sdk/document.d.ts +0 -14
  869. package/dist/commonjs/sdk/document.d.ts.map +0 -1
  870. package/dist/commonjs/sdk/document.js +0 -24
  871. package/dist/commonjs/sdk/document.js.map +0 -1
  872. package/dist/commonjs/sdk/documentspermissions.d.ts +0 -12
  873. package/dist/commonjs/sdk/documentspermissions.d.ts.map +0 -1
  874. package/dist/commonjs/sdk/documentspermissions.js +0 -22
  875. package/dist/commonjs/sdk/documentspermissions.js.map +0 -1
  876. package/dist/commonjs/sdk/feed.d.ts +0 -12
  877. package/dist/commonjs/sdk/feed.d.ts.map +0 -1
  878. package/dist/commonjs/sdk/feed.js +0 -22
  879. package/dist/commonjs/sdk/feed.js.map +0 -1
  880. package/dist/commonjs/sdk/files.d.ts +0 -26
  881. package/dist/commonjs/sdk/files.d.ts.map +0 -1
  882. package/dist/commonjs/sdk/files.js +0 -42
  883. package/dist/commonjs/sdk/files.js.map +0 -1
  884. package/dist/commonjs/sdk/indexingpermissions.d.ts +0 -89
  885. package/dist/commonjs/sdk/indexingpermissions.d.ts.map +0 -1
  886. package/dist/commonjs/sdk/indexingpermissions.js +0 -132
  887. package/dist/commonjs/sdk/indexingpermissions.js.map +0 -1
  888. package/dist/commonjs/sdk/inputs.d.ts +0 -12
  889. package/dist/commonjs/sdk/inputs.d.ts.map +0 -1
  890. package/dist/commonjs/sdk/inputs.js +0 -22
  891. package/dist/commonjs/sdk/inputs.js.map +0 -1
  892. package/dist/commonjs/sdk/item.d.ts +0 -19
  893. package/dist/commonjs/sdk/item.d.ts.map +0 -1
  894. package/dist/commonjs/sdk/item.js +0 -32
  895. package/dist/commonjs/sdk/item.js.map +0 -1
  896. package/dist/commonjs/sdk/shortcuts.d.ts +0 -12
  897. package/dist/commonjs/sdk/shortcuts.d.ts.map +0 -1
  898. package/dist/commonjs/sdk/shortcuts.js +0 -22
  899. package/dist/commonjs/sdk/shortcuts.js.map +0 -1
  900. package/dist/commonjs/sdk/summarize.d.ts +0 -12
  901. package/dist/commonjs/sdk/summarize.d.ts.map +0 -1
  902. package/dist/commonjs/sdk/summarize.js +0 -22
  903. package/dist/commonjs/sdk/summarize.js.map +0 -1
  904. package/dist/commonjs/sdk/troubleshooting.d.ts +0 -23
  905. package/dist/commonjs/sdk/troubleshooting.d.ts.map +0 -1
  906. package/dist/commonjs/sdk/troubleshooting.js +0 -36
  907. package/dist/commonjs/sdk/troubleshooting.js.map +0 -1
  908. package/dist/commonjs/sdk/troubleshootingdocuments.d.ts +0 -27
  909. package/dist/commonjs/sdk/troubleshootingdocuments.d.ts.map +0 -1
  910. package/dist/commonjs/sdk/troubleshootingdocuments.js +0 -40
  911. package/dist/commonjs/sdk/troubleshootingdocuments.js.map +0 -1
  912. package/dist/commonjs/sdk/user.d.ts +0 -14
  913. package/dist/commonjs/sdk/user.d.ts.map +0 -1
  914. package/dist/commonjs/sdk/user.js +0 -24
  915. package/dist/commonjs/sdk/user.js.map +0 -1
  916. package/dist/commonjs/sdk/users.d.ts +0 -16
  917. package/dist/commonjs/sdk/users.d.ts.map +0 -1
  918. package/dist/commonjs/sdk/users.js +0 -26
  919. package/dist/commonjs/sdk/users.js.map +0 -1
  920. package/dist/esm/funcs/clientAgentsAgentInputsRetrieve.d.ts +0 -16
  921. package/dist/esm/funcs/clientAgentsAgentInputsRetrieve.d.ts.map +0 -1
  922. package/dist/esm/funcs/clientAgentsAgentInputsRetrieve.js +0 -87
  923. package/dist/esm/funcs/clientAgentsAgentInputsRetrieve.js.map +0 -1
  924. package/dist/esm/funcs/clientAgentsAgentRun.d.ts +0 -16
  925. package/dist/esm/funcs/clientAgentsAgentRun.d.ts.map +0 -1
  926. package/dist/esm/funcs/clientAgentsAgentRun.js +0 -85
  927. package/dist/esm/funcs/clientAgentsAgentRun.js.map +0 -1
  928. package/dist/esm/funcs/clientChatApplicationRetrieve.d.ts +0 -16
  929. package/dist/esm/funcs/clientChatApplicationRetrieve.d.ts.map +0 -1
  930. package/dist/esm/funcs/clientChatApplicationRetrieve.js +0 -87
  931. package/dist/esm/funcs/clientChatApplicationRetrieve.js.map +0 -1
  932. package/dist/esm/funcs/clientChatFilesDelete.d.ts +0 -16
  933. package/dist/esm/funcs/clientChatFilesDelete.d.ts.map +0 -1
  934. package/dist/esm/funcs/clientChatFilesDelete.js +0 -87
  935. package/dist/esm/funcs/clientChatFilesDelete.js.map +0 -1
  936. package/dist/esm/funcs/clientChatFilesRetrieve.d.ts +0 -16
  937. package/dist/esm/funcs/clientChatFilesRetrieve.d.ts.map +0 -1
  938. package/dist/esm/funcs/clientChatFilesRetrieve.js +0 -87
  939. package/dist/esm/funcs/clientChatFilesRetrieve.js.map +0 -1
  940. package/dist/esm/funcs/clientChatFilesUpload.d.ts +0 -16
  941. package/dist/esm/funcs/clientChatFilesUpload.d.ts.map +0 -1
  942. package/dist/esm/funcs/clientChatFilesUpload.js +0 -85
  943. package/dist/esm/funcs/clientChatFilesUpload.js.map +0 -1
  944. package/dist/esm/funcs/clientCollectionsItemDelete.d.ts +0 -16
  945. package/dist/esm/funcs/clientCollectionsItemDelete.d.ts.map +0 -1
  946. package/dist/esm/funcs/clientCollectionsItemDelete.js +0 -76
  947. package/dist/esm/funcs/clientCollectionsItemDelete.js.map +0 -1
  948. package/dist/esm/funcs/clientCollectionsItemUpdate.d.ts +0 -16
  949. package/dist/esm/funcs/clientCollectionsItemUpdate.d.ts.map +0 -1
  950. package/dist/esm/funcs/clientCollectionsItemUpdate.js +0 -76
  951. package/dist/esm/funcs/clientCollectionsItemUpdate.js.map +0 -1
  952. package/dist/esm/funcs/clientDocumentsPermissionsRetrieve.d.ts +0 -16
  953. package/dist/esm/funcs/clientDocumentsPermissionsRetrieve.d.ts.map +0 -1
  954. package/dist/esm/funcs/clientDocumentsPermissionsRetrieve.js +0 -76
  955. package/dist/esm/funcs/clientDocumentsPermissionsRetrieve.js.map +0 -1
  956. package/dist/esm/funcs/clientSearchAdminQuery.d.ts +0 -17
  957. package/dist/esm/funcs/clientSearchAdminQuery.d.ts.map +0 -1
  958. package/dist/esm/funcs/clientSearchAdminQuery.js +0 -82
  959. package/dist/esm/funcs/clientSearchAdminQuery.js.map +0 -1
  960. package/dist/esm/funcs/clientSearchFeedRetrieve.d.ts +0 -16
  961. package/dist/esm/funcs/clientSearchFeedRetrieve.d.ts.map +0 -1
  962. package/dist/esm/funcs/clientSearchFeedRetrieve.js +0 -76
  963. package/dist/esm/funcs/clientSearchFeedRetrieve.js.map +0 -1
  964. package/dist/esm/funcs/clientShortcutsUpload.d.ts +0 -16
  965. package/dist/esm/funcs/clientShortcutsUpload.d.ts.map +0 -1
  966. package/dist/esm/funcs/clientShortcutsUpload.js +0 -77
  967. package/dist/esm/funcs/clientShortcutsUpload.js.map +0 -1
  968. package/dist/esm/funcs/clientSummarizeGenerate.d.ts +0 -16
  969. package/dist/esm/funcs/clientSummarizeGenerate.d.ts.map +0 -1
  970. package/dist/esm/funcs/clientSummarizeGenerate.js +0 -76
  971. package/dist/esm/funcs/clientSummarizeGenerate.js.map +0 -1
  972. package/dist/esm/funcs/indexingDatasourcesConfigRetrieve.d.ts +0 -16
  973. package/dist/esm/funcs/indexingDatasourcesConfigRetrieve.d.ts.map +0 -1
  974. package/dist/esm/funcs/indexingDatasourcesConfigRetrieve.js +0 -76
  975. package/dist/esm/funcs/indexingDatasourcesConfigRetrieve.js.map +0 -1
  976. package/dist/esm/funcs/indexingTroubleshootingCheckAccess.d.ts +0 -18
  977. package/dist/esm/funcs/indexingTroubleshootingCheckAccess.d.ts.map +0 -1
  978. package/dist/esm/funcs/indexingTroubleshootingCheckAccess.js +0 -78
  979. package/dist/esm/funcs/indexingTroubleshootingCheckAccess.js.map +0 -1
  980. package/dist/esm/funcs/indexingTroubleshootingDatasourceDocumentDebug.d.ts +0 -18
  981. package/dist/esm/funcs/indexingTroubleshootingDatasourceDocumentDebug.d.ts.map +0 -1
  982. package/dist/esm/funcs/indexingTroubleshootingDatasourceDocumentDebug.js +0 -94
  983. package/dist/esm/funcs/indexingTroubleshootingDatasourceDocumentDebug.js.map +0 -1
  984. package/dist/esm/funcs/indexingTroubleshootingDatasourceDocumentsDebug.d.ts +0 -18
  985. package/dist/esm/funcs/indexingTroubleshootingDatasourceDocumentsDebug.d.ts.map +0 -1
  986. package/dist/esm/funcs/indexingTroubleshootingDatasourceDocumentsDebug.js +0 -94
  987. package/dist/esm/funcs/indexingTroubleshootingDatasourceDocumentsDebug.js.map +0 -1
  988. package/dist/esm/funcs/indexingTroubleshootingDatasourceStatus.d.ts +0 -18
  989. package/dist/esm/funcs/indexingTroubleshootingDatasourceStatus.d.ts.map +0 -1
  990. package/dist/esm/funcs/indexingTroubleshootingDatasourceStatus.js +0 -90
  991. package/dist/esm/funcs/indexingTroubleshootingDatasourceStatus.js.map +0 -1
  992. package/dist/esm/funcs/indexingTroubleshootingDatasourceUserDebug.d.ts +0 -18
  993. package/dist/esm/funcs/indexingTroubleshootingDatasourceUserDebug.d.ts.map +0 -1
  994. package/dist/esm/funcs/indexingTroubleshootingDatasourceUserDebug.js +0 -91
  995. package/dist/esm/funcs/indexingTroubleshootingDatasourceUserDebug.js.map +0 -1
  996. package/dist/esm/funcs/indexingTroubleshootingDocumentsCount.d.ts +0 -20
  997. package/dist/esm/funcs/indexingTroubleshootingDocumentsCount.d.ts.map +0 -1
  998. package/dist/esm/funcs/indexingTroubleshootingDocumentsCount.js +0 -80
  999. package/dist/esm/funcs/indexingTroubleshootingDocumentsCount.js.map +0 -1
  1000. package/dist/esm/funcs/indexingTroubleshootingDocumentsStatus.d.ts +0 -20
  1001. package/dist/esm/funcs/indexingTroubleshootingDocumentsStatus.d.ts.map +0 -1
  1002. package/dist/esm/funcs/indexingTroubleshootingDocumentsStatus.js +0 -80
  1003. package/dist/esm/funcs/indexingTroubleshootingDocumentsStatus.js.map +0 -1
  1004. package/dist/esm/funcs/indexingTroubleshootingUsersCount.d.ts +0 -20
  1005. package/dist/esm/funcs/indexingTroubleshootingUsersCount.d.ts.map +0 -1
  1006. package/dist/esm/funcs/indexingTroubleshootingUsersCount.js +0 -80
  1007. package/dist/esm/funcs/indexingTroubleshootingUsersCount.js.map +0 -1
  1008. package/dist/esm/funcs/shortcutsCreateshortcut.d.ts +0 -16
  1009. package/dist/esm/funcs/shortcutsCreateshortcut.d.ts.map +0 -1
  1010. package/dist/esm/funcs/shortcutsCreateshortcut.js +0 -76
  1011. package/dist/esm/funcs/shortcutsCreateshortcut.js.map +0 -1
  1012. package/dist/esm/funcs/verificationVerify.d.ts +0 -16
  1013. package/dist/esm/funcs/verificationVerify.d.ts.map +0 -1
  1014. package/dist/esm/funcs/verificationVerify.js +0 -76
  1015. package/dist/esm/funcs/verificationVerify.js.map +0 -1
  1016. package/dist/esm/react-query/clientAgentsAgentInputsRetrieve.d.ts +0 -24
  1017. package/dist/esm/react-query/clientAgentsAgentInputsRetrieve.d.ts.map +0 -1
  1018. package/dist/esm/react-query/clientAgentsAgentInputsRetrieve.js +0 -42
  1019. package/dist/esm/react-query/clientAgentsAgentInputsRetrieve.js.map +0 -1
  1020. package/dist/esm/react-query/clientAgentsAgentRun.d.ts +0 -24
  1021. package/dist/esm/react-query/clientAgentsAgentRun.d.ts.map +0 -1
  1022. package/dist/esm/react-query/clientAgentsAgentRun.js +0 -42
  1023. package/dist/esm/react-query/clientAgentsAgentRun.js.map +0 -1
  1024. package/dist/esm/react-query/clientChatApplicationRetrieve.d.ts +0 -24
  1025. package/dist/esm/react-query/clientChatApplicationRetrieve.d.ts.map +0 -1
  1026. package/dist/esm/react-query/clientChatApplicationRetrieve.js +0 -42
  1027. package/dist/esm/react-query/clientChatApplicationRetrieve.js.map +0 -1
  1028. package/dist/esm/react-query/clientChatFilesDelete.d.ts +0 -24
  1029. package/dist/esm/react-query/clientChatFilesDelete.d.ts.map +0 -1
  1030. package/dist/esm/react-query/clientChatFilesDelete.js +0 -42
  1031. package/dist/esm/react-query/clientChatFilesDelete.js.map +0 -1
  1032. package/dist/esm/react-query/clientChatFilesRetrieve.d.ts +0 -24
  1033. package/dist/esm/react-query/clientChatFilesRetrieve.d.ts.map +0 -1
  1034. package/dist/esm/react-query/clientChatFilesRetrieve.js +0 -42
  1035. package/dist/esm/react-query/clientChatFilesRetrieve.js.map +0 -1
  1036. package/dist/esm/react-query/clientChatFilesUpload.d.ts +0 -24
  1037. package/dist/esm/react-query/clientChatFilesUpload.d.ts.map +0 -1
  1038. package/dist/esm/react-query/clientChatFilesUpload.js +0 -42
  1039. package/dist/esm/react-query/clientChatFilesUpload.js.map +0 -1
  1040. package/dist/esm/react-query/clientCollectionsItemDelete.d.ts +0 -23
  1041. package/dist/esm/react-query/clientCollectionsItemDelete.d.ts.map +0 -1
  1042. package/dist/esm/react-query/clientCollectionsItemDelete.js +0 -42
  1043. package/dist/esm/react-query/clientCollectionsItemDelete.js.map +0 -1
  1044. package/dist/esm/react-query/clientCollectionsItemUpdate.d.ts +0 -23
  1045. package/dist/esm/react-query/clientCollectionsItemUpdate.d.ts.map +0 -1
  1046. package/dist/esm/react-query/clientCollectionsItemUpdate.js +0 -42
  1047. package/dist/esm/react-query/clientCollectionsItemUpdate.js.map +0 -1
  1048. package/dist/esm/react-query/clientDocumentsPermissionsRetrieve.d.ts +0 -23
  1049. package/dist/esm/react-query/clientDocumentsPermissionsRetrieve.d.ts.map +0 -1
  1050. package/dist/esm/react-query/clientDocumentsPermissionsRetrieve.js +0 -42
  1051. package/dist/esm/react-query/clientDocumentsPermissionsRetrieve.js.map +0 -1
  1052. package/dist/esm/react-query/clientSearchAdminQuery.d.ts +0 -23
  1053. package/dist/esm/react-query/clientSearchAdminQuery.d.ts.map +0 -1
  1054. package/dist/esm/react-query/clientSearchAdminQuery.js +0 -42
  1055. package/dist/esm/react-query/clientSearchAdminQuery.js.map +0 -1
  1056. package/dist/esm/react-query/clientSearchFeedRetrieve.d.ts +0 -23
  1057. package/dist/esm/react-query/clientSearchFeedRetrieve.d.ts.map +0 -1
  1058. package/dist/esm/react-query/clientSearchFeedRetrieve.js +0 -42
  1059. package/dist/esm/react-query/clientSearchFeedRetrieve.js.map +0 -1
  1060. package/dist/esm/react-query/clientShortcutsUpload.d.ts +0 -23
  1061. package/dist/esm/react-query/clientShortcutsUpload.d.ts.map +0 -1
  1062. package/dist/esm/react-query/clientShortcutsUpload.js +0 -42
  1063. package/dist/esm/react-query/clientShortcutsUpload.js.map +0 -1
  1064. package/dist/esm/react-query/clientSummarizeGenerate.d.ts +0 -23
  1065. package/dist/esm/react-query/clientSummarizeGenerate.d.ts.map +0 -1
  1066. package/dist/esm/react-query/clientSummarizeGenerate.js +0 -42
  1067. package/dist/esm/react-query/clientSummarizeGenerate.js.map +0 -1
  1068. package/dist/esm/react-query/indexingDatasourcesConfigRetrieve.d.ts +0 -23
  1069. package/dist/esm/react-query/indexingDatasourcesConfigRetrieve.d.ts.map +0 -1
  1070. package/dist/esm/react-query/indexingDatasourcesConfigRetrieve.js +0 -42
  1071. package/dist/esm/react-query/indexingDatasourcesConfigRetrieve.js.map +0 -1
  1072. package/dist/esm/react-query/indexingTroubleshootingCheckAccess.d.ts +0 -25
  1073. package/dist/esm/react-query/indexingTroubleshootingCheckAccess.d.ts.map +0 -1
  1074. package/dist/esm/react-query/indexingTroubleshootingCheckAccess.js +0 -44
  1075. package/dist/esm/react-query/indexingTroubleshootingCheckAccess.js.map +0 -1
  1076. package/dist/esm/react-query/indexingTroubleshootingDatasourceDocumentDebug.d.ts +0 -26
  1077. package/dist/esm/react-query/indexingTroubleshootingDatasourceDocumentDebug.d.ts.map +0 -1
  1078. package/dist/esm/react-query/indexingTroubleshootingDatasourceDocumentDebug.js +0 -44
  1079. package/dist/esm/react-query/indexingTroubleshootingDatasourceDocumentDebug.js.map +0 -1
  1080. package/dist/esm/react-query/indexingTroubleshootingDatasourceDocumentsDebug.d.ts +0 -26
  1081. package/dist/esm/react-query/indexingTroubleshootingDatasourceDocumentsDebug.d.ts.map +0 -1
  1082. package/dist/esm/react-query/indexingTroubleshootingDatasourceDocumentsDebug.js +0 -44
  1083. package/dist/esm/react-query/indexingTroubleshootingDatasourceDocumentsDebug.js.map +0 -1
  1084. package/dist/esm/react-query/indexingTroubleshootingDatasourceStatus.d.ts +0 -25
  1085. package/dist/esm/react-query/indexingTroubleshootingDatasourceStatus.d.ts.map +0 -1
  1086. package/dist/esm/react-query/indexingTroubleshootingDatasourceStatus.js +0 -44
  1087. package/dist/esm/react-query/indexingTroubleshootingDatasourceStatus.js.map +0 -1
  1088. package/dist/esm/react-query/indexingTroubleshootingDatasourceUserDebug.d.ts +0 -26
  1089. package/dist/esm/react-query/indexingTroubleshootingDatasourceUserDebug.d.ts.map +0 -1
  1090. package/dist/esm/react-query/indexingTroubleshootingDatasourceUserDebug.js +0 -44
  1091. package/dist/esm/react-query/indexingTroubleshootingDatasourceUserDebug.js.map +0 -1
  1092. package/dist/esm/react-query/indexingTroubleshootingDocumentsCount.d.ts +0 -27
  1093. package/dist/esm/react-query/indexingTroubleshootingDocumentsCount.d.ts.map +0 -1
  1094. package/dist/esm/react-query/indexingTroubleshootingDocumentsCount.js +0 -46
  1095. package/dist/esm/react-query/indexingTroubleshootingDocumentsCount.js.map +0 -1
  1096. package/dist/esm/react-query/indexingTroubleshootingDocumentsStatus.d.ts +0 -27
  1097. package/dist/esm/react-query/indexingTroubleshootingDocumentsStatus.d.ts.map +0 -1
  1098. package/dist/esm/react-query/indexingTroubleshootingDocumentsStatus.js +0 -46
  1099. package/dist/esm/react-query/indexingTroubleshootingDocumentsStatus.js.map +0 -1
  1100. package/dist/esm/react-query/indexingTroubleshootingUsersCount.d.ts +0 -27
  1101. package/dist/esm/react-query/indexingTroubleshootingUsersCount.d.ts.map +0 -1
  1102. package/dist/esm/react-query/indexingTroubleshootingUsersCount.js +0 -46
  1103. package/dist/esm/react-query/indexingTroubleshootingUsersCount.js.map +0 -1
  1104. package/dist/esm/react-query/shortcutsCreateshortcut.d.ts +0 -23
  1105. package/dist/esm/react-query/shortcutsCreateshortcut.d.ts.map +0 -1
  1106. package/dist/esm/react-query/shortcutsCreateshortcut.js +0 -42
  1107. package/dist/esm/react-query/shortcutsCreateshortcut.js.map +0 -1
  1108. package/dist/esm/react-query/verificationVerify.d.ts +0 -23
  1109. package/dist/esm/react-query/verificationVerify.d.ts.map +0 -1
  1110. package/dist/esm/react-query/verificationVerify.js +0 -42
  1111. package/dist/esm/react-query/verificationVerify.js.map +0 -1
  1112. package/dist/esm/sdk/agent.d.ts +0 -15
  1113. package/dist/esm/sdk/agent.d.ts.map +0 -1
  1114. package/dist/esm/sdk/agent.js +0 -22
  1115. package/dist/esm/sdk/agent.js.map +0 -1
  1116. package/dist/esm/sdk/application.d.ts +0 -12
  1117. package/dist/esm/sdk/application.d.ts.map +0 -1
  1118. package/dist/esm/sdk/application.js +0 -18
  1119. package/dist/esm/sdk/application.js.map +0 -1
  1120. package/dist/esm/sdk/clientverification.d.ts +0 -19
  1121. package/dist/esm/sdk/clientverification.d.ts.map +0 -1
  1122. package/dist/esm/sdk/clientverification.js +0 -28
  1123. package/dist/esm/sdk/clientverification.js.map +0 -1
  1124. package/dist/esm/sdk/config.d.ts +0 -12
  1125. package/dist/esm/sdk/config.d.ts.map +0 -1
  1126. package/dist/esm/sdk/config.js +0 -18
  1127. package/dist/esm/sdk/config.js.map +0 -1
  1128. package/dist/esm/sdk/datasourcedocuments.d.ts +0 -14
  1129. package/dist/esm/sdk/datasourcedocuments.d.ts.map +0 -1
  1130. package/dist/esm/sdk/datasourcedocuments.js +0 -20
  1131. package/dist/esm/sdk/datasourcedocuments.js.map +0 -1
  1132. package/dist/esm/sdk/document.d.ts +0 -14
  1133. package/dist/esm/sdk/document.d.ts.map +0 -1
  1134. package/dist/esm/sdk/document.js +0 -20
  1135. package/dist/esm/sdk/document.js.map +0 -1
  1136. package/dist/esm/sdk/documentspermissions.d.ts +0 -12
  1137. package/dist/esm/sdk/documentspermissions.d.ts.map +0 -1
  1138. package/dist/esm/sdk/documentspermissions.js +0 -18
  1139. package/dist/esm/sdk/documentspermissions.js.map +0 -1
  1140. package/dist/esm/sdk/feed.d.ts +0 -12
  1141. package/dist/esm/sdk/feed.d.ts.map +0 -1
  1142. package/dist/esm/sdk/feed.js +0 -18
  1143. package/dist/esm/sdk/feed.js.map +0 -1
  1144. package/dist/esm/sdk/files.d.ts +0 -26
  1145. package/dist/esm/sdk/files.d.ts.map +0 -1
  1146. package/dist/esm/sdk/files.js +0 -38
  1147. package/dist/esm/sdk/files.js.map +0 -1
  1148. package/dist/esm/sdk/indexingpermissions.d.ts +0 -89
  1149. package/dist/esm/sdk/indexingpermissions.d.ts.map +0 -1
  1150. package/dist/esm/sdk/indexingpermissions.js +0 -128
  1151. package/dist/esm/sdk/indexingpermissions.js.map +0 -1
  1152. package/dist/esm/sdk/inputs.d.ts +0 -12
  1153. package/dist/esm/sdk/inputs.d.ts.map +0 -1
  1154. package/dist/esm/sdk/inputs.js +0 -18
  1155. package/dist/esm/sdk/inputs.js.map +0 -1
  1156. package/dist/esm/sdk/item.d.ts +0 -19
  1157. package/dist/esm/sdk/item.d.ts.map +0 -1
  1158. package/dist/esm/sdk/item.js +0 -28
  1159. package/dist/esm/sdk/item.js.map +0 -1
  1160. package/dist/esm/sdk/shortcuts.d.ts +0 -12
  1161. package/dist/esm/sdk/shortcuts.d.ts.map +0 -1
  1162. package/dist/esm/sdk/shortcuts.js +0 -18
  1163. package/dist/esm/sdk/shortcuts.js.map +0 -1
  1164. package/dist/esm/sdk/summarize.d.ts +0 -12
  1165. package/dist/esm/sdk/summarize.d.ts.map +0 -1
  1166. package/dist/esm/sdk/summarize.js +0 -18
  1167. package/dist/esm/sdk/summarize.js.map +0 -1
  1168. package/dist/esm/sdk/troubleshooting.d.ts +0 -23
  1169. package/dist/esm/sdk/troubleshooting.d.ts.map +0 -1
  1170. package/dist/esm/sdk/troubleshooting.js +0 -32
  1171. package/dist/esm/sdk/troubleshooting.js.map +0 -1
  1172. package/dist/esm/sdk/troubleshootingdocuments.d.ts +0 -27
  1173. package/dist/esm/sdk/troubleshootingdocuments.d.ts.map +0 -1
  1174. package/dist/esm/sdk/troubleshootingdocuments.js +0 -36
  1175. package/dist/esm/sdk/troubleshootingdocuments.js.map +0 -1
  1176. package/dist/esm/sdk/user.d.ts +0 -14
  1177. package/dist/esm/sdk/user.d.ts.map +0 -1
  1178. package/dist/esm/sdk/user.js +0 -20
  1179. package/dist/esm/sdk/user.js.map +0 -1
  1180. package/dist/esm/sdk/users.d.ts +0 -16
  1181. package/dist/esm/sdk/users.d.ts.map +0 -1
  1182. package/dist/esm/sdk/users.js +0 -22
  1183. package/dist/esm/sdk/users.js.map +0 -1
  1184. package/docs/sdks/agent/README.md +0 -98
  1185. package/docs/sdks/application/README.md +0 -102
  1186. package/docs/sdks/clientverification/README.md +0 -191
  1187. package/docs/sdks/config/README.md +0 -101
  1188. package/docs/sdks/datasourcedocuments/README.md +0 -124
  1189. package/docs/sdks/document/README.md +0 -108
  1190. package/docs/sdks/documentspermissions/README.md +0 -97
  1191. package/docs/sdks/feed/README.md +0 -97
  1192. package/docs/sdks/files/README.md +0 -300
  1193. package/docs/sdks/indexingpermissions/README.md +0 -1208
  1194. package/docs/sdks/inputs/README.md +0 -98
  1195. package/docs/sdks/item/README.md +0 -199
  1196. package/docs/sdks/shortcuts/README.md +0 -223
  1197. package/docs/sdks/summarize/README.md +0 -107
  1198. package/docs/sdks/troubleshooting/README.md +0 -110
  1199. package/docs/sdks/troubleshootingdocuments/README.md +0 -209
  1200. package/docs/sdks/user/README.md +0 -106
  1201. package/docs/sdks/users/README.md +0 -106
  1202. package/src/funcs/clientAgentsAgentInputsRetrieve.ts +0 -170
  1203. package/src/funcs/clientAgentsAgentRun.ts +0 -168
  1204. package/src/funcs/clientChatApplicationRetrieve.ts +0 -170
  1205. package/src/funcs/clientChatFilesDelete.ts +0 -171
  1206. package/src/funcs/clientChatFilesRetrieve.ts +0 -170
  1207. package/src/funcs/clientChatFilesUpload.ts +0 -169
  1208. package/src/funcs/clientCollectionsItemDelete.ts +0 -155
  1209. package/src/funcs/clientCollectionsItemUpdate.ts +0 -154
  1210. package/src/funcs/clientDocumentsPermissionsRetrieve.ts +0 -154
  1211. package/src/funcs/clientSearchAdminQuery.ts +0 -165
  1212. package/src/funcs/clientSearchFeedRetrieve.ts +0 -154
  1213. package/src/funcs/clientShortcutsUpload.ts +0 -155
  1214. package/src/funcs/clientSummarizeGenerate.ts +0 -154
  1215. package/src/funcs/indexingDatasourcesConfigRetrieve.ts +0 -155
  1216. package/src/funcs/indexingTroubleshootingCheckAccess.ts +0 -157
  1217. package/src/funcs/indexingTroubleshootingDatasourceDocumentDebug.ts +0 -180
  1218. package/src/funcs/indexingTroubleshootingDatasourceDocumentsDebug.ts +0 -180
  1219. package/src/funcs/indexingTroubleshootingDatasourceStatus.ts +0 -173
  1220. package/src/funcs/indexingTroubleshootingDatasourceUserDebug.ts +0 -177
  1221. package/src/funcs/indexingTroubleshootingDocumentsCount.ts +0 -158
  1222. package/src/funcs/indexingTroubleshootingDocumentsStatus.ts +0 -158
  1223. package/src/funcs/indexingTroubleshootingUsersCount.ts +0 -158
  1224. package/src/funcs/shortcutsCreateshortcut.ts +0 -154
  1225. package/src/funcs/verificationVerify.ts +0 -154
  1226. package/src/react-query/clientAgentsAgentInputsRetrieve.ts +0 -92
  1227. package/src/react-query/clientAgentsAgentRun.ts +0 -91
  1228. package/src/react-query/clientChatApplicationRetrieve.ts +0 -92
  1229. package/src/react-query/clientChatFilesDelete.ts +0 -91
  1230. package/src/react-query/clientChatFilesRetrieve.ts +0 -92
  1231. package/src/react-query/clientChatFilesUpload.ts +0 -92
  1232. package/src/react-query/clientCollectionsItemDelete.ts +0 -89
  1233. package/src/react-query/clientCollectionsItemUpdate.ts +0 -89
  1234. package/src/react-query/clientDocumentsPermissionsRetrieve.ts +0 -89
  1235. package/src/react-query/clientSearchAdminQuery.ts +0 -88
  1236. package/src/react-query/clientSearchFeedRetrieve.ts +0 -88
  1237. package/src/react-query/clientShortcutsUpload.ts +0 -88
  1238. package/src/react-query/clientSummarizeGenerate.ts +0 -88
  1239. package/src/react-query/indexingDatasourcesConfigRetrieve.ts +0 -89
  1240. package/src/react-query/indexingTroubleshootingCheckAccess.ts +0 -91
  1241. package/src/react-query/indexingTroubleshootingDatasourceDocumentDebug.ts +0 -98
  1242. package/src/react-query/indexingTroubleshootingDatasourceDocumentsDebug.ts +0 -98
  1243. package/src/react-query/indexingTroubleshootingDatasourceStatus.ts +0 -91
  1244. package/src/react-query/indexingTroubleshootingDatasourceUserDebug.ts +0 -94
  1245. package/src/react-query/indexingTroubleshootingDocumentsCount.ts +0 -93
  1246. package/src/react-query/indexingTroubleshootingDocumentsStatus.ts +0 -93
  1247. package/src/react-query/indexingTroubleshootingUsersCount.ts +0 -93
  1248. package/src/react-query/shortcutsCreateshortcut.ts +0 -89
  1249. package/src/react-query/verificationVerify.ts +0 -88
  1250. package/src/sdk/agent.ts +0 -35
  1251. package/src/sdk/application.ts +0 -29
  1252. package/src/sdk/clientverification.ts +0 -45
  1253. package/src/sdk/config.ts +0 -27
  1254. package/src/sdk/datasourcedocuments.ts +0 -31
  1255. package/src/sdk/document.ts +0 -31
  1256. package/src/sdk/documentspermissions.ts +0 -27
  1257. package/src/sdk/feed.ts +0 -27
  1258. package/src/sdk/files.ts +0 -69
  1259. package/src/sdk/indexingpermissions.ts +0 -225
  1260. package/src/sdk/inputs.ts +0 -29
  1261. package/src/sdk/item.ts +0 -45
  1262. package/src/sdk/shortcuts.ts +0 -27
  1263. package/src/sdk/summarize.ts +0 -27
  1264. package/src/sdk/troubleshooting.ts +0 -47
  1265. package/src/sdk/troubleshootingdocuments.ts +0 -53
  1266. package/src/sdk/user.ts +0 -31
  1267. package/src/sdk/users.ts +0 -31
@@ -22,7 +22,7 @@ import { Glean } from "@gleanwork/api-client";
22
22
  import { RFCDate } from "@gleanwork/api-client/types";
23
23
 
24
24
  const glean = new Glean({
25
- bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
25
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
26
26
  });
27
27
 
28
28
  async function run() {
@@ -50,7 +50,324 @@ async function run() {
50
50
  person: {
51
51
  name: "George Clooney",
52
52
  obfuscatedId: "abc123",
53
- relatedDocuments: [],
53
+ relatedDocuments: [
54
+ {
55
+ querySuggestion: {
56
+ query: "app:github type:pull author:mortimer",
57
+ searchProviderInfo: {
58
+ name: "Google",
59
+ searchLinkUrlTemplate: "https://www.google.com/search?q={query}&hl=en",
60
+ },
61
+ label: "Mortimer's PRs",
62
+ datasource: "github",
63
+ requestOptions: {
64
+ datasourceFilter: "JIRA",
65
+ datasourcesFilter: [
66
+ "JIRA",
67
+ ],
68
+ queryOverridesFacetFilters: true,
69
+ facetFilters: [
70
+ {
71
+ fieldName: "type",
72
+ values: [
73
+ {
74
+ value: "Spreadsheet",
75
+ relationType: "EQUALS",
76
+ },
77
+ {
78
+ value: "Presentation",
79
+ relationType: "EQUALS",
80
+ },
81
+ ],
82
+ },
83
+ ],
84
+ facetFilterSets: [
85
+ {
86
+ filters: [
87
+ {
88
+ fieldName: "type",
89
+ values: [
90
+ {
91
+ value: "Spreadsheet",
92
+ relationType: "EQUALS",
93
+ },
94
+ {
95
+ value: "Presentation",
96
+ relationType: "EQUALS",
97
+ },
98
+ ],
99
+ },
100
+ ],
101
+ },
102
+ {
103
+ filters: [
104
+ {
105
+ fieldName: "type",
106
+ values: [
107
+ {
108
+ value: "Spreadsheet",
109
+ relationType: "EQUALS",
110
+ },
111
+ {
112
+ value: "Presentation",
113
+ relationType: "EQUALS",
114
+ },
115
+ ],
116
+ },
117
+ ],
118
+ },
119
+ ],
120
+ facetBucketSize: 134365,
121
+ authTokens: [
122
+ {
123
+ accessToken: "123abc",
124
+ datasource: "gmail",
125
+ scope: "email profile https://www.googleapis.com/auth/gmail.readonly",
126
+ tokenType: "Bearer",
127
+ authUser: "1",
128
+ },
129
+ ],
130
+ },
131
+ ranges: [
132
+ {
133
+ startIndex: 796474,
134
+ document: {
135
+ metadata: {
136
+ datasource: "datasource",
137
+ objectType: "Feature Request",
138
+ container: "container",
139
+ parentId: "JIRA_EN-1337",
140
+ mimeType: "mimeType",
141
+ documentId: "documentId",
142
+ createTime: new Date("2000-01-23T04:56:07.000Z"),
143
+ updateTime: new Date("2000-01-23T04:56:07.000Z"),
144
+ components: [
145
+ "Backend",
146
+ "Networking",
147
+ ],
148
+ status: "[\"Done\"]",
149
+ pins: [
150
+ {
151
+ audienceFilters: [
152
+ {
153
+ fieldName: "type",
154
+ values: [
155
+ {
156
+ value: "Spreadsheet",
157
+ relationType: "EQUALS",
158
+ },
159
+ {
160
+ value: "Presentation",
161
+ relationType: "EQUALS",
162
+ },
163
+ ],
164
+ },
165
+ ],
166
+ documentId: "<id>",
167
+ },
168
+ {
169
+ audienceFilters: [
170
+ {
171
+ fieldName: "type",
172
+ values: [
173
+ {
174
+ value: "Spreadsheet",
175
+ relationType: "EQUALS",
176
+ },
177
+ {
178
+ value: "Presentation",
179
+ relationType: "EQUALS",
180
+ },
181
+ ],
182
+ },
183
+ ],
184
+ documentId: "<id>",
185
+ },
186
+ {
187
+ audienceFilters: [
188
+ {
189
+ fieldName: "type",
190
+ values: [
191
+ {
192
+ value: "Spreadsheet",
193
+ relationType: "EQUALS",
194
+ },
195
+ {
196
+ value: "Presentation",
197
+ relationType: "EQUALS",
198
+ },
199
+ ],
200
+ },
201
+ ],
202
+ documentId: "<id>",
203
+ },
204
+ ],
205
+ collections: [
206
+ {
207
+ name: "<value>",
208
+ description: "fumigate convection though zowie",
209
+ audienceFilters: [
210
+ {
211
+ fieldName: "type",
212
+ values: [
213
+ {
214
+ value: "Spreadsheet",
215
+ relationType: "EQUALS",
216
+ },
217
+ {
218
+ value: "Presentation",
219
+ relationType: "EQUALS",
220
+ },
221
+ ],
222
+ },
223
+ ],
224
+ id: 496323,
225
+ items: [
226
+ {
227
+ collectionId: 782367,
228
+ shortcut: {
229
+ inputAlias: "<value>",
230
+ },
231
+ itemType: "URL",
232
+ },
233
+ ],
234
+ },
235
+ ],
236
+ interactions: {
237
+ reacts: [
238
+ {},
239
+ {},
240
+ {},
241
+ ],
242
+ shares: [
243
+ {
244
+ numDaysAgo: 219974,
245
+ },
246
+ {
247
+ numDaysAgo: 449221,
248
+ },
249
+ {
250
+ numDaysAgo: 427887,
251
+ },
252
+ ],
253
+ },
254
+ verification: {
255
+ state: "VERIFIED",
256
+ metadata: {
257
+ reminders: [
258
+ {
259
+ assignee: {
260
+ name: "George Clooney",
261
+ obfuscatedId: "abc123",
262
+ },
263
+ remindAt: 491427,
264
+ },
265
+ ],
266
+ lastReminder: {
267
+ assignee: {
268
+ name: "George Clooney",
269
+ obfuscatedId: "abc123",
270
+ },
271
+ remindAt: 490420,
272
+ },
273
+ },
274
+ },
275
+ shortcuts: [
276
+ {
277
+ inputAlias: "<value>",
278
+ },
279
+ ],
280
+ customData: {
281
+ "someCustomField": {},
282
+ },
283
+ },
284
+ },
285
+ },
286
+ ],
287
+ inputDetails: {
288
+ hasCopyPaste: true,
289
+ },
290
+ },
291
+ results: [
292
+ {
293
+ title: "title",
294
+ url: "https://example.com/foo/bar",
295
+ nativeAppUrl: "slack://foo/bar",
296
+ snippets: [
297
+ {
298
+ snippet: "snippet",
299
+ mimeType: "mimeType",
300
+ },
301
+ ],
302
+ },
303
+ ],
304
+ },
305
+ {
306
+ querySuggestion: {
307
+ query: "app:github type:pull author:mortimer",
308
+ searchProviderInfo: {
309
+ name: "Google",
310
+ searchLinkUrlTemplate: "https://www.google.com/search?q={query}&hl=en",
311
+ },
312
+ label: "Mortimer's PRs",
313
+ datasource: "github",
314
+ requestOptions: {
315
+ datasourceFilter: "JIRA",
316
+ datasourcesFilter: [
317
+ "JIRA",
318
+ ],
319
+ queryOverridesFacetFilters: true,
320
+ facetFilters: [
321
+ {
322
+ fieldName: "type",
323
+ values: [
324
+ {
325
+ value: "Spreadsheet",
326
+ relationType: "EQUALS",
327
+ },
328
+ {
329
+ value: "Presentation",
330
+ relationType: "EQUALS",
331
+ },
332
+ ],
333
+ },
334
+ ],
335
+ facetFilterSets: [
336
+ {
337
+ filters: [
338
+ {
339
+ fieldName: "type",
340
+ values: [
341
+ {
342
+ value: "Spreadsheet",
343
+ relationType: "EQUALS",
344
+ },
345
+ {
346
+ value: "Presentation",
347
+ relationType: "EQUALS",
348
+ },
349
+ ],
350
+ },
351
+ ],
352
+ },
353
+ ],
354
+ facetBucketSize: 129663,
355
+ authTokens: [
356
+ {
357
+ accessToken: "123abc",
358
+ datasource: "gmail",
359
+ scope: "email profile https://www.googleapis.com/auth/gmail.readonly",
360
+ tokenType: "Bearer",
361
+ authUser: "1",
362
+ },
363
+ ],
364
+ },
365
+ inputDetails: {
366
+ hasCopyPaste: true,
367
+ },
368
+ },
369
+ },
370
+ ],
54
371
  metadata: {
55
372
  type: "FULL_TIME",
56
373
  title: "Actor",
@@ -67,12 +384,32 @@ async function run() {
67
384
  },
68
385
  ],
69
386
  querySuggestions: {
70
- suggestions: [],
387
+ suggestions: [
388
+ {
389
+ query: "app:github type:pull author:mortimer",
390
+ label: "Mortimer's PRs",
391
+ datasource: "github",
392
+ },
393
+ ],
71
394
  },
72
395
  inviteInfo: {
73
- invites: [],
396
+ invites: [
397
+ {},
398
+ {},
399
+ ],
74
400
  },
75
- customFields: [],
401
+ customFields: [
402
+ {
403
+ label: "<value>",
404
+ values: [
405
+ {},
406
+ ],
407
+ },
408
+ {
409
+ label: "<value>",
410
+ values: [],
411
+ },
412
+ ],
76
413
  badges: [
77
414
  {
78
415
  key: "deployment_name_new_hire",
@@ -89,86 +426,10 @@ async function run() {
89
426
  },
90
427
  role: "OWNER",
91
428
  },
92
- {
93
- role: "VERIFIER",
94
- },
95
- ],
96
- removedRoles: [
97
- {
98
- role: "VERIFIER",
99
- },
100
- {
101
- role: "ANSWER_MODERATOR",
102
- },
103
- {
104
- role: "OWNER",
105
- },
106
- ],
107
- roles: [
108
- {
109
- role: "ANSWER_MODERATOR",
110
- },
111
- {
112
- role: "OWNER",
113
- },
114
- {
115
- role: "VERIFIER",
116
- },
117
- ],
118
- combinedAnswerText: {
119
- text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.",
120
- },
121
- },
122
- });
123
-
124
- // Handle the result
125
- console.log(result);
126
- }
127
-
128
- run();
129
- ```
130
-
131
- ### Standalone function
132
-
133
- The standalone function version of this method:
134
-
135
- ```typescript
136
- import { GleanCore } from "@gleanwork/api-client/core.js";
137
- import { clientAnswersCreate } from "@gleanwork/api-client/funcs/clientAnswersCreate.js";
138
- import { RFCDate } from "@gleanwork/api-client/types";
139
-
140
- // Use `GleanCore` for best tree-shaking performance.
141
- // You can create one instance of it to use across an application.
142
- const glean = new GleanCore({
143
- bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
144
- });
145
-
146
- async function run() {
147
- const res = await clientAnswersCreate(glean, {
148
- data: {
149
- question: "Why is the sky blue?",
150
- bodyText: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.",
151
- audienceFilters: [
152
- {
153
- fieldName: "type",
154
- values: [
155
- {
156
- value: "Spreadsheet",
157
- relationType: "EQUALS",
158
- },
159
- {
160
- value: "Presentation",
161
- relationType: "EQUALS",
162
- },
163
- ],
164
- },
165
- ],
166
- addedRoles: [
167
429
  {
168
430
  person: {
169
431
  name: "George Clooney",
170
432
  obfuscatedId: "abc123",
171
- relatedDocuments: [],
172
433
  metadata: {
173
434
  type: "FULL_TIME",
174
435
  title: "Actor",
@@ -184,13 +445,8 @@ async function run() {
184
445
  handle: "<value>",
185
446
  },
186
447
  ],
187
- querySuggestions: {
188
- suggestions: [],
189
- },
190
- inviteInfo: {
191
- invites: [],
192
- },
193
- customFields: [],
448
+ querySuggestions: {},
449
+ inviteInfo: {},
194
450
  badges: [
195
451
  {
196
452
  key: "deployment_name_new_hire",
@@ -205,45 +461,1923 @@ async function run() {
205
461
  ],
206
462
  },
207
463
  },
208
- role: "OWNER",
209
- },
210
- {
211
464
  role: "VERIFIER",
212
465
  },
213
466
  ],
214
467
  removedRoles: [
215
468
  {
469
+ person: {
470
+ name: "George Clooney",
471
+ obfuscatedId: "abc123",
472
+ metadata: {
473
+ type: "FULL_TIME",
474
+ title: "Actor",
475
+ department: "Movies",
476
+ email: "george@example.com",
477
+ location: "Hollywood, CA",
478
+ phone: "6505551234",
479
+ photoUrl: "https://example.com/george.jpg",
480
+ startDate: new RFCDate("2000-01-23"),
481
+ datasourceProfile: [
482
+ {
483
+ datasource: "github",
484
+ handle: "<value>",
485
+ },
486
+ ],
487
+ querySuggestions: {},
488
+ inviteInfo: {},
489
+ badges: [
490
+ {
491
+ key: "deployment_name_new_hire",
492
+ displayName: "New hire",
493
+ iconConfig: {
494
+ color: "#343CED",
495
+ key: "person_icon",
496
+ iconType: "GLYPH",
497
+ name: "user",
498
+ },
499
+ },
500
+ ],
501
+ },
502
+ },
216
503
  role: "VERIFIER",
217
504
  },
218
505
  {
506
+ person: {
507
+ name: "George Clooney",
508
+ obfuscatedId: "abc123",
509
+ metadata: {
510
+ type: "FULL_TIME",
511
+ title: "Actor",
512
+ department: "Movies",
513
+ email: "george@example.com",
514
+ location: "Hollywood, CA",
515
+ phone: "6505551234",
516
+ photoUrl: "https://example.com/george.jpg",
517
+ startDate: new RFCDate("2000-01-23"),
518
+ datasourceProfile: [
519
+ {
520
+ datasource: "github",
521
+ handle: "<value>",
522
+ },
523
+ {
524
+ datasource: "github",
525
+ handle: "<value>",
526
+ },
527
+ {
528
+ datasource: "github",
529
+ handle: "<value>",
530
+ },
531
+ ],
532
+ querySuggestions: {},
533
+ inviteInfo: {},
534
+ badges: [
535
+ {
536
+ key: "deployment_name_new_hire",
537
+ displayName: "New hire",
538
+ iconConfig: {
539
+ color: "#343CED",
540
+ key: "person_icon",
541
+ iconType: "GLYPH",
542
+ name: "user",
543
+ },
544
+ },
545
+ ],
546
+ },
547
+ },
219
548
  role: "ANSWER_MODERATOR",
220
549
  },
221
550
  {
551
+ person: {
552
+ name: "George Clooney",
553
+ obfuscatedId: "abc123",
554
+ metadata: {
555
+ type: "FULL_TIME",
556
+ title: "Actor",
557
+ department: "Movies",
558
+ email: "george@example.com",
559
+ location: "Hollywood, CA",
560
+ phone: "6505551234",
561
+ photoUrl: "https://example.com/george.jpg",
562
+ startDate: new RFCDate("2000-01-23"),
563
+ datasourceProfile: [
564
+ {
565
+ datasource: "github",
566
+ handle: "<value>",
567
+ },
568
+ ],
569
+ querySuggestions: {},
570
+ inviteInfo: {},
571
+ badges: [
572
+ {
573
+ key: "deployment_name_new_hire",
574
+ displayName: "New hire",
575
+ iconConfig: {
576
+ color: "#343CED",
577
+ key: "person_icon",
578
+ iconType: "GLYPH",
579
+ name: "user",
580
+ },
581
+ },
582
+ ],
583
+ },
584
+ },
222
585
  role: "OWNER",
223
586
  },
224
587
  ],
225
588
  roles: [
226
589
  {
590
+ person: {
591
+ name: "George Clooney",
592
+ obfuscatedId: "abc123",
593
+ metadata: {
594
+ type: "FULL_TIME",
595
+ title: "Actor",
596
+ department: "Movies",
597
+ email: "george@example.com",
598
+ location: "Hollywood, CA",
599
+ phone: "6505551234",
600
+ photoUrl: "https://example.com/george.jpg",
601
+ startDate: new RFCDate("2000-01-23"),
602
+ datasourceProfile: [
603
+ {
604
+ datasource: "github",
605
+ handle: "<value>",
606
+ },
607
+ {
608
+ datasource: "github",
609
+ handle: "<value>",
610
+ },
611
+ ],
612
+ querySuggestions: {},
613
+ inviteInfo: {},
614
+ badges: [
615
+ {
616
+ key: "deployment_name_new_hire",
617
+ displayName: "New hire",
618
+ iconConfig: {
619
+ color: "#343CED",
620
+ key: "person_icon",
621
+ iconType: "GLYPH",
622
+ name: "user",
623
+ },
624
+ },
625
+ ],
626
+ },
627
+ },
227
628
  role: "ANSWER_MODERATOR",
228
629
  },
229
630
  {
230
- role: "OWNER",
231
- },
232
- {
233
- role: "VERIFIER",
234
- },
235
- ],
236
- combinedAnswerText: {
237
- text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.",
238
- },
239
- },
240
- });
241
-
242
- if (!res.ok) {
243
- throw res.error;
244
- }
631
+ person: {
632
+ name: "George Clooney",
633
+ obfuscatedId: "abc123",
634
+ metadata: {
635
+ type: "FULL_TIME",
636
+ title: "Actor",
637
+ department: "Movies",
638
+ email: "george@example.com",
639
+ location: "Hollywood, CA",
640
+ phone: "6505551234",
641
+ photoUrl: "https://example.com/george.jpg",
642
+ startDate: new RFCDate("2000-01-23"),
643
+ datasourceProfile: [
644
+ {
645
+ datasource: "github",
646
+ handle: "<value>",
647
+ },
648
+ {
649
+ datasource: "github",
650
+ handle: "<value>",
651
+ },
652
+ {
653
+ datasource: "github",
654
+ handle: "<value>",
655
+ },
656
+ ],
657
+ querySuggestions: {},
658
+ inviteInfo: {},
659
+ badges: [
660
+ {
661
+ key: "deployment_name_new_hire",
662
+ displayName: "New hire",
663
+ iconConfig: {
664
+ color: "#343CED",
665
+ key: "person_icon",
666
+ iconType: "GLYPH",
667
+ name: "user",
668
+ },
669
+ },
670
+ ],
671
+ },
672
+ },
673
+ role: "OWNER",
674
+ },
675
+ {
676
+ person: {
677
+ name: "George Clooney",
678
+ obfuscatedId: "abc123",
679
+ metadata: {
680
+ type: "FULL_TIME",
681
+ title: "Actor",
682
+ department: "Movies",
683
+ email: "george@example.com",
684
+ location: "Hollywood, CA",
685
+ phone: "6505551234",
686
+ photoUrl: "https://example.com/george.jpg",
687
+ startDate: new RFCDate("2000-01-23"),
688
+ datasourceProfile: [
689
+ {
690
+ datasource: "github",
691
+ handle: "<value>",
692
+ },
693
+ {
694
+ datasource: "github",
695
+ handle: "<value>",
696
+ },
697
+ {
698
+ datasource: "github",
699
+ handle: "<value>",
700
+ },
701
+ ],
702
+ querySuggestions: {},
703
+ inviteInfo: {},
704
+ badges: [
705
+ {
706
+ key: "deployment_name_new_hire",
707
+ displayName: "New hire",
708
+ iconConfig: {
709
+ color: "#343CED",
710
+ key: "person_icon",
711
+ iconType: "GLYPH",
712
+ name: "user",
713
+ },
714
+ },
715
+ ],
716
+ },
717
+ },
718
+ role: "VERIFIER",
719
+ },
720
+ ],
721
+ combinedAnswerText: {
722
+ text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.",
723
+ },
724
+ },
725
+ });
245
726
 
246
- const { value: result } = res;
727
+ // Handle the result
728
+ console.log(result);
729
+ }
730
+
731
+ run();
732
+ ```
733
+
734
+ ### Standalone function
735
+
736
+ The standalone function version of this method:
737
+
738
+ ```typescript
739
+ import { GleanCore } from "@gleanwork/api-client/core.js";
740
+ import { clientAnswersCreate } from "@gleanwork/api-client/funcs/clientAnswersCreate.js";
741
+ import { RFCDate } from "@gleanwork/api-client/types";
742
+
743
+ // Use `GleanCore` for best tree-shaking performance.
744
+ // You can create one instance of it to use across an application.
745
+ const glean = new GleanCore({
746
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
747
+ });
748
+
749
+ async function run() {
750
+ const res = await clientAnswersCreate(glean, {
751
+ data: {
752
+ question: "Why is the sky blue?",
753
+ bodyText: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.",
754
+ audienceFilters: [
755
+ {
756
+ fieldName: "type",
757
+ values: [
758
+ {
759
+ value: "Spreadsheet",
760
+ relationType: "EQUALS",
761
+ },
762
+ {
763
+ value: "Presentation",
764
+ relationType: "EQUALS",
765
+ },
766
+ ],
767
+ },
768
+ ],
769
+ addedRoles: [
770
+ {
771
+ person: {
772
+ name: "George Clooney",
773
+ obfuscatedId: "abc123",
774
+ relatedDocuments: [
775
+ {
776
+ querySuggestion: {
777
+ query: "app:github type:pull author:mortimer",
778
+ searchProviderInfo: {
779
+ name: "Google",
780
+ searchLinkUrlTemplate: "https://www.google.com/search?q={query}&hl=en",
781
+ },
782
+ label: "Mortimer's PRs",
783
+ datasource: "github",
784
+ requestOptions: {
785
+ datasourceFilter: "JIRA",
786
+ datasourcesFilter: [
787
+ "JIRA",
788
+ ],
789
+ queryOverridesFacetFilters: true,
790
+ facetFilters: [
791
+ {
792
+ fieldName: "type",
793
+ values: [
794
+ {
795
+ value: "Spreadsheet",
796
+ relationType: "EQUALS",
797
+ },
798
+ {
799
+ value: "Presentation",
800
+ relationType: "EQUALS",
801
+ },
802
+ ],
803
+ },
804
+ ],
805
+ facetFilterSets: [
806
+ {
807
+ filters: [
808
+ {
809
+ fieldName: "type",
810
+ values: [
811
+ {
812
+ value: "Spreadsheet",
813
+ relationType: "EQUALS",
814
+ },
815
+ {
816
+ value: "Presentation",
817
+ relationType: "EQUALS",
818
+ },
819
+ ],
820
+ },
821
+ ],
822
+ },
823
+ {
824
+ filters: [
825
+ {
826
+ fieldName: "type",
827
+ values: [
828
+ {
829
+ value: "Spreadsheet",
830
+ relationType: "EQUALS",
831
+ },
832
+ {
833
+ value: "Presentation",
834
+ relationType: "EQUALS",
835
+ },
836
+ ],
837
+ },
838
+ ],
839
+ },
840
+ ],
841
+ facetBucketSize: 134365,
842
+ authTokens: [
843
+ {
844
+ accessToken: "123abc",
845
+ datasource: "gmail",
846
+ scope: "email profile https://www.googleapis.com/auth/gmail.readonly",
847
+ tokenType: "Bearer",
848
+ authUser: "1",
849
+ },
850
+ ],
851
+ },
852
+ ranges: [
853
+ {
854
+ startIndex: 796474,
855
+ document: {
856
+ metadata: {
857
+ datasource: "datasource",
858
+ objectType: "Feature Request",
859
+ container: "container",
860
+ parentId: "JIRA_EN-1337",
861
+ mimeType: "mimeType",
862
+ documentId: "documentId",
863
+ createTime: new Date("2000-01-23T04:56:07.000Z"),
864
+ updateTime: new Date("2000-01-23T04:56:07.000Z"),
865
+ components: [
866
+ "Backend",
867
+ "Networking",
868
+ ],
869
+ status: "[\"Done\"]",
870
+ pins: [
871
+ {
872
+ audienceFilters: [
873
+ {
874
+ fieldName: "type",
875
+ values: [
876
+ {
877
+ value: "Spreadsheet",
878
+ relationType: "EQUALS",
879
+ },
880
+ {
881
+ value: "Presentation",
882
+ relationType: "EQUALS",
883
+ },
884
+ ],
885
+ },
886
+ ],
887
+ documentId: "<id>",
888
+ },
889
+ {
890
+ audienceFilters: [
891
+ {
892
+ fieldName: "type",
893
+ values: [
894
+ {
895
+ value: "Spreadsheet",
896
+ relationType: "EQUALS",
897
+ },
898
+ {
899
+ value: "Presentation",
900
+ relationType: "EQUALS",
901
+ },
902
+ ],
903
+ },
904
+ ],
905
+ documentId: "<id>",
906
+ },
907
+ {
908
+ audienceFilters: [
909
+ {
910
+ fieldName: "type",
911
+ values: [
912
+ {
913
+ value: "Spreadsheet",
914
+ relationType: "EQUALS",
915
+ },
916
+ {
917
+ value: "Presentation",
918
+ relationType: "EQUALS",
919
+ },
920
+ ],
921
+ },
922
+ ],
923
+ documentId: "<id>",
924
+ },
925
+ ],
926
+ collections: [
927
+ {
928
+ name: "<value>",
929
+ description: "fumigate convection though zowie",
930
+ audienceFilters: [
931
+ {
932
+ fieldName: "type",
933
+ values: [
934
+ {
935
+ value: "Spreadsheet",
936
+ relationType: "EQUALS",
937
+ },
938
+ {
939
+ value: "Presentation",
940
+ relationType: "EQUALS",
941
+ },
942
+ ],
943
+ },
944
+ ],
945
+ id: 496323,
946
+ items: [
947
+ {
948
+ collectionId: 782367,
949
+ shortcut: {
950
+ inputAlias: "<value>",
951
+ },
952
+ itemType: "URL",
953
+ },
954
+ ],
955
+ },
956
+ ],
957
+ interactions: {
958
+ reacts: [
959
+ {},
960
+ {},
961
+ {},
962
+ ],
963
+ shares: [
964
+ {
965
+ numDaysAgo: 219974,
966
+ },
967
+ {
968
+ numDaysAgo: 449221,
969
+ },
970
+ {
971
+ numDaysAgo: 427887,
972
+ },
973
+ ],
974
+ },
975
+ verification: {
976
+ state: "VERIFIED",
977
+ metadata: {
978
+ reminders: [
979
+ {
980
+ assignee: {
981
+ name: "George Clooney",
982
+ obfuscatedId: "abc123",
983
+ },
984
+ remindAt: 491427,
985
+ },
986
+ ],
987
+ lastReminder: {
988
+ assignee: {
989
+ name: "George Clooney",
990
+ obfuscatedId: "abc123",
991
+ },
992
+ remindAt: 490420,
993
+ },
994
+ },
995
+ },
996
+ shortcuts: [
997
+ {
998
+ inputAlias: "<value>",
999
+ },
1000
+ ],
1001
+ customData: {
1002
+ "someCustomField": {},
1003
+ },
1004
+ },
1005
+ },
1006
+ },
1007
+ ],
1008
+ inputDetails: {
1009
+ hasCopyPaste: true,
1010
+ },
1011
+ },
1012
+ results: [
1013
+ {
1014
+ title: "title",
1015
+ url: "https://example.com/foo/bar",
1016
+ nativeAppUrl: "slack://foo/bar",
1017
+ snippets: [
1018
+ {
1019
+ snippet: "snippet",
1020
+ mimeType: "mimeType",
1021
+ },
1022
+ ],
1023
+ },
1024
+ ],
1025
+ },
1026
+ {
1027
+ querySuggestion: {
1028
+ query: "app:github type:pull author:mortimer",
1029
+ searchProviderInfo: {
1030
+ name: "Google",
1031
+ searchLinkUrlTemplate: "https://www.google.com/search?q={query}&hl=en",
1032
+ },
1033
+ label: "Mortimer's PRs",
1034
+ datasource: "github",
1035
+ requestOptions: {
1036
+ datasourceFilter: "JIRA",
1037
+ datasourcesFilter: [
1038
+ "JIRA",
1039
+ ],
1040
+ queryOverridesFacetFilters: true,
1041
+ facetFilters: [
1042
+ {
1043
+ fieldName: "type",
1044
+ values: [
1045
+ {
1046
+ value: "Spreadsheet",
1047
+ relationType: "EQUALS",
1048
+ },
1049
+ {
1050
+ value: "Presentation",
1051
+ relationType: "EQUALS",
1052
+ },
1053
+ ],
1054
+ },
1055
+ ],
1056
+ facetFilterSets: [
1057
+ {
1058
+ filters: [
1059
+ {
1060
+ fieldName: "type",
1061
+ values: [
1062
+ {
1063
+ value: "Spreadsheet",
1064
+ relationType: "EQUALS",
1065
+ },
1066
+ {
1067
+ value: "Presentation",
1068
+ relationType: "EQUALS",
1069
+ },
1070
+ ],
1071
+ },
1072
+ ],
1073
+ },
1074
+ ],
1075
+ facetBucketSize: 129663,
1076
+ authTokens: [
1077
+ {
1078
+ accessToken: "123abc",
1079
+ datasource: "gmail",
1080
+ scope: "email profile https://www.googleapis.com/auth/gmail.readonly",
1081
+ tokenType: "Bearer",
1082
+ authUser: "1",
1083
+ },
1084
+ ],
1085
+ },
1086
+ inputDetails: {
1087
+ hasCopyPaste: true,
1088
+ },
1089
+ },
1090
+ },
1091
+ ],
1092
+ metadata: {
1093
+ type: "FULL_TIME",
1094
+ title: "Actor",
1095
+ department: "Movies",
1096
+ email: "george@example.com",
1097
+ location: "Hollywood, CA",
1098
+ phone: "6505551234",
1099
+ photoUrl: "https://example.com/george.jpg",
1100
+ startDate: new RFCDate("2000-01-23"),
1101
+ datasourceProfile: [
1102
+ {
1103
+ datasource: "github",
1104
+ handle: "<value>",
1105
+ },
1106
+ ],
1107
+ querySuggestions: {
1108
+ suggestions: [
1109
+ {
1110
+ query: "app:github type:pull author:mortimer",
1111
+ label: "Mortimer's PRs",
1112
+ datasource: "github",
1113
+ },
1114
+ ],
1115
+ },
1116
+ inviteInfo: {
1117
+ invites: [
1118
+ {},
1119
+ {},
1120
+ ],
1121
+ },
1122
+ customFields: [
1123
+ {
1124
+ label: "<value>",
1125
+ values: [
1126
+ {},
1127
+ ],
1128
+ },
1129
+ {
1130
+ label: "<value>",
1131
+ values: [],
1132
+ },
1133
+ ],
1134
+ badges: [
1135
+ {
1136
+ key: "deployment_name_new_hire",
1137
+ displayName: "New hire",
1138
+ iconConfig: {
1139
+ color: "#343CED",
1140
+ key: "person_icon",
1141
+ iconType: "GLYPH",
1142
+ name: "user",
1143
+ },
1144
+ },
1145
+ ],
1146
+ },
1147
+ },
1148
+ role: "OWNER",
1149
+ },
1150
+ {
1151
+ person: {
1152
+ name: "George Clooney",
1153
+ obfuscatedId: "abc123",
1154
+ metadata: {
1155
+ type: "FULL_TIME",
1156
+ title: "Actor",
1157
+ department: "Movies",
1158
+ email: "george@example.com",
1159
+ location: "Hollywood, CA",
1160
+ phone: "6505551234",
1161
+ photoUrl: "https://example.com/george.jpg",
1162
+ startDate: new RFCDate("2000-01-23"),
1163
+ datasourceProfile: [
1164
+ {
1165
+ datasource: "github",
1166
+ handle: "<value>",
1167
+ },
1168
+ ],
1169
+ querySuggestions: {},
1170
+ inviteInfo: {},
1171
+ badges: [
1172
+ {
1173
+ key: "deployment_name_new_hire",
1174
+ displayName: "New hire",
1175
+ iconConfig: {
1176
+ color: "#343CED",
1177
+ key: "person_icon",
1178
+ iconType: "GLYPH",
1179
+ name: "user",
1180
+ },
1181
+ },
1182
+ ],
1183
+ },
1184
+ },
1185
+ role: "VERIFIER",
1186
+ },
1187
+ ],
1188
+ removedRoles: [
1189
+ {
1190
+ person: {
1191
+ name: "George Clooney",
1192
+ obfuscatedId: "abc123",
1193
+ metadata: {
1194
+ type: "FULL_TIME",
1195
+ title: "Actor",
1196
+ department: "Movies",
1197
+ email: "george@example.com",
1198
+ location: "Hollywood, CA",
1199
+ phone: "6505551234",
1200
+ photoUrl: "https://example.com/george.jpg",
1201
+ startDate: new RFCDate("2000-01-23"),
1202
+ datasourceProfile: [
1203
+ {
1204
+ datasource: "github",
1205
+ handle: "<value>",
1206
+ },
1207
+ ],
1208
+ querySuggestions: {},
1209
+ inviteInfo: {},
1210
+ badges: [
1211
+ {
1212
+ key: "deployment_name_new_hire",
1213
+ displayName: "New hire",
1214
+ iconConfig: {
1215
+ color: "#343CED",
1216
+ key: "person_icon",
1217
+ iconType: "GLYPH",
1218
+ name: "user",
1219
+ },
1220
+ },
1221
+ ],
1222
+ },
1223
+ },
1224
+ role: "VERIFIER",
1225
+ },
1226
+ {
1227
+ person: {
1228
+ name: "George Clooney",
1229
+ obfuscatedId: "abc123",
1230
+ metadata: {
1231
+ type: "FULL_TIME",
1232
+ title: "Actor",
1233
+ department: "Movies",
1234
+ email: "george@example.com",
1235
+ location: "Hollywood, CA",
1236
+ phone: "6505551234",
1237
+ photoUrl: "https://example.com/george.jpg",
1238
+ startDate: new RFCDate("2000-01-23"),
1239
+ datasourceProfile: [
1240
+ {
1241
+ datasource: "github",
1242
+ handle: "<value>",
1243
+ },
1244
+ {
1245
+ datasource: "github",
1246
+ handle: "<value>",
1247
+ },
1248
+ {
1249
+ datasource: "github",
1250
+ handle: "<value>",
1251
+ },
1252
+ ],
1253
+ querySuggestions: {},
1254
+ inviteInfo: {},
1255
+ badges: [
1256
+ {
1257
+ key: "deployment_name_new_hire",
1258
+ displayName: "New hire",
1259
+ iconConfig: {
1260
+ color: "#343CED",
1261
+ key: "person_icon",
1262
+ iconType: "GLYPH",
1263
+ name: "user",
1264
+ },
1265
+ },
1266
+ ],
1267
+ },
1268
+ },
1269
+ role: "ANSWER_MODERATOR",
1270
+ },
1271
+ {
1272
+ person: {
1273
+ name: "George Clooney",
1274
+ obfuscatedId: "abc123",
1275
+ metadata: {
1276
+ type: "FULL_TIME",
1277
+ title: "Actor",
1278
+ department: "Movies",
1279
+ email: "george@example.com",
1280
+ location: "Hollywood, CA",
1281
+ phone: "6505551234",
1282
+ photoUrl: "https://example.com/george.jpg",
1283
+ startDate: new RFCDate("2000-01-23"),
1284
+ datasourceProfile: [
1285
+ {
1286
+ datasource: "github",
1287
+ handle: "<value>",
1288
+ },
1289
+ ],
1290
+ querySuggestions: {},
1291
+ inviteInfo: {},
1292
+ badges: [
1293
+ {
1294
+ key: "deployment_name_new_hire",
1295
+ displayName: "New hire",
1296
+ iconConfig: {
1297
+ color: "#343CED",
1298
+ key: "person_icon",
1299
+ iconType: "GLYPH",
1300
+ name: "user",
1301
+ },
1302
+ },
1303
+ ],
1304
+ },
1305
+ },
1306
+ role: "OWNER",
1307
+ },
1308
+ ],
1309
+ roles: [
1310
+ {
1311
+ person: {
1312
+ name: "George Clooney",
1313
+ obfuscatedId: "abc123",
1314
+ metadata: {
1315
+ type: "FULL_TIME",
1316
+ title: "Actor",
1317
+ department: "Movies",
1318
+ email: "george@example.com",
1319
+ location: "Hollywood, CA",
1320
+ phone: "6505551234",
1321
+ photoUrl: "https://example.com/george.jpg",
1322
+ startDate: new RFCDate("2000-01-23"),
1323
+ datasourceProfile: [
1324
+ {
1325
+ datasource: "github",
1326
+ handle: "<value>",
1327
+ },
1328
+ {
1329
+ datasource: "github",
1330
+ handle: "<value>",
1331
+ },
1332
+ ],
1333
+ querySuggestions: {},
1334
+ inviteInfo: {},
1335
+ badges: [
1336
+ {
1337
+ key: "deployment_name_new_hire",
1338
+ displayName: "New hire",
1339
+ iconConfig: {
1340
+ color: "#343CED",
1341
+ key: "person_icon",
1342
+ iconType: "GLYPH",
1343
+ name: "user",
1344
+ },
1345
+ },
1346
+ ],
1347
+ },
1348
+ },
1349
+ role: "ANSWER_MODERATOR",
1350
+ },
1351
+ {
1352
+ person: {
1353
+ name: "George Clooney",
1354
+ obfuscatedId: "abc123",
1355
+ metadata: {
1356
+ type: "FULL_TIME",
1357
+ title: "Actor",
1358
+ department: "Movies",
1359
+ email: "george@example.com",
1360
+ location: "Hollywood, CA",
1361
+ phone: "6505551234",
1362
+ photoUrl: "https://example.com/george.jpg",
1363
+ startDate: new RFCDate("2000-01-23"),
1364
+ datasourceProfile: [
1365
+ {
1366
+ datasource: "github",
1367
+ handle: "<value>",
1368
+ },
1369
+ {
1370
+ datasource: "github",
1371
+ handle: "<value>",
1372
+ },
1373
+ {
1374
+ datasource: "github",
1375
+ handle: "<value>",
1376
+ },
1377
+ ],
1378
+ querySuggestions: {},
1379
+ inviteInfo: {},
1380
+ badges: [
1381
+ {
1382
+ key: "deployment_name_new_hire",
1383
+ displayName: "New hire",
1384
+ iconConfig: {
1385
+ color: "#343CED",
1386
+ key: "person_icon",
1387
+ iconType: "GLYPH",
1388
+ name: "user",
1389
+ },
1390
+ },
1391
+ ],
1392
+ },
1393
+ },
1394
+ role: "OWNER",
1395
+ },
1396
+ {
1397
+ person: {
1398
+ name: "George Clooney",
1399
+ obfuscatedId: "abc123",
1400
+ metadata: {
1401
+ type: "FULL_TIME",
1402
+ title: "Actor",
1403
+ department: "Movies",
1404
+ email: "george@example.com",
1405
+ location: "Hollywood, CA",
1406
+ phone: "6505551234",
1407
+ photoUrl: "https://example.com/george.jpg",
1408
+ startDate: new RFCDate("2000-01-23"),
1409
+ datasourceProfile: [
1410
+ {
1411
+ datasource: "github",
1412
+ handle: "<value>",
1413
+ },
1414
+ {
1415
+ datasource: "github",
1416
+ handle: "<value>",
1417
+ },
1418
+ {
1419
+ datasource: "github",
1420
+ handle: "<value>",
1421
+ },
1422
+ ],
1423
+ querySuggestions: {},
1424
+ inviteInfo: {},
1425
+ badges: [
1426
+ {
1427
+ key: "deployment_name_new_hire",
1428
+ displayName: "New hire",
1429
+ iconConfig: {
1430
+ color: "#343CED",
1431
+ key: "person_icon",
1432
+ iconType: "GLYPH",
1433
+ name: "user",
1434
+ },
1435
+ },
1436
+ ],
1437
+ },
1438
+ },
1439
+ role: "VERIFIER",
1440
+ },
1441
+ ],
1442
+ combinedAnswerText: {
1443
+ text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.",
1444
+ },
1445
+ },
1446
+ });
1447
+
1448
+ if (!res.ok) {
1449
+ throw res.error;
1450
+ }
1451
+
1452
+ const { value: result } = res;
1453
+
1454
+ // Handle the result
1455
+ console.log(result);
1456
+ }
1457
+
1458
+ run();
1459
+ ```
1460
+
1461
+ ### React hooks and utilities
1462
+
1463
+ This method can be used in React components through the following hooks and
1464
+ associated utilities.
1465
+
1466
+ > Check out [this guide][hook-guide] for information about each of the utilities
1467
+ > below and how to get started using React hooks.
1468
+
1469
+ [hook-guide]: ../../../REACT_QUERY.md
1470
+
1471
+ ```tsx
1472
+ import {
1473
+ // Mutation hook for triggering the API call.
1474
+ useClientAnswersCreateMutation
1475
+ } from "@gleanwork/api-client/react-query/clientAnswersCreate.js";
1476
+ ```
1477
+
1478
+ ### Parameters
1479
+
1480
+ | Parameter | Type | Required | Description |
1481
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1482
+ | `request` | [components.CreateAnswerRequest](../../models/components/createanswerrequest.md) | :heavy_check_mark: | The request object to use for the request. |
1483
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
1484
+ | `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. |
1485
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
1486
+
1487
+ ### Response
1488
+
1489
+ **Promise\<[components.Answer](../../models/components/answer.md)\>**
1490
+
1491
+ ### Errors
1492
+
1493
+ | Error Type | Status Code | Content Type |
1494
+ | ----------------- | ----------------- | ----------------- |
1495
+ | errors.GleanError | 4XX, 5XX | \*/\* |
1496
+
1497
+ ## delete
1498
+
1499
+ Delete an existing user-generated Answer.
1500
+
1501
+ ### Example Usage
1502
+
1503
+ ```typescript
1504
+ import { Glean } from "@gleanwork/api-client";
1505
+
1506
+ const glean = new Glean({
1507
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
1508
+ });
1509
+
1510
+ async function run() {
1511
+ await glean.client.answers.delete({
1512
+ id: 3,
1513
+ docId: "ANSWERS_answer_3",
1514
+ });
1515
+
1516
+
1517
+ }
1518
+
1519
+ run();
1520
+ ```
1521
+
1522
+ ### Standalone function
1523
+
1524
+ The standalone function version of this method:
1525
+
1526
+ ```typescript
1527
+ import { GleanCore } from "@gleanwork/api-client/core.js";
1528
+ import { clientAnswersDelete } from "@gleanwork/api-client/funcs/clientAnswersDelete.js";
1529
+
1530
+ // Use `GleanCore` for best tree-shaking performance.
1531
+ // You can create one instance of it to use across an application.
1532
+ const glean = new GleanCore({
1533
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
1534
+ });
1535
+
1536
+ async function run() {
1537
+ const res = await clientAnswersDelete(glean, {
1538
+ id: 3,
1539
+ docId: "ANSWERS_answer_3",
1540
+ });
1541
+
1542
+ if (!res.ok) {
1543
+ throw res.error;
1544
+ }
1545
+
1546
+ const { value: result } = res;
1547
+
1548
+
1549
+ }
1550
+
1551
+ run();
1552
+ ```
1553
+
1554
+ ### React hooks and utilities
1555
+
1556
+ This method can be used in React components through the following hooks and
1557
+ associated utilities.
1558
+
1559
+ > Check out [this guide][hook-guide] for information about each of the utilities
1560
+ > below and how to get started using React hooks.
1561
+
1562
+ [hook-guide]: ../../../REACT_QUERY.md
1563
+
1564
+ ```tsx
1565
+ import {
1566
+ // Mutation hook for triggering the API call.
1567
+ useClientAnswersDeleteMutation
1568
+ } from "@gleanwork/api-client/react-query/clientAnswersDelete.js";
1569
+ ```
1570
+
1571
+ ### Parameters
1572
+
1573
+ | Parameter | Type | Required | Description |
1574
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1575
+ | `request` | [components.DeleteAnswerRequest](../../models/components/deleteanswerrequest.md) | :heavy_check_mark: | The request object to use for the request. |
1576
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
1577
+ | `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. |
1578
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
1579
+
1580
+ ### Response
1581
+
1582
+ **Promise\<void\>**
1583
+
1584
+ ### Errors
1585
+
1586
+ | Error Type | Status Code | Content Type |
1587
+ | ----------------- | ----------------- | ----------------- |
1588
+ | errors.GleanError | 4XX, 5XX | \*/\* |
1589
+
1590
+ ## update
1591
+
1592
+ Update an existing user-generated Answer.
1593
+
1594
+ ### Example Usage
1595
+
1596
+ ```typescript
1597
+ import { Glean } from "@gleanwork/api-client";
1598
+ import { RFCDate } from "@gleanwork/api-client/types";
1599
+
1600
+ const glean = new Glean({
1601
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
1602
+ });
1603
+
1604
+ async function run() {
1605
+ const result = await glean.client.answers.update({
1606
+ id: 3,
1607
+ docId: "ANSWERS_answer_3",
1608
+ question: "Why is the sky blue?",
1609
+ bodyText: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.",
1610
+ audienceFilters: [
1611
+ {
1612
+ fieldName: "type",
1613
+ values: [
1614
+ {
1615
+ value: "Spreadsheet",
1616
+ relationType: "EQUALS",
1617
+ },
1618
+ {
1619
+ value: "Presentation",
1620
+ relationType: "EQUALS",
1621
+ },
1622
+ ],
1623
+ },
1624
+ ],
1625
+ addedRoles: [
1626
+ {
1627
+ person: {
1628
+ name: "George Clooney",
1629
+ obfuscatedId: "abc123",
1630
+ relatedDocuments: [
1631
+ {
1632
+ querySuggestion: {
1633
+ query: "app:github type:pull author:mortimer",
1634
+ searchProviderInfo: {
1635
+ name: "Google",
1636
+ searchLinkUrlTemplate: "https://www.google.com/search?q={query}&hl=en",
1637
+ },
1638
+ label: "Mortimer's PRs",
1639
+ datasource: "github",
1640
+ requestOptions: {
1641
+ datasourceFilter: "JIRA",
1642
+ datasourcesFilter: [
1643
+ "JIRA",
1644
+ ],
1645
+ queryOverridesFacetFilters: true,
1646
+ facetFilters: [
1647
+ {
1648
+ fieldName: "type",
1649
+ values: [
1650
+ {
1651
+ value: "Spreadsheet",
1652
+ relationType: "EQUALS",
1653
+ },
1654
+ {
1655
+ value: "Presentation",
1656
+ relationType: "EQUALS",
1657
+ },
1658
+ ],
1659
+ },
1660
+ ],
1661
+ facetFilterSets: [
1662
+ {
1663
+ filters: [
1664
+ {
1665
+ fieldName: "type",
1666
+ values: [
1667
+ {
1668
+ value: "Spreadsheet",
1669
+ relationType: "EQUALS",
1670
+ },
1671
+ {
1672
+ value: "Presentation",
1673
+ relationType: "EQUALS",
1674
+ },
1675
+ ],
1676
+ },
1677
+ ],
1678
+ },
1679
+ {
1680
+ filters: [
1681
+ {
1682
+ fieldName: "type",
1683
+ values: [
1684
+ {
1685
+ value: "Spreadsheet",
1686
+ relationType: "EQUALS",
1687
+ },
1688
+ {
1689
+ value: "Presentation",
1690
+ relationType: "EQUALS",
1691
+ },
1692
+ ],
1693
+ },
1694
+ ],
1695
+ },
1696
+ ],
1697
+ facetBucketSize: 991464,
1698
+ authTokens: [
1699
+ {
1700
+ accessToken: "123abc",
1701
+ datasource: "gmail",
1702
+ scope: "email profile https://www.googleapis.com/auth/gmail.readonly",
1703
+ tokenType: "Bearer",
1704
+ authUser: "1",
1705
+ },
1706
+ ],
1707
+ },
1708
+ ranges: [
1709
+ {
1710
+ startIndex: 488852,
1711
+ document: {
1712
+ metadata: {
1713
+ datasource: "datasource",
1714
+ objectType: "Feature Request",
1715
+ container: "container",
1716
+ parentId: "JIRA_EN-1337",
1717
+ mimeType: "mimeType",
1718
+ documentId: "documentId",
1719
+ createTime: new Date("2000-01-23T04:56:07.000Z"),
1720
+ updateTime: new Date("2000-01-23T04:56:07.000Z"),
1721
+ components: [
1722
+ "Backend",
1723
+ "Networking",
1724
+ ],
1725
+ status: "[\"Done\"]",
1726
+ pins: [
1727
+ {
1728
+ audienceFilters: [
1729
+ {
1730
+ fieldName: "type",
1731
+ values: [
1732
+ {
1733
+ value: "Spreadsheet",
1734
+ relationType: "EQUALS",
1735
+ },
1736
+ {
1737
+ value: "Presentation",
1738
+ relationType: "EQUALS",
1739
+ },
1740
+ ],
1741
+ },
1742
+ ],
1743
+ documentId: "<id>",
1744
+ },
1745
+ {
1746
+ audienceFilters: [
1747
+ {
1748
+ fieldName: "type",
1749
+ values: [
1750
+ {
1751
+ value: "Spreadsheet",
1752
+ relationType: "EQUALS",
1753
+ },
1754
+ {
1755
+ value: "Presentation",
1756
+ relationType: "EQUALS",
1757
+ },
1758
+ ],
1759
+ },
1760
+ ],
1761
+ documentId: "<id>",
1762
+ },
1763
+ {
1764
+ audienceFilters: [
1765
+ {
1766
+ fieldName: "type",
1767
+ values: [
1768
+ {
1769
+ value: "Spreadsheet",
1770
+ relationType: "EQUALS",
1771
+ },
1772
+ {
1773
+ value: "Presentation",
1774
+ relationType: "EQUALS",
1775
+ },
1776
+ ],
1777
+ },
1778
+ ],
1779
+ documentId: "<id>",
1780
+ },
1781
+ ],
1782
+ collections: [
1783
+ {
1784
+ name: "<value>",
1785
+ description: "eulogise whereas till mild than during meanwhile disapprove finer ha",
1786
+ audienceFilters: [
1787
+ {
1788
+ fieldName: "type",
1789
+ values: [
1790
+ {
1791
+ value: "Spreadsheet",
1792
+ relationType: "EQUALS",
1793
+ },
1794
+ {
1795
+ value: "Presentation",
1796
+ relationType: "EQUALS",
1797
+ },
1798
+ ],
1799
+ },
1800
+ ],
1801
+ id: 2984,
1802
+ items: [
1803
+ {
1804
+ collectionId: 477967,
1805
+ shortcut: {
1806
+ inputAlias: "<value>",
1807
+ },
1808
+ itemType: "COLLECTION",
1809
+ },
1810
+ {
1811
+ collectionId: 424273,
1812
+ shortcut: {
1813
+ inputAlias: "<value>",
1814
+ },
1815
+ itemType: "COLLECTION",
1816
+ },
1817
+ ],
1818
+ },
1819
+ ],
1820
+ interactions: {
1821
+ reacts: [
1822
+ {},
1823
+ ],
1824
+ shares: [
1825
+ {
1826
+ numDaysAgo: 301848,
1827
+ },
1828
+ {
1829
+ numDaysAgo: 657278,
1830
+ },
1831
+ ],
1832
+ },
1833
+ verification: {
1834
+ state: "UNVERIFIED",
1835
+ metadata: {
1836
+ reminders: [
1837
+ {
1838
+ assignee: {
1839
+ name: "George Clooney",
1840
+ obfuscatedId: "abc123",
1841
+ },
1842
+ remindAt: 335191,
1843
+ },
1844
+ ],
1845
+ lastReminder: {
1846
+ assignee: {
1847
+ name: "George Clooney",
1848
+ obfuscatedId: "abc123",
1849
+ },
1850
+ remindAt: 532806,
1851
+ },
1852
+ },
1853
+ },
1854
+ shortcuts: [
1855
+ {
1856
+ inputAlias: "<value>",
1857
+ },
1858
+ {
1859
+ inputAlias: "<value>",
1860
+ },
1861
+ {
1862
+ inputAlias: "<value>",
1863
+ },
1864
+ ],
1865
+ customData: {
1866
+ "someCustomField": {},
1867
+ },
1868
+ },
1869
+ },
1870
+ },
1871
+ {
1872
+ startIndex: 463392,
1873
+ document: {
1874
+ metadata: {
1875
+ datasource: "datasource",
1876
+ objectType: "Feature Request",
1877
+ container: "container",
1878
+ parentId: "JIRA_EN-1337",
1879
+ mimeType: "mimeType",
1880
+ documentId: "documentId",
1881
+ createTime: new Date("2000-01-23T04:56:07.000Z"),
1882
+ updateTime: new Date("2000-01-23T04:56:07.000Z"),
1883
+ components: [
1884
+ "Backend",
1885
+ "Networking",
1886
+ ],
1887
+ status: "[\"Done\"]",
1888
+ interactions: {},
1889
+ verification: {
1890
+ state: "VERIFIED",
1891
+ metadata: {
1892
+ lastReminder: {
1893
+ assignee: {
1894
+ name: "George Clooney",
1895
+ obfuscatedId: "abc123",
1896
+ },
1897
+ remindAt: 58704,
1898
+ },
1899
+ },
1900
+ },
1901
+ customData: {
1902
+ "someCustomField": {},
1903
+ },
1904
+ },
1905
+ },
1906
+ },
1907
+ ],
1908
+ inputDetails: {
1909
+ hasCopyPaste: true,
1910
+ },
1911
+ },
1912
+ results: [
1913
+ {
1914
+ title: "title",
1915
+ url: "https://example.com/foo/bar",
1916
+ nativeAppUrl: "slack://foo/bar",
1917
+ snippets: [
1918
+ {
1919
+ snippet: "snippet",
1920
+ mimeType: "mimeType",
1921
+ },
1922
+ ],
1923
+ },
1924
+ ],
1925
+ },
1926
+ {
1927
+ querySuggestion: {
1928
+ query: "app:github type:pull author:mortimer",
1929
+ searchProviderInfo: {
1930
+ name: "Google",
1931
+ searchLinkUrlTemplate: "https://www.google.com/search?q={query}&hl=en",
1932
+ },
1933
+ label: "Mortimer's PRs",
1934
+ datasource: "github",
1935
+ requestOptions: {
1936
+ datasourceFilter: "JIRA",
1937
+ datasourcesFilter: [
1938
+ "JIRA",
1939
+ ],
1940
+ queryOverridesFacetFilters: true,
1941
+ facetFilters: [
1942
+ {
1943
+ fieldName: "type",
1944
+ values: [
1945
+ {
1946
+ value: "Spreadsheet",
1947
+ relationType: "EQUALS",
1948
+ },
1949
+ {
1950
+ value: "Presentation",
1951
+ relationType: "EQUALS",
1952
+ },
1953
+ ],
1954
+ },
1955
+ ],
1956
+ facetFilterSets: [
1957
+ {
1958
+ filters: [
1959
+ {
1960
+ fieldName: "type",
1961
+ values: [
1962
+ {
1963
+ value: "Spreadsheet",
1964
+ relationType: "EQUALS",
1965
+ },
1966
+ {
1967
+ value: "Presentation",
1968
+ relationType: "EQUALS",
1969
+ },
1970
+ ],
1971
+ },
1972
+ ],
1973
+ },
1974
+ {
1975
+ filters: [
1976
+ {
1977
+ fieldName: "type",
1978
+ values: [
1979
+ {
1980
+ value: "Spreadsheet",
1981
+ relationType: "EQUALS",
1982
+ },
1983
+ {
1984
+ value: "Presentation",
1985
+ relationType: "EQUALS",
1986
+ },
1987
+ ],
1988
+ },
1989
+ ],
1990
+ },
1991
+ {
1992
+ filters: [
1993
+ {
1994
+ fieldName: "type",
1995
+ values: [
1996
+ {
1997
+ value: "Spreadsheet",
1998
+ relationType: "EQUALS",
1999
+ },
2000
+ {
2001
+ value: "Presentation",
2002
+ relationType: "EQUALS",
2003
+ },
2004
+ ],
2005
+ },
2006
+ ],
2007
+ },
2008
+ ],
2009
+ facetBucketSize: 326276,
2010
+ authTokens: [
2011
+ {
2012
+ accessToken: "123abc",
2013
+ datasource: "gmail",
2014
+ scope: "email profile https://www.googleapis.com/auth/gmail.readonly",
2015
+ tokenType: "Bearer",
2016
+ authUser: "1",
2017
+ },
2018
+ ],
2019
+ },
2020
+ inputDetails: {
2021
+ hasCopyPaste: true,
2022
+ },
2023
+ },
2024
+ },
2025
+ ],
2026
+ metadata: {
2027
+ type: "FULL_TIME",
2028
+ title: "Actor",
2029
+ department: "Movies",
2030
+ email: "george@example.com",
2031
+ location: "Hollywood, CA",
2032
+ phone: "6505551234",
2033
+ photoUrl: "https://example.com/george.jpg",
2034
+ startDate: new RFCDate("2000-01-23"),
2035
+ datasourceProfile: [
2036
+ {
2037
+ datasource: "github",
2038
+ handle: "<value>",
2039
+ },
2040
+ ],
2041
+ querySuggestions: {
2042
+ suggestions: [
2043
+ {
2044
+ query: "app:github type:pull author:mortimer",
2045
+ label: "Mortimer's PRs",
2046
+ datasource: "github",
2047
+ },
2048
+ ],
2049
+ },
2050
+ inviteInfo: {
2051
+ invites: [
2052
+ {},
2053
+ {},
2054
+ {},
2055
+ ],
2056
+ },
2057
+ customFields: [
2058
+ {
2059
+ label: "<value>",
2060
+ values: [
2061
+ {},
2062
+ ],
2063
+ },
2064
+ ],
2065
+ badges: [
2066
+ {
2067
+ key: "deployment_name_new_hire",
2068
+ displayName: "New hire",
2069
+ iconConfig: {
2070
+ color: "#343CED",
2071
+ key: "person_icon",
2072
+ iconType: "GLYPH",
2073
+ name: "user",
2074
+ },
2075
+ },
2076
+ ],
2077
+ },
2078
+ },
2079
+ role: "EDITOR",
2080
+ },
2081
+ {
2082
+ person: {
2083
+ name: "George Clooney",
2084
+ obfuscatedId: "abc123",
2085
+ metadata: {
2086
+ type: "FULL_TIME",
2087
+ title: "Actor",
2088
+ department: "Movies",
2089
+ email: "george@example.com",
2090
+ location: "Hollywood, CA",
2091
+ phone: "6505551234",
2092
+ photoUrl: "https://example.com/george.jpg",
2093
+ startDate: new RFCDate("2000-01-23"),
2094
+ datasourceProfile: [
2095
+ {
2096
+ datasource: "github",
2097
+ handle: "<value>",
2098
+ },
2099
+ {
2100
+ datasource: "github",
2101
+ handle: "<value>",
2102
+ },
2103
+ ],
2104
+ querySuggestions: {},
2105
+ inviteInfo: {},
2106
+ badges: [
2107
+ {
2108
+ key: "deployment_name_new_hire",
2109
+ displayName: "New hire",
2110
+ iconConfig: {
2111
+ color: "#343CED",
2112
+ key: "person_icon",
2113
+ iconType: "GLYPH",
2114
+ name: "user",
2115
+ },
2116
+ },
2117
+ ],
2118
+ },
2119
+ },
2120
+ role: "ANSWER_MODERATOR",
2121
+ },
2122
+ {
2123
+ person: {
2124
+ name: "George Clooney",
2125
+ obfuscatedId: "abc123",
2126
+ metadata: {
2127
+ type: "FULL_TIME",
2128
+ title: "Actor",
2129
+ department: "Movies",
2130
+ email: "george@example.com",
2131
+ location: "Hollywood, CA",
2132
+ phone: "6505551234",
2133
+ photoUrl: "https://example.com/george.jpg",
2134
+ startDate: new RFCDate("2000-01-23"),
2135
+ datasourceProfile: [
2136
+ {
2137
+ datasource: "github",
2138
+ handle: "<value>",
2139
+ },
2140
+ ],
2141
+ querySuggestions: {},
2142
+ inviteInfo: {},
2143
+ badges: [
2144
+ {
2145
+ key: "deployment_name_new_hire",
2146
+ displayName: "New hire",
2147
+ iconConfig: {
2148
+ color: "#343CED",
2149
+ key: "person_icon",
2150
+ iconType: "GLYPH",
2151
+ name: "user",
2152
+ },
2153
+ },
2154
+ ],
2155
+ },
2156
+ },
2157
+ role: "OWNER",
2158
+ },
2159
+ ],
2160
+ removedRoles: [
2161
+ {
2162
+ person: {
2163
+ name: "George Clooney",
2164
+ obfuscatedId: "abc123",
2165
+ metadata: {
2166
+ type: "FULL_TIME",
2167
+ title: "Actor",
2168
+ department: "Movies",
2169
+ email: "george@example.com",
2170
+ location: "Hollywood, CA",
2171
+ phone: "6505551234",
2172
+ photoUrl: "https://example.com/george.jpg",
2173
+ startDate: new RFCDate("2000-01-23"),
2174
+ datasourceProfile: [
2175
+ {
2176
+ datasource: "github",
2177
+ handle: "<value>",
2178
+ },
2179
+ {
2180
+ datasource: "github",
2181
+ handle: "<value>",
2182
+ },
2183
+ {
2184
+ datasource: "github",
2185
+ handle: "<value>",
2186
+ },
2187
+ ],
2188
+ querySuggestions: {},
2189
+ inviteInfo: {},
2190
+ badges: [
2191
+ {
2192
+ key: "deployment_name_new_hire",
2193
+ displayName: "New hire",
2194
+ iconConfig: {
2195
+ color: "#343CED",
2196
+ key: "person_icon",
2197
+ iconType: "GLYPH",
2198
+ name: "user",
2199
+ },
2200
+ },
2201
+ ],
2202
+ },
2203
+ },
2204
+ role: "OWNER",
2205
+ },
2206
+ {
2207
+ person: {
2208
+ name: "George Clooney",
2209
+ obfuscatedId: "abc123",
2210
+ metadata: {
2211
+ type: "FULL_TIME",
2212
+ title: "Actor",
2213
+ department: "Movies",
2214
+ email: "george@example.com",
2215
+ location: "Hollywood, CA",
2216
+ phone: "6505551234",
2217
+ photoUrl: "https://example.com/george.jpg",
2218
+ startDate: new RFCDate("2000-01-23"),
2219
+ datasourceProfile: [
2220
+ {
2221
+ datasource: "github",
2222
+ handle: "<value>",
2223
+ },
2224
+ {
2225
+ datasource: "github",
2226
+ handle: "<value>",
2227
+ },
2228
+ ],
2229
+ querySuggestions: {},
2230
+ inviteInfo: {},
2231
+ badges: [
2232
+ {
2233
+ key: "deployment_name_new_hire",
2234
+ displayName: "New hire",
2235
+ iconConfig: {
2236
+ color: "#343CED",
2237
+ key: "person_icon",
2238
+ iconType: "GLYPH",
2239
+ name: "user",
2240
+ },
2241
+ },
2242
+ ],
2243
+ },
2244
+ },
2245
+ role: "VERIFIER",
2246
+ },
2247
+ ],
2248
+ roles: [
2249
+ {
2250
+ person: {
2251
+ name: "George Clooney",
2252
+ obfuscatedId: "abc123",
2253
+ metadata: {
2254
+ type: "FULL_TIME",
2255
+ title: "Actor",
2256
+ department: "Movies",
2257
+ email: "george@example.com",
2258
+ location: "Hollywood, CA",
2259
+ phone: "6505551234",
2260
+ photoUrl: "https://example.com/george.jpg",
2261
+ startDate: new RFCDate("2000-01-23"),
2262
+ datasourceProfile: [
2263
+ {
2264
+ datasource: "github",
2265
+ handle: "<value>",
2266
+ },
2267
+ {
2268
+ datasource: "github",
2269
+ handle: "<value>",
2270
+ },
2271
+ {
2272
+ datasource: "github",
2273
+ handle: "<value>",
2274
+ },
2275
+ ],
2276
+ querySuggestions: {},
2277
+ inviteInfo: {},
2278
+ badges: [
2279
+ {
2280
+ key: "deployment_name_new_hire",
2281
+ displayName: "New hire",
2282
+ iconConfig: {
2283
+ color: "#343CED",
2284
+ key: "person_icon",
2285
+ iconType: "GLYPH",
2286
+ name: "user",
2287
+ },
2288
+ },
2289
+ ],
2290
+ },
2291
+ },
2292
+ role: "EDITOR",
2293
+ },
2294
+ {
2295
+ person: {
2296
+ name: "George Clooney",
2297
+ obfuscatedId: "abc123",
2298
+ metadata: {
2299
+ type: "FULL_TIME",
2300
+ title: "Actor",
2301
+ department: "Movies",
2302
+ email: "george@example.com",
2303
+ location: "Hollywood, CA",
2304
+ phone: "6505551234",
2305
+ photoUrl: "https://example.com/george.jpg",
2306
+ startDate: new RFCDate("2000-01-23"),
2307
+ datasourceProfile: [
2308
+ {
2309
+ datasource: "github",
2310
+ handle: "<value>",
2311
+ },
2312
+ ],
2313
+ querySuggestions: {},
2314
+ inviteInfo: {},
2315
+ badges: [
2316
+ {
2317
+ key: "deployment_name_new_hire",
2318
+ displayName: "New hire",
2319
+ iconConfig: {
2320
+ color: "#343CED",
2321
+ key: "person_icon",
2322
+ iconType: "GLYPH",
2323
+ name: "user",
2324
+ },
2325
+ },
2326
+ ],
2327
+ },
2328
+ },
2329
+ role: "VERIFIER",
2330
+ },
2331
+ {
2332
+ person: {
2333
+ name: "George Clooney",
2334
+ obfuscatedId: "abc123",
2335
+ metadata: {
2336
+ type: "FULL_TIME",
2337
+ title: "Actor",
2338
+ department: "Movies",
2339
+ email: "george@example.com",
2340
+ location: "Hollywood, CA",
2341
+ phone: "6505551234",
2342
+ photoUrl: "https://example.com/george.jpg",
2343
+ startDate: new RFCDate("2000-01-23"),
2344
+ datasourceProfile: [
2345
+ {
2346
+ datasource: "github",
2347
+ handle: "<value>",
2348
+ },
2349
+ {
2350
+ datasource: "github",
2351
+ handle: "<value>",
2352
+ },
2353
+ {
2354
+ datasource: "github",
2355
+ handle: "<value>",
2356
+ },
2357
+ ],
2358
+ querySuggestions: {},
2359
+ inviteInfo: {},
2360
+ badges: [
2361
+ {
2362
+ key: "deployment_name_new_hire",
2363
+ displayName: "New hire",
2364
+ iconConfig: {
2365
+ color: "#343CED",
2366
+ key: "person_icon",
2367
+ iconType: "GLYPH",
2368
+ name: "user",
2369
+ },
2370
+ },
2371
+ ],
2372
+ },
2373
+ },
2374
+ role: "ANSWER_MODERATOR",
2375
+ },
2376
+ ],
2377
+ combinedAnswerText: {
2378
+ text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.",
2379
+ },
2380
+ });
247
2381
 
248
2382
  // Handle the result
249
2383
  console.log(result);
@@ -252,151 +2386,23 @@ async function run() {
252
2386
  run();
253
2387
  ```
254
2388
 
255
- ### React hooks and utilities
256
-
257
- This method can be used in React components through the following hooks and
258
- associated utilities.
259
-
260
- > Check out [this guide][hook-guide] for information about each of the utilities
261
- > below and how to get started using React hooks.
262
-
263
- [hook-guide]: ../../../REACT_QUERY.md
264
-
265
- ```tsx
266
- import {
267
- // Mutation hook for triggering the API call.
268
- useClientAnswersCreateMutation
269
- } from "@gleanwork/api-client/react-query/clientAnswersCreate.js";
270
- ```
271
-
272
- ### Parameters
273
-
274
- | Parameter | Type | Required | Description |
275
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
276
- | `request` | [components.CreateAnswerRequest](../../models/components/createanswerrequest.md) | :heavy_check_mark: | The request object to use for the request. |
277
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
278
- | `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. |
279
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
280
-
281
- ### Response
282
-
283
- **Promise\<[components.Answer](../../models/components/answer.md)\>**
284
-
285
- ### Errors
286
-
287
- | Error Type | Status Code | Content Type |
288
- | ----------------- | ----------------- | ----------------- |
289
- | errors.GleanError | 4XX, 5XX | \*/\* |
290
-
291
- ## delete
292
-
293
- Delete an existing user-generated Answer.
294
-
295
- ### Example Usage
296
-
297
- ```typescript
298
- import { Glean } from "@gleanwork/api-client";
299
-
300
- const glean = new Glean({
301
- bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
302
- });
303
-
304
- async function run() {
305
- await glean.client.answers.delete({
306
- id: 3,
307
- docId: "ANSWERS_answer_3",
308
- });
309
-
310
-
311
- }
312
-
313
- run();
314
- ```
315
-
316
2389
  ### Standalone function
317
2390
 
318
2391
  The standalone function version of this method:
319
2392
 
320
2393
  ```typescript
321
2394
  import { GleanCore } from "@gleanwork/api-client/core.js";
322
- import { clientAnswersDelete } from "@gleanwork/api-client/funcs/clientAnswersDelete.js";
2395
+ import { clientAnswersUpdate } from "@gleanwork/api-client/funcs/clientAnswersUpdate.js";
2396
+ import { RFCDate } from "@gleanwork/api-client/types";
323
2397
 
324
2398
  // Use `GleanCore` for best tree-shaking performance.
325
2399
  // You can create one instance of it to use across an application.
326
2400
  const glean = new GleanCore({
327
- bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
328
- });
329
-
330
- async function run() {
331
- const res = await clientAnswersDelete(glean, {
332
- id: 3,
333
- docId: "ANSWERS_answer_3",
334
- });
335
-
336
- if (!res.ok) {
337
- throw res.error;
338
- }
339
-
340
- const { value: result } = res;
341
-
342
-
343
- }
344
-
345
- run();
346
- ```
347
-
348
- ### React hooks and utilities
349
-
350
- This method can be used in React components through the following hooks and
351
- associated utilities.
352
-
353
- > Check out [this guide][hook-guide] for information about each of the utilities
354
- > below and how to get started using React hooks.
355
-
356
- [hook-guide]: ../../../REACT_QUERY.md
357
-
358
- ```tsx
359
- import {
360
- // Mutation hook for triggering the API call.
361
- useClientAnswersDeleteMutation
362
- } from "@gleanwork/api-client/react-query/clientAnswersDelete.js";
363
- ```
364
-
365
- ### Parameters
366
-
367
- | Parameter | Type | Required | Description |
368
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
369
- | `request` | [components.DeleteAnswerRequest](../../models/components/deleteanswerrequest.md) | :heavy_check_mark: | The request object to use for the request. |
370
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
371
- | `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. |
372
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
373
-
374
- ### Response
375
-
376
- **Promise\<void\>**
377
-
378
- ### Errors
379
-
380
- | Error Type | Status Code | Content Type |
381
- | ----------------- | ----------------- | ----------------- |
382
- | errors.GleanError | 4XX, 5XX | \*/\* |
383
-
384
- ## update
385
-
386
- Update an existing user-generated Answer.
387
-
388
- ### Example Usage
389
-
390
- ```typescript
391
- import { Glean } from "@gleanwork/api-client";
392
- import { RFCDate } from "@gleanwork/api-client/types";
393
-
394
- const glean = new Glean({
395
- bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
2401
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
396
2402
  });
397
2403
 
398
2404
  async function run() {
399
- const result = await glean.client.answers.update({
2405
+ const res = await clientAnswersUpdate(glean, {
400
2406
  id: 3,
401
2407
  docId: "ANSWERS_answer_3",
402
2408
  question: "Why is the sky blue?",
@@ -413,15 +2419,510 @@ async function run() {
413
2419
  value: "Presentation",
414
2420
  relationType: "EQUALS",
415
2421
  },
416
- ],
2422
+ ],
2423
+ },
2424
+ ],
2425
+ addedRoles: [
2426
+ {
2427
+ person: {
2428
+ name: "George Clooney",
2429
+ obfuscatedId: "abc123",
2430
+ relatedDocuments: [
2431
+ {
2432
+ querySuggestion: {
2433
+ query: "app:github type:pull author:mortimer",
2434
+ searchProviderInfo: {
2435
+ name: "Google",
2436
+ searchLinkUrlTemplate: "https://www.google.com/search?q={query}&hl=en",
2437
+ },
2438
+ label: "Mortimer's PRs",
2439
+ datasource: "github",
2440
+ requestOptions: {
2441
+ datasourceFilter: "JIRA",
2442
+ datasourcesFilter: [
2443
+ "JIRA",
2444
+ ],
2445
+ queryOverridesFacetFilters: true,
2446
+ facetFilters: [
2447
+ {
2448
+ fieldName: "type",
2449
+ values: [
2450
+ {
2451
+ value: "Spreadsheet",
2452
+ relationType: "EQUALS",
2453
+ },
2454
+ {
2455
+ value: "Presentation",
2456
+ relationType: "EQUALS",
2457
+ },
2458
+ ],
2459
+ },
2460
+ ],
2461
+ facetFilterSets: [
2462
+ {
2463
+ filters: [
2464
+ {
2465
+ fieldName: "type",
2466
+ values: [
2467
+ {
2468
+ value: "Spreadsheet",
2469
+ relationType: "EQUALS",
2470
+ },
2471
+ {
2472
+ value: "Presentation",
2473
+ relationType: "EQUALS",
2474
+ },
2475
+ ],
2476
+ },
2477
+ ],
2478
+ },
2479
+ {
2480
+ filters: [
2481
+ {
2482
+ fieldName: "type",
2483
+ values: [
2484
+ {
2485
+ value: "Spreadsheet",
2486
+ relationType: "EQUALS",
2487
+ },
2488
+ {
2489
+ value: "Presentation",
2490
+ relationType: "EQUALS",
2491
+ },
2492
+ ],
2493
+ },
2494
+ ],
2495
+ },
2496
+ ],
2497
+ facetBucketSize: 991464,
2498
+ authTokens: [
2499
+ {
2500
+ accessToken: "123abc",
2501
+ datasource: "gmail",
2502
+ scope: "email profile https://www.googleapis.com/auth/gmail.readonly",
2503
+ tokenType: "Bearer",
2504
+ authUser: "1",
2505
+ },
2506
+ ],
2507
+ },
2508
+ ranges: [
2509
+ {
2510
+ startIndex: 488852,
2511
+ document: {
2512
+ metadata: {
2513
+ datasource: "datasource",
2514
+ objectType: "Feature Request",
2515
+ container: "container",
2516
+ parentId: "JIRA_EN-1337",
2517
+ mimeType: "mimeType",
2518
+ documentId: "documentId",
2519
+ createTime: new Date("2000-01-23T04:56:07.000Z"),
2520
+ updateTime: new Date("2000-01-23T04:56:07.000Z"),
2521
+ components: [
2522
+ "Backend",
2523
+ "Networking",
2524
+ ],
2525
+ status: "[\"Done\"]",
2526
+ pins: [
2527
+ {
2528
+ audienceFilters: [
2529
+ {
2530
+ fieldName: "type",
2531
+ values: [
2532
+ {
2533
+ value: "Spreadsheet",
2534
+ relationType: "EQUALS",
2535
+ },
2536
+ {
2537
+ value: "Presentation",
2538
+ relationType: "EQUALS",
2539
+ },
2540
+ ],
2541
+ },
2542
+ ],
2543
+ documentId: "<id>",
2544
+ },
2545
+ {
2546
+ audienceFilters: [
2547
+ {
2548
+ fieldName: "type",
2549
+ values: [
2550
+ {
2551
+ value: "Spreadsheet",
2552
+ relationType: "EQUALS",
2553
+ },
2554
+ {
2555
+ value: "Presentation",
2556
+ relationType: "EQUALS",
2557
+ },
2558
+ ],
2559
+ },
2560
+ ],
2561
+ documentId: "<id>",
2562
+ },
2563
+ {
2564
+ audienceFilters: [
2565
+ {
2566
+ fieldName: "type",
2567
+ values: [
2568
+ {
2569
+ value: "Spreadsheet",
2570
+ relationType: "EQUALS",
2571
+ },
2572
+ {
2573
+ value: "Presentation",
2574
+ relationType: "EQUALS",
2575
+ },
2576
+ ],
2577
+ },
2578
+ ],
2579
+ documentId: "<id>",
2580
+ },
2581
+ ],
2582
+ collections: [
2583
+ {
2584
+ name: "<value>",
2585
+ description: "eulogise whereas till mild than during meanwhile disapprove finer ha",
2586
+ audienceFilters: [
2587
+ {
2588
+ fieldName: "type",
2589
+ values: [
2590
+ {
2591
+ value: "Spreadsheet",
2592
+ relationType: "EQUALS",
2593
+ },
2594
+ {
2595
+ value: "Presentation",
2596
+ relationType: "EQUALS",
2597
+ },
2598
+ ],
2599
+ },
2600
+ ],
2601
+ id: 2984,
2602
+ items: [
2603
+ {
2604
+ collectionId: 477967,
2605
+ shortcut: {
2606
+ inputAlias: "<value>",
2607
+ },
2608
+ itemType: "COLLECTION",
2609
+ },
2610
+ {
2611
+ collectionId: 424273,
2612
+ shortcut: {
2613
+ inputAlias: "<value>",
2614
+ },
2615
+ itemType: "COLLECTION",
2616
+ },
2617
+ ],
2618
+ },
2619
+ ],
2620
+ interactions: {
2621
+ reacts: [
2622
+ {},
2623
+ ],
2624
+ shares: [
2625
+ {
2626
+ numDaysAgo: 301848,
2627
+ },
2628
+ {
2629
+ numDaysAgo: 657278,
2630
+ },
2631
+ ],
2632
+ },
2633
+ verification: {
2634
+ state: "UNVERIFIED",
2635
+ metadata: {
2636
+ reminders: [
2637
+ {
2638
+ assignee: {
2639
+ name: "George Clooney",
2640
+ obfuscatedId: "abc123",
2641
+ },
2642
+ remindAt: 335191,
2643
+ },
2644
+ ],
2645
+ lastReminder: {
2646
+ assignee: {
2647
+ name: "George Clooney",
2648
+ obfuscatedId: "abc123",
2649
+ },
2650
+ remindAt: 532806,
2651
+ },
2652
+ },
2653
+ },
2654
+ shortcuts: [
2655
+ {
2656
+ inputAlias: "<value>",
2657
+ },
2658
+ {
2659
+ inputAlias: "<value>",
2660
+ },
2661
+ {
2662
+ inputAlias: "<value>",
2663
+ },
2664
+ ],
2665
+ customData: {
2666
+ "someCustomField": {},
2667
+ },
2668
+ },
2669
+ },
2670
+ },
2671
+ {
2672
+ startIndex: 463392,
2673
+ document: {
2674
+ metadata: {
2675
+ datasource: "datasource",
2676
+ objectType: "Feature Request",
2677
+ container: "container",
2678
+ parentId: "JIRA_EN-1337",
2679
+ mimeType: "mimeType",
2680
+ documentId: "documentId",
2681
+ createTime: new Date("2000-01-23T04:56:07.000Z"),
2682
+ updateTime: new Date("2000-01-23T04:56:07.000Z"),
2683
+ components: [
2684
+ "Backend",
2685
+ "Networking",
2686
+ ],
2687
+ status: "[\"Done\"]",
2688
+ interactions: {},
2689
+ verification: {
2690
+ state: "VERIFIED",
2691
+ metadata: {
2692
+ lastReminder: {
2693
+ assignee: {
2694
+ name: "George Clooney",
2695
+ obfuscatedId: "abc123",
2696
+ },
2697
+ remindAt: 58704,
2698
+ },
2699
+ },
2700
+ },
2701
+ customData: {
2702
+ "someCustomField": {},
2703
+ },
2704
+ },
2705
+ },
2706
+ },
2707
+ ],
2708
+ inputDetails: {
2709
+ hasCopyPaste: true,
2710
+ },
2711
+ },
2712
+ results: [
2713
+ {
2714
+ title: "title",
2715
+ url: "https://example.com/foo/bar",
2716
+ nativeAppUrl: "slack://foo/bar",
2717
+ snippets: [
2718
+ {
2719
+ snippet: "snippet",
2720
+ mimeType: "mimeType",
2721
+ },
2722
+ ],
2723
+ },
2724
+ ],
2725
+ },
2726
+ {
2727
+ querySuggestion: {
2728
+ query: "app:github type:pull author:mortimer",
2729
+ searchProviderInfo: {
2730
+ name: "Google",
2731
+ searchLinkUrlTemplate: "https://www.google.com/search?q={query}&hl=en",
2732
+ },
2733
+ label: "Mortimer's PRs",
2734
+ datasource: "github",
2735
+ requestOptions: {
2736
+ datasourceFilter: "JIRA",
2737
+ datasourcesFilter: [
2738
+ "JIRA",
2739
+ ],
2740
+ queryOverridesFacetFilters: true,
2741
+ facetFilters: [
2742
+ {
2743
+ fieldName: "type",
2744
+ values: [
2745
+ {
2746
+ value: "Spreadsheet",
2747
+ relationType: "EQUALS",
2748
+ },
2749
+ {
2750
+ value: "Presentation",
2751
+ relationType: "EQUALS",
2752
+ },
2753
+ ],
2754
+ },
2755
+ ],
2756
+ facetFilterSets: [
2757
+ {
2758
+ filters: [
2759
+ {
2760
+ fieldName: "type",
2761
+ values: [
2762
+ {
2763
+ value: "Spreadsheet",
2764
+ relationType: "EQUALS",
2765
+ },
2766
+ {
2767
+ value: "Presentation",
2768
+ relationType: "EQUALS",
2769
+ },
2770
+ ],
2771
+ },
2772
+ ],
2773
+ },
2774
+ {
2775
+ filters: [
2776
+ {
2777
+ fieldName: "type",
2778
+ values: [
2779
+ {
2780
+ value: "Spreadsheet",
2781
+ relationType: "EQUALS",
2782
+ },
2783
+ {
2784
+ value: "Presentation",
2785
+ relationType: "EQUALS",
2786
+ },
2787
+ ],
2788
+ },
2789
+ ],
2790
+ },
2791
+ {
2792
+ filters: [
2793
+ {
2794
+ fieldName: "type",
2795
+ values: [
2796
+ {
2797
+ value: "Spreadsheet",
2798
+ relationType: "EQUALS",
2799
+ },
2800
+ {
2801
+ value: "Presentation",
2802
+ relationType: "EQUALS",
2803
+ },
2804
+ ],
2805
+ },
2806
+ ],
2807
+ },
2808
+ ],
2809
+ facetBucketSize: 326276,
2810
+ authTokens: [
2811
+ {
2812
+ accessToken: "123abc",
2813
+ datasource: "gmail",
2814
+ scope: "email profile https://www.googleapis.com/auth/gmail.readonly",
2815
+ tokenType: "Bearer",
2816
+ authUser: "1",
2817
+ },
2818
+ ],
2819
+ },
2820
+ inputDetails: {
2821
+ hasCopyPaste: true,
2822
+ },
2823
+ },
2824
+ },
2825
+ ],
2826
+ metadata: {
2827
+ type: "FULL_TIME",
2828
+ title: "Actor",
2829
+ department: "Movies",
2830
+ email: "george@example.com",
2831
+ location: "Hollywood, CA",
2832
+ phone: "6505551234",
2833
+ photoUrl: "https://example.com/george.jpg",
2834
+ startDate: new RFCDate("2000-01-23"),
2835
+ datasourceProfile: [
2836
+ {
2837
+ datasource: "github",
2838
+ handle: "<value>",
2839
+ },
2840
+ ],
2841
+ querySuggestions: {
2842
+ suggestions: [
2843
+ {
2844
+ query: "app:github type:pull author:mortimer",
2845
+ label: "Mortimer's PRs",
2846
+ datasource: "github",
2847
+ },
2848
+ ],
2849
+ },
2850
+ inviteInfo: {
2851
+ invites: [
2852
+ {},
2853
+ {},
2854
+ {},
2855
+ ],
2856
+ },
2857
+ customFields: [
2858
+ {
2859
+ label: "<value>",
2860
+ values: [
2861
+ {},
2862
+ ],
2863
+ },
2864
+ ],
2865
+ badges: [
2866
+ {
2867
+ key: "deployment_name_new_hire",
2868
+ displayName: "New hire",
2869
+ iconConfig: {
2870
+ color: "#343CED",
2871
+ key: "person_icon",
2872
+ iconType: "GLYPH",
2873
+ name: "user",
2874
+ },
2875
+ },
2876
+ ],
2877
+ },
2878
+ },
2879
+ role: "EDITOR",
2880
+ },
2881
+ {
2882
+ person: {
2883
+ name: "George Clooney",
2884
+ obfuscatedId: "abc123",
2885
+ metadata: {
2886
+ type: "FULL_TIME",
2887
+ title: "Actor",
2888
+ department: "Movies",
2889
+ email: "george@example.com",
2890
+ location: "Hollywood, CA",
2891
+ phone: "6505551234",
2892
+ photoUrl: "https://example.com/george.jpg",
2893
+ startDate: new RFCDate("2000-01-23"),
2894
+ datasourceProfile: [
2895
+ {
2896
+ datasource: "github",
2897
+ handle: "<value>",
2898
+ },
2899
+ {
2900
+ datasource: "github",
2901
+ handle: "<value>",
2902
+ },
2903
+ ],
2904
+ querySuggestions: {},
2905
+ inviteInfo: {},
2906
+ badges: [
2907
+ {
2908
+ key: "deployment_name_new_hire",
2909
+ displayName: "New hire",
2910
+ iconConfig: {
2911
+ color: "#343CED",
2912
+ key: "person_icon",
2913
+ iconType: "GLYPH",
2914
+ name: "user",
2915
+ },
2916
+ },
2917
+ ],
2918
+ },
2919
+ },
2920
+ role: "ANSWER_MODERATOR",
417
2921
  },
418
- ],
419
- addedRoles: [
420
2922
  {
421
2923
  person: {
422
2924
  name: "George Clooney",
423
2925
  obfuscatedId: "abc123",
424
- relatedDocuments: [],
425
2926
  metadata: {
426
2927
  type: "FULL_TIME",
427
2928
  title: "Actor",
@@ -437,13 +2938,8 @@ async function run() {
437
2938
  handle: "<value>",
438
2939
  },
439
2940
  ],
440
- querySuggestions: {
441
- suggestions: [],
442
- },
443
- inviteInfo: {
444
- invites: [],
445
- },
446
- customFields: [],
2941
+ querySuggestions: {},
2942
+ inviteInfo: {},
447
2943
  badges: [
448
2944
  {
449
2945
  key: "deployment_name_new_hire",
@@ -458,88 +2954,14 @@ async function run() {
458
2954
  ],
459
2955
  },
460
2956
  },
461
- role: "EDITOR",
462
- },
463
- {
464
- role: "ANSWER_MODERATOR",
465
- },
466
- {
467
2957
  role: "OWNER",
468
2958
  },
469
2959
  ],
470
2960
  removedRoles: [
471
- {
472
- role: "OWNER",
473
- },
474
- {
475
- role: "VERIFIER",
476
- },
477
- ],
478
- roles: [
479
- {
480
- role: "EDITOR",
481
- },
482
- {
483
- role: "VERIFIER",
484
- },
485
- {
486
- role: "ANSWER_MODERATOR",
487
- },
488
- ],
489
- combinedAnswerText: {
490
- text: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.",
491
- },
492
- });
493
-
494
- // Handle the result
495
- console.log(result);
496
- }
497
-
498
- run();
499
- ```
500
-
501
- ### Standalone function
502
-
503
- The standalone function version of this method:
504
-
505
- ```typescript
506
- import { GleanCore } from "@gleanwork/api-client/core.js";
507
- import { clientAnswersUpdate } from "@gleanwork/api-client/funcs/clientAnswersUpdate.js";
508
- import { RFCDate } from "@gleanwork/api-client/types";
509
-
510
- // Use `GleanCore` for best tree-shaking performance.
511
- // You can create one instance of it to use across an application.
512
- const glean = new GleanCore({
513
- bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
514
- });
515
-
516
- async function run() {
517
- const res = await clientAnswersUpdate(glean, {
518
- id: 3,
519
- docId: "ANSWERS_answer_3",
520
- question: "Why is the sky blue?",
521
- bodyText: "From https://en.wikipedia.org/wiki/Diffuse_sky_radiation, the sky is blue because blue light is more strongly scattered than longer-wavelength light.",
522
- audienceFilters: [
523
- {
524
- fieldName: "type",
525
- values: [
526
- {
527
- value: "Spreadsheet",
528
- relationType: "EQUALS",
529
- },
530
- {
531
- value: "Presentation",
532
- relationType: "EQUALS",
533
- },
534
- ],
535
- },
536
- ],
537
- addedRoles: [
538
2961
  {
539
2962
  person: {
540
2963
  name: "George Clooney",
541
2964
  obfuscatedId: "abc123",
542
- relatedDocuments: [],
543
2965
  metadata: {
544
2966
  type: "FULL_TIME",
545
2967
  title: "Actor",
@@ -554,14 +2976,17 @@ async function run() {
554
2976
  datasource: "github",
555
2977
  handle: "<value>",
556
2978
  },
2979
+ {
2980
+ datasource: "github",
2981
+ handle: "<value>",
2982
+ },
2983
+ {
2984
+ datasource: "github",
2985
+ handle: "<value>",
2986
+ },
557
2987
  ],
558
- querySuggestions: {
559
- suggestions: [],
560
- },
561
- inviteInfo: {
562
- invites: [],
563
- },
564
- customFields: [],
2988
+ querySuggestions: {},
2989
+ inviteInfo: {},
565
2990
  badges: [
566
2991
  {
567
2992
  key: "deployment_name_new_hire",
@@ -576,31 +3001,176 @@ async function run() {
576
3001
  ],
577
3002
  },
578
3003
  },
579
- role: "EDITOR",
580
- },
581
- {
582
- role: "ANSWER_MODERATOR",
583
- },
584
- {
585
- role: "OWNER",
586
- },
587
- ],
588
- removedRoles: [
589
- {
590
3004
  role: "OWNER",
591
3005
  },
592
3006
  {
3007
+ person: {
3008
+ name: "George Clooney",
3009
+ obfuscatedId: "abc123",
3010
+ metadata: {
3011
+ type: "FULL_TIME",
3012
+ title: "Actor",
3013
+ department: "Movies",
3014
+ email: "george@example.com",
3015
+ location: "Hollywood, CA",
3016
+ phone: "6505551234",
3017
+ photoUrl: "https://example.com/george.jpg",
3018
+ startDate: new RFCDate("2000-01-23"),
3019
+ datasourceProfile: [
3020
+ {
3021
+ datasource: "github",
3022
+ handle: "<value>",
3023
+ },
3024
+ {
3025
+ datasource: "github",
3026
+ handle: "<value>",
3027
+ },
3028
+ ],
3029
+ querySuggestions: {},
3030
+ inviteInfo: {},
3031
+ badges: [
3032
+ {
3033
+ key: "deployment_name_new_hire",
3034
+ displayName: "New hire",
3035
+ iconConfig: {
3036
+ color: "#343CED",
3037
+ key: "person_icon",
3038
+ iconType: "GLYPH",
3039
+ name: "user",
3040
+ },
3041
+ },
3042
+ ],
3043
+ },
3044
+ },
593
3045
  role: "VERIFIER",
594
3046
  },
595
3047
  ],
596
3048
  roles: [
597
3049
  {
3050
+ person: {
3051
+ name: "George Clooney",
3052
+ obfuscatedId: "abc123",
3053
+ metadata: {
3054
+ type: "FULL_TIME",
3055
+ title: "Actor",
3056
+ department: "Movies",
3057
+ email: "george@example.com",
3058
+ location: "Hollywood, CA",
3059
+ phone: "6505551234",
3060
+ photoUrl: "https://example.com/george.jpg",
3061
+ startDate: new RFCDate("2000-01-23"),
3062
+ datasourceProfile: [
3063
+ {
3064
+ datasource: "github",
3065
+ handle: "<value>",
3066
+ },
3067
+ {
3068
+ datasource: "github",
3069
+ handle: "<value>",
3070
+ },
3071
+ {
3072
+ datasource: "github",
3073
+ handle: "<value>",
3074
+ },
3075
+ ],
3076
+ querySuggestions: {},
3077
+ inviteInfo: {},
3078
+ badges: [
3079
+ {
3080
+ key: "deployment_name_new_hire",
3081
+ displayName: "New hire",
3082
+ iconConfig: {
3083
+ color: "#343CED",
3084
+ key: "person_icon",
3085
+ iconType: "GLYPH",
3086
+ name: "user",
3087
+ },
3088
+ },
3089
+ ],
3090
+ },
3091
+ },
598
3092
  role: "EDITOR",
599
3093
  },
600
3094
  {
3095
+ person: {
3096
+ name: "George Clooney",
3097
+ obfuscatedId: "abc123",
3098
+ metadata: {
3099
+ type: "FULL_TIME",
3100
+ title: "Actor",
3101
+ department: "Movies",
3102
+ email: "george@example.com",
3103
+ location: "Hollywood, CA",
3104
+ phone: "6505551234",
3105
+ photoUrl: "https://example.com/george.jpg",
3106
+ startDate: new RFCDate("2000-01-23"),
3107
+ datasourceProfile: [
3108
+ {
3109
+ datasource: "github",
3110
+ handle: "<value>",
3111
+ },
3112
+ ],
3113
+ querySuggestions: {},
3114
+ inviteInfo: {},
3115
+ badges: [
3116
+ {
3117
+ key: "deployment_name_new_hire",
3118
+ displayName: "New hire",
3119
+ iconConfig: {
3120
+ color: "#343CED",
3121
+ key: "person_icon",
3122
+ iconType: "GLYPH",
3123
+ name: "user",
3124
+ },
3125
+ },
3126
+ ],
3127
+ },
3128
+ },
601
3129
  role: "VERIFIER",
602
3130
  },
603
3131
  {
3132
+ person: {
3133
+ name: "George Clooney",
3134
+ obfuscatedId: "abc123",
3135
+ metadata: {
3136
+ type: "FULL_TIME",
3137
+ title: "Actor",
3138
+ department: "Movies",
3139
+ email: "george@example.com",
3140
+ location: "Hollywood, CA",
3141
+ phone: "6505551234",
3142
+ photoUrl: "https://example.com/george.jpg",
3143
+ startDate: new RFCDate("2000-01-23"),
3144
+ datasourceProfile: [
3145
+ {
3146
+ datasource: "github",
3147
+ handle: "<value>",
3148
+ },
3149
+ {
3150
+ datasource: "github",
3151
+ handle: "<value>",
3152
+ },
3153
+ {
3154
+ datasource: "github",
3155
+ handle: "<value>",
3156
+ },
3157
+ ],
3158
+ querySuggestions: {},
3159
+ inviteInfo: {},
3160
+ badges: [
3161
+ {
3162
+ key: "deployment_name_new_hire",
3163
+ displayName: "New hire",
3164
+ iconConfig: {
3165
+ color: "#343CED",
3166
+ key: "person_icon",
3167
+ iconType: "GLYPH",
3168
+ name: "user",
3169
+ },
3170
+ },
3171
+ ],
3172
+ },
3173
+ },
604
3174
  role: "ANSWER_MODERATOR",
605
3175
  },
606
3176
  ],
@@ -668,7 +3238,7 @@ Read the details of a particular Answer given its ID.
668
3238
  import { Glean } from "@gleanwork/api-client";
669
3239
 
670
3240
  const glean = new Glean({
671
- bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
3241
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
672
3242
  });
673
3243
 
674
3244
  async function run() {
@@ -695,7 +3265,7 @@ import { clientAnswersRetrieve } from "@gleanwork/api-client/funcs/clientAnswers
695
3265
  // Use `GleanCore` for best tree-shaking performance.
696
3266
  // You can create one instance of it to use across an application.
697
3267
  const glean = new GleanCore({
698
- bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
3268
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
699
3269
  });
700
3270
 
701
3271
  async function run() {
@@ -763,7 +3333,7 @@ List Answers created by the current user.
763
3333
  import { Glean } from "@gleanwork/api-client";
764
3334
 
765
3335
  const glean = new Glean({
766
- bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
3336
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
767
3337
  });
768
3338
 
769
3339
  async function run() {
@@ -787,7 +3357,7 @@ import { clientAnswersList } from "@gleanwork/api-client/funcs/clientAnswersList
787
3357
  // Use `GleanCore` for best tree-shaking performance.
788
3358
  // You can create one instance of it to use across an application.
789
3359
  const glean = new GleanCore({
790
- bearerAuth: process.env["GLEAN_BEARER_AUTH"] ?? "",
3360
+ apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
791
3361
  });
792
3362
 
793
3363
  async function run() {