@getzep/zep-cloud 2.11.0 → 2.12.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 (56) hide show
  1. package/api/resources/document/client/Client.js +13 -13
  2. package/api/resources/graph/client/Client.js +6 -6
  3. package/api/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
  4. package/api/resources/graph/resources/edge/client/Client.js +4 -4
  5. package/api/resources/graph/resources/episode/client/Client.js +5 -5
  6. package/api/resources/graph/resources/node/client/Client.js +3 -3
  7. package/api/resources/group/client/Client.js +6 -6
  8. package/api/resources/memory/client/Client.d.ts +6 -2
  9. package/api/resources/memory/client/Client.js +29 -25
  10. package/api/resources/memory/client/requests/AddFactsRequest.d.ts +6 -2
  11. package/api/resources/user/client/Client.d.ts +4 -2
  12. package/api/resources/user/client/Client.js +13 -11
  13. package/api/resources/user/client/requests/CreateUserRequest.d.ts +4 -2
  14. package/api/types/EpisodeData.d.ts +1 -0
  15. package/api/types/NewFact.d.ts +1 -1
  16. package/dist/api/resources/document/client/Client.js +13 -13
  17. package/dist/api/resources/graph/client/Client.js +6 -6
  18. package/dist/api/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
  19. package/dist/api/resources/graph/resources/edge/client/Client.js +4 -4
  20. package/dist/api/resources/graph/resources/episode/client/Client.js +5 -5
  21. package/dist/api/resources/graph/resources/node/client/Client.js +3 -3
  22. package/dist/api/resources/group/client/Client.js +6 -6
  23. package/dist/api/resources/memory/client/Client.d.ts +6 -2
  24. package/dist/api/resources/memory/client/Client.js +29 -25
  25. package/dist/api/resources/memory/client/requests/AddFactsRequest.d.ts +6 -2
  26. package/dist/api/resources/user/client/Client.d.ts +4 -2
  27. package/dist/api/resources/user/client/Client.js +13 -11
  28. package/dist/api/resources/user/client/requests/CreateUserRequest.d.ts +4 -2
  29. package/dist/api/types/EpisodeData.d.ts +1 -0
  30. package/dist/api/types/NewFact.d.ts +1 -1
  31. package/dist/serialization/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
  32. package/dist/serialization/resources/graph/client/requests/AddDataRequest.js +1 -0
  33. package/dist/serialization/resources/memory/client/requests/AddFactsRequest.d.ts +1 -1
  34. package/dist/serialization/resources/memory/client/requests/AddFactsRequest.js +1 -1
  35. package/dist/serialization/resources/user/client/requests/CreateUserRequest.d.ts +1 -1
  36. package/dist/serialization/resources/user/client/requests/CreateUserRequest.js +1 -1
  37. package/dist/serialization/types/EpisodeData.d.ts +1 -0
  38. package/dist/serialization/types/EpisodeData.js +1 -0
  39. package/dist/serialization/types/NewFact.d.ts +1 -1
  40. package/dist/serialization/types/NewFact.js +1 -1
  41. package/dist/version.d.ts +1 -1
  42. package/dist/version.js +1 -1
  43. package/package.json +1 -1
  44. package/reference.md +10 -2
  45. package/serialization/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
  46. package/serialization/resources/graph/client/requests/AddDataRequest.js +1 -0
  47. package/serialization/resources/memory/client/requests/AddFactsRequest.d.ts +1 -1
  48. package/serialization/resources/memory/client/requests/AddFactsRequest.js +1 -1
  49. package/serialization/resources/user/client/requests/CreateUserRequest.d.ts +1 -1
  50. package/serialization/resources/user/client/requests/CreateUserRequest.js +1 -1
  51. package/serialization/types/EpisodeData.d.ts +1 -0
  52. package/serialization/types/EpisodeData.js +1 -0
  53. package/serialization/types/NewFact.d.ts +1 -1
  54. package/serialization/types/NewFact.js +1 -1
  55. package/version.d.ts +1 -1
  56. package/version.js +1 -1
