@opencode-ai/sdk 0.11.3 → 0.11.5
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/gen/sdk.gen.d.ts +5 -1
- package/dist/gen/sdk.gen.js +13 -0
- package/dist/gen/types.gen.d.ts +32 -1
- package/package.json +1 -1
package/dist/gen/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Options as ClientOptions, TDataShape, Client } from "./client/index.js";
|
|
2
|
-
import type { ProjectListData, ProjectListResponses, ProjectCurrentData, ProjectCurrentResponses, ConfigGetData, ConfigGetResponses, ToolIdsData, ToolIdsResponses, ToolIdsErrors, ToolListData, ToolListResponses, ToolListErrors, PathGetData, PathGetResponses, SessionListData, SessionListResponses, SessionCreateData, SessionCreateResponses, SessionCreateErrors, SessionDeleteData, SessionDeleteResponses, SessionGetData, SessionGetResponses, SessionUpdateData, SessionUpdateResponses, SessionChildrenData, SessionChildrenResponses, SessionInitData, SessionInitResponses, SessionAbortData, SessionAbortResponses, SessionUnshareData, SessionUnshareResponses, SessionShareData, SessionShareResponses, SessionSummarizeData, SessionSummarizeResponses, SessionMessagesData, SessionMessagesResponses, SessionPromptData, SessionPromptResponses, SessionMessageData, SessionMessageResponses, SessionCommandData, SessionCommandResponses, SessionShellData, SessionShellResponses, SessionRevertData, SessionRevertResponses, SessionUnrevertData, SessionUnrevertResponses, PostSessionIdPermissionsPermissionIdData, PostSessionIdPermissionsPermissionIdResponses, CommandListData, CommandListResponses, ConfigProvidersData, ConfigProvidersResponses, FindTextData, FindTextResponses, FindFilesData, FindFilesResponses, FindSymbolsData, FindSymbolsResponses, FileListData, FileListResponses, FileReadData, FileReadResponses, FileStatusData, FileStatusResponses, AppLogData, AppLogResponses, AppAgentsData, AppAgentsResponses, TuiAppendPromptData, TuiAppendPromptResponses, TuiOpenHelpData, TuiOpenHelpResponses, TuiOpenSessionsData, TuiOpenSessionsResponses, TuiOpenThemesData, TuiOpenThemesResponses, TuiOpenModelsData, TuiOpenModelsResponses, TuiSubmitPromptData, TuiSubmitPromptResponses, TuiClearPromptData, TuiClearPromptResponses, TuiExecuteCommandData, TuiExecuteCommandResponses, TuiShowToastData, TuiShowToastResponses, AuthSetData, AuthSetResponses, AuthSetErrors, EventSubscribeData, EventSubscribeResponses } from "./types.gen.js";
|
|
2
|
+
import type { ProjectListData, ProjectListResponses, ProjectCurrentData, ProjectCurrentResponses, ConfigGetData, ConfigGetResponses, ConfigUpdateData, ConfigUpdateResponses, ConfigUpdateErrors, ToolIdsData, ToolIdsResponses, ToolIdsErrors, ToolListData, ToolListResponses, ToolListErrors, PathGetData, PathGetResponses, SessionListData, SessionListResponses, SessionCreateData, SessionCreateResponses, SessionCreateErrors, SessionDeleteData, SessionDeleteResponses, SessionGetData, SessionGetResponses, SessionUpdateData, SessionUpdateResponses, SessionChildrenData, SessionChildrenResponses, SessionInitData, SessionInitResponses, SessionAbortData, SessionAbortResponses, SessionUnshareData, SessionUnshareResponses, SessionShareData, SessionShareResponses, SessionSummarizeData, SessionSummarizeResponses, SessionMessagesData, SessionMessagesResponses, SessionPromptData, SessionPromptResponses, SessionMessageData, SessionMessageResponses, SessionCommandData, SessionCommandResponses, SessionShellData, SessionShellResponses, SessionRevertData, SessionRevertResponses, SessionUnrevertData, SessionUnrevertResponses, PostSessionIdPermissionsPermissionIdData, PostSessionIdPermissionsPermissionIdResponses, CommandListData, CommandListResponses, ConfigProvidersData, ConfigProvidersResponses, FindTextData, FindTextResponses, FindFilesData, FindFilesResponses, FindSymbolsData, FindSymbolsResponses, FileListData, FileListResponses, FileReadData, FileReadResponses, FileStatusData, FileStatusResponses, AppLogData, AppLogResponses, AppAgentsData, AppAgentsResponses, TuiAppendPromptData, TuiAppendPromptResponses, TuiOpenHelpData, TuiOpenHelpResponses, TuiOpenSessionsData, TuiOpenSessionsResponses, TuiOpenThemesData, TuiOpenThemesResponses, TuiOpenModelsData, TuiOpenModelsResponses, TuiSubmitPromptData, TuiSubmitPromptResponses, TuiClearPromptData, TuiClearPromptResponses, TuiExecuteCommandData, TuiExecuteCommandResponses, TuiShowToastData, TuiShowToastResponses, AuthSetData, AuthSetResponses, AuthSetErrors, EventSubscribeData, EventSubscribeResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -34,6 +34,10 @@ declare class Config extends _HeyApiClient {
|
|
|
34
34
|
* Get config info
|
|
35
35
|
*/
|
|
36
36
|
get<ThrowOnError extends boolean = false>(options?: Options<ConfigGetData, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigGetResponses, unknown, ThrowOnError, "fields">;
|
|
37
|
+
/**
|
|
38
|
+
* Update config
|
|
39
|
+
*/
|
|
40
|
+
update<ThrowOnError extends boolean = false>(options?: Options<ConfigUpdateData, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigUpdateResponses, ConfigUpdateErrors, ThrowOnError, "fields">;
|
|
37
41
|
/**
|
|
38
42
|
* List all providers
|
|
39
43
|
*/
|
package/dist/gen/sdk.gen.js
CHANGED
|
@@ -38,6 +38,19 @@ class Config extends _HeyApiClient {
|
|
|
38
38
|
...options,
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Update config
|
|
43
|
+
*/
|
|
44
|
+
update(options) {
|
|
45
|
+
return (options?.client ?? this._client).patch({
|
|
46
|
+
url: "/config",
|
|
47
|
+
...options,
|
|
48
|
+
headers: {
|
|
49
|
+
"Content-Type": "application/json",
|
|
50
|
+
...options?.headers,
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
}
|
|
41
54
|
/**
|
|
42
55
|
* List all providers
|
|
43
56
|
*/
|
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -479,12 +479,12 @@ export type Config = {
|
|
|
479
479
|
disable_paste_summary?: boolean;
|
|
480
480
|
};
|
|
481
481
|
};
|
|
482
|
-
export type ToolIds = Array<string>;
|
|
483
482
|
export type _Error = {
|
|
484
483
|
data: {
|
|
485
484
|
[key: string]: unknown;
|
|
486
485
|
};
|
|
487
486
|
};
|
|
487
|
+
export type ToolIds = Array<string>;
|
|
488
488
|
export type ToolListItem = {
|
|
489
489
|
id: string;
|
|
490
490
|
description: string;
|
|
@@ -593,6 +593,9 @@ export type TextPart = {
|
|
|
593
593
|
start: number;
|
|
594
594
|
end?: number;
|
|
595
595
|
};
|
|
596
|
+
metadata?: {
|
|
597
|
+
[key: string]: unknown;
|
|
598
|
+
};
|
|
596
599
|
};
|
|
597
600
|
export type ReasoningPart = {
|
|
598
601
|
id: string;
|
|
@@ -700,6 +703,9 @@ export type ToolPart = {
|
|
|
700
703
|
callID: string;
|
|
701
704
|
tool: string;
|
|
702
705
|
state: ToolState;
|
|
706
|
+
metadata?: {
|
|
707
|
+
[key: string]: unknown;
|
|
708
|
+
};
|
|
703
709
|
};
|
|
704
710
|
export type StepStartPart = {
|
|
705
711
|
id: string;
|
|
@@ -760,6 +766,9 @@ export type TextPartInput = {
|
|
|
760
766
|
start: number;
|
|
761
767
|
end?: number;
|
|
762
768
|
};
|
|
769
|
+
metadata?: {
|
|
770
|
+
[key: string]: unknown;
|
|
771
|
+
};
|
|
763
772
|
};
|
|
764
773
|
export type FilePartInput = {
|
|
765
774
|
id?: string;
|
|
@@ -1073,6 +1082,28 @@ export type ConfigGetResponses = {
|
|
|
1073
1082
|
200: Config;
|
|
1074
1083
|
};
|
|
1075
1084
|
export type ConfigGetResponse = ConfigGetResponses[keyof ConfigGetResponses];
|
|
1085
|
+
export type ConfigUpdateData = {
|
|
1086
|
+
body?: Config;
|
|
1087
|
+
path?: never;
|
|
1088
|
+
query?: {
|
|
1089
|
+
directory?: string;
|
|
1090
|
+
};
|
|
1091
|
+
url: "/config";
|
|
1092
|
+
};
|
|
1093
|
+
export type ConfigUpdateErrors = {
|
|
1094
|
+
/**
|
|
1095
|
+
* Bad request
|
|
1096
|
+
*/
|
|
1097
|
+
400: _Error;
|
|
1098
|
+
};
|
|
1099
|
+
export type ConfigUpdateError = ConfigUpdateErrors[keyof ConfigUpdateErrors];
|
|
1100
|
+
export type ConfigUpdateResponses = {
|
|
1101
|
+
/**
|
|
1102
|
+
* Successfully updated config
|
|
1103
|
+
*/
|
|
1104
|
+
200: Config;
|
|
1105
|
+
};
|
|
1106
|
+
export type ConfigUpdateResponse = ConfigUpdateResponses[keyof ConfigUpdateResponses];
|
|
1076
1107
|
export type ToolIdsData = {
|
|
1077
1108
|
body?: never;
|
|
1078
1109
|
path?: never;
|