@getzep/zep-cloud 1.0.12 → 2.0.0-rc.2

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.
Files changed (438) hide show
  1. package/Client.d.ts +6 -0
  2. package/Client.js +12 -2
  3. package/LICENSE +201 -0
  4. package/api/resources/document/client/Client.d.ts +9 -9
  5. package/api/resources/document/client/Client.js +20 -20
  6. package/api/resources/graph/client/Client.d.ts +62 -0
  7. package/api/resources/graph/client/Client.js +225 -0
  8. package/api/resources/graph/client/index.d.ts +1 -0
  9. package/{dist/langchain → api/resources/graph/client}/index.js +1 -3
  10. package/api/resources/graph/client/requests/AddDataRequest.d.ts +14 -0
  11. package/api/resources/graph/client/requests/GraphSearchQuery.d.ts +30 -0
  12. package/api/resources/graph/client/requests/index.d.ts +2 -0
  13. package/api/resources/graph/client/requests/index.js +2 -0
  14. package/api/resources/graph/index.d.ts +2 -0
  15. package/{langchain → api/resources/graph}/index.js +2 -3
  16. package/api/resources/graph/resources/edge/client/Client.d.ts +78 -0
  17. package/api/resources/graph/resources/edge/client/Client.js +361 -0
  18. package/api/resources/graph/resources/edge/client/index.d.ts +1 -0
  19. package/api/resources/graph/resources/edge/client/index.js +2 -0
  20. package/api/resources/graph/resources/edge/index.d.ts +1 -0
  21. package/api/resources/graph/resources/edge/index.js +17 -0
  22. package/api/resources/graph/resources/episode/client/Client.d.ts +66 -0
  23. package/api/resources/graph/resources/episode/client/Client.js +293 -0
  24. package/api/resources/graph/resources/episode/client/index.d.ts +1 -0
  25. package/api/resources/graph/resources/episode/client/index.js +17 -0
  26. package/api/resources/graph/resources/episode/client/requests/EpisodeGetByGroupIdRequest.d.ts +13 -0
  27. package/api/resources/graph/resources/episode/client/requests/EpisodeGetByUserIdRequest.d.ts +13 -0
  28. package/api/resources/graph/resources/episode/client/requests/index.d.ts +2 -0
  29. package/api/resources/graph/resources/episode/client/requests/index.js +2 -0
  30. package/api/resources/graph/resources/episode/index.d.ts +1 -0
  31. package/api/resources/graph/resources/episode/index.js +17 -0
  32. package/api/resources/graph/resources/index.d.ts +4 -0
  33. package/api/resources/graph/resources/index.js +33 -0
  34. package/api/resources/graph/resources/node/client/Client.d.ts +65 -0
  35. package/api/resources/graph/resources/node/client/Client.js +288 -0
  36. package/api/resources/graph/resources/node/client/index.d.ts +1 -0
  37. package/api/resources/graph/resources/node/client/index.js +2 -0
  38. package/api/resources/graph/resources/node/index.d.ts +1 -0
  39. package/api/resources/graph/resources/node/index.js +17 -0
  40. package/api/resources/group/client/Client.d.ts +52 -0
  41. package/api/resources/group/client/Client.js +216 -0
  42. package/api/resources/group/client/index.d.ts +1 -0
  43. package/api/resources/group/client/index.js +17 -0
  44. package/api/resources/group/client/requests/CreateGroupRequest.d.ts +12 -0
  45. package/api/resources/group/client/requests/index.d.ts +1 -0
  46. package/api/resources/group/client/requests/index.js +2 -0
  47. package/api/resources/group/index.d.ts +1 -0
  48. package/api/resources/group/index.js +17 -0
  49. package/api/resources/index.d.ts +4 -0
  50. package/api/resources/index.js +5 -1
  51. package/api/resources/memory/client/Client.d.ts +22 -12
  52. package/api/resources/memory/client/Client.js +45 -38
  53. package/api/resources/memory/client/requests/AddFactsRequest.d.ts +1 -1
  54. package/api/resources/memory/client/requests/AddMemoryRequest.d.ts +6 -3
  55. package/api/resources/memory/client/requests/CreateSessionRequest.d.ts +3 -2
  56. package/api/resources/memory/client/requests/MemoryGetRequest.d.ts +0 -5
  57. package/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.d.ts +1 -1
  58. package/api/resources/memory/client/requests/ModelsMessageMetadataUpdate.d.ts +3 -1
  59. package/api/resources/memory/client/requests/SessionSearchQuery.d.ts +12 -3
  60. package/api/resources/memory/client/requests/UpdateSessionRequest.d.ts +3 -1
  61. package/api/resources/user/client/Client.d.ts +13 -0
  62. package/api/resources/user/client/Client.js +79 -6
  63. package/{dist/api/types/DocumentResponse.d.ts → api/types/ApidataDocument.d.ts} +1 -1
  64. package/api/types/{DocumentCollectionResponse.d.ts → ApidataDocumentCollection.d.ts} +1 -3
  65. package/api/types/{DocumentSearchResultPage.d.ts → ApidataDocumentSearchResponse.d.ts} +2 -2
  66. package/api/types/{DocumentSearchResult.d.ts → ApidataDocumentWithScore.d.ts} +1 -1
  67. package/api/types/EndSessionResponse.d.ts +1 -1
  68. package/api/types/EntityEdge.d.ts +25 -0
  69. package/api/types/EntityNode.d.ts +15 -0
  70. package/api/types/Episode.d.ts +12 -0
  71. package/api/types/EpisodeResponse.d.ts +7 -0
  72. package/api/types/EpisodeResponse.js +5 -0
  73. package/api/types/Fact.d.ts +9 -3
  74. package/api/types/GraphDataType.d.ts +9 -0
  75. package/api/types/GraphDataType.js +11 -0
  76. package/api/types/GraphSearchResults.d.ts +8 -0
  77. package/api/types/GraphSearchResults.js +5 -0
  78. package/api/types/GraphSearchScope.d.ts +8 -0
  79. package/api/types/GraphSearchScope.js +10 -0
  80. package/api/types/Group.d.ts +12 -0
  81. package/api/types/Group.js +5 -0
  82. package/api/types/Memory.d.ts +4 -5
  83. package/api/types/Message.d.ts +2 -2
  84. package/api/types/{AddedFact.d.ts → NewFact.d.ts} +1 -1
  85. package/api/types/NewFact.js +5 -0
  86. package/api/types/Reranker.d.ts +10 -0
  87. package/api/types/Reranker.js +12 -0
  88. package/api/types/Session.d.ts +1 -2
  89. package/api/types/{ClassifySessionResponse.d.ts → SessionClassification.d.ts} +2 -2
  90. package/api/types/SessionClassification.js +5 -0
  91. package/api/types/SessionFactRatingExamples.d.ts +8 -0
  92. package/api/types/SessionFactRatingExamples.js +5 -0
  93. package/api/types/SessionFactRatingInstruction.d.ts +21 -0
  94. package/api/types/SessionFactRatingInstruction.js +5 -0
  95. package/api/types/index.d.ts +24 -14
  96. package/api/types/index.js +24 -14
  97. package/dist/Client.d.ts +6 -0
  98. package/dist/Client.js +12 -2
  99. package/dist/api/resources/document/client/Client.d.ts +9 -9
  100. package/dist/api/resources/document/client/Client.js +20 -20
  101. package/dist/api/resources/graph/client/Client.d.ts +62 -0
  102. package/dist/api/resources/graph/client/Client.js +225 -0
  103. package/dist/api/resources/graph/client/index.d.ts +1 -0
  104. package/dist/api/resources/graph/client/index.js +17 -0
  105. package/dist/api/resources/graph/client/requests/AddDataRequest.d.ts +14 -0
  106. package/dist/api/resources/graph/client/requests/AddDataRequest.js +5 -0
  107. package/dist/api/resources/graph/client/requests/GraphSearchQuery.d.ts +30 -0
  108. package/dist/api/resources/graph/client/requests/GraphSearchQuery.js +5 -0
  109. package/dist/api/resources/graph/client/requests/index.d.ts +2 -0
  110. package/dist/api/resources/graph/client/requests/index.js +2 -0
  111. package/dist/api/resources/graph/index.d.ts +2 -0
  112. package/dist/api/resources/graph/index.js +18 -0
  113. package/dist/api/resources/graph/resources/edge/client/Client.d.ts +78 -0
  114. package/dist/api/resources/graph/resources/edge/client/Client.js +361 -0
  115. package/dist/api/resources/graph/resources/edge/client/index.d.ts +1 -0
  116. package/dist/api/resources/graph/resources/edge/client/index.js +2 -0
  117. package/dist/api/resources/graph/resources/edge/index.d.ts +1 -0
  118. package/dist/api/resources/graph/resources/edge/index.js +17 -0
  119. package/dist/api/resources/graph/resources/episode/client/Client.d.ts +66 -0
  120. package/dist/api/resources/graph/resources/episode/client/Client.js +293 -0
  121. package/dist/api/resources/graph/resources/episode/client/index.d.ts +1 -0
  122. package/dist/api/resources/graph/resources/episode/client/index.js +17 -0
  123. package/dist/api/resources/graph/resources/episode/client/requests/EpisodeGetByGroupIdRequest.d.ts +13 -0
  124. package/dist/api/resources/graph/resources/episode/client/requests/EpisodeGetByGroupIdRequest.js +5 -0
  125. package/dist/api/resources/graph/resources/episode/client/requests/EpisodeGetByUserIdRequest.d.ts +13 -0
  126. package/dist/api/resources/graph/resources/episode/client/requests/EpisodeGetByUserIdRequest.js +5 -0
  127. package/dist/api/resources/graph/resources/episode/client/requests/index.d.ts +2 -0
  128. package/dist/api/resources/graph/resources/episode/client/requests/index.js +2 -0
  129. package/dist/api/resources/graph/resources/episode/index.d.ts +1 -0
  130. package/dist/api/resources/graph/resources/episode/index.js +17 -0
  131. package/dist/api/resources/graph/resources/index.d.ts +4 -0
  132. package/dist/api/resources/graph/resources/index.js +33 -0
  133. package/dist/api/resources/graph/resources/node/client/Client.d.ts +65 -0
  134. package/dist/api/resources/graph/resources/node/client/Client.js +288 -0
  135. package/dist/api/resources/graph/resources/node/client/index.d.ts +1 -0
  136. package/dist/api/resources/graph/resources/node/client/index.js +2 -0
  137. package/dist/api/resources/graph/resources/node/index.d.ts +1 -0
  138. package/dist/api/resources/graph/resources/node/index.js +17 -0
  139. package/dist/api/resources/group/client/Client.d.ts +52 -0
  140. package/dist/api/resources/group/client/Client.js +216 -0
  141. package/dist/api/resources/group/client/index.d.ts +1 -0
  142. package/dist/api/resources/group/client/index.js +17 -0
  143. package/dist/api/resources/group/client/requests/CreateGroupRequest.d.ts +12 -0
  144. package/dist/api/resources/group/client/requests/CreateGroupRequest.js +5 -0
  145. package/dist/api/resources/group/client/requests/index.d.ts +1 -0
  146. package/dist/api/resources/group/client/requests/index.js +2 -0
  147. package/dist/api/resources/group/index.d.ts +1 -0
  148. package/dist/api/resources/group/index.js +17 -0
  149. package/dist/api/resources/index.d.ts +4 -0
  150. package/dist/api/resources/index.js +5 -1
  151. package/dist/api/resources/memory/client/Client.d.ts +22 -12
  152. package/dist/api/resources/memory/client/Client.js +45 -38
  153. package/dist/api/resources/memory/client/requests/AddFactsRequest.d.ts +1 -1
  154. package/dist/api/resources/memory/client/requests/AddMemoryRequest.d.ts +6 -3
  155. package/dist/api/resources/memory/client/requests/CreateSessionRequest.d.ts +3 -2
  156. package/dist/api/resources/memory/client/requests/MemoryGetRequest.d.ts +0 -5
  157. package/dist/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.d.ts +1 -1
  158. package/dist/api/resources/memory/client/requests/ModelsMessageMetadataUpdate.d.ts +3 -1
  159. package/dist/api/resources/memory/client/requests/SessionSearchQuery.d.ts +12 -3
  160. package/dist/api/resources/memory/client/requests/UpdateSessionRequest.d.ts +3 -1
  161. package/dist/api/resources/user/client/Client.d.ts +13 -0
  162. package/dist/api/resources/user/client/Client.js +79 -6
  163. package/{api/types/DocumentResponse.d.ts → dist/api/types/ApidataDocument.d.ts} +1 -1
  164. package/dist/api/types/ApidataDocument.js +5 -0
  165. package/dist/api/types/{DocumentCollectionResponse.d.ts → ApidataDocumentCollection.d.ts} +1 -3
  166. package/dist/api/types/ApidataDocumentCollection.js +5 -0
  167. package/dist/api/types/{DocumentSearchResultPage.d.ts → ApidataDocumentSearchResponse.d.ts} +2 -2
  168. package/dist/api/types/ApidataDocumentSearchResponse.js +5 -0
  169. package/dist/api/types/{DocumentSearchResult.d.ts → ApidataDocumentWithScore.d.ts} +1 -1
  170. package/dist/api/types/ApidataDocumentWithScore.js +5 -0
  171. package/dist/api/types/EndSessionResponse.d.ts +1 -1
  172. package/dist/api/types/EntityEdge.d.ts +25 -0
  173. package/dist/api/types/EntityEdge.js +5 -0
  174. package/dist/api/types/EntityNode.d.ts +15 -0
  175. package/dist/api/types/EntityNode.js +5 -0
  176. package/dist/api/types/Episode.d.ts +12 -0
  177. package/dist/api/types/Episode.js +5 -0
  178. package/dist/api/types/EpisodeResponse.d.ts +7 -0
  179. package/dist/api/types/EpisodeResponse.js +5 -0
  180. package/dist/api/types/Fact.d.ts +9 -3
  181. package/dist/api/types/GraphDataType.d.ts +9 -0
  182. package/dist/api/types/GraphDataType.js +11 -0
  183. package/dist/api/types/GraphSearchResults.d.ts +8 -0
  184. package/dist/api/types/GraphSearchResults.js +5 -0
  185. package/dist/api/types/GraphSearchScope.d.ts +8 -0
  186. package/dist/api/types/GraphSearchScope.js +10 -0
  187. package/dist/api/types/Group.d.ts +12 -0
  188. package/dist/api/types/Group.js +5 -0
  189. package/dist/api/types/Memory.d.ts +4 -5
  190. package/dist/api/types/Message.d.ts +2 -2
  191. package/dist/api/types/{AddedFact.d.ts → NewFact.d.ts} +1 -1
  192. package/dist/api/types/NewFact.js +5 -0
  193. package/dist/api/types/Reranker.d.ts +10 -0
  194. package/dist/api/types/Reranker.js +12 -0
  195. package/dist/api/types/Session.d.ts +1 -2
  196. package/dist/api/types/{ClassifySessionResponse.d.ts → SessionClassification.d.ts} +2 -2
  197. package/dist/api/types/SessionClassification.js +5 -0
  198. package/dist/api/types/SessionFactRatingExamples.d.ts +8 -0
  199. package/dist/api/types/SessionFactRatingExamples.js +5 -0
  200. package/dist/api/types/SessionFactRatingInstruction.d.ts +21 -0
  201. package/dist/api/types/SessionFactRatingInstruction.js +5 -0
  202. package/dist/api/types/index.d.ts +24 -14
  203. package/dist/api/types/index.js +24 -14
  204. package/dist/serialization/resources/document/client/addDocuments.d.ts +2 -2
  205. package/dist/serialization/resources/document/client/addDocuments.js +1 -1
  206. package/dist/serialization/resources/document/client/batchGetDocuments.d.ts +3 -3
  207. package/dist/serialization/resources/document/client/batchGetDocuments.js +2 -2
  208. package/dist/serialization/resources/document/client/listCollections.d.ts +3 -3
  209. package/dist/serialization/resources/document/client/listCollections.js +2 -2
  210. package/dist/serialization/resources/graph/client/index.d.ts +1 -0
  211. package/dist/serialization/resources/graph/client/index.js +17 -0
  212. package/dist/serialization/resources/graph/client/requests/AddDataRequest.d.ts +16 -0
  213. package/dist/serialization/resources/graph/client/requests/AddDataRequest.js +37 -0
  214. package/dist/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +22 -0
  215. package/dist/serialization/resources/graph/client/requests/GraphSearchQuery.js +43 -0
  216. package/dist/serialization/resources/graph/client/requests/index.d.ts +2 -0
  217. package/dist/serialization/resources/graph/client/requests/index.js +7 -0
  218. package/dist/serialization/resources/graph/index.d.ts +2 -0
  219. package/dist/serialization/resources/graph/index.js +18 -0
  220. package/dist/serialization/resources/graph/resources/edge/client/getByGroupId.d.ts +11 -0
  221. package/dist/serialization/resources/graph/resources/edge/client/getByGroupId.js +32 -0
  222. package/dist/serialization/resources/graph/resources/edge/client/getByUserId.d.ts +11 -0
  223. package/dist/serialization/resources/graph/resources/edge/client/getByUserId.js +32 -0
  224. package/dist/serialization/resources/graph/resources/edge/client/index.d.ts +2 -0
  225. package/dist/serialization/resources/graph/resources/edge/client/index.js +28 -0
  226. package/dist/serialization/resources/graph/resources/edge/index.d.ts +1 -0
  227. package/dist/serialization/resources/graph/resources/edge/index.js +17 -0
  228. package/dist/serialization/resources/graph/resources/index.d.ts +2 -0
  229. package/dist/serialization/resources/graph/resources/index.js +28 -0
  230. package/dist/serialization/resources/graph/resources/node/client/getByGroupId.d.ts +11 -0
  231. package/dist/serialization/resources/graph/resources/node/client/getByGroupId.js +32 -0
  232. package/dist/serialization/resources/graph/resources/node/client/getByUserId.d.ts +11 -0
  233. package/dist/serialization/resources/graph/resources/node/client/getByUserId.js +32 -0
  234. package/dist/serialization/resources/graph/resources/node/client/index.d.ts +2 -0
  235. package/dist/serialization/resources/graph/resources/node/client/index.js +28 -0
  236. package/dist/serialization/resources/graph/resources/node/index.d.ts +1 -0
  237. package/dist/serialization/resources/graph/resources/node/index.js +17 -0
  238. package/dist/serialization/resources/group/client/index.d.ts +1 -0
  239. package/dist/serialization/resources/group/client/index.js +17 -0
  240. package/dist/serialization/resources/group/client/requests/CreateGroupRequest.d.ts +14 -0
  241. package/dist/serialization/resources/group/client/requests/CreateGroupRequest.js +35 -0
  242. package/dist/serialization/resources/group/client/requests/index.d.ts +1 -0
  243. package/dist/serialization/resources/group/client/requests/index.js +5 -0
  244. package/dist/serialization/resources/group/index.d.ts +1 -0
  245. package/dist/serialization/resources/group/index.js +17 -0
  246. package/dist/serialization/resources/index.d.ts +4 -0
  247. package/dist/serialization/resources/index.js +5 -1
  248. package/dist/serialization/resources/memory/client/requests/AddFactsRequest.d.ts +2 -2
  249. package/dist/serialization/resources/memory/client/requests/AddFactsRequest.js +2 -2
  250. package/dist/serialization/resources/memory/client/requests/CreateSessionRequest.d.ts +1 -1
  251. package/dist/serialization/resources/memory/client/requests/CreateSessionRequest.js +1 -1
  252. package/dist/serialization/resources/memory/client/requests/SessionSearchQuery.d.ts +1 -1
  253. package/dist/serialization/resources/memory/client/requests/SessionSearchQuery.js +1 -1
  254. package/{serialization/types/DocumentResponse.d.ts → dist/serialization/types/ApidataDocument.d.ts} +2 -2
  255. package/{serialization/types/DocumentResponse.js → dist/serialization/types/ApidataDocument.js} +2 -2
  256. package/dist/serialization/types/{DocumentCollectionResponse.d.ts → ApidataDocumentCollection.d.ts} +2 -2
  257. package/{serialization/types/DocumentCollectionResponse.js → dist/serialization/types/ApidataDocumentCollection.js} +2 -2
  258. package/dist/serialization/types/{DocumentSearchResultPage.d.ts → ApidataDocumentSearchResponse.d.ts} +4 -4
  259. package/dist/serialization/types/{DocumentSearchResultPage.js → ApidataDocumentSearchResponse.js} +4 -4
  260. package/dist/serialization/types/{DocumentSearchResult.d.ts → ApidataDocumentWithScore.d.ts} +2 -2
  261. package/dist/serialization/types/{DocumentSearchResult.js → ApidataDocumentWithScore.js} +2 -2
  262. package/dist/serialization/types/EndSessionResponse.d.ts +2 -2
  263. package/dist/serialization/types/EndSessionResponse.js +2 -2
  264. package/dist/serialization/types/EntityEdge.d.ts +21 -0
  265. package/dist/serialization/types/EntityEdge.js +42 -0
  266. package/dist/serialization/types/EntityNode.d.ts +16 -0
  267. package/dist/serialization/types/EntityNode.js +37 -0
  268. package/dist/serialization/types/Episode.d.ts +18 -0
  269. package/dist/serialization/types/Episode.js +39 -0
  270. package/dist/serialization/types/EpisodeResponse.d.ts +13 -0
  271. package/dist/serialization/types/EpisodeResponse.js +34 -0
  272. package/dist/serialization/types/Fact.d.ts +9 -3
  273. package/dist/serialization/types/Fact.js +9 -3
  274. package/dist/serialization/types/GraphDataType.d.ts +10 -0
  275. package/dist/serialization/types/{MemoryType.js → GraphDataType.js} +2 -2
  276. package/dist/serialization/types/GraphSearchResults.d.ts +15 -0
  277. package/dist/serialization/types/GraphSearchResults.js +36 -0
  278. package/dist/serialization/types/GraphSearchScope.d.ts +10 -0
  279. package/{serialization/types/MemoryType.js → dist/serialization/types/GraphSearchScope.js} +2 -2
  280. package/dist/serialization/types/Group.d.ts +18 -0
  281. package/dist/serialization/types/Group.js +39 -0
  282. package/dist/serialization/types/Memory.d.ts +0 -1
  283. package/dist/serialization/types/Memory.js +0 -1
  284. package/dist/serialization/types/Message.d.ts +2 -2
  285. package/dist/serialization/types/Message.js +2 -2
  286. package/dist/serialization/types/{AddedFact.d.ts → NewFact.d.ts} +2 -2
  287. package/{serialization/types/AddedFact.js → dist/serialization/types/NewFact.js} +2 -2
  288. package/dist/serialization/types/Reranker.d.ts +10 -0
  289. package/dist/serialization/types/Reranker.js +36 -0
  290. package/dist/serialization/types/Session.d.ts +2 -3
  291. package/dist/serialization/types/Session.js +2 -3
  292. package/dist/serialization/types/{ClassifySessionResponse.d.ts → SessionClassification.d.ts} +3 -3
  293. package/{serialization/types/ClassifySessionResponse.js → dist/serialization/types/SessionClassification.js} +3 -3
  294. package/dist/serialization/types/SessionFactRatingExamples.d.ts +14 -0
  295. package/dist/serialization/types/SessionFactRatingExamples.js +35 -0
  296. package/dist/serialization/types/SessionFactRatingInstruction.d.ts +14 -0
  297. package/dist/serialization/types/SessionFactRatingInstruction.js +35 -0
  298. package/dist/serialization/types/index.d.ts +24 -14
  299. package/dist/serialization/types/index.js +24 -14
  300. package/examples/graph/conversations.ts +297 -0
  301. package/examples/graph/group_graph_example.ts +61 -0
  302. package/examples/graph/user_graph_example.ts +158 -0
  303. package/package.json +11 -22
  304. package/serialization/resources/document/client/addDocuments.d.ts +2 -2
  305. package/serialization/resources/document/client/addDocuments.js +1 -1
  306. package/serialization/resources/document/client/batchGetDocuments.d.ts +3 -3
  307. package/serialization/resources/document/client/batchGetDocuments.js +2 -2
  308. package/serialization/resources/document/client/listCollections.d.ts +3 -3
  309. package/serialization/resources/document/client/listCollections.js +2 -2
  310. package/serialization/resources/graph/client/index.d.ts +1 -0
  311. package/serialization/resources/graph/client/index.js +17 -0
  312. package/serialization/resources/graph/client/requests/AddDataRequest.d.ts +16 -0
  313. package/serialization/resources/graph/client/requests/AddDataRequest.js +37 -0
  314. package/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +22 -0
  315. package/serialization/resources/graph/client/requests/GraphSearchQuery.js +43 -0
  316. package/serialization/resources/graph/client/requests/index.d.ts +2 -0
  317. package/serialization/resources/graph/client/requests/index.js +7 -0
  318. package/serialization/resources/graph/index.d.ts +2 -0
  319. package/serialization/resources/graph/index.js +18 -0
  320. package/serialization/resources/graph/resources/edge/client/getByGroupId.d.ts +11 -0
  321. package/serialization/resources/graph/resources/edge/client/getByGroupId.js +32 -0
  322. package/serialization/resources/graph/resources/edge/client/getByUserId.d.ts +11 -0
  323. package/serialization/resources/graph/resources/edge/client/getByUserId.js +32 -0
  324. package/serialization/resources/graph/resources/edge/client/index.d.ts +2 -0
  325. package/serialization/resources/graph/resources/edge/client/index.js +28 -0
  326. package/serialization/resources/graph/resources/edge/index.d.ts +1 -0
  327. package/serialization/resources/graph/resources/edge/index.js +17 -0
  328. package/serialization/resources/graph/resources/index.d.ts +2 -0
  329. package/serialization/resources/graph/resources/index.js +28 -0
  330. package/serialization/resources/graph/resources/node/client/getByGroupId.d.ts +11 -0
  331. package/serialization/resources/graph/resources/node/client/getByGroupId.js +32 -0
  332. package/serialization/resources/graph/resources/node/client/getByUserId.d.ts +11 -0
  333. package/serialization/resources/graph/resources/node/client/getByUserId.js +32 -0
  334. package/serialization/resources/graph/resources/node/client/index.d.ts +2 -0
  335. package/serialization/resources/graph/resources/node/client/index.js +28 -0
  336. package/serialization/resources/graph/resources/node/index.d.ts +1 -0
  337. package/serialization/resources/graph/resources/node/index.js +17 -0
  338. package/serialization/resources/group/client/index.d.ts +1 -0
  339. package/serialization/resources/group/client/index.js +17 -0
  340. package/serialization/resources/group/client/requests/CreateGroupRequest.d.ts +14 -0
  341. package/serialization/resources/group/client/requests/CreateGroupRequest.js +35 -0
  342. package/serialization/resources/group/client/requests/index.d.ts +1 -0
  343. package/serialization/resources/group/client/requests/index.js +5 -0
  344. package/serialization/resources/group/index.d.ts +1 -0
  345. package/serialization/resources/group/index.js +17 -0
  346. package/serialization/resources/index.d.ts +4 -0
  347. package/serialization/resources/index.js +5 -1
  348. package/serialization/resources/memory/client/requests/AddFactsRequest.d.ts +2 -2
  349. package/serialization/resources/memory/client/requests/AddFactsRequest.js +2 -2
  350. package/serialization/resources/memory/client/requests/CreateSessionRequest.d.ts +1 -1
  351. package/serialization/resources/memory/client/requests/CreateSessionRequest.js +1 -1
  352. package/serialization/resources/memory/client/requests/SessionSearchQuery.d.ts +1 -1
  353. package/serialization/resources/memory/client/requests/SessionSearchQuery.js +1 -1
  354. package/{dist/serialization/types/DocumentResponse.d.ts → serialization/types/ApidataDocument.d.ts} +2 -2
  355. package/{dist/serialization/types/DocumentResponse.js → serialization/types/ApidataDocument.js} +2 -2
  356. package/serialization/types/{DocumentCollectionResponse.d.ts → ApidataDocumentCollection.d.ts} +2 -2
  357. package/{dist/serialization/types/DocumentCollectionResponse.js → serialization/types/ApidataDocumentCollection.js} +2 -2
  358. package/serialization/types/{DocumentSearchResultPage.d.ts → ApidataDocumentSearchResponse.d.ts} +4 -4
  359. package/serialization/types/{DocumentSearchResultPage.js → ApidataDocumentSearchResponse.js} +4 -4
  360. package/serialization/types/{DocumentSearchResult.d.ts → ApidataDocumentWithScore.d.ts} +2 -2
  361. package/serialization/types/{DocumentSearchResult.js → ApidataDocumentWithScore.js} +2 -2
  362. package/serialization/types/EndSessionResponse.d.ts +2 -2
  363. package/serialization/types/EndSessionResponse.js +2 -2
  364. package/serialization/types/EntityEdge.d.ts +21 -0
  365. package/serialization/types/EntityEdge.js +42 -0
  366. package/serialization/types/EntityNode.d.ts +16 -0
  367. package/serialization/types/EntityNode.js +37 -0
  368. package/serialization/types/Episode.d.ts +18 -0
  369. package/serialization/types/Episode.js +39 -0
  370. package/serialization/types/EpisodeResponse.d.ts +13 -0
  371. package/serialization/types/EpisodeResponse.js +34 -0
  372. package/serialization/types/Fact.d.ts +9 -3
  373. package/serialization/types/Fact.js +9 -3
  374. package/serialization/types/GraphDataType.d.ts +10 -0
  375. package/serialization/types/GraphDataType.js +31 -0
  376. package/serialization/types/GraphSearchResults.d.ts +15 -0
  377. package/serialization/types/GraphSearchResults.js +36 -0
  378. package/serialization/types/GraphSearchScope.d.ts +10 -0
  379. package/serialization/types/GraphSearchScope.js +31 -0
  380. package/serialization/types/Group.d.ts +18 -0
  381. package/serialization/types/Group.js +39 -0
  382. package/serialization/types/Memory.d.ts +0 -1
  383. package/serialization/types/Memory.js +0 -1
  384. package/serialization/types/Message.d.ts +2 -2
  385. package/serialization/types/Message.js +2 -2
  386. package/serialization/types/{AddedFact.d.ts → NewFact.d.ts} +2 -2
  387. package/{dist/serialization/types/AddedFact.js → serialization/types/NewFact.js} +2 -2
  388. package/serialization/types/Reranker.d.ts +10 -0
  389. package/serialization/types/Reranker.js +36 -0
  390. package/serialization/types/Session.d.ts +2 -3
  391. package/serialization/types/Session.js +2 -3
  392. package/serialization/types/{ClassifySessionResponse.d.ts → SessionClassification.d.ts} +3 -3
  393. package/{dist/serialization/types/ClassifySessionResponse.js → serialization/types/SessionClassification.js} +3 -3
  394. package/serialization/types/SessionFactRatingExamples.d.ts +14 -0
  395. package/serialization/types/SessionFactRatingExamples.js +35 -0
  396. package/serialization/types/SessionFactRatingInstruction.d.ts +14 -0
  397. package/serialization/types/SessionFactRatingInstruction.js +35 -0
  398. package/serialization/types/index.d.ts +24 -14
  399. package/serialization/types/index.js +24 -14
  400. package/api/types/MemoryType.d.ts +0 -9
  401. package/api/types/MemoryType.js +0 -11
  402. package/dist/api/types/MemoryType.d.ts +0 -9
  403. package/dist/api/types/MemoryType.js +0 -11
  404. package/dist/langchain/index.d.ts +0 -3
  405. package/dist/langchain/message_history.d.ts +0 -39
  406. package/dist/langchain/message_history.js +0 -109
  407. package/dist/langchain/utils.d.ts +0 -4
  408. package/dist/langchain/utils.js +0 -44
  409. package/dist/langchain/vector_store.d.ts +0 -142
  410. package/dist/langchain/vector_store.js +0 -327
  411. package/dist/langchain/zep_memory.d.ts +0 -78
  412. package/dist/langchain/zep_memory.js +0 -174
  413. package/dist/serialization/types/MemoryType.d.ts +0 -10
  414. package/examples/langchain/message_history_example.ts +0 -60
  415. package/examples/langchain/message_history_vector_store_example.ts +0 -122
  416. package/examples/langchain/vector_store_example.ts +0 -71
  417. package/langchain/index.d.ts +0 -3
  418. package/langchain/message_history.d.ts +0 -39
  419. package/langchain/message_history.js +0 -109
  420. package/langchain/utils.d.ts +0 -4
  421. package/langchain/utils.js +0 -44
  422. package/langchain/vector_store.d.ts +0 -142
  423. package/langchain/vector_store.js +0 -327
  424. package/langchain/zep_memory.d.ts +0 -78
  425. package/langchain/zep_memory.js +0 -174
  426. package/serialization/types/MemoryType.d.ts +0 -10
  427. /package/api/{types/AddedFact.js → resources/graph/client/requests/AddDataRequest.js} +0 -0
  428. /package/api/{types/ClassifySessionResponse.js → resources/graph/client/requests/GraphSearchQuery.js} +0 -0
  429. /package/api/{types/DocumentCollectionResponse.js → resources/graph/resources/episode/client/requests/EpisodeGetByGroupIdRequest.js} +0 -0
  430. /package/api/{types/DocumentResponse.js → resources/graph/resources/episode/client/requests/EpisodeGetByUserIdRequest.js} +0 -0
  431. /package/api/{types/DocumentSearchResult.js → resources/group/client/requests/CreateGroupRequest.js} +0 -0
  432. /package/api/types/{DocumentSearchResultPage.js → ApidataDocument.js} +0 -0
  433. /package/{dist/api/types/AddedFact.js → api/types/ApidataDocumentCollection.js} +0 -0
  434. /package/{dist/api/types/ClassifySessionResponse.js → api/types/ApidataDocumentSearchResponse.js} +0 -0
  435. /package/{dist/api/types/DocumentCollectionResponse.js → api/types/ApidataDocumentWithScore.js} +0 -0
  436. /package/{dist/api/types/DocumentResponse.js → api/types/EntityEdge.js} +0 -0
  437. /package/{dist/api/types/DocumentSearchResult.js → api/types/EntityNode.js} +0 -0
  438. /package/{dist/api/types/DocumentSearchResultPage.js → api/types/Episode.js} +0 -0
