@getzep/zep-cloud 3.17.0 → 3.22.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 (463) 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/ApidataCreateBatchRequest.d.ts +10 -0
  14. package/dist/cjs/api/resources/batch/client/requests/ApidataCreateBatchRequest.js +5 -0
  15. package/dist/cjs/api/resources/batch/client/requests/BatchListItemsRequest.d.ts +25 -0
  16. package/dist/cjs/api/resources/batch/client/requests/BatchListItemsRequest.js +5 -0
  17. package/dist/cjs/api/resources/batch/client/requests/BatchListRequest.d.ts +25 -0
  18. package/dist/cjs/api/resources/batch/client/requests/BatchListRequest.js +5 -0
  19. package/dist/cjs/api/resources/batch/client/requests/index.d.ts +4 -0
  20. package/dist/cjs/api/resources/batch/client/requests/index.js +2 -0
  21. package/dist/cjs/api/resources/batch/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/batch/index.js +17 -0
  23. package/dist/cjs/api/resources/context/client/Client.js +5 -35
  24. package/dist/cjs/api/resources/graph/client/Client.d.ts +13 -0
  25. package/dist/cjs/api/resources/graph/client/Client.js +44 -82
  26. package/dist/cjs/api/resources/graph/client/requests/AddDataRequest.d.ts +2 -0
  27. package/dist/cjs/api/resources/graph/client/requests/AddTripleRequest.d.ts +5 -0
  28. package/dist/cjs/api/resources/graph/client/requests/DetectPatternsRequest.d.ts +12 -4
  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 -2
  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 +15 -0
  56. package/dist/cjs/api/resources/thread/client/Client.js +92 -14
  57. package/dist/cjs/api/resources/user/client/Client.d.ts +3 -0
  58. package/dist/cjs/api/resources/user/client/Client.js +15 -24
  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 +18 -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 +12 -0
  72. package/dist/cjs/api/types/BatchItemStatus.js +14 -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 +12 -0
  76. package/dist/cjs/api/types/BatchProgress.js +5 -0
  77. package/dist/cjs/api/types/BatchStatus.d.ts +13 -0
  78. package/dist/cjs/api/types/BatchStatus.js +15 -0
  79. package/dist/cjs/api/types/BatchSummary.d.ts +15 -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/DateFilter.d.ts +1 -1
  84. package/dist/cjs/api/types/DerivedNode.d.ts +28 -0
  85. package/dist/cjs/api/types/DerivedNode.js +5 -0
  86. package/dist/cjs/api/types/DetectPatternsResponse.d.ts +2 -0
  87. package/dist/cjs/api/types/EntityEdge.d.ts +4 -0
  88. package/dist/cjs/api/types/EntityNode.d.ts +2 -0
  89. package/dist/cjs/api/types/Episode.d.ts +2 -0
  90. package/dist/cjs/api/types/EpisodeData.d.ts +2 -0
  91. package/dist/cjs/api/types/EpisodeMetadataFilter.d.ts +12 -0
  92. package/dist/cjs/api/types/EpisodeMetadataFilter.js +5 -0
  93. package/dist/cjs/api/types/GraphDataType.d.ts +2 -1
  94. package/dist/cjs/api/types/GraphDataType.js +1 -0
  95. package/dist/cjs/api/types/GraphObservationsRequest.d.ts +9 -0
  96. package/dist/cjs/api/types/GraphObservationsRequest.js +5 -0
  97. package/dist/cjs/api/types/GraphSearchResults.d.ts +3 -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 +26 -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 +22 -5
  109. package/dist/cjs/api/types/PatternSeeds.d.ts +1 -1
  110. package/dist/cjs/api/types/PropertyFilter.d.ts +1 -1
  111. package/dist/cjs/api/types/SearchFilters.d.ts +14 -9
  112. package/dist/cjs/api/types/ThreadSummary.d.ts +20 -0
  113. package/dist/cjs/api/types/ThreadSummary.js +5 -0
  114. package/dist/cjs/api/types/index.d.ts +19 -1
  115. package/dist/cjs/api/types/index.js +19 -1
  116. package/dist/cjs/serialization/resources/batch/client/add.d.ts +11 -0
  117. package/dist/cjs/serialization/resources/batch/client/add.js +42 -0
  118. package/dist/cjs/serialization/resources/batch/client/index.d.ts +2 -0
  119. package/dist/cjs/serialization/resources/batch/client/index.js +41 -0
  120. package/dist/cjs/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.ts +13 -0
  121. package/dist/cjs/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.js +44 -0
  122. package/dist/cjs/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.d.ts +12 -0
  123. package/dist/cjs/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.js +43 -0
  124. package/dist/cjs/serialization/resources/batch/client/requests/index.d.ts +2 -0
  125. package/dist/cjs/serialization/resources/batch/client/requests/index.js +7 -0
  126. package/dist/cjs/serialization/resources/batch/index.d.ts +1 -0
  127. package/dist/cjs/serialization/resources/batch/index.js +17 -0
  128. package/dist/cjs/serialization/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
  129. package/dist/cjs/serialization/resources/graph/client/requests/AddDataRequest.js +1 -0
  130. package/dist/cjs/serialization/resources/graph/client/requests/AddTripleRequest.d.ts +1 -0
  131. package/dist/cjs/serialization/resources/graph/client/requests/AddTripleRequest.js +1 -0
  132. package/dist/cjs/serialization/resources/graph/client/requests/DetectPatternsRequest.d.ts +3 -1
  133. package/dist/cjs/serialization/resources/graph/client/requests/DetectPatternsRequest.js +3 -1
  134. package/dist/cjs/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +2 -0
  135. package/dist/cjs/serialization/resources/graph/client/requests/GraphSearchQuery.js +2 -0
  136. package/dist/cjs/serialization/resources/graph/resources/episode/client/index.d.ts +1 -0
  137. package/dist/cjs/serialization/resources/graph/resources/episode/client/index.js +17 -0
  138. package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.ts +12 -0
  139. package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.js +43 -0
  140. package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/index.d.ts +1 -0
  141. package/dist/cjs/serialization/resources/graph/resources/episode/client/requests/index.js +5 -0
  142. package/dist/cjs/serialization/resources/graph/resources/episode/index.d.ts +1 -0
  143. package/dist/cjs/serialization/resources/graph/resources/episode/index.js +17 -0
  144. package/dist/cjs/serialization/resources/graph/resources/index.d.ts +4 -0
  145. package/dist/cjs/serialization/resources/graph/resources/index.js +5 -1
  146. package/dist/cjs/serialization/resources/graph/resources/observation/client/getByGraphId.d.ts +11 -0
  147. package/dist/cjs/serialization/resources/graph/resources/observation/client/getByGraphId.js +42 -0
  148. package/dist/cjs/serialization/resources/graph/resources/observation/client/getByUserId.d.ts +11 -0
  149. package/dist/cjs/serialization/resources/graph/resources/observation/client/getByUserId.js +42 -0
  150. package/dist/cjs/serialization/resources/graph/resources/observation/client/index.d.ts +2 -0
  151. package/dist/cjs/serialization/resources/graph/resources/observation/client/index.js +38 -0
  152. package/dist/cjs/serialization/resources/graph/resources/observation/index.d.ts +1 -0
  153. package/dist/cjs/serialization/resources/graph/resources/observation/index.js +17 -0
  154. package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByGraphId.d.ts +11 -0
  155. package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByGraphId.js +42 -0
  156. package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByUserId.d.ts +11 -0
  157. package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/getByUserId.js +42 -0
  158. package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/index.d.ts +2 -0
  159. package/dist/cjs/serialization/resources/graph/resources/threadSummary/client/index.js +38 -0
  160. package/dist/cjs/serialization/resources/graph/resources/threadSummary/index.d.ts +1 -0
  161. package/dist/cjs/serialization/resources/graph/resources/threadSummary/index.js +17 -0
  162. package/dist/cjs/serialization/resources/index.d.ts +2 -0
  163. package/dist/cjs/serialization/resources/index.js +3 -1
  164. package/dist/cjs/serialization/types/ApidataBatchAddItemRole.d.ts +10 -0
  165. package/dist/cjs/serialization/types/ApidataBatchAddItemRole.js +41 -0
  166. package/dist/cjs/serialization/types/ApidataBatchAddItemType.d.ts +10 -0
  167. package/dist/cjs/serialization/types/ApidataBatchAddItemType.js +41 -0
  168. package/dist/cjs/serialization/types/BatchAddItem.d.ts +26 -0
  169. package/dist/cjs/serialization/types/BatchAddItem.js +57 -0
  170. package/dist/cjs/serialization/types/BatchItemDetail.d.ts +25 -0
  171. package/dist/cjs/serialization/types/BatchItemDetail.js +56 -0
  172. package/dist/cjs/serialization/types/BatchItemKind.d.ts +10 -0
  173. package/dist/cjs/serialization/types/BatchItemKind.js +41 -0
  174. package/dist/cjs/serialization/types/BatchItemListResponse.d.ts +14 -0
  175. package/dist/cjs/serialization/types/BatchItemListResponse.js +45 -0
  176. package/dist/cjs/serialization/types/BatchItemStatus.d.ts +10 -0
  177. package/dist/cjs/serialization/types/BatchItemStatus.js +41 -0
  178. package/dist/cjs/serialization/types/BatchListResponse.d.ts +14 -0
  179. package/dist/cjs/serialization/types/{PatternExample.js → BatchListResponse.js} +5 -4
  180. package/dist/cjs/serialization/types/BatchProgress.d.ts +18 -0
  181. package/dist/cjs/serialization/types/BatchProgress.js +49 -0
  182. package/dist/cjs/serialization/types/BatchStatus.d.ts +10 -0
  183. package/dist/cjs/serialization/types/BatchStatus.js +41 -0
  184. package/dist/cjs/serialization/types/BatchSummary.d.ts +22 -0
  185. package/dist/cjs/serialization/types/BatchSummary.js +53 -0
  186. package/dist/cjs/serialization/types/ComparisonOperator.d.ts +1 -1
  187. package/dist/cjs/serialization/types/ComparisonOperator.js +1 -1
  188. package/dist/cjs/serialization/types/DerivedNode.d.ts +21 -0
  189. package/dist/cjs/serialization/types/DerivedNode.js +52 -0
  190. package/dist/cjs/serialization/types/DetectPatternsResponse.d.ts +2 -0
  191. package/dist/cjs/serialization/types/DetectPatternsResponse.js +2 -0
  192. package/dist/cjs/serialization/types/EntityEdge.d.ts +2 -0
  193. package/dist/cjs/serialization/types/EntityEdge.js +2 -0
  194. package/dist/cjs/serialization/types/EntityNode.d.ts +1 -0
  195. package/dist/cjs/serialization/types/EntityNode.js +1 -0
  196. package/dist/cjs/serialization/types/Episode.d.ts +1 -0
  197. package/dist/cjs/serialization/types/Episode.js +1 -0
  198. package/dist/cjs/serialization/types/EpisodeData.d.ts +1 -0
  199. package/dist/cjs/serialization/types/EpisodeData.js +1 -0
  200. package/dist/cjs/serialization/types/EpisodeMetadataFilter.d.ts +15 -0
  201. package/dist/cjs/serialization/types/EpisodeMetadataFilter.js +46 -0
  202. package/dist/cjs/serialization/types/GraphDataType.d.ts +1 -1
  203. package/dist/cjs/serialization/types/GraphDataType.js +1 -1
  204. package/dist/cjs/serialization/types/GraphObservationsRequest.d.ts +13 -0
  205. package/dist/cjs/serialization/types/GraphObservationsRequest.js +44 -0
  206. package/dist/cjs/serialization/types/GraphSearchResults.d.ts +5 -0
  207. package/dist/cjs/serialization/types/GraphSearchResults.js +5 -0
  208. package/dist/cjs/serialization/types/GraphSearchScope.d.ts +1 -1
  209. package/dist/cjs/serialization/types/GraphSearchScope.js +1 -1
  210. package/dist/cjs/serialization/types/GraphThreadSummariesRequest.d.ts +13 -0
  211. package/dist/cjs/serialization/types/GraphThreadSummariesRequest.js +44 -0
  212. package/dist/cjs/serialization/types/GraphitiMetadataFilterGroupType.d.ts +10 -0
  213. package/dist/cjs/serialization/types/GraphitiMetadataFilterGroupType.js +41 -0
  214. package/dist/cjs/serialization/types/GraphitiSagaNode.d.ts +20 -0
  215. package/dist/cjs/serialization/types/GraphitiSagaNode.js +51 -0
  216. package/dist/cjs/serialization/types/MetadataFilterGroup.d.ts +16 -0
  217. package/dist/cjs/serialization/types/MetadataFilterGroup.js +48 -0
  218. package/dist/cjs/serialization/types/PatternResult.d.ts +3 -2
  219. package/dist/cjs/serialization/types/PatternResult.js +3 -2
  220. package/dist/cjs/serialization/types/SearchFilters.d.ts +1 -0
  221. package/dist/cjs/serialization/types/SearchFilters.js +2 -0
  222. package/dist/cjs/serialization/types/ThreadSummary.d.ts +16 -0
  223. package/dist/cjs/serialization/types/ThreadSummary.js +47 -0
  224. package/dist/cjs/serialization/types/index.d.ts +19 -1
  225. package/dist/cjs/serialization/types/index.js +19 -1
  226. package/dist/cjs/version.d.ts +1 -1
  227. package/dist/cjs/version.js +1 -1
  228. package/dist/esm/Client.d.mts +3 -0
  229. package/dist/esm/Client.mjs +7 -2
  230. package/dist/esm/api/errors/BadRequestError.d.mts +1 -2
  231. package/dist/esm/api/errors/ConflictError.d.mts +9 -0
  232. package/dist/esm/api/errors/ConflictError.mjs +15 -0
  233. package/dist/esm/api/errors/index.d.mts +2 -1
  234. package/dist/esm/api/errors/index.mjs +2 -1
  235. package/dist/esm/api/resources/batch/client/Client.d.mts +161 -0
  236. package/dist/esm/api/resources/batch/client/Client.mjs +740 -0
  237. package/dist/esm/api/resources/batch/client/index.d.mts +2 -0
  238. package/dist/esm/api/resources/batch/client/index.mjs +1 -0
  239. package/dist/esm/api/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.mts +15 -0
  240. package/dist/esm/api/resources/batch/client/requests/ApidataCreateBatchRequest.d.mts +10 -0
  241. package/dist/esm/api/resources/batch/client/requests/ApidataCreateBatchRequest.mjs +4 -0
  242. package/dist/esm/api/resources/batch/client/requests/BatchListItemsRequest.d.mts +25 -0
  243. package/dist/esm/api/resources/batch/client/requests/BatchListItemsRequest.mjs +4 -0
  244. package/dist/esm/api/resources/batch/client/requests/BatchListRequest.d.mts +25 -0
  245. package/dist/esm/api/resources/batch/client/requests/BatchListRequest.mjs +4 -0
  246. package/dist/esm/api/resources/batch/client/requests/index.d.mts +4 -0
  247. package/dist/esm/api/resources/batch/client/requests/index.mjs +1 -0
  248. package/dist/esm/api/resources/batch/index.d.mts +1 -0
  249. package/dist/esm/api/resources/batch/index.mjs +1 -0
  250. package/dist/esm/api/resources/context/client/Client.mjs +5 -35
  251. package/dist/esm/api/resources/graph/client/Client.d.mts +13 -0
  252. package/dist/esm/api/resources/graph/client/Client.mjs +44 -82
  253. package/dist/esm/api/resources/graph/client/requests/AddDataRequest.d.mts +2 -0
  254. package/dist/esm/api/resources/graph/client/requests/AddTripleRequest.d.mts +5 -0
  255. package/dist/esm/api/resources/graph/client/requests/DetectPatternsRequest.d.mts +12 -4
  256. package/dist/esm/api/resources/graph/client/requests/GraphListAllRequest.d.mts +5 -0
  257. package/dist/esm/api/resources/graph/client/requests/GraphSearchQuery.d.mts +14 -2
  258. package/dist/esm/api/resources/graph/resources/edge/client/Client.mjs +5 -35
  259. package/dist/esm/api/resources/graph/resources/episode/client/Client.d.mts +21 -0
  260. package/dist/esm/api/resources/graph/resources/episode/client/Client.mjs +104 -30
  261. package/dist/esm/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.mts +15 -0
  262. package/dist/esm/api/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.mjs +4 -0
  263. package/dist/esm/api/resources/graph/resources/episode/client/requests/index.d.mts +1 -0
  264. package/dist/esm/api/resources/graph/resources/index.d.mts +2 -0
  265. package/dist/esm/api/resources/graph/resources/index.mjs +2 -0
  266. package/dist/esm/api/resources/graph/resources/node/client/Client.mjs +7 -49
  267. package/dist/esm/api/resources/graph/resources/observation/client/Client.d.mts +81 -0
  268. package/dist/esm/api/resources/graph/resources/observation/client/Client.mjs +296 -0
  269. package/dist/esm/api/resources/graph/resources/observation/client/index.d.mts +1 -0
  270. package/dist/esm/api/resources/graph/resources/observation/client/index.mjs +1 -0
  271. package/dist/esm/api/resources/graph/resources/observation/index.d.mts +1 -0
  272. package/dist/esm/api/resources/graph/resources/observation/index.mjs +1 -0
  273. package/dist/esm/api/resources/graph/resources/threadSummary/client/Client.d.mts +66 -0
  274. package/dist/esm/api/resources/graph/resources/threadSummary/client/Client.mjs +212 -0
  275. package/dist/esm/api/resources/graph/resources/threadSummary/client/index.d.mts +1 -0
  276. package/dist/esm/api/resources/graph/resources/threadSummary/client/index.mjs +1 -0
  277. package/dist/esm/api/resources/graph/resources/threadSummary/index.d.mts +1 -0
  278. package/dist/esm/api/resources/graph/resources/threadSummary/index.mjs +1 -0
  279. package/dist/esm/api/resources/index.d.mts +2 -0
  280. package/dist/esm/api/resources/index.mjs +2 -0
  281. package/dist/esm/api/resources/project/client/Client.mjs +1 -7
  282. package/dist/esm/api/resources/thread/client/Client.d.mts +15 -0
  283. package/dist/esm/api/resources/thread/client/Client.mjs +92 -14
  284. package/dist/esm/api/resources/user/client/Client.d.mts +3 -0
  285. package/dist/esm/api/resources/user/client/Client.mjs +15 -24
  286. package/dist/esm/api/types/ApidataBatchAddItemRole.d.mts +12 -0
  287. package/dist/esm/api/types/ApidataBatchAddItemRole.mjs +11 -0
  288. package/dist/esm/api/types/ApidataBatchAddItemType.d.mts +8 -0
  289. package/dist/esm/api/types/ApidataBatchAddItemType.mjs +7 -0
  290. package/dist/esm/api/types/BatchAddItem.d.mts +18 -0
  291. package/dist/esm/api/types/BatchAddItem.mjs +4 -0
  292. package/dist/esm/api/types/BatchItemDetail.d.mts +18 -0
  293. package/dist/esm/api/types/BatchItemDetail.mjs +4 -0
  294. package/dist/esm/api/types/BatchItemKind.d.mts +8 -0
  295. package/dist/esm/api/types/BatchItemKind.mjs +7 -0
  296. package/dist/esm/api/types/BatchItemListResponse.d.mts +8 -0
  297. package/dist/esm/api/types/BatchItemListResponse.mjs +4 -0
  298. package/dist/esm/api/types/BatchItemStatus.d.mts +12 -0
  299. package/dist/esm/api/types/BatchItemStatus.mjs +11 -0
  300. package/dist/esm/api/types/BatchListResponse.d.mts +8 -0
  301. package/dist/esm/api/types/BatchListResponse.mjs +4 -0
  302. package/dist/esm/api/types/BatchProgress.d.mts +12 -0
  303. package/dist/esm/api/types/BatchProgress.mjs +4 -0
  304. package/dist/esm/api/types/BatchStatus.d.mts +13 -0
  305. package/dist/esm/api/types/BatchStatus.mjs +12 -0
  306. package/dist/esm/api/types/BatchSummary.d.mts +15 -0
  307. package/dist/esm/api/types/BatchSummary.mjs +4 -0
  308. package/dist/esm/api/types/ComparisonOperator.d.mts +2 -1
  309. package/dist/esm/api/types/ComparisonOperator.mjs +1 -0
  310. package/dist/esm/api/types/DateFilter.d.mts +1 -1
  311. package/dist/esm/api/types/DerivedNode.d.mts +28 -0
  312. package/dist/esm/api/types/DerivedNode.mjs +4 -0
  313. package/dist/esm/api/types/DetectPatternsResponse.d.mts +2 -0
  314. package/dist/esm/api/types/EntityEdge.d.mts +4 -0
  315. package/dist/esm/api/types/EntityNode.d.mts +2 -0
  316. package/dist/esm/api/types/Episode.d.mts +2 -0
  317. package/dist/esm/api/types/EpisodeData.d.mts +2 -0
  318. package/dist/esm/api/types/EpisodeMetadataFilter.d.mts +12 -0
  319. package/dist/esm/api/types/EpisodeMetadataFilter.mjs +4 -0
  320. package/dist/esm/api/types/GraphDataType.d.mts +2 -1
  321. package/dist/esm/api/types/GraphDataType.mjs +1 -0
  322. package/dist/esm/api/types/GraphObservationsRequest.d.mts +9 -0
  323. package/dist/esm/api/types/GraphObservationsRequest.mjs +4 -0
  324. package/dist/esm/api/types/GraphSearchResults.d.mts +3 -0
  325. package/dist/esm/api/types/GraphSearchScope.d.mts +4 -1
  326. package/dist/esm/api/types/GraphSearchScope.mjs +3 -0
  327. package/dist/esm/api/types/GraphThreadSummariesRequest.d.mts +9 -0
  328. package/dist/esm/api/types/GraphThreadSummariesRequest.mjs +4 -0
  329. package/dist/esm/api/types/GraphitiMetadataFilterGroupType.d.mts +11 -0
  330. package/dist/esm/api/types/GraphitiMetadataFilterGroupType.mjs +7 -0
  331. package/dist/esm/api/types/GraphitiSagaNode.d.mts +26 -0
  332. package/dist/esm/api/types/GraphitiSagaNode.mjs +4 -0
  333. package/dist/esm/api/types/MetadataFilterGroup.d.mts +12 -0
  334. package/dist/esm/api/types/MetadataFilterGroup.mjs +4 -0
  335. package/dist/esm/api/types/PatternResult.d.mts +22 -5
  336. package/dist/esm/api/types/PatternSeeds.d.mts +1 -1
  337. package/dist/esm/api/types/PropertyFilter.d.mts +1 -1
  338. package/dist/esm/api/types/SearchFilters.d.mts +14 -9
  339. package/dist/esm/api/types/ThreadSummary.d.mts +20 -0
  340. package/dist/esm/api/types/ThreadSummary.mjs +4 -0
  341. package/dist/esm/api/types/index.d.mts +19 -1
  342. package/dist/esm/api/types/index.mjs +19 -1
  343. package/dist/esm/serialization/resources/batch/client/add.d.mts +11 -0
  344. package/dist/esm/serialization/resources/batch/client/add.mjs +6 -0
  345. package/dist/esm/serialization/resources/batch/client/index.d.mts +2 -0
  346. package/dist/esm/serialization/resources/batch/client/index.mjs +2 -0
  347. package/dist/esm/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.d.mts +13 -0
  348. package/dist/esm/serialization/resources/batch/client/requests/ApidataAddBatchItemsRequest.mjs +8 -0
  349. package/dist/esm/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.d.mts +12 -0
  350. package/dist/esm/serialization/resources/batch/client/requests/ApidataCreateBatchRequest.mjs +7 -0
  351. package/dist/esm/serialization/resources/batch/client/requests/index.d.mts +2 -0
  352. package/dist/esm/serialization/resources/batch/client/requests/index.mjs +2 -0
  353. package/dist/esm/serialization/resources/batch/index.d.mts +1 -0
  354. package/dist/esm/serialization/resources/batch/index.mjs +1 -0
  355. package/dist/esm/serialization/resources/graph/client/requests/AddDataRequest.d.mts +1 -0
  356. package/dist/esm/serialization/resources/graph/client/requests/AddDataRequest.mjs +1 -0
  357. package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.d.mts +1 -0
  358. package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.mjs +1 -0
  359. package/dist/esm/serialization/resources/graph/client/requests/DetectPatternsRequest.d.mts +3 -1
  360. package/dist/esm/serialization/resources/graph/client/requests/DetectPatternsRequest.mjs +3 -1
  361. package/dist/esm/serialization/resources/graph/client/requests/GraphSearchQuery.d.mts +2 -0
  362. package/dist/esm/serialization/resources/graph/client/requests/GraphSearchQuery.mjs +2 -0
  363. package/dist/esm/serialization/resources/graph/resources/episode/client/index.d.mts +1 -0
  364. package/dist/esm/serialization/resources/graph/resources/episode/client/index.mjs +1 -0
  365. package/dist/esm/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.d.mts +12 -0
  366. package/dist/esm/serialization/resources/graph/resources/episode/client/requests/UpdateEpisodeRequest.mjs +7 -0
  367. package/dist/esm/serialization/resources/graph/resources/episode/client/requests/index.d.mts +1 -0
  368. package/dist/esm/serialization/resources/graph/resources/episode/client/requests/index.mjs +1 -0
  369. package/dist/esm/serialization/resources/graph/resources/episode/index.d.mts +1 -0
  370. package/dist/esm/serialization/resources/graph/resources/episode/index.mjs +1 -0
  371. package/dist/esm/serialization/resources/graph/resources/index.d.mts +4 -0
  372. package/dist/esm/serialization/resources/graph/resources/index.mjs +4 -0
  373. package/dist/esm/serialization/resources/graph/resources/observation/client/getByGraphId.d.mts +11 -0
  374. package/dist/esm/serialization/resources/graph/resources/observation/client/getByGraphId.mjs +6 -0
  375. package/dist/esm/serialization/resources/graph/resources/observation/client/getByUserId.d.mts +11 -0
  376. package/dist/esm/serialization/resources/graph/resources/observation/client/getByUserId.mjs +6 -0
  377. package/dist/esm/serialization/resources/graph/resources/observation/client/index.d.mts +2 -0
  378. package/dist/esm/serialization/resources/graph/resources/observation/client/index.mjs +2 -0
  379. package/dist/esm/serialization/resources/graph/resources/observation/index.d.mts +1 -0
  380. package/dist/esm/serialization/resources/graph/resources/observation/index.mjs +1 -0
  381. package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByGraphId.d.mts +11 -0
  382. package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByGraphId.mjs +6 -0
  383. package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByUserId.d.mts +11 -0
  384. package/dist/esm/serialization/resources/graph/resources/threadSummary/client/getByUserId.mjs +6 -0
  385. package/dist/esm/serialization/resources/graph/resources/threadSummary/client/index.d.mts +2 -0
  386. package/dist/esm/serialization/resources/graph/resources/threadSummary/client/index.mjs +2 -0
  387. package/dist/esm/serialization/resources/graph/resources/threadSummary/index.d.mts +1 -0
  388. package/dist/esm/serialization/resources/graph/resources/threadSummary/index.mjs +1 -0
  389. package/dist/esm/serialization/resources/index.d.mts +2 -0
  390. package/dist/esm/serialization/resources/index.mjs +2 -0
  391. package/dist/esm/serialization/types/ApidataBatchAddItemRole.d.mts +10 -0
  392. package/dist/esm/serialization/types/ApidataBatchAddItemRole.mjs +5 -0
  393. package/dist/esm/serialization/types/ApidataBatchAddItemType.d.mts +10 -0
  394. package/dist/esm/serialization/types/ApidataBatchAddItemType.mjs +5 -0
  395. package/dist/esm/serialization/types/BatchAddItem.d.mts +26 -0
  396. package/dist/esm/serialization/types/BatchAddItem.mjs +21 -0
  397. package/dist/esm/serialization/types/BatchItemDetail.d.mts +25 -0
  398. package/dist/esm/serialization/types/BatchItemDetail.mjs +20 -0
  399. package/dist/esm/serialization/types/BatchItemKind.d.mts +10 -0
  400. package/dist/esm/serialization/types/BatchItemKind.mjs +5 -0
  401. package/dist/esm/serialization/types/BatchItemListResponse.d.mts +14 -0
  402. package/dist/esm/serialization/types/BatchItemListResponse.mjs +9 -0
  403. package/dist/esm/serialization/types/BatchItemStatus.d.mts +10 -0
  404. package/dist/esm/serialization/types/BatchItemStatus.mjs +5 -0
  405. package/dist/esm/serialization/types/BatchListResponse.d.mts +14 -0
  406. package/dist/esm/serialization/types/BatchListResponse.mjs +9 -0
  407. package/dist/esm/serialization/types/BatchProgress.d.mts +18 -0
  408. package/dist/esm/serialization/types/BatchProgress.mjs +13 -0
  409. package/dist/esm/serialization/types/BatchStatus.d.mts +10 -0
  410. package/dist/esm/serialization/types/BatchStatus.mjs +5 -0
  411. package/dist/esm/serialization/types/BatchSummary.d.mts +22 -0
  412. package/dist/esm/serialization/types/BatchSummary.mjs +17 -0
  413. package/dist/esm/serialization/types/ComparisonOperator.d.mts +1 -1
  414. package/dist/esm/serialization/types/ComparisonOperator.mjs +1 -1
  415. package/dist/esm/serialization/types/DerivedNode.d.mts +21 -0
  416. package/dist/esm/serialization/types/DerivedNode.mjs +16 -0
  417. package/dist/esm/serialization/types/DetectPatternsResponse.d.mts +2 -0
  418. package/dist/esm/serialization/types/DetectPatternsResponse.mjs +2 -0
  419. package/dist/esm/serialization/types/EntityEdge.d.mts +2 -0
  420. package/dist/esm/serialization/types/EntityEdge.mjs +2 -0
  421. package/dist/esm/serialization/types/EntityNode.d.mts +1 -0
  422. package/dist/esm/serialization/types/EntityNode.mjs +1 -0
  423. package/dist/esm/serialization/types/Episode.d.mts +1 -0
  424. package/dist/esm/serialization/types/Episode.mjs +1 -0
  425. package/dist/esm/serialization/types/EpisodeData.d.mts +1 -0
  426. package/dist/esm/serialization/types/EpisodeData.mjs +1 -0
  427. package/dist/esm/serialization/types/EpisodeMetadataFilter.d.mts +15 -0
  428. package/dist/esm/serialization/types/EpisodeMetadataFilter.mjs +10 -0
  429. package/dist/esm/serialization/types/GraphDataType.d.mts +1 -1
  430. package/dist/esm/serialization/types/GraphDataType.mjs +1 -1
  431. package/dist/esm/serialization/types/GraphObservationsRequest.d.mts +13 -0
  432. package/dist/esm/serialization/types/GraphObservationsRequest.mjs +8 -0
  433. package/dist/esm/serialization/types/GraphSearchResults.d.mts +5 -0
  434. package/dist/esm/serialization/types/GraphSearchResults.mjs +5 -0
  435. package/dist/esm/serialization/types/GraphSearchScope.d.mts +1 -1
  436. package/dist/esm/serialization/types/GraphSearchScope.mjs +1 -1
  437. package/dist/esm/serialization/types/GraphThreadSummariesRequest.d.mts +13 -0
  438. package/dist/esm/serialization/types/GraphThreadSummariesRequest.mjs +8 -0
  439. package/dist/esm/serialization/types/GraphitiMetadataFilterGroupType.d.mts +10 -0
  440. package/dist/esm/serialization/types/GraphitiMetadataFilterGroupType.mjs +5 -0
  441. package/dist/esm/serialization/types/GraphitiSagaNode.d.mts +20 -0
  442. package/dist/esm/serialization/types/GraphitiSagaNode.mjs +15 -0
  443. package/dist/esm/serialization/types/MetadataFilterGroup.d.mts +16 -0
  444. package/dist/esm/serialization/types/MetadataFilterGroup.mjs +12 -0
  445. package/dist/esm/serialization/types/PatternResult.d.mts +3 -2
  446. package/dist/esm/serialization/types/PatternResult.mjs +3 -2
  447. package/dist/esm/serialization/types/SearchFilters.d.mts +1 -0
  448. package/dist/esm/serialization/types/SearchFilters.mjs +2 -0
  449. package/dist/esm/serialization/types/ThreadSummary.d.mts +16 -0
  450. package/dist/esm/serialization/types/ThreadSummary.mjs +11 -0
  451. package/dist/esm/serialization/types/index.d.mts +19 -1
  452. package/dist/esm/serialization/types/index.mjs +19 -1
  453. package/dist/esm/version.d.mts +1 -1
  454. package/dist/esm/version.mjs +1 -1
  455. package/package.json +16 -9
  456. package/reference.md +1414 -449
  457. package/dist/cjs/api/types/PatternExample.d.ts +0 -9
  458. package/dist/cjs/serialization/types/PatternExample.d.ts +0 -13
  459. package/dist/esm/api/types/PatternExample.d.mts +0 -9
  460. package/dist/esm/serialization/types/PatternExample.d.mts +0 -13
  461. package/dist/esm/serialization/types/PatternExample.mjs +0 -8
  462. /package/dist/cjs/api/{types/PatternExample.js → resources/batch/client/requests/ApidataAddBatchItemsRequest.js} +0 -0
  463. /package/dist/esm/api/{types/PatternExample.mjs → resources/batch/client/requests/ApidataAddBatchItemsRequest.mjs} +0 -0
@@ -155,6 +155,21 @@ export declare class Thread {
155
155
  */
156
156
  addMessagesBatch(threadId: string, request: Zep.AddThreadMessagesRequest, requestOptions?: Thread.RequestOptions): core.HttpResponsePromise<Zep.AddThreadMessagesResponse>;
157
157
  private __addMessagesBatch;
158
+ /**
159
+ * Returns the incremental summary generated from messages in the thread. Returns 404 if no summary exists for the thread.
160
+ *
161
+ * @param {string} threadId - The thread ID.
162
+ * @param {Thread.RequestOptions} requestOptions - Request-specific configuration.
163
+ *
164
+ * @throws {@link Zep.ForbiddenError}
165
+ * @throws {@link Zep.NotFoundError}
166
+ * @throws {@link Zep.InternalServerError}
167
+ *
168
+ * @example
169
+ * await client.thread.getSummary("threadId")
170
+ */
171
+ getSummary(threadId: string, requestOptions?: Thread.RequestOptions): core.HttpResponsePromise<Zep.ThreadSummary>;
172
+ private __getSummary;
158
173
  protected _getCustomAuthorizationHeaders(): Promise<{
159
174
  Authorization: string;
160
175
  }>;
@@ -86,13 +86,7 @@ export class Thread {
86
86
  if (_response.error.reason === "status-code") {
87
87
  switch (_response.error.statusCode) {
88
88
  case 400:
89
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
90
- unrecognizedObjectKeys: "passthrough",
91
- allowUnrecognizedUnionMembers: true,
92
- allowUnrecognizedEnumValues: true,
93
- skipValidation: true,
94
- breadcrumbsPrefix: ["response"],
95
- }), _response.rawResponse);
89
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
96
90
  case 500:
97
91
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
98
92
  unrecognizedObjectKeys: "passthrough",
@@ -176,13 +170,7 @@ export class Thread {
176
170
  if (_response.error.reason === "status-code") {
177
171
  switch (_response.error.statusCode) {
178
172
  case 400:
179
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
180
- unrecognizedObjectKeys: "passthrough",
181
- allowUnrecognizedUnionMembers: true,
182
- allowUnrecognizedEnumValues: true,
183
- skipValidation: true,
184
- breadcrumbsPrefix: ["response"],
185
- }), _response.rawResponse);
173
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
186
174
  case 500:
187
175
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
188
176
  unrecognizedObjectKeys: "passthrough",
@@ -653,6 +641,96 @@ export class Thread {
653
641
  }
654
642
  });
