@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,1482 @@
1
+ import { Elysia } from "elysia";
2
+ import type { AppContext } from "@boboddy/core/lib/di";
3
+ export declare const createStepExecutionsRoutes: (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
+ "step-executions": {
20
+ claims: {
21
+ post: {
22
+ body: {
23
+ projectId: string & {
24
+ readonly __brand: "uuidv7";
25
+ };
26
+ workerId: string;
27
+ batchSize: number;
28
+ leaseDurationSeconds: number;
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
+ 500: {
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
+ 200: {
61
+ stepExecution: {
62
+ id: string & {
63
+ readonly __brand: "uuidv7";
64
+ };
65
+ projectId: string & {
66
+ readonly __brand: "uuidv7";
67
+ };
68
+ stepDefinitionId: string & {
69
+ readonly __brand: "uuidv7";
70
+ };
71
+ stepDefinitionVersion: number;
72
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
73
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
74
+ claimedBy: string | null;
75
+ claimedAt: string | null;
76
+ lastHeartbeatAt: string | null;
77
+ leaseExpiresAt: string | null;
78
+ executionTimeoutSeconds: number | null;
79
+ executionDeadlineAt: string | null;
80
+ startedAt: string | null;
81
+ completedAt: string | null;
82
+ results: {
83
+ id: string & {
84
+ readonly __brand: "uuidv7";
85
+ };
86
+ stepExecutionId: string & {
87
+ readonly __brand: "uuidv7";
88
+ };
89
+ attempt: number;
90
+ status: "succeeded" | "failed";
91
+ resultJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
92
+ errorJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
93
+ signals: {
94
+ id: string & {
95
+ readonly __brand: "uuidv7";
96
+ };
97
+ stepExecutionResultId: string & {
98
+ readonly __brand: "uuidv7";
99
+ };
100
+ key: string;
101
+ type: "string" | "number" | "boolean" | "object" | "array";
102
+ source: "extracted" | "computed";
103
+ valueJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
104
+ sourcePath: string | null;
105
+ computedFromSignalKeys: string[] | null;
106
+ createdAt: string;
107
+ }[];
108
+ createdAt: string;
109
+ }[];
110
+ createdAt: string;
111
+ updatedAt: string;
112
+ };
113
+ claimToken: string;
114
+ }[];
115
+ 403: {
116
+ type: string;
117
+ title: string;
118
+ status: number;
119
+ detail?: string | undefined;
120
+ instance?: string | undefined;
121
+ code?: string | undefined;
122
+ errors?: {
123
+ path: string;
124
+ message: string;
125
+ summary?: string | undefined;
126
+ }[] | undefined;
127
+ };
128
+ 400: {
129
+ type: string;
130
+ title: string;
131
+ status: number;
132
+ detail?: string | undefined;
133
+ instance?: string | undefined;
134
+ code?: string | undefined;
135
+ errors?: {
136
+ path: string;
137
+ message: string;
138
+ summary?: string | undefined;
139
+ }[] | undefined;
140
+ };
141
+ 401: {
142
+ type: string;
143
+ title: string;
144
+ status: number;
145
+ detail?: string | undefined;
146
+ instance?: string | undefined;
147
+ code?: string | undefined;
148
+ errors?: {
149
+ path: string;
150
+ message: string;
151
+ summary?: string | undefined;
152
+ }[] | undefined;
153
+ };
154
+ };
155
+ };
156
+ };
157
+ };
158
+ } & {
159
+ "step-executions": {
160
+ post: {
161
+ body: {
162
+ projectId: string & {
163
+ readonly __brand: "uuidv7";
164
+ };
165
+ stepDefinitionId: string & {
166
+ readonly __brand: "uuidv7";
167
+ };
168
+ stepDefinitionVersion: number;
169
+ inputJson?: import("@boboddy/core/common/contracts/json").AnyJsonValue | undefined;
170
+ status?: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned" | undefined;
171
+ executionTimeoutSeconds?: number | null | undefined;
172
+ };
173
+ params: {};
174
+ query: unknown;
175
+ headers: unknown;
176
+ response: {
177
+ 422: {
178
+ type: string;
179
+ title: string;
180
+ status: number;
181
+ detail?: string | undefined;
182
+ instance?: string | undefined;
183
+ code?: string | undefined;
184
+ errors?: {
185
+ path: string;
186
+ message: string;
187
+ summary?: string | undefined;
188
+ }[] | undefined;
189
+ };
190
+ 404: {
191
+ type: string;
192
+ title: string;
193
+ status: number;
194
+ detail?: string | undefined;
195
+ instance?: string | undefined;
196
+ code?: string | undefined;
197
+ errors?: {
198
+ path: string;
199
+ message: string;
200
+ summary?: string | undefined;
201
+ }[] | undefined;
202
+ };
203
+ 409: {
204
+ type: string;
205
+ title: string;
206
+ status: number;
207
+ detail?: string | undefined;
208
+ instance?: string | undefined;
209
+ code?: string | undefined;
210
+ errors?: {
211
+ path: string;
212
+ message: string;
213
+ summary?: string | undefined;
214
+ }[] | undefined;
215
+ };
216
+ 500: {
217
+ type: string;
218
+ title: string;
219
+ status: number;
220
+ detail?: string | undefined;
221
+ instance?: string | undefined;
222
+ code?: string | undefined;
223
+ errors?: {
224
+ path: string;
225
+ message: string;
226
+ summary?: string | undefined;
227
+ }[] | undefined;
228
+ };
229
+ 200: {
230
+ id: string & {
231
+ readonly __brand: "uuidv7";
232
+ };
233
+ projectId: string & {
234
+ readonly __brand: "uuidv7";
235
+ };
236
+ stepDefinitionId: string & {
237
+ readonly __brand: "uuidv7";
238
+ };
239
+ stepDefinitionVersion: number;
240
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
241
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
242
+ claimedBy: string | null;
243
+ claimedAt: string | null;
244
+ lastHeartbeatAt: string | null;
245
+ leaseExpiresAt: string | null;
246
+ executionTimeoutSeconds: number | null;
247
+ executionDeadlineAt: string | null;
248
+ startedAt: string | null;
249
+ completedAt: string | null;
250
+ results: {
251
+ id: string & {
252
+ readonly __brand: "uuidv7";
253
+ };
254
+ stepExecutionId: string & {
255
+ readonly __brand: "uuidv7";
256
+ };
257
+ attempt: number;
258
+ status: "succeeded" | "failed";
259
+ resultJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
260
+ errorJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
261
+ signals: {
262
+ id: string & {
263
+ readonly __brand: "uuidv7";
264
+ };
265
+ stepExecutionResultId: string & {
266
+ readonly __brand: "uuidv7";
267
+ };
268
+ key: string;
269
+ type: "string" | "number" | "boolean" | "object" | "array";
270
+ source: "extracted" | "computed";
271
+ valueJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
272
+ sourcePath: string | null;
273
+ computedFromSignalKeys: string[] | null;
274
+ createdAt: string;
275
+ }[];
276
+ createdAt: string;
277
+ }[];
278
+ createdAt: string;
279
+ updatedAt: string;
280
+ };
281
+ 403: {
282
+ type: string;
283
+ title: string;
284
+ status: number;
285
+ detail?: string | undefined;
286
+ instance?: string | undefined;
287
+ code?: string | undefined;
288
+ errors?: {
289
+ path: string;
290
+ message: string;
291
+ summary?: string | undefined;
292
+ }[] | undefined;
293
+ };
294
+ 400: {
295
+ type: string;
296
+ title: string;
297
+ status: number;
298
+ detail?: string | undefined;
299
+ instance?: string | undefined;
300
+ code?: string | undefined;
301
+ errors?: {
302
+ path: string;
303
+ message: string;
304
+ summary?: string | undefined;
305
+ }[] | undefined;
306
+ };
307
+ 401: {
308
+ type: string;
309
+ title: string;
310
+ status: number;
311
+ detail?: string | undefined;
312
+ instance?: string | undefined;
313
+ code?: string | undefined;
314
+ errors?: {
315
+ path: string;
316
+ message: string;
317
+ summary?: string | undefined;
318
+ }[] | undefined;
319
+ };
320
+ };
321
+ };
322
+ };
323
+ } & {
324
+ "step-executions": {
325
+ ":stepExecutionId": {
326
+ heartbeat: {
327
+ put: {
328
+ body: {
329
+ claimToken: string;
330
+ leaseDurationSeconds: number;
331
+ };
332
+ params: {
333
+ stepExecutionId: string & {
334
+ readonly __brand: "uuidv7";
335
+ };
336
+ };
337
+ query: unknown;
338
+ headers: unknown;
339
+ response: {
340
+ 422: {
341
+ type: string;
342
+ title: string;
343
+ status: number;
344
+ detail?: string | undefined;
345
+ instance?: string | undefined;
346
+ code?: string | undefined;
347
+ errors?: {
348
+ path: string;
349
+ message: string;
350
+ summary?: string | undefined;
351
+ }[] | undefined;
352
+ };
353
+ 404: {
354
+ type: string;
355
+ title: string;
356
+ status: number;
357
+ detail?: string | undefined;
358
+ instance?: string | undefined;
359
+ code?: string | undefined;
360
+ errors?: {
361
+ path: string;
362
+ message: string;
363
+ summary?: string | undefined;
364
+ }[] | undefined;
365
+ };
366
+ 409: {
367
+ type: string;
368
+ title: string;
369
+ status: number;
370
+ detail?: string | undefined;
371
+ instance?: string | undefined;
372
+ code?: string | undefined;
373
+ errors?: {
374
+ path: string;
375
+ message: string;
376
+ summary?: string | undefined;
377
+ }[] | undefined;
378
+ };
379
+ 500: {
380
+ type: string;
381
+ title: string;
382
+ status: number;
383
+ detail?: string | undefined;
384
+ instance?: string | undefined;
385
+ code?: string | undefined;
386
+ errors?: {
387
+ path: string;
388
+ message: string;
389
+ summary?: string | undefined;
390
+ }[] | undefined;
391
+ };
392
+ 200: {
393
+ id: string & {
394
+ readonly __brand: "uuidv7";
395
+ };
396
+ projectId: string & {
397
+ readonly __brand: "uuidv7";
398
+ };
399
+ stepDefinitionId: string & {
400
+ readonly __brand: "uuidv7";
401
+ };
402
+ stepDefinitionVersion: number;
403
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
404
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
405
+ claimedBy: string | null;
406
+ claimedAt: string | null;
407
+ lastHeartbeatAt: string | null;
408
+ leaseExpiresAt: string | null;
409
+ executionTimeoutSeconds: number | null;
410
+ executionDeadlineAt: string | null;
411
+ startedAt: string | null;
412
+ completedAt: string | null;
413
+ results: {
414
+ id: string & {
415
+ readonly __brand: "uuidv7";
416
+ };
417
+ stepExecutionId: string & {
418
+ readonly __brand: "uuidv7";
419
+ };
420
+ attempt: number;
421
+ status: "succeeded" | "failed";
422
+ resultJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
423
+ errorJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
424
+ signals: {
425
+ id: string & {
426
+ readonly __brand: "uuidv7";
427
+ };
428
+ stepExecutionResultId: string & {
429
+ readonly __brand: "uuidv7";
430
+ };
431
+ key: string;
432
+ type: "string" | "number" | "boolean" | "object" | "array";
433
+ source: "extracted" | "computed";
434
+ valueJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
435
+ sourcePath: string | null;
436
+ computedFromSignalKeys: string[] | null;
437
+ createdAt: string;
438
+ }[];
439
+ createdAt: string;
440
+ }[];
441
+ createdAt: string;
442
+ updatedAt: string;
443
+ };
444
+ 403: {
445
+ type: string;
446
+ title: string;
447
+ status: number;
448
+ detail?: string | undefined;
449
+ instance?: string | undefined;
450
+ code?: string | undefined;
451
+ errors?: {
452
+ path: string;
453
+ message: string;
454
+ summary?: string | undefined;
455
+ }[] | undefined;
456
+ };
457
+ 401: {
458
+ type: string;
459
+ title: string;
460
+ status: number;
461
+ detail?: string | undefined;
462
+ instance?: string | undefined;
463
+ code?: string | undefined;
464
+ errors?: {
465
+ path: string;
466
+ message: string;
467
+ summary?: string | undefined;
468
+ }[] | undefined;
469
+ };
470
+ };
471
+ };
472
+ };
473
+ };
474
+ };
475
+ } & {
476
+ "step-executions": {
477
+ ":stepExecutionId": {
478
+ "worker-context": {
479
+ post: {
480
+ body: {
481
+ claimToken: string;
482
+ };
483
+ params: {
484
+ stepExecutionId: string & {
485
+ readonly __brand: "uuidv7";
486
+ };
487
+ };
488
+ query: unknown;
489
+ headers: unknown;
490
+ response: {
491
+ 422: {
492
+ type: string;
493
+ title: string;
494
+ status: number;
495
+ detail?: string | undefined;
496
+ instance?: string | undefined;
497
+ code?: string | undefined;
498
+ errors?: {
499
+ path: string;
500
+ message: string;
501
+ summary?: string | undefined;
502
+ }[] | undefined;
503
+ };
504
+ 404: {
505
+ type: string;
506
+ title: string;
507
+ status: number;
508
+ detail?: string | undefined;
509
+ instance?: string | undefined;
510
+ code?: string | undefined;
511
+ errors?: {
512
+ path: string;
513
+ message: string;
514
+ summary?: string | undefined;
515
+ }[] | undefined;
516
+ };
517
+ 409: {
518
+ type: string;
519
+ title: string;
520
+ status: number;
521
+ detail?: string | undefined;
522
+ instance?: string | undefined;
523
+ code?: string | undefined;
524
+ errors?: {
525
+ path: string;
526
+ message: string;
527
+ summary?: string | undefined;
528
+ }[] | undefined;
529
+ };
530
+ 500: {
531
+ type: string;
532
+ title: string;
533
+ status: number;
534
+ detail?: string | undefined;
535
+ instance?: string | undefined;
536
+ code?: string | undefined;
537
+ errors?: {
538
+ path: string;
539
+ message: string;
540
+ summary?: string | undefined;
541
+ }[] | undefined;
542
+ };
543
+ 200: {
544
+ projectId: string & {
545
+ readonly __brand: "uuidv7";
546
+ };
547
+ gitUrl: string;
548
+ requestedBranch: string | null;
549
+ projectOpencodeConfig: {
550
+ relativePath: string;
551
+ present: boolean;
552
+ commands: {
553
+ name: string;
554
+ description: string;
555
+ run: string;
556
+ cwd: string | null;
557
+ }[];
558
+ services: {
559
+ name: string;
560
+ description: string;
561
+ run: string;
562
+ cwd: string | null;
563
+ dependsOn: string[];
564
+ expose: {
565
+ targetPort: number;
566
+ protocol: "tcp" | "http";
567
+ };
568
+ healthcheck: {
569
+ protocol: "tcp" | "http";
570
+ path: string | null;
571
+ expectedStatus: number | null;
572
+ };
573
+ }[];
574
+ };
575
+ stepExecution: {
576
+ id: string & {
577
+ readonly __brand: "uuidv7";
578
+ };
579
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
580
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
581
+ executionTimeoutSeconds: number | null;
582
+ };
583
+ stepDefinition: {
584
+ id: string & {
585
+ readonly __brand: "uuidv7";
586
+ };
587
+ key: string;
588
+ name: string;
589
+ prompt: string;
590
+ resultSchemaJson: import("@boboddy/core/common/contracts/json").AnyJsonObject | null;
591
+ opencodeMcpJson: Record<string, {
592
+ type: "local";
593
+ command: string[];
594
+ environment?: Record<string, string> | undefined;
595
+ enabled?: boolean | undefined;
596
+ timeout?: number | undefined;
597
+ } | {
598
+ type: "remote";
599
+ url: string;
600
+ enabled?: boolean | undefined;
601
+ headers?: Record<string, string> | undefined;
602
+ oauth?: false | {
603
+ clientId?: string | undefined;
604
+ clientSecret?: string | undefined;
605
+ scope?: string | undefined;
606
+ redirectUri?: string | undefined;
607
+ } | undefined;
608
+ timeout?: number | undefined;
609
+ } | {
610
+ enabled: boolean;
611
+ }> | null;
612
+ };
613
+ agentPrompt: {
614
+ sessionTitle: string;
615
+ promptText: string;
616
+ };
617
+ };
618
+ 403: {
619
+ type: string;
620
+ title: string;
621
+ status: number;
622
+ detail?: string | undefined;
623
+ instance?: string | undefined;
624
+ code?: string | undefined;
625
+ errors?: {
626
+ path: string;
627
+ message: string;
628
+ summary?: string | undefined;
629
+ }[] | undefined;
630
+ };
631
+ 401: {
632
+ type: string;
633
+ title: string;
634
+ status: number;
635
+ detail?: string | undefined;
636
+ instance?: string | undefined;
637
+ code?: string | undefined;
638
+ errors?: {
639
+ path: string;
640
+ message: string;
641
+ summary?: string | undefined;
642
+ }[] | undefined;
643
+ };
644
+ };
645
+ };
646
+ };
647
+ };
648
+ };
649
+ } & {
650
+ "step-executions": {
651
+ ":stepExecutionId": {
652
+ completions: {
653
+ post: {
654
+ body: {
655
+ claimToken: string;
656
+ status: "succeeded" | "failed";
657
+ resultJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
658
+ errorJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
659
+ };
660
+ params: {
661
+ stepExecutionId: string & {
662
+ readonly __brand: "uuidv7";
663
+ };
664
+ };
665
+ query: unknown;
666
+ headers: unknown;
667
+ response: {
668
+ 422: {
669
+ type: string;
670
+ title: string;
671
+ status: number;
672
+ detail?: string | undefined;
673
+ instance?: string | undefined;
674
+ code?: string | undefined;
675
+ errors?: {
676
+ path: string;
677
+ message: string;
678
+ summary?: string | undefined;
679
+ }[] | undefined;
680
+ };
681
+ 404: {
682
+ type: string;
683
+ title: string;
684
+ status: number;
685
+ detail?: string | undefined;
686
+ instance?: string | undefined;
687
+ code?: string | undefined;
688
+ errors?: {
689
+ path: string;
690
+ message: string;
691
+ summary?: string | undefined;
692
+ }[] | undefined;
693
+ };
694
+ 409: {
695
+ type: string;
696
+ title: string;
697
+ status: number;
698
+ detail?: string | undefined;
699
+ instance?: string | undefined;
700
+ code?: string | undefined;
701
+ errors?: {
702
+ path: string;
703
+ message: string;
704
+ summary?: string | undefined;
705
+ }[] | undefined;
706
+ };
707
+ 500: {
708
+ type: string;
709
+ title: string;
710
+ status: number;
711
+ detail?: string | undefined;
712
+ instance?: string | undefined;
713
+ code?: string | undefined;
714
+ errors?: {
715
+ path: string;
716
+ message: string;
717
+ summary?: string | undefined;
718
+ }[] | undefined;
719
+ };
720
+ 200: {
721
+ id: string & {
722
+ readonly __brand: "uuidv7";
723
+ };
724
+ projectId: string & {
725
+ readonly __brand: "uuidv7";
726
+ };
727
+ stepDefinitionId: string & {
728
+ readonly __brand: "uuidv7";
729
+ };
730
+ stepDefinitionVersion: number;
731
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
732
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
733
+ claimedBy: string | null;
734
+ claimedAt: string | null;
735
+ lastHeartbeatAt: string | null;
736
+ leaseExpiresAt: string | null;
737
+ executionTimeoutSeconds: number | null;
738
+ executionDeadlineAt: string | null;
739
+ startedAt: string | null;
740
+ completedAt: string | null;
741
+ results: {
742
+ id: string & {
743
+ readonly __brand: "uuidv7";
744
+ };
745
+ stepExecutionId: string & {
746
+ readonly __brand: "uuidv7";
747
+ };
748
+ attempt: number;
749
+ status: "succeeded" | "failed";
750
+ resultJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
751
+ errorJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
752
+ signals: {
753
+ id: string & {
754
+ readonly __brand: "uuidv7";
755
+ };
756
+ stepExecutionResultId: string & {
757
+ readonly __brand: "uuidv7";
758
+ };
759
+ key: string;
760
+ type: "string" | "number" | "boolean" | "object" | "array";
761
+ source: "extracted" | "computed";
762
+ valueJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
763
+ sourcePath: string | null;
764
+ computedFromSignalKeys: string[] | null;
765
+ createdAt: string;
766
+ }[];
767
+ createdAt: string;
768
+ }[];
769
+ createdAt: string;
770
+ updatedAt: string;
771
+ };
772
+ 403: {
773
+ type: string;
774
+ title: string;
775
+ status: number;
776
+ detail?: string | undefined;
777
+ instance?: string | undefined;
778
+ code?: string | undefined;
779
+ errors?: {
780
+ path: string;
781
+ message: string;
782
+ summary?: string | undefined;
783
+ }[] | undefined;
784
+ };
785
+ 401: {
786
+ type: string;
787
+ title: string;
788
+ status: number;
789
+ detail?: string | undefined;
790
+ instance?: string | undefined;
791
+ code?: string | undefined;
792
+ errors?: {
793
+ path: string;
794
+ message: string;
795
+ summary?: string | undefined;
796
+ }[] | undefined;
797
+ };
798
+ };
799
+ };
800
+ };
801
+ };
802
+ };
803
+ } & {
804
+ "step-executions": {
805
+ ":stepExecutionId": {
806
+ running: {
807
+ put: {
808
+ body: unknown;
809
+ params: {
810
+ stepExecutionId: string & {
811
+ readonly __brand: "uuidv7";
812
+ };
813
+ };
814
+ query: unknown;
815
+ headers: unknown;
816
+ response: {
817
+ 422: {
818
+ type: string;
819
+ title: string;
820
+ status: number;
821
+ detail?: string | undefined;
822
+ instance?: string | undefined;
823
+ code?: string | undefined;
824
+ errors?: {
825
+ path: string;
826
+ message: string;
827
+ summary?: string | undefined;
828
+ }[] | undefined;
829
+ };
830
+ 404: {
831
+ type: string;
832
+ title: string;
833
+ status: number;
834
+ detail?: string | undefined;
835
+ instance?: string | undefined;
836
+ code?: string | undefined;
837
+ errors?: {
838
+ path: string;
839
+ message: string;
840
+ summary?: string | undefined;
841
+ }[] | undefined;
842
+ };
843
+ 500: {
844
+ type: string;
845
+ title: string;
846
+ status: number;
847
+ detail?: string | undefined;
848
+ instance?: string | undefined;
849
+ code?: string | undefined;
850
+ errors?: {
851
+ path: string;
852
+ message: string;
853
+ summary?: string | undefined;
854
+ }[] | undefined;
855
+ };
856
+ 200: {
857
+ id: string & {
858
+ readonly __brand: "uuidv7";
859
+ };
860
+ projectId: string & {
861
+ readonly __brand: "uuidv7";
862
+ };
863
+ stepDefinitionId: string & {
864
+ readonly __brand: "uuidv7";
865
+ };
866
+ stepDefinitionVersion: number;
867
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
868
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
869
+ claimedBy: string | null;
870
+ claimedAt: string | null;
871
+ lastHeartbeatAt: string | null;
872
+ leaseExpiresAt: string | null;
873
+ executionTimeoutSeconds: number | null;
874
+ executionDeadlineAt: string | null;
875
+ startedAt: string | null;
876
+ completedAt: string | null;
877
+ results: {
878
+ id: string & {
879
+ readonly __brand: "uuidv7";
880
+ };
881
+ stepExecutionId: string & {
882
+ readonly __brand: "uuidv7";
883
+ };
884
+ attempt: number;
885
+ status: "succeeded" | "failed";
886
+ resultJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
887
+ errorJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
888
+ signals: {
889
+ id: string & {
890
+ readonly __brand: "uuidv7";
891
+ };
892
+ stepExecutionResultId: string & {
893
+ readonly __brand: "uuidv7";
894
+ };
895
+ key: string;
896
+ type: "string" | "number" | "boolean" | "object" | "array";
897
+ source: "extracted" | "computed";
898
+ valueJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
899
+ sourcePath: string | null;
900
+ computedFromSignalKeys: string[] | null;
901
+ createdAt: string;
902
+ }[];
903
+ createdAt: string;
904
+ }[];
905
+ createdAt: string;
906
+ updatedAt: string;
907
+ };
908
+ 403: {
909
+ type: string;
910
+ title: string;
911
+ status: number;
912
+ detail?: string | undefined;
913
+ instance?: string | undefined;
914
+ code?: string | undefined;
915
+ errors?: {
916
+ path: string;
917
+ message: string;
918
+ summary?: string | undefined;
919
+ }[] | undefined;
920
+ };
921
+ 401: {
922
+ type: string;
923
+ title: string;
924
+ status: number;
925
+ detail?: string | undefined;
926
+ instance?: string | undefined;
927
+ code?: string | undefined;
928
+ errors?: {
929
+ path: string;
930
+ message: string;
931
+ summary?: string | undefined;
932
+ }[] | undefined;
933
+ };
934
+ };
935
+ };
936
+ };
937
+ };
938
+ };
939
+ } & {
940
+ "step-execution-results": {
941
+ post: {
942
+ body: {
943
+ status: "succeeded" | "failed";
944
+ stepExecutionId: string & {
945
+ readonly __brand: "uuidv7";
946
+ };
947
+ attempt: number;
948
+ resultJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
949
+ errorJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
950
+ };
951
+ params: {};
952
+ query: unknown;
953
+ headers: unknown;
954
+ response: {
955
+ 422: {
956
+ type: string;
957
+ title: string;
958
+ status: number;
959
+ detail?: string | undefined;
960
+ instance?: string | undefined;
961
+ code?: string | undefined;
962
+ errors?: {
963
+ path: string;
964
+ message: string;
965
+ summary?: string | undefined;
966
+ }[] | undefined;
967
+ };
968
+ 404: {
969
+ type: string;
970
+ title: string;
971
+ status: number;
972
+ detail?: string | undefined;
973
+ instance?: string | undefined;
974
+ code?: string | undefined;
975
+ errors?: {
976
+ path: string;
977
+ message: string;
978
+ summary?: string | undefined;
979
+ }[] | undefined;
980
+ };
981
+ 409: {
982
+ type: string;
983
+ title: string;
984
+ status: number;
985
+ detail?: string | undefined;
986
+ instance?: string | undefined;
987
+ code?: string | undefined;
988
+ errors?: {
989
+ path: string;
990
+ message: string;
991
+ summary?: string | undefined;
992
+ }[] | undefined;
993
+ };
994
+ 500: {
995
+ type: string;
996
+ title: string;
997
+ status: number;
998
+ detail?: string | undefined;
999
+ instance?: string | undefined;
1000
+ code?: string | undefined;
1001
+ errors?: {
1002
+ path: string;
1003
+ message: string;
1004
+ summary?: string | undefined;
1005
+ }[] | undefined;
1006
+ };
1007
+ 200: {
1008
+ id: string & {
1009
+ readonly __brand: "uuidv7";
1010
+ };
1011
+ stepExecutionId: string & {
1012
+ readonly __brand: "uuidv7";
1013
+ };
1014
+ attempt: number;
1015
+ status: "succeeded" | "failed";
1016
+ resultJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1017
+ errorJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1018
+ signals: {
1019
+ id: string & {
1020
+ readonly __brand: "uuidv7";
1021
+ };
1022
+ stepExecutionResultId: string & {
1023
+ readonly __brand: "uuidv7";
1024
+ };
1025
+ key: string;
1026
+ type: "string" | "number" | "boolean" | "object" | "array";
1027
+ source: "extracted" | "computed";
1028
+ valueJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1029
+ sourcePath: string | null;
1030
+ computedFromSignalKeys: string[] | null;
1031
+ createdAt: string;
1032
+ }[];
1033
+ createdAt: string;
1034
+ };
1035
+ 403: {
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
+ 401: {
1049
+ type: string;
1050
+ title: string;
1051
+ status: number;
1052
+ detail?: string | undefined;
1053
+ instance?: string | undefined;
1054
+ code?: string | undefined;
1055
+ errors?: {
1056
+ path: string;
1057
+ message: string;
1058
+ summary?: string | undefined;
1059
+ }[] | undefined;
1060
+ };
1061
+ };
1062
+ };
1063
+ };
1064
+ } & {
1065
+ "step-execution-results": {
1066
+ ":stepExecutionResultId": {
1067
+ signals: {
1068
+ extract: {
1069
+ post: {
1070
+ body: unknown;
1071
+ params: {
1072
+ stepExecutionResultId: string & {
1073
+ readonly __brand: "uuidv7";
1074
+ };
1075
+ };
1076
+ query: unknown;
1077
+ headers: unknown;
1078
+ response: {
1079
+ 422: {
1080
+ type: string;
1081
+ title: string;
1082
+ status: number;
1083
+ detail?: string | undefined;
1084
+ instance?: string | undefined;
1085
+ code?: string | undefined;
1086
+ errors?: {
1087
+ path: string;
1088
+ message: string;
1089
+ summary?: string | undefined;
1090
+ }[] | undefined;
1091
+ };
1092
+ 404: {
1093
+ type: string;
1094
+ title: string;
1095
+ status: number;
1096
+ detail?: string | undefined;
1097
+ instance?: string | undefined;
1098
+ code?: string | undefined;
1099
+ errors?: {
1100
+ path: string;
1101
+ message: string;
1102
+ summary?: string | undefined;
1103
+ }[] | undefined;
1104
+ };
1105
+ 500: {
1106
+ type: string;
1107
+ title: string;
1108
+ status: number;
1109
+ detail?: string | undefined;
1110
+ instance?: string | undefined;
1111
+ code?: string | undefined;
1112
+ errors?: {
1113
+ path: string;
1114
+ message: string;
1115
+ summary?: string | undefined;
1116
+ }[] | undefined;
1117
+ };
1118
+ 200: {
1119
+ id: string & {
1120
+ readonly __brand: "uuidv7";
1121
+ };
1122
+ stepExecutionResultId: string & {
1123
+ readonly __brand: "uuidv7";
1124
+ };
1125
+ key: string;
1126
+ type: "string" | "number" | "boolean" | "object" | "array";
1127
+ source: "extracted" | "computed";
1128
+ valueJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1129
+ sourcePath: string | null;
1130
+ computedFromSignalKeys: string[] | null;
1131
+ createdAt: string;
1132
+ }[];
1133
+ 403: {
1134
+ type: string;
1135
+ title: string;
1136
+ status: number;
1137
+ detail?: string | undefined;
1138
+ instance?: string | undefined;
1139
+ code?: string | undefined;
1140
+ errors?: {
1141
+ path: string;
1142
+ message: string;
1143
+ summary?: string | undefined;
1144
+ }[] | undefined;
1145
+ };
1146
+ 401: {
1147
+ type: string;
1148
+ title: string;
1149
+ status: number;
1150
+ detail?: string | undefined;
1151
+ instance?: string | undefined;
1152
+ code?: string | undefined;
1153
+ errors?: {
1154
+ path: string;
1155
+ message: string;
1156
+ summary?: string | undefined;
1157
+ }[] | undefined;
1158
+ };
1159
+ };
1160
+ };
1161
+ };
1162
+ };
1163
+ };
1164
+ };
1165
+ } & {
1166
+ "step-executions": {
1167
+ ":stepExecutionId": {
1168
+ get: {
1169
+ body: unknown;
1170
+ params: {
1171
+ stepExecutionId: string & {
1172
+ readonly __brand: "uuidv7";
1173
+ };
1174
+ };
1175
+ query: unknown;
1176
+ headers: unknown;
1177
+ response: {
1178
+ 422: {
1179
+ type: string;
1180
+ title: string;
1181
+ status: number;
1182
+ detail?: string | undefined;
1183
+ instance?: string | undefined;
1184
+ code?: string | undefined;
1185
+ errors?: {
1186
+ path: string;
1187
+ message: string;
1188
+ summary?: string | undefined;
1189
+ }[] | undefined;
1190
+ };
1191
+ 404: {
1192
+ type: string;
1193
+ title: string;
1194
+ status: number;
1195
+ detail?: string | undefined;
1196
+ instance?: string | undefined;
1197
+ code?: string | undefined;
1198
+ errors?: {
1199
+ path: string;
1200
+ message: string;
1201
+ summary?: string | undefined;
1202
+ }[] | undefined;
1203
+ };
1204
+ 500: {
1205
+ type: string;
1206
+ title: string;
1207
+ status: number;
1208
+ detail?: string | undefined;
1209
+ instance?: string | undefined;
1210
+ code?: string | undefined;
1211
+ errors?: {
1212
+ path: string;
1213
+ message: string;
1214
+ summary?: string | undefined;
1215
+ }[] | undefined;
1216
+ };
1217
+ 200: {
1218
+ id: string & {
1219
+ readonly __brand: "uuidv7";
1220
+ };
1221
+ projectId: string & {
1222
+ readonly __brand: "uuidv7";
1223
+ };
1224
+ stepDefinitionId: string & {
1225
+ readonly __brand: "uuidv7";
1226
+ };
1227
+ stepDefinitionVersion: number;
1228
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
1229
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1230
+ claimedBy: string | null;
1231
+ claimedAt: string | null;
1232
+ lastHeartbeatAt: string | null;
1233
+ leaseExpiresAt: string | null;
1234
+ executionTimeoutSeconds: number | null;
1235
+ executionDeadlineAt: string | null;
1236
+ startedAt: string | null;
1237
+ completedAt: string | null;
1238
+ results: {
1239
+ id: string & {
1240
+ readonly __brand: "uuidv7";
1241
+ };
1242
+ stepExecutionId: string & {
1243
+ readonly __brand: "uuidv7";
1244
+ };
1245
+ attempt: number;
1246
+ status: "succeeded" | "failed";
1247
+ resultJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1248
+ errorJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1249
+ signals: {
1250
+ id: string & {
1251
+ readonly __brand: "uuidv7";
1252
+ };
1253
+ stepExecutionResultId: string & {
1254
+ readonly __brand: "uuidv7";
1255
+ };
1256
+ key: string;
1257
+ type: "string" | "number" | "boolean" | "object" | "array";
1258
+ source: "extracted" | "computed";
1259
+ valueJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1260
+ sourcePath: string | null;
1261
+ computedFromSignalKeys: string[] | null;
1262
+ createdAt: string;
1263
+ }[];
1264
+ createdAt: string;
1265
+ }[];
1266
+ createdAt: string;
1267
+ updatedAt: string;
1268
+ };
1269
+ 403: {
1270
+ type: string;
1271
+ title: string;
1272
+ status: number;
1273
+ detail?: string | undefined;
1274
+ instance?: string | undefined;
1275
+ code?: string | undefined;
1276
+ errors?: {
1277
+ path: string;
1278
+ message: string;
1279
+ summary?: string | undefined;
1280
+ }[] | undefined;
1281
+ };
1282
+ 401: {
1283
+ type: string;
1284
+ title: string;
1285
+ status: number;
1286
+ detail?: string | undefined;
1287
+ instance?: string | undefined;
1288
+ code?: string | undefined;
1289
+ errors?: {
1290
+ path: string;
1291
+ message: string;
1292
+ summary?: string | undefined;
1293
+ }[] | undefined;
1294
+ };
1295
+ };
1296
+ };
1297
+ };
1298
+ };
1299
+ } & {
1300
+ "step-executions": {
1301
+ get: {
1302
+ body: unknown;
1303
+ params: {};
1304
+ query: {
1305
+ projectId: string & {
1306
+ readonly __brand: "uuidv7";
1307
+ };
1308
+ };
1309
+ headers: unknown;
1310
+ response: {
1311
+ 422: {
1312
+ type: string;
1313
+ title: string;
1314
+ status: number;
1315
+ detail?: string | undefined;
1316
+ instance?: string | undefined;
1317
+ code?: string | undefined;
1318
+ errors?: {
1319
+ path: string;
1320
+ message: string;
1321
+ summary?: string | undefined;
1322
+ }[] | undefined;
1323
+ };
1324
+ 500: {
1325
+ type: string;
1326
+ title: string;
1327
+ status: number;
1328
+ detail?: string | undefined;
1329
+ instance?: string | undefined;
1330
+ code?: string | undefined;
1331
+ errors?: {
1332
+ path: string;
1333
+ message: string;
1334
+ summary?: string | undefined;
1335
+ }[] | undefined;
1336
+ };
1337
+ 200: {
1338
+ id: string & {
1339
+ readonly __brand: "uuidv7";
1340
+ };
1341
+ projectId: string & {
1342
+ readonly __brand: "uuidv7";
1343
+ };
1344
+ stepDefinitionId: string & {
1345
+ readonly __brand: "uuidv7";
1346
+ };
1347
+ stepDefinitionVersion: number;
1348
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled" | "skipped" | "timeout" | "abandoned";
1349
+ inputJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1350
+ claimedBy: string | null;
1351
+ claimedAt: string | null;
1352
+ lastHeartbeatAt: string | null;
1353
+ leaseExpiresAt: string | null;
1354
+ executionTimeoutSeconds: number | null;
1355
+ executionDeadlineAt: string | null;
1356
+ startedAt: string | null;
1357
+ completedAt: string | null;
1358
+ results: {
1359
+ id: string & {
1360
+ readonly __brand: "uuidv7";
1361
+ };
1362
+ stepExecutionId: string & {
1363
+ readonly __brand: "uuidv7";
1364
+ };
1365
+ attempt: number;
1366
+ status: "succeeded" | "failed";
1367
+ resultJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1368
+ errorJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1369
+ signals: {
1370
+ id: string & {
1371
+ readonly __brand: "uuidv7";
1372
+ };
1373
+ stepExecutionResultId: string & {
1374
+ readonly __brand: "uuidv7";
1375
+ };
1376
+ key: string;
1377
+ type: "string" | "number" | "boolean" | "object" | "array";
1378
+ source: "extracted" | "computed";
1379
+ valueJson: import("@boboddy/core/common/contracts/json").AnyJsonValue;
1380
+ sourcePath: string | null;
1381
+ computedFromSignalKeys: string[] | null;
1382
+ createdAt: string;
1383
+ }[];
1384
+ createdAt: string;
1385
+ }[];
1386
+ createdAt: string;
1387
+ updatedAt: string;
1388
+ }[];
1389
+ 403: {
1390
+ type: string;
1391
+ title: string;
1392
+ status: number;
1393
+ detail?: string | undefined;
1394
+ instance?: string | undefined;
1395
+ code?: string | undefined;
1396
+ errors?: {
1397
+ path: string;
1398
+ message: string;
1399
+ summary?: string | undefined;
1400
+ }[] | undefined;
1401
+ };
1402
+ 401: {
1403
+ type: string;
1404
+ title: string;
1405
+ status: number;
1406
+ detail?: string | undefined;
1407
+ instance?: string | undefined;
1408
+ code?: string | undefined;
1409
+ errors?: {
1410
+ path: string;
1411
+ message: string;
1412
+ summary?: string | undefined;
1413
+ }[] | undefined;
1414
+ };
1415
+ };
1416
+ };
1417
+ };
1418
+ }, {
1419
+ derive: {};
1420
+ resolve: {};
1421
+ schema: {};
1422
+ standaloneSchema: {};
1423
+ response: {};
1424
+ }, {
1425
+ derive: {};
1426
+ resolve: {};
1427
+ schema: {};
1428
+ standaloneSchema: {};
1429
+ response: {};
1430
+ } & {
1431
+ derive: {
1432
+ readonly auth: {
1433
+ readonly userId: import("@boboddy/core/common/contracts/uuid-v7").UuidV7;
1434
+ readonly user: {
1435
+ id: string;
1436
+ createdAt: Date;
1437
+ updatedAt: Date;
1438
+ email: string;
1439
+ emailVerified: boolean;
1440
+ name: string;
1441
+ image?: string | null | undefined | undefined;
1442
+ };
1443
+ readonly session: {
1444
+ id: string;
1445
+ createdAt: Date;
1446
+ updatedAt: Date;
1447
+ userId: string;
1448
+ expiresAt: Date;
1449
+ token: string;
1450
+ ipAddress?: string | null | undefined | undefined;
1451
+ userAgent?: string | null | undefined | undefined;
1452
+ };
1453
+ };
1454
+ };
1455
+ resolve: {};
1456
+ schema: {};
1457
+ standaloneSchema: {};
1458
+ response: import("elysia").ExtractErrorFromHandle<{
1459
+ readonly auth: {
1460
+ readonly userId: import("@boboddy/core/common/contracts/uuid-v7").UuidV7;
1461
+ readonly user: {
1462
+ id: string;
1463
+ createdAt: Date;
1464
+ updatedAt: Date;
1465
+ email: string;
1466
+ emailVerified: boolean;
1467
+ name: string;
1468
+ image?: string | null | undefined | undefined;
1469
+ };
1470
+ readonly session: {
1471
+ id: string;
1472
+ createdAt: Date;
1473
+ updatedAt: Date;
1474
+ userId: string;
1475
+ expiresAt: Date;
1476
+ token: string;
1477
+ ipAddress?: string | null | undefined | undefined;
1478
+ userAgent?: string | null | undefined | undefined;
1479
+ };
1480
+ };
1481
+ }>;
1482
+ }>;