@opencode-ai/sdk 1.1.1 → 1.1.2

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.
@@ -247,6 +247,9 @@ export declare class Session extends HeyApiClient {
247
247
  */
248
248
  list<ThrowOnError extends boolean = false>(parameters?: {
249
249
  directory?: string;
250
+ start?: number;
251
+ search?: string;
252
+ limit?: number;
250
253
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionListResponses, unknown, ThrowOnError, "fields">;
251
254
  /**
252
255
  * Create session
@@ -423,7 +423,16 @@ export class Session extends HeyApiClient {
423
423
  * Get a list of all OpenCode sessions, sorted by most recently updated.
424
424
  */
425
425
  list(parameters, options) {
426
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
426
+ const params = buildClientParams([parameters], [
427
+ {
428
+ args: [
429
+ { in: "query", key: "directory" },
430
+ { in: "query", key: "start" },
431
+ { in: "query", key: "search" },
432
+ { in: "query", key: "limit" },
433
+ ],
434
+ },
435
+ ]);
427
436
  return (options?.client ?? this.client).get({
428
437
  url: "/session",
429
438
  ...options,
@@ -2194,6 +2194,18 @@ export type SessionListData = {
2194
2194
  path?: never;
2195
2195
  query?: {
2196
2196
  directory?: string;
2197
+ /**
2198
+ * Filter sessions updated on or after this timestamp (milliseconds since epoch)
2199
+ */
2200
+ start?: number;
2201
+ /**
2202
+ * Filter sessions by title (case-insensitive)
2203
+ */
2204
+ search?: string;
2205
+ /**
2206
+ * Maximum number of sessions to return
2207
+ */
2208
+ limit?: number;
2197
2209
  };
2198
2210
  url: "/session";
2199
2211
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/sdk",
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {