@getzep/zep-cloud 3.18.0 → 3.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (450) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +19 -14
  3. package/dist/cjs/api/errors/BadRequestError.d.ts +1 -2
  4. package/dist/cjs/api/errors/ConflictError.d.ts +9 -0
  5. package/dist/cjs/api/errors/ConflictError.js +52 -0
  6. package/dist/cjs/api/errors/index.d.ts +2 -1
  7. package/dist/cjs/api/errors/index.js +2 -1
  8. package/dist/cjs/api/resources/batch/client/Client.d.ts +161 -0
  9. package/dist/cjs/api/resources/batch/client/Client.js +777 -0
  10. package/dist/cjs/api/resources/batch/client/index.d.ts +2 -0
  11. package/dist/cjs/api/resources/batch/client/index.js +17 -0
  12. package/dist/cjs/api/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.ts +15 -0
  13. package/dist/cjs/api/resources/batch/client/requests/ApidataAddBatchItemsRequest.js +5 -0
  14. package/dist/cjs/api/resources/batch/client/requests/ApidataCreateBatchRequest.d.ts +18 -0
  15. package/dist/cjs/api/resources/batch/client/requests/ApidataCreateBatchRequest.js +5 -0
  16. package/dist/cjs/api/resources/batch/client/requests/BatchListItemsRequest.d.ts +25 -0
  17. package/dist/cjs/api/resources/batch/client/requests/BatchListItemsRequest.js +5 -0
  18. package/dist/cjs/api/resources/batch/client/requests/BatchListRequest.d.ts +25 -0
  19. package/dist/cjs/api/resources/batch/client/requests/BatchListRequest.js +5 -0
  20. package/dist/cjs/api/resources/batch/client/requests/index.d.ts +4 -0
  21. package/dist/cjs/api/resources/batch/client/requests/index.js +2 -0
  22. package/dist/cjs/api/resources/batch/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/batch/index.js +17 -0
  24. package/dist/cjs/api/resources/context/client/Client.js +5 -35
  25. package/dist/cjs/api/resources/graph/client/Client.d.ts +24 -1
  26. package/dist/cjs/api/resources/graph/client/Client.js +109 -102
  27. package/dist/cjs/api/resources/graph/client/requests/AddDataRequest.d.ts +2 -0
  28. package/dist/cjs/api/resources/graph/client/requests/AddTripleRequest.d.ts +19 -2
  29. package/dist/cjs/api/resources/graph/client/requests/GraphListAllRequest.d.ts +5 -0
  30. package/dist/cjs/api/resources/graph/client/requests/GraphSearchQuery.d.ts +14 -3
  31. package/dist/cjs/api/resources/graph/resources/edge/client/Client.js +5 -35
  32. package/dist/cjs/api/resources/graph/resources/episode/client/Client.d.ts +21 -0
  33. package/dist/cjs/api/resources/graph/resources/episode/client/Client.js +104 -30
  34. package/dist/cjs/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.ts +15 -0
  35. package/dist/cjs/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.js +5 -0
  36. package/dist/cjs/api/resources/graph/resources/episode/client/requests/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/graph/resources/index.d.ts +2 -0
  38. package/dist/cjs/api/resources/graph/resources/index.js +3 -1
  39. package/dist/cjs/api/resources/graph/resources/node/client/Client.js +7 -49
  40. package/dist/cjs/api/resources/graph/resources/observation/client/Client.d.ts +81 -0
  41. package/dist/cjs/api/resources/graph/resources/observation/client/Client.js +333 -0
  42. package/dist/cjs/api/resources/graph/resources/observation/client/index.d.ts +1 -0
  43. package/dist/cjs/api/resources/graph/resources/observation/client/index.js +2 -0
  44. package/dist/cjs/api/resources/graph/resources/observation/index.d.ts +1 -0
  45. package/dist/cjs/api/resources/graph/resources/observation/index.js +17 -0
  46. package/dist/cjs/api/resources/graph/resources/threadSummary/client/Client.d.ts +66 -0
  47. package/dist/cjs/api/resources/graph/resources/threadSummary/client/Client.js +249 -0
  48. package/dist/cjs/api/resources/graph/resources/threadSummary/client/index.d.ts +1 -0
  49. package/dist/cjs/api/resources/graph/resources/threadSummary/client/index.js +2 -0
  50. package/dist/cjs/api/resources/graph/resources/threadSummary/index.d.ts +1 -0
  51. package/dist/cjs/api/resources/graph/resources/threadSummary/index.js +17 -0
  52. package/dist/cjs/api/resources/index.d.ts +2 -0
  53. package/dist/cjs/api/resources/index.js +3 -1
  54. package/dist/cjs/api/resources/project/client/Client.js +1 -7
  55. package/dist/cjs/api/resources/thread/client/Client.d.ts +19 -2
  56. package/dist/cjs/api/resources/thread/client/Client.js +96 -16
  57. package/dist/cjs/api/resources/thread/client/requests/ThreadGetRequest.d.ts +1 -1
  58. package/dist/cjs/api/resources/user/client/Client.js +6 -42
  59. package/dist/cjs/api/types/ApidataBatchAddItemRole.d.ts +12 -0
  60. package/dist/cjs/api/types/ApidataBatchAddItemRole.js +14 -0
  61. package/dist/cjs/api/types/ApidataBatchAddItemType.d.ts +8 -0
  62. package/dist/cjs/api/types/ApidataBatchAddItemType.js +10 -0
  63. package/dist/cjs/api/types/BatchAddItem.d.ts +18 -0
  64. package/dist/cjs/api/types/BatchAddItem.js +5 -0
  65. package/dist/cjs/api/types/BatchItemDetail.d.ts +24 -0
  66. package/dist/cjs/api/types/BatchItemDetail.js +5 -0
  67. package/dist/cjs/api/types/BatchItemKind.d.ts +8 -0
  68. package/dist/cjs/api/types/BatchItemKind.js +10 -0
  69. package/dist/cjs/api/types/BatchItemListResponse.d.ts +8 -0
  70. package/dist/cjs/api/types/BatchItemListResponse.js +5 -0
  71. package/dist/cjs/api/types/BatchItemStatus.d.ts +13 -0
  72. package/dist/cjs/api/types/BatchItemStatus.js +15 -0
  73. package/dist/cjs/api/types/BatchListResponse.d.ts +8 -0
  74. package/dist/cjs/api/types/BatchListResponse.js +5 -0
  75. package/dist/cjs/api/types/BatchProgress.d.ts +13 -0
  76. package/dist/cjs/api/types/BatchProgress.js +5 -0
  77. package/dist/cjs/api/types/BatchStatus.d.ts +14 -0
  78. package/dist/cjs/api/types/BatchStatus.js +16 -0
  79. package/dist/cjs/api/types/BatchSummary.d.ts +16 -0
  80. package/dist/cjs/api/types/BatchSummary.js +5 -0
  81. package/dist/cjs/api/types/ComparisonOperator.d.ts +2 -1
  82. package/dist/cjs/api/types/ComparisonOperator.js +1 -0
  83. package/dist/cjs/api/types/DerivedNode.d.ts +44 -0
  84. package/dist/cjs/api/types/DerivedNode.js +5 -0
  85. package/dist/cjs/api/types/EntityEdge.d.ts +4 -0
  86. package/dist/cjs/api/types/EntityNode.d.ts +2 -0
  87. package/dist/cjs/api/types/Episode.d.ts +2 -0
  88. package/dist/cjs/api/types/EpisodeData.d.ts +2 -0
  89. package/dist/cjs/api/types/EpisodeMetadataFilter.d.ts +12 -0
  90. package/dist/cjs/api/types/EpisodeMetadataFilter.js +5 -0
  91. package/dist/cjs/api/types/GraphDataType.d.ts +2 -1
  92. package/dist/cjs/api/types/GraphDataType.js +1 -0
  93. package/dist/cjs/api/types/GraphObservationsRequest.d.ts +9 -0
  94. package/dist/cjs/api/types/GraphObservationsRequest.js +5 -0
  95. package/dist/cjs/api/types/GraphSearchResponseMetadata.d.ts +7 -0
  96. package/dist/cjs/api/types/GraphSearchResponseMetadata.js +5 -0
  97. package/dist/cjs/api/types/GraphSearchResults.d.ts +4 -0
  98. package/dist/cjs/api/types/GraphSearchScope.d.ts +4 -1
  99. package/dist/cjs/api/types/GraphSearchScope.js +3 -0
  100. package/dist/cjs/api/types/GraphThreadSummariesRequest.d.ts +9 -0
  101. package/dist/cjs/api/types/GraphThreadSummariesRequest.js +5 -0
  102. package/dist/cjs/api/types/GraphitiMetadataFilterGroupType.d.ts +11 -0
  103. package/dist/cjs/api/types/GraphitiMetadataFilterGroupType.js +10 -0
  104. package/dist/cjs/api/types/GraphitiSagaNode.d.ts +35 -0
  105. package/dist/cjs/api/types/GraphitiSagaNode.js +5 -0
  106. package/dist/cjs/api/types/MetadataFilterGroup.d.ts +12 -0
  107. package/dist/cjs/api/types/MetadataFilterGroup.js +5 -0
  108. package/dist/cjs/api/types/PatternResult.d.ts +17 -3
  109. package/dist/cjs/api/types/PatternSeeds.d.ts +1 -1
  110. package/dist/cjs/api/types/SearchFilters.d.ts +6 -1
  111. package/dist/cjs/api/types/ThreadSummary.d.ts +31 -0
  112. package/dist/cjs/api/types/ThreadSummary.js +5 -0
  113. package/dist/cjs/api/types/index.d.ts +20 -0
  114. package/dist/cjs/api/types/index.js +20 -0
  115. package/dist/cjs/serialization/resources/batch/client/add.d.ts +11 -0
  116. package/dist/cjs/serialization/resources/batch/client/add.js +42 -0
  117. package/dist/cjs/serialization/resources/batch/client/index.d.ts +2 -0
  118. package/dist/cjs/serialization/resources/batch/client/index.js +41 -0
  119. package/dist/cjs/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.ts +13 -0
  120. package/dist/cjs/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.js +44 -0
  121. package/dist/cjs/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.d.ts +14 -0
  122. package/dist/cjs/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.js +45 -0
  123. package/dist/cjs/serialization/resources/batch/client/requests/index.d.ts +2 -0
  124. package/dist/cjs/serialization/resources/batch/client/requests/index.js +7 -0
  125. package/dist/cjs/serialization/resources/batch/index.d.ts +1 -0
  126. package/dist/cjs/serialization/resources/batch/index.js +17 -0
  127. package/dist/cjs/serialization/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
  128. package/dist/cjs/serialization/resources/graph/client/requests/AddDataRequest.js +1 -0
  129. package/dist/cjs/serialization/resources/graph/client/requests/AddTripleRequest.d.ts +1 -0
  130. package/dist/cjs/serialization/resources/graph/client/requests/AddTripleRequest.js +1 -0
  131. package/dist/cjs/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +2 -0
  132. package/dist/cjs/serialization/resources/graph/client/requests/GraphSearchQuery.js +2 -0
  133. package/dist/cjs/serialization/resources/graph/resources/episode/client/index.d.ts +1 -0
  134. package/dist/cjs/serialization/resources/graph/resources/episode/client/index.js +17 -0
  135. package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.ts +12 -0
  136. package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.js +43 -0
  137. package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/index.d.ts +1 -0
  138. package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/index.js +5 -0
  139. package/dist/cjs/serialization/resources/graph/resources/episode/index.d.ts +1 -0
  140. package/dist/cjs/serialization/resources/graph/resources/episode/index.js +17 -0
  141. package/dist/cjs/serialization/resources/graph/resources/index.d.ts +4 -0
  142. package/dist/cjs/serialization/resources/graph/resources/index.js +5 -1
  143. package/dist/cjs/serialization/resources/graph/resources/observation/client/getByGraphId.d.ts +11 -0
  144. package/dist/cjs/serialization/resources/graph/resources/observation/client/getByGraphId.js +42 -0
  145. package/dist/cjs/serialization/resources/graph/resources/observation/client/getByUserId.d.ts +11 -0
  146. package/dist/cjs/serialization/resources/graph/resources/observation/client/getByUserId.js +42 -0
  147. package/dist/cjs/serialization/resources/graph/resources/observation/client/index.d.ts +2 -0
  148. package/dist/cjs/serialization/resources/graph/resources/observation/client/index.js +38 -0
  149. package/dist/cjs/serialization/resources/graph/resources/observation/index.d.ts +1 -0
  150. package/dist/cjs/serialization/resources/graph/resources/observation/index.js +17 -0
  151. package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByGraphId.d.ts +11 -0
  152. package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByGraphId.js +42 -0
  153. package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByUserId.d.ts +11 -0
  154. package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByUserId.js +42 -0
  155. package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/index.d.ts +2 -0
  156. package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/index.js +38 -0
  157. package/dist/cjs/serialization/resources/graph/resources/threadSummary/index.d.ts +1 -0
  158. package/dist/cjs/serialization/resources/graph/resources/threadSummary/index.js +17 -0
  159. package/dist/cjs/serialization/resources/index.d.ts +2 -0
  160. package/dist/cjs/serialization/resources/index.js +3 -1
  161. package/dist/cjs/serialization/types/ApidataBatchAddItemRole.d.ts +10 -0
  162. package/dist/cjs/serialization/types/ApidataBatchAddItemRole.js +41 -0
  163. package/dist/cjs/serialization/types/ApidataBatchAddItemType.d.ts +10 -0
  164. package/dist/cjs/serialization/types/ApidataBatchAddItemType.js +41 -0
  165. package/dist/cjs/serialization/types/BatchAddItem.d.ts +26 -0
  166. package/dist/cjs/serialization/types/BatchAddItem.js +57 -0
  167. package/dist/cjs/serialization/types/BatchItemDetail.d.ts +25 -0
  168. package/dist/cjs/serialization/types/BatchItemDetail.js +56 -0
  169. package/dist/cjs/serialization/types/BatchItemKind.d.ts +10 -0
  170. package/dist/cjs/serialization/types/BatchItemKind.js +41 -0
  171. package/dist/cjs/serialization/types/BatchItemListResponse.d.ts +14 -0
  172. package/dist/cjs/serialization/types/BatchItemListResponse.js +45 -0
  173. package/dist/cjs/serialization/types/BatchItemStatus.d.ts +10 -0
  174. package/dist/cjs/serialization/types/BatchItemStatus.js +41 -0
  175. package/dist/cjs/serialization/types/BatchListResponse.d.ts +14 -0
  176. package/dist/cjs/serialization/types/BatchListResponse.js +45 -0
  177. package/dist/cjs/serialization/types/BatchProgress.d.ts +19 -0
  178. package/dist/cjs/serialization/types/BatchProgress.js +50 -0
  179. package/dist/cjs/serialization/types/BatchStatus.d.ts +10 -0
  180. package/dist/cjs/serialization/types/BatchStatus.js +50 -0
  181. package/dist/cjs/serialization/types/BatchSummary.d.ts +24 -0
  182. package/dist/cjs/serialization/types/BatchSummary.js +55 -0
  183. package/dist/cjs/serialization/types/ComparisonOperator.d.ts +1 -1
  184. package/dist/cjs/serialization/types/ComparisonOperator.js +1 -1
  185. package/dist/cjs/serialization/types/DerivedNode.d.ts +24 -0
  186. package/dist/cjs/serialization/types/DerivedNode.js +55 -0
  187. package/dist/cjs/serialization/types/EntityEdge.d.ts +2 -0
  188. package/dist/cjs/serialization/types/EntityEdge.js +2 -0
  189. package/dist/cjs/serialization/types/EntityNode.d.ts +1 -0
  190. package/dist/cjs/serialization/types/EntityNode.js +1 -0
  191. package/dist/cjs/serialization/types/Episode.d.ts +1 -0
  192. package/dist/cjs/serialization/types/Episode.js +1 -0
  193. package/dist/cjs/serialization/types/EpisodeData.d.ts +1 -0
  194. package/dist/cjs/serialization/types/EpisodeData.js +1 -0
  195. package/dist/cjs/serialization/types/EpisodeMetadataFilter.d.ts +15 -0
  196. package/dist/cjs/serialization/types/EpisodeMetadataFilter.js +46 -0
  197. package/dist/cjs/serialization/types/GraphDataType.d.ts +1 -1
  198. package/dist/cjs/serialization/types/GraphDataType.js +1 -1
  199. package/dist/cjs/serialization/types/GraphObservationsRequest.d.ts +13 -0
  200. package/dist/cjs/serialization/types/GraphObservationsRequest.js +44 -0
  201. package/dist/cjs/serialization/types/GraphSearchResponseMetadata.d.ts +12 -0
  202. package/dist/cjs/serialization/types/GraphSearchResponseMetadata.js +43 -0
  203. package/dist/cjs/serialization/types/GraphSearchResults.d.ts +7 -0
  204. package/dist/cjs/serialization/types/GraphSearchResults.js +7 -0
  205. package/dist/cjs/serialization/types/GraphSearchScope.d.ts +1 -1
  206. package/dist/cjs/serialization/types/GraphSearchScope.js +1 -1
  207. package/dist/cjs/serialization/types/GraphThreadSummariesRequest.d.ts +13 -0
  208. package/dist/cjs/serialization/types/GraphThreadSummariesRequest.js +44 -0
  209. package/dist/cjs/serialization/types/GraphitiMetadataFilterGroupType.d.ts +10 -0
  210. package/dist/cjs/serialization/types/GraphitiMetadataFilterGroupType.js +41 -0
  211. package/dist/cjs/serialization/types/GraphitiSagaNode.d.ts +21 -0
  212. package/dist/cjs/serialization/types/GraphitiSagaNode.js +52 -0
  213. package/dist/cjs/serialization/types/MetadataFilterGroup.d.ts +16 -0
  214. package/dist/cjs/serialization/types/MetadataFilterGroup.js +48 -0
  215. package/dist/cjs/serialization/types/PatternResult.d.ts +1 -0
  216. package/dist/cjs/serialization/types/PatternResult.js +1 -0
  217. package/dist/cjs/serialization/types/SearchFilters.d.ts +1 -0
  218. package/dist/cjs/serialization/types/SearchFilters.js +2 -0
  219. package/dist/cjs/serialization/types/ThreadSummary.d.ts +17 -0
  220. package/dist/cjs/serialization/types/ThreadSummary.js +48 -0
  221. package/dist/cjs/serialization/types/index.d.ts +20 -0
  222. package/dist/cjs/serialization/types/index.js +20 -0
  223. package/dist/cjs/version.d.ts +1 -1
  224. package/dist/cjs/version.js +1 -1
  225. package/dist/esm/Client.d.mts +3 -0
  226. package/dist/esm/Client.mjs +7 -2
  227. package/dist/esm/api/errors/BadRequestError.d.mts +1 -2
  228. package/dist/esm/api/errors/ConflictError.d.mts +9 -0
  229. package/dist/esm/api/errors/ConflictError.mjs +15 -0
  230. package/dist/esm/api/errors/index.d.mts +2 -1
  231. package/dist/esm/api/errors/index.mjs +2 -1
  232. package/dist/esm/api/resources/batch/client/Client.d.mts +161 -0
  233. package/dist/esm/api/resources/batch/client/Client.mjs +740 -0
  234. package/dist/esm/api/resources/batch/client/index.d.mts +2 -0
  235. package/dist/esm/api/resources/batch/client/index.mjs +1 -0
  236. package/dist/esm/api/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.mts +15 -0
  237. package/dist/esm/api/resources/batch/client/requests/ApidataAddBatchItemsRequest.mjs +4 -0
  238. package/dist/esm/api/resources/batch/client/requests/ApidataCreateBatchRequest.d.mts +18 -0
  239. package/dist/esm/api/resources/batch/client/requests/ApidataCreateBatchRequest.mjs +4 -0
  240. package/dist/esm/api/resources/batch/client/requests/BatchListItemsRequest.d.mts +25 -0
  241. package/dist/esm/api/resources/batch/client/requests/BatchListItemsRequest.mjs +4 -0
  242. package/dist/esm/api/resources/batch/client/requests/BatchListRequest.d.mts +25 -0
  243. package/dist/esm/api/resources/batch/client/requests/BatchListRequest.mjs +4 -0
  244. package/dist/esm/api/resources/batch/client/requests/index.d.mts +4 -0
  245. package/dist/esm/api/resources/batch/client/requests/index.mjs +1 -0
  246. package/dist/esm/api/resources/batch/index.d.mts +1 -0
  247. package/dist/esm/api/resources/batch/index.mjs +1 -0
  248. package/dist/esm/api/resources/context/client/Client.mjs +5 -35
  249. package/dist/esm/api/resources/graph/client/Client.d.mts +24 -1
  250. package/dist/esm/api/resources/graph/client/Client.mjs +109 -102
  251. package/dist/esm/api/resources/graph/client/requests/AddDataRequest.d.mts +2 -0
  252. package/dist/esm/api/resources/graph/client/requests/AddTripleRequest.d.mts +19 -2
  253. package/dist/esm/api/resources/graph/client/requests/GraphListAllRequest.d.mts +5 -0
  254. package/dist/esm/api/resources/graph/client/requests/GraphSearchQuery.d.mts +14 -3
  255. package/dist/esm/api/resources/graph/resources/edge/client/Client.mjs +5 -35
  256. package/dist/esm/api/resources/graph/resources/episode/client/Client.d.mts +21 -0
  257. package/dist/esm/api/resources/graph/resources/episode/client/Client.mjs +104 -30
  258. package/dist/esm/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.mts +15 -0
  259. package/dist/esm/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.mjs +4 -0
  260. package/dist/esm/api/resources/graph/resources/episode/client/requests/index.d.mts +1 -0
  261. package/dist/esm/api/resources/graph/resources/index.d.mts +2 -0
  262. package/dist/esm/api/resources/graph/resources/index.mjs +2 -0
  263. package/dist/esm/api/resources/graph/resources/node/client/Client.mjs +7 -49
  264. package/dist/esm/api/resources/graph/resources/observation/client/Client.d.mts +81 -0
  265. package/dist/esm/api/resources/graph/resources/observation/client/Client.mjs +296 -0
  266. package/dist/esm/api/resources/graph/resources/observation/client/index.d.mts +1 -0
  267. package/dist/esm/api/resources/graph/resources/observation/client/index.mjs +1 -0
  268. package/dist/esm/api/resources/graph/resources/observation/index.d.mts +1 -0
  269. package/dist/esm/api/resources/graph/resources/observation/index.mjs +1 -0
  270. package/dist/esm/api/resources/graph/resources/threadSummary/client/Client.d.mts +66 -0
  271. package/dist/esm/api/resources/graph/resources/threadSummary/client/Client.mjs +212 -0
  272. package/dist/esm/api/resources/graph/resources/threadSummary/client/index.d.mts +1 -0
  273. package/dist/esm/api/resources/graph/resources/threadSummary/client/index.mjs +1 -0
  274. package/dist/esm/api/resources/graph/resources/threadSummary/index.d.mts +1 -0
  275. package/dist/esm/api/resources/graph/resources/threadSummary/index.mjs +1 -0
  276. package/dist/esm/api/resources/index.d.mts +2 -0
  277. package/dist/esm/api/resources/index.mjs +2 -0
  278. package/dist/esm/api/resources/project/client/Client.mjs +1 -7
  279. package/dist/esm/api/resources/thread/client/Client.d.mts +19 -2
  280. package/dist/esm/api/resources/thread/client/Client.mjs +96 -16
  281. package/dist/esm/api/resources/thread/client/requests/ThreadGetRequest.d.mts +1 -1
  282. package/dist/esm/api/resources/user/client/Client.mjs +6 -42
  283. package/dist/esm/api/types/ApidataBatchAddItemRole.d.mts +12 -0
  284. package/dist/esm/api/types/ApidataBatchAddItemRole.mjs +11 -0
  285. package/dist/esm/api/types/ApidataBatchAddItemType.d.mts +8 -0
  286. package/dist/esm/api/types/ApidataBatchAddItemType.mjs +7 -0
  287. package/dist/esm/api/types/BatchAddItem.d.mts +18 -0
  288. package/dist/esm/api/types/BatchAddItem.mjs +4 -0
  289. package/dist/esm/api/types/BatchItemDetail.d.mts +24 -0
  290. package/dist/esm/api/types/BatchItemDetail.mjs +4 -0
  291. package/dist/esm/api/types/BatchItemKind.d.mts +8 -0
  292. package/dist/esm/api/types/BatchItemKind.mjs +7 -0
  293. package/dist/esm/api/types/BatchItemListResponse.d.mts +8 -0
  294. package/dist/esm/api/types/BatchItemListResponse.mjs +4 -0
  295. package/dist/esm/api/types/BatchItemStatus.d.mts +13 -0
  296. package/dist/esm/api/types/BatchItemStatus.mjs +12 -0
  297. package/dist/esm/api/types/BatchListResponse.d.mts +8 -0
  298. package/dist/esm/api/types/BatchListResponse.mjs +4 -0
  299. package/dist/esm/api/types/BatchProgress.d.mts +13 -0
  300. package/dist/esm/api/types/BatchProgress.mjs +4 -0
  301. package/dist/esm/api/types/BatchStatus.d.mts +14 -0
  302. package/dist/esm/api/types/BatchStatus.mjs +13 -0
  303. package/dist/esm/api/types/BatchSummary.d.mts +16 -0
  304. package/dist/esm/api/types/BatchSummary.mjs +4 -0
  305. package/dist/esm/api/types/ComparisonOperator.d.mts +2 -1
  306. package/dist/esm/api/types/ComparisonOperator.mjs +1 -0
  307. package/dist/esm/api/types/DerivedNode.d.mts +44 -0
  308. package/dist/esm/api/types/DerivedNode.mjs +4 -0
  309. package/dist/esm/api/types/EntityEdge.d.mts +4 -0
  310. package/dist/esm/api/types/EntityNode.d.mts +2 -0
  311. package/dist/esm/api/types/Episode.d.mts +2 -0
  312. package/dist/esm/api/types/EpisodeData.d.mts +2 -0
  313. package/dist/esm/api/types/EpisodeMetadataFilter.d.mts +12 -0
  314. package/dist/esm/api/types/EpisodeMetadataFilter.mjs +4 -0
  315. package/dist/esm/api/types/GraphDataType.d.mts +2 -1
  316. package/dist/esm/api/types/GraphDataType.mjs +1 -0
  317. package/dist/esm/api/types/GraphObservationsRequest.d.mts +9 -0
  318. package/dist/esm/api/types/GraphObservationsRequest.mjs +4 -0
  319. package/dist/esm/api/types/GraphSearchResponseMetadata.d.mts +7 -0
  320. package/dist/esm/api/types/GraphSearchResponseMetadata.mjs +4 -0
  321. package/dist/esm/api/types/GraphSearchResults.d.mts +4 -0
  322. package/dist/esm/api/types/GraphSearchScope.d.mts +4 -1
  323. package/dist/esm/api/types/GraphSearchScope.mjs +3 -0
  324. package/dist/esm/api/types/GraphThreadSummariesRequest.d.mts +9 -0
  325. package/dist/esm/api/types/GraphThreadSummariesRequest.mjs +4 -0
  326. package/dist/esm/api/types/GraphitiMetadataFilterGroupType.d.mts +11 -0
  327. package/dist/esm/api/types/GraphitiMetadataFilterGroupType.mjs +7 -0
  328. package/dist/esm/api/types/GraphitiSagaNode.d.mts +35 -0
  329. package/dist/esm/api/types/GraphitiSagaNode.mjs +4 -0
  330. package/dist/esm/api/types/MetadataFilterGroup.d.mts +12 -0
  331. package/dist/esm/api/types/MetadataFilterGroup.mjs +4 -0
  332. package/dist/esm/api/types/PatternResult.d.mts +17 -3
  333. package/dist/esm/api/types/PatternSeeds.d.mts +1 -1
  334. package/dist/esm/api/types/SearchFilters.d.mts +6 -1
  335. package/dist/esm/api/types/ThreadSummary.d.mts +31 -0
  336. package/dist/esm/api/types/ThreadSummary.mjs +4 -0
  337. package/dist/esm/api/types/index.d.mts +20 -0
  338. package/dist/esm/api/types/index.mjs +20 -0
  339. package/dist/esm/serialization/resources/batch/client/add.d.mts +11 -0
  340. package/dist/esm/serialization/resources/batch/client/add.mjs +6 -0
  341. package/dist/esm/serialization/resources/batch/client/index.d.mts +2 -0
  342. package/dist/esm/serialization/resources/batch/client/index.mjs +2 -0
  343. package/dist/esm/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.mts +13 -0
  344. package/dist/esm/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.mjs +8 -0
  345. package/dist/esm/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.d.mts +14 -0
  346. package/dist/esm/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.mjs +9 -0
  347. package/dist/esm/serialization/resources/batch/client/requests/index.d.mts +2 -0
  348. package/dist/esm/serialization/resources/batch/client/requests/index.mjs +2 -0
  349. package/dist/esm/serialization/resources/batch/index.d.mts +1 -0
  350. package/dist/esm/serialization/resources/batch/index.mjs +1 -0
  351. package/dist/esm/serialization/resources/graph/client/requests/AddDataRequest.d.mts +1 -0
  352. package/dist/esm/serialization/resources/graph/client/requests/AddDataRequest.mjs +1 -0
  353. package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.d.mts +1 -0
  354. package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.mjs +1 -0
  355. package/dist/esm/serialization/resources/graph/client/requests/GraphSearchQuery.d.mts +2 -0
  356. package/dist/esm/serialization/resources/graph/client/requests/GraphSearchQuery.mjs +2 -0
  357. package/dist/esm/serialization/resources/graph/resources/episode/client/index.d.mts +1 -0
  358. package/dist/esm/serialization/resources/graph/resources/episode/client/index.mjs +1 -0
  359. package/dist/esm/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.mts +12 -0
  360. package/dist/esm/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.mjs +7 -0
  361. package/dist/esm/serialization/resources/graph/resources/episode/client/requests/index.d.mts +1 -0
  362. package/dist/esm/serialization/resources/graph/resources/episode/client/requests/index.mjs +1 -0
  363. package/dist/esm/serialization/resources/graph/resources/episode/index.d.mts +1 -0
  364. package/dist/esm/serialization/resources/graph/resources/episode/index.mjs +1 -0
  365. package/dist/esm/serialization/resources/graph/resources/index.d.mts +4 -0
  366. package/dist/esm/serialization/resources/graph/resources/index.mjs +4 -0
  367. package/dist/esm/serialization/resources/graph/resources/observation/client/getByGraphId.d.mts +11 -0
  368. package/dist/esm/serialization/resources/graph/resources/observation/client/getByGraphId.mjs +6 -0
  369. package/dist/esm/serialization/resources/graph/resources/observation/client/getByUserId.d.mts +11 -0
  370. package/dist/esm/serialization/resources/graph/resources/observation/client/getByUserId.mjs +6 -0
  371. package/dist/esm/serialization/resources/graph/resources/observation/client/index.d.mts +2 -0
  372. package/dist/esm/serialization/resources/graph/resources/observation/client/index.mjs +2 -0
  373. package/dist/esm/serialization/resources/graph/resources/observation/index.d.mts +1 -0
  374. package/dist/esm/serialization/resources/graph/resources/observation/index.mjs +1 -0
  375. package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByGraphId.d.mts +11 -0
  376. package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByGraphId.mjs +6 -0
  377. package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByUserId.d.mts +11 -0
  378. package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByUserId.mjs +6 -0
  379. package/dist/esm/serialization/resources/graph/resources/threadSummary/client/index.d.mts +2 -0
  380. package/dist/esm/serialization/resources/graph/resources/threadSummary/client/index.mjs +2 -0
  381. package/dist/esm/serialization/resources/graph/resources/threadSummary/index.d.mts +1 -0
  382. package/dist/esm/serialization/resources/graph/resources/threadSummary/index.mjs +1 -0
  383. package/dist/esm/serialization/resources/index.d.mts +2 -0
  384. package/dist/esm/serialization/resources/index.mjs +2 -0
  385. package/dist/esm/serialization/types/ApidataBatchAddItemRole.d.mts +10 -0
  386. package/dist/esm/serialization/types/ApidataBatchAddItemRole.mjs +5 -0
  387. package/dist/esm/serialization/types/ApidataBatchAddItemType.d.mts +10 -0
  388. package/dist/esm/serialization/types/ApidataBatchAddItemType.mjs +5 -0
  389. package/dist/esm/serialization/types/BatchAddItem.d.mts +26 -0
  390. package/dist/esm/serialization/types/BatchAddItem.mjs +21 -0
  391. package/dist/esm/serialization/types/BatchItemDetail.d.mts +25 -0
  392. package/dist/esm/serialization/types/BatchItemDetail.mjs +20 -0
  393. package/dist/esm/serialization/types/BatchItemKind.d.mts +10 -0
  394. package/dist/esm/serialization/types/BatchItemKind.mjs +5 -0
  395. package/dist/esm/serialization/types/BatchItemListResponse.d.mts +14 -0
  396. package/dist/esm/serialization/types/BatchItemListResponse.mjs +9 -0
  397. package/dist/esm/serialization/types/BatchItemStatus.d.mts +10 -0
  398. package/dist/esm/serialization/types/BatchItemStatus.mjs +5 -0
  399. package/dist/esm/serialization/types/BatchListResponse.d.mts +14 -0
  400. package/dist/esm/serialization/types/BatchListResponse.mjs +9 -0
  401. package/dist/esm/serialization/types/BatchProgress.d.mts +19 -0
  402. package/dist/esm/serialization/types/BatchProgress.mjs +14 -0
  403. package/dist/esm/serialization/types/BatchStatus.d.mts +10 -0
  404. package/dist/esm/serialization/types/BatchStatus.mjs +14 -0
  405. package/dist/esm/serialization/types/BatchSummary.d.mts +24 -0
  406. package/dist/esm/serialization/types/BatchSummary.mjs +19 -0
  407. package/dist/esm/serialization/types/ComparisonOperator.d.mts +1 -1
  408. package/dist/esm/serialization/types/ComparisonOperator.mjs +1 -1
  409. package/dist/esm/serialization/types/DerivedNode.d.mts +24 -0
  410. package/dist/esm/serialization/types/DerivedNode.mjs +19 -0
  411. package/dist/esm/serialization/types/EntityEdge.d.mts +2 -0
  412. package/dist/esm/serialization/types/EntityEdge.mjs +2 -0
  413. package/dist/esm/serialization/types/EntityNode.d.mts +1 -0
  414. package/dist/esm/serialization/types/EntityNode.mjs +1 -0
  415. package/dist/esm/serialization/types/Episode.d.mts +1 -0
  416. package/dist/esm/serialization/types/Episode.mjs +1 -0
  417. package/dist/esm/serialization/types/EpisodeData.d.mts +1 -0
  418. package/dist/esm/serialization/types/EpisodeData.mjs +1 -0
  419. package/dist/esm/serialization/types/EpisodeMetadataFilter.d.mts +15 -0
  420. package/dist/esm/serialization/types/EpisodeMetadataFilter.mjs +10 -0
  421. package/dist/esm/serialization/types/GraphDataType.d.mts +1 -1
  422. package/dist/esm/serialization/types/GraphDataType.mjs +1 -1
  423. package/dist/esm/serialization/types/GraphObservationsRequest.d.mts +13 -0
  424. package/dist/esm/serialization/types/GraphObservationsRequest.mjs +8 -0
  425. package/dist/esm/serialization/types/GraphSearchResponseMetadata.d.mts +12 -0
  426. package/dist/esm/serialization/types/GraphSearchResponseMetadata.mjs +7 -0
  427. package/dist/esm/serialization/types/GraphSearchResults.d.mts +7 -0
  428. package/dist/esm/serialization/types/GraphSearchResults.mjs +7 -0
  429. package/dist/esm/serialization/types/GraphSearchScope.d.mts +1 -1
  430. package/dist/esm/serialization/types/GraphSearchScope.mjs +1 -1
  431. package/dist/esm/serialization/types/GraphThreadSummariesRequest.d.mts +13 -0
  432. package/dist/esm/serialization/types/GraphThreadSummariesRequest.mjs +8 -0
  433. package/dist/esm/serialization/types/GraphitiMetadataFilterGroupType.d.mts +10 -0
  434. package/dist/esm/serialization/types/GraphitiMetadataFilterGroupType.mjs +5 -0
  435. package/dist/esm/serialization/types/GraphitiSagaNode.d.mts +21 -0
  436. package/dist/esm/serialization/types/GraphitiSagaNode.mjs +16 -0
  437. package/dist/esm/serialization/types/MetadataFilterGroup.d.mts +16 -0
  438. package/dist/esm/serialization/types/MetadataFilterGroup.mjs +12 -0
  439. package/dist/esm/serialization/types/PatternResult.d.mts +1 -0
  440. package/dist/esm/serialization/types/PatternResult.mjs +1 -0
  441. package/dist/esm/serialization/types/SearchFilters.d.mts +1 -0
  442. package/dist/esm/serialization/types/SearchFilters.mjs +2 -0
  443. package/dist/esm/serialization/types/ThreadSummary.d.mts +17 -0
  444. package/dist/esm/serialization/types/ThreadSummary.mjs +12 -0
  445. package/dist/esm/serialization/types/index.d.mts +20 -0
  446. package/dist/esm/serialization/types/index.mjs +20 -0
  447. package/dist/esm/version.d.mts +1 -1
  448. package/dist/esm/version.mjs +1 -1
  449. package/package.json +16 -9
  450. package/reference.md +1481 -451
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * items: [{
9
+ * type: "graph_episode"
10
+ * }]
11
+ * }
12
+ */
13
+ export interface ApidataAddBatchItemsRequest {
14
+ items: Zep.BatchAddItem[];
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface ApidataCreateBatchRequest {
10
+ /**
11
+ * Optional list of message role types to skip during graph ingestion for
12
+ * thread_message items in this batch. The messages are still stored and
13
+ * retained as context, but no graph extraction is performed for them.
14
+ * Has no effect on graph_episode items.
15
+ */
16
+ ignoreRoles?: Zep.RoleType[];
17
+ metadata?: Record<string, unknown>;
18
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * limit: 1,
8
+ * cursor: 1,
9
+ * status: "status"
10
+ * }
11
+ */
12
+ export interface BatchListItemsRequest {
13
+ /**
14
+ * Maximum number of batch items to return.
15
+ */
16
+ limit?: number;
17
+ /**
18
+ * Pagination cursor from a previous response.
19
+ */
20
+ cursor?: number;
21
+ /**
22
+ * Batch item status filter.
23
+ */
24
+ status?: string;
25
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * limit: 1,
8
+ * cursor: 1,
9
+ * status: "status"
10
+ * }
11
+ */
12
+ export interface BatchListRequest {
13
+ /**
14
+ * Maximum number of batches to return.
15
+ */
16
+ limit?: number;
17
+ /**
18
+ * Pagination cursor from a previous response.
19
+ */
20
+ cursor?: number;
21
+ /**
22
+ * Batch status filter.
23
+ */
24
+ status?: string;
25
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,4 @@
1
+ export { type BatchListRequest } from "./BatchListRequest.mjs";
2
+ export { type ApidataCreateBatchRequest } from "./ApidataCreateBatchRequest.mjs";
3
+ export { type BatchListItemsRequest } from "./BatchListItemsRequest.mjs";
4
+ export { type ApidataAddBatchItemsRequest } from "./ApidataAddBatchItemsRequest.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -60,13 +60,7 @@ export class Context {
60
60
  if (_response.error.reason === "status-code") {
61
61
  switch (_response.error.statusCode) {
62
62
  case 400:
63
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
64
- unrecognizedObjectKeys: "passthrough",
65
- allowUnrecognizedUnionMembers: true,
66
- allowUnrecognizedEnumValues: true,
67
- skipValidation: true,
68
- breadcrumbsPrefix: ["response"],
69
- }), _response.rawResponse);
63
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
70
64
  case 500:
71
65
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
72
66
  unrecognizedObjectKeys: "passthrough",
@@ -150,13 +144,7 @@ export class Context {
150
144
  if (_response.error.reason === "status-code") {
151
145
  switch (_response.error.statusCode) {
152
146
  case 400:
153
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
154
- unrecognizedObjectKeys: "passthrough",
155
- allowUnrecognizedUnionMembers: true,
156
- allowUnrecognizedEnumValues: true,
157
- skipValidation: true,
158
- breadcrumbsPrefix: ["response"],
159
- }), _response.rawResponse);
147
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
160
148
  case 500:
161
149
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
162
150
  unrecognizedObjectKeys: "passthrough",
@@ -232,13 +220,7 @@ export class Context {
232
220
  if (_response.error.reason === "status-code") {
233
221
  switch (_response.error.statusCode) {
234
222
  case 400:
235
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
236
- unrecognizedObjectKeys: "passthrough",
237
- allowUnrecognizedUnionMembers: true,
238
- allowUnrecognizedEnumValues: true,
239
- skipValidation: true,
240
- breadcrumbsPrefix: ["response"],
241
- }), _response.rawResponse);
223
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
242
224
  case 404:
243
225
  throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
244
226
  unrecognizedObjectKeys: "passthrough",
@@ -331,13 +313,7 @@ export class Context {
331
313
  if (_response.error.reason === "status-code") {
332
314
  switch (_response.error.statusCode) {
333
315
  case 400:
334
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
335
- unrecognizedObjectKeys: "passthrough",
336
- allowUnrecognizedUnionMembers: true,
337
- allowUnrecognizedEnumValues: true,
338
- skipValidation: true,
339
- breadcrumbsPrefix: ["response"],
340
- }), _response.rawResponse);
316
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
341
317
  case 404:
342
318
  throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
343
319
  unrecognizedObjectKeys: "passthrough",
@@ -421,13 +397,7 @@ export class Context {
421
397
  if (_response.error.reason === "status-code") {
422
398
  switch (_response.error.statusCode) {
423
399
  case 400:
424
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
425
- unrecognizedObjectKeys: "passthrough",
426
- allowUnrecognizedUnionMembers: true,
427
- allowUnrecognizedEnumValues: true,
428
- skipValidation: true,
429
- breadcrumbsPrefix: ["response"],
430
- }), _response.rawResponse);
400
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
431
401
  case 404:
432
402
  throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
433
403
  unrecognizedObjectKeys: "passthrough",
@@ -7,6 +7,8 @@ import * as Zep from "../../../index.mjs";
7
7
  import { Edge } from "../resources/edge/client/Client.mjs";
8
8
  import { Episode } from "../resources/episode/client/Client.mjs";
9
9
  import { Node } from "../resources/node/client/Client.mjs";
10
+ import { Observation } from "../resources/observation/client/Client.mjs";
11
+ import { ThreadSummary } from "../resources/threadSummary/client/Client.mjs";
10
12
  export declare namespace Graph {
11
13
  interface Options {
12
14
  environment?: core.Supplier<environments.ZepEnvironment | string>;
@@ -33,10 +35,14 @@ export declare class Graph {
33
35
  protected _edge: Edge | undefined;
34
36
  protected _episode: Episode | undefined;
35
37
  protected _node: Node | undefined;
38
+ protected _observation: Observation | undefined;
39
+ protected _threadSummary: ThreadSummary | undefined;
36
40
  constructor(_options?: Graph.Options);
37
41
  get edge(): Edge;
38
42
  get episode(): Episode;
39
43
  get node(): Node;
44
+ get observation(): Observation;
45
+ get threadSummary(): ThreadSummary;
40
46
  /**
41
47
  * Lists all custom instructions for a project, user, or graph.
42
48
  *
@@ -141,7 +147,9 @@ export declare class Graph {
141
147
  add(request: Zep.AddDataRequest, requestOptions?: Graph.RequestOptions): core.HttpResponsePromise<Zep.Episode>;
142
148
  private __add;
143
149
  /**
144
- * Add data to the graph in batch mode. Episodes are processed sequentially in the order provided.
150
+ * Deprecated. Use the [Batch API](/adding-batch-data) (`client.batch.*`) instead.
151
+ *
152
+ * Adds data to the graph in batch mode, processing episodes concurrently.
145
153
  *
146
154
  * @param {Zep.AddDataBatchRequest} request
147
155
  * @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
@@ -219,6 +227,7 @@ export declare class Graph {
219
227
  * await client.graph.listAll({
220
228
  * pageNumber: 1,
221
229
  * pageSize: 1,
230
+ * search: "search",
222
231
  * orderBy: "order_by",
223
232
  * asc: true
224
233
  * })
@@ -305,6 +314,20 @@ export declare class Graph {
305
314
  */
306
315
  update(graphId: string, request?: Zep.UpdateGraphRequest, requestOptions?: Graph.RequestOptions): core.HttpResponsePromise<Zep.Graph>;
307
316
  private __update;
317
+ /**
318
+ * Hints Zep to warm a graph for low-latency search
319
+ *
320
+ * @param {string} graphId - The graph_id of the graph to warm.
321
+ * @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
322
+ *
323
+ * @throws {@link Zep.NotFoundError}
324
+ * @throws {@link Zep.InternalServerError}
325
+ *
326
+ * @example
327
+ * await client.graph.warm("graphId")
328
+ */
329
+ warm(graphId: string, requestOptions?: Graph.RequestOptions): core.HttpResponsePromise<Zep.SuccessResponse>;
330
+ private __warm;
308
331
  protected _getCustomAuthorizationHeaders(): Promise<{
309
332
  Authorization: string;
310
333
  }>;
@@ -19,6 +19,8 @@ import * as errors from "../../../../errors/index.mjs";
19
19
  import { Edge } from "../resources/edge/client/Client.mjs";
20
20
  import { Episode } from "../resources/episode/client/Client.mjs";
21
21
  import { Node } from "../resources/node/client/Client.mjs";
22
+ import { Observation } from "../resources/observation/client/Client.mjs";
23
+ import { ThreadSummary } from "../resources/threadSummary/client/Client.mjs";
22
24
  export class Graph {
23
25
  constructor(_options = {}) {
24
26
  this._options = _options;
@@ -35,6 +37,14 @@ export class Graph {
35
37
  var _a;
36
38
  return ((_a = this._node) !== null && _a !== void 0 ? _a : (this._node = new Node(this._options)));
37
39
  }
40
+ get observation() {
41
+ var _a;
42
+ return ((_a = this._observation) !== null && _a !== void 0 ? _a : (this._observation = new Observation(this._options)));
43
+ }
44
+ get threadSummary() {
45
+ var _a;
46
+ return ((_a = this._threadSummary) !== null && _a !== void 0 ? _a : (this._threadSummary = new ThreadSummary(this._options)));
47
+ }
38
48
  /**
39
49
  * Lists all custom instructions for a project, user, or graph.
40
50
  *
@@ -89,13 +99,7 @@ export class Graph {
89
99
  if (_response.error.reason === "status-code") {
90
100
  switch (_response.error.statusCode) {
91
101
  case 400:
92
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
93
- unrecognizedObjectKeys: "passthrough",
94
- allowUnrecognizedUnionMembers: true,
95
- allowUnrecognizedEnumValues: true,
96
- skipValidation: true,
97
- breadcrumbsPrefix: ["response"],
98
- }), _response.rawResponse);
102
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
99
103
  case 404:
100
104
  throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
101
105
  unrecognizedObjectKeys: "passthrough",
@@ -190,13 +194,7 @@ export class Graph {
190
194
  if (_response.error.reason === "status-code") {
191
195
  switch (_response.error.statusCode) {
192
196
  case 400:
193
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
194
- unrecognizedObjectKeys: "passthrough",
195
- allowUnrecognizedUnionMembers: true,
196
- allowUnrecognizedEnumValues: true,
197
- skipValidation: true,
198
- breadcrumbsPrefix: ["response"],
199
- }), _response.rawResponse);
197
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
200
198
  case 404:
201
199
  throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
202
200
  unrecognizedObjectKeys: "passthrough",
@@ -286,13 +284,7 @@ export class Graph {
286
284
  if (_response.error.reason === "status-code") {
287
285
  switch (_response.error.statusCode) {
288
286
  case 400:
289
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
290
- unrecognizedObjectKeys: "passthrough",
291
- allowUnrecognizedUnionMembers: true,
292
- allowUnrecognizedEnumValues: true,
293
- skipValidation: true,
294
- breadcrumbsPrefix: ["response"],
295
- }), _response.rawResponse);
287
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
296
288
  case 404:
297
289
  throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
298
290
  unrecognizedObjectKeys: "passthrough",
@@ -388,13 +380,7 @@ export class Graph {
388
380
  if (_response.error.reason === "status-code") {
389
381
  switch (_response.error.statusCode) {
390
382
  case 400:
391
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
392
- unrecognizedObjectKeys: "passthrough",
393
- allowUnrecognizedUnionMembers: true,
394
- allowUnrecognizedEnumValues: true,
395
- skipValidation: true,
396
- breadcrumbsPrefix: ["response"],
397
- }), _response.rawResponse);
383
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
398
384
  case 404:
399
385
  throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
400
386
  unrecognizedObjectKeys: "passthrough",
@@ -484,13 +470,7 @@ export class Graph {
484
470
  if (_response.error.reason === "status-code") {
485
471
  switch (_response.error.statusCode) {
486
472
  case 400:
487
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
488
- unrecognizedObjectKeys: "passthrough",
489
- allowUnrecognizedUnionMembers: true,
490
- allowUnrecognizedEnumValues: true,
491
- skipValidation: true,
492
- breadcrumbsPrefix: ["response"],
493
- }), _response.rawResponse);
473
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
494
474
  case 404:
495
475
  throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
496
476
  unrecognizedObjectKeys: "passthrough",
@@ -582,13 +562,7 @@ export class Graph {
582
562
  if (_response.error.reason === "status-code") {
583
563
  switch (_response.error.statusCode) {
584
564
  case 400:
585
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
586
- unrecognizedObjectKeys: "passthrough",
587
- allowUnrecognizedUnionMembers: true,
588
- allowUnrecognizedEnumValues: true,
589
- skipValidation: true,
590
- breadcrumbsPrefix: ["response"],
591
- }), _response.rawResponse);
565
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
592
566
  case 500:
593
567
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
594
568
  unrecognizedObjectKeys: "passthrough",
@@ -623,7 +597,9 @@ export class Graph {
623
597
  });
624
598
  }
625
599
  /**
626
- * Add data to the graph in batch mode. Episodes are processed sequentially in the order provided.
600
+ * Deprecated. Use the [Batch API](/adding-batch-data) (`client.batch.*`) instead.
601
+ *
602
+ * Adds data to the graph in batch mode, processing episodes concurrently.
627
603
  *
628
604
  * @param {Zep.AddDataBatchRequest} request
629
605
  * @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
@@ -674,13 +650,7 @@ export class Graph {
674
650
  if (_response.error.reason === "status-code") {
675
651
  switch (_response.error.statusCode) {
676
652
  case 400:
677
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
678
- unrecognizedObjectKeys: "passthrough",
679
- allowUnrecognizedUnionMembers: true,
680
- allowUnrecognizedEnumValues: true,
681
- skipValidation: true,
682
- breadcrumbsPrefix: ["response"],
683
- }), _response.rawResponse);
653
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
684
654
  case 500:
685
655
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
686
656
  unrecognizedObjectKeys: "passthrough",
@@ -764,13 +734,7 @@ export class Graph {
764
734
  if (_response.error.reason === "status-code") {
765
735
  switch (_response.error.statusCode) {
766
736
  case 400:
767
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
768
- unrecognizedObjectKeys: "passthrough",
769
- allowUnrecognizedUnionMembers: true,
770
- allowUnrecognizedEnumValues: true,
771
- skipValidation: true,
772
- breadcrumbsPrefix: ["response"],
773
- }), _response.rawResponse);
737
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
774
738
  case 500:
775
739
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
776
740
  unrecognizedObjectKeys: "passthrough",
@@ -851,13 +815,7 @@ export class Graph {
851
815
  if (_response.error.reason === "status-code") {
852
816
  switch (_response.error.statusCode) {
853
817
  case 400:
854
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
855
- unrecognizedObjectKeys: "passthrough",
856
- allowUnrecognizedUnionMembers: true,
857
- allowUnrecognizedEnumValues: true,
858
- skipValidation: true,
859
- breadcrumbsPrefix: ["response"],
860
- }), _response.rawResponse);
818
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
861
819
  case 500:
862
820
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
863
821
  unrecognizedObjectKeys: "passthrough",
@@ -940,13 +898,7 @@ export class Graph {
940
898
  if (_response.error.reason === "status-code") {
941
899
  switch (_response.error.statusCode) {
942
900
  case 400:
943
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
944
- unrecognizedObjectKeys: "passthrough",
945
- allowUnrecognizedUnionMembers: true,
946
- allowUnrecognizedEnumValues: true,
947
- skipValidation: true,
948
- breadcrumbsPrefix: ["response"],
949
- }), _response.rawResponse);
901
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
950
902
  case 500:
951
903
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
952
904
  unrecognizedObjectKeys: "passthrough",
@@ -993,6 +945,7 @@ export class Graph {
993
945
  * await client.graph.listAll({
994
946
  * pageNumber: 1,
995
947
  * pageSize: 1,
948
+ * search: "search",
996
949
  * orderBy: "order_by",
997
950
  * asc: true
998
951
  * })
@@ -1003,7 +956,7 @@ export class Graph {
1003
956
  __listAll() {
1004
957
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1005
958
  var _a, _b, _c, _d;
1006
- const { pageNumber, pageSize, orderBy, asc } = request;
959
+ const { pageNumber, pageSize, search, orderBy, asc } = request;
1007
960
  const _queryParams = {};
1008
961
  if (pageNumber != null) {
1009
962
  _queryParams["pageNumber"] = pageNumber.toString();
@@ -1011,6 +964,9 @@ export class Graph {
1011
964
  if (pageSize != null) {
1012
965
  _queryParams["pageSize"] = pageSize.toString();
1013
966
  }
967
+ if (search != null) {
968
+ _queryParams["search"] = search;
969
+ }
1014
970
  if (orderBy != null) {
1015
971
  _queryParams["order_by"] = orderBy;
1016
972
  }
@@ -1041,13 +997,7 @@ export class Graph {
1041
997
  if (_response.error.reason === "status-code") {
1042
998
  switch (_response.error.statusCode) {
1043
999
  case 400:
1044
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1045
- unrecognizedObjectKeys: "passthrough",
1046
- allowUnrecognizedUnionMembers: true,
1047
- allowUnrecognizedEnumValues: true,
1048
- skipValidation: true,
1049
- breadcrumbsPrefix: ["response"],
1050
- }), _response.rawResponse);
1000
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
1051
1001
  case 500:
1052
1002
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1053
1003
  unrecognizedObjectKeys: "passthrough",
@@ -1133,13 +1083,7 @@ export class Graph {
1133
1083
  if (_response.error.reason === "status-code") {
1134
1084
  switch (_response.error.statusCode) {
1135
1085
  case 400:
1136
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1137
- unrecognizedObjectKeys: "passthrough",
1138
- allowUnrecognizedUnionMembers: true,
1139
- allowUnrecognizedEnumValues: true,
1140
- skipValidation: true,
1141
- breadcrumbsPrefix: ["response"],
1142
- }), _response.rawResponse);
1086
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
1143
1087
  case 403:
1144
1088
  throw new Zep.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
1145
1089
  unrecognizedObjectKeys: "passthrough",
@@ -1238,13 +1182,7 @@ export class Graph {
1238
1182
  if (_response.error.reason === "status-code") {
1239
1183
  switch (_response.error.statusCode) {
1240
1184
  case 400:
1241
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1242
- unrecognizedObjectKeys: "passthrough",
1243
- allowUnrecognizedUnionMembers: true,
1244
- allowUnrecognizedEnumValues: true,
1245
- skipValidation: true,
1246
- breadcrumbsPrefix: ["response"],
1247
- }), _response.rawResponse);
1185
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
1248
1186
  case 500:
1249
1187
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1250
1188
  unrecognizedObjectKeys: "passthrough",
@@ -1401,13 +1339,7 @@ export class Graph {
1401
1339
  if (_response.error.reason === "status-code") {
1402
1340
  switch (_response.error.statusCode) {
1403
1341
  case 400:
1404
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1405
- unrecognizedObjectKeys: "passthrough",
1406
- allowUnrecognizedUnionMembers: true,
1407
- allowUnrecognizedEnumValues: true,
1408
- skipValidation: true,
1409
- breadcrumbsPrefix: ["response"],
1410
- }), _response.rawResponse);
1342
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
1411
1343
  case 404:
1412
1344
  throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
1413
1345
  unrecognizedObjectKeys: "passthrough",
@@ -1498,13 +1430,88 @@ export class Graph {
1498
1430
  if (_response.error.reason === "status-code") {
1499
1431
  switch (_response.error.statusCode) {
1500
1432
  case 400:
1501
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
1433
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
1434
+ case 404:
1435
+ throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
1436
+ unrecognizedObjectKeys: "passthrough",
1437
+ allowUnrecognizedUnionMembers: true,
1438
+ allowUnrecognizedEnumValues: true,
1439
+ skipValidation: true,
1440
+ breadcrumbsPrefix: ["response"],
1441
+ }), _response.rawResponse);
1442
+ case 500:
1443
+ throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
1502
1444
  unrecognizedObjectKeys: "passthrough",
1503
1445
  allowUnrecognizedUnionMembers: true,
1504
1446
  allowUnrecognizedEnumValues: true,
1505
1447
  skipValidation: true,
1506
1448
  breadcrumbsPrefix: ["response"],
1507
1449
  }), _response.rawResponse);
1450
+ default:
1451
+ throw new errors.ZepError({
1452
+ statusCode: _response.error.statusCode,
1453
+ body: _response.error.body,
1454
+ rawResponse: _response.rawResponse,
1455
+ });
1456
+ }
1457
+ }
1458
+ switch (_response.error.reason) {
1459
+ case "non-json":
1460
+ throw new errors.ZepError({
1461
+ statusCode: _response.error.statusCode,
1462
+ body: _response.error.rawBody,
1463
+ rawResponse: _response.rawResponse,
1464
+ });
1465
+ case "timeout":
1466
+ throw new errors.ZepTimeoutError("Timeout exceeded when calling PATCH /graph/{graphId}.");
1467
+ case "unknown":
1468
+ throw new errors.ZepError({
1469
+ message: _response.error.errorMessage,
1470
+ rawResponse: _response.rawResponse,
1471
+ });
1472
+ }
1473
+ });
1474
+ }
1475
+ /**
1476
+ * Hints Zep to warm a graph for low-latency search
1477
+ *
1478
+ * @param {string} graphId - The graph_id of the graph to warm.
1479
+ * @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
1480
+ *
1481
+ * @throws {@link Zep.NotFoundError}
1482
+ * @throws {@link Zep.InternalServerError}
1483
+ *
1484
+ * @example
1485
+ * await client.graph.warm("graphId")
1486
+ */
1487
+ warm(graphId, requestOptions) {
1488
+ return core.HttpResponsePromise.fromPromise(this.__warm(graphId, requestOptions));
1489
+ }
1490
+ __warm(graphId, requestOptions) {
1491
+ return __awaiter(this, void 0, void 0, function* () {
1492
+ var _a, _b, _c, _d;
1493
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1494
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ZepEnvironment.Default, `graph/${encodeURIComponent(graphId)}/warm`),
1495
+ method: "GET",
1496
+ headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1497
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1498
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1499
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1500
+ });
1501
+ if (_response.ok) {
1502
+ return {
1503
+ data: serializers.SuccessResponse.parseOrThrow(_response.body, {
1504
+ unrecognizedObjectKeys: "passthrough",
1505
+ allowUnrecognizedUnionMembers: true,
1506
+ allowUnrecognizedEnumValues: true,
1507
+ skipValidation: true,
1508
+ breadcrumbsPrefix: ["response"],
1509
+ }),
1510
+ rawResponse: _response.rawResponse,
1511
+ };
1512
+ }
1513
+ if (_response.error.reason === "status-code") {
1514
+ switch (_response.error.statusCode) {
1508
1515
  case 404:
1509
1516
  throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
1510
1517
  unrecognizedObjectKeys: "passthrough",
@@ -1537,7 +1544,7 @@ export class Graph {
1537
1544
  rawResponse: _response.rawResponse,
1538
1545
  });
1539
1546
  case "timeout":
1540
- throw new errors.ZepTimeoutError("Timeout exceeded when calling PATCH /graph/{graphId}.");
1547
+ throw new errors.ZepTimeoutError("Timeout exceeded when calling GET /graph/{graphId}/warm.");
1541
1548
  case "unknown":
1542
1549
  throw new errors.ZepError({
1543
1550
  message: _response.error.errorMessage,
@@ -14,6 +14,8 @@ export interface AddDataRequest {
14
14
  data: string;
15
15
  /** graph_id is the ID of the graph to which the data will be added. If adding to the user graph, please use user_id field instead. */
16
16
  graphId?: string;
17
+ /** Optional metadata key-value pairs. Max 10 keys. Values must be strings, numbers, booleans, or arrays of scalars. */
18
+ metadata?: Record<string, unknown>;
17
19
  sourceDescription?: string;
18
20
  type: Zep.GraphDataType;
19
21
  /** User ID is the ID of the user to which the data will be added. If not adding to a user graph, please use graph_id field instead. */