@getzep/zep-cloud 3.15.0 → 3.17.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.js +2 -2
- package/dist/cjs/api/errors/ForbiddenError.d.ts +9 -0
- package/dist/cjs/api/errors/ForbiddenError.js +52 -0
- package/dist/cjs/api/errors/index.d.ts +1 -0
- package/dist/cjs/api/errors/index.js +1 -0
- package/dist/cjs/api/index.d.ts +1 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/resources/graph/client/Client.d.ts +21 -2
- package/dist/cjs/api/resources/graph/client/Client.js +117 -3
- package/dist/cjs/api/resources/graph/client/requests/AddTripleRequest.d.ts +4 -0
- package/dist/cjs/api/resources/graph/client/requests/CreateGraphRequest.d.ts +0 -2
- package/dist/cjs/api/resources/graph/client/requests/DetectPatternsRequest.d.ts +37 -0
- package/dist/cjs/api/resources/graph/client/requests/GraphListAllRequest.d.ts +11 -1
- package/dist/cjs/api/resources/graph/client/requests/GraphSearchQuery.d.ts +0 -4
- package/dist/cjs/api/resources/graph/client/requests/UpdateGraphRequest.d.ts +0 -2
- package/dist/cjs/api/resources/graph/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/edge/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/graph/resources/edge/client/Client.js +106 -0
- package/dist/cjs/api/resources/graph/resources/edge/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/edge/client/index.js +15 -0
- package/dist/cjs/api/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.d.ts +21 -0
- package/dist/cjs/api/resources/graph/resources/edge/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/edge/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/graph/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/graph/resources/index.js +2 -0
- package/dist/cjs/api/resources/graph/resources/node/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/graph/resources/node/client/Client.js +106 -0
- package/dist/cjs/api/resources/graph/resources/node/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/node/client/index.js +15 -0
- package/dist/cjs/api/resources/graph/resources/node/client/requests/UpdateNodeRequest.d.ts +17 -0
- package/dist/cjs/api/resources/graph/resources/node/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/graph/resources/node/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/index.d.ts +1 -2
- package/dist/cjs/api/resources/index.js +2 -3
- package/dist/cjs/api/resources/thread/client/Client.d.ts +1 -3
- package/dist/cjs/api/resources/thread/client/Client.js +2 -13
- package/dist/cjs/api/resources/thread/client/requests/ThreadGetUserContextRequest.d.ts +1 -12
- package/dist/cjs/api/resources/thread/index.d.ts +0 -1
- package/dist/cjs/api/resources/thread/index.js +0 -1
- package/dist/cjs/api/resources/user/client/Client.d.ts +4 -1
- package/dist/cjs/api/resources/user/client/Client.js +14 -2
- package/dist/cjs/api/resources/user/client/requests/CreateUserRequest.d.ts +0 -3
- package/dist/cjs/api/resources/user/client/requests/UpdateUserRequest.d.ts +0 -3
- package/dist/cjs/api/resources/user/client/requests/UserListOrderedRequest.d.ts +16 -1
- package/dist/cjs/api/types/ClusterDetectConfig.d.ts +4 -0
- package/dist/cjs/api/types/CoOccurrenceDetectConfig.d.ts +7 -0
- package/dist/cjs/api/types/CoOccurrenceDetectConfig.js +5 -0
- package/dist/cjs/api/types/DetectConfig.d.ts +16 -0
- package/dist/cjs/api/types/DetectConfig.js +5 -0
- package/dist/cjs/api/types/DetectPatternsResponse.d.ts +10 -0
- package/dist/cjs/api/types/DetectPatternsResponse.js +5 -0
- package/dist/cjs/api/types/GetTaskResponse.d.ts +1 -0
- package/dist/cjs/api/types/Graph.d.ts +0 -2
- package/dist/cjs/api/types/HubDetectConfig.d.ts +7 -0
- package/dist/cjs/api/types/HubDetectConfig.js +5 -0
- package/dist/cjs/api/types/MessageListResponse.d.ts +4 -0
- package/dist/cjs/api/types/PathDetectConfig.d.ts +7 -0
- package/dist/cjs/api/types/PathDetectConfig.js +5 -0
- package/dist/cjs/api/types/PatternExample.d.ts +9 -0
- package/dist/cjs/api/types/PatternExample.js +5 -0
- package/dist/cjs/api/types/PatternMetadata.d.ts +11 -0
- package/dist/cjs/api/types/PatternMetadata.js +5 -0
- package/dist/cjs/api/types/PatternResult.d.ts +20 -0
- package/dist/cjs/api/types/PatternResult.js +5 -0
- package/dist/cjs/api/types/PatternSeeds.d.ts +11 -0
- package/dist/cjs/api/types/PatternSeeds.js +5 -0
- package/dist/cjs/api/types/RecencyWeight.d.ts +10 -0
- package/dist/cjs/api/types/RecencyWeight.js +12 -0
- package/dist/cjs/api/types/RelationshipDetectConfig.d.ts +4 -0
- package/dist/cjs/api/types/RelationshipDetectConfig.js +5 -0
- package/dist/cjs/api/types/User.d.ts +0 -2
- package/dist/cjs/api/types/index.d.ts +12 -4
- package/dist/cjs/api/types/index.js +12 -4
- package/dist/cjs/serialization/index.d.ts +1 -1
- package/dist/cjs/serialization/index.js +1 -1
- package/dist/cjs/serialization/resources/graph/client/requests/AddTripleRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/graph/client/requests/AddTripleRequest.js +2 -0
- package/dist/cjs/serialization/resources/graph/client/requests/CreateGraphRequest.d.ts +0 -2
- package/dist/cjs/serialization/resources/graph/client/requests/CreateGraphRequest.js +0 -2
- package/dist/cjs/serialization/resources/graph/client/requests/DetectPatternsRequest.d.ts +24 -0
- package/dist/cjs/serialization/resources/graph/client/requests/DetectPatternsRequest.js +55 -0
- package/dist/cjs/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +0 -2
- package/dist/cjs/serialization/resources/graph/client/requests/GraphSearchQuery.js +0 -2
- package/dist/cjs/serialization/resources/graph/client/requests/UpdateGraphRequest.d.ts +0 -2
- package/dist/cjs/serialization/resources/graph/client/requests/UpdateGraphRequest.js +0 -2
- package/dist/cjs/serialization/resources/graph/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/client/requests/index.js +3 -1
- package/dist/cjs/serialization/resources/graph/resources/edge/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/resources/edge/client/index.js +4 -0
- package/dist/cjs/serialization/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.d.ts +17 -0
- package/dist/cjs/serialization/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.js +48 -0
- package/dist/cjs/serialization/resources/graph/resources/edge/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/resources/edge/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/graph/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/graph/resources/index.js +5 -0
- package/dist/cjs/serialization/resources/graph/resources/node/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/resources/node/client/index.js +4 -0
- package/dist/cjs/serialization/resources/graph/resources/node/client/requests/UpdateNodeRequest.d.ts +15 -0
- package/dist/cjs/serialization/resources/graph/resources/node/client/requests/UpdateNodeRequest.js +46 -0
- package/dist/cjs/serialization/resources/graph/resources/node/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/graph/resources/node/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/index.d.ts +1 -2
- package/dist/cjs/serialization/resources/index.js +2 -3
- package/dist/cjs/serialization/resources/thread/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/thread/index.js +0 -1
- package/dist/cjs/serialization/resources/user/client/requests/CreateUserRequest.d.ts +0 -2
- package/dist/cjs/serialization/resources/user/client/requests/CreateUserRequest.js +0 -2
- package/dist/cjs/serialization/resources/user/client/requests/UpdateUserRequest.d.ts +0 -2
- package/dist/cjs/serialization/resources/user/client/requests/UpdateUserRequest.js +0 -2
- package/dist/cjs/serialization/types/ClusterDetectConfig.d.ts +10 -0
- package/dist/cjs/serialization/types/ClusterDetectConfig.js +41 -0
- package/dist/cjs/serialization/types/CoOccurrenceDetectConfig.d.ts +12 -0
- package/dist/cjs/serialization/types/{FactRatingExamples.js → CoOccurrenceDetectConfig.js} +3 -5
- package/dist/cjs/serialization/types/DetectConfig.d.ts +21 -0
- package/dist/cjs/serialization/types/DetectConfig.js +52 -0
- package/dist/cjs/serialization/types/DetectPatternsResponse.d.ts +15 -0
- package/dist/cjs/serialization/types/DetectPatternsResponse.js +46 -0
- package/dist/cjs/serialization/types/GetTaskResponse.d.ts +1 -0
- package/dist/cjs/serialization/types/GetTaskResponse.js +1 -0
- package/dist/cjs/serialization/types/Graph.d.ts +0 -2
- package/dist/cjs/serialization/types/Graph.js +0 -2
- package/dist/cjs/serialization/types/HubDetectConfig.d.ts +12 -0
- package/dist/cjs/serialization/types/{ModelsFactRatingExamples.js → HubDetectConfig.js} +3 -5
- package/dist/cjs/serialization/types/MessageListResponse.d.ts +2 -0
- package/dist/cjs/serialization/types/MessageListResponse.js +2 -0
- package/dist/cjs/serialization/types/PathDetectConfig.d.ts +12 -0
- package/dist/cjs/serialization/types/{FactRatingInstruction.js → PathDetectConfig.js} +3 -5
- package/dist/cjs/serialization/types/PatternExample.d.ts +13 -0
- package/dist/cjs/serialization/types/{ModelsFactRatingInstruction.js → PatternExample.js} +4 -5
- package/dist/cjs/serialization/types/PatternMetadata.d.ts +14 -0
- package/dist/cjs/serialization/types/PatternMetadata.js +45 -0
- package/dist/cjs/serialization/types/PatternResult.d.ts +19 -0
- package/dist/cjs/serialization/types/PatternResult.js +50 -0
- package/dist/cjs/serialization/types/PatternSeeds.d.ts +14 -0
- package/dist/cjs/serialization/types/PatternSeeds.js +45 -0
- package/dist/cjs/serialization/types/RecencyWeight.d.ts +10 -0
- package/dist/cjs/serialization/{resources/thread/types/ThreadGetUserContextRequestMode.js → types/RecencyWeight.js} +3 -3
- package/dist/cjs/serialization/types/RelationshipDetectConfig.d.ts +10 -0
- package/dist/cjs/serialization/types/RelationshipDetectConfig.js +41 -0
- package/dist/cjs/serialization/types/User.d.ts +0 -2
- package/dist/cjs/serialization/types/User.js +0 -2
- package/dist/cjs/serialization/types/index.d.ts +12 -4
- package/dist/cjs/serialization/types/index.js +12 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/errors/ForbiddenError.d.mts +9 -0
- package/dist/esm/api/errors/ForbiddenError.mjs +15 -0
- package/dist/esm/api/errors/index.d.mts +1 -0
- package/dist/esm/api/errors/index.mjs +1 -0
- package/dist/esm/api/index.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/resources/graph/client/Client.d.mts +21 -2
- package/dist/esm/api/resources/graph/client/Client.mjs +117 -3
- package/dist/esm/api/resources/graph/client/requests/AddTripleRequest.d.mts +4 -0
- package/dist/esm/api/resources/graph/client/requests/CreateGraphRequest.d.mts +0 -2
- package/dist/esm/api/resources/graph/client/requests/DetectPatternsRequest.d.mts +37 -0
- package/dist/esm/api/resources/graph/client/requests/GraphListAllRequest.d.mts +11 -1
- package/dist/esm/api/resources/graph/client/requests/GraphSearchQuery.d.mts +0 -4
- package/dist/esm/api/resources/graph/client/requests/UpdateGraphRequest.d.mts +0 -2
- package/dist/esm/api/resources/graph/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/edge/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/graph/resources/edge/client/Client.mjs +106 -0
- package/dist/esm/api/resources/graph/resources/edge/client/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/edge/client/index.mjs +1 -1
- package/dist/esm/api/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.d.mts +21 -0
- package/dist/esm/api/resources/graph/resources/edge/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/edge/client/requests/index.mjs +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.d.mts +17 -0
- package/dist/esm/api/resources/graph/resources/node/client/Client.mjs +106 -0
- package/dist/esm/api/resources/graph/resources/node/client/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/node/client/index.mjs +1 -1
- package/dist/esm/api/resources/graph/resources/node/client/requests/UpdateNodeRequest.d.mts +17 -0
- package/dist/esm/api/resources/graph/resources/node/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/graph/resources/node/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +1 -2
- package/dist/esm/api/resources/index.mjs +1 -2
- package/dist/esm/api/resources/thread/client/Client.d.mts +1 -3
- package/dist/esm/api/resources/thread/client/Client.mjs +2 -13
- package/dist/esm/api/resources/thread/client/requests/ThreadGetUserContextRequest.d.mts +1 -12
- package/dist/esm/api/resources/thread/index.d.mts +0 -1
- package/dist/esm/api/resources/thread/index.mjs +0 -1
- package/dist/esm/api/resources/user/client/Client.d.mts +4 -1
- package/dist/esm/api/resources/user/client/Client.mjs +14 -2
- package/dist/esm/api/resources/user/client/requests/CreateUserRequest.d.mts +0 -3
- package/dist/esm/api/resources/user/client/requests/UpdateUserRequest.d.mts +0 -3
- package/dist/esm/api/resources/user/client/requests/UserListOrderedRequest.d.mts +16 -1
- package/dist/esm/api/types/ClusterDetectConfig.d.mts +4 -0
- package/dist/esm/api/types/CoOccurrenceDetectConfig.d.mts +7 -0
- package/dist/esm/api/types/CoOccurrenceDetectConfig.mjs +4 -0
- package/dist/esm/api/types/DetectConfig.d.mts +16 -0
- package/dist/esm/api/types/DetectConfig.mjs +4 -0
- package/dist/esm/api/types/DetectPatternsResponse.d.mts +10 -0
- package/dist/esm/api/types/DetectPatternsResponse.mjs +4 -0
- package/dist/esm/api/types/GetTaskResponse.d.mts +1 -0
- package/dist/esm/api/types/Graph.d.mts +0 -2
- package/dist/esm/api/types/HubDetectConfig.d.mts +7 -0
- package/dist/esm/api/types/HubDetectConfig.mjs +4 -0
- package/dist/esm/api/types/MessageListResponse.d.mts +4 -0
- package/dist/esm/api/types/PathDetectConfig.d.mts +7 -0
- package/dist/esm/api/types/PathDetectConfig.mjs +4 -0
- package/dist/esm/api/types/PatternExample.d.mts +9 -0
- package/dist/esm/api/types/PatternExample.mjs +4 -0
- package/dist/esm/api/types/PatternMetadata.d.mts +11 -0
- package/dist/esm/api/types/PatternMetadata.mjs +4 -0
- package/dist/esm/api/types/PatternResult.d.mts +20 -0
- package/dist/esm/api/types/PatternResult.mjs +4 -0
- package/dist/esm/api/types/PatternSeeds.d.mts +11 -0
- package/dist/esm/api/types/PatternSeeds.mjs +4 -0
- package/dist/esm/api/types/RecencyWeight.d.mts +10 -0
- package/dist/esm/api/types/RecencyWeight.mjs +9 -0
- package/dist/esm/api/types/RelationshipDetectConfig.d.mts +4 -0
- package/dist/esm/api/types/RelationshipDetectConfig.mjs +4 -0
- package/dist/esm/api/types/User.d.mts +0 -2
- package/dist/esm/api/types/index.d.mts +12 -4
- package/dist/esm/api/types/index.mjs +12 -4
- package/dist/esm/serialization/index.d.mts +1 -1
- package/dist/esm/serialization/index.mjs +1 -1
- package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.mjs +2 -0
- package/dist/esm/serialization/resources/graph/client/requests/CreateGraphRequest.d.mts +0 -2
- package/dist/esm/serialization/resources/graph/client/requests/CreateGraphRequest.mjs +0 -2
- package/dist/esm/serialization/resources/graph/client/requests/DetectPatternsRequest.d.mts +24 -0
- package/dist/esm/serialization/resources/graph/client/requests/DetectPatternsRequest.mjs +19 -0
- package/dist/esm/serialization/resources/graph/client/requests/GraphSearchQuery.d.mts +0 -2
- package/dist/esm/serialization/resources/graph/client/requests/GraphSearchQuery.mjs +0 -2
- package/dist/esm/serialization/resources/graph/client/requests/UpdateGraphRequest.d.mts +0 -2
- package/dist/esm/serialization/resources/graph/client/requests/UpdateGraphRequest.mjs +0 -2
- package/dist/esm/serialization/resources/graph/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/graph/resources/edge/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/resources/edge/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.d.mts +17 -0
- package/dist/esm/serialization/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.mjs +12 -0
- package/dist/esm/serialization/resources/graph/resources/edge/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/resources/edge/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/graph/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/graph/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/graph/resources/node/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/resources/node/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/graph/resources/node/client/requests/UpdateNodeRequest.d.mts +15 -0
- package/dist/esm/serialization/resources/graph/resources/node/client/requests/UpdateNodeRequest.mjs +10 -0
- package/dist/esm/serialization/resources/graph/resources/node/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/graph/resources/node/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/index.d.mts +1 -2
- package/dist/esm/serialization/resources/index.mjs +1 -2
- package/dist/esm/serialization/resources/thread/index.d.mts +0 -1
- package/dist/esm/serialization/resources/thread/index.mjs +0 -1
- package/dist/esm/serialization/resources/user/client/requests/CreateUserRequest.d.mts +0 -2
- package/dist/esm/serialization/resources/user/client/requests/CreateUserRequest.mjs +0 -2
- package/dist/esm/serialization/resources/user/client/requests/UpdateUserRequest.d.mts +0 -2
- package/dist/esm/serialization/resources/user/client/requests/UpdateUserRequest.mjs +0 -2
- package/dist/esm/serialization/types/ClusterDetectConfig.d.mts +10 -0
- package/dist/esm/serialization/types/ClusterDetectConfig.mjs +5 -0
- package/dist/esm/serialization/types/CoOccurrenceDetectConfig.d.mts +12 -0
- package/dist/esm/serialization/types/CoOccurrenceDetectConfig.mjs +7 -0
- package/dist/esm/serialization/types/DetectConfig.d.mts +21 -0
- package/dist/esm/serialization/types/DetectConfig.mjs +16 -0
- package/dist/esm/serialization/types/DetectPatternsResponse.d.mts +15 -0
- package/dist/esm/serialization/types/DetectPatternsResponse.mjs +10 -0
- package/dist/esm/serialization/types/GetTaskResponse.d.mts +1 -0
- package/dist/esm/serialization/types/GetTaskResponse.mjs +1 -0
- package/dist/esm/serialization/types/Graph.d.mts +0 -2
- package/dist/esm/serialization/types/Graph.mjs +0 -2
- package/dist/esm/serialization/types/HubDetectConfig.d.mts +12 -0
- package/dist/esm/serialization/types/HubDetectConfig.mjs +7 -0
- package/dist/esm/serialization/types/MessageListResponse.d.mts +2 -0
- package/dist/esm/serialization/types/MessageListResponse.mjs +2 -0
- package/dist/esm/serialization/types/PathDetectConfig.d.mts +12 -0
- package/dist/esm/serialization/types/PathDetectConfig.mjs +7 -0
- package/dist/esm/serialization/types/PatternExample.d.mts +13 -0
- package/dist/esm/serialization/types/PatternExample.mjs +8 -0
- package/dist/esm/serialization/types/PatternMetadata.d.mts +14 -0
- package/dist/esm/serialization/types/PatternMetadata.mjs +9 -0
- package/dist/esm/serialization/types/PatternResult.d.mts +19 -0
- package/dist/esm/serialization/types/PatternResult.mjs +14 -0
- package/dist/esm/serialization/types/PatternSeeds.d.mts +14 -0
- package/dist/esm/serialization/types/PatternSeeds.mjs +9 -0
- package/dist/esm/serialization/types/RecencyWeight.d.mts +10 -0
- package/dist/esm/serialization/types/RecencyWeight.mjs +5 -0
- package/dist/esm/serialization/types/RelationshipDetectConfig.d.mts +10 -0
- package/dist/esm/serialization/types/RelationshipDetectConfig.mjs +5 -0
- package/dist/esm/serialization/types/User.d.mts +0 -2
- package/dist/esm/serialization/types/User.mjs +0 -2
- package/dist/esm/serialization/types/index.d.mts +12 -4
- package/dist/esm/serialization/types/index.mjs +12 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/reference.md +212 -3
- package/dist/cjs/api/resources/thread/types/ThreadGetUserContextRequestMode.d.ts +0 -8
- package/dist/cjs/api/resources/thread/types/ThreadGetUserContextRequestMode.js +0 -10
- package/dist/cjs/api/resources/thread/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/thread/types/index.js +0 -17
- package/dist/cjs/api/types/FactRatingExamples.d.ts +0 -8
- package/dist/cjs/api/types/FactRatingInstruction.d.ts +0 -21
- package/dist/cjs/api/types/ModelsFactRatingExamples.d.ts +0 -8
- package/dist/cjs/api/types/ModelsFactRatingInstruction.d.ts +0 -21
- package/dist/cjs/serialization/resources/thread/types/ThreadGetUserContextRequestMode.d.ts +0 -10
- package/dist/cjs/serialization/resources/thread/types/index.d.ts +0 -1
- package/dist/cjs/serialization/resources/thread/types/index.js +0 -17
- package/dist/cjs/serialization/types/FactRatingExamples.d.ts +0 -14
- package/dist/cjs/serialization/types/FactRatingInstruction.d.ts +0 -14
- package/dist/cjs/serialization/types/ModelsFactRatingExamples.d.ts +0 -14
- package/dist/cjs/serialization/types/ModelsFactRatingInstruction.d.ts +0 -14
- package/dist/esm/api/resources/thread/types/ThreadGetUserContextRequestMode.d.mts +0 -8
- package/dist/esm/api/resources/thread/types/ThreadGetUserContextRequestMode.mjs +0 -7
- package/dist/esm/api/resources/thread/types/index.d.mts +0 -1
- package/dist/esm/api/resources/thread/types/index.mjs +0 -1
- package/dist/esm/api/types/FactRatingExamples.d.mts +0 -8
- package/dist/esm/api/types/FactRatingInstruction.d.mts +0 -21
- package/dist/esm/api/types/ModelsFactRatingExamples.d.mts +0 -8
- package/dist/esm/api/types/ModelsFactRatingInstruction.d.mts +0 -21
- package/dist/esm/serialization/resources/thread/types/ThreadGetUserContextRequestMode.d.mts +0 -10
- package/dist/esm/serialization/resources/thread/types/ThreadGetUserContextRequestMode.mjs +0 -5
- package/dist/esm/serialization/resources/thread/types/index.d.mts +0 -1
- package/dist/esm/serialization/resources/thread/types/index.mjs +0 -1
- package/dist/esm/serialization/types/FactRatingExamples.d.mts +0 -14
- package/dist/esm/serialization/types/FactRatingExamples.mjs +0 -9
- package/dist/esm/serialization/types/FactRatingInstruction.d.mts +0 -14
- package/dist/esm/serialization/types/FactRatingInstruction.mjs +0 -9
- package/dist/esm/serialization/types/ModelsFactRatingExamples.d.mts +0 -14
- package/dist/esm/serialization/types/ModelsFactRatingExamples.mjs +0 -9
- package/dist/esm/serialization/types/ModelsFactRatingInstruction.d.mts +0 -14
- package/dist/esm/serialization/types/ModelsFactRatingInstruction.mjs +0 -9
- /package/dist/cjs/api/{types/FactRatingExamples.js → resources/graph/client/requests/DetectPatternsRequest.js} +0 -0
- /package/dist/cjs/api/{types/FactRatingInstruction.js → resources/graph/resources/edge/client/requests/UpdateEdgeRequest.js} +0 -0
- /package/dist/cjs/api/{types/ModelsFactRatingExamples.js → resources/graph/resources/node/client/requests/UpdateNodeRequest.js} +0 -0
- /package/dist/cjs/api/types/{ModelsFactRatingInstruction.js → ClusterDetectConfig.js} +0 -0
- /package/dist/esm/api/{types/FactRatingExamples.mjs → resources/graph/client/requests/DetectPatternsRequest.mjs} +0 -0
- /package/dist/esm/api/{types/FactRatingInstruction.mjs → resources/graph/resources/edge/client/requests/UpdateEdgeRequest.mjs} +0 -0
- /package/dist/esm/api/{types/ModelsFactRatingExamples.mjs → resources/graph/resources/node/client/requests/UpdateNodeRequest.mjs} +0 -0
- /package/dist/esm/api/types/{ModelsFactRatingInstruction.mjs → ClusterDetectConfig.mjs} +0 -0
|
@@ -293,6 +293,7 @@ export class Edge {
|
|
|
293
293
|
* @param {Edge.RequestOptions} requestOptions - Request-specific configuration.
|
|
294
294
|
*
|
|
295
295
|
* @throws {@link Zep.BadRequestError}
|
|
296
|
+
* @throws {@link Zep.NotFoundError}
|
|
296
297
|
* @throws {@link Zep.InternalServerError}
|
|
297
298
|
*
|
|
298
299
|
* @example
|
|
@@ -334,6 +335,14 @@ export class Edge {
|
|
|
334
335
|
skipValidation: true,
|
|
335
336
|
breadcrumbsPrefix: ["response"],
|
|
336
337
|
}), _response.rawResponse);
|
|
338
|
+
case 404:
|
|
339
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
340
|
+
unrecognizedObjectKeys: "passthrough",
|
|
341
|
+
allowUnrecognizedUnionMembers: true,
|
|
342
|
+
allowUnrecognizedEnumValues: true,
|
|
343
|
+
skipValidation: true,
|
|
344
|
+
breadcrumbsPrefix: ["response"],
|
|
345
|
+
}), _response.rawResponse);
|
|
337
346
|
case 500:
|
|
338
347
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
339
348
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -367,6 +376,103 @@ export class Edge {
|
|
|
367
376
|
}
|
|
368
377
|
});
|
|
369
378
|
}
|
|
379
|
+
/**
|
|
380
|
+
* Updates an entity edge by UUID.
|
|
381
|
+
*
|
|
382
|
+
* @param {string} uuid - Edge UUID
|
|
383
|
+
* @param {Zep.graph.UpdateEdgeRequest} request
|
|
384
|
+
* @param {Edge.RequestOptions} requestOptions - Request-specific configuration.
|
|
385
|
+
*
|
|
386
|
+
* @throws {@link Zep.BadRequestError}
|
|
387
|
+
* @throws {@link Zep.NotFoundError}
|
|
388
|
+
* @throws {@link Zep.InternalServerError}
|
|
389
|
+
*
|
|
390
|
+
* @example
|
|
391
|
+
* await client.graph.edge.update("uuid")
|
|
392
|
+
*/
|
|
393
|
+
update(uuid, request = {}, requestOptions) {
|
|
394
|
+
return core.HttpResponsePromise.fromPromise(this.__update(uuid, request, requestOptions));
|
|
395
|
+
}
|
|
396
|
+
__update(uuid_1) {
|
|
397
|
+
return __awaiter(this, arguments, void 0, function* (uuid, request = {}, requestOptions) {
|
|
398
|
+
var _a, _b, _c, _d;
|
|
399
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
400
|
+
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/edge/${encodeURIComponent(uuid)}`),
|
|
401
|
+
method: "PATCH",
|
|
402
|
+
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),
|
|
403
|
+
contentType: "application/json",
|
|
404
|
+
requestType: "json",
|
|
405
|
+
body: serializers.graph.UpdateEdgeRequest.jsonOrThrow(request, {
|
|
406
|
+
unrecognizedObjectKeys: "strip",
|
|
407
|
+
omitUndefined: true,
|
|
408
|
+
}),
|
|
409
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
410
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
411
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
412
|
+
});
|
|
413
|
+
if (_response.ok) {
|
|
414
|
+
return {
|
|
415
|
+
data: serializers.EntityEdge.parseOrThrow(_response.body, {
|
|
416
|
+
unrecognizedObjectKeys: "passthrough",
|
|
417
|
+
allowUnrecognizedUnionMembers: true,
|
|
418
|
+
allowUnrecognizedEnumValues: true,
|
|
419
|
+
skipValidation: true,
|
|
420
|
+
breadcrumbsPrefix: ["response"],
|
|
421
|
+
}),
|
|
422
|
+
rawResponse: _response.rawResponse,
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
if (_response.error.reason === "status-code") {
|
|
426
|
+
switch (_response.error.statusCode) {
|
|
427
|
+
case 400:
|
|
428
|
+
throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
429
|
+
unrecognizedObjectKeys: "passthrough",
|
|
430
|
+
allowUnrecognizedUnionMembers: true,
|
|
431
|
+
allowUnrecognizedEnumValues: true,
|
|
432
|
+
skipValidation: true,
|
|
433
|
+
breadcrumbsPrefix: ["response"],
|
|
434
|
+
}), _response.rawResponse);
|
|
435
|
+
case 404:
|
|
436
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
437
|
+
unrecognizedObjectKeys: "passthrough",
|
|
438
|
+
allowUnrecognizedUnionMembers: true,
|
|
439
|
+
allowUnrecognizedEnumValues: true,
|
|
440
|
+
skipValidation: true,
|
|
441
|
+
breadcrumbsPrefix: ["response"],
|
|
442
|
+
}), _response.rawResponse);
|
|
443
|
+
case 500:
|
|
444
|
+
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
445
|
+
unrecognizedObjectKeys: "passthrough",
|
|
446
|
+
allowUnrecognizedUnionMembers: true,
|
|
447
|
+
allowUnrecognizedEnumValues: true,
|
|
448
|
+
skipValidation: true,
|
|
449
|
+
breadcrumbsPrefix: ["response"],
|
|
450
|
+
}), _response.rawResponse);
|
|
451
|
+
default:
|
|
452
|
+
throw new errors.ZepError({
|
|
453
|
+
statusCode: _response.error.statusCode,
|
|
454
|
+
body: _response.error.body,
|
|
455
|
+
rawResponse: _response.rawResponse,
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
switch (_response.error.reason) {
|
|
460
|
+
case "non-json":
|
|
461
|
+
throw new errors.ZepError({
|
|
462
|
+
statusCode: _response.error.statusCode,
|
|
463
|
+
body: _response.error.rawBody,
|
|
464
|
+
rawResponse: _response.rawResponse,
|
|
465
|
+
});
|
|
466
|
+
case "timeout":
|
|
467
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling PATCH /graph/edge/{uuid}.");
|
|
468
|
+
case "unknown":
|
|
469
|
+
throw new errors.ZepError({
|
|
470
|
+
message: _response.error.errorMessage,
|
|
471
|
+
rawResponse: _response.rawResponse,
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
}
|
|
370
476
|
_getCustomAuthorizationHeaders() {
|
|
371
477
|
return __awaiter(this, void 0, void 0, function* () {
|
|
372
478
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface UpdateEdgeRequest {
|
|
9
|
+
/** Updated attributes. Merged with existing attributes. Set a key to null to delete it. */
|
|
10
|
+
attributes?: Record<string, unknown>;
|
|
11
|
+
/** Updated time at which the edge expires */
|
|
12
|
+
expiredAt?: string;
|
|
13
|
+
/** Updated fact for the edge */
|
|
14
|
+
fact?: string;
|
|
15
|
+
/** Updated time at which the fact stopped being true */
|
|
16
|
+
invalidAt?: string;
|
|
17
|
+
/** Updated name (relationship type) for the edge */
|
|
18
|
+
name?: string;
|
|
19
|
+
/** Updated time at which the fact becomes true */
|
|
20
|
+
validAt?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type UpdateEdgeRequest } from "./UpdateEdgeRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
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 * from "./edge/client/requests/index.mjs";
|
|
4
5
|
export * from "./episode/client/requests/index.mjs";
|
|
6
|
+
export * from "./node/client/requests/index.mjs";
|
|
@@ -1,4 +1,6 @@
|
|
|
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 * from "./edge/client/requests/index.mjs";
|
|
4
5
|
export * from "./episode/client/requests/index.mjs";
|
|
6
|
+
export * from "./node/client/requests/index.mjs";
|
|
@@ -108,6 +108,7 @@ export declare class Node {
|
|
|
108
108
|
* @param {Node.RequestOptions} requestOptions - Request-specific configuration.
|
|
109
109
|
*
|
|
110
110
|
* @throws {@link Zep.BadRequestError}
|
|
111
|
+
* @throws {@link Zep.NotFoundError}
|
|
111
112
|
* @throws {@link Zep.InternalServerError}
|
|
112
113
|
*
|
|
113
114
|
* @example
|
|
@@ -115,6 +116,22 @@ export declare class Node {
|
|
|
115
116
|
*/
|
|
116
117
|
delete(uuid: string, requestOptions?: Node.RequestOptions): core.HttpResponsePromise<Zep.SuccessResponse>;
|
|
117
118
|
private __delete;
|
|
119
|
+
/**
|
|
120
|
+
* Updates an entity node by UUID.
|
|
121
|
+
*
|
|
122
|
+
* @param {string} uuid - Node UUID
|
|
123
|
+
* @param {Zep.graph.UpdateNodeRequest} request
|
|
124
|
+
* @param {Node.RequestOptions} requestOptions - Request-specific configuration.
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link Zep.BadRequestError}
|
|
127
|
+
* @throws {@link Zep.NotFoundError}
|
|
128
|
+
* @throws {@link Zep.InternalServerError}
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* await client.graph.node.update("uuid")
|
|
132
|
+
*/
|
|
133
|
+
update(uuid: string, request?: Zep.graph.UpdateNodeRequest, requestOptions?: Node.RequestOptions): core.HttpResponsePromise<Zep.EntityNode>;
|
|
134
|
+
private __update;
|
|
118
135
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
119
136
|
Authorization: string;
|
|
120
137
|
}>;
|
|
@@ -455,6 +455,7 @@ export class Node {
|
|
|
455
455
|
* @param {Node.RequestOptions} requestOptions - Request-specific configuration.
|
|
456
456
|
*
|
|
457
457
|
* @throws {@link Zep.BadRequestError}
|
|
458
|
+
* @throws {@link Zep.NotFoundError}
|
|
458
459
|
* @throws {@link Zep.InternalServerError}
|
|
459
460
|
*
|
|
460
461
|
* @example
|
|
@@ -496,6 +497,14 @@ export class Node {
|
|
|
496
497
|
skipValidation: true,
|
|
497
498
|
breadcrumbsPrefix: ["response"],
|
|
498
499
|
}), _response.rawResponse);
|
|
500
|
+
case 404:
|
|
501
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
502
|
+
unrecognizedObjectKeys: "passthrough",
|
|
503
|
+
allowUnrecognizedUnionMembers: true,
|
|
504
|
+
allowUnrecognizedEnumValues: true,
|
|
505
|
+
skipValidation: true,
|
|
506
|
+
breadcrumbsPrefix: ["response"],
|
|
507
|
+
}), _response.rawResponse);
|
|
499
508
|
case 500:
|
|
500
509
|
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
501
510
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -529,6 +538,103 @@ export class Node {
|
|
|
529
538
|
}
|
|
530
539
|
});
|
|
531
540
|
}
|
|
541
|
+
/**
|
|
542
|
+
* Updates an entity node by UUID.
|
|
543
|
+
*
|
|
544
|
+
* @param {string} uuid - Node UUID
|
|
545
|
+
* @param {Zep.graph.UpdateNodeRequest} request
|
|
546
|
+
* @param {Node.RequestOptions} requestOptions - Request-specific configuration.
|
|
547
|
+
*
|
|
548
|
+
* @throws {@link Zep.BadRequestError}
|
|
549
|
+
* @throws {@link Zep.NotFoundError}
|
|
550
|
+
* @throws {@link Zep.InternalServerError}
|
|
551
|
+
*
|
|
552
|
+
* @example
|
|
553
|
+
* await client.graph.node.update("uuid")
|
|
554
|
+
*/
|
|
555
|
+
update(uuid, request = {}, requestOptions) {
|
|
556
|
+
return core.HttpResponsePromise.fromPromise(this.__update(uuid, request, requestOptions));
|
|
557
|
+
}
|
|
558
|
+
__update(uuid_1) {
|
|
559
|
+
return __awaiter(this, arguments, void 0, function* (uuid, request = {}, requestOptions) {
|
|
560
|
+
var _a, _b, _c, _d;
|
|
561
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
562
|
+
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/node/${encodeURIComponent(uuid)}`),
|
|
563
|
+
method: "PATCH",
|
|
564
|
+
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),
|
|
565
|
+
contentType: "application/json",
|
|
566
|
+
requestType: "json",
|
|
567
|
+
body: serializers.graph.UpdateNodeRequest.jsonOrThrow(request, {
|
|
568
|
+
unrecognizedObjectKeys: "strip",
|
|
569
|
+
omitUndefined: true,
|
|
570
|
+
}),
|
|
571
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
572
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
573
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
574
|
+
});
|
|
575
|
+
if (_response.ok) {
|
|
576
|
+
return {
|
|
577
|
+
data: serializers.EntityNode.parseOrThrow(_response.body, {
|
|
578
|
+
unrecognizedObjectKeys: "passthrough",
|
|
579
|
+
allowUnrecognizedUnionMembers: true,
|
|
580
|
+
allowUnrecognizedEnumValues: true,
|
|
581
|
+
skipValidation: true,
|
|
582
|
+
breadcrumbsPrefix: ["response"],
|
|
583
|
+
}),
|
|
584
|
+
rawResponse: _response.rawResponse,
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
if (_response.error.reason === "status-code") {
|
|
588
|
+
switch (_response.error.statusCode) {
|
|
589
|
+
case 400:
|
|
590
|
+
throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
591
|
+
unrecognizedObjectKeys: "passthrough",
|
|
592
|
+
allowUnrecognizedUnionMembers: true,
|
|
593
|
+
allowUnrecognizedEnumValues: true,
|
|
594
|
+
skipValidation: true,
|
|
595
|
+
breadcrumbsPrefix: ["response"],
|
|
596
|
+
}), _response.rawResponse);
|
|
597
|
+
case 404:
|
|
598
|
+
throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
599
|
+
unrecognizedObjectKeys: "passthrough",
|
|
600
|
+
allowUnrecognizedUnionMembers: true,
|
|
601
|
+
allowUnrecognizedEnumValues: true,
|
|
602
|
+
skipValidation: true,
|
|
603
|
+
breadcrumbsPrefix: ["response"],
|
|
604
|
+
}), _response.rawResponse);
|
|
605
|
+
case 500:
|
|
606
|
+
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
607
|
+
unrecognizedObjectKeys: "passthrough",
|
|
608
|
+
allowUnrecognizedUnionMembers: true,
|
|
609
|
+
allowUnrecognizedEnumValues: true,
|
|
610
|
+
skipValidation: true,
|
|
611
|
+
breadcrumbsPrefix: ["response"],
|
|
612
|
+
}), _response.rawResponse);
|
|
613
|
+
default:
|
|
614
|
+
throw new errors.ZepError({
|
|
615
|
+
statusCode: _response.error.statusCode,
|
|
616
|
+
body: _response.error.body,
|
|
617
|
+
rawResponse: _response.rawResponse,
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
switch (_response.error.reason) {
|
|
622
|
+
case "non-json":
|
|
623
|
+
throw new errors.ZepError({
|
|
624
|
+
statusCode: _response.error.statusCode,
|
|
625
|
+
body: _response.error.rawBody,
|
|
626
|
+
rawResponse: _response.rawResponse,
|
|
627
|
+
});
|
|
628
|
+
case "timeout":
|
|
629
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling PATCH /graph/node/{uuid}.");
|
|
630
|
+
case "unknown":
|
|
631
|
+
throw new errors.ZepError({
|
|
632
|
+
message: _response.error.errorMessage,
|
|
633
|
+
rawResponse: _response.rawResponse,
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
});
|
|
637
|
+
}
|
|
532
638
|
_getCustomAuthorizationHeaders() {
|
|
533
639
|
return __awaiter(this, void 0, void 0, function* () {
|
|
534
640
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface UpdateNodeRequest {
|
|
9
|
+
/** Updated attributes. Merged with existing attributes. Set a key to null to delete it. */
|
|
10
|
+
attributes?: Record<string, unknown>;
|
|
11
|
+
/** Updated labels for the node */
|
|
12
|
+
labels?: string[];
|
|
13
|
+
/** Updated name for the node */
|
|
14
|
+
name?: string;
|
|
15
|
+
/** Updated summary for the node */
|
|
16
|
+
summary?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type UpdateNodeRequest } from "./UpdateNodeRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export * as thread from "./thread/index.mjs";
|
|
2
|
-
export * from "./thread/types/index.mjs";
|
|
3
1
|
export * as context from "./context/index.mjs";
|
|
4
2
|
export * as graph from "./graph/index.mjs";
|
|
5
3
|
export * as project from "./project/index.mjs";
|
|
6
4
|
export * as task from "./task/index.mjs";
|
|
5
|
+
export * as thread from "./thread/index.mjs";
|
|
7
6
|
export * as user from "./user/index.mjs";
|
|
8
7
|
export * from "./context/client/requests/index.mjs";
|
|
9
8
|
export * from "./graph/client/requests/index.mjs";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export * as thread from "./thread/index.mjs";
|
|
2
|
-
export * from "./thread/types/index.mjs";
|
|
3
1
|
export * as context from "./context/index.mjs";
|
|
4
2
|
export * as graph from "./graph/index.mjs";
|
|
5
3
|
export * as project from "./project/index.mjs";
|
|
6
4
|
export * as task from "./task/index.mjs";
|
|
5
|
+
export * as thread from "./thread/index.mjs";
|
|
7
6
|
export * as user from "./user/index.mjs";
|
|
8
7
|
export * from "./context/client/requests/index.mjs";
|
|
9
8
|
export * from "./graph/client/requests/index.mjs";
|
|
@@ -93,9 +93,7 @@ export declare class Thread {
|
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* await client.thread.getUserContext("threadId", {
|
|
96
|
-
*
|
|
97
|
-
* templateId: "template_id",
|
|
98
|
-
* mode: "basic"
|
|
96
|
+
* templateId: "template_id"
|
|
99
97
|
* })
|
|
100
98
|
*/
|
|
101
99
|
getUserContext(threadId: string, request?: Zep.ThreadGetUserContextRequest, requestOptions?: Thread.RequestOptions): core.HttpResponsePromise<Zep.ThreadContextResponse>;
|
|
@@ -309,9 +309,7 @@ export class Thread {
|
|
|
309
309
|
*
|
|
310
310
|
* @example
|
|
311
311
|
* await client.thread.getUserContext("threadId", {
|
|
312
|
-
*
|
|
313
|
-
* templateId: "template_id",
|
|
314
|
-
* mode: "basic"
|
|
312
|
+
* templateId: "template_id"
|
|
315
313
|
* })
|
|
316
314
|
*/
|
|
317
315
|
getUserContext(threadId, request = {}, requestOptions) {
|
|
@@ -320,20 +318,11 @@ export class Thread {
|
|
|
320
318
|
__getUserContext(threadId_1) {
|
|
321
319
|
return __awaiter(this, arguments, void 0, function* (threadId, request = {}, requestOptions) {
|
|
322
320
|
var _a, _b, _c, _d;
|
|
323
|
-
const {
|
|
321
|
+
const { templateId } = request;
|
|
324
322
|
const _queryParams = {};
|
|
325
|
-
if (minRating != null) {
|
|
326
|
-
_queryParams["minRating"] = minRating.toString();
|
|
327
|
-
}
|
|
328
323
|
if (templateId != null) {
|
|
329
324
|
_queryParams["template_id"] = templateId;
|
|
330
325
|
}
|
|
331
|
-
if (mode != null) {
|
|
332
|
-
_queryParams["mode"] = serializers.ThreadGetUserContextRequestMode.jsonOrThrow(mode, {
|
|
333
|
-
unrecognizedObjectKeys: "strip",
|
|
334
|
-
omitUndefined: true,
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
326
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
338
327
|
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)}/context`),
|
|
339
328
|
method: "GET",
|
|
@@ -1,26 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Zep from "../../../../index.mjs";
|
|
5
4
|
/**
|
|
6
5
|
* @example
|
|
7
6
|
* {
|
|
8
|
-
*
|
|
9
|
-
* templateId: "template_id",
|
|
10
|
-
* mode: "basic"
|
|
7
|
+
* templateId: "template_id"
|
|
11
8
|
* }
|
|
12
9
|
*/
|
|
13
10
|
export interface ThreadGetUserContextRequest {
|
|
14
|
-
/**
|
|
15
|
-
* Deprecated, this field will be removed in a future release. The minimum rating by which to filter relevant facts.
|
|
16
|
-
*/
|
|
17
|
-
minRating?: number;
|
|
18
11
|
/**
|
|
19
12
|
* Optional template ID to use for custom context rendering.
|
|
20
13
|
*/
|
|
21
14
|
templateId?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Deprecated, this field will be removed in a future release. Defaults to summary mode. Use basic for lower latency
|
|
24
|
-
*/
|
|
25
|
-
mode?: Zep.ThreadGetUserContextRequestMode;
|
|
26
15
|
}
|
|
@@ -105,7 +105,10 @@ export declare class User {
|
|
|
105
105
|
* @example
|
|
106
106
|
* await client.user.listOrdered({
|
|
107
107
|
* pageNumber: 1,
|
|
108
|
-
* pageSize: 1
|
|
108
|
+
* pageSize: 1,
|
|
109
|
+
* search: "search",
|
|
110
|
+
* orderBy: "order_by",
|
|
111
|
+
* asc: true
|
|
109
112
|
* })
|
|
110
113
|
*/
|
|
111
114
|
listOrdered(request?: Zep.UserListOrderedRequest, requestOptions?: User.RequestOptions): core.HttpResponsePromise<Zep.UserListResponse>;
|
|
@@ -389,7 +389,10 @@ export class User {
|
|
|
389
389
|
* @example
|
|
390
390
|
* await client.user.listOrdered({
|
|
391
391
|
* pageNumber: 1,
|
|
392
|
-
* pageSize: 1
|
|
392
|
+
* pageSize: 1,
|
|
393
|
+
* search: "search",
|
|
394
|
+
* orderBy: "order_by",
|
|
395
|
+
* asc: true
|
|
393
396
|
* })
|
|
394
397
|
*/
|
|
395
398
|
listOrdered(request = {}, requestOptions) {
|
|
@@ -398,7 +401,7 @@ export class User {
|
|
|
398
401
|
__listOrdered() {
|
|
399
402
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
400
403
|
var _a, _b, _c, _d;
|
|
401
|
-
const { pageNumber, pageSize } = request;
|
|
404
|
+
const { pageNumber, pageSize, search, orderBy, asc } = request;
|
|
402
405
|
const _queryParams = {};
|
|
403
406
|
if (pageNumber != null) {
|
|
404
407
|
_queryParams["pageNumber"] = pageNumber.toString();
|
|
@@ -406,6 +409,15 @@ export class User {
|
|
|
406
409
|
if (pageSize != null) {
|
|
407
410
|
_queryParams["pageSize"] = pageSize.toString();
|
|
408
411
|
}
|
|
412
|
+
if (search != null) {
|
|
413
|
+
_queryParams["search"] = search;
|
|
414
|
+
}
|
|
415
|
+
if (orderBy != null) {
|
|
416
|
+
_queryParams["order_by"] = orderBy;
|
|
417
|
+
}
|
|
418
|
+
if (asc != null) {
|
|
419
|
+
_queryParams["asc"] = asc.toString();
|
|
420
|
+
}
|
|
409
421
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
410
422
|
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, "users-ordered"),
|
|
411
423
|
method: "GET",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Zep from "../../../../index.mjs";
|
|
5
4
|
/**
|
|
6
5
|
* @example
|
|
7
6
|
* {
|
|
@@ -13,8 +12,6 @@ export interface CreateUserRequest {
|
|
|
13
12
|
disableDefaultOntology?: boolean;
|
|
14
13
|
/** The email address of the user. */
|
|
15
14
|
email?: string;
|
|
16
|
-
/** Deprecated: this field will be removed in a future release. Optional instruction to use for fact rating. */
|
|
17
|
-
factRatingInstruction?: Zep.FactRatingInstruction;
|
|
18
15
|
/** The first name of the user. */
|
|
19
16
|
firstName?: string;
|
|
20
17
|
/** The last name of the user. */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Zep from "../../../../index.mjs";
|
|
5
4
|
/**
|
|
6
5
|
* @example
|
|
7
6
|
* {}
|
|
@@ -11,8 +10,6 @@ export interface UpdateUserRequest {
|
|
|
11
10
|
disableDefaultOntology?: boolean;
|
|
12
11
|
/** The email address of the user. */
|
|
13
12
|
email?: string;
|
|
14
|
-
/** Deprecated: this field will be removed in a future release. Optional instruction to use for fact rating. */
|
|
15
|
-
factRatingInstruction?: Zep.FactRatingInstruction;
|
|
16
13
|
/** The first name of the user. */
|
|
17
14
|
firstName?: string;
|
|
18
15
|
/** The last name of the user. */
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
7
|
* pageNumber: 1,
|
|
8
|
-
* pageSize: 1
|
|
8
|
+
* pageSize: 1,
|
|
9
|
+
* search: "search",
|
|
10
|
+
* orderBy: "order_by",
|
|
11
|
+
* asc: true
|
|
9
12
|
* }
|
|
10
13
|
*/
|
|
11
14
|
export interface UserListOrderedRequest {
|
|
@@ -17,4 +20,16 @@ export interface UserListOrderedRequest {
|
|
|
17
20
|
* Number of users to retrieve per page
|
|
18
21
|
*/
|
|
19
22
|
pageSize?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Search term for filtering users by user_id, name, or email
|
|
25
|
+
*/
|
|
26
|
+
search?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Column to sort by (created_at, user_id, email)
|
|
29
|
+
*/
|
|
30
|
+
orderBy?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Sort in ascending order
|
|
33
|
+
*/
|
|
34
|
+
asc?: boolean;
|
|
20
35
|
}
|
|
@@ -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 DetectConfig {
|
|
6
|
+
/** Detect tightly interconnected groups (triangle topology) */
|
|
7
|
+
clusters?: Zep.ClusterDetectConfig;
|
|
8
|
+
/** Detect node types that co-occur within k hops */
|
|
9
|
+
coOccurrences?: Zep.CoOccurrenceDetectConfig;
|
|
10
|
+
/** Detect highly connected hub nodes (star topology) */
|
|
11
|
+
hubs?: Zep.HubDetectConfig;
|
|
12
|
+
/** Detect frequent multi-hop connection paths */
|
|
13
|
+
paths?: Zep.PathDetectConfig;
|
|
14
|
+
/** Detect common (source_label, edge_type, target_label) relationship triples */
|
|
15
|
+
relationships?: Zep.RelationshipDetectConfig;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Zep from "../index.mjs";
|
|
5
|
+
export interface DetectPatternsResponse {
|
|
6
|
+
/** Statistics about the detection run */
|
|
7
|
+
metadata?: Zep.PatternMetadata;
|
|
8
|
+
/** Detected patterns, sorted by weighted_score descending */
|
|
9
|
+
patterns?: Zep.PatternResult[];
|
|
10
|
+
}
|