@opencode-ai/sdk 1.14.28 → 1.14.30
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 +5 -3
- package/dist/v2/gen/sdk.gen.js +2 -0
- package/dist/v2/gen/types.gen.d.ts +36 -23
- 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,9 @@ export declare class Session2 extends HeyApiClient {
|
|
|
495
495
|
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
496
496
|
directory?: string;
|
|
497
497
|
workspace?: string;
|
|
498
|
-
|
|
498
|
+
scope?: "project";
|
|
499
|
+
path?: string;
|
|
500
|
+
roots?: boolean | "true" | "false";
|
|
499
501
|
start?: number;
|
|
500
502
|
search?: string;
|
|
501
503
|
limit?: number;
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -980,6 +980,8 @@ export class Session2 extends HeyApiClient {
|
|
|
980
980
|
args: [
|
|
981
981
|
{ in: "query", key: "directory" },
|
|
982
982
|
{ in: "query", key: "workspace" },
|
|
983
|
+
{ in: "query", key: "scope" },
|
|
984
|
+
{ in: "query", key: "path" },
|
|
983
985
|
{ in: "query", key: "roots" },
|
|
984
986
|
{ in: "query", key: "start" },
|
|
985
987
|
{ in: "query", key: "search" },
|
|
@@ -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
|
|
@@ -999,7 +1001,6 @@ export type PermissionConfig = PermissionActionConfig | {
|
|
|
999
1001
|
question?: PermissionActionConfig;
|
|
1000
1002
|
webfetch?: PermissionActionConfig;
|
|
1001
1003
|
websearch?: PermissionActionConfig;
|
|
1002
|
-
codesearch?: PermissionActionConfig;
|
|
1003
1004
|
lsp?: PermissionRuleConfig;
|
|
1004
1005
|
doom_loop?: PermissionActionConfig;
|
|
1005
1006
|
skill?: PermissionRuleConfig;
|
|
@@ -1600,6 +1601,7 @@ export type GlobalSession = {
|
|
|
1600
1601
|
projectID: string;
|
|
1601
1602
|
workspaceID?: string;
|
|
1602
1603
|
directory: string;
|
|
1604
|
+
path?: string;
|
|
1603
1605
|
parentID?: string;
|
|
1604
1606
|
summary?: {
|
|
1605
1607
|
additions: number;
|
|
@@ -1754,7 +1756,7 @@ export type File = {
|
|
|
1754
1756
|
removed: number;
|
|
1755
1757
|
status: "added" | "deleted" | "modified";
|
|
1756
1758
|
};
|
|
1757
|
-
export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated |
|
|
1759
|
+
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
1760
|
export type McpStatusConnected = {
|
|
1759
1761
|
status: "connected";
|
|
1760
1762
|
};
|
|
@@ -1773,6 +1775,9 @@ export type McpStatusNeedsClientRegistration = {
|
|
|
1773
1775
|
error: string;
|
|
1774
1776
|
};
|
|
1775
1777
|
export type McpStatus = McpStatusConnected | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth | McpStatusNeedsClientRegistration;
|
|
1778
|
+
export type McpUnsupportedOAuthError = {
|
|
1779
|
+
error: string;
|
|
1780
|
+
};
|
|
1776
1781
|
export type Path = {
|
|
1777
1782
|
home: string;
|
|
1778
1783
|
state: string;
|
|
@@ -2687,7 +2692,7 @@ export type ExperimentalSessionListData = {
|
|
|
2687
2692
|
/**
|
|
2688
2693
|
* Only return root sessions (no parentID)
|
|
2689
2694
|
*/
|
|
2690
|
-
roots?: boolean;
|
|
2695
|
+
roots?: boolean | "true" | "false";
|
|
2691
2696
|
/**
|
|
2692
2697
|
* Filter sessions updated on or after this timestamp (milliseconds since epoch)
|
|
2693
2698
|
*/
|
|
@@ -2707,7 +2712,7 @@ export type ExperimentalSessionListData = {
|
|
|
2707
2712
|
/**
|
|
2708
2713
|
* Include archived sessions (default false)
|
|
2709
2714
|
*/
|
|
2710
|
-
archived?: boolean;
|
|
2715
|
+
archived?: boolean | "true" | "false";
|
|
2711
2716
|
};
|
|
2712
2717
|
url: "/experimental/session";
|
|
2713
2718
|
};
|
|
@@ -2741,14 +2746,22 @@ export type SessionListData = {
|
|
|
2741
2746
|
path?: never;
|
|
2742
2747
|
query?: {
|
|
2743
2748
|
/**
|
|
2744
|
-
* Filter sessions by
|
|
2749
|
+
* Filter sessions by directory
|
|
2745
2750
|
*/
|
|
2746
2751
|
directory?: string;
|
|
2747
2752
|
workspace?: string;
|
|
2753
|
+
/**
|
|
2754
|
+
* List all sessions for the current project
|
|
2755
|
+
*/
|
|
2756
|
+
scope?: "project";
|
|
2757
|
+
/**
|
|
2758
|
+
* Filter sessions by project-relative path
|
|
2759
|
+
*/
|
|
2760
|
+
path?: string;
|
|
2748
2761
|
/**
|
|
2749
2762
|
* Only return root sessions (no parentID)
|
|
2750
2763
|
*/
|
|
2751
|
-
roots?: boolean;
|
|
2764
|
+
roots?: boolean | "true" | "false";
|
|
2752
2765
|
/**
|
|
2753
2766
|
* Filter sessions updated on or after this timestamp (milliseconds since epoch)
|
|
2754
2767
|
*/
|
|
@@ -4156,9 +4169,9 @@ export type McpAuthStartData = {
|
|
|
4156
4169
|
};
|
|
4157
4170
|
export type McpAuthStartErrors = {
|
|
4158
4171
|
/**
|
|
4159
|
-
*
|
|
4172
|
+
* MCP server does not support OAuth
|
|
4160
4173
|
*/
|
|
4161
|
-
400:
|
|
4174
|
+
400: McpUnsupportedOAuthError;
|
|
4162
4175
|
/**
|
|
4163
4176
|
* Not found
|
|
4164
4177
|
*/
|
|
@@ -4224,9 +4237,9 @@ export type McpAuthAuthenticateData = {
|
|
|
4224
4237
|
};
|
|
4225
4238
|
export type McpAuthAuthenticateErrors = {
|
|
4226
4239
|
/**
|
|
4227
|
-
*
|
|
4240
|
+
* MCP server does not support OAuth
|
|
4228
4241
|
*/
|
|
4229
|
-
400:
|
|
4242
|
+
400: McpUnsupportedOAuthError;
|
|
4230
4243
|
/**
|
|
4231
4244
|
* Not found
|
|
4232
4245
|
*/
|