@getzep/zep-cloud 2.10.2 → 2.12.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.d.ts +18 -0
- package/api/resources/graph/client/Client.js +85 -5
- package/api/resources/graph/client/requests/AddDataBatchRequest.d.ts +18 -0
- package/api/resources/graph/client/requests/AddDataBatchRequest.js +5 -0
- package/api/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
- package/api/resources/graph/client/requests/index.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.js +3 -3
- package/api/resources/group/client/Client.js +6 -6
- package/api/resources/memory/client/Client.d.ts +6 -2
- package/api/resources/memory/client/Client.js +29 -25
- 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/EntityNode.d.ts +0 -2
- package/api/types/EpisodeData.d.ts +10 -0
- package/api/types/EpisodeData.js +5 -0
- package/api/types/NewFact.d.ts +1 -1
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/api/resources/document/client/Client.js +13 -13
- package/dist/api/resources/graph/client/Client.d.ts +18 -0
- package/dist/api/resources/graph/client/Client.js +85 -5
- package/dist/api/resources/graph/client/requests/AddDataBatchRequest.d.ts +18 -0
- package/dist/api/resources/graph/client/requests/AddDataBatchRequest.js +5 -0
- package/dist/api/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
- package/dist/api/resources/graph/client/requests/index.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.js +3 -3
- package/dist/api/resources/group/client/Client.js +6 -6
- package/dist/api/resources/memory/client/Client.d.ts +6 -2
- package/dist/api/resources/memory/client/Client.js +29 -25
- 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/EntityNode.d.ts +0 -2
- package/dist/api/types/EpisodeData.d.ts +10 -0
- package/dist/api/types/EpisodeData.js +5 -0
- package/dist/api/types/NewFact.d.ts +1 -1
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/graph/client/addBatch.d.ts +11 -0
- package/dist/serialization/resources/graph/client/addBatch.js +42 -0
- package/dist/serialization/resources/graph/client/index.d.ts +1 -0
- package/dist/serialization/resources/graph/client/index.js +24 -0
- package/dist/serialization/resources/graph/client/requests/AddDataBatchRequest.d.ts +15 -0
- package/dist/serialization/resources/graph/client/requests/AddDataBatchRequest.js +46 -0
- 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/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/graph/client/requests/index.js +3 -1
- package/dist/serialization/resources/graph/index.d.ts +1 -1
- package/dist/serialization/resources/graph/index.js +1 -1
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- 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/EntityNode.d.ts +0 -1
- package/dist/serialization/types/EntityNode.js +0 -1
- package/dist/serialization/types/EpisodeData.d.ts +16 -0
- package/dist/serialization/types/EpisodeData.js +47 -0
- package/dist/serialization/types/NewFact.d.ts +1 -1
- package/dist/serialization/types/NewFact.js +1 -1
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +80 -2
- package/serialization/resources/graph/client/addBatch.d.ts +11 -0
- package/serialization/resources/graph/client/addBatch.js +42 -0
- package/serialization/resources/graph/client/index.d.ts +1 -0
- package/serialization/resources/graph/client/index.js +24 -0
- package/serialization/resources/graph/client/requests/AddDataBatchRequest.d.ts +15 -0
- package/serialization/resources/graph/client/requests/AddDataBatchRequest.js +46 -0
- 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/client/requests/index.d.ts +1 -0
- package/serialization/resources/graph/client/requests/index.js +3 -1
- package/serialization/resources/graph/index.d.ts +1 -1
- package/serialization/resources/graph/index.js +1 -1
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- 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/EntityNode.d.ts +0 -1
- package/serialization/types/EntityNode.js +0 -1
- package/serialization/types/EpisodeData.d.ts +16 -0
- package/serialization/types/EpisodeData.js +47 -0
- package/serialization/types/NewFact.d.ts +1 -1
- package/serialization/types/NewFact.js +1 -1
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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()),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { EntityTypeRequest } from "./EntityTypeRequest";
|
|
2
2
|
export { AddDataRequest } from "./AddDataRequest";
|
|
3
|
+
export { AddDataBatchRequest } from "./AddDataBatchRequest";
|
|
3
4
|
export { AddTripleRequest } from "./AddTripleRequest";
|
|
4
5
|
export { GraphSearchQuery } from "./GraphSearchQuery";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GraphSearchQuery = exports.AddTripleRequest = exports.AddDataRequest = exports.EntityTypeRequest = void 0;
|
|
3
|
+
exports.GraphSearchQuery = exports.AddTripleRequest = exports.AddDataBatchRequest = exports.AddDataRequest = exports.EntityTypeRequest = void 0;
|
|
4
4
|
var EntityTypeRequest_1 = require("./EntityTypeRequest");
|
|
5
5
|
Object.defineProperty(exports, "EntityTypeRequest", { enumerable: true, get: function () { return EntityTypeRequest_1.EntityTypeRequest; } });
|
|
6
6
|
var AddDataRequest_1 = require("./AddDataRequest");
|
|
7
7
|
Object.defineProperty(exports, "AddDataRequest", { enumerable: true, get: function () { return AddDataRequest_1.AddDataRequest; } });
|
|
8
|
+
var AddDataBatchRequest_1 = require("./AddDataBatchRequest");
|
|
9
|
+
Object.defineProperty(exports, "AddDataBatchRequest", { enumerable: true, get: function () { return AddDataBatchRequest_1.AddDataBatchRequest; } });
|
|
8
10
|
var AddTripleRequest_1 = require("./AddTripleRequest");
|
|
9
11
|
Object.defineProperty(exports, "AddTripleRequest", { enumerable: true, get: function () { return AddTripleRequest_1.AddTripleRequest; } });
|
|
10
12
|
var GraphSearchQuery_1 = require("./GraphSearchQuery");
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./resources"), exports);
|
|
18
17
|
__exportStar(require("./client"), exports);
|
|
18
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as document from "./document";
|
|
2
|
+
export * as graph from "./graph";
|
|
2
3
|
export * as memory from "./memory";
|
|
3
4
|
export * as user from "./user";
|
|
4
|
-
export * as graph from "./graph";
|
|
5
5
|
export * from "./document/client/requests";
|
|
6
6
|
export * from "./graph/client/requests";
|
|
7
7
|
export * from "./memory/client/requests";
|
|
@@ -36,11 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.group = exports.
|
|
39
|
+
exports.group = exports.user = exports.memory = exports.graph = exports.document = void 0;
|
|
40
40
|
exports.document = __importStar(require("./document"));
|
|
41
|
+
exports.graph = __importStar(require("./graph"));
|
|
41
42
|
exports.memory = __importStar(require("./memory"));
|
|
42
43
|
exports.user = __importStar(require("./user"));
|
|
43
|
-
exports.graph = __importStar(require("./graph"));
|
|
44
44
|
__exportStar(require("./document/client/requests"), exports);
|
|
45
45
|
__exportStar(require("./graph/client/requests"), exports);
|
|
46
46
|
__exportStar(require("./memory/client/requests"), exports);
|
|
@@ -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
|
});
|
|
@@ -41,7 +41,6 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.EntityNode = core.serialization.object({
|
|
42
42
|
attributes: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
43
43
|
createdAt: core.serialization.property("created_at", core.serialization.string()),
|
|
44
|
-
episodes: core.serialization.list(core.serialization.string()).optional(),
|
|
45
44
|
labels: core.serialization.list(core.serialization.string()).optional(),
|
|
46
45
|
name: core.serialization.string(),
|
|
47
46
|
summary: core.serialization.string(),
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { GraphDataType } from "./GraphDataType";
|
|
8
|
+
export declare const EpisodeData: core.serialization.ObjectSchema<serializers.EpisodeData.Raw, Zep.EpisodeData>;
|
|
9
|
+
export declare namespace EpisodeData {
|
|
10
|
+
interface Raw {
|
|
11
|
+
created_at?: string | null;
|
|
12
|
+
data: string;
|
|
13
|
+
source_description?: string | null;
|
|
14
|
+
type: GraphDataType.Raw;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.EpisodeData = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const GraphDataType_1 = require("./GraphDataType");
|
|
42
|
+
exports.EpisodeData = core.serialization.object({
|
|
43
|
+
createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
|
|
44
|
+
data: core.serialization.string(),
|
|
45
|
+
sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()),
|
|
46
|
+
type: GraphDataType_1.GraphDataType,
|
|
47
|
+
});
|
|
@@ -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
|
});
|
|
@@ -9,6 +9,7 @@ export * from "./EndSessionsResponse";
|
|
|
9
9
|
export * from "./EntityProperty";
|
|
10
10
|
export * from "./EntityType";
|
|
11
11
|
export * from "./EntityTypeResponse";
|
|
12
|
+
export * from "./EpisodeData";
|
|
12
13
|
export * from "./Fact";
|
|
13
14
|
export * from "./FactRatingInstruction";
|
|
14
15
|
export * from "./FactResponse";
|
|
@@ -25,6 +25,7 @@ __exportStar(require("./EndSessionsResponse"), exports);
|
|
|
25
25
|
__exportStar(require("./EntityProperty"), exports);
|
|
26
26
|
__exportStar(require("./EntityType"), exports);
|
|
27
27
|
__exportStar(require("./EntityTypeResponse"), exports);
|
|
28
|
+
__exportStar(require("./EpisodeData"), exports);
|
|
28
29
|
__exportStar(require("./Fact"), exports);
|
|
29
30
|
__exportStar(require("./FactRatingInstruction"), exports);
|
|
30
31
|
__exportStar(require("./FactResponse"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.12.0";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1095,6 +1095,76 @@ await client.graph.add({
|
|
|
1095
1095
|
</dl>
|
|
1096
1096
|
</details>
|
|
1097
1097
|
|
|
1098
|
+
<details><summary><code>client.graph.<a href="/src/api/resources/graph/client/Client.ts">addBatch</a>({ ...params }) -> Zep.Episode[]</code></summary>
|
|
1099
|
+
<dl>
|
|
1100
|
+
<dd>
|
|
1101
|
+
|
|
1102
|
+
#### 📝 Description
|
|
1103
|
+
|
|
1104
|
+
<dl>
|
|
1105
|
+
<dd>
|
|
1106
|
+
|
|
1107
|
+
<dl>
|
|
1108
|
+
<dd>
|
|
1109
|
+
|
|
1110
|
+
Add data to the graph in batch mode (each episode processed concurrently). Note: each subscription tier has different limits on the amount of data that can be added to the graph please refer to the pricing page for more information.
|
|
1111
|
+
|
|
1112
|
+
</dd>
|
|
1113
|
+
</dl>
|
|
1114
|
+
</dd>
|
|
1115
|
+
</dl>
|
|
1116
|
+
|
|
1117
|
+
#### 🔌 Usage
|
|
1118
|
+
|
|
1119
|
+
<dl>
|
|
1120
|
+
<dd>
|
|
1121
|
+
|
|
1122
|
+
<dl>
|
|
1123
|
+
<dd>
|
|
1124
|
+
|
|
1125
|
+
```typescript
|
|
1126
|
+
await client.graph.addBatch({
|
|
1127
|
+
episodes: [
|
|
1128
|
+
{
|
|
1129
|
+
data: "data",
|
|
1130
|
+
type: "text",
|
|
1131
|
+
},
|
|
1132
|
+
],
|
|
1133
|
+
});
|
|
1134
|
+
```
|
|
1135
|
+
|
|
1136
|
+
</dd>
|
|
1137
|
+
</dl>
|
|
1138
|
+
</dd>
|
|
1139
|
+
</dl>
|
|
1140
|
+
|
|
1141
|
+
#### ⚙️ Parameters
|
|
1142
|
+
|
|
1143
|
+
<dl>
|
|
1144
|
+
<dd>
|
|
1145
|
+
|
|
1146
|
+
<dl>
|
|
1147
|
+
<dd>
|
|
1148
|
+
|
|
1149
|
+
**request:** `Zep.AddDataBatchRequest`
|
|
1150
|
+
|
|
1151
|
+
</dd>
|
|
1152
|
+
</dl>
|
|
1153
|
+
|
|
1154
|
+
<dl>
|
|
1155
|
+
<dd>
|
|
1156
|
+
|
|
1157
|
+
**requestOptions:** `Graph.RequestOptions`
|
|
1158
|
+
|
|
1159
|
+
</dd>
|
|
1160
|
+
</dl>
|
|
1161
|
+
</dd>
|
|
1162
|
+
</dl>
|
|
1163
|
+
|
|
1164
|
+
</dd>
|
|
1165
|
+
</dl>
|
|
1166
|
+
</details>
|
|
1167
|
+
|
|
1098
1168
|
<details><summary><code>client.graph.<a href="/src/api/resources/graph/client/Client.ts">addFactTriple</a>({ ...params }) -> Zep.AddTripleResponse</code></summary>
|
|
1099
1169
|
<dl>
|
|
1100
1170
|
<dd>
|
|
@@ -2070,7 +2140,13 @@ Deprecated API: Adds facts to a session
|
|
|
2070
2140
|
<dd>
|
|
2071
2141
|
|
|
2072
2142
|
```typescript
|
|
2073
|
-
await client.memory.addSessionFacts("sessionId"
|
|
2143
|
+
await client.memory.addSessionFacts("sessionId", {
|
|
2144
|
+
facts: [
|
|
2145
|
+
{
|
|
2146
|
+
fact: "fact",
|
|
2147
|
+
},
|
|
2148
|
+
],
|
|
2149
|
+
});
|
|
2074
2150
|
```
|
|
2075
2151
|
|
|
2076
2152
|
</dd>
|
|
@@ -3160,7 +3236,9 @@ Adds a user.
|
|
|
3160
3236
|
<dd>
|
|
3161
3237
|
|
|
3162
3238
|
```typescript
|
|
3163
|
-
await client.user.add(
|
|
3239
|
+
await client.user.add({
|
|
3240
|
+
userId: "user_id",
|
|
3241
|
+
});
|
|
3164
3242
|
```
|
|
3165
3243
|
|
|
3166
3244
|
</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 { Episode } from "../../../types/Episode";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.graph.addBatch.Response.Raw, Zep.Episode[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = Episode.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 Episode_1 = require("../../../types/Episode");
|
|
42
|
+
exports.Response = core.serialization.list(Episode_1.Episode);
|
|
@@ -10,8 +10,32 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
13
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
37
|
};
|
|
16
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.addBatch = void 0;
|
|
40
|
+
exports.addBatch = __importStar(require("./addBatch"));
|
|
17
41
|
__exportStar(require("./requests"), exports);
|
|
@@ -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 { EpisodeData } from "../../../../types/EpisodeData";
|
|
8
|
+
export declare const AddDataBatchRequest: core.serialization.Schema<serializers.AddDataBatchRequest.Raw, Zep.AddDataBatchRequest>;
|
|
9
|
+
export declare namespace AddDataBatchRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
episodes: EpisodeData.Raw[];
|
|
12
|
+
group_id?: string | null;
|
|
13
|
+
user_id?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.AddDataBatchRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const EpisodeData_1 = require("../../../../types/EpisodeData");
|
|
42
|
+
exports.AddDataBatchRequest = core.serialization.object({
|
|
43
|
+
episodes: core.serialization.list(EpisodeData_1.EpisodeData),
|
|
44
|
+
groupId: core.serialization.property("group_id", core.serialization.string().optional()),
|
|
45
|
+
userId: core.serialization.property("user_id", core.serialization.string().optional()),
|
|
46
|
+
});
|
|
@@ -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()),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { EntityTypeRequest } from "./EntityTypeRequest";
|
|
2
2
|
export { AddDataRequest } from "./AddDataRequest";
|
|
3
|
+
export { AddDataBatchRequest } from "./AddDataBatchRequest";
|
|
3
4
|
export { AddTripleRequest } from "./AddTripleRequest";
|
|
4
5
|
export { GraphSearchQuery } from "./GraphSearchQuery";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GraphSearchQuery = exports.AddTripleRequest = exports.AddDataRequest = exports.EntityTypeRequest = void 0;
|
|
3
|
+
exports.GraphSearchQuery = exports.AddTripleRequest = exports.AddDataBatchRequest = exports.AddDataRequest = exports.EntityTypeRequest = void 0;
|
|
4
4
|
var EntityTypeRequest_1 = require("./EntityTypeRequest");
|
|
5
5
|
Object.defineProperty(exports, "EntityTypeRequest", { enumerable: true, get: function () { return EntityTypeRequest_1.EntityTypeRequest; } });
|
|
6
6
|
var AddDataRequest_1 = require("./AddDataRequest");
|
|
7
7
|
Object.defineProperty(exports, "AddDataRequest", { enumerable: true, get: function () { return AddDataRequest_1.AddDataRequest; } });
|
|
8
|
+
var AddDataBatchRequest_1 = require("./AddDataBatchRequest");
|
|
9
|
+
Object.defineProperty(exports, "AddDataBatchRequest", { enumerable: true, get: function () { return AddDataBatchRequest_1.AddDataBatchRequest; } });
|
|
8
10
|
var AddTripleRequest_1 = require("./AddTripleRequest");
|
|
9
11
|
Object.defineProperty(exports, "AddTripleRequest", { enumerable: true, get: function () { return AddTripleRequest_1.AddTripleRequest; } });
|
|
10
12
|
var GraphSearchQuery_1 = require("./GraphSearchQuery");
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./resources"), exports);
|
|
18
17
|
__exportStar(require("./client"), exports);
|
|
18
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as document from "./document";
|
|
2
|
+
export * as graph from "./graph";
|
|
2
3
|
export * as memory from "./memory";
|
|
3
4
|
export * as user from "./user";
|
|
4
|
-
export * as graph from "./graph";
|
|
5
5
|
export * from "./document/client/requests";
|
|
6
6
|
export * from "./graph/client/requests";
|
|
7
7
|
export * from "./memory/client/requests";
|
|
@@ -36,11 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.group = exports.
|
|
39
|
+
exports.group = exports.user = exports.memory = exports.graph = exports.document = void 0;
|
|
40
40
|
exports.document = __importStar(require("./document"));
|
|
41
|
+
exports.graph = __importStar(require("./graph"));
|
|
41
42
|
exports.memory = __importStar(require("./memory"));
|
|
42
43
|
exports.user = __importStar(require("./user"));
|
|
43
|
-
exports.graph = __importStar(require("./graph"));
|
|
44
44
|
__exportStar(require("./document/client/requests"), exports);
|
|
45
45
|
__exportStar(require("./graph/client/requests"), exports);
|
|
46
46
|
__exportStar(require("./memory/client/requests"), exports);
|
|
@@ -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
|
});
|
|
@@ -41,7 +41,6 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.EntityNode = core.serialization.object({
|
|
42
42
|
attributes: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
43
43
|
createdAt: core.serialization.property("created_at", core.serialization.string()),
|
|
44
|
-
episodes: core.serialization.list(core.serialization.string()).optional(),
|
|
45
44
|
labels: core.serialization.list(core.serialization.string()).optional(),
|
|
46
45
|
name: core.serialization.string(),
|
|
47
46
|
summary: core.serialization.string(),
|