@getzep/zep-cloud 2.0.0 → 2.1.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 +2 -2
- package/api/resources/graph/resources/edge/client/Client.js +4 -4
- package/api/resources/graph/resources/episode/client/Client.js +3 -3
- package/api/resources/graph/resources/node/client/Client.js +3 -3
- package/api/resources/group/client/Client.js +2 -2
- package/api/resources/group/client/requests/CreateGroupRequest.d.ts +3 -0
- package/api/resources/memory/client/Client.d.ts +1 -1
- package/api/resources/memory/client/Client.js +23 -23
- package/api/resources/user/client/Client.js +7 -7
- package/api/resources/user/client/requests/CreateUserRequest.d.ts +3 -0
- package/api/resources/user/client/requests/UpdateUserRequest.d.ts +3 -0
- package/api/types/{SessionFactRatingExamples.d.ts → ApidataFactRatingExamples.d.ts} +1 -1
- package/{dist/api/types/SessionFactRatingInstruction.d.ts → api/types/ApidataFactRatingInstruction.d.ts} +2 -2
- package/api/types/Episode.d.ts +3 -3
- package/api/types/Fact.d.ts +2 -0
- package/api/types/Group.d.ts +1 -0
- package/api/types/Memory.d.ts +2 -0
- package/api/types/Session.d.ts +2 -1
- package/api/types/index.d.ts +2 -2
- package/api/types/index.js +2 -2
- package/dist/api/resources/document/client/Client.js +13 -13
- package/dist/api/resources/graph/client/Client.js +2 -2
- package/dist/api/resources/graph/resources/edge/client/Client.js +4 -4
- package/dist/api/resources/graph/resources/episode/client/Client.js +3 -3
- package/dist/api/resources/graph/resources/node/client/Client.js +3 -3
- package/dist/api/resources/group/client/Client.js +2 -2
- package/dist/api/resources/group/client/requests/CreateGroupRequest.d.ts +3 -0
- package/dist/api/resources/memory/client/Client.d.ts +1 -1
- package/dist/api/resources/memory/client/Client.js +23 -23
- package/dist/api/resources/user/client/Client.js +7 -7
- package/dist/api/resources/user/client/requests/CreateUserRequest.d.ts +3 -0
- package/dist/api/resources/user/client/requests/UpdateUserRequest.d.ts +3 -0
- package/dist/api/types/{SessionFactRatingExamples.d.ts → ApidataFactRatingExamples.d.ts} +1 -1
- package/{api/types/SessionFactRatingInstruction.d.ts → dist/api/types/ApidataFactRatingInstruction.d.ts} +2 -2
- package/dist/api/types/Episode.d.ts +3 -3
- package/dist/api/types/Fact.d.ts +2 -0
- package/dist/api/types/Group.d.ts +1 -0
- package/dist/api/types/Memory.d.ts +2 -0
- package/dist/api/types/Session.d.ts +2 -1
- package/dist/api/types/index.d.ts +2 -2
- package/dist/api/types/index.js +2 -2
- package/dist/serialization/resources/group/client/requests/CreateGroupRequest.d.ts +2 -0
- package/dist/serialization/resources/group/client/requests/CreateGroupRequest.js +2 -0
- package/dist/serialization/resources/memory/client/index.d.ts +0 -1
- package/dist/serialization/resources/memory/client/index.js +1 -2
- package/dist/serialization/resources/user/client/requests/CreateUserRequest.d.ts +2 -0
- package/dist/serialization/resources/user/client/requests/CreateUserRequest.js +2 -0
- package/dist/serialization/resources/user/client/requests/UpdateUserRequest.d.ts +2 -0
- package/dist/serialization/resources/user/client/requests/UpdateUserRequest.js +2 -0
- package/{serialization/types/SessionFactRatingExamples.d.ts → dist/serialization/types/ApidataFactRatingExamples.d.ts} +2 -2
- package/{serialization/types/SessionFactRatingExamples.js → dist/serialization/types/ApidataFactRatingExamples.js} +2 -2
- package/dist/serialization/types/ApidataFactRatingInstruction.d.ts +14 -0
- package/dist/serialization/types/{SessionFactRatingInstruction.js → ApidataFactRatingInstruction.js} +4 -4
- package/dist/serialization/types/Episode.d.ts +3 -3
- package/dist/serialization/types/Episode.js +3 -3
- package/dist/serialization/types/Fact.d.ts +1 -0
- package/dist/serialization/types/Fact.js +1 -0
- package/dist/serialization/types/Memory.d.ts +1 -0
- package/dist/serialization/types/Memory.js +1 -0
- package/dist/serialization/types/Session.d.ts +2 -2
- package/dist/serialization/types/Session.js +2 -2
- package/dist/serialization/types/index.d.ts +2 -2
- package/dist/serialization/types/index.js +2 -2
- package/examples/memory/memory_example.ts +6 -2
- package/package.json +1 -1
- package/serialization/resources/group/client/requests/CreateGroupRequest.d.ts +2 -0
- package/serialization/resources/group/client/requests/CreateGroupRequest.js +2 -0
- package/serialization/resources/memory/client/index.d.ts +0 -1
- package/serialization/resources/memory/client/index.js +1 -2
- package/serialization/resources/user/client/requests/CreateUserRequest.d.ts +2 -0
- package/serialization/resources/user/client/requests/CreateUserRequest.js +2 -0
- package/serialization/resources/user/client/requests/UpdateUserRequest.d.ts +2 -0
- package/serialization/resources/user/client/requests/UpdateUserRequest.js +2 -0
- package/{dist/serialization/types/SessionFactRatingExamples.d.ts → serialization/types/ApidataFactRatingExamples.d.ts} +2 -2
- package/{dist/serialization/types/SessionFactRatingExamples.js → serialization/types/ApidataFactRatingExamples.js} +2 -2
- package/serialization/types/ApidataFactRatingInstruction.d.ts +14 -0
- package/serialization/types/{SessionFactRatingInstruction.js → ApidataFactRatingInstruction.js} +4 -4
- package/serialization/types/Episode.d.ts +3 -3
- package/serialization/types/Episode.js +3 -3
- package/serialization/types/Fact.d.ts +1 -0
- package/serialization/types/Fact.js +1 -0
- package/serialization/types/Memory.d.ts +1 -0
- package/serialization/types/Memory.js +1 -0
- package/serialization/types/Session.d.ts +2 -2
- package/serialization/types/Session.js +2 -2
- package/serialization/types/index.d.ts +2 -2
- package/serialization/types/index.js +2 -2
- package/dist/serialization/resources/memory/client/deleteFact.d.ts +0 -9
- package/dist/serialization/resources/memory/client/deleteFact.js +0 -31
- package/dist/serialization/types/SessionFactRatingInstruction.d.ts +0 -14
- package/serialization/resources/memory/client/deleteFact.d.ts +0 -9
- package/serialization/resources/memory/client/deleteFact.js +0 -31
- package/serialization/types/SessionFactRatingInstruction.d.ts +0 -14
- /package/api/types/{SessionFactRatingExamples.js → ApidataFactRatingExamples.js} +0 -0
- /package/api/types/{SessionFactRatingInstruction.js → ApidataFactRatingInstruction.js} +0 -0
- /package/dist/api/types/{SessionFactRatingExamples.js → ApidataFactRatingExamples.js} +0 -0
- /package/dist/api/types/{SessionFactRatingInstruction.js → ApidataFactRatingInstruction.js} +0 -0
|
@@ -78,7 +78,7 @@ class Memory {
|
|
|
78
78
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
79
79
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `facts/${encodeURIComponent(factUuid)}`),
|
|
80
80
|
method: "GET",
|
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
84
84
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -151,14 +151,14 @@ class Memory {
|
|
|
151
151
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
152
152
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `facts/${encodeURIComponent(factUuid)}`),
|
|
153
153
|
method: "DELETE",
|
|
154
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
154
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
155
155
|
contentType: "application/json",
|
|
156
156
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
157
157
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
158
158
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
159
159
|
});
|
|
160
160
|
if (_response.ok) {
|
|
161
|
-
return yield serializers.
|
|
161
|
+
return yield serializers.SuccessResponse.parseOrThrow(_response.body, {
|
|
162
162
|
unrecognizedObjectKeys: "passthrough",
|
|
163
163
|
allowUnrecognizedUnionMembers: true,
|
|
164
164
|
allowUnrecognizedEnumValues: true,
|
|
@@ -227,7 +227,7 @@ class Memory {
|
|
|
227
227
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
228
228
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "sessions"),
|
|
229
229
|
method: "POST",
|
|
230
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
230
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
231
231
|
contentType: "application/json",
|
|
232
232
|
body: yield serializers.CreateSessionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
233
233
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -315,7 +315,7 @@ class Memory {
|
|
|
315
315
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
316
316
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "sessions-ordered"),
|
|
317
317
|
method: "GET",
|
|
318
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
318
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
319
319
|
contentType: "application/json",
|
|
320
320
|
queryParameters: _queryParams,
|
|
321
321
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -392,7 +392,7 @@ class Memory {
|
|
|
392
392
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
393
393
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "sessions/end"),
|
|
394
394
|
method: "POST",
|
|
395
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
395
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
396
396
|
contentType: "application/json",
|
|
397
397
|
body: yield serializers.EndSessionsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
398
398
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -480,7 +480,7 @@ class Memory {
|
|
|
480
480
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
481
481
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "sessions/search"),
|
|
482
482
|
method: "POST",
|
|
483
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
483
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
484
484
|
contentType: "application/json",
|
|
485
485
|
queryParameters: _queryParams,
|
|
486
486
|
body: yield serializers.SessionSearchQuery.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -547,7 +547,7 @@ class Memory {
|
|
|
547
547
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
548
548
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}`),
|
|
549
549
|
method: "GET",
|
|
550
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
550
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
551
551
|
contentType: "application/json",
|
|
552
552
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
553
553
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -627,7 +627,7 @@ class Memory {
|
|
|
627
627
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
628
628
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}`),
|
|
629
629
|
method: "PATCH",
|
|
630
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
630
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
631
631
|
contentType: "application/json",
|
|
632
632
|
body: yield serializers.UpdateSessionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
633
633
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -721,7 +721,7 @@ class Memory {
|
|
|
721
721
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
722
722
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/classify`),
|
|
723
723
|
method: "POST",
|
|
724
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
724
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
725
725
|
contentType: "application/json",
|
|
726
726
|
body: yield serializers.ClassifySessionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
727
727
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -797,7 +797,7 @@ class Memory {
|
|
|
797
797
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
798
798
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/end`),
|
|
799
799
|
method: "POST",
|
|
800
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
800
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
801
801
|
contentType: "application/json",
|
|
802
802
|
body: yield serializers.EndSessionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
803
803
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -884,7 +884,7 @@ class Memory {
|
|
|
884
884
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
885
885
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/extract`),
|
|
886
886
|
method: "POST",
|
|
887
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
887
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
888
888
|
contentType: "application/json",
|
|
889
889
|
body: yield serializers.ExtractDataRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
890
890
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -972,7 +972,7 @@ class Memory {
|
|
|
972
972
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
973
973
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/facts`),
|
|
974
974
|
method: "GET",
|
|
975
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
975
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
976
976
|
contentType: "application/json",
|
|
977
977
|
queryParameters: _queryParams,
|
|
978
978
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1047,7 +1047,7 @@ class Memory {
|
|
|
1047
1047
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1048
1048
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/facts`),
|
|
1049
1049
|
method: "POST",
|
|
1050
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
1050
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1051
1051
|
contentType: "application/json",
|
|
1052
1052
|
body: yield serializers.AddFactsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
1053
1053
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1130,7 +1130,7 @@ class Memory {
|
|
|
1130
1130
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1131
1131
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/memory`),
|
|
1132
1132
|
method: "GET",
|
|
1133
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
1133
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1134
1134
|
contentType: "application/json",
|
|
1135
1135
|
queryParameters: _queryParams,
|
|
1136
1136
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1209,7 +1209,7 @@ class Memory {
|
|
|
1209
1209
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1210
1210
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/memory`),
|
|
1211
1211
|
method: "POST",
|
|
1212
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
1212
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1213
1213
|
contentType: "application/json",
|
|
1214
1214
|
body: yield serializers.AddMemoryRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
1215
1215
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1275,7 +1275,7 @@ class Memory {
|
|
|
1275
1275
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1276
1276
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/memory`),
|
|
1277
1277
|
method: "DELETE",
|
|
1278
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
1278
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1279
1279
|
contentType: "application/json",
|
|
1280
1280
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1281
1281
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -1357,7 +1357,7 @@ class Memory {
|
|
|
1357
1357
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1358
1358
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/messages`),
|
|
1359
1359
|
method: "GET",
|
|
1360
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
1360
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1361
1361
|
contentType: "application/json",
|
|
1362
1362
|
queryParameters: _queryParams,
|
|
1363
1363
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1432,7 +1432,7 @@ class Memory {
|
|
|
1432
1432
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1433
1433
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/messages/${encodeURIComponent(messageUuid)}`),
|
|
1434
1434
|
method: "GET",
|
|
1435
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
1435
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1436
1436
|
contentType: "application/json",
|
|
1437
1437
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1438
1438
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -1511,7 +1511,7 @@ class Memory {
|
|
|
1511
1511
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1512
1512
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/messages/${encodeURIComponent(messageUuid)}`),
|
|
1513
1513
|
method: "PATCH",
|
|
1514
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
1514
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1515
1515
|
contentType: "application/json",
|
|
1516
1516
|
body: yield serializers.ModelsMessageMetadataUpdate.jsonOrThrow(request, {
|
|
1517
1517
|
unrecognizedObjectKeys: "strip",
|
|
@@ -1593,7 +1593,7 @@ class Memory {
|
|
|
1593
1593
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1594
1594
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/search`),
|
|
1595
1595
|
method: "POST",
|
|
1596
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
1596
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1597
1597
|
contentType: "application/json",
|
|
1598
1598
|
queryParameters: _queryParams,
|
|
1599
1599
|
body: yield serializers.MemorySearchPayload.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1668,7 +1668,7 @@ class Memory {
|
|
|
1668
1668
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1669
1669
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/summary`),
|
|
1670
1670
|
method: "GET",
|
|
1671
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
1671
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1672
1672
|
contentType: "application/json",
|
|
1673
1673
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1674
1674
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -1747,7 +1747,7 @@ class Memory {
|
|
|
1747
1747
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1748
1748
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `sessions/${encodeURIComponent(sessionId)}/synthesize_question`),
|
|
1749
1749
|
method: "GET",
|
|
1750
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
1750
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1751
1751
|
contentType: "application/json",
|
|
1752
1752
|
queryParameters: _queryParams,
|
|
1753
1753
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -67,7 +67,7 @@ class User {
|
|
|
67
67
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
68
68
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "users"),
|
|
69
69
|
method: "POST",
|
|
70
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
70
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
71
71
|
contentType: "application/json",
|
|
72
72
|
body: yield serializers.CreateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
73
73
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -149,7 +149,7 @@ class User {
|
|
|
149
149
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
150
150
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "users-ordered"),
|
|
151
151
|
method: "GET",
|
|
152
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
152
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
153
153
|
contentType: "application/json",
|
|
154
154
|
queryParameters: _queryParams,
|
|
155
155
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -223,7 +223,7 @@ class User {
|
|
|
223
223
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
224
224
|
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)}`),
|
|
225
225
|
method: "GET",
|
|
226
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
226
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
227
227
|
contentType: "application/json",
|
|
228
228
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
229
229
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -296,7 +296,7 @@ class User {
|
|
|
296
296
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
297
297
|
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)}`),
|
|
298
298
|
method: "DELETE",
|
|
299
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
299
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
300
300
|
contentType: "application/json",
|
|
301
301
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
302
302
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -371,7 +371,7 @@ class User {
|
|
|
371
371
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
372
372
|
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)}`),
|
|
373
373
|
method: "PATCH",
|
|
374
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
374
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
375
375
|
contentType: "application/json",
|
|
376
376
|
body: yield serializers.UpdateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
377
377
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -453,7 +453,7 @@ class User {
|
|
|
453
453
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
454
454
|
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`),
|
|
455
455
|
method: "GET",
|
|
456
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
456
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
457
457
|
contentType: "application/json",
|
|
458
458
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
459
459
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -525,7 +525,7 @@ class User {
|
|
|
525
525
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
526
526
|
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`),
|
|
527
527
|
method: "GET",
|
|
528
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
528
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
529
529
|
contentType: "application/json",
|
|
530
530
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
531
531
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Zep from "../../../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {}
|
|
@@ -8,6 +9,8 @@
|
|
|
8
9
|
export interface CreateUserRequest {
|
|
9
10
|
/** The email address of the user. */
|
|
10
11
|
email?: string;
|
|
12
|
+
/** Optional instruction to use for fact rating. */
|
|
13
|
+
factRatingInstruction?: Zep.FactRatingInstruction;
|
|
11
14
|
/** The first name of the user. */
|
|
12
15
|
firstName?: string;
|
|
13
16
|
/** The last name of the user. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Zep from "../../../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {}
|
|
@@ -8,6 +9,8 @@
|
|
|
8
9
|
export interface UpdateUserRequest {
|
|
9
10
|
/** The email address of the user. */
|
|
10
11
|
email?: string;
|
|
12
|
+
/** Optional instruction to use for fact rating. */
|
|
13
|
+
factRatingInstruction?: Zep.FactRatingInstruction;
|
|
11
14
|
/** The first name of the user. */
|
|
12
15
|
firstName?: string;
|
|
13
16
|
/** The last name of the user. */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Zep from "../index";
|
|
5
|
-
export interface
|
|
5
|
+
export interface ApidataFactRatingInstruction {
|
|
6
6
|
/**
|
|
7
7
|
* Examples is a list of examples that demonstrate how facts might be rated based on your instruction. You should provide
|
|
8
8
|
* an example of a highly rated example, a low rated example, and a medium (or in between example). For example, if you are rating
|
|
@@ -11,7 +11,7 @@ export interface SessionFactRatingInstruction {
|
|
|
11
11
|
* Medium: "Joe has a fear of flying",
|
|
12
12
|
* Low: "Joe's favorite food is Japanese",
|
|
13
13
|
*/
|
|
14
|
-
examples?: Zep.
|
|
14
|
+
examples?: Zep.ApidataFactRatingExamples;
|
|
15
15
|
/**
|
|
16
16
|
* A string describing how to rate facts as they apply to your application. A trip planning application may
|
|
17
17
|
* use something like "relevancy to planning a trip, the user's preferences when traveling,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Zep from "../index";
|
|
5
5
|
export interface Episode {
|
|
6
|
-
content
|
|
7
|
-
createdAt
|
|
6
|
+
content: string;
|
|
7
|
+
createdAt: string;
|
|
8
8
|
name?: string;
|
|
9
9
|
source?: Zep.GraphDataType;
|
|
10
10
|
sourceDescription?: string;
|
|
11
|
-
uuid
|
|
11
|
+
uuid: string;
|
|
12
12
|
}
|
package/dist/api/types/Fact.d.ts
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface Fact {
|
|
5
|
+
content: string;
|
|
5
6
|
createdAt: string;
|
|
6
7
|
expiredAt?: string;
|
|
8
|
+
/** Deprecated. This field will be removed in the future, please use `content` instead. */
|
|
7
9
|
fact: string;
|
|
8
10
|
invalidAt?: string;
|
|
9
11
|
name?: string;
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Zep from "../index";
|
|
5
5
|
export interface Memory {
|
|
6
|
+
/** Memory context containing relevant facts and entities for the session. Can be put into the prompt directly. */
|
|
7
|
+
context?: string;
|
|
6
8
|
/**
|
|
7
9
|
* Most recent list of facts derived from the session. (cloud only)
|
|
8
10
|
* Deprecated: Facts will be deprecated in future releases and relevant_facts should be used instead.
|
|
@@ -7,8 +7,9 @@ export interface Session {
|
|
|
7
7
|
createdAt?: string;
|
|
8
8
|
deletedAt?: string;
|
|
9
9
|
endedAt?: string;
|
|
10
|
-
factRatingInstruction?: Zep.
|
|
10
|
+
factRatingInstruction?: Zep.ApidataFactRatingInstruction;
|
|
11
11
|
facts?: string[];
|
|
12
|
+
/** TODO deprecate */
|
|
12
13
|
id?: number;
|
|
13
14
|
metadata?: Record<string, unknown>;
|
|
14
15
|
projectUuid?: string;
|
|
@@ -6,6 +6,8 @@ export * from "./ApidataDocumentWithScore";
|
|
|
6
6
|
export * from "./EndSessionResponse";
|
|
7
7
|
export * from "./EndSessionsResponse";
|
|
8
8
|
export * from "./Fact";
|
|
9
|
+
export * from "./ApidataFactRatingExamples";
|
|
10
|
+
export * from "./ApidataFactRatingInstruction";
|
|
9
11
|
export * from "./FactResponse";
|
|
10
12
|
export * from "./FactsResponse";
|
|
11
13
|
export * from "./Episode";
|
|
@@ -20,8 +22,6 @@ export * from "./Question";
|
|
|
20
22
|
export * from "./RoleType";
|
|
21
23
|
export * from "./Session";
|
|
22
24
|
export * from "./SessionClassification";
|
|
23
|
-
export * from "./SessionFactRatingExamples";
|
|
24
|
-
export * from "./SessionFactRatingInstruction";
|
|
25
25
|
export * from "./SessionListResponse";
|
|
26
26
|
export * from "./SessionSearchResponse";
|
|
27
27
|
export * from "./SessionSearchResult";
|
package/dist/api/types/index.js
CHANGED
|
@@ -22,6 +22,8 @@ __exportStar(require("./ApidataDocumentWithScore"), exports);
|
|
|
22
22
|
__exportStar(require("./EndSessionResponse"), exports);
|
|
23
23
|
__exportStar(require("./EndSessionsResponse"), exports);
|
|
24
24
|
__exportStar(require("./Fact"), exports);
|
|
25
|
+
__exportStar(require("./ApidataFactRatingExamples"), exports);
|
|
26
|
+
__exportStar(require("./ApidataFactRatingInstruction"), exports);
|
|
25
27
|
__exportStar(require("./FactResponse"), exports);
|
|
26
28
|
__exportStar(require("./FactsResponse"), exports);
|
|
27
29
|
__exportStar(require("./Episode"), exports);
|
|
@@ -36,8 +38,6 @@ __exportStar(require("./Question"), exports);
|
|
|
36
38
|
__exportStar(require("./RoleType"), exports);
|
|
37
39
|
__exportStar(require("./Session"), exports);
|
|
38
40
|
__exportStar(require("./SessionClassification"), exports);
|
|
39
|
-
__exportStar(require("./SessionFactRatingExamples"), exports);
|
|
40
|
-
__exportStar(require("./SessionFactRatingInstruction"), exports);
|
|
41
41
|
__exportStar(require("./SessionListResponse"), exports);
|
|
42
42
|
__exportStar(require("./SessionSearchResponse"), exports);
|
|
43
43
|
__exportStar(require("./SessionSearchResult"), exports);
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
import * as serializers from "../../../../index";
|
|
5
5
|
import * as Zep from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
|
+
import { ApidataFactRatingInstruction } from "../../../../types/ApidataFactRatingInstruction";
|
|
7
8
|
export declare const CreateGroupRequest: core.serialization.Schema<serializers.CreateGroupRequest.Raw, Zep.CreateGroupRequest>;
|
|
8
9
|
export declare namespace CreateGroupRequest {
|
|
9
10
|
interface Raw {
|
|
10
11
|
description?: string | null;
|
|
12
|
+
fact_rating_instruction?: ApidataFactRatingInstruction.Raw | null;
|
|
11
13
|
group_id?: string | null;
|
|
12
14
|
name?: string | null;
|
|
13
15
|
}
|
|
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CreateGroupRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
const ApidataFactRatingInstruction_1 = require("../../../../types/ApidataFactRatingInstruction");
|
|
31
32
|
exports.CreateGroupRequest = core.serialization.object({
|
|
32
33
|
description: core.serialization.string().optional(),
|
|
34
|
+
factRatingInstruction: core.serialization.property("fact_rating_instruction", ApidataFactRatingInstruction_1.ApidataFactRatingInstruction.optional()),
|
|
33
35
|
groupId: core.serialization.property("group_id", core.serialization.string().optional()),
|
|
34
36
|
name: core.serialization.string().optional(),
|
|
35
37
|
});
|
|
@@ -26,8 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.search = exports.extractData =
|
|
30
|
-
exports.deleteFact = __importStar(require("./deleteFact"));
|
|
29
|
+
exports.search = exports.extractData = void 0;
|
|
31
30
|
exports.extractData = __importStar(require("./extractData"));
|
|
32
31
|
exports.search = __importStar(require("./search"));
|
|
33
32
|
__exportStar(require("./requests"), exports);
|
|
@@ -4,10 +4,12 @@
|
|
|
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 CreateUserRequest: core.serialization.Schema<serializers.CreateUserRequest.Raw, Zep.CreateUserRequest>;
|
|
8
9
|
export declare namespace CreateUserRequest {
|
|
9
10
|
interface Raw {
|
|
10
11
|
email?: string | null;
|
|
12
|
+
fact_rating_instruction?: FactRatingInstruction.Raw | null;
|
|
11
13
|
first_name?: string | null;
|
|
12
14
|
last_name?: string | null;
|
|
13
15
|
metadata?: Record<string, unknown> | null;
|
|
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CreateUserRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
const FactRatingInstruction_1 = require("../../../../types/FactRatingInstruction");
|
|
31
32
|
exports.CreateUserRequest = core.serialization.object({
|
|
32
33
|
email: core.serialization.string().optional(),
|
|
34
|
+
factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_1.FactRatingInstruction.optional()),
|
|
33
35
|
firstName: core.serialization.property("first_name", core.serialization.string().optional()),
|
|
34
36
|
lastName: core.serialization.property("last_name", core.serialization.string().optional()),
|
|
35
37
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
@@ -4,10 +4,12 @@
|
|
|
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 UpdateUserRequest: core.serialization.Schema<serializers.UpdateUserRequest.Raw, Zep.UpdateUserRequest>;
|
|
8
9
|
export declare namespace UpdateUserRequest {
|
|
9
10
|
interface Raw {
|
|
10
11
|
email?: string | null;
|
|
12
|
+
fact_rating_instruction?: FactRatingInstruction.Raw | null;
|
|
11
13
|
first_name?: string | null;
|
|
12
14
|
last_name?: string | null;
|
|
13
15
|
metadata?: Record<string, unknown> | null;
|
|
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.UpdateUserRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
const FactRatingInstruction_1 = require("../../../../types/FactRatingInstruction");
|
|
31
32
|
exports.UpdateUserRequest = core.serialization.object({
|
|
32
33
|
email: core.serialization.string().optional(),
|
|
34
|
+
factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_1.FactRatingInstruction.optional()),
|
|
33
35
|
firstName: core.serialization.property("first_name", core.serialization.string().optional()),
|
|
34
36
|
lastName: core.serialization.property("last_name", core.serialization.string().optional()),
|
|
35
37
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Zep from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const ApidataFactRatingExamples: core.serialization.ObjectSchema<serializers.ApidataFactRatingExamples.Raw, Zep.ApidataFactRatingExamples>;
|
|
8
|
+
export declare namespace ApidataFactRatingExamples {
|
|
9
9
|
interface Raw {
|
|
10
10
|
high?: string | null;
|
|
11
11
|
low?: string | null;
|
|
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ApidataFactRatingExamples = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.ApidataFactRatingExamples = core.serialization.object({
|
|
32
32
|
high: core.serialization.string().optional(),
|
|
33
33
|
low: core.serialization.string().optional(),
|
|
34
34
|
medium: core.serialization.string().optional(),
|
|
@@ -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 { ApidataFactRatingExamples } from "./ApidataFactRatingExamples";
|
|
8
|
+
export declare const ApidataFactRatingInstruction: core.serialization.ObjectSchema<serializers.ApidataFactRatingInstruction.Raw, Zep.ApidataFactRatingInstruction>;
|
|
9
|
+
export declare namespace ApidataFactRatingInstruction {
|
|
10
|
+
interface Raw {
|
|
11
|
+
examples?: ApidataFactRatingExamples.Raw | null;
|
|
12
|
+
instruction?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|