@opencode-ai/sdk 1.1.19 → 1.1.21

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,7 @@ export declare class Session extends HeyApiClient {
247
247
  */
248
248
  list<ThrowOnError extends boolean = false>(parameters?: {
249
249
  directory?: string;
250
+ roots?: boolean;
250
251
  start?: number;
251
252
  search?: string;
252
253
  limit?: number;
@@ -427,6 +427,7 @@ export class Session extends HeyApiClient {
427
427
  {
428
428
  args: [
429
429
  { in: "query", key: "directory" },
430
+ { in: "query", key: "roots" },
430
431
  { in: "query", key: "start" },
431
432
  { in: "query", key: "search" },
432
433
  { in: "query", key: "limit" },
@@ -2265,7 +2265,14 @@ export type SessionListData = {
2265
2265
  body?: never;
2266
2266
  path?: never;
2267
2267
  query?: {
2268
+ /**
2269
+ * Filter sessions by project directory
2270
+ */
2268
2271
  directory?: string;
2272
+ /**
2273
+ * Only return root sessions (no parentID)
2274
+ */
2275
+ roots?: boolean;
2269
2276
  /**
2270
2277
  * Filter sessions updated on or after this timestamp (milliseconds since epoch)
2271
2278
  */
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.19",
4
+ "version": "1.1.21",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {