@getzep/zep-cloud 2.3.0 → 2.4.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 +2 -2
- package/api/resources/graph/resources/edge/client/Client.js +4 -4
- package/api/resources/graph/resources/episode/client/Client.d.ts +14 -0
- package/api/resources/graph/resources/episode/client/Client.js +86 -3
- package/api/resources/graph/resources/node/client/Client.js +3 -3
- package/api/resources/group/client/Client.d.ts +39 -0
- package/api/resources/group/client/Client.js +233 -2
- package/api/resources/group/client/requests/CreateGroupRequest.d.ts +1 -1
- package/api/resources/group/client/requests/GetGroupsOrderedRequest.d.ts +17 -0
- package/api/resources/group/client/requests/index.d.ts +1 -0
- package/api/resources/memory/client/Client.js +22 -22
- package/api/resources/user/client/Client.d.ts +13 -0
- package/api/resources/user/client/Client.js +81 -7
- package/api/types/Group.d.ts +3 -0
- package/api/types/GroupListResponse.d.ts +9 -0
- package/api/types/Memory.d.ts +4 -1
- package/api/types/Session.d.ts +1 -1
- package/api/types/UserNodeResponse.d.ts +7 -0
- package/api/types/index.d.ts +3 -3
- package/api/types/index.js +3 -3
- package/dist/api/resources/document/client/Client.js +13 -13
- package/dist/api/resources/graph/client/Client.js +2 -2
- package/dist/api/resources/graph/resources/edge/client/Client.js +4 -4
- package/dist/api/resources/graph/resources/episode/client/Client.d.ts +14 -0
- package/dist/api/resources/graph/resources/episode/client/Client.js +86 -3
- package/dist/api/resources/graph/resources/node/client/Client.js +3 -3
- package/dist/api/resources/group/client/Client.d.ts +39 -0
- package/dist/api/resources/group/client/Client.js +233 -2
- package/dist/api/resources/group/client/requests/CreateGroupRequest.d.ts +1 -1
- package/dist/api/resources/group/client/requests/GetGroupsOrderedRequest.d.ts +17 -0
- package/dist/api/resources/group/client/requests/index.d.ts +1 -0
- package/dist/api/resources/memory/client/Client.js +22 -22
- package/dist/api/resources/user/client/Client.d.ts +13 -0
- package/dist/api/resources/user/client/Client.js +81 -7
- package/dist/api/types/Group.d.ts +3 -0
- package/dist/api/types/GroupListResponse.d.ts +9 -0
- package/dist/api/types/GroupListResponse.js +5 -0
- package/dist/api/types/Memory.d.ts +4 -1
- package/dist/api/types/Session.d.ts +1 -1
- package/dist/api/types/UserNodeResponse.d.ts +7 -0
- package/dist/api/types/UserNodeResponse.js +5 -0
- package/dist/api/types/index.d.ts +3 -3
- package/dist/api/types/index.js +3 -3
- package/dist/serialization/resources/group/client/requests/CreateGroupRequest.d.ts +2 -2
- package/dist/serialization/resources/group/client/requests/CreateGroupRequest.js +2 -2
- package/dist/serialization/types/Group.d.ts +3 -0
- package/dist/serialization/types/Group.js +3 -0
- package/dist/serialization/types/GroupListResponse.d.ts +15 -0
- package/{serialization/types/ApidataFactRatingInstruction.js → dist/serialization/types/GroupListResponse.js} +6 -5
- package/dist/serialization/types/Session.d.ts +2 -2
- package/dist/serialization/types/Session.js +2 -2
- package/dist/serialization/types/UserNodeResponse.d.ts +13 -0
- package/{serialization/types/ApidataFactRatingExamples.js → dist/serialization/types/UserNodeResponse.js} +4 -5
- package/dist/serialization/types/index.d.ts +3 -3
- package/dist/serialization/types/index.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/examples/graph/user_graph_example.ts +13 -0
- package/jest.config.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +315 -0
- package/serialization/resources/group/client/requests/CreateGroupRequest.d.ts +2 -2
- package/serialization/resources/group/client/requests/CreateGroupRequest.js +2 -2
- package/serialization/types/Group.d.ts +3 -0
- package/serialization/types/Group.js +3 -0
- package/serialization/types/GroupListResponse.d.ts +15 -0
- package/{dist/serialization/types/ApidataFactRatingInstruction.js → serialization/types/GroupListResponse.js} +6 -5
- package/serialization/types/Session.d.ts +2 -2
- package/serialization/types/Session.js +2 -2
- package/serialization/types/UserNodeResponse.d.ts +13 -0
- package/{dist/serialization/types/ApidataFactRatingExamples.js → serialization/types/UserNodeResponse.js} +4 -5
- package/serialization/types/index.d.ts +3 -3
- package/serialization/types/index.js +3 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/ApidataFactRatingExamples.d.ts +0 -8
- package/api/types/ApidataFactRatingInstruction.d.ts +0 -21
- package/dist/api/types/ApidataFactRatingExamples.d.ts +0 -8
- package/dist/api/types/ApidataFactRatingInstruction.d.ts +0 -21
- package/dist/serialization/types/ApidataFactRatingExamples.d.ts +0 -14
- package/dist/serialization/types/ApidataFactRatingInstruction.d.ts +0 -14
- package/serialization/types/ApidataFactRatingExamples.d.ts +0 -14
- package/serialization/types/ApidataFactRatingInstruction.d.ts +0 -14
- /package/api/{types/ApidataFactRatingExamples.js → resources/group/client/requests/GetGroupsOrderedRequest.js} +0 -0
- /package/api/types/{ApidataFactRatingInstruction.js → GroupListResponse.js} +0 -0
- /package/{dist/api/types/ApidataFactRatingExamples.js → api/types/UserNodeResponse.js} +0 -0
- /package/dist/api/{types/ApidataFactRatingInstruction.js → resources/group/client/requests/GetGroupsOrderedRequest.js} +0 -0
|
@@ -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
|
+
import { Group } from "./Group";
|
|
8
|
+
export declare const GroupListResponse: core.serialization.ObjectSchema<serializers.GroupListResponse.Raw, Zep.GroupListResponse>;
|
|
9
|
+
export declare namespace GroupListResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
groups?: Group.Raw[] | null;
|
|
12
|
+
row_count?: number | null;
|
|
13
|
+
total_count?: number | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -36,10 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.GroupListResponse = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
const
|
|
42
|
-
exports.
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
const Group_1 = require("./Group");
|
|
42
|
+
exports.GroupListResponse = core.serialization.object({
|
|
43
|
+
groups: core.serialization.list(Group_1.Group).optional(),
|
|
44
|
+
rowCount: core.serialization.property("row_count", core.serialization.number().optional()),
|
|
45
|
+
totalCount: core.serialization.property("total_count", core.serialization.number().optional()),
|
|
45
46
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Zep from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import {
|
|
7
|
+
import { FactRatingInstruction } from "./FactRatingInstruction";
|
|
8
8
|
export declare const Session: core.serialization.ObjectSchema<serializers.Session.Raw, Zep.Session>;
|
|
9
9
|
export declare namespace Session {
|
|
10
10
|
interface Raw {
|
|
@@ -12,7 +12,7 @@ export declare namespace Session {
|
|
|
12
12
|
created_at?: string | null;
|
|
13
13
|
deleted_at?: string | null;
|
|
14
14
|
ended_at?: string | null;
|
|
15
|
-
fact_rating_instruction?:
|
|
15
|
+
fact_rating_instruction?: FactRatingInstruction.Raw | null;
|
|
16
16
|
facts?: string[] | null;
|
|
17
17
|
id?: number | null;
|
|
18
18
|
metadata?: Record<string, unknown> | null;
|
|
@@ -38,13 +38,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Session = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
const
|
|
41
|
+
const FactRatingInstruction_1 = require("./FactRatingInstruction");
|
|
42
42
|
exports.Session = core.serialization.object({
|
|
43
43
|
classifications: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
44
44
|
createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
|
|
45
45
|
deletedAt: core.serialization.property("deleted_at", core.serialization.string().optional()),
|
|
46
46
|
endedAt: core.serialization.property("ended_at", core.serialization.string().optional()),
|
|
47
|
-
factRatingInstruction: core.serialization.property("fact_rating_instruction",
|
|
47
|
+
factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_1.FactRatingInstruction.optional()),
|
|
48
48
|
facts: core.serialization.list(core.serialization.string()).optional(),
|
|
49
49
|
id: core.serialization.number().optional(),
|
|
50
50
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).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
|
+
import { EntityNode } from "./EntityNode";
|
|
8
|
+
export declare const UserNodeResponse: core.serialization.ObjectSchema<serializers.UserNodeResponse.Raw, Zep.UserNodeResponse>;
|
|
9
|
+
export declare namespace UserNodeResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
node?: EntityNode.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -36,10 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.UserNodeResponse = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
medium: core.serialization.string().optional(),
|
|
41
|
+
const EntityNode_1 = require("./EntityNode");
|
|
42
|
+
exports.UserNodeResponse = core.serialization.object({
|
|
43
|
+
node: EntityNode_1.EntityNode.optional(),
|
|
45
44
|
});
|
|
@@ -7,13 +7,13 @@ export * from "./ApidataDocumentWithScore";
|
|
|
7
7
|
export * from "./EndSessionResponse";
|
|
8
8
|
export * from "./EndSessionsResponse";
|
|
9
9
|
export * from "./Fact";
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./ApidataFactRatingInstruction";
|
|
10
|
+
export * from "./FactRatingInstruction";
|
|
12
11
|
export * from "./FactResponse";
|
|
13
12
|
export * from "./FactsResponse";
|
|
14
13
|
export * from "./Episode";
|
|
15
14
|
export * from "./EpisodeResponse";
|
|
16
15
|
export * from "./Group";
|
|
16
|
+
export * from "./GroupListResponse";
|
|
17
17
|
export * from "./Memory";
|
|
18
18
|
export * from "./MemorySearchResult";
|
|
19
19
|
export * from "./Message";
|
|
@@ -31,6 +31,7 @@ export * from "./Summary";
|
|
|
31
31
|
export * from "./SummaryListResponse";
|
|
32
32
|
export * from "./User";
|
|
33
33
|
export * from "./UserListResponse";
|
|
34
|
+
export * from "./UserNodeResponse";
|
|
34
35
|
export * from "./EntityEdge";
|
|
35
36
|
export * from "./EntityNode";
|
|
36
37
|
export * from "./GraphSearchResults";
|
|
@@ -39,7 +40,6 @@ export * from "./Reranker";
|
|
|
39
40
|
export * from "./ClassifySessionRequest";
|
|
40
41
|
export * from "./CreateDocumentRequest";
|
|
41
42
|
export * from "./FactRatingExamples";
|
|
42
|
-
export * from "./FactRatingInstruction";
|
|
43
43
|
export * from "./GraphDataType";
|
|
44
44
|
export * from "./SearchScope";
|
|
45
45
|
export * from "./SearchType";
|
|
@@ -23,13 +23,13 @@ __exportStar(require("./ApidataDocumentWithScore"), exports);
|
|
|
23
23
|
__exportStar(require("./EndSessionResponse"), exports);
|
|
24
24
|
__exportStar(require("./EndSessionsResponse"), exports);
|
|
25
25
|
__exportStar(require("./Fact"), exports);
|
|
26
|
-
__exportStar(require("./
|
|
27
|
-
__exportStar(require("./ApidataFactRatingInstruction"), exports);
|
|
26
|
+
__exportStar(require("./FactRatingInstruction"), exports);
|
|
28
27
|
__exportStar(require("./FactResponse"), exports);
|
|
29
28
|
__exportStar(require("./FactsResponse"), exports);
|
|
30
29
|
__exportStar(require("./Episode"), exports);
|
|
31
30
|
__exportStar(require("./EpisodeResponse"), exports);
|
|
32
31
|
__exportStar(require("./Group"), exports);
|
|
32
|
+
__exportStar(require("./GroupListResponse"), exports);
|
|
33
33
|
__exportStar(require("./Memory"), exports);
|
|
34
34
|
__exportStar(require("./MemorySearchResult"), exports);
|
|
35
35
|
__exportStar(require("./Message"), exports);
|
|
@@ -47,6 +47,7 @@ __exportStar(require("./Summary"), exports);
|
|
|
47
47
|
__exportStar(require("./SummaryListResponse"), exports);
|
|
48
48
|
__exportStar(require("./User"), exports);
|
|
49
49
|
__exportStar(require("./UserListResponse"), exports);
|
|
50
|
+
__exportStar(require("./UserNodeResponse"), exports);
|
|
50
51
|
__exportStar(require("./EntityEdge"), exports);
|
|
51
52
|
__exportStar(require("./EntityNode"), exports);
|
|
52
53
|
__exportStar(require("./GraphSearchResults"), exports);
|
|
@@ -55,7 +56,6 @@ __exportStar(require("./Reranker"), exports);
|
|
|
55
56
|
__exportStar(require("./ClassifySessionRequest"), exports);
|
|
56
57
|
__exportStar(require("./CreateDocumentRequest"), exports);
|
|
57
58
|
__exportStar(require("./FactRatingExamples"), exports);
|
|
58
|
-
__exportStar(require("./FactRatingInstruction"), exports);
|
|
59
59
|
__exportStar(require("./GraphDataType"), exports);
|
|
60
60
|
__exportStar(require("./SearchScope"), exports);
|
|
61
61
|
__exportStar(require("./SearchType"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.4.0";
|
package/dist/version.js
CHANGED
|
@@ -153,6 +153,19 @@ async function main() {
|
|
|
153
153
|
console.log("Getting all user facts");
|
|
154
154
|
const userFacts = await client.user.getFacts(userId);
|
|
155
155
|
console.log(userFacts.facts);
|
|
156
|
+
|
|
157
|
+
const {node: userNode} = await client.user.getNode(userId)
|
|
158
|
+
if (userNode) {
|
|
159
|
+
console.log("User node: ", userNode)
|
|
160
|
+
const userCenteredSearch = await client.graph.search({
|
|
161
|
+
userId,
|
|
162
|
+
query: "User preferences",
|
|
163
|
+
centerNodeUuid: userNode.uuid,
|
|
164
|
+
reranker: "node_distance",
|
|
165
|
+
})
|
|
166
|
+
console.log("User centered search results", userCenteredSearch.edges)
|
|
167
|
+
}
|
|
168
|
+
|
|
156
169
|
}
|
|
157
170
|
|
|
158
171
|
main().catch(console.error);
|
package/jest.config.mjs
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2634,6 +2634,132 @@ await client.group.add({
|
|
|
2634
2634
|
</dl>
|
|
2635
2635
|
</details>
|
|
2636
2636
|
|
|
2637
|
+
<details><summary><code>client.group.<a href="/src/api/resources/group/client/Client.ts">listAllGroups</a>({ ...params }) -> Zep.GroupListResponse</code></summary>
|
|
2638
|
+
<dl>
|
|
2639
|
+
<dd>
|
|
2640
|
+
|
|
2641
|
+
#### 📝 Description
|
|
2642
|
+
|
|
2643
|
+
<dl>
|
|
2644
|
+
<dd>
|
|
2645
|
+
|
|
2646
|
+
<dl>
|
|
2647
|
+
<dd>
|
|
2648
|
+
|
|
2649
|
+
List all groups with pagination.
|
|
2650
|
+
|
|
2651
|
+
</dd>
|
|
2652
|
+
</dl>
|
|
2653
|
+
</dd>
|
|
2654
|
+
</dl>
|
|
2655
|
+
|
|
2656
|
+
#### 🔌 Usage
|
|
2657
|
+
|
|
2658
|
+
<dl>
|
|
2659
|
+
<dd>
|
|
2660
|
+
|
|
2661
|
+
<dl>
|
|
2662
|
+
<dd>
|
|
2663
|
+
|
|
2664
|
+
```typescript
|
|
2665
|
+
await client.group.listAllGroups();
|
|
2666
|
+
```
|
|
2667
|
+
|
|
2668
|
+
</dd>
|
|
2669
|
+
</dl>
|
|
2670
|
+
</dd>
|
|
2671
|
+
</dl>
|
|
2672
|
+
|
|
2673
|
+
#### ⚙️ Parameters
|
|
2674
|
+
|
|
2675
|
+
<dl>
|
|
2676
|
+
<dd>
|
|
2677
|
+
|
|
2678
|
+
<dl>
|
|
2679
|
+
<dd>
|
|
2680
|
+
|
|
2681
|
+
**request:** `Zep.GetGroupsOrderedRequest`
|
|
2682
|
+
|
|
2683
|
+
</dd>
|
|
2684
|
+
</dl>
|
|
2685
|
+
|
|
2686
|
+
<dl>
|
|
2687
|
+
<dd>
|
|
2688
|
+
|
|
2689
|
+
**requestOptions:** `Group.RequestOptions`
|
|
2690
|
+
|
|
2691
|
+
</dd>
|
|
2692
|
+
</dl>
|
|
2693
|
+
</dd>
|
|
2694
|
+
</dl>
|
|
2695
|
+
|
|
2696
|
+
</dd>
|
|
2697
|
+
</dl>
|
|
2698
|
+
</details>
|
|
2699
|
+
|
|
2700
|
+
<details><summary><code>client.group.<a href="/src/api/resources/group/client/Client.ts">getAGroup</a>(groupId) -> Zep.Group</code></summary>
|
|
2701
|
+
<dl>
|
|
2702
|
+
<dd>
|
|
2703
|
+
|
|
2704
|
+
#### 📝 Description
|
|
2705
|
+
|
|
2706
|
+
<dl>
|
|
2707
|
+
<dd>
|
|
2708
|
+
|
|
2709
|
+
<dl>
|
|
2710
|
+
<dd>
|
|
2711
|
+
|
|
2712
|
+
Get a group.
|
|
2713
|
+
|
|
2714
|
+
</dd>
|
|
2715
|
+
</dl>
|
|
2716
|
+
</dd>
|
|
2717
|
+
</dl>
|
|
2718
|
+
|
|
2719
|
+
#### 🔌 Usage
|
|
2720
|
+
|
|
2721
|
+
<dl>
|
|
2722
|
+
<dd>
|
|
2723
|
+
|
|
2724
|
+
<dl>
|
|
2725
|
+
<dd>
|
|
2726
|
+
|
|
2727
|
+
```typescript
|
|
2728
|
+
await client.group.getAGroup("groupId");
|
|
2729
|
+
```
|
|
2730
|
+
|
|
2731
|
+
</dd>
|
|
2732
|
+
</dl>
|
|
2733
|
+
</dd>
|
|
2734
|
+
</dl>
|
|
2735
|
+
|
|
2736
|
+
#### ⚙️ Parameters
|
|
2737
|
+
|
|
2738
|
+
<dl>
|
|
2739
|
+
<dd>
|
|
2740
|
+
|
|
2741
|
+
<dl>
|
|
2742
|
+
<dd>
|
|
2743
|
+
|
|
2744
|
+
**groupId:** `string` — The group_id of the group to get.
|
|
2745
|
+
|
|
2746
|
+
</dd>
|
|
2747
|
+
</dl>
|
|
2748
|
+
|
|
2749
|
+
<dl>
|
|
2750
|
+
<dd>
|
|
2751
|
+
|
|
2752
|
+
**requestOptions:** `Group.RequestOptions`
|
|
2753
|
+
|
|
2754
|
+
</dd>
|
|
2755
|
+
</dl>
|
|
2756
|
+
</dd>
|
|
2757
|
+
</dl>
|
|
2758
|
+
|
|
2759
|
+
</dd>
|
|
2760
|
+
</dl>
|
|
2761
|
+
</details>
|
|
2762
|
+
|
|
2637
2763
|
<details><summary><code>client.group.<a href="/src/api/resources/group/client/Client.ts">delete</a>(groupId) -> Zep.SuccessResponse</code></summary>
|
|
2638
2764
|
<dl>
|
|
2639
2765
|
<dd>
|
|
@@ -2697,6 +2823,69 @@ await client.group.delete("groupId");
|
|
|
2697
2823
|
</dl>
|
|
2698
2824
|
</details>
|
|
2699
2825
|
|
|
2826
|
+
<details><summary><code>client.group.<a href="/src/api/resources/group/client/Client.ts">getFacts</a>(groupId) -> Zep.FactsResponse</code></summary>
|
|
2827
|
+
<dl>
|
|
2828
|
+
<dd>
|
|
2829
|
+
|
|
2830
|
+
#### 📝 Description
|
|
2831
|
+
|
|
2832
|
+
<dl>
|
|
2833
|
+
<dd>
|
|
2834
|
+
|
|
2835
|
+
<dl>
|
|
2836
|
+
<dd>
|
|
2837
|
+
|
|
2838
|
+
Get group facts.
|
|
2839
|
+
|
|
2840
|
+
</dd>
|
|
2841
|
+
</dl>
|
|
2842
|
+
</dd>
|
|
2843
|
+
</dl>
|
|
2844
|
+
|
|
2845
|
+
#### 🔌 Usage
|
|
2846
|
+
|
|
2847
|
+
<dl>
|
|
2848
|
+
<dd>
|
|
2849
|
+
|
|
2850
|
+
<dl>
|
|
2851
|
+
<dd>
|
|
2852
|
+
|
|
2853
|
+
```typescript
|
|
2854
|
+
await client.group.getFacts("groupId");
|
|
2855
|
+
```
|
|
2856
|
+
|
|
2857
|
+
</dd>
|
|
2858
|
+
</dl>
|
|
2859
|
+
</dd>
|
|
2860
|
+
</dl>
|
|
2861
|
+
|
|
2862
|
+
#### ⚙️ Parameters
|
|
2863
|
+
|
|
2864
|
+
<dl>
|
|
2865
|
+
<dd>
|
|
2866
|
+
|
|
2867
|
+
<dl>
|
|
2868
|
+
<dd>
|
|
2869
|
+
|
|
2870
|
+
**groupId:** `string` — The group_id of the group to get.
|
|
2871
|
+
|
|
2872
|
+
</dd>
|
|
2873
|
+
</dl>
|
|
2874
|
+
|
|
2875
|
+
<dl>
|
|
2876
|
+
<dd>
|
|
2877
|
+
|
|
2878
|
+
**requestOptions:** `Group.RequestOptions`
|
|
2879
|
+
|
|
2880
|
+
</dd>
|
|
2881
|
+
</dl>
|
|
2882
|
+
</dd>
|
|
2883
|
+
</dl>
|
|
2884
|
+
|
|
2885
|
+
</dd>
|
|
2886
|
+
</dl>
|
|
2887
|
+
</details>
|
|
2888
|
+
|
|
2700
2889
|
## User
|
|
2701
2890
|
|
|
2702
2891
|
<details><summary><code>client.user.<a href="/src/api/resources/user/client/Client.ts">add</a>({ ...params }) -> Zep.User</code></summary>
|
|
@@ -3085,6 +3274,69 @@ await client.user.getFacts("userId");
|
|
|
3085
3274
|
</dl>
|
|
3086
3275
|
</details>
|
|
3087
3276
|
|
|
3277
|
+
<details><summary><code>client.user.<a href="/src/api/resources/user/client/Client.ts">getNode</a>(userId) -> Zep.UserNodeResponse</code></summary>
|
|
3278
|
+
<dl>
|
|
3279
|
+
<dd>
|
|
3280
|
+
|
|
3281
|
+
#### 📝 Description
|
|
3282
|
+
|
|
3283
|
+
<dl>
|
|
3284
|
+
<dd>
|
|
3285
|
+
|
|
3286
|
+
<dl>
|
|
3287
|
+
<dd>
|
|
3288
|
+
|
|
3289
|
+
Get user node.
|
|
3290
|
+
|
|
3291
|
+
</dd>
|
|
3292
|
+
</dl>
|
|
3293
|
+
</dd>
|
|
3294
|
+
</dl>
|
|
3295
|
+
|
|
3296
|
+
#### 🔌 Usage
|
|
3297
|
+
|
|
3298
|
+
<dl>
|
|
3299
|
+
<dd>
|
|
3300
|
+
|
|
3301
|
+
<dl>
|
|
3302
|
+
<dd>
|
|
3303
|
+
|
|
3304
|
+
```typescript
|
|
3305
|
+
await client.user.getNode("userId");
|
|
3306
|
+
```
|
|
3307
|
+
|
|
3308
|
+
</dd>
|
|
3309
|
+
</dl>
|
|
3310
|
+
</dd>
|
|
3311
|
+
</dl>
|
|
3312
|
+
|
|
3313
|
+
#### ⚙️ Parameters
|
|
3314
|
+
|
|
3315
|
+
<dl>
|
|
3316
|
+
<dd>
|
|
3317
|
+
|
|
3318
|
+
<dl>
|
|
3319
|
+
<dd>
|
|
3320
|
+
|
|
3321
|
+
**userId:** `string` — The user_id of the user to get the node for.
|
|
3322
|
+
|
|
3323
|
+
</dd>
|
|
3324
|
+
</dl>
|
|
3325
|
+
|
|
3326
|
+
<dl>
|
|
3327
|
+
<dd>
|
|
3328
|
+
|
|
3329
|
+
**requestOptions:** `User.RequestOptions`
|
|
3330
|
+
|
|
3331
|
+
</dd>
|
|
3332
|
+
</dl>
|
|
3333
|
+
</dd>
|
|
3334
|
+
</dl>
|
|
3335
|
+
|
|
3336
|
+
</dd>
|
|
3337
|
+
</dl>
|
|
3338
|
+
</details>
|
|
3339
|
+
|
|
3088
3340
|
<details><summary><code>client.user.<a href="/src/api/resources/user/client/Client.ts">getSessions</a>(userId) -> Zep.Session[]</code></summary>
|
|
3089
3341
|
<dl>
|
|
3090
3342
|
<dd>
|
|
@@ -3609,6 +3861,69 @@ await client.graph.episode.get("uuid");
|
|
|
3609
3861
|
</dl>
|
|
3610
3862
|
</details>
|
|
3611
3863
|
|
|
3864
|
+
<details><summary><code>client.graph.episode.<a href="/src/api/resources/graph/resources/episode/client/Client.ts">delete</a>(uuid) -> Zep.SuccessResponse</code></summary>
|
|
3865
|
+
<dl>
|
|
3866
|
+
<dd>
|
|
3867
|
+
|
|
3868
|
+
#### 📝 Description
|
|
3869
|
+
|
|
3870
|
+
<dl>
|
|
3871
|
+
<dd>
|
|
3872
|
+
|
|
3873
|
+
<dl>
|
|
3874
|
+
<dd>
|
|
3875
|
+
|
|
3876
|
+
Delete an episode by its UUID
|
|
3877
|
+
|
|
3878
|
+
</dd>
|
|
3879
|
+
</dl>
|
|
3880
|
+
</dd>
|
|
3881
|
+
</dl>
|
|
3882
|
+
|
|
3883
|
+
#### 🔌 Usage
|
|
3884
|
+
|
|
3885
|
+
<dl>
|
|
3886
|
+
<dd>
|
|
3887
|
+
|
|
3888
|
+
<dl>
|
|
3889
|
+
<dd>
|
|
3890
|
+
|
|
3891
|
+
```typescript
|
|
3892
|
+
await client.graph.episode.delete("uuid");
|
|
3893
|
+
```
|
|
3894
|
+
|
|
3895
|
+
</dd>
|
|
3896
|
+
</dl>
|
|
3897
|
+
</dd>
|
|
3898
|
+
</dl>
|
|
3899
|
+
|
|
3900
|
+
#### ⚙️ Parameters
|
|
3901
|
+
|
|
3902
|
+
<dl>
|
|
3903
|
+
<dd>
|
|
3904
|
+
|
|
3905
|
+
<dl>
|
|
3906
|
+
<dd>
|
|
3907
|
+
|
|
3908
|
+
**uuid:** `string` — Episode UUID
|
|
3909
|
+
|
|
3910
|
+
</dd>
|
|
3911
|
+
</dl>
|
|
3912
|
+
|
|
3913
|
+
<dl>
|
|
3914
|
+
<dd>
|
|
3915
|
+
|
|
3916
|
+
**requestOptions:** `Episode.RequestOptions`
|
|
3917
|
+
|
|
3918
|
+
</dd>
|
|
3919
|
+
</dl>
|
|
3920
|
+
</dd>
|
|
3921
|
+
</dl>
|
|
3922
|
+
|
|
3923
|
+
</dd>
|
|
3924
|
+
</dl>
|
|
3925
|
+
</details>
|
|
3926
|
+
|
|
3612
3927
|
## Graph Node
|
|
3613
3928
|
|
|
3614
3929
|
<details><summary><code>client.graph.node.<a href="/src/api/resources/graph/resources/node/client/Client.ts">getByGroupId</a>(groupId) -> Zep.EntityNode[]</code></summary>
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
import * as serializers from "../../../../index";
|
|
5
5
|
import * as Zep from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
|
-
import {
|
|
7
|
+
import { FactRatingInstruction } from "../../../../types/FactRatingInstruction";
|
|
8
8
|
export declare const CreateGroupRequest: core.serialization.Schema<serializers.CreateGroupRequest.Raw, Zep.CreateGroupRequest>;
|
|
9
9
|
export declare namespace CreateGroupRequest {
|
|
10
10
|
interface Raw {
|
|
11
11
|
description?: string | null;
|
|
12
|
-
fact_rating_instruction?:
|
|
12
|
+
fact_rating_instruction?: FactRatingInstruction.Raw | null;
|
|
13
13
|
group_id: string;
|
|
14
14
|
name?: string | null;
|
|
15
15
|
}
|
|
@@ -38,10 +38,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.CreateGroupRequest = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
|
-
const
|
|
41
|
+
const FactRatingInstruction_1 = require("../../../../types/FactRatingInstruction");
|
|
42
42
|
exports.CreateGroupRequest = core.serialization.object({
|
|
43
43
|
description: core.serialization.string().optional(),
|
|
44
|
-
factRatingInstruction: core.serialization.property("fact_rating_instruction",
|
|
44
|
+
factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_1.FactRatingInstruction.optional()),
|
|
45
45
|
groupId: core.serialization.property("group_id", core.serialization.string()),
|
|
46
46
|
name: core.serialization.string().optional(),
|
|
47
47
|
});
|
|
@@ -4,12 +4,15 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Zep from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { FactRatingInstruction } from "./FactRatingInstruction";
|
|
7
8
|
export declare const Group: core.serialization.ObjectSchema<serializers.Group.Raw, Zep.Group>;
|
|
8
9
|
export declare namespace Group {
|
|
9
10
|
interface Raw {
|
|
10
11
|
created_at?: string | null;
|
|
11
12
|
description?: string | null;
|
|
12
13
|
external_id?: string | null;
|
|
14
|
+
fact_rating_instruction?: FactRatingInstruction.Raw | null;
|
|
15
|
+
group_id?: string | null;
|
|
13
16
|
id?: number | null;
|
|
14
17
|
name?: string | null;
|
|
15
18
|
project_uuid?: string | null;
|
|
@@ -38,10 +38,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Group = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
+
const FactRatingInstruction_1 = require("./FactRatingInstruction");
|
|
41
42
|
exports.Group = core.serialization.object({
|
|
42
43
|
createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
|
|
43
44
|
description: core.serialization.string().optional(),
|
|
44
45
|
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
46
|
+
factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_1.FactRatingInstruction.optional()),
|
|
47
|
+
groupId: core.serialization.property("group_id", core.serialization.string().optional()),
|
|
45
48
|
id: core.serialization.number().optional(),
|
|
46
49
|
name: core.serialization.string().optional(),
|
|
47
50
|
projectUuid: core.serialization.property("project_uuid", core.serialization.string().optional()),
|
|
@@ -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
|
+
import { Group } from "./Group";
|
|
8
|
+
export declare const GroupListResponse: core.serialization.ObjectSchema<serializers.GroupListResponse.Raw, Zep.GroupListResponse>;
|
|
9
|
+
export declare namespace GroupListResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
groups?: Group.Raw[] | null;
|
|
12
|
+
row_count?: number | null;
|
|
13
|
+
total_count?: number | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -36,10 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.GroupListResponse = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
const
|
|
42
|
-
exports.
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
const Group_1 = require("./Group");
|
|
42
|
+
exports.GroupListResponse = core.serialization.object({
|
|
43
|
+
groups: core.serialization.list(Group_1.Group).optional(),
|
|
44
|
+
rowCount: core.serialization.property("row_count", core.serialization.number().optional()),
|
|
45
|
+
totalCount: core.serialization.property("total_count", core.serialization.number().optional()),
|
|
45
46
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Zep from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import {
|
|
7
|
+
import { FactRatingInstruction } from "./FactRatingInstruction";
|
|
8
8
|
export declare const Session: core.serialization.ObjectSchema<serializers.Session.Raw, Zep.Session>;
|
|
9
9
|
export declare namespace Session {
|
|
10
10
|
interface Raw {
|
|
@@ -12,7 +12,7 @@ export declare namespace Session {
|
|
|
12
12
|
created_at?: string | null;
|
|
13
13
|
deleted_at?: string | null;
|
|
14
14
|
ended_at?: string | null;
|
|
15
|
-
fact_rating_instruction?:
|
|
15
|
+
fact_rating_instruction?: FactRatingInstruction.Raw | null;
|
|
16
16
|
facts?: string[] | null;
|
|
17
17
|
id?: number | null;
|
|
18
18
|
metadata?: Record<string, unknown> | null;
|