storybooker 0.0.1

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,2023 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/health": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ /** Health check */
14
+ get: {
15
+ parameters: {
16
+ query?: never;
17
+ header?: never;
18
+ path?: never;
19
+ cookie?: never;
20
+ };
21
+ requestBody?: never;
22
+ responses: {
23
+ /** @description Service is healthy. */
24
+ 200: {
25
+ headers: {
26
+ [name: string]: unknown;
27
+ };
28
+ content?: never;
29
+ };
30
+ };
31
+ };
32
+ put?: never;
33
+ post?: never;
34
+ delete?: never;
35
+ options?: never;
36
+ head?: never;
37
+ patch?: never;
38
+ trace?: never;
39
+ };
40
+ "/": {
41
+ parameters: {
42
+ query?: never;
43
+ header?: never;
44
+ path?: never;
45
+ cookie?: never;
46
+ };
47
+ /** Homepage */
48
+ get: {
49
+ parameters: {
50
+ query?: never;
51
+ header?: never;
52
+ path?: never;
53
+ cookie?: never;
54
+ };
55
+ requestBody?: never;
56
+ responses: {
57
+ /** @description Root endpoint */
58
+ 200: {
59
+ headers: {
60
+ [name: string]: unknown;
61
+ };
62
+ content: {
63
+ /** @example <!DOCTYPE html> */
64
+ "text/html": unknown;
65
+ "application/json": {
66
+ urls: {
67
+ [key: string]: {
68
+ [key: string]: string;
69
+ };
70
+ };
71
+ };
72
+ };
73
+ };
74
+ /** @description Redirects to all projects */
75
+ 303: {
76
+ headers: {
77
+ /** @description The URL to redirect to */
78
+ Location?: string;
79
+ [name: string]: unknown;
80
+ };
81
+ content?: never;
82
+ };
83
+ /** @description Unauthenticated access */
84
+ 401: {
85
+ headers: {
86
+ [name: string]: unknown;
87
+ };
88
+ content: {
89
+ "application/json": components["schemas"]["error"];
90
+ };
91
+ };
92
+ /** @description Unauthorized access */
93
+ 403: {
94
+ headers: {
95
+ [name: string]: unknown;
96
+ };
97
+ content: {
98
+ "application/json": components["schemas"]["error"];
99
+ };
100
+ };
101
+ /** @description An unexpected server-error occurred. */
102
+ 500: {
103
+ headers: {
104
+ [name: string]: unknown;
105
+ };
106
+ content: {
107
+ "application/json": components["schemas"]["error"];
108
+ };
109
+ };
110
+ };
111
+ };
112
+ put?: never;
113
+ post?: never;
114
+ delete?: never;
115
+ options?: never;
116
+ head?: never;
117
+ patch?: never;
118
+ trace?: never;
119
+ };
120
+ "/openapi": {
121
+ parameters: {
122
+ query?: never;
123
+ header?: never;
124
+ path?: never;
125
+ cookie?: never;
126
+ };
127
+ /** OpenAPI spec */
128
+ get: {
129
+ parameters: {
130
+ query?: never;
131
+ header?: never;
132
+ path?: never;
133
+ cookie?: never;
134
+ };
135
+ requestBody?: never;
136
+ responses: {
137
+ 200: {
138
+ headers: {
139
+ [name: string]: unknown;
140
+ };
141
+ content: {
142
+ /** @example {
143
+ * "info": {
144
+ * "title": "StoryBooker"
145
+ * },
146
+ * "openapi": "3.1.0"
147
+ * } */
148
+ "application/json": unknown;
149
+ /** @example <!DOCTYPE html> */
150
+ "text/html": string;
151
+ };
152
+ };
153
+ };
154
+ };
155
+ put?: never;
156
+ post?: never;
157
+ delete?: never;
158
+ options?: never;
159
+ head?: never;
160
+ patch?: never;
161
+ trace?: never;
162
+ };
163
+ "/{projectId}/{buildSHA}/{filepath}": {
164
+ parameters: {
165
+ query?: never;
166
+ header?: never;
167
+ path?: never;
168
+ cookie?: never;
169
+ };
170
+ /** Serve StoryBook */
171
+ get: {
172
+ parameters: {
173
+ query?: never;
174
+ header?: never;
175
+ path: {
176
+ buildSHA: string;
177
+ filepath: string;
178
+ projectId: string;
179
+ };
180
+ cookie?: never;
181
+ };
182
+ requestBody?: never;
183
+ responses: {
184
+ /** Serving the uploaded file */
185
+ 200: {
186
+ headers: {
187
+ [name: string]: unknown;
188
+ };
189
+ content?: never;
190
+ };
191
+ };
192
+ };
193
+ put?: never;
194
+ post?: never;
195
+ delete?: never;
196
+ options?: never;
197
+ head?: never;
198
+ patch?: never;
199
+ trace?: never;
200
+ };
201
+ "/projects/create": {
202
+ parameters: {
203
+ query?: never;
204
+ header?: never;
205
+ path?: never;
206
+ cookie?: never;
207
+ };
208
+ /** Form to create project */
209
+ get: {
210
+ parameters: {
211
+ query?: never;
212
+ header?: never;
213
+ path?: never;
214
+ cookie?: never;
215
+ };
216
+ requestBody?: never;
217
+ responses: {
218
+ /** @description Form to create project */
219
+ 200: {
220
+ headers: {
221
+ [name: string]: unknown;
222
+ };
223
+ content: {
224
+ /** @example <!DOCTYPE html> */
225
+ "text/html": unknown;
226
+ };
227
+ };
228
+ /** @description Invalid request data */
229
+ 400: {
230
+ headers: {
231
+ [name: string]: unknown;
232
+ };
233
+ content: {
234
+ "application/json": components["schemas"]["error"];
235
+ };
236
+ };
237
+ /** @description Unauthenticated access */
238
+ 401: {
239
+ headers: {
240
+ [name: string]: unknown;
241
+ };
242
+ content: {
243
+ "application/json": components["schemas"]["error"];
244
+ };
245
+ };
246
+ /** @description Unauthorized access */
247
+ 403: {
248
+ headers: {
249
+ [name: string]: unknown;
250
+ };
251
+ content: {
252
+ "application/json": components["schemas"]["error"];
253
+ };
254
+ };
255
+ /** @description An unexpected server-error occurred. */
256
+ 500: {
257
+ headers: {
258
+ [name: string]: unknown;
259
+ };
260
+ content: {
261
+ "application/json": components["schemas"]["error"];
262
+ };
263
+ };
264
+ };
265
+ };
266
+ put?: never;
267
+ /** Create a new project */
268
+ post: {
269
+ parameters: {
270
+ query?: never;
271
+ header?: never;
272
+ path?: never;
273
+ cookie?: never;
274
+ };
275
+ /** @description Data about the project */
276
+ requestBody: {
277
+ content: {
278
+ "application/x-www-form-urlencoded": {
279
+ /**
280
+ * @description Default branch to use for GitHub repository
281
+ * @default main
282
+ */
283
+ gitHubDefaultBranch?: string;
284
+ /** @description Path to the storybook project with respect to repository root. */
285
+ gitHubPath?: string;
286
+ gitHubRepository: string;
287
+ id: components["schemas"]["projectId"];
288
+ /** Format: uri */
289
+ jiraDomain?: string;
290
+ /** @description Name of the project. */
291
+ name: string;
292
+ /**
293
+ * @description Days after which the builds in the project should be purged.
294
+ * @default 30
295
+ */
296
+ purgeBuildsAfterDays?: number;
297
+ };
298
+ };
299
+ };
300
+ responses: {
301
+ /** @description Project created successfully */
302
+ 201: {
303
+ headers: {
304
+ [name: string]: unknown;
305
+ };
306
+ content: {
307
+ "application/json": {
308
+ project: components["schemas"]["project"];
309
+ };
310
+ };
311
+ };
312
+ /** @description Project created, redirecting... */
313
+ 303: {
314
+ headers: {
315
+ /** Format: url */
316
+ Location?: unknown;
317
+ [name: string]: unknown;
318
+ };
319
+ content?: never;
320
+ };
321
+ /** @description Invalid request data */
322
+ 400: {
323
+ headers: {
324
+ [name: string]: unknown;
325
+ };
326
+ content: {
327
+ "application/json": components["schemas"]["error"];
328
+ };
329
+ };
330
+ /** @description Unauthenticated access */
331
+ 401: {
332
+ headers: {
333
+ [name: string]: unknown;
334
+ };
335
+ content: {
336
+ "application/json": components["schemas"]["error"];
337
+ };
338
+ };
339
+ /** @description Unauthorized access */
340
+ 403: {
341
+ headers: {
342
+ [name: string]: unknown;
343
+ };
344
+ content: {
345
+ "application/json": components["schemas"]["error"];
346
+ };
347
+ };
348
+ /** @description Project already exists. */
349
+ 409: {
350
+ headers: {
351
+ [name: string]: unknown;
352
+ };
353
+ content: {
354
+ "application/json": components["schemas"]["error"];
355
+ };
356
+ };
357
+ /** @description Unsupported Media Type */
358
+ 415: {
359
+ headers: {
360
+ [name: string]: unknown;
361
+ };
362
+ content?: never;
363
+ };
364
+ /** @description An unexpected server-error occurred. */
365
+ 500: {
366
+ headers: {
367
+ [name: string]: unknown;
368
+ };
369
+ content: {
370
+ "application/json": components["schemas"]["error"];
371
+ };
372
+ };
373
+ };
374
+ };
375
+ delete?: never;
376
+ options?: never;
377
+ head?: never;
378
+ patch?: never;
379
+ trace?: never;
380
+ };
381
+ "/projects/{projectId}": {
382
+ parameters: {
383
+ query?: never;
384
+ header?: never;
385
+ path?: never;
386
+ cookie?: never;
387
+ };
388
+ /** Get project details */
389
+ get: {
390
+ parameters: {
391
+ query?: never;
392
+ header?: never;
393
+ path: {
394
+ /** @description The ID of the project. */
395
+ projectId: components["schemas"]["projectId"];
396
+ };
397
+ cookie?: never;
398
+ };
399
+ requestBody?: never;
400
+ responses: {
401
+ /** @description Project details retrieved successfully */
402
+ 200: {
403
+ headers: {
404
+ [name: string]: unknown;
405
+ };
406
+ content: {
407
+ /** @example <!DOCTYPE html> */
408
+ "text/html": unknown;
409
+ "application/json": {
410
+ project: components["schemas"]["project"];
411
+ };
412
+ };
413
+ };
414
+ /** @description Invalid request data */
415
+ 400: {
416
+ headers: {
417
+ [name: string]: unknown;
418
+ };
419
+ content: {
420
+ "application/json": components["schemas"]["error"];
421
+ };
422
+ };
423
+ /** @description Unauthenticated access */
424
+ 401: {
425
+ headers: {
426
+ [name: string]: unknown;
427
+ };
428
+ content: {
429
+ "application/json": components["schemas"]["error"];
430
+ };
431
+ };
432
+ /** @description Unauthorized access */
433
+ 403: {
434
+ headers: {
435
+ [name: string]: unknown;
436
+ };
437
+ content: {
438
+ "application/json": components["schemas"]["error"];
439
+ };
440
+ };
441
+ /** @description Matching project not found. */
442
+ 404: {
443
+ headers: {
444
+ [name: string]: unknown;
445
+ };
446
+ content?: never;
447
+ };
448
+ /** @description An unexpected server-error occurred. */
449
+ 500: {
450
+ headers: {
451
+ [name: string]: unknown;
452
+ };
453
+ content: {
454
+ "application/json": components["schemas"]["error"];
455
+ };
456
+ };
457
+ };
458
+ };
459
+ put?: never;
460
+ post?: never;
461
+ /** Delete a project */
462
+ delete: {
463
+ parameters: {
464
+ query?: never;
465
+ header?: never;
466
+ path: {
467
+ /** @description The ID of the project. */
468
+ projectId: components["schemas"]["projectId"];
469
+ };
470
+ cookie?: never;
471
+ };
472
+ requestBody?: never;
473
+ responses: {
474
+ /** @description Project deleted successfully */
475
+ 204: {
476
+ headers: {
477
+ [name: string]: unknown;
478
+ };
479
+ content?: never;
480
+ };
481
+ /** @description Invalid request data */
482
+ 400: {
483
+ headers: {
484
+ [name: string]: unknown;
485
+ };
486
+ content: {
487
+ "application/json": components["schemas"]["error"];
488
+ };
489
+ };
490
+ /** @description Unauthenticated access */
491
+ 401: {
492
+ headers: {
493
+ [name: string]: unknown;
494
+ };
495
+ content: {
496
+ "application/json": components["schemas"]["error"];
497
+ };
498
+ };
499
+ /** @description Unauthorized access */
500
+ 403: {
501
+ headers: {
502
+ [name: string]: unknown;
503
+ };
504
+ content: {
505
+ "application/json": components["schemas"]["error"];
506
+ };
507
+ };
508
+ /** @description Matching project not found. */
509
+ 404: {
510
+ headers: {
511
+ [name: string]: unknown;
512
+ };
513
+ content?: never;
514
+ };
515
+ /** @description An unexpected server-error occurred. */
516
+ 500: {
517
+ headers: {
518
+ [name: string]: unknown;
519
+ };
520
+ content: {
521
+ "application/json": components["schemas"]["error"];
522
+ };
523
+ };
524
+ };
525
+ };
526
+ options?: never;
527
+ head?: never;
528
+ patch?: never;
529
+ trace?: never;
530
+ };
531
+ "/projects": {
532
+ parameters: {
533
+ query?: never;
534
+ header?: never;
535
+ path?: never;
536
+ cookie?: never;
537
+ };
538
+ /** List all projects */
539
+ get: {
540
+ parameters: {
541
+ query?: never;
542
+ header?: never;
543
+ path?: never;
544
+ cookie?: never;
545
+ };
546
+ requestBody?: never;
547
+ responses: {
548
+ /** @description A list of projects. */
549
+ 200: {
550
+ headers: {
551
+ [name: string]: unknown;
552
+ };
553
+ content: {
554
+ /** @example <!DOCTYPE html> */
555
+ "text/html": unknown;
556
+ "application/json": {
557
+ projects: components["schemas"]["project"][];
558
+ };
559
+ };
560
+ };
561
+ /** @description Invalid request data */
562
+ 400: {
563
+ headers: {
564
+ [name: string]: unknown;
565
+ };
566
+ content: {
567
+ "application/json": components["schemas"]["error"];
568
+ };
569
+ };
570
+ /** @description Unauthenticated access */
571
+ 401: {
572
+ headers: {
573
+ [name: string]: unknown;
574
+ };
575
+ content: {
576
+ "application/json": components["schemas"]["error"];
577
+ };
578
+ };
579
+ /** @description Unauthorized access */
580
+ 403: {
581
+ headers: {
582
+ [name: string]: unknown;
583
+ };
584
+ content: {
585
+ "application/json": components["schemas"]["error"];
586
+ };
587
+ };
588
+ /** @description An unexpected server-error occurred. */
589
+ 500: {
590
+ headers: {
591
+ [name: string]: unknown;
592
+ };
593
+ content: {
594
+ "application/json": components["schemas"]["error"];
595
+ };
596
+ };
597
+ };
598
+ };
599
+ put?: never;
600
+ post?: never;
601
+ delete?: never;
602
+ options?: never;
603
+ head?: never;
604
+ patch?: never;
605
+ trace?: never;
606
+ };
607
+ "/projects/{projectId}/update": {
608
+ parameters: {
609
+ query?: never;
610
+ header?: never;
611
+ path?: never;
612
+ cookie?: never;
613
+ };
614
+ /** Form to update project */
615
+ get: {
616
+ parameters: {
617
+ query?: never;
618
+ header?: never;
619
+ path?: never;
620
+ cookie?: never;
621
+ };
622
+ requestBody?: never;
623
+ responses: {
624
+ /** @description Form to update project */
625
+ 200: {
626
+ headers: {
627
+ [name: string]: unknown;
628
+ };
629
+ content: {
630
+ /** @example <!DOCTYPE html> */
631
+ "text/html": unknown;
632
+ };
633
+ };
634
+ /** @description Invalid request data */
635
+ 400: {
636
+ headers: {
637
+ [name: string]: unknown;
638
+ };
639
+ content: {
640
+ "application/json": components["schemas"]["error"];
641
+ };
642
+ };
643
+ /** @description Unauthenticated access */
644
+ 401: {
645
+ headers: {
646
+ [name: string]: unknown;
647
+ };
648
+ content: {
649
+ "application/json": components["schemas"]["error"];
650
+ };
651
+ };
652
+ /** @description Unauthorized access */
653
+ 403: {
654
+ headers: {
655
+ [name: string]: unknown;
656
+ };
657
+ content: {
658
+ "application/json": components["schemas"]["error"];
659
+ };
660
+ };
661
+ /** @description An unexpected server-error occurred. */
662
+ 500: {
663
+ headers: {
664
+ [name: string]: unknown;
665
+ };
666
+ content: {
667
+ "application/json": components["schemas"]["error"];
668
+ };
669
+ };
670
+ };
671
+ };
672
+ put?: never;
673
+ /** Update project details */
674
+ post: {
675
+ parameters: {
676
+ query?: never;
677
+ header?: never;
678
+ path: {
679
+ /** @description The ID of the project. */
680
+ projectId: components["schemas"]["projectId"];
681
+ };
682
+ cookie?: never;
683
+ };
684
+ /** @description Updated project data */
685
+ requestBody: {
686
+ content: {
687
+ "application/x-www-form-urlencoded": {
688
+ /** @description Path to the storybook project with respect to repository root. */
689
+ gitHubPath?: string;
690
+ gitHubRepository?: string;
691
+ /** Format: uri */
692
+ jiraDomain?: string;
693
+ latestBuildSHA?: components["schemas"]["buildSHA"] | "";
694
+ /** @description Name of the project. */
695
+ name?: string;
696
+ /**
697
+ * @description Days after which the builds in the project should be purged.
698
+ * @default 30
699
+ */
700
+ purgeBuildsAfterDays?: number;
701
+ gitHubDefaultBranch?: string;
702
+ };
703
+ };
704
+ };
705
+ responses: {
706
+ /** @description Project updated successfully */
707
+ 202: {
708
+ headers: {
709
+ [name: string]: unknown;
710
+ };
711
+ content?: never;
712
+ };
713
+ /** @description Project updated, redirecting... */
714
+ 303: {
715
+ headers: {
716
+ /** Format: url */
717
+ Location?: unknown;
718
+ [name: string]: unknown;
719
+ };
720
+ content?: never;
721
+ };
722
+ /** @description Invalid request data */
723
+ 400: {
724
+ headers: {
725
+ [name: string]: unknown;
726
+ };
727
+ content: {
728
+ "application/json": components["schemas"]["error"];
729
+ };
730
+ };
731
+ /** @description Unauthenticated access */
732
+ 401: {
733
+ headers: {
734
+ [name: string]: unknown;
735
+ };
736
+ content: {
737
+ "application/json": components["schemas"]["error"];
738
+ };
739
+ };
740
+ /** @description Unauthorized access */
741
+ 403: {
742
+ headers: {
743
+ [name: string]: unknown;
744
+ };
745
+ content: {
746
+ "application/json": components["schemas"]["error"];
747
+ };
748
+ };
749
+ /** @description Matching project not found. */
750
+ 404: {
751
+ headers: {
752
+ [name: string]: unknown;
753
+ };
754
+ content?: never;
755
+ };
756
+ /** @description Unsupported Media Type */
757
+ 415: {
758
+ headers: {
759
+ [name: string]: unknown;
760
+ };
761
+ content?: never;
762
+ };
763
+ /** @description An unexpected server-error occurred. */
764
+ 500: {
765
+ headers: {
766
+ [name: string]: unknown;
767
+ };
768
+ content: {
769
+ "application/json": components["schemas"]["error"];
770
+ };
771
+ };
772
+ };
773
+ };
774
+ delete?: never;
775
+ options?: never;
776
+ head?: never;
777
+ patch?: never;
778
+ trace?: never;
779
+ };
780
+ "/projects/{projectId}/labels/create": {
781
+ parameters: {
782
+ query?: never;
783
+ header?: never;
784
+ path?: never;
785
+ cookie?: never;
786
+ };
787
+ /** Form to create label */
788
+ get: {
789
+ parameters: {
790
+ query?: never;
791
+ header?: never;
792
+ path?: never;
793
+ cookie?: never;
794
+ };
795
+ requestBody?: never;
796
+ responses: {
797
+ /** @description Form to create label */
798
+ 200: {
799
+ headers: {
800
+ [name: string]: unknown;
801
+ };
802
+ content: {
803
+ /** @example <!DOCTYPE html> */
804
+ "text/html": unknown;
805
+ };
806
+ };
807
+ /** @description Invalid request data */
808
+ 400: {
809
+ headers: {
810
+ [name: string]: unknown;
811
+ };
812
+ content: {
813
+ "application/json": components["schemas"]["error"];
814
+ };
815
+ };
816
+ /** @description Unauthenticated access */
817
+ 401: {
818
+ headers: {
819
+ [name: string]: unknown;
820
+ };
821
+ content: {
822
+ "application/json": components["schemas"]["error"];
823
+ };
824
+ };
825
+ /** @description Unauthorized access */
826
+ 403: {
827
+ headers: {
828
+ [name: string]: unknown;
829
+ };
830
+ content: {
831
+ "application/json": components["schemas"]["error"];
832
+ };
833
+ };
834
+ /** @description An unexpected server-error occurred. */
835
+ 500: {
836
+ headers: {
837
+ [name: string]: unknown;
838
+ };
839
+ content: {
840
+ "application/json": components["schemas"]["error"];
841
+ };
842
+ };
843
+ };
844
+ };
845
+ put?: never;
846
+ /** Create a new label */
847
+ post: {
848
+ parameters: {
849
+ query?: never;
850
+ header?: never;
851
+ path: {
852
+ /** @description The ID of the project. */
853
+ projectId: components["schemas"]["projectId"];
854
+ };
855
+ cookie?: never;
856
+ };
857
+ /** @description Data about the label */
858
+ requestBody: {
859
+ content: {
860
+ "application/x-www-form-urlencoded": {
861
+ latestBuildSHA?: components["schemas"]["buildSHA"] | "";
862
+ /** @enum {string} */
863
+ type: "branch" | "pr" | "jira";
864
+ /** @description The value of the label. */
865
+ value: string;
866
+ };
867
+ };
868
+ };
869
+ responses: {
870
+ /** @description Label created successfully */
871
+ 201: {
872
+ headers: {
873
+ [name: string]: unknown;
874
+ };
875
+ content: {
876
+ "application/json": {
877
+ label: components["schemas"]["label"];
878
+ };
879
+ };
880
+ };
881
+ /** @description Label created, redirecting... */
882
+ 303: {
883
+ headers: {
884
+ /** Format: url */
885
+ Location?: unknown;
886
+ [name: string]: unknown;
887
+ };
888
+ content?: never;
889
+ };
890
+ /** @description Invalid request data */
891
+ 400: {
892
+ headers: {
893
+ [name: string]: unknown;
894
+ };
895
+ content: {
896
+ "application/json": components["schemas"]["error"];
897
+ };
898
+ };
899
+ /** @description Unauthenticated access */
900
+ 401: {
901
+ headers: {
902
+ [name: string]: unknown;
903
+ };
904
+ content: {
905
+ "application/json": components["schemas"]["error"];
906
+ };
907
+ };
908
+ /** @description Unauthorized access */
909
+ 403: {
910
+ headers: {
911
+ [name: string]: unknown;
912
+ };
913
+ content: {
914
+ "application/json": components["schemas"]["error"];
915
+ };
916
+ };
917
+ /** @description Label already exists. */
918
+ 409: {
919
+ headers: {
920
+ [name: string]: unknown;
921
+ };
922
+ content: {
923
+ "application/json": components["schemas"]["error"];
924
+ };
925
+ };
926
+ /** @description Unsupported Media Type */
927
+ 415: {
928
+ headers: {
929
+ [name: string]: unknown;
930
+ };
931
+ content?: never;
932
+ };
933
+ /** @description An unexpected server-error occurred. */
934
+ 500: {
935
+ headers: {
936
+ [name: string]: unknown;
937
+ };
938
+ content: {
939
+ "application/json": components["schemas"]["error"];
940
+ };
941
+ };
942
+ };
943
+ };
944
+ delete?: never;
945
+ options?: never;
946
+ head?: never;
947
+ patch?: never;
948
+ trace?: never;
949
+ };
950
+ "/projects/{projectId}/labels/{labelSlug}": {
951
+ parameters: {
952
+ query?: never;
953
+ header?: never;
954
+ path?: never;
955
+ cookie?: never;
956
+ };
957
+ /** Get label details */
958
+ get: {
959
+ parameters: {
960
+ query?: never;
961
+ header?: never;
962
+ path: {
963
+ /** @description The slug of the label. */
964
+ labelSlug: components["schemas"]["labelSlug"];
965
+ /** @description The ID of the project. */
966
+ projectId: components["schemas"]["projectId"];
967
+ };
968
+ cookie?: never;
969
+ };
970
+ requestBody?: never;
971
+ responses: {
972
+ /** @description Label details retrieved successfully */
973
+ 200: {
974
+ headers: {
975
+ [name: string]: unknown;
976
+ };
977
+ content: {
978
+ "application/json": {
979
+ label: components["schemas"]["label"];
980
+ };
981
+ /** @example <!DOCTYPE html> */
982
+ "text/html": unknown;
983
+ };
984
+ };
985
+ /** @description Invalid request data */
986
+ 400: {
987
+ headers: {
988
+ [name: string]: unknown;
989
+ };
990
+ content: {
991
+ "application/json": components["schemas"]["error"];
992
+ };
993
+ };
994
+ /** @description Unauthenticated access */
995
+ 401: {
996
+ headers: {
997
+ [name: string]: unknown;
998
+ };
999
+ content: {
1000
+ "application/json": components["schemas"]["error"];
1001
+ };
1002
+ };
1003
+ /** @description Unauthorized access */
1004
+ 403: {
1005
+ headers: {
1006
+ [name: string]: unknown;
1007
+ };
1008
+ content: {
1009
+ "application/json": components["schemas"]["error"];
1010
+ };
1011
+ };
1012
+ /** @description An unexpected server-error occurred. */
1013
+ 500: {
1014
+ headers: {
1015
+ [name: string]: unknown;
1016
+ };
1017
+ content: {
1018
+ "application/json": components["schemas"]["error"];
1019
+ };
1020
+ };
1021
+ };
1022
+ };
1023
+ put?: never;
1024
+ post?: never;
1025
+ /** Delete label */
1026
+ delete: {
1027
+ parameters: {
1028
+ query?: never;
1029
+ header?: never;
1030
+ path: {
1031
+ /** @description The slug of the label. */
1032
+ labelSlug: components["schemas"]["labelSlug"];
1033
+ /** @description The ID of the project. */
1034
+ projectId: components["schemas"]["projectId"];
1035
+ };
1036
+ cookie?: never;
1037
+ };
1038
+ requestBody?: never;
1039
+ responses: {
1040
+ /** @description Label deleted successfully */
1041
+ 204: {
1042
+ headers: {
1043
+ [name: string]: unknown;
1044
+ };
1045
+ content?: never;
1046
+ };
1047
+ /** @description Label deleted, redirecting... */
1048
+ 303: {
1049
+ headers: {
1050
+ /** Format: url */
1051
+ Location?: unknown;
1052
+ [name: string]: unknown;
1053
+ };
1054
+ content?: never;
1055
+ };
1056
+ /** @description Invalid request data */
1057
+ 400: {
1058
+ headers: {
1059
+ [name: string]: unknown;
1060
+ };
1061
+ content: {
1062
+ "application/json": components["schemas"]["error"];
1063
+ };
1064
+ };
1065
+ /** @description Unauthenticated access */
1066
+ 401: {
1067
+ headers: {
1068
+ [name: string]: unknown;
1069
+ };
1070
+ content: {
1071
+ "application/json": components["schemas"]["error"];
1072
+ };
1073
+ };
1074
+ /** @description Unauthorized access */
1075
+ 403: {
1076
+ headers: {
1077
+ [name: string]: unknown;
1078
+ };
1079
+ content: {
1080
+ "application/json": components["schemas"]["error"];
1081
+ };
1082
+ };
1083
+ /** @description Label not found */
1084
+ 404: {
1085
+ headers: {
1086
+ [name: string]: unknown;
1087
+ };
1088
+ content?: never;
1089
+ };
1090
+ /** @description An unexpected server-error occurred. */
1091
+ 500: {
1092
+ headers: {
1093
+ [name: string]: unknown;
1094
+ };
1095
+ content: {
1096
+ "application/json": components["schemas"]["error"];
1097
+ };
1098
+ };
1099
+ };
1100
+ };
1101
+ options?: never;
1102
+ head?: never;
1103
+ patch?: never;
1104
+ trace?: never;
1105
+ };
1106
+ "/projects/{projectId}/labels": {
1107
+ parameters: {
1108
+ query?: never;
1109
+ header?: never;
1110
+ path?: never;
1111
+ cookie?: never;
1112
+ };
1113
+ /** List all labels for a project */
1114
+ get: {
1115
+ parameters: {
1116
+ query?: never;
1117
+ header?: never;
1118
+ path: {
1119
+ /** @description The ID of the project. */
1120
+ projectId: components["schemas"]["projectId"];
1121
+ };
1122
+ cookie?: never;
1123
+ };
1124
+ requestBody?: never;
1125
+ responses: {
1126
+ /** @description A list of labels. */
1127
+ 200: {
1128
+ headers: {
1129
+ [name: string]: unknown;
1130
+ };
1131
+ content: {
1132
+ /** @example <!DOCTYPE html> */
1133
+ "text/html": unknown;
1134
+ "application/json": {
1135
+ labels: components["schemas"]["label"][];
1136
+ };
1137
+ };
1138
+ };
1139
+ /** @description Invalid request data */
1140
+ 400: {
1141
+ headers: {
1142
+ [name: string]: unknown;
1143
+ };
1144
+ content: {
1145
+ "application/json": components["schemas"]["error"];
1146
+ };
1147
+ };
1148
+ /** @description Unauthenticated access */
1149
+ 401: {
1150
+ headers: {
1151
+ [name: string]: unknown;
1152
+ };
1153
+ content: {
1154
+ "application/json": components["schemas"]["error"];
1155
+ };
1156
+ };
1157
+ /** @description Unauthorized access */
1158
+ 403: {
1159
+ headers: {
1160
+ [name: string]: unknown;
1161
+ };
1162
+ content: {
1163
+ "application/json": components["schemas"]["error"];
1164
+ };
1165
+ };
1166
+ /** @description An unexpected server-error occurred. */
1167
+ 500: {
1168
+ headers: {
1169
+ [name: string]: unknown;
1170
+ };
1171
+ content: {
1172
+ "application/json": components["schemas"]["error"];
1173
+ };
1174
+ };
1175
+ };
1176
+ };
1177
+ put?: never;
1178
+ post?: never;
1179
+ delete?: never;
1180
+ options?: never;
1181
+ head?: never;
1182
+ patch?: never;
1183
+ trace?: never;
1184
+ };
1185
+ "/projects/{projectId}/labels/{labelSlug}/update": {
1186
+ parameters: {
1187
+ query?: never;
1188
+ header?: never;
1189
+ path?: never;
1190
+ cookie?: never;
1191
+ };
1192
+ /** Form to update label */
1193
+ get: {
1194
+ parameters: {
1195
+ query?: never;
1196
+ header?: never;
1197
+ path?: never;
1198
+ cookie?: never;
1199
+ };
1200
+ requestBody?: never;
1201
+ responses: {
1202
+ /** @description Form to update label */
1203
+ 200: {
1204
+ headers: {
1205
+ [name: string]: unknown;
1206
+ };
1207
+ content: {
1208
+ /** @example <!DOCTYPE html> */
1209
+ "text/html": unknown;
1210
+ };
1211
+ };
1212
+ /** @description Invalid request data */
1213
+ 400: {
1214
+ headers: {
1215
+ [name: string]: unknown;
1216
+ };
1217
+ content: {
1218
+ "application/json": components["schemas"]["error"];
1219
+ };
1220
+ };
1221
+ /** @description Unauthenticated access */
1222
+ 401: {
1223
+ headers: {
1224
+ [name: string]: unknown;
1225
+ };
1226
+ content: {
1227
+ "application/json": components["schemas"]["error"];
1228
+ };
1229
+ };
1230
+ /** @description Unauthorized access */
1231
+ 403: {
1232
+ headers: {
1233
+ [name: string]: unknown;
1234
+ };
1235
+ content: {
1236
+ "application/json": components["schemas"]["error"];
1237
+ };
1238
+ };
1239
+ /** @description An unexpected server-error occurred. */
1240
+ 500: {
1241
+ headers: {
1242
+ [name: string]: unknown;
1243
+ };
1244
+ content: {
1245
+ "application/json": components["schemas"]["error"];
1246
+ };
1247
+ };
1248
+ };
1249
+ };
1250
+ put?: never;
1251
+ /** Update label details */
1252
+ post: {
1253
+ parameters: {
1254
+ query?: never;
1255
+ header?: never;
1256
+ path: {
1257
+ /** @description The slug of the label. */
1258
+ labelSlug: components["schemas"]["labelSlug"];
1259
+ /** @description The ID of the project. */
1260
+ projectId: components["schemas"]["projectId"];
1261
+ };
1262
+ cookie?: never;
1263
+ };
1264
+ /** @description Updated label data */
1265
+ requestBody: {
1266
+ content: {
1267
+ "application/x-www-form-urlencoded": {
1268
+ latestBuildSHA?: components["schemas"]["buildSHA"] | "";
1269
+ /** @enum {string} */
1270
+ type?: "branch" | "pr" | "jira";
1271
+ /** @description The value of the label. */
1272
+ value?: string;
1273
+ };
1274
+ };
1275
+ };
1276
+ responses: {
1277
+ /** @description Label updated successfully */
1278
+ 202: {
1279
+ headers: {
1280
+ [name: string]: unknown;
1281
+ };
1282
+ content?: never;
1283
+ };
1284
+ /** @description Label updated, redirecting... */
1285
+ 303: {
1286
+ headers: {
1287
+ /** Format: url */
1288
+ Location?: unknown;
1289
+ [name: string]: unknown;
1290
+ };
1291
+ content?: never;
1292
+ };
1293
+ /** @description Invalid request data */
1294
+ 400: {
1295
+ headers: {
1296
+ [name: string]: unknown;
1297
+ };
1298
+ content: {
1299
+ "application/json": components["schemas"]["error"];
1300
+ };
1301
+ };
1302
+ /** @description Unauthenticated access */
1303
+ 401: {
1304
+ headers: {
1305
+ [name: string]: unknown;
1306
+ };
1307
+ content: {
1308
+ "application/json": components["schemas"]["error"];
1309
+ };
1310
+ };
1311
+ /** @description Unauthorized access */
1312
+ 403: {
1313
+ headers: {
1314
+ [name: string]: unknown;
1315
+ };
1316
+ content: {
1317
+ "application/json": components["schemas"]["error"];
1318
+ };
1319
+ };
1320
+ /** @description Matching project or label not found. */
1321
+ 404: {
1322
+ headers: {
1323
+ [name: string]: unknown;
1324
+ };
1325
+ content?: never;
1326
+ };
1327
+ /** @description Unsupported Media Type */
1328
+ 415: {
1329
+ headers: {
1330
+ [name: string]: unknown;
1331
+ };
1332
+ content?: never;
1333
+ };
1334
+ /** @description An unexpected server-error occurred. */
1335
+ 500: {
1336
+ headers: {
1337
+ [name: string]: unknown;
1338
+ };
1339
+ content: {
1340
+ "application/json": components["schemas"]["error"];
1341
+ };
1342
+ };
1343
+ };
1344
+ };
1345
+ delete?: never;
1346
+ options?: never;
1347
+ head?: never;
1348
+ patch?: never;
1349
+ trace?: never;
1350
+ };
1351
+ "/projects/{projectId}/builds/create": {
1352
+ parameters: {
1353
+ query?: never;
1354
+ header?: never;
1355
+ path?: never;
1356
+ cookie?: never;
1357
+ };
1358
+ /** Form to create build */
1359
+ get: {
1360
+ parameters: {
1361
+ query?: never;
1362
+ header?: never;
1363
+ path?: never;
1364
+ cookie?: never;
1365
+ };
1366
+ requestBody?: never;
1367
+ responses: {
1368
+ /** @description Form to create build */
1369
+ 200: {
1370
+ headers: {
1371
+ [name: string]: unknown;
1372
+ };
1373
+ content: {
1374
+ /** @example <!DOCTYPE html> */
1375
+ "text/html": unknown;
1376
+ };
1377
+ };
1378
+ /** @description Invalid request data */
1379
+ 400: {
1380
+ headers: {
1381
+ [name: string]: unknown;
1382
+ };
1383
+ content: {
1384
+ "application/json": components["schemas"]["error"];
1385
+ };
1386
+ };
1387
+ /** @description Unauthenticated access */
1388
+ 401: {
1389
+ headers: {
1390
+ [name: string]: unknown;
1391
+ };
1392
+ content: {
1393
+ "application/json": components["schemas"]["error"];
1394
+ };
1395
+ };
1396
+ /** @description Unauthorized access */
1397
+ 403: {
1398
+ headers: {
1399
+ [name: string]: unknown;
1400
+ };
1401
+ content: {
1402
+ "application/json": components["schemas"]["error"];
1403
+ };
1404
+ };
1405
+ /** @description An unexpected server-error occurred. */
1406
+ 500: {
1407
+ headers: {
1408
+ [name: string]: unknown;
1409
+ };
1410
+ content: {
1411
+ "application/json": components["schemas"]["error"];
1412
+ };
1413
+ };
1414
+ };
1415
+ };
1416
+ put?: never;
1417
+ /** Create a new build */
1418
+ post: {
1419
+ parameters: {
1420
+ query?: never;
1421
+ header?: never;
1422
+ path: {
1423
+ /** @description The ID of the project. */
1424
+ projectId: components["schemas"]["projectId"];
1425
+ };
1426
+ cookie?: never;
1427
+ };
1428
+ /** @description Data about the build */
1429
+ requestBody: {
1430
+ content: {
1431
+ "application/x-www-form-urlencoded": {
1432
+ /** @description Email of the author */
1433
+ authorEmail: string;
1434
+ authorName: string;
1435
+ message?: string;
1436
+ sha: components["schemas"]["buildSHA"];
1437
+ /** @description Label slugs associated with the build. Should be created beforehand. */
1438
+ labels: components["schemas"]["labelSlug"][];
1439
+ };
1440
+ };
1441
+ };
1442
+ responses: {
1443
+ /** @description Build created successfully */
1444
+ 201: {
1445
+ headers: {
1446
+ [name: string]: unknown;
1447
+ };
1448
+ content: {
1449
+ "application/json": {
1450
+ build: components["schemas"]["build"];
1451
+ /** Format: uri */
1452
+ url: string;
1453
+ };
1454
+ };
1455
+ };
1456
+ /** @description Build created, redirecting... */
1457
+ 303: {
1458
+ headers: {
1459
+ /** Format: url */
1460
+ Location?: unknown;
1461
+ [name: string]: unknown;
1462
+ };
1463
+ content?: never;
1464
+ };
1465
+ /** @description Invalid request data */
1466
+ 400: {
1467
+ headers: {
1468
+ [name: string]: unknown;
1469
+ };
1470
+ content: {
1471
+ "application/json": components["schemas"]["error"];
1472
+ };
1473
+ };
1474
+ /** @description Unauthenticated access */
1475
+ 401: {
1476
+ headers: {
1477
+ [name: string]: unknown;
1478
+ };
1479
+ content: {
1480
+ "application/json": components["schemas"]["error"];
1481
+ };
1482
+ };
1483
+ /** @description Unauthorized access */
1484
+ 403: {
1485
+ headers: {
1486
+ [name: string]: unknown;
1487
+ };
1488
+ content: {
1489
+ "application/json": components["schemas"]["error"];
1490
+ };
1491
+ };
1492
+ /** @description Build already exists. */
1493
+ 409: {
1494
+ headers: {
1495
+ [name: string]: unknown;
1496
+ };
1497
+ content: {
1498
+ "application/json": components["schemas"]["error"];
1499
+ };
1500
+ };
1501
+ /** @description Unsupported Media Type */
1502
+ 415: {
1503
+ headers: {
1504
+ [name: string]: unknown;
1505
+ };
1506
+ content?: never;
1507
+ };
1508
+ /** @description An unexpected server-error occurred. */
1509
+ 500: {
1510
+ headers: {
1511
+ [name: string]: unknown;
1512
+ };
1513
+ content: {
1514
+ "application/json": components["schemas"]["error"];
1515
+ };
1516
+ };
1517
+ };
1518
+ };
1519
+ delete?: never;
1520
+ options?: never;
1521
+ head?: never;
1522
+ patch?: never;
1523
+ trace?: never;
1524
+ };
1525
+ "/projects/{projectId}/builds/{buildSHA}": {
1526
+ parameters: {
1527
+ query?: never;
1528
+ header?: never;
1529
+ path?: never;
1530
+ cookie?: never;
1531
+ };
1532
+ /** Get build details */
1533
+ get: {
1534
+ parameters: {
1535
+ query?: never;
1536
+ header?: never;
1537
+ path: {
1538
+ /** @description The SHA of the build. */
1539
+ buildSHA: components["schemas"]["buildSHA"];
1540
+ /** @description The ID of the project. */
1541
+ projectId: components["schemas"]["projectId"];
1542
+ };
1543
+ cookie?: never;
1544
+ };
1545
+ requestBody?: never;
1546
+ responses: {
1547
+ /** @description Build details retrieved successfully */
1548
+ 200: {
1549
+ headers: {
1550
+ [name: string]: unknown;
1551
+ };
1552
+ content: {
1553
+ "application/json": {
1554
+ build: components["schemas"]["build"];
1555
+ /** Format: uri */
1556
+ url: string;
1557
+ };
1558
+ /** @example <!DOCTYPE html> */
1559
+ "text/html": unknown;
1560
+ };
1561
+ };
1562
+ /** @description Invalid request data */
1563
+ 400: {
1564
+ headers: {
1565
+ [name: string]: unknown;
1566
+ };
1567
+ content: {
1568
+ "application/json": components["schemas"]["error"];
1569
+ };
1570
+ };
1571
+ /** @description Unauthenticated access */
1572
+ 401: {
1573
+ headers: {
1574
+ [name: string]: unknown;
1575
+ };
1576
+ content: {
1577
+ "application/json": components["schemas"]["error"];
1578
+ };
1579
+ };
1580
+ /** @description Unauthorized access */
1581
+ 403: {
1582
+ headers: {
1583
+ [name: string]: unknown;
1584
+ };
1585
+ content: {
1586
+ "application/json": components["schemas"]["error"];
1587
+ };
1588
+ };
1589
+ /** @description An unexpected server-error occurred. */
1590
+ 500: {
1591
+ headers: {
1592
+ [name: string]: unknown;
1593
+ };
1594
+ content: {
1595
+ "application/json": components["schemas"]["error"];
1596
+ };
1597
+ };
1598
+ };
1599
+ };
1600
+ put?: never;
1601
+ post?: never;
1602
+ /** Delete build */
1603
+ delete: {
1604
+ parameters: {
1605
+ query?: never;
1606
+ header?: never;
1607
+ path: {
1608
+ /** @description The SHA of the build. */
1609
+ buildSHA: components["schemas"]["buildSHA"];
1610
+ /** @description The ID of the project. */
1611
+ projectId: components["schemas"]["projectId"];
1612
+ };
1613
+ cookie?: never;
1614
+ };
1615
+ requestBody?: never;
1616
+ responses: {
1617
+ /** @description Build deleted successfully */
1618
+ 204: {
1619
+ headers: {
1620
+ [name: string]: unknown;
1621
+ };
1622
+ content?: never;
1623
+ };
1624
+ /** @description Build deleted, redirecting... */
1625
+ 303: {
1626
+ headers: {
1627
+ /** Format: url */
1628
+ Location?: unknown;
1629
+ [name: string]: unknown;
1630
+ };
1631
+ content?: never;
1632
+ };
1633
+ /** @description Invalid request data */
1634
+ 400: {
1635
+ headers: {
1636
+ [name: string]: unknown;
1637
+ };
1638
+ content: {
1639
+ "application/json": components["schemas"]["error"];
1640
+ };
1641
+ };
1642
+ /** @description Unauthenticated access */
1643
+ 401: {
1644
+ headers: {
1645
+ [name: string]: unknown;
1646
+ };
1647
+ content: {
1648
+ "application/json": components["schemas"]["error"];
1649
+ };
1650
+ };
1651
+ /** @description Unauthorized access */
1652
+ 403: {
1653
+ headers: {
1654
+ [name: string]: unknown;
1655
+ };
1656
+ content: {
1657
+ "application/json": components["schemas"]["error"];
1658
+ };
1659
+ };
1660
+ /** @description Build not found */
1661
+ 404: {
1662
+ headers: {
1663
+ [name: string]: unknown;
1664
+ };
1665
+ content?: never;
1666
+ };
1667
+ /** @description An unexpected server-error occurred. */
1668
+ 500: {
1669
+ headers: {
1670
+ [name: string]: unknown;
1671
+ };
1672
+ content: {
1673
+ "application/json": components["schemas"]["error"];
1674
+ };
1675
+ };
1676
+ };
1677
+ };
1678
+ options?: never;
1679
+ head?: never;
1680
+ patch?: never;
1681
+ trace?: never;
1682
+ };
1683
+ "/projects/{projectId}/builds": {
1684
+ parameters: {
1685
+ query?: never;
1686
+ header?: never;
1687
+ path?: never;
1688
+ cookie?: never;
1689
+ };
1690
+ /** List all builds for a project */
1691
+ get: {
1692
+ parameters: {
1693
+ query?: never;
1694
+ header?: never;
1695
+ path: {
1696
+ /** @description The ID of the project. */
1697
+ projectId: components["schemas"]["projectId"];
1698
+ };
1699
+ cookie?: never;
1700
+ };
1701
+ requestBody?: never;
1702
+ responses: {
1703
+ /** @description A list of builds. */
1704
+ 200: {
1705
+ headers: {
1706
+ [name: string]: unknown;
1707
+ };
1708
+ content: {
1709
+ /** @example <!DOCTYPE html> */
1710
+ "text/html": unknown;
1711
+ "application/json": {
1712
+ builds: components["schemas"]["build"][];
1713
+ };
1714
+ };
1715
+ };
1716
+ /** @description Invalid request data */
1717
+ 400: {
1718
+ headers: {
1719
+ [name: string]: unknown;
1720
+ };
1721
+ content: {
1722
+ "application/json": components["schemas"]["error"];
1723
+ };
1724
+ };
1725
+ /** @description Unauthenticated access */
1726
+ 401: {
1727
+ headers: {
1728
+ [name: string]: unknown;
1729
+ };
1730
+ content: {
1731
+ "application/json": components["schemas"]["error"];
1732
+ };
1733
+ };
1734
+ /** @description Unauthorized access */
1735
+ 403: {
1736
+ headers: {
1737
+ [name: string]: unknown;
1738
+ };
1739
+ content: {
1740
+ "application/json": components["schemas"]["error"];
1741
+ };
1742
+ };
1743
+ /** @description An unexpected server-error occurred. */
1744
+ 500: {
1745
+ headers: {
1746
+ [name: string]: unknown;
1747
+ };
1748
+ content: {
1749
+ "application/json": components["schemas"]["error"];
1750
+ };
1751
+ };
1752
+ };
1753
+ };
1754
+ put?: never;
1755
+ post?: never;
1756
+ delete?: never;
1757
+ options?: never;
1758
+ head?: never;
1759
+ patch?: never;
1760
+ trace?: never;
1761
+ };
1762
+ "/projects/{projectId}/builds/{buildSHA}/upload": {
1763
+ parameters: {
1764
+ query?: never;
1765
+ header?: never;
1766
+ path?: never;
1767
+ cookie?: never;
1768
+ };
1769
+ /** Form to upload build */
1770
+ get: {
1771
+ parameters: {
1772
+ query?: never;
1773
+ header?: never;
1774
+ path: {
1775
+ /** @description The SHA of the build. */
1776
+ buildSHA: components["schemas"]["buildSHA"];
1777
+ /** @description The ID of the project. */
1778
+ projectId: components["schemas"]["projectId"];
1779
+ };
1780
+ cookie?: never;
1781
+ };
1782
+ requestBody?: never;
1783
+ responses: {
1784
+ /** @description Form to upload build */
1785
+ 200: {
1786
+ headers: {
1787
+ [name: string]: unknown;
1788
+ };
1789
+ content: {
1790
+ /** @example <!DOCTYPE html> */
1791
+ "text/html": unknown;
1792
+ };
1793
+ };
1794
+ /** @description Invalid request data */
1795
+ 400: {
1796
+ headers: {
1797
+ [name: string]: unknown;
1798
+ };
1799
+ content: {
1800
+ "application/json": components["schemas"]["error"];
1801
+ };
1802
+ };
1803
+ /** @description Unauthenticated access */
1804
+ 401: {
1805
+ headers: {
1806
+ [name: string]: unknown;
1807
+ };
1808
+ content: {
1809
+ "application/json": components["schemas"]["error"];
1810
+ };
1811
+ };
1812
+ /** @description Unauthorized access */
1813
+ 403: {
1814
+ headers: {
1815
+ [name: string]: unknown;
1816
+ };
1817
+ content: {
1818
+ "application/json": components["schemas"]["error"];
1819
+ };
1820
+ };
1821
+ /** @description An unexpected server-error occurred. */
1822
+ 500: {
1823
+ headers: {
1824
+ [name: string]: unknown;
1825
+ };
1826
+ content: {
1827
+ "application/json": components["schemas"]["error"];
1828
+ };
1829
+ };
1830
+ };
1831
+ };
1832
+ put?: never;
1833
+ /**
1834
+ * Upload build
1835
+ * @description Upload build files in a compressed zip
1836
+ */
1837
+ post: {
1838
+ parameters: {
1839
+ query?: {
1840
+ variant?: "storybook" | "testReport" | "coverage" | "screenshots";
1841
+ };
1842
+ header?: never;
1843
+ path: {
1844
+ /** @description The SHA of the build. */
1845
+ buildSHA: components["schemas"]["buildSHA"];
1846
+ /** @description The ID of the project. */
1847
+ projectId: components["schemas"]["projectId"];
1848
+ };
1849
+ cookie?: never;
1850
+ };
1851
+ /** @description Compressed zip containing files. */
1852
+ requestBody: {
1853
+ content: {
1854
+ "multipart/form-data": {
1855
+ /** Format: binary */
1856
+ file: string;
1857
+ /**
1858
+ * @default storybook
1859
+ * @enum {string}
1860
+ */
1861
+ variant?: "storybook" | "testReport" | "coverage" | "screenshots";
1862
+ };
1863
+ /** @example storybook.zip */
1864
+ "application/zip": string;
1865
+ };
1866
+ };
1867
+ responses: {
1868
+ /** @description File uploaded successfully */
1869
+ 204: {
1870
+ headers: {
1871
+ [name: string]: unknown;
1872
+ };
1873
+ content?: never;
1874
+ };
1875
+ /** @description Invalid request data */
1876
+ 400: {
1877
+ headers: {
1878
+ [name: string]: unknown;
1879
+ };
1880
+ content: {
1881
+ "application/json": components["schemas"]["error"];
1882
+ };
1883
+ };
1884
+ /** @description Unauthenticated access */
1885
+ 401: {
1886
+ headers: {
1887
+ [name: string]: unknown;
1888
+ };
1889
+ content: {
1890
+ "application/json": components["schemas"]["error"];
1891
+ };
1892
+ };
1893
+ /** @description Unauthorized access */
1894
+ 403: {
1895
+ headers: {
1896
+ [name: string]: unknown;
1897
+ };
1898
+ content: {
1899
+ "application/json": components["schemas"]["error"];
1900
+ };
1901
+ };
1902
+ /** @description Unsupported Media Type */
1903
+ 415: {
1904
+ headers: {
1905
+ [name: string]: unknown;
1906
+ };
1907
+ content?: never;
1908
+ };
1909
+ /** @description An unexpected server-error occurred. */
1910
+ 500: {
1911
+ headers: {
1912
+ [name: string]: unknown;
1913
+ };
1914
+ content: {
1915
+ "application/json": components["schemas"]["error"];
1916
+ };
1917
+ };
1918
+ };
1919
+ };
1920
+ delete?: never;
1921
+ options?: never;
1922
+ head?: never;
1923
+ patch?: never;
1924
+ trace?: never;
1925
+ };
1926
+ }
1927
+ export type webhooks = Record<string, never>;
1928
+ export interface components {
1929
+ schemas: {
1930
+ /** @description The ID of the project. */
1931
+ projectId: string;
1932
+ /** @description The SHA of the build. */
1933
+ buildSHA: string;
1934
+ /** @description The slug of the label. */
1935
+ labelSlug: string;
1936
+ error: {
1937
+ errorMessage: string;
1938
+ };
1939
+ /** StoryBooker Project */
1940
+ project: {
1941
+ /**
1942
+ * Format: date-time
1943
+ * @default 2025-09-10T09:34:27.953Z
1944
+ */
1945
+ createdAt: string;
1946
+ /**
1947
+ * @description Default branch to use for GitHub repository
1948
+ * @default main
1949
+ */
1950
+ gitHubDefaultBranch: string;
1951
+ /** @description Path to the storybook project with respect to repository root. */
1952
+ gitHubPath?: string;
1953
+ gitHubRepository: string;
1954
+ id: components["schemas"]["projectId"];
1955
+ /** Format: uri */
1956
+ jiraDomain?: string;
1957
+ latestBuildSHA?: components["schemas"]["buildSHA"] | "";
1958
+ /** @description Name of the project. */
1959
+ name: string;
1960
+ /**
1961
+ * @description Days after which the builds in the project should be purged.
1962
+ * @default 30
1963
+ */
1964
+ purgeBuildsAfterDays: number;
1965
+ /**
1966
+ * Format: date-time
1967
+ * @default 2025-09-10T09:34:27.954Z
1968
+ */
1969
+ updatedAt: string;
1970
+ };
1971
+ /** StoryBooker Label */
1972
+ label: {
1973
+ /**
1974
+ * Format: date-time
1975
+ * @default 2025-09-10T09:34:27.953Z
1976
+ */
1977
+ createdAt: string;
1978
+ id: components["schemas"]["labelSlug"];
1979
+ latestBuildSHA?: components["schemas"]["buildSHA"] | "";
1980
+ slug: components["schemas"]["labelSlug"];
1981
+ /** @enum {string} */
1982
+ type: "branch" | "pr" | "jira";
1983
+ /**
1984
+ * Format: date-time
1985
+ * @default 2025-09-10T09:34:27.953Z
1986
+ */
1987
+ updatedAt: string;
1988
+ /** @description The value of the label. */
1989
+ value: string;
1990
+ };
1991
+ /** StoryBooker Build */
1992
+ build: {
1993
+ /** @description Email of the author */
1994
+ authorEmail: string;
1995
+ authorName: string;
1996
+ /**
1997
+ * Format: date-time
1998
+ * @default 2025-09-10T09:34:27.950Z
1999
+ */
2000
+ createdAt: string;
2001
+ hasCoverage?: boolean;
2002
+ hasScreenshots?: boolean;
2003
+ hasStorybook?: boolean;
2004
+ hasTestReport?: boolean;
2005
+ id: components["schemas"]["buildSHA"];
2006
+ labelSlugs: string;
2007
+ message?: string;
2008
+ sha: components["schemas"]["buildSHA"];
2009
+ /**
2010
+ * Format: date-time
2011
+ * @default 2025-09-10T09:34:27.952Z
2012
+ */
2013
+ updatedAt: string;
2014
+ };
2015
+ };
2016
+ responses: never;
2017
+ parameters: never;
2018
+ requestBodies: never;
2019
+ headers: never;
2020
+ pathItems: never;
2021
+ }
2022
+ export type $defs = Record<string, never>;
2023
+ export type operations = Record<string, never>;