@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
@@ -60,7 +60,7 @@ class User {
60
60
  this._options = _options;
61
61
  }
62
62
  /**
63
- * Add a user.
63
+ * Adds a user.
64
64
  *
65
65
  * @param {Zep.CreateUserRequest} request
66
66
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
@@ -77,7 +77,7 @@ class User {
77
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
78
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "users"),
79
79
  method: "POST",
80
- 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),
80
+ 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),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  body: serializers.CreateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -135,7 +135,7 @@ class User {
135
135
  });
136
136
  }
137
137
  /**
138
- * List all users with pagination.
138
+ * Returns all users.
139
139
  *
140
140
  * @param {Zep.UserListOrderedRequest} request
141
141
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
@@ -160,7 +160,7 @@ class User {
160
160
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
161
161
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "users-ordered"),
162
162
  method: "GET",
163
- 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),
163
+ 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),
164
164
  contentType: "application/json",
165
165
  queryParameters: _queryParams,
166
166
  requestType: "json",
@@ -218,7 +218,7 @@ class User {
218
218
  });
219
219
  }
220
220
  /**
221
- * Get a user.
221
+ * Returns a user.
222
222
  *
223
223
  * @param {string} userId - The user_id of the user to get.
224
224
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
@@ -235,7 +235,7 @@ class User {
235
235
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
236
236
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}`),
237
237
  method: "GET",
238
- 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),
238
+ 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),
239
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -292,7 +292,7 @@ class User {
292
292
  });
293
293
  }
294
294
  /**
295
- * delete user by id
295
+ * Deletes a user.
296
296
  *
297
297
  * @param {string} userId - User ID
298
298
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
@@ -309,7 +309,7 @@ class User {
309
309
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
310
310
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}`),
311
311
  method: "DELETE",
312
- 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),
312
+ 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),
313
313
  contentType: "application/json",
314
314
  requestType: "json",
315
315
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -366,7 +366,7 @@ class User {
366
366
  });
367
367
  }
368
368
  /**
369
- * Update a user.
369
+ * Updates a user.
370
370
  *
371
371
  * @param {string} userId - User ID
372
372
  * @param {Zep.UpdateUserRequest} request
@@ -385,7 +385,7 @@ class User {
385
385
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
386
386
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}`),
387
387
  method: "PATCH",
388
- 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),
388
+ 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),
389
389
  contentType: "application/json",
390
390
  requestType: "json",
391
391
  body: serializers.UpdateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -451,7 +451,7 @@ class User {
451
451
  });
452
452
  }
453
453
  /**
454
- * Get user facts.
454
+ * Deprecated: Use Get User Edges instead.
455
455
  *
456
456
  * @param {string} userId - The user_id of the user to get.
457
457
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
@@ -468,7 +468,7 @@ class User {
468
468
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
469
469
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}/facts`),
470
470
  method: "GET",
471
- 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),
471
+ 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),
472
472
  contentType: "application/json",
473
473
  requestType: "json",
474
474
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -525,7 +525,7 @@ class User {
525
525
  });
526
526
  }
527
527
  /**
528
- * Get user node.
528
+ * Returns a user's node.
529
529
  *
530
530
  * @param {string} userId - The user_id of the user to get the node for.
531
531
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
@@ -542,7 +542,7 @@ class User {
542
542
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
543
543
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}/node`),
544
544
  method: "GET",
545
- 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),
545
+ 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),
546
546
  contentType: "application/json",
547
547
  requestType: "json",
548
548
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -599,7 +599,7 @@ class User {
599
599
  });
600
600
  }
601
601
  /**
602
- * list all sessions for a user by user id
602
+ * Returns all sessions for a user.
603
603
  *
604
604
  * @param {string} userId - User ID
605
605
  * @param {User.RequestOptions} requestOptions - Request-specific configuration.
@@ -615,7 +615,7 @@ class User {
615
615
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
616
616
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}/sessions`),
617
617
  method: "GET",
618
- 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),
618
+ 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),
619
619
  contentType: "application/json",
620
620
  requestType: "json",
621
621
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../index";
5
+ export interface AddTripleResponse {
6
+ edge?: Zep.EntityEdge;
7
+ sourceNode?: Zep.EntityNode;
8
+ targetNode?: Zep.EntityNode;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,8 +8,8 @@ export interface ClassifySessionRequest {
8
8
  instruction?: string;
9
9
  /** The number of session messages to consider for classification. Defaults to 4. */
10
10
  lastN?: number;
11
- /** The name of the classifier. Will be used to store the classification in session metadata if persist is True. */
11
+ /** The name of the classifier. */
12
12
  name: string;
13
- /** Whether to persist the classification to session metadata. Defaults to True. */
13
+ /** Deprecated */
14
14
  persist?: boolean;
15
15
  }
