@getzep/zep-cloud 1.0.7 → 1.0.8

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 (101) hide show
  1. package/api/resources/document/client/Client.js +13 -13
  2. package/api/resources/memory/client/Client.d.ts +40 -0
  3. package/api/resources/memory/client/Client.js +249 -20
  4. package/api/resources/memory/client/requests/CreateSessionRequest.d.ts +3 -0
  5. package/api/resources/memory/client/requests/MemoryGetRequest.d.ts +4 -0
  6. package/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.d.ts +13 -0
  7. package/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.js +5 -0
  8. package/api/resources/memory/client/requests/MemorySearchPayload.d.ts +1 -0
  9. package/api/resources/memory/client/requests/SessionSearchQuery.d.ts +1 -0
  10. package/api/resources/memory/client/requests/UpdateSessionRequest.d.ts +6 -0
  11. package/api/resources/memory/client/requests/index.d.ts +1 -0
  12. package/api/resources/user/client/Client.js +6 -6
  13. package/api/types/Fact.d.ts +1 -0
  14. package/api/types/FactRatingExamples.d.ts +8 -0
  15. package/api/types/FactRatingExamples.js +5 -0
  16. package/api/types/FactRatingInstruction.d.ts +21 -0
  17. package/api/types/FactRatingInstruction.js +5 -0
  18. package/api/types/FactResponse.d.ts +7 -0
  19. package/api/types/FactResponse.js +5 -0
  20. package/api/types/FactsResponse.d.ts +7 -0
  21. package/api/types/FactsResponse.js +5 -0
  22. package/api/types/Session.d.ts +2 -0
  23. package/api/types/index.d.ts +4 -0
  24. package/api/types/index.js +4 -0
  25. package/dist/api/resources/document/client/Client.js +13 -13
  26. package/dist/api/resources/memory/client/Client.d.ts +40 -0
  27. package/dist/api/resources/memory/client/Client.js +249 -20
  28. package/dist/api/resources/memory/client/requests/CreateSessionRequest.d.ts +3 -0
  29. package/dist/api/resources/memory/client/requests/MemoryGetRequest.d.ts +4 -0
  30. package/dist/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.d.ts +13 -0
  31. package/dist/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.js +5 -0
  32. package/dist/api/resources/memory/client/requests/MemorySearchPayload.d.ts +1 -0
  33. package/dist/api/resources/memory/client/requests/SessionSearchQuery.d.ts +1 -0
  34. package/dist/api/resources/memory/client/requests/UpdateSessionRequest.d.ts +6 -0
  35. package/dist/api/resources/memory/client/requests/index.d.ts +1 -0
  36. package/dist/api/resources/user/client/Client.js +6 -6
  37. package/dist/api/types/Fact.d.ts +1 -0
  38. package/dist/api/types/FactRatingExamples.d.ts +8 -0
  39. package/dist/api/types/FactRatingExamples.js +5 -0
  40. package/dist/api/types/FactRatingInstruction.d.ts +21 -0
  41. package/dist/api/types/FactRatingInstruction.js +5 -0
  42. package/dist/api/types/FactResponse.d.ts +7 -0
  43. package/dist/api/types/FactResponse.js +5 -0
  44. package/dist/api/types/FactsResponse.d.ts +7 -0
  45. package/dist/api/types/FactsResponse.js +5 -0
  46. package/dist/api/types/Session.d.ts +2 -0
  47. package/dist/api/types/index.d.ts +4 -0
  48. package/dist/api/types/index.js +4 -0
  49. package/dist/serialization/resources/memory/client/deleteFact.d.ts +9 -0
  50. package/dist/serialization/resources/memory/client/deleteFact.js +31 -0
  51. package/dist/serialization/resources/memory/client/index.d.ts +1 -0
  52. package/dist/serialization/resources/memory/client/index.js +2 -1
  53. package/dist/serialization/resources/memory/client/requests/CreateSessionRequest.d.ts +2 -0
  54. package/dist/serialization/resources/memory/client/requests/CreateSessionRequest.js +2 -0
  55. package/dist/serialization/resources/memory/client/requests/MemorySearchPayload.d.ts +1 -0
  56. package/dist/serialization/resources/memory/client/requests/MemorySearchPayload.js +1 -0
  57. package/dist/serialization/resources/memory/client/requests/SessionSearchQuery.d.ts +1 -0
  58. package/dist/serialization/resources/memory/client/requests/SessionSearchQuery.js +1 -0
  59. package/dist/serialization/resources/memory/client/requests/UpdateSessionRequest.d.ts +2 -0
  60. package/dist/serialization/resources/memory/client/requests/UpdateSessionRequest.js +2 -0
  61. package/dist/serialization/types/Fact.d.ts +1 -0
  62. package/dist/serialization/types/Fact.js +1 -0
  63. package/dist/serialization/types/FactRatingExamples.d.ts +14 -0
  64. package/dist/serialization/types/FactRatingExamples.js +35 -0
  65. package/dist/serialization/types/FactRatingInstruction.d.ts +14 -0
  66. package/dist/serialization/types/FactRatingInstruction.js +35 -0
  67. package/dist/serialization/types/FactResponse.d.ts +13 -0
  68. package/dist/serialization/types/FactResponse.js +34 -0
  69. package/dist/serialization/types/FactsResponse.d.ts +13 -0
  70. package/dist/serialization/types/FactsResponse.js +34 -0
  71. package/dist/serialization/types/Session.d.ts +2 -0
  72. package/dist/serialization/types/Session.js +2 -0
  73. package/dist/serialization/types/index.d.ts +4 -0
  74. package/dist/serialization/types/index.js +4 -0
  75. package/package.json +1 -1
  76. package/serialization/resources/memory/client/deleteFact.d.ts +9 -0
  77. package/serialization/resources/memory/client/deleteFact.js +31 -0
  78. package/serialization/resources/memory/client/index.d.ts +1 -0
  79. package/serialization/resources/memory/client/index.js +2 -1
  80. package/serialization/resources/memory/client/requests/CreateSessionRequest.d.ts +2 -0
  81. package/serialization/resources/memory/client/requests/CreateSessionRequest.js +2 -0
  82. package/serialization/resources/memory/client/requests/MemorySearchPayload.d.ts +1 -0
  83. package/serialization/resources/memory/client/requests/MemorySearchPayload.js +1 -0
  84. package/serialization/resources/memory/client/requests/SessionSearchQuery.d.ts +1 -0
  85. package/serialization/resources/memory/client/requests/SessionSearchQuery.js +1 -0
  86. package/serialization/resources/memory/client/requests/UpdateSessionRequest.d.ts +2 -0
  87. package/serialization/resources/memory/client/requests/UpdateSessionRequest.js +2 -0
  88. package/serialization/types/Fact.d.ts +1 -0
  89. package/serialization/types/Fact.js +1 -0
  90. package/serialization/types/FactRatingExamples.d.ts +14 -0
  91. package/serialization/types/FactRatingExamples.js +35 -0
  92. package/serialization/types/FactRatingInstruction.d.ts +14 -0
  93. package/serialization/types/FactRatingInstruction.js +35 -0
  94. package/serialization/types/FactResponse.d.ts +13 -0
  95. package/serialization/types/FactResponse.js +34 -0
  96. package/serialization/types/FactsResponse.d.ts +13 -0
  97. package/serialization/types/FactsResponse.js +34 -0
  98. package/serialization/types/Session.d.ts +2 -0
  99. package/serialization/types/Session.js +2 -0
  100. package/serialization/types/index.d.ts +4 -0
  101. package/serialization/types/index.js +4 -0
