@getzep/zep-cloud 3.15.0 → 3.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/errors/ForbiddenError.d.ts +9 -0
  3. package/dist/cjs/api/errors/ForbiddenError.js +52 -0
  4. package/dist/cjs/api/errors/index.d.ts +1 -0
  5. package/dist/cjs/api/errors/index.js +1 -0
  6. package/dist/cjs/api/index.d.ts +1 -1
  7. package/dist/cjs/api/index.js +1 -1
  8. package/dist/cjs/api/resources/graph/client/Client.d.ts +21 -2
  9. package/dist/cjs/api/resources/graph/client/Client.js +117 -3
  10. package/dist/cjs/api/resources/graph/client/requests/AddTripleRequest.d.ts +4 -0
  11. package/dist/cjs/api/resources/graph/client/requests/CreateGraphRequest.d.ts +0 -2
  12. package/dist/cjs/api/resources/graph/client/requests/DetectPatternsRequest.d.ts +37 -0
  13. package/dist/cjs/api/resources/graph/client/requests/GraphListAllRequest.d.ts +11 -1
  14. package/dist/cjs/api/resources/graph/client/requests/GraphSearchQuery.d.ts +0 -4
  15. package/dist/cjs/api/resources/graph/client/requests/UpdateGraphRequest.d.ts +0 -2
  16. package/dist/cjs/api/resources/graph/client/requests/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/graph/resources/edge/client/Client.d.ts +17 -0
  18. package/dist/cjs/api/resources/graph/resources/edge/client/Client.js +106 -0
  19. package/dist/cjs/api/resources/graph/resources/edge/client/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/graph/resources/edge/client/index.js +15 -0
  21. package/dist/cjs/api/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.d.ts +21 -0
  22. package/dist/cjs/api/resources/graph/resources/edge/client/requests/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/graph/resources/edge/client/requests/index.js +2 -0
  24. package/dist/cjs/api/resources/graph/resources/index.d.ts +2 -0
  25. package/dist/cjs/api/resources/graph/resources/index.js +2 -0
  26. package/dist/cjs/api/resources/graph/resources/node/client/Client.d.ts +17 -0
  27. package/dist/cjs/api/resources/graph/resources/node/client/Client.js +106 -0
  28. package/dist/cjs/api/resources/graph/resources/node/client/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/graph/resources/node/client/index.js +15 -0
  30. package/dist/cjs/api/resources/graph/resources/node/client/requests/UpdateNodeRequest.d.ts +17 -0
  31. package/dist/cjs/api/resources/graph/resources/node/client/requests/index.d.ts +1 -0
  32. package/dist/cjs/api/resources/graph/resources/node/client/requests/index.js +2 -0
  33. package/dist/cjs/api/resources/index.d.ts +1 -2
  34. package/dist/cjs/api/resources/index.js +2 -3
  35. package/dist/cjs/api/resources/thread/client/Client.d.ts +1 -3
  36. package/dist/cjs/api/resources/thread/client/Client.js +2 -13
  37. package/dist/cjs/api/resources/thread/client/requests/ThreadGetUserContextRequest.d.ts +1 -12
  38. package/dist/cjs/api/resources/thread/index.d.ts +0 -1
  39. package/dist/cjs/api/resources/thread/index.js +0 -1
  40. package/dist/cjs/api/resources/user/client/Client.d.ts +4 -1
  41. package/dist/cjs/api/resources/user/client/Client.js +14 -2
  42. package/dist/cjs/api/resources/user/client/requests/CreateUserRequest.d.ts +0 -3
  43. package/dist/cjs/api/resources/user/client/requests/UpdateUserRequest.d.ts +0 -3
  44. package/dist/cjs/api/resources/user/client/requests/UserListOrderedRequest.d.ts +16 -1
  45. package/dist/cjs/api/types/ClusterDetectConfig.d.ts +4 -0
  46. package/dist/cjs/api/types/CoOccurrenceDetectConfig.d.ts +7 -0
  47. package/dist/cjs/api/types/CoOccurrenceDetectConfig.js +5 -0
  48. package/dist/cjs/api/types/DetectConfig.d.ts +16 -0
  49. package/dist/cjs/api/types/DetectConfig.js +5 -0
  50. package/dist/cjs/api/types/DetectPatternsResponse.d.ts +10 -0
  51. package/dist/cjs/api/types/DetectPatternsResponse.js +5 -0
  52. package/dist/cjs/api/types/GetTaskResponse.d.ts +1 -0
  53. package/dist/cjs/api/types/Graph.d.ts +0 -2
  54. package/dist/cjs/api/types/HubDetectConfig.d.ts +7 -0
  55. package/dist/cjs/api/types/HubDetectConfig.js +5 -0
  56. package/dist/cjs/api/types/MessageListResponse.d.ts +4 -0
  57. package/dist/cjs/api/types/PathDetectConfig.d.ts +7 -0
  58. package/dist/cjs/api/types/PathDetectConfig.js +5 -0
  59. package/dist/cjs/api/types/PatternExample.d.ts +9 -0
  60. package/dist/cjs/api/types/PatternExample.js +5 -0
  61. package/dist/cjs/api/types/PatternMetadata.d.ts +11 -0
  62. package/dist/cjs/api/types/PatternMetadata.js +5 -0
  63. package/dist/cjs/api/types/PatternResult.d.ts +20 -0
  64. package/dist/cjs/api/types/PatternResult.js +5 -0
  65. package/dist/cjs/api/types/PatternSeeds.d.ts +11 -0
  66. package/dist/cjs/api/types/PatternSeeds.js +5 -0
  67. package/dist/cjs/api/types/RecencyWeight.d.ts +10 -0
  68. package/dist/cjs/api/types/RecencyWeight.js +12 -0
  69. package/dist/cjs/api/types/RelationshipDetectConfig.d.ts +4 -0
  70. package/dist/cjs/api/types/RelationshipDetectConfig.js +5 -0
  71. package/dist/cjs/api/types/User.d.ts +0 -2
  72. package/dist/cjs/api/types/index.d.ts +12 -4
  73. package/dist/cjs/api/types/index.js +12 -4
  74. package/dist/cjs/serialization/index.d.ts +1 -1
  75. package/dist/cjs/serialization/index.js +1 -1
  76. package/dist/cjs/serialization/resources/graph/client/requests/AddTripleRequest.d.ts +2 -0
  77. package/dist/cjs/serialization/resources/graph/client/requests/AddTripleRequest.js +2 -0
  78. package/dist/cjs/serialization/resources/graph/client/requests/CreateGraphRequest.d.ts +0 -2
  79. package/dist/cjs/serialization/resources/graph/client/requests/CreateGraphRequest.js +0 -2
  80. package/dist/cjs/serialization/resources/graph/client/requests/DetectPatternsRequest.d.ts +24 -0
  81. package/dist/cjs/serialization/resources/graph/client/requests/DetectPatternsRequest.js +55 -0
  82. package/dist/cjs/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +0 -2
  83. package/dist/cjs/serialization/resources/graph/client/requests/GraphSearchQuery.js +0 -2
  84. package/dist/cjs/serialization/resources/graph/client/requests/UpdateGraphRequest.d.ts +0 -2
  85. package/dist/cjs/serialization/resources/graph/client/requests/UpdateGraphRequest.js +0 -2
  86. package/dist/cjs/serialization/resources/graph/client/requests/index.d.ts +1 -0
  87. package/dist/cjs/serialization/resources/graph/client/requests/index.js +3 -1
  88. package/dist/cjs/serialization/resources/graph/resources/edge/client/index.d.ts +1 -0
  89. package/dist/cjs/serialization/resources/graph/resources/edge/client/index.js +4 -0
  90. package/dist/cjs/serialization/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.d.ts +17 -0
  91. package/dist/cjs/serialization/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.js +48 -0
  92. package/dist/cjs/serialization/resources/graph/resources/edge/client/requests/index.d.ts +1 -0
  93. package/dist/cjs/serialization/resources/graph/resources/edge/client/requests/index.js +5 -0
  94. package/dist/cjs/serialization/resources/graph/resources/index.d.ts +2 -0
  95. package/dist/cjs/serialization/resources/graph/resources/index.js +5 -0
  96. package/dist/cjs/serialization/resources/graph/resources/node/client/index.d.ts +1 -0
  97. package/dist/cjs/serialization/resources/graph/resources/node/client/index.js +4 -0
  98. package/dist/cjs/serialization/resources/graph/resources/node/client/requests/UpdateNodeRequest.d.ts +15 -0
  99. package/dist/cjs/serialization/resources/graph/resources/node/client/requests/UpdateNodeRequest.js +46 -0
  100. package/dist/cjs/serialization/resources/graph/resources/node/client/requests/index.d.ts +1 -0
  101. package/dist/cjs/serialization/resources/graph/resources/node/client/requests/index.js +5 -0
  102. package/dist/cjs/serialization/resources/index.d.ts +1 -2
  103. package/dist/cjs/serialization/resources/index.js +2 -3
  104. package/dist/cjs/serialization/resources/thread/index.d.ts +0 -1
  105. package/dist/cjs/serialization/resources/thread/index.js +0 -1
  106. package/dist/cjs/serialization/resources/user/client/requests/CreateUserRequest.d.ts +0 -2
  107. package/dist/cjs/serialization/resources/user/client/requests/CreateUserRequest.js +0 -2
  108. package/dist/cjs/serialization/resources/user/client/requests/UpdateUserRequest.d.ts +0 -2
  109. package/dist/cjs/serialization/resources/user/client/requests/UpdateUserRequest.js +0 -2
  110. package/dist/cjs/serialization/types/ClusterDetectConfig.d.ts +10 -0
  111. package/dist/cjs/serialization/types/ClusterDetectConfig.js +41 -0
  112. package/dist/cjs/serialization/types/CoOccurrenceDetectConfig.d.ts +12 -0
  113. package/dist/cjs/serialization/types/{FactRatingExamples.js → CoOccurrenceDetectConfig.js} +3 -5
  114. package/dist/cjs/serialization/types/DetectConfig.d.ts +21 -0
  115. package/dist/cjs/serialization/types/DetectConfig.js +52 -0
  116. package/dist/cjs/serialization/types/DetectPatternsResponse.d.ts +15 -0
  117. package/dist/cjs/serialization/types/DetectPatternsResponse.js +46 -0
  118. package/dist/cjs/serialization/types/GetTaskResponse.d.ts +1 -0
  119. package/dist/cjs/serialization/types/GetTaskResponse.js +1 -0
  120. package/dist/cjs/serialization/types/Graph.d.ts +0 -2
  121. package/dist/cjs/serialization/types/Graph.js +0 -2
  122. package/dist/cjs/serialization/types/HubDetectConfig.d.ts +12 -0
  123. package/dist/cjs/serialization/types/{ModelsFactRatingExamples.js → HubDetectConfig.js} +3 -5
  124. package/dist/cjs/serialization/types/MessageListResponse.d.ts +2 -0
  125. package/dist/cjs/serialization/types/MessageListResponse.js +2 -0
  126. package/dist/cjs/serialization/types/PathDetectConfig.d.ts +12 -0
  127. package/dist/cjs/serialization/types/{FactRatingInstruction.js → PathDetectConfig.js} +3 -5
  128. package/dist/cjs/serialization/types/PatternExample.d.ts +13 -0
  129. package/dist/cjs/serialization/types/{ModelsFactRatingInstruction.js → PatternExample.js} +4 -5
  130. package/dist/cjs/serialization/types/PatternMetadata.d.ts +14 -0
  131. package/dist/cjs/serialization/types/PatternMetadata.js +45 -0
  132. package/dist/cjs/serialization/types/PatternResult.d.ts +19 -0
  133. package/dist/cjs/serialization/types/PatternResult.js +50 -0
  134. package/dist/cjs/serialization/types/PatternSeeds.d.ts +14 -0
  135. package/dist/cjs/serialization/types/PatternSeeds.js +45 -0
  136. package/dist/cjs/serialization/types/RecencyWeight.d.ts +10 -0
  137. package/dist/cjs/serialization/{resources/thread/types/ThreadGetUserContextRequestMode.js → types/RecencyWeight.js} +3 -3
  138. package/dist/cjs/serialization/types/RelationshipDetectConfig.d.ts +10 -0
  139. package/dist/cjs/serialization/types/RelationshipDetectConfig.js +41 -0
  140. package/dist/cjs/serialization/types/User.d.ts +0 -2
  141. package/dist/cjs/serialization/types/User.js +0 -2
  142. package/dist/cjs/serialization/types/index.d.ts +12 -4
  143. package/dist/cjs/serialization/types/index.js +12 -4
  144. package/dist/cjs/version.d.ts +1 -1
  145. package/dist/cjs/version.js +1 -1
  146. package/dist/esm/Client.mjs +2 -2
  147. package/dist/esm/api/errors/ForbiddenError.d.mts +9 -0
  148. package/dist/esm/api/errors/ForbiddenError.mjs +15 -0
  149. package/dist/esm/api/errors/index.d.mts +1 -0
  150. package/dist/esm/api/errors/index.mjs +1 -0
  151. package/dist/esm/api/index.d.mts +1 -1
  152. package/dist/esm/api/index.mjs +1 -1
  153. package/dist/esm/api/resources/graph/client/Client.d.mts +21 -2
  154. package/dist/esm/api/resources/graph/client/Client.mjs +117 -3
  155. package/dist/esm/api/resources/graph/client/requests/AddTripleRequest.d.mts +4 -0
  156. package/dist/esm/api/resources/graph/client/requests/CreateGraphRequest.d.mts +0 -2
  157. package/dist/esm/api/resources/graph/client/requests/DetectPatternsRequest.d.mts +37 -0
  158. package/dist/esm/api/resources/graph/client/requests/GraphListAllRequest.d.mts +11 -1
  159. package/dist/esm/api/resources/graph/client/requests/GraphSearchQuery.d.mts +0 -4
  160. package/dist/esm/api/resources/graph/client/requests/UpdateGraphRequest.d.mts +0 -2
  161. package/dist/esm/api/resources/graph/client/requests/index.d.mts +1 -0
  162. package/dist/esm/api/resources/graph/resources/edge/client/Client.d.mts +17 -0
  163. package/dist/esm/api/resources/graph/resources/edge/client/Client.mjs +106 -0
  164. package/dist/esm/api/resources/graph/resources/edge/client/index.d.mts +1 -0
  165. package/dist/esm/api/resources/graph/resources/edge/client/index.mjs +1 -1
  166. package/dist/esm/api/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.d.mts +21 -0
  167. package/dist/esm/api/resources/graph/resources/edge/client/requests/index.d.mts +1 -0
  168. package/dist/esm/api/resources/graph/resources/edge/client/requests/index.mjs +1 -0
  169. package/dist/esm/api/resources/graph/resources/index.d.mts +2 -0
  170. package/dist/esm/api/resources/graph/resources/index.mjs +2 -0
  171. package/dist/esm/api/resources/graph/resources/node/client/Client.d.mts +17 -0
  172. package/dist/esm/api/resources/graph/resources/node/client/Client.mjs +106 -0
  173. package/dist/esm/api/resources/graph/resources/node/client/index.d.mts +1 -0
  174. package/dist/esm/api/resources/graph/resources/node/client/index.mjs +1 -1
  175. package/dist/esm/api/resources/graph/resources/node/client/requests/UpdateNodeRequest.d.mts +17 -0
  176. package/dist/esm/api/resources/graph/resources/node/client/requests/index.d.mts +1 -0
  177. package/dist/esm/api/resources/graph/resources/node/client/requests/index.mjs +1 -0
  178. package/dist/esm/api/resources/index.d.mts +1 -2
  179. package/dist/esm/api/resources/index.mjs +1 -2
  180. package/dist/esm/api/resources/thread/client/Client.d.mts +1 -3
  181. package/dist/esm/api/resources/thread/client/Client.mjs +2 -13
  182. package/dist/esm/api/resources/thread/client/requests/ThreadGetUserContextRequest.d.mts +1 -12
  183. package/dist/esm/api/resources/thread/index.d.mts +0 -1
  184. package/dist/esm/api/resources/thread/index.mjs +0 -1
  185. package/dist/esm/api/resources/user/client/Client.d.mts +4 -1
  186. package/dist/esm/api/resources/user/client/Client.mjs +14 -2
  187. package/dist/esm/api/resources/user/client/requests/CreateUserRequest.d.mts +0 -3
  188. package/dist/esm/api/resources/user/client/requests/UpdateUserRequest.d.mts +0 -3
  189. package/dist/esm/api/resources/user/client/requests/UserListOrderedRequest.d.mts +16 -1
  190. package/dist/esm/api/types/ClusterDetectConfig.d.mts +4 -0
  191. package/dist/esm/api/types/CoOccurrenceDetectConfig.d.mts +7 -0
  192. package/dist/esm/api/types/CoOccurrenceDetectConfig.mjs +4 -0
  193. package/dist/esm/api/types/DetectConfig.d.mts +16 -0
  194. package/dist/esm/api/types/DetectConfig.mjs +4 -0
  195. package/dist/esm/api/types/DetectPatternsResponse.d.mts +10 -0
  196. package/dist/esm/api/types/DetectPatternsResponse.mjs +4 -0
  197. package/dist/esm/api/types/GetTaskResponse.d.mts +1 -0
  198. package/dist/esm/api/types/Graph.d.mts +0 -2
  199. package/dist/esm/api/types/HubDetectConfig.d.mts +7 -0
  200. package/dist/esm/api/types/HubDetectConfig.mjs +4 -0
  201. package/dist/esm/api/types/MessageListResponse.d.mts +4 -0
  202. package/dist/esm/api/types/PathDetectConfig.d.mts +7 -0
  203. package/dist/esm/api/types/PathDetectConfig.mjs +4 -0
  204. package/dist/esm/api/types/PatternExample.d.mts +9 -0
  205. package/dist/esm/api/types/PatternExample.mjs +4 -0
  206. package/dist/esm/api/types/PatternMetadata.d.mts +11 -0
  207. package/dist/esm/api/types/PatternMetadata.mjs +4 -0
  208. package/dist/esm/api/types/PatternResult.d.mts +20 -0
  209. package/dist/esm/api/types/PatternResult.mjs +4 -0
  210. package/dist/esm/api/types/PatternSeeds.d.mts +11 -0
  211. package/dist/esm/api/types/PatternSeeds.mjs +4 -0
  212. package/dist/esm/api/types/RecencyWeight.d.mts +10 -0
  213. package/dist/esm/api/types/RecencyWeight.mjs +9 -0
  214. package/dist/esm/api/types/RelationshipDetectConfig.d.mts +4 -0
  215. package/dist/esm/api/types/RelationshipDetectConfig.mjs +4 -0
  216. package/dist/esm/api/types/User.d.mts +0 -2
  217. package/dist/esm/api/types/index.d.mts +12 -4
  218. package/dist/esm/api/types/index.mjs +12 -4
  219. package/dist/esm/serialization/index.d.mts +1 -1
  220. package/dist/esm/serialization/index.mjs +1 -1
  221. package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.d.mts +2 -0
  222. package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.mjs +2 -0
  223. package/dist/esm/serialization/resources/graph/client/requests/CreateGraphRequest.d.mts +0 -2
  224. package/dist/esm/serialization/resources/graph/client/requests/CreateGraphRequest.mjs +0 -2
  225. package/dist/esm/serialization/resources/graph/client/requests/DetectPatternsRequest.d.mts +24 -0
  226. package/dist/esm/serialization/resources/graph/client/requests/DetectPatternsRequest.mjs +19 -0
  227. package/dist/esm/serialization/resources/graph/client/requests/GraphSearchQuery.d.mts +0 -2
  228. package/dist/esm/serialization/resources/graph/client/requests/GraphSearchQuery.mjs +0 -2
  229. package/dist/esm/serialization/resources/graph/client/requests/UpdateGraphRequest.d.mts +0 -2
  230. package/dist/esm/serialization/resources/graph/client/requests/UpdateGraphRequest.mjs +0 -2
  231. package/dist/esm/serialization/resources/graph/client/requests/index.d.mts +1 -0
  232. package/dist/esm/serialization/resources/graph/client/requests/index.mjs +1 -0
  233. package/dist/esm/serialization/resources/graph/resources/edge/client/index.d.mts +1 -0
  234. package/dist/esm/serialization/resources/graph/resources/edge/client/index.mjs +1 -0
  235. package/dist/esm/serialization/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.d.mts +17 -0
  236. package/dist/esm/serialization/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.mjs +12 -0
  237. package/dist/esm/serialization/resources/graph/resources/edge/client/requests/index.d.mts +1 -0
  238. package/dist/esm/serialization/resources/graph/resources/edge/client/requests/index.mjs +1 -0
  239. package/dist/esm/serialization/resources/graph/resources/index.d.mts +2 -0
  240. package/dist/esm/serialization/resources/graph/resources/index.mjs +2 -0
  241. package/dist/esm/serialization/resources/graph/resources/node/client/index.d.mts +1 -0
  242. package/dist/esm/serialization/resources/graph/resources/node/client/index.mjs +1 -0
  243. package/dist/esm/serialization/resources/graph/resources/node/client/requests/UpdateNodeRequest.d.mts +15 -0
  244. package/dist/esm/serialization/resources/graph/resources/node/client/requests/UpdateNodeRequest.mjs +10 -0
  245. package/dist/esm/serialization/resources/graph/resources/node/client/requests/index.d.mts +1 -0
  246. package/dist/esm/serialization/resources/graph/resources/node/client/requests/index.mjs +1 -0
  247. package/dist/esm/serialization/resources/index.d.mts +1 -2
  248. package/dist/esm/serialization/resources/index.mjs +1 -2
  249. package/dist/esm/serialization/resources/thread/index.d.mts +0 -1
  250. package/dist/esm/serialization/resources/thread/index.mjs +0 -1
  251. package/dist/esm/serialization/resources/user/client/requests/CreateUserRequest.d.mts +0 -2
  252. package/dist/esm/serialization/resources/user/client/requests/CreateUserRequest.mjs +0 -2
  253. package/dist/esm/serialization/resources/user/client/requests/UpdateUserRequest.d.mts +0 -2
  254. package/dist/esm/serialization/resources/user/client/requests/UpdateUserRequest.mjs +0 -2
  255. package/dist/esm/serialization/types/ClusterDetectConfig.d.mts +10 -0
  256. package/dist/esm/serialization/types/ClusterDetectConfig.mjs +5 -0
  257. package/dist/esm/serialization/types/CoOccurrenceDetectConfig.d.mts +12 -0
  258. package/dist/esm/serialization/types/CoOccurrenceDetectConfig.mjs +7 -0
  259. package/dist/esm/serialization/types/DetectConfig.d.mts +21 -0
  260. package/dist/esm/serialization/types/DetectConfig.mjs +16 -0
  261. package/dist/esm/serialization/types/DetectPatternsResponse.d.mts +15 -0
  262. package/dist/esm/serialization/types/DetectPatternsResponse.mjs +10 -0
  263. package/dist/esm/serialization/types/GetTaskResponse.d.mts +1 -0
  264. package/dist/esm/serialization/types/GetTaskResponse.mjs +1 -0
  265. package/dist/esm/serialization/types/Graph.d.mts +0 -2
  266. package/dist/esm/serialization/types/Graph.mjs +0 -2
  267. package/dist/esm/serialization/types/HubDetectConfig.d.mts +12 -0
  268. package/dist/esm/serialization/types/HubDetectConfig.mjs +7 -0
  269. package/dist/esm/serialization/types/MessageListResponse.d.mts +2 -0
  270. package/dist/esm/serialization/types/MessageListResponse.mjs +2 -0
  271. package/dist/esm/serialization/types/PathDetectConfig.d.mts +12 -0
  272. package/dist/esm/serialization/types/PathDetectConfig.mjs +7 -0
  273. package/dist/esm/serialization/types/PatternExample.d.mts +13 -0
  274. package/dist/esm/serialization/types/PatternExample.mjs +8 -0
  275. package/dist/esm/serialization/types/PatternMetadata.d.mts +14 -0
  276. package/dist/esm/serialization/types/PatternMetadata.mjs +9 -0
  277. package/dist/esm/serialization/types/PatternResult.d.mts +19 -0
  278. package/dist/esm/serialization/types/PatternResult.mjs +14 -0
  279. package/dist/esm/serialization/types/PatternSeeds.d.mts +14 -0
  280. package/dist/esm/serialization/types/PatternSeeds.mjs +9 -0
  281. package/dist/esm/serialization/types/RecencyWeight.d.mts +10 -0
  282. package/dist/esm/serialization/types/RecencyWeight.mjs +5 -0
  283. package/dist/esm/serialization/types/RelationshipDetectConfig.d.mts +10 -0
  284. package/dist/esm/serialization/types/RelationshipDetectConfig.mjs +5 -0
  285. package/dist/esm/serialization/types/User.d.mts +0 -2
  286. package/dist/esm/serialization/types/User.mjs +0 -2
  287. package/dist/esm/serialization/types/index.d.mts +12 -4
  288. package/dist/esm/serialization/types/index.mjs +12 -4
  289. package/dist/esm/version.d.mts +1 -1
  290. package/dist/esm/version.mjs +1 -1
  291. package/package.json +2 -2
  292. package/reference.md +212 -3
  293. package/dist/cjs/api/resources/thread/types/ThreadGetUserContextRequestMode.d.ts +0 -8
  294. package/dist/cjs/api/resources/thread/types/ThreadGetUserContextRequestMode.js +0 -10
  295. package/dist/cjs/api/resources/thread/types/index.d.ts +0 -1
  296. package/dist/cjs/api/resources/thread/types/index.js +0 -17
  297. package/dist/cjs/api/types/FactRatingExamples.d.ts +0 -8
  298. package/dist/cjs/api/types/FactRatingInstruction.d.ts +0 -21
  299. package/dist/cjs/api/types/ModelsFactRatingExamples.d.ts +0 -8
  300. package/dist/cjs/api/types/ModelsFactRatingInstruction.d.ts +0 -21
  301. package/dist/cjs/serialization/resources/thread/types/ThreadGetUserContextRequestMode.d.ts +0 -10
  302. package/dist/cjs/serialization/resources/thread/types/index.d.ts +0 -1
  303. package/dist/cjs/serialization/resources/thread/types/index.js +0 -17
  304. package/dist/cjs/serialization/types/FactRatingExamples.d.ts +0 -14
  305. package/dist/cjs/serialization/types/FactRatingInstruction.d.ts +0 -14
  306. package/dist/cjs/serialization/types/ModelsFactRatingExamples.d.ts +0 -14
  307. package/dist/cjs/serialization/types/ModelsFactRatingInstruction.d.ts +0 -14
  308. package/dist/esm/api/resources/thread/types/ThreadGetUserContextRequestMode.d.mts +0 -8
  309. package/dist/esm/api/resources/thread/types/ThreadGetUserContextRequestMode.mjs +0 -7
  310. package/dist/esm/api/resources/thread/types/index.d.mts +0 -1
  311. package/dist/esm/api/resources/thread/types/index.mjs +0 -1
  312. package/dist/esm/api/types/FactRatingExamples.d.mts +0 -8
  313. package/dist/esm/api/types/FactRatingInstruction.d.mts +0 -21
  314. package/dist/esm/api/types/ModelsFactRatingExamples.d.mts +0 -8
  315. package/dist/esm/api/types/ModelsFactRatingInstruction.d.mts +0 -21
  316. package/dist/esm/serialization/resources/thread/types/ThreadGetUserContextRequestMode.d.mts +0 -10
  317. package/dist/esm/serialization/resources/thread/types/ThreadGetUserContextRequestMode.mjs +0 -5
  318. package/dist/esm/serialization/resources/thread/types/index.d.mts +0 -1
  319. package/dist/esm/serialization/resources/thread/types/index.mjs +0 -1
  320. package/dist/esm/serialization/types/FactRatingExamples.d.mts +0 -14
  321. package/dist/esm/serialization/types/FactRatingExamples.mjs +0 -9
  322. package/dist/esm/serialization/types/FactRatingInstruction.d.mts +0 -14
  323. package/dist/esm/serialization/types/FactRatingInstruction.mjs +0 -9
  324. package/dist/esm/serialization/types/ModelsFactRatingExamples.d.mts +0 -14
  325. package/dist/esm/serialization/types/ModelsFactRatingExamples.mjs +0 -9
  326. package/dist/esm/serialization/types/ModelsFactRatingInstruction.d.mts +0 -14
  327. package/dist/esm/serialization/types/ModelsFactRatingInstruction.mjs +0 -9
  328. /package/dist/cjs/api/{types/FactRatingExamples.js → resources/graph/client/requests/DetectPatternsRequest.js} +0 -0
  329. /package/dist/cjs/api/{types/FactRatingInstruction.js → resources/graph/resources/edge/client/requests/UpdateEdgeRequest.js} +0 -0
  330. /package/dist/cjs/api/{types/ModelsFactRatingExamples.js → resources/graph/resources/node/client/requests/UpdateNodeRequest.js} +0 -0
  331. /package/dist/cjs/api/types/{ModelsFactRatingInstruction.js → ClusterDetectConfig.js} +0 -0
  332. /package/dist/esm/api/{types/FactRatingExamples.mjs → resources/graph/client/requests/DetectPatternsRequest.mjs} +0 -0
  333. /package/dist/esm/api/{types/FactRatingInstruction.mjs → resources/graph/resources/edge/client/requests/UpdateEdgeRequest.mjs} +0 -0
  334. /package/dist/esm/api/{types/ModelsFactRatingExamples.mjs → resources/graph/resources/node/client/requests/UpdateNodeRequest.mjs} +0 -0
  335. /package/dist/esm/api/types/{ModelsFactRatingInstruction.mjs → ClusterDetectConfig.mjs} +0 -0
