@getzep/zep-cloud 3.17.0 → 3.22.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/ApidataCreateBatchRequest.d.ts +10 -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 +13 -0
- package/dist/cjs/api/resources/graph/client/Client.js +44 -82
- package/dist/cjs/api/resources/graph/client/requests/AddDataRequest.d.ts +2 -0
- package/dist/cjs/api/resources/graph/client/requests/AddTripleRequest.d.ts +5 -0
- package/dist/cjs/api/resources/graph/client/requests/DetectPatternsRequest.d.ts +12 -4
- 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 -2
- 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 +15 -0
- package/dist/cjs/api/resources/thread/client/Client.js +92 -14
- package/dist/cjs/api/resources/user/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/user/client/Client.js +15 -24
- 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 +18 -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 +12 -0
- package/dist/cjs/api/types/BatchItemStatus.js +14 -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 +12 -0
- package/dist/cjs/api/types/BatchProgress.js +5 -0
- package/dist/cjs/api/types/BatchStatus.d.ts +13 -0
- package/dist/cjs/api/types/BatchStatus.js +15 -0
- package/dist/cjs/api/types/BatchSummary.d.ts +15 -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/DateFilter.d.ts +1 -1
- package/dist/cjs/api/types/DerivedNode.d.ts +28 -0
- package/dist/cjs/api/types/DerivedNode.js +5 -0
- package/dist/cjs/api/types/DetectPatternsResponse.d.ts +2 -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/GraphSearchResults.d.ts +3 -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 +26 -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 +22 -5
- package/dist/cjs/api/types/PatternSeeds.d.ts +1 -1
- package/dist/cjs/api/types/PropertyFilter.d.ts +1 -1
- package/dist/cjs/api/types/SearchFilters.d.ts +14 -9
- package/dist/cjs/api/types/ThreadSummary.d.ts +20 -0
- package/dist/cjs/api/types/ThreadSummary.js +5 -0
- package/dist/cjs/api/types/index.d.ts +19 -1
- package/dist/cjs/api/types/index.js +19 -1
- 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 +12 -0
- package/dist/cjs/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.js +43 -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/DetectPatternsRequest.d.ts +3 -1
- package/dist/cjs/serialization/resources/graph/client/requests/DetectPatternsRequest.js +3 -1
- 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/{PatternExample.js → BatchListResponse.js} +5 -4
- package/dist/cjs/serialization/types/BatchProgress.d.ts +18 -0
- package/dist/cjs/serialization/types/BatchProgress.js +49 -0
- package/dist/cjs/serialization/types/BatchStatus.d.ts +10 -0
- package/dist/cjs/serialization/types/BatchStatus.js +41 -0
- package/dist/cjs/serialization/types/BatchSummary.d.ts +22 -0
- package/dist/cjs/serialization/types/BatchSummary.js +53 -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 +21 -0
- package/dist/cjs/serialization/types/DerivedNode.js +52 -0
- package/dist/cjs/serialization/types/DetectPatternsResponse.d.ts +2 -0
- package/dist/cjs/serialization/types/DetectPatternsResponse.js +2 -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/GraphSearchResults.d.ts +5 -0
- package/dist/cjs/serialization/types/GraphSearchResults.js +5 -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 +20 -0
- package/dist/cjs/serialization/types/GraphitiSagaNode.js +51 -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 +3 -2
- package/dist/cjs/serialization/types/PatternResult.js +3 -2
- 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 +16 -0
- package/dist/cjs/serialization/types/ThreadSummary.js +47 -0
- package/dist/cjs/serialization/types/index.d.ts +19 -1
- package/dist/cjs/serialization/types/index.js +19 -1
- 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/ApidataCreateBatchRequest.d.mts +10 -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 +13 -0
- package/dist/esm/api/resources/graph/client/Client.mjs +44 -82
- package/dist/esm/api/resources/graph/client/requests/AddDataRequest.d.mts +2 -0
- package/dist/esm/api/resources/graph/client/requests/AddTripleRequest.d.mts +5 -0
- package/dist/esm/api/resources/graph/client/requests/DetectPatternsRequest.d.mts +12 -4
- 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 -2
- 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 +15 -0
- package/dist/esm/api/resources/thread/client/Client.mjs +92 -14
- package/dist/esm/api/resources/user/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/user/client/Client.mjs +15 -24
- 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 +18 -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 +12 -0
- package/dist/esm/api/types/BatchItemStatus.mjs +11 -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 +12 -0
- package/dist/esm/api/types/BatchProgress.mjs +4 -0
- package/dist/esm/api/types/BatchStatus.d.mts +13 -0
- package/dist/esm/api/types/BatchStatus.mjs +12 -0
- package/dist/esm/api/types/BatchSummary.d.mts +15 -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/DateFilter.d.mts +1 -1
- package/dist/esm/api/types/DerivedNode.d.mts +28 -0
- package/dist/esm/api/types/DerivedNode.mjs +4 -0
- package/dist/esm/api/types/DetectPatternsResponse.d.mts +2 -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/GraphSearchResults.d.mts +3 -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 +26 -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 +22 -5
- package/dist/esm/api/types/PatternSeeds.d.mts +1 -1
- package/dist/esm/api/types/PropertyFilter.d.mts +1 -1
- package/dist/esm/api/types/SearchFilters.d.mts +14 -9
- package/dist/esm/api/types/ThreadSummary.d.mts +20 -0
- package/dist/esm/api/types/ThreadSummary.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +19 -1
- package/dist/esm/api/types/index.mjs +19 -1
- 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 +12 -0
- package/dist/esm/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.mjs +7 -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/DetectPatternsRequest.d.mts +3 -1
- package/dist/esm/serialization/resources/graph/client/requests/DetectPatternsRequest.mjs +3 -1
- 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 +18 -0
- package/dist/esm/serialization/types/BatchProgress.mjs +13 -0
- package/dist/esm/serialization/types/BatchStatus.d.mts +10 -0
- package/dist/esm/serialization/types/BatchStatus.mjs +5 -0
- package/dist/esm/serialization/types/BatchSummary.d.mts +22 -0
- package/dist/esm/serialization/types/BatchSummary.mjs +17 -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 +21 -0
- package/dist/esm/serialization/types/DerivedNode.mjs +16 -0
- package/dist/esm/serialization/types/DetectPatternsResponse.d.mts +2 -0
- package/dist/esm/serialization/types/DetectPatternsResponse.mjs +2 -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/GraphSearchResults.d.mts +5 -0
- package/dist/esm/serialization/types/GraphSearchResults.mjs +5 -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 +20 -0
- package/dist/esm/serialization/types/GraphitiSagaNode.mjs +15 -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 +3 -2
- package/dist/esm/serialization/types/PatternResult.mjs +3 -2
- 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 +16 -0
- package/dist/esm/serialization/types/ThreadSummary.mjs +11 -0
- package/dist/esm/serialization/types/index.d.mts +19 -1
- package/dist/esm/serialization/types/index.mjs +19 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +16 -9
- package/reference.md +1414 -449
- package/dist/cjs/api/types/PatternExample.d.ts +0 -9
- package/dist/cjs/serialization/types/PatternExample.d.ts +0 -13
- package/dist/esm/api/types/PatternExample.d.mts +0 -9
- package/dist/esm/serialization/types/PatternExample.d.mts +0 -13
- package/dist/esm/serialization/types/PatternExample.mjs +0 -8
- /package/dist/cjs/api/{types/PatternExample.js → resources/batch/client/requests/ApidataAddBatchItemsRequest.js} +0 -0
- /package/dist/esm/api/{types/PatternExample.mjs → resources/batch/client/requests/ApidataAddBatchItemsRequest.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Zep from "../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* items: [{
|
|
9
|
+
* type: "graph_episode"
|
|
10
|
+
* }]
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface ApidataAddBatchItemsRequest {
|
|
14
|
+
items: Zep.BatchAddItem[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* limit: 1,
|
|
8
|
+
* cursor: 1,
|
|
9
|
+
* status: "status"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface BatchListItemsRequest {
|
|
13
|
+
/**
|
|
14
|
+
* Maximum number of batch items to return.
|
|
15
|
+
*/
|
|
16
|
+
limit?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Pagination cursor from a previous response.
|
|
19
|
+
*/
|
|
20
|
+
cursor?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Batch item status filter.
|
|
23
|
+
*/
|
|
24
|
+
status?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* limit: 1,
|
|
8
|
+
* cursor: 1,
|
|
9
|
+
* status: "status"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface BatchListRequest {
|
|
13
|
+
/**
|
|
14
|
+
* Maximum number of batches to return.
|
|
15
|
+
*/
|
|
16
|
+
limit?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Pagination cursor from a previous response.
|
|
19
|
+
*/
|
|
20
|
+
cursor?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Batch status filter.
|
|
23
|
+
*/
|
|
24
|
+
status?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { type BatchListRequest } from "./BatchListRequest.mjs";
|
|
2
|
+
export { type ApidataCreateBatchRequest } from "./ApidataCreateBatchRequest.mjs";
|
|
3
|
+
export { type BatchListItemsRequest } from "./BatchListItemsRequest.mjs";
|
|
4
|
+
export { type ApidataAddBatchItemsRequest } from "./ApidataAddBatchItemsRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -60,13 +60,7 @@ export class Context {
|
|
|
60
60
|
if (_response.error.reason === "status-code") {
|
|
61
61
|
switch (_response.error.statusCode) {
|
|
62
62
|
case 400:
|
|
63
|
-
throw new Zep.BadRequestError(
|
|
64
|
-
unrecognizedObjectKeys: "passthrough",
|
|
65
|
-
allowUnrecognizedUnionMembers: true,
|
|
66
|
-
allowUnrecognizedEnumValues: true,
|
|
67
|
-
skipValidation: true,
|
|
68
|
-
breadcrumbsPrefix: ["response"],
|
|
69
|
-
}), _response.rawResponse);
|
|
63
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
70
64
|
case 500:
|
|
71
65
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
72
66
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -150,13 +144,7 @@ export class Context {
|
|
|
150
144
|
if (_response.error.reason === "status-code") {
|
|
151
145
|
switch (_response.error.statusCode) {
|
|
152
146
|
case 400:
|
|
153
|
-
throw new Zep.BadRequestError(
|
|
154
|
-
unrecognizedObjectKeys: "passthrough",
|
|
155
|
-
allowUnrecognizedUnionMembers: true,
|
|
156
|
-
allowUnrecognizedEnumValues: true,
|
|
157
|
-
skipValidation: true,
|
|
158
|
-
breadcrumbsPrefix: ["response"],
|
|
159
|
-
}), _response.rawResponse);
|
|
147
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
160
148
|
case 500:
|
|
161
149
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
162
150
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -232,13 +220,7 @@ export class Context {
|
|
|
232
220
|
if (_response.error.reason === "status-code") {
|
|
233
221
|
switch (_response.error.statusCode) {
|
|
234
222
|
case 400:
|
|
235
|
-
throw new Zep.BadRequestError(
|
|
236
|
-
unrecognizedObjectKeys: "passthrough",
|
|
237
|
-
allowUnrecognizedUnionMembers: true,
|
|
238
|
-
allowUnrecognizedEnumValues: true,
|
|
239
|
-
skipValidation: true,
|
|
240
|
-
breadcrumbsPrefix: ["response"],
|
|
241
|
-
}), _response.rawResponse);
|
|
223
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
242
224
|
case 404:
|
|
243
225
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
244
226
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -331,13 +313,7 @@ export class Context {
|
|
|
331
313
|
if (_response.error.reason === "status-code") {
|
|
332
314
|
switch (_response.error.statusCode) {
|
|
333
315
|
case 400:
|
|
334
|
-
throw new Zep.BadRequestError(
|
|
335
|
-
unrecognizedObjectKeys: "passthrough",
|
|
336
|
-
allowUnrecognizedUnionMembers: true,
|
|
337
|
-
allowUnrecognizedEnumValues: true,
|
|
338
|
-
skipValidation: true,
|
|
339
|
-
breadcrumbsPrefix: ["response"],
|
|
340
|
-
}), _response.rawResponse);
|
|
316
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
341
317
|
case 404:
|
|
342
318
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
343
319
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -421,13 +397,7 @@ export class Context {
|
|
|
421
397
|
if (_response.error.reason === "status-code") {
|
|
422
398
|
switch (_response.error.statusCode) {
|
|
423
399
|
case 400:
|
|
424
|
-
throw new Zep.BadRequestError(
|
|
425
|
-
unrecognizedObjectKeys: "passthrough",
|
|
426
|
-
allowUnrecognizedUnionMembers: true,
|
|
427
|
-
allowUnrecognizedEnumValues: true,
|
|
428
|
-
skipValidation: true,
|
|
429
|
-
breadcrumbsPrefix: ["response"],
|
|
430
|
-
}), _response.rawResponse);
|
|
400
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
431
401
|
case 404:
|
|
432
402
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
433
403
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -7,6 +7,8 @@ import * as Zep from "../../../index.mjs";
|
|
|
7
7
|
import { Edge } from "../resources/edge/client/Client.mjs";
|
|
8
8
|
import { Episode } from "../resources/episode/client/Client.mjs";
|
|
9
9
|
import { Node } from "../resources/node/client/Client.mjs";
|
|
10
|
+
import { Observation } from "../resources/observation/client/Client.mjs";
|
|
11
|
+
import { ThreadSummary } from "../resources/threadSummary/client/Client.mjs";
|
|
10
12
|
export declare namespace Graph {
|
|
11
13
|
interface Options {
|
|
12
14
|
environment?: core.Supplier<environments.ZepEnvironment | string>;
|
|
@@ -33,10 +35,14 @@ export declare class Graph {
|
|
|
33
35
|
protected _edge: Edge | undefined;
|
|
34
36
|
protected _episode: Episode | undefined;
|
|
35
37
|
protected _node: Node | undefined;
|
|
38
|
+
protected _observation: Observation | undefined;
|
|
39
|
+
protected _threadSummary: ThreadSummary | undefined;
|
|
36
40
|
constructor(_options?: Graph.Options);
|
|
37
41
|
get edge(): Edge;
|
|
38
42
|
get episode(): Episode;
|
|
39
43
|
get node(): Node;
|
|
44
|
+
get observation(): Observation;
|
|
45
|
+
get threadSummary(): ThreadSummary;
|
|
40
46
|
/**
|
|
41
47
|
* Lists all custom instructions for a project, user, or graph.
|
|
42
48
|
*
|
|
@@ -44,6 +50,7 @@ export declare class Graph {
|
|
|
44
50
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
51
|
*
|
|
46
52
|
* @throws {@link Zep.BadRequestError}
|
|
53
|
+
* @throws {@link Zep.NotFoundError}
|
|
47
54
|
* @throws {@link Zep.InternalServerError}
|
|
48
55
|
*
|
|
49
56
|
* @example
|
|
@@ -61,6 +68,7 @@ export declare class Graph {
|
|
|
61
68
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
69
|
*
|
|
63
70
|
* @throws {@link Zep.BadRequestError}
|
|
71
|
+
* @throws {@link Zep.NotFoundError}
|
|
64
72
|
* @throws {@link Zep.InternalServerError}
|
|
65
73
|
*
|
|
66
74
|
* @example
|
|
@@ -80,6 +88,7 @@ export declare class Graph {
|
|
|
80
88
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
89
|
*
|
|
82
90
|
* @throws {@link Zep.BadRequestError}
|
|
91
|
+
* @throws {@link Zep.NotFoundError}
|
|
83
92
|
* @throws {@link Zep.InternalServerError}
|
|
84
93
|
*
|
|
85
94
|
* @example
|
|
@@ -112,6 +121,7 @@ export declare class Graph {
|
|
|
112
121
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
122
|
*
|
|
114
123
|
* @throws {@link Zep.BadRequestError}
|
|
124
|
+
* @throws {@link Zep.NotFoundError}
|
|
115
125
|
* @throws {@link Zep.InternalServerError}
|
|
116
126
|
*
|
|
117
127
|
* @example
|
|
@@ -215,6 +225,7 @@ export declare class Graph {
|
|
|
215
225
|
* await client.graph.listAll({
|
|
216
226
|
* pageNumber: 1,
|
|
217
227
|
* pageSize: 1,
|
|
228
|
+
* search: "search",
|
|
218
229
|
* orderBy: "order_by",
|
|
219
230
|
* asc: true
|
|
220
231
|
* })
|
|
@@ -224,6 +235,8 @@ export declare class Graph {
|
|
|
224
235
|
/**
|
|
225
236
|
* Detects structural patterns in a knowledge graph including relationship frequencies,
|
|
226
237
|
* multi-hop paths, co-occurrences, hubs, and clusters.
|
|
238
|
+
* When a query is provided, uses hybrid search to discover seed nodes,
|
|
239
|
+
* detects triple-frequency patterns, and returns resolved edges ranked by relevance.
|
|
227
240
|
*
|
|
228
241
|
* @param {Zep.DetectPatternsRequest} request
|
|
229
242
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -19,6 +19,8 @@ import * as errors from "../../../../errors/index.mjs";
|
|
|
19
19
|
import { Edge } from "../resources/edge/client/Client.mjs";
|
|
20
20
|
import { Episode } from "../resources/episode/client/Client.mjs";
|
|
21
21
|
import { Node } from "../resources/node/client/Client.mjs";
|
|
22
|
+
import { Observation } from "../resources/observation/client/Client.mjs";
|
|
23
|
+
import { ThreadSummary } from "../resources/threadSummary/client/Client.mjs";
|
|
22
24
|
export class Graph {
|
|
23
25
|
constructor(_options = {}) {
|
|
24
26
|
this._options = _options;
|
|
@@ -35,6 +37,14 @@ export class Graph {
|
|
|
35
37
|
var _a;
|
|
36
38
|
return ((_a = this._node) !== null && _a !== void 0 ? _a : (this._node = new Node(this._options)));
|
|
37
39
|
}
|
|
40
|
+
get observation() {
|
|
41
|
+
var _a;
|
|
42
|
+
return ((_a = this._observation) !== null && _a !== void 0 ? _a : (this._observation = new Observation(this._options)));
|
|
43
|
+
}
|
|
44
|
+
get threadSummary() {
|
|
45
|
+
var _a;
|
|
46
|
+
return ((_a = this._threadSummary) !== null && _a !== void 0 ? _a : (this._threadSummary = new ThreadSummary(this._options)));
|
|
47
|
+
}
|
|
38
48
|
/**
|
|
39
49
|
* Lists all custom instructions for a project, user, or graph.
|
|
40
50
|
*
|
|
@@ -42,6 +52,7 @@ export class Graph {
|
|
|
42
52
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
53
|
*
|
|
44
54
|
* @throws {@link Zep.BadRequestError}
|
|
55
|
+
* @throws {@link Zep.NotFoundError}
|
|
45
56
|
* @throws {@link Zep.InternalServerError}
|
|
46
57
|
*
|
|
47
58
|
* @example
|
|
@@ -88,7 +99,9 @@ export class Graph {
|
|
|
88
99
|
if (_response.error.reason === "status-code") {
|
|
89
100
|
switch (_response.error.statusCode) {
|
|
90
101
|
case 400:
|
|
91
|
-
throw new Zep.BadRequestError(
|
|
102
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
103
|
+
case 404:
|
|
104
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
92
105
|
unrecognizedObjectKeys: "passthrough",
|
|
93
106
|
allowUnrecognizedUnionMembers: true,
|
|
94
107
|
allowUnrecognizedEnumValues: true,
|
|
@@ -135,6 +148,7 @@ export class Graph {
|
|
|
135
148
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
136
149
|
*
|
|
137
150
|
* @throws {@link Zep.BadRequestError}
|
|
151
|
+
* @throws {@link Zep.NotFoundError}
|
|
138
152
|
* @throws {@link Zep.InternalServerError}
|
|
139
153
|
*
|
|
140
154
|
* @example
|
|
@@ -180,7 +194,9 @@ export class Graph {
|
|
|
180
194
|
if (_response.error.reason === "status-code") {
|
|
181
195
|
switch (_response.error.statusCode) {
|
|
182
196
|
case 400:
|
|
183
|
-
throw new Zep.BadRequestError(
|
|
197
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
198
|
+
case 404:
|
|
199
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
184
200
|
unrecognizedObjectKeys: "passthrough",
|
|
185
201
|
allowUnrecognizedUnionMembers: true,
|
|
186
202
|
allowUnrecognizedEnumValues: true,
|
|
@@ -227,6 +243,7 @@ export class Graph {
|
|
|
227
243
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
228
244
|
*
|
|
229
245
|
* @throws {@link Zep.BadRequestError}
|
|
246
|
+
* @throws {@link Zep.NotFoundError}
|
|
230
247
|
* @throws {@link Zep.InternalServerError}
|
|
231
248
|
*
|
|
232
249
|
* @example
|
|
@@ -267,7 +284,9 @@ export class Graph {
|
|
|
267
284
|
if (_response.error.reason === "status-code") {
|
|
268
285
|
switch (_response.error.statusCode) {
|
|
269
286
|
case 400:
|
|
270
|
-
throw new Zep.BadRequestError(
|
|
287
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
288
|
+
case 404:
|
|
289
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
271
290
|
unrecognizedObjectKeys: "passthrough",
|
|
272
291
|
allowUnrecognizedUnionMembers: true,
|
|
273
292
|
allowUnrecognizedEnumValues: true,
|
|
@@ -361,13 +380,7 @@ export class Graph {
|
|
|
361
380
|
if (_response.error.reason === "status-code") {
|
|
362
381
|
switch (_response.error.statusCode) {
|
|
363
382
|
case 400:
|
|
364
|
-
throw new Zep.BadRequestError(
|
|
365
|
-
unrecognizedObjectKeys: "passthrough",
|
|
366
|
-
allowUnrecognizedUnionMembers: true,
|
|
367
|
-
allowUnrecognizedEnumValues: true,
|
|
368
|
-
skipValidation: true,
|
|
369
|
-
breadcrumbsPrefix: ["response"],
|
|
370
|
-
}), _response.rawResponse);
|
|
383
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
371
384
|
case 404:
|
|
372
385
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
373
386
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -416,6 +429,7 @@ export class Graph {
|
|
|
416
429
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
417
430
|
*
|
|
418
431
|
* @throws {@link Zep.BadRequestError}
|
|
432
|
+
* @throws {@link Zep.NotFoundError}
|
|
419
433
|
* @throws {@link Zep.InternalServerError}
|
|
420
434
|
*
|
|
421
435
|
* @example
|
|
@@ -456,7 +470,9 @@ export class Graph {
|
|
|
456
470
|
if (_response.error.reason === "status-code") {
|
|
457
471
|
switch (_response.error.statusCode) {
|
|
458
472
|
case 400:
|
|
459
|
-
throw new Zep.BadRequestError(
|
|
473
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
474
|
+
case 404:
|
|
475
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
460
476
|
unrecognizedObjectKeys: "passthrough",
|
|
461
477
|
allowUnrecognizedUnionMembers: true,
|
|
462
478
|
allowUnrecognizedEnumValues: true,
|
|
@@ -546,13 +562,7 @@ export class Graph {
|
|
|
546
562
|
if (_response.error.reason === "status-code") {
|
|
547
563
|
switch (_response.error.statusCode) {
|
|
548
564
|
case 400:
|
|
549
|
-
throw new Zep.BadRequestError(
|
|
550
|
-
unrecognizedObjectKeys: "passthrough",
|
|
551
|
-
allowUnrecognizedUnionMembers: true,
|
|
552
|
-
allowUnrecognizedEnumValues: true,
|
|
553
|
-
skipValidation: true,
|
|
554
|
-
breadcrumbsPrefix: ["response"],
|
|
555
|
-
}), _response.rawResponse);
|
|
565
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
556
566
|
case 500:
|
|
557
567
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
558
568
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -638,13 +648,7 @@ export class Graph {
|
|
|
638
648
|
if (_response.error.reason === "status-code") {
|
|
639
649
|
switch (_response.error.statusCode) {
|
|
640
650
|
case 400:
|
|
641
|
-
throw new Zep.BadRequestError(
|
|
642
|
-
unrecognizedObjectKeys: "passthrough",
|
|
643
|
-
allowUnrecognizedUnionMembers: true,
|
|
644
|
-
allowUnrecognizedEnumValues: true,
|
|
645
|
-
skipValidation: true,
|
|
646
|
-
breadcrumbsPrefix: ["response"],
|
|
647
|
-
}), _response.rawResponse);
|
|
651
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
648
652
|
case 500:
|
|
649
653
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
650
654
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -728,13 +732,7 @@ export class Graph {
|
|
|
728
732
|
if (_response.error.reason === "status-code") {
|
|
729
733
|
switch (_response.error.statusCode) {
|
|
730
734
|
case 400:
|
|
731
|
-
throw new Zep.BadRequestError(
|
|
732
|
-
unrecognizedObjectKeys: "passthrough",
|
|
733
|
-
allowUnrecognizedUnionMembers: true,
|
|
734
|
-
allowUnrecognizedEnumValues: true,
|
|
735
|
-
skipValidation: true,
|
|
736
|
-
breadcrumbsPrefix: ["response"],
|
|
737
|
-
}), _response.rawResponse);
|
|
735
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
738
736
|
case 500:
|
|
739
737
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
740
738
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -815,13 +813,7 @@ export class Graph {
|
|
|
815
813
|
if (_response.error.reason === "status-code") {
|
|
816
814
|
switch (_response.error.statusCode) {
|
|
817
815
|
case 400:
|
|
818
|
-
throw new Zep.BadRequestError(
|
|
819
|
-
unrecognizedObjectKeys: "passthrough",
|
|
820
|
-
allowUnrecognizedUnionMembers: true,
|
|
821
|
-
allowUnrecognizedEnumValues: true,
|
|
822
|
-
skipValidation: true,
|
|
823
|
-
breadcrumbsPrefix: ["response"],
|
|
824
|
-
}), _response.rawResponse);
|
|
816
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
825
817
|
case 500:
|
|
826
818
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
827
819
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -904,13 +896,7 @@ export class Graph {
|
|
|
904
896
|
if (_response.error.reason === "status-code") {
|
|
905
897
|
switch (_response.error.statusCode) {
|
|
906
898
|
case 400:
|
|
907
|
-
throw new Zep.BadRequestError(
|
|
908
|
-
unrecognizedObjectKeys: "passthrough",
|
|
909
|
-
allowUnrecognizedUnionMembers: true,
|
|
910
|
-
allowUnrecognizedEnumValues: true,
|
|
911
|
-
skipValidation: true,
|
|
912
|
-
breadcrumbsPrefix: ["response"],
|
|
913
|
-
}), _response.rawResponse);
|
|
899
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
914
900
|
case 500:
|
|
915
901
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
916
902
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -957,6 +943,7 @@ export class Graph {
|
|
|
957
943
|
* await client.graph.listAll({
|
|
958
944
|
* pageNumber: 1,
|
|
959
945
|
* pageSize: 1,
|
|
946
|
+
* search: "search",
|
|
960
947
|
* orderBy: "order_by",
|
|
961
948
|
* asc: true
|
|
962
949
|
* })
|
|
@@ -967,7 +954,7 @@ export class Graph {
|
|
|
967
954
|
__listAll() {
|
|
968
955
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
969
956
|
var _a, _b, _c, _d;
|
|
970
|
-
const { pageNumber, pageSize, orderBy, asc } = request;
|
|
957
|
+
const { pageNumber, pageSize, search, orderBy, asc } = request;
|
|
971
958
|
const _queryParams = {};
|
|
972
959
|
if (pageNumber != null) {
|
|
973
960
|
_queryParams["pageNumber"] = pageNumber.toString();
|
|
@@ -975,6 +962,9 @@ export class Graph {
|
|
|
975
962
|
if (pageSize != null) {
|
|
976
963
|
_queryParams["pageSize"] = pageSize.toString();
|
|
977
964
|
}
|
|
965
|
+
if (search != null) {
|
|
966
|
+
_queryParams["search"] = search;
|
|
967
|
+
}
|
|
978
968
|
if (orderBy != null) {
|
|
979
969
|
_queryParams["order_by"] = orderBy;
|
|
980
970
|
}
|
|
@@ -1005,13 +995,7 @@ export class Graph {
|
|
|
1005
995
|
if (_response.error.reason === "status-code") {
|
|
1006
996
|
switch (_response.error.statusCode) {
|
|
1007
997
|
case 400:
|
|
1008
|
-
throw new Zep.BadRequestError(
|
|
1009
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1010
|
-
allowUnrecognizedUnionMembers: true,
|
|
1011
|
-
allowUnrecognizedEnumValues: true,
|
|
1012
|
-
skipValidation: true,
|
|
1013
|
-
breadcrumbsPrefix: ["response"],
|
|
1014
|
-
}), _response.rawResponse);
|
|
998
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1015
999
|
case 500:
|
|
1016
1000
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1017
1001
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1048,6 +1032,8 @@ export class Graph {
|
|
|
1048
1032
|
/**
|
|
1049
1033
|
* Detects structural patterns in a knowledge graph including relationship frequencies,
|
|
1050
1034
|
* multi-hop paths, co-occurrences, hubs, and clusters.
|
|
1035
|
+
* When a query is provided, uses hybrid search to discover seed nodes,
|
|
1036
|
+
* detects triple-frequency patterns, and returns resolved edges ranked by relevance.
|
|
1051
1037
|
*
|
|
1052
1038
|
* @param {Zep.DetectPatternsRequest} request
|
|
1053
1039
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1095,13 +1081,7 @@ export class Graph {
|
|
|
1095
1081
|
if (_response.error.reason === "status-code") {
|
|
1096
1082
|
switch (_response.error.statusCode) {
|
|
1097
1083
|
case 400:
|
|
1098
|
-
throw new Zep.BadRequestError(
|
|
1099
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1100
|
-
allowUnrecognizedUnionMembers: true,
|
|
1101
|
-
allowUnrecognizedEnumValues: true,
|
|
1102
|
-
skipValidation: true,
|
|
1103
|
-
breadcrumbsPrefix: ["response"],
|
|
1104
|
-
}), _response.rawResponse);
|
|
1084
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1105
1085
|
case 403:
|
|
1106
1086
|
throw new Zep.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1107
1087
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1200,13 +1180,7 @@ export class Graph {
|
|
|
1200
1180
|
if (_response.error.reason === "status-code") {
|
|
1201
1181
|
switch (_response.error.statusCode) {
|
|
1202
1182
|
case 400:
|
|
1203
|
-
throw new Zep.BadRequestError(
|
|
1204
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1205
|
-
allowUnrecognizedUnionMembers: true,
|
|
1206
|
-
allowUnrecognizedEnumValues: true,
|
|
1207
|
-
skipValidation: true,
|
|
1208
|
-
breadcrumbsPrefix: ["response"],
|
|
1209
|
-
}), _response.rawResponse);
|
|
1183
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1210
1184
|
case 500:
|
|
1211
1185
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1212
1186
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1363,13 +1337,7 @@ export class Graph {
|
|
|
1363
1337
|
if (_response.error.reason === "status-code") {
|
|
1364
1338
|
switch (_response.error.statusCode) {
|
|
1365
1339
|
case 400:
|
|
1366
|
-
throw new Zep.BadRequestError(
|
|
1367
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1368
|
-
allowUnrecognizedUnionMembers: true,
|
|
1369
|
-
allowUnrecognizedEnumValues: true,
|
|
1370
|
-
skipValidation: true,
|
|
1371
|
-
breadcrumbsPrefix: ["response"],
|
|
1372
|
-
}), _response.rawResponse);
|
|
1340
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1373
1341
|
case 404:
|
|
1374
1342
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1375
1343
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1460,13 +1428,7 @@ export class Graph {
|
|
|
1460
1428
|
if (_response.error.reason === "status-code") {
|
|
1461
1429
|
switch (_response.error.statusCode) {
|
|
1462
1430
|
case 400:
|
|
1463
|
-
throw new Zep.BadRequestError(
|
|
1464
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1465
|
-
allowUnrecognizedUnionMembers: true,
|
|
1466
|
-
allowUnrecognizedEnumValues: true,
|
|
1467
|
-
skipValidation: true,
|
|
1468
|
-
breadcrumbsPrefix: ["response"],
|
|
1469
|
-
}), _response.rawResponse);
|
|
1431
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1470
1432
|
case 404:
|
|
1471
1433
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1472
1434
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -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,6 +27,11 @@ 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.
|
|
@@ -9,17 +9,25 @@ import * as Zep from "../../../../index.mjs";
|
|
|
9
9
|
export interface DetectPatternsRequest {
|
|
10
10
|
/**
|
|
11
11
|
* Which pattern types to detect with type-specific configuration.
|
|
12
|
-
* Omit to detect all types with defaults.
|
|
12
|
+
* Omit to detect all types with defaults. Ignored when query is set.
|
|
13
13
|
*/
|
|
14
14
|
detect?: Zep.DetectConfig;
|
|
15
|
+
/** Max resolved edges per pattern. Default: 10, Max: 100. Only used with query. */
|
|
16
|
+
edgeLimit?: number;
|
|
15
17
|
/** Graph ID when detecting patterns on a named graph */
|
|
16
18
|
graphId?: string;
|
|
17
|
-
/** Include example node/edge UUIDs per pattern. Default: false */
|
|
18
|
-
includeExamples?: boolean;
|
|
19
19
|
/** Max patterns to return. Default: 50, Max: 200 */
|
|
20
20
|
limit?: number;
|
|
21
21
|
/** Minimum occurrence count to report a pattern. Default: 2 */
|
|
22
22
|
minOccurrences?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Search query for discovering seed nodes via hybrid search.
|
|
25
|
+
* When set, forces triple-frequency detection only and enables edge resolution
|
|
26
|
+
* with cross-encoder reranking. Mutually exclusive with seeds.
|
|
27
|
+
*/
|
|
28
|
+
query?: string;
|
|
29
|
+
/** Max seed nodes from search. Default: 10, Max: 50. Only used with query. */
|
|
30
|
+
queryLimit?: number;
|
|
23
31
|
/**
|
|
24
32
|
* Exponential half-life decay applied to edge created_at timestamps.
|
|
25
33
|
* Valid values: none, 7_days, 30_days, 90_days. Default: none
|
|
@@ -30,7 +38,7 @@ export interface DetectPatternsRequest {
|
|
|
30
38
|
* Reuses the same filter format as /graph/search.
|
|
31
39
|
*/
|
|
32
40
|
searchFilters?: Zep.SearchFilters;
|
|
33
|
-
/** Seed selection. If omitted, analyzes the entire graph. */
|
|
41
|
+
/** Seed selection. If omitted, analyzes the entire graph. Mutually exclusive with query. */
|
|
34
42
|
seeds?: Zep.PatternSeeds;
|
|
35
43
|
/** User ID when detecting patterns on a user graph */
|
|
36
44
|
userId?: 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
|
*/
|