@@ -32,6 +32,7 @@ const SearchScope_1 = require("../../../../types/SearchScope");
32
32
  const SearchType_1 = require("../../../../types/SearchType");
33
33
  exports.MemorySearchPayload = core.serialization.object({
34
34
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
35
+ minFactRating: core.serialization.property("min_fact_rating", core.serialization.number().optional()),
35
36
  minScore: core.serialization.property("min_score", core.serialization.number().optional()),
36
37
  mmrLambda: core.serialization.property("mmr_lambda", core.serialization.number().optional()),
37
38
  searchScope: core.serialization.property("search_scope", SearchScope_1.SearchScope.optional()),
@@ -9,6 +9,7 @@ import { SearchType } from "../../../../types/SearchType";
9
9
  export declare const SessionSearchQuery: core.serialization.Schema<serializers.SessionSearchQuery.Raw, Omit<Zep.SessionSearchQuery, "limit">>;
10
10
  export declare namespace SessionSearchQuery {
11
11
  interface Raw {
12
+ min_fact_rating?: number | null;
12
13
  min_score?: number | null;
13
14
  mmr_lambda?: number | null;
14
15
  record_filter?: Record<string, unknown> | null;
@@ -31,6 +31,7 @@ const core = __importStar(require("../../../../../core"));
31
31
  const SearchScope_1 = require("../../../../types/SearchScope");
32
32
  const SearchType_1 = require("../../../../types/SearchType");
33
33
  exports.SessionSearchQuery = core.serialization.object({
34
+ minFactRating: core.serialization.property("min_fact_rating", core.serialization.number().optional()),
34
35
  minScore: core.serialization.property("min_score", core.serialization.number().optional()),
35
36
  mmrLambda: core.serialization.property("mmr_lambda", core.serialization.number().optional()),
36
37
  recordFilter: core.serialization.property("record_filter", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
@@ -4,9 +4,11 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Zep from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
+ import { FactRatingInstruction } from "../../../../types/FactRatingInstruction";
7
8
  export declare const UpdateSessionRequest: core.serialization.Schema<serializers.UpdateSessionRequest.Raw, Zep.UpdateSessionRequest>;
8
9
  export declare namespace UpdateSessionRequest {
9
10
  interface Raw {
11
+ fact_rating_instruction?: FactRatingInstruction.Raw | null;
10
12
  metadata: Record<string, unknown>;
11
13
  }
12
14
  }
@@ -28,6 +28,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.UpdateSessionRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
+ const FactRatingInstruction_1 = require("../../../../types/FactRatingInstruction");
31
32
  exports.UpdateSessionRequest = core.serialization.object({
33
+ factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_1.FactRatingInstruction.optional()),
32
34
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
33
35
  });
@@ -9,6 +9,7 @@ export declare namespace Fact {
9
9
  interface Raw {
10
10
  created_at?: string | null;
11
11
  fact?: string | null;
12
+ rating?: number | null;
12
13
  uuid?: string | null;
13
14
  }
14
15
  }
@@ -31,5 +31,6 @@ const core = __importStar(require("../../core"));
31
31
  exports.Fact = core.serialization.object({
32
32
  createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
33
33
  fact: core.serialization.string().optional(),
34
+ rating: core.serialization.number().optional(),
34
35
  uuid: core.serialization.string().optional(),
35
36
  });
@@ -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
+ export declare const FactRatingExamples: core.serialization.ObjectSchema<serializers.FactRatingExamples.Raw, Zep.FactRatingExamples>;
8
+ export declare namespace FactRatingExamples {
9
+ interface Raw {
10
+ high?: string | null;
11
+ low?: string | null;
12
+ medium?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.FactRatingExamples = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.FactRatingExamples = core.serialization.object({
32
+ high: core.serialization.string().optional(),
33
+ low: core.serialization.string().optional(),
34
+ medium: core.serialization.string().optional(),
35
+ });
@@ -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 { FactRatingExamples } from "./FactRatingExamples";
8
+ export declare const FactRatingInstruction: core.serialization.ObjectSchema<serializers.FactRatingInstruction.Raw, Zep.FactRatingInstruction>;
9
+ export declare namespace FactRatingInstruction {
10
+ interface Raw {
11
+ examples?: FactRatingExamples.Raw | null;
12
+ instruction?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.FactRatingInstruction = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const FactRatingExamples_1 = require("./FactRatingExamples");
32
+ exports.FactRatingInstruction = core.serialization.object({
33
+ examples: FactRatingExamples_1.FactRatingExamples.optional(),
34
+ instruction: core.serialization.string().optional(),
35
+ });
@@ -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 { Fact } from "./Fact";
8
+ export declare const FactResponse: core.serialization.ObjectSchema<serializers.FactResponse.Raw, Zep.FactResponse>;
9
+ export declare namespace FactResponse {
10
+ interface Raw {
11
+ fact?: Fact.Raw | null;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.FactResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const Fact_1 = require("./Fact");
32
+ exports.FactResponse = core.serialization.object({
33
+ fact: Fact_1.Fact.optional(),
34
+ });
@@ -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 { Fact } from "./Fact";
8
+ export declare const FactsResponse: core.serialization.ObjectSchema<serializers.FactsResponse.Raw, Zep.FactsResponse>;
9
+ export declare namespace FactsResponse {
10
+ interface Raw {
11
+ facts?: Fact.Raw[] | null;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.FactsResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const Fact_1 = require("./Fact");
32
+ exports.FactsResponse = core.serialization.object({
33
+ facts: core.serialization.list(Fact_1.Fact).optional(),
34
+ });
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Zep from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { FactRatingInstruction } from "./FactRatingInstruction";
7
8
  export declare const Session: core.serialization.ObjectSchema<serializers.Session.Raw, Zep.Session>;
8
9
  export declare namespace Session {
9
10
  interface Raw {
@@ -11,6 +12,7 @@ export declare namespace Session {
11
12
  created_at?: string | null;
12
13
  deleted_at?: string | null;
13
14
  ended_at?: string | null;
15
+ fact_rating_instruction?: FactRatingInstruction.Raw | null;
14
16
  fact_version_uuid?: string | null;
15
17
  facts?: string[] | null;
16
18
  id?: number | null;
@@ -28,11 +28,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Session = void 0;
30
30
  const core = __importStar(require("../../core"));
31
+ const FactRatingInstruction_1 = require("./FactRatingInstruction");
31
32
  exports.Session = core.serialization.object({
32
33
  classifications: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
33
34
  createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
34
35
  deletedAt: core.serialization.property("deleted_at", core.serialization.string().optional()),
35
36
  endedAt: core.serialization.property("ended_at", core.serialization.string().optional()),
37
+ factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_1.FactRatingInstruction.optional()),
36
38
  factVersionUuid: core.serialization.property("fact_version_uuid", core.serialization.string().optional()),
37
39
  facts: core.serialization.list(core.serialization.string()).optional(),
38
40
  id: core.serialization.number().optional(),
@@ -9,6 +9,10 @@ export * from "./DocumentSearchResultPage";
9
9
  export * from "./EndSessionResponse";
10
10
  export * from "./EndSessionsResponse";
11
11
  export * from "./Fact";
12
+ export * from "./FactRatingExamples";
13
+ export * from "./FactRatingInstruction";
14
+ export * from "./FactResponse";
15
+ export * from "./FactsResponse";
12
16
  export * from "./Memory";
13
17
  export * from "./MemorySearchResult";
14
18
  export * from "./Message";
@@ -25,6 +25,10 @@ __exportStar(require("./DocumentSearchResultPage"), exports);
25
25
  __exportStar(require("./EndSessionResponse"), exports);
26
26
  __exportStar(require("./EndSessionsResponse"), exports);
27
27
  __exportStar(require("./Fact"), exports);
28
+ __exportStar(require("./FactRatingExamples"), exports);
29
+ __exportStar(require("./FactRatingInstruction"), exports);
30
+ __exportStar(require("./FactResponse"), exports);
31
+ __exportStar(require("./FactsResponse"), exports);
28
32
  __exportStar(require("./Memory"), exports);
29
33
  __exportStar(require("./MemorySearchResult"), exports);
30
34
  __exportStar(require("./Message"), exports);