@@ -67,7 +67,7 @@ class User {
67
67
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
68
68
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "users"),
69
69
  method: "POST",
70
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
71
71
  contentType: "application/json",
72
72
  body: yield serializers.CreateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
73
73
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -149,7 +149,7 @@ class User {
149
149
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
150
150
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "users-ordered"),
151
151
  method: "GET",
152
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
152
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
153
153
  contentType: "application/json",
154
154
  queryParameters: _queryParams,
155
155
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -223,7 +223,7 @@ class User {
223
223
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
224
224
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}`),
225
225
  method: "GET",
226
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
226
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
227
227
  contentType: "application/json",
228
228
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
229
229
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -296,7 +296,7 @@ class User {
296
296
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
297
297
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}`),
298
298
  method: "DELETE",
299
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
299
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
300
300
  contentType: "application/json",
301
301
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
302
302
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -371,7 +371,7 @@ class User {
371
371
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
372
372
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}`),
373
373
  method: "PATCH",
374
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
374
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
375
375
  contentType: "application/json",
376
376
  body: yield serializers.UpdateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
377
377
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -435,6 +435,79 @@ class User {
435
435
  }
436
436
  });
437
437
  }
438
+ /**
439
+ * Get user facts.
440
+ *
441
+ * @param {string} userId - The user_id of the user to get.
442
+ * @param {User.RequestOptions} requestOptions - Request-specific configuration.
443
+ *
444
+ * @throws {@link Zep.NotFoundError}
445
+ * @throws {@link Zep.InternalServerError}
446
+ *
447
+ * @example
448
+ * await zep.user.getFacts("userId")
449
+ */
450
+ getFacts(userId, requestOptions) {
451
+ var _a, _b;
452
+ return __awaiter(this, void 0, void 0, function* () {
453
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
454
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}/facts`),
455
+ method: "GET",
456
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
457
+ contentType: "application/json",
458
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
459
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
460
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
461
+ });
462
+ if (_response.ok) {
463
+ return yield serializers.FactsResponse.parseOrThrow(_response.body, {
464
+ unrecognizedObjectKeys: "passthrough",
465
+ allowUnrecognizedUnionMembers: true,
466
+ allowUnrecognizedEnumValues: true,
467
+ skipValidation: true,
468
+ breadcrumbsPrefix: ["response"],
469
+ });
470
+ }
471
+ if (_response.error.reason === "status-code") {
472
+ switch (_response.error.statusCode) {
473
+ case 404:
474
+ throw new Zep.NotFoundError(yield serializers.ApiError.parseOrThrow(_response.error.body, {
475
+ unrecognizedObjectKeys: "passthrough",
476
+ allowUnrecognizedUnionMembers: true,
477
+ allowUnrecognizedEnumValues: true,
478
+ skipValidation: true,
479
+ breadcrumbsPrefix: ["response"],
480
+ }));
481
+ case 500:
482
+ throw new Zep.InternalServerError(yield serializers.ApiError.parseOrThrow(_response.error.body, {
483
+ unrecognizedObjectKeys: "passthrough",
484
+ allowUnrecognizedUnionMembers: true,
485
+ allowUnrecognizedEnumValues: true,
486
+ skipValidation: true,
487
+ breadcrumbsPrefix: ["response"],
488
+ }));
489
+ default:
490
+ throw new errors.ZepError({
491
+ statusCode: _response.error.statusCode,
492
+ body: _response.error.body,
493
+ });
494
+ }
495
+ }
496
+ switch (_response.error.reason) {
497
+ case "non-json":
498
+ throw new errors.ZepError({
499
+ statusCode: _response.error.statusCode,
500
+ body: _response.error.rawBody,
501
+ });
502
+ case "timeout":
503
+ throw new errors.ZepTimeoutError();
504
+ case "unknown":
505
+ throw new errors.ZepError({
506
+ message: _response.error.errorMessage,
507
+ });
508
+ }
509
+ });
510
+ }
438
511
  /**
439
512
  * list all sessions for a user by user id
440
513
  *
@@ -452,7 +525,7 @@ class User {
452
525
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
453
526
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}/sessions`),
454
527
  method: "GET",
455
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "1.0.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
528
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
456
529
  contentType: "application/json",
457
530
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
458
531
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface DocumentResponse {
4
+ export interface ApidataDocument {
5
5
  content?: string;
6
6
  createdAt?: string;
7
7
  documentId?: string;
@@ -1,12 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface DocumentCollectionResponse {
4
+ export interface ApidataDocumentCollection {
5
5
  createdAt?: string;
6
6
  description?: string;
7
- /** Number of documents in the collection */
8
7
  documentCount?: number;
9
- /** Number of documents with embeddings */
10
8
  documentEmbeddedCount?: number;
11
9
  embeddingDimensions?: number;
12
10
  embeddingModelName?: string;
@@ -2,10 +2,10 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Zep from "../index";
5
- export interface DocumentSearchResultPage {
5
+ export interface ApidataDocumentSearchResponse {
6
6
  currentPage?: number;
7
7
  queryVector?: number[];
8
8
  resultCount?: number;
9
- results?: Zep.DocumentSearchResult[];
9
+ results?: Zep.ApidataDocumentWithScore[];
10
10
  totalPages?: number;
11
11
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface DocumentSearchResult {
4
+ export interface ApidataDocumentWithScore {
5
5
  content?: string;
6
6
  createdAt?: string;
7
7
  documentId?: string;
@@ -3,6 +3,6 @@
3
3
  */
4
4
  import * as Zep from "../index";
5
5
  export interface EndSessionResponse {
6
- classification?: Zep.ClassifySessionResponse;
6
+ classification?: Zep.SessionClassification;
7
7
  session?: Zep.Session;
8
8
  }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface EntityEdge {
5
+ /** Creation time of the edge */
6
+ createdAt: string;
7
+ /** List of episode ids that reference these entity edges */
8
+ episodes?: string[];
9
+ /** Datetime of when the node was invalidated */
10
+ expiredAt?: string;
11
+ /** Fact representing the edge and nodes that it connects */
12
+ fact: string;
13
+ /** Datetime of when the fact stopped being true */
14
+ invalidAt?: string;
15
+ /** Name of the edge, relation name */
16
+ name: string;
17
+ /** UUID of the source node */
18
+ sourceNodeUuid: string;
19
+ /** UUID of the target node */
20
+ targetNodeUuid: string;
21
+ /** UUID of the edge */
22
+ uuid: string;
23
+ /** Datetime of when the fact became true */
24
+ validAt?: string;
25
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface EntityNode {
5
+ /** Creation time of the node */
6
+ createdAt: string;
7
+ /** Labels associated with the node */
8
+ labels?: string[];
9
+ /** Name of the node */
10
+ name: string;
11
+ /** Regional summary of surrounding edges */
12
+ summary: string;
13
+ /** UUID of the node */
14
+ uuid: string;
15
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../index";
5
+ export interface Episode {
6
+ content?: string;
7
+ createdAt?: string;
8
+ name?: string;
9
+ source?: Zep.GraphDataType;
10
+ sourceDescription?: string;
11
+ uuid?: string;
12
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../index";
5
+ export interface EpisodeResponse {
6
+ episodes?: Zep.Episode[];
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,8 +2,14 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface Fact {
5
- createdAt?: string;
6
- fact?: string;
5
+ createdAt: string;
6
+ expiredAt?: string;
7
+ fact: string;
8
+ invalidAt?: string;
9
+ name?: string;
7
10
  rating?: number;
8
- uuid?: string;
11
+ sourceNodeName?: string;
12
+ targetNodeName?: string;
13
+ uuid: string;
14
+ validAt?: string;
9
15
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type GraphDataType = "text" | "json" | "message";
5
+ export declare const GraphDataType: {
6
+ readonly Text: "text";
7
+ readonly Json: "json";
8
+ readonly Message: "message";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.GraphDataType = void 0;
7
+ exports.GraphDataType = {
8
+ Text: "text",
9
+ Json: "json",
10
+ Message: "message",
11
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../index";
5
+ export interface GraphSearchResults {
6
+ edges?: Zep.EntityEdge[];
7
+ nodes?: Zep.EntityNode[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type GraphSearchScope = "edges" | "nodes";
5
+ export declare const GraphSearchScope: {
6
+ readonly Edges: "edges";
7
+ readonly Nodes: "nodes";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.GraphSearchScope = void 0;
7
+ exports.GraphSearchScope = {
8
+ Edges: "edges",
9
+ Nodes: "nodes",
10
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface Group {
5
+ createdAt?: string;
6
+ description?: string;
7
+ externalId?: string;
8
+ id?: number;
9
+ name?: string;
10
+ projectUuid?: string;
11
+ uuid?: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,17 +4,16 @@
4
4
  import * as Zep from "../index";
5
5
  export interface Memory {
6
6
  /**
7
- * Most recent list of facts derived from the session. Included only with perpetual memory type.
7
+ * Most recent list of facts derived from the session. (cloud only)
8
8
  * Deprecated: Facts will be deprecated in future releases and relevant_facts should be used instead.
9
9
  */
10
10
  facts?: string[];
11
- /** A list of message objects, where each message contains a role and content. */
11
+ /** A list of message objects, where each message contains a role and content. Only last_n messages will be returned */
12
12
  messages?: Zep.Message[];
13
13
  /** A dictionary containing metadata associated with the memory. */
14
14
  metadata?: Record<string, unknown>;
15
+ /** Most relevant facts to the recent messages in the session. */
15
16
  relevantFacts?: Zep.Fact[];
16
- /** Summary list result from Summary Retriever Memory Type. */
17
- relevantSummaries?: Zep.Summary[];
18
- /** A Summary object. */
17
+ /** The most recent summary before last nth message. (cloud only) */
19
18
  summary?: Zep.Summary;
20
19
  }
@@ -4,7 +4,7 @@
4
4
  import * as Zep from "../index";
5
5
  export interface Message {
6
6
  /** The content of the message. */
7
- content?: string;
7
+ content: string;
8
8
  /** The timestamp of when the message was created. */
9
9
  createdAt?: string;
10
10
  /** The metadata associated with the message. */
@@ -12,7 +12,7 @@ export interface Message {
12
12
  /** The role of the sender of the message (e.g., "user", "assistant"). */
13
13
  role?: string;
14
14
  /** The type of the role (e.g., "user", "system"). */
15
- roleType?: Zep.RoleType;
15
+ roleType: Zep.RoleType;
16
16
  /** The number of tokens in the message. */
17
17
  tokenCount?: number;
18
18
  /** The timestamp of when the message was last updated. */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface AddedFact {
4
+ export interface NewFact {
5
5
  fact?: string;
6
6
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type Reranker = "rrf" | "mmr" | "node_distance" | "episode_mentions";
5
+ export declare const Reranker: {
6
+ readonly Rrf: "rrf";
7
+ readonly Mmr: "mmr";
8
+ readonly NodeDistance: "node_distance";
9
+ readonly EpisodeMentions: "episode_mentions";
10
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Reranker = void 0;
7
+ exports.Reranker = {
8
+ Rrf: "rrf",
9
+ Mmr: "mmr",
10
+ NodeDistance: "node_distance",
11
+ EpisodeMentions: "episode_mentions",
12
+ };
@@ -7,8 +7,7 @@ export interface Session {
7
7
  createdAt?: string;
8
8
  deletedAt?: string;
9
9
  endedAt?: string;
10
- factRatingInstruction?: Zep.FactRatingInstruction;
11
- factVersionUuid?: string;
10
+ factRatingInstruction?: Zep.SessionFactRatingInstruction;
12
11
  facts?: string[];
13
12
  id?: number;
14
13
  metadata?: Record<string, unknown>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface ClassifySessionResponse {
4
+ export interface SessionClassification {
5
5
  class?: string;
6
- name?: string;
6
+ label?: string;
7
7
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface SessionFactRatingExamples {
5
+ high?: string;
6
+ low?: string;
7
+ medium?: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../index";
5
+ export interface SessionFactRatingInstruction {
6
+ /**
7
+ * Examples is a list of examples that demonstrate how facts might be rated based on your instruction. You should provide
8
+ * an example of a highly rated example, a low rated example, and a medium (or in between example). For example, if you are rating
9
+ * based on relevance to a trip planning application, your examples might be:
10
+ * High: "Joe's dream vacation is Bali"
11
+ * Medium: "Joe has a fear of flying",
12
+ * Low: "Joe's favorite food is Japanese",
13
+ */
14
+ examples?: Zep.SessionFactRatingExamples;
15
+ /**
16
+ * A string describing how to rate facts as they apply to your application. A trip planning application may
17
+ * use something like "relevancy to planning a trip, the user's preferences when traveling,
18
+ * or the user's travel history."
19
+ */
20
+ instruction?: string;
21
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,35 +1,45 @@
1
1
  export * from "./ApiError";
2
- export * from "./AddedFact";
3
- export * from "./ClassifySessionRequest";
4
- export * from "./ClassifySessionResponse";
5
- export * from "./CreateDocumentRequest";
6
- export * from "./DocumentCollectionResponse";
7
- export * from "./DocumentResponse";
8
- export * from "./DocumentSearchResult";
9
- export * from "./DocumentSearchResultPage";
2
+ export * from "./ApidataDocument";
3
+ export * from "./ApidataDocumentCollection";
4
+ export * from "./ApidataDocumentSearchResponse";
5
+ export * from "./ApidataDocumentWithScore";
10
6
  export * from "./EndSessionResponse";
11
7
  export * from "./EndSessionsResponse";
12
8
  export * from "./Fact";
13
- export * from "./FactRatingExamples";
14
- export * from "./FactRatingInstruction";
15
9
  export * from "./FactResponse";
16
10
  export * from "./FactsResponse";
11
+ export * from "./Episode";
12
+ export * from "./EpisodeResponse";
13
+ export * from "./Group";
17
14
  export * from "./Memory";
18
15
  export * from "./MemorySearchResult";
19
16
  export * from "./Message";
20
17
  export * from "./MessageListResponse";
18
+ export * from "./NewFact";
21
19
  export * from "./Question";
22
20
  export * from "./RoleType";
23
- export * from "./SearchScope";
24
- export * from "./SearchType";
25
21
  export * from "./Session";
22
+ export * from "./SessionClassification";
23
+ export * from "./SessionFactRatingExamples";
24
+ export * from "./SessionFactRatingInstruction";
26
25
  export * from "./SessionListResponse";
27
26
  export * from "./SessionSearchResponse";
28
27
  export * from "./SessionSearchResult";
29
28
  export * from "./SuccessResponse";
30
29
  export * from "./Summary";
31
30
  export * from "./SummaryListResponse";
32
- export * from "./UpdateDocumentListRequest";
33
31
  export * from "./User";
34
32
  export * from "./UserListResponse";
35
- export * from "./MemoryType";
33
+ export * from "./EntityEdge";
34
+ export * from "./EntityNode";
35
+ export * from "./GraphSearchResults";
36
+ export * from "./GraphSearchScope";
37
+ export * from "./Reranker";
38
+ export * from "./ClassifySessionRequest";
39
+ export * from "./CreateDocumentRequest";
40
+ export * from "./FactRatingExamples";
41
+ export * from "./FactRatingInstruction";
42
+ export * from "./GraphDataType";
43
+ export * from "./SearchScope";
44
+ export * from "./SearchType";
45
+ export * from "./UpdateDocumentListRequest";