@getzep/zep-cloud 3.0.2 → 3.0.4
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/dist/cjs/Client.js +2 -2
- package/dist/cjs/contextString.d.ts +1 -1
- package/dist/cjs/index.d.ts +7 -5
- package/dist/cjs/index.js +16 -11
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/graph.d.ts +3 -3
- package/dist/cjs/wrapper/graph.js +5 -5
- package/dist/cjs/wrapper/index.d.ts +2 -2
- package/dist/cjs/wrapper/index.js +4 -4
- package/dist/cjs/wrapper/ontology.d.ts +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/contextString.d.mts +1 -1
- package/dist/esm/index.d.mts +7 -5
- package/dist/esm/index.mjs +7 -5
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/graph.d.mts +3 -3
- package/dist/esm/wrapper/graph.mjs +2 -2
- package/dist/esm/wrapper/index.d.mts +2 -2
- package/dist/esm/wrapper/index.mjs +2 -2
- package/dist/esm/wrapper/ontology.d.mts +1 -1
- package/package.json +2 -2
package/dist/cjs/Client.js
CHANGED
|
@@ -47,8 +47,8 @@ class ZepClient {
|
|
|
47
47
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
48
48
|
"X-Fern-Language": "JavaScript",
|
|
49
49
|
"X-Fern-SDK-Name": "zep-cloud",
|
|
50
|
-
"X-Fern-SDK-Version": "3.0.
|
|
51
|
-
"User-Agent": "zep-cloud/3.0.
|
|
50
|
+
"X-Fern-SDK-Version": "3.0.4",
|
|
51
|
+
"User-Agent": "zep-cloud/3.0.4",
|
|
52
52
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
53
53
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
54
54
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export * as Zep from "./api";
|
|
2
|
-
export {
|
|
3
|
-
export
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
1
|
+
export * as Zep from "./api/index.js";
|
|
2
|
+
export { ZepError, ZepTimeoutError } from "./errors/index.js";
|
|
3
|
+
export * as serialization from "./serialization/index.js";
|
|
4
|
+
export { ZepClient } from "./wrapper/index.js";
|
|
5
|
+
export { ZepEnvironment } from "./environments.js";
|
|
6
|
+
export { composeContextString } from "./contextString.js";
|
|
7
|
+
export * from "./wrapper/ontology.js";
|
package/dist/cjs/index.js
CHANGED
|
@@ -32,15 +32,20 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.composeContextString = exports.
|
|
37
|
-
exports.Zep = __importStar(require("./api"));
|
|
38
|
-
var
|
|
39
|
-
Object.defineProperty(exports, "
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
var
|
|
43
|
-
Object.defineProperty(exports, "
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
exports.composeContextString = exports.ZepEnvironment = exports.ZepClient = exports.serialization = exports.ZepTimeoutError = exports.ZepError = exports.Zep = void 0;
|
|
40
|
+
exports.Zep = __importStar(require("./api/index.js"));
|
|
41
|
+
var index_js_1 = require("./errors/index.js");
|
|
42
|
+
Object.defineProperty(exports, "ZepError", { enumerable: true, get: function () { return index_js_1.ZepError; } });
|
|
43
|
+
Object.defineProperty(exports, "ZepTimeoutError", { enumerable: true, get: function () { return index_js_1.ZepTimeoutError; } });
|
|
44
|
+
exports.serialization = __importStar(require("./serialization/index.js"));
|
|
45
|
+
var index_js_2 = require("./wrapper/index.js");
|
|
46
|
+
Object.defineProperty(exports, "ZepClient", { enumerable: true, get: function () { return index_js_2.ZepClient; } });
|
|
47
|
+
var environments_js_1 = require("./environments.js");
|
|
48
|
+
Object.defineProperty(exports, "ZepEnvironment", { enumerable: true, get: function () { return environments_js_1.ZepEnvironment; } });
|
|
49
|
+
var contextString_js_1 = require("./contextString.js");
|
|
50
|
+
Object.defineProperty(exports, "composeContextString", { enumerable: true, get: function () { return contextString_js_1.composeContextString; } });
|
|
51
|
+
__exportStar(require("./wrapper/ontology.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.0.
|
|
1
|
+
export declare const SDK_VERSION = "3.0.4";
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Graph as BaseGraph } from "../api/resources/graph/client/Client";
|
|
2
|
-
import { Zep } from "../index";
|
|
3
|
-
import { EdgeType, EntityType } from "./ontology";
|
|
1
|
+
import { Graph as BaseGraph } from "../api/resources/graph/client/Client.js";
|
|
2
|
+
import { Zep } from "../index.js";
|
|
3
|
+
import { EdgeType, EntityType } from "./ontology.js";
|
|
4
4
|
export declare class Graph extends BaseGraph {
|
|
5
5
|
/**
|
|
6
6
|
* Sets the entity and edge types for a project, replacing any existing ones.
|
|
@@ -10,9 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Graph = void 0;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
class Graph extends
|
|
13
|
+
const Client_js_1 = require("../api/resources/graph/client/Client.js");
|
|
14
|
+
const ontology_js_1 = require("./ontology.js");
|
|
15
|
+
class Graph extends Client_js_1.Graph {
|
|
16
16
|
/**
|
|
17
17
|
* Sets the entity and edge types for a project, replacing any existing ones.
|
|
18
18
|
*
|
|
@@ -55,11 +55,11 @@ class Graph extends Client_1.Graph {
|
|
|
55
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
56
|
const validatedEntityTypes = Object.keys(entityTypes).map((key) => {
|
|
57
57
|
const schema = entityTypes[key];
|
|
58
|
-
return (0,
|
|
58
|
+
return (0, ontology_js_1.entityModelToAPISchema)(schema, key);
|
|
59
59
|
});
|
|
60
60
|
const validatedEdgeTypes = Object.keys(edgeTypes).map((key) => {
|
|
61
61
|
const schema = edgeTypes[key];
|
|
62
|
-
return (0,
|
|
62
|
+
return (0, ontology_js_1.edgeModelToAPISchema)(schema, key);
|
|
63
63
|
});
|
|
64
64
|
return this.setEntityTypesInternal({
|
|
65
65
|
entityTypes: validatedEntityTypes,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ZepClient = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
class ZepClient extends
|
|
4
|
+
const Client_js_1 = require("../Client.js");
|
|
5
|
+
const graph_js_1 = require("./graph.js");
|
|
6
|
+
class ZepClient extends Client_js_1.ZepClient {
|
|
7
7
|
get graph() {
|
|
8
|
-
return new
|
|
8
|
+
return new graph_js_1.Graph(this._options);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.ZepClient = ZepClient;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -11,8 +11,8 @@ export class ZepClient {
|
|
|
11
11
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
12
12
|
"X-Fern-Language": "JavaScript",
|
|
13
13
|
"X-Fern-SDK-Name": "zep-cloud",
|
|
14
|
-
"X-Fern-SDK-Version": "3.0.
|
|
15
|
-
"User-Agent": "zep-cloud/3.0.
|
|
14
|
+
"X-Fern-SDK-Version": "3.0.4",
|
|
15
|
+
"User-Agent": "zep-cloud/3.0.4",
|
|
16
16
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
17
17
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
18
18
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export * as Zep from "./api";
|
|
2
|
-
export {
|
|
3
|
-
export
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
1
|
+
export * as Zep from "./api/index.mjs";
|
|
2
|
+
export { ZepError, ZepTimeoutError } from "./errors/index.mjs";
|
|
3
|
+
export * as serialization from "./serialization/index.mjs";
|
|
4
|
+
export { ZepClient } from "./wrapper/index.mjs";
|
|
5
|
+
export { ZepEnvironment } from "./environments.mjs";
|
|
6
|
+
export { composeContextString } from "./contextString.mjs";
|
|
7
|
+
export * from "./wrapper/ontology.mjs";
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export * as Zep from "./api";
|
|
2
|
-
export {
|
|
3
|
-
export
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
1
|
+
export * as Zep from "./api/index.mjs";
|
|
2
|
+
export { ZepError, ZepTimeoutError } from "./errors/index.mjs";
|
|
3
|
+
export * as serialization from "./serialization/index.mjs";
|
|
4
|
+
export { ZepClient } from "./wrapper/index.mjs";
|
|
5
|
+
export { ZepEnvironment } from "./environments.mjs";
|
|
6
|
+
export { composeContextString } from "./contextString.mjs";
|
|
7
|
+
export * from "./wrapper/ontology.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.0.
|
|
1
|
+
export declare const SDK_VERSION = "3.0.4";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "3.0.
|
|
1
|
+
export const SDK_VERSION = "3.0.4";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Graph as BaseGraph } from "../api/resources/graph/client/Client";
|
|
2
|
-
import { Zep } from "../index";
|
|
3
|
-
import { EdgeType, EntityType } from "./ontology";
|
|
1
|
+
import { Graph as BaseGraph } from "../api/resources/graph/client/Client.mjs";
|
|
2
|
+
import { Zep } from "../index.mjs";
|
|
3
|
+
import { EdgeType, EntityType } from "./ontology.mjs";
|
|
4
4
|
export declare class Graph extends BaseGraph {
|
|
5
5
|
/**
|
|
6
6
|
* Sets the entity and edge types for a project, replacing any existing ones.
|
|
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { Graph as BaseGraph } from "../api/resources/graph/client/Client";
|
|
11
|
-
import { entityModelToAPISchema, edgeModelToAPISchema } from "./ontology";
|
|
10
|
+
import { Graph as BaseGraph } from "../api/resources/graph/client/Client.mjs";
|
|
11
|
+
import { entityModelToAPISchema, edgeModelToAPISchema } from "./ontology.mjs";
|
|
12
12
|
export class Graph extends BaseGraph {
|
|
13
13
|
/**
|
|
14
14
|
* Sets the entity and edge types for a project, replacing any existing ones.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ZepClient as BaseClient } from "../Client";
|
|
2
|
-
import { Graph } from "./graph";
|
|
1
|
+
import { ZepClient as BaseClient } from "../Client.mjs";
|
|
2
|
+
import { Graph } from "./graph.mjs";
|
|
3
3
|
export class ZepClient extends BaseClient {
|
|
4
4
|
get graph() {
|
|
5
5
|
return new Graph(this._options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getzep/zep-cloud",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": "https://github.com/getzep/zep-js",
|
|
6
6
|
"description": "Zep: Fast, scalable building blocks for production LLM apps",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"test:unit": "jest --selectProjects unit",
|
|
51
51
|
"test:browser": "jest --selectProjects browser",
|
|
52
52
|
"test:wire": "jest --selectProjects wire",
|
|
53
|
-
"prepack": "yarn build
|
|
53
|
+
"prepack": "yarn build"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"zod": "^3.23.8"
|