package gitlab

  1. Overview
  2. Docs

Source file gitlab_t.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
(* Auto-generated from "gitlab.atd" *)
              [@@@ocaml.warning "-27-32-35-39"]

type wiki_attributes = {
  wiki_attributes_title (*atd title *): string;
  wiki_attributes_content (*atd content *): string;
  wiki_attributes_format (*atd format *): string;
  wiki_attributes_slug (*atd slug *): string;
  wiki_attributes_url (*atd url *): string;
  wiki_attributes_action (*atd action *): string;
  wiki_attributes_diff_url (*atd diff_url *): string
}

type wiki = {
  wiki_web_url (*atd web_url *): string;
  wiki_git_ssh_url (*atd git_ssh_url *): string;
  wiki_git_http_url (*atd git_http_url *): string;
  wiki_path_with_namespace (*atd path_with_namespace *): string;
  wiki_default_branch (*atd default_branch *): string
}

type user_short = {
  user_short_id (*atd id *): int;
  user_short_name (*atd name *): string;
  user_short_username (*atd username *): string;
  user_short_state (*atd state *): string option;
  user_short_avatar_url (*atd avatar_url *): string;
  user_short_web_url (*atd web_url *): string option;
  user_short_email (*atd email *): string option
}

type project_webhook = {
  project_webhook_id (*atd id *): int;
  project_webhook_name (*atd name *): string;
  project_webhook_description (*atd description *): string option;
  project_webhook_web_url (*atd web_url *): string;
  project_webhook_avatar_url (*atd avatar_url *): string option;
  project_webhook_ci_config_path (*atd ci_config_path *): string option;
  project_webhook_git_ssh_url (*atd git_ssh_url *): string;
  project_webhook_git_http_url (*atd git_http_url *): string;
  project_webhook_namespace (*atd namespace *): string;
  project_webhook_path_with_namespace (*atd path_with_namespace *): string;
  project_webhook_visibility_level (*atd visibility_level *): int;
  project_webhook_default_branch (*atd default_branch *): string;
  project_webhook_homepage (*atd homepage *): string option;
  project_webhook_url (*atd url *): string option;
  project_webhook_ssh_url (*atd ssh_url *): string option;
  project_webhook_http_url (*atd http_url *): string option
}

type wiki_page_webhook = {
  wiki_page_webhook_user (*atd user *): user_short;
  wiki_page_webhook_project (*atd project *): project_webhook;
  wiki_page_webhook_wiki (*atd wiki *): wiki;
  wiki_page_webhook_attributes (*atd attributes *): wiki_attributes
}

type wiki_page = {
  wiki_page_format (*atd format *): string;
  wiki_page_slug (*atd slug *): string;
  wiki_page_title (*atd title *): string
}

type updated_by_id = {
  update_by_id_previous (*atd previous *): int option;
  update_by_id_current (*atd current *): int
}

type updated_at = {
  updated_at_previous (*atd previous *): string;
  updated_at_current (*atd current *): string
}

type state = [ `Opened | `Closed | `Locked | `Merged ]

type source = {
  source_format (*atd format *): string;
  source_url (*atd url *): string
}

type repository = {
  repository_name (*atd name *): string;
  repository_url (*atd url *): string;
  repository_description (*atd description *): string;
  repository_homepage (*atd homepage *): string;
  repository_git_http_url (*atd git_http_url *): string option;
  repository_git_ssh_url (*atd git_ssh_url *): string option;
  repository_visibility_level (*atd visibility_level *): int option
}

type author = {
  author_name (*atd name *): string;
  author_email (*atd email *): string
}

type commit_short_webhook = {
  commit_short_webhookid (*atd id *): string;
  commit_short_webhookmessage (*atd message *): string;
  commit_short_webhooktitle (*atd title *): string;
  commit_short_webhooktimestamp (*atd timestamp *): string;
  commit_short_webhookurl (*atd url *): string;
  commit_short_webhookauthor (*atd author *): author
}

type assets = {
  assets_count (*atd count *): int;
  assets_links (*atd links *): string list;
  assets_sources (*atd sources *): source list
}

type release_webhook = {
  release_webhook_id (*atd id *): int;
  release_webhook_created_at (*atd created_at *): string;
  release_webhook_description (*atd description *): string;
  release_webhook_name (*atd name *): string;
  release_webhook_released_at (*atd released_at *): string;
  release_webhook_tag (*atd tag *): string;
  release_webhook_project (*atd project *): project_webhook;
  release_webhook_url (*atd url *): string;
  release_webhook_action (*atd action *): string;
  release_webhook_assets (*atd assets *): assets;
  release_webhook_commit (*atd commit *): commit_short_webhook
}

type commit_webhook = {
  commit_webhook_id (*atd id *): string;
  commit_webhook_message (*atd message *): string;
  commit_webhook_title (*atd title *): string;
  commit_webhook_timestamp (*atd timestamp *): string;
  commit_webhook_url (*atd url *): string;
  commit_webhook_author (*atd author *): author;
  commit_webhook_added (*atd added *): string list;
  commit_webhook_modified (*atd modified *): string list;
  commit_webhook_removed (*atd removed *): string list
}

type commits_webhook = commit_webhook list

type push_webhook = {
  push_webhook_event_name (*atd event_name *): string;
  push_webhook_before (*atd before *): string;
  push_webhook_after (*atd after *): string;
  push_webhook_ref (*atd ref *): string;
  push_webhook_checkout_sha (*atd checkout_sha *): string;
  push_webhook_message (*atd message *): string option;
  push_webhook_user_id (*atd user_id *): int;
  push_webhook_user_name (*atd user_name *): string;
  push_webhook_user_username (*atd user_username *): string;
  push_webhook_user_email (*atd user_email *): string;
  push_webhook_user_avatar (*atd user_avatar *): string;
  push_webhook_project_id (*atd project_id *): int;
  push_webhook_project (*atd project *): project_webhook;
  push_webhook_commits (*atd commits *): commits_webhook;
  push_webhook_total_commits_count (*atd total_commits_count *): int;
  push_webhook_repository (*atd repository *): repository
}

type note_attributes = {
  note_attrbutes_attachment (*atd attachment *): string option;
  note_attrbutes_author_id (*atd author_id *): int;
  note_attrbutes_change_position (*atd change_position *): string option;
  note_attrbutes_commit_id (*atd commit_id *): string option;
  note_attrbutes_created_at (*atd created_at *): string;
  note_attrbutes_discussion_id (*atd discussion_id *): string;
  note_attrbutes_id (*atd id *): int;
  note_attrbutes_line_code (*atd line_code *): int option;
  note_attrbutes_note (*atd note *): string;
  note_attrbutes_noteable_id (*atd noteable_id *): int;
  note_attrbutes_noteable_type (*atd noteable_type *): string;
  note_attrbutes_original_position (*atd original_position *): string option;
  note_attrbutes_position (*atd position *): string option;
  note_attrbutes_project_id (*atd project_id *): int;
  note_attrbutes_resolved_at (*atd resolved_at *): string option;
  note_attrbutes_resolved_by_id (*atd resolved_by_id *): string option;
  note_attrbutes_resolved_by_push (*atd resolved_by_push *): string option;
  note_attrbutes_st_diff (*atd st_diff *): string option;
  note_attrbutes_system (*atd system *): bool;
  note_attrbutes_note_attribute_type (*atd note_attribute_type *):
    string option;
  note_attrbutes_updated_at (*atd updated_at *): string;
  note_attrbutes_updated_by_id (*atd updated_by_id *): string option;
  note_attrbutes_description (*atd description *): string;
  note_attrbutes_url (*atd url *): string
}

type issue = {
  author_id: int;
  closed_at: string option;
  confidential: bool;
  created_at: string;
  description: string;
  discussion_locked: string option;
  due_date: string option;
  id: int;
  iid: int;
  last_edited_at: string option;
  last_edited_by_id: string option;
  milestone_id: string option;
  moved_to_id: string option;
  duplicated_to_id: int option;
  project_id: int;
  relative_position: int;
  state_id: int;
  time_estimate: int;
  title: string;
  updated_at: string;
  updated_by_id: string option;
  weight: string option;
  url: string;
  total_time_spent: int;
  time_change: int;
  human_total_time_spent: int option;
  human_time_change: int option;
  human_time_estimate: int option;
  assignee_ids: int list;
  assignee_id: int;
  labels: string list;
  state: state;
  severity: string
}

type note_webhook = {
  note_webhook_event_type (*atd event_type *): string;
  note_webhook_user (*atd user *): user_short;
  note_webhook_project (*atd project *): project_webhook;
  note_webhook_attributes (*atd attributes *): note_attributes;
  note_webhook_repository (*atd repository *): repository;
  note_webhook_project_id (*atd project_id *): int;
  note_webhook_issue (*atd issue *): issue
}

type merge_status = [
    `Unchecked | `Checking | `CanBeMerged | `CannotBeMerged
  | `CannotBeMergedRecheck
]

type assignees = {
  assignees_previous (*atd previous *): user_short list;
  assignees_current (*atd current *): user_short list
}

type merge_request_changes = {
  merge_request_changes_updated_by_id (*atd updated_by_id *):
    updated_by_id option;
  merge_request_changes_updated_at (*atd updated_at *): updated_at option;
  merge_request_changes_assignees (*atd assignees *): assignees option
}

type merge_params = {
  merge_params_force_remove_source_branch (*atd force_remove_source_branch *):
    string
}

type merge_request_attributes = {
  merge_request_attributes_action (*atd action *): string option;
  merge_request_attributes_assignee_id (*atd assignee_id *): int option;
  merge_request_attributes_assignee_ids (*atd assignee_ids *): int list;
  merge_request_attributes_author_id (*atd author_id *): int;
  merge_request_attributes_created_at (*atd created_at *): string;
  merge_request_attributes_description (*atd description *): string;
  merge_request_attributes_head_pipeline_id (*atd head_pipeline_id *):
    int option;
  merge_request_attributes_id (*atd id *): int;
  merge_request_attributes_iid (*atd iid *): int;
  merge_request_attributes_last_edited_at (*atd last_edited_at *):
    string option;
  merge_request_attributes_last_edited_by_id (*atd last_edited_by_id *):
    string option;
  merge_request_attributes_last_commit (*atd last_commit *):
    commit_short_webhook;
  merge_request_attributes_oldrev (*atd oldrev *): string option;
  merge_request_attributes_merge_commit_sha (*atd merge_commit_sha *):
    string option;
  merge_request_attributes_merge_error (*atd merge_error *): string option;
  merge_request_attributes_merge_params (*atd merge_params *): merge_params;
  merge_request_attributes_merge_status (*atd merge_status *): merge_status;
  merge_request_attributes_merge_user_id (*atd merge_user_id *): int option;
  merge_request_attributes_merge_when_pipeline_succeeds (*atd merge_when_pipeline_succeeds *):
    bool;
  merge_request_attributes_milestone_id (*atd milestone_id *): string option;
  merge_request_attributes_source (*atd source *): project_webhook;
  merge_request_attributes_source_branch (*atd source_branch *): string;
  merge_request_attributes_source_project_id (*atd source_project_id *): int;
  merge_request_attributes_state_id (*atd state_id *): int;
  merge_request_attributes_state (*atd state *): string;
  merge_request_attributes_target (*atd target *): project_webhook;
  merge_request_attributes_target_branch (*atd target_branch *): string;
  merge_request_attributes_target_project_id (*atd target_project_id *): int;
  merge_request_attributes_title (*atd title *): string;
  merge_request_attributes_updated_at (*atd updated_at *): string;
  merge_request_attributes_updated_by_id (*atd updated_by_id *): int option;
  merge_request_attributes_url (*atd url *): string;
  merge_request_attributes_work_in_progress (*atd work_in_progress *): bool;
  merge_request_attributes_total_time_spent (*atd total_time_spent *): int;
  merge_request_attributes_time_change (*atd time_change *): int;
  merge_request_attributes_time_estimate (*atd time_estimate *): int;
  merge_request_attributes_human_total_time_spent (*atd human_total_time_spent *):
    int option;
  merge_request_attributes_human_time_change (*atd human_time_change *):
    int option;
  merge_request_attributes_human_time_estimate (*atd human_time_estimate *):
    int option
}

type label = {
  label_id (*atd id *): int;
  label_title (*atd title *): string;
  label_colour (*atd colour *): string;
  label_project_id (*atd project_id *): int;
  label_created_at (*atd created_at *): string;
  label_updated_at (*atd updated_at *): string;
  label_template (*atd template *): bool;
  label_description (*atd description *): string;
  label_label_type (*atd label_type *): string;
  label_group_id (*atd group_id *): int
}

type merge_request_webhook = {
  merge_request_webhook_event_type (*atd event_type *): string;
  merge_request_webhook_user (*atd user *): user_short;
  merge_request_webhook_project (*atd project *): project_webhook;
  merge_request_webhook_attributes (*atd attributes *):
    merge_request_attributes;
  merge_request_webhook_repository (*atd repository *): repository;
  merge_request_webhook_labels (*atd labels *): label list;
  merge_request_webhook_changes (*atd changes *):
    merge_request_changes option;
  merge_request_webhook_assignees (*atd assignees *): user_short list option
}

type issue_attributes = {
  issue_attributes_assignee_id (*atd assignee_id *): int option;
  issue_attributes_assignee_ids (*atd assignee_ids *): int list;
  issue_attributes_author_id (*atd author_id *): int;
  issue_attributes_closed_at (*atd closed_at *): string option;
  issue_attributes_confidential (*atd confidential *): bool;
  issue_attributes_created_at (*atd created_at *): string;
  issue_attributes_description (*atd description *): string;
  issue_attributes_discussion_locked (*atd discussion_locked *):
    string option;
  issue_attributes_due_date (*atd due_date *): string option;
  issue_attributes_duplicated_to_id (*atd duplicated_to_id *): string option;
  issue_attributes_human_time_change (*atd human_time_change *):
    string option;
  issue_attributes_human_time_estimate (*atd human_time_estimate *):
    string option;
  issue_attributes_human_total_time_spent (*atd human_total_time_spent *):
    string option;
  issue_attributes_id (*atd id *): int;
  issue_attributes_iid (*atd iid *): int;
  issue_attributes_labels (*atd labels *): string list;
  issue_attributes_last_edited_at (*atd last_edited_at *): string option;
  issue_attributes_last_edited_by_id (*atd last_edited_by_id *):
    string option;
  issue_attributes_milestone_id (*atd milestone_id *): string option;
  issue_attributes_moved_to_id (*atd moved_to_id *): int option;
  issue_attributes_project_id (*atd project_id *): int;
  issue_attributes_relative_position (*atd relative_position *): int;
  issue_attributes_severity (*atd severity *): string;
  issue_attributes_state (*atd state *): string;
  issue_attributes_state_id (*atd state_id *): int;
  issue_attributes_time_change (*atd time_change *): int;
  issue_attributes_time_estimate (*atd time_estimate *): int;
  issue_attributes_title (*atd title *): string;
  issue_attributes_total_time_spent (*atd total_time_spent *): int;
  issue_attributes_updated_at (*atd updated_at *): string;
  issue_attributes_updated_by_id (*atd updated_by_id *): int option;
  issue_attributes_url (*atd url *): string;
  issue_attributes_weight (*atd weight *): int option
}

type issue_webhook = {
  issue_webhook_event_type (*atd event_type *): string;
  issue_webhook_user (*atd user *): user_short;
  issue_webhook_project (*atd project *): project_webhook;
  issue_webhook_attributes (*atd attributes *): issue_attributes;
  issue_webhook_labels (*atd labels *): label list;
  issue_webhook_repository (*atd repository *): repository;
  issue_webhook_assignees (*atd assignees *): user_short list
}

type webhook = [
    `Push of push_webhook
  | `MergeRequest of merge_request_webhook
  | `Issue of issue_webhook
  | `Note of note_webhook
  | `WikiPage of wiki_page_webhook
  | `Release of release_webhook
]

type webhooks = webhook list

type visibility = [ `Private | `Public | `Internal ]

type users = user_short list

type user = {
  user_id (*atd id *): int;
  user_username (*atd username *): string;
  user_name (*atd name *): string;
  user_state (*atd state *): string;
  user_avatar_url (*atd avatar_url *): string;
  user_web_url (*atd web_url *): string;
  user_created_at (*atd created_at *): string;
  user_bio (*atd bio *): string option;
  user_bio_html (*atd bio_html *): string option;
  user_location (*atd location *): string option;
  user_public_email (*atd public_email *): string option;
  user_skype (*atd skype *): string option;
  user_linkedin (*atd linkedin *): string option;
  user_twitter (*atd twitter *): string option;
  user_website_url (*atd website_url *): string option;
  user_organization (*atd organization *): string option;
  user_job_title (*atd job_title *): string option;
  user_pronouns (*atd pronouns *): string option;
  user_bot (*atd bot *): bool;
  user_work_information (*atd work_information *): string option;
  user_followers (*atd followers *): int;
  user_following (*atd following *): int
}

type time_stats = {
  time_stats_time_estimate (*atd time_estimate *): int;
  time_stats_total_time_spent (*atd total_time_spent *): int;
  time_stats_human_time_estimate (*atd human_time_estimate *): int option;
  time_stats_human_total_time_spent (*atd human_total_time_spent *):
    int option
}

type task_completion_status = {
  time_completion_status_count (*atd count *): int;
  time_completion_status_completed_count (*atd completed_count *): int
}

type status_check_status = [ `Approved | `Pending ]

type status_check = {
  status_check_id (*atd id *): int;
  status_check_name (*atd name *): string;
  status_check_external_url (*atd external_url *): string;
  status_check_status (*atd status *): status_check_status
}

type status_checks = status_check list

type statistics = {
  statistics_commit_count (*atd commit_count *): int;
  statistics_storage_size (*atd storage_size *): int;
  statistics_repository_size (*atd repository_size *): int;
  statistics_wiki_size (*atd wiki_size *): int;
  statistics_lfs_objects_size (*atd lfs_objects_size *): int;
  statistics_job_artifacts_size (*atd job_artifacts_size *): int;
  statistics_packages_size (*atd packages_size *): int;
  statistics_snippets_size (*atd snippets_size *): int
}

type sort = [ `Asc | `Desc ]

type scope = [
    `Api | `ReadApi | `ReadUser | `ReadRegistry | `WriteRegistry
  | `ReadRepository | `WriteRepository
]

type references = {
  references_short (*atd short *): string;
  references_relative (*atd relative *): string;
  references_full (*atd full *): string
}

type push_data = {
  push_data_commit_count (*atd commit_count *): int;
  push_data_action (*atd action *): string;
  push_data_ref_type (*atd ref_type *): string;
  push_data_commit_from (*atd commit_from *): string option;
  push_data_commit_to (*atd commit_to *): string option;
  push_data_ref (*atd ref *): string option;
  push_data_commit_title (*atd commit_title *): string option;
  push_data_ref_count (*atd ref_count *): int option
}

type namespace = {
  namespace_id (*atd id *): int;
  namespace_name (*atd name *): string;
  namespace_path (*atd path *): string;
  namespace_kind (*atd kind *): string;
  namespace_full_path (*atd full_path *): string;
  namespace_parent_id (*atd parent_id *): int option;
  namespace_avatar_url (*atd avatar_url *): string;
  namespace_web_url (*atd web_url *): string
}

type project_short = {
  project_short_id (*atd id *): int;
  project_short_name (*atd name *): string;
  project_short_description (*atd description *): string;
  project_short_name_with_namespace (*atd name_with_namespace *): string;
  project_short_path (*atd path *): string;
  project_short_path_with_namespace (*atd path_with_namespace *): string;
  project_short_created_at (*atd created_at *): string;
  project_short_default_branch (*atd default_branch *): string;
  project_short_tag_list (*atd tag_list *): string list option;
  project_short_topics (*atd topics *): string list option;
  project_short_ssh_url_to_repo (*atd ssh_url_to_repo *): string;
  project_short_http_url_to_repo (*atd http_url_to_repo *): string;
  project_short_web_url (*atd web_url *): string;
  project_short_readme_url (*atd readme_url *): string option;
  project_short_avatar_url (*atd avatar_url *): string option;
  project_short_forks_count (*atd forks_count *): int;
  project_short_star_count (*atd star_count *): int;
  project_short_last_activity_at (*atd last_activity_at *): string;
  project_short_namespace (*atd namespace *): namespace
}

type projects_short = project_short list

type project_access = {
  project_access_access_level (*atd access_level *): int;
  project_access_notification_level (*atd notification_level *): int
}

type permissions = {
  permissions_group_access (*atd group_access *): string option;
  permissions_project_access (*atd project_access *): project_access
}

type merge_method = [ `Merge | `RebaseMerge | `FastForward ]

type links = {
  links_self (*atd self *): string;
  links_issues (*atd issues *): string;
  links_merge_requests (*atd merge_requests *): string;
  links_repo_branches (*atd repo_branches *): string;
  links_labels (*atd labels *): string;
  links_events (*atd events *): string;
  links_members (*atd members *): string
}

type container_expiration_policy = {
  container_expiration_policy_cadence (*atd cadence *): string;
  container_expiration_policy_enabled (*atd enabled *): bool;
  container_expiration_policy_keep_n (*atd keep_n *): int;
  container_expiration_policy_name_regex (*atd name_regex *): string;
  container_expiration_policy_name_regex_keep (*atd name_regex_keep *):
    string option;
  container_expiration_policy_next_run_at (*atd next_run_at *): string;
  container_expiration_policy_older_than (*atd older_than *): string
}

type project_full = {
  project_full_id (*atd id *): int;
  project_full_name (*atd name *): string;
  project_full_description (*atd description *): string;
  project_full_name_with_namespace (*atd name_with_namespace *): string;
  project_full_created_at (*atd created_at *): string;
  project_full_default_branch (*atd default_branch *): string;
  project_full_tag_list (*atd tag_list *): string list option;
  project_full_topics (*atd topics *): string list option;
  project_full_ssh_url_to_repo (*atd ssh_url_to_repo *): string;
  project_full_http_url_to_repo (*atd http_url_to_repo *): string;
  project_full_web_url (*atd web_url *): string;
  project_full_readme_url (*atd readme_url *): string option;
  project_full_avatar_url (*atd avatar_url *): string option;
  project_full_forks_count (*atd forks_count *): int;
  project_full_star_count (*atd star_count *): int;
  project_full_last_activity_at (*atd last_activity_at *): string;
  project_full_namespace (*atd namespace *): namespace;
  project_full_runners_token (*atd runners_token *): string option;
  project_full_statistics (*atd statistics *): statistics option;
  project_full_allow_merge_on_skipped_pipeline (*atd allow_merge_on_skipped_pipeline *):
    bool option;
  project_full_analytics_access_level (*atd analytics_access_level *): string;
  project_full_approvals_before_merge (*atd approvals_before_merge *): int;
  project_full_archived (*atd archived *): bool;
  project_full_auto_cancel_pending_pipelines (*atd auto_cancel_pending_pipelines *):
    string;
  project_full_auto_devops_deploy_strategy (*atd auto_devops_deploy_strategy *):
    string;
  project_full_auto_devops_enabled (*atd auto_devops_enabled *): bool;
  project_full_autoclose_referenced_issues (*atd autoclose_referenced_issues *):
    bool;
  project_full_build_coverage_regex (*atd build_coverage_regex *):
    string option;
  project_full_build_timeout (*atd build_timeout *): int;
  project_full_builds_access_level (*atd builds_access_level *): string;
  project_full_can_create_merge_request_in (*atd can_create_merge_request_in *):
    bool;
  project_full_ci_config_path (*atd ci_config_path *): string option;
  project_full_ci_default_git_depth (*atd ci_default_git_depth *): int option;
  project_full_ci_forward_deployment_enabled (*atd ci_forward_deployment_enabled *):
    bool option;
  project_full_ci_job_token_scope_enabled (*atd ci_job_token_scope_enabled *):
    bool;
  project_full_compliance_frameworks (*atd compliance_frameworks *):
    string list;
  project_full_container_expiration_policy (*atd container_expiration_policy *):
    container_expiration_policy option;
  project_full_container_registry_access_level (*atd container_registry_access_level *):
    string;
  project_full_container_registry_enabled (*atd container_registry_enabled *):
    bool;
  project_full_container_registry_image_prefix (*atd container_registry_image_prefix *):
    string;
  project_full_creator_id (*atd creator_id *): int;
  project_full_emails_disabled (*atd emails_disabled *): string option;
  project_full_empty_repo (*atd empty_repo *): bool;
  project_full_external_authorization_classification_label (*atd external_authorization_classification_label *):
    string;
  project_full_forked_from_project (*atd forked_from_project *):
    project_short option;
  project_full_forking_access_level (*atd forking_access_level *): string;
  project_full_import_status (*atd import_status *): string;
  project_full_issues_access_level (*atd issues_access_level *): string;
  project_full_issues_enabled (*atd issues_enabled *): bool;
  project_full_issues_template (*atd issues_template *): string option;
  project_full_jobs_enabled (*atd jobs_enabled *): bool;
  project_full_keep_latest_artifact (*atd keep_latest_artifact *): bool;
  project_full_lfs_enabled (*atd lfs_enabled *): bool;
  project_full_links (*atd links *): links;
  project_full_marked_for_deletion_at (*atd marked_for_deletion_at *):
    string option;
  project_full_marked_for_deletion_on (*atd marked_for_deletion_on *):
    string option;
  project_full_merge_method (*atd merge_method *): merge_method;
  project_full_merge_pipelines_enabled (*atd merge_pipelines_enabled *): bool;
  project_full_merge_requests_access_level (*atd merge_requests_access_level *):
    string;
  project_full_merge_requests_enabled (*atd merge_requests_enabled *): bool;
  project_full_merge_requests_template (*atd merge_requests_template *):
    string option;
  project_full_merge_trains_enabled (*atd merge_trains_enabled *): bool;
  project_full_mirror (*atd mirror *): bool;
  project_full_only_allow_merge_if_all_discussions_are_resolved (*atd only_allow_merge_if_all_discussions_are_resolved *):
    bool option;
  project_full_only_allow_merge_if_pipeline_succeeds (*atd only_allow_merge_if_pipeline_succeeds *):
    bool;
  project_full_open_issues_count (*atd open_issues_count *): int;
  project_full_operations_access_level (*atd operations_access_level *):
    string;
  project_full_owner (*atd owner *): user_short;
  project_full_packages_enabled (*atd packages_enabled *): bool option;
  project_full_pages_access_level (*atd pages_access_level *): string;
  project_full_path (*atd path *): string;
  project_full_path_with_namespace (*atd path_with_namespace *): string;
  project_full_permissions (*atd permissions *): permissions;
  project_full_public_jobs (*atd public_jobs *): bool;
  project_full_printing_merge_request_link_enabled (*atd printing_merge_request_link_enabled *):
    bool;
  project_full_remove_source_branch_after_merge (*atd remove_source_branch_after_merge *):
    bool option;
  project_full_repository_access_level (*atd repository_access_level *):
    string;
  project_full_request_access_enabled (*atd request_access_enabled *): bool;
  project_full_requirements_enabled (*atd requirements_enabled *): bool;
  project_full_resolve_outdated_diff_discussions (*atd resolve_outdated_diff_discussions *):
    bool option;
  project_full_restrict_user_defined_variables (*atd restrict_user_defined_variables *):
    bool option;
  project_full_security_and_compliance_enabled (*atd security_and_compliance_enabled *):
    bool;
  project_full_service_desk_address (*atd service_desk_address *):
    string option;
  project_full_service_desk_enabled (*atd service_desk_enabled *):
    bool option;
  project_full_shared_runners_enabled (*atd shared_runners_enabled *): bool;
  project_full_shared_with_groups (*atd shared_with_groups *): string list;
  project_full_snippets_enabled (*atd snippets_enabled *): bool;
  project_full_snippets_access_level (*atd snippets_access_level *): string;
  project_full_squash_option (*atd squash_option *): string;
  project_full_suggestion_commit_message (*atd suggestion_commit_message *):
    string option;
  project_full_visibility (*atd visibility *): visibility;
  project_full_wiki_access_level (*atd wiki_access_level *): string;
  project_full_wiki_enabled (*atd wiki_enabled *): bool
}

type projects_full = project_full list

type project_shorts = project_short list

type project_access_token = {
  project_access_token_id (*atd id *): int;
  project_access_token_name (*atd name *): string;
  project_access_token_revoked (*atd revoked *): bool;
  project_access_token_created_at (*atd created_at *): string;
  project_access_token_scopes (*atd scopes *): scope list;
  project_access_token_user_id (*atd user_id *): int;
  project_access_token_active (*atd active *): bool;
  project_access_token_expires_at (*atd expires_at *): string option
}

type project_access_tokens = project_access_token list

type personal_access_token = {
  personal_access_token_id (*atd id *): int;
  personal_access_token_name (*atd name *): string;
  personal_access_token_revoked (*atd revoked *): bool;
  personal_access_token_created_at (*atd created_at *): string;
  personal_access_token_scopes (*atd scopes *): scope list;
  personal_access_token_user_id (*atd user_id *): int;
  personal_access_token_active (*atd active *): bool;
  personal_access_token_expires_at (*atd expires_at *): string option
}

type personal_access_tokens = personal_access_token list

type owner = {
  owner_id (*atd id *): int;
  owner_name (*atd name *): string;
  owner_created_at (*atd created_at *): string
}

type noteable_type = [ `MergeRequest | `Issue ]

type note = {
  note_id (*atd id *): int;
  note_note_type (*atd note_type *): string option;
  note_body (*atd body *): string;
  note_attachment (*atd attachment *): string option;
  note_author (*atd author *): user_short;
  note_created_at (*atd created_at *): string;
  note_updated_at (*atd updated_at *): string;
  note_system (*atd system *): bool;
  note_noteable_id (*atd noteable_id *): int;
  note_noteable_type (*atd noteable_type *): noteable_type;
  note_resolvable (*atd resolvable *): bool;
  note_confidential (*atd confidential *): bool;
  note_noteable_iid (*atd noteable_iid *): int
}

type new_token = { name: string; expires_at: string; scopes: scope list }

type commit_status_status = [
    `Pending | `Running | `Success | `Failed | `Cancelled
]

type new_status = {
  state: commit_status_status;
  ref_name: string option;
  name: string option;
  target_url: string option;
  description: string option;
  coverage: int option;
  pipeline_id: int option
}

type new_milestone = {
  title: string;
  description: string option;
  due_date: string option;
  start_date: string option
}

type line_type = [ `New | `Old ]

type new_comment = {
  note: string;
  path: string option;
  line: int option;
  line_type: line_type option
}

type milestone_state = [ `Active | `Closed ]

type milestone = {
  milestone_id (*atd id *): int;
  milestone_iid (*atd iid *): int;
  milestone_project_id (*atd project_id *): int option;
  milestone_group_id (*atd group_id *): int option;
  milestone_title (*atd title *): string;
  milestone_description (*atd description *): string;
  milestone_state (*atd state *): milestone_state;
  milestone_created_at (*atd created_at *): string;
  milestone_updated_at (*atd updated_at *): string;
  milestone_due_date (*atd due_date *): string option;
  milestone_start_date (*atd start_date *): string option;
  milestone_expired (*atd expired *): bool option;
  milestone_web_url (*atd web_url *): string
}

type milestones = milestone list

type error = {
  error_resource (*atd resource *): string;
  error_field (*atd field *): string option;
  error_code (*atd code *): string;
  error_message (*atd message *): string option
}

type message = {
  message_message (*atd message *): string;
  message_errors (*atd errors *): error list
}

type merge_request = {
  merge_request_id (*atd id *): int;
  merge_request_iid (*atd iid *): int;
  merge_request_project_id (*atd project_id *): int;
  merge_request_title (*atd title *): string;
  merge_request_description (*atd description *): string;
  merge_request_state (*atd state *): state;
  merge_request_merged_by (*atd merged_by *): user_short option;
  merge_request_merged_at (*atd merged_at *): string option;
  merge_request_closed_by (*atd closed_by *): user_short option;
  merge_request_closed_at (*atd closed_at *): string option;
  merge_request_created_at (*atd created_at *): string;
  merge_request_updated_at (*atd updated_at *): string;
  merge_request_target_branch (*atd target_branch *): string;
  merge_request_source_branch (*atd source_branch *): string;
  merge_request_upvotes (*atd upvotes *): int;
  merge_request_downvotes (*atd downvotes *): int;
  merge_request_author (*atd author *): user_short;
  merge_request_assignee (*atd assignee *): user_short option;
  merge_request_approvals_before_merge (*atd approvals_before_merge *):
    string option;
  merge_request_allow_collaboration (*atd allow_collaboration *): bool option;
  merge_request_allow_maintainer_to_push (*atd allow_maintainer_to_push *):
    bool option;
  merge_request_blocking_discussions_resolved (*atd blocking_discussions_resolved *):
    bool;
  merge_request_has_conflicts (*atd has_conflicts *): bool;
  merge_request_assignees (*atd assignees *): user_short list;
  merge_request_reviewers (*atd reviewers *): user_short list;
  merge_request_source_project_id (*atd source_project_id *): int;
  merge_request_target_project_id (*atd target_project_id *): int;
  merge_request_labels (*atd labels *): string list;
  merge_request_draft (*atd draft *): bool;
  merge_request_work_in_progress (*atd work_in_progress *): bool;
  merge_request_milestone (*atd milestone *): milestone option;
  merge_request_merge_when_pipeline_succeeds (*atd merge_when_pipeline_succeeds *):
    bool;
  merge_request_merge_status (*atd merge_status *): merge_status;
  merge_request_sha (*atd sha *): string;
  merge_request_merge_commit_sha (*atd merge_commit_sha *): string option;
  merge_request_squash_commit_sha (*atd squash_commit_sha *): string option;
  merge_request_user_notes_count (*atd user_notes_count *): int;
  merge_request_discussion_locked (*atd discussion_locked *): bool option;
  merge_request_should_remove_source_branch (*atd should_remove_source_branch *):
    bool option;
  merge_request_force_remove_source_branch (*atd force_remove_source_branch *):
    bool option;
  merge_request_web_url (*atd web_url *): string;
  merge_request_reference (*atd reference *): string;
  merge_request_references (*atd references *): references;
  merge_request_time_stats (*atd time_stats *): time_stats;
  merge_request_squash (*atd squash *): bool;
  merge_request_task_completion_status (*atd task_completion_status *):
    task_completion_status
}

type merge_requests = merge_request list

type merge_request_scope = [ `CreatedByMe | `AssignedToMe | `All ]

type labels = {
  labels_previous (*atd previous *): label list;
  labels_current (*atd current *): label list
}

type branch = {
  branch_id (*atd id *): int;
  branch_project_id (*atd project_id *): int;
  branch_name (*atd name *): string;
  branch_created_at (*atd created_at *): string;
  branch_updated_at (*atd updated_at *): string;
  branch_code_owner_approval_required (*atd code_owner_approval_required *):
    bool
}

type external_status_check = {
  external_status_check_id (*atd id *): int;
  external_status_check_name (*atd name *): string;
  external_status_check_project_id (*atd project_id *): int;
  external_status_check_external_url (*atd external_url *): string;
  external_status_check_protected_branches (*atd protected_branches *):
    branch list
}

type external_status_checks = external_status_check list

type event_target_type = [
    `Issue | `Milestone | `MergeRequest | `Note | `Project | `Snippet | `User
  | `WikiPage
]

type event_action_name = [
    `Accepted | `Approved | `Closed | `CommentedOn | `Created | `Destroyed
  | `Deleted | `Expired | `Joined | `Left | `Merged | `Opened | `Pushed
  | `PushedTo | `PushedNew | `Reopened | `Updated
]

type event = {
  event_id (*atd id *): int;
  event_project_id (*atd project_id *): int;
  event_action_name (*atd action_name *): event_action_name option;
  event_target_id (*atd target_id *): int option;
  event_target_iid (*atd target_iid *): int option;
  event_target_type (*atd target_type *): event_target_type option;
  event_author_id (*atd author_id *): int;
  event_target_title (*atd target_title *): string option;
  event_created_at (*atd created_at *): string;
  event_author (*atd author *): user_short option;
  event_push_data (*atd push_data *): push_data option;
  event_note (*atd note *): note option;
  event_wiki_page (*atd wiki_page *): wiki_page option;
  event_author_username (*atd author_username *): string
}

type events = event list

type error_detail = { message: string; detail: string option }

type commit = {
  commit_id (*atd id *): string;
  commit_short_id (*atd short_id *): string;
  commit_title (*atd title *): string;
  commit_author_name (*atd author_name *): string;
  commit_author_email (*atd author_email *): string;
  commit_authored_date (*atd authored_date *): string;
  commit_committed_date (*atd committed_date *): string;
  commit_committer_email (*atd committer_email *): string;
  commit_committer_name (*atd committer_name *): string;
  commit_created_at (*atd created_at *): string;
  commit_message (*atd message *): string;
  commit_parent_ids (*atd parent_ids *): string list option;
  commit_web_url (*atd web_url *): string
}

type commits = commit list

type commit_status = {
  commit_status_id (*atd id *): int;
  commit_status_sha (*atd sha *): string;
  commit_status_ref (*atd ref *): string;
  commit_status_status (*atd status *): string;
  commit_status_name (*atd name *): string;
  commit_status_target_url (*atd target_url *): string option;
  commit_status_description (*atd description *): string option;
  commit_status_created_at (*atd created_at *): string;
  commit_status_started_at (*atd started_at *): string option;
  commit_status_finished_at (*atd finished_at *): string option;
  commit_status_allow_failure (*atd allow_failure *): bool;
  commit_status_coverage (*atd coverage *): string option;
  commit_status_author (*atd author *): user_short
}

type commit_statuses = commit_status list

type commit_comment = {
  commit_comment_note (*atd note *): string;
  commit_comment_author (*atd author *): user_short
}

type commit_comments = commit_comment list

type commit_commented = {
  commit_commented_author (*atd author *): user_short;
  commit_commented_created_at (*atd created_at *): string;
  commit_commented_line_type (*atd line_type *): line_type;
  commit_commented_path (*atd path *): string;
  commit_commented_line (*atd line *): int;
  commit_commented_note (*atd note *): string
}

type change = {
  change_old_path (*atd old_path *): string;
  change_new_path (*atd new_path *): string;
  change_a_mode (*atd a_mode *): string;
  change_b_mode (*atd b_mode *): string;
  change_diff (*atd diff *): string;
  change_new_file (*atd new_file *): bool;
  change_renamed_file (*atd renamed_file *): bool;
  change_deleted_file (*atd deleted_file *): bool
}

type changes = {
  changes_id (*atd id *): int;
  changes_iid (*atd iid *): int;
  changes_project_id (*atd project_id *): int;
  changes_title (*atd title *): string;
  changes_state (*atd state *): string;
  changes_created_at (*atd created_at *): string;
  changes_updated_at (*atd updated_at *): string;
  changes_target_branch (*atd target_branch *): string;
  changes_source_branch (*atd source_branch *): string;
  changes_upvotes (*atd upvotes *): int;
  changes_downvotes (*atd downvotes *): int;
  changes_author (*atd author *): user_short;
  changes_assignee (*atd assignee *): user_short option;
  changes_assignees (*atd assignees *): user_short list option;
  changes_reviewers (*atd reviewers *): user_short list;
  changes_source_project_id (*atd source_project_id *): int;
  changes_target_project_id (*atd target_project_id *): int;
  changes_labels (*atd labels *): string list;
  changes_description (*atd description *): string;
  changes_draft (*atd draft *): bool;
  changes_work_in_progress (*atd work_in_progress *): bool;
  changes_milestone (*atd milestone *): milestone option;
  changes_merge_when_pipeline_succeeds (*atd merge_when_pipeline_succeeds *):
    bool;
  changes_merge_status (*atd merge_status *): merge_status;
  changes_subscribed (*atd subscribed *): bool;
  changes_sha (*atd sha *): string;
  changes_merge_commit_sha (*atd merge_commit_sha *): string option;
  changes_squash_commit_sha (*atd squash_commit_sha *): string option;
  changes_user_notes_count (*atd user_notes_count *): int;
  changes_changes_count (*atd changes_count *): int;
  changes_should_remove_source_branch (*atd should_remove_source_branch *):
    bool;
  changes_force_remove_source_branch (*atd force_remove_source_branch *):
    bool;
  changes_squash (*atd squash *): bool;
  changes_web_url (*atd web_url *): string;
  changes_references (*atd references *): references;
  changes_discussion_locked (*atd discussion_locked *): bool;
  changes_time_stats (*atd time_stats *): time_stats;
  changes_task_completion_status (*atd task_completion_status *):
    task_completion_status;
  changes_changes (*atd changes *): change list;
  changes_overflow (*atd overflow *): bool
}

type branch_full = {
  branch_full_name (*atd name *): string;
  branch_full_merged (*atd merged *): bool;
  branch_full_protected (*atd protected *): bool;
  branch_full_developers_can_push (*atd developers_can_push *): bool;
  branch_full_developers_can_merge (*atd developers_can_merge *): bool;
  branch_full_can_push (*atd can_push *): bool;
  branch_full_default (*atd default *): bool;
  branch_full_web_url (*atd web_url *): string;
  branch_full_commit (*atd commit *): commit
}

type branches_full = branch_full list

type author_short = {
  author_short_name (*atd name *): string;
  author_short_email (*atd email *): string
}
OCaml

Innovation. Community. Security.