@ellipsis-dev/sdk 0.2.3 → 0.3.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/dist/index.d.ts +12 -3
- package/dist/index.js +34 -0
- package/dist/store/index.d.ts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/{types-CNx-q_eN.d.ts → types-C63IVgov.d.ts} +1021 -1
- package/package.json +1 -1
- package/schema/lifecycle.schema.json +44 -0
- package/schema/openapi.v1.json +2635 -553
package/schema/openapi.v1.json
CHANGED
|
@@ -1,309 +1,365 @@
|
|
|
1
1
|
{
|
|
2
2
|
"components": {
|
|
3
3
|
"schemas": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"enum": [
|
|
7
|
-
"completed",
|
|
8
|
-
"budget_hit",
|
|
9
|
-
"payment_required",
|
|
10
|
-
"tool_call_failed",
|
|
11
|
-
"lifecycle_hook_failed",
|
|
12
|
-
"missing_repo_access",
|
|
13
|
-
"missing_token_permissions",
|
|
14
|
-
"cancelled",
|
|
15
|
-
"interrupted",
|
|
16
|
-
"error",
|
|
17
|
-
"stopped"
|
|
18
|
-
],
|
|
19
|
-
"title": "AgentSessionExitStatus",
|
|
20
|
-
"type": "string"
|
|
21
|
-
},
|
|
22
|
-
"AgentSessionPr": {
|
|
23
|
-
"description": "A pull request this session created, denormalized at capture time so\nsession surfaces render a labeled link without joining gh_prs. Live PR\nstate (open/merged/closed) is not stored here \u2014 read it from gh_prs where\na view needs it.",
|
|
4
|
+
"AgentConfig": {
|
|
5
|
+
"additionalProperties": false,
|
|
24
6
|
"properties": {
|
|
25
|
-
"
|
|
7
|
+
"budget": {
|
|
8
|
+
"$ref": "#/components/schemas/AgentConfigBudget",
|
|
9
|
+
"default": {}
|
|
10
|
+
},
|
|
11
|
+
"claude": {
|
|
12
|
+
"$ref": "#/components/schemas/AgentConfigClaude",
|
|
13
|
+
"default": {
|
|
14
|
+
"model": "claude-opus-5",
|
|
15
|
+
"system": ""
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"ellipsis": {
|
|
19
|
+
"$ref": "#/components/schemas/AgentConfigEllipsis",
|
|
20
|
+
"default": {
|
|
21
|
+
"enabled": true,
|
|
22
|
+
"ide": true,
|
|
23
|
+
"interactive": true,
|
|
24
|
+
"metadata": {
|
|
25
|
+
"annotations": {},
|
|
26
|
+
"labels": []
|
|
27
|
+
},
|
|
28
|
+
"version": "v1"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"mcp_servers": {
|
|
32
|
+
"default": [],
|
|
33
|
+
"items": {
|
|
34
|
+
"anyOf": [
|
|
35
|
+
{
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"$ref": "#/components/schemas/AgentConfigMcpServer"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"title": "Mcp Servers",
|
|
44
|
+
"type": "array"
|
|
45
|
+
},
|
|
46
|
+
"sandbox": {
|
|
47
|
+
"$ref": "#/components/schemas/AgentConfigSandbox",
|
|
48
|
+
"default": {
|
|
49
|
+
"compute": {},
|
|
50
|
+
"github": {},
|
|
51
|
+
"hooks": {},
|
|
52
|
+
"image": {},
|
|
53
|
+
"ports": [
|
|
54
|
+
3000,
|
|
55
|
+
5173,
|
|
56
|
+
8000,
|
|
57
|
+
8080
|
|
58
|
+
],
|
|
59
|
+
"repositories": [],
|
|
60
|
+
"variables": []
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"skills": {
|
|
64
|
+
"default": [],
|
|
65
|
+
"items": {
|
|
66
|
+
"$ref": "#/components/schemas/AgentConfigSkill"
|
|
67
|
+
},
|
|
68
|
+
"title": "Skills",
|
|
69
|
+
"type": "array"
|
|
70
|
+
},
|
|
71
|
+
"structured_output": {
|
|
26
72
|
"anyOf": [
|
|
27
73
|
{
|
|
28
|
-
"
|
|
74
|
+
"$ref": "#/components/schemas/AgentConfigStructuredOutput"
|
|
29
75
|
},
|
|
30
76
|
{
|
|
31
77
|
"type": "null"
|
|
32
78
|
}
|
|
33
|
-
]
|
|
34
|
-
"title": "Gh Pr Id"
|
|
35
|
-
},
|
|
36
|
-
"number": {
|
|
37
|
-
"title": "Number",
|
|
38
|
-
"type": "integer"
|
|
39
|
-
},
|
|
40
|
-
"repo_full_name": {
|
|
41
|
-
"title": "Repo Full Name",
|
|
42
|
-
"type": "string"
|
|
79
|
+
]
|
|
43
80
|
},
|
|
44
|
-
"
|
|
81
|
+
"trigger": {
|
|
45
82
|
"anyOf": [
|
|
46
83
|
{
|
|
47
|
-
"
|
|
84
|
+
"discriminator": {
|
|
85
|
+
"mapping": {
|
|
86
|
+
"cron": "#/components/schemas/AgentConfigCronTrigger",
|
|
87
|
+
"mention": "#/components/schemas/AgentConfigMentionTrigger",
|
|
88
|
+
"react": "#/components/schemas/AgentConfigReactTrigger"
|
|
89
|
+
},
|
|
90
|
+
"propertyName": "type"
|
|
91
|
+
},
|
|
92
|
+
"oneOf": [
|
|
93
|
+
{
|
|
94
|
+
"$ref": "#/components/schemas/AgentConfigCronTrigger"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"$ref": "#/components/schemas/AgentConfigReactTrigger"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"$ref": "#/components/schemas/AgentConfigMentionTrigger"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
48
103
|
},
|
|
49
104
|
{
|
|
50
105
|
"type": "null"
|
|
51
106
|
}
|
|
52
107
|
],
|
|
53
|
-
"title": "
|
|
54
|
-
},
|
|
55
|
-
"url": {
|
|
56
|
-
"title": "Url",
|
|
57
|
-
"type": "string"
|
|
108
|
+
"title": "Trigger"
|
|
58
109
|
}
|
|
59
110
|
},
|
|
60
|
-
"
|
|
61
|
-
"repo_full_name",
|
|
62
|
-
"number",
|
|
63
|
-
"url"
|
|
64
|
-
],
|
|
65
|
-
"title": "AgentSessionPr",
|
|
111
|
+
"title": "AgentConfig",
|
|
66
112
|
"type": "object"
|
|
67
113
|
},
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"react",
|
|
71
|
-
"manual",
|
|
72
|
-
"api",
|
|
73
|
-
"cli",
|
|
74
|
-
"mention",
|
|
75
|
-
"cron",
|
|
76
|
-
"laptop"
|
|
77
|
-
],
|
|
78
|
-
"title": "AgentSessionSource",
|
|
79
|
-
"type": "string"
|
|
80
|
-
},
|
|
81
|
-
"AgentSessionStatus": {
|
|
82
|
-
"enum": [
|
|
83
|
-
"scheduled",
|
|
84
|
-
"creating_sandbox",
|
|
85
|
-
"running",
|
|
86
|
-
"retrying",
|
|
87
|
-
"completed",
|
|
88
|
-
"error",
|
|
89
|
-
"cancelled",
|
|
90
|
-
"stopped"
|
|
91
|
-
],
|
|
92
|
-
"title": "AgentSessionStatus",
|
|
93
|
-
"type": "string"
|
|
94
|
-
},
|
|
95
|
-
"AgentSessionWire": {
|
|
114
|
+
"AgentConfigBudget": {
|
|
115
|
+
"additionalProperties": false,
|
|
96
116
|
"properties": {
|
|
97
|
-
"
|
|
117
|
+
"day": {
|
|
98
118
|
"anyOf": [
|
|
99
119
|
{
|
|
100
|
-
"type": "
|
|
120
|
+
"type": "number"
|
|
101
121
|
},
|
|
102
122
|
{
|
|
103
123
|
"type": "null"
|
|
104
124
|
}
|
|
105
125
|
],
|
|
106
|
-
"title": "
|
|
126
|
+
"title": "Day"
|
|
107
127
|
},
|
|
108
|
-
"
|
|
128
|
+
"month": {
|
|
109
129
|
"anyOf": [
|
|
110
130
|
{
|
|
111
|
-
"
|
|
131
|
+
"type": "number"
|
|
112
132
|
},
|
|
113
133
|
{
|
|
114
134
|
"type": "null"
|
|
115
135
|
}
|
|
116
|
-
]
|
|
136
|
+
],
|
|
137
|
+
"title": "Month"
|
|
117
138
|
},
|
|
118
|
-
"
|
|
139
|
+
"session": {
|
|
119
140
|
"anyOf": [
|
|
120
141
|
{
|
|
121
|
-
"type": "
|
|
142
|
+
"type": "number"
|
|
122
143
|
},
|
|
123
144
|
{
|
|
124
145
|
"type": "null"
|
|
125
146
|
}
|
|
126
147
|
],
|
|
127
|
-
"title": "
|
|
148
|
+
"title": "Session"
|
|
128
149
|
},
|
|
129
|
-
"
|
|
150
|
+
"week": {
|
|
130
151
|
"anyOf": [
|
|
131
152
|
{
|
|
132
|
-
"
|
|
153
|
+
"type": "number"
|
|
133
154
|
},
|
|
134
155
|
{
|
|
135
156
|
"type": "null"
|
|
136
157
|
}
|
|
137
|
-
]
|
|
138
|
-
|
|
139
|
-
|
|
158
|
+
],
|
|
159
|
+
"title": "Week"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"title": "AgentConfigBudget",
|
|
163
|
+
"type": "object"
|
|
164
|
+
},
|
|
165
|
+
"AgentConfigClaude": {
|
|
166
|
+
"additionalProperties": false,
|
|
167
|
+
"properties": {
|
|
168
|
+
"effort": {
|
|
140
169
|
"anyOf": [
|
|
141
170
|
{
|
|
142
|
-
"
|
|
171
|
+
"$ref": "#/components/schemas/EffortLevel"
|
|
143
172
|
},
|
|
144
173
|
{
|
|
145
174
|
"type": "null"
|
|
146
175
|
}
|
|
147
|
-
]
|
|
148
|
-
"title": "Client Version"
|
|
176
|
+
]
|
|
149
177
|
},
|
|
150
|
-
"
|
|
178
|
+
"fallback_model": {
|
|
151
179
|
"anyOf": [
|
|
152
180
|
{
|
|
153
|
-
"
|
|
154
|
-
"type": "object"
|
|
181
|
+
"type": "string"
|
|
155
182
|
},
|
|
156
183
|
{
|
|
157
184
|
"type": "null"
|
|
158
185
|
}
|
|
159
186
|
],
|
|
160
|
-
"title": "
|
|
187
|
+
"title": "Fallback Model"
|
|
161
188
|
},
|
|
162
|
-
"
|
|
189
|
+
"max_turns": {
|
|
163
190
|
"anyOf": [
|
|
164
191
|
{
|
|
165
|
-
"
|
|
192
|
+
"exclusiveMinimum": 0.0,
|
|
193
|
+
"type": "integer"
|
|
166
194
|
},
|
|
167
195
|
{
|
|
168
196
|
"type": "null"
|
|
169
197
|
}
|
|
170
198
|
],
|
|
171
|
-
"title": "
|
|
172
|
-
},
|
|
173
|
-
"cost_fee": {
|
|
174
|
-
"default": 0,
|
|
175
|
-
"title": "Cost Fee",
|
|
176
|
-
"type": "integer"
|
|
177
|
-
},
|
|
178
|
-
"cost_sandbox_cpu": {
|
|
179
|
-
"default": 0,
|
|
180
|
-
"title": "Cost Sandbox Cpu",
|
|
181
|
-
"type": "integer"
|
|
182
|
-
},
|
|
183
|
-
"cost_sandbox_memory": {
|
|
184
|
-
"default": 0,
|
|
185
|
-
"title": "Cost Sandbox Memory",
|
|
186
|
-
"type": "integer"
|
|
187
|
-
},
|
|
188
|
-
"cost_tokens": {
|
|
189
|
-
"title": "Cost Tokens",
|
|
190
|
-
"type": "integer"
|
|
191
|
-
},
|
|
192
|
-
"created_at": {
|
|
193
|
-
"format": "date-time",
|
|
194
|
-
"title": "Created At",
|
|
195
|
-
"type": "string"
|
|
199
|
+
"title": "Max Turns"
|
|
196
200
|
},
|
|
197
|
-
"
|
|
198
|
-
"
|
|
201
|
+
"model": {
|
|
202
|
+
"default": "claude-opus-5",
|
|
203
|
+
"title": "Model",
|
|
199
204
|
"type": "string"
|
|
200
205
|
},
|
|
201
|
-
"
|
|
206
|
+
"settings": {
|
|
202
207
|
"anyOf": [
|
|
203
208
|
{
|
|
204
|
-
"$ref": "#/components/schemas/
|
|
209
|
+
"$ref": "#/components/schemas/AgentConfigSettingsRef"
|
|
205
210
|
},
|
|
206
211
|
{
|
|
207
212
|
"type": "null"
|
|
208
213
|
}
|
|
209
214
|
]
|
|
210
215
|
},
|
|
211
|
-
"
|
|
216
|
+
"system": {
|
|
212
217
|
"anyOf": [
|
|
213
218
|
{
|
|
214
|
-
"
|
|
219
|
+
"type": "string"
|
|
215
220
|
},
|
|
216
221
|
{
|
|
217
|
-
"
|
|
222
|
+
"$ref": "#/components/schemas/AgentConfigSystemFileRef"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"items": {
|
|
226
|
+
"anyOf": [
|
|
227
|
+
{
|
|
228
|
+
"type": "string"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"$ref": "#/components/schemas/AgentConfigSystemFileRef"
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
"type": "array"
|
|
218
236
|
}
|
|
219
|
-
]
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
237
|
+
],
|
|
238
|
+
"default": "",
|
|
239
|
+
"title": "System"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"title": "AgentConfigClaude",
|
|
243
|
+
"type": "object"
|
|
244
|
+
},
|
|
245
|
+
"AgentConfigCompute": {
|
|
246
|
+
"additionalProperties": false,
|
|
247
|
+
"description": "Sandbox compute sizing. Every field is optional; None inherits the\nplatform default (1 vCPU / 4096 MiB / 3600s \u2014 see DEFAULT_MODAL_* in\nmodels/ellipsis/sandboxes/sandbox.py). A resolved value outside the platform\nbounds fails validation loudly (a sync error on the config) rather than\nbeing clamped silently.\n\n`memory` and `timeout` each accept a shorthand string (\"8GB\", \"30m\") or an\nexplicit units object ({gb: 8}, {minutes: 30}); the `memory_mib` /\n`timeout_seconds` properties resolve either form to the canonical integer\nthe sandbox driver consumes.\n\n`timeout` is the max wall-clock the agent may run before the sandbox is\nkilled, capped at 1h (MAX_SANDBOX_TIMEOUT_SECONDS \u2014 equal to the default, so\ntoday the knob only shortens a session; the cap matches the 1-hour validity\nof the sandbox's GitHub token). The worker's lease/visibility heartbeat\nceiling is derived from that cap, so a run at the max stays owned by its\nworker for its whole life.\n\nCompute is billed on the requested allocation over the sandbox's\nwall-clock lifetime, so a bigger/longer box costs proportionally more.",
|
|
248
|
+
"properties": {
|
|
249
|
+
"cpu": {
|
|
229
250
|
"anyOf": [
|
|
230
251
|
{
|
|
231
|
-
"
|
|
232
|
-
"
|
|
252
|
+
"maximum": 16.0,
|
|
253
|
+
"minimum": 0.125,
|
|
254
|
+
"type": "number"
|
|
233
255
|
},
|
|
234
256
|
{
|
|
235
257
|
"type": "null"
|
|
236
258
|
}
|
|
237
259
|
],
|
|
238
|
-
"title": "
|
|
260
|
+
"title": "Cpu"
|
|
239
261
|
},
|
|
240
|
-
"
|
|
262
|
+
"memory": {
|
|
241
263
|
"anyOf": [
|
|
242
264
|
{
|
|
243
|
-
"format": "date-time",
|
|
244
265
|
"type": "string"
|
|
245
266
|
},
|
|
267
|
+
{
|
|
268
|
+
"$ref": "#/components/schemas/AgentConfigMemorySize"
|
|
269
|
+
},
|
|
246
270
|
{
|
|
247
271
|
"type": "null"
|
|
248
272
|
}
|
|
249
273
|
],
|
|
250
|
-
"title": "
|
|
274
|
+
"title": "Memory"
|
|
251
275
|
},
|
|
252
|
-
"
|
|
276
|
+
"timeout": {
|
|
253
277
|
"anyOf": [
|
|
254
278
|
{
|
|
255
279
|
"type": "string"
|
|
256
280
|
},
|
|
281
|
+
{
|
|
282
|
+
"$ref": "#/components/schemas/AgentConfigDuration"
|
|
283
|
+
},
|
|
257
284
|
{
|
|
258
285
|
"type": "null"
|
|
259
286
|
}
|
|
260
287
|
],
|
|
261
|
-
"title": "
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
288
|
+
"title": "Timeout"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"title": "AgentConfigCompute",
|
|
292
|
+
"type": "object"
|
|
293
|
+
},
|
|
294
|
+
"AgentConfigCronTrigger": {
|
|
295
|
+
"additionalProperties": false,
|
|
296
|
+
"properties": {
|
|
297
|
+
"schedule": {
|
|
298
|
+
"title": "Schedule",
|
|
299
|
+
"type": "string"
|
|
270
300
|
},
|
|
271
|
-
"
|
|
301
|
+
"type": {
|
|
302
|
+
"const": "cron",
|
|
303
|
+
"default": "cron",
|
|
304
|
+
"title": "Type",
|
|
305
|
+
"type": "string"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"required": [
|
|
309
|
+
"schedule"
|
|
310
|
+
],
|
|
311
|
+
"title": "AgentConfigCronTrigger",
|
|
312
|
+
"type": "object"
|
|
313
|
+
},
|
|
314
|
+
"AgentConfigDuration": {
|
|
315
|
+
"additionalProperties": false,
|
|
316
|
+
"description": "A duration as explicit units, summed. Set any of `hours`/`minutes`/\n`seconds` (at least one). The alternative to the `30m`-style shorthand\nstring wherever a duration is accepted.",
|
|
317
|
+
"properties": {
|
|
318
|
+
"hours": {
|
|
272
319
|
"anyOf": [
|
|
273
320
|
{
|
|
274
|
-
"
|
|
275
|
-
|
|
276
|
-
},
|
|
277
|
-
"type": "array"
|
|
321
|
+
"minimum": 0.0,
|
|
322
|
+
"type": "integer"
|
|
278
323
|
},
|
|
279
324
|
{
|
|
280
325
|
"type": "null"
|
|
281
326
|
}
|
|
282
327
|
],
|
|
283
|
-
"title": "
|
|
328
|
+
"title": "Hours"
|
|
284
329
|
},
|
|
285
|
-
"
|
|
330
|
+
"minutes": {
|
|
286
331
|
"anyOf": [
|
|
287
332
|
{
|
|
288
|
-
"
|
|
333
|
+
"minimum": 0.0,
|
|
334
|
+
"type": "integer"
|
|
289
335
|
},
|
|
290
336
|
{
|
|
291
337
|
"type": "null"
|
|
292
338
|
}
|
|
293
339
|
],
|
|
294
|
-
"title": "
|
|
340
|
+
"title": "Minutes"
|
|
295
341
|
},
|
|
296
|
-
"
|
|
342
|
+
"seconds": {
|
|
297
343
|
"anyOf": [
|
|
298
344
|
{
|
|
299
|
-
"
|
|
345
|
+
"minimum": 0.0,
|
|
346
|
+
"type": "integer"
|
|
300
347
|
},
|
|
301
348
|
{
|
|
302
349
|
"type": "null"
|
|
303
350
|
}
|
|
304
|
-
]
|
|
305
|
-
|
|
306
|
-
|
|
351
|
+
],
|
|
352
|
+
"title": "Seconds"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"title": "AgentConfigDuration",
|
|
356
|
+
"type": "object"
|
|
357
|
+
},
|
|
358
|
+
"AgentConfigEllipsis": {
|
|
359
|
+
"additionalProperties": false,
|
|
360
|
+
"description": "The Ellipsis product namespace for a config file: which schema this is\n(`version`), the human-facing identity (`name`/`description`), freeform\norganizational `metadata`, whether the agent is `enabled`, and the two\nhuman-access flags (`interactive`/`ide`). The presence of a top-level\n`ellipsis:` mapping is what marks a YAML file as an Ellipsis agent config (vs\narbitrary YAML that merely lives under a config directory) \u2014 see\n`yaml_is_ellipsis_config`.\n\n`enabled`/`interactive`/`ide` are agent behavior, not freeform metadata, so\nthey stay inside the config `sha` (only `metadata` is sha-excluded).\n`interactive` and `ide` are sibling human-access flags: `interactive` lets a\nhuman `agent session connect` to a live session (CLI relay); `ide` lets a\nhuman open an editor / a port URL into the sandbox. Neither decides whether a\nsession is ephemeral or durable \u2014 that is the trigger's job.",
|
|
361
|
+
"properties": {
|
|
362
|
+
"description": {
|
|
307
363
|
"anyOf": [
|
|
308
364
|
{
|
|
309
365
|
"type": "string"
|
|
@@ -312,156 +368,242 @@
|
|
|
312
368
|
"type": "null"
|
|
313
369
|
}
|
|
314
370
|
],
|
|
315
|
-
"title": "
|
|
371
|
+
"title": "Description"
|
|
316
372
|
},
|
|
317
|
-
"
|
|
318
|
-
"
|
|
373
|
+
"enabled": {
|
|
374
|
+
"default": true,
|
|
375
|
+
"title": "Enabled",
|
|
376
|
+
"type": "boolean"
|
|
319
377
|
},
|
|
320
|
-
"
|
|
321
|
-
"
|
|
322
|
-
|
|
378
|
+
"ide": {
|
|
379
|
+
"default": true,
|
|
380
|
+
"title": "Ide",
|
|
381
|
+
"type": "boolean"
|
|
382
|
+
},
|
|
383
|
+
"interactive": {
|
|
384
|
+
"default": true,
|
|
385
|
+
"title": "Interactive",
|
|
386
|
+
"type": "boolean"
|
|
387
|
+
},
|
|
388
|
+
"metadata": {
|
|
389
|
+
"$ref": "#/components/schemas/AgentConfigMetadata",
|
|
390
|
+
"default": {
|
|
391
|
+
"annotations": {},
|
|
392
|
+
"labels": []
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"name": {
|
|
396
|
+
"anyOf": [
|
|
397
|
+
{
|
|
323
398
|
"type": "string"
|
|
324
399
|
},
|
|
325
400
|
{
|
|
326
401
|
"type": "null"
|
|
327
402
|
}
|
|
328
403
|
],
|
|
329
|
-
"title": "
|
|
330
|
-
},
|
|
331
|
-
"resolved_budget_cents": {
|
|
332
|
-
"title": "Resolved Budget Cents",
|
|
333
|
-
"type": "integer"
|
|
334
|
-
},
|
|
335
|
-
"resolved_budget_source": {
|
|
336
|
-
"$ref": "#/components/schemas/BudgetSource"
|
|
404
|
+
"title": "Name"
|
|
337
405
|
},
|
|
338
|
-
"
|
|
406
|
+
"version": {
|
|
407
|
+
"default": "v1",
|
|
408
|
+
"title": "Version",
|
|
409
|
+
"type": "string"
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"title": "AgentConfigEllipsis",
|
|
413
|
+
"type": "object"
|
|
414
|
+
},
|
|
415
|
+
"AgentConfigMcpServer": {
|
|
416
|
+
"additionalProperties": false,
|
|
417
|
+
"description": "One built-in MCP server this agent opts into by name (`linear`/`slack`).\nThis is a name reference over the connected built-in set, NOT a custom-server\ndefinition \u2014 there is no command/url/headers shape (that was the old,\nremoved field, and Ellipsis does not support bring-your-own MCP servers).\nIt only matters when the named integration is set to `opt_in` inclusion; an\nintegration in the default `all_sessions` mode is added regardless.",
|
|
418
|
+
"properties": {
|
|
419
|
+
"name": {
|
|
420
|
+
"title": "Name",
|
|
421
|
+
"type": "string"
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"required": [
|
|
425
|
+
"name"
|
|
426
|
+
],
|
|
427
|
+
"title": "AgentConfigMcpServer",
|
|
428
|
+
"type": "object"
|
|
429
|
+
},
|
|
430
|
+
"AgentConfigMemorySize": {
|
|
431
|
+
"additionalProperties": false,
|
|
432
|
+
"description": "A memory size as explicit units, summed (binary: 1GB = 1024MB = 1024MiB).\nSet any of `gb`/`mb` (at least one). The alternative to the `8GB`-style\nshorthand string.",
|
|
433
|
+
"properties": {
|
|
434
|
+
"gb": {
|
|
339
435
|
"anyOf": [
|
|
340
436
|
{
|
|
341
|
-
"
|
|
437
|
+
"minimum": 0.0,
|
|
438
|
+
"type": "integer"
|
|
342
439
|
},
|
|
343
440
|
{
|
|
344
441
|
"type": "null"
|
|
345
442
|
}
|
|
346
443
|
],
|
|
347
|
-
"title": "
|
|
444
|
+
"title": "Gb"
|
|
348
445
|
},
|
|
349
|
-
"
|
|
446
|
+
"mb": {
|
|
350
447
|
"anyOf": [
|
|
351
448
|
{
|
|
352
|
-
"
|
|
449
|
+
"minimum": 0.0,
|
|
450
|
+
"type": "integer"
|
|
353
451
|
},
|
|
354
452
|
{
|
|
355
453
|
"type": "null"
|
|
356
454
|
}
|
|
357
455
|
],
|
|
358
|
-
"title": "
|
|
456
|
+
"title": "Mb"
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
"title": "AgentConfigMemorySize",
|
|
460
|
+
"type": "object"
|
|
461
|
+
},
|
|
462
|
+
"AgentConfigMentionPlatform": {
|
|
463
|
+
"description": "The surface an @ellipsis mention can come from.",
|
|
464
|
+
"enum": [
|
|
465
|
+
"github",
|
|
466
|
+
"slack",
|
|
467
|
+
"linear"
|
|
468
|
+
],
|
|
469
|
+
"title": "AgentConfigMentionPlatform",
|
|
470
|
+
"type": "string"
|
|
471
|
+
},
|
|
472
|
+
"AgentConfigMentionTrigger": {
|
|
473
|
+
"additionalProperties": false,
|
|
474
|
+
"properties": {
|
|
475
|
+
"platforms": {
|
|
476
|
+
"default": [],
|
|
477
|
+
"items": {
|
|
478
|
+
"$ref": "#/components/schemas/AgentConfigMentionPlatform"
|
|
479
|
+
},
|
|
480
|
+
"title": "Platforms",
|
|
481
|
+
"type": "array"
|
|
359
482
|
},
|
|
360
|
-
"
|
|
483
|
+
"type": {
|
|
484
|
+
"const": "mention",
|
|
485
|
+
"default": "mention",
|
|
486
|
+
"title": "Type",
|
|
487
|
+
"type": "string"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"title": "AgentConfigMentionTrigger",
|
|
491
|
+
"type": "object"
|
|
492
|
+
},
|
|
493
|
+
"AgentConfigMetadata": {
|
|
494
|
+
"additionalProperties": false,
|
|
495
|
+
"properties": {
|
|
496
|
+
"annotations": {
|
|
497
|
+
"additionalProperties": {
|
|
498
|
+
"type": "string"
|
|
499
|
+
},
|
|
500
|
+
"default": {},
|
|
501
|
+
"title": "Annotations",
|
|
502
|
+
"type": "object"
|
|
503
|
+
},
|
|
504
|
+
"labels": {
|
|
505
|
+
"default": [],
|
|
506
|
+
"items": {
|
|
507
|
+
"type": "string"
|
|
508
|
+
},
|
|
509
|
+
"title": "Labels",
|
|
510
|
+
"type": "array"
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
"title": "AgentConfigMetadata",
|
|
514
|
+
"type": "object"
|
|
515
|
+
},
|
|
516
|
+
"AgentConfigReactTrigger": {
|
|
517
|
+
"additionalProperties": false,
|
|
518
|
+
"properties": {
|
|
519
|
+
"code_review": {
|
|
361
520
|
"anyOf": [
|
|
362
521
|
{
|
|
363
|
-
"$ref": "#/components/schemas/
|
|
522
|
+
"$ref": "#/components/schemas/ReactCodeReview"
|
|
364
523
|
},
|
|
365
524
|
{
|
|
366
525
|
"type": "null"
|
|
367
526
|
}
|
|
368
527
|
]
|
|
369
528
|
},
|
|
370
|
-
"
|
|
371
|
-
"$ref": "#/components/schemas/AgentSessionSource"
|
|
372
|
-
},
|
|
373
|
-
"status": {
|
|
374
|
-
"$ref": "#/components/schemas/AgentSessionStatus"
|
|
375
|
-
},
|
|
376
|
-
"status_reason": {
|
|
529
|
+
"issue": {
|
|
377
530
|
"anyOf": [
|
|
378
531
|
{
|
|
379
|
-
"
|
|
532
|
+
"$ref": "#/components/schemas/ReactIssue"
|
|
380
533
|
},
|
|
381
534
|
{
|
|
382
535
|
"type": "null"
|
|
383
536
|
}
|
|
384
|
-
]
|
|
385
|
-
"title": "Status Reason"
|
|
537
|
+
]
|
|
386
538
|
},
|
|
387
|
-
"
|
|
539
|
+
"linear_issue": {
|
|
388
540
|
"anyOf": [
|
|
389
541
|
{
|
|
390
|
-
"
|
|
391
|
-
"type": "string"
|
|
542
|
+
"$ref": "#/components/schemas/ReactLinearIssue"
|
|
392
543
|
},
|
|
393
544
|
{
|
|
394
545
|
"type": "null"
|
|
395
546
|
}
|
|
396
|
-
]
|
|
397
|
-
"title": "Stopped At"
|
|
547
|
+
]
|
|
398
548
|
},
|
|
399
|
-
"
|
|
549
|
+
"pull_request": {
|
|
400
550
|
"anyOf": [
|
|
401
551
|
{
|
|
402
|
-
"
|
|
552
|
+
"$ref": "#/components/schemas/ReactPullRequest"
|
|
403
553
|
},
|
|
404
554
|
{
|
|
405
555
|
"type": "null"
|
|
406
556
|
}
|
|
407
|
-
]
|
|
408
|
-
"title": "Stopped By"
|
|
557
|
+
]
|
|
409
558
|
},
|
|
410
|
-
"
|
|
559
|
+
"push": {
|
|
411
560
|
"anyOf": [
|
|
412
561
|
{
|
|
413
|
-
"$ref": "#/components/schemas/
|
|
562
|
+
"$ref": "#/components/schemas/ReactPush"
|
|
414
563
|
},
|
|
415
564
|
{
|
|
416
565
|
"type": "null"
|
|
417
566
|
}
|
|
418
567
|
]
|
|
419
568
|
},
|
|
420
|
-
"
|
|
569
|
+
"sentry": {
|
|
421
570
|
"anyOf": [
|
|
422
571
|
{
|
|
423
|
-
"$ref": "#/components/schemas/
|
|
572
|
+
"$ref": "#/components/schemas/ReactSentry"
|
|
424
573
|
},
|
|
425
574
|
{
|
|
426
575
|
"type": "null"
|
|
427
576
|
}
|
|
428
577
|
]
|
|
429
578
|
},
|
|
430
|
-
"
|
|
431
|
-
"
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
},
|
|
440
|
-
"tokens_input": {
|
|
441
|
-
"default": 0,
|
|
442
|
-
"title": "Tokens Input",
|
|
443
|
-
"type": "integer"
|
|
579
|
+
"slack_channel": {
|
|
580
|
+
"anyOf": [
|
|
581
|
+
{
|
|
582
|
+
"$ref": "#/components/schemas/ReactSlackChannel"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"type": "null"
|
|
586
|
+
}
|
|
587
|
+
]
|
|
444
588
|
},
|
|
445
|
-
"
|
|
446
|
-
"
|
|
589
|
+
"type": {
|
|
590
|
+
"const": "react",
|
|
591
|
+
"default": "react",
|
|
592
|
+
"title": "Type",
|
|
447
593
|
"type": "string"
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
"
|
|
458
|
-
},
|
|
459
|
-
"updated_at": {
|
|
460
|
-
"format": "date-time",
|
|
461
|
-
"title": "Updated At",
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
"title": "AgentConfigReactTrigger",
|
|
597
|
+
"type": "object"
|
|
598
|
+
},
|
|
599
|
+
"AgentConfigRepository": {
|
|
600
|
+
"additionalProperties": false,
|
|
601
|
+
"properties": {
|
|
602
|
+
"name": {
|
|
603
|
+
"title": "Name",
|
|
462
604
|
"type": "string"
|
|
463
605
|
},
|
|
464
|
-
"
|
|
606
|
+
"owner": {
|
|
465
607
|
"anyOf": [
|
|
466
608
|
{
|
|
467
609
|
"type": "string"
|
|
@@ -470,95 +612,124 @@
|
|
|
470
612
|
"type": "null"
|
|
471
613
|
}
|
|
472
614
|
],
|
|
473
|
-
"title": "
|
|
615
|
+
"title": "Owner"
|
|
474
616
|
},
|
|
475
|
-
"
|
|
617
|
+
"ref": {
|
|
476
618
|
"anyOf": [
|
|
477
619
|
{
|
|
478
|
-
"
|
|
620
|
+
"type": "string"
|
|
479
621
|
},
|
|
480
622
|
{
|
|
481
623
|
"type": "null"
|
|
482
624
|
}
|
|
483
|
-
]
|
|
625
|
+
],
|
|
626
|
+
"title": "Ref"
|
|
484
627
|
}
|
|
485
628
|
},
|
|
486
629
|
"required": [
|
|
487
|
-
"
|
|
488
|
-
"customer_id",
|
|
489
|
-
"created_at",
|
|
490
|
-
"updated_at",
|
|
491
|
-
"harness",
|
|
492
|
-
"source",
|
|
493
|
-
"cost_tokens",
|
|
494
|
-
"tokens_model",
|
|
495
|
-
"resolved_budget_cents",
|
|
496
|
-
"resolved_budget_source",
|
|
497
|
-
"status",
|
|
498
|
-
"prompting"
|
|
630
|
+
"name"
|
|
499
631
|
],
|
|
500
|
-
"title": "
|
|
632
|
+
"title": "AgentConfigRepository",
|
|
501
633
|
"type": "object"
|
|
502
634
|
},
|
|
503
|
-
"
|
|
504
|
-
"
|
|
635
|
+
"AgentConfigSandbox": {
|
|
636
|
+
"additionalProperties": false,
|
|
637
|
+
"description": "Everything about the sandbox the agent runs in: which `repositories` are\ncloned into it, which environment `variables` it gets, its `compute` sizing,\nhow its `image` is customized, and lifecycle `hooks`.\n\nEach `variables` entry names a variable to inject; with an inline `value` it\nis hardcoded, without one it is resolved from the customer's sandbox-variables\nstore. Only the named variables reach this agent; the rest of the customer's\nstored variables never do. This is how a config brings in the config and\ncredentials a custom CLI needs.",
|
|
505
638
|
"properties": {
|
|
506
|
-
"
|
|
507
|
-
"
|
|
508
|
-
"
|
|
639
|
+
"compute": {
|
|
640
|
+
"$ref": "#/components/schemas/AgentConfigCompute",
|
|
641
|
+
"default": {}
|
|
642
|
+
},
|
|
643
|
+
"github": {
|
|
644
|
+
"$ref": "#/components/schemas/AgentConfigSandboxGithub",
|
|
645
|
+
"default": {}
|
|
646
|
+
},
|
|
647
|
+
"hooks": {
|
|
648
|
+
"$ref": "#/components/schemas/AgentConfigSandboxHooks",
|
|
649
|
+
"default": {}
|
|
650
|
+
},
|
|
651
|
+
"image": {
|
|
652
|
+
"$ref": "#/components/schemas/AgentConfigSandboxImage",
|
|
653
|
+
"default": {}
|
|
654
|
+
},
|
|
655
|
+
"ports": {
|
|
656
|
+
"default": [
|
|
657
|
+
3000,
|
|
658
|
+
5173,
|
|
659
|
+
8000,
|
|
660
|
+
8080
|
|
661
|
+
],
|
|
662
|
+
"items": {
|
|
663
|
+
"type": "integer"
|
|
664
|
+
},
|
|
665
|
+
"title": "Ports",
|
|
666
|
+
"type": "array"
|
|
509
667
|
},
|
|
510
|
-
"
|
|
668
|
+
"repositories": {
|
|
669
|
+
"default": [],
|
|
670
|
+
"items": {
|
|
671
|
+
"$ref": "#/components/schemas/AgentConfigRepository"
|
|
672
|
+
},
|
|
673
|
+
"title": "Repositories",
|
|
674
|
+
"type": "array"
|
|
675
|
+
},
|
|
676
|
+
"variables": {
|
|
677
|
+
"default": [],
|
|
678
|
+
"items": {
|
|
679
|
+
"$ref": "#/components/schemas/AgentConfigSandboxVariable"
|
|
680
|
+
},
|
|
681
|
+
"title": "Variables",
|
|
682
|
+
"type": "array"
|
|
683
|
+
}
|
|
684
|
+
},
|
|
685
|
+
"title": "AgentConfigSandbox",
|
|
686
|
+
"type": "object"
|
|
687
|
+
},
|
|
688
|
+
"AgentConfigSandboxGithub": {
|
|
689
|
+
"additionalProperties": false,
|
|
690
|
+
"description": "The agent's GitHub access: the scope of the installation token minted for\nits sandbox \u2014 the credential `git`, `gh`, and the GitHub MCP server\nauthenticate with.\n\nBy default the token carries the installation's full permissions, scoped to\nthe repositories in the sandbox. `permissions` narrows what it may do:\nthe string `read_only` grants read access to contents, issues, metadata and\npull requests; a map requests explicit levels per GitHub App permission\nscope (e.g. `{contents: read, pull_requests: write}`) and may never exceed\nwhat the installation granted. `repositories` narrows which repos the token\ncan touch to a subset, by name (they must belong to the installation).\n\nRestriction is enforced by GitHub, not by Ellipsis: the token itself is\nminted with the reduced scope, so nothing running in the sandbox can\nexceed it.",
|
|
691
|
+
"properties": {
|
|
692
|
+
"permissions": {
|
|
511
693
|
"anyOf": [
|
|
512
694
|
{
|
|
513
|
-
"
|
|
695
|
+
"const": "read_only",
|
|
514
696
|
"type": "string"
|
|
515
697
|
},
|
|
698
|
+
{
|
|
699
|
+
"additionalProperties": {
|
|
700
|
+
"type": "string"
|
|
701
|
+
},
|
|
702
|
+
"type": "object"
|
|
703
|
+
},
|
|
516
704
|
{
|
|
517
705
|
"type": "null"
|
|
518
706
|
}
|
|
519
707
|
],
|
|
520
|
-
"title": "
|
|
521
|
-
},
|
|
522
|
-
"cost_fee": {
|
|
523
|
-
"default": 0,
|
|
524
|
-
"title": "Cost Fee",
|
|
525
|
-
"type": "integer"
|
|
526
|
-
},
|
|
527
|
-
"cost_sandbox_cpu": {
|
|
528
|
-
"default": 0,
|
|
529
|
-
"title": "Cost Sandbox Cpu",
|
|
530
|
-
"type": "integer"
|
|
708
|
+
"title": "Permissions"
|
|
531
709
|
},
|
|
532
|
-
"
|
|
533
|
-
"default": 0,
|
|
534
|
-
"title": "Cost Sandbox Memory",
|
|
535
|
-
"type": "integer"
|
|
536
|
-
},
|
|
537
|
-
"cost_tokens": {
|
|
538
|
-
"default": 0,
|
|
539
|
-
"title": "Cost Tokens",
|
|
540
|
-
"type": "integer"
|
|
541
|
-
},
|
|
542
|
-
"created_at": {
|
|
543
|
-
"format": "date-time",
|
|
544
|
-
"title": "Created At",
|
|
545
|
-
"type": "string"
|
|
546
|
-
},
|
|
547
|
-
"exit_status": {
|
|
710
|
+
"repositories": {
|
|
548
711
|
"anyOf": [
|
|
549
712
|
{
|
|
550
|
-
"
|
|
713
|
+
"items": {
|
|
714
|
+
"type": "string"
|
|
715
|
+
},
|
|
716
|
+
"type": "array"
|
|
551
717
|
},
|
|
552
718
|
{
|
|
553
719
|
"type": "null"
|
|
554
720
|
}
|
|
555
|
-
]
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
721
|
+
],
|
|
722
|
+
"title": "Repositories"
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
"title": "AgentConfigSandboxGithub",
|
|
726
|
+
"type": "object"
|
|
727
|
+
},
|
|
728
|
+
"AgentConfigSandboxHooks": {
|
|
729
|
+
"additionalProperties": false,
|
|
730
|
+
"description": "Shell scripts run at points in the sandbox lifecycle, each as the sandbox\nuser with the sandbox's environment variables available. A non-zero exit\nfails the run (exit_status = LIFECYCLE_HOOK_FAILED) and is not retried.\n\n`post_start` runs after the container starts, before any repo is cloned \u2014\nrepo-independent setup (authenticate a CLI, e.g. `doppler setup`). On Modal\nthe repo is baked into the image so it is incidentally present, but\n`post_start` must not depend on repo contents (that's `post_clone`).\n\n`post_clone` runs after all repos are cloned/checked out, before the agent \u2014\nrepo-dependent setup (`pip install -r requirements.txt`, codegen).\n\nHooks run on every run and their output is never cached. A dependency\ninstall whose result should be reused across runs belongs in `image.setup`\n(baked into the cached image) instead; keep hooks for per-run work \u2014 e.g.\nanything that touches run-scoped credentials.",
|
|
731
|
+
"properties": {
|
|
732
|
+
"post_clone": {
|
|
562
733
|
"anyOf": [
|
|
563
734
|
{
|
|
564
735
|
"type": "string"
|
|
@@ -567,9 +738,9 @@
|
|
|
567
738
|
"type": "null"
|
|
568
739
|
}
|
|
569
740
|
],
|
|
570
|
-
"title": "
|
|
741
|
+
"title": "Post Clone"
|
|
571
742
|
},
|
|
572
|
-
"
|
|
743
|
+
"post_start": {
|
|
573
744
|
"anyOf": [
|
|
574
745
|
{
|
|
575
746
|
"type": "string"
|
|
@@ -578,9 +749,17 @@
|
|
|
578
749
|
"type": "null"
|
|
579
750
|
}
|
|
580
751
|
],
|
|
581
|
-
"title": "
|
|
582
|
-
}
|
|
583
|
-
|
|
752
|
+
"title": "Post Start"
|
|
753
|
+
}
|
|
754
|
+
},
|
|
755
|
+
"title": "AgentConfigSandboxHooks",
|
|
756
|
+
"type": "object"
|
|
757
|
+
},
|
|
758
|
+
"AgentConfigSandboxImage": {
|
|
759
|
+
"additionalProperties": false,
|
|
760
|
+
"description": "How to customize the container image the agent runs in. The customer\ncontributes appended layers (`dockerfile_append`) and a build-time script\n(`setup`) only \u2014 Ellipsis owns FROM / base tooling / entrypoint / user.\nToday only inline bodies are supported; a file reference (resolved at the\nrun's SHA) will come later.\n\nThe split: `dockerfile_append` runs when the image is assembled, before any\nrepo exists \u2014 toolchain installs (a package manager binary, apt packages).\n`setup` runs at image-build time *after* the configured repositories are\nchecked out, and its output is captured by the filesystem snapshot that\nbecomes the cached image \u2014 dependency installs (`poetry install`,\n`npm install`), so later runs start with deps already on disk. Neither runs\nper run; that's `hooks.post_start` / `hooks.post_clone`.",
|
|
761
|
+
"properties": {
|
|
762
|
+
"dockerfile_append": {
|
|
584
763
|
"anyOf": [
|
|
585
764
|
{
|
|
586
765
|
"type": "string"
|
|
@@ -589,50 +768,32 @@
|
|
|
589
768
|
"type": "null"
|
|
590
769
|
}
|
|
591
770
|
],
|
|
592
|
-
"title": "
|
|
771
|
+
"title": "Dockerfile Append"
|
|
593
772
|
},
|
|
594
|
-
"
|
|
773
|
+
"setup": {
|
|
595
774
|
"anyOf": [
|
|
596
775
|
{
|
|
597
|
-
"format": "date-time",
|
|
598
776
|
"type": "string"
|
|
599
777
|
},
|
|
600
778
|
{
|
|
601
779
|
"type": "null"
|
|
602
780
|
}
|
|
603
781
|
],
|
|
604
|
-
"title": "
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
],
|
|
618
|
-
"title": "Status Reason"
|
|
619
|
-
},
|
|
620
|
-
"tokens_cache_creation": {
|
|
621
|
-
"default": 0,
|
|
622
|
-
"title": "Tokens Cache Creation",
|
|
623
|
-
"type": "integer"
|
|
624
|
-
},
|
|
625
|
-
"tokens_cache_read": {
|
|
626
|
-
"default": 0,
|
|
627
|
-
"title": "Tokens Cache Read",
|
|
628
|
-
"type": "integer"
|
|
629
|
-
},
|
|
630
|
-
"tokens_input": {
|
|
631
|
-
"default": 0,
|
|
632
|
-
"title": "Tokens Input",
|
|
633
|
-
"type": "integer"
|
|
782
|
+
"title": "Setup"
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
"title": "AgentConfigSandboxImage",
|
|
786
|
+
"type": "object"
|
|
787
|
+
},
|
|
788
|
+
"AgentConfigSandboxVariable": {
|
|
789
|
+
"additionalProperties": false,
|
|
790
|
+
"description": "One environment variable injected into the agent's sandbox.\n\n`value`, when set, is a literal injected as-is \u2014 use it for non-secret\nconfig (LOG_LEVEL, an API base URL). When `value` is omitted the value is\nresolved at run time from the customer's sandbox-variables store (dashboard\n/ `PUT /sandboxes/variables`) by `name`, so a secret can be injected without\never putting it in the config file. Either way the variable only reaches\nagents that name it.",
|
|
791
|
+
"properties": {
|
|
792
|
+
"name": {
|
|
793
|
+
"title": "Name",
|
|
794
|
+
"type": "string"
|
|
634
795
|
},
|
|
635
|
-
"
|
|
796
|
+
"value": {
|
|
636
797
|
"anyOf": [
|
|
637
798
|
{
|
|
638
799
|
"type": "string"
|
|
@@ -641,42 +802,52 @@
|
|
|
641
802
|
"type": "null"
|
|
642
803
|
}
|
|
643
804
|
],
|
|
644
|
-
"title": "
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
"
|
|
659
|
-
},
|
|
660
|
-
"updated_at": {
|
|
661
|
-
"format": "date-time",
|
|
662
|
-
"title": "Updated At",
|
|
805
|
+
"title": "Value"
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
"required": [
|
|
809
|
+
"name"
|
|
810
|
+
],
|
|
811
|
+
"title": "AgentConfigSandboxVariable",
|
|
812
|
+
"type": "object"
|
|
813
|
+
},
|
|
814
|
+
"AgentConfigSettingsRef": {
|
|
815
|
+
"additionalProperties": false,
|
|
816
|
+
"description": "A config-declared Claude Code settings.json, resolved at run start and\npassed to `claude --settings <path>`. That is the CLI settings tier \u2014 BELOW\nEllipsis's managed-settings.json floor \u2014 so it customizes behavior (model\npermissions, includeCoAuthoredBy, statusLine, ...) but can never weaken a\nsecurity setting. Lets a team point the cloud agent at the same settings file\nthey already use with Claude Code locally instead of re-encoding it as YAML.",
|
|
817
|
+
"properties": {
|
|
818
|
+
"path": {
|
|
819
|
+
"title": "Path",
|
|
663
820
|
"type": "string"
|
|
664
821
|
},
|
|
665
|
-
"
|
|
822
|
+
"repository": {
|
|
666
823
|
"anyOf": [
|
|
667
824
|
{
|
|
668
|
-
"
|
|
825
|
+
"$ref": "#/components/schemas/AgentConfigRepository"
|
|
669
826
|
},
|
|
670
827
|
{
|
|
671
828
|
"type": "null"
|
|
672
829
|
}
|
|
673
|
-
]
|
|
674
|
-
|
|
830
|
+
]
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
"required": [
|
|
834
|
+
"path"
|
|
835
|
+
],
|
|
836
|
+
"title": "AgentConfigSettingsRef",
|
|
837
|
+
"type": "object"
|
|
838
|
+
},
|
|
839
|
+
"AgentConfigSkill": {
|
|
840
|
+
"additionalProperties": false,
|
|
841
|
+
"description": "One config-declared Claude Code skill: a repository directory containing\na SKILL.md, resolved at run start and installed at the sandbox's personal\nskill level (`~/.claude/skills/<basename(path)>/`). This is how a config\nbrings in skills its cloned repositories don't provide \u2014 cross-repo refs\n(an org-wide skills repo), public third-party repos, and repo-less runs.\nSkills under a cloned repo's own `.claude/skills/` load by themselves and\ndon't need an entry here.",
|
|
842
|
+
"properties": {
|
|
843
|
+
"path": {
|
|
844
|
+
"title": "Path",
|
|
845
|
+
"type": "string"
|
|
675
846
|
},
|
|
676
|
-
"
|
|
847
|
+
"repository": {
|
|
677
848
|
"anyOf": [
|
|
678
849
|
{
|
|
679
|
-
"$ref": "#/components/schemas/
|
|
850
|
+
"$ref": "#/components/schemas/AgentConfigRepository"
|
|
680
851
|
},
|
|
681
852
|
{
|
|
682
853
|
"type": "null"
|
|
@@ -685,145 +856,68 @@
|
|
|
685
856
|
}
|
|
686
857
|
},
|
|
687
858
|
"required": [
|
|
688
|
-
"
|
|
689
|
-
"agent_session_id",
|
|
690
|
-
"turn_index",
|
|
691
|
-
"created_at",
|
|
692
|
-
"updated_at",
|
|
693
|
-
"status"
|
|
859
|
+
"path"
|
|
694
860
|
],
|
|
695
|
-
"title": "
|
|
861
|
+
"title": "AgentConfigSkill",
|
|
696
862
|
"type": "object"
|
|
697
863
|
},
|
|
698
|
-
"
|
|
699
|
-
"
|
|
700
|
-
"scheduled",
|
|
701
|
-
"running",
|
|
702
|
-
"completed",
|
|
703
|
-
"error",
|
|
704
|
-
"cancelled"
|
|
705
|
-
],
|
|
706
|
-
"title": "AgentTurnStatus",
|
|
707
|
-
"type": "string"
|
|
708
|
-
},
|
|
709
|
-
"AttributionType": {
|
|
710
|
-
"enum": [
|
|
711
|
-
"github_user",
|
|
712
|
-
"linear_user",
|
|
713
|
-
"slack_user",
|
|
714
|
-
"api_key"
|
|
715
|
-
],
|
|
716
|
-
"title": "AttributionType",
|
|
717
|
-
"type": "string"
|
|
718
|
-
},
|
|
719
|
-
"BudgetSource": {
|
|
720
|
-
"description": "Which layer actually determined the enforced budget.\n\nNot derivable from the run row alone (the run does not store the config\ncents or the customer default), so we persist it for the UI / audit.",
|
|
721
|
-
"enum": [
|
|
722
|
-
"system",
|
|
723
|
-
"account",
|
|
724
|
-
"config",
|
|
725
|
-
"run"
|
|
726
|
-
],
|
|
727
|
-
"title": "BudgetSource",
|
|
728
|
-
"type": "string"
|
|
729
|
-
},
|
|
730
|
-
"DefaultResolution": {
|
|
731
|
-
"description": "How a session that arrived with no explicit config source resolved its\nconfig (documents/eng/DEFAULT_CONFIGS.md \u00a74). Persisted on the session so\naudit and clients can say \"ran under X (repo default)\". A session started\nwith an explicit config/config_id/template_id never enters resolution and\nstores None.",
|
|
732
|
-
"enum": [
|
|
733
|
-
"repo_default",
|
|
734
|
-
"account_default",
|
|
735
|
-
"none"
|
|
736
|
-
],
|
|
737
|
-
"title": "DefaultResolution",
|
|
738
|
-
"type": "string"
|
|
739
|
-
},
|
|
740
|
-
"ExecutionStatus": {
|
|
741
|
-
"description": "Per-execution status ladder (was AgentProcessStatus). Distinct from the\nsession's durable `session_state` and from `agent_sessions.status`, which\nremains the atomic claim/dispatch guard.",
|
|
742
|
-
"enum": [
|
|
743
|
-
"running",
|
|
744
|
-
"failed",
|
|
745
|
-
"done"
|
|
746
|
-
],
|
|
747
|
-
"title": "ExecutionStatus",
|
|
748
|
-
"type": "string"
|
|
749
|
-
},
|
|
750
|
-
"GithubAccountSnippet": {
|
|
751
|
-
"description": "Sometimes the GitHub API returns a user of github (can include bots)\nusing this snippet instead of the full GithubAccount model. One example,\nis when the API returns a pull request.\n\nThis is the least amount of info we need to represent a GitHub account.",
|
|
864
|
+
"AgentConfigStructuredOutput": {
|
|
865
|
+
"additionalProperties": false,
|
|
752
866
|
"properties": {
|
|
753
|
-
"
|
|
754
|
-
"
|
|
755
|
-
"
|
|
756
|
-
|
|
757
|
-
"id": {
|
|
758
|
-
"title": "Id",
|
|
759
|
-
"type": "integer"
|
|
760
|
-
},
|
|
761
|
-
"login": {
|
|
762
|
-
"title": "Login",
|
|
763
|
-
"type": "string"
|
|
867
|
+
"json_schema": {
|
|
868
|
+
"additionalProperties": true,
|
|
869
|
+
"title": "Json Schema",
|
|
870
|
+
"type": "object"
|
|
764
871
|
},
|
|
765
872
|
"type": {
|
|
766
|
-
"
|
|
873
|
+
"const": "json_schema",
|
|
874
|
+
"default": "json_schema",
|
|
875
|
+
"title": "Type",
|
|
876
|
+
"type": "string"
|
|
767
877
|
}
|
|
768
878
|
},
|
|
769
879
|
"required": [
|
|
770
|
-
"
|
|
771
|
-
"login",
|
|
772
|
-
"type",
|
|
773
|
-
"avatar_url"
|
|
880
|
+
"json_schema"
|
|
774
881
|
],
|
|
775
|
-
"title": "
|
|
882
|
+
"title": "AgentConfigStructuredOutput",
|
|
776
883
|
"type": "object"
|
|
777
884
|
},
|
|
778
|
-
"
|
|
779
|
-
"
|
|
780
|
-
"User",
|
|
781
|
-
"Organization",
|
|
782
|
-
"Bot",
|
|
783
|
-
"Mannequin"
|
|
784
|
-
],
|
|
785
|
-
"title": "GithubAccountType",
|
|
786
|
-
"type": "string"
|
|
787
|
-
},
|
|
788
|
-
"HTTPValidationError": {
|
|
885
|
+
"AgentConfigSystemFileRef": {
|
|
886
|
+
"additionalProperties": false,
|
|
789
887
|
"properties": {
|
|
790
|
-
"
|
|
791
|
-
"
|
|
792
|
-
|
|
793
|
-
},
|
|
794
|
-
"title": "Detail",
|
|
795
|
-
"type": "array"
|
|
888
|
+
"file": {
|
|
889
|
+
"title": "File",
|
|
890
|
+
"type": "string"
|
|
796
891
|
}
|
|
797
892
|
},
|
|
798
|
-
"
|
|
893
|
+
"required": [
|
|
894
|
+
"file"
|
|
895
|
+
],
|
|
896
|
+
"title": "AgentConfigSystemFileRef",
|
|
799
897
|
"type": "object"
|
|
800
898
|
},
|
|
801
|
-
"
|
|
899
|
+
"AgentSessionExitStatus": {
|
|
900
|
+
"description": "Why a terminal agent session ended \u2014 a finer-grained reason than `status`.\n\n`status` (AgentSessionStatus) is the lifecycle state: COMPLETED / ERROR /\nCANCELLED. `exit_status` explains *why* a run reached that terminal state, so\nthe UI and metrics can tell a budget cutoff apart from a crashed tool call or\na deliberate cancellation. It is None until the run reaches a terminal state.",
|
|
802
901
|
"enum": [
|
|
803
|
-
"
|
|
902
|
+
"completed",
|
|
903
|
+
"budget_hit",
|
|
904
|
+
"payment_required",
|
|
905
|
+
"tool_call_failed",
|
|
906
|
+
"lifecycle_hook_failed",
|
|
907
|
+
"missing_repo_access",
|
|
908
|
+
"missing_token_permissions",
|
|
909
|
+
"cancelled",
|
|
910
|
+
"interrupted",
|
|
911
|
+
"error",
|
|
912
|
+
"stopped"
|
|
804
913
|
],
|
|
805
|
-
"title": "
|
|
914
|
+
"title": "AgentSessionExitStatus",
|
|
806
915
|
"type": "string"
|
|
807
916
|
},
|
|
808
|
-
"
|
|
809
|
-
"
|
|
810
|
-
"executions": {
|
|
811
|
-
"items": {
|
|
812
|
-
"$ref": "#/components/schemas/SessionExecutionWire"
|
|
813
|
-
},
|
|
814
|
-
"title": "Executions",
|
|
815
|
-
"type": "array"
|
|
816
|
-
}
|
|
817
|
-
},
|
|
818
|
-
"required": [
|
|
819
|
-
"executions"
|
|
820
|
-
],
|
|
821
|
-
"title": "ListSessionExecutionsResponse",
|
|
822
|
-
"type": "object"
|
|
823
|
-
},
|
|
824
|
-
"ListSessionRecordsResponse": {
|
|
917
|
+
"AgentSessionPr": {
|
|
918
|
+
"description": "A pull request this session created, denormalized at capture time so\nsession surfaces render a labeled link without joining gh_prs. Live PR\nstate (open/merged/closed) is not stored here \u2014 read it from gh_prs where\na view needs it.",
|
|
825
919
|
"properties": {
|
|
826
|
-
"
|
|
920
|
+
"gh_pr_id": {
|
|
827
921
|
"anyOf": [
|
|
828
922
|
{
|
|
829
923
|
"type": "integer"
|
|
@@ -832,119 +926,1828 @@
|
|
|
832
926
|
"type": "null"
|
|
833
927
|
}
|
|
834
928
|
],
|
|
835
|
-
"title": "
|
|
929
|
+
"title": "Gh Pr Id"
|
|
836
930
|
},
|
|
837
|
-
"
|
|
838
|
-
"
|
|
839
|
-
"
|
|
840
|
-
"type": "boolean"
|
|
931
|
+
"number": {
|
|
932
|
+
"title": "Number",
|
|
933
|
+
"type": "integer"
|
|
841
934
|
},
|
|
842
|
-
"
|
|
843
|
-
"
|
|
844
|
-
"
|
|
845
|
-
"$ref": "#/components/schemas/SessionMessageWire"
|
|
846
|
-
},
|
|
847
|
-
"title": "Messages",
|
|
848
|
-
"type": "array"
|
|
935
|
+
"repo_full_name": {
|
|
936
|
+
"title": "Repo Full Name",
|
|
937
|
+
"type": "string"
|
|
849
938
|
},
|
|
850
|
-
"
|
|
851
|
-
"
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
939
|
+
"title": {
|
|
940
|
+
"anyOf": [
|
|
941
|
+
{
|
|
942
|
+
"type": "string"
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
"type": "null"
|
|
946
|
+
}
|
|
947
|
+
],
|
|
948
|
+
"title": "Title"
|
|
949
|
+
},
|
|
950
|
+
"url": {
|
|
951
|
+
"title": "Url",
|
|
952
|
+
"type": "string"
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
"required": [
|
|
956
|
+
"repo_full_name",
|
|
957
|
+
"number",
|
|
958
|
+
"url"
|
|
959
|
+
],
|
|
960
|
+
"title": "AgentSessionPr",
|
|
961
|
+
"type": "object"
|
|
962
|
+
},
|
|
963
|
+
"AgentSessionSource": {
|
|
964
|
+
"enum": [
|
|
965
|
+
"react",
|
|
966
|
+
"manual",
|
|
967
|
+
"api",
|
|
968
|
+
"cli",
|
|
969
|
+
"mention",
|
|
970
|
+
"cron",
|
|
971
|
+
"laptop"
|
|
972
|
+
],
|
|
973
|
+
"title": "AgentSessionSource",
|
|
974
|
+
"type": "string"
|
|
975
|
+
},
|
|
976
|
+
"AgentSessionStatus": {
|
|
977
|
+
"enum": [
|
|
978
|
+
"scheduled",
|
|
979
|
+
"creating_sandbox",
|
|
980
|
+
"running",
|
|
981
|
+
"retrying",
|
|
982
|
+
"completed",
|
|
983
|
+
"error",
|
|
984
|
+
"cancelled",
|
|
985
|
+
"stopped"
|
|
986
|
+
],
|
|
987
|
+
"title": "AgentSessionStatus",
|
|
988
|
+
"type": "string"
|
|
989
|
+
},
|
|
990
|
+
"AgentSessionWire": {
|
|
991
|
+
"properties": {
|
|
992
|
+
"agent_config_id": {
|
|
993
|
+
"anyOf": [
|
|
994
|
+
{
|
|
995
|
+
"type": "string"
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"type": "null"
|
|
999
|
+
}
|
|
1000
|
+
],
|
|
1001
|
+
"title": "Agent Config Id"
|
|
1002
|
+
},
|
|
1003
|
+
"attributed_user": {
|
|
1004
|
+
"anyOf": [
|
|
1005
|
+
{
|
|
1006
|
+
"$ref": "#/components/schemas/GithubAccountSnippet"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"type": "null"
|
|
1010
|
+
}
|
|
1011
|
+
]
|
|
1012
|
+
},
|
|
1013
|
+
"attribution_id": {
|
|
1014
|
+
"anyOf": [
|
|
1015
|
+
{
|
|
1016
|
+
"type": "string"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"type": "null"
|
|
1020
|
+
}
|
|
1021
|
+
],
|
|
1022
|
+
"title": "Attribution Id"
|
|
1023
|
+
},
|
|
1024
|
+
"attribution_type": {
|
|
1025
|
+
"anyOf": [
|
|
1026
|
+
{
|
|
1027
|
+
"$ref": "#/components/schemas/AttributionType"
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
"type": "null"
|
|
1031
|
+
}
|
|
1032
|
+
]
|
|
1033
|
+
},
|
|
1034
|
+
"client_version": {
|
|
1035
|
+
"anyOf": [
|
|
1036
|
+
{
|
|
1037
|
+
"type": "string"
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"type": "null"
|
|
1041
|
+
}
|
|
1042
|
+
],
|
|
1043
|
+
"title": "Client Version"
|
|
1044
|
+
},
|
|
1045
|
+
"config_override": {
|
|
1046
|
+
"anyOf": [
|
|
1047
|
+
{
|
|
1048
|
+
"additionalProperties": true,
|
|
1049
|
+
"type": "object"
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"type": "null"
|
|
1053
|
+
}
|
|
1054
|
+
],
|
|
1055
|
+
"title": "Config Override"
|
|
1056
|
+
},
|
|
1057
|
+
"context_repository": {
|
|
1058
|
+
"anyOf": [
|
|
1059
|
+
{
|
|
1060
|
+
"type": "string"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"type": "null"
|
|
1064
|
+
}
|
|
1065
|
+
],
|
|
1066
|
+
"title": "Context Repository"
|
|
1067
|
+
},
|
|
1068
|
+
"cost_fee": {
|
|
1069
|
+
"default": 0,
|
|
1070
|
+
"title": "Cost Fee",
|
|
1071
|
+
"type": "integer"
|
|
1072
|
+
},
|
|
1073
|
+
"cost_sandbox_cpu": {
|
|
1074
|
+
"default": 0,
|
|
1075
|
+
"title": "Cost Sandbox Cpu",
|
|
1076
|
+
"type": "integer"
|
|
1077
|
+
},
|
|
1078
|
+
"cost_sandbox_memory": {
|
|
1079
|
+
"default": 0,
|
|
1080
|
+
"title": "Cost Sandbox Memory",
|
|
1081
|
+
"type": "integer"
|
|
1082
|
+
},
|
|
1083
|
+
"cost_tokens": {
|
|
1084
|
+
"title": "Cost Tokens",
|
|
1085
|
+
"type": "integer"
|
|
1086
|
+
},
|
|
1087
|
+
"created_at": {
|
|
1088
|
+
"format": "date-time",
|
|
1089
|
+
"title": "Created At",
|
|
1090
|
+
"type": "string"
|
|
1091
|
+
},
|
|
1092
|
+
"customer_id": {
|
|
1093
|
+
"title": "Customer Id",
|
|
1094
|
+
"type": "string"
|
|
1095
|
+
},
|
|
1096
|
+
"default_resolution": {
|
|
1097
|
+
"anyOf": [
|
|
1098
|
+
{
|
|
1099
|
+
"$ref": "#/components/schemas/DefaultResolution"
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"type": "null"
|
|
1103
|
+
}
|
|
1104
|
+
]
|
|
1105
|
+
},
|
|
1106
|
+
"exit_status": {
|
|
1107
|
+
"anyOf": [
|
|
1108
|
+
{
|
|
1109
|
+
"$ref": "#/components/schemas/AgentSessionExitStatus"
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"type": "null"
|
|
1113
|
+
}
|
|
1114
|
+
]
|
|
1115
|
+
},
|
|
1116
|
+
"harness": {
|
|
1117
|
+
"$ref": "#/components/schemas/Harness"
|
|
1118
|
+
},
|
|
1119
|
+
"id": {
|
|
1120
|
+
"title": "Id",
|
|
1121
|
+
"type": "string"
|
|
1122
|
+
},
|
|
1123
|
+
"last_activity_at": {
|
|
1124
|
+
"anyOf": [
|
|
1125
|
+
{
|
|
1126
|
+
"format": "date-time",
|
|
1127
|
+
"type": "string"
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
"type": "null"
|
|
1131
|
+
}
|
|
1132
|
+
],
|
|
1133
|
+
"title": "Last Activity At"
|
|
1134
|
+
},
|
|
1135
|
+
"last_message_at": {
|
|
1136
|
+
"anyOf": [
|
|
1137
|
+
{
|
|
1138
|
+
"format": "date-time",
|
|
1139
|
+
"type": "string"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"type": "null"
|
|
1143
|
+
}
|
|
1144
|
+
],
|
|
1145
|
+
"title": "Last Message At"
|
|
1146
|
+
},
|
|
1147
|
+
"live_summary": {
|
|
1148
|
+
"anyOf": [
|
|
1149
|
+
{
|
|
1150
|
+
"type": "string"
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"type": "null"
|
|
1154
|
+
}
|
|
1155
|
+
],
|
|
1156
|
+
"title": "Live Summary"
|
|
1157
|
+
},
|
|
1158
|
+
"metadata": {
|
|
1159
|
+
"additionalProperties": {
|
|
1160
|
+
"type": "string"
|
|
1161
|
+
},
|
|
1162
|
+
"default": {},
|
|
1163
|
+
"title": "Metadata",
|
|
1164
|
+
"type": "object"
|
|
1165
|
+
},
|
|
1166
|
+
"output_prs": {
|
|
1167
|
+
"anyOf": [
|
|
1168
|
+
{
|
|
1169
|
+
"items": {
|
|
1170
|
+
"$ref": "#/components/schemas/AgentSessionPr"
|
|
1171
|
+
},
|
|
1172
|
+
"type": "array"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"type": "null"
|
|
1176
|
+
}
|
|
1177
|
+
],
|
|
1178
|
+
"title": "Output Prs"
|
|
1179
|
+
},
|
|
1180
|
+
"parent_agent_session_id": {
|
|
1181
|
+
"anyOf": [
|
|
1182
|
+
{
|
|
1183
|
+
"type": "string"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"type": "null"
|
|
1187
|
+
}
|
|
1188
|
+
],
|
|
1189
|
+
"title": "Parent Agent Session Id"
|
|
1190
|
+
},
|
|
1191
|
+
"parent_kind": {
|
|
1192
|
+
"anyOf": [
|
|
1193
|
+
{
|
|
1194
|
+
"$ref": "#/components/schemas/ParentKind"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"type": "null"
|
|
1198
|
+
}
|
|
1199
|
+
]
|
|
1200
|
+
},
|
|
1201
|
+
"prompt": {
|
|
1202
|
+
"anyOf": [
|
|
1203
|
+
{
|
|
1204
|
+
"type": "string"
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
"type": "null"
|
|
1208
|
+
}
|
|
1209
|
+
],
|
|
1210
|
+
"title": "Prompt"
|
|
1211
|
+
},
|
|
1212
|
+
"prompting": {
|
|
1213
|
+
"$ref": "#/components/schemas/SessionPrompting"
|
|
1214
|
+
},
|
|
1215
|
+
"replayed_from_session_id": {
|
|
1216
|
+
"anyOf": [
|
|
1217
|
+
{
|
|
1218
|
+
"type": "string"
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"type": "null"
|
|
1222
|
+
}
|
|
1223
|
+
],
|
|
1224
|
+
"title": "Replayed From Session Id"
|
|
1225
|
+
},
|
|
1226
|
+
"resolved_budget_cents": {
|
|
1227
|
+
"title": "Resolved Budget Cents",
|
|
1228
|
+
"type": "integer"
|
|
1229
|
+
},
|
|
1230
|
+
"resolved_budget_source": {
|
|
1231
|
+
"$ref": "#/components/schemas/BudgetSource"
|
|
1232
|
+
},
|
|
1233
|
+
"sandbox_id": {
|
|
1234
|
+
"anyOf": [
|
|
1235
|
+
{
|
|
1236
|
+
"type": "string"
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"type": "null"
|
|
1240
|
+
}
|
|
1241
|
+
],
|
|
1242
|
+
"title": "Sandbox Id"
|
|
1243
|
+
},
|
|
1244
|
+
"session_key": {
|
|
1245
|
+
"anyOf": [
|
|
1246
|
+
{
|
|
1247
|
+
"type": "string"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"type": "null"
|
|
1251
|
+
}
|
|
1252
|
+
],
|
|
1253
|
+
"title": "Session Key"
|
|
1254
|
+
},
|
|
1255
|
+
"session_state": {
|
|
1256
|
+
"anyOf": [
|
|
1257
|
+
{
|
|
1258
|
+
"$ref": "#/components/schemas/SessionState"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"type": "null"
|
|
1262
|
+
}
|
|
1263
|
+
]
|
|
1264
|
+
},
|
|
1265
|
+
"source": {
|
|
1266
|
+
"$ref": "#/components/schemas/AgentSessionSource"
|
|
1267
|
+
},
|
|
1268
|
+
"status": {
|
|
1269
|
+
"$ref": "#/components/schemas/AgentSessionStatus"
|
|
1270
|
+
},
|
|
1271
|
+
"status_reason": {
|
|
1272
|
+
"anyOf": [
|
|
1273
|
+
{
|
|
1274
|
+
"type": "string"
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"type": "null"
|
|
1278
|
+
}
|
|
1279
|
+
],
|
|
1280
|
+
"title": "Status Reason"
|
|
1281
|
+
},
|
|
1282
|
+
"stopped_at": {
|
|
1283
|
+
"anyOf": [
|
|
1284
|
+
{
|
|
1285
|
+
"format": "date-time",
|
|
1286
|
+
"type": "string"
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"type": "null"
|
|
1290
|
+
}
|
|
1291
|
+
],
|
|
1292
|
+
"title": "Stopped At"
|
|
1293
|
+
},
|
|
1294
|
+
"stopped_by": {
|
|
1295
|
+
"anyOf": [
|
|
1296
|
+
{
|
|
1297
|
+
"type": "integer"
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
"type": "null"
|
|
1301
|
+
}
|
|
1302
|
+
],
|
|
1303
|
+
"title": "Stopped By"
|
|
1304
|
+
},
|
|
1305
|
+
"stopped_by_user": {
|
|
1306
|
+
"anyOf": [
|
|
1307
|
+
{
|
|
1308
|
+
"$ref": "#/components/schemas/GithubAccountSnippet"
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"type": "null"
|
|
1312
|
+
}
|
|
1313
|
+
]
|
|
1314
|
+
},
|
|
1315
|
+
"surface": {
|
|
1316
|
+
"anyOf": [
|
|
1317
|
+
{
|
|
1318
|
+
"$ref": "#/components/schemas/SessionSurface"
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"type": "null"
|
|
1322
|
+
}
|
|
1323
|
+
]
|
|
1324
|
+
},
|
|
1325
|
+
"tokens_cache_creation": {
|
|
1326
|
+
"default": 0,
|
|
1327
|
+
"title": "Tokens Cache Creation",
|
|
1328
|
+
"type": "integer"
|
|
1329
|
+
},
|
|
1330
|
+
"tokens_cache_read": {
|
|
1331
|
+
"default": 0,
|
|
1332
|
+
"title": "Tokens Cache Read",
|
|
1333
|
+
"type": "integer"
|
|
1334
|
+
},
|
|
1335
|
+
"tokens_input": {
|
|
1336
|
+
"default": 0,
|
|
1337
|
+
"title": "Tokens Input",
|
|
1338
|
+
"type": "integer"
|
|
1339
|
+
},
|
|
1340
|
+
"tokens_model": {
|
|
1341
|
+
"title": "Tokens Model",
|
|
1342
|
+
"type": "string"
|
|
1343
|
+
},
|
|
1344
|
+
"tokens_output": {
|
|
1345
|
+
"default": 0,
|
|
1346
|
+
"title": "Tokens Output",
|
|
1347
|
+
"type": "integer"
|
|
1348
|
+
},
|
|
1349
|
+
"tokens_total": {
|
|
1350
|
+
"default": 0,
|
|
1351
|
+
"title": "Tokens Total",
|
|
1352
|
+
"type": "integer"
|
|
1353
|
+
},
|
|
1354
|
+
"updated_at": {
|
|
1355
|
+
"format": "date-time",
|
|
1356
|
+
"title": "Updated At",
|
|
1357
|
+
"type": "string"
|
|
1358
|
+
},
|
|
1359
|
+
"webhook_id": {
|
|
1360
|
+
"anyOf": [
|
|
1361
|
+
{
|
|
1362
|
+
"type": "string"
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"type": "null"
|
|
1366
|
+
}
|
|
1367
|
+
],
|
|
1368
|
+
"title": "Webhook Id"
|
|
1369
|
+
},
|
|
1370
|
+
"webhook_type": {
|
|
1371
|
+
"anyOf": [
|
|
1372
|
+
{
|
|
1373
|
+
"$ref": "#/components/schemas/WebhookType"
|
|
1374
|
+
},
|
|
1375
|
+
{
|
|
1376
|
+
"type": "null"
|
|
1377
|
+
}
|
|
1378
|
+
]
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1381
|
+
"required": [
|
|
1382
|
+
"id",
|
|
1383
|
+
"customer_id",
|
|
1384
|
+
"created_at",
|
|
1385
|
+
"updated_at",
|
|
1386
|
+
"harness",
|
|
1387
|
+
"source",
|
|
1388
|
+
"cost_tokens",
|
|
1389
|
+
"tokens_model",
|
|
1390
|
+
"resolved_budget_cents",
|
|
1391
|
+
"resolved_budget_source",
|
|
1392
|
+
"status",
|
|
1393
|
+
"prompting"
|
|
1394
|
+
],
|
|
1395
|
+
"title": "AgentSessionWire",
|
|
1396
|
+
"type": "object"
|
|
1397
|
+
},
|
|
1398
|
+
"AgentTurn": {
|
|
1399
|
+
"description": "One exchange within a session: a single Claude Code execution driven by the\nsession's inbox. Over subsequent slices this absorbs the per-execution fields\n(status, cost, tokens, exit_status) that currently live on agent_sessions.",
|
|
1400
|
+
"properties": {
|
|
1401
|
+
"agent_session_id": {
|
|
1402
|
+
"title": "Agent Session Id",
|
|
1403
|
+
"type": "string"
|
|
1404
|
+
},
|
|
1405
|
+
"completed_at": {
|
|
1406
|
+
"anyOf": [
|
|
1407
|
+
{
|
|
1408
|
+
"format": "date-time",
|
|
1409
|
+
"type": "string"
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"type": "null"
|
|
1413
|
+
}
|
|
1414
|
+
],
|
|
1415
|
+
"title": "Completed At"
|
|
1416
|
+
},
|
|
1417
|
+
"cost_fee": {
|
|
1418
|
+
"default": 0,
|
|
1419
|
+
"title": "Cost Fee",
|
|
1420
|
+
"type": "integer"
|
|
1421
|
+
},
|
|
1422
|
+
"cost_sandbox_cpu": {
|
|
1423
|
+
"default": 0,
|
|
1424
|
+
"title": "Cost Sandbox Cpu",
|
|
1425
|
+
"type": "integer"
|
|
1426
|
+
},
|
|
1427
|
+
"cost_sandbox_memory": {
|
|
1428
|
+
"default": 0,
|
|
1429
|
+
"title": "Cost Sandbox Memory",
|
|
1430
|
+
"type": "integer"
|
|
1431
|
+
},
|
|
1432
|
+
"cost_tokens": {
|
|
1433
|
+
"default": 0,
|
|
1434
|
+
"title": "Cost Tokens",
|
|
1435
|
+
"type": "integer"
|
|
1436
|
+
},
|
|
1437
|
+
"created_at": {
|
|
1438
|
+
"format": "date-time",
|
|
1439
|
+
"title": "Created At",
|
|
1440
|
+
"type": "string"
|
|
1441
|
+
},
|
|
1442
|
+
"exit_status": {
|
|
1443
|
+
"anyOf": [
|
|
1444
|
+
{
|
|
1445
|
+
"$ref": "#/components/schemas/AgentSessionExitStatus"
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"type": "null"
|
|
1449
|
+
}
|
|
1450
|
+
]
|
|
1451
|
+
},
|
|
1452
|
+
"id": {
|
|
1453
|
+
"title": "Id",
|
|
1454
|
+
"type": "string"
|
|
1455
|
+
},
|
|
1456
|
+
"react_action": {
|
|
1457
|
+
"anyOf": [
|
|
1458
|
+
{
|
|
1459
|
+
"type": "string"
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
"type": "null"
|
|
1463
|
+
}
|
|
1464
|
+
],
|
|
1465
|
+
"title": "React Action"
|
|
1466
|
+
},
|
|
1467
|
+
"sandbox_id": {
|
|
1468
|
+
"anyOf": [
|
|
1469
|
+
{
|
|
1470
|
+
"type": "string"
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
"type": "null"
|
|
1474
|
+
}
|
|
1475
|
+
],
|
|
1476
|
+
"title": "Sandbox Id"
|
|
1477
|
+
},
|
|
1478
|
+
"session_execution_id": {
|
|
1479
|
+
"anyOf": [
|
|
1480
|
+
{
|
|
1481
|
+
"type": "string"
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
"type": "null"
|
|
1485
|
+
}
|
|
1486
|
+
],
|
|
1487
|
+
"title": "Session Execution Id"
|
|
1488
|
+
},
|
|
1489
|
+
"started_at": {
|
|
1490
|
+
"anyOf": [
|
|
1491
|
+
{
|
|
1492
|
+
"format": "date-time",
|
|
1493
|
+
"type": "string"
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
"type": "null"
|
|
1497
|
+
}
|
|
1498
|
+
],
|
|
1499
|
+
"title": "Started At"
|
|
1500
|
+
},
|
|
1501
|
+
"status": {
|
|
1502
|
+
"$ref": "#/components/schemas/AgentTurnStatus"
|
|
1503
|
+
},
|
|
1504
|
+
"status_reason": {
|
|
1505
|
+
"anyOf": [
|
|
1506
|
+
{
|
|
1507
|
+
"type": "string"
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"type": "null"
|
|
1511
|
+
}
|
|
1512
|
+
],
|
|
1513
|
+
"title": "Status Reason"
|
|
1514
|
+
},
|
|
1515
|
+
"tokens_cache_creation": {
|
|
1516
|
+
"default": 0,
|
|
1517
|
+
"title": "Tokens Cache Creation",
|
|
1518
|
+
"type": "integer"
|
|
1519
|
+
},
|
|
1520
|
+
"tokens_cache_read": {
|
|
1521
|
+
"default": 0,
|
|
1522
|
+
"title": "Tokens Cache Read",
|
|
1523
|
+
"type": "integer"
|
|
1524
|
+
},
|
|
1525
|
+
"tokens_input": {
|
|
1526
|
+
"default": 0,
|
|
1527
|
+
"title": "Tokens Input",
|
|
1528
|
+
"type": "integer"
|
|
1529
|
+
},
|
|
1530
|
+
"tokens_model": {
|
|
1531
|
+
"anyOf": [
|
|
1532
|
+
{
|
|
1533
|
+
"type": "string"
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
"type": "null"
|
|
1537
|
+
}
|
|
1538
|
+
],
|
|
1539
|
+
"title": "Tokens Model"
|
|
1540
|
+
},
|
|
1541
|
+
"tokens_output": {
|
|
1542
|
+
"default": 0,
|
|
1543
|
+
"title": "Tokens Output",
|
|
1544
|
+
"type": "integer"
|
|
1545
|
+
},
|
|
1546
|
+
"tokens_total": {
|
|
1547
|
+
"default": 0,
|
|
1548
|
+
"title": "Tokens Total",
|
|
1549
|
+
"type": "integer"
|
|
1550
|
+
},
|
|
1551
|
+
"turn_index": {
|
|
1552
|
+
"title": "Turn Index",
|
|
1553
|
+
"type": "integer"
|
|
1554
|
+
},
|
|
1555
|
+
"updated_at": {
|
|
1556
|
+
"format": "date-time",
|
|
1557
|
+
"title": "Updated At",
|
|
1558
|
+
"type": "string"
|
|
1559
|
+
},
|
|
1560
|
+
"webhook_id": {
|
|
1561
|
+
"anyOf": [
|
|
1562
|
+
{
|
|
1563
|
+
"type": "string"
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
"type": "null"
|
|
1567
|
+
}
|
|
1568
|
+
],
|
|
1569
|
+
"title": "Webhook Id"
|
|
1570
|
+
},
|
|
1571
|
+
"webhook_type": {
|
|
1572
|
+
"anyOf": [
|
|
1573
|
+
{
|
|
1574
|
+
"$ref": "#/components/schemas/WebhookType"
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
"type": "null"
|
|
1578
|
+
}
|
|
1579
|
+
]
|
|
1580
|
+
}
|
|
1581
|
+
},
|
|
1582
|
+
"required": [
|
|
1583
|
+
"id",
|
|
1584
|
+
"agent_session_id",
|
|
1585
|
+
"turn_index",
|
|
1586
|
+
"created_at",
|
|
1587
|
+
"updated_at",
|
|
1588
|
+
"status"
|
|
1589
|
+
],
|
|
1590
|
+
"title": "AgentTurn",
|
|
1591
|
+
"type": "object"
|
|
1592
|
+
},
|
|
1593
|
+
"AgentTurnStatus": {
|
|
1594
|
+
"enum": [
|
|
1595
|
+
"scheduled",
|
|
1596
|
+
"running",
|
|
1597
|
+
"completed",
|
|
1598
|
+
"error",
|
|
1599
|
+
"cancelled"
|
|
1600
|
+
],
|
|
1601
|
+
"title": "AgentTurnStatus",
|
|
1602
|
+
"type": "string"
|
|
1603
|
+
},
|
|
1604
|
+
"AttributionType": {
|
|
1605
|
+
"enum": [
|
|
1606
|
+
"github_user",
|
|
1607
|
+
"linear_user",
|
|
1608
|
+
"slack_user",
|
|
1609
|
+
"api_key"
|
|
1610
|
+
],
|
|
1611
|
+
"title": "AttributionType",
|
|
1612
|
+
"type": "string"
|
|
1613
|
+
},
|
|
1614
|
+
"BudgetSource": {
|
|
1615
|
+
"description": "Which layer actually determined the enforced budget.\n\nNot derivable from the run row alone (the run does not store the config\ncents or the customer default), so we persist it for the UI / audit.",
|
|
1616
|
+
"enum": [
|
|
1617
|
+
"system",
|
|
1618
|
+
"account",
|
|
1619
|
+
"config",
|
|
1620
|
+
"run"
|
|
1621
|
+
],
|
|
1622
|
+
"title": "BudgetSource",
|
|
1623
|
+
"type": "string"
|
|
1624
|
+
},
|
|
1625
|
+
"CreateReviewRequest": {
|
|
1626
|
+
"description": "Two targets, distinguished by which fields are present: an existing PR\n(`pull_request_number`) or a pushed branch (`branch` + `sha`, the local\npath \u2014 the platform finds-or-creates the draft PR).",
|
|
1627
|
+
"properties": {
|
|
1628
|
+
"branch": {
|
|
1629
|
+
"anyOf": [
|
|
1630
|
+
{
|
|
1631
|
+
"type": "string"
|
|
1632
|
+
},
|
|
1633
|
+
{
|
|
1634
|
+
"type": "null"
|
|
1635
|
+
}
|
|
1636
|
+
],
|
|
1637
|
+
"title": "Branch"
|
|
1638
|
+
},
|
|
1639
|
+
"budget": {
|
|
1640
|
+
"anyOf": [
|
|
1641
|
+
{
|
|
1642
|
+
"type": "number"
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
"type": "null"
|
|
1646
|
+
}
|
|
1647
|
+
],
|
|
1648
|
+
"title": "Budget"
|
|
1649
|
+
},
|
|
1650
|
+
"config": {
|
|
1651
|
+
"anyOf": [
|
|
1652
|
+
{
|
|
1653
|
+
"$ref": "#/components/schemas/AgentConfig"
|
|
1654
|
+
},
|
|
1655
|
+
{
|
|
1656
|
+
"type": "null"
|
|
1657
|
+
}
|
|
1658
|
+
]
|
|
1659
|
+
},
|
|
1660
|
+
"config_id": {
|
|
1661
|
+
"anyOf": [
|
|
1662
|
+
{
|
|
1663
|
+
"type": "string"
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
"type": "null"
|
|
1667
|
+
}
|
|
1668
|
+
],
|
|
1669
|
+
"title": "Config Id"
|
|
1670
|
+
},
|
|
1671
|
+
"config_override": {
|
|
1672
|
+
"anyOf": [
|
|
1673
|
+
{
|
|
1674
|
+
"additionalProperties": true,
|
|
1675
|
+
"type": "object"
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
"type": "null"
|
|
1679
|
+
}
|
|
1680
|
+
],
|
|
1681
|
+
"title": "Config Override"
|
|
1682
|
+
},
|
|
1683
|
+
"config_override_yaml": {
|
|
1684
|
+
"anyOf": [
|
|
1685
|
+
{
|
|
1686
|
+
"type": "string"
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
"type": "null"
|
|
1690
|
+
}
|
|
1691
|
+
],
|
|
1692
|
+
"title": "Config Override Yaml"
|
|
1693
|
+
},
|
|
1694
|
+
"metadata": {
|
|
1695
|
+
"additionalProperties": {
|
|
1696
|
+
"type": "string"
|
|
1697
|
+
},
|
|
1698
|
+
"default": {},
|
|
1699
|
+
"title": "Metadata",
|
|
1700
|
+
"type": "object"
|
|
1701
|
+
},
|
|
1702
|
+
"model": {
|
|
1703
|
+
"anyOf": [
|
|
1704
|
+
{
|
|
1705
|
+
"type": "string"
|
|
1706
|
+
},
|
|
1707
|
+
{
|
|
1708
|
+
"type": "null"
|
|
1709
|
+
}
|
|
1710
|
+
],
|
|
1711
|
+
"title": "Model"
|
|
1712
|
+
},
|
|
1713
|
+
"owner": {
|
|
1714
|
+
"title": "Owner",
|
|
1715
|
+
"type": "string"
|
|
1716
|
+
},
|
|
1717
|
+
"post": {
|
|
1718
|
+
"default": true,
|
|
1719
|
+
"title": "Post",
|
|
1720
|
+
"type": "boolean"
|
|
1721
|
+
},
|
|
1722
|
+
"pull_request_number": {
|
|
1723
|
+
"anyOf": [
|
|
1724
|
+
{
|
|
1725
|
+
"type": "integer"
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
"type": "null"
|
|
1729
|
+
}
|
|
1730
|
+
],
|
|
1731
|
+
"title": "Pull Request Number"
|
|
1732
|
+
},
|
|
1733
|
+
"repo": {
|
|
1734
|
+
"title": "Repo",
|
|
1735
|
+
"type": "string"
|
|
1736
|
+
},
|
|
1737
|
+
"scope": {
|
|
1738
|
+
"$ref": "#/components/schemas/ReviewScope",
|
|
1739
|
+
"default": {
|
|
1740
|
+
"kind": "incremental"
|
|
1741
|
+
}
|
|
1742
|
+
},
|
|
1743
|
+
"sha": {
|
|
1744
|
+
"anyOf": [
|
|
1745
|
+
{
|
|
1746
|
+
"type": "string"
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
"type": "null"
|
|
1750
|
+
}
|
|
1751
|
+
],
|
|
1752
|
+
"title": "Sha"
|
|
1753
|
+
}
|
|
1754
|
+
},
|
|
1755
|
+
"required": [
|
|
1756
|
+
"owner",
|
|
1757
|
+
"repo"
|
|
1758
|
+
],
|
|
1759
|
+
"title": "CreateReviewRequest",
|
|
1760
|
+
"type": "object"
|
|
1761
|
+
},
|
|
1762
|
+
"DefaultResolution": {
|
|
1763
|
+
"description": "How a session that arrived with no explicit config source resolved its\nconfig (documents/eng/DEFAULT_CONFIGS.md \u00a74). Persisted on the session so\naudit and clients can say \"ran under X (repo default)\". A session started\nwith an explicit config/config_id/template_id never enters resolution and\nstores None.",
|
|
1764
|
+
"enum": [
|
|
1765
|
+
"repo_default",
|
|
1766
|
+
"account_default",
|
|
1767
|
+
"none"
|
|
1768
|
+
],
|
|
1769
|
+
"title": "DefaultResolution",
|
|
1770
|
+
"type": "string"
|
|
1771
|
+
},
|
|
1772
|
+
"EffortLevel": {
|
|
1773
|
+
"enum": [
|
|
1774
|
+
"low",
|
|
1775
|
+
"medium",
|
|
1776
|
+
"high",
|
|
1777
|
+
"xhigh",
|
|
1778
|
+
"max"
|
|
1779
|
+
],
|
|
1780
|
+
"title": "EffortLevel",
|
|
1781
|
+
"type": "string"
|
|
1782
|
+
},
|
|
1783
|
+
"ExecutionStatus": {
|
|
1784
|
+
"description": "Per-execution status ladder (was AgentProcessStatus). Distinct from the\nsession's durable `session_state` and from `agent_sessions.status`, which\nremains the atomic claim/dispatch guard.",
|
|
1785
|
+
"enum": [
|
|
1786
|
+
"running",
|
|
1787
|
+
"failed",
|
|
1788
|
+
"done"
|
|
1789
|
+
],
|
|
1790
|
+
"title": "ExecutionStatus",
|
|
1791
|
+
"type": "string"
|
|
1792
|
+
},
|
|
1793
|
+
"Finding": {
|
|
1794
|
+
"description": "One parsed finding (shape v1). Line anchors are file line numbers on\n`side` (RIGHT = the new file, LEFT = the old file \u2014 a finding on deleted\ncode).",
|
|
1795
|
+
"properties": {
|
|
1796
|
+
"anchor": {
|
|
1797
|
+
"$ref": "#/components/schemas/FindingAnchor",
|
|
1798
|
+
"default": "not_commentable"
|
|
1799
|
+
},
|
|
1800
|
+
"category": {
|
|
1801
|
+
"default": "other",
|
|
1802
|
+
"title": "Category",
|
|
1803
|
+
"type": "string"
|
|
1804
|
+
},
|
|
1805
|
+
"claim": {
|
|
1806
|
+
"title": "Claim",
|
|
1807
|
+
"type": "string"
|
|
1808
|
+
},
|
|
1809
|
+
"confidence": {
|
|
1810
|
+
"anyOf": [
|
|
1811
|
+
{
|
|
1812
|
+
"type": "number"
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
"type": "null"
|
|
1816
|
+
}
|
|
1817
|
+
],
|
|
1818
|
+
"title": "Confidence"
|
|
1819
|
+
},
|
|
1820
|
+
"end_line": {
|
|
1821
|
+
"title": "End Line",
|
|
1822
|
+
"type": "integer"
|
|
1823
|
+
},
|
|
1824
|
+
"evidence": {
|
|
1825
|
+
"default": "",
|
|
1826
|
+
"title": "Evidence",
|
|
1827
|
+
"type": "string"
|
|
1828
|
+
},
|
|
1829
|
+
"extra": {
|
|
1830
|
+
"additionalProperties": true,
|
|
1831
|
+
"default": {},
|
|
1832
|
+
"title": "Extra",
|
|
1833
|
+
"type": "object"
|
|
1834
|
+
},
|
|
1835
|
+
"in_scope": {
|
|
1836
|
+
"anyOf": [
|
|
1837
|
+
{
|
|
1838
|
+
"type": "boolean"
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
"type": "null"
|
|
1842
|
+
}
|
|
1843
|
+
],
|
|
1844
|
+
"title": "In Scope"
|
|
1845
|
+
},
|
|
1846
|
+
"path": {
|
|
1847
|
+
"title": "Path",
|
|
1848
|
+
"type": "string"
|
|
1849
|
+
},
|
|
1850
|
+
"severity": {
|
|
1851
|
+
"default": 3,
|
|
1852
|
+
"title": "Severity",
|
|
1853
|
+
"type": "integer"
|
|
1854
|
+
},
|
|
1855
|
+
"side": {
|
|
1856
|
+
"default": "RIGHT",
|
|
1857
|
+
"title": "Side",
|
|
1858
|
+
"type": "string"
|
|
1859
|
+
},
|
|
1860
|
+
"snapped_from": {
|
|
1861
|
+
"anyOf": [
|
|
1862
|
+
{
|
|
1863
|
+
"maxItems": 2,
|
|
1864
|
+
"minItems": 2,
|
|
1865
|
+
"prefixItems": [
|
|
1866
|
+
{
|
|
1867
|
+
"type": "integer"
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
"type": "integer"
|
|
1871
|
+
}
|
|
1872
|
+
],
|
|
1873
|
+
"type": "array"
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
"type": "null"
|
|
1877
|
+
}
|
|
1878
|
+
],
|
|
1879
|
+
"title": "Snapped From"
|
|
1880
|
+
},
|
|
1881
|
+
"start_line": {
|
|
1882
|
+
"title": "Start Line",
|
|
1883
|
+
"type": "integer"
|
|
1884
|
+
},
|
|
1885
|
+
"suggested_fix": {
|
|
1886
|
+
"anyOf": [
|
|
1887
|
+
{
|
|
1888
|
+
"type": "string"
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
"type": "null"
|
|
1892
|
+
}
|
|
1893
|
+
],
|
|
1894
|
+
"title": "Suggested Fix"
|
|
1895
|
+
}
|
|
1896
|
+
},
|
|
1897
|
+
"required": [
|
|
1898
|
+
"path",
|
|
1899
|
+
"start_line",
|
|
1900
|
+
"end_line",
|
|
1901
|
+
"claim"
|
|
1902
|
+
],
|
|
1903
|
+
"title": "Finding",
|
|
1904
|
+
"type": "object"
|
|
1905
|
+
},
|
|
1906
|
+
"FindingAnchor": {
|
|
1907
|
+
"description": "Where a finding's line anchor landed relative to the PR diff.",
|
|
1908
|
+
"enum": [
|
|
1909
|
+
"valid",
|
|
1910
|
+
"snapped",
|
|
1911
|
+
"not_commentable"
|
|
1912
|
+
],
|
|
1913
|
+
"title": "FindingAnchor",
|
|
1914
|
+
"type": "string"
|
|
1915
|
+
},
|
|
1916
|
+
"GithubAccountSnippet": {
|
|
1917
|
+
"description": "Sometimes the GitHub API returns a user of github (can include bots)\nusing this snippet instead of the full GithubAccount model. One example,\nis when the API returns a pull request.\n\nThis is the least amount of info we need to represent a GitHub account.",
|
|
1918
|
+
"properties": {
|
|
1919
|
+
"avatar_url": {
|
|
1920
|
+
"title": "Avatar Url",
|
|
1921
|
+
"type": "string"
|
|
1922
|
+
},
|
|
1923
|
+
"id": {
|
|
1924
|
+
"title": "Id",
|
|
1925
|
+
"type": "integer"
|
|
1926
|
+
},
|
|
1927
|
+
"login": {
|
|
1928
|
+
"title": "Login",
|
|
1929
|
+
"type": "string"
|
|
1930
|
+
},
|
|
1931
|
+
"type": {
|
|
1932
|
+
"$ref": "#/components/schemas/GithubAccountType"
|
|
1933
|
+
}
|
|
1934
|
+
},
|
|
1935
|
+
"required": [
|
|
1936
|
+
"id",
|
|
1937
|
+
"login",
|
|
1938
|
+
"type",
|
|
1939
|
+
"avatar_url"
|
|
1940
|
+
],
|
|
1941
|
+
"title": "GithubAccountSnippet",
|
|
1942
|
+
"type": "object"
|
|
1943
|
+
},
|
|
1944
|
+
"GithubAccountType": {
|
|
1945
|
+
"enum": [
|
|
1946
|
+
"User",
|
|
1947
|
+
"Organization",
|
|
1948
|
+
"Bot",
|
|
1949
|
+
"Mannequin"
|
|
1950
|
+
],
|
|
1951
|
+
"title": "GithubAccountType",
|
|
1952
|
+
"type": "string"
|
|
1953
|
+
},
|
|
1954
|
+
"HTTPValidationError": {
|
|
1955
|
+
"properties": {
|
|
1956
|
+
"detail": {
|
|
1957
|
+
"items": {
|
|
1958
|
+
"$ref": "#/components/schemas/ValidationError"
|
|
1959
|
+
},
|
|
1960
|
+
"title": "Detail",
|
|
1961
|
+
"type": "array"
|
|
1962
|
+
}
|
|
1963
|
+
},
|
|
1964
|
+
"title": "HTTPValidationError",
|
|
1965
|
+
"type": "object"
|
|
1966
|
+
},
|
|
1967
|
+
"Harness": {
|
|
1968
|
+
"enum": [
|
|
1969
|
+
"claude_code"
|
|
1970
|
+
],
|
|
1971
|
+
"title": "Harness",
|
|
1972
|
+
"type": "string"
|
|
1973
|
+
},
|
|
1974
|
+
"IssueAction": {
|
|
1975
|
+
"enum": [
|
|
1976
|
+
"opened",
|
|
1977
|
+
"closed",
|
|
1978
|
+
"commented"
|
|
1979
|
+
],
|
|
1980
|
+
"title": "IssueAction",
|
|
1981
|
+
"type": "string"
|
|
1982
|
+
},
|
|
1983
|
+
"LinearIssueAction": {
|
|
1984
|
+
"enum": [
|
|
1985
|
+
"opened"
|
|
1986
|
+
],
|
|
1987
|
+
"title": "LinearIssueAction",
|
|
1988
|
+
"type": "string"
|
|
1989
|
+
},
|
|
1990
|
+
"ListReviewsResponse": {
|
|
1991
|
+
"properties": {
|
|
1992
|
+
"reviews": {
|
|
1993
|
+
"items": {
|
|
1994
|
+
"$ref": "#/components/schemas/Review"
|
|
1995
|
+
},
|
|
1996
|
+
"title": "Reviews",
|
|
1997
|
+
"type": "array"
|
|
1998
|
+
}
|
|
1999
|
+
},
|
|
2000
|
+
"required": [
|
|
2001
|
+
"reviews"
|
|
2002
|
+
],
|
|
2003
|
+
"title": "ListReviewsResponse",
|
|
2004
|
+
"type": "object"
|
|
2005
|
+
},
|
|
2006
|
+
"ListSessionExecutionsResponse": {
|
|
2007
|
+
"properties": {
|
|
2008
|
+
"executions": {
|
|
2009
|
+
"items": {
|
|
2010
|
+
"$ref": "#/components/schemas/SessionExecutionWire"
|
|
2011
|
+
},
|
|
2012
|
+
"title": "Executions",
|
|
2013
|
+
"type": "array"
|
|
2014
|
+
}
|
|
2015
|
+
},
|
|
2016
|
+
"required": [
|
|
2017
|
+
"executions"
|
|
2018
|
+
],
|
|
2019
|
+
"title": "ListSessionExecutionsResponse",
|
|
2020
|
+
"type": "object"
|
|
2021
|
+
},
|
|
2022
|
+
"ListSessionRecordsResponse": {
|
|
2023
|
+
"properties": {
|
|
2024
|
+
"earliest_feed_seq": {
|
|
2025
|
+
"anyOf": [
|
|
2026
|
+
{
|
|
2027
|
+
"type": "integer"
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
"type": "null"
|
|
2031
|
+
}
|
|
2032
|
+
],
|
|
2033
|
+
"title": "Earliest Feed Seq"
|
|
2034
|
+
},
|
|
2035
|
+
"has_more": {
|
|
2036
|
+
"default": false,
|
|
2037
|
+
"title": "Has More",
|
|
2038
|
+
"type": "boolean"
|
|
2039
|
+
},
|
|
2040
|
+
"messages": {
|
|
2041
|
+
"default": [],
|
|
2042
|
+
"items": {
|
|
2043
|
+
"$ref": "#/components/schemas/SessionMessageWire"
|
|
2044
|
+
},
|
|
2045
|
+
"title": "Messages",
|
|
2046
|
+
"type": "array"
|
|
2047
|
+
},
|
|
2048
|
+
"records": {
|
|
2049
|
+
"items": {
|
|
2050
|
+
"$ref": "#/components/schemas/SessionRecordWire"
|
|
2051
|
+
},
|
|
2052
|
+
"title": "Records",
|
|
2053
|
+
"type": "array"
|
|
856
2054
|
}
|
|
857
2055
|
},
|
|
858
2056
|
"required": [
|
|
859
2057
|
"records"
|
|
860
2058
|
],
|
|
861
|
-
"title": "ListSessionRecordsResponse",
|
|
2059
|
+
"title": "ListSessionRecordsResponse",
|
|
2060
|
+
"type": "object"
|
|
2061
|
+
},
|
|
2062
|
+
"ListSessionTurnsResponse": {
|
|
2063
|
+
"properties": {
|
|
2064
|
+
"messages": {
|
|
2065
|
+
"items": {
|
|
2066
|
+
"$ref": "#/components/schemas/SessionMessage"
|
|
2067
|
+
},
|
|
2068
|
+
"title": "Messages",
|
|
2069
|
+
"type": "array"
|
|
2070
|
+
},
|
|
2071
|
+
"turns": {
|
|
2072
|
+
"items": {
|
|
2073
|
+
"$ref": "#/components/schemas/AgentTurn"
|
|
2074
|
+
},
|
|
2075
|
+
"title": "Turns",
|
|
2076
|
+
"type": "array"
|
|
2077
|
+
}
|
|
2078
|
+
},
|
|
2079
|
+
"required": [
|
|
2080
|
+
"turns",
|
|
2081
|
+
"messages"
|
|
2082
|
+
],
|
|
2083
|
+
"title": "ListSessionTurnsResponse",
|
|
2084
|
+
"type": "object"
|
|
2085
|
+
},
|
|
2086
|
+
"ModelTokensInfo": {
|
|
2087
|
+
"properties": {
|
|
2088
|
+
"cache_creation_input_tokens": {
|
|
2089
|
+
"default": 0,
|
|
2090
|
+
"title": "Cache Creation Input Tokens",
|
|
2091
|
+
"type": "integer"
|
|
2092
|
+
},
|
|
2093
|
+
"cache_read_input_tokens": {
|
|
2094
|
+
"default": 0,
|
|
2095
|
+
"title": "Cache Read Input Tokens",
|
|
2096
|
+
"type": "integer"
|
|
2097
|
+
},
|
|
2098
|
+
"cost_usd": {
|
|
2099
|
+
"default": 0,
|
|
2100
|
+
"title": "Cost Usd",
|
|
2101
|
+
"type": "number"
|
|
2102
|
+
},
|
|
2103
|
+
"input_tokens": {
|
|
2104
|
+
"default": 0,
|
|
2105
|
+
"title": "Input Tokens",
|
|
2106
|
+
"type": "integer"
|
|
2107
|
+
},
|
|
2108
|
+
"output_tokens": {
|
|
2109
|
+
"default": 0,
|
|
2110
|
+
"title": "Output Tokens",
|
|
2111
|
+
"type": "integer"
|
|
2112
|
+
}
|
|
2113
|
+
},
|
|
2114
|
+
"title": "ModelTokensInfo",
|
|
2115
|
+
"type": "object"
|
|
2116
|
+
},
|
|
2117
|
+
"ParentKind": {
|
|
2118
|
+
"description": "How a session relates to its predecessor (parent_agent_session_id) \u2014\nthe ONE \"preceded-by\" chain for every predecessor relationship. Routing\nreads this when the distinction matters.\n\nCONTINUATION \u2014 a follow-up in the same conversation surface (e.g. a Slack\nthread reply spawning a fresh session on the same thread).\nHANDOFF \u2014 a session started to take over work from another surface (e.g.\nlaptop \u2192 cloud handoff; later phase).\nRESUME \u2014 a conversation re-hosted on a new box after its sandbox was torn\ndown (interactive platform; later phase).",
|
|
2119
|
+
"enum": [
|
|
2120
|
+
"continuation",
|
|
2121
|
+
"handoff",
|
|
2122
|
+
"resume"
|
|
2123
|
+
],
|
|
2124
|
+
"title": "ParentKind",
|
|
2125
|
+
"type": "string"
|
|
2126
|
+
},
|
|
2127
|
+
"PromptBlockedReason": {
|
|
2128
|
+
"description": "Why direct prompting is refused. Absent when prompting is allowed.",
|
|
2129
|
+
"enum": [
|
|
2130
|
+
"mention_surface",
|
|
2131
|
+
"ephemeral_trigger",
|
|
2132
|
+
"non_interactive",
|
|
2133
|
+
"closed",
|
|
2134
|
+
"laptop"
|
|
2135
|
+
],
|
|
2136
|
+
"title": "PromptBlockedReason",
|
|
2137
|
+
"type": "string"
|
|
2138
|
+
},
|
|
2139
|
+
"PullRequestAction": {
|
|
2140
|
+
"enum": [
|
|
2141
|
+
"opened",
|
|
2142
|
+
"pushed",
|
|
2143
|
+
"merged",
|
|
2144
|
+
"closed",
|
|
2145
|
+
"review_submitted",
|
|
2146
|
+
"commented"
|
|
2147
|
+
],
|
|
2148
|
+
"title": "PullRequestAction",
|
|
2149
|
+
"type": "string"
|
|
2150
|
+
},
|
|
2151
|
+
"ReactAudience": {
|
|
2152
|
+
"additionalProperties": false,
|
|
2153
|
+
"description": "Who may trigger a react surface, classified on the stable entity author\n(the pusher for `push`). The set is include minus exclude: an author matches\niff they are in the include set (`users`/`bots`) AND not in an exclude set.\n\n`users`/`bots` each accept `True` (all humans / all bots), a list of logins,\nor `[]`/`False` (none). Logins are resolved to account ids at save time.",
|
|
2154
|
+
"properties": {
|
|
2155
|
+
"bots": {
|
|
2156
|
+
"anyOf": [
|
|
2157
|
+
{
|
|
2158
|
+
"items": {
|
|
2159
|
+
"type": "string"
|
|
2160
|
+
},
|
|
2161
|
+
"type": "array"
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
"type": "boolean"
|
|
2165
|
+
}
|
|
2166
|
+
],
|
|
2167
|
+
"default": false,
|
|
2168
|
+
"title": "Bots"
|
|
2169
|
+
},
|
|
2170
|
+
"exclude_bots": {
|
|
2171
|
+
"default": [],
|
|
2172
|
+
"items": {
|
|
2173
|
+
"type": "string"
|
|
2174
|
+
},
|
|
2175
|
+
"title": "Exclude Bots",
|
|
2176
|
+
"type": "array"
|
|
2177
|
+
},
|
|
2178
|
+
"exclude_users": {
|
|
2179
|
+
"default": [],
|
|
2180
|
+
"items": {
|
|
2181
|
+
"type": "string"
|
|
2182
|
+
},
|
|
2183
|
+
"title": "Exclude Users",
|
|
2184
|
+
"type": "array"
|
|
2185
|
+
},
|
|
2186
|
+
"users": {
|
|
2187
|
+
"anyOf": [
|
|
2188
|
+
{
|
|
2189
|
+
"items": {
|
|
2190
|
+
"type": "string"
|
|
2191
|
+
},
|
|
2192
|
+
"type": "array"
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
"type": "boolean"
|
|
2196
|
+
}
|
|
2197
|
+
],
|
|
2198
|
+
"default": true,
|
|
2199
|
+
"title": "Users"
|
|
2200
|
+
}
|
|
2201
|
+
},
|
|
2202
|
+
"title": "ReactAudience",
|
|
2203
|
+
"type": "object"
|
|
2204
|
+
},
|
|
2205
|
+
"ReactCodeReview": {
|
|
2206
|
+
"additionalProperties": false,
|
|
2207
|
+
"description": "Action-less: reviews the unreviewed delta (watermark...head) on every head\nadvance of a matched PR, never re-commenting reviewed lines. Its entity is\nthe pull request; it reuses the `pull_request` filter set minus `on`.",
|
|
2208
|
+
"properties": {
|
|
2209
|
+
"base": {
|
|
2210
|
+
"default": [],
|
|
2211
|
+
"items": {
|
|
2212
|
+
"type": "string"
|
|
2213
|
+
},
|
|
2214
|
+
"title": "Base",
|
|
2215
|
+
"type": "array"
|
|
2216
|
+
},
|
|
2217
|
+
"draft": {
|
|
2218
|
+
"anyOf": [
|
|
2219
|
+
{
|
|
2220
|
+
"type": "boolean"
|
|
2221
|
+
},
|
|
2222
|
+
{
|
|
2223
|
+
"type": "null"
|
|
2224
|
+
}
|
|
2225
|
+
],
|
|
2226
|
+
"title": "Draft"
|
|
2227
|
+
},
|
|
2228
|
+
"for": {
|
|
2229
|
+
"$ref": "#/components/schemas/ReactAudience"
|
|
2230
|
+
},
|
|
2231
|
+
"head": {
|
|
2232
|
+
"default": [],
|
|
2233
|
+
"items": {
|
|
2234
|
+
"type": "string"
|
|
2235
|
+
},
|
|
2236
|
+
"title": "Head",
|
|
2237
|
+
"type": "array"
|
|
2238
|
+
},
|
|
2239
|
+
"labels": {
|
|
2240
|
+
"default": [],
|
|
2241
|
+
"items": {
|
|
2242
|
+
"type": "string"
|
|
2243
|
+
},
|
|
2244
|
+
"title": "Labels",
|
|
2245
|
+
"type": "array"
|
|
2246
|
+
},
|
|
2247
|
+
"paths": {
|
|
2248
|
+
"default": [],
|
|
2249
|
+
"items": {
|
|
2250
|
+
"type": "string"
|
|
2251
|
+
},
|
|
2252
|
+
"title": "Paths",
|
|
2253
|
+
"type": "array"
|
|
2254
|
+
},
|
|
2255
|
+
"repositories": {
|
|
2256
|
+
"default": [],
|
|
2257
|
+
"items": {
|
|
2258
|
+
"type": "string"
|
|
2259
|
+
},
|
|
2260
|
+
"title": "Repositories",
|
|
2261
|
+
"type": "array"
|
|
2262
|
+
}
|
|
2263
|
+
},
|
|
2264
|
+
"title": "ReactCodeReview",
|
|
2265
|
+
"type": "object"
|
|
2266
|
+
},
|
|
2267
|
+
"ReactIssue": {
|
|
2268
|
+
"additionalProperties": false,
|
|
2269
|
+
"properties": {
|
|
2270
|
+
"for": {
|
|
2271
|
+
"$ref": "#/components/schemas/ReactAudience"
|
|
2272
|
+
},
|
|
2273
|
+
"labels": {
|
|
2274
|
+
"default": [],
|
|
2275
|
+
"items": {
|
|
2276
|
+
"type": "string"
|
|
2277
|
+
},
|
|
2278
|
+
"title": "Labels",
|
|
2279
|
+
"type": "array"
|
|
2280
|
+
},
|
|
2281
|
+
"on": {
|
|
2282
|
+
"items": {
|
|
2283
|
+
"$ref": "#/components/schemas/IssueAction"
|
|
2284
|
+
},
|
|
2285
|
+
"title": "On",
|
|
2286
|
+
"type": "array"
|
|
2287
|
+
},
|
|
2288
|
+
"repositories": {
|
|
2289
|
+
"default": [],
|
|
2290
|
+
"items": {
|
|
2291
|
+
"type": "string"
|
|
2292
|
+
},
|
|
2293
|
+
"title": "Repositories",
|
|
2294
|
+
"type": "array"
|
|
2295
|
+
}
|
|
2296
|
+
},
|
|
2297
|
+
"required": [
|
|
2298
|
+
"on"
|
|
2299
|
+
],
|
|
2300
|
+
"title": "ReactIssue",
|
|
2301
|
+
"type": "object"
|
|
2302
|
+
},
|
|
2303
|
+
"ReactLinearIssue": {
|
|
2304
|
+
"additionalProperties": false,
|
|
2305
|
+
"properties": {
|
|
2306
|
+
"for": {
|
|
2307
|
+
"$ref": "#/components/schemas/ReactAudience"
|
|
2308
|
+
},
|
|
2309
|
+
"on": {
|
|
2310
|
+
"default": [
|
|
2311
|
+
"opened"
|
|
2312
|
+
],
|
|
2313
|
+
"items": {
|
|
2314
|
+
"$ref": "#/components/schemas/LinearIssueAction"
|
|
2315
|
+
},
|
|
2316
|
+
"title": "On",
|
|
2317
|
+
"type": "array"
|
|
2318
|
+
}
|
|
2319
|
+
},
|
|
2320
|
+
"title": "ReactLinearIssue",
|
|
2321
|
+
"type": "object"
|
|
2322
|
+
},
|
|
2323
|
+
"ReactPullRequest": {
|
|
2324
|
+
"additionalProperties": false,
|
|
2325
|
+
"properties": {
|
|
2326
|
+
"base": {
|
|
2327
|
+
"default": [],
|
|
2328
|
+
"items": {
|
|
2329
|
+
"type": "string"
|
|
2330
|
+
},
|
|
2331
|
+
"title": "Base",
|
|
2332
|
+
"type": "array"
|
|
2333
|
+
},
|
|
2334
|
+
"draft": {
|
|
2335
|
+
"anyOf": [
|
|
2336
|
+
{
|
|
2337
|
+
"type": "boolean"
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
"type": "null"
|
|
2341
|
+
}
|
|
2342
|
+
],
|
|
2343
|
+
"title": "Draft"
|
|
2344
|
+
},
|
|
2345
|
+
"for": {
|
|
2346
|
+
"$ref": "#/components/schemas/ReactAudience"
|
|
2347
|
+
},
|
|
2348
|
+
"head": {
|
|
2349
|
+
"default": [],
|
|
2350
|
+
"items": {
|
|
2351
|
+
"type": "string"
|
|
2352
|
+
},
|
|
2353
|
+
"title": "Head",
|
|
2354
|
+
"type": "array"
|
|
2355
|
+
},
|
|
2356
|
+
"labels": {
|
|
2357
|
+
"default": [],
|
|
2358
|
+
"items": {
|
|
2359
|
+
"type": "string"
|
|
2360
|
+
},
|
|
2361
|
+
"title": "Labels",
|
|
2362
|
+
"type": "array"
|
|
2363
|
+
},
|
|
2364
|
+
"on": {
|
|
2365
|
+
"items": {
|
|
2366
|
+
"$ref": "#/components/schemas/PullRequestAction"
|
|
2367
|
+
},
|
|
2368
|
+
"title": "On",
|
|
2369
|
+
"type": "array"
|
|
2370
|
+
},
|
|
2371
|
+
"paths": {
|
|
2372
|
+
"default": [],
|
|
2373
|
+
"items": {
|
|
2374
|
+
"type": "string"
|
|
2375
|
+
},
|
|
2376
|
+
"title": "Paths",
|
|
2377
|
+
"type": "array"
|
|
2378
|
+
},
|
|
2379
|
+
"repositories": {
|
|
2380
|
+
"default": [],
|
|
2381
|
+
"items": {
|
|
2382
|
+
"type": "string"
|
|
2383
|
+
},
|
|
2384
|
+
"title": "Repositories",
|
|
2385
|
+
"type": "array"
|
|
2386
|
+
}
|
|
2387
|
+
},
|
|
2388
|
+
"required": [
|
|
2389
|
+
"on"
|
|
2390
|
+
],
|
|
2391
|
+
"title": "ReactPullRequest",
|
|
862
2392
|
"type": "object"
|
|
863
2393
|
},
|
|
864
|
-
"
|
|
2394
|
+
"ReactPush": {
|
|
2395
|
+
"additionalProperties": false,
|
|
865
2396
|
"properties": {
|
|
866
|
-
"
|
|
2397
|
+
"branch": {
|
|
2398
|
+
"default": [],
|
|
867
2399
|
"items": {
|
|
868
|
-
"
|
|
2400
|
+
"type": "string"
|
|
869
2401
|
},
|
|
870
|
-
"title": "
|
|
2402
|
+
"title": "Branch",
|
|
871
2403
|
"type": "array"
|
|
872
2404
|
},
|
|
873
|
-
"
|
|
2405
|
+
"for": {
|
|
2406
|
+
"$ref": "#/components/schemas/ReactAudience"
|
|
2407
|
+
},
|
|
2408
|
+
"paths": {
|
|
2409
|
+
"default": [],
|
|
874
2410
|
"items": {
|
|
875
|
-
"
|
|
2411
|
+
"type": "string"
|
|
876
2412
|
},
|
|
877
|
-
"title": "
|
|
2413
|
+
"title": "Paths",
|
|
2414
|
+
"type": "array"
|
|
2415
|
+
},
|
|
2416
|
+
"repositories": {
|
|
2417
|
+
"default": [],
|
|
2418
|
+
"items": {
|
|
2419
|
+
"type": "string"
|
|
2420
|
+
},
|
|
2421
|
+
"title": "Repositories",
|
|
2422
|
+
"type": "array"
|
|
2423
|
+
}
|
|
2424
|
+
},
|
|
2425
|
+
"title": "ReactPush",
|
|
2426
|
+
"type": "object"
|
|
2427
|
+
},
|
|
2428
|
+
"ReactSentry": {
|
|
2429
|
+
"additionalProperties": false,
|
|
2430
|
+
"properties": {
|
|
2431
|
+
"on": {
|
|
2432
|
+
"items": {
|
|
2433
|
+
"$ref": "#/components/schemas/SentryAction"
|
|
2434
|
+
},
|
|
2435
|
+
"title": "On",
|
|
2436
|
+
"type": "array"
|
|
2437
|
+
},
|
|
2438
|
+
"projects": {
|
|
2439
|
+
"default": [],
|
|
2440
|
+
"items": {
|
|
2441
|
+
"type": "string"
|
|
2442
|
+
},
|
|
2443
|
+
"title": "Projects",
|
|
878
2444
|
"type": "array"
|
|
879
2445
|
}
|
|
880
2446
|
},
|
|
881
2447
|
"required": [
|
|
882
|
-
"
|
|
883
|
-
"messages"
|
|
2448
|
+
"on"
|
|
884
2449
|
],
|
|
885
|
-
"title": "
|
|
2450
|
+
"title": "ReactSentry",
|
|
886
2451
|
"type": "object"
|
|
887
2452
|
},
|
|
888
|
-
"
|
|
2453
|
+
"ReactSlackChannel": {
|
|
2454
|
+
"additionalProperties": false,
|
|
2455
|
+
"properties": {},
|
|
2456
|
+
"title": "ReactSlackChannel",
|
|
2457
|
+
"type": "object"
|
|
2458
|
+
},
|
|
2459
|
+
"RecordSource": {
|
|
2460
|
+
"description": "`session_records.source` \u2014 the client render switch. `lifecycle` rows are\ncontroller-emitted platform notifications; a harness value means a native\ntranscript record from that harness.",
|
|
2461
|
+
"enum": [
|
|
2462
|
+
"lifecycle",
|
|
2463
|
+
"claude_code"
|
|
2464
|
+
],
|
|
2465
|
+
"title": "RecordSource",
|
|
2466
|
+
"type": "string"
|
|
2467
|
+
},
|
|
2468
|
+
"ResolvedReviewScope": {
|
|
2469
|
+
"description": "The range a minted review actually covers, read back off the (possibly\ndoctored) PR so it can never disagree with what the session was handed.",
|
|
889
2470
|
"properties": {
|
|
890
|
-
"
|
|
2471
|
+
"empty": {
|
|
2472
|
+
"title": "Empty",
|
|
2473
|
+
"type": "boolean"
|
|
2474
|
+
},
|
|
2475
|
+
"head": {
|
|
2476
|
+
"title": "Head",
|
|
2477
|
+
"type": "string"
|
|
2478
|
+
},
|
|
2479
|
+
"kind": {
|
|
2480
|
+
"$ref": "#/components/schemas/ReviewScopeKind"
|
|
2481
|
+
},
|
|
2482
|
+
"watermark": {
|
|
2483
|
+
"anyOf": [
|
|
2484
|
+
{
|
|
2485
|
+
"type": "string"
|
|
2486
|
+
},
|
|
2487
|
+
{
|
|
2488
|
+
"type": "null"
|
|
2489
|
+
}
|
|
2490
|
+
],
|
|
2491
|
+
"title": "Watermark"
|
|
2492
|
+
}
|
|
2493
|
+
},
|
|
2494
|
+
"required": [
|
|
2495
|
+
"kind",
|
|
2496
|
+
"watermark",
|
|
2497
|
+
"head",
|
|
2498
|
+
"empty"
|
|
2499
|
+
],
|
|
2500
|
+
"title": "ResolvedReviewScope",
|
|
2501
|
+
"type": "object"
|
|
2502
|
+
},
|
|
2503
|
+
"Review": {
|
|
2504
|
+
"description": "One review = one `code_review` session over one range. `id` IS the\nsession id, so `/v1/sessions/{id}/stream`, `/records`, `/ide`, and stop all\nwork on it unchanged.\n\n`review_body`, `findings`, and `counters` come from the\n`code_review_outbox` row, which only exists after finalize \u2014 while a review\nruns they are null/[]/null with `status: \"running\"`. That is why a client\nstreams the session and then re-GETs the review, the same two-step\n`agent asset get` uses.",
|
|
2505
|
+
"properties": {
|
|
2506
|
+
"completed_at": {
|
|
2507
|
+
"anyOf": [
|
|
2508
|
+
{
|
|
2509
|
+
"type": "string"
|
|
2510
|
+
},
|
|
2511
|
+
{
|
|
2512
|
+
"type": "null"
|
|
2513
|
+
}
|
|
2514
|
+
],
|
|
2515
|
+
"title": "Completed At"
|
|
2516
|
+
},
|
|
2517
|
+
"cost_millicents": {
|
|
891
2518
|
"default": 0,
|
|
892
|
-
"title": "
|
|
2519
|
+
"title": "Cost Millicents",
|
|
893
2520
|
"type": "integer"
|
|
894
2521
|
},
|
|
895
|
-
"
|
|
896
|
-
"
|
|
897
|
-
|
|
2522
|
+
"counters": {
|
|
2523
|
+
"anyOf": [
|
|
2524
|
+
{
|
|
2525
|
+
"$ref": "#/components/schemas/ReviewCounters"
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
"type": "null"
|
|
2529
|
+
}
|
|
2530
|
+
]
|
|
2531
|
+
},
|
|
2532
|
+
"created_at": {
|
|
2533
|
+
"anyOf": [
|
|
2534
|
+
{
|
|
2535
|
+
"type": "string"
|
|
2536
|
+
},
|
|
2537
|
+
{
|
|
2538
|
+
"type": "null"
|
|
2539
|
+
}
|
|
2540
|
+
],
|
|
2541
|
+
"title": "Created At"
|
|
2542
|
+
},
|
|
2543
|
+
"findings": {
|
|
2544
|
+
"default": [],
|
|
2545
|
+
"items": {
|
|
2546
|
+
"$ref": "#/components/schemas/Finding"
|
|
2547
|
+
},
|
|
2548
|
+
"title": "Findings",
|
|
2549
|
+
"type": "array"
|
|
2550
|
+
},
|
|
2551
|
+
"id": {
|
|
2552
|
+
"title": "Id",
|
|
2553
|
+
"type": "string"
|
|
2554
|
+
},
|
|
2555
|
+
"post_error": {
|
|
2556
|
+
"anyOf": [
|
|
2557
|
+
{
|
|
2558
|
+
"type": "string"
|
|
2559
|
+
},
|
|
2560
|
+
{
|
|
2561
|
+
"type": "null"
|
|
2562
|
+
}
|
|
2563
|
+
],
|
|
2564
|
+
"title": "Post Error"
|
|
2565
|
+
},
|
|
2566
|
+
"posted_review_id": {
|
|
2567
|
+
"anyOf": [
|
|
2568
|
+
{
|
|
2569
|
+
"type": "integer"
|
|
2570
|
+
},
|
|
2571
|
+
{
|
|
2572
|
+
"type": "null"
|
|
2573
|
+
}
|
|
2574
|
+
],
|
|
2575
|
+
"title": "Posted Review Id"
|
|
2576
|
+
},
|
|
2577
|
+
"pull_request": {
|
|
2578
|
+
"$ref": "#/components/schemas/ReviewPullRequest"
|
|
2579
|
+
},
|
|
2580
|
+
"repository": {
|
|
2581
|
+
"$ref": "#/components/schemas/ReviewRepository"
|
|
2582
|
+
},
|
|
2583
|
+
"review_body": {
|
|
2584
|
+
"anyOf": [
|
|
2585
|
+
{
|
|
2586
|
+
"type": "string"
|
|
2587
|
+
},
|
|
2588
|
+
{
|
|
2589
|
+
"type": "null"
|
|
2590
|
+
}
|
|
2591
|
+
],
|
|
2592
|
+
"title": "Review Body"
|
|
2593
|
+
},
|
|
2594
|
+
"scope": {
|
|
2595
|
+
"$ref": "#/components/schemas/ResolvedReviewScope"
|
|
2596
|
+
},
|
|
2597
|
+
"status": {
|
|
2598
|
+
"title": "Status",
|
|
2599
|
+
"type": "string"
|
|
2600
|
+
},
|
|
2601
|
+
"trigger": {
|
|
2602
|
+
"title": "Trigger",
|
|
2603
|
+
"type": "string"
|
|
2604
|
+
}
|
|
2605
|
+
},
|
|
2606
|
+
"required": [
|
|
2607
|
+
"id",
|
|
2608
|
+
"status",
|
|
2609
|
+
"trigger",
|
|
2610
|
+
"repository",
|
|
2611
|
+
"pull_request",
|
|
2612
|
+
"scope"
|
|
2613
|
+
],
|
|
2614
|
+
"title": "Review",
|
|
2615
|
+
"type": "object"
|
|
2616
|
+
},
|
|
2617
|
+
"ReviewCounters": {
|
|
2618
|
+
"description": "Parser and anchor reliability for one review, straight off the outbox\nrow. `parser_version` records which parser rules produced the findings, so\na parser change can re-parse from the raw files offline.",
|
|
2619
|
+
"properties": {
|
|
2620
|
+
"n_anchor_valid": {
|
|
2621
|
+
"title": "N Anchor Valid",
|
|
898
2622
|
"type": "integer"
|
|
899
2623
|
},
|
|
900
|
-
"
|
|
901
|
-
"
|
|
902
|
-
"
|
|
903
|
-
"type": "number"
|
|
2624
|
+
"n_coerced": {
|
|
2625
|
+
"title": "N Coerced",
|
|
2626
|
+
"type": "integer"
|
|
904
2627
|
},
|
|
905
|
-
"
|
|
906
|
-
"
|
|
907
|
-
"title": "Input Tokens",
|
|
2628
|
+
"n_dropped": {
|
|
2629
|
+
"title": "N Dropped",
|
|
908
2630
|
"type": "integer"
|
|
909
2631
|
},
|
|
910
|
-
"
|
|
911
|
-
"
|
|
912
|
-
"
|
|
2632
|
+
"n_not_commentable": {
|
|
2633
|
+
"title": "N Not Commentable",
|
|
2634
|
+
"type": "integer"
|
|
2635
|
+
},
|
|
2636
|
+
"n_parsed": {
|
|
2637
|
+
"title": "N Parsed",
|
|
2638
|
+
"type": "integer"
|
|
2639
|
+
},
|
|
2640
|
+
"n_raw_lines": {
|
|
2641
|
+
"title": "N Raw Lines",
|
|
913
2642
|
"type": "integer"
|
|
2643
|
+
},
|
|
2644
|
+
"n_snapped": {
|
|
2645
|
+
"title": "N Snapped",
|
|
2646
|
+
"type": "integer"
|
|
2647
|
+
},
|
|
2648
|
+
"parser_version": {
|
|
2649
|
+
"title": "Parser Version",
|
|
2650
|
+
"type": "string"
|
|
914
2651
|
}
|
|
915
2652
|
},
|
|
916
|
-
"
|
|
2653
|
+
"required": [
|
|
2654
|
+
"n_raw_lines",
|
|
2655
|
+
"n_parsed",
|
|
2656
|
+
"n_dropped",
|
|
2657
|
+
"n_coerced",
|
|
2658
|
+
"n_anchor_valid",
|
|
2659
|
+
"n_snapped",
|
|
2660
|
+
"n_not_commentable",
|
|
2661
|
+
"parser_version"
|
|
2662
|
+
],
|
|
2663
|
+
"title": "ReviewCounters",
|
|
917
2664
|
"type": "object"
|
|
918
2665
|
},
|
|
919
|
-
"
|
|
920
|
-
"
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
2666
|
+
"ReviewPullRequest": {
|
|
2667
|
+
"properties": {
|
|
2668
|
+
"manufactured": {
|
|
2669
|
+
"default": false,
|
|
2670
|
+
"title": "Manufactured",
|
|
2671
|
+
"type": "boolean"
|
|
2672
|
+
},
|
|
2673
|
+
"number": {
|
|
2674
|
+
"title": "Number",
|
|
2675
|
+
"type": "integer"
|
|
2676
|
+
},
|
|
2677
|
+
"url": {
|
|
2678
|
+
"title": "Url",
|
|
2679
|
+
"type": "string"
|
|
2680
|
+
}
|
|
2681
|
+
},
|
|
2682
|
+
"required": [
|
|
2683
|
+
"number",
|
|
2684
|
+
"url"
|
|
925
2685
|
],
|
|
926
|
-
"title": "
|
|
927
|
-
"type": "
|
|
2686
|
+
"title": "ReviewPullRequest",
|
|
2687
|
+
"type": "object"
|
|
928
2688
|
},
|
|
929
|
-
"
|
|
930
|
-
"
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
"
|
|
936
|
-
|
|
2689
|
+
"ReviewRepository": {
|
|
2690
|
+
"properties": {
|
|
2691
|
+
"id": {
|
|
2692
|
+
"title": "Id",
|
|
2693
|
+
"type": "integer"
|
|
2694
|
+
},
|
|
2695
|
+
"name": {
|
|
2696
|
+
"title": "Name",
|
|
2697
|
+
"type": "string"
|
|
2698
|
+
},
|
|
2699
|
+
"owner": {
|
|
2700
|
+
"title": "Owner",
|
|
2701
|
+
"type": "string"
|
|
2702
|
+
}
|
|
2703
|
+
},
|
|
2704
|
+
"required": [
|
|
2705
|
+
"id",
|
|
2706
|
+
"owner",
|
|
2707
|
+
"name"
|
|
937
2708
|
],
|
|
938
|
-
"title": "
|
|
939
|
-
"type": "
|
|
2709
|
+
"title": "ReviewRepository",
|
|
2710
|
+
"type": "object"
|
|
2711
|
+
},
|
|
2712
|
+
"ReviewScope": {
|
|
2713
|
+
"description": "Which range to review. `watermark`/`head` pin it explicitly (the\nharness's `--watermark`/`--head` promoted to the API \u2014 the doctored-PR path\nthat lets you evaluate a reviewer over a historical range). Values are SHAs\nonly; resolving a 1-based commit index stays a CLI/pyscript nicety.",
|
|
2714
|
+
"properties": {
|
|
2715
|
+
"head": {
|
|
2716
|
+
"anyOf": [
|
|
2717
|
+
{
|
|
2718
|
+
"type": "string"
|
|
2719
|
+
},
|
|
2720
|
+
{
|
|
2721
|
+
"type": "null"
|
|
2722
|
+
}
|
|
2723
|
+
],
|
|
2724
|
+
"title": "Head"
|
|
2725
|
+
},
|
|
2726
|
+
"kind": {
|
|
2727
|
+
"$ref": "#/components/schemas/ReviewScopeKind",
|
|
2728
|
+
"default": "incremental"
|
|
2729
|
+
},
|
|
2730
|
+
"watermark": {
|
|
2731
|
+
"anyOf": [
|
|
2732
|
+
{
|
|
2733
|
+
"type": "string"
|
|
2734
|
+
},
|
|
2735
|
+
{
|
|
2736
|
+
"type": "null"
|
|
2737
|
+
}
|
|
2738
|
+
],
|
|
2739
|
+
"title": "Watermark"
|
|
2740
|
+
}
|
|
2741
|
+
},
|
|
2742
|
+
"title": "ReviewScope",
|
|
2743
|
+
"type": "object"
|
|
940
2744
|
},
|
|
941
|
-
"
|
|
942
|
-
"description": "`session_records.source` \u2014 the client render switch. `lifecycle` rows are\ncontroller-emitted platform notifications; a harness value means a native\ntranscript record from that harness.",
|
|
2745
|
+
"ReviewScopeKind": {
|
|
943
2746
|
"enum": [
|
|
944
|
-
"
|
|
945
|
-
"
|
|
2747
|
+
"incremental",
|
|
2748
|
+
"full"
|
|
946
2749
|
],
|
|
947
|
-
"title": "
|
|
2750
|
+
"title": "ReviewScopeKind",
|
|
948
2751
|
"type": "string"
|
|
949
2752
|
},
|
|
950
2753
|
"RunStatus": {
|
|
@@ -989,6 +2792,14 @@
|
|
|
989
2792
|
"title": "SendSessionMessageRequest",
|
|
990
2793
|
"type": "object"
|
|
991
2794
|
},
|
|
2795
|
+
"SentryAction": {
|
|
2796
|
+
"enum": [
|
|
2797
|
+
"issue_alert",
|
|
2798
|
+
"metric_alert"
|
|
2799
|
+
],
|
|
2800
|
+
"title": "SentryAction",
|
|
2801
|
+
"type": "string"
|
|
2802
|
+
},
|
|
992
2803
|
"SessionExecutionWire": {
|
|
993
2804
|
"properties": {
|
|
994
2805
|
"agent_session_id": {
|
|
@@ -1743,6 +3554,277 @@
|
|
|
1743
3554
|
},
|
|
1744
3555
|
"openapi": "3.1.0",
|
|
1745
3556
|
"paths": {
|
|
3557
|
+
"/v1/reviews": {
|
|
3558
|
+
"get": {
|
|
3559
|
+
"operationId": "list_reviews_v1_reviews_get",
|
|
3560
|
+
"parameters": [
|
|
3561
|
+
{
|
|
3562
|
+
"in": "query",
|
|
3563
|
+
"name": "owner",
|
|
3564
|
+
"required": false,
|
|
3565
|
+
"schema": {
|
|
3566
|
+
"anyOf": [
|
|
3567
|
+
{
|
|
3568
|
+
"type": "string"
|
|
3569
|
+
},
|
|
3570
|
+
{
|
|
3571
|
+
"type": "null"
|
|
3572
|
+
}
|
|
3573
|
+
],
|
|
3574
|
+
"title": "Owner"
|
|
3575
|
+
}
|
|
3576
|
+
},
|
|
3577
|
+
{
|
|
3578
|
+
"in": "query",
|
|
3579
|
+
"name": "repo",
|
|
3580
|
+
"required": false,
|
|
3581
|
+
"schema": {
|
|
3582
|
+
"anyOf": [
|
|
3583
|
+
{
|
|
3584
|
+
"type": "string"
|
|
3585
|
+
},
|
|
3586
|
+
{
|
|
3587
|
+
"type": "null"
|
|
3588
|
+
}
|
|
3589
|
+
],
|
|
3590
|
+
"title": "Repo"
|
|
3591
|
+
}
|
|
3592
|
+
},
|
|
3593
|
+
{
|
|
3594
|
+
"in": "query",
|
|
3595
|
+
"name": "pull_request_number",
|
|
3596
|
+
"required": false,
|
|
3597
|
+
"schema": {
|
|
3598
|
+
"anyOf": [
|
|
3599
|
+
{
|
|
3600
|
+
"type": "integer"
|
|
3601
|
+
},
|
|
3602
|
+
{
|
|
3603
|
+
"type": "null"
|
|
3604
|
+
}
|
|
3605
|
+
],
|
|
3606
|
+
"title": "Pull Request Number"
|
|
3607
|
+
}
|
|
3608
|
+
},
|
|
3609
|
+
{
|
|
3610
|
+
"in": "query",
|
|
3611
|
+
"name": "pull_request_id",
|
|
3612
|
+
"required": false,
|
|
3613
|
+
"schema": {
|
|
3614
|
+
"anyOf": [
|
|
3615
|
+
{
|
|
3616
|
+
"type": "string"
|
|
3617
|
+
},
|
|
3618
|
+
{
|
|
3619
|
+
"type": "null"
|
|
3620
|
+
}
|
|
3621
|
+
],
|
|
3622
|
+
"title": "Pull Request Id"
|
|
3623
|
+
}
|
|
3624
|
+
},
|
|
3625
|
+
{
|
|
3626
|
+
"in": "query",
|
|
3627
|
+
"name": "status",
|
|
3628
|
+
"required": false,
|
|
3629
|
+
"schema": {
|
|
3630
|
+
"anyOf": [
|
|
3631
|
+
{
|
|
3632
|
+
"$ref": "#/components/schemas/AgentSessionStatus"
|
|
3633
|
+
},
|
|
3634
|
+
{
|
|
3635
|
+
"type": "null"
|
|
3636
|
+
}
|
|
3637
|
+
],
|
|
3638
|
+
"title": "Status"
|
|
3639
|
+
}
|
|
3640
|
+
},
|
|
3641
|
+
{
|
|
3642
|
+
"in": "query",
|
|
3643
|
+
"name": "limit",
|
|
3644
|
+
"required": false,
|
|
3645
|
+
"schema": {
|
|
3646
|
+
"default": 50,
|
|
3647
|
+
"maximum": 200,
|
|
3648
|
+
"minimum": 1,
|
|
3649
|
+
"title": "Limit",
|
|
3650
|
+
"type": "integer"
|
|
3651
|
+
}
|
|
3652
|
+
},
|
|
3653
|
+
{
|
|
3654
|
+
"in": "header",
|
|
3655
|
+
"name": "user-agent",
|
|
3656
|
+
"required": false,
|
|
3657
|
+
"schema": {
|
|
3658
|
+
"anyOf": [
|
|
3659
|
+
{
|
|
3660
|
+
"type": "string"
|
|
3661
|
+
},
|
|
3662
|
+
{
|
|
3663
|
+
"type": "null"
|
|
3664
|
+
}
|
|
3665
|
+
],
|
|
3666
|
+
"title": "User-Agent"
|
|
3667
|
+
}
|
|
3668
|
+
}
|
|
3669
|
+
],
|
|
3670
|
+
"responses": {
|
|
3671
|
+
"200": {
|
|
3672
|
+
"content": {
|
|
3673
|
+
"application/json": {
|
|
3674
|
+
"schema": {
|
|
3675
|
+
"$ref": "#/components/schemas/ListReviewsResponse"
|
|
3676
|
+
}
|
|
3677
|
+
}
|
|
3678
|
+
},
|
|
3679
|
+
"description": "Successful Response"
|
|
3680
|
+
},
|
|
3681
|
+
"422": {
|
|
3682
|
+
"content": {
|
|
3683
|
+
"application/json": {
|
|
3684
|
+
"schema": {
|
|
3685
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
3686
|
+
}
|
|
3687
|
+
}
|
|
3688
|
+
},
|
|
3689
|
+
"description": "Validation Error"
|
|
3690
|
+
}
|
|
3691
|
+
},
|
|
3692
|
+
"security": [
|
|
3693
|
+
{
|
|
3694
|
+
"HTTPBearer": []
|
|
3695
|
+
}
|
|
3696
|
+
],
|
|
3697
|
+
"summary": "List Reviews",
|
|
3698
|
+
"tags": [
|
|
3699
|
+
"v1"
|
|
3700
|
+
]
|
|
3701
|
+
},
|
|
3702
|
+
"post": {
|
|
3703
|
+
"operationId": "create_review_v1_reviews_post",
|
|
3704
|
+
"parameters": [
|
|
3705
|
+
{
|
|
3706
|
+
"in": "header",
|
|
3707
|
+
"name": "user-agent",
|
|
3708
|
+
"required": false,
|
|
3709
|
+
"schema": {
|
|
3710
|
+
"anyOf": [
|
|
3711
|
+
{
|
|
3712
|
+
"type": "string"
|
|
3713
|
+
},
|
|
3714
|
+
{
|
|
3715
|
+
"type": "null"
|
|
3716
|
+
}
|
|
3717
|
+
],
|
|
3718
|
+
"title": "User-Agent"
|
|
3719
|
+
}
|
|
3720
|
+
}
|
|
3721
|
+
],
|
|
3722
|
+
"requestBody": {
|
|
3723
|
+
"content": {
|
|
3724
|
+
"application/json": {
|
|
3725
|
+
"schema": {
|
|
3726
|
+
"$ref": "#/components/schemas/CreateReviewRequest"
|
|
3727
|
+
}
|
|
3728
|
+
}
|
|
3729
|
+
},
|
|
3730
|
+
"required": true
|
|
3731
|
+
},
|
|
3732
|
+
"responses": {
|
|
3733
|
+
"201": {
|
|
3734
|
+
"content": {
|
|
3735
|
+
"application/json": {
|
|
3736
|
+
"schema": {
|
|
3737
|
+
"$ref": "#/components/schemas/Review"
|
|
3738
|
+
}
|
|
3739
|
+
}
|
|
3740
|
+
},
|
|
3741
|
+
"description": "Successful Response"
|
|
3742
|
+
},
|
|
3743
|
+
"422": {
|
|
3744
|
+
"content": {
|
|
3745
|
+
"application/json": {
|
|
3746
|
+
"schema": {
|
|
3747
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
3748
|
+
}
|
|
3749
|
+
}
|
|
3750
|
+
},
|
|
3751
|
+
"description": "Validation Error"
|
|
3752
|
+
}
|
|
3753
|
+
},
|
|
3754
|
+
"security": [
|
|
3755
|
+
{
|
|
3756
|
+
"HTTPBearer": []
|
|
3757
|
+
}
|
|
3758
|
+
],
|
|
3759
|
+
"summary": "Create Review",
|
|
3760
|
+
"tags": [
|
|
3761
|
+
"v1"
|
|
3762
|
+
]
|
|
3763
|
+
}
|
|
3764
|
+
},
|
|
3765
|
+
"/v1/reviews/{review_id}": {
|
|
3766
|
+
"get": {
|
|
3767
|
+
"operationId": "get_review_v1_reviews__review_id__get",
|
|
3768
|
+
"parameters": [
|
|
3769
|
+
{
|
|
3770
|
+
"in": "path",
|
|
3771
|
+
"name": "review_id",
|
|
3772
|
+
"required": true,
|
|
3773
|
+
"schema": {
|
|
3774
|
+
"title": "Review Id",
|
|
3775
|
+
"type": "string"
|
|
3776
|
+
}
|
|
3777
|
+
},
|
|
3778
|
+
{
|
|
3779
|
+
"in": "header",
|
|
3780
|
+
"name": "user-agent",
|
|
3781
|
+
"required": false,
|
|
3782
|
+
"schema": {
|
|
3783
|
+
"anyOf": [
|
|
3784
|
+
{
|
|
3785
|
+
"type": "string"
|
|
3786
|
+
},
|
|
3787
|
+
{
|
|
3788
|
+
"type": "null"
|
|
3789
|
+
}
|
|
3790
|
+
],
|
|
3791
|
+
"title": "User-Agent"
|
|
3792
|
+
}
|
|
3793
|
+
}
|
|
3794
|
+
],
|
|
3795
|
+
"responses": {
|
|
3796
|
+
"200": {
|
|
3797
|
+
"content": {
|
|
3798
|
+
"application/json": {
|
|
3799
|
+
"schema": {
|
|
3800
|
+
"$ref": "#/components/schemas/Review"
|
|
3801
|
+
}
|
|
3802
|
+
}
|
|
3803
|
+
},
|
|
3804
|
+
"description": "Successful Response"
|
|
3805
|
+
},
|
|
3806
|
+
"422": {
|
|
3807
|
+
"content": {
|
|
3808
|
+
"application/json": {
|
|
3809
|
+
"schema": {
|
|
3810
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3813
|
+
},
|
|
3814
|
+
"description": "Validation Error"
|
|
3815
|
+
}
|
|
3816
|
+
},
|
|
3817
|
+
"security": [
|
|
3818
|
+
{
|
|
3819
|
+
"HTTPBearer": []
|
|
3820
|
+
}
|
|
3821
|
+
],
|
|
3822
|
+
"summary": "Get Review",
|
|
3823
|
+
"tags": [
|
|
3824
|
+
"v1"
|
|
3825
|
+
]
|
|
3826
|
+
}
|
|
3827
|
+
},
|
|
1746
3828
|
"/v1/sessions/{session_id}": {
|
|
1747
3829
|
"get": {
|
|
1748
3830
|
"operationId": "get_agent_session_v1_sessions__session_id__get",
|