@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.
@@ -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.1.0",
51
- "User-Agent": "zep-cloud/3.1.0",
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
- * Returns all graphs.
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
- * Returns all graphs.
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",
@@ -14,4 +14,8 @@ export interface ThreadGetRequest {
14
14
  * Cursor for pagination
15
15
  */
16
16
  cursor?: number;
17
+ /**
18
+ * Number of most recent messages to return (overrides limit and cursor)
19
+ */
20
+ lastn?: number;
17
21
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.0";
1
+ export declare const SDK_VERSION = "3.2.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.1.0";
4
+ exports.SDK_VERSION = "3.2.0";
@@ -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.1.0",
15
- "User-Agent": "zep-cloud/3.1.0",
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
- * Returns all graphs.
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
- * Returns all graphs.
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",
@@ -14,4 +14,8 @@ export interface ThreadGetRequest {
14
14
  * Cursor for pagination
15
15
  */
16
16
  cursor?: number;
17
+ /**
18
+ * Number of most recent messages to return (overrides limit and cursor)
19
+ */
20
+ lastn?: number;
17
21
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.0";
1
+ export declare const SDK_VERSION = "3.2.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "3.1.0";
1
+ export const SDK_VERSION = "3.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getzep/zep-cloud",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "private": false,
5
5
  "repository": "https://github.com/getzep/zep-js",
6
6
  "description": "Zep: Fast, scalable building blocks for production LLM apps",
package/reference.md CHANGED
@@ -471,7 +471,7 @@ await client.graph.create({
471
471
  <dl>
472
472
  <dd>
473
473
 
474
- Returns all graphs.
474
+ List all graphs. In order to list users, use user.list_ordered instead
475
475
 
476
476
  </dd>
477
477
  </dl>