@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.
- package/dist/v2/gen/sdk.gen.d.ts +3 -0
- package/dist/v2/gen/sdk.gen.js +10 -1
- package/dist/v2/gen/types.gen.d.ts +12 -0
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -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
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -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], [
|
|
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
|
};
|