@opencode-ai/sdk 1.14.45 → 1.14.47

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.
@@ -615,11 +615,11 @@ export type Project = {
615
615
  };
616
616
  };
617
617
  export type BadRequestError = {
618
- data: unknown;
619
- errors: Array<{
620
- [key: string]: unknown;
621
- }>;
622
- success: false;
618
+ name: "BadRequest";
619
+ data: {
620
+ message: string;
621
+ kind?: "Params" | "Headers" | "Query" | "Body" | "Payload";
622
+ };
623
623
  };
624
624
  export type NotFoundError = {
625
625
  name: "NotFoundError";
@@ -1304,6 +1304,13 @@ export declare class Session3 extends HeyApiClient {
1304
1304
  list<ThrowOnError extends boolean = false>(parameters?: {
1305
1305
  directory?: string;
1306
1306
  workspace?: string;
1307
+ limit?: number;
1308
+ order?: "asc" | "desc";
1309
+ path?: string;
1310
+ roots?: boolean | "true" | "false";
1311
+ start?: number;
1312
+ search?: string;
1313
+ cursor?: string;
1307
1314
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2SessionListResponses, V2SessionListErrors, ThrowOnError, "fields">;
1308
1315
  /**
1309
1316
  * Send v2 message
@@ -1356,6 +1363,9 @@ export declare class Session3 extends HeyApiClient {
1356
1363
  sessionID: string;
1357
1364
  directory?: string;
1358
1365
  workspace?: string;
1366
+ limit?: number;
1367
+ order?: "asc" | "desc";
1368
+ cursor?: string;
1359
1369
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2SessionMessagesResponses, V2SessionMessagesErrors, ThrowOnError, "fields">;
1360
1370
  }
1361
1371
  export declare class V2 extends HeyApiClient {
@@ -2614,6 +2614,13 @@ export class Session3 extends HeyApiClient {
2614
2614
  args: [
2615
2615
  { in: "query", key: "directory" },
2616
2616
  { in: "query", key: "workspace" },
2617
+ { in: "query", key: "limit" },
2618
+ { in: "query", key: "order" },
2619
+ { in: "query", key: "path" },
2620
+ { in: "query", key: "roots" },
2621
+ { in: "query", key: "start" },
2622
+ { in: "query", key: "search" },
2623
+ { in: "query", key: "cursor" },
2617
2624
  ],
2618
2625
  },
2619
2626
  ]);
@@ -2726,6 +2733,9 @@ export class Session3 extends HeyApiClient {
2726
2733
  { in: "path", key: "sessionID" },
2727
2734
  { in: "query", key: "directory" },
2728
2735
  { in: "query", key: "workspace" },
2736
+ { in: "query", key: "limit" },
2737
+ { in: "query", key: "order" },
2738
+ { in: "query", key: "cursor" },
2729
2739
  ],
2730
2740
  },
2731
2741
  ]);
@@ -806,6 +806,15 @@ export type McpRemoteConfig = {
806
806
  * @deprecated Always uses stretch layout.
807
807
  */
808
808
  export type LayoutConfig = "auto" | "stretch";
809
+ export type ImageAttachmentConfig = {
810
+ auto_resize?: boolean;
811
+ max_width?: number;
812
+ max_height?: number;
813
+ max_base64_bytes?: number;
814
+ };
815
+ export type AttachmentConfig = {
816
+ image?: ImageAttachmentConfig;
817
+ };
809
818
  export type Config = {
810
819
  $schema?: string;
811
820
  shell?: string;
@@ -908,6 +917,7 @@ export type Config = {
908
917
  tools?: {
909
918
  [key: string]: boolean;
910
919
  };
920
+ attachment?: AttachmentConfig;
911
921
  enterprise?: {
912
922
  url?: string;
913
923
  };
@@ -2724,11 +2734,11 @@ export type EventTuiToastShow1 = {
2724
2734
  };
2725
2735
  };
2726
2736
  export type BadRequestError = {
2727
- data: unknown;
2728
- errors: Array<{
2729
- [key: string]: unknown;
2730
- }>;
2731
- success: false;
2737
+ name: "BadRequest";
2738
+ data: {
2739
+ message: string;
2740
+ kind?: "Params" | "Headers" | "Query" | "Body" | "Payload";
2741
+ };
2732
2742
  };
2733
2743
  export type AuthRemoveData = {
2734
2744
  body?: never;
@@ -5249,6 +5259,16 @@ export type V2SessionListData = {
5249
5259
  query?: {
5250
5260
  directory?: string;
5251
5261
  workspace?: string;
5262
+ limit?: number;
5263
+ order?: "asc" | "desc";
5264
+ path?: string;
5265
+ roots?: boolean | "true" | "false";
5266
+ start?: number;
5267
+ search?: string;
5268
+ /**
5269
+ * Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order or filters.
5270
+ */
5271
+ cursor?: string;
5252
5272
  };
5253
5273
  url: "/api/session";
5254
5274
  };
@@ -5349,6 +5369,12 @@ export type V2SessionMessagesData = {
5349
5369
  query?: {
5350
5370
  directory?: string;
5351
5371
  workspace?: string;
5372
+ limit?: number;
5373
+ order?: "asc" | "desc";
5374
+ /**
5375
+ * Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order.
5376
+ */
5377
+ cursor?: string;
5352
5378
  };
5353
5379
  url: "/api/session/{sessionID}/message";
5354
5380
  };
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.14.45",
4
+ "version": "1.14.47",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {