@getzep/zep-cloud 2.4.0 → 2.6.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 (146) hide show
  1. package/api/resources/document/client/Client.d.ts +4 -4
  2. package/api/resources/document/client/Client.js +17 -17
  3. package/api/resources/graph/client/Client.d.ts +18 -1
  4. package/api/resources/graph/client/Client.js +82 -3
  5. package/api/resources/graph/client/requests/AddTripleRequest.d.ts +41 -0
  6. package/api/resources/graph/client/requests/AddTripleRequest.js +5 -0
  7. package/api/resources/graph/client/requests/GraphSearchQuery.d.ts +3 -1
  8. package/api/resources/graph/client/requests/index.d.ts +1 -0
  9. package/api/resources/graph/resources/edge/client/Client.d.ts +4 -4
  10. package/api/resources/graph/resources/edge/client/Client.js +8 -8
  11. package/api/resources/graph/resources/episode/client/Client.d.ts +4 -4
  12. package/api/resources/graph/resources/episode/client/Client.js +8 -8
  13. package/api/resources/graph/resources/node/client/Client.d.ts +3 -3
  14. package/api/resources/graph/resources/node/client/Client.js +6 -6
  15. package/api/resources/group/client/Client.d.ts +24 -9
  16. package/api/resources/group/client/Client.js +99 -14
  17. package/api/resources/group/client/requests/CreateGroupRequest.d.ts +0 -1
  18. package/api/resources/group/client/requests/GetGroupsOrderedRequest.d.ts +2 -2
  19. package/api/resources/group/client/requests/UpdateGroupRequest.d.ts +13 -0
  20. package/api/resources/group/client/requests/UpdateGroupRequest.js +5 -0
  21. package/api/resources/group/client/requests/index.d.ts +1 -0
  22. package/api/resources/memory/client/Client.d.ts +20 -22
  23. package/api/resources/memory/client/Client.js +42 -44
  24. package/api/resources/memory/client/requests/AddMemoryRequest.d.ts +8 -2
  25. package/api/resources/memory/client/requests/CreateSessionRequest.d.ts +2 -2
  26. package/api/resources/memory/client/requests/MemoryGetRequest.d.ts +1 -1
  27. package/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.d.ts +1 -1
  28. package/api/resources/memory/client/requests/MemoryListSessionsRequest.d.ts +3 -3
  29. package/api/resources/memory/client/requests/ModelsMessageMetadataUpdate.d.ts +1 -1
  30. package/api/resources/memory/client/requests/SessionSearchQuery.d.ts +7 -7
  31. package/api/resources/memory/client/requests/UpdateSessionRequest.d.ts +1 -1
  32. package/api/resources/user/client/Client.d.ts +8 -8
  33. package/api/resources/user/client/Client.js +16 -16
  34. package/api/types/AddTripleResponse.d.ts +9 -0
  35. package/api/types/AddTripleResponse.js +5 -0
  36. package/api/types/ClassifySessionRequest.d.ts +2 -2
  37. package/api/types/EntityNode.d.ts +2 -0
  38. package/api/types/Fact.d.ts +1 -1
  39. package/api/types/Group.d.ts +1 -1
  40. package/api/types/Memory.d.ts +3 -9
  41. package/api/types/Message.d.ts +3 -3
  42. package/api/types/SearchFilters.d.ts +7 -0
  43. package/api/types/SearchFilters.js +5 -0
  44. package/api/types/Session.d.ts +4 -2
  45. package/api/types/User.d.ts +3 -0
  46. package/api/types/index.d.ts +2 -0
  47. package/api/types/index.js +2 -0
  48. package/dist/api/resources/document/client/Client.d.ts +4 -4
  49. package/dist/api/resources/document/client/Client.js +17 -17
  50. package/dist/api/resources/graph/client/Client.d.ts +18 -1
  51. package/dist/api/resources/graph/client/Client.js +82 -3
  52. package/dist/api/resources/graph/client/requests/AddTripleRequest.d.ts +41 -0
  53. package/dist/api/resources/graph/client/requests/AddTripleRequest.js +5 -0
  54. package/dist/api/resources/graph/client/requests/GraphSearchQuery.d.ts +3 -1
  55. package/dist/api/resources/graph/client/requests/index.d.ts +1 -0
  56. package/dist/api/resources/graph/resources/edge/client/Client.d.ts +4 -4
  57. package/dist/api/resources/graph/resources/edge/client/Client.js +8 -8
  58. package/dist/api/resources/graph/resources/episode/client/Client.d.ts +4 -4
  59. package/dist/api/resources/graph/resources/episode/client/Client.js +8 -8
  60. package/dist/api/resources/graph/resources/node/client/Client.d.ts +3 -3
  61. package/dist/api/resources/graph/resources/node/client/Client.js +6 -6
  62. package/dist/api/resources/group/client/Client.d.ts +24 -9
  63. package/dist/api/resources/group/client/Client.js +99 -14
  64. package/dist/api/resources/group/client/requests/CreateGroupRequest.d.ts +0 -1
  65. package/dist/api/resources/group/client/requests/GetGroupsOrderedRequest.d.ts +2 -2
  66. package/dist/api/resources/group/client/requests/UpdateGroupRequest.d.ts +13 -0
  67. package/dist/api/resources/group/client/requests/UpdateGroupRequest.js +5 -0
  68. package/dist/api/resources/group/client/requests/index.d.ts +1 -0
  69. package/dist/api/resources/memory/client/Client.d.ts +20 -22
  70. package/dist/api/resources/memory/client/Client.js +42 -44
  71. package/dist/api/resources/memory/client/requests/AddMemoryRequest.d.ts +8 -2
  72. package/dist/api/resources/memory/client/requests/CreateSessionRequest.d.ts +2 -2
  73. package/dist/api/resources/memory/client/requests/MemoryGetRequest.d.ts +1 -1
  74. package/dist/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.d.ts +1 -1
  75. package/dist/api/resources/memory/client/requests/MemoryListSessionsRequest.d.ts +3 -3
  76. package/dist/api/resources/memory/client/requests/ModelsMessageMetadataUpdate.d.ts +1 -1
  77. package/dist/api/resources/memory/client/requests/SessionSearchQuery.d.ts +7 -7
  78. package/dist/api/resources/memory/client/requests/UpdateSessionRequest.d.ts +1 -1
  79. package/dist/api/resources/user/client/Client.d.ts +8 -8
  80. package/dist/api/resources/user/client/Client.js +16 -16
  81. package/dist/api/types/AddTripleResponse.d.ts +9 -0
  82. package/dist/api/types/AddTripleResponse.js +5 -0
  83. package/dist/api/types/ClassifySessionRequest.d.ts +2 -2
  84. package/dist/api/types/EntityNode.d.ts +2 -0
  85. package/dist/api/types/Fact.d.ts +1 -1
  86. package/dist/api/types/Group.d.ts +1 -1
  87. package/dist/api/types/Memory.d.ts +3 -9
  88. package/dist/api/types/Message.d.ts +3 -3
  89. package/dist/api/types/SearchFilters.d.ts +7 -0
  90. package/dist/api/types/SearchFilters.js +5 -0
  91. package/dist/api/types/Session.d.ts +4 -2
  92. package/dist/api/types/User.d.ts +3 -0
  93. package/dist/api/types/index.d.ts +2 -0
  94. package/dist/api/types/index.js +2 -0
  95. package/dist/serialization/resources/graph/client/requests/AddTripleRequest.d.ts +26 -0
  96. package/dist/serialization/resources/graph/client/requests/AddTripleRequest.js +57 -0
  97. package/dist/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +2 -0
  98. package/dist/serialization/resources/graph/client/requests/GraphSearchQuery.js +2 -0
  99. package/dist/serialization/resources/graph/client/requests/index.d.ts +1 -0
  100. package/dist/serialization/resources/graph/client/requests/index.js +3 -1
  101. package/dist/serialization/resources/group/client/requests/UpdateGroupRequest.d.ts +15 -0
  102. package/dist/serialization/resources/group/client/requests/UpdateGroupRequest.js +46 -0
  103. package/dist/serialization/resources/group/client/requests/index.d.ts +1 -0
  104. package/dist/serialization/resources/group/client/requests/index.js +3 -1
  105. package/dist/serialization/resources/memory/client/requests/AddMemoryRequest.d.ts +2 -0
  106. package/dist/serialization/resources/memory/client/requests/AddMemoryRequest.js +2 -0
  107. package/dist/serialization/types/AddTripleResponse.d.ts +16 -0
  108. package/dist/serialization/types/AddTripleResponse.js +47 -0
  109. package/dist/serialization/types/EntityNode.d.ts +1 -0
  110. package/dist/serialization/types/EntityNode.js +1 -0
  111. package/dist/serialization/types/SearchFilters.d.ts +12 -0
  112. package/dist/serialization/types/SearchFilters.js +43 -0
  113. package/dist/serialization/types/index.d.ts +2 -0
  114. package/dist/serialization/types/index.js +2 -0
  115. package/dist/version.d.ts +1 -1
  116. package/dist/version.js +1 -1
  117. package/examples/langgraph/.env.example +7 -0
  118. package/examples/langgraph/README.md +165 -0
  119. package/examples/langgraph/agent.ts +261 -0
  120. package/examples/langgraph/package-lock.json +1697 -0
  121. package/examples/langgraph/package.json +20 -0
  122. package/examples/langgraph/zep-memory.ts +271 -0
  123. package/package.json +1 -1
  124. package/reference.md +191 -68
  125. package/serialization/resources/graph/client/requests/AddTripleRequest.d.ts +26 -0
  126. package/serialization/resources/graph/client/requests/AddTripleRequest.js +57 -0
  127. package/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +2 -0
  128. package/serialization/resources/graph/client/requests/GraphSearchQuery.js +2 -0
  129. package/serialization/resources/graph/client/requests/index.d.ts +1 -0
  130. package/serialization/resources/graph/client/requests/index.js +3 -1
  131. package/serialization/resources/group/client/requests/UpdateGroupRequest.d.ts +15 -0
  132. package/serialization/resources/group/client/requests/UpdateGroupRequest.js +46 -0
  133. package/serialization/resources/group/client/requests/index.d.ts +1 -0
  134. package/serialization/resources/group/client/requests/index.js +3 -1
  135. package/serialization/resources/memory/client/requests/AddMemoryRequest.d.ts +2 -0
  136. package/serialization/resources/memory/client/requests/AddMemoryRequest.js +2 -0
  137. package/serialization/types/AddTripleResponse.d.ts +16 -0
  138. package/serialization/types/AddTripleResponse.js +47 -0
  139. package/serialization/types/EntityNode.d.ts +1 -0
  140. package/serialization/types/EntityNode.js +1 -0
  141. package/serialization/types/SearchFilters.d.ts +12 -0
  142. package/serialization/types/SearchFilters.js +43 -0
  143. package/serialization/types/index.d.ts +2 -0
  144. package/serialization/types/index.js +2 -0
  145. package/version.d.ts +1 -1
  146. package/version.js +1 -1
@@ -71,7 +71,7 @@ class Memory {
71
71
  this._options = _options;
72
72
  }
73
73
  /**
74
- * get fact by uuid
74
+ * Deprecated API: get fact by uuid
75
75
  *
76
76
  * @param {string} factUuid - Fact UUID
77
77
  * @param {Memory.RequestOptions} requestOptions - Request-specific configuration.
@@ -88,7 +88,7 @@ class Memory {
88
88
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
89
89
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `facts/${encodeURIComponent(factUuid)}`),
90
90
  method: "GET",
91
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
92
  contentType: "application/json",
93
93
  requestType: "json",
94
94
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -145,7 +145,7 @@ class Memory {
145
145
  });
146
146
  }
147
147
  /**
148
- * delete a fact
148
+ * Deprecated API: delete a fact
149
149
  *
150
150
  * @param {string} factUuid - Fact UUID
151
151
  * @param {Memory.RequestOptions} requestOptions - Request-specific configuration.
@@ -162,7 +162,7 @@ class Memory {
162
162
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
163
163
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `facts/${encodeURIComponent(factUuid)}`),
164
164
  method: "DELETE",
165
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
165
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
166
166
  contentType: "application/json",
167
167
  requestType: "json",
168
168
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -219,7 +219,7 @@ class Memory {
219
219
  });
220
220
  }
221
221
  /**
222
- * Create New Session
222
+ * Creates a new session.
223
223
  *
224
224
  * @param {Zep.CreateSessionRequest} request
225
225
  * @param {Memory.RequestOptions} requestOptions - Request-specific configuration.
@@ -239,7 +239,7 @@ class Memory {
239
239
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
240
240
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "sessions"),
241
241
  method: "POST",
242
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
242
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
243
243
  contentType: "application/json",
244
244
  requestType: "json",
245
245
  body: serializers.CreateSessionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -297,7 +297,7 @@ class Memory {
297
297
  });
298
298
  }
299
299
  /**
300
- * Get all sessions with optional page number, page size, order by field and order direction for pagination.
300
+ * Returns all sessions.
301
301
  *
302
302
  * @param {Zep.MemoryListSessionsRequest} request
303
303
  * @param {Memory.RequestOptions} requestOptions - Request-specific configuration.
@@ -328,7 +328,7 @@ class Memory {
328
328
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
329
329
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "sessions-ordered"),
330
330
  method: "GET",
331
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
331
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
332
332
  contentType: "application/json",
333
333
  queryParameters: _queryParams,
334
334
  requestType: "json",
@@ -386,7 +386,7 @@ class Memory {
386
386
  });
387
387
  }
388
388
  /**
389
- * End multiple sessions by their IDs.
389
+ * Deprecated API: End multiple sessions by their IDs.
390
390
  *
391
391
  * @param {Zep.EndSessionsRequest} request
392
392
  * @param {Memory.RequestOptions} requestOptions - Request-specific configuration.
@@ -406,7 +406,7 @@ class Memory {
406
406
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
407
407
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "sessions/end"),
408
408
  method: "POST",
409
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
409
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
410
410
  contentType: "application/json",
411
411
  requestType: "json",
412
412
  body: serializers.EndSessionsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -472,7 +472,7 @@ class Memory {
472
472
  });
473
473
  }
474
474
  /**
475
- * Search sessions for the specified query.
475
+ * Deprecated API: Search sessions for the specified query.
476
476
  *
477
477
  * @param {Zep.SessionSearchQuery} request
478
478
  * @param {Memory.RequestOptions} requestOptions - Request-specific configuration.
@@ -495,7 +495,7 @@ class Memory {
495
495
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
496
496
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "sessions/search"),
497
497
  method: "POST",
498
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
498
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
499
499
  contentType: "application/json",
500
500
  queryParameters: _queryParams,
501
501
  requestType: "json",
@@ -546,9 +546,9 @@ class Memory {
546
546
  });
547
547
  }
548
548
  /**
549
- * get session by id
549
+ * Returns a session.
550
550
  *
551
- * @param {string} sessionId - Session ID
551
+ * @param {string} sessionId - The unique identifier of the session.
552
552
  * @param {Memory.RequestOptions} requestOptions - Request-specific configuration.
553
553
  *
554
554
  * @throws {@link Zep.NotFoundError}
@@ -563,7 +563,7 @@ class Memory {
563
563
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
564
564
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}`),
565
565
  method: "GET",
566
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
566
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
567
567
  contentType: "application/json",
568
568
  requestType: "json",
569
569
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -622,7 +622,7 @@ class Memory {
622
622
  /**
623
623
  * Update Session Metadata
624
624
  *
625
- * @param {string} sessionId - Session ID
625
+ * @param {string} sessionId - The unique identifier of the session.
626
626
  * @param {Zep.UpdateSessionRequest} request
627
627
  * @param {Memory.RequestOptions} requestOptions - Request-specific configuration.
628
628
  *
@@ -644,7 +644,7 @@ class Memory {
644
644
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
645
645
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}`),
646
646
  method: "PATCH",
647
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
647
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
648
648
  contentType: "application/json",
649
649
  requestType: "json",
650
650
  body: serializers.UpdateSessionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -718,7 +718,7 @@ class Memory {
718
718
  });
719
719
  }
720
720
  /**
721
- * classify a session by session id.
721
+ * Classifies a session.
722
722
  *
723
723
  * @param {string} sessionId - Session ID
724
724
  * @param {Zep.ClassifySessionRequest} request
@@ -739,7 +739,7 @@ class Memory {
739
739
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
740
740
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/classify`),
741
741
  method: "POST",
742
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
742
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
743
743
  contentType: "application/json",
744
744
  requestType: "json",
745
745
  body: serializers.ClassifySessionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -797,7 +797,7 @@ class Memory {
797
797
  });
798
798
  }
799
799
  /**
800
- * End a session by ID.
800
+ * Deprecated API: End a session by ID.
801
801
  *
802
802
  * @param {string} sessionId - Session ID
803
803
  * @param {Zep.EndSessionRequest} request
@@ -816,7 +816,7 @@ class Memory {
816
816
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
817
817
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/end`),
818
818
  method: "POST",
819
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
819
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
820
820
  contentType: "application/json",
821
821
  requestType: "json",
822
822
  body: serializers.EndSessionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -904,7 +904,7 @@ class Memory {
904
904
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
905
905
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/extract`),
906
906
  method: "POST",
907
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
907
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
908
908
  contentType: "application/json",
909
909
  requestType: "json",
910
910
  body: serializers.ExtractDataRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -970,7 +970,7 @@ class Memory {
970
970
  });
971
971
  }
972
972
  /**
973
- * get facts for a session
973
+ * Deprecated API: get facts for a session
974
974
  *
975
975
  * @param {string} sessionId - Session ID
976
976
  * @param {Zep.MemoryGetSessionFactsRequest} request
@@ -993,7 +993,7 @@ class Memory {
993
993
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
994
994
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/facts`),
995
995
  method: "GET",
996
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
996
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
997
997
  contentType: "application/json",
998
998
  queryParameters: _queryParams,
999
999
  requestType: "json",
@@ -1051,7 +1051,7 @@ class Memory {
1051
1051
  });
1052
1052
  }
1053
1053
  /**
1054
- * Adds facts to a session
1054
+ * Deprecated API: Adds facts to a session
1055
1055
  *
1056
1056
  * @param {string} sessionId - Session ID
1057
1057
  * @param {Zep.AddFactsRequest} request
@@ -1069,7 +1069,7 @@ class Memory {
1069
1069
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1070
1070
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/facts`),
1071
1071
  method: "POST",
1072
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1072
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1073
1073
  contentType: "application/json",
1074
1074
  requestType: "json",
1075
1075
  body: serializers.AddFactsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1127,7 +1127,7 @@ class Memory {
1127
1127
  });
1128
1128
  }
1129
1129
  /**
1130
- * Returns a memory (latest summary, list of messages and facts) for a given session
1130
+ * Returns a memory for a given session.
1131
1131
  *
1132
1132
  * @param {string} sessionId - The ID of the session for which to retrieve memory.
1133
1133
  * @param {Zep.MemoryGetRequest} request
@@ -1153,7 +1153,7 @@ class Memory {
1153
1153
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1154
1154
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/memory`),
1155
1155
  method: "GET",
1156
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1156
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1157
1157
  contentType: "application/json",
1158
1158
  queryParameters: _queryParams,
1159
1159
  requestType: "json",
@@ -1233,7 +1233,7 @@ class Memory {
1233
1233
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1234
1234
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/memory`),
1235
1235
  method: "POST",
1236
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1236
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1237
1237
  contentType: "application/json",
1238
1238
  requestType: "json",
1239
1239
  body: serializers.AddMemoryRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1283,7 +1283,7 @@ class Memory {
1283
1283
  });
1284
1284
  }
1285
1285
  /**
1286
- * delete memory messages by session id
1286
+ * Deletes a session.
1287
1287
  *
1288
1288
  * @param {string} sessionId - The ID of the session for which memory should be deleted.
1289
1289
  * @param {Memory.RequestOptions} requestOptions - Request-specific configuration.
@@ -1300,7 +1300,7 @@ class Memory {
1300
1300
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1301
1301
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/memory`),
1302
1302
  method: "DELETE",
1303
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1303
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1304
1304
  contentType: "application/json",
1305
1305
  requestType: "json",
1306
1306
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1357,7 +1357,7 @@ class Memory {
1357
1357
  });
1358
1358
  }
1359
1359
  /**
1360
- * Lists messages for a session, specified by limit and cursor.
1360
+ * Returns messages for a session.
1361
1361
  *
1362
1362
  * @param {string} sessionId - Session ID
1363
1363
  * @param {Zep.MemoryGetSessionMessagesRequest} request
@@ -1383,7 +1383,7 @@ class Memory {
1383
1383
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1384
1384
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/messages`),
1385
1385
  method: "GET",
1386
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1386
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1387
1387
  contentType: "application/json",
1388
1388
  queryParameters: _queryParams,
1389
1389
  requestType: "json",
@@ -1441,9 +1441,9 @@ class Memory {
1441
1441
  });
1442
1442
  }
1443
1443
  /**
1444
- * Gets a specific message from a session
1444
+ * Returns a specific message from a session.
1445
1445
  *
1446
- * @param {string} sessionId - The ID of the session.
1446
+ * @param {string} sessionId - Soon to be deprecated as this is not needed.
1447
1447
  * @param {string} messageUuid - The UUID of the message.
1448
1448
  * @param {Memory.RequestOptions} requestOptions - Request-specific configuration.
1449
1449
  *
@@ -1459,7 +1459,7 @@ class Memory {
1459
1459
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1460
1460
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/messages/${encodeURIComponent(messageUuid)}`),
1461
1461
  method: "GET",
1462
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1462
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1463
1463
  contentType: "application/json",
1464
1464
  requestType: "json",
1465
1465
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1539,7 +1539,7 @@ class Memory {
1539
1539
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1540
1540
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/messages/${encodeURIComponent(messageUuid)}`),
1541
1541
  method: "PATCH",
1542
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1542
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1543
1543
  contentType: "application/json",
1544
1544
  requestType: "json",
1545
1545
  body: serializers.ModelsMessageMetadataUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1597,8 +1597,6 @@ class Memory {
1597
1597
  });
1598
1598
  }
1599
1599
  /**
1600
- * Search memory for the specified session. Deprecated, please use search_sessions method instead
1601
- *
1602
1600
  * @param {string} sessionId - The ID of the session for which memory should be searched.
1603
1601
  * @param {Zep.MemorySearchPayload} request
1604
1602
  * @param {Memory.RequestOptions} requestOptions - Request-specific configuration.
@@ -1620,7 +1618,7 @@ class Memory {
1620
1618
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1621
1619
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/search`),
1622
1620
  method: "POST",
1623
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1621
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1624
1622
  contentType: "application/json",
1625
1623
  queryParameters: _queryParams,
1626
1624
  requestType: "json",
@@ -1679,7 +1677,7 @@ class Memory {
1679
1677
  });
1680
1678
  }
1681
1679
  /**
1682
- * Get session summaries by ID
1680
+ * Deprecated API: Get session summaries by ID
1683
1681
  *
1684
1682
  * @param {string} sessionId - Session ID
1685
1683
  * @param {Memory.RequestOptions} requestOptions - Request-specific configuration.
@@ -1696,7 +1694,7 @@ class Memory {
1696
1694
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1697
1695
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/summary`),
1698
1696
  method: "GET",
1699
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1697
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1700
1698
  contentType: "application/json",
1701
1699
  requestType: "json",
1702
1700
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1753,7 +1751,7 @@ class Memory {
1753
1751
  });
1754
1752
  }
1755
1753
  /**
1756
- * Synthesize a question from the last N messages in the chat history.
1754
+ * Deprecated API: Synthesize a question from the last N messages in the chat history.
1757
1755
  *
1758
1756
  * @param {string} sessionId - The ID of the session.
1759
1757
  * @param {Zep.MemorySynthesizeQuestionRequest} request
@@ -1776,7 +1774,7 @@ class Memory {
1776
1774
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1777
1775
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/synthesize_question`),
1778
1776
  method: "GET",
1779
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.4.0", "User-Agent": "zep-cloud/2.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1777
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1780
1778
  contentType: "application/json",
1781
1779
  queryParameters: _queryParams,
1782
1780
  requestType: "json",
@@ -12,12 +12,18 @@ import * as Zep from "../../../../index";
12
12
  * }
13
13
  */
