@getzep/zep-cloud 3.18.0 → 3.23.0
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/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +19 -14
- package/dist/cjs/api/errors/BadRequestError.d.ts +1 -2
- package/dist/cjs/api/errors/ConflictError.d.ts +9 -0
- package/dist/cjs/api/errors/ConflictError.js +52 -0
- package/dist/cjs/api/errors/index.d.ts +2 -1
- package/dist/cjs/api/errors/index.js +2 -1
- package/dist/cjs/api/resources/batch/client/Client.d.ts +161 -0
- package/dist/cjs/api/resources/batch/client/Client.js +777 -0
- package/dist/cjs/api/resources/batch/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/batch/client/index.js +17 -0
- package/dist/cjs/api/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.ts +15 -0
- package/dist/cjs/api/resources/batch/client/requests/ApidataAddBatchItemsRequest.js +5 -0
- package/dist/cjs/api/resources/batch/client/requests/ApidataCreateBatchRequest.d.ts +18 -0
- package/dist/cjs/api/resources/batch/client/requests/ApidataCreateBatchRequest.js +5 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchListItemsRequest.d.ts +25 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchListItemsRequest.js +5 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchListRequest.d.ts +25 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchListRequest.js +5 -0
- package/dist/cjs/api/resources/batch/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/batch/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/batch/index.d.ts +1 -0
- package/dist/cjs/api/resources/batch/index.js +17 -0
- package/dist/cjs/api/resources/context/client/Client.js +5 -35
- package/dist/cjs/api/resources/graph/client/Client.d.ts +24 -1
- package/dist/cjs/api/resources/graph/client/Client.js +109 -102
- package/dist/cjs/api/resources/graph/client/requests/AddDataRequest.d.ts +2 -0
- package/dist/cjs/api/resources/graph/client/requests/AddTripleRequest.d.ts +19 -2
- package/dist/cjs/api/resources/graph/client/requests/GraphListAllRequest.d.ts +5 -0
- package/dist/cjs/api/resources/graph/client/requests/GraphSearchQuery.d.ts +14 -3
- package/dist/cjs/api/resources/graph/resources/edge/client/Client.js +5 -35
- package/dist/cjs/api/resources/graph/resources/episode/client/Client.d.ts +21 -0
- package/dist/cjs/api/resources/graph/resources/episode/client/Client.js +104 -30
- package/dist/cjs/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.ts +15 -0
- package/dist/cjs/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.js +5 -0
- package/dist/cjs/api/resources/graph/resources/episode/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/graph/resources/index.js +3 -1
- package/dist/cjs/api/resources/graph/resources/node/client/Client.js +7 -49
- package/dist/cjs/api/resources/graph/resources/observation/client/Client.d.ts +81 -0
- package/dist/cjs/api/resources/graph/resources/observation/client/Client.js +333 -0
- package/dist/cjs/api/resources/graph/resources/observation/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/observation/client/index.js +2 -0
- package/dist/cjs/api/resources/graph/resources/observation/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/observation/index.js +17 -0
- package/dist/cjs/api/resources/graph/resources/threadSummary/client/Client.d.ts +66 -0
- package/dist/cjs/api/resources/graph/resources/threadSummary/client/Client.js +249 -0
- package/dist/cjs/api/resources/graph/resources/threadSummary/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/threadSummary/client/index.js +2 -0
- package/dist/cjs/api/resources/graph/resources/threadSummary/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/threadSummary/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/project/client/Client.js +1 -7
- package/dist/cjs/api/resources/thread/client/Client.d.ts +19 -2
- package/dist/cjs/api/resources/thread/client/Client.js +96 -16
- package/dist/cjs/api/resources/thread/client/requests/ThreadGetRequest.d.ts +1 -1
- package/dist/cjs/api/resources/user/client/Client.js +6 -42
- package/dist/cjs/api/types/ApidataBatchAddItemRole.d.ts +12 -0
- package/dist/cjs/api/types/ApidataBatchAddItemRole.js +14 -0
- package/dist/cjs/api/types/ApidataBatchAddItemType.d.ts +8 -0
- package/dist/cjs/api/types/ApidataBatchAddItemType.js +10 -0
- package/dist/cjs/api/types/BatchAddItem.d.ts +18 -0
- package/dist/cjs/api/types/BatchAddItem.js +5 -0
- package/dist/cjs/api/types/BatchItemDetail.d.ts +24 -0
- package/dist/cjs/api/types/BatchItemDetail.js +5 -0
- package/dist/cjs/api/types/BatchItemKind.d.ts +8 -0
- package/dist/cjs/api/types/BatchItemKind.js +10 -0
- package/dist/cjs/api/types/BatchItemListResponse.d.ts +8 -0
- package/dist/cjs/api/types/BatchItemListResponse.js +5 -0
- package/dist/cjs/api/types/BatchItemStatus.d.ts +13 -0
- package/dist/cjs/api/types/BatchItemStatus.js +15 -0
- package/dist/cjs/api/types/BatchListResponse.d.ts +8 -0
- package/dist/cjs/api/types/BatchListResponse.js +5 -0
- package/dist/cjs/api/types/BatchProgress.d.ts +13 -0
- package/dist/cjs/api/types/BatchProgress.js +5 -0
- package/dist/cjs/api/types/BatchStatus.d.ts +14 -0
- package/dist/cjs/api/types/BatchStatus.js +16 -0
- package/dist/cjs/api/types/BatchSummary.d.ts +16 -0
- package/dist/cjs/api/types/BatchSummary.js +5 -0
- package/dist/cjs/api/types/ComparisonOperator.d.ts +2 -1
- package/dist/cjs/api/types/ComparisonOperator.js +1 -0
- package/dist/cjs/api/types/DerivedNode.d.ts +44 -0
- package/dist/cjs/api/types/DerivedNode.js +5 -0
- package/dist/cjs/api/types/EntityEdge.d.ts +4 -0
- package/dist/cjs/api/types/EntityNode.d.ts +2 -0
- package/dist/cjs/api/types/Episode.d.ts +2 -0
- package/dist/cjs/api/types/EpisodeData.d.ts +2 -0
- package/dist/cjs/api/types/EpisodeMetadataFilter.d.ts +12 -0
- package/dist/cjs/api/types/EpisodeMetadataFilter.js +5 -0
- package/dist/cjs/api/types/GraphDataType.d.ts +2 -1
- package/dist/cjs/api/types/GraphDataType.js +1 -0
- package/dist/cjs/api/types/GraphObservationsRequest.d.ts +9 -0
- package/dist/cjs/api/types/GraphObservationsRequest.js +5 -0
- package/dist/cjs/api/types/GraphSearchResponseMetadata.d.ts +7 -0
- package/dist/cjs/api/types/GraphSearchResponseMetadata.js +5 -0
- package/dist/cjs/api/types/GraphSearchResults.d.ts +4 -0
- package/dist/cjs/api/types/GraphSearchScope.d.ts +4 -1
- package/dist/cjs/api/types/GraphSearchScope.js +3 -0
- package/dist/cjs/api/types/GraphThreadSummariesRequest.d.ts +9 -0
- package/dist/cjs/api/types/GraphThreadSummariesRequest.js +5 -0
- package/dist/cjs/api/types/GraphitiMetadataFilterGroupType.d.ts +11 -0
- package/dist/cjs/api/types/GraphitiMetadataFilterGroupType.js +10 -0
- package/dist/cjs/api/types/GraphitiSagaNode.d.ts +35 -0
- package/dist/cjs/api/types/GraphitiSagaNode.js +5 -0
- package/dist/cjs/api/types/MetadataFilterGroup.d.ts +12 -0
- package/dist/cjs/api/types/MetadataFilterGroup.js +5 -0
- package/dist/cjs/api/types/PatternResult.d.ts +17 -3
- package/dist/cjs/api/types/PatternSeeds.d.ts +1 -1
- package/dist/cjs/api/types/SearchFilters.d.ts +6 -1
- package/dist/cjs/api/types/ThreadSummary.d.ts +31 -0
- package/dist/cjs/api/types/ThreadSummary.js +5 -0
- package/dist/cjs/api/types/index.d.ts +20 -0
- package/dist/cjs/api/types/index.js +20 -0
- package/dist/cjs/serialization/resources/batch/client/add.d.ts +11 -0
- package/dist/cjs/serialization/resources/batch/client/add.js +42 -0
- package/dist/cjs/serialization/resources/batch/client/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/batch/client/index.js +41 -0
- package/dist/cjs/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.ts +13 -0
- package/dist/cjs/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.js +44 -0
- package/dist/cjs/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.d.ts +14 -0
- package/dist/cjs/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.js +45 -0
- package/dist/cjs/serialization/resources/batch/client/requests/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/batch/client/requests/index.js +7 -0
- package/dist/cjs/serialization/resources/batch/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/batch/index.js +17 -0
- package/dist/cjs/serialization/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/client/requests/AddDataRequest.js +1 -0
- package/dist/cjs/serialization/resources/graph/client/requests/AddTripleRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/client/requests/AddTripleRequest.js +1 -0
- package/dist/cjs/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +2 -0
- package/dist/cjs/serialization/resources/graph/client/requests/GraphSearchQuery.js +2 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/client/index.js +17 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.ts +12 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.js +43 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/index.js +17 -0
- package/dist/cjs/serialization/resources/graph/resources/index.d.ts +4 -0
- package/dist/cjs/serialization/resources/graph/resources/index.js +5 -1
- package/dist/cjs/serialization/resources/graph/resources/observation/client/getByGraphId.d.ts +11 -0
- package/dist/cjs/serialization/resources/graph/resources/observation/client/getByGraphId.js +42 -0
- package/dist/cjs/serialization/resources/graph/resources/observation/client/getByUserId.d.ts +11 -0
- package/dist/cjs/serialization/resources/graph/resources/observation/client/getByUserId.js +42 -0
- package/dist/cjs/serialization/resources/graph/resources/observation/client/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/graph/resources/observation/client/index.js +38 -0
- package/dist/cjs/serialization/resources/graph/resources/observation/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/resources/observation/index.js +17 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByGraphId.d.ts +11 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByGraphId.js +42 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByUserId.d.ts +11 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByUserId.js +42 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/index.js +38 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/index.js +17 -0
- package/dist/cjs/serialization/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/index.js +3 -1
- package/dist/cjs/serialization/types/ApidataBatchAddItemRole.d.ts +10 -0
- package/dist/cjs/serialization/types/ApidataBatchAddItemRole.js +41 -0
- package/dist/cjs/serialization/types/ApidataBatchAddItemType.d.ts +10 -0
- package/dist/cjs/serialization/types/ApidataBatchAddItemType.js +41 -0
- package/dist/cjs/serialization/types/BatchAddItem.d.ts +26 -0
- package/dist/cjs/serialization/types/BatchAddItem.js +57 -0
- package/dist/cjs/serialization/types/BatchItemDetail.d.ts +25 -0
- package/dist/cjs/serialization/types/BatchItemDetail.js +56 -0
- package/dist/cjs/serialization/types/BatchItemKind.d.ts +10 -0
- package/dist/cjs/serialization/types/BatchItemKind.js +41 -0
- package/dist/cjs/serialization/types/BatchItemListResponse.d.ts +14 -0
- package/dist/cjs/serialization/types/BatchItemListResponse.js +45 -0
- package/dist/cjs/serialization/types/BatchItemStatus.d.ts +10 -0
- package/dist/cjs/serialization/types/BatchItemStatus.js +41 -0
- package/dist/cjs/serialization/types/BatchListResponse.d.ts +14 -0
- package/dist/cjs/serialization/types/BatchListResponse.js +45 -0
- package/dist/cjs/serialization/types/BatchProgress.d.ts +19 -0
- package/dist/cjs/serialization/types/BatchProgress.js +50 -0
- package/dist/cjs/serialization/types/BatchStatus.d.ts +10 -0
- package/dist/cjs/serialization/types/BatchStatus.js +50 -0
- package/dist/cjs/serialization/types/BatchSummary.d.ts +24 -0
- package/dist/cjs/serialization/types/BatchSummary.js +55 -0
- package/dist/cjs/serialization/types/ComparisonOperator.d.ts +1 -1
- package/dist/cjs/serialization/types/ComparisonOperator.js +1 -1
- package/dist/cjs/serialization/types/DerivedNode.d.ts +24 -0
- package/dist/cjs/serialization/types/DerivedNode.js +55 -0
- package/dist/cjs/serialization/types/EntityEdge.d.ts +2 -0
- package/dist/cjs/serialization/types/EntityEdge.js +2 -0
- package/dist/cjs/serialization/types/EntityNode.d.ts +1 -0
- package/dist/cjs/serialization/types/EntityNode.js +1 -0
- package/dist/cjs/serialization/types/Episode.d.ts +1 -0
- package/dist/cjs/serialization/types/Episode.js +1 -0
- package/dist/cjs/serialization/types/EpisodeData.d.ts +1 -0
- package/dist/cjs/serialization/types/EpisodeData.js +1 -0
- package/dist/cjs/serialization/types/EpisodeMetadataFilter.d.ts +15 -0
- package/dist/cjs/serialization/types/EpisodeMetadataFilter.js +46 -0
- package/dist/cjs/serialization/types/GraphDataType.d.ts +1 -1
- package/dist/cjs/serialization/types/GraphDataType.js +1 -1
- package/dist/cjs/serialization/types/GraphObservationsRequest.d.ts +13 -0
- package/dist/cjs/serialization/types/GraphObservationsRequest.js +44 -0
- package/dist/cjs/serialization/types/GraphSearchResponseMetadata.d.ts +12 -0
- package/dist/cjs/serialization/types/GraphSearchResponseMetadata.js +43 -0
- package/dist/cjs/serialization/types/GraphSearchResults.d.ts +7 -0
- package/dist/cjs/serialization/types/GraphSearchResults.js +7 -0
- package/dist/cjs/serialization/types/GraphSearchScope.d.ts +1 -1
- package/dist/cjs/serialization/types/GraphSearchScope.js +1 -1
- package/dist/cjs/serialization/types/GraphThreadSummariesRequest.d.ts +13 -0
- package/dist/cjs/serialization/types/GraphThreadSummariesRequest.js +44 -0
- package/dist/cjs/serialization/types/GraphitiMetadataFilterGroupType.d.ts +10 -0
- package/dist/cjs/serialization/types/GraphitiMetadataFilterGroupType.js +41 -0
- package/dist/cjs/serialization/types/GraphitiSagaNode.d.ts +21 -0
- package/dist/cjs/serialization/types/GraphitiSagaNode.js +52 -0
- package/dist/cjs/serialization/types/MetadataFilterGroup.d.ts +16 -0
- package/dist/cjs/serialization/types/MetadataFilterGroup.js +48 -0
- package/dist/cjs/serialization/types/PatternResult.d.ts +1 -0
- package/dist/cjs/serialization/types/PatternResult.js +1 -0
- package/dist/cjs/serialization/types/SearchFilters.d.ts +1 -0
- package/dist/cjs/serialization/types/SearchFilters.js +2 -0
- package/dist/cjs/serialization/types/ThreadSummary.d.ts +17 -0
- package/dist/cjs/serialization/types/ThreadSummary.js +48 -0
- package/dist/cjs/serialization/types/index.d.ts +20 -0
- package/dist/cjs/serialization/types/index.js +20 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/errors/BadRequestError.d.mts +1 -2
- package/dist/esm/api/errors/ConflictError.d.mts +9 -0
- package/dist/esm/api/errors/ConflictError.mjs +15 -0
- package/dist/esm/api/errors/index.d.mts +2 -1
- package/dist/esm/api/errors/index.mjs +2 -1
- package/dist/esm/api/resources/batch/client/Client.d.mts +161 -0
- package/dist/esm/api/resources/batch/client/Client.mjs +740 -0
- package/dist/esm/api/resources/batch/client/index.d.mts +2 -0
- package/dist/esm/api/resources/batch/client/index.mjs +1 -0
- package/dist/esm/api/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.mts +15 -0
- package/dist/esm/api/resources/batch/client/requests/ApidataAddBatchItemsRequest.mjs +4 -0
- package/dist/esm/api/resources/batch/client/requests/ApidataCreateBatchRequest.d.mts +18 -0
- package/dist/esm/api/resources/batch/client/requests/ApidataCreateBatchRequest.mjs +4 -0
- package/dist/esm/api/resources/batch/client/requests/BatchListItemsRequest.d.mts +25 -0
- package/dist/esm/api/resources/batch/client/requests/BatchListItemsRequest.mjs +4 -0
- package/dist/esm/api/resources/batch/client/requests/BatchListRequest.d.mts +25 -0
- package/dist/esm/api/resources/batch/client/requests/BatchListRequest.mjs +4 -0
- package/dist/esm/api/resources/batch/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/batch/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/batch/index.d.mts +1 -0
- package/dist/esm/api/resources/batch/index.mjs +1 -0
- package/dist/esm/api/resources/context/client/Client.mjs +5 -35
- package/dist/esm/api/resources/graph/client/Client.d.mts +24 -1
- package/dist/esm/api/resources/graph/client/Client.mjs +109 -102
- package/dist/esm/api/resources/graph/client/requests/AddDataRequest.d.mts +2 -0
- package/dist/esm/api/resources/graph/client/requests/AddTripleRequest.d.mts +19 -2
- package/dist/esm/api/resources/graph/client/requests/GraphListAllRequest.d.mts +5 -0
- package/dist/esm/api/resources/graph/client/requests/GraphSearchQuery.d.mts +14 -3
- package/dist/esm/api/resources/graph/resources/edge/client/Client.mjs +5 -35
- package/dist/esm/api/resources/graph/resources/episode/client/Client.d.mts +21 -0
- package/dist/esm/api/resources/graph/resources/episode/client/Client.mjs +104 -30
- package/dist/esm/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.mts +15 -0
- package/dist/esm/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.mjs +4 -0
- package/dist/esm/api/resources/graph/resources/episode/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/graph/resources/index.mjs +2 -0
- package/dist/esm/api/resources/graph/resources/node/client/Client.mjs +7 -49
- package/dist/esm/api/resources/graph/resources/observation/client/Client.d.mts +81 -0
- package/dist/esm/api/resources/graph/resources/observation/client/Client.mjs +296 -0
- package/dist/esm/api/resources/graph/resources/observation/client/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/observation/client/index.mjs +1 -0
- package/dist/esm/api/resources/graph/resources/observation/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/observation/index.mjs +1 -0
- package/dist/esm/api/resources/graph/resources/threadSummary/client/Client.d.mts +66 -0
- package/dist/esm/api/resources/graph/resources/threadSummary/client/Client.mjs +212 -0
- package/dist/esm/api/resources/graph/resources/threadSummary/client/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/threadSummary/client/index.mjs +1 -0
- package/dist/esm/api/resources/graph/resources/threadSummary/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/threadSummary/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/project/client/Client.mjs +1 -7
- package/dist/esm/api/resources/thread/client/Client.d.mts +19 -2
- package/dist/esm/api/resources/thread/client/Client.mjs +96 -16
- package/dist/esm/api/resources/thread/client/requests/ThreadGetRequest.d.mts +1 -1
- package/dist/esm/api/resources/user/client/Client.mjs +6 -42
- package/dist/esm/api/types/ApidataBatchAddItemRole.d.mts +12 -0
- package/dist/esm/api/types/ApidataBatchAddItemRole.mjs +11 -0
- package/dist/esm/api/types/ApidataBatchAddItemType.d.mts +8 -0
- package/dist/esm/api/types/ApidataBatchAddItemType.mjs +7 -0
- package/dist/esm/api/types/BatchAddItem.d.mts +18 -0
- package/dist/esm/api/types/BatchAddItem.mjs +4 -0
- package/dist/esm/api/types/BatchItemDetail.d.mts +24 -0
- package/dist/esm/api/types/BatchItemDetail.mjs +4 -0
- package/dist/esm/api/types/BatchItemKind.d.mts +8 -0
- package/dist/esm/api/types/BatchItemKind.mjs +7 -0
- package/dist/esm/api/types/BatchItemListResponse.d.mts +8 -0
- package/dist/esm/api/types/BatchItemListResponse.mjs +4 -0
- package/dist/esm/api/types/BatchItemStatus.d.mts +13 -0
- package/dist/esm/api/types/BatchItemStatus.mjs +12 -0
- package/dist/esm/api/types/BatchListResponse.d.mts +8 -0
- package/dist/esm/api/types/BatchListResponse.mjs +4 -0
- package/dist/esm/api/types/BatchProgress.d.mts +13 -0
- package/dist/esm/api/types/BatchProgress.mjs +4 -0
- package/dist/esm/api/types/BatchStatus.d.mts +14 -0
- package/dist/esm/api/types/BatchStatus.mjs +13 -0
- package/dist/esm/api/types/BatchSummary.d.mts +16 -0
- package/dist/esm/api/types/BatchSummary.mjs +4 -0
- package/dist/esm/api/types/ComparisonOperator.d.mts +2 -1
- package/dist/esm/api/types/ComparisonOperator.mjs +1 -0
- package/dist/esm/api/types/DerivedNode.d.mts +44 -0
- package/dist/esm/api/types/DerivedNode.mjs +4 -0
- package/dist/esm/api/types/EntityEdge.d.mts +4 -0
- package/dist/esm/api/types/EntityNode.d.mts +2 -0
- package/dist/esm/api/types/Episode.d.mts +2 -0
- package/dist/esm/api/types/EpisodeData.d.mts +2 -0
- package/dist/esm/api/types/EpisodeMetadataFilter.d.mts +12 -0
- package/dist/esm/api/types/EpisodeMetadataFilter.mjs +4 -0
- package/dist/esm/api/types/GraphDataType.d.mts +2 -1
- package/dist/esm/api/types/GraphDataType.mjs +1 -0
- package/dist/esm/api/types/GraphObservationsRequest.d.mts +9 -0
- package/dist/esm/api/types/GraphObservationsRequest.mjs +4 -0
- package/dist/esm/api/types/GraphSearchResponseMetadata.d.mts +7 -0
- package/dist/esm/api/types/GraphSearchResponseMetadata.mjs +4 -0
- package/dist/esm/api/types/GraphSearchResults.d.mts +4 -0
- package/dist/esm/api/types/GraphSearchScope.d.mts +4 -1
- package/dist/esm/api/types/GraphSearchScope.mjs +3 -0
- package/dist/esm/api/types/GraphThreadSummariesRequest.d.mts +9 -0
- package/dist/esm/api/types/GraphThreadSummariesRequest.mjs +4 -0
- package/dist/esm/api/types/GraphitiMetadataFilterGroupType.d.mts +11 -0
- package/dist/esm/api/types/GraphitiMetadataFilterGroupType.mjs +7 -0
- package/dist/esm/api/types/GraphitiSagaNode.d.mts +35 -0
- package/dist/esm/api/types/GraphitiSagaNode.mjs +4 -0
- package/dist/esm/api/types/MetadataFilterGroup.d.mts +12 -0
- package/dist/esm/api/types/MetadataFilterGroup.mjs +4 -0
- package/dist/esm/api/types/PatternResult.d.mts +17 -3
- package/dist/esm/api/types/PatternSeeds.d.mts +1 -1
- package/dist/esm/api/types/SearchFilters.d.mts +6 -1
- package/dist/esm/api/types/ThreadSummary.d.mts +31 -0
- package/dist/esm/api/types/ThreadSummary.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +20 -0
- package/dist/esm/api/types/index.mjs +20 -0
- package/dist/esm/serialization/resources/batch/client/add.d.mts +11 -0
- package/dist/esm/serialization/resources/batch/client/add.mjs +6 -0
- package/dist/esm/serialization/resources/batch/client/index.d.mts +2 -0
- package/dist/esm/serialization/resources/batch/client/index.mjs +2 -0
- package/dist/esm/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.mts +13 -0
- package/dist/esm/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.mjs +8 -0
- package/dist/esm/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.d.mts +14 -0
- package/dist/esm/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.mjs +9 -0
- package/dist/esm/serialization/resources/batch/client/requests/index.d.mts +2 -0
- package/dist/esm/serialization/resources/batch/client/requests/index.mjs +2 -0
- package/dist/esm/serialization/resources/batch/index.d.mts +1 -0
- package/dist/esm/serialization/resources/batch/index.mjs +1 -0
- package/dist/esm/serialization/resources/graph/client/requests/AddDataRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/client/requests/AddDataRequest.mjs +1 -0
- package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.mjs +1 -0
- package/dist/esm/serialization/resources/graph/client/requests/GraphSearchQuery.d.mts +2 -0
- package/dist/esm/serialization/resources/graph/client/requests/GraphSearchQuery.mjs +2 -0
- package/dist/esm/serialization/resources/graph/resources/episode/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/resources/episode/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.mts +12 -0
- package/dist/esm/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.mjs +7 -0
- package/dist/esm/serialization/resources/graph/resources/episode/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/resources/episode/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/graph/resources/episode/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/resources/episode/index.mjs +1 -0
- package/dist/esm/serialization/resources/graph/resources/index.d.mts +4 -0
- package/dist/esm/serialization/resources/graph/resources/index.mjs +4 -0
- package/dist/esm/serialization/resources/graph/resources/observation/client/getByGraphId.d.mts +11 -0
- package/dist/esm/serialization/resources/graph/resources/observation/client/getByGraphId.mjs +6 -0
- package/dist/esm/serialization/resources/graph/resources/observation/client/getByUserId.d.mts +11 -0
- package/dist/esm/serialization/resources/graph/resources/observation/client/getByUserId.mjs +6 -0
- package/dist/esm/serialization/resources/graph/resources/observation/client/index.d.mts +2 -0
- package/dist/esm/serialization/resources/graph/resources/observation/client/index.mjs +2 -0
- package/dist/esm/serialization/resources/graph/resources/observation/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/resources/observation/index.mjs +1 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByGraphId.d.mts +11 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByGraphId.mjs +6 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByUserId.d.mts +11 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByUserId.mjs +6 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/client/index.d.mts +2 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/client/index.mjs +2 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/index.mjs +1 -0
- package/dist/esm/serialization/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/index.mjs +2 -0
- package/dist/esm/serialization/types/ApidataBatchAddItemRole.d.mts +10 -0
- package/dist/esm/serialization/types/ApidataBatchAddItemRole.mjs +5 -0
- package/dist/esm/serialization/types/ApidataBatchAddItemType.d.mts +10 -0
- package/dist/esm/serialization/types/ApidataBatchAddItemType.mjs +5 -0
- package/dist/esm/serialization/types/BatchAddItem.d.mts +26 -0
- package/dist/esm/serialization/types/BatchAddItem.mjs +21 -0
- package/dist/esm/serialization/types/BatchItemDetail.d.mts +25 -0
- package/dist/esm/serialization/types/BatchItemDetail.mjs +20 -0
- package/dist/esm/serialization/types/BatchItemKind.d.mts +10 -0
- package/dist/esm/serialization/types/BatchItemKind.mjs +5 -0
- package/dist/esm/serialization/types/BatchItemListResponse.d.mts +14 -0
- package/dist/esm/serialization/types/BatchItemListResponse.mjs +9 -0
- package/dist/esm/serialization/types/BatchItemStatus.d.mts +10 -0
- package/dist/esm/serialization/types/BatchItemStatus.mjs +5 -0
- package/dist/esm/serialization/types/BatchListResponse.d.mts +14 -0
- package/dist/esm/serialization/types/BatchListResponse.mjs +9 -0
- package/dist/esm/serialization/types/BatchProgress.d.mts +19 -0
- package/dist/esm/serialization/types/BatchProgress.mjs +14 -0
- package/dist/esm/serialization/types/BatchStatus.d.mts +10 -0
- package/dist/esm/serialization/types/BatchStatus.mjs +14 -0
- package/dist/esm/serialization/types/BatchSummary.d.mts +24 -0
- package/dist/esm/serialization/types/BatchSummary.mjs +19 -0
- package/dist/esm/serialization/types/ComparisonOperator.d.mts +1 -1
- package/dist/esm/serialization/types/ComparisonOperator.mjs +1 -1
- package/dist/esm/serialization/types/DerivedNode.d.mts +24 -0
- package/dist/esm/serialization/types/DerivedNode.mjs +19 -0
- package/dist/esm/serialization/types/EntityEdge.d.mts +2 -0
- package/dist/esm/serialization/types/EntityEdge.mjs +2 -0
- package/dist/esm/serialization/types/EntityNode.d.mts +1 -0
- package/dist/esm/serialization/types/EntityNode.mjs +1 -0
- package/dist/esm/serialization/types/Episode.d.mts +1 -0
- package/dist/esm/serialization/types/Episode.mjs +1 -0
- package/dist/esm/serialization/types/EpisodeData.d.mts +1 -0
- package/dist/esm/serialization/types/EpisodeData.mjs +1 -0
- package/dist/esm/serialization/types/EpisodeMetadataFilter.d.mts +15 -0
- package/dist/esm/serialization/types/EpisodeMetadataFilter.mjs +10 -0
- package/dist/esm/serialization/types/GraphDataType.d.mts +1 -1
- package/dist/esm/serialization/types/GraphDataType.mjs +1 -1
- package/dist/esm/serialization/types/GraphObservationsRequest.d.mts +13 -0
- package/dist/esm/serialization/types/GraphObservationsRequest.mjs +8 -0
- package/dist/esm/serialization/types/GraphSearchResponseMetadata.d.mts +12 -0
- package/dist/esm/serialization/types/GraphSearchResponseMetadata.mjs +7 -0
- package/dist/esm/serialization/types/GraphSearchResults.d.mts +7 -0
- package/dist/esm/serialization/types/GraphSearchResults.mjs +7 -0
- package/dist/esm/serialization/types/GraphSearchScope.d.mts +1 -1
- package/dist/esm/serialization/types/GraphSearchScope.mjs +1 -1
- package/dist/esm/serialization/types/GraphThreadSummariesRequest.d.mts +13 -0
- package/dist/esm/serialization/types/GraphThreadSummariesRequest.mjs +8 -0
- package/dist/esm/serialization/types/GraphitiMetadataFilterGroupType.d.mts +10 -0
- package/dist/esm/serialization/types/GraphitiMetadataFilterGroupType.mjs +5 -0
- package/dist/esm/serialization/types/GraphitiSagaNode.d.mts +21 -0
- package/dist/esm/serialization/types/GraphitiSagaNode.mjs +16 -0
- package/dist/esm/serialization/types/MetadataFilterGroup.d.mts +16 -0
- package/dist/esm/serialization/types/MetadataFilterGroup.mjs +12 -0
- package/dist/esm/serialization/types/PatternResult.d.mts +1 -0
- package/dist/esm/serialization/types/PatternResult.mjs +1 -0
- package/dist/esm/serialization/types/SearchFilters.d.mts +1 -0
- package/dist/esm/serialization/types/SearchFilters.mjs +2 -0
- package/dist/esm/serialization/types/ThreadSummary.d.mts +17 -0
- package/dist/esm/serialization/types/ThreadSummary.mjs +12 -0
- package/dist/esm/serialization/types/index.d.mts +20 -0
- package/dist/esm/serialization/types/index.mjs +20 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +16 -9
- package/reference.md +1481 -451
|
@@ -55,6 +55,8 @@ const errors = __importStar(require("../../../../errors/index.js"));
|
|
|
55
55
|
const Client_js_1 = require("../resources/edge/client/Client.js");
|
|
56
56
|
const Client_js_2 = require("../resources/episode/client/Client.js");
|
|
57
57
|
const Client_js_3 = require("../resources/node/client/Client.js");
|
|
58
|
+
const Client_js_4 = require("../resources/observation/client/Client.js");
|
|
59
|
+
const Client_js_5 = require("../resources/threadSummary/client/Client.js");
|
|
58
60
|
class Graph {
|
|
59
61
|
constructor(_options = {}) {
|
|
60
62
|
this._options = _options;
|
|
@@ -71,6 +73,14 @@ class Graph {
|
|
|
71
73
|
var _a;
|
|
72
74
|
return ((_a = this._node) !== null && _a !== void 0 ? _a : (this._node = new Client_js_3.Node(this._options)));
|
|
73
75
|
}
|
|
76
|
+
get observation() {
|
|
77
|
+
var _a;
|
|
78
|
+
return ((_a = this._observation) !== null && _a !== void 0 ? _a : (this._observation = new Client_js_4.Observation(this._options)));
|
|
79
|
+
}
|
|
80
|
+
get threadSummary() {
|
|
81
|
+
var _a;
|
|
82
|
+
return ((_a = this._threadSummary) !== null && _a !== void 0 ? _a : (this._threadSummary = new Client_js_5.ThreadSummary(this._options)));
|
|
83
|
+
}
|
|
74
84
|
/**
|
|
75
85
|
* Lists all custom instructions for a project, user, or graph.
|
|
76
86
|
*
|
|
@@ -125,13 +135,7 @@ class Graph {
|
|
|
125
135
|
if (_response.error.reason === "status-code") {
|
|
126
136
|
switch (_response.error.statusCode) {
|
|
127
137
|
case 400:
|
|
128
|
-
throw new Zep.BadRequestError(
|
|
129
|
-
unrecognizedObjectKeys: "passthrough",
|
|
130
|
-
allowUnrecognizedUnionMembers: true,
|
|
131
|
-
allowUnrecognizedEnumValues: true,
|
|
132
|
-
skipValidation: true,
|
|
133
|
-
breadcrumbsPrefix: ["response"],
|
|
134
|
-
}), _response.rawResponse);
|
|
138
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
135
139
|
case 404:
|
|
136
140
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
137
141
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -226,13 +230,7 @@ class Graph {
|
|
|
226
230
|
if (_response.error.reason === "status-code") {
|
|
227
231
|
switch (_response.error.statusCode) {
|
|
228
232
|
case 400:
|
|
229
|
-
throw new Zep.BadRequestError(
|
|
230
|
-
unrecognizedObjectKeys: "passthrough",
|
|
231
|
-
allowUnrecognizedUnionMembers: true,
|
|
232
|
-
allowUnrecognizedEnumValues: true,
|
|
233
|
-
skipValidation: true,
|
|
234
|
-
breadcrumbsPrefix: ["response"],
|
|
235
|
-
}), _response.rawResponse);
|
|
233
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
236
234
|
case 404:
|
|
237
235
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
238
236
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -322,13 +320,7 @@ class Graph {
|
|
|
322
320
|
if (_response.error.reason === "status-code") {
|
|
323
321
|
switch (_response.error.statusCode) {
|
|
324
322
|
case 400:
|
|
325
|
-
throw new Zep.BadRequestError(
|
|
326
|
-
unrecognizedObjectKeys: "passthrough",
|
|
327
|
-
allowUnrecognizedUnionMembers: true,
|
|
328
|
-
allowUnrecognizedEnumValues: true,
|
|
329
|
-
skipValidation: true,
|
|
330
|
-
breadcrumbsPrefix: ["response"],
|
|
331
|
-
}), _response.rawResponse);
|
|
323
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
332
324
|
case 404:
|
|
333
325
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
334
326
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -424,13 +416,7 @@ class Graph {
|
|
|
424
416
|
if (_response.error.reason === "status-code") {
|
|
425
417
|
switch (_response.error.statusCode) {
|
|
426
418
|
case 400:
|
|
427
|
-
throw new Zep.BadRequestError(
|
|
428
|
-
unrecognizedObjectKeys: "passthrough",
|
|
429
|
-
allowUnrecognizedUnionMembers: true,
|
|
430
|
-
allowUnrecognizedEnumValues: true,
|
|
431
|
-
skipValidation: true,
|
|
432
|
-
breadcrumbsPrefix: ["response"],
|
|
433
|
-
}), _response.rawResponse);
|
|
419
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
434
420
|
case 404:
|
|
435
421
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
436
422
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -520,13 +506,7 @@ class Graph {
|
|
|
520
506
|
if (_response.error.reason === "status-code") {
|
|
521
507
|
switch (_response.error.statusCode) {
|
|
522
508
|
case 400:
|
|
523
|
-
throw new Zep.BadRequestError(
|
|
524
|
-
unrecognizedObjectKeys: "passthrough",
|
|
525
|
-
allowUnrecognizedUnionMembers: true,
|
|
526
|
-
allowUnrecognizedEnumValues: true,
|
|
527
|
-
skipValidation: true,
|
|
528
|
-
breadcrumbsPrefix: ["response"],
|
|
529
|
-
}), _response.rawResponse);
|
|
509
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
530
510
|
case 404:
|
|
531
511
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
532
512
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -618,13 +598,7 @@ class Graph {
|
|
|
618
598
|
if (_response.error.reason === "status-code") {
|
|
619
599
|
switch (_response.error.statusCode) {
|
|
620
600
|
case 400:
|
|
621
|
-
throw new Zep.BadRequestError(
|
|
622
|
-
unrecognizedObjectKeys: "passthrough",
|
|
623
|
-
allowUnrecognizedUnionMembers: true,
|
|
624
|
-
allowUnrecognizedEnumValues: true,
|
|
625
|
-
skipValidation: true,
|
|
626
|
-
breadcrumbsPrefix: ["response"],
|
|
627
|
-
}), _response.rawResponse);
|
|
601
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
628
602
|
case 500:
|
|
629
603
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
630
604
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -659,7 +633,9 @@ class Graph {
|
|
|
659
633
|
});
|
|
660
634
|
}
|
|
661
635
|
/**
|
|
662
|
-
*
|
|
636
|
+
* Deprecated. Use the [Batch API](/adding-batch-data) (`client.batch.*`) instead.
|
|
637
|
+
*
|
|
638
|
+
* Adds data to the graph in batch mode, processing episodes concurrently.
|
|
663
639
|
*
|
|
664
640
|
* @param {Zep.AddDataBatchRequest} request
|
|
665
641
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -710,13 +686,7 @@ class Graph {
|
|
|
710
686
|
if (_response.error.reason === "status-code") {
|
|
711
687
|
switch (_response.error.statusCode) {
|
|
712
688
|
case 400:
|
|
713
|
-
throw new Zep.BadRequestError(
|
|
714
|
-
unrecognizedObjectKeys: "passthrough",
|
|
715
|
-
allowUnrecognizedUnionMembers: true,
|
|
716
|
-
allowUnrecognizedEnumValues: true,
|
|
717
|
-
skipValidation: true,
|
|
718
|
-
breadcrumbsPrefix: ["response"],
|
|
719
|
-
}), _response.rawResponse);
|
|
689
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
720
690
|
case 500:
|
|
721
691
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
722
692
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -800,13 +770,7 @@ class Graph {
|
|
|
800
770
|
if (_response.error.reason === "status-code") {
|
|
801
771
|
switch (_response.error.statusCode) {
|
|
802
772
|
case 400:
|
|
803
|
-
throw new Zep.BadRequestError(
|
|
804
|
-
unrecognizedObjectKeys: "passthrough",
|
|
805
|
-
allowUnrecognizedUnionMembers: true,
|
|
806
|
-
allowUnrecognizedEnumValues: true,
|
|
807
|
-
skipValidation: true,
|
|
808
|
-
breadcrumbsPrefix: ["response"],
|
|
809
|
-
}), _response.rawResponse);
|
|
773
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
810
774
|
case 500:
|
|
811
775
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
812
776
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -887,13 +851,7 @@ class Graph {
|
|
|
887
851
|
if (_response.error.reason === "status-code") {
|
|
888
852
|
switch (_response.error.statusCode) {
|
|
889
853
|
case 400:
|
|
890
|
-
throw new Zep.BadRequestError(
|
|
891
|
-
unrecognizedObjectKeys: "passthrough",
|
|
892
|
-
allowUnrecognizedUnionMembers: true,
|
|
893
|
-
allowUnrecognizedEnumValues: true,
|
|
894
|
-
skipValidation: true,
|
|
895
|
-
breadcrumbsPrefix: ["response"],
|
|
896
|
-
}), _response.rawResponse);
|
|
854
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
897
855
|
case 500:
|
|
898
856
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
899
857
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -976,13 +934,7 @@ class Graph {
|
|
|
976
934
|
if (_response.error.reason === "status-code") {
|
|
977
935
|
switch (_response.error.statusCode) {
|
|
978
936
|
case 400:
|
|
979
|
-
throw new Zep.BadRequestError(
|
|
980
|
-
unrecognizedObjectKeys: "passthrough",
|
|
981
|
-
allowUnrecognizedUnionMembers: true,
|
|
982
|
-
allowUnrecognizedEnumValues: true,
|
|
983
|
-
skipValidation: true,
|
|
984
|
-
breadcrumbsPrefix: ["response"],
|
|
985
|
-
}), _response.rawResponse);
|
|
937
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
986
938
|
case 500:
|
|
987
939
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
988
940
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1029,6 +981,7 @@ class Graph {
|
|
|
1029
981
|
* await client.graph.listAll({
|
|
1030
982
|
* pageNumber: 1,
|
|
1031
983
|
* pageSize: 1,
|
|
984
|
+
* search: "search",
|
|
1032
985
|
* orderBy: "order_by",
|
|
1033
986
|
* asc: true
|
|
1034
987
|
* })
|
|
@@ -1039,7 +992,7 @@ class Graph {
|
|
|
1039
992
|
__listAll() {
|
|
1040
993
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
1041
994
|
var _a, _b, _c, _d;
|
|
1042
|
-
const { pageNumber, pageSize, orderBy, asc } = request;
|
|
995
|
+
const { pageNumber, pageSize, search, orderBy, asc } = request;
|
|
1043
996
|
const _queryParams = {};
|
|
1044
997
|
if (pageNumber != null) {
|
|
1045
998
|
_queryParams["pageNumber"] = pageNumber.toString();
|
|
@@ -1047,6 +1000,9 @@ class Graph {
|
|
|
1047
1000
|
if (pageSize != null) {
|
|
1048
1001
|
_queryParams["pageSize"] = pageSize.toString();
|
|
1049
1002
|
}
|
|
1003
|
+
if (search != null) {
|
|
1004
|
+
_queryParams["search"] = search;
|
|
1005
|
+
}
|
|
1050
1006
|
if (orderBy != null) {
|
|
1051
1007
|
_queryParams["order_by"] = orderBy;
|
|
1052
1008
|
}
|
|
@@ -1077,13 +1033,7 @@ class Graph {
|
|
|
1077
1033
|
if (_response.error.reason === "status-code") {
|
|
1078
1034
|
switch (_response.error.statusCode) {
|
|
1079
1035
|
case 400:
|
|
1080
|
-
throw new Zep.BadRequestError(
|
|
1081
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1082
|
-
allowUnrecognizedUnionMembers: true,
|
|
1083
|
-
allowUnrecognizedEnumValues: true,
|
|
1084
|
-
skipValidation: true,
|
|
1085
|
-
breadcrumbsPrefix: ["response"],
|
|
1086
|
-
}), _response.rawResponse);
|
|
1036
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1087
1037
|
case 500:
|
|
1088
1038
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1089
1039
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1169,13 +1119,7 @@ class Graph {
|
|
|
1169
1119
|
if (_response.error.reason === "status-code") {
|
|
1170
1120
|
switch (_response.error.statusCode) {
|
|
1171
1121
|
case 400:
|
|
1172
|
-
throw new Zep.BadRequestError(
|
|
1173
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1174
|
-
allowUnrecognizedUnionMembers: true,
|
|
1175
|
-
allowUnrecognizedEnumValues: true,
|
|
1176
|
-
skipValidation: true,
|
|
1177
|
-
breadcrumbsPrefix: ["response"],
|
|
1178
|
-
}), _response.rawResponse);
|
|
1122
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1179
1123
|
case 403:
|
|
1180
1124
|
throw new Zep.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1181
1125
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1274,13 +1218,7 @@ class Graph {
|
|
|
1274
1218
|
if (_response.error.reason === "status-code") {
|
|
1275
1219
|
switch (_response.error.statusCode) {
|
|
1276
1220
|
case 400:
|
|
1277
|
-
throw new Zep.BadRequestError(
|
|
1278
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1279
|
-
allowUnrecognizedUnionMembers: true,
|
|
1280
|
-
allowUnrecognizedEnumValues: true,
|
|
1281
|
-
skipValidation: true,
|
|
1282
|
-
breadcrumbsPrefix: ["response"],
|
|
1283
|
-
}), _response.rawResponse);
|
|
1221
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1284
1222
|
case 500:
|
|
1285
1223
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1286
1224
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1437,13 +1375,7 @@ class Graph {
|
|
|
1437
1375
|
if (_response.error.reason === "status-code") {
|
|
1438
1376
|
switch (_response.error.statusCode) {
|
|
1439
1377
|
case 400:
|
|
1440
|
-
throw new Zep.BadRequestError(
|
|
1441
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1442
|
-
allowUnrecognizedUnionMembers: true,
|
|
1443
|
-
allowUnrecognizedEnumValues: true,
|
|
1444
|
-
skipValidation: true,
|
|
1445
|
-
breadcrumbsPrefix: ["response"],
|
|
1446
|
-
}), _response.rawResponse);
|
|
1378
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1447
1379
|
case 404:
|
|
1448
1380
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1449
1381
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1534,13 +1466,88 @@ class Graph {
|
|
|
1534
1466
|
if (_response.error.reason === "status-code") {
|
|
1535
1467
|
switch (_response.error.statusCode) {
|
|
1536
1468
|
case 400:
|
|
1537
|
-
throw new Zep.BadRequestError(
|
|
1469
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1470
|
+
case 404:
|
|
1471
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1472
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1473
|
+
allowUnrecognizedUnionMembers: true,
|
|
1474
|
+
allowUnrecognizedEnumValues: true,
|
|
1475
|
+
skipValidation: true,
|
|
1476
|
+
breadcrumbsPrefix: ["response"],
|
|
1477
|
+
}), _response.rawResponse);
|
|
1478
|
+
case 500:
|
|
1479
|
+
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1538
1480
|
unrecognizedObjectKeys: "passthrough",
|
|
1539
1481
|
allowUnrecognizedUnionMembers: true,
|
|
1540
1482
|
allowUnrecognizedEnumValues: true,
|
|
1541
1483
|
skipValidation: true,
|
|
1542
1484
|
breadcrumbsPrefix: ["response"],
|
|
1543
1485
|
}), _response.rawResponse);
|
|
1486
|
+
default:
|
|
1487
|
+
throw new errors.ZepError({
|
|
1488
|
+
statusCode: _response.error.statusCode,
|
|
1489
|
+
body: _response.error.body,
|
|
1490
|
+
rawResponse: _response.rawResponse,
|
|
1491
|
+
});
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
switch (_response.error.reason) {
|
|
1495
|
+
case "non-json":
|
|
1496
|
+
throw new errors.ZepError({
|
|
1497
|
+
statusCode: _response.error.statusCode,
|
|
1498
|
+
body: _response.error.rawBody,
|
|
1499
|
+
rawResponse: _response.rawResponse,
|
|
1500
|
+
});
|
|
1501
|
+
case "timeout":
|
|
1502
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling PATCH /graph/{graphId}.");
|
|
1503
|
+
case "unknown":
|
|
1504
|
+
throw new errors.ZepError({
|
|
1505
|
+
message: _response.error.errorMessage,
|
|
1506
|
+
rawResponse: _response.rawResponse,
|
|
1507
|
+
});
|
|
1508
|
+
}
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1511
|
+
/**
|
|
1512
|
+
* Hints Zep to warm a graph for low-latency search
|
|
1513
|
+
*
|
|
1514
|
+
* @param {string} graphId - The graph_id of the graph to warm.
|
|
1515
|
+
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
1516
|
+
*
|
|
1517
|
+
* @throws {@link Zep.NotFoundError}
|
|
1518
|
+
* @throws {@link Zep.InternalServerError}
|
|
1519
|
+
*
|
|
1520
|
+
* @example
|
|
1521
|
+
* await client.graph.warm("graphId")
|
|
1522
|
+
*/
|
|
1523
|
+
warm(graphId, requestOptions) {
|
|
1524
|
+
return core.HttpResponsePromise.fromPromise(this.__warm(graphId, requestOptions));
|
|
1525
|
+
}
|
|
1526
|
+
__warm(graphId, requestOptions) {
|
|
1527
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1528
|
+
var _a, _b, _c, _d;
|
|
1529
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1530
|
+
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.ZepEnvironment.Default, `graph/${encodeURIComponent(graphId)}/warm`),
|
|
1531
|
+
method: "GET",
|
|
1532
|
+
headers: (0, headers_js_1.mergeHeaders)((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1533
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1534
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1535
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1536
|
+
});
|
|
1537
|
+
if (_response.ok) {
|
|
1538
|
+
return {
|
|
1539
|
+
data: serializers.SuccessResponse.parseOrThrow(_response.body, {
|
|
1540
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1541
|
+
allowUnrecognizedUnionMembers: true,
|
|
1542
|
+
allowUnrecognizedEnumValues: true,
|
|
1543
|
+
skipValidation: true,
|
|
1544
|
+
breadcrumbsPrefix: ["response"],
|
|
1545
|
+
}),
|
|
1546
|
+
rawResponse: _response.rawResponse,
|
|
1547
|
+
};
|
|
1548
|
+
}
|
|
1549
|
+
if (_response.error.reason === "status-code") {
|
|
1550
|
+
switch (_response.error.statusCode) {
|
|
1544
1551
|
case 404:
|
|
1545
1552
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1546
1553
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1573,7 +1580,7 @@ class Graph {
|
|
|
1573
1580
|
rawResponse: _response.rawResponse,
|
|
1574
1581
|
});
|
|
1575
1582
|
case "timeout":
|
|
1576
|
-
throw new errors.ZepTimeoutError("Timeout exceeded when calling
|
|
1583
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling GET /graph/{graphId}/warm.");
|
|
1577
1584
|
case "unknown":
|
|
1578
1585
|
throw new errors.ZepError({
|
|
1579
1586
|
message: _response.error.errorMessage,
|
|
@@ -14,6 +14,8 @@ export interface AddDataRequest {
|
|
|
14
14
|
data: string;
|
|
15
15
|
/** graph_id is the ID of the graph to which the data will be added. If adding to the user graph, please use user_id field instead. */
|
|
16
16
|
graphId?: string;
|
|
17
|
+
/** Optional metadata key-value pairs. Max 10 keys. Values must be strings, numbers, booleans, or arrays of scalars. */
|
|
18
|
+
metadata?: Record<string, unknown>;
|
|
17
19
|
sourceDescription?: string;
|
|
18
20
|
type: Zep.GraphDataType;
|
|
19
21
|
/** User ID is the ID of the user to which the data will be added. If not adding to a user graph, please use graph_id field instead. */
|
|
@@ -27,12 +27,23 @@ export interface AddTripleRequest {
|
|
|
27
27
|
graphId?: string;
|
|
28
28
|
/** The time (if any) at which the fact stops being true */
|
|
29
29
|
invalidAt?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional metadata key-value pairs for the shadow episode created for this fact triple.
|
|
32
|
+
* Max 10 keys. Values must be strings, numbers, or booleans.
|
|
33
|
+
*/
|
|
34
|
+
metadata?: Record<string, unknown>;
|
|
30
35
|
/**
|
|
31
36
|
* Additional attributes of the source node. Values must be scalar types (string, number, boolean, or null).
|
|
32
37
|
* Nested objects and arrays are not allowed.
|
|
33
38
|
*/
|
|
34
39
|
sourceNodeAttributes?: Record<string, unknown>;
|
|
35
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* The labels for the source node. At most one entity-type label may be
|
|
42
|
+
* provided so that manually-added triples remain consistent with automatic
|
|
43
|
+
* episode extraction, which assigns one best-match entity type per node.
|
|
44
|
+
* The base "Entity" label is added implicitly by the graph layer on save
|
|
45
|
+
* and does not need to be supplied here.
|
|
46
|
+
*/
|
|
36
47
|
sourceNodeLabels?: string[];
|
|
37
48
|
/** The name of the source node to add */
|
|
38
49
|
sourceNodeName?: string;
|
|
@@ -45,7 +56,13 @@ export interface AddTripleRequest {
|
|
|
45
56
|
* Nested objects and arrays are not allowed.
|
|
46
57
|
*/
|
|
47
58
|
targetNodeAttributes?: Record<string, unknown>;
|
|
48
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* The labels for the target node. At most one entity-type label may be
|
|
61
|
+
* provided so that manually-added triples remain consistent with automatic
|
|
62
|
+
* episode extraction, which assigns one best-match entity type per node.
|
|
63
|
+
* The base "Entity" label is added implicitly by the graph layer on save
|
|
64
|
+
* and does not need to be supplied here.
|
|
65
|
+
*/
|
|
49
66
|
targetNodeLabels?: string[];
|
|
50
67
|
/** The name of the target node to add */
|
|
51
68
|
targetNodeName?: string;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* {
|
|
7
7
|
* pageNumber: 1,
|
|
8
8
|
* pageSize: 1,
|
|
9
|
+
* search: "search",
|
|
9
10
|
* orderBy: "order_by",
|
|
10
11
|
* asc: true
|
|
11
12
|
* }
|
|
@@ -19,6 +20,10 @@ export interface GraphListAllRequest {
|
|
|
19
20
|
* Number of graphs to retrieve per page.
|
|
20
21
|
*/
|
|
21
22
|
pageSize?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Search term for filtering graphs by graph_id.
|
|
25
|
+
*/
|
|
26
|
+
search?: string;
|
|
22
27
|
/**
|
|
23
28
|
* Column to sort by (created_at, group_id, name).
|
|
24
29
|
*/
|
|
@@ -15,15 +15,26 @@ export interface GraphSearchQuery {
|
|
|
15
15
|
centerNodeUuid?: string;
|
|
16
16
|
/** The graph_id to search in. When searching user graph, please use user_id instead. */
|
|
17
17
|
graphId?: string;
|
|
18
|
-
/** The maximum number of facts to retrieve. Defaults to 10. Limited to 50. */
|
|
18
|
+
/** The maximum number of facts to retrieve for non-auto scopes. Defaults to 10. Limited to 50. Ignored when scope=auto. */
|
|
19
19
|
limit?: number;
|
|
20
|
+
/** Maximum total characters across all selected results when scope=auto. Defaults to 2500. Limited to 50000. */
|
|
21
|
+
maxCharacters?: number;
|
|
20
22
|
/** weighting for maximal marginal relevance */
|
|
21
23
|
mmrLambda?: number;
|
|
22
24
|
/** The string to search for (required) */
|
|
23
25
|
query: string;
|
|
24
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Defaults to RRF. Ignored when scope=auto except node_distance and episode_mentions are rejected;
|
|
28
|
+
* auto search always uses RRF retrieval and applies its own internal rerank after retrieval.
|
|
29
|
+
*/
|
|
25
30
|
reranker?: Zep.Reranker;
|
|
26
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* When scope=auto, include the selected raw graph results alongside the materialized context block.
|
|
33
|
+
* For graph-service-backed auto mode, selected raw results may include episodes,
|
|
34
|
+
* edges, nodes, observations, and thread_summaries.
|
|
35
|
+
*/
|
|
36
|
+
returnRawResults?: boolean;
|
|
37
|
+
/** Defaults to Edges. */
|
|
27
38
|
scope?: Zep.GraphSearchScope;
|
|
28
39
|
/** Search filters to apply to the search */
|
|
29
40
|
searchFilters?: Zep.SearchFilters;
|
|
@@ -104,13 +104,7 @@ class Edge {
|
|
|
104
104
|
if (_response.error.reason === "status-code") {
|
|
105
105
|
switch (_response.error.statusCode) {
|
|
106
106
|
case 400:
|
|
107
|
-
throw new Zep.BadRequestError(
|
|
108
|
-
unrecognizedObjectKeys: "passthrough",
|
|
109
|
-
allowUnrecognizedUnionMembers: true,
|
|
110
|
-
allowUnrecognizedEnumValues: true,
|
|
111
|
-
skipValidation: true,
|
|
112
|
-
breadcrumbsPrefix: ["response"],
|
|
113
|
-
}), _response.rawResponse);
|
|
107
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
114
108
|
case 500:
|
|
115
109
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
116
110
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -192,13 +186,7 @@ class Edge {
|
|
|
192
186
|
if (_response.error.reason === "status-code") {
|
|
193
187
|
switch (_response.error.statusCode) {
|
|
194
188
|
case 400:
|
|
195
|
-
throw new Zep.BadRequestError(
|
|
196
|
-
unrecognizedObjectKeys: "passthrough",
|
|
197
|
-
allowUnrecognizedUnionMembers: true,
|
|
198
|
-
allowUnrecognizedEnumValues: true,
|
|
199
|
-
skipValidation: true,
|
|
200
|
-
breadcrumbsPrefix: ["response"],
|
|
201
|
-
}), _response.rawResponse);
|
|
189
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
202
190
|
case 500:
|
|
203
191
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
204
192
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -274,13 +262,7 @@ class Edge {
|
|
|
274
262
|
if (_response.error.reason === "status-code") {
|
|
275
263
|
switch (_response.error.statusCode) {
|
|
276
264
|
case 400:
|
|
277
|
-
throw new Zep.BadRequestError(
|
|
278
|
-
unrecognizedObjectKeys: "passthrough",
|
|
279
|
-
allowUnrecognizedUnionMembers: true,
|
|
280
|
-
allowUnrecognizedEnumValues: true,
|
|
281
|
-
skipValidation: true,
|
|
282
|
-
breadcrumbsPrefix: ["response"],
|
|
283
|
-
}), _response.rawResponse);
|
|
265
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
284
266
|
case 404:
|
|
285
267
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
286
268
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -364,13 +346,7 @@ class Edge {
|
|
|
364
346
|
if (_response.error.reason === "status-code") {
|
|
365
347
|
switch (_response.error.statusCode) {
|
|
366
348
|
case 400:
|
|
367
|
-
throw new Zep.BadRequestError(
|
|
368
|
-
unrecognizedObjectKeys: "passthrough",
|
|
369
|
-
allowUnrecognizedUnionMembers: true,
|
|
370
|
-
allowUnrecognizedEnumValues: true,
|
|
371
|
-
skipValidation: true,
|
|
372
|
-
breadcrumbsPrefix: ["response"],
|
|
373
|
-
}), _response.rawResponse);
|
|
349
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
374
350
|
case 404:
|
|
375
351
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
376
352
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -461,13 +437,7 @@ class Edge {
|
|
|
461
437
|
if (_response.error.reason === "status-code") {
|
|
462
438
|
switch (_response.error.statusCode) {
|
|
463
439
|
case 400:
|
|
464
|
-
throw new Zep.BadRequestError(
|
|
465
|
-
unrecognizedObjectKeys: "passthrough",
|
|
466
|
-
allowUnrecognizedUnionMembers: true,
|
|
467
|
-
allowUnrecognizedEnumValues: true,
|
|
468
|
-
skipValidation: true,
|
|
469
|
-
breadcrumbsPrefix: ["response"],
|
|
470
|
-
}), _response.rawResponse);
|
|
440
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
471
441
|
case 404:
|
|
472
442
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
473
443
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -91,6 +91,27 @@ export declare class Episode {
|
|
|
91
91
|
*/
|
|
92
92
|
delete(uuid: string, requestOptions?: Episode.RequestOptions): core.HttpResponsePromise<Zep.SuccessResponse>;
|
|
93
93
|
private __delete;
|
|
94
|
+
/**
|
|
95
|
+
* Update episode metadata with merge semantics. Supplied keys overwrite or add to existing metadata; keys set to null are removed.
|
|
96
|
+
*
|
|
97
|
+
* @param {string} uuid - Episode UUID
|
|
98
|
+
* @param {Zep.graph.UpdateEpisodeRequest} request
|
|
99
|
+
* @param {Episode.RequestOptions} requestOptions - Request-specific configuration.
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link Zep.BadRequestError}
|
|
102
|
+
* @throws {@link Zep.ForbiddenError}
|
|
103
|
+
* @throws {@link Zep.NotFoundError}
|
|
104
|
+
* @throws {@link Zep.InternalServerError}
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* await client.graph.episode.update("uuid", {
|
|
108
|
+
* metadata: {
|
|
109
|
+
* "key": "value"
|
|
110
|
+
* }
|
|
111
|
+
* })
|
|
112
|
+
*/
|
|
113
|
+
update(uuid: string, request: Zep.graph.UpdateEpisodeRequest, requestOptions?: Episode.RequestOptions): core.HttpResponsePromise<Zep.Episode>;
|
|
114
|
+
private __update;
|
|
94
115
|
/**
|
|
95
116
|
* Returns nodes and edges mentioned in an episode
|
|
96
117
|
*
|