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

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 +2 -2
  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
package/Client.d.ts CHANGED
@@ -5,6 +5,8 @@ import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Document } from "./api/resources/document/client/Client";
7
7
  import { Memory } from "./api/resources/memory/client/Client";
8
+ import { Graph } from "./api/resources/graph/client/Client";
9
+ import { Group } from "./api/resources/group/client/Client";
8
10
  import { User } from "./api/resources/user/client/Client";
9
11
  export declare namespace ZepClient {
10
12
  interface Options {
@@ -25,6 +27,10 @@ export declare class ZepClient {
25
27
  get document(): Document;
26
28
  protected _memory: Memory | undefined;
27
29
  get memory(): Memory;
30
+ protected _graph: Graph | undefined;
31
+ get graph(): Graph;
32
+ protected _group: Group | undefined;
33
+ get group(): Group;
28
34
  protected _user: User | undefined;
29
35
  get user(): User;
30
36
  }
package/Client.js CHANGED
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ZepClient = void 0;
7
7
  const Client_1 = require("./api/resources/document/client/Client");
8
8
  const Client_2 = require("./api/resources/memory/client/Client");
9
- const Client_3 = require("./api/resources/user/client/Client");
9
+ const Client_3 = require("./api/resources/graph/client/Client");
10
+ const Client_4 = require("./api/resources/group/client/Client");
11
+ const Client_5 = require("./api/resources/user/client/Client");
10
12
  class ZepClient {
11
13
  constructor(_options = {}) {
12
14
  this._options = _options;
@@ -19,9 +21,17 @@ class ZepClient {
19
21
  var _a;
20
22
  return ((_a = this._memory) !== null && _a !== void 0 ? _a : (this._memory = new Client_2.Memory(this._options)));
21
23
  }
24
+ get graph() {
25
+ var _a;
26
+ return ((_a = this._graph) !== null && _a !== void 0 ? _a : (this._graph = new Client_3.Graph(this._options)));
27
+ }
28
+ get group() {
29
+ var _a;
30
+ return ((_a = this._group) !== null && _a !== void 0 ? _a : (this._group = new Client_4.Group(this._options)));
31
+ }
22
32
  get user() {
23
33
  var _a;
24
- return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_3.User(this._options)));
34
+ return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_5.User(this._options)));
25
35
  }
26
36
  }
27
37
  exports.ZepClient = ZepClient;
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -30,7 +30,7 @@ export declare class Document {
30
30
  * @example
31
31
  * await zep.document.listCollections()
32
32
  */
33
- listCollections(requestOptions?: Document.RequestOptions): Promise<Zep.DocumentCollectionResponse[][]>;
33
+ listCollections(requestOptions?: Document.RequestOptions): Promise<Zep.ApidataDocumentCollection[][]>;
34
34
  /**
35
35
  * Returns a DocumentCollection if it exists.
36
36
  *
@@ -45,7 +45,7 @@ export declare class Document {
45
45
  * @example
46
46
  * await zep.document.getCollection("collectionName")
47
47
  */
48
- getCollection(collectionName: string, requestOptions?: Document.RequestOptions): Promise<Zep.DocumentCollectionResponse>;
48
+ getCollection(collectionName: string, requestOptions?: Document.RequestOptions): Promise<Zep.ApidataDocumentCollection>;
49
49
  /**
50
50
  * If a collection with the same name already exists, an error will be returned.
51
51
  *
@@ -109,7 +109,7 @@ export declare class Document {
109
109
  * content: "content"
110
110
  * }])
111
111
  */
112
- addDocuments(collectionName: string, request: Zep.CreateDocumentRequest[], requestOptions?: Document.RequestOptions): Promise<string[]>;
112
+ addDocuments(collectionName: string, request: Zep.CreateDocumentRequest[], requestOptions?: Document.RequestOptions): Promise<string[][]>;
113
113
  /**
114
114
  * Deletes specified Documents from a DocumentCollection.
115
115
  *
@@ -139,7 +139,7 @@ export declare class Document {
139
139
  * @example
140
140
  * await zep.document.batchGetDocuments("collectionName")
141
141
  */
142
- batchGetDocuments(collectionName: string, request?: Zep.GetDocumentListRequest, requestOptions?: Document.RequestOptions): Promise<Zep.DocumentResponse[]>;
142
+ batchGetDocuments(collectionName: string, request?: Zep.GetDocumentListRequest, requestOptions?: Document.RequestOptions): Promise<Zep.ApidataDocument[][]>;
143
143
  /**
144
144
  * Updates Documents in a specified DocumentCollection.
145
145
  *
@@ -169,9 +169,9 @@ export declare class Document {
169
169
  * @throws {@link Zep.InternalServerError}
170
170
  *
171
171
  * @example
172
- * await zep.document.getsADocumentFromADocumentCollectionByUuid("collectionName", "documentUUID")
172
+ * await zep.document.getsADocumentFromADocumentCollectionByUuidCloudOnly("collectionName", "documentUUID")
173
173
  */
174
- getsADocumentFromADocumentCollectionByUuid(collectionName: string, documentUuid: string, requestOptions?: Document.RequestOptions): Promise<Zep.DocumentResponse>;
174
+ getsADocumentFromADocumentCollectionByUuidCloudOnly(collectionName: string, documentUuid: string, requestOptions?: Document.RequestOptions): Promise<Zep.ApidataDocument>;
175
175
  /**
176
176
  * Delete specified Document from a DocumentCollection.
177
177
  *
@@ -202,9 +202,9 @@ export declare class Document {
202
202
  * @throws {@link Zep.InternalServerError}
203
203
  *
204
204
  * @example
205
- * await zep.document.updatesADocument("collectionName", "documentUUID")
205
+ * await zep.document.updatesADocumentCloudOnly("collectionName", "documentUUID")
206
206
  */
207
- updatesADocument(collectionName: string, documentUuid: string, request?: Zep.UpdateDocumentRequest, requestOptions?: Document.RequestOptions): Promise<Zep.SuccessResponse>;
207
+ updatesADocumentCloudOnly(collectionName: string, documentUuid: string, request?: Zep.UpdateDocumentRequest, requestOptions?: Document.RequestOptions): Promise<Zep.SuccessResponse>;
208
208
  /**
209
209
  * Searches over documents in a collection based on provided search criteria. One of text or metadata must be provided. Returns an empty list if no documents are found.
210
210
  *
@@ -219,7 +219,7 @@ export declare class Document {
219
219
  * @example
220
220
  * await zep.document.search("collectionName")
221
221
  */
222
- search(collectionName: string, request?: Zep.DocumentSearchPayload, requestOptions?: Document.RequestOptions): Promise<Zep.DocumentSearchResultPage>;
222
+ search(collectionName: string, request?: Zep.DocumentSearchPayload, requestOptions?: Document.RequestOptions): Promise<Zep.ApidataDocumentSearchResponse>;
223
223
  protected _getCustomAuthorizationHeaders(): Promise<{
224
224
  Authorization: string;
225
225
  }>;
@@ -77,7 +77,7 @@ class Document {
77
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
78
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "collections"),
79
79
  method: "GET",
80
- 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())),
80
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
81
  contentType: "application/json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
83
83
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -152,14 +152,14 @@ class Document {
152
152
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
153
153
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
154
154
  method: "GET",
155
- 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())),
155
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
156
156
  contentType: "application/json",
157
157
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
158
158
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
159
159
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
160
160
  });
