@opencode-ai/sdk 1.1.23 → 1.1.25
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/client/client.gen.js +8 -1
- package/dist/v2/gen/core/serverSentEvents.gen.js +2 -0
- package/dist/v2/gen/sdk.gen.d.ts +173 -134
- package/dist/v2/gen/sdk.gen.js +298 -196
- package/dist/v2/gen/types.gen.d.ts +326 -302
- package/package.json +2 -2
|
@@ -121,10 +121,16 @@ export const createClient = (config = {}) => {
|
|
|
121
121
|
case "arrayBuffer":
|
|
122
122
|
case "blob":
|
|
123
123
|
case "formData":
|
|
124
|
-
case "json":
|
|
125
124
|
case "text":
|
|
126
125
|
data = await response[parseAs]();
|
|
127
126
|
break;
|
|
127
|
+
case "json": {
|
|
128
|
+
// Some servers return 200 with no Content-Length and empty body.
|
|
129
|
+
// response.json() would throw; read as text and parse if non-empty.
|
|
130
|
+
const text = await response.text();
|
|
131
|
+
data = text ? JSON.parse(text) : {};
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
128
134
|
case "stream":
|
|
129
135
|
return opts.responseStyle === "data"
|
|
130
136
|
? response.body
|
|
@@ -192,6 +198,7 @@ export const createClient = (config = {}) => {
|
|
|
192
198
|
}
|
|
193
199
|
return request;
|
|
194
200
|
},
|
|
201
|
+
serializedBody: getValidRequestBody(opts),
|
|
195
202
|
url,
|
|
196
203
|
});
|
|
197
204
|
};
|
|
@@ -53,6 +53,8 @@ export const createSseClient = ({ onRequest, onSseError, onSseEvent, responseTra
|
|
|
53
53
|
if (done)
|
|
54
54
|
break;
|
|
55
55
|
buffer += value;
|
|
56
|
+
// Normalize line endings: CRLF -> LF, then CR -> LF
|
|
57
|
+
buffer = buffer.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
56
58
|
const chunks = buffer.split("\n\n");
|
|
57
59
|
buffer = chunks.pop() ?? "";
|
|
58
60
|
for (const chunk of chunks) {
|
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
|
|
2
|
-
import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, Auth as
|
|
2
|
+
import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth3, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalResourceListResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -190,26 +190,6 @@ export declare class Tool extends HeyApiClient {
|
|
|
190
190
|
model: string;
|
|
191
191
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ToolListResponses, ToolListErrors, ThrowOnError, "fields">;
|
|
192
192
|
}
|
|
193
|
-
export declare class Instance extends HeyApiClient {
|
|
194
|
-
/**
|
|
195
|
-
* Dispose instance
|
|
196
|
-
*
|
|
197
|
-
* Clean up and dispose the current OpenCode instance, releasing all resources.
|
|
198
|
-
*/
|
|
199
|
-
dispose<ThrowOnError extends boolean = false>(parameters?: {
|
|
200
|
-
directory?: string;
|
|
201
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<InstanceDisposeResponses, unknown, ThrowOnError, "fields">;
|
|
202
|
-
}
|
|
203
|
-
export declare class Path extends HeyApiClient {
|
|
204
|
-
/**
|
|
205
|
-
* Get paths
|
|
206
|
-
*
|
|
207
|
-
* Retrieve the current working directory and related path information for the OpenCode instance.
|
|
208
|
-
*/
|
|
209
|
-
get<ThrowOnError extends boolean = false>(parameters?: {
|
|
210
|
-
directory?: string;
|
|
211
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PathGetResponses, unknown, ThrowOnError, "fields">;
|
|
212
|
-
}
|
|
213
193
|
export declare class Worktree extends HeyApiClient {
|
|
214
194
|
/**
|
|
215
195
|
* List worktrees
|
|
@@ -229,15 +209,19 @@ export declare class Worktree extends HeyApiClient {
|
|
|
229
209
|
worktreeCreateInput?: WorktreeCreateInput;
|
|
230
210
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeCreateResponses, WorktreeCreateErrors, ThrowOnError, "fields">;
|
|
231
211
|
}
|
|
232
|
-
export declare class
|
|
212
|
+
export declare class Resource extends HeyApiClient {
|
|
233
213
|
/**
|
|
234
|
-
* Get
|
|
214
|
+
* Get MCP resources
|
|
235
215
|
*
|
|
236
|
-
*
|
|
216
|
+
* Get all available MCP resources from connected servers. Optionally filter by name.
|
|
237
217
|
*/
|
|
238
|
-
|
|
218
|
+
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
239
219
|
directory?: string;
|
|
240
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
220
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalResourceListResponses, unknown, ThrowOnError, "fields">;
|
|
221
|
+
}
|
|
222
|
+
export declare class Experimental extends HeyApiClient {
|
|
223
|
+
private _resource?;
|
|
224
|
+
get resource(): Resource;
|
|
241
225
|
}
|
|
242
226
|
export declare class Session extends HeyApiClient {
|
|
243
227
|
/**
|
|
@@ -370,15 +354,15 @@ export declare class Session extends HeyApiClient {
|
|
|
370
354
|
directory?: string;
|
|
371
355
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionShareResponses, SessionShareErrors, ThrowOnError, "fields">;
|
|
372
356
|
/**
|
|
373
|
-
* Get
|
|
357
|
+
* Get message diff
|
|
374
358
|
*
|
|
375
|
-
* Get
|
|
359
|
+
* Get the file changes (diff) that resulted from a specific user message in the session.
|
|
376
360
|
*/
|
|
377
361
|
diff<ThrowOnError extends boolean = false>(parameters: {
|
|
378
362
|
sessionID: string;
|
|
379
363
|
directory?: string;
|
|
380
364
|
messageID?: string;
|
|
381
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionDiffResponses,
|
|
365
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionDiffResponses, unknown, ThrowOnError, "fields">;
|
|
382
366
|
/**
|
|
383
367
|
* Summarize session
|
|
384
368
|
*
|
|
@@ -598,16 +582,6 @@ export declare class Question extends HeyApiClient {
|
|
|
598
582
|
directory?: string;
|
|
599
583
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<QuestionRejectResponses, QuestionRejectErrors, ThrowOnError, "fields">;
|
|
600
584
|
}
|
|
601
|
-
export declare class Command extends HeyApiClient {
|
|
602
|
-
/**
|
|
603
|
-
* List commands
|
|
604
|
-
*
|
|
605
|
-
* Get a list of all available commands in the OpenCode system.
|
|
606
|
-
*/
|
|
607
|
-
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
608
|
-
directory?: string;
|
|
609
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<CommandListResponses, unknown, ThrowOnError, "fields">;
|
|
610
|
-
}
|
|
611
585
|
export declare class Oauth extends HeyApiClient {
|
|
612
586
|
/**
|
|
613
587
|
* OAuth authorize
|
|
@@ -648,7 +622,8 @@ export declare class Provider extends HeyApiClient {
|
|
|
648
622
|
auth<ThrowOnError extends boolean = false>(parameters?: {
|
|
649
623
|
directory?: string;
|
|
650
624
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderAuthResponses, unknown, ThrowOnError, "fields">;
|
|
651
|
-
|
|
625
|
+
private _oauth?;
|
|
626
|
+
get oauth(): Oauth;
|
|
652
627
|
}
|
|
653
628
|
export declare class Find extends HeyApiClient {
|
|
654
629
|
/**
|
|
@@ -710,30 +685,6 @@ export declare class File extends HeyApiClient {
|
|
|
710
685
|
directory?: string;
|
|
711
686
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileStatusResponses, unknown, ThrowOnError, "fields">;
|
|
712
687
|
}
|
|
713
|
-
export declare class App extends HeyApiClient {
|
|
714
|
-
/**
|
|
715
|
-
* Write log
|
|
716
|
-
*
|
|
717
|
-
* Write a log entry to the server logs with specified level and metadata.
|
|
718
|
-
*/
|
|
719
|
-
log<ThrowOnError extends boolean = false>(parameters?: {
|
|
720
|
-
directory?: string;
|
|
721
|
-
service?: string;
|
|
722
|
-
level?: "debug" | "info" | "error" | "warn";
|
|
723
|
-
message?: string;
|
|
724
|
-
extra?: {
|
|
725
|
-
[key: string]: unknown;
|
|
726
|
-
};
|
|
727
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppLogResponses, AppLogErrors, ThrowOnError, "fields">;
|
|
728
|
-
/**
|
|
729
|
-
* List agents
|
|
730
|
-
*
|
|
731
|
-
* Get a list of all available AI agents in the OpenCode system.
|
|
732
|
-
*/
|
|
733
|
-
agents<ThrowOnError extends boolean = false>(parameters?: {
|
|
734
|
-
directory?: string;
|
|
735
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppAgentsResponses, unknown, ThrowOnError, "fields">;
|
|
736
|
-
}
|
|
737
688
|
export declare class Auth extends HeyApiClient {
|
|
738
689
|
/**
|
|
739
690
|
* Remove MCP OAuth
|
|
@@ -772,16 +723,6 @@ export declare class Auth extends HeyApiClient {
|
|
|
772
723
|
name: string;
|
|
773
724
|
directory?: string;
|
|
774
725
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthAuthenticateResponses, McpAuthAuthenticateErrors, ThrowOnError, "fields">;
|
|
775
|
-
/**
|
|
776
|
-
* Set auth credentials
|
|
777
|
-
*
|
|
778
|
-
* Set authentication credentials
|
|
779
|
-
*/
|
|
780
|
-
set<ThrowOnError extends boolean = false>(parameters: {
|
|
781
|
-
providerID: string;
|
|
782
|
-
directory?: string;
|
|
783
|
-
auth?: Auth2;
|
|
784
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthSetResponses, AuthSetErrors, ThrowOnError, "fields">;
|
|
785
726
|
}
|
|
786
727
|
export declare class Mcp extends HeyApiClient {
|
|
787
728
|
/**
|
|
@@ -816,40 +757,8 @@ export declare class Mcp extends HeyApiClient {
|
|
|
816
757
|
name: string;
|
|
817
758
|
directory?: string;
|
|
818
759
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpDisconnectResponses, unknown, ThrowOnError, "fields">;
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
export declare class Resource extends HeyApiClient {
|
|
822
|
-
/**
|
|
823
|
-
* Get MCP resources
|
|
824
|
-
*
|
|
825
|
-
* Get all available MCP resources from connected servers. Optionally filter by name.
|
|
826
|
-
*/
|
|
827
|
-
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
828
|
-
directory?: string;
|
|
829
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalResourceListResponses, unknown, ThrowOnError, "fields">;
|
|
830
|
-
}
|
|
831
|
-
export declare class Experimental extends HeyApiClient {
|
|
832
|
-
resource: Resource;
|
|
833
|
-
}
|
|
834
|
-
export declare class Lsp extends HeyApiClient {
|
|
835
|
-
/**
|
|
836
|
-
* Get LSP status
|
|
837
|
-
*
|
|
838
|
-
* Get LSP server status
|
|
839
|
-
*/
|
|
840
|
-
status<ThrowOnError extends boolean = false>(parameters?: {
|
|
841
|
-
directory?: string;
|
|
842
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<LspStatusResponses, unknown, ThrowOnError, "fields">;
|
|
843
|
-
}
|
|
844
|
-
export declare class Formatter extends HeyApiClient {
|
|
845
|
-
/**
|
|
846
|
-
* Get formatter status
|
|
847
|
-
*
|
|
848
|
-
* Get formatter status
|
|
849
|
-
*/
|
|
850
|
-
status<ThrowOnError extends boolean = false>(parameters?: {
|
|
851
|
-
directory?: string;
|
|
852
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FormatterStatusResponses, unknown, ThrowOnError, "fields">;
|
|
760
|
+
private _auth?;
|
|
761
|
+
get auth(): Auth;
|
|
853
762
|
}
|
|
854
763
|
export declare class Control extends HeyApiClient {
|
|
855
764
|
/**
|
|
@@ -967,7 +876,112 @@ export declare class Tui extends HeyApiClient {
|
|
|
967
876
|
directory?: string;
|
|
968
877
|
sessionID?: string;
|
|
969
878
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiSelectSessionResponses, TuiSelectSessionErrors, ThrowOnError, "fields">;
|
|
970
|
-
|
|
879
|
+
private _control?;
|
|
880
|
+
get control(): Control;
|
|
881
|
+
}
|
|
882
|
+
export declare class Instance extends HeyApiClient {
|
|
883
|
+
/**
|
|
884
|
+
* Dispose instance
|
|
885
|
+
*
|
|
886
|
+
* Clean up and dispose the current OpenCode instance, releasing all resources.
|
|
887
|
+
*/
|
|
888
|
+
dispose<ThrowOnError extends boolean = false>(parameters?: {
|
|
889
|
+
directory?: string;
|
|
890
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<InstanceDisposeResponses, unknown, ThrowOnError, "fields">;
|
|
891
|
+
}
|
|
892
|
+
export declare class Path extends HeyApiClient {
|
|
893
|
+
/**
|
|
894
|
+
* Get paths
|
|
895
|
+
*
|
|
896
|
+
* Retrieve the current working directory and related path information for the OpenCode instance.
|
|
897
|
+
*/
|
|
898
|
+
get<ThrowOnError extends boolean = false>(parameters?: {
|
|
899
|
+
directory?: string;
|
|
900
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PathGetResponses, unknown, ThrowOnError, "fields">;
|
|
901
|
+
}
|
|
902
|
+
export declare class Vcs extends HeyApiClient {
|
|
903
|
+
/**
|
|
904
|
+
* Get VCS info
|
|
905
|
+
*
|
|
906
|
+
* Retrieve version control system (VCS) information for the current project, such as git branch.
|
|
907
|
+
*/
|
|
908
|
+
get<ThrowOnError extends boolean = false>(parameters?: {
|
|
909
|
+
directory?: string;
|
|
910
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsGetResponses, unknown, ThrowOnError, "fields">;
|
|
911
|
+
}
|
|
912
|
+
export declare class Command extends HeyApiClient {
|
|
913
|
+
/**
|
|
914
|
+
* List commands
|
|
915
|
+
*
|
|
916
|
+
* Get a list of all available commands in the OpenCode system.
|
|
917
|
+
*/
|
|
918
|
+
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
919
|
+
directory?: string;
|
|
920
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<CommandListResponses, unknown, ThrowOnError, "fields">;
|
|
921
|
+
}
|
|
922
|
+
export declare class App extends HeyApiClient {
|
|
923
|
+
/**
|
|
924
|
+
* Write log
|
|
925
|
+
*
|
|
926
|
+
* Write a log entry to the server logs with specified level and metadata.
|
|
927
|
+
*/
|
|
928
|
+
log<ThrowOnError extends boolean = false>(parameters?: {
|
|
929
|
+
directory?: string;
|
|
930
|
+
service?: string;
|
|
931
|
+
level?: "debug" | "info" | "error" | "warn";
|
|
932
|
+
message?: string;
|
|
933
|
+
extra?: {
|
|
934
|
+
[key: string]: unknown;
|
|
935
|
+
};
|
|
936
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppLogResponses, AppLogErrors, ThrowOnError, "fields">;
|
|
937
|
+
/**
|
|
938
|
+
* List agents
|
|
939
|
+
*
|
|
940
|
+
* Get a list of all available AI agents in the OpenCode system.
|
|
941
|
+
*/
|
|
942
|
+
agents<ThrowOnError extends boolean = false>(parameters?: {
|
|
943
|
+
directory?: string;
|
|
944
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppAgentsResponses, unknown, ThrowOnError, "fields">;
|
|
945
|
+
/**
|
|
946
|
+
* List skills
|
|
947
|
+
*
|
|
948
|
+
* Get a list of all available skills in the OpenCode system.
|
|
949
|
+
*/
|
|
950
|
+
skills<ThrowOnError extends boolean = false>(parameters?: {
|
|
951
|
+
directory?: string;
|
|
952
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppSkillsResponses, unknown, ThrowOnError, "fields">;
|
|
953
|
+
}
|
|
954
|
+
export declare class Lsp extends HeyApiClient {
|
|
955
|
+
/**
|
|
956
|
+
* Get LSP status
|
|
957
|
+
*
|
|
958
|
+
* Get LSP server status
|
|
959
|
+
*/
|
|
960
|
+
status<ThrowOnError extends boolean = false>(parameters?: {
|
|
961
|
+
directory?: string;
|
|
962
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<LspStatusResponses, unknown, ThrowOnError, "fields">;
|
|
963
|
+
}
|
|
964
|
+
export declare class Formatter extends HeyApiClient {
|
|
965
|
+
/**
|
|
966
|
+
* Get formatter status
|
|
967
|
+
*
|
|
968
|
+
* Get formatter status
|
|
969
|
+
*/
|
|
970
|
+
status<ThrowOnError extends boolean = false>(parameters?: {
|
|
971
|
+
directory?: string;
|
|
972
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FormatterStatusResponses, unknown, ThrowOnError, "fields">;
|
|
973
|
+
}
|
|
974
|
+
export declare class Auth2 extends HeyApiClient {
|
|
975
|
+
/**
|
|
976
|
+
* Set auth credentials
|
|
977
|
+
*
|
|
978
|
+
* Set authentication credentials
|
|
979
|
+
*/
|
|
980
|
+
set<ThrowOnError extends boolean = false>(parameters: {
|
|
981
|
+
providerID: string;
|
|
982
|
+
directory?: string;
|
|
983
|
+
auth?: Auth3;
|
|
984
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthSetResponses, AuthSetErrors, ThrowOnError, "fields">;
|
|
971
985
|
}
|
|
972
986
|
export declare class Event extends HeyApiClient {
|
|
973
987
|
/**
|
|
@@ -985,30 +999,55 @@ export declare class OpencodeClient extends HeyApiClient {
|
|
|
985
999
|
client?: Client;
|
|
986
1000
|
key?: string;
|
|
987
1001
|
});
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1002
|
+
private _global?;
|
|
1003
|
+
get global(): Global;
|
|
1004
|
+
private _project?;
|
|
1005
|
+
get project(): Project;
|
|
1006
|
+
private _pty?;
|
|
1007
|
+
get pty(): Pty;
|
|
1008
|
+
private _config?;
|
|
1009
|
+
get config(): Config;
|
|
1010
|
+
private _tool?;
|
|
1011
|
+
get tool(): Tool;
|
|
1012
|
+
private _worktree?;
|
|
1013
|
+
get worktree(): Worktree;
|
|
1014
|
+
private _experimental?;
|
|
1015
|
+
get experimental(): Experimental;
|
|
1016
|
+
private _session?;
|
|
1017
|
+
get session(): Session;
|
|
1018
|
+
private _part?;
|
|
1019
|
+
get part(): Part;
|
|
1020
|
+
private _permission?;
|
|
1021
|
+
get permission(): Permission;
|
|
1022
|
+
private _question?;
|
|
1023
|
+
get question(): Question;
|
|
1024
|
+
private _provider?;
|
|
1025
|
+
get provider(): Provider;
|
|
1026
|
+
private _find?;
|
|
1027
|
+
get find(): Find;
|
|
1028
|
+
private _file?;
|
|
1029
|
+
get file(): File;
|
|
1030
|
+
private _mcp?;
|
|
1031
|
+
get mcp(): Mcp;
|
|
1032
|
+
private _tui?;
|
|
1033
|
+
get tui(): Tui;
|
|
1034
|
+
private _instance?;
|
|
1035
|
+
get instance(): Instance;
|
|
1036
|
+
private _path?;
|
|
1037
|
+
get path(): Path;
|
|
1038
|
+
private _vcs?;
|
|
1039
|
+
get vcs(): Vcs;
|
|
1040
|
+
private _command?;
|
|
1041
|
+
get command(): Command;
|
|
1042
|
+
private _app?;
|
|
1043
|
+
get app(): App;
|
|
1044
|
+
private _lsp?;
|
|
1045
|
+
get lsp(): Lsp;
|
|
1046
|
+
private _formatter?;
|
|
1047
|
+
get formatter(): Formatter;
|
|
1048
|
+
private _auth?;
|
|
1049
|
+
get auth(): Auth2;
|
|
1050
|
+
private _event?;
|
|
1051
|
+
get event(): Event;
|
|
1013
1052
|
}
|
|
1014
1053
|
export {};
|