@getzep/zep-cloud 2.10.2 → 2.12.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 (104) hide show
  1. package/api/resources/document/client/Client.js +13 -13
  2. package/api/resources/graph/client/Client.d.ts +18 -0
  3. package/api/resources/graph/client/Client.js +85 -5
  4. package/api/resources/graph/client/requests/AddDataBatchRequest.d.ts +18 -0
  5. package/api/resources/graph/client/requests/AddDataBatchRequest.js +5 -0
  6. package/api/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
  7. package/api/resources/graph/client/requests/index.d.ts +1 -0
  8. package/api/resources/graph/resources/edge/client/Client.js +4 -4
  9. package/api/resources/graph/resources/episode/client/Client.js +5 -5
  10. package/api/resources/graph/resources/node/client/Client.js +3 -3
  11. package/api/resources/group/client/Client.js +6 -6
  12. package/api/resources/memory/client/Client.d.ts +6 -2
  13. package/api/resources/memory/client/Client.js +29 -25
  14. package/api/resources/memory/client/requests/AddFactsRequest.d.ts +6 -2
  15. package/api/resources/user/client/Client.d.ts +4 -2
  16. package/api/resources/user/client/Client.js +13 -11
  17. package/api/resources/user/client/requests/CreateUserRequest.d.ts +4 -2
  18. package/api/types/EntityNode.d.ts +0 -2
  19. package/api/types/EpisodeData.d.ts +10 -0
  20. package/api/types/EpisodeData.js +5 -0
  21. package/api/types/NewFact.d.ts +1 -1
  22. package/api/types/index.d.ts +1 -0
  23. package/api/types/index.js +1 -0
  24. package/dist/api/resources/document/client/Client.js +13 -13
  25. package/dist/api/resources/graph/client/Client.d.ts +18 -0
  26. package/dist/api/resources/graph/client/Client.js +85 -5
  27. package/dist/api/resources/graph/client/requests/AddDataBatchRequest.d.ts +18 -0
  28. package/dist/api/resources/graph/client/requests/AddDataBatchRequest.js +5 -0
  29. package/dist/api/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
  30. package/dist/api/resources/graph/client/requests/index.d.ts +1 -0
  31. package/dist/api/resources/graph/resources/edge/client/Client.js +4 -4
  32. package/dist/api/resources/graph/resources/episode/client/Client.js +5 -5
  33. package/dist/api/resources/graph/resources/node/client/Client.js +3 -3
  34. package/dist/api/resources/group/client/Client.js +6 -6
  35. package/dist/api/resources/memory/client/Client.d.ts +6 -2
  36. package/dist/api/resources/memory/client/Client.js +29 -25
  37. package/dist/api/resources/memory/client/requests/AddFactsRequest.d.ts +6 -2
  38. package/dist/api/resources/user/client/Client.d.ts +4 -2
  39. package/dist/api/resources/user/client/Client.js +13 -11
  40. package/dist/api/resources/user/client/requests/CreateUserRequest.d.ts +4 -2
  41. package/dist/api/types/EntityNode.d.ts +0 -2
  42. package/dist/api/types/EpisodeData.d.ts +10 -0
  43. package/dist/api/types/EpisodeData.js +5 -0
  44. package/dist/api/types/NewFact.d.ts +1 -1
  45. package/dist/api/types/index.d.ts +1 -0
  46. package/dist/api/types/index.js +1 -0
  47. package/dist/serialization/resources/graph/client/addBatch.d.ts +11 -0
  48. package/dist/serialization/resources/graph/client/addBatch.js +42 -0
  49. package/dist/serialization/resources/graph/client/index.d.ts +1 -0
  50. package/dist/serialization/resources/graph/client/index.js +24 -0
  51. package/dist/serialization/resources/graph/client/requests/AddDataBatchRequest.d.ts +15 -0
  52. package/dist/serialization/resources/graph/client/requests/AddDataBatchRequest.js +46 -0
  53. package/dist/serialization/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
  54. package/dist/serialization/resources/graph/client/requests/AddDataRequest.js +1 -0
  55. package/dist/serialization/resources/graph/client/requests/index.d.ts +1 -0
  56. package/dist/serialization/resources/graph/client/requests/index.js +3 -1
  57. package/dist/serialization/resources/graph/index.d.ts +1 -1
  58. package/dist/serialization/resources/graph/index.js +1 -1
  59. package/dist/serialization/resources/index.d.ts +1 -1
  60. package/dist/serialization/resources/index.js +2 -2
  61. package/dist/serialization/resources/memory/client/requests/AddFactsRequest.d.ts +1 -1
  62. package/dist/serialization/resources/memory/client/requests/AddFactsRequest.js +1 -1
  63. package/dist/serialization/resources/user/client/requests/CreateUserRequest.d.ts +1 -1
  64. package/dist/serialization/resources/user/client/requests/CreateUserRequest.js +1 -1
  65. package/dist/serialization/types/EntityNode.d.ts +0 -1
  66. package/dist/serialization/types/EntityNode.js +0 -1
  67. package/dist/serialization/types/EpisodeData.d.ts +16 -0
  68. package/dist/serialization/types/EpisodeData.js +47 -0
  69. package/dist/serialization/types/NewFact.d.ts +1 -1
  70. package/dist/serialization/types/NewFact.js +1 -1
  71. package/dist/serialization/types/index.d.ts +1 -0
  72. package/dist/serialization/types/index.js +1 -0
  73. package/dist/version.d.ts +1 -1
  74. package/dist/version.js +1 -1
  75. package/package.json +1 -1
  76. package/reference.md +80 -2
  77. package/serialization/resources/graph/client/addBatch.d.ts +11 -0
  78. package/serialization/resources/graph/client/addBatch.js +42 -0
  79. package/serialization/resources/graph/client/index.d.ts +1 -0
  80. package/serialization/resources/graph/client/index.js +24 -0
  81. package/serialization/resources/graph/client/requests/AddDataBatchRequest.d.ts +15 -0
  82. package/serialization/resources/graph/client/requests/AddDataBatchRequest.js +46 -0
  83. package/serialization/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
  84. package/serialization/resources/graph/client/requests/AddDataRequest.js +1 -0
  85. package/serialization/resources/graph/client/requests/index.d.ts +1 -0
  86. package/serialization/resources/graph/client/requests/index.js +3 -1
  87. package/serialization/resources/graph/index.d.ts +1 -1
  88. package/serialization/resources/graph/index.js +1 -1
  89. package/serialization/resources/index.d.ts +1 -1
  90. package/serialization/resources/index.js +2 -2
  91. package/serialization/resources/memory/client/requests/AddFactsRequest.d.ts +1 -1
  92. package/serialization/resources/memory/client/requests/AddFactsRequest.js +1 -1
  93. package/serialization/resources/user/client/requests/CreateUserRequest.d.ts +1 -1
  94. package/serialization/resources/user/client/requests/CreateUserRequest.js +1 -1
  95. package/serialization/types/EntityNode.d.ts +0 -1
  96. package/serialization/types/EntityNode.js +0 -1
  97. package/serialization/types/EpisodeData.d.ts +16 -0
  98. package/serialization/types/EpisodeData.js +47 -0
  99. package/serialization/types/NewFact.d.ts +1 -1
  100. package/serialization/types/NewFact.js +1 -1
  101. package/serialization/types/index.d.ts +1 -0
  102. package/serialization/types/index.js +1 -0
  103. package/version.d.ts +1 -1
  104. package/version.js +1 -1
@@ -40,6 +40,7 @@ exports.AddDataRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
41
  const GraphDataType_1 = require("../../../../types/GraphDataType");
42
42
  exports.AddDataRequest = core.serialization.object({
43
+ createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
43
44
  data: core.serialization.string(),
44
45
  groupId: core.serialization.property("group_id", core.serialization.string().optional()),
45
46
  sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()),
@@ -1,4 +1,5 @@
1
1
  export { EntityTypeRequest } from "./EntityTypeRequest";
2
2
  export { AddDataRequest } from "./AddDataRequest";
3
+ export { AddDataBatchRequest } from "./AddDataBatchRequest";
3
4
  export { AddTripleRequest } from "./AddTripleRequest";
4
5
  export { GraphSearchQuery } from "./GraphSearchQuery";
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GraphSearchQuery = exports.AddTripleRequest = exports.AddDataRequest = exports.EntityTypeRequest = void 0;
3
+ exports.GraphSearchQuery = exports.AddTripleRequest = exports.AddDataBatchRequest = exports.AddDataRequest = exports.EntityTypeRequest = void 0;
4
4
  var EntityTypeRequest_1 = require("./EntityTypeRequest");
5
5
  Object.defineProperty(exports, "EntityTypeRequest", { enumerable: true, get: function () { return EntityTypeRequest_1.EntityTypeRequest; } });
6
6
  var AddDataRequest_1 = require("./AddDataRequest");
7
7
  Object.defineProperty(exports, "AddDataRequest", { enumerable: true, get: function () { return AddDataRequest_1.AddDataRequest; } });
8
+ var AddDataBatchRequest_1 = require("./AddDataBatchRequest");
9
+ Object.defineProperty(exports, "AddDataBatchRequest", { enumerable: true, get: function () { return AddDataBatchRequest_1.AddDataBatchRequest; } });
8
10
  var AddTripleRequest_1 = require("./AddTripleRequest");
9
11
  Object.defineProperty(exports, "AddTripleRequest", { enumerable: true, get: function () { return AddTripleRequest_1.AddTripleRequest; } });
10
12
  var GraphSearchQuery_1 = require("./GraphSearchQuery");
@@ -1,2 +1,2 @@
1
- export * from "./resources";
2
1
  export * from "./client";
2
+ export * from "./resources";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./resources"), exports);
18
17
  __exportStar(require("./client"), exports);
18
+ __exportStar(require("./resources"), exports);
@@ -1,7 +1,7 @@
1
1
  export * as document from "./document";
2
+ export * as graph from "./graph";
2
3
  export * as memory from "./memory";
3
4
  export * as user from "./user";
4
- export * as graph from "./graph";
5
5
  export * from "./document/client/requests";
6
6
  export * from "./graph/client/requests";
7
7
  export * from "./memory/client/requests";
@@ -36,11 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.group = exports.graph = exports.user = exports.memory = exports.document = void 0;
39
+ exports.group = exports.user = exports.memory = exports.graph = exports.document = void 0;
40
40
  exports.document = __importStar(require("./document"));
41
+ exports.graph = __importStar(require("./graph"));
41
42
  exports.memory = __importStar(require("./memory"));
42
43
  exports.user = __importStar(require("./user"));
43
- exports.graph = __importStar(require("./graph"));
44
44
  __exportStar(require("./document/client/requests"), exports);
45
45
  __exportStar(require("./graph/client/requests"), exports);
46
46
  __exportStar(require("./memory/client/requests"), exports);
@@ -8,6 +8,6 @@ import { NewFact } from "../../../../types/NewFact";
8
8
  export declare const AddFactsRequest: core.serialization.Schema<serializers.AddFactsRequest.Raw, Zep.AddFactsRequest>;
9
9
  export declare namespace AddFactsRequest {
10
10
  interface Raw {
11
- facts?: NewFact.Raw[] | null;
11
+ facts: NewFact.Raw[];
12
12
  }
13
13
  }
@@ -40,5 +40,5 @@ exports.AddFactsRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
41
  const NewFact_1 = require("../../../../types/NewFact");
42
42
  exports.AddFactsRequest = core.serialization.object({
43
- facts: core.serialization.list(NewFact_1.NewFact).optional(),
43
+ facts: core.serialization.list(NewFact_1.NewFact),
44
44
  });
@@ -13,6 +13,6 @@ export declare namespace CreateUserRequest {
13
13
  first_name?: string | null;
14
14
  last_name?: string | null;
15
15
  metadata?: Record<string, unknown> | null;
16
- user_id?: string | null;
16
+ user_id: string;
17
17
  }
18
18
  }
@@ -45,5 +45,5 @@ exports.CreateUserRequest = core.serialization.object({
45
45
  firstName: core.serialization.property("first_name", core.serialization.string().optional()),
46
46
  lastName: core.serialization.property("last_name", core.serialization.string().optional()),
47
47
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
48
- userId: core.serialization.property("user_id", core.serialization.string().optional()),
48
+ userId: core.serialization.property("user_id", core.serialization.string()),
49
49
  });
@@ -9,7 +9,6 @@ export declare namespace EntityNode {
9
9
  interface Raw {
10
10
  attributes?: Record<string, unknown> | null;
11
11
  created_at: string;
12
- episodes?: string[] | null;
13
12
  labels?: string[] | null;
14
13
  name: string;
15
14
  summary: string;
@@ -41,7 +41,6 @@ const core = __importStar(require("../../core"));
41
41
  exports.EntityNode = core.serialization.object({
42
42
  attributes: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
43
43
  createdAt: core.serialization.property("created_at", core.serialization.string()),
44
- episodes: core.serialization.list(core.serialization.string()).optional(),
45
44
  labels: core.serialization.list(core.serialization.string()).optional(),
46
45
  name: core.serialization.string(),
47
46
  summary: core.serialization.string(),
@@ -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 { GraphDataType } from "./GraphDataType";
8
+ export declare const EpisodeData: core.serialization.ObjectSchema<serializers.EpisodeData.Raw, Zep.EpisodeData>;
9
+ export declare namespace EpisodeData {
10
+ interface Raw {
11
+ created_at?: string | null;
12
+ data: string;
13
+ source_description?: string | null;
14
+ type: GraphDataType.Raw;
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.EpisodeData = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const GraphDataType_1 = require("./GraphDataType");
42
+ exports.EpisodeData = core.serialization.object({
43
+ createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
44
+ data: core.serialization.string(),
45
+ sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()),
46
+ type: GraphDataType_1.GraphDataType,
47
+ });
@@ -7,6 +7,6 @@ import * as core from "../../core";
7
7
  export declare const NewFact: core.serialization.ObjectSchema<serializers.NewFact.Raw, Zep.NewFact>;
8
8
  export declare namespace NewFact {
9
9
  interface Raw {
10
- fact?: string | null;
10
+ fact: string;
11
11
  }
12
12
  }
@@ -39,5 +39,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.NewFact = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.NewFact = core.serialization.object({
42
- fact: core.serialization.string().optional(),
42
+ fact: core.serialization.string(),
43
43
  });
@@ -9,6 +9,7 @@ export * from "./EndSessionsResponse";
9
9
  export * from "./EntityProperty";
10
10
  export * from "./EntityType";
11
11
  export * from "./EntityTypeResponse";
12
+ export * from "./EpisodeData";
12
13
  export * from "./Fact";
13
14
  export * from "./FactRatingInstruction";
14
15
  export * from "./FactResponse";
@@ -25,6 +25,7 @@ __exportStar(require("./EndSessionsResponse"), exports);
25
25
  __exportStar(require("./EntityProperty"), exports);
26
26
  __exportStar(require("./EntityType"), exports);
27
27
  __exportStar(require("./EntityTypeResponse"), exports);
28
+ __exportStar(require("./EpisodeData"), exports);
28
29
  __exportStar(require("./Fact"), exports);
29
30
  __exportStar(require("./FactRatingInstruction"), exports);
30
31
  __exportStar(require("./FactResponse"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.10.2";
1
+ export declare const SDK_VERSION = "2.12.0";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "2.10.2";
4
+ exports.SDK_VERSION = "2.12.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getzep/zep-cloud",
3
- "version": "2.10.2",
3
+ "version": "2.12.0",
4
4
  "private": false,
5
5
  "repository": "https://github.com/getzep/zep-js",
6
6
  "description": "Zep: Fast, scalable building blocks for production LLM apps",
package/reference.md CHANGED
@@ -1095,6 +1095,76 @@ await client.graph.add({
1095
1095
  </dl>
1096
1096
  </details>
1097
1097
 
1098
+ <details><summary><code>client.graph.<a href="/src/api/resources/graph/client/Client.ts">addBatch</a>({ ...params }) -> Zep.Episode[]</code></summary>
1099
+ <dl>
1100
+ <dd>
1101
+
1102
+ #### 📝 Description
1103
+
1104
+ <dl>
1105
+ <dd>
1106
+
1107
+ <dl>
1108
+ <dd>
1109
+
1110
+ Add data to the graph in batch mode (each episode processed concurrently). Note: each subscription tier has different limits on the amount of data that can be added to the graph please refer to the pricing page for more information.
1111
+
1112
+ </dd>
1113
+ </dl>
1114
+ </dd>
1115
+ </dl>
1116
+
1117
+ #### 🔌 Usage
1118
+
1119
+ <dl>
1120
+ <dd>
1121
+
1122
+ <dl>
1123
+ <dd>
1124
+
1125
+ ```typescript
1126
+ await client.graph.addBatch({
1127
+ episodes: [
1128
+ {
1129
+ data: "data",
1130
+ type: "text",
1131
+ },
1132
+ ],
1133
+ });
1134
+ ```
1135
+
1136
+ </dd>
1137
+ </dl>
1138
+ </dd>
1139
+ </dl>
1140
+
1141
+ #### ⚙️ Parameters
1142
+
1143
+ <dl>
1144
+ <dd>
1145
+
1146
+ <dl>
1147
+ <dd>
1148
+
1149
+ **request:** `Zep.AddDataBatchRequest`
1150
+
1151
+ </dd>
1152
+ </dl>
1153
+
1154
+ <dl>
1155
+ <dd>
1156
+
1157
+ **requestOptions:** `Graph.RequestOptions`
1158
+
1159
+ </dd>
1160
+ </dl>
1161
+ </dd>
1162
+ </dl>
1163
+
1164
+ </dd>
1165
+ </dl>
1166
+ </details>
1167
+
1098
1168
  <details><summary><code>client.graph.<a href="/src/api/resources/graph/client/Client.ts">addFactTriple</a>({ ...params }) -> Zep.AddTripleResponse</code></summary>
1099
1169
  <dl>
1100
1170
  <dd>
@@ -2070,7 +2140,13 @@ Deprecated API: Adds facts to a session
2070
2140
  <dd>
2071
2141
 
2072
2142
  ```typescript
2073
- await client.memory.addSessionFacts("sessionId");
2143
+ await client.memory.addSessionFacts("sessionId", {
2144
+ facts: [
2145
+ {
2146
+ fact: "fact",
2147
+ },
2148
+ ],
2149
+ });
2074
2150
  ```
2075
2151
 
2076
2152
  </dd>
@@ -3160,7 +3236,9 @@ Adds a user.
3160
3236
  <dd>
3161
3237
 
3162
3238
  ```typescript
3163
- await client.user.add();
3239
+ await client.user.add({
3240
+ userId: "user_id",
3241
+ });
3164
3242
  ```
3165
3243
 
3166
3244
  </dd>
@@ -0,0 +1,11 @@
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 { Episode } from "../../../types/Episode";
8
+ export declare const Response: core.serialization.Schema<serializers.graph.addBatch.Response.Raw, Zep.Episode[]>;
9
+ export declare namespace Response {
10
+ type Raw = Episode.Raw[];
11
+ }
@@ -0,0 +1,42 @@
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.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const Episode_1 = require("../../../types/Episode");
42
+ exports.Response = core.serialization.list(Episode_1.Episode);
@@ -1 +1,2 @@
1
+ export * as addBatch from "./addBatch";
1
2
  export * from "./requests";
@@ -10,8 +10,32 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
10
  if (k2 === undefined) k2 = k;
11
11
  o[k2] = m[k];
12
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
+ })();
13
35
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
37
  };
16
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.addBatch = void 0;
40
+ exports.addBatch = __importStar(require("./addBatch"));
17
41
  __exportStar(require("./requests"), 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";
5
+ import * as Zep from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ import { EpisodeData } from "../../../../types/EpisodeData";
8
+ export declare const AddDataBatchRequest: core.serialization.Schema<serializers.AddDataBatchRequest.Raw, Zep.AddDataBatchRequest>;
9
+ export declare namespace AddDataBatchRequest {
10
+ interface Raw {
11
+ episodes: EpisodeData.Raw[];
12
+ group_id?: string | null;
13
+ user_id?: 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.AddDataBatchRequest = void 0;
40
+ const core = __importStar(require("../../../../../core"));
41
+ const EpisodeData_1 = require("../../../../types/EpisodeData");
42
+ exports.AddDataBatchRequest = core.serialization.object({
43
+ episodes: core.serialization.list(EpisodeData_1.EpisodeData),
44
+ groupId: core.serialization.property("group_id", core.serialization.string().optional()),
45
+ userId: core.serialization.property("user_id", core.serialization.string().optional()),
46
+ });
@@ -8,6 +8,7 @@ import { GraphDataType } from "../../../../types/GraphDataType";
8
8
  export declare const AddDataRequest: core.serialization.Schema<serializers.AddDataRequest.Raw, Zep.AddDataRequest>;
9
9
  export declare namespace AddDataRequest {
10
10
  interface Raw {
11
+ created_at?: string | null;
11
12
  data: string;
12
13
  group_id?: string | null;
13
14
  source_description?: string | null;
@@ -40,6 +40,7 @@ exports.AddDataRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
41
  const GraphDataType_1 = require("../../../../types/GraphDataType");
42
42
  exports.AddDataRequest = core.serialization.object({
43
+ createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
43
44
  data: core.serialization.string(),
44
45
  groupId: core.serialization.property("group_id", core.serialization.string().optional()),
45
46
  sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()),
@@ -1,4 +1,5 @@
1
1
  export { EntityTypeRequest } from "./EntityTypeRequest";
2
2
  export { AddDataRequest } from "./AddDataRequest";
3
+ export { AddDataBatchRequest } from "./AddDataBatchRequest";
3
4
  export { AddTripleRequest } from "./AddTripleRequest";
4
5
  export { GraphSearchQuery } from "./GraphSearchQuery";
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GraphSearchQuery = exports.AddTripleRequest = exports.AddDataRequest = exports.EntityTypeRequest = void 0;
3
+ exports.GraphSearchQuery = exports.AddTripleRequest = exports.AddDataBatchRequest = exports.AddDataRequest = exports.EntityTypeRequest = void 0;
4
4
  var EntityTypeRequest_1 = require("./EntityTypeRequest");
5
5
  Object.defineProperty(exports, "EntityTypeRequest", { enumerable: true, get: function () { return EntityTypeRequest_1.EntityTypeRequest; } });
6
6
  var AddDataRequest_1 = require("./AddDataRequest");
7
7
  Object.defineProperty(exports, "AddDataRequest", { enumerable: true, get: function () { return AddDataRequest_1.AddDataRequest; } });
8
+ var AddDataBatchRequest_1 = require("./AddDataBatchRequest");
9
+ Object.defineProperty(exports, "AddDataBatchRequest", { enumerable: true, get: function () { return AddDataBatchRequest_1.AddDataBatchRequest; } });
8
10
  var AddTripleRequest_1 = require("./AddTripleRequest");
9
11
  Object.defineProperty(exports, "AddTripleRequest", { enumerable: true, get: function () { return AddTripleRequest_1.AddTripleRequest; } });
10
12
  var GraphSearchQuery_1 = require("./GraphSearchQuery");
@@ -1,2 +1,2 @@
1
- export * from "./resources";
2
1
  export * from "./client";
2
+ export * from "./resources";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./resources"), exports);
18
17
  __exportStar(require("./client"), exports);
18
+ __exportStar(require("./resources"), exports);
@@ -1,7 +1,7 @@
1
1
  export * as document from "./document";
2
+ export * as graph from "./graph";
2
3
  export * as memory from "./memory";
3
4
  export * as user from "./user";
4
- export * as graph from "./graph";
5
5
  export * from "./document/client/requests";
6
6
  export * from "./graph/client/requests";
7
7
  export * from "./memory/client/requests";
@@ -36,11 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.group = exports.graph = exports.user = exports.memory = exports.document = void 0;
39
+ exports.group = exports.user = exports.memory = exports.graph = exports.document = void 0;
40
40
  exports.document = __importStar(require("./document"));
41
+ exports.graph = __importStar(require("./graph"));
41
42
  exports.memory = __importStar(require("./memory"));
42
43
  exports.user = __importStar(require("./user"));
43
- exports.graph = __importStar(require("./graph"));
44
44
  __exportStar(require("./document/client/requests"), exports);
45
45
  __exportStar(require("./graph/client/requests"), exports);
46
46
  __exportStar(require("./memory/client/requests"), exports);
@@ -8,6 +8,6 @@ import { NewFact } from "../../../../types/NewFact";
8
8
  export declare const AddFactsRequest: core.serialization.Schema<serializers.AddFactsRequest.Raw, Zep.AddFactsRequest>;
9
9
  export declare namespace AddFactsRequest {
10
10
  interface Raw {
11
- facts?: NewFact.Raw[] | null;
11
+ facts: NewFact.Raw[];
12
12
  }
13
13
  }
@@ -40,5 +40,5 @@ exports.AddFactsRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
41
  const NewFact_1 = require("../../../../types/NewFact");
42
42
  exports.AddFactsRequest = core.serialization.object({
43
- facts: core.serialization.list(NewFact_1.NewFact).optional(),
43
+ facts: core.serialization.list(NewFact_1.NewFact),
44
44
  });
@@ -13,6 +13,6 @@ export declare namespace CreateUserRequest {
13
13
  first_name?: string | null;
14
14
  last_name?: string | null;
15
15
  metadata?: Record<string, unknown> | null;
16
- user_id?: string | null;
16
+ user_id: string;
17
17
  }
18
18
  }
@@ -45,5 +45,5 @@ exports.CreateUserRequest = core.serialization.object({
45
45
  firstName: core.serialization.property("first_name", core.serialization.string().optional()),
46
46
  lastName: core.serialization.property("last_name", core.serialization.string().optional()),
47
47
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
48
- userId: core.serialization.property("user_id", core.serialization.string().optional()),
48
+ userId: core.serialization.property("user_id", core.serialization.string()),
49
49
  });
@@ -9,7 +9,6 @@ export declare namespace EntityNode {
9
9
  interface Raw {
10
10
  attributes?: Record<string, unknown> | null;
11
11
  created_at: string;
12
- episodes?: string[] | null;
13
12
  labels?: string[] | null;
14
13
  name: string;
15
14
  summary: string;
@@ -41,7 +41,6 @@ const core = __importStar(require("../../core"));
41
41
  exports.EntityNode = core.serialization.object({
42
42
  attributes: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
43
43
  createdAt: core.serialization.property("created_at", core.serialization.string()),
44
- episodes: core.serialization.list(core.serialization.string()).optional(),
45
44
  labels: core.serialization.list(core.serialization.string()).optional(),
46
45
  name: core.serialization.string(),
47
46
  summary: core.serialization.string(),