@hosty-sdk/app 0.54.0 → 0.56.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 +8 -0
- package/dist/agent-client.js +31 -6
- package/dist/agent-schemas.js +18 -6
- package/dist/agent-server.d.ts +7 -1
- package/dist/agent-server.js +35 -6
- package/dist/agent-sessions.d.ts +1 -0
- package/dist/agent-workflow-tools.d.ts +1 -1
- package/dist/agent-workflow-tools.js +24 -4
- package/dist/agent.d.ts +19 -3
- package/dist/agent.js +5 -0
- package/package.json +1 -1
- package/schemas/agent-event-v1.schema.json +143 -2
- package/schemas/{agent-v1.fixtures.json → agent-v2.fixtures.json} +45 -7
- package/schemas/{agent-v1.openapi.json → agent-v2.openapi.json} +665 -70
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Hosty Agent Execution API",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "2.0.0",
|
|
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": {
|
|
@@ -149,6 +149,170 @@
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
|
+
"/history/ack": {
|
|
153
|
+
"post": {
|
|
154
|
+
"operationId": "history.ack",
|
|
155
|
+
"security": [
|
|
156
|
+
{
|
|
157
|
+
"installationHistory": []
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"description": "Commit the receiver's contiguous durable session position. Requires explicit acknowledgement authority for the consuming installation.",
|
|
161
|
+
"parameters": [
|
|
162
|
+
{
|
|
163
|
+
"name": "sessionId",
|
|
164
|
+
"in": "query",
|
|
165
|
+
"schema": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
168
|
+
},
|
|
169
|
+
"required": true
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "epoch",
|
|
173
|
+
"in": "query",
|
|
174
|
+
"schema": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"format": "uuid"
|
|
177
|
+
},
|
|
178
|
+
"required": true
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "through",
|
|
182
|
+
"in": "query",
|
|
183
|
+
"schema": {
|
|
184
|
+
"type": "integer",
|
|
185
|
+
"minimum": 1,
|
|
186
|
+
"maximum": 9007199254740991
|
|
187
|
+
},
|
|
188
|
+
"required": true
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"responses": {
|
|
192
|
+
"200": {
|
|
193
|
+
"description": "Acknowledged contiguous position.",
|
|
194
|
+
"content": {
|
|
195
|
+
"application/json": {
|
|
196
|
+
"schema": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"properties": {
|
|
199
|
+
"through": {
|
|
200
|
+
"type": "integer",
|
|
201
|
+
"minimum": 1,
|
|
202
|
+
"maximum": 9007199254740991
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"required": [
|
|
206
|
+
"through"
|
|
207
|
+
],
|
|
208
|
+
"additionalProperties": false
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"400": {
|
|
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
|
+
"401": {
|
|
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
|
+
"403": {
|
|
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
|
+
"404": {
|
|
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
|
+
"409": {
|
|
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
|
+
"410": {
|
|
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
|
+
"413": {
|
|
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
|
+
"422": {
|
|
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
|
+
"429": {
|
|
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
|
+
"503": {
|
|
304
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
305
|
+
"content": {
|
|
306
|
+
"application/json": {
|
|
307
|
+
"schema": {
|
|
308
|
+
"$ref": "#/components/schemas/Error"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
},
|
|
152
316
|
"/history/states": {
|
|
153
317
|
"get": {
|
|
154
318
|
"operationId": "history.states",
|
|
@@ -2030,20 +2194,315 @@
|
|
|
2030
2194
|
}
|
|
2031
2195
|
}
|
|
2032
2196
|
}
|
|
2033
|
-
},
|
|
2034
|
-
"202": {
|
|
2035
|
-
"description": "Authorized durable result.",
|
|
2036
|
-
"headers": {
|
|
2037
|
-
"Cache-Control": {
|
|
2038
|
-
"schema": {
|
|
2039
|
-
"const": "no-store"
|
|
2040
|
-
}
|
|
2041
|
-
}
|
|
2042
|
-
},
|
|
2197
|
+
},
|
|
2198
|
+
"202": {
|
|
2199
|
+
"description": "Authorized durable result.",
|
|
2200
|
+
"headers": {
|
|
2201
|
+
"Cache-Control": {
|
|
2202
|
+
"schema": {
|
|
2203
|
+
"const": "no-store"
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
},
|
|
2207
|
+
"content": {
|
|
2208
|
+
"application/json": {
|
|
2209
|
+
"schema": {
|
|
2210
|
+
"$ref": "#/components/schemas/RunSnapshot"
|
|
2211
|
+
}
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
"400": {
|
|
2216
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2217
|
+
"content": {
|
|
2218
|
+
"application/json": {
|
|
2219
|
+
"schema": {
|
|
2220
|
+
"$ref": "#/components/schemas/Error"
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
},
|
|
2225
|
+
"401": {
|
|
2226
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2227
|
+
"content": {
|
|
2228
|
+
"application/json": {
|
|
2229
|
+
"schema": {
|
|
2230
|
+
"$ref": "#/components/schemas/Error"
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
},
|
|
2235
|
+
"403": {
|
|
2236
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2237
|
+
"content": {
|
|
2238
|
+
"application/json": {
|
|
2239
|
+
"schema": {
|
|
2240
|
+
"$ref": "#/components/schemas/Error"
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
},
|
|
2245
|
+
"404": {
|
|
2246
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2247
|
+
"content": {
|
|
2248
|
+
"application/json": {
|
|
2249
|
+
"schema": {
|
|
2250
|
+
"$ref": "#/components/schemas/Error"
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
},
|
|
2255
|
+
"409": {
|
|
2256
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2257
|
+
"content": {
|
|
2258
|
+
"application/json": {
|
|
2259
|
+
"schema": {
|
|
2260
|
+
"$ref": "#/components/schemas/Error"
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
},
|
|
2265
|
+
"410": {
|
|
2266
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2267
|
+
"content": {
|
|
2268
|
+
"application/json": {
|
|
2269
|
+
"schema": {
|
|
2270
|
+
"$ref": "#/components/schemas/Error"
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
},
|
|
2275
|
+
"413": {
|
|
2276
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2277
|
+
"content": {
|
|
2278
|
+
"application/json": {
|
|
2279
|
+
"schema": {
|
|
2280
|
+
"$ref": "#/components/schemas/Error"
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
},
|
|
2285
|
+
"422": {
|
|
2286
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2287
|
+
"content": {
|
|
2288
|
+
"application/json": {
|
|
2289
|
+
"schema": {
|
|
2290
|
+
"$ref": "#/components/schemas/Error"
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
},
|
|
2295
|
+
"429": {
|
|
2296
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2297
|
+
"content": {
|
|
2298
|
+
"application/json": {
|
|
2299
|
+
"schema": {
|
|
2300
|
+
"$ref": "#/components/schemas/Error"
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
}
|
|
2304
|
+
},
|
|
2305
|
+
"503": {
|
|
2306
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2307
|
+
"content": {
|
|
2308
|
+
"application/json": {
|
|
2309
|
+
"schema": {
|
|
2310
|
+
"$ref": "#/components/schemas/Error"
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
},
|
|
2318
|
+
"/runs/{runId}": {
|
|
2319
|
+
"get": {
|
|
2320
|
+
"operationId": "runs.read",
|
|
2321
|
+
"security": [
|
|
2322
|
+
{
|
|
2323
|
+
"coreOperation": []
|
|
2324
|
+
}
|
|
2325
|
+
],
|
|
2326
|
+
"parameters": [
|
|
2327
|
+
{
|
|
2328
|
+
"name": "runId",
|
|
2329
|
+
"in": "path",
|
|
2330
|
+
"required": true,
|
|
2331
|
+
"schema": {
|
|
2332
|
+
"type": "string",
|
|
2333
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
2334
|
+
}
|
|
2335
|
+
}
|
|
2336
|
+
],
|
|
2337
|
+
"responses": {
|
|
2338
|
+
"200": {
|
|
2339
|
+
"description": "Authorized durable result.",
|
|
2340
|
+
"headers": {
|
|
2341
|
+
"Cache-Control": {
|
|
2342
|
+
"schema": {
|
|
2343
|
+
"const": "no-store"
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
},
|
|
2347
|
+
"content": {
|
|
2348
|
+
"application/json": {
|
|
2349
|
+
"schema": {
|
|
2350
|
+
"$ref": "#/components/schemas/RunSnapshot"
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
},
|
|
2355
|
+
"400": {
|
|
2356
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2357
|
+
"content": {
|
|
2358
|
+
"application/json": {
|
|
2359
|
+
"schema": {
|
|
2360
|
+
"$ref": "#/components/schemas/Error"
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
},
|
|
2365
|
+
"401": {
|
|
2366
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2367
|
+
"content": {
|
|
2368
|
+
"application/json": {
|
|
2369
|
+
"schema": {
|
|
2370
|
+
"$ref": "#/components/schemas/Error"
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
"403": {
|
|
2376
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2377
|
+
"content": {
|
|
2378
|
+
"application/json": {
|
|
2379
|
+
"schema": {
|
|
2380
|
+
"$ref": "#/components/schemas/Error"
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
},
|
|
2385
|
+
"404": {
|
|
2386
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2387
|
+
"content": {
|
|
2388
|
+
"application/json": {
|
|
2389
|
+
"schema": {
|
|
2390
|
+
"$ref": "#/components/schemas/Error"
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
}
|
|
2394
|
+
},
|
|
2395
|
+
"409": {
|
|
2396
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2397
|
+
"content": {
|
|
2398
|
+
"application/json": {
|
|
2399
|
+
"schema": {
|
|
2400
|
+
"$ref": "#/components/schemas/Error"
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
},
|
|
2405
|
+
"410": {
|
|
2406
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2407
|
+
"content": {
|
|
2408
|
+
"application/json": {
|
|
2409
|
+
"schema": {
|
|
2410
|
+
"$ref": "#/components/schemas/Error"
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
},
|
|
2415
|
+
"413": {
|
|
2416
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2417
|
+
"content": {
|
|
2418
|
+
"application/json": {
|
|
2419
|
+
"schema": {
|
|
2420
|
+
"$ref": "#/components/schemas/Error"
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
2424
|
+
},
|
|
2425
|
+
"422": {
|
|
2426
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2427
|
+
"content": {
|
|
2428
|
+
"application/json": {
|
|
2429
|
+
"schema": {
|
|
2430
|
+
"$ref": "#/components/schemas/Error"
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
}
|
|
2434
|
+
},
|
|
2435
|
+
"429": {
|
|
2436
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2437
|
+
"content": {
|
|
2438
|
+
"application/json": {
|
|
2439
|
+
"schema": {
|
|
2440
|
+
"$ref": "#/components/schemas/Error"
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
},
|
|
2445
|
+
"503": {
|
|
2446
|
+
"description": "Structured agent error; retryable never authorizes another mutation UUID.",
|
|
2447
|
+
"content": {
|
|
2448
|
+
"application/json": {
|
|
2449
|
+
"schema": {
|
|
2450
|
+
"$ref": "#/components/schemas/Error"
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
},
|
|
2458
|
+
"/runs/{runId}/events": {
|
|
2459
|
+
"get": {
|
|
2460
|
+
"operationId": "runs.events",
|
|
2461
|
+
"security": [
|
|
2462
|
+
{
|
|
2463
|
+
"coreOperation": []
|
|
2464
|
+
}
|
|
2465
|
+
],
|
|
2466
|
+
"parameters": [
|
|
2467
|
+
{
|
|
2468
|
+
"name": "runId",
|
|
2469
|
+
"in": "path",
|
|
2470
|
+
"required": true,
|
|
2471
|
+
"schema": {
|
|
2472
|
+
"type": "string",
|
|
2473
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
2474
|
+
}
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
"name": "after",
|
|
2478
|
+
"in": "query",
|
|
2479
|
+
"schema": {
|
|
2480
|
+
"type": "string",
|
|
2481
|
+
"minLength": 1,
|
|
2482
|
+
"maxLength": 8192
|
|
2483
|
+
}
|
|
2484
|
+
},
|
|
2485
|
+
{
|
|
2486
|
+
"name": "Last-Event-ID",
|
|
2487
|
+
"in": "header",
|
|
2488
|
+
"schema": {
|
|
2489
|
+
"type": "string",
|
|
2490
|
+
"minLength": 1,
|
|
2491
|
+
"maxLength": 8192
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
],
|
|
2495
|
+
"description": "At-least-once SSE. after and Last-Event-ID must agree. Persisted Event envelopes use event: agent and an opaque id cursor. 410 replay_expired requires installing a fresh atomic snapshot before following its cursor. Disconnect never cancels execution.",
|
|
2496
|
+
"responses": {
|
|
2497
|
+
"200": {
|
|
2498
|
+
"description": "Persisted agent event stream.",
|
|
2043
2499
|
"content": {
|
|
2044
|
-
"
|
|
2500
|
+
"text/event-stream": {
|
|
2045
2501
|
"schema": {
|
|
2046
|
-
"
|
|
2502
|
+
"type": "string"
|
|
2503
|
+
},
|
|
2504
|
+
"x-event-schema": {
|
|
2505
|
+
"$ref": "#/components/schemas/Event"
|
|
2047
2506
|
}
|
|
2048
2507
|
}
|
|
2049
2508
|
}
|
|
@@ -2151,9 +2610,9 @@
|
|
|
2151
2610
|
}
|
|
2152
2611
|
}
|
|
2153
2612
|
},
|
|
2154
|
-
"/runs/{runId}": {
|
|
2155
|
-
"
|
|
2156
|
-
"operationId": "runs.
|
|
2613
|
+
"/runs/{runId}/responses": {
|
|
2614
|
+
"post": {
|
|
2615
|
+
"operationId": "runs.respond",
|
|
2157
2616
|
"security": [
|
|
2158
2617
|
{
|
|
2159
2618
|
"coreOperation": []
|
|
@@ -2170,6 +2629,16 @@
|
|
|
2170
2629
|
}
|
|
2171
2630
|
}
|
|
2172
2631
|
],
|
|
2632
|
+
"requestBody": {
|
|
2633
|
+
"required": true,
|
|
2634
|
+
"content": {
|
|
2635
|
+
"application/json": {
|
|
2636
|
+
"schema": {
|
|
2637
|
+
"$ref": "#/components/schemas/ResponseInput"
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
},
|
|
2173
2642
|
"responses": {
|
|
2174
2643
|
"200": {
|
|
2175
2644
|
"description": "Authorized durable result.",
|
|
@@ -2183,7 +2652,24 @@
|
|
|
2183
2652
|
"content": {
|
|
2184
2653
|
"application/json": {
|
|
2185
2654
|
"schema": {
|
|
2186
|
-
"$ref": "#/components/schemas/
|
|
2655
|
+
"$ref": "#/components/schemas/ControlReceipt"
|
|
2656
|
+
}
|
|
2657
|
+
}
|
|
2658
|
+
}
|
|
2659
|
+
},
|
|
2660
|
+
"202": {
|
|
2661
|
+
"description": "Authorized durable result.",
|
|
2662
|
+
"headers": {
|
|
2663
|
+
"Cache-Control": {
|
|
2664
|
+
"schema": {
|
|
2665
|
+
"const": "no-store"
|
|
2666
|
+
}
|
|
2667
|
+
}
|
|
2668
|
+
},
|
|
2669
|
+
"content": {
|
|
2670
|
+
"application/json": {
|
|
2671
|
+
"schema": {
|
|
2672
|
+
"$ref": "#/components/schemas/ControlReceipt"
|
|
2187
2673
|
}
|
|
2188
2674
|
}
|
|
2189
2675
|
}
|
|
@@ -2291,9 +2777,9 @@
|
|
|
2291
2777
|
}
|
|
2292
2778
|
}
|
|
2293
2779
|
},
|
|
2294
|
-
"/runs/{runId}/
|
|
2780
|
+
"/runs/{runId}/closure": {
|
|
2295
2781
|
"get": {
|
|
2296
|
-
"operationId": "runs.
|
|
2782
|
+
"operationId": "runs.closure",
|
|
2297
2783
|
"security": [
|
|
2298
2784
|
{
|
|
2299
2785
|
"coreOperation": []
|
|
@@ -2308,37 +2794,22 @@
|
|
|
2308
2794
|
"type": "string",
|
|
2309
2795
|
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
2310
2796
|
}
|
|
2311
|
-
},
|
|
2312
|
-
{
|
|
2313
|
-
"name": "after",
|
|
2314
|
-
"in": "query",
|
|
2315
|
-
"schema": {
|
|
2316
|
-
"type": "string",
|
|
2317
|
-
"minLength": 1,
|
|
2318
|
-
"maxLength": 8192
|
|
2319
|
-
}
|
|
2320
|
-
},
|
|
2321
|
-
{
|
|
2322
|
-
"name": "Last-Event-ID",
|
|
2323
|
-
"in": "header",
|
|
2324
|
-
"schema": {
|
|
2325
|
-
"type": "string",
|
|
2326
|
-
"minLength": 1,
|
|
2327
|
-
"maxLength": 8192
|
|
2328
|
-
}
|
|
2329
2797
|
}
|
|
2330
2798
|
],
|
|
2331
|
-
"description": "At-least-once SSE. after and Last-Event-ID must agree. Persisted Event envelopes use event: agent and an opaque id cursor. 410 replay_expired requires installing a fresh atomic snapshot before following its cursor. Disconnect never cancels execution.",
|
|
2332
2799
|
"responses": {
|
|
2333
2800
|
"200": {
|
|
2334
|
-
"description": "
|
|
2801
|
+
"description": "Authorized durable result.",
|
|
2802
|
+
"headers": {
|
|
2803
|
+
"Cache-Control": {
|
|
2804
|
+
"schema": {
|
|
2805
|
+
"const": "no-store"
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
},
|
|
2335
2809
|
"content": {
|
|
2336
|
-
"
|
|
2810
|
+
"application/json": {
|
|
2337
2811
|
"schema": {
|
|
2338
|
-
"
|
|
2339
|
-
},
|
|
2340
|
-
"x-event-schema": {
|
|
2341
|
-
"$ref": "#/components/schemas/Event"
|
|
2812
|
+
"$ref": "#/components/schemas/Closure"
|
|
2342
2813
|
}
|
|
2343
2814
|
}
|
|
2344
2815
|
}
|
|
@@ -2446,9 +2917,9 @@
|
|
|
2446
2917
|
}
|
|
2447
2918
|
}
|
|
2448
2919
|
},
|
|
2449
|
-
"/runs/{runId}/
|
|
2450
|
-
"
|
|
2451
|
-
"operationId": "runs.
|
|
2920
|
+
"/runs/{runId}/discard": {
|
|
2921
|
+
"put": {
|
|
2922
|
+
"operationId": "runs.discard",
|
|
2452
2923
|
"security": [
|
|
2453
2924
|
{
|
|
2454
2925
|
"coreOperation": []
|
|
@@ -2470,7 +2941,7 @@
|
|
|
2470
2941
|
"content": {
|
|
2471
2942
|
"application/json": {
|
|
2472
2943
|
"schema": {
|
|
2473
|
-
"$ref": "#/components/schemas/
|
|
2944
|
+
"$ref": "#/components/schemas/DiscardInput"
|
|
2474
2945
|
}
|
|
2475
2946
|
}
|
|
2476
2947
|
}
|
|
@@ -2488,24 +2959,7 @@
|
|
|
2488
2959
|
"content": {
|
|
2489
2960
|
"application/json": {
|
|
2490
2961
|
"schema": {
|
|
2491
|
-
"$ref": "#/components/schemas/
|
|
2492
|
-
}
|
|
2493
|
-
}
|
|
2494
|
-
}
|
|
2495
|
-
},
|
|
2496
|
-
"202": {
|
|
2497
|
-
"description": "Authorized durable result.",
|
|
2498
|
-
"headers": {
|
|
2499
|
-
"Cache-Control": {
|
|
2500
|
-
"schema": {
|
|
2501
|
-
"const": "no-store"
|
|
2502
|
-
}
|
|
2503
|
-
}
|
|
2504
|
-
},
|
|
2505
|
-
"content": {
|
|
2506
|
-
"application/json": {
|
|
2507
|
-
"schema": {
|
|
2508
|
-
"$ref": "#/components/schemas/ControlReceipt"
|
|
2962
|
+
"$ref": "#/components/schemas/DiscardReceipt"
|
|
2509
2963
|
}
|
|
2510
2964
|
}
|
|
2511
2965
|
}
|
|
@@ -2613,8 +3067,8 @@
|
|
|
2613
3067
|
}
|
|
2614
3068
|
}
|
|
2615
3069
|
},
|
|
2616
|
-
"/runs/{runId}/
|
|
2617
|
-
"
|
|
3070
|
+
"/runs/{runId}/stop": {
|
|
3071
|
+
"put": {
|
|
2618
3072
|
"operationId": "runs.cancel",
|
|
2619
3073
|
"security": [
|
|
2620
3074
|
{
|
|
@@ -3933,8 +4387,56 @@
|
|
|
3933
4387
|
],
|
|
3934
4388
|
"additionalProperties": false
|
|
3935
4389
|
},
|
|
4390
|
+
"DiscardInput": {
|
|
4391
|
+
"type": "object",
|
|
4392
|
+
"properties": {
|
|
4393
|
+
"requestId": {
|
|
4394
|
+
"type": "string",
|
|
4395
|
+
"format": "uuid"
|
|
4396
|
+
}
|
|
4397
|
+
},
|
|
4398
|
+
"required": [
|
|
4399
|
+
"requestId"
|
|
4400
|
+
],
|
|
4401
|
+
"additionalProperties": false
|
|
4402
|
+
},
|
|
4403
|
+
"DiscardReceipt": {
|
|
4404
|
+
"type": "object",
|
|
4405
|
+
"properties": {
|
|
4406
|
+
"requestId": {
|
|
4407
|
+
"type": "string",
|
|
4408
|
+
"format": "uuid"
|
|
4409
|
+
},
|
|
4410
|
+
"runId": {
|
|
4411
|
+
"type": "string",
|
|
4412
|
+
"format": "uuid"
|
|
4413
|
+
},
|
|
4414
|
+
"state": {
|
|
4415
|
+
"const": "discarded"
|
|
4416
|
+
}
|
|
4417
|
+
},
|
|
4418
|
+
"required": [
|
|
4419
|
+
"requestId",
|
|
4420
|
+
"runId",
|
|
4421
|
+
"state"
|
|
4422
|
+
],
|
|
4423
|
+
"additionalProperties": false
|
|
4424
|
+
},
|
|
3936
4425
|
"CancelInput": {
|
|
3937
4426
|
"oneOf": [
|
|
4427
|
+
{
|
|
4428
|
+
"type": "object",
|
|
4429
|
+
"properties": {
|
|
4430
|
+
"requestId": {
|
|
4431
|
+
"type": "string",
|
|
4432
|
+
"format": "uuid"
|
|
4433
|
+
}
|
|
4434
|
+
},
|
|
4435
|
+
"required": [
|
|
4436
|
+
"requestId"
|
|
4437
|
+
],
|
|
4438
|
+
"additionalProperties": false
|
|
4439
|
+
},
|
|
3938
4440
|
{
|
|
3939
4441
|
"type": "object",
|
|
3940
4442
|
"properties": {
|
|
@@ -4623,6 +5125,9 @@
|
|
|
4623
5125
|
"stopConfirmed": {
|
|
4624
5126
|
"type": "boolean"
|
|
4625
5127
|
},
|
|
5128
|
+
"writerScopeClosed": {
|
|
5129
|
+
"type": "boolean"
|
|
5130
|
+
},
|
|
4626
5131
|
"freshness": {
|
|
4627
5132
|
"enum": [
|
|
4628
5133
|
"current",
|
|
@@ -5053,7 +5558,8 @@
|
|
|
5053
5558
|
"principalId",
|
|
5054
5559
|
"userId",
|
|
5055
5560
|
"item",
|
|
5056
|
-
"epoch"
|
|
5561
|
+
"epoch",
|
|
5562
|
+
"sessionPosition"
|
|
5057
5563
|
],
|
|
5058
5564
|
"additionalProperties": false
|
|
5059
5565
|
},
|
|
@@ -5444,6 +5950,95 @@
|
|
|
5444
5950
|
],
|
|
5445
5951
|
"additionalProperties": true
|
|
5446
5952
|
},
|
|
5953
|
+
"Closure": {
|
|
5954
|
+
"type": "object",
|
|
5955
|
+
"properties": {
|
|
5956
|
+
"ref": {
|
|
5957
|
+
"$ref": "#/components/schemas/QualifiedRef"
|
|
5958
|
+
},
|
|
5959
|
+
"sessionId": {
|
|
5960
|
+
"type": "string",
|
|
5961
|
+
"pattern": "^[A-Za-z0-9_-]{1,256}$"
|
|
5962
|
+
},
|
|
5963
|
+
"generation": {
|
|
5964
|
+
"type": "string",
|
|
5965
|
+
"format": "uuid"
|
|
5966
|
+
},
|
|
5967
|
+
"revision": {
|
|
5968
|
+
"type": "string",
|
|
5969
|
+
"pattern": "^(0|[1-9][0-9]{0,39})$"
|
|
5970
|
+
},
|
|
5971
|
+
"state": {
|
|
5972
|
+
"enum": [
|
|
5973
|
+
"queued",
|
|
5974
|
+
"running",
|
|
5975
|
+
"waiting_for_input",
|
|
5976
|
+
"succeeded",
|
|
5977
|
+
"failed",
|
|
5978
|
+
"cancelled",
|
|
5979
|
+
"unknown"
|
|
5980
|
+
]
|
|
5981
|
+
},
|
|
5982
|
+
"phase": {
|
|
5983
|
+
"enum": [
|
|
5984
|
+
"preparing",
|
|
5985
|
+
"executing",
|
|
5986
|
+
"waiting",
|
|
5987
|
+
"finalizing",
|
|
5988
|
+
"cancelling",
|
|
5989
|
+
"parked",
|
|
5990
|
+
"interrupted",
|
|
5991
|
+
"terminal"
|
|
5992
|
+
]
|
|
5993
|
+
},
|
|
5994
|
+
"stopConfirmed": {
|
|
5995
|
+
"type": "boolean"
|
|
5996
|
+
},
|
|
5997
|
+
"writerScopeClosed": {
|
|
5998
|
+
"type": "boolean"
|
|
5999
|
+
},
|
|
6000
|
+
"pendingContinuations": {
|
|
6001
|
+
"type": "array",
|
|
6002
|
+
"maxItems": 256,
|
|
6003
|
+
"items": {
|
|
6004
|
+
"type": "object",
|
|
6005
|
+
"properties": {
|
|
6006
|
+
"requestId": {
|
|
6007
|
+
"type": "string",
|
|
6008
|
+
"format": "uuid"
|
|
6009
|
+
},
|
|
6010
|
+
"run": {
|
|
6011
|
+
"$ref": "#/components/schemas/QualifiedRef"
|
|
6012
|
+
},
|
|
6013
|
+
"state": {
|
|
6014
|
+
"enum": [
|
|
6015
|
+
"pending",
|
|
6016
|
+
"awaiting_authorization",
|
|
6017
|
+
"admitted",
|
|
6018
|
+
"superseded"
|
|
6019
|
+
]
|
|
6020
|
+
}
|
|
6021
|
+
},
|
|
6022
|
+
"required": [
|
|
6023
|
+
"requestId",
|
|
6024
|
+
"run",
|
|
6025
|
+
"state"
|
|
6026
|
+
],
|
|
6027
|
+
"additionalProperties": false
|
|
6028
|
+
}
|
|
6029
|
+
}
|
|
6030
|
+
},
|
|
6031
|
+
"required": [
|
|
6032
|
+
"ref",
|
|
6033
|
+
"sessionId",
|
|
6034
|
+
"generation",
|
|
6035
|
+
"revision",
|
|
6036
|
+
"state",
|
|
6037
|
+
"phase",
|
|
6038
|
+
"stopConfirmed"
|
|
6039
|
+
],
|
|
6040
|
+
"additionalProperties": false
|
|
6041
|
+
},
|
|
5447
6042
|
"ControlReceipt": {
|
|
5448
6043
|
"type": "object",
|
|
5449
6044
|
"properties": {
|
|
@@ -5683,7 +6278,7 @@
|
|
|
5683
6278
|
"type": "object",
|
|
5684
6279
|
"properties": {
|
|
5685
6280
|
"version": {
|
|
5686
|
-
"const":
|
|
6281
|
+
"const": 2
|
|
5687
6282
|
},
|
|
5688
6283
|
"eventVersions": {
|
|
5689
6284
|
"type": "array",
|