@@ -2,6 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface EntityNode {
5
+ /** Additional attributes of the node. Dependent on node labels */
6
+ attributes?: Record<string, unknown>;
5
7
  /** Creation time of the node */
6
8
  createdAt: string;
7
9
  /** Labels associated with the node */
@@ -5,7 +5,7 @@ export interface Fact {
5
5
  content: string;
6
6
  createdAt: string;
7
7
  expiredAt?: string;
8
- /** Deprecated. This field will be removed in the future, please use `content` instead. */
8
+ /** Deprecated */
9
9
  fact: string;
10
10
  invalidAt?: string;
11
11
  name?: string;
@@ -5,10 +5,10 @@ import * as Zep from "../index";
5
5
  export interface Group {
6
6
  createdAt?: string;
7
7
  description?: string;
8
+ /** Deprecated */
8
9
  externalId?: string;
9
10
  factRatingInstruction?: Zep.FactRatingInstruction;
10
11
  groupId?: string;
11
- /** TODO deprecate */
12
12
  id?: number;
13
13
  name?: string;
14
14
  projectUuid?: string;
@@ -5,20 +5,14 @@ import * as Zep from "../index";
5
5
  export interface Memory {
6
6
  /** Memory context containing relevant facts and entities for the session. Can be put into the prompt directly. */
7
7
  context?: string;
8
- /**
9
- * Most recent list of facts derived from the session. (cloud only)
10
- * Deprecated: Facts will be deprecated in future releases and relevant_facts should be used instead.
11
- */
8
+ /** Deprecated: Use relevant_facts instead. */
12
9
  facts?: string[];
13
10
  /** A list of message objects, where each message contains a role and content. Only last_n messages will be returned */
14
11
  messages?: Zep.Message[];
15
- /** A dictionary containing metadata associated with the memory. */
12
+ /** Deprecated */
16
13
  metadata?: Record<string, unknown>;
17
14
  /** Most relevant facts to the recent messages in the session. */
18
15
  relevantFacts?: Zep.Fact[];
19
- /**
20
- * The most relevant summaries to the recent conversation. (cloud only)
21
- * Deprecated: Please use context string instead.
22
- */
16
+ /** Deprecated: Use context string instead. */
23
17
  summary?: Zep.Summary;
24
18
  }
@@ -9,13 +9,13 @@ export interface Message {
9
9
  createdAt?: string;
10
10
  /** The metadata associated with the message. */
11
11
  metadata?: Record<string, unknown>;
12
- /** The role of the sender of the message (e.g., "user", "assistant"). */
12
+ /** Customizable role of the sender of the message (e.g., "john", "sales_agent"). */
13
13
  role?: string;
14
14
  /** The type of the role (e.g., "user", "system"). */
15
15
  roleType: Zep.RoleType;
16
- /** The number of tokens in the message. */
16
+ /** Deprecated */
17
17
  tokenCount?: number;
18
- /** The timestamp of when the message was last updated. */
18
+ /** Deprecated */
19
19
  updatedAt?: string;
20
20
  /** The unique identifier of the message. */
21
21
  uuid?: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface SearchFilters {
5
+ /** List of node labels to filter on */
6
+ nodeLabels?: string[];
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,15 +7,17 @@ export interface Session {
7
7
  createdAt?: string;
8
8
  deletedAt?: string;
9
9
  endedAt?: string;
10
+ /** Deprecated */
10
11
  factRatingInstruction?: Zep.FactRatingInstruction;
12
+ /** Deprecated */
11
13
  facts?: string[];
12
- /** TODO deprecate */
13
14
  id?: number;
15
+ /** Deprecated */
14
16
  metadata?: Record<string, unknown>;
15
17
  projectUuid?: string;
16
18
  sessionId?: string;
19
+ /** Deprecated */
17
20
  updatedAt?: string;
18
- /** Must be a pointer to allow for null values */
19
21
  userId?: string;
20
22
  uuid?: string;
21
23
  }
@@ -10,9 +10,12 @@ export interface User {
10
10
  firstName?: string;
11
11
  id?: number;
12
12
  lastName?: string;
13
+ /** Deprecated */
13
14
  metadata?: Record<string, unknown>;
14
15
  projectUuid?: string;
16
+ /** Deprecated */
15
17
  sessionCount?: number;
18
+ /** Deprecated */
16
19
  updatedAt?: string;
17
20
  userId?: string;
18
21
  uuid?: string;
@@ -32,11 +32,13 @@ export * from "./SummaryListResponse";
32
32
  export * from "./User";
33
33
  export * from "./UserListResponse";
34
34
  export * from "./UserNodeResponse";
35
+ export * from "./AddTripleResponse";
35
36
  export * from "./EntityEdge";
36
37
  export * from "./EntityNode";
37
38
  export * from "./GraphSearchResults";
38
39
  export * from "./GraphSearchScope";
39
40
  export * from "./Reranker";
41
+ export * from "./SearchFilters";
40
42
  export * from "./ClassifySessionRequest";
41
43
  export * from "./CreateDocumentRequest";
42
44
  export * from "./FactRatingExamples";
@@ -48,11 +48,13 @@ __exportStar(require("./SummaryListResponse"), exports);
48
48
  __exportStar(require("./User"), exports);
49
49
  __exportStar(require("./UserListResponse"), exports);
50
50
  __exportStar(require("./UserNodeResponse"), exports);
51
+ __exportStar(require("./AddTripleResponse"), exports);
51
52
  __exportStar(require("./EntityEdge"), exports);
52
53
  __exportStar(require("./EntityNode"), exports);
53
54
  __exportStar(require("./GraphSearchResults"), exports);
54
55
  __exportStar(require("./GraphSearchScope"), exports);
55
56
  __exportStar(require("./Reranker"), exports);
57
+ __exportStar(require("./SearchFilters"), exports);
56
58
  __exportStar(require("./ClassifySessionRequest"), exports);
57
59
  __exportStar(require("./CreateDocumentRequest"), exports);
58
60
  __exportStar(require("./FactRatingExamples"), exports);
@@ -174,9 +174,9 @@ export declare class Document {
174
174
  * @throws {@link Zep.InternalServerError}
175
175
  *
176
176
  * @example
177
- * await client.document.getsADocumentFromADocumentCollectionByUuidCloudOnly("collectionName", "documentUUID")
177
+ * await client.document.getsADocumentFromADocumentCollectionByUuid("collectionName", "documentUUID")
178
178
  */
179
- getsADocumentFromADocumentCollectionByUuidCloudOnly(collectionName: string, documentUuid: string, requestOptions?: Document.RequestOptions): Promise<Zep.ApidataDocument>;
179
+ getsADocumentFromADocumentCollectionByUuid(collectionName: string, documentUuid: string, requestOptions?: Document.RequestOptions): Promise<Zep.ApidataDocument>;
180
180
  /**
181
181
  * Delete specified Document from a DocumentCollection.
182
182
  *
@@ -207,9 +207,9 @@ export declare class Document {
207
207
  * @throws {@link Zep.InternalServerError}
208
208
  *
209
209
  * @example
210
- * await client.document.updatesADocumentCloudOnly("collectionName", "documentUUID")
210
+ * await client.document.updatesADocument("collectionName", "documentUUID")
211
211
  */
212
- updatesADocumentCloudOnly(collectionName: string, documentUuid: string, request?: Zep.UpdateDocumentRequest, requestOptions?: Document.RequestOptions): Promise<Zep.SuccessResponse>;
212
+ updatesADocument(collectionName: string, documentUuid: string, request?: Zep.UpdateDocumentRequest, requestOptions?: Document.RequestOptions): Promise<Zep.SuccessResponse>;
213
213
  /**
214
214
  * Searches over documents in a collection based on provided search criteria. One of text or metadata must be provided. Returns an empty list if no documents are found.
215
215
  *
@@ -87,7 +87,7 @@ class Document {
87
87
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
88
88
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "collections"),
89
89
  method: "GET",
90
- 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),
90
+ 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),
91
91
  contentType: "application/json",
92
92
  requestType: "json",
93
93
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -163,7 +163,7 @@ class Document {
163
163
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
164
164
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
165
165
  method: "GET",
166
- 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),
166
+ 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),
167
167
  contentType: "application/json",
168
168
  requestType: "json",
169
169
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -256,7 +256,7 @@ class Document {
256
256
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
257
257
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
258
258
  method: "POST",
259
- 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),
259
+ 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),
260
260
  contentType: "application/json",
261
261
  requestType: "json",
262
262
  body: serializers.CreateDocumentCollectionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -349,7 +349,7 @@ class Document {
349
349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
350
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
351
351
  method: "DELETE",
352
- 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),
352
+ 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),
353
353
  contentType: "application/json",
354
354
  requestType: "json",
355
355
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -442,7 +442,7 @@ class Document {
442
442
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
443
443
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
444
444
  method: "PATCH",
445
- 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),
445
+ 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),
446
446
  contentType: "application/json",
447
447
  requestType: "json",
448
448
  body: serializers.UpdateDocumentCollectionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -537,7 +537,7 @@ class Document {
537
537
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
538
538
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents`),
539
539
  method: "POST",
540
- 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),
540
+ 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),
541
541
  contentType: "application/json",
542
542
  requestType: "json",
543
543
  body: serializers.document.addDocuments.Request.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -622,7 +622,7 @@ class Document {
622
622
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
623
623
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/batchDelete`),
624
624
  method: "POST",
625
- 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),
625
+ 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),
626
626
  contentType: "application/json",
627
627
  requestType: "json",
628
628
  body: serializers.document.batchDeleteDocuments.Request.jsonOrThrow(request, {
@@ -709,7 +709,7 @@ class Document {
709
709
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
710
710
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/batchGet`),
711
711
  method: "POST",
712
- 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),
712
+ 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),
713
713
  contentType: "application/json",
714
714
  requestType: "json",
715
715
  body: serializers.GetDocumentListRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -796,7 +796,7 @@ class Document {
796
796
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
797
797
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/batchUpdate`),
798
798
  method: "PATCH",
799
- 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),
799
+ 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),
800
800
  contentType: "application/json",
801
801
  requestType: "json",
802
802
  body: serializers.document.batchUpdateDocuments.Request.jsonOrThrow(request, {
@@ -875,15 +875,15 @@ class Document {
875
875
  * @throws {@link Zep.InternalServerError}
876
876
  *
877
877
  * @example
878
- * await client.document.getsADocumentFromADocumentCollectionByUuidCloudOnly("collectionName", "documentUUID")
878
+ * await client.document.getsADocumentFromADocumentCollectionByUuid("collectionName", "documentUUID")
879
879
  */
880
- getsADocumentFromADocumentCollectionByUuidCloudOnly(collectionName, documentUuid, requestOptions) {
880
+ getsADocumentFromADocumentCollectionByUuid(collectionName, documentUuid, requestOptions) {
881
881
  return __awaiter(this, void 0, void 0, function* () {
882
882
  var _a, _b;
883
883
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
884
884
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/uuid/${encodeURIComponent(documentUuid)}`),
885
885
  method: "GET",
886
- 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),
886
+ 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),
887
887
  contentType: "application/json",
888
888
  requestType: "json",
889
889
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -968,7 +968,7 @@ class Document {
968
968
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
969
969
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/uuid/${encodeURIComponent(documentUuid)}`),
970
970
  method: "DELETE",
971
- 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),
971
+ 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),
972
972
  contentType: "application/json",
973
973
  requestType: "json",
974
974
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1054,15 +1054,15 @@ class Document {
1054
1054
  * @throws {@link Zep.InternalServerError}
1055
1055
  *
1056
1056
  * @example
1057
- * await client.document.updatesADocumentCloudOnly("collectionName", "documentUUID")
1057
+ * await client.document.updatesADocument("collectionName", "documentUUID")
1058
1058
  */
1059
- updatesADocumentCloudOnly(collectionName_1, documentUuid_1) {
1059
+ updatesADocument(collectionName_1, documentUuid_1) {
1060
1060
  return __awaiter(this, arguments, void 0, function* (collectionName, documentUuid, request = {}, requestOptions) {
1061
1061
  var _a, _b;
1062
1062
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1063
1063
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/uuid/${encodeURIComponent(documentUuid)}`),
1064
1064
  method: "PATCH",
1065
- 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),
1065
+ 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),
1066
1066
  contentType: "application/json",
1067
1067
  requestType: "json",
1068
1068
  body: serializers.UpdateDocumentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1160,7 +1160,7 @@ class Document {
1160
1160
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1161
1161
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/search`),
1162
1162
  method: "POST",
1163
- 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),
1163
+ 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),
1164
1164
  contentType: "application/json",
1165
1165
  queryParameters: _queryParams,
1166
1166
  requestType: "json",
@@ -34,7 +34,7 @@ export declare class Graph {
34
34
  get episode(): Episode;
35
35
  get node(): Node;
36
36
  /**
37
- * Add data to the graph
37
+ * Add data to the graph. Note: each subscription tier has different limits on the amount of data that can be added to the graph please refer to the pricing page for more information.
38
38
  *
39
39
  * @param {Zep.AddDataRequest} request
40
40
  * @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
@@ -46,6 +46,23 @@ export declare class Graph {
46
46
  * await client.graph.add()
47
47
  */
48
48
  add(request?: Zep.AddDataRequest, requestOptions?: Graph.RequestOptions): Promise<Zep.SuccessResponse>;
49
+ /**
50
+ * Add a fact triple for a user or group
51
+ *
52
+ * @param {Zep.AddTripleRequest} request
53
+ * @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
54
+ *
55
+ * @throws {@link Zep.BadRequestError}
56
+ * @throws {@link Zep.InternalServerError}
57
+ *
58
+ * @example
59
+ * await client.graph.addFactTriple({
60
+ * fact: "fact",
61
+ * factName: "fact_name",
62
+ * targetNodeName: "target_node_name"
63
+ * })
64
+ */
65
+ addFactTriple(request: Zep.AddTripleRequest, requestOptions?: Graph.RequestOptions): Promise<Zep.AddTripleResponse>;
49
66
  /**
50
67
  * Perform a graph search query.
51
68
  *