@getzep/zep-cloud 2.8.0 → 2.10.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.
- package/api/resources/document/client/Client.js +13 -13
- package/api/resources/graph/client/Client.js +5 -5
- 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 +1 -0
- 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/Message.d.ts +2 -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.js +5 -5
- 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 +1 -0
- 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/Message.d.ts +2 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/types/Episode.d.ts +1 -0
- package/dist/serialization/types/Episode.js +1 -0
- 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/Message.d.ts +1 -0
- package/dist/serialization/types/Message.js +1 -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 +40 -8
- package/serialization/types/Episode.d.ts +1 -0
- package/serialization/types/Episode.js +1 -0
- 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/Message.d.ts +1 -0
- package/serialization/types/Message.js +1 -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
|
@@ -3650,7 +3650,7 @@ await client.user.getSessions("userId");
|
|
|
3650
3650
|
|
|
3651
3651
|
## Graph Edge
|
|
3652
3652
|
|
|
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>
|
|
3653
|
+
<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
3654
|
<dl>
|
|
3655
3655
|
<dd>
|
|
3656
3656
|
|
|
@@ -3678,7 +3678,7 @@ Returns all edges for a group.
|
|
|
3678
3678
|
<dd>
|
|
3679
3679
|
|
|
3680
3680
|
```typescript
|
|
3681
|
-
await client.graph.edge.getByGroupId("group_id");
|
|
3681
|
+
await client.graph.edge.getByGroupId("group_id", {});
|
|
3682
3682
|
```
|
|
3683
3683
|
|
|
3684
3684
|
</dd>
|
|
@@ -3702,6 +3702,14 @@ await client.graph.edge.getByGroupId("group_id");
|
|
|
3702
3702
|
<dl>
|
|
3703
3703
|
<dd>
|
|
3704
3704
|
|
|
3705
|
+
**request:** `Zep.GraphEdgesRequest`
|
|
3706
|
+
|
|
3707
|
+
</dd>
|
|
3708
|
+
</dl>
|
|
3709
|
+
|
|
3710
|
+
<dl>
|
|
3711
|
+
<dd>
|
|
3712
|
+
|
|
3705
3713
|
**requestOptions:** `Edge.RequestOptions`
|
|
3706
3714
|
|
|
3707
3715
|
</dd>
|
|
@@ -3713,7 +3721,7 @@ await client.graph.edge.getByGroupId("group_id");
|
|
|
3713
3721
|
</dl>
|
|
3714
3722
|
</details>
|
|
3715
3723
|
|
|
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>
|
|
3724
|
+
<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
3725
|
<dl>
|
|
3718
3726
|
<dd>
|
|
3719
3727
|
|
|
@@ -3741,7 +3749,7 @@ Returns all edges for a user.
|
|
|
3741
3749
|
<dd>
|
|
3742
3750
|
|
|
3743
3751
|
```typescript
|
|
3744
|
-
await client.graph.edge.getByUserId("user_id");
|
|
3752
|
+
await client.graph.edge.getByUserId("user_id", {});
|
|
3745
3753
|
```
|
|
3746
3754
|
|
|
3747
3755
|
</dd>
|
|
@@ -3765,6 +3773,14 @@ await client.graph.edge.getByUserId("user_id");
|
|
|
3765
3773
|
<dl>
|
|
3766
3774
|
<dd>
|
|
3767
3775
|
|
|
3776
|
+
**request:** `Zep.GraphEdgesRequest`
|
|
3777
|
+
|
|
3778
|
+
</dd>
|
|
3779
|
+
</dl>
|
|
3780
|
+
|
|
3781
|
+
<dl>
|
|
3782
|
+
<dd>
|
|
3783
|
+
|
|
3768
3784
|
**requestOptions:** `Edge.RequestOptions`
|
|
3769
3785
|
|
|
3770
3786
|
</dd>
|
|
@@ -4237,7 +4253,7 @@ await client.graph.episode.getNodesAndEdges("uuid");
|
|
|
4237
4253
|
|
|
4238
4254
|
## Graph Node
|
|
4239
4255
|
|
|
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>
|
|
4256
|
+
<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
4257
|
<dl>
|
|
4242
4258
|
<dd>
|
|
4243
4259
|
|
|
@@ -4265,7 +4281,7 @@ Returns all nodes for a group.
|
|
|
4265
4281
|
<dd>
|
|
4266
4282
|
|
|
4267
4283
|
```typescript
|
|
4268
|
-
await client.graph.node.getByGroupId("group_id");
|
|
4284
|
+
await client.graph.node.getByGroupId("group_id", {});
|
|
4269
4285
|
```
|
|
4270
4286
|
|
|
4271
4287
|
</dd>
|
|
@@ -4289,6 +4305,14 @@ await client.graph.node.getByGroupId("group_id");
|
|
|
4289
4305
|
<dl>
|
|
4290
4306
|
<dd>
|
|
4291
4307
|
|
|
4308
|
+
**request:** `Zep.GraphNodesRequest`
|
|
4309
|
+
|
|
4310
|
+
</dd>
|
|
4311
|
+
</dl>
|
|
4312
|
+
|
|
4313
|
+
<dl>
|
|
4314
|
+
<dd>
|
|
4315
|
+
|
|
4292
4316
|
**requestOptions:** `Node.RequestOptions`
|
|
4293
4317
|
|
|
4294
4318
|
</dd>
|
|
@@ -4300,7 +4324,7 @@ await client.graph.node.getByGroupId("group_id");
|
|
|
4300
4324
|
</dl>
|
|
4301
4325
|
</details>
|
|
4302
4326
|
|
|
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>
|
|
4327
|
+
<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
4328
|
<dl>
|
|
4305
4329
|
<dd>
|
|
4306
4330
|
|
|
@@ -4328,7 +4352,7 @@ Returns all nodes for a user
|
|
|
4328
4352
|
<dd>
|
|
4329
4353
|
|
|
4330
4354
|
```typescript
|
|
4331
|
-
await client.graph.node.getByUserId("user_id");
|
|
4355
|
+
await client.graph.node.getByUserId("user_id", {});
|
|
4332
4356
|
```
|
|
4333
4357
|
|
|
4334
4358
|
</dd>
|
|
@@ -4352,6 +4376,14 @@ await client.graph.node.getByUserId("user_id");
|
|
|
4352
4376
|
<dl>
|
|
4353
4377
|
<dd>
|
|
4354
4378
|
|
|
4379
|
+
**request:** `Zep.GraphNodesRequest`
|
|
4380
|
+
|
|
4381
|
+
</dd>
|
|
4382
|
+
</dl>
|
|
4383
|
+
|
|
4384
|
+
<dl>
|
|
4385
|
+
<dd>
|
|
4386
|
+
|
|
4355
4387
|
**requestOptions:** `Node.RequestOptions`
|
|
4356
4388
|
|
|
4357
4389
|
</dd>
|
|
@@ -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
|
name: core.serialization.string().optional(),
|
|
46
|
+
processed: core.serialization.boolean().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(),
|
|
@@ -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
|
+
});
|
|
@@ -43,6 +43,7 @@ exports.Message = core.serialization.object({
|
|
|
43
43
|
content: core.serialization.string(),
|
|
44
44
|
createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
|
|
45
45
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
46
|
+
processed: core.serialization.boolean().optional(),
|
|
46
47
|
role: core.serialization.string().optional(),
|
|
47
48
|
roleType: core.serialization.property("role_type", RoleType_1.RoleType),
|
|
48
49
|
tokenCount: core.serialization.property("token_count", core.serialization.number().optional()),
|
|
@@ -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.0";
|
package/version.js
CHANGED