@getzep/zep-cloud 3.18.0 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +19 -14
- package/dist/cjs/api/errors/BadRequestError.d.ts +1 -2
- package/dist/cjs/api/errors/ConflictError.d.ts +9 -0
- package/dist/cjs/api/errors/ConflictError.js +52 -0
- package/dist/cjs/api/errors/index.d.ts +2 -1
- package/dist/cjs/api/errors/index.js +2 -1
- package/dist/cjs/api/resources/batch/client/Client.d.ts +161 -0
- package/dist/cjs/api/resources/batch/client/Client.js +777 -0
- package/dist/cjs/api/resources/batch/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/batch/client/index.js +17 -0
- package/dist/cjs/api/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.ts +15 -0
- package/dist/cjs/api/resources/batch/client/requests/ApidataAddBatchItemsRequest.js +5 -0
- package/dist/cjs/api/resources/batch/client/requests/ApidataCreateBatchRequest.d.ts +18 -0
- package/dist/cjs/api/resources/batch/client/requests/ApidataCreateBatchRequest.js +5 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchListItemsRequest.d.ts +25 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchListItemsRequest.js +5 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchListRequest.d.ts +25 -0
- package/dist/cjs/api/resources/batch/client/requests/BatchListRequest.js +5 -0
- package/dist/cjs/api/resources/batch/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/batch/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/batch/index.d.ts +1 -0
- package/dist/cjs/api/resources/batch/index.js +17 -0
- package/dist/cjs/api/resources/context/client/Client.js +5 -35
- package/dist/cjs/api/resources/graph/client/Client.d.ts +24 -1
- package/dist/cjs/api/resources/graph/client/Client.js +109 -102
- package/dist/cjs/api/resources/graph/client/requests/AddDataRequest.d.ts +2 -0
- package/dist/cjs/api/resources/graph/client/requests/AddTripleRequest.d.ts +19 -2
- package/dist/cjs/api/resources/graph/client/requests/GraphListAllRequest.d.ts +5 -0
- package/dist/cjs/api/resources/graph/client/requests/GraphSearchQuery.d.ts +14 -3
- package/dist/cjs/api/resources/graph/resources/edge/client/Client.js +5 -35
- package/dist/cjs/api/resources/graph/resources/episode/client/Client.d.ts +21 -0
- package/dist/cjs/api/resources/graph/resources/episode/client/Client.js +104 -30
- package/dist/cjs/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.ts +15 -0
- package/dist/cjs/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.js +5 -0
- package/dist/cjs/api/resources/graph/resources/episode/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/graph/resources/index.js +3 -1
- package/dist/cjs/api/resources/graph/resources/node/client/Client.js +7 -49
- package/dist/cjs/api/resources/graph/resources/observation/client/Client.d.ts +81 -0
- package/dist/cjs/api/resources/graph/resources/observation/client/Client.js +333 -0
- package/dist/cjs/api/resources/graph/resources/observation/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/observation/client/index.js +2 -0
- package/dist/cjs/api/resources/graph/resources/observation/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/observation/index.js +17 -0
- package/dist/cjs/api/resources/graph/resources/threadSummary/client/Client.d.ts +66 -0
- package/dist/cjs/api/resources/graph/resources/threadSummary/client/Client.js +249 -0
- package/dist/cjs/api/resources/graph/resources/threadSummary/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/threadSummary/client/index.js +2 -0
- package/dist/cjs/api/resources/graph/resources/threadSummary/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/threadSummary/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/project/client/Client.js +1 -7
- package/dist/cjs/api/resources/thread/client/Client.d.ts +19 -2
- package/dist/cjs/api/resources/thread/client/Client.js +96 -16
- package/dist/cjs/api/resources/thread/client/requests/ThreadGetRequest.d.ts +1 -1
- package/dist/cjs/api/resources/user/client/Client.js +6 -42
- package/dist/cjs/api/types/ApidataBatchAddItemRole.d.ts +12 -0
- package/dist/cjs/api/types/ApidataBatchAddItemRole.js +14 -0
- package/dist/cjs/api/types/ApidataBatchAddItemType.d.ts +8 -0
- package/dist/cjs/api/types/ApidataBatchAddItemType.js +10 -0
- package/dist/cjs/api/types/BatchAddItem.d.ts +18 -0
- package/dist/cjs/api/types/BatchAddItem.js +5 -0
- package/dist/cjs/api/types/BatchItemDetail.d.ts +24 -0
- package/dist/cjs/api/types/BatchItemDetail.js +5 -0
- package/dist/cjs/api/types/BatchItemKind.d.ts +8 -0
- package/dist/cjs/api/types/BatchItemKind.js +10 -0
- package/dist/cjs/api/types/BatchItemListResponse.d.ts +8 -0
- package/dist/cjs/api/types/BatchItemListResponse.js +5 -0
- package/dist/cjs/api/types/BatchItemStatus.d.ts +13 -0
- package/dist/cjs/api/types/BatchItemStatus.js +15 -0
- package/dist/cjs/api/types/BatchListResponse.d.ts +8 -0
- package/dist/cjs/api/types/BatchListResponse.js +5 -0
- package/dist/cjs/api/types/BatchProgress.d.ts +13 -0
- package/dist/cjs/api/types/BatchProgress.js +5 -0
- package/dist/cjs/api/types/BatchStatus.d.ts +14 -0
- package/dist/cjs/api/types/BatchStatus.js +16 -0
- package/dist/cjs/api/types/BatchSummary.d.ts +16 -0
- package/dist/cjs/api/types/BatchSummary.js +5 -0
- package/dist/cjs/api/types/ComparisonOperator.d.ts +2 -1
- package/dist/cjs/api/types/ComparisonOperator.js +1 -0
- package/dist/cjs/api/types/DerivedNode.d.ts +44 -0
- package/dist/cjs/api/types/DerivedNode.js +5 -0
- package/dist/cjs/api/types/EntityEdge.d.ts +4 -0
- package/dist/cjs/api/types/EntityNode.d.ts +2 -0
- package/dist/cjs/api/types/Episode.d.ts +2 -0
- package/dist/cjs/api/types/EpisodeData.d.ts +2 -0
- package/dist/cjs/api/types/EpisodeMetadataFilter.d.ts +12 -0
- package/dist/cjs/api/types/EpisodeMetadataFilter.js +5 -0
- package/dist/cjs/api/types/GraphDataType.d.ts +2 -1
- package/dist/cjs/api/types/GraphDataType.js +1 -0
- package/dist/cjs/api/types/GraphObservationsRequest.d.ts +9 -0
- package/dist/cjs/api/types/GraphObservationsRequest.js +5 -0
- package/dist/cjs/api/types/GraphSearchResponseMetadata.d.ts +7 -0
- package/dist/cjs/api/types/GraphSearchResponseMetadata.js +5 -0
- package/dist/cjs/api/types/GraphSearchResults.d.ts +4 -0
- package/dist/cjs/api/types/GraphSearchScope.d.ts +4 -1
- package/dist/cjs/api/types/GraphSearchScope.js +3 -0
- package/dist/cjs/api/types/GraphThreadSummariesRequest.d.ts +9 -0
- package/dist/cjs/api/types/GraphThreadSummariesRequest.js +5 -0
- package/dist/cjs/api/types/GraphitiMetadataFilterGroupType.d.ts +11 -0
- package/dist/cjs/api/types/GraphitiMetadataFilterGroupType.js +10 -0
- package/dist/cjs/api/types/GraphitiSagaNode.d.ts +35 -0
- package/dist/cjs/api/types/GraphitiSagaNode.js +5 -0
- package/dist/cjs/api/types/MetadataFilterGroup.d.ts +12 -0
- package/dist/cjs/api/types/MetadataFilterGroup.js +5 -0
- package/dist/cjs/api/types/PatternResult.d.ts +17 -3
- package/dist/cjs/api/types/PatternSeeds.d.ts +1 -1
- package/dist/cjs/api/types/SearchFilters.d.ts +6 -1
- package/dist/cjs/api/types/ThreadSummary.d.ts +31 -0
- package/dist/cjs/api/types/ThreadSummary.js +5 -0
- package/dist/cjs/api/types/index.d.ts +20 -0
- package/dist/cjs/api/types/index.js +20 -0
- package/dist/cjs/serialization/resources/batch/client/add.d.ts +11 -0
- package/dist/cjs/serialization/resources/batch/client/add.js +42 -0
- package/dist/cjs/serialization/resources/batch/client/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/batch/client/index.js +41 -0
- package/dist/cjs/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.ts +13 -0
- package/dist/cjs/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.js +44 -0
- package/dist/cjs/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.d.ts +14 -0
- package/dist/cjs/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.js +45 -0
- package/dist/cjs/serialization/resources/batch/client/requests/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/batch/client/requests/index.js +7 -0
- package/dist/cjs/serialization/resources/batch/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/batch/index.js +17 -0
- package/dist/cjs/serialization/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/client/requests/AddDataRequest.js +1 -0
- package/dist/cjs/serialization/resources/graph/client/requests/AddTripleRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/client/requests/AddTripleRequest.js +1 -0
- package/dist/cjs/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +2 -0
- package/dist/cjs/serialization/resources/graph/client/requests/GraphSearchQuery.js +2 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/client/index.js +17 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.ts +12 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.js +43 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/resources/episode/index.js +17 -0
- package/dist/cjs/serialization/resources/graph/resources/index.d.ts +4 -0
- package/dist/cjs/serialization/resources/graph/resources/index.js +5 -1
- package/dist/cjs/serialization/resources/graph/resources/observation/client/getByGraphId.d.ts +11 -0
- package/dist/cjs/serialization/resources/graph/resources/observation/client/getByGraphId.js +42 -0
- package/dist/cjs/serialization/resources/graph/resources/observation/client/getByUserId.d.ts +11 -0
- package/dist/cjs/serialization/resources/graph/resources/observation/client/getByUserId.js +42 -0
- package/dist/cjs/serialization/resources/graph/resources/observation/client/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/graph/resources/observation/client/index.js +38 -0
- package/dist/cjs/serialization/resources/graph/resources/observation/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/resources/observation/index.js +17 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByGraphId.d.ts +11 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByGraphId.js +42 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByUserId.d.ts +11 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByUserId.js +42 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/index.js +38 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/resources/threadSummary/index.js +17 -0
- package/dist/cjs/serialization/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/index.js +3 -1
- package/dist/cjs/serialization/types/ApidataBatchAddItemRole.d.ts +10 -0
- package/dist/cjs/serialization/types/ApidataBatchAddItemRole.js +41 -0
- package/dist/cjs/serialization/types/ApidataBatchAddItemType.d.ts +10 -0
- package/dist/cjs/serialization/types/ApidataBatchAddItemType.js +41 -0
- package/dist/cjs/serialization/types/BatchAddItem.d.ts +26 -0
- package/dist/cjs/serialization/types/BatchAddItem.js +57 -0
- package/dist/cjs/serialization/types/BatchItemDetail.d.ts +25 -0
- package/dist/cjs/serialization/types/BatchItemDetail.js +56 -0
- package/dist/cjs/serialization/types/BatchItemKind.d.ts +10 -0
- package/dist/cjs/serialization/types/BatchItemKind.js +41 -0
- package/dist/cjs/serialization/types/BatchItemListResponse.d.ts +14 -0
- package/dist/cjs/serialization/types/BatchItemListResponse.js +45 -0
- package/dist/cjs/serialization/types/BatchItemStatus.d.ts +10 -0
- package/dist/cjs/serialization/types/BatchItemStatus.js +41 -0
- package/dist/cjs/serialization/types/BatchListResponse.d.ts +14 -0
- package/dist/cjs/serialization/types/BatchListResponse.js +45 -0
- package/dist/cjs/serialization/types/BatchProgress.d.ts +19 -0
- package/dist/cjs/serialization/types/BatchProgress.js +50 -0
- package/dist/cjs/serialization/types/BatchStatus.d.ts +10 -0
- package/dist/cjs/serialization/types/BatchStatus.js +50 -0
- package/dist/cjs/serialization/types/BatchSummary.d.ts +24 -0
- package/dist/cjs/serialization/types/BatchSummary.js +55 -0
- package/dist/cjs/serialization/types/ComparisonOperator.d.ts +1 -1
- package/dist/cjs/serialization/types/ComparisonOperator.js +1 -1
- package/dist/cjs/serialization/types/DerivedNode.d.ts +24 -0
- package/dist/cjs/serialization/types/DerivedNode.js +55 -0
- package/dist/cjs/serialization/types/EntityEdge.d.ts +2 -0
- package/dist/cjs/serialization/types/EntityEdge.js +2 -0
- package/dist/cjs/serialization/types/EntityNode.d.ts +1 -0
- package/dist/cjs/serialization/types/EntityNode.js +1 -0
- package/dist/cjs/serialization/types/Episode.d.ts +1 -0
- package/dist/cjs/serialization/types/Episode.js +1 -0
- package/dist/cjs/serialization/types/EpisodeData.d.ts +1 -0
- package/dist/cjs/serialization/types/EpisodeData.js +1 -0
- package/dist/cjs/serialization/types/EpisodeMetadataFilter.d.ts +15 -0
- package/dist/cjs/serialization/types/EpisodeMetadataFilter.js +46 -0
- package/dist/cjs/serialization/types/GraphDataType.d.ts +1 -1
- package/dist/cjs/serialization/types/GraphDataType.js +1 -1
- package/dist/cjs/serialization/types/GraphObservationsRequest.d.ts +13 -0
- package/dist/cjs/serialization/types/GraphObservationsRequest.js +44 -0
- package/dist/cjs/serialization/types/GraphSearchResponseMetadata.d.ts +12 -0
- package/dist/cjs/serialization/types/GraphSearchResponseMetadata.js +43 -0
- package/dist/cjs/serialization/types/GraphSearchResults.d.ts +7 -0
- package/dist/cjs/serialization/types/GraphSearchResults.js +7 -0
- package/dist/cjs/serialization/types/GraphSearchScope.d.ts +1 -1
- package/dist/cjs/serialization/types/GraphSearchScope.js +1 -1
- package/dist/cjs/serialization/types/GraphThreadSummariesRequest.d.ts +13 -0
- package/dist/cjs/serialization/types/GraphThreadSummariesRequest.js +44 -0
- package/dist/cjs/serialization/types/GraphitiMetadataFilterGroupType.d.ts +10 -0
- package/dist/cjs/serialization/types/GraphitiMetadataFilterGroupType.js +41 -0
- package/dist/cjs/serialization/types/GraphitiSagaNode.d.ts +21 -0
- package/dist/cjs/serialization/types/GraphitiSagaNode.js +52 -0
- package/dist/cjs/serialization/types/MetadataFilterGroup.d.ts +16 -0
- package/dist/cjs/serialization/types/MetadataFilterGroup.js +48 -0
- package/dist/cjs/serialization/types/PatternResult.d.ts +1 -0
- package/dist/cjs/serialization/types/PatternResult.js +1 -0
- package/dist/cjs/serialization/types/SearchFilters.d.ts +1 -0
- package/dist/cjs/serialization/types/SearchFilters.js +2 -0
- package/dist/cjs/serialization/types/ThreadSummary.d.ts +17 -0
- package/dist/cjs/serialization/types/ThreadSummary.js +48 -0
- package/dist/cjs/serialization/types/index.d.ts +20 -0
- package/dist/cjs/serialization/types/index.js +20 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/errors/BadRequestError.d.mts +1 -2
- package/dist/esm/api/errors/ConflictError.d.mts +9 -0
- package/dist/esm/api/errors/ConflictError.mjs +15 -0
- package/dist/esm/api/errors/index.d.mts +2 -1
- package/dist/esm/api/errors/index.mjs +2 -1
- package/dist/esm/api/resources/batch/client/Client.d.mts +161 -0
- package/dist/esm/api/resources/batch/client/Client.mjs +740 -0
- package/dist/esm/api/resources/batch/client/index.d.mts +2 -0
- package/dist/esm/api/resources/batch/client/index.mjs +1 -0
- package/dist/esm/api/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.mts +15 -0
- package/dist/esm/api/resources/batch/client/requests/ApidataAddBatchItemsRequest.mjs +4 -0
- package/dist/esm/api/resources/batch/client/requests/ApidataCreateBatchRequest.d.mts +18 -0
- package/dist/esm/api/resources/batch/client/requests/ApidataCreateBatchRequest.mjs +4 -0
- package/dist/esm/api/resources/batch/client/requests/BatchListItemsRequest.d.mts +25 -0
- package/dist/esm/api/resources/batch/client/requests/BatchListItemsRequest.mjs +4 -0
- package/dist/esm/api/resources/batch/client/requests/BatchListRequest.d.mts +25 -0
- package/dist/esm/api/resources/batch/client/requests/BatchListRequest.mjs +4 -0
- package/dist/esm/api/resources/batch/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/batch/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/batch/index.d.mts +1 -0
- package/dist/esm/api/resources/batch/index.mjs +1 -0
- package/dist/esm/api/resources/context/client/Client.mjs +5 -35
- package/dist/esm/api/resources/graph/client/Client.d.mts +24 -1
- package/dist/esm/api/resources/graph/client/Client.mjs +109 -102
- package/dist/esm/api/resources/graph/client/requests/AddDataRequest.d.mts +2 -0
- package/dist/esm/api/resources/graph/client/requests/AddTripleRequest.d.mts +19 -2
- package/dist/esm/api/resources/graph/client/requests/GraphListAllRequest.d.mts +5 -0
- package/dist/esm/api/resources/graph/client/requests/GraphSearchQuery.d.mts +14 -3
- package/dist/esm/api/resources/graph/resources/edge/client/Client.mjs +5 -35
- package/dist/esm/api/resources/graph/resources/episode/client/Client.d.mts +21 -0
- package/dist/esm/api/resources/graph/resources/episode/client/Client.mjs +104 -30
- package/dist/esm/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.mts +15 -0
- package/dist/esm/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.mjs +4 -0
- package/dist/esm/api/resources/graph/resources/episode/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/graph/resources/index.mjs +2 -0
- package/dist/esm/api/resources/graph/resources/node/client/Client.mjs +7 -49
- package/dist/esm/api/resources/graph/resources/observation/client/Client.d.mts +81 -0
- package/dist/esm/api/resources/graph/resources/observation/client/Client.mjs +296 -0
- package/dist/esm/api/resources/graph/resources/observation/client/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/observation/client/index.mjs +1 -0
- package/dist/esm/api/resources/graph/resources/observation/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/observation/index.mjs +1 -0
- package/dist/esm/api/resources/graph/resources/threadSummary/client/Client.d.mts +66 -0
- package/dist/esm/api/resources/graph/resources/threadSummary/client/Client.mjs +212 -0
- package/dist/esm/api/resources/graph/resources/threadSummary/client/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/threadSummary/client/index.mjs +1 -0
- package/dist/esm/api/resources/graph/resources/threadSummary/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/threadSummary/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/project/client/Client.mjs +1 -7
- package/dist/esm/api/resources/thread/client/Client.d.mts +19 -2
- package/dist/esm/api/resources/thread/client/Client.mjs +96 -16
- package/dist/esm/api/resources/thread/client/requests/ThreadGetRequest.d.mts +1 -1
- package/dist/esm/api/resources/user/client/Client.mjs +6 -42
- package/dist/esm/api/types/ApidataBatchAddItemRole.d.mts +12 -0
- package/dist/esm/api/types/ApidataBatchAddItemRole.mjs +11 -0
- package/dist/esm/api/types/ApidataBatchAddItemType.d.mts +8 -0
- package/dist/esm/api/types/ApidataBatchAddItemType.mjs +7 -0
- package/dist/esm/api/types/BatchAddItem.d.mts +18 -0
- package/dist/esm/api/types/BatchAddItem.mjs +4 -0
- package/dist/esm/api/types/BatchItemDetail.d.mts +24 -0
- package/dist/esm/api/types/BatchItemDetail.mjs +4 -0
- package/dist/esm/api/types/BatchItemKind.d.mts +8 -0
- package/dist/esm/api/types/BatchItemKind.mjs +7 -0
- package/dist/esm/api/types/BatchItemListResponse.d.mts +8 -0
- package/dist/esm/api/types/BatchItemListResponse.mjs +4 -0
- package/dist/esm/api/types/BatchItemStatus.d.mts +13 -0
- package/dist/esm/api/types/BatchItemStatus.mjs +12 -0
- package/dist/esm/api/types/BatchListResponse.d.mts +8 -0
- package/dist/esm/api/types/BatchListResponse.mjs +4 -0
- package/dist/esm/api/types/BatchProgress.d.mts +13 -0
- package/dist/esm/api/types/BatchProgress.mjs +4 -0
- package/dist/esm/api/types/BatchStatus.d.mts +14 -0
- package/dist/esm/api/types/BatchStatus.mjs +13 -0
- package/dist/esm/api/types/BatchSummary.d.mts +16 -0
- package/dist/esm/api/types/BatchSummary.mjs +4 -0
- package/dist/esm/api/types/ComparisonOperator.d.mts +2 -1
- package/dist/esm/api/types/ComparisonOperator.mjs +1 -0
- package/dist/esm/api/types/DerivedNode.d.mts +44 -0
- package/dist/esm/api/types/DerivedNode.mjs +4 -0
- package/dist/esm/api/types/EntityEdge.d.mts +4 -0
- package/dist/esm/api/types/EntityNode.d.mts +2 -0
- package/dist/esm/api/types/Episode.d.mts +2 -0
- package/dist/esm/api/types/EpisodeData.d.mts +2 -0
- package/dist/esm/api/types/EpisodeMetadataFilter.d.mts +12 -0
- package/dist/esm/api/types/EpisodeMetadataFilter.mjs +4 -0
- package/dist/esm/api/types/GraphDataType.d.mts +2 -1
- package/dist/esm/api/types/GraphDataType.mjs +1 -0
- package/dist/esm/api/types/GraphObservationsRequest.d.mts +9 -0
- package/dist/esm/api/types/GraphObservationsRequest.mjs +4 -0
- package/dist/esm/api/types/GraphSearchResponseMetadata.d.mts +7 -0
- package/dist/esm/api/types/GraphSearchResponseMetadata.mjs +4 -0
- package/dist/esm/api/types/GraphSearchResults.d.mts +4 -0
- package/dist/esm/api/types/GraphSearchScope.d.mts +4 -1
- package/dist/esm/api/types/GraphSearchScope.mjs +3 -0
- package/dist/esm/api/types/GraphThreadSummariesRequest.d.mts +9 -0
- package/dist/esm/api/types/GraphThreadSummariesRequest.mjs +4 -0
- package/dist/esm/api/types/GraphitiMetadataFilterGroupType.d.mts +11 -0
- package/dist/esm/api/types/GraphitiMetadataFilterGroupType.mjs +7 -0
- package/dist/esm/api/types/GraphitiSagaNode.d.mts +35 -0
- package/dist/esm/api/types/GraphitiSagaNode.mjs +4 -0
- package/dist/esm/api/types/MetadataFilterGroup.d.mts +12 -0
- package/dist/esm/api/types/MetadataFilterGroup.mjs +4 -0
- package/dist/esm/api/types/PatternResult.d.mts +17 -3
- package/dist/esm/api/types/PatternSeeds.d.mts +1 -1
- package/dist/esm/api/types/SearchFilters.d.mts +6 -1
- package/dist/esm/api/types/ThreadSummary.d.mts +31 -0
- package/dist/esm/api/types/ThreadSummary.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +20 -0
- package/dist/esm/api/types/index.mjs +20 -0
- package/dist/esm/serialization/resources/batch/client/add.d.mts +11 -0
- package/dist/esm/serialization/resources/batch/client/add.mjs +6 -0
- package/dist/esm/serialization/resources/batch/client/index.d.mts +2 -0
- package/dist/esm/serialization/resources/batch/client/index.mjs +2 -0
- package/dist/esm/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.mts +13 -0
- package/dist/esm/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.mjs +8 -0
- package/dist/esm/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.d.mts +14 -0
- package/dist/esm/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.mjs +9 -0
- package/dist/esm/serialization/resources/batch/client/requests/index.d.mts +2 -0
- package/dist/esm/serialization/resources/batch/client/requests/index.mjs +2 -0
- package/dist/esm/serialization/resources/batch/index.d.mts +1 -0
- package/dist/esm/serialization/resources/batch/index.mjs +1 -0
- package/dist/esm/serialization/resources/graph/client/requests/AddDataRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/client/requests/AddDataRequest.mjs +1 -0
- package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.mjs +1 -0
- package/dist/esm/serialization/resources/graph/client/requests/GraphSearchQuery.d.mts +2 -0
- package/dist/esm/serialization/resources/graph/client/requests/GraphSearchQuery.mjs +2 -0
- package/dist/esm/serialization/resources/graph/resources/episode/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/resources/episode/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.mts +12 -0
- package/dist/esm/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.mjs +7 -0
- package/dist/esm/serialization/resources/graph/resources/episode/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/resources/episode/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/graph/resources/episode/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/resources/episode/index.mjs +1 -0
- package/dist/esm/serialization/resources/graph/resources/index.d.mts +4 -0
- package/dist/esm/serialization/resources/graph/resources/index.mjs +4 -0
- package/dist/esm/serialization/resources/graph/resources/observation/client/getByGraphId.d.mts +11 -0
- package/dist/esm/serialization/resources/graph/resources/observation/client/getByGraphId.mjs +6 -0
- package/dist/esm/serialization/resources/graph/resources/observation/client/getByUserId.d.mts +11 -0
- package/dist/esm/serialization/resources/graph/resources/observation/client/getByUserId.mjs +6 -0
- package/dist/esm/serialization/resources/graph/resources/observation/client/index.d.mts +2 -0
- package/dist/esm/serialization/resources/graph/resources/observation/client/index.mjs +2 -0
- package/dist/esm/serialization/resources/graph/resources/observation/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/resources/observation/index.mjs +1 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByGraphId.d.mts +11 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByGraphId.mjs +6 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByUserId.d.mts +11 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByUserId.mjs +6 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/client/index.d.mts +2 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/client/index.mjs +2 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/resources/threadSummary/index.mjs +1 -0
- package/dist/esm/serialization/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/index.mjs +2 -0
- package/dist/esm/serialization/types/ApidataBatchAddItemRole.d.mts +10 -0
- package/dist/esm/serialization/types/ApidataBatchAddItemRole.mjs +5 -0
- package/dist/esm/serialization/types/ApidataBatchAddItemType.d.mts +10 -0
- package/dist/esm/serialization/types/ApidataBatchAddItemType.mjs +5 -0
- package/dist/esm/serialization/types/BatchAddItem.d.mts +26 -0
- package/dist/esm/serialization/types/BatchAddItem.mjs +21 -0
- package/dist/esm/serialization/types/BatchItemDetail.d.mts +25 -0
- package/dist/esm/serialization/types/BatchItemDetail.mjs +20 -0
- package/dist/esm/serialization/types/BatchItemKind.d.mts +10 -0
- package/dist/esm/serialization/types/BatchItemKind.mjs +5 -0
- package/dist/esm/serialization/types/BatchItemListResponse.d.mts +14 -0
- package/dist/esm/serialization/types/BatchItemListResponse.mjs +9 -0
- package/dist/esm/serialization/types/BatchItemStatus.d.mts +10 -0
- package/dist/esm/serialization/types/BatchItemStatus.mjs +5 -0
- package/dist/esm/serialization/types/BatchListResponse.d.mts +14 -0
- package/dist/esm/serialization/types/BatchListResponse.mjs +9 -0
- package/dist/esm/serialization/types/BatchProgress.d.mts +19 -0
- package/dist/esm/serialization/types/BatchProgress.mjs +14 -0
- package/dist/esm/serialization/types/BatchStatus.d.mts +10 -0
- package/dist/esm/serialization/types/BatchStatus.mjs +14 -0
- package/dist/esm/serialization/types/BatchSummary.d.mts +24 -0
- package/dist/esm/serialization/types/BatchSummary.mjs +19 -0
- package/dist/esm/serialization/types/ComparisonOperator.d.mts +1 -1
- package/dist/esm/serialization/types/ComparisonOperator.mjs +1 -1
- package/dist/esm/serialization/types/DerivedNode.d.mts +24 -0
- package/dist/esm/serialization/types/DerivedNode.mjs +19 -0
- package/dist/esm/serialization/types/EntityEdge.d.mts +2 -0
- package/dist/esm/serialization/types/EntityEdge.mjs +2 -0
- package/dist/esm/serialization/types/EntityNode.d.mts +1 -0
- package/dist/esm/serialization/types/EntityNode.mjs +1 -0
- package/dist/esm/serialization/types/Episode.d.mts +1 -0
- package/dist/esm/serialization/types/Episode.mjs +1 -0
- package/dist/esm/serialization/types/EpisodeData.d.mts +1 -0
- package/dist/esm/serialization/types/EpisodeData.mjs +1 -0
- package/dist/esm/serialization/types/EpisodeMetadataFilter.d.mts +15 -0
- package/dist/esm/serialization/types/EpisodeMetadataFilter.mjs +10 -0
- package/dist/esm/serialization/types/GraphDataType.d.mts +1 -1
- package/dist/esm/serialization/types/GraphDataType.mjs +1 -1
- package/dist/esm/serialization/types/GraphObservationsRequest.d.mts +13 -0
- package/dist/esm/serialization/types/GraphObservationsRequest.mjs +8 -0
- package/dist/esm/serialization/types/GraphSearchResponseMetadata.d.mts +12 -0
- package/dist/esm/serialization/types/GraphSearchResponseMetadata.mjs +7 -0
- package/dist/esm/serialization/types/GraphSearchResults.d.mts +7 -0
- package/dist/esm/serialization/types/GraphSearchResults.mjs +7 -0
- package/dist/esm/serialization/types/GraphSearchScope.d.mts +1 -1
- package/dist/esm/serialization/types/GraphSearchScope.mjs +1 -1
- package/dist/esm/serialization/types/GraphThreadSummariesRequest.d.mts +13 -0
- package/dist/esm/serialization/types/GraphThreadSummariesRequest.mjs +8 -0
- package/dist/esm/serialization/types/GraphitiMetadataFilterGroupType.d.mts +10 -0
- package/dist/esm/serialization/types/GraphitiMetadataFilterGroupType.mjs +5 -0
- package/dist/esm/serialization/types/GraphitiSagaNode.d.mts +21 -0
- package/dist/esm/serialization/types/GraphitiSagaNode.mjs +16 -0
- package/dist/esm/serialization/types/MetadataFilterGroup.d.mts +16 -0
- package/dist/esm/serialization/types/MetadataFilterGroup.mjs +12 -0
- package/dist/esm/serialization/types/PatternResult.d.mts +1 -0
- package/dist/esm/serialization/types/PatternResult.mjs +1 -0
- package/dist/esm/serialization/types/SearchFilters.d.mts +1 -0
- package/dist/esm/serialization/types/SearchFilters.mjs +2 -0
- package/dist/esm/serialization/types/ThreadSummary.d.mts +17 -0
- package/dist/esm/serialization/types/ThreadSummary.mjs +12 -0
- package/dist/esm/serialization/types/index.d.mts +20 -0
- package/dist/esm/serialization/types/index.mjs +20 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +16 -9
- package/reference.md +1481 -451
|
@@ -111,7 +111,7 @@ export declare class Thread {
|
|
|
111
111
|
* @example
|
|
112
112
|
* await client.thread.get("threadId", {
|
|
113
113
|
* limit: 1,
|
|
114
|
-
* cursor:
|
|
114
|
+
* cursor: 1000000,
|
|
115
115
|
* lastn: 1
|
|
116
116
|
* })
|
|
117
117
|
*/
|
|
@@ -137,7 +137,9 @@ export declare class Thread {
|
|
|
137
137
|
addMessages(threadId: string, request: Zep.AddThreadMessagesRequest, requestOptions?: Thread.RequestOptions): core.HttpResponsePromise<Zep.AddThreadMessagesResponse>;
|
|
138
138
|
private __addMessages;
|
|
139
139
|
/**
|
|
140
|
-
*
|
|
140
|
+
* Deprecated. Use the [Batch API](/adding-batch-data) (`client.batch.*` with `type: "thread_message"`) instead.
|
|
141
|
+
*
|
|
142
|
+
* Adds messages to a thread in batch mode, processing messages concurrently.
|
|
141
143
|
*
|
|
142
144
|
* @param {string} threadId - The ID of the thread to which messages should be added.
|
|
143
145
|
* @param {Zep.AddThreadMessagesRequest} request
|
|
@@ -155,6 +157,21 @@ export declare class Thread {
|
|
|
155
157
|
*/
|
|
156
158
|
addMessagesBatch(threadId: string, request: Zep.AddThreadMessagesRequest, requestOptions?: Thread.RequestOptions): core.HttpResponsePromise<Zep.AddThreadMessagesResponse>;
|
|
157
159
|
private __addMessagesBatch;
|
|
160
|
+
/**
|
|
161
|
+
* Returns the incremental summary generated from messages in the thread. Returns 404 if no summary exists for the thread.
|
|
162
|
+
*
|
|
163
|
+
* @param {string} threadId - The thread ID.
|
|
164
|
+
* @param {Thread.RequestOptions} requestOptions - Request-specific configuration.
|
|
165
|
+
*
|
|
166
|
+
* @throws {@link Zep.ForbiddenError}
|
|
167
|
+
* @throws {@link Zep.NotFoundError}
|
|
168
|
+
* @throws {@link Zep.InternalServerError}
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* await client.thread.getSummary("threadId")
|
|
172
|
+
*/
|
|
173
|
+
getSummary(threadId: string, requestOptions?: Thread.RequestOptions): core.HttpResponsePromise<Zep.ThreadSummary>;
|
|
174
|
+
private __getSummary;
|
|
158
175
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
159
176
|
Authorization: string;
|
|
160
177
|
}>;
|
|
@@ -86,13 +86,7 @@ export class Thread {
|
|
|
86
86
|
if (_response.error.reason === "status-code") {
|
|
87
87
|
switch (_response.error.statusCode) {
|
|
88
88
|
case 400:
|
|
89
|
-
throw new Zep.BadRequestError(
|
|
90
|
-
unrecognizedObjectKeys: "passthrough",
|
|
91
|
-
allowUnrecognizedUnionMembers: true,
|
|
92
|
-
allowUnrecognizedEnumValues: true,
|
|
93
|
-
skipValidation: true,
|
|
94
|
-
breadcrumbsPrefix: ["response"],
|
|
95
|
-
}), _response.rawResponse);
|
|
89
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
96
90
|
case 500:
|
|
97
91
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
98
92
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -176,13 +170,7 @@ export class Thread {
|
|
|
176
170
|
if (_response.error.reason === "status-code") {
|
|
177
171
|
switch (_response.error.statusCode) {
|
|
178
172
|
case 400:
|
|
179
|
-
throw new Zep.BadRequestError(
|
|
180
|
-
unrecognizedObjectKeys: "passthrough",
|
|
181
|
-
allowUnrecognizedUnionMembers: true,
|
|
182
|
-
allowUnrecognizedEnumValues: true,
|
|
183
|
-
skipValidation: true,
|
|
184
|
-
breadcrumbsPrefix: ["response"],
|
|
185
|
-
}), _response.rawResponse);
|
|
173
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
186
174
|
case 500:
|
|
187
175
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
188
176
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -400,7 +388,7 @@ export class Thread {
|
|
|
400
388
|
* @example
|
|
401
389
|
* await client.thread.get("threadId", {
|
|
402
390
|
* limit: 1,
|
|
403
|
-
* cursor:
|
|
391
|
+
* cursor: 1000000,
|
|
404
392
|
* lastn: 1
|
|
405
393
|
* })
|
|
406
394
|
*/
|
|
@@ -570,7 +558,9 @@ export class Thread {
|
|
|
570
558
|
});
|
|
571
559
|
}
|
|
572
560
|
/**
|
|
573
|
-
*
|
|
561
|
+
* Deprecated. Use the [Batch API](/adding-batch-data) (`client.batch.*` with `type: "thread_message"`) instead.
|
|
562
|
+
*
|
|
563
|
+
* Adds messages to a thread in batch mode, processing messages concurrently.
|
|
574
564
|
*
|
|
575
565
|
* @param {string} threadId - The ID of the thread to which messages should be added.
|
|
576
566
|
* @param {Zep.AddThreadMessagesRequest} request
|
|
@@ -653,6 +643,96 @@ export class Thread {
|
|
|
653
643
|
}
|
|
654
644
|
});
|
|
655
645
|
}
|
|
646
|
+
/**
|
|
647
|
+
* Returns the incremental summary generated from messages in the thread. Returns 404 if no summary exists for the thread.
|
|
648
|
+
*
|
|
649
|
+
* @param {string} threadId - The thread ID.
|
|
650
|
+
* @param {Thread.RequestOptions} requestOptions - Request-specific configuration.
|
|
651
|
+
*
|
|
652
|
+
* @throws {@link Zep.ForbiddenError}
|
|
653
|
+
* @throws {@link Zep.NotFoundError}
|
|
654
|
+
* @throws {@link Zep.InternalServerError}
|
|
655
|
+
*
|
|
656
|
+
* @example
|
|
657
|
+
* await client.thread.getSummary("threadId")
|
|
658
|
+
*/
|
|
659
|
+
getSummary(threadId, requestOptions) {
|
|
660
|
+
return core.HttpResponsePromise.fromPromise(this.__getSummary(threadId, requestOptions));
|
|
661
|
+
}
|
|
662
|
+
__getSummary(threadId, requestOptions) {
|
|
663
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
664
|
+
var _a, _b, _c, _d;
|
|
665
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
666
|
+
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, `threads/${encodeURIComponent(threadId)}/summary`),
|
|
667
|
+
method: "GET",
|
|
668
|
+
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),
|
|
669
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
670
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
671
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
672
|
+
});
|
|
673
|
+
if (_response.ok) {
|
|
674
|
+
return {
|
|
675
|
+
data: serializers.ThreadSummary.parseOrThrow(_response.body, {
|
|
676
|
+
unrecognizedObjectKeys: "passthrough",
|
|
677
|
+
allowUnrecognizedUnionMembers: true,
|
|
678
|
+
allowUnrecognizedEnumValues: true,
|
|
679
|
+
skipValidation: true,
|
|
680
|
+
breadcrumbsPrefix: ["response"],
|
|
681
|
+
}),
|
|
682
|
+
rawResponse: _response.rawResponse,
|
|
683
|
+
};
|
|
684
|
+
}
|
|
685
|
+
if (_response.error.reason === "status-code") {
|
|
686
|
+
switch (_response.error.statusCode) {
|
|
687
|
+
case 403:
|
|
688
|
+
throw new Zep.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
689
|
+
unrecognizedObjectKeys: "passthrough",
|
|
690
|
+
allowUnrecognizedUnionMembers: true,
|
|
691
|
+
allowUnrecognizedEnumValues: true,
|
|
692
|
+
skipValidation: true,
|
|
693
|
+
breadcrumbsPrefix: ["response"],
|
|
694
|
+
}), _response.rawResponse);
|
|
695
|
+
case 404:
|
|
696
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
697
|
+
unrecognizedObjectKeys: "passthrough",
|
|
698
|
+
allowUnrecognizedUnionMembers: true,
|
|
699
|
+
allowUnrecognizedEnumValues: true,
|
|
700
|
+
skipValidation: true,
|
|
701
|
+
breadcrumbsPrefix: ["response"],
|
|
702
|
+
}), _response.rawResponse);
|
|
703
|
+
case 500:
|
|
704
|
+
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
705
|
+
unrecognizedObjectKeys: "passthrough",
|
|
706
|
+
allowUnrecognizedUnionMembers: true,
|
|
707
|
+
allowUnrecognizedEnumValues: true,
|
|
708
|
+
skipValidation: true,
|
|
709
|
+
breadcrumbsPrefix: ["response"],
|
|
710
|
+
}), _response.rawResponse);
|
|
711
|
+
default:
|
|
712
|
+
throw new errors.ZepError({
|
|
713
|
+
statusCode: _response.error.statusCode,
|
|
714
|
+
body: _response.error.body,
|
|
715
|
+
rawResponse: _response.rawResponse,
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
switch (_response.error.reason) {
|
|
720
|
+
case "non-json":
|
|
721
|
+
throw new errors.ZepError({
|
|
722
|
+
statusCode: _response.error.statusCode,
|
|
723
|
+
body: _response.error.rawBody,
|
|
724
|
+
rawResponse: _response.rawResponse,
|
|
725
|
+
});
|
|
726
|
+
case "timeout":
|
|
727
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling GET /threads/{threadId}/summary.");
|
|
728
|
+
case "unknown":
|
|
729
|
+
throw new errors.ZepError({
|
|
730
|
+
message: _response.error.errorMessage,
|
|
731
|
+
rawResponse: _response.rawResponse,
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
});
|
|
735
|
+
}
|
|
656
736
|
_getCustomAuthorizationHeaders() {
|
|
657
737
|
return __awaiter(this, void 0, void 0, function* () {
|
|
658
738
|
var _a;
|
|
@@ -70,13 +70,7 @@ export class User {
|
|
|
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 404:
|
|
81
75
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
82
76
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -171,13 +165,7 @@ export class User {
|
|
|
171
165
|
if (_response.error.reason === "status-code") {
|
|
172
166
|
switch (_response.error.statusCode) {
|
|
173
167
|
case 400:
|
|
174
|
-
throw new Zep.BadRequestError(
|
|
175
|
-
unrecognizedObjectKeys: "passthrough",
|
|
176
|
-
allowUnrecognizedUnionMembers: true,
|
|
177
|
-
allowUnrecognizedEnumValues: true,
|
|
178
|
-
skipValidation: true,
|
|
179
|
-
breadcrumbsPrefix: ["response"],
|
|
180
|
-
}), _response.rawResponse);
|
|
168
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
181
169
|
case 404:
|
|
182
170
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
183
171
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -267,13 +255,7 @@ export class User {
|
|
|
267
255
|
if (_response.error.reason === "status-code") {
|
|
268
256
|
switch (_response.error.statusCode) {
|
|
269
257
|
case 400:
|
|
270
|
-
throw new Zep.BadRequestError(
|
|
271
|
-
unrecognizedObjectKeys: "passthrough",
|
|
272
|
-
allowUnrecognizedUnionMembers: true,
|
|
273
|
-
allowUnrecognizedEnumValues: true,
|
|
274
|
-
skipValidation: true,
|
|
275
|
-
breadcrumbsPrefix: ["response"],
|
|
276
|
-
}), _response.rawResponse);
|
|
258
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
277
259
|
case 404:
|
|
278
260
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
279
261
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -364,13 +346,7 @@ export class User {
|
|
|
364
346
|
if (_response.error.reason === "status-code") {
|
|
365
347
|
switch (_response.error.statusCode) {
|
|
366
348
|
case 400:
|
|
367
|
-
throw new Zep.BadRequestError(
|
|
368
|
-
unrecognizedObjectKeys: "passthrough",
|
|
369
|
-
allowUnrecognizedUnionMembers: true,
|
|
370
|
-
allowUnrecognizedEnumValues: true,
|
|
371
|
-
skipValidation: true,
|
|
372
|
-
breadcrumbsPrefix: ["response"],
|
|
373
|
-
}), _response.rawResponse);
|
|
349
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
374
350
|
case 500:
|
|
375
351
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
376
352
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -469,13 +445,7 @@ export class User {
|
|
|
469
445
|
if (_response.error.reason === "status-code") {
|
|
470
446
|
switch (_response.error.statusCode) {
|
|
471
447
|
case 400:
|
|
472
|
-
throw new Zep.BadRequestError(
|
|
473
|
-
unrecognizedObjectKeys: "passthrough",
|
|
474
|
-
allowUnrecognizedUnionMembers: true,
|
|
475
|
-
allowUnrecognizedEnumValues: true,
|
|
476
|
-
skipValidation: true,
|
|
477
|
-
breadcrumbsPrefix: ["response"],
|
|
478
|
-
}), _response.rawResponse);
|
|
448
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
479
449
|
case 500:
|
|
480
450
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
481
451
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -720,13 +690,7 @@ export class User {
|
|
|
720
690
|
if (_response.error.reason === "status-code") {
|
|
721
691
|
switch (_response.error.statusCode) {
|
|
722
692
|
case 400:
|
|
723
|
-
throw new Zep.BadRequestError(
|
|
724
|
-
unrecognizedObjectKeys: "passthrough",
|
|
725
|
-
allowUnrecognizedUnionMembers: true,
|
|
726
|
-
allowUnrecognizedEnumValues: true,
|
|
727
|
-
skipValidation: true,
|
|
728
|
-
breadcrumbsPrefix: ["response"],
|
|
729
|
-
}), _response.rawResponse);
|
|
693
|
+
throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
|
|
730
694
|
case 404:
|
|
731
695
|
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
732
696
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type ApidataBatchAddItemRole = "norole" | "system" | "assistant" | "user" | "function" | "tool";
|
|
5
|
+
export declare const ApidataBatchAddItemRole: {
|
|
6
|
+
readonly Norole: "norole";
|
|
7
|
+
readonly System: "system";
|
|
8
|
+
readonly Assistant: "assistant";
|
|
9
|
+
readonly User: "user";
|
|
10
|
+
readonly Function: "function";
|
|
11
|
+
readonly Tool: "tool";
|
|
12
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type ApidataBatchAddItemType = "graph_episode" | "thread_message";
|
|
5
|
+
export declare const ApidataBatchAddItemType: {
|
|
6
|
+
readonly GraphEpisode: "graph_episode";
|
|
7
|
+
readonly ThreadMessage: "thread_message";
|
|
8
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Zep from "../index.mjs";
|
|
5
|
+
export interface BatchAddItem {
|
|
6
|
+
content?: string;
|
|
7
|
+
createdAt?: string;
|
|
8
|
+
data?: string;
|
|
9
|
+
dataType?: Zep.GraphDataType;
|
|
10
|
+
graphId?: string;
|
|
11
|
+
metadata?: Record<string, unknown>;
|
|
12
|
+
name?: string;
|
|
13
|
+
role?: Zep.ApidataBatchAddItemRole;
|
|
14
|
+
sourceDescription?: string;
|
|
15
|
+
threadId?: string;
|
|
16
|
+
type: Zep.ApidataBatchAddItemType;
|
|
17
|
+
userId?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Zep from "../index.mjs";
|
|
5
|
+
export interface BatchItemDetail {
|
|
6
|
+
createdAt?: string;
|
|
7
|
+
/**
|
|
8
|
+
* EpisodeUUID is the UUID of the episode that will be (or has been) created
|
|
9
|
+
* for this batch item. Populated for every item kind and always equal to
|
|
10
|
+
* SourceUUID — the underlying source row's UUID is reused as the episode
|
|
11
|
+
* UUID during processing.
|
|
12
|
+
*/
|
|
13
|
+
episodeUuid?: string;
|
|
14
|
+
error?: Record<string, unknown>;
|
|
15
|
+
graphId?: string;
|
|
16
|
+
itemId?: string;
|
|
17
|
+
kind?: Zep.BatchItemKind;
|
|
18
|
+
sequenceIndex?: number;
|
|
19
|
+
sourceUuid?: string;
|
|
20
|
+
status?: Zep.BatchItemStatus;
|
|
21
|
+
threadId?: string;
|
|
22
|
+
updatedAt?: string;
|
|
23
|
+
userId?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type BatchItemKind = "graph_episode" | "thread_message";
|
|
5
|
+
export declare const BatchItemKind: {
|
|
6
|
+
readonly GraphEpisode: "graph_episode";
|
|
7
|
+
readonly ThreadMessage: "thread_message";
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type BatchItemStatus = "pending" | "queued" | "processing" | "succeeded" | "failed" | "skipped" | "canceled";
|
|
5
|
+
export declare const BatchItemStatus: {
|
|
6
|
+
readonly Pending: "pending";
|
|
7
|
+
readonly Queued: "queued";
|
|
8
|
+
readonly Processing: "processing";
|
|
9
|
+
readonly Succeeded: "succeeded";
|
|
10
|
+
readonly Failed: "failed";
|
|
11
|
+
readonly Skipped: "skipped";
|
|
12
|
+
readonly Canceled: "canceled";
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export const BatchItemStatus = {
|
|
5
|
+
Pending: "pending",
|
|
6
|
+
Queued: "queued",
|
|
7
|
+
Processing: "processing",
|
|
8
|
+
Succeeded: "succeeded",
|
|
9
|
+
Failed: "failed",
|
|
10
|
+
Skipped: "skipped",
|
|
11
|
+
Canceled: "canceled",
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface BatchProgress {
|
|
5
|
+
canceledItems?: number;
|
|
6
|
+
failedItems?: number;
|
|
7
|
+
percentComplete?: number;
|
|
8
|
+
processingItems?: number;
|
|
9
|
+
queuedItems?: number;
|
|
10
|
+
skippedItems?: number;
|
|
11
|
+
succeededItems?: number;
|
|
12
|
+
totalItems?: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type BatchStatus = "draft" | "invalid" | "queued" | "processing" | "succeeded" | "partial" | "failed" | "canceled";
|
|
5
|
+
export declare const BatchStatus: {
|
|
6
|
+
readonly Draft: "draft";
|
|
7
|
+
readonly Invalid: "invalid";
|
|
8
|
+
readonly Queued: "queued";
|
|
9
|
+
readonly Processing: "processing";
|
|
10
|
+
readonly Succeeded: "succeeded";
|
|
11
|
+
readonly Partial: "partial";
|
|
12
|
+
readonly Failed: "failed";
|
|
13
|
+
readonly Canceled: "canceled";
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export const BatchStatus = {
|
|
5
|
+
Draft: "draft",
|
|
6
|
+
Invalid: "invalid",
|
|
7
|
+
Queued: "queued",
|
|
8
|
+
Processing: "processing",
|
|
9
|
+
Succeeded: "succeeded",
|
|
10
|
+
Partial: "partial",
|
|
11
|
+
Failed: "failed",
|
|
12
|
+
Canceled: "canceled",
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Zep from "../index.mjs";
|
|
5
|
+
export interface BatchSummary {
|
|
6
|
+
batchId?: string;
|
|
7
|
+
completedAt?: string;
|
|
8
|
+
createdAt?: string;
|
|
9
|
+
ignoreRoles?: Zep.RoleType[];
|
|
10
|
+
itemCount?: number;
|
|
11
|
+
metadata?: Record<string, unknown>;
|
|
12
|
+
processedAt?: string;
|
|
13
|
+
progress?: Zep.BatchProgress;
|
|
14
|
+
status?: Zep.BatchStatus;
|
|
15
|
+
updatedAt?: string;
|
|
16
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ComparisonOperator = "=" | "<>" | ">" | "<" | ">=" | "<=" | "IS NULL" | "IS NOT NULL";
|
|
4
|
+
export type ComparisonOperator = "=" | "<>" | ">" | "<" | ">=" | "<=" | "IS NULL" | "IS NOT NULL" | "CONTAINS";
|
|
5
5
|
export declare const ComparisonOperator: {
|
|
6
6
|
readonly Equals: "=";
|
|
7
7
|
readonly NotEquals: "<>";
|
|
@@ -11,4 +11,5 @@ export declare const ComparisonOperator: {
|
|
|
11
11
|
readonly LessThanEqual: "<=";
|
|
12
12
|
readonly IsNull: "IS NULL";
|
|
13
13
|
readonly IsNotNull: "IS NOT NULL";
|
|
14
|
+
readonly Contains: "CONTAINS";
|
|
14
15
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface DerivedNode {
|
|
5
|
+
/** Additional attributes of the derived node. */
|
|
6
|
+
attributes?: Record<string, unknown>;
|
|
7
|
+
/** Creation time of the node */
|
|
8
|
+
createdAt: string;
|
|
9
|
+
/**
|
|
10
|
+
* EndAt is the close timestamp of the evidence window. Set when the
|
|
11
|
+
* underlying pattern is no longer supported (closed observations);
|
|
12
|
+
* nil for active observations.
|
|
13
|
+
*/
|
|
14
|
+
endAt?: string;
|
|
15
|
+
/** Episode UUIDs that support this observation. Only populated for observation nodes in web API responses. */
|
|
16
|
+
episodeIds?: string[];
|
|
17
|
+
/** Labels associated with the node */
|
|
18
|
+
labels?: string[];
|
|
19
|
+
/**
|
|
20
|
+
* LatestEvidenceAt is the most recent source-episode timestamp from
|
|
21
|
+
* which this observation drew evidence.
|
|
22
|
+
*/
|
|
23
|
+
latestEvidenceAt?: string;
|
|
24
|
+
/** Name of the node */
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* Relevance is an experimental rank-aligned score in [0,1] derived from Score via logit transformation.
|
|
28
|
+
* Only populated when using cross_encoder reranker; omitted for other reranker types (e.g., RRF).
|
|
29
|
+
*/
|
|
30
|
+
relevance?: number;
|
|
31
|
+
/** Score is the reranker output: sigmoid-distributed logits [0,1] when using cross_encoder reranker, or RRF ordinal rank when using rrf reranker */
|
|
32
|
+
score?: number;
|
|
33
|
+
/** SelectionRank is the global cross-scope rank assigned by auto scope selection. */
|
|
34
|
+
selectionRank?: number;
|
|
35
|
+
/**
|
|
36
|
+
* StartAt is the earliest source-episode timestamp from which this
|
|
37
|
+
* observation was derived. Only populated for observation nodes.
|
|
38
|
+
*/
|
|
39
|
+
startAt?: string;
|
|
40
|
+
/** Region summary of member nodes */
|
|
41
|
+
summary?: string;
|
|
42
|
+
/** UUID of the node */
|
|
43
|
+
uuid: string;
|
|
44
|
+
}
|
|
@@ -21,8 +21,12 @@ export interface EntityEdge {
|
|
|
21
21
|
* Only populated when using cross_encoder reranker; omitted for other reranker types (e.g., RRF).
|
|
22
22
|
*/
|
|
23
23
|
relevance?: number;
|
|
24
|
+
/** Scope of the edge (e.g. "entity", "maybe_related") */
|
|
25
|
+
scope?: string;
|
|
24
26
|
/** Score is the reranker output: sigmoid-distributed logits [0,1] when using cross_encoder reranker, or RRF ordinal rank when using rrf reranker */
|
|
25
27
|
score?: number;
|
|
28
|
+
/** SelectionRank is the global cross-scope rank assigned by auto scope selection. */
|
|
29
|
+
selectionRank?: number;
|
|
26
30
|
/** UUID of the source node */
|
|
27
31
|
sourceNodeUuid: string;
|
|
28
32
|
/** UUID of the target node */
|
|
@@ -17,6 +17,8 @@ export interface EntityNode {
|
|
|
17
17
|
relevance?: number;
|
|
18
18
|
/** Score is the reranker output: sigmoid-distributed logits [0,1] when using cross_encoder reranker, or RRF ordinal rank when using rrf reranker */
|
|
19
19
|
score?: number;
|
|
20
|
+
/** SelectionRank is the global cross-scope rank assigned by auto scope selection. */
|
|
21
|
+
selectionRank?: number;
|
|
20
22
|
/** Regional summary of surrounding edges */
|
|
21
23
|
summary: string;
|
|
22
24
|
/** UUID of the node */
|
|
@@ -18,6 +18,8 @@ export interface Episode {
|
|
|
18
18
|
roleType?: Zep.RoleType;
|
|
19
19
|
/** Score is the reranker output: sigmoid-distributed logits [0,1] when using cross_encoder reranker, or RRF ordinal rank when using rrf reranker */
|
|
20
20
|
score?: number;
|
|
21
|
+
/** SelectionRank is the global cross-scope rank assigned by auto scope selection. */
|
|
22
|
+
selectionRank?: number;
|
|
21
23
|
source?: Zep.GraphDataType;
|
|
22
24
|
sourceDescription?: string;
|
|
23
25
|
/** Optional task ID to poll episode processing status. Currently only available for batch ingestion. */
|