@getzep/zep-cloud 3.13.0 → 3.15.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 (99) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/graph/client/Client.d.ts +51 -3
  4. package/dist/cjs/api/resources/graph/client/Client.js +273 -3
  5. package/dist/cjs/api/resources/graph/client/requests/AddCustomInstructionsRequest.d.ts +21 -0
  6. package/dist/cjs/api/resources/graph/client/requests/AddCustomInstructionsRequest.js +5 -0
  7. package/dist/cjs/api/resources/graph/client/requests/AddTripleRequest.d.ts +18 -5
  8. package/dist/cjs/api/resources/graph/client/requests/DeleteCustomInstructionsRequest.d.ts +15 -0
  9. package/dist/cjs/api/resources/graph/client/requests/DeleteCustomInstructionsRequest.js +5 -0
  10. package/dist/cjs/api/resources/graph/client/requests/GraphListCustomInstructionsRequest.d.ts +20 -0
  11. package/dist/cjs/api/resources/graph/client/requests/GraphListCustomInstructionsRequest.js +5 -0
  12. package/dist/cjs/api/resources/graph/client/requests/index.d.ts +3 -0
  13. package/dist/cjs/api/resources/graph/resources/node/client/Client.d.ts +14 -0
  14. package/dist/cjs/api/resources/graph/resources/node/client/Client.js +81 -0
  15. package/dist/cjs/api/resources/thread/client/requests/ThreadGetUserContextRequest.d.ts +1 -1
  16. package/dist/cjs/api/resources/user/client/requests/CreateUserRequest.d.ts +1 -1
  17. package/dist/cjs/api/resources/user/client/requests/UpdateUserRequest.d.ts +1 -1
  18. package/dist/cjs/api/types/CustomInstruction.d.ts +7 -0
  19. package/dist/cjs/api/types/CustomInstruction.js +5 -0
  20. package/dist/cjs/api/types/DateFilter.d.ts +5 -2
  21. package/dist/cjs/api/types/ListCustomInstructionsResponse.d.ts +7 -0
  22. package/dist/cjs/api/types/ListCustomInstructionsResponse.js +5 -0
  23. package/dist/cjs/api/types/PropertyFilter.d.ts +16 -0
  24. package/dist/cjs/api/types/PropertyFilter.js +5 -0
  25. package/dist/cjs/api/types/SearchFilters.d.ts +4 -0
  26. package/dist/cjs/api/types/index.d.ts +3 -0
  27. package/dist/cjs/api/types/index.js +3 -0
  28. package/dist/cjs/serialization/resources/graph/client/requests/AddCustomInstructionsRequest.d.ts +15 -0
  29. package/dist/cjs/serialization/resources/graph/client/requests/AddCustomInstructionsRequest.js +46 -0
  30. package/dist/cjs/serialization/resources/graph/client/requests/AddTripleRequest.d.ts +5 -2
  31. package/dist/cjs/serialization/resources/graph/client/requests/AddTripleRequest.js +5 -2
  32. package/dist/cjs/serialization/resources/graph/client/requests/DeleteCustomInstructionsRequest.d.ts +14 -0
  33. package/dist/cjs/serialization/resources/graph/client/requests/DeleteCustomInstructionsRequest.js +45 -0
  34. package/dist/cjs/serialization/resources/graph/client/requests/index.d.ts +2 -0
  35. package/dist/cjs/serialization/resources/graph/client/requests/index.js +5 -1
  36. package/dist/cjs/serialization/types/CustomInstruction.d.ts +13 -0
  37. package/dist/cjs/serialization/types/CustomInstruction.js +44 -0
  38. package/dist/cjs/serialization/types/DateFilter.d.ts +1 -1
  39. package/dist/cjs/serialization/types/DateFilter.js +1 -1
  40. package/dist/cjs/serialization/types/ListCustomInstructionsResponse.d.ts +13 -0
  41. package/dist/cjs/serialization/types/ListCustomInstructionsResponse.js +44 -0
  42. package/dist/cjs/serialization/types/PropertyFilter.d.ts +15 -0
  43. package/dist/cjs/serialization/types/PropertyFilter.js +46 -0
  44. package/dist/cjs/serialization/types/SearchFilters.d.ts +3 -0
  45. package/dist/cjs/serialization/types/SearchFilters.js +3 -0
  46. package/dist/cjs/serialization/types/index.d.ts +3 -0
  47. package/dist/cjs/serialization/types/index.js +3 -0
  48. package/dist/cjs/version.d.ts +1 -1
  49. package/dist/cjs/version.js +1 -1
  50. package/dist/esm/Client.mjs +2 -2
  51. package/dist/esm/api/resources/graph/client/Client.d.mts +51 -3
  52. package/dist/esm/api/resources/graph/client/Client.mjs +273 -3
  53. package/dist/esm/api/resources/graph/client/requests/AddCustomInstructionsRequest.d.mts +21 -0
  54. package/dist/esm/api/resources/graph/client/requests/AddCustomInstructionsRequest.mjs +4 -0
  55. package/dist/esm/api/resources/graph/client/requests/AddTripleRequest.d.mts +18 -5
  56. package/dist/esm/api/resources/graph/client/requests/DeleteCustomInstructionsRequest.d.mts +15 -0
  57. package/dist/esm/api/resources/graph/client/requests/DeleteCustomInstructionsRequest.mjs +4 -0
  58. package/dist/esm/api/resources/graph/client/requests/GraphListCustomInstructionsRequest.d.mts +20 -0
  59. package/dist/esm/api/resources/graph/client/requests/GraphListCustomInstructionsRequest.mjs +4 -0
  60. package/dist/esm/api/resources/graph/client/requests/index.d.mts +3 -0
  61. package/dist/esm/api/resources/graph/resources/node/client/Client.d.mts +14 -0
  62. package/dist/esm/api/resources/graph/resources/node/client/Client.mjs +81 -0
  63. package/dist/esm/api/resources/thread/client/requests/ThreadGetUserContextRequest.d.mts +1 -1
  64. package/dist/esm/api/resources/user/client/requests/CreateUserRequest.d.mts +1 -1
  65. package/dist/esm/api/resources/user/client/requests/UpdateUserRequest.d.mts +1 -1
  66. package/dist/esm/api/types/CustomInstruction.d.mts +7 -0
  67. package/dist/esm/api/types/CustomInstruction.mjs +4 -0
  68. package/dist/esm/api/types/DateFilter.d.mts +5 -2
  69. package/dist/esm/api/types/ListCustomInstructionsResponse.d.mts +7 -0
  70. package/dist/esm/api/types/ListCustomInstructionsResponse.mjs +4 -0
  71. package/dist/esm/api/types/PropertyFilter.d.mts +16 -0
  72. package/dist/esm/api/types/PropertyFilter.mjs +4 -0
  73. package/dist/esm/api/types/SearchFilters.d.mts +4 -0
  74. package/dist/esm/api/types/index.d.mts +3 -0
  75. package/dist/esm/api/types/index.mjs +3 -0
  76. package/dist/esm/serialization/resources/graph/client/requests/AddCustomInstructionsRequest.d.mts +15 -0
  77. package/dist/esm/serialization/resources/graph/client/requests/AddCustomInstructionsRequest.mjs +10 -0
  78. package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.d.mts +5 -2
  79. package/dist/esm/serialization/resources/graph/client/requests/AddTripleRequest.mjs +5 -2
  80. package/dist/esm/serialization/resources/graph/client/requests/DeleteCustomInstructionsRequest.d.mts +14 -0
  81. package/dist/esm/serialization/resources/graph/client/requests/DeleteCustomInstructionsRequest.mjs +9 -0
  82. package/dist/esm/serialization/resources/graph/client/requests/index.d.mts +2 -0
  83. package/dist/esm/serialization/resources/graph/client/requests/index.mjs +2 -0
  84. package/dist/esm/serialization/types/CustomInstruction.d.mts +13 -0
  85. package/dist/esm/serialization/types/CustomInstruction.mjs +8 -0
  86. package/dist/esm/serialization/types/DateFilter.d.mts +1 -1
  87. package/dist/esm/serialization/types/DateFilter.mjs +1 -1
  88. package/dist/esm/serialization/types/ListCustomInstructionsResponse.d.mts +13 -0
  89. package/dist/esm/serialization/types/ListCustomInstructionsResponse.mjs +8 -0
  90. package/dist/esm/serialization/types/PropertyFilter.d.mts +15 -0
  91. package/dist/esm/serialization/types/PropertyFilter.mjs +10 -0
  92. package/dist/esm/serialization/types/SearchFilters.d.mts +3 -0
  93. package/dist/esm/serialization/types/SearchFilters.mjs +3 -0
  94. package/dist/esm/serialization/types/index.d.mts +3 -0
  95. package/dist/esm/serialization/types/index.mjs +3 -0
  96. package/dist/esm/version.d.mts +1 -1
  97. package/dist/esm/version.mjs +1 -1
  98. package/package.json +1 -1
  99. package/reference.md +262 -2
