@getzep/zep-cloud 3.16.0 → 3.18.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 (327) 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 +27 -2
  9. package/dist/cjs/api/resources/graph/client/Client.js +155 -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 +45 -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 +7 -1
  41. package/dist/cjs/api/resources/user/client/Client.js +41 -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/DateFilter.d.ts +1 -1
  49. package/dist/cjs/api/types/DetectConfig.d.ts +16 -0
  50. package/dist/cjs/api/types/DetectConfig.js +5 -0
  51. package/dist/cjs/api/types/DetectPatternsResponse.d.ts +12 -0
  52. package/dist/cjs/api/types/DetectPatternsResponse.js +5 -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 +2 -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/PatternMetadata.d.ts +11 -0
  60. package/dist/cjs/api/types/PatternMetadata.js +5 -0
  61. package/dist/cjs/api/types/PatternResult.d.ts +23 -0
  62. package/dist/cjs/api/types/PatternResult.js +5 -0
  63. package/dist/cjs/api/types/PatternSeeds.d.ts +11 -0
  64. package/dist/cjs/api/types/PatternSeeds.js +5 -0
  65. package/dist/cjs/api/types/PropertyFilter.d.ts +1 -1
  66. package/dist/cjs/api/types/RecencyWeight.d.ts +10 -0
  67. package/dist/cjs/api/types/RecencyWeight.js +12 -0
  68. package/dist/cjs/api/types/RelationshipDetectConfig.d.ts +4 -0
  69. package/dist/cjs/api/types/RelationshipDetectConfig.js +5 -0
  70. package/dist/cjs/api/types/SearchFilters.d.ts +8 -8
  71. package/dist/cjs/api/types/User.d.ts +0 -2
  72. package/dist/cjs/api/types/index.d.ts +11 -4
  73. package/dist/cjs/api/types/index.js +11 -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 +26 -0
  81. package/dist/cjs/serialization/resources/graph/client/requests/DetectPatternsRequest.js +57 -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 +17 -0
  117. package/dist/cjs/serialization/types/DetectPatternsResponse.js +48 -0
  118. package/dist/cjs/serialization/types/Graph.d.ts +0 -2
  119. package/dist/cjs/serialization/types/Graph.js +0 -2
  120. package/dist/cjs/serialization/types/HubDetectConfig.d.ts +12 -0
  121. package/dist/cjs/serialization/types/{ModelsFactRatingExamples.js → HubDetectConfig.js} +3 -5
  122. package/dist/cjs/serialization/types/MessageListResponse.d.ts +1 -0
  123. package/dist/cjs/serialization/types/MessageListResponse.js +1 -0
  124. package/dist/cjs/serialization/types/PathDetectConfig.d.ts +12 -0
  125. package/dist/cjs/serialization/types/{FactRatingInstruction.js → PathDetectConfig.js} +3 -5
  126. package/dist/cjs/serialization/types/PatternMetadata.d.ts +14 -0
  127. package/dist/cjs/serialization/types/{ModelsFactRatingInstruction.js → PatternMetadata.js} +5 -5
  128. package/dist/cjs/serialization/types/PatternResult.d.ts +19 -0
  129. package/dist/cjs/serialization/types/PatternResult.js +50 -0
  130. package/dist/cjs/serialization/types/PatternSeeds.d.ts +14 -0
  131. package/dist/cjs/serialization/types/PatternSeeds.js +45 -0
  132. package/dist/cjs/serialization/types/RecencyWeight.d.ts +10 -0
  133. package/dist/cjs/serialization/{resources/thread/types/ThreadGetUserContextRequestMode.js → types/RecencyWeight.js} +3 -3
  134. package/dist/cjs/serialization/types/RelationshipDetectConfig.d.ts +10 -0
  135. package/dist/cjs/serialization/types/RelationshipDetectConfig.js +41 -0
  136. package/dist/cjs/serialization/types/User.d.ts +0 -2
  137. package/dist/cjs/serialization/types/User.js +0 -2
  138. package/dist/cjs/serialization/types/index.d.ts +11 -4
  139. package/dist/cjs/serialization/types/index.js +11 -4
  140. package/dist/cjs/version.d.ts +1 -1
  141. package/dist/cjs/version.js +1 -1
  142. package/dist/esm/Client.mjs +2 -2
  143. package/dist/esm/api/errors/ForbiddenError.d.mts +9 -0
  144. package/dist/esm/api/errors/ForbiddenError.mjs +15 -0
  145. package/dist/esm/api/errors/index.d.mts +1 -0
  146. package/dist/esm/api/errors/index.mjs +1 -0
  147. package/dist/esm/api/index.d.mts +1 -1
  148. package/dist/esm/api/index.mjs +1 -1
  149. package/dist/esm/api/resources/graph/client/Client.d.mts +27 -2
  150. package/dist/esm/api/resources/graph/client/Client.mjs +155 -3
  151. package/dist/esm/api/resources/graph/client/requests/AddTripleRequest.d.mts +4 -0
  152. package/dist/esm/api/resources/graph/client/requests/CreateGraphRequest.d.mts +0 -2
  153. package/dist/esm/api/resources/graph/client/requests/DetectPatternsRequest.d.mts +45 -0
  154. package/dist/esm/api/resources/graph/client/requests/GraphListAllRequest.d.mts +11 -1
  155. package/dist/esm/api/resources/graph/client/requests/GraphSearchQuery.d.mts +0 -4
  156. package/dist/esm/api/resources/graph/client/requests/UpdateGraphRequest.d.mts +0 -2
  157. package/dist/esm/api/resources/graph/client/requests/index.d.mts +1 -0
  158. package/dist/esm/api/resources/graph/resources/edge/client/Client.d.mts +17 -0
  159. package/dist/esm/api/resources/graph/resources/edge/client/Client.mjs +106 -0
  160. package/dist/esm/api/resources/graph/resources/edge/client/index.d.mts +1 -0
  161. package/dist/esm/api/resources/graph/resources/edge/client/index.mjs +1 -1
  162. package/dist/esm/api/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.d.mts +21 -0
  163. package/dist/esm/api/resources/graph/resources/edge/client/requests/index.d.mts +1 -0
  164. package/dist/esm/api/resources/graph/resources/edge/client/requests/index.mjs +1 -0
  165. package/dist/esm/api/resources/graph/resources/index.d.mts +2 -0
  166. package/dist/esm/api/resources/graph/resources/index.mjs +2 -0
  167. package/dist/esm/api/resources/graph/resources/node/client/Client.d.mts +17 -0
  168. package/dist/esm/api/resources/graph/resources/node/client/Client.mjs +106 -0
  169. package/dist/esm/api/resources/graph/resources/node/client/index.d.mts +1 -0
  170. package/dist/esm/api/resources/graph/resources/node/client/index.mjs +1 -1
  171. package/dist/esm/api/resources/graph/resources/node/client/requests/UpdateNodeRequest.d.mts +17 -0
  172. package/dist/esm/api/resources/graph/resources/node/client/requests/index.d.mts +1 -0
  173. package/dist/esm/api/resources/graph/resources/node/client/requests/index.mjs +1 -0
  174. package/dist/esm/api/resources/index.d.mts +1 -2
  175. package/dist/esm/api/resources/index.mjs +1 -2
  176. package/dist/esm/api/resources/thread/client/Client.d.mts +1 -3
  177. package/dist/esm/api/resources/thread/client/Client.mjs +2 -13
  178. package/dist/esm/api/resources/thread/client/requests/ThreadGetUserContextRequest.d.mts +1 -12
  179. package/dist/esm/api/resources/thread/index.d.mts +0 -1
  180. package/dist/esm/api/resources/thread/index.mjs +0 -1
  181. package/dist/esm/api/resources/user/client/Client.d.mts +7 -1
  182. package/dist/esm/api/resources/user/client/Client.mjs +41 -2
  183. package/dist/esm/api/resources/user/client/requests/CreateUserRequest.d.mts +0 -3
  184. package/dist/esm/api/resources/user/client/requests/UpdateUserRequest.d.mts +0 -3
  185. package/dist/esm/api/resources/user/client/requests/UserListOrderedRequest.d.mts +16 -1
  186. package/dist/esm/api/types/ClusterDetectConfig.d.mts +4 -0
  187. package/dist/esm/api/types/CoOccurrenceDetectConfig.d.mts +7 -0
  188. package/dist/esm/api/types/CoOccurrenceDetectConfig.mjs +4 -0
  189. package/dist/esm/api/types/DateFilter.d.mts +1 -1
  190. package/dist/esm/api/types/DetectConfig.d.mts +16 -0
  191. package/dist/esm/api/types/DetectConfig.mjs +4 -0
  192. package/dist/esm/api/types/DetectPatternsResponse.d.mts +12 -0
  193. package/dist/esm/api/types/DetectPatternsResponse.mjs +4 -0
  194. package/dist/esm/api/types/Graph.d.mts +0 -2
  195. package/dist/esm/api/types/HubDetectConfig.d.mts +7 -0
  196. package/dist/esm/api/types/HubDetectConfig.mjs +4 -0
  197. package/dist/esm/api/types/MessageListResponse.d.mts +2 -0
  198. package/dist/esm/api/types/PathDetectConfig.d.mts +7 -0
  199. package/dist/esm/api/types/PathDetectConfig.mjs +4 -0
  200. package/dist/esm/api/types/PatternMetadata.d.mts +11 -0
  201. package/dist/esm/api/types/PatternMetadata.mjs +4 -0
  202. package/dist/esm/api/types/PatternResult.d.mts +23 -0
  203. package/dist/esm/api/types/PatternResult.mjs +4 -0
  204. package/dist/esm/api/types/PatternSeeds.d.mts +11 -0
  205. package/dist/esm/api/types/PatternSeeds.mjs +4 -0
  206. package/dist/esm/api/types/PropertyFilter.d.mts +1 -1
  207. package/dist/esm/api/types/RecencyWeight.d.mts +10 -0
  208. package/dist/esm/api/types/RecencyWeight.mjs +9 -0
  209. package/dist/esm/api/types/RelationshipDetectConfig.d.mts +4 -0
  210. package/dist/esm/api/types/RelationshipDetectConfig.mjs +4 -0
  211. package/dist/esm/api/types/SearchFilters.d.mts +8 -8
  212. package/dist/esm/api/types/User.d.mts +0 -2
  213. package/dist/esm/api/types/index.d.mts +11 -4
  214. package/dist/esm/api/types/index.mjs +11 -4
  215. package/dist/esm/serialization/index.d.mts +1 -1
  216. package/dist/esm/serialization/index.mjs +1 -1
  217. package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.d.mts +2 -0
  218. package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.mjs +2 -0
  219. package/dist/esm/serialization/resources/graph/client/requests/CreateGraphRequest.d.mts +0 -2
  220. package/dist/esm/serialization/resources/graph/client/requests/CreateGraphRequest.mjs +0 -2
  221. package/dist/esm/serialization/resources/graph/client/requests/DetectPatternsRequest.d.mts +26 -0
  222. package/dist/esm/serialization/resources/graph/client/requests/DetectPatternsRequest.mjs +21 -0
  223. package/dist/esm/serialization/resources/graph/client/requests/GraphSearchQuery.d.mts +0 -2
  224. package/dist/esm/serialization/resources/graph/client/requests/GraphSearchQuery.mjs +0 -2
  225. package/dist/esm/serialization/resources/graph/client/requests/UpdateGraphRequest.d.mts +0 -2
  226. package/dist/esm/serialization/resources/graph/client/requests/UpdateGraphRequest.mjs +0 -2
  227. package/dist/esm/serialization/resources/graph/client/requests/index.d.mts +1 -0
  228. package/dist/esm/serialization/resources/graph/client/requests/index.mjs +1 -0
  229. package/dist/esm/serialization/resources/graph/resources/edge/client/index.d.mts +1 -0
  230. package/dist/esm/serialization/resources/graph/resources/edge/client/index.mjs +1 -0
  231. package/dist/esm/serialization/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.d.mts +17 -0
  232. package/dist/esm/serialization/resources/graph/resources/edge/client/requests/UpdateEdgeRequest.mjs +12 -0
  233. package/dist/esm/serialization/resources/graph/resources/edge/client/requests/index.d.mts +1 -0
  234. package/dist/esm/serialization/resources/graph/resources/edge/client/requests/index.mjs +1 -0
  235. package/dist/esm/serialization/resources/graph/resources/index.d.mts +2 -0
  236. package/dist/esm/serialization/resources/graph/resources/index.mjs +2 -0
  237. package/dist/esm/serialization/resources/graph/resources/node/client/index.d.mts +1 -0
  238. package/dist/esm/serialization/resources/graph/resources/node/client/index.mjs +1 -0
  239. package/dist/esm/serialization/resources/graph/resources/node/client/requests/UpdateNodeRequest.d.mts +15 -0
  240. package/dist/esm/serialization/resources/graph/resources/node/client/requests/UpdateNodeRequest.mjs +10 -0
  241. package/dist/esm/serialization/resources/graph/resources/node/client/requests/index.d.mts +1 -0
  242. package/dist/esm/serialization/resources/graph/resources/node/client/requests/index.mjs +1 -0
  243. package/dist/esm/serialization/resources/index.d.mts +1 -2
  244. package/dist/esm/serialization/resources/index.mjs +1 -2
  245. package/dist/esm/serialization/resources/thread/index.d.mts +0 -1
  246. package/dist/esm/serialization/resources/thread/index.mjs +0 -1
  247. package/dist/esm/serialization/resources/user/client/requests/CreateUserRequest.d.mts +0 -2
  248. package/dist/esm/serialization/resources/user/client/requests/CreateUserRequest.mjs +0 -2
  249. package/dist/esm/serialization/resources/user/client/requests/UpdateUserRequest.d.mts +0 -2
  250. package/dist/esm/serialization/resources/user/client/requests/UpdateUserRequest.mjs +0 -2
  251. package/dist/esm/serialization/types/ClusterDetectConfig.d.mts +10 -0
  252. package/dist/esm/serialization/types/ClusterDetectConfig.mjs +5 -0
  253. package/dist/esm/serialization/types/CoOccurrenceDetectConfig.d.mts +12 -0
  254. package/dist/esm/serialization/types/CoOccurrenceDetectConfig.mjs +7 -0
  255. package/dist/esm/serialization/types/DetectConfig.d.mts +21 -0
  256. package/dist/esm/serialization/types/DetectConfig.mjs +16 -0
  257. package/dist/esm/serialization/types/DetectPatternsResponse.d.mts +17 -0
  258. package/dist/esm/serialization/types/DetectPatternsResponse.mjs +12 -0
  259. package/dist/esm/serialization/types/Graph.d.mts +0 -2
  260. package/dist/esm/serialization/types/Graph.mjs +0 -2
  261. package/dist/esm/serialization/types/HubDetectConfig.d.mts +12 -0
  262. package/dist/esm/serialization/types/HubDetectConfig.mjs +7 -0
  263. package/dist/esm/serialization/types/MessageListResponse.d.mts +1 -0
  264. package/dist/esm/serialization/types/MessageListResponse.mjs +1 -0
  265. package/dist/esm/serialization/types/PathDetectConfig.d.mts +12 -0
  266. package/dist/esm/serialization/types/PathDetectConfig.mjs +7 -0
  267. package/dist/esm/serialization/types/PatternMetadata.d.mts +14 -0
  268. package/dist/esm/serialization/types/PatternMetadata.mjs +9 -0
  269. package/dist/esm/serialization/types/PatternResult.d.mts +19 -0
  270. package/dist/esm/serialization/types/PatternResult.mjs +14 -0
  271. package/dist/esm/serialization/types/PatternSeeds.d.mts +14 -0
  272. package/dist/esm/serialization/types/PatternSeeds.mjs +9 -0
  273. package/dist/esm/serialization/types/RecencyWeight.d.mts +10 -0
  274. package/dist/esm/serialization/types/RecencyWeight.mjs +5 -0
  275. package/dist/esm/serialization/types/RelationshipDetectConfig.d.mts +10 -0
  276. package/dist/esm/serialization/types/RelationshipDetectConfig.mjs +5 -0
  277. package/dist/esm/serialization/types/User.d.mts +0 -2
  278. package/dist/esm/serialization/types/User.mjs +0 -2
  279. package/dist/esm/serialization/types/index.d.mts +11 -4
  280. package/dist/esm/serialization/types/index.mjs +11 -4
  281. package/dist/esm/version.d.mts +1 -1
  282. package/dist/esm/version.mjs +1 -1
  283. package/package.json +2 -2
  284. package/reference.md +214 -3
  285. package/dist/cjs/api/resources/thread/types/ThreadGetUserContextRequestMode.d.ts +0 -8
  286. package/dist/cjs/api/resources/thread/types/ThreadGetUserContextRequestMode.js +0 -10
  287. package/dist/cjs/api/resources/thread/types/index.d.ts +0 -1
  288. package/dist/cjs/api/resources/thread/types/index.js +0 -17
  289. package/dist/cjs/api/types/FactRatingExamples.d.ts +0 -8
  290. package/dist/cjs/api/types/FactRatingInstruction.d.ts +0 -21
  291. package/dist/cjs/api/types/ModelsFactRatingExamples.d.ts +0 -8
  292. package/dist/cjs/api/types/ModelsFactRatingInstruction.d.ts +0 -21
  293. package/dist/cjs/serialization/resources/thread/types/ThreadGetUserContextRequestMode.d.ts +0 -10
  294. package/dist/cjs/serialization/resources/thread/types/index.d.ts +0 -1
  295. package/dist/cjs/serialization/resources/thread/types/index.js +0 -17
  296. package/dist/cjs/serialization/types/FactRatingExamples.d.ts +0 -14
  297. package/dist/cjs/serialization/types/FactRatingInstruction.d.ts +0 -14
  298. package/dist/cjs/serialization/types/ModelsFactRatingExamples.d.ts +0 -14
  299. package/dist/cjs/serialization/types/ModelsFactRatingInstruction.d.ts +0 -14
  300. package/dist/esm/api/resources/thread/types/ThreadGetUserContextRequestMode.d.mts +0 -8
  301. package/dist/esm/api/resources/thread/types/ThreadGetUserContextRequestMode.mjs +0 -7
  302. package/dist/esm/api/resources/thread/types/index.d.mts +0 -1
  303. package/dist/esm/api/resources/thread/types/index.mjs +0 -1
  304. package/dist/esm/api/types/FactRatingExamples.d.mts +0 -8
  305. package/dist/esm/api/types/FactRatingInstruction.d.mts +0 -21
  306. package/dist/esm/api/types/ModelsFactRatingExamples.d.mts +0 -8
  307. package/dist/esm/api/types/ModelsFactRatingInstruction.d.mts +0 -21
  308. package/dist/esm/serialization/resources/thread/types/ThreadGetUserContextRequestMode.d.mts +0 -10
  309. package/dist/esm/serialization/resources/thread/types/ThreadGetUserContextRequestMode.mjs +0 -5
  310. package/dist/esm/serialization/resources/thread/types/index.d.mts +0 -1
  311. package/dist/esm/serialization/resources/thread/types/index.mjs +0 -1
  312. package/dist/esm/serialization/types/FactRatingExamples.d.mts +0 -14
  313. package/dist/esm/serialization/types/FactRatingExamples.mjs +0 -9
  314. package/dist/esm/serialization/types/FactRatingInstruction.d.mts +0 -14
  315. package/dist/esm/serialization/types/FactRatingInstruction.mjs +0 -9
  316. package/dist/esm/serialization/types/ModelsFactRatingExamples.d.mts +0 -14
  317. package/dist/esm/serialization/types/ModelsFactRatingExamples.mjs +0 -9
  318. package/dist/esm/serialization/types/ModelsFactRatingInstruction.d.mts +0 -14
  319. package/dist/esm/serialization/types/ModelsFactRatingInstruction.mjs +0 -9
  320. /package/dist/cjs/api/{types/FactRatingExamples.js → resources/graph/client/requests/DetectPatternsRequest.js} +0 -0
  321. /package/dist/cjs/api/{types/FactRatingInstruction.js → resources/graph/resources/edge/client/requests/UpdateEdgeRequest.js} +0 -0
  322. /package/dist/cjs/api/{types/ModelsFactRatingExamples.js → resources/graph/resources/node/client/requests/UpdateNodeRequest.js} +0 -0
  323. /package/dist/cjs/api/types/{ModelsFactRatingInstruction.js → ClusterDetectConfig.js} +0 -0
  324. /package/dist/esm/api/{types/FactRatingExamples.mjs → resources/graph/client/requests/DetectPatternsRequest.mjs} +0 -0
  325. /package/dist/esm/api/{types/FactRatingInstruction.mjs → resources/graph/resources/edge/client/requests/UpdateEdgeRequest.mjs} +0 -0
  326. /package/dist/esm/api/{types/ModelsFactRatingExamples.mjs → resources/graph/resources/node/client/requests/UpdateNodeRequest.mjs} +0 -0
  327. /package/dist/esm/api/types/{ModelsFactRatingInstruction.mjs → ClusterDetectConfig.mjs} +0 -0
@@ -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";
@@ -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
@@ -105,7 +108,10 @@ export declare class User {
105
108
  * @example
106
109
  * await client.user.listOrdered({
107
110
  * pageNumber: 1,
108
- * pageSize: 1
111
+ * pageSize: 1,
112
+ * search: "search",
113
+ * orderBy: "order_by",
114
+ * asc: true
109
115
  * })
110
116
  */
111
117
  listOrdered(request?: Zep.UserListOrderedRequest, requestOptions?: User.RequestOptions): core.HttpResponsePromise<Zep.UserListResponse>;
@@ -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
@@ -76,6 +77,14 @@ export class User {
76
77
  skipValidation: true,
77
78
  breadcrumbsPrefix: ["response"],
78
79
  }), _response.rawResponse);
80
+ case 404:
81
+ throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
82
+ unrecognizedObjectKeys: "passthrough",
83
+ allowUnrecognizedUnionMembers: true,
84
+ allowUnrecognizedEnumValues: true,
85
+ skipValidation: true,
86
+ breadcrumbsPrefix: ["response"],
87
+ }), _response.rawResponse);
79
88
  case 500:
80
89
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
81
90
  unrecognizedObjectKeys: "passthrough",
@@ -116,6 +125,7 @@ export class User {
116
125
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
117
126
  *
118
127
  * @throws {@link Zep.BadRequestError}
128
+ * @throws {@link Zep.NotFoundError}
119
129
  * @throws {@link Zep.InternalServerError}
120
130
  *
121
131
  * @example
@@ -168,6 +178,14 @@ export class User {
168
178
  skipValidation: true,
169
179
  breadcrumbsPrefix: ["response"],
170
180
  }), _response.rawResponse);
181
+ case 404:
182
+ throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
183
+ unrecognizedObjectKeys: "passthrough",
184
+ allowUnrecognizedUnionMembers: true,
185
+ allowUnrecognizedEnumValues: true,
186
+ skipValidation: true,
187
+ breadcrumbsPrefix: ["response"],
188
+ }), _response.rawResponse);
171
189
  case 500:
172
190
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
173
191
  unrecognizedObjectKeys: "passthrough",
@@ -208,6 +226,7 @@ export class User {
208
226
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
209
227
  *
210
228
  * @throws {@link Zep.BadRequestError}
229
+ * @throws {@link Zep.NotFoundError}
211
230
  * @throws {@link Zep.InternalServerError}
212
231
  *
213
232
  * @example
@@ -255,6 +274,14 @@ export class User {
255
274
  skipValidation: true,
256
275
  breadcrumbsPrefix: ["response"],
257
276
  }), _response.rawResponse);
277
+ case 404:
278
+ throw new Zep.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
279
+ unrecognizedObjectKeys: "passthrough",
280
+ allowUnrecognizedUnionMembers: true,
281
+ allowUnrecognizedEnumValues: true,
282
+ skipValidation: true,
283
+ breadcrumbsPrefix: ["response"],
284
+ }), _response.rawResponse);
258
285
  case 500:
