@opencode-ai/sdk 1.1.18 → 1.1.20

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" },
@@ -477,6 +477,10 @@ export type QuestionInfo = {
477
477
  * Allow selecting multiple choices
478
478
  */
479
479
  multiple?: boolean;
480
+ /**
481
+ * Allow typing a custom answer (default: true)
482
+ */
483
+ custom?: boolean;
480
484
  };
481
485
  export type QuestionRequest = {
482
486
  id: string;
@@ -604,6 +608,7 @@ export type PermissionRule = {
604
608
  export type PermissionRuleset = Array<PermissionRule>;
605
609
  export type Session = {
606
610
  id: string;
611
+ slug: string;
607
612
  projectID: string;
608
613
  directory: string;
609
614
  parentID?: string;
@@ -2260,7 +2265,14 @@ export type SessionListData = {
2260
2265
  body?: never;
2261
2266
  path?: never;
2262
2267
  query?: {
2268
+ /**
2269
+ * Filter sessions by project directory
2270
+ */
2263
2271
  directory?: string;
2272
+ /**
2273
+ * Only return root sessions (no parentID)
2274
+ */
2275
+ roots?: boolean;
2264
2276
  /**
2265
2277
  * Filter sessions updated on or after this timestamp (milliseconds since epoch)
2266
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.18",
4
+ "version": "1.1.20",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {