@opencode-ai/sdk 1.14.27 → 1.14.29
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 -3
- package/dist/v2/gen/types.gen.d.ts +27 -21
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -232,12 +232,12 @@ export declare class Session extends HeyApiClient {
|
|
|
232
232
|
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
233
233
|
directory?: string;
|
|
234
234
|
workspace?: string;
|
|
235
|
-
roots?: boolean;
|
|
235
|
+
roots?: boolean | "true" | "false";
|
|
236
236
|
start?: number;
|
|
237
237
|
cursor?: number;
|
|
238
238
|
search?: string;
|
|
239
239
|
limit?: number;
|
|
240
|
-
archived?: boolean;
|
|
240
|
+
archived?: boolean | "true" | "false";
|
|
241
241
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalSessionListResponses, unknown, ThrowOnError, "fields">;
|
|
242
242
|
}
|
|
243
243
|
export declare class Resource extends HeyApiClient {
|
|
@@ -495,7 +495,7 @@ export declare class Session2 extends HeyApiClient {
|
|
|
495
495
|
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
496
496
|
directory?: string;
|
|
497
497
|
workspace?: string;
|
|
498
|
-
roots?: boolean;
|
|
498
|
+
roots?: boolean | "true" | "false";
|
|
499
499
|
start?: number;
|
|
500
500
|
search?: string;
|
|
501
501
|
limit?: number;
|
|
@@ -72,18 +72,6 @@ export type EventLspUpdated = {
|
|
|
72
72
|
[key: string]: unknown;
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
|
-
export type EventInstallationUpdated = {
|
|
76
|
-
type: "installation.updated";
|
|
77
|
-
properties: {
|
|
78
|
-
version: string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
export type EventInstallationUpdateAvailable = {
|
|
82
|
-
type: "installation.update-available";
|
|
83
|
-
properties: {
|
|
84
|
-
version: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
75
|
export type EventMessagePartDelta = {
|
|
88
76
|
type: "message.part.delta";
|
|
89
77
|
properties: {
|
|
@@ -195,6 +183,18 @@ export type EventSessionError = {
|
|
|
195
183
|
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
|
|
196
184
|
};
|
|
197
185
|
};
|
|
186
|
+
export type EventInstallationUpdated = {
|
|
187
|
+
type: "installation.updated";
|
|
188
|
+
properties: {
|
|
189
|
+
version: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
export type EventInstallationUpdateAvailable = {
|
|
193
|
+
type: "installation.update-available";
|
|
194
|
+
properties: {
|
|
195
|
+
version: string;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
198
|
export type QuestionOption = {
|
|
199
199
|
/**
|
|
200
200
|
* Display text (1-5 words, concise)
|
|
@@ -789,6 +789,7 @@ export type Session = {
|
|
|
789
789
|
projectID: string;
|
|
790
790
|
workspaceID?: string;
|
|
791
791
|
directory: string;
|
|
792
|
+
path?: string;
|
|
792
793
|
parentID?: string;
|
|
793
794
|
summary?: {
|
|
794
795
|
additions: number;
|
|
@@ -907,6 +908,7 @@ export type SyncEventSessionUpdated = {
|
|
|
907
908
|
projectID?: string | null;
|
|
908
909
|
workspaceID?: string | null;
|
|
909
910
|
directory?: string | null;
|
|
911
|
+
path?: string | null;
|
|
910
912
|
parentID?: string | null;
|
|
911
913
|
summary?: {
|
|
912
914
|
additions: number;
|
|
@@ -950,7 +952,7 @@ export type GlobalEvent = {
|
|
|
950
952
|
directory: string;
|
|
951
953
|
project?: string;
|
|
952
954
|
workspace?: string;
|
|
953
|
-
payload: EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated |
|
|
955
|
+
payload: EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventVcsBranchUpdated | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted;
|
|
954
956
|
};
|
|
955
957
|
/**
|
|
956
958
|
* Log level
|
|
@@ -1600,6 +1602,7 @@ export type GlobalSession = {
|
|
|
1600
1602
|
projectID: string;
|
|
1601
1603
|
workspaceID?: string;
|
|
1602
1604
|
directory: string;
|
|
1605
|
+
path?: string;
|
|
1603
1606
|
parentID?: string;
|
|
1604
1607
|
summary?: {
|
|
1605
1608
|
additions: number;
|
|
@@ -1754,7 +1757,7 @@ export type File = {
|
|
|
1754
1757
|
removed: number;
|
|
1755
1758
|
status: "added" | "deleted" | "modified";
|
|
1756
1759
|
};
|
|
1757
|
-
export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated |
|
|
1760
|
+
export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventVcsBranchUpdated | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted;
|
|
1758
1761
|
export type McpStatusConnected = {
|
|
1759
1762
|
status: "connected";
|
|
1760
1763
|
};
|
|
@@ -1773,6 +1776,9 @@ export type McpStatusNeedsClientRegistration = {
|
|
|
1773
1776
|
error: string;
|
|
1774
1777
|
};
|
|
1775
1778
|
export type McpStatus = McpStatusConnected | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth | McpStatusNeedsClientRegistration;
|
|
1779
|
+
export type McpUnsupportedOAuthError = {
|
|
1780
|
+
error: string;
|
|
1781
|
+
};
|
|
1776
1782
|
export type Path = {
|
|
1777
1783
|
home: string;
|
|
1778
1784
|
state: string;
|
|
@@ -2687,7 +2693,7 @@ export type ExperimentalSessionListData = {
|
|
|
2687
2693
|
/**
|
|
2688
2694
|
* Only return root sessions (no parentID)
|
|
2689
2695
|
*/
|
|
2690
|
-
roots?: boolean;
|
|
2696
|
+
roots?: boolean | "true" | "false";
|
|
2691
2697
|
/**
|
|
2692
2698
|
* Filter sessions updated on or after this timestamp (milliseconds since epoch)
|
|
2693
2699
|
*/
|
|
@@ -2707,7 +2713,7 @@ export type ExperimentalSessionListData = {
|
|
|
2707
2713
|
/**
|
|
2708
2714
|
* Include archived sessions (default false)
|
|
2709
2715
|
*/
|
|
2710
|
-
archived?: boolean;
|
|
2716
|
+
archived?: boolean | "true" | "false";
|
|
2711
2717
|
};
|
|
2712
2718
|
url: "/experimental/session";
|
|
2713
2719
|
};
|
|
@@ -2748,7 +2754,7 @@ export type SessionListData = {
|
|
|
2748
2754
|
/**
|
|
2749
2755
|
* Only return root sessions (no parentID)
|
|
2750
2756
|
*/
|
|
2751
|
-
roots?: boolean;
|
|
2757
|
+
roots?: boolean | "true" | "false";
|
|
2752
2758
|
/**
|
|
2753
2759
|
* Filter sessions updated on or after this timestamp (milliseconds since epoch)
|
|
2754
2760
|
*/
|
|
@@ -4156,9 +4162,9 @@ export type McpAuthStartData = {
|
|
|
4156
4162
|
};
|
|
4157
4163
|
export type McpAuthStartErrors = {
|
|
4158
4164
|
/**
|
|
4159
|
-
*
|
|
4165
|
+
* MCP server does not support OAuth
|
|
4160
4166
|
*/
|
|
4161
|
-
400:
|
|
4167
|
+
400: McpUnsupportedOAuthError;
|
|
4162
4168
|
/**
|
|
4163
4169
|
* Not found
|
|
4164
4170
|
*/
|
|
@@ -4224,9 +4230,9 @@ export type McpAuthAuthenticateData = {
|
|
|
4224
4230
|
};
|
|
4225
4231
|
export type McpAuthAuthenticateErrors = {
|
|
4226
4232
|
/**
|
|
4227
|
-
*
|
|
4233
|
+
* MCP server does not support OAuth
|
|
4228
4234
|
*/
|
|
4229
|
-
400:
|
|
4235
|
+
400: McpUnsupportedOAuthError;
|
|
4230
4236
|
/**
|
|
4231
4237
|
* Not found
|
|
4232
4238
|
*/
|