@getzep/zep-cloud 2.16.0 → 2.18.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.
Files changed (59) hide show
  1. package/api/resources/document/client/Client.js +13 -13
  2. package/api/resources/graph/client/Client.js +7 -7
  3. package/api/resources/graph/resources/edge/client/Client.js +4 -4
  4. package/api/resources/graph/resources/episode/client/Client.js +5 -5
  5. package/api/resources/graph/resources/node/client/Client.js +5 -5
  6. package/api/resources/group/client/Client.js +6 -6
  7. package/api/resources/memory/client/Client.js +22 -22
  8. package/api/resources/user/client/Client.js +8 -8
  9. package/api/types/ComparisonOperator.d.ts +12 -0
  10. package/api/types/ComparisonOperator.js +14 -0
  11. package/api/types/DateFilter.d.ts +10 -0
  12. package/api/types/DateFilter.js +5 -0
  13. package/api/types/SearchFilters.d.ts +33 -0
  14. package/api/types/index.d.ts +2 -0
  15. package/api/types/index.js +2 -0
  16. package/contextString.d.ts +16 -0
  17. package/contextString.js +75 -0
  18. package/dist/api/resources/document/client/Client.js +13 -13
  19. package/dist/api/resources/graph/client/Client.js +7 -7
  20. package/dist/api/resources/graph/resources/edge/client/Client.js +4 -4
  21. package/dist/api/resources/graph/resources/episode/client/Client.js +5 -5
  22. package/dist/api/resources/graph/resources/node/client/Client.js +5 -5
  23. package/dist/api/resources/group/client/Client.js +6 -6
  24. package/dist/api/resources/memory/client/Client.js +22 -22
  25. package/dist/api/resources/user/client/Client.js +8 -8
  26. package/dist/api/types/ComparisonOperator.d.ts +12 -0
  27. package/dist/api/types/ComparisonOperator.js +14 -0
  28. package/dist/api/types/DateFilter.d.ts +10 -0
  29. package/dist/api/types/DateFilter.js +5 -0
  30. package/dist/api/types/SearchFilters.d.ts +33 -0
  31. package/dist/api/types/index.d.ts +2 -0
  32. package/dist/api/types/index.js +2 -0
  33. package/dist/contextString.d.ts +16 -0
  34. package/dist/contextString.js +75 -0
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.js +3 -1
  37. package/dist/serialization/types/ComparisonOperator.d.ts +10 -0
  38. package/dist/serialization/types/ComparisonOperator.js +41 -0
  39. package/dist/serialization/types/DateFilter.d.ts +14 -0
  40. package/dist/serialization/types/DateFilter.js +45 -0
  41. package/dist/serialization/types/SearchFilters.d.ts +5 -0
  42. package/dist/serialization/types/SearchFilters.js +5 -0
  43. package/dist/serialization/types/index.d.ts +2 -0
  44. package/dist/serialization/types/index.js +2 -0
  45. package/dist/version.d.ts +1 -1
  46. package/dist/version.js +1 -1
  47. package/index.d.ts +1 -0
  48. package/index.js +3 -1
  49. package/package.json +1 -1
  50. package/serialization/types/ComparisonOperator.d.ts +10 -0
  51. package/serialization/types/ComparisonOperator.js +41 -0
  52. package/serialization/types/DateFilter.d.ts +14 -0
  53. package/serialization/types/DateFilter.js +45 -0
  54. package/serialization/types/SearchFilters.d.ts +5 -0
  55. package/serialization/types/SearchFilters.js +5 -0
  56. package/serialization/types/index.d.ts +2 -0
  57. package/serialization/types/index.js +2 -0
  58. package/version.d.ts +1 -1
  59. package/version.js +1 -1
@@ -0,0 +1,45 @@
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.DateFilter = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ComparisonOperator_1 = require("./ComparisonOperator");
42
+ exports.DateFilter = core.serialization.object({
43
+ comparisonOperator: core.serialization.property("comparison_operator", ComparisonOperator_1.ComparisonOperator),
44
+ date: core.serialization.string(),
45
+ });
@@ -4,10 +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 { DateFilter } from "./DateFilter";
7
8
  export declare const SearchFilters: core.serialization.ObjectSchema<serializers.SearchFilters.Raw, Zep.SearchFilters>;
8
9
  export declare namespace SearchFilters {
9
10
  interface Raw {
11
+ created_at?: DateFilter.Raw[][] | null;
10
12
  edge_types?: string[] | null;
13
+ expired_at?: DateFilter.Raw[][] | null;
14
+ invalid_at?: DateFilter.Raw[][] | null;
11
15
  node_labels?: string[] | null;
16
+ valid_at?: DateFilter.Raw[][] | null;
12
17
  }
13
18
  }
@@ -38,7 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.SearchFilters = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const DateFilter_1 = require("./DateFilter");
41
42
  exports.SearchFilters = core.serialization.object({
43
+ createdAt: core.serialization.property("created_at", core.serialization.list(core.serialization.list(DateFilter_1.DateFilter)).optional()),
42
44
  edgeTypes: core.serialization.property("edge_types", core.serialization.list(core.serialization.string()).optional()),
45
+ expiredAt: core.serialization.property("expired_at", core.serialization.list(core.serialization.list(DateFilter_1.DateFilter)).optional()),
46
+ invalidAt: core.serialization.property("invalid_at", core.serialization.list(core.serialization.list(DateFilter_1.DateFilter)).optional()),
43
47
  nodeLabels: core.serialization.property("node_labels", core.serialization.list(core.serialization.string()).optional()),
48
+ validAt: core.serialization.property("valid_at", core.serialization.list(core.serialization.list(DateFilter_1.DateFilter)).optional()),
44
49
  });
@@ -44,6 +44,8 @@ export * from "./User";
44
44
  export * from "./UserListResponse";
45
45
  export * from "./UserNodeResponse";
46
46
  export * from "./AddTripleResponse";
47
+ export * from "./ComparisonOperator";
48
+ export * from "./DateFilter";
47
49
  export * from "./EntityEdge";
48
50
  export * from "./EntityNode";
49
51
  export * from "./GraphSearchScope";
@@ -60,6 +60,8 @@ __exportStar(require("./User"), exports);
60
60
  __exportStar(require("./UserListResponse"), exports);
61
61
  __exportStar(require("./UserNodeResponse"), exports);
62
62
  __exportStar(require("./AddTripleResponse"), exports);
63
+ __exportStar(require("./ComparisonOperator"), exports);
64
+ __exportStar(require("./DateFilter"), exports);
63
65
  __exportStar(require("./EntityEdge"), exports);
64
66
  __exportStar(require("./EntityNode"), exports);
