@getzep/zep-cloud 3.1.0 → 3.2.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/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/graph/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/graph/client/Client.js +1 -1
- package/dist/cjs/api/resources/thread/client/Client.js +4 -1
- package/dist/cjs/api/resources/thread/client/requests/ThreadGetRequest.d.ts +4 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/graph/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/graph/client/Client.mjs +1 -1
- package/dist/esm/api/resources/thread/client/Client.mjs +4 -1
- package/dist/esm/api/resources/thread/client/requests/ThreadGetRequest.d.mts +4 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -1
package/dist/cjs/Client.js
CHANGED
|
@@ -47,8 +47,8 @@ class ZepClient {
|
|
|
47
47
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
48
48
|
"X-Fern-Language": "JavaScript",
|
|
49
49
|
"X-Fern-SDK-Name": "zep-cloud",
|
|
50
|
-
"X-Fern-SDK-Version": "3.
|
|
51
|
-
"User-Agent": "zep-cloud/3.
|
|
50
|
+
"X-Fern-SDK-Version": "3.2.0",
|
|
51
|
+
"User-Agent": "zep-cloud/3.2.0",
|
|
52
52
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
53
53
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
54
54
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -151,7 +151,7 @@ export declare class Graph {
|
|
|
151
151
|
create(request: Zep.CreateGraphRequest, requestOptions?: Graph.RequestOptions): core.HttpResponsePromise<Zep.Graph>;
|
|
152
152
|
private __create;
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
154
|
+
* List all graphs. In order to list users, use user.list_ordered instead
|
|
155
155
|
*
|
|
156
156
|
* @param {Zep.GraphListAllRequest} request
|
|
157
157
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -707,7 +707,7 @@ class Graph {
|
|
|
707
707
|
});
|
|
708
708
|
}
|
|
709
709
|
/**
|
|
710
|
-
*
|
|
710
|
+
* List all graphs. In order to list users, use user.list_ordered instead
|
|
711
711
|
*
|
|
712
712
|
* @param {Zep.GraphListAllRequest} request
|
|
713
713
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -436,7 +436,7 @@ class Thread {
|
|
|
436
436
|
__get(threadId_1) {
|
|
437
437
|
return __awaiter(this, arguments, void 0, function* (threadId, request = {}, requestOptions) {
|
|
438
438
|
var _a, _b, _c, _d;
|
|
439
|
-
const { limit, cursor } = request;
|
|
439
|
+
const { limit, cursor, lastn } = request;
|
|
440
440
|
const _queryParams = {};
|
|
441
441
|
if (limit != null) {
|
|
442
442
|
_queryParams["limit"] = limit.toString();
|
|
@@ -444,6 +444,9 @@ class Thread {
|
|
|
444
444
|
if (cursor != null) {
|
|
445
445
|
_queryParams["cursor"] = cursor.toString();
|
|
446
446
|
}
|
|
447
|
+
if (lastn != null) {
|
|
448
|
+
_queryParams["lastn"] = lastn.toString();
|
|
449
|
+
}
|
|
447
450
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
448
451
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ZepEnvironment.Default, `threads/${encodeURIComponent(threadId)}/messages`),
|
|
449
452
|
method: "GET",
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.
|
|
1
|
+
export declare const SDK_VERSION = "3.2.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -11,8 +11,8 @@ export class ZepClient {
|
|
|
11
11
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
12
12
|
"X-Fern-Language": "JavaScript",
|
|
13
13
|
"X-Fern-SDK-Name": "zep-cloud",
|
|
14
|
-
"X-Fern-SDK-Version": "3.
|
|
15
|
-
"User-Agent": "zep-cloud/3.
|
|
14
|
+
"X-Fern-SDK-Version": "3.2.0",
|
|
15
|
+
"User-Agent": "zep-cloud/3.2.0",
|
|
16
16
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
17
17
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
18
18
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -151,7 +151,7 @@ export declare class Graph {
|
|
|
151
151
|
create(request: Zep.CreateGraphRequest, requestOptions?: Graph.RequestOptions): core.HttpResponsePromise<Zep.Graph>;
|
|
152
152
|
private __create;
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
154
|
+
* List all graphs. In order to list users, use user.list_ordered instead
|
|
155
155
|
*
|
|
156
156
|
* @param {Zep.GraphListAllRequest} request
|
|
157
157
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -671,7 +671,7 @@ export class Graph {
|
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
673
|
/**
|
|
674
|
-
*
|
|
674
|
+
* List all graphs. In order to list users, use user.list_ordered instead
|
|
675
675
|
*
|
|
676
676
|
* @param {Zep.GraphListAllRequest} request
|
|
677
677
|
* @param {Graph.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -400,7 +400,7 @@ export class Thread {
|
|
|
400
400
|
__get(threadId_1) {
|
|
401
401
|
return __awaiter(this, arguments, void 0, function* (threadId, request = {}, requestOptions) {
|
|
402
402
|
var _a, _b, _c, _d;
|
|
403
|
-
const { limit, cursor } = request;
|
|
403
|
+
const { limit, cursor, lastn } = request;
|
|
404
404
|
const _queryParams = {};
|
|
405
405
|
if (limit != null) {
|
|
406
406
|
_queryParams["limit"] = limit.toString();
|
|
@@ -408,6 +408,9 @@ export class Thread {
|
|
|
408
408
|
if (cursor != null) {
|
|
409
409
|
_queryParams["cursor"] = cursor.toString();
|
|
410
410
|
}
|
|
411
|
+
if (lastn != null) {
|
|
412
|
+
_queryParams["lastn"] = lastn.toString();
|
|
413
|
+
}
|
|
411
414
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
412
415
|
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ZepEnvironment.Default, `threads/${encodeURIComponent(threadId)}/messages`),
|
|
413
416
|
method: "GET",
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.
|
|
1
|
+
export declare const SDK_VERSION = "3.2.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "3.
|
|
1
|
+
export const SDK_VERSION = "3.2.0";
|
package/package.json
CHANGED