@band-ai/rest-client 0.0.117 → 0.0.118

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 (539) hide show
  1. package/README.md +12 -12
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +39 -12
  4. package/dist/cjs/Client.js +70 -25
  5. package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +6 -0
  6. package/dist/cjs/api/errors/ServiceUnavailableError.js +54 -0
  7. package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +1 -2
  8. package/dist/cjs/api/errors/index.d.ts +1 -0
  9. package/dist/cjs/api/errors/index.js +1 -0
  10. package/dist/cjs/api/resources/agentApiActivity/client/Client.d.ts +45 -0
  11. package/dist/cjs/api/resources/agentApiActivity/client/Client.js +137 -0
  12. package/dist/cjs/api/resources/agentApiActivity/client/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/agentApiActivity/client/index.js +17 -0
  14. package/dist/cjs/api/resources/agentApiActivity/client/requests/ReportAgentChatActivityRequest.d.ts +10 -0
  15. package/dist/cjs/api/resources/agentApiActivity/client/requests/ReportAgentChatActivityRequest.js +3 -0
  16. package/dist/cjs/api/resources/agentApiActivity/client/requests/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/agentApiActivity/client/requests/index.js +2 -0
  18. package/dist/cjs/api/resources/agentApiActivity/exports.d.ts +2 -0
  19. package/dist/cjs/api/resources/agentApiActivity/exports.js +21 -0
  20. package/dist/cjs/api/resources/agentApiActivity/index.d.ts +2 -0
  21. package/dist/cjs/api/resources/agentApiActivity/index.js +18 -0
  22. package/dist/cjs/api/resources/agentApiActivity/types/ReportAgentChatActivityResponse.d.ts +4 -0
  23. package/dist/cjs/api/resources/agentApiActivity/types/ReportAgentChatActivityResponse.js +3 -0
  24. package/dist/cjs/api/resources/agentApiActivity/types/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/agentApiActivity/types/index.js +17 -0
  26. package/dist/cjs/api/resources/agentApiChats/client/Client.d.ts +15 -15
  27. package/dist/cjs/api/resources/agentApiChats/client/Client.js +51 -51
  28. package/dist/cjs/api/resources/agentApiContacts/client/Client.d.ts +33 -33
  29. package/dist/cjs/api/resources/agentApiContacts/client/Client.js +88 -88
  30. package/dist/cjs/api/resources/agentApiMemories/client/Client.d.ts +50 -50
  31. package/dist/cjs/api/resources/agentApiMemories/client/Client.js +100 -100
  32. package/dist/cjs/api/resources/agentApiMessages/client/Client.d.ts +49 -49
  33. package/dist/cjs/api/resources/agentApiMessages/client/Client.js +79 -76
  34. package/dist/cjs/api/resources/humanApiAgents/client/Client.d.ts +107 -0
  35. package/dist/cjs/api/resources/humanApiAgents/client/Client.js +299 -0
  36. package/dist/cjs/api/resources/humanApiAgents/client/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/humanApiAgents/client/index.js +17 -0
  38. package/dist/cjs/api/resources/humanApiAgents/client/requests/DeleteMyAgentRequest.d.ts +10 -0
  39. package/dist/cjs/api/resources/humanApiAgents/client/requests/DeleteMyAgentRequest.js +3 -0
  40. package/dist/cjs/api/resources/humanApiAgents/client/requests/ListMyAgentsRequest.d.ts +35 -0
  41. package/dist/cjs/api/resources/humanApiAgents/client/requests/ListMyAgentsRequest.js +3 -0
  42. package/dist/cjs/api/resources/humanApiAgents/client/requests/RegisterMyAgentRequest.d.ts +13 -0
  43. package/dist/cjs/api/resources/humanApiAgents/client/requests/RegisterMyAgentRequest.js +3 -0
  44. package/dist/cjs/api/resources/humanApiAgents/client/requests/index.d.ts +3 -0
  45. package/dist/cjs/api/resources/humanApiAgents/client/requests/index.js +2 -0
  46. package/dist/cjs/api/resources/humanApiAgents/exports.d.ts +2 -0
  47. package/dist/cjs/api/resources/humanApiAgents/exports.js +21 -0
  48. package/dist/cjs/api/resources/humanApiAgents/index.d.ts +2 -0
  49. package/dist/cjs/api/resources/humanApiAgents/index.js +18 -0
  50. package/dist/cjs/api/resources/humanApiAgents/types/DeleteMyAgentResponse.d.ts +15 -0
  51. package/dist/cjs/api/resources/humanApiAgents/types/DeleteMyAgentResponse.js +3 -0
  52. package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsRequestOrder.d.ts +5 -0
  53. package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsRequestOrder.js +8 -0
  54. package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsRequestSort.d.ts +6 -0
  55. package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsRequestSort.js +9 -0
  56. package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsResponse.d.ts +36 -0
  57. package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsResponse.js +3 -0
  58. package/dist/cjs/api/resources/humanApiAgents/types/RegisterMyAgentResponse.d.ts +27 -0
  59. package/dist/cjs/api/resources/humanApiAgents/types/RegisterMyAgentResponse.js +3 -0
  60. package/dist/cjs/api/resources/humanApiAgents/types/index.d.ts +5 -0
  61. package/dist/cjs/api/resources/humanApiAgents/types/index.js +21 -0
  62. package/dist/cjs/api/resources/humanApiChats/client/Client.d.ts +81 -0
  63. package/dist/cjs/api/resources/humanApiChats/client/Client.js +262 -0
  64. package/dist/cjs/api/resources/humanApiChats/client/index.d.ts +1 -0
  65. package/dist/cjs/api/resources/humanApiChats/client/index.js +17 -0
  66. package/dist/cjs/api/resources/humanApiChats/client/requests/CreateMyChatRoomRequest.d.ts +17 -0
  67. package/dist/cjs/api/resources/humanApiChats/client/requests/CreateMyChatRoomRequest.js +3 -0
  68. package/dist/cjs/api/resources/humanApiChats/client/requests/ListMyChatsRequest.d.ts +32 -0
  69. package/dist/cjs/api/resources/humanApiChats/client/requests/ListMyChatsRequest.js +3 -0
  70. package/dist/cjs/api/resources/humanApiChats/client/requests/index.d.ts +2 -0
  71. package/dist/cjs/api/resources/humanApiChats/client/requests/index.js +2 -0
  72. package/dist/cjs/api/resources/humanApiChats/exports.d.ts +2 -0
  73. package/dist/cjs/api/resources/humanApiChats/exports.js +21 -0
  74. package/dist/cjs/api/resources/humanApiChats/index.d.ts +2 -0
  75. package/dist/cjs/api/resources/humanApiChats/index.js +18 -0
  76. package/dist/cjs/api/resources/humanApiChats/types/CreateMyChatRoomResponse.d.ts +4 -0
  77. package/dist/cjs/api/resources/humanApiChats/types/CreateMyChatRoomResponse.js +3 -0
  78. package/dist/cjs/api/resources/humanApiChats/types/GetMyChatRoomResponse.d.ts +4 -0
  79. package/dist/cjs/api/resources/humanApiChats/types/GetMyChatRoomResponse.js +3 -0
  80. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestOrder.d.ts +5 -0
  81. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestOrder.js +8 -0
  82. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestSortBy.d.ts +5 -0
  83. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestSortBy.js +8 -0
  84. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestStatus.d.ts +6 -0
  85. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestStatus.js +9 -0
  86. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestType.d.ts +6 -0
  87. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestType.js +9 -0
  88. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsResponse.d.ts +23 -0
  89. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsResponse.js +3 -0
  90. package/dist/cjs/api/resources/humanApiChats/types/index.d.ts +7 -0
  91. package/dist/cjs/api/resources/humanApiChats/types/index.js +23 -0
  92. package/dist/cjs/api/resources/humanApiContacts/client/Client.d.ts +201 -0
  93. package/dist/cjs/api/resources/humanApiContacts/client/Client.js +648 -0
  94. package/dist/cjs/api/resources/humanApiContacts/client/index.d.ts +1 -0
  95. package/dist/cjs/api/resources/humanApiContacts/client/index.js +17 -0
  96. package/dist/cjs/api/resources/humanApiContacts/client/requests/CreateContactRequestRequest.d.ts +19 -0
  97. package/dist/cjs/api/resources/humanApiContacts/client/requests/CreateContactRequestRequest.js +3 -0
  98. package/dist/cjs/api/resources/humanApiContacts/client/requests/ListMyContactsRequest.d.ts +13 -0
  99. package/dist/cjs/api/resources/humanApiContacts/client/requests/ListMyContactsRequest.js +3 -0
  100. package/dist/cjs/api/resources/humanApiContacts/client/requests/ListReceivedContactRequestsRequest.d.ts +13 -0
  101. package/dist/cjs/api/resources/humanApiContacts/client/requests/ListReceivedContactRequestsRequest.js +3 -0
  102. package/dist/cjs/api/resources/humanApiContacts/client/requests/ListSentContactRequestsRequest.d.ts +17 -0
  103. package/dist/cjs/api/resources/humanApiContacts/client/requests/ListSentContactRequestsRequest.js +3 -0
  104. package/dist/cjs/api/resources/humanApiContacts/client/requests/RemoveMyContactRequest.d.ts +10 -0
  105. package/dist/cjs/api/resources/humanApiContacts/client/requests/RemoveMyContactRequest.js +3 -0
  106. package/dist/cjs/api/resources/humanApiContacts/client/requests/ResolveHandleRequest.d.ts +10 -0
  107. package/dist/cjs/api/resources/humanApiContacts/client/requests/ResolveHandleRequest.js +3 -0
  108. package/dist/cjs/api/resources/humanApiContacts/client/requests/index.d.ts +6 -0
  109. package/dist/cjs/api/resources/humanApiContacts/client/requests/index.js +2 -0
  110. package/dist/cjs/api/resources/humanApiContacts/exports.d.ts +2 -0
  111. package/dist/cjs/api/resources/humanApiContacts/exports.js +21 -0
  112. package/dist/cjs/api/resources/humanApiContacts/index.d.ts +2 -0
  113. package/dist/cjs/api/resources/humanApiContacts/index.js +18 -0
  114. package/dist/cjs/api/resources/humanApiContacts/types/ApproveContactRequestResponse.d.ts +4 -0
  115. package/dist/cjs/api/resources/humanApiContacts/types/ApproveContactRequestResponse.js +3 -0
  116. package/dist/cjs/api/resources/humanApiContacts/types/CancelContactRequestResponse.d.ts +4 -0
  117. package/dist/cjs/api/resources/humanApiContacts/types/CancelContactRequestResponse.js +3 -0
  118. package/dist/cjs/api/resources/humanApiContacts/types/CreateContactRequestResponse.d.ts +4 -0
  119. package/dist/cjs/api/resources/humanApiContacts/types/CreateContactRequestResponse.js +3 -0
  120. package/dist/cjs/api/resources/humanApiContacts/types/ListMyContactsResponse.d.ts +21 -0
  121. package/dist/cjs/api/resources/humanApiContacts/types/ListMyContactsResponse.js +3 -0
  122. package/dist/cjs/api/resources/humanApiContacts/types/ListReceivedContactRequestsResponse.d.ts +21 -0
  123. package/dist/cjs/api/resources/humanApiContacts/types/ListReceivedContactRequestsResponse.js +3 -0
  124. package/dist/cjs/api/resources/humanApiContacts/types/ListSentContactRequestsRequestStatus.d.ts +9 -0
  125. package/dist/cjs/api/resources/humanApiContacts/types/ListSentContactRequestsRequestStatus.js +12 -0
  126. package/dist/cjs/api/resources/humanApiContacts/types/ListSentContactRequestsResponse.d.ts +21 -0
  127. package/dist/cjs/api/resources/humanApiContacts/types/ListSentContactRequestsResponse.js +3 -0
  128. package/dist/cjs/api/resources/humanApiContacts/types/RejectContactRequestResponse.d.ts +4 -0
  129. package/dist/cjs/api/resources/humanApiContacts/types/RejectContactRequestResponse.js +3 -0
  130. package/dist/cjs/api/resources/humanApiContacts/types/RemoveMyContactResponse.d.ts +8 -0
  131. package/dist/cjs/api/resources/humanApiContacts/types/RemoveMyContactResponse.js +3 -0
  132. package/dist/cjs/api/resources/humanApiContacts/types/ResolveHandleResponse.d.ts +4 -0
  133. package/dist/cjs/api/resources/humanApiContacts/types/ResolveHandleResponse.js +3 -0
  134. package/dist/cjs/api/resources/humanApiContacts/types/index.d.ts +10 -0
  135. package/dist/cjs/api/resources/humanApiContacts/types/index.js +26 -0
  136. package/dist/cjs/api/resources/humanApiMemories/client/Client.d.ts +131 -0
  137. package/dist/cjs/api/resources/humanApiMemories/client/Client.js +426 -0
  138. package/dist/cjs/api/resources/humanApiMemories/client/index.d.ts +1 -0
  139. package/dist/cjs/api/resources/humanApiMemories/client/index.js +17 -0
  140. package/dist/cjs/api/resources/humanApiMemories/client/requests/ListUserMemoriesRequest.d.ts +31 -0
  141. package/dist/cjs/api/resources/humanApiMemories/client/requests/ListUserMemoriesRequest.js +3 -0
  142. package/dist/cjs/api/resources/humanApiMemories/client/requests/index.d.ts +1 -0
  143. package/dist/cjs/api/resources/humanApiMemories/client/requests/index.js +2 -0
  144. package/dist/cjs/api/resources/humanApiMemories/exports.d.ts +2 -0
  145. package/dist/cjs/api/resources/humanApiMemories/exports.js +21 -0
  146. package/dist/cjs/api/resources/humanApiMemories/index.d.ts +2 -0
  147. package/dist/cjs/api/resources/humanApiMemories/index.js +18 -0
  148. package/dist/cjs/api/resources/humanApiMemories/types/ArchiveUserMemoryResponse.d.ts +4 -0
  149. package/dist/cjs/api/resources/humanApiMemories/types/ArchiveUserMemoryResponse.js +3 -0
  150. package/dist/cjs/api/resources/humanApiMemories/types/GetUserMemoryResponse.d.ts +4 -0
  151. package/dist/cjs/api/resources/humanApiMemories/types/GetUserMemoryResponse.js +3 -0
  152. package/dist/cjs/api/resources/humanApiMemories/types/ListUserMemoriesResponse.d.ts +13 -0
  153. package/dist/cjs/api/resources/humanApiMemories/types/ListUserMemoriesResponse.js +3 -0
  154. package/dist/cjs/api/resources/humanApiMemories/types/RestoreUserMemoryResponse.d.ts +4 -0
  155. package/dist/cjs/api/resources/humanApiMemories/types/RestoreUserMemoryResponse.js +3 -0
  156. package/dist/cjs/api/resources/humanApiMemories/types/SupersedeUserMemoryResponse.d.ts +4 -0
  157. package/dist/cjs/api/resources/humanApiMemories/types/SupersedeUserMemoryResponse.js +3 -0
  158. package/dist/cjs/api/resources/humanApiMemories/types/index.d.ts +5 -0
  159. package/dist/cjs/api/resources/humanApiMemories/types/index.js +21 -0
  160. package/dist/cjs/api/resources/humanApiMessages/client/Client.d.ts +97 -0
  161. package/dist/cjs/api/resources/humanApiMessages/client/Client.js +237 -0
  162. package/dist/cjs/api/resources/humanApiMessages/client/index.d.ts +1 -0
  163. package/dist/cjs/api/resources/humanApiMessages/client/index.js +17 -0
  164. package/dist/cjs/api/resources/humanApiMessages/client/requests/ListMyChatMessagesRequest.d.ts +26 -0
  165. package/dist/cjs/api/resources/humanApiMessages/client/requests/ListMyChatMessagesRequest.js +3 -0
  166. package/dist/cjs/api/resources/humanApiMessages/client/requests/SendMyChatMessageRequest.d.ts +15 -0
  167. package/dist/cjs/api/resources/humanApiMessages/client/requests/SendMyChatMessageRequest.js +3 -0
  168. package/dist/cjs/api/resources/humanApiMessages/client/requests/index.d.ts +2 -0
  169. package/dist/cjs/api/resources/humanApiMessages/client/requests/index.js +2 -0
  170. package/dist/cjs/api/resources/humanApiMessages/exports.d.ts +2 -0
  171. package/dist/cjs/api/resources/humanApiMessages/exports.js +21 -0
  172. package/dist/cjs/api/resources/humanApiMessages/index.d.ts +2 -0
  173. package/dist/cjs/api/resources/humanApiMessages/index.js +18 -0
  174. package/dist/cjs/api/resources/humanApiMessages/types/ListMyChatMessagesRequestMessageType.d.ts +10 -0
  175. package/dist/cjs/api/resources/humanApiMessages/types/ListMyChatMessagesRequestMessageType.js +13 -0
  176. package/dist/cjs/api/resources/humanApiMessages/types/ListMyChatMessagesResponse.d.ts +23 -0
  177. package/dist/cjs/api/resources/humanApiMessages/types/ListMyChatMessagesResponse.js +3 -0
  178. package/dist/cjs/api/resources/humanApiMessages/types/SendMyChatMessageResponse.d.ts +4 -0
  179. package/dist/cjs/api/resources/humanApiMessages/types/SendMyChatMessageResponse.js +3 -0
  180. package/dist/cjs/api/resources/humanApiMessages/types/index.d.ts +3 -0
  181. package/dist/cjs/api/resources/humanApiMessages/types/index.js +19 -0
  182. package/dist/cjs/api/resources/humanApiParticipants/client/Client.d.ts +84 -0
  183. package/dist/cjs/api/resources/humanApiParticipants/client/Client.js +264 -0
  184. package/dist/cjs/api/resources/humanApiParticipants/client/index.d.ts +1 -0
  185. package/dist/cjs/api/resources/humanApiParticipants/client/index.js +17 -0
  186. package/dist/cjs/api/resources/humanApiParticipants/client/requests/AddMyChatParticipantRequest.d.ts +12 -0
  187. package/dist/cjs/api/resources/humanApiParticipants/client/requests/AddMyChatParticipantRequest.js +3 -0
  188. package/dist/cjs/api/resources/humanApiParticipants/client/requests/ListMyChatParticipantsRequest.d.ts +23 -0
  189. package/dist/cjs/api/resources/humanApiParticipants/client/requests/ListMyChatParticipantsRequest.js +3 -0
  190. package/dist/cjs/api/resources/humanApiParticipants/client/requests/index.d.ts +2 -0
  191. package/dist/cjs/api/resources/humanApiParticipants/client/requests/index.js +2 -0
  192. package/dist/cjs/api/resources/humanApiParticipants/exports.d.ts +2 -0
  193. package/dist/cjs/api/resources/humanApiParticipants/exports.js +21 -0
  194. package/dist/cjs/api/resources/humanApiParticipants/index.d.ts +2 -0
  195. package/dist/cjs/api/resources/humanApiParticipants/index.js +18 -0
  196. package/dist/cjs/api/resources/humanApiParticipants/types/AddMyChatParticipantResponse.d.ts +4 -0
  197. package/dist/cjs/api/resources/humanApiParticipants/types/AddMyChatParticipantResponse.js +3 -0
  198. package/dist/cjs/api/resources/humanApiParticipants/types/ListMyChatParticipantsRequestParticipantType.d.ts +5 -0
  199. package/dist/cjs/api/resources/humanApiParticipants/types/ListMyChatParticipantsRequestParticipantType.js +8 -0
  200. package/dist/cjs/api/resources/humanApiParticipants/types/ListMyChatParticipantsResponse.d.ts +23 -0
  201. package/dist/cjs/api/resources/humanApiParticipants/types/ListMyChatParticipantsResponse.js +3 -0
  202. package/dist/cjs/api/resources/humanApiParticipants/types/RemoveMyChatParticipantResponse.d.ts +4 -0
  203. package/dist/cjs/api/resources/humanApiParticipants/types/RemoveMyChatParticipantResponse.js +3 -0
  204. package/dist/cjs/api/resources/humanApiParticipants/types/index.d.ts +4 -0
  205. package/dist/cjs/api/resources/humanApiParticipants/types/index.js +20 -0
  206. package/dist/cjs/api/resources/humanApiPeers/client/Client.d.ts +46 -0
  207. package/dist/cjs/api/resources/humanApiPeers/client/Client.js +140 -0
  208. package/dist/cjs/api/resources/humanApiPeers/client/index.d.ts +1 -0
  209. package/dist/cjs/api/resources/humanApiPeers/client/index.js +17 -0
  210. package/dist/cjs/api/resources/humanApiPeers/client/requests/ListMyPeersRequest.d.ts +20 -0
  211. package/dist/cjs/api/resources/humanApiPeers/client/requests/ListMyPeersRequest.js +3 -0
  212. package/dist/cjs/api/resources/humanApiPeers/client/requests/index.d.ts +1 -0
  213. package/dist/cjs/api/resources/humanApiPeers/client/requests/index.js +2 -0
  214. package/dist/cjs/api/resources/humanApiPeers/exports.d.ts +2 -0
  215. package/dist/cjs/api/resources/humanApiPeers/exports.js +21 -0
  216. package/dist/cjs/api/resources/humanApiPeers/index.d.ts +2 -0
  217. package/dist/cjs/api/resources/humanApiPeers/index.js +18 -0
  218. package/dist/cjs/api/resources/humanApiPeers/types/ListMyPeersRequestType.d.ts +5 -0
  219. package/dist/cjs/api/resources/humanApiPeers/types/ListMyPeersRequestType.js +8 -0
  220. package/dist/cjs/api/resources/humanApiPeers/types/ListMyPeersResponse.d.ts +13 -0
  221. package/dist/cjs/api/resources/humanApiPeers/types/ListMyPeersResponse.js +3 -0
  222. package/dist/cjs/api/resources/humanApiPeers/types/index.d.ts +2 -0
  223. package/dist/cjs/api/resources/humanApiPeers/types/index.js +18 -0
  224. package/dist/cjs/api/resources/humanApiProfile/client/Client.d.ts +46 -0
  225. package/dist/cjs/api/resources/humanApiProfile/client/Client.js +171 -0
  226. package/dist/cjs/api/resources/humanApiProfile/client/index.d.ts +1 -0
  227. package/dist/cjs/api/resources/humanApiProfile/client/index.js +17 -0
  228. package/dist/cjs/api/resources/humanApiProfile/client/requests/UpdateMyProfileRequest.d.ts +21 -0
  229. package/dist/cjs/api/resources/humanApiProfile/client/requests/UpdateMyProfileRequest.js +3 -0
  230. package/dist/cjs/api/resources/humanApiProfile/client/requests/index.d.ts +1 -0
  231. package/dist/cjs/api/resources/humanApiProfile/client/requests/index.js +2 -0
  232. package/dist/cjs/api/resources/humanApiProfile/exports.d.ts +2 -0
  233. package/dist/cjs/api/resources/humanApiProfile/exports.js +21 -0
  234. package/dist/cjs/api/resources/humanApiProfile/index.d.ts +2 -0
  235. package/dist/cjs/api/resources/humanApiProfile/index.js +18 -0
  236. package/dist/cjs/api/resources/humanApiProfile/types/GetMyProfileResponse.d.ts +4 -0
  237. package/dist/cjs/api/resources/humanApiProfile/types/GetMyProfileResponse.js +3 -0
  238. package/dist/cjs/api/resources/humanApiProfile/types/UpdateMyProfileResponse.d.ts +4 -0
  239. package/dist/cjs/api/resources/humanApiProfile/types/UpdateMyProfileResponse.js +3 -0
  240. package/dist/cjs/api/resources/humanApiProfile/types/index.d.ts +2 -0
  241. package/dist/cjs/api/resources/humanApiProfile/types/index.js +18 -0
  242. package/dist/cjs/api/resources/index.d.ts +27 -0
  243. package/dist/cjs/api/resources/index.js +28 -1
  244. package/dist/cjs/api/types/AgentActivityResponse.d.ts +7 -0
  245. package/dist/cjs/api/types/AgentActivityResponse.js +3 -0
  246. package/dist/cjs/api/types/AgentRegisterRequest.d.ts +9 -0
  247. package/dist/cjs/api/types/AgentRegisterRequest.js +3 -0
  248. package/dist/cjs/api/types/ChatParticipantDetails.d.ts +29 -0
  249. package/dist/cjs/api/types/ChatParticipantDetails.js +12 -0
  250. package/dist/cjs/api/types/Contact.d.ts +41 -0
  251. package/dist/cjs/api/types/Contact.js +12 -0
  252. package/dist/cjs/api/types/ContactRequest.d.ts +68 -0
  253. package/dist/cjs/api/types/ContactRequest.js +25 -0
  254. package/dist/cjs/api/types/ContactRequestActionResponse.d.ts +18 -0
  255. package/dist/cjs/api/types/ContactRequestActionResponse.js +13 -0
  256. package/dist/cjs/api/types/MeChatRoom.d.ts +35 -0
  257. package/dist/cjs/api/types/MeChatRoom.js +19 -0
  258. package/dist/cjs/api/types/MyAgent.d.ts +29 -0
  259. package/dist/cjs/api/types/MyAgent.js +3 -0
  260. package/dist/cjs/api/types/ResolvedEntity.d.ts +21 -0
  261. package/dist/cjs/api/types/ResolvedEntity.js +12 -0
  262. package/dist/cjs/api/types/UserDetails.d.ts +25 -0
  263. package/dist/cjs/api/types/UserDetails.js +12 -0
  264. package/dist/cjs/api/types/UserMemory.d.ts +73 -0
  265. package/dist/cjs/api/types/UserMemory.js +40 -0
  266. package/dist/cjs/api/types/index.d.ts +11 -0
  267. package/dist/cjs/api/types/index.js +11 -0
  268. package/dist/cjs/version.d.ts +1 -1
  269. package/dist/cjs/version.js +1 -1
  270. package/dist/esm/BaseClient.mjs +2 -2
  271. package/dist/esm/Client.d.mts +39 -12
  272. package/dist/esm/Client.mjs +59 -14
  273. package/dist/esm/api/errors/ServiceUnavailableError.d.mts +6 -0
  274. package/dist/esm/api/errors/ServiceUnavailableError.mjs +17 -0
  275. package/dist/esm/api/errors/UnprocessableEntityError.d.mts +1 -2
  276. package/dist/esm/api/errors/index.d.mts +1 -0
  277. package/dist/esm/api/errors/index.mjs +1 -0
  278. package/dist/esm/api/resources/agentApiActivity/client/Client.d.mts +45 -0
  279. package/dist/esm/api/resources/agentApiActivity/client/Client.mjs +100 -0
  280. package/dist/esm/api/resources/agentApiActivity/client/index.d.mts +1 -0
  281. package/dist/esm/api/resources/agentApiActivity/client/index.mjs +1 -0
  282. package/dist/esm/api/resources/agentApiActivity/client/requests/ReportAgentChatActivityRequest.d.mts +10 -0
  283. package/dist/esm/api/resources/agentApiActivity/client/requests/ReportAgentChatActivityRequest.mjs +2 -0
  284. package/dist/esm/api/resources/agentApiActivity/client/requests/index.d.mts +1 -0
  285. package/dist/esm/api/resources/agentApiActivity/client/requests/index.mjs +1 -0
  286. package/dist/esm/api/resources/agentApiActivity/exports.d.mts +2 -0
  287. package/dist/esm/api/resources/agentApiActivity/exports.mjs +3 -0
  288. package/dist/esm/api/resources/agentApiActivity/index.d.mts +2 -0
  289. package/dist/esm/api/resources/agentApiActivity/index.mjs +2 -0
  290. package/dist/esm/api/resources/agentApiActivity/types/ReportAgentChatActivityResponse.d.mts +4 -0
  291. package/dist/esm/api/resources/agentApiActivity/types/ReportAgentChatActivityResponse.mjs +2 -0
  292. package/dist/esm/api/resources/agentApiActivity/types/index.d.mts +1 -0
  293. package/dist/esm/api/resources/agentApiActivity/types/index.mjs +1 -0
  294. package/dist/esm/api/resources/agentApiChats/client/Client.d.mts +15 -15
  295. package/dist/esm/api/resources/agentApiChats/client/Client.mjs +51 -51
  296. package/dist/esm/api/resources/agentApiContacts/client/Client.d.mts +33 -33
  297. package/dist/esm/api/resources/agentApiContacts/client/Client.mjs +88 -88
  298. package/dist/esm/api/resources/agentApiMemories/client/Client.d.mts +50 -50
  299. package/dist/esm/api/resources/agentApiMemories/client/Client.mjs +100 -100
  300. package/dist/esm/api/resources/agentApiMessages/client/Client.d.mts +49 -49
  301. package/dist/esm/api/resources/agentApiMessages/client/Client.mjs +79 -76
  302. package/dist/esm/api/resources/humanApiAgents/client/Client.d.mts +107 -0
  303. package/dist/esm/api/resources/humanApiAgents/client/Client.mjs +262 -0
  304. package/dist/esm/api/resources/humanApiAgents/client/index.d.mts +1 -0
  305. package/dist/esm/api/resources/humanApiAgents/client/index.mjs +1 -0
  306. package/dist/esm/api/resources/humanApiAgents/client/requests/DeleteMyAgentRequest.d.mts +10 -0
  307. package/dist/esm/api/resources/humanApiAgents/client/requests/DeleteMyAgentRequest.mjs +2 -0
  308. package/dist/esm/api/resources/humanApiAgents/client/requests/ListMyAgentsRequest.d.mts +35 -0
  309. package/dist/esm/api/resources/humanApiAgents/client/requests/ListMyAgentsRequest.mjs +2 -0
  310. package/dist/esm/api/resources/humanApiAgents/client/requests/RegisterMyAgentRequest.d.mts +13 -0
  311. package/dist/esm/api/resources/humanApiAgents/client/requests/RegisterMyAgentRequest.mjs +2 -0
  312. package/dist/esm/api/resources/humanApiAgents/client/requests/index.d.mts +3 -0
  313. package/dist/esm/api/resources/humanApiAgents/client/requests/index.mjs +1 -0
  314. package/dist/esm/api/resources/humanApiAgents/exports.d.mts +2 -0
  315. package/dist/esm/api/resources/humanApiAgents/exports.mjs +3 -0
  316. package/dist/esm/api/resources/humanApiAgents/index.d.mts +2 -0
  317. package/dist/esm/api/resources/humanApiAgents/index.mjs +2 -0
  318. package/dist/esm/api/resources/humanApiAgents/types/DeleteMyAgentResponse.d.mts +15 -0
  319. package/dist/esm/api/resources/humanApiAgents/types/DeleteMyAgentResponse.mjs +2 -0
  320. package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsRequestOrder.d.mts +5 -0
  321. package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsRequestOrder.mjs +5 -0
  322. package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsRequestSort.d.mts +6 -0
  323. package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsRequestSort.mjs +6 -0
  324. package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsResponse.d.mts +36 -0
  325. package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsResponse.mjs +2 -0
  326. package/dist/esm/api/resources/humanApiAgents/types/RegisterMyAgentResponse.d.mts +27 -0
  327. package/dist/esm/api/resources/humanApiAgents/types/RegisterMyAgentResponse.mjs +2 -0
  328. package/dist/esm/api/resources/humanApiAgents/types/index.d.mts +5 -0
  329. package/dist/esm/api/resources/humanApiAgents/types/index.mjs +5 -0
  330. package/dist/esm/api/resources/humanApiChats/client/Client.d.mts +81 -0
  331. package/dist/esm/api/resources/humanApiChats/client/Client.mjs +225 -0
  332. package/dist/esm/api/resources/humanApiChats/client/index.d.mts +1 -0
  333. package/dist/esm/api/resources/humanApiChats/client/index.mjs +1 -0
  334. package/dist/esm/api/resources/humanApiChats/client/requests/CreateMyChatRoomRequest.d.mts +17 -0
  335. package/dist/esm/api/resources/humanApiChats/client/requests/CreateMyChatRoomRequest.mjs +2 -0
  336. package/dist/esm/api/resources/humanApiChats/client/requests/ListMyChatsRequest.d.mts +32 -0
  337. package/dist/esm/api/resources/humanApiChats/client/requests/ListMyChatsRequest.mjs +2 -0
  338. package/dist/esm/api/resources/humanApiChats/client/requests/index.d.mts +2 -0
  339. package/dist/esm/api/resources/humanApiChats/client/requests/index.mjs +1 -0
  340. package/dist/esm/api/resources/humanApiChats/exports.d.mts +2 -0
  341. package/dist/esm/api/resources/humanApiChats/exports.mjs +3 -0
  342. package/dist/esm/api/resources/humanApiChats/index.d.mts +2 -0
  343. package/dist/esm/api/resources/humanApiChats/index.mjs +2 -0
  344. package/dist/esm/api/resources/humanApiChats/types/CreateMyChatRoomResponse.d.mts +4 -0
  345. package/dist/esm/api/resources/humanApiChats/types/CreateMyChatRoomResponse.mjs +2 -0
  346. package/dist/esm/api/resources/humanApiChats/types/GetMyChatRoomResponse.d.mts +4 -0
  347. package/dist/esm/api/resources/humanApiChats/types/GetMyChatRoomResponse.mjs +2 -0
  348. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestOrder.d.mts +5 -0
  349. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestOrder.mjs +5 -0
  350. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestSortBy.d.mts +5 -0
  351. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestSortBy.mjs +5 -0
  352. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestStatus.d.mts +6 -0
  353. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestStatus.mjs +6 -0
  354. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestType.d.mts +6 -0
  355. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestType.mjs +6 -0
  356. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsResponse.d.mts +23 -0
  357. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsResponse.mjs +2 -0
  358. package/dist/esm/api/resources/humanApiChats/types/index.d.mts +7 -0
  359. package/dist/esm/api/resources/humanApiChats/types/index.mjs +7 -0
  360. package/dist/esm/api/resources/humanApiContacts/client/Client.d.mts +201 -0
  361. package/dist/esm/api/resources/humanApiContacts/client/Client.mjs +611 -0
  362. package/dist/esm/api/resources/humanApiContacts/client/index.d.mts +1 -0
  363. package/dist/esm/api/resources/humanApiContacts/client/index.mjs +1 -0
  364. package/dist/esm/api/resources/humanApiContacts/client/requests/CreateContactRequestRequest.d.mts +19 -0
  365. package/dist/esm/api/resources/humanApiContacts/client/requests/CreateContactRequestRequest.mjs +2 -0
  366. package/dist/esm/api/resources/humanApiContacts/client/requests/ListMyContactsRequest.d.mts +13 -0
  367. package/dist/esm/api/resources/humanApiContacts/client/requests/ListMyContactsRequest.mjs +2 -0
  368. package/dist/esm/api/resources/humanApiContacts/client/requests/ListReceivedContactRequestsRequest.d.mts +13 -0
  369. package/dist/esm/api/resources/humanApiContacts/client/requests/ListReceivedContactRequestsRequest.mjs +2 -0
  370. package/dist/esm/api/resources/humanApiContacts/client/requests/ListSentContactRequestsRequest.d.mts +17 -0
  371. package/dist/esm/api/resources/humanApiContacts/client/requests/ListSentContactRequestsRequest.mjs +2 -0
  372. package/dist/esm/api/resources/humanApiContacts/client/requests/RemoveMyContactRequest.d.mts +10 -0
  373. package/dist/esm/api/resources/humanApiContacts/client/requests/RemoveMyContactRequest.mjs +2 -0
  374. package/dist/esm/api/resources/humanApiContacts/client/requests/ResolveHandleRequest.d.mts +10 -0
  375. package/dist/esm/api/resources/humanApiContacts/client/requests/ResolveHandleRequest.mjs +2 -0
  376. package/dist/esm/api/resources/humanApiContacts/client/requests/index.d.mts +6 -0
  377. package/dist/esm/api/resources/humanApiContacts/client/requests/index.mjs +1 -0
  378. package/dist/esm/api/resources/humanApiContacts/exports.d.mts +2 -0
  379. package/dist/esm/api/resources/humanApiContacts/exports.mjs +3 -0
  380. package/dist/esm/api/resources/humanApiContacts/index.d.mts +2 -0
  381. package/dist/esm/api/resources/humanApiContacts/index.mjs +2 -0
  382. package/dist/esm/api/resources/humanApiContacts/types/ApproveContactRequestResponse.d.mts +4 -0
  383. package/dist/esm/api/resources/humanApiContacts/types/ApproveContactRequestResponse.mjs +2 -0
  384. package/dist/esm/api/resources/humanApiContacts/types/CancelContactRequestResponse.d.mts +4 -0
  385. package/dist/esm/api/resources/humanApiContacts/types/CancelContactRequestResponse.mjs +2 -0
  386. package/dist/esm/api/resources/humanApiContacts/types/CreateContactRequestResponse.d.mts +4 -0
  387. package/dist/esm/api/resources/humanApiContacts/types/CreateContactRequestResponse.mjs +2 -0
  388. package/dist/esm/api/resources/humanApiContacts/types/ListMyContactsResponse.d.mts +21 -0
  389. package/dist/esm/api/resources/humanApiContacts/types/ListMyContactsResponse.mjs +2 -0
  390. package/dist/esm/api/resources/humanApiContacts/types/ListReceivedContactRequestsResponse.d.mts +21 -0
  391. package/dist/esm/api/resources/humanApiContacts/types/ListReceivedContactRequestsResponse.mjs +2 -0
  392. package/dist/esm/api/resources/humanApiContacts/types/ListSentContactRequestsRequestStatus.d.mts +9 -0
  393. package/dist/esm/api/resources/humanApiContacts/types/ListSentContactRequestsRequestStatus.mjs +9 -0
  394. package/dist/esm/api/resources/humanApiContacts/types/ListSentContactRequestsResponse.d.mts +21 -0
  395. package/dist/esm/api/resources/humanApiContacts/types/ListSentContactRequestsResponse.mjs +2 -0
  396. package/dist/esm/api/resources/humanApiContacts/types/RejectContactRequestResponse.d.mts +4 -0
  397. package/dist/esm/api/resources/humanApiContacts/types/RejectContactRequestResponse.mjs +2 -0
  398. package/dist/esm/api/resources/humanApiContacts/types/RemoveMyContactResponse.d.mts +8 -0
  399. package/dist/esm/api/resources/humanApiContacts/types/RemoveMyContactResponse.mjs +2 -0
  400. package/dist/esm/api/resources/humanApiContacts/types/ResolveHandleResponse.d.mts +4 -0
  401. package/dist/esm/api/resources/humanApiContacts/types/ResolveHandleResponse.mjs +2 -0
  402. package/dist/esm/api/resources/humanApiContacts/types/index.d.mts +10 -0
  403. package/dist/esm/api/resources/humanApiContacts/types/index.mjs +10 -0
  404. package/dist/esm/api/resources/humanApiMemories/client/Client.d.mts +131 -0
  405. package/dist/esm/api/resources/humanApiMemories/client/Client.mjs +389 -0
  406. package/dist/esm/api/resources/humanApiMemories/client/index.d.mts +1 -0
  407. package/dist/esm/api/resources/humanApiMemories/client/index.mjs +1 -0
  408. package/dist/esm/api/resources/humanApiMemories/client/requests/ListUserMemoriesRequest.d.mts +31 -0
  409. package/dist/esm/api/resources/humanApiMemories/client/requests/ListUserMemoriesRequest.mjs +2 -0
  410. package/dist/esm/api/resources/humanApiMemories/client/requests/index.d.mts +1 -0
  411. package/dist/esm/api/resources/humanApiMemories/client/requests/index.mjs +1 -0
  412. package/dist/esm/api/resources/humanApiMemories/exports.d.mts +2 -0
  413. package/dist/esm/api/resources/humanApiMemories/exports.mjs +3 -0
  414. package/dist/esm/api/resources/humanApiMemories/index.d.mts +2 -0
  415. package/dist/esm/api/resources/humanApiMemories/index.mjs +2 -0
  416. package/dist/esm/api/resources/humanApiMemories/types/ArchiveUserMemoryResponse.d.mts +4 -0
  417. package/dist/esm/api/resources/humanApiMemories/types/ArchiveUserMemoryResponse.mjs +2 -0
  418. package/dist/esm/api/resources/humanApiMemories/types/GetUserMemoryResponse.d.mts +4 -0
  419. package/dist/esm/api/resources/humanApiMemories/types/GetUserMemoryResponse.mjs +2 -0
  420. package/dist/esm/api/resources/humanApiMemories/types/ListUserMemoriesResponse.d.mts +13 -0
  421. package/dist/esm/api/resources/humanApiMemories/types/ListUserMemoriesResponse.mjs +2 -0
  422. package/dist/esm/api/resources/humanApiMemories/types/RestoreUserMemoryResponse.d.mts +4 -0
  423. package/dist/esm/api/resources/humanApiMemories/types/RestoreUserMemoryResponse.mjs +2 -0
  424. package/dist/esm/api/resources/humanApiMemories/types/SupersedeUserMemoryResponse.d.mts +4 -0
  425. package/dist/esm/api/resources/humanApiMemories/types/SupersedeUserMemoryResponse.mjs +2 -0
  426. package/dist/esm/api/resources/humanApiMemories/types/index.d.mts +5 -0
  427. package/dist/esm/api/resources/humanApiMemories/types/index.mjs +5 -0
  428. package/dist/esm/api/resources/humanApiMessages/client/Client.d.mts +97 -0
  429. package/dist/esm/api/resources/humanApiMessages/client/Client.mjs +200 -0
  430. package/dist/esm/api/resources/humanApiMessages/client/index.d.mts +1 -0
  431. package/dist/esm/api/resources/humanApiMessages/client/index.mjs +1 -0
  432. package/dist/esm/api/resources/humanApiMessages/client/requests/ListMyChatMessagesRequest.d.mts +26 -0
  433. package/dist/esm/api/resources/humanApiMessages/client/requests/ListMyChatMessagesRequest.mjs +2 -0
  434. package/dist/esm/api/resources/humanApiMessages/client/requests/SendMyChatMessageRequest.d.mts +15 -0
  435. package/dist/esm/api/resources/humanApiMessages/client/requests/SendMyChatMessageRequest.mjs +2 -0
  436. package/dist/esm/api/resources/humanApiMessages/client/requests/index.d.mts +2 -0
  437. package/dist/esm/api/resources/humanApiMessages/client/requests/index.mjs +1 -0
  438. package/dist/esm/api/resources/humanApiMessages/exports.d.mts +2 -0
  439. package/dist/esm/api/resources/humanApiMessages/exports.mjs +3 -0
  440. package/dist/esm/api/resources/humanApiMessages/index.d.mts +2 -0
  441. package/dist/esm/api/resources/humanApiMessages/index.mjs +2 -0
  442. package/dist/esm/api/resources/humanApiMessages/types/ListMyChatMessagesRequestMessageType.d.mts +10 -0
  443. package/dist/esm/api/resources/humanApiMessages/types/ListMyChatMessagesRequestMessageType.mjs +10 -0
  444. package/dist/esm/api/resources/humanApiMessages/types/ListMyChatMessagesResponse.d.mts +23 -0
  445. package/dist/esm/api/resources/humanApiMessages/types/ListMyChatMessagesResponse.mjs +2 -0
  446. package/dist/esm/api/resources/humanApiMessages/types/SendMyChatMessageResponse.d.mts +4 -0
  447. package/dist/esm/api/resources/humanApiMessages/types/SendMyChatMessageResponse.mjs +2 -0
  448. package/dist/esm/api/resources/humanApiMessages/types/index.d.mts +3 -0
  449. package/dist/esm/api/resources/humanApiMessages/types/index.mjs +3 -0
  450. package/dist/esm/api/resources/humanApiParticipants/client/Client.d.mts +84 -0
  451. package/dist/esm/api/resources/humanApiParticipants/client/Client.mjs +227 -0
  452. package/dist/esm/api/resources/humanApiParticipants/client/index.d.mts +1 -0
  453. package/dist/esm/api/resources/humanApiParticipants/client/index.mjs +1 -0
  454. package/dist/esm/api/resources/humanApiParticipants/client/requests/AddMyChatParticipantRequest.d.mts +12 -0
  455. package/dist/esm/api/resources/humanApiParticipants/client/requests/AddMyChatParticipantRequest.mjs +2 -0
  456. package/dist/esm/api/resources/humanApiParticipants/client/requests/ListMyChatParticipantsRequest.d.mts +23 -0
  457. package/dist/esm/api/resources/humanApiParticipants/client/requests/ListMyChatParticipantsRequest.mjs +2 -0
  458. package/dist/esm/api/resources/humanApiParticipants/client/requests/index.d.mts +2 -0
  459. package/dist/esm/api/resources/humanApiParticipants/client/requests/index.mjs +1 -0
  460. package/dist/esm/api/resources/humanApiParticipants/exports.d.mts +2 -0
  461. package/dist/esm/api/resources/humanApiParticipants/exports.mjs +3 -0
  462. package/dist/esm/api/resources/humanApiParticipants/index.d.mts +2 -0
  463. package/dist/esm/api/resources/humanApiParticipants/index.mjs +2 -0
  464. package/dist/esm/api/resources/humanApiParticipants/types/AddMyChatParticipantResponse.d.mts +4 -0
  465. package/dist/esm/api/resources/humanApiParticipants/types/AddMyChatParticipantResponse.mjs +2 -0
  466. package/dist/esm/api/resources/humanApiParticipants/types/ListMyChatParticipantsRequestParticipantType.d.mts +5 -0
  467. package/dist/esm/api/resources/humanApiParticipants/types/ListMyChatParticipantsRequestParticipantType.mjs +5 -0
  468. package/dist/esm/api/resources/humanApiParticipants/types/ListMyChatParticipantsResponse.d.mts +23 -0
  469. package/dist/esm/api/resources/humanApiParticipants/types/ListMyChatParticipantsResponse.mjs +2 -0
  470. package/dist/esm/api/resources/humanApiParticipants/types/RemoveMyChatParticipantResponse.d.mts +4 -0
  471. package/dist/esm/api/resources/humanApiParticipants/types/RemoveMyChatParticipantResponse.mjs +2 -0
  472. package/dist/esm/api/resources/humanApiParticipants/types/index.d.mts +4 -0
  473. package/dist/esm/api/resources/humanApiParticipants/types/index.mjs +4 -0
  474. package/dist/esm/api/resources/humanApiPeers/client/Client.d.mts +46 -0
  475. package/dist/esm/api/resources/humanApiPeers/client/Client.mjs +103 -0
  476. package/dist/esm/api/resources/humanApiPeers/client/index.d.mts +1 -0
  477. package/dist/esm/api/resources/humanApiPeers/client/index.mjs +1 -0
  478. package/dist/esm/api/resources/humanApiPeers/client/requests/ListMyPeersRequest.d.mts +20 -0
  479. package/dist/esm/api/resources/humanApiPeers/client/requests/ListMyPeersRequest.mjs +2 -0
  480. package/dist/esm/api/resources/humanApiPeers/client/requests/index.d.mts +1 -0
  481. package/dist/esm/api/resources/humanApiPeers/client/requests/index.mjs +1 -0
  482. package/dist/esm/api/resources/humanApiPeers/exports.d.mts +2 -0
  483. package/dist/esm/api/resources/humanApiPeers/exports.mjs +3 -0
  484. package/dist/esm/api/resources/humanApiPeers/index.d.mts +2 -0
  485. package/dist/esm/api/resources/humanApiPeers/index.mjs +2 -0
  486. package/dist/esm/api/resources/humanApiPeers/types/ListMyPeersRequestType.d.mts +5 -0
  487. package/dist/esm/api/resources/humanApiPeers/types/ListMyPeersRequestType.mjs +5 -0
  488. package/dist/esm/api/resources/humanApiPeers/types/ListMyPeersResponse.d.mts +13 -0
  489. package/dist/esm/api/resources/humanApiPeers/types/ListMyPeersResponse.mjs +2 -0
  490. package/dist/esm/api/resources/humanApiPeers/types/index.d.mts +2 -0
  491. package/dist/esm/api/resources/humanApiPeers/types/index.mjs +2 -0
  492. package/dist/esm/api/resources/humanApiProfile/client/Client.d.mts +46 -0
  493. package/dist/esm/api/resources/humanApiProfile/client/Client.mjs +134 -0
  494. package/dist/esm/api/resources/humanApiProfile/client/index.d.mts +1 -0
  495. package/dist/esm/api/resources/humanApiProfile/client/index.mjs +1 -0
  496. package/dist/esm/api/resources/humanApiProfile/client/requests/UpdateMyProfileRequest.d.mts +21 -0
  497. package/dist/esm/api/resources/humanApiProfile/client/requests/UpdateMyProfileRequest.mjs +2 -0
  498. package/dist/esm/api/resources/humanApiProfile/client/requests/index.d.mts +1 -0
  499. package/dist/esm/api/resources/humanApiProfile/client/requests/index.mjs +1 -0
  500. package/dist/esm/api/resources/humanApiProfile/exports.d.mts +2 -0
  501. package/dist/esm/api/resources/humanApiProfile/exports.mjs +3 -0
  502. package/dist/esm/api/resources/humanApiProfile/index.d.mts +2 -0
  503. package/dist/esm/api/resources/humanApiProfile/index.mjs +2 -0
  504. package/dist/esm/api/resources/humanApiProfile/types/GetMyProfileResponse.d.mts +4 -0
  505. package/dist/esm/api/resources/humanApiProfile/types/GetMyProfileResponse.mjs +2 -0
  506. package/dist/esm/api/resources/humanApiProfile/types/UpdateMyProfileResponse.d.mts +4 -0
  507. package/dist/esm/api/resources/humanApiProfile/types/UpdateMyProfileResponse.mjs +2 -0
  508. package/dist/esm/api/resources/humanApiProfile/types/index.d.mts +2 -0
  509. package/dist/esm/api/resources/humanApiProfile/types/index.mjs +2 -0
  510. package/dist/esm/api/resources/index.d.mts +27 -0
  511. package/dist/esm/api/resources/index.mjs +27 -0
  512. package/dist/esm/api/types/AgentActivityResponse.d.mts +7 -0
  513. package/dist/esm/api/types/AgentActivityResponse.mjs +2 -0
  514. package/dist/esm/api/types/AgentRegisterRequest.d.mts +9 -0
  515. package/dist/esm/api/types/AgentRegisterRequest.mjs +2 -0
  516. package/dist/esm/api/types/ChatParticipantDetails.d.mts +29 -0
  517. package/dist/esm/api/types/ChatParticipantDetails.mjs +9 -0
  518. package/dist/esm/api/types/Contact.d.mts +41 -0
  519. package/dist/esm/api/types/Contact.mjs +9 -0
  520. package/dist/esm/api/types/ContactRequest.d.mts +68 -0
  521. package/dist/esm/api/types/ContactRequest.mjs +22 -0
  522. package/dist/esm/api/types/ContactRequestActionResponse.d.mts +18 -0
  523. package/dist/esm/api/types/ContactRequestActionResponse.mjs +10 -0
  524. package/dist/esm/api/types/MeChatRoom.d.mts +35 -0
  525. package/dist/esm/api/types/MeChatRoom.mjs +16 -0
  526. package/dist/esm/api/types/MyAgent.d.mts +29 -0
  527. package/dist/esm/api/types/MyAgent.mjs +2 -0
  528. package/dist/esm/api/types/ResolvedEntity.d.mts +21 -0
  529. package/dist/esm/api/types/ResolvedEntity.mjs +9 -0
  530. package/dist/esm/api/types/UserDetails.d.mts +25 -0
  531. package/dist/esm/api/types/UserDetails.mjs +9 -0
  532. package/dist/esm/api/types/UserMemory.d.mts +73 -0
  533. package/dist/esm/api/types/UserMemory.mjs +37 -0
  534. package/dist/esm/api/types/index.d.mts +11 -0
  535. package/dist/esm/api/types/index.mjs +11 -0
  536. package/dist/esm/version.d.mts +1 -1
  537. package/dist/esm/version.mjs +1 -1
  538. package/package.json +142 -43
  539. package/reference.md +2650 -472
