@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.
- package/api/resources/document/client/Client.js +13 -13
- package/api/resources/graph/client/Client.js +6 -6
- package/api/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
- package/api/resources/graph/resources/edge/client/Client.js +4 -4
- package/api/resources/graph/resources/episode/client/Client.js +5 -5
- package/api/resources/graph/resources/node/client/Client.js +3 -3
- package/api/resources/group/client/Client.js +6 -6
- package/api/resources/memory/client/Client.d.ts +6 -2
- package/api/resources/memory/client/Client.js +29 -25
- package/api/resources/memory/client/requests/AddFactsRequest.d.ts +6 -2
- package/api/resources/user/client/Client.d.ts +4 -2
- package/api/resources/user/client/Client.js +13 -11
- package/api/resources/user/client/requests/CreateUserRequest.d.ts +4 -2
- package/api/types/EpisodeData.d.ts +1 -0
- package/api/types/NewFact.d.ts +1 -1
- package/dist/api/resources/document/client/Client.js +13 -13
- package/dist/api/resources/graph/client/Client.js +6 -6
- package/dist/api/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
- package/dist/api/resources/graph/resources/edge/client/Client.js +4 -4
- package/dist/api/resources/graph/resources/episode/client/Client.js +5 -5
- package/dist/api/resources/graph/resources/node/client/Client.js +3 -3
- package/dist/api/resources/group/client/Client.js +6 -6
- package/dist/api/resources/memory/client/Client.d.ts +6 -2
- package/dist/api/resources/memory/client/Client.js +29 -25
- package/dist/api/resources/memory/client/requests/AddFactsRequest.d.ts +6 -2
- package/dist/api/resources/user/client/Client.d.ts +4 -2
- package/dist/api/resources/user/client/Client.js +13 -11
- package/dist/api/resources/user/client/requests/CreateUserRequest.d.ts +4 -2
- package/dist/api/types/EpisodeData.d.ts +1 -0
- package/dist/api/types/NewFact.d.ts +1 -1
- package/dist/serialization/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
- package/dist/serialization/resources/graph/client/requests/AddDataRequest.js +1 -0
- package/dist/serialization/resources/memory/client/requests/AddFactsRequest.d.ts +1 -1
- package/dist/serialization/resources/memory/client/requests/AddFactsRequest.js +1 -1
- package/dist/serialization/resources/user/client/requests/CreateUserRequest.d.ts +1 -1
- package/dist/serialization/resources/user/client/requests/CreateUserRequest.js +1 -1
- package/dist/serialization/types/EpisodeData.d.ts +1 -0
- package/dist/serialization/types/EpisodeData.js +1 -0
- package/dist/serialization/types/NewFact.d.ts +1 -1
- package/dist/serialization/types/NewFact.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +10 -2
- package/serialization/resources/graph/client/requests/AddDataRequest.d.ts +1 -0
- package/serialization/resources/graph/client/requests/AddDataRequest.js +1 -0
- package/serialization/resources/memory/client/requests/AddFactsRequest.d.ts +1 -1
- package/serialization/resources/memory/client/requests/AddFactsRequest.js +1 -1
- package/serialization/resources/user/client/requests/CreateUserRequest.d.ts +1 -1
- package/serialization/resources/user/client/requests/CreateUserRequest.js +1 -1
- package/serialization/types/EpisodeData.d.ts +1 -0
- package/serialization/types/EpisodeData.js +1 -0
- package/serialization/types/NewFact.d.ts +1 -1
- package/serialization/types/NewFact.js +1 -1
- package/version.d.ts +1 -1
- 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,
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
23
|
+
userId: string;
|
|
22
24
|
}
|
|
@@ -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
|
|
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)
|
|
43
|
+
facts: core.serialization.list(NewFact_1.NewFact),
|
|
44
44
|
});
|
|
@@ -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()
|
|
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,
|
|
@@ -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()
|
|
42
|
+
fact: core.serialization.string(),
|
|
43
43
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.12.0";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
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
|
|
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)
|
|
43
|
+
facts: core.serialization.list(NewFact_1.NewFact),
|
|
44
44
|
});
|
|
@@ -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()
|
|
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,
|
|
@@ -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()
|
|
42
|
+
fact: core.serialization.string(),
|
|
43
43
|
});
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.12.0";
|
package/version.js
CHANGED