@getzep/zep-cloud 3.6.0 → 3.8.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 (118) hide show
  1. package/dist/cjs/Client.d.ts +3 -0
  2. package/dist/cjs/Client.js +11 -6
  3. package/dist/cjs/api/resources/index.d.ts +1 -0
  4. package/dist/cjs/api/resources/index.js +2 -1
  5. package/dist/cjs/api/resources/project/client/Client.d.ts +48 -0
  6. package/dist/cjs/api/resources/project/client/Client.js +156 -0
  7. package/dist/cjs/api/resources/project/client/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/project/client/index.js +2 -0
  9. package/dist/cjs/api/resources/project/index.d.ts +1 -0
  10. package/dist/cjs/api/resources/project/index.js +17 -0
  11. package/dist/cjs/api/resources/thread/client/Client.d.ts +3 -0
  12. package/dist/cjs/api/resources/thread/client/Client.js +5 -0
  13. package/dist/cjs/api/resources/thread/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/thread/index.js +1 -0
  15. package/dist/cjs/api/resources/thread/resources/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/thread/resources/index.js +41 -0
  17. package/dist/cjs/api/resources/thread/resources/message/client/Client.d.ts +53 -0
  18. package/dist/cjs/api/resources/thread/resources/message/client/Client.js +159 -0
  19. package/dist/cjs/api/resources/thread/resources/message/client/index.d.ts +2 -0
  20. package/dist/cjs/api/resources/thread/resources/message/client/index.js +17 -0
  21. package/dist/cjs/api/resources/thread/resources/message/client/requests/ThreadMessageUpdate.d.ts +14 -0
  22. package/dist/cjs/api/resources/thread/resources/message/client/requests/ThreadMessageUpdate.js +5 -0
  23. package/dist/cjs/api/resources/thread/resources/message/client/requests/index.d.ts +1 -0
  24. package/dist/cjs/api/resources/thread/resources/message/client/requests/index.js +2 -0
  25. package/dist/cjs/api/resources/thread/resources/message/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/thread/resources/message/index.js +17 -0
  27. package/dist/cjs/api/types/Episode.d.ts +3 -1
  28. package/dist/cjs/api/types/Message.d.ts +2 -0
  29. package/dist/cjs/api/types/ProjectInfo.d.ts +9 -0
  30. package/dist/cjs/api/types/ProjectInfo.js +5 -0
  31. package/dist/cjs/api/types/ProjectInfoResponse.d.ts +7 -0
  32. package/dist/cjs/api/types/ProjectInfoResponse.js +5 -0
  33. package/dist/cjs/api/types/index.d.ts +2 -0
  34. package/dist/cjs/api/types/index.js +2 -0
  35. package/dist/cjs/serialization/resources/thread/index.d.ts +1 -0
  36. package/dist/cjs/serialization/resources/thread/index.js +1 -0
  37. package/dist/cjs/serialization/resources/thread/resources/index.d.ts +2 -0
  38. package/dist/cjs/serialization/resources/thread/resources/index.js +41 -0
  39. package/dist/cjs/serialization/resources/thread/resources/message/client/index.d.ts +1 -0
  40. package/dist/cjs/serialization/resources/thread/resources/message/client/index.js +17 -0
  41. package/dist/cjs/serialization/resources/thread/resources/message/client/requests/ThreadMessageUpdate.d.ts +12 -0
  42. package/dist/cjs/serialization/resources/thread/resources/message/client/requests/ThreadMessageUpdate.js +43 -0
  43. package/dist/cjs/serialization/resources/thread/resources/message/client/requests/index.d.ts +1 -0
  44. package/dist/cjs/serialization/resources/thread/resources/message/client/requests/index.js +5 -0
  45. package/dist/cjs/serialization/resources/thread/resources/message/index.d.ts +1 -0
  46. package/dist/cjs/serialization/resources/thread/resources/message/index.js +17 -0
  47. package/dist/cjs/serialization/types/Episode.d.ts +2 -1
  48. package/dist/cjs/serialization/types/Episode.js +2 -1
  49. package/dist/cjs/serialization/types/Message.d.ts +1 -0
  50. package/dist/cjs/serialization/types/Message.js +1 -0
  51. package/dist/cjs/serialization/types/ProjectInfo.d.ts +15 -0
  52. package/dist/cjs/serialization/types/ProjectInfo.js +46 -0
  53. package/dist/cjs/serialization/types/ProjectInfoResponse.d.ts +13 -0
  54. package/dist/cjs/serialization/types/ProjectInfoResponse.js +44 -0
  55. package/dist/cjs/serialization/types/index.d.ts +2 -0
  56. package/dist/cjs/serialization/types/index.js +2 -0
  57. package/dist/cjs/version.d.ts +1 -1
  58. package/dist/cjs/version.js +1 -1
  59. package/dist/esm/Client.d.mts +3 -0
  60. package/dist/esm/Client.mjs +7 -2
  61. package/dist/esm/api/resources/index.d.mts +1 -0
  62. package/dist/esm/api/resources/index.mjs +1 -0
  63. package/dist/esm/api/resources/project/client/Client.d.mts +48 -0
  64. package/dist/esm/api/resources/project/client/Client.mjs +119 -0
  65. package/dist/esm/api/resources/project/client/index.d.mts +1 -0
  66. package/dist/esm/api/resources/project/client/index.mjs +1 -0
  67. package/dist/esm/api/resources/project/index.d.mts +1 -0
  68. package/dist/esm/api/resources/project/index.mjs +1 -0
  69. package/dist/esm/api/resources/thread/client/Client.d.mts +3 -0
  70. package/dist/esm/api/resources/thread/client/Client.mjs +5 -0
  71. package/dist/esm/api/resources/thread/index.d.mts +1 -0
  72. package/dist/esm/api/resources/thread/index.mjs +1 -0
  73. package/dist/esm/api/resources/thread/resources/index.d.mts +2 -0
  74. package/dist/esm/api/resources/thread/resources/index.mjs +2 -0
  75. package/dist/esm/api/resources/thread/resources/message/client/Client.d.mts +53 -0
  76. package/dist/esm/api/resources/thread/resources/message/client/Client.mjs +122 -0
  77. package/dist/esm/api/resources/thread/resources/message/client/index.d.mts +2 -0
  78. package/dist/esm/api/resources/thread/resources/message/client/index.mjs +1 -0
  79. package/dist/esm/api/resources/thread/resources/message/client/requests/ThreadMessageUpdate.d.mts +14 -0
  80. package/dist/esm/api/resources/thread/resources/message/client/requests/ThreadMessageUpdate.mjs +4 -0
  81. package/dist/esm/api/resources/thread/resources/message/client/requests/index.d.mts +1 -0
  82. package/dist/esm/api/resources/thread/resources/message/client/requests/index.mjs +1 -0
  83. package/dist/esm/api/resources/thread/resources/message/index.d.mts +1 -0
  84. package/dist/esm/api/resources/thread/resources/message/index.mjs +1 -0
  85. package/dist/esm/api/types/Episode.d.mts +3 -1
  86. package/dist/esm/api/types/Message.d.mts +2 -0
  87. package/dist/esm/api/types/ProjectInfo.d.mts +9 -0
  88. package/dist/esm/api/types/ProjectInfo.mjs +4 -0
  89. package/dist/esm/api/types/ProjectInfoResponse.d.mts +7 -0
  90. package/dist/esm/api/types/ProjectInfoResponse.mjs +4 -0
  91. package/dist/esm/api/types/index.d.mts +2 -0
  92. package/dist/esm/api/types/index.mjs +2 -0
  93. package/dist/esm/serialization/resources/thread/index.d.mts +1 -0
  94. package/dist/esm/serialization/resources/thread/index.mjs +1 -0
  95. package/dist/esm/serialization/resources/thread/resources/index.d.mts +2 -0
  96. package/dist/esm/serialization/resources/thread/resources/index.mjs +2 -0
  97. package/dist/esm/serialization/resources/thread/resources/message/client/index.d.mts +1 -0
  98. package/dist/esm/serialization/resources/thread/resources/message/client/index.mjs +1 -0
  99. package/dist/esm/serialization/resources/thread/resources/message/client/requests/ThreadMessageUpdate.d.mts +12 -0
  100. package/dist/esm/serialization/resources/thread/resources/message/client/requests/ThreadMessageUpdate.mjs +7 -0
  101. package/dist/esm/serialization/resources/thread/resources/message/client/requests/index.d.mts +1 -0
  102. package/dist/esm/serialization/resources/thread/resources/message/client/requests/index.mjs +1 -0
  103. package/dist/esm/serialization/resources/thread/resources/message/index.d.mts +1 -0
  104. package/dist/esm/serialization/resources/thread/resources/message/index.mjs +1 -0
  105. package/dist/esm/serialization/types/Episode.d.mts +2 -1
  106. package/dist/esm/serialization/types/Episode.mjs +2 -1
  107. package/dist/esm/serialization/types/Message.d.mts +1 -0
  108. package/dist/esm/serialization/types/Message.mjs +1 -0
  109. package/dist/esm/serialization/types/ProjectInfo.d.mts +15 -0
  110. package/dist/esm/serialization/types/ProjectInfo.mjs +10 -0
  111. package/dist/esm/serialization/types/ProjectInfoResponse.d.mts +13 -0
  112. package/dist/esm/serialization/types/ProjectInfoResponse.mjs +8 -0
  113. package/dist/esm/serialization/types/index.d.mts +2 -0
  114. package/dist/esm/serialization/types/index.mjs +2 -0
  115. package/dist/esm/version.d.mts +1 -1
  116. package/dist/esm/version.mjs +1 -1
  117. package/package.json +1 -1
  118. package/reference.md +134 -0
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * metadata: {
8
+ * "key": "value"
9
+ * }
10
+ * }
11
+ */
12
+ export interface ThreadMessageUpdate {
13
+ metadata: Record<string, unknown>;
14
+ }
@@ -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 });
@@ -0,0 +1 @@
1
+ export { type ThreadMessageUpdate } from "./ThreadMessageUpdate.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -5,6 +5,7 @@ import * as Zep from "../index.js";
5
5
  export interface Episode {
6
6
  content: string;
7
7
  createdAt: string;
8
+ metadata?: Record<string, unknown>;
8
9
  processed?: boolean;
9
10
  /**
10
11
  * Relevance is an experimental rank-aligned score in [0,1] derived from Score via logit transformation.
@@ -17,8 +18,9 @@ export interface Episode {
17
18
  roleType?: Zep.RoleType;
18
19
  /** Score is the reranker output: sigmoid-distributed logits [0,1] when using cross_encoder reranker, or RRF ordinal rank when using rrf reranker */
19
20
  score?: number;
20
- sessionId?: string;
21
21
  source?: Zep.GraphDataType;
22
22
  sourceDescription?: string;
23
+ /** Optional thread ID, will be present if the episode is part of a thread */
24
+ threadId?: string;
23
25
  uuid: string;
24
26
  }
@@ -7,6 +7,8 @@ export interface Message {
7
7
  content: string;
8
8
  /** The timestamp of when the message was created. */
9
9
  createdAt?: string;
10
+ /** The metadata associated with the message. */
11
+ metadata?: Record<string, unknown>;
10
12
  /** Customizable name of the sender of the message (e.g., "john", "sales_agent"). */
11
13
  name?: string;
12
14
  /** Whether the message has been processed. */
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ProjectInfo {
5
+ createdAt?: string;
6
+ description?: string;
7
+ name?: string;
8
+ uuid?: string;
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 });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../index.js";
5
+ export interface ProjectInfoResponse {
6
+ project?: Zep.ProjectInfo;
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 });
@@ -18,6 +18,8 @@ export * from "./EpisodeResponse.js";
18
18
  export * from "./GraphListResponse.js";
19
19
  export * from "./GraphNodesRequest.js";
20
20
  export * from "./GraphSearchResults.js";
21
+ export * from "./ProjectInfo.js";
22
+ export * from "./ProjectInfoResponse.js";
21
23
  export * from "./RoleType.js";
22
24
  export * from "./SuccessResponse.js";
23
25
  export * from "./Thread.js";
@@ -34,6 +34,8 @@ __exportStar(require("./EpisodeResponse.js"), exports);
34
34
  __exportStar(require("./GraphListResponse.js"), exports);
35
35
  __exportStar(require("./GraphNodesRequest.js"), exports);
36
36
  __exportStar(require("./GraphSearchResults.js"), exports);
37
+ __exportStar(require("./ProjectInfo.js"), exports);
38
+ __exportStar(require("./ProjectInfoResponse.js"), exports);
37
39
  __exportStar(require("./RoleType.js"), exports);
38
40
  __exportStar(require("./SuccessResponse.js"), exports);
39
41
  __exportStar(require("./Thread.js"), exports);
@@ -1,2 +1,3 @@
1
1
  export * from "./types/index.js";
2
2
  export * from "./client/index.js";
3
+ export * from "./resources/index.js";
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./types/index.js"), exports);
18
18
  __exportStar(require("./client/index.js"), exports);
19
+ __exportStar(require("./resources/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * as message from "./message/index.js";
2
+ export * from "./message/client/requests/index.js";
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.message = void 0;
40
+ exports.message = __importStar(require("./message/index.js"));
41
+ __exportStar(require("./message/client/requests/index.js"), exports);
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../index.js";
5
+ import * as Zep from "../../../../../../../api/index.js";
6
+ import * as core from "../../../../../../../core/index.js";
7
+ export declare const ThreadMessageUpdate: core.serialization.Schema<serializers.thread.ThreadMessageUpdate.Raw, Zep.thread.ThreadMessageUpdate>;
8
+ export declare namespace ThreadMessageUpdate {
9
+ interface Raw {
10
+ metadata: Record<string, unknown>;
11
+ }
12
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ThreadMessageUpdate = void 0;
40
+ const core = __importStar(require("../../../../../../../core/index.js"));
41
+ exports.ThreadMessageUpdate = core.serialization.object({
42
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
43
+ });
@@ -0,0 +1 @@
1
+ export { ThreadMessageUpdate } from "./ThreadMessageUpdate.js";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ThreadMessageUpdate = void 0;
4
+ var ThreadMessageUpdate_js_1 = require("./ThreadMessageUpdate.js");
5
+ Object.defineProperty(exports, "ThreadMessageUpdate", { enumerable: true, get: function () { return ThreadMessageUpdate_js_1.ThreadMessageUpdate; } });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -11,14 +11,15 @@ export declare namespace Episode {
11
11
  interface Raw {
12
12
  content: string;
13
13
  created_at: string;
14
+ metadata?: Record<string, unknown> | null;
14
15
  processed?: boolean | null;
15
16
  relevance?: number | null;
16
17
  role?: string | null;
17
18
  role_type?: RoleType.Raw | null;
18
19
  score?: number | null;
19
- session_id?: string | null;
20
20
  source?: GraphDataType.Raw | null;
21
21
  source_description?: string | null;
22
+ thread_id?: string | null;
22
23
  uuid: string;
23
24
  }
24
25
  }
@@ -43,13 +43,14 @@ const GraphDataType_js_1 = require("./GraphDataType.js");
43
43
  exports.Episode = core.serialization.object({
44
44
  content: core.serialization.string(),
45
45
  createdAt: core.serialization.property("created_at", core.serialization.string()),
46
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
46
47
  processed: core.serialization.boolean().optional(),
47
48
  relevance: core.serialization.number().optional(),
48
49
  role: core.serialization.string().optional(),
49
50
  roleType: core.serialization.property("role_type", RoleType_js_1.RoleType.optional()),
50
51
  score: core.serialization.number().optional(),
51
- sessionId: core.serialization.property("session_id", core.serialization.string().optional()),
52
52
  source: GraphDataType_js_1.GraphDataType.optional(),
53
53
  sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()),
54
+ threadId: core.serialization.property("thread_id", core.serialization.string().optional()),
54
55
  uuid: core.serialization.string(),
55
56
  });
@@ -10,6 +10,7 @@ export declare namespace Message {
10
10
  interface Raw {
11
11
  content: string;
12
12
  created_at?: string | null;
13
+ metadata?: Record<string, unknown> | null;
13
14
  name?: string | null;
14
15
  processed?: boolean | null;
15
16
  role: RoleType.Raw;
@@ -42,6 +42,7 @@ const RoleType_js_1 = require("./RoleType.js");
42
42
  exports.Message = core.serialization.object({
43
43
  content: core.serialization.string(),
44
44
  createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
45
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
45
46
  name: core.serialization.string().optional(),
46
47
  processed: core.serialization.boolean().optional(),
47
48
  role: RoleType_js_1.RoleType,
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index.js";
5
+ import * as Zep from "../../api/index.js";
6
+ import * as core from "../../core/index.js";
7
+ export declare const ProjectInfo: core.serialization.ObjectSchema<serializers.ProjectInfo.Raw, Zep.ProjectInfo>;
8
+ export declare namespace ProjectInfo {
9
+ interface Raw {
10
+ created_at?: string | null;
11
+ description?: string | null;
12
+ name?: string | null;
13
+ uuid?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ProjectInfo = void 0;
40
+ const core = __importStar(require("../../core/index.js"));
41
+ exports.ProjectInfo = core.serialization.object({
42
+ createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
43
+ description: core.serialization.string().optional(),
44
+ name: core.serialization.string().optional(),
45
+ uuid: core.serialization.string().optional(),
46
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index.js";
5
+ import * as Zep from "../../api/index.js";
6
+ import * as core from "../../core/index.js";
7
+ import { ProjectInfo } from "./ProjectInfo.js";
8
+ export declare const ProjectInfoResponse: core.serialization.ObjectSchema<serializers.ProjectInfoResponse.Raw, Zep.ProjectInfoResponse>;
9
+ export declare namespace ProjectInfoResponse {
10
+ interface Raw {
11
+ project?: ProjectInfo.Raw | null;
12
+ }
13
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ProjectInfoResponse = void 0;
40
+ const core = __importStar(require("../../core/index.js"));
41
+ const ProjectInfo_js_1 = require("./ProjectInfo.js");
42
+ exports.ProjectInfoResponse = core.serialization.object({
43
+ project: ProjectInfo_js_1.ProjectInfo.optional(),
44
+ });
@@ -18,6 +18,8 @@ export * from "./EpisodeResponse.js";
18
18
  export * from "./GraphListResponse.js";
19
19
  export * from "./GraphNodesRequest.js";
20
20
  export * from "./GraphSearchResults.js";
21
+ export * from "./ProjectInfo.js";
22
+ export * from "./ProjectInfoResponse.js";
21
23
  export * from "./RoleType.js";
22
24
  export * from "./SuccessResponse.js";
23
25
  export * from "./Thread.js";
@@ -34,6 +34,8 @@ __exportStar(require("./EpisodeResponse.js"), exports);
34
34
  __exportStar(require("./GraphListResponse.js"), exports);
35
35
  __exportStar(require("./GraphNodesRequest.js"), exports);
36
36
  __exportStar(require("./GraphSearchResults.js"), exports);
37
+ __exportStar(require("./ProjectInfo.js"), exports);
38
+ __exportStar(require("./ProjectInfoResponse.js"), exports);
37
39
  __exportStar(require("./RoleType.js"), exports);
38
40
  __exportStar(require("./SuccessResponse.js"), exports);
39
41
  __exportStar(require("./Thread.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.6.0";
1
+ export declare const SDK_VERSION = "3.8.0";
@@ -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 = "3.6.0";
4
+ exports.SDK_VERSION = "3.8.0";
@@ -4,6 +4,7 @@
4
4
  import * as environments from "./environments.mjs";
5
5
  import * as core from "./core/index.mjs";
6
6
  import { Graph } from "./api/resources/graph/client/Client.mjs";
7
+ import { Project } from "./api/resources/project/client/Client.mjs";
7
8
  import { Thread } from "./api/resources/thread/client/Client.mjs";
8
9
  import { User } from "./api/resources/user/client/Client.mjs";
9
10
  export declare namespace ZepClient {
@@ -30,10 +31,12 @@ export declare namespace ZepClient {
30
31
  export declare class ZepClient {
31
32
  protected readonly _options: ZepClient.Options;
32
33
  protected _graph: Graph | undefined;
34
+ protected _project: Project | undefined;
33
35
  protected _thread: Thread | undefined;
34
36
  protected _user: User | undefined;
35
37
  constructor(_options?: ZepClient.Options);
36
38
  get graph(): Graph;
39
+ get project(): Project;
37
40
  get thread(): Thread;
38
41
  get user(): User;
39
42
  }
@@ -4,6 +4,7 @@
4
4
  import * as core from "./core/index.mjs";
5
5
  import { mergeHeaders } from "./core/headers.mjs";
6
6
  import { Graph } from "./api/resources/graph/client/Client.mjs";
7
+ import { Project } from "./api/resources/project/client/Client.mjs";
7
8
  import { Thread } from "./api/resources/thread/client/Client.mjs";
8
9
  import { User } from "./api/resources/user/client/Client.mjs";
9
10
  export class ZepClient {
@@ -11,8 +12,8 @@ export class ZepClient {
11
12
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
12
13
  "X-Fern-Language": "JavaScript",
13
14
  "X-Fern-SDK-Name": "zep-cloud",
14
- "X-Fern-SDK-Version": "3.6.0",
15
- "User-Agent": "zep-cloud/3.6.0",
15
+ "X-Fern-SDK-Version": "3.8.0",
16
+ "User-Agent": "zep-cloud/3.8.0",
16
17
  "X-Fern-Runtime": core.RUNTIME.type,
17
18
  "X-Fern-Runtime-Version": core.RUNTIME.version,
18
19
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -21,6 +22,10 @@ export class ZepClient {
21
22
  var _a;
22
23
  return ((_a = this._graph) !== null && _a !== void 0 ? _a : (this._graph = new Graph(this._options)));
23
24
  }
25
+ get project() {
26
+ var _a;
27
+ return ((_a = this._project) !== null && _a !== void 0 ? _a : (this._project = new Project(this._options)));
28
+ }
24
29
  get thread() {
25
30
  var _a;
26
31
  return ((_a = this._thread) !== null && _a !== void 0 ? _a : (this._thread = new Thread(this._options)));
@@ -1,6 +1,7 @@
1
1
  export * as thread from "./thread/index.mjs";
2
2
  export * from "./thread/types/index.mjs";
3
3
  export * as graph from "./graph/index.mjs";
4
+ export * as project from "./project/index.mjs";
4
5
  export * as user from "./user/index.mjs";
5
6
  export * from "./graph/client/requests/index.mjs";
6
7
  export * from "./thread/client/requests/index.mjs";
@@ -1,6 +1,7 @@
1
1
  export * as thread from "./thread/index.mjs";
2
2
  export * from "./thread/types/index.mjs";
3
3
  export * as graph from "./graph/index.mjs";
4
+ export * as project from "./project/index.mjs";
4
5
  export * as user from "./user/index.mjs";
5
6
  export * from "./graph/client/requests/index.mjs";
6
7
  export * from "./thread/client/requests/index.mjs";
@@ -0,0 +1,48 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments.mjs";
5
+ import * as core from "../../../../core/index.mjs";
6
+ import * as Zep from "../../../index.mjs";
7
+ export declare namespace Project {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ZepEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ apiKey?: core.Supplier<string | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional headers to include in the request. */
25
+ headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ }
27
+ }
28
+ export declare class Project {
29
+ protected readonly _options: Project.Options;
30
+ constructor(_options?: Project.Options);
31
+ /**
32
+ * Retrieve project info based on the provided api key.
33
+ *
34
+ * @param {Project.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @throws {@link Zep.BadRequestError}
37
+ * @throws {@link Zep.NotFoundError}
38
+ * @throws {@link Zep.InternalServerError}
39
+ *
40
+ * @example
41
+ * await client.project.get()
42
+ */
43
+ get(requestOptions?: Project.RequestOptions): core.HttpResponsePromise<Zep.ProjectInfoResponse>;
44
+ private __get;
45
+ protected _getCustomAuthorizationHeaders(): Promise<{
46
+ Authorization: string;
47
+ }>;
48
+ }