@parallelworks/code 0.3.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 +598 -113
- 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 +3 -3
- package/dist/ago.js +10 -10
- package/dist/allocations.d.ts +41 -0
- package/dist/allocations.js +76 -0
- package/dist/api.d.ts +1080 -11
- package/dist/chatStrings.d.ts +188 -0
- package/dist/chatStrings.js +217 -0
- package/dist/claudeAccounts.d.ts +38 -1
- package/dist/claudeAccounts.js +98 -4
- package/dist/claudeApi.js +1 -1
- package/dist/claudeSignIn.d.ts +19 -1
- package/dist/claudeSignIn.js +12 -2
- package/dist/commandsApi.d.ts +11 -1
- package/dist/commandsApi.js +24 -5
- package/dist/createPwCodeApi.d.ts +44 -5
- package/dist/createPwCodeApi.js +18 -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/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 +27 -12
- package/dist/index.js +26 -12
- package/dist/loadError.d.ts +8 -0
- package/dist/loadError.js +19 -0
- package/dist/locales/en/agentTranscript.js +73 -12
- package/dist/locales/en/agents.js +71 -9
- package/dist/locales/en.d.ts +124 -8
- package/dist/locales/es/agentTranscript.js +73 -12
- package/dist/locales/es/agents.js +71 -9
- package/dist/locales/ja/agentTranscript.js +76 -15
- package/dist/locales/ja/agents.js +45 -120
- package/dist/locales/ko/agentTranscript.js +73 -12
- package/dist/locales/ko/agents.js +71 -9
- package/dist/locales/zh/agentTranscript.js +71 -10
- package/dist/locales/zh/agents.js +71 -9
- package/dist/machine.d.ts +2 -0
- package/dist/modelPicker.d.ts +79 -0
- package/dist/modelPicker.js +107 -0
- package/dist/notices.js +47 -19
- 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 +10 -2
- package/dist/pullRequestList.js +41 -22
- package/dist/query.d.ts +6 -2
- package/dist/query.js +85 -10
- package/dist/session.d.ts +5 -2
- package/dist/session.js +12 -8
- package/dist/sessionActions.d.ts +11 -1
- package/dist/sessionActions.js +14 -6
- package/dist/sessionEvents.d.ts +8 -3
- package/dist/sessionEvents.js +10 -5
- package/dist/sessionGroups.d.ts +3 -2
- package/dist/sessionGroups.js +4 -3
- package/dist/sessionList.d.ts +57 -9
- package/dist/sessionList.js +74 -12
- package/dist/sessionScreen.d.ts +193 -0
- package/dist/sessionScreen.js +213 -0
- package/dist/sessionsApi.d.ts +13 -3
- package/dist/sessionsApi.js +88 -29
- package/dist/settingsApi.d.ts +3 -1
- package/dist/startPage.d.ts +153 -0
- package/dist/startPage.js +174 -0
- package/dist/startSession.d.ts +41 -7
- package/dist/startSession.js +26 -4
- package/dist/transcript.js +48 -15
- package/dist/types.d.ts +11 -1
- package/dist/useComposer.d.ts +25 -1
- package/dist/useComposer.js +54 -3
- package/dist/useComposerImages.d.ts +5 -0
- package/dist/useComposerImages.js +24 -1
- package/dist/useComposerPastes.d.ts +70 -0
- package/dist/useComposerPastes.js +130 -0
- package/dist/useConversation.d.ts +10 -1
- package/dist/useConversation.js +32 -5
- package/dist/useSubagent.d.ts +49 -3
- package/dist/useSubagent.js +70 -7
- package/dist/useTranscript.d.ts +23 -3
- package/dist/useTranscript.js +76 -19
- package/dist/wording.js +2 -2
- package/dist/workingDirectories.d.ts +31 -0
- package/dist/workingDirectories.js +25 -1
- package/locales/en/agentTranscript.json +67 -11
- package/locales/en/agents.json +68 -8
- package/locales/es/agentTranscript.json +67 -11
- package/locales/es/agents.json +68 -8
- package/locales/ja/agentTranscript.json +70 -14
- package/locales/ja/agents.json +68 -8
- package/locales/ko/agentTranscript.json +67 -11
- package/locales/ko/agents.json +68 -8
- package/locales/zh/agentTranscript.json +65 -9
- package/locales/zh/agents.json +68 -8
- 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;
|
|
@@ -876,6 +1048,28 @@ export interface paths {
|
|
|
876
1048
|
patch?: never;
|
|
877
1049
|
trace?: never;
|
|
878
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
|
+
};
|
|
879
1073
|
"/api/code/machines/{machine}/sessions/{id}/subagents/{subId}/messages": {
|
|
880
1074
|
parameters: {
|
|
881
1075
|
query?: never;
|
|
@@ -997,7 +1191,7 @@ export interface webhooks {
|
|
|
997
1191
|
};
|
|
998
1192
|
/**
|
|
999
1193
|
* pw code session event feed
|
|
1000
|
-
* @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.
|
|
1001
1195
|
*/
|
|
1002
1196
|
get: operations["agent-session-events"];
|
|
1003
1197
|
put?: never;
|
|
@@ -1106,6 +1300,51 @@ export interface components {
|
|
|
1106
1300
|
AgentDirectionDelivered: {
|
|
1107
1301
|
/** @description False when no turn was running to take the text; send it as a message instead. */
|
|
1108
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;
|
|
1109
1348
|
};
|
|
1110
1349
|
AgentImageBody: {
|
|
1111
1350
|
/** @description The image, base64. Up to 6MiB. */
|
|
@@ -1150,6 +1389,8 @@ export interface components {
|
|
|
1150
1389
|
claudeLogin?: boolean;
|
|
1151
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. */
|
|
1152
1391
|
daemonId?: string;
|
|
1392
|
+
/** @description The daemon lists the machine's folders, for choosing where a session starts. */
|
|
1393
|
+
directories?: boolean;
|
|
1153
1394
|
error?: string;
|
|
1154
1395
|
/** @description Hostname the daemon reported, when it answered. */
|
|
1155
1396
|
hostname?: string;
|
|
@@ -1456,6 +1697,130 @@ export interface components {
|
|
|
1456
1697
|
*/
|
|
1457
1698
|
outcome: "left" | "removed" | "remove_failed";
|
|
1458
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
|
+
};
|
|
1459
1824
|
AllowedDirectory: {
|
|
1460
1825
|
edit?: boolean;
|
|
1461
1826
|
path: string;
|
|
@@ -1515,6 +1880,51 @@ export interface components {
|
|
|
1515
1880
|
question?: string;
|
|
1516
1881
|
text?: string;
|
|
1517
1882
|
};
|
|
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 */
|
|
1891
|
+
id: string;
|
|
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
|
+
};
|
|
1518
1928
|
ClaudeLogin: {
|
|
1519
1929
|
account: string;
|
|
1520
1930
|
email?: string;
|
|
@@ -1526,6 +1936,32 @@ export interface components {
|
|
|
1526
1936
|
/** @enum {string} */
|
|
1527
1937
|
status: "running" | "checking" | "signed_in" | "failed" | "canceled" | "expired";
|
|
1528
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;
|
|
1964
|
+
};
|
|
1529
1965
|
CreateSessionBody: {
|
|
1530
1966
|
/** @description Allocation to bill the session to. Required for org provider models. */
|
|
1531
1967
|
allocation?: string;
|
|
@@ -1548,6 +1984,21 @@ export interface components {
|
|
|
1548
1984
|
/** @description Absolute path on the machine to run in. Offer the caller workspaces their existing sessions already use. */
|
|
1549
1985
|
workspace: string;
|
|
1550
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
|
+
};
|
|
1551
2002
|
Error: {
|
|
1552
2003
|
/** @description Stable, machine-readable error code, for clients to show a localized message. Every error carries one. Documented at /problems/. */
|
|
1553
2004
|
code?: string;
|
|
@@ -1562,6 +2013,14 @@ export interface components {
|
|
|
1562
2013
|
[key: string]: unknown;
|
|
1563
2014
|
};
|
|
1564
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
|
+
};
|
|
1565
2024
|
GoalProgress: {
|
|
1566
2025
|
condition?: string;
|
|
1567
2026
|
/** Format: int64 */
|
|
@@ -1576,6 +2035,8 @@ export interface components {
|
|
|
1576
2035
|
tokens?: number;
|
|
1577
2036
|
/** Format: int64 */
|
|
1578
2037
|
turns?: number;
|
|
2038
|
+
/** Format: int64 */
|
|
2039
|
+
waitedMs?: number;
|
|
1579
2040
|
};
|
|
1580
2041
|
GoalStatus: {
|
|
1581
2042
|
active?: boolean;
|
|
@@ -1587,6 +2048,8 @@ export interface components {
|
|
|
1587
2048
|
HistoryItem: {
|
|
1588
2049
|
callId?: string;
|
|
1589
2050
|
decision?: components["schemas"]["ToolDecision"];
|
|
2051
|
+
/** Format: int64 */
|
|
2052
|
+
durationMs?: number;
|
|
1590
2053
|
fromMain?: boolean;
|
|
1591
2054
|
images?: components["schemas"]["ImageContent"][] | null;
|
|
1592
2055
|
/** @enum {string} */
|
|
@@ -1603,11 +2066,15 @@ export interface components {
|
|
|
1603
2066
|
};
|
|
1604
2067
|
ImageContent: {
|
|
1605
2068
|
data: string;
|
|
2069
|
+
/** Format: int64 */
|
|
2070
|
+
height?: number;
|
|
1606
2071
|
mime: string;
|
|
1607
2072
|
originalMime?: string;
|
|
1608
2073
|
/** Format: int64 */
|
|
1609
2074
|
originalSize?: number;
|
|
1610
2075
|
ref?: string;
|
|
2076
|
+
/** Format: int64 */
|
|
2077
|
+
width?: number;
|
|
1611
2078
|
};
|
|
1612
2079
|
MCPStatus: {
|
|
1613
2080
|
err?: string;
|
|
@@ -1617,11 +2084,136 @@ export interface components {
|
|
|
1617
2084
|
/** Format: int64 */
|
|
1618
2085
|
tools?: number;
|
|
1619
2086
|
};
|
|
1620
|
-
|
|
1621
|
-
/**
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
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
|
+
};
|
|
2212
|
+
PasteRef: {
|
|
2213
|
+
/** Format: int64 */
|
|
2214
|
+
id: number;
|
|
2215
|
+
placeholder: string;
|
|
2216
|
+
};
|
|
1625
2217
|
PasteView: {
|
|
1626
2218
|
/** Format: int64 */
|
|
1627
2219
|
bytes: number;
|
|
@@ -1633,6 +2225,39 @@ export interface components {
|
|
|
1633
2225
|
placeholder: string;
|
|
1634
2226
|
text?: string;
|
|
1635
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
|
+
};
|
|
1636
2261
|
RemotePolicy: {
|
|
1637
2262
|
maxPermissionMode: string;
|
|
1638
2263
|
newSessions: boolean;
|
|
@@ -1660,6 +2285,8 @@ export interface components {
|
|
|
1660
2285
|
autoCompactWindow?: number;
|
|
1661
2286
|
autoName?: string;
|
|
1662
2287
|
/** Format: int64 */
|
|
2288
|
+
backgroundMonitors?: number;
|
|
2289
|
+
/** Format: int64 */
|
|
1663
2290
|
backgroundShells?: number;
|
|
1664
2291
|
claudeAccount?: string;
|
|
1665
2292
|
effectiveAllocation?: string;
|
|
@@ -1752,6 +2379,21 @@ export interface components {
|
|
|
1752
2379
|
/** Format: int64 */
|
|
1753
2380
|
outputTokens?: number;
|
|
1754
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
|
+
};
|
|
1755
2397
|
ToolDecision: {
|
|
1756
2398
|
action?: string;
|
|
1757
2399
|
answers?: components["schemas"]["AskQuestionAnswer"][] | null;
|
|
@@ -1791,6 +2433,44 @@ export interface components {
|
|
|
1791
2433
|
outputTokens?: number;
|
|
1792
2434
|
skills?: string[] | null;
|
|
1793
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
|
+
};
|
|
1794
2474
|
};
|
|
1795
2475
|
responses: never;
|
|
1796
2476
|
parameters: never;
|
|
@@ -1800,7 +2480,177 @@ export interface components {
|
|
|
1800
2480
|
}
|
|
1801
2481
|
export type $defs = Record<string, never>;
|
|
1802
2482
|
export interface operations {
|
|
1803
|
-
|
|
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": {
|
|
1804
2654
|
parameters: {
|
|
1805
2655
|
query?: never;
|
|
1806
2656
|
header?: never;
|
|
@@ -1814,6 +2664,102 @@ export interface operations {
|
|
|
1814
2664
|
headers: {
|
|
1815
2665
|
[name: string]: unknown;
|
|
1816
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;
|
|
2688
|
+
};
|
|
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
|
+
};
|
|
2709
|
+
};
|
|
2710
|
+
};
|
|
2711
|
+
"update-user-preferences": {
|
|
2712
|
+
parameters: {
|
|
2713
|
+
query?: never;
|
|
2714
|
+
header?: never;
|
|
2715
|
+
path?: never;
|
|
2716
|
+
cookie?: never;
|
|
2717
|
+
};
|
|
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
|
+
};
|
|
2742
|
+
};
|
|
2743
|
+
};
|
|
2744
|
+
"list-agent-sessions": {
|
|
2745
|
+
parameters: {
|
|
2746
|
+
query?: never;
|
|
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
|
+
};
|
|
2751
|
+
path?: never;
|
|
2752
|
+
cookie?: never;
|
|
2753
|
+
};
|
|
2754
|
+
requestBody?: never;
|
|
2755
|
+
responses: {
|
|
2756
|
+
/** @description OK */
|
|
2757
|
+
200: {
|
|
2758
|
+
headers: {
|
|
2759
|
+
"Cache-Control"?: string;
|
|
2760
|
+
ETag?: string;
|
|
2761
|
+
[name: string]: unknown;
|
|
2762
|
+
};
|
|
1817
2763
|
content: {
|
|
1818
2764
|
"application/json": components["schemas"]["AgentSessionsResponse"];
|
|
1819
2765
|
};
|
|
@@ -1829,6 +2775,43 @@ export interface operations {
|
|
|
1829
2775
|
};
|
|
1830
2776
|
};
|
|
1831
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
|
+
};
|
|
1832
2815
|
"get-agent-workspace-palette": {
|
|
1833
2816
|
parameters: {
|
|
1834
2817
|
query: {
|
|
@@ -2173,8 +3156,14 @@ export interface operations {
|
|
|
2173
3156
|
};
|
|
2174
3157
|
"get-agent-session": {
|
|
2175
3158
|
parameters: {
|
|
2176
|
-
query?:
|
|
2177
|
-
|
|
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
|
+
};
|
|
2178
3167
|
path: {
|
|
2179
3168
|
/** @description Machine id from the machines list. */
|
|
2180
3169
|
machine: string;
|
|
@@ -2188,6 +3177,8 @@ export interface operations {
|
|
|
2188
3177
|
/** @description OK */
|
|
2189
3178
|
200: {
|
|
2190
3179
|
headers: {
|
|
3180
|
+
"Cache-Control"?: string;
|
|
3181
|
+
ETag?: string;
|
|
2191
3182
|
[name: string]: unknown;
|
|
2192
3183
|
};
|
|
2193
3184
|
content: {
|
|
@@ -2566,6 +3557,44 @@ export interface operations {
|
|
|
2566
3557
|
};
|
|
2567
3558
|
};
|
|
2568
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
|
+
};
|
|
2569
3598
|
"fork-agent-session": {
|
|
2570
3599
|
parameters: {
|
|
2571
3600
|
query?: never;
|
|
@@ -2624,7 +3653,7 @@ export interface operations {
|
|
|
2624
3653
|
[name: string]: unknown;
|
|
2625
3654
|
};
|
|
2626
3655
|
content: {
|
|
2627
|
-
"application/json": components["schemas"]["
|
|
3656
|
+
"application/json": components["schemas"]["AgentGoalResult"];
|
|
2628
3657
|
};
|
|
2629
3658
|
};
|
|
2630
3659
|
/** @description Error */
|
|
@@ -3340,6 +4369,46 @@ export interface operations {
|
|
|
3340
4369
|
};
|
|
3341
4370
|
};
|
|
3342
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
|
+
};
|
|
3343
4412
|
"send-agent-session-subagent-message": {
|
|
3344
4413
|
parameters: {
|
|
3345
4414
|
query?: never;
|