@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
|
@@ -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
|
*
|
|
@@ -75,7 +75,7 @@ class Graph {
|
|
|
75
75
|
return ((_a = this._node) !== null && _a !== void 0 ? _a : (this._node = new Client_3.Node(this._options)));
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
|
-
* Add data to the graph
|
|
78
|
+
* 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.
|
|
79
79
|
*
|
|
80
80
|
* @param {Zep.AddDataRequest} request
|
|
81
81
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -92,7 +92,7 @@ class Graph {
|
|
|
92
92
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
93
93
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "graph"),
|
|
94
94
|
method: "POST",
|
|
95
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
95
|
+
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),
|
|
96
96
|
contentType: "application/json",
|
|
97
97
|
requestType: "json",
|
|
98
98
|
body: serializers.AddDataRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -149,6 +149,85 @@ class Graph {
|
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* Add a fact triple for a user or group
|
|
154
|
+
*
|
|
155
|
+
* @param {Zep.AddTripleRequest} request
|
|
156
|
+
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
157
|
+
*
|
|
158
|
+
* @throws {@link Zep.BadRequestError}
|
|
159
|
+
* @throws {@link Zep.InternalServerError}
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* await client.graph.addFactTriple({
|
|
163
|
+
* fact: "fact",
|
|
164
|
+
* factName: "fact_name",
|
|
165
|
+
* targetNodeName: "target_node_name"
|
|
166
|
+
* })
|
|
167
|
+
*/
|
|
168
|
+
addFactTriple(request, requestOptions) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
var _a, _b;
|
|
171
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
172
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "graph/add-fact-triple"),
|
|
173
|
+
method: "POST",
|
|
174
|
+
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),
|
|
175
|
+
contentType: "application/json",
|
|
176
|
+
requestType: "json",
|
|
177
|
+
body: serializers.AddTripleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
178
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
179
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
180
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
181
|
+
});
|
|
182
|
+
if (_response.ok) {
|
|
183
|
+
return serializers.AddTripleResponse.parseOrThrow(_response.body, {
|
|
184
|
+
unrecognizedObjectKeys: "passthrough",
|
|
185
|
+
allowUnrecognizedUnionMembers: true,
|
|
186
|
+
allowUnrecognizedEnumValues: true,
|
|
187
|
+
skipValidation: true,
|
|
188
|
+
breadcrumbsPrefix: ["response"],
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
if (_response.error.reason === "status-code") {
|
|
192
|
+
switch (_response.error.statusCode) {
|
|
193
|
+
case 400:
|
|
194
|
+
throw new Zep.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
195
|
+
unrecognizedObjectKeys: "passthrough",
|
|
196
|
+
allowUnrecognizedUnionMembers: true,
|
|
197
|
+
allowUnrecognizedEnumValues: true,
|
|
198
|
+
skipValidation: true,
|
|
199
|
+
breadcrumbsPrefix: ["response"],
|
|
200
|
+
}));
|
|
201
|
+
case 500:
|
|
202
|
+
throw new Zep.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
203
|
+
unrecognizedObjectKeys: "passthrough",
|
|
204
|
+
allowUnrecognizedUnionMembers: true,
|
|
205
|
+
allowUnrecognizedEnumValues: true,
|
|
206
|
+
skipValidation: true,
|
|
207
|
+
breadcrumbsPrefix: ["response"],
|
|
208
|
+
}));
|
|
209
|
+
default:
|
|
210
|
+
throw new errors.ZepError({
|
|
211
|
+
statusCode: _response.error.statusCode,
|
|
212
|
+
body: _response.error.body,
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
switch (_response.error.reason) {
|
|
217
|
+
case "non-json":
|
|
218
|
+
throw new errors.ZepError({
|
|
219
|
+
statusCode: _response.error.statusCode,
|
|
220
|
+
body: _response.error.rawBody,
|
|
221
|
+
});
|
|
222
|
+
case "timeout":
|
|
223
|
+
throw new errors.ZepTimeoutError("Timeout exceeded when calling POST /graph/add-fact-triple.");
|
|
224
|
+
case "unknown":
|
|
225
|
+
throw new errors.ZepError({
|
|
226
|
+
message: _response.error.errorMessage,
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
}
|
|
152
231
|
/**
|
|
153
232
|
* Perform a graph search query.
|
|
154
233
|
*
|
|
@@ -169,7 +248,7 @@ class Graph {
|
|
|
169
248
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
170
249
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, "graph/search"),
|
|
171
250
|
method: "POST",
|
|
172
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
251
|
+
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),
|
|
173
252
|
contentType: "application/json",
|
|
174
253
|
requestType: "json",
|
|
175
254
|
body: serializers.GraphSearchQuery.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* fact: "fact",
|
|
8
|
+
* factName: "fact_name",
|
|
9
|
+
* targetNodeName: "target_node_name"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface AddTripleRequest {
|
|
13
|
+
/** The timestamp of the message */
|
|
14
|
+
createdAt?: string;
|
|
15
|
+
/** The time (if any) at which the edge expires */
|
|
16
|
+
expiredAt?: string;
|
|
17
|
+
/** The fact relating the two nodes that this edge represents */
|
|
18
|
+
fact: string;
|
|
19
|
+
/** The name of the edge to add. Should be all caps using snake case (eg RELATES_TO) */
|
|
20
|
+
factName: string;
|
|
21
|
+
/** The uuid of the edge to add */
|
|
22
|
+
factUuid?: string;
|
|
23
|
+
groupId?: string;
|
|
24
|
+
/** The time (if any) at which the fact stops being true */
|
|
25
|
+
invalidAt?: string;
|
|
26
|
+
/** The name of the source node to add */
|
|
27
|
+
sourceNodeName?: string;
|
|
28
|
+
/** The summary of the source node to add */
|
|
29
|
+
sourceNodeSummary?: string;
|
|
30
|
+
/** The source node uuid */
|
|
31
|
+
sourceNodeUuid?: string;
|
|
32
|
+
/** The name of the target node to add */
|
|
33
|
+
targetNodeName: string;
|
|
34
|
+
/** The summary of the target node to add */
|
|
35
|
+
targetNodeSummary?: string;
|
|
36
|
+
/** The target node uuid */
|
|
37
|
+
targetNodeUuid?: string;
|
|
38
|
+
userId?: string;
|
|
39
|
+
/** The time at which the fact becomes true */
|
|
40
|
+
validAt?: string;
|
|
41
|
+
}
|
|
@@ -15,7 +15,7 @@ export interface GraphSearchQuery {
|
|
|
15
15
|
groupId?: string;
|
|
16
16
|
/** The maximum number of facts to retrieve. Defaults to 10. Limited to 50. */
|
|
17
17
|
limit?: number;
|
|
18
|
-
/**
|
|
18
|
+
/** Deprecated */
|
|
19
19
|
minScore?: number;
|
|
20
20
|
/** weighting for maximal marginal relevance */
|
|
21
21
|
mmrLambda?: number;
|
|
@@ -25,6 +25,8 @@ export interface GraphSearchQuery {
|
|
|
25
25
|
reranker?: Zep.Reranker;
|
|
26
26
|
/** Defaults to Edges. Communities will be added in the future. */
|
|
27
27
|
scope?: Zep.GraphSearchScope;
|
|
28
|
+
/** Search filters to apply to the search */
|
|
29
|
+
searchFilters?: Zep.SearchFilters;
|
|
28
30
|
/** one of user_id or group_id must be provided */
|
|
29
31
|
userId?: string;
|
|
30
32
|
}
|
|
@@ -25,7 +25,7 @@ export declare class Edge {
|
|
|
25
25
|
protected readonly _options: Edge.Options;
|
|
26
26
|
constructor(_options?: Edge.Options);
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Returns all edges for a group.
|
|
29
29
|
*
|
|
30
30
|
* @param {string} groupId - Group ID
|
|
31
31
|
* @param {Edge.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -38,7 +38,7 @@ export declare class Edge {
|
|
|
38
38
|
*/
|
|
39
39
|
getByGroupId(groupId: string, requestOptions?: Edge.RequestOptions): Promise<Zep.EntityEdge[]>;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Returns all edges for a user.
|
|
42
42
|
*
|
|
43
43
|
* @param {string} userId - User ID
|
|
44
44
|
* @param {Edge.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -51,7 +51,7 @@ export declare class Edge {
|
|
|
51
51
|
*/
|
|
52
52
|
getByUserId(userId: string, requestOptions?: Edge.RequestOptions): Promise<Zep.EntityEdge[]>;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Returns a specific edge by its UUID.
|
|
55
55
|
*
|
|
56
56
|
* @param {string} uuid - Edge UUID
|
|
57
57
|
* @param {Edge.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -65,7 +65,7 @@ export declare class Edge {
|
|
|
65
65
|
*/
|
|
66
66
|
get(uuid: string, requestOptions?: Edge.RequestOptions): Promise<Zep.EntityEdge>;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Deletes an edge by UUID.
|
|
69
69
|
*
|
|
70
70
|
* @param {string} uuid - Edge UUID
|
|
71
71
|
* @param {Edge.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -60,7 +60,7 @@ class Edge {
|
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Returns all edges for a group.
|
|
64
64
|
*
|
|
65
65
|
* @param {string} groupId - Group ID
|
|
66
66
|
* @param {Edge.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -77,7 +77,7 @@ class Edge {
|
|
|
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, `graph/edge/group/${encodeURIComponent(groupId)}`),
|
|
79
79
|
method: "GET",
|
|
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
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -134,7 +134,7 @@ class Edge {
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
137
|
+
* Returns all edges for a user.
|
|
138
138
|
*
|
|
139
139
|
* @param {string} userId - User ID
|
|
140
140
|
* @param {Edge.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -151,7 +151,7 @@ class Edge {
|
|
|
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, `graph/edge/user/${encodeURIComponent(userId)}`),
|
|
153
153
|
method: "GET",
|
|
154
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
154
|
+
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),
|
|
155
155
|
contentType: "application/json",
|
|
156
156
|
requestType: "json",
|
|
157
157
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -208,7 +208,7 @@ class Edge {
|
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
/**
|
|
211
|
-
*
|
|
211
|
+
* Returns a specific edge by its UUID.
|
|
212
212
|
*
|
|
213
213
|
* @param {string} uuid - Edge UUID
|
|
214
214
|
* @param {Edge.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -226,7 +226,7 @@ class Edge {
|
|
|
226
226
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
227
227
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `graph/edge/${encodeURIComponent(uuid)}`),
|
|
228
228
|
method: "GET",
|
|
229
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
229
|
+
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),
|
|
230
230
|
contentType: "application/json",
|
|
231
231
|
requestType: "json",
|
|
232
232
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -291,7 +291,7 @@ class Edge {
|
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
293
|
/**
|
|
294
|
-
*
|
|
294
|
+
* Deletes an edge by UUID.
|
|
295
295
|
*
|
|
296
296
|
* @param {string} uuid - Edge UUID
|
|
297
297
|
* @param {Edge.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -308,7 +308,7 @@ class Edge {
|
|
|
308
308
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
309
309
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `graph/edge/${encodeURIComponent(uuid)}`),
|
|
310
310
|
method: "DELETE",
|
|
311
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
311
|
+
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),
|
|
312
312
|
contentType: "application/json",
|
|
313
313
|
requestType: "json",
|
|
314
314
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -25,7 +25,7 @@ export declare class Episode {
|
|
|
25
25
|
protected readonly _options: Episode.Options;
|
|
26
26
|
constructor(_options?: Episode.Options);
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Returns episodes by group id.
|
|
29
29
|
*
|
|
30
30
|
* @param {string} groupId - Group ID
|
|
31
31
|
* @param {Zep.graph.EpisodeGetByGroupIdRequest} request
|
|
@@ -39,7 +39,7 @@ export declare class Episode {
|
|
|
39
39
|
*/
|
|
40
40
|
getByGroupId(groupId: string, request?: Zep.graph.EpisodeGetByGroupIdRequest, requestOptions?: Episode.RequestOptions): Promise<Zep.EpisodeResponse>;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Returns episodes by user id.
|
|
43
43
|
*
|
|
44
44
|
* @param {string} userId - User ID
|
|
45
45
|
* @param {Zep.graph.EpisodeGetByUserIdRequest} request
|
|
@@ -53,7 +53,7 @@ export declare class Episode {
|
|
|
53
53
|
*/
|
|
54
54
|
getByUserId(userId: string, request?: Zep.graph.EpisodeGetByUserIdRequest, requestOptions?: Episode.RequestOptions): Promise<Zep.EpisodeResponse>;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Returns episodes by UUID
|
|
57
57
|
*
|
|
58
58
|
* @param {string} uuid - Episode UUID
|
|
59
59
|
* @param {Episode.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -66,7 +66,7 @@ export declare class Episode {
|
|
|
66
66
|
*/
|
|
67
67
|
get(uuid: string, requestOptions?: Episode.RequestOptions): Promise<Zep.Episode>;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* Deletes an episode by its UUID.
|
|
70
70
|
*
|
|
71
71
|
* @param {string} uuid - Episode UUID
|
|
72
72
|
* @param {Episode.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -60,7 +60,7 @@ class Episode {
|
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Returns episodes by group id.
|
|
64
64
|
*
|
|
65
65
|
* @param {string} groupId - Group ID
|
|
66
66
|
* @param {Zep.graph.EpisodeGetByGroupIdRequest} request
|
|
@@ -83,7 +83,7 @@ class Episode {
|
|
|
83
83
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
84
84
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `graph/episodes/group/${encodeURIComponent(groupId)}`),
|
|
85
85
|
method: "GET",
|
|
86
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
86
|
+
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),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
queryParameters: _queryParams,
|
|
89
89
|
requestType: "json",
|
|
@@ -141,7 +141,7 @@ class Episode {
|
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
144
|
-
*
|
|
144
|
+
* Returns episodes by user id.
|
|
145
145
|
*
|
|
146
146
|
* @param {string} userId - User ID
|
|
147
147
|
* @param {Zep.graph.EpisodeGetByUserIdRequest} request
|
|
@@ -164,7 +164,7 @@ class Episode {
|
|
|
164
164
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
165
165
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `graph/episodes/user/${encodeURIComponent(userId)}`),
|
|
166
166
|
method: "GET",
|
|
167
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
167
|
+
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),
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
queryParameters: _queryParams,
|
|
170
170
|
requestType: "json",
|
|
@@ -222,7 +222,7 @@ class Episode {
|
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
/**
|
|
225
|
-
*
|
|
225
|
+
* Returns episodes by UUID
|
|
226
226
|
*
|
|
227
227
|
* @param {string} uuid - Episode UUID
|
|
228
228
|
* @param {Episode.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -239,7 +239,7 @@ class Episode {
|
|
|
239
239
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
240
240
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `graph/episodes/${encodeURIComponent(uuid)}`),
|
|
241
241
|
method: "GET",
|
|
242
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
242
|
+
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),
|
|
243
243
|
contentType: "application/json",
|
|
244
244
|
requestType: "json",
|
|
245
245
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -296,7 +296,7 @@ class Episode {
|
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
298
|
/**
|
|
299
|
-
*
|
|
299
|
+
* Deletes an episode by its UUID.
|
|
300
300
|
*
|
|
301
301
|
* @param {string} uuid - Episode UUID
|
|
302
302
|
* @param {Episode.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -314,7 +314,7 @@ class Episode {
|
|
|
314
314
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
315
315
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ZepEnvironment.Default, `graph/episodes/${encodeURIComponent(uuid)}`),
|
|
316
316
|
method: "DELETE",
|
|
317
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", "X-Fern-SDK-Version": "2.
|
|
317
|
+
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),
|
|
318
318
|
contentType: "application/json",
|
|
319
319
|
requestType: "json",
|
|
320
320
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|