14
14
  export interface AddMemoryRequest {
15
- /** Additional instruction for generating the facts. Zep Cloud Only, will be ignored on Community Edition. */
15
+ /** Deprecated */
16
16
  factInstruction?: string;
17
+ /**
18
+ * Optional list of role types to ignore when adding messages to graph memory.
19
+ * The message itself will still be added retained and used as context for messages
20
+ * that are added to a user's graph.
21
+ */
22
+ ignoreRoles?: Zep.RoleType[];
17
23
  /** A list of message objects, where each message contains a role and content. */
18
24
  messages: Zep.Message[];
19
25
  /** Optionally return memory context relevant to the most recent messages. */
20
26
  returnContext?: boolean;
21
- /** Additional instruction for generating the summary. Zep Cloud Only, will be ignored on Community Edition. */
27
+ /** Deprecated */
22
28
  summaryInstruction?: string;
23
29
  }
@@ -10,9 +10,9 @@ import * as Zep from "../../../../index";
10
10
  * }
11
11
  */
12
12
  export interface CreateSessionRequest {
13
- /** Optional instruction to use for fact rating. */
13
+ /** Deprecated */
14
14
  factRatingInstruction?: Zep.FactRatingInstruction;
15
- /** The metadata associated with the session. */
15
+ /** Deprecated */
16
16
  metadata?: Record<string, unknown>;
17
17
  /** The unique identifier of the session. */
18
18
  sessionId: string;
@@ -11,7 +11,7 @@ export interface MemoryGetRequest {
11
11
  */
12
12
  lastn?: number;
13
13
  /**
14
- * The minimum rating by which to filter facts
14
+ * The minimum rating by which to filter relevant facts.
15
15
  */
16
16
  minRating?: number;
17
17
  }
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export interface MemoryGetSessionFactsRequest {
9
9
  /**
10
- * Minimum rating by which to filter facts (Zep Cloud only)
10
+ * Minimum rating by which to filter facts
11
11
  */
12
12
  minRating?: number;
13
13
  }
@@ -11,15 +11,15 @@ export interface MemoryListSessionsRequest {
11
11
  */
12
12
  pageNumber?: number;
13
13
  /**
14
- * Number of sessions to retrieve per page
14
+ * Number of sessions to retrieve per page.
15
15
  */
16
16
  pageSize?: number;
17
17
  /**
18
- * Field to order the results by: created_at, updated_at, user_id, session_id
18
+ * Field to order the results by: created_at, updated_at, user_id, session_id.
19
19
  */
20
20
  orderBy?: string;
21
21
  /**
22
- * Order direction: true for ascending, false for descending
22
+ * Order direction: true for ascending, false for descending.
23
23
  */
24
24
  asc?: boolean;
25
25
  }
@@ -10,6 +10,6 @@
10
10
  * }
