@getzep/zep-cloud 2.7.0 → 2.8.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/Client.d.ts +3 -3
- package/Client.js +6 -6
- package/api/resources/document/client/Client.js +13 -13
- package/api/resources/graph/client/Client.d.ts +30 -0
- package/api/resources/graph/client/Client.js +157 -4
- package/api/resources/graph/client/requests/EntityTypeRequest.d.ts +16 -0
- package/api/resources/graph/client/requests/EntityTypeRequest.js +5 -0
- package/api/resources/graph/client/requests/GraphSearchQuery.d.ts +2 -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/index.d.ts +2 -2
- package/api/resources/index.js +3 -3
- package/api/resources/memory/client/Client.js +22 -22
- package/api/resources/user/client/Client.js +8 -8
- package/api/types/EntityProperty.d.ts +9 -0
- package/api/types/EntityProperty.js +5 -0
- package/api/types/EntityPropertyType.d.ts +10 -0
- package/api/types/EntityPropertyType.js +12 -0
- package/api/types/EntityType.d.ts +9 -0
- package/api/types/EntityType.js +5 -0
- package/api/types/EntityTypeResponse.d.ts +7 -0
- package/api/types/EntityTypeResponse.js +5 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +6 -6
- package/dist/api/resources/document/client/Client.js +13 -13
- package/dist/api/resources/graph/client/Client.d.ts +30 -0
- package/dist/api/resources/graph/client/Client.js +157 -4
- package/dist/api/resources/graph/client/requests/EntityTypeRequest.d.ts +16 -0
- package/dist/api/resources/graph/client/requests/EntityTypeRequest.js +5 -0
- package/dist/api/resources/graph/client/requests/GraphSearchQuery.d.ts +2 -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/index.d.ts +2 -2
- package/dist/api/resources/index.js +3 -3
- package/dist/api/resources/memory/client/Client.js +22 -22
- package/dist/api/resources/user/client/Client.js +8 -8
- package/dist/api/types/EntityProperty.d.ts +9 -0
- package/dist/api/types/EntityProperty.js +5 -0
- package/dist/api/types/EntityPropertyType.d.ts +10 -0
- package/dist/api/types/EntityPropertyType.js +12 -0
- package/dist/api/types/EntityType.d.ts +9 -0
- package/dist/api/types/EntityType.js +5 -0
- package/dist/api/types/EntityTypeResponse.d.ts +7 -0
- package/dist/api/types/EntityTypeResponse.js +5 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/graph/client/requests/EntityTypeRequest.d.ts +13 -0
- package/dist/serialization/resources/graph/client/requests/EntityTypeRequest.js +44 -0
- package/dist/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +1 -0
- package/dist/serialization/resources/graph/client/requests/GraphSearchQuery.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/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +1 -1
- package/dist/serialization/types/EntityProperty.d.ts +15 -0
- package/dist/serialization/types/EntityProperty.js +46 -0
- package/dist/serialization/types/EntityPropertyType.d.ts +10 -0
- package/dist/serialization/types/EntityPropertyType.js +41 -0
- package/dist/serialization/types/EntityType.d.ts +15 -0
- package/dist/serialization/types/EntityType.js +46 -0
- package/dist/serialization/types/EntityTypeResponse.d.ts +13 -0
- package/dist/serialization/types/EntityTypeResponse.js +44 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/graph.d.ts +6 -0
- package/dist/wrapper/graph.js +29 -0
- package/dist/wrapper/index.d.ts +2 -0
- package/dist/wrapper/index.js +4 -0
- package/dist/wrapper/ontology.d.ts +312 -0
- package/dist/wrapper/ontology.js +80 -0
- package/examples/graph/entity_type_example.ts +40 -0
- package/package.json +1 -1
- package/reference.md +311 -186
- package/serialization/resources/graph/client/requests/EntityTypeRequest.d.ts +13 -0
- package/serialization/resources/graph/client/requests/EntityTypeRequest.js +44 -0
- package/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +1 -0
- package/serialization/resources/graph/client/requests/GraphSearchQuery.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/index.d.ts +1 -1
- package/serialization/resources/index.js +1 -1
- package/serialization/types/EntityProperty.d.ts +15 -0
- package/serialization/types/EntityProperty.js +46 -0
- package/serialization/types/EntityPropertyType.d.ts +10 -0
- package/serialization/types/EntityPropertyType.js +41 -0
- package/serialization/types/EntityType.d.ts +15 -0
- package/serialization/types/EntityType.js +46 -0
- package/serialization/types/EntityTypeResponse.d.ts +13 -0
- package/serialization/types/EntityTypeResponse.js +44 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/graph.d.ts +6 -0
- package/wrapper/graph.js +29 -0
- package/wrapper/index.d.ts +2 -0
- package/wrapper/index.js +4 -0
- package/wrapper/ontology.d.ts +312 -0
- package/wrapper/ontology.js +80 -0
|
@@ -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 { EntityType } from "../../../../types/EntityType";
|
|
8
|
+
export declare const EntityTypeRequest: core.serialization.Schema<serializers.EntityTypeRequest.Raw, Zep.EntityTypeRequest>;
|
|
9
|
+
export declare namespace EntityTypeRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
entity_types: EntityType.Raw[];
|
|
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.EntityTypeRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const EntityType_1 = require("../../../../types/EntityType");
|
|
42
|
+
exports.EntityTypeRequest = core.serialization.object({
|
|
43
|
+
entityTypes: core.serialization.property("entity_types", core.serialization.list(EntityType_1.EntityType)),
|
|
44
|
+
});
|
|
@@ -45,6 +45,7 @@ exports.GraphSearchQuery = core.serialization.object({
|
|
|
45
45
|
centerNodeUuid: core.serialization.property("center_node_uuid", core.serialization.string().optional()),
|
|
46
46
|
groupId: core.serialization.property("group_id", core.serialization.string().optional()),
|
|
47
47
|
limit: core.serialization.number().optional(),
|
|
48
|
+
minFactRating: core.serialization.property("min_fact_rating", core.serialization.number().optional()),
|
|
48
49
|
minScore: core.serialization.property("min_score", core.serialization.number().optional()),
|
|
49
50
|
mmrLambda: core.serialization.property("mmr_lambda", core.serialization.number().optional()),
|
|
50
51
|
query: core.serialization.string(),
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GraphSearchQuery = exports.AddTripleRequest = exports.AddDataRequest = void 0;
|
|
3
|
+
exports.GraphSearchQuery = exports.AddTripleRequest = exports.AddDataRequest = exports.EntityTypeRequest = void 0;
|
|
4
|
+
var EntityTypeRequest_1 = require("./EntityTypeRequest");
|
|
5
|
+
Object.defineProperty(exports, "EntityTypeRequest", { enumerable: true, get: function () { return EntityTypeRequest_1.EntityTypeRequest; } });
|
|
4
6
|
var AddDataRequest_1 = require("./AddDataRequest");
|
|
5
7
|
Object.defineProperty(exports, "AddDataRequest", { enumerable: true, get: function () { return AddDataRequest_1.AddDataRequest; } });
|
|
6
8
|
var AddTripleRequest_1 = require("./AddTripleRequest");
|
|
@@ -3,8 +3,8 @@ export * as memory from "./memory";
|
|
|
3
3
|
export * as user from "./user";
|
|
4
4
|
export * as graph from "./graph";
|
|
5
5
|
export * from "./document/client/requests";
|
|
6
|
-
export * from "./memory/client/requests";
|
|
7
6
|
export * from "./graph/client/requests";
|
|
7
|
+
export * from "./memory/client/requests";
|
|
8
8
|
export * as group from "./group";
|
|
9
9
|
export * from "./group/client/requests";
|
|
10
10
|
export * from "./user/client/requests";
|
|
@@ -42,8 +42,8 @@ exports.memory = __importStar(require("./memory"));
|
|
|
42
42
|
exports.user = __importStar(require("./user"));
|
|
43
43
|
exports.graph = __importStar(require("./graph"));
|
|
44
44
|
__exportStar(require("./document/client/requests"), exports);
|
|
45
|
-
__exportStar(require("./memory/client/requests"), exports);
|
|
46
45
|
__exportStar(require("./graph/client/requests"), exports);
|
|
46
|
+
__exportStar(require("./memory/client/requests"), exports);
|
|
47
47
|
exports.group = __importStar(require("./group"));
|
|
48
48
|
__exportStar(require("./group/client/requests"), exports);
|
|
49
49
|
__exportStar(require("./user/client/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 { EntityPropertyType } from "./EntityPropertyType";
|
|
8
|
+
export declare const EntityProperty: core.serialization.ObjectSchema<serializers.EntityProperty.Raw, Zep.EntityProperty>;
|
|
9
|
+
export declare namespace EntityProperty {
|
|
10
|
+
interface Raw {
|
|
11
|
+
description: string;
|
|
12
|
+
name: string;
|
|
13
|
+
type: EntityPropertyType.Raw;
|
|
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.EntityProperty = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const EntityPropertyType_1 = require("./EntityPropertyType");
|
|
42
|
+
exports.EntityProperty = core.serialization.object({
|
|
43
|
+
description: core.serialization.string(),
|
|
44
|
+
name: core.serialization.string(),
|
|
45
|
+
type: EntityPropertyType_1.EntityPropertyType,
|
|
46
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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 EntityPropertyType: core.serialization.Schema<serializers.EntityPropertyType.Raw, Zep.EntityPropertyType>;
|
|
8
|
+
export declare namespace EntityPropertyType {
|
|
9
|
+
type Raw = "Text" | "Int" | "Float" | "Boolean";
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.EntityPropertyType = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.EntityPropertyType = core.serialization.enum_(["Text", "Int", "Float", "Boolean"]);
|
|
@@ -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 { EntityProperty } from "./EntityProperty";
|
|
8
|
+
export declare const EntityType: core.serialization.ObjectSchema<serializers.EntityType.Raw, Zep.EntityType>;
|
|
9
|
+
export declare namespace EntityType {
|
|
10
|
+
interface Raw {
|
|
11
|
+
description: string;
|
|
12
|
+
name: string;
|
|
13
|
+
properties?: EntityProperty.Raw[] | 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.EntityType = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const EntityProperty_1 = require("./EntityProperty");
|
|
42
|
+
exports.EntityType = core.serialization.object({
|
|
43
|
+
description: core.serialization.string(),
|
|
44
|
+
name: core.serialization.string(),
|
|
45
|
+
properties: core.serialization.list(EntityProperty_1.EntityProperty).optional(),
|
|
46
|
+
});
|
|
@@ -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 { EntityType } from "./EntityType";
|
|
8
|
+
export declare const EntityTypeResponse: core.serialization.ObjectSchema<serializers.EntityTypeResponse.Raw, Zep.EntityTypeResponse>;
|
|
9
|
+
export declare namespace EntityTypeResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
entity_types?: EntityType.Raw[] | 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.EntityTypeResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const EntityType_1 = require("./EntityType");
|
|
42
|
+
exports.EntityTypeResponse = core.serialization.object({
|
|
43
|
+
entityTypes: core.serialization.property("entity_types", core.serialization.list(EntityType_1.EntityType).optional()),
|
|
44
|
+
});
|
|
@@ -6,6 +6,9 @@ export * from "./ApidataDocumentSearchResponse";
|
|
|
6
6
|
export * from "./ApidataDocumentWithScore";
|
|
7
7
|
export * from "./EndSessionResponse";
|
|
8
8
|
export * from "./EndSessionsResponse";
|
|
9
|
+
export * from "./EntityProperty";
|
|
10
|
+
export * from "./EntityType";
|
|
11
|
+
export * from "./EntityTypeResponse";
|
|
9
12
|
export * from "./Fact";
|
|
10
13
|
export * from "./FactRatingInstruction";
|
|
11
14
|
export * from "./FactResponse";
|
|
@@ -41,6 +44,7 @@ export * from "./Reranker";
|
|
|
41
44
|
export * from "./SearchFilters";
|
|
42
45
|
export * from "./ClassifySessionRequest";
|
|
43
46
|
export * from "./CreateDocumentRequest";
|
|
47
|
+
export * from "./EntityPropertyType";
|
|
44
48
|
export * from "./FactRatingExamples";
|
|
45
49
|
export * from "./GraphDataType";
|
|
46
50
|
export * from "./SearchScope";
|
|
@@ -22,6 +22,9 @@ __exportStar(require("./ApidataDocumentSearchResponse"), exports);
|
|
|
22
22
|
__exportStar(require("./ApidataDocumentWithScore"), exports);
|
|
23
23
|
__exportStar(require("./EndSessionResponse"), exports);
|
|
24
24
|
__exportStar(require("./EndSessionsResponse"), exports);
|
|
25
|
+
__exportStar(require("./EntityProperty"), exports);
|
|
26
|
+
__exportStar(require("./EntityType"), exports);
|
|
27
|
+
__exportStar(require("./EntityTypeResponse"), exports);
|
|
25
28
|
__exportStar(require("./Fact"), exports);
|
|
26
29
|
__exportStar(require("./FactRatingInstruction"), exports);
|
|
27
30
|
__exportStar(require("./FactResponse"), exports);
|
|
@@ -57,6 +60,7 @@ __exportStar(require("./Reranker"), exports);
|
|
|
57
60
|
__exportStar(require("./SearchFilters"), exports);
|
|
58
61
|
__exportStar(require("./ClassifySessionRequest"), exports);
|
|
59
62
|
__exportStar(require("./CreateDocumentRequest"), exports);
|
|
63
|
+
__exportStar(require("./EntityPropertyType"), exports);
|
|
60
64
|
__exportStar(require("./FactRatingExamples"), exports);
|
|
61
65
|
__exportStar(require("./GraphDataType"), exports);
|
|
62
66
|
__exportStar(require("./SearchScope"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.8.0";
|
package/version.js
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Graph as BaseGraph } from "../api/resources/graph/client/Client";
|
|
2
|
+
import { Zep } from "../index";
|
|
3
|
+
import { EntityType } from "./ontology";
|
|
4
|
+
export declare class Graph extends BaseGraph {
|
|
5
|
+
setEntityTypes(entityTypes: Record<string, EntityType>, requestOptions?: BaseGraph.RequestOptions): Promise<Zep.SuccessResponse>;
|
|
6
|
+
}
|
package/wrapper/graph.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Graph = void 0;
|
|
13
|
+
const Client_1 = require("../api/resources/graph/client/Client");
|
|
14
|
+
const ontology_1 = require("./ontology");
|
|
15
|
+
class Graph extends Client_1.Graph {
|
|
16
|
+
setEntityTypes(entityTypes, requestOptions) {
|
|
17
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
const validatedEntityTypes = Object.keys(entityTypes).map((key) => {
|
|
19
|
+
const schema = entityTypes[key];
|
|
20
|
+
const entityType = (0, ontology_1.entityModelToAPISchema)(schema, key);
|
|
21
|
+
return entityType;
|
|
22
|
+
});
|
|
23
|
+
return this.setEntityTypesInternal({
|
|
24
|
+
entityTypes: validatedEntityTypes,
|
|
25
|
+
}, requestOptions);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.Graph = Graph;
|
package/wrapper/index.d.ts
CHANGED
package/wrapper/index.js
CHANGED
|
@@ -3,9 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ZepClient = void 0;
|
|
4
4
|
const Client_1 = require("../Client");
|
|
5
5
|
const memory_1 = require("./memory");
|
|
6
|
+
const graph_1 = require("./graph");
|
|
6
7
|
class ZepClient extends Client_1.ZepClient {
|
|
7
8
|
get memory() {
|
|
8
9
|
return new memory_1.Memory(this._options);
|
|
9
10
|
}
|
|
11
|
+
get graph() {
|
|
12
|
+
return new graph_1.Graph(this._options);
|
|
13
|
+
}
|
|
10
14
|
}
|
|
11
15
|
exports.ZepClient = ZepClient;
|