@band-ai/rest-client 0.0.113 → 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 (1223) hide show
  1. package/README.md +97 -30
  2. package/dist/cjs/BaseClient.d.ts +42 -0
  3. package/dist/cjs/BaseClient.js +77 -0
  4. package/dist/cjs/Client.d.ts +77 -0
  5. package/dist/cjs/Client.js +168 -0
  6. package/dist/cjs/api/errors/BadRequestError.d.ts +6 -0
  7. package/dist/cjs/api/errors/BadRequestError.js +54 -0
  8. package/dist/cjs/api/errors/ConflictError.d.ts +6 -0
  9. package/dist/cjs/api/errors/ConflictError.js +54 -0
  10. package/dist/cjs/api/errors/ForbiddenError.d.ts +6 -0
  11. package/dist/cjs/api/errors/ForbiddenError.js +54 -0
  12. package/dist/cjs/api/errors/NotFoundError.d.ts +6 -0
  13. package/dist/cjs/api/errors/NotFoundError.js +54 -0
  14. package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +6 -0
  15. package/dist/cjs/api/errors/ServiceUnavailableError.js +54 -0
  16. package/dist/cjs/api/errors/UnauthorizedError.d.ts +6 -0
  17. package/dist/cjs/api/errors/UnauthorizedError.js +54 -0
  18. package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +5 -0
  19. package/dist/cjs/api/errors/UnprocessableEntityError.js +54 -0
  20. package/dist/cjs/api/errors/index.d.ts +7 -0
  21. package/dist/cjs/api/errors/index.js +23 -0
  22. package/dist/cjs/api/index.d.ts +3 -0
  23. package/dist/cjs/api/index.js +19 -0
  24. package/dist/cjs/api/resources/agentApiActivity/client/Client.d.ts +45 -0
  25. package/dist/cjs/api/resources/agentApiActivity/client/Client.js +137 -0
  26. package/dist/cjs/api/resources/agentApiActivity/client/index.d.ts +1 -0
  27. package/dist/cjs/api/resources/agentApiActivity/client/index.js +17 -0
  28. package/dist/cjs/api/resources/agentApiActivity/client/requests/ReportAgentChatActivityRequest.d.ts +10 -0
  29. package/dist/cjs/api/resources/agentApiActivity/client/requests/ReportAgentChatActivityRequest.js +3 -0
  30. package/dist/cjs/api/resources/agentApiActivity/client/requests/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/agentApiActivity/client/requests/index.js +2 -0
  32. package/dist/cjs/api/resources/agentApiActivity/exports.d.ts +2 -0
  33. package/dist/cjs/api/resources/agentApiActivity/exports.js +21 -0
  34. package/dist/cjs/api/resources/agentApiActivity/index.d.ts +2 -0
  35. package/dist/cjs/api/resources/agentApiActivity/index.js +18 -0
  36. package/dist/cjs/api/resources/agentApiActivity/types/ReportAgentChatActivityResponse.d.ts +4 -0
  37. package/dist/cjs/api/resources/agentApiActivity/types/ReportAgentChatActivityResponse.js +3 -0
  38. package/dist/cjs/api/resources/agentApiActivity/types/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/agentApiActivity/types/index.js +17 -0
  40. package/dist/cjs/api/resources/agentApiChats/client/Client.d.ts +65 -0
  41. package/dist/cjs/api/resources/agentApiChats/client/Client.js +238 -0
  42. package/dist/cjs/api/resources/agentApiChats/client/index.d.ts +1 -0
  43. package/dist/cjs/api/resources/agentApiChats/client/index.js +17 -0
  44. package/dist/cjs/api/resources/agentApiChats/client/requests/CreateAgentChatRequest.d.ts +10 -0
  45. package/dist/cjs/api/resources/agentApiChats/client/requests/CreateAgentChatRequest.js +3 -0
  46. package/dist/cjs/api/resources/agentApiChats/client/requests/ListAgentChatsRequest.d.ts +13 -0
  47. package/dist/cjs/api/resources/agentApiChats/client/requests/ListAgentChatsRequest.js +3 -0
  48. package/dist/cjs/api/resources/agentApiChats/client/requests/index.d.ts +2 -0
  49. package/dist/cjs/api/resources/agentApiChats/client/requests/index.js +2 -0
  50. package/dist/cjs/api/resources/agentApiChats/exports.d.ts +2 -0
  51. package/dist/cjs/api/resources/agentApiChats/exports.js +21 -0
  52. package/dist/cjs/api/resources/agentApiChats/index.d.ts +2 -0
  53. package/dist/cjs/api/resources/agentApiChats/index.js +18 -0
  54. package/dist/cjs/api/resources/agentApiChats/types/CreateAgentChatResponse.d.ts +4 -0
  55. package/dist/cjs/api/resources/agentApiChats/types/CreateAgentChatResponse.js +3 -0
  56. package/dist/cjs/api/resources/agentApiChats/types/GetAgentChatResponse.d.ts +4 -0
  57. package/dist/cjs/api/resources/agentApiChats/types/GetAgentChatResponse.js +3 -0
  58. package/dist/cjs/api/resources/agentApiChats/types/ListAgentChatsResponse.d.ts +13 -0
  59. package/dist/cjs/api/resources/agentApiChats/types/ListAgentChatsResponse.js +3 -0
  60. package/dist/cjs/api/resources/agentApiChats/types/index.d.ts +3 -0
  61. package/dist/cjs/api/resources/agentApiChats/types/index.js +19 -0
  62. package/dist/cjs/api/resources/agentApiContacts/client/Client.d.ts +112 -0
  63. package/dist/cjs/api/resources/agentApiContacts/client/Client.js +385 -0
  64. package/dist/cjs/api/resources/agentApiContacts/client/index.d.ts +1 -0
  65. package/dist/cjs/api/resources/agentApiContacts/client/index.js +17 -0
  66. package/dist/cjs/api/resources/agentApiContacts/client/requests/AddAgentContactRequest.d.ts +11 -0
  67. package/dist/cjs/api/resources/agentApiContacts/client/requests/AddAgentContactRequest.js +3 -0
  68. package/dist/cjs/api/resources/agentApiContacts/client/requests/ListAgentContactRequestsRequest.d.ts +17 -0
  69. package/dist/cjs/api/resources/agentApiContacts/client/requests/ListAgentContactRequestsRequest.js +3 -0
  70. package/dist/cjs/api/resources/agentApiContacts/client/requests/ListAgentContactsRequest.d.ts +13 -0
  71. package/dist/cjs/api/resources/agentApiContacts/client/requests/ListAgentContactsRequest.js +3 -0
  72. package/dist/cjs/api/resources/agentApiContacts/client/requests/RemoveAgentContactRequest.d.ts +10 -0
  73. package/dist/cjs/api/resources/agentApiContacts/client/requests/RemoveAgentContactRequest.js +3 -0
  74. package/dist/cjs/api/resources/agentApiContacts/client/requests/RespondToAgentContactRequestRequest.d.ts +21 -0
  75. package/dist/cjs/api/resources/agentApiContacts/client/requests/RespondToAgentContactRequestRequest.js +12 -0
  76. package/dist/cjs/api/resources/agentApiContacts/client/requests/index.d.ts +5 -0
  77. package/dist/cjs/api/resources/agentApiContacts/client/requests/index.js +5 -0
  78. package/dist/cjs/api/resources/agentApiContacts/exports.d.ts +2 -0
  79. package/dist/cjs/api/resources/agentApiContacts/exports.js +21 -0
  80. package/dist/cjs/api/resources/agentApiContacts/index.d.ts +2 -0
  81. package/dist/cjs/api/resources/agentApiContacts/index.js +18 -0
  82. package/dist/cjs/api/resources/agentApiContacts/types/AddAgentContactResponse.d.ts +16 -0
  83. package/dist/cjs/api/resources/agentApiContacts/types/AddAgentContactResponse.js +14 -0
  84. package/dist/cjs/api/resources/agentApiContacts/types/ListAgentContactRequestsRequestSentStatus.d.ts +8 -0
  85. package/dist/cjs/api/resources/agentApiContacts/types/ListAgentContactRequestsRequestSentStatus.js +11 -0
  86. package/dist/cjs/api/resources/agentApiContacts/types/ListAgentContactRequestsResponse.d.ts +35 -0
  87. package/dist/cjs/api/resources/agentApiContacts/types/ListAgentContactRequestsResponse.js +3 -0
  88. package/dist/cjs/api/resources/agentApiContacts/types/ListAgentContactsResponse.d.ts +13 -0
  89. package/dist/cjs/api/resources/agentApiContacts/types/ListAgentContactsResponse.js +3 -0
  90. package/dist/cjs/api/resources/agentApiContacts/types/RemoveAgentContactResponse.d.ts +8 -0
  91. package/dist/cjs/api/resources/agentApiContacts/types/RemoveAgentContactResponse.js +3 -0
  92. package/dist/cjs/api/resources/agentApiContacts/types/RespondToAgentContactRequestResponse.d.ts +17 -0
  93. package/dist/cjs/api/resources/agentApiContacts/types/RespondToAgentContactRequestResponse.js +15 -0
  94. package/dist/cjs/api/resources/agentApiContacts/types/index.d.ts +6 -0
  95. package/dist/cjs/api/resources/agentApiContacts/types/index.js +22 -0
  96. package/dist/cjs/api/resources/agentApiContext/client/Client.d.ts +53 -0
  97. package/dist/cjs/api/resources/agentApiContext/client/Client.js +151 -0
  98. package/dist/cjs/api/resources/agentApiContext/client/index.d.ts +1 -0
  99. package/dist/cjs/api/resources/agentApiContext/client/index.js +17 -0
  100. package/dist/cjs/api/resources/agentApiContext/client/requests/GetAgentChatContextRequest.d.ts +19 -0
  101. package/dist/cjs/api/resources/agentApiContext/client/requests/GetAgentChatContextRequest.js +3 -0
  102. package/dist/cjs/api/resources/agentApiContext/client/requests/index.d.ts +1 -0
  103. package/dist/cjs/api/resources/agentApiContext/client/requests/index.js +2 -0
  104. package/dist/cjs/api/resources/agentApiContext/exports.d.ts +2 -0
  105. package/dist/cjs/api/resources/agentApiContext/exports.js +21 -0
  106. package/dist/cjs/api/resources/agentApiContext/index.d.ts +2 -0
  107. package/dist/cjs/api/resources/agentApiContext/index.js +18 -0
  108. package/dist/cjs/api/resources/agentApiContext/types/GetAgentChatContextResponse.d.ts +37 -0
  109. package/dist/cjs/api/resources/agentApiContext/types/GetAgentChatContextResponse.js +3 -0
  110. package/dist/cjs/api/resources/agentApiContext/types/index.d.ts +1 -0
  111. package/dist/cjs/api/resources/agentApiContext/types/index.js +17 -0
  112. package/dist/cjs/api/resources/agentApiEvents/client/Client.d.ts +49 -0
  113. package/dist/cjs/api/resources/agentApiEvents/client/Client.js +139 -0
  114. package/dist/cjs/api/resources/agentApiEvents/client/index.d.ts +1 -0
  115. package/dist/cjs/api/resources/agentApiEvents/client/index.js +17 -0
  116. package/dist/cjs/api/resources/agentApiEvents/client/requests/CreateAgentChatEventRequest.d.ts +13 -0
  117. package/dist/cjs/api/resources/agentApiEvents/client/requests/CreateAgentChatEventRequest.js +3 -0
  118. package/dist/cjs/api/resources/agentApiEvents/client/requests/index.d.ts +1 -0
  119. package/dist/cjs/api/resources/agentApiEvents/client/requests/index.js +2 -0
  120. package/dist/cjs/api/resources/agentApiEvents/exports.d.ts +2 -0
  121. package/dist/cjs/api/resources/agentApiEvents/exports.js +21 -0
  122. package/dist/cjs/api/resources/agentApiEvents/index.d.ts +2 -0
  123. package/dist/cjs/api/resources/agentApiEvents/index.js +18 -0
  124. package/dist/cjs/api/resources/agentApiEvents/types/CreateAgentChatEventResponse.d.ts +4 -0
  125. package/dist/cjs/api/resources/agentApiEvents/types/CreateAgentChatEventResponse.js +3 -0
  126. package/dist/cjs/api/resources/agentApiEvents/types/index.d.ts +1 -0
  127. package/dist/cjs/api/resources/agentApiEvents/types/index.js +17 -0
  128. package/dist/cjs/api/resources/agentApiIdentity/client/Client.d.ts +30 -0
  129. package/dist/cjs/api/resources/agentApiIdentity/client/Client.js +113 -0
  130. package/dist/cjs/api/resources/agentApiIdentity/client/index.d.ts +1 -0
  131. package/dist/cjs/api/resources/agentApiIdentity/client/index.js +2 -0
  132. package/dist/cjs/api/resources/agentApiIdentity/exports.d.ts +2 -0
  133. package/dist/cjs/api/resources/agentApiIdentity/exports.js +21 -0
  134. package/dist/cjs/api/resources/agentApiIdentity/index.d.ts +2 -0
  135. package/dist/cjs/api/resources/agentApiIdentity/index.js +18 -0
  136. package/dist/cjs/api/resources/agentApiIdentity/types/GetAgentMeResponse.d.ts +4 -0
  137. package/dist/cjs/api/resources/agentApiIdentity/types/GetAgentMeResponse.js +3 -0
  138. package/dist/cjs/api/resources/agentApiIdentity/types/index.d.ts +1 -0
  139. package/dist/cjs/api/resources/agentApiIdentity/types/index.js +17 -0
  140. package/dist/cjs/api/resources/agentApiMemories/client/Client.d.ts +120 -0
  141. package/dist/cjs/api/resources/agentApiMemories/client/Client.js +371 -0
  142. package/dist/cjs/api/resources/agentApiMemories/client/index.d.ts +1 -0
  143. package/dist/cjs/api/resources/agentApiMemories/client/index.js +17 -0
  144. package/dist/cjs/api/resources/agentApiMemories/client/requests/CreateAgentMemoryRequest.d.ts +16 -0
  145. package/dist/cjs/api/resources/agentApiMemories/client/requests/CreateAgentMemoryRequest.js +3 -0
  146. package/dist/cjs/api/resources/agentApiMemories/client/requests/ListAgentMemoriesRequest.d.ts +31 -0
  147. package/dist/cjs/api/resources/agentApiMemories/client/requests/ListAgentMemoriesRequest.js +3 -0
  148. package/dist/cjs/api/resources/agentApiMemories/client/requests/index.d.ts +2 -0
  149. package/dist/cjs/api/resources/agentApiMemories/client/requests/index.js +2 -0
  150. package/dist/cjs/api/resources/agentApiMemories/exports.d.ts +2 -0
  151. package/dist/cjs/api/resources/agentApiMemories/exports.js +21 -0
  152. package/dist/cjs/api/resources/agentApiMemories/index.d.ts +2 -0
  153. package/dist/cjs/api/resources/agentApiMemories/index.js +18 -0
  154. package/dist/cjs/api/resources/agentApiMemories/types/ArchiveAgentMemoryResponse.d.ts +4 -0
  155. package/dist/cjs/api/resources/agentApiMemories/types/ArchiveAgentMemoryResponse.js +3 -0
  156. package/dist/cjs/api/resources/agentApiMemories/types/CreateAgentMemoryResponse.d.ts +4 -0
  157. package/dist/cjs/api/resources/agentApiMemories/types/CreateAgentMemoryResponse.js +3 -0
  158. package/dist/cjs/api/resources/agentApiMemories/types/GetAgentMemoryResponse.d.ts +4 -0
  159. package/dist/cjs/api/resources/agentApiMemories/types/GetAgentMemoryResponse.js +3 -0
  160. package/dist/cjs/api/resources/agentApiMemories/types/ListAgentMemoriesResponse.d.ts +13 -0
  161. package/dist/cjs/api/resources/agentApiMemories/types/ListAgentMemoriesResponse.js +3 -0
  162. package/dist/cjs/api/resources/agentApiMemories/types/SupersedeAgentMemoryResponse.d.ts +4 -0
  163. package/dist/cjs/api/resources/agentApiMemories/types/SupersedeAgentMemoryResponse.js +3 -0
  164. package/dist/cjs/api/resources/agentApiMemories/types/index.d.ts +5 -0
  165. package/dist/cjs/api/resources/agentApiMemories/types/index.js +21 -0
  166. package/dist/cjs/api/resources/agentApiMessages/client/Client.d.ts +316 -0
  167. package/dist/cjs/api/resources/agentApiMessages/client/Client.js +636 -0
  168. package/dist/cjs/api/resources/agentApiMessages/client/index.d.ts +1 -0
  169. package/dist/cjs/api/resources/agentApiMessages/client/index.js +17 -0
  170. package/dist/cjs/api/resources/agentApiMessages/client/requests/CreateAgentChatMessageRequest.d.ts +15 -0
  171. package/dist/cjs/api/resources/agentApiMessages/client/requests/CreateAgentChatMessageRequest.js +3 -0
  172. package/dist/cjs/api/resources/agentApiMessages/client/requests/ListAgentMessagesRequest.d.ts +23 -0
  173. package/dist/cjs/api/resources/agentApiMessages/client/requests/ListAgentMessagesRequest.js +3 -0
  174. package/dist/cjs/api/resources/agentApiMessages/client/requests/MarkAgentMessageFailedRequest.d.ts +10 -0
  175. package/dist/cjs/api/resources/agentApiMessages/client/requests/MarkAgentMessageFailedRequest.js +3 -0
  176. package/dist/cjs/api/resources/agentApiMessages/client/requests/index.d.ts +3 -0
  177. package/dist/cjs/api/resources/agentApiMessages/client/requests/index.js +2 -0
  178. package/dist/cjs/api/resources/agentApiMessages/exports.d.ts +2 -0
  179. package/dist/cjs/api/resources/agentApiMessages/exports.js +21 -0
  180. package/dist/cjs/api/resources/agentApiMessages/index.d.ts +2 -0
  181. package/dist/cjs/api/resources/agentApiMessages/index.js +18 -0
  182. package/dist/cjs/api/resources/agentApiMessages/types/CreateAgentChatMessageResponse.d.ts +4 -0
  183. package/dist/cjs/api/resources/agentApiMessages/types/CreateAgentChatMessageResponse.js +3 -0
  184. package/dist/cjs/api/resources/agentApiMessages/types/GetAgentNextMessageResponse.d.ts +4 -0
  185. package/dist/cjs/api/resources/agentApiMessages/types/GetAgentNextMessageResponse.js +3 -0
  186. package/dist/cjs/api/resources/agentApiMessages/types/ListAgentMessagesRequestStatus.d.ts +8 -0
  187. package/dist/cjs/api/resources/agentApiMessages/types/ListAgentMessagesRequestStatus.js +11 -0
  188. package/dist/cjs/api/resources/agentApiMessages/types/ListAgentMessagesResponse.d.ts +25 -0
  189. package/dist/cjs/api/resources/agentApiMessages/types/ListAgentMessagesResponse.js +3 -0
  190. package/dist/cjs/api/resources/agentApiMessages/types/MarkAgentMessageFailedResponse.d.ts +4 -0
  191. package/dist/cjs/api/resources/agentApiMessages/types/MarkAgentMessageFailedResponse.js +3 -0
  192. package/dist/cjs/api/resources/agentApiMessages/types/MarkAgentMessageProcessedResponse.d.ts +4 -0
  193. package/dist/cjs/api/resources/agentApiMessages/types/MarkAgentMessageProcessedResponse.js +3 -0
  194. package/dist/cjs/api/resources/agentApiMessages/types/MarkAgentMessageProcessingResponse.d.ts +4 -0
  195. package/dist/cjs/api/resources/agentApiMessages/types/MarkAgentMessageProcessingResponse.js +3 -0
  196. package/dist/cjs/api/resources/agentApiMessages/types/index.d.ts +7 -0
  197. package/dist/cjs/api/resources/agentApiMessages/types/index.js +23 -0
  198. package/dist/cjs/api/resources/agentApiParticipants/client/Client.d.ts +73 -0
  199. package/dist/cjs/api/resources/agentApiParticipants/client/Client.js +247 -0
  200. package/dist/cjs/api/resources/agentApiParticipants/client/index.d.ts +1 -0
  201. package/dist/cjs/api/resources/agentApiParticipants/client/index.js +17 -0
  202. package/dist/cjs/api/resources/agentApiParticipants/client/requests/AddAgentChatParticipantRequest.d.ts +12 -0
  203. package/dist/cjs/api/resources/agentApiParticipants/client/requests/AddAgentChatParticipantRequest.js +3 -0
  204. package/dist/cjs/api/resources/agentApiParticipants/client/requests/index.d.ts +1 -0
  205. package/dist/cjs/api/resources/agentApiParticipants/client/requests/index.js +2 -0
  206. package/dist/cjs/api/resources/agentApiParticipants/exports.d.ts +2 -0
  207. package/dist/cjs/api/resources/agentApiParticipants/exports.js +21 -0
  208. package/dist/cjs/api/resources/agentApiParticipants/index.d.ts +2 -0
  209. package/dist/cjs/api/resources/agentApiParticipants/index.js +18 -0
  210. package/dist/cjs/api/resources/agentApiParticipants/types/AddAgentChatParticipantResponse.d.ts +4 -0
  211. package/dist/cjs/api/resources/agentApiParticipants/types/AddAgentChatParticipantResponse.js +3 -0
  212. package/dist/cjs/api/resources/agentApiParticipants/types/ListAgentChatParticipantsResponse.d.ts +4 -0
  213. package/dist/cjs/api/resources/agentApiParticipants/types/ListAgentChatParticipantsResponse.js +3 -0
  214. package/dist/cjs/api/resources/agentApiParticipants/types/RemoveAgentChatParticipantResponse.d.ts +4 -0
  215. package/dist/cjs/api/resources/agentApiParticipants/types/RemoveAgentChatParticipantResponse.js +3 -0
  216. package/dist/cjs/api/resources/agentApiParticipants/types/index.d.ts +3 -0
  217. package/dist/cjs/api/resources/agentApiParticipants/types/index.js +19 -0
  218. package/dist/cjs/api/resources/agentApiPeers/client/Client.d.ts +35 -0
  219. package/dist/cjs/api/resources/agentApiPeers/client/Client.js +128 -0
  220. package/dist/cjs/api/resources/agentApiPeers/client/index.d.ts +1 -0
  221. package/dist/cjs/api/resources/agentApiPeers/client/index.js +17 -0
  222. package/dist/cjs/api/resources/agentApiPeers/client/requests/ListAgentPeersRequest.d.ts +16 -0
  223. package/dist/cjs/api/resources/agentApiPeers/client/requests/ListAgentPeersRequest.js +3 -0
  224. package/dist/cjs/api/resources/agentApiPeers/client/requests/index.d.ts +1 -0
  225. package/dist/cjs/api/resources/agentApiPeers/client/requests/index.js +2 -0
  226. package/dist/cjs/api/resources/agentApiPeers/exports.d.ts +2 -0
  227. package/dist/cjs/api/resources/agentApiPeers/exports.js +21 -0
  228. package/dist/cjs/api/resources/agentApiPeers/index.d.ts +2 -0
  229. package/dist/cjs/api/resources/agentApiPeers/index.js +18 -0
  230. package/dist/cjs/api/resources/agentApiPeers/types/ListAgentPeersResponse.d.ts +13 -0
  231. package/dist/cjs/api/resources/agentApiPeers/types/ListAgentPeersResponse.js +3 -0
  232. package/dist/cjs/api/resources/agentApiPeers/types/index.d.ts +1 -0
  233. package/dist/cjs/api/resources/agentApiPeers/types/index.js +17 -0
  234. package/dist/cjs/api/resources/humanApiAgents/client/Client.d.ts +107 -0
  235. package/dist/cjs/api/resources/humanApiAgents/client/Client.js +299 -0
  236. package/dist/cjs/api/resources/humanApiAgents/client/index.d.ts +1 -0
  237. package/dist/cjs/api/resources/humanApiAgents/client/index.js +17 -0
  238. package/dist/cjs/api/resources/humanApiAgents/client/requests/DeleteMyAgentRequest.d.ts +10 -0
  239. package/dist/cjs/api/resources/humanApiAgents/client/requests/DeleteMyAgentRequest.js +3 -0
  240. package/dist/cjs/api/resources/humanApiAgents/client/requests/ListMyAgentsRequest.d.ts +35 -0
  241. package/dist/cjs/api/resources/humanApiAgents/client/requests/ListMyAgentsRequest.js +3 -0
  242. package/dist/cjs/api/resources/humanApiAgents/client/requests/RegisterMyAgentRequest.d.ts +13 -0
  243. package/dist/cjs/api/resources/humanApiAgents/client/requests/RegisterMyAgentRequest.js +3 -0
  244. package/dist/cjs/api/resources/humanApiAgents/client/requests/index.d.ts +3 -0
  245. package/dist/cjs/api/resources/humanApiAgents/client/requests/index.js +2 -0
  246. package/dist/cjs/api/resources/humanApiAgents/exports.d.ts +2 -0
  247. package/dist/cjs/api/resources/humanApiAgents/exports.js +21 -0
  248. package/dist/cjs/api/resources/humanApiAgents/index.d.ts +2 -0
  249. package/dist/cjs/api/resources/humanApiAgents/index.js +18 -0
  250. package/dist/cjs/api/resources/humanApiAgents/types/DeleteMyAgentResponse.d.ts +15 -0
  251. package/dist/cjs/api/resources/humanApiAgents/types/DeleteMyAgentResponse.js +3 -0
  252. package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsRequestOrder.d.ts +5 -0
  253. package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsRequestOrder.js +8 -0
  254. package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsRequestSort.d.ts +6 -0
  255. package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsRequestSort.js +9 -0
  256. package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsResponse.d.ts +36 -0
  257. package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsResponse.js +3 -0
  258. package/dist/cjs/api/resources/humanApiAgents/types/RegisterMyAgentResponse.d.ts +27 -0
  259. package/dist/cjs/api/resources/humanApiAgents/types/RegisterMyAgentResponse.js +3 -0
  260. package/dist/cjs/api/resources/humanApiAgents/types/index.d.ts +5 -0
  261. package/dist/cjs/api/resources/humanApiAgents/types/index.js +21 -0
  262. package/dist/cjs/api/resources/humanApiChats/client/Client.d.ts +81 -0
  263. package/dist/cjs/api/resources/humanApiChats/client/Client.js +262 -0
  264. package/dist/cjs/api/resources/humanApiChats/client/index.d.ts +1 -0
  265. package/dist/cjs/api/resources/humanApiChats/client/index.js +17 -0
  266. package/dist/cjs/api/resources/humanApiChats/client/requests/CreateMyChatRoomRequest.d.ts +17 -0
  267. package/dist/cjs/api/resources/humanApiChats/client/requests/CreateMyChatRoomRequest.js +3 -0
  268. package/dist/cjs/api/resources/humanApiChats/client/requests/ListMyChatsRequest.d.ts +32 -0
  269. package/dist/cjs/api/resources/humanApiChats/client/requests/ListMyChatsRequest.js +3 -0
  270. package/dist/cjs/api/resources/humanApiChats/client/requests/index.d.ts +2 -0
  271. package/dist/cjs/api/resources/humanApiChats/client/requests/index.js +2 -0
  272. package/dist/cjs/api/resources/humanApiChats/exports.d.ts +2 -0
  273. package/dist/cjs/api/resources/humanApiChats/exports.js +21 -0
  274. package/dist/cjs/api/resources/humanApiChats/index.d.ts +2 -0
  275. package/dist/cjs/api/resources/humanApiChats/index.js +18 -0
  276. package/dist/cjs/api/resources/humanApiChats/types/CreateMyChatRoomResponse.d.ts +4 -0
  277. package/dist/cjs/api/resources/humanApiChats/types/CreateMyChatRoomResponse.js +3 -0
  278. package/dist/cjs/api/resources/humanApiChats/types/GetMyChatRoomResponse.d.ts +4 -0
  279. package/dist/cjs/api/resources/humanApiChats/types/GetMyChatRoomResponse.js +3 -0
  280. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestOrder.d.ts +5 -0
  281. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestOrder.js +8 -0
  282. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestSortBy.d.ts +5 -0
  283. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestSortBy.js +8 -0
  284. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestStatus.d.ts +6 -0
  285. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestStatus.js +9 -0
  286. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestType.d.ts +6 -0
  287. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestType.js +9 -0
  288. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsResponse.d.ts +23 -0
  289. package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsResponse.js +3 -0
  290. package/dist/cjs/api/resources/humanApiChats/types/index.d.ts +7 -0
  291. package/dist/cjs/api/resources/humanApiChats/types/index.js +23 -0
  292. package/dist/cjs/api/resources/humanApiContacts/client/Client.d.ts +201 -0
  293. package/dist/cjs/api/resources/humanApiContacts/client/Client.js +648 -0
  294. package/dist/cjs/api/resources/humanApiContacts/client/index.d.ts +1 -0
  295. package/dist/cjs/api/resources/humanApiContacts/client/index.js +17 -0
  296. package/dist/cjs/api/resources/humanApiContacts/client/requests/CreateContactRequestRequest.d.ts +19 -0
  297. package/dist/cjs/api/resources/humanApiContacts/client/requests/CreateContactRequestRequest.js +3 -0
  298. package/dist/cjs/api/resources/humanApiContacts/client/requests/ListMyContactsRequest.d.ts +13 -0
  299. package/dist/cjs/api/resources/humanApiContacts/client/requests/ListMyContactsRequest.js +3 -0
  300. package/dist/cjs/api/resources/humanApiContacts/client/requests/ListReceivedContactRequestsRequest.d.ts +13 -0
  301. package/dist/cjs/api/resources/humanApiContacts/client/requests/ListReceivedContactRequestsRequest.js +3 -0
  302. package/dist/cjs/api/resources/humanApiContacts/client/requests/ListSentContactRequestsRequest.d.ts +17 -0
  303. package/dist/cjs/api/resources/humanApiContacts/client/requests/ListSentContactRequestsRequest.js +3 -0
  304. package/dist/cjs/api/resources/humanApiContacts/client/requests/RemoveMyContactRequest.d.ts +10 -0
  305. package/dist/cjs/api/resources/humanApiContacts/client/requests/RemoveMyContactRequest.js +3 -0
  306. package/dist/cjs/api/resources/humanApiContacts/client/requests/ResolveHandleRequest.d.ts +10 -0
  307. package/dist/cjs/api/resources/humanApiContacts/client/requests/ResolveHandleRequest.js +3 -0
  308. package/dist/cjs/api/resources/humanApiContacts/client/requests/index.d.ts +6 -0
  309. package/dist/cjs/api/resources/humanApiContacts/client/requests/index.js +2 -0
  310. package/dist/cjs/api/resources/humanApiContacts/exports.d.ts +2 -0
  311. package/dist/cjs/api/resources/humanApiContacts/exports.js +21 -0
  312. package/dist/cjs/api/resources/humanApiContacts/index.d.ts +2 -0
  313. package/dist/cjs/api/resources/humanApiContacts/index.js +18 -0
  314. package/dist/cjs/api/resources/humanApiContacts/types/ApproveContactRequestResponse.d.ts +4 -0
  315. package/dist/cjs/api/resources/humanApiContacts/types/ApproveContactRequestResponse.js +3 -0
  316. package/dist/cjs/api/resources/humanApiContacts/types/CancelContactRequestResponse.d.ts +4 -0
  317. package/dist/cjs/api/resources/humanApiContacts/types/CancelContactRequestResponse.js +3 -0
  318. package/dist/cjs/api/resources/humanApiContacts/types/CreateContactRequestResponse.d.ts +4 -0
  319. package/dist/cjs/api/resources/humanApiContacts/types/CreateContactRequestResponse.js +3 -0
  320. package/dist/cjs/api/resources/humanApiContacts/types/ListMyContactsResponse.d.ts +21 -0
  321. package/dist/cjs/api/resources/humanApiContacts/types/ListMyContactsResponse.js +3 -0
  322. package/dist/cjs/api/resources/humanApiContacts/types/ListReceivedContactRequestsResponse.d.ts +21 -0
  323. package/dist/cjs/api/resources/humanApiContacts/types/ListReceivedContactRequestsResponse.js +3 -0
  324. package/dist/cjs/api/resources/humanApiContacts/types/ListSentContactRequestsRequestStatus.d.ts +9 -0
  325. package/dist/cjs/api/resources/humanApiContacts/types/ListSentContactRequestsRequestStatus.js +12 -0
  326. package/dist/cjs/api/resources/humanApiContacts/types/ListSentContactRequestsResponse.d.ts +21 -0
  327. package/dist/cjs/api/resources/humanApiContacts/types/ListSentContactRequestsResponse.js +3 -0
  328. package/dist/cjs/api/resources/humanApiContacts/types/RejectContactRequestResponse.d.ts +4 -0
  329. package/dist/cjs/api/resources/humanApiContacts/types/RejectContactRequestResponse.js +3 -0
  330. package/dist/cjs/api/resources/humanApiContacts/types/RemoveMyContactResponse.d.ts +8 -0
  331. package/dist/cjs/api/resources/humanApiContacts/types/RemoveMyContactResponse.js +3 -0
  332. package/dist/cjs/api/resources/humanApiContacts/types/ResolveHandleResponse.d.ts +4 -0
  333. package/dist/cjs/api/resources/humanApiContacts/types/ResolveHandleResponse.js +3 -0
  334. package/dist/cjs/api/resources/humanApiContacts/types/index.d.ts +10 -0
  335. package/dist/cjs/api/resources/humanApiContacts/types/index.js +26 -0
  336. package/dist/cjs/api/resources/humanApiMemories/client/Client.d.ts +131 -0
  337. package/dist/cjs/api/resources/humanApiMemories/client/Client.js +426 -0
  338. package/dist/cjs/api/resources/humanApiMemories/client/index.d.ts +1 -0
  339. package/dist/cjs/api/resources/humanApiMemories/client/index.js +17 -0
  340. package/dist/cjs/api/resources/humanApiMemories/client/requests/ListUserMemoriesRequest.d.ts +31 -0
  341. package/dist/cjs/api/resources/humanApiMemories/client/requests/ListUserMemoriesRequest.js +3 -0
  342. package/dist/cjs/api/resources/humanApiMemories/client/requests/index.d.ts +1 -0
  343. package/dist/cjs/api/resources/humanApiMemories/client/requests/index.js +2 -0
  344. package/dist/cjs/api/resources/humanApiMemories/exports.d.ts +2 -0
  345. package/dist/cjs/api/resources/humanApiMemories/exports.js +21 -0
  346. package/dist/cjs/api/resources/humanApiMemories/index.d.ts +2 -0
  347. package/dist/cjs/api/resources/humanApiMemories/index.js +18 -0
  348. package/dist/cjs/api/resources/humanApiMemories/types/ArchiveUserMemoryResponse.d.ts +4 -0
  349. package/dist/cjs/api/resources/humanApiMemories/types/ArchiveUserMemoryResponse.js +3 -0
  350. package/dist/cjs/api/resources/humanApiMemories/types/GetUserMemoryResponse.d.ts +4 -0
  351. package/dist/cjs/api/resources/humanApiMemories/types/GetUserMemoryResponse.js +3 -0
  352. package/dist/cjs/api/resources/humanApiMemories/types/ListUserMemoriesResponse.d.ts +13 -0
  353. package/dist/cjs/api/resources/humanApiMemories/types/ListUserMemoriesResponse.js +3 -0
  354. package/dist/cjs/api/resources/humanApiMemories/types/RestoreUserMemoryResponse.d.ts +4 -0
  355. package/dist/cjs/api/resources/humanApiMemories/types/RestoreUserMemoryResponse.js +3 -0
  356. package/dist/cjs/api/resources/humanApiMemories/types/SupersedeUserMemoryResponse.d.ts +4 -0
  357. package/dist/cjs/api/resources/humanApiMemories/types/SupersedeUserMemoryResponse.js +3 -0
  358. package/dist/cjs/api/resources/humanApiMemories/types/index.d.ts +5 -0
  359. package/dist/cjs/api/resources/humanApiMemories/types/index.js +21 -0
  360. package/dist/cjs/api/resources/humanApiMessages/client/Client.d.ts +97 -0
  361. package/dist/cjs/api/resources/humanApiMessages/client/Client.js +237 -0
  362. package/dist/cjs/api/resources/humanApiMessages/client/index.d.ts +1 -0
  363. package/dist/cjs/api/resources/humanApiMessages/client/index.js +17 -0
  364. package/dist/cjs/api/resources/humanApiMessages/client/requests/ListMyChatMessagesRequest.d.ts +26 -0
  365. package/dist/cjs/api/resources/humanApiMessages/client/requests/ListMyChatMessagesRequest.js +3 -0
  366. package/dist/cjs/api/resources/humanApiMessages/client/requests/SendMyChatMessageRequest.d.ts +15 -0
  367. package/dist/cjs/api/resources/humanApiMessages/client/requests/SendMyChatMessageRequest.js +3 -0
  368. package/dist/cjs/api/resources/humanApiMessages/client/requests/index.d.ts +2 -0
  369. package/dist/cjs/api/resources/humanApiMessages/client/requests/index.js +2 -0
  370. package/dist/cjs/api/resources/humanApiMessages/exports.d.ts +2 -0
  371. package/dist/cjs/api/resources/humanApiMessages/exports.js +21 -0
  372. package/dist/cjs/api/resources/humanApiMessages/index.d.ts +2 -0
  373. package/dist/cjs/api/resources/humanApiMessages/index.js +18 -0
  374. package/dist/cjs/api/resources/humanApiMessages/types/ListMyChatMessagesRequestMessageType.d.ts +10 -0
  375. package/dist/cjs/api/resources/humanApiMessages/types/ListMyChatMessagesRequestMessageType.js +13 -0
  376. package/dist/cjs/api/resources/humanApiMessages/types/ListMyChatMessagesResponse.d.ts +23 -0
  377. package/dist/cjs/api/resources/humanApiMessages/types/ListMyChatMessagesResponse.js +3 -0
  378. package/dist/cjs/api/resources/humanApiMessages/types/SendMyChatMessageResponse.d.ts +4 -0
  379. package/dist/cjs/api/resources/humanApiMessages/types/SendMyChatMessageResponse.js +3 -0
  380. package/dist/cjs/api/resources/humanApiMessages/types/index.d.ts +3 -0
  381. package/dist/cjs/api/resources/humanApiMessages/types/index.js +19 -0
  382. package/dist/cjs/api/resources/humanApiParticipants/client/Client.d.ts +84 -0
  383. package/dist/cjs/api/resources/humanApiParticipants/client/Client.js +264 -0
  384. package/dist/cjs/api/resources/humanApiParticipants/client/index.d.ts +1 -0
  385. package/dist/cjs/api/resources/humanApiParticipants/client/index.js +17 -0
  386. package/dist/cjs/api/resources/humanApiParticipants/client/requests/AddMyChatParticipantRequest.d.ts +12 -0
  387. package/dist/cjs/api/resources/humanApiParticipants/client/requests/AddMyChatParticipantRequest.js +3 -0
  388. package/dist/cjs/api/resources/humanApiParticipants/client/requests/ListMyChatParticipantsRequest.d.ts +23 -0
  389. package/dist/cjs/api/resources/humanApiParticipants/client/requests/ListMyChatParticipantsRequest.js +3 -0
  390. package/dist/cjs/api/resources/humanApiParticipants/client/requests/index.d.ts +2 -0
  391. package/dist/cjs/api/resources/humanApiParticipants/client/requests/index.js +2 -0
  392. package/dist/cjs/api/resources/humanApiParticipants/exports.d.ts +2 -0
  393. package/dist/cjs/api/resources/humanApiParticipants/exports.js +21 -0
  394. package/dist/cjs/api/resources/humanApiParticipants/index.d.ts +2 -0
  395. package/dist/cjs/api/resources/humanApiParticipants/index.js +18 -0
  396. package/dist/cjs/api/resources/humanApiParticipants/types/AddMyChatParticipantResponse.d.ts +4 -0
  397. package/dist/cjs/api/resources/humanApiParticipants/types/AddMyChatParticipantResponse.js +3 -0
  398. package/dist/cjs/api/resources/humanApiParticipants/types/ListMyChatParticipantsRequestParticipantType.d.ts +5 -0
  399. package/dist/cjs/api/resources/humanApiParticipants/types/ListMyChatParticipantsRequestParticipantType.js +8 -0
  400. package/dist/cjs/api/resources/humanApiParticipants/types/ListMyChatParticipantsResponse.d.ts +23 -0
  401. package/dist/cjs/api/resources/humanApiParticipants/types/ListMyChatParticipantsResponse.js +3 -0
  402. package/dist/cjs/api/resources/humanApiParticipants/types/RemoveMyChatParticipantResponse.d.ts +4 -0
  403. package/dist/cjs/api/resources/humanApiParticipants/types/RemoveMyChatParticipantResponse.js +3 -0
  404. package/dist/cjs/api/resources/humanApiParticipants/types/index.d.ts +4 -0
  405. package/dist/cjs/api/resources/humanApiParticipants/types/index.js +20 -0
  406. package/dist/cjs/api/resources/humanApiPeers/client/Client.d.ts +46 -0
  407. package/dist/cjs/api/resources/humanApiPeers/client/Client.js +140 -0
  408. package/dist/cjs/api/resources/humanApiPeers/client/index.d.ts +1 -0
  409. package/dist/cjs/api/resources/humanApiPeers/client/index.js +17 -0
  410. package/dist/cjs/api/resources/humanApiPeers/client/requests/ListMyPeersRequest.d.ts +20 -0
  411. package/dist/cjs/api/resources/humanApiPeers/client/requests/ListMyPeersRequest.js +3 -0
  412. package/dist/cjs/api/resources/humanApiPeers/client/requests/index.d.ts +1 -0
  413. package/dist/cjs/api/resources/humanApiPeers/client/requests/index.js +2 -0
  414. package/dist/cjs/api/resources/humanApiPeers/exports.d.ts +2 -0
  415. package/dist/cjs/api/resources/humanApiPeers/exports.js +21 -0
  416. package/dist/cjs/api/resources/humanApiPeers/index.d.ts +2 -0
  417. package/dist/cjs/api/resources/humanApiPeers/index.js +18 -0
  418. package/dist/cjs/api/resources/humanApiPeers/types/ListMyPeersRequestType.d.ts +5 -0
  419. package/dist/cjs/api/resources/humanApiPeers/types/ListMyPeersRequestType.js +8 -0
  420. package/dist/cjs/api/resources/humanApiPeers/types/ListMyPeersResponse.d.ts +13 -0
  421. package/dist/cjs/api/resources/humanApiPeers/types/ListMyPeersResponse.js +3 -0
  422. package/dist/cjs/api/resources/humanApiPeers/types/index.d.ts +2 -0
  423. package/dist/cjs/api/resources/humanApiPeers/types/index.js +18 -0
  424. package/dist/cjs/api/resources/humanApiProfile/client/Client.d.ts +46 -0
  425. package/dist/cjs/api/resources/humanApiProfile/client/Client.js +171 -0
  426. package/dist/cjs/api/resources/humanApiProfile/client/index.d.ts +1 -0
  427. package/dist/cjs/api/resources/humanApiProfile/client/index.js +17 -0
  428. package/dist/cjs/api/resources/humanApiProfile/client/requests/UpdateMyProfileRequest.d.ts +21 -0
  429. package/dist/cjs/api/resources/humanApiProfile/client/requests/UpdateMyProfileRequest.js +3 -0
  430. package/dist/cjs/api/resources/humanApiProfile/client/requests/index.d.ts +1 -0
  431. package/dist/cjs/api/resources/humanApiProfile/client/requests/index.js +2 -0
  432. package/dist/cjs/api/resources/humanApiProfile/exports.d.ts +2 -0
  433. package/dist/cjs/api/resources/humanApiProfile/exports.js +21 -0
  434. package/dist/cjs/api/resources/humanApiProfile/index.d.ts +2 -0
  435. package/dist/cjs/api/resources/humanApiProfile/index.js +18 -0
  436. package/dist/cjs/api/resources/humanApiProfile/types/GetMyProfileResponse.d.ts +4 -0
  437. package/dist/cjs/api/resources/humanApiProfile/types/GetMyProfileResponse.js +3 -0
  438. package/dist/cjs/api/resources/humanApiProfile/types/UpdateMyProfileResponse.d.ts +4 -0
  439. package/dist/cjs/api/resources/humanApiProfile/types/UpdateMyProfileResponse.js +3 -0
  440. package/dist/cjs/api/resources/humanApiProfile/types/index.d.ts +2 -0
  441. package/dist/cjs/api/resources/humanApiProfile/types/index.js +18 -0
  442. package/dist/cjs/api/resources/index.d.ts +53 -0
  443. package/dist/cjs/api/resources/index.js +92 -0
  444. package/dist/cjs/api/types/AgentActivityResponse.d.ts +7 -0
  445. package/dist/cjs/api/types/AgentActivityResponse.js +3 -0
  446. package/dist/cjs/api/types/AgentContact.d.ts +30 -0
  447. package/dist/cjs/api/types/AgentContact.js +12 -0
  448. package/dist/cjs/api/types/AgentMe.d.ts +23 -0
  449. package/dist/cjs/api/types/AgentMe.js +3 -0
  450. package/dist/cjs/api/types/AgentMemory.d.ts +71 -0
  451. package/dist/cjs/api/types/AgentMemory.js +40 -0
  452. package/dist/cjs/api/types/AgentMemoryCreateRequest.d.ts +63 -0
  453. package/dist/cjs/api/types/AgentMemoryCreateRequest.js +34 -0
  454. package/dist/cjs/api/types/AgentRegisterRequest.d.ts +9 -0
  455. package/dist/cjs/api/types/AgentRegisterRequest.js +3 -0
  456. package/dist/cjs/api/types/ChatEventMessageType.d.ts +19 -0
  457. package/dist/cjs/api/types/ChatEventMessageType.js +22 -0
  458. package/dist/cjs/api/types/ChatEventRequest.d.ts +22 -0
  459. package/dist/cjs/api/types/ChatEventRequest.js +3 -0
  460. package/dist/cjs/api/types/ChatMessage.d.ts +25 -0
  461. package/dist/cjs/api/types/ChatMessage.js +3 -0
  462. package/dist/cjs/api/types/ChatMessageRequest.d.ts +22 -0
  463. package/dist/cjs/api/types/ChatMessageRequest.js +3 -0
  464. package/dist/cjs/api/types/ChatParticipant.d.ts +25 -0
  465. package/dist/cjs/api/types/ChatParticipant.js +12 -0
  466. package/dist/cjs/api/types/ChatParticipantDetails.d.ts +29 -0
  467. package/dist/cjs/api/types/ChatParticipantDetails.js +12 -0
  468. package/dist/cjs/api/types/ChatRoom.d.ts +15 -0
  469. package/dist/cjs/api/types/ChatRoom.js +3 -0
  470. package/dist/cjs/api/types/ChatRoomRequest.d.ts +9 -0
  471. package/dist/cjs/api/types/ChatRoomRequest.js +3 -0
  472. package/dist/cjs/api/types/Contact.d.ts +41 -0
  473. package/dist/cjs/api/types/Contact.js +12 -0
  474. package/dist/cjs/api/types/ContactRequest.d.ts +68 -0
  475. package/dist/cjs/api/types/ContactRequest.js +25 -0
  476. package/dist/cjs/api/types/ContactRequestActionResponse.d.ts +18 -0
  477. package/dist/cjs/api/types/ContactRequestActionResponse.js +13 -0
  478. package/dist/cjs/api/types/Error_.d.ts +18 -0
  479. package/dist/cjs/api/types/Error_.js +3 -0
  480. package/dist/cjs/api/types/EventCreatedResponse.d.ts +11 -0
  481. package/dist/cjs/api/types/EventCreatedResponse.js +3 -0
  482. package/dist/cjs/api/types/MeChatRoom.d.ts +35 -0
  483. package/dist/cjs/api/types/MeChatRoom.js +19 -0
  484. package/dist/cjs/api/types/MessageSentResponse.d.ts +24 -0
  485. package/dist/cjs/api/types/MessageSentResponse.js +3 -0
  486. package/dist/cjs/api/types/MessageStatusResponse.d.ts +22 -0
  487. package/dist/cjs/api/types/MessageStatusResponse.js +13 -0
  488. package/dist/cjs/api/types/MyAgent.d.ts +29 -0
  489. package/dist/cjs/api/types/MyAgent.js +3 -0
  490. package/dist/cjs/api/types/ParticipantRequest.d.ts +18 -0
  491. package/dist/cjs/api/types/ParticipantRequest.js +13 -0
  492. package/dist/cjs/api/types/ParticipantRole.d.ts +13 -0
  493. package/dist/cjs/api/types/ParticipantRole.js +16 -0
  494. package/dist/cjs/api/types/Peer.d.ts +39 -0
  495. package/dist/cjs/api/types/Peer.js +17 -0
  496. package/dist/cjs/api/types/ReceivedContactRequest.d.ts +22 -0
  497. package/dist/cjs/api/types/ReceivedContactRequest.js +13 -0
  498. package/dist/cjs/api/types/ResolvedEntity.d.ts +21 -0
  499. package/dist/cjs/api/types/ResolvedEntity.js +12 -0
  500. package/dist/cjs/api/types/SentContactRequest.d.ts +22 -0
  501. package/dist/cjs/api/types/SentContactRequest.js +13 -0
  502. package/dist/cjs/api/types/UserDetails.d.ts +25 -0
  503. package/dist/cjs/api/types/UserDetails.js +12 -0
  504. package/dist/cjs/api/types/UserMemory.d.ts +73 -0
  505. package/dist/cjs/api/types/UserMemory.js +40 -0
  506. package/dist/cjs/api/types/ValidationError.d.ts +18 -0
  507. package/dist/cjs/api/types/ValidationError.js +3 -0
  508. package/dist/cjs/api/types/index.d.ts +32 -0
  509. package/dist/cjs/api/types/index.js +48 -0
  510. package/dist/cjs/auth/HeaderAuthProvider.d.ts +20 -0
  511. package/dist/cjs/auth/HeaderAuthProvider.js +80 -0
  512. package/dist/cjs/auth/index.d.ts +1 -0
  513. package/dist/cjs/auth/index.js +5 -0
  514. package/dist/cjs/core/auth/AuthProvider.d.ts +8 -0
  515. package/dist/cjs/core/auth/AuthProvider.js +9 -0
  516. package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
  517. package/dist/cjs/core/auth/AuthRequest.js +2 -0
  518. package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
  519. package/dist/cjs/core/auth/BasicAuth.js +33 -0
  520. package/dist/cjs/core/auth/BearerToken.d.ts +7 -0
  521. package/dist/cjs/core/auth/BearerToken.js +16 -0
  522. package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
  523. package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
  524. package/dist/cjs/core/auth/index.d.ts +5 -0
  525. package/dist/cjs/core/auth/index.js +11 -0
  526. package/dist/cjs/core/base64.d.ts +2 -0
  527. package/dist/cjs/core/base64.js +26 -0
  528. package/dist/cjs/core/exports.d.ts +1 -0
  529. package/dist/cjs/core/exports.js +17 -0
  530. package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
  531. package/dist/cjs/core/fetcher/APIResponse.js +2 -0
  532. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +19 -0
  533. package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
  534. package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
  535. package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
  536. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
  537. package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
  538. package/dist/cjs/core/fetcher/Fetcher.d.ts +56 -0
  539. package/dist/cjs/core/fetcher/Fetcher.js +327 -0
  540. package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
  541. package/dist/cjs/core/fetcher/Headers.js +84 -0
  542. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
  543. package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
  544. package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
  545. package/dist/cjs/core/fetcher/RawResponse.js +44 -0
  546. package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
  547. package/dist/cjs/core/fetcher/Supplier.js +22 -0
  548. package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
  549. package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
  550. package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
  551. package/dist/cjs/core/fetcher/getErrorResponseBody.js +45 -0
  552. package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
  553. package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
  554. package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
  555. package/dist/cjs/core/fetcher/getHeader.js +11 -0
  556. package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
  557. package/dist/cjs/core/fetcher/getRequestBody.js +27 -0
  558. package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
  559. package/dist/cjs/core/fetcher/getResponseBody.js +69 -0
  560. package/dist/cjs/core/fetcher/index.d.ts +13 -0
  561. package/dist/cjs/core/fetcher/index.js +19 -0
  562. package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +49 -0
  563. package/dist/cjs/core/fetcher/makePassthroughRequest.js +135 -0
  564. package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -0
  565. package/dist/cjs/core/fetcher/makeRequest.js +61 -0
  566. package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
  567. package/dist/cjs/core/fetcher/requestWithRetries.js +70 -0
  568. package/dist/cjs/core/fetcher/signals.d.ts +5 -0
  569. package/dist/cjs/core/fetcher/signals.js +24 -0
  570. package/dist/cjs/core/headers.d.ts +2 -0
  571. package/dist/cjs/core/headers.js +31 -0
  572. package/dist/cjs/core/index.d.ts +6 -0
  573. package/dist/cjs/core/index.js +45 -0
  574. package/dist/cjs/core/json.d.ts +15 -0
  575. package/dist/cjs/core/json.js +24 -0
  576. package/dist/cjs/core/logging/exports.d.ts +18 -0
  577. package/dist/cjs/core/logging/exports.js +45 -0
  578. package/dist/cjs/core/logging/index.d.ts +1 -0
  579. package/dist/cjs/core/logging/index.js +17 -0
  580. package/dist/cjs/core/logging/logger.d.ts +126 -0
  581. package/dist/cjs/core/logging/logger.js +144 -0
  582. package/dist/cjs/core/runtime/index.d.ts +1 -0
  583. package/dist/cjs/core/runtime/index.js +5 -0
  584. package/dist/cjs/core/runtime/runtime.d.ts +9 -0
  585. package/dist/cjs/core/runtime/runtime.js +104 -0
  586. package/dist/cjs/core/url/QueryStringBuilder.d.ts +47 -0
  587. package/dist/cjs/core/url/QueryStringBuilder.js +83 -0
  588. package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
  589. package/dist/cjs/core/url/encodePathParam.js +21 -0
  590. package/dist/cjs/core/url/index.d.ts +4 -0
  591. package/dist/cjs/core/url/index.js +11 -0
  592. package/dist/cjs/core/url/join.d.ts +1 -0
  593. package/dist/cjs/core/url/join.js +68 -0
  594. package/dist/cjs/core/url/qs.d.ts +7 -0
  595. package/dist/cjs/core/url/qs.js +76 -0
  596. package/dist/cjs/environments.d.ts +4 -0
  597. package/dist/cjs/environments.js +7 -0
  598. package/dist/cjs/errors/BandError.d.ts +14 -0
  599. package/dist/cjs/errors/BandError.js +35 -0
  600. package/dist/cjs/errors/BandTimeoutError.d.ts +6 -0
  601. package/dist/cjs/errors/BandTimeoutError.js +18 -0
  602. package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
  603. package/dist/cjs/errors/handleNonStatusCodeError.js +68 -0
  604. package/dist/cjs/errors/index.d.ts +2 -0
  605. package/dist/cjs/errors/index.js +7 -0
  606. package/dist/cjs/exports.d.ts +1 -0
  607. package/dist/cjs/exports.js +17 -0
  608. package/dist/cjs/index.d.ts +6 -0
  609. package/dist/cjs/index.js +48 -0
  610. package/dist/cjs/version.d.ts +1 -0
  611. package/dist/cjs/version.js +4 -0
  612. package/dist/esm/BaseClient.d.mts +42 -0
  613. package/dist/esm/BaseClient.mjs +40 -0
  614. package/dist/esm/Client.d.mts +77 -0
  615. package/dist/esm/Client.mjs +131 -0
  616. package/dist/esm/api/errors/BadRequestError.d.mts +6 -0
  617. package/dist/esm/api/errors/BadRequestError.mjs +17 -0
  618. package/dist/esm/api/errors/ConflictError.d.mts +6 -0
  619. package/dist/esm/api/errors/ConflictError.mjs +17 -0
  620. package/dist/esm/api/errors/ForbiddenError.d.mts +6 -0
  621. package/dist/esm/api/errors/ForbiddenError.mjs +17 -0
  622. package/dist/esm/api/errors/NotFoundError.d.mts +6 -0
  623. package/dist/esm/api/errors/NotFoundError.mjs +17 -0
  624. package/dist/esm/api/errors/ServiceUnavailableError.d.mts +6 -0
  625. package/dist/esm/api/errors/ServiceUnavailableError.mjs +17 -0
  626. package/dist/esm/api/errors/UnauthorizedError.d.mts +6 -0
  627. package/dist/esm/api/errors/UnauthorizedError.mjs +17 -0
  628. package/dist/esm/api/errors/UnprocessableEntityError.d.mts +5 -0
  629. package/dist/esm/api/errors/UnprocessableEntityError.mjs +17 -0
  630. package/dist/esm/api/errors/index.d.mts +7 -0
  631. package/dist/esm/api/errors/index.mjs +7 -0
  632. package/dist/esm/api/index.d.mts +3 -0
  633. package/dist/esm/api/index.mjs +3 -0
  634. package/dist/esm/api/resources/agentApiActivity/client/Client.d.mts +45 -0
  635. package/dist/esm/api/resources/agentApiActivity/client/Client.mjs +100 -0
  636. package/dist/esm/api/resources/agentApiActivity/client/index.d.mts +1 -0
  637. package/dist/esm/api/resources/agentApiActivity/client/index.mjs +1 -0
  638. package/dist/esm/api/resources/agentApiActivity/client/requests/ReportAgentChatActivityRequest.d.mts +10 -0
  639. package/dist/esm/api/resources/agentApiActivity/client/requests/ReportAgentChatActivityRequest.mjs +2 -0
  640. package/dist/esm/api/resources/agentApiActivity/client/requests/index.d.mts +1 -0
  641. package/dist/esm/api/resources/agentApiActivity/client/requests/index.mjs +1 -0
  642. package/dist/esm/api/resources/agentApiActivity/exports.d.mts +2 -0
  643. package/dist/esm/api/resources/agentApiActivity/exports.mjs +3 -0
  644. package/dist/esm/api/resources/agentApiActivity/index.d.mts +2 -0
  645. package/dist/esm/api/resources/agentApiActivity/index.mjs +2 -0
  646. package/dist/esm/api/resources/agentApiActivity/types/ReportAgentChatActivityResponse.d.mts +4 -0
  647. package/dist/esm/api/resources/agentApiActivity/types/ReportAgentChatActivityResponse.mjs +2 -0
  648. package/dist/esm/api/resources/agentApiActivity/types/index.d.mts +1 -0
  649. package/dist/esm/api/resources/agentApiActivity/types/index.mjs +1 -0
  650. package/dist/esm/api/resources/agentApiChats/client/Client.d.mts +65 -0
  651. package/dist/esm/api/resources/agentApiChats/client/Client.mjs +201 -0
  652. package/dist/esm/api/resources/agentApiChats/client/index.d.mts +1 -0
  653. package/dist/esm/api/resources/agentApiChats/client/index.mjs +1 -0
  654. package/dist/esm/api/resources/agentApiChats/client/requests/CreateAgentChatRequest.d.mts +10 -0
  655. package/dist/esm/api/resources/agentApiChats/client/requests/CreateAgentChatRequest.mjs +2 -0
  656. package/dist/esm/api/resources/agentApiChats/client/requests/ListAgentChatsRequest.d.mts +13 -0
  657. package/dist/esm/api/resources/agentApiChats/client/requests/ListAgentChatsRequest.mjs +2 -0
  658. package/dist/esm/api/resources/agentApiChats/client/requests/index.d.mts +2 -0
  659. package/dist/esm/api/resources/agentApiChats/client/requests/index.mjs +1 -0
  660. package/dist/esm/api/resources/agentApiChats/exports.d.mts +2 -0
  661. package/dist/esm/api/resources/agentApiChats/exports.mjs +3 -0
  662. package/dist/esm/api/resources/agentApiChats/index.d.mts +2 -0
  663. package/dist/esm/api/resources/agentApiChats/index.mjs +2 -0
  664. package/dist/esm/api/resources/agentApiChats/types/CreateAgentChatResponse.d.mts +4 -0
  665. package/dist/esm/api/resources/agentApiChats/types/CreateAgentChatResponse.mjs +2 -0
  666. package/dist/esm/api/resources/agentApiChats/types/GetAgentChatResponse.d.mts +4 -0
  667. package/dist/esm/api/resources/agentApiChats/types/GetAgentChatResponse.mjs +2 -0
  668. package/dist/esm/api/resources/agentApiChats/types/ListAgentChatsResponse.d.mts +13 -0
  669. package/dist/esm/api/resources/agentApiChats/types/ListAgentChatsResponse.mjs +2 -0
  670. package/dist/esm/api/resources/agentApiChats/types/index.d.mts +3 -0
  671. package/dist/esm/api/resources/agentApiChats/types/index.mjs +3 -0
  672. package/dist/esm/api/resources/agentApiContacts/client/Client.d.mts +112 -0
  673. package/dist/esm/api/resources/agentApiContacts/client/Client.mjs +348 -0
  674. package/dist/esm/api/resources/agentApiContacts/client/index.d.mts +1 -0
  675. package/dist/esm/api/resources/agentApiContacts/client/index.mjs +1 -0
  676. package/dist/esm/api/resources/agentApiContacts/client/requests/AddAgentContactRequest.d.mts +11 -0
  677. package/dist/esm/api/resources/agentApiContacts/client/requests/AddAgentContactRequest.mjs +2 -0
  678. package/dist/esm/api/resources/agentApiContacts/client/requests/ListAgentContactRequestsRequest.d.mts +17 -0
  679. package/dist/esm/api/resources/agentApiContacts/client/requests/ListAgentContactRequestsRequest.mjs +2 -0
  680. package/dist/esm/api/resources/agentApiContacts/client/requests/ListAgentContactsRequest.d.mts +13 -0
  681. package/dist/esm/api/resources/agentApiContacts/client/requests/ListAgentContactsRequest.mjs +2 -0
  682. package/dist/esm/api/resources/agentApiContacts/client/requests/RemoveAgentContactRequest.d.mts +10 -0
  683. package/dist/esm/api/resources/agentApiContacts/client/requests/RemoveAgentContactRequest.mjs +2 -0
  684. package/dist/esm/api/resources/agentApiContacts/client/requests/RespondToAgentContactRequestRequest.d.mts +21 -0
  685. package/dist/esm/api/resources/agentApiContacts/client/requests/RespondToAgentContactRequestRequest.mjs +9 -0
  686. package/dist/esm/api/resources/agentApiContacts/client/requests/index.d.mts +5 -0
  687. package/dist/esm/api/resources/agentApiContacts/client/requests/index.mjs +1 -0
  688. package/dist/esm/api/resources/agentApiContacts/exports.d.mts +2 -0
  689. package/dist/esm/api/resources/agentApiContacts/exports.mjs +3 -0
  690. package/dist/esm/api/resources/agentApiContacts/index.d.mts +2 -0
  691. package/dist/esm/api/resources/agentApiContacts/index.mjs +2 -0
  692. package/dist/esm/api/resources/agentApiContacts/types/AddAgentContactResponse.d.mts +16 -0
  693. package/dist/esm/api/resources/agentApiContacts/types/AddAgentContactResponse.mjs +11 -0
  694. package/dist/esm/api/resources/agentApiContacts/types/ListAgentContactRequestsRequestSentStatus.d.mts +8 -0
  695. package/dist/esm/api/resources/agentApiContacts/types/ListAgentContactRequestsRequestSentStatus.mjs +8 -0
  696. package/dist/esm/api/resources/agentApiContacts/types/ListAgentContactRequestsResponse.d.mts +35 -0
  697. package/dist/esm/api/resources/agentApiContacts/types/ListAgentContactRequestsResponse.mjs +2 -0
  698. package/dist/esm/api/resources/agentApiContacts/types/ListAgentContactsResponse.d.mts +13 -0
  699. package/dist/esm/api/resources/agentApiContacts/types/ListAgentContactsResponse.mjs +2 -0
  700. package/dist/esm/api/resources/agentApiContacts/types/RemoveAgentContactResponse.d.mts +8 -0
  701. package/dist/esm/api/resources/agentApiContacts/types/RemoveAgentContactResponse.mjs +2 -0
  702. package/dist/esm/api/resources/agentApiContacts/types/RespondToAgentContactRequestResponse.d.mts +17 -0
  703. package/dist/esm/api/resources/agentApiContacts/types/RespondToAgentContactRequestResponse.mjs +12 -0
  704. package/dist/esm/api/resources/agentApiContacts/types/index.d.mts +6 -0
  705. package/dist/esm/api/resources/agentApiContacts/types/index.mjs +6 -0
  706. package/dist/esm/api/resources/agentApiContext/client/Client.d.mts +53 -0
  707. package/dist/esm/api/resources/agentApiContext/client/Client.mjs +114 -0
  708. package/dist/esm/api/resources/agentApiContext/client/index.d.mts +1 -0
  709. package/dist/esm/api/resources/agentApiContext/client/index.mjs +1 -0
  710. package/dist/esm/api/resources/agentApiContext/client/requests/GetAgentChatContextRequest.d.mts +19 -0
  711. package/dist/esm/api/resources/agentApiContext/client/requests/GetAgentChatContextRequest.mjs +2 -0
  712. package/dist/esm/api/resources/agentApiContext/client/requests/index.d.mts +1 -0
  713. package/dist/esm/api/resources/agentApiContext/client/requests/index.mjs +1 -0
  714. package/dist/esm/api/resources/agentApiContext/exports.d.mts +2 -0
  715. package/dist/esm/api/resources/agentApiContext/exports.mjs +3 -0
  716. package/dist/esm/api/resources/agentApiContext/index.d.mts +2 -0
  717. package/dist/esm/api/resources/agentApiContext/index.mjs +2 -0
  718. package/dist/esm/api/resources/agentApiContext/types/GetAgentChatContextResponse.d.mts +37 -0
  719. package/dist/esm/api/resources/agentApiContext/types/GetAgentChatContextResponse.mjs +2 -0
  720. package/dist/esm/api/resources/agentApiContext/types/index.d.mts +1 -0
  721. package/dist/esm/api/resources/agentApiContext/types/index.mjs +1 -0
  722. package/dist/esm/api/resources/agentApiEvents/client/Client.d.mts +49 -0
  723. package/dist/esm/api/resources/agentApiEvents/client/Client.mjs +102 -0
  724. package/dist/esm/api/resources/agentApiEvents/client/index.d.mts +1 -0
  725. package/dist/esm/api/resources/agentApiEvents/client/index.mjs +1 -0
  726. package/dist/esm/api/resources/agentApiEvents/client/requests/CreateAgentChatEventRequest.d.mts +13 -0
  727. package/dist/esm/api/resources/agentApiEvents/client/requests/CreateAgentChatEventRequest.mjs +2 -0
  728. package/dist/esm/api/resources/agentApiEvents/client/requests/index.d.mts +1 -0
  729. package/dist/esm/api/resources/agentApiEvents/client/requests/index.mjs +1 -0
  730. package/dist/esm/api/resources/agentApiEvents/exports.d.mts +2 -0
  731. package/dist/esm/api/resources/agentApiEvents/exports.mjs +3 -0
  732. package/dist/esm/api/resources/agentApiEvents/index.d.mts +2 -0
  733. package/dist/esm/api/resources/agentApiEvents/index.mjs +2 -0
  734. package/dist/esm/api/resources/agentApiEvents/types/CreateAgentChatEventResponse.d.mts +4 -0
  735. package/dist/esm/api/resources/agentApiEvents/types/CreateAgentChatEventResponse.mjs +2 -0
  736. package/dist/esm/api/resources/agentApiEvents/types/index.d.mts +1 -0
  737. package/dist/esm/api/resources/agentApiEvents/types/index.mjs +1 -0
  738. package/dist/esm/api/resources/agentApiIdentity/client/Client.d.mts +30 -0
  739. package/dist/esm/api/resources/agentApiIdentity/client/Client.mjs +76 -0
  740. package/dist/esm/api/resources/agentApiIdentity/client/index.d.mts +1 -0
  741. package/dist/esm/api/resources/agentApiIdentity/client/index.mjs +1 -0
  742. package/dist/esm/api/resources/agentApiIdentity/exports.d.mts +2 -0
  743. package/dist/esm/api/resources/agentApiIdentity/exports.mjs +3 -0
  744. package/dist/esm/api/resources/agentApiIdentity/index.d.mts +2 -0
  745. package/dist/esm/api/resources/agentApiIdentity/index.mjs +2 -0
  746. package/dist/esm/api/resources/agentApiIdentity/types/GetAgentMeResponse.d.mts +4 -0
  747. package/dist/esm/api/resources/agentApiIdentity/types/GetAgentMeResponse.mjs +2 -0
  748. package/dist/esm/api/resources/agentApiIdentity/types/index.d.mts +1 -0
  749. package/dist/esm/api/resources/agentApiIdentity/types/index.mjs +1 -0
  750. package/dist/esm/api/resources/agentApiMemories/client/Client.d.mts +120 -0
  751. package/dist/esm/api/resources/agentApiMemories/client/Client.mjs +334 -0
  752. package/dist/esm/api/resources/agentApiMemories/client/index.d.mts +1 -0
  753. package/dist/esm/api/resources/agentApiMemories/client/index.mjs +1 -0
  754. package/dist/esm/api/resources/agentApiMemories/client/requests/CreateAgentMemoryRequest.d.mts +16 -0
  755. package/dist/esm/api/resources/agentApiMemories/client/requests/CreateAgentMemoryRequest.mjs +2 -0
  756. package/dist/esm/api/resources/agentApiMemories/client/requests/ListAgentMemoriesRequest.d.mts +31 -0
  757. package/dist/esm/api/resources/agentApiMemories/client/requests/ListAgentMemoriesRequest.mjs +2 -0
  758. package/dist/esm/api/resources/agentApiMemories/client/requests/index.d.mts +2 -0
  759. package/dist/esm/api/resources/agentApiMemories/client/requests/index.mjs +1 -0
  760. package/dist/esm/api/resources/agentApiMemories/exports.d.mts +2 -0
  761. package/dist/esm/api/resources/agentApiMemories/exports.mjs +3 -0
  762. package/dist/esm/api/resources/agentApiMemories/index.d.mts +2 -0
  763. package/dist/esm/api/resources/agentApiMemories/index.mjs +2 -0
  764. package/dist/esm/api/resources/agentApiMemories/types/ArchiveAgentMemoryResponse.d.mts +4 -0
  765. package/dist/esm/api/resources/agentApiMemories/types/ArchiveAgentMemoryResponse.mjs +2 -0
  766. package/dist/esm/api/resources/agentApiMemories/types/CreateAgentMemoryResponse.d.mts +4 -0
  767. package/dist/esm/api/resources/agentApiMemories/types/CreateAgentMemoryResponse.mjs +2 -0
  768. package/dist/esm/api/resources/agentApiMemories/types/GetAgentMemoryResponse.d.mts +4 -0
  769. package/dist/esm/api/resources/agentApiMemories/types/GetAgentMemoryResponse.mjs +2 -0
  770. package/dist/esm/api/resources/agentApiMemories/types/ListAgentMemoriesResponse.d.mts +13 -0
  771. package/dist/esm/api/resources/agentApiMemories/types/ListAgentMemoriesResponse.mjs +2 -0
  772. package/dist/esm/api/resources/agentApiMemories/types/SupersedeAgentMemoryResponse.d.mts +4 -0
  773. package/dist/esm/api/resources/agentApiMemories/types/SupersedeAgentMemoryResponse.mjs +2 -0
  774. package/dist/esm/api/resources/agentApiMemories/types/index.d.mts +5 -0
  775. package/dist/esm/api/resources/agentApiMemories/types/index.mjs +5 -0
  776. package/dist/esm/api/resources/agentApiMessages/client/Client.d.mts +316 -0
  777. package/dist/esm/api/resources/agentApiMessages/client/Client.mjs +599 -0
  778. package/dist/esm/api/resources/agentApiMessages/client/index.d.mts +1 -0
  779. package/dist/esm/api/resources/agentApiMessages/client/index.mjs +1 -0
  780. package/dist/esm/api/resources/agentApiMessages/client/requests/CreateAgentChatMessageRequest.d.mts +15 -0
  781. package/dist/esm/api/resources/agentApiMessages/client/requests/CreateAgentChatMessageRequest.mjs +2 -0
  782. package/dist/esm/api/resources/agentApiMessages/client/requests/ListAgentMessagesRequest.d.mts +23 -0
  783. package/dist/esm/api/resources/agentApiMessages/client/requests/ListAgentMessagesRequest.mjs +2 -0
  784. package/dist/esm/api/resources/agentApiMessages/client/requests/MarkAgentMessageFailedRequest.d.mts +10 -0
  785. package/dist/esm/api/resources/agentApiMessages/client/requests/MarkAgentMessageFailedRequest.mjs +2 -0
  786. package/dist/esm/api/resources/agentApiMessages/client/requests/index.d.mts +3 -0
  787. package/dist/esm/api/resources/agentApiMessages/client/requests/index.mjs +1 -0
  788. package/dist/esm/api/resources/agentApiMessages/exports.d.mts +2 -0
  789. package/dist/esm/api/resources/agentApiMessages/exports.mjs +3 -0
  790. package/dist/esm/api/resources/agentApiMessages/index.d.mts +2 -0
  791. package/dist/esm/api/resources/agentApiMessages/index.mjs +2 -0
  792. package/dist/esm/api/resources/agentApiMessages/types/CreateAgentChatMessageResponse.d.mts +4 -0
  793. package/dist/esm/api/resources/agentApiMessages/types/CreateAgentChatMessageResponse.mjs +2 -0
  794. package/dist/esm/api/resources/agentApiMessages/types/GetAgentNextMessageResponse.d.mts +4 -0
  795. package/dist/esm/api/resources/agentApiMessages/types/GetAgentNextMessageResponse.mjs +2 -0
  796. package/dist/esm/api/resources/agentApiMessages/types/ListAgentMessagesRequestStatus.d.mts +8 -0
  797. package/dist/esm/api/resources/agentApiMessages/types/ListAgentMessagesRequestStatus.mjs +8 -0
  798. package/dist/esm/api/resources/agentApiMessages/types/ListAgentMessagesResponse.d.mts +25 -0
  799. package/dist/esm/api/resources/agentApiMessages/types/ListAgentMessagesResponse.mjs +2 -0
  800. package/dist/esm/api/resources/agentApiMessages/types/MarkAgentMessageFailedResponse.d.mts +4 -0
  801. package/dist/esm/api/resources/agentApiMessages/types/MarkAgentMessageFailedResponse.mjs +2 -0
  802. package/dist/esm/api/resources/agentApiMessages/types/MarkAgentMessageProcessedResponse.d.mts +4 -0
  803. package/dist/esm/api/resources/agentApiMessages/types/MarkAgentMessageProcessedResponse.mjs +2 -0
  804. package/dist/esm/api/resources/agentApiMessages/types/MarkAgentMessageProcessingResponse.d.mts +4 -0
  805. package/dist/esm/api/resources/agentApiMessages/types/MarkAgentMessageProcessingResponse.mjs +2 -0
  806. package/dist/esm/api/resources/agentApiMessages/types/index.d.mts +7 -0
  807. package/dist/esm/api/resources/agentApiMessages/types/index.mjs +7 -0
  808. package/dist/esm/api/resources/agentApiParticipants/client/Client.d.mts +73 -0
  809. package/dist/esm/api/resources/agentApiParticipants/client/Client.mjs +210 -0
  810. package/dist/esm/api/resources/agentApiParticipants/client/index.d.mts +1 -0
  811. package/dist/esm/api/resources/agentApiParticipants/client/index.mjs +1 -0
  812. package/dist/esm/api/resources/agentApiParticipants/client/requests/AddAgentChatParticipantRequest.d.mts +12 -0
  813. package/dist/esm/api/resources/agentApiParticipants/client/requests/AddAgentChatParticipantRequest.mjs +2 -0
  814. package/dist/esm/api/resources/agentApiParticipants/client/requests/index.d.mts +1 -0
  815. package/dist/esm/api/resources/agentApiParticipants/client/requests/index.mjs +1 -0
  816. package/dist/esm/api/resources/agentApiParticipants/exports.d.mts +2 -0
  817. package/dist/esm/api/resources/agentApiParticipants/exports.mjs +3 -0
  818. package/dist/esm/api/resources/agentApiParticipants/index.d.mts +2 -0
  819. package/dist/esm/api/resources/agentApiParticipants/index.mjs +2 -0
  820. package/dist/esm/api/resources/agentApiParticipants/types/AddAgentChatParticipantResponse.d.mts +4 -0
  821. package/dist/esm/api/resources/agentApiParticipants/types/AddAgentChatParticipantResponse.mjs +2 -0
  822. package/dist/esm/api/resources/agentApiParticipants/types/ListAgentChatParticipantsResponse.d.mts +4 -0
  823. package/dist/esm/api/resources/agentApiParticipants/types/ListAgentChatParticipantsResponse.mjs +2 -0
  824. package/dist/esm/api/resources/agentApiParticipants/types/RemoveAgentChatParticipantResponse.d.mts +4 -0
  825. package/dist/esm/api/resources/agentApiParticipants/types/RemoveAgentChatParticipantResponse.mjs +2 -0
  826. package/dist/esm/api/resources/agentApiParticipants/types/index.d.mts +3 -0
  827. package/dist/esm/api/resources/agentApiParticipants/types/index.mjs +3 -0
  828. package/dist/esm/api/resources/agentApiPeers/client/Client.d.mts +35 -0
  829. package/dist/esm/api/resources/agentApiPeers/client/Client.mjs +91 -0
  830. package/dist/esm/api/resources/agentApiPeers/client/index.d.mts +1 -0
  831. package/dist/esm/api/resources/agentApiPeers/client/index.mjs +1 -0
  832. package/dist/esm/api/resources/agentApiPeers/client/requests/ListAgentPeersRequest.d.mts +16 -0
  833. package/dist/esm/api/resources/agentApiPeers/client/requests/ListAgentPeersRequest.mjs +2 -0
  834. package/dist/esm/api/resources/agentApiPeers/client/requests/index.d.mts +1 -0
  835. package/dist/esm/api/resources/agentApiPeers/client/requests/index.mjs +1 -0
  836. package/dist/esm/api/resources/agentApiPeers/exports.d.mts +2 -0
  837. package/dist/esm/api/resources/agentApiPeers/exports.mjs +3 -0
  838. package/dist/esm/api/resources/agentApiPeers/index.d.mts +2 -0
  839. package/dist/esm/api/resources/agentApiPeers/index.mjs +2 -0
  840. package/dist/esm/api/resources/agentApiPeers/types/ListAgentPeersResponse.d.mts +13 -0
  841. package/dist/esm/api/resources/agentApiPeers/types/ListAgentPeersResponse.mjs +2 -0
  842. package/dist/esm/api/resources/agentApiPeers/types/index.d.mts +1 -0
  843. package/dist/esm/api/resources/agentApiPeers/types/index.mjs +1 -0
  844. package/dist/esm/api/resources/humanApiAgents/client/Client.d.mts +107 -0
  845. package/dist/esm/api/resources/humanApiAgents/client/Client.mjs +262 -0
  846. package/dist/esm/api/resources/humanApiAgents/client/index.d.mts +1 -0
  847. package/dist/esm/api/resources/humanApiAgents/client/index.mjs +1 -0
  848. package/dist/esm/api/resources/humanApiAgents/client/requests/DeleteMyAgentRequest.d.mts +10 -0
  849. package/dist/esm/api/resources/humanApiAgents/client/requests/DeleteMyAgentRequest.mjs +2 -0
  850. package/dist/esm/api/resources/humanApiAgents/client/requests/ListMyAgentsRequest.d.mts +35 -0
  851. package/dist/esm/api/resources/humanApiAgents/client/requests/ListMyAgentsRequest.mjs +2 -0
  852. package/dist/esm/api/resources/humanApiAgents/client/requests/RegisterMyAgentRequest.d.mts +13 -0
  853. package/dist/esm/api/resources/humanApiAgents/client/requests/RegisterMyAgentRequest.mjs +2 -0
  854. package/dist/esm/api/resources/humanApiAgents/client/requests/index.d.mts +3 -0
  855. package/dist/esm/api/resources/humanApiAgents/client/requests/index.mjs +1 -0
  856. package/dist/esm/api/resources/humanApiAgents/exports.d.mts +2 -0
  857. package/dist/esm/api/resources/humanApiAgents/exports.mjs +3 -0
  858. package/dist/esm/api/resources/humanApiAgents/index.d.mts +2 -0
  859. package/dist/esm/api/resources/humanApiAgents/index.mjs +2 -0
  860. package/dist/esm/api/resources/humanApiAgents/types/DeleteMyAgentResponse.d.mts +15 -0
  861. package/dist/esm/api/resources/humanApiAgents/types/DeleteMyAgentResponse.mjs +2 -0
  862. package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsRequestOrder.d.mts +5 -0
  863. package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsRequestOrder.mjs +5 -0
  864. package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsRequestSort.d.mts +6 -0
  865. package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsRequestSort.mjs +6 -0
  866. package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsResponse.d.mts +36 -0
  867. package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsResponse.mjs +2 -0
  868. package/dist/esm/api/resources/humanApiAgents/types/RegisterMyAgentResponse.d.mts +27 -0
  869. package/dist/esm/api/resources/humanApiAgents/types/RegisterMyAgentResponse.mjs +2 -0
  870. package/dist/esm/api/resources/humanApiAgents/types/index.d.mts +5 -0
  871. package/dist/esm/api/resources/humanApiAgents/types/index.mjs +5 -0
  872. package/dist/esm/api/resources/humanApiChats/client/Client.d.mts +81 -0
  873. package/dist/esm/api/resources/humanApiChats/client/Client.mjs +225 -0
  874. package/dist/esm/api/resources/humanApiChats/client/index.d.mts +1 -0
  875. package/dist/esm/api/resources/humanApiChats/client/index.mjs +1 -0
  876. package/dist/esm/api/resources/humanApiChats/client/requests/CreateMyChatRoomRequest.d.mts +17 -0
  877. package/dist/esm/api/resources/humanApiChats/client/requests/CreateMyChatRoomRequest.mjs +2 -0
  878. package/dist/esm/api/resources/humanApiChats/client/requests/ListMyChatsRequest.d.mts +32 -0
  879. package/dist/esm/api/resources/humanApiChats/client/requests/ListMyChatsRequest.mjs +2 -0
  880. package/dist/esm/api/resources/humanApiChats/client/requests/index.d.mts +2 -0
  881. package/dist/esm/api/resources/humanApiChats/client/requests/index.mjs +1 -0
  882. package/dist/esm/api/resources/humanApiChats/exports.d.mts +2 -0
  883. package/dist/esm/api/resources/humanApiChats/exports.mjs +3 -0
  884. package/dist/esm/api/resources/humanApiChats/index.d.mts +2 -0
  885. package/dist/esm/api/resources/humanApiChats/index.mjs +2 -0
  886. package/dist/esm/api/resources/humanApiChats/types/CreateMyChatRoomResponse.d.mts +4 -0
  887. package/dist/esm/api/resources/humanApiChats/types/CreateMyChatRoomResponse.mjs +2 -0
  888. package/dist/esm/api/resources/humanApiChats/types/GetMyChatRoomResponse.d.mts +4 -0
  889. package/dist/esm/api/resources/humanApiChats/types/GetMyChatRoomResponse.mjs +2 -0
  890. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestOrder.d.mts +5 -0
  891. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestOrder.mjs +5 -0
  892. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestSortBy.d.mts +5 -0
  893. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestSortBy.mjs +5 -0
  894. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestStatus.d.mts +6 -0
  895. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestStatus.mjs +6 -0
  896. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestType.d.mts +6 -0
  897. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestType.mjs +6 -0
  898. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsResponse.d.mts +23 -0
  899. package/dist/esm/api/resources/humanApiChats/types/ListMyChatsResponse.mjs +2 -0
  900. package/dist/esm/api/resources/humanApiChats/types/index.d.mts +7 -0
  901. package/dist/esm/api/resources/humanApiChats/types/index.mjs +7 -0
  902. package/dist/esm/api/resources/humanApiContacts/client/Client.d.mts +201 -0
  903. package/dist/esm/api/resources/humanApiContacts/client/Client.mjs +611 -0
  904. package/dist/esm/api/resources/humanApiContacts/client/index.d.mts +1 -0
  905. package/dist/esm/api/resources/humanApiContacts/client/index.mjs +1 -0
  906. package/dist/esm/api/resources/humanApiContacts/client/requests/CreateContactRequestRequest.d.mts +19 -0
  907. package/dist/esm/api/resources/humanApiContacts/client/requests/CreateContactRequestRequest.mjs +2 -0
  908. package/dist/esm/api/resources/humanApiContacts/client/requests/ListMyContactsRequest.d.mts +13 -0
  909. package/dist/esm/api/resources/humanApiContacts/client/requests/ListMyContactsRequest.mjs +2 -0
  910. package/dist/esm/api/resources/humanApiContacts/client/requests/ListReceivedContactRequestsRequest.d.mts +13 -0
  911. package/dist/esm/api/resources/humanApiContacts/client/requests/ListReceivedContactRequestsRequest.mjs +2 -0
  912. package/dist/esm/api/resources/humanApiContacts/client/requests/ListSentContactRequestsRequest.d.mts +17 -0
  913. package/dist/esm/api/resources/humanApiContacts/client/requests/ListSentContactRequestsRequest.mjs +2 -0
  914. package/dist/esm/api/resources/humanApiContacts/client/requests/RemoveMyContactRequest.d.mts +10 -0
  915. package/dist/esm/api/resources/humanApiContacts/client/requests/RemoveMyContactRequest.mjs +2 -0
  916. package/dist/esm/api/resources/humanApiContacts/client/requests/ResolveHandleRequest.d.mts +10 -0
  917. package/dist/esm/api/resources/humanApiContacts/client/requests/ResolveHandleRequest.mjs +2 -0
  918. package/dist/esm/api/resources/humanApiContacts/client/requests/index.d.mts +6 -0
  919. package/dist/esm/api/resources/humanApiContacts/client/requests/index.mjs +1 -0
  920. package/dist/esm/api/resources/humanApiContacts/exports.d.mts +2 -0
  921. package/dist/esm/api/resources/humanApiContacts/exports.mjs +3 -0
  922. package/dist/esm/api/resources/humanApiContacts/index.d.mts +2 -0
  923. package/dist/esm/api/resources/humanApiContacts/index.mjs +2 -0
  924. package/dist/esm/api/resources/humanApiContacts/types/ApproveContactRequestResponse.d.mts +4 -0
  925. package/dist/esm/api/resources/humanApiContacts/types/ApproveContactRequestResponse.mjs +2 -0
  926. package/dist/esm/api/resources/humanApiContacts/types/CancelContactRequestResponse.d.mts +4 -0
  927. package/dist/esm/api/resources/humanApiContacts/types/CancelContactRequestResponse.mjs +2 -0
  928. package/dist/esm/api/resources/humanApiContacts/types/CreateContactRequestResponse.d.mts +4 -0
  929. package/dist/esm/api/resources/humanApiContacts/types/CreateContactRequestResponse.mjs +2 -0
  930. package/dist/esm/api/resources/humanApiContacts/types/ListMyContactsResponse.d.mts +21 -0
  931. package/dist/esm/api/resources/humanApiContacts/types/ListMyContactsResponse.mjs +2 -0
  932. package/dist/esm/api/resources/humanApiContacts/types/ListReceivedContactRequestsResponse.d.mts +21 -0
  933. package/dist/esm/api/resources/humanApiContacts/types/ListReceivedContactRequestsResponse.mjs +2 -0
  934. package/dist/esm/api/resources/humanApiContacts/types/ListSentContactRequestsRequestStatus.d.mts +9 -0
  935. package/dist/esm/api/resources/humanApiContacts/types/ListSentContactRequestsRequestStatus.mjs +9 -0
  936. package/dist/esm/api/resources/humanApiContacts/types/ListSentContactRequestsResponse.d.mts +21 -0
  937. package/dist/esm/api/resources/humanApiContacts/types/ListSentContactRequestsResponse.mjs +2 -0
  938. package/dist/esm/api/resources/humanApiContacts/types/RejectContactRequestResponse.d.mts +4 -0
  939. package/dist/esm/api/resources/humanApiContacts/types/RejectContactRequestResponse.mjs +2 -0
  940. package/dist/esm/api/resources/humanApiContacts/types/RemoveMyContactResponse.d.mts +8 -0
  941. package/dist/esm/api/resources/humanApiContacts/types/RemoveMyContactResponse.mjs +2 -0
  942. package/dist/esm/api/resources/humanApiContacts/types/ResolveHandleResponse.d.mts +4 -0
  943. package/dist/esm/api/resources/humanApiContacts/types/ResolveHandleResponse.mjs +2 -0
  944. package/dist/esm/api/resources/humanApiContacts/types/index.d.mts +10 -0
  945. package/dist/esm/api/resources/humanApiContacts/types/index.mjs +10 -0
  946. package/dist/esm/api/resources/humanApiMemories/client/Client.d.mts +131 -0
  947. package/dist/esm/api/resources/humanApiMemories/client/Client.mjs +389 -0
  948. package/dist/esm/api/resources/humanApiMemories/client/index.d.mts +1 -0
  949. package/dist/esm/api/resources/humanApiMemories/client/index.mjs +1 -0
  950. package/dist/esm/api/resources/humanApiMemories/client/requests/ListUserMemoriesRequest.d.mts +31 -0
  951. package/dist/esm/api/resources/humanApiMemories/client/requests/ListUserMemoriesRequest.mjs +2 -0
  952. package/dist/esm/api/resources/humanApiMemories/client/requests/index.d.mts +1 -0
  953. package/dist/esm/api/resources/humanApiMemories/client/requests/index.mjs +1 -0
  954. package/dist/esm/api/resources/humanApiMemories/exports.d.mts +2 -0
  955. package/dist/esm/api/resources/humanApiMemories/exports.mjs +3 -0
  956. package/dist/esm/api/resources/humanApiMemories/index.d.mts +2 -0
  957. package/dist/esm/api/resources/humanApiMemories/index.mjs +2 -0
  958. package/dist/esm/api/resources/humanApiMemories/types/ArchiveUserMemoryResponse.d.mts +4 -0
  959. package/dist/esm/api/resources/humanApiMemories/types/ArchiveUserMemoryResponse.mjs +2 -0
  960. package/dist/esm/api/resources/humanApiMemories/types/GetUserMemoryResponse.d.mts +4 -0
  961. package/dist/esm/api/resources/humanApiMemories/types/GetUserMemoryResponse.mjs +2 -0
  962. package/dist/esm/api/resources/humanApiMemories/types/ListUserMemoriesResponse.d.mts +13 -0
  963. package/dist/esm/api/resources/humanApiMemories/types/ListUserMemoriesResponse.mjs +2 -0
  964. package/dist/esm/api/resources/humanApiMemories/types/RestoreUserMemoryResponse.d.mts +4 -0
  965. package/dist/esm/api/resources/humanApiMemories/types/RestoreUserMemoryResponse.mjs +2 -0
  966. package/dist/esm/api/resources/humanApiMemories/types/SupersedeUserMemoryResponse.d.mts +4 -0
  967. package/dist/esm/api/resources/humanApiMemories/types/SupersedeUserMemoryResponse.mjs +2 -0
  968. package/dist/esm/api/resources/humanApiMemories/types/index.d.mts +5 -0
  969. package/dist/esm/api/resources/humanApiMemories/types/index.mjs +5 -0
  970. package/dist/esm/api/resources/humanApiMessages/client/Client.d.mts +97 -0
  971. package/dist/esm/api/resources/humanApiMessages/client/Client.mjs +200 -0
  972. package/dist/esm/api/resources/humanApiMessages/client/index.d.mts +1 -0
  973. package/dist/esm/api/resources/humanApiMessages/client/index.mjs +1 -0
  974. package/dist/esm/api/resources/humanApiMessages/client/requests/ListMyChatMessagesRequest.d.mts +26 -0
  975. package/dist/esm/api/resources/humanApiMessages/client/requests/ListMyChatMessagesRequest.mjs +2 -0
  976. package/dist/esm/api/resources/humanApiMessages/client/requests/SendMyChatMessageRequest.d.mts +15 -0
  977. package/dist/esm/api/resources/humanApiMessages/client/requests/SendMyChatMessageRequest.mjs +2 -0
  978. package/dist/esm/api/resources/humanApiMessages/client/requests/index.d.mts +2 -0
  979. package/dist/esm/api/resources/humanApiMessages/client/requests/index.mjs +1 -0
  980. package/dist/esm/api/resources/humanApiMessages/exports.d.mts +2 -0
  981. package/dist/esm/api/resources/humanApiMessages/exports.mjs +3 -0
  982. package/dist/esm/api/resources/humanApiMessages/index.d.mts +2 -0
  983. package/dist/esm/api/resources/humanApiMessages/index.mjs +2 -0
  984. package/dist/esm/api/resources/humanApiMessages/types/ListMyChatMessagesRequestMessageType.d.mts +10 -0
  985. package/dist/esm/api/resources/humanApiMessages/types/ListMyChatMessagesRequestMessageType.mjs +10 -0
  986. package/dist/esm/api/resources/humanApiMessages/types/ListMyChatMessagesResponse.d.mts +23 -0
  987. package/dist/esm/api/resources/humanApiMessages/types/ListMyChatMessagesResponse.mjs +2 -0
  988. package/dist/esm/api/resources/humanApiMessages/types/SendMyChatMessageResponse.d.mts +4 -0
  989. package/dist/esm/api/resources/humanApiMessages/types/SendMyChatMessageResponse.mjs +2 -0
  990. package/dist/esm/api/resources/humanApiMessages/types/index.d.mts +3 -0
  991. package/dist/esm/api/resources/humanApiMessages/types/index.mjs +3 -0
  992. package/dist/esm/api/resources/humanApiParticipants/client/Client.d.mts +84 -0
  993. package/dist/esm/api/resources/humanApiParticipants/client/Client.mjs +227 -0
  994. package/dist/esm/api/resources/humanApiParticipants/client/index.d.mts +1 -0
  995. package/dist/esm/api/resources/humanApiParticipants/client/index.mjs +1 -0
  996. package/dist/esm/api/resources/humanApiParticipants/client/requests/AddMyChatParticipantRequest.d.mts +12 -0
  997. package/dist/esm/api/resources/humanApiParticipants/client/requests/AddMyChatParticipantRequest.mjs +2 -0
  998. package/dist/esm/api/resources/humanApiParticipants/client/requests/ListMyChatParticipantsRequest.d.mts +23 -0
  999. package/dist/esm/api/resources/humanApiParticipants/client/requests/ListMyChatParticipantsRequest.mjs +2 -0
  1000. package/dist/esm/api/resources/humanApiParticipants/client/requests/index.d.mts +2 -0
  1001. package/dist/esm/api/resources/humanApiParticipants/client/requests/index.mjs +1 -0
  1002. package/dist/esm/api/resources/humanApiParticipants/exports.d.mts +2 -0
  1003. package/dist/esm/api/resources/humanApiParticipants/exports.mjs +3 -0
  1004. package/dist/esm/api/resources/humanApiParticipants/index.d.mts +2 -0
  1005. package/dist/esm/api/resources/humanApiParticipants/index.mjs +2 -0
  1006. package/dist/esm/api/resources/humanApiParticipants/types/AddMyChatParticipantResponse.d.mts +4 -0
  1007. package/dist/esm/api/resources/humanApiParticipants/types/AddMyChatParticipantResponse.mjs +2 -0
  1008. package/dist/esm/api/resources/humanApiParticipants/types/ListMyChatParticipantsRequestParticipantType.d.mts +5 -0
  1009. package/dist/esm/api/resources/humanApiParticipants/types/ListMyChatParticipantsRequestParticipantType.mjs +5 -0
  1010. package/dist/esm/api/resources/humanApiParticipants/types/ListMyChatParticipantsResponse.d.mts +23 -0
  1011. package/dist/esm/api/resources/humanApiParticipants/types/ListMyChatParticipantsResponse.mjs +2 -0
  1012. package/dist/esm/api/resources/humanApiParticipants/types/RemoveMyChatParticipantResponse.d.mts +4 -0
  1013. package/dist/esm/api/resources/humanApiParticipants/types/RemoveMyChatParticipantResponse.mjs +2 -0
  1014. package/dist/esm/api/resources/humanApiParticipants/types/index.d.mts +4 -0
  1015. package/dist/esm/api/resources/humanApiParticipants/types/index.mjs +4 -0
  1016. package/dist/esm/api/resources/humanApiPeers/client/Client.d.mts +46 -0
  1017. package/dist/esm/api/resources/humanApiPeers/client/Client.mjs +103 -0
  1018. package/dist/esm/api/resources/humanApiPeers/client/index.d.mts +1 -0
  1019. package/dist/esm/api/resources/humanApiPeers/client/index.mjs +1 -0
  1020. package/dist/esm/api/resources/humanApiPeers/client/requests/ListMyPeersRequest.d.mts +20 -0
  1021. package/dist/esm/api/resources/humanApiPeers/client/requests/ListMyPeersRequest.mjs +2 -0
  1022. package/dist/esm/api/resources/humanApiPeers/client/requests/index.d.mts +1 -0
  1023. package/dist/esm/api/resources/humanApiPeers/client/requests/index.mjs +1 -0
  1024. package/dist/esm/api/resources/humanApiPeers/exports.d.mts +2 -0
  1025. package/dist/esm/api/resources/humanApiPeers/exports.mjs +3 -0
  1026. package/dist/esm/api/resources/humanApiPeers/index.d.mts +2 -0
  1027. package/dist/esm/api/resources/humanApiPeers/index.mjs +2 -0
  1028. package/dist/esm/api/resources/humanApiPeers/types/ListMyPeersRequestType.d.mts +5 -0
  1029. package/dist/esm/api/resources/humanApiPeers/types/ListMyPeersRequestType.mjs +5 -0
  1030. package/dist/esm/api/resources/humanApiPeers/types/ListMyPeersResponse.d.mts +13 -0
  1031. package/dist/esm/api/resources/humanApiPeers/types/ListMyPeersResponse.mjs +2 -0
  1032. package/dist/esm/api/resources/humanApiPeers/types/index.d.mts +2 -0
  1033. package/dist/esm/api/resources/humanApiPeers/types/index.mjs +2 -0
  1034. package/dist/esm/api/resources/humanApiProfile/client/Client.d.mts +46 -0
  1035. package/dist/esm/api/resources/humanApiProfile/client/Client.mjs +134 -0
  1036. package/dist/esm/api/resources/humanApiProfile/client/index.d.mts +1 -0
  1037. package/dist/esm/api/resources/humanApiProfile/client/index.mjs +1 -0
  1038. package/dist/esm/api/resources/humanApiProfile/client/requests/UpdateMyProfileRequest.d.mts +21 -0
  1039. package/dist/esm/api/resources/humanApiProfile/client/requests/UpdateMyProfileRequest.mjs +2 -0
  1040. package/dist/esm/api/resources/humanApiProfile/client/requests/index.d.mts +1 -0
  1041. package/dist/esm/api/resources/humanApiProfile/client/requests/index.mjs +1 -0
  1042. package/dist/esm/api/resources/humanApiProfile/exports.d.mts +2 -0
  1043. package/dist/esm/api/resources/humanApiProfile/exports.mjs +3 -0
  1044. package/dist/esm/api/resources/humanApiProfile/index.d.mts +2 -0
  1045. package/dist/esm/api/resources/humanApiProfile/index.mjs +2 -0
  1046. package/dist/esm/api/resources/humanApiProfile/types/GetMyProfileResponse.d.mts +4 -0
  1047. package/dist/esm/api/resources/humanApiProfile/types/GetMyProfileResponse.mjs +2 -0
  1048. package/dist/esm/api/resources/humanApiProfile/types/UpdateMyProfileResponse.d.mts +4 -0
  1049. package/dist/esm/api/resources/humanApiProfile/types/UpdateMyProfileResponse.mjs +2 -0
  1050. package/dist/esm/api/resources/humanApiProfile/types/index.d.mts +2 -0
  1051. package/dist/esm/api/resources/humanApiProfile/types/index.mjs +2 -0
  1052. package/dist/esm/api/resources/index.d.mts +53 -0
  1053. package/dist/esm/api/resources/index.mjs +53 -0
  1054. package/dist/esm/api/types/AgentActivityResponse.d.mts +7 -0
  1055. package/dist/esm/api/types/AgentActivityResponse.mjs +2 -0
  1056. package/dist/esm/api/types/AgentContact.d.mts +30 -0
  1057. package/dist/esm/api/types/AgentContact.mjs +9 -0
  1058. package/dist/esm/api/types/AgentMe.d.mts +23 -0
  1059. package/dist/esm/api/types/AgentMe.mjs +2 -0
  1060. package/dist/esm/api/types/AgentMemory.d.mts +71 -0
  1061. package/dist/esm/api/types/AgentMemory.mjs +37 -0
  1062. package/dist/esm/api/types/AgentMemoryCreateRequest.d.mts +63 -0
  1063. package/dist/esm/api/types/AgentMemoryCreateRequest.mjs +31 -0
  1064. package/dist/esm/api/types/AgentRegisterRequest.d.mts +9 -0
  1065. package/dist/esm/api/types/AgentRegisterRequest.mjs +2 -0
  1066. package/dist/esm/api/types/ChatEventMessageType.d.mts +19 -0
  1067. package/dist/esm/api/types/ChatEventMessageType.mjs +19 -0
  1068. package/dist/esm/api/types/ChatEventRequest.d.mts +22 -0
  1069. package/dist/esm/api/types/ChatEventRequest.mjs +2 -0
  1070. package/dist/esm/api/types/ChatMessage.d.mts +25 -0
  1071. package/dist/esm/api/types/ChatMessage.mjs +2 -0
  1072. package/dist/esm/api/types/ChatMessageRequest.d.mts +22 -0
  1073. package/dist/esm/api/types/ChatMessageRequest.mjs +2 -0
  1074. package/dist/esm/api/types/ChatParticipant.d.mts +25 -0
  1075. package/dist/esm/api/types/ChatParticipant.mjs +9 -0
  1076. package/dist/esm/api/types/ChatParticipantDetails.d.mts +29 -0
  1077. package/dist/esm/api/types/ChatParticipantDetails.mjs +9 -0
  1078. package/dist/esm/api/types/ChatRoom.d.mts +15 -0
  1079. package/dist/esm/api/types/ChatRoom.mjs +2 -0
  1080. package/dist/esm/api/types/ChatRoomRequest.d.mts +9 -0
  1081. package/dist/esm/api/types/ChatRoomRequest.mjs +2 -0
  1082. package/dist/esm/api/types/Contact.d.mts +41 -0
  1083. package/dist/esm/api/types/Contact.mjs +9 -0
  1084. package/dist/esm/api/types/ContactRequest.d.mts +68 -0
  1085. package/dist/esm/api/types/ContactRequest.mjs +22 -0
  1086. package/dist/esm/api/types/ContactRequestActionResponse.d.mts +18 -0
  1087. package/dist/esm/api/types/ContactRequestActionResponse.mjs +10 -0
  1088. package/dist/esm/api/types/Error_.d.mts +18 -0
  1089. package/dist/esm/api/types/Error_.mjs +2 -0
  1090. package/dist/esm/api/types/EventCreatedResponse.d.mts +11 -0
  1091. package/dist/esm/api/types/EventCreatedResponse.mjs +2 -0
  1092. package/dist/esm/api/types/MeChatRoom.d.mts +35 -0
  1093. package/dist/esm/api/types/MeChatRoom.mjs +16 -0
  1094. package/dist/esm/api/types/MessageSentResponse.d.mts +24 -0
  1095. package/dist/esm/api/types/MessageSentResponse.mjs +2 -0
  1096. package/dist/esm/api/types/MessageStatusResponse.d.mts +22 -0
  1097. package/dist/esm/api/types/MessageStatusResponse.mjs +10 -0
  1098. package/dist/esm/api/types/MyAgent.d.mts +29 -0
  1099. package/dist/esm/api/types/MyAgent.mjs +2 -0
  1100. package/dist/esm/api/types/ParticipantRequest.d.mts +18 -0
  1101. package/dist/esm/api/types/ParticipantRequest.mjs +10 -0
  1102. package/dist/esm/api/types/ParticipantRole.d.mts +13 -0
  1103. package/dist/esm/api/types/ParticipantRole.mjs +13 -0
  1104. package/dist/esm/api/types/Peer.d.mts +39 -0
  1105. package/dist/esm/api/types/Peer.mjs +14 -0
  1106. package/dist/esm/api/types/ReceivedContactRequest.d.mts +22 -0
  1107. package/dist/esm/api/types/ReceivedContactRequest.mjs +10 -0
  1108. package/dist/esm/api/types/ResolvedEntity.d.mts +21 -0
  1109. package/dist/esm/api/types/ResolvedEntity.mjs +9 -0
  1110. package/dist/esm/api/types/SentContactRequest.d.mts +22 -0
  1111. package/dist/esm/api/types/SentContactRequest.mjs +10 -0
  1112. package/dist/esm/api/types/UserDetails.d.mts +25 -0
  1113. package/dist/esm/api/types/UserDetails.mjs +9 -0
  1114. package/dist/esm/api/types/UserMemory.d.mts +73 -0
  1115. package/dist/esm/api/types/UserMemory.mjs +37 -0
  1116. package/dist/esm/api/types/ValidationError.d.mts +18 -0
  1117. package/dist/esm/api/types/ValidationError.mjs +2 -0
  1118. package/dist/esm/api/types/index.d.mts +32 -0
  1119. package/dist/esm/api/types/index.mjs +32 -0
  1120. package/dist/esm/auth/HeaderAuthProvider.d.mts +20 -0
  1121. package/dist/esm/auth/HeaderAuthProvider.mjs +43 -0
  1122. package/dist/esm/auth/index.d.mts +1 -0
  1123. package/dist/esm/auth/index.mjs +1 -0
  1124. package/dist/esm/core/auth/AuthProvider.d.mts +8 -0
  1125. package/dist/esm/core/auth/AuthProvider.mjs +6 -0
  1126. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  1127. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  1128. package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
  1129. package/dist/esm/core/auth/BasicAuth.mjs +30 -0
  1130. package/dist/esm/core/auth/BearerToken.d.mts +7 -0
  1131. package/dist/esm/core/auth/BearerToken.mjs +13 -0
  1132. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
  1133. package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
  1134. package/dist/esm/core/auth/index.d.mts +5 -0
  1135. package/dist/esm/core/auth/index.mjs +4 -0
  1136. package/dist/esm/core/base64.d.mts +2 -0
  1137. package/dist/esm/core/base64.mjs +22 -0
  1138. package/dist/esm/core/exports.d.mts +1 -0
  1139. package/dist/esm/core/exports.mjs +1 -0
  1140. package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
  1141. package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
  1142. package/dist/esm/core/fetcher/BinaryResponse.d.mts +19 -0
  1143. package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
  1144. package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
  1145. package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
  1146. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
  1147. package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
  1148. package/dist/esm/core/fetcher/Fetcher.d.mts +56 -0
  1149. package/dist/esm/core/fetcher/Fetcher.mjs +323 -0
  1150. package/dist/esm/core/fetcher/Headers.d.mts +2 -0
  1151. package/dist/esm/core/fetcher/Headers.mjs +82 -0
  1152. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
  1153. package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
  1154. package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
  1155. package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
  1156. package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
  1157. package/dist/esm/core/fetcher/Supplier.mjs +19 -0
  1158. package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
  1159. package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
  1160. package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
  1161. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +42 -0
  1162. package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
  1163. package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
  1164. package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
  1165. package/dist/esm/core/fetcher/getHeader.mjs +8 -0
  1166. package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
  1167. package/dist/esm/core/fetcher/getRequestBody.mjs +24 -0
  1168. package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
  1169. package/dist/esm/core/fetcher/getResponseBody.mjs +66 -0
  1170. package/dist/esm/core/fetcher/index.d.mts +13 -0
  1171. package/dist/esm/core/fetcher/index.mjs +7 -0
  1172. package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +49 -0
  1173. package/dist/esm/core/fetcher/makePassthroughRequest.mjs +132 -0
  1174. package/dist/esm/core/fetcher/makeRequest.d.mts +6 -0
  1175. package/dist/esm/core/fetcher/makeRequest.mjs +55 -0
  1176. package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
  1177. package/dist/esm/core/fetcher/requestWithRetries.mjs +67 -0
  1178. package/dist/esm/core/fetcher/signals.d.mts +5 -0
  1179. package/dist/esm/core/fetcher/signals.mjs +20 -0
  1180. package/dist/esm/core/headers.d.mts +2 -0
  1181. package/dist/esm/core/headers.mjs +27 -0
  1182. package/dist/esm/core/index.d.mts +6 -0
  1183. package/dist/esm/core/index.mjs +6 -0
  1184. package/dist/esm/core/json.d.mts +15 -0
  1185. package/dist/esm/core/json.mjs +19 -0
  1186. package/dist/esm/core/logging/exports.d.mts +18 -0
  1187. package/dist/esm/core/logging/exports.mjs +9 -0
  1188. package/dist/esm/core/logging/index.d.mts +1 -0
  1189. package/dist/esm/core/logging/index.mjs +1 -0
  1190. package/dist/esm/core/logging/logger.d.mts +126 -0
  1191. package/dist/esm/core/logging/logger.mjs +138 -0
  1192. package/dist/esm/core/runtime/index.d.mts +1 -0
  1193. package/dist/esm/core/runtime/index.mjs +1 -0
  1194. package/dist/esm/core/runtime/runtime.d.mts +9 -0
  1195. package/dist/esm/core/runtime/runtime.mjs +101 -0
  1196. package/dist/esm/core/url/QueryStringBuilder.d.mts +47 -0
  1197. package/dist/esm/core/url/QueryStringBuilder.mjs +80 -0
  1198. package/dist/esm/core/url/encodePathParam.d.mts +1 -0
  1199. package/dist/esm/core/url/encodePathParam.mjs +18 -0
  1200. package/dist/esm/core/url/index.d.mts +4 -0
  1201. package/dist/esm/core/url/index.mjs +4 -0
  1202. package/dist/esm/core/url/join.d.mts +1 -0
  1203. package/dist/esm/core/url/join.mjs +65 -0
  1204. package/dist/esm/core/url/qs.d.mts +7 -0
  1205. package/dist/esm/core/url/qs.mjs +73 -0
  1206. package/dist/esm/environments.d.mts +4 -0
  1207. package/dist/esm/environments.mjs +4 -0
  1208. package/dist/esm/errors/BandError.d.mts +14 -0
  1209. package/dist/esm/errors/BandError.mjs +31 -0
  1210. package/dist/esm/errors/BandTimeoutError.d.mts +6 -0
  1211. package/dist/esm/errors/BandTimeoutError.mjs +14 -0
  1212. package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
  1213. package/dist/esm/errors/handleNonStatusCodeError.mjs +32 -0
  1214. package/dist/esm/errors/index.d.mts +2 -0
  1215. package/dist/esm/errors/index.mjs +2 -0
  1216. package/dist/esm/exports.d.mts +1 -0
  1217. package/dist/esm/exports.mjs +1 -0
  1218. package/dist/esm/index.d.mts +6 -0
  1219. package/dist/esm/index.mjs +5 -0
  1220. package/dist/esm/version.d.mts +1 -0
  1221. package/dist/esm/version.mjs +1 -0
  1222. package/package.json +212 -11
  1223. package/reference.md +263 -290
