@getzep/zep-cloud 2.4.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/api/resources/document/client/Client.d.ts +4 -4
  2. package/api/resources/document/client/Client.js +17 -17
  3. package/api/resources/graph/client/Client.d.ts +18 -1
  4. package/api/resources/graph/client/Client.js +82 -3
  5. package/api/resources/graph/client/requests/AddTripleRequest.d.ts +41 -0
  6. package/api/resources/graph/client/requests/AddTripleRequest.js +5 -0
  7. package/api/resources/graph/client/requests/GraphSearchQuery.d.ts +3 -1
  8. package/api/resources/graph/client/requests/index.d.ts +1 -0
  9. package/api/resources/graph/resources/edge/client/Client.d.ts +4 -4
  10. package/api/resources/graph/resources/edge/client/Client.js +8 -8
  11. package/api/resources/graph/resources/episode/client/Client.d.ts +4 -4
  12. package/api/resources/graph/resources/episode/client/Client.js +8 -8
  13. package/api/resources/graph/resources/node/client/Client.d.ts +3 -3
  14. package/api/resources/graph/resources/node/client/Client.js +6 -6
  15. package/api/resources/group/client/Client.d.ts +24 -9
  16. package/api/resources/group/client/Client.js +99 -14
  17. package/api/resources/group/client/requests/CreateGroupRequest.d.ts +0 -1
  18. package/api/resources/group/client/requests/GetGroupsOrderedRequest.d.ts +2 -2
  19. package/api/resources/group/client/requests/UpdateGroupRequest.d.ts +13 -0
  20. package/api/resources/group/client/requests/UpdateGroupRequest.js +5 -0
  21. package/api/resources/group/client/requests/index.d.ts +1 -0
  22. package/api/resources/memory/client/Client.d.ts +20 -22
  23. package/api/resources/memory/client/Client.js +42 -44
  24. package/api/resources/memory/client/requests/AddMemoryRequest.d.ts +8 -2
  25. package/api/resources/memory/client/requests/CreateSessionRequest.d.ts +2 -2
  26. package/api/resources/memory/client/requests/MemoryGetRequest.d.ts +1 -1
  27. package/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.d.ts +1 -1
  28. package/api/resources/memory/client/requests/MemoryListSessionsRequest.d.ts +3 -3
  29. package/api/resources/memory/client/requests/ModelsMessageMetadataUpdate.d.ts +1 -1
  30. package/api/resources/memory/client/requests/SessionSearchQuery.d.ts +7 -7
  31. package/api/resources/memory/client/requests/UpdateSessionRequest.d.ts +1 -1
  32. package/api/resources/user/client/Client.d.ts +8 -8
  33. package/api/resources/user/client/Client.js +16 -16
  34. package/api/types/AddTripleResponse.d.ts +9 -0
  35. package/api/types/AddTripleResponse.js +5 -0
  36. package/api/types/ClassifySessionRequest.d.ts +2 -2
  37. package/api/types/EntityNode.d.ts +2 -0
  38. package/api/types/Fact.d.ts +1 -1
  39. package/api/types/Group.d.ts +1 -1
  40. package/api/types/Memory.d.ts +3 -9
  41. package/api/types/Message.d.ts +3 -3
  42. package/api/types/SearchFilters.d.ts +7 -0
  43. package/api/types/SearchFilters.js +5 -0
  44. package/api/types/Session.d.ts +4 -2
  45. package/api/types/User.d.ts +3 -0
  46. package/api/types/index.d.ts +2 -0
  47. package/api/types/index.js +2 -0
  48. package/dist/api/resources/document/client/Client.d.ts +4 -4
  49. package/dist/api/resources/document/client/Client.js +17 -17
  50. package/dist/api/resources/graph/client/Client.d.ts +18 -1
  51. package/dist/api/resources/graph/client/Client.js +82 -3
  52. package/dist/api/resources/graph/client/requests/AddTripleRequest.d.ts +41 -0
  53. package/dist/api/resources/graph/client/requests/AddTripleRequest.js +5 -0
  54. package/dist/api/resources/graph/client/requests/GraphSearchQuery.d.ts +3 -1
  55. package/dist/api/resources/graph/client/requests/index.d.ts +1 -0
  56. package/dist/api/resources/graph/resources/edge/client/Client.d.ts +4 -4
  57. package/dist/api/resources/graph/resources/edge/client/Client.js +8 -8
  58. package/dist/api/resources/graph/resources/episode/client/Client.d.ts +4 -4
  59. package/dist/api/resources/graph/resources/episode/client/Client.js +8 -8
  60. package/dist/api/resources/graph/resources/node/client/Client.d.ts +3 -3
  61. package/dist/api/resources/graph/resources/node/client/Client.js +6 -6
  62. package/dist/api/resources/group/client/Client.d.ts +24 -9
  63. package/dist/api/resources/group/client/Client.js +99 -14
  64. package/dist/api/resources/group/client/requests/CreateGroupRequest.d.ts +0 -1
  65. package/dist/api/resources/group/client/requests/GetGroupsOrderedRequest.d.ts +2 -2
  66. package/dist/api/resources/group/client/requests/UpdateGroupRequest.d.ts +13 -0
  67. package/dist/api/resources/group/client/requests/UpdateGroupRequest.js +5 -0
  68. package/dist/api/resources/group/client/requests/index.d.ts +1 -0
  69. package/dist/api/resources/memory/client/Client.d.ts +20 -22
  70. package/dist/api/resources/memory/client/Client.js +42 -44
  71. package/dist/api/resources/memory/client/requests/AddMemoryRequest.d.ts +8 -2
  72. package/dist/api/resources/memory/client/requests/CreateSessionRequest.d.ts +2 -2
  73. package/dist/api/resources/memory/client/requests/MemoryGetRequest.d.ts +1 -1
  74. package/dist/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.d.ts +1 -1
  75. package/dist/api/resources/memory/client/requests/MemoryListSessionsRequest.d.ts +3 -3
  76. package/dist/api/resources/memory/client/requests/ModelsMessageMetadataUpdate.d.ts +1 -1
  77. package/dist/api/resources/memory/client/requests/SessionSearchQuery.d.ts +7 -7
  78. package/dist/api/resources/memory/client/requests/UpdateSessionRequest.d.ts +1 -1
  79. package/dist/api/resources/user/client/Client.d.ts +8 -8
  80. package/dist/api/resources/user/client/Client.js +16 -16
  81. package/dist/api/types/AddTripleResponse.d.ts +9 -0
  82. package/dist/api/types/AddTripleResponse.js +5 -0
  83. package/dist/api/types/ClassifySessionRequest.d.ts +2 -2
  84. package/dist/api/types/EntityNode.d.ts +2 -0
  85. package/dist/api/types/Fact.d.ts +1 -1
  86. package/dist/api/types/Group.d.ts +1 -1
  87. package/dist/api/types/Memory.d.ts +3 -9
  88. package/dist/api/types/Message.d.ts +3 -3
  89. package/dist/api/types/SearchFilters.d.ts +7 -0
  90. package/dist/api/types/SearchFilters.js +5 -0
  91. package/dist/api/types/Session.d.ts +4 -2
  92. package/dist/api/types/User.d.ts +3 -0
  93. package/dist/api/types/index.d.ts +2 -0
  94. package/dist/api/types/index.js +2 -0
  95. package/dist/serialization/resources/graph/client/requests/AddTripleRequest.d.ts +26 -0
  96. package/dist/serialization/resources/graph/client/requests/AddTripleRequest.js +57 -0
  97. package/dist/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +2 -0
  98. package/dist/serialization/resources/graph/client/requests/GraphSearchQuery.js +2 -0
  99. package/dist/serialization/resources/graph/client/requests/index.d.ts +1 -0
  100. package/dist/serialization/resources/graph/client/requests/index.js +3 -1
  101. package/dist/serialization/resources/group/client/requests/UpdateGroupRequest.d.ts +15 -0
  102. package/dist/serialization/resources/group/client/requests/UpdateGroupRequest.js +46 -0
  103. package/dist/serialization/resources/group/client/requests/index.d.ts +1 -0
  104. package/dist/serialization/resources/group/client/requests/index.js +3 -1
  105. package/dist/serialization/resources/memory/client/requests/AddMemoryRequest.d.ts +2 -0
  106. package/dist/serialization/resources/memory/client/requests/AddMemoryRequest.js +2 -0
  107. package/dist/serialization/types/AddTripleResponse.d.ts +16 -0
  108. package/dist/serialization/types/AddTripleResponse.js +47 -0
  109. package/dist/serialization/types/EntityNode.d.ts +1 -0
  110. package/dist/serialization/types/EntityNode.js +1 -0
  111. package/dist/serialization/types/SearchFilters.d.ts +12 -0
  112. package/dist/serialization/types/SearchFilters.js +43 -0
  113. package/dist/serialization/types/index.d.ts +2 -0
  114. package/dist/serialization/types/index.js +2 -0
  115. package/dist/version.d.ts +1 -1
  116. package/dist/version.js +1 -1
  117. package/examples/langgraph/.env.example +7 -0
  118. package/examples/langgraph/README.md +165 -0
  119. package/examples/langgraph/agent.ts +261 -0
  120. package/examples/langgraph/package-lock.json +1697 -0
  121. package/examples/langgraph/package.json +20 -0
  122. package/examples/langgraph/zep-memory.ts +271 -0
  123. package/package.json +1 -1
  124. package/reference.md +191 -68
  125. package/serialization/resources/graph/client/requests/AddTripleRequest.d.ts +26 -0
  126. package/serialization/resources/graph/client/requests/AddTripleRequest.js +57 -0
  127. package/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +2 -0
  128. package/serialization/resources/graph/client/requests/GraphSearchQuery.js +2 -0
  129. package/serialization/resources/graph/client/requests/index.d.ts +1 -0
  130. package/serialization/resources/graph/client/requests/index.js +3 -1
  131. package/serialization/resources/group/client/requests/UpdateGroupRequest.d.ts +15 -0
  132. package/serialization/resources/group/client/requests/UpdateGroupRequest.js +46 -0
  133. package/serialization/resources/group/client/requests/index.d.ts +1 -0
  134. package/serialization/resources/group/client/requests/index.js +3 -1
  135. package/serialization/resources/memory/client/requests/AddMemoryRequest.d.ts +2 -0
  136. package/serialization/resources/memory/client/requests/AddMemoryRequest.js +2 -0
  137. package/serialization/types/AddTripleResponse.d.ts +16 -0
  138. package/serialization/types/AddTripleResponse.js +47 -0
  139. package/serialization/types/EntityNode.d.ts +1 -0
  140. package/serialization/types/EntityNode.js +1 -0
  141. package/serialization/types/SearchFilters.d.ts +12 -0
  142. package/serialization/types/SearchFilters.js +43 -0
  143. package/serialization/types/index.d.ts +2 -0
  144. package/serialization/types/index.js +2 -0
  145. package/version.d.ts +1 -1
  146. package/version.js +1 -1
