@artieeez/cf-client 0.0.0-stage → 0.2.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,3805 @@
1
+ export interface paths {
2
+ "/api/workflows": {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ get: operations["ListWorkflowsEndpoint_list"];
10
+ put?: never;
11
+ post?: never;
12
+ delete?: never;
13
+ options?: never;
14
+ head?: never;
15
+ patch?: never;
16
+ trace?: never;
17
+ };
18
+ "/api/workflows/{id}/versions/{version}": {
19
+ parameters: {
20
+ query?: never;
21
+ header?: never;
22
+ path?: never;
23
+ cookie?: never;
24
+ };
25
+ get: operations["GetWorkflowVersionEndpoint_get"];
26
+ put?: never;
27
+ post?: never;
28
+ delete?: never;
29
+ options?: never;
30
+ head?: never;
31
+ patch?: never;
32
+ trace?: never;
33
+ };
34
+ "/api/workflows/{id}/config": {
35
+ parameters: {
36
+ query?: never;
37
+ header?: never;
38
+ path?: never;
39
+ cookie?: never;
40
+ };
41
+ get: operations["GetWorkflowConfigEndpoint_get"];
42
+ put: operations["UpdateWorkflowConfigEndpoint_update"];
43
+ post?: never;
44
+ delete?: never;
45
+ options?: never;
46
+ head?: never;
47
+ patch?: never;
48
+ trace?: never;
49
+ };
50
+ "/api/workers": {
51
+ parameters: {
52
+ query?: never;
53
+ header?: never;
54
+ path?: never;
55
+ cookie?: never;
56
+ };
57
+ get: operations["ListWorkersEndpoint_list"];
58
+ put?: never;
59
+ post: operations["CreateWorkerEndpoint_create"];
60
+ delete?: never;
61
+ options?: never;
62
+ head?: never;
63
+ patch?: never;
64
+ trace?: never;
65
+ };
66
+ "/api/workers/{id}/revoke": {
67
+ parameters: {
68
+ query?: never;
69
+ header?: never;
70
+ path?: never;
71
+ cookie?: never;
72
+ };
73
+ get?: never;
74
+ put?: never;
75
+ post: operations["RevokeWorkerEndpoint_revoke"];
76
+ delete?: never;
77
+ options?: never;
78
+ head?: never;
79
+ patch?: never;
80
+ trace?: never;
81
+ };
82
+ "/w/register": {
83
+ parameters: {
84
+ query?: never;
85
+ header?: never;
86
+ path?: never;
87
+ cookie?: never;
88
+ };
89
+ get?: never;
90
+ put?: never;
91
+ post: operations["RegisterWorkerEndpoint_register"];
92
+ delete?: never;
93
+ options?: never;
94
+ head?: never;
95
+ patch?: never;
96
+ trace?: never;
97
+ };
98
+ "/w/health": {
99
+ parameters: {
100
+ query?: never;
101
+ header?: never;
102
+ path?: never;
103
+ cookie?: never;
104
+ };
105
+ get?: never;
106
+ put?: never;
107
+ post: operations["ReportHealthEndpoint_report"];
108
+ delete?: never;
109
+ options?: never;
110
+ head?: never;
111
+ patch?: never;
112
+ trace?: never;
113
+ };
114
+ "/w/workspaces/report": {
115
+ parameters: {
116
+ query?: never;
117
+ header?: never;
118
+ path?: never;
119
+ cookie?: never;
120
+ };
121
+ get?: never;
122
+ put?: never;
123
+ post: operations["ReportWorkspaceEndpoint_report"];
124
+ delete?: never;
125
+ options?: never;
126
+ head?: never;
127
+ patch?: never;
128
+ trace?: never;
129
+ };
130
+ "/api/workers/{id}/workspaces/delete": {
131
+ parameters: {
132
+ query?: never;
133
+ header?: never;
134
+ path?: never;
135
+ cookie?: never;
136
+ };
137
+ get?: never;
138
+ put?: never;
139
+ post: operations["DeleteWorkspacesEndpoint_delete"];
140
+ delete?: never;
141
+ options?: never;
142
+ head?: never;
143
+ patch?: never;
144
+ trace?: never;
145
+ };
146
+ "/api/runs/{id}/artifacts": {
147
+ parameters: {
148
+ query?: never;
149
+ header?: never;
150
+ path?: never;
151
+ cookie?: never;
152
+ };
153
+ get: operations["ListRunArtifactsEndpoint_list"];
154
+ put?: never;
155
+ post?: never;
156
+ delete?: never;
157
+ options?: never;
158
+ head?: never;
159
+ patch?: never;
160
+ trace?: never;
161
+ };
162
+ "/w/artifacts/{sha256}": {
163
+ parameters: {
164
+ query?: never;
165
+ header?: never;
166
+ path?: never;
167
+ cookie?: never;
168
+ };
169
+ get?: never;
170
+ put: operations["PutArtifactEndpoint_put"];
171
+ post?: never;
172
+ delete?: never;
173
+ options?: never;
174
+ head?: never;
175
+ patch?: never;
176
+ trace?: never;
177
+ };
178
+ "/w/units/{id}/complete": {
179
+ parameters: {
180
+ query?: never;
181
+ header?: never;
182
+ path?: never;
183
+ cookie?: never;
184
+ };
185
+ get?: never;
186
+ put?: never;
187
+ post: operations["CompleteUnitEndpoint_complete"];
188
+ delete?: never;
189
+ options?: never;
190
+ head?: never;
191
+ patch?: never;
192
+ trace?: never;
193
+ };
194
+ "/w/lease": {
195
+ parameters: {
196
+ query?: never;
197
+ header?: never;
198
+ path?: never;
199
+ cookie?: never;
200
+ };
201
+ get?: never;
202
+ put?: never;
203
+ post: operations["LeaseUnitEndpoint_lease"];
204
+ delete?: never;
205
+ options?: never;
206
+ head?: never;
207
+ patch?: never;
208
+ trace?: never;
209
+ };
210
+ "/w/units/{id}/heartbeat": {
211
+ parameters: {
212
+ query?: never;
213
+ header?: never;
214
+ path?: never;
215
+ cookie?: never;
216
+ };
217
+ get?: never;
218
+ put?: never;
219
+ post: operations["HeartbeatUnitEndpoint_heartbeat"];
220
+ delete?: never;
221
+ options?: never;
222
+ head?: never;
223
+ patch?: never;
224
+ trace?: never;
225
+ };
226
+ "/w/drain": {
227
+ parameters: {
228
+ query?: never;
229
+ header?: never;
230
+ path?: never;
231
+ cookie?: never;
232
+ };
233
+ get?: never;
234
+ put?: never;
235
+ post: operations["DrainSessionEndpoint_drain"];
236
+ delete?: never;
237
+ options?: never;
238
+ head?: never;
239
+ patch?: never;
240
+ trace?: never;
241
+ };
242
+ "/w/units/{id}/actions": {
243
+ parameters: {
244
+ query?: never;
245
+ header?: never;
246
+ path?: never;
247
+ cookie?: never;
248
+ };
249
+ get?: never;
250
+ put?: never;
251
+ post: operations["CallActionEndpoint_call"];
252
+ delete?: never;
253
+ options?: never;
254
+ head?: never;
255
+ patch?: never;
256
+ trace?: never;
257
+ };
258
+ "/w/units/{id}/keys": {
259
+ parameters: {
260
+ query?: never;
261
+ header?: never;
262
+ path?: never;
263
+ cookie?: never;
264
+ };
265
+ get?: never;
266
+ put?: never;
267
+ post: operations["ClaimKeyEndpoint_claim"];
268
+ delete?: never;
269
+ options?: never;
270
+ head?: never;
271
+ patch?: never;
272
+ trace?: never;
273
+ };
274
+ "/w/units/{id}/run": {
275
+ parameters: {
276
+ query?: never;
277
+ header?: never;
278
+ path?: never;
279
+ cookie?: never;
280
+ };
281
+ get?: never;
282
+ put?: never;
283
+ post: operations["SetRunMetaEndpoint_set"];
284
+ delete?: never;
285
+ options?: never;
286
+ head?: never;
287
+ patch?: never;
288
+ trace?: never;
289
+ };
290
+ "/api/runs": {
291
+ parameters: {
292
+ query?: never;
293
+ header?: never;
294
+ path?: never;
295
+ cookie?: never;
296
+ };
297
+ get: operations["ListRunsEndpoint_list"];
298
+ put?: never;
299
+ post: operations["DispatchRunEndpoint_dispatch"];
300
+ delete?: never;
301
+ options?: never;
302
+ head?: never;
303
+ patch?: never;
304
+ trace?: never;
305
+ };
306
+ "/api/runs/{id}": {
307
+ parameters: {
308
+ query?: never;
309
+ header?: never;
310
+ path?: never;
311
+ cookie?: never;
312
+ };
313
+ get: operations["GetRunEndpoint_get"];
314
+ put?: never;
315
+ post?: never;
316
+ delete?: never;
317
+ options?: never;
318
+ head?: never;
319
+ patch?: never;
320
+ trace?: never;
321
+ };
322
+ "/api/runs/{id}/events": {
323
+ parameters: {
324
+ query?: never;
325
+ header?: never;
326
+ path?: never;
327
+ cookie?: never;
328
+ };
329
+ get: operations["RunEventsEndpoint_list"];
330
+ put?: never;
331
+ post?: never;
332
+ delete?: never;
333
+ options?: never;
334
+ head?: never;
335
+ patch?: never;
336
+ trace?: never;
337
+ };
338
+ "/api/runs/{id}/pause": {
339
+ parameters: {
340
+ query?: never;
341
+ header?: never;
342
+ path?: never;
343
+ cookie?: never;
344
+ };
345
+ get?: never;
346
+ put?: never;
347
+ post: operations["RunControlsEndpoint_pause"];
348
+ delete?: never;
349
+ options?: never;
350
+ head?: never;
351
+ patch?: never;
352
+ trace?: never;
353
+ };
354
+ "/api/runs/{id}/resume": {
355
+ parameters: {
356
+ query?: never;
357
+ header?: never;
358
+ path?: never;
359
+ cookie?: never;
360
+ };
361
+ get?: never;
362
+ put?: never;
363
+ post: operations["RunControlsEndpoint_resume"];
364
+ delete?: never;
365
+ options?: never;
366
+ head?: never;
367
+ patch?: never;
368
+ trace?: never;
369
+ };
370
+ "/api/runs/{id}/stop": {
371
+ parameters: {
372
+ query?: never;
373
+ header?: never;
374
+ path?: never;
375
+ cookie?: never;
376
+ };
377
+ get?: never;
378
+ put?: never;
379
+ post: operations["RunControlsEndpoint_stop"];
380
+ delete?: never;
381
+ options?: never;
382
+ head?: never;
383
+ patch?: never;
384
+ trace?: never;
385
+ };
386
+ "/api/controls": {
387
+ parameters: {
388
+ query?: never;
389
+ header?: never;
390
+ path?: never;
391
+ cookie?: never;
392
+ };
393
+ get: operations["ScopeControlsEndpoint_list"];
394
+ put?: never;
395
+ post?: never;
396
+ delete?: never;
397
+ options?: never;
398
+ head?: never;
399
+ patch?: never;
400
+ trace?: never;
401
+ };
402
+ "/api/factory/pause": {
403
+ parameters: {
404
+ query?: never;
405
+ header?: never;
406
+ path?: never;
407
+ cookie?: never;
408
+ };
409
+ get?: never;
410
+ put?: never;
411
+ post: operations["ScopeControlsEndpoint_pauseFactory"];
412
+ delete?: never;
413
+ options?: never;
414
+ head?: never;
415
+ patch?: never;
416
+ trace?: never;
417
+ };
418
+ "/api/factory/resume": {
419
+ parameters: {
420
+ query?: never;
421
+ header?: never;
422
+ path?: never;
423
+ cookie?: never;
424
+ };
425
+ get?: never;
426
+ put?: never;
427
+ post: operations["ScopeControlsEndpoint_resumeFactory"];
428
+ delete?: never;
429
+ options?: never;
430
+ head?: never;
431
+ patch?: never;
432
+ trace?: never;
433
+ };
434
+ "/api/workflows/{id}/pause": {
435
+ parameters: {
436
+ query?: never;
437
+ header?: never;
438
+ path?: never;
439
+ cookie?: never;
440
+ };
441
+ get?: never;
442
+ put?: never;
443
+ post: operations["ScopeControlsEndpoint_pauseWorkflow"];
444
+ delete?: never;
445
+ options?: never;
446
+ head?: never;
447
+ patch?: never;
448
+ trace?: never;
449
+ };
450
+ "/api/workflows/{id}/resume": {
451
+ parameters: {
452
+ query?: never;
453
+ header?: never;
454
+ path?: never;
455
+ cookie?: never;
456
+ };
457
+ get?: never;
458
+ put?: never;
459
+ post: operations["ScopeControlsEndpoint_resumeWorkflow"];
460
+ delete?: never;
461
+ options?: never;
462
+ head?: never;
463
+ patch?: never;
464
+ trace?: never;
465
+ };
466
+ "/api/interventions/{id}": {
467
+ parameters: {
468
+ query?: never;
469
+ header?: never;
470
+ path?: never;
471
+ cookie?: never;
472
+ };
473
+ get: operations["GetInterventionEndpoint_get"];
474
+ put?: never;
475
+ post?: never;
476
+ delete?: never;
477
+ options?: never;
478
+ head?: never;
479
+ patch?: never;
480
+ trace?: never;
481
+ };
482
+ "/api/interventions": {
483
+ parameters: {
484
+ query?: never;
485
+ header?: never;
486
+ path?: never;
487
+ cookie?: never;
488
+ };
489
+ get: operations["ListInterventionsEndpoint_list"];
490
+ put?: never;
491
+ post?: never;
492
+ delete?: never;
493
+ options?: never;
494
+ head?: never;
495
+ patch?: never;
496
+ trace?: never;
497
+ };
498
+ "/api/interventions/{id}/answer": {
499
+ parameters: {
500
+ query?: never;
501
+ header?: never;
502
+ path?: never;
503
+ cookie?: never;
504
+ };
505
+ get?: never;
506
+ put?: never;
507
+ post: operations["AnswerInterventionEndpoint_answer"];
508
+ delete?: never;
509
+ options?: never;
510
+ head?: never;
511
+ patch?: never;
512
+ trace?: never;
513
+ };
514
+ "/w/workspaces/check": {
515
+ parameters: {
516
+ query?: never;
517
+ header?: never;
518
+ path?: never;
519
+ cookie?: never;
520
+ };
521
+ get?: never;
522
+ put?: never;
523
+ post: operations["CheckWorkspacesEndpoint_check"];
524
+ delete?: never;
525
+ options?: never;
526
+ head?: never;
527
+ patch?: never;
528
+ trace?: never;
529
+ };
530
+ "/api/plugins": {
531
+ parameters: {
532
+ query?: never;
533
+ header?: never;
534
+ path?: never;
535
+ cookie?: never;
536
+ };
537
+ get: operations["ListPluginsEndpoint_list"];
538
+ put?: never;
539
+ post?: never;
540
+ delete?: never;
541
+ options?: never;
542
+ head?: never;
543
+ patch?: never;
544
+ trace?: never;
545
+ };
546
+ "/api/integrations": {
547
+ parameters: {
548
+ query?: never;
549
+ header?: never;
550
+ path?: never;
551
+ cookie?: never;
552
+ };
553
+ get: operations["ListIntegrationsEndpoint_list"];
554
+ put?: never;
555
+ post: operations["CreateInstanceEndpoint_create"];
556
+ delete?: never;
557
+ options?: never;
558
+ head?: never;
559
+ patch?: never;
560
+ trace?: never;
561
+ };
562
+ "/api/integrations/instances/{instance}/log": {
563
+ parameters: {
564
+ query?: never;
565
+ header?: never;
566
+ path?: never;
567
+ cookie?: never;
568
+ };
569
+ get: operations["ListInstanceLogEndpoint_list"];
570
+ put?: never;
571
+ post?: never;
572
+ delete?: never;
573
+ options?: never;
574
+ head?: never;
575
+ patch?: never;
576
+ trace?: never;
577
+ };
578
+ "/api/integrations/github/manifest": {
579
+ parameters: {
580
+ query?: never;
581
+ header?: never;
582
+ path?: never;
583
+ cookie?: never;
584
+ };
585
+ get?: never;
586
+ put?: never;
587
+ post: operations["StartGithubSetupEndpoint_start"];
588
+ delete?: never;
589
+ options?: never;
590
+ head?: never;
591
+ patch?: never;
592
+ trace?: never;
593
+ };
594
+ "/api/integrations/github/callback": {
595
+ parameters: {
596
+ query?: never;
597
+ header?: never;
598
+ path?: never;
599
+ cookie?: never;
600
+ };
601
+ get: operations["GithubCallbackEndpoint_callback"];
602
+ put?: never;
603
+ post?: never;
604
+ delete?: never;
605
+ options?: never;
606
+ head?: never;
607
+ patch?: never;
608
+ trace?: never;
609
+ };
610
+ "/api/integrations/github/installed": {
611
+ parameters: {
612
+ query?: never;
613
+ header?: never;
614
+ path?: never;
615
+ cookie?: never;
616
+ };
617
+ get: operations["GithubInstalledEndpoint_installed"];
618
+ put?: never;
619
+ post?: never;
620
+ delete?: never;
621
+ options?: never;
622
+ head?: never;
623
+ patch?: never;
624
+ trace?: never;
625
+ };
626
+ "/api/integrations/linear/teams": {
627
+ parameters: {
628
+ query?: never;
629
+ header?: never;
630
+ path?: never;
631
+ cookie?: never;
632
+ };
633
+ get?: never;
634
+ put?: never;
635
+ post: operations["ListLinearTeamsEndpoint_teams"];
636
+ delete?: never;
637
+ options?: never;
638
+ head?: never;
639
+ patch?: never;
640
+ trace?: never;
641
+ };
642
+ "/api/integrations/{name}/github/repositories": {
643
+ parameters: {
644
+ query?: never;
645
+ header?: never;
646
+ path?: never;
647
+ cookie?: never;
648
+ };
649
+ get: operations["ListGithubRepositoriesEndpoint_list"];
650
+ put?: never;
651
+ post?: never;
652
+ delete?: never;
653
+ options?: never;
654
+ head?: never;
655
+ patch?: never;
656
+ trace?: never;
657
+ };
658
+ "/api/integrations/{name}": {
659
+ parameters: {
660
+ query?: never;
661
+ header?: never;
662
+ path?: never;
663
+ cookie?: never;
664
+ };
665
+ get?: never;
666
+ put?: never;
667
+ post?: never;
668
+ delete: operations["DeleteInstanceEndpoint_remove"];
669
+ options?: never;
670
+ head?: never;
671
+ patch: operations["UpdateInstanceEndpoint_update"];
672
+ trace?: never;
673
+ };
674
+ "/health": {
675
+ parameters: {
676
+ query?: never;
677
+ header?: never;
678
+ path?: never;
679
+ cookie?: never;
680
+ };
681
+ get: operations["ServerHealthEndpoint_health"];
682
+ put?: never;
683
+ post?: never;
684
+ delete?: never;
685
+ options?: never;
686
+ head?: never;
687
+ patch?: never;
688
+ trace?: never;
689
+ };
690
+ "/ready": {
691
+ parameters: {
692
+ query?: never;
693
+ header?: never;
694
+ path?: never;
695
+ cookie?: never;
696
+ };
697
+ get: operations["ServerReadyEndpoint_ready"];
698
+ put?: never;
699
+ post?: never;
700
+ delete?: never;
701
+ options?: never;
702
+ head?: never;
703
+ patch?: never;
704
+ trace?: never;
705
+ };
706
+ "/api/agent-accounts": {
707
+ parameters: {
708
+ query?: never;
709
+ header?: never;
710
+ path?: never;
711
+ cookie?: never;
712
+ };
713
+ get: operations["ListAccountsEndpoint_list"];
714
+ put?: never;
715
+ post: operations["CreateAccountEndpoint_create"];
716
+ delete?: never;
717
+ options?: never;
718
+ head?: never;
719
+ patch?: never;
720
+ trace?: never;
721
+ };
722
+ "/api/agent-accounts/{name}": {
723
+ parameters: {
724
+ query?: never;
725
+ header?: never;
726
+ path?: never;
727
+ cookie?: never;
728
+ };
729
+ get?: never;
730
+ put?: never;
731
+ post?: never;
732
+ delete: operations["DeleteAccountEndpoint_remove"];
733
+ options?: never;
734
+ head?: never;
735
+ patch: operations["UpdateAccountEndpoint_update"];
736
+ trace?: never;
737
+ };
738
+ "/w/units/{id}/agent-accounts": {
739
+ parameters: {
740
+ query?: never;
741
+ header?: never;
742
+ path?: never;
743
+ cookie?: never;
744
+ };
745
+ get?: never;
746
+ put?: never;
747
+ post: operations["AcquireAccountEndpoint_acquire"];
748
+ delete?: never;
749
+ options?: never;
750
+ head?: never;
751
+ patch?: never;
752
+ trace?: never;
753
+ };
754
+ "/w/units/{id}/agent-accounts/{grant}/release": {
755
+ parameters: {
756
+ query?: never;
757
+ header?: never;
758
+ path?: never;
759
+ cookie?: never;
760
+ };
761
+ get?: never;
762
+ put?: never;
763
+ post: operations["ReleaseAccountEndpoint_release"];
764
+ delete?: never;
765
+ options?: never;
766
+ head?: never;
767
+ patch?: never;
768
+ trace?: never;
769
+ };
770
+ }
771
+ export type webhooks = Record<string, never>;
772
+ export interface components {
773
+ schemas: {
774
+ WorkflowInfo_Output: {
775
+ id: string;
776
+ latestVersion: string;
777
+ versions: number;
778
+ runs: number;
779
+ activeRuns: number;
780
+ /** @description whether the latest version declares `manual()` (AD-033) */
781
+ manual: boolean;
782
+ /** @description whether every slot of the latest version is bound and every setting has a value (AD-087) */
783
+ ready: boolean;
784
+ /** @description one line per unbound slot or missing setting, naming the dashboard as where to fix it */
785
+ problems: string[];
786
+ /** @description whether the workflow, every version of it, is paused (AD-088); the factory pause is in GET /api/controls */
787
+ paused: boolean;
788
+ };
789
+ WorkflowListResponse_Output: {
790
+ workflows: components["schemas"]["WorkflowInfo_Output"][];
791
+ };
792
+ WorkflowVersionInfoResponse_Output__schema0_Output: {
793
+ /** @constant */
794
+ kind: "task";
795
+ outcomes: string[];
796
+ next: {
797
+ [key: string]: string;
798
+ };
799
+ maxVisits?: number;
800
+ onExhausted?: string;
801
+ wd?: string;
802
+ waivable?: string[];
803
+ } | {
804
+ /** @constant */
805
+ kind: "human";
806
+ title: string;
807
+ form: {
808
+ ref: string;
809
+ } | {
810
+ [key: string]: unknown;
811
+ };
812
+ outcomes: string[];
813
+ next: {
814
+ [key: string]: string;
815
+ };
816
+ maxVisits?: number;
817
+ onExhausted?: string;
818
+ about?: {
819
+ [key: string]: {
820
+ ref: string;
821
+ };
822
+ };
823
+ bind?: {
824
+ ref: string;
825
+ };
826
+ timeout?: {
827
+ afterMs: number;
828
+ outcome: string;
829
+ };
830
+ remind?: {
831
+ everyMs: number;
832
+ };
833
+ } | {
834
+ /** @constant */
835
+ kind: "map";
836
+ items: {
837
+ ref: string;
838
+ };
839
+ key?: string;
840
+ dependsOn?: string;
841
+ concurrency?: number;
842
+ wd?: string | {
843
+ ref: string;
844
+ };
845
+ body: {
846
+ start: string;
847
+ steps: {
848
+ [key: string]: components["schemas"]["WorkflowVersionInfoResponse_Output__schema0_Output"];
849
+ };
850
+ };
851
+ outcomes: string[];
852
+ next: {
853
+ [key: string]: string;
854
+ };
855
+ maxVisits?: number;
856
+ onExhausted?: string;
857
+ } | {
858
+ /** @constant */
859
+ kind: "parallel";
860
+ /** @constant */
861
+ join: "all";
862
+ branches: {
863
+ [key: string]: {
864
+ start: string;
865
+ steps: {
866
+ [key: string]: components["schemas"]["WorkflowVersionInfoResponse_Output__schema0_Output"];
867
+ };
868
+ };
869
+ };
870
+ outcomes: string[];
871
+ next: {
872
+ [key: string]: string;
873
+ };
874
+ maxVisits?: number;
875
+ onExhausted?: string;
876
+ } | {
877
+ /** @constant */
878
+ kind: "wait";
879
+ afterMs?: number;
880
+ event?: {
881
+ events: string[];
882
+ slot: string;
883
+ filter?: {
884
+ [key: string]: ((string | number | boolean | null) | {
885
+ in: (string | number | boolean | null)[];
886
+ } | {
887
+ setting: string;
888
+ } | {
889
+ not: (string | number | boolean | null) | {
890
+ setting: string;
891
+ };
892
+ }) | {
893
+ ref: string;
894
+ };
895
+ };
896
+ };
897
+ timeoutMs?: number;
898
+ outcomes: string[];
899
+ next: {
900
+ [key: string]: string;
901
+ };
902
+ maxVisits?: number;
903
+ onExhausted?: string;
904
+ };
905
+ WorkflowVersionInfoResponse_Output: {
906
+ id: string;
907
+ version: string;
908
+ manifest: {
909
+ /** @constant */
910
+ manifest: 1;
911
+ id: string;
912
+ version: string;
913
+ input: {
914
+ [key: string]: unknown;
915
+ };
916
+ start: string;
917
+ steps: {
918
+ [key: string]: components["schemas"]["WorkflowVersionInfoResponse_Output__schema0_Output"];
919
+ };
920
+ policy?: {
921
+ /** @enum {string} */
922
+ keepWorkspace?: "never" | "onFailure" | "always";
923
+ /** @enum {string} */
924
+ affinity?: "sticky" | "required" | "none";
925
+ concurrency?: number;
926
+ };
927
+ events?: {
928
+ [key: string]: {
929
+ [key: string]: unknown;
930
+ };
931
+ };
932
+ plugins?: {
933
+ [key: string]: {
934
+ plugin: string;
935
+ };
936
+ };
937
+ settings?: {
938
+ [key: string]: {
939
+ /** @enum {string} */
940
+ type: "string" | "linear.state" | "linear.label" | "github.repo" | "github.branch" | "github.label";
941
+ default?: string;
942
+ };
943
+ };
944
+ triggers?: ({
945
+ /** @constant */
946
+ kind: "manual";
947
+ key?: string;
948
+ title?: string;
949
+ } | {
950
+ events: string[];
951
+ slot?: string;
952
+ filter?: {
953
+ [key: string]: (string | number | boolean | null) | {
954
+ in: (string | number | boolean | null)[];
955
+ } | {
956
+ setting: string;
957
+ } | {
958
+ not: (string | number | boolean | null) | {
959
+ setting: string;
960
+ };
961
+ };
962
+ };
963
+ input?: {
964
+ [key: string]: string;
965
+ };
966
+ key?: string;
967
+ title?: string;
968
+ answer?: {
969
+ step: string;
970
+ outcome: string;
971
+ data?: {
972
+ [key: string]: string;
973
+ };
974
+ };
975
+ })[];
976
+ on?: {
977
+ events: string[];
978
+ slot: string;
979
+ filter?: {
980
+ [key: string]: (string | number | boolean | null) | {
981
+ in: (string | number | boolean | null)[];
982
+ } | {
983
+ setting: string;
984
+ } | {
985
+ not: (string | number | boolean | null) | {
986
+ setting: string;
987
+ };
988
+ };
989
+ };
990
+ key: string;
991
+ /** @enum {string} */
992
+ do: "pause" | "resume";
993
+ }[];
994
+ };
995
+ registeredAt: string;
996
+ };
997
+ WorkflowConfigInfo_Output: {
998
+ id: string;
999
+ /** @description the latest version, whose slots and settings these are */
1000
+ version: string;
1001
+ slots: {
1002
+ slot: string;
1003
+ plugin: string;
1004
+ /** @description null: bound to no instance */
1005
+ instance: string | null;
1006
+ /** @description auto: the only instance of the plugin */
1007
+ source: ("dashboard" | "auto") | null;
1008
+ /** @description every instance of the plugin */
1009
+ choices: string[];
1010
+ }[];
1011
+ settings: {
1012
+ name: string;
1013
+ type: string;
1014
+ default: string | null;
1015
+ /** @description null: no value and no default */
1016
+ value: string | null;
1017
+ source: ("dashboard" | "default") | null;
1018
+ }[];
1019
+ ready: boolean;
1020
+ problems: string[];
1021
+ };
1022
+ UpdateWorkflowConfigRequest: {
1023
+ /** @description slot -> instance; null: back to the only instance */
1024
+ bind?: {
1025
+ [key: string]: string | null;
1026
+ };
1027
+ /** @description setting -> value; null: back to the default */
1028
+ settings?: {
1029
+ [key: string]: string | null;
1030
+ };
1031
+ };
1032
+ CreateWorkerRequest: {
1033
+ /** @description shown on the Workers page; not unique; trimmed */
1034
+ name: string;
1035
+ /** @description the workflows its processes may register; left out: any workflow */
1036
+ workflows?: string[];
1037
+ };
1038
+ CreatedWorkerResponse_Output: {
1039
+ id: string;
1040
+ name: string;
1041
+ /** @description null: any workflow */
1042
+ workflows: string[] | null;
1043
+ /** @description the worker token (CF_WORKER_TOKEN), shown only in this answer */
1044
+ token: string;
1045
+ /** @description the server's CF_PUBLIC_URL */
1046
+ server: string;
1047
+ };
1048
+ RegisterWorkerRequest: {
1049
+ /** @description the manifests of the workflows this worker carries */
1050
+ manifests: unknown[];
1051
+ /** @description image, commit and host the worker runs (run-workspace door 5) */
1052
+ provenance?: unknown;
1053
+ /** @description units this process runs at once; default 1 (multi-slot-workers door 1) */
1054
+ slots?: number;
1055
+ /**
1056
+ * @description single: units of one run at a time; default multi (multi-slot-workers door 4)
1057
+ * @enum {string}
1058
+ */
1059
+ mode?: "single" | "multi";
1060
+ };
1061
+ RegisteredResponse_Output: {
1062
+ workerId: string;
1063
+ sessionToken: string;
1064
+ expiresAt: string;
1065
+ };
1066
+ WorkerInfo_Output: {
1067
+ id: string;
1068
+ name: string;
1069
+ /** @description the workflows its token allows; null: any workflow */
1070
+ workflows: string[] | null;
1071
+ createdAt: string;
1072
+ replicas: components["schemas"]["WorkerReplica_Output"][];
1073
+ };
1074
+ WorkerReplica_Output: {
1075
+ /** @description the process's os.hostname(), from its provenance */
1076
+ host: string | null;
1077
+ /** @enum {string} */
1078
+ status: "busy" | "idle" | "offline";
1079
+ lastSeenAt: string | null;
1080
+ workflows: {
1081
+ workflow: string;
1082
+ version: string;
1083
+ /** @description false while its last health report marks this version unready; true when it never reported */
1084
+ ready: boolean;
1085
+ problems: string[];
1086
+ }[];
1087
+ provenance: {
1088
+ /** @constant */
1089
+ v: 1;
1090
+ worker: string;
1091
+ node: string;
1092
+ platform: string;
1093
+ packages: {
1094
+ [key: string]: string;
1095
+ };
1096
+ commit?: string;
1097
+ dirty?: boolean;
1098
+ plugins: {
1099
+ [key: string]: string;
1100
+ };
1101
+ host?: string;
1102
+ } | null;
1103
+ units: {
1104
+ unitId: string;
1105
+ runId: string;
1106
+ step: string;
1107
+ }[];
1108
+ /** @description units it runs at once; units lists those in use (multi-slot-workers) */
1109
+ slots: number;
1110
+ /**
1111
+ * @description single: units of one run at a time (multi-slot-workers door 4)
1112
+ * @enum {string}
1113
+ */
1114
+ mode: "single" | "multi";
1115
+ /** @description its run folders as its last collect round reported them; null until it reports (ART-226) */
1116
+ workspace: {
1117
+ reportedAt: string;
1118
+ /** @description the size of the reported folders together */
1119
+ totalBytes: number;
1120
+ /** @description largest first, at most 500 */
1121
+ folders: components["schemas"]["WorkspaceFolder_Output"][];
1122
+ } | null;
1123
+ };
1124
+ WorkspaceFolder_Output: {
1125
+ runId: string;
1126
+ /** @description its size, walked without following symlinks */
1127
+ bytes: number;
1128
+ /**
1129
+ * Format: date-time
1130
+ * @description its last change
1131
+ */
1132
+ modifiedAt: string;
1133
+ /**
1134
+ * @description what POST /w/workspaces/check answered for its run
1135
+ * @enum {string}
1136
+ */
1137
+ status: "running" | "succeeded" | "failed" | "aborted" | "missing";
1138
+ };
1139
+ WorkerListResponse_Output: {
1140
+ workers: components["schemas"]["WorkerInfo_Output"][];
1141
+ };
1142
+ ReportHealthRequest: {
1143
+ /** @description every version of the session, once each */
1144
+ workflows: {
1145
+ workflow: string;
1146
+ version: string;
1147
+ ready: boolean;
1148
+ /** @description why it is not ready, one line each; empty when ready */
1149
+ problems: string[];
1150
+ }[];
1151
+ };
1152
+ WorkspaceFolder: {
1153
+ runId: string;
1154
+ /** @description its size, walked without following symlinks */
1155
+ bytes: number;
1156
+ /**
1157
+ * Format: date-time
1158
+ * @description its last change
1159
+ */
1160
+ modifiedAt: string;
1161
+ /**
1162
+ * @description what POST /w/workspaces/check answered for its run
1163
+ * @enum {string}
1164
+ */
1165
+ status: "running" | "succeeded" | "failed" | "aborted" | "missing";
1166
+ };
1167
+ ReportWorkspaceRequest: {
1168
+ /** @description the run folders left after a collect round, largest first */
1169
+ folders: components["schemas"]["WorkspaceFolder"][];
1170
+ };
1171
+ ReportWorkspaceResponse_Output: {
1172
+ /** @description run ids an admin asked this session to delete; each is answered once */
1173
+ delete: string[];
1174
+ };
1175
+ DeleteWorkspacesRequest: {
1176
+ /** @description the replica's host; null for sessions that sent none */
1177
+ host: string | null;
1178
+ /** @description run ids of the folders to delete */
1179
+ runs: string[];
1180
+ };
1181
+ RunArtifactListResponse_Output: {
1182
+ artifacts: {
1183
+ path: string;
1184
+ sha256: string;
1185
+ size: number;
1186
+ mediaType: string;
1187
+ unitId: string;
1188
+ step: string;
1189
+ createdAt: string;
1190
+ }[];
1191
+ };
1192
+ StoredArtifactResponse_Output: {
1193
+ sha256: string;
1194
+ size: number;
1195
+ };
1196
+ CompleteRequest: {
1197
+ outcome?: string;
1198
+ /** @description the task output, at most 64 KB of JSON (AD-012) */
1199
+ output?: unknown;
1200
+ pause?: {
1201
+ /** @description 1 to 200 chars (boss-sdd-gaps door 7) */
1202
+ reason: string;
1203
+ };
1204
+ yield?: {
1205
+ /** @description 1 to 200 chars (boss-sdd-gaps door 7) */
1206
+ reason: string;
1207
+ };
1208
+ error?: {
1209
+ message: string;
1210
+ /** @enum {string} */
1211
+ kind?: "hook";
1212
+ /** @enum {string} */
1213
+ hook?: "preInit" | "beforeUnit";
1214
+ };
1215
+ events?: {
1216
+ type: string;
1217
+ time?: string;
1218
+ data: {
1219
+ [key: string]: unknown;
1220
+ };
1221
+ }[];
1222
+ };
1223
+ CompletedResponse_Output: Record<string, never>;
1224
+ LeasedUnitResponse_Output: {
1225
+ unitId: string;
1226
+ runId: string;
1227
+ workflow: string;
1228
+ version: string;
1229
+ step: string;
1230
+ input: unknown;
1231
+ visit: number;
1232
+ attempt: number;
1233
+ leaseToken: string;
1234
+ leaseExpiresAt: string;
1235
+ outputs: {
1236
+ [key: string]: unknown;
1237
+ };
1238
+ /** @enum {string} */
1239
+ kind: "task" | "finish";
1240
+ /** @enum {string} */
1241
+ runStatus?: "succeeded" | "failed" | "aborted";
1242
+ settings: {
1243
+ [key: string]: string;
1244
+ };
1245
+ plugins: {
1246
+ [key: string]: {
1247
+ instance: string;
1248
+ plugin: string;
1249
+ config: unknown;
1250
+ };
1251
+ };
1252
+ artifacts: {
1253
+ path: string;
1254
+ sha256: string;
1255
+ size: number;
1256
+ mediaType: string;
1257
+ }[];
1258
+ effects: {
1259
+ effectId: string;
1260
+ name: string;
1261
+ args: unknown[];
1262
+ }[];
1263
+ visits: {
1264
+ [key: string]: {
1265
+ visit: number;
1266
+ outcome: string;
1267
+ output?: unknown;
1268
+ }[];
1269
+ };
1270
+ item?: unknown;
1271
+ wd?: string;
1272
+ };
1273
+ HeartbeatRequest: {
1274
+ events?: {
1275
+ type: string;
1276
+ time?: string;
1277
+ data: {
1278
+ [key: string]: unknown;
1279
+ };
1280
+ }[];
1281
+ };
1282
+ HeartbeatResponse_Output: {
1283
+ leaseExpiresAt: string;
1284
+ };
1285
+ DrainSessionRequest: {
1286
+ /** @description run ids of the units in flight on the worker */
1287
+ runs: string[];
1288
+ };
1289
+ DrainedRun_Output: {
1290
+ id: string;
1291
+ /** @enum {string} */
1292
+ status: "running" | "succeeded" | "failed" | "aborted";
1293
+ /** @description `pausing` while one of its units is leased */
1294
+ pause: ("pausing" | "paused") | null;
1295
+ };
1296
+ DrainSessionResponse_Output: {
1297
+ /** @description each asked run the session leased a unit of, now or before, in the order asked; other ids are left out */
1298
+ runs: components["schemas"]["DrainedRun_Output"][];
1299
+ };
1300
+ CallActionRequest: {
1301
+ slot: string;
1302
+ action: string;
1303
+ args: unknown[];
1304
+ };
1305
+ CallActionResponse_Output: {
1306
+ result: unknown;
1307
+ };
1308
+ ClaimKeyRequest: {
1309
+ key: string;
1310
+ };
1311
+ ClaimKeyResponse_Output: {
1312
+ key: string;
1313
+ claimed: boolean;
1314
+ };
1315
+ SetRunMetaRequest: {
1316
+ /** @description the run's new title: 1 to 200 chars after trimming */
1317
+ title?: string;
1318
+ /** @description added after the links the run holds, but for urls it holds */
1319
+ links?: {
1320
+ label: string;
1321
+ url: string;
1322
+ }[];
1323
+ };
1324
+ RunLink_Output: {
1325
+ label: string;
1326
+ url: string;
1327
+ };
1328
+ SetRunMetaResponse_Output: {
1329
+ title: string | null;
1330
+ links: components["schemas"]["RunLink_Output"][];
1331
+ /** @description the links this call added */
1332
+ added: components["schemas"]["RunLink_Output"][];
1333
+ };
1334
+ DispatchRunRequest: {
1335
+ workflow: string;
1336
+ /** @description the run's input; `{}` when omitted */
1337
+ input?: unknown;
1338
+ /** @enum {string} */
1339
+ via?: "dashboard" | "cli" | "api";
1340
+ };
1341
+ DispatchedRunResponse_Output: {
1342
+ runId: string;
1343
+ };
1344
+ RunInfo_Output: {
1345
+ id: string;
1346
+ workflow: string;
1347
+ version: string;
1348
+ /** @enum {string} */
1349
+ status: "running" | "succeeded" | "failed" | "aborted";
1350
+ createdAt: string;
1351
+ endedAt: string | null;
1352
+ pause: ("pausing" | "paused") | null;
1353
+ /** @description the oldest open intervention the run waits on, else its oldest open wait (AD-018) */
1354
+ waiting: string | null;
1355
+ waitingOn: ("human" | "event" | "timer") | null;
1356
+ /** @description waiting for a slot under its workflow's `policy.concurrency` (AD-024) */
1357
+ queued: boolean;
1358
+ pausedBy: ("operator" | "handler" | "task" | "lost-worker" | "shutdown") | null;
1359
+ /** @description its human title; null when none was set (AD-085) */
1360
+ title: string | null;
1361
+ /** @description its links in the order they were added, each url once (AD-085) */
1362
+ links: components["schemas"]["RunLink_Output"][];
1363
+ /** @description its oldest queued or leased unit: the step and when it was queued; null when none is open */
1364
+ currentUnit: {
1365
+ step: string;
1366
+ since: string;
1367
+ } | null;
1368
+ };
1369
+ RunListResponse_Output: {
1370
+ runs: components["schemas"]["RunInfo_Output"][];
1371
+ };
1372
+ RunEventListResponse_Output: {
1373
+ events: {
1374
+ id: string;
1375
+ seq: number;
1376
+ type: string;
1377
+ v: number;
1378
+ time: string;
1379
+ receivedAt?: string;
1380
+ runId?: string;
1381
+ unitId?: string;
1382
+ workflow?: {
1383
+ id: string;
1384
+ version: string;
1385
+ };
1386
+ actor: {
1387
+ /** @enum {string} */
1388
+ kind: "human" | "signal" | "worker" | "engine" | "code" | "agent";
1389
+ id: string;
1390
+ onBehalfOf?: string;
1391
+ };
1392
+ data: {
1393
+ [key: string]: unknown;
1394
+ };
1395
+ }[];
1396
+ };
1397
+ RunControlRequest: {
1398
+ reason?: string;
1399
+ };
1400
+ RunControlResponse_Output: {
1401
+ id: string;
1402
+ /** @enum {string} */
1403
+ status: "running" | "succeeded" | "failed" | "aborted";
1404
+ pause: ("pausing" | "paused") | null;
1405
+ };
1406
+ Controls_Output: {
1407
+ factory: {
1408
+ paused: boolean;
1409
+ reason: string | null;
1410
+ pausedAt: string | null;
1411
+ pausedBy: ("operator" | "handler" | "task" | "lost-worker" | "shutdown") | null;
1412
+ };
1413
+ workflows: {
1414
+ id: string;
1415
+ reason: string | null;
1416
+ pausedAt: string;
1417
+ /** @enum {string} */
1418
+ pausedBy: "operator" | "handler" | "task" | "lost-worker" | "shutdown";
1419
+ }[];
1420
+ };
1421
+ ScopeControlRequest: {
1422
+ reason?: string;
1423
+ };
1424
+ ScopeControl_Output: {
1425
+ /** @description `factory` or `workflow:<id>` */
1426
+ scope: string;
1427
+ paused: boolean;
1428
+ reason: string | null;
1429
+ pausedAt: string | null;
1430
+ };
1431
+ InterventionInfo_Output: {
1432
+ id: string;
1433
+ runId: string;
1434
+ workflow: string;
1435
+ step: string;
1436
+ visit: number;
1437
+ title: string;
1438
+ form: {
1439
+ [key: string]: unknown;
1440
+ };
1441
+ outcomes: string[];
1442
+ openedAt: string;
1443
+ /** @enum {string} */
1444
+ status: "open" | "answered" | "voided";
1445
+ answer: {
1446
+ outcome: string;
1447
+ data: {
1448
+ [key: string]: unknown;
1449
+ };
1450
+ } | null;
1451
+ closedAt: string | null;
1452
+ /** @enum {string} */
1453
+ kind: "human" | "waiver";
1454
+ about: ({
1455
+ label: string;
1456
+ ref: string;
1457
+ value: unknown;
1458
+ /** @constant */
1459
+ truncated?: true;
1460
+ bytes?: number;
1461
+ } | {
1462
+ label: string;
1463
+ ref: string;
1464
+ artifacts: {
1465
+ path: string;
1466
+ sha256: string;
1467
+ size: number;
1468
+ mediaType: string;
1469
+ }[];
1470
+ })[] | null;
1471
+ bound: {
1472
+ path: string;
1473
+ sha256: string;
1474
+ }[] | null;
1475
+ waives: string | null;
1476
+ unitId: string | null;
1477
+ voidReason: ("stop" | "artifact_changed" | "timeout") | null;
1478
+ reminders: number;
1479
+ timeoutAt: string | null;
1480
+ };
1481
+ InterventionListResponse_Output: {
1482
+ interventions: components["schemas"]["InterventionInfo_Output"][];
1483
+ };
1484
+ AnswerRequest: {
1485
+ /** @description one of the outcomes the step declares */
1486
+ outcome: string;
1487
+ /** @description checked against the step's form */
1488
+ data?: {
1489
+ [key: string]: unknown;
1490
+ };
1491
+ };
1492
+ AnswerResultResponse_Output: {
1493
+ id: string;
1494
+ runId: string;
1495
+ outcome: string;
1496
+ /** @constant */
1497
+ status: "answered";
1498
+ };
1499
+ CheckWorkspacesRequest: {
1500
+ /** @description run ids of the folders on the worker */
1501
+ runs: string[];
1502
+ };
1503
+ CheckWorkspacesResponse_Output: {
1504
+ /** @description each asked run id: its status, or `missing` when the server has no such run */
1505
+ statuses: {
1506
+ [key: string]: "running" | "succeeded" | "failed" | "aborted" | "missing";
1507
+ };
1508
+ /** @description each asked run id: when it ended (ISO), or null while it is running or when it is missing */
1509
+ endedAt: {
1510
+ [key: string]: string | null;
1511
+ };
1512
+ };
1513
+ PluginInfo_Output: {
1514
+ instance: string;
1515
+ plugin: string;
1516
+ /** @description null before its first check, or when its plugin has no check */
1517
+ ok: boolean | null;
1518
+ problems: string[];
1519
+ checkedAt: string | null;
1520
+ /** @description the workflows whose resolved bindings use it: set on the dashboard, or as the only instance of its plugin */
1521
+ workflows: string[];
1522
+ };
1523
+ PluginListResponse_Output: {
1524
+ plugins: components["schemas"]["PluginInfo_Output"][];
1525
+ };
1526
+ IntegrationInfo_Output: {
1527
+ plugin: string;
1528
+ title: string;
1529
+ /** @description the setup flow the dashboard offers; null: none */
1530
+ setup: ("github" | "linear") | null;
1531
+ instances: components["schemas"]["IntegrationInstanceInfo_Output"][];
1532
+ };
1533
+ IntegrationInstanceInfo_Output: {
1534
+ name: string;
1535
+ /**
1536
+ * @description env: the default instance made from its plugin env (AD-089); dashboard: set up on the dashboard
1537
+ * @enum {string}
1538
+ */
1539
+ source: "env" | "dashboard";
1540
+ /** @enum {string} */
1541
+ state: "pending_install" | "active";
1542
+ /** @description null before its first check, or when its plugin has no check */
1543
+ ok: boolean | null;
1544
+ problems: string[];
1545
+ checkedAt: string | null;
1546
+ /** @description the workflows whose resolved bindings use it: set on the dashboard, or as the only instance of its plugin */
1547
+ workflows: string[];
1548
+ /** @description the plugin's config: GitHub appId, installationId, appSlug, repos; Linear team */
1549
+ config: {
1550
+ [key: string]: unknown;
1551
+ };
1552
+ /** @description each declared secret it holds, by name: the first 8 hex characters of its SHA-256 */
1553
+ secrets: {
1554
+ [key: string]: string;
1555
+ };
1556
+ /** @description where its system posts webhooks; admins only, null to others or with no hook token */
1557
+ webhookUrl: string | null;
1558
+ /** @description a GitHub App waiting for installation: its install page */
1559
+ installUrl: string | null;
1560
+ };
1561
+ IntegrationListResponse_Output: {
1562
+ integrations: components["schemas"]["IntegrationInfo_Output"][];
1563
+ /** @description whether CF_PUBLIC_URL is set: GitHub can only reach this factory at an address someone set (AC 14) */
1564
+ publicUrlSet: boolean;
1565
+ };
1566
+ InstanceLogEntry_Output: {
1567
+ /** @description the event id */
1568
+ id: string;
1569
+ /** @description the event time, ISO */
1570
+ at: string;
1571
+ /** @enum {string} */
1572
+ kind: "delivery" | "event" | "routing" | "action" | "health";
1573
+ /** @description the event type */
1574
+ type: string;
1575
+ /** @enum {string} */
1576
+ status: "ok" | "error" | "ignored" | "duplicate";
1577
+ /** @description the run it started, answered, acted for or was ignored for */
1578
+ runId: string | null;
1579
+ /** @description signal.received, signal.deduplicated */
1580
+ deliveryId?: string;
1581
+ /** @description signal.received: the events the delivery produced */
1582
+ eventIds?: string[];
1583
+ /** @description routing: the plugin event it routed */
1584
+ eventId?: string;
1585
+ /** @description routing: the workflow whose trigger acted or ignored it */
1586
+ workflow?: string;
1587
+ /** @description signal.ignored, signal.rejected */
1588
+ reason?: string;
1589
+ /** @description plugin.action.* */
1590
+ slot?: string;
1591
+ /** @description plugin.action.* */
1592
+ action?: string;
1593
+ /** @description plugin.action.completed, plugin.action.failed */
1594
+ durationMs?: number;
1595
+ /** @description plugin.action.failed */
1596
+ error?: string;
1597
+ /** @description plugin.unhealthy */
1598
+ problems?: string[];
1599
+ };
1600
+ InstanceLogResponse_Output: {
1601
+ /** @description newest first */
1602
+ entries: components["schemas"]["InstanceLogEntry_Output"][];
1603
+ /** @description the before of the next page; null on the last one */
1604
+ next: string | null;
1605
+ };
1606
+ StartGithubSetupRequest: {
1607
+ /** @description the instance name */
1608
+ name: string;
1609
+ owner: {
1610
+ /** @constant */
1611
+ type: "user";
1612
+ } | {
1613
+ /** @constant */
1614
+ type: "org";
1615
+ login: string;
1616
+ };
1617
+ };
1618
+ StartGithubSetupResponse_Output: {
1619
+ /** @description GitHub's new-App page, with the setup's state: the browser posts `manifest` there as a form field */
1620
+ action: string;
1621
+ /** @description the GitHub App manifest (door 3), as JSON */
1622
+ manifest: {
1623
+ [key: string]: unknown;
1624
+ };
1625
+ state: string;
1626
+ };
1627
+ CreateInstanceRequest: {
1628
+ /** @enum {string} */
1629
+ plugin: "github" | "linear";
1630
+ /** @description the instance name */
1631
+ name: string;
1632
+ appId?: string;
1633
+ installationId?: string;
1634
+ /** @description github: the App's private key, PEM */
1635
+ privateKey?: string;
1636
+ /** @description github: the App's webhook secret */
1637
+ webhookSecret?: string;
1638
+ /** @description linear: an API key */
1639
+ apiKey?: string;
1640
+ /** @description linear: a team id from POST /api/integrations/linear/teams */
1641
+ teamId?: string;
1642
+ };
1643
+ ListLinearTeamsRequest: {
1644
+ /** @description a Linear API key */
1645
+ apiKey: string;
1646
+ };
1647
+ LinearTeam_Output: {
1648
+ id: string;
1649
+ key: string;
1650
+ name: string;
1651
+ };
1652
+ ListLinearTeamsResponse_Output: {
1653
+ teams: components["schemas"]["LinearTeam_Output"][];
1654
+ };
1655
+ InstallationRepository_Output: {
1656
+ /** @description owner/name */
1657
+ fullName: string;
1658
+ private: boolean;
1659
+ };
1660
+ ListGithubRepositoriesResponse_Output: {
1661
+ repositories: components["schemas"]["InstallationRepository_Output"][];
1662
+ };
1663
+ UpdateInstanceRequest: {
1664
+ /** @description the repos the instance covers */
1665
+ repos: string[];
1666
+ };
1667
+ DeleteInstanceResponse_Output: {
1668
+ removed: string;
1669
+ /** @description what could not be cleaned up on the other system, e.g. a Linear webhook */
1670
+ warnings: string[];
1671
+ };
1672
+ ServerHealth_Output: {
1673
+ /** @constant */
1674
+ status: "ok";
1675
+ };
1676
+ ServerReady_Output: {
1677
+ /** @enum {string} */
1678
+ status: "ready" | "unready";
1679
+ checks: {
1680
+ /** @enum {string} */
1681
+ database: "ok" | "unreachable";
1682
+ /** @description `ok`, `unknown` while the database is unreachable, or `pending: <names>` */
1683
+ migrations: string;
1684
+ };
1685
+ };
1686
+ AgentAccountView_Output: {
1687
+ name: string;
1688
+ harness: string;
1689
+ /** @enum {string} */
1690
+ kind: "subscription" | "api-key";
1691
+ scope: "global" | {
1692
+ workflow: string;
1693
+ };
1694
+ priority: number;
1695
+ /** @description null: no limit */
1696
+ maxConcurrency: number | null;
1697
+ /** @enum {string} */
1698
+ state: "unverified" | "healthy" | "cooldown" | "invalid" | "disabled";
1699
+ cooldownUntil?: string;
1700
+ invalidReason?: string;
1701
+ quota?: {
1702
+ fiveHour?: number;
1703
+ sevenDay?: number;
1704
+ /** @description epoch seconds */
1705
+ resetsAt?: number;
1706
+ };
1707
+ inFlight: number;
1708
+ lastUsedAt?: string;
1709
+ /** @description the secret's last 4 characters */
1710
+ fingerprint: string;
1711
+ };
1712
+ AgentAccountListResponse_Output: {
1713
+ accounts: components["schemas"]["AgentAccountView_Output"][];
1714
+ };
1715
+ CreateAccountRequest: {
1716
+ name: string;
1717
+ /** @enum {string} */
1718
+ harness: "claude-code";
1719
+ /** @enum {string} */
1720
+ kind: "subscription" | "api-key";
1721
+ /** @description a `claude setup-token` token, or an API key; never shown again */
1722
+ secret: string;
1723
+ scope: "global" | {
1724
+ workflow: string;
1725
+ };
1726
+ /** @description lower is picked first; default 100 */
1727
+ priority?: number;
1728
+ /** @description open grants at once; absent: no limit */
1729
+ maxConcurrency?: number;
1730
+ };
1731
+ UpdateAccountRequest: {
1732
+ scope?: "global" | {
1733
+ workflow: string;
1734
+ };
1735
+ priority?: number;
1736
+ /** @description null: no limit */
1737
+ maxConcurrency?: number | null;
1738
+ enabled?: boolean;
1739
+ /** @description replaces the secret; never shown again */
1740
+ secret?: string;
1741
+ };
1742
+ AcquireAccountRequest: {
1743
+ /** @enum {string} */
1744
+ harness: "claude-code";
1745
+ model?: string;
1746
+ /** @description accounts already tried in this call */
1747
+ exclude?: string[];
1748
+ };
1749
+ AcquireAccountResponse_Output: {
1750
+ grant: string;
1751
+ account: string;
1752
+ /** @description what the harness needs for the account, e.g. CLAUDE_CODE_OAUTH_TOKEN */
1753
+ env: {
1754
+ [key: string]: string;
1755
+ };
1756
+ };
1757
+ ReleaseAccountRequest: {
1758
+ /** @enum {string} */
1759
+ result: "ok" | "rate_limited" | "unauthorized" | "error";
1760
+ quota?: {
1761
+ fiveHour?: number;
1762
+ sevenDay?: number;
1763
+ /** @description epoch seconds */
1764
+ resetsAt?: number;
1765
+ };
1766
+ reason?: string;
1767
+ };
1768
+ };
1769
+ responses: never;
1770
+ parameters: never;
1771
+ requestBodies: never;
1772
+ headers: never;
1773
+ pathItems: never;
1774
+ }
1775
+ export type $defs = Record<string, never>;
1776
+ export interface operations {
1777
+ ListWorkflowsEndpoint_list: {
1778
+ parameters: {
1779
+ query?: never;
1780
+ header?: never;
1781
+ path?: never;
1782
+ cookie?: never;
1783
+ };
1784
+ requestBody?: never;
1785
+ responses: {
1786
+ /** @description one row per registered workflow, ordered by id */
1787
+ 200: {
1788
+ headers: {
1789
+ [name: string]: unknown;
1790
+ };
1791
+ content: {
1792
+ "application/json": components["schemas"]["WorkflowListResponse_Output"];
1793
+ };
1794
+ };
1795
+ };
1796
+ };
1797
+ GetWorkflowVersionEndpoint_get: {
1798
+ parameters: {
1799
+ query?: never;
1800
+ header?: never;
1801
+ path: {
1802
+ id: string;
1803
+ version: string;
1804
+ };
1805
+ cookie?: never;
1806
+ };
1807
+ requestBody?: never;
1808
+ responses: {
1809
+ /** @description one registered version's manifest */
1810
+ 200: {
1811
+ headers: {
1812
+ [name: string]: unknown;
1813
+ };
1814
+ content: {
1815
+ "application/json": components["schemas"]["WorkflowVersionInfoResponse_Output"];
1816
+ };
1817
+ };
1818
+ /** @description code_factory/workflow_not_found */
1819
+ 404: {
1820
+ headers: {
1821
+ [name: string]: unknown;
1822
+ };
1823
+ content?: never;
1824
+ };
1825
+ };
1826
+ };
1827
+ GetWorkflowConfigEndpoint_get: {
1828
+ parameters: {
1829
+ query?: never;
1830
+ header?: never;
1831
+ path: {
1832
+ id: string;
1833
+ };
1834
+ cookie?: never;
1835
+ };
1836
+ requestBody?: never;
1837
+ responses: {
1838
+ /** @description the latest version's slots and settings, their values and where each comes from */
1839
+ 200: {
1840
+ headers: {
1841
+ [name: string]: unknown;
1842
+ };
1843
+ content: {
1844
+ "application/json": components["schemas"]["WorkflowConfigInfo_Output"];
1845
+ };
1846
+ };
1847
+ /** @description code_factory/workflow_not_found */
1848
+ 404: {
1849
+ headers: {
1850
+ [name: string]: unknown;
1851
+ };
1852
+ content?: never;
1853
+ };
1854
+ };
1855
+ };
1856
+ UpdateWorkflowConfigEndpoint_update: {
1857
+ parameters: {
1858
+ query?: never;
1859
+ header?: never;
1860
+ path: {
1861
+ id: string;
1862
+ };
1863
+ cookie?: never;
1864
+ };
1865
+ requestBody: {
1866
+ content: {
1867
+ "application/json": components["schemas"]["UpdateWorkflowConfigRequest"];
1868
+ };
1869
+ };
1870
+ responses: {
1871
+ /** @description the config as stored now */
1872
+ 200: {
1873
+ headers: {
1874
+ [name: string]: unknown;
1875
+ };
1876
+ content: {
1877
+ "application/json": components["schemas"]["WorkflowConfigInfo_Output"];
1878
+ };
1879
+ };
1880
+ /** @description code_factory/invalid_input */
1881
+ 400: {
1882
+ headers: {
1883
+ [name: string]: unknown;
1884
+ };
1885
+ content?: never;
1886
+ };
1887
+ /** @description code_factory/workflow_not_found */
1888
+ 404: {
1889
+ headers: {
1890
+ [name: string]: unknown;
1891
+ };
1892
+ content?: never;
1893
+ };
1894
+ /** @description code_factory/plugin_unavailable */
1895
+ 502: {
1896
+ headers: {
1897
+ [name: string]: unknown;
1898
+ };
1899
+ content?: never;
1900
+ };
1901
+ };
1902
+ };
1903
+ ListWorkersEndpoint_list: {
1904
+ parameters: {
1905
+ query?: never;
1906
+ header?: never;
1907
+ path?: never;
1908
+ cookie?: never;
1909
+ };
1910
+ requestBody?: never;
1911
+ responses: {
1912
+ /** @description every unrevoked worker, its live sessions as replicas and the units each holds */
1913
+ 200: {
1914
+ headers: {
1915
+ [name: string]: unknown;
1916
+ };
1917
+ content: {
1918
+ "application/json": components["schemas"]["WorkerListResponse_Output"];
1919
+ };
1920
+ };
1921
+ };
1922
+ };
1923
+ CreateWorkerEndpoint_create: {
1924
+ parameters: {
1925
+ query?: never;
1926
+ header?: never;
1927
+ path?: never;
1928
+ cookie?: never;
1929
+ };
1930
+ requestBody: {
1931
+ content: {
1932
+ "application/json": components["schemas"]["CreateWorkerRequest"];
1933
+ };
1934
+ };
1935
+ responses: {
1936
+ /** @description the worker and its token, shown once */
1937
+ 201: {
1938
+ headers: {
1939
+ [name: string]: unknown;
1940
+ };
1941
+ content: {
1942
+ "application/json": components["schemas"]["CreatedWorkerResponse_Output"];
1943
+ };
1944
+ };
1945
+ /** @description code_factory/invalid_input */
1946
+ 400: {
1947
+ headers: {
1948
+ [name: string]: unknown;
1949
+ };
1950
+ content?: never;
1951
+ };
1952
+ };
1953
+ };
1954
+ RevokeWorkerEndpoint_revoke: {
1955
+ parameters: {
1956
+ query?: never;
1957
+ header?: never;
1958
+ path: {
1959
+ id: string;
1960
+ };
1961
+ cookie?: never;
1962
+ };
1963
+ requestBody?: never;
1964
+ responses: {
1965
+ /** @description revoked, or already revoked */
1966
+ 204: {
1967
+ headers: {
1968
+ [name: string]: unknown;
1969
+ };
1970
+ content?: never;
1971
+ };
1972
+ /** @description code_factory/worker_not_found */
1973
+ 404: {
1974
+ headers: {
1975
+ [name: string]: unknown;
1976
+ };
1977
+ content?: never;
1978
+ };
1979
+ };
1980
+ };
1981
+ RegisterWorkerEndpoint_register: {
1982
+ parameters: {
1983
+ query?: never;
1984
+ header?: never;
1985
+ path?: never;
1986
+ cookie?: never;
1987
+ };
1988
+ requestBody: {
1989
+ content: {
1990
+ "application/json": components["schemas"]["RegisterWorkerRequest"];
1991
+ };
1992
+ };
1993
+ responses: {
1994
+ /** @description a session for leasing */
1995
+ 200: {
1996
+ headers: {
1997
+ [name: string]: unknown;
1998
+ };
1999
+ content: {
2000
+ "application/json": components["schemas"]["RegisteredResponse_Output"];
2001
+ };
2002
+ };
2003
+ };
2004
+ };
2005
+ ReportHealthEndpoint_report: {
2006
+ parameters: {
2007
+ query?: never;
2008
+ header?: never;
2009
+ path?: never;
2010
+ cookie?: never;
2011
+ };
2012
+ requestBody: {
2013
+ content: {
2014
+ "application/json": components["schemas"]["ReportHealthRequest"];
2015
+ };
2016
+ };
2017
+ responses: {
2018
+ /** @description the report is kept on the session; unready versions are not leased to it */
2019
+ 204: {
2020
+ headers: {
2021
+ [name: string]: unknown;
2022
+ };
2023
+ content?: never;
2024
+ };
2025
+ /** @description code_factory/invalid_input: a version outside the session, twice, or missing */
2026
+ 400: {
2027
+ headers: {
2028
+ [name: string]: unknown;
2029
+ };
2030
+ content?: never;
2031
+ };
2032
+ /** @description code_factory/unauthorized */
2033
+ 401: {
2034
+ headers: {
2035
+ [name: string]: unknown;
2036
+ };
2037
+ content?: never;
2038
+ };
2039
+ };
2040
+ };
2041
+ ReportWorkspaceEndpoint_report: {
2042
+ parameters: {
2043
+ query?: never;
2044
+ header?: never;
2045
+ path?: never;
2046
+ cookie?: never;
2047
+ };
2048
+ requestBody: {
2049
+ content: {
2050
+ "application/json": components["schemas"]["ReportWorkspaceRequest"];
2051
+ };
2052
+ };
2053
+ responses: {
2054
+ /** @description the report is kept on the session; the answer names the folders to delete */
2055
+ 200: {
2056
+ headers: {
2057
+ [name: string]: unknown;
2058
+ };
2059
+ content: {
2060
+ "application/json": components["schemas"]["ReportWorkspaceResponse_Output"];
2061
+ };
2062
+ };
2063
+ /** @description code_factory/invalid_input: at most 500 folders */
2064
+ 400: {
2065
+ headers: {
2066
+ [name: string]: unknown;
2067
+ };
2068
+ content?: never;
2069
+ };
2070
+ /** @description code_factory/unauthorized */
2071
+ 401: {
2072
+ headers: {
2073
+ [name: string]: unknown;
2074
+ };
2075
+ content?: never;
2076
+ };
2077
+ };
2078
+ };
2079
+ DeleteWorkspacesEndpoint_delete: {
2080
+ parameters: {
2081
+ query?: never;
2082
+ header?: never;
2083
+ path: {
2084
+ id: string;
2085
+ };
2086
+ cookie?: never;
2087
+ };
2088
+ requestBody: {
2089
+ content: {
2090
+ "application/json": components["schemas"]["DeleteWorkspacesRequest"];
2091
+ };
2092
+ };
2093
+ responses: {
2094
+ /** @description queued for the host's online sessions; each deletes the folders on its next check round */
2095
+ 202: {
2096
+ headers: {
2097
+ [name: string]: unknown;
2098
+ };
2099
+ content?: never;
2100
+ };
2101
+ /** @description code_factory/invalid_input: a host (or null) and 1 to 100 run ids */
2102
+ 400: {
2103
+ headers: {
2104
+ [name: string]: unknown;
2105
+ };
2106
+ content?: never;
2107
+ };
2108
+ /** @description code_factory/worker_not_found */
2109
+ 404: {
2110
+ headers: {
2111
+ [name: string]: unknown;
2112
+ };
2113
+ content?: never;
2114
+ };
2115
+ };
2116
+ };
2117
+ ListRunArtifactsEndpoint_list: {
2118
+ parameters: {
2119
+ query?: never;
2120
+ header?: never;
2121
+ path: {
2122
+ id: string;
2123
+ };
2124
+ cookie?: never;
2125
+ };
2126
+ requestBody?: never;
2127
+ responses: {
2128
+ /** @description every artifact.created of the run, in seq order */
2129
+ 200: {
2130
+ headers: {
2131
+ [name: string]: unknown;
2132
+ };
2133
+ content: {
2134
+ "application/json": components["schemas"]["RunArtifactListResponse_Output"];
2135
+ };
2136
+ };
2137
+ /** @description code_factory/run_not_found */
2138
+ 404: {
2139
+ headers: {
2140
+ [name: string]: unknown;
2141
+ };
2142
+ content?: never;
2143
+ };
2144
+ };
2145
+ };
2146
+ PutArtifactEndpoint_put: {
2147
+ parameters: {
2148
+ query?: never;
2149
+ header?: never;
2150
+ path: {
2151
+ sha256: string;
2152
+ };
2153
+ cookie?: never;
2154
+ };
2155
+ requestBody: {
2156
+ content: {
2157
+ "application/octet-stream": string;
2158
+ };
2159
+ };
2160
+ responses: {
2161
+ /** @description stored under its sha256 */
2162
+ 200: {
2163
+ headers: {
2164
+ [name: string]: unknown;
2165
+ };
2166
+ content: {
2167
+ "application/json": components["schemas"]["StoredArtifactResponse_Output"];
2168
+ };
2169
+ };
2170
+ };
2171
+ };
2172
+ CompleteUnitEndpoint_complete: {
2173
+ parameters: {
2174
+ query?: never;
2175
+ header?: never;
2176
+ path: {
2177
+ id: string;
2178
+ };
2179
+ cookie?: never;
2180
+ };
2181
+ requestBody: {
2182
+ content: {
2183
+ "application/json": components["schemas"]["CompleteRequest"];
2184
+ };
2185
+ };
2186
+ responses: {
2187
+ /** @description completed */
2188
+ 200: {
2189
+ headers: {
2190
+ [name: string]: unknown;
2191
+ };
2192
+ content: {
2193
+ "application/json": components["schemas"]["CompletedResponse_Output"];
2194
+ };
2195
+ };
2196
+ /** @description code_factory/invalid_input */
2197
+ 400: {
2198
+ headers: {
2199
+ [name: string]: unknown;
2200
+ };
2201
+ content?: never;
2202
+ };
2203
+ /** @description code_factory/lease_mismatch */
2204
+ 403: {
2205
+ headers: {
2206
+ [name: string]: unknown;
2207
+ };
2208
+ content?: never;
2209
+ };
2210
+ /** @description code_factory/lease_expired, code_factory/unit_cancelled */
2211
+ 409: {
2212
+ headers: {
2213
+ [name: string]: unknown;
2214
+ };
2215
+ content?: never;
2216
+ };
2217
+ };
2218
+ };
2219
+ LeaseUnitEndpoint_lease: {
2220
+ parameters: {
2221
+ query?: never;
2222
+ header?: never;
2223
+ path?: never;
2224
+ cookie?: never;
2225
+ };
2226
+ requestBody?: never;
2227
+ responses: {
2228
+ /** @description a unit to run */
2229
+ 200: {
2230
+ headers: {
2231
+ [name: string]: unknown;
2232
+ };
2233
+ content: {
2234
+ "application/json": components["schemas"]["LeasedUnitResponse_Output"];
2235
+ };
2236
+ };
2237
+ /** @description no work before the long-poll ended */
2238
+ 204: {
2239
+ headers: {
2240
+ [name: string]: unknown;
2241
+ };
2242
+ content?: never;
2243
+ };
2244
+ /** @description code_factory/unauthorized */
2245
+ 401: {
2246
+ headers: {
2247
+ [name: string]: unknown;
2248
+ };
2249
+ content?: never;
2250
+ };
2251
+ };
2252
+ };
2253
+ HeartbeatUnitEndpoint_heartbeat: {
2254
+ parameters: {
2255
+ query?: never;
2256
+ header?: never;
2257
+ path: {
2258
+ id: string;
2259
+ };
2260
+ cookie?: never;
2261
+ };
2262
+ requestBody: {
2263
+ content: {
2264
+ "application/json": components["schemas"]["HeartbeatRequest"];
2265
+ };
2266
+ };
2267
+ responses: {
2268
+ /** @description the lease, extended */
2269
+ 200: {
2270
+ headers: {
2271
+ [name: string]: unknown;
2272
+ };
2273
+ content: {
2274
+ "application/json": components["schemas"]["HeartbeatResponse_Output"];
2275
+ };
2276
+ };
2277
+ /** @description code_factory/invalid_input */
2278
+ 400: {
2279
+ headers: {
2280
+ [name: string]: unknown;
2281
+ };
2282
+ content?: never;
2283
+ };
2284
+ /** @description code_factory/lease_mismatch */
2285
+ 403: {
2286
+ headers: {
2287
+ [name: string]: unknown;
2288
+ };
2289
+ content?: never;
2290
+ };
2291
+ /** @description code_factory/lease_expired, code_factory/unit_cancelled */
2292
+ 409: {
2293
+ headers: {
2294
+ [name: string]: unknown;
2295
+ };
2296
+ content?: never;
2297
+ };
2298
+ };
2299
+ };
2300
+ DrainSessionEndpoint_drain: {
2301
+ parameters: {
2302
+ query?: never;
2303
+ header?: never;
2304
+ path?: never;
2305
+ cookie?: never;
2306
+ };
2307
+ requestBody: {
2308
+ content: {
2309
+ "application/json": components["schemas"]["DrainSessionRequest"];
2310
+ };
2311
+ };
2312
+ responses: {
2313
+ /** @description the session is draining; each of its runs paused by shutdown (unless already paused, or affinity none), with its state */
2314
+ 200: {
2315
+ headers: {
2316
+ [name: string]: unknown;
2317
+ };
2318
+ content: {
2319
+ "application/json": components["schemas"]["DrainSessionResponse_Output"];
2320
+ };
2321
+ };
2322
+ /** @description code_factory/invalid_input: 1 to WORKER_SLOTS_MAX run ids */
2323
+ 400: {
2324
+ headers: {
2325
+ [name: string]: unknown;
2326
+ };
2327
+ content?: never;
2328
+ };
2329
+ /** @description code_factory/unauthorized */
2330
+ 401: {
2331
+ headers: {
2332
+ [name: string]: unknown;
2333
+ };
2334
+ content?: never;
2335
+ };
2336
+ };
2337
+ };
2338
+ CallActionEndpoint_call: {
2339
+ parameters: {
2340
+ query?: never;
2341
+ header?: never;
2342
+ path: {
2343
+ id: string;
2344
+ };
2345
+ cookie?: never;
2346
+ };
2347
+ requestBody: {
2348
+ content: {
2349
+ "application/json": components["schemas"]["CallActionRequest"];
2350
+ };
2351
+ };
2352
+ responses: {
2353
+ /** @description the action's result, run by the server with its own key */
2354
+ 200: {
2355
+ headers: {
2356
+ [name: string]: unknown;
2357
+ };
2358
+ content: {
2359
+ "application/json": components["schemas"]["CallActionResponse_Output"];
2360
+ };
2361
+ };
2362
+ /** @description code_factory/invalid_input, code_factory/unknown_action */
2363
+ 400: {
2364
+ headers: {
2365
+ [name: string]: unknown;
2366
+ };
2367
+ content?: never;
2368
+ };
2369
+ /** @description code_factory/unauthorized */
2370
+ 401: {
2371
+ headers: {
2372
+ [name: string]: unknown;
2373
+ };
2374
+ content?: never;
2375
+ };
2376
+ /** @description code_factory/lease_mismatch */
2377
+ 403: {
2378
+ headers: {
2379
+ [name: string]: unknown;
2380
+ };
2381
+ content?: never;
2382
+ };
2383
+ /** @description code_factory/lease_expired, code_factory/unit_cancelled */
2384
+ 409: {
2385
+ headers: {
2386
+ [name: string]: unknown;
2387
+ };
2388
+ content?: never;
2389
+ };
2390
+ /** @description code_factory/plugin_action_failed */
2391
+ 502: {
2392
+ headers: {
2393
+ [name: string]: unknown;
2394
+ };
2395
+ content?: never;
2396
+ };
2397
+ };
2398
+ };
2399
+ ClaimKeyEndpoint_claim: {
2400
+ parameters: {
2401
+ query?: never;
2402
+ header?: never;
2403
+ path: {
2404
+ id: string;
2405
+ };
2406
+ cookie?: never;
2407
+ };
2408
+ requestBody: {
2409
+ content: {
2410
+ "application/json": components["schemas"]["ClaimKeyRequest"];
2411
+ };
2412
+ };
2413
+ responses: {
2414
+ /** @description the key, and whether this call added it to the unit's run */
2415
+ 200: {
2416
+ headers: {
2417
+ [name: string]: unknown;
2418
+ };
2419
+ content: {
2420
+ "application/json": components["schemas"]["ClaimKeyResponse_Output"];
2421
+ };
2422
+ };
2423
+ /** @description code_factory/invalid_input */
2424
+ 400: {
2425
+ headers: {
2426
+ [name: string]: unknown;
2427
+ };
2428
+ content?: never;
2429
+ };
2430
+ /** @description code_factory/unauthorized */
2431
+ 401: {
2432
+ headers: {
2433
+ [name: string]: unknown;
2434
+ };
2435
+ content?: never;
2436
+ };
2437
+ /** @description code_factory/lease_mismatch */
2438
+ 403: {
2439
+ headers: {
2440
+ [name: string]: unknown;
2441
+ };
2442
+ content?: never;
2443
+ };
2444
+ /** @description code_factory/lease_expired, code_factory/unit_cancelled, code_factory/key_taken */
2445
+ 409: {
2446
+ headers: {
2447
+ [name: string]: unknown;
2448
+ };
2449
+ content?: never;
2450
+ };
2451
+ };
2452
+ };
2453
+ SetRunMetaEndpoint_set: {
2454
+ parameters: {
2455
+ query?: never;
2456
+ header?: never;
2457
+ path: {
2458
+ id: string;
2459
+ };
2460
+ cookie?: never;
2461
+ };
2462
+ requestBody: {
2463
+ content: {
2464
+ "application/json": components["schemas"]["SetRunMetaRequest"];
2465
+ };
2466
+ };
2467
+ responses: {
2468
+ /** @description the run's title and links after the call, and the links it added */
2469
+ 200: {
2470
+ headers: {
2471
+ [name: string]: unknown;
2472
+ };
2473
+ content: {
2474
+ "application/json": components["schemas"]["SetRunMetaResponse_Output"];
2475
+ };
2476
+ };
2477
+ /** @description code_factory/invalid_input */
2478
+ 400: {
2479
+ headers: {
2480
+ [name: string]: unknown;
2481
+ };
2482
+ content?: never;
2483
+ };
2484
+ /** @description code_factory/unauthorized */
2485
+ 401: {
2486
+ headers: {
2487
+ [name: string]: unknown;
2488
+ };
2489
+ content?: never;
2490
+ };
2491
+ /** @description code_factory/lease_mismatch */
2492
+ 403: {
2493
+ headers: {
2494
+ [name: string]: unknown;
2495
+ };
2496
+ content?: never;
2497
+ };
2498
+ /** @description code_factory/lease_expired, code_factory/unit_cancelled */
2499
+ 409: {
2500
+ headers: {
2501
+ [name: string]: unknown;
2502
+ };
2503
+ content?: never;
2504
+ };
2505
+ };
2506
+ };
2507
+ ListRunsEndpoint_list: {
2508
+ parameters: {
2509
+ query?: {
2510
+ workflow?: string;
2511
+ status?: "running" | "paused" | "waiting" | "queued" | "succeeded" | "failed" | "aborted";
2512
+ limit?: string;
2513
+ };
2514
+ header?: never;
2515
+ path?: never;
2516
+ cookie?: never;
2517
+ };
2518
+ requestBody?: never;
2519
+ responses: {
2520
+ /** @description newest first */
2521
+ 200: {
2522
+ headers: {
2523
+ [name: string]: unknown;
2524
+ };
2525
+ content: {
2526
+ "application/json": components["schemas"]["RunListResponse_Output"];
2527
+ };
2528
+ };
2529
+ /** @description code_factory/invalid_input */
2530
+ 400: {
2531
+ headers: {
2532
+ [name: string]: unknown;
2533
+ };
2534
+ content?: never;
2535
+ };
2536
+ };
2537
+ };
2538
+ DispatchRunEndpoint_dispatch: {
2539
+ parameters: {
2540
+ query?: never;
2541
+ header?: never;
2542
+ path?: never;
2543
+ cookie?: never;
2544
+ };
2545
+ requestBody: {
2546
+ content: {
2547
+ "application/json": components["schemas"]["DispatchRunRequest"];
2548
+ };
2549
+ };
2550
+ responses: {
2551
+ /** @description run created */
2552
+ 201: {
2553
+ headers: {
2554
+ [name: string]: unknown;
2555
+ };
2556
+ content: {
2557
+ "application/json": components["schemas"]["DispatchedRunResponse_Output"];
2558
+ };
2559
+ };
2560
+ /** @description code_factory/invalid_input */
2561
+ 400: {
2562
+ headers: {
2563
+ [name: string]: unknown;
2564
+ };
2565
+ content?: never;
2566
+ };
2567
+ /** @description code_factory/manual_not_allowed */
2568
+ 403: {
2569
+ headers: {
2570
+ [name: string]: unknown;
2571
+ };
2572
+ content?: never;
2573
+ };
2574
+ /** @description code_factory/workflow_not_found */
2575
+ 404: {
2576
+ headers: {
2577
+ [name: string]: unknown;
2578
+ };
2579
+ content?: never;
2580
+ };
2581
+ /** @description code_factory/active_run */
2582
+ 409: {
2583
+ headers: {
2584
+ [name: string]: unknown;
2585
+ };
2586
+ content?: never;
2587
+ };
2588
+ };
2589
+ };
2590
+ GetRunEndpoint_get: {
2591
+ parameters: {
2592
+ query?: never;
2593
+ header?: never;
2594
+ path: {
2595
+ id: string;
2596
+ };
2597
+ cookie?: never;
2598
+ };
2599
+ requestBody?: never;
2600
+ responses: {
2601
+ /** @description the run */
2602
+ 200: {
2603
+ headers: {
2604
+ [name: string]: unknown;
2605
+ };
2606
+ content: {
2607
+ "application/json": components["schemas"]["RunInfo_Output"];
2608
+ };
2609
+ };
2610
+ /** @description code_factory/run_not_found */
2611
+ 404: {
2612
+ headers: {
2613
+ [name: string]: unknown;
2614
+ };
2615
+ content?: never;
2616
+ };
2617
+ };
2618
+ };
2619
+ RunEventsEndpoint_list: {
2620
+ parameters: {
2621
+ query?: {
2622
+ /** @description only events with a greater seq */
2623
+ after?: string;
2624
+ };
2625
+ header?: never;
2626
+ path: {
2627
+ id: string;
2628
+ };
2629
+ cookie?: never;
2630
+ };
2631
+ requestBody?: never;
2632
+ responses: {
2633
+ /** @description the run's events in seq order */
2634
+ 200: {
2635
+ headers: {
2636
+ [name: string]: unknown;
2637
+ };
2638
+ content: {
2639
+ "application/json": components["schemas"]["RunEventListResponse_Output"];
2640
+ };
2641
+ };
2642
+ /** @description code_factory/invalid_input */
2643
+ 400: {
2644
+ headers: {
2645
+ [name: string]: unknown;
2646
+ };
2647
+ content?: never;
2648
+ };
2649
+ /** @description code_factory/run_not_found */
2650
+ 404: {
2651
+ headers: {
2652
+ [name: string]: unknown;
2653
+ };
2654
+ content?: never;
2655
+ };
2656
+ };
2657
+ };
2658
+ RunControlsEndpoint_pause: {
2659
+ parameters: {
2660
+ query?: never;
2661
+ header?: never;
2662
+ path: {
2663
+ id: string;
2664
+ };
2665
+ cookie?: never;
2666
+ };
2667
+ requestBody: {
2668
+ content: {
2669
+ "application/json": components["schemas"]["RunControlRequest"];
2670
+ };
2671
+ };
2672
+ responses: {
2673
+ /** @description the run, paused */
2674
+ 200: {
2675
+ headers: {
2676
+ [name: string]: unknown;
2677
+ };
2678
+ content: {
2679
+ "application/json": components["schemas"]["RunControlResponse_Output"];
2680
+ };
2681
+ };
2682
+ /** @description code_factory/invalid_input */
2683
+ 400: {
2684
+ headers: {
2685
+ [name: string]: unknown;
2686
+ };
2687
+ content?: never;
2688
+ };
2689
+ /** @description code_factory/run_not_found */
2690
+ 404: {
2691
+ headers: {
2692
+ [name: string]: unknown;
2693
+ };
2694
+ content?: never;
2695
+ };
2696
+ /** @description code_factory/run_ended */
2697
+ 409: {
2698
+ headers: {
2699
+ [name: string]: unknown;
2700
+ };
2701
+ content?: never;
2702
+ };
2703
+ };
2704
+ };
2705
+ RunControlsEndpoint_resume: {
2706
+ parameters: {
2707
+ query?: never;
2708
+ header?: never;
2709
+ path: {
2710
+ id: string;
2711
+ };
2712
+ cookie?: never;
2713
+ };
2714
+ requestBody?: never;
2715
+ responses: {
2716
+ /** @description the run, resumed */
2717
+ 200: {
2718
+ headers: {
2719
+ [name: string]: unknown;
2720
+ };
2721
+ content: {
2722
+ "application/json": components["schemas"]["RunControlResponse_Output"];
2723
+ };
2724
+ };
2725
+ /** @description code_factory/run_not_found */
2726
+ 404: {
2727
+ headers: {
2728
+ [name: string]: unknown;
2729
+ };
2730
+ content?: never;
2731
+ };
2732
+ /** @description code_factory/run_ended */
2733
+ 409: {
2734
+ headers: {
2735
+ [name: string]: unknown;
2736
+ };
2737
+ content?: never;
2738
+ };
2739
+ };
2740
+ };
2741
+ RunControlsEndpoint_stop: {
2742
+ parameters: {
2743
+ query?: never;
2744
+ header?: never;
2745
+ path: {
2746
+ id: string;
2747
+ };
2748
+ cookie?: never;
2749
+ };
2750
+ requestBody: {
2751
+ content: {
2752
+ "application/json": components["schemas"]["RunControlRequest"];
2753
+ };
2754
+ };
2755
+ responses: {
2756
+ /** @description the run, aborted */
2757
+ 200: {
2758
+ headers: {
2759
+ [name: string]: unknown;
2760
+ };
2761
+ content: {
2762
+ "application/json": components["schemas"]["RunControlResponse_Output"];
2763
+ };
2764
+ };
2765
+ /** @description code_factory/invalid_input */
2766
+ 400: {
2767
+ headers: {
2768
+ [name: string]: unknown;
2769
+ };
2770
+ content?: never;
2771
+ };
2772
+ /** @description code_factory/run_not_found */
2773
+ 404: {
2774
+ headers: {
2775
+ [name: string]: unknown;
2776
+ };
2777
+ content?: never;
2778
+ };
2779
+ /** @description code_factory/run_ended */
2780
+ 409: {
2781
+ headers: {
2782
+ [name: string]: unknown;
2783
+ };
2784
+ content?: never;
2785
+ };
2786
+ };
2787
+ };
2788
+ ScopeControlsEndpoint_list: {
2789
+ parameters: {
2790
+ query?: never;
2791
+ header?: never;
2792
+ path?: never;
2793
+ cookie?: never;
2794
+ };
2795
+ requestBody?: never;
2796
+ responses: {
2797
+ /** @description the factory pause and each paused workflow */
2798
+ 200: {
2799
+ headers: {
2800
+ [name: string]: unknown;
2801
+ };
2802
+ content: {
2803
+ "application/json": components["schemas"]["Controls_Output"];
2804
+ };
2805
+ };
2806
+ };
2807
+ };
2808
+ ScopeControlsEndpoint_pauseFactory: {
2809
+ parameters: {
2810
+ query?: never;
2811
+ header?: never;
2812
+ path?: never;
2813
+ cookie?: never;
2814
+ };
2815
+ requestBody: {
2816
+ content: {
2817
+ "application/json": components["schemas"]["ScopeControlRequest"];
2818
+ };
2819
+ };
2820
+ responses: {
2821
+ /** @description the factory, paused */
2822
+ 200: {
2823
+ headers: {
2824
+ [name: string]: unknown;
2825
+ };
2826
+ content: {
2827
+ "application/json": components["schemas"]["ScopeControl_Output"];
2828
+ };
2829
+ };
2830
+ /** @description code_factory/invalid_input */
2831
+ 400: {
2832
+ headers: {
2833
+ [name: string]: unknown;
2834
+ };
2835
+ content?: never;
2836
+ };
2837
+ };
2838
+ };
2839
+ ScopeControlsEndpoint_resumeFactory: {
2840
+ parameters: {
2841
+ query?: never;
2842
+ header?: never;
2843
+ path?: never;
2844
+ cookie?: never;
2845
+ };
2846
+ requestBody?: never;
2847
+ responses: {
2848
+ /** @description the factory, resumed */
2849
+ 200: {
2850
+ headers: {
2851
+ [name: string]: unknown;
2852
+ };
2853
+ content: {
2854
+ "application/json": components["schemas"]["ScopeControl_Output"];
2855
+ };
2856
+ };
2857
+ };
2858
+ };
2859
+ ScopeControlsEndpoint_pauseWorkflow: {
2860
+ parameters: {
2861
+ query?: never;
2862
+ header?: never;
2863
+ path: {
2864
+ id: string;
2865
+ };
2866
+ cookie?: never;
2867
+ };
2868
+ requestBody: {
2869
+ content: {
2870
+ "application/json": components["schemas"]["ScopeControlRequest"];
2871
+ };
2872
+ };
2873
+ responses: {
2874
+ /** @description the workflow, every version of it, paused */
2875
+ 200: {
2876
+ headers: {
2877
+ [name: string]: unknown;
2878
+ };
2879
+ content: {
2880
+ "application/json": components["schemas"]["ScopeControl_Output"];
2881
+ };
2882
+ };
2883
+ /** @description code_factory/invalid_input */
2884
+ 400: {
2885
+ headers: {
2886
+ [name: string]: unknown;
2887
+ };
2888
+ content?: never;
2889
+ };
2890
+ /** @description code_factory/workflow_not_found */
2891
+ 404: {
2892
+ headers: {
2893
+ [name: string]: unknown;
2894
+ };
2895
+ content?: never;
2896
+ };
2897
+ };
2898
+ };
2899
+ ScopeControlsEndpoint_resumeWorkflow: {
2900
+ parameters: {
2901
+ query?: never;
2902
+ header?: never;
2903
+ path: {
2904
+ id: string;
2905
+ };
2906
+ cookie?: never;
2907
+ };
2908
+ requestBody?: never;
2909
+ responses: {
2910
+ /** @description the workflow, resumed */
2911
+ 200: {
2912
+ headers: {
2913
+ [name: string]: unknown;
2914
+ };
2915
+ content: {
2916
+ "application/json": components["schemas"]["ScopeControl_Output"];
2917
+ };
2918
+ };
2919
+ /** @description code_factory/workflow_not_found */
2920
+ 404: {
2921
+ headers: {
2922
+ [name: string]: unknown;
2923
+ };
2924
+ content?: never;
2925
+ };
2926
+ };
2927
+ };
2928
+ GetInterventionEndpoint_get: {
2929
+ parameters: {
2930
+ query?: never;
2931
+ header?: never;
2932
+ path: {
2933
+ id: string;
2934
+ };
2935
+ cookie?: never;
2936
+ };
2937
+ requestBody?: never;
2938
+ responses: {
2939
+ /** @description the intervention */
2940
+ 200: {
2941
+ headers: {
2942
+ [name: string]: unknown;
2943
+ };
2944
+ content: {
2945
+ "application/json": components["schemas"]["InterventionInfo_Output"];
2946
+ };
2947
+ };
2948
+ /** @description code_factory/intervention_not_found */
2949
+ 404: {
2950
+ headers: {
2951
+ [name: string]: unknown;
2952
+ };
2953
+ content?: never;
2954
+ };
2955
+ };
2956
+ };
2957
+ ListInterventionsEndpoint_list: {
2958
+ parameters: {
2959
+ query?: {
2960
+ run?: string;
2961
+ /** @description default `open` */
2962
+ status?: "open" | "answered" | "voided" | "all";
2963
+ };
2964
+ header?: never;
2965
+ path?: never;
2966
+ cookie?: never;
2967
+ };
2968
+ requestBody?: never;
2969
+ responses: {
2970
+ /** @description oldest opened first */
2971
+ 200: {
2972
+ headers: {
2973
+ [name: string]: unknown;
2974
+ };
2975
+ content: {
2976
+ "application/json": components["schemas"]["InterventionListResponse_Output"];
2977
+ };
2978
+ };
2979
+ /** @description code_factory/invalid_input */
2980
+ 400: {
2981
+ headers: {
2982
+ [name: string]: unknown;
2983
+ };
2984
+ content?: never;
2985
+ };
2986
+ };
2987
+ };
2988
+ AnswerInterventionEndpoint_answer: {
2989
+ parameters: {
2990
+ query?: never;
2991
+ header?: never;
2992
+ path: {
2993
+ id: string;
2994
+ };
2995
+ cookie?: never;
2996
+ };
2997
+ requestBody: {
2998
+ content: {
2999
+ "application/json": components["schemas"]["AnswerRequest"];
3000
+ };
3001
+ };
3002
+ responses: {
3003
+ /** @description answered */
3004
+ 200: {
3005
+ headers: {
3006
+ [name: string]: unknown;
3007
+ };
3008
+ content: {
3009
+ "application/json": components["schemas"]["AnswerResultResponse_Output"];
3010
+ };
3011
+ };
3012
+ /** @description code_factory/invalid_input */
3013
+ 400: {
3014
+ headers: {
3015
+ [name: string]: unknown;
3016
+ };
3017
+ content?: never;
3018
+ };
3019
+ /** @description code_factory/intervention_not_found */
3020
+ 404: {
3021
+ headers: {
3022
+ [name: string]: unknown;
3023
+ };
3024
+ content?: never;
3025
+ };
3026
+ /** @description code_factory/intervention_closed */
3027
+ 409: {
3028
+ headers: {
3029
+ [name: string]: unknown;
3030
+ };
3031
+ content?: never;
3032
+ };
3033
+ };
3034
+ };
3035
+ CheckWorkspacesEndpoint_check: {
3036
+ parameters: {
3037
+ query?: never;
3038
+ header?: never;
3039
+ path?: never;
3040
+ cookie?: never;
3041
+ };
3042
+ requestBody: {
3043
+ content: {
3044
+ "application/json": components["schemas"]["CheckWorkspacesRequest"];
3045
+ };
3046
+ };
3047
+ responses: {
3048
+ /** @description each run's status, so the worker can delete the folders of ended runs */
3049
+ 200: {
3050
+ headers: {
3051
+ [name: string]: unknown;
3052
+ };
3053
+ content: {
3054
+ "application/json": components["schemas"]["CheckWorkspacesResponse_Output"];
3055
+ };
3056
+ };
3057
+ /** @description code_factory/invalid_input: 1 to 500 run ids of 1 to 200 chars */
3058
+ 400: {
3059
+ headers: {
3060
+ [name: string]: unknown;
3061
+ };
3062
+ content?: never;
3063
+ };
3064
+ /** @description code_factory/unauthorized */
3065
+ 401: {
3066
+ headers: {
3067
+ [name: string]: unknown;
3068
+ };
3069
+ content?: never;
3070
+ };
3071
+ };
3072
+ };
3073
+ ListPluginsEndpoint_list: {
3074
+ parameters: {
3075
+ query?: never;
3076
+ header?: never;
3077
+ path?: never;
3078
+ cookie?: never;
3079
+ };
3080
+ requestBody?: never;
3081
+ responses: {
3082
+ /** @description each plugin instance, its last check on the server and the workflows bound to it */
3083
+ 200: {
3084
+ headers: {
3085
+ [name: string]: unknown;
3086
+ };
3087
+ content: {
3088
+ "application/json": components["schemas"]["PluginListResponse_Output"];
3089
+ };
3090
+ };
3091
+ };
3092
+ };
3093
+ ListIntegrationsEndpoint_list: {
3094
+ parameters: {
3095
+ query?: never;
3096
+ header?: never;
3097
+ path?: never;
3098
+ cookie?: never;
3099
+ };
3100
+ requestBody?: never;
3101
+ responses: {
3102
+ /** @description each plugin this server ships, with its instances, their last check and bound workflows */
3103
+ 200: {
3104
+ headers: {
3105
+ [name: string]: unknown;
3106
+ };
3107
+ content: {
3108
+ "application/json": components["schemas"]["IntegrationListResponse_Output"];
3109
+ };
3110
+ };
3111
+ };
3112
+ };
3113
+ CreateInstanceEndpoint_create: {
3114
+ parameters: {
3115
+ query?: never;
3116
+ header?: never;
3117
+ path?: never;
3118
+ cookie?: never;
3119
+ };
3120
+ requestBody: {
3121
+ content: {
3122
+ "application/json": components["schemas"]["CreateInstanceRequest"];
3123
+ };
3124
+ };
3125
+ responses: {
3126
+ /** @description the instance, as listed, with its webhook URL */
3127
+ 201: {
3128
+ headers: {
3129
+ [name: string]: unknown;
3130
+ };
3131
+ content: {
3132
+ "application/json": components["schemas"]["IntegrationInstanceInfo_Output"];
3133
+ };
3134
+ };
3135
+ /** @description code_factory/invalid_input */
3136
+ 400: {
3137
+ headers: {
3138
+ [name: string]: unknown;
3139
+ };
3140
+ content?: never;
3141
+ };
3142
+ /** @description code_factory/instance_exists */
3143
+ 409: {
3144
+ headers: {
3145
+ [name: string]: unknown;
3146
+ };
3147
+ content?: never;
3148
+ };
3149
+ /** @description code_factory/github_key_rejected, code_factory/installation_not_found, code_factory/linear_key_rejected, code_factory/linear_team_not_found */
3150
+ 422: {
3151
+ headers: {
3152
+ [name: string]: unknown;
3153
+ };
3154
+ content?: never;
3155
+ };
3156
+ /** @description code_factory/plugin_unavailable */
3157
+ 502: {
3158
+ headers: {
3159
+ [name: string]: unknown;
3160
+ };
3161
+ content?: never;
3162
+ };
3163
+ };
3164
+ };
3165
+ ListInstanceLogEndpoint_list: {
3166
+ parameters: {
3167
+ query?: {
3168
+ kind?: ("delivery" | "event" | "routing" | "action" | "health") | ("delivery" | "event" | "routing" | "action" | "health")[];
3169
+ status?: "ok" | "error" | "ignored" | "duplicate";
3170
+ since?: string;
3171
+ until?: string;
3172
+ before?: string;
3173
+ limit?: string;
3174
+ };
3175
+ header?: never;
3176
+ path: {
3177
+ instance: string;
3178
+ };
3179
+ cookie?: never;
3180
+ };
3181
+ requestBody?: never;
3182
+ responses: {
3183
+ /** @description what passed through the instance, newest first; no body, secret or hook token */
3184
+ 200: {
3185
+ headers: {
3186
+ [name: string]: unknown;
3187
+ };
3188
+ content: {
3189
+ "application/json": components["schemas"]["InstanceLogResponse_Output"];
3190
+ };
3191
+ };
3192
+ /** @description code_factory/invalid_input */
3193
+ 400: {
3194
+ headers: {
3195
+ [name: string]: unknown;
3196
+ };
3197
+ content?: never;
3198
+ };
3199
+ /** @description code_factory/not_found: the factory has no such instance */
3200
+ 404: {
3201
+ headers: {
3202
+ [name: string]: unknown;
3203
+ };
3204
+ content?: never;
3205
+ };
3206
+ };
3207
+ };
3208
+ StartGithubSetupEndpoint_start: {
3209
+ parameters: {
3210
+ query?: never;
3211
+ header?: never;
3212
+ path?: never;
3213
+ cookie?: never;
3214
+ };
3215
+ requestBody: {
3216
+ content: {
3217
+ "application/json": components["schemas"]["StartGithubSetupRequest"];
3218
+ };
3219
+ };
3220
+ responses: {
3221
+ /** @description the manifest and where to post it */
3222
+ 200: {
3223
+ headers: {
3224
+ [name: string]: unknown;
3225
+ };
3226
+ content: {
3227
+ "application/json": components["schemas"]["StartGithubSetupResponse_Output"];
3228
+ };
3229
+ };
3230
+ /** @description code_factory/invalid_input */
3231
+ 400: {
3232
+ headers: {
3233
+ [name: string]: unknown;
3234
+ };
3235
+ content?: never;
3236
+ };
3237
+ /** @description code_factory/instance_exists, code_factory/public_url_missing */
3238
+ 409: {
3239
+ headers: {
3240
+ [name: string]: unknown;
3241
+ };
3242
+ content?: never;
3243
+ };
3244
+ };
3245
+ };
3246
+ GithubCallbackEndpoint_callback: {
3247
+ parameters: {
3248
+ query?: never;
3249
+ header?: never;
3250
+ path?: never;
3251
+ cookie?: never;
3252
+ };
3253
+ requestBody?: never;
3254
+ responses: {
3255
+ /** @description to the App's install page on GitHub */
3256
+ 302: {
3257
+ headers: {
3258
+ [name: string]: unknown;
3259
+ };
3260
+ content?: never;
3261
+ };
3262
+ /** @description page: code_factory/setup_expired */
3263
+ 400: {
3264
+ headers: {
3265
+ [name: string]: unknown;
3266
+ };
3267
+ content?: never;
3268
+ };
3269
+ /** @description page: code_factory/github_conversion_failed */
3270
+ 502: {
3271
+ headers: {
3272
+ [name: string]: unknown;
3273
+ };
3274
+ content?: never;
3275
+ };
3276
+ };
3277
+ };
3278
+ GithubInstalledEndpoint_installed: {
3279
+ parameters: {
3280
+ query?: never;
3281
+ header?: never;
3282
+ path?: never;
3283
+ cookie?: never;
3284
+ };
3285
+ requestBody?: never;
3286
+ responses: {
3287
+ /** @description to the instance's page on the dashboard */
3288
+ 302: {
3289
+ headers: {
3290
+ [name: string]: unknown;
3291
+ };
3292
+ content?: never;
3293
+ };
3294
+ /** @description page: code_factory/setup_expired */
3295
+ 400: {
3296
+ headers: {
3297
+ [name: string]: unknown;
3298
+ };
3299
+ content?: never;
3300
+ };
3301
+ /** @description page: code_factory/installation_not_found */
3302
+ 422: {
3303
+ headers: {
3304
+ [name: string]: unknown;
3305
+ };
3306
+ content?: never;
3307
+ };
3308
+ };
3309
+ };
3310
+ ListLinearTeamsEndpoint_teams: {
3311
+ parameters: {
3312
+ query?: never;
3313
+ header?: never;
3314
+ path?: never;
3315
+ cookie?: never;
3316
+ };
3317
+ requestBody: {
3318
+ content: {
3319
+ "application/json": components["schemas"]["ListLinearTeamsRequest"];
3320
+ };
3321
+ };
3322
+ responses: {
3323
+ /** @description the key's teams, by key */
3324
+ 200: {
3325
+ headers: {
3326
+ [name: string]: unknown;
3327
+ };
3328
+ content: {
3329
+ "application/json": components["schemas"]["ListLinearTeamsResponse_Output"];
3330
+ };
3331
+ };
3332
+ /** @description code_factory/linear_key_rejected */
3333
+ 422: {
3334
+ headers: {
3335
+ [name: string]: unknown;
3336
+ };
3337
+ content?: never;
3338
+ };
3339
+ /** @description code_factory/plugin_unavailable */
3340
+ 502: {
3341
+ headers: {
3342
+ [name: string]: unknown;
3343
+ };
3344
+ content?: never;
3345
+ };
3346
+ };
3347
+ };
3348
+ ListGithubRepositoriesEndpoint_list: {
3349
+ parameters: {
3350
+ query?: never;
3351
+ header?: never;
3352
+ path: {
3353
+ name: string;
3354
+ };
3355
+ cookie?: never;
3356
+ };
3357
+ requestBody?: never;
3358
+ responses: {
3359
+ /** @description the repositories the instance's installation reaches */
3360
+ 200: {
3361
+ headers: {
3362
+ [name: string]: unknown;
3363
+ };
3364
+ content: {
3365
+ "application/json": components["schemas"]["ListGithubRepositoriesResponse_Output"];
3366
+ };
3367
+ };
3368
+ /** @description code_factory/instance_not_found */
3369
+ 404: {
3370
+ headers: {
3371
+ [name: string]: unknown;
3372
+ };
3373
+ content?: never;
3374
+ };
3375
+ /** @description code_factory/instance_from_env */
3376
+ 409: {
3377
+ headers: {
3378
+ [name: string]: unknown;
3379
+ };
3380
+ content?: never;
3381
+ };
3382
+ /** @description code_factory/plugin_unavailable */
3383
+ 502: {
3384
+ headers: {
3385
+ [name: string]: unknown;
3386
+ };
3387
+ content?: never;
3388
+ };
3389
+ };
3390
+ };
3391
+ DeleteInstanceEndpoint_remove: {
3392
+ parameters: {
3393
+ query?: never;
3394
+ header?: never;
3395
+ path: {
3396
+ name: string;
3397
+ };
3398
+ cookie?: never;
3399
+ };
3400
+ requestBody?: never;
3401
+ responses: {
3402
+ /** @description the removed name, and what could not be cleaned up */
3403
+ 200: {
3404
+ headers: {
3405
+ [name: string]: unknown;
3406
+ };
3407
+ content: {
3408
+ "application/json": components["schemas"]["DeleteInstanceResponse_Output"];
3409
+ };
3410
+ };
3411
+ /** @description code_factory/instance_not_found */
3412
+ 404: {
3413
+ headers: {
3414
+ [name: string]: unknown;
3415
+ };
3416
+ content?: never;
3417
+ };
3418
+ /** @description code_factory/instance_in_use, code_factory/instance_from_env */
3419
+ 409: {
3420
+ headers: {
3421
+ [name: string]: unknown;
3422
+ };
3423
+ content?: never;
3424
+ };
3425
+ };
3426
+ };
3427
+ UpdateInstanceEndpoint_update: {
3428
+ parameters: {
3429
+ query?: never;
3430
+ header?: never;
3431
+ path: {
3432
+ name: string;
3433
+ };
3434
+ cookie?: never;
3435
+ };
3436
+ requestBody: {
3437
+ content: {
3438
+ "application/json": components["schemas"]["UpdateInstanceRequest"];
3439
+ };
3440
+ };
3441
+ responses: {
3442
+ /** @description the instance, as listed */
3443
+ 200: {
3444
+ headers: {
3445
+ [name: string]: unknown;
3446
+ };
3447
+ content: {
3448
+ "application/json": components["schemas"]["IntegrationInstanceInfo_Output"];
3449
+ };
3450
+ };
3451
+ /** @description code_factory/invalid_input */
3452
+ 400: {
3453
+ headers: {
3454
+ [name: string]: unknown;
3455
+ };
3456
+ content?: never;
3457
+ };
3458
+ /** @description code_factory/instance_not_found */
3459
+ 404: {
3460
+ headers: {
3461
+ [name: string]: unknown;
3462
+ };
3463
+ content?: never;
3464
+ };
3465
+ /** @description code_factory/instance_from_env */
3466
+ 409: {
3467
+ headers: {
3468
+ [name: string]: unknown;
3469
+ };
3470
+ content?: never;
3471
+ };
3472
+ /** @description code_factory/repo_not_in_installation */
3473
+ 422: {
3474
+ headers: {
3475
+ [name: string]: unknown;
3476
+ };
3477
+ content?: never;
3478
+ };
3479
+ /** @description code_factory/plugin_unavailable */
3480
+ 502: {
3481
+ headers: {
3482
+ [name: string]: unknown;
3483
+ };
3484
+ content?: never;
3485
+ };
3486
+ };
3487
+ };
3488
+ ServerHealthEndpoint_health: {
3489
+ parameters: {
3490
+ query?: never;
3491
+ header?: never;
3492
+ path?: never;
3493
+ cookie?: never;
3494
+ };
3495
+ requestBody?: never;
3496
+ responses: {
3497
+ /** @description the process answers */
3498
+ 200: {
3499
+ headers: {
3500
+ [name: string]: unknown;
3501
+ };
3502
+ content: {
3503
+ "application/json": components["schemas"]["ServerHealth_Output"];
3504
+ };
3505
+ };
3506
+ };
3507
+ };
3508
+ ServerReadyEndpoint_ready: {
3509
+ parameters: {
3510
+ query?: never;
3511
+ header?: never;
3512
+ path?: never;
3513
+ cookie?: never;
3514
+ };
3515
+ requestBody?: never;
3516
+ responses: {
3517
+ /** @description Postgres answers and every shipped migration is applied */
3518
+ 200: {
3519
+ headers: {
3520
+ [name: string]: unknown;
3521
+ };
3522
+ content: {
3523
+ "application/json": components["schemas"]["ServerReady_Output"];
3524
+ };
3525
+ };
3526
+ /** @description the database is unreachable or a migration is pending */
3527
+ 503: {
3528
+ headers: {
3529
+ [name: string]: unknown;
3530
+ };
3531
+ content: {
3532
+ "application/json": components["schemas"]["ServerReady_Output"];
3533
+ };
3534
+ };
3535
+ };
3536
+ };
3537
+ ListAccountsEndpoint_list: {
3538
+ parameters: {
3539
+ query?: never;
3540
+ header?: never;
3541
+ path?: never;
3542
+ cookie?: never;
3543
+ };
3544
+ requestBody?: never;
3545
+ responses: {
3546
+ /** @description every agent account, never its secret */
3547
+ 200: {
3548
+ headers: {
3549
+ [name: string]: unknown;
3550
+ };
3551
+ content: {
3552
+ "application/json": components["schemas"]["AgentAccountListResponse_Output"];
3553
+ };
3554
+ };
3555
+ };
3556
+ };
3557
+ CreateAccountEndpoint_create: {
3558
+ parameters: {
3559
+ query?: never;
3560
+ header?: never;
3561
+ path?: never;
3562
+ cookie?: never;
3563
+ };
3564
+ requestBody: {
3565
+ content: {
3566
+ "application/json": components["schemas"]["CreateAccountRequest"];
3567
+ };
3568
+ };
3569
+ responses: {
3570
+ /** @description the account, without its secret */
3571
+ 201: {
3572
+ headers: {
3573
+ [name: string]: unknown;
3574
+ };
3575
+ content: {
3576
+ "application/json": components["schemas"]["AgentAccountView_Output"];
3577
+ };
3578
+ };
3579
+ /** @description code_factory/invalid_input, code_factory/agent_account_rejected */
3580
+ 400: {
3581
+ headers: {
3582
+ [name: string]: unknown;
3583
+ };
3584
+ content?: never;
3585
+ };
3586
+ /** @description code_factory/agent_account_exists */
3587
+ 409: {
3588
+ headers: {
3589
+ [name: string]: unknown;
3590
+ };
3591
+ content?: never;
3592
+ };
3593
+ /** @description code_factory/agent_account_check_failed */
3594
+ 502: {
3595
+ headers: {
3596
+ [name: string]: unknown;
3597
+ };
3598
+ content?: never;
3599
+ };
3600
+ /** @description code_factory/secrets_key_missing */
3601
+ 503: {
3602
+ headers: {
3603
+ [name: string]: unknown;
3604
+ };
3605
+ content?: never;
3606
+ };
3607
+ };
3608
+ };
3609
+ DeleteAccountEndpoint_remove: {
3610
+ parameters: {
3611
+ query?: never;
3612
+ header?: never;
3613
+ path: {
3614
+ name: string;
3615
+ };
3616
+ cookie?: never;
3617
+ };
3618
+ requestBody?: never;
3619
+ responses: {
3620
+ /** @description deleted, with its grants */
3621
+ 204: {
3622
+ headers: {
3623
+ [name: string]: unknown;
3624
+ };
3625
+ content?: never;
3626
+ };
3627
+ /** @description code_factory/not_found */
3628
+ 404: {
3629
+ headers: {
3630
+ [name: string]: unknown;
3631
+ };
3632
+ content?: never;
3633
+ };
3634
+ };
3635
+ };
3636
+ UpdateAccountEndpoint_update: {
3637
+ parameters: {
3638
+ query?: never;
3639
+ header?: never;
3640
+ path: {
3641
+ name: string;
3642
+ };
3643
+ cookie?: never;
3644
+ };
3645
+ requestBody: {
3646
+ content: {
3647
+ "application/json": components["schemas"]["UpdateAccountRequest"];
3648
+ };
3649
+ };
3650
+ responses: {
3651
+ /** @description the account as changed */
3652
+ 200: {
3653
+ headers: {
3654
+ [name: string]: unknown;
3655
+ };
3656
+ content: {
3657
+ "application/json": components["schemas"]["AgentAccountView_Output"];
3658
+ };
3659
+ };
3660
+ /** @description code_factory/invalid_input, code_factory/agent_account_rejected */
3661
+ 400: {
3662
+ headers: {
3663
+ [name: string]: unknown;
3664
+ };
3665
+ content?: never;
3666
+ };
3667
+ /** @description code_factory/not_found */
3668
+ 404: {
3669
+ headers: {
3670
+ [name: string]: unknown;
3671
+ };
3672
+ content?: never;
3673
+ };
3674
+ /** @description code_factory/agent_account_check_failed */
3675
+ 502: {
3676
+ headers: {
3677
+ [name: string]: unknown;
3678
+ };
3679
+ content?: never;
3680
+ };
3681
+ /** @description code_factory/secrets_key_missing */
3682
+ 503: {
3683
+ headers: {
3684
+ [name: string]: unknown;
3685
+ };
3686
+ content?: never;
3687
+ };
3688
+ };
3689
+ };
3690
+ AcquireAccountEndpoint_acquire: {
3691
+ parameters: {
3692
+ query?: never;
3693
+ header?: never;
3694
+ path: {
3695
+ id: string;
3696
+ };
3697
+ cookie?: never;
3698
+ };
3699
+ requestBody: {
3700
+ content: {
3701
+ "application/json": components["schemas"]["AcquireAccountRequest"];
3702
+ };
3703
+ };
3704
+ responses: {
3705
+ /** @description the grant, its account and the env the harness needs */
3706
+ 200: {
3707
+ headers: {
3708
+ [name: string]: unknown;
3709
+ };
3710
+ content: {
3711
+ "application/json": components["schemas"]["AcquireAccountResponse_Output"];
3712
+ };
3713
+ };
3714
+ /** @description no account is scoped to the unit's workflow or global: use the worker's own login */
3715
+ 204: {
3716
+ headers: {
3717
+ [name: string]: unknown;
3718
+ };
3719
+ content?: never;
3720
+ };
3721
+ /** @description code_factory/invalid_input */
3722
+ 400: {
3723
+ headers: {
3724
+ [name: string]: unknown;
3725
+ };
3726
+ content?: never;
3727
+ };
3728
+ /** @description code_factory/unauthorized */
3729
+ 401: {
3730
+ headers: {
3731
+ [name: string]: unknown;
3732
+ };
3733
+ content?: never;
3734
+ };
3735
+ /** @description code_factory/lease_mismatch */
3736
+ 403: {
3737
+ headers: {
3738
+ [name: string]: unknown;
3739
+ };
3740
+ content?: never;
3741
+ };
3742
+ /** @description code_factory/lease_expired, code_factory/unit_cancelled */
3743
+ 409: {
3744
+ headers: {
3745
+ [name: string]: unknown;
3746
+ };
3747
+ content?: never;
3748
+ };
3749
+ /** @description code_factory/agent_account_unavailable (with retryAt), code_factory/secrets_key_missing */
3750
+ 503: {
3751
+ headers: {
3752
+ [name: string]: unknown;
3753
+ };
3754
+ content?: never;
3755
+ };
3756
+ };
3757
+ };
3758
+ ReleaseAccountEndpoint_release: {
3759
+ parameters: {
3760
+ query?: never;
3761
+ header?: never;
3762
+ path: {
3763
+ id: string;
3764
+ grant: string;
3765
+ };
3766
+ cookie?: never;
3767
+ };
3768
+ requestBody: {
3769
+ content: {
3770
+ "application/json": components["schemas"]["ReleaseAccountRequest"];
3771
+ };
3772
+ };
3773
+ responses: {
3774
+ /** @description released; also for a grant already released or whose account was deleted */
3775
+ 204: {
3776
+ headers: {
3777
+ [name: string]: unknown;
3778
+ };
3779
+ content?: never;
3780
+ };
3781
+ /** @description code_factory/invalid_input */
3782
+ 400: {
3783
+ headers: {
3784
+ [name: string]: unknown;
3785
+ };
3786
+ content?: never;
3787
+ };
3788
+ /** @description code_factory/unauthorized */
3789
+ 401: {
3790
+ headers: {
3791
+ [name: string]: unknown;
3792
+ };
3793
+ content?: never;
3794
+ };
3795
+ /** @description code_factory/lease_mismatch */
3796
+ 403: {
3797
+ headers: {
3798
+ [name: string]: unknown;
3799
+ };
3800
+ content?: never;
3801
+ };
3802
+ };
3803
+ };
3804
+ }
3805
+ //# sourceMappingURL=schema.gen.d.ts.map