@parallelworks/code 0.2.0 → 0.4.0
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 +602 -84
- package/dist/accountApi.d.ts +31 -0
- package/dist/accountApi.js +182 -0
- package/dist/agentSwitcher.d.ts +109 -0
- package/dist/agentSwitcher.js +165 -0
- package/dist/ago.d.ts +8 -0
- package/dist/ago.js +26 -0
- package/dist/allocations.d.ts +41 -0
- package/dist/allocations.js +76 -0
- package/dist/api.d.ts +1213 -66
- package/dist/base64.d.ts +3 -0
- package/dist/base64.js +15 -0
- package/dist/chatHandoff.d.ts +12 -0
- package/dist/chatHandoff.js +27 -0
- package/dist/chatStrings.d.ts +188 -0
- package/dist/chatStrings.js +217 -0
- package/dist/claudeAccounts.d.ts +149 -0
- package/dist/claudeAccounts.js +328 -0
- package/dist/claudeApi.js +1 -1
- package/dist/claudeSignIn.d.ts +80 -0
- package/dist/claudeSignIn.js +249 -0
- package/dist/commandsApi.d.ts +11 -1
- package/dist/commandsApi.js +24 -5
- package/dist/contextRow.d.ts +25 -0
- package/dist/contextRow.js +16 -0
- package/dist/createPwCodeApi.d.ts +52 -5
- package/dist/createPwCodeApi.js +20 -2
- package/dist/directories.d.ts +161 -0
- package/dist/directories.js +301 -0
- package/dist/goal.d.ts +89 -0
- package/dist/goal.js +164 -0
- package/dist/howSessionsAppear.d.ts +12 -0
- package/dist/howSessionsAppear.js +24 -0
- package/dist/imageFit.d.ts +23 -0
- package/dist/imageFit.js +27 -0
- package/dist/images.d.ts +28 -0
- package/dist/images.js +38 -6
- package/dist/index.d.ts +41 -3
- package/dist/index.js +40 -4
- package/dist/loadError.d.ts +8 -0
- package/dist/loadError.js +19 -0
- package/dist/locales/en/agentTranscript.js +75 -22
- package/dist/locales/en/agents.js +76 -14
- package/dist/locales/en.d.ts +129 -21
- package/dist/locales/es/agentTranscript.js +75 -22
- package/dist/locales/es/agents.js +76 -14
- package/dist/locales/ja/agentTranscript.js +78 -25
- package/dist/locales/ja/agents.js +49 -124
- package/dist/locales/ko/agentTranscript.js +75 -22
- package/dist/locales/ko/agents.js +76 -14
- package/dist/locales/zh/agentTranscript.js +73 -20
- package/dist/locales/zh/agents.js +76 -14
- package/dist/machine.d.ts +4 -0
- package/dist/modelPicker.d.ts +79 -0
- package/dist/modelPicker.js +107 -0
- package/dist/models.d.ts +47 -0
- package/dist/models.js +49 -0
- package/dist/notices.d.ts +2 -1
- package/dist/notices.js +75 -21
- package/dist/platformDefaults.d.ts +22 -0
- package/dist/platformDefaults.js +30 -0
- package/dist/preferences.d.ts +78 -0
- package/dist/preferences.js +128 -0
- package/dist/pullRequestList.d.ts +60 -0
- package/dist/pullRequestList.js +125 -0
- package/dist/query.d.ts +6 -2
- package/dist/query.js +85 -10
- package/dist/session.d.ts +10 -2
- package/dist/session.js +12 -8
- package/dist/sessionActions.d.ts +115 -0
- package/dist/sessionActions.js +186 -0
- package/dist/sessionEvents.d.ts +8 -3
- package/dist/sessionEvents.js +10 -5
- package/dist/sessionGroups.d.ts +50 -0
- package/dist/sessionGroups.js +73 -0
- package/dist/sessionHeader.d.ts +14 -0
- package/dist/sessionHeader.js +16 -0
- package/dist/sessionList.d.ts +182 -0
- package/dist/sessionList.js +333 -0
- package/dist/sessionScreen.d.ts +193 -0
- package/dist/sessionScreen.js +213 -0
- package/dist/sessionsApi.d.ts +13 -3
- package/dist/sessionsApi.js +90 -33
- package/dist/settingsApi.d.ts +38 -0
- package/dist/settingsApi.js +151 -0
- package/dist/startPage.d.ts +153 -0
- package/dist/startPage.js +174 -0
- package/dist/startSession.d.ts +172 -0
- package/dist/startSession.js +256 -0
- package/dist/terminalHandoffPanel.d.ts +30 -0
- package/dist/terminalHandoffPanel.js +33 -0
- package/dist/transcript.d.ts +2 -0
- package/dist/transcript.js +62 -26
- package/dist/types.d.ts +11 -1
- package/dist/usageLimit.d.ts +8 -0
- package/dist/usageLimit.js +13 -0
- package/dist/useAwayRecap.d.ts +30 -0
- package/dist/useAwayRecap.js +75 -0
- package/dist/useComposer.d.ts +145 -0
- package/dist/useComposer.js +295 -0
- package/dist/useComposerImages.d.ts +71 -0
- package/dist/useComposerImages.js +218 -0
- package/dist/useComposerPastes.d.ts +70 -0
- package/dist/useComposerPastes.js +130 -0
- package/dist/useConversation.d.ts +199 -0
- package/dist/useConversation.js +314 -0
- package/dist/useSubagent.d.ts +104 -0
- package/dist/useSubagent.js +212 -0
- package/dist/useTranscript.d.ts +23 -3
- package/dist/useTranscript.js +76 -19
- package/dist/wording.js +2 -2
- package/dist/workingDirectories.d.ts +63 -0
- package/dist/workingDirectories.js +95 -0
- package/dist/worktreeChoice.d.ts +31 -0
- package/dist/worktreeChoice.js +38 -0
- package/locales/en/agentTranscript.json +69 -21
- package/locales/en/agents.json +73 -13
- package/locales/es/agentTranscript.json +69 -21
- package/locales/es/agents.json +73 -13
- package/locales/ja/agentTranscript.json +72 -24
- package/locales/ja/agents.json +73 -13
- package/locales/ko/agentTranscript.json +69 -21
- package/locales/ko/agents.json +73 -13
- package/locales/zh/agentTranscript.json +67 -19
- package/locales/zh/agents.json +73 -13
- package/package.json +6 -3
package/dist/api.d.ts
CHANGED
|
@@ -4,6 +4,134 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export interface paths {
|
|
7
|
+
"/api/aichat/conversations/{id}": {
|
|
8
|
+
parameters: {
|
|
9
|
+
query?: never;
|
|
10
|
+
header?: never;
|
|
11
|
+
path?: never;
|
|
12
|
+
cookie?: never;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Get conversation
|
|
16
|
+
* @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
|
|
17
|
+
*
|
|
18
|
+
* Get a conversation by ID. Optionally specify a branch to view.
|
|
19
|
+
*/
|
|
20
|
+
get: operations["getAIChatConversation"];
|
|
21
|
+
put?: never;
|
|
22
|
+
post?: never;
|
|
23
|
+
/**
|
|
24
|
+
* Delete conversation
|
|
25
|
+
* @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
|
|
26
|
+
*
|
|
27
|
+
* Delete a conversation. Only the owner can delete.
|
|
28
|
+
*/
|
|
29
|
+
delete: operations["deleteAIChatConversation"];
|
|
30
|
+
options?: never;
|
|
31
|
+
head?: never;
|
|
32
|
+
/**
|
|
33
|
+
* Update conversation
|
|
34
|
+
* @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
|
|
35
|
+
*
|
|
36
|
+
* Update conversation title or active branch.
|
|
37
|
+
*/
|
|
38
|
+
patch: operations["updateAIChatConversation"];
|
|
39
|
+
trace?: never;
|
|
40
|
+
};
|
|
41
|
+
"/api/allocations": {
|
|
42
|
+
parameters: {
|
|
43
|
+
query?: never;
|
|
44
|
+
header?: never;
|
|
45
|
+
path?: never;
|
|
46
|
+
cookie?: never;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* List allocations
|
|
50
|
+
* @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
|
|
51
|
+
*
|
|
52
|
+
* Returns allocations the user can access.
|
|
53
|
+
*/
|
|
54
|
+
get: operations["list-user-allocations"];
|
|
55
|
+
put?: never;
|
|
56
|
+
post?: never;
|
|
57
|
+
delete?: never;
|
|
58
|
+
options?: never;
|
|
59
|
+
head?: never;
|
|
60
|
+
patch?: never;
|
|
61
|
+
trace?: never;
|
|
62
|
+
};
|
|
63
|
+
"/api/openai/v1/models": {
|
|
64
|
+
parameters: {
|
|
65
|
+
query?: never;
|
|
66
|
+
header?: never;
|
|
67
|
+
path?: never;
|
|
68
|
+
cookie?: never;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* List available AI models
|
|
72
|
+
* @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
|
|
73
|
+
*
|
|
74
|
+
* Returns all AI models the user has access to. Model IDs are formatted as 'provider-id/model-name'.
|
|
75
|
+
*/
|
|
76
|
+
get: operations["listAIChatModels"];
|
|
77
|
+
put?: never;
|
|
78
|
+
post?: never;
|
|
79
|
+
delete?: never;
|
|
80
|
+
options?: never;
|
|
81
|
+
head?: never;
|
|
82
|
+
patch?: never;
|
|
83
|
+
trace?: never;
|
|
84
|
+
};
|
|
85
|
+
"/api/previews": {
|
|
86
|
+
parameters: {
|
|
87
|
+
query?: never;
|
|
88
|
+
header?: never;
|
|
89
|
+
path?: never;
|
|
90
|
+
cookie?: never;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Get previews
|
|
94
|
+
* @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
|
|
95
|
+
*
|
|
96
|
+
* Returns the enabled previews for the current user.
|
|
97
|
+
*/
|
|
98
|
+
get: operations["get-previews"];
|
|
99
|
+
put?: never;
|
|
100
|
+
post?: never;
|
|
101
|
+
delete?: never;
|
|
102
|
+
options?: never;
|
|
103
|
+
head?: never;
|
|
104
|
+
patch?: never;
|
|
105
|
+
trace?: never;
|
|
106
|
+
};
|
|
107
|
+
"/api/user/preferences": {
|
|
108
|
+
parameters: {
|
|
109
|
+
query?: never;
|
|
110
|
+
header?: never;
|
|
111
|
+
path?: never;
|
|
112
|
+
cookie?: never;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Get user preferences
|
|
116
|
+
* @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
|
|
117
|
+
*
|
|
118
|
+
* Returns the current user's saved UI preferences, such as list page display options and filters, keyed by view id.
|
|
119
|
+
*/
|
|
120
|
+
get: operations["get-user-preferences"];
|
|
121
|
+
put?: never;
|
|
122
|
+
post?: never;
|
|
123
|
+
delete?: never;
|
|
124
|
+
options?: never;
|
|
125
|
+
head?: never;
|
|
126
|
+
/**
|
|
127
|
+
* Update user preferences
|
|
128
|
+
* @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
|
|
129
|
+
*
|
|
130
|
+
* Writes the given preference keys for the current user. A null value removes a key; keys not in the request are left unchanged.
|
|
131
|
+
*/
|
|
132
|
+
patch: operations["update-user-preferences"];
|
|
133
|
+
trace?: never;
|
|
134
|
+
};
|
|
7
135
|
"/api/code/sessions": {
|
|
8
136
|
parameters: {
|
|
9
137
|
query?: never;
|
|
@@ -26,6 +154,28 @@ export interface paths {
|
|
|
26
154
|
patch?: never;
|
|
27
155
|
trace?: never;
|
|
28
156
|
};
|
|
157
|
+
"/api/code/machines/{machine}/directories": {
|
|
158
|
+
parameters: {
|
|
159
|
+
query?: never;
|
|
160
|
+
header?: never;
|
|
161
|
+
path?: never;
|
|
162
|
+
cookie?: never;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* List the folders a new pw code session could start in
|
|
166
|
+
* @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
|
|
167
|
+
*
|
|
168
|
+
* Lists the folders in one directory of the machine, as the account its sessions run as sees them, leaving out files and anything the machine's deny rules cover. The machine answers only when its owner lets sessions start remotely.
|
|
169
|
+
*/
|
|
170
|
+
get: operations["list-agent-machine-directories"];
|
|
171
|
+
put?: never;
|
|
172
|
+
post?: never;
|
|
173
|
+
delete?: never;
|
|
174
|
+
options?: never;
|
|
175
|
+
head?: never;
|
|
176
|
+
patch?: never;
|
|
177
|
+
trace?: never;
|
|
178
|
+
};
|
|
29
179
|
"/api/code/machines/{machine}/palette": {
|
|
30
180
|
parameters: {
|
|
31
181
|
query?: never;
|
|
@@ -424,6 +574,28 @@ export interface paths {
|
|
|
424
574
|
patch?: never;
|
|
425
575
|
trace?: never;
|
|
426
576
|
};
|
|
577
|
+
"/api/code/machines/{machine}/sessions/{id}/direction/withdraw": {
|
|
578
|
+
parameters: {
|
|
579
|
+
query?: never;
|
|
580
|
+
header?: never;
|
|
581
|
+
path?: never;
|
|
582
|
+
cookie?: never;
|
|
583
|
+
};
|
|
584
|
+
get?: never;
|
|
585
|
+
put?: never;
|
|
586
|
+
/**
|
|
587
|
+
* Take back text steered into a pw code session's turn
|
|
588
|
+
* @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
|
|
589
|
+
*
|
|
590
|
+
* Takes back text steered into the running turn that the model has not read yet, as removing a pending message does in the pw code terminal. Answers with the ids taken back; the model already read the rest. Like taking back a queued message, it is not held to the remote permission ceiling.
|
|
591
|
+
*/
|
|
592
|
+
post: operations["withdraw-agent-session-direction"];
|
|
593
|
+
delete?: never;
|
|
594
|
+
options?: never;
|
|
595
|
+
head?: never;
|
|
596
|
+
patch?: never;
|
|
597
|
+
trace?: never;
|
|
598
|
+
};
|
|
427
599
|
"/api/code/machines/{machine}/sessions/{id}/fork": {
|
|
428
600
|
parameters: {
|
|
429
601
|
query?: never;
|
|
@@ -459,7 +631,7 @@ export interface paths {
|
|
|
459
631
|
* Set, show, or clear a pw code session's goal
|
|
460
632
|
* @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
|
|
461
633
|
*
|
|
462
|
-
* Runs /goal with the same arguments the terminal takes. Setting or resuming a goal starts a turn on the session.
|
|
634
|
+
* Runs /goal with the same arguments the terminal takes, and answers with the goal as the call left it. Setting or resuming a goal starts a turn on the session. A bare edit only reads the goal, and is the one form that joins nothing to the conversation.
|
|
463
635
|
*/
|
|
464
636
|
post: operations["set-agent-session-goal"];
|
|
465
637
|
delete?: never;
|
|
@@ -722,6 +894,28 @@ export interface paths {
|
|
|
722
894
|
patch?: never;
|
|
723
895
|
trace?: never;
|
|
724
896
|
};
|
|
897
|
+
"/api/code/machines/{machine}/sessions/{id}/settings": {
|
|
898
|
+
parameters: {
|
|
899
|
+
query?: never;
|
|
900
|
+
header?: never;
|
|
901
|
+
path?: never;
|
|
902
|
+
cookie?: never;
|
|
903
|
+
};
|
|
904
|
+
get?: never;
|
|
905
|
+
put?: never;
|
|
906
|
+
post?: never;
|
|
907
|
+
delete?: never;
|
|
908
|
+
options?: never;
|
|
909
|
+
head?: never;
|
|
910
|
+
/**
|
|
911
|
+
* Change a running pw code session's model, effort, allocation or authority
|
|
912
|
+
* @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
|
|
913
|
+
*
|
|
914
|
+
* Changes what a live session runs as, and answers with its new state. The machine's daemon decides whether it is allowed: the session must be live, an org provider model needs an allocation, and a session already running above the remote permission ceiling can only be changed from the machine itself.
|
|
915
|
+
*/
|
|
916
|
+
patch: operations["update-agent-session-settings"];
|
|
917
|
+
trace?: never;
|
|
918
|
+
};
|
|
725
919
|
"/api/code/machines/{machine}/sessions/{id}/shell": {
|
|
726
920
|
parameters: {
|
|
727
921
|
query?: never;
|
|
@@ -854,6 +1048,28 @@ export interface paths {
|
|
|
854
1048
|
patch?: never;
|
|
855
1049
|
trace?: never;
|
|
856
1050
|
};
|
|
1051
|
+
"/api/code/machines/{machine}/sessions/{id}/subagents/{subId}/direction/withdraw": {
|
|
1052
|
+
parameters: {
|
|
1053
|
+
query?: never;
|
|
1054
|
+
header?: never;
|
|
1055
|
+
path?: never;
|
|
1056
|
+
cookie?: never;
|
|
1057
|
+
};
|
|
1058
|
+
get?: never;
|
|
1059
|
+
put?: never;
|
|
1060
|
+
/**
|
|
1061
|
+
* Take back text steered into a pw code subagent's work
|
|
1062
|
+
* @description > This is a user-centric route, so the response will always be in the context of the currently authenticated user.
|
|
1063
|
+
*
|
|
1064
|
+
* Takes back text steered into the subagent's work in flight that its model has not read yet. Answers with the ids taken back; the model already read the rest.
|
|
1065
|
+
*/
|
|
1066
|
+
post: operations["withdraw-agent-session-subagent-direction"];
|
|
1067
|
+
delete?: never;
|
|
1068
|
+
options?: never;
|
|
1069
|
+
head?: never;
|
|
1070
|
+
patch?: never;
|
|
1071
|
+
trace?: never;
|
|
1072
|
+
};
|
|
857
1073
|
"/api/code/machines/{machine}/sessions/{id}/subagents/{subId}/messages": {
|
|
858
1074
|
parameters: {
|
|
859
1075
|
query?: never;
|
|
@@ -975,7 +1191,7 @@ export interface webhooks {
|
|
|
975
1191
|
};
|
|
976
1192
|
/**
|
|
977
1193
|
* pw code session event feed
|
|
978
|
-
* @description One JSON frame per message on the WebSocket at /ws/code/machines/{machine}/sessions/{id}/events?after=N. Pass the last seq seen as after to resume; a replay_truncated frame means the transcript must be refetched.
|
|
1194
|
+
* @description One JSON frame per message on the WebSocket at /ws/code/machines/{machine}/sessions/{id}/events?after=N. Pass the last seq seen as after to resume; a replay_truncated frame means the transcript must be refetched. With previews=refs the images a tool read come without their previews, each of which is read from the session's image route with preview=true.
|
|
979
1195
|
*/
|
|
980
1196
|
get: operations["agent-session-events"];
|
|
981
1197
|
put?: never;
|
|
@@ -1084,6 +1300,51 @@ export interface components {
|
|
|
1084
1300
|
AgentDirectionDelivered: {
|
|
1085
1301
|
/** @description False when no turn was running to take the text; send it as a message instead. */
|
|
1086
1302
|
delivered: boolean;
|
|
1303
|
+
/** @description Names the delivered text, for taking it back before the model reads it and for matching the user_note event that reports it did. Empty from a machine whose pw code is too old to take it back. */
|
|
1304
|
+
id?: string;
|
|
1305
|
+
};
|
|
1306
|
+
AgentDirectionWithdrawBody: {
|
|
1307
|
+
/** @description The ids steering the text answered with. */
|
|
1308
|
+
ids: string[] | null;
|
|
1309
|
+
};
|
|
1310
|
+
AgentDirectionWithdrawn: {
|
|
1311
|
+
/** @description The ids taken back. The model already read the rest. */
|
|
1312
|
+
withdrawn: string[] | null;
|
|
1313
|
+
};
|
|
1314
|
+
AgentDirectories: {
|
|
1315
|
+
/** @description The folders in the directory, by name. */
|
|
1316
|
+
entries: components["schemas"]["AgentDirectory"][] | null;
|
|
1317
|
+
/** @description Home directory of the account the machine's sessions run as. */
|
|
1318
|
+
home?: string;
|
|
1319
|
+
/** @description Absolute path of the directory listed, with ~ expanded. */
|
|
1320
|
+
path: string;
|
|
1321
|
+
/** @description The directory holds more folders than one answer lists; a filter reaches the rest. */
|
|
1322
|
+
truncated?: boolean;
|
|
1323
|
+
};
|
|
1324
|
+
AgentDirectory: {
|
|
1325
|
+
name: string;
|
|
1326
|
+
/** @description The folder holds a .git, as a repository or one of its worktrees does. */
|
|
1327
|
+
repository?: boolean;
|
|
1328
|
+
};
|
|
1329
|
+
AgentGoalResult: {
|
|
1330
|
+
/** @description The unfinished goal's condition, empty with none standing. */
|
|
1331
|
+
condition?: string;
|
|
1332
|
+
/** @description What /goal printed. */
|
|
1333
|
+
output: string;
|
|
1334
|
+
/** @description Why the last check found the goal unmet. */
|
|
1335
|
+
reason?: string;
|
|
1336
|
+
/** @description Where the goal's loop stands after the call. */
|
|
1337
|
+
status?: components["schemas"]["GoalStatus"];
|
|
1338
|
+
/**
|
|
1339
|
+
* Format: int64
|
|
1340
|
+
* @description Tokens the session has spent over those turns.
|
|
1341
|
+
*/
|
|
1342
|
+
tokens?: number;
|
|
1343
|
+
/**
|
|
1344
|
+
* Format: int64
|
|
1345
|
+
* @description Checks the unfinished goal has made since it was set, or since the session was last restored. A machine from before this field leaves it out.
|
|
1346
|
+
*/
|
|
1347
|
+
turns?: number;
|
|
1087
1348
|
};
|
|
1088
1349
|
AgentImageBody: {
|
|
1089
1350
|
/** @description The image, base64. Up to 6MiB. */
|
|
@@ -1128,6 +1389,8 @@ export interface components {
|
|
|
1128
1389
|
claudeLogin?: boolean;
|
|
1129
1390
|
/** @description Machine id the pw code daemon reported, when it answered. A local computer with the same id as a resource is the same host and is listed only as the resource. */
|
|
1130
1391
|
daemonId?: string;
|
|
1392
|
+
/** @description The daemon lists the machine's folders, for choosing where a session starts. */
|
|
1393
|
+
directories?: boolean;
|
|
1131
1394
|
error?: string;
|
|
1132
1395
|
/** @description Hostname the daemon reported, when it answered. */
|
|
1133
1396
|
hostname?: string;
|
|
@@ -1321,6 +1584,24 @@ export interface components {
|
|
|
1321
1584
|
/** @description Id of one of the reader's groups, as their preferences name it. */
|
|
1322
1585
|
group: string;
|
|
1323
1586
|
};
|
|
1587
|
+
AgentSessionSettingsBody: {
|
|
1588
|
+
/** @description Allocation to bill; the daemon requires one for org provider models. */
|
|
1589
|
+
allocation?: string;
|
|
1590
|
+
/** @description An existing Claude Code account on the machine; applies after the current turn. */
|
|
1591
|
+
claudeAccount?: string;
|
|
1592
|
+
/**
|
|
1593
|
+
* @description Reasoning effort from the session's next turn on: low, medium, high, xhigh or max, which a model runs at the nearest level it takes. default, none and minimal are earlier names for high, low and low.
|
|
1594
|
+
* @enum {string}
|
|
1595
|
+
*/
|
|
1596
|
+
effort?: "default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
1597
|
+
/** @description Model id to switch the session to. */
|
|
1598
|
+
model?: string;
|
|
1599
|
+
/**
|
|
1600
|
+
* @description Authority the session runs with; the machine refuses anything above its remoteMaxPermissionMode.
|
|
1601
|
+
* @enum {string}
|
|
1602
|
+
*/
|
|
1603
|
+
permissionMode?: "read-only" | "accept-edits" | "auto" | "bypass-permissions";
|
|
1604
|
+
};
|
|
1324
1605
|
AgentSessionWorktree: {
|
|
1325
1606
|
/** @description The branch git made for the worktree. */
|
|
1326
1607
|
branch?: string;
|
|
@@ -1416,6 +1697,130 @@ export interface components {
|
|
|
1416
1697
|
*/
|
|
1417
1698
|
outcome: "left" | "removed" | "remove_failed";
|
|
1418
1699
|
};
|
|
1700
|
+
Allocation: {
|
|
1701
|
+
/**
|
|
1702
|
+
* Format: double
|
|
1703
|
+
* @description Sum of the amounts of all the allocation's periods, a repeating period counted once per window. Absent without periods.
|
|
1704
|
+
*/
|
|
1705
|
+
readonly allPeriodsTotal?: number;
|
|
1706
|
+
/** @description Resource types a managed allocation may fund. Empty means unrestricted. */
|
|
1707
|
+
allowed?: ("aws" | "azure" | "google" | "oracle" | "openstack" | "kubernetes" | "ai")[] | null;
|
|
1708
|
+
/** @description Names of the allocations above this one, the top-level one first. Only set when reading a single allocation. */
|
|
1709
|
+
readonly ancestors?: string[] | null;
|
|
1710
|
+
/** @description Whether the current user can edit the allocation amount */
|
|
1711
|
+
readonly canEditTotal?: boolean;
|
|
1712
|
+
/**
|
|
1713
|
+
* Format: int64
|
|
1714
|
+
* @description Current organization threshold level
|
|
1715
|
+
*/
|
|
1716
|
+
readonly currentOrgThreshold?: number;
|
|
1717
|
+
/** @description Whether crossing an organization threshold freezes or shuts down resources charged to this allocation or the allocations under it. When false, its thresholds only notify, and its budget running out stops only work charged to it directly, not the allocations under it. Defaults to true. */
|
|
1718
|
+
enforceThresholds?: boolean;
|
|
1719
|
+
/**
|
|
1720
|
+
* Format: double
|
|
1721
|
+
* @description Estimated amount used
|
|
1722
|
+
*/
|
|
1723
|
+
readonly estimatedUsed?: number;
|
|
1724
|
+
/** @description The allocation's period amounts summed by the fiscal year each period window starts in, earliest first. Absent without periods. */
|
|
1725
|
+
readonly fiscalYears?: components["schemas"]["AllocationFiscalYear"][] | null;
|
|
1726
|
+
/** @description Whether any allocation sits under this one. Only set when reading a single allocation. */
|
|
1727
|
+
readonly hasChildren?: boolean;
|
|
1728
|
+
/** @description Whether this allocation has associated cloud usage records */
|
|
1729
|
+
readonly hasCloudUsage?: boolean;
|
|
1730
|
+
/** @description Allocation ID, which its events target */
|
|
1731
|
+
readonly id?: string;
|
|
1732
|
+
/** @description Allocation name */
|
|
1733
|
+
name: string;
|
|
1734
|
+
/** @description Not chargeable: the allocation only holds budget for the allocations under it, and can't be billed directly. */
|
|
1735
|
+
nonChargeable?: boolean;
|
|
1736
|
+
/** @description Parent allocation name */
|
|
1737
|
+
parent?: string;
|
|
1738
|
+
/** @description Budget per period. Periods can't overlap, and the total follows the current period's amount. */
|
|
1739
|
+
periods?: components["schemas"]["AllocationPeriodAmount"][] | null;
|
|
1740
|
+
/** @description Whether the allocation's unit is rated in USD (false = a raw consumption unit) */
|
|
1741
|
+
readonly ratedInUsd?: boolean;
|
|
1742
|
+
/**
|
|
1743
|
+
* Format: int64
|
|
1744
|
+
* @description Number of resource groups currently billing this allocation
|
|
1745
|
+
*/
|
|
1746
|
+
readonly resourceGroups?: number;
|
|
1747
|
+
/** @description Highest organization allocation threshold this allocation has crossed */
|
|
1748
|
+
readonly threshold?: components["schemas"]["CrossedThreshold"];
|
|
1749
|
+
/**
|
|
1750
|
+
* Format: double
|
|
1751
|
+
* @description Total allocation amount
|
|
1752
|
+
*/
|
|
1753
|
+
total: number;
|
|
1754
|
+
/**
|
|
1755
|
+
* @description Allocation type: managed (USD, rated by the billing system) or custom (denominated in a custom unit). Derived from the unit when omitted.
|
|
1756
|
+
* @enum {string}
|
|
1757
|
+
*/
|
|
1758
|
+
type?: "managed" | "custom";
|
|
1759
|
+
/** @description Unit of measurement */
|
|
1760
|
+
unit: string;
|
|
1761
|
+
/**
|
|
1762
|
+
* @description Why new resources cannot bill this allocation: no budget set, a freeze/shutdown threshold crossed, a not chargeable allocation, no period covers today, its budget or an enforcing ancestor's is used up, or, in a listing of your own allocations, it is shared with you to read but not to bill
|
|
1763
|
+
* @enum {string}
|
|
1764
|
+
*/
|
|
1765
|
+
readonly unusableReason?: "no-budget" | "over-threshold" | "non-chargeable" | "no-active-period" | "budget-spent" | "no-access";
|
|
1766
|
+
/** @description Whether new resources can bill this allocation right now */
|
|
1767
|
+
readonly usable?: boolean;
|
|
1768
|
+
/**
|
|
1769
|
+
* Format: double
|
|
1770
|
+
* @description Amount used
|
|
1771
|
+
*/
|
|
1772
|
+
readonly used?: number;
|
|
1773
|
+
};
|
|
1774
|
+
AllocationFiscalYear: {
|
|
1775
|
+
/**
|
|
1776
|
+
* Format: double
|
|
1777
|
+
* @description Sum of the allocation's period amounts whose windows start in this fiscal year
|
|
1778
|
+
*/
|
|
1779
|
+
amount: number;
|
|
1780
|
+
/**
|
|
1781
|
+
* Format: date-time
|
|
1782
|
+
* @description End of the fiscal year (exclusive)
|
|
1783
|
+
*/
|
|
1784
|
+
end: string;
|
|
1785
|
+
/**
|
|
1786
|
+
* @description Fiscal year label, such as FY27
|
|
1787
|
+
* @example FY27
|
|
1788
|
+
*/
|
|
1789
|
+
name: string;
|
|
1790
|
+
/** @description Names of the periods counted in this fiscal year */
|
|
1791
|
+
periods: string[] | null;
|
|
1792
|
+
/**
|
|
1793
|
+
* Format: date-time
|
|
1794
|
+
* @description Start of the fiscal year
|
|
1795
|
+
*/
|
|
1796
|
+
start: string;
|
|
1797
|
+
};
|
|
1798
|
+
AllocationPeriodAmount: {
|
|
1799
|
+
/** @description Whether the period covers now */
|
|
1800
|
+
readonly active?: boolean;
|
|
1801
|
+
/**
|
|
1802
|
+
* Format: double
|
|
1803
|
+
* @description Budget for the period
|
|
1804
|
+
*/
|
|
1805
|
+
amount: number;
|
|
1806
|
+
/**
|
|
1807
|
+
* Format: date-time
|
|
1808
|
+
* @description End of the period (exclusive)
|
|
1809
|
+
*/
|
|
1810
|
+
readonly end?: string;
|
|
1811
|
+
/** @description Period name */
|
|
1812
|
+
period: string;
|
|
1813
|
+
/**
|
|
1814
|
+
* @description How the period repeats; each window gets the full amount. Absent for a period that doesn't repeat.
|
|
1815
|
+
* @enum {string}
|
|
1816
|
+
*/
|
|
1817
|
+
readonly repeat?: "monthly";
|
|
1818
|
+
/**
|
|
1819
|
+
* Format: date-time
|
|
1820
|
+
* @description Start of the period
|
|
1821
|
+
*/
|
|
1822
|
+
readonly start?: string;
|
|
1823
|
+
};
|
|
1419
1824
|
AllowedDirectory: {
|
|
1420
1825
|
edit?: boolean;
|
|
1421
1826
|
path: string;
|
|
@@ -1475,16 +1880,87 @@ export interface components {
|
|
|
1475
1880
|
question?: string;
|
|
1476
1881
|
text?: string;
|
|
1477
1882
|
};
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
/**
|
|
1482
|
-
|
|
1483
|
-
/**
|
|
1484
|
-
|
|
1883
|
+
AttachmentResponse: {
|
|
1884
|
+
/** @description MIME type */
|
|
1885
|
+
contentType: string;
|
|
1886
|
+
/** @description Parent conversation ID */
|
|
1887
|
+
conversationId?: string;
|
|
1888
|
+
/** @description Original filename */
|
|
1889
|
+
filename: string;
|
|
1890
|
+
/** @description Attachment ID */
|
|
1485
1891
|
id: string;
|
|
1486
|
-
/** @
|
|
1487
|
-
|
|
1892
|
+
/** @description Associated message ID */
|
|
1893
|
+
messageId?: string;
|
|
1894
|
+
/**
|
|
1895
|
+
* Format: int64
|
|
1896
|
+
* @description File size in bytes
|
|
1897
|
+
*/
|
|
1898
|
+
size: number;
|
|
1899
|
+
/**
|
|
1900
|
+
* Format: date-time
|
|
1901
|
+
* @description Upload timestamp
|
|
1902
|
+
*/
|
|
1903
|
+
uploadedAt: string;
|
|
1904
|
+
};
|
|
1905
|
+
ChatToolDecision: {
|
|
1906
|
+
/**
|
|
1907
|
+
* Format: date-time
|
|
1908
|
+
* @description When it was settled
|
|
1909
|
+
*/
|
|
1910
|
+
at: string;
|
|
1911
|
+
/**
|
|
1912
|
+
* @description Who settled it
|
|
1913
|
+
* @enum {string}
|
|
1914
|
+
*/
|
|
1915
|
+
by: "user";
|
|
1916
|
+
/** @description Whether the user changed the arguments before allowing the call */
|
|
1917
|
+
edited?: boolean;
|
|
1918
|
+
/** @description The display name of the user who answered */
|
|
1919
|
+
name?: string;
|
|
1920
|
+
/**
|
|
1921
|
+
* @description How the call was settled
|
|
1922
|
+
* @enum {string}
|
|
1923
|
+
*/
|
|
1924
|
+
status: "approved" | "denied" | "expired";
|
|
1925
|
+
/** @description The user who answered */
|
|
1926
|
+
username?: string;
|
|
1927
|
+
};
|
|
1928
|
+
ClaudeLogin: {
|
|
1929
|
+
account: string;
|
|
1930
|
+
email?: string;
|
|
1931
|
+
/** Format: int64 */
|
|
1932
|
+
exitCode?: number;
|
|
1933
|
+
/** Format: date-time */
|
|
1934
|
+
expiresAt: string;
|
|
1935
|
+
id: string;
|
|
1936
|
+
/** @enum {string} */
|
|
1937
|
+
status: "running" | "checking" | "signed_in" | "failed" | "canceled" | "expired";
|
|
1938
|
+
};
|
|
1939
|
+
ConversationResponse: {
|
|
1940
|
+
/** @description Currently active branch leaf ID */
|
|
1941
|
+
activeBranchId: string | null;
|
|
1942
|
+
/** @description All branch leaf IDs */
|
|
1943
|
+
branches?: string[] | null;
|
|
1944
|
+
/** @description Whether the user can add messages */
|
|
1945
|
+
canCollaborate: boolean;
|
|
1946
|
+
/**
|
|
1947
|
+
* Format: date-time
|
|
1948
|
+
* @description Creation timestamp
|
|
1949
|
+
*/
|
|
1950
|
+
createdAt: string;
|
|
1951
|
+
/** @description Conversation ID */
|
|
1952
|
+
id: string;
|
|
1953
|
+
/** @description Whether the current user owns this conversation */
|
|
1954
|
+
isOwner: boolean;
|
|
1955
|
+
/** @description Message tree */
|
|
1956
|
+
messages: components["schemas"]["MessageResponse"][] | null;
|
|
1957
|
+
/** @description Conversation title */
|
|
1958
|
+
title: string | null;
|
|
1959
|
+
/**
|
|
1960
|
+
* Format: date-time
|
|
1961
|
+
* @description Last update timestamp
|
|
1962
|
+
*/
|
|
1963
|
+
updatedAt: string | null;
|
|
1488
1964
|
};
|
|
1489
1965
|
CreateSessionBody: {
|
|
1490
1966
|
/** @description Allocation to bill the session to. Required for org provider models. */
|
|
@@ -1508,6 +1984,21 @@ export interface components {
|
|
|
1508
1984
|
/** @description Absolute path on the machine to run in. Offer the caller workspaces their existing sessions already use. */
|
|
1509
1985
|
workspace: string;
|
|
1510
1986
|
};
|
|
1987
|
+
CrossedThreshold: {
|
|
1988
|
+
/**
|
|
1989
|
+
* @description Actions this threshold takes; only notify for an allocation that doesn't enforce thresholds
|
|
1990
|
+
* @example [
|
|
1991
|
+
* "freeze"
|
|
1992
|
+
* ]
|
|
1993
|
+
*/
|
|
1994
|
+
actions: string[] | null;
|
|
1995
|
+
/**
|
|
1996
|
+
* Format: double
|
|
1997
|
+
* @description Usage percent of the crossed threshold
|
|
1998
|
+
* @example 80
|
|
1999
|
+
*/
|
|
2000
|
+
threshold: number;
|
|
2001
|
+
};
|
|
1511
2002
|
Error: {
|
|
1512
2003
|
/** @description Stable, machine-readable error code, for clients to show a localized message. Every error carries one. Documented at /problems/. */
|
|
1513
2004
|
code?: string;
|
|
@@ -1522,6 +2013,14 @@ export interface components {
|
|
|
1522
2013
|
[key: string]: unknown;
|
|
1523
2014
|
};
|
|
1524
2015
|
};
|
|
2016
|
+
FunctionCall: {
|
|
2017
|
+
/** @description JSON string of arguments */
|
|
2018
|
+
arguments: string;
|
|
2019
|
+
/** @description Function name */
|
|
2020
|
+
name: string;
|
|
2021
|
+
} & {
|
|
2022
|
+
[key: string]: unknown;
|
|
2023
|
+
};
|
|
1525
2024
|
GoalProgress: {
|
|
1526
2025
|
condition?: string;
|
|
1527
2026
|
/** Format: int64 */
|
|
@@ -1536,6 +2035,8 @@ export interface components {
|
|
|
1536
2035
|
tokens?: number;
|
|
1537
2036
|
/** Format: int64 */
|
|
1538
2037
|
turns?: number;
|
|
2038
|
+
/** Format: int64 */
|
|
2039
|
+
waitedMs?: number;
|
|
1539
2040
|
};
|
|
1540
2041
|
GoalStatus: {
|
|
1541
2042
|
active?: boolean;
|
|
@@ -1547,6 +2048,8 @@ export interface components {
|
|
|
1547
2048
|
HistoryItem: {
|
|
1548
2049
|
callId?: string;
|
|
1549
2050
|
decision?: components["schemas"]["ToolDecision"];
|
|
2051
|
+
/** Format: int64 */
|
|
2052
|
+
durationMs?: number;
|
|
1550
2053
|
fromMain?: boolean;
|
|
1551
2054
|
images?: components["schemas"]["ImageContent"][] | null;
|
|
1552
2055
|
/** @enum {string} */
|
|
@@ -1563,11 +2066,15 @@ export interface components {
|
|
|
1563
2066
|
};
|
|
1564
2067
|
ImageContent: {
|
|
1565
2068
|
data: string;
|
|
2069
|
+
/** Format: int64 */
|
|
2070
|
+
height?: number;
|
|
1566
2071
|
mime: string;
|
|
1567
2072
|
originalMime?: string;
|
|
1568
2073
|
/** Format: int64 */
|
|
1569
2074
|
originalSize?: number;
|
|
1570
2075
|
ref?: string;
|
|
2076
|
+
/** Format: int64 */
|
|
2077
|
+
width?: number;
|
|
1571
2078
|
};
|
|
1572
2079
|
MCPStatus: {
|
|
1573
2080
|
err?: string;
|
|
@@ -1577,6 +2084,131 @@ export interface components {
|
|
|
1577
2084
|
/** Format: int64 */
|
|
1578
2085
|
tools?: number;
|
|
1579
2086
|
};
|
|
2087
|
+
MessageAuthor: {
|
|
2088
|
+
/** @description Avatar image URL */
|
|
2089
|
+
avatarUrl?: string;
|
|
2090
|
+
/** @description User ID */
|
|
2091
|
+
id: string;
|
|
2092
|
+
/** @description Display name */
|
|
2093
|
+
name?: string;
|
|
2094
|
+
/** @description Username */
|
|
2095
|
+
username: string;
|
|
2096
|
+
};
|
|
2097
|
+
MessagePart: {
|
|
2098
|
+
/** @description Arguments as a JSON string */
|
|
2099
|
+
args: string;
|
|
2100
|
+
/** @description How a call that asked first was settled */
|
|
2101
|
+
decision?: components["schemas"]["ChatToolDecision"];
|
|
2102
|
+
/**
|
|
2103
|
+
* Format: date-time
|
|
2104
|
+
* @description When a waiting call stops being answerable
|
|
2105
|
+
*/
|
|
2106
|
+
expiresAt?: string;
|
|
2107
|
+
/** @description Tool call ID */
|
|
2108
|
+
id: string;
|
|
2109
|
+
/**
|
|
2110
|
+
* @description Part kind
|
|
2111
|
+
* @enum {string}
|
|
2112
|
+
*/
|
|
2113
|
+
kind: "tool_call" | "text";
|
|
2114
|
+
/** @description Tool name */
|
|
2115
|
+
name: string;
|
|
2116
|
+
/** @description What the tool returned to the model */
|
|
2117
|
+
result: string;
|
|
2118
|
+
/**
|
|
2119
|
+
* @description Whether the call succeeded, or that it waits for the user's approval
|
|
2120
|
+
* @enum {string}
|
|
2121
|
+
*/
|
|
2122
|
+
status: "waiting" | "running" | "ok" | "error";
|
|
2123
|
+
/** @description What the model wrote at this point, for a text part */
|
|
2124
|
+
text?: string;
|
|
2125
|
+
};
|
|
2126
|
+
MessageResponse: {
|
|
2127
|
+
/** @description Attachment details */
|
|
2128
|
+
attachments?: components["schemas"]["AttachmentResponse"][] | null;
|
|
2129
|
+
/** @description Message author info */
|
|
2130
|
+
author?: components["schemas"]["MessageAuthor"];
|
|
2131
|
+
/** @description Message content */
|
|
2132
|
+
content: string | null;
|
|
2133
|
+
/** @description Message UUID */
|
|
2134
|
+
id: string;
|
|
2135
|
+
/** @description Model used */
|
|
2136
|
+
model: string | null;
|
|
2137
|
+
/** @description Parent message ID */
|
|
2138
|
+
parentId: string | null;
|
|
2139
|
+
/** @description Platform tool calls the server ran while writing this answer and the text written around them, in order. The last text part, when it ends the list, is the answer in content. Echo each run of calls back in history as an assistant message with the text before it and the calls, then one tool message per result. */
|
|
2140
|
+
parts?: components["schemas"]["MessagePart"][] | null;
|
|
2141
|
+
/** @description Provider ID */
|
|
2142
|
+
providerId: string | null;
|
|
2143
|
+
/** @description Reasoning/thinking content from the model */
|
|
2144
|
+
reasoning?: string;
|
|
2145
|
+
/**
|
|
2146
|
+
* Format: double
|
|
2147
|
+
* @description Reasoning duration in milliseconds
|
|
2148
|
+
*/
|
|
2149
|
+
reasoningDuration?: number;
|
|
2150
|
+
/** @description Raw Responses API output items (reasoning with encrypted_content, function calls); echo back in history for cross-turn reasoning continuity */
|
|
2151
|
+
responsesOutput?: unknown[] | null;
|
|
2152
|
+
/** @description Message role */
|
|
2153
|
+
role: string;
|
|
2154
|
+
/** @description Whether the message was stopped early by user */
|
|
2155
|
+
stopped?: boolean;
|
|
2156
|
+
/**
|
|
2157
|
+
* Format: date-time
|
|
2158
|
+
* @description Message timestamp
|
|
2159
|
+
*/
|
|
2160
|
+
timestamp: string;
|
|
2161
|
+
/** @description Token usage */
|
|
2162
|
+
tokensUsed?: components["schemas"]["Usage"];
|
|
2163
|
+
/** @description Tool call ID */
|
|
2164
|
+
toolCallId?: string;
|
|
2165
|
+
/** @description Tool calls */
|
|
2166
|
+
toolCalls?: components["schemas"]["ToolCall"][] | null;
|
|
2167
|
+
};
|
|
2168
|
+
ModelEntry: {
|
|
2169
|
+
/** @description Budget allocation the provider's resource group bills; absent for org and session models */
|
|
2170
|
+
allocation?: string;
|
|
2171
|
+
/**
|
|
2172
|
+
* Format: double
|
|
2173
|
+
* @description USD per prompt token written to the provider's prompt cache; 0 means cache writes are free
|
|
2174
|
+
*/
|
|
2175
|
+
cache_write_rate?: number;
|
|
2176
|
+
/**
|
|
2177
|
+
* Format: double
|
|
2178
|
+
* @description USD per prompt token served from the provider's prompt cache; 0 means cache reads are free
|
|
2179
|
+
*/
|
|
2180
|
+
cached_input_rate?: number;
|
|
2181
|
+
/** Format: int64 */
|
|
2182
|
+
context_window?: number;
|
|
2183
|
+
/** Format: int64 */
|
|
2184
|
+
created: number;
|
|
2185
|
+
id: string;
|
|
2186
|
+
/** Format: double */
|
|
2187
|
+
input_rate?: number;
|
|
2188
|
+
name?: string;
|
|
2189
|
+
object: string;
|
|
2190
|
+
/** Format: double */
|
|
2191
|
+
output_rate?: number;
|
|
2192
|
+
owned_by: string;
|
|
2193
|
+
provider?: string;
|
|
2194
|
+
provider_name?: string;
|
|
2195
|
+
provider_owner?: string;
|
|
2196
|
+
provider_type?: string;
|
|
2197
|
+
reasoning_efforts?: string[] | null;
|
|
2198
|
+
supports_responses?: boolean;
|
|
2199
|
+
supports_usage?: boolean;
|
|
2200
|
+
/** @description Whether the model accepts image input; absent when the platform has no capability data for it */
|
|
2201
|
+
supports_vision?: boolean;
|
|
2202
|
+
/** @enum {string} */
|
|
2203
|
+
tool_calling_mode: "native" | "emulated" | "none";
|
|
2204
|
+
usage_not_supported?: boolean;
|
|
2205
|
+
};
|
|
2206
|
+
ModelsResponse: {
|
|
2207
|
+
data: components["schemas"]["ModelEntry"][] | null;
|
|
2208
|
+
object: string;
|
|
2209
|
+
provider_issues?: components["schemas"]["ProviderIssue"][] | null;
|
|
2210
|
+
unreachable_sessions?: components["schemas"]["UnreachableSession"][] | null;
|
|
2211
|
+
};
|
|
1580
2212
|
PasteRef: {
|
|
1581
2213
|
/** Format: int64 */
|
|
1582
2214
|
id: number;
|
|
@@ -1593,6 +2225,39 @@ export interface components {
|
|
|
1593
2225
|
placeholder: string;
|
|
1594
2226
|
text?: string;
|
|
1595
2227
|
};
|
|
2228
|
+
Preview: {
|
|
2229
|
+
/** @description Indicates if the preview was enabled at a platform-wide level. */
|
|
2230
|
+
platform: boolean;
|
|
2231
|
+
/** @description Name of the preview. */
|
|
2232
|
+
preview: string;
|
|
2233
|
+
};
|
|
2234
|
+
PromptTokensDetails: {
|
|
2235
|
+
/**
|
|
2236
|
+
* Format: int64
|
|
2237
|
+
* @description Prompt tokens written to the provider's prompt cache
|
|
2238
|
+
*/
|
|
2239
|
+
cache_write_tokens?: number;
|
|
2240
|
+
/**
|
|
2241
|
+
* Format: int64
|
|
2242
|
+
* @description Prompt tokens served from the provider's prompt cache
|
|
2243
|
+
*/
|
|
2244
|
+
cached_tokens: number;
|
|
2245
|
+
};
|
|
2246
|
+
ProviderIssue: {
|
|
2247
|
+
/** @description The provider's own explanation, when it gave one */
|
|
2248
|
+
message?: string;
|
|
2249
|
+
/** @description Provider display name, matching the models it covers */
|
|
2250
|
+
provider: string;
|
|
2251
|
+
/** @description Stable provider name */
|
|
2252
|
+
provider_name: string;
|
|
2253
|
+
/** @description Provider owner's username; empty for organization connections */
|
|
2254
|
+
provider_owner?: string;
|
|
2255
|
+
/**
|
|
2256
|
+
* @description Why the connection is unusable
|
|
2257
|
+
* @enum {string}
|
|
2258
|
+
*/
|
|
2259
|
+
status: "unauthorized" | "unreachable";
|
|
2260
|
+
};
|
|
1596
2261
|
RemotePolicy: {
|
|
1597
2262
|
maxPermissionMode: string;
|
|
1598
2263
|
newSessions: boolean;
|
|
@@ -1620,6 +2285,8 @@ export interface components {
|
|
|
1620
2285
|
autoCompactWindow?: number;
|
|
1621
2286
|
autoName?: string;
|
|
1622
2287
|
/** Format: int64 */
|
|
2288
|
+
backgroundMonitors?: number;
|
|
2289
|
+
/** Format: int64 */
|
|
1623
2290
|
backgroundShells?: number;
|
|
1624
2291
|
claudeAccount?: string;
|
|
1625
2292
|
effectiveAllocation?: string;
|
|
@@ -1704,66 +2371,383 @@ export interface components {
|
|
|
1704
2371
|
status: "running" | "done" | "failed" | "stopped";
|
|
1705
2372
|
usage?: components["schemas"]["SubagentUsage"];
|
|
1706
2373
|
};
|
|
1707
|
-
SubagentUsage: {
|
|
1708
|
-
/** Format: int64 */
|
|
1709
|
-
inputTokens?: number;
|
|
1710
|
-
/** Format: int64 */
|
|
1711
|
-
latestInputTokens?: number;
|
|
1712
|
-
/** Format: int64 */
|
|
1713
|
-
outputTokens?: number;
|
|
2374
|
+
SubagentUsage: {
|
|
2375
|
+
/** Format: int64 */
|
|
2376
|
+
inputTokens?: number;
|
|
2377
|
+
/** Format: int64 */
|
|
2378
|
+
latestInputTokens?: number;
|
|
2379
|
+
/** Format: int64 */
|
|
2380
|
+
outputTokens?: number;
|
|
2381
|
+
};
|
|
2382
|
+
ToolCall: {
|
|
2383
|
+
/** @description Function call details */
|
|
2384
|
+
function: components["schemas"]["FunctionCall"];
|
|
2385
|
+
/** @description Unique tool call ID */
|
|
2386
|
+
id?: string;
|
|
2387
|
+
/**
|
|
2388
|
+
* Format: int64
|
|
2389
|
+
* @description Tool call index (for streaming)
|
|
2390
|
+
*/
|
|
2391
|
+
index?: number;
|
|
2392
|
+
/** @description Tool type */
|
|
2393
|
+
type?: string;
|
|
2394
|
+
} & {
|
|
2395
|
+
[key: string]: unknown;
|
|
2396
|
+
};
|
|
2397
|
+
ToolDecision: {
|
|
2398
|
+
action?: string;
|
|
2399
|
+
answers?: components["schemas"]["AskQuestionAnswer"][] | null;
|
|
2400
|
+
/** Format: date-time */
|
|
2401
|
+
at: string;
|
|
2402
|
+
/** @enum {string} */
|
|
2403
|
+
by: "user" | "auto-reviewer";
|
|
2404
|
+
callId: string;
|
|
2405
|
+
note?: string;
|
|
2406
|
+
rationale?: string;
|
|
2407
|
+
/** @enum {string} */
|
|
2408
|
+
riskLevel?: "" | "low" | "medium" | "high" | "critical";
|
|
2409
|
+
/** @enum {string} */
|
|
2410
|
+
status: "reviewing" | "approved" | "denied" | "timed_out" | "failed" | "aborted";
|
|
2411
|
+
/** @enum {string} */
|
|
2412
|
+
userAuthorization?: "" | "unknown" | "low" | "medium" | "high";
|
|
2413
|
+
username?: string;
|
|
2414
|
+
};
|
|
2415
|
+
TurnEnd: {
|
|
2416
|
+
/** Format: int64 */
|
|
2417
|
+
durationMs: number;
|
|
2418
|
+
/** Format: date-time */
|
|
2419
|
+
endedAt: string;
|
|
2420
|
+
/** Format: int64 */
|
|
2421
|
+
pendingAgents?: number;
|
|
2422
|
+
};
|
|
2423
|
+
TurnResult: {
|
|
2424
|
+
blockedByHook?: string;
|
|
2425
|
+
/** Format: double */
|
|
2426
|
+
estimatedCost?: number;
|
|
2427
|
+
/** Format: int64 */
|
|
2428
|
+
inputTokens?: number;
|
|
2429
|
+
/** Format: int64 */
|
|
2430
|
+
iters?: number;
|
|
2431
|
+
model?: string;
|
|
2432
|
+
/** Format: int64 */
|
|
2433
|
+
outputTokens?: number;
|
|
2434
|
+
skills?: string[] | null;
|
|
2435
|
+
};
|
|
2436
|
+
UnreachableSession: {
|
|
2437
|
+
name: string;
|
|
2438
|
+
owner: string;
|
|
2439
|
+
};
|
|
2440
|
+
UpdateConversationInputBody: {
|
|
2441
|
+
activeBranchId?: string;
|
|
2442
|
+
title?: string;
|
|
2443
|
+
};
|
|
2444
|
+
UpdateUserPreferencesInputBody: {
|
|
2445
|
+
/** @description Preference keys to write. A null value removes the key; keys not present are left unchanged. */
|
|
2446
|
+
preferences: {
|
|
2447
|
+
[key: string]: unknown;
|
|
2448
|
+
};
|
|
2449
|
+
};
|
|
2450
|
+
Usage: {
|
|
2451
|
+
/**
|
|
2452
|
+
* Format: int64
|
|
2453
|
+
* @description Tokens in the completion
|
|
2454
|
+
*/
|
|
2455
|
+
completion_tokens: number;
|
|
2456
|
+
/**
|
|
2457
|
+
* Format: int64
|
|
2458
|
+
* @description Tokens in the prompt, cached ones included
|
|
2459
|
+
*/
|
|
2460
|
+
prompt_tokens: number;
|
|
2461
|
+
prompt_tokens_details?: components["schemas"]["PromptTokensDetails"];
|
|
2462
|
+
/**
|
|
2463
|
+
* Format: int64
|
|
2464
|
+
* @description Total tokens used
|
|
2465
|
+
*/
|
|
2466
|
+
total_tokens: number;
|
|
2467
|
+
};
|
|
2468
|
+
UserPreferencesBody: {
|
|
2469
|
+
/** @description The user's saved UI preferences keyed by view id. Values are opaque JSON owned by the client. */
|
|
2470
|
+
preferences: {
|
|
2471
|
+
[key: string]: unknown;
|
|
2472
|
+
};
|
|
2473
|
+
};
|
|
2474
|
+
};
|
|
2475
|
+
responses: never;
|
|
2476
|
+
parameters: never;
|
|
2477
|
+
requestBodies: never;
|
|
2478
|
+
headers: never;
|
|
2479
|
+
pathItems: never;
|
|
2480
|
+
}
|
|
2481
|
+
export type $defs = Record<string, never>;
|
|
2482
|
+
export interface operations {
|
|
2483
|
+
getAIChatConversation: {
|
|
2484
|
+
parameters: {
|
|
2485
|
+
query?: {
|
|
2486
|
+
/** @description Specific branch to return (optional) */
|
|
2487
|
+
branchId?: string;
|
|
2488
|
+
};
|
|
2489
|
+
header?: never;
|
|
2490
|
+
path: {
|
|
2491
|
+
/** @description Conversation ID */
|
|
2492
|
+
id: string;
|
|
2493
|
+
};
|
|
2494
|
+
cookie?: never;
|
|
2495
|
+
};
|
|
2496
|
+
requestBody?: never;
|
|
2497
|
+
responses: {
|
|
2498
|
+
/** @description OK */
|
|
2499
|
+
200: {
|
|
2500
|
+
headers: {
|
|
2501
|
+
[name: string]: unknown;
|
|
2502
|
+
};
|
|
2503
|
+
content: {
|
|
2504
|
+
"application/json": components["schemas"]["ConversationResponse"];
|
|
2505
|
+
};
|
|
2506
|
+
};
|
|
2507
|
+
/** @description Error */
|
|
2508
|
+
default: {
|
|
2509
|
+
headers: {
|
|
2510
|
+
[name: string]: unknown;
|
|
2511
|
+
};
|
|
2512
|
+
content: {
|
|
2513
|
+
"application/json": components["schemas"]["Error"];
|
|
2514
|
+
};
|
|
2515
|
+
};
|
|
2516
|
+
};
|
|
2517
|
+
};
|
|
2518
|
+
deleteAIChatConversation: {
|
|
2519
|
+
parameters: {
|
|
2520
|
+
query?: never;
|
|
2521
|
+
header?: never;
|
|
2522
|
+
path: {
|
|
2523
|
+
/** @description Conversation ID */
|
|
2524
|
+
id: string;
|
|
2525
|
+
};
|
|
2526
|
+
cookie?: never;
|
|
2527
|
+
};
|
|
2528
|
+
requestBody?: never;
|
|
2529
|
+
responses: {
|
|
2530
|
+
/** @description No Content */
|
|
2531
|
+
204: {
|
|
2532
|
+
headers: {
|
|
2533
|
+
[name: string]: unknown;
|
|
2534
|
+
};
|
|
2535
|
+
content?: never;
|
|
2536
|
+
};
|
|
2537
|
+
/** @description Error */
|
|
2538
|
+
default: {
|
|
2539
|
+
headers: {
|
|
2540
|
+
[name: string]: unknown;
|
|
2541
|
+
};
|
|
2542
|
+
content: {
|
|
2543
|
+
"application/json": components["schemas"]["Error"];
|
|
2544
|
+
};
|
|
2545
|
+
};
|
|
2546
|
+
};
|
|
2547
|
+
};
|
|
2548
|
+
updateAIChatConversation: {
|
|
2549
|
+
parameters: {
|
|
2550
|
+
query?: never;
|
|
2551
|
+
header?: never;
|
|
2552
|
+
path: {
|
|
2553
|
+
/** @description Conversation ID */
|
|
2554
|
+
id: string;
|
|
2555
|
+
};
|
|
2556
|
+
cookie?: never;
|
|
2557
|
+
};
|
|
2558
|
+
requestBody: {
|
|
2559
|
+
content: {
|
|
2560
|
+
"application/json": components["schemas"]["UpdateConversationInputBody"];
|
|
2561
|
+
};
|
|
2562
|
+
};
|
|
2563
|
+
responses: {
|
|
2564
|
+
/** @description OK */
|
|
2565
|
+
200: {
|
|
2566
|
+
headers: {
|
|
2567
|
+
[name: string]: unknown;
|
|
2568
|
+
};
|
|
2569
|
+
content: {
|
|
2570
|
+
"application/json": components["schemas"]["ConversationResponse"];
|
|
2571
|
+
};
|
|
2572
|
+
};
|
|
2573
|
+
/** @description Error */
|
|
2574
|
+
default: {
|
|
2575
|
+
headers: {
|
|
2576
|
+
[name: string]: unknown;
|
|
2577
|
+
};
|
|
2578
|
+
content: {
|
|
2579
|
+
"application/json": components["schemas"]["Error"];
|
|
2580
|
+
};
|
|
2581
|
+
};
|
|
2582
|
+
};
|
|
2583
|
+
};
|
|
2584
|
+
"list-user-allocations": {
|
|
2585
|
+
parameters: {
|
|
2586
|
+
query?: {
|
|
2587
|
+
/** @description Maximum number of allocations to return */
|
|
2588
|
+
limit?: number;
|
|
2589
|
+
/** @description Number of allocations to skip */
|
|
2590
|
+
skip?: number;
|
|
2591
|
+
/** @description Filter by allocation name (case-insensitive contains) */
|
|
2592
|
+
name?: string;
|
|
2593
|
+
/** @description Sort field and direction */
|
|
2594
|
+
sort?: "name" | "-name" | "total" | "-total";
|
|
2595
|
+
/** @description Which allocations to list: mine (default), those shared with you, or all, every allocation in the organization. Widening requires administrator access. */
|
|
2596
|
+
scope?: "mine" | "all";
|
|
2597
|
+
};
|
|
2598
|
+
header?: never;
|
|
2599
|
+
path?: never;
|
|
2600
|
+
cookie?: never;
|
|
2601
|
+
};
|
|
2602
|
+
requestBody?: never;
|
|
2603
|
+
responses: {
|
|
2604
|
+
/** @description OK */
|
|
2605
|
+
200: {
|
|
2606
|
+
headers: {
|
|
2607
|
+
[name: string]: unknown;
|
|
2608
|
+
};
|
|
2609
|
+
content: {
|
|
2610
|
+
"application/json": components["schemas"]["Allocation"][] | null;
|
|
2611
|
+
};
|
|
2612
|
+
};
|
|
2613
|
+
/** @description Error */
|
|
2614
|
+
default: {
|
|
2615
|
+
headers: {
|
|
2616
|
+
[name: string]: unknown;
|
|
2617
|
+
};
|
|
2618
|
+
content: {
|
|
2619
|
+
"application/json": components["schemas"]["Error"];
|
|
2620
|
+
};
|
|
2621
|
+
};
|
|
2622
|
+
};
|
|
2623
|
+
};
|
|
2624
|
+
listAIChatModels: {
|
|
2625
|
+
parameters: {
|
|
2626
|
+
query?: never;
|
|
2627
|
+
header?: never;
|
|
2628
|
+
path?: never;
|
|
2629
|
+
cookie?: never;
|
|
2630
|
+
};
|
|
2631
|
+
requestBody?: never;
|
|
2632
|
+
responses: {
|
|
2633
|
+
/** @description OK */
|
|
2634
|
+
200: {
|
|
2635
|
+
headers: {
|
|
2636
|
+
[name: string]: unknown;
|
|
2637
|
+
};
|
|
2638
|
+
content: {
|
|
2639
|
+
"application/json": components["schemas"]["ModelsResponse"];
|
|
2640
|
+
};
|
|
2641
|
+
};
|
|
2642
|
+
/** @description Error */
|
|
2643
|
+
default: {
|
|
2644
|
+
headers: {
|
|
2645
|
+
[name: string]: unknown;
|
|
2646
|
+
};
|
|
2647
|
+
content: {
|
|
2648
|
+
"application/json": components["schemas"]["Error"];
|
|
2649
|
+
};
|
|
2650
|
+
};
|
|
2651
|
+
};
|
|
2652
|
+
};
|
|
2653
|
+
"get-previews": {
|
|
2654
|
+
parameters: {
|
|
2655
|
+
query?: never;
|
|
2656
|
+
header?: never;
|
|
2657
|
+
path?: never;
|
|
2658
|
+
cookie?: never;
|
|
2659
|
+
};
|
|
2660
|
+
requestBody?: never;
|
|
2661
|
+
responses: {
|
|
2662
|
+
/** @description OK */
|
|
2663
|
+
200: {
|
|
2664
|
+
headers: {
|
|
2665
|
+
[name: string]: unknown;
|
|
2666
|
+
};
|
|
2667
|
+
content: {
|
|
2668
|
+
"application/json": components["schemas"]["Preview"][] | null;
|
|
2669
|
+
};
|
|
2670
|
+
};
|
|
2671
|
+
/** @description Error */
|
|
2672
|
+
default: {
|
|
2673
|
+
headers: {
|
|
2674
|
+
[name: string]: unknown;
|
|
2675
|
+
};
|
|
2676
|
+
content: {
|
|
2677
|
+
"application/json": components["schemas"]["Error"];
|
|
2678
|
+
};
|
|
2679
|
+
};
|
|
2680
|
+
};
|
|
2681
|
+
};
|
|
2682
|
+
"get-user-preferences": {
|
|
2683
|
+
parameters: {
|
|
2684
|
+
query?: never;
|
|
2685
|
+
header?: never;
|
|
2686
|
+
path?: never;
|
|
2687
|
+
cookie?: never;
|
|
1714
2688
|
};
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
2689
|
+
requestBody?: never;
|
|
2690
|
+
responses: {
|
|
2691
|
+
/** @description OK */
|
|
2692
|
+
200: {
|
|
2693
|
+
headers: {
|
|
2694
|
+
[name: string]: unknown;
|
|
2695
|
+
};
|
|
2696
|
+
content: {
|
|
2697
|
+
"application/json": components["schemas"]["UserPreferencesBody"];
|
|
2698
|
+
};
|
|
2699
|
+
};
|
|
2700
|
+
/** @description Error */
|
|
2701
|
+
default: {
|
|
2702
|
+
headers: {
|
|
2703
|
+
[name: string]: unknown;
|
|
2704
|
+
};
|
|
2705
|
+
content: {
|
|
2706
|
+
"application/json": components["schemas"]["Error"];
|
|
2707
|
+
};
|
|
2708
|
+
};
|
|
1732
2709
|
};
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
2710
|
+
};
|
|
2711
|
+
"update-user-preferences": {
|
|
2712
|
+
parameters: {
|
|
2713
|
+
query?: never;
|
|
2714
|
+
header?: never;
|
|
2715
|
+
path?: never;
|
|
2716
|
+
cookie?: never;
|
|
1740
2717
|
};
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
/**
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
2718
|
+
requestBody: {
|
|
2719
|
+
content: {
|
|
2720
|
+
"application/json": components["schemas"]["UpdateUserPreferencesInputBody"];
|
|
2721
|
+
};
|
|
2722
|
+
};
|
|
2723
|
+
responses: {
|
|
2724
|
+
/** @description OK */
|
|
2725
|
+
200: {
|
|
2726
|
+
headers: {
|
|
2727
|
+
[name: string]: unknown;
|
|
2728
|
+
};
|
|
2729
|
+
content: {
|
|
2730
|
+
"application/json": components["schemas"]["UserPreferencesBody"];
|
|
2731
|
+
};
|
|
2732
|
+
};
|
|
2733
|
+
/** @description Error */
|
|
2734
|
+
default: {
|
|
2735
|
+
headers: {
|
|
2736
|
+
[name: string]: unknown;
|
|
2737
|
+
};
|
|
2738
|
+
content: {
|
|
2739
|
+
"application/json": components["schemas"]["Error"];
|
|
2740
|
+
};
|
|
2741
|
+
};
|
|
1753
2742
|
};
|
|
1754
2743
|
};
|
|
1755
|
-
responses: never;
|
|
1756
|
-
parameters: never;
|
|
1757
|
-
requestBodies: never;
|
|
1758
|
-
headers: never;
|
|
1759
|
-
pathItems: never;
|
|
1760
|
-
}
|
|
1761
|
-
export type $defs = Record<string, never>;
|
|
1762
|
-
export interface operations {
|
|
1763
2744
|
"list-agent-sessions": {
|
|
1764
2745
|
parameters: {
|
|
1765
2746
|
query?: never;
|
|
1766
|
-
header?:
|
|
2747
|
+
header?: {
|
|
2748
|
+
/** @description The ETag of a listing you hold. While nothing in it has changed, the answer is 304 with no body, and the machines are not asked to send their sessions again. */
|
|
2749
|
+
"If-None-Match"?: string;
|
|
2750
|
+
};
|
|
1767
2751
|
path?: never;
|
|
1768
2752
|
cookie?: never;
|
|
1769
2753
|
};
|
|
@@ -1772,6 +2756,8 @@ export interface operations {
|
|
|
1772
2756
|
/** @description OK */
|
|
1773
2757
|
200: {
|
|
1774
2758
|
headers: {
|
|
2759
|
+
"Cache-Control"?: string;
|
|
2760
|
+
ETag?: string;
|
|
1775
2761
|
[name: string]: unknown;
|
|
1776
2762
|
};
|
|
1777
2763
|
content: {
|
|
@@ -1789,6 +2775,43 @@ export interface operations {
|
|
|
1789
2775
|
};
|
|
1790
2776
|
};
|
|
1791
2777
|
};
|
|
2778
|
+
"list-agent-machine-directories": {
|
|
2779
|
+
parameters: {
|
|
2780
|
+
query?: {
|
|
2781
|
+
/** @description Directory to list: an absolute path, or one starting at ~ for the home directory, which an empty path lists. */
|
|
2782
|
+
path?: string;
|
|
2783
|
+
/** @description Keeps the folders whose names hold this text, in any case, those starting with it first. */
|
|
2784
|
+
filter?: string;
|
|
2785
|
+
};
|
|
2786
|
+
header?: never;
|
|
2787
|
+
path: {
|
|
2788
|
+
/** @description Machine id from the machines list. */
|
|
2789
|
+
machine: string;
|
|
2790
|
+
};
|
|
2791
|
+
cookie?: never;
|
|
2792
|
+
};
|
|
2793
|
+
requestBody?: never;
|
|
2794
|
+
responses: {
|
|
2795
|
+
/** @description OK */
|
|
2796
|
+
200: {
|
|
2797
|
+
headers: {
|
|
2798
|
+
[name: string]: unknown;
|
|
2799
|
+
};
|
|
2800
|
+
content: {
|
|
2801
|
+
"application/json": components["schemas"]["AgentDirectories"];
|
|
2802
|
+
};
|
|
2803
|
+
};
|
|
2804
|
+
/** @description Error */
|
|
2805
|
+
default: {
|
|
2806
|
+
headers: {
|
|
2807
|
+
[name: string]: unknown;
|
|
2808
|
+
};
|
|
2809
|
+
content: {
|
|
2810
|
+
"application/json": components["schemas"]["Error"];
|
|
2811
|
+
};
|
|
2812
|
+
};
|
|
2813
|
+
};
|
|
2814
|
+
};
|
|
1792
2815
|
"get-agent-workspace-palette": {
|
|
1793
2816
|
parameters: {
|
|
1794
2817
|
query: {
|
|
@@ -2133,8 +3156,14 @@ export interface operations {
|
|
|
2133
3156
|
};
|
|
2134
3157
|
"get-agent-session": {
|
|
2135
3158
|
parameters: {
|
|
2136
|
-
query?:
|
|
2137
|
-
|
|
3159
|
+
query?: {
|
|
3160
|
+
/** @description Set to refs, each image in the history that has a ref comes with empty data: its preview is read from the session's image route with preview=true. Previews are most of what a transcript with pictures weighs. A machine whose pw predates this sends every preview. */
|
|
3161
|
+
previews?: "refs";
|
|
3162
|
+
};
|
|
3163
|
+
header?: {
|
|
3164
|
+
/** @description The ETag of a transcript you hold. While the session has not changed, the answer is 304 with no body, and its machine does not send the transcript again. */
|
|
3165
|
+
"If-None-Match"?: string;
|
|
3166
|
+
};
|
|
2138
3167
|
path: {
|
|
2139
3168
|
/** @description Machine id from the machines list. */
|
|
2140
3169
|
machine: string;
|
|
@@ -2148,6 +3177,8 @@ export interface operations {
|
|
|
2148
3177
|
/** @description OK */
|
|
2149
3178
|
200: {
|
|
2150
3179
|
headers: {
|
|
3180
|
+
"Cache-Control"?: string;
|
|
3181
|
+
ETag?: string;
|
|
2151
3182
|
[name: string]: unknown;
|
|
2152
3183
|
};
|
|
2153
3184
|
content: {
|
|
@@ -2526,6 +3557,44 @@ export interface operations {
|
|
|
2526
3557
|
};
|
|
2527
3558
|
};
|
|
2528
3559
|
};
|
|
3560
|
+
"withdraw-agent-session-direction": {
|
|
3561
|
+
parameters: {
|
|
3562
|
+
query?: never;
|
|
3563
|
+
header?: never;
|
|
3564
|
+
path: {
|
|
3565
|
+
/** @description Machine id from the machines list. */
|
|
3566
|
+
machine: string;
|
|
3567
|
+
/** @description Session id as the daemon reports it. */
|
|
3568
|
+
id: string;
|
|
3569
|
+
};
|
|
3570
|
+
cookie?: never;
|
|
3571
|
+
};
|
|
3572
|
+
requestBody: {
|
|
3573
|
+
content: {
|
|
3574
|
+
"application/json": components["schemas"]["AgentDirectionWithdrawBody"];
|
|
3575
|
+
};
|
|
3576
|
+
};
|
|
3577
|
+
responses: {
|
|
3578
|
+
/** @description OK */
|
|
3579
|
+
200: {
|
|
3580
|
+
headers: {
|
|
3581
|
+
[name: string]: unknown;
|
|
3582
|
+
};
|
|
3583
|
+
content: {
|
|
3584
|
+
"application/json": components["schemas"]["AgentDirectionWithdrawn"];
|
|
3585
|
+
};
|
|
3586
|
+
};
|
|
3587
|
+
/** @description Error */
|
|
3588
|
+
default: {
|
|
3589
|
+
headers: {
|
|
3590
|
+
[name: string]: unknown;
|
|
3591
|
+
};
|
|
3592
|
+
content: {
|
|
3593
|
+
"application/json": components["schemas"]["Error"];
|
|
3594
|
+
};
|
|
3595
|
+
};
|
|
3596
|
+
};
|
|
3597
|
+
};
|
|
2529
3598
|
"fork-agent-session": {
|
|
2530
3599
|
parameters: {
|
|
2531
3600
|
query?: never;
|
|
@@ -2584,7 +3653,7 @@ export interface operations {
|
|
|
2584
3653
|
[name: string]: unknown;
|
|
2585
3654
|
};
|
|
2586
3655
|
content: {
|
|
2587
|
-
"application/json": components["schemas"]["
|
|
3656
|
+
"application/json": components["schemas"]["AgentGoalResult"];
|
|
2588
3657
|
};
|
|
2589
3658
|
};
|
|
2590
3659
|
/** @description Error */
|
|
@@ -3050,6 +4119,44 @@ export interface operations {
|
|
|
3050
4119
|
};
|
|
3051
4120
|
};
|
|
3052
4121
|
};
|
|
4122
|
+
"update-agent-session-settings": {
|
|
4123
|
+
parameters: {
|
|
4124
|
+
query?: never;
|
|
4125
|
+
header?: never;
|
|
4126
|
+
path: {
|
|
4127
|
+
/** @description Machine id from the machines list. */
|
|
4128
|
+
machine: string;
|
|
4129
|
+
/** @description Session id as the daemon reports it. */
|
|
4130
|
+
id: string;
|
|
4131
|
+
};
|
|
4132
|
+
cookie?: never;
|
|
4133
|
+
};
|
|
4134
|
+
requestBody: {
|
|
4135
|
+
content: {
|
|
4136
|
+
"application/json": components["schemas"]["AgentSessionSettingsBody"];
|
|
4137
|
+
};
|
|
4138
|
+
};
|
|
4139
|
+
responses: {
|
|
4140
|
+
/** @description OK */
|
|
4141
|
+
200: {
|
|
4142
|
+
headers: {
|
|
4143
|
+
[name: string]: unknown;
|
|
4144
|
+
};
|
|
4145
|
+
content: {
|
|
4146
|
+
"application/json": components["schemas"]["SessionState"];
|
|
4147
|
+
};
|
|
4148
|
+
};
|
|
4149
|
+
/** @description Error */
|
|
4150
|
+
default: {
|
|
4151
|
+
headers: {
|
|
4152
|
+
[name: string]: unknown;
|
|
4153
|
+
};
|
|
4154
|
+
content: {
|
|
4155
|
+
"application/json": components["schemas"]["Error"];
|
|
4156
|
+
};
|
|
4157
|
+
};
|
|
4158
|
+
};
|
|
4159
|
+
};
|
|
3053
4160
|
"run-agent-session-shell": {
|
|
3054
4161
|
parameters: {
|
|
3055
4162
|
query?: never;
|
|
@@ -3262,6 +4369,46 @@ export interface operations {
|
|
|
3262
4369
|
};
|
|
3263
4370
|
};
|
|
3264
4371
|
};
|
|
4372
|
+
"withdraw-agent-session-subagent-direction": {
|
|
4373
|
+
parameters: {
|
|
4374
|
+
query?: never;
|
|
4375
|
+
header?: never;
|
|
4376
|
+
path: {
|
|
4377
|
+
/** @description Machine id from the machines list. */
|
|
4378
|
+
machine: string;
|
|
4379
|
+
/** @description Session id as the daemon reports it. */
|
|
4380
|
+
id: string;
|
|
4381
|
+
/** @description Subagent id from the session's subagents. */
|
|
4382
|
+
subId: string;
|
|
4383
|
+
};
|
|
4384
|
+
cookie?: never;
|
|
4385
|
+
};
|
|
4386
|
+
requestBody: {
|
|
4387
|
+
content: {
|
|
4388
|
+
"application/json": components["schemas"]["AgentDirectionWithdrawBody"];
|
|
4389
|
+
};
|
|
4390
|
+
};
|
|
4391
|
+
responses: {
|
|
4392
|
+
/** @description OK */
|
|
4393
|
+
200: {
|
|
4394
|
+
headers: {
|
|
4395
|
+
[name: string]: unknown;
|
|
4396
|
+
};
|
|
4397
|
+
content: {
|
|
4398
|
+
"application/json": components["schemas"]["AgentDirectionWithdrawn"];
|
|
4399
|
+
};
|
|
4400
|
+
};
|
|
4401
|
+
/** @description Error */
|
|
4402
|
+
default: {
|
|
4403
|
+
headers: {
|
|
4404
|
+
[name: string]: unknown;
|
|
4405
|
+
};
|
|
4406
|
+
content: {
|
|
4407
|
+
"application/json": components["schemas"]["Error"];
|
|
4408
|
+
};
|
|
4409
|
+
};
|
|
4410
|
+
};
|
|
4411
|
+
};
|
|
3265
4412
|
"send-agent-session-subagent-message": {
|
|
3266
4413
|
parameters: {
|
|
3267
4414
|
query?: never;
|