@opencode-ai/sdk 1.14.46 → 1.14.48

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";
@@ -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;
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.46",
4
+ "version": "1.14.48",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {