@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.
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -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
|
*/
|