@@ -293,6 +293,7 @@ export class Edge {
293
293
  * @param {Edge.RequestOptions} requestOptions - Request-specific configuration.
294
294
  *
295
295
  * @throws {@link Zep.BadRequestError}
296
+ * @throws {@link Zep.NotFoundError}
296
297
  * @throws {@link Zep.InternalServerError}
297
298
  *
298
299
  * @example
@@ -334,6 +335,14 @@ export class Edge {
334
335
  skipValidation: true,
335
336
  breadcrumbsPrefix: ["response"],
336
337
  }), _response.rawResponse);
338
+ case 404:
339
+ throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
340
+ unrecognizedObjectKeys: "passthrough",
341
+ allowUnrecognizedUnionMembers: true,
342
+ allowUnrecognizedEnumValues: true,
343
+ skipValidation: true,
344
+ breadcrumbsPrefix: ["response"],
345
+ }), _response.rawResponse);
337
346
  case 500:
338
347
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
339
348
  unrecognizedObjectKeys: "passthrough",
@@ -367,6 +376,103 @@ export class Edge {
367
376
  }
368
377
  });
369
378
  }
379
+ /**
380
+ * Updates an entity edge by UUID.
381
+ *
382
+ * @param {string} uuid - Edge UUID
383
+ * @param {Zep.graph.UpdateEdgeRequest} request
384
+ * @param {Edge.RequestOptions} requestOptions - Request-specific configuration.
385
+ *
386
+ * @throws {@link Zep.BadRequestError}
387
+ * @throws {@link Zep.NotFoundError}
388
+ * @throws {@link Zep.InternalServerError}
389
+ *
390
+ * @example
391
+ * await client.graph.edge.update("uuid")
392
+ */
393
+ update(uuid, request = {}, requestOptions) {
394
+ return core.HttpResponsePromise.fromPromise(this.__update(uuid, request, requestOptions));
395
+ }
396
+ __update(uuid_1) {
397
+ return __awaiter(this, arguments, void 0, function* (uuid, request = {}, requestOptions) {
398
+ var _a, _b, _c, _d;
399
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
400
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ZepEnvironment.Default, `graph/edge/${encodeURIComponent(uuid)}`),
401
+ method: "PATCH",
402
+ headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
403
+ contentType: "application/json",
404
+ requestType: "json",
405
+ body: serializers.graph.UpdateEdgeRequest.jsonOrThrow(request, {
406
+ unrecognizedObjectKeys: "strip",
407
+ omitUndefined: true,
408
+ }),
409
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
410
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
411
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
412
+ });
413
+ if (_response.ok) {
414
+ return {
415
+ data: serializers.EntityEdge.parseOrThrow(_response.body, {
416
+ unrecognizedObjectKeys: "passthrough",
417
+ allowUnrecognizedUnionMembers: true,
418
+ allowUnrecognizedEnumValues: true,
419
+ skipValidation: true,
420
+ breadcrumbsPrefix: ["response"],
421
+ }),
422
+ rawResponse: _response.rawResponse,
423
+ };
424
+ }
425
+ if (_response.error.reason === "status-code") {
426
+ switch (_response.error.statusCode) {
427
+ case 400:
428
+ throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
429
+ unrecognizedObjectKeys: "passthrough",
430
+ allowUnrecognizedUnionMembers: true,
431
+ allowUnrecognizedEnumValues: true,
432
+ skipValidation: true,
433
+ breadcrumbsPrefix: ["response"],
434
+ }), _response.rawResponse);
435
+ case 404:
436
+ throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
437
+ unrecognizedObjectKeys: "passthrough",
438
+ allowUnrecognizedUnionMembers: true,
439
+ allowUnrecognizedEnumValues: true,
440
+ skipValidation: true,
441
+ breadcrumbsPrefix: ["response"],
442
+ }), _response.rawResponse);
443
+ case 500:
444
+ throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
445
+ unrecognizedObjectKeys: "passthrough",
446
+ allowUnrecognizedUnionMembers: true,
447
+ allowUnrecognizedEnumValues: true,
448
+ skipValidation: true,
449
+ breadcrumbsPrefix: ["response"],
450
+ }), _response.rawResponse);
451
+ default:
452
+ throw new errors.ZepError({
453
+ statusCode: _response.error.statusCode,
454
+ body: _response.error.body,
455
+ rawResponse: _response.rawResponse,
456
+ });
457
+ }
458
+ }
459
+ switch (_response.error.reason) {
460
+ case "non-json":
461
+ throw new errors.ZepError({
462
+ statusCode: _response.error.statusCode,
463
+ body: _response.error.rawBody,
464
+ rawResponse: _response.rawResponse,
465
+ });
466
+ case "timeout":
467
+ throw new errors.ZepTimeoutError("Timeout exceeded when calling PATCH /graph/edge/{uuid}.");
468
+ case "unknown":
469
+ throw new errors.ZepError({
470
+ message: _response.error.errorMessage,
471
+ rawResponse: _response.rawResponse,
472
+ });
473
+ }
474
+ });
475
+ }
370
476
  _getCustomAuthorizationHeaders() {
371
477
  return __awaiter(this, void 0, void 0, function* () {
372
478
  var _a;
@@ -1 +1,2 @@
1
1
  export {};
2
+ export * from "./requests/index.mjs";
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface UpdateEdgeRequest {
9
+ /** Updated attributes. Merged with existing attributes. Set a key to null to delete it. */
10
+ attributes?: Record<string, unknown>;
11
+ /** Updated time at which the edge expires */
12
+ expiredAt?: string;
13
+ /** Updated fact for the edge */
14
+ fact?: string;
15
+ /** Updated time at which the fact stopped being true */
16
+ invalidAt?: string;
17
+ /** Updated name (relationship type) for the edge */
18
+ name?: string;
19
+ /** Updated time at which the fact becomes true */
20
+ validAt?: string;
21
+ }
@@ -0,0 +1 @@
1
+ export { type UpdateEdgeRequest } from "./UpdateEdgeRequest.mjs";
@@ -1,4 +1,6 @@
1
1
  export * as edge from "./edge/index.mjs";
2
2
  export * as episode from "./episode/index.mjs";
3
3
  export * as node from "./node/index.mjs";
4
+ export * from "./edge/client/requests/index.mjs";
4
5
  export * from "./episode/client/requests/index.mjs";
6
+ export * from "./node/client/requests/index.mjs";
@@ -1,4 +1,6 @@
1
1
  export * as edge from "./edge/index.mjs";
2
2
  export * as episode from "./episode/index.mjs";
3
3
  export * as node from "./node/index.mjs";
4
+ export * from "./edge/client/requests/index.mjs";
4
5
  export * from "./episode/client/requests/index.mjs";
6
+ export * from "./node/client/requests/index.mjs";
@@ -108,6 +108,7 @@ export declare class Node {
108
108
  * @param {Node.RequestOptions} requestOptions - Request-specific configuration.
109
109
  *
110
110
  * @throws {@link Zep.BadRequestError}
111
+ * @throws {@link Zep.NotFoundError}
111
112
  * @throws {@link Zep.InternalServerError}
112
113
  *
113
114
  * @example
@@ -115,6 +116,22 @@ export declare class Node {
115
116
  */
116
117
  delete(uuid: string, requestOptions?: Node.RequestOptions): core.HttpResponsePromise<Zep.SuccessResponse>;
117
118
  private __delete;
119
+ /**
120
+ * Updates an entity node by UUID.
121
+ *
122
+ * @param {string} uuid - Node UUID
123
+ * @param {Zep.graph.UpdateNodeRequest} request
124
+ * @param {Node.RequestOptions} requestOptions - Request-specific configuration.
125
+ *
126
+ * @throws {@link Zep.BadRequestError}
127
+ * @throws {@link Zep.NotFoundError}
128
+ * @throws {@link Zep.InternalServerError}
129
+ *
130
+ * @example
131
+ * await client.graph.node.update("uuid")
132
+ */
133
+ update(uuid: string, request?: Zep.graph.UpdateNodeRequest, requestOptions?: Node.RequestOptions): core.HttpResponsePromise<Zep.EntityNode>;
134
+ private __update;
118
135
  protected _getCustomAuthorizationHeaders(): Promise<{
119
136
  Authorization: string;
120
137
  }>;
@@ -455,6 +455,7 @@ export class Node {
455
455
  * @param {Node.RequestOptions} requestOptions - Request-specific configuration.
456
456
  *
457
457
  * @throws {@link Zep.BadRequestError}
458
+ * @throws {@link Zep.NotFoundError}
458
459
  * @throws {@link Zep.InternalServerError}
459
460
  *
460
461
  * @example
@@ -496,6 +497,14 @@ export class Node {
496
497
  skipValidation: true,
497
498
  breadcrumbsPrefix: ["response"],
498
499
  }), _response.rawResponse);
500
+ case 404:
501
+ throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
502
+ unrecognizedObjectKeys: "passthrough",
503
+ allowUnrecognizedUnionMembers: true,
504
+ allowUnrecognizedEnumValues: true,
505
+ skipValidation: true,
506
+ breadcrumbsPrefix: ["response"],
507
+ }), _response.rawResponse);
499
508
  case 500:
500
509
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
501
510
  unrecognizedObjectKeys: "passthrough",
@@ -529,6 +538,103 @@ export class Node {
529
538
  }
530
539
  });
531
540
  }
541
+ /**
542
+ * Updates an entity node by UUID.
543
+ *
544
+ * @param {string} uuid - Node UUID
545
+ * @param {Zep.graph.UpdateNodeRequest} request
546
+ * @param {Node.RequestOptions} requestOptions - Request-specific configuration.
547
+ *
548
+ * @throws {@link Zep.BadRequestError}
549
+ * @throws {@link Zep.NotFoundError}
550
+ * @throws {@link Zep.InternalServerError}
551
+ *
552
+ * @example
553
+ * await client.graph.node.update("uuid")
554
+ */
555
+ update(uuid, request = {}, requestOptions) {
556
+ return core.HttpResponsePromise.fromPromise(this.__update(uuid, request, requestOptions));
557
+ }
558
+ __update(uuid_1) {
559
+ return __awaiter(this, arguments, void 0, function* (uuid, request = {}, requestOptions) {
560
+ var _a, _b, _c, _d;
561
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
562
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ZepEnvironment.Default, `graph/node/${encodeURIComponent(uuid)}`),
563
+ method: "PATCH",
564
+ headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
565
+ contentType: "application/json",
566
+ requestType: "json",
567
+ body: serializers.graph.UpdateNodeRequest.jsonOrThrow(request, {
568
+ unrecognizedObjectKeys: "strip",
569
+ omitUndefined: true,
570
+ }),
571
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
572
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
573
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
574
+ });
575
+ if (_response.ok) {
576
+ return {
577
+ data: serializers.EntityNode.parseOrThrow(_response.body, {
578
+ unrecognizedObjectKeys: "passthrough",
579
+ allowUnrecognizedUnionMembers: true,
580
+ allowUnrecognizedEnumValues: true,
581
+ skipValidation: true,
582
+ breadcrumbsPrefix: ["response"],
583
+ }),
584
+ rawResponse: _response.rawResponse,
585
+ };
586
+ }
587
+ if (_response.error.reason === "status-code") {
588
+ switch (_response.error.statusCode) {
589
+ case 400:
590
+ throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
591
+ unrecognizedObjectKeys: "passthrough",
592
+ allowUnrecognizedUnionMembers: true,
593
+ allowUnrecognizedEnumValues: true,
594
+ skipValidation: true,
595
+ breadcrumbsPrefix: ["response"],
596
+ }), _response.rawResponse);
597
+ case 404:
598
+ throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
599
+ unrecognizedObjectKeys: "passthrough",
600
+ allowUnrecognizedUnionMembers: true,
601
+ allowUnrecognizedEnumValues: true,
602
+ skipValidation: true,
603
+ breadcrumbsPrefix: ["response"],
604
+ }), _response.rawResponse);
605
+ case 500:
606
+ throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
607
+ unrecognizedObjectKeys: "passthrough",
608
+ allowUnrecognizedUnionMembers: true,
609
+ allowUnrecognizedEnumValues: true,
610
+ skipValidation: true,
611
+ breadcrumbsPrefix: ["response"],
612
+ }), _response.rawResponse);
613
+ default:
614
+ throw new errors.ZepError({
615
+ statusCode: _response.error.statusCode,
616
+ body: _response.error.body,
617
+ rawResponse: _response.rawResponse,
618
+ });
619
+ }
620
+ }
621
+ switch (_response.error.reason) {
622
+ case "non-json":
623
+ throw new errors.ZepError({
624
+ statusCode: _response.error.statusCode,
625
+ body: _response.error.rawBody,
626
+ rawResponse: _response.rawResponse,
627
+ });
628
+ case "timeout":
629
+ throw new errors.ZepTimeoutError("Timeout exceeded when calling PATCH /graph/node/{uuid}.");
630
+ case "unknown":
631
+ throw new errors.ZepError({
632
+ message: _response.error.errorMessage,
633
+ rawResponse: _response.rawResponse,
634
+ });
635
+ }
636
+ });
637
+ }
532
638
  _getCustomAuthorizationHeaders() {
533
639
  return __awaiter(this, void 0, void 0, function* () {
534
640
  var _a;
@@ -1 +1,2 @@
1
1
  export {};
2
+ export * from "./requests/index.mjs";
@@ -1 +1 @@
1
- export {};
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface UpdateNodeRequest {
9
+ /** Updated attributes. Merged with existing attributes. Set a key to null to delete it. */
10
+ attributes?: Record<string, unknown>;
11
+ /** Updated labels for the node */
12
+ labels?: string[];
13
+ /** Updated name for the node */
14
+ name?: string;
15
+ /** Updated summary for the node */
16
+ summary?: string;
17
+ }
@@ -0,0 +1 @@
1
+ export { type UpdateNodeRequest } from "./UpdateNodeRequest.mjs";
@@ -1,9 +1,8 @@
1
- export * as thread from "./thread/index.mjs";
2
- export * from "./thread/types/index.mjs";
3
1
  export * as context from "./context/index.mjs";
4
2
  export * as graph from "./graph/index.mjs";
5
3
  export * as project from "./project/index.mjs";
6
4
  export * as task from "./task/index.mjs";
5
+ export * as thread from "./thread/index.mjs";
7
6
  export * as user from "./user/index.mjs";
8
7
  export * from "./context/client/requests/index.mjs";
9
8
  export * from "./graph/client/requests/index.mjs";
@@ -1,9 +1,8 @@
1
- export * as thread from "./thread/index.mjs";
2
- export * from "./thread/types/index.mjs";
3
1
  export * as context from "./context/index.mjs";
4
2
  export * as graph from "./graph/index.mjs";
5
3
  export * as project from "./project/index.mjs";
6
4
  export * as task from "./task/index.mjs";
5
+ export * as thread from "./thread/index.mjs";
7
6
  export * as user from "./user/index.mjs";
8
7
  export * from "./context/client/requests/index.mjs";
9
8
  export * from "./graph/client/requests/index.mjs";
@@ -93,9 +93,7 @@ export declare class Thread {
93
93
  *
94
94
  * @example
95
95
  * await client.thread.getUserContext("threadId", {
96
- * minRating: 1.1,
97
- * templateId: "template_id",
98
- * mode: "basic"
96
+ * templateId: "template_id"
99
97
  * })
100
98
  */
101
99
  getUserContext(threadId: string, request?: Zep.ThreadGetUserContextRequest, requestOptions?: Thread.RequestOptions): core.HttpResponsePromise<Zep.ThreadContextResponse>;
@@ -309,9 +309,7 @@ export class Thread {
309
309
  *
310
310
  * @example
311
311
  * await client.thread.getUserContext("threadId", {
312
- * minRating: 1.1,
313
- * templateId: "template_id",
314
- * mode: "basic"
312
+ * templateId: "template_id"
315
313
  * })
316
314
  */
317
315
  getUserContext(threadId, request = {}, requestOptions) {
@@ -320,20 +318,11 @@ export class Thread {
320
318
  __getUserContext(threadId_1) {
321
319
  return __awaiter(this, arguments, void 0, function* (threadId, request = {}, requestOptions) {
322
320
  var _a, _b, _c, _d;
323
- const { minRating, templateId, mode } = request;
321
+ const { templateId } = request;
324
322
  const _queryParams = {};
325
- if (minRating != null) {
326
- _queryParams["minRating"] = minRating.toString();
327
- }
328
323
  if (templateId != null) {
329
324
  _queryParams["template_id"] = templateId;
330
325
  }
331
- if (mode != null) {
332
- _queryParams["mode"] = serializers.ThreadGetUserContextRequestMode.jsonOrThrow(mode, {
333
- unrecognizedObjectKeys: "strip",
334
- omitUndefined: true,
335
- });
336
- }
337
326
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
338
327
  url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ZepEnvironment.Default, `threads/${encodeURIComponent(threadId)}/context`),
339
328
  method: "GET",
@@ -1,26 +1,15 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Zep from "../../../../index.mjs";
5
4
  /**
6
5
  * @example
7
6
  * {
8
- * minRating: 1.1,
9
- * templateId: "template_id",
10
- * mode: "basic"
7
+ * templateId: "template_id"
11
8
  * }
12
9
  */
13
10
  export interface ThreadGetUserContextRequest {
14
- /**
15
- * Deprecated, this field will be removed in a future release. The minimum rating by which to filter relevant facts.
16
- */
17
- minRating?: number;
18
11
  /**
19
12
  * Optional template ID to use for custom context rendering.
20
13
  */
21
14
  templateId?: string;
22
- /**
23
- * Deprecated, this field will be removed in a future release. Defaults to summary mode. Use basic for lower latency
24
- */
25
- mode?: Zep.ThreadGetUserContextRequestMode;
26
15
  }
@@ -1,3 +1,2 @@
1
- export * from "./types/index.mjs";
2
1
  export * from "./client/index.mjs";
3
2
  export * from "./resources/index.mjs";
@@ -1,3 +1,2 @@
1
- export * from "./types/index.mjs";
2
1
  export * from "./client/index.mjs";
3
2
  export * from "./resources/index.mjs";
@@ -105,7 +105,10 @@ export declare class User {
105
105
  * @example
106
106
  * await client.user.listOrdered({
107
107
  * pageNumber: 1,
108
- * pageSize: 1
108
+ * pageSize: 1,
109
+ * search: "search",
110
+ * orderBy: "order_by",
111
+ * asc: true
109
112
  * })
110
113
  */
111
114
  listOrdered(request?: Zep.UserListOrderedRequest, requestOptions?: User.RequestOptions): core.HttpResponsePromise<Zep.UserListResponse>;
@@ -389,7 +389,10 @@ export class User {
389
389
  * @example
390
390
  * await client.user.listOrdered({
391
391
  * pageNumber: 1,
392
- * pageSize: 1
392
+ * pageSize: 1,
393
+ * search: "search",
394
+ * orderBy: "order_by",
395
+ * asc: true
393
396
  * })
394
397
  */
395
398
  listOrdered(request = {}, requestOptions) {
@@ -398,7 +401,7 @@ export class User {
398
401
  __listOrdered() {
399
402
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
400
403
  var _a, _b, _c, _d;
401
- const { pageNumber, pageSize } = request;
404
+ const { pageNumber, pageSize, search, orderBy, asc } = request;
402
405
  const _queryParams = {};
403
406
  if (pageNumber != null) {
404
407
  _queryParams["pageNumber"] = pageNumber.toString();
@@ -406,6 +409,15 @@ export class User {
406
409
  if (pageSize != null) {
407
410
  _queryParams["pageSize"] = pageSize.toString();
408
411
  }
412
+ if (search != null) {
413
+ _queryParams["search"] = search;
414
+ }
415
+ if (orderBy != null) {
416
+ _queryParams["order_by"] = orderBy;
417
+ }
418
+ if (asc != null) {
419
+ _queryParams["asc"] = asc.toString();
420
+ }
409
421
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
410
422
  url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ZepEnvironment.Default, "users-ordered"),
411
423
  method: "GET",
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Zep from "../../../../index.mjs";
5
4
  /**
6
5
  * @example
7
6
  * {
@@ -13,8 +12,6 @@ export interface CreateUserRequest {
13
12
  disableDefaultOntology?: boolean;
14
13
  /** The email address of the user. */
15
14
  email?: string;
16
- /** Deprecated: this field will be removed in a future release. Optional instruction to use for fact rating. */
17
- factRatingInstruction?: Zep.FactRatingInstruction;
18
15
  /** The first name of the user. */
19
16
  firstName?: string;
20
17
  /** The last name of the user. */
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Zep from "../../../../index.mjs";
5
4
  /**
6
5
  * @example
7
6
  * {}
@@ -11,8 +10,6 @@ export interface UpdateUserRequest {
11
10
  disableDefaultOntology?: boolean;
12
11
  /** The email address of the user. */
13
12
  email?: string;
14
- /** Deprecated: this field will be removed in a future release. Optional instruction to use for fact rating. */
15
- factRatingInstruction?: Zep.FactRatingInstruction;
16
13
  /** The first name of the user. */
17
14
  firstName?: string;
18
15
  /** The last name of the user. */
@@ -5,7 +5,10 @@
5
5
  * @example
6
6
  * {
7
7
  * pageNumber: 1,
8
- * pageSize: 1
8
+ * pageSize: 1,
9
+ * search: "search",
10
+ * orderBy: "order_by",
11
+ * asc: true
9
12
  * }
10
13
  */
11
14
  export interface UserListOrderedRequest {
@@ -17,4 +20,16 @@ export interface UserListOrderedRequest {
17
20
  * Number of users to retrieve per page
18
21
  */
19
22
  pageSize?: number;
23
+ /**
24
+ * Search term for filtering users by user_id, name, or email
25
+ */
26
+ search?: string;
27
+ /**
28
+ * Column to sort by (created_at, user_id, email)
29
+ */
30
+ orderBy?: string;
31
+ /**
32
+ * Sort in ascending order
33
+ */
34
+ asc?: boolean;
20
35
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ClusterDetectConfig = Record<string, unknown>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CoOccurrenceDetectConfig {
5
+ /** Max hops within which to detect co-occurring node types. Default: 3, Max: 5 */
6
+ maxHops?: number;
7
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../index.mjs";
5
+ export interface DetectConfig {
6
+ /** Detect tightly interconnected groups (triangle topology) */
7
+ clusters?: Zep.ClusterDetectConfig;
8
+ /** Detect node types that co-occur within k hops */
9
+ coOccurrences?: Zep.CoOccurrenceDetectConfig;
10
+ /** Detect highly connected hub nodes (star topology) */
11
+ hubs?: Zep.HubDetectConfig;
12
+ /** Detect frequent multi-hop connection paths */
13
+ paths?: Zep.PathDetectConfig;
14
+ /** Detect common (source_label, edge_type, target_label) relationship triples */
15
+ relationships?: Zep.RelationshipDetectConfig;
16
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../index.mjs";
5
+ export interface DetectPatternsResponse {
6
+ /** Statistics about the detection run */
7
+ metadata?: Zep.PatternMetadata;
8
+ /** Detected patterns, sorted by weighted_score descending */
9
+ patterns?: Zep.PatternResult[];
10
+ }