259
286
  throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
260
287
  unrecognizedObjectKeys: "passthrough",
@@ -389,7 +416,10 @@ export class User {
389
416
  * @example
390
417
  * await client.user.listOrdered({
391
418
  * pageNumber: 1,
392
- * pageSize: 1
419
+ * pageSize: 1,
420
+ * search: "search",
421
+ * orderBy: "order_by",
422
+ * asc: true
393
423
  * })
394
424
  */
395
425
  listOrdered(request = {}, requestOptions) {
@@ -398,7 +428,7 @@ export class User {
398
428
  __listOrdered() {
399
429
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
400
430
  var _a, _b, _c, _d;
401
- const { pageNumber, pageSize } = request;
431
+ const { pageNumber, pageSize, search, orderBy, asc } = request;
402
432
  const _queryParams = {};
403
433
  if (pageNumber != null) {
404
434
  _queryParams["pageNumber"] = pageNumber.toString();
@@ -406,6 +436,15 @@ export class User {
406
436
  if (pageSize != null) {
407
437
  _queryParams["pageSize"] = pageSize.toString();
408
438
  }
439
+ if (search != null) {
440
+ _queryParams["search"] = search;
441
+ }
442
+ if (orderBy != null) {
443
+ _queryParams["order_by"] = orderBy;
444
+ }
445
+ if (asc != null) {
446
+ _queryParams["asc"] = asc.toString();
447
+ }
409
448
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
410
449
  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
450
  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 {};
@@ -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,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,12 @@
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
+ /** Resolved nodes referenced by pattern edges (deduplicated). Only populated when query is set. */
9
+ nodes?: Zep.EntityNode[];
10
+ /** Detected patterns, sorted by weighted_score descending */
11
+ patterns?: Zep.PatternResult[];
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -1,11 +1,9 @@
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
  export interface Graph {
6
5
  createdAt?: string;
7
6
  description?: string;
8
- factRatingInstruction?: Zep.FactRatingInstruction;
9
7
  graphId?: string;
10
8
  id?: number;
11
9
  name?: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface HubDetectConfig {
5
+ /** Minimum number of connections for a node to be considered a hub. Default: 3, Min: 2 */
6
+ minDegree?: number;
7
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -7,6 +7,8 @@ export interface MessageListResponse {
7
7
  messages?: Zep.Message[];
8
8
  /** The number of messages returned. */
9
9
  rowCount?: number;
10
+ /** The thread creation timestamp. */
11
+ threadCreatedAt?: string;
10
12
  /** The total number of messages. */
11
13
  totalCount?: number;
12
14
  /** The user ID associated with this thread. */
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface PathDetectConfig {
5
+ /** Max hops from seed nodes for path detection. 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,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface PatternMetadata {
5
+ /** Number of edges analyzed */
6
+ edgesAnalyzed?: number;
7
+ /** Elapsed time in milliseconds */
8
+ elapsedMs?: number;
9
+ /** Number of unique nodes analyzed */
10
+ nodesAnalyzed?: number;
11
+ }