@getzep/zep-cloud 2.11.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.
- package/api/resources/document/client/Client.js +13 -13
- package/api/resources/graph/client/Client.js +6 -6
- package/api/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
- package/api/resources/graph/resources/edge/client/Client.js +4 -4
- package/api/resources/graph/resources/episode/client/Client.js +5 -5
- package/api/resources/graph/resources/node/client/Client.d.ts +26 -0
- package/api/resources/graph/resources/node/client/Client.js +151 -3
- package/api/resources/group/client/Client.js +6 -6
- package/api/resources/memory/client/Client.d.ts +7 -3
- package/api/resources/memory/client/Client.js +30 -26
- package/api/resources/memory/client/requests/AddFactsRequest.d.ts +6 -2
- package/api/resources/user/client/Client.d.ts +4 -2
- package/api/resources/user/client/Client.js +13 -11
- package/api/resources/user/client/requests/CreateUserRequest.d.ts +4 -2
- package/api/types/Episode.d.ts +2 -0
- package/api/types/EpisodeData.d.ts +1 -0
- package/api/types/NewFact.d.ts +1 -1
- package/dist/api/resources/document/client/Client.js +13 -13
- package/dist/api/resources/graph/client/Client.js +6 -6
- package/dist/api/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
- package/dist/api/resources/graph/resources/edge/client/Client.js +4 -4
- package/dist/api/resources/graph/resources/episode/client/Client.js +5 -5
- package/dist/api/resources/graph/resources/node/client/Client.d.ts +26 -0
- package/dist/api/resources/graph/resources/node/client/Client.js +151 -3
- package/dist/api/resources/group/client/Client.js +6 -6
- package/dist/api/resources/memory/client/Client.d.ts +7 -3
- package/dist/api/resources/memory/client/Client.js +30 -26
- package/dist/api/resources/memory/client/requests/AddFactsRequest.d.ts +6 -2
- package/dist/api/resources/user/client/Client.d.ts +4 -2
- package/dist/api/resources/user/client/Client.js +13 -11
- package/dist/api/resources/user/client/requests/CreateUserRequest.d.ts +4 -2
- package/dist/api/types/Episode.d.ts +2 -0
- package/dist/api/types/EpisodeData.d.ts +1 -0
- package/dist/api/types/NewFact.d.ts +1 -1
- package/dist/serialization/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
- package/dist/serialization/resources/graph/client/requests/AddDataRequest.js +1 -0
- package/dist/serialization/resources/graph/resources/node/client/getEdges.d.ts +11 -0
- package/dist/serialization/resources/graph/resources/node/client/getEdges.js +42 -0
- package/dist/serialization/resources/graph/resources/node/client/index.d.ts +1 -0
- package/dist/serialization/resources/graph/resources/node/client/index.js +2 -1
- package/dist/serialization/resources/memory/client/requests/AddFactsRequest.d.ts +1 -1
- package/dist/serialization/resources/memory/client/requests/AddFactsRequest.js +1 -1
- package/dist/serialization/resources/user/client/requests/CreateUserRequest.d.ts +1 -1
- package/dist/serialization/resources/user/client/requests/CreateUserRequest.js +1 -1
- package/dist/serialization/types/Episode.d.ts +1 -0
- package/dist/serialization/types/Episode.js +1 -0
- package/dist/serialization/types/EpisodeData.d.ts +1 -0
- package/dist/serialization/types/EpisodeData.js +1 -0
- package/dist/serialization/types/NewFact.d.ts +1 -1
- package/dist/serialization/types/NewFact.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +137 -3
- package/serialization/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
- package/serialization/resources/graph/client/requests/AddDataRequest.js +1 -0
- package/serialization/resources/graph/resources/node/client/getEdges.d.ts +11 -0
- package/serialization/resources/graph/resources/node/client/getEdges.js +42 -0
- package/serialization/resources/graph/resources/node/client/index.d.ts +1 -0
- package/serialization/resources/graph/resources/node/client/index.js +2 -1
- package/serialization/resources/memory/client/requests/AddFactsRequest.d.ts +1 -1
- package/serialization/resources/memory/client/requests/AddFactsRequest.js +1 -1
- package/serialization/resources/user/client/requests/CreateUserRequest.d.ts +1 -1
- package/serialization/resources/user/client/requests/CreateUserRequest.js +1 -1
- package/serialization/types/Episode.d.ts +1 -0
- package/serialization/types/Episode.js +1 -0
- package/serialization/types/EpisodeData.d.ts +1 -0
- package/serialization/types/EpisodeData.js +1 -0
- package/serialization/types/NewFact.d.ts +1 -1
- package/serialization/types/NewFact.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.12.2";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2140,7 +2140,13 @@ Deprecated API: Adds facts to a session
|
|
|
2140
2140
|
<dd>
|
|
2141
2141
|
|
|
2142
2142
|
```typescript
|
|
2143
|
-
await client.memory.addSessionFacts("sessionId"
|
|
2143
|
+
await client.memory.addSessionFacts("sessionId", {
|
|
2144
|
+
facts: [
|
|
2145
|
+
{
|
|
2146
|
+
fact: "fact",
|
|
2147
|
+
},
|
|
2148
|
+
],
|
|
2149
|
+
});
|
|
2144
2150
|
```
|
|
2145
2151
|
|
|
2146
2152
|
</dd>
|
|
@@ -2478,7 +2484,7 @@ await client.memory.getSessionMessages("sessionId");
|
|
|
2478
2484
|
<dl>
|
|
2479
2485
|
<dd>
|
|
2480
2486
|
|
|
2481
|
-
Returns a specific message from a session.
|
|
2487
|
+
Deprecated: Use graph.episodes.get instead. Returns a specific message from a session.
|
|
2482
2488
|
|
|
2483
2489
|
</dd>
|
|
2484
2490
|
</dl>
|
|
@@ -3230,7 +3236,9 @@ Adds a user.
|
|
|
3230
3236
|
<dd>
|
|
3231
3237
|
|
|
3232
3238
|
```typescript
|
|
3233
|
-
await client.user.add(
|
|
3239
|
+
await client.user.add({
|
|
3240
|
+
userId: "user_id",
|
|
3241
|
+
});
|
|
3234
3242
|
```
|
|
3235
3243
|
|
|
3236
3244
|
</dd>
|
|
@@ -4461,6 +4469,132 @@ await client.graph.node.getByUserId("user_id", {});
|
|
|
4461
4469
|
</dl>
|
|
4462
4470
|
</details>
|
|
4463
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
|
+
|
|
4464
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>
|
|
4465
4599
|
<dl>
|
|
4466
4600
|
<dd>
|
|
@@ -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()),
|
|
@@ -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);
|
|
@@ -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"));
|
|
@@ -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
|
|
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)
|
|
43
|
+
facts: core.serialization.list(NewFact_1.NewFact),
|
|
44
44
|
});
|
|
@@ -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()
|
|
48
|
+
userId: core.serialization.property("user_id", core.serialization.string()),
|
|
49
49
|
});
|
|
@@ -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(),
|
|
@@ -8,6 +8,7 @@ import { GraphDataType } from "./GraphDataType";
|
|
|
8
8
|
export declare const EpisodeData: core.serialization.ObjectSchema<serializers.EpisodeData.Raw, Zep.EpisodeData>;
|
|
9
9
|
export declare namespace EpisodeData {
|
|
10
10
|
interface Raw {
|
|
11
|
+
created_at?: string | null;
|
|
11
12
|
data: string;
|
|
12
13
|
source_description?: string | null;
|
|
13
14
|
type: GraphDataType.Raw;
|
|
@@ -40,6 +40,7 @@ exports.EpisodeData = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const GraphDataType_1 = require("./GraphDataType");
|
|
42
42
|
exports.EpisodeData = core.serialization.object({
|
|
43
|
+
createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
|
|
43
44
|
data: core.serialization.string(),
|
|
44
45
|
sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()),
|
|
45
46
|
type: GraphDataType_1.GraphDataType,
|
|
@@ -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()
|
|
42
|
+
fact: core.serialization.string(),
|
|
43
43
|
});
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.12.2";
|
package/version.js
CHANGED