11
11
  */
12
12
  export interface ModelsMessageMetadataUpdate {
13
- /** The metadata to update */
13
+ /** Deprecated */
14
14
  metadata: Record<string, unknown>;
15
15
  }
@@ -13,22 +13,22 @@ export interface SessionSearchQuery {
13
13
  * The maximum number of search results to return. Defaults to None (no limit).
14
14
  */
15
15
  limit?: number;
16
- /** The minimum fact rating to filter on. Only supported on cloud. Will be ignored on Community Edition. */
16
+ /** The minimum fact rating to filter on. */
17
17
  minFactRating?: number;
18
- /** The minimum score for search results. Only supported on cloud. Will be ignored on Community Edition. */
18
+ /** The minimum score for search results. */
19
19
  minScore?: number;
20
- /** The lambda parameter for the MMR Reranking Algorithm. Only supported on cloud. Will be ignored on Community Edition. */
20
+ /** The lambda parameter for the MMR Reranking Algorithm. */
21
21
  mmrLambda?: number;
22
- /** Record filter on the metadata. Only supported on cloud. Will be ignored on Community Edition. */
22
+ /** Record filter on the metadata. */
23
23
  recordFilter?: Record<string, unknown>;
24
- /** Search scope. Only supported on cloud. On Community Edition the search scope is always "facts". */
24
+ /** Search scope. */
25
25
  searchScope?: Zep.SearchScope;
26
- /** Search type. Only supported on cloud. Will be ignored on Community Edition. */
26
+ /** Search type. */
27
27
  searchType?: Zep.SearchType;
28
28
  /** the session ids to search */
29
29
  sessionIds?: string[];
30
30
  /** The search text. */
31
31
  text: string;
32
- /** User ID used to determine which sessions to search. Required on Community Edition. */
32
+ /** User ID used to determine which sessions to search. */
33
33
  userId?: string;
34
34
  }
