@hosty-sdk/app 0.49.0 → 0.51.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/agent-client.d.ts +28 -1
- package/dist/agent-client.js +104 -5
- package/dist/agent-schemas.js +31 -4
- package/dist/agent-server.js +11 -5
- package/dist/agent.d.ts +18 -0
- package/dist/agent.js +1 -0
- package/package.json +1 -1
- package/schemas/agent-event-v1.schema.json +352 -34
- package/schemas/agent-v1.openapi.json +862 -64
|
@@ -6,6 +6,486 @@
|
|
|
6
6
|
"description": "Independent provider execution. Paths are relative to the current Core-declared interface base. Exact UTF-8 command bytes and stable mutation UUIDs are retained across retries. No Harness dependency or raw native session IDs."
|
|
7
7
|
},
|
|
8
8
|
"paths": {
|
|
9
|
+
"/history/live": {
|
|
10
|
+
"get": {
|
|
11
|
+
"operationId": "history.live",
|
|
12
|
+
"security": [
|
|
13
|
+
{
|
|
14
|
+
"installationHistory": []
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"parameters": [
|
|
18
|
+
{
|
|
19
|
+
"name": "after",
|
|
20
|
+
"in": "query",
|
|
21
|
+
"schema": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"maxLength": 8192
|
|
25
|
+
},
|
|
26
|
+
"required": false
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"description": "Open a fresh live subscription. The optional previous cursor checks archive ancestry. The ready event returns the subscribed boundary. Subsequent observation events carry an SSE id and every durable record carries its session position.",
|
|
30
|
+
"responses": {
|
|
31
|
+
"200": {
|
|
32
|
+
"description": "Ready boundary followed by live observations.",
|
|
33
|
+
"content": {
|
|
34
|
+
"text/event-stream": {
|
|
35
|
+
"schema": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"x-event-schemas": {
|
|
39
|
+
"ready": {
|
|
40
|
+
"$ref": "#/components/schemas/LiveHistoryReady"
|
|
41
|
+
},
|
|
42
|
+
"observation": {
|
|
43
|
+
"$ref": "#/components/schemas/LiveHistoryObservation"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"400": {
|
|
50
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
51
|
+
"content": {
|
|
52
|
+
"application/json": {
|
|
53
|
+
"schema": {
|
|
54
|
+
"$ref": "#/components/schemas/Error"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"401": {
|
|
60
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
61
|
+
"content": {
|
|
62
|
+
"application/json": {
|
|
63
|
+
"schema": {
|
|
64
|
+
"$ref": "#/components/schemas/Error"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"403": {
|
|
70
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
71
|
+
"content": {
|
|
72
|
+
"application/json": {
|
|
73
|
+
"schema": {
|
|
74
|
+
"$ref": "#/components/schemas/Error"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"404": {
|
|
80
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
81
|
+
"content": {
|
|
82
|
+
"application/json": {
|
|
83
|
+
"schema": {
|
|
84
|
+
"$ref": "#/components/schemas/Error"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"409": {
|
|
90
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
91
|
+
"content": {
|
|
92
|
+
"application/json": {
|
|
93
|
+
"schema": {
|
|
94
|
+
"$ref": "#/components/schemas/Error"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"410": {
|
|
100
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
101
|
+
"content": {
|
|
102
|
+
"application/json": {
|
|
103
|
+
"schema": {
|
|
104
|
+
"$ref": "#/components/schemas/Error"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"413": {
|
|
110
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
111
|
+
"content": {
|
|
112
|
+
"application/json": {
|
|
113
|
+
"schema": {
|
|
114
|
+
"$ref": "#/components/schemas/Error"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"422": {
|
|
120
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
121
|
+
"content": {
|
|
122
|
+
"application/json": {
|
|
123
|
+
"schema": {
|
|
124
|
+
"$ref": "#/components/schemas/Error"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"429": {
|
|
130
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
131
|
+
"content": {
|
|
132
|
+
"application/json": {
|
|
133
|
+
"schema": {
|
|
134
|
+
"$ref": "#/components/schemas/Error"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"503": {
|
|
140
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
141
|
+
"content": {
|
|
142
|
+
"application/json": {
|
|
143
|
+
"schema": {
|
|
144
|
+
"$ref": "#/components/schemas/Error"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"/history/states": {
|
|
153
|
+
"get": {
|
|
154
|
+
"operationId": "history.states",
|
|
155
|
+
"security": [
|
|
156
|
+
{
|
|
157
|
+
"installationHistory": []
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"parameters": [
|
|
161
|
+
{
|
|
162
|
+
"name": "through",
|
|
163
|
+
"in": "query",
|
|
164
|
+
"schema": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"minLength": 1,
|
|
167
|
+
"maxLength": 8192
|
|
168
|
+
},
|
|
169
|
+
"required": false
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "afterSession",
|
|
173
|
+
"in": "query",
|
|
174
|
+
"schema": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
177
|
+
},
|
|
178
|
+
"required": false
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "limit",
|
|
182
|
+
"in": "query",
|
|
183
|
+
"schema": {
|
|
184
|
+
"type": "integer",
|
|
185
|
+
"minimum": 1,
|
|
186
|
+
"maximum": 100
|
|
187
|
+
},
|
|
188
|
+
"required": false
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"description": "List sessions with retained runs and their state and durable session head at the supplied or current installation boundary. Pass the returned boundary on later pages.",
|
|
192
|
+
"responses": {
|
|
193
|
+
"200": {
|
|
194
|
+
"description": "States for the calling installation.",
|
|
195
|
+
"content": {
|
|
196
|
+
"application/json": {
|
|
197
|
+
"schema": {
|
|
198
|
+
"$ref": "#/components/schemas/HistoryStates"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"400": {
|
|
204
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
205
|
+
"content": {
|
|
206
|
+
"application/json": {
|
|
207
|
+
"schema": {
|
|
208
|
+
"$ref": "#/components/schemas/Error"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"401": {
|
|
214
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
215
|
+
"content": {
|
|
216
|
+
"application/json": {
|
|
217
|
+
"schema": {
|
|
218
|
+
"$ref": "#/components/schemas/Error"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"403": {
|
|
224
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
225
|
+
"content": {
|
|
226
|
+
"application/json": {
|
|
227
|
+
"schema": {
|
|
228
|
+
"$ref": "#/components/schemas/Error"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"404": {
|
|
234
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
235
|
+
"content": {
|
|
236
|
+
"application/json": {
|
|
237
|
+
"schema": {
|
|
238
|
+
"$ref": "#/components/schemas/Error"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"409": {
|
|
244
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
245
|
+
"content": {
|
|
246
|
+
"application/json": {
|
|
247
|
+
"schema": {
|
|
248
|
+
"$ref": "#/components/schemas/Error"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"410": {
|
|
254
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
255
|
+
"content": {
|
|
256
|
+
"application/json": {
|
|
257
|
+
"schema": {
|
|
258
|
+
"$ref": "#/components/schemas/Error"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"413": {
|
|
264
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
265
|
+
"content": {
|
|
266
|
+
"application/json": {
|
|
267
|
+
"schema": {
|
|
268
|
+
"$ref": "#/components/schemas/Error"
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"422": {
|
|
274
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
275
|
+
"content": {
|
|
276
|
+
"application/json": {
|
|
277
|
+
"schema": {
|
|
278
|
+
"$ref": "#/components/schemas/Error"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"429": {
|
|
284
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
285
|
+
"content": {
|
|
286
|
+
"application/json": {
|
|
287
|
+
"schema": {
|
|
288
|
+
"$ref": "#/components/schemas/Error"
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"503": {
|
|
294
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
295
|
+
"content": {
|
|
296
|
+
"application/json": {
|
|
297
|
+
"schema": {
|
|
298
|
+
"$ref": "#/components/schemas/Error"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"/history/range": {
|
|
307
|
+
"get": {
|
|
308
|
+
"operationId": "history.range",
|
|
309
|
+
"security": [
|
|
310
|
+
{
|
|
311
|
+
"installationHistory": []
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"parameters": [
|
|
315
|
+
{
|
|
316
|
+
"name": "through",
|
|
317
|
+
"in": "query",
|
|
318
|
+
"schema": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"minLength": 1,
|
|
321
|
+
"maxLength": 8192
|
|
322
|
+
},
|
|
323
|
+
"required": true
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "sessionId",
|
|
327
|
+
"in": "query",
|
|
328
|
+
"schema": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
331
|
+
},
|
|
332
|
+
"required": true
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "epoch",
|
|
336
|
+
"in": "query",
|
|
337
|
+
"schema": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"format": "uuid"
|
|
340
|
+
},
|
|
341
|
+
"required": true
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "from",
|
|
345
|
+
"in": "query",
|
|
346
|
+
"schema": {
|
|
347
|
+
"type": "integer",
|
|
348
|
+
"minimum": 1,
|
|
349
|
+
"maximum": 9007199254740991
|
|
350
|
+
},
|
|
351
|
+
"required": true
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "to",
|
|
355
|
+
"in": "query",
|
|
356
|
+
"schema": {
|
|
357
|
+
"type": "integer",
|
|
358
|
+
"minimum": 1,
|
|
359
|
+
"maximum": 9007199254740991
|
|
360
|
+
},
|
|
361
|
+
"required": true
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "limit",
|
|
365
|
+
"in": "query",
|
|
366
|
+
"schema": {
|
|
367
|
+
"type": "integer",
|
|
368
|
+
"minimum": 1,
|
|
369
|
+
"maximum": 100
|
|
370
|
+
},
|
|
371
|
+
"required": false
|
|
372
|
+
}
|
|
373
|
+
],
|
|
374
|
+
"description": "Read an inclusive interval of durable positions for one session and history epoch. nextPosition is the first unread position in the requested interval.",
|
|
375
|
+
"responses": {
|
|
376
|
+
"200": {
|
|
377
|
+
"description": "Ordered durable session records.",
|
|
378
|
+
"content": {
|
|
379
|
+
"application/json": {
|
|
380
|
+
"schema": {
|
|
381
|
+
"$ref": "#/components/schemas/HistoryRange"
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"400": {
|
|
387
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
388
|
+
"content": {
|
|
389
|
+
"application/json": {
|
|
390
|
+
"schema": {
|
|
391
|
+
"$ref": "#/components/schemas/Error"
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"401": {
|
|
397
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
398
|
+
"content": {
|
|
399
|
+
"application/json": {
|
|
400
|
+
"schema": {
|
|
401
|
+
"$ref": "#/components/schemas/Error"
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"403": {
|
|
407
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
408
|
+
"content": {
|
|
409
|
+
"application/json": {
|
|
410
|
+
"schema": {
|
|
411
|
+
"$ref": "#/components/schemas/Error"
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"404": {
|
|
417
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
418
|
+
"content": {
|
|
419
|
+
"application/json": {
|
|
420
|
+
"schema": {
|
|
421
|
+
"$ref": "#/components/schemas/Error"
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"409": {
|
|
427
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
428
|
+
"content": {
|
|
429
|
+
"application/json": {
|
|
430
|
+
"schema": {
|
|
431
|
+
"$ref": "#/components/schemas/Error"
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"410": {
|
|
437
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
438
|
+
"content": {
|
|
439
|
+
"application/json": {
|
|
440
|
+
"schema": {
|
|
441
|
+
"$ref": "#/components/schemas/Error"
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"413": {
|
|
447
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
448
|
+
"content": {
|
|
449
|
+
"application/json": {
|
|
450
|
+
"schema": {
|
|
451
|
+
"$ref": "#/components/schemas/Error"
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
"422": {
|
|
457
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
458
|
+
"content": {
|
|
459
|
+
"application/json": {
|
|
460
|
+
"schema": {
|
|
461
|
+
"$ref": "#/components/schemas/Error"
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"429": {
|
|
467
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
468
|
+
"content": {
|
|
469
|
+
"application/json": {
|
|
470
|
+
"schema": {
|
|
471
|
+
"$ref": "#/components/schemas/Error"
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
"503": {
|
|
477
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
478
|
+
"content": {
|
|
479
|
+
"application/json": {
|
|
480
|
+
"schema": {
|
|
481
|
+
"$ref": "#/components/schemas/Error"
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
},
|
|
9
489
|
"/history/events": {
|
|
10
490
|
"get": {
|
|
11
491
|
"operationId": "history.events",
|
|
@@ -3753,6 +4233,56 @@
|
|
|
3753
4233
|
],
|
|
3754
4234
|
"additionalProperties": false
|
|
3755
4235
|
},
|
|
4236
|
+
"ChildAgent": {
|
|
4237
|
+
"type": "object",
|
|
4238
|
+
"properties": {
|
|
4239
|
+
"agentId": {
|
|
4240
|
+
"type": "string",
|
|
4241
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
4242
|
+
},
|
|
4243
|
+
"parentAgentId": {
|
|
4244
|
+
"type": "string",
|
|
4245
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
4246
|
+
},
|
|
4247
|
+
"parentToolCallId": {
|
|
4248
|
+
"type": "string",
|
|
4249
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
4250
|
+
},
|
|
4251
|
+
"state": {
|
|
4252
|
+
"enum": [
|
|
4253
|
+
"queued",
|
|
4254
|
+
"running",
|
|
4255
|
+
"waiting_for_input",
|
|
4256
|
+
"succeeded",
|
|
4257
|
+
"failed",
|
|
4258
|
+
"cancelled",
|
|
4259
|
+
"unknown"
|
|
4260
|
+
]
|
|
4261
|
+
},
|
|
4262
|
+
"stopConfirmed": {
|
|
4263
|
+
"type": "boolean"
|
|
4264
|
+
},
|
|
4265
|
+
"prompt": {
|
|
4266
|
+
"type": "string",
|
|
4267
|
+
"maxLength": 65536
|
|
4268
|
+
},
|
|
4269
|
+
"response": {
|
|
4270
|
+
"type": "string",
|
|
4271
|
+
"maxLength": 65536
|
|
4272
|
+
},
|
|
4273
|
+
"promptTruncated": {
|
|
4274
|
+
"type": "boolean"
|
|
4275
|
+
},
|
|
4276
|
+
"responseTruncated": {
|
|
4277
|
+
"type": "boolean"
|
|
4278
|
+
}
|
|
4279
|
+
},
|
|
4280
|
+
"required": [
|
|
4281
|
+
"agentId",
|
|
4282
|
+
"state"
|
|
4283
|
+
],
|
|
4284
|
+
"additionalProperties": true
|
|
4285
|
+
},
|
|
3756
4286
|
"PendingDecision": {
|
|
3757
4287
|
"type": "object",
|
|
3758
4288
|
"properties": {
|
|
@@ -4131,40 +4661,7 @@
|
|
|
4131
4661
|
"type": "array",
|
|
4132
4662
|
"maxItems": 1024,
|
|
4133
4663
|
"items": {
|
|
4134
|
-
"
|
|
4135
|
-
"properties": {
|
|
4136
|
-
"agentId": {
|
|
4137
|
-
"type": "string",
|
|
4138
|
-
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
4139
|
-
},
|
|
4140
|
-
"parentAgentId": {
|
|
4141
|
-
"type": "string",
|
|
4142
|
-
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
4143
|
-
},
|
|
4144
|
-
"parentToolCallId": {
|
|
4145
|
-
"type": "string",
|
|
4146
|
-
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
4147
|
-
},
|
|
4148
|
-
"state": {
|
|
4149
|
-
"enum": [
|
|
4150
|
-
"queued",
|
|
4151
|
-
"running",
|
|
4152
|
-
"waiting_for_input",
|
|
4153
|
-
"succeeded",
|
|
4154
|
-
"failed",
|
|
4155
|
-
"cancelled",
|
|
4156
|
-
"unknown"
|
|
4157
|
-
]
|
|
4158
|
-
},
|
|
4159
|
-
"stopConfirmed": {
|
|
4160
|
-
"type": "boolean"
|
|
4161
|
-
}
|
|
4162
|
-
},
|
|
4163
|
-
"required": [
|
|
4164
|
-
"agentId",
|
|
4165
|
-
"state"
|
|
4166
|
-
],
|
|
4167
|
-
"additionalProperties": true
|
|
4664
|
+
"$ref": "#/components/schemas/ChildAgent"
|
|
4168
4665
|
}
|
|
4169
4666
|
},
|
|
4170
4667
|
"selection": {
|
|
@@ -4302,43 +4799,135 @@
|
|
|
4302
4799
|
"run": {
|
|
4303
4800
|
"$ref": "#/components/schemas/QualifiedRef"
|
|
4304
4801
|
},
|
|
4305
|
-
"state": {
|
|
4306
|
-
"enum": [
|
|
4307
|
-
"pending",
|
|
4308
|
-
"awaiting_authorization",
|
|
4309
|
-
"admitted",
|
|
4310
|
-
"superseded"
|
|
4311
|
-
]
|
|
4312
|
-
}
|
|
4802
|
+
"state": {
|
|
4803
|
+
"enum": [
|
|
4804
|
+
"pending",
|
|
4805
|
+
"awaiting_authorization",
|
|
4806
|
+
"admitted",
|
|
4807
|
+
"superseded"
|
|
4808
|
+
]
|
|
4809
|
+
}
|
|
4810
|
+
},
|
|
4811
|
+
"required": [
|
|
4812
|
+
"requestId",
|
|
4813
|
+
"run",
|
|
4814
|
+
"state"
|
|
4815
|
+
],
|
|
4816
|
+
"additionalProperties": false
|
|
4817
|
+
}
|
|
4818
|
+
}
|
|
4819
|
+
},
|
|
4820
|
+
"required": [
|
|
4821
|
+
"ref",
|
|
4822
|
+
"sessionId",
|
|
4823
|
+
"generation",
|
|
4824
|
+
"revision",
|
|
4825
|
+
"state",
|
|
4826
|
+
"phase",
|
|
4827
|
+
"stopConfirmed",
|
|
4828
|
+
"freshness",
|
|
4829
|
+
"observedAt",
|
|
4830
|
+
"configurationRevision",
|
|
4831
|
+
"lastSequence",
|
|
4832
|
+
"cursor",
|
|
4833
|
+
"pending",
|
|
4834
|
+
"effects"
|
|
4835
|
+
],
|
|
4836
|
+
"additionalProperties": true
|
|
4837
|
+
},
|
|
4838
|
+
"HistoryObservation": {
|
|
4839
|
+
"type": "object",
|
|
4840
|
+
"properties": {
|
|
4841
|
+
"sessionId": {
|
|
4842
|
+
"type": "string",
|
|
4843
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
4844
|
+
},
|
|
4845
|
+
"runId": {
|
|
4846
|
+
"type": "string",
|
|
4847
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
4848
|
+
},
|
|
4849
|
+
"generation": {
|
|
4850
|
+
"type": "string",
|
|
4851
|
+
"format": "uuid"
|
|
4852
|
+
},
|
|
4853
|
+
"principalId": {
|
|
4854
|
+
"type": "string",
|
|
4855
|
+
"minLength": 1,
|
|
4856
|
+
"maxLength": 512
|
|
4857
|
+
},
|
|
4858
|
+
"userId": {
|
|
4859
|
+
"type": "string",
|
|
4860
|
+
"minLength": 1,
|
|
4861
|
+
"maxLength": 512
|
|
4862
|
+
},
|
|
4863
|
+
"item": {
|
|
4864
|
+
"oneOf": [
|
|
4865
|
+
{
|
|
4866
|
+
"type": "object",
|
|
4867
|
+
"properties": {
|
|
4868
|
+
"kind": {
|
|
4869
|
+
"const": "snapshot"
|
|
4870
|
+
},
|
|
4871
|
+
"snapshot": {
|
|
4872
|
+
"$ref": "#/components/schemas/RunSnapshot"
|
|
4873
|
+
}
|
|
4874
|
+
},
|
|
4875
|
+
"required": [
|
|
4876
|
+
"kind",
|
|
4877
|
+
"snapshot"
|
|
4878
|
+
],
|
|
4879
|
+
"additionalProperties": false
|
|
4313
4880
|
},
|
|
4314
|
-
|
|
4315
|
-
"
|
|
4316
|
-
"
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4881
|
+
{
|
|
4882
|
+
"type": "object",
|
|
4883
|
+
"properties": {
|
|
4884
|
+
"kind": {
|
|
4885
|
+
"const": "event"
|
|
4886
|
+
},
|
|
4887
|
+
"event": {
|
|
4888
|
+
"$ref": "#/components/schemas/Event"
|
|
4889
|
+
},
|
|
4890
|
+
"cursor": {
|
|
4891
|
+
"type": "string",
|
|
4892
|
+
"minLength": 1,
|
|
4893
|
+
"maxLength": 8192
|
|
4894
|
+
}
|
|
4895
|
+
},
|
|
4896
|
+
"required": [
|
|
4897
|
+
"kind",
|
|
4898
|
+
"event",
|
|
4899
|
+
"cursor"
|
|
4900
|
+
],
|
|
4901
|
+
"additionalProperties": false
|
|
4902
|
+
}
|
|
4903
|
+
]
|
|
4321
4904
|
}
|
|
4322
4905
|
},
|
|
4323
4906
|
"required": [
|
|
4324
|
-
"ref",
|
|
4325
4907
|
"sessionId",
|
|
4908
|
+
"runId",
|
|
4326
4909
|
"generation",
|
|
4327
|
-
"
|
|
4328
|
-
"
|
|
4329
|
-
"
|
|
4330
|
-
"stopConfirmed",
|
|
4331
|
-
"freshness",
|
|
4332
|
-
"observedAt",
|
|
4333
|
-
"configurationRevision",
|
|
4334
|
-
"lastSequence",
|
|
4335
|
-
"cursor",
|
|
4336
|
-
"pending",
|
|
4337
|
-
"effects"
|
|
4910
|
+
"principalId",
|
|
4911
|
+
"userId",
|
|
4912
|
+
"item"
|
|
4338
4913
|
],
|
|
4339
|
-
"additionalProperties":
|
|
4914
|
+
"additionalProperties": false
|
|
4340
4915
|
},
|
|
4341
|
-
"
|
|
4916
|
+
"LiveHistoryReady": {
|
|
4917
|
+
"type": "object",
|
|
4918
|
+
"properties": {
|
|
4919
|
+
"through": {
|
|
4920
|
+
"type": "string",
|
|
4921
|
+
"minLength": 1,
|
|
4922
|
+
"maxLength": 8192
|
|
4923
|
+
}
|
|
4924
|
+
},
|
|
4925
|
+
"required": [
|
|
4926
|
+
"through"
|
|
4927
|
+
],
|
|
4928
|
+
"additionalProperties": false
|
|
4929
|
+
},
|
|
4930
|
+
"LiveHistoryObservation": {
|
|
4342
4931
|
"type": "object",
|
|
4343
4932
|
"properties": {
|
|
4344
4933
|
"sessionId": {
|
|
@@ -4404,6 +4993,18 @@
|
|
|
4404
4993
|
"additionalProperties": false
|
|
4405
4994
|
}
|
|
4406
4995
|
]
|
|
4996
|
+
},
|
|
4997
|
+
"epoch": {
|
|
4998
|
+
"type": "string",
|
|
4999
|
+
"format": "uuid"
|
|
5000
|
+
},
|
|
5001
|
+
"sessionPosition": {
|
|
5002
|
+
"type": "integer",
|
|
5003
|
+
"minimum": 1,
|
|
5004
|
+
"maximum": 9007199254740991
|
|
5005
|
+
},
|
|
5006
|
+
"sourceHistoryIncomplete": {
|
|
5007
|
+
"const": true
|
|
4407
5008
|
}
|
|
4408
5009
|
},
|
|
4409
5010
|
"required": [
|
|
@@ -4412,7 +5013,198 @@
|
|
|
4412
5013
|
"generation",
|
|
4413
5014
|
"principalId",
|
|
4414
5015
|
"userId",
|
|
4415
|
-
"item"
|
|
5016
|
+
"item",
|
|
5017
|
+
"epoch"
|
|
5018
|
+
],
|
|
5019
|
+
"additionalProperties": false
|
|
5020
|
+
},
|
|
5021
|
+
"HistoryStates": {
|
|
5022
|
+
"type": "object",
|
|
5023
|
+
"properties": {
|
|
5024
|
+
"through": {
|
|
5025
|
+
"type": "string",
|
|
5026
|
+
"minLength": 1,
|
|
5027
|
+
"maxLength": 8192
|
|
5028
|
+
},
|
|
5029
|
+
"nextSession": {
|
|
5030
|
+
"type": [
|
|
5031
|
+
"string",
|
|
5032
|
+
"null"
|
|
5033
|
+
],
|
|
5034
|
+
"maxLength": 256
|
|
5035
|
+
},
|
|
5036
|
+
"sessions": {
|
|
5037
|
+
"type": "array",
|
|
5038
|
+
"maxItems": 100,
|
|
5039
|
+
"items": {
|
|
5040
|
+
"type": "object",
|
|
5041
|
+
"properties": {
|
|
5042
|
+
"sessionId": {
|
|
5043
|
+
"type": "string",
|
|
5044
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
5045
|
+
},
|
|
5046
|
+
"userId": {
|
|
5047
|
+
"type": "string",
|
|
5048
|
+
"minLength": 1,
|
|
5049
|
+
"maxLength": 512
|
|
5050
|
+
},
|
|
5051
|
+
"principalId": {
|
|
5052
|
+
"type": "string",
|
|
5053
|
+
"minLength": 1,
|
|
5054
|
+
"maxLength": 512
|
|
5055
|
+
},
|
|
5056
|
+
"epoch": {
|
|
5057
|
+
"type": "string",
|
|
5058
|
+
"format": "uuid"
|
|
5059
|
+
},
|
|
5060
|
+
"head": {
|
|
5061
|
+
"type": "integer",
|
|
5062
|
+
"minimum": 1,
|
|
5063
|
+
"maximum": 9007199254740991
|
|
5064
|
+
},
|
|
5065
|
+
"snapshot": {
|
|
5066
|
+
"$ref": "#/components/schemas/RunSnapshot"
|
|
5067
|
+
},
|
|
5068
|
+
"sourceHistoryIncomplete": {
|
|
5069
|
+
"const": true
|
|
5070
|
+
}
|
|
5071
|
+
},
|
|
5072
|
+
"required": [
|
|
5073
|
+
"sessionId",
|
|
5074
|
+
"userId",
|
|
5075
|
+
"principalId",
|
|
5076
|
+
"epoch",
|
|
5077
|
+
"head",
|
|
5078
|
+
"snapshot"
|
|
5079
|
+
],
|
|
5080
|
+
"additionalProperties": false
|
|
5081
|
+
}
|
|
5082
|
+
}
|
|
5083
|
+
},
|
|
5084
|
+
"required": [
|
|
5085
|
+
"through",
|
|
5086
|
+
"nextSession",
|
|
5087
|
+
"sessions"
|
|
5088
|
+
],
|
|
5089
|
+
"additionalProperties": false
|
|
5090
|
+
},
|
|
5091
|
+
"HistoryRange": {
|
|
5092
|
+
"type": "object",
|
|
5093
|
+
"properties": {
|
|
5094
|
+
"nextPosition": {
|
|
5095
|
+
"type": [
|
|
5096
|
+
"integer",
|
|
5097
|
+
"null"
|
|
5098
|
+
],
|
|
5099
|
+
"minimum": 1,
|
|
5100
|
+
"maximum": 9007199254740991
|
|
5101
|
+
},
|
|
5102
|
+
"observations": {
|
|
5103
|
+
"type": "array",
|
|
5104
|
+
"maxItems": 100,
|
|
5105
|
+
"items": {
|
|
5106
|
+
"type": "object",
|
|
5107
|
+
"properties": {
|
|
5108
|
+
"sessionId": {
|
|
5109
|
+
"type": "string",
|
|
5110
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
5111
|
+
},
|
|
5112
|
+
"runId": {
|
|
5113
|
+
"type": "string",
|
|
5114
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
5115
|
+
},
|
|
5116
|
+
"generation": {
|
|
5117
|
+
"type": "string",
|
|
5118
|
+
"format": "uuid"
|
|
5119
|
+
},
|
|
5120
|
+
"principalId": {
|
|
5121
|
+
"type": "string",
|
|
5122
|
+
"minLength": 1,
|
|
5123
|
+
"maxLength": 512
|
|
5124
|
+
},
|
|
5125
|
+
"userId": {
|
|
5126
|
+
"type": "string",
|
|
5127
|
+
"minLength": 1,
|
|
5128
|
+
"maxLength": 512
|
|
5129
|
+
},
|
|
5130
|
+
"item": {
|
|
5131
|
+
"oneOf": [
|
|
5132
|
+
{
|
|
5133
|
+
"type": "object",
|
|
5134
|
+
"properties": {
|
|
5135
|
+
"kind": {
|
|
5136
|
+
"const": "snapshot"
|
|
5137
|
+
},
|
|
5138
|
+
"snapshot": {
|
|
5139
|
+
"$ref": "#/components/schemas/RunSnapshot"
|
|
5140
|
+
}
|
|
5141
|
+
},
|
|
5142
|
+
"required": [
|
|
5143
|
+
"kind",
|
|
5144
|
+
"snapshot"
|
|
5145
|
+
],
|
|
5146
|
+
"additionalProperties": false
|
|
5147
|
+
},
|
|
5148
|
+
{
|
|
5149
|
+
"type": "object",
|
|
5150
|
+
"properties": {
|
|
5151
|
+
"kind": {
|
|
5152
|
+
"const": "event"
|
|
5153
|
+
},
|
|
5154
|
+
"event": {
|
|
5155
|
+
"$ref": "#/components/schemas/Event"
|
|
5156
|
+
},
|
|
5157
|
+
"cursor": {
|
|
5158
|
+
"type": "string",
|
|
5159
|
+
"minLength": 1,
|
|
5160
|
+
"maxLength": 8192
|
|
5161
|
+
}
|
|
5162
|
+
},
|
|
5163
|
+
"required": [
|
|
5164
|
+
"kind",
|
|
5165
|
+
"event",
|
|
5166
|
+
"cursor"
|
|
5167
|
+
],
|
|
5168
|
+
"additionalProperties": false
|
|
5169
|
+
}
|
|
5170
|
+
]
|
|
5171
|
+
},
|
|
5172
|
+
"cursor": {
|
|
5173
|
+
"type": "string",
|
|
5174
|
+
"minLength": 1,
|
|
5175
|
+
"maxLength": 8192
|
|
5176
|
+
},
|
|
5177
|
+
"epoch": {
|
|
5178
|
+
"type": "string",
|
|
5179
|
+
"format": "uuid"
|
|
5180
|
+
},
|
|
5181
|
+
"sessionPosition": {
|
|
5182
|
+
"type": "integer",
|
|
5183
|
+
"minimum": 1,
|
|
5184
|
+
"maximum": 9007199254740991
|
|
5185
|
+
},
|
|
5186
|
+
"sourceHistoryIncomplete": {
|
|
5187
|
+
"const": true
|
|
5188
|
+
}
|
|
5189
|
+
},
|
|
5190
|
+
"required": [
|
|
5191
|
+
"sessionId",
|
|
5192
|
+
"runId",
|
|
5193
|
+
"generation",
|
|
5194
|
+
"principalId",
|
|
5195
|
+
"userId",
|
|
5196
|
+
"item",
|
|
5197
|
+
"cursor",
|
|
5198
|
+
"epoch",
|
|
5199
|
+
"sessionPosition"
|
|
5200
|
+
],
|
|
5201
|
+
"additionalProperties": false
|
|
5202
|
+
}
|
|
5203
|
+
}
|
|
5204
|
+
},
|
|
5205
|
+
"required": [
|
|
5206
|
+
"nextPosition",
|
|
5207
|
+
"observations"
|
|
4416
5208
|
],
|
|
4417
5209
|
"additionalProperties": false
|
|
4418
5210
|
},
|
|
@@ -5489,6 +6281,12 @@
|
|
|
5489
6281
|
"properties": {
|
|
5490
6282
|
"data": {
|
|
5491
6283
|
"type": "object",
|
|
6284
|
+
"properties": {
|
|
6285
|
+
"agent": {
|
|
6286
|
+
"$ref": "#/components/schemas/ChildAgent"
|
|
6287
|
+
}
|
|
6288
|
+
},
|
|
6289
|
+
"required": [],
|
|
5492
6290
|
"additionalProperties": true
|
|
5493
6291
|
}
|
|
5494
6292
|
}
|