@@ -69,15 +69,17 @@ class User {
69
69
  * @throws {@link Zep.InternalServerError}
70
70
  *
71
71
  * @example
72
- * await client.user.add()
72
+ * await client.user.add({
73
+ * userId: "user_id"
74
+ * })
73
75
  */
74
- add() {
75
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
76
+ add(request, requestOptions) {
77
+ return __awaiter(this, void 0, void 0, function* () {
76
78
  var _a, _b;
77
79
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
80
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "users"),
79
81
  method: "POST",
80
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.11.0", "User-Agent": "zep-cloud/2.11.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
83
  contentType: "application/json",
82
84
  requestType: "json",
83
85
  body: serializers.CreateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -160,7 +162,7 @@ class User {
160
162
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
161
163
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "users-ordered"),
162
164
  method: "GET",
163
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.11.0", "User-Agent": "zep-cloud/2.11.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
165
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
166
  contentType: "application/json",
165
167
  queryParameters: _queryParams,
166
168
  requestType: "json",
@@ -235,7 +237,7 @@ class User {
235
237
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
236
238
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}`),
237
239
  method: "GET",
238
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.11.0", "User-Agent": "zep-cloud/2.11.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
241
  contentType: "application/json",
240
242
  requestType: "json",
241
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -309,7 +311,7 @@ class User {
309
311
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
310
312
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}`),
311
313
  method: "DELETE",
312
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.11.0", "User-Agent": "zep-cloud/2.11.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
314
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
313
315
  contentType: "application/json",
314
316
  requestType: "json",
315
317
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -385,7 +387,7 @@ class User {
385
387
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
386
388
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}`),
387
389
  method: "PATCH",
388
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.11.0", "User-Agent": "zep-cloud/2.11.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
390
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
389
391
  contentType: "application/json",
390
392
  requestType: "json",
391
393
  body: serializers.UpdateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -468,7 +470,7 @@ class User {
468
470
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
469
471
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}/facts`),
470
472
  method: "GET",
471
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.11.0", "User-Agent": "zep-cloud/2.11.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
473
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
472
474
  contentType: "application/json",
473
475
  requestType: "json",
474
476
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -542,7 +544,7 @@ class User {
542
544
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
543
545
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}/node`),
544
546
  method: "GET",
545
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.11.0", "User-Agent": "zep-cloud/2.11.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
547
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
546
548
  contentType: "application/json",
547
549
  requestType: "json",
548
550
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -615,7 +617,7 @@ class User {
615
617
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
616
618
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `users/${encodeURIComponent(userId)}/sessions`),
617
619
  method: "GET",
618
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.11.0", "User-Agent": "zep-cloud/2.11.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
620
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.12.0", "User-Agent": "zep-cloud/2.12.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
619
621
  contentType: "application/json",
620
622
  requestType: "json",
621
623
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -4,7 +4,9 @@
4
4
  import * as Zep from "../../../../index";
5
5
  /**
6
6
  * @example
7
- * {}
7
+ * {
8
+ * userId: "user_id"
9
+ * }
8
10
  */
9
11
  export interface CreateUserRequest {
10
12
  /** The email address of the user. */
@@ -18,5 +20,5 @@ export interface CreateUserRequest {
18
20
  /** The metadata associated with the user. */
19
21
  metadata?: Record<string, unknown>;
20
22
  /** The unique identifier of the user. */
21
- userId?: string;
23
+ userId: string;
22
24
  }
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as Zep from "../index";
5
5
  export interface EpisodeData {
6
+ createdAt?: string;
6
7
  data: string;
7
8
  sourceDescription?: string;
8
9
  type: Zep.GraphDataType;
@@ -2,5 +2,5 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface NewFact {
5
- fact?: string;
5
+ fact: string;
6
6
  }
@@ -8,6 +8,7 @@ import { GraphDataType } from "../../../../types/GraphDataType";
8
8
  export declare const AddDataRequest: core.serialization.Schema<serializers.AddDataRequest.Raw, Zep.AddDataRequest>;
9
9
  export declare namespace AddDataRequest {
10
10
  interface Raw {
11
+ created_at?: string | null;
11
12
  data: string;
12
13
  group_id?: string | null;
13
14
  source_description?: string | null;
@@ -40,6 +40,7 @@ exports.AddDataRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
41
  const GraphDataType_1 = require("../../../../types/GraphDataType");
42
42
  exports.AddDataRequest = core.serialization.object({
43
+ createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
43
44
  data: core.serialization.string(),
44
45
  groupId: core.serialization.property("group_id", core.serialization.string().optional()),
45
46
  sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()),
@@ -8,6 +8,6 @@ import { NewFact } from "../../../../types/NewFact";
8
8
  export declare const AddFactsRequest: core.serialization.Schema<serializers.AddFactsRequest.Raw, Zep.AddFactsRequest>;
9
9
  export declare namespace AddFactsRequest {
10
10
  interface Raw {
11
- facts?: NewFact.Raw[] | null;
11
+ facts: NewFact.Raw[];
12
12
  }
13
13
  }
@@ -40,5 +40,5 @@ exports.AddFactsRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
41
  const NewFact_1 = require("../../../../types/NewFact");
42
42
  exports.AddFactsRequest = core.serialization.object({
43
- facts: core.serialization.list(NewFact_1.NewFact).optional(),
43
+ facts: core.serialization.list(NewFact_1.NewFact),
44
44
  });
@@ -13,6 +13,6 @@ export declare namespace CreateUserRequest {
13
13
  first_name?: string | null;
14
14
  last_name?: string | null;
15
15
  metadata?: Record<string, unknown> | null;
16
- user_id?: string | null;
16
+ user_id: string;
17
17
  }
18
18
  }
@@ -45,5 +45,5 @@ exports.CreateUserRequest = core.serialization.object({
45
45
  firstName: core.serialization.property("first_name", core.serialization.string().optional()),
46
46
  lastName: core.serialization.property("last_name", core.serialization.string().optional()),
47
47
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
48
- userId: core.serialization.property("user_id", core.serialization.string().optional()),
48
+ userId: core.serialization.property("user_id", core.serialization.string()),
49
49
  });
@@ -8,6 +8,7 @@ import { GraphDataType } from "./GraphDataType";
8
8
  export declare const EpisodeData: core.serialization.ObjectSchema<serializers.EpisodeData.Raw, Zep.EpisodeData>;
9
9
  export declare namespace EpisodeData {
10
10
  interface Raw {
11
+ created_at?: string | null;
11
12
  data: string;
12
13
  source_description?: string | null;
13
14
  type: GraphDataType.Raw;
@@ -40,6 +40,7 @@ exports.EpisodeData = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const GraphDataType_1 = require("./GraphDataType");
42
42
  exports.EpisodeData = core.serialization.object({
43
+ createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
43
44
  data: core.serialization.string(),
44
45
  sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()),
45
46
  type: GraphDataType_1.GraphDataType,
@@ -7,6 +7,6 @@ import * as core from "../../core";
7
7
  export declare const NewFact: core.serialization.ObjectSchema<serializers.NewFact.Raw, Zep.NewFact>;
8
8
  export declare namespace NewFact {
9
9
  interface Raw {
10
- fact?: string | null;
10
+ fact: string;
11
11
  }
12
12
  }
@@ -39,5 +39,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.NewFact = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.NewFact = core.serialization.object({
42
- fact: core.serialization.string().optional(),
42
+ fact: core.serialization.string(),
43
43
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.11.0";
1
+ export declare const SDK_VERSION = "2.12.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.11.0";
4
+ exports.SDK_VERSION = "2.12.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getzep/zep-cloud",
3
- "version": "2.11.0",
3
+ "version": "2.12.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",
package/reference.md CHANGED
@@ -2140,7 +2140,13 @@ Deprecated API: Adds facts to a session
2140
2140
  <dd>
2141
2141
 
2142
2142
  ```typescript
2143
- await client.memory.addSessionFacts("sessionId");
2143
+ await client.memory.addSessionFacts("sessionId", {
2144
+ facts: [
2145
+ {
2146
+ fact: "fact",
2147
+ },
2148
+ ],
2149
+ });
2144
2150
  ```
2145
2151
 
2146
2152
  </dd>
@@ -3230,7 +3236,9 @@ Adds a user.
3230
3236
  <dd>
3231
3237
 
3232
3238
  ```typescript
3233
- await client.user.add();
3239
+ await client.user.add({
3240
+ userId: "user_id",
3241
+ });
3234
3242
  ```
3235
3243
 
3236
3244
  </dd>
@@ -8,6 +8,7 @@ import { GraphDataType } from "../../../../types/GraphDataType";
8
8
  export declare const AddDataRequest: core.serialization.Schema<serializers.AddDataRequest.Raw, Zep.AddDataRequest>;
9
9
  export declare namespace AddDataRequest {
10
10
  interface Raw {
11
+ created_at?: string | null;
11
12
  data: string;
12
13
  group_id?: string | null;
13
14
  source_description?: string | null;
@@ -40,6 +40,7 @@ exports.AddDataRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
41
  const GraphDataType_1 = require("../../../../types/GraphDataType");
42
42
  exports.AddDataRequest = core.serialization.object({
43
+ createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
43
44
  data: core.serialization.string(),
44
45
  groupId: core.serialization.property("group_id", core.serialization.string().optional()),
45
46
  sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()),
@@ -8,6 +8,6 @@ import { NewFact } from "../../../../types/NewFact";
8
8
  export declare const AddFactsRequest: core.serialization.Schema<serializers.AddFactsRequest.Raw, Zep.AddFactsRequest>;
9
9
  export declare namespace AddFactsRequest {
10
10
  interface Raw {
11
- facts?: NewFact.Raw[] | null;
11
+ facts: NewFact.Raw[];
12
12
  }
13
13
  }
@@ -40,5 +40,5 @@ exports.AddFactsRequest = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
41
  const NewFact_1 = require("../../../../types/NewFact");
42
42
  exports.AddFactsRequest = core.serialization.object({
43
- facts: core.serialization.list(NewFact_1.NewFact).optional(),
43
+ facts: core.serialization.list(NewFact_1.NewFact),
44
44
  });
@@ -13,6 +13,6 @@ export declare namespace CreateUserRequest {
13
13
  first_name?: string | null;
14
14
  last_name?: string | null;
15
15
  metadata?: Record<string, unknown> | null;
16
- user_id?: string | null;
16
+ user_id: string;
17
17
  }
18
18
  }
@@ -45,5 +45,5 @@ exports.CreateUserRequest = core.serialization.object({
45
45
  firstName: core.serialization.property("first_name", core.serialization.string().optional()),
46
46
  lastName: core.serialization.property("last_name", core.serialization.string().optional()),
47
47
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
48
- userId: core.serialization.property("user_id", core.serialization.string().optional()),
48
+ userId: core.serialization.property("user_id", core.serialization.string()),
49
49
  });
@@ -8,6 +8,7 @@ import { GraphDataType } from "./GraphDataType";
8
8
  export declare const EpisodeData: core.serialization.ObjectSchema<serializers.EpisodeData.Raw, Zep.EpisodeData>;
9
9
  export declare namespace EpisodeData {
10
10
  interface Raw {
11
+ created_at?: string | null;
11
12
  data: string;
12
13
  source_description?: string | null;
13
14
  type: GraphDataType.Raw;
@@ -40,6 +40,7 @@ exports.EpisodeData = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const GraphDataType_1 = require("./GraphDataType");
42
42
  exports.EpisodeData = core.serialization.object({
43
+ createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
43
44
  data: core.serialization.string(),
44
45
  sourceDescription: core.serialization.property("source_description", core.serialization.string().optional()),
45
46
  type: GraphDataType_1.GraphDataType,
@@ -7,6 +7,6 @@ import * as core from "../../core";
7
7
  export declare const NewFact: core.serialization.ObjectSchema<serializers.NewFact.Raw, Zep.NewFact>;
8
8
  export declare namespace NewFact {
9
9
  interface Raw {
10
- fact?: string | null;
10
+ fact: string;
11
11
  }
12
12
  }
@@ -39,5 +39,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.NewFact = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.NewFact = core.serialization.object({
42
- fact: core.serialization.string().optional(),
42
+ fact: core.serialization.string(),
43
43
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.11.0";
1
+ export declare const SDK_VERSION = "2.12.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.11.0";
4
+ exports.SDK_VERSION = "2.12.0";