@getzep/zep-cloud 2.4.0 → 2.6.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.d.ts +4 -4
- package/api/resources/document/client/Client.js +17 -17
- package/api/resources/graph/client/Client.d.ts +18 -1
- package/api/resources/graph/client/Client.js +82 -3
- package/api/resources/graph/client/requests/AddTripleRequest.d.ts +41 -0
- package/api/resources/graph/client/requests/AddTripleRequest.js +5 -0
- package/api/resources/graph/client/requests/GraphSearchQuery.d.ts +3 -1
- package/api/resources/graph/client/requests/index.d.ts +1 -0
- package/api/resources/graph/resources/edge/client/Client.d.ts +4 -4
- package/api/resources/graph/resources/edge/client/Client.js +8 -8
- package/api/resources/graph/resources/episode/client/Client.d.ts +4 -4
- package/api/resources/graph/resources/episode/client/Client.js +8 -8
- package/api/resources/graph/resources/node/client/Client.d.ts +3 -3
- package/api/resources/graph/resources/node/client/Client.js +6 -6
- package/api/resources/group/client/Client.d.ts +24 -9
- package/api/resources/group/client/Client.js +99 -14
- package/api/resources/group/client/requests/CreateGroupRequest.d.ts +0 -1
- package/api/resources/group/client/requests/GetGroupsOrderedRequest.d.ts +2 -2
- package/api/resources/group/client/requests/UpdateGroupRequest.d.ts +13 -0
- package/api/resources/group/client/requests/UpdateGroupRequest.js +5 -0
- package/api/resources/group/client/requests/index.d.ts +1 -0
- package/api/resources/memory/client/Client.d.ts +20 -22
- package/api/resources/memory/client/Client.js +42 -44
- package/api/resources/memory/client/requests/AddMemoryRequest.d.ts +8 -2
- package/api/resources/memory/client/requests/CreateSessionRequest.d.ts +2 -2
- package/api/resources/memory/client/requests/MemoryGetRequest.d.ts +1 -1
- package/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.d.ts +1 -1
- package/api/resources/memory/client/requests/MemoryListSessionsRequest.d.ts +3 -3
- package/api/resources/memory/client/requests/ModelsMessageMetadataUpdate.d.ts +1 -1
- package/api/resources/memory/client/requests/SessionSearchQuery.d.ts +7 -7
- package/api/resources/memory/client/requests/UpdateSessionRequest.d.ts +1 -1
- package/api/resources/user/client/Client.d.ts +8 -8
- package/api/resources/user/client/Client.js +16 -16
- package/api/types/AddTripleResponse.d.ts +9 -0
- package/api/types/AddTripleResponse.js +5 -0
- package/api/types/ClassifySessionRequest.d.ts +2 -2
- package/api/types/EntityNode.d.ts +2 -0
- package/api/types/Fact.d.ts +1 -1
- package/api/types/Group.d.ts +1 -1
- package/api/types/Memory.d.ts +3 -9
- package/api/types/Message.d.ts +3 -3
- package/api/types/SearchFilters.d.ts +7 -0
- package/api/types/SearchFilters.js +5 -0
- package/api/types/Session.d.ts +4 -2
- package/api/types/User.d.ts +3 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/resources/document/client/Client.d.ts +4 -4
- package/dist/api/resources/document/client/Client.js +17 -17
- package/dist/api/resources/graph/client/Client.d.ts +18 -1
- package/dist/api/resources/graph/client/Client.js +82 -3
- package/dist/api/resources/graph/client/requests/AddTripleRequest.d.ts +41 -0
- package/dist/api/resources/graph/client/requests/AddTripleRequest.js +5 -0
- package/dist/api/resources/graph/client/requests/GraphSearchQuery.d.ts +3 -1
- package/dist/api/resources/graph/client/requests/index.d.ts +1 -0
- package/dist/api/resources/graph/resources/edge/client/Client.d.ts +4 -4
- package/dist/api/resources/graph/resources/edge/client/Client.js +8 -8
- package/dist/api/resources/graph/resources/episode/client/Client.d.ts +4 -4
- package/dist/api/resources/graph/resources/episode/client/Client.js +8 -8
- package/dist/api/resources/graph/resources/node/client/Client.d.ts +3 -3
- package/dist/api/resources/graph/resources/node/client/Client.js +6 -6
- package/dist/api/resources/group/client/Client.d.ts +24 -9
- package/dist/api/resources/group/client/Client.js +99 -14
- package/dist/api/resources/group/client/requests/CreateGroupRequest.d.ts +0 -1
- package/dist/api/resources/group/client/requests/GetGroupsOrderedRequest.d.ts +2 -2
- package/dist/api/resources/group/client/requests/UpdateGroupRequest.d.ts +13 -0
- package/dist/api/resources/group/client/requests/UpdateGroupRequest.js +5 -0
- package/dist/api/resources/group/client/requests/index.d.ts +1 -0
- package/dist/api/resources/memory/client/Client.d.ts +20 -22
- package/dist/api/resources/memory/client/Client.js +42 -44
- package/dist/api/resources/memory/client/requests/AddMemoryRequest.d.ts +8 -2
- package/dist/api/resources/memory/client/requests/CreateSessionRequest.d.ts +2 -2
- package/dist/api/resources/memory/client/requests/MemoryGetRequest.d.ts +1 -1
- package/dist/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.d.ts +1 -1
- package/dist/api/resources/memory/client/requests/MemoryListSessionsRequest.d.ts +3 -3
- package/dist/api/resources/memory/client/requests/ModelsMessageMetadataUpdate.d.ts +1 -1
- package/dist/api/resources/memory/client/requests/SessionSearchQuery.d.ts +7 -7
- package/dist/api/resources/memory/client/requests/UpdateSessionRequest.d.ts +1 -1
- package/dist/api/resources/user/client/Client.d.ts +8 -8
- package/dist/api/resources/user/client/Client.js +16 -16
- package/dist/api/types/AddTripleResponse.d.ts +9 -0
- package/dist/api/types/AddTripleResponse.js +5 -0
- package/dist/api/types/ClassifySessionRequest.d.ts +2 -2
- package/dist/api/types/EntityNode.d.ts +2 -0
- package/dist/api/types/Fact.d.ts +1 -1
- package/dist/api/types/Group.d.ts +1 -1
- package/dist/api/types/Memory.d.ts +3 -9
- package/dist/api/types/Message.d.ts +3 -3
- package/dist/api/types/SearchFilters.d.ts +7 -0
- package/dist/api/types/SearchFilters.js +5 -0
- package/dist/api/types/Session.d.ts +4 -2
- package/dist/api/types/User.d.ts +3 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/graph/client/requests/AddTripleRequest.d.ts +26 -0
- package/dist/serialization/resources/graph/client/requests/AddTripleRequest.js +57 -0
- package/dist/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +2 -0
- package/dist/serialization/resources/graph/client/requests/GraphSearchQuery.js +2 -0
- package/dist/serialization/resources/graph/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/graph/client/requests/index.js +3 -1
- package/dist/serialization/resources/group/client/requests/UpdateGroupRequest.d.ts +15 -0
- package/dist/serialization/resources/group/client/requests/UpdateGroupRequest.js +46 -0
- package/dist/serialization/resources/group/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/group/client/requests/index.js +3 -1
- package/dist/serialization/resources/memory/client/requests/AddMemoryRequest.d.ts +2 -0
- package/dist/serialization/resources/memory/client/requests/AddMemoryRequest.js +2 -0
- package/dist/serialization/types/AddTripleResponse.d.ts +16 -0
- package/dist/serialization/types/AddTripleResponse.js +47 -0
- package/dist/serialization/types/EntityNode.d.ts +1 -0
- package/dist/serialization/types/EntityNode.js +1 -0
- package/dist/serialization/types/SearchFilters.d.ts +12 -0
- package/dist/serialization/types/SearchFilters.js +43 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/examples/langgraph/.env.example +7 -0
- package/examples/langgraph/README.md +165 -0
- package/examples/langgraph/agent.ts +261 -0
- package/examples/langgraph/package-lock.json +1697 -0
- package/examples/langgraph/package.json +20 -0
- package/examples/langgraph/zep-memory.ts +271 -0
- package/package.json +1 -1
- package/reference.md +191 -68
- package/serialization/resources/graph/client/requests/AddTripleRequest.d.ts +26 -0
- package/serialization/resources/graph/client/requests/AddTripleRequest.js +57 -0
- package/serialization/resources/graph/client/requests/GraphSearchQuery.d.ts +2 -0
- package/serialization/resources/graph/client/requests/GraphSearchQuery.js +2 -0
- package/serialization/resources/graph/client/requests/index.d.ts +1 -0
- package/serialization/resources/graph/client/requests/index.js +3 -1
- package/serialization/resources/group/client/requests/UpdateGroupRequest.d.ts +15 -0
- package/serialization/resources/group/client/requests/UpdateGroupRequest.js +46 -0
- package/serialization/resources/group/client/requests/index.d.ts +1 -0
- package/serialization/resources/group/client/requests/index.js +3 -1
- package/serialization/resources/memory/client/requests/AddMemoryRequest.d.ts +2 -0
- package/serialization/resources/memory/client/requests/AddMemoryRequest.js +2 -0
- package/serialization/types/AddTripleResponse.d.ts +16 -0
- package/serialization/types/AddTripleResponse.js +47 -0
- package/serialization/types/EntityNode.d.ts +1 -0
- package/serialization/types/EntityNode.js +1 -0
- package/serialization/types/SearchFilters.d.ts +12 -0
- package/serialization/types/SearchFilters.js +43 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -60,7 +60,7 @@ class User {
|
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Adds a user.
|
|
64
64
|
*
|
|
65
65
|
* @param {Zep.CreateUserRequest} request
|
|
66
66
|
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -77,7 +77,7 @@ class User {
|
|
|
77
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
78
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "users"),
|
|
79
79
|
method: "POST",
|
|
80
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
80
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
body: serializers.CreateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -135,7 +135,7 @@ class User {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
138
|
+
* Returns all users.
|
|
139
139
|
*
|
|
140
140
|
* @param {Zep.UserListOrderedRequest} request
|
|
141
141
|
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -160,7 +160,7 @@ class User {
|
|
|
160
160
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
161
161
|
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
162
|
method: "GET",
|
|
163
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
163
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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
164
|
contentType: "application/json",
|
|
165
165
|
queryParameters: _queryParams,
|
|
166
166
|
requestType: "json",
|
|
@@ -218,7 +218,7 @@ class User {
|
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
221
|
-
*
|
|
221
|
+
* Returns a user.
|
|
222
222
|
*
|
|
223
223
|
* @param {string} userId - The user_id of the user to get.
|
|
224
224
|
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -235,7 +235,7 @@ class User {
|
|
|
235
235
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
236
236
|
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
237
|
method: "GET",
|
|
238
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
238
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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
239
|
contentType: "application/json",
|
|
240
240
|
requestType: "json",
|
|
241
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -292,7 +292,7 @@ class User {
|
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
/**
|
|
295
|
-
*
|
|
295
|
+
* Deletes a user.
|
|
296
296
|
*
|
|
297
297
|
* @param {string} userId - User ID
|
|
298
298
|
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -309,7 +309,7 @@ class User {
|
|
|
309
309
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
310
310
|
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
311
|
method: "DELETE",
|
|
312
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
312
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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
313
|
contentType: "application/json",
|
|
314
314
|
requestType: "json",
|
|
315
315
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -366,7 +366,7 @@ class User {
|
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
368
|
/**
|
|
369
|
-
*
|
|
369
|
+
* Updates a user.
|
|
370
370
|
*
|
|
371
371
|
* @param {string} userId - User ID
|
|
372
372
|
* @param {Zep.UpdateUserRequest} request
|
|
@@ -385,7 +385,7 @@ class User {
|
|
|
385
385
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
386
386
|
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
387
|
method: "PATCH",
|
|
388
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
388
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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
389
|
contentType: "application/json",
|
|
390
390
|
requestType: "json",
|
|
391
391
|
body: serializers.UpdateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -451,7 +451,7 @@ class User {
|
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
453
|
/**
|
|
454
|
-
* Get
|
|
454
|
+
* Deprecated: Use Get User Edges instead.
|
|
455
455
|
*
|
|
456
456
|
* @param {string} userId - The user_id of the user to get.
|
|
457
457
|
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -468,7 +468,7 @@ class User {
|
|
|
468
468
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
469
469
|
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
470
|
method: "GET",
|
|
471
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
471
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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
472
|
contentType: "application/json",
|
|
473
473
|
requestType: "json",
|
|
474
474
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -525,7 +525,7 @@ class User {
|
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
527
|
/**
|
|
528
|
-
*
|
|
528
|
+
* Returns a user's node.
|
|
529
529
|
*
|
|
530
530
|
* @param {string} userId - The user_id of the user to get the node for.
|
|
531
531
|
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -542,7 +542,7 @@ class User {
|
|
|
542
542
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
543
543
|
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
544
|
method: "GET",
|
|
545
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
545
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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
546
|
contentType: "application/json",
|
|
547
547
|
requestType: "json",
|
|
548
548
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -599,7 +599,7 @@ class User {
|
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
/**
|
|
602
|
-
*
|
|
602
|
+
* Returns all sessions for a user.
|
|
603
603
|
*
|
|
604
604
|
* @param {string} userId - User ID
|
|
605
605
|
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -615,7 +615,7 @@ class User {
|
|
|
615
615
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
616
616
|
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
617
|
method: "GET",
|
|
618
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
618
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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
619
|
contentType: "application/json",
|
|
620
620
|
requestType: "json",
|
|
621
621
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -8,8 +8,8 @@ export interface ClassifySessionRequest {
|
|
|
8
8
|
instruction?: string;
|
|
9
9
|
/** The number of session messages to consider for classification. Defaults to 4. */
|
|
10
10
|
lastN?: number;
|
|
11
|
-
/** The name of the classifier.
|
|
11
|
+
/** The name of the classifier. */
|
|
12
12
|
name: string;
|
|
13
|
-
/**
|
|
13
|
+
/** Deprecated */
|
|
14
14
|
persist?: boolean;
|
|
15
15
|
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface EntityNode {
|
|
5
|
+
/** Additional attributes of the node. Dependent on node labels */
|
|
6
|
+
attributes?: Record<string, unknown>;
|
|
5
7
|
/** Creation time of the node */
|
|
6
8
|
createdAt: string;
|
|
7
9
|
/** Labels associated with the node */
|
package/api/types/Fact.d.ts
CHANGED
package/api/types/Group.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ import * as Zep from "../index";
|
|
|
5
5
|
export interface Group {
|
|
6
6
|
createdAt?: string;
|
|
7
7
|
description?: string;
|
|
8
|
+
/** Deprecated */
|
|
8
9
|
externalId?: string;
|
|
9
10
|
factRatingInstruction?: Zep.FactRatingInstruction;
|
|
10
11
|
groupId?: string;
|
|
11
|
-
/** TODO deprecate */
|
|
12
12
|
id?: number;
|
|
13
13
|
name?: string;
|
|
14
14
|
projectUuid?: string;
|
package/api/types/Memory.d.ts
CHANGED
|
@@ -5,20 +5,14 @@ import * as Zep from "../index";
|
|
|
5
5
|
export interface Memory {
|
|
6
6
|
/** Memory context containing relevant facts and entities for the session. Can be put into the prompt directly. */
|
|
7
7
|
context?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Most recent list of facts derived from the session. (cloud only)
|
|
10
|
-
* Deprecated: Facts will be deprecated in future releases and relevant_facts should be used instead.
|
|
11
|
-
*/
|
|
8
|
+
/** Deprecated: Use relevant_facts instead. */
|
|
12
9
|
facts?: string[];
|
|
13
10
|
/** A list of message objects, where each message contains a role and content. Only last_n messages will be returned */
|
|
14
11
|
messages?: Zep.Message[];
|
|
15
|
-
/**
|
|
12
|
+
/** Deprecated */
|
|
16
13
|
metadata?: Record<string, unknown>;
|
|
17
14
|
/** Most relevant facts to the recent messages in the session. */
|
|
18
15
|
relevantFacts?: Zep.Fact[];
|
|
19
|
-
/**
|
|
20
|
-
* The most relevant summaries to the recent conversation. (cloud only)
|
|
21
|
-
* Deprecated: Please use context string instead.
|
|
22
|
-
*/
|
|
16
|
+
/** Deprecated: Use context string instead. */
|
|
23
17
|
summary?: Zep.Summary;
|
|
24
18
|
}
|
package/api/types/Message.d.ts
CHANGED
|
@@ -9,13 +9,13 @@ export interface Message {
|
|
|
9
9
|
createdAt?: string;
|
|
10
10
|
/** The metadata associated with the message. */
|
|
11
11
|
metadata?: Record<string, unknown>;
|
|
12
|
-
/**
|
|
12
|
+
/** Customizable role of the sender of the message (e.g., "john", "sales_agent"). */
|
|
13
13
|
role?: string;
|
|
14
14
|
/** The type of the role (e.g., "user", "system"). */
|
|
15
15
|
roleType: Zep.RoleType;
|
|
16
|
-
/**
|
|
16
|
+
/** Deprecated */
|
|
17
17
|
tokenCount?: number;
|
|
18
|
-
/**
|
|
18
|
+
/** Deprecated */
|
|
19
19
|
updatedAt?: string;
|
|
20
20
|
/** The unique identifier of the message. */
|
|
21
21
|
uuid?: string;
|
package/api/types/Session.d.ts
CHANGED
|
@@ -7,15 +7,17 @@ export interface Session {
|
|
|
7
7
|
createdAt?: string;
|
|
8
8
|
deletedAt?: string;
|
|
9
9
|
endedAt?: string;
|
|
10
|
+
/** Deprecated */
|
|
10
11
|
factRatingInstruction?: Zep.FactRatingInstruction;
|
|
12
|
+
/** Deprecated */
|
|
11
13
|
facts?: string[];
|
|
12
|
-
/** TODO deprecate */
|
|
13
14
|
id?: number;
|
|
15
|
+
/** Deprecated */
|
|
14
16
|
metadata?: Record<string, unknown>;
|
|
15
17
|
projectUuid?: string;
|
|
16
18
|
sessionId?: string;
|
|
19
|
+
/** Deprecated */
|
|
17
20
|
updatedAt?: string;
|
|
18
|
-
/** Must be a pointer to allow for null values */
|
|
19
21
|
userId?: string;
|
|
20
22
|
uuid?: string;
|
|
21
23
|
}
|
package/api/types/User.d.ts
CHANGED
|
@@ -10,9 +10,12 @@ export interface User {
|
|
|
10
10
|
firstName?: string;
|
|
11
11
|
id?: number;
|
|
12
12
|
lastName?: string;
|
|
13
|
+
/** Deprecated */
|
|
13
14
|
metadata?: Record<string, unknown>;
|
|
14
15
|
projectUuid?: string;
|
|
16
|
+
/** Deprecated */
|
|
15
17
|
sessionCount?: number;
|
|
18
|
+
/** Deprecated */
|
|
16
19
|
updatedAt?: string;
|
|
17
20
|
userId?: string;
|
|
18
21
|
uuid?: string;
|
package/api/types/index.d.ts
CHANGED
|
@@ -32,11 +32,13 @@ export * from "./SummaryListResponse";
|
|
|
32
32
|
export * from "./User";
|
|
33
33
|
export * from "./UserListResponse";
|
|
34
34
|
export * from "./UserNodeResponse";
|
|
35
|
+
export * from "./AddTripleResponse";
|
|
35
36
|
export * from "./EntityEdge";
|
|
36
37
|
export * from "./EntityNode";
|
|
37
38
|
export * from "./GraphSearchResults";
|
|
38
39
|
export * from "./GraphSearchScope";
|
|
39
40
|
export * from "./Reranker";
|
|
41
|
+
export * from "./SearchFilters";
|
|
40
42
|
export * from "./ClassifySessionRequest";
|
|
41
43
|
export * from "./CreateDocumentRequest";
|
|
42
44
|
export * from "./FactRatingExamples";
|
package/api/types/index.js
CHANGED
|
@@ -48,11 +48,13 @@ __exportStar(require("./SummaryListResponse"), exports);
|
|
|
48
48
|
__exportStar(require("./User"), exports);
|
|
49
49
|
__exportStar(require("./UserListResponse"), exports);
|
|
50
50
|
__exportStar(require("./UserNodeResponse"), exports);
|
|
51
|
+
__exportStar(require("./AddTripleResponse"), exports);
|
|
51
52
|
__exportStar(require("./EntityEdge"), exports);
|
|
52
53
|
__exportStar(require("./EntityNode"), exports);
|
|
53
54
|
__exportStar(require("./GraphSearchResults"), exports);
|
|
54
55
|
__exportStar(require("./GraphSearchScope"), exports);
|
|
55
56
|
__exportStar(require("./Reranker"), exports);
|
|
57
|
+
__exportStar(require("./SearchFilters"), exports);
|
|
56
58
|
__exportStar(require("./ClassifySessionRequest"), exports);
|
|
57
59
|
__exportStar(require("./CreateDocumentRequest"), exports);
|
|
58
60
|
__exportStar(require("./FactRatingExamples"), exports);
|
|
@@ -174,9 +174,9 @@ export declare class Document {
|
|
|
174
174
|
* @throws {@link Zep.InternalServerError}
|
|
175
175
|
*
|
|
176
176
|
* @example
|
|
177
|
-
* await client.document.
|
|
177
|
+
* await client.document.getsADocumentFromADocumentCollectionByUuid("collectionName", "documentUUID")
|
|
178
178
|
*/
|
|
179
|
-
|
|
179
|
+
getsADocumentFromADocumentCollectionByUuid(collectionName: string, documentUuid: string, requestOptions?: Document.RequestOptions): Promise<Zep.ApidataDocument>;
|
|
180
180
|
/**
|
|
181
181
|
* Delete specified Document from a DocumentCollection.
|
|
182
182
|
*
|
|
@@ -207,9 +207,9 @@ export declare class Document {
|
|
|
207
207
|
* @throws {@link Zep.InternalServerError}
|
|
208
208
|
*
|
|
209
209
|
* @example
|
|
210
|
-
* await client.document.
|
|
210
|
+
* await client.document.updatesADocument("collectionName", "documentUUID")
|
|
211
211
|
*/
|
|
212
|
-
|
|
212
|
+
updatesADocument(collectionName: string, documentUuid: string, request?: Zep.UpdateDocumentRequest, requestOptions?: Document.RequestOptions): Promise<Zep.SuccessResponse>;
|
|
213
213
|
/**
|
|
214
214
|
* Searches over documents in a collection based on provided search criteria. One of text or metadata must be provided. Returns an empty list if no documents are found.
|
|
215
215
|
*
|
|
@@ -87,7 +87,7 @@ class Document {
|
|
|
87
87
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
88
88
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "collections"),
|
|
89
89
|
method: "GET",
|
|
90
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
90
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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),
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
requestType: "json",
|
|
93
93
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -163,7 +163,7 @@ class Document {
|
|
|
163
163
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
164
164
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
|
|
165
165
|
method: "GET",
|
|
166
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
166
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
requestType: "json",
|
|
169
169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -256,7 +256,7 @@ class Document {
|
|
|
256
256
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
257
257
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
|
|
258
258
|
method: "POST",
|
|
259
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
259
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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),
|
|
260
260
|
contentType: "application/json",
|
|
261
261
|
requestType: "json",
|
|
262
262
|
body: serializers.CreateDocumentCollectionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -349,7 +349,7 @@ class Document {
|
|
|
349
349
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
350
350
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
|
|
351
351
|
method: "DELETE",
|
|
352
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
352
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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),
|
|
353
353
|
contentType: "application/json",
|
|
354
354
|
requestType: "json",
|
|
355
355
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -442,7 +442,7 @@ class Document {
|
|
|
442
442
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
443
443
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}`),
|
|
444
444
|
method: "PATCH",
|
|
445
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
445
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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),
|
|
446
446
|
contentType: "application/json",
|
|
447
447
|
requestType: "json",
|
|
448
448
|
body: serializers.UpdateDocumentCollectionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -537,7 +537,7 @@ class Document {
|
|
|
537
537
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
538
538
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents`),
|
|
539
539
|
method: "POST",
|
|
540
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
540
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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),
|
|
541
541
|
contentType: "application/json",
|
|
542
542
|
requestType: "json",
|
|
543
543
|
body: serializers.document.addDocuments.Request.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -622,7 +622,7 @@ class Document {
|
|
|
622
622
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
623
623
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/batchDelete`),
|
|
624
624
|
method: "POST",
|
|
625
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
625
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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),
|
|
626
626
|
contentType: "application/json",
|
|
627
627
|
requestType: "json",
|
|
628
628
|
body: serializers.document.batchDeleteDocuments.Request.jsonOrThrow(request, {
|
|
@@ -709,7 +709,7 @@ class Document {
|
|
|
709
709
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
710
710
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/batchGet`),
|
|
711
711
|
method: "POST",
|
|
712
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
712
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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),
|
|
713
713
|
contentType: "application/json",
|
|
714
714
|
requestType: "json",
|
|
715
715
|
body: serializers.GetDocumentListRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -796,7 +796,7 @@ class Document {
|
|
|
796
796
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
797
797
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/batchUpdate`),
|
|
798
798
|
method: "PATCH",
|
|
799
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
799
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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),
|
|
800
800
|
contentType: "application/json",
|
|
801
801
|
requestType: "json",
|
|
802
802
|
body: serializers.document.batchUpdateDocuments.Request.jsonOrThrow(request, {
|
|
@@ -875,15 +875,15 @@ class Document {
|
|
|
875
875
|
* @throws {@link Zep.InternalServerError}
|
|
876
876
|
*
|
|
877
877
|
* @example
|
|
878
|
-
* await client.document.
|
|
878
|
+
* await client.document.getsADocumentFromADocumentCollectionByUuid("collectionName", "documentUUID")
|
|
879
879
|
*/
|
|
880
|
-
|
|
880
|
+
getsADocumentFromADocumentCollectionByUuid(collectionName, documentUuid, requestOptions) {
|
|
881
881
|
return __awaiter(this, void 0, void 0, function* () {
|
|
882
882
|
var _a, _b;
|
|
883
883
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
884
884
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/uuid/${encodeURIComponent(documentUuid)}`),
|
|
885
885
|
method: "GET",
|
|
886
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
886
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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),
|
|
887
887
|
contentType: "application/json",
|
|
888
888
|
requestType: "json",
|
|
889
889
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -968,7 +968,7 @@ class Document {
|
|
|
968
968
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
969
969
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/uuid/${encodeURIComponent(documentUuid)}`),
|
|
970
970
|
method: "DELETE",
|
|
971
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
971
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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),
|
|
972
972
|
contentType: "application/json",
|
|
973
973
|
requestType: "json",
|
|
974
974
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1054,15 +1054,15 @@ class Document {
|
|
|
1054
1054
|
* @throws {@link Zep.InternalServerError}
|
|
1055
1055
|
*
|
|
1056
1056
|
* @example
|
|
1057
|
-
* await client.document.
|
|
1057
|
+
* await client.document.updatesADocument("collectionName", "documentUUID")
|
|
1058
1058
|
*/
|
|
1059
|
-
|
|
1059
|
+
updatesADocument(collectionName_1, documentUuid_1) {
|
|
1060
1060
|
return __awaiter(this, arguments, void 0, function* (collectionName, documentUuid, request = {}, requestOptions) {
|
|
1061
1061
|
var _a, _b;
|
|
1062
1062
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1063
1063
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/documents/uuid/${encodeURIComponent(documentUuid)}`),
|
|
1064
1064
|
method: "PATCH",
|
|
1065
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
1065
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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),
|
|
1066
1066
|
contentType: "application/json",
|
|
1067
1067
|
requestType: "json",
|
|
1068
1068
|
body: serializers.UpdateDocumentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1160,7 +1160,7 @@ class Document {
|
|
|
1160
1160
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1161
1161
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `collections/${encodeURIComponent(collectionName)}/search`),
|
|
1162
1162
|
method: "POST",
|
|
1163
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
1163
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.6.0", "User-Agent": "zep-cloud/2.6.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),
|
|
1164
1164
|
contentType: "application/json",
|
|
1165
1165
|
queryParameters: _queryParams,
|
|
1166
1166
|
requestType: "json",
|
|
@@ -34,7 +34,7 @@ export declare class Graph {
|
|
|
34
34
|
get episode(): Episode;
|
|
35
35
|
get node(): Node;
|
|
36
36
|
/**
|
|
37
|
-
* Add data to the graph
|
|
37
|
+
* Add data to the graph. Note: each subscription tier has different limits on the amount of data that can be added to the graph please refer to the pricing page for more information.
|
|
38
38
|
*
|
|
39
39
|
* @param {Zep.AddDataRequest} request
|
|
40
40
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -46,6 +46,23 @@ export declare class Graph {
|
|
|
46
46
|
* await client.graph.add()
|
|
47
47
|
*/
|
|
48
48
|
add(request?: Zep.AddDataRequest, requestOptions?: Graph.RequestOptions): Promise<Zep.SuccessResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Add a fact triple for a user or group
|
|
51
|
+
*
|
|
52
|
+
* @param {Zep.AddTripleRequest} request
|
|
53
|
+
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link Zep.BadRequestError}
|
|
56
|
+
* @throws {@link Zep.InternalServerError}
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* await client.graph.addFactTriple({
|
|
60
|
+
* fact: "fact",
|
|
61
|
+
* factName: "fact_name",
|
|
62
|
+
* targetNodeName: "target_node_name"
|
|
63
|
+
* })
|
|
64
|
+
*/
|
|
65
|
+
addFactTriple(request: Zep.AddTripleRequest, requestOptions?: Graph.RequestOptions): Promise<Zep.AddTripleResponse>;
|
|
49
66
|
/**
|
|
50
67
|
* Perform a graph search query.
|
|
51
68
|
*
|