shuvcode 2.0.3-shuv.4 → 2.0.8-shuv.2
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 +16 -23
- package/client/generated/client.d.ts +17 -24
- package/client/generated/client.js +87 -94
- package/client/generated/types.d.ts +822 -753
- package/client/generated/types.js +4 -4
- package/client/index.js +2 -2
- package/client/service.js +8 -8
- package/package.json +13 -13
package/client/client.d.ts
CHANGED
|
@@ -11,10 +11,11 @@ export declare function make(options: ClientOptions): {
|
|
|
11
11
|
subscribe(options?: SharedEvents.SubscribeOptions): AsyncIterable<import("./index.js").V2Event>;
|
|
12
12
|
};
|
|
13
13
|
server: {
|
|
14
|
-
|
|
14
|
+
info: (requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ServerInfo>;
|
|
15
15
|
};
|
|
16
16
|
location: {
|
|
17
17
|
get: (input?: import("./index.js").LocationGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").LocationPublicInfo>;
|
|
18
|
+
reload: (requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
18
19
|
};
|
|
19
20
|
agent: {
|
|
20
21
|
list: (input?: import("./index.js").AgentListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").AgentListOutput>;
|
|
@@ -39,7 +40,7 @@ export declare function make(options: ClientOptions): {
|
|
|
39
40
|
fork: (input: import("./index.js").SessionForkInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionInfo>;
|
|
40
41
|
switchAgent: (input: import("./index.js").SessionSwitchAgentInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
41
42
|
switchModel: (input: import("./index.js").SessionSwitchModelInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
42
|
-
|
|
43
|
+
update: (input: import("./index.js").SessionUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
43
44
|
move: (input: import("./index.js").SessionMoveInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
44
45
|
prompt: (input: import("./index.js").SessionPromptInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionInboxUser>;
|
|
45
46
|
command: (input: import("./index.js").SessionCommandInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
@@ -58,8 +59,7 @@ export declare function make(options: ClientOptions): {
|
|
|
58
59
|
inbox: {
|
|
59
60
|
list: (input: import("./index.js").SessionInboxListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionInboxInfo[]>;
|
|
60
61
|
cancel: (input: import("./index.js").SessionInboxCancelInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
61
|
-
|
|
62
|
-
queue: (input: import("./index.js").SessionInboxQueueInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
62
|
+
update: (input: import("./index.js").SessionInboxUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
63
63
|
};
|
|
64
64
|
instructions: {
|
|
65
65
|
entry: {
|
|
@@ -77,6 +77,13 @@ export declare function make(options: ClientOptions): {
|
|
|
77
77
|
message: {
|
|
78
78
|
get: (input: import("./index.js").SessionMessageGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").SessionMessageAgentSelected | import("./index.js").SessionMessageSynthetic | import("./index.js").SessionMessageSystem | import("./index.js").SessionMessageSkill | import("./index.js").SessionMessageShell | import("./index.js").SessionMessageCompactionRunning | import("./index.js").SessionMessageIdle | import("./index.js").SessionMessageLocationSwitched | import("./index.js").SessionMessageModelSelected | import("./index.js").SessionMessageCompactionFailed | import("./index.js").SessionMessageUser | import("./index.js").SessionMessageCompactionCompleted | import("./index.js").SessionMessageAssistant>;
|
|
79
79
|
};
|
|
80
|
+
form: {
|
|
81
|
+
list: (input: import("./index.js").SessionFormListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FormInfo[]>;
|
|
82
|
+
create: (input: import("./index.js").SessionFormCreateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FormInfo>;
|
|
83
|
+
get: (input: import("./index.js").SessionFormGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FormDetail>;
|
|
84
|
+
reply: (input: import("./index.js").SessionFormReplyInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
85
|
+
cancel: (input: import("./index.js").SessionFormCancelInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
86
|
+
};
|
|
80
87
|
environment: (input: import("./index.js").SessionEnvironmentInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
81
88
|
view: (input: import("./index.js").SessionViewInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
82
89
|
};
|
|
@@ -137,22 +144,7 @@ export declare function make(options: ClientOptions): {
|
|
|
137
144
|
update: (input: import("./index.js").ProjectUpdateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").Project>;
|
|
138
145
|
};
|
|
139
146
|
form: {
|
|
140
|
-
|
|
141
|
-
list: (input?: import("./index.js").FormRequestListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FormRequestListOutput>;
|
|
142
|
-
};
|
|
143
|
-
list: (input: import("./index.js").FormListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FormInfo[]>;
|
|
144
|
-
create: (input: import("./index.js").FormCreateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FormInfo>;
|
|
145
|
-
get: (input: import("./index.js").FormGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FormInfo>;
|
|
146
|
-
state: (input: import("./index.js").FormStateInput, requestOptions?: OpenCode.RequestOptions) => Promise<{
|
|
147
|
-
status: "pending";
|
|
148
|
-
} | {
|
|
149
|
-
status: "answered";
|
|
150
|
-
answer: import("./index.js").FormAnswer;
|
|
151
|
-
} | {
|
|
152
|
-
status: "cancelled";
|
|
153
|
-
}>;
|
|
154
|
-
reply: (input: import("./index.js").FormReplyInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
155
|
-
cancel: (input: import("./index.js").FormCancelInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
147
|
+
list: (input?: import("./index.js").FormListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FormListOutput>;
|
|
156
148
|
};
|
|
157
149
|
permission: {
|
|
158
150
|
request: {
|
|
@@ -169,12 +161,12 @@ export declare function make(options: ClientOptions): {
|
|
|
169
161
|
list: (input: import("./index.js").PermissionListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PermissionRequest[]>;
|
|
170
162
|
get: (input: import("./index.js").PermissionGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").PermissionRequest>;
|
|
171
163
|
reply: (input: import("./index.js").PermissionReplyInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
172
|
-
rules: (input: import("./index.js").PermissionRulesInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
173
164
|
};
|
|
174
165
|
file: {
|
|
175
166
|
read: (input: import("./index.js").FileReadInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FileReadOutput>;
|
|
176
167
|
list: (input?: import("./index.js").FileListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FileListOutput>;
|
|
177
168
|
find: (input: import("./index.js").FileFindInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FileFindOutput>;
|
|
169
|
+
write: (input: import("./index.js").FileWriteInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").FileWriteOutput>;
|
|
178
170
|
};
|
|
179
171
|
command: {
|
|
180
172
|
list: (input?: import("./index.js").CommandListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").CommandListOutput>;
|
|
@@ -210,7 +202,6 @@ export declare function make(options: ClientOptions): {
|
|
|
210
202
|
list: (input?: import("./index.js").ShellListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ShellListOutput>;
|
|
211
203
|
create: (input: import("./index.js").ShellCreateInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ShellCreateOutput>;
|
|
212
204
|
get: (input: import("./index.js").ShellGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ShellGetOutput>;
|
|
213
|
-
timeout: (input: import("./index.js").ShellTimeoutInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ShellTimeoutOutput>;
|
|
214
205
|
output: (input: import("./index.js").ShellOutputInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").ShellOutputOutput>;
|
|
215
206
|
remove: (input: import("./index.js").ShellRemoveInput, requestOptions?: OpenCode.RequestOptions) => Promise<void>;
|
|
216
207
|
};
|
|
@@ -227,7 +218,9 @@ export declare function make(options: ClientOptions): {
|
|
|
227
218
|
get: (input?: import("./index.js").VcsGetInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").VcsGetOutput>;
|
|
228
219
|
base: (input?: import("./index.js").VcsBaseInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").VcsBaseOutput>;
|
|
229
220
|
status: (input?: import("./index.js").VcsStatusInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").VcsStatusOutput>;
|
|
230
|
-
|
|
221
|
+
branch: {
|
|
222
|
+
list: (input?: import("./index.js").VcsBranchListInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").VcsBranchListOutput>;
|
|
223
|
+
};
|
|
231
224
|
diff: (input: import("./index.js").VcsDiffInput, requestOptions?: OpenCode.RequestOptions) => Promise<import("./index.js").VcsDiffOutput>;
|
|
232
225
|
};
|
|
233
226
|
debug: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginCheckInput, PluginCheckOutput, PluginUpdateInput, SessionListInput, SessionStatsInput, SessionCreateInput, SessionImportInput, SessionExportInput, SessionGetInput, SessionRemoveInput, SessionForkInput, SessionSwitchAgentInput, SessionSwitchModelInput,
|
|
1
|
+
import type { 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, ProviderListInput, ProviderListOutput, ProviderGetInput, ProviderGetOutput, IntegrationListInput, IntegrationListOutput, IntegrationGetInput, IntegrationGetOutput, IntegrationWellknownAddInput, IntegrationConnectKeyInput, IntegrationOauthConnectInput, IntegrationOauthConnectOutput, IntegrationOauthStatusInput, IntegrationOauthStatusOutput, IntegrationOauthCompleteInput, IntegrationOauthCancelInput, IntegrationCommandConnectInput, IntegrationCommandConnectOutput, IntegrationCommandStatusInput, IntegrationCommandStatusOutput, IntegrationCommandCancelInput, McpListInput, McpListOutput, McpAddInput, McpRemoveInput, McpConnectInput, McpDisconnectInput, McpResourceCatalogInput, McpResourceCatalogOutput, CredentialUpdateInput, CredentialActivateInput, CredentialRemoveInput, 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, VcsGetInput, VcsGetOutput, VcsBaseInput, VcsBaseOutput, VcsStatusInput, VcsStatusOutput, VcsBranchListInput, VcsBranchListOutput, VcsDiffInput, VcsDiffOutput, 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;
|
|
@@ -12,10 +12,11 @@ export interface RequestOptions {
|
|
|
12
12
|
}
|
|
13
13
|
export declare function make(options: ClientOptions): {
|
|
14
14
|
server: {
|
|
15
|
-
|
|
15
|
+
info: (requestOptions?: RequestOptions) => Promise<import("./types.js").ServerInfo>;
|
|
16
16
|
};
|
|
17
17
|
location: {
|
|
18
18
|
get: (input?: LocationGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").LocationPublicInfo>;
|
|
19
|
+
reload: (requestOptions?: RequestOptions) => Promise<void>;
|
|
19
20
|
};
|
|
20
21
|
agent: {
|
|
21
22
|
list: (input?: AgentListInput, requestOptions?: RequestOptions) => Promise<AgentListOutput>;
|
|
@@ -40,7 +41,7 @@ export declare function make(options: ClientOptions): {
|
|
|
40
41
|
fork: (input: SessionForkInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInfo>;
|
|
41
42
|
switchAgent: (input: SessionSwitchAgentInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
42
43
|
switchModel: (input: SessionSwitchModelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
43
|
-
|
|
44
|
+
update: (input: SessionUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
44
45
|
move: (input: SessionMoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
45
46
|
prompt: (input: SessionPromptInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInboxUser>;
|
|
46
47
|
command: (input: SessionCommandInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
@@ -59,8 +60,7 @@ export declare function make(options: ClientOptions): {
|
|
|
59
60
|
inbox: {
|
|
60
61
|
list: (input: SessionInboxListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionInboxInfo[]>;
|
|
61
62
|
cancel: (input: SessionInboxCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
62
|
-
|
|
63
|
-
queue: (input: SessionInboxQueueInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
63
|
+
update: (input: SessionInboxUpdateInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
64
64
|
};
|
|
65
65
|
instructions: {
|
|
66
66
|
entry: {
|
|
@@ -78,6 +78,13 @@ export declare function make(options: ClientOptions): {
|
|
|
78
78
|
message: {
|
|
79
79
|
get: (input: SessionMessageGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").SessionMessageAgentSelected | import("./types.js").SessionMessageSynthetic | import("./types.js").SessionMessageSystem | import("./types.js").SessionMessageSkill | import("./types.js").SessionMessageShell | import("./types.js").SessionMessageCompactionRunning | import("./types.js").SessionMessageIdle | import("./types.js").SessionMessageLocationSwitched | import("./types.js").SessionMessageModelSelected | import("./types.js").SessionMessageCompactionFailed | import("./types.js").SessionMessageUser | import("./types.js").SessionMessageCompactionCompleted | import("./types.js").SessionMessageAssistant>;
|
|
80
80
|
};
|
|
81
|
+
form: {
|
|
82
|
+
list: (input: SessionFormListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").FormInfo[]>;
|
|
83
|
+
create: (input: SessionFormCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").FormInfo>;
|
|
84
|
+
get: (input: SessionFormGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").FormDetail>;
|
|
85
|
+
reply: (input: SessionFormReplyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
86
|
+
cancel: (input: SessionFormCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
87
|
+
};
|
|
81
88
|
environment: (input: SessionEnvironmentInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
82
89
|
view: (input: SessionViewInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
83
90
|
};
|
|
@@ -138,22 +145,7 @@ export declare function make(options: ClientOptions): {
|
|
|
138
145
|
update: (input: ProjectUpdateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").Project>;
|
|
139
146
|
};
|
|
140
147
|
form: {
|
|
141
|
-
|
|
142
|
-
list: (input?: FormRequestListInput, requestOptions?: RequestOptions) => Promise<FormRequestListOutput>;
|
|
143
|
-
};
|
|
144
|
-
list: (input: FormListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").FormInfo[]>;
|
|
145
|
-
create: (input: FormCreateInput, requestOptions?: RequestOptions) => Promise<import("./types.js").FormInfo>;
|
|
146
|
-
get: (input: FormGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").FormInfo>;
|
|
147
|
-
state: (input: FormStateInput, requestOptions?: RequestOptions) => Promise<{
|
|
148
|
-
status: "pending";
|
|
149
|
-
} | {
|
|
150
|
-
status: "answered";
|
|
151
|
-
answer: import("./types.js").FormAnswer;
|
|
152
|
-
} | {
|
|
153
|
-
status: "cancelled";
|
|
154
|
-
}>;
|
|
155
|
-
reply: (input: FormReplyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
156
|
-
cancel: (input: FormCancelInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
148
|
+
list: (input?: FormListInput, requestOptions?: RequestOptions) => Promise<FormListOutput>;
|
|
157
149
|
};
|
|
158
150
|
permission: {
|
|
159
151
|
request: {
|
|
@@ -170,12 +162,12 @@ export declare function make(options: ClientOptions): {
|
|
|
170
162
|
list: (input: PermissionListInput, requestOptions?: RequestOptions) => Promise<import("./types.js").PermissionRequest[]>;
|
|
171
163
|
get: (input: PermissionGetInput, requestOptions?: RequestOptions) => Promise<import("./types.js").PermissionRequest>;
|
|
172
164
|
reply: (input: PermissionReplyInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
173
|
-
rules: (input: PermissionRulesInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
174
165
|
};
|
|
175
166
|
file: {
|
|
176
167
|
read: (input: FileReadInput, requestOptions?: RequestOptions) => Promise<FileReadOutput>;
|
|
177
168
|
list: (input?: FileListInput, requestOptions?: RequestOptions) => Promise<FileListOutput>;
|
|
178
169
|
find: (input: FileFindInput, requestOptions?: RequestOptions) => Promise<FileFindOutput>;
|
|
170
|
+
write: (input: FileWriteInput, requestOptions?: RequestOptions) => Promise<FileWriteOutput>;
|
|
179
171
|
};
|
|
180
172
|
command: {
|
|
181
173
|
list: (input?: CommandListInput, requestOptions?: RequestOptions) => Promise<CommandListOutput>;
|
|
@@ -217,7 +209,6 @@ export declare function make(options: ClientOptions): {
|
|
|
217
209
|
list: (input?: ShellListInput, requestOptions?: RequestOptions) => Promise<ShellListOutput>;
|
|
218
210
|
create: (input: ShellCreateInput, requestOptions?: RequestOptions) => Promise<ShellCreateOutput>;
|
|
219
211
|
get: (input: ShellGetInput, requestOptions?: RequestOptions) => Promise<ShellGetOutput>;
|
|
220
|
-
timeout: (input: ShellTimeoutInput, requestOptions?: RequestOptions) => Promise<ShellTimeoutOutput>;
|
|
221
212
|
output: (input: ShellOutputInput, requestOptions?: RequestOptions) => Promise<ShellOutputOutput>;
|
|
222
213
|
remove: (input: ShellRemoveInput, requestOptions?: RequestOptions) => Promise<void>;
|
|
223
214
|
};
|
|
@@ -234,7 +225,9 @@ export declare function make(options: ClientOptions): {
|
|
|
234
225
|
get: (input?: VcsGetInput, requestOptions?: RequestOptions) => Promise<VcsGetOutput>;
|
|
235
226
|
base: (input?: VcsBaseInput, requestOptions?: RequestOptions) => Promise<VcsBaseOutput>;
|
|
236
227
|
status: (input?: VcsStatusInput, requestOptions?: RequestOptions) => Promise<VcsStatusOutput>;
|
|
237
|
-
|
|
228
|
+
branch: {
|
|
229
|
+
list: (input?: VcsBranchListInput, requestOptions?: RequestOptions) => Promise<VcsBranchListOutput>;
|
|
230
|
+
};
|
|
238
231
|
diff: (input: VcsDiffInput, requestOptions?: RequestOptions) => Promise<VcsDiffOutput>;
|
|
239
232
|
};
|
|
240
233
|
debug: {
|
|
@@ -14,14 +14,18 @@ export function make(options) {
|
|
|
14
14
|
for (const [key, value] of new Headers(requestOptions?.headers))
|
|
15
15
|
headers.set(key, value);
|
|
16
16
|
if (descriptor.body !== undefined && !headers.has("content-type"))
|
|
17
|
-
headers.set("content-type", "application/json");
|
|
17
|
+
headers.set("content-type", descriptor.binaryBody ? "application/octet-stream" : "application/json");
|
|
18
18
|
return {
|
|
19
19
|
url,
|
|
20
20
|
init: {
|
|
21
21
|
method: descriptor.method,
|
|
22
22
|
signal: requestOptions?.signal,
|
|
23
23
|
headers,
|
|
24
|
-
body: descriptor.body === undefined
|
|
24
|
+
body: descriptor.body === undefined
|
|
25
|
+
? undefined
|
|
26
|
+
: descriptor.binaryBody
|
|
27
|
+
? descriptor.body
|
|
28
|
+
: JSON.stringify(descriptor.body),
|
|
25
29
|
},
|
|
26
30
|
};
|
|
27
31
|
};
|
|
@@ -130,7 +134,7 @@ export function make(options) {
|
|
|
130
134
|
});
|
|
131
135
|
return {
|
|
132
136
|
server: {
|
|
133
|
-
|
|
137
|
+
info: (requestOptions) => request({ method: "GET", path: `/api/info`, successStatus: 200, declaredStatuses: [400, 401], empty: false }, requestOptions),
|
|
134
138
|
},
|
|
135
139
|
location: {
|
|
136
140
|
get: (input, requestOptions) => request({
|
|
@@ -141,6 +145,13 @@ export function make(options) {
|
|
|
141
145
|
declaredStatuses: [400, 401],
|
|
142
146
|
empty: false,
|
|
143
147
|
}, requestOptions),
|
|
148
|
+
reload: (requestOptions) => request({
|
|
149
|
+
method: "POST",
|
|
150
|
+
path: `/api/location/reload`,
|
|
151
|
+
successStatus: 204,
|
|
152
|
+
declaredStatuses: [400, 401, 503],
|
|
153
|
+
empty: true,
|
|
154
|
+
}, requestOptions),
|
|
144
155
|
},
|
|
145
156
|
agent: {
|
|
146
157
|
list: (input, requestOptions) => request({
|
|
@@ -297,10 +308,10 @@ export function make(options) {
|
|
|
297
308
|
declaredStatuses: [400, 401, 404],
|
|
298
309
|
empty: true,
|
|
299
310
|
}, requestOptions),
|
|
300
|
-
|
|
311
|
+
update: (input, requestOptions) => request({
|
|
301
312
|
method: "PATCH",
|
|
302
313
|
path: `/api/session/${encodeURIComponent(input.sessionID)}`,
|
|
303
|
-
body: { title: input["title"] },
|
|
314
|
+
body: { title: input["title"], permissions: input["permissions"] },
|
|
304
315
|
successStatus: 204,
|
|
305
316
|
declaredStatuses: [400, 401, 404],
|
|
306
317
|
empty: true,
|
|
@@ -442,19 +453,13 @@ export function make(options) {
|
|
|
442
453
|
method: "DELETE",
|
|
443
454
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}`,
|
|
444
455
|
successStatus: 204,
|
|
445
|
-
declaredStatuses: [400, 401, 404
|
|
446
|
-
empty: true,
|
|
447
|
-
}, requestOptions),
|
|
448
|
-
steer: (input, requestOptions) => request({
|
|
449
|
-
method: "POST",
|
|
450
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}/steer`,
|
|
451
|
-
successStatus: 204,
|
|
452
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
456
|
+
declaredStatuses: [400, 401, 404],
|
|
453
457
|
empty: true,
|
|
454
458
|
}, requestOptions),
|
|
455
|
-
|
|
456
|
-
method: "
|
|
457
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}
|
|
459
|
+
update: (input, requestOptions) => request({
|
|
460
|
+
method: "PATCH",
|
|
461
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/inbox/${encodeURIComponent(input.inboxID)}`,
|
|
462
|
+
body: { delivery: input["delivery"] },
|
|
458
463
|
successStatus: 204,
|
|
459
464
|
declaredStatuses: [400, 401, 404, 409],
|
|
460
465
|
empty: true,
|
|
@@ -526,9 +531,48 @@ export function make(options) {
|
|
|
526
531
|
empty: false,
|
|
527
532
|
}, requestOptions).then((value) => value.data),
|
|
528
533
|
},
|
|
534
|
+
form: {
|
|
535
|
+
list: (input, requestOptions) => request({
|
|
536
|
+
method: "GET",
|
|
537
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form`,
|
|
538
|
+
successStatus: 200,
|
|
539
|
+
declaredStatuses: [400, 401, 404],
|
|
540
|
+
empty: false,
|
|
541
|
+
}, requestOptions).then((value) => value.data),
|
|
542
|
+
create: (input, requestOptions) => request({
|
|
543
|
+
method: "POST",
|
|
544
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form`,
|
|
545
|
+
body: { id: input["id"], title: input["title"], metadata: input["metadata"], fields: input["fields"] },
|
|
546
|
+
successStatus: 200,
|
|
547
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
548
|
+
empty: false,
|
|
549
|
+
}, requestOptions).then((value) => value.data),
|
|
550
|
+
get: (input, requestOptions) => request({
|
|
551
|
+
method: "GET",
|
|
552
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}`,
|
|
553
|
+
successStatus: 200,
|
|
554
|
+
declaredStatuses: [400, 401, 404],
|
|
555
|
+
empty: false,
|
|
556
|
+
}, requestOptions).then((value) => value.data),
|
|
557
|
+
reply: (input, requestOptions) => request({
|
|
558
|
+
method: "POST",
|
|
559
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}/reply`,
|
|
560
|
+
body: { answer: input["answer"] },
|
|
561
|
+
successStatus: 204,
|
|
562
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
563
|
+
empty: true,
|
|
564
|
+
}, requestOptions),
|
|
565
|
+
cancel: (input, requestOptions) => request({
|
|
566
|
+
method: "DELETE",
|
|
567
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}`,
|
|
568
|
+
successStatus: 204,
|
|
569
|
+
declaredStatuses: [400, 401, 404, 409],
|
|
570
|
+
empty: true,
|
|
571
|
+
}, requestOptions),
|
|
572
|
+
},
|
|
529
573
|
environment: (input, requestOptions) => request({
|
|
530
574
|
method: "PUT",
|
|
531
|
-
path: `/api/
|
|
575
|
+
path: `/api/session/${encodeURIComponent(input.sessionID)}/environment`,
|
|
532
576
|
body: { variables: input["variables"] },
|
|
533
577
|
successStatus: 204,
|
|
534
578
|
declaredStatuses: [400, 401, 404],
|
|
@@ -574,7 +618,7 @@ export function make(options) {
|
|
|
574
618
|
generate: {
|
|
575
619
|
text: (input, requestOptions) => request({
|
|
576
620
|
method: "POST",
|
|
577
|
-
path: `/api/generate`,
|
|
621
|
+
path: `/api/experimental/generate`,
|
|
578
622
|
body: { prompt: input["prompt"], model: input["model"] },
|
|
579
623
|
successStatus: 200,
|
|
580
624
|
declaredStatuses: [400, 401, 503],
|
|
@@ -796,59 +840,13 @@ export function make(options) {
|
|
|
796
840
|
}, requestOptions),
|
|
797
841
|
},
|
|
798
842
|
form: {
|
|
799
|
-
request: {
|
|
800
|
-
list: (input, requestOptions) => request({
|
|
801
|
-
method: "GET",
|
|
802
|
-
path: `/api/form/request`,
|
|
803
|
-
query: { location: input?.["location"] },
|
|
804
|
-
successStatus: 200,
|
|
805
|
-
declaredStatuses: [400, 401],
|
|
806
|
-
empty: false,
|
|
807
|
-
}, requestOptions),
|
|
808
|
-
},
|
|
809
843
|
list: (input, requestOptions) => request({
|
|
810
844
|
method: "GET",
|
|
811
|
-
path: `/api/
|
|
812
|
-
|
|
813
|
-
declaredStatuses: [400, 401, 404],
|
|
814
|
-
empty: false,
|
|
815
|
-
}, requestOptions).then((value) => value.data),
|
|
816
|
-
create: (input, requestOptions) => request({
|
|
817
|
-
method: "POST",
|
|
818
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form`,
|
|
819
|
-
body: { id: input["id"], title: input["title"], metadata: input["metadata"], fields: input["fields"] },
|
|
820
|
-
successStatus: 200,
|
|
821
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
822
|
-
empty: false,
|
|
823
|
-
}, requestOptions).then((value) => value.data),
|
|
824
|
-
get: (input, requestOptions) => request({
|
|
825
|
-
method: "GET",
|
|
826
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}`,
|
|
827
|
-
successStatus: 200,
|
|
828
|
-
declaredStatuses: [400, 401, 404],
|
|
829
|
-
empty: false,
|
|
830
|
-
}, requestOptions).then((value) => value.data),
|
|
831
|
-
state: (input, requestOptions) => request({
|
|
832
|
-
method: "GET",
|
|
833
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}/state`,
|
|
845
|
+
path: `/api/form`,
|
|
846
|
+
query: { location: input?.["location"] },
|
|
834
847
|
successStatus: 200,
|
|
835
|
-
declaredStatuses: [400, 401
|
|
848
|
+
declaredStatuses: [400, 401],
|
|
836
849
|
empty: false,
|
|
837
|
-
}, requestOptions).then((value) => value.data),
|
|
838
|
-
reply: (input, requestOptions) => request({
|
|
839
|
-
method: "POST",
|
|
840
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}/reply`,
|
|
841
|
-
body: { answer: input["answer"] },
|
|
842
|
-
successStatus: 204,
|
|
843
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
844
|
-
empty: true,
|
|
845
|
-
}, requestOptions),
|
|
846
|
-
cancel: (input, requestOptions) => request({
|
|
847
|
-
method: "POST",
|
|
848
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/form/${encodeURIComponent(input.formID)}/cancel`,
|
|
849
|
-
successStatus: 204,
|
|
850
|
-
declaredStatuses: [400, 401, 404, 409],
|
|
851
|
-
empty: true,
|
|
852
850
|
}, requestOptions),
|
|
853
851
|
},
|
|
854
852
|
permission: {
|
|
@@ -912,15 +910,7 @@ export function make(options) {
|
|
|
912
910
|
reply: (input, requestOptions) => request({
|
|
913
911
|
method: "POST",
|
|
914
912
|
path: `/api/session/${encodeURIComponent(input.sessionID)}/permission/${encodeURIComponent(input.requestID)}/reply`,
|
|
915
|
-
body: {
|
|
916
|
-
successStatus: 204,
|
|
917
|
-
declaredStatuses: [400, 401, 404],
|
|
918
|
-
empty: true,
|
|
919
|
-
}, requestOptions),
|
|
920
|
-
rules: (input, requestOptions) => request({
|
|
921
|
-
method: "PUT",
|
|
922
|
-
path: `/api/session/${encodeURIComponent(input.sessionID)}/permission/rules`,
|
|
923
|
-
body: { permissions: input["permissions"] },
|
|
913
|
+
body: { decision: input["decision"], message: input["message"] },
|
|
924
914
|
successStatus: 204,
|
|
925
915
|
declaredStatuses: [400, 401, 404],
|
|
926
916
|
empty: true,
|
|
@@ -952,6 +942,16 @@ export function make(options) {
|
|
|
952
942
|
declaredStatuses: [400, 401],
|
|
953
943
|
empty: false,
|
|
954
944
|
}, requestOptions),
|
|
945
|
+
write: (input, requestOptions) => request({
|
|
946
|
+
method: "POST",
|
|
947
|
+
path: `/api/experimental/fs/write`,
|
|
948
|
+
query: { location: input["location"], path: input["path"] },
|
|
949
|
+
body: input["payload"],
|
|
950
|
+
successStatus: 200,
|
|
951
|
+
declaredStatuses: [400, 401],
|
|
952
|
+
empty: false,
|
|
953
|
+
binaryBody: true,
|
|
954
|
+
}, requestOptions),
|
|
955
955
|
},
|
|
956
956
|
command: {
|
|
957
957
|
list: (input, requestOptions) => request({
|
|
@@ -1164,15 +1164,6 @@ export function make(options) {
|
|
|
1164
1164
|
declaredStatuses: [400, 401, 404],
|
|
1165
1165
|
empty: false,
|
|
1166
1166
|
}, requestOptions),
|
|
1167
|
-
timeout: (input, requestOptions) => request({
|
|
1168
|
-
method: "PATCH",
|
|
1169
|
-
path: `/api/shell/${encodeURIComponent(input.id)}/timeout`,
|
|
1170
|
-
query: { location: input["location"] },
|
|
1171
|
-
body: { timeout: input["timeout"] },
|
|
1172
|
-
successStatus: 200,
|
|
1173
|
-
declaredStatuses: [400, 401, 404],
|
|
1174
|
-
empty: false,
|
|
1175
|
-
}, requestOptions),
|
|
1176
1167
|
output: (input, requestOptions) => request({
|
|
1177
1168
|
method: "GET",
|
|
1178
1169
|
path: `/api/shell/${encodeURIComponent(input.id)}/output`,
|
|
@@ -1186,7 +1177,7 @@ export function make(options) {
|
|
|
1186
1177
|
path: `/api/shell/${encodeURIComponent(input.id)}`,
|
|
1187
1178
|
query: { location: input["location"] },
|
|
1188
1179
|
successStatus: 204,
|
|
1189
|
-
declaredStatuses: [400, 401
|
|
1180
|
+
declaredStatuses: [400, 401],
|
|
1190
1181
|
empty: true,
|
|
1191
1182
|
}, requestOptions),
|
|
1192
1183
|
},
|
|
@@ -1265,14 +1256,16 @@ export function make(options) {
|
|
|
1265
1256
|
declaredStatuses: [400, 401],
|
|
1266
1257
|
empty: false,
|
|
1267
1258
|
}, requestOptions),
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1259
|
+
branch: {
|
|
1260
|
+
list: (input, requestOptions) => request({
|
|
1261
|
+
method: "GET",
|
|
1262
|
+
path: `/api/vcs/branch`,
|
|
1263
|
+
query: { location: input?.["location"], search: input?.["search"], limit: input?.["limit"] },
|
|
1264
|
+
successStatus: 200,
|
|
1265
|
+
declaredStatuses: [400, 401],
|
|
1266
|
+
empty: false,
|
|
1267
|
+
}, requestOptions),
|
|
1268
|
+
},
|
|
1276
1269
|
diff: (input, requestOptions) => request({
|
|
1277
1270
|
method: "GET",
|
|
1278
1271
|
path: `/api/vcs/diff`,
|