@boboddy/sdk 0.0.7-alpha

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,2538 @@
1
+ import { Elysia } from "elysia";
2
+ import type { AppContext } from "@boboddy/core/lib/di";
3
+ export declare const createLinearPipelineExecutionRoutes: (appContext: AppContext) => Elysia<"", {
4
+ decorator: {};
5
+ store: {};
6
+ derive: {};
7
+ resolve: {};
8
+ }, {
9
+ typebox: {};
10
+ error: {};
11
+ }, {
12
+ schema: {};
13
+ standaloneSchema: {};
14
+ macro: {};
15
+ macroFn: {};
16
+ parser: {};
17
+ response: {};
18
+ }, {
19
+ "linear-pipeline-executions": {
20
+ post: {
21
+ body: {
22
+ projectId: string & {
23
+ readonly __brand: "uuidv7";
24
+ };
25
+ linearPipelineDefinitionId: string & {
26
+ readonly __brand: "uuidv7";
27
+ };
28
+ inputJson?: import("@boboddy/core/common/contracts/json").AnyJsonValue | undefined;
29
+ };
30
+ params: {};
31
+ query: unknown;
32
+ headers: unknown;
33
+ response: {
34
+ 422: {
35
+ type: string;
36
+ title: string;
37
+ status: number;
38
+ detail?: string | undefined;
39
+ instance?: string | undefined;
40
+ code?: string | undefined;
41
+ errors?: {
42
+ path: string;
43
+ message: string;
44
+ summary?: string | undefined;
45
+ }[] | undefined;
46
+ };
47
+ 404: {
48
+ type: string;
49
+ title: string;
50
+ status: number;
51
+ detail?: string | undefined;
52
+ instance?: string | undefined;
53
+ code?: string | undefined;
54
+ errors?: {
55
+ path: string;
56
+ message: string;
57
+ summary?: string | undefined;
58
+ }[] | undefined;
59
+ };
60
+ 409: {
61
+ type: string;
62
+ title: string;
63
+ status: number;
64
+ detail?: string | undefined;
65
+ instance?: string | undefined;
66
+ code?: string | undefined;
67
+ errors?: {
68
+ path: string;
69
+ message: string;
70
+ summary?: string | undefined;
71
+ }[] | undefined;
72
+ };
73
+ 500: {
74
+ type: string;
75
+ title: string;
76
+ status: number;
77
+ detail?: string | undefined;
78
+ instance?: string | undefined;
79
+ code?: string | undefined;
80
+ errors?: {
81
+ path: string;
82
+ message: string;
83
+ summary?: string | undefined;
84
+ }[] | undefined;
85
+ };
86
+ 200: {
87
+ id: string & {
88
+ readonly __brand: "uuidv7";
89
+ };
90
+ projectId: string & {
91
+ readonly __brand: "uuidv7";
92
+ };
93
+ linearPipelineDefinitionId: string & {
94
+ readonly __brand: "uuidv7";
95
+ };
96
+ linearPipelineDefinitionVersion: number;
97
+ status: "needs_review" | "queued" | "running" | "succeeded" | "failed" | "cancelled" | "blocked";
98
+ currentStepKey: string | null;
99
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
100
+ stepRuns: {
101
+ id: string & {
102
+ readonly __brand: "uuidv7";
103
+ };
104
+ linearPipelineExecutionId: string & {
105
+ readonly __brand: "uuidv7";
106
+ };
107
+ linearPipelineStepDefinitionId: string & {
108
+ readonly __brand: "uuidv7";
109
+ };
110
+ stepDefinitionId: string & {
111
+ readonly __brand: "uuidv7";
112
+ };
113
+ stepDefinitionVersion: number;
114
+ stepKey: string;
115
+ position: number;
116
+ status: "needs_review" | "queued" | "running" | "cancelled" | "blocked" | "pending" | "satisfied" | "unsatisfied" | "skipped";
117
+ satisfactionStatus: "not_evaluated" | "satisfied_by_policy" | "satisfied_by_user" | "unsatisfied_by_policy";
118
+ selectedStepExecutionId: (string & {
119
+ readonly __brand: "uuidv7";
120
+ }) | null;
121
+ selectedStepExecutionResultId: (string & {
122
+ readonly __brand: "uuidv7";
123
+ }) | null;
124
+ acceptedByUserId: (string & {
125
+ readonly __brand: "uuidv7";
126
+ }) | null;
127
+ acceptedAt: string | null;
128
+ acceptanceReason: string | null;
129
+ attemptCount: number;
130
+ lastAttemptedAt: string | null;
131
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
132
+ outputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
133
+ attempts: {
134
+ id: string & {
135
+ readonly __brand: "uuidv7";
136
+ };
137
+ linearPipelineStepRunId: string & {
138
+ readonly __brand: "uuidv7";
139
+ };
140
+ stepExecutionId: string & {
141
+ readonly __brand: "uuidv7";
142
+ };
143
+ attemptNumber: number;
144
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
145
+ evaluationId: (string & {
146
+ readonly __brand: "uuidv7";
147
+ }) | null;
148
+ createdAt: string;
149
+ completedAt: string | null;
150
+ }[];
151
+ evaluations: {
152
+ id: string & {
153
+ readonly __brand: "uuidv7";
154
+ };
155
+ linearPipelineExecutionId: string & {
156
+ readonly __brand: "uuidv7";
157
+ };
158
+ linearPipelineStepRunId: string & {
159
+ readonly __brand: "uuidv7";
160
+ };
161
+ linearPipelineStepRunAttemptId: string & {
162
+ readonly __brand: "uuidv7";
163
+ };
164
+ stepExecutionId: string & {
165
+ readonly __brand: "uuidv7";
166
+ };
167
+ stepExecutionResultId: string & {
168
+ readonly __brand: "uuidv7";
169
+ };
170
+ stepExecutionResultStatus: "succeeded" | "failed" | null;
171
+ linearPipelineStepAdvancementPolicyDefinitionId: string & {
172
+ readonly __brand: "uuidv7";
173
+ };
174
+ factsSnapshotJson: import("@boboddy/core/common/contracts/json").AnyJsonObject;
175
+ ruleResultsJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
176
+ finalStatus: "pass" | "fail";
177
+ finalAction: "continue" | "block" | "needs_review" | "complete";
178
+ finalPayloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
179
+ createdAt: string;
180
+ }[];
181
+ createdAt: string;
182
+ updatedAt: string;
183
+ }[];
184
+ events: {
185
+ id: string & {
186
+ readonly __brand: "uuidv7";
187
+ };
188
+ linearPipelineExecutionId: string & {
189
+ readonly __brand: "uuidv7";
190
+ };
191
+ type: "pipeline_queued" | "pipeline_started" | "step_run_created" | "step_attempt_queued" | "step_attempt_started" | "step_attempt_succeeded" | "step_attempt_failed" | "step_evaluated" | "step_satisfied_by_policy" | "step_satisfied_by_user" | "step_unsatisfied_by_policy" | "step_retriggered" | "step_blocked" | "step_needs_review" | "pipeline_succeeded" | "pipeline_failed" | "pipeline_blocked" | "pipeline_needs_review" | "pipeline_cancelled";
192
+ payloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
193
+ createdAt: string;
194
+ }[];
195
+ startedAt: string | null;
196
+ completedAt: string | null;
197
+ createdAt: string;
198
+ updatedAt: string;
199
+ };
200
+ 403: {
201
+ type: string;
202
+ title: string;
203
+ status: number;
204
+ detail?: string | undefined;
205
+ instance?: string | undefined;
206
+ code?: string | undefined;
207
+ errors?: {
208
+ path: string;
209
+ message: string;
210
+ summary?: string | undefined;
211
+ }[] | undefined;
212
+ };
213
+ 400: {
214
+ type: string;
215
+ title: string;
216
+ status: number;
217
+ detail?: string | undefined;
218
+ instance?: string | undefined;
219
+ code?: string | undefined;
220
+ errors?: {
221
+ path: string;
222
+ message: string;
223
+ summary?: string | undefined;
224
+ }[] | undefined;
225
+ };
226
+ 401: {
227
+ type: string;
228
+ title: string;
229
+ status: number;
230
+ detail?: string | undefined;
231
+ instance?: string | undefined;
232
+ code?: string | undefined;
233
+ errors?: {
234
+ path: string;
235
+ message: string;
236
+ summary?: string | undefined;
237
+ }[] | undefined;
238
+ };
239
+ };
240
+ };
241
+ };
242
+ } & {
243
+ "linear-pipeline-executions": {
244
+ ":linearPipelineExecutionId": {
245
+ start: {
246
+ put: {
247
+ body: unknown;
248
+ params: {
249
+ linearPipelineExecutionId: string & {
250
+ readonly __brand: "uuidv7";
251
+ };
252
+ };
253
+ query: unknown;
254
+ headers: unknown;
255
+ response: {
256
+ 422: {
257
+ type: string;
258
+ title: string;
259
+ status: number;
260
+ detail?: string | undefined;
261
+ instance?: string | undefined;
262
+ code?: string | undefined;
263
+ errors?: {
264
+ path: string;
265
+ message: string;
266
+ summary?: string | undefined;
267
+ }[] | undefined;
268
+ };
269
+ 404: {
270
+ type: string;
271
+ title: string;
272
+ status: number;
273
+ detail?: string | undefined;
274
+ instance?: string | undefined;
275
+ code?: string | undefined;
276
+ errors?: {
277
+ path: string;
278
+ message: string;
279
+ summary?: string | undefined;
280
+ }[] | undefined;
281
+ };
282
+ 500: {
283
+ type: string;
284
+ title: string;
285
+ status: number;
286
+ detail?: string | undefined;
287
+ instance?: string | undefined;
288
+ code?: string | undefined;
289
+ errors?: {
290
+ path: string;
291
+ message: string;
292
+ summary?: string | undefined;
293
+ }[] | undefined;
294
+ };
295
+ 200: {
296
+ id: string & {
297
+ readonly __brand: "uuidv7";
298
+ };
299
+ projectId: string & {
300
+ readonly __brand: "uuidv7";
301
+ };
302
+ linearPipelineDefinitionId: string & {
303
+ readonly __brand: "uuidv7";
304
+ };
305
+ linearPipelineDefinitionVersion: number;
306
+ status: "needs_review" | "queued" | "running" | "succeeded" | "failed" | "cancelled" | "blocked";
307
+ currentStepKey: string | null;
308
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
309
+ stepRuns: {
310
+ id: string & {
311
+ readonly __brand: "uuidv7";
312
+ };
313
+ linearPipelineExecutionId: string & {
314
+ readonly __brand: "uuidv7";
315
+ };
316
+ linearPipelineStepDefinitionId: string & {
317
+ readonly __brand: "uuidv7";
318
+ };
319
+ stepDefinitionId: string & {
320
+ readonly __brand: "uuidv7";
321
+ };
322
+ stepDefinitionVersion: number;
323
+ stepKey: string;
324
+ position: number;
325
+ status: "needs_review" | "queued" | "running" | "cancelled" | "blocked" | "pending" | "satisfied" | "unsatisfied" | "skipped";
326
+ satisfactionStatus: "not_evaluated" | "satisfied_by_policy" | "satisfied_by_user" | "unsatisfied_by_policy";
327
+ selectedStepExecutionId: (string & {
328
+ readonly __brand: "uuidv7";
329
+ }) | null;
330
+ selectedStepExecutionResultId: (string & {
331
+ readonly __brand: "uuidv7";
332
+ }) | null;
333
+ acceptedByUserId: (string & {
334
+ readonly __brand: "uuidv7";
335
+ }) | null;
336
+ acceptedAt: string | null;
337
+ acceptanceReason: string | null;
338
+ attemptCount: number;
339
+ lastAttemptedAt: string | null;
340
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
341
+ outputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
342
+ attempts: {
343
+ id: string & {
344
+ readonly __brand: "uuidv7";
345
+ };
346
+ linearPipelineStepRunId: string & {
347
+ readonly __brand: "uuidv7";
348
+ };
349
+ stepExecutionId: string & {
350
+ readonly __brand: "uuidv7";
351
+ };
352
+ attemptNumber: number;
353
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
354
+ evaluationId: (string & {
355
+ readonly __brand: "uuidv7";
356
+ }) | null;
357
+ createdAt: string;
358
+ completedAt: string | null;
359
+ }[];
360
+ evaluations: {
361
+ id: string & {
362
+ readonly __brand: "uuidv7";
363
+ };
364
+ linearPipelineExecutionId: string & {
365
+ readonly __brand: "uuidv7";
366
+ };
367
+ linearPipelineStepRunId: string & {
368
+ readonly __brand: "uuidv7";
369
+ };
370
+ linearPipelineStepRunAttemptId: string & {
371
+ readonly __brand: "uuidv7";
372
+ };
373
+ stepExecutionId: string & {
374
+ readonly __brand: "uuidv7";
375
+ };
376
+ stepExecutionResultId: string & {
377
+ readonly __brand: "uuidv7";
378
+ };
379
+ stepExecutionResultStatus: "succeeded" | "failed" | null;
380
+ linearPipelineStepAdvancementPolicyDefinitionId: string & {
381
+ readonly __brand: "uuidv7";
382
+ };
383
+ factsSnapshotJson: import("@boboddy/core/common/contracts/json").AnyJsonObject;
384
+ ruleResultsJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
385
+ finalStatus: "pass" | "fail";
386
+ finalAction: "continue" | "block" | "needs_review" | "complete";
387
+ finalPayloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
388
+ createdAt: string;
389
+ }[];
390
+ createdAt: string;
391
+ updatedAt: string;
392
+ }[];
393
+ events: {
394
+ id: string & {
395
+ readonly __brand: "uuidv7";
396
+ };
397
+ linearPipelineExecutionId: string & {
398
+ readonly __brand: "uuidv7";
399
+ };
400
+ type: "pipeline_queued" | "pipeline_started" | "step_run_created" | "step_attempt_queued" | "step_attempt_started" | "step_attempt_succeeded" | "step_attempt_failed" | "step_evaluated" | "step_satisfied_by_policy" | "step_satisfied_by_user" | "step_unsatisfied_by_policy" | "step_retriggered" | "step_blocked" | "step_needs_review" | "pipeline_succeeded" | "pipeline_failed" | "pipeline_blocked" | "pipeline_needs_review" | "pipeline_cancelled";
401
+ payloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
402
+ createdAt: string;
403
+ }[];
404
+ startedAt: string | null;
405
+ completedAt: string | null;
406
+ createdAt: string;
407
+ updatedAt: string;
408
+ };
409
+ 403: {
410
+ type: string;
411
+ title: string;
412
+ status: number;
413
+ detail?: string | undefined;
414
+ instance?: string | undefined;
415
+ code?: string | undefined;
416
+ errors?: {
417
+ path: string;
418
+ message: string;
419
+ summary?: string | undefined;
420
+ }[] | undefined;
421
+ };
422
+ 401: {
423
+ type: string;
424
+ title: string;
425
+ status: number;
426
+ detail?: string | undefined;
427
+ instance?: string | undefined;
428
+ code?: string | undefined;
429
+ errors?: {
430
+ path: string;
431
+ message: string;
432
+ summary?: string | undefined;
433
+ }[] | undefined;
434
+ };
435
+ };
436
+ };
437
+ };
438
+ };
439
+ };
440
+ } & {
441
+ "linear-pipeline-executions": {
442
+ ":linearPipelineExecutionId": {
443
+ "step-runs": {
444
+ first: {
445
+ post: {
446
+ body: unknown;
447
+ params: {
448
+ linearPipelineExecutionId: string & {
449
+ readonly __brand: "uuidv7";
450
+ };
451
+ };
452
+ query: unknown;
453
+ headers: unknown;
454
+ response: {
455
+ 422: {
456
+ type: string;
457
+ title: string;
458
+ status: number;
459
+ detail?: string | undefined;
460
+ instance?: string | undefined;
461
+ code?: string | undefined;
462
+ errors?: {
463
+ path: string;
464
+ message: string;
465
+ summary?: string | undefined;
466
+ }[] | undefined;
467
+ };
468
+ 404: {
469
+ type: string;
470
+ title: string;
471
+ status: number;
472
+ detail?: string | undefined;
473
+ instance?: string | undefined;
474
+ code?: string | undefined;
475
+ errors?: {
476
+ path: string;
477
+ message: string;
478
+ summary?: string | undefined;
479
+ }[] | undefined;
480
+ };
481
+ 500: {
482
+ type: string;
483
+ title: string;
484
+ status: number;
485
+ detail?: string | undefined;
486
+ instance?: string | undefined;
487
+ code?: string | undefined;
488
+ errors?: {
489
+ path: string;
490
+ message: string;
491
+ summary?: string | undefined;
492
+ }[] | undefined;
493
+ };
494
+ 200: {
495
+ id: string & {
496
+ readonly __brand: "uuidv7";
497
+ };
498
+ projectId: string & {
499
+ readonly __brand: "uuidv7";
500
+ };
501
+ linearPipelineDefinitionId: string & {
502
+ readonly __brand: "uuidv7";
503
+ };
504
+ linearPipelineDefinitionVersion: number;
505
+ status: "needs_review" | "queued" | "running" | "succeeded" | "failed" | "cancelled" | "blocked";
506
+ currentStepKey: string | null;
507
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
508
+ stepRuns: {
509
+ id: string & {
510
+ readonly __brand: "uuidv7";
511
+ };
512
+ linearPipelineExecutionId: string & {
513
+ readonly __brand: "uuidv7";
514
+ };
515
+ linearPipelineStepDefinitionId: string & {
516
+ readonly __brand: "uuidv7";
517
+ };
518
+ stepDefinitionId: string & {
519
+ readonly __brand: "uuidv7";
520
+ };
521
+ stepDefinitionVersion: number;
522
+ stepKey: string;
523
+ position: number;
524
+ status: "needs_review" | "queued" | "running" | "cancelled" | "blocked" | "pending" | "satisfied" | "unsatisfied" | "skipped";
525
+ satisfactionStatus: "not_evaluated" | "satisfied_by_policy" | "satisfied_by_user" | "unsatisfied_by_policy";
526
+ selectedStepExecutionId: (string & {
527
+ readonly __brand: "uuidv7";
528
+ }) | null;
529
+ selectedStepExecutionResultId: (string & {
530
+ readonly __brand: "uuidv7";
531
+ }) | null;
532
+ acceptedByUserId: (string & {
533
+ readonly __brand: "uuidv7";
534
+ }) | null;
535
+ acceptedAt: string | null;
536
+ acceptanceReason: string | null;
537
+ attemptCount: number;
538
+ lastAttemptedAt: string | null;
539
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
540
+ outputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
541
+ attempts: {
542
+ id: string & {
543
+ readonly __brand: "uuidv7";
544
+ };
545
+ linearPipelineStepRunId: string & {
546
+ readonly __brand: "uuidv7";
547
+ };
548
+ stepExecutionId: string & {
549
+ readonly __brand: "uuidv7";
550
+ };
551
+ attemptNumber: number;
552
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
553
+ evaluationId: (string & {
554
+ readonly __brand: "uuidv7";
555
+ }) | null;
556
+ createdAt: string;
557
+ completedAt: string | null;
558
+ }[];
559
+ evaluations: {
560
+ id: string & {
561
+ readonly __brand: "uuidv7";
562
+ };
563
+ linearPipelineExecutionId: string & {
564
+ readonly __brand: "uuidv7";
565
+ };
566
+ linearPipelineStepRunId: string & {
567
+ readonly __brand: "uuidv7";
568
+ };
569
+ linearPipelineStepRunAttemptId: string & {
570
+ readonly __brand: "uuidv7";
571
+ };
572
+ stepExecutionId: string & {
573
+ readonly __brand: "uuidv7";
574
+ };
575
+ stepExecutionResultId: string & {
576
+ readonly __brand: "uuidv7";
577
+ };
578
+ stepExecutionResultStatus: "succeeded" | "failed" | null;
579
+ linearPipelineStepAdvancementPolicyDefinitionId: string & {
580
+ readonly __brand: "uuidv7";
581
+ };
582
+ factsSnapshotJson: import("@boboddy/core/common/contracts/json").AnyJsonObject;
583
+ ruleResultsJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
584
+ finalStatus: "pass" | "fail";
585
+ finalAction: "continue" | "block" | "needs_review" | "complete";
586
+ finalPayloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
587
+ createdAt: string;
588
+ }[];
589
+ createdAt: string;
590
+ updatedAt: string;
591
+ }[];
592
+ events: {
593
+ id: string & {
594
+ readonly __brand: "uuidv7";
595
+ };
596
+ linearPipelineExecutionId: string & {
597
+ readonly __brand: "uuidv7";
598
+ };
599
+ type: "pipeline_queued" | "pipeline_started" | "step_run_created" | "step_attempt_queued" | "step_attempt_started" | "step_attempt_succeeded" | "step_attempt_failed" | "step_evaluated" | "step_satisfied_by_policy" | "step_satisfied_by_user" | "step_unsatisfied_by_policy" | "step_retriggered" | "step_blocked" | "step_needs_review" | "pipeline_succeeded" | "pipeline_failed" | "pipeline_blocked" | "pipeline_needs_review" | "pipeline_cancelled";
600
+ payloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
601
+ createdAt: string;
602
+ }[];
603
+ startedAt: string | null;
604
+ completedAt: string | null;
605
+ createdAt: string;
606
+ updatedAt: string;
607
+ };
608
+ 403: {
609
+ type: string;
610
+ title: string;
611
+ status: number;
612
+ detail?: string | undefined;
613
+ instance?: string | undefined;
614
+ code?: string | undefined;
615
+ errors?: {
616
+ path: string;
617
+ message: string;
618
+ summary?: string | undefined;
619
+ }[] | undefined;
620
+ };
621
+ 401: {
622
+ type: string;
623
+ title: string;
624
+ status: number;
625
+ detail?: string | undefined;
626
+ instance?: string | undefined;
627
+ code?: string | undefined;
628
+ errors?: {
629
+ path: string;
630
+ message: string;
631
+ summary?: string | undefined;
632
+ }[] | undefined;
633
+ };
634
+ };
635
+ };
636
+ };
637
+ };
638
+ };
639
+ };
640
+ } & {
641
+ "linear-pipeline-executions": {
642
+ ":linearPipelineExecutionId": {
643
+ "step-runs": {
644
+ ":linearPipelineStepRunId": {
645
+ attempts: {
646
+ post: {
647
+ body: unknown;
648
+ params: {
649
+ linearPipelineExecutionId: string & {
650
+ readonly __brand: "uuidv7";
651
+ };
652
+ linearPipelineStepRunId: string & {
653
+ readonly __brand: "uuidv7";
654
+ };
655
+ };
656
+ query: unknown;
657
+ headers: unknown;
658
+ response: {
659
+ 422: {
660
+ type: string;
661
+ title: string;
662
+ status: number;
663
+ detail?: string | undefined;
664
+ instance?: string | undefined;
665
+ code?: string | undefined;
666
+ errors?: {
667
+ path: string;
668
+ message: string;
669
+ summary?: string | undefined;
670
+ }[] | undefined;
671
+ };
672
+ 404: {
673
+ type: string;
674
+ title: string;
675
+ status: number;
676
+ detail?: string | undefined;
677
+ instance?: string | undefined;
678
+ code?: string | undefined;
679
+ errors?: {
680
+ path: string;
681
+ message: string;
682
+ summary?: string | undefined;
683
+ }[] | undefined;
684
+ };
685
+ 500: {
686
+ type: string;
687
+ title: string;
688
+ status: number;
689
+ detail?: string | undefined;
690
+ instance?: string | undefined;
691
+ code?: string | undefined;
692
+ errors?: {
693
+ path: string;
694
+ message: string;
695
+ summary?: string | undefined;
696
+ }[] | undefined;
697
+ };
698
+ 200: {
699
+ id: string & {
700
+ readonly __brand: "uuidv7";
701
+ };
702
+ projectId: string & {
703
+ readonly __brand: "uuidv7";
704
+ };
705
+ linearPipelineDefinitionId: string & {
706
+ readonly __brand: "uuidv7";
707
+ };
708
+ linearPipelineDefinitionVersion: number;
709
+ status: "needs_review" | "queued" | "running" | "succeeded" | "failed" | "cancelled" | "blocked";
710
+ currentStepKey: string | null;
711
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
712
+ stepRuns: {
713
+ id: string & {
714
+ readonly __brand: "uuidv7";
715
+ };
716
+ linearPipelineExecutionId: string & {
717
+ readonly __brand: "uuidv7";
718
+ };
719
+ linearPipelineStepDefinitionId: string & {
720
+ readonly __brand: "uuidv7";
721
+ };
722
+ stepDefinitionId: string & {
723
+ readonly __brand: "uuidv7";
724
+ };
725
+ stepDefinitionVersion: number;
726
+ stepKey: string;
727
+ position: number;
728
+ status: "needs_review" | "queued" | "running" | "cancelled" | "blocked" | "pending" | "satisfied" | "unsatisfied" | "skipped";
729
+ satisfactionStatus: "not_evaluated" | "satisfied_by_policy" | "satisfied_by_user" | "unsatisfied_by_policy";
730
+ selectedStepExecutionId: (string & {
731
+ readonly __brand: "uuidv7";
732
+ }) | null;
733
+ selectedStepExecutionResultId: (string & {
734
+ readonly __brand: "uuidv7";
735
+ }) | null;
736
+ acceptedByUserId: (string & {
737
+ readonly __brand: "uuidv7";
738
+ }) | null;
739
+ acceptedAt: string | null;
740
+ acceptanceReason: string | null;
741
+ attemptCount: number;
742
+ lastAttemptedAt: string | null;
743
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
744
+ outputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
745
+ attempts: {
746
+ id: string & {
747
+ readonly __brand: "uuidv7";
748
+ };
749
+ linearPipelineStepRunId: string & {
750
+ readonly __brand: "uuidv7";
751
+ };
752
+ stepExecutionId: string & {
753
+ readonly __brand: "uuidv7";
754
+ };
755
+ attemptNumber: number;
756
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
757
+ evaluationId: (string & {
758
+ readonly __brand: "uuidv7";
759
+ }) | null;
760
+ createdAt: string;
761
+ completedAt: string | null;
762
+ }[];
763
+ evaluations: {
764
+ id: string & {
765
+ readonly __brand: "uuidv7";
766
+ };
767
+ linearPipelineExecutionId: string & {
768
+ readonly __brand: "uuidv7";
769
+ };
770
+ linearPipelineStepRunId: string & {
771
+ readonly __brand: "uuidv7";
772
+ };
773
+ linearPipelineStepRunAttemptId: string & {
774
+ readonly __brand: "uuidv7";
775
+ };
776
+ stepExecutionId: string & {
777
+ readonly __brand: "uuidv7";
778
+ };
779
+ stepExecutionResultId: string & {
780
+ readonly __brand: "uuidv7";
781
+ };
782
+ stepExecutionResultStatus: "succeeded" | "failed" | null;
783
+ linearPipelineStepAdvancementPolicyDefinitionId: string & {
784
+ readonly __brand: "uuidv7";
785
+ };
786
+ factsSnapshotJson: import("@boboddy/core/common/contracts/json").AnyJsonObject;
787
+ ruleResultsJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
788
+ finalStatus: "pass" | "fail";
789
+ finalAction: "continue" | "block" | "needs_review" | "complete";
790
+ finalPayloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
791
+ createdAt: string;
792
+ }[];
793
+ createdAt: string;
794
+ updatedAt: string;
795
+ }[];
796
+ events: {
797
+ id: string & {
798
+ readonly __brand: "uuidv7";
799
+ };
800
+ linearPipelineExecutionId: string & {
801
+ readonly __brand: "uuidv7";
802
+ };
803
+ type: "pipeline_queued" | "pipeline_started" | "step_run_created" | "step_attempt_queued" | "step_attempt_started" | "step_attempt_succeeded" | "step_attempt_failed" | "step_evaluated" | "step_satisfied_by_policy" | "step_satisfied_by_user" | "step_unsatisfied_by_policy" | "step_retriggered" | "step_blocked" | "step_needs_review" | "pipeline_succeeded" | "pipeline_failed" | "pipeline_blocked" | "pipeline_needs_review" | "pipeline_cancelled";
804
+ payloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
805
+ createdAt: string;
806
+ }[];
807
+ startedAt: string | null;
808
+ completedAt: string | null;
809
+ createdAt: string;
810
+ updatedAt: string;
811
+ };
812
+ 403: {
813
+ type: string;
814
+ title: string;
815
+ status: number;
816
+ detail?: string | undefined;
817
+ instance?: string | undefined;
818
+ code?: string | undefined;
819
+ errors?: {
820
+ path: string;
821
+ message: string;
822
+ summary?: string | undefined;
823
+ }[] | undefined;
824
+ };
825
+ 401: {
826
+ type: string;
827
+ title: string;
828
+ status: number;
829
+ detail?: string | undefined;
830
+ instance?: string | undefined;
831
+ code?: string | undefined;
832
+ errors?: {
833
+ path: string;
834
+ message: string;
835
+ summary?: string | undefined;
836
+ }[] | undefined;
837
+ };
838
+ };
839
+ };
840
+ };
841
+ };
842
+ };
843
+ };
844
+ };
845
+ } & {
846
+ "linear-pipeline-executions": {
847
+ ":linearPipelineExecutionId": {
848
+ "step-runs": {
849
+ ":linearPipelineStepRunId": {
850
+ attempts: {
851
+ ":linearPipelineStepRunAttemptId": {
852
+ running: {
853
+ put: {
854
+ body: unknown;
855
+ params: {
856
+ linearPipelineExecutionId: string & {
857
+ readonly __brand: "uuidv7";
858
+ };
859
+ linearPipelineStepRunId: string & {
860
+ readonly __brand: "uuidv7";
861
+ };
862
+ linearPipelineStepRunAttemptId: string & {
863
+ readonly __brand: "uuidv7";
864
+ };
865
+ };
866
+ query: unknown;
867
+ headers: unknown;
868
+ response: {
869
+ 422: {
870
+ type: string;
871
+ title: string;
872
+ status: number;
873
+ detail?: string | undefined;
874
+ instance?: string | undefined;
875
+ code?: string | undefined;
876
+ errors?: {
877
+ path: string;
878
+ message: string;
879
+ summary?: string | undefined;
880
+ }[] | undefined;
881
+ };
882
+ 404: {
883
+ type: string;
884
+ title: string;
885
+ status: number;
886
+ detail?: string | undefined;
887
+ instance?: string | undefined;
888
+ code?: string | undefined;
889
+ errors?: {
890
+ path: string;
891
+ message: string;
892
+ summary?: string | undefined;
893
+ }[] | undefined;
894
+ };
895
+ 500: {
896
+ type: string;
897
+ title: string;
898
+ status: number;
899
+ detail?: string | undefined;
900
+ instance?: string | undefined;
901
+ code?: string | undefined;
902
+ errors?: {
903
+ path: string;
904
+ message: string;
905
+ summary?: string | undefined;
906
+ }[] | undefined;
907
+ };
908
+ 200: {
909
+ id: string & {
910
+ readonly __brand: "uuidv7";
911
+ };
912
+ projectId: string & {
913
+ readonly __brand: "uuidv7";
914
+ };
915
+ linearPipelineDefinitionId: string & {
916
+ readonly __brand: "uuidv7";
917
+ };
918
+ linearPipelineDefinitionVersion: number;
919
+ status: "needs_review" | "queued" | "running" | "succeeded" | "failed" | "cancelled" | "blocked";
920
+ currentStepKey: string | null;
921
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
922
+ stepRuns: {
923
+ id: string & {
924
+ readonly __brand: "uuidv7";
925
+ };
926
+ linearPipelineExecutionId: string & {
927
+ readonly __brand: "uuidv7";
928
+ };
929
+ linearPipelineStepDefinitionId: string & {
930
+ readonly __brand: "uuidv7";
931
+ };
932
+ stepDefinitionId: string & {
933
+ readonly __brand: "uuidv7";
934
+ };
935
+ stepDefinitionVersion: number;
936
+ stepKey: string;
937
+ position: number;
938
+ status: "needs_review" | "queued" | "running" | "cancelled" | "blocked" | "pending" | "satisfied" | "unsatisfied" | "skipped";
939
+ satisfactionStatus: "not_evaluated" | "satisfied_by_policy" | "satisfied_by_user" | "unsatisfied_by_policy";
940
+ selectedStepExecutionId: (string & {
941
+ readonly __brand: "uuidv7";
942
+ }) | null;
943
+ selectedStepExecutionResultId: (string & {
944
+ readonly __brand: "uuidv7";
945
+ }) | null;
946
+ acceptedByUserId: (string & {
947
+ readonly __brand: "uuidv7";
948
+ }) | null;
949
+ acceptedAt: string | null;
950
+ acceptanceReason: string | null;
951
+ attemptCount: number;
952
+ lastAttemptedAt: string | null;
953
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
954
+ outputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
955
+ attempts: {
956
+ id: string & {
957
+ readonly __brand: "uuidv7";
958
+ };
959
+ linearPipelineStepRunId: string & {
960
+ readonly __brand: "uuidv7";
961
+ };
962
+ stepExecutionId: string & {
963
+ readonly __brand: "uuidv7";
964
+ };
965
+ attemptNumber: number;
966
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
967
+ evaluationId: (string & {
968
+ readonly __brand: "uuidv7";
969
+ }) | null;
970
+ createdAt: string;
971
+ completedAt: string | null;
972
+ }[];
973
+ evaluations: {
974
+ id: string & {
975
+ readonly __brand: "uuidv7";
976
+ };
977
+ linearPipelineExecutionId: string & {
978
+ readonly __brand: "uuidv7";
979
+ };
980
+ linearPipelineStepRunId: string & {
981
+ readonly __brand: "uuidv7";
982
+ };
983
+ linearPipelineStepRunAttemptId: string & {
984
+ readonly __brand: "uuidv7";
985
+ };
986
+ stepExecutionId: string & {
987
+ readonly __brand: "uuidv7";
988
+ };
989
+ stepExecutionResultId: string & {
990
+ readonly __brand: "uuidv7";
991
+ };
992
+ stepExecutionResultStatus: "succeeded" | "failed" | null;
993
+ linearPipelineStepAdvancementPolicyDefinitionId: string & {
994
+ readonly __brand: "uuidv7";
995
+ };
996
+ factsSnapshotJson: import("@boboddy/core/common/contracts/json").AnyJsonObject;
997
+ ruleResultsJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
998
+ finalStatus: "pass" | "fail";
999
+ finalAction: "continue" | "block" | "needs_review" | "complete";
1000
+ finalPayloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
1001
+ createdAt: string;
1002
+ }[];
1003
+ createdAt: string;
1004
+ updatedAt: string;
1005
+ }[];
1006
+ events: {
1007
+ id: string & {
1008
+ readonly __brand: "uuidv7";
1009
+ };
1010
+ linearPipelineExecutionId: string & {
1011
+ readonly __brand: "uuidv7";
1012
+ };
1013
+ type: "pipeline_queued" | "pipeline_started" | "step_run_created" | "step_attempt_queued" | "step_attempt_started" | "step_attempt_succeeded" | "step_attempt_failed" | "step_evaluated" | "step_satisfied_by_policy" | "step_satisfied_by_user" | "step_unsatisfied_by_policy" | "step_retriggered" | "step_blocked" | "step_needs_review" | "pipeline_succeeded" | "pipeline_failed" | "pipeline_blocked" | "pipeline_needs_review" | "pipeline_cancelled";
1014
+ payloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
1015
+ createdAt: string;
1016
+ }[];
1017
+ startedAt: string | null;
1018
+ completedAt: string | null;
1019
+ createdAt: string;
1020
+ updatedAt: string;
1021
+ };
1022
+ 403: {
1023
+ type: string;
1024
+ title: string;
1025
+ status: number;
1026
+ detail?: string | undefined;
1027
+ instance?: string | undefined;
1028
+ code?: string | undefined;
1029
+ errors?: {
1030
+ path: string;
1031
+ message: string;
1032
+ summary?: string | undefined;
1033
+ }[] | undefined;
1034
+ };
1035
+ 401: {
1036
+ type: string;
1037
+ title: string;
1038
+ status: number;
1039
+ detail?: string | undefined;
1040
+ instance?: string | undefined;
1041
+ code?: string | undefined;
1042
+ errors?: {
1043
+ path: string;
1044
+ message: string;
1045
+ summary?: string | undefined;
1046
+ }[] | undefined;
1047
+ };
1048
+ };
1049
+ };
1050
+ };
1051
+ };
1052
+ };
1053
+ };
1054
+ };
1055
+ };
1056
+ };
1057
+ } & {
1058
+ "linear-pipeline-executions": {
1059
+ ":linearPipelineExecutionId": {
1060
+ "step-runs": {
1061
+ ":linearPipelineStepRunId": {
1062
+ attempts: {
1063
+ ":linearPipelineStepRunAttemptId": {
1064
+ results: {
1065
+ post: {
1066
+ body: {
1067
+ status: "succeeded" | "failed";
1068
+ resultJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1069
+ errorJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1070
+ };
1071
+ params: {
1072
+ linearPipelineExecutionId: string & {
1073
+ readonly __brand: "uuidv7";
1074
+ };
1075
+ linearPipelineStepRunId: string & {
1076
+ readonly __brand: "uuidv7";
1077
+ };
1078
+ linearPipelineStepRunAttemptId: string & {
1079
+ readonly __brand: "uuidv7";
1080
+ };
1081
+ };
1082
+ query: unknown;
1083
+ headers: unknown;
1084
+ response: {
1085
+ 422: {
1086
+ type: string;
1087
+ title: string;
1088
+ status: number;
1089
+ detail?: string | undefined;
1090
+ instance?: string | undefined;
1091
+ code?: string | undefined;
1092
+ errors?: {
1093
+ path: string;
1094
+ message: string;
1095
+ summary?: string | undefined;
1096
+ }[] | undefined;
1097
+ };
1098
+ 404: {
1099
+ type: string;
1100
+ title: string;
1101
+ status: number;
1102
+ detail?: string | undefined;
1103
+ instance?: string | undefined;
1104
+ code?: string | undefined;
1105
+ errors?: {
1106
+ path: string;
1107
+ message: string;
1108
+ summary?: string | undefined;
1109
+ }[] | undefined;
1110
+ };
1111
+ 500: {
1112
+ type: string;
1113
+ title: string;
1114
+ status: number;
1115
+ detail?: string | undefined;
1116
+ instance?: string | undefined;
1117
+ code?: string | undefined;
1118
+ errors?: {
1119
+ path: string;
1120
+ message: string;
1121
+ summary?: string | undefined;
1122
+ }[] | undefined;
1123
+ };
1124
+ 200: {
1125
+ id: string & {
1126
+ readonly __brand: "uuidv7";
1127
+ };
1128
+ projectId: string & {
1129
+ readonly __brand: "uuidv7";
1130
+ };
1131
+ linearPipelineDefinitionId: string & {
1132
+ readonly __brand: "uuidv7";
1133
+ };
1134
+ linearPipelineDefinitionVersion: number;
1135
+ status: "needs_review" | "queued" | "running" | "succeeded" | "failed" | "cancelled" | "blocked";
1136
+ currentStepKey: string | null;
1137
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1138
+ stepRuns: {
1139
+ id: string & {
1140
+ readonly __brand: "uuidv7";
1141
+ };
1142
+ linearPipelineExecutionId: string & {
1143
+ readonly __brand: "uuidv7";
1144
+ };
1145
+ linearPipelineStepDefinitionId: string & {
1146
+ readonly __brand: "uuidv7";
1147
+ };
1148
+ stepDefinitionId: string & {
1149
+ readonly __brand: "uuidv7";
1150
+ };
1151
+ stepDefinitionVersion: number;
1152
+ stepKey: string;
1153
+ position: number;
1154
+ status: "needs_review" | "queued" | "running" | "cancelled" | "blocked" | "pending" | "satisfied" | "unsatisfied" | "skipped";
1155
+ satisfactionStatus: "not_evaluated" | "satisfied_by_policy" | "satisfied_by_user" | "unsatisfied_by_policy";
1156
+ selectedStepExecutionId: (string & {
1157
+ readonly __brand: "uuidv7";
1158
+ }) | null;
1159
+ selectedStepExecutionResultId: (string & {
1160
+ readonly __brand: "uuidv7";
1161
+ }) | null;
1162
+ acceptedByUserId: (string & {
1163
+ readonly __brand: "uuidv7";
1164
+ }) | null;
1165
+ acceptedAt: string | null;
1166
+ acceptanceReason: string | null;
1167
+ attemptCount: number;
1168
+ lastAttemptedAt: string | null;
1169
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1170
+ outputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1171
+ attempts: {
1172
+ id: string & {
1173
+ readonly __brand: "uuidv7";
1174
+ };
1175
+ linearPipelineStepRunId: string & {
1176
+ readonly __brand: "uuidv7";
1177
+ };
1178
+ stepExecutionId: string & {
1179
+ readonly __brand: "uuidv7";
1180
+ };
1181
+ attemptNumber: number;
1182
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
1183
+ evaluationId: (string & {
1184
+ readonly __brand: "uuidv7";
1185
+ }) | null;
1186
+ createdAt: string;
1187
+ completedAt: string | null;
1188
+ }[];
1189
+ evaluations: {
1190
+ id: string & {
1191
+ readonly __brand: "uuidv7";
1192
+ };
1193
+ linearPipelineExecutionId: string & {
1194
+ readonly __brand: "uuidv7";
1195
+ };
1196
+ linearPipelineStepRunId: string & {
1197
+ readonly __brand: "uuidv7";
1198
+ };
1199
+ linearPipelineStepRunAttemptId: string & {
1200
+ readonly __brand: "uuidv7";
1201
+ };
1202
+ stepExecutionId: string & {
1203
+ readonly __brand: "uuidv7";
1204
+ };
1205
+ stepExecutionResultId: string & {
1206
+ readonly __brand: "uuidv7";
1207
+ };
1208
+ stepExecutionResultStatus: "succeeded" | "failed" | null;
1209
+ linearPipelineStepAdvancementPolicyDefinitionId: string & {
1210
+ readonly __brand: "uuidv7";
1211
+ };
1212
+ factsSnapshotJson: import("@boboddy/core/common/contracts/json").AnyJsonObject;
1213
+ ruleResultsJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1214
+ finalStatus: "pass" | "fail";
1215
+ finalAction: "continue" | "block" | "needs_review" | "complete";
1216
+ finalPayloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
1217
+ createdAt: string;
1218
+ }[];
1219
+ createdAt: string;
1220
+ updatedAt: string;
1221
+ }[];
1222
+ events: {
1223
+ id: string & {
1224
+ readonly __brand: "uuidv7";
1225
+ };
1226
+ linearPipelineExecutionId: string & {
1227
+ readonly __brand: "uuidv7";
1228
+ };
1229
+ type: "pipeline_queued" | "pipeline_started" | "step_run_created" | "step_attempt_queued" | "step_attempt_started" | "step_attempt_succeeded" | "step_attempt_failed" | "step_evaluated" | "step_satisfied_by_policy" | "step_satisfied_by_user" | "step_unsatisfied_by_policy" | "step_retriggered" | "step_blocked" | "step_needs_review" | "pipeline_succeeded" | "pipeline_failed" | "pipeline_blocked" | "pipeline_needs_review" | "pipeline_cancelled";
1230
+ payloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
1231
+ createdAt: string;
1232
+ }[];
1233
+ startedAt: string | null;
1234
+ completedAt: string | null;
1235
+ createdAt: string;
1236
+ updatedAt: string;
1237
+ };
1238
+ 403: {
1239
+ type: string;
1240
+ title: string;
1241
+ status: number;
1242
+ detail?: string | undefined;
1243
+ instance?: string | undefined;
1244
+ code?: string | undefined;
1245
+ errors?: {
1246
+ path: string;
1247
+ message: string;
1248
+ summary?: string | undefined;
1249
+ }[] | undefined;
1250
+ };
1251
+ 401: {
1252
+ type: string;
1253
+ title: string;
1254
+ status: number;
1255
+ detail?: string | undefined;
1256
+ instance?: string | undefined;
1257
+ code?: string | undefined;
1258
+ errors?: {
1259
+ path: string;
1260
+ message: string;
1261
+ summary?: string | undefined;
1262
+ }[] | undefined;
1263
+ };
1264
+ };
1265
+ };
1266
+ };
1267
+ };
1268
+ };
1269
+ };
1270
+ };
1271
+ };
1272
+ };
1273
+ } & {
1274
+ "linear-pipeline-executions": {
1275
+ ":linearPipelineExecutionId": {
1276
+ "step-runs": {
1277
+ ":linearPipelineStepRunId": {
1278
+ accept: {
1279
+ post: {
1280
+ body: {
1281
+ projectId: string & {
1282
+ readonly __brand: "uuidv7";
1283
+ };
1284
+ stepExecutionId: string & {
1285
+ readonly __brand: "uuidv7";
1286
+ };
1287
+ stepExecutionResultId: string & {
1288
+ readonly __brand: "uuidv7";
1289
+ };
1290
+ acceptedByUserId: string & {
1291
+ readonly __brand: "uuidv7";
1292
+ };
1293
+ acceptanceReason: string;
1294
+ };
1295
+ params: {
1296
+ linearPipelineExecutionId: string & {
1297
+ readonly __brand: "uuidv7";
1298
+ };
1299
+ linearPipelineStepRunId: string & {
1300
+ readonly __brand: "uuidv7";
1301
+ };
1302
+ };
1303
+ query: unknown;
1304
+ headers: unknown;
1305
+ response: {
1306
+ 422: {
1307
+ type: string;
1308
+ title: string;
1309
+ status: number;
1310
+ detail?: string | undefined;
1311
+ instance?: string | undefined;
1312
+ code?: string | undefined;
1313
+ errors?: {
1314
+ path: string;
1315
+ message: string;
1316
+ summary?: string | undefined;
1317
+ }[] | undefined;
1318
+ };
1319
+ 404: {
1320
+ type: string;
1321
+ title: string;
1322
+ status: number;
1323
+ detail?: string | undefined;
1324
+ instance?: string | undefined;
1325
+ code?: string | undefined;
1326
+ errors?: {
1327
+ path: string;
1328
+ message: string;
1329
+ summary?: string | undefined;
1330
+ }[] | undefined;
1331
+ };
1332
+ 500: {
1333
+ type: string;
1334
+ title: string;
1335
+ status: number;
1336
+ detail?: string | undefined;
1337
+ instance?: string | undefined;
1338
+ code?: string | undefined;
1339
+ errors?: {
1340
+ path: string;
1341
+ message: string;
1342
+ summary?: string | undefined;
1343
+ }[] | undefined;
1344
+ };
1345
+ 200: {
1346
+ id: string & {
1347
+ readonly __brand: "uuidv7";
1348
+ };
1349
+ projectId: string & {
1350
+ readonly __brand: "uuidv7";
1351
+ };
1352
+ linearPipelineDefinitionId: string & {
1353
+ readonly __brand: "uuidv7";
1354
+ };
1355
+ linearPipelineDefinitionVersion: number;
1356
+ status: "needs_review" | "queued" | "running" | "succeeded" | "failed" | "cancelled" | "blocked";
1357
+ currentStepKey: string | null;
1358
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1359
+ stepRuns: {
1360
+ id: string & {
1361
+ readonly __brand: "uuidv7";
1362
+ };
1363
+ linearPipelineExecutionId: string & {
1364
+ readonly __brand: "uuidv7";
1365
+ };
1366
+ linearPipelineStepDefinitionId: string & {
1367
+ readonly __brand: "uuidv7";
1368
+ };
1369
+ stepDefinitionId: string & {
1370
+ readonly __brand: "uuidv7";
1371
+ };
1372
+ stepDefinitionVersion: number;
1373
+ stepKey: string;
1374
+ position: number;
1375
+ status: "needs_review" | "queued" | "running" | "cancelled" | "blocked" | "pending" | "satisfied" | "unsatisfied" | "skipped";
1376
+ satisfactionStatus: "not_evaluated" | "satisfied_by_policy" | "satisfied_by_user" | "unsatisfied_by_policy";
1377
+ selectedStepExecutionId: (string & {
1378
+ readonly __brand: "uuidv7";
1379
+ }) | null;
1380
+ selectedStepExecutionResultId: (string & {
1381
+ readonly __brand: "uuidv7";
1382
+ }) | null;
1383
+ acceptedByUserId: (string & {
1384
+ readonly __brand: "uuidv7";
1385
+ }) | null;
1386
+ acceptedAt: string | null;
1387
+ acceptanceReason: string | null;
1388
+ attemptCount: number;
1389
+ lastAttemptedAt: string | null;
1390
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1391
+ outputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1392
+ attempts: {
1393
+ id: string & {
1394
+ readonly __brand: "uuidv7";
1395
+ };
1396
+ linearPipelineStepRunId: string & {
1397
+ readonly __brand: "uuidv7";
1398
+ };
1399
+ stepExecutionId: string & {
1400
+ readonly __brand: "uuidv7";
1401
+ };
1402
+ attemptNumber: number;
1403
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
1404
+ evaluationId: (string & {
1405
+ readonly __brand: "uuidv7";
1406
+ }) | null;
1407
+ createdAt: string;
1408
+ completedAt: string | null;
1409
+ }[];
1410
+ evaluations: {
1411
+ id: string & {
1412
+ readonly __brand: "uuidv7";
1413
+ };
1414
+ linearPipelineExecutionId: string & {
1415
+ readonly __brand: "uuidv7";
1416
+ };
1417
+ linearPipelineStepRunId: string & {
1418
+ readonly __brand: "uuidv7";
1419
+ };
1420
+ linearPipelineStepRunAttemptId: string & {
1421
+ readonly __brand: "uuidv7";
1422
+ };
1423
+ stepExecutionId: string & {
1424
+ readonly __brand: "uuidv7";
1425
+ };
1426
+ stepExecutionResultId: string & {
1427
+ readonly __brand: "uuidv7";
1428
+ };
1429
+ stepExecutionResultStatus: "succeeded" | "failed" | null;
1430
+ linearPipelineStepAdvancementPolicyDefinitionId: string & {
1431
+ readonly __brand: "uuidv7";
1432
+ };
1433
+ factsSnapshotJson: import("@boboddy/core/common/contracts/json").AnyJsonObject;
1434
+ ruleResultsJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1435
+ finalStatus: "pass" | "fail";
1436
+ finalAction: "continue" | "block" | "needs_review" | "complete";
1437
+ finalPayloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
1438
+ createdAt: string;
1439
+ }[];
1440
+ createdAt: string;
1441
+ updatedAt: string;
1442
+ }[];
1443
+ events: {
1444
+ id: string & {
1445
+ readonly __brand: "uuidv7";
1446
+ };
1447
+ linearPipelineExecutionId: string & {
1448
+ readonly __brand: "uuidv7";
1449
+ };
1450
+ type: "pipeline_queued" | "pipeline_started" | "step_run_created" | "step_attempt_queued" | "step_attempt_started" | "step_attempt_succeeded" | "step_attempt_failed" | "step_evaluated" | "step_satisfied_by_policy" | "step_satisfied_by_user" | "step_unsatisfied_by_policy" | "step_retriggered" | "step_blocked" | "step_needs_review" | "pipeline_succeeded" | "pipeline_failed" | "pipeline_blocked" | "pipeline_needs_review" | "pipeline_cancelled";
1451
+ payloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
1452
+ createdAt: string;
1453
+ }[];
1454
+ startedAt: string | null;
1455
+ completedAt: string | null;
1456
+ createdAt: string;
1457
+ updatedAt: string;
1458
+ };
1459
+ 403: {
1460
+ type: string;
1461
+ title: string;
1462
+ status: number;
1463
+ detail?: string | undefined;
1464
+ instance?: string | undefined;
1465
+ code?: string | undefined;
1466
+ errors?: {
1467
+ path: string;
1468
+ message: string;
1469
+ summary?: string | undefined;
1470
+ }[] | undefined;
1471
+ };
1472
+ 401: {
1473
+ type: string;
1474
+ title: string;
1475
+ status: number;
1476
+ detail?: string | undefined;
1477
+ instance?: string | undefined;
1478
+ code?: string | undefined;
1479
+ errors?: {
1480
+ path: string;
1481
+ message: string;
1482
+ summary?: string | undefined;
1483
+ }[] | undefined;
1484
+ };
1485
+ };
1486
+ };
1487
+ };
1488
+ };
1489
+ };
1490
+ };
1491
+ };
1492
+ } & {
1493
+ "linear-pipeline-executions": {
1494
+ ":linearPipelineExecutionId": {
1495
+ "step-runs": {
1496
+ ":linearPipelineStepRunId": {
1497
+ retrigger: {
1498
+ post: {
1499
+ body: {
1500
+ projectId: string & {
1501
+ readonly __brand: "uuidv7";
1502
+ };
1503
+ };
1504
+ params: {
1505
+ linearPipelineExecutionId: string & {
1506
+ readonly __brand: "uuidv7";
1507
+ };
1508
+ linearPipelineStepRunId: string & {
1509
+ readonly __brand: "uuidv7";
1510
+ };
1511
+ };
1512
+ query: unknown;
1513
+ headers: unknown;
1514
+ response: {
1515
+ 422: {
1516
+ type: string;
1517
+ title: string;
1518
+ status: number;
1519
+ detail?: string | undefined;
1520
+ instance?: string | undefined;
1521
+ code?: string | undefined;
1522
+ errors?: {
1523
+ path: string;
1524
+ message: string;
1525
+ summary?: string | undefined;
1526
+ }[] | undefined;
1527
+ };
1528
+ 404: {
1529
+ type: string;
1530
+ title: string;
1531
+ status: number;
1532
+ detail?: string | undefined;
1533
+ instance?: string | undefined;
1534
+ code?: string | undefined;
1535
+ errors?: {
1536
+ path: string;
1537
+ message: string;
1538
+ summary?: string | undefined;
1539
+ }[] | undefined;
1540
+ };
1541
+ 500: {
1542
+ type: string;
1543
+ title: string;
1544
+ status: number;
1545
+ detail?: string | undefined;
1546
+ instance?: string | undefined;
1547
+ code?: string | undefined;
1548
+ errors?: {
1549
+ path: string;
1550
+ message: string;
1551
+ summary?: string | undefined;
1552
+ }[] | undefined;
1553
+ };
1554
+ 200: {
1555
+ id: string & {
1556
+ readonly __brand: "uuidv7";
1557
+ };
1558
+ projectId: string & {
1559
+ readonly __brand: "uuidv7";
1560
+ };
1561
+ linearPipelineDefinitionId: string & {
1562
+ readonly __brand: "uuidv7";
1563
+ };
1564
+ linearPipelineDefinitionVersion: number;
1565
+ status: "needs_review" | "queued" | "running" | "succeeded" | "failed" | "cancelled" | "blocked";
1566
+ currentStepKey: string | null;
1567
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1568
+ stepRuns: {
1569
+ id: string & {
1570
+ readonly __brand: "uuidv7";
1571
+ };
1572
+ linearPipelineExecutionId: string & {
1573
+ readonly __brand: "uuidv7";
1574
+ };
1575
+ linearPipelineStepDefinitionId: string & {
1576
+ readonly __brand: "uuidv7";
1577
+ };
1578
+ stepDefinitionId: string & {
1579
+ readonly __brand: "uuidv7";
1580
+ };
1581
+ stepDefinitionVersion: number;
1582
+ stepKey: string;
1583
+ position: number;
1584
+ status: "needs_review" | "queued" | "running" | "cancelled" | "blocked" | "pending" | "satisfied" | "unsatisfied" | "skipped";
1585
+ satisfactionStatus: "not_evaluated" | "satisfied_by_policy" | "satisfied_by_user" | "unsatisfied_by_policy";
1586
+ selectedStepExecutionId: (string & {
1587
+ readonly __brand: "uuidv7";
1588
+ }) | null;
1589
+ selectedStepExecutionResultId: (string & {
1590
+ readonly __brand: "uuidv7";
1591
+ }) | null;
1592
+ acceptedByUserId: (string & {
1593
+ readonly __brand: "uuidv7";
1594
+ }) | null;
1595
+ acceptedAt: string | null;
1596
+ acceptanceReason: string | null;
1597
+ attemptCount: number;
1598
+ lastAttemptedAt: string | null;
1599
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1600
+ outputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1601
+ attempts: {
1602
+ id: string & {
1603
+ readonly __brand: "uuidv7";
1604
+ };
1605
+ linearPipelineStepRunId: string & {
1606
+ readonly __brand: "uuidv7";
1607
+ };
1608
+ stepExecutionId: string & {
1609
+ readonly __brand: "uuidv7";
1610
+ };
1611
+ attemptNumber: number;
1612
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
1613
+ evaluationId: (string & {
1614
+ readonly __brand: "uuidv7";
1615
+ }) | null;
1616
+ createdAt: string;
1617
+ completedAt: string | null;
1618
+ }[];
1619
+ evaluations: {
1620
+ id: string & {
1621
+ readonly __brand: "uuidv7";
1622
+ };
1623
+ linearPipelineExecutionId: string & {
1624
+ readonly __brand: "uuidv7";
1625
+ };
1626
+ linearPipelineStepRunId: string & {
1627
+ readonly __brand: "uuidv7";
1628
+ };
1629
+ linearPipelineStepRunAttemptId: string & {
1630
+ readonly __brand: "uuidv7";
1631
+ };
1632
+ stepExecutionId: string & {
1633
+ readonly __brand: "uuidv7";
1634
+ };
1635
+ stepExecutionResultId: string & {
1636
+ readonly __brand: "uuidv7";
1637
+ };
1638
+ stepExecutionResultStatus: "succeeded" | "failed" | null;
1639
+ linearPipelineStepAdvancementPolicyDefinitionId: string & {
1640
+ readonly __brand: "uuidv7";
1641
+ };
1642
+ factsSnapshotJson: import("@boboddy/core/common/contracts/json").AnyJsonObject;
1643
+ ruleResultsJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1644
+ finalStatus: "pass" | "fail";
1645
+ finalAction: "continue" | "block" | "needs_review" | "complete";
1646
+ finalPayloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
1647
+ createdAt: string;
1648
+ }[];
1649
+ createdAt: string;
1650
+ updatedAt: string;
1651
+ }[];
1652
+ events: {
1653
+ id: string & {
1654
+ readonly __brand: "uuidv7";
1655
+ };
1656
+ linearPipelineExecutionId: string & {
1657
+ readonly __brand: "uuidv7";
1658
+ };
1659
+ type: "pipeline_queued" | "pipeline_started" | "step_run_created" | "step_attempt_queued" | "step_attempt_started" | "step_attempt_succeeded" | "step_attempt_failed" | "step_evaluated" | "step_satisfied_by_policy" | "step_satisfied_by_user" | "step_unsatisfied_by_policy" | "step_retriggered" | "step_blocked" | "step_needs_review" | "pipeline_succeeded" | "pipeline_failed" | "pipeline_blocked" | "pipeline_needs_review" | "pipeline_cancelled";
1660
+ payloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
1661
+ createdAt: string;
1662
+ }[];
1663
+ startedAt: string | null;
1664
+ completedAt: string | null;
1665
+ createdAt: string;
1666
+ updatedAt: string;
1667
+ };
1668
+ 403: {
1669
+ type: string;
1670
+ title: string;
1671
+ status: number;
1672
+ detail?: string | undefined;
1673
+ instance?: string | undefined;
1674
+ code?: string | undefined;
1675
+ errors?: {
1676
+ path: string;
1677
+ message: string;
1678
+ summary?: string | undefined;
1679
+ }[] | undefined;
1680
+ };
1681
+ 401: {
1682
+ type: string;
1683
+ title: string;
1684
+ status: number;
1685
+ detail?: string | undefined;
1686
+ instance?: string | undefined;
1687
+ code?: string | undefined;
1688
+ errors?: {
1689
+ path: string;
1690
+ message: string;
1691
+ summary?: string | undefined;
1692
+ }[] | undefined;
1693
+ };
1694
+ };
1695
+ };
1696
+ };
1697
+ };
1698
+ };
1699
+ };
1700
+ };
1701
+ } & {
1702
+ "linear-pipeline-executions": {
1703
+ ":linearPipelineExecutionId": {
1704
+ cancel: {
1705
+ put: {
1706
+ body: unknown;
1707
+ params: {
1708
+ linearPipelineExecutionId: string & {
1709
+ readonly __brand: "uuidv7";
1710
+ };
1711
+ };
1712
+ query: unknown;
1713
+ headers: unknown;
1714
+ response: {
1715
+ 422: {
1716
+ type: string;
1717
+ title: string;
1718
+ status: number;
1719
+ detail?: string | undefined;
1720
+ instance?: string | undefined;
1721
+ code?: string | undefined;
1722
+ errors?: {
1723
+ path: string;
1724
+ message: string;
1725
+ summary?: string | undefined;
1726
+ }[] | undefined;
1727
+ };
1728
+ 404: {
1729
+ type: string;
1730
+ title: string;
1731
+ status: number;
1732
+ detail?: string | undefined;
1733
+ instance?: string | undefined;
1734
+ code?: string | undefined;
1735
+ errors?: {
1736
+ path: string;
1737
+ message: string;
1738
+ summary?: string | undefined;
1739
+ }[] | undefined;
1740
+ };
1741
+ 500: {
1742
+ type: string;
1743
+ title: string;
1744
+ status: number;
1745
+ detail?: string | undefined;
1746
+ instance?: string | undefined;
1747
+ code?: string | undefined;
1748
+ errors?: {
1749
+ path: string;
1750
+ message: string;
1751
+ summary?: string | undefined;
1752
+ }[] | undefined;
1753
+ };
1754
+ 200: {
1755
+ id: string & {
1756
+ readonly __brand: "uuidv7";
1757
+ };
1758
+ projectId: string & {
1759
+ readonly __brand: "uuidv7";
1760
+ };
1761
+ linearPipelineDefinitionId: string & {
1762
+ readonly __brand: "uuidv7";
1763
+ };
1764
+ linearPipelineDefinitionVersion: number;
1765
+ status: "needs_review" | "queued" | "running" | "succeeded" | "failed" | "cancelled" | "blocked";
1766
+ currentStepKey: string | null;
1767
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1768
+ stepRuns: {
1769
+ id: string & {
1770
+ readonly __brand: "uuidv7";
1771
+ };
1772
+ linearPipelineExecutionId: string & {
1773
+ readonly __brand: "uuidv7";
1774
+ };
1775
+ linearPipelineStepDefinitionId: string & {
1776
+ readonly __brand: "uuidv7";
1777
+ };
1778
+ stepDefinitionId: string & {
1779
+ readonly __brand: "uuidv7";
1780
+ };
1781
+ stepDefinitionVersion: number;
1782
+ stepKey: string;
1783
+ position: number;
1784
+ status: "needs_review" | "queued" | "running" | "cancelled" | "blocked" | "pending" | "satisfied" | "unsatisfied" | "skipped";
1785
+ satisfactionStatus: "not_evaluated" | "satisfied_by_policy" | "satisfied_by_user" | "unsatisfied_by_policy";
1786
+ selectedStepExecutionId: (string & {
1787
+ readonly __brand: "uuidv7";
1788
+ }) | null;
1789
+ selectedStepExecutionResultId: (string & {
1790
+ readonly __brand: "uuidv7";
1791
+ }) | null;
1792
+ acceptedByUserId: (string & {
1793
+ readonly __brand: "uuidv7";
1794
+ }) | null;
1795
+ acceptedAt: string | null;
1796
+ acceptanceReason: string | null;
1797
+ attemptCount: number;
1798
+ lastAttemptedAt: string | null;
1799
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1800
+ outputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1801
+ attempts: {
1802
+ id: string & {
1803
+ readonly __brand: "uuidv7";
1804
+ };
1805
+ linearPipelineStepRunId: string & {
1806
+ readonly __brand: "uuidv7";
1807
+ };
1808
+ stepExecutionId: string & {
1809
+ readonly __brand: "uuidv7";
1810
+ };
1811
+ attemptNumber: number;
1812
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
1813
+ evaluationId: (string & {
1814
+ readonly __brand: "uuidv7";
1815
+ }) | null;
1816
+ createdAt: string;
1817
+ completedAt: string | null;
1818
+ }[];
1819
+ evaluations: {
1820
+ id: string & {
1821
+ readonly __brand: "uuidv7";
1822
+ };
1823
+ linearPipelineExecutionId: string & {
1824
+ readonly __brand: "uuidv7";
1825
+ };
1826
+ linearPipelineStepRunId: string & {
1827
+ readonly __brand: "uuidv7";
1828
+ };
1829
+ linearPipelineStepRunAttemptId: string & {
1830
+ readonly __brand: "uuidv7";
1831
+ };
1832
+ stepExecutionId: string & {
1833
+ readonly __brand: "uuidv7";
1834
+ };
1835
+ stepExecutionResultId: string & {
1836
+ readonly __brand: "uuidv7";
1837
+ };
1838
+ stepExecutionResultStatus: "succeeded" | "failed" | null;
1839
+ linearPipelineStepAdvancementPolicyDefinitionId: string & {
1840
+ readonly __brand: "uuidv7";
1841
+ };
1842
+ factsSnapshotJson: import("@boboddy/core/common/contracts/json").AnyJsonObject;
1843
+ ruleResultsJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1844
+ finalStatus: "pass" | "fail";
1845
+ finalAction: "continue" | "block" | "needs_review" | "complete";
1846
+ finalPayloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
1847
+ createdAt: string;
1848
+ }[];
1849
+ createdAt: string;
1850
+ updatedAt: string;
1851
+ }[];
1852
+ events: {
1853
+ id: string & {
1854
+ readonly __brand: "uuidv7";
1855
+ };
1856
+ linearPipelineExecutionId: string & {
1857
+ readonly __brand: "uuidv7";
1858
+ };
1859
+ type: "pipeline_queued" | "pipeline_started" | "step_run_created" | "step_attempt_queued" | "step_attempt_started" | "step_attempt_succeeded" | "step_attempt_failed" | "step_evaluated" | "step_satisfied_by_policy" | "step_satisfied_by_user" | "step_unsatisfied_by_policy" | "step_retriggered" | "step_blocked" | "step_needs_review" | "pipeline_succeeded" | "pipeline_failed" | "pipeline_blocked" | "pipeline_needs_review" | "pipeline_cancelled";
1860
+ payloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
1861
+ createdAt: string;
1862
+ }[];
1863
+ startedAt: string | null;
1864
+ completedAt: string | null;
1865
+ createdAt: string;
1866
+ updatedAt: string;
1867
+ };
1868
+ 403: {
1869
+ type: string;
1870
+ title: string;
1871
+ status: number;
1872
+ detail?: string | undefined;
1873
+ instance?: string | undefined;
1874
+ code?: string | undefined;
1875
+ errors?: {
1876
+ path: string;
1877
+ message: string;
1878
+ summary?: string | undefined;
1879
+ }[] | undefined;
1880
+ };
1881
+ 401: {
1882
+ type: string;
1883
+ title: string;
1884
+ status: number;
1885
+ detail?: string | undefined;
1886
+ instance?: string | undefined;
1887
+ code?: string | undefined;
1888
+ errors?: {
1889
+ path: string;
1890
+ message: string;
1891
+ summary?: string | undefined;
1892
+ }[] | undefined;
1893
+ };
1894
+ };
1895
+ };
1896
+ };
1897
+ };
1898
+ };
1899
+ } & {
1900
+ "linear-pipeline-executions": {
1901
+ ":linearPipelineExecutionId": {
1902
+ get: {
1903
+ body: unknown;
1904
+ params: {
1905
+ linearPipelineExecutionId: string & {
1906
+ readonly __brand: "uuidv7";
1907
+ };
1908
+ };
1909
+ query: unknown;
1910
+ headers: unknown;
1911
+ response: {
1912
+ 422: {
1913
+ type: string;
1914
+ title: string;
1915
+ status: number;
1916
+ detail?: string | undefined;
1917
+ instance?: string | undefined;
1918
+ code?: string | undefined;
1919
+ errors?: {
1920
+ path: string;
1921
+ message: string;
1922
+ summary?: string | undefined;
1923
+ }[] | undefined;
1924
+ };
1925
+ 404: {
1926
+ type: string;
1927
+ title: string;
1928
+ status: number;
1929
+ detail?: string | undefined;
1930
+ instance?: string | undefined;
1931
+ code?: string | undefined;
1932
+ errors?: {
1933
+ path: string;
1934
+ message: string;
1935
+ summary?: string | undefined;
1936
+ }[] | undefined;
1937
+ };
1938
+ 500: {
1939
+ type: string;
1940
+ title: string;
1941
+ status: number;
1942
+ detail?: string | undefined;
1943
+ instance?: string | undefined;
1944
+ code?: string | undefined;
1945
+ errors?: {
1946
+ path: string;
1947
+ message: string;
1948
+ summary?: string | undefined;
1949
+ }[] | undefined;
1950
+ };
1951
+ 200: {
1952
+ id: string & {
1953
+ readonly __brand: "uuidv7";
1954
+ };
1955
+ projectId: string & {
1956
+ readonly __brand: "uuidv7";
1957
+ };
1958
+ linearPipelineDefinitionId: string & {
1959
+ readonly __brand: "uuidv7";
1960
+ };
1961
+ linearPipelineDefinitionVersion: number;
1962
+ status: "needs_review" | "queued" | "running" | "succeeded" | "failed" | "cancelled" | "blocked";
1963
+ currentStepKey: string | null;
1964
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1965
+ stepRuns: {
1966
+ id: string & {
1967
+ readonly __brand: "uuidv7";
1968
+ };
1969
+ linearPipelineExecutionId: string & {
1970
+ readonly __brand: "uuidv7";
1971
+ };
1972
+ linearPipelineStepDefinitionId: string & {
1973
+ readonly __brand: "uuidv7";
1974
+ };
1975
+ stepDefinitionId: string & {
1976
+ readonly __brand: "uuidv7";
1977
+ };
1978
+ stepDefinitionVersion: number;
1979
+ stepKey: string;
1980
+ position: number;
1981
+ status: "needs_review" | "queued" | "running" | "cancelled" | "blocked" | "pending" | "satisfied" | "unsatisfied" | "skipped";
1982
+ satisfactionStatus: "not_evaluated" | "satisfied_by_policy" | "satisfied_by_user" | "unsatisfied_by_policy";
1983
+ selectedStepExecutionId: (string & {
1984
+ readonly __brand: "uuidv7";
1985
+ }) | null;
1986
+ selectedStepExecutionResultId: (string & {
1987
+ readonly __brand: "uuidv7";
1988
+ }) | null;
1989
+ acceptedByUserId: (string & {
1990
+ readonly __brand: "uuidv7";
1991
+ }) | null;
1992
+ acceptedAt: string | null;
1993
+ acceptanceReason: string | null;
1994
+ attemptCount: number;
1995
+ lastAttemptedAt: string | null;
1996
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1997
+ outputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1998
+ attempts: {
1999
+ id: string & {
2000
+ readonly __brand: "uuidv7";
2001
+ };
2002
+ linearPipelineStepRunId: string & {
2003
+ readonly __brand: "uuidv7";
2004
+ };
2005
+ stepExecutionId: string & {
2006
+ readonly __brand: "uuidv7";
2007
+ };
2008
+ attemptNumber: number;
2009
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
2010
+ evaluationId: (string & {
2011
+ readonly __brand: "uuidv7";
2012
+ }) | null;
2013
+ createdAt: string;
2014
+ completedAt: string | null;
2015
+ }[];
2016
+ evaluations: {
2017
+ id: string & {
2018
+ readonly __brand: "uuidv7";
2019
+ };
2020
+ linearPipelineExecutionId: string & {
2021
+ readonly __brand: "uuidv7";
2022
+ };
2023
+ linearPipelineStepRunId: string & {
2024
+ readonly __brand: "uuidv7";
2025
+ };
2026
+ linearPipelineStepRunAttemptId: string & {
2027
+ readonly __brand: "uuidv7";
2028
+ };
2029
+ stepExecutionId: string & {
2030
+ readonly __brand: "uuidv7";
2031
+ };
2032
+ stepExecutionResultId: string & {
2033
+ readonly __brand: "uuidv7";
2034
+ };
2035
+ stepExecutionResultStatus: "succeeded" | "failed" | null;
2036
+ linearPipelineStepAdvancementPolicyDefinitionId: string & {
2037
+ readonly __brand: "uuidv7";
2038
+ };
2039
+ factsSnapshotJson: import("@boboddy/core/common/contracts/json").AnyJsonObject;
2040
+ ruleResultsJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
2041
+ finalStatus: "pass" | "fail";
2042
+ finalAction: "continue" | "block" | "needs_review" | "complete";
2043
+ finalPayloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
2044
+ createdAt: string;
2045
+ }[];
2046
+ createdAt: string;
2047
+ updatedAt: string;
2048
+ }[];
2049
+ events: {
2050
+ id: string & {
2051
+ readonly __brand: "uuidv7";
2052
+ };
2053
+ linearPipelineExecutionId: string & {
2054
+ readonly __brand: "uuidv7";
2055
+ };
2056
+ type: "pipeline_queued" | "pipeline_started" | "step_run_created" | "step_attempt_queued" | "step_attempt_started" | "step_attempt_succeeded" | "step_attempt_failed" | "step_evaluated" | "step_satisfied_by_policy" | "step_satisfied_by_user" | "step_unsatisfied_by_policy" | "step_retriggered" | "step_blocked" | "step_needs_review" | "pipeline_succeeded" | "pipeline_failed" | "pipeline_blocked" | "pipeline_needs_review" | "pipeline_cancelled";
2057
+ payloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
2058
+ createdAt: string;
2059
+ }[];
2060
+ startedAt: string | null;
2061
+ completedAt: string | null;
2062
+ createdAt: string;
2063
+ updatedAt: string;
2064
+ };
2065
+ 403: {
2066
+ type: string;
2067
+ title: string;
2068
+ status: number;
2069
+ detail?: string | undefined;
2070
+ instance?: string | undefined;
2071
+ code?: string | undefined;
2072
+ errors?: {
2073
+ path: string;
2074
+ message: string;
2075
+ summary?: string | undefined;
2076
+ }[] | undefined;
2077
+ };
2078
+ 401: {
2079
+ type: string;
2080
+ title: string;
2081
+ status: number;
2082
+ detail?: string | undefined;
2083
+ instance?: string | undefined;
2084
+ code?: string | undefined;
2085
+ errors?: {
2086
+ path: string;
2087
+ message: string;
2088
+ summary?: string | undefined;
2089
+ }[] | undefined;
2090
+ };
2091
+ };
2092
+ };
2093
+ };
2094
+ };
2095
+ } & {
2096
+ "linear-pipeline-executions": {
2097
+ get: {
2098
+ body: unknown;
2099
+ params: {};
2100
+ query: {
2101
+ projectId: string & {
2102
+ readonly __brand: "uuidv7";
2103
+ };
2104
+ };
2105
+ headers: unknown;
2106
+ response: {
2107
+ 422: {
2108
+ type: string;
2109
+ title: string;
2110
+ status: number;
2111
+ detail?: string | undefined;
2112
+ instance?: string | undefined;
2113
+ code?: string | undefined;
2114
+ errors?: {
2115
+ path: string;
2116
+ message: string;
2117
+ summary?: string | undefined;
2118
+ }[] | undefined;
2119
+ };
2120
+ 500: {
2121
+ type: string;
2122
+ title: string;
2123
+ status: number;
2124
+ detail?: string | undefined;
2125
+ instance?: string | undefined;
2126
+ code?: string | undefined;
2127
+ errors?: {
2128
+ path: string;
2129
+ message: string;
2130
+ summary?: string | undefined;
2131
+ }[] | undefined;
2132
+ };
2133
+ 200: {
2134
+ id: string & {
2135
+ readonly __brand: "uuidv7";
2136
+ };
2137
+ projectId: string & {
2138
+ readonly __brand: "uuidv7";
2139
+ };
2140
+ linearPipelineDefinitionId: string & {
2141
+ readonly __brand: "uuidv7";
2142
+ };
2143
+ linearPipelineDefinitionVersion: number;
2144
+ status: "needs_review" | "queued" | "running" | "succeeded" | "failed" | "cancelled" | "blocked";
2145
+ currentStepKey: string | null;
2146
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
2147
+ stepRuns: {
2148
+ id: string & {
2149
+ readonly __brand: "uuidv7";
2150
+ };
2151
+ linearPipelineExecutionId: string & {
2152
+ readonly __brand: "uuidv7";
2153
+ };
2154
+ linearPipelineStepDefinitionId: string & {
2155
+ readonly __brand: "uuidv7";
2156
+ };
2157
+ stepDefinitionId: string & {
2158
+ readonly __brand: "uuidv7";
2159
+ };
2160
+ stepDefinitionVersion: number;
2161
+ stepKey: string;
2162
+ position: number;
2163
+ status: "needs_review" | "queued" | "running" | "cancelled" | "blocked" | "pending" | "satisfied" | "unsatisfied" | "skipped";
2164
+ satisfactionStatus: "not_evaluated" | "satisfied_by_policy" | "satisfied_by_user" | "unsatisfied_by_policy";
2165
+ selectedStepExecutionId: (string & {
2166
+ readonly __brand: "uuidv7";
2167
+ }) | null;
2168
+ selectedStepExecutionResultId: (string & {
2169
+ readonly __brand: "uuidv7";
2170
+ }) | null;
2171
+ acceptedByUserId: (string & {
2172
+ readonly __brand: "uuidv7";
2173
+ }) | null;
2174
+ acceptedAt: string | null;
2175
+ acceptanceReason: string | null;
2176
+ attemptCount: number;
2177
+ lastAttemptedAt: string | null;
2178
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
2179
+ outputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
2180
+ attempts: {
2181
+ id: string & {
2182
+ readonly __brand: "uuidv7";
2183
+ };
2184
+ linearPipelineStepRunId: string & {
2185
+ readonly __brand: "uuidv7";
2186
+ };
2187
+ stepExecutionId: string & {
2188
+ readonly __brand: "uuidv7";
2189
+ };
2190
+ attemptNumber: number;
2191
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
2192
+ evaluationId: (string & {
2193
+ readonly __brand: "uuidv7";
2194
+ }) | null;
2195
+ createdAt: string;
2196
+ completedAt: string | null;
2197
+ }[];
2198
+ evaluations: {
2199
+ id: string & {
2200
+ readonly __brand: "uuidv7";
2201
+ };
2202
+ linearPipelineExecutionId: string & {
2203
+ readonly __brand: "uuidv7";
2204
+ };
2205
+ linearPipelineStepRunId: string & {
2206
+ readonly __brand: "uuidv7";
2207
+ };
2208
+ linearPipelineStepRunAttemptId: string & {
2209
+ readonly __brand: "uuidv7";
2210
+ };
2211
+ stepExecutionId: string & {
2212
+ readonly __brand: "uuidv7";
2213
+ };
2214
+ stepExecutionResultId: string & {
2215
+ readonly __brand: "uuidv7";
2216
+ };
2217
+ stepExecutionResultStatus: "succeeded" | "failed" | null;
2218
+ linearPipelineStepAdvancementPolicyDefinitionId: string & {
2219
+ readonly __brand: "uuidv7";
2220
+ };
2221
+ factsSnapshotJson: import("@boboddy/core/common/contracts/json").AnyJsonObject;
2222
+ ruleResultsJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
2223
+ finalStatus: "pass" | "fail";
2224
+ finalAction: "continue" | "block" | "needs_review" | "complete";
2225
+ finalPayloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
2226
+ createdAt: string;
2227
+ }[];
2228
+ createdAt: string;
2229
+ updatedAt: string;
2230
+ }[];
2231
+ events: {
2232
+ id: string & {
2233
+ readonly __brand: "uuidv7";
2234
+ };
2235
+ linearPipelineExecutionId: string & {
2236
+ readonly __brand: "uuidv7";
2237
+ };
2238
+ type: "pipeline_queued" | "pipeline_started" | "step_run_created" | "step_attempt_queued" | "step_attempt_started" | "step_attempt_succeeded" | "step_attempt_failed" | "step_evaluated" | "step_satisfied_by_policy" | "step_satisfied_by_user" | "step_unsatisfied_by_policy" | "step_retriggered" | "step_blocked" | "step_needs_review" | "pipeline_succeeded" | "pipeline_failed" | "pipeline_blocked" | "pipeline_needs_review" | "pipeline_cancelled";
2239
+ payloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
2240
+ createdAt: string;
2241
+ }[];
2242
+ startedAt: string | null;
2243
+ completedAt: string | null;
2244
+ createdAt: string;
2245
+ updatedAt: string;
2246
+ }[];
2247
+ 403: {
2248
+ type: string;
2249
+ title: string;
2250
+ status: number;
2251
+ detail?: string | undefined;
2252
+ instance?: string | undefined;
2253
+ code?: string | undefined;
2254
+ errors?: {
2255
+ path: string;
2256
+ message: string;
2257
+ summary?: string | undefined;
2258
+ }[] | undefined;
2259
+ };
2260
+ 401: {
2261
+ type: string;
2262
+ title: string;
2263
+ status: number;
2264
+ detail?: string | undefined;
2265
+ instance?: string | undefined;
2266
+ code?: string | undefined;
2267
+ errors?: {
2268
+ path: string;
2269
+ message: string;
2270
+ summary?: string | undefined;
2271
+ }[] | undefined;
2272
+ };
2273
+ };
2274
+ };
2275
+ };
2276
+ } & {
2277
+ "linear-pipeline-executions": {
2278
+ "by-definition": {
2279
+ ":linearPipelineDefinitionId": {
2280
+ get: {
2281
+ body: unknown;
2282
+ params: {
2283
+ linearPipelineDefinitionId: string & {
2284
+ readonly __brand: "uuidv7";
2285
+ };
2286
+ };
2287
+ query: unknown;
2288
+ headers: unknown;
2289
+ response: {
2290
+ 422: {
2291
+ type: string;
2292
+ title: string;
2293
+ status: number;
2294
+ detail?: string | undefined;
2295
+ instance?: string | undefined;
2296
+ code?: string | undefined;
2297
+ errors?: {
2298
+ path: string;
2299
+ message: string;
2300
+ summary?: string | undefined;
2301
+ }[] | undefined;
2302
+ };
2303
+ 404: {
2304
+ type: string;
2305
+ title: string;
2306
+ status: number;
2307
+ detail?: string | undefined;
2308
+ instance?: string | undefined;
2309
+ code?: string | undefined;
2310
+ errors?: {
2311
+ path: string;
2312
+ message: string;
2313
+ summary?: string | undefined;
2314
+ }[] | undefined;
2315
+ };
2316
+ 500: {
2317
+ type: string;
2318
+ title: string;
2319
+ status: number;
2320
+ detail?: string | undefined;
2321
+ instance?: string | undefined;
2322
+ code?: string | undefined;
2323
+ errors?: {
2324
+ path: string;
2325
+ message: string;
2326
+ summary?: string | undefined;
2327
+ }[] | undefined;
2328
+ };
2329
+ 200: {
2330
+ id: string & {
2331
+ readonly __brand: "uuidv7";
2332
+ };
2333
+ projectId: string & {
2334
+ readonly __brand: "uuidv7";
2335
+ };
2336
+ linearPipelineDefinitionId: string & {
2337
+ readonly __brand: "uuidv7";
2338
+ };
2339
+ linearPipelineDefinitionVersion: number;
2340
+ status: "needs_review" | "queued" | "running" | "succeeded" | "failed" | "cancelled" | "blocked";
2341
+ currentStepKey: string | null;
2342
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
2343
+ stepRuns: {
2344
+ id: string & {
2345
+ readonly __brand: "uuidv7";
2346
+ };
2347
+ linearPipelineExecutionId: string & {
2348
+ readonly __brand: "uuidv7";
2349
+ };
2350
+ linearPipelineStepDefinitionId: string & {
2351
+ readonly __brand: "uuidv7";
2352
+ };
2353
+ stepDefinitionId: string & {
2354
+ readonly __brand: "uuidv7";
2355
+ };
2356
+ stepDefinitionVersion: number;
2357
+ stepKey: string;
2358
+ position: number;
2359
+ status: "needs_review" | "queued" | "running" | "cancelled" | "blocked" | "pending" | "satisfied" | "unsatisfied" | "skipped";
2360
+ satisfactionStatus: "not_evaluated" | "satisfied_by_policy" | "satisfied_by_user" | "unsatisfied_by_policy";
2361
+ selectedStepExecutionId: (string & {
2362
+ readonly __brand: "uuidv7";
2363
+ }) | null;
2364
+ selectedStepExecutionResultId: (string & {
2365
+ readonly __brand: "uuidv7";
2366
+ }) | null;
2367
+ acceptedByUserId: (string & {
2368
+ readonly __brand: "uuidv7";
2369
+ }) | null;
2370
+ acceptedAt: string | null;
2371
+ acceptanceReason: string | null;
2372
+ attemptCount: number;
2373
+ lastAttemptedAt: string | null;
2374
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
2375
+ outputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
2376
+ attempts: {
2377
+ id: string & {
2378
+ readonly __brand: "uuidv7";
2379
+ };
2380
+ linearPipelineStepRunId: string & {
2381
+ readonly __brand: "uuidv7";
2382
+ };
2383
+ stepExecutionId: string & {
2384
+ readonly __brand: "uuidv7";
2385
+ };
2386
+ attemptNumber: number;
2387
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
2388
+ evaluationId: (string & {
2389
+ readonly __brand: "uuidv7";
2390
+ }) | null;
2391
+ createdAt: string;
2392
+ completedAt: string | null;
2393
+ }[];
2394
+ evaluations: {
2395
+ id: string & {
2396
+ readonly __brand: "uuidv7";
2397
+ };
2398
+ linearPipelineExecutionId: string & {
2399
+ readonly __brand: "uuidv7";
2400
+ };
2401
+ linearPipelineStepRunId: string & {
2402
+ readonly __brand: "uuidv7";
2403
+ };
2404
+ linearPipelineStepRunAttemptId: string & {
2405
+ readonly __brand: "uuidv7";
2406
+ };
2407
+ stepExecutionId: string & {
2408
+ readonly __brand: "uuidv7";
2409
+ };
2410
+ stepExecutionResultId: string & {
2411
+ readonly __brand: "uuidv7";
2412
+ };
2413
+ stepExecutionResultStatus: "succeeded" | "failed" | null;
2414
+ linearPipelineStepAdvancementPolicyDefinitionId: string & {
2415
+ readonly __brand: "uuidv7";
2416
+ };
2417
+ factsSnapshotJson: import("@boboddy/core/common/contracts/json").AnyJsonObject;
2418
+ ruleResultsJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
2419
+ finalStatus: "pass" | "fail";
2420
+ finalAction: "continue" | "block" | "needs_review" | "complete";
2421
+ finalPayloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
2422
+ createdAt: string;
2423
+ }[];
2424
+ createdAt: string;
2425
+ updatedAt: string;
2426
+ }[];
2427
+ events: {
2428
+ id: string & {
2429
+ readonly __brand: "uuidv7";
2430
+ };
2431
+ linearPipelineExecutionId: string & {
2432
+ readonly __brand: "uuidv7";
2433
+ };
2434
+ type: "pipeline_queued" | "pipeline_started" | "step_run_created" | "step_attempt_queued" | "step_attempt_started" | "step_attempt_succeeded" | "step_attempt_failed" | "step_evaluated" | "step_satisfied_by_policy" | "step_satisfied_by_user" | "step_unsatisfied_by_policy" | "step_retriggered" | "step_blocked" | "step_needs_review" | "pipeline_succeeded" | "pipeline_failed" | "pipeline_blocked" | "pipeline_needs_review" | "pipeline_cancelled";
2435
+ payloadJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
2436
+ createdAt: string;
2437
+ }[];
2438
+ startedAt: string | null;
2439
+ completedAt: string | null;
2440
+ createdAt: string;
2441
+ updatedAt: string;
2442
+ }[];
2443
+ 403: {
2444
+ type: string;
2445
+ title: string;
2446
+ status: number;
2447
+ detail?: string | undefined;
2448
+ instance?: string | undefined;
2449
+ code?: string | undefined;
2450
+ errors?: {
2451
+ path: string;
2452
+ message: string;
2453
+ summary?: string | undefined;
2454
+ }[] | undefined;
2455
+ };
2456
+ 401: {
2457
+ type: string;
2458
+ title: string;
2459
+ status: number;
2460
+ detail?: string | undefined;
2461
+ instance?: string | undefined;
2462
+ code?: string | undefined;
2463
+ errors?: {
2464
+ path: string;
2465
+ message: string;
2466
+ summary?: string | undefined;
2467
+ }[] | undefined;
2468
+ };
2469
+ };
2470
+ };
2471
+ };
2472
+ };
2473
+ };
2474
+ }, {
2475
+ derive: {};
2476
+ resolve: {};
2477
+ schema: {};
2478
+ standaloneSchema: {};
2479
+ response: {};
2480
+ }, {
2481
+ derive: {};
2482
+ resolve: {};
2483
+ schema: {};
2484
+ standaloneSchema: {};
2485
+ response: {};
2486
+ } & {
2487
+ derive: {
2488
+ readonly auth: {
2489
+ readonly userId: import("@boboddy/core/common/contracts/uuid-v7").UuidV7;
2490
+ readonly user: {
2491
+ id: string;
2492
+ createdAt: Date;
2493
+ updatedAt: Date;
2494
+ email: string;
2495
+ emailVerified: boolean;
2496
+ name: string;
2497
+ image?: string | null | undefined | undefined;
2498
+ };
2499
+ readonly session: {
2500
+ id: string;
2501
+ createdAt: Date;
2502
+ updatedAt: Date;
2503
+ userId: string;
2504
+ expiresAt: Date;
2505
+ token: string;
2506
+ ipAddress?: string | null | undefined | undefined;
2507
+ userAgent?: string | null | undefined | undefined;
2508
+ };
2509
+ };
2510
+ };
2511
+ resolve: {};
2512
+ schema: {};
2513
+ standaloneSchema: {};
2514
+ response: import("elysia").ExtractErrorFromHandle<{
2515
+ readonly auth: {
2516
+ readonly userId: import("@boboddy/core/common/contracts/uuid-v7").UuidV7;
2517
+ readonly user: {
2518
+ id: string;
2519
+ createdAt: Date;
2520
+ updatedAt: Date;
2521
+ email: string;
2522
+ emailVerified: boolean;
2523
+ name: string;
2524
+ image?: string | null | undefined | undefined;
2525
+ };
2526
+ readonly session: {
2527
+ id: string;
2528
+ createdAt: Date;
2529
+ updatedAt: Date;
2530
+ userId: string;
2531
+ expiresAt: Date;
2532
+ token: string;
2533
+ ipAddress?: string | null | undefined | undefined;
2534
+ userAgent?: string | null | undefined | undefined;
2535
+ };
2536
+ };
2537
+ }>;
2538
+ }>;