@getzep/zep-cloud 2.17.0 → 2.21.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 (62) 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.d.ts +1 -1
  8. package/api/resources/memory/client/Client.js +23 -23
  9. package/api/resources/memory/client/requests/AddMemoryRequest.d.ts +1 -1
  10. package/api/resources/user/client/Client.js +8 -8
  11. package/api/types/ComparisonOperator.d.ts +12 -0
  12. package/api/types/ComparisonOperator.js +14 -0
  13. package/api/types/DateFilter.d.ts +10 -0
  14. package/api/types/DateFilter.js +5 -0
  15. package/api/types/Episode.d.ts +0 -1
  16. package/api/types/SearchFilters.d.ts +33 -0
  17. package/api/types/index.d.ts +2 -0
  18. package/api/types/index.js +2 -0
  19. package/dist/api/resources/document/client/Client.js +13 -13
  20. package/dist/api/resources/graph/client/Client.js +7 -7
  21. package/dist/api/resources/graph/resources/edge/client/Client.js +4 -4
  22. package/dist/api/resources/graph/resources/episode/client/Client.js +5 -5
  23. package/dist/api/resources/graph/resources/node/client/Client.js +5 -5
  24. package/dist/api/resources/group/client/Client.js +6 -6
  25. package/dist/api/resources/memory/client/Client.d.ts +1 -1
  26. package/dist/api/resources/memory/client/Client.js +23 -23
  27. package/dist/api/resources/memory/client/requests/AddMemoryRequest.d.ts +1 -1
  28. package/dist/api/resources/user/client/Client.js +8 -8
  29. package/dist/api/types/ComparisonOperator.d.ts +12 -0
  30. package/dist/api/types/ComparisonOperator.js +14 -0
  31. package/dist/api/types/DateFilter.d.ts +10 -0
  32. package/dist/api/types/DateFilter.js +5 -0
  33. package/dist/api/types/Episode.d.ts +0 -1
  34. package/dist/api/types/SearchFilters.d.ts +33 -0
  35. package/dist/api/types/index.d.ts +2 -0
  36. package/dist/api/types/index.js +2 -0
  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/examples/memory/memory_example.ts +1 -137
  48. package/package.json +1 -1
  49. package/reference.md +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
  60. package/examples/documents/babbages_calculating_engine.txt +0 -3153
  61. package/examples/documents/index.ts +0 -188
  62. package/examples/memory/structured_data_extraction_example.ts +0 -34
@@ -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.21.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.21.0";