@parcha/agentrun 0.3.5 → 0.4.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.
@@ -0,0 +1,2606 @@
1
+ // Generated by scripts/generate-clients.mjs from the server's OpenAPI document. Do not edit: run node scripts/generate-clients.mjs.
2
+ // SHA-256 of what the table is made of (operationsOf in scripts/generate-clients.mjs): 24f2349fab8ff1d67f4389be8fc8a1c081bbf22f0cf88383b9159a1d78b555c3
3
+ export const COMMANDS = [
4
+ {
5
+ "command": [
6
+ "agents",
7
+ "archive"
8
+ ],
9
+ "operationId": "archiveAgent",
10
+ "method": "POST",
11
+ "path": "/agents/{agent_id}/archive",
12
+ "pathParams": [
13
+ "agent_id"
14
+ ],
15
+ "multiSegment": [],
16
+ "query": [],
17
+ "headers": [],
18
+ "bodyFlags": [],
19
+ "hasBody": false,
20
+ "bodyRequired": false,
21
+ "bodyTypes": [],
22
+ "secretBody": false,
23
+ "raw": false,
24
+ "summary": "Archive the agent: hidden from the lists, kept with its history"
25
+ },
26
+ {
27
+ "command": [
28
+ "agents",
29
+ "create"
30
+ ],
31
+ "operationId": "createAgent",
32
+ "method": "POST",
33
+ "path": "/agents",
34
+ "pathParams": [],
35
+ "multiSegment": [],
36
+ "query": [],
37
+ "headers": [
38
+ {
39
+ "name": "Idempotency-Key",
40
+ "type": "string",
41
+ "required": false,
42
+ "description": "Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first"
43
+ }
44
+ ],
45
+ "bodyFlags": [
46
+ {
47
+ "name": "note",
48
+ "type": "string",
49
+ "required": false,
50
+ "description": "What the revision changes, kept with it (GET /agents/{agent_id}/revisions)."
51
+ }
52
+ ],
53
+ "hasBody": true,
54
+ "bodyRequired": true,
55
+ "bodyTypes": [
56
+ "application/json"
57
+ ],
58
+ "secretBody": false,
59
+ "example": {
60
+ "definition": {
61
+ "id": "due-diligence",
62
+ "name": "Due diligence",
63
+ "instructions": "Research the company you are given on the web and write a short brief: what it does, who runs it, red flags, and the sources you read.",
64
+ "tools": [
65
+ "web_search",
66
+ "web_fetch"
67
+ ]
68
+ }
69
+ },
70
+ "raw": false,
71
+ "summary": "Create an agent home"
72
+ },
73
+ {
74
+ "command": [
75
+ "agents",
76
+ "forget-sign-in"
77
+ ],
78
+ "operationId": "forgetSignIn",
79
+ "method": "DELETE",
80
+ "path": "/agents/{agent_id}/sign-ins/{key}",
81
+ "pathParams": [
82
+ "agent_id",
83
+ "key"
84
+ ],
85
+ "multiSegment": [],
86
+ "query": [],
87
+ "headers": [],
88
+ "bodyFlags": [],
89
+ "hasBody": false,
90
+ "bodyRequired": false,
91
+ "bodyTypes": [],
92
+ "secretBody": false,
93
+ "raw": false,
94
+ "summary": "Forget one of the agent's saved sign-ins"
95
+ },
96
+ {
97
+ "command": [
98
+ "agents",
99
+ "get"
100
+ ],
101
+ "operationId": "getAgent",
102
+ "method": "GET",
103
+ "path": "/agents/{agent_id}",
104
+ "pathParams": [
105
+ "agent_id"
106
+ ],
107
+ "multiSegment": [],
108
+ "query": [],
109
+ "headers": [],
110
+ "bodyFlags": [],
111
+ "hasBody": false,
112
+ "bodyRequired": false,
113
+ "bodyTypes": [],
114
+ "secretBody": false,
115
+ "raw": false,
116
+ "summary": "One agent"
117
+ },
118
+ {
119
+ "command": [
120
+ "agents",
121
+ "list"
122
+ ],
123
+ "operationId": "listAgents",
124
+ "method": "GET",
125
+ "path": "/agents",
126
+ "pathParams": [],
127
+ "multiSegment": [],
128
+ "query": [
129
+ {
130
+ "name": "limit",
131
+ "type": "integer",
132
+ "required": false,
133
+ "description": ""
134
+ },
135
+ {
136
+ "name": "cursor",
137
+ "type": "string",
138
+ "required": false,
139
+ "description": "`next_cursor` from the previous page."
140
+ },
141
+ {
142
+ "name": "archived",
143
+ "type": "boolean",
144
+ "required": false,
145
+ "description": "true lists only archived agents; false, the default, the others."
146
+ }
147
+ ],
148
+ "headers": [],
149
+ "bodyFlags": [],
150
+ "hasBody": false,
151
+ "bodyRequired": false,
152
+ "bodyTypes": [],
153
+ "secretBody": false,
154
+ "raw": false,
155
+ "summary": "List agents"
156
+ },
157
+ {
158
+ "command": [
159
+ "agents",
160
+ "runs"
161
+ ],
162
+ "operationId": "listRuns",
163
+ "method": "GET",
164
+ "path": "/agents/{agent_id}/runs",
165
+ "pathParams": [
166
+ "agent_id"
167
+ ],
168
+ "multiSegment": [],
169
+ "query": [
170
+ {
171
+ "name": "limit",
172
+ "type": "integer",
173
+ "required": false,
174
+ "description": ""
175
+ },
176
+ {
177
+ "name": "cursor",
178
+ "type": "string",
179
+ "required": false,
180
+ "description": "`next_cursor` from the previous page."
181
+ },
182
+ {
183
+ "name": "status",
184
+ "type": "string",
185
+ "enum": [
186
+ "queued",
187
+ "working",
188
+ "paused",
189
+ "input_required",
190
+ "completed",
191
+ "failed",
192
+ "cancelled"
193
+ ],
194
+ "required": false,
195
+ "description": "Only runs with this status."
196
+ }
197
+ ],
198
+ "headers": [],
199
+ "bodyFlags": [],
200
+ "hasBody": false,
201
+ "bodyRequired": false,
202
+ "bodyTypes": [],
203
+ "secretBody": false,
204
+ "raw": false,
205
+ "summary": "The agent's runs index"
206
+ },
207
+ {
208
+ "command": [
209
+ "agents",
210
+ "unarchive"
211
+ ],
212
+ "operationId": "unarchiveAgent",
213
+ "method": "POST",
214
+ "path": "/agents/{agent_id}/unarchive",
215
+ "pathParams": [
216
+ "agent_id"
217
+ ],
218
+ "multiSegment": [],
219
+ "query": [],
220
+ "headers": [],
221
+ "bodyFlags": [],
222
+ "hasBody": false,
223
+ "bodyRequired": false,
224
+ "bodyTypes": [],
225
+ "secretBody": false,
226
+ "raw": false,
227
+ "summary": "Show the archived agent in the lists again"
228
+ },
229
+ {
230
+ "command": [
231
+ "agents",
232
+ "update"
233
+ ],
234
+ "operationId": "updateDefinition",
235
+ "method": "PUT",
236
+ "path": "/agents/{agent_id}/definition",
237
+ "pathParams": [
238
+ "agent_id"
239
+ ],
240
+ "multiSegment": [],
241
+ "query": [],
242
+ "headers": [
243
+ {
244
+ "name": "If-Match",
245
+ "type": "string",
246
+ "required": false,
247
+ "description": "The home's current ETag (`homeRevision`), as `GET /agents/{agent_id}` returned it. Required with the contract's body; this server's own body (`{definition, skills?, note?}`) may leave it out."
248
+ }
249
+ ],
250
+ "bodyFlags": [],
251
+ "hasBody": true,
252
+ "bodyRequired": true,
253
+ "bodyTypes": [
254
+ "application/json"
255
+ ],
256
+ "secretBody": false,
257
+ "raw": false,
258
+ "summary": "Replace the agent's definition"
259
+ },
260
+ {
261
+ "command": [
262
+ "files",
263
+ "create"
264
+ ],
265
+ "operationId": "createFile",
266
+ "method": "POST",
267
+ "path": "/files",
268
+ "pathParams": [],
269
+ "multiSegment": [],
270
+ "query": [
271
+ {
272
+ "name": "path",
273
+ "type": "string",
274
+ "required": false,
275
+ "description": "With the file's bytes as the body: the file's path (FilePathString). Its presence makes the body the file."
276
+ },
277
+ {
278
+ "name": "content_type",
279
+ "type": "string",
280
+ "required": false,
281
+ "description": "With `path`: the file's type. Absent, the request's own type when it names one (not application/octet-stream, not application/x-www-form-urlencoded), else the path's extension's, else application/octet-stream."
282
+ },
283
+ {
284
+ "name": "sha256",
285
+ "type": "string",
286
+ "required": false,
287
+ "description": "With `path`: the hash the bytes must have (`422 input_invalid` at sha256 when they do not)."
288
+ }
289
+ ],
290
+ "headers": [
291
+ {
292
+ "name": "Idempotency-Key",
293
+ "type": "string",
294
+ "required": false,
295
+ "description": "Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first"
296
+ }
297
+ ],
298
+ "bodyFlags": [
299
+ {
300
+ "name": "size_bytes",
301
+ "type": "integer",
302
+ "required": true,
303
+ "description": "At most `limits.max_upload_bytes`."
304
+ }
305
+ ],
306
+ "hasBody": true,
307
+ "bodyRequired": true,
308
+ "bodyTypes": [
309
+ "application/json",
310
+ "application/octet-stream",
311
+ "*/*"
312
+ ],
313
+ "secretBody": false,
314
+ "raw": false,
315
+ "summary": "Reserve an upload"
316
+ },
317
+ {
318
+ "command": [
319
+ "files",
320
+ "delete"
321
+ ],
322
+ "operationId": "deleteFile",
323
+ "method": "DELETE",
324
+ "path": "/files/{file_id}",
325
+ "pathParams": [
326
+ "file_id"
327
+ ],
328
+ "multiSegment": [],
329
+ "query": [],
330
+ "headers": [],
331
+ "bodyFlags": [],
332
+ "hasBody": false,
333
+ "bodyRequired": false,
334
+ "bodyTypes": [],
335
+ "secretBody": false,
336
+ "raw": false,
337
+ "summary": "Delete an upload"
338
+ },
339
+ {
340
+ "command": [
341
+ "files",
342
+ "get"
343
+ ],
344
+ "operationId": "getFile",
345
+ "method": "GET",
346
+ "path": "/files/{file_id}",
347
+ "pathParams": [
348
+ "file_id"
349
+ ],
350
+ "multiSegment": [],
351
+ "query": [],
352
+ "headers": [],
353
+ "bodyFlags": [],
354
+ "hasBody": false,
355
+ "bodyRequired": false,
356
+ "bodyTypes": [],
357
+ "secretBody": false,
358
+ "raw": false,
359
+ "summary": "An upload's record"
360
+ },
361
+ {
362
+ "command": [
363
+ "files",
364
+ "list"
365
+ ],
366
+ "operationId": "listFiles",
367
+ "method": "GET",
368
+ "path": "/files",
369
+ "pathParams": [],
370
+ "multiSegment": [],
371
+ "query": [
372
+ {
373
+ "name": "limit",
374
+ "type": "integer",
375
+ "required": false,
376
+ "description": ""
377
+ },
378
+ {
379
+ "name": "cursor",
380
+ "type": "string",
381
+ "required": false,
382
+ "description": "`next_cursor` from the previous page."
383
+ }
384
+ ],
385
+ "headers": [],
386
+ "bodyFlags": [],
387
+ "hasBody": false,
388
+ "bodyRequired": false,
389
+ "bodyTypes": [],
390
+ "secretBody": false,
391
+ "raw": false,
392
+ "summary": "This server's uploads, newest first"
393
+ },
394
+ {
395
+ "command": [
396
+ "files",
397
+ "upload"
398
+ ],
399
+ "operationId": "uploadFile",
400
+ "method": "PUT",
401
+ "path": "/files/{file_id}",
402
+ "pathParams": [
403
+ "file_id"
404
+ ],
405
+ "multiSegment": [],
406
+ "query": [],
407
+ "headers": [],
408
+ "bodyFlags": [],
409
+ "hasBody": true,
410
+ "bodyRequired": true,
411
+ "bodyTypes": [
412
+ "application/octet-stream"
413
+ ],
414
+ "secretBody": false,
415
+ "raw": false,
416
+ "summary": "Send a reserved file's bytes"
417
+ },
418
+ {
419
+ "command": [
420
+ "home",
421
+ "delete"
422
+ ],
423
+ "operationId": "deleteHomeFile",
424
+ "method": "DELETE",
425
+ "path": "/agents/{agent_id}/home/files/{path}",
426
+ "pathParams": [
427
+ "agent_id",
428
+ "path"
429
+ ],
430
+ "multiSegment": [
431
+ "path"
432
+ ],
433
+ "query": [],
434
+ "headers": [],
435
+ "bodyFlags": [],
436
+ "hasBody": false,
437
+ "bodyRequired": false,
438
+ "bodyTypes": [],
439
+ "secretBody": false,
440
+ "raw": false,
441
+ "summary": "Delete one file of the agent's home"
442
+ },
443
+ {
444
+ "command": [
445
+ "home",
446
+ "list"
447
+ ],
448
+ "operationId": "listHomeFiles",
449
+ "method": "GET",
450
+ "path": "/agents/{agent_id}/home/files",
451
+ "pathParams": [
452
+ "agent_id"
453
+ ],
454
+ "multiSegment": [],
455
+ "query": [],
456
+ "headers": [],
457
+ "bodyFlags": [],
458
+ "hasBody": false,
459
+ "bodyRequired": false,
460
+ "bodyTypes": [],
461
+ "secretBody": false,
462
+ "raw": false,
463
+ "summary": "Every file in the agent's home"
464
+ },
465
+ {
466
+ "command": [
467
+ "home",
468
+ "read"
469
+ ],
470
+ "operationId": "readHomeFile",
471
+ "method": "GET",
472
+ "path": "/agents/{agent_id}/home/files/{path}",
473
+ "pathParams": [
474
+ "agent_id",
475
+ "path"
476
+ ],
477
+ "multiSegment": [
478
+ "path"
479
+ ],
480
+ "query": [
481
+ {
482
+ "name": "download",
483
+ "type": "integer",
484
+ "required": false,
485
+ "description": "`1` forces a download."
486
+ }
487
+ ],
488
+ "headers": [],
489
+ "bodyFlags": [],
490
+ "hasBody": false,
491
+ "bodyRequired": false,
492
+ "bodyTypes": [],
493
+ "secretBody": false,
494
+ "raw": true,
495
+ "summary": "One file of the agent's home, raw"
496
+ },
497
+ {
498
+ "command": [
499
+ "home",
500
+ "write"
501
+ ],
502
+ "operationId": "writeHomeFile",
503
+ "method": "PUT",
504
+ "path": "/agents/{agent_id}/home/files/{path}",
505
+ "pathParams": [
506
+ "agent_id",
507
+ "path"
508
+ ],
509
+ "multiSegment": [
510
+ "path"
511
+ ],
512
+ "query": [],
513
+ "headers": [],
514
+ "bodyFlags": [],
515
+ "hasBody": true,
516
+ "bodyRequired": true,
517
+ "bodyTypes": [
518
+ "application/octet-stream",
519
+ "*/*"
520
+ ],
521
+ "secretBody": false,
522
+ "raw": false,
523
+ "summary": "Write one file of the agent's home"
524
+ },
525
+ {
526
+ "command": [
527
+ "learning",
528
+ "get"
529
+ ],
530
+ "operationId": "getAgentLearning",
531
+ "method": "GET",
532
+ "path": "/agents/{agent_id}/learning",
533
+ "pathParams": [
534
+ "agent_id"
535
+ ],
536
+ "multiSegment": [],
537
+ "query": [],
538
+ "headers": [],
539
+ "bodyFlags": [],
540
+ "hasBody": false,
541
+ "bodyRequired": false,
542
+ "bodyTypes": [],
543
+ "secretBody": false,
544
+ "raw": false,
545
+ "summary": "What the agent has learned: its index, notes, log of changes and counts"
546
+ },
547
+ {
548
+ "command": [
549
+ "learning",
550
+ "log"
551
+ ],
552
+ "operationId": "listLearningLog",
553
+ "method": "GET",
554
+ "path": "/agents/{agent_id}/learning/log",
555
+ "pathParams": [
556
+ "agent_id"
557
+ ],
558
+ "multiSegment": [],
559
+ "query": [
560
+ {
561
+ "name": "cursor",
562
+ "type": "string",
563
+ "required": false,
564
+ "description": "`next_cursor` from the previous page: opaque."
565
+ },
566
+ {
567
+ "name": "limit",
568
+ "type": "integer",
569
+ "required": false,
570
+ "description": "At most 200."
571
+ }
572
+ ],
573
+ "headers": [],
574
+ "bodyFlags": [],
575
+ "hasBody": false,
576
+ "bodyRequired": false,
577
+ "bodyTypes": [],
578
+ "secretBody": false,
579
+ "raw": false,
580
+ "summary": "A page of the changes on the agent's main, newest first"
581
+ },
582
+ {
583
+ "command": [
584
+ "learning",
585
+ "notes"
586
+ ],
587
+ "operationId": "listLearningNotes",
588
+ "method": "GET",
589
+ "path": "/agents/{agent_id}/learning/notes",
590
+ "pathParams": [
591
+ "agent_id"
592
+ ],
593
+ "multiSegment": [],
594
+ "query": [
595
+ {
596
+ "name": "cursor",
597
+ "type": "string",
598
+ "required": false,
599
+ "description": "`next_cursor` from the previous page: opaque, read at the commit the first page was."
600
+ },
601
+ {
602
+ "name": "limit",
603
+ "type": "integer",
604
+ "required": false,
605
+ "description": "At most 200."
606
+ },
607
+ {
608
+ "name": "status",
609
+ "type": "string",
610
+ "enum": [
611
+ "active",
612
+ "superseded",
613
+ "retired",
614
+ "pending"
615
+ ],
616
+ "required": false,
617
+ "description": "Only notes with this status."
618
+ }
619
+ ],
620
+ "headers": [],
621
+ "bodyFlags": [],
622
+ "hasBody": false,
623
+ "bodyRequired": false,
624
+ "bodyTypes": [],
625
+ "secretBody": false,
626
+ "raw": false,
627
+ "summary": "A page of the agent's notes"
628
+ },
629
+ {
630
+ "command": [
631
+ "learning",
632
+ "read"
633
+ ],
634
+ "operationId": "readLearningFile",
635
+ "method": "GET",
636
+ "path": "/agents/{agent_id}/learning/files/{file}",
637
+ "pathParams": [
638
+ "agent_id",
639
+ "file"
640
+ ],
641
+ "multiSegment": [],
642
+ "query": [],
643
+ "headers": [],
644
+ "bodyFlags": [],
645
+ "hasBody": false,
646
+ "bodyRequired": false,
647
+ "bodyTypes": [],
648
+ "secretBody": false,
649
+ "raw": false,
650
+ "summary": "One note (or MEMORY.md, a skill's SKILL.md or a draft's file) on main, as text, with its ETag"
651
+ },
652
+ {
653
+ "command": [
654
+ "learning",
655
+ "retire"
656
+ ],
657
+ "operationId": "retireLearningFile",
658
+ "method": "POST",
659
+ "path": "/agents/{agent_id}/learning/files/{file}/retire",
660
+ "pathParams": [
661
+ "agent_id",
662
+ "file"
663
+ ],
664
+ "multiSegment": [],
665
+ "query": [],
666
+ "headers": [
667
+ {
668
+ "name": "If-Match",
669
+ "type": "string",
670
+ "required": false,
671
+ "description": "The note's ETag, as a GET answered it: an edit or a retire lands only on that version, else 412."
672
+ }
673
+ ],
674
+ "bodyFlags": [],
675
+ "hasBody": false,
676
+ "bodyRequired": false,
677
+ "bodyTypes": [],
678
+ "secretBody": false,
679
+ "raw": true,
680
+ "summary": "Retire a note, a skill or a workflow draft: out of every later run, kept in history"
681
+ },
682
+ {
683
+ "command": [
684
+ "learning",
685
+ "write"
686
+ ],
687
+ "operationId": "writeLearningFile",
688
+ "method": "PUT",
689
+ "path": "/agents/{agent_id}/learning/files/{file}",
690
+ "pathParams": [
691
+ "agent_id",
692
+ "file"
693
+ ],
694
+ "multiSegment": [],
695
+ "query": [],
696
+ "headers": [
697
+ {
698
+ "name": "If-Match",
699
+ "type": "string",
700
+ "required": false,
701
+ "description": "The note's ETag, as a GET answered it: an edit or a retire lands only on that version, else 412."
702
+ },
703
+ {
704
+ "name": "If-None-Match",
705
+ "type": "string",
706
+ "required": false,
707
+ "description": "`*`: create the note, only if the name is not taken, else 412."
708
+ }
709
+ ],
710
+ "bodyFlags": [
711
+ {
712
+ "name": "text",
713
+ "type": "string",
714
+ "required": true,
715
+ "description": "The note's whole text, front matter included."
716
+ }
717
+ ],
718
+ "hasBody": true,
719
+ "bodyRequired": true,
720
+ "bodyTypes": [
721
+ "text/markdown",
722
+ "text/plain",
723
+ "application/json"
724
+ ],
725
+ "secretBody": false,
726
+ "raw": true,
727
+ "summary": "Edit a note (If-Match) or create one (If-None-Match: *)"
728
+ },
729
+ {
730
+ "command": [
731
+ "local",
732
+ "connect-git-hub"
733
+ ],
734
+ "operationId": "connectGitHub",
735
+ "method": "POST",
736
+ "path": "/integrations/github/connect",
737
+ "pathParams": [],
738
+ "multiSegment": [],
739
+ "query": [],
740
+ "headers": [],
741
+ "bodyFlags": [
742
+ {
743
+ "name": "org",
744
+ "type": "string",
745
+ "required": false,
746
+ "description": "The GitHub organization to make the App under; absent, the signed-in GitHub user."
747
+ }
748
+ ],
749
+ "hasBody": true,
750
+ "bodyRequired": false,
751
+ "bodyTypes": [
752
+ "application/json"
753
+ ],
754
+ "secretBody": false,
755
+ "raw": false,
756
+ "summary": "Start Connect GitHub: the app-manifest form the console posts to GitHub"
757
+ },
758
+ {
759
+ "command": [
760
+ "local",
761
+ "delete-workspace-archil"
762
+ ],
763
+ "operationId": "deleteWorkspaceArchil",
764
+ "method": "DELETE",
765
+ "path": "/workspace/archil",
766
+ "pathParams": [],
767
+ "multiSegment": [],
768
+ "query": [],
769
+ "headers": [],
770
+ "bodyFlags": [],
771
+ "hasBody": false,
772
+ "bodyRequired": false,
773
+ "bodyTypes": [],
774
+ "secretBody": false,
775
+ "raw": false,
776
+ "summary": "Turn Mode 2 off: run folders on this server's own disk"
777
+ },
778
+ {
779
+ "command": [
780
+ "local",
781
+ "disconnect-git-hub"
782
+ ],
783
+ "operationId": "disconnectGitHub",
784
+ "method": "DELETE",
785
+ "path": "/integrations/github",
786
+ "pathParams": [],
787
+ "multiSegment": [],
788
+ "query": [],
789
+ "headers": [],
790
+ "bodyFlags": [],
791
+ "hasBody": false,
792
+ "bodyRequired": false,
793
+ "bodyTypes": [],
794
+ "secretBody": false,
795
+ "raw": false,
796
+ "summary": "Disconnect GitHub: the App's credentials gone from this server, and every github trigger off"
797
+ },
798
+ {
799
+ "command": [
800
+ "local",
801
+ "get-git-hub-connection"
802
+ ],
803
+ "operationId": "getGitHubConnection",
804
+ "method": "GET",
805
+ "path": "/integrations/github",
806
+ "pathParams": [],
807
+ "multiSegment": [],
808
+ "query": [],
809
+ "headers": [],
810
+ "bodyFlags": [],
811
+ "hasBody": false,
812
+ "bodyRequired": false,
813
+ "bodyTypes": [],
814
+ "secretBody": false,
815
+ "raw": false,
816
+ "summary": "Whether a GitHub App is connected, and if so its id, slug and installations, never a secret"
817
+ },
818
+ {
819
+ "command": [
820
+ "local",
821
+ "get-workspace-archil"
822
+ ],
823
+ "operationId": "getWorkspaceArchil",
824
+ "method": "GET",
825
+ "path": "/workspace/archil",
826
+ "pathParams": [],
827
+ "multiSegment": [],
828
+ "query": [],
829
+ "headers": [],
830
+ "bodyFlags": [],
831
+ "hasBody": false,
832
+ "bodyRequired": false,
833
+ "bodyTypes": [],
834
+ "secretBody": false,
835
+ "raw": false,
836
+ "summary": "Whether run folders are on an Archil disk (Mode 2), its settings, and whether its keys are saved"
837
+ },
838
+ {
839
+ "command": [
840
+ "local",
841
+ "git-hub-callback"
842
+ ],
843
+ "operationId": "gitHubCallback",
844
+ "method": "GET",
845
+ "path": "/integrations/github/callback",
846
+ "pathParams": [],
847
+ "multiSegment": [],
848
+ "query": [
849
+ {
850
+ "name": "code",
851
+ "type": "string",
852
+ "required": false,
853
+ "description": ""
854
+ },
855
+ {
856
+ "name": "state",
857
+ "type": "string",
858
+ "required": false,
859
+ "description": ""
860
+ }
861
+ ],
862
+ "headers": [],
863
+ "bodyFlags": [],
864
+ "hasBody": false,
865
+ "bodyRequired": false,
866
+ "bodyTypes": [],
867
+ "secretBody": false,
868
+ "raw": false,
869
+ "summary": "Where GitHub sends the owner's browser back with the new App's code"
870
+ },
871
+ {
872
+ "command": [
873
+ "local",
874
+ "git-hub-installed"
875
+ ],
876
+ "operationId": "gitHubInstalled",
877
+ "method": "GET",
878
+ "path": "/integrations/github/installed",
879
+ "pathParams": [],
880
+ "multiSegment": [],
881
+ "query": [
882
+ {
883
+ "name": "installation_id",
884
+ "type": "string",
885
+ "required": false,
886
+ "description": ""
887
+ },
888
+ {
889
+ "name": "setup_action",
890
+ "type": "string",
891
+ "required": false,
892
+ "description": ""
893
+ },
894
+ {
895
+ "name": "state",
896
+ "type": "string",
897
+ "required": false,
898
+ "description": ""
899
+ }
900
+ ],
901
+ "headers": [],
902
+ "bodyFlags": [],
903
+ "hasBody": false,
904
+ "bodyRequired": false,
905
+ "bodyTypes": [],
906
+ "secretBody": false,
907
+ "raw": false,
908
+ "summary": "Where GitHub sends the browser once the App is installed"
909
+ },
910
+ {
911
+ "command": [
912
+ "local",
913
+ "list-computers"
914
+ ],
915
+ "operationId": "listComputers",
916
+ "method": "GET",
917
+ "path": "/computers",
918
+ "pathParams": [],
919
+ "multiSegment": [],
920
+ "query": [],
921
+ "headers": [],
922
+ "bodyFlags": [],
923
+ "hasBody": false,
924
+ "bodyRequired": false,
925
+ "bodyTypes": [],
926
+ "secretBody": false,
927
+ "raw": false,
928
+ "summary": "Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved"
929
+ },
930
+ {
931
+ "command": [
932
+ "local",
933
+ "receive-hook-github"
934
+ ],
935
+ "operationId": "receiveHook_github",
936
+ "method": "POST",
937
+ "path": "/hooks/github",
938
+ "pathParams": [],
939
+ "multiSegment": [],
940
+ "query": [],
941
+ "headers": [],
942
+ "bodyFlags": [],
943
+ "hasBody": true,
944
+ "bodyRequired": true,
945
+ "bodyTypes": [
946
+ "*/*"
947
+ ],
948
+ "secretBody": false,
949
+ "raw": false,
950
+ "summary": "Fire a GitHub trigger: a request it checks, no token"
951
+ },
952
+ {
953
+ "command": [
954
+ "local",
955
+ "test-computer"
956
+ ],
957
+ "operationId": "testComputer",
958
+ "method": "POST",
959
+ "path": "/computers/{provider}/test",
960
+ "pathParams": [
961
+ "provider"
962
+ ],
963
+ "multiSegment": [],
964
+ "query": [],
965
+ "headers": [],
966
+ "bodyFlags": [],
967
+ "hasBody": false,
968
+ "bodyRequired": false,
969
+ "bodyTypes": [],
970
+ "secretBody": false,
971
+ "raw": false,
972
+ "summary": "Test a computer provider's account with its saved keys"
973
+ },
974
+ {
975
+ "command": [
976
+ "local",
977
+ "test-workspace-archil"
978
+ ],
979
+ "operationId": "testWorkspaceArchil",
980
+ "method": "POST",
981
+ "path": "/workspace/archil/test",
982
+ "pathParams": [],
983
+ "multiSegment": [],
984
+ "query": [],
985
+ "headers": [],
986
+ "bodyFlags": [],
987
+ "hasBody": false,
988
+ "bodyRequired": false,
989
+ "bodyTypes": [],
990
+ "secretBody": false,
991
+ "raw": false,
992
+ "summary": "Test the Archil disk with its saved account key"
993
+ },
994
+ {
995
+ "command": [
996
+ "mcp-servers",
997
+ "delete"
998
+ ],
999
+ "operationId": "deleteMcpServer",
1000
+ "method": "DELETE",
1001
+ "path": "/settings/mcp-servers/{name}",
1002
+ "pathParams": [
1003
+ "name"
1004
+ ],
1005
+ "multiSegment": [],
1006
+ "query": [],
1007
+ "headers": [],
1008
+ "bodyFlags": [],
1009
+ "hasBody": false,
1010
+ "bodyRequired": false,
1011
+ "bodyTypes": [],
1012
+ "secretBody": false,
1013
+ "raw": false,
1014
+ "summary": "Forget a saved MCP server and its credential"
1015
+ },
1016
+ {
1017
+ "command": [
1018
+ "mcp-servers",
1019
+ "get"
1020
+ ],
1021
+ "operationId": "getMcpServer",
1022
+ "method": "GET",
1023
+ "path": "/settings/mcp-servers/{name}",
1024
+ "pathParams": [
1025
+ "name"
1026
+ ],
1027
+ "multiSegment": [],
1028
+ "query": [],
1029
+ "headers": [],
1030
+ "bodyFlags": [],
1031
+ "hasBody": false,
1032
+ "bodyRequired": false,
1033
+ "bodyTypes": [],
1034
+ "secretBody": false,
1035
+ "raw": false,
1036
+ "summary": "One saved MCP server; never its credential"
1037
+ },
1038
+ {
1039
+ "command": [
1040
+ "mcp-servers",
1041
+ "list"
1042
+ ],
1043
+ "operationId": "listMcpServers",
1044
+ "method": "GET",
1045
+ "path": "/settings/mcp-servers",
1046
+ "pathParams": [],
1047
+ "multiSegment": [],
1048
+ "query": [],
1049
+ "headers": [],
1050
+ "bodyFlags": [],
1051
+ "hasBody": false,
1052
+ "bodyRequired": false,
1053
+ "bodyTypes": [],
1054
+ "secretBody": false,
1055
+ "raw": false,
1056
+ "summary": "The remote MCP servers saved here, with their tools; never a credential"
1057
+ },
1058
+ {
1059
+ "command": [
1060
+ "mcp-servers",
1061
+ "oauth-client"
1062
+ ],
1063
+ "operationId": "mcpOAuthClient",
1064
+ "method": "GET",
1065
+ "path": "/settings/mcp-servers/oauth/client.json",
1066
+ "pathParams": [],
1067
+ "multiSegment": [],
1068
+ "query": [],
1069
+ "headers": [],
1070
+ "bodyFlags": [],
1071
+ "hasBody": false,
1072
+ "bodyRequired": false,
1073
+ "bodyTypes": [],
1074
+ "secretBody": false,
1075
+ "raw": false,
1076
+ "summary": "This server's OAuth client metadata document"
1077
+ },
1078
+ {
1079
+ "command": [
1080
+ "mcp-servers",
1081
+ "private-hosts"
1082
+ ],
1083
+ "operationId": "getMcpPrivateHosts",
1084
+ "method": "GET",
1085
+ "path": "/settings/mcp-servers/oauth/private-hosts",
1086
+ "pathParams": [],
1087
+ "multiSegment": [],
1088
+ "query": [],
1089
+ "headers": [],
1090
+ "bodyFlags": [],
1091
+ "hasBody": false,
1092
+ "bodyRequired": false,
1093
+ "bodyTypes": [],
1094
+ "secretBody": false,
1095
+ "raw": false,
1096
+ "summary": "The private-network hosts an MCP server's authorization server may be on"
1097
+ },
1098
+ {
1099
+ "command": [
1100
+ "mcp-servers",
1101
+ "refresh"
1102
+ ],
1103
+ "operationId": "refreshMcpServer",
1104
+ "method": "POST",
1105
+ "path": "/settings/mcp-servers/{name}/refresh",
1106
+ "pathParams": [
1107
+ "name"
1108
+ ],
1109
+ "multiSegment": [],
1110
+ "query": [],
1111
+ "headers": [],
1112
+ "bodyFlags": [],
1113
+ "hasBody": false,
1114
+ "bodyRequired": false,
1115
+ "bodyTypes": [],
1116
+ "secretBody": false,
1117
+ "raw": false,
1118
+ "summary": "List a saved MCP server's tools again, keep them, and say what changed"
1119
+ },
1120
+ {
1121
+ "command": [
1122
+ "revisions",
1123
+ "list"
1124
+ ],
1125
+ "operationId": "listRevisions",
1126
+ "method": "GET",
1127
+ "path": "/agents/{agent_id}/revisions",
1128
+ "pathParams": [
1129
+ "agent_id"
1130
+ ],
1131
+ "multiSegment": [],
1132
+ "query": [
1133
+ {
1134
+ "name": "limit",
1135
+ "type": "integer",
1136
+ "required": false,
1137
+ "description": ""
1138
+ },
1139
+ {
1140
+ "name": "cursor",
1141
+ "type": "string",
1142
+ "required": false,
1143
+ "description": "`next_cursor` from the previous page."
1144
+ }
1145
+ ],
1146
+ "headers": [],
1147
+ "bodyFlags": [],
1148
+ "hasBody": false,
1149
+ "bodyRequired": false,
1150
+ "bodyTypes": [],
1151
+ "secretBody": false,
1152
+ "raw": false,
1153
+ "summary": "The agent's revisions, newest first"
1154
+ },
1155
+ {
1156
+ "command": [
1157
+ "revisions",
1158
+ "set-current"
1159
+ ],
1160
+ "operationId": "setCurrent",
1161
+ "method": "POST",
1162
+ "path": "/agents/{agent_id}/current",
1163
+ "pathParams": [
1164
+ "agent_id"
1165
+ ],
1166
+ "multiSegment": [],
1167
+ "query": [],
1168
+ "headers": [],
1169
+ "bodyFlags": [
1170
+ {
1171
+ "name": "revision",
1172
+ "type": "string",
1173
+ "required": true,
1174
+ "description": ""
1175
+ }
1176
+ ],
1177
+ "hasBody": true,
1178
+ "bodyRequired": true,
1179
+ "bodyTypes": [
1180
+ "application/json"
1181
+ ],
1182
+ "secretBody": false,
1183
+ "raw": false,
1184
+ "summary": "Make one of the agent's revisions current again"
1185
+ },
1186
+ {
1187
+ "command": [
1188
+ "runs",
1189
+ "archive"
1190
+ ],
1191
+ "operationId": "archiveRun",
1192
+ "method": "POST",
1193
+ "path": "/runs/{run_id}/archive",
1194
+ "pathParams": [
1195
+ "run_id"
1196
+ ],
1197
+ "multiSegment": [],
1198
+ "query": [],
1199
+ "headers": [],
1200
+ "bodyFlags": [],
1201
+ "hasBody": false,
1202
+ "bodyRequired": false,
1203
+ "bodyTypes": [],
1204
+ "secretBody": false,
1205
+ "raw": false,
1206
+ "summary": "Archive the run: hidden from the lists, kept with its history"
1207
+ },
1208
+ {
1209
+ "command": [
1210
+ "runs",
1211
+ "cancel"
1212
+ ],
1213
+ "operationId": "cancelRun",
1214
+ "method": "POST",
1215
+ "path": "/runs/{run_id}/cancel",
1216
+ "pathParams": [
1217
+ "run_id"
1218
+ ],
1219
+ "multiSegment": [],
1220
+ "query": [],
1221
+ "headers": [],
1222
+ "bodyFlags": [],
1223
+ "hasBody": false,
1224
+ "bodyRequired": false,
1225
+ "bodyTypes": [],
1226
+ "secretBody": false,
1227
+ "raw": false,
1228
+ "summary": "End the run"
1229
+ },
1230
+ {
1231
+ "command": [
1232
+ "runs",
1233
+ "create-inline-run"
1234
+ ],
1235
+ "operationId": "createInlineRun",
1236
+ "method": "POST",
1237
+ "path": "/runs",
1238
+ "pathParams": [],
1239
+ "multiSegment": [],
1240
+ "query": [],
1241
+ "headers": [
1242
+ {
1243
+ "name": "Idempotency-Key",
1244
+ "type": "string",
1245
+ "required": false,
1246
+ "description": "Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first"
1247
+ }
1248
+ ],
1249
+ "bodyFlags": [
1250
+ {
1251
+ "name": "note",
1252
+ "type": "string",
1253
+ "required": false,
1254
+ "description": "What the version changes, kept with its revision by the version's first run (GET /agents/{agent_id}/revisions); not part of its definition."
1255
+ },
1256
+ {
1257
+ "name": "effort",
1258
+ "type": "string",
1259
+ "enum": [
1260
+ "low",
1261
+ "medium",
1262
+ "high"
1263
+ ],
1264
+ "required": false,
1265
+ "description": "How hard a run works. It sets the model's thinking level, and adds a short note on how to work right after the agent's instructions, on every harness: low answers directly, medium plans briefly and checks once, high plans each part, fills the gaps and reviews. A run started with none thinks at its agent revision's own thinking level, else the host's default, and gets no note."
1266
+ },
1267
+ {
1268
+ "name": "max_cost_usd",
1269
+ "type": "number",
1270
+ "required": false,
1271
+ "description": "This run's cap, for every turn of it. Default the definition's `max_cost_usd`, else the effort default."
1272
+ },
1273
+ {
1274
+ "name": "quote_id",
1275
+ "type": "string",
1276
+ "required": false,
1277
+ "description": "Run at a quote's terms. A different `effort` or `max_cost_usd` than the quote's is `409 quote_invalid`."
1278
+ },
1279
+ {
1280
+ "name": "cap_mode",
1281
+ "type": "string",
1282
+ "enum": [
1283
+ "expected",
1284
+ "strict"
1285
+ ],
1286
+ "required": false,
1287
+ "description": "How the run's cap (`max_cost_usd`) prices each model request's input. `expected` (the default): the input the previous request of its conversation reported read from or written to the cache, at the cache-read price, when that request ended less than 4 minutes before; the rest of its input (the previous request's input after the cache, and what the conversation grew by since, a token a byte) at the input price, the cache write's when dearer. With no such request, all of it at that price. Output is limited to what the cap leaves, so output never passes it; a cache miss can, by at most the request's bound (its input uncached less its input expected), served as the run's `cost.overshoot_bound_usd` while it is in flight; its real cost is booked, and the timeline says so. `strict`: every input token at the input or cache-write price, the worst case: no request passes the cap, and a run pauses sooner. Only with a cap. Absent: the agent's (its definition's `cap_mode`), else expected. 422 not_allowed for a run with no cap."
1288
+ }
1289
+ ],
1290
+ "hasBody": true,
1291
+ "bodyRequired": true,
1292
+ "bodyTypes": [
1293
+ "application/json"
1294
+ ],
1295
+ "secretBody": false,
1296
+ "example": {
1297
+ "external": {
1298
+ "source": "grep",
1299
+ "kind": "expert",
1300
+ "id": "due-diligence",
1301
+ "version": 3
1302
+ },
1303
+ "definition": {
1304
+ "name": "Due diligence",
1305
+ "instructions": "Research the company you are given on the web and write a short brief: what it does, who runs it, red flags, and the sources you read.",
1306
+ "tools": [
1307
+ "web_search",
1308
+ "web_fetch"
1309
+ ]
1310
+ },
1311
+ "input": {
1312
+ "content": "Research https://stripe.com and write the brief."
1313
+ },
1314
+ "max_cost_usd": 1
1315
+ },
1316
+ "raw": false,
1317
+ "summary": "Start a run of an agent another system owns, given inline"
1318
+ },
1319
+ {
1320
+ "command": [
1321
+ "runs",
1322
+ "files"
1323
+ ],
1324
+ "operationId": "listRunFiles",
1325
+ "method": "GET",
1326
+ "path": "/runs/{run_id}/files",
1327
+ "pathParams": [
1328
+ "run_id"
1329
+ ],
1330
+ "multiSegment": [],
1331
+ "query": [],
1332
+ "headers": [],
1333
+ "bodyFlags": [],
1334
+ "hasBody": false,
1335
+ "bodyRequired": false,
1336
+ "bodyTypes": [],
1337
+ "secretBody": false,
1338
+ "raw": false,
1339
+ "summary": "The files the run wrote"
1340
+ },
1341
+ {
1342
+ "command": [
1343
+ "runs",
1344
+ "get"
1345
+ ],
1346
+ "operationId": "getRun",
1347
+ "method": "GET",
1348
+ "path": "/runs/{run_id}",
1349
+ "pathParams": [
1350
+ "run_id"
1351
+ ],
1352
+ "multiSegment": [],
1353
+ "query": [],
1354
+ "headers": [],
1355
+ "bodyFlags": [],
1356
+ "hasBody": false,
1357
+ "bodyRequired": false,
1358
+ "bodyTypes": [],
1359
+ "secretBody": false,
1360
+ "raw": false,
1361
+ "summary": "One run"
1362
+ },
1363
+ {
1364
+ "command": [
1365
+ "runs",
1366
+ "graph"
1367
+ ],
1368
+ "operationId": "getRunGraph",
1369
+ "method": "GET",
1370
+ "path": "/runs/{run_id}/graph",
1371
+ "pathParams": [
1372
+ "run_id"
1373
+ ],
1374
+ "multiSegment": [],
1375
+ "query": [],
1376
+ "headers": [],
1377
+ "bodyFlags": [],
1378
+ "hasBody": false,
1379
+ "bodyRequired": false,
1380
+ "bodyTypes": [],
1381
+ "secretBody": false,
1382
+ "raw": false,
1383
+ "summary": "A workflow run's graph, live"
1384
+ },
1385
+ {
1386
+ "command": [
1387
+ "runs",
1388
+ "hand-back-run-computer"
1389
+ ],
1390
+ "operationId": "handBackRunComputer",
1391
+ "method": "POST",
1392
+ "path": "/runs/{run_id}/computer/hand-back",
1393
+ "pathParams": [
1394
+ "run_id"
1395
+ ],
1396
+ "multiSegment": [],
1397
+ "query": [],
1398
+ "headers": [],
1399
+ "bodyFlags": [
1400
+ {
1401
+ "name": "outcome",
1402
+ "type": "string",
1403
+ "enum": [
1404
+ "done",
1405
+ "cancelled"
1406
+ ],
1407
+ "required": false,
1408
+ "description": "The answer to the agent's ask: `done` when the person did what it asked, `cancelled` when they will not. Absent: done."
1409
+ }
1410
+ ],
1411
+ "hasBody": true,
1412
+ "bodyRequired": false,
1413
+ "bodyTypes": [
1414
+ "application/json"
1415
+ ],
1416
+ "secretBody": false,
1417
+ "raw": false,
1418
+ "summary": "Hand the run's computer back to the agent, or answer its ask for the owner"
1419
+ },
1420
+ {
1421
+ "command": [
1422
+ "runs",
1423
+ "learning"
1424
+ ],
1425
+ "operationId": "getRunLearning",
1426
+ "method": "GET",
1427
+ "path": "/runs/{run_id}/learning",
1428
+ "pathParams": [
1429
+ "run_id"
1430
+ ],
1431
+ "multiSegment": [],
1432
+ "query": [],
1433
+ "headers": [],
1434
+ "bodyFlags": [],
1435
+ "hasBody": false,
1436
+ "bodyRequired": false,
1437
+ "bodyTypes": [],
1438
+ "secretBody": false,
1439
+ "raw": false,
1440
+ "summary": "The run's learning whole: its seed, merge, verdict, problems and cost"
1441
+ },
1442
+ {
1443
+ "command": [
1444
+ "runs",
1445
+ "learning-diff"
1446
+ ],
1447
+ "operationId": "getRunLearningDiff",
1448
+ "method": "GET",
1449
+ "path": "/runs/{run_id}/learning/diff",
1450
+ "pathParams": [
1451
+ "run_id"
1452
+ ],
1453
+ "multiSegment": [],
1454
+ "query": [],
1455
+ "headers": [],
1456
+ "bodyFlags": [],
1457
+ "hasBody": false,
1458
+ "bodyRequired": false,
1459
+ "bodyTypes": [],
1460
+ "secretBody": false,
1461
+ "raw": false,
1462
+ "summary": "What the run proposed, file by file"
1463
+ },
1464
+ {
1465
+ "command": [
1466
+ "runs",
1467
+ "list"
1468
+ ],
1469
+ "operationId": "listAllRuns",
1470
+ "method": "GET",
1471
+ "path": "/runs",
1472
+ "pathParams": [],
1473
+ "multiSegment": [],
1474
+ "query": [
1475
+ {
1476
+ "name": "limit",
1477
+ "type": "integer",
1478
+ "required": false,
1479
+ "description": ""
1480
+ },
1481
+ {
1482
+ "name": "cursor",
1483
+ "type": "string",
1484
+ "required": false,
1485
+ "description": "`next_cursor` from the previous page."
1486
+ },
1487
+ {
1488
+ "name": "agent",
1489
+ "type": "string",
1490
+ "required": false,
1491
+ "description": "Only this agent's runs."
1492
+ },
1493
+ {
1494
+ "name": "revision",
1495
+ "type": "string",
1496
+ "required": false,
1497
+ "description": "Only runs of this revision."
1498
+ },
1499
+ {
1500
+ "name": "status",
1501
+ "type": "string",
1502
+ "enum": [
1503
+ "queued",
1504
+ "working",
1505
+ "paused",
1506
+ "input_required",
1507
+ "completed",
1508
+ "failed",
1509
+ "cancelled"
1510
+ ],
1511
+ "required": false,
1512
+ "description": "Only runs with this status."
1513
+ },
1514
+ {
1515
+ "name": "archived",
1516
+ "type": "boolean",
1517
+ "required": false,
1518
+ "description": "true lists only archived runs; false, the default, the others."
1519
+ }
1520
+ ],
1521
+ "headers": [],
1522
+ "bodyFlags": [],
1523
+ "hasBody": false,
1524
+ "bodyRequired": false,
1525
+ "bodyTypes": [],
1526
+ "secretBody": false,
1527
+ "raw": false,
1528
+ "summary": "Every agent's runs, newest first"
1529
+ },
1530
+ {
1531
+ "command": [
1532
+ "runs",
1533
+ "message"
1534
+ ],
1535
+ "operationId": "sendMessage",
1536
+ "method": "POST",
1537
+ "path": "/runs/{run_id}/messages",
1538
+ "pathParams": [
1539
+ "run_id"
1540
+ ],
1541
+ "multiSegment": [],
1542
+ "query": [],
1543
+ "headers": [
1544
+ {
1545
+ "name": "Idempotency-Key",
1546
+ "type": "string",
1547
+ "required": false,
1548
+ "description": "Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first"
1549
+ }
1550
+ ],
1551
+ "bodyFlags": [
1552
+ {
1553
+ "name": "content",
1554
+ "type": "string",
1555
+ "required": true,
1556
+ "description": "At most `limits.max_message_chars`. Not only whitespace."
1557
+ }
1558
+ ],
1559
+ "hasBody": true,
1560
+ "bodyRequired": true,
1561
+ "bodyTypes": [
1562
+ "application/json"
1563
+ ],
1564
+ "secretBody": false,
1565
+ "raw": false,
1566
+ "summary": "Send the run a message"
1567
+ },
1568
+ {
1569
+ "command": [
1570
+ "runs",
1571
+ "pause"
1572
+ ],
1573
+ "operationId": "pauseRun",
1574
+ "method": "POST",
1575
+ "path": "/runs/{run_id}/pause",
1576
+ "pathParams": [
1577
+ "run_id"
1578
+ ],
1579
+ "multiSegment": [],
1580
+ "query": [],
1581
+ "headers": [],
1582
+ "bodyFlags": [],
1583
+ "hasBody": false,
1584
+ "bodyRequired": false,
1585
+ "bodyTypes": [],
1586
+ "secretBody": false,
1587
+ "raw": false,
1588
+ "summary": "Pause a workflow run"
1589
+ },
1590
+ {
1591
+ "command": [
1592
+ "runs",
1593
+ "raise-cap"
1594
+ ],
1595
+ "operationId": "raiseRunCap",
1596
+ "method": "PATCH",
1597
+ "path": "/runs/{run_id}",
1598
+ "pathParams": [
1599
+ "run_id"
1600
+ ],
1601
+ "multiSegment": [],
1602
+ "query": [],
1603
+ "headers": [],
1604
+ "bodyFlags": [
1605
+ {
1606
+ "name": "max_cost_usd",
1607
+ "type": "number",
1608
+ "required": true,
1609
+ "description": "The new cap, above the run's current cap."
1610
+ }
1611
+ ],
1612
+ "hasBody": true,
1613
+ "bodyRequired": true,
1614
+ "bodyTypes": [
1615
+ "application/json"
1616
+ ],
1617
+ "secretBody": false,
1618
+ "raw": false,
1619
+ "summary": "Raise a run's spend cap"
1620
+ },
1621
+ {
1622
+ "command": [
1623
+ "runs",
1624
+ "read-file"
1625
+ ],
1626
+ "operationId": "readRunFile",
1627
+ "method": "GET",
1628
+ "path": "/runs/{run_id}/files/{path}",
1629
+ "pathParams": [
1630
+ "run_id",
1631
+ "path"
1632
+ ],
1633
+ "multiSegment": [
1634
+ "path"
1635
+ ],
1636
+ "query": [
1637
+ {
1638
+ "name": "download",
1639
+ "type": "integer",
1640
+ "required": false,
1641
+ "description": "`1` forces a download."
1642
+ }
1643
+ ],
1644
+ "headers": [
1645
+ {
1646
+ "name": "Range",
1647
+ "type": "string",
1648
+ "required": false,
1649
+ "description": "One byte range, `bytes=<start>-<end>`."
1650
+ }
1651
+ ],
1652
+ "bodyFlags": [],
1653
+ "hasBody": false,
1654
+ "bodyRequired": false,
1655
+ "bodyTypes": [],
1656
+ "secretBody": false,
1657
+ "raw": true,
1658
+ "summary": "One file's raw bytes"
1659
+ },
1660
+ {
1661
+ "command": [
1662
+ "runs",
1663
+ "resume"
1664
+ ],
1665
+ "operationId": "resumeRun",
1666
+ "method": "POST",
1667
+ "path": "/runs/{run_id}/resume",
1668
+ "pathParams": [
1669
+ "run_id"
1670
+ ],
1671
+ "multiSegment": [],
1672
+ "query": [],
1673
+ "headers": [],
1674
+ "bodyFlags": [],
1675
+ "hasBody": false,
1676
+ "bodyRequired": false,
1677
+ "bodyTypes": [],
1678
+ "secretBody": false,
1679
+ "raw": false,
1680
+ "summary": "Resume a paused workflow run"
1681
+ },
1682
+ {
1683
+ "command": [
1684
+ "runs",
1685
+ "start"
1686
+ ],
1687
+ "operationId": "createRun",
1688
+ "method": "POST",
1689
+ "path": "/agents/{agent_id}/runs",
1690
+ "pathParams": [
1691
+ "agent_id"
1692
+ ],
1693
+ "multiSegment": [],
1694
+ "query": [],
1695
+ "headers": [
1696
+ {
1697
+ "name": "Idempotency-Key",
1698
+ "type": "string",
1699
+ "required": false,
1700
+ "description": "Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first"
1701
+ }
1702
+ ],
1703
+ "bodyFlags": [
1704
+ {
1705
+ "name": "effort",
1706
+ "type": "string",
1707
+ "enum": [
1708
+ "low",
1709
+ "medium",
1710
+ "high"
1711
+ ],
1712
+ "required": false,
1713
+ "description": "How hard a run works. It sets the model's thinking level, and adds a short note on how to work right after the agent's instructions, on every harness: low answers directly, medium plans briefly and checks once, high plans each part, fills the gaps and reviews. A run started with none thinks at its agent revision's own thinking level, else the host's default, and gets no note."
1714
+ },
1715
+ {
1716
+ "name": "max_cost_usd",
1717
+ "type": "number",
1718
+ "required": false,
1719
+ "description": "This run's cap, for every turn of it. Default the definition's `max_cost_usd`, else the effort default."
1720
+ },
1721
+ {
1722
+ "name": "quote_id",
1723
+ "type": "string",
1724
+ "required": false,
1725
+ "description": "Run at a quote's terms. A different `effort` or `max_cost_usd` than the quote's is `409 quote_invalid`."
1726
+ },
1727
+ {
1728
+ "name": "cap_mode",
1729
+ "type": "string",
1730
+ "enum": [
1731
+ "expected",
1732
+ "strict"
1733
+ ],
1734
+ "required": false,
1735
+ "description": "How the run's cap (`max_cost_usd`) prices each model request's input. `expected` (the default): the input the previous request of its conversation reported read from or written to the cache, at the cache-read price, when that request ended less than 4 minutes before; the rest of its input (the previous request's input after the cache, and what the conversation grew by since, a token a byte) at the input price, the cache write's when dearer. With no such request, all of it at that price. Output is limited to what the cap leaves, so output never passes it; a cache miss can, by at most the request's bound (its input uncached less its input expected), served as the run's `cost.overshoot_bound_usd` while it is in flight; its real cost is booked, and the timeline says so. `strict`: every input token at the input or cache-write price, the worst case: no request passes the cap, and a run pauses sooner. Only with a cap. Absent: the agent's (its definition's `cap_mode`), else expected. 422 not_allowed for a run with no cap."
1736
+ }
1737
+ ],
1738
+ "hasBody": true,
1739
+ "bodyRequired": true,
1740
+ "bodyTypes": [
1741
+ "application/json"
1742
+ ],
1743
+ "secretBody": false,
1744
+ "example": {
1745
+ "input": {
1746
+ "content": "Research https://stripe.com and write the brief."
1747
+ },
1748
+ "max_cost_usd": 1
1749
+ },
1750
+ "raw": false,
1751
+ "summary": "Start a run"
1752
+ },
1753
+ {
1754
+ "command": [
1755
+ "runs",
1756
+ "stop"
1757
+ ],
1758
+ "operationId": "stopRun",
1759
+ "method": "POST",
1760
+ "path": "/runs/{run_id}/stop",
1761
+ "pathParams": [
1762
+ "run_id"
1763
+ ],
1764
+ "multiSegment": [],
1765
+ "query": [],
1766
+ "headers": [],
1767
+ "bodyFlags": [],
1768
+ "hasBody": false,
1769
+ "bodyRequired": false,
1770
+ "bodyTypes": [],
1771
+ "secretBody": false,
1772
+ "raw": false,
1773
+ "summary": "End the current turn"
1774
+ },
1775
+ {
1776
+ "command": [
1777
+ "runs",
1778
+ "take-over-run-computer"
1779
+ ],
1780
+ "operationId": "takeOverRunComputer",
1781
+ "method": "POST",
1782
+ "path": "/runs/{run_id}/computer/take-over",
1783
+ "pathParams": [
1784
+ "run_id"
1785
+ ],
1786
+ "multiSegment": [],
1787
+ "query": [],
1788
+ "headers": [],
1789
+ "bodyFlags": [],
1790
+ "hasBody": true,
1791
+ "bodyRequired": false,
1792
+ "bodyTypes": [
1793
+ "application/json"
1794
+ ],
1795
+ "secretBody": false,
1796
+ "raw": false,
1797
+ "summary": "Take over the run's desktop or phone"
1798
+ },
1799
+ {
1800
+ "command": [
1801
+ "runs",
1802
+ "timeline"
1803
+ ],
1804
+ "operationId": "getTimeline",
1805
+ "method": "GET",
1806
+ "path": "/runs/{run_id}/timeline",
1807
+ "pathParams": [
1808
+ "run_id"
1809
+ ],
1810
+ "multiSegment": [],
1811
+ "query": [
1812
+ {
1813
+ "name": "after",
1814
+ "type": "integer",
1815
+ "required": false,
1816
+ "description": "The change cursor last applied, from `next_after` or the last SSE `id`. 0 is the start."
1817
+ },
1818
+ {
1819
+ "name": "wait_ms",
1820
+ "type": "integer",
1821
+ "required": false,
1822
+ "description": "JSON only. How long to hold the request for a change after `after`."
1823
+ },
1824
+ {
1825
+ "name": "limit",
1826
+ "type": "integer",
1827
+ "required": false,
1828
+ "description": "At most this many rows in a page (1 to 500, default 500); has_more says when another waits."
1829
+ }
1830
+ ],
1831
+ "headers": [
1832
+ {
1833
+ "name": "Last-Event-ID",
1834
+ "type": "string",
1835
+ "required": false,
1836
+ "description": "SSE reconnect. Same meaning as `after`, and wins over it."
1837
+ }
1838
+ ],
1839
+ "bodyFlags": [],
1840
+ "hasBody": false,
1841
+ "bodyRequired": false,
1842
+ "bodyTypes": [],
1843
+ "secretBody": false,
1844
+ "raw": false,
1845
+ "summary": "The run's timeline, as a page or a stream"
1846
+ },
1847
+ {
1848
+ "command": [
1849
+ "runs",
1850
+ "unarchive"
1851
+ ],
1852
+ "operationId": "unarchiveRun",
1853
+ "method": "POST",
1854
+ "path": "/runs/{run_id}/unarchive",
1855
+ "pathParams": [
1856
+ "run_id"
1857
+ ],
1858
+ "multiSegment": [],
1859
+ "query": [],
1860
+ "headers": [],
1861
+ "bodyFlags": [],
1862
+ "hasBody": false,
1863
+ "bodyRequired": false,
1864
+ "bodyTypes": [],
1865
+ "secretBody": false,
1866
+ "raw": false,
1867
+ "summary": "Show the archived run in the lists again"
1868
+ },
1869
+ {
1870
+ "command": [
1871
+ "server",
1872
+ "capabilities"
1873
+ ],
1874
+ "operationId": "getCapabilities",
1875
+ "method": "GET",
1876
+ "path": "/capabilities",
1877
+ "pathParams": [],
1878
+ "multiSegment": [],
1879
+ "query": [],
1880
+ "headers": [],
1881
+ "bodyFlags": [],
1882
+ "hasBody": false,
1883
+ "bodyRequired": false,
1884
+ "bodyTypes": [],
1885
+ "secretBody": false,
1886
+ "raw": false,
1887
+ "summary": "What this backend offers"
1888
+ },
1889
+ {
1890
+ "command": [
1891
+ "server",
1892
+ "health"
1893
+ ],
1894
+ "operationId": "getHealth",
1895
+ "method": "GET",
1896
+ "path": "/health",
1897
+ "pathParams": [],
1898
+ "multiSegment": [],
1899
+ "query": [],
1900
+ "headers": [],
1901
+ "bodyFlags": [],
1902
+ "hasBody": false,
1903
+ "bodyRequired": false,
1904
+ "bodyTypes": [],
1905
+ "secretBody": false,
1906
+ "raw": false,
1907
+ "summary": "Whether this server can serve"
1908
+ },
1909
+ {
1910
+ "command": [
1911
+ "server",
1912
+ "mcp"
1913
+ ],
1914
+ "operationId": "callMcp",
1915
+ "method": "POST",
1916
+ "path": "/mcp",
1917
+ "pathParams": [],
1918
+ "multiSegment": [],
1919
+ "query": [],
1920
+ "headers": [],
1921
+ "bodyFlags": [
1922
+ {
1923
+ "name": "method",
1924
+ "type": "string",
1925
+ "required": false,
1926
+ "description": ""
1927
+ }
1928
+ ],
1929
+ "bodyFill": {
1930
+ "jsonrpc": "2.0",
1931
+ "id": 1
1932
+ },
1933
+ "hasBody": true,
1934
+ "bodyRequired": true,
1935
+ "bodyTypes": [
1936
+ "application/json"
1937
+ ],
1938
+ "secretBody": false,
1939
+ "raw": false,
1940
+ "summary": "The MCP endpoint: this API's tools, for a coding agent"
1941
+ },
1942
+ {
1943
+ "command": [
1944
+ "server",
1945
+ "openapi"
1946
+ ],
1947
+ "operationId": "getOpenapi",
1948
+ "method": "GET",
1949
+ "path": "/openapi.json",
1950
+ "pathParams": [],
1951
+ "multiSegment": [],
1952
+ "query": [],
1953
+ "headers": [],
1954
+ "bodyFlags": [],
1955
+ "hasBody": false,
1956
+ "bodyRequired": false,
1957
+ "bodyTypes": [],
1958
+ "secretBody": false,
1959
+ "raw": false,
1960
+ "summary": "This document"
1961
+ },
1962
+ {
1963
+ "command": [
1964
+ "stats"
1965
+ ],
1966
+ "operationId": "getStats",
1967
+ "method": "GET",
1968
+ "path": "/stats",
1969
+ "pathParams": [],
1970
+ "multiSegment": [],
1971
+ "query": [
1972
+ {
1973
+ "name": "from",
1974
+ "type": "string",
1975
+ "required": false,
1976
+ "description": "Runs started at or after this RFC 3339 date-time, to the millisecond (a finer fraction is a 400). Default no bound."
1977
+ },
1978
+ {
1979
+ "name": "to",
1980
+ "type": "string",
1981
+ "required": false,
1982
+ "description": "Runs started before this RFC 3339 date-time, to the millisecond (a finer fraction is a 400). Default no bound."
1983
+ },
1984
+ {
1985
+ "name": "agent",
1986
+ "type": "string",
1987
+ "required": false,
1988
+ "description": "One agent's runs."
1989
+ }
1990
+ ],
1991
+ "headers": [],
1992
+ "bodyFlags": [],
1993
+ "hasBody": false,
1994
+ "bodyRequired": false,
1995
+ "bodyTypes": [],
1996
+ "secretBody": false,
1997
+ "raw": false,
1998
+ "summary": "Counts and cost over every agent and run"
1999
+ },
2000
+ {
2001
+ "command": [
2002
+ "template",
2003
+ "apply"
2004
+ ],
2005
+ "operationId": "applyTemplate",
2006
+ "method": "POST",
2007
+ "path": "/templates/{template}/apply",
2008
+ "pathParams": [
2009
+ "template"
2010
+ ],
2011
+ "multiSegment": [],
2012
+ "query": [],
2013
+ "headers": [
2014
+ {
2015
+ "name": "Idempotency-Key",
2016
+ "type": "string",
2017
+ "required": false,
2018
+ "description": "Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first"
2019
+ }
2020
+ ],
2021
+ "bodyFlags": [],
2022
+ "hasBody": true,
2023
+ "bodyRequired": true,
2024
+ "bodyTypes": [
2025
+ "application/json"
2026
+ ],
2027
+ "secretBody": false,
2028
+ "raw": false,
2029
+ "summary": "Apply a template package: make its agent, with its skills, then its triggers"
2030
+ },
2031
+ {
2032
+ "command": [
2033
+ "template",
2034
+ "list"
2035
+ ],
2036
+ "operationId": "listTemplates",
2037
+ "method": "GET",
2038
+ "path": "/templates",
2039
+ "pathParams": [],
2040
+ "multiSegment": [],
2041
+ "query": [],
2042
+ "headers": [],
2043
+ "bodyFlags": [],
2044
+ "hasBody": false,
2045
+ "bodyRequired": false,
2046
+ "bodyTypes": [],
2047
+ "secretBody": false,
2048
+ "raw": false,
2049
+ "summary": "The template packages this server ships: each makes an agent, its skills and its triggers"
2050
+ },
2051
+ {
2052
+ "command": [
2053
+ "tool-keys",
2054
+ "list"
2055
+ ],
2056
+ "operationId": "listToolKeys",
2057
+ "method": "GET",
2058
+ "path": "/settings/tool-keys",
2059
+ "pathParams": [],
2060
+ "multiSegment": [],
2061
+ "query": [],
2062
+ "headers": [],
2063
+ "bodyFlags": [],
2064
+ "hasBody": false,
2065
+ "bodyRequired": false,
2066
+ "bodyTypes": [],
2067
+ "secretBody": false,
2068
+ "raw": false,
2069
+ "summary": "The tool keys a person may save, and which are set: names only, never a value"
2070
+ },
2071
+ {
2072
+ "command": [
2073
+ "tool-settings",
2074
+ "get"
2075
+ ],
2076
+ "operationId": "getToolSettings",
2077
+ "method": "GET",
2078
+ "path": "/settings/tools",
2079
+ "pathParams": [],
2080
+ "multiSegment": [],
2081
+ "query": [],
2082
+ "headers": [],
2083
+ "bodyFlags": [],
2084
+ "hasBody": false,
2085
+ "bodyRequired": false,
2086
+ "bodyTypes": [],
2087
+ "secretBody": false,
2088
+ "raw": false,
2089
+ "summary": "The server's tool settings"
2090
+ },
2091
+ {
2092
+ "command": [
2093
+ "tool-settings",
2094
+ "save"
2095
+ ],
2096
+ "operationId": "putToolSettings",
2097
+ "method": "PUT",
2098
+ "path": "/settings/tools",
2099
+ "pathParams": [],
2100
+ "multiSegment": [],
2101
+ "query": [],
2102
+ "headers": [],
2103
+ "bodyFlags": [],
2104
+ "hasBody": true,
2105
+ "bodyRequired": true,
2106
+ "bodyTypes": [
2107
+ "application/json"
2108
+ ],
2109
+ "secretBody": false,
2110
+ "raw": false,
2111
+ "summary": "Set the providers of web_search, web_fetch and browser, and each tool's permission"
2112
+ },
2113
+ {
2114
+ "command": [
2115
+ "triggers",
2116
+ "create"
2117
+ ],
2118
+ "operationId": "createTrigger",
2119
+ "method": "POST",
2120
+ "path": "/triggers",
2121
+ "pathParams": [],
2122
+ "multiSegment": [],
2123
+ "query": [],
2124
+ "headers": [
2125
+ {
2126
+ "name": "Idempotency-Key",
2127
+ "type": "string",
2128
+ "required": false,
2129
+ "description": "Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first"
2130
+ }
2131
+ ],
2132
+ "bodyFlags": [
2133
+ {
2134
+ "name": "name",
2135
+ "type": "string",
2136
+ "required": false,
2137
+ "description": "Default the trigger's id."
2138
+ },
2139
+ {
2140
+ "name": "enabled",
2141
+ "type": "boolean",
2142
+ "required": false,
2143
+ "description": "Off, it fires nothing; on again, it goes on from now: the time it was off is skipped, never caught up."
2144
+ },
2145
+ {
2146
+ "name": "catchup_window_s",
2147
+ "type": "integer",
2148
+ "required": false,
2149
+ "description": ""
2150
+ },
2151
+ {
2152
+ "name": "max_active_runs",
2153
+ "type": "integer",
2154
+ "required": false,
2155
+ "description": "For a `start_run` trigger of a pushed source (a webhook, with or without `accept`): each event starts its own run, never skipped behind the last, and this is the most of its runs active at once. A firing past it waits due and is tried again; past 20 due an event is 429 `rate_limited`. Null: a trigger with `accept` takes every run this server has room for, and one without keeps the overlap skip. A schedule or a `message_run` target is 422 with it set. A PATCH with null clears it."
2156
+ }
2157
+ ],
2158
+ "hasBody": true,
2159
+ "bodyRequired": true,
2160
+ "bodyTypes": [
2161
+ "application/json"
2162
+ ],
2163
+ "secretBody": false,
2164
+ "example": {
2165
+ "name": "Weekly brief",
2166
+ "source": {
2167
+ "kind": "schedule",
2168
+ "cron": "0 9 * * 1"
2169
+ },
2170
+ "target": {
2171
+ "kind": "start_run",
2172
+ "agent_id": "due-diligence",
2173
+ "input": {
2174
+ "content": "Research https://stripe.com again and say what changed this week."
2175
+ },
2176
+ "max_cost_usd": 1
2177
+ }
2178
+ },
2179
+ "raw": false,
2180
+ "summary": "Make a trigger: a schedule or a signed webhook that starts a capped run of an agent, or messages a run"
2181
+ },
2182
+ {
2183
+ "command": [
2184
+ "triggers",
2185
+ "delete"
2186
+ ],
2187
+ "operationId": "deleteTrigger",
2188
+ "method": "DELETE",
2189
+ "path": "/triggers/{trigger_id}",
2190
+ "pathParams": [
2191
+ "trigger_id"
2192
+ ],
2193
+ "multiSegment": [],
2194
+ "query": [],
2195
+ "headers": [],
2196
+ "bodyFlags": [],
2197
+ "hasBody": false,
2198
+ "bodyRequired": false,
2199
+ "bodyTypes": [],
2200
+ "secretBody": false,
2201
+ "raw": false,
2202
+ "summary": "Delete a trigger and its firings; the runs it started stay"
2203
+ },
2204
+ {
2205
+ "command": [
2206
+ "triggers",
2207
+ "fire"
2208
+ ],
2209
+ "operationId": "fireTrigger",
2210
+ "method": "POST",
2211
+ "path": "/triggers/{trigger_id}/fire",
2212
+ "pathParams": [
2213
+ "trigger_id"
2214
+ ],
2215
+ "multiSegment": [],
2216
+ "query": [],
2217
+ "headers": [
2218
+ {
2219
+ "name": "Idempotency-Key",
2220
+ "type": "string",
2221
+ "required": true,
2222
+ "description": "Required here: a retry with the same key fires once."
2223
+ }
2224
+ ],
2225
+ "bodyFlags": [],
2226
+ "hasBody": false,
2227
+ "bodyRequired": false,
2228
+ "bodyTypes": [],
2229
+ "secretBody": false,
2230
+ "raw": false,
2231
+ "summary": "Run it now: one firing per Idempotency-Key"
2232
+ },
2233
+ {
2234
+ "command": [
2235
+ "triggers",
2236
+ "firings"
2237
+ ],
2238
+ "operationId": "listTriggerFirings",
2239
+ "method": "GET",
2240
+ "path": "/triggers/{trigger_id}/firings",
2241
+ "pathParams": [
2242
+ "trigger_id"
2243
+ ],
2244
+ "multiSegment": [],
2245
+ "query": [],
2246
+ "headers": [],
2247
+ "bodyFlags": [],
2248
+ "hasBody": false,
2249
+ "bodyRequired": false,
2250
+ "bodyTypes": [],
2251
+ "secretBody": false,
2252
+ "raw": false,
2253
+ "summary": "The trigger's last 200 firings, newest first"
2254
+ },
2255
+ {
2256
+ "command": [
2257
+ "triggers",
2258
+ "get"
2259
+ ],
2260
+ "operationId": "getTrigger",
2261
+ "method": "GET",
2262
+ "path": "/triggers/{trigger_id}",
2263
+ "pathParams": [
2264
+ "trigger_id"
2265
+ ],
2266
+ "multiSegment": [],
2267
+ "query": [],
2268
+ "headers": [],
2269
+ "bodyFlags": [],
2270
+ "hasBody": false,
2271
+ "bodyRequired": false,
2272
+ "bodyTypes": [],
2273
+ "secretBody": false,
2274
+ "raw": false,
2275
+ "summary": "One trigger"
2276
+ },
2277
+ {
2278
+ "command": [
2279
+ "triggers",
2280
+ "list"
2281
+ ],
2282
+ "operationId": "listTriggers",
2283
+ "method": "GET",
2284
+ "path": "/triggers",
2285
+ "pathParams": [],
2286
+ "multiSegment": [],
2287
+ "query": [],
2288
+ "headers": [],
2289
+ "bodyFlags": [],
2290
+ "hasBody": false,
2291
+ "bodyRequired": false,
2292
+ "bodyTypes": [],
2293
+ "secretBody": false,
2294
+ "raw": false,
2295
+ "summary": "The triggers: schedules and signed webhooks that start an agent's capped runs or message a run"
2296
+ },
2297
+ {
2298
+ "command": [
2299
+ "triggers",
2300
+ "rotate-secret"
2301
+ ],
2302
+ "operationId": "rotateTriggerSecret",
2303
+ "method": "POST",
2304
+ "path": "/triggers/{trigger_id}/secret",
2305
+ "pathParams": [
2306
+ "trigger_id"
2307
+ ],
2308
+ "multiSegment": [],
2309
+ "query": [],
2310
+ "headers": [],
2311
+ "bodyFlags": [],
2312
+ "hasBody": false,
2313
+ "bodyRequired": false,
2314
+ "bodyTypes": [],
2315
+ "secretBody": false,
2316
+ "raw": false,
2317
+ "summary": "A webhook trigger's new secret, shown once; the old one signs nothing from now on"
2318
+ },
2319
+ {
2320
+ "command": [
2321
+ "triggers",
2322
+ "update"
2323
+ ],
2324
+ "operationId": "updateTrigger",
2325
+ "method": "PATCH",
2326
+ "path": "/triggers/{trigger_id}",
2327
+ "pathParams": [
2328
+ "trigger_id"
2329
+ ],
2330
+ "multiSegment": [],
2331
+ "query": [],
2332
+ "headers": [],
2333
+ "bodyFlags": [
2334
+ {
2335
+ "name": "name",
2336
+ "type": "string",
2337
+ "required": false,
2338
+ "description": "Default the trigger's id."
2339
+ },
2340
+ {
2341
+ "name": "enabled",
2342
+ "type": "boolean",
2343
+ "required": false,
2344
+ "description": "Off, it fires nothing; on again, it goes on from now: the time it was off is skipped, never caught up."
2345
+ },
2346
+ {
2347
+ "name": "catchup_window_s",
2348
+ "type": "integer",
2349
+ "required": false,
2350
+ "description": ""
2351
+ },
2352
+ {
2353
+ "name": "max_active_runs",
2354
+ "type": "integer",
2355
+ "required": false,
2356
+ "description": "For a `start_run` trigger of a pushed source (a webhook, with or without `accept`): each event starts its own run, never skipped behind the last, and this is the most of its runs active at once. A firing past it waits due and is tried again; past 20 due an event is 429 `rate_limited`. Null: a trigger with `accept` takes every run this server has room for, and one without keeps the overlap skip. A schedule or a `message_run` target is 422 with it set. A PATCH with null clears it."
2357
+ }
2358
+ ],
2359
+ "hasBody": true,
2360
+ "bodyRequired": true,
2361
+ "bodyTypes": [
2362
+ "application/json"
2363
+ ],
2364
+ "secretBody": false,
2365
+ "raw": false,
2366
+ "summary": "Change a trigger, or turn it off and on"
2367
+ },
2368
+ {
2369
+ "command": [
2370
+ "usage"
2371
+ ],
2372
+ "operationId": "getUsage",
2373
+ "method": "GET",
2374
+ "path": "/usage",
2375
+ "pathParams": [],
2376
+ "multiSegment": [],
2377
+ "query": [
2378
+ {
2379
+ "name": "from",
2380
+ "type": "string",
2381
+ "required": false,
2382
+ "description": "Start of the period, inclusive. Default the start of this calendar month, UTC."
2383
+ },
2384
+ {
2385
+ "name": "to",
2386
+ "type": "string",
2387
+ "required": false,
2388
+ "description": "End of the period, exclusive. Default now."
2389
+ },
2390
+ {
2391
+ "name": "group_by",
2392
+ "type": "string",
2393
+ "enum": [
2394
+ "meter",
2395
+ "agent",
2396
+ "key",
2397
+ "day",
2398
+ "region"
2399
+ ],
2400
+ "required": false,
2401
+ "description": ""
2402
+ }
2403
+ ],
2404
+ "headers": [],
2405
+ "bodyFlags": [],
2406
+ "hasBody": false,
2407
+ "bodyRequired": false,
2408
+ "bodyTypes": [],
2409
+ "secretBody": false,
2410
+ "raw": false,
2411
+ "summary": "Usage by meter over a period"
2412
+ },
2413
+ {
2414
+ "command": [
2415
+ "webhook",
2416
+ "delete"
2417
+ ],
2418
+ "operationId": "deleteWebhook",
2419
+ "method": "DELETE",
2420
+ "path": "/settings/webhook",
2421
+ "pathParams": [],
2422
+ "multiSegment": [],
2423
+ "query": [],
2424
+ "headers": [],
2425
+ "bodyFlags": [],
2426
+ "hasBody": false,
2427
+ "bodyRequired": false,
2428
+ "bodyTypes": [],
2429
+ "secretBody": false,
2430
+ "raw": false,
2431
+ "summary": "Remove the webhook; its pending messages are dropped, the log of attempts is kept"
2432
+ },
2433
+ {
2434
+ "command": [
2435
+ "webhook",
2436
+ "deliveries"
2437
+ ],
2438
+ "operationId": "listWebhookDeliveries",
2439
+ "method": "GET",
2440
+ "path": "/settings/webhook/deliveries",
2441
+ "pathParams": [],
2442
+ "multiSegment": [],
2443
+ "query": [],
2444
+ "headers": [],
2445
+ "bodyFlags": [],
2446
+ "hasBody": false,
2447
+ "bodyRequired": false,
2448
+ "bodyTypes": [],
2449
+ "secretBody": false,
2450
+ "raw": false,
2451
+ "summary": "The last 50 attempts, newest first"
2452
+ },
2453
+ {
2454
+ "command": [
2455
+ "webhook",
2456
+ "get"
2457
+ ],
2458
+ "operationId": "getWebhook",
2459
+ "method": "GET",
2460
+ "path": "/settings/webhook",
2461
+ "pathParams": [],
2462
+ "multiSegment": [],
2463
+ "query": [],
2464
+ "headers": [],
2465
+ "bodyFlags": [],
2466
+ "hasBody": false,
2467
+ "bodyRequired": false,
2468
+ "bodyTypes": [],
2469
+ "secretBody": false,
2470
+ "raw": false,
2471
+ "summary": "The webhook this server POSTs run notices to, if one is set; never its secret"
2472
+ },
2473
+ {
2474
+ "command": [
2475
+ "webhook",
2476
+ "redeliver"
2477
+ ],
2478
+ "operationId": "redeliverWebhook",
2479
+ "method": "POST",
2480
+ "path": "/settings/webhook/deliveries/{webhook_id}/redeliver",
2481
+ "pathParams": [
2482
+ "webhook_id"
2483
+ ],
2484
+ "multiSegment": [],
2485
+ "query": [],
2486
+ "headers": [],
2487
+ "bodyFlags": [],
2488
+ "hasBody": false,
2489
+ "bodyRequired": false,
2490
+ "bodyTypes": [],
2491
+ "secretBody": false,
2492
+ "raw": false,
2493
+ "summary": "Send a message of the log again, once now, under the same webhook-id and body"
2494
+ },
2495
+ {
2496
+ "command": [
2497
+ "webhook",
2498
+ "save"
2499
+ ],
2500
+ "operationId": "saveWebhook",
2501
+ "method": "PUT",
2502
+ "path": "/settings/webhook",
2503
+ "pathParams": [],
2504
+ "multiSegment": [],
2505
+ "query": [],
2506
+ "headers": [],
2507
+ "bodyFlags": [
2508
+ {
2509
+ "name": "url",
2510
+ "type": "string",
2511
+ "required": true,
2512
+ "description": ""
2513
+ }
2514
+ ],
2515
+ "hasBody": true,
2516
+ "bodyRequired": true,
2517
+ "bodyTypes": [
2518
+ "application/json"
2519
+ ],
2520
+ "secretBody": false,
2521
+ "raw": false,
2522
+ "summary": "Set the webhook's URL"
2523
+ },
2524
+ {
2525
+ "command": [
2526
+ "webhook",
2527
+ "test"
2528
+ ],
2529
+ "operationId": "testWebhook",
2530
+ "method": "POST",
2531
+ "path": "/settings/webhook/test",
2532
+ "pathParams": [],
2533
+ "multiSegment": [],
2534
+ "query": [],
2535
+ "headers": [],
2536
+ "bodyFlags": [],
2537
+ "hasBody": false,
2538
+ "bodyRequired": false,
2539
+ "bodyTypes": [],
2540
+ "secretBody": false,
2541
+ "raw": false,
2542
+ "summary": "Send a `webhook.test` message now, once, and say how it went"
2543
+ },
2544
+ {
2545
+ "command": [
2546
+ "workflows",
2547
+ "validate"
2548
+ ],
2549
+ "operationId": "validateWorkflow",
2550
+ "method": "POST",
2551
+ "path": "/workflows/validate",
2552
+ "pathParams": [],
2553
+ "multiSegment": [],
2554
+ "query": [],
2555
+ "headers": [],
2556
+ "bodyFlags": [],
2557
+ "hasBody": true,
2558
+ "bodyRequired": true,
2559
+ "bodyTypes": [
2560
+ "application/json"
2561
+ ],
2562
+ "secretBody": false,
2563
+ "raw": false,
2564
+ "summary": "Check a workflow definition without saving it"
2565
+ }
2566
+ ];
2567
+
2568
+ // Every route whose body carries a secret, a command's or one with no command (omitted): a raw `api` call to one never
2569
+ // takes its body from the command line, and what it prints has the body's values cut, its public fields kept.
2570
+ export const SECRET_ROUTES = [
2571
+ {
2572
+ "operationId": "previewMcpServer",
2573
+ "method": "POST",
2574
+ "path": "/settings/mcp-servers/preview",
2575
+ "publicFields": [
2576
+ "url",
2577
+ "auth.type",
2578
+ "name"
2579
+ ]
2580
+ },
2581
+ {
2582
+ "operationId": "saveMcpServer",
2583
+ "method": "PUT",
2584
+ "path": "/settings/mcp-servers/{name}",
2585
+ "publicFields": [
2586
+ "url",
2587
+ "auth.type"
2588
+ ]
2589
+ },
2590
+ {
2591
+ "operationId": "saveToolKey",
2592
+ "method": "PUT",
2593
+ "path": "/settings/tool-keys/{key_id}",
2594
+ "publicFields": []
2595
+ },
2596
+ {
2597
+ "operationId": "startMcpOAuth",
2598
+ "method": "POST",
2599
+ "path": "/settings/mcp-servers/{name}/oauth/start",
2600
+ "publicFields": [
2601
+ "url",
2602
+ "scopes.[]",
2603
+ "client_id"
2604
+ ]
2605
+ }
2606
+ ];