655
643
  }
644
+ /**
645
+ * Returns the incremental summary generated from messages in the thread. Returns 404 if no summary exists for the thread.
646
+ *
647
+ * @param {string} threadId - The thread ID.
648
+ * @param {Thread.RequestOptions} requestOptions - Request-specific configuration.
649
+ *
650
+ * @throws {@link Zep.ForbiddenError}
651
+ * @throws {@link Zep.NotFoundError}
652
+ * @throws {@link Zep.InternalServerError}
653
+ *
654
+ * @example
655
+ * await client.thread.getSummary("threadId")
656
+ */
657
+ getSummary(threadId, requestOptions) {
658
+ return core.HttpResponsePromise.fromPromise(this.__getSummary(threadId, requestOptions));
659
+ }
660
+ __getSummary(threadId, requestOptions) {
661
+ return __awaiter(this, void 0, void 0, function* () {
662
+ var _a, _b, _c, _d;
663
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
664
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ZepEnvironment.Default, `threads/${encodeURIComponent(threadId)}/summary`),
665
+ method: "GET",
666
+ 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),
667
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
668
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
669
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
670
+ });
671
+ if (_response.ok) {
672
+ return {
673
+ data: serializers.ThreadSummary.parseOrThrow(_response.body, {
674
+ unrecognizedObjectKeys: "passthrough",
675
+ allowUnrecognizedUnionMembers: true,
676
+ allowUnrecognizedEnumValues: true,
677
+ skipValidation: true,
678
+ breadcrumbsPrefix: ["response"],
679
+ }),
680
+ rawResponse: _response.rawResponse,
681
+ };
682
+ }
683
+ if (_response.error.reason === "status-code") {
684
+ switch (_response.error.statusCode) {
685
+ case 403:
686
+ throw new Zep.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
687
+ unrecognizedObjectKeys: "passthrough",
688
+ allowUnrecognizedUnionMembers: true,
689
+ allowUnrecognizedEnumValues: true,
690
+ skipValidation: true,
691
+ breadcrumbsPrefix: ["response"],
692
+ }), _response.rawResponse);
693
+ case 404:
694
+ throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
695
+ unrecognizedObjectKeys: "passthrough",
696
+ allowUnrecognizedUnionMembers: true,
697
+ allowUnrecognizedEnumValues: true,
698
+ skipValidation: true,
699
+ breadcrumbsPrefix: ["response"],
700
+ }), _response.rawResponse);
701
+ case 500:
702
+ throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
703
+ unrecognizedObjectKeys: "passthrough",
704
+ allowUnrecognizedUnionMembers: true,
705
+ allowUnrecognizedEnumValues: true,
706
+ skipValidation: true,
707
+ breadcrumbsPrefix: ["response"],
708
+ }), _response.rawResponse);
709
+ default:
710
+ throw new errors.ZepError({
711
+ statusCode: _response.error.statusCode,
712
+ body: _response.error.body,
713
+ rawResponse: _response.rawResponse,
714
+ });
715
+ }
716
+ }
717
+ switch (_response.error.reason) {
718
+ case "non-json":
719
+ throw new errors.ZepError({
720
+ statusCode: _response.error.statusCode,
721
+ body: _response.error.rawBody,
722
+ rawResponse: _response.rawResponse,
723
+ });
724
+ case "timeout":
725
+ throw new errors.ZepTimeoutError("Timeout exceeded when calling GET /threads/{threadId}/summary.");
726
+ case "unknown":
727
+ throw new errors.ZepError({
728
+ message: _response.error.errorMessage,
729
+ rawResponse: _response.rawResponse,
730
+ });
731
+ }
732
+ });
733
+ }
656
734
  _getCustomAuthorizationHeaders() {
657
735
  return __awaiter(this, void 0, void 0, function* () {
658
736
  var _a;
@@ -35,6 +35,7 @@ export declare class User {
35
35
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
36
36
  *
37
37
  * @throws {@link Zep.BadRequestError}
38
+ * @throws {@link Zep.NotFoundError}
38
39
  * @throws {@link Zep.InternalServerError}
39
40
  *
40
41
  * @example
@@ -51,6 +52,7 @@ export declare class User {
51
52
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
52
53
  *
53
54
  * @throws {@link Zep.BadRequestError}
55
+ * @throws {@link Zep.NotFoundError}
54
56
  * @throws {@link Zep.InternalServerError}
55
57
  *
56
58
  * @example
@@ -70,6 +72,7 @@ export declare class User {
70
72
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
71
73
  *
72
74
  * @throws {@link Zep.BadRequestError}
75
+ * @throws {@link Zep.NotFoundError}
73
76
  * @throws {@link Zep.InternalServerError}
74
77
  *
75
78
  * @example
@@ -27,6 +27,7 @@ export class User {
27
27
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
28
28
  *
29
29
  * @throws {@link Zep.BadRequestError}
30
+ * @throws {@link Zep.NotFoundError}
30
31
  * @throws {@link Zep.InternalServerError}
31
32
  *
32
33
  * @example
@@ -69,7 +70,9 @@ export class User {
69
70
  if (_response.error.reason === "status-code") {
70
71
  switch (_response.error.statusCode) {
71
72
  case 400:
72
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
73
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
74
+ case 404:
75
+ throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
73
76
  unrecognizedObjectKeys: "passthrough",
74
77
  allowUnrecognizedUnionMembers: true,
75
78
  allowUnrecognizedEnumValues: true,
@@ -116,6 +119,7 @@ export class User {
116
119
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
117
120
  *
118
121
  * @throws {@link Zep.BadRequestError}
122
+ * @throws {@link Zep.NotFoundError}
119
123
  * @throws {@link Zep.InternalServerError}
120
124
  *
121
125
  * @example
@@ -161,7 +165,9 @@ export class User {
161
165
  if (_response.error.reason === "status-code") {
162
166
  switch (_response.error.statusCode) {
163
167
  case 400:
164
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
168
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
169
+ case 404:
170
+ throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
165
171
  unrecognizedObjectKeys: "passthrough",
166
172
  allowUnrecognizedUnionMembers: true,
167
173
  allowUnrecognizedEnumValues: true,
@@ -208,6 +214,7 @@ export class User {
208
214
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
209
215
  *
210
216
  * @throws {@link Zep.BadRequestError}
217
+ * @throws {@link Zep.NotFoundError}
211
218
  * @throws {@link Zep.InternalServerError}
212
219
  *
213
220
  * @example
@@ -248,7 +255,9 @@ export class User {
248
255
  if (_response.error.reason === "status-code") {
249
256
  switch (_response.error.statusCode) {
250
257
  case 400:
251
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
258
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
259
+ case 404:
260
+ throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
252
261
  unrecognizedObjectKeys: "passthrough",
253
262
  allowUnrecognizedUnionMembers: true,
254
263
  allowUnrecognizedEnumValues: true,
@@ -337,13 +346,7 @@ export class User {
337
346
  if (_response.error.reason === "status-code") {
338
347
  switch (_response.error.statusCode) {
339
348
  case 400:
340
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
341
- unrecognizedObjectKeys: "passthrough",
342
- allowUnrecognizedUnionMembers: true,
343
- allowUnrecognizedEnumValues: true,
344
- skipValidation: true,
345
- breadcrumbsPrefix: ["response"],
346
- }), _response.rawResponse);
349
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
347
350
  case 500:
348
351
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
349
352
  unrecognizedObjectKeys: "passthrough",
@@ -442,13 +445,7 @@ export class User {
442
445
  if (_response.error.reason === "status-code") {
443
446
  switch (_response.error.statusCode) {
444
447
  case 400:
445
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
446
- unrecognizedObjectKeys: "passthrough",
447
- allowUnrecognizedUnionMembers: true,
448
- allowUnrecognizedEnumValues: true,
449
- skipValidation: true,
450
- breadcrumbsPrefix: ["response"],
451
- }), _response.rawResponse);
448
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
452
449
  case 500:
453
450
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
454
451
  unrecognizedObjectKeys: "passthrough",
@@ -693,13 +690,7 @@ export class User {
693
690
  if (_response.error.reason === "status-code") {
694
691
  switch (_response.error.statusCode) {
695
692
  case 400:
696
- throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
697
- unrecognizedObjectKeys: "passthrough",
698
- allowUnrecognizedUnionMembers: true,
699
- allowUnrecognizedEnumValues: true,
700
- skipValidation: true,
701
- breadcrumbsPrefix: ["response"],
702
- }), _response.rawResponse);
693
+ throw new Zep.BadRequestError(_response.error.body, _response.rawResponse);
703
694
  case 404:
704
695
  throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
705
696
  unrecognizedObjectKeys: "passthrough",
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ApidataBatchAddItemRole = "norole" | "system" | "assistant" | "user" | "function" | "tool";
5
+ export declare const ApidataBatchAddItemRole: {
6
+ readonly Norole: "norole";
7
+ readonly System: "system";
8
+ readonly Assistant: "assistant";
9
+ readonly User: "user";
10
+ readonly Function: "function";
11
+ readonly Tool: "tool";
12
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const ApidataBatchAddItemRole = {
5
+ Norole: "norole",
6
+ System: "system",
7
+ Assistant: "assistant",
8
+ User: "user",
9
+ Function: "function",
10
+ Tool: "tool",
11
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ApidataBatchAddItemType = "graph_episode" | "thread_message";
5
+ export declare const ApidataBatchAddItemType: {
6
+ readonly GraphEpisode: "graph_episode";
7
+ readonly ThreadMessage: "thread_message";
8
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const ApidataBatchAddItemType = {
5
+ GraphEpisode: "graph_episode",
6
+ ThreadMessage: "thread_message",
7
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../index.mjs";
5
+ export interface BatchAddItem {
6
+ content?: string;
7
+ createdAt?: string;
8
+ data?: string;
9
+ dataType?: Zep.GraphDataType;
10
+ graphId?: string;
11
+ metadata?: Record<string, unknown>;
12
+ name?: string;
13
+ role?: Zep.ApidataBatchAddItemRole;
14
+ sourceDescription?: string;
15
+ threadId?: string;
16
+ type: Zep.ApidataBatchAddItemType;
17
+ userId?: string;
18
+ }
@@ -0,0 +1,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
+ export interface BatchItemDetail {
6
+ createdAt?: string;
7
+ episodeUuid?: string;
8
+ error?: Record<string, unknown>;
9
+ graphId?: string;
10
+ itemId?: string;
11
+ kind?: Zep.BatchItemKind;
12
+ sequenceIndex?: number;
13
+ sourceUuid?: string;
14
+ status?: Zep.BatchItemStatus;
15
+ threadId?: string;
16
+ updatedAt?: string;
17
+ userId?: string;
18
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type BatchItemKind = "graph_episode" | "thread_message";
5
+ export declare const BatchItemKind: {
6
+ readonly GraphEpisode: "graph_episode";
7
+ readonly ThreadMessage: "thread_message";
8
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const BatchItemKind = {
5
+ GraphEpisode: "graph_episode",
6
+ ThreadMessage: "thread_message",
7
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../index.mjs";
5
+ export interface BatchItemListResponse {
6
+ items?: Zep.BatchItemDetail[];
7
+ nextCursor?: number;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type BatchItemStatus = "pending" | "queued" | "processing" | "succeeded" | "failed" | "skipped";
5
+ export declare const BatchItemStatus: {
6
+ readonly Pending: "pending";
7
+ readonly Queued: "queued";
8
+ readonly Processing: "processing";
9
+ readonly Succeeded: "succeeded";
10
+ readonly Failed: "failed";
11
+ readonly Skipped: "skipped";
12
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const BatchItemStatus = {
5
+ Pending: "pending",
6
+ Queued: "queued",
7
+ Processing: "processing",
8
+ Succeeded: "succeeded",
9
+ Failed: "failed",
10
+ Skipped: "skipped",
11
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../index.mjs";
5
+ export interface BatchListResponse {
6
+ batches?: Zep.BatchSummary[];
7
+ nextCursor?: number;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface BatchProgress {
5
+ failedItems?: number;
6
+ percentComplete?: number;
7
+ processingItems?: number;
8
+ queuedItems?: number;
9
+ skippedItems?: number;
10
+ succeededItems?: number;
11
+ totalItems?: number;
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type BatchStatus = "draft" | "invalid" | "queued" | "processing" | "succeeded" | "partial" | "failed";
5
+ export declare const BatchStatus: {
6
+ readonly Draft: "draft";
7
+ readonly Invalid: "invalid";
8
+ readonly Queued: "queued";
9
+ readonly Processing: "processing";
10
+ readonly Succeeded: "succeeded";
11
+ readonly Partial: "partial";
12
+ readonly Failed: "failed";
13
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const BatchStatus = {
5
+ Draft: "draft",
6
+ Invalid: "invalid",
7
+ Queued: "queued",
8
+ Processing: "processing",
9
+ Succeeded: "succeeded",
10
+ Partial: "partial",
11
+ Failed: "failed",
12
+ };
@@ -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
+ export interface BatchSummary {
6
+ batchId?: string;
7
+ completedAt?: string;
8
+ createdAt?: string;
9
+ itemCount?: number;
10
+ metadata?: Record<string, unknown>;
11
+ processedAt?: string;
12
+ progress?: Zep.BatchProgress;
13
+ status?: Zep.BatchStatus;
14
+ updatedAt?: string;
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ComparisonOperator = "=" | "<>" | ">" | "<" | ">=" | "<=" | "IS NULL" | "IS NOT NULL";
4
+ export type ComparisonOperator = "=" | "<>" | ">" | "<" | ">=" | "<=" | "IS NULL" | "IS NOT NULL" | "CONTAINS";
5
5
  export declare const ComparisonOperator: {
6
6
  readonly Equals: "=";
7
7
  readonly NotEquals: "<>";
@@ -11,4 +11,5 @@ export declare const ComparisonOperator: {
11
11
  readonly LessThanEqual: "<=";
12
12
  readonly IsNull: "IS NULL";
13
13
  readonly IsNotNull: "IS NOT NULL";
14
+ readonly Contains: "CONTAINS";
14
15
  };
@@ -10,4 +10,5 @@ export const ComparisonOperator = {
10
10
  LessThanEqual: "<=",
11
11
  IsNull: "IS NULL",
12
12
  IsNotNull: "IS NOT NULL",
13
+ Contains: "CONTAINS",
13
14
  };
@@ -6,7 +6,7 @@ export interface DateFilter {
6
6
  /** Comparison operator for date filter */
7
7
  comparisonOperator: Zep.ComparisonOperator;
8
8
  /**
9
- * Date to filter on. Required for non-null operators (=, <>, >, <, >=, <=).
9
+ * Date to filter on. Required for non-null operators (=, \<\>, \>, \<, \>=, \<=).
10
10
  * Should be omitted for IS NULL and IS NOT NULL operators.
11
11
  */
12
12
  date?: string;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface DerivedNode {
5
+ /** Additional attributes of the derived node. */
6
+ attributes?: Record<string, unknown>;
7
+ /** Creation time of the node */
8
+ createdAt: string;
9
+ /** Episode UUIDs that support this observation. Only populated for observation nodes in web API responses. */
10
+ episodeIds?: string[];
11
+ /** Labels associated with the node */
12
+ labels?: string[];
13
+ /** Name of the node */
14
+ name: string;
15
+ /**
16
+ * Relevance is an experimental rank-aligned score in [0,1] derived from Score via logit transformation.
17
+ * Only populated when using cross_encoder reranker; omitted for other reranker types (e.g., RRF).
18
+ */
19
+ relevance?: number;
20
+ /** Score is the reranker output: sigmoid-distributed logits [0,1] when using cross_encoder reranker, or RRF ordinal rank when using rrf reranker */
21
+ score?: number;
22
+ /** SelectionRank is the global cross-scope rank assigned by auto scope selection. */
23
+ selectionRank?: number;
24
+ /** Region summary of member nodes */
25
+ summary?: string;
26
+ /** UUID of the node */
27
+ uuid: string;
28
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -5,6 +5,8 @@ import * as Zep from "../index.mjs";
5
5
  export interface DetectPatternsResponse {
6
6
  /** Statistics about the detection run */
7
7
  metadata?: Zep.PatternMetadata;
8
+ /** Resolved nodes referenced by pattern edges (deduplicated). Only populated when query is set. */
9
+ nodes?: Zep.EntityNode[];
8
10
  /** Detected patterns, sorted by weighted_score descending */
9
11
  patterns?: Zep.PatternResult[];
10
12
  }
@@ -21,8 +21,12 @@ export interface EntityEdge {
21
21
  * Only populated when using cross_encoder reranker; omitted for other reranker types (e.g., RRF).
22
22
  */
23
23
  relevance?: number;
24
+ /** Scope of the edge (e.g. "entity", "maybe_related") */
25
+ scope?: string;
24
26
  /** Score is the reranker output: sigmoid-distributed logits [0,1] when using cross_encoder reranker, or RRF ordinal rank when using rrf reranker */
25
27
  score?: number;
28
+ /** SelectionRank is the global cross-scope rank assigned by auto scope selection. */
29
+ selectionRank?: number;
26
30
  /** UUID of the source node */
27
31
  sourceNodeUuid: string;
28
32
  /** UUID of the target node */
@@ -17,6 +17,8 @@ export interface EntityNode {
17
17
  relevance?: number;
18
18
  /** Score is the reranker output: sigmoid-distributed logits [0,1] when using cross_encoder reranker, or RRF ordinal rank when using rrf reranker */
19
19
  score?: number;
20
+ /** SelectionRank is the global cross-scope rank assigned by auto scope selection. */
21
+ selectionRank?: number;
20
22
  /** Regional summary of surrounding edges */
21
23
  summary: string;
22
24
  /** UUID of the node */
@@ -18,6 +18,8 @@ export interface Episode {
18
18
  roleType?: Zep.RoleType;
19
19
  /** Score is the reranker output: sigmoid-distributed logits [0,1] when using cross_encoder reranker, or RRF ordinal rank when using rrf reranker */
20
20
  score?: number;
21
+ /** SelectionRank is the global cross-scope rank assigned by auto scope selection. */
22
+ selectionRank?: number;
21
23
  source?: Zep.GraphDataType;
22
24
  sourceDescription?: string;
23
25
  /** Optional task ID to poll episode processing status. Currently only available for batch ingestion. */
@@ -5,6 +5,8 @@ import * as Zep from "../index.mjs";
5
5
  export interface EpisodeData {
6
6
  createdAt?: string;
7
7
  data: string;
8
+ /** Optional metadata key-value pairs. Max 10 keys. Values must be strings, numbers, booleans, or arrays of scalars. */
9
+ metadata?: Record<string, unknown>;
8
10
  sourceDescription?: string;
9
11
  type: Zep.GraphDataType;
10
12
  }