161
161
  if (_response.ok) {
162
- return yield serializers.DocumentCollectionResponse.parseOrThrow(_response.body, {
162
+ return yield serializers.ApidataDocumentCollection.parseOrThrow(_response.body, {
163
163
  unrecognizedObjectKeys: "passthrough",
164
164
  allowUnrecognizedUnionMembers: true,
165
165
  allowUnrecognizedEnumValues: true,
@@ -244,7 +244,7 @@ class Document {
244
244
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
245
245
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
246
246
  method: "POST",
247
- 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())),
247
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
248
248
  contentType: "application/json",
249
249
  body: yield serializers.CreateDocumentCollectionRequest.jsonOrThrow(request, {
250
250
  unrecognizedObjectKeys: "strip",
@@ -338,7 +338,7 @@ class Document {
338
338
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
339
339
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
340
340
  method: "DELETE",
341
- 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())),
341
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
342
342
  contentType: "application/json",
343
343
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
344
344
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -430,7 +430,7 @@ class Document {
430
430
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
431
431
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
432
432
  method: "PATCH",
433
- 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())),
433
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
434
434
  contentType: "application/json",
435
435
  body: yield serializers.UpdateDocumentCollectionRequest.jsonOrThrow(request, {
436
436
  unrecognizedObjectKeys: "strip",
@@ -526,7 +526,7 @@ class Document {
526
526
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
527
527
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents`),
528
528
  method: "POST",
529
- 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())),
529
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
530
530
  contentType: "application/json",
531
531
  body: yield serializers.document.addDocuments.Request.jsonOrThrow(request, {
532
532
  unrecognizedObjectKeys: "strip",
@@ -612,7 +612,7 @@ class Document {
612
612
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
613
613
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/batchDelete`),
614
614
  method: "POST",
615
- 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())),
615
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
616
616
  contentType: "application/json",
617
617
  body: yield serializers.document.batchDeleteDocuments.Request.jsonOrThrow(request, {
618
618
  unrecognizedObjectKeys: "strip",
@@ -698,7 +698,7 @@ class Document {
698
698
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
699
699
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/batchGet`),
700
700
  method: "POST",
701
- 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())),
701
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
702
702
  contentType: "application/json",
703
703
  body: yield serializers.GetDocumentListRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
704
704
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -784,7 +784,7 @@ class Document {
784
784
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
785
785
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/batchUpdate`),
786
786
  method: "PATCH",
787
- 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())),
787
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
788
788
  contentType: "application/json",
789
789
  body: yield serializers.document.batchUpdateDocuments.Request.jsonOrThrow(request, {
790
790
  unrecognizedObjectKeys: "strip",
@@ -862,22 +862,22 @@ class Document {
862
862
  * @throws {@link Zep.InternalServerError}
863
863
  *
864
864
  * @example
865
- * await zep.document.getsADocumentFromADocumentCollectionByUuid("collectionName", "documentUUID")
865
+ * await zep.document.getsADocumentFromADocumentCollectionByUuidCloudOnly("collectionName", "documentUUID")
866
866
  */
867
- getsADocumentFromADocumentCollectionByUuid(collectionName, documentUuid, requestOptions) {
867
+ getsADocumentFromADocumentCollectionByUuidCloudOnly(collectionName, documentUuid, requestOptions) {
868
868
  var _a, _b;
869
869
  return __awaiter(this, void 0, void 0, function* () {
870
870
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
871
871
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/uuid/${encodeURIComponent(documentUuid)}`),
872
872
  method: "GET",
873
- 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())),
873
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
874
874
  contentType: "application/json",
875
875
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
876
876
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
877
877
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
878
878
  });
879
879
  if (_response.ok) {
880
- return yield serializers.DocumentResponse.parseOrThrow(_response.body, {
880
+ return yield serializers.ApidataDocument.parseOrThrow(_response.body, {
881
881
  unrecognizedObjectKeys: "passthrough",
882
882
  allowUnrecognizedUnionMembers: true,
883
883
  allowUnrecognizedEnumValues: true,
@@ -954,7 +954,7 @@ class Document {
954
954
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
955
955
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/uuid/${encodeURIComponent(documentUuid)}`),
956
956
  method: "DELETE",
957
- 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())),
957
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
958
958
  contentType: "application/json",
959
959
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
960
960
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1039,15 +1039,15 @@ class Document {
1039
1039
  * @throws {@link Zep.InternalServerError}
1040
1040
  *
1041
1041
  * @example
1042
- * await zep.document.updatesADocument("collectionName", "documentUUID")
1042
+ * await zep.document.updatesADocumentCloudOnly("collectionName", "documentUUID")
1043
1043
  */
1044
- updatesADocument(collectionName, documentUuid, request = {}, requestOptions) {
1044
+ updatesADocumentCloudOnly(collectionName, documentUuid, request = {}, requestOptions) {
1045
1045
  var _a, _b;
1046
1046
  return __awaiter(this, void 0, void 0, function* () {
1047
1047
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1048
1048
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/uuid/${encodeURIComponent(documentUuid)}`),
1049
1049
  method: "PATCH",
1050
- 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())),
1050
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1051
1051
  contentType: "application/json",
1052
1052
  body: yield serializers.UpdateDocumentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1053
1053
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1144,7 +1144,7 @@ class Document {
1144
1144
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1145
1145
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/search`),
1146
1146
  method: "POST",
1147
- 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())),
1147
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.0.0-rc.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1148
1148
  contentType: "application/json",
1149
1149
  queryParameters: _queryParams,
1150
1150
  body: yield serializers.DocumentSearchPayload.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -1153,7 +1153,7 @@ class Document {
1153
1153
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1154
1154
  });
1155
1155
  if (_response.ok) {
1156
- return yield serializers.DocumentSearchResultPage.parseOrThrow(_response.body, {
1156
+ return yield serializers.ApidataDocumentSearchResponse.parseOrThrow(_response.body, {
1157
1157
  unrecognizedObjectKeys: "passthrough",
1158
1158
  allowUnrecognizedUnionMembers: true,
1159
1159
  allowUnrecognizedEnumValues: true,
@@ -0,0 +1,62 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Zep from "../../../index";
7
+ import { Edge } from "../resources/edge/client/Client";
8
+ import { Episode } from "../resources/episode/client/Client";
9
+ import { Node } from "../resources/node/client/Client";
10
+ export declare namespace Graph {
11
+ interface Options {
12
+ environment?: core.Supplier<environments.ZepEnvironment | string>;
13
+ apiKey?: core.Supplier<string | undefined>;
14
+ fetcher?: core.FetchFunction;
15
+ }
16
+ interface RequestOptions {
17
+ timeoutInSeconds?: number;
18
+ maxRetries?: number;
19
+ abortSignal?: AbortSignal;
20
+ }
21
+ }
22
+ export declare class Graph {
23
+ protected readonly _options: Graph.Options;
24
+ constructor(_options?: Graph.Options);
25
+ /**
26
+ * Add data to the graph
27
+ *
28
+ * @param {Zep.AddDataRequest} request
29
+ * @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
30
+ *
31
+ * @throws {@link Zep.BadRequestError}
32
+ * @throws {@link Zep.InternalServerError}
33
+ *
34
+ * @example
35
+ * await zep.graph.add()
36
+ */
37
+ add(request?: Zep.AddDataRequest, requestOptions?: Graph.RequestOptions): Promise<Zep.SuccessResponse>;
38
+ /**
39
+ * Perform a graph search query
40
+ *
41
+ * @param {Zep.GraphSearchQuery} request
42
+ * @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
43
+ *
44
+ * @throws {@link Zep.BadRequestError}
45
+ * @throws {@link Zep.InternalServerError}
46
+ *
47
+ * @example
48
+ * await zep.graph.search({
49
+ * query: "query"
50
+ * })
51
+ */
52
+ search(request: Zep.GraphSearchQuery, requestOptions?: Graph.RequestOptions): Promise<Zep.GraphSearchResults>;
53
+ protected _edge: Edge | undefined;
54
+ get edge(): Edge;
55
+ protected _episode: Episode | undefined;
56
+ get episode(): Episode;
57
+ protected _node: Node | undefined;
58
+ get node(): Node;
59
+ protected _getCustomAuthorizationHeaders(): Promise<{
60
+ Authorization: string;
61
+ }>;
62
+ }