@qwen-code/web-shell 0.24.6 → 0.24.7-nightly.20260930.57e720bc97
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/README.md +10 -0
- package/dist/ThreadsRoute-B5WfAa5o.js +1896 -0
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/index-BAkajV4Z.js +121676 -0
- package/dist/index.js +69 -118171
- package/dist/sw.js +1 -1
- package/dist/{toolNames-C6S4xtsA.js → toolNames-DHN3_HCf.js} +5591 -4691
- package/dist/transcript.js +9483 -9267
- package/dist/types/adapters/messageTypes.d.ts +11 -0
- package/dist/types/components/BranchPickerPopover.d.ts +2 -1
- package/dist/types/components/ChatEditor.d.ts +1 -0
- package/dist/types/components/DesktopRelayControl.d.ts +51 -0
- package/dist/types/components/MessageList.d.ts +1 -0
- package/dist/types/components/agents/AgentCreatePage.d.ts +10 -1
- package/dist/types/components/agents/AgentsManagerPage.d.ts +5 -1
- package/dist/types/components/artifacts/ArtifactPanel.d.ts +8 -1
- package/dist/types/components/artifacts/TrajectoryInspector.d.ts +17 -0
- package/dist/types/components/artifacts/TrajectoryOverview.d.ts +3 -1
- package/dist/types/components/artifacts/TrajectoryWaterfallCell.d.ts +15 -0
- package/dist/types/components/composer/AddMenu.d.ts +5 -1
- package/dist/types/components/dialogs/BranchSessionDialog.d.ts +6 -0
- package/dist/types/components/dialogs/GitDiffDialog.d.ts +2 -1
- package/dist/types/components/dialogs/GitLogDialog.d.ts +2 -1
- package/dist/types/components/managed/WorkspaceBindingCreator.d.ts +6 -0
- package/dist/types/components/managed/generated/managed-agent-api.d.ts +1346 -0
- package/dist/types/components/managed/java-managed-agent-client.d.ts +32 -113
- package/dist/types/components/managed/java-managed-agent-provider.d.ts +1 -0
- package/dist/types/components/managed/managed-agent-provider.d.ts +31 -1
- package/dist/types/components/messages/AssistantMessage.d.ts +3 -0
- package/dist/types/components/messages/AuthorAvatar.d.ts +16 -0
- package/dist/types/components/messages/ContextUsageMessage.d.ts +5 -1
- package/dist/types/components/messages/McpApp.d.ts +1 -1
- package/dist/types/components/messages/StatsMessage.d.ts +6 -1
- package/dist/types/components/messages/toolFormatting.d.ts +2 -0
- package/dist/types/components/panels/EnvironmentPanel.d.ts +2 -1
- package/dist/types/components/sidebar/UpdateControl.d.ts +10 -0
- package/dist/types/components/sidebar/WebShellSidebar.d.ts +6 -3
- package/dist/types/components/sidebar/WorkspaceSection.d.ts +2 -1
- package/dist/types/components/sidebar/sessionSearch.d.ts +2 -1
- package/dist/types/components/workspace-agents/LazyThreadsRoute.d.ts +7 -0
- package/dist/types/components/workspace-agents/ThreadChat.d.ts +30 -0
- package/dist/types/components/workspace-agents/ThreadView.d.ts +65 -0
- package/dist/types/components/workspace-agents/ThreadsPage.d.ts +104 -0
- package/dist/types/components/workspace-agents/ThreadsRoute.d.ts +23 -0
- package/dist/types/components/workspace-agents/agent-events.d.ts +50 -0
- package/dist/types/components/workspace-agents/agents-view-logic.d.ts +176 -0
- package/dist/types/components/workspace-agents/messages.d.ts +16 -0
- package/dist/types/components/workspace-agents/messages.transcript-stub.d.ts +12 -0
- package/dist/types/components/workspace-agents/share-agent-dialog.d.ts +33 -0
- package/dist/types/components/workspace-agents/threads-api.d.ts +49 -0
- package/dist/types/components/workspace-agents/useAgentChatEntry.d.ts +36 -0
- package/dist/types/components/workspace-agents/useProjectConversations.d.ts +10 -0
- package/dist/types/customization.d.ts +10 -0
- package/dist/types/daemon/session/transcript-page-table.d.ts +10 -1
- package/dist/types/daemon/session/types.d.ts +2 -2
- package/dist/types/desktop-relay/desktop-relay-client.d.ts +63 -0
- package/dist/types/mcpAppHostContext.d.ts +7 -0
- package/dist/types/settings/messages.d.ts +16 -0
- package/dist/types/settings/messages.transcript-stub.d.ts +12 -0
- package/dist/types/settings.d.ts +1 -0
- package/dist/types/trajectory/buildTrajectoryLayout.d.ts +27 -0
- package/dist/types/trajectory/summarizeTrajectory.d.ts +20 -0
- package/dist/types/trajectory/types.d.ts +2 -1
- package/dist/types/trajectory/useTimelineViewport.d.ts +19 -0
- package/package.json +3 -1
|
@@ -0,0 +1,1346 @@
|
|
|
1
|
+
export interface paths {
|
|
2
|
+
"/api/agent/web-shell/v1/sessions/query": {
|
|
3
|
+
parameters: {
|
|
4
|
+
query?: never;
|
|
5
|
+
header?: never;
|
|
6
|
+
path?: never;
|
|
7
|
+
cookie?: never;
|
|
8
|
+
};
|
|
9
|
+
get?: never;
|
|
10
|
+
put?: never;
|
|
11
|
+
post: operations["webShellListSessions"];
|
|
12
|
+
delete?: never;
|
|
13
|
+
options?: never;
|
|
14
|
+
head?: never;
|
|
15
|
+
patch?: never;
|
|
16
|
+
trace?: never;
|
|
17
|
+
};
|
|
18
|
+
"/api/agent/web-shell/v1/sessions/get": {
|
|
19
|
+
parameters: {
|
|
20
|
+
query?: never;
|
|
21
|
+
header?: never;
|
|
22
|
+
path?: never;
|
|
23
|
+
cookie?: never;
|
|
24
|
+
};
|
|
25
|
+
get?: never;
|
|
26
|
+
put?: never;
|
|
27
|
+
post: operations["webShellGetSession"];
|
|
28
|
+
delete?: never;
|
|
29
|
+
options?: never;
|
|
30
|
+
head?: never;
|
|
31
|
+
patch?: never;
|
|
32
|
+
trace?: never;
|
|
33
|
+
};
|
|
34
|
+
"/api/agent/web-shell/v1/transcript/query": {
|
|
35
|
+
parameters: {
|
|
36
|
+
query?: never;
|
|
37
|
+
header?: never;
|
|
38
|
+
path?: never;
|
|
39
|
+
cookie?: never;
|
|
40
|
+
};
|
|
41
|
+
get?: never;
|
|
42
|
+
put?: never;
|
|
43
|
+
/** @description Without a cursor, a Session that has a Snapshot returns all of its Items, the events up to the Snapshot other than turn.accepted, item.output_text.delta, item.reasoning.delta and item.tool_call.updated, which the Items already hold, and every event after it. Otherwise, and for an olderCursor, limit bounds the page of events. */
|
|
44
|
+
post: operations["webShellTranscript"];
|
|
45
|
+
delete?: never;
|
|
46
|
+
options?: never;
|
|
47
|
+
head?: never;
|
|
48
|
+
patch?: never;
|
|
49
|
+
trace?: never;
|
|
50
|
+
};
|
|
51
|
+
"/api/agent/web-shell/v1/events/stream": {
|
|
52
|
+
parameters: {
|
|
53
|
+
query?: never;
|
|
54
|
+
header?: never;
|
|
55
|
+
path?: never;
|
|
56
|
+
cookie?: never;
|
|
57
|
+
};
|
|
58
|
+
get?: never;
|
|
59
|
+
put?: never;
|
|
60
|
+
/** @description POST SSE consumed through fetch response.body. An afterSequence below the replay floor ends the stream with one agent.session.resync_required frame instead of a 409; reload the transcript and resume after its lastSequence. */
|
|
61
|
+
post: operations["webShellStreamEvents"];
|
|
62
|
+
delete?: never;
|
|
63
|
+
options?: never;
|
|
64
|
+
head?: never;
|
|
65
|
+
patch?: never;
|
|
66
|
+
trace?: never;
|
|
67
|
+
};
|
|
68
|
+
"/api/agent/web-shell/v1/sessions/create": {
|
|
69
|
+
parameters: {
|
|
70
|
+
query?: never;
|
|
71
|
+
header?: never;
|
|
72
|
+
path?: never;
|
|
73
|
+
cookie?: never;
|
|
74
|
+
};
|
|
75
|
+
get?: never;
|
|
76
|
+
put?: never;
|
|
77
|
+
/** @description Maps workspaceId/cwdRelative to public Workspace selection without using environmentId or absolute cwd. Shares G0's opt-in initial file-tool Turn admission and fixed server-owned profile with public Session creation. Later Workspace submit, cancel and lifecycle operations remain gated. Freeze selection with the original idempotency key; admission does not prove physical directory readiness. */
|
|
78
|
+
post: operations["webShellCreateSession"];
|
|
79
|
+
delete?: never;
|
|
80
|
+
options?: never;
|
|
81
|
+
head?: never;
|
|
82
|
+
patch?: never;
|
|
83
|
+
trace?: never;
|
|
84
|
+
};
|
|
85
|
+
"/api/agent/web-shell/v1/turns/submit": {
|
|
86
|
+
parameters: {
|
|
87
|
+
query?: never;
|
|
88
|
+
header?: never;
|
|
89
|
+
path?: never;
|
|
90
|
+
cookie?: never;
|
|
91
|
+
};
|
|
92
|
+
get?: never;
|
|
93
|
+
put?: never;
|
|
94
|
+
post: operations["webShellSubmitTurn"];
|
|
95
|
+
delete?: never;
|
|
96
|
+
options?: never;
|
|
97
|
+
head?: never;
|
|
98
|
+
patch?: never;
|
|
99
|
+
trace?: never;
|
|
100
|
+
};
|
|
101
|
+
"/api/agent/web-shell/v1/turns/cancel": {
|
|
102
|
+
parameters: {
|
|
103
|
+
query?: never;
|
|
104
|
+
header?: never;
|
|
105
|
+
path?: never;
|
|
106
|
+
cookie?: never;
|
|
107
|
+
};
|
|
108
|
+
get?: never;
|
|
109
|
+
put?: never;
|
|
110
|
+
post: operations["webShellCancelTurn"];
|
|
111
|
+
delete?: never;
|
|
112
|
+
options?: never;
|
|
113
|
+
head?: never;
|
|
114
|
+
patch?: never;
|
|
115
|
+
trace?: never;
|
|
116
|
+
};
|
|
117
|
+
"/api/agent/web-shell/v1/workspaces/query": {
|
|
118
|
+
parameters: {
|
|
119
|
+
query?: never;
|
|
120
|
+
header?: never;
|
|
121
|
+
path?: never;
|
|
122
|
+
cookie?: never;
|
|
123
|
+
};
|
|
124
|
+
get?: never;
|
|
125
|
+
put?: never;
|
|
126
|
+
/** @description Same authorization, paging, explicit default and pre-Session capability discovery as listWorkspaces, with camelCase fields. Listing errors must not cause silent fallback to a default directory. */
|
|
127
|
+
post: operations["webShellQueryWorkspaces"];
|
|
128
|
+
delete?: never;
|
|
129
|
+
options?: never;
|
|
130
|
+
head?: never;
|
|
131
|
+
patch?: never;
|
|
132
|
+
trace?: never;
|
|
133
|
+
};
|
|
134
|
+
"/api/agent/web-shell/v1/operations/query": {
|
|
135
|
+
parameters: {
|
|
136
|
+
query?: never;
|
|
137
|
+
header?: never;
|
|
138
|
+
path?: never;
|
|
139
|
+
cookie?: never;
|
|
140
|
+
};
|
|
141
|
+
get?: never;
|
|
142
|
+
put?: never;
|
|
143
|
+
post: operations["webShellQueryCwdOperation"];
|
|
144
|
+
delete?: never;
|
|
145
|
+
options?: never;
|
|
146
|
+
head?: never;
|
|
147
|
+
patch?: never;
|
|
148
|
+
trace?: never;
|
|
149
|
+
};
|
|
150
|
+
"/api/agent/web-shell/v1/actions/query": {
|
|
151
|
+
parameters: {
|
|
152
|
+
query?: never;
|
|
153
|
+
header?: never;
|
|
154
|
+
path?: never;
|
|
155
|
+
cookie?: never;
|
|
156
|
+
};
|
|
157
|
+
get?: never;
|
|
158
|
+
put?: never;
|
|
159
|
+
/** @description D6 serves Hosted permission Actions. Question Actions and vote_recorded remain planned. Reads follow Session authorization; only the Session creator may respond. Responses are durable operations, reconciled against the original journal decision. */
|
|
160
|
+
post: operations["queryWebShellActions"];
|
|
161
|
+
delete?: never;
|
|
162
|
+
options?: never;
|
|
163
|
+
head?: never;
|
|
164
|
+
patch?: never;
|
|
165
|
+
trace?: never;
|
|
166
|
+
};
|
|
167
|
+
"/api/agent/web-shell/v1/actions/get": {
|
|
168
|
+
parameters: {
|
|
169
|
+
query?: never;
|
|
170
|
+
header?: never;
|
|
171
|
+
path?: never;
|
|
172
|
+
cookie?: never;
|
|
173
|
+
};
|
|
174
|
+
get?: never;
|
|
175
|
+
put?: never;
|
|
176
|
+
/** @description D6 serves Hosted permission Actions. Question Actions and vote_recorded remain planned. Reads follow Session authorization; only the Session creator may respond. Responses are durable operations, reconciled against the original journal decision. */
|
|
177
|
+
post: operations["getWebShellAction"];
|
|
178
|
+
delete?: never;
|
|
179
|
+
options?: never;
|
|
180
|
+
head?: never;
|
|
181
|
+
patch?: never;
|
|
182
|
+
trace?: never;
|
|
183
|
+
};
|
|
184
|
+
"/api/agent/web-shell/v1/actions/respond": {
|
|
185
|
+
parameters: {
|
|
186
|
+
query?: never;
|
|
187
|
+
header?: never;
|
|
188
|
+
path?: never;
|
|
189
|
+
cookie?: never;
|
|
190
|
+
};
|
|
191
|
+
get?: never;
|
|
192
|
+
put?: never;
|
|
193
|
+
/** @description D6 serves Hosted permission Actions. Question Actions and vote_recorded remain planned. Reads follow Session authorization; only the Session creator may respond. Responses are durable operations, reconciled against the original journal decision. */
|
|
194
|
+
post: operations["respondWebShellAction"];
|
|
195
|
+
delete?: never;
|
|
196
|
+
options?: never;
|
|
197
|
+
head?: never;
|
|
198
|
+
patch?: never;
|
|
199
|
+
trace?: never;
|
|
200
|
+
};
|
|
201
|
+
"/api/agent/web-shell/v1/sessions/close": {
|
|
202
|
+
parameters: {
|
|
203
|
+
query?: never;
|
|
204
|
+
header?: never;
|
|
205
|
+
path?: never;
|
|
206
|
+
cookie?: never;
|
|
207
|
+
};
|
|
208
|
+
get?: never;
|
|
209
|
+
put?: never;
|
|
210
|
+
post: operations["closeWebShellSession"];
|
|
211
|
+
delete?: never;
|
|
212
|
+
options?: never;
|
|
213
|
+
head?: never;
|
|
214
|
+
patch?: never;
|
|
215
|
+
trace?: never;
|
|
216
|
+
};
|
|
217
|
+
"/api/agent/web-shell/v1/sessions/archive": {
|
|
218
|
+
parameters: {
|
|
219
|
+
query?: never;
|
|
220
|
+
header?: never;
|
|
221
|
+
path?: never;
|
|
222
|
+
cookie?: never;
|
|
223
|
+
};
|
|
224
|
+
get?: never;
|
|
225
|
+
put?: never;
|
|
226
|
+
post: operations["archiveWebShellSession"];
|
|
227
|
+
delete?: never;
|
|
228
|
+
options?: never;
|
|
229
|
+
head?: never;
|
|
230
|
+
patch?: never;
|
|
231
|
+
trace?: never;
|
|
232
|
+
};
|
|
233
|
+
"/api/agent/web-shell/v1/sessions/delete": {
|
|
234
|
+
parameters: {
|
|
235
|
+
query?: never;
|
|
236
|
+
header?: never;
|
|
237
|
+
path?: never;
|
|
238
|
+
cookie?: never;
|
|
239
|
+
};
|
|
240
|
+
get?: never;
|
|
241
|
+
put?: never;
|
|
242
|
+
post: operations["deleteWebShellSession"];
|
|
243
|
+
delete?: never;
|
|
244
|
+
options?: never;
|
|
245
|
+
head?: never;
|
|
246
|
+
patch?: never;
|
|
247
|
+
trace?: never;
|
|
248
|
+
};
|
|
249
|
+
"/api/agent/web-shell/v1/workspaces/get": {
|
|
250
|
+
parameters: {
|
|
251
|
+
query?: never;
|
|
252
|
+
header?: never;
|
|
253
|
+
path?: never;
|
|
254
|
+
cookie?: never;
|
|
255
|
+
};
|
|
256
|
+
get?: never;
|
|
257
|
+
put?: never;
|
|
258
|
+
/** @description Read one authorized Workspace by its logical ID; absent or unreadable Workspaces return 404. No Runtime is started. */
|
|
259
|
+
post: operations["webShellGetWorkspace"];
|
|
260
|
+
delete?: never;
|
|
261
|
+
options?: never;
|
|
262
|
+
head?: never;
|
|
263
|
+
patch?: never;
|
|
264
|
+
trace?: never;
|
|
265
|
+
};
|
|
266
|
+
"/api/agent/web-shell/v1/tasks/query": {
|
|
267
|
+
parameters: {
|
|
268
|
+
query?: never;
|
|
269
|
+
header?: never;
|
|
270
|
+
path?: never;
|
|
271
|
+
cookie?: never;
|
|
272
|
+
};
|
|
273
|
+
get?: never;
|
|
274
|
+
put?: never;
|
|
275
|
+
post: operations["queryWebShellTasks"];
|
|
276
|
+
delete?: never;
|
|
277
|
+
options?: never;
|
|
278
|
+
head?: never;
|
|
279
|
+
patch?: never;
|
|
280
|
+
trace?: never;
|
|
281
|
+
};
|
|
282
|
+
"/api/agent/web-shell/v1/tasks/get": {
|
|
283
|
+
parameters: {
|
|
284
|
+
query?: never;
|
|
285
|
+
header?: never;
|
|
286
|
+
path?: never;
|
|
287
|
+
cookie?: never;
|
|
288
|
+
};
|
|
289
|
+
get?: never;
|
|
290
|
+
put?: never;
|
|
291
|
+
post: operations["getWebShellTask"];
|
|
292
|
+
delete?: never;
|
|
293
|
+
options?: never;
|
|
294
|
+
head?: never;
|
|
295
|
+
patch?: never;
|
|
296
|
+
trace?: never;
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
export type webhooks = Record<string, never>;
|
|
300
|
+
export interface components {
|
|
301
|
+
schemas: {
|
|
302
|
+
InputBlock: {
|
|
303
|
+
/** @enum {string} */
|
|
304
|
+
type: "input_text";
|
|
305
|
+
text: string;
|
|
306
|
+
};
|
|
307
|
+
WebShellListRequest: {
|
|
308
|
+
cursor?: string | null;
|
|
309
|
+
/** @default 20 */
|
|
310
|
+
limit?: number | null;
|
|
311
|
+
};
|
|
312
|
+
WebShellSessionRequest: {
|
|
313
|
+
/** Format: uuid */
|
|
314
|
+
sessionId: string;
|
|
315
|
+
};
|
|
316
|
+
WebShellTranscriptRequest: {
|
|
317
|
+
/** Format: uuid */
|
|
318
|
+
sessionId: string;
|
|
319
|
+
cursor?: string | null;
|
|
320
|
+
/** @default 100 */
|
|
321
|
+
limit?: number | null;
|
|
322
|
+
};
|
|
323
|
+
WebShellStreamRequest: {
|
|
324
|
+
/** Format: uuid */
|
|
325
|
+
sessionId: string;
|
|
326
|
+
/**
|
|
327
|
+
* Format: int64
|
|
328
|
+
* @default 0
|
|
329
|
+
*/
|
|
330
|
+
afterSequence?: number | null;
|
|
331
|
+
};
|
|
332
|
+
WebShellCreateRequest: {
|
|
333
|
+
/** @description Trace correlation only. */
|
|
334
|
+
requestId?: string | null;
|
|
335
|
+
idempotencyKey: string;
|
|
336
|
+
agentId: string;
|
|
337
|
+
/** @description Planned; phase one rejects non-blank values. */
|
|
338
|
+
environmentId?: string | null;
|
|
339
|
+
title?: string | null;
|
|
340
|
+
input?: components["schemas"]["InputBlock"][];
|
|
341
|
+
metadata?: components["schemas"]["WebShellMetadata"];
|
|
342
|
+
workspace?: components["schemas"]["WebShellWorkspaceSelection"];
|
|
343
|
+
};
|
|
344
|
+
WebShellSubmitRequest: {
|
|
345
|
+
/** @description Trace correlation only. */
|
|
346
|
+
requestId?: string | null;
|
|
347
|
+
idempotencyKey: string;
|
|
348
|
+
/** Format: uuid */
|
|
349
|
+
sessionId: string;
|
|
350
|
+
input?: components["schemas"]["InputBlock"][];
|
|
351
|
+
metadata?: components["schemas"]["WebShellMetadata"];
|
|
352
|
+
};
|
|
353
|
+
WebShellCancelRequest: {
|
|
354
|
+
/** @description Trace correlation only. */
|
|
355
|
+
requestId?: string | null;
|
|
356
|
+
idempotencyKey: string;
|
|
357
|
+
/** Format: uuid */
|
|
358
|
+
sessionId: string;
|
|
359
|
+
turnId: string;
|
|
360
|
+
};
|
|
361
|
+
WebShellMetadata: {
|
|
362
|
+
clientId?: string;
|
|
363
|
+
} | null;
|
|
364
|
+
/** @description With durable_operations enabled, all three target fields are returned. accepted means Java durable delivery responsibility, not model execution. Missing fields retain the deployed legacy response semantics. */
|
|
365
|
+
WebShellAdmission: {
|
|
366
|
+
/** Format: uuid */
|
|
367
|
+
sessionId: string;
|
|
368
|
+
turnId?: string | null;
|
|
369
|
+
status: string;
|
|
370
|
+
replayed: boolean;
|
|
371
|
+
};
|
|
372
|
+
WebShellTurn: {
|
|
373
|
+
turnId: string;
|
|
374
|
+
/** Format: uuid */
|
|
375
|
+
sessionId: string;
|
|
376
|
+
status: string;
|
|
377
|
+
/** Format: int64 */
|
|
378
|
+
submittedAt: number;
|
|
379
|
+
/** Format: int64 */
|
|
380
|
+
completedAt?: number | null;
|
|
381
|
+
errorCode?: string | null;
|
|
382
|
+
usage?: {
|
|
383
|
+
[key: string]: unknown;
|
|
384
|
+
} | null;
|
|
385
|
+
};
|
|
386
|
+
WebShellSession: {
|
|
387
|
+
/** Format: uuid */
|
|
388
|
+
sessionId: string;
|
|
389
|
+
title?: string | null;
|
|
390
|
+
agentId: string;
|
|
391
|
+
status: string;
|
|
392
|
+
/** Format: int64 */
|
|
393
|
+
createdAt: number;
|
|
394
|
+
/** Format: int64 */
|
|
395
|
+
updatedAt: number;
|
|
396
|
+
activeTurn?: components["schemas"]["WebShellTurn"] | null;
|
|
397
|
+
environment?: {
|
|
398
|
+
[key: string]: unknown;
|
|
399
|
+
} | null;
|
|
400
|
+
/** Format: int64 */
|
|
401
|
+
lastSequence: number;
|
|
402
|
+
workspace?: components["schemas"]["WebShellWorkspaceContext"];
|
|
403
|
+
capabilities?: components["schemas"]["WebShellSessionCapabilities"];
|
|
404
|
+
};
|
|
405
|
+
WebShellSessionCapabilities: {
|
|
406
|
+
/** @default false */
|
|
407
|
+
actions: boolean;
|
|
408
|
+
tasks: boolean;
|
|
409
|
+
};
|
|
410
|
+
WebShellSessionPage: {
|
|
411
|
+
data: components["schemas"]["WebShellSession"][];
|
|
412
|
+
nextCursor?: string | null;
|
|
413
|
+
hasMore: boolean;
|
|
414
|
+
};
|
|
415
|
+
WebShellTranscript: {
|
|
416
|
+
items: components["schemas"]["WebShellItem"][];
|
|
417
|
+
events: components["schemas"]["WebShellEvent"][];
|
|
418
|
+
/** Format: int64 */
|
|
419
|
+
coveredSequence: number;
|
|
420
|
+
olderCursor?: string | null;
|
|
421
|
+
hasMore: boolean;
|
|
422
|
+
/** Format: int64 */
|
|
423
|
+
lastSequence: number;
|
|
424
|
+
};
|
|
425
|
+
WebShellContentPart: {
|
|
426
|
+
partId: string;
|
|
427
|
+
type: string;
|
|
428
|
+
text: string;
|
|
429
|
+
/** Format: int64 */
|
|
430
|
+
firstSequence: number;
|
|
431
|
+
/** Format: int64 */
|
|
432
|
+
lastSequence: number;
|
|
433
|
+
};
|
|
434
|
+
WebShellItem: {
|
|
435
|
+
itemId: string;
|
|
436
|
+
/** Format: uuid */
|
|
437
|
+
sessionId: string;
|
|
438
|
+
turnId: string;
|
|
439
|
+
type: string;
|
|
440
|
+
role?: string | null;
|
|
441
|
+
status: string;
|
|
442
|
+
content: components["schemas"]["WebShellContentPart"][];
|
|
443
|
+
attributes: {
|
|
444
|
+
[key: string]: unknown;
|
|
445
|
+
};
|
|
446
|
+
/** Format: int64 */
|
|
447
|
+
firstSequence: number;
|
|
448
|
+
/** Format: int64 */
|
|
449
|
+
lastSequence: number;
|
|
450
|
+
/** Format: int64 */
|
|
451
|
+
createdAt: number;
|
|
452
|
+
/** Format: int64 */
|
|
453
|
+
updatedAt: number;
|
|
454
|
+
};
|
|
455
|
+
/** @description A committed event, replayed with the versions and identity it was accepted with. A stream.reconciled event is the exception: it means that Harness recovery retracted earlier deltas of its Turn, which now have empty text and no itemId or contentPartId, and that later deltas may name other Parts. Reload the transcript and resume after its lastSequence. */
|
|
456
|
+
WebShellEvent: {
|
|
457
|
+
/** @default 1 */
|
|
458
|
+
schemaVersion?: number;
|
|
459
|
+
/** @default 1 */
|
|
460
|
+
projectionVersion?: number;
|
|
461
|
+
/** Format: int64 */
|
|
462
|
+
sequence: number;
|
|
463
|
+
eventId: string;
|
|
464
|
+
/** Format: uuid */
|
|
465
|
+
sessionId: string;
|
|
466
|
+
turnId?: string | null;
|
|
467
|
+
itemId?: string | null;
|
|
468
|
+
contentPartId?: string | null;
|
|
469
|
+
type: string;
|
|
470
|
+
/** Format: int64 */
|
|
471
|
+
createdAt: number;
|
|
472
|
+
data: {
|
|
473
|
+
[key: string]: unknown;
|
|
474
|
+
};
|
|
475
|
+
terminal: boolean;
|
|
476
|
+
};
|
|
477
|
+
/** @description Data of the agent.session.resync_required SSE frame. Reload the transcript, then resume after its lastSequence. */
|
|
478
|
+
WebShellResyncRequired: {
|
|
479
|
+
/** @constant */
|
|
480
|
+
type: "agent.session.resync_required";
|
|
481
|
+
/** Format: uuid */
|
|
482
|
+
sessionId: string;
|
|
483
|
+
/** Format: int64 */
|
|
484
|
+
replayFloorSequence: number;
|
|
485
|
+
/** Format: int64 */
|
|
486
|
+
snapshotThroughSequence: number;
|
|
487
|
+
/** @constant */
|
|
488
|
+
action: "reload_snapshot";
|
|
489
|
+
};
|
|
490
|
+
ErrorEnvelope: {
|
|
491
|
+
error: {
|
|
492
|
+
code: string;
|
|
493
|
+
message: string;
|
|
494
|
+
request_id: string;
|
|
495
|
+
/** Format: int64 */
|
|
496
|
+
replay_floor_sequence?: number | null;
|
|
497
|
+
/** Format: int64 */
|
|
498
|
+
snapshot_through_sequence?: number | null;
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
* @description Logical directory relative to the authorized workspace root; dot denotes root. Use slash separators. Reject absolute paths, drive prefixes, backslashes, NUL and parent segments. Runtime must verify directory existence, realpath containment and symlink safety before activation; schema validation alone is insufficient. Preserve spaces and case, normalize repeated separators and dot segments, and never percent-decode JSON values.
|
|
503
|
+
* @example .
|
|
504
|
+
* @example services/api
|
|
505
|
+
*/
|
|
506
|
+
WorkspaceRelativePath: string;
|
|
507
|
+
WebShellWorkspaceSelection: {
|
|
508
|
+
workspaceId: string;
|
|
509
|
+
/** @default . */
|
|
510
|
+
cwdRelative?: components["schemas"]["WorkspaceRelativePath"];
|
|
511
|
+
};
|
|
512
|
+
WebShellWorkspaceContext: {
|
|
513
|
+
workspaceId: string;
|
|
514
|
+
cwdRelative: components["schemas"]["WorkspaceRelativePath"];
|
|
515
|
+
/** Format: int64 */
|
|
516
|
+
contextRevision: number;
|
|
517
|
+
/** @enum {string} */
|
|
518
|
+
state: "ready" | "changing" | "recovery_blocked";
|
|
519
|
+
};
|
|
520
|
+
WebShellWorkspace: {
|
|
521
|
+
workspaceId: string;
|
|
522
|
+
displayName: string;
|
|
523
|
+
/** @description Current actor permission hint only; creation rechecks ACL, state and Agent/config compatibility. */
|
|
524
|
+
canCreateSession: boolean;
|
|
525
|
+
/** @enum {string} */
|
|
526
|
+
state: "active" | "draining" | "removed";
|
|
527
|
+
};
|
|
528
|
+
WebShellWorkspacePage: {
|
|
529
|
+
data: components["schemas"]["WebShellWorkspace"][];
|
|
530
|
+
hasMore: boolean;
|
|
531
|
+
nextCursor?: string | null;
|
|
532
|
+
capabilities: {
|
|
533
|
+
/**
|
|
534
|
+
* @description Same end-to-end W0 readiness as public workspace_context; missing means unsupported.
|
|
535
|
+
* @default false
|
|
536
|
+
*/
|
|
537
|
+
workspaceContext: boolean;
|
|
538
|
+
/** @description Supports authorized Workspace discovery, Session creation, and saved binding read-back. This capability does not advertise execution readiness. Deployments may separately opt in to an initial Workspace Read/Write/Edit Turn at creation; later submit, cancel and lifecycle operations remain gated. */
|
|
539
|
+
workspaceBinding: boolean;
|
|
540
|
+
};
|
|
541
|
+
/** @description Same authorized explicit default as default_workspace, including when outside this page; null if absent or not creatable. A non-null default is active and has canCreateSession=true. */
|
|
542
|
+
defaultWorkspace: (components["schemas"]["WebShellWorkspace"] & {
|
|
543
|
+
/** @constant */
|
|
544
|
+
state?: "active";
|
|
545
|
+
/** @constant */
|
|
546
|
+
canCreateSession?: true;
|
|
547
|
+
}) | null;
|
|
548
|
+
};
|
|
549
|
+
WebShellOperationRequest: {
|
|
550
|
+
/** Format: uuid */
|
|
551
|
+
sessionId: string;
|
|
552
|
+
operationId: string;
|
|
553
|
+
};
|
|
554
|
+
WebShellAction: components["schemas"]["WebShellPermissionAction"] | components["schemas"]["WebShellQuestionAction"];
|
|
555
|
+
WebShellActionResolution: {
|
|
556
|
+
actionId: string;
|
|
557
|
+
/**
|
|
558
|
+
* @description D6 supports decided only; vote_recorded is planned.
|
|
559
|
+
* @enum {unknown}
|
|
560
|
+
*/
|
|
561
|
+
outcome: "vote_recorded" | "decided";
|
|
562
|
+
receiptId: string;
|
|
563
|
+
decisionReceiptId?: string;
|
|
564
|
+
} & unknown;
|
|
565
|
+
WebShellQuestionAnswer: {
|
|
566
|
+
questionId: string;
|
|
567
|
+
optionIds?: string[];
|
|
568
|
+
text?: string;
|
|
569
|
+
} | unknown | unknown;
|
|
570
|
+
WebShellActionQuestion: {
|
|
571
|
+
id: string;
|
|
572
|
+
prompt: string;
|
|
573
|
+
required: boolean;
|
|
574
|
+
multiple: boolean;
|
|
575
|
+
allowText: boolean;
|
|
576
|
+
options: components["schemas"]["WebShellActionOption"][];
|
|
577
|
+
};
|
|
578
|
+
/** @description Receipt IDs are opaque authorized product handles, not private journal or storage refs. Input/cancel completion is command acceptance, not Turn completion or physical stop. Action completion may only record one vote. Lifecycle completion requires its cleanup facts; archive may remain java_durable because Java is its authority. Task cancel 202 is Java durable admission; completion means the authority durably recorded cancellation and returned a receipt, not that the task stopped. Task cancel failed proves non-acceptance and no further delivery, with a failure code; recovery_blocked means acceptance is unknown and needs reconciliation before re-execution. Its status is never cancelled. Physical settlement and an unknown physical outcome belong to the task, independently of operation acceptance. A completed task cancel carries admission stage harness_confirmed and delivery state confirmed with the authority's receipt; failed and recovery_blocked carry java_durable and blocked, so they are never delivered again without reconciliation. */
|
|
579
|
+
WebShellCommandOperation: {
|
|
580
|
+
operationId: string;
|
|
581
|
+
/** Format: uuid */
|
|
582
|
+
sessionId: string;
|
|
583
|
+
/** @enum {unknown} */
|
|
584
|
+
type: "create_session" | "submit_input" | "cancel" | "action_response" | "close" | "archive" | "delete" | "task_cancel";
|
|
585
|
+
/** @enum {unknown} */
|
|
586
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled" | "recovery_blocked";
|
|
587
|
+
/** @enum {unknown} */
|
|
588
|
+
admissionStage: "java_durable" | "harness_confirmed";
|
|
589
|
+
/** @enum {unknown} */
|
|
590
|
+
deliveryState: "pending" | "leased" | "confirmed" | "blocked";
|
|
591
|
+
receiptId?: string;
|
|
592
|
+
actionResolution?: components["schemas"]["WebShellActionResolution"];
|
|
593
|
+
/** @description Reason a durable response or task cancellation failed. Action response failures come from the original committed Action, or a definitive invalid response. */
|
|
594
|
+
failureCode?: string;
|
|
595
|
+
replayed: boolean;
|
|
596
|
+
} & (unknown & unknown & unknown & unknown);
|
|
597
|
+
WebShellQuestionAction: {
|
|
598
|
+
actionId: string;
|
|
599
|
+
/** Format: uuid */
|
|
600
|
+
sessionId: string;
|
|
601
|
+
/** @constant */
|
|
602
|
+
kind: "question";
|
|
603
|
+
source: components["schemas"]["WebShellActionSource"];
|
|
604
|
+
/** @enum {unknown} */
|
|
605
|
+
state: "requested" | "decided" | "cancelled" | "expired";
|
|
606
|
+
/** Format: int64 */
|
|
607
|
+
inputRevision: number;
|
|
608
|
+
policyRevision: string;
|
|
609
|
+
/** Format: int64 */
|
|
610
|
+
createdAt: number;
|
|
611
|
+
/** Format: int64 */
|
|
612
|
+
expiresAt: number;
|
|
613
|
+
decisionReceiptId?: string;
|
|
614
|
+
questions: components["schemas"]["WebShellActionQuestion"][];
|
|
615
|
+
} & unknown;
|
|
616
|
+
/** @description At most one requested Hosted approval per Turn. allow and deny are stable option IDs. Tool arguments are read from Items by function_call_id (functionCallId in WebShell). Public timestamps are milliseconds, as recorded by the Harness. Decision receipts are opaque product IDs. */
|
|
617
|
+
WebShellPermissionAction: {
|
|
618
|
+
actionId: string;
|
|
619
|
+
/** Format: uuid */
|
|
620
|
+
sessionId: string;
|
|
621
|
+
/** @constant */
|
|
622
|
+
kind: "permission";
|
|
623
|
+
source: components["schemas"]["WebShellActionSource"];
|
|
624
|
+
/** @enum {unknown} */
|
|
625
|
+
state: "requested" | "decided" | "cancelled" | "expired";
|
|
626
|
+
/** Format: int64 */
|
|
627
|
+
inputRevision: number;
|
|
628
|
+
policyRevision: string;
|
|
629
|
+
/** Format: int64 */
|
|
630
|
+
createdAt: number;
|
|
631
|
+
/** Format: int64 */
|
|
632
|
+
expiresAt: number;
|
|
633
|
+
decisionReceiptId?: string;
|
|
634
|
+
options: components["schemas"]["WebShellActionOption"][];
|
|
635
|
+
turnId?: string;
|
|
636
|
+
functionCallId: string;
|
|
637
|
+
toolName: string;
|
|
638
|
+
} & unknown;
|
|
639
|
+
WebShellPermissionResponse: {
|
|
640
|
+
/** @constant */
|
|
641
|
+
kind: "permission";
|
|
642
|
+
/** Format: int64 */
|
|
643
|
+
inputRevision: number;
|
|
644
|
+
policyRevision: string;
|
|
645
|
+
optionId: string;
|
|
646
|
+
};
|
|
647
|
+
WebShellActionPage: {
|
|
648
|
+
data: components["schemas"]["WebShellAction"][];
|
|
649
|
+
hasMore: boolean;
|
|
650
|
+
nextCursor?: string | null;
|
|
651
|
+
};
|
|
652
|
+
WebShellActionSource: {
|
|
653
|
+
/** @enum {unknown} */
|
|
654
|
+
kind: "tool_call" | "automation_run" | "team_plan" | "user_operation";
|
|
655
|
+
id: string;
|
|
656
|
+
};
|
|
657
|
+
/** @description Validate IDs, required answers, selection cardinality, text eligibility and current responder permission against the original Action. Unknown/expired/cancelled/conflicting revisions cannot grant execution. */
|
|
658
|
+
WebShellActionResponseRequest: components["schemas"]["WebShellPermissionResponse"] | components["schemas"]["WebShellQuestionResponse"];
|
|
659
|
+
WebShellActionOption: {
|
|
660
|
+
id: string;
|
|
661
|
+
label: string;
|
|
662
|
+
description?: string;
|
|
663
|
+
};
|
|
664
|
+
WebShellQuestionResponse: {
|
|
665
|
+
/** @constant */
|
|
666
|
+
kind: "question";
|
|
667
|
+
/** Format: int64 */
|
|
668
|
+
inputRevision: number;
|
|
669
|
+
policyRevision: string;
|
|
670
|
+
answers: components["schemas"]["WebShellQuestionAnswer"][];
|
|
671
|
+
};
|
|
672
|
+
WebShellOperation: components["schemas"]["WebShellCommandOperation"];
|
|
673
|
+
WebShellActionQueryRequest: {
|
|
674
|
+
/** Format: uuid */
|
|
675
|
+
sessionId: string;
|
|
676
|
+
cursor?: string;
|
|
677
|
+
/** @default 20 */
|
|
678
|
+
limit?: number;
|
|
679
|
+
};
|
|
680
|
+
WebShellActionGetRequest: {
|
|
681
|
+
/** Format: uuid */
|
|
682
|
+
sessionId: string;
|
|
683
|
+
actionId: string;
|
|
684
|
+
};
|
|
685
|
+
WebShellActionRespondRequest: {
|
|
686
|
+
/** Format: uuid */
|
|
687
|
+
sessionId: string;
|
|
688
|
+
actionId: string;
|
|
689
|
+
idempotencyKey: string;
|
|
690
|
+
response: components["schemas"]["WebShellActionResponseRequest"];
|
|
691
|
+
requestId?: string;
|
|
692
|
+
};
|
|
693
|
+
WebShellLifecycleRequest: {
|
|
694
|
+
/** Format: uuid */
|
|
695
|
+
sessionId: string;
|
|
696
|
+
idempotencyKey: string;
|
|
697
|
+
};
|
|
698
|
+
WebShellWorkspaceQueryRequest: {
|
|
699
|
+
cursor?: string | null;
|
|
700
|
+
/** @default 50 */
|
|
701
|
+
limit?: number | null;
|
|
702
|
+
};
|
|
703
|
+
WebShellWorkspaceGetRequest: {
|
|
704
|
+
workspaceId: string;
|
|
705
|
+
};
|
|
706
|
+
/** @enum {string} */
|
|
707
|
+
TaskKind: "child_agent" | "workflow" | "background_shell" | "monitor" | "automation_run";
|
|
708
|
+
/**
|
|
709
|
+
* @description Logical run state. completed, failed and cancelled are terminal and are set only after the physical execution has settled. degraded means that the task still runs with reduced guarantees, such as a Monitor that lost its observation source. recovery_blocked means that recovery cannot prove the physical outcome: it is not settled, is never reported as success and is never re-run automatically.
|
|
710
|
+
* @enum {string}
|
|
711
|
+
*/
|
|
712
|
+
TaskState: "pending" | "running" | "waiting" | "completed" | "failed" | "cancelled" | "degraded" | "recovery_blocked";
|
|
713
|
+
/**
|
|
714
|
+
* @description Redacted state of the Runtime that hosts the task, without binding identity or generation.
|
|
715
|
+
* @enum {string}
|
|
716
|
+
*/
|
|
717
|
+
TaskRuntimeState: "unbound" | "provisioning" | "ready" | "draining" | "lost";
|
|
718
|
+
/**
|
|
719
|
+
* @description Actions the task supports now, the same for every caller. cancel: the cancel route accepts a new command for this task; whether a caller may use it is an authorization check (403 on the cancel route). send_input: reserved for a later capability route. read_output: the task events route returns output events for this task to any caller that can read it. read_output does not change during the task's life, and a task without it produces no output events: its output goes only to Artifacts, so the events route never filters out events that exist.
|
|
720
|
+
* @enum {string}
|
|
721
|
+
*/
|
|
722
|
+
TaskActionCapability: "cancel" | "send_input" | "read_output";
|
|
723
|
+
/** @description Read-only projection of one asynchronous task of a Session (SessionTaskView). It is rebuilt from the Session's durable domain records and is never their source of truth. It never carries a Runtime binding ID, generation, Runtime endpoint, Pod, absolute path, raw PID, SecretHandle or local sidecar; diagnostics are authorized Artifact references. */
|
|
724
|
+
WebShellTask: {
|
|
725
|
+
taskId: string;
|
|
726
|
+
/** Format: uuid */
|
|
727
|
+
sessionId: string;
|
|
728
|
+
kind: components["schemas"]["TaskKind"];
|
|
729
|
+
state: components["schemas"]["TaskState"];
|
|
730
|
+
/**
|
|
731
|
+
* Format: int64
|
|
732
|
+
* @description Immutable definition revision this run is pinned to, when the kind has a definition.
|
|
733
|
+
*/
|
|
734
|
+
definitionRevision?: number;
|
|
735
|
+
runtimeState?: components["schemas"]["TaskRuntimeState"];
|
|
736
|
+
/**
|
|
737
|
+
* Format: int64
|
|
738
|
+
* @description Unix epoch milliseconds.
|
|
739
|
+
*/
|
|
740
|
+
createdAt: number;
|
|
741
|
+
/**
|
|
742
|
+
* Format: int64
|
|
743
|
+
* @description Unix epoch milliseconds.
|
|
744
|
+
*/
|
|
745
|
+
startedAt?: number;
|
|
746
|
+
/**
|
|
747
|
+
* Format: int64
|
|
748
|
+
* @description Unix epoch milliseconds.
|
|
749
|
+
*/
|
|
750
|
+
settledAt?: number;
|
|
751
|
+
/** @description The newest Artifacts that hold durable task output, at most 100, oldest first. Entries must not rotate out until older Artifacts can be enumerated and attributed to the task: an evicted Artifact stays readable by id through the Session artifact routes but is no longer discoverable from the task. */
|
|
752
|
+
artifactRefs: string[];
|
|
753
|
+
actionCapabilities: components["schemas"]["TaskActionCapability"][];
|
|
754
|
+
} & (unknown & unknown & unknown & unknown);
|
|
755
|
+
WebShellTaskPage: {
|
|
756
|
+
data: components["schemas"]["WebShellTask"][];
|
|
757
|
+
hasMore: boolean;
|
|
758
|
+
nextCursor?: string | null;
|
|
759
|
+
} & unknown;
|
|
760
|
+
WebShellTaskQueryRequest: {
|
|
761
|
+
/** Format: uuid */
|
|
762
|
+
sessionId: string;
|
|
763
|
+
cursor?: string;
|
|
764
|
+
/** @default 20 */
|
|
765
|
+
limit?: number;
|
|
766
|
+
};
|
|
767
|
+
WebShellTaskGetRequest: {
|
|
768
|
+
/** Format: uuid */
|
|
769
|
+
sessionId: string;
|
|
770
|
+
taskId: string;
|
|
771
|
+
};
|
|
772
|
+
};
|
|
773
|
+
responses: {
|
|
774
|
+
/** @description The authenticated actor belongs to another tenant than X-Qwen-Tenant-Id or has an invalid ID (actor_scope_mismatch, which the tenant filter answers on every /v1/agents/ and WebShell route), or the resource is readable but the actor lacks this operation or the original Action responder permission. */
|
|
775
|
+
Forbidden: {
|
|
776
|
+
headers: {
|
|
777
|
+
[name: string]: unknown;
|
|
778
|
+
};
|
|
779
|
+
content: {
|
|
780
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
/** @description A trusted actor is required for this request but none was supplied. */
|
|
784
|
+
Unauthorized: {
|
|
785
|
+
headers: {
|
|
786
|
+
[name: string]: unknown;
|
|
787
|
+
};
|
|
788
|
+
content: {
|
|
789
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
/** @description Invalid request. */
|
|
793
|
+
BadRequest: {
|
|
794
|
+
headers: {
|
|
795
|
+
[name: string]: unknown;
|
|
796
|
+
};
|
|
797
|
+
content: {
|
|
798
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
/** @description State, idempotency, or recovery conflict. */
|
|
802
|
+
Conflict: {
|
|
803
|
+
headers: {
|
|
804
|
+
[name: string]: unknown;
|
|
805
|
+
};
|
|
806
|
+
content: {
|
|
807
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
/** @description Resource absent or outside the caller tenant scope. */
|
|
811
|
+
NotFound: {
|
|
812
|
+
headers: {
|
|
813
|
+
[name: string]: unknown;
|
|
814
|
+
};
|
|
815
|
+
content: {
|
|
816
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
/** @description A dependency such as the Hosted Harness is unavailable; retry later. */
|
|
820
|
+
Unavailable: {
|
|
821
|
+
headers: {
|
|
822
|
+
[name: string]: unknown;
|
|
823
|
+
};
|
|
824
|
+
content: {
|
|
825
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
parameters: never;
|
|
830
|
+
requestBodies: never;
|
|
831
|
+
headers: {
|
|
832
|
+
/** @description Trace-only correlation identifier; never an idempotency key. */
|
|
833
|
+
RequestId: string;
|
|
834
|
+
};
|
|
835
|
+
pathItems: never;
|
|
836
|
+
}
|
|
837
|
+
export type $defs = Record<string, never>;
|
|
838
|
+
export interface operations {
|
|
839
|
+
webShellListSessions: {
|
|
840
|
+
parameters: {
|
|
841
|
+
query?: never;
|
|
842
|
+
header?: never;
|
|
843
|
+
path?: never;
|
|
844
|
+
cookie?: never;
|
|
845
|
+
};
|
|
846
|
+
requestBody: {
|
|
847
|
+
content: {
|
|
848
|
+
"application/json": components["schemas"]["WebShellListRequest"];
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
responses: {
|
|
852
|
+
/** @description WebShell session page. */
|
|
853
|
+
200: {
|
|
854
|
+
headers: {
|
|
855
|
+
[name: string]: unknown;
|
|
856
|
+
};
|
|
857
|
+
content: {
|
|
858
|
+
"application/json": components["schemas"]["WebShellSessionPage"];
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
400: components["responses"]["BadRequest"];
|
|
862
|
+
403: components["responses"]["Forbidden"];
|
|
863
|
+
};
|
|
864
|
+
};
|
|
865
|
+
webShellGetSession: {
|
|
866
|
+
parameters: {
|
|
867
|
+
query?: never;
|
|
868
|
+
header?: never;
|
|
869
|
+
path?: never;
|
|
870
|
+
cookie?: never;
|
|
871
|
+
};
|
|
872
|
+
requestBody: {
|
|
873
|
+
content: {
|
|
874
|
+
"application/json": components["schemas"]["WebShellSessionRequest"];
|
|
875
|
+
};
|
|
876
|
+
};
|
|
877
|
+
responses: {
|
|
878
|
+
/** @description WebShell session. */
|
|
879
|
+
200: {
|
|
880
|
+
headers: {
|
|
881
|
+
[name: string]: unknown;
|
|
882
|
+
};
|
|
883
|
+
content: {
|
|
884
|
+
"application/json": components["schemas"]["WebShellSession"];
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
400: components["responses"]["BadRequest"];
|
|
888
|
+
403: components["responses"]["Forbidden"];
|
|
889
|
+
404: components["responses"]["NotFound"];
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
webShellTranscript: {
|
|
893
|
+
parameters: {
|
|
894
|
+
query?: never;
|
|
895
|
+
header?: never;
|
|
896
|
+
path?: never;
|
|
897
|
+
cookie?: never;
|
|
898
|
+
};
|
|
899
|
+
requestBody: {
|
|
900
|
+
content: {
|
|
901
|
+
"application/json": components["schemas"]["WebShellTranscriptRequest"];
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
responses: {
|
|
905
|
+
/** @description Event transcript page. */
|
|
906
|
+
200: {
|
|
907
|
+
headers: {
|
|
908
|
+
[name: string]: unknown;
|
|
909
|
+
};
|
|
910
|
+
content: {
|
|
911
|
+
"application/json": components["schemas"]["WebShellTranscript"];
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
400: components["responses"]["BadRequest"];
|
|
915
|
+
403: components["responses"]["Forbidden"];
|
|
916
|
+
404: components["responses"]["NotFound"];
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
webShellStreamEvents: {
|
|
920
|
+
parameters: {
|
|
921
|
+
query?: never;
|
|
922
|
+
header?: never;
|
|
923
|
+
path?: never;
|
|
924
|
+
cookie?: never;
|
|
925
|
+
};
|
|
926
|
+
requestBody: {
|
|
927
|
+
content: {
|
|
928
|
+
"application/json": components["schemas"]["WebShellStreamRequest"];
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
responses: {
|
|
932
|
+
/** @description SSE stream. */
|
|
933
|
+
200: {
|
|
934
|
+
headers: {
|
|
935
|
+
[name: string]: unknown;
|
|
936
|
+
};
|
|
937
|
+
content: {
|
|
938
|
+
"text/event-stream": string;
|
|
939
|
+
};
|
|
940
|
+
};
|
|
941
|
+
400: components["responses"]["BadRequest"];
|
|
942
|
+
403: components["responses"]["Forbidden"];
|
|
943
|
+
404: components["responses"]["NotFound"];
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
webShellCreateSession: {
|
|
947
|
+
parameters: {
|
|
948
|
+
query?: never;
|
|
949
|
+
header?: never;
|
|
950
|
+
path?: never;
|
|
951
|
+
cookie?: never;
|
|
952
|
+
};
|
|
953
|
+
requestBody: {
|
|
954
|
+
content: {
|
|
955
|
+
"application/json": components["schemas"]["WebShellCreateRequest"];
|
|
956
|
+
};
|
|
957
|
+
};
|
|
958
|
+
responses: {
|
|
959
|
+
/** @description Session admitted. */
|
|
960
|
+
202: {
|
|
961
|
+
headers: {
|
|
962
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
963
|
+
[name: string]: unknown;
|
|
964
|
+
};
|
|
965
|
+
content: {
|
|
966
|
+
"application/json": components["schemas"]["WebShellAdmission"];
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
400: components["responses"]["BadRequest"];
|
|
970
|
+
401: components["responses"]["Unauthorized"];
|
|
971
|
+
403: components["responses"]["Forbidden"];
|
|
972
|
+
404: components["responses"]["NotFound"];
|
|
973
|
+
409: components["responses"]["Conflict"];
|
|
974
|
+
503: components["responses"]["Unavailable"];
|
|
975
|
+
};
|
|
976
|
+
};
|
|
977
|
+
webShellSubmitTurn: {
|
|
978
|
+
parameters: {
|
|
979
|
+
query?: never;
|
|
980
|
+
header?: never;
|
|
981
|
+
path?: never;
|
|
982
|
+
cookie?: never;
|
|
983
|
+
};
|
|
984
|
+
requestBody: {
|
|
985
|
+
content: {
|
|
986
|
+
"application/json": components["schemas"]["WebShellSubmitRequest"];
|
|
987
|
+
};
|
|
988
|
+
};
|
|
989
|
+
responses: {
|
|
990
|
+
/** @description Turn admitted. */
|
|
991
|
+
202: {
|
|
992
|
+
headers: {
|
|
993
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
994
|
+
[name: string]: unknown;
|
|
995
|
+
};
|
|
996
|
+
content: {
|
|
997
|
+
"application/json": components["schemas"]["WebShellAdmission"];
|
|
998
|
+
};
|
|
999
|
+
};
|
|
1000
|
+
400: components["responses"]["BadRequest"];
|
|
1001
|
+
403: components["responses"]["Forbidden"];
|
|
1002
|
+
404: components["responses"]["NotFound"];
|
|
1003
|
+
409: components["responses"]["Conflict"];
|
|
1004
|
+
};
|
|
1005
|
+
};
|
|
1006
|
+
webShellCancelTurn: {
|
|
1007
|
+
parameters: {
|
|
1008
|
+
query?: never;
|
|
1009
|
+
header?: never;
|
|
1010
|
+
path?: never;
|
|
1011
|
+
cookie?: never;
|
|
1012
|
+
};
|
|
1013
|
+
requestBody: {
|
|
1014
|
+
content: {
|
|
1015
|
+
"application/json": components["schemas"]["WebShellCancelRequest"];
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
responses: {
|
|
1019
|
+
/** @description Cancellation durably admitted. */
|
|
1020
|
+
202: {
|
|
1021
|
+
headers: {
|
|
1022
|
+
"X-Request-Id": components["headers"]["RequestId"];
|
|
1023
|
+
[name: string]: unknown;
|
|
1024
|
+
};
|
|
1025
|
+
content: {
|
|
1026
|
+
"application/json": components["schemas"]["WebShellAdmission"];
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
400: components["responses"]["BadRequest"];
|
|
1030
|
+
403: components["responses"]["Forbidden"];
|
|
1031
|
+
404: components["responses"]["NotFound"];
|
|
1032
|
+
409: components["responses"]["Conflict"];
|
|
1033
|
+
};
|
|
1034
|
+
};
|
|
1035
|
+
webShellQueryWorkspaces: {
|
|
1036
|
+
parameters: {
|
|
1037
|
+
query?: never;
|
|
1038
|
+
header?: never;
|
|
1039
|
+
path?: never;
|
|
1040
|
+
cookie?: never;
|
|
1041
|
+
};
|
|
1042
|
+
requestBody: {
|
|
1043
|
+
content: {
|
|
1044
|
+
"application/json": components["schemas"]["WebShellWorkspaceQueryRequest"];
|
|
1045
|
+
};
|
|
1046
|
+
};
|
|
1047
|
+
responses: {
|
|
1048
|
+
/** @description Authorized durable resource view; no Runtime startup required. */
|
|
1049
|
+
200: {
|
|
1050
|
+
headers: {
|
|
1051
|
+
[name: string]: unknown;
|
|
1052
|
+
};
|
|
1053
|
+
content: {
|
|
1054
|
+
"application/json": components["schemas"]["WebShellWorkspacePage"];
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
400: components["responses"]["BadRequest"];
|
|
1058
|
+
403: components["responses"]["Forbidden"];
|
|
1059
|
+
404: components["responses"]["NotFound"];
|
|
1060
|
+
};
|
|
1061
|
+
};
|
|
1062
|
+
webShellQueryCwdOperation: {
|
|
1063
|
+
parameters: {
|
|
1064
|
+
query?: never;
|
|
1065
|
+
header?: never;
|
|
1066
|
+
path?: never;
|
|
1067
|
+
cookie?: never;
|
|
1068
|
+
};
|
|
1069
|
+
requestBody: {
|
|
1070
|
+
content: {
|
|
1071
|
+
"application/json": components["schemas"]["WebShellOperationRequest"];
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
|
+
responses: {
|
|
1075
|
+
/** @description Same authorized operation semantics as the public API. */
|
|
1076
|
+
200: {
|
|
1077
|
+
headers: {
|
|
1078
|
+
[name: string]: unknown;
|
|
1079
|
+
};
|
|
1080
|
+
content: {
|
|
1081
|
+
"application/json": components["schemas"]["WebShellOperation"];
|
|
1082
|
+
};
|
|
1083
|
+
};
|
|
1084
|
+
400: components["responses"]["BadRequest"];
|
|
1085
|
+
403: components["responses"]["Forbidden"];
|
|
1086
|
+
404: components["responses"]["NotFound"];
|
|
1087
|
+
409: components["responses"]["Conflict"];
|
|
1088
|
+
};
|
|
1089
|
+
};
|
|
1090
|
+
queryWebShellActions: {
|
|
1091
|
+
parameters: {
|
|
1092
|
+
query?: never;
|
|
1093
|
+
header?: never;
|
|
1094
|
+
path?: never;
|
|
1095
|
+
cookie?: never;
|
|
1096
|
+
};
|
|
1097
|
+
requestBody: {
|
|
1098
|
+
content: {
|
|
1099
|
+
"application/json": components["schemas"]["WebShellActionQueryRequest"];
|
|
1100
|
+
};
|
|
1101
|
+
};
|
|
1102
|
+
responses: {
|
|
1103
|
+
/** @description Same authorized operation semantics as the public API. */
|
|
1104
|
+
200: {
|
|
1105
|
+
headers: {
|
|
1106
|
+
[name: string]: unknown;
|
|
1107
|
+
};
|
|
1108
|
+
content: {
|
|
1109
|
+
"application/json": components["schemas"]["WebShellActionPage"];
|
|
1110
|
+
};
|
|
1111
|
+
};
|
|
1112
|
+
400: components["responses"]["BadRequest"];
|
|
1113
|
+
/** @description Responding requires the Session creator (action_forbidden). */
|
|
1114
|
+
403: components["responses"]["Forbidden"];
|
|
1115
|
+
/** @description Unknown or unreadable Session (session_not_found), or unknown Action (action_not_found). */
|
|
1116
|
+
404: components["responses"]["NotFound"];
|
|
1117
|
+
409: components["responses"]["Conflict"];
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1120
|
+
getWebShellAction: {
|
|
1121
|
+
parameters: {
|
|
1122
|
+
query?: never;
|
|
1123
|
+
header?: never;
|
|
1124
|
+
path?: never;
|
|
1125
|
+
cookie?: never;
|
|
1126
|
+
};
|
|
1127
|
+
requestBody: {
|
|
1128
|
+
content: {
|
|
1129
|
+
"application/json": components["schemas"]["WebShellActionGetRequest"];
|
|
1130
|
+
};
|
|
1131
|
+
};
|
|
1132
|
+
responses: {
|
|
1133
|
+
/** @description Same authorized operation semantics as the public API. */
|
|
1134
|
+
200: {
|
|
1135
|
+
headers: {
|
|
1136
|
+
[name: string]: unknown;
|
|
1137
|
+
};
|
|
1138
|
+
content: {
|
|
1139
|
+
"application/json": components["schemas"]["WebShellAction"];
|
|
1140
|
+
};
|
|
1141
|
+
};
|
|
1142
|
+
400: components["responses"]["BadRequest"];
|
|
1143
|
+
/** @description Responding requires the Session creator (action_forbidden). */
|
|
1144
|
+
403: components["responses"]["Forbidden"];
|
|
1145
|
+
/** @description Unknown or unreadable Session (session_not_found), or unknown Action (action_not_found). */
|
|
1146
|
+
404: components["responses"]["NotFound"];
|
|
1147
|
+
409: components["responses"]["Conflict"];
|
|
1148
|
+
};
|
|
1149
|
+
};
|
|
1150
|
+
respondWebShellAction: {
|
|
1151
|
+
parameters: {
|
|
1152
|
+
query?: never;
|
|
1153
|
+
header?: never;
|
|
1154
|
+
path?: never;
|
|
1155
|
+
cookie?: never;
|
|
1156
|
+
};
|
|
1157
|
+
requestBody: {
|
|
1158
|
+
content: {
|
|
1159
|
+
"application/json": components["schemas"]["WebShellActionRespondRequest"];
|
|
1160
|
+
};
|
|
1161
|
+
};
|
|
1162
|
+
responses: {
|
|
1163
|
+
/** @description Same authorized operation semantics as the public API. */
|
|
1164
|
+
202: {
|
|
1165
|
+
headers: {
|
|
1166
|
+
[name: string]: unknown;
|
|
1167
|
+
};
|
|
1168
|
+
content: {
|
|
1169
|
+
"application/json": components["schemas"]["WebShellCommandOperation"];
|
|
1170
|
+
};
|
|
1171
|
+
};
|
|
1172
|
+
400: components["responses"]["BadRequest"];
|
|
1173
|
+
/** @description Responding requires the Session creator (action_forbidden). */
|
|
1174
|
+
403: components["responses"]["Forbidden"];
|
|
1175
|
+
/** @description Unknown or unreadable Session (session_not_found), or unknown Action (action_not_found). */
|
|
1176
|
+
404: components["responses"]["NotFound"];
|
|
1177
|
+
/** @description Idempotency conflict or an ended Action (action_expired, action_cancelled, action_already_resolved). */
|
|
1178
|
+
409: components["responses"]["Conflict"];
|
|
1179
|
+
};
|
|
1180
|
+
};
|
|
1181
|
+
closeWebShellSession: {
|
|
1182
|
+
parameters: {
|
|
1183
|
+
query?: never;
|
|
1184
|
+
header?: never;
|
|
1185
|
+
path?: never;
|
|
1186
|
+
cookie?: never;
|
|
1187
|
+
};
|
|
1188
|
+
requestBody: {
|
|
1189
|
+
content: {
|
|
1190
|
+
"application/json": components["schemas"]["WebShellLifecycleRequest"];
|
|
1191
|
+
};
|
|
1192
|
+
};
|
|
1193
|
+
responses: {
|
|
1194
|
+
/** @description Same authorized operation semantics as the public API. */
|
|
1195
|
+
202: {
|
|
1196
|
+
headers: {
|
|
1197
|
+
[name: string]: unknown;
|
|
1198
|
+
};
|
|
1199
|
+
content: {
|
|
1200
|
+
"application/json": components["schemas"]["WebShellCommandOperation"];
|
|
1201
|
+
};
|
|
1202
|
+
};
|
|
1203
|
+
400: components["responses"]["BadRequest"];
|
|
1204
|
+
403: components["responses"]["Forbidden"];
|
|
1205
|
+
404: components["responses"]["NotFound"];
|
|
1206
|
+
409: components["responses"]["Conflict"];
|
|
1207
|
+
};
|
|
1208
|
+
};
|
|
1209
|
+
archiveWebShellSession: {
|
|
1210
|
+
parameters: {
|
|
1211
|
+
query?: never;
|
|
1212
|
+
header?: never;
|
|
1213
|
+
path?: never;
|
|
1214
|
+
cookie?: never;
|
|
1215
|
+
};
|
|
1216
|
+
requestBody: {
|
|
1217
|
+
content: {
|
|
1218
|
+
"application/json": components["schemas"]["WebShellLifecycleRequest"];
|
|
1219
|
+
};
|
|
1220
|
+
};
|
|
1221
|
+
responses: {
|
|
1222
|
+
/** @description Same authorized operation semantics as the public API. */
|
|
1223
|
+
202: {
|
|
1224
|
+
headers: {
|
|
1225
|
+
[name: string]: unknown;
|
|
1226
|
+
};
|
|
1227
|
+
content: {
|
|
1228
|
+
"application/json": components["schemas"]["WebShellCommandOperation"];
|
|
1229
|
+
};
|
|
1230
|
+
};
|
|
1231
|
+
400: components["responses"]["BadRequest"];
|
|
1232
|
+
403: components["responses"]["Forbidden"];
|
|
1233
|
+
404: components["responses"]["NotFound"];
|
|
1234
|
+
409: components["responses"]["Conflict"];
|
|
1235
|
+
};
|
|
1236
|
+
};
|
|
1237
|
+
deleteWebShellSession: {
|
|
1238
|
+
parameters: {
|
|
1239
|
+
query?: never;
|
|
1240
|
+
header?: never;
|
|
1241
|
+
path?: never;
|
|
1242
|
+
cookie?: never;
|
|
1243
|
+
};
|
|
1244
|
+
requestBody: {
|
|
1245
|
+
content: {
|
|
1246
|
+
"application/json": components["schemas"]["WebShellLifecycleRequest"];
|
|
1247
|
+
};
|
|
1248
|
+
};
|
|
1249
|
+
responses: {
|
|
1250
|
+
/** @description Same authorized operation semantics as the public API. */
|
|
1251
|
+
202: {
|
|
1252
|
+
headers: {
|
|
1253
|
+
[name: string]: unknown;
|
|
1254
|
+
};
|
|
1255
|
+
content: {
|
|
1256
|
+
"application/json": components["schemas"]["WebShellCommandOperation"];
|
|
1257
|
+
};
|
|
1258
|
+
};
|
|
1259
|
+
400: components["responses"]["BadRequest"];
|
|
1260
|
+
403: components["responses"]["Forbidden"];
|
|
1261
|
+
404: components["responses"]["NotFound"];
|
|
1262
|
+
409: components["responses"]["Conflict"];
|
|
1263
|
+
};
|
|
1264
|
+
};
|
|
1265
|
+
webShellGetWorkspace: {
|
|
1266
|
+
parameters: {
|
|
1267
|
+
query?: never;
|
|
1268
|
+
header?: never;
|
|
1269
|
+
path?: never;
|
|
1270
|
+
cookie?: never;
|
|
1271
|
+
};
|
|
1272
|
+
requestBody: {
|
|
1273
|
+
content: {
|
|
1274
|
+
"application/json": components["schemas"]["WebShellWorkspaceGetRequest"];
|
|
1275
|
+
};
|
|
1276
|
+
};
|
|
1277
|
+
responses: {
|
|
1278
|
+
/** @description Authorized durable resource view; no Runtime startup required. */
|
|
1279
|
+
200: {
|
|
1280
|
+
headers: {
|
|
1281
|
+
[name: string]: unknown;
|
|
1282
|
+
};
|
|
1283
|
+
content: {
|
|
1284
|
+
"application/json": components["schemas"]["WebShellWorkspace"];
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1287
|
+
400: components["responses"]["BadRequest"];
|
|
1288
|
+
403: components["responses"]["Forbidden"];
|
|
1289
|
+
404: components["responses"]["NotFound"];
|
|
1290
|
+
};
|
|
1291
|
+
};
|
|
1292
|
+
queryWebShellTasks: {
|
|
1293
|
+
parameters: {
|
|
1294
|
+
query?: never;
|
|
1295
|
+
header?: never;
|
|
1296
|
+
path?: never;
|
|
1297
|
+
cookie?: never;
|
|
1298
|
+
};
|
|
1299
|
+
requestBody: {
|
|
1300
|
+
content: {
|
|
1301
|
+
"application/json": components["schemas"]["WebShellTaskQueryRequest"];
|
|
1302
|
+
};
|
|
1303
|
+
};
|
|
1304
|
+
responses: {
|
|
1305
|
+
/** @description Same authorized task semantics as the public API. */
|
|
1306
|
+
200: {
|
|
1307
|
+
headers: {
|
|
1308
|
+
[name: string]: unknown;
|
|
1309
|
+
};
|
|
1310
|
+
content: {
|
|
1311
|
+
"application/json": components["schemas"]["WebShellTaskPage"];
|
|
1312
|
+
};
|
|
1313
|
+
};
|
|
1314
|
+
400: components["responses"]["BadRequest"];
|
|
1315
|
+
403: components["responses"]["Forbidden"];
|
|
1316
|
+
404: components["responses"]["NotFound"];
|
|
1317
|
+
};
|
|
1318
|
+
};
|
|
1319
|
+
getWebShellTask: {
|
|
1320
|
+
parameters: {
|
|
1321
|
+
query?: never;
|
|
1322
|
+
header?: never;
|
|
1323
|
+
path?: never;
|
|
1324
|
+
cookie?: never;
|
|
1325
|
+
};
|
|
1326
|
+
requestBody: {
|
|
1327
|
+
content: {
|
|
1328
|
+
"application/json": components["schemas"]["WebShellTaskGetRequest"];
|
|
1329
|
+
};
|
|
1330
|
+
};
|
|
1331
|
+
responses: {
|
|
1332
|
+
/** @description Same authorized task semantics as the public API. */
|
|
1333
|
+
200: {
|
|
1334
|
+
headers: {
|
|
1335
|
+
[name: string]: unknown;
|
|
1336
|
+
};
|
|
1337
|
+
content: {
|
|
1338
|
+
"application/json": components["schemas"]["WebShellTask"];
|
|
1339
|
+
};
|
|
1340
|
+
};
|
|
1341
|
+
400: components["responses"]["BadRequest"];
|
|
1342
|
+
403: components["responses"]["Forbidden"];
|
|
1343
|
+
404: components["responses"]["NotFound"];
|
|
1344
|
+
};
|
|
1345
|
+
};
|
|
1346
|
+
}
|