shuvcode 2.0.32-shuv.1 → 2.1.4-shuv.1
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/client/client.d.ts +13 -0
- package/client/generated/client.d.ts +14 -1
- package/client/generated/client.js +49 -1
- package/client/generated/types.d.ts +339 -1472
- package/client/generated/types.js +2 -1
- package/client/index.js +5 -5
- package/package.json +13 -13
package/client/client.d.ts
CHANGED
|
@@ -96,9 +96,17 @@ export declare function make(options: ClientOptions): {
|
|
|
96
96
|
}>;
|
|
97
97
|
};
|
|
98
98
|
voice: {
|
|
99
|
+
models: (requestOptions?: OpenCode.RequestOptions) => Promise<{
|
|
100
|
+
models: Array<import("./index.js").VoiceModel>;
|
|
101
|
+
default?: string | undefined;
|
|
102
|
+
}>;
|
|
99
103
|
session: (input: import("./index.js").VoiceSessionInput, requestOptions?: OpenCode.RequestOptions) => Promise<{
|
|
100
104
|
transport: import("./index.js").VoiceTransport;
|
|
105
|
+
session?: {
|
|
106
|
+
id: string;
|
|
107
|
+
} | undefined;
|
|
101
108
|
}>;
|
|
109
|
+
instructions: (input: import("./index.js").VoiceInstructionsInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
102
110
|
};
|
|
103
111
|
provider: {
|
|
104
112
|
list: (input?: import("./index.js").ProviderListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ProviderListOutput>;
|
|
@@ -135,6 +143,9 @@ export declare function make(options: ClientOptions): {
|
|
|
135
143
|
resource: {
|
|
136
144
|
catalog: (input?: import("./index.js").McpResourceCatalogInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").McpResourceCatalogOutput>;
|
|
137
145
|
};
|
|
146
|
+
client: {
|
|
147
|
+
token: (input: import("./index.js").McpClientTokenInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").McpClientTokenOutput>;
|
|
148
|
+
};
|
|
138
149
|
};
|
|
139
150
|
credential: {
|
|
140
151
|
list: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").CredentialEntry[]>;
|
|
@@ -156,6 +167,7 @@ export declare function make(options: ClientOptions): {
|
|
|
156
167
|
};
|
|
157
168
|
saved: {
|
|
158
169
|
list: (input?: import("./index.js").PermissionSavedListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PermissionSavedInfo[]>;
|
|
170
|
+
update: (input: import("./index.js").PermissionSavedUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PermissionSavedInfo>;
|
|
159
171
|
remove: (input: import("./index.js").PermissionSavedRemoveInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
160
172
|
};
|
|
161
173
|
create: (input: import("./index.js").PermissionCreateInput, requestOptions?: OpenCode.RequestOptions) => Promise<{
|
|
@@ -229,6 +241,7 @@ export declare function make(options: ClientOptions): {
|
|
|
229
241
|
diff: (input: import("./index.js").VcsDiffInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").VcsDiffOutput>;
|
|
230
242
|
};
|
|
231
243
|
debug: {
|
|
244
|
+
heapDump: (input?: import("./index.js").DebugHeapDumpInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").DebugHeapDumpOutput>;
|
|
232
245
|
location: {
|
|
233
246
|
list: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").DebugLocationListOutput>;
|
|
234
247
|
evict: (input?: import("./index.js").DebugLocationEvictInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, VoiceSessionInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, FileWriteInput, FileWriteOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "./types.js";
|
|
1
|
+
import type { ServerConnectInput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput, SessionUpdateInput, SessionMoveInput, SessionPromptInput, SessionCommandInput, SessionSkillInput, SessionSyntheticInput, SessionShellInput, SessionCompactInput, SessionWaitInput, SessionRevertStageInput, SessionRevertClearInput, SessionRevertCommitInput, SessionContextInput, SessionDiffInput, SessionInboxListInput, SessionInboxCancelInput, SessionInboxUpdateInput, SessionInstructionsEntryListInput, SessionInstructionsEntryPutInput, SessionInstructionsEntryRemoveInput, SessionGenerateInput, SessionLogInput, SessionLogOutput, SessionInterruptInput, SessionBackgroundInput, SessionMessageGetInput, SessionFormListInput, SessionFormCreateInput, SessionFormGetInput, SessionFormReplyInput, SessionFormCancelInput, SessionEnvironmentInput, SessionViewInput, MessageListInput, ModelListInput, ModelListOutput, ModelDefaultInput, ModelDefaultOutput, GenerateTextInput, VoiceSessionInput, VoiceInstructionsInput, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationConnectExternalInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, McpClientTokenInput, McpClientTokenOutput, CredentialCreateInput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, ProjectListInput, ProjectListOutput, ProjectUpdateInput, FormListInput, FormListOutput, PermissionRequestListInput, PermissionRequestListOutput, PermissionSavedListInput, PermissionSavedUpdateInput, PermissionSavedRemoveInput, PermissionCreateInput, PermissionListInput, PermissionGetInput, PermissionReplyInput, FileReadInput, FileReadOutput, FileListInput, FileListOutput, FileFindInput, FileFindOutput, FileWriteInput, FileWriteOutput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, EventSubscribeOutput, PtyListInput, PtyListOutput, PtyCreateInput, PtyCreateOutput, PtyGetInput, PtyGetOutput, PtyUpdateInput, PtyUpdateOutput, PtyRemoveInput, PtyConnectTokenInput, PtyConnectTokenOutput, ExperimentalPersistentPtyReadInput, ExperimentalPersistentPtyListInput, ExperimentalPersistentPtyCreateInput, ExperimentalPersistentPtyHandoffOutput, ExperimentalPersistentPtyGetInput, ExperimentalPersistentPtyUpdateInput, ExperimentalPersistentPtySnapshotInput, ExperimentalPersistentPtyRemoveInput, ExperimentalPersistentPtyConnectTokenInput, ShellListInput, ShellListOutput, ShellCreateInput, ShellCreateOutput, ShellGetInput, ShellGetOutput, ShellOutputInput, ShellOutputOutput, ShellRemoveInput, ReferenceListInput, ReferenceListOutput, WorktreeListInput, WorktreeCreateInput, WorktreeRemoveInput, WorktreeRefreshInput, VcsInitInput, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, ConfigGetInput, ConfigGetOutput, ConfigShellsOutput, ConfigUpdateInput } from "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -103,9 +103,17 @@ export declare function make(options: ClientOptions): {
|
|
|
103
103
|
}>;
|
|
104
104
|
};
|
|
105
105
|
voice: {
|
|
106
|
+
models: (requestOptions?: RequestOptions) => Promise<{
|
|
107
|
+
models: Array<import("./types.js").VoiceModel>;
|
|
108
|
+
default?: string | undefined;
|
|
109
|
+
}>;
|
|
106
110
|
session: (input: VoiceSessionInput, requestOptions?: RequestOptions) => Promise<{
|
|
107
111
|
transport: import("./types.js").VoiceTransport;
|
|
112
|
+
session?: {
|
|
113
|
+
id: string;
|
|
114
|
+
} | undefined;
|
|
108
115
|
}>;
|
|
116
|
+
instructions: (input: VoiceInstructionsInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
109
117
|
};
|
|
110
118
|
provider: {
|
|
111
119
|
list: (input?: ProviderListInput, requestOptions?: RequestOptions) => Promise<ProviderListOutput>;
|
|
@@ -142,6 +150,9 @@ export declare function make(options: ClientOptions): {
|
|
|
142
150
|
resource: {
|
|
143
151
|
catalog: (input?: McpResourceCatalogInput, requestOptions?: RequestOptions) => Promise<McpResourceCatalogOutput>;
|
|
144
152
|
};
|
|
153
|
+
client: {
|
|
154
|
+
token: (input: McpClientTokenInput, requestOptions?: RequestOptions) => Promise<McpClientTokenOutput>;
|
|
155
|
+
};
|
|
145
156
|
};
|
|
146
157
|
credential: {
|
|
147
158
|
list: (requestOptions?: RequestOptions) => Promise<import("./types.js").CredentialEntry[]>;
|
|
@@ -163,6 +174,7 @@ export declare function make(options: ClientOptions): {
|
|
|
163
174
|
};
|
|
164
175
|
saved: {
|
|
165
176
|
list: (input?: PermissionSavedListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").PermissionSavedInfo[]>;
|
|
177
|
+
update: (input: PermissionSavedUpdateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").PermissionSavedInfo>;
|
|
166
178
|
remove: (input: PermissionSavedRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
167
179
|
};
|
|
168
180
|
create: (input: PermissionCreateInput, requestOptions?: RequestOptions) => Promise<{
|
|
@@ -242,6 +254,7 @@ export declare function make(options: ClientOptions): {
|
|
|
242
254
|
diff: (input: VcsDiffInput, requestOptions?: RequestOptions) => Promise<VcsDiffOutput>;
|
|
243
255
|
};
|
|
244
256
|
debug: {
|
|
257
|
+
heapDump: (input?: DebugHeapDumpInput, requestOptions?: RequestOptions) => Promise<DebugHeapDumpOutput>;
|
|
245
258
|
location: {
|
|
246
259
|
list: (requestOptions?: RequestOptions) => Promise<DebugLocationListOutput>;
|
|
247
260
|
evict: (input?: DebugLocationEvictInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
@@ -220,6 +220,7 @@ export function make(options) {
|
|
|
220
220
|
order: input?.["order"],
|
|
221
221
|
search: input?.["search"],
|
|
222
222
|
parentID: input?.["parentID"],
|
|
223
|
+
archived: input?.["archived"],
|
|
223
224
|
directory: input?.["directory"],
|
|
224
225
|
project: input?.["project"],
|
|
225
226
|
subpath: input?.["subpath"],
|
|
@@ -324,7 +325,12 @@ export function make(options) {
|
|
|
324
325
|
update: (input, requestOptions) => request({
|
|
325
326
|
method: "PATCH",
|
|
326
327
|
path: `/api/session/${encodeURIComponent(input.sessionID)}`,
|
|
327
|
-
body: {
|
|
328
|
+
body: {
|
|
329
|
+
title: input["title"],
|
|
330
|
+
metadata: input["metadata"],
|
|
331
|
+
permissions: input["permissions"],
|
|
332
|
+
archived: input["archived"],
|
|
333
|
+
},
|
|
328
334
|
successStatus: 204,
|
|
329
335
|
declaredStatuses: [400, 401, 404],
|
|
330
336
|
empty: true,
|
|
@@ -640,6 +646,13 @@ export function make(options) {
|
|
|
640
646
|
}, requestOptions).then((value) => value.data),
|
|
641
647
|
},
|
|
642
648
|
voice: {
|
|
649
|
+
models: (requestOptions) => request({
|
|
650
|
+
method: "GET",
|
|
651
|
+
path: `/api/experimental/voice/models`,
|
|
652
|
+
successStatus: 200,
|
|
653
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
654
|
+
empty: false,
|
|
655
|
+
}, requestOptions).then((value) => value.data),
|
|
643
656
|
session: (input, requestOptions) => request({
|
|
644
657
|
method: "POST",
|
|
645
658
|
path: `/api/experimental/voice/session`,
|
|
@@ -648,6 +661,14 @@ export function make(options) {
|
|
|
648
661
|
declaredStatuses: [400, 401, 404, 503],
|
|
649
662
|
empty: false,
|
|
650
663
|
}, requestOptions).then((value) => value.data),
|
|
664
|
+
instructions: (input, requestOptions) => request({
|
|
665
|
+
method: "POST",
|
|
666
|
+
path: `/api/experimental/voice/session/${encodeURIComponent(input.sessionID)}/instructions`,
|
|
667
|
+
body: { instructions: input["instructions"] },
|
|
668
|
+
successStatus: 204,
|
|
669
|
+
declaredStatuses: [400, 401, 404, 503],
|
|
670
|
+
empty: true,
|
|
671
|
+
}, requestOptions),
|
|
651
672
|
},
|
|
652
673
|
provider: {
|
|
653
674
|
list: (input, requestOptions) => request({
|
|
@@ -831,6 +852,17 @@ export function make(options) {
|
|
|
831
852
|
empty: false,
|
|
832
853
|
}, requestOptions),
|
|
833
854
|
},
|
|
855
|
+
client: {
|
|
856
|
+
token: (input, requestOptions) => request({
|
|
857
|
+
method: "POST",
|
|
858
|
+
path: `/api/experimental/client-mcp/token`,
|
|
859
|
+
query: { location: input["location"], name: input["name"] },
|
|
860
|
+
headers: { "x-opencode-ticket": input["x-opencode-ticket"] },
|
|
861
|
+
successStatus: 200,
|
|
862
|
+
declaredStatuses: [400, 401, 403, 404],
|
|
863
|
+
empty: false,
|
|
864
|
+
}, requestOptions),
|
|
865
|
+
},
|
|
834
866
|
},
|
|
835
867
|
credential: {
|
|
836
868
|
list: (requestOptions) => request({ method: "GET", path: `/api/credential`, successStatus: 200, declaredStatuses: [400, 401], empty: false }, requestOptions).then((value) => value.data),
|
|
@@ -924,6 +956,14 @@ export function make(options) {
|
|
|
924
956
|
declaredStatuses: [400, 401, 404],
|
|
925
957
|
empty: false,
|
|
926
958
|
}, requestOptions).then((value) => value.data),
|
|
959
|
+
update: (input, requestOptions) => request({
|
|
960
|
+
method: "PATCH",
|
|
961
|
+
path: `/api/permission/saved/${encodeURIComponent(input.id)}`,
|
|
962
|
+
body: { action: input["action"], resource: input["resource"] },
|
|
963
|
+
successStatus: 200,
|
|
964
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
965
|
+
empty: false,
|
|
966
|
+
}, requestOptions).then((value) => value.data),
|
|
927
967
|
remove: (input, requestOptions) => request({
|
|
928
968
|
method: "DELETE",
|
|
929
969
|
path: `/api/permission/saved/${encodeURIComponent(input.id)}`,
|
|
@@ -1339,6 +1379,14 @@ export function make(options) {
|
|
|
1339
1379
|
}, requestOptions),
|
|
1340
1380
|
},
|
|
1341
1381
|
debug: {
|
|
1382
|
+
heapDump: (input, requestOptions) => request({
|
|
1383
|
+
method: "POST",
|
|
1384
|
+
path: `/api/debug/heap-dump`,
|
|
1385
|
+
query: { directory: input?.["directory"] },
|
|
1386
|
+
successStatus: 200,
|
|
1387
|
+
declaredStatuses: [400, 401, 500],
|
|
1388
|
+
empty: false,
|
|
1389
|
+
}, requestOptions),
|
|
1342
1390
|
location: {
|
|
1343
1391
|
list: (requestOptions) => request({
|
|
1344
1392
|
method: "GET",
|