Repository navigation
Expand file tree
/
Copy pathopenapi.json
More file actions
7181 lines (7181 loc) · 227 KB
/
Copy pathopenapi.json
File metadata and controls
7181 lines (7181 loc) · 227 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openapi": "3.1.0",
"info": {
"title": "Judgment Pack Runner local pilot",
"version": "0.1.0",
"description": "Single local installation owner, one fixed pack release per job. Durable local schedules, file changes and authenticated event admission. Experimental evaluator; no external actions. Direct runner prefix /v1; owner-authenticated Desk proxy /api/operations."
},
"servers": [
{
"url": "/v1"
}
],
"security": [
{
"bearer": []
}
],
"paths": {
"/status": {
"get": {
"operationId": "status",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Status"
}
}
}
},
"default": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"description": "Runner's identity, health and capabilities. A capability names a feature a client can test for before using it; journal-backward means the journal routes accept tail and before."
}
},
"/previews": {
"post": {
"operationId": "previewRelease",
"responses": {
"201": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Release"
}
}
}
},
"default": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PreviewRequest"
}
}
}
}
}
},
"/jobs": {
"get": {
"operationId": "listJobs",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Page"
}
}
}
},
"default": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"parameters": [
{
"name": "after",
"in": "query",
"schema": {
"type": "integer",
"minimum": 0
},
"description": "Cursor from the previous response. Omit for the newest page."
},
{
"name": "q",
"in": "query",
"description": "Literal case-insensitive substring search; ASCII case folding. Applied before pagination.",
"schema": {
"type": "string",
"maxLength": 200
}
}
],
"description": "Paginated jobs include packTitle, packVersion and up to five recentRuns with id, state and createdAt."
},
"post": {
"operationId": "createJob",
"responses": {
"201": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Job"
}
}
}
},
"default": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateJob"
}
}
}
}
}
},
"/jobs/{job}": {
"get": {
"operationId": "getJob",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/JobDetail"
}
}
}
},
"default": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"parameters": [
{
"name": "job",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]
}
},
"/jobs/{job}/runs": {
"get": {
"operationId": "listRuns",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Page"
}
}
}
},
"default": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"parameters": [
{
"name": "job",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "after",
"in": "query",
"schema": {
"type": "integer",
"minimum": 0
},
"description": "Cursor from the previous response. Omit for the newest page."
},
{
"name": "q",
"in": "query",
"description": "Literal case-insensitive substring search; ASCII case folding. Applied before pagination.",
"schema": {
"type": "string",
"maxLength": 200
}
},
{
"name": "state",
"in": "query",
"schema": {
"type": "string",
"enum": [
"queued",
"running",
"completed",
"failed",
"interrupted"
]
}
},
{
"name": "review",
"in": "query",
"description": "Only failed/interrupted runs or completed runs with unresolved decisions or requested handoff.",
"schema": {
"type": "boolean"
}
}
]
},
"post": {
"operationId": "submitRun",
"responses": {
"202": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Run"
}
}
}
},
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Run"
}
}
}
},
"default": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Input"
}
}
}
},
"parameters": [
{
"name": "job",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "Idempotency-Key",
"in": "header",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[!-~]+$"
},
"description": "An identical retry under the same key returns the run first accepted, also after a profile its mapping names was set aside. A retry whose input is an import that names a set-aside profile is refused as 422 input_profile_set_aside: the import is bound before the retry is looked up."
}
]
}
},
"/runs/{run}": {
"get": {
"operationId": "getRun",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Run"
}
}
}
},
"default": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"parameters": [
{
"name": "run",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]
}
},
"/inputs/preview": {
"post": {
"operationId": "previewInputMapping",
"description": "Project a retained v1 file or verify/derive a v2 ordered mapping, without network acquisition, persistence or evaluation. Invalid proof and derivation errors refuse preparation; valid rule unknowns remain policy data.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Input"
}
}
}
},
"responses": {
"200": {
"description": "Mapped inputs",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InputPreview"
}
}
}
},
"default": {
"description": "Rejected input",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/input-profiles": {
"get": {
"operationId": "listInputProfiles",
"description": "Trusted bootstrap and durable registered installation profiles with canonical digests. Imported fixtures never install authority. After them, each registered profile set aside when Runner opened its store: one an earlier Runner admitted and this Runner's form refuses on its own, such as a scoped page profile whose endpointScope entry RFC 0018 round 16 refuses. It is listed with state set-aside and the reason, its profile the stored bytes served compacted and JSON-escaped as every answer is; the store's row keeps them exactly. Its ID stays taken, it counts toward the 16 profiles, and a binding, job or run that names it is refused as input_profile_set_aside, naming it.",
"responses": {
"200": {
"description": "Profiles",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/InstalledInputProfile"
},
{
"$ref": "#/components/schemas/SetAsideInputProfile"
}
]
}
}
}
}
},
"default": {
"description": "Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
},
"post": {
"operationId": "registerInputProfile",
"description": "Trusted-host configuration only. Add one immutable profile (request at most 32 KiB) without restarting workers. Persist before visibility. An identical retry returns the same digest; changed contents under an existing ID are refused, and so is the ID of a profile set aside when Runner opened its store. At most 16 combined profiles, a set-aside one included; none is evicted. The store's row keeps every profile it holds as it holds it, a set-aside one byte for byte. Does not acquire data, change releases or authorize model execution. Bearer authentication is required and browser Origin requests are refused.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InputProfile"
}
}
}
},
"responses": {
"201": {
"description": "Profile durably registered",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InstalledInputProfile"
}
}
}
},
"200": {
"description": "Identical profile already registered",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InstalledInputProfile"
}
}
}
},
"409": {
"description": "Profile ID already names different contents",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"422": {
"description": "Invalid profile or combined installation limit exceeded",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"default": {
"description": "Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/runs/{run}/verification": {
"get": {
"operationId": "exportInputVerification",
"description": "Offline input lineage bundle. Trust the profiles and release digest independently. Does not establish sealed-session completeness or policy truth. Version 2, 3, 4 or 5 may be asked for, at most once (none asked is 2), and the run is served at the highest version up to the one asked whose material it holds, answered 200 either way, so read version from the body: version 3 adds the audit record's original bytes, version 4 also the run's entry in the installation's chain of runs, and version 5 also the record's signature sidecar. A run the store no longer holds, whose entry the chain still names, is answered with 410 run_not_held, naming the entry's sequence. A run of a job with no input mapping, or a v1 file mapping, has no lineage: it is served from version 3 on, by the same steps, with inputs: not-mapped and no preparation, and is refused with 422 not_verified_mapping when it holds no audit record's bytes or version 2 (or none) is asked.",
"parameters": [
{
"name": "run",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "version",
"in": "query",
"required": false,
"description": "The export version asked for, at most once, in a well-formed query. Without it, or with 2: version 2, unchanged. With 3: version 3 when the run holds its audit record's bytes, and version 2 for a run that holds none (recorded before Runner kept them, or without an audit record). With 4: version 4 when the run also has an entry in the installation's chain of runs, and otherwise what 3 serves: a run recorded before Runner chained its runs has no entry and is unchained. With 5: version 5 when the run also keeps the signature sidecar of its audit record, and otherwise what 4 serves: a run recorded without a signing key, by a Runtime that cannot sign, or before Runner kept the sidecar, is unsigned. Anything else, or a malformed query, is refused with invalid_version. A run without lineage (no input mapping, or a v1 file mapping) has no version-2 export: with none or 2 it is refused with 422 not_verified_mapping, and with 3, 4 or 5 it is served as above, from version 3.",
"schema": {
"type": "integer",
"enum": [
2,
3,
4,
5
],
"default": 2
}
}
],
"responses": {
"200": {
"description": "Verification bundle",
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/VerificationBundle"
},
{
"$ref": "#/components/schemas/VerificationBundleV3"
},
{
"$ref": "#/components/schemas/VerificationBundleV4"
},
{
"$ref": "#/components/schemas/VerificationBundleV5"
}
]
}
}
}
},
"422": {
"description": "not_verified_mapping: the run's job has no input mapping, or a v1 file mapping, so its export has no lineage, and the run holds no audit record's bytes (it failed, was interrupted, expired or has not finished, or was recorded before Runner kept them) or version 2, or none, was asked. Message: \"This run does not use mapping v2, and an export without lineage carries the audit record's bytes: ask for version 3, 4 or 5 of a completed run that holds them.\"",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"default": {
"description": "Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/runs/{run}/diagnostics": {
"parameters": [
{
"name": "run",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "stream",
"in": "query",
"required": false,
"schema": {
"enum": [
"stderr",
"stdout"
],
"default": "stderr"
},
"description": "The stream the Runtime wrote when it evaluated the run, at most once in a well-formed query. Anything else is refused with 400 invalid_stream."
}
],
"get": {
"operationId": "getRunDiagnostics",
"description": "A finished run's attempt diagnostics: what its Runtime wrote to standard error, or standard output, when it evaluated the run, as written, up to the first 65,536 bytes (cut before a character the bound would split). A run still queued or running is refused with 409 run_not_finished. A run whose stream is not retained answers 404 no_diagnostics, with its state and what the store records of it (it expired in the queue, or never started); a missing file is never taken to say the Runtime did not run. The stream is read through the attempts directory Runner holds, and Runner serves only the file it looked at and then opened: the run's directory and the stream are each looked at without following a link, and checked on the opened descriptor to be that same object, a directory or a regular file private to the operator. A link when Runner looks, a file or directory others may read, or a name that resolves to any other object when opened is refused with 500 diagnostics_refused, and nothing of it is served; a name that vanishes in between answers 404. The Runtime's own words, kept in the operator's store: they explain a run and establish nothing about it. A read writes no entry in the journal of job activity.",
"responses": {
"200": {
"description": "The stream's first bytes",
"headers": {
"X-Diagnostics-Bytes": {
"description": "The whole stream's size in bytes.",
"schema": {
"type": "integer",
"minimum": 0
}
},
"X-Diagnostics-Truncated": {
"description": "Whether the answer is shorter than the stream.",
"schema": {
"enum": [
"true",
"false"
]
}
}
},
"content": {
"text/plain": {
"schema": {
"type": "string",
"maxLength": 65536
}
}
}
},
"default": {
"description": "Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/run-chain": {
"get": {
"operationId": "getRunChain",
"description": "The installation's chain of runs: every entry's line, exactly as stored, each ended by a newline, in sequence order. An entry binds one completed run's id to the SHA-256 of its audit record's exact bytes, chained by the Runtime's rules (trail, sequence, previous over the exact bytes of the line before). It is a trail file as the Runtime's audit verify reads one, and verify-run --chain reads it. Read in pages, as it stood at some moment during the reading; a failure after the answer began aborts the transfer. The operator keeps the chain: against the operator it establishes nothing without a checkpoint held independently.",
"responses": {
"200": {
"description": "The chain, one entry per line",
"content": {
"application/jsonl": {
"schema": {
"type": "string"
}
}
}
},
"default": {
"description": "Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/jobs/{job}/events": {
"parameters": [
{
"name": "job",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "after",
"in": "query",
"schema": {
"type": "integer",
"minimum": 0
},
"description": "Later than: the sequence of the last entry read, or 0, the default, from the start. Unlike run and occurrence lists, which page newest first, the journal pages oldest first, as the chain of runs is read."
},
{
"name": "tail",
"in": "query",
"schema": {
"type": "boolean"
},
"description": "true answers the newest page: the last up to 50 entries, in the journal's order, with more and before for the entries older than it. Capability journal-backward. false is the same as leaving it out. Not with after or before: 400 invalid_paging."
},
{
"name": "before",
"in": "query",
"schema": {
"type": "integer",
"minimum": 0
},
"description": "Earlier than: the answer is the up to 50 entries immediately before this sequence, in the journal's order (oldest first within the page), with more true when older entries exist and before, the sequence of the page's first entry, for the next older page. A value beyond the end answers the newest page; 0 answers an empty page. Capability journal-backward. Not with after or tail: 400 invalid_paging."
}
],
"get": {
"operationId": "listJobEvents",
"description": "A job's entries in the journal of job activity: those naming the job, and those naming its release alone (its preview, a refused creation). Entries are oldest first, at most 50 after the cursor, in the order their changes committed. A reader that has caught up asks again with next. The operator's own log: not chained, not signed, and binding nothing against the operator. A job the store does not hold is answered 404 not_found. With tail=true or before=<sequence> the page is read from the end: the entries stay in the journal's order within the page, more says older entries exist before the page, before is the cursor for them, and next still follows the journal forward from the page's last entry. Capability journal-backward in GET /v1/status.",
"responses": {
"200": {
"description": "A page of the journal",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/JournalPage"
}
}
}
},
"default": {
"description": "Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/events": {
"parameters": [
{
"name": "after",
"in": "query",
"schema": {
"type": "integer",
"minimum": 0
},
"description": "Later than: the sequence of the last entry read, or 0, the default, from the start. Unlike run and occurrence lists, which page newest first, the journal pages oldest first, as the chain of runs is read."
},
{
"name": "job",
"in": "query",
"schema": {
"type": "string"
},
"description": "Only the entries the job's route serves, those naming the job and those naming its release alone, and Runner's own (journal.began, runner.started, runner.stopped), which concern no job but explain a gap in every job's. A job the store does not hold is answered 404 not_found."
},
{
"name": "tail",
"in": "query",
"schema": {
"type": "boolean"
},
"description": "true answers the newest page: the last up to 50 entries, in the journal's order, with more and before for the entries older than it. Capability journal-backward. false is the same as leaving it out. Not with after or before: 400 invalid_paging."
},
{
"name": "before",
"in": "query",
"schema": {
"type": "integer",
"minimum": 0
},
"description": "Earlier than: the answer is the up to 50 entries immediately before this sequence, in the journal's order (oldest first within the page), with more true when older entries exist and before, the sequence of the page's first entry, for the next older page. A value beyond the end answers the newest page; 0 answers an empty page. Capability journal-backward. Not with after or tail: 400 invalid_paging."
}
],
"get": {
"operationId": "listEvents",
"description": "Every entry of the journal of job activity, including those that concern no job: Runner's own, a release never made into a job, a refusal that names nothing else. Entries are oldest first, at most 50 after the cursor, in the order their changes committed. A reader that has caught up asks again with next. The operator's own log: not chained, not signed, and binding nothing against the operator. With tail=true or before=<sequence> the page is read from the end: the entries stay in the journal's order within the page, more says older entries exist before the page, before is the cursor for them, and next still follows the journal forward from the page's last entry. Capability journal-backward in GET /v1/status.",
"responses": {
"200": {
"description": "A page of the journal",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/JournalPage"
}
}
}
},
"default": {
"description": "Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/inputs/next": {
"post": {
"operationId": "planNextInputSource",
"description": "Verify and derive a mapping v2 prefix. Returns the next instantiated acquisition request, or complete prepared input. Accepts source-only partial input; checks every trusted profile and class admission before returning any request. Performs no network calls, evaluation or persistence.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Input"
}
}
}
},
"responses": {
"200": {
"description": "Next source or complete preparation",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/InputPlan"
}
}
}
},
"default": {
"description": "Rejected input",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/runs": {
"get": {
"operationId": "listRuns",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Page"
}
}
}
},
"default": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"parameters": [
{
"name": "after",
"in": "query",
"schema": {
"type": "integer",
"minimum": 0
},
"description": "Cursor from the previous response. Omit for the newest page."
},
{
"name": "q",
"in": "query",
"description": "Literal case-insensitive substring search; ASCII case folding. Applied before pagination.",
"schema": {
"type": "string",
"maxLength": 200
}
},
{
"name": "state",
"in": "query",
"schema": {
"type": "string",
"enum": [
"queued",
"running",
"completed",
"failed",
"interrupted"
]
}
},
{
"name": "review",
"in": "query",
"description": "Only failed/interrupted runs or completed runs with unresolved decisions or requested handoff.",
"schema": {
"type": "boolean"
}
}
],
"summary": "List runs across all jobs",
"description": "Paginated run summaries include jobName, disposition and handoff, but omit input snapshots and audit bodies."
}
},
"/jobs/{job}/triggers": {
"parameters": [
{
"name": "job",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"get": {
"operationId": "listTriggers",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Trigger"
}
},
"localFiles": {
"type": "boolean"
},
"cloudConnections": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CloudConnectionStatus"
}
},
"gatewayProfiles": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"items",
"localFiles"
],
"additionalProperties": false
}
}
}
},
"default": {
"description": "Request rejected; inspect code and retryable.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}