@@ -0,0 +1,57 @@
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.AddTripleRequest = void 0;
40
+ const core = __importStar(require("../../../../../core"));
41
+ exports.AddTripleRequest = core.serialization.object({
42
+ createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
43
+ expiredAt: core.serialization.property("expired_at", core.serialization.string().optional()),
44
+ fact: core.serialization.string(),
45
+ factName: core.serialization.property("fact_name", core.serialization.string()),
46
+ factUuid: core.serialization.property("fact_uuid", core.serialization.string().optional()),
47
+ groupId: core.serialization.property("group_id", core.serialization.string().optional()),
48
+ invalidAt: core.serialization.property("invalid_at", core.serialization.string().optional()),
49
+ sourceNodeName: core.serialization.property("source_node_name", core.serialization.string().optional()),
50
+ sourceNodeSummary: core.serialization.property("source_node_summary", core.serialization.string().optional()),
51
+ sourceNodeUuid: core.serialization.property("source_node_uuid", core.serialization.string().optional()),
52
+ targetNodeName: core.serialization.property("target_node_name", core.serialization.string()),
53
+ targetNodeSummary: core.serialization.property("target_node_summary", core.serialization.string().optional()),
54
+ targetNodeUuid: core.serialization.property("target_node_uuid", core.serialization.string().optional()),
55
+ userId: core.serialization.property("user_id", core.serialization.string().optional()),
56
+ validAt: core.serialization.property("valid_at", core.serialization.string().optional()),
57
+ });
@@ -6,6 +6,7 @@ import * as Zep from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
7
  import { Reranker } from "../../../../types/Reranker";
8
8
  import { GraphSearchScope } from "../../../../types/GraphSearchScope";
9
+ import { SearchFilters } from "../../../../types/SearchFilters";
9
10
  export declare const GraphSearchQuery: core.serialization.Schema<serializers.GraphSearchQuery.Raw, Zep.GraphSearchQuery>;
10
11
  export declare namespace GraphSearchQuery {
11
12
  interface Raw {
@@ -17,6 +18,7 @@ export declare namespace GraphSearchQuery {
17
18
  query: string;
18
19
  reranker?: Reranker.Raw | null;
19
20
  scope?: GraphSearchScope.Raw | null;
21
+ search_filters?: SearchFilters.Raw | null;
20
22
  user_id?: string | null;
21
23
  }
22
24
  }
@@ -40,6 +40,7 @@ exports.GraphSearchQuery = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
41
  const Reranker_1 = require("../../../../types/Reranker");
42
42
  const GraphSearchScope_1 = require("../../../../types/GraphSearchScope");
43
+ const SearchFilters_1 = require("../../../../types/SearchFilters");
43
44
  exports.GraphSearchQuery = core.serialization.object({
44
45
  centerNodeUuid: core.serialization.property("center_node_uuid", core.serialization.string().optional()),
45
46
  groupId: core.serialization.property("group_id", core.serialization.string().optional()),
@@ -49,5 +50,6 @@ exports.GraphSearchQuery = core.serialization.object({
49
50
  query: core.serialization.string(),
50
51
  reranker: Reranker_1.Reranker.optional(),
51
52
  scope: GraphSearchScope_1.GraphSearchScope.optional(),
53
+ searchFilters: core.serialization.property("search_filters", SearchFilters_1.SearchFilters.optional()),
52
54
  userId: core.serialization.property("user_id", core.serialization.string().optional()),
53
55
  });
@@ -1,2 +1,3 @@
1
1
  export { AddDataRequest } from "./AddDataRequest";
2
+ export { AddTripleRequest } from "./AddTripleRequest";
2
3
  export { GraphSearchQuery } from "./GraphSearchQuery";
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GraphSearchQuery = exports.AddDataRequest = void 0;
3
+ exports.GraphSearchQuery = exports.AddTripleRequest = exports.AddDataRequest = void 0;
4
4
  var AddDataRequest_1 = require("./AddDataRequest");
5
5
  Object.defineProperty(exports, "AddDataRequest", { enumerable: true, get: function () { return AddDataRequest_1.AddDataRequest; } });
6
+ var AddTripleRequest_1 = require("./AddTripleRequest");
7
+ Object.defineProperty(exports, "AddTripleRequest", { enumerable: true, get: function () { return AddTripleRequest_1.AddTripleRequest; } });
6
8
  var GraphSearchQuery_1 = require("./GraphSearchQuery");
7
9
  Object.defineProperty(exports, "GraphSearchQuery", { enumerable: true, get: function () { return GraphSearchQuery_1.GraphSearchQuery; } });
@@ -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 { FactRatingInstruction } from "../../../../types/FactRatingInstruction";
8
+ export declare const UpdateGroupRequest: core.serialization.Schema<serializers.UpdateGroupRequest.Raw, Zep.UpdateGroupRequest>;
9
+ export declare namespace UpdateGroupRequest {
10
+ interface Raw {
11
+ description?: string | null;
12
+ fact_rating_instruction?: FactRatingInstruction.Raw | null;
13
+ name?: 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.UpdateGroupRequest = void 0;
40
+ const core = __importStar(require("../../../../../core"));
41
+ const FactRatingInstruction_1 = require("../../../../types/FactRatingInstruction");
42
+ exports.UpdateGroupRequest = core.serialization.object({
43
+ description: core.serialization.string().optional(),
44
+ factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_1.FactRatingInstruction.optional()),
45
+ name: core.serialization.string().optional(),
46
+ });
@@ -1 +1,2 @@
1
1
  export { CreateGroupRequest } from "./CreateGroupRequest";
2
+ export { UpdateGroupRequest } from "./UpdateGroupRequest";
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateGroupRequest = void 0;
3
+ exports.UpdateGroupRequest = exports.CreateGroupRequest = void 0;
4
4
  var CreateGroupRequest_1 = require("./CreateGroupRequest");
5
5
  Object.defineProperty(exports, "CreateGroupRequest", { enumerable: true, get: function () { return CreateGroupRequest_1.CreateGroupRequest; } });
6
+ var UpdateGroupRequest_1 = require("./UpdateGroupRequest");
7
+ Object.defineProperty(exports, "UpdateGroupRequest", { enumerable: true, get: function () { return UpdateGroupRequest_1.UpdateGroupRequest; } });
@@ -4,11 +4,13 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Zep from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
+ import { RoleType } from "../../../../types/RoleType";
7
8
  import { Message } from "../../../../types/Message";
8
9
  export declare const AddMemoryRequest: core.serialization.Schema<serializers.AddMemoryRequest.Raw, Zep.AddMemoryRequest>;
9
10
  export declare namespace AddMemoryRequest {
10
11
  interface Raw {
11
12
  fact_instruction?: string | null;
13
+ ignore_roles?: RoleType.Raw[] | null;
12
14
  messages: Message.Raw[];
13
15
  return_context?: boolean | null;
14
16
  summary_instruction?: string | null;
@@ -38,9 +38,11 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.AddMemoryRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
+ const RoleType_1 = require("../../../../types/RoleType");
41
42
  const Message_1 = require("../../../../types/Message");
42
43
  exports.AddMemoryRequest = core.serialization.object({
43
44
  factInstruction: core.serialization.property("fact_instruction", core.serialization.string().optional()),
45
+ ignoreRoles: core.serialization.property("ignore_roles", core.serialization.list(RoleType_1.RoleType).optional()),
44
46
  messages: core.serialization.list(Message_1.Message),
45
47
  returnContext: core.serialization.property("return_context", core.serialization.boolean().optional()),
46
48
  summaryInstruction: core.serialization.property("summary_instruction", core.serialization.string().optional()),
@@ -0,0 +1,16 @@
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 { EntityEdge } from "./EntityEdge";
8
+ import { EntityNode } from "./EntityNode";
9
+ export declare const AddTripleResponse: core.serialization.ObjectSchema<serializers.AddTripleResponse.Raw, Zep.AddTripleResponse>;
10
+ export declare namespace AddTripleResponse {
11
+ interface Raw {
12
+ edge?: EntityEdge.Raw | null;
13
+ source_node?: EntityNode.Raw | null;
14
+ target_node?: EntityNode.Raw | null;
15
+ }
16
+ }
@@ -0,0 +1,47 @@
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.AddTripleResponse = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const EntityEdge_1 = require("./EntityEdge");
42
+ const EntityNode_1 = require("./EntityNode");
43
+ exports.AddTripleResponse = core.serialization.object({
44
+ edge: EntityEdge_1.EntityEdge.optional(),
45
+ sourceNode: core.serialization.property("source_node", EntityNode_1.EntityNode.optional()),
46
+ targetNode: core.serialization.property("target_node", EntityNode_1.EntityNode.optional()),
47
+ });
@@ -7,6 +7,7 @@ import * as core from "../../core";
7
7
  export declare const EntityNode: core.serialization.ObjectSchema<serializers.EntityNode.Raw, Zep.EntityNode>;
8
8
  export declare namespace EntityNode {
9
9
  interface Raw {
10
+ attributes?: Record<string, unknown> | null;
10
11
  created_at: string;
11
12
  labels?: string[] | null;
12
13
  name: string;
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.EntityNode = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.EntityNode = core.serialization.object({
42
+ attributes: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
42
43
  createdAt: core.serialization.property("created_at", core.serialization.string()),
43
44
  labels: core.serialization.list(core.serialization.string()).optional(),
44
45
  name: core.serialization.string(),
@@ -0,0 +1,12 @@
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
+ export declare const SearchFilters: core.serialization.ObjectSchema<serializers.SearchFilters.Raw, Zep.SearchFilters>;
8
+ export declare namespace SearchFilters {
9
+ interface Raw {
10
+ node_labels?: string[] | null;
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.SearchFilters = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.SearchFilters = core.serialization.object({
42
+ nodeLabels: core.serialization.property("node_labels", core.serialization.list(core.serialization.string()).optional()),
43
+ });
@@ -32,11 +32,13 @@ export * from "./SummaryListResponse";
32
32
  export * from "./User";
33
33
  export * from "./UserListResponse";
34
34
  export * from "./UserNodeResponse";
35
+ export * from "./AddTripleResponse";
35
36
  export * from "./EntityEdge";
36
37
  export * from "./EntityNode";
37
38
  export * from "./GraphSearchResults";
38
39
  export * from "./GraphSearchScope";
39
40
  export * from "./Reranker";
41
+ export * from "./SearchFilters";
40
42
  export * from "./ClassifySessionRequest";
41
43
  export * from "./CreateDocumentRequest";
42
44
  export * from "./FactRatingExamples";
@@ -48,11 +48,13 @@ __exportStar(require("./SummaryListResponse"), exports);
48
48
  __exportStar(require("./User"), exports);
49
49
  __exportStar(require("./UserListResponse"), exports);
50
50
  __exportStar(require("./UserNodeResponse"), exports);
51
+ __exportStar(require("./AddTripleResponse"), exports);
51
52
  __exportStar(require("./EntityEdge"), exports);
52
53
  __exportStar(require("./EntityNode"), exports);
53
54
  __exportStar(require("./GraphSearchResults"), exports);
54
55
  __exportStar(require("./GraphSearchScope"), exports);
55
56
  __exportStar(require("./Reranker"), exports);
57
+ __exportStar(require("./SearchFilters"), exports);
56
58
  __exportStar(require("./ClassifySessionRequest"), exports);
57
59
  __exportStar(require("./CreateDocumentRequest"), exports);
58
60
  __exportStar(require("./FactRatingExamples"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.4.0";
1
+ export declare const SDK_VERSION = "2.6.0";
package/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.4.0";
4
+ exports.SDK_VERSION = "2.6.0";