65
67
  __exportStar(require("./GraphSearchScope"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.16.0";
1
+ export declare const SDK_VERSION = "2.18.0";
package/dist/version.js CHANGED
@@ -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 = "2.16.0";
4
+ exports.SDK_VERSION = "2.18.0";
package/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export { ZepClient } from "./wrapper";
3
3
  export { ZepEnvironment } from "./environments";
4
4
  export { ZepError, ZepTimeoutError } from "./errors";
5
5
  export { zepFields } from "./extractor";
6
+ export { composeContextString } from "./contextString";
package/index.js CHANGED
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.zepFields = exports.ZepTimeoutError = exports.ZepError = exports.ZepEnvironment = exports.ZepClient = exports.Zep = void 0;
36
+ exports.composeContextString = exports.zepFields = exports.ZepTimeoutError = exports.ZepError = exports.ZepEnvironment = exports.ZepClient = exports.Zep = void 0;
37
37
  exports.Zep = __importStar(require("./api"));
38
38
  var wrapper_1 = require("./wrapper");
39
39
  Object.defineProperty(exports, "ZepClient", { enumerable: true, get: function () { return wrapper_1.ZepClient; } });
@@ -44,3 +44,5 @@ Object.defineProperty(exports, "ZepError", { enumerable: true, get: function ()
44
44
  Object.defineProperty(exports, "ZepTimeoutError", { enumerable: true, get: function () { return errors_1.ZepTimeoutError; } });
45
45
  var extractor_1 = require("./extractor");
46
46
  Object.defineProperty(exports, "zepFields", { enumerable: true, get: function () { return extractor_1.zepFields; } });
47
+ var contextString_1 = require("./contextString");
48
+ Object.defineProperty(exports, "composeContextString", { enumerable: true, get: function () { return contextString_1.composeContextString; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getzep/zep-cloud",
3
- "version": "2.16.0",
3
+ "version": "2.18.0",
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",
@@ -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 ComparisonOperator: core.serialization.Schema<serializers.ComparisonOperator.Raw, Zep.ComparisonOperator>;
8
+ export declare namespace ComparisonOperator {
9
+ type Raw = "=" | "<>" | ">" | "<" | ">=" | "<=";
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.ComparisonOperator = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ComparisonOperator = core.serialization.enum_(["=", "<>", ">", "<", ">=", "<="]);
@@ -0,0 +1,14 @@
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 { ComparisonOperator } from "./ComparisonOperator";
8
+ export declare const DateFilter: core.serialization.ObjectSchema<serializers.DateFilter.Raw, Zep.DateFilter>;
9
+ export declare namespace DateFilter {
10
+ interface Raw {
11
+ comparison_operator: ComparisonOperator.Raw;
12
+ date: string;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
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.DateFilter = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ComparisonOperator_1 = require("./ComparisonOperator");
42
+ exports.DateFilter = core.serialization.object({
43
+ comparisonOperator: core.serialization.property("comparison_operator", ComparisonOperator_1.ComparisonOperator),
44
+ date: core.serialization.string(),
45
+ });
@@ -4,10 +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 { DateFilter } from "./DateFilter";
7
8
  export declare const SearchFilters: core.serialization.ObjectSchema<serializers.SearchFilters.Raw, Zep.SearchFilters>;
8
9
  export declare namespace SearchFilters {
9
10
  interface Raw {
11
+ created_at?: DateFilter.Raw[][] | null;
10
12
  edge_types?: string[] | null;
13
+ expired_at?: DateFilter.Raw[][] | null;
14
+ invalid_at?: DateFilter.Raw[][] | null;
11
15
  node_labels?: string[] | null;
16
+ valid_at?: DateFilter.Raw[][] | null;
12
17
  }
13
18
  }
@@ -38,7 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.SearchFilters = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const DateFilter_1 = require("./DateFilter");
41
42
  exports.SearchFilters = core.serialization.object({
43
+ createdAt: core.serialization.property("created_at", core.serialization.list(core.serialization.list(DateFilter_1.DateFilter)).optional()),
42
44
  edgeTypes: core.serialization.property("edge_types", core.serialization.list(core.serialization.string()).optional()),
45
+ expiredAt: core.serialization.property("expired_at", core.serialization.list(core.serialization.list(DateFilter_1.DateFilter)).optional()),
46
+ invalidAt: core.serialization.property("invalid_at", core.serialization.list(core.serialization.list(DateFilter_1.DateFilter)).optional()),
43
47
  nodeLabels: core.serialization.property("node_labels", core.serialization.list(core.serialization.string()).optional()),
48
+ validAt: core.serialization.property("valid_at", core.serialization.list(core.serialization.list(DateFilter_1.DateFilter)).optional()),
44
49
  });
@@ -44,6 +44,8 @@ export * from "./User";
44
44
  export * from "./UserListResponse";
45
45
  export * from "./UserNodeResponse";
46
46
  export * from "./AddTripleResponse";
47
+ export * from "./ComparisonOperator";
48
+ export * from "./DateFilter";
47
49
  export * from "./EntityEdge";
48
50
  export * from "./EntityNode";
49
51
  export * from "./GraphSearchScope";
@@ -60,6 +60,8 @@ __exportStar(require("./User"), exports);
60
60
  __exportStar(require("./UserListResponse"), exports);
61
61
  __exportStar(require("./UserNodeResponse"), exports);
62
62
  __exportStar(require("./AddTripleResponse"), exports);
63
+ __exportStar(require("./ComparisonOperator"), exports);
64
+ __exportStar(require("./DateFilter"), exports);
63
65
  __exportStar(require("./EntityEdge"), exports);
64
66
  __exportStar(require("./EntityNode"), exports);
65
67
  __exportStar(require("./GraphSearchScope"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.16.0";
1
+ export declare const SDK_VERSION = "2.18.0";
package/version.js CHANGED
@@ -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 = "2.16.0";
4
+ exports.SDK_VERSION = "2.18.0";