@getzep/zep-cloud 2.9.0 → 2.10.1
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.d.ts +5 -2
- package/api/resources/graph/client/Client.js +11 -8
- package/api/resources/graph/client/requests/AddDataRequest.d.ts +7 -3
- package/api/resources/graph/resources/edge/client/Client.d.ts +6 -4
- package/api/resources/graph/resources/edge/client/Client.js +17 -13
- package/api/resources/graph/resources/episode/client/Client.js +5 -5
- package/api/resources/graph/resources/node/client/Client.d.ts +6 -4
- package/api/resources/graph/resources/node/client/Client.js +16 -12
- package/api/resources/group/client/Client.js +6 -6
- package/api/resources/memory/client/Client.js +22 -22
- package/api/resources/user/client/Client.js +8 -8
- package/api/types/Episode.d.ts +0 -1
- package/api/types/GraphEdgesRequest.d.ts +9 -0
- package/api/types/GraphEdgesRequest.js +5 -0
- package/api/types/GraphNodesRequest.d.ts +9 -0
- package/api/types/GraphNodesRequest.js +5 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/resources/document/client/Client.js +13 -13
- package/dist/api/resources/graph/client/Client.d.ts +5 -2
- package/dist/api/resources/graph/client/Client.js +11 -8
- package/dist/api/resources/graph/client/requests/AddDataRequest.d.ts +7 -3
- package/dist/api/resources/graph/resources/edge/client/Client.d.ts +6 -4
- package/dist/api/resources/graph/resources/edge/client/Client.js +17 -13
- package/dist/api/resources/graph/resources/episode/client/Client.js +5 -5
- package/dist/api/resources/graph/resources/node/client/Client.d.ts +6 -4
- package/dist/api/resources/graph/resources/node/client/Client.js +16 -12
- package/dist/api/resources/group/client/Client.js +6 -6
- package/dist/api/resources/memory/client/Client.js +22 -22
- package/dist/api/resources/user/client/Client.js +8 -8
- package/dist/api/types/Episode.d.ts +0 -1
- package/dist/api/types/GraphEdgesRequest.d.ts +9 -0
- package/dist/api/types/GraphEdgesRequest.js +5 -0
- package/dist/api/types/GraphNodesRequest.d.ts +9 -0
- package/dist/api/types/GraphNodesRequest.js +5 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/graph/client/requests/AddDataRequest.d.ts +3 -2
- package/dist/serialization/resources/graph/client/requests/AddDataRequest.js +3 -2
- package/dist/serialization/types/Episode.d.ts +0 -1
- package/dist/serialization/types/Episode.js +0 -1
- package/dist/serialization/types/GraphEdgesRequest.d.ts +13 -0
- package/dist/serialization/types/GraphEdgesRequest.js +44 -0
- package/dist/serialization/types/GraphNodesRequest.d.ts +13 -0
- package/dist/serialization/types/GraphNodesRequest.js +44 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +44 -9
- package/serialization/resources/graph/client/requests/AddDataRequest.d.ts +3 -2
- package/serialization/resources/graph/client/requests/AddDataRequest.js +3 -2
- package/serialization/types/Episode.d.ts +0 -1
- package/serialization/types/Episode.js +0 -1
- package/serialization/types/GraphEdgesRequest.d.ts +13 -0
- package/serialization/types/GraphEdgesRequest.js +44 -0
- package/serialization/types/GraphNodesRequest.d.ts +13 -0
- package/serialization/types/GraphNodesRequest.js +44 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/reference.md
CHANGED
|
@@ -1064,7 +1064,10 @@ Add data to the graph. Note: each subscription tier has different limits on the
|
|
|
1064
1064
|
<dd>
|
|
1065
1065
|
|
|
1066
1066
|
```typescript
|
|
1067
|
-
await client.graph.add(
|
|
1067
|
+
await client.graph.add({
|
|
1068
|
+
data: "data",
|
|
1069
|
+
type: "text",
|
|
1070
|
+
});
|
|
1068
1071
|
```
|
|
1069
1072
|
|
|
1070
1073
|
</dd>
|
|
@@ -3650,7 +3653,7 @@ await client.user.getSessions("userId");
|
|
|
3650
3653
|
|
|
3651
3654
|
## Graph Edge
|
|
3652
3655
|
|
|
3653
|
-
<details><summary><code>client.graph.edge.<a href="/src/api/resources/graph/resources/edge/client/Client.ts">getByGroupId</a>(groupId) -> Zep.EntityEdge[]</code></summary>
|
|
3656
|
+
<details><summary><code>client.graph.edge.<a href="/src/api/resources/graph/resources/edge/client/Client.ts">getByGroupId</a>(groupId, { ...params }) -> Zep.EntityEdge[]</code></summary>
|
|
3654
3657
|
<dl>
|
|
3655
3658
|
<dd>
|
|
3656
3659
|
|
|
@@ -3678,7 +3681,7 @@ Returns all edges for a group.
|
|
|
3678
3681
|
<dd>
|
|
3679
3682
|
|
|
3680
3683
|
```typescript
|
|
3681
|
-
await client.graph.edge.getByGroupId("group_id");
|
|
3684
|
+
await client.graph.edge.getByGroupId("group_id", {});
|
|
3682
3685
|
```
|
|
3683
3686
|
|
|
3684
3687
|
</dd>
|
|
@@ -3702,6 +3705,14 @@ await client.graph.edge.getByGroupId("group_id");
|
|
|
3702
3705
|
<dl>
|
|
3703
3706
|
<dd>
|
|
3704
3707
|
|
|
3708
|
+
**request:** `Zep.GraphEdgesRequest`
|
|
3709
|
+
|
|
3710
|
+
</dd>
|
|
3711
|
+
</dl>
|
|
3712
|
+
|
|
3713
|
+
<dl>
|
|
3714
|
+
<dd>
|
|
3715
|
+
|
|
3705
3716
|
**requestOptions:** `Edge.RequestOptions`
|
|
3706
3717
|
|
|
3707
3718
|
</dd>
|
|
@@ -3713,7 +3724,7 @@ await client.graph.edge.getByGroupId("group_id");
|
|
|
3713
3724
|
</dl>
|
|
3714
3725
|
</details>
|
|
3715
3726
|
|
|
3716
|
-
<details><summary><code>client.graph.edge.<a href="/src/api/resources/graph/resources/edge/client/Client.ts">getByUserId</a>(userId) -> Zep.EntityEdge[]</code></summary>
|
|
3727
|
+
<details><summary><code>client.graph.edge.<a href="/src/api/resources/graph/resources/edge/client/Client.ts">getByUserId</a>(userId, { ...params }) -> Zep.EntityEdge[]</code></summary>
|
|
3717
3728
|
<dl>
|
|
3718
3729
|
<dd>
|
|
3719
3730
|
|
|
@@ -3741,7 +3752,7 @@ Returns all edges for a user.
|
|
|
3741
3752
|
<dd>
|
|
3742
3753
|
|
|
3743
3754
|
```typescript
|
|
3744
|
-
await client.graph.edge.getByUserId("user_id");
|
|
3755
|
+
await client.graph.edge.getByUserId("user_id", {});
|
|
3745
3756
|
```
|
|
3746
3757
|
|
|
3747
3758
|
</dd>
|
|
@@ -3765,6 +3776,14 @@ await client.graph.edge.getByUserId("user_id");
|
|
|
3765
3776
|
<dl>
|
|
3766
3777
|
<dd>
|
|
3767
3778
|
|
|
3779
|
+
**request:** `Zep.GraphEdgesRequest`
|
|
3780
|
+
|
|
3781
|
+
</dd>
|
|
3782
|
+
</dl>
|
|
3783
|
+
|
|
3784
|
+
<dl>
|
|
3785
|
+
<dd>
|
|
3786
|
+
|
|
3768
3787
|
**requestOptions:** `Edge.RequestOptions`
|
|
3769
3788
|
|
|
3770
3789
|
</dd>
|
|
@@ -4237,7 +4256,7 @@ await client.graph.episode.getNodesAndEdges("uuid");
|
|
|
4237
4256
|
|
|
4238
4257
|
## Graph Node
|
|
4239
4258
|
|
|
4240
|
-
<details><summary><code>client.graph.node.<a href="/src/api/resources/graph/resources/node/client/Client.ts">getByGroupId</a>(groupId) -> Zep.EntityNode[]</code></summary>
|
|
4259
|
+
<details><summary><code>client.graph.node.<a href="/src/api/resources/graph/resources/node/client/Client.ts">getByGroupId</a>(groupId, { ...params }) -> Zep.EntityNode[]</code></summary>
|
|
4241
4260
|
<dl>
|
|
4242
4261
|
<dd>
|
|
4243
4262
|
|
|
@@ -4265,7 +4284,7 @@ Returns all nodes for a group.
|
|
|
4265
4284
|
<dd>
|
|
4266
4285
|
|
|
4267
4286
|
```typescript
|
|
4268
|
-
await client.graph.node.getByGroupId("group_id");
|
|
4287
|
+
await client.graph.node.getByGroupId("group_id", {});
|
|
4269
4288
|
```
|
|
4270
4289
|
|
|
4271
4290
|
</dd>
|
|
@@ -4289,6 +4308,14 @@ await client.graph.node.getByGroupId("group_id");
|
|
|
4289
4308
|
<dl>
|
|
4290
4309
|
<dd>
|
|
4291
4310
|
|
|
4311
|
+
**request:** `Zep.GraphNodesRequest`
|
|
4312
|
+
|
|
4313
|
+
</dd>
|
|
4314
|
+
</dl>
|
|
4315
|
+
|
|
4316
|
+
<dl>
|
|
4317
|
+
<dd>
|
|
4318
|
+
|
|
4292
4319
|
**requestOptions:** `Node.RequestOptions`
|
|
4293
4320
|
|
|
4294
4321
|
</dd>
|
|
@@ -4300,7 +4327,7 @@ await client.graph.node.getByGroupId("group_id");
|
|
|
4300
4327
|
</dl>
|
|
4301
4328
|
</details>
|
|
4302
4329
|
|
|
4303
|
-
<details><summary><code>client.graph.node.<a href="/src/api/resources/graph/resources/node/client/Client.ts">getByUserId</a>(userId) -> Zep.EntityNode[]</code></summary>
|
|
4330
|
+
<details><summary><code>client.graph.node.<a href="/src/api/resources/graph/resources/node/client/Client.ts">getByUserId</a>(userId, { ...params }) -> Zep.EntityNode[]</code></summary>
|
|
4304
4331
|
<dl>
|
|
4305
4332
|
<dd>
|
|
4306
4333
|
|
|
@@ -4328,7 +4355,7 @@ Returns all nodes for a user
|
|
|
4328
4355
|
<dd>
|
|
4329
4356
|
|
|
4330
4357
|
```typescript
|
|
4331
|
-
await client.graph.node.getByUserId("user_id");
|
|
4358
|
+
await client.graph.node.getByUserId("user_id", {});
|
|
4332
4359
|
```
|
|
4333
4360
|
|
|
4334
4361
|
</dd>
|
|
@@ -4352,6 +4379,14 @@ await client.graph.node.getByUserId("user_id");
|
|
|
4352
4379
|
<dl>
|
|
4353
4380
|
<dd>
|
|
4354
4381
|
|
|
4382
|
+
**request:** `Zep.GraphNodesRequest`
|
|
4383
|
+
|
|
4384
|
+
</dd>
|
|
4385
|
+
</dl>
|
|
4386
|
+
|
|
4387
|
+
<dl>
|
|
4388
|
+
<dd>
|
|
4389
|
+
|
|
4355
4390
|
**requestOptions:** `Node.RequestOptions`
|
|
4356
4391
|
|
|
4357
4392
|
</dd>
|
|
@@ -8,9 +8,10 @@ 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
|
-
data
|
|
11
|
+
data: string;
|
|
12
12
|
group_id?: string | null;
|
|
13
|
-
|
|
13
|
+
source_description?: string | null;
|
|
14
|
+
type: GraphDataType.Raw;
|
|
14
15
|
user_id?: string | null;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
@@ -40,8 +40,9 @@ 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
|
-
data: core.serialization.string()
|
|
43
|
+
data: core.serialization.string(),
|
|
44
44
|
groupId: core.serialization.property("group_id", core.serialization.string().optional()),
|
|
45
|
-
|
|
45
|
+
sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()),
|
|
46
|
+
type: GraphDataType_1.GraphDataType,
|
|
46
47
|
userId: core.serialization.property("user_id", core.serialization.string().optional()),
|
|
47
48
|
});
|
|
@@ -42,7 +42,6 @@ const GraphDataType_1 = require("./GraphDataType");
|
|
|
42
42
|
exports.Episode = core.serialization.object({
|
|
43
43
|
content: core.serialization.string(),
|
|
44
44
|
createdAt: core.serialization.property("created_at", core.serialization.string()),
|
|
45
|
-
name: core.serialization.string().optional(),
|
|
46
45
|
processed: core.serialization.boolean().optional(),
|
|
47
46
|
source: GraphDataType_1.GraphDataType.optional(),
|
|
48
47
|
sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()),
|
|
@@ -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 GraphEdgesRequest: core.serialization.ObjectSchema<serializers.GraphEdgesRequest.Raw, Zep.GraphEdgesRequest>;
|
|
8
|
+
export declare namespace GraphEdgesRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
limit?: number | null;
|
|
11
|
+
uuid_cursor?: 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.GraphEdgesRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.GraphEdgesRequest = core.serialization.object({
|
|
42
|
+
limit: core.serialization.number().optional(),
|
|
43
|
+
uuidCursor: core.serialization.property("uuid_cursor", core.serialization.string().optional()),
|
|
44
|
+
});
|
|
@@ -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 GraphNodesRequest: core.serialization.ObjectSchema<serializers.GraphNodesRequest.Raw, Zep.GraphNodesRequest>;
|
|
8
|
+
export declare namespace GraphNodesRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
limit?: number | null;
|
|
11
|
+
uuid_cursor?: 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.GraphNodesRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.GraphNodesRequest = core.serialization.object({
|
|
42
|
+
limit: core.serialization.number().optional(),
|
|
43
|
+
uuidCursor: core.serialization.property("uuid_cursor", core.serialization.string().optional()),
|
|
44
|
+
});
|
|
@@ -13,8 +13,10 @@ export * from "./Fact";
|
|
|
13
13
|
export * from "./FactRatingInstruction";
|
|
14
14
|
export * from "./FactResponse";
|
|
15
15
|
export * from "./FactsResponse";
|
|
16
|
+
export * from "./GraphEdgesRequest";
|
|
16
17
|
export * from "./Episode";
|
|
17
18
|
export * from "./EpisodeResponse";
|
|
19
|
+
export * from "./GraphNodesRequest";
|
|
18
20
|
export * from "./Group";
|
|
19
21
|
export * from "./GroupListResponse";
|
|
20
22
|
export * from "./Memory";
|
|
@@ -29,8 +29,10 @@ __exportStar(require("./Fact"), exports);
|
|
|
29
29
|
__exportStar(require("./FactRatingInstruction"), exports);
|
|
30
30
|
__exportStar(require("./FactResponse"), exports);
|
|
31
31
|
__exportStar(require("./FactsResponse"), exports);
|
|
32
|
+
__exportStar(require("./GraphEdgesRequest"), exports);
|
|
32
33
|
__exportStar(require("./Episode"), exports);
|
|
33
34
|
__exportStar(require("./EpisodeResponse"), exports);
|
|
35
|
+
__exportStar(require("./GraphNodesRequest"), exports);
|
|
34
36
|
__exportStar(require("./Group"), exports);
|
|
35
37
|
__exportStar(require("./GroupListResponse"), exports);
|
|
36
38
|
__exportStar(require("./Memory"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.10.1";
|
package/version.js
CHANGED