@band-ai/rest-client 0.0.117 → 0.0.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -12
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +39 -12
- package/dist/cjs/Client.js +70 -25
- package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +6 -0
- package/dist/cjs/api/errors/ServiceUnavailableError.js +54 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +1 -2
- package/dist/cjs/api/errors/index.d.ts +1 -0
- package/dist/cjs/api/errors/index.js +1 -0
- package/dist/cjs/api/resources/agentApiActivity/client/Client.d.ts +45 -0
- package/dist/cjs/api/resources/agentApiActivity/client/Client.js +137 -0
- package/dist/cjs/api/resources/agentApiActivity/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentApiActivity/client/index.js +17 -0
- package/dist/cjs/api/resources/agentApiActivity/client/requests/ReportAgentChatActivityRequest.d.ts +10 -0
- package/dist/cjs/api/resources/agentApiActivity/client/requests/ReportAgentChatActivityRequest.js +3 -0
- package/dist/cjs/api/resources/agentApiActivity/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentApiActivity/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agentApiActivity/exports.d.ts +2 -0
- package/dist/cjs/api/resources/agentApiActivity/exports.js +21 -0
- package/dist/cjs/api/resources/agentApiActivity/index.d.ts +2 -0
- package/dist/cjs/api/resources/agentApiActivity/index.js +18 -0
- package/dist/cjs/api/resources/agentApiActivity/types/ReportAgentChatActivityResponse.d.ts +4 -0
- package/dist/cjs/api/resources/agentApiActivity/types/ReportAgentChatActivityResponse.js +3 -0
- package/dist/cjs/api/resources/agentApiActivity/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/agentApiActivity/types/index.js +17 -0
- package/dist/cjs/api/resources/agentApiChats/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/agentApiChats/client/Client.js +51 -51
- package/dist/cjs/api/resources/agentApiContacts/client/Client.d.ts +33 -33
- package/dist/cjs/api/resources/agentApiContacts/client/Client.js +88 -88
- package/dist/cjs/api/resources/agentApiMemories/client/Client.d.ts +50 -50
- package/dist/cjs/api/resources/agentApiMemories/client/Client.js +100 -100
- package/dist/cjs/api/resources/agentApiMessages/client/Client.d.ts +49 -49
- package/dist/cjs/api/resources/agentApiMessages/client/Client.js +79 -76
- package/dist/cjs/api/resources/humanApiAgents/client/Client.d.ts +107 -0
- package/dist/cjs/api/resources/humanApiAgents/client/Client.js +299 -0
- package/dist/cjs/api/resources/humanApiAgents/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/humanApiAgents/client/index.js +17 -0
- package/dist/cjs/api/resources/humanApiAgents/client/requests/DeleteMyAgentRequest.d.ts +10 -0
- package/dist/cjs/api/resources/humanApiAgents/client/requests/DeleteMyAgentRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiAgents/client/requests/ListMyAgentsRequest.d.ts +35 -0
- package/dist/cjs/api/resources/humanApiAgents/client/requests/ListMyAgentsRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiAgents/client/requests/RegisterMyAgentRequest.d.ts +13 -0
- package/dist/cjs/api/resources/humanApiAgents/client/requests/RegisterMyAgentRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiAgents/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/humanApiAgents/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/humanApiAgents/exports.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiAgents/exports.js +21 -0
- package/dist/cjs/api/resources/humanApiAgents/index.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiAgents/index.js +18 -0
- package/dist/cjs/api/resources/humanApiAgents/types/DeleteMyAgentResponse.d.ts +15 -0
- package/dist/cjs/api/resources/humanApiAgents/types/DeleteMyAgentResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsRequestOrder.d.ts +5 -0
- package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsRequestOrder.js +8 -0
- package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsRequestSort.d.ts +6 -0
- package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsRequestSort.js +9 -0
- package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsResponse.d.ts +36 -0
- package/dist/cjs/api/resources/humanApiAgents/types/ListMyAgentsResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiAgents/types/RegisterMyAgentResponse.d.ts +27 -0
- package/dist/cjs/api/resources/humanApiAgents/types/RegisterMyAgentResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiAgents/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/humanApiAgents/types/index.js +21 -0
- package/dist/cjs/api/resources/humanApiChats/client/Client.d.ts +81 -0
- package/dist/cjs/api/resources/humanApiChats/client/Client.js +262 -0
- package/dist/cjs/api/resources/humanApiChats/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/humanApiChats/client/index.js +17 -0
- package/dist/cjs/api/resources/humanApiChats/client/requests/CreateMyChatRoomRequest.d.ts +17 -0
- package/dist/cjs/api/resources/humanApiChats/client/requests/CreateMyChatRoomRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiChats/client/requests/ListMyChatsRequest.d.ts +32 -0
- package/dist/cjs/api/resources/humanApiChats/client/requests/ListMyChatsRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiChats/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiChats/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/humanApiChats/exports.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiChats/exports.js +21 -0
- package/dist/cjs/api/resources/humanApiChats/index.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiChats/index.js +18 -0
- package/dist/cjs/api/resources/humanApiChats/types/CreateMyChatRoomResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiChats/types/CreateMyChatRoomResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiChats/types/GetMyChatRoomResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiChats/types/GetMyChatRoomResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestOrder.d.ts +5 -0
- package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestOrder.js +8 -0
- package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestSortBy.d.ts +5 -0
- package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestSortBy.js +8 -0
- package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestStatus.d.ts +6 -0
- package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestStatus.js +9 -0
- package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestType.d.ts +6 -0
- package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsRequestType.js +9 -0
- package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsResponse.d.ts +23 -0
- package/dist/cjs/api/resources/humanApiChats/types/ListMyChatsResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiChats/types/index.d.ts +7 -0
- package/dist/cjs/api/resources/humanApiChats/types/index.js +23 -0
- package/dist/cjs/api/resources/humanApiContacts/client/Client.d.ts +201 -0
- package/dist/cjs/api/resources/humanApiContacts/client/Client.js +648 -0
- package/dist/cjs/api/resources/humanApiContacts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/humanApiContacts/client/index.js +17 -0
- package/dist/cjs/api/resources/humanApiContacts/client/requests/CreateContactRequestRequest.d.ts +19 -0
- package/dist/cjs/api/resources/humanApiContacts/client/requests/CreateContactRequestRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/client/requests/ListMyContactsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/humanApiContacts/client/requests/ListMyContactsRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/client/requests/ListReceivedContactRequestsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/humanApiContacts/client/requests/ListReceivedContactRequestsRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/client/requests/ListSentContactRequestsRequest.d.ts +17 -0
- package/dist/cjs/api/resources/humanApiContacts/client/requests/ListSentContactRequestsRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/client/requests/RemoveMyContactRequest.d.ts +10 -0
- package/dist/cjs/api/resources/humanApiContacts/client/requests/RemoveMyContactRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/client/requests/ResolveHandleRequest.d.ts +10 -0
- package/dist/cjs/api/resources/humanApiContacts/client/requests/ResolveHandleRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/client/requests/index.d.ts +6 -0
- package/dist/cjs/api/resources/humanApiContacts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/humanApiContacts/exports.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiContacts/exports.js +21 -0
- package/dist/cjs/api/resources/humanApiContacts/index.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiContacts/index.js +18 -0
- package/dist/cjs/api/resources/humanApiContacts/types/ApproveContactRequestResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiContacts/types/ApproveContactRequestResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/types/CancelContactRequestResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiContacts/types/CancelContactRequestResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/types/CreateContactRequestResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiContacts/types/CreateContactRequestResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/types/ListMyContactsResponse.d.ts +21 -0
- package/dist/cjs/api/resources/humanApiContacts/types/ListMyContactsResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/types/ListReceivedContactRequestsResponse.d.ts +21 -0
- package/dist/cjs/api/resources/humanApiContacts/types/ListReceivedContactRequestsResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/types/ListSentContactRequestsRequestStatus.d.ts +9 -0
- package/dist/cjs/api/resources/humanApiContacts/types/ListSentContactRequestsRequestStatus.js +12 -0
- package/dist/cjs/api/resources/humanApiContacts/types/ListSentContactRequestsResponse.d.ts +21 -0
- package/dist/cjs/api/resources/humanApiContacts/types/ListSentContactRequestsResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/types/RejectContactRequestResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiContacts/types/RejectContactRequestResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/types/RemoveMyContactResponse.d.ts +8 -0
- package/dist/cjs/api/resources/humanApiContacts/types/RemoveMyContactResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/types/ResolveHandleResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiContacts/types/ResolveHandleResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiContacts/types/index.d.ts +10 -0
- package/dist/cjs/api/resources/humanApiContacts/types/index.js +26 -0
- package/dist/cjs/api/resources/humanApiMemories/client/Client.d.ts +131 -0
- package/dist/cjs/api/resources/humanApiMemories/client/Client.js +426 -0
- package/dist/cjs/api/resources/humanApiMemories/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/humanApiMemories/client/index.js +17 -0
- package/dist/cjs/api/resources/humanApiMemories/client/requests/ListUserMemoriesRequest.d.ts +31 -0
- package/dist/cjs/api/resources/humanApiMemories/client/requests/ListUserMemoriesRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiMemories/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/humanApiMemories/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/humanApiMemories/exports.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiMemories/exports.js +21 -0
- package/dist/cjs/api/resources/humanApiMemories/index.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiMemories/index.js +18 -0
- package/dist/cjs/api/resources/humanApiMemories/types/ArchiveUserMemoryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiMemories/types/ArchiveUserMemoryResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiMemories/types/GetUserMemoryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiMemories/types/GetUserMemoryResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiMemories/types/ListUserMemoriesResponse.d.ts +13 -0
- package/dist/cjs/api/resources/humanApiMemories/types/ListUserMemoriesResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiMemories/types/RestoreUserMemoryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiMemories/types/RestoreUserMemoryResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiMemories/types/SupersedeUserMemoryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiMemories/types/SupersedeUserMemoryResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiMemories/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/humanApiMemories/types/index.js +21 -0
- package/dist/cjs/api/resources/humanApiMessages/client/Client.d.ts +97 -0
- package/dist/cjs/api/resources/humanApiMessages/client/Client.js +237 -0
- package/dist/cjs/api/resources/humanApiMessages/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/humanApiMessages/client/index.js +17 -0
- package/dist/cjs/api/resources/humanApiMessages/client/requests/ListMyChatMessagesRequest.d.ts +26 -0
- package/dist/cjs/api/resources/humanApiMessages/client/requests/ListMyChatMessagesRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiMessages/client/requests/SendMyChatMessageRequest.d.ts +15 -0
- package/dist/cjs/api/resources/humanApiMessages/client/requests/SendMyChatMessageRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiMessages/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiMessages/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/humanApiMessages/exports.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiMessages/exports.js +21 -0
- package/dist/cjs/api/resources/humanApiMessages/index.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiMessages/index.js +18 -0
- package/dist/cjs/api/resources/humanApiMessages/types/ListMyChatMessagesRequestMessageType.d.ts +10 -0
- package/dist/cjs/api/resources/humanApiMessages/types/ListMyChatMessagesRequestMessageType.js +13 -0
- package/dist/cjs/api/resources/humanApiMessages/types/ListMyChatMessagesResponse.d.ts +23 -0
- package/dist/cjs/api/resources/humanApiMessages/types/ListMyChatMessagesResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiMessages/types/SendMyChatMessageResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiMessages/types/SendMyChatMessageResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiMessages/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/humanApiMessages/types/index.js +19 -0
- package/dist/cjs/api/resources/humanApiParticipants/client/Client.d.ts +84 -0
- package/dist/cjs/api/resources/humanApiParticipants/client/Client.js +264 -0
- package/dist/cjs/api/resources/humanApiParticipants/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/humanApiParticipants/client/index.js +17 -0
- package/dist/cjs/api/resources/humanApiParticipants/client/requests/AddMyChatParticipantRequest.d.ts +12 -0
- package/dist/cjs/api/resources/humanApiParticipants/client/requests/AddMyChatParticipantRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiParticipants/client/requests/ListMyChatParticipantsRequest.d.ts +23 -0
- package/dist/cjs/api/resources/humanApiParticipants/client/requests/ListMyChatParticipantsRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiParticipants/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiParticipants/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/humanApiParticipants/exports.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiParticipants/exports.js +21 -0
- package/dist/cjs/api/resources/humanApiParticipants/index.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiParticipants/index.js +18 -0
- package/dist/cjs/api/resources/humanApiParticipants/types/AddMyChatParticipantResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiParticipants/types/AddMyChatParticipantResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiParticipants/types/ListMyChatParticipantsRequestParticipantType.d.ts +5 -0
- package/dist/cjs/api/resources/humanApiParticipants/types/ListMyChatParticipantsRequestParticipantType.js +8 -0
- package/dist/cjs/api/resources/humanApiParticipants/types/ListMyChatParticipantsResponse.d.ts +23 -0
- package/dist/cjs/api/resources/humanApiParticipants/types/ListMyChatParticipantsResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiParticipants/types/RemoveMyChatParticipantResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiParticipants/types/RemoveMyChatParticipantResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiParticipants/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiParticipants/types/index.js +20 -0
- package/dist/cjs/api/resources/humanApiPeers/client/Client.d.ts +46 -0
- package/dist/cjs/api/resources/humanApiPeers/client/Client.js +140 -0
- package/dist/cjs/api/resources/humanApiPeers/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/humanApiPeers/client/index.js +17 -0
- package/dist/cjs/api/resources/humanApiPeers/client/requests/ListMyPeersRequest.d.ts +20 -0
- package/dist/cjs/api/resources/humanApiPeers/client/requests/ListMyPeersRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiPeers/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/humanApiPeers/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/humanApiPeers/exports.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiPeers/exports.js +21 -0
- package/dist/cjs/api/resources/humanApiPeers/index.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiPeers/index.js +18 -0
- package/dist/cjs/api/resources/humanApiPeers/types/ListMyPeersRequestType.d.ts +5 -0
- package/dist/cjs/api/resources/humanApiPeers/types/ListMyPeersRequestType.js +8 -0
- package/dist/cjs/api/resources/humanApiPeers/types/ListMyPeersResponse.d.ts +13 -0
- package/dist/cjs/api/resources/humanApiPeers/types/ListMyPeersResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiPeers/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiPeers/types/index.js +18 -0
- package/dist/cjs/api/resources/humanApiProfile/client/Client.d.ts +46 -0
- package/dist/cjs/api/resources/humanApiProfile/client/Client.js +171 -0
- package/dist/cjs/api/resources/humanApiProfile/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/humanApiProfile/client/index.js +17 -0
- package/dist/cjs/api/resources/humanApiProfile/client/requests/UpdateMyProfileRequest.d.ts +21 -0
- package/dist/cjs/api/resources/humanApiProfile/client/requests/UpdateMyProfileRequest.js +3 -0
- package/dist/cjs/api/resources/humanApiProfile/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/humanApiProfile/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/humanApiProfile/exports.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiProfile/exports.js +21 -0
- package/dist/cjs/api/resources/humanApiProfile/index.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiProfile/index.js +18 -0
- package/dist/cjs/api/resources/humanApiProfile/types/GetMyProfileResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiProfile/types/GetMyProfileResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiProfile/types/UpdateMyProfileResponse.d.ts +4 -0
- package/dist/cjs/api/resources/humanApiProfile/types/UpdateMyProfileResponse.js +3 -0
- package/dist/cjs/api/resources/humanApiProfile/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/humanApiProfile/types/index.js +18 -0
- package/dist/cjs/api/resources/index.d.ts +27 -0
- package/dist/cjs/api/resources/index.js +28 -1
- package/dist/cjs/api/types/AgentActivityResponse.d.ts +7 -0
- package/dist/cjs/api/types/AgentActivityResponse.js +3 -0
- package/dist/cjs/api/types/AgentRegisterRequest.d.ts +9 -0
- package/dist/cjs/api/types/AgentRegisterRequest.js +3 -0
- package/dist/cjs/api/types/ChatParticipantDetails.d.ts +29 -0
- package/dist/cjs/api/types/ChatParticipantDetails.js +12 -0
- package/dist/cjs/api/types/Contact.d.ts +41 -0
- package/dist/cjs/api/types/Contact.js +12 -0
- package/dist/cjs/api/types/ContactRequest.d.ts +68 -0
- package/dist/cjs/api/types/ContactRequest.js +25 -0
- package/dist/cjs/api/types/ContactRequestActionResponse.d.ts +18 -0
- package/dist/cjs/api/types/ContactRequestActionResponse.js +13 -0
- package/dist/cjs/api/types/MeChatRoom.d.ts +35 -0
- package/dist/cjs/api/types/MeChatRoom.js +19 -0
- package/dist/cjs/api/types/MyAgent.d.ts +29 -0
- package/dist/cjs/api/types/MyAgent.js +3 -0
- package/dist/cjs/api/types/ResolvedEntity.d.ts +21 -0
- package/dist/cjs/api/types/ResolvedEntity.js +12 -0
- package/dist/cjs/api/types/UserDetails.d.ts +25 -0
- package/dist/cjs/api/types/UserDetails.js +12 -0
- package/dist/cjs/api/types/UserMemory.d.ts +73 -0
- package/dist/cjs/api/types/UserMemory.js +40 -0
- package/dist/cjs/api/types/index.d.ts +11 -0
- package/dist/cjs/api/types/index.js +11 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +39 -12
- package/dist/esm/Client.mjs +59 -14
- package/dist/esm/api/errors/ServiceUnavailableError.d.mts +6 -0
- package/dist/esm/api/errors/ServiceUnavailableError.mjs +17 -0
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +1 -2
- package/dist/esm/api/errors/index.d.mts +1 -0
- package/dist/esm/api/errors/index.mjs +1 -0
- package/dist/esm/api/resources/agentApiActivity/client/Client.d.mts +45 -0
- package/dist/esm/api/resources/agentApiActivity/client/Client.mjs +100 -0
- package/dist/esm/api/resources/agentApiActivity/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agentApiActivity/client/index.mjs +1 -0
- package/dist/esm/api/resources/agentApiActivity/client/requests/ReportAgentChatActivityRequest.d.mts +10 -0
- package/dist/esm/api/resources/agentApiActivity/client/requests/ReportAgentChatActivityRequest.mjs +2 -0
- package/dist/esm/api/resources/agentApiActivity/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/agentApiActivity/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agentApiActivity/exports.d.mts +2 -0
- package/dist/esm/api/resources/agentApiActivity/exports.mjs +3 -0
- package/dist/esm/api/resources/agentApiActivity/index.d.mts +2 -0
- package/dist/esm/api/resources/agentApiActivity/index.mjs +2 -0
- package/dist/esm/api/resources/agentApiActivity/types/ReportAgentChatActivityResponse.d.mts +4 -0
- package/dist/esm/api/resources/agentApiActivity/types/ReportAgentChatActivityResponse.mjs +2 -0
- package/dist/esm/api/resources/agentApiActivity/types/index.d.mts +1 -0
- package/dist/esm/api/resources/agentApiActivity/types/index.mjs +1 -0
- package/dist/esm/api/resources/agentApiChats/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/agentApiChats/client/Client.mjs +51 -51
- package/dist/esm/api/resources/agentApiContacts/client/Client.d.mts +33 -33
- package/dist/esm/api/resources/agentApiContacts/client/Client.mjs +88 -88
- package/dist/esm/api/resources/agentApiMemories/client/Client.d.mts +50 -50
- package/dist/esm/api/resources/agentApiMemories/client/Client.mjs +100 -100
- package/dist/esm/api/resources/agentApiMessages/client/Client.d.mts +49 -49
- package/dist/esm/api/resources/agentApiMessages/client/Client.mjs +79 -76
- package/dist/esm/api/resources/humanApiAgents/client/Client.d.mts +107 -0
- package/dist/esm/api/resources/humanApiAgents/client/Client.mjs +262 -0
- package/dist/esm/api/resources/humanApiAgents/client/index.d.mts +1 -0
- package/dist/esm/api/resources/humanApiAgents/client/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiAgents/client/requests/DeleteMyAgentRequest.d.mts +10 -0
- package/dist/esm/api/resources/humanApiAgents/client/requests/DeleteMyAgentRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiAgents/client/requests/ListMyAgentsRequest.d.mts +35 -0
- package/dist/esm/api/resources/humanApiAgents/client/requests/ListMyAgentsRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiAgents/client/requests/RegisterMyAgentRequest.d.mts +13 -0
- package/dist/esm/api/resources/humanApiAgents/client/requests/RegisterMyAgentRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiAgents/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/humanApiAgents/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiAgents/exports.d.mts +2 -0
- package/dist/esm/api/resources/humanApiAgents/exports.mjs +3 -0
- package/dist/esm/api/resources/humanApiAgents/index.d.mts +2 -0
- package/dist/esm/api/resources/humanApiAgents/index.mjs +2 -0
- package/dist/esm/api/resources/humanApiAgents/types/DeleteMyAgentResponse.d.mts +15 -0
- package/dist/esm/api/resources/humanApiAgents/types/DeleteMyAgentResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsRequestOrder.d.mts +5 -0
- package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsRequestOrder.mjs +5 -0
- package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsRequestSort.d.mts +6 -0
- package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsRequestSort.mjs +6 -0
- package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsResponse.d.mts +36 -0
- package/dist/esm/api/resources/humanApiAgents/types/ListMyAgentsResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiAgents/types/RegisterMyAgentResponse.d.mts +27 -0
- package/dist/esm/api/resources/humanApiAgents/types/RegisterMyAgentResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiAgents/types/index.d.mts +5 -0
- package/dist/esm/api/resources/humanApiAgents/types/index.mjs +5 -0
- package/dist/esm/api/resources/humanApiChats/client/Client.d.mts +81 -0
- package/dist/esm/api/resources/humanApiChats/client/Client.mjs +225 -0
- package/dist/esm/api/resources/humanApiChats/client/index.d.mts +1 -0
- package/dist/esm/api/resources/humanApiChats/client/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiChats/client/requests/CreateMyChatRoomRequest.d.mts +17 -0
- package/dist/esm/api/resources/humanApiChats/client/requests/CreateMyChatRoomRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiChats/client/requests/ListMyChatsRequest.d.mts +32 -0
- package/dist/esm/api/resources/humanApiChats/client/requests/ListMyChatsRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiChats/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/humanApiChats/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiChats/exports.d.mts +2 -0
- package/dist/esm/api/resources/humanApiChats/exports.mjs +3 -0
- package/dist/esm/api/resources/humanApiChats/index.d.mts +2 -0
- package/dist/esm/api/resources/humanApiChats/index.mjs +2 -0
- package/dist/esm/api/resources/humanApiChats/types/CreateMyChatRoomResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiChats/types/CreateMyChatRoomResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiChats/types/GetMyChatRoomResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiChats/types/GetMyChatRoomResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestOrder.d.mts +5 -0
- package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestOrder.mjs +5 -0
- package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestSortBy.d.mts +5 -0
- package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestSortBy.mjs +5 -0
- package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestStatus.d.mts +6 -0
- package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestStatus.mjs +6 -0
- package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestType.d.mts +6 -0
- package/dist/esm/api/resources/humanApiChats/types/ListMyChatsRequestType.mjs +6 -0
- package/dist/esm/api/resources/humanApiChats/types/ListMyChatsResponse.d.mts +23 -0
- package/dist/esm/api/resources/humanApiChats/types/ListMyChatsResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiChats/types/index.d.mts +7 -0
- package/dist/esm/api/resources/humanApiChats/types/index.mjs +7 -0
- package/dist/esm/api/resources/humanApiContacts/client/Client.d.mts +201 -0
- package/dist/esm/api/resources/humanApiContacts/client/Client.mjs +611 -0
- package/dist/esm/api/resources/humanApiContacts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/humanApiContacts/client/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiContacts/client/requests/CreateContactRequestRequest.d.mts +19 -0
- package/dist/esm/api/resources/humanApiContacts/client/requests/CreateContactRequestRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/client/requests/ListMyContactsRequest.d.mts +13 -0
- package/dist/esm/api/resources/humanApiContacts/client/requests/ListMyContactsRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/client/requests/ListReceivedContactRequestsRequest.d.mts +13 -0
- package/dist/esm/api/resources/humanApiContacts/client/requests/ListReceivedContactRequestsRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/client/requests/ListSentContactRequestsRequest.d.mts +17 -0
- package/dist/esm/api/resources/humanApiContacts/client/requests/ListSentContactRequestsRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/client/requests/RemoveMyContactRequest.d.mts +10 -0
- package/dist/esm/api/resources/humanApiContacts/client/requests/RemoveMyContactRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/client/requests/ResolveHandleRequest.d.mts +10 -0
- package/dist/esm/api/resources/humanApiContacts/client/requests/ResolveHandleRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/client/requests/index.d.mts +6 -0
- package/dist/esm/api/resources/humanApiContacts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiContacts/exports.d.mts +2 -0
- package/dist/esm/api/resources/humanApiContacts/exports.mjs +3 -0
- package/dist/esm/api/resources/humanApiContacts/index.d.mts +2 -0
- package/dist/esm/api/resources/humanApiContacts/index.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/types/ApproveContactRequestResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiContacts/types/ApproveContactRequestResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/types/CancelContactRequestResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiContacts/types/CancelContactRequestResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/types/CreateContactRequestResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiContacts/types/CreateContactRequestResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/types/ListMyContactsResponse.d.mts +21 -0
- package/dist/esm/api/resources/humanApiContacts/types/ListMyContactsResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/types/ListReceivedContactRequestsResponse.d.mts +21 -0
- package/dist/esm/api/resources/humanApiContacts/types/ListReceivedContactRequestsResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/types/ListSentContactRequestsRequestStatus.d.mts +9 -0
- package/dist/esm/api/resources/humanApiContacts/types/ListSentContactRequestsRequestStatus.mjs +9 -0
- package/dist/esm/api/resources/humanApiContacts/types/ListSentContactRequestsResponse.d.mts +21 -0
- package/dist/esm/api/resources/humanApiContacts/types/ListSentContactRequestsResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/types/RejectContactRequestResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiContacts/types/RejectContactRequestResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/types/RemoveMyContactResponse.d.mts +8 -0
- package/dist/esm/api/resources/humanApiContacts/types/RemoveMyContactResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/types/ResolveHandleResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiContacts/types/ResolveHandleResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiContacts/types/index.d.mts +10 -0
- package/dist/esm/api/resources/humanApiContacts/types/index.mjs +10 -0
- package/dist/esm/api/resources/humanApiMemories/client/Client.d.mts +131 -0
- package/dist/esm/api/resources/humanApiMemories/client/Client.mjs +389 -0
- package/dist/esm/api/resources/humanApiMemories/client/index.d.mts +1 -0
- package/dist/esm/api/resources/humanApiMemories/client/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiMemories/client/requests/ListUserMemoriesRequest.d.mts +31 -0
- package/dist/esm/api/resources/humanApiMemories/client/requests/ListUserMemoriesRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiMemories/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/humanApiMemories/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiMemories/exports.d.mts +2 -0
- package/dist/esm/api/resources/humanApiMemories/exports.mjs +3 -0
- package/dist/esm/api/resources/humanApiMemories/index.d.mts +2 -0
- package/dist/esm/api/resources/humanApiMemories/index.mjs +2 -0
- package/dist/esm/api/resources/humanApiMemories/types/ArchiveUserMemoryResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiMemories/types/ArchiveUserMemoryResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiMemories/types/GetUserMemoryResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiMemories/types/GetUserMemoryResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiMemories/types/ListUserMemoriesResponse.d.mts +13 -0
- package/dist/esm/api/resources/humanApiMemories/types/ListUserMemoriesResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiMemories/types/RestoreUserMemoryResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiMemories/types/RestoreUserMemoryResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiMemories/types/SupersedeUserMemoryResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiMemories/types/SupersedeUserMemoryResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiMemories/types/index.d.mts +5 -0
- package/dist/esm/api/resources/humanApiMemories/types/index.mjs +5 -0
- package/dist/esm/api/resources/humanApiMessages/client/Client.d.mts +97 -0
- package/dist/esm/api/resources/humanApiMessages/client/Client.mjs +200 -0
- package/dist/esm/api/resources/humanApiMessages/client/index.d.mts +1 -0
- package/dist/esm/api/resources/humanApiMessages/client/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiMessages/client/requests/ListMyChatMessagesRequest.d.mts +26 -0
- package/dist/esm/api/resources/humanApiMessages/client/requests/ListMyChatMessagesRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiMessages/client/requests/SendMyChatMessageRequest.d.mts +15 -0
- package/dist/esm/api/resources/humanApiMessages/client/requests/SendMyChatMessageRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiMessages/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/humanApiMessages/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiMessages/exports.d.mts +2 -0
- package/dist/esm/api/resources/humanApiMessages/exports.mjs +3 -0
- package/dist/esm/api/resources/humanApiMessages/index.d.mts +2 -0
- package/dist/esm/api/resources/humanApiMessages/index.mjs +2 -0
- package/dist/esm/api/resources/humanApiMessages/types/ListMyChatMessagesRequestMessageType.d.mts +10 -0
- package/dist/esm/api/resources/humanApiMessages/types/ListMyChatMessagesRequestMessageType.mjs +10 -0
- package/dist/esm/api/resources/humanApiMessages/types/ListMyChatMessagesResponse.d.mts +23 -0
- package/dist/esm/api/resources/humanApiMessages/types/ListMyChatMessagesResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiMessages/types/SendMyChatMessageResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiMessages/types/SendMyChatMessageResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiMessages/types/index.d.mts +3 -0
- package/dist/esm/api/resources/humanApiMessages/types/index.mjs +3 -0
- package/dist/esm/api/resources/humanApiParticipants/client/Client.d.mts +84 -0
- package/dist/esm/api/resources/humanApiParticipants/client/Client.mjs +227 -0
- package/dist/esm/api/resources/humanApiParticipants/client/index.d.mts +1 -0
- package/dist/esm/api/resources/humanApiParticipants/client/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiParticipants/client/requests/AddMyChatParticipantRequest.d.mts +12 -0
- package/dist/esm/api/resources/humanApiParticipants/client/requests/AddMyChatParticipantRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiParticipants/client/requests/ListMyChatParticipantsRequest.d.mts +23 -0
- package/dist/esm/api/resources/humanApiParticipants/client/requests/ListMyChatParticipantsRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiParticipants/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/humanApiParticipants/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiParticipants/exports.d.mts +2 -0
- package/dist/esm/api/resources/humanApiParticipants/exports.mjs +3 -0
- package/dist/esm/api/resources/humanApiParticipants/index.d.mts +2 -0
- package/dist/esm/api/resources/humanApiParticipants/index.mjs +2 -0
- package/dist/esm/api/resources/humanApiParticipants/types/AddMyChatParticipantResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiParticipants/types/AddMyChatParticipantResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiParticipants/types/ListMyChatParticipantsRequestParticipantType.d.mts +5 -0
- package/dist/esm/api/resources/humanApiParticipants/types/ListMyChatParticipantsRequestParticipantType.mjs +5 -0
- package/dist/esm/api/resources/humanApiParticipants/types/ListMyChatParticipantsResponse.d.mts +23 -0
- package/dist/esm/api/resources/humanApiParticipants/types/ListMyChatParticipantsResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiParticipants/types/RemoveMyChatParticipantResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiParticipants/types/RemoveMyChatParticipantResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiParticipants/types/index.d.mts +4 -0
- package/dist/esm/api/resources/humanApiParticipants/types/index.mjs +4 -0
- package/dist/esm/api/resources/humanApiPeers/client/Client.d.mts +46 -0
- package/dist/esm/api/resources/humanApiPeers/client/Client.mjs +103 -0
- package/dist/esm/api/resources/humanApiPeers/client/index.d.mts +1 -0
- package/dist/esm/api/resources/humanApiPeers/client/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiPeers/client/requests/ListMyPeersRequest.d.mts +20 -0
- package/dist/esm/api/resources/humanApiPeers/client/requests/ListMyPeersRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiPeers/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/humanApiPeers/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiPeers/exports.d.mts +2 -0
- package/dist/esm/api/resources/humanApiPeers/exports.mjs +3 -0
- package/dist/esm/api/resources/humanApiPeers/index.d.mts +2 -0
- package/dist/esm/api/resources/humanApiPeers/index.mjs +2 -0
- package/dist/esm/api/resources/humanApiPeers/types/ListMyPeersRequestType.d.mts +5 -0
- package/dist/esm/api/resources/humanApiPeers/types/ListMyPeersRequestType.mjs +5 -0
- package/dist/esm/api/resources/humanApiPeers/types/ListMyPeersResponse.d.mts +13 -0
- package/dist/esm/api/resources/humanApiPeers/types/ListMyPeersResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiPeers/types/index.d.mts +2 -0
- package/dist/esm/api/resources/humanApiPeers/types/index.mjs +2 -0
- package/dist/esm/api/resources/humanApiProfile/client/Client.d.mts +46 -0
- package/dist/esm/api/resources/humanApiProfile/client/Client.mjs +134 -0
- package/dist/esm/api/resources/humanApiProfile/client/index.d.mts +1 -0
- package/dist/esm/api/resources/humanApiProfile/client/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiProfile/client/requests/UpdateMyProfileRequest.d.mts +21 -0
- package/dist/esm/api/resources/humanApiProfile/client/requests/UpdateMyProfileRequest.mjs +2 -0
- package/dist/esm/api/resources/humanApiProfile/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/humanApiProfile/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/humanApiProfile/exports.d.mts +2 -0
- package/dist/esm/api/resources/humanApiProfile/exports.mjs +3 -0
- package/dist/esm/api/resources/humanApiProfile/index.d.mts +2 -0
- package/dist/esm/api/resources/humanApiProfile/index.mjs +2 -0
- package/dist/esm/api/resources/humanApiProfile/types/GetMyProfileResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiProfile/types/GetMyProfileResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiProfile/types/UpdateMyProfileResponse.d.mts +4 -0
- package/dist/esm/api/resources/humanApiProfile/types/UpdateMyProfileResponse.mjs +2 -0
- package/dist/esm/api/resources/humanApiProfile/types/index.d.mts +2 -0
- package/dist/esm/api/resources/humanApiProfile/types/index.mjs +2 -0
- package/dist/esm/api/resources/index.d.mts +27 -0
- package/dist/esm/api/resources/index.mjs +27 -0
- package/dist/esm/api/types/AgentActivityResponse.d.mts +7 -0
- package/dist/esm/api/types/AgentActivityResponse.mjs +2 -0
- package/dist/esm/api/types/AgentRegisterRequest.d.mts +9 -0
- package/dist/esm/api/types/AgentRegisterRequest.mjs +2 -0
- package/dist/esm/api/types/ChatParticipantDetails.d.mts +29 -0
- package/dist/esm/api/types/ChatParticipantDetails.mjs +9 -0
- package/dist/esm/api/types/Contact.d.mts +41 -0
- package/dist/esm/api/types/Contact.mjs +9 -0
- package/dist/esm/api/types/ContactRequest.d.mts +68 -0
- package/dist/esm/api/types/ContactRequest.mjs +22 -0
- package/dist/esm/api/types/ContactRequestActionResponse.d.mts +18 -0
- package/dist/esm/api/types/ContactRequestActionResponse.mjs +10 -0
- package/dist/esm/api/types/MeChatRoom.d.mts +35 -0
- package/dist/esm/api/types/MeChatRoom.mjs +16 -0
- package/dist/esm/api/types/MyAgent.d.mts +29 -0
- package/dist/esm/api/types/MyAgent.mjs +2 -0
- package/dist/esm/api/types/ResolvedEntity.d.mts +21 -0
- package/dist/esm/api/types/ResolvedEntity.mjs +9 -0
- package/dist/esm/api/types/UserDetails.d.mts +25 -0
- package/dist/esm/api/types/UserDetails.mjs +9 -0
- package/dist/esm/api/types/UserMemory.d.mts +73 -0
- package/dist/esm/api/types/UserMemory.mjs +37 -0
- package/dist/esm/api/types/index.d.mts +11 -0
- package/dist/esm/api/types/index.mjs +11 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +142 -43
- package/reference.md +2650 -472
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as Band from "../../../index.js";
|
|
5
|
+
export declare namespace HumanApiMessagesClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Send and receive messages in chat rooms.
|
|
12
|
+
*/
|
|
13
|
+
export declare class HumanApiMessagesClient {
|
|
14
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<HumanApiMessagesClient.Options>;
|
|
15
|
+
constructor(options: HumanApiMessagesClient.Options);
|
|
16
|
+
/**
|
|
17
|
+
* Returns a paginated list of ALL messages in a chat room where you are a participant.
|
|
18
|
+
*
|
|
19
|
+
* This includes all message types: text, tool_call, tool_result, thought, error, task.
|
|
20
|
+
* Messages are returned newest-first so page 1 contains the most recent results.
|
|
21
|
+
* Messages can be filtered by type and timestamp, and include pagination support.
|
|
22
|
+
*
|
|
23
|
+
* Use the `message_type` parameter to filter by specific type(s).
|
|
24
|
+
*
|
|
25
|
+
* ## Pagination
|
|
26
|
+
*
|
|
27
|
+
* Use `cursor` + `limit` for cursor-based pagination (recommended). The response
|
|
28
|
+
* `metadata` includes `next_cursor` and `has_more`.
|
|
29
|
+
*
|
|
30
|
+
* Note: `since` and `cursor` cannot be combined. Use one or the other.
|
|
31
|
+
*
|
|
32
|
+
* `page` and `page_size` are deprecated and will be removed in API 2.0.0 (2026-10-01).
|
|
33
|
+
*
|
|
34
|
+
* Returns 404 if the chat room doesn't exist or you're not a participant (security-first: doesn't leak room existence).
|
|
35
|
+
*
|
|
36
|
+
* @param {string} chat_id - Chat Room ID
|
|
37
|
+
* @param {Band.ListMyChatMessagesRequest} request
|
|
38
|
+
* @param {HumanApiMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link Band.UnauthorizedError}
|
|
41
|
+
* @throws {@link Band.NotFoundError}
|
|
42
|
+
* @throws {@link Band.UnprocessableEntityError}
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await client.humanApiMessages.listMyChatMessages("daca00d0-eb6b-4db1-8201-c46015c93d04", {
|
|
46
|
+
* cursor: "cursor",
|
|
47
|
+
* limit: 1,
|
|
48
|
+
* page: 1,
|
|
49
|
+
* page_size: 1,
|
|
50
|
+
* message_type: "text",
|
|
51
|
+
* since: "2025-10-14T15:00:00Z"
|
|
52
|
+
* })
|
|
53
|
+
*/
|
|
54
|
+
listMyChatMessages(chat_id: string, request?: Band.ListMyChatMessagesRequest, requestOptions?: HumanApiMessagesClient.RequestOptions): core.HttpResponsePromise<Band.ListMyChatMessagesResponse>;
|
|
55
|
+
private __listMyChatMessages;
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new text message in a chat room. The user must be a participant in the room.
|
|
58
|
+
*
|
|
59
|
+
* This endpoint only supports `text` message type. For event-type messages
|
|
60
|
+
* (tool_call, tool_result, thought, system, error, action, guidelines, task),
|
|
61
|
+
* use `POST /me/chats/{chat_id}/events` instead.
|
|
62
|
+
*
|
|
63
|
+
* Messages must include at least one @mention to ensure proper routing to recipients.
|
|
64
|
+
*
|
|
65
|
+
* Example request:
|
|
66
|
+
* ```json
|
|
67
|
+
* {
|
|
68
|
+
* "message": {
|
|
69
|
+
* "content": "@agent.assistant please help me with this task",
|
|
70
|
+
* "mentions": [
|
|
71
|
+
* {"id": "agent-uuid", "handle": "agent.assistant", "name": "Agent Assistant"}
|
|
72
|
+
* ]
|
|
73
|
+
* }
|
|
74
|
+
* }
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @param {string} chat_id - Chat Room ID
|
|
78
|
+
* @param {Band.SendMyChatMessageRequest} request
|
|
79
|
+
* @param {HumanApiMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link Band.UnauthorizedError}
|
|
82
|
+
* @throws {@link Band.NotFoundError}
|
|
83
|
+
* @throws {@link Band.UnprocessableEntityError}
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* await client.humanApiMessages.sendMyChatMessage("daca00d0-eb6b-4db1-8201-c46015c93d04", {
|
|
87
|
+
* message: {
|
|
88
|
+
* content: "@DataAnalyst please analyze the Q4 sales data",
|
|
89
|
+
* mentions: [{
|
|
90
|
+
* id: "id"
|
|
91
|
+
* }]
|
|
92
|
+
* }
|
|
93
|
+
* })
|
|
94
|
+
*/
|
|
95
|
+
sendMyChatMessage(chat_id: string, request: Band.SendMyChatMessageRequest, requestOptions?: HumanApiMessagesClient.RequestOptions): core.HttpResponsePromise<Band.SendMyChatMessageResponse>;
|
|
96
|
+
private __sendMyChatMessage;
|
|
97
|
+
}
|
|
@@ -0,0 +1,237 @@
|
|
|
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.HumanApiMessagesClient = 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 and receive messages in chat rooms.
|
|
56
|
+
*/
|
|
57
|
+
class HumanApiMessagesClient {
|
|
58
|
+
constructor(options) {
|
|
59
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Returns a paginated list of ALL messages in a chat room where you are a participant.
|
|
63
|
+
*
|
|
64
|
+
* This includes all message types: text, tool_call, tool_result, thought, error, task.
|
|
65
|
+
* Messages are returned newest-first so page 1 contains the most recent results.
|
|
66
|
+
* Messages can be filtered by type and timestamp, and include pagination support.
|
|
67
|
+
*
|
|
68
|
+
* Use the `message_type` parameter to filter by specific type(s).
|
|
69
|
+
*
|
|
70
|
+
* ## Pagination
|
|
71
|
+
*
|
|
72
|
+
* Use `cursor` + `limit` for cursor-based pagination (recommended). The response
|
|
73
|
+
* `metadata` includes `next_cursor` and `has_more`.
|
|
74
|
+
*
|
|
75
|
+
* Note: `since` and `cursor` cannot be combined. Use one or the other.
|
|
76
|
+
*
|
|
77
|
+
* `page` and `page_size` are deprecated and will be removed in API 2.0.0 (2026-10-01).
|
|
78
|
+
*
|
|
79
|
+
* Returns 404 if the chat room doesn't exist or you're not a participant (security-first: doesn't leak room existence).
|
|
80
|
+
*
|
|
81
|
+
* @param {string} chat_id - Chat Room ID
|
|
82
|
+
* @param {Band.ListMyChatMessagesRequest} request
|
|
83
|
+
* @param {HumanApiMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link Band.UnauthorizedError}
|
|
86
|
+
* @throws {@link Band.NotFoundError}
|
|
87
|
+
* @throws {@link Band.UnprocessableEntityError}
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* await client.humanApiMessages.listMyChatMessages("daca00d0-eb6b-4db1-8201-c46015c93d04", {
|
|
91
|
+
* cursor: "cursor",
|
|
92
|
+
* limit: 1,
|
|
93
|
+
* page: 1,
|
|
94
|
+
* page_size: 1,
|
|
95
|
+
* message_type: "text",
|
|
96
|
+
* since: "2025-10-14T15:00:00Z"
|
|
97
|
+
* })
|
|
98
|
+
*/
|
|
99
|
+
listMyChatMessages(chat_id, request = {}, requestOptions) {
|
|
100
|
+
return core.HttpResponsePromise.fromPromise(this.__listMyChatMessages(chat_id, request, requestOptions));
|
|
101
|
+
}
|
|
102
|
+
__listMyChatMessages(chat_id_1) {
|
|
103
|
+
return __awaiter(this, arguments, void 0, function* (chat_id, request = {}, requestOptions) {
|
|
104
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
105
|
+
const { cursor, limit, page, page_size: pageSize, message_type: messageType, since } = request;
|
|
106
|
+
const _queryParams = {
|
|
107
|
+
cursor,
|
|
108
|
+
limit,
|
|
109
|
+
page,
|
|
110
|
+
page_size: pageSize,
|
|
111
|
+
message_type: messageType != null ? messageType : undefined,
|
|
112
|
+
since: since != null ? since : undefined,
|
|
113
|
+
};
|
|
114
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
115
|
+
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);
|
|
116
|
+
const _response = yield core.fetcher({
|
|
117
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BandEnvironment.Default, `api/v1/me/chats/${core.url.encodePathParam(chat_id)}/messages`),
|
|
118
|
+
method: "GET",
|
|
119
|
+
headers: _headers,
|
|
120
|
+
queryString: core.url
|
|
121
|
+
.queryBuilder()
|
|
122
|
+
.addMany(_queryParams)
|
|
123
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
124
|
+
.build(),
|
|
125
|
+
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,
|
|
126
|
+
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,
|
|
127
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
128
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
129
|
+
logging: this._options.logging,
|
|
130
|
+
});
|
|
131
|
+
if (_response.ok) {
|
|
132
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
133
|
+
}
|
|
134
|
+
if (_response.error.reason === "status-code") {
|
|
135
|
+
switch (_response.error.statusCode) {
|
|
136
|
+
case 401:
|
|
137
|
+
throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
138
|
+
case 404:
|
|
139
|
+
throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
|
|
140
|
+
case 422:
|
|
141
|
+
throw new Band.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
142
|
+
default:
|
|
143
|
+
throw new errors.BandError({
|
|
144
|
+
statusCode: _response.error.statusCode,
|
|
145
|
+
body: _response.error.body,
|
|
146
|
+
rawResponse: _response.rawResponse,
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/v1/me/chats/{chat_id}/messages");
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Creates a new text message in a chat room. The user must be a participant in the room.
|
|
155
|
+
*
|
|
156
|
+
* This endpoint only supports `text` message type. For event-type messages
|
|
157
|
+
* (tool_call, tool_result, thought, system, error, action, guidelines, task),
|
|
158
|
+
* use `POST /me/chats/{chat_id}/events` instead.
|
|
159
|
+
*
|
|
160
|
+
* Messages must include at least one @mention to ensure proper routing to recipients.
|
|
161
|
+
*
|
|
162
|
+
* Example request:
|
|
163
|
+
* ```json
|
|
164
|
+
* {
|
|
165
|
+
* "message": {
|
|
166
|
+
* "content": "@agent.assistant please help me with this task",
|
|
167
|
+
* "mentions": [
|
|
168
|
+
* {"id": "agent-uuid", "handle": "agent.assistant", "name": "Agent Assistant"}
|
|
169
|
+
* ]
|
|
170
|
+
* }
|
|
171
|
+
* }
|
|
172
|
+
* ```
|
|
173
|
+
*
|
|
174
|
+
* @param {string} chat_id - Chat Room ID
|
|
175
|
+
* @param {Band.SendMyChatMessageRequest} request
|
|
176
|
+
* @param {HumanApiMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
177
|
+
*
|
|
178
|
+
* @throws {@link Band.UnauthorizedError}
|
|
179
|
+
* @throws {@link Band.NotFoundError}
|
|
180
|
+
* @throws {@link Band.UnprocessableEntityError}
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* await client.humanApiMessages.sendMyChatMessage("daca00d0-eb6b-4db1-8201-c46015c93d04", {
|
|
184
|
+
* message: {
|
|
185
|
+
* content: "@DataAnalyst please analyze the Q4 sales data",
|
|
186
|
+
* mentions: [{
|
|
187
|
+
* id: "id"
|
|
188
|
+
* }]
|
|
189
|
+
* }
|
|
190
|
+
* })
|
|
191
|
+
*/
|
|
192
|
+
sendMyChatMessage(chat_id, request, requestOptions) {
|
|
193
|
+
return core.HttpResponsePromise.fromPromise(this.__sendMyChatMessage(chat_id, request, requestOptions));
|
|
194
|
+
}
|
|
195
|
+
__sendMyChatMessage(chat_id, request, requestOptions) {
|
|
196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
198
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
199
|
+
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);
|
|
200
|
+
const _response = yield core.fetcher({
|
|
201
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BandEnvironment.Default, `api/v1/me/chats/${core.url.encodePathParam(chat_id)}/messages`),
|
|
202
|
+
method: "POST",
|
|
203
|
+
headers: _headers,
|
|
204
|
+
contentType: "application/json",
|
|
205
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
206
|
+
requestType: "json",
|
|
207
|
+
body: request,
|
|
208
|
+
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,
|
|
209
|
+
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,
|
|
210
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
211
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
212
|
+
logging: this._options.logging,
|
|
213
|
+
});
|
|
214
|
+
if (_response.ok) {
|
|
215
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
216
|
+
}
|
|
217
|
+
if (_response.error.reason === "status-code") {
|
|
218
|
+
switch (_response.error.statusCode) {
|
|
219
|
+
case 401:
|
|
220
|
+
throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
221
|
+
case 404:
|
|
222
|
+
throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
|
|
223
|
+
case 422:
|
|
224
|
+
throw new Band.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
225
|
+
default:
|
|
226
|
+
throw new errors.BandError({
|
|
227
|
+
statusCode: _response.error.statusCode,
|
|
228
|
+
body: _response.error.body,
|
|
229
|
+
rawResponse: _response.rawResponse,
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/api/v1/me/chats/{chat_id}/messages");
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
exports.HumanApiMessagesClient = HumanApiMessagesClient;
|
|
@@ -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);
|
package/dist/cjs/api/resources/humanApiMessages/client/requests/ListMyChatMessagesRequest.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as Band from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* cursor: "cursor",
|
|
6
|
+
* limit: 1,
|
|
7
|
+
* page: 1,
|
|
8
|
+
* page_size: 1,
|
|
9
|
+
* message_type: "text",
|
|
10
|
+
* since: "2025-10-14T15:00:00Z"
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface ListMyChatMessagesRequest {
|
|
14
|
+
/** Cursor for keyset pagination (from previous response next_cursor) */
|
|
15
|
+
cursor?: string;
|
|
16
|
+
/** Items per page for cursor pagination (default: 20, max: 100) */
|
|
17
|
+
limit?: number;
|
|
18
|
+
/** Page number (deprecated — use cursor) */
|
|
19
|
+
page?: number;
|
|
20
|
+
/** Items per page (deprecated — use limit) */
|
|
21
|
+
page_size?: number;
|
|
22
|
+
/** Filter by message type (text, tool_call, tool_result, thought, error, task) */
|
|
23
|
+
message_type?: Band.ListMyChatMessagesRequestMessageType;
|
|
24
|
+
/** Filter messages after this timestamp (cannot be combined with cursor) */
|
|
25
|
+
since?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Band from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* message: {
|
|
6
|
+
* content: "@DataAnalyst please analyze the Q4 sales data",
|
|
7
|
+
* mentions: [{
|
|
8
|
+
* id: "id"
|
|
9
|
+
* }]
|
|
10
|
+
* }
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface SendMyChatMessageRequest {
|
|
14
|
+
message: Band.ChatMessageRequest;
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.HumanApiMessagesClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "HumanApiMessagesClient", { enumerable: true, get: function () { return Client_js_1.HumanApiMessagesClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./types/index.js"), exports);
|
package/dist/cjs/api/resources/humanApiMessages/types/ListMyChatMessagesRequestMessageType.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Filter by message type */
|
|
2
|
+
export declare const ListMyChatMessagesRequestMessageType: {
|
|
3
|
+
readonly Text: "text";
|
|
4
|
+
readonly ToolCall: "tool_call";
|
|
5
|
+
readonly ToolResult: "tool_result";
|
|
6
|
+
readonly Thought: "thought";
|
|
7
|
+
readonly Error: "error";
|
|
8
|
+
readonly Task: "task";
|
|
9
|
+
};
|
|
10
|
+
export type ListMyChatMessagesRequestMessageType = (typeof ListMyChatMessagesRequestMessageType)[keyof typeof ListMyChatMessagesRequestMessageType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ListMyChatMessagesRequestMessageType = void 0;
|
|
5
|
+
/** Filter by message type */
|
|
6
|
+
exports.ListMyChatMessagesRequestMessageType = {
|
|
7
|
+
Text: "text",
|
|
8
|
+
ToolCall: "tool_call",
|
|
9
|
+
ToolResult: "tool_result",
|
|
10
|
+
Thought: "thought",
|
|
11
|
+
Error: "error",
|
|
12
|
+
Task: "task",
|
|
13
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Band from "../../../index.js";
|
|
2
|
+
export interface ListMyChatMessagesResponse {
|
|
3
|
+
data: Band.ChatMessage[];
|
|
4
|
+
metadata: ListMyChatMessagesResponse.Metadata;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace ListMyChatMessagesResponse {
|
|
7
|
+
interface Metadata {
|
|
8
|
+
/** Whether more pages exist */
|
|
9
|
+
has_more: boolean;
|
|
10
|
+
/** Page size used */
|
|
11
|
+
limit: number;
|
|
12
|
+
/** Cursor for next page */
|
|
13
|
+
next_cursor?: string | undefined;
|
|
14
|
+
/** Current page (deprecated) */
|
|
15
|
+
page?: number | undefined;
|
|
16
|
+
/** Items per page (deprecated) */
|
|
17
|
+
page_size?: number | undefined;
|
|
18
|
+
/** Total messages (deprecated) */
|
|
19
|
+
total_count?: number | undefined;
|
|
20
|
+
/** Total pages (deprecated) */
|
|
21
|
+
total_pages?: number | undefined;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./ListMyChatMessagesRequestMessageType.js"), exports);
|
|
18
|
+
__exportStar(require("./ListMyChatMessagesResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./SendMyChatMessageResponse.js"), exports);
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as Band from "../../../index.js";
|
|
5
|
+
export declare namespace HumanApiParticipantsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Manage chat room participants as a human user.
|
|
12
|
+
*/
|
|
13
|
+
export declare class HumanApiParticipantsClient {
|
|
14
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<HumanApiParticipantsClient.Options>;
|
|
15
|
+
constructor(options: HumanApiParticipantsClient.Options);
|
|
16
|
+
/**
|
|
17
|
+
* Removes a participant from a chat room where you have permission to remove participants.
|
|
18
|
+
*
|
|
19
|
+
* Requires owner or admin role in the chat room.
|
|
20
|
+
*
|
|
21
|
+
* @param {string} chat_id - Chat Room ID
|
|
22
|
+
* @param {string} id - Participant ID
|
|
23
|
+
* @param {HumanApiParticipantsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
|
+
*
|
|
25
|
+
* @throws {@link Band.UnauthorizedError}
|
|
26
|
+
* @throws {@link Band.ForbiddenError}
|
|
27
|
+
* @throws {@link Band.NotFoundError}
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* await client.humanApiParticipants.removeMyChatParticipant("daca00d0-eb6b-4db1-8201-c46015c93d04", "3af67556-0466-4437-9a92-7d7566796457")
|
|
31
|
+
*/
|
|
32
|
+
removeMyChatParticipant(chat_id: string, id: string, requestOptions?: HumanApiParticipantsClient.RequestOptions): core.HttpResponsePromise<Band.RemoveMyChatParticipantResponse>;
|
|
33
|
+
private __removeMyChatParticipant;
|
|
34
|
+
/**
|
|
35
|
+
* Returns a list of participants in a chat room where you are a participant.
|
|
36
|
+
*
|
|
37
|
+
* Returns 404 if the chat room doesn't exist or you're not a participant
|
|
38
|
+
* (security-first: doesn't leak room existence).
|
|
39
|
+
*
|
|
40
|
+
* @param {string} chat_id - Chat Room ID
|
|
41
|
+
* @param {Band.ListMyChatParticipantsRequest} request
|
|
42
|
+
* @param {HumanApiParticipantsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
|
+
*
|
|
44
|
+
* @throws {@link Band.UnauthorizedError}
|
|
45
|
+
* @throws {@link Band.ForbiddenError}
|
|
46
|
+
* @throws {@link Band.NotFoundError}
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.humanApiParticipants.listMyChatParticipants("daca00d0-eb6b-4db1-8201-c46015c93d04", {
|
|
50
|
+
* participant_type: "User",
|
|
51
|
+
* cursor: "cursor",
|
|
52
|
+
* limit: 1,
|
|
53
|
+
* page: 1,
|
|
54
|
+
* page_size: 1
|
|
55
|
+
* })
|
|
56
|
+
*/
|
|
57
|
+
listMyChatParticipants(chat_id: string, request?: Band.ListMyChatParticipantsRequest, requestOptions?: HumanApiParticipantsClient.RequestOptions): core.HttpResponsePromise<Band.ListMyChatParticipantsResponse>;
|
|
58
|
+
private __listMyChatParticipants;
|
|
59
|
+
/**
|
|
60
|
+
* Adds a new participant to a chat room where you have permission to add participants.
|
|
61
|
+
*
|
|
62
|
+
* You can add:
|
|
63
|
+
* - Your own agents
|
|
64
|
+
* - Global agents
|
|
65
|
+
*
|
|
66
|
+
* @param {string} chat_id - Chat Room ID
|
|
67
|
+
* @param {Band.AddMyChatParticipantRequest} request
|
|
68
|
+
* @param {HumanApiParticipantsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link Band.UnauthorizedError}
|
|
71
|
+
* @throws {@link Band.ForbiddenError}
|
|
72
|
+
* @throws {@link Band.NotFoundError}
|
|
73
|
+
* @throws {@link Band.UnprocessableEntityError}
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* await client.humanApiParticipants.addMyChatParticipant("daca00d0-eb6b-4db1-8201-c46015c93d04", {
|
|
77
|
+
* participant: {
|
|
78
|
+
* participant_id: "participant_id"
|
|
79
|
+
* }
|
|
80
|
+
* })
|
|
81
|
+
*/
|
|
82
|
+
addMyChatParticipant(chat_id: string, request: Band.AddMyChatParticipantRequest, requestOptions?: HumanApiParticipantsClient.RequestOptions): core.HttpResponsePromise<Band.AddMyChatParticipantResponse>;
|
|
83
|
+
private __addMyChatParticipant;
|
|
84
|
+
}
|