@hosty-sdk/app 0.49.0 → 0.50.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 +24 -0
- package/dist/agent.d.ts +13 -0
- package/dist/agent.js +1 -0
- package/package.json +1 -1
- package/schemas/agent-event-v1.schema.json +295 -0
- package/schemas/agent-v1.openapi.json +775 -0
|
@@ -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",
|
|
@@ -4416,6 +4896,301 @@
|
|
|
4416
4896
|
],
|
|
4417
4897
|
"additionalProperties": false
|
|
4418
4898
|
},
|
|
4899
|
+
"LiveHistoryReady": {
|
|
4900
|
+
"type": "object",
|
|
4901
|
+
"properties": {
|
|
4902
|
+
"through": {
|
|
4903
|
+
"type": "string",
|
|
4904
|
+
"minLength": 1,
|
|
4905
|
+
"maxLength": 8192
|
|
4906
|
+
}
|
|
4907
|
+
},
|
|
4908
|
+
"required": [
|
|
4909
|
+
"through"
|
|
4910
|
+
],
|
|
4911
|
+
"additionalProperties": false
|
|
4912
|
+
},
|
|
4913
|
+
"LiveHistoryObservation": {
|
|
4914
|
+
"type": "object",
|
|
4915
|
+
"properties": {
|
|
4916
|
+
"sessionId": {
|
|
4917
|
+
"type": "string",
|
|
4918
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
4919
|
+
},
|
|
4920
|
+
"runId": {
|
|
4921
|
+
"type": "string",
|
|
4922
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
4923
|
+
},
|
|
4924
|
+
"generation": {
|
|
4925
|
+
"type": "string",
|
|
4926
|
+
"format": "uuid"
|
|
4927
|
+
},
|
|
4928
|
+
"principalId": {
|
|
4929
|
+
"type": "string",
|
|
4930
|
+
"minLength": 1,
|
|
4931
|
+
"maxLength": 512
|
|
4932
|
+
},
|
|
4933
|
+
"userId": {
|
|
4934
|
+
"type": "string",
|
|
4935
|
+
"minLength": 1,
|
|
4936
|
+
"maxLength": 512
|
|
4937
|
+
},
|
|
4938
|
+
"item": {
|
|
4939
|
+
"oneOf": [
|
|
4940
|
+
{
|
|
4941
|
+
"type": "object",
|
|
4942
|
+
"properties": {
|
|
4943
|
+
"kind": {
|
|
4944
|
+
"const": "snapshot"
|
|
4945
|
+
},
|
|
4946
|
+
"snapshot": {
|
|
4947
|
+
"$ref": "#/components/schemas/RunSnapshot"
|
|
4948
|
+
}
|
|
4949
|
+
},
|
|
4950
|
+
"required": [
|
|
4951
|
+
"kind",
|
|
4952
|
+
"snapshot"
|
|
4953
|
+
],
|
|
4954
|
+
"additionalProperties": false
|
|
4955
|
+
},
|
|
4956
|
+
{
|
|
4957
|
+
"type": "object",
|
|
4958
|
+
"properties": {
|
|
4959
|
+
"kind": {
|
|
4960
|
+
"const": "event"
|
|
4961
|
+
},
|
|
4962
|
+
"event": {
|
|
4963
|
+
"$ref": "#/components/schemas/Event"
|
|
4964
|
+
},
|
|
4965
|
+
"cursor": {
|
|
4966
|
+
"type": "string",
|
|
4967
|
+
"minLength": 1,
|
|
4968
|
+
"maxLength": 8192
|
|
4969
|
+
}
|
|
4970
|
+
},
|
|
4971
|
+
"required": [
|
|
4972
|
+
"kind",
|
|
4973
|
+
"event",
|
|
4974
|
+
"cursor"
|
|
4975
|
+
],
|
|
4976
|
+
"additionalProperties": false
|
|
4977
|
+
}
|
|
4978
|
+
]
|
|
4979
|
+
},
|
|
4980
|
+
"epoch": {
|
|
4981
|
+
"type": "string",
|
|
4982
|
+
"format": "uuid"
|
|
4983
|
+
},
|
|
4984
|
+
"sessionPosition": {
|
|
4985
|
+
"type": "integer",
|
|
4986
|
+
"minimum": 1,
|
|
4987
|
+
"maximum": 9007199254740991
|
|
4988
|
+
},
|
|
4989
|
+
"sourceHistoryIncomplete": {
|
|
4990
|
+
"const": true
|
|
4991
|
+
}
|
|
4992
|
+
},
|
|
4993
|
+
"required": [
|
|
4994
|
+
"sessionId",
|
|
4995
|
+
"runId",
|
|
4996
|
+
"generation",
|
|
4997
|
+
"principalId",
|
|
4998
|
+
"userId",
|
|
4999
|
+
"item",
|
|
5000
|
+
"epoch"
|
|
5001
|
+
],
|
|
5002
|
+
"additionalProperties": false
|
|
5003
|
+
},
|
|
5004
|
+
"HistoryStates": {
|
|
5005
|
+
"type": "object",
|
|
5006
|
+
"properties": {
|
|
5007
|
+
"through": {
|
|
5008
|
+
"type": "string",
|
|
5009
|
+
"minLength": 1,
|
|
5010
|
+
"maxLength": 8192
|
|
5011
|
+
},
|
|
5012
|
+
"nextSession": {
|
|
5013
|
+
"type": [
|
|
5014
|
+
"string",
|
|
5015
|
+
"null"
|
|
5016
|
+
],
|
|
5017
|
+
"maxLength": 256
|
|
5018
|
+
},
|
|
5019
|
+
"sessions": {
|
|
5020
|
+
"type": "array",
|
|
5021
|
+
"maxItems": 100,
|
|
5022
|
+
"items": {
|
|
5023
|
+
"type": "object",
|
|
5024
|
+
"properties": {
|
|
5025
|
+
"sessionId": {
|
|
5026
|
+
"type": "string",
|
|
5027
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
5028
|
+
},
|
|
5029
|
+
"userId": {
|
|
5030
|
+
"type": "string",
|
|
5031
|
+
"minLength": 1,
|
|
5032
|
+
"maxLength": 512
|
|
5033
|
+
},
|
|
5034
|
+
"principalId": {
|
|
5035
|
+
"type": "string",
|
|
5036
|
+
"minLength": 1,
|
|
5037
|
+
"maxLength": 512
|
|
5038
|
+
},
|
|
5039
|
+
"epoch": {
|
|
5040
|
+
"type": "string",
|
|
5041
|
+
"format": "uuid"
|
|
5042
|
+
},
|
|
5043
|
+
"head": {
|
|
5044
|
+
"type": "integer",
|
|
5045
|
+
"minimum": 1,
|
|
5046
|
+
"maximum": 9007199254740991
|
|
5047
|
+
},
|
|
5048
|
+
"snapshot": {
|
|
5049
|
+
"$ref": "#/components/schemas/RunSnapshot"
|
|
5050
|
+
},
|
|
5051
|
+
"sourceHistoryIncomplete": {
|
|
5052
|
+
"const": true
|
|
5053
|
+
}
|
|
5054
|
+
},
|
|
5055
|
+
"required": [
|
|
5056
|
+
"sessionId",
|
|
5057
|
+
"userId",
|
|
5058
|
+
"principalId",
|
|
5059
|
+
"epoch",
|
|
5060
|
+
"head",
|
|
5061
|
+
"snapshot"
|
|
5062
|
+
],
|
|
5063
|
+
"additionalProperties": false
|
|
5064
|
+
}
|
|
5065
|
+
}
|
|
5066
|
+
},
|
|
5067
|
+
"required": [
|
|
5068
|
+
"through",
|
|
5069
|
+
"nextSession",
|
|
5070
|
+
"sessions"
|
|
5071
|
+
],
|
|
5072
|
+
"additionalProperties": false
|
|
5073
|
+
},
|
|
5074
|
+
"HistoryRange": {
|
|
5075
|
+
"type": "object",
|
|
5076
|
+
"properties": {
|
|
5077
|
+
"nextPosition": {
|
|
5078
|
+
"type": [
|
|
5079
|
+
"integer",
|
|
5080
|
+
"null"
|
|
5081
|
+
],
|
|
5082
|
+
"minimum": 1,
|
|
5083
|
+
"maximum": 9007199254740991
|
|
5084
|
+
},
|
|
5085
|
+
"observations": {
|
|
5086
|
+
"type": "array",
|
|
5087
|
+
"maxItems": 100,
|
|
5088
|
+
"items": {
|
|
5089
|
+
"type": "object",
|
|
5090
|
+
"properties": {
|
|
5091
|
+
"sessionId": {
|
|
5092
|
+
"type": "string",
|
|
5093
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
5094
|
+
},
|
|
5095
|
+
"runId": {
|
|
5096
|
+
"type": "string",
|
|
5097
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
5098
|
+
},
|
|
5099
|
+
"generation": {
|
|
5100
|
+
"type": "string",
|
|
5101
|
+
"format": "uuid"
|
|
5102
|
+
},
|
|
5103
|
+
"principalId": {
|
|
5104
|
+
"type": "string",
|
|
5105
|
+
"minLength": 1,
|
|
5106
|
+
"maxLength": 512
|
|
5107
|
+
},
|
|
5108
|
+
"userId": {
|
|
5109
|
+
"type": "string",
|
|
5110
|
+
"minLength": 1,
|
|
5111
|
+
"maxLength": 512
|
|
5112
|
+
},
|
|
5113
|
+
"item": {
|
|
5114
|
+
"oneOf": [
|
|
5115
|
+
{
|
|
5116
|
+
"type": "object",
|
|
5117
|
+
"properties": {
|
|
5118
|
+
"kind": {
|
|
5119
|
+
"const": "snapshot"
|
|
5120
|
+
},
|
|
5121
|
+
"snapshot": {
|
|
5122
|
+
"$ref": "#/components/schemas/RunSnapshot"
|
|
5123
|
+
}
|
|
5124
|
+
},
|
|
5125
|
+
"required": [
|
|
5126
|
+
"kind",
|
|
5127
|
+
"snapshot"
|
|
5128
|
+
],
|
|
5129
|
+
"additionalProperties": false
|
|
5130
|
+
},
|
|
5131
|
+
{
|
|
5132
|
+
"type": "object",
|
|
5133
|
+
"properties": {
|
|
5134
|
+
"kind": {
|
|
5135
|
+
"const": "event"
|
|
5136
|
+
},
|
|
5137
|
+
"event": {
|
|
5138
|
+
"$ref": "#/components/schemas/Event"
|
|
5139
|
+
},
|
|
5140
|
+
"cursor": {
|
|
5141
|
+
"type": "string",
|
|
5142
|
+
"minLength": 1,
|
|
5143
|
+
"maxLength": 8192
|
|
5144
|
+
}
|
|
5145
|
+
},
|
|
5146
|
+
"required": [
|
|
5147
|
+
"kind",
|
|
5148
|
+
"event",
|
|
5149
|
+
"cursor"
|
|
5150
|
+
],
|
|
5151
|
+
"additionalProperties": false
|
|
5152
|
+
}
|
|
5153
|
+
]
|
|
5154
|
+
},
|
|
5155
|
+
"cursor": {
|
|
5156
|
+
"type": "string",
|
|
5157
|
+
"minLength": 1,
|
|
5158
|
+
"maxLength": 8192
|
|
5159
|
+
},
|
|
5160
|
+
"epoch": {
|
|
5161
|
+
"type": "string",
|
|
5162
|
+
"format": "uuid"
|
|
5163
|
+
},
|
|
5164
|
+
"sessionPosition": {
|
|
5165
|
+
"type": "integer",
|
|
5166
|
+
"minimum": 1,
|
|
5167
|
+
"maximum": 9007199254740991
|
|
5168
|
+
},
|
|
5169
|
+
"sourceHistoryIncomplete": {
|
|
5170
|
+
"const": true
|
|
5171
|
+
}
|
|
5172
|
+
},
|
|
5173
|
+
"required": [
|
|
5174
|
+
"sessionId",
|
|
5175
|
+
"runId",
|
|
5176
|
+
"generation",
|
|
5177
|
+
"principalId",
|
|
5178
|
+
"userId",
|
|
5179
|
+
"item",
|
|
5180
|
+
"cursor",
|
|
5181
|
+
"epoch",
|
|
5182
|
+
"sessionPosition"
|
|
5183
|
+
],
|
|
5184
|
+
"additionalProperties": false
|
|
5185
|
+
}
|
|
5186
|
+
}
|
|
5187
|
+
},
|
|
5188
|
+
"required": [
|
|
5189
|
+
"nextPosition",
|
|
5190
|
+
"observations"
|
|
5191
|
+
],
|
|
5192
|
+
"additionalProperties": false
|
|
5193
|
+
},
|
|
4419
5194
|
"HistoryPage": {
|
|
4420
5195
|
"type": "object",
|
|
4421
5196
|
"properties": {
|