@@ -16,6 +16,6 @@ export interface UpdateSessionRequest {
16
16
  * Fact rating instructions can not be unset.
17
17
  */
18
18
  factRatingInstruction?: Zep.FactRatingInstruction;
19
- /** The metadata to update */
19
+ /** Deprecated */
20
20
  metadata: Record<string, unknown>;
21
21
  }
@@ -25,7 +25,7 @@ export declare class User {
25
25
  protected readonly _options: User.Options;
26
26
  constructor(_options?: User.Options);
27
27
  /**
28
- * Add a user.
28
+ * Adds a user.
29
29
  *
30
30
  * @param {Zep.CreateUserRequest} request
31
31
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
@@ -38,7 +38,7 @@ export declare class User {
38
38
  */
39
39
  add(request?: Zep.CreateUserRequest, requestOptions?: User.RequestOptions): Promise<Zep.User>;
40
40
  /**
41
- * List all users with pagination.
41
+ * Returns all users.
42
42
  *
43
43
  * @param {Zep.UserListOrderedRequest} request
44
44
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
@@ -51,7 +51,7 @@ export declare class User {
51
51
  */
52
52
  listOrdered(request?: Zep.UserListOrderedRequest, requestOptions?: User.RequestOptions): Promise<Zep.UserListResponse>;
53
53
  /**
54
- * Get a user.
54
+ * Returns a user.
55
55
  *
56
56
  * @param {string} userId - The user_id of the user to get.
57
57
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
@@ -64,7 +64,7 @@ export declare class User {
64
64
  */
65
65
  get(userId: string, requestOptions?: User.RequestOptions): Promise<Zep.User>;
66
66
  /**
67
- * delete user by id
67
+ * Deletes a user.
68
68
  *
69
69
  * @param {string} userId - User ID
70
70
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
@@ -77,7 +77,7 @@ export declare class User {
77
77
  */
78
78
  delete(userId: string, requestOptions?: User.RequestOptions): Promise<Zep.SuccessResponse>;
79
79
  /**
80
- * Update a user.
80
+ * Updates a user.
81
81
  *
82
82
  * @param {string} userId - User ID
83
83
  * @param {Zep.UpdateUserRequest} request
@@ -92,7 +92,7 @@ export declare class User {
92
92
  */
93
93
  update(userId: string, request?: Zep.UpdateUserRequest, requestOptions?: User.RequestOptions): Promise<Zep.User>;
94
94
  /**
95
- * Get user facts.
95
+ * Deprecated: Use Get User Edges instead.
96
96
  *
97
97
  * @param {string} userId - The user_id of the user to get.
98
98
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
@@ -105,7 +105,7 @@ export declare class User {
105
105
  */
106
106
  getFacts(userId: string, requestOptions?: User.RequestOptions): Promise<Zep.FactsResponse>;
107
107
  /**
108
- * Get user node.
108
+ * Returns a user's node.
109
109
  *
110
110
  * @param {string} userId - The user_id of the user to get the node for.
111
111
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
@@ -118,7 +118,7 @@ export declare class User {
118
118
  */
119
119
  getNode(userId: string, requestOptions?: User.RequestOptions): Promise<Zep.UserNodeResponse>;
120
120
  /**
121
- * list all sessions for a user by user id
121
+ * Returns all sessions for a user.
122
122
  *
123
123
  * @param {string} userId - User ID
124
124
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.