@getzep/zep-cloud 2.3.0 → 2.3.1

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 (77) hide show
  1. package/api/resources/document/client/Client.js +13 -13
  2. package/api/resources/graph/client/Client.js +2 -2
  3. package/api/resources/graph/resources/edge/client/Client.js +4 -4
  4. package/api/resources/graph/resources/episode/client/Client.js +3 -3
  5. package/api/resources/graph/resources/node/client/Client.js +3 -3
  6. package/api/resources/group/client/Client.d.ts +39 -0
  7. package/api/resources/group/client/Client.js +233 -2
  8. package/api/resources/group/client/requests/CreateGroupRequest.d.ts +1 -1
  9. package/api/resources/group/client/requests/GetGroupsOrderedRequest.d.ts +17 -0
  10. package/api/resources/group/client/requests/index.d.ts +1 -0
  11. package/api/resources/memory/client/Client.js +22 -22
  12. package/api/resources/user/client/Client.js +7 -7
  13. package/api/types/Group.d.ts +3 -0
  14. package/api/types/GroupListResponse.d.ts +9 -0
  15. package/api/types/Memory.d.ts +4 -1
  16. package/api/types/Session.d.ts +1 -1
  17. package/api/types/index.d.ts +2 -3
  18. package/api/types/index.js +2 -3
  19. package/dist/api/resources/document/client/Client.js +13 -13
  20. package/dist/api/resources/graph/client/Client.js +2 -2
  21. package/dist/api/resources/graph/resources/edge/client/Client.js +4 -4
  22. package/dist/api/resources/graph/resources/episode/client/Client.js +3 -3
  23. package/dist/api/resources/graph/resources/node/client/Client.js +3 -3
  24. package/dist/api/resources/group/client/Client.d.ts +39 -0
  25. package/dist/api/resources/group/client/Client.js +233 -2
  26. package/dist/api/resources/group/client/requests/CreateGroupRequest.d.ts +1 -1
  27. package/dist/api/resources/group/client/requests/GetGroupsOrderedRequest.d.ts +17 -0
  28. package/dist/api/resources/group/client/requests/index.d.ts +1 -0
  29. package/dist/api/resources/memory/client/Client.js +22 -22
  30. package/dist/api/resources/user/client/Client.js +7 -7
  31. package/dist/api/types/Group.d.ts +3 -0
  32. package/dist/api/types/GroupListResponse.d.ts +9 -0
  33. package/dist/api/types/Memory.d.ts +4 -1
  34. package/dist/api/types/Session.d.ts +1 -1
  35. package/dist/api/types/index.d.ts +2 -3
  36. package/dist/api/types/index.js +2 -3
  37. package/dist/serialization/resources/group/client/requests/CreateGroupRequest.d.ts +2 -2
  38. package/dist/serialization/resources/group/client/requests/CreateGroupRequest.js +2 -2
  39. package/dist/serialization/types/Group.d.ts +3 -0
  40. package/dist/serialization/types/Group.js +3 -0
  41. package/dist/serialization/types/GroupListResponse.d.ts +15 -0
  42. package/{serialization/types/ApidataFactRatingExamples.js → dist/serialization/types/GroupListResponse.js} +6 -5
  43. package/dist/serialization/types/Session.d.ts +2 -2
  44. package/dist/serialization/types/Session.js +2 -2
  45. package/dist/serialization/types/index.d.ts +2 -3
  46. package/dist/serialization/types/index.js +2 -3
  47. package/dist/version.d.ts +1 -1
  48. package/dist/version.js +1 -1
  49. package/jest.config.mjs +1 -1
  50. package/package.json +1 -1
  51. package/reference.md +189 -0
  52. package/serialization/resources/group/client/requests/CreateGroupRequest.d.ts +2 -2
  53. package/serialization/resources/group/client/requests/CreateGroupRequest.js +2 -2
  54. package/serialization/types/Group.d.ts +3 -0
  55. package/serialization/types/Group.js +3 -0
  56. package/serialization/types/GroupListResponse.d.ts +15 -0
  57. package/{dist/serialization/types/ApidataFactRatingExamples.js → serialization/types/GroupListResponse.js} +6 -5
  58. package/serialization/types/Session.d.ts +2 -2
  59. package/serialization/types/Session.js +2 -2
  60. package/serialization/types/index.d.ts +2 -3
  61. package/serialization/types/index.js +2 -3
  62. package/version.d.ts +1 -1
  63. package/version.js +1 -1
  64. package/api/types/ApidataFactRatingExamples.d.ts +0 -8
  65. package/api/types/ApidataFactRatingInstruction.d.ts +0 -21
  66. package/dist/api/types/ApidataFactRatingExamples.d.ts +0 -8
  67. package/dist/api/types/ApidataFactRatingInstruction.d.ts +0 -21
  68. package/dist/serialization/types/ApidataFactRatingExamples.d.ts +0 -14
  69. package/dist/serialization/types/ApidataFactRatingInstruction.d.ts +0 -14
  70. package/dist/serialization/types/ApidataFactRatingInstruction.js +0 -45
  71. package/serialization/types/ApidataFactRatingExamples.d.ts +0 -14
  72. package/serialization/types/ApidataFactRatingInstruction.d.ts +0 -14
  73. package/serialization/types/ApidataFactRatingInstruction.js +0 -45
  74. /package/api/{types/ApidataFactRatingExamples.js → resources/group/client/requests/GetGroupsOrderedRequest.js} +0 -0
  75. /package/api/types/{ApidataFactRatingInstruction.js → GroupListResponse.js} +0 -0
  76. /package/dist/api/{types/ApidataFactRatingExamples.js → resources/group/client/requests/GetGroupsOrderedRequest.js} +0 -0
  77. /package/dist/api/types/{ApidataFactRatingInstruction.js → GroupListResponse.js} +0 -0
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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,
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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,
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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" }),
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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",
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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" }),
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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",
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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,
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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" }),
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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" }),
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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" }),
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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",
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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" }),
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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" }),
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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,
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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",
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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" }),
@@ -1620,7 +1620,7 @@ class Memory {
1620
1620
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1621
1621
  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
1622
  method: "POST",
1623
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.3.0", "User-Agent": "zep-cloud/2.3.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),
1623
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.3.1", "User-Agent": "zep-cloud/2.3.1", "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
1624
  contentType: "application/json",
1625
1625
  queryParameters: _queryParams,
1626
1626
  requestType: "json",
@@ -1696,7 +1696,7 @@ class Memory {
1696
1696
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1697
1697
  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
1698
  method: "GET",
1699
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.3.0", "User-Agent": "zep-cloud/2.3.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),
1699
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.3.1", "User-Agent": "zep-cloud/2.3.1", "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
1700
  contentType: "application/json",
1701
1701
  requestType: "json",
1702
1702
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1776,7 +1776,7 @@ class Memory {
1776
1776
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1777
1777
  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
1778
  method: "GET",
1779
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.3.0", "User-Agent": "zep-cloud/2.3.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),
1779
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.3.1", "User-Agent": "zep-cloud/2.3.1", "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
1780
  contentType: "application/json",
1781
1781
  queryParameters: _queryParams,
1782
1782
  requestType: "json",
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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" }),
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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",
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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,
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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,
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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" }),
@@ -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.3.0", "User-Agent": "zep-cloud/2.3.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.3.1", "User-Agent": "zep-cloud/2.3.1", "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,
@@ -541,7 +541,7 @@ class User {
541
541
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
542
542
  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`),
543
543
  method: "GET",
544
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.3.0", "User-Agent": "zep-cloud/2.3.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),
544
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.3.1", "User-Agent": "zep-cloud/2.3.1", "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
545
  contentType: "application/json",
546
546
  requestType: "json",
547
547
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,10 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Zep from "../index";
4
5
  export interface Group {
5
6
  createdAt?: string;
6
7
  description?: string;
7
8
  externalId?: string;
9
+ factRatingInstruction?: Zep.FactRatingInstruction;
10
+ groupId?: string;
8
11
  /** TODO deprecate */
9
12
  id?: number;
10
13
  name?: string;
@@ -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 GroupListResponse {
6
+ groups?: Zep.Group[];
7
+ rowCount?: number;
8
+ totalCount?: number;
9
+ }
@@ -16,6 +16,9 @@ export interface Memory {
16
16
  metadata?: Record<string, unknown>;
17
17
  /** Most relevant facts to the recent messages in the session. */
18
18
  relevantFacts?: Zep.Fact[];
19
- /** The most recent summary before last nth message. (cloud only) */
19
+ /**
20
+ * The most relevant summaries to the recent conversation. (cloud only)
21
+ * Deprecated: Please use context string instead.
22
+ */
20
23
  summary?: Zep.Summary;
21
24
  }
@@ -7,7 +7,7 @@ export interface Session {
7
7
  createdAt?: string;
8
8
  deletedAt?: string;
9
9
  endedAt?: string;
10
- factRatingInstruction?: Zep.ApidataFactRatingInstruction;
10
+ factRatingInstruction?: Zep.FactRatingInstruction;
11
11
  facts?: string[];
12
12
  /** TODO deprecate */
13
13
  id?: number;
@@ -7,13 +7,13 @@ export * from "./ApidataDocumentWithScore";
7
7
  export * from "./EndSessionResponse";
8
8
  export * from "./EndSessionsResponse";
9
9
  export * from "./Fact";
10
- export * from "./ApidataFactRatingExamples";
11
- export * from "./ApidataFactRatingInstruction";
10
+ export * from "./FactRatingInstruction";
12
11
  export * from "./FactResponse";
13
12
  export * from "./FactsResponse";
14
13
  export * from "./Episode";
15
14
  export * from "./EpisodeResponse";
16
15
  export * from "./Group";
16
+ export * from "./GroupListResponse";
17
17
  export * from "./Memory";
18
18
  export * from "./MemorySearchResult";
19
19
  export * from "./Message";
@@ -39,7 +39,6 @@ export * from "./Reranker";
39
39
  export * from "./ClassifySessionRequest";
40
40
  export * from "./CreateDocumentRequest";
41
41
  export * from "./FactRatingExamples";
42
- export * from "./FactRatingInstruction";
43
42
  export * from "./GraphDataType";
44
43
  export * from "./SearchScope";
45
44
  export * from "./SearchType";
@@ -23,13 +23,13 @@ __exportStar(require("./ApidataDocumentWithScore"), exports);
23
23
  __exportStar(require("./EndSessionResponse"), exports);
24
24
  __exportStar(require("./EndSessionsResponse"), exports);
25
25
  __exportStar(require("./Fact"), exports);
26
- __exportStar(require("./ApidataFactRatingExamples"), exports);
27
- __exportStar(require("./ApidataFactRatingInstruction"), exports);
26
+ __exportStar(require("./FactRatingInstruction"), exports);
28
27
  __exportStar(require("./FactResponse"), exports);
29
28
  __exportStar(require("./FactsResponse"), exports);
30
29
  __exportStar(require("./Episode"), exports);
31
30
  __exportStar(require("./EpisodeResponse"), exports);
32
31
  __exportStar(require("./Group"), exports);
32
+ __exportStar(require("./GroupListResponse"), exports);
33
33
  __exportStar(require("./Memory"), exports);
34
34
  __exportStar(require("./MemorySearchResult"), exports);
35
35
  __exportStar(require("./Message"), exports);
@@ -55,7 +55,6 @@ __exportStar(require("./Reranker"), exports);
55
55
  __exportStar(require("./ClassifySessionRequest"), exports);
56
56
  __exportStar(require("./CreateDocumentRequest"), exports);
57
57
  __exportStar(require("./FactRatingExamples"), exports);
58
- __exportStar(require("./FactRatingInstruction"), exports);
59
58
  __exportStar(require("./GraphDataType"), exports);
60
59
  __exportStar(require("./SearchScope"), exports);
61
60
  __exportStar(require("./SearchType"), exports);
@@ -4,12 +4,12 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Zep from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
- import { ApidataFactRatingInstruction } from "../../../../types/ApidataFactRatingInstruction";
7
+ import { FactRatingInstruction } from "../../../../types/FactRatingInstruction";
8
8
  export declare const CreateGroupRequest: core.serialization.Schema<serializers.CreateGroupRequest.Raw, Zep.CreateGroupRequest>;
9
9
  export declare namespace CreateGroupRequest {
10
10
  interface Raw {
11
11
  description?: string | null;
12
- fact_rating_instruction?: ApidataFactRatingInstruction.Raw | null;
12
+ fact_rating_instruction?: FactRatingInstruction.Raw | null;
13
13
  group_id: string;
14
14
  name?: string | null;
15
15
  }
@@ -38,10 +38,10 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CreateGroupRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
- const ApidataFactRatingInstruction_1 = require("../../../../types/ApidataFactRatingInstruction");
41
+ const FactRatingInstruction_1 = require("../../../../types/FactRatingInstruction");
42
42
  exports.CreateGroupRequest = core.serialization.object({
43
43
  description: core.serialization.string().optional(),
44
- factRatingInstruction: core.serialization.property("fact_rating_instruction", ApidataFactRatingInstruction_1.ApidataFactRatingInstruction.optional()),
44
+ factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_1.FactRatingInstruction.optional()),
45
45
  groupId: core.serialization.property("group_id", core.serialization.string()),
46
46
  name: core.serialization.string().optional(),
47
47
  });
@@ -4,12 +4,15 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Zep from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { FactRatingInstruction } from "./FactRatingInstruction";
7
8
  export declare const Group: core.serialization.ObjectSchema<serializers.Group.Raw, Zep.Group>;
8
9
  export declare namespace Group {
9
10
  interface Raw {
10
11
  created_at?: string | null;
11
12
  description?: string | null;
12
13
  external_id?: string | null;
14
+ fact_rating_instruction?: FactRatingInstruction.Raw | null;
15
+ group_id?: string | null;
13
16
  id?: number | null;
14
17
  name?: string | null;
15
18
  project_uuid?: string | null;
@@ -38,10 +38,13 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Group = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const FactRatingInstruction_1 = require("./FactRatingInstruction");
41
42
  exports.Group = core.serialization.object({
42
43
  createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
43
44
  description: core.serialization.string().optional(),
44
45
  externalId: core.serialization.property("external_id", core.serialization.string().optional()),
46
+ factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_1.FactRatingInstruction.optional()),
47
+ groupId: core.serialization.property("group_id", core.serialization.string().optional()),
45
48
  id: core.serialization.number().optional(),
46
49
  name: core.serialization.string().optional(),
47
50
  projectUuid: core.serialization.property("project_uuid", core.serialization.string().optional()),
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Zep from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { Group } from "./Group";
8
+ export declare const GroupListResponse: core.serialization.ObjectSchema<serializers.GroupListResponse.Raw, Zep.GroupListResponse>;
9
+ export declare namespace GroupListResponse {
10
+ interface Raw {
11
+ groups?: Group.Raw[] | null;
12
+ row_count?: number | null;
13
+ total_count?: number | null;
14
+ }
15
+ }
@@ -36,10 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ApidataFactRatingExamples = void 0;
39
+ exports.GroupListResponse = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.ApidataFactRatingExamples = core.serialization.object({
42
- high: core.serialization.string().optional(),
43
- low: core.serialization.string().optional(),
44
- medium: core.serialization.string().optional(),
41
+ const Group_1 = require("./Group");
42
+ exports.GroupListResponse = core.serialization.object({
43
+ groups: core.serialization.list(Group_1.Group).optional(),
44
+ rowCount: core.serialization.property("row_count", core.serialization.number().optional()),
45
+ totalCount: core.serialization.property("total_count", core.serialization.number().optional()),
45
46
  });
@@ -4,7 +4,7 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Zep from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { ApidataFactRatingInstruction } from "./ApidataFactRatingInstruction";
7
+ import { FactRatingInstruction } from "./FactRatingInstruction";
8
8
  export declare const Session: core.serialization.ObjectSchema<serializers.Session.Raw, Zep.Session>;
9
9
  export declare namespace Session {
10
10
  interface Raw {
@@ -12,7 +12,7 @@ export declare namespace Session {
12
12
  created_at?: string | null;
13
13
  deleted_at?: string | null;
14
14
  ended_at?: string | null;
15
- fact_rating_instruction?: ApidataFactRatingInstruction.Raw | null;
15
+ fact_rating_instruction?: FactRatingInstruction.Raw | null;
16
16
  facts?: string[] | null;
17
17
  id?: number | null;
18
18
  metadata?: Record<string, unknown> | null;
@@ -38,13 +38,13 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Session = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- const ApidataFactRatingInstruction_1 = require("./ApidataFactRatingInstruction");
41
+ const FactRatingInstruction_1 = require("./FactRatingInstruction");
42
42
  exports.Session = core.serialization.object({
43
43
  classifications: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
44
44
  createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
45
45
  deletedAt: core.serialization.property("deleted_at", core.serialization.string().optional()),
46
46
  endedAt: core.serialization.property("ended_at", core.serialization.string().optional()),
47
- factRatingInstruction: core.serialization.property("fact_rating_instruction", ApidataFactRatingInstruction_1.ApidataFactRatingInstruction.optional()),
47
+ factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_1.FactRatingInstruction.optional()),
48
48
  facts: core.serialization.list(core.serialization.string()).optional(),
49
49
  id: core.serialization.number().optional(),
50
50
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
@@ -7,13 +7,13 @@ export * from "./ApidataDocumentWithScore";
7
7
  export * from "./EndSessionResponse";
8
8
  export * from "./EndSessionsResponse";
9
9
  export * from "./Fact";
10
- export * from "./ApidataFactRatingExamples";
11
- export * from "./ApidataFactRatingInstruction";
10
+ export * from "./FactRatingInstruction";
12
11
  export * from "./FactResponse";
13
12
  export * from "./FactsResponse";
14
13
  export * from "./Episode";
15
14
  export * from "./EpisodeResponse";
16
15
  export * from "./Group";
16
+ export * from "./GroupListResponse";
17
17
  export * from "./Memory";
18
18
  export * from "./MemorySearchResult";
19
19
  export * from "./Message";
@@ -39,7 +39,6 @@ export * from "./Reranker";
39
39
  export * from "./ClassifySessionRequest";
40
40
  export * from "./CreateDocumentRequest";
41
41
  export * from "./FactRatingExamples";
42
- export * from "./FactRatingInstruction";
43
42
  export * from "./GraphDataType";
44
43
  export * from "./SearchScope";
45
44
  export * from "./SearchType";
@@ -23,13 +23,13 @@ __exportStar(require("./ApidataDocumentWithScore"), exports);
23
23
  __exportStar(require("./EndSessionResponse"), exports);
24
24
  __exportStar(require("./EndSessionsResponse"), exports);
25
25
  __exportStar(require("./Fact"), exports);
26
- __exportStar(require("./ApidataFactRatingExamples"), exports);
27
- __exportStar(require("./ApidataFactRatingInstruction"), exports);
26
+ __exportStar(require("./FactRatingInstruction"), exports);
28
27
  __exportStar(require("./FactResponse"), exports);
29
28
  __exportStar(require("./FactsResponse"), exports);
30
29
  __exportStar(require("./Episode"), exports);
31
30
  __exportStar(require("./EpisodeResponse"), exports);
32
31
  __exportStar(require("./Group"), exports);
32
+ __exportStar(require("./GroupListResponse"), exports);
33
33
  __exportStar(require("./Memory"), exports);
34
34
  __exportStar(require("./MemorySearchResult"), exports);
35
35
  __exportStar(require("./Message"), exports);
@@ -55,7 +55,6 @@ __exportStar(require("./Reranker"), exports);
55
55
  __exportStar(require("./ClassifySessionRequest"), exports);
56
56
  __exportStar(require("./CreateDocumentRequest"), exports);
57
57
  __exportStar(require("./FactRatingExamples"), exports);
58
- __exportStar(require("./FactRatingInstruction"), exports);
59
58
  __exportStar(require("./GraphDataType"), exports);
60
59
  __exportStar(require("./SearchScope"), exports);
61
60
  __exportStar(require("./SearchType"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.3.0";
1
+ export declare const SDK_VERSION = "2.3.1";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "2.3.0";
4
+ exports.SDK_VERSION = "2.3.1";
package/jest.config.mjs CHANGED
@@ -3,6 +3,6 @@ export default {
3
3
  preset: "ts-jest",
4
4
  testEnvironment: "node",
5
5
  moduleNameMapper: {
6
- "(.+)\.js": "$1",
6
+ "(.+)\.js$": "$1",
7
7
  },
8
8
  };