@opencode-ai/sdk 1.2.24 → 1.2.26

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,7 @@ export declare class Session2 extends HeyApiClient {
393
393
  parentID?: string;
394
394
  title?: string;
395
395
  permission?: PermissionRuleset;
396
+ workspaceID?: string;
396
397
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionCreateResponses, SessionCreateErrors, ThrowOnError, "fields">;
397
398
  /**
398
399
  * Get session status
@@ -545,6 +546,7 @@ export declare class Session2 extends HeyApiClient {
545
546
  directory?: string;
546
547
  workspace?: string;
547
548
  limit?: number;
549
+ before?: string;
548
550
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMessagesResponses, SessionMessagesErrors, ThrowOnError, "fields">;
549
551
  /**
550
552
  * Send message
@@ -752,6 +752,7 @@ export class Session2 extends HeyApiClient {
752
752
  { in: "body", key: "parentID" },
753
753
  { in: "body", key: "title" },
754
754
  { in: "body", key: "permission" },
755
+ { in: "body", key: "workspaceID" },
755
756
  ],
756
757
  },
757
758
  ]);
@@ -1081,6 +1082,7 @@ export class Session2 extends HeyApiClient {
1081
1082
  { in: "query", key: "directory" },
1082
1083
  { in: "query", key: "workspace" },
1083
1084
  { in: "query", key: "limit" },
1085
+ { in: "query", key: "before" },
1084
1086
  ],
1085
1087
  },
1086
1088
  ]);
@@ -1001,7 +1001,11 @@ export type ProviderConfig = {
1001
1001
  * Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.
1002
1002
  */
1003
1003
  timeout?: number | false;
1004
- [key: string]: unknown | string | boolean | number | false | undefined;
1004
+ /**
1005
+ * Timeout in milliseconds between streamed SSE chunks for this provider. If no chunk arrives within this window, the request is aborted.
1006
+ */
1007
+ chunkTimeout?: number;
1008
+ [key: string]: unknown | string | boolean | number | false | number | undefined;
1005
1009
  };
1006
1010
  };
1007
1011
  export type McpLocalConfig = {
@@ -2341,6 +2345,7 @@ export type SessionCreateData = {
2341
2345
  parentID?: string;
2342
2346
  title?: string;
2343
2347
  permission?: PermissionRuleset;
2348
+ workspaceID?: string;
2344
2349
  };
2345
2350
  path?: never;
2346
2351
  query?: {
@@ -2512,9 +2517,6 @@ export type SessionChildrenResponse = SessionChildrenResponses[keyof SessionChil
2512
2517
  export type SessionTodoData = {
2513
2518
  body?: never;
2514
2519
  path: {
2515
- /**
2516
- * Session ID
2517
- */
2518
2520
  sessionID: string;
2519
2521
  };
2520
2522
  query?: {
@@ -2548,9 +2550,6 @@ export type SessionInitData = {
2548
2550
  messageID: string;
2549
2551
  };
2550
2552
  path: {
2551
- /**
2552
- * Session ID
2553
- */
2554
2553
  sessionID: string;
2555
2554
  };
2556
2555
  query?: {
@@ -2710,9 +2709,6 @@ export type SessionSummarizeData = {
2710
2709
  auto?: boolean;
2711
2710
  };
2712
2711
  path: {
2713
- /**
2714
- * Session ID
2715
- */
2716
2712
  sessionID: string;
2717
2713
  };
2718
2714
  query?: {
@@ -2742,15 +2738,16 @@ export type SessionSummarizeResponse = SessionSummarizeResponses[keyof SessionSu
2742
2738
  export type SessionMessagesData = {
2743
2739
  body?: never;
2744
2740
  path: {
2745
- /**
2746
- * Session ID
2747
- */
2748
2741
  sessionID: string;
2749
2742
  };
2750
2743
  query?: {
2751
2744
  directory?: string;
2752
2745
  workspace?: string;
2746
+ /**
2747
+ * Maximum number of messages to return
2748
+ */
2753
2749
  limit?: number;
2750
+ before?: string;
2754
2751
  };
2755
2752
  url: "/session/{sessionID}/message";
2756
2753
  };
@@ -2796,9 +2793,6 @@ export type SessionPromptData = {
2796
2793
  parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
2797
2794
  };
2798
2795
  path: {
2799
- /**
2800
- * Session ID
2801
- */
2802
2796
  sessionID: string;
2803
2797
  };
2804
2798
  query?: {
@@ -2831,13 +2825,7 @@ export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptRe
2831
2825
  export type SessionDeleteMessageData = {
2832
2826
  body?: never;
2833
2827
  path: {
2834
- /**
2835
- * Session ID
2836
- */
2837
2828
  sessionID: string;
2838
- /**
2839
- * Message ID
2840
- */
2841
2829
  messageID: string;
2842
2830
  };
2843
2831
  query?: {
@@ -2867,13 +2855,7 @@ export type SessionDeleteMessageResponse = SessionDeleteMessageResponses[keyof S
2867
2855
  export type SessionMessageData = {
2868
2856
  body?: never;
2869
2857
  path: {
2870
- /**
2871
- * Session ID
2872
- */
2873
2858
  sessionID: string;
2874
- /**
2875
- * Message ID
2876
- */
2877
2859
  messageID: string;
2878
2860
  };
2879
2861
  query?: {
@@ -2906,17 +2888,8 @@ export type SessionMessageResponse = SessionMessageResponses[keyof SessionMessag
2906
2888
  export type PartDeleteData = {
2907
2889
  body?: never;
2908
2890
  path: {
2909
- /**
2910
- * Session ID
2911
- */
2912
2891
  sessionID: string;
2913
- /**
2914
- * Message ID
2915
- */
2916
2892
  messageID: string;
2917
- /**
2918
- * Part ID
2919
- */
2920
2893
  partID: string;
2921
2894
  };
2922
2895
  query?: {
@@ -2946,17 +2919,8 @@ export type PartDeleteResponse = PartDeleteResponses[keyof PartDeleteResponses];
2946
2919
  export type PartUpdateData = {
2947
2920
  body?: Part;
2948
2921
  path: {
2949
- /**
2950
- * Session ID
2951
- */
2952
2922
  sessionID: string;
2953
- /**
2954
- * Message ID
2955
- */
2956
2923
  messageID: string;
2957
- /**
2958
- * Part ID
2959
- */
2960
2924
  partID: string;
2961
2925
  };
2962
2926
  query?: {
@@ -3004,9 +2968,6 @@ export type SessionPromptAsyncData = {
3004
2968
  parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
3005
2969
  };
3006
2970
  path: {
3007
- /**
3008
- * Session ID
3009
- */
3010
2971
  sessionID: string;
3011
2972
  };
3012
2973
  query?: {
@@ -3051,9 +3012,6 @@ export type SessionCommandData = {
3051
3012
  }>;
3052
3013
  };
3053
3014
  path: {
3054
- /**
3055
- * Session ID
3056
- */
3057
3015
  sessionID: string;
3058
3016
  };
3059
3017
  query?: {
@@ -3093,9 +3051,6 @@ export type SessionShellData = {
3093
3051
  command: string;
3094
3052
  };
3095
3053
  path: {
3096
- /**
3097
- * Session ID
3098
- */
3099
3054
  sessionID: string;
3100
3055
  };
3101
3056
  query?: {
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.2.24",
4
+ "version": "1.2.26",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {