@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
|
@@ -17,13 +17,25 @@ export interface GraphSearchQuery {
|
|
|
17
17
|
graphId?: string;
|
|
18
18
|
/** The maximum number of facts to retrieve. Defaults to 10. Limited to 50. */
|
|
19
19
|
limit?: number;
|
|
20
|
+
/** Maximum total characters across all selected results when scope=auto. Defaults to 2500. Limited to 50000. */
|
|
21
|
+
maxCharacters?: number;
|
|
20
22
|
/** weighting for maximal marginal relevance */
|
|
21
23
|
mmrLambda?: number;
|
|
22
24
|
/** The string to search for (required) */
|
|
23
25
|
query: string;
|
|
24
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Defaults to RRF. When scope=auto, this only affects graph-service retrieval
|
|
28
|
+
* shape for graph facts, observations, and thread summaries; source-episode
|
|
29
|
+
* retrieval uses RRF, and auto search applies its own internal rerank after retrieval.
|
|
30
|
+
*/
|
|
25
31
|
reranker?: Zep.Reranker;
|
|
26
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* When scope=auto, include the selected raw graph results alongside the materialized context block.
|
|
34
|
+
* For graph-service-backed auto mode, selected raw results may include episodes,
|
|
35
|
+
* edges, nodes, observations, and thread_summaries.
|
|
36
|
+
*/
|
|
37
|
+
returnRawResults?: boolean;
|
|
38
|
+
/** Defaults to Edges. */
|
|
27
39
|
scope?: Zep.GraphSearchScope;
|
|
28
40
|
/** Search filters to apply to the search */
|
|
29
41
|
searchFilters?: Zep.SearchFilters;
|
|
@@ -68,13 +68,7 @@ export class Edge {
|
|
|
68
68
|
if (_response.error.reason === "status-code") {
|
|
69
69
|
switch (_response.error.statusCode) {
|
|
70
70
|
case 400:
|
|
71
|
-
throw new Zep.BadRequestError(
|
|
72
|
-
unrecognizedObjectKeys: "passthrough",
|
|
73
|
-
allowUnrecognizedUnionMembers: true,
|
|
74
|
-
allowUnrecognizedEnumValues: true,
|
|
75
|
-
skipValidation: true,
|
|
76
|
-
breadcrumbsPrefix: ["response"],
|
|
77
|
-
}), _response.rawResponse);
|
|
71
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
78
72
|
case 500:
|
|
79
73
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
80
74
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -156,13 +150,7 @@ export class Edge {
|
|
|
156
150
|
if (_response.error.reason === "status-code") {
|
|
157
151
|
switch (_response.error.statusCode) {
|
|
158
152
|
case 400:
|
|
159
|
-
throw new Zep.BadRequestError(
|
|
160
|
-
unrecognizedObjectKeys: "passthrough",
|
|
161
|
-
allowUnrecognizedUnionMembers: true,
|
|
162
|
-
allowUnrecognizedEnumValues: true,
|
|
163
|
-
skipValidation: true,
|
|
164
|
-
breadcrumbsPrefix: ["response"],
|
|
165
|
-
}), _response.rawResponse);
|
|
153
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
166
154
|
case 500:
|
|
167
155
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
168
156
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -238,13 +226,7 @@ export class Edge {
|
|
|
238
226
|
if (_response.error.reason === "status-code") {
|
|
239
227
|
switch (_response.error.statusCode) {
|
|
240
228
|
case 400:
|
|
241
|
-
throw new Zep.BadRequestError(
|
|
242
|
-
unrecognizedObjectKeys: "passthrough",
|
|
243
|
-
allowUnrecognizedUnionMembers: true,
|
|
244
|
-
allowUnrecognizedEnumValues: true,
|
|
245
|
-
skipValidation: true,
|
|
246
|
-
breadcrumbsPrefix: ["response"],
|
|
247
|
-
}), _response.rawResponse);
|
|
229
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
248
230
|
case 404:
|
|
249
231
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
250
232
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -328,13 +310,7 @@ export class Edge {
|
|
|
328
310
|
if (_response.error.reason === "status-code") {
|
|
329
311
|
switch (_response.error.statusCode) {
|
|
330
312
|
case 400:
|
|
331
|
-
throw new Zep.BadRequestError(
|
|
332
|
-
unrecognizedObjectKeys: "passthrough",
|
|
333
|
-
allowUnrecognizedUnionMembers: true,
|
|
334
|
-
allowUnrecognizedEnumValues: true,
|
|
335
|
-
skipValidation: true,
|
|
336
|
-
breadcrumbsPrefix: ["response"],
|
|
337
|
-
}), _response.rawResponse);
|
|
313
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
338
314
|
case 404:
|
|
339
315
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
340
316
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -425,13 +401,7 @@ export class Edge {
|
|
|
425
401
|
if (_response.error.reason === "status-code") {
|
|
426
402
|
switch (_response.error.statusCode) {
|
|
427
403
|
case 400:
|
|
428
|
-
throw new Zep.BadRequestError(
|
|
429
|
-
unrecognizedObjectKeys: "passthrough",
|
|
430
|
-
allowUnrecognizedUnionMembers: true,
|
|
431
|
-
allowUnrecognizedEnumValues: true,
|
|
432
|
-
skipValidation: true,
|
|
433
|
-
breadcrumbsPrefix: ["response"],
|
|
434
|
-
}), _response.rawResponse);
|
|
404
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
435
405
|
case 404:
|
|
436
406
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
437
407
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -91,6 +91,27 @@ export declare class Episode {
|
|
|
91
91
|
*/
|
|
92
92
|
delete(uuid: string, requestOptions?: Episode.RequestOptions): core.HttpResponsePromise<Zep.SuccessResponse>;
|
|
93
93
|
private __delete;
|
|
94
|
+
/**
|
|
95
|
+
* Update episode metadata with merge semantics. Supplied keys overwrite or add to existing metadata; keys set to null are removed.
|
|
96
|
+
*
|
|
97
|
+
* @param {string} uuid - Episode UUID
|
|
98
|
+
* @param {Zep.graph.UpdateEpisodeRequest} request
|
|
99
|
+
* @param {Episode.RequestOptions} requestOptions - Request-specific configuration.
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link Zep.BadRequestError}
|
|
102
|
+
* @throws {@link Zep.ForbiddenError}
|
|
103
|
+
* @throws {@link Zep.NotFoundError}
|
|
104
|
+
* @throws {@link Zep.InternalServerError}
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* await client.graph.episode.update("uuid", {
|
|
108
|
+
* metadata: {
|
|
109
|
+
* "key": "value"
|
|
110
|
+
* }
|
|
111
|
+
* })
|
|
112
|
+
*/
|
|
113
|
+
update(uuid: string, request: Zep.graph.UpdateEpisodeRequest, requestOptions?: Episode.RequestOptions): core.HttpResponsePromise<Zep.Episode>;
|
|
114
|
+
private __update;
|
|
94
115
|
/**
|
|
95
116
|
* Returns nodes and edges mentioned in an episode
|
|
96
117
|
*
|
|
@@ -70,13 +70,7 @@ export class Episode {
|
|
|
70
70
|
if (_response.error.reason === "status-code") {
|
|
71
71
|
switch (_response.error.statusCode) {
|
|
72
72
|
case 400:
|
|
73
|
-
throw new Zep.BadRequestError(
|
|
74
|
-
unrecognizedObjectKeys: "passthrough",
|
|
75
|
-
allowUnrecognizedUnionMembers: true,
|
|
76
|
-
allowUnrecognizedEnumValues: true,
|
|
77
|
-
skipValidation: true,
|
|
78
|
-
breadcrumbsPrefix: ["response"],
|
|
79
|
-
}), _response.rawResponse);
|
|
73
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
80
74
|
case 500:
|
|
81
75
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
82
76
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -160,13 +154,7 @@ export class Episode {
|
|
|
160
154
|
if (_response.error.reason === "status-code") {
|
|
161
155
|
switch (_response.error.statusCode) {
|
|
162
156
|
case 400:
|
|
163
|
-
throw new Zep.BadRequestError(
|
|
164
|
-
unrecognizedObjectKeys: "passthrough",
|
|
165
|
-
allowUnrecognizedUnionMembers: true,
|
|
166
|
-
allowUnrecognizedEnumValues: true,
|
|
167
|
-
skipValidation: true,
|
|
168
|
-
breadcrumbsPrefix: ["response"],
|
|
169
|
-
}), _response.rawResponse);
|
|
157
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
170
158
|
case 500:
|
|
171
159
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
172
160
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -241,13 +229,7 @@ export class Episode {
|
|
|
241
229
|
if (_response.error.reason === "status-code") {
|
|
242
230
|
switch (_response.error.statusCode) {
|
|
243
231
|
case 400:
|
|
244
|
-
throw new Zep.BadRequestError(
|
|
245
|
-
unrecognizedObjectKeys: "passthrough",
|
|
246
|
-
allowUnrecognizedUnionMembers: true,
|
|
247
|
-
allowUnrecognizedEnumValues: true,
|
|
248
|
-
skipValidation: true,
|
|
249
|
-
breadcrumbsPrefix: ["response"],
|
|
250
|
-
}), _response.rawResponse);
|
|
232
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
251
233
|
case 500:
|
|
252
234
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
253
235
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -323,7 +305,105 @@ export class Episode {
|
|
|
323
305
|
if (_response.error.reason === "status-code") {
|
|
324
306
|
switch (_response.error.statusCode) {
|
|
325
307
|
case 400:
|
|
326
|
-
throw new Zep.BadRequestError(
|
|
308
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
309
|
+
case 404:
|
|
310
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
311
|
+
unrecognizedObjectKeys: "passthrough",
|
|
312
|
+
allowUnrecognizedUnionMembers: true,
|
|
313
|
+
allowUnrecognizedEnumValues: true,
|
|
314
|
+
skipValidation: true,
|
|
315
|
+
breadcrumbsPrefix: ["response"],
|
|
316
|
+
}), _response.rawResponse);
|
|
317
|
+
case 500:
|
|
318
|
+
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
319
|
+
unrecognizedObjectKeys: "passthrough",
|
|
320
|
+
allowUnrecognizedUnionMembers: true,
|
|
321
|
+
allowUnrecognizedEnumValues: true,
|
|
322
|
+
skipValidation: true,
|
|
323
|
+
breadcrumbsPrefix: ["response"],
|
|
324
|
+
}), _response.rawResponse);
|
|
325
|
+
default:
|
|
326
|
+
throw new errors.ZepError({
|
|
327
|
+
statusCode: _response.error.statusCode,
|
|
328
|
+
body: _response.error.body,
|
|
329
|
+
rawResponse: _response.rawResponse,
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
switch (_response.error.reason) {
|
|
334
|
+
case "non-json":
|
|
335
|
+
throw new errors.ZepError({
|
|
336
|
+
statusCode: _response.error.statusCode,
|
|
337
|
+
body: _response.error.rawBody,
|
|
338
|
+
rawResponse: _response.rawResponse,
|
|
339
|
+
});
|
|
340
|
+
case "timeout":
|
|
341
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling DELETE /graph/episodes/{uuid}.");
|
|
342
|
+
case "unknown":
|
|
343
|
+
throw new errors.ZepError({
|
|
344
|
+
message: _response.error.errorMessage,
|
|
345
|
+
rawResponse: _response.rawResponse,
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Update episode metadata with merge semantics. Supplied keys overwrite or add to existing metadata; keys set to null are removed.
|
|
352
|
+
*
|
|
353
|
+
* @param {string} uuid - Episode UUID
|
|
354
|
+
* @param {Zep.graph.UpdateEpisodeRequest} request
|
|
355
|
+
* @param {Episode.RequestOptions} requestOptions - Request-specific configuration.
|
|
356
|
+
*
|
|
357
|
+
* @throws {@link Zep.BadRequestError}
|
|
358
|
+
* @throws {@link Zep.ForbiddenError}
|
|
359
|
+
* @throws {@link Zep.NotFoundError}
|
|
360
|
+
* @throws {@link Zep.InternalServerError}
|
|
361
|
+
*
|
|
362
|
+
* @example
|
|
363
|
+
* await client.graph.episode.update("uuid", {
|
|
364
|
+
* metadata: {
|
|
365
|
+
* "key": "value"
|
|
366
|
+
* }
|
|
367
|
+
* })
|
|
368
|
+
*/
|
|
369
|
+
update(uuid, request, requestOptions) {
|
|
370
|
+
return core.HttpResponsePromise.fromPromise(this.__update(uuid, request, requestOptions));
|
|
371
|
+
}
|
|
372
|
+
__update(uuid, request, requestOptions) {
|
|
373
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
374
|
+
var _a, _b, _c, _d;
|
|
375
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
376
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ZepEnvironment.Default, `graph/episodes/${encodeURIComponent(uuid)}`),
|
|
377
|
+
method: "PATCH",
|
|
378
|
+
headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
379
|
+
contentType: "application/json",
|
|
380
|
+
requestType: "json",
|
|
381
|
+
body: serializers.graph.UpdateEpisodeRequest.jsonOrThrow(request, {
|
|
382
|
+
unrecognizedObjectKeys: "strip",
|
|
383
|
+
omitUndefined: true,
|
|
384
|
+
}),
|
|
385
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
386
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
387
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
388
|
+
});
|
|
389
|
+
if (_response.ok) {
|
|
390
|
+
return {
|
|
391
|
+
data: serializers.Episode.parseOrThrow(_response.body, {
|
|
392
|
+
unrecognizedObjectKeys: "passthrough",
|
|
393
|
+
allowUnrecognizedUnionMembers: true,
|
|
394
|
+
allowUnrecognizedEnumValues: true,
|
|
395
|
+
skipValidation: true,
|
|
396
|
+
breadcrumbsPrefix: ["response"],
|
|
397
|
+
}),
|
|
398
|
+
rawResponse: _response.rawResponse,
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
if (_response.error.reason === "status-code") {
|
|
402
|
+
switch (_response.error.statusCode) {
|
|
403
|
+
case 400:
|
|
404
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
405
|
+
case 403:
|
|
406
|
+
throw new Zep.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
327
407
|
unrecognizedObjectKeys: "passthrough",
|
|
328
408
|
allowUnrecognizedUnionMembers: true,
|
|
329
409
|
allowUnrecognizedEnumValues: true,
|
|
@@ -362,7 +442,7 @@ export class Episode {
|
|
|
362
442
|
rawResponse: _response.rawResponse,
|
|
363
443
|
});
|
|
364
444
|
case "timeout":
|
|
365
|
-
throw new errors.ZepTimeoutError("Timeout exceeded when calling
|
|
445
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling PATCH /graph/episodes/{uuid}.");
|
|
366
446
|
case "unknown":
|
|
367
447
|
throw new errors.ZepError({
|
|
368
448
|
message: _response.error.errorMessage,
|
|
@@ -412,13 +492,7 @@ export class Episode {
|
|
|
412
492
|
if (_response.error.reason === "status-code") {
|
|
413
493
|
switch (_response.error.statusCode) {
|
|
414
494
|
case 400:
|
|
415
|
-
throw new Zep.BadRequestError(
|
|
416
|
-
unrecognizedObjectKeys: "passthrough",
|
|
417
|
-
allowUnrecognizedUnionMembers: true,
|
|
418
|
-
allowUnrecognizedEnumValues: true,
|
|
419
|
-
skipValidation: true,
|
|
420
|
-
breadcrumbsPrefix: ["response"],
|
|
421
|
-
}), _response.rawResponse);
|
|
495
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
422
496
|
case 500:
|
|
423
497
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
424
498
|
unrecognizedObjectKeys: "passthrough",
|
package/dist/esm/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.mts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* metadata: {
|
|
8
|
+
* "key": "value"
|
|
9
|
+
* }
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface UpdateEpisodeRequest {
|
|
13
|
+
/** Updated metadata. Merged with existing metadata: supplied keys overwrite/add, keys set to null are removed. Maximum 10 keys. Values must be scalars (string, number, boolean, null) or arrays of scalars. */
|
|
14
|
+
metadata: Record<string, unknown>;
|
|
15
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * as edge from "./edge/index.mjs";
|
|
2
2
|
export * as episode from "./episode/index.mjs";
|
|
3
3
|
export * as node from "./node/index.mjs";
|
|
4
|
+
export * as observation from "./observation/index.mjs";
|
|
5
|
+
export * as threadSummary from "./threadSummary/index.mjs";
|
|
4
6
|
export * from "./edge/client/requests/index.mjs";
|
|
5
7
|
export * from "./episode/client/requests/index.mjs";
|
|
6
8
|
export * from "./node/client/requests/index.mjs";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * as edge from "./edge/index.mjs";
|
|
2
2
|
export * as episode from "./episode/index.mjs";
|
|
3
3
|
export * as node from "./node/index.mjs";
|
|
4
|
+
export * as observation from "./observation/index.mjs";
|
|
5
|
+
export * as threadSummary from "./threadSummary/index.mjs";
|
|
4
6
|
export * from "./edge/client/requests/index.mjs";
|
|
5
7
|
export * from "./episode/client/requests/index.mjs";
|
|
6
8
|
export * from "./node/client/requests/index.mjs";
|
|
@@ -68,13 +68,7 @@ export class Node {
|
|
|
68
68
|
if (_response.error.reason === "status-code") {
|
|
69
69
|
switch (_response.error.statusCode) {
|
|
70
70
|
case 400:
|
|
71
|
-
throw new Zep.BadRequestError(
|
|
72
|
-
unrecognizedObjectKeys: "passthrough",
|
|
73
|
-
allowUnrecognizedUnionMembers: true,
|
|
74
|
-
allowUnrecognizedEnumValues: true,
|
|
75
|
-
skipValidation: true,
|
|
76
|
-
breadcrumbsPrefix: ["response"],
|
|
77
|
-
}), _response.rawResponse);
|
|
71
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
78
72
|
case 500:
|
|
79
73
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
80
74
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -156,13 +150,7 @@ export class Node {
|
|
|
156
150
|
if (_response.error.reason === "status-code") {
|
|
157
151
|
switch (_response.error.statusCode) {
|
|
158
152
|
case 400:
|
|
159
|
-
throw new Zep.BadRequestError(
|
|
160
|
-
unrecognizedObjectKeys: "passthrough",
|
|
161
|
-
allowUnrecognizedUnionMembers: true,
|
|
162
|
-
allowUnrecognizedEnumValues: true,
|
|
163
|
-
skipValidation: true,
|
|
164
|
-
breadcrumbsPrefix: ["response"],
|
|
165
|
-
}), _response.rawResponse);
|
|
153
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
166
154
|
case 500:
|
|
167
155
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
168
156
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -237,13 +225,7 @@ export class Node {
|
|
|
237
225
|
if (_response.error.reason === "status-code") {
|
|
238
226
|
switch (_response.error.statusCode) {
|
|
239
227
|
case 400:
|
|
240
|
-
throw new Zep.BadRequestError(
|
|
241
|
-
unrecognizedObjectKeys: "passthrough",
|
|
242
|
-
allowUnrecognizedUnionMembers: true,
|
|
243
|
-
allowUnrecognizedEnumValues: true,
|
|
244
|
-
skipValidation: true,
|
|
245
|
-
breadcrumbsPrefix: ["response"],
|
|
246
|
-
}), _response.rawResponse);
|
|
228
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
247
229
|
case 500:
|
|
248
230
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
249
231
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -318,13 +300,7 @@ export class Node {
|
|
|
318
300
|
if (_response.error.reason === "status-code") {
|
|
319
301
|
switch (_response.error.statusCode) {
|
|
320
302
|
case 400:
|
|
321
|
-
throw new Zep.BadRequestError(
|
|
322
|
-
unrecognizedObjectKeys: "passthrough",
|
|
323
|
-
allowUnrecognizedUnionMembers: true,
|
|
324
|
-
allowUnrecognizedEnumValues: true,
|
|
325
|
-
skipValidation: true,
|
|
326
|
-
breadcrumbsPrefix: ["response"],
|
|
327
|
-
}), _response.rawResponse);
|
|
303
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
328
304
|
case 500:
|
|
329
305
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
330
306
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -400,13 +376,7 @@ export class Node {
|
|
|
400
376
|
if (_response.error.reason === "status-code") {
|
|
401
377
|
switch (_response.error.statusCode) {
|
|
402
378
|
case 400:
|
|
403
|
-
throw new Zep.BadRequestError(
|
|
404
|
-
unrecognizedObjectKeys: "passthrough",
|
|
405
|
-
allowUnrecognizedUnionMembers: true,
|
|
406
|
-
allowUnrecognizedEnumValues: true,
|
|
407
|
-
skipValidation: true,
|
|
408
|
-
breadcrumbsPrefix: ["response"],
|
|
409
|
-
}), _response.rawResponse);
|
|
379
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
410
380
|
case 404:
|
|
411
381
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
412
382
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -490,13 +460,7 @@ export class Node {
|
|
|
490
460
|
if (_response.error.reason === "status-code") {
|
|
491
461
|
switch (_response.error.statusCode) {
|
|
492
462
|
case 400:
|
|
493
|
-
throw new Zep.BadRequestError(
|
|
494
|
-
unrecognizedObjectKeys: "passthrough",
|
|
495
|
-
allowUnrecognizedUnionMembers: true,
|
|
496
|
-
allowUnrecognizedEnumValues: true,
|
|
497
|
-
skipValidation: true,
|
|
498
|
-
breadcrumbsPrefix: ["response"],
|
|
499
|
-
}), _response.rawResponse);
|
|
463
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
500
464
|
case 404:
|
|
501
465
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
502
466
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -587,13 +551,7 @@ export class Node {
|
|
|
587
551
|
if (_response.error.reason === "status-code") {
|
|
588
552
|
switch (_response.error.statusCode) {
|
|
589
553
|
case 400:
|
|
590
|
-
throw new Zep.BadRequestError(
|
|
591
|
-
unrecognizedObjectKeys: "passthrough",
|
|
592
|
-
allowUnrecognizedUnionMembers: true,
|
|
593
|
-
allowUnrecognizedEnumValues: true,
|
|
594
|
-
skipValidation: true,
|
|
595
|
-
breadcrumbsPrefix: ["response"],
|
|
596
|
-
}), _response.rawResponse);
|
|
554
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
597
555
|
case 404:
|
|
598
556
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
599
557
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
6
|
+
import * as Zep from "../../../../../index.mjs";
|
|
7
|
+
export declare namespace Observation {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ZepEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional headers to include in the request. */
|
|
25
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export declare class Observation {
|
|
29
|
+
protected readonly _options: Observation.Options;
|
|
30
|
+
constructor(_options?: Observation.Options);
|
|
31
|
+
/**
|
|
32
|
+
* Returns read-only observation nodes for a graph.
|
|
33
|
+
*
|
|
34
|
+
* @param {string} graphId - Graph ID
|
|
35
|
+
* @param {Zep.GraphObservationsRequest} request
|
|
36
|
+
* @param {Observation.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
|
+
*
|
|
38
|
+
* @throws {@link Zep.BadRequestError}
|
|
39
|
+
* @throws {@link Zep.NotFoundError}
|
|
40
|
+
* @throws {@link Zep.InternalServerError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.graph.observation.getByGraphId("graph_id", {})
|
|
44
|
+
*/
|
|
45
|
+
getByGraphId(graphId: string, request: Zep.GraphObservationsRequest, requestOptions?: Observation.RequestOptions): core.HttpResponsePromise<Zep.DerivedNode[]>;
|
|
46
|
+
private __getByGraphId;
|
|
47
|
+
/**
|
|
48
|
+
* Returns read-only observation nodes for a user's graph.
|
|
49
|
+
*
|
|
50
|
+
* @param {string} userId - User ID
|
|
51
|
+
* @param {Zep.GraphObservationsRequest} request
|
|
52
|
+
* @param {Observation.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link Zep.BadRequestError}
|
|
55
|
+
* @throws {@link Zep.NotFoundError}
|
|
56
|
+
* @throws {@link Zep.InternalServerError}
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* await client.graph.observation.getByUserId("user_id", {})
|
|
60
|
+
*/
|
|
61
|
+
getByUserId(userId: string, request: Zep.GraphObservationsRequest, requestOptions?: Observation.RequestOptions): core.HttpResponsePromise<Zep.DerivedNode[]>;
|
|
62
|
+
private __getByUserId;
|
|
63
|
+
/**
|
|
64
|
+
* Returns a specific observation node by UUID. Observation nodes are read-only.
|
|
65
|
+
*
|
|
66
|
+
* @param {string} uuid - Observation UUID
|
|
67
|
+
* @param {Observation.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link Zep.BadRequestError}
|
|
70
|
+
* @throws {@link Zep.NotFoundError}
|
|
71
|
+
* @throws {@link Zep.InternalServerError}
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* await client.graph.observation.get("uuid")
|
|
75
|
+
*/
|
|
76
|
+
get(uuid: string, requestOptions?: Observation.RequestOptions): core.HttpResponsePromise<Zep.DerivedNode>;
|
|
77
|
+
private __get;
|
|
78
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
79
|
+
Authorization: string;
|
|
80
|
+
}>;
|
|
81
|
+
}
|