@@ -0,0 +1,636 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.AgentApiMessagesClient = void 0;
47
+ const BaseClient_js_1 = require("../../../../BaseClient.js");
48
+ const headers_js_1 = require("../../../../core/headers.js");
49
+ const core = __importStar(require("../../../../core/index.js"));
50
+ const environments = __importStar(require("../../../../environments.js"));
51
+ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
52
+ const errors = __importStar(require("../../../../errors/index.js"));
53
+ const Band = __importStar(require("../../../index.js"));
54
+ /**
55
+ * Send messages, poll for work, and manage message processing status.
56
+ */
57
+ class AgentApiMessagesClient {
58
+ constructor(options) {
59
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
60
+ }
61
+ /**
62
+ * Returns messages that the agent needs to process, filtered by status.
63
+ *
64
+ * ## Default Behavior (no status param)
65
+ *
66
+ * Returns all messages that are NOT processed. This is the recommended way to get
67
+ * all work the agent should handle, including:
68
+ * - New messages (no delivery status yet)
69
+ * - Delivered messages (acknowledged but not started)
70
+ * - Processing messages (stuck/crashed - supports crash recovery)
71
+ * - Failed messages (available for retry)
72
+ *
73
+ * ## Status Filter Reference
74
+ *
75
+ * | ?status= | Returns | Use Case |
76
+ * |--------------|----------------------------------------------------------------------|-----------------------------|
77
+ * | *(no param)* | Everything NOT processed | Get all work to do |
78
+ * | `pending` | No status, delivered, or failed without active attempt | Queue depth (untouched) |
79
+ * | `processing` | Currently being processed | In-flight work |
80
+ * | `processed` | Successfully completed | Done items |
81
+ * | `failed` | Failed only | Failure backlog |
82
+ * | `all` | All messages regardless of status | Full history |
83
+ *
84
+ * Messages are returned in chronological order (oldest first).
85
+ *
86
+ * ## Pagination
87
+ *
88
+ * Use `cursor` + `limit` for cursor-based pagination (recommended). The response
89
+ * `metadata` includes `next_cursor` and `has_more`. Pass `cursor=<next_cursor>` to
90
+ * fetch the next page.
91
+ *
92
+ * `page` and `page_size` are deprecated and will be removed in API 2.0.0 (2026-10-01).
93
+ * Responses using these params include `Deprecation` and `Sunset` headers.
94
+ *
95
+ * ## Workflow
96
+ *
97
+ * After retrieving messages, you must update their processing status:
98
+ *
99
+ * 1. `GET /messages` or `GET /messages/next` → Get work to do
100
+ * 2. `POST /messages/{id}/processing` → **Required:** Mark as processing before you start
101
+ * 3. Process the message (reasoning loop, tool calls, etc.)
102
+ * 4. `POST /messages/{id}/processed` → Mark as done, OR
103
+ * `POST /messages/{id}/failed` → Mark as failed with error message
104
+ * 5. Repeat
105
+ *
106
+ * **Important:** Always call `/processing` before starting work. This prevents
107
+ * duplicate processing since agents doing reasoning loops will always follow the
108
+ * sequence: `/next` → `/processing` → do work → `/processed`.
109
+ *
110
+ * ## Crash Recovery
111
+ *
112
+ * If your agent crashes while processing, the message remains in `processing` state.
113
+ * When the agent restarts:
114
+ * 1. Call `GET /messages` (default) - it includes stuck `processing` messages
115
+ * 2. The stuck message will be returned so you can retry it
116
+ * 3. Call `/processing` again to reset the attempt timestamp, then continue
117
+ *
118
+ * @param {string} chat_id - Chat Room ID
119
+ * @param {Band.ListAgentMessagesRequest} request
120
+ * @param {AgentApiMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
121
+ *
122
+ * @throws {@link Band.UnauthorizedError}
123
+ * @throws {@link Band.ForbiddenError}
124
+ * @throws {@link Band.NotFoundError}
125
+ * @throws {@link Band.UnprocessableEntityError}
126
+ *
127
+ * @example
128
+ * await client.agentApiMessages.listAgentMessages("chat_id", {
129
+ * status: "pending",
130
+ * cursor: "cursor",
131
+ * limit: 1,
132
+ * page: 1,
133
+ * page_size: 1
134
+ * })
135
+ */
136
+ listAgentMessages(chat_id, request = {}, requestOptions) {
137
+ return core.HttpResponsePromise.fromPromise(this.__listAgentMessages(chat_id, request, requestOptions));
138
+ }
139
+ __listAgentMessages(chat_id_1) {
140
+ return __awaiter(this, arguments, void 0, function* (chat_id, request = {}, requestOptions) {
141
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
142
+ const { status, cursor, limit, page, page_size: pageSize } = request;
143
+ const _queryParams = {
144
+ status: status != null ? status : undefined,
145
+ cursor,
146
+ limit,
147
+ page,
148
+ page_size: pageSize,
149
+ };
150
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
151
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
152
+ const _response = yield core.fetcher({
153
+ 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/agent/chats/${core.url.encodePathParam(chat_id)}/messages`),
154
+ method: "GET",
155
+ headers: _headers,
156
+ queryString: core.url
157
+ .queryBuilder()
158
+ .addMany(_queryParams)
159
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
160
+ .build(),
161
+ 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,
162
+ 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,
163
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
164
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
165
+ logging: this._options.logging,
166
+ });
167
+ if (_response.ok) {
168
+ return { data: _response.body, rawResponse: _response.rawResponse };
169
+ }
170
+ if (_response.error.reason === "status-code") {
171
+ switch (_response.error.statusCode) {
172
+ case 401:
173
+ throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
174
+ case 403:
175
+ throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
176
+ case 404:
177
+ throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
178
+ case 422:
179
+ throw new Band.UnprocessableEntityError(_response.error.body, _response.rawResponse);
180
+ default:
181
+ throw new errors.BandError({
182
+ statusCode: _response.error.statusCode,
183
+ body: _response.error.body,
184
+ rawResponse: _response.rawResponse,
185
+ });
186
+ }
187
+ }
188
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/agent/chats/{chat_id}/messages");
189
+ });
190
+ }
191
+ /**
192
+ * Creates a new text message in a chat room. The agent must be a participant in the room.
193
+ *
194
+ * This endpoint only supports `text` message type. For event-type messages
195
+ * (tool_call, tool_result, thought, system, error, action, guidelines, task),
196
+ * use `POST /agent/chats/{chat_id}/events` instead.
197
+ *
198
+ * Messages must include at least one @mention to ensure proper routing to recipients.
199
+ *
200
+ * Example request:
201
+ * ```json
202
+ * {
203
+ * "message": {
204
+ * "content": "@task.owner I have completed the analysis",
205
+ * "mentions": [
206
+ * {"id": "user-uuid", "handle": "task.owner", "name": "Task Owner"}
207
+ * ]
208
+ * }
209
+ * }
210
+ * ```
211
+ *
212
+ * @param {string} chat_id - Chat Room ID
213
+ * @param {Band.CreateAgentChatMessageRequest} request
214
+ * @param {AgentApiMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
215
+ *
216
+ * @throws {@link Band.UnauthorizedError}
217
+ * @throws {@link Band.ForbiddenError}
218
+ * @throws {@link Band.NotFoundError}
219
+ * @throws {@link Band.UnprocessableEntityError}
220
+ *
221
+ * @example
222
+ * await client.agentApiMessages.createAgentChatMessage("chat_id", {
223
+ * message: {
224
+ * content: "@DataAnalyst please analyze the Q4 sales data",
225
+ * mentions: [{
226
+ * id: "id"
227
+ * }]
228
+ * }
229
+ * })
230
+ */
231
+ createAgentChatMessage(chat_id, request, requestOptions) {
232
+ return core.HttpResponsePromise.fromPromise(this.__createAgentChatMessage(chat_id, request, requestOptions));
233
+ }
234
+ __createAgentChatMessage(chat_id, request, requestOptions) {
235
+ return __awaiter(this, void 0, void 0, function* () {
236
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
237
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
238
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
239
+ const _response = yield core.fetcher({
240
+ 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/agent/chats/${core.url.encodePathParam(chat_id)}/messages`),
241
+ method: "POST",
242
+ headers: _headers,
243
+ contentType: "application/json",
244
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
245
+ requestType: "json",
246
+ body: request,
247
+ 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,
248
+ 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,
249
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
250
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
251
+ logging: this._options.logging,
252
+ });
253
+ if (_response.ok) {
254
+ return { data: _response.body, rawResponse: _response.rawResponse };
255
+ }
256
+ if (_response.error.reason === "status-code") {
257
+ switch (_response.error.statusCode) {
258
+ case 401:
259
+ throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
260
+ case 403:
261
+ throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
262
+ case 404:
263
+ throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
264
+ case 422:
265
+ throw new Band.UnprocessableEntityError(_response.error.body, _response.rawResponse);
266
+ default:
267
+ throw new errors.BandError({
268
+ statusCode: _response.error.statusCode,
269
+ body: _response.error.body,
270
+ rawResponse: _response.rawResponse,
271
+ });
272
+ }
273
+ }
274
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/v1/agent/chats/{chat_id}/messages");
275
+ });
276
+ }
277
+ /**
278
+ * Returns the single oldest message that needs processing.
279
+ *
280
+ * ## What It Returns
281
+ *
282
+ * The oldest message that is NOT processed, including:
283
+ * - New messages (no delivery status yet)
284
+ * - Delivered messages (acknowledged but not started)
285
+ * - Processing messages (stuck/crashed - supports crash recovery)
286
+ * - Failed messages (available for retry)
287
+ *
288
+ * Returns **204 No Content** if there are no messages to process.
289
+ *
290
+ * ## Workflow
291
+ *
292
+ * This is the primary endpoint for agent reasoning loops:
293
+ *
294
+ * 1. `GET /messages/next` → Get next work item
295
+ * 2. `POST /messages/{id}/processing` → **Required:** Mark as processing
296
+ * 3. Process the message (reasoning loop, tool calls, etc.)
297
+ * 4. `POST /messages/{id}/processed` → Mark as done, OR
298
+ * `POST /messages/{id}/failed` → Mark as failed with error message
299
+ * 5. Loop back to step 1
300
+ *
301
+ * ## Crash Recovery
302
+ *
303
+ * If your agent crashes while processing, the message stays in `processing` state.
304
+ * When restarted, calling `/next` will return that same stuck message (oldest first),
305
+ * allowing the agent to reclaim and retry it.
306
+ *
307
+ * ## Difference from GET /messages
308
+ *
309
+ * - `GET /messages` returns **all** actionable messages (for batch processing or queue inspection)
310
+ * - `GET /messages/next` returns **one** message (for sequential processing loops)
311
+ *
312
+ * Both use the same filter logic: everything that is NOT processed.
313
+ *
314
+ * @param {string} chat_id - Chat Room ID
315
+ * @param {AgentApiMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
316
+ *
317
+ * @throws {@link Band.UnauthorizedError}
318
+ * @throws {@link Band.ForbiddenError}
319
+ * @throws {@link Band.NotFoundError}
320
+ *
321
+ * @example
322
+ * await client.agentApiMessages.getAgentNextMessage("chat_id")
323
+ */
324
+ getAgentNextMessage(chat_id, requestOptions) {
325
+ return core.HttpResponsePromise.fromPromise(this.__getAgentNextMessage(chat_id, requestOptions));
326
+ }
327
+ __getAgentNextMessage(chat_id, requestOptions) {
328
+ return __awaiter(this, void 0, void 0, function* () {
329
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
330
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
331
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
332
+ const _response = yield core.fetcher({
333
+ 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/agent/chats/${core.url.encodePathParam(chat_id)}/messages/next`),
334
+ method: "GET",
335
+ headers: _headers,
336
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
337
+ 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,
338
+ 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,
339
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
340
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
341
+ logging: this._options.logging,
342
+ });
343
+ if (_response.ok) {
344
+ return {
345
+ data: _response.body,
346
+ rawResponse: _response.rawResponse,
347
+ };
348
+ }
349
+ if (_response.error.reason === "status-code") {
350
+ switch (_response.error.statusCode) {
351
+ case 401:
352
+ throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
353
+ case 403:
354
+ throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
355
+ case 404:
356
+ throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
357
+ default:
358
+ throw new errors.BandError({
359
+ statusCode: _response.error.statusCode,
360
+ body: _response.error.body,
361
+ rawResponse: _response.rawResponse,
362
+ });
363
+ }
364
+ }
365
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/agent/chats/{chat_id}/messages/next");
366
+ });
367
+ }
368
+ /**
369
+ * Marks a message as being processed by the agent. This creates a new processing attempt
370
+ * with a system-managed timestamp. The agent must be a participant in the chat room.
371
+ *
372
+ * ## What It Does
373
+ *
374
+ * - Creates a new attempt with auto-incremented attempt_number
375
+ * - Sets the attempt status to "processing"
376
+ * - Records the started_at timestamp (system-managed)
377
+ * - Updates the agent's delivery status to "processing"
378
+ *
379
+ * ## Multiple Calls
380
+ *
381
+ * This endpoint can be called multiple times on the same message. Each call creates
382
+ * a **new attempt**. This is intentional for crash recovery:
383
+ *
384
+ * 1. Agent calls `/processing` (attempt 1)
385
+ * 2. Agent crashes while processing
386
+ * 3. Agent restarts, calls `/next`, gets the same message back
387
+ * 4. Agent calls `/processing` again (attempt 2)
388
+ * 5. Agent completes processing, calls `/processed`
389
+ *
390
+ * The attempts array in the message metadata tracks the full history.
391
+ *
392
+ * ## Workflow
393
+ *
394
+ * Always call this endpoint before starting work on a message:
395
+ *
396
+ * 1. `GET /messages/next` → Get message
397
+ * 2. `POST /messages/{id}/processing` → **This endpoint**
398
+ * 3. Process the message
399
+ * 4. `POST /messages/{id}/processed` or `/failed`
400
+ *
401
+ * @param {string} chat_id - Chat Room ID
402
+ * @param {string} id - Message ID
403
+ * @param {AgentApiMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
404
+ *
405
+ * @throws {@link Band.UnauthorizedError}
406
+ * @throws {@link Band.ForbiddenError}
407
+ * @throws {@link Band.NotFoundError}
408
+ * @throws {@link Band.UnprocessableEntityError}
409
+ *
410
+ * @example
411
+ * await client.agentApiMessages.markAgentMessageProcessing("chat_id", "id")
412
+ */
413
+ markAgentMessageProcessing(chat_id, id, requestOptions) {
414
+ return core.HttpResponsePromise.fromPromise(this.__markAgentMessageProcessing(chat_id, id, requestOptions));
415
+ }
416
+ __markAgentMessageProcessing(chat_id, id, requestOptions) {
417
+ return __awaiter(this, void 0, void 0, function* () {
418
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
419
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
420
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
421
+ const _response = yield core.fetcher({
422
+ 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/agent/chats/${core.url.encodePathParam(chat_id)}/messages/${core.url.encodePathParam(id)}/processing`),
423
+ method: "POST",
424
+ headers: _headers,
425
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
426
+ 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,
427
+ 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,
428
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
429
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
430
+ logging: this._options.logging,
431
+ });
432
+ if (_response.ok) {
433
+ return {
434
+ data: _response.body,
435
+ rawResponse: _response.rawResponse,
436
+ };
437
+ }
438
+ if (_response.error.reason === "status-code") {
439
+ switch (_response.error.statusCode) {
440
+ case 401:
441
+ throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
442
+ case 403:
443
+ throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
444
+ case 404:
445
+ throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
446
+ case 422:
447
+ throw new Band.UnprocessableEntityError(_response.error.body, _response.rawResponse);
448
+ default:
449
+ throw new errors.BandError({
450
+ statusCode: _response.error.statusCode,
451
+ body: _response.error.body,
452
+ rawResponse: _response.rawResponse,
453
+ });
454
+ }
455
+ }
456
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/v1/agent/chats/{chat_id}/messages/{id}/processing");
457
+ });
458
+ }
459
+ /**
460
+ * Marks a message processing as failed by the agent. This completes the current
461
+ * processing attempt with an error message and system-managed timestamp.
462
+ *
463
+ * ## What It Does
464
+ *
465
+ * - Sets the current attempt's completed_at timestamp (system-managed)
466
+ * - Sets the current attempt status to "failed"
467
+ * - Records the error message in the current attempt
468
+ * - Updates the agent's delivery status to "failed"
469
+ *
470
+ * ## Requirements
471
+ *
472
+ * **Requires an active processing attempt.** You must call `/processing` first.
473
+ * Returns 422 if no processing attempt exists.
474
+ *
475
+ * ## After Calling
476
+ *
477
+ * Failed messages remain available for retry. They will appear in:
478
+ * - `GET /messages` (default - returns not processed)
479
+ * - `GET /messages/next` (available for retry)
480
+ * - `GET /messages?status=failed`
481
+ * - `GET /messages?status=all`
482
+ *
483
+ * To retry a failed message, simply call `/processing` again to create a new attempt,
484
+ * then `/processed` or `/failed` when done.
485
+ *
486
+ * @param {string} chat_id - Chat Room ID
487
+ * @param {string} id - Message ID
488
+ * @param {Band.MarkAgentMessageFailedRequest} request
489
+ * @param {AgentApiMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
490
+ *
491
+ * @throws {@link Band.UnauthorizedError}
492
+ * @throws {@link Band.ForbiddenError}
493
+ * @throws {@link Band.NotFoundError}
494
+ * @throws {@link Band.UnprocessableEntityError}
495
+ *
496
+ * @example
497
+ * await client.agentApiMessages.markAgentMessageFailed("chat_id", "id", {
498
+ * error: "error"
499
+ * })
500
+ */
501
+ markAgentMessageFailed(chat_id, id, request, requestOptions) {
502
+ return core.HttpResponsePromise.fromPromise(this.__markAgentMessageFailed(chat_id, id, request, requestOptions));
503
+ }
504
+ __markAgentMessageFailed(chat_id, id, request, requestOptions) {
505
+ return __awaiter(this, void 0, void 0, function* () {
506
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
507
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
508
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
509
+ const _response = yield core.fetcher({
510
+ 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/agent/chats/${core.url.encodePathParam(chat_id)}/messages/${core.url.encodePathParam(id)}/failed`),
511
+ method: "POST",
512
+ headers: _headers,
513
+ contentType: "application/json",
514
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
515
+ requestType: "json",
516
+ body: request,
517
+ 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,
518
+ 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,
519
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
520
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
521
+ logging: this._options.logging,
522
+ });
523
+ if (_response.ok) {
524
+ return {
525
+ data: _response.body,
526
+ rawResponse: _response.rawResponse,
527
+ };
528
+ }
529
+ if (_response.error.reason === "status-code") {
530
+ switch (_response.error.statusCode) {
531
+ case 401:
532
+ throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
533
+ case 403:
534
+ throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
535
+ case 404:
536
+ throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
537
+ case 422:
538
+ throw new Band.UnprocessableEntityError(_response.error.body, _response.rawResponse);
539
+ default:
540
+ throw new errors.BandError({
541
+ statusCode: _response.error.statusCode,
542
+ body: _response.error.body,
543
+ rawResponse: _response.rawResponse,
544
+ });
545
+ }
546
+ }
547
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/v1/agent/chats/{chat_id}/messages/{id}/failed");
548
+ });
549
+ }
550
+ /**
551
+ * Marks a message as successfully processed by the agent. This completes the current
552
+ * processing attempt with a system-managed timestamp.
553
+ *
554
+ * ## What It Does
555
+ *
556
+ * - Sets the current attempt's completed_at timestamp (system-managed)
557
+ * - Sets the current attempt status to "success"
558
+ * - Sets the agent's processed_at timestamp (system-managed)
559
+ * - Updates the agent's delivery status to "processed"
560
+ *
561
+ * ## Requirements
562
+ *
563
+ * **Requires an active processing attempt.** You must call `/processing` first.
564
+ * Returns 422 if no processing attempt exists.
565
+ *
566
+ * ## After Calling
567
+ *
568
+ * Once marked as processed, the message will no longer appear in:
569
+ * - `GET /messages` (default - returns not processed)
570
+ * - `GET /messages/next`
571
+ * - `GET /messages?status=pending`
572
+ *
573
+ * It will only appear in:
574
+ * - `GET /messages?status=processed`
575
+ * - `GET /messages?status=all`
576
+ *
577
+ * @param {string} chat_id - Chat Room ID
578
+ * @param {string} id - Message ID
579
+ * @param {AgentApiMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
580
+ *
581
+ * @throws {@link Band.UnauthorizedError}
582
+ * @throws {@link Band.ForbiddenError}
583
+ * @throws {@link Band.NotFoundError}
584
+ * @throws {@link Band.UnprocessableEntityError}
585
+ *
586
+ * @example
587
+ * await client.agentApiMessages.markAgentMessageProcessed("chat_id", "id")
588
+ */
589
+ markAgentMessageProcessed(chat_id, id, requestOptions) {
590
+ return core.HttpResponsePromise.fromPromise(this.__markAgentMessageProcessed(chat_id, id, requestOptions));
591
+ }
592
+ __markAgentMessageProcessed(chat_id, id, requestOptions) {
593
+ return __awaiter(this, void 0, void 0, function* () {
594
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
595
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
596
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
597
+ const _response = yield core.fetcher({
598
+ 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/agent/chats/${core.url.encodePathParam(chat_id)}/messages/${core.url.encodePathParam(id)}/processed`),
599
+ method: "POST",
600
+ headers: _headers,
601
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
602
+ 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,
603
+ 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,
604
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
605
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
606
+ logging: this._options.logging,
607
+ });
608
+ if (_response.ok) {
609
+ return {
610
+ data: _response.body,
611
+ rawResponse: _response.rawResponse,
612
+ };
613
+ }
614
+ if (_response.error.reason === "status-code") {
615
+ switch (_response.error.statusCode) {
616
+ case 401:
617
+ throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
618
+ case 403:
619
+ throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
620
+ case 404:
621
+ throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
622
+ case 422:
623
+ throw new Band.UnprocessableEntityError(_response.error.body, _response.rawResponse);
624
+ default:
625
+ throw new errors.BandError({
626
+ statusCode: _response.error.statusCode,
627
+ body: _response.error.body,
628
+ rawResponse: _response.rawResponse,
629
+ });
630
+ }
631
+ }
632
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/v1/agent/chats/{chat_id}/messages/{id}/processed");
633
+ });
634
+ }
635
+ }
636
+ exports.AgentApiMessagesClient = AgentApiMessagesClient;
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);