@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,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Zep from "../../../../index.js";
|
|
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.js";
|
|
2
|
+
export { type ApidataCreateBatchRequest } from "./ApidataCreateBatchRequest.js";
|
|
3
|
+
export { type BatchListItemsRequest } from "./BatchListItemsRequest.js";
|
|
4
|
+
export { type ApidataAddBatchItemsRequest } from "./ApidataAddBatchItemsRequest.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -96,13 +96,7 @@ class Context {
|
|
|
96
96
|
if (_response.error.reason === "status-code") {
|
|
97
97
|
switch (_response.error.statusCode) {
|
|
98
98
|
case 400:
|
|
99
|
-
throw new Zep.BadRequestError(
|
|
100
|
-
unrecognizedObjectKeys: "passthrough",
|
|
101
|
-
allowUnrecognizedUnionMembers: true,
|
|
102
|
-
allowUnrecognizedEnumValues: true,
|
|
103
|
-
skipValidation: true,
|
|
104
|
-
breadcrumbsPrefix: ["response"],
|
|
105
|
-
}), _response.rawResponse);
|
|
99
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
106
100
|
case 500:
|
|
107
101
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
108
102
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -186,13 +180,7 @@ class Context {
|
|
|
186
180
|
if (_response.error.reason === "status-code") {
|
|
187
181
|
switch (_response.error.statusCode) {
|
|
188
182
|
case 400:
|
|
189
|
-
throw new Zep.BadRequestError(
|
|
190
|
-
unrecognizedObjectKeys: "passthrough",
|
|
191
|
-
allowUnrecognizedUnionMembers: true,
|
|
192
|
-
allowUnrecognizedEnumValues: true,
|
|
193
|
-
skipValidation: true,
|
|
194
|
-
breadcrumbsPrefix: ["response"],
|
|
195
|
-
}), _response.rawResponse);
|
|
183
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
196
184
|
case 500:
|
|
197
185
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
198
186
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -268,13 +256,7 @@ class Context {
|
|
|
268
256
|
if (_response.error.reason === "status-code") {
|
|
269
257
|
switch (_response.error.statusCode) {
|
|
270
258
|
case 400:
|
|
271
|
-
throw new Zep.BadRequestError(
|
|
272
|
-
unrecognizedObjectKeys: "passthrough",
|
|
273
|
-
allowUnrecognizedUnionMembers: true,
|
|
274
|
-
allowUnrecognizedEnumValues: true,
|
|
275
|
-
skipValidation: true,
|
|
276
|
-
breadcrumbsPrefix: ["response"],
|
|
277
|
-
}), _response.rawResponse);
|
|
259
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
278
260
|
case 404:
|
|
279
261
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
280
262
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -367,13 +349,7 @@ class Context {
|
|
|
367
349
|
if (_response.error.reason === "status-code") {
|
|
368
350
|
switch (_response.error.statusCode) {
|
|
369
351
|
case 400:
|
|
370
|
-
throw new Zep.BadRequestError(
|
|
371
|
-
unrecognizedObjectKeys: "passthrough",
|
|
372
|
-
allowUnrecognizedUnionMembers: true,
|
|
373
|
-
allowUnrecognizedEnumValues: true,
|
|
374
|
-
skipValidation: true,
|
|
375
|
-
breadcrumbsPrefix: ["response"],
|
|
376
|
-
}), _response.rawResponse);
|
|
352
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
377
353
|
case 404:
|
|
378
354
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
379
355
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -457,13 +433,7 @@ class Context {
|
|
|
457
433
|
if (_response.error.reason === "status-code") {
|
|
458
434
|
switch (_response.error.statusCode) {
|
|
459
435
|
case 400:
|
|
460
|
-
throw new Zep.BadRequestError(
|
|
461
|
-
unrecognizedObjectKeys: "passthrough",
|
|
462
|
-
allowUnrecognizedUnionMembers: true,
|
|
463
|
-
allowUnrecognizedEnumValues: true,
|
|
464
|
-
skipValidation: true,
|
|
465
|
-
breadcrumbsPrefix: ["response"],
|
|
466
|
-
}), _response.rawResponse);
|
|
436
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
467
437
|
case 404:
|
|
468
438
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
469
439
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -7,6 +7,8 @@ import * as Zep from "../../../index.js";
|
|
|
7
7
|
import { Edge } from "../resources/edge/client/Client.js";
|
|
8
8
|
import { Episode } from "../resources/episode/client/Client.js";
|
|
9
9
|
import { Node } from "../resources/node/client/Client.js";
|
|
10
|
+
import { Observation } from "../resources/observation/client/Client.js";
|
|
11
|
+
import { ThreadSummary } from "../resources/threadSummary/client/Client.js";
|
|
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.
|
|
@@ -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
|
*
|
|
@@ -78,6 +88,7 @@ class Graph {
|
|
|
78
88
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
89
|
*
|
|
80
90
|
* @throws {@link Zep.BadRequestError}
|
|
91
|
+
* @throws {@link Zep.NotFoundError}
|
|
81
92
|
* @throws {@link Zep.InternalServerError}
|
|
82
93
|
*
|
|
83
94
|
* @example
|
|
@@ -124,7 +135,9 @@ class Graph {
|
|
|
124
135
|
if (_response.error.reason === "status-code") {
|
|
125
136
|
switch (_response.error.statusCode) {
|
|
126
137
|
case 400:
|
|
127
|
-
throw new Zep.BadRequestError(
|
|
138
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
139
|
+
case 404:
|
|
140
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
128
141
|
unrecognizedObjectKeys: "passthrough",
|
|
129
142
|
allowUnrecognizedUnionMembers: true,
|
|
130
143
|
allowUnrecognizedEnumValues: true,
|
|
@@ -171,6 +184,7 @@ class Graph {
|
|
|
171
184
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
172
185
|
*
|
|
173
186
|
* @throws {@link Zep.BadRequestError}
|
|
187
|
+
* @throws {@link Zep.NotFoundError}
|
|
174
188
|
* @throws {@link Zep.InternalServerError}
|
|
175
189
|
*
|
|
176
190
|
* @example
|
|
@@ -216,7 +230,9 @@ class Graph {
|
|
|
216
230
|
if (_response.error.reason === "status-code") {
|
|
217
231
|
switch (_response.error.statusCode) {
|
|
218
232
|
case 400:
|
|
219
|
-
throw new Zep.BadRequestError(
|
|
233
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
234
|
+
case 404:
|
|
235
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
220
236
|
unrecognizedObjectKeys: "passthrough",
|
|
221
237
|
allowUnrecognizedUnionMembers: true,
|
|
222
238
|
allowUnrecognizedEnumValues: true,
|
|
@@ -263,6 +279,7 @@ class Graph {
|
|
|
263
279
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
264
280
|
*
|
|
265
281
|
* @throws {@link Zep.BadRequestError}
|
|
282
|
+
* @throws {@link Zep.NotFoundError}
|
|
266
283
|
* @throws {@link Zep.InternalServerError}
|
|
267
284
|
*
|
|
268
285
|
* @example
|
|
@@ -303,7 +320,9 @@ class Graph {
|
|
|
303
320
|
if (_response.error.reason === "status-code") {
|
|
304
321
|
switch (_response.error.statusCode) {
|
|
305
322
|
case 400:
|
|
306
|
-
throw new Zep.BadRequestError(
|
|
323
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
324
|
+
case 404:
|
|
325
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
307
326
|
unrecognizedObjectKeys: "passthrough",
|
|
308
327
|
allowUnrecognizedUnionMembers: true,
|
|
309
328
|
allowUnrecognizedEnumValues: true,
|
|
@@ -397,13 +416,7 @@ class Graph {
|
|
|
397
416
|
if (_response.error.reason === "status-code") {
|
|
398
417
|
switch (_response.error.statusCode) {
|
|
399
418
|
case 400:
|
|
400
|
-
throw new Zep.BadRequestError(
|
|
401
|
-
unrecognizedObjectKeys: "passthrough",
|
|
402
|
-
allowUnrecognizedUnionMembers: true,
|
|
403
|
-
allowUnrecognizedEnumValues: true,
|
|
404
|
-
skipValidation: true,
|
|
405
|
-
breadcrumbsPrefix: ["response"],
|
|
406
|
-
}), _response.rawResponse);
|
|
419
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
407
420
|
case 404:
|
|
408
421
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
409
422
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -452,6 +465,7 @@ class Graph {
|
|
|
452
465
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
453
466
|
*
|
|
454
467
|
* @throws {@link Zep.BadRequestError}
|
|
468
|
+
* @throws {@link Zep.NotFoundError}
|
|
455
469
|
* @throws {@link Zep.InternalServerError}
|
|
456
470
|
*
|
|
457
471
|
* @example
|
|
@@ -492,7 +506,9 @@ class Graph {
|
|
|
492
506
|
if (_response.error.reason === "status-code") {
|
|
493
507
|
switch (_response.error.statusCode) {
|
|
494
508
|
case 400:
|
|
495
|
-
throw new Zep.BadRequestError(
|
|
509
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
510
|
+
case 404:
|
|
511
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
496
512
|
unrecognizedObjectKeys: "passthrough",
|
|
497
513
|
allowUnrecognizedUnionMembers: true,
|
|
498
514
|
allowUnrecognizedEnumValues: true,
|
|
@@ -582,13 +598,7 @@ class Graph {
|
|
|
582
598
|
if (_response.error.reason === "status-code") {
|
|
583
599
|
switch (_response.error.statusCode) {
|
|
584
600
|
case 400:
|
|
585
|
-
throw new Zep.BadRequestError(
|
|
586
|
-
unrecognizedObjectKeys: "passthrough",
|
|
587
|
-
allowUnrecognizedUnionMembers: true,
|
|
588
|
-
allowUnrecognizedEnumValues: true,
|
|
589
|
-
skipValidation: true,
|
|
590
|
-
breadcrumbsPrefix: ["response"],
|
|
591
|
-
}), _response.rawResponse);
|
|
601
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
592
602
|
case 500:
|
|
593
603
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
594
604
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -674,13 +684,7 @@ class Graph {
|
|
|
674
684
|
if (_response.error.reason === "status-code") {
|
|
675
685
|
switch (_response.error.statusCode) {
|
|
676
686
|
case 400:
|
|
677
|
-
throw new Zep.BadRequestError(
|
|
678
|
-
unrecognizedObjectKeys: "passthrough",
|
|
679
|
-
allowUnrecognizedUnionMembers: true,
|
|
680
|
-
allowUnrecognizedEnumValues: true,
|
|
681
|
-
skipValidation: true,
|
|
682
|
-
breadcrumbsPrefix: ["response"],
|
|
683
|
-
}), _response.rawResponse);
|
|
687
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
684
688
|
case 500:
|
|
685
689
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
686
690
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -764,13 +768,7 @@ class Graph {
|
|
|
764
768
|
if (_response.error.reason === "status-code") {
|
|
765
769
|
switch (_response.error.statusCode) {
|
|
766
770
|
case 400:
|
|
767
|
-
throw new Zep.BadRequestError(
|
|
768
|
-
unrecognizedObjectKeys: "passthrough",
|
|
769
|
-
allowUnrecognizedUnionMembers: true,
|
|
770
|
-
allowUnrecognizedEnumValues: true,
|
|
771
|
-
skipValidation: true,
|
|
772
|
-
breadcrumbsPrefix: ["response"],
|
|
773
|
-
}), _response.rawResponse);
|
|
771
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
774
772
|
case 500:
|
|
775
773
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
776
774
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -851,13 +849,7 @@ class Graph {
|
|
|
851
849
|
if (_response.error.reason === "status-code") {
|
|
852
850
|
switch (_response.error.statusCode) {
|
|
853
851
|
case 400:
|
|
854
|
-
throw new Zep.BadRequestError(
|
|
855
|
-
unrecognizedObjectKeys: "passthrough",
|
|
856
|
-
allowUnrecognizedUnionMembers: true,
|
|
857
|
-
allowUnrecognizedEnumValues: true,
|
|
858
|
-
skipValidation: true,
|
|
859
|
-
breadcrumbsPrefix: ["response"],
|
|
860
|
-
}), _response.rawResponse);
|
|
852
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
861
853
|
case 500:
|
|
862
854
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
863
855
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -940,13 +932,7 @@ class Graph {
|
|
|
940
932
|
if (_response.error.reason === "status-code") {
|
|
941
933
|
switch (_response.error.statusCode) {
|
|
942
934
|
case 400:
|
|
943
|
-
throw new Zep.BadRequestError(
|
|
944
|
-
unrecognizedObjectKeys: "passthrough",
|
|
945
|
-
allowUnrecognizedUnionMembers: true,
|
|
946
|
-
allowUnrecognizedEnumValues: true,
|
|
947
|
-
skipValidation: true,
|
|
948
|
-
breadcrumbsPrefix: ["response"],
|
|
949
|
-
}), _response.rawResponse);
|
|
935
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
950
936
|
case 500:
|
|
951
937
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
952
938
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -993,6 +979,7 @@ class Graph {
|
|
|
993
979
|
* await client.graph.listAll({
|
|
994
980
|
* pageNumber: 1,
|
|
995
981
|
* pageSize: 1,
|
|
982
|
+
* search: "search",
|
|
996
983
|
* orderBy: "order_by",
|
|
997
984
|
* asc: true
|
|
998
985
|
* })
|
|
@@ -1003,7 +990,7 @@ class Graph {
|
|
|
1003
990
|
__listAll() {
|
|
1004
991
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
1005
992
|
var _a, _b, _c, _d;
|
|
1006
|
-
const { pageNumber, pageSize, orderBy, asc } = request;
|
|
993
|
+
const { pageNumber, pageSize, search, orderBy, asc } = request;
|
|
1007
994
|
const _queryParams = {};
|
|
1008
995
|
if (pageNumber != null) {
|
|
1009
996
|
_queryParams["pageNumber"] = pageNumber.toString();
|
|
@@ -1011,6 +998,9 @@ class Graph {
|
|
|
1011
998
|
if (pageSize != null) {
|
|
1012
999
|
_queryParams["pageSize"] = pageSize.toString();
|
|
1013
1000
|
}
|
|
1001
|
+
if (search != null) {
|
|
1002
|
+
_queryParams["search"] = search;
|
|
1003
|
+
}
|
|
1014
1004
|
if (orderBy != null) {
|
|
1015
1005
|
_queryParams["order_by"] = orderBy;
|
|
1016
1006
|
}
|
|
@@ -1041,13 +1031,7 @@ class Graph {
|
|
|
1041
1031
|
if (_response.error.reason === "status-code") {
|
|
1042
1032
|
switch (_response.error.statusCode) {
|
|
1043
1033
|
case 400:
|
|
1044
|
-
throw new Zep.BadRequestError(
|
|
1045
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1046
|
-
allowUnrecognizedUnionMembers: true,
|
|
1047
|
-
allowUnrecognizedEnumValues: true,
|
|
1048
|
-
skipValidation: true,
|
|
1049
|
-
breadcrumbsPrefix: ["response"],
|
|
1050
|
-
}), _response.rawResponse);
|
|
1034
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1051
1035
|
case 500:
|
|
1052
1036
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1053
1037
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1084,6 +1068,8 @@ class Graph {
|
|
|
1084
1068
|
/**
|
|
1085
1069
|
* Detects structural patterns in a knowledge graph including relationship frequencies,
|
|
1086
1070
|
* multi-hop paths, co-occurrences, hubs, and clusters.
|
|
1071
|
+
* When a query is provided, uses hybrid search to discover seed nodes,
|
|
1072
|
+
* detects triple-frequency patterns, and returns resolved edges ranked by relevance.
|
|
1087
1073
|
*
|
|
1088
1074
|
* @param {Zep.DetectPatternsRequest} request
|
|
1089
1075
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1131,13 +1117,7 @@ class Graph {
|
|
|
1131
1117
|
if (_response.error.reason === "status-code") {
|
|
1132
1118
|
switch (_response.error.statusCode) {
|
|
1133
1119
|
case 400:
|
|
1134
|
-
throw new Zep.BadRequestError(
|
|
1135
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1136
|
-
allowUnrecognizedUnionMembers: true,
|
|
1137
|
-
allowUnrecognizedEnumValues: true,
|
|
1138
|
-
skipValidation: true,
|
|
1139
|
-
breadcrumbsPrefix: ["response"],
|
|
1140
|
-
}), _response.rawResponse);
|
|
1120
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1141
1121
|
case 403:
|
|
1142
1122
|
throw new Zep.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1143
1123
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1236,13 +1216,7 @@ class Graph {
|
|
|
1236
1216
|
if (_response.error.reason === "status-code") {
|
|
1237
1217
|
switch (_response.error.statusCode) {
|
|
1238
1218
|
case 400:
|
|
1239
|
-
throw new Zep.BadRequestError(
|
|
1240
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1241
|
-
allowUnrecognizedUnionMembers: true,
|
|
1242
|
-
allowUnrecognizedEnumValues: true,
|
|
1243
|
-
skipValidation: true,
|
|
1244
|
-
breadcrumbsPrefix: ["response"],
|
|
1245
|
-
}), _response.rawResponse);
|
|
1219
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1246
1220
|
case 500:
|
|
1247
1221
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1248
1222
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1399,13 +1373,7 @@ class Graph {
|
|
|
1399
1373
|
if (_response.error.reason === "status-code") {
|
|
1400
1374
|
switch (_response.error.statusCode) {
|
|
1401
1375
|
case 400:
|
|
1402
|
-
throw new Zep.BadRequestError(
|
|
1403
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1404
|
-
allowUnrecognizedUnionMembers: true,
|
|
1405
|
-
allowUnrecognizedEnumValues: true,
|
|
1406
|
-
skipValidation: true,
|
|
1407
|
-
breadcrumbsPrefix: ["response"],
|
|
1408
|
-
}), _response.rawResponse);
|
|
1376
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1409
1377
|
case 404:
|
|
1410
1378
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1411
1379
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1496,13 +1464,7 @@ class Graph {
|
|
|
1496
1464
|
if (_response.error.reason === "status-code") {
|
|
1497
1465
|
switch (_response.error.statusCode) {
|
|
1498
1466
|
case 400:
|
|
1499
|
-
throw new Zep.BadRequestError(
|
|
1500
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1501
|
-
allowUnrecognizedUnionMembers: true,
|
|
1502
|
-
allowUnrecognizedEnumValues: true,
|
|
1503
|
-
skipValidation: true,
|
|
1504
|
-
breadcrumbsPrefix: ["response"],
|
|
1505
|
-
}), _response.rawResponse);
|
|
1467
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1506
1468
|
case 404:
|
|
1507
1469
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1508
1470
|
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.js";
|
|
|
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;
|