@@ -0,0 +1,389 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
12
+ import { mergeHeaders } from "../../../../core/headers.mjs";
13
+ import * as core from "../../../../core/index.mjs";
14
+ import * as environments from "../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../errors/index.mjs";
17
+ import * as Band from "../../../index.mjs";
18
+ /**
19
+ * View and manage memories stored by agents on your behalf.
20
+ */
21
+ export class HumanApiMemoriesClient {
22
+ constructor(options) {
23
+ this._options = normalizeClientOptionsWithAuth(options);
24
+ }
25
+ /**
26
+ * Retrieves a specific memory by ID if accessible to the user.
27
+ *
28
+ * @param {string} id - Memory ID
29
+ * @param {HumanApiMemoriesClient.RequestOptions} requestOptions - Request-specific configuration.
30
+ *
31
+ * @throws {@link Band.UnauthorizedError}
32
+ * @throws {@link Band.ForbiddenError}
33
+ * @throws {@link Band.NotFoundError}
34
+ *
35
+ * @example
36
+ * await client.humanApiMemories.getUserMemory("daca00d0-eb6b-4db1-8201-c46015c93d04")
37
+ */
38
+ getUserMemory(id, requestOptions) {
39
+ return core.HttpResponsePromise.fromPromise(this.__getUserMemory(id, requestOptions));
40
+ }
41
+ __getUserMemory(id, requestOptions) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
44
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
45
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
46
+ const _response = yield core.fetcher({
47
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BandEnvironment.Default, `api/v1/me/memories/${core.url.encodePathParam(id)}`),
48
+ method: "GET",
49
+ headers: _headers,
50
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
51
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
52
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
53
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
54
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
55
+ logging: this._options.logging,
56
+ });
57
+ if (_response.ok) {
58
+ return { data: _response.body, rawResponse: _response.rawResponse };
59
+ }
60
+ if (_response.error.reason === "status-code") {
61
+ switch (_response.error.statusCode) {
62
+ case 401:
63
+ throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
64
+ case 403:
65
+ throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
66
+ case 404:
67
+ throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
68
+ default:
69
+ throw new errors.BandError({
70
+ statusCode: _response.error.statusCode,
71
+ body: _response.error.body,
72
+ rawResponse: _response.rawResponse,
73
+ });
74
+ }
75
+ }
76
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/me/memories/{id}");
77
+ });
78
+ }
79
+ /**
80
+ * Permanently deletes a memory. This is a hard delete - the memory cannot be recovered.
81
+ *
82
+ * Users can only delete memories that are about them (subject_id = user).
83
+ *
84
+ * @param {string} id - Memory ID
85
+ * @param {HumanApiMemoriesClient.RequestOptions} requestOptions - Request-specific configuration.
86
+ *
87
+ * @throws {@link Band.UnauthorizedError}
88
+ * @throws {@link Band.ForbiddenError}
89
+ * @throws {@link Band.NotFoundError}
90
+ *
91
+ * @example
92
+ * await client.humanApiMemories.deleteUserMemory("daca00d0-eb6b-4db1-8201-c46015c93d04")
93
+ */
94
+ deleteUserMemory(id, requestOptions) {
95
+ return core.HttpResponsePromise.fromPromise(this.__deleteUserMemory(id, requestOptions));
96
+ }
97
+ __deleteUserMemory(id, requestOptions) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
100
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
101
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
102
+ const _response = yield core.fetcher({
103
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BandEnvironment.Default, `api/v1/me/memories/${core.url.encodePathParam(id)}`),
104
+ method: "DELETE",
105
+ headers: _headers,
106
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
107
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
108
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
109
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
110
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
111
+ logging: this._options.logging,
112
+ });
113
+ if (_response.ok) {
114
+ return { data: undefined, rawResponse: _response.rawResponse };
115
+ }
116
+ if (_response.error.reason === "status-code") {
117
+ switch (_response.error.statusCode) {
118
+ case 401:
119
+ throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
120
+ case 403:
121
+ throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
122
+ case 404:
123
+ throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
124
+ default:
125
+ throw new errors.BandError({
126
+ statusCode: _response.error.statusCode,
127
+ body: _response.error.body,
128
+ rawResponse: _response.rawResponse,
129
+ });
130
+ }
131
+ }
132
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/api/v1/me/memories/{id}");
133
+ });
134
+ }
135
+ /**
136
+ * Marks a memory as superseded (soft delete). Use when info is outdated/incorrect.
137
+ * The memory remains for audit trail but won't appear in normal queries.
138
+ *
139
+ * Users can only supersede memories that are about them (subject_id = user).
140
+ *
141
+ * @param {string} id - Memory ID
142
+ * @param {HumanApiMemoriesClient.RequestOptions} requestOptions - Request-specific configuration.
143
+ *
144
+ * @throws {@link Band.UnauthorizedError}
145
+ * @throws {@link Band.ForbiddenError}
146
+ * @throws {@link Band.NotFoundError}
147
+ *
148
+ * @example
149
+ * await client.humanApiMemories.supersedeUserMemory("daca00d0-eb6b-4db1-8201-c46015c93d04")
150
+ */
151
+ supersedeUserMemory(id, requestOptions) {
152
+ return core.HttpResponsePromise.fromPromise(this.__supersedeUserMemory(id, requestOptions));
153
+ }
154
+ __supersedeUserMemory(id, requestOptions) {
155
+ return __awaiter(this, void 0, void 0, function* () {
156
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
157
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
158
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
159
+ const _response = yield core.fetcher({
160
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BandEnvironment.Default, `api/v1/me/memories/${core.url.encodePathParam(id)}/supersede`),
161
+ method: "POST",
162
+ headers: _headers,
163
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
164
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
165
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
166
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
167
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
168
+ logging: this._options.logging,
169
+ });
170
+ if (_response.ok) {
171
+ return { data: _response.body, rawResponse: _response.rawResponse };
172
+ }
173
+ if (_response.error.reason === "status-code") {
174
+ switch (_response.error.statusCode) {
175
+ case 401:
176
+ throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
177
+ case 403:
178
+ throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
179
+ case 404:
180
+ throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
181
+ default:
182
+ throw new errors.BandError({
183
+ statusCode: _response.error.statusCode,
184
+ body: _response.error.body,
185
+ rawResponse: _response.rawResponse,
186
+ });
187
+ }
188
+ }
189
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/me/memories/{id}/supersede");
190
+ });
191
+ }
192
+ /**
193
+ * Archives a memory (hides but preserves). Archived memories can be restored later.
194
+ *
195
+ * Users can only archive memories that are about them (subject_id = user).
196
+ *
197
+ * @param {string} id - Memory ID
198
+ * @param {HumanApiMemoriesClient.RequestOptions} requestOptions - Request-specific configuration.
199
+ *
200
+ * @throws {@link Band.UnauthorizedError}
201
+ * @throws {@link Band.ForbiddenError}
202
+ * @throws {@link Band.NotFoundError}
203
+ *
204
+ * @example
205
+ * await client.humanApiMemories.archiveUserMemory("daca00d0-eb6b-4db1-8201-c46015c93d04")
206
+ */
207
+ archiveUserMemory(id, requestOptions) {
208
+ return core.HttpResponsePromise.fromPromise(this.__archiveUserMemory(id, requestOptions));
209
+ }
210
+ __archiveUserMemory(id, requestOptions) {
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
213
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
214
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
215
+ const _response = yield core.fetcher({
216
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BandEnvironment.Default, `api/v1/me/memories/${core.url.encodePathParam(id)}/archive`),
217
+ method: "POST",
218
+ headers: _headers,
219
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
220
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
221
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
222
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
223
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
224
+ logging: this._options.logging,
225
+ });
226
+ if (_response.ok) {
227
+ return { data: _response.body, rawResponse: _response.rawResponse };
228
+ }
229
+ if (_response.error.reason === "status-code") {
230
+ switch (_response.error.statusCode) {
231
+ case 401:
232
+ throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
233
+ case 403:
234
+ throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
235
+ case 404:
236
+ throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
237
+ default:
238
+ throw new errors.BandError({
239
+ statusCode: _response.error.statusCode,
240
+ body: _response.error.body,
241
+ rawResponse: _response.rawResponse,
242
+ });
243
+ }
244
+ }
245
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/me/memories/{id}/archive");
246
+ });
247
+ }
248
+ /**
249
+ * Restores an archived memory back to active status.
250
+ * Only works on memories with status 'archived'.
251
+ *
252
+ * Users can only restore memories that are about them (subject_id = user).
253
+ *
254
+ * @param {string} id - Memory ID
255
+ * @param {HumanApiMemoriesClient.RequestOptions} requestOptions - Request-specific configuration.
256
+ *
257
+ * @throws {@link Band.UnauthorizedError}
258
+ * @throws {@link Band.ForbiddenError}
259
+ * @throws {@link Band.NotFoundError}
260
+ * @throws {@link Band.UnprocessableEntityError}
261
+ *
262
+ * @example
263
+ * await client.humanApiMemories.restoreUserMemory("daca00d0-eb6b-4db1-8201-c46015c93d04")
264
+ */
265
+ restoreUserMemory(id, requestOptions) {
266
+ return core.HttpResponsePromise.fromPromise(this.__restoreUserMemory(id, requestOptions));
267
+ }
268
+ __restoreUserMemory(id, requestOptions) {
269
+ return __awaiter(this, void 0, void 0, function* () {
270
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
271
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
272
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
273
+ const _response = yield core.fetcher({
274
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BandEnvironment.Default, `api/v1/me/memories/${core.url.encodePathParam(id)}/restore`),
275
+ method: "POST",
276
+ headers: _headers,
277
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
278
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
279
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
280
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
281
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
282
+ logging: this._options.logging,
283
+ });
284
+ if (_response.ok) {
285
+ return { data: _response.body, rawResponse: _response.rawResponse };
286
+ }
287
+ if (_response.error.reason === "status-code") {
288
+ switch (_response.error.statusCode) {
289
+ case 401:
290
+ throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
291
+ case 403:
292
+ throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
293
+ case 404:
294
+ throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
295
+ case 422:
296
+ throw new Band.UnprocessableEntityError(_response.error.body, _response.rawResponse);
297
+ default:
298
+ throw new errors.BandError({
299
+ statusCode: _response.error.statusCode,
300
+ body: _response.error.body,
301
+ rawResponse: _response.rawResponse,
302
+ });
303
+ }
304
+ }
305
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/me/memories/{id}/restore");
306
+ });
307
+ }
308
+ /**
309
+ * Lists memories accessible to the authenticated user:
310
+ * - Memories about the user (subject_id = user's UUID)
311
+ * - Organization-scoped memories in the user's organization
312
+ * - Optionally filter by chat room to see room-level memories
313
+ *
314
+ * Unlike agents, users can see memories from ALL agents in their organization
315
+ * that are about them or in rooms they participate in.
316
+ *
317
+ * @param {Band.ListUserMemoriesRequest} request
318
+ * @param {HumanApiMemoriesClient.RequestOptions} requestOptions - Request-specific configuration.
319
+ *
320
+ * @throws {@link Band.UnauthorizedError}
321
+ * @throws {@link Band.ForbiddenError}
322
+ *
323
+ * @example
324
+ * await client.humanApiMemories.listUserMemories({
325
+ * chat_room_id: "daca00d0-eb6b-4db1-8201-c46015c93d04",
326
+ * scope: "about_me",
327
+ * system: "long_term",
328
+ * type: "semantic",
329
+ * segment: "user",
330
+ * content_query: "prefers SUV",
331
+ * page_size: 1,
332
+ * status: "active"
333
+ * })
334
+ */
335
+ listUserMemories(request = {}, requestOptions) {
336
+ return core.HttpResponsePromise.fromPromise(this.__listUserMemories(request, requestOptions));
337
+ }
338
+ __listUserMemories() {
339
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
340
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
341
+ const { chat_room_id: chatRoomId, scope, system, type: type_, segment, content_query: contentQuery, page_size: pageSize, status, } = request;
342
+ const _queryParams = {
343
+ chat_room_id: chatRoomId,
344
+ scope,
345
+ system,
346
+ type: type_,
347
+ segment,
348
+ content_query: contentQuery,
349
+ page_size: pageSize,
350
+ status,
351
+ };
352
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
353
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
354
+ const _response = yield core.fetcher({
355
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BandEnvironment.Default, "api/v1/me/memories"),
356
+ method: "GET",
357
+ headers: _headers,
358
+ queryString: core.url
359
+ .queryBuilder()
360
+ .addMany(_queryParams)
361
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
362
+ .build(),
363
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
364
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
365
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
366
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
367
+ logging: this._options.logging,
368
+ });
369
+ if (_response.ok) {
370
+ return { data: _response.body, rawResponse: _response.rawResponse };
371
+ }
372
+ if (_response.error.reason === "status-code") {
373
+ switch (_response.error.statusCode) {
374
+ case 401:
375
+ throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
376
+ case 403:
377
+ throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
378
+ default:
379
+ throw new errors.BandError({
380
+ statusCode: _response.error.statusCode,
381
+ body: _response.error.body,
382
+ rawResponse: _response.rawResponse,
383
+ });
384
+ }
385
+ }
386
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/me/memories");
387
+ });
388
+ }
389
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * chat_room_id: "daca00d0-eb6b-4db1-8201-c46015c93d04",
5
+ * scope: "about_me",
6
+ * system: "long_term",
7
+ * type: "semantic",
8
+ * segment: "user",
9
+ * content_query: "prefers SUV",
10
+ * page_size: 1,
11
+ * status: "active"
12
+ * }
13
+ */
14
+ export interface ListUserMemoriesRequest {
15
+ /** Filter by chat room ID */
16
+ chat_room_id?: string;
17
+ /** Filter scope: about_me, organization, room, all */
18
+ scope?: string;
19
+ /** Filter by memory system */
20
+ system?: string;
21
+ /** Filter by memory type */
22
+ type?: string;
23
+ /** Filter by segment */
24
+ segment?: string;
25
+ /** Full-text search query */
26
+ content_query?: string;
27
+ /** Number of results per page (max 50) */
28
+ page_size?: number;
29
+ /** Filter by status: active, superseded, archived, or all */
30
+ status?: string;
31
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1 @@
1
+ export type { ListUserMemoriesRequest } from "./ListUserMemoriesRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { HumanApiMemoriesClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { HumanApiMemoriesClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,4 @@
1
+ import type * as Band from "../../../index.mjs";
2
+ export interface ArchiveUserMemoryResponse {
3
+ data?: Band.UserMemory | undefined;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ import type * as Band from "../../../index.mjs";
2
+ export interface GetUserMemoryResponse {
3
+ data?: Band.UserMemory | undefined;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,13 @@
1
+ import type * as Band from "../../../index.mjs";
2
+ export interface ListUserMemoriesResponse {
3
+ data?: Band.UserMemory[] | undefined;
4
+ meta?: ListUserMemoriesResponse.Meta | undefined;
5
+ }
6
+ export declare namespace ListUserMemoriesResponse {
7
+ interface Meta {
8
+ /** Number of results in this page */
9
+ page_size?: number | undefined;
10
+ /** Total number of matching memories */
11
+ total_count?: number | undefined;
12
+ }
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ import type * as Band from "../../../index.mjs";
2
+ export interface RestoreUserMemoryResponse {
3
+ data?: Band.UserMemory | undefined;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ import type * as Band from "../../../index.mjs";
2
+ export interface SupersedeUserMemoryResponse {
3
+ data?: Band.UserMemory | undefined;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from "./ArchiveUserMemoryResponse.mjs";
2
+ export * from "./GetUserMemoryResponse.mjs";
3
+ export * from "./ListUserMemoriesResponse.mjs";
4
+ export * from "./RestoreUserMemoryResponse.mjs";
5
+ export * from "./SupersedeUserMemoryResponse.mjs";
@@ -0,0 +1,5 @@
1
+ export * from "./ArchiveUserMemoryResponse.mjs";
2
+ export * from "./GetUserMemoryResponse.mjs";
3
+ export * from "./ListUserMemoriesResponse.mjs";
4
+ export * from "./RestoreUserMemoryResponse.mjs";
5
+ export * from "./SupersedeUserMemoryResponse.mjs";
@@ -0,0 +1,97 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
+ import * as core from "../../../../core/index.mjs";
4
+ import * as Band from "../../../index.mjs";
5
+ export declare namespace HumanApiMessagesClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ /**
11
+ * Send and receive messages in chat rooms.
12
+ */
13
+ export declare class HumanApiMessagesClient {
14
+ protected readonly _options: NormalizedClientOptionsWithAuth<HumanApiMessagesClient.Options>;
15
+ constructor(options: HumanApiMessagesClient.Options);
16
+ /**
17
+ * Returns a paginated list of ALL messages in a chat room where you are a participant.
18
+ *
19
+ * This includes all message types: text, tool_call, tool_result, thought, error, task.
20
+ * Messages are returned newest-first so page 1 contains the most recent results.
21
+ * Messages can be filtered by type and timestamp, and include pagination support.
22
+ *
23
+ * Use the `message_type` parameter to filter by specific type(s).
24
+ *
25
+ * ## Pagination
26
+ *
27
+ * Use `cursor` + `limit` for cursor-based pagination (recommended). The response
28
+ * `metadata` includes `next_cursor` and `has_more`.
29
+ *
30
+ * Note: `since` and `cursor` cannot be combined. Use one or the other.
31
+ *
32
+ * `page` and `page_size` are deprecated and will be removed in API 2.0.0 (2026-10-01).
33
+ *
34
+ * Returns 404 if the chat room doesn't exist or you're not a participant (security-first: doesn't leak room existence).
35
+ *
36
+ * @param {string} chat_id - Chat Room ID
37
+ * @param {Band.ListMyChatMessagesRequest} request
38
+ * @param {HumanApiMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link Band.UnauthorizedError}
41
+ * @throws {@link Band.NotFoundError}
42
+ * @throws {@link Band.UnprocessableEntityError}
43
+ *
44
+ * @example
45
+ * await client.humanApiMessages.listMyChatMessages("daca00d0-eb6b-4db1-8201-c46015c93d04", {
46
+ * cursor: "cursor",
47
+ * limit: 1,
48
+ * page: 1,
49
+ * page_size: 1,
50
+ * message_type: "text",
51
+ * since: "2025-10-14T15:00:00Z"
52
+ * })
53
+ */
54
+ listMyChatMessages(chat_id: string, request?: Band.ListMyChatMessagesRequest, requestOptions?: HumanApiMessagesClient.RequestOptions): core.HttpResponsePromise<Band.ListMyChatMessagesResponse>;
55
+ private __listMyChatMessages;
56
+ /**
57
+ * Creates a new text message in a chat room. The user must be a participant in the room.
58
+ *
59
+ * This endpoint only supports `text` message type. For event-type messages
60
+ * (tool_call, tool_result, thought, system, error, action, guidelines, task),
61
+ * use `POST /me/chats/{chat_id}/events` instead.
62
+ *
63
+ * Messages must include at least one @mention to ensure proper routing to recipients.
64
+ *
65
+ * Example request:
66
+ * ```json
67
+ * {
68
+ * "message": {
69
+ * "content": "@agent.assistant please help me with this task",
70
+ * "mentions": [
71
+ * {"id": "agent-uuid", "handle": "agent.assistant", "name": "Agent Assistant"}
72
+ * ]
73
+ * }
74
+ * }
75
+ * ```
76
+ *
77
+ * @param {string} chat_id - Chat Room ID
78
+ * @param {Band.SendMyChatMessageRequest} request
79
+ * @param {HumanApiMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
80
+ *
81
+ * @throws {@link Band.UnauthorizedError}
82
+ * @throws {@link Band.NotFoundError}
83
+ * @throws {@link Band.UnprocessableEntityError}
84
+ *
85
+ * @example
86
+ * await client.humanApiMessages.sendMyChatMessage("daca00d0-eb6b-4db1-8201-c46015c93d04", {
87
+ * message: {
88
+ * content: "@DataAnalyst please analyze the Q4 sales data",
89
+ * mentions: [{
90
+ * id: "id"
91
+ * }]
92
+ * }
93
+ * })
94
+ */
95
+ sendMyChatMessage(chat_id: string, request: Band.SendMyChatMessageRequest, requestOptions?: HumanApiMessagesClient.RequestOptions): core.HttpResponsePromise<Band.SendMyChatMessageResponse>;
96
+ private __sendMyChatMessage;
97
+ }