@@ -13,7 +13,7 @@ export interface CreateUserRequest {
13
13
  disableDefaultOntology?: boolean;
14
14
  /** The email address of the user. */
15
15
  email?: string;
16
- /** Optional instruction to use for fact rating. */
16
+ /** Deprecated: this field will be removed in a future release. Optional instruction to use for fact rating. */
17
17
  factRatingInstruction?: Zep.FactRatingInstruction;
18
18
  /** The first name of the user. */
19
19
  firstName?: string;
@@ -11,7 +11,7 @@ export interface UpdateUserRequest {
11
11
  disableDefaultOntology?: boolean;
12
12
  /** The email address of the user. */
13
13
  email?: string;
14
- /** Optional instruction to use for fact rating. */
14
+ /** Deprecated: this field will be removed in a future release. Optional instruction to use for fact rating. */
15
15
  factRatingInstruction?: Zep.FactRatingInstruction;
16
16
  /** The first name of the user. */
17
17
  firstName?: string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CustomInstruction {
5
+ name: string;
6
+ text: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,6 +5,9 @@ import * as Zep from "../index.js";
5
5
  export interface DateFilter {
6
6
  /** Comparison operator for date filter */
7
7
  comparisonOperator: Zep.ComparisonOperator;
8
- /** Date to filter on */
9
- date: string;
8
+ /**
9
+ * Date to filter on. Required for non-null operators (=, <>, >, <, >=, <=).
10
+ * Should be omitted for IS NULL and IS NOT NULL operators.
11
+ */
12
+ date?: string;
10
13
  }
@@ -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 ListCustomInstructionsResponse {
6
+ instructions?: Zep.CustomInstruction[];
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 });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Zep from "../index.js";
5
+ export interface PropertyFilter {
6
+ /** Comparison operator for property filter */
7
+ comparisonOperator: Zep.ComparisonOperator;
8
+ /** Property name to filter on */
9
+ propertyName: string;
10
+ /**
11
+ * Property value to match on. Accepted types: string, int, float64, bool, or nil.
12
+ * Invalid types (e.g., arrays, objects) will be rejected by validation.
13
+ * Must be non-nil for non-null operators (=, <>, >, <, >=, <=).
14
+ */
15
+ propertyValue?: unknown;
16
+ }
@@ -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 });
@@ -13,6 +13,8 @@ export interface SearchFilters {
13
13
  createdAt?: Zep.DateFilter[][];
14
14
  /** List of edge types to filter on */
15
15
  edgeTypes?: string[];
16
+ /** List of edge UUIDs to filter on */
17
+ edgeUuids?: string[];
16
18
  /** List of edge types to exclude from results */
17
19
  excludeEdgeTypes?: string[];
18
20
  /** List of node labels to exclude from results */
@@ -35,6 +37,8 @@ export interface SearchFilters {
35
37
  invalidAt?: Zep.DateFilter[][];
36
38
  /** List of node labels to filter on */
37
39
  nodeLabels?: string[];
40
+ /** List of property filters to apply to nodes and edges */
41
+ propertyFilters?: Zep.PropertyFilter[];
38
42
  /**
39
43
  * 2D array of date filters for the valid_at field.
40
44
  * The outer array elements are combined with OR logic.
@@ -3,6 +3,7 @@ export * from "./AddThreadMessagesRequest.js";
3
3
  export * from "./AddThreadMessagesResponse.js";
4
4
  export * from "./CloneGraphResponse.js";
5
5
  export * from "./ContextTemplateResponse.js";
6
+ export * from "./CustomInstruction.js";
6
7
  export * from "./EdgeType.js";
7
8
  export * from "./EntityEdgeSourceTarget.js";
8
9
  export * from "./EntityProperty.js";
@@ -21,6 +22,7 @@ export * from "./GraphListResponse.js";
21
22
  export * from "./GraphNodesRequest.js";
22
23
  export * from "./GraphSearchResults.js";
23
24
  export * from "./ListContextTemplatesResponse.js";
25
+ export * from "./ListCustomInstructionsResponse.js";
24
26
  export * from "./ListUserInstructionsResponse.js";
25
27
  export * from "./ProjectInfo.js";
26
28
  export * from "./ProjectInfoResponse.js";
@@ -43,6 +45,7 @@ export * from "./DateFilter.js";
43
45
  export * from "./EntityEdge.js";
44
46
  export * from "./EntityNode.js";
45
47
  export * from "./GraphSearchScope.js";
48
+ export * from "./PropertyFilter.js";
46
49
  export * from "./Reranker.js";
47
50
  export * from "./SearchFilters.js";
48
51
  export * from "./EntityPropertyType.js";
@@ -19,6 +19,7 @@ __exportStar(require("./AddThreadMessagesRequest.js"), exports);
19
19
  __exportStar(require("./AddThreadMessagesResponse.js"), exports);
20
20
  __exportStar(require("./CloneGraphResponse.js"), exports);
21
21
  __exportStar(require("./ContextTemplateResponse.js"), exports);
22
+ __exportStar(require("./CustomInstruction.js"), exports);
22
23
  __exportStar(require("./EdgeType.js"), exports);
23
24
  __exportStar(require("./EntityEdgeSourceTarget.js"), exports);
24
25
  __exportStar(require("./EntityProperty.js"), exports);
@@ -37,6 +38,7 @@ __exportStar(require("./GraphListResponse.js"), exports);
37
38
  __exportStar(require("./GraphNodesRequest.js"), exports);
38
39
  __exportStar(require("./GraphSearchResults.js"), exports);
39
40
  __exportStar(require("./ListContextTemplatesResponse.js"), exports);
41
+ __exportStar(require("./ListCustomInstructionsResponse.js"), exports);
40
42
  __exportStar(require("./ListUserInstructionsResponse.js"), exports);
41
43
  __exportStar(require("./ProjectInfo.js"), exports);
42
44
  __exportStar(require("./ProjectInfoResponse.js"), exports);
@@ -59,6 +61,7 @@ __exportStar(require("./DateFilter.js"), exports);
59
61
  __exportStar(require("./EntityEdge.js"), exports);
60
62
  __exportStar(require("./EntityNode.js"), exports);
61
63
  __exportStar(require("./GraphSearchScope.js"), exports);
64
+ __exportStar(require("./PropertyFilter.js"), exports);
62
65
  __exportStar(require("./Reranker.js"), exports);
63
66
  __exportStar(require("./SearchFilters.js"), exports);
64
67
  __exportStar(require("./EntityPropertyType.js"), exports);
@@ -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
+ import { CustomInstruction } from "../../../../types/CustomInstruction.js";
8
+ export declare const AddCustomInstructionsRequest: core.serialization.Schema<serializers.AddCustomInstructionsRequest.Raw, Zep.AddCustomInstructionsRequest>;
9
+ export declare namespace AddCustomInstructionsRequest {
10
+ interface Raw {
11
+ graph_ids?: string[] | null;
12
+ instructions: CustomInstruction.Raw[];
13
+ user_ids?: 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.AddCustomInstructionsRequest = void 0;
40
+ const core = __importStar(require("../../../../../core/index.js"));
41
+ const CustomInstruction_js_1 = require("../../../../types/CustomInstruction.js");
42
+ exports.AddCustomInstructionsRequest = core.serialization.object({
43
+ graphIds: core.serialization.property("graph_ids", core.serialization.list(core.serialization.string()).optional()),
44
+ instructions: core.serialization.list(CustomInstruction_js_1.CustomInstruction),
45
+ userIds: core.serialization.property("user_ids", core.serialization.list(core.serialization.string()).optional()),
46
+ });
@@ -8,16 +8,19 @@ export declare const AddTripleRequest: core.serialization.Schema<serializers.Add
8
8
  export declare namespace AddTripleRequest {
9
9
  interface Raw {
10
10
  created_at?: string | null;
11
+ edge_attributes?: Record<string, unknown> | null;
11
12
  expired_at?: string | null;
12
13
  fact: string;
13
14
  fact_name: string;
14
15
  fact_uuid?: string | null;
15
16
  graph_id?: string | null;
16
17
  invalid_at?: string | null;
17
- source_node_name: string;
18
+ source_node_attributes?: Record<string, unknown> | null;
19
+ source_node_name?: string | null;
18
20
  source_node_summary?: string | null;
19
21
  source_node_uuid?: string | null;
20
- target_node_name: string;
22
+ target_node_attributes?: Record<string, unknown> | null;
23
+ target_node_name?: string | null;
21
24
  target_node_summary?: string | null;
22
25
  target_node_uuid?: string | null;
23
26
  user_id?: string | null;
@@ -40,16 +40,19 @@ exports.AddTripleRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core/index.js"));
41
41
  exports.AddTripleRequest = core.serialization.object({
42
42
  createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
43
+ edgeAttributes: core.serialization.property("edge_attributes", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
43
44
  expiredAt: core.serialization.property("expired_at", core.serialization.string().optional()),
44
45
  fact: core.serialization.string(),
45
46
  factName: core.serialization.property("fact_name", core.serialization.string()),
46
47
  factUuid: core.serialization.property("fact_uuid", core.serialization.string().optional()),
47
48
  graphId: core.serialization.property("graph_id", core.serialization.string().optional()),
48
49
  invalidAt: core.serialization.property("invalid_at", core.serialization.string().optional()),
49
- sourceNodeName: core.serialization.property("source_node_name", core.serialization.string()),
50
+ sourceNodeAttributes: core.serialization.property("source_node_attributes", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
51
+ sourceNodeName: core.serialization.property("source_node_name", core.serialization.string().optional()),
50
52
  sourceNodeSummary: core.serialization.property("source_node_summary", core.serialization.string().optional()),
51
53
  sourceNodeUuid: core.serialization.property("source_node_uuid", core.serialization.string().optional()),
52
- targetNodeName: core.serialization.property("target_node_name", core.serialization.string()),
54
+ targetNodeAttributes: core.serialization.property("target_node_attributes", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
55
+ targetNodeName: core.serialization.property("target_node_name", core.serialization.string().optional()),
53
56
  targetNodeSummary: core.serialization.property("target_node_summary", core.serialization.string().optional()),
54
57
  targetNodeUuid: core.serialization.property("target_node_uuid", core.serialization.string().optional()),
55
58
  userId: core.serialization.property("user_id", core.serialization.string().optional()),
@@ -0,0 +1,14 @@
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 DeleteCustomInstructionsRequest: core.serialization.Schema<serializers.DeleteCustomInstructionsRequest.Raw, Zep.DeleteCustomInstructionsRequest>;
8
+ export declare namespace DeleteCustomInstructionsRequest {
9
+ interface Raw {
10
+ graph_ids?: string[] | null;
11
+ instruction_names?: string[] | null;
12
+ user_ids?: string[] | null;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
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.DeleteCustomInstructionsRequest = void 0;
40
+ const core = __importStar(require("../../../../../core/index.js"));
41
+ exports.DeleteCustomInstructionsRequest = core.serialization.object({
42
+ graphIds: core.serialization.property("graph_ids", core.serialization.list(core.serialization.string()).optional()),
43
+ instructionNames: core.serialization.property("instruction_names", core.serialization.list(core.serialization.string()).optional()),
44
+ userIds: core.serialization.property("user_ids", core.serialization.list(core.serialization.string()).optional()),
45
+ });
@@ -1,3 +1,5 @@
1
+ export { AddCustomInstructionsRequest } from "./AddCustomInstructionsRequest.js";
2
+ export { DeleteCustomInstructionsRequest } from "./DeleteCustomInstructionsRequest.js";
1
3
  export { EntityTypeRequest } from "./EntityTypeRequest.js";
2
4
  export { AddDataRequest } from "./AddDataRequest.js";
3
5
  export { AddDataBatchRequest } from "./AddDataBatchRequest.js";
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateGraphRequest = exports.GraphSearchQuery = exports.CreateGraphRequest = exports.CloneGraphRequest = exports.AddTripleRequest = exports.AddDataBatchRequest = exports.AddDataRequest = exports.EntityTypeRequest = void 0;
3
+ exports.UpdateGraphRequest = exports.GraphSearchQuery = exports.CreateGraphRequest = exports.CloneGraphRequest = exports.AddTripleRequest = exports.AddDataBatchRequest = exports.AddDataRequest = exports.EntityTypeRequest = exports.DeleteCustomInstructionsRequest = exports.AddCustomInstructionsRequest = void 0;
4
+ var AddCustomInstructionsRequest_js_1 = require("./AddCustomInstructionsRequest.js");
5
+ Object.defineProperty(exports, "AddCustomInstructionsRequest", { enumerable: true, get: function () { return AddCustomInstructionsRequest_js_1.AddCustomInstructionsRequest; } });
6
+ var DeleteCustomInstructionsRequest_js_1 = require("./DeleteCustomInstructionsRequest.js");
7
+ Object.defineProperty(exports, "DeleteCustomInstructionsRequest", { enumerable: true, get: function () { return DeleteCustomInstructionsRequest_js_1.DeleteCustomInstructionsRequest; } });
4
8
  var EntityTypeRequest_js_1 = require("./EntityTypeRequest.js");
5
9
  Object.defineProperty(exports, "EntityTypeRequest", { enumerable: true, get: function () { return EntityTypeRequest_js_1.EntityTypeRequest; } });
6
10
  var AddDataRequest_js_1 = require("./AddDataRequest.js");
@@ -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
+ export declare const CustomInstruction: core.serialization.ObjectSchema<serializers.CustomInstruction.Raw, Zep.CustomInstruction>;
8
+ export declare namespace CustomInstruction {
9
+ interface Raw {
10
+ name: string;
11
+ text: string;
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.CustomInstruction = void 0;
40
+ const core = __importStar(require("../../core/index.js"));
41
+ exports.CustomInstruction = core.serialization.object({
42
+ name: core.serialization.string(),
43
+ text: core.serialization.string(),
44
+ });
@@ -9,6 +9,6 @@ export declare const DateFilter: core.serialization.ObjectSchema<serializers.Dat
9
9
  export declare namespace DateFilter {
10
10
  interface Raw {
11
11
  comparison_operator: ComparisonOperator.Raw;
12
- date: string;
12
+ date?: string | null;
13
13
  }
14
14
  }
@@ -41,5 +41,5 @@ const core = __importStar(require("../../core/index.js"));
41
41
  const ComparisonOperator_js_1 = require("./ComparisonOperator.js");
42
42
  exports.DateFilter = core.serialization.object({
43
43
  comparisonOperator: core.serialization.property("comparison_operator", ComparisonOperator_js_1.ComparisonOperator),
44
- date: core.serialization.string(),
44
+ date: core.serialization.string().optional(),
45
45
  });
@@ -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 { CustomInstruction } from "./CustomInstruction.js";
8
+ export declare const ListCustomInstructionsResponse: core.serialization.ObjectSchema<serializers.ListCustomInstructionsResponse.Raw, Zep.ListCustomInstructionsResponse>;
9
+ export declare namespace ListCustomInstructionsResponse {
10
+ interface Raw {
11
+ instructions?: CustomInstruction.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.ListCustomInstructionsResponse = void 0;
40
+ const core = __importStar(require("../../core/index.js"));
41
+ const CustomInstruction_js_1 = require("./CustomInstruction.js");
42
+ exports.ListCustomInstructionsResponse = core.serialization.object({
43
+ instructions: core.serialization.list(CustomInstruction_js_1.CustomInstruction).optional(),
44
+ });
@@ -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
+ import { ComparisonOperator } from "./ComparisonOperator.js";
8
+ export declare const PropertyFilter: core.serialization.ObjectSchema<serializers.PropertyFilter.Raw, Zep.PropertyFilter>;
9
+ export declare namespace PropertyFilter {
10
+ interface Raw {
11
+ comparison_operator: ComparisonOperator.Raw;
12
+ property_name: string;
13
+ property_value?: unknown | 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.PropertyFilter = void 0;
40
+ const core = __importStar(require("../../core/index.js"));
41
+ const ComparisonOperator_js_1 = require("./ComparisonOperator.js");
42
+ exports.PropertyFilter = core.serialization.object({
43
+ comparisonOperator: core.serialization.property("comparison_operator", ComparisonOperator_js_1.ComparisonOperator),
44
+ propertyName: core.serialization.property("property_name", core.serialization.string()),
45
+ propertyValue: core.serialization.property("property_value", core.serialization.unknown().optional()),
46
+ });
@@ -5,16 +5,19 @@ import * as serializers from "../index.js";
5
5
  import * as Zep from "../../api/index.js";
6
6
  import * as core from "../../core/index.js";
7
7
  import { DateFilter } from "./DateFilter.js";
8
+ import { PropertyFilter } from "./PropertyFilter.js";
8
9
  export declare const SearchFilters: core.serialization.ObjectSchema<serializers.SearchFilters.Raw, Zep.SearchFilters>;
9
10
  export declare namespace SearchFilters {
10
11
  interface Raw {
11
12
  created_at?: DateFilter.Raw[][] | null;
12
13
  edge_types?: string[] | null;
14
+ edge_uuids?: string[] | null;
13
15
  exclude_edge_types?: string[] | null;
14
16
  exclude_node_labels?: string[] | null;
15
17
  expired_at?: DateFilter.Raw[][] | null;
16
18
  invalid_at?: DateFilter.Raw[][] | null;
17
19
  node_labels?: string[] | null;
20
+ property_filters?: PropertyFilter.Raw[] | null;
18
21
  valid_at?: DateFilter.Raw[][] | null;
19
22
  }
20
23
  }
@@ -39,13 +39,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.SearchFilters = void 0;
40
40
  const core = __importStar(require("../../core/index.js"));
41
41
  const DateFilter_js_1 = require("./DateFilter.js");
42
+ const PropertyFilter_js_1 = require("./PropertyFilter.js");
42
43
  exports.SearchFilters = core.serialization.object({
43
44
  createdAt: core.serialization.property("created_at", core.serialization.list(core.serialization.list(DateFilter_js_1.DateFilter)).optional()),
44
45
  edgeTypes: core.serialization.property("edge_types", core.serialization.list(core.serialization.string()).optional()),
46
+ edgeUuids: core.serialization.property("edge_uuids", core.serialization.list(core.serialization.string()).optional()),
45
47
  excludeEdgeTypes: core.serialization.property("exclude_edge_types", core.serialization.list(core.serialization.string()).optional()),
46
48
  excludeNodeLabels: core.serialization.property("exclude_node_labels", core.serialization.list(core.serialization.string()).optional()),
47
49
  expiredAt: core.serialization.property("expired_at", core.serialization.list(core.serialization.list(DateFilter_js_1.DateFilter)).optional()),
48
50
  invalidAt: core.serialization.property("invalid_at", core.serialization.list(core.serialization.list(DateFilter_js_1.DateFilter)).optional()),
49
51
  nodeLabels: core.serialization.property("node_labels", core.serialization.list(core.serialization.string()).optional()),
52
+ propertyFilters: core.serialization.property("property_filters", core.serialization.list(PropertyFilter_js_1.PropertyFilter).optional()),
50
53
  validAt: core.serialization.property("valid_at", core.serialization.list(core.serialization.list(DateFilter_js_1.DateFilter)).optional()),
51
54
  });
@@ -3,6 +3,7 @@ export * from "./AddThreadMessagesRequest.js";
3
3
  export * from "./AddThreadMessagesResponse.js";
4
4
  export * from "./CloneGraphResponse.js";
5
5
  export * from "./ContextTemplateResponse.js";
6
+ export * from "./CustomInstruction.js";
6
7
  export * from "./EdgeType.js";
7
8
  export * from "./EntityEdgeSourceTarget.js";
8
9
  export * from "./EntityProperty.js";
@@ -21,6 +22,7 @@ export * from "./GraphListResponse.js";
21
22
  export * from "./GraphNodesRequest.js";
22
23
  export * from "./GraphSearchResults.js";
23
24
  export * from "./ListContextTemplatesResponse.js";
25
+ export * from "./ListCustomInstructionsResponse.js";
24
26
  export * from "./ListUserInstructionsResponse.js";
25
27
  export * from "./ProjectInfo.js";
26
28
  export * from "./ProjectInfoResponse.js";
@@ -43,6 +45,7 @@ export * from "./DateFilter.js";
43
45
  export * from "./EntityEdge.js";
44
46
  export * from "./EntityNode.js";
45
47
  export * from "./GraphSearchScope.js";
48
+ export * from "./PropertyFilter.js";
46
49
  export * from "./Reranker.js";
47
50
  export * from "./SearchFilters.js";
48
51
  export * from "./EntityPropertyType.js";
@@ -19,6 +19,7 @@ __exportStar(require("./AddThreadMessagesRequest.js"), exports);
19
19
  __exportStar(require("./AddThreadMessagesResponse.js"), exports);
20
20
  __exportStar(require("./CloneGraphResponse.js"), exports);
21
21
  __exportStar(require("./ContextTemplateResponse.js"), exports);
22
+ __exportStar(require("./CustomInstruction.js"), exports);
22
23
  __exportStar(require("./EdgeType.js"), exports);
23
24
  __exportStar(require("./EntityEdgeSourceTarget.js"), exports);
24
25
  __exportStar(require("./EntityProperty.js"), exports);
@@ -37,6 +38,7 @@ __exportStar(require("./GraphListResponse.js"), exports);
37
38
  __exportStar(require("./GraphNodesRequest.js"), exports);
38
39
  __exportStar(require("./GraphSearchResults.js"), exports);
39
40
  __exportStar(require("./ListContextTemplatesResponse.js"), exports);
41
+ __exportStar(require("./ListCustomInstructionsResponse.js"), exports);
40
42
  __exportStar(require("./ListUserInstructionsResponse.js"), exports);
41
43
  __exportStar(require("./ProjectInfo.js"), exports);
42
44
  __exportStar(require("./ProjectInfoResponse.js"), exports);
@@ -59,6 +61,7 @@ __exportStar(require("./DateFilter.js"), exports);
59
61
  __exportStar(require("./EntityEdge.js"), exports);
60
62
  __exportStar(require("./EntityNode.js"), exports);
61
63
  __exportStar(require("./GraphSearchScope.js"), exports);
64
+ __exportStar(require("./PropertyFilter.js"), exports);
62
65
  __exportStar(require("./Reranker.js"), exports);
63
66
  __exportStar(require("./SearchFilters.js"), exports);
64
67
  __exportStar(require("./EntityPropertyType.js"), exports);