@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
|
@@ -330,35 +330,40 @@ export class AgentApiMessagesClient {
|
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
332
|
/**
|
|
333
|
-
* Marks a message
|
|
334
|
-
*
|
|
333
|
+
* Marks a message as being processed by the agent. This creates a new processing attempt
|
|
334
|
+
* with a system-managed timestamp. The agent must be a participant in the chat room.
|
|
335
335
|
*
|
|
336
336
|
* ## What It Does
|
|
337
337
|
*
|
|
338
|
-
* -
|
|
339
|
-
* - Sets the
|
|
340
|
-
* - Records the
|
|
341
|
-
* - Updates the agent's delivery status to "
|
|
338
|
+
* - Creates a new attempt with auto-incremented attempt_number
|
|
339
|
+
* - Sets the attempt status to "processing"
|
|
340
|
+
* - Records the started_at timestamp (system-managed)
|
|
341
|
+
* - Updates the agent's delivery status to "processing"
|
|
342
342
|
*
|
|
343
|
-
* ##
|
|
343
|
+
* ## Multiple Calls
|
|
344
344
|
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
345
|
+
* This endpoint can be called multiple times on the same message. Each call creates
|
|
346
|
+
* a **new attempt**. This is intentional for crash recovery:
|
|
347
347
|
*
|
|
348
|
-
*
|
|
348
|
+
* 1. Agent calls `/processing` (attempt 1)
|
|
349
|
+
* 2. Agent crashes while processing
|
|
350
|
+
* 3. Agent restarts, calls `/next`, gets the same message back
|
|
351
|
+
* 4. Agent calls `/processing` again (attempt 2)
|
|
352
|
+
* 5. Agent completes processing, calls `/processed`
|
|
349
353
|
*
|
|
350
|
-
*
|
|
351
|
-
* - `GET /messages` (default - returns not processed)
|
|
352
|
-
* - `GET /messages/next` (available for retry)
|
|
353
|
-
* - `GET /messages?status=failed`
|
|
354
|
-
* - `GET /messages?status=all`
|
|
354
|
+
* The attempts array in the message metadata tracks the full history.
|
|
355
355
|
*
|
|
356
|
-
*
|
|
357
|
-
*
|
|
356
|
+
* ## Workflow
|
|
357
|
+
*
|
|
358
|
+
* Always call this endpoint before starting work on a message:
|
|
359
|
+
*
|
|
360
|
+
* 1. `GET /messages/next` → Get message
|
|
361
|
+
* 2. `POST /messages/{id}/processing` → **This endpoint**
|
|
362
|
+
* 3. Process the message
|
|
363
|
+
* 4. `POST /messages/{id}/processed` or `/failed`
|
|
358
364
|
*
|
|
359
365
|
* @param {string} chat_id - Chat Room ID
|
|
360
366
|
* @param {string} id - Message ID
|
|
361
|
-
* @param {Band.MarkAgentMessageFailedRequest} request
|
|
362
367
|
* @param {AgentApiMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
363
368
|
*
|
|
364
369
|
* @throws {@link Band.UnauthorizedError}
|
|
@@ -367,26 +372,21 @@ export class AgentApiMessagesClient {
|
|
|
367
372
|
* @throws {@link Band.UnprocessableEntityError}
|
|
368
373
|
*
|
|
369
374
|
* @example
|
|
370
|
-
* await client.agentApiMessages.
|
|
371
|
-
* error: "error"
|
|
372
|
-
* })
|
|
375
|
+
* await client.agentApiMessages.markAgentMessageProcessing("chat_id", "id")
|
|
373
376
|
*/
|
|
374
|
-
|
|
375
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
377
|
+
markAgentMessageProcessing(chat_id, id, requestOptions) {
|
|
378
|
+
return core.HttpResponsePromise.fromPromise(this.__markAgentMessageProcessing(chat_id, id, requestOptions));
|
|
376
379
|
}
|
|
377
|
-
|
|
380
|
+
__markAgentMessageProcessing(chat_id, id, requestOptions) {
|
|
378
381
|
return __awaiter(this, void 0, void 0, function* () {
|
|
379
382
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
380
383
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
381
384
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
382
385
|
const _response = yield core.fetcher({
|
|
383
|
-
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)}/
|
|
386
|
+
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`),
|
|
384
387
|
method: "POST",
|
|
385
388
|
headers: _headers,
|
|
386
|
-
contentType: "application/json",
|
|
387
389
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
388
|
-
requestType: "json",
|
|
389
|
-
body: request,
|
|
390
390
|
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,
|
|
391
391
|
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,
|
|
392
392
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -394,7 +394,10 @@ export class AgentApiMessagesClient {
|
|
|
394
394
|
logging: this._options.logging,
|
|
395
395
|
});
|
|
396
396
|
if (_response.ok) {
|
|
397
|
-
return {
|
|
397
|
+
return {
|
|
398
|
+
data: _response.body,
|
|
399
|
+
rawResponse: _response.rawResponse,
|
|
400
|
+
};
|
|
398
401
|
}
|
|
399
402
|
if (_response.error.reason === "status-code") {
|
|
400
403
|
switch (_response.error.statusCode) {
|
|
@@ -414,19 +417,19 @@ export class AgentApiMessagesClient {
|
|
|
414
417
|
});
|
|
415
418
|
}
|
|
416
419
|
}
|
|
417
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/agent/chats/{chat_id}/messages/{id}/
|
|
420
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/agent/chats/{chat_id}/messages/{id}/processing");
|
|
418
421
|
});
|
|
419
422
|
}
|
|
420
423
|
/**
|
|
421
|
-
* Marks a message as
|
|
422
|
-
* processing attempt with
|
|
424
|
+
* Marks a message processing as failed by the agent. This completes the current
|
|
425
|
+
* processing attempt with an error message and system-managed timestamp.
|
|
423
426
|
*
|
|
424
427
|
* ## What It Does
|
|
425
428
|
*
|
|
426
429
|
* - Sets the current attempt's completed_at timestamp (system-managed)
|
|
427
|
-
* - Sets the current attempt status to "
|
|
428
|
-
* -
|
|
429
|
-
* - Updates the agent's delivery status to "
|
|
430
|
+
* - Sets the current attempt status to "failed"
|
|
431
|
+
* - Records the error message in the current attempt
|
|
432
|
+
* - Updates the agent's delivery status to "failed"
|
|
430
433
|
*
|
|
431
434
|
* ## Requirements
|
|
432
435
|
*
|
|
@@ -435,17 +438,18 @@ export class AgentApiMessagesClient {
|
|
|
435
438
|
*
|
|
436
439
|
* ## After Calling
|
|
437
440
|
*
|
|
438
|
-
*
|
|
441
|
+
* Failed messages remain available for retry. They will appear in:
|
|
439
442
|
* - `GET /messages` (default - returns not processed)
|
|
440
|
-
* - `GET /messages/next`
|
|
441
|
-
* - `GET /messages?status=
|
|
442
|
-
*
|
|
443
|
-
* It will only appear in:
|
|
444
|
-
* - `GET /messages?status=processed`
|
|
443
|
+
* - `GET /messages/next` (available for retry)
|
|
444
|
+
* - `GET /messages?status=failed`
|
|
445
445
|
* - `GET /messages?status=all`
|
|
446
446
|
*
|
|
447
|
+
* To retry a failed message, simply call `/processing` again to create a new attempt,
|
|
448
|
+
* then `/processed` or `/failed` when done.
|
|
449
|
+
*
|
|
447
450
|
* @param {string} chat_id - Chat Room ID
|
|
448
451
|
* @param {string} id - Message ID
|
|
452
|
+
* @param {Band.MarkAgentMessageFailedRequest} request
|
|
449
453
|
* @param {AgentApiMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
450
454
|
*
|
|
451
455
|
* @throws {@link Band.UnauthorizedError}
|
|
@@ -454,21 +458,26 @@ export class AgentApiMessagesClient {
|
|
|
454
458
|
* @throws {@link Band.UnprocessableEntityError}
|
|
455
459
|
*
|
|
456
460
|
* @example
|
|
457
|
-
* await client.agentApiMessages.
|
|
461
|
+
* await client.agentApiMessages.markAgentMessageFailed("chat_id", "id", {
|
|
462
|
+
* error: "error"
|
|
463
|
+
* })
|
|
458
464
|
*/
|
|
459
|
-
|
|
460
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
465
|
+
markAgentMessageFailed(chat_id, id, request, requestOptions) {
|
|
466
|
+
return core.HttpResponsePromise.fromPromise(this.__markAgentMessageFailed(chat_id, id, request, requestOptions));
|
|
461
467
|
}
|
|
462
|
-
|
|
468
|
+
__markAgentMessageFailed(chat_id, id, request, requestOptions) {
|
|
463
469
|
return __awaiter(this, void 0, void 0, function* () {
|
|
464
470
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
465
471
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
466
472
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
467
473
|
const _response = yield core.fetcher({
|
|
468
|
-
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)}/
|
|
474
|
+
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`),
|
|
469
475
|
method: "POST",
|
|
470
476
|
headers: _headers,
|
|
477
|
+
contentType: "application/json",
|
|
471
478
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
479
|
+
requestType: "json",
|
|
480
|
+
body: request,
|
|
472
481
|
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,
|
|
473
482
|
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,
|
|
474
483
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -499,41 +508,35 @@ export class AgentApiMessagesClient {
|
|
|
499
508
|
});
|
|
500
509
|
}
|
|
501
510
|
}
|
|
502
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/agent/chats/{chat_id}/messages/{id}/
|
|
511
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/agent/chats/{chat_id}/messages/{id}/failed");
|
|
503
512
|
});
|
|
504
513
|
}
|
|
505
514
|
/**
|
|
506
|
-
* Marks a message as
|
|
507
|
-
* with a system-managed timestamp.
|
|
515
|
+
* Marks a message as successfully processed by the agent. This completes the current
|
|
516
|
+
* processing attempt with a system-managed timestamp.
|
|
508
517
|
*
|
|
509
518
|
* ## What It Does
|
|
510
519
|
*
|
|
511
|
-
* -
|
|
512
|
-
* - Sets the attempt status to "
|
|
513
|
-
* -
|
|
514
|
-
* - Updates the agent's delivery status to "
|
|
515
|
-
*
|
|
516
|
-
* ## Multiple Calls
|
|
517
|
-
*
|
|
518
|
-
* This endpoint can be called multiple times on the same message. Each call creates
|
|
519
|
-
* a **new attempt**. This is intentional for crash recovery:
|
|
520
|
+
* - Sets the current attempt's completed_at timestamp (system-managed)
|
|
521
|
+
* - Sets the current attempt status to "success"
|
|
522
|
+
* - Sets the agent's processed_at timestamp (system-managed)
|
|
523
|
+
* - Updates the agent's delivery status to "processed"
|
|
520
524
|
*
|
|
521
|
-
*
|
|
522
|
-
* 2. Agent crashes while processing
|
|
523
|
-
* 3. Agent restarts, calls `/next`, gets the same message back
|
|
524
|
-
* 4. Agent calls `/processing` again (attempt 2)
|
|
525
|
-
* 5. Agent completes processing, calls `/processed`
|
|
525
|
+
* ## Requirements
|
|
526
526
|
*
|
|
527
|
-
*
|
|
527
|
+
* **Requires an active processing attempt.** You must call `/processing` first.
|
|
528
|
+
* Returns 422 if no processing attempt exists.
|
|
528
529
|
*
|
|
529
|
-
* ##
|
|
530
|
+
* ## After Calling
|
|
530
531
|
*
|
|
531
|
-
*
|
|
532
|
+
* Once marked as processed, the message will no longer appear in:
|
|
533
|
+
* - `GET /messages` (default - returns not processed)
|
|
534
|
+
* - `GET /messages/next`
|
|
535
|
+
* - `GET /messages?status=pending`
|
|
532
536
|
*
|
|
533
|
-
*
|
|
534
|
-
*
|
|
535
|
-
*
|
|
536
|
-
* 4. `POST /messages/{id}/processed` or `/failed`
|
|
537
|
+
* It will only appear in:
|
|
538
|
+
* - `GET /messages?status=processed`
|
|
539
|
+
* - `GET /messages?status=all`
|
|
537
540
|
*
|
|
538
541
|
* @param {string} chat_id - Chat Room ID
|
|
539
542
|
* @param {string} id - Message ID
|
|
@@ -545,18 +548,18 @@ export class AgentApiMessagesClient {
|
|
|
545
548
|
* @throws {@link Band.UnprocessableEntityError}
|
|
546
549
|
*
|
|
547
550
|
* @example
|
|
548
|
-
* await client.agentApiMessages.
|
|
551
|
+
* await client.agentApiMessages.markAgentMessageProcessed("chat_id", "id")
|
|
549
552
|
*/
|
|
550
|
-
|
|
551
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
553
|
+
markAgentMessageProcessed(chat_id, id, requestOptions) {
|
|
554
|
+
return core.HttpResponsePromise.fromPromise(this.__markAgentMessageProcessed(chat_id, id, requestOptions));
|
|
552
555
|
}
|
|
553
|
-
|
|
556
|
+
__markAgentMessageProcessed(chat_id, id, requestOptions) {
|
|
554
557
|
return __awaiter(this, void 0, void 0, function* () {
|
|
555
558
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
556
559
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
557
560
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
558
561
|
const _response = yield core.fetcher({
|
|
559
|
-
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)}/
|
|
562
|
+
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`),
|
|
560
563
|
method: "POST",
|
|
561
564
|
headers: _headers,
|
|
562
565
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
@@ -590,7 +593,7 @@ export class AgentApiMessagesClient {
|
|
|
590
593
|
});
|
|
591
594
|
}
|
|
592
595
|
}
|
|
593
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/agent/chats/{chat_id}/messages/{id}/
|
|
596
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/agent/chats/{chat_id}/messages/{id}/processed");
|
|
594
597
|
});
|
|
595
598
|
}
|
|
596
599
|
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../core/index.mjs";
|
|
4
|
+
import * as Band from "../../../index.mjs";
|
|
5
|
+
export declare namespace HumanApiAgentsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Register and manage external agents owned by the user.
|
|
12
|
+
*/
|
|
13
|
+
export declare class HumanApiAgentsClient {
|
|
14
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<HumanApiAgentsClient.Options>;
|
|
15
|
+
constructor(options: HumanApiAgentsClient.Options);
|
|
16
|
+
/**
|
|
17
|
+
* Registers a new external agent and returns its API key.
|
|
18
|
+
*
|
|
19
|
+
* External agents run their own reasoning loop and connect to the platform
|
|
20
|
+
* to participate in chat rooms and execute tasks.
|
|
21
|
+
*
|
|
22
|
+
* **Important**: The API key is only shown once - store it securely.
|
|
23
|
+
*
|
|
24
|
+
* @param {Band.RegisterMyAgentRequest} request
|
|
25
|
+
* @param {HumanApiAgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
+
*
|
|
27
|
+
* @throws {@link Band.UnauthorizedError}
|
|
28
|
+
* @throws {@link Band.ForbiddenError}
|
|
29
|
+
* @throws {@link Band.UnprocessableEntityError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.humanApiAgents.registerMyAgent({
|
|
33
|
+
* agent: {
|
|
34
|
+
* description: "description",
|
|
35
|
+
* name: "name"
|
|
36
|
+
* }
|
|
37
|
+
* })
|
|
38
|
+
*/
|
|
39
|
+
registerMyAgent(request: Band.RegisterMyAgentRequest, requestOptions?: HumanApiAgentsClient.RequestOptions): core.HttpResponsePromise<Band.RegisterMyAgentResponse>;
|
|
40
|
+
private __registerMyAgent;
|
|
41
|
+
/**
|
|
42
|
+
* Returns a list of agents that you own (platform + external + your global agents).
|
|
43
|
+
*
|
|
44
|
+
* **Filtering** (`name`, `is_external`, `listed_in_directory`) and **sorting**
|
|
45
|
+
* (`sort` + `order`) are supported. `metadata.available_filters` and
|
|
46
|
+
* `metadata.sortable_fields` enumerate the valid options as KV pairs so a UI
|
|
47
|
+
* can bind to them without hard-coding (per the 2026-05-27 API directive).
|
|
48
|
+
*
|
|
49
|
+
* **Pagination:** prefer cursor pagination — pass `limit` (and `cursor` from the
|
|
50
|
+
* previous response's `metadata.next_cursor`). Offset pagination (`page` /
|
|
51
|
+
* `page_size`) still works but is **deprecated**; responses always include both
|
|
52
|
+
* metadata shapes during the transition.
|
|
53
|
+
*
|
|
54
|
+
* @param {Band.ListMyAgentsRequest} request
|
|
55
|
+
* @param {HumanApiAgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link Band.UnauthorizedError}
|
|
58
|
+
* @throws {@link Band.ForbiddenError}
|
|
59
|
+
* @throws {@link Band.UnprocessableEntityError}
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* await client.humanApiAgents.listMyAgents({
|
|
63
|
+
* name: "name",
|
|
64
|
+
* is_external: true,
|
|
65
|
+
* listed_in_directory: true,
|
|
66
|
+
* sort: "name",
|
|
67
|
+
* order: "asc",
|
|
68
|
+
* cursor: "cursor",
|
|
69
|
+
* limit: 1,
|
|
70
|
+
* page: 1,
|
|
71
|
+
* page_size: 1
|
|
72
|
+
* })
|
|
73
|
+
*/
|
|
74
|
+
listMyAgents(request?: Band.ListMyAgentsRequest, requestOptions?: HumanApiAgentsClient.RequestOptions): core.HttpResponsePromise<Band.ListMyAgentsResponse>;
|
|
75
|
+
private __listMyAgents;
|
|
76
|
+
/**
|
|
77
|
+
* Deletes an agent that you own.
|
|
78
|
+
*
|
|
79
|
+
* **Default behavior**: Returns 422 if agent has execution history.
|
|
80
|
+
* This protects audit trails and task history.
|
|
81
|
+
*
|
|
82
|
+
* **Force deletion** (`?force=true`): Deletes all execution history first,
|
|
83
|
+
* then deletes the agent. Use with caution - this is irreversible.
|
|
84
|
+
*
|
|
85
|
+
* Deletion will:
|
|
86
|
+
* - Revoke the agent's API key
|
|
87
|
+
* - Remove the agent from all chat rooms (soft delete)
|
|
88
|
+
* - Delete associated memories and tool configurations
|
|
89
|
+
* - With `force=true`: Delete all execution history
|
|
90
|
+
*
|
|
91
|
+
* @param {string} id - Agent ID
|
|
92
|
+
* @param {Band.DeleteMyAgentRequest} request
|
|
93
|
+
* @param {HumanApiAgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link Band.UnauthorizedError}
|
|
96
|
+
* @throws {@link Band.ForbiddenError}
|
|
97
|
+
* @throws {@link Band.NotFoundError}
|
|
98
|
+
* @throws {@link Band.UnprocessableEntityError}
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* await client.humanApiAgents.deleteMyAgent("550e8400-e29b-41d4-a716-446655440000", {
|
|
102
|
+
* force: true
|
|
103
|
+
* })
|
|
104
|
+
*/
|
|
105
|
+
deleteMyAgent(id: string, request?: Band.DeleteMyAgentRequest, requestOptions?: HumanApiAgentsClient.RequestOptions): core.HttpResponsePromise<Band.DeleteMyAgentResponse>;
|
|
106
|
+
private __deleteMyAgent;
|
|
107
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../core/index.mjs";
|
|
14
|
+
import * as environments from "../../../../environments.mjs";
|
|
15
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
17
|
+
import * as Band from "../../../index.mjs";
|
|
18
|
+
/**
|
|
19
|
+
* Register and manage external agents owned by the user.
|
|
20
|
+
*/
|
|
21
|
+
export class HumanApiAgentsClient {
|
|
22
|
+
constructor(options) {
|
|
23
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Registers a new external agent and returns its API key.
|
|
27
|
+
*
|
|
28
|
+
* External agents run their own reasoning loop and connect to the platform
|
|
29
|
+
* to participate in chat rooms and execute tasks.
|
|
30
|
+
*
|
|
31
|
+
* **Important**: The API key is only shown once - store it securely.
|
|
32
|
+
*
|
|
33
|
+
* @param {Band.RegisterMyAgentRequest} request
|
|
34
|
+
* @param {HumanApiAgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link Band.UnauthorizedError}
|
|
37
|
+
* @throws {@link Band.ForbiddenError}
|
|
38
|
+
* @throws {@link Band.UnprocessableEntityError}
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* await client.humanApiAgents.registerMyAgent({
|
|
42
|
+
* agent: {
|
|
43
|
+
* description: "description",
|
|
44
|
+
* name: "name"
|
|
45
|
+
* }
|
|
46
|
+
* })
|
|
47
|
+
*/
|
|
48
|
+
registerMyAgent(request, requestOptions) {
|
|
49
|
+
return core.HttpResponsePromise.fromPromise(this.__registerMyAgent(request, requestOptions));
|
|
50
|
+
}
|
|
51
|
+
__registerMyAgent(request, requestOptions) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
54
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
55
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
56
|
+
const _response = yield core.fetcher({
|
|
57
|
+
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/agents/register"),
|
|
58
|
+
method: "POST",
|
|
59
|
+
headers: _headers,
|
|
60
|
+
contentType: "application/json",
|
|
61
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
62
|
+
requestType: "json",
|
|
63
|
+
body: request,
|
|
64
|
+
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,
|
|
65
|
+
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,
|
|
66
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
67
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
68
|
+
logging: this._options.logging,
|
|
69
|
+
});
|
|
70
|
+
if (_response.ok) {
|
|
71
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
72
|
+
}
|
|
73
|
+
if (_response.error.reason === "status-code") {
|
|
74
|
+
switch (_response.error.statusCode) {
|
|
75
|
+
case 401:
|
|
76
|
+
throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
77
|
+
case 403:
|
|
78
|
+
throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
79
|
+
case 422:
|
|
80
|
+
throw new Band.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
81
|
+
default:
|
|
82
|
+
throw new errors.BandError({
|
|
83
|
+
statusCode: _response.error.statusCode,
|
|
84
|
+
body: _response.error.body,
|
|
85
|
+
rawResponse: _response.rawResponse,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/me/agents/register");
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Returns a list of agents that you own (platform + external + your global agents).
|
|
94
|
+
*
|
|
95
|
+
* **Filtering** (`name`, `is_external`, `listed_in_directory`) and **sorting**
|
|
96
|
+
* (`sort` + `order`) are supported. `metadata.available_filters` and
|
|
97
|
+
* `metadata.sortable_fields` enumerate the valid options as KV pairs so a UI
|
|
98
|
+
* can bind to them without hard-coding (per the 2026-05-27 API directive).
|
|
99
|
+
*
|
|
100
|
+
* **Pagination:** prefer cursor pagination — pass `limit` (and `cursor` from the
|
|
101
|
+
* previous response's `metadata.next_cursor`). Offset pagination (`page` /
|
|
102
|
+
* `page_size`) still works but is **deprecated**; responses always include both
|
|
103
|
+
* metadata shapes during the transition.
|
|
104
|
+
*
|
|
105
|
+
* @param {Band.ListMyAgentsRequest} request
|
|
106
|
+
* @param {HumanApiAgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link Band.UnauthorizedError}
|
|
109
|
+
* @throws {@link Band.ForbiddenError}
|
|
110
|
+
* @throws {@link Band.UnprocessableEntityError}
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* await client.humanApiAgents.listMyAgents({
|
|
114
|
+
* name: "name",
|
|
115
|
+
* is_external: true,
|
|
116
|
+
* listed_in_directory: true,
|
|
117
|
+
* sort: "name",
|
|
118
|
+
* order: "asc",
|
|
119
|
+
* cursor: "cursor",
|
|
120
|
+
* limit: 1,
|
|
121
|
+
* page: 1,
|
|
122
|
+
* page_size: 1
|
|
123
|
+
* })
|
|
124
|
+
*/
|
|
125
|
+
listMyAgents(request = {}, requestOptions) {
|
|
126
|
+
return core.HttpResponsePromise.fromPromise(this.__listMyAgents(request, requestOptions));
|
|
127
|
+
}
|
|
128
|
+
__listMyAgents() {
|
|
129
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
130
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
131
|
+
const { name, is_external: isExternal, listed_in_directory: listedInDirectory, sort, order, cursor, limit, page, page_size: pageSize, } = request;
|
|
132
|
+
const _queryParams = {
|
|
133
|
+
name,
|
|
134
|
+
is_external: isExternal,
|
|
135
|
+
listed_in_directory: listedInDirectory,
|
|
136
|
+
sort: sort != null ? sort : undefined,
|
|
137
|
+
order: order != null ? order : undefined,
|
|
138
|
+
cursor,
|
|
139
|
+
limit,
|
|
140
|
+
page,
|
|
141
|
+
page_size: pageSize,
|
|
142
|
+
};
|
|
143
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
144
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
145
|
+
const _response = yield core.fetcher({
|
|
146
|
+
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/agents"),
|
|
147
|
+
method: "GET",
|
|
148
|
+
headers: _headers,
|
|
149
|
+
queryString: core.url
|
|
150
|
+
.queryBuilder()
|
|
151
|
+
.addMany(_queryParams)
|
|
152
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
153
|
+
.build(),
|
|
154
|
+
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,
|
|
155
|
+
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,
|
|
156
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
157
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
158
|
+
logging: this._options.logging,
|
|
159
|
+
});
|
|
160
|
+
if (_response.ok) {
|
|
161
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
162
|
+
}
|
|
163
|
+
if (_response.error.reason === "status-code") {
|
|
164
|
+
switch (_response.error.statusCode) {
|
|
165
|
+
case 401:
|
|
166
|
+
throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
167
|
+
case 403:
|
|
168
|
+
throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
169
|
+
case 422:
|
|
170
|
+
throw new Band.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
171
|
+
default:
|
|
172
|
+
throw new errors.BandError({
|
|
173
|
+
statusCode: _response.error.statusCode,
|
|
174
|
+
body: _response.error.body,
|
|
175
|
+
rawResponse: _response.rawResponse,
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/me/agents");
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Deletes an agent that you own.
|
|
184
|
+
*
|
|
185
|
+
* **Default behavior**: Returns 422 if agent has execution history.
|
|
186
|
+
* This protects audit trails and task history.
|
|
187
|
+
*
|
|
188
|
+
* **Force deletion** (`?force=true`): Deletes all execution history first,
|
|
189
|
+
* then deletes the agent. Use with caution - this is irreversible.
|
|
190
|
+
*
|
|
191
|
+
* Deletion will:
|
|
192
|
+
* - Revoke the agent's API key
|
|
193
|
+
* - Remove the agent from all chat rooms (soft delete)
|
|
194
|
+
* - Delete associated memories and tool configurations
|
|
195
|
+
* - With `force=true`: Delete all execution history
|
|
196
|
+
*
|
|
197
|
+
* @param {string} id - Agent ID
|
|
198
|
+
* @param {Band.DeleteMyAgentRequest} request
|
|
199
|
+
* @param {HumanApiAgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
200
|
+
*
|
|
201
|
+
* @throws {@link Band.UnauthorizedError}
|
|
202
|
+
* @throws {@link Band.ForbiddenError}
|
|
203
|
+
* @throws {@link Band.NotFoundError}
|
|
204
|
+
* @throws {@link Band.UnprocessableEntityError}
|
|
205
|
+
*
|
|
206
|
+
* @example
|
|
207
|
+
* await client.humanApiAgents.deleteMyAgent("550e8400-e29b-41d4-a716-446655440000", {
|
|
208
|
+
* force: true
|
|
209
|
+
* })
|
|
210
|
+
*/
|
|
211
|
+
deleteMyAgent(id, request = {}, requestOptions) {
|
|
212
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteMyAgent(id, request, requestOptions));
|
|
213
|
+
}
|
|
214
|
+
__deleteMyAgent(id_1) {
|
|
215
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
216
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
217
|
+
const { force } = request;
|
|
218
|
+
const _queryParams = {
|
|
219
|
+
force,
|
|
220
|
+
};
|
|
221
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
222
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
223
|
+
const _response = yield core.fetcher({
|
|
224
|
+
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/agents/${core.url.encodePathParam(id)}`),
|
|
225
|
+
method: "DELETE",
|
|
226
|
+
headers: _headers,
|
|
227
|
+
queryString: core.url
|
|
228
|
+
.queryBuilder()
|
|
229
|
+
.addMany(_queryParams)
|
|
230
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
231
|
+
.build(),
|
|
232
|
+
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,
|
|
233
|
+
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,
|
|
234
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
235
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
236
|
+
logging: this._options.logging,
|
|
237
|
+
});
|
|
238
|
+
if (_response.ok) {
|
|
239
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
240
|
+
}
|
|
241
|
+
if (_response.error.reason === "status-code") {
|
|
242
|
+
switch (_response.error.statusCode) {
|
|
243
|
+
case 401:
|
|
244
|
+
throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
245
|
+
case 403:
|
|
246
|
+
throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
247
|
+
case 404:
|
|
248
|
+
throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
|
|
249
|
+
case 422:
|
|
250
|
+
throw new Band.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
251
|
+
default:
|
|
252
|
+
throw new errors.BandError({
|
|
253
|
+
statusCode: _response.error.statusCode,
|
|
254
|
+
body: _response.error.body,
|
|
255
|
+
rawResponse: _response.rawResponse,
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/api/v1/me/agents/{id}");
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|