@getzep/zep-cloud 2.15.0 → 2.16.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 (62) hide show
  1. package/api/resources/document/client/Client.js +13 -13
  2. package/api/resources/graph/client/Client.d.ts +13 -0
  3. package/api/resources/graph/client/Client.js +81 -6
  4. package/api/resources/graph/client/requests/CloneGraphRequest.d.ts +17 -0
  5. package/api/resources/graph/client/requests/CloneGraphRequest.js +5 -0
  6. package/api/resources/graph/client/requests/index.d.ts +1 -0
  7. package/api/resources/graph/resources/edge/client/Client.js +4 -4
  8. package/api/resources/graph/resources/episode/client/Client.js +5 -5
  9. package/api/resources/graph/resources/node/client/Client.js +5 -5
  10. package/api/resources/group/client/Client.js +6 -6
  11. package/api/resources/memory/client/Client.d.ts +2 -2
  12. package/api/resources/memory/client/Client.js +24 -24
  13. package/api/resources/user/client/Client.js +8 -8
  14. package/api/types/CloneGraphResponse.d.ts +7 -0
  15. package/api/types/CloneGraphResponse.js +5 -0
  16. package/api/types/index.d.ts +1 -0
  17. package/api/types/index.js +1 -0
  18. package/dist/api/resources/document/client/Client.js +13 -13
  19. package/dist/api/resources/graph/client/Client.d.ts +13 -0
  20. package/dist/api/resources/graph/client/Client.js +81 -6
  21. package/dist/api/resources/graph/client/requests/CloneGraphRequest.d.ts +17 -0
  22. package/dist/api/resources/graph/client/requests/CloneGraphRequest.js +5 -0
  23. package/dist/api/resources/graph/client/requests/index.d.ts +1 -0
  24. package/dist/api/resources/graph/resources/edge/client/Client.js +4 -4
  25. package/dist/api/resources/graph/resources/episode/client/Client.js +5 -5
  26. package/dist/api/resources/graph/resources/node/client/Client.js +5 -5
  27. package/dist/api/resources/group/client/Client.js +6 -6
  28. package/dist/api/resources/memory/client/Client.d.ts +2 -2
  29. package/dist/api/resources/memory/client/Client.js +24 -24
  30. package/dist/api/resources/user/client/Client.js +8 -8
  31. package/dist/api/types/CloneGraphResponse.d.ts +7 -0
  32. package/dist/api/types/CloneGraphResponse.js +5 -0
  33. package/dist/api/types/index.d.ts +1 -0
  34. package/dist/api/types/index.js +1 -0
  35. package/dist/extractor/index.d.ts +2 -0
  36. package/dist/serialization/resources/graph/client/requests/CloneGraphRequest.d.ts +15 -0
  37. package/dist/serialization/resources/graph/client/requests/CloneGraphRequest.js +46 -0
  38. package/dist/serialization/resources/graph/client/requests/index.d.ts +1 -0
  39. package/dist/serialization/resources/graph/client/requests/index.js +3 -1
  40. package/dist/serialization/types/CloneGraphResponse.d.ts +13 -0
  41. package/dist/serialization/types/CloneGraphResponse.js +44 -0
  42. package/dist/serialization/types/index.d.ts +1 -0
  43. package/dist/serialization/types/index.js +1 -0
  44. package/dist/version.d.ts +1 -1
  45. package/dist/version.js +1 -1
  46. package/dist/wrapper/memory.d.ts +2 -0
  47. package/dist/wrapper/memory.js +2 -0
  48. package/extractor/index.d.ts +2 -0
  49. package/package.json +1 -1
  50. package/reference.md +65 -2
  51. package/serialization/resources/graph/client/requests/CloneGraphRequest.d.ts +15 -0
  52. package/serialization/resources/graph/client/requests/CloneGraphRequest.js +46 -0
  53. package/serialization/resources/graph/client/requests/index.d.ts +1 -0
  54. package/serialization/resources/graph/client/requests/index.js +3 -1
  55. package/serialization/types/CloneGraphResponse.d.ts +13 -0
  56. package/serialization/types/CloneGraphResponse.js +44 -0
  57. package/serialization/types/index.d.ts +1 -0
  58. package/serialization/types/index.js +1 -0
  59. package/version.d.ts +1 -1
  60. package/version.js +1 -1
  61. package/wrapper/memory.d.ts +2 -0
  62. package/wrapper/memory.js +2 -0
package/reference.md CHANGED
@@ -1232,6 +1232,69 @@ await client.graph.addFactTriple({
1232
1232
  </dl>
1233
1233
  </details>
1234
1234
 
1235
+ <details><summary><code>client.graph.<a href="/src/api/resources/graph/client/Client.ts">clone</a>({ ...params }) -> Zep.CloneGraphResponse</code></summary>
1236
+ <dl>
1237
+ <dd>
1238
+
1239
+ #### 📝 Description
1240
+
1241
+ <dl>
1242
+ <dd>
1243
+
1244
+ <dl>
1245
+ <dd>
1246
+
1247
+ Clone a user or group graph.
1248
+
1249
+ </dd>
1250
+ </dl>
1251
+ </dd>
1252
+ </dl>
1253
+
1254
+ #### 🔌 Usage
1255
+
1256
+ <dl>
1257
+ <dd>
1258
+
1259
+ <dl>
1260
+ <dd>
1261
+
1262
+ ```typescript
1263
+ await client.graph.clone();
1264
+ ```
1265
+
1266
+ </dd>
1267
+ </dl>
1268
+ </dd>
1269
+ </dl>
1270
+
1271
+ #### ⚙️ Parameters
1272
+
1273
+ <dl>
1274
+ <dd>
1275
+
1276
+ <dl>
1277
+ <dd>
1278
+
1279
+ **request:** `Zep.CloneGraphRequest`
1280
+
1281
+ </dd>
1282
+ </dl>
1283
+
1284
+ <dl>
1285
+ <dd>
1286
+
1287
+ **requestOptions:** `Graph.RequestOptions`
1288
+
1289
+ </dd>
1290
+ </dl>
1291
+ </dd>
1292
+ </dl>
1293
+
1294
+ </dd>
1295
+ </dl>
1296
+ </details>
1297
+
1235
1298
  <details><summary><code>client.graph.<a href="/src/api/resources/graph/client/Client.ts">search</a>({ ...params }) -> Zep.GraphSearchResults</code></summary>
1236
1299
  <dl>
1237
1300
  <dd>
@@ -1834,7 +1897,7 @@ await client.memory.updateSession("sessionId", {
1834
1897
  <dl>
1835
1898
  <dd>
1836
1899
 
1837
- Classifies a session.
1900
+ Deprecated: Classifies a session.
1838
1901
 
1839
1902
  </dd>
1840
1903
  </dl>
@@ -1979,7 +2042,7 @@ await client.memory.endSession("sessionId");
1979
2042
  <dl>
1980
2043
  <dd>
1981
2044
 
1982
- extract data from a session by session id
2045
+ Deprecated: extract data from a session by session id
1983
2046
 
1984
2047
  </dd>
1985
2048
  </dl>
@@ -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
+ export declare const CloneGraphRequest: core.serialization.Schema<serializers.CloneGraphRequest.Raw, Zep.CloneGraphRequest>;
8
+ export declare namespace CloneGraphRequest {
9
+ interface Raw {
10
+ source_group_id?: string | null;
11
+ source_user_id?: string | null;
12
+ target_group_id?: string | null;
13
+ target_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.CloneGraphRequest = void 0;
40
+ const core = __importStar(require("../../../../../core"));
41
+ exports.CloneGraphRequest = core.serialization.object({
42
+ sourceGroupId: core.serialization.property("source_group_id", core.serialization.string().optional()),
43
+ sourceUserId: core.serialization.property("source_user_id", core.serialization.string().optional()),
44
+ targetGroupId: core.serialization.property("target_group_id", core.serialization.string().optional()),
45
+ targetUserId: core.serialization.property("target_user_id", core.serialization.string().optional()),
46
+ });
@@ -2,4 +2,5 @@ export { EntityTypeRequest } from "./EntityTypeRequest";
2
2
  export { AddDataRequest } from "./AddDataRequest";
3
3
  export { AddDataBatchRequest } from "./AddDataBatchRequest";
4
4
  export { AddTripleRequest } from "./AddTripleRequest";
5
+ export { CloneGraphRequest } from "./CloneGraphRequest";
5
6
  export { GraphSearchQuery } from "./GraphSearchQuery";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GraphSearchQuery = exports.AddTripleRequest = exports.AddDataBatchRequest = exports.AddDataRequest = exports.EntityTypeRequest = void 0;
3
+ exports.GraphSearchQuery = exports.CloneGraphRequest = 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");
@@ -9,5 +9,7 @@ var AddDataBatchRequest_1 = require("./AddDataBatchRequest");
9
9
  Object.defineProperty(exports, "AddDataBatchRequest", { enumerable: true, get: function () { return AddDataBatchRequest_1.AddDataBatchRequest; } });
10
10
  var AddTripleRequest_1 = require("./AddTripleRequest");
11
11
  Object.defineProperty(exports, "AddTripleRequest", { enumerable: true, get: function () { return AddTripleRequest_1.AddTripleRequest; } });
12
+ var CloneGraphRequest_1 = require("./CloneGraphRequest");
13
+ Object.defineProperty(exports, "CloneGraphRequest", { enumerable: true, get: function () { return CloneGraphRequest_1.CloneGraphRequest; } });
12
14
  var GraphSearchQuery_1 = require("./GraphSearchQuery");
13
15
  Object.defineProperty(exports, "GraphSearchQuery", { enumerable: true, get: function () { return GraphSearchQuery_1.GraphSearchQuery; } });
@@ -0,0 +1,13 @@
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 CloneGraphResponse: core.serialization.ObjectSchema<serializers.CloneGraphResponse.Raw, Zep.CloneGraphResponse>;
8
+ export declare namespace CloneGraphResponse {
9
+ interface Raw {
10
+ group_id?: string | null;
11
+ user_id?: string | 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.CloneGraphResponse = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.CloneGraphResponse = core.serialization.object({
42
+ groupId: core.serialization.property("group_id", core.serialization.string().optional()),
43
+ userId: core.serialization.property("user_id", core.serialization.string().optional()),
44
+ });
@@ -1,5 +1,6 @@
1
1
  export * from "./ApiError";
2
2
  export * from "./AddMemoryResponse";
3
+ export * from "./CloneGraphResponse";
3
4
  export * from "./ApidataDocument";
4
5
  export * from "./ApidataDocumentCollection";
5
6
  export * from "./ApidataDocumentSearchResponse";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ApiError"), exports);
18
18
  __exportStar(require("./AddMemoryResponse"), exports);
19
+ __exportStar(require("./CloneGraphResponse"), exports);
19
20
  __exportStar(require("./ApidataDocument"), exports);
20
21
  __exportStar(require("./ApidataDocumentCollection"), exports);
21
22
  __exportStar(require("./ApidataDocumentSearchResponse"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.15.0";
1
+ export declare const SDK_VERSION = "2.16.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.15.0";
4
+ exports.SDK_VERSION = "2.16.0";
@@ -3,6 +3,8 @@ import { ExtractDataRequest } from "../api";
3
3
  import { schemas, SupportedZepField } from "../extractor";
4
4
  export declare class Memory extends BaseMemory {
5
5
  /**
6
+ * Deprecated
7
+ *
6
8
  * Extracts data based on a given schema and session details, transforms it according to the defined Zod schemas, and returns the transformed results.
7
9
  *
8
10
  * This method parses the provided schema against defined Zod validation rules, sends a request to extract data, and then transforms
package/wrapper/memory.js CHANGED
@@ -14,6 +14,8 @@ const Client_1 = require("../api/resources/memory/client/Client");
14
14
  const extractor_1 = require("../extractor");
15
15
  class Memory extends Client_1.Memory {
16
16
  /**
17
+ * Deprecated
18
+ *
17
19
  * Extracts data based on a given schema and session details, transforms it according to the defined Zod schemas, and returns the transformed results.
18
20
  *
19
21
  * This method parses the provided schema against defined Zod validation rules, sends a request to extract data, and then transforms