@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.
@@ -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.0",
51
- "User-Agent": "zep-cloud/3.0.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) });
@@ -1,4 +1,4 @@
1
- import { EntityEdge, EntityNode } from "./api";
1
+ import { EntityEdge, EntityNode } from "./api/index.js";
2
2
  /**
3
3
  * Format the date range of an entity edge.
4
4
  *
@@ -1,5 +1,7 @@
1
- export * as Zep from "./api";
2
- export { ZepClient } from "./wrapper";
3
- export { ZepEnvironment } from "./environments";
4
- export { ZepError, ZepTimeoutError } from "./errors";
5
- export { composeContextString } from "./contextString";
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.ZepTimeoutError = exports.ZepError = exports.ZepEnvironment = exports.ZepClient = exports.Zep = void 0;
37
- exports.Zep = __importStar(require("./api"));
38
- var wrapper_1 = require("./wrapper");
39
- Object.defineProperty(exports, "ZepClient", { enumerable: true, get: function () { return wrapper_1.ZepClient; } });
40
- var environments_1 = require("./environments");
41
- Object.defineProperty(exports, "ZepEnvironment", { enumerable: true, get: function () { return environments_1.ZepEnvironment; } });
42
- var errors_1 = require("./errors");
43
- Object.defineProperty(exports, "ZepError", { enumerable: true, get: function () { return errors_1.ZepError; } });
44
- Object.defineProperty(exports, "ZepTimeoutError", { enumerable: true, get: function () { return errors_1.ZepTimeoutError; } });
45
- var contextString_1 = require("./contextString");
46
- Object.defineProperty(exports, "composeContextString", { enumerable: true, get: function () { return contextString_1.composeContextString; } });
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);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.0.0";
1
+ export declare const SDK_VERSION = "3.0.4";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.0.0";
4
+ exports.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.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 Client_1 = require("../api/resources/graph/client/Client");
14
- const ontology_1 = require("./ontology");
15
- class Graph extends Client_1.Graph {
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, ontology_1.entityModelToAPISchema)(schema, key);
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, ontology_1.edgeModelToAPISchema)(schema, key);
62
+ return (0, ontology_js_1.edgeModelToAPISchema)(schema, key);
63
63
  });
64
64
  return this.setEntityTypesInternal({
65
65
  entityTypes: validatedEntityTypes,
@@ -1,5 +1,5 @@
1
- import { ZepClient as BaseClient } from "../Client";
2
- import { Graph } from "./graph";
1
+ import { ZepClient as BaseClient } from "../Client.js";
2
+ import { Graph } from "./graph.js";
3
3
  export declare class ZepClient extends BaseClient {
4
4
  get graph(): Graph;
5
5
  }
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ZepClient = void 0;
4
- const Client_1 = require("../Client");
5
- const graph_1 = require("./graph");
6
- class ZepClient extends Client_1.ZepClient {
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 graph_1.Graph(this._options);
8
+ return new graph_js_1.Graph(this._options);
9
9
  }
10
10
  }
11
11
  exports.ZepClient = ZepClient;
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { Zep } from "../index";
2
+ import { Zep } from "../index.js";
3
3
  export declare enum EntityPropertyType {
4
4
  Text = "Text",
5
5
  Int = "Int",
@@ -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.0",
15
- "User-Agent": "zep-cloud/3.0.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) });
@@ -1,4 +1,4 @@
1
- import { EntityEdge, EntityNode } from "./api";
1
+ import { EntityEdge, EntityNode } from "./api/index.mjs";
2
2
  /**
3
3
  * Format the date range of an entity edge.
4
4
  *
@@ -1,5 +1,7 @@
1
- export * as Zep from "./api";
2
- export { ZepClient } from "./wrapper";
3
- export { ZepEnvironment } from "./environments";
4
- export { ZepError, ZepTimeoutError } from "./errors";
5
- export { composeContextString } from "./contextString";
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";
@@ -1,5 +1,7 @@
1
- export * as Zep from "./api";
2
- export { ZepClient } from "./wrapper";
3
- export { ZepEnvironment } from "./environments";
4
- export { ZepError, ZepTimeoutError } from "./errors";
5
- export { composeContextString } from "./contextString";
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";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.0.0";
1
+ export declare const SDK_VERSION = "3.0.4";
@@ -1 +1 @@
1
- export const SDK_VERSION = "3.0.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 declare class ZepClient extends BaseClient {
4
4
  get graph(): Graph;
5
5
  }
@@ -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);
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { Zep } from "../index";
2
+ import { Zep } from "../index.mjs";
3
3
  export declare enum EntityPropertyType {
4
4
  Text = "Text",
5
5
  Int = "Int",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getzep/zep-cloud",
3
- "version": "3.0.2",
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 && cp -rv dist/. ."
53
+ "prepack": "yarn build"
54
54
  },
55
55
  "dependencies": {
56
56
  "zod": "^3.23.8"