@opencode-ai/sdk 0.14.6 → 0.14.7

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.
@@ -393,6 +393,10 @@ export type Config = {
393
393
  context: number;
394
394
  output: number;
395
395
  };
396
+ modalities?: {
397
+ input: Array<"text" | "audio" | "image" | "video" | "pdf">;
398
+ output: Array<"text" | "audio" | "image" | "video" | "pdf">;
399
+ };
396
400
  experimental?: boolean;
397
401
  options?: {
398
402
  [key: string]: unknown;
@@ -697,6 +701,7 @@ export type ToolStateCompleted = {
697
701
  end: number;
698
702
  compacted?: number;
699
703
  };
704
+ attachments?: Array<FilePart>;
700
705
  };
701
706
  export type ToolStateError = {
702
707
  status: "error";
@@ -832,6 +837,10 @@ export type Model = {
832
837
  context: number;
833
838
  output: number;
834
839
  };
840
+ modalities?: {
841
+ input: Array<"text" | "audio" | "image" | "video" | "pdf">;
842
+ output: Array<"text" | "audio" | "image" | "video" | "pdf">;
843
+ };
835
844
  experimental?: boolean;
836
845
  options: {
837
846
  [key: string]: unknown;
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": "0.14.6",
4
+ "version": "0.14.7",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "typecheck": "tsc --noEmit",
@@ -26,12 +26,10 @@
26
26
  ],
27
27
  "devDependencies": {
28
28
  "typescript": "5.8.2",
29
- "@hey-api/openapi-ts": "0.80.1",
29
+ "@hey-api/openapi-ts": "0.81.0",
30
30
  "@tsconfig/node22": "22.0.2"
31
31
  },
32
- "dependencies": {
33
- "@hey-api/openapi-ts": "0.81.0"
34
- },
32
+ "dependencies": {},
35
33
  "publishConfig": {
36
34
  "directory": "dist"
37
35
  }