@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
|
@@ -23,42 +23,31 @@ export class AgentApiChatsClient {
|
|
|
23
23
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Returns details of a specific chat room where the agent is a participant
|
|
27
27
|
*
|
|
28
|
-
* @param {
|
|
28
|
+
* @param {string} id - Chat Room ID
|
|
29
29
|
* @param {AgentApiChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
30
|
*
|
|
31
31
|
* @throws {@link Band.UnauthorizedError}
|
|
32
32
|
* @throws {@link Band.ForbiddenError}
|
|
33
|
+
* @throws {@link Band.NotFoundError}
|
|
33
34
|
*
|
|
34
35
|
* @example
|
|
35
|
-
* await client.agentApiChats.
|
|
36
|
-
* page: 1,
|
|
37
|
-
* page_size: 1
|
|
38
|
-
* })
|
|
36
|
+
* await client.agentApiChats.getAgentChat("id")
|
|
39
37
|
*/
|
|
40
|
-
|
|
41
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
38
|
+
getAgentChat(id, requestOptions) {
|
|
39
|
+
return core.HttpResponsePromise.fromPromise(this.__getAgentChat(id, requestOptions));
|
|
42
40
|
}
|
|
43
|
-
|
|
44
|
-
return __awaiter(this,
|
|
41
|
+
__getAgentChat(id, requestOptions) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
45
43
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
46
|
-
const { page, page_size: pageSize } = request;
|
|
47
|
-
const _queryParams = {
|
|
48
|
-
page,
|
|
49
|
-
page_size: pageSize,
|
|
50
|
-
};
|
|
51
44
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
52
45
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
53
46
|
const _response = yield core.fetcher({
|
|
54
|
-
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,
|
|
47
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.BandEnvironment.Default, `api/v1/agent/chats/${core.url.encodePathParam(id)}`),
|
|
55
48
|
method: "GET",
|
|
56
49
|
headers: _headers,
|
|
57
|
-
queryString: core.url
|
|
58
|
-
.queryBuilder()
|
|
59
|
-
.addMany(_queryParams)
|
|
60
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
61
|
-
.build(),
|
|
50
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
62
51
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
63
52
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
64
53
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -74,6 +63,8 @@ export class AgentApiChatsClient {
|
|
|
74
63
|
throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
75
64
|
case 403:
|
|
76
65
|
throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
66
|
+
case 404:
|
|
67
|
+
throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
|
|
77
68
|
default:
|
|
78
69
|
throw new errors.BandError({
|
|
79
70
|
statusCode: _response.error.statusCode,
|
|
@@ -82,40 +73,46 @@ export class AgentApiChatsClient {
|
|
|
82
73
|
});
|
|
83
74
|
}
|
|
84
75
|
}
|
|
85
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/agent/chats");
|
|
76
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/agent/chats/{id}");
|
|
86
77
|
});
|
|
87
78
|
}
|
|
88
79
|
/**
|
|
89
|
-
*
|
|
80
|
+
* Lists chat rooms where the current agent is a participant
|
|
90
81
|
*
|
|
91
|
-
* @param {Band.
|
|
82
|
+
* @param {Band.ListAgentChatsRequest} request
|
|
92
83
|
* @param {AgentApiChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
84
|
*
|
|
94
85
|
* @throws {@link Band.UnauthorizedError}
|
|
95
86
|
* @throws {@link Band.ForbiddenError}
|
|
96
|
-
* @throws {@link Band.UnprocessableEntityError}
|
|
97
87
|
*
|
|
98
88
|
* @example
|
|
99
|
-
* await client.agentApiChats.
|
|
100
|
-
*
|
|
89
|
+
* await client.agentApiChats.listAgentChats({
|
|
90
|
+
* page: 1,
|
|
91
|
+
* page_size: 1
|
|
101
92
|
* })
|
|
102
93
|
*/
|
|
103
|
-
|
|
104
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
94
|
+
listAgentChats(request = {}, requestOptions) {
|
|
95
|
+
return core.HttpResponsePromise.fromPromise(this.__listAgentChats(request, requestOptions));
|
|
105
96
|
}
|
|
106
|
-
|
|
107
|
-
return __awaiter(this,
|
|
97
|
+
__listAgentChats() {
|
|
98
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
108
99
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
100
|
+
const { page, page_size: pageSize } = request;
|
|
101
|
+
const _queryParams = {
|
|
102
|
+
page,
|
|
103
|
+
page_size: pageSize,
|
|
104
|
+
};
|
|
109
105
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
110
106
|
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);
|
|
111
107
|
const _response = yield core.fetcher({
|
|
112
108
|
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"),
|
|
113
|
-
method: "
|
|
109
|
+
method: "GET",
|
|
114
110
|
headers: _headers,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
111
|
+
queryString: core.url
|
|
112
|
+
.queryBuilder()
|
|
113
|
+
.addMany(_queryParams)
|
|
114
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
115
|
+
.build(),
|
|
119
116
|
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,
|
|
120
117
|
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,
|
|
121
118
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -131,8 +128,6 @@ export class AgentApiChatsClient {
|
|
|
131
128
|
throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
132
129
|
case 403:
|
|
133
130
|
throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
134
|
-
case 422:
|
|
135
|
-
throw new Band.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
136
131
|
default:
|
|
137
132
|
throw new errors.BandError({
|
|
138
133
|
statusCode: _response.error.statusCode,
|
|
@@ -141,35 +136,40 @@ export class AgentApiChatsClient {
|
|
|
141
136
|
});
|
|
142
137
|
}
|
|
143
138
|
}
|
|
144
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
139
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/agent/chats");
|
|
145
140
|
});
|
|
146
141
|
}
|
|
147
142
|
/**
|
|
148
|
-
*
|
|
143
|
+
* Creates a new chat room with the agent as owner
|
|
149
144
|
*
|
|
150
|
-
* @param {
|
|
145
|
+
* @param {Band.CreateAgentChatRequest} request
|
|
151
146
|
* @param {AgentApiChatsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
152
147
|
*
|
|
153
148
|
* @throws {@link Band.UnauthorizedError}
|
|
154
149
|
* @throws {@link Band.ForbiddenError}
|
|
155
|
-
* @throws {@link Band.
|
|
150
|
+
* @throws {@link Band.UnprocessableEntityError}
|
|
156
151
|
*
|
|
157
152
|
* @example
|
|
158
|
-
* await client.agentApiChats.
|
|
153
|
+
* await client.agentApiChats.createAgentChat({
|
|
154
|
+
* chat: {}
|
|
155
|
+
* })
|
|
159
156
|
*/
|
|
160
|
-
|
|
161
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
157
|
+
createAgentChat(request, requestOptions) {
|
|
158
|
+
return core.HttpResponsePromise.fromPromise(this.__createAgentChat(request, requestOptions));
|
|
162
159
|
}
|
|
163
|
-
|
|
160
|
+
__createAgentChat(request, requestOptions) {
|
|
164
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
165
162
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
166
163
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
167
164
|
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);
|
|
168
165
|
const _response = yield core.fetcher({
|
|
169
|
-
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,
|
|
170
|
-
method: "
|
|
166
|
+
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"),
|
|
167
|
+
method: "POST",
|
|
171
168
|
headers: _headers,
|
|
169
|
+
contentType: "application/json",
|
|
172
170
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
171
|
+
requestType: "json",
|
|
172
|
+
body: request,
|
|
173
173
|
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,
|
|
174
174
|
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,
|
|
175
175
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -185,8 +185,8 @@ export class AgentApiChatsClient {
|
|
|
185
185
|
throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
186
186
|
case 403:
|
|
187
187
|
throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
188
|
-
case
|
|
189
|
-
throw new Band.
|
|
188
|
+
case 422:
|
|
189
|
+
throw new Band.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
190
190
|
default:
|
|
191
191
|
throw new errors.BandError({
|
|
192
192
|
statusCode: _response.error.statusCode,
|
|
@@ -195,7 +195,7 @@ export class AgentApiChatsClient {
|
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
198
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/agent/chats");
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
}
|
|
@@ -14,21 +14,27 @@ export declare class AgentApiContactsClient {
|
|
|
14
14
|
protected readonly _options: NormalizedClientOptionsWithAuth<AgentApiContactsClient.Options>;
|
|
15
15
|
constructor(options: AgentApiContactsClient.Options);
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Approve, reject, or cancel a contact request.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* - `approve`/`reject`: For requests you RECEIVED (handle = requester's handle)
|
|
20
|
+
* - `cancel`: For requests you SENT (handle = recipient's handle)
|
|
21
|
+
*
|
|
22
|
+
* @param {Band.RespondToAgentContactRequestRequest} request
|
|
20
23
|
* @param {AgentApiContactsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
24
|
*
|
|
25
|
+
* @throws {@link Band.BadRequestError}
|
|
22
26
|
* @throws {@link Band.UnauthorizedError}
|
|
27
|
+
* @throws {@link Band.ForbiddenError}
|
|
28
|
+
* @throws {@link Band.NotFoundError}
|
|
29
|
+
* @throws {@link Band.ConflictError}
|
|
23
30
|
*
|
|
24
31
|
* @example
|
|
25
|
-
* await client.agentApiContacts.
|
|
26
|
-
*
|
|
27
|
-
* page_size: 1
|
|
32
|
+
* await client.agentApiContacts.respondToAgentContactRequest({
|
|
33
|
+
* action: "approve"
|
|
28
34
|
* })
|
|
29
35
|
*/
|
|
30
|
-
|
|
31
|
-
private
|
|
36
|
+
respondToAgentContactRequest(request: Band.RespondToAgentContactRequestRequest, requestOptions?: AgentApiContactsClient.RequestOptions): core.HttpResponsePromise<Band.RespondToAgentContactRequestResponse>;
|
|
37
|
+
private __respondToAgentContactRequest;
|
|
32
38
|
/**
|
|
33
39
|
* Resolves handle and sends contact request.
|
|
34
40
|
*
|
|
@@ -50,21 +56,6 @@ export declare class AgentApiContactsClient {
|
|
|
50
56
|
*/
|
|
51
57
|
addAgentContact(request: Band.AddAgentContactRequest, requestOptions?: AgentApiContactsClient.RequestOptions): core.HttpResponsePromise<Band.AddAgentContactResponse>;
|
|
52
58
|
private __addAgentContact;
|
|
53
|
-
/**
|
|
54
|
-
* Removes contact by handle or ID. Both directions of the contact relationship are removed.
|
|
55
|
-
*
|
|
56
|
-
* @param {Band.RemoveAgentContactRequest} request
|
|
57
|
-
* @param {AgentApiContactsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
|
-
*
|
|
59
|
-
* @throws {@link Band.BadRequestError}
|
|
60
|
-
* @throws {@link Band.UnauthorizedError}
|
|
61
|
-
* @throws {@link Band.NotFoundError}
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* await client.agentApiContacts.removeAgentContact()
|
|
65
|
-
*/
|
|
66
|
-
removeAgentContact(request?: Band.RemoveAgentContactRequest, requestOptions?: AgentApiContactsClient.RequestOptions): core.HttpResponsePromise<Band.RemoveAgentContactResponse>;
|
|
67
|
-
private __removeAgentContact;
|
|
68
59
|
/**
|
|
69
60
|
* Returns both received and sent requests with handles and pagination metadata.
|
|
70
61
|
*
|
|
@@ -88,25 +79,34 @@ export declare class AgentApiContactsClient {
|
|
|
88
79
|
listAgentContactRequests(request?: Band.ListAgentContactRequestsRequest, requestOptions?: AgentApiContactsClient.RequestOptions): core.HttpResponsePromise<Band.ListAgentContactRequestsResponse>;
|
|
89
80
|
private __listAgentContactRequests;
|
|
90
81
|
/**
|
|
91
|
-
*
|
|
82
|
+
* Returns contacts with handles for easy reference.
|
|
92
83
|
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
84
|
+
* @param {Band.ListAgentContactsRequest} request
|
|
85
|
+
* @param {AgentApiContactsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
95
86
|
*
|
|
96
|
-
* @
|
|
87
|
+
* @throws {@link Band.UnauthorizedError}
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* await client.agentApiContacts.listAgentContacts({
|
|
91
|
+
* page: 1,
|
|
92
|
+
* page_size: 1
|
|
93
|
+
* })
|
|
94
|
+
*/
|
|
95
|
+
listAgentContacts(request?: Band.ListAgentContactsRequest, requestOptions?: AgentApiContactsClient.RequestOptions): core.HttpResponsePromise<Band.ListAgentContactsResponse>;
|
|
96
|
+
private __listAgentContacts;
|
|
97
|
+
/**
|
|
98
|
+
* Removes contact by handle or ID. Both directions of the contact relationship are removed.
|
|
99
|
+
*
|
|
100
|
+
* @param {Band.RemoveAgentContactRequest} request
|
|
97
101
|
* @param {AgentApiContactsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
98
102
|
*
|
|
99
103
|
* @throws {@link Band.BadRequestError}
|
|
100
104
|
* @throws {@link Band.UnauthorizedError}
|
|
101
|
-
* @throws {@link Band.ForbiddenError}
|
|
102
105
|
* @throws {@link Band.NotFoundError}
|
|
103
|
-
* @throws {@link Band.ConflictError}
|
|
104
106
|
*
|
|
105
107
|
* @example
|
|
106
|
-
* await client.agentApiContacts.
|
|
107
|
-
* action: "approve"
|
|
108
|
-
* })
|
|
108
|
+
* await client.agentApiContacts.removeAgentContact()
|
|
109
109
|
*/
|
|
110
|
-
|
|
111
|
-
private
|
|
110
|
+
removeAgentContact(request?: Band.RemoveAgentContactRequest, requestOptions?: AgentApiContactsClient.RequestOptions): core.HttpResponsePromise<Band.RemoveAgentContactResponse>;
|
|
111
|
+
private __removeAgentContact;
|
|
112
112
|
}
|
|
@@ -23,41 +23,41 @@ export class AgentApiContactsClient {
|
|
|
23
23
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Approve, reject, or cancel a contact request.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
28
|
+
* - `approve`/`reject`: For requests you RECEIVED (handle = requester's handle)
|
|
29
|
+
* - `cancel`: For requests you SENT (handle = recipient's handle)
|
|
30
|
+
*
|
|
31
|
+
* @param {Band.RespondToAgentContactRequestRequest} request
|
|
29
32
|
* @param {AgentApiContactsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
33
|
*
|
|
34
|
+
* @throws {@link Band.BadRequestError}
|
|
31
35
|
* @throws {@link Band.UnauthorizedError}
|
|
36
|
+
* @throws {@link Band.ForbiddenError}
|
|
37
|
+
* @throws {@link Band.NotFoundError}
|
|
38
|
+
* @throws {@link Band.ConflictError}
|
|
32
39
|
*
|
|
33
40
|
* @example
|
|
34
|
-
* await client.agentApiContacts.
|
|
35
|
-
*
|
|
36
|
-
* page_size: 1
|
|
41
|
+
* await client.agentApiContacts.respondToAgentContactRequest({
|
|
42
|
+
* action: "approve"
|
|
37
43
|
* })
|
|
38
44
|
*/
|
|
39
|
-
|
|
40
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
45
|
+
respondToAgentContactRequest(request, requestOptions) {
|
|
46
|
+
return core.HttpResponsePromise.fromPromise(this.__respondToAgentContactRequest(request, requestOptions));
|
|
41
47
|
}
|
|
42
|
-
|
|
43
|
-
return __awaiter(this,
|
|
48
|
+
__respondToAgentContactRequest(request, requestOptions) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
50
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
45
|
-
const { page, page_size: pageSize } = request;
|
|
46
|
-
const _queryParams = {
|
|
47
|
-
page,
|
|
48
|
-
page_size: pageSize,
|
|
49
|
-
};
|
|
50
51
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
51
52
|
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);
|
|
52
53
|
const _response = yield core.fetcher({
|
|
53
|
-
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/contacts"),
|
|
54
|
-
method: "
|
|
54
|
+
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/contacts/requests/respond"),
|
|
55
|
+
method: "POST",
|
|
55
56
|
headers: _headers,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
.build(),
|
|
57
|
+
contentType: "application/json",
|
|
58
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
59
|
+
requestType: "json",
|
|
60
|
+
body: request,
|
|
61
61
|
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,
|
|
62
62
|
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,
|
|
63
63
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -65,12 +65,23 @@ export class AgentApiContactsClient {
|
|
|
65
65
|
logging: this._options.logging,
|
|
66
66
|
});
|
|
67
67
|
if (_response.ok) {
|
|
68
|
-
return {
|
|
68
|
+
return {
|
|
69
|
+
data: _response.body,
|
|
70
|
+
rawResponse: _response.rawResponse,
|
|
71
|
+
};
|
|
69
72
|
}
|
|
70
73
|
if (_response.error.reason === "status-code") {
|
|
71
74
|
switch (_response.error.statusCode) {
|
|
75
|
+
case 400:
|
|
76
|
+
throw new Band.BadRequestError(_response.error.body, _response.rawResponse);
|
|
72
77
|
case 401:
|
|
73
78
|
throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
79
|
+
case 403:
|
|
80
|
+
throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
81
|
+
case 404:
|
|
82
|
+
throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
|
|
83
|
+
case 409:
|
|
84
|
+
throw new Band.ConflictError(_response.error.body, _response.rawResponse);
|
|
74
85
|
default:
|
|
75
86
|
throw new errors.BandError({
|
|
76
87
|
statusCode: _response.error.statusCode,
|
|
@@ -79,7 +90,7 @@ export class AgentApiContactsClient {
|
|
|
79
90
|
});
|
|
80
91
|
}
|
|
81
92
|
}
|
|
82
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
93
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/agent/contacts/requests/respond");
|
|
83
94
|
});
|
|
84
95
|
}
|
|
85
96
|
/**
|
|
@@ -148,34 +159,48 @@ export class AgentApiContactsClient {
|
|
|
148
159
|
});
|
|
149
160
|
}
|
|
150
161
|
/**
|
|
151
|
-
*
|
|
162
|
+
* Returns both received and sent requests with handles and pagination metadata.
|
|
152
163
|
*
|
|
153
|
-
*
|
|
164
|
+
* - Received requests are always filtered to pending status.
|
|
165
|
+
* - Sent requests can be filtered by status using `sent_status` parameter.
|
|
166
|
+
* - Pagination applies per-direction: response may contain up to 2×page_size items total.
|
|
167
|
+
* - Each direction includes separate total counts and total_pages in metadata.
|
|
168
|
+
*
|
|
169
|
+
* @param {Band.ListAgentContactRequestsRequest} request
|
|
154
170
|
* @param {AgentApiContactsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
155
171
|
*
|
|
156
|
-
* @throws {@link Band.BadRequestError}
|
|
157
172
|
* @throws {@link Band.UnauthorizedError}
|
|
158
|
-
* @throws {@link Band.NotFoundError}
|
|
159
173
|
*
|
|
160
174
|
* @example
|
|
161
|
-
* await client.agentApiContacts.
|
|
175
|
+
* await client.agentApiContacts.listAgentContactRequests({
|
|
176
|
+
* page: 1,
|
|
177
|
+
* page_size: 1,
|
|
178
|
+
* sent_status: "pending"
|
|
179
|
+
* })
|
|
162
180
|
*/
|
|
163
|
-
|
|
164
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
181
|
+
listAgentContactRequests(request = {}, requestOptions) {
|
|
182
|
+
return core.HttpResponsePromise.fromPromise(this.__listAgentContactRequests(request, requestOptions));
|
|
165
183
|
}
|
|
166
|
-
|
|
184
|
+
__listAgentContactRequests() {
|
|
167
185
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
168
186
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
187
|
+
const { page, page_size: pageSize, sent_status: sentStatus } = request;
|
|
188
|
+
const _queryParams = {
|
|
189
|
+
page,
|
|
190
|
+
page_size: pageSize,
|
|
191
|
+
sent_status: sentStatus != null ? sentStatus : undefined,
|
|
192
|
+
};
|
|
169
193
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
170
194
|
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);
|
|
171
195
|
const _response = yield core.fetcher({
|
|
172
|
-
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/contacts/
|
|
173
|
-
method: "
|
|
196
|
+
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/contacts/requests"),
|
|
197
|
+
method: "GET",
|
|
174
198
|
headers: _headers,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
199
|
+
queryString: core.url
|
|
200
|
+
.queryBuilder()
|
|
201
|
+
.addMany(_queryParams)
|
|
202
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
203
|
+
.build(),
|
|
179
204
|
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,
|
|
180
205
|
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,
|
|
181
206
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -183,16 +208,15 @@ export class AgentApiContactsClient {
|
|
|
183
208
|
logging: this._options.logging,
|
|
184
209
|
});
|
|
185
210
|
if (_response.ok) {
|
|
186
|
-
return {
|
|
211
|
+
return {
|
|
212
|
+
data: _response.body,
|
|
213
|
+
rawResponse: _response.rawResponse,
|
|
214
|
+
};
|
|
187
215
|
}
|
|
188
216
|
if (_response.error.reason === "status-code") {
|
|
189
217
|
switch (_response.error.statusCode) {
|
|
190
|
-
case 400:
|
|
191
|
-
throw new Band.BadRequestError(_response.error.body, _response.rawResponse);
|
|
192
218
|
case 401:
|
|
193
219
|
throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
194
|
-
case 404:
|
|
195
|
-
throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
|
|
196
220
|
default:
|
|
197
221
|
throw new errors.BandError({
|
|
198
222
|
statusCode: _response.error.statusCode,
|
|
@@ -201,45 +225,38 @@ export class AgentApiContactsClient {
|
|
|
201
225
|
});
|
|
202
226
|
}
|
|
203
227
|
}
|
|
204
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "
|
|
228
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/agent/contacts/requests");
|
|
205
229
|
});
|
|
206
230
|
}
|
|
207
231
|
/**
|
|
208
|
-
* Returns
|
|
209
|
-
*
|
|
210
|
-
* - Received requests are always filtered to pending status.
|
|
211
|
-
* - Sent requests can be filtered by status using `sent_status` parameter.
|
|
212
|
-
* - Pagination applies per-direction: response may contain up to 2×page_size items total.
|
|
213
|
-
* - Each direction includes separate total counts and total_pages in metadata.
|
|
232
|
+
* Returns contacts with handles for easy reference.
|
|
214
233
|
*
|
|
215
|
-
* @param {Band.
|
|
234
|
+
* @param {Band.ListAgentContactsRequest} request
|
|
216
235
|
* @param {AgentApiContactsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
217
236
|
*
|
|
218
237
|
* @throws {@link Band.UnauthorizedError}
|
|
219
238
|
*
|
|
220
239
|
* @example
|
|
221
|
-
* await client.agentApiContacts.
|
|
240
|
+
* await client.agentApiContacts.listAgentContacts({
|
|
222
241
|
* page: 1,
|
|
223
|
-
* page_size: 1
|
|
224
|
-
* sent_status: "pending"
|
|
242
|
+
* page_size: 1
|
|
225
243
|
* })
|
|
226
244
|
*/
|
|
227
|
-
|
|
228
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
245
|
+
listAgentContacts(request = {}, requestOptions) {
|
|
246
|
+
return core.HttpResponsePromise.fromPromise(this.__listAgentContacts(request, requestOptions));
|
|
229
247
|
}
|
|
230
|
-
|
|
248
|
+
__listAgentContacts() {
|
|
231
249
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
232
250
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
233
|
-
const { page, page_size: pageSize
|
|
251
|
+
const { page, page_size: pageSize } = request;
|
|
234
252
|
const _queryParams = {
|
|
235
253
|
page,
|
|
236
254
|
page_size: pageSize,
|
|
237
|
-
sent_status: sentStatus != null ? sentStatus : undefined,
|
|
238
255
|
};
|
|
239
256
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
240
257
|
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);
|
|
241
258
|
const _response = yield core.fetcher({
|
|
242
|
-
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/contacts
|
|
259
|
+
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/contacts"),
|
|
243
260
|
method: "GET",
|
|
244
261
|
headers: _headers,
|
|
245
262
|
queryString: core.url
|
|
@@ -254,10 +271,7 @@ export class AgentApiContactsClient {
|
|
|
254
271
|
logging: this._options.logging,
|
|
255
272
|
});
|
|
256
273
|
if (_response.ok) {
|
|
257
|
-
return {
|
|
258
|
-
data: _response.body,
|
|
259
|
-
rawResponse: _response.rawResponse,
|
|
260
|
-
};
|
|
274
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
261
275
|
}
|
|
262
276
|
if (_response.error.reason === "status-code") {
|
|
263
277
|
switch (_response.error.statusCode) {
|
|
@@ -271,39 +285,32 @@ export class AgentApiContactsClient {
|
|
|
271
285
|
});
|
|
272
286
|
}
|
|
273
287
|
}
|
|
274
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/agent/contacts
|
|
288
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/api/v1/agent/contacts");
|
|
275
289
|
});
|
|
276
290
|
}
|
|
277
291
|
/**
|
|
278
|
-
*
|
|
279
|
-
*
|
|
280
|
-
* - `approve`/`reject`: For requests you RECEIVED (handle = requester's handle)
|
|
281
|
-
* - `cancel`: For requests you SENT (handle = recipient's handle)
|
|
292
|
+
* Removes contact by handle or ID. Both directions of the contact relationship are removed.
|
|
282
293
|
*
|
|
283
|
-
* @param {Band.
|
|
294
|
+
* @param {Band.RemoveAgentContactRequest} request
|
|
284
295
|
* @param {AgentApiContactsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
285
296
|
*
|
|
286
297
|
* @throws {@link Band.BadRequestError}
|
|
287
298
|
* @throws {@link Band.UnauthorizedError}
|
|
288
|
-
* @throws {@link Band.ForbiddenError}
|
|
289
299
|
* @throws {@link Band.NotFoundError}
|
|
290
|
-
* @throws {@link Band.ConflictError}
|
|
291
300
|
*
|
|
292
301
|
* @example
|
|
293
|
-
* await client.agentApiContacts.
|
|
294
|
-
* action: "approve"
|
|
295
|
-
* })
|
|
302
|
+
* await client.agentApiContacts.removeAgentContact()
|
|
296
303
|
*/
|
|
297
|
-
|
|
298
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
304
|
+
removeAgentContact(request = {}, requestOptions) {
|
|
305
|
+
return core.HttpResponsePromise.fromPromise(this.__removeAgentContact(request, requestOptions));
|
|
299
306
|
}
|
|
300
|
-
|
|
301
|
-
return __awaiter(this,
|
|
307
|
+
__removeAgentContact() {
|
|
308
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
302
309
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
303
310
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
304
311
|
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);
|
|
305
312
|
const _response = yield core.fetcher({
|
|
306
|
-
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/contacts/
|
|
313
|
+
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/contacts/remove"),
|
|
307
314
|
method: "POST",
|
|
308
315
|
headers: _headers,
|
|
309
316
|
contentType: "application/json",
|
|
@@ -317,10 +324,7 @@ export class AgentApiContactsClient {
|
|
|
317
324
|
logging: this._options.logging,
|
|
318
325
|
});
|
|
319
326
|
if (_response.ok) {
|
|
320
|
-
return {
|
|
321
|
-
data: _response.body,
|
|
322
|
-
rawResponse: _response.rawResponse,
|
|
323
|
-
};
|
|
327
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
324
328
|
}
|
|
325
329
|
if (_response.error.reason === "status-code") {
|
|
326
330
|
switch (_response.error.statusCode) {
|
|
@@ -328,12 +332,8 @@ export class AgentApiContactsClient {
|
|
|
328
332
|
throw new Band.BadRequestError(_response.error.body, _response.rawResponse);
|
|
329
333
|
case 401:
|
|
330
334
|
throw new Band.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
331
|
-
case 403:
|
|
332
|
-
throw new Band.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
333
335
|
case 404:
|
|
334
336
|
throw new Band.NotFoundError(_response.error.body, _response.rawResponse);
|
|
335
|
-
case 409:
|
|
336
|
-
throw new Band.ConflictError(_response.error.body, _response.rawResponse);
|
|
337
337
|
default:
|
|
338
338
|
throw new errors.BandError({
|
|
339
339
|
statusCode: _response.error.statusCode,
|
|
@@ -342,7 +342,7 @@ export class AgentApiContactsClient {
|
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/agent/contacts/
|
|
345
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/api/v1/agent/contacts/remove");
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
348
|
}
|