@getzep/zep-cloud 1.0.12 → 2.0.0-rc.1
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/Client.d.ts +6 -0
- package/Client.js +12 -2
- package/LICENSE +201 -0
- package/api/resources/document/client/Client.d.ts +9 -9
- package/api/resources/document/client/Client.js +20 -20
- package/api/resources/graph/client/Client.d.ts +62 -0
- package/api/resources/graph/client/Client.js +225 -0
- package/api/resources/graph/client/index.d.ts +1 -0
- package/{dist/langchain → api/resources/graph/client}/index.js +1 -3
- package/api/resources/graph/client/requests/AddDataRequest.d.ts +14 -0
- package/api/resources/graph/client/requests/GraphSearchQuery.d.ts +30 -0
- package/api/resources/graph/client/requests/index.d.ts +2 -0
- package/api/resources/graph/client/requests/index.js +2 -0
- package/api/resources/graph/index.d.ts +2 -0
- package/{langchain → api/resources/graph}/index.js +2 -3
- package/api/resources/graph/resources/edge/client/Client.d.ts +78 -0
- package/api/resources/graph/resources/edge/client/Client.js +361 -0
- package/api/resources/graph/resources/edge/client/index.d.ts +1 -0
- package/api/resources/graph/resources/edge/client/index.js +2 -0
- package/api/resources/graph/resources/edge/index.d.ts +1 -0
- package/api/resources/graph/resources/edge/index.js +17 -0
- package/api/resources/graph/resources/episode/client/Client.d.ts +66 -0
- package/api/resources/graph/resources/episode/client/Client.js +293 -0
- package/api/resources/graph/resources/episode/client/index.d.ts +1 -0
- package/api/resources/graph/resources/episode/client/index.js +17 -0
- package/api/resources/graph/resources/episode/client/requests/EpisodeGetByGroupIdRequest.d.ts +13 -0
- package/api/resources/graph/resources/episode/client/requests/EpisodeGetByUserIdRequest.d.ts +13 -0
- package/api/resources/graph/resources/episode/client/requests/index.d.ts +2 -0
- package/api/resources/graph/resources/episode/client/requests/index.js +2 -0
- package/api/resources/graph/resources/episode/index.d.ts +1 -0
- package/api/resources/graph/resources/episode/index.js +17 -0
- package/api/resources/graph/resources/index.d.ts +4 -0
- package/api/resources/graph/resources/index.js +33 -0
- package/api/resources/graph/resources/node/client/Client.d.ts +65 -0
- package/api/resources/graph/resources/node/client/Client.js +288 -0
- package/api/resources/graph/resources/node/client/index.d.ts +1 -0
- package/api/resources/graph/resources/node/client/index.js +2 -0
- package/api/resources/graph/resources/node/index.d.ts +1 -0
- package/api/resources/graph/resources/node/index.js +17 -0
- package/api/resources/group/client/Client.d.ts +52 -0
- package/api/resources/group/client/Client.js +216 -0
- package/api/resources/group/client/index.d.ts +1 -0
- package/api/resources/group/client/index.js +17 -0
- package/api/resources/group/client/requests/CreateGroupRequest.d.ts +12 -0
- package/api/resources/group/client/requests/index.d.ts +1 -0
- package/api/resources/group/client/requests/index.js +2 -0
- package/api/resources/group/index.d.ts +1 -0
- package/api/resources/group/index.js +17 -0
- package/api/resources/index.d.ts +4 -0
- package/api/resources/index.js +5 -1
- package/api/resources/memory/client/Client.d.ts +22 -12
- package/api/resources/memory/client/Client.js +45 -38
- package/api/resources/memory/client/requests/AddFactsRequest.d.ts +1 -1
- package/api/resources/memory/client/requests/AddMemoryRequest.d.ts +6 -3
- package/api/resources/memory/client/requests/CreateSessionRequest.d.ts +3 -2
- package/api/resources/memory/client/requests/MemoryGetRequest.d.ts +0 -5
- package/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.d.ts +1 -1
- package/api/resources/memory/client/requests/ModelsMessageMetadataUpdate.d.ts +3 -1
- package/api/resources/memory/client/requests/SessionSearchQuery.d.ts +12 -3
- package/api/resources/memory/client/requests/UpdateSessionRequest.d.ts +3 -1
- package/api/resources/user/client/Client.d.ts +13 -0
- package/api/resources/user/client/Client.js +79 -6
- package/{dist/api/types/DocumentResponse.d.ts → api/types/ApidataDocument.d.ts} +1 -1
- package/api/types/{DocumentCollectionResponse.d.ts → ApidataDocumentCollection.d.ts} +1 -3
- package/api/types/{DocumentSearchResultPage.d.ts → ApidataDocumentSearchResponse.d.ts} +2 -2
- package/api/types/{DocumentSearchResult.d.ts → ApidataDocumentWithScore.d.ts} +1 -1
- package/api/types/EndSessionResponse.d.ts +1 -1
- package/api/types/EntityEdge.d.ts +25 -0
- package/api/types/EntityNode.d.ts +15 -0
- package/api/types/Episode.d.ts +12 -0
- package/api/types/EpisodeResponse.d.ts +7 -0
- package/api/types/EpisodeResponse.js +5 -0
- package/api/types/Fact.d.ts +9 -3
- package/api/types/GraphDataType.d.ts +9 -0
- package/api/types/GraphDataType.js +11 -0
- package/api/types/GraphSearchResults.d.ts +8 -0
- package/api/types/GraphSearchResults.js +5 -0
- package/api/types/GraphSearchScope.d.ts +8 -0
- package/api/types/GraphSearchScope.js +10 -0
- package/api/types/Group.d.ts +12 -0
- package/api/types/Group.js +5 -0
- package/api/types/Memory.d.ts +4 -5
- package/api/types/Message.d.ts +2 -2
- package/api/types/{AddedFact.d.ts → NewFact.d.ts} +1 -1
- package/api/types/NewFact.js +5 -0
- package/api/types/Reranker.d.ts +10 -0
- package/api/types/Reranker.js +12 -0
- package/api/types/Session.d.ts +1 -2
- package/api/types/{ClassifySessionResponse.d.ts → SessionClassification.d.ts} +2 -2
- package/api/types/SessionClassification.js +5 -0
- package/api/types/SessionFactRatingExamples.d.ts +8 -0
- package/api/types/SessionFactRatingExamples.js +5 -0
- package/api/types/SessionFactRatingInstruction.d.ts +21 -0
- package/api/types/SessionFactRatingInstruction.js +5 -0
- package/api/types/index.d.ts +24 -14
- package/api/types/index.js +24 -14
- package/dist/Client.d.ts +6 -0
- package/dist/Client.js +12 -2
- package/dist/api/resources/document/client/Client.d.ts +9 -9
- package/dist/api/resources/document/client/Client.js +20 -20
- package/dist/api/resources/graph/client/Client.d.ts +62 -0
- package/dist/api/resources/graph/client/Client.js +225 -0
- package/dist/api/resources/graph/client/index.d.ts +1 -0
- package/dist/api/resources/graph/client/index.js +17 -0
- package/dist/api/resources/graph/client/requests/AddDataRequest.d.ts +14 -0
- package/dist/api/resources/graph/client/requests/AddDataRequest.js +5 -0
- package/dist/api/resources/graph/client/requests/GraphSearchQuery.d.ts +30 -0
- package/dist/api/resources/graph/client/requests/GraphSearchQuery.js +5 -0
- package/dist/api/resources/graph/client/requests/index.d.ts +2 -0
- package/dist/api/resources/graph/client/requests/index.js +2 -0
- package/dist/api/resources/graph/index.d.ts +2 -0
- package/dist/api/resources/graph/index.js +18 -0
- package/dist/api/resources/graph/resources/edge/client/Client.d.ts +78 -0
- package/dist/api/resources/graph/resources/edge/client/Client.js +361 -0
- package/dist/api/resources/graph/resources/edge/client/index.d.ts +1 -0
- package/dist/api/resources/graph/resources/edge/client/index.js +2 -0
- package/dist/api/resources/graph/resources/edge/index.d.ts +1 -0
- package/dist/api/resources/graph/resources/edge/index.js +17 -0
- package/dist/api/resources/graph/resources/episode/client/Client.d.ts +66 -0
- package/dist/api/resources/graph/resources/episode/client/Client.js +293 -0
- package/dist/api/resources/graph/resources/episode/client/index.d.ts +1 -0
- package/dist/api/resources/graph/resources/episode/client/index.js +17 -0
- package/dist/api/resources/graph/resources/episode/client/requests/EpisodeGetByGroupIdRequest.d.ts +13 -0
- package/dist/api/resources/graph/resources/episode/client/requests/EpisodeGetByGroupIdRequest.js +5 -0
- package/dist/api/resources/graph/resources/episode/client/requests/EpisodeGetByUserIdRequest.d.ts +13 -0
- package/dist/api/resources/graph/resources/episode/client/requests/EpisodeGetByUserIdRequest.js +5 -0
- package/dist/api/resources/graph/resources/episode/client/requests/index.d.ts +2 -0
- package/dist/api/resources/graph/resources/episode/client/requests/index.js +2 -0
- package/dist/api/resources/graph/resources/episode/index.d.ts +1 -0
- package/dist/api/resources/graph/resources/episode/index.js +17 -0
- package/dist/api/resources/graph/resources/index.d.ts +4 -0
- package/dist/api/resources/graph/resources/index.js +33 -0
- package/dist/api/resources/graph/resources/node/client/Client.d.ts +65 -0
- package/dist/api/resources/graph/resources/node/client/Client.js +288 -0
- package/dist/api/resources/graph/resources/node/client/index.d.ts +1 -0
- package/dist/api/resources/graph/resources/node/client/index.js +2 -0
- package/dist/api/resources/graph/resources/node/index.d.ts +1 -0
- package/dist/api/resources/graph/resources/node/index.js +17 -0
- package/dist/api/resources/group/client/Client.d.ts +52 -0
- package/dist/api/resources/group/client/Client.js +216 -0
- package/dist/api/resources/group/client/index.d.ts +1 -0
- package/dist/api/resources/group/client/index.js +17 -0
- package/dist/api/resources/group/client/requests/CreateGroupRequest.d.ts +12 -0
- package/dist/api/resources/group/client/requests/CreateGroupRequest.js +5 -0
- package/dist/api/resources/group/client/requests/index.d.ts +1 -0
- package/dist/api/resources/group/client/requests/index.js +2 -0
- package/dist/api/resources/group/index.d.ts +1 -0
- package/dist/api/resources/group/index.js +17 -0
- package/dist/api/resources/index.d.ts +4 -0
- package/dist/api/resources/index.js +5 -1
- package/dist/api/resources/memory/client/Client.d.ts +22 -12
- package/dist/api/resources/memory/client/Client.js +45 -38
- package/dist/api/resources/memory/client/requests/AddFactsRequest.d.ts +1 -1
- package/dist/api/resources/memory/client/requests/AddMemoryRequest.d.ts +6 -3
- package/dist/api/resources/memory/client/requests/CreateSessionRequest.d.ts +3 -2
- package/dist/api/resources/memory/client/requests/MemoryGetRequest.d.ts +0 -5
- package/dist/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.d.ts +1 -1
- package/dist/api/resources/memory/client/requests/ModelsMessageMetadataUpdate.d.ts +3 -1
- package/dist/api/resources/memory/client/requests/SessionSearchQuery.d.ts +12 -3
- package/dist/api/resources/memory/client/requests/UpdateSessionRequest.d.ts +3 -1
- package/dist/api/resources/user/client/Client.d.ts +13 -0
- package/dist/api/resources/user/client/Client.js +79 -6
- package/{api/types/DocumentResponse.d.ts → dist/api/types/ApidataDocument.d.ts} +1 -1
- package/dist/api/types/ApidataDocument.js +5 -0
- package/dist/api/types/{DocumentCollectionResponse.d.ts → ApidataDocumentCollection.d.ts} +1 -3
- package/dist/api/types/ApidataDocumentCollection.js +5 -0
- package/dist/api/types/{DocumentSearchResultPage.d.ts → ApidataDocumentSearchResponse.d.ts} +2 -2
- package/dist/api/types/ApidataDocumentSearchResponse.js +5 -0
- package/dist/api/types/{DocumentSearchResult.d.ts → ApidataDocumentWithScore.d.ts} +1 -1
- package/dist/api/types/ApidataDocumentWithScore.js +5 -0
- package/dist/api/types/EndSessionResponse.d.ts +1 -1
- package/dist/api/types/EntityEdge.d.ts +25 -0
- package/dist/api/types/EntityEdge.js +5 -0
- package/dist/api/types/EntityNode.d.ts +15 -0
- package/dist/api/types/EntityNode.js +5 -0
- package/dist/api/types/Episode.d.ts +12 -0
- package/dist/api/types/Episode.js +5 -0
- package/dist/api/types/EpisodeResponse.d.ts +7 -0
- package/dist/api/types/EpisodeResponse.js +5 -0
- package/dist/api/types/Fact.d.ts +9 -3
- package/dist/api/types/GraphDataType.d.ts +9 -0
- package/dist/api/types/GraphDataType.js +11 -0
- package/dist/api/types/GraphSearchResults.d.ts +8 -0
- package/dist/api/types/GraphSearchResults.js +5 -0
- package/dist/api/types/GraphSearchScope.d.ts +8 -0
- package/dist/api/types/GraphSearchScope.js +10 -0
- package/dist/api/types/Group.d.ts +12 -0
- package/dist/api/types/Group.js +5 -0
- package/dist/api/types/Memory.d.ts +4 -5
- package/dist/api/types/Message.d.ts +2 -2
- package/dist/api/types/{AddedFact.d.ts → NewFact.d.ts} +1 -1
- package/dist/api/types/NewFact.js +5 -0
- package/dist/api/types/Reranker.d.ts +10 -0
- package/dist/api/types/Reranker.js +12 -0
- package/dist/api/types/Session.d.ts +1 -2
- package/dist/api/types/{ClassifySessionResponse.d.ts → SessionClassification.d.ts} +2 -2
- package/dist/api/types/SessionClassification.js +5 -0
- package/dist/api/types/SessionFactRatingExamples.d.ts +8 -0
- package/dist/api/types/SessionFactRatingExamples.js +5 -0
- package/dist/api/types/SessionFactRatingInstruction.d.ts +21 -0
- package/dist/api/types/SessionFactRatingInstruction.js +5 -0
- package/dist/api/types/index.d.ts +24 -14
- package/dist/api/types/index.js +24 -14
- package/dist/serialization/resources/document/client/addDocuments.d.ts +2 -2
- package/dist/serialization/resources/document/client/addDocuments.js +1 -1
- package/dist/serialization/resources/document/client/batchGetDocuments.d.ts +3 -3
- package/dist/serialization/resources/document/client/batchGetDocuments.js +2 -2
- package/dist/serialization/resources/document/client/listCollections.d.ts +3 -3
- package/dist/serialization/resources/document/client/listCollections.js +2 -2
- package/dist/serialization/resources/graph/client/index.d.ts +1 -0
- package/dist/serialization/resources/graph/client/index.js +17 -0
- package/dist/serialization/resources/graph/client/requests/AddDataRequest.d.ts +16 -0
- package/dist/serialization/resources/graph/client/requests/AddDataRequest.js +37 -0
- package/dist/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +22 -0
- package/dist/serialization/resources/graph/client/requests/GraphSearchQuery.js +43 -0
- package/dist/serialization/resources/graph/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/graph/client/requests/index.js +7 -0
- package/dist/serialization/resources/graph/index.d.ts +2 -0
- package/dist/serialization/resources/graph/index.js +18 -0
- package/dist/serialization/resources/graph/resources/edge/client/getByGroupId.d.ts +11 -0
- package/dist/serialization/resources/graph/resources/edge/client/getByGroupId.js +32 -0
- package/dist/serialization/resources/graph/resources/edge/client/getByUserId.d.ts +11 -0
- package/dist/serialization/resources/graph/resources/edge/client/getByUserId.js +32 -0
- package/dist/serialization/resources/graph/resources/edge/client/index.d.ts +2 -0
- package/dist/serialization/resources/graph/resources/edge/client/index.js +28 -0
- package/dist/serialization/resources/graph/resources/edge/index.d.ts +1 -0
- package/dist/serialization/resources/graph/resources/edge/index.js +17 -0
- package/dist/serialization/resources/graph/resources/index.d.ts +2 -0
- package/dist/serialization/resources/graph/resources/index.js +28 -0
- package/dist/serialization/resources/graph/resources/node/client/getByGroupId.d.ts +11 -0
- package/dist/serialization/resources/graph/resources/node/client/getByGroupId.js +32 -0
- package/dist/serialization/resources/graph/resources/node/client/getByUserId.d.ts +11 -0
- package/dist/serialization/resources/graph/resources/node/client/getByUserId.js +32 -0
- package/dist/serialization/resources/graph/resources/node/client/index.d.ts +2 -0
- package/dist/serialization/resources/graph/resources/node/client/index.js +28 -0
- package/dist/serialization/resources/graph/resources/node/index.d.ts +1 -0
- package/dist/serialization/resources/graph/resources/node/index.js +17 -0
- package/dist/serialization/resources/group/client/index.d.ts +1 -0
- package/dist/serialization/resources/group/client/index.js +17 -0
- package/dist/serialization/resources/group/client/requests/CreateGroupRequest.d.ts +14 -0
- package/dist/serialization/resources/group/client/requests/CreateGroupRequest.js +35 -0
- package/dist/serialization/resources/group/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/group/client/requests/index.js +5 -0
- package/dist/serialization/resources/group/index.d.ts +1 -0
- package/dist/serialization/resources/group/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +4 -0
- package/dist/serialization/resources/index.js +5 -1
- package/dist/serialization/resources/memory/client/requests/AddFactsRequest.d.ts +2 -2
- package/dist/serialization/resources/memory/client/requests/AddFactsRequest.js +2 -2
- package/dist/serialization/resources/memory/client/requests/CreateSessionRequest.d.ts +1 -1
- package/dist/serialization/resources/memory/client/requests/CreateSessionRequest.js +1 -1
- package/dist/serialization/resources/memory/client/requests/SessionSearchQuery.d.ts +1 -1
- package/dist/serialization/resources/memory/client/requests/SessionSearchQuery.js +1 -1
- package/{serialization/types/DocumentResponse.d.ts → dist/serialization/types/ApidataDocument.d.ts} +2 -2
- package/{serialization/types/DocumentResponse.js → dist/serialization/types/ApidataDocument.js} +2 -2
- package/dist/serialization/types/{DocumentCollectionResponse.d.ts → ApidataDocumentCollection.d.ts} +2 -2
- package/{serialization/types/DocumentCollectionResponse.js → dist/serialization/types/ApidataDocumentCollection.js} +2 -2
- package/dist/serialization/types/{DocumentSearchResultPage.d.ts → ApidataDocumentSearchResponse.d.ts} +4 -4
- package/dist/serialization/types/{DocumentSearchResultPage.js → ApidataDocumentSearchResponse.js} +4 -4
- package/dist/serialization/types/{DocumentSearchResult.d.ts → ApidataDocumentWithScore.d.ts} +2 -2
- package/dist/serialization/types/{DocumentSearchResult.js → ApidataDocumentWithScore.js} +2 -2
- package/dist/serialization/types/EndSessionResponse.d.ts +2 -2
- package/dist/serialization/types/EndSessionResponse.js +2 -2
- package/dist/serialization/types/EntityEdge.d.ts +21 -0
- package/dist/serialization/types/EntityEdge.js +42 -0
- package/dist/serialization/types/EntityNode.d.ts +16 -0
- package/dist/serialization/types/EntityNode.js +37 -0
- package/dist/serialization/types/Episode.d.ts +18 -0
- package/dist/serialization/types/Episode.js +39 -0
- package/dist/serialization/types/EpisodeResponse.d.ts +13 -0
- package/dist/serialization/types/EpisodeResponse.js +34 -0
- package/dist/serialization/types/Fact.d.ts +9 -3
- package/dist/serialization/types/Fact.js +9 -3
- package/dist/serialization/types/GraphDataType.d.ts +10 -0
- package/dist/serialization/types/{MemoryType.js → GraphDataType.js} +2 -2
- package/dist/serialization/types/GraphSearchResults.d.ts +15 -0
- package/dist/serialization/types/GraphSearchResults.js +36 -0
- package/dist/serialization/types/GraphSearchScope.d.ts +10 -0
- package/{serialization/types/MemoryType.js → dist/serialization/types/GraphSearchScope.js} +2 -2
- package/dist/serialization/types/Group.d.ts +18 -0
- package/dist/serialization/types/Group.js +39 -0
- package/dist/serialization/types/Memory.d.ts +0 -1
- package/dist/serialization/types/Memory.js +0 -1
- package/dist/serialization/types/Message.d.ts +2 -2
- package/dist/serialization/types/Message.js +2 -2
- package/dist/serialization/types/{AddedFact.d.ts → NewFact.d.ts} +2 -2
- package/{serialization/types/AddedFact.js → dist/serialization/types/NewFact.js} +2 -2
- package/dist/serialization/types/Reranker.d.ts +10 -0
- package/dist/serialization/types/Reranker.js +36 -0
- package/dist/serialization/types/Session.d.ts +2 -3
- package/dist/serialization/types/Session.js +2 -3
- package/dist/serialization/types/{ClassifySessionResponse.d.ts → SessionClassification.d.ts} +3 -3
- package/{serialization/types/ClassifySessionResponse.js → dist/serialization/types/SessionClassification.js} +3 -3
- package/dist/serialization/types/SessionFactRatingExamples.d.ts +14 -0
- package/dist/serialization/types/SessionFactRatingExamples.js +35 -0
- package/dist/serialization/types/SessionFactRatingInstruction.d.ts +14 -0
- package/dist/serialization/types/SessionFactRatingInstruction.js +35 -0
- package/dist/serialization/types/index.d.ts +24 -14
- package/dist/serialization/types/index.js +24 -14
- package/examples/graph/conversations.ts +297 -0
- package/examples/graph/group_graph_example.ts +61 -0
- package/examples/graph/user_graph_example.ts +158 -0
- package/package.json +2 -2
- package/serialization/resources/document/client/addDocuments.d.ts +2 -2
- package/serialization/resources/document/client/addDocuments.js +1 -1
- package/serialization/resources/document/client/batchGetDocuments.d.ts +3 -3
- package/serialization/resources/document/client/batchGetDocuments.js +2 -2
- package/serialization/resources/document/client/listCollections.d.ts +3 -3
- package/serialization/resources/document/client/listCollections.js +2 -2
- package/serialization/resources/graph/client/index.d.ts +1 -0
- package/serialization/resources/graph/client/index.js +17 -0
- package/serialization/resources/graph/client/requests/AddDataRequest.d.ts +16 -0
- package/serialization/resources/graph/client/requests/AddDataRequest.js +37 -0
- package/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +22 -0
- package/serialization/resources/graph/client/requests/GraphSearchQuery.js +43 -0
- package/serialization/resources/graph/client/requests/index.d.ts +2 -0
- package/serialization/resources/graph/client/requests/index.js +7 -0
- package/serialization/resources/graph/index.d.ts +2 -0
- package/serialization/resources/graph/index.js +18 -0
- package/serialization/resources/graph/resources/edge/client/getByGroupId.d.ts +11 -0
- package/serialization/resources/graph/resources/edge/client/getByGroupId.js +32 -0
- package/serialization/resources/graph/resources/edge/client/getByUserId.d.ts +11 -0
- package/serialization/resources/graph/resources/edge/client/getByUserId.js +32 -0
- package/serialization/resources/graph/resources/edge/client/index.d.ts +2 -0
- package/serialization/resources/graph/resources/edge/client/index.js +28 -0
- package/serialization/resources/graph/resources/edge/index.d.ts +1 -0
- package/serialization/resources/graph/resources/edge/index.js +17 -0
- package/serialization/resources/graph/resources/index.d.ts +2 -0
- package/serialization/resources/graph/resources/index.js +28 -0
- package/serialization/resources/graph/resources/node/client/getByGroupId.d.ts +11 -0
- package/serialization/resources/graph/resources/node/client/getByGroupId.js +32 -0
- package/serialization/resources/graph/resources/node/client/getByUserId.d.ts +11 -0
- package/serialization/resources/graph/resources/node/client/getByUserId.js +32 -0
- package/serialization/resources/graph/resources/node/client/index.d.ts +2 -0
- package/serialization/resources/graph/resources/node/client/index.js +28 -0
- package/serialization/resources/graph/resources/node/index.d.ts +1 -0
- package/serialization/resources/graph/resources/node/index.js +17 -0
- package/serialization/resources/group/client/index.d.ts +1 -0
- package/serialization/resources/group/client/index.js +17 -0
- package/serialization/resources/group/client/requests/CreateGroupRequest.d.ts +14 -0
- package/serialization/resources/group/client/requests/CreateGroupRequest.js +35 -0
- package/serialization/resources/group/client/requests/index.d.ts +1 -0
- package/serialization/resources/group/client/requests/index.js +5 -0
- package/serialization/resources/group/index.d.ts +1 -0
- package/serialization/resources/group/index.js +17 -0
- package/serialization/resources/index.d.ts +4 -0
- package/serialization/resources/index.js +5 -1
- package/serialization/resources/memory/client/requests/AddFactsRequest.d.ts +2 -2
- package/serialization/resources/memory/client/requests/AddFactsRequest.js +2 -2
- package/serialization/resources/memory/client/requests/CreateSessionRequest.d.ts +1 -1
- package/serialization/resources/memory/client/requests/CreateSessionRequest.js +1 -1
- package/serialization/resources/memory/client/requests/SessionSearchQuery.d.ts +1 -1
- package/serialization/resources/memory/client/requests/SessionSearchQuery.js +1 -1
- package/{dist/serialization/types/DocumentResponse.d.ts → serialization/types/ApidataDocument.d.ts} +2 -2
- package/{dist/serialization/types/DocumentResponse.js → serialization/types/ApidataDocument.js} +2 -2
- package/serialization/types/{DocumentCollectionResponse.d.ts → ApidataDocumentCollection.d.ts} +2 -2
- package/{dist/serialization/types/DocumentCollectionResponse.js → serialization/types/ApidataDocumentCollection.js} +2 -2
- package/serialization/types/{DocumentSearchResultPage.d.ts → ApidataDocumentSearchResponse.d.ts} +4 -4
- package/serialization/types/{DocumentSearchResultPage.js → ApidataDocumentSearchResponse.js} +4 -4
- package/serialization/types/{DocumentSearchResult.d.ts → ApidataDocumentWithScore.d.ts} +2 -2
- package/serialization/types/{DocumentSearchResult.js → ApidataDocumentWithScore.js} +2 -2
- package/serialization/types/EndSessionResponse.d.ts +2 -2
- package/serialization/types/EndSessionResponse.js +2 -2
- package/serialization/types/EntityEdge.d.ts +21 -0
- package/serialization/types/EntityEdge.js +42 -0
- package/serialization/types/EntityNode.d.ts +16 -0
- package/serialization/types/EntityNode.js +37 -0
- package/serialization/types/Episode.d.ts +18 -0
- package/serialization/types/Episode.js +39 -0
- package/serialization/types/EpisodeResponse.d.ts +13 -0
- package/serialization/types/EpisodeResponse.js +34 -0
- package/serialization/types/Fact.d.ts +9 -3
- package/serialization/types/Fact.js +9 -3
- package/serialization/types/GraphDataType.d.ts +10 -0
- package/serialization/types/GraphDataType.js +31 -0
- package/serialization/types/GraphSearchResults.d.ts +15 -0
- package/serialization/types/GraphSearchResults.js +36 -0
- package/serialization/types/GraphSearchScope.d.ts +10 -0
- package/serialization/types/GraphSearchScope.js +31 -0
- package/serialization/types/Group.d.ts +18 -0
- package/serialization/types/Group.js +39 -0
- package/serialization/types/Memory.d.ts +0 -1
- package/serialization/types/Memory.js +0 -1
- package/serialization/types/Message.d.ts +2 -2
- package/serialization/types/Message.js +2 -2
- package/serialization/types/{AddedFact.d.ts → NewFact.d.ts} +2 -2
- package/{dist/serialization/types/AddedFact.js → serialization/types/NewFact.js} +2 -2
- package/serialization/types/Reranker.d.ts +10 -0
- package/serialization/types/Reranker.js +36 -0
- package/serialization/types/Session.d.ts +2 -3
- package/serialization/types/Session.js +2 -3
- package/serialization/types/{ClassifySessionResponse.d.ts → SessionClassification.d.ts} +3 -3
- package/{dist/serialization/types/ClassifySessionResponse.js → serialization/types/SessionClassification.js} +3 -3
- package/serialization/types/SessionFactRatingExamples.d.ts +14 -0
- package/serialization/types/SessionFactRatingExamples.js +35 -0
- package/serialization/types/SessionFactRatingInstruction.d.ts +14 -0
- package/serialization/types/SessionFactRatingInstruction.js +35 -0
- package/serialization/types/index.d.ts +24 -14
- package/serialization/types/index.js +24 -14
- package/api/types/MemoryType.d.ts +0 -9
- package/api/types/MemoryType.js +0 -11
- package/dist/api/types/MemoryType.d.ts +0 -9
- package/dist/api/types/MemoryType.js +0 -11
- package/dist/langchain/index.d.ts +0 -3
- package/dist/langchain/message_history.d.ts +0 -39
- package/dist/langchain/message_history.js +0 -109
- package/dist/langchain/utils.d.ts +0 -4
- package/dist/langchain/utils.js +0 -44
- package/dist/langchain/vector_store.d.ts +0 -142
- package/dist/langchain/vector_store.js +0 -327
- package/dist/langchain/zep_memory.d.ts +0 -78
- package/dist/langchain/zep_memory.js +0 -174
- package/dist/serialization/types/MemoryType.d.ts +0 -10
- package/examples/langchain/message_history_example.ts +0 -60
- package/examples/langchain/message_history_vector_store_example.ts +0 -122
- package/examples/langchain/vector_store_example.ts +0 -71
- package/langchain/index.d.ts +0 -3
- package/langchain/message_history.d.ts +0 -39
- package/langchain/message_history.js +0 -109
- package/langchain/utils.d.ts +0 -4
- package/langchain/utils.js +0 -44
- package/langchain/vector_store.d.ts +0 -142
- package/langchain/vector_store.js +0 -327
- package/langchain/zep_memory.d.ts +0 -78
- package/langchain/zep_memory.js +0 -174
- package/serialization/types/MemoryType.d.ts +0 -10
- /package/api/{types/AddedFact.js → resources/graph/client/requests/AddDataRequest.js} +0 -0
- /package/api/{types/ClassifySessionResponse.js → resources/graph/client/requests/GraphSearchQuery.js} +0 -0
- /package/api/{types/DocumentCollectionResponse.js → resources/graph/resources/episode/client/requests/EpisodeGetByGroupIdRequest.js} +0 -0
- /package/api/{types/DocumentResponse.js → resources/graph/resources/episode/client/requests/EpisodeGetByUserIdRequest.js} +0 -0
- /package/api/{types/DocumentSearchResult.js → resources/group/client/requests/CreateGroupRequest.js} +0 -0
- /package/api/types/{DocumentSearchResultPage.js → ApidataDocument.js} +0 -0
- /package/{dist/api/types/AddedFact.js → api/types/ApidataDocumentCollection.js} +0 -0
- /package/{dist/api/types/ClassifySessionResponse.js → api/types/ApidataDocumentSearchResponse.js} +0 -0
- /package/{dist/api/types/DocumentCollectionResponse.js → api/types/ApidataDocumentWithScore.js} +0 -0
- /package/{dist/api/types/DocumentResponse.js → api/types/EntityEdge.js} +0 -0
- /package/{dist/api/types/DocumentSearchResult.js → api/types/EntityNode.js} +0 -0
- /package/{dist/api/types/DocumentSearchResultPage.js → api/types/Episode.js} +0 -0
package/Client.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import * as environments from "./environments";
|
|
|
5
5
|
import * as core from "./core";
|
|
6
6
|
import { Document } from "./api/resources/document/client/Client";
|
|
7
7
|
import { Memory } from "./api/resources/memory/client/Client";
|
|
8
|
+
import { Graph } from "./api/resources/graph/client/Client";
|
|
9
|
+
import { Group } from "./api/resources/group/client/Client";
|
|
8
10
|
import { User } from "./api/resources/user/client/Client";
|
|
9
11
|
export declare namespace ZepClient {
|
|
10
12
|
interface Options {
|
|
@@ -25,6 +27,10 @@ export declare class ZepClient {
|
|
|
25
27
|
get document(): Document;
|
|
26
28
|
protected _memory: Memory | undefined;
|
|
27
29
|
get memory(): Memory;
|
|
30
|
+
protected _graph: Graph | undefined;
|
|
31
|
+
get graph(): Graph;
|
|
32
|
+
protected _group: Group | undefined;
|
|
33
|
+
get group(): Group;
|
|
28
34
|
protected _user: User | undefined;
|
|
29
35
|
get user(): User;
|
|
30
36
|
}
|
package/Client.js
CHANGED
|
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ZepClient = void 0;
|
|
7
7
|
const Client_1 = require("./api/resources/document/client/Client");
|
|
8
8
|
const Client_2 = require("./api/resources/memory/client/Client");
|
|
9
|
-
const Client_3 = require("./api/resources/
|
|
9
|
+
const Client_3 = require("./api/resources/graph/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/group/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/user/client/Client");
|
|
10
12
|
class ZepClient {
|
|
11
13
|
constructor(_options = {}) {
|
|
12
14
|
this._options = _options;
|
|
@@ -19,9 +21,17 @@ class ZepClient {
|
|
|
19
21
|
var _a;
|
|
20
22
|
return ((_a = this._memory) !== null && _a !== void 0 ? _a : (this._memory = new Client_2.Memory(this._options)));
|
|
21
23
|
}
|
|
24
|
+
get graph() {
|
|
25
|
+
var _a;
|
|
26
|
+
return ((_a = this._graph) !== null && _a !== void 0 ? _a : (this._graph = new Client_3.Graph(this._options)));
|
|
27
|
+
}
|
|
28
|
+
get group() {
|
|
29
|
+
var _a;
|
|
30
|
+
return ((_a = this._group) !== null && _a !== void 0 ? _a : (this._group = new Client_4.Group(this._options)));
|
|
31
|
+
}
|
|
22
32
|
get user() {
|
|
23
33
|
var _a;
|
|
24
|
-
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new
|
|
34
|
+
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_5.User(this._options)));
|
|
25
35
|
}
|
|
26
36
|
}
|
|
27
37
|
exports.ZepClient = ZepClient;
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -30,7 +30,7 @@ export declare class Document {
|
|
|
30
30
|
* @example
|
|
31
31
|
* await zep.document.listCollections()
|
|
32
32
|
*/
|
|
33
|
-
listCollections(requestOptions?: Document.RequestOptions): Promise<Zep.
|
|
33
|
+
listCollections(requestOptions?: Document.RequestOptions): Promise<Zep.ApidataDocumentCollection[][]>;
|
|
34
34
|
/**
|
|
35
35
|
* Returns a DocumentCollection if it exists.
|
|
36
36
|
*
|
|
@@ -45,7 +45,7 @@ export declare class Document {
|
|
|
45
45
|
* @example
|
|
46
46
|
* await zep.document.getCollection("collectionName")
|
|
47
47
|
*/
|
|
48
|
-
getCollection(collectionName: string, requestOptions?: Document.RequestOptions): Promise<Zep.
|
|
48
|
+
getCollection(collectionName: string, requestOptions?: Document.RequestOptions): Promise<Zep.ApidataDocumentCollection>;
|
|
49
49
|
/**
|
|
50
50
|
* If a collection with the same name already exists, an error will be returned.
|
|
51
51
|
*
|
|
@@ -109,7 +109,7 @@ export declare class Document {
|
|
|
109
109
|
* content: "content"
|
|
110
110
|
* }])
|
|
111
111
|
*/
|
|
112
|
-
addDocuments(collectionName: string, request: Zep.CreateDocumentRequest[], requestOptions?: Document.RequestOptions): Promise<string[]>;
|
|
112
|
+
addDocuments(collectionName: string, request: Zep.CreateDocumentRequest[], requestOptions?: Document.RequestOptions): Promise<string[][]>;
|
|
113
113
|
/**
|
|
114
114
|
* Deletes specified Documents from a DocumentCollection.
|
|
115
115
|
*
|
|
@@ -139,7 +139,7 @@ export declare class Document {
|
|
|
139
139
|
* @example
|
|
140
140
|
* await zep.document.batchGetDocuments("collectionName")
|
|
141
141
|
*/
|
|
142
|
-
batchGetDocuments(collectionName: string, request?: Zep.GetDocumentListRequest, requestOptions?: Document.RequestOptions): Promise<Zep.
|
|
142
|
+
batchGetDocuments(collectionName: string, request?: Zep.GetDocumentListRequest, requestOptions?: Document.RequestOptions): Promise<Zep.ApidataDocument[][]>;
|
|
143
143
|
/**
|
|
144
144
|
* Updates Documents in a specified DocumentCollection.
|
|
145
145
|
*
|
|
@@ -169,9 +169,9 @@ export declare class Document {
|
|
|
169
169
|
* @throws {@link Zep.InternalServerError}
|
|
170
170
|
*
|
|
171
171
|
* @example
|
|
172
|
-
* await zep.document.
|
|
172
|
+
* await zep.document.getsADocumentFromADocumentCollectionByUuidCloudOnly("collectionName", "documentUUID")
|
|
173
173
|
*/
|
|
174
|
-
|
|
174
|
+
getsADocumentFromADocumentCollectionByUuidCloudOnly(collectionName: string, documentUuid: string, requestOptions?: Document.RequestOptions): Promise<Zep.ApidataDocument>;
|
|
175
175
|
/**
|
|
176
176
|
* Delete specified Document from a DocumentCollection.
|
|
177
177
|
*
|
|
@@ -202,9 +202,9 @@ export declare class Document {
|
|
|
202
202
|
* @throws {@link Zep.InternalServerError}
|
|
203
203
|
*
|
|
204
204
|
* @example
|
|
205
|
-
* await zep.document.
|
|
205
|
+
* await zep.document.updatesADocumentCloudOnly("collectionName", "documentUUID")
|
|
206
206
|
*/
|
|
207
|
-
|
|
207
|
+
updatesADocumentCloudOnly(collectionName: string, documentUuid: string, request?: Zep.UpdateDocumentRequest, requestOptions?: Document.RequestOptions): Promise<Zep.SuccessResponse>;
|
|
208
208
|
/**
|
|
209
209
|
* Searches over documents in a collection based on provided search criteria. One of text or metadata must be provided. Returns an empty list if no documents are found.
|
|
210
210
|
*
|
|
@@ -219,7 +219,7 @@ export declare class Document {
|
|
|
219
219
|
* @example
|
|
220
220
|
* await zep.document.search("collectionName")
|
|
221
221
|
*/
|
|
222
|
-
search(collectionName: string, request?: Zep.DocumentSearchPayload, requestOptions?: Document.RequestOptions): Promise<Zep.
|
|
222
|
+
search(collectionName: string, request?: Zep.DocumentSearchPayload, requestOptions?: Document.RequestOptions): Promise<Zep.ApidataDocumentSearchResponse>;
|
|
223
223
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
224
224
|
Authorization: string;
|
|
225
225
|
}>;
|
|
@@ -77,7 +77,7 @@ class Document {
|
|
|
77
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
78
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "collections"),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "
|
|
80
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
83
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -152,14 +152,14 @@ class Document {
|
|
|
152
152
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
153
153
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
|
|
154
154
|
method: "GET",
|
|
155
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "
|
|
155
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
156
156
|
contentType: "application/json",
|
|
157
157
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
158
158
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
159
159
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
160
160
|
});
|
|
161
161
|
if (_response.ok) {
|
|
162
|
-
return yield serializers.
|
|
162
|
+
return yield serializers.ApidataDocumentCollection.parseOrThrow(_response.body, {
|
|
163
163
|
unrecognizedObjectKeys: "passthrough",
|
|
164
164
|
allowUnrecognizedUnionMembers: true,
|
|
165
165
|
allowUnrecognizedEnumValues: true,
|
|
@@ -244,7 +244,7 @@ class Document {
|
|
|
244
244
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
245
245
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
|
|
246
246
|
method: "POST",
|
|
247
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "
|
|
247
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
248
248
|
contentType: "application/json",
|
|
249
249
|
body: yield serializers.CreateDocumentCollectionRequest.jsonOrThrow(request, {
|
|
250
250
|
unrecognizedObjectKeys: "strip",
|
|
@@ -338,7 +338,7 @@ class Document {
|
|
|
338
338
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
339
339
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
|
|
340
340
|
method: "DELETE",
|
|
341
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "
|
|
341
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
342
342
|
contentType: "application/json",
|
|
343
343
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
344
344
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -430,7 +430,7 @@ class Document {
|
|
|
430
430
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
431
431
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
|
|
432
432
|
method: "PATCH",
|
|
433
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "
|
|
433
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
434
434
|
contentType: "application/json",
|
|
435
435
|
body: yield serializers.UpdateDocumentCollectionRequest.jsonOrThrow(request, {
|
|
436
436
|
unrecognizedObjectKeys: "strip",
|
|
@@ -526,7 +526,7 @@ class Document {
|
|
|
526
526
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
527
527
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents`),
|
|
528
528
|
method: "POST",
|
|
529
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "
|
|
529
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
530
530
|
contentType: "application/json",
|
|
531
531
|
body: yield serializers.document.addDocuments.Request.jsonOrThrow(request, {
|
|
532
532
|
unrecognizedObjectKeys: "strip",
|
|
@@ -612,7 +612,7 @@ class Document {
|
|
|
612
612
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
613
613
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/batchDelete`),
|
|
614
614
|
method: "POST",
|
|
615
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "
|
|
615
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
616
616
|
contentType: "application/json",
|
|
617
617
|
body: yield serializers.document.batchDeleteDocuments.Request.jsonOrThrow(request, {
|
|
618
618
|
unrecognizedObjectKeys: "strip",
|
|
@@ -698,7 +698,7 @@ class Document {
|
|
|
698
698
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
699
699
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/batchGet`),
|
|
700
700
|
method: "POST",
|
|
701
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "
|
|
701
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
702
702
|
contentType: "application/json",
|
|
703
703
|
body: yield serializers.GetDocumentListRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
704
704
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -784,7 +784,7 @@ class Document {
|
|
|
784
784
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
785
785
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/batchUpdate`),
|
|
786
786
|
method: "PATCH",
|
|
787
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "
|
|
787
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
788
788
|
contentType: "application/json",
|
|
789
789
|
body: yield serializers.document.batchUpdateDocuments.Request.jsonOrThrow(request, {
|
|
790
790
|
unrecognizedObjectKeys: "strip",
|
|
@@ -862,22 +862,22 @@ class Document {
|
|
|
862
862
|
* @throws {@link Zep.InternalServerError}
|
|
863
863
|
*
|
|
864
864
|
* @example
|
|
865
|
-
* await zep.document.
|
|
865
|
+
* await zep.document.getsADocumentFromADocumentCollectionByUuidCloudOnly("collectionName", "documentUUID")
|
|
866
866
|
*/
|
|
867
|
-
|
|
867
|
+
getsADocumentFromADocumentCollectionByUuidCloudOnly(collectionName, documentUuid, requestOptions) {
|
|
868
868
|
var _a, _b;
|
|
869
869
|
return __awaiter(this, void 0, void 0, function* () {
|
|
870
870
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
871
871
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/uuid/${encodeURIComponent(documentUuid)}`),
|
|
872
872
|
method: "GET",
|
|
873
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "
|
|
873
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
874
874
|
contentType: "application/json",
|
|
875
875
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
876
876
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
877
877
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
878
878
|
});
|
|
879
879
|
if (_response.ok) {
|
|
880
|
-
return yield serializers.
|
|
880
|
+
return yield serializers.ApidataDocument.parseOrThrow(_response.body, {
|
|
881
881
|
unrecognizedObjectKeys: "passthrough",
|
|
882
882
|
allowUnrecognizedUnionMembers: true,
|
|
883
883
|
allowUnrecognizedEnumValues: true,
|
|
@@ -954,7 +954,7 @@ class Document {
|
|
|
954
954
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
955
955
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/uuid/${encodeURIComponent(documentUuid)}`),
|
|
956
956
|
method: "DELETE",
|
|
957
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "
|
|
957
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
958
958
|
contentType: "application/json",
|
|
959
959
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
960
960
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -1039,15 +1039,15 @@ class Document {
|
|
|
1039
1039
|
* @throws {@link Zep.InternalServerError}
|
|
1040
1040
|
*
|
|
1041
1041
|
* @example
|
|
1042
|
-
* await zep.document.
|
|
1042
|
+
* await zep.document.updatesADocumentCloudOnly("collectionName", "documentUUID")
|
|
1043
1043
|
*/
|
|
1044
|
-
|
|
1044
|
+
updatesADocumentCloudOnly(collectionName, documentUuid, request = {}, requestOptions) {
|
|
1045
1045
|
var _a, _b;
|
|
1046
1046
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1047
1047
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1048
1048
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/uuid/${encodeURIComponent(documentUuid)}`),
|
|
1049
1049
|
method: "PATCH",
|
|
1050
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "
|
|
1050
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1051
1051
|
contentType: "application/json",
|
|
1052
1052
|
body: yield serializers.UpdateDocumentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
1053
1053
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1144,7 +1144,7 @@ class Document {
|
|
|
1144
1144
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1145
1145
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/search`),
|
|
1146
1146
|
method: "POST",
|
|
1147
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "
|
|
1147
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1148
1148
|
contentType: "application/json",
|
|
1149
1149
|
queryParameters: _queryParams,
|
|
1150
1150
|
body: yield serializers.DocumentSearchPayload.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1153,7 +1153,7 @@ class Document {
|
|
|
1153
1153
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1154
1154
|
});
|
|
1155
1155
|
if (_response.ok) {
|
|
1156
|
-
return yield serializers.
|
|
1156
|
+
return yield serializers.ApidataDocumentSearchResponse.parseOrThrow(_response.body, {
|
|
1157
1157
|
unrecognizedObjectKeys: "passthrough",
|
|
1158
1158
|
allowUnrecognizedUnionMembers: true,
|
|
1159
1159
|
allowUnrecognizedEnumValues: true,
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Zep from "../../../index";
|
|
7
|
+
import { Edge } from "../resources/edge/client/Client";
|
|
8
|
+
import { Episode } from "../resources/episode/client/Client";
|
|
9
|
+
import { Node } from "../resources/node/client/Client";
|
|
10
|
+
export declare namespace Graph {
|
|
11
|
+
interface Options {
|
|
12
|
+
environment?: core.Supplier<environments.ZepEnvironment | string>;
|
|
13
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
14
|
+
fetcher?: core.FetchFunction;
|
|
15
|
+
}
|
|
16
|
+
interface RequestOptions {
|
|
17
|
+
timeoutInSeconds?: number;
|
|
18
|
+
maxRetries?: number;
|
|
19
|
+
abortSignal?: AbortSignal;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export declare class Graph {
|
|
23
|
+
protected readonly _options: Graph.Options;
|
|
24
|
+
constructor(_options?: Graph.Options);
|
|
25
|
+
/**
|
|
26
|
+
* Add data to the graph
|
|
27
|
+
*
|
|
28
|
+
* @param {Zep.AddDataRequest} request
|
|
29
|
+
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
+
*
|
|
31
|
+
* @throws {@link Zep.BadRequestError}
|
|
32
|
+
* @throws {@link Zep.InternalServerError}
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await zep.graph.add()
|
|
36
|
+
*/
|
|
37
|
+
add(request?: Zep.AddDataRequest, requestOptions?: Graph.RequestOptions): Promise<Zep.SuccessResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Perform a graph search query
|
|
40
|
+
*
|
|
41
|
+
* @param {Zep.GraphSearchQuery} request
|
|
42
|
+
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
|
+
*
|
|
44
|
+
* @throws {@link Zep.BadRequestError}
|
|
45
|
+
* @throws {@link Zep.InternalServerError}
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* await zep.graph.search({
|
|
49
|
+
* query: "query"
|
|
50
|
+
* })
|
|
51
|
+
*/
|
|
52
|
+
search(request: Zep.GraphSearchQuery, requestOptions?: Graph.RequestOptions): Promise<Zep.GraphSearchResults>;
|
|
53
|
+
protected _edge: Edge | undefined;
|
|
54
|
+
get edge(): Edge;
|
|
55
|
+
protected _episode: Episode | undefined;
|
|
56
|
+
get episode(): Episode;
|
|
57
|
+
protected _node: Node | undefined;
|
|
58
|
+
get node(): Node;
|
|
59
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
60
|
+
Authorization: string;
|
|
61
|
+
}>;
|
|
62
|
+
}
|