@getzep/zep-cloud 2.12.0 → 2.12.2

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 (40) hide show
  1. package/api/resources/document/client/Client.js +13 -13
  2. package/api/resources/graph/client/Client.js +6 -6
  3. package/api/resources/graph/resources/edge/client/Client.js +4 -4
  4. package/api/resources/graph/resources/episode/client/Client.js +5 -5
  5. package/api/resources/graph/resources/node/client/Client.d.ts +26 -0
  6. package/api/resources/graph/resources/node/client/Client.js +151 -3
  7. package/api/resources/group/client/Client.js +6 -6
  8. package/api/resources/memory/client/Client.d.ts +1 -1
  9. package/api/resources/memory/client/Client.js +23 -23
  10. package/api/resources/user/client/Client.js +8 -8
  11. package/api/types/Episode.d.ts +2 -0
  12. package/dist/api/resources/document/client/Client.js +13 -13
  13. package/dist/api/resources/graph/client/Client.js +6 -6
  14. package/dist/api/resources/graph/resources/edge/client/Client.js +4 -4
  15. package/dist/api/resources/graph/resources/episode/client/Client.js +5 -5
  16. package/dist/api/resources/graph/resources/node/client/Client.d.ts +26 -0
  17. package/dist/api/resources/graph/resources/node/client/Client.js +151 -3
  18. package/dist/api/resources/group/client/Client.js +6 -6
  19. package/dist/api/resources/memory/client/Client.d.ts +1 -1
  20. package/dist/api/resources/memory/client/Client.js +23 -23
  21. package/dist/api/resources/user/client/Client.js +8 -8
  22. package/dist/api/types/Episode.d.ts +2 -0
  23. package/dist/serialization/resources/graph/resources/node/client/getEdges.d.ts +11 -0
  24. package/dist/serialization/resources/graph/resources/node/client/getEdges.js +42 -0
  25. package/dist/serialization/resources/graph/resources/node/client/index.d.ts +1 -0
  26. package/dist/serialization/resources/graph/resources/node/client/index.js +2 -1
  27. package/dist/serialization/types/Episode.d.ts +1 -0
  28. package/dist/serialization/types/Episode.js +1 -0
  29. package/dist/version.d.ts +1 -1
  30. package/dist/version.js +1 -1
  31. package/package.json +1 -1
  32. package/reference.md +127 -1
  33. package/serialization/resources/graph/resources/node/client/getEdges.d.ts +11 -0
  34. package/serialization/resources/graph/resources/node/client/getEdges.js +42 -0
  35. package/serialization/resources/graph/resources/node/client/index.d.ts +1 -0
  36. package/serialization/resources/graph/resources/node/client/index.js +2 -1
  37. package/serialization/types/Episode.d.ts +1 -0
  38. package/serialization/types/Episode.js +1 -0
  39. package/version.d.ts +1 -1
  40. package/version.js +1 -1
@@ -79,7 +79,7 @@ class User {
79
79
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
80
80
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "users"),
81
81
  method: "POST",
82
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.2", "User-Agent": "zep-cloud/2.12.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  body: serializers.CreateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -162,7 +162,7 @@ class User {
162
162
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
163
163
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "users-ordered"),
164
164
  method: "GET",
165
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
165
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.2", "User-Agent": "zep-cloud/2.12.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
166
166
  contentType: "application/json",
167
167
  queryParameters: _queryParams,
168
168
  requestType: "json",
@@ -237,7 +237,7 @@ class User {
237
237
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
238
238
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}`),
239
239
  method: "GET",
240
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.2", "User-Agent": "zep-cloud/2.12.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -311,7 +311,7 @@ class User {
311
311
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
312
312
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}`),
313
313
  method: "DELETE",
314
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
314
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.2", "User-Agent": "zep-cloud/2.12.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
315
315
  contentType: "application/json",
316
316
  requestType: "json",
317
317
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -387,7 +387,7 @@ class User {
387
387
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
388
388
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}`),
389
389
  method: "PATCH",
390
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
390
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.2", "User-Agent": "zep-cloud/2.12.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
391
391
  contentType: "application/json",
392
392
  requestType: "json",
393
393
  body: serializers.UpdateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -470,7 +470,7 @@ class User {
470
470
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
471
471
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}/facts`),
472
472
  method: "GET",
473
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
473
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.2", "User-Agent": "zep-cloud/2.12.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
474
474
  contentType: "application/json",
475
475
  requestType: "json",
476
476
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -544,7 +544,7 @@ class User {
544
544
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
545
545
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}/node`),
546
546
  method: "GET",
547
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
547
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.2", "User-Agent": "zep-cloud/2.12.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
548
548
  contentType: "application/json",
549
549
  requestType: "json",
550
550
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -617,7 +617,7 @@ class User {
617
617
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
618
618
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}/sessions`),
619
619
  method: "GET",
620
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
620
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.2", "User-Agent": "zep-cloud/2.12.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
621
621
  contentType: "application/json",
622
622
  requestType: "json",
623
623
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -6,6 +6,8 @@ export interface Episode {
6
6
  content: string;
7
7
  createdAt: string;
8
8
  processed?: boolean;
9
+ /** Optional session ID. Will be present only if the episode corresponds to the messages added using memory.add API */
10
+ sessionId?: string;
9
11
  source?: Zep.GraphDataType;
10
12
  sourceDescription?: string;
11
13
  uuid: string;
@@ -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 { EntityEdge } from "../../../../../types/EntityEdge";
8
+ export declare const Response: core.serialization.Schema<serializers.graph.node.getEdges.Response.Raw, Zep.EntityEdge[]>;
9
+ export declare namespace Response {
10
+ type Raw = EntityEdge.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 EntityEdge_1 = require("../../../../../types/EntityEdge");
42
+ exports.Response = core.serialization.list(EntityEdge_1.EntityEdge);
@@ -1,2 +1,3 @@
1
1
  export * as getByGroupId from "./getByGroupId";
2
2
  export * as getByUserId from "./getByUserId";
3
+ export * as getEdges from "./getEdges";
@@ -33,6 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.getByUserId = exports.getByGroupId = void 0;
36
+ exports.getEdges = exports.getByUserId = exports.getByGroupId = void 0;
37
37
  exports.getByGroupId = __importStar(require("./getByGroupId"));
38
38
  exports.getByUserId = __importStar(require("./getByUserId"));
39
+ exports.getEdges = __importStar(require("./getEdges"));
@@ -11,6 +11,7 @@ export declare namespace Episode {
11
11
  content: string;
12
12
  created_at: string;
13
13
  processed?: boolean | null;
14
+ session_id?: string | null;
14
15
  source?: GraphDataType.Raw | null;
15
16
  source_description?: string | null;
16
17
  uuid: string;
@@ -43,6 +43,7 @@ exports.Episode = core.serialization.object({
43
43
  content: core.serialization.string(),
44
44
  createdAt: core.serialization.property("created_at", core.serialization.string()),
45
45
  processed: core.serialization.boolean().optional(),
46
+ sessionId: core.serialization.property("session_id", core.serialization.string().optional()),
46
47
  source: GraphDataType_1.GraphDataType.optional(),
47
48
  sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()),
48
49
  uuid: core.serialization.string(),
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.12.0";
1
+ export declare const SDK_VERSION = "2.12.2";
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.12.0";
4
+ exports.SDK_VERSION = "2.12.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getzep/zep-cloud",
3
- "version": "2.12.0",
3
+ "version": "2.12.2",
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
@@ -2484,7 +2484,7 @@ await client.memory.getSessionMessages("sessionId");
2484
2484
  <dl>
2485
2485
  <dd>
2486
2486
 
2487
- Returns a specific message from a session.
2487
+ Deprecated: Use graph.episodes.get instead. Returns a specific message from a session.
2488
2488
 
2489
2489
  </dd>
2490
2490
  </dl>
@@ -4469,6 +4469,132 @@ await client.graph.node.getByUserId("user_id", {});
4469
4469
  </dl>
4470
4470
  </details>
4471
4471
 
4472
+ <details><summary><code>client.graph.node.<a href="/src/api/resources/graph/resources/node/client/Client.ts">getEdges</a>(nodeUuid) -> Zep.EntityEdge[]</code></summary>
4473
+ <dl>
4474
+ <dd>
4475
+
4476
+ #### 📝 Description
4477
+
4478
+ <dl>
4479
+ <dd>
4480
+
4481
+ <dl>
4482
+ <dd>
4483
+
4484
+ Returns all edges for a node
4485
+
4486
+ </dd>
4487
+ </dl>
4488
+ </dd>
4489
+ </dl>
4490
+
4491
+ #### 🔌 Usage
4492
+
4493
+ <dl>
4494
+ <dd>
4495
+
4496
+ <dl>
4497
+ <dd>
4498
+
4499
+ ```typescript
4500
+ await client.graph.node.getEdges("node_uuid");
4501
+ ```
4502
+
4503
+ </dd>
4504
+ </dl>
4505
+ </dd>
4506
+ </dl>
4507
+
4508
+ #### ⚙️ Parameters
4509
+
4510
+ <dl>
4511
+ <dd>
4512
+
4513
+ <dl>
4514
+ <dd>
4515
+
4516
+ **nodeUuid:** `string` — Node UUID
4517
+
4518
+ </dd>
4519
+ </dl>
4520
+
4521
+ <dl>
4522
+ <dd>
4523
+
4524
+ **requestOptions:** `Node.RequestOptions`
4525
+
4526
+ </dd>
4527
+ </dl>
4528
+ </dd>
4529
+ </dl>
4530
+
4531
+ </dd>
4532
+ </dl>
4533
+ </details>
4534
+
4535
+ <details><summary><code>client.graph.node.<a href="/src/api/resources/graph/resources/node/client/Client.ts">getEpisodes</a>(nodeUuid) -> Zep.EpisodeResponse</code></summary>
4536
+ <dl>
4537
+ <dd>
4538
+
4539
+ #### 📝 Description
4540
+
4541
+ <dl>
4542
+ <dd>
4543
+
4544
+ <dl>
4545
+ <dd>
4546
+
4547
+ Returns all episodes that mentioned a given node
4548
+
4549
+ </dd>
4550
+ </dl>
4551
+ </dd>
4552
+ </dl>
4553
+
4554
+ #### 🔌 Usage
4555
+
4556
+ <dl>
4557
+ <dd>
4558
+
4559
+ <dl>
4560
+ <dd>
4561
+
4562
+ ```typescript
4563
+ await client.graph.node.getEpisodes("node_uuid");
4564
+ ```
4565
+
4566
+ </dd>
4567
+ </dl>
4568
+ </dd>
4569
+ </dl>
4570
+
4571
+ #### ⚙️ Parameters
4572
+
4573
+ <dl>
4574
+ <dd>
4575
+
4576
+ <dl>
4577
+ <dd>
4578
+
4579
+ **nodeUuid:** `string` — Node UUID
4580
+
4581
+ </dd>
4582
+ </dl>
4583
+
4584
+ <dl>
4585
+ <dd>
4586
+
4587
+ **requestOptions:** `Node.RequestOptions`
4588
+
4589
+ </dd>
4590
+ </dl>
4591
+ </dd>
4592
+ </dl>
4593
+
4594
+ </dd>
4595
+ </dl>
4596
+ </details>
4597
+
4472
4598
  <details><summary><code>client.graph.node.<a href="/src/api/resources/graph/resources/node/client/Client.ts">get</a>(uuid) -> Zep.EntityNode</code></summary>
4473
4599
  <dl>
4474
4600
  <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 { EntityEdge } from "../../../../../types/EntityEdge";
8
+ export declare const Response: core.serialization.Schema<serializers.graph.node.getEdges.Response.Raw, Zep.EntityEdge[]>;
9
+ export declare namespace Response {
10
+ type Raw = EntityEdge.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 EntityEdge_1 = require("../../../../../types/EntityEdge");
42
+ exports.Response = core.serialization.list(EntityEdge_1.EntityEdge);
@@ -1,2 +1,3 @@
1
1
  export * as getByGroupId from "./getByGroupId";
2
2
  export * as getByUserId from "./getByUserId";
3
+ export * as getEdges from "./getEdges";
@@ -33,6 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.getByUserId = exports.getByGroupId = void 0;
36
+ exports.getEdges = exports.getByUserId = exports.getByGroupId = void 0;
37
37
  exports.getByGroupId = __importStar(require("./getByGroupId"));
38
38
  exports.getByUserId = __importStar(require("./getByUserId"));
39
+ exports.getEdges = __importStar(require("./getEdges"));
@@ -11,6 +11,7 @@ export declare namespace Episode {
11
11
  content: string;
12
12
  created_at: string;
13
13
  processed?: boolean | null;
14
+ session_id?: string | null;
14
15
  source?: GraphDataType.Raw | null;
15
16
  source_description?: string | null;
16
17
  uuid: string;
@@ -43,6 +43,7 @@ exports.Episode = core.serialization.object({
43
43
  content: core.serialization.string(),
44
44
  createdAt: core.serialization.property("created_at", core.serialization.string()),
45
45
  processed: core.serialization.boolean().optional(),
46
+ sessionId: core.serialization.property("session_id", core.serialization.string().optional()),
46
47
  source: GraphDataType_1.GraphDataType.optional(),
47
48
  sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()),
48
49
  uuid: core.serialization.string(),
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.12.0";
1
+ export declare const SDK_VERSION = "2.12.2";
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.12.0";
4
+ exports.SDK_VERSION = "2.12.2";