UNPKG

138 kBTypeScriptView Raw
1import {
2 APIClient as BareAPIClient,
3 Options as BareOptions,
4 Plugin
5} from '../src/client/types'
6import { Routes } from '../src/plugins/register-endpoints/types'
7import { PaginatedResponseData, Response } from '../src/request/types'
8import { AuthOptions } from '../src/plugins/auth/types'
9
10interface Options extends BareOptions {
11 auth?: AuthOptions
12 notice?: boolean
13}
14
15type AsyncResponse<T> = Promise<Response<T>>
16
17export interface APIClient extends BareAPIClient {
18 hasNextPage(data: PaginatedResponseData<any>): boolean
19 getNextPage<T>(data: PaginatedResponseData<T>): Response<T>
20 hasPreviousPage(data: PaginatedResponseData<any>): boolean
21 getPreviousPage<T>(data: PaginatedResponseData<T>): Response<T>
22
23 registerEndpoints(routes: Routes): void
24}
25
26export interface APIClientFactory<APIClient> {
27 new (options?: Options): APIClient
28 (options?: Options): APIClient
29
30 plugins(plugins: Plugin[]): APIClientFactory<APIClient>
31}
32
33export namespace Schema {
34 export type Any = any
35 export type AnyObject = { [key: string]: any }
36
37 export type Branch = Ref & {
38 [k: string]: any
39 }
40 export type Commit = BaseCommit & {
41 participants?: Participant[]
42 repository?: Repository
43 [k: string]: any
44 }
45 export type BaseCommit = Object & {
46 author?: Author
47 date?: string
48 hash?: string
49 message?: string
50 parents?: BaseCommit[]
51 summary?: {
52 html?: string
53 markup?: 'markdown' | 'creole' | 'plaintext'
54 raw?: string
55 }
56 [k: string]: any
57 }
58 export type Author = Object & {
59 raw?: string
60 user?: Account
61 [k: string]: any
62 }
63 export type Account = Object & {
64 account_status?: string
65 created_on?: string
66 display_name?: string
67 has_2fa_enabled?: boolean
68 links?: {
69 avatar?: {
70 href?: string
71 name?: string
72 }
73 followers?: {
74 href?: string
75 name?: string
76 }
77 following?: {
78 href?: string
79 name?: string
80 }
81 html?: {
82 href?: string
83 name?: string
84 }
85 repositories?: {
86 href?: string
87 name?: string
88 }
89 self?: {
90 href?: string
91 name?: string
92 }
93 }
94 nickname?: string
95 username?: string
96 uuid?: string
97 website?: string
98 [k: string]: any
99 }
100 export type Participant = Object & {
101 approved?: boolean
102 participated_on?: string
103 role?: 'PARTICIPANT' | 'REVIEWER'
104 user?: User
105 [k: string]: any
106 }
107 export type User = Account & {
108 account_id?: string
109 is_staff?: boolean
110 [k: string]: any
111 }
112 export type Repository = Object & {
113 created_on?: string
114 description?: string
115 fork_policy?: 'allow_forks' | 'no_public_forks' | 'no_forks'
116 full_name?: string
117 has_issues?: boolean
118 has_wiki?: boolean
119 is_private?: boolean
120 language?: string
121 links?: {
122 avatar?: {
123 href?: string
124 name?: string
125 }
126 clone?: {
127 href?: string
128 name?: string
129 }[]
130 commits?: {
131 href?: string
132 name?: string
133 }
134 downloads?: {
135 href?: string
136 name?: string
137 }
138 forks?: {
139 href?: string
140 name?: string
141 }
142 hooks?: {
143 href?: string
144 name?: string
145 }
146 html?: {
147 href?: string
148 name?: string
149 }
150 pullrequests?: {
151 href?: string
152 name?: string
153 }
154 self?: {
155 href?: string
156 name?: string
157 }
158 watchers?: {
159 href?: string
160 name?: string
161 }
162 }
163 mainbranch?: Branch
164 name?: string
165 owner?: Account
166 parent?: Repository
167 project?: Project
168 scm?: 'hg' | 'git'
169 size?: number
170 updated_on?: string
171 uuid?: string
172 [k: string]: any
173 }
174 export type Project = Object & {
175 created_on?: string
176 description?: string
177 is_private?: boolean
178 key?: string
179 links?: {
180 avatar?: {
181 href?: string
182 name?: string
183 }
184 html?: {
185 href?: string
186 name?: string
187 }
188 }
189 name?: string
190 owner?: Team
191 updated_on?: string
192 uuid?: string
193 [k: string]: any
194 }
195 export type Team = Account & {
196 [k: string]: any
197 }
198 export type BranchingModel = Object & {
199 branch_types?:
200 | []
201 | [
202 {
203 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
204 prefix: string
205 }
206 ]
207 | [
208 {
209 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
210 prefix: string
211 },
212 {
213 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
214 prefix: string
215 }
216 ]
217 | [
218 {
219 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
220 prefix: string
221 },
222 {
223 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
224 prefix: string
225 },
226 {
227 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
228 prefix: string
229 }
230 ]
231 | [
232 {
233 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
234 prefix: string
235 },
236 {
237 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
238 prefix: string
239 },
240 {
241 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
242 prefix: string
243 },
244 {
245 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
246 prefix: string
247 }
248 ]
249 development?: {
250 branch?: Branch
251 name: string
252 use_mainbranch: boolean
253 }
254 production?: {
255 branch?: Branch
256 name: string
257 use_mainbranch: boolean
258 }
259 [k: string]: any
260 }
261 export type BranchingModelSettings = Object & {
262 branch_types?:
263 | []
264 | [
265 {
266 enabled?: boolean
267 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
268 prefix?: string
269 }
270 ]
271 | [
272 {
273 enabled?: boolean
274 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
275 prefix?: string
276 },
277 {
278 enabled?: boolean
279 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
280 prefix?: string
281 }
282 ]
283 | [
284 {
285 enabled?: boolean
286 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
287 prefix?: string
288 },
289 {
290 enabled?: boolean
291 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
292 prefix?: string
293 },
294 {
295 enabled?: boolean
296 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
297 prefix?: string
298 }
299 ]
300 | [
301 {
302 enabled?: boolean
303 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
304 prefix?: string
305 },
306 {
307 enabled?: boolean
308 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
309 prefix?: string
310 },
311 {
312 enabled?: boolean
313 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
314 prefix?: string
315 },
316 {
317 enabled?: boolean
318 kind: 'feature' | 'bugfix' | 'release' | 'hotfix'
319 prefix?: string
320 }
321 ]
322 development?: {
323 is_valid?: boolean
324 name?: string
325 use_mainbranch?: boolean
326 }
327 links?: {
328 self?: {
329 href?: string
330 name?: string
331 }
332 }
333 production?: {
334 enabled?: boolean
335 is_valid?: boolean
336 name?: string
337 use_mainbranch?: boolean
338 }
339 [k: string]: any
340 }
341 export type Branchrestriction = Object & {
342 branch_match_kind: 'branching_model' | 'glob'
343 branch_type?:
344 | 'feature'
345 | 'bugfix'
346 | 'release'
347 | 'hotfix'
348 | 'development'
349 | 'production'
350 groups?: Group[]
351 id?: number
352 kind:
353 | 'require_tasks_to_be_completed'
354 | 'force'
355 | 'restrict_merges'
356 | 'enforce_merge_checks'
357 | 'require_approvals_to_merge'
358 | 'delete'
359 | 'require_all_dependencies_merged'
360 | 'push'
361 | 'require_passing_builds_to_merge'
362 | 'reset_pullrequest_approvals_on_change'
363 | 'require_default_reviewer_approvals_to_merge'
364 links?: {
365 self?: {
366 href?: string
367 name?: string
368 }
369 }
370 pattern: string
371 users?: Account[]
372 value?: number
373 [k: string]: any
374 }
375 export type Group = Object & {
376 full_slug?: string
377 links?: {
378 html?: {
379 href?: string
380 name?: string
381 }
382 self?: {
383 href?: string
384 name?: string
385 }
386 }
387 members?: number
388 name?: string
389 owner?: Account
390 slug?: string
391 [k: string]: any
392 }
393 export type CommitComment = Comment & {
394 commit?: Commit
395 [k: string]: any
396 }
397 export type Comment = Object & {
398 content?: {
399 html?: string
400 markup?: 'markdown' | 'creole' | 'plaintext'
401 raw?: string
402 }
403 created_on?: string
404 deleted?: boolean
405 id?: number
406 inline?: {
407 from?: number
408 path: string
409 to?: number
410 }
411 links?: {
412 code?: {
413 href?: string
414 name?: string
415 }
416 html?: {
417 href?: string
418 name?: string
419 }
420 self?: {
421 href?: string
422 name?: string
423 }
424 }
425 parent?: Comment
426 updated_on?: string
427 user?: User
428 [k: string]: any
429 }
430 export type Commitstatus = Object & {
431 created_on?: string
432 description?: string
433 key?: string
434 links?: {
435 commit?: {
436 href?: string
437 name?: string
438 }
439 self?: {
440 href?: string
441 name?: string
442 }
443 }
444 name?: string
445 refname?: string
446 state?: 'SUCCESSFUL' | 'FAILED' | 'INPROGRESS' | 'STOPPED'
447 updated_on?: string
448 url?: string
449 uuid?: string
450 [k: string]: any
451 }
452 export type Component = Object & {
453 id?: number
454 links?: {
455 self?: {
456 href?: string
457 name?: string
458 }
459 }
460 name?: string
461 [k: string]: any
462 }
463 export type DeployKey = Object & {
464 added_on?: string
465 comment?: string
466 key?: string
467 label?: string
468 last_used?: string
469 links?: {
470 self?: {
471 href?: string
472 name?: string
473 }
474 }
475 owner?: Account
476 repository?: Repository
477 [k: string]: any
478 }
479 export type Deployment = Object & {
480 environment?: DeploymentEnvironment
481 release?: DeploymentRelease
482 state?: DeploymentState
483 uuid?: string
484 [k: string]: any
485 }
486 export type DeploymentEnvironment = Object & {
487 name?: string
488 uuid?: string
489 [k: string]: any
490 }
491 export type DeploymentRelease = Object & {
492 commit?: Commit
493 created_on?: string
494 name?: string
495 url?: string
496 uuid?: string
497 [k: string]: any
498 }
499 export type DeploymentState = Object & {
500 [k: string]: any
501 }
502 export type DeploymentVariable = Object & {
503 key?: string
504 secured?: boolean
505 uuid?: string
506 value?: string
507 [k: string]: any
508 }
509 export type Issue = Object & {
510 assignee?: User
511 component?: Component
512 content?: {
513 html?: string
514 markup?: 'markdown' | 'creole' | 'plaintext'
515 raw?: string
516 }
517 created_on?: string
518 edited_on?: string
519 id?: number
520 kind?: 'bug' | 'enhancement' | 'proposal' | 'task'
521 links?: {
522 attachments?: {
523 href?: string
524 name?: string
525 }
526 comments?: {
527 href?: string
528 name?: string
529 }
530 html?: {
531 href?: string
532 name?: string
533 }
534 self?: {
535 href?: string
536 name?: string
537 }
538 vote?: {
539 href?: string
540 name?: string
541 }
542 watch?: {
543 href?: string
544 name?: string
545 }
546 }
547 milestone?: Milestone
548 priority?: 'trivial' | 'minor' | 'major' | 'critical' | 'blocker'
549 reporter?: User
550 repository?: Repository
551 state?:
552 | 'new'
553 | 'open'
554 | 'resolved'
555 | 'on hold'
556 | 'invalid'
557 | 'duplicate'
558 | 'wontfix'
559 | 'closed'
560 title?: string
561 updated_on?: string
562 version?: Version
563 votes?: number
564 [k: string]: any
565 }
566 export type Milestone = Object & {
567 id?: number
568 links?: {
569 self?: {
570 href?: string
571 name?: string
572 }
573 }
574 name?: string
575 [k: string]: any
576 }
577 export type Version = Object & {
578 id?: number
579 links?: {
580 self?: {
581 href?: string
582 name?: string
583 }
584 }
585 name?: string
586 [k: string]: any
587 }
588 export type IssueComment = Comment & {
589 issue?: Issue
590 [k: string]: any
591 }
592 export type IssueAttachment = Object & {
593 links?: {
594 self?: {
595 href?: string
596 name?: string
597 }
598 }
599 name?: string
600 [k: string]: any
601 }
602 export type PipelineKnownHost = Object & {
603 hostname?: string
604 public_key?: PipelineSshPublicKey
605 uuid?: string
606 [k: string]: any
607 }
608 export type PipelineSshPublicKey = Object & {
609 key?: string
610 key_type?: string
611 md5_fingerprint?: string
612 sha256_fingerprint?: string
613 [k: string]: any
614 }
615 export type PipelineScheduleExecution = Object & {
616 [k: string]: any
617 }
618 export type PipelineSchedule = Object & {
619 created_on?: string
620 cron_pattern?: string
621 enabled?: boolean
622 selector?: PipelineSelector
623 target?: PipelineTarget
624 updated_on?: string
625 uuid?: string
626 [k: string]: any
627 }
628 export type PipelineSelector = Object & {
629 pattern?: string
630 type?: 'branches' | 'tags' | 'bookmarks' | 'default' | 'custom'
631 [k: string]: any
632 }
633 export type PipelineTarget = Object & {
634 [k: string]: any
635 }
636 export type PipelineStep = Object & {
637 completed_on?: string
638 image?: PipelineImage
639 script_commands?: PipelineCommand[]
640 setup_commands?: PipelineCommand[]
641 started_on?: string
642 state?: PipelineStepState
643 uuid?: string
644 [k: string]: any
645 }
646 export type PipelineStepState = Object & {
647 [k: string]: any
648 }
649 export type PipelineVariable = Object & {
650 key?: string
651 secured?: boolean
652 uuid?: string
653 value?: string
654 [k: string]: any
655 }
656 export type Pipeline = Object & {
657 build_number?: number
658 build_seconds_used?: number
659 completed_on?: string
660 created_on?: string
661 creator?: Account
662 repository?: Repository
663 state?: PipelineState
664 target?: PipelineTarget
665 trigger?: PipelineTrigger
666 uuid?: string
667 [k: string]: any
668 }
669 export type PipelineState = Object & {
670 [k: string]: any
671 }
672 export type PipelineTrigger = Object & {
673 [k: string]: any
674 }
675 export type PullrequestComment = Comment & {
676 pullrequest?: Pullrequest
677 [k: string]: any
678 }
679 export type Pullrequest = Object & {
680 author?: Account
681 close_source_branch?: boolean
682 closed_by?: Account
683 comment_count?: number
684 created_on?: string
685 destination?: PullrequestEndpoint
686 id?: number
687 links?: {
688 activity?: {
689 href?: string
690 name?: string
691 }
692 approve?: {
693 href?: string
694 name?: string
695 }
696 comments?: {
697 href?: string
698 name?: string
699 }
700 commits?: {
701 href?: string
702 name?: string
703 }
704 decline?: {
705 href?: string
706 name?: string
707 }
708 diff?: {
709 href?: string
710 name?: string
711 }
712 diffstat?: {
713 href?: string
714 name?: string
715 }
716 html?: {
717 href?: string
718 name?: string
719 }
720 merge?: {
721 href?: string
722 name?: string
723 }
724 self?: {
725 href?: string
726 name?: string
727 }
728 }
729 merge_commit?: {
730 hash?: string
731 }
732 participants?: Participant[]
733 reason?: string
734 rendered?: {
735 description?: {
736 html?: string
737 markup?: 'markdown' | 'creole' | 'plaintext'
738 raw?: string
739 }
740 reason?: {
741 html?: string
742 markup?: 'markdown' | 'creole' | 'plaintext'
743 raw?: string
744 }
745 title?: {
746 html?: string
747 markup?: 'markdown' | 'creole' | 'plaintext'
748 raw?: string
749 }
750 }
751 reviewers?: Account[]
752 source?: PullrequestEndpoint
753 state?: 'MERGED' | 'SUPERSEDED' | 'OPEN' | 'DECLINED'
754 summary?: {
755 html?: string
756 markup?: 'markdown' | 'creole' | 'plaintext'
757 raw?: string
758 }
759 task_count?: number
760 title?: string
761 updated_on?: string
762 [k: string]: any
763 }
764 export type SnippetComment = Object & {
765 links?: {
766 html?: {
767 href?: string
768 name?: string
769 }
770 self?: {
771 href?: string
772 name?: string
773 }
774 }
775 snippet?: Snippet
776 [k: string]: any
777 }
778 export type Snippet = Object & {
779 created_on?: string
780 creator?: Account
781 id?: number
782 is_private?: boolean
783 owner?: Account
784 scm?: 'hg' | 'git'
785 title?: string
786 updated_on?: string
787 [k: string]: any
788 }
789 export type SnippetCommit = BaseCommit & {
790 links?: {
791 diff?: {
792 href?: string
793 name?: string
794 }
795 html?: {
796 href?: string
797 name?: string
798 }
799 self?: {
800 href?: string
801 name?: string
802 }
803 }
804 snippet?: Snippet
805 [k: string]: any
806 }
807 export type SshAccountKey = SshKey & {
808 owner?: Account
809 [k: string]: any
810 }
811 export type SshKey = Object & {
812 comment?: string
813 created_on?: string
814 key?: string
815 label?: string
816 last_used?: string
817 links?: {
818 self?: {
819 href?: string
820 name?: string
821 }
822 }
823 uuid?: string
824 [k: string]: any
825 }
826 export type Tag = Ref & {
827 date?: string
828 message?: string
829 tagger?: Author
830 [k: string]: any
831 }
832 export type WebhookSubscription = Object & {
833 active?: boolean
834 created_at?: string
835 description?: string
836 events?: (
837 | 'pullrequest:unapproved'
838 | 'issue:comment_created'
839 | 'pullrequest:approved'
840 | 'repo:created'
841 | 'repo:deleted'
842 | 'repo:imported'
843 | 'pullrequest:comment_updated'
844 | 'issue:updated'
845 | 'project:updated'
846 | 'pullrequest:comment_created'
847 | 'repo:commit_status_updated'
848 | 'pullrequest:updated'
849 | 'issue:created'
850 | 'repo:fork'
851 | 'pullrequest:comment_deleted'
852 | 'repo:commit_status_created'
853 | 'repo:updated'
854 | 'pullrequest:rejected'
855 | 'pullrequest:fulfilled'
856 | 'repo:push'
857 | 'pullrequest:created'
858 | 'repo:transfer'
859 | 'repo:commit_comment_created')[]
860 subject?: Object
861 subject_type?: 'workspace' | 'user' | 'repository' | 'team'
862 url?: string
863 uuid?: string
864 [k: string]: any
865 }
866 export type PipelineBuildNumber = Object & {
867 next?: number
868 [k: string]: any
869 }
870 export type PipelineSshKeyPair = Object & {
871 private_key?: string
872 public_key?: string
873 [k: string]: any
874 }
875 export type PipelinesConfig = Object & {
876 enabled?: boolean
877 repository?: Repository
878 [k: string]: any
879 }
880 export interface Ref {
881 links?: {
882 commits?: {
883 href?: string
884 name?: string
885 }
886 html?: {
887 href?: string
888 name?: string
889 }
890 self?: {
891 href?: string
892 name?: string
893 }
894 }
895 name?: string
896 target?: Commit
897 type: string
898 [k: string]: any
899 }
900 export interface Object {
901 type: string
902 [k: string]: any
903 }
904 export interface Error {
905 error?: {
906 data?: {
907 [k: string]: any
908 }
909 detail?: string
910 message: string
911 }
912 type: string
913 [k: string]: any
914 }
915 export interface IssueChange {
916 changes?: {
917 assignee?: {
918 new?: string
919 old?: string
920 }
921 component?: {
922 new?: string
923 old?: string
924 }
925 content?: {
926 new?: string
927 old?: string
928 }
929 kind?: {
930 new?: string
931 old?: string
932 }
933 milestone?: {
934 new?: string
935 old?: string
936 }
937 priority?: {
938 new?: string
939 old?: string
940 }
941 state?: {
942 new?: string
943 old?: string
944 }
945 title?: {
946 new?: string
947 old?: string
948 }
949 version?: {
950 new?: string
951 old?: string
952 }
953 }
954 created_on?: string
955 issue?: Issue
956 links?: {
957 issue?: {
958 href?: string
959 name?: string
960 }
961 self?: {
962 href?: string
963 name?: string
964 }
965 }
966 message?: {
967 html?: string
968 markup?: 'markdown' | 'creole' | 'plaintext'
969 raw?: string
970 }
971 name?: string
972 type: string
973 user?: User
974 [k: string]: any
975 }
976 export interface IssueJobStatus {
977 count?: number
978 pct?: number
979 phase?: string
980 status?: 'ACCEPTED' | 'STARTED' | 'RUNNING' | 'FAILURE'
981 total?: number
982 type?: string
983 }
984 export interface PaginatedBranches {
985 next?: string
986 page?: number
987 pagelen?: number
988 previous?: string
989 size?: number
990 values?: Branch[]
991 }
992 export interface PaginatedBranchrestrictions {
993 next?: string
994 page?: number
995 pagelen?: number
996 previous?: string
997 size?: number
998 values?: Branchrestriction[]
999 }
1000 export interface PaginatedCommitComments {
1001 next?: string
1002 page?: number
1003 pagelen?: number
1004 previous?: string
1005 size?: number
1006 values?: CommitComment[]
1007 }
1008 export interface PaginatedCommitstatuses {
1009 next?: string
1010 page?: number
1011 pagelen?: number
1012 previous?: string
1013 size?: number
1014 values?: Commitstatus[]
1015 }
1016 export interface PaginatedComponents {
1017 next?: string
1018 page?: number
1019 pagelen?: number
1020 previous?: string
1021 size?: number
1022 values?: Component[]
1023 }
1024 export interface PaginatedDeployKeys {
1025 next?: string
1026 page?: number
1027 pagelen?: number
1028 previous?: string
1029 size?: number
1030 values?: DeployKey[]
1031 }
1032 export interface PaginatedDeploymentVariable {
1033 next?: string
1034 page?: number
1035 pagelen?: number
1036 previous?: string
1037 size?: number
1038 values?: DeploymentVariable[]
1039 [k: string]: any
1040 }
1041 export interface PaginatedDeployments {
1042 next?: string
1043 page?: number
1044 pagelen?: number
1045 previous?: string
1046 size?: number
1047 values?: Deployment[]
1048 [k: string]: any
1049 }
1050 export interface PaginatedDiffstats {
1051 next?: string
1052 page?: number
1053 pagelen?: number
1054 previous?: string
1055 size?: number
1056 values?: Diffstat[]
1057 }
1058 export interface Diffstat {
1059 lines_added?: number
1060 lines_removed?: number
1061 new?: CommitFile
1062 old?: CommitFile
1063 status?: 'added' | 'removed' | 'modified' | 'renamed'
1064 type: string
1065 [k: string]: any
1066 }
1067 export interface CommitFile {
1068 attributes?: 'link' | 'executable' | 'subrepository' | 'binary' | 'lfs'
1069 commit?: Commit
1070 path?: string
1071 type: string
1072 [k: string]: any
1073 }
1074 export interface PaginatedEnvironments {
1075 next?: string
1076 page?: number
1077 pagelen?: number
1078 previous?: string
1079 size?: number
1080 values?: DeploymentEnvironment[]
1081 [k: string]: any
1082 }
1083 export interface PaginatedFiles {
1084 next?: string
1085 page?: number
1086 pagelen?: number
1087 previous?: string
1088 size?: number
1089 values?: CommitFile[]
1090 }
1091 export interface PaginatedHookEvents {
1092 next?: string
1093 page?: number
1094 pagelen?: number
1095 previous?: string
1096 size?: number
1097 values?: HookEvent[]
1098 }
1099 export interface HookEvent {
1100 category?: string
1101 description?: string
1102 event?:
1103 | 'pullrequest:unapproved'
1104 | 'issue:comment_created'
1105 | 'pullrequest:approved'
1106 | 'repo:created'
1107 | 'repo:deleted'
1108 | 'repo:imported'
1109 | 'pullrequest:comment_updated'
1110 | 'issue:updated'
1111 | 'project:updated'
1112 | 'pullrequest:comment_created'
1113 | 'repo:commit_status_updated'
1114 | 'pullrequest:updated'
1115 | 'issue:created'
1116 | 'repo:fork'
1117 | 'pullrequest:comment_deleted'
1118 | 'repo:commit_status_created'
1119 | 'repo:updated'
1120 | 'pullrequest:rejected'
1121 | 'pullrequest:fulfilled'
1122 | 'repo:push'
1123 | 'pullrequest:created'
1124 | 'repo:transfer'
1125 | 'repo:commit_comment_created'
1126 label?: string
1127 }
1128 export interface PaginatedIssueAttachments {
1129 next?: string
1130 page?: number
1131 pagelen?: number
1132 previous?: string
1133 size?: number
1134 values?: IssueAttachment[]
1135 }
1136 export interface PaginatedIssueComments {
1137 next?: string
1138 page?: number
1139 pagelen?: number
1140 previous?: string
1141 size?: number
1142 values?: IssueComment[]
1143 }
1144 export interface PaginatedIssues {
1145 next?: string
1146 page?: number
1147 pagelen?: number
1148 previous?: string
1149 size?: number
1150 values?: Issue[]
1151 }
1152 export interface PaginatedLogEntries {
1153 next?: string
1154 page?: number
1155 pagelen?: number
1156 previous?: string
1157 size?: number
1158 values?: IssueChange[]
1159 }
1160 export interface PaginatedMilestones {
1161 next?: string
1162 page?: number
1163 pagelen?: number
1164 previous?: string
1165 size?: number
1166 values?: Milestone[]
1167 }
1168 export interface PaginatedPipelineKnownHosts {
1169 next?: string
1170 page?: number
1171 pagelen?: number
1172 previous?: string
1173 size?: number
1174 values?: PipelineKnownHost[]
1175 [k: string]: any
1176 }
1177 export interface PaginatedPipelineScheduleExecutions {
1178 next?: string
1179 page?: number
1180 pagelen?: number
1181 previous?: string
1182 size?: number
1183 values?: PipelineScheduleExecution[]
1184 [k: string]: any
1185 }
1186 export interface PaginatedPipelineSchedules {
1187 next?: string
1188 page?: number
1189 pagelen?: number
1190 previous?: string
1191 size?: number
1192 values?: PipelineSchedule[]
1193 [k: string]: any
1194 }
1195 export interface PaginatedPipelineSteps {
1196 next?: string
1197 page?: number
1198 pagelen?: number
1199 previous?: string
1200 size?: number
1201 values?: PipelineStep[]
1202 [k: string]: any
1203 }
1204 export interface PipelineImage {
1205 email?: string
1206 name?: string
1207 password?: string
1208 username?: string
1209 [k: string]: any
1210 }
1211 export interface PipelineCommand {
1212 command?: string
1213 name?: string
1214 [k: string]: any
1215 }
1216 export interface PaginatedPipelineVariables {
1217 next?: string
1218 page?: number
1219 pagelen?: number
1220 previous?: string
1221 size?: number
1222 values?: PipelineVariable[]
1223 [k: string]: any
1224 }
1225 export interface PaginatedPipelines {
1226 next?: string
1227 page?: number
1228 pagelen?: number
1229 previous?: string
1230 size?: number
1231 values?: Pipeline[]
1232 [k: string]: any
1233 }
1234 export interface PaginatedProjects {
1235 next?: string
1236 page?: number
1237 pagelen?: number
1238 previous?: string
1239 size?: number
1240 values?: Project[]
1241 }
1242 export interface PaginatedPullrequestComments {
1243 next?: string
1244 page?: number
1245 pagelen?: number
1246 previous?: string
1247 size?: number
1248 values?: PullrequestComment[]
1249 }
1250 export interface PullrequestEndpoint {
1251 branch?: {
1252 default_merge_strategy?: string
1253 merge_strategies?: ('merge_commit' | 'squash' | 'fast_forward')[]
1254 name?: string
1255 }
1256 commit?: {
1257 hash?: string
1258 }
1259 repository?: Repository
1260 }
1261 export interface PaginatedPullrequests {
1262 next?: string
1263 page?: number
1264 pagelen?: number
1265 previous?: string
1266 size?: number
1267 values?: Pullrequest[]
1268 }
1269 export interface PaginatedRefs {
1270 next?: string
1271 page?: number
1272 pagelen?: number
1273 previous?: string
1274 size?: number
1275 values?: Ref[]
1276 }
1277 export interface PaginatedRepositories {
1278 next?: string
1279 page?: number
1280 pagelen?: number
1281 previous?: string
1282 size?: number
1283 values?: Repository[]
1284 }
1285 export interface PaginatedRepositoryPermissions {
1286 next?: string
1287 page?: number
1288 pagelen?: number
1289 previous?: string
1290 size?: number
1291 values?: RepositoryPermission[]
1292 }
1293 export interface RepositoryPermission {
1294 permission?: 'admin' | 'write' | 'read'
1295 repository?: Repository
1296 type: string
1297 user?: User
1298 [k: string]: any
1299 }
1300 export interface PaginatedSnippetComments {
1301 next?: string
1302 page?: number
1303 pagelen?: number
1304 previous?: string
1305 size?: number
1306 values?: SnippetComment[]
1307 }
1308 export interface PaginatedSnippetCommit {
1309 next?: string
1310 page?: number
1311 pagelen?: number
1312 previous?: string
1313 size?: number
1314 values?: SnippetCommit[]
1315 }
1316 export interface PaginatedSnippets {
1317 next?: string
1318 page?: number
1319 pagelen?: number
1320 previous?: string
1321 size?: number
1322 values?: Snippet[]
1323 }
1324 export interface PaginatedSshUserKeys {
1325 next?: string
1326 page?: number
1327 pagelen?: number
1328 previous?: string
1329 size?: number
1330 values?: SshAccountKey[]
1331 }
1332 export interface PaginatedTags {
1333 next?: string
1334 page?: number
1335 pagelen?: number
1336 previous?: string
1337 size?: number
1338 values?: Tag[]
1339 }
1340 export interface PaginatedTeamPermissions {
1341 next?: string
1342 page?: number
1343 pagelen?: number
1344 previous?: string
1345 size?: number
1346 values?: TeamPermission[]
1347 }
1348 export interface TeamPermission {
1349 permission?: 'admin' | 'collaborator'
1350 team?: Team
1351 type: string
1352 user?: User
1353 [k: string]: any
1354 }
1355 export interface PaginatedTeams {
1356 next?: string
1357 page?: number
1358 pagelen?: number
1359 previous?: string
1360 size?: number
1361 values?: Team[]
1362 }
1363 export interface PaginatedTreeentries {
1364 next?: string
1365 page?: number
1366 pagelen?: number
1367 previous?: string
1368 size?: number
1369 values?: Treeentry[]
1370 }
1371 export interface Treeentry {
1372 commit?: Commit
1373 path?: string
1374 type: string
1375 [k: string]: any
1376 }
1377 export interface PaginatedUsers {
1378 next?: string
1379 page?: number
1380 pagelen?: number
1381 previous?: string
1382 size?: number
1383 values?: User[]
1384 }
1385 export interface PaginatedVersions {
1386 next?: string
1387 page?: number
1388 pagelen?: number
1389 previous?: string
1390 size?: number
1391 values?: Version[]
1392 }
1393 export interface PaginatedWebhookSubscriptions {
1394 next?: string
1395 page?: number
1396 pagelen?: number
1397 previous?: string
1398 size?: number
1399 values?: WebhookSubscription[]
1400 }
1401 export interface PullrequestMergeParameters {
1402 close_source_branch?: boolean
1403 merge_strategy?: 'merge_commit' | 'squash' | 'fast_forward'
1404 message?: string
1405 type: string
1406 [k: string]: any
1407 }
1408 export interface SearchResultPage {
1409 next?: string
1410 page?: number
1411 pagelen?: number
1412 previous?: string
1413 query_substituted?: boolean
1414 size?: number
1415 values?: SearchCodeSearchResult[]
1416 [k: string]: any
1417 }
1418 export interface SearchCodeSearchResult {
1419 content_match_count?: number
1420 content_matches?: SearchContentMatch[]
1421 file?: CommitFile
1422 path_matches?: SearchSegment[]
1423 type?: string
1424 [k: string]: any
1425 }
1426 export interface SearchContentMatch {
1427 lines?: SearchLine[]
1428 [k: string]: any
1429 }
1430 export interface SearchLine {
1431 line?: number
1432 segments?: SearchSegment[]
1433 [k: string]: any
1434 }
1435 export interface SearchSegment {
1436 match?: boolean
1437 text?: string
1438 [k: string]: any
1439 }
1440 export interface SubjectTypes {
1441 repository?: {
1442 events?: {
1443 href?: string
1444 name?: string
1445 }
1446 }
1447 team?: {
1448 events?: {
1449 href?: string
1450 name?: string
1451 }
1452 }
1453 user?: {
1454 events?: {
1455 href?: string
1456 name?: string
1457 }
1458 }
1459 }
1460}
1461
1462export namespace Params {
1463 export type Empty = {}
1464
1465 export type BranchingModelGet = {
1466 repo_slug: string
1467 workspace: string
1468 fields?: string
1469 }
1470 export type BranchingModelGetSettings = {
1471 repo_slug: string
1472 workspace: string
1473 fields?: string
1474 }
1475 export type BranchingModelUpdateSettings = {
1476 _body?: Schema.BranchingModelSettings
1477 repo_slug: string
1478 workspace: string
1479 }
1480 export type BranchrestrictionsCreate = {
1481 _body: Schema.Branchrestriction
1482 repo_slug: string
1483 workspace: string
1484 }
1485 export type BranchrestrictionsDelete = {
1486 id: string
1487 repo_slug: string
1488 workspace: string
1489 }
1490 export type BranchrestrictionsGet = {
1491 id: string
1492 repo_slug: string
1493 workspace: string
1494 fields?: string
1495 }
1496 export type BranchrestrictionsList = {
1497 kind?: string
1498 pattern?: string
1499 repo_slug: string
1500 workspace: string
1501 page?: string
1502 pagelen?: number
1503 q?: string
1504 sort?: string
1505 fields?: string
1506 }
1507 export type BranchrestrictionsUpdate = {
1508 _body: Schema.Branchrestriction
1509 id: string
1510 repo_slug: string
1511 workspace: string
1512 }
1513 export type CommitsCreateApproval = {
1514 node: string
1515 repo_slug: string
1516 workspace: string
1517 }
1518 export type CommitsCreateComment = {
1519 _body: Schema.CommitComment
1520 node: string
1521 repo_slug: string
1522 workspace: string
1523 }
1524 export type CommitsDeleteApproval = {
1525 node: string
1526 repo_slug: string
1527 workspace: string
1528 }
1529 export type CommitsGet = {
1530 node: string
1531 repo_slug: string
1532 workspace: string
1533 fields?: string
1534 }
1535 export type CommitsGetComment = {
1536 comment_id: number
1537 node: string
1538 repo_slug: string
1539 workspace: string
1540 fields?: string
1541 }
1542 export type CommitsGetDiff = {
1543 binary?: boolean
1544 context?: number
1545 ignore_whitespace?: boolean
1546 path?: string
1547 repo_slug: string
1548 spec: string
1549 workspace: string
1550 fields?: string
1551 }
1552 export type CommitsGetPatch = {
1553 repo_slug: string
1554 spec: string
1555 workspace: string
1556 fields?: string
1557 }
1558 export type CommitsList = {
1559 exclude?: string
1560 include?: string
1561 repo_slug: string
1562 workspace: string
1563 page?: string
1564 pagelen?: number
1565 q?: string
1566 sort?: string
1567 fields?: string
1568 }
1569 export type CommitsListAlt = {
1570 exclude?: string
1571 include?: string
1572 repo_slug: string
1573 workspace: string
1574 page?: string
1575 pagelen?: number
1576 q?: string
1577 sort?: string
1578 }
1579 export type CommitsListAt = {
1580 exclude?: string
1581 include?: string
1582 repo_slug: string
1583 revision: string
1584 workspace: string
1585 page?: string
1586 pagelen?: number
1587 q?: string
1588 sort?: string
1589 fields?: string
1590 }
1591 export type CommitsListAtAlt = {
1592 exclude?: string
1593 include?: string
1594 repo_slug: string
1595 revision: string
1596 workspace: string
1597 page?: string
1598 pagelen?: number
1599 q?: string
1600 sort?: string
1601 }
1602 export type CommitsListComments = {
1603 node: string
1604 repo_slug: string
1605 workspace: string
1606 page?: string
1607 pagelen?: number
1608 q?: string
1609 sort?: string
1610 fields?: string
1611 }
1612 export type CommitstatusesCreateBuildStatus = {
1613 _body?: Schema.Commitstatus
1614 node: string
1615 repo_slug: string
1616 workspace: string
1617 }
1618 export type CommitstatusesGetBuildStatus = {
1619 key: string
1620 node: string
1621 repo_slug: string
1622 workspace: string
1623 fields?: string
1624 }
1625 export type CommitstatusesList = {
1626 node: string
1627 repo_slug: string
1628 workspace: string
1629 page?: string
1630 pagelen?: number
1631 q?: string
1632 sort?: string
1633 fields?: string
1634 }
1635 export type CommitstatusesListPullRequestStatuses = {
1636 pull_request_id: number
1637 repo_slug: string
1638 workspace: string
1639 page?: string
1640 pagelen?: number
1641 q?: string
1642 sort?: string
1643 fields?: string
1644 }
1645 export type CommitstatusesUpdateBuildStatus = {
1646 _body?: Schema.Commitstatus
1647 key: string
1648 node: string
1649 repo_slug: string
1650 workspace: string
1651 }
1652 export type DeployCreateKey = {
1653 key: string
1654 label: string
1655 repo_slug: string
1656 workspace: string
1657 }
1658 export type DeployDeleteKey = {
1659 key_id: string
1660 repo_slug: string
1661 workspace: string
1662 }
1663 export type DeployGetKey = {
1664 key_id: string
1665 repo_slug: string
1666 workspace: string
1667 fields?: string
1668 }
1669 export type DeployListKeys = {
1670 repo_slug: string
1671 workspace: string
1672 page?: string
1673 pagelen?: number
1674 q?: string
1675 sort?: string
1676 fields?: string
1677 }
1678 export type DeployUpdateKey = {
1679 key_id: string
1680 repo_slug: string
1681 workspace: string
1682 }
1683 export type DeploymentsGet = {
1684 deployment_uuid: string
1685 repo_slug: string
1686 workspace: string
1687 fields?: string
1688 }
1689 export type DeploymentsGetEnvironment = {
1690 environment_uuid: string
1691 repo_slug: string
1692 workspace: string
1693 fields?: string
1694 }
1695 export type DeploymentsList = {
1696 repo_slug: string
1697 workspace: string
1698 page?: string
1699 pagelen?: number
1700 q?: string
1701 sort?: string
1702 fields?: string
1703 }
1704 export type DeploymentsListEnvironments = {
1705 repo_slug: string
1706 workspace: string
1707 page?: string
1708 pagelen?: number
1709 q?: string
1710 sort?: string
1711 fields?: string
1712 }
1713 export type DeploymentsUpdateEnvironment = {
1714 _body: any
1715 environment_uuid: string
1716 repo_slug: string
1717 workspace: string
1718 }
1719 export type DownloadsCreate = {
1720 _body: FormData
1721 repo_slug: string
1722 workspace: string
1723 }
1724 export type DownloadsDelete = {
1725 filename: string
1726 repo_slug: string
1727 workspace: string
1728 }
1729 export type DownloadsGet = {
1730 filename: string
1731 repo_slug: string
1732 workspace: string
1733 fields?: string
1734 }
1735 export type DownloadsList = {
1736 repo_slug: string
1737 workspace: string
1738 page?: string
1739 pagelen?: number
1740 q?: string
1741 sort?: string
1742 fields?: string
1743 }
1744 export type HookEventsGetAllSubjectTypes = {
1745 fields?: string
1746 }
1747 export type HookEventsList = {
1748 subject_type: 'workspace' | 'user' | 'repository' | 'team'
1749 page?: string
1750 pagelen?: number
1751 q?: string
1752 sort?: string
1753 fields?: string
1754 }
1755 export type IssueTrackerCreate = {
1756 _body: Schema.Issue
1757 repo_slug: string
1758 workspace: string
1759 }
1760 export type IssueTrackerCreateAttachments = {
1761 _body: FormData
1762 issue_id: number
1763 repo_slug: string
1764 workspace: string
1765 }
1766 export type IssueTrackerCreateChange = {
1767 _body: Schema.IssueChange
1768 issue_id: string
1769 repo_slug: string
1770 workspace: string
1771 }
1772 export type IssueTrackerCreateComment = {
1773 _body: Schema.IssueComment
1774 issue_id: string
1775 repo_slug: string
1776 workspace: string
1777 }
1778 export type IssueTrackerCreateVote = {
1779 issue_id: string
1780 repo_slug: string
1781 workspace: string
1782 }
1783 export type IssueTrackerCreateWatch = {
1784 issue_id: string
1785 repo_slug: string
1786 workspace: string
1787 }
1788 export type IssueTrackerDelete = {
1789 issue_id: string
1790 repo_slug: string
1791 workspace: string
1792 }
1793 export type IssueTrackerDeleteAttachment = {
1794 issue_id: string
1795 path: string
1796 repo_slug: string
1797 workspace: string
1798 }
1799 export type IssueTrackerDeleteComment = {
1800 _body: Schema.IssueComment
1801 comment_id: string
1802 issue_id: string
1803 repo_slug: string
1804 workspace: string
1805 }
1806 export type IssueTrackerDeleteVote = {
1807 issue_id: string
1808 repo_slug: string
1809 workspace: string
1810 }
1811 export type IssueTrackerDeleteWatch = {
1812 issue_id: string
1813 repo_slug: string
1814 workspace: string
1815 }
1816 export type IssueTrackerGet = {
1817 issue_id: string
1818 repo_slug: string
1819 workspace: string
1820 fields?: string
1821 }
1822 export type IssueTrackerGetAttachment = {
1823 issue_id: string
1824 path: string
1825 repo_slug: string
1826 workspace: string
1827 fields?: string
1828 }
1829 export type IssueTrackerGetChange = {
1830 change_id: string
1831 issue_id: string
1832 repo_slug: string
1833 workspace: string
1834 fields?: string
1835 }
1836 export type IssueTrackerGetComment = {
1837 comment_id: string
1838 issue_id: string
1839 repo_slug: string
1840 workspace: string
1841 fields?: string
1842 }
1843 export type IssueTrackerGetComponent = {
1844 component_id: number
1845 repo_slug: string
1846 workspace: string
1847 fields?: string
1848 }
1849 export type IssueTrackerGetMilestone = {
1850 milestone_id: number
1851 repo_slug: string
1852 workspace: string
1853 fields?: string
1854 }
1855 export type IssueTrackerGetVersion = {
1856 repo_slug: string
1857 version_id: number
1858 workspace: string
1859 fields?: string
1860 }
1861 export type IssueTrackerGetVote = {
1862 issue_id: string
1863 repo_slug: string
1864 workspace: string
1865 fields?: string
1866 }
1867 export type IssueTrackerGetWatch = {
1868 issue_id: string
1869 repo_slug: string
1870 workspace: string
1871 fields?: string
1872 }
1873 export type IssueTrackerList = {
1874 repo_slug: string
1875 workspace: string
1876 page?: string
1877 pagelen?: number
1878 q?: string
1879 sort?: string
1880 fields?: string
1881 }
1882 export type IssueTrackerListAttachments = {
1883 issue_id: number
1884 repo_slug: string
1885 workspace: string
1886 page?: string
1887 pagelen?: number
1888 q?: string
1889 sort?: string
1890 fields?: string
1891 }
1892 export type IssueTrackerListChanges = {
1893 issue_id: string
1894 repo_slug: string
1895 workspace: string
1896 page?: string
1897 pagelen?: number
1898 q?: string
1899 sort?: string
1900 fields?: string
1901 }
1902 export type IssueTrackerListComments = {
1903 issue_id: string
1904 repo_slug: string
1905 workspace: string
1906 page?: string
1907 pagelen?: number
1908 q?: string
1909 sort?: string
1910 fields?: string
1911 }
1912 export type IssueTrackerListComponents = {
1913 repo_slug: string
1914 workspace: string
1915 page?: string
1916 pagelen?: number
1917 q?: string
1918 sort?: string
1919 fields?: string
1920 }
1921 export type IssueTrackerListMilestones = {
1922 repo_slug: string
1923 workspace: string
1924 page?: string
1925 pagelen?: number
1926 q?: string
1927 sort?: string
1928 fields?: string
1929 }
1930 export type IssueTrackerListVersions = {
1931 repo_slug: string
1932 workspace: string
1933 page?: string
1934 pagelen?: number
1935 q?: string
1936 sort?: string
1937 fields?: string
1938 }
1939 export type IssueTrackerUpdate = {
1940 _body: Schema.Issue
1941 issue_id: string
1942 repo_slug: string
1943 workspace: string
1944 }
1945 export type IssueTrackerUpdateComment = {
1946 _body: Schema.IssueComment
1947 comment_id: string
1948 issue_id: string
1949 repo_slug: string
1950 workspace: string
1951 }
1952 export type PipelinesCreate = {
1953 _body: Schema.Pipeline
1954 repo_slug: string
1955 workspace: string
1956 }
1957 export type PipelinesCreateDeploymentVariable = {
1958 _body: Schema.DeploymentVariable
1959 environment_uuid: string
1960 repo_slug: string
1961 variable_uuid: string
1962 workspace: string
1963 }
1964 export type PipelinesCreateKnownHost = {
1965 _body: Schema.PipelineKnownHost
1966 repo_slug: string
1967 workspace: string
1968 }
1969 export type PipelinesCreateSchedule = {
1970 _body: Schema.PipelineSchedule
1971 repo_slug: string
1972 workspace: string
1973 }
1974 export type PipelinesCreateVariable = {
1975 _body: Schema.PipelineVariable
1976 repo_slug: string
1977 workspace: string
1978 }
1979 export type PipelinesCreateVariableForTeam = {
1980 _body?: Schema.PipelineVariable
1981 username: string
1982 }
1983 export type PipelinesCreateVariableForUser = {
1984 _body?: Schema.PipelineVariable
1985 username: string
1986 }
1987 export type PipelinesDeleteDeploymentVariable = {
1988 environment_uuid: string
1989 repo_slug: string
1990 variable_uuid: string
1991 workspace: string
1992 }
1993 export type PipelinesDeleteKnownHost = {
1994 known_host_uuid: string
1995 repo_slug: string
1996 workspace: string
1997 }
1998 export type PipelinesDeleteSchedule = {
1999 repo_slug: string
2000 schedule_uuid: string
2001 workspace: string
2002 }
2003 export type PipelinesDeleteSshKeyPair = {
2004 repo_slug: string
2005 workspace: string
2006 }
2007 export type PipelinesDeleteVariable = {
2008 repo_slug: string
2009 variable_uuid: string
2010 workspace: string
2011 }
2012 export type PipelinesDeleteVariableForTeam = {
2013 username: string
2014 variable_uuid: string
2015 }
2016 export type PipelinesDeleteVariableForUser = {
2017 username: string
2018 variable_uuid: string
2019 }
2020 export type PipelinesGet = {
2021 pipeline_uuid: string
2022 repo_slug: string
2023 workspace: string
2024 fields?: string
2025 }
2026 export type PipelinesGetConfig = {
2027 repo_slug: string
2028 workspace: string
2029 fields?: string
2030 }
2031 export type PipelinesGetKnownHost = {
2032 known_host_uuid: string
2033 repo_slug: string
2034 workspace: string
2035 fields?: string
2036 }
2037 export type PipelinesGetSchedule = {
2038 repo_slug: string
2039 schedule_uuid: string
2040 workspace: string
2041 fields?: string
2042 }
2043 export type PipelinesGetSshKeyPair = {
2044 repo_slug: string
2045 workspace: string
2046 fields?: string
2047 }
2048 export type PipelinesGetStep = {
2049 pipeline_uuid: string
2050 repo_slug: string
2051 step_uuid: string
2052 workspace: string
2053 fields?: string
2054 }
2055 export type PipelinesGetStepLog = {
2056 pipeline_uuid: string
2057 repo_slug: string
2058 step_uuid: string
2059 workspace: string
2060 fields?: string
2061 }
2062 export type PipelinesGetVariable = {
2063 repo_slug: string
2064 variable_uuid: string
2065 workspace: string
2066 fields?: string
2067 }
2068 export type PipelinesGetVariableForTeam = {
2069 username: string
2070 variable_uuid: string
2071 fields?: string
2072 }
2073 export type PipelinesGetVariableForUser = {
2074 username: string
2075 variable_uuid: string
2076 fields?: string
2077 }
2078 export type PipelinesList = {
2079 repo_slug: string
2080 workspace: string
2081 page?: string
2082 pagelen?: number
2083 q?: string
2084 sort?: string
2085 fields?: string
2086 }
2087 export type PipelinesListDeploymentVariables = {
2088 environment_uuid: string
2089 repo_slug: string
2090 workspace: string
2091 page?: string
2092 pagelen?: number
2093 q?: string
2094 sort?: string
2095 fields?: string
2096 }
2097 export type PipelinesListKnownHosts = {
2098 repo_slug: string
2099 workspace: string
2100 page?: string
2101 pagelen?: number
2102 q?: string
2103 sort?: string
2104 fields?: string
2105 }
2106 export type PipelinesListScheduleExecutions = {
2107 repo_slug: string
2108 workspace: string
2109 page?: string
2110 pagelen?: number
2111 q?: string
2112 sort?: string
2113 fields?: string
2114 }
2115 export type PipelinesListSchedules = {
2116 repo_slug: string
2117 workspace: string
2118 page?: string
2119 pagelen?: number
2120 q?: string
2121 sort?: string
2122 fields?: string
2123 }
2124 export type PipelinesListSteps = {
2125 pipeline_uuid: string
2126 repo_slug: string
2127 workspace: string
2128 page?: string
2129 pagelen?: number
2130 q?: string
2131 sort?: string
2132 fields?: string
2133 }
2134 export type PipelinesListVariablesForRepo = {
2135 repo_slug: string
2136 workspace: string
2137 page?: string
2138 pagelen?: number
2139 q?: string
2140 sort?: string
2141 fields?: string
2142 }
2143 export type PipelinesListVariablesForTeam = {
2144 username: string
2145 page?: string
2146 pagelen?: number
2147 q?: string
2148 sort?: string
2149 fields?: string
2150 }
2151 export type PipelinesListVariablesForUser = {
2152 username: string
2153 page?: string
2154 pagelen?: number
2155 q?: string
2156 sort?: string
2157 fields?: string
2158 }
2159 export type PipelinesStop = {
2160 pipeline_uuid: string
2161 repo_slug: string
2162 workspace: string
2163 }
2164 export type PipelinesUpdateBuildNumber = {
2165 _body: Schema.PipelineBuildNumber
2166 repo_slug: string
2167 workspace: string
2168 }
2169 export type PipelinesUpdateConfig = {
2170 _body: Schema.PipelinesConfig
2171 repo_slug: string
2172 workspace: string
2173 }
2174 export type PipelinesUpdateDeploymentVariable = {
2175 _body: Schema.DeploymentVariable
2176 environment_uuid: string
2177 repo_slug: string
2178 variable_uuid: string
2179 workspace: string
2180 }
2181 export type PipelinesUpdateKnownHost = {
2182 _body: Schema.PipelineKnownHost
2183 known_host_uuid: string
2184 repo_slug: string
2185 workspace: string
2186 }
2187 export type PipelinesUpdateSchedule = {
2188 _body: Schema.PipelineSchedule
2189 repo_slug: string
2190 schedule_uuid: string
2191 workspace: string
2192 }
2193 export type PipelinesUpdateSshKeyPair = {
2194 _body: Schema.PipelineSshKeyPair
2195 repo_slug: string
2196 workspace: string
2197 }
2198 export type PipelinesUpdateVariable = {
2199 _body: Schema.PipelineVariable
2200 repo_slug: string
2201 variable_uuid: string
2202 workspace: string
2203 }
2204 export type PipelinesUpdateVariableForTeam = {
2205 _body: Schema.PipelineVariable
2206 username: string
2207 variable_uuid: string
2208 }
2209 export type PipelinesUpdateVariableForUser = {
2210 _body: Schema.PipelineVariable
2211 username: string
2212 variable_uuid: string
2213 }
2214 export type ProjectsCreateForTeam = {
2215 _body: Schema.Project
2216 username: string
2217 }
2218 export type ProjectsDeleteForTeam = {
2219 project_key: string
2220 username: string
2221 }
2222 export type ProjectsGetForTeam = {
2223 project_key: string
2224 username: string
2225 fields?: string
2226 }
2227 export type ProjectsListForTeam = {
2228 username: string
2229 page?: string
2230 pagelen?: number
2231 q?: string
2232 sort?: string
2233 fields?: string
2234 }
2235 export type ProjectsUpdateForTeam = {
2236 _body: Schema.Project
2237 project_key: string
2238 username: string
2239 }
2240 export type PullrequestsAddDefaultReviewer = {
2241 repo_slug: string
2242 target_username: string
2243 workspace: string
2244 }
2245 export type PullrequestsCreate = {
2246 _body?: Schema.Pullrequest
2247 repo_slug: string
2248 workspace: string
2249 }
2250 export type PullrequestsCreateApproval = {
2251 pull_request_id: string
2252 repo_slug: string
2253 workspace: string
2254 }
2255 export type PullrequestsCreateComment = {
2256 _body: Schema.PullrequestComment
2257 pull_request_id: number
2258 repo_slug: string
2259 workspace: string
2260 }
2261 export type PullrequestsDecline = {
2262 pull_request_id: string
2263 repo_slug: string
2264 workspace: string
2265 }
2266 export type PullrequestsDeleteApproval = {
2267 pull_request_id: string
2268 repo_slug: string
2269 workspace: string
2270 }
2271 export type PullrequestsDeleteComment = {
2272 comment_id: string
2273 pull_request_id: string
2274 repo_slug: string
2275 workspace: string
2276 }
2277 export type PullrequestsDeleteDefaultReviewer = {
2278 repo_slug: string
2279 target_username: string
2280 workspace: string
2281 }
2282 export type PullrequestsGet = {
2283 pull_request_id: number
2284 repo_slug: string
2285 workspace: string
2286 fields?: string
2287 }
2288 export type PullrequestsGetComment = {
2289 comment_id: string
2290 pull_request_id: string
2291 repo_slug: string
2292 workspace: string
2293 fields?: string
2294 }
2295 export type PullrequestsGetDefaultReviewer = {
2296 repo_slug: string
2297 target_username: string
2298 workspace: string
2299 fields?: string
2300 }
2301 export type PullrequestsGetDiff = {
2302 pull_request_id: string
2303 repo_slug: string
2304 workspace: string
2305 fields?: string
2306 }
2307 export type PullrequestsGetDiffStat = {
2308 pull_request_id: string
2309 repo_slug: string
2310 workspace: string
2311 fields?: string
2312 }
2313 export type PullrequestsGetPatch = {
2314 pull_request_id: string
2315 repo_slug: string
2316 workspace: string
2317 fields?: string
2318 }
2319 export type PullrequestsList = {
2320 repo_slug: string
2321 state?: 'MERGED' | 'SUPERSEDED' | 'OPEN' | 'DECLINED'
2322 workspace: string
2323 page?: string
2324 pagelen?: number
2325 q?: string
2326 sort?: string
2327 fields?: string
2328 }
2329 export type PullrequestsListActivities = {
2330 pull_request_id: number
2331 repo_slug: string
2332 workspace: string
2333 page?: string
2334 pagelen?: number
2335 q?: string
2336 sort?: string
2337 fields?: string
2338 }
2339 export type PullrequestsListActivitiesForRepo = {
2340 repo_slug: string
2341 workspace: string
2342 page?: string
2343 pagelen?: number
2344 q?: string
2345 sort?: string
2346 fields?: string
2347 }
2348 export type PullrequestsListComments = {
2349 pull_request_id: number
2350 repo_slug: string
2351 workspace: string
2352 page?: string
2353 pagelen?: number
2354 q?: string
2355 sort?: string
2356 fields?: string
2357 }
2358 export type PullrequestsListCommits = {
2359 pull_request_id: string
2360 repo_slug: string
2361 workspace: string
2362 page?: string
2363 pagelen?: number
2364 q?: string
2365 sort?: string
2366 fields?: string
2367 }
2368 export type PullrequestsListDefaultReviewers = {
2369 repo_slug: string
2370 workspace: string
2371 page?: string
2372 pagelen?: number
2373 q?: string
2374 sort?: string
2375 fields?: string
2376 }
2377 export type PullrequestsListForCommit = {
2378 commit: string
2379 repo_slug: string
2380 workspace: string
2381 page?: string
2382 pagelen?: number
2383 q?: string
2384 sort?: string
2385 fields?: string
2386 }
2387 export type PullrequestsListStatuses = {
2388 pull_request_id: number
2389 repo_slug: string
2390 workspace: string
2391 page?: string
2392 pagelen?: number
2393 q?: string
2394 sort?: string
2395 fields?: string
2396 }
2397 export type PullrequestsMerge = {
2398 _body?: Schema.PullrequestMergeParameters
2399 pull_request_id: string
2400 repo_slug: string
2401 workspace: string
2402 }
2403 export type PullrequestsUpdate = {
2404 _body?: Schema.Pullrequest
2405 pull_request_id: number
2406 repo_slug: string
2407 workspace: string
2408 }
2409 export type PullrequestsUpdateComment = {
2410 _body: Schema.PullrequestComment
2411 comment_id: string
2412 pull_request_id: string
2413 repo_slug: string
2414 workspace: string
2415 }
2416 export type RefsCreateBranch = {
2417 _body: any
2418 repo_slug: string
2419 workspace: string
2420 }
2421 export type RefsCreateTag = {
2422 _body: Schema.Tag
2423 repo_slug: string
2424 workspace: string
2425 }
2426 export type RefsDeleteBranch = {
2427 name: string
2428 repo_slug: string
2429 workspace: string
2430 }
2431 export type RefsDeleteTag = {
2432 name: string
2433 repo_slug: string
2434 workspace: string
2435 }
2436 export type RefsGetBranch = {
2437 name: string
2438 repo_slug: string
2439 workspace: string
2440 fields?: string
2441 }
2442 export type RefsGetTag = {
2443 name: string
2444 repo_slug: string
2445 workspace: string
2446 fields?: string
2447 }
2448 export type RefsList = {
2449 repo_slug: string
2450 workspace: string
2451 page?: string
2452 pagelen?: number
2453 q?: string
2454 sort?: string
2455 fields?: string
2456 }
2457 export type RefsListBranches = {
2458 repo_slug: string
2459 workspace: string
2460 page?: string
2461 pagelen?: number
2462 q?: string
2463 sort?: string
2464 fields?: string
2465 }
2466 export type RefsListTags = {
2467 repo_slug: string
2468 workspace: string
2469 page?: string
2470 pagelen?: number
2471 q?: string
2472 sort?: string
2473 fields?: string
2474 }
2475 export type RepositoriesAddDefaultReviewer = {
2476 repo_slug: string
2477 target_username: string
2478 workspace: string
2479 }
2480 export type RepositoriesCreate = {
2481 _body?: Schema.Repository
2482 repo_slug: string
2483 workspace: string
2484 }
2485 export type RepositoriesCreateBranch = {
2486 _body: any
2487 repo_slug: string
2488 workspace: string
2489 }
2490 export type RepositoriesCreateBranchRestriction = {
2491 _body: Schema.Branchrestriction
2492 repo_slug: string
2493 workspace: string
2494 }
2495 export type RepositoriesCreateCommitApproval = {
2496 node: string
2497 repo_slug: string
2498 workspace: string
2499 }
2500 export type RepositoriesCreateCommitBuildStatus = {
2501 _body?: Schema.Commitstatus
2502 node: string
2503 repo_slug: string
2504 workspace: string
2505 }
2506 export type RepositoriesCreateCommitComment = {
2507 _body: Schema.CommitComment
2508 node: string
2509 repo_slug: string
2510 workspace: string
2511 }
2512 export type RepositoriesCreateDeployKey = {
2513 key: string
2514 label: string
2515 repo_slug: string
2516 workspace: string
2517 }
2518 export type RepositoriesCreateDeploymentVariable = {
2519 _body: Schema.DeploymentVariable
2520 environment_uuid: string
2521 repo_slug: string
2522 variable_uuid: string
2523 workspace: string
2524 }
2525 export type RepositoriesCreateDownload = {
2526 _body: FormData
2527 repo_slug: string
2528 workspace: string
2529 }
2530 export type RepositoriesCreateEnvironment = {
2531 _body: Schema.DeploymentEnvironment
2532 repo_slug: string
2533 workspace: string
2534 }
2535 export type RepositoriesCreateFork = {
2536 _body?: Schema.Repository
2537 repo_slug: string
2538 workspace: string
2539 }
2540 export type RepositoriesCreateIssue = {
2541 _body: Schema.Issue
2542 repo_slug: string
2543 workspace: string
2544 }
2545 export type RepositoriesCreateIssueAttachments = {
2546 _body: FormData
2547 issue_id: number
2548 repo_slug: string
2549 workspace: string
2550 }
2551 export type RepositoriesCreateIssueChange = {
2552 _body: Schema.IssueChange
2553 issue_id: string
2554 repo_slug: string
2555 workspace: string
2556 }
2557 export type RepositoriesCreateIssueComment = {
2558 _body: Schema.IssueComment
2559 issue_id: string
2560 repo_slug: string
2561 workspace: string
2562 }
2563 export type RepositoriesCreateIssueExportJob = {
2564 repo_slug: string
2565 workspace: string
2566 }
2567 export type RepositoriesCreateIssueImportJob = {
2568 repo_slug: string
2569 workspace: string
2570 }
2571 export type RepositoriesCreateIssueVote = {
2572 issue_id: string
2573 repo_slug: string
2574 workspace: string
2575 }
2576 export type RepositoriesCreateIssueWatch = {
2577 issue_id: string
2578 repo_slug: string
2579 workspace: string
2580 }
2581 export type RepositoriesCreatePipeline = {
2582 _body: Schema.Pipeline
2583 repo_slug: string
2584 workspace: string
2585 }
2586 export type RepositoriesCreatePipelineKnownHost = {
2587 _body: Schema.PipelineKnownHost
2588 repo_slug: string
2589 workspace: string
2590 }
2591 export type RepositoriesCreatePipelineSchedule = {
2592 _body: Schema.PipelineSchedule
2593 repo_slug: string
2594 workspace: string
2595 }
2596 export type RepositoriesCreatePipelineVariable = {
2597 _body: Schema.PipelineVariable
2598 repo_slug: string
2599 workspace: string
2600 }
2601 export type RepositoriesCreatePullRequest = {
2602 _body?: Schema.Pullrequest
2603 repo_slug: string
2604 workspace: string
2605 }
2606 export type RepositoriesCreatePullRequestApproval = {
2607 pull_request_id: string
2608 repo_slug: string
2609 workspace: string
2610 }
2611 export type RepositoriesCreatePullRequestComment = {
2612 _body: Schema.PullrequestComment
2613 pull_request_id: number
2614 repo_slug: string
2615 workspace: string
2616 }
2617 export type RepositoriesCreateSrcFileCommit = {
2618 _body?: FormData | Schema.AnyObject
2619 author?: string
2620 branch?: string
2621 files?: string
2622 message?: string
2623 parents?: string
2624 repo_slug: string
2625 workspace: string
2626 }
2627 export type RepositoriesCreateTag = {
2628 _body: Schema.Tag
2629 repo_slug: string
2630 workspace: string
2631 }
2632 export type RepositoriesCreateWebhook = {
2633 _body: any
2634 repo_slug: string
2635 workspace: string
2636 }
2637 export type RepositoriesDeclinePullRequest = {
2638 pull_request_id: string
2639 repo_slug: string
2640 workspace: string
2641 }
2642 export type RepositoriesDelete = {
2643 redirect_to?: string
2644 repo_slug: string
2645 workspace: string
2646 }
2647 export type RepositoriesDeleteBranch = {
2648 name: string
2649 repo_slug: string
2650 workspace: string
2651 }
2652 export type RepositoriesDeleteBranchRestriction = {
2653 id: string
2654 repo_slug: string
2655 workspace: string
2656 }
2657 export type RepositoriesDeleteCommitApproval = {
2658 node: string
2659 repo_slug: string
2660 workspace: string
2661 }
2662 export type RepositoriesDeleteDefaultReviewer = {
2663 repo_slug: string
2664 target_username: string
2665 workspace: string
2666 }
2667 export type RepositoriesDeleteDeployKey = {
2668 key_id: string
2669 repo_slug: string
2670 workspace: string
2671 }
2672 export type RepositoriesDeleteDeploymentVariable = {
2673 environment_uuid: string
2674 repo_slug: string
2675 variable_uuid: string
2676 workspace: string
2677 }
2678 export type RepositoriesDeleteDownload = {
2679 filename: string
2680 repo_slug: string
2681 workspace: string
2682 }
2683 export type RepositoriesDeleteEnvironment = {
2684 environment_uuid: string
2685 repo_slug: string
2686 workspace: string
2687 }
2688 export type RepositoriesDeleteIssue = {
2689 issue_id: string
2690 repo_slug: string
2691 workspace: string
2692 }
2693 export type RepositoriesDeleteIssueAttachment = {
2694 issue_id: string
2695 path: string
2696 repo_slug: string
2697 workspace: string
2698 }
2699 export type RepositoriesDeleteIssueComment = {
2700 _body: Schema.IssueComment
2701 comment_id: string
2702 issue_id: string
2703 repo_slug: string
2704 workspace: string
2705 }
2706 export type RepositoriesDeleteIssueVote = {
2707 issue_id: string
2708 repo_slug: string
2709 workspace: string
2710 }
2711 export type RepositoriesDeleteIssueWatch = {
2712 issue_id: string
2713 repo_slug: string
2714 workspace: string
2715 }
2716 export type RepositoriesDeletePipelineKnownHost = {
2717 known_host_uuid: string
2718 repo_slug: string
2719 workspace: string
2720 }
2721 export type RepositoriesDeletePipelineSchedule = {
2722 repo_slug: string
2723 schedule_uuid: string
2724 workspace: string
2725 }
2726 export type RepositoriesDeletePipelineSshKeyPair = {
2727 repo_slug: string
2728 workspace: string
2729 }
2730 export type RepositoriesDeletePipelineVariable = {
2731 repo_slug: string
2732 variable_uuid: string
2733 workspace: string
2734 }
2735 export type RepositoriesDeletePullRequestApproval = {
2736 pull_request_id: string
2737 repo_slug: string
2738 workspace: string
2739 }
2740 export type RepositoriesDeletePullRequestComment = {
2741 comment_id: string
2742 pull_request_id: string
2743 repo_slug: string
2744 workspace: string
2745 }
2746 export type RepositoriesDeleteTag = {
2747 name: string
2748 repo_slug: string
2749 workspace: string
2750 }
2751 export type RepositoriesDeleteWebhook = {
2752 repo_slug: string
2753 uid: string
2754 workspace: string
2755 }
2756 export type RepositoriesGet = {
2757 repo_slug: string
2758 workspace: string
2759 fields?: string
2760 }
2761 export type RepositoriesGetBranch = {
2762 name: string
2763 repo_slug: string
2764 workspace: string
2765 fields?: string
2766 }
2767 export type RepositoriesGetBranchingModel = {
2768 repo_slug: string
2769 workspace: string
2770 fields?: string
2771 }
2772 export type RepositoriesGetBranchingModelSettings = {
2773 repo_slug: string
2774 workspace: string
2775 fields?: string
2776 }
2777 export type RepositoriesGetBranchRestriction = {
2778 id: string
2779 repo_slug: string
2780 workspace: string
2781 fields?: string
2782 }
2783 export type RepositoriesGetCommit = {
2784 node: string
2785 repo_slug: string
2786 workspace: string
2787 fields?: string
2788 }
2789 export type RepositoriesGetCommitBuildStatus = {
2790 key: string
2791 node: string
2792 repo_slug: string
2793 workspace: string
2794 fields?: string
2795 }
2796 export type RepositoriesGetCommitComment = {
2797 comment_id: number
2798 node: string
2799 repo_slug: string
2800 workspace: string
2801 fields?: string
2802 }
2803 export type RepositoriesGetDefaultReviewer = {
2804 repo_slug: string
2805 target_username: string
2806 workspace: string
2807 fields?: string
2808 }
2809 export type RepositoriesGetDeployKey = {
2810 key_id: string
2811 repo_slug: string
2812 workspace: string
2813 fields?: string
2814 }
2815 export type RepositoriesGetDeployment = {
2816 deployment_uuid: string
2817 repo_slug: string
2818 workspace: string
2819 fields?: string
2820 }
2821 export type RepositoriesGetDiff = {
2822 binary?: boolean
2823 context?: number
2824 ignore_whitespace?: boolean
2825 path?: string
2826 repo_slug: string
2827 spec: string
2828 workspace: string
2829 fields?: string
2830 }
2831 export type RepositoriesGetDownload = {
2832 filename: string
2833 repo_slug: string
2834 workspace: string
2835 fields?: string
2836 }
2837 export type RepositoriesGetEnvironment = {
2838 environment_uuid: string
2839 repo_slug: string
2840 workspace: string
2841 fields?: string
2842 }
2843 export type RepositoriesGetIssue = {
2844 issue_id: string
2845 repo_slug: string
2846 workspace: string
2847 fields?: string
2848 }
2849 export type RepositoriesGetIssueAttachment = {
2850 issue_id: string
2851 path: string
2852 repo_slug: string
2853 workspace: string
2854 fields?: string
2855 }
2856 export type RepositoriesGetIssueChange = {
2857 change_id: string
2858 issue_id: string
2859 repo_slug: string
2860 workspace: string
2861 fields?: string
2862 }
2863 export type RepositoriesGetIssueComment = {
2864 comment_id: string
2865 issue_id: string
2866 repo_slug: string
2867 workspace: string
2868 fields?: string
2869 }
2870 export type RepositoriesGetIssueComponent = {
2871 component_id: number
2872 repo_slug: string
2873 workspace: string
2874 fields?: string
2875 }
2876 export type RepositoriesGetIssueExportJobStatus = {
2877 repo_name: string
2878 repo_slug: string
2879 task_id: string
2880 workspace: string
2881 fields?: string
2882 }
2883 export type RepositoriesGetIssueImportJobStatus = {
2884 repo_slug: string
2885 workspace: string
2886 fields?: string
2887 }
2888 export type RepositoriesGetIssueMilestone = {
2889 milestone_id: number
2890 repo_slug: string
2891 workspace: string
2892 fields?: string
2893 }
2894 export type RepositoriesGetIssueVersion = {
2895 repo_slug: string
2896 version_id: number
2897 workspace: string
2898 fields?: string
2899 }
2900 export type RepositoriesGetIssueVote = {
2901 issue_id: string
2902 repo_slug: string
2903 workspace: string
2904 fields?: string
2905 }
2906 export type RepositoriesGetIssueWatch = {
2907 issue_id: string
2908 repo_slug: string
2909 workspace: string
2910 fields?: string
2911 }
2912 export type RepositoriesGetPatch = {
2913 repo_slug: string
2914 spec: string
2915 workspace: string
2916 fields?: string
2917 }
2918 export type RepositoriesGetPipeline = {
2919 pipeline_uuid: string
2920 repo_slug: string
2921 workspace: string
2922 fields?: string
2923 }
2924 export type RepositoriesGetPipelineConfig = {
2925 repo_slug: string
2926 workspace: string
2927 fields?: string
2928 }
2929 export type RepositoriesGetPipelineKnownHost = {
2930 known_host_uuid: string
2931 repo_slug: string
2932 workspace: string
2933 fields?: string
2934 }
2935 export type RepositoriesGetPipelineSchedule = {
2936 repo_slug: string
2937 schedule_uuid: string
2938 workspace: string
2939 fields?: string
2940 }
2941 export type RepositoriesGetPipelineSshKeyPair = {
2942 repo_slug: string
2943 workspace: string
2944 fields?: string
2945 }
2946 export type RepositoriesGetPipelineStep = {
2947 pipeline_uuid: string
2948 repo_slug: string
2949 step_uuid: string
2950 workspace: string
2951 fields?: string
2952 }
2953 export type RepositoriesGetPipelineStepLog = {
2954 pipeline_uuid: string
2955 repo_slug: string
2956 step_uuid: string
2957 workspace: string
2958 fields?: string
2959 }
2960 export type RepositoriesGetPipelineVariable = {
2961 repo_slug: string
2962 variable_uuid: string
2963 workspace: string
2964 fields?: string
2965 }
2966 export type RepositoriesGetPullRequest = {
2967 pull_request_id: number
2968 repo_slug: string
2969 workspace: string
2970 fields?: string
2971 }
2972 export type RepositoriesGetPullRequestComment = {
2973 comment_id: string
2974 pull_request_id: string
2975 repo_slug: string
2976 workspace: string
2977 fields?: string
2978 }
2979 export type RepositoriesGetPullRequestDiff = {
2980 pull_request_id: string
2981 repo_slug: string
2982 workspace: string
2983 fields?: string
2984 }
2985 export type RepositoriesGetPullRequestDiffStat = {
2986 pull_request_id: string
2987 repo_slug: string
2988 workspace: string
2989 fields?: string
2990 }
2991 export type RepositoriesGetPullRequestPatch = {
2992 pull_request_id: string
2993 repo_slug: string
2994 workspace: string
2995 fields?: string
2996 }
2997 export type RepositoriesGetTag = {
2998 name: string
2999 repo_slug: string
3000 workspace: string
3001 fields?: string
3002 }
3003 export type RepositoriesGetWebhook = {
3004 repo_slug: string
3005 uid: string
3006 workspace: string
3007 fields?: string
3008 }
3009 export type RepositoriesList = {
3010 role?: 'admin' | 'contributor' | 'member' | 'owner'
3011 workspace: string
3012 page?: string
3013 pagelen?: number
3014 q?: string
3015 sort?: string
3016 fields?: string
3017 }
3018 export type RepositoriesListBranches = {
3019 repo_slug: string
3020 workspace: string
3021 page?: string
3022 pagelen?: number
3023 q?: string
3024 sort?: string
3025 fields?: string
3026 }
3027 export type RepositoriesListBranchRestrictions = {
3028 kind?: string
3029 pattern?: string
3030 repo_slug: string
3031 workspace: string
3032 page?: string
3033 pagelen?: number
3034 q?: string
3035 sort?: string
3036 fields?: string
3037 }
3038 export type RepositoriesListCommitComments = {
3039 node: string
3040 repo_slug: string
3041 workspace: string
3042 page?: string
3043 pagelen?: number
3044 q?: string
3045 sort?: string
3046 fields?: string
3047 }
3048 export type RepositoriesListCommits = {
3049 exclude?: string
3050 include?: string
3051 repo_slug: string
3052 workspace: string
3053 page?: string
3054 pagelen?: number
3055 q?: string
3056 sort?: string
3057 fields?: string
3058 }
3059 export type RepositoriesListCommitsAlt = {
3060 exclude?: string
3061 include?: string
3062 repo_slug: string
3063 workspace: string
3064 page?: string
3065 pagelen?: number
3066 q?: string
3067 sort?: string
3068 }
3069 export type RepositoriesListCommitsAt = {
3070 exclude?: string
3071 include?: string
3072 repo_slug: string
3073 revision: string
3074 workspace: string
3075 page?: string
3076 pagelen?: number
3077 q?: string
3078 sort?: string
3079 fields?: string
3080 }
3081 export type RepositoriesListCommitsAtAlt = {
3082 exclude?: string
3083 include?: string
3084 repo_slug: string
3085 revision: string
3086 workspace: string
3087 page?: string
3088 pagelen?: number
3089 q?: string
3090 sort?: string
3091 }
3092 export type RepositoriesListCommitStatuses = {
3093 node: string
3094 repo_slug: string
3095 workspace: string
3096 page?: string
3097 pagelen?: number
3098 q?: string
3099 sort?: string
3100 fields?: string
3101 }
3102 export type RepositoriesListComponents = {
3103 repo_slug: string
3104 workspace: string
3105 page?: string
3106 pagelen?: number
3107 q?: string
3108 sort?: string
3109 fields?: string
3110 }
3111 export type RepositoriesListDefaultReviewers = {
3112 repo_slug: string
3113 workspace: string
3114 page?: string
3115 pagelen?: number
3116 q?: string
3117 sort?: string
3118 fields?: string
3119 }
3120 export type RepositoriesListDeployKeys = {
3121 repo_slug: string
3122 workspace: string
3123 page?: string
3124 pagelen?: number
3125 q?: string
3126 sort?: string
3127 fields?: string
3128 }
3129 export type RepositoriesListDeployments = {
3130 repo_slug: string
3131 workspace: string
3132 page?: string
3133 pagelen?: number
3134 q?: string
3135 sort?: string
3136 fields?: string
3137 }
3138 export type RepositoriesListDeploymentVariables = {
3139 environment_uuid: string
3140 repo_slug: string
3141 workspace: string
3142 page?: string
3143 pagelen?: number
3144 q?: string
3145 sort?: string
3146 fields?: string
3147 }
3148 export type RepositoriesListDiffStats = {
3149 ignore_whitespace?: boolean
3150 repo_slug: string
3151 spec: string
3152 workspace: string
3153 page?: string
3154 pagelen?: number
3155 q?: string
3156 sort?: string
3157 fields?: string
3158 }
3159 export type RepositoriesListDownloads = {
3160 repo_slug: string
3161 workspace: string
3162 page?: string
3163 pagelen?: number
3164 q?: string
3165 sort?: string
3166 fields?: string
3167 }
3168 export type RepositoriesListEnvironments = {
3169 repo_slug: string
3170 workspace: string
3171 page?: string
3172 pagelen?: number
3173 q?: string
3174 sort?: string
3175 fields?: string
3176 }
3177 export type RepositoriesListFileHistory = {
3178 node: string
3179 path: string
3180 renames?: string
3181 repo_slug: string
3182 workspace: string
3183 page?: string
3184 pagelen?: number
3185 q?: string
3186 sort?: string
3187 fields?: string
3188 }
3189 export type RepositoriesListForks = {
3190 repo_slug: string
3191 role?: 'admin' | 'contributor' | 'member' | 'owner'
3192 workspace: string
3193 page?: string
3194 pagelen?: number
3195 q?: string
3196 sort?: string
3197 fields?: string
3198 }
3199 export type RepositoriesListGlobal = {
3200 after?: string
3201 role?: 'admin' | 'contributor' | 'member' | 'owner'
3202 page?: string
3203 pagelen?: number
3204 q?: string
3205 sort?: string
3206 fields?: string
3207 }
3208 export type RepositoriesListIssueAttachments = {
3209 issue_id: number
3210 repo_slug: string
3211 workspace: string
3212 page?: string
3213 pagelen?: number
3214 q?: string
3215 sort?: string
3216 fields?: string
3217 }
3218 export type RepositoriesListIssueChanges = {
3219 issue_id: string
3220 repo_slug: string
3221 workspace: string
3222 page?: string
3223 pagelen?: number
3224 q?: string
3225 sort?: string
3226 fields?: string
3227 }
3228 export type RepositoriesListIssueComments = {
3229 issue_id: string
3230 repo_slug: string
3231 workspace: string
3232 page?: string
3233 pagelen?: number
3234 q?: string
3235 sort?: string
3236 fields?: string
3237 }
3238 export type RepositoriesListIssues = {
3239 repo_slug: string
3240 workspace: string
3241 page?: string
3242 pagelen?: number
3243 q?: string
3244 sort?: string
3245 fields?: string
3246 }
3247 export type RepositoriesListMilestones = {
3248 repo_slug: string
3249 workspace: string
3250 page?: string
3251 pagelen?: number
3252 q?: string
3253 sort?: string
3254 fields?: string
3255 }
3256 export type RepositoriesListPermissions = {
3257 page?: string
3258 pagelen?: number
3259 q?: string
3260 sort?: string
3261 fields?: string
3262 }
3263 export type RepositoriesListPipelineKnownHosts = {
3264 repo_slug: string
3265 workspace: string
3266 page?: string
3267 pagelen?: number
3268 q?: string
3269 sort?: string
3270 fields?: string
3271 }
3272 export type RepositoriesListPipelines = {
3273 repo_slug: string
3274 workspace: string
3275 page?: string
3276 pagelen?: number
3277 q?: string
3278 sort?: string
3279 fields?: string
3280 }
3281 export type RepositoriesListPipelineScheduleExecutions = {
3282 repo_slug: string
3283 workspace: string
3284 page?: string
3285 pagelen?: number
3286 q?: string
3287 sort?: string
3288 fields?: string
3289 }
3290 export type RepositoriesListPipelineSchedules = {
3291 repo_slug: string
3292 workspace: string
3293 page?: string
3294 pagelen?: number
3295 q?: string
3296 sort?: string
3297 fields?: string
3298 }
3299 export type RepositoriesListPipelineSteps = {
3300 pipeline_uuid: string
3301 repo_slug: string
3302 workspace: string
3303 page?: string
3304 pagelen?: number
3305 q?: string
3306 sort?: string
3307 fields?: string
3308 }
3309 export type RepositoriesListPipelineVariables = {
3310 repo_slug: string
3311 workspace: string
3312 page?: string
3313 pagelen?: number
3314 q?: string
3315 sort?: string
3316 fields?: string
3317 }
3318 export type RepositoriesListPullRequestActivities = {
3319 pull_request_id: number
3320 repo_slug: string
3321 workspace: string
3322 page?: string
3323 pagelen?: number
3324 q?: string
3325 sort?: string
3326 fields?: string
3327 }
3328 export type RepositoriesListPullRequestActivitiesForRepo = {
3329 repo_slug: string
3330 workspace: string
3331 page?: string
3332 pagelen?: number
3333 q?: string
3334 sort?: string
3335 fields?: string
3336 }
3337 export type RepositoriesListPullRequestComments = {
3338 pull_request_id: number
3339 repo_slug: string
3340 workspace: string
3341 page?: string
3342 pagelen?: number
3343 q?: string
3344 sort?: string
3345 fields?: string
3346 }
3347 export type RepositoriesListPullRequestCommits = {
3348 pull_request_id: string
3349 repo_slug: string
3350 workspace: string
3351 page?: string
3352 pagelen?: number
3353 q?: string
3354 sort?: string
3355 fields?: string
3356 }
3357 export type RepositoriesListPullRequests = {
3358 repo_slug: string
3359 state?: 'MERGED' | 'SUPERSEDED' | 'OPEN' | 'DECLINED'
3360 workspace: string
3361 page?: string
3362 pagelen?: number
3363 q?: string
3364 sort?: string
3365 fields?: string
3366 }
3367 export type RepositoriesListPullrequestsForCommit = {
3368 commit: string
3369 repo_slug: string
3370 workspace: string
3371 page?: string
3372 pagelen?: number
3373 q?: string
3374 sort?: string
3375 fields?: string
3376 }
3377 export type RepositoriesListPullRequestStatuses = {
3378 pull_request_id: number
3379 repo_slug: string
3380 workspace: string
3381 page?: string
3382 pagelen?: number
3383 q?: string
3384 sort?: string
3385 fields?: string
3386 }
3387 export type RepositoriesListRefs = {
3388 repo_slug: string
3389 workspace: string
3390 page?: string
3391 pagelen?: number
3392 q?: string
3393 sort?: string
3394 fields?: string
3395 }
3396 export type RepositoriesListTags = {
3397 repo_slug: string
3398 workspace: string
3399 page?: string
3400 pagelen?: number
3401 q?: string
3402 sort?: string
3403 fields?: string
3404 }
3405 export type RepositoriesListVersions = {
3406 repo_slug: string
3407 workspace: string
3408 page?: string
3409 pagelen?: number
3410 q?: string
3411 sort?: string
3412 fields?: string
3413 }
3414 export type RepositoriesListWatchers = {
3415 repo_slug: string
3416 workspace: string
3417 page?: string
3418 pagelen?: number
3419 q?: string
3420 sort?: string
3421 fields?: string
3422 }
3423 export type RepositoriesListWebhooks = {
3424 repo_slug: string
3425 workspace: string
3426 page?: string
3427 pagelen?: number
3428 q?: string
3429 sort?: string
3430 fields?: string
3431 }
3432 export type RepositoriesMergePullRequest = {
3433 _body?: Schema.PullrequestMergeParameters
3434 pull_request_id: string
3435 repo_slug: string
3436 workspace: string
3437 }
3438 export type RepositoriesReadSrc = {
3439 format?: 'meta' | 'rendered'
3440 max_depth?: number
3441 node: string
3442 path: string
3443 repo_slug: string
3444 workspace: string
3445 page?: string
3446 pagelen?: number
3447 q?: string
3448 sort?: string
3449 fields?: string
3450 }
3451 export type RepositoriesReadSrcRoot = {
3452 format?: 'meta'
3453 repo_slug: string
3454 workspace: string
3455 page?: string
3456 pagelen?: number
3457 q?: string
3458 sort?: string
3459 fields?: string
3460 }
3461 export type RepositoriesStopPipeline = {
3462 pipeline_uuid: string
3463 repo_slug: string
3464 workspace: string
3465 }
3466 export type RepositoriesUpdate = {
3467 _body?: Schema.Repository
3468 repo_slug: string
3469 workspace: string
3470 }
3471 export type RepositoriesUpdateBranchingModelSettings = {
3472 _body?: Schema.BranchingModelSettings
3473 repo_slug: string
3474 workspace: string
3475 }
3476 export type RepositoriesUpdateBranchRestriction = {
3477 _body: Schema.Branchrestriction
3478 id: string
3479 repo_slug: string
3480 workspace: string
3481 }
3482 export type RepositoriesUpdateCommitBuildStatus = {
3483 _body?: Schema.Commitstatus
3484 key: string
3485 node: string
3486 repo_slug: string
3487 workspace: string
3488 }
3489 export type RepositoriesUpdateDeployKey = {
3490 key_id: string
3491 repo_slug: string
3492 workspace: string
3493 }
3494 export type RepositoriesUpdateDeploymentVariable = {
3495 _body: Schema.DeploymentVariable
3496 environment_uuid: string
3497 repo_slug: string
3498 variable_uuid: string
3499 workspace: string
3500 }
3501 export type RepositoriesUpdateEnvironment = {
3502 _body: any
3503 environment_uuid: string
3504 repo_slug: string
3505 workspace: string
3506 }
3507 export type RepositoriesUpdateIssue = {
3508 _body: Schema.Issue
3509 issue_id: string
3510 repo_slug: string
3511 workspace: string
3512 }
3513 export type RepositoriesUpdateIssueComment = {
3514 _body: Schema.IssueComment
3515 comment_id: string
3516 issue_id: string
3517 repo_slug: string
3518 workspace: string
3519 }
3520 export type RepositoriesUpdatePipelineBuildNumber = {
3521 _body: Schema.PipelineBuildNumber
3522 repo_slug: string
3523 workspace: string
3524 }
3525 export type RepositoriesUpdatePipelineConfig = {
3526 _body: Schema.PipelinesConfig
3527 repo_slug: string
3528 workspace: string
3529 }
3530 export type RepositoriesUpdatePipelineKnownHost = {
3531 _body: Schema.PipelineKnownHost
3532 known_host_uuid: string
3533 repo_slug: string
3534 workspace: string
3535 }
3536 export type RepositoriesUpdatePipelineSchedule = {
3537 _body: Schema.PipelineSchedule
3538 repo_slug: string
3539 schedule_uuid: string
3540 workspace: string
3541 }
3542 export type RepositoriesUpdatePipelineSshKeyPair = {
3543 _body: Schema.PipelineSshKeyPair
3544 repo_slug: string
3545 workspace: string
3546 }
3547 export type RepositoriesUpdatePipelineVariable = {
3548 _body: Schema.PipelineVariable
3549 repo_slug: string
3550 variable_uuid: string
3551 workspace: string
3552 }
3553 export type RepositoriesUpdatePullRequest = {
3554 _body?: Schema.Pullrequest
3555 pull_request_id: number
3556 repo_slug: string
3557 workspace: string
3558 }
3559 export type RepositoriesUpdatePullRequestComment = {
3560 _body: Schema.PullrequestComment
3561 comment_id: string
3562 pull_request_id: string
3563 repo_slug: string
3564 workspace: string
3565 }
3566 export type RepositoriesUpdateWebhook = {
3567 repo_slug: string
3568 uid: string
3569 workspace: string
3570 }
3571 export type SearchCodeOfTeam = {
3572 search_query: string
3573 username: string
3574 fields?: string
3575 }
3576 export type SearchCodeOfUser = {
3577 search_query: string
3578 username: string
3579 fields?: string
3580 }
3581 export type SnippetGetRawFiles = {
3582 encoded_id: string
3583 path: string
3584 workspace: string
3585 fields?: string
3586 }
3587 export type SnippetsCheckWatch = {
3588 encoded_id: string
3589 workspace: string
3590 fields?: string
3591 }
3592 export type SnippetsCreate = {
3593 _body: Schema.Snippet
3594 }
3595 export type SnippetsCreateComment = {
3596 _body: Schema.Snippet
3597 encoded_id: string
3598 workspace: string
3599 }
3600 export type SnippetsCreateForUser = {
3601 _body: Schema.Snippet
3602 workspace: string
3603 }
3604 export type SnippetsDelete = {
3605 encoded_id: string
3606 workspace: string
3607 }
3608 export type SnippetsDeleteAt = {
3609 encoded_id: string
3610 node_id: string
3611 workspace: string
3612 }
3613 export type SnippetsDeleteComment = {
3614 comment_id: string
3615 encoded_id: string
3616 workspace: string
3617 }
3618 export type SnippetsGet = {
3619 encoded_id: string
3620 workspace: string
3621 fields?: string
3622 }
3623 export type SnippetsGetAt = {
3624 encoded_id: string
3625 node_id: string
3626 workspace: string
3627 fields?: string
3628 }
3629 export type SnippetsGetComment = {
3630 comment_id: string
3631 encoded_id: string
3632 workspace: string
3633 fields?: string
3634 }
3635 export type SnippetsGetCommit = {
3636 encoded_id: string
3637 revision: string
3638 workspace: string
3639 fields?: string
3640 }
3641 export type SnippetsGetDiff = {
3642 encoded_id: string
3643 path?: string
3644 revision: string
3645 workspace: string
3646 fields?: string
3647 }
3648 export type SnippetsGetFile = {
3649 encoded_id: string
3650 node_id: string
3651 path: string
3652 workspace: string
3653 fields?: string
3654 }
3655 export type SnippetsGetPatch = {
3656 encoded_id: string
3657 revision: string
3658 workspace: string
3659 fields?: string
3660 }
3661 export type SnippetsGetRawFiles = {
3662 encoded_id: string
3663 path: string
3664 workspace: string
3665 fields?: string
3666 }
3667 export type SnippetsList = {
3668 role?: 'owner' | 'contributor' | 'member'
3669 page?: string
3670 pagelen?: number
3671 q?: string
3672 sort?: string
3673 fields?: string
3674 }
3675 export type SnippetsListComments = {
3676 encoded_id: string
3677 workspace: string
3678 page?: string
3679 pagelen?: number
3680 q?: string
3681 sort?: string
3682 fields?: string
3683 }
3684 export type SnippetsListCommits = {
3685 encoded_id: string
3686 workspace: string
3687 page?: string
3688 pagelen?: number
3689 q?: string
3690 sort?: string
3691 fields?: string
3692 }
3693 export type SnippetsListForUser = {
3694 role?: 'owner' | 'contributor' | 'member'
3695 workspace: string
3696 page?: string
3697 pagelen?: number
3698 q?: string
3699 sort?: string
3700 fields?: string
3701 }
3702 export type SnippetsListWatchers = {
3703 encoded_id: string
3704 workspace: string
3705 page?: string
3706 pagelen?: number
3707 q?: string
3708 sort?: string
3709 fields?: string
3710 }
3711 export type SnippetsStartWatch = {
3712 encoded_id: string
3713 workspace: string
3714 }
3715 export type SnippetsStopWatch = {
3716 encoded_id: string
3717 workspace: string
3718 }
3719 export type SnippetsUpdate = {
3720 encoded_id: string
3721 workspace: string
3722 }
3723 export type SnippetsUpdateAt = {
3724 encoded_id: string
3725 node_id: string
3726 workspace: string
3727 }
3728 export type SnippetsUpdateComment = {
3729 comment_id: string
3730 encoded_id: string
3731 workspace: string
3732 }
3733 export type SourceCreateFileCommit = {
3734 _body?: FormData | Schema.AnyObject
3735 author?: string
3736 branch?: string
3737 files?: string
3738 message?: string
3739 parents?: string
3740 repo_slug: string
3741 workspace: string
3742 }
3743 export type SourceListHistory = {
3744 node: string
3745 path: string
3746 renames?: string
3747 repo_slug: string
3748 workspace: string
3749 page?: string
3750 pagelen?: number
3751 q?: string
3752 sort?: string
3753 fields?: string
3754 }
3755 export type SourceRead = {
3756 format?: 'meta' | 'rendered'
3757 max_depth?: number
3758 node: string
3759 path: string
3760 repo_slug: string
3761 workspace: string
3762 page?: string
3763 pagelen?: number
3764 q?: string
3765 sort?: string
3766 fields?: string
3767 }
3768 export type SourceReadRoot = {
3769 format?: 'meta'
3770 repo_slug: string
3771 workspace: string
3772 page?: string
3773 pagelen?: number
3774 q?: string
3775 sort?: string
3776 fields?: string
3777 }
3778 export type SshCreateKey = {
3779 _body?: Schema.SshAccountKey
3780 username: string
3781 }
3782 export type SshDeleteKey = {
3783 key_id: string
3784 username: string
3785 }
3786 export type SshGetKey = {
3787 key_id: string
3788 username: string
3789 fields?: string
3790 }
3791 export type SshListKeys = {
3792 username: string
3793 page?: string
3794 pagelen?: number
3795 q?: string
3796 sort?: string
3797 fields?: string
3798 }
3799 export type SshUpdateKey = {
3800 _body?: Schema.SshAccountKey
3801 key_id: string
3802 username: string
3803 }
3804 export type TeamsCreatePipelineVariable = {
3805 _body?: Schema.PipelineVariable
3806 username: string
3807 }
3808 export type TeamsCreateProject = {
3809 _body: Schema.Project
3810 username: string
3811 }
3812 export type TeamsCreateWebhook = {
3813 username: string
3814 }
3815 export type TeamsDeletePipelineVariable = {
3816 username: string
3817 variable_uuid: string
3818 }
3819 export type TeamsDeleteProject = {
3820 project_key: string
3821 username: string
3822 }
3823 export type TeamsDeleteWebhook = {
3824 uid: string
3825 username: string
3826 }
3827 export type TeamsGet = {
3828 username: string
3829 fields?: string
3830 }
3831 export type TeamsGetAllMembers = {
3832 username: string
3833 fields?: string
3834 }
3835 export type TeamsGetMembers = {
3836 username: string
3837 fields?: string
3838 }
3839 export type TeamsGetPipelineVariable = {
3840 username: string
3841 variable_uuid: string
3842 fields?: string
3843 }
3844 export type TeamsGetProject = {
3845 project_key: string
3846 username: string
3847 fields?: string
3848 }
3849 export type TeamsGetWebhook = {
3850 uid: string
3851 username: string
3852 fields?: string
3853 }
3854 export type TeamsList = {
3855 role?: 'admin' | 'contributor' | 'member'
3856 page?: string
3857 pagelen?: number
3858 q?: string
3859 sort?: string
3860 fields?: string
3861 }
3862 export type TeamsListFollowers = {
3863 username: string
3864 page?: string
3865 pagelen?: number
3866 q?: string
3867 sort?: string
3868 fields?: string
3869 }
3870 export type TeamsListFollowing = {
3871 username: string
3872 page?: string
3873 pagelen?: number
3874 q?: string
3875 sort?: string
3876 fields?: string
3877 }
3878 export type TeamsListPermissions = {
3879 username: string
3880 page?: string
3881 pagelen?: number
3882 q?: string
3883 sort?: string
3884 fields?: string
3885 }
3886 export type TeamsListPermissionsForRepo = {
3887 repo_slug: string
3888 username: string
3889 page?: string
3890 pagelen?: number
3891 q?: string
3892 sort?: string
3893 fields?: string
3894 }
3895 export type TeamsListPermissionsForRepos = {
3896 username: string
3897 page?: string
3898 pagelen?: number
3899 q?: string
3900 sort?: string
3901 fields?: string
3902 }
3903 export type TeamsListPipelineVariables = {
3904 username: string
3905 page?: string
3906 pagelen?: number
3907 q?: string
3908 sort?: string
3909 fields?: string
3910 }
3911 export type TeamsListProjects = {
3912 username: string
3913 page?: string
3914 pagelen?: number
3915 q?: string
3916 sort?: string
3917 fields?: string
3918 }
3919 export type TeamsListRepositories = {
3920 username: string
3921 page?: string
3922 pagelen?: number
3923 q?: string
3924 sort?: string
3925 fields?: string
3926 }
3927 export type TeamsListRepositoriesForUser = {
3928 username: string
3929 page?: string
3930 pagelen?: number
3931 q?: string
3932 sort?: string
3933 fields?: string
3934 }
3935 export type TeamsListWebhooks = {
3936 username: string
3937 page?: string
3938 pagelen?: number
3939 q?: string
3940 sort?: string
3941 fields?: string
3942 }
3943 export type TeamsSearchCode = {
3944 search_query: string
3945 username: string
3946 fields?: string
3947 }
3948 export type TeamsUpdatePipelineVariable = {
3949 _body: Schema.PipelineVariable
3950 username: string
3951 variable_uuid: string
3952 }
3953 export type TeamsUpdateProject = {
3954 _body: Schema.Project
3955 project_key: string
3956 username: string
3957 }
3958 export type TeamsUpdateWebhook = {
3959 uid: string
3960 username: string
3961 }
3962 export type UserGet = {
3963 fields?: string
3964 }
3965 export type UserGetEmail = {
3966 email: string
3967 fields?: string
3968 }
3969 export type UserListEmails = {
3970 page?: string
3971 pagelen?: number
3972 q?: string
3973 sort?: string
3974 fields?: string
3975 }
3976 export type UserListPermissionsForRepos = {
3977 page?: string
3978 pagelen?: number
3979 q?: string
3980 sort?: string
3981 fields?: string
3982 }
3983 export type UserListPermissionsForTeams = {
3984 page?: string
3985 pagelen?: number
3986 q?: string
3987 sort?: string
3988 fields?: string
3989 }
3990 export type UsersCreatePipelineVariable = {
3991 _body?: Schema.PipelineVariable
3992 username: string
3993 }
3994 export type UsersCreateSshKey = {
3995 _body?: Schema.SshAccountKey
3996 username: string
3997 }
3998 export type UsersCreateWebhook = {
3999 username: string
4000 }
4001 export type UsersDeletePipelineVariable = {
4002 username: string
4003 variable_uuid: string
4004 }
4005 export type UsersDeleteSshKey = {
4006 key_id: string
4007 username: string
4008 }
4009 export type UsersDeleteWebhook = {
4010 uid: string
4011 username: string
4012 }
4013 export type UsersGet = {
4014 username: string
4015 fields?: string
4016 }
4017 export type UsersGetAuthedUser = {
4018 fields?: string
4019 }
4020 export type UsersGetEmailForAuthedUser = {
4021 email: string
4022 fields?: string
4023 }
4024 export type UsersGetPipelineVariable = {
4025 username: string
4026 variable_uuid: string
4027 fields?: string
4028 }
4029 export type UsersGetSshKey = {
4030 key_id: string
4031 username: string
4032 fields?: string
4033 }
4034 export type UsersGetTeamMembers = {
4035 username: string
4036 fields?: string
4037 }
4038 export type UsersGetWebhook = {
4039 uid: string
4040 username: string
4041 fields?: string
4042 }
4043 export type UsersListEmailsForAuthedUser = {
4044 page?: string
4045 pagelen?: number
4046 q?: string
4047 sort?: string
4048 fields?: string
4049 }
4050 export type UsersListFollowers = {
4051 username: string
4052 page?: string
4053 pagelen?: number
4054 q?: string
4055 sort?: string
4056 fields?: string
4057 }
4058 export type UsersListFollowing = {
4059 username: string
4060 page?: string
4061 pagelen?: number
4062 q?: string
4063 sort?: string
4064 fields?: string
4065 }
4066 export type UsersListPipelineVariables = {
4067 username: string
4068 page?: string
4069 pagelen?: number
4070 q?: string
4071 sort?: string
4072 fields?: string
4073 }
4074 export type UsersListRepositories = {
4075 username: string
4076 page?: string
4077 pagelen?: number
4078 q?: string
4079 sort?: string
4080 fields?: string
4081 }
4082 export type UsersListRepositoriesForTeam = {
4083 username: string
4084 page?: string
4085 pagelen?: number
4086 q?: string
4087 sort?: string
4088 fields?: string
4089 }
4090 export type UsersListSshKeys = {
4091 username: string
4092 page?: string
4093 pagelen?: number
4094 q?: string
4095 sort?: string
4096 fields?: string
4097 }
4098 export type UsersListWebhooks = {
4099 username: string
4100 page?: string
4101 pagelen?: number
4102 q?: string
4103 sort?: string
4104 fields?: string
4105 }
4106 export type UsersSearchCode = {
4107 search_query: string
4108 username: string
4109 fields?: string
4110 }
4111 export type UsersUpdatePipelineVariable = {
4112 _body: Schema.PipelineVariable
4113 username: string
4114 variable_uuid: string
4115 }
4116 export type UsersUpdateSshKey = {
4117 _body?: Schema.SshAccountKey
4118 key_id: string
4119 username: string
4120 }
4121 export type UsersUpdateWebhook = {
4122 uid: string
4123 username: string
4124 }
4125 export type WebhooksCreate = {
4126 _body: any
4127 repo_slug: string
4128 workspace: string
4129 }
4130 export type WebhooksCreateForTeam = {
4131 username: string
4132 }
4133 export type WebhooksCreateForUser = {
4134 username: string
4135 }
4136 export type WebhooksDelete = {
4137 repo_slug: string
4138 uid: string
4139 workspace: string
4140 }
4141 export type WebhooksDeleteForTeam = {
4142 uid: string
4143 username: string
4144 }
4145 export type WebhooksDeleteForUser = {
4146 uid: string
4147 username: string
4148 }
4149 export type WebhooksGet = {
4150 repo_slug: string
4151 uid: string
4152 workspace: string
4153 fields?: string
4154 }
4155 export type WebhooksGetAllSubjectTypes = {
4156 fields?: string
4157 }
4158 export type WebhooksGetForTeam = {
4159 uid: string
4160 username: string
4161 fields?: string
4162 }
4163 export type WebhooksGetForUser = {
4164 uid: string
4165 username: string
4166 fields?: string
4167 }
4168 export type WebhooksList = {
4169 subject_type: 'workspace' | 'user' | 'repository' | 'team'
4170 page?: string
4171 pagelen?: number
4172 q?: string
4173 sort?: string
4174 fields?: string
4175 }
4176 export type WebhooksListForRepo = {
4177 repo_slug: string
4178 workspace: string
4179 page?: string
4180 pagelen?: number
4181 q?: string
4182 sort?: string
4183 fields?: string
4184 }
4185 export type WebhooksListForTeam = {
4186 username: string
4187 page?: string
4188 pagelen?: number
4189 q?: string
4190 sort?: string
4191 fields?: string
4192 }
4193 export type WebhooksListForUser = {
4194 username: string
4195 page?: string
4196 pagelen?: number
4197 q?: string
4198 sort?: string
4199 fields?: string
4200 }
4201 export type WebhooksUpdate = {
4202 repo_slug: string
4203 uid: string
4204 workspace: string
4205 }
4206 export type WebhooksUpdateForTeam = {
4207 uid: string
4208 username: string
4209 }
4210 export type WebhooksUpdateForUser = {
4211 uid: string
4212 username: string
4213 }
4214}
4215
4216export interface APIEndpoints {
4217 branching_model: {
4218 get: (
4219 params: Params.BranchingModelGet
4220 ) => AsyncResponse<Schema.BranchingModel>
4221 getSettings: (
4222 params: Params.BranchingModelGetSettings
4223 ) => AsyncResponse<Schema.BranchingModelSettings>
4224 updateSettings: (
4225 params: Params.BranchingModelUpdateSettings
4226 ) => AsyncResponse<Schema.BranchingModelSettings>
4227 }
4228 branchrestrictions: {
4229 create: (
4230 params: Params.BranchrestrictionsCreate
4231 ) => AsyncResponse<Schema.Branchrestriction>
4232 delete: (
4233 params: Params.BranchrestrictionsDelete
4234 ) => AsyncResponse<Schema.Any>
4235 get: (
4236 params: Params.BranchrestrictionsGet
4237 ) => AsyncResponse<Schema.Branchrestriction>
4238 list: (
4239 params: Params.BranchrestrictionsList
4240 ) => AsyncResponse<Schema.PaginatedBranchrestrictions>
4241 update: (
4242 params: Params.BranchrestrictionsUpdate
4243 ) => AsyncResponse<Schema.Branchrestriction>
4244 }
4245 commits: {
4246 createApproval: (
4247 params: Params.CommitsCreateApproval
4248 ) => AsyncResponse<Schema.Participant>
4249 createComment: (
4250 params: Params.CommitsCreateComment
4251 ) => AsyncResponse<Schema.Any>
4252 deleteApproval: (
4253 params: Params.CommitsDeleteApproval
4254 ) => AsyncResponse<Schema.Any>
4255 get: (params: Params.CommitsGet) => AsyncResponse<Schema.Commit>
4256 getComment: (
4257 params: Params.CommitsGetComment
4258 ) => AsyncResponse<Schema.CommitComment>
4259 getDiff: (params: Params.CommitsGetDiff) => AsyncResponse<Schema.Any>
4260 getPatch: (params: Params.CommitsGetPatch) => AsyncResponse<Schema.Any>
4261 list: (params: Params.CommitsList) => AsyncResponse<Schema.Any>
4262 listAlt: (params: Params.CommitsListAlt) => AsyncResponse<Schema.Any>
4263 listAt: (params: Params.CommitsListAt) => AsyncResponse<Schema.Any>
4264 listAtAlt: (params: Params.CommitsListAtAlt) => AsyncResponse<Schema.Any>
4265 listComments: (
4266 params: Params.CommitsListComments
4267 ) => AsyncResponse<Schema.PaginatedCommitComments>
4268 }
4269 commitstatuses: {
4270 createBuildStatus: (
4271 params: Params.CommitstatusesCreateBuildStatus
4272 ) => AsyncResponse<Schema.Commitstatus>
4273 getBuildStatus: (
4274 params: Params.CommitstatusesGetBuildStatus
4275 ) => AsyncResponse<Schema.Commitstatus>
4276 list: (
4277 params: Params.CommitstatusesList
4278 ) => AsyncResponse<Schema.PaginatedCommitstatuses>
4279 listPullRequestStatuses: (
4280 params: Params.CommitstatusesListPullRequestStatuses
4281 ) => AsyncResponse<Schema.PaginatedCommitstatuses>
4282 updateBuildStatus: (
4283 params: Params.CommitstatusesUpdateBuildStatus
4284 ) => AsyncResponse<Schema.Commitstatus>
4285 }
4286 deploy: {
4287 createKey: (
4288 params: Params.DeployCreateKey
4289 ) => AsyncResponse<Schema.DeployKey>
4290 deleteKey: (params: Params.DeployDeleteKey) => AsyncResponse<Schema.Any>
4291 getKey: (params: Params.DeployGetKey) => AsyncResponse<Schema.DeployKey>
4292 listKeys: (
4293 params: Params.DeployListKeys
4294 ) => AsyncResponse<Schema.PaginatedDeployKeys>
4295 updateKey: (
4296 params: Params.DeployUpdateKey
4297 ) => AsyncResponse<Schema.DeployKey>
4298 }
4299 deployments: {
4300 get: (params: Params.DeploymentsGet) => AsyncResponse<Schema.Deployment>
4301 getEnvironment: (
4302 params: Params.DeploymentsGetEnvironment
4303 ) => AsyncResponse<Schema.DeploymentEnvironment>
4304 list: (
4305 params: Params.DeploymentsList
4306 ) => AsyncResponse<Schema.PaginatedDeployments>
4307 listEnvironments: (
4308 params: Params.DeploymentsListEnvironments
4309 ) => AsyncResponse<Schema.PaginatedEnvironments>
4310 updateEnvironment: (
4311 params: Params.DeploymentsUpdateEnvironment
4312 ) => AsyncResponse<Schema.Any>
4313 }
4314 downloads: {
4315 create: (params: Params.DownloadsCreate) => AsyncResponse<Schema.Any>
4316 delete: (params: Params.DownloadsDelete) => AsyncResponse<Schema.Any>
4317 get: (params: Params.DownloadsGet) => AsyncResponse<Schema.Any>
4318 list: (params: Params.DownloadsList) => AsyncResponse<Schema.Any>
4319 }
4320 hook_events: {
4321 getAllSubjectTypes: (
4322 params: Params.HookEventsGetAllSubjectTypes
4323 ) => AsyncResponse<Schema.SubjectTypes>
4324 list: (
4325 params: Params.HookEventsList
4326 ) => AsyncResponse<Schema.PaginatedHookEvents>
4327 }
4328 issue_tracker: {
4329 create: (params: Params.IssueTrackerCreate) => AsyncResponse<Schema.Issue>
4330 createAttachments: (
4331 params: Params.IssueTrackerCreateAttachments
4332 ) => AsyncResponse<Schema.Any>
4333 createChange: (
4334 params: Params.IssueTrackerCreateChange
4335 ) => AsyncResponse<Schema.IssueChange>
4336 createComment: (
4337 params: Params.IssueTrackerCreateComment
4338 ) => AsyncResponse<Schema.Any>
4339 createVote: (
4340 params: Params.IssueTrackerCreateVote
4341 ) => AsyncResponse<Schema.Error>
4342 createWatch: (
4343 params: Params.IssueTrackerCreateWatch
4344 ) => AsyncResponse<Schema.Error>
4345 delete: (params: Params.IssueTrackerDelete) => AsyncResponse<Schema.Issue>
4346 deleteAttachment: (
4347 params: Params.IssueTrackerDeleteAttachment
4348 ) => AsyncResponse<Schema.Any>
4349 deleteComment: (
4350 params: Params.IssueTrackerDeleteComment
4351 ) => AsyncResponse<Schema.Any>
4352 deleteVote: (
4353 params: Params.IssueTrackerDeleteVote
4354 ) => AsyncResponse<Schema.Any>
4355 deleteWatch: (
4356 params: Params.IssueTrackerDeleteWatch
4357 ) => AsyncResponse<Schema.Error>
4358 get: (params: Params.IssueTrackerGet) => AsyncResponse<Schema.Issue>
4359 getAttachment: (
4360 params: Params.IssueTrackerGetAttachment
4361 ) => AsyncResponse<Schema.Any>
4362 getChange: (
4363 params: Params.IssueTrackerGetChange
4364 ) => AsyncResponse<Schema.IssueChange>
4365 getComment: (
4366 params: Params.IssueTrackerGetComment
4367 ) => AsyncResponse<Schema.IssueComment>
4368 getComponent: (
4369 params: Params.IssueTrackerGetComponent
4370 ) => AsyncResponse<Schema.Component>
4371 getMilestone: (
4372 params: Params.IssueTrackerGetMilestone
4373 ) => AsyncResponse<Schema.Milestone>
4374 getVersion: (
4375 params: Params.IssueTrackerGetVersion
4376 ) => AsyncResponse<Schema.Version>
4377 getVote: (params: Params.IssueTrackerGetVote) => AsyncResponse<Schema.Error>
4378 getWatch: (
4379 params: Params.IssueTrackerGetWatch
4380 ) => AsyncResponse<Schema.Error>
4381 list: (
4382 params: Params.IssueTrackerList
4383 ) => AsyncResponse<Schema.PaginatedIssues>
4384 listAttachments: (
4385 params: Params.IssueTrackerListAttachments
4386 ) => AsyncResponse<Schema.PaginatedIssueAttachments>
4387 listChanges: (
4388 params: Params.IssueTrackerListChanges
4389 ) => AsyncResponse<Schema.PaginatedLogEntries>
4390 listComments: (
4391 params: Params.IssueTrackerListComments
4392 ) => AsyncResponse<Schema.PaginatedIssueComments>
4393 listComponents: (
4394 params: Params.IssueTrackerListComponents
4395 ) => AsyncResponse<Schema.PaginatedComponents>
4396 listMilestones: (
4397 params: Params.IssueTrackerListMilestones
4398 ) => AsyncResponse<Schema.PaginatedMilestones>
4399 listVersions: (
4400 params: Params.IssueTrackerListVersions
4401 ) => AsyncResponse<Schema.PaginatedVersions>
4402 update: (params: Params.IssueTrackerUpdate) => AsyncResponse<Schema.Issue>
4403 updateComment: (
4404 params: Params.IssueTrackerUpdateComment
4405 ) => AsyncResponse<Schema.IssueComment>
4406 }
4407 pipelines: {
4408 create: (params: Params.PipelinesCreate) => AsyncResponse<Schema.Pipeline>
4409 createDeploymentVariable: (
4410 params: Params.PipelinesCreateDeploymentVariable
4411 ) => AsyncResponse<Schema.DeploymentVariable>
4412 createKnownHost: (
4413 params: Params.PipelinesCreateKnownHost
4414 ) => AsyncResponse<Schema.PipelineKnownHost>
4415 createSchedule: (
4416 params: Params.PipelinesCreateSchedule
4417 ) => AsyncResponse<Schema.PipelineSchedule>
4418 createVariable: (
4419 params: Params.PipelinesCreateVariable
4420 ) => AsyncResponse<Schema.PipelineVariable>
4421 createVariableForTeam: (
4422 params: Params.PipelinesCreateVariableForTeam
4423 ) => AsyncResponse<Schema.PipelineVariable>
4424 createVariableForUser: (
4425 params: Params.PipelinesCreateVariableForUser
4426 ) => AsyncResponse<Schema.PipelineVariable>
4427 deleteDeploymentVariable: (
4428 params: Params.PipelinesDeleteDeploymentVariable
4429 ) => AsyncResponse<Schema.Any>
4430 deleteKnownHost: (
4431 params: Params.PipelinesDeleteKnownHost
4432 ) => AsyncResponse<Schema.Any>
4433 deleteSchedule: (
4434 params: Params.PipelinesDeleteSchedule
4435 ) => AsyncResponse<Schema.Any>
4436 deleteSshKeyPair: (
4437 params: Params.PipelinesDeleteSshKeyPair
4438 ) => AsyncResponse<Schema.Any>
4439 deleteVariable: (
4440 params: Params.PipelinesDeleteVariable
4441 ) => AsyncResponse<Schema.Any>
4442 deleteVariableForTeam: (
4443 params: Params.PipelinesDeleteVariableForTeam
4444 ) => AsyncResponse<Schema.Any>
4445 deleteVariableForUser: (
4446 params: Params.PipelinesDeleteVariableForUser
4447 ) => AsyncResponse<Schema.Any>
4448 get: (params: Params.PipelinesGet) => AsyncResponse<Schema.Pipeline>
4449 getConfig: (
4450 params: Params.PipelinesGetConfig
4451 ) => AsyncResponse<Schema.PipelinesConfig>
4452 getKnownHost: (
4453 params: Params.PipelinesGetKnownHost
4454 ) => AsyncResponse<Schema.PipelineKnownHost>
4455 getSchedule: (
4456 params: Params.PipelinesGetSchedule
4457 ) => AsyncResponse<Schema.PipelineSchedule>
4458 getSshKeyPair: (
4459 params: Params.PipelinesGetSshKeyPair
4460 ) => AsyncResponse<Schema.PipelineSshKeyPair>
4461 getStep: (
4462 params: Params.PipelinesGetStep
4463 ) => AsyncResponse<Schema.PipelineStep>
4464 getStepLog: (
4465 params: Params.PipelinesGetStepLog
4466 ) => AsyncResponse<Schema.Any>
4467 getVariable: (
4468 params: Params.PipelinesGetVariable
4469 ) => AsyncResponse<Schema.PipelineVariable>
4470 getVariableForTeam: (
4471 params: Params.PipelinesGetVariableForTeam
4472 ) => AsyncResponse<Schema.PipelineVariable>
4473 getVariableForUser: (
4474 params: Params.PipelinesGetVariableForUser
4475 ) => AsyncResponse<Schema.PipelineVariable>
4476 list: (
4477 params: Params.PipelinesList
4478 ) => AsyncResponse<Schema.PaginatedPipelines>
4479 listDeploymentVariables: (
4480 params: Params.PipelinesListDeploymentVariables
4481 ) => AsyncResponse<Schema.PaginatedDeploymentVariable>
4482 listKnownHosts: (
4483 params: Params.PipelinesListKnownHosts
4484 ) => AsyncResponse<Schema.PaginatedPipelineKnownHosts>
4485 listScheduleExecutions: (
4486 params: Params.PipelinesListScheduleExecutions
4487 ) => AsyncResponse<Schema.PaginatedPipelineScheduleExecutions>
4488 listSchedules: (
4489 params: Params.PipelinesListSchedules
4490 ) => AsyncResponse<Schema.PaginatedPipelineSchedules>
4491 listSteps: (
4492 params: Params.PipelinesListSteps
4493 ) => AsyncResponse<Schema.PaginatedPipelineSteps>
4494 listVariablesForRepo: (
4495 params: Params.PipelinesListVariablesForRepo
4496 ) => AsyncResponse<Schema.PaginatedPipelineVariables>
4497 listVariablesForTeam: (
4498 params: Params.PipelinesListVariablesForTeam
4499 ) => AsyncResponse<Schema.PaginatedPipelineVariables>
4500 listVariablesForUser: (
4501 params: Params.PipelinesListVariablesForUser
4502 ) => AsyncResponse<Schema.PaginatedPipelineVariables>
4503 stop: (params: Params.PipelinesStop) => AsyncResponse<Schema.Any>
4504 updateBuildNumber: (
4505 params: Params.PipelinesUpdateBuildNumber
4506 ) => AsyncResponse<Schema.PipelineBuildNumber>
4507 updateConfig: (
4508 params: Params.PipelinesUpdateConfig
4509 ) => AsyncResponse<Schema.PipelinesConfig>
4510 updateDeploymentVariable: (
4511 params: Params.PipelinesUpdateDeploymentVariable
4512 ) => AsyncResponse<Schema.DeploymentVariable>
4513 updateKnownHost: (
4514 params: Params.PipelinesUpdateKnownHost
4515 ) => AsyncResponse<Schema.PipelineKnownHost>
4516 updateSchedule: (
4517 params: Params.PipelinesUpdateSchedule
4518 ) => AsyncResponse<Schema.PipelineSchedule>
4519 updateSshKeyPair: (
4520 params: Params.PipelinesUpdateSshKeyPair
4521 ) => AsyncResponse<Schema.PipelineSshKeyPair>
4522 updateVariable: (
4523 params: Params.PipelinesUpdateVariable
4524 ) => AsyncResponse<Schema.PipelineVariable>
4525 updateVariableForTeam: (
4526 params: Params.PipelinesUpdateVariableForTeam
4527 ) => AsyncResponse<Schema.PipelineVariable>
4528 updateVariableForUser: (
4529 params: Params.PipelinesUpdateVariableForUser
4530 ) => AsyncResponse<Schema.PipelineVariable>
4531 }
4532 projects: {
4533 createForTeam: (
4534 params: Params.ProjectsCreateForTeam
4535 ) => AsyncResponse<Schema.Project>
4536 deleteForTeam: (
4537 params: Params.ProjectsDeleteForTeam
4538 ) => AsyncResponse<Schema.Any>
4539 getForTeam: (
4540 params: Params.ProjectsGetForTeam
4541 ) => AsyncResponse<Schema.Project>
4542 listForTeam: (
4543 params: Params.ProjectsListForTeam
4544 ) => AsyncResponse<Schema.PaginatedProjects>
4545 updateForTeam: (
4546 params: Params.ProjectsUpdateForTeam
4547 ) => AsyncResponse<Schema.Project>
4548 }
4549 pullrequests: {
4550 addDefaultReviewer: (
4551 params: Params.PullrequestsAddDefaultReviewer
4552 ) => AsyncResponse<Schema.Any>
4553 create: (
4554 params: Params.PullrequestsCreate
4555 ) => AsyncResponse<Schema.Pullrequest>
4556 createApproval: (
4557 params: Params.PullrequestsCreateApproval
4558 ) => AsyncResponse<Schema.Participant>
4559 createComment: (
4560 params: Params.PullrequestsCreateComment
4561 ) => AsyncResponse<Schema.PullrequestComment>
4562 decline: (
4563 params: Params.PullrequestsDecline
4564 ) => AsyncResponse<Schema.Pullrequest>
4565 deleteApproval: (
4566 params: Params.PullrequestsDeleteApproval
4567 ) => AsyncResponse<Schema.Any>
4568 deleteComment: (
4569 params: Params.PullrequestsDeleteComment
4570 ) => AsyncResponse<Schema.Any>
4571 deleteDefaultReviewer: (
4572 params: Params.PullrequestsDeleteDefaultReviewer
4573 ) => AsyncResponse<Schema.Any>
4574 get: (params: Params.PullrequestsGet) => AsyncResponse<Schema.Pullrequest>
4575 getComment: (
4576 params: Params.PullrequestsGetComment
4577 ) => AsyncResponse<Schema.PullrequestComment>
4578 getDefaultReviewer: (
4579 params: Params.PullrequestsGetDefaultReviewer
4580 ) => AsyncResponse<Schema.Any>
4581 getDiff: (params: Params.PullrequestsGetDiff) => AsyncResponse<Schema.Any>
4582 getDiffStat: (
4583 params: Params.PullrequestsGetDiffStat
4584 ) => AsyncResponse<Schema.Any>
4585 getPatch: (params: Params.PullrequestsGetPatch) => AsyncResponse<Schema.Any>
4586 list: (
4587 params: Params.PullrequestsList
4588 ) => AsyncResponse<Schema.PaginatedPullrequests>
4589 listActivities: (
4590 params: Params.PullrequestsListActivities
4591 ) => AsyncResponse<Schema.Any>
4592 listActivitiesForRepo: (
4593 params: Params.PullrequestsListActivitiesForRepo
4594 ) => AsyncResponse<Schema.Any>
4595 listComments: (
4596 params: Params.PullrequestsListComments
4597 ) => AsyncResponse<Schema.PaginatedPullrequestComments>
4598 listCommits: (
4599 params: Params.PullrequestsListCommits
4600 ) => AsyncResponse<Schema.Any>
4601 listDefaultReviewers: (
4602 params: Params.PullrequestsListDefaultReviewers
4603 ) => AsyncResponse<Schema.Any>
4604 listForCommit: (
4605 params: Params.PullrequestsListForCommit
4606 ) => AsyncResponse<Schema.PaginatedPullrequests>
4607 listStatuses: (
4608 params: Params.PullrequestsListStatuses
4609 ) => AsyncResponse<Schema.PaginatedCommitstatuses>
4610 merge: (
4611 params: Params.PullrequestsMerge
4612 ) => AsyncResponse<Schema.Pullrequest>
4613 update: (
4614 params: Params.PullrequestsUpdate
4615 ) => AsyncResponse<Schema.Pullrequest>
4616 updateComment: (
4617 params: Params.PullrequestsUpdateComment
4618 ) => AsyncResponse<Schema.PullrequestComment>
4619 }
4620 refs: {
4621 createBranch: (
4622 params: Params.RefsCreateBranch
4623 ) => AsyncResponse<Schema.Branch>
4624 createTag: (params: Params.RefsCreateTag) => AsyncResponse<Schema.Tag>
4625 deleteBranch: (params: Params.RefsDeleteBranch) => AsyncResponse<Schema.Any>
4626 deleteTag: (params: Params.RefsDeleteTag) => AsyncResponse<Schema.Any>
4627 getBranch: (params: Params.RefsGetBranch) => AsyncResponse<Schema.Branch>
4628 getTag: (params: Params.RefsGetTag) => AsyncResponse<Schema.Tag>
4629 list: (params: Params.RefsList) => AsyncResponse<Schema.PaginatedRefs>
4630 listBranches: (
4631 params: Params.RefsListBranches
4632 ) => AsyncResponse<Schema.PaginatedBranches>
4633 listTags: (
4634 params: Params.RefsListTags
4635 ) => AsyncResponse<Schema.PaginatedTags>
4636 }
4637 repositories: {
4638 addDefaultReviewer: (
4639 params: Params.RepositoriesAddDefaultReviewer
4640 ) => AsyncResponse<Schema.Any>
4641 create: (
4642 params: Params.RepositoriesCreate
4643 ) => AsyncResponse<Schema.Repository>
4644 createBranch: (
4645 params: Params.RepositoriesCreateBranch
4646 ) => AsyncResponse<Schema.Branch>
4647 createBranchRestriction: (
4648 params: Params.RepositoriesCreateBranchRestriction
4649 ) => AsyncResponse<Schema.Branchrestriction>
4650 createCommitApproval: (
4651 params: Params.RepositoriesCreateCommitApproval
4652 ) => AsyncResponse<Schema.Participant>
4653 createCommitBuildStatus: (
4654 params: Params.RepositoriesCreateCommitBuildStatus
4655 ) => AsyncResponse<Schema.Commitstatus>
4656 createCommitComment: (
4657 params: Params.RepositoriesCreateCommitComment
4658 ) => AsyncResponse<Schema.Any>
4659 createDeployKey: (
4660 params: Params.RepositoriesCreateDeployKey
4661 ) => AsyncResponse<Schema.DeployKey>
4662 createDeploymentVariable: (
4663 params: Params.RepositoriesCreateDeploymentVariable
4664 ) => AsyncResponse<Schema.DeploymentVariable>
4665 createDownload: (
4666 params: Params.RepositoriesCreateDownload
4667 ) => AsyncResponse<Schema.Any>
4668 createEnvironment: (
4669 params: Params.RepositoriesCreateEnvironment
4670 ) => AsyncResponse<Schema.DeploymentEnvironment>
4671 createFork: (
4672 params: Params.RepositoriesCreateFork
4673 ) => AsyncResponse<Schema.Repository>
4674 createIssue: (
4675 params: Params.RepositoriesCreateIssue
4676 ) => AsyncResponse<Schema.Issue>
4677 createIssueAttachments: (
4678 params: Params.RepositoriesCreateIssueAttachments
4679 ) => AsyncResponse<Schema.Any>
4680 createIssueChange: (
4681 params: Params.RepositoriesCreateIssueChange
4682 ) => AsyncResponse<Schema.IssueChange>
4683 createIssueComment: (
4684 params: Params.RepositoriesCreateIssueComment
4685 ) => AsyncResponse<Schema.Any>
4686 createIssueExportJob: (
4687 params: Params.RepositoriesCreateIssueExportJob
4688 ) => AsyncResponse<Schema.Any>
4689 createIssueImportJob: (
4690 params: Params.RepositoriesCreateIssueImportJob
4691 ) => AsyncResponse<Schema.IssueJobStatus>
4692 createIssueVote: (
4693 params: Params.RepositoriesCreateIssueVote
4694 ) => AsyncResponse<Schema.Error>
4695 createIssueWatch: (
4696 params: Params.RepositoriesCreateIssueWatch
4697 ) => AsyncResponse<Schema.Error>
4698 createPipeline: (
4699 params: Params.RepositoriesCreatePipeline
4700 ) => AsyncResponse<Schema.Pipeline>
4701 createPipelineKnownHost: (
4702 params: Params.RepositoriesCreatePipelineKnownHost
4703 ) => AsyncResponse<Schema.PipelineKnownHost>
4704 createPipelineSchedule: (
4705 params: Params.RepositoriesCreatePipelineSchedule
4706 ) => AsyncResponse<Schema.PipelineSchedule>
4707 createPipelineVariable: (
4708 params: Params.RepositoriesCreatePipelineVariable
4709 ) => AsyncResponse<Schema.PipelineVariable>
4710 createPullRequest: (
4711 params: Params.RepositoriesCreatePullRequest
4712 ) => AsyncResponse<Schema.Pullrequest>
4713 createPullRequestApproval: (
4714 params: Params.RepositoriesCreatePullRequestApproval
4715 ) => AsyncResponse<Schema.Participant>
4716 createPullRequestComment: (
4717 params: Params.RepositoriesCreatePullRequestComment
4718 ) => AsyncResponse<Schema.PullrequestComment>
4719 createSrcFileCommit: (
4720 params: Params.RepositoriesCreateSrcFileCommit
4721 ) => AsyncResponse<Schema.Any>
4722 createTag: (
4723 params: Params.RepositoriesCreateTag
4724 ) => AsyncResponse<Schema.Tag>
4725 createWebhook: (
4726 params: Params.RepositoriesCreateWebhook
4727 ) => AsyncResponse<Schema.WebhookSubscription>
4728 declinePullRequest: (
4729 params: Params.RepositoriesDeclinePullRequest
4730 ) => AsyncResponse<Schema.Pullrequest>
4731 delete: (params: Params.RepositoriesDelete) => AsyncResponse<Schema.Any>
4732 deleteBranch: (
4733 params: Params.RepositoriesDeleteBranch
4734 ) => AsyncResponse<Schema.Any>
4735 deleteBranchRestriction: (
4736 params: Params.RepositoriesDeleteBranchRestriction
4737 ) => AsyncResponse<Schema.Any>
4738 deleteCommitApproval: (
4739 params: Params.RepositoriesDeleteCommitApproval
4740 ) => AsyncResponse<Schema.Any>
4741 deleteDefaultReviewer: (
4742 params: Params.RepositoriesDeleteDefaultReviewer
4743 ) => AsyncResponse<Schema.Any>
4744 deleteDeployKey: (
4745 params: Params.RepositoriesDeleteDeployKey
4746 ) => AsyncResponse<Schema.Any>
4747 deleteDeploymentVariable: (
4748 params: Params.RepositoriesDeleteDeploymentVariable
4749 ) => AsyncResponse<Schema.Any>
4750 deleteDownload: (
4751 params: Params.RepositoriesDeleteDownload
4752 ) => AsyncResponse<Schema.Any>
4753 deleteEnvironment: (
4754 params: Params.RepositoriesDeleteEnvironment
4755 ) => AsyncResponse<Schema.Any>
4756 deleteIssue: (
4757 params: Params.RepositoriesDeleteIssue
4758 ) => AsyncResponse<Schema.Issue>
4759 deleteIssueAttachment: (
4760 params: Params.RepositoriesDeleteIssueAttachment
4761 ) => AsyncResponse<Schema.Any>
4762 deleteIssueComment: (
4763 params: Params.RepositoriesDeleteIssueComment
4764 ) => AsyncResponse<Schema.Any>
4765 deleteIssueVote: (
4766 params: Params.RepositoriesDeleteIssueVote
4767 ) => AsyncResponse<Schema.Any>
4768 deleteIssueWatch: (
4769 params: Params.RepositoriesDeleteIssueWatch
4770 ) => AsyncResponse<Schema.Error>
4771 deletePipelineKnownHost: (
4772 params: Params.RepositoriesDeletePipelineKnownHost
4773 ) => AsyncResponse<Schema.Any>
4774 deletePipelineSchedule: (
4775 params: Params.RepositoriesDeletePipelineSchedule
4776 ) => AsyncResponse<Schema.Any>
4777 deletePipelineSshKeyPair: (
4778 params: Params.RepositoriesDeletePipelineSshKeyPair
4779 ) => AsyncResponse<Schema.Any>
4780 deletePipelineVariable: (
4781 params: Params.RepositoriesDeletePipelineVariable
4782 ) => AsyncResponse<Schema.Any>
4783 deletePullRequestApproval: (
4784 params: Params.RepositoriesDeletePullRequestApproval
4785 ) => AsyncResponse<Schema.Any>
4786 deletePullRequestComment: (
4787 params: Params.RepositoriesDeletePullRequestComment
4788 ) => AsyncResponse<Schema.Any>
4789 deleteTag: (
4790 params: Params.RepositoriesDeleteTag
4791 ) => AsyncResponse<Schema.Any>
4792 deleteWebhook: (
4793 params: Params.RepositoriesDeleteWebhook
4794 ) => AsyncResponse<Schema.Any>
4795 get: (params: Params.RepositoriesGet) => AsyncResponse<Schema.Repository>
4796 getBranch: (
4797 params: Params.RepositoriesGetBranch
4798 ) => AsyncResponse<Schema.Branch>
4799 getBranchingModel: (
4800 params: Params.RepositoriesGetBranchingModel
4801 ) => AsyncResponse<Schema.BranchingModel>
4802 getBranchingModelSettings: (
4803 params: Params.RepositoriesGetBranchingModelSettings
4804 ) => AsyncResponse<Schema.BranchingModelSettings>
4805 getBranchRestriction: (
4806 params: Params.RepositoriesGetBranchRestriction
4807 ) => AsyncResponse<Schema.Branchrestriction>
4808 getCommit: (
4809 params: Params.RepositoriesGetCommit
4810 ) => AsyncResponse<Schema.Commit>
4811 getCommitBuildStatus: (
4812 params: Params.RepositoriesGetCommitBuildStatus
4813 ) => AsyncResponse<Schema.Commitstatus>
4814 getCommitComment: (
4815 params: Params.RepositoriesGetCommitComment
4816 ) => AsyncResponse<Schema.CommitComment>
4817 getDefaultReviewer: (
4818 params: Params.RepositoriesGetDefaultReviewer
4819 ) => AsyncResponse<Schema.Any>
4820 getDeployKey: (
4821 params: Params.RepositoriesGetDeployKey
4822 ) => AsyncResponse<Schema.DeployKey>
4823 getDeployment: (
4824 params: Params.RepositoriesGetDeployment
4825 ) => AsyncResponse<Schema.Deployment>
4826 getDiff: (params: Params.RepositoriesGetDiff) => AsyncResponse<Schema.Any>
4827 getDownload: (
4828 params: Params.RepositoriesGetDownload
4829 ) => AsyncResponse<Schema.Any>
4830 getEnvironment: (
4831 params: Params.RepositoriesGetEnvironment
4832 ) => AsyncResponse<Schema.DeploymentEnvironment>
4833 getIssue: (
4834 params: Params.RepositoriesGetIssue
4835 ) => AsyncResponse<Schema.Issue>
4836 getIssueAttachment: (
4837 params: Params.RepositoriesGetIssueAttachment
4838 ) => AsyncResponse<Schema.Any>
4839 getIssueChange: (
4840 params: Params.RepositoriesGetIssueChange
4841 ) => AsyncResponse<Schema.IssueChange>
4842 getIssueComment: (
4843 params: Params.RepositoriesGetIssueComment
4844 ) => AsyncResponse<Schema.IssueComment>
4845 getIssueComponent: (
4846 params: Params.RepositoriesGetIssueComponent
4847 ) => AsyncResponse<Schema.Component>
4848 getIssueExportJobStatus: (
4849 params: Params.RepositoriesGetIssueExportJobStatus
4850 ) => AsyncResponse<Schema.IssueJobStatus>
4851 getIssueImportJobStatus: (
4852 params: Params.RepositoriesGetIssueImportJobStatus
4853 ) => AsyncResponse<Schema.IssueJobStatus>
4854 getIssueMilestone: (
4855 params: Params.RepositoriesGetIssueMilestone
4856 ) => AsyncResponse<Schema.Milestone>
4857 getIssueVersion: (
4858 params: Params.RepositoriesGetIssueVersion
4859 ) => AsyncResponse<Schema.Version>
4860 getIssueVote: (
4861 params: Params.RepositoriesGetIssueVote
4862 ) => AsyncResponse<Schema.Error>
4863 getIssueWatch: (
4864 params: Params.RepositoriesGetIssueWatch
4865 ) => AsyncResponse<Schema.Error>
4866 getPatch: (params: Params.RepositoriesGetPatch) => AsyncResponse<Schema.Any>
4867 getPipeline: (
4868 params: Params.RepositoriesGetPipeline
4869 ) => AsyncResponse<Schema.Pipeline>
4870 getPipelineConfig: (
4871 params: Params.RepositoriesGetPipelineConfig
4872 ) => AsyncResponse<Schema.PipelinesConfig>
4873 getPipelineKnownHost: (
4874 params: Params.RepositoriesGetPipelineKnownHost
4875 ) => AsyncResponse<Schema.PipelineKnownHost>
4876 getPipelineSchedule: (
4877 params: Params.RepositoriesGetPipelineSchedule
4878 ) => AsyncResponse<Schema.PipelineSchedule>
4879 getPipelineSshKeyPair: (
4880 params: Params.RepositoriesGetPipelineSshKeyPair
4881 ) => AsyncResponse<Schema.PipelineSshKeyPair>
4882 getPipelineStep: (
4883 params: Params.RepositoriesGetPipelineStep
4884 ) => AsyncResponse<Schema.PipelineStep>
4885 getPipelineStepLog: (
4886 params: Params.RepositoriesGetPipelineStepLog
4887 ) => AsyncResponse<Schema.Any>
4888 getPipelineVariable: (
4889 params: Params.RepositoriesGetPipelineVariable
4890 ) => AsyncResponse<Schema.PipelineVariable>
4891 getPullRequest: (
4892 params: Params.RepositoriesGetPullRequest
4893 ) => AsyncResponse<Schema.Pullrequest>
4894 getPullRequestComment: (
4895 params: Params.RepositoriesGetPullRequestComment
4896 ) => AsyncResponse<Schema.PullrequestComment>
4897 getPullRequestDiff: (
4898 params: Params.RepositoriesGetPullRequestDiff
4899 ) => AsyncResponse<Schema.Any>
4900 getPullRequestDiffStat: (
4901 params: Params.RepositoriesGetPullRequestDiffStat
4902 ) => AsyncResponse<Schema.Any>
4903 getPullRequestPatch: (
4904 params: Params.RepositoriesGetPullRequestPatch
4905 ) => AsyncResponse<Schema.Any>
4906 getTag: (params: Params.RepositoriesGetTag) => AsyncResponse<Schema.Tag>
4907 getWebhook: (
4908 params: Params.RepositoriesGetWebhook
4909 ) => AsyncResponse<Schema.WebhookSubscription>
4910 list: (
4911 params: Params.RepositoriesList
4912 ) => AsyncResponse<Schema.PaginatedRepositories>
4913 listBranches: (
4914 params: Params.RepositoriesListBranches
4915 ) => AsyncResponse<Schema.PaginatedBranches>
4916 listBranchRestrictions: (
4917 params: Params.RepositoriesListBranchRestrictions
4918 ) => AsyncResponse<Schema.PaginatedBranchrestrictions>
4919 listCommitComments: (
4920 params: Params.RepositoriesListCommitComments
4921 ) => AsyncResponse<Schema.PaginatedCommitComments>
4922 listCommits: (
4923 params: Params.RepositoriesListCommits
4924 ) => AsyncResponse<Schema.Any>
4925 listCommitsAlt: (
4926 params: Params.RepositoriesListCommitsAlt
4927 ) => AsyncResponse<Schema.Any>
4928 listCommitsAt: (
4929 params: Params.RepositoriesListCommitsAt
4930 ) => AsyncResponse<Schema.Any>
4931 listCommitsAtAlt: (
4932 params: Params.RepositoriesListCommitsAtAlt
4933 ) => AsyncResponse<Schema.Any>
4934 listCommitStatuses: (
4935 params: Params.RepositoriesListCommitStatuses
4936 ) => AsyncResponse<Schema.PaginatedCommitstatuses>
4937 listComponents: (
4938 params: Params.RepositoriesListComponents
4939 ) => AsyncResponse<Schema.PaginatedComponents>
4940 listDefaultReviewers: (
4941 params: Params.RepositoriesListDefaultReviewers
4942 ) => AsyncResponse<Schema.Any>
4943 listDeployKeys: (
4944 params: Params.RepositoriesListDeployKeys
4945 ) => AsyncResponse<Schema.PaginatedDeployKeys>
4946 listDeployments: (
4947 params: Params.RepositoriesListDeployments
4948 ) => AsyncResponse<Schema.PaginatedDeployments>
4949 listDeploymentVariables: (
4950 params: Params.RepositoriesListDeploymentVariables
4951 ) => AsyncResponse<Schema.PaginatedDeploymentVariable>
4952 listDiffStats: (
4953 params: Params.RepositoriesListDiffStats
4954 ) => AsyncResponse<Schema.PaginatedDiffstats>
4955 listDownloads: (
4956 params: Params.RepositoriesListDownloads
4957 ) => AsyncResponse<Schema.Any>
4958 listEnvironments: (
4959 params: Params.RepositoriesListEnvironments
4960 ) => AsyncResponse<Schema.PaginatedEnvironments>
4961 listFileHistory: (
4962 params: Params.RepositoriesListFileHistory
4963 ) => AsyncResponse<Schema.PaginatedFiles>
4964 listForks: (
4965 params: Params.RepositoriesListForks
4966 ) => AsyncResponse<Schema.PaginatedRepositories>
4967 listGlobal: (
4968 params: Params.RepositoriesListGlobal
4969 ) => AsyncResponse<Schema.PaginatedRepositories>
4970 listIssueAttachments: (
4971 params: Params.RepositoriesListIssueAttachments
4972 ) => AsyncResponse<Schema.PaginatedIssueAttachments>
4973 listIssueChanges: (
4974 params: Params.RepositoriesListIssueChanges
4975 ) => AsyncResponse<Schema.PaginatedLogEntries>
4976 listIssueComments: (
4977 params: Params.RepositoriesListIssueComments
4978 ) => AsyncResponse<Schema.PaginatedIssueComments>
4979 listIssues: (
4980 params: Params.RepositoriesListIssues
4981 ) => AsyncResponse<Schema.PaginatedIssues>
4982 listMilestones: (
4983 params: Params.RepositoriesListMilestones
4984 ) => AsyncResponse<Schema.PaginatedMilestones>
4985 listPermissions: (
4986 params: Params.RepositoriesListPermissions
4987 ) => AsyncResponse<Schema.PaginatedRepositoryPermissions>
4988 listPipelineKnownHosts: (
4989 params: Params.RepositoriesListPipelineKnownHosts
4990 ) => AsyncResponse<Schema.PaginatedPipelineKnownHosts>
4991 listPipelines: (
4992 params: Params.RepositoriesListPipelines
4993 ) => AsyncResponse<Schema.PaginatedPipelines>
4994 listPipelineScheduleExecutions: (
4995 params: Params.RepositoriesListPipelineScheduleExecutions
4996 ) => AsyncResponse<Schema.PaginatedPipelineScheduleExecutions>
4997 listPipelineSchedules: (
4998 params: Params.RepositoriesListPipelineSchedules
4999 ) => AsyncResponse<Schema.PaginatedPipelineSchedules>
5000 listPipelineSteps: (
5001 params: Params.RepositoriesListPipelineSteps
5002 ) => AsyncResponse<Schema.PaginatedPipelineSteps>
5003 listPipelineVariables: (
5004 params: Params.RepositoriesListPipelineVariables
5005 ) => AsyncResponse<Schema.PaginatedPipelineVariables>
5006 listPullRequestActivities: (
5007 params: Params.RepositoriesListPullRequestActivities
5008 ) => AsyncResponse<Schema.Any>
5009 listPullRequestActivitiesForRepo: (
5010 params: Params.RepositoriesListPullRequestActivitiesForRepo
5011 ) => AsyncResponse<Schema.Any>
5012 listPullRequestComments: (
5013 params: Params.RepositoriesListPullRequestComments
5014 ) => AsyncResponse<Schema.PaginatedPullrequestComments>
5015 listPullRequestCommits: (
5016 params: Params.RepositoriesListPullRequestCommits
5017 ) => AsyncResponse<Schema.Any>
5018 listPullRequests: (
5019 params: Params.RepositoriesListPullRequests
5020 ) => AsyncResponse<Schema.PaginatedPullrequests>
5021 listPullrequestsForCommit: (
5022 params: Params.RepositoriesListPullrequestsForCommit
5023 ) => AsyncResponse<Schema.PaginatedPullrequests>
5024 listPullRequestStatuses: (
5025 params: Params.RepositoriesListPullRequestStatuses
5026 ) => AsyncResponse<Schema.PaginatedCommitstatuses>
5027 listRefs: (
5028 params: Params.RepositoriesListRefs
5029 ) => AsyncResponse<Schema.PaginatedRefs>
5030 listTags: (
5031 params: Params.RepositoriesListTags
5032 ) => AsyncResponse<Schema.PaginatedTags>
5033 listVersions: (
5034 params: Params.RepositoriesListVersions
5035 ) => AsyncResponse<Schema.PaginatedVersions>
5036 listWatchers: (
5037 params: Params.RepositoriesListWatchers
5038 ) => AsyncResponse<Schema.Any>
5039 listWebhooks: (
5040 params: Params.RepositoriesListWebhooks
5041 ) => AsyncResponse<Schema.PaginatedWebhookSubscriptions>
5042 mergePullRequest: (
5043 params: Params.RepositoriesMergePullRequest
5044 ) => AsyncResponse<Schema.Pullrequest>
5045 readSrc: (
5046 params: Params.RepositoriesReadSrc
5047 ) => AsyncResponse<Schema.PaginatedTreeentries>
5048 readSrcRoot: (
5049 params: Params.RepositoriesReadSrcRoot
5050 ) => AsyncResponse<Schema.PaginatedTreeentries>
5051 stopPipeline: (
5052 params: Params.RepositoriesStopPipeline
5053 ) => AsyncResponse<Schema.Any>
5054 update: (
5055 params: Params.RepositoriesUpdate
5056 ) => AsyncResponse<Schema.Repository>
5057 updateBranchingModelSettings: (
5058 params: Params.RepositoriesUpdateBranchingModelSettings
5059 ) => AsyncResponse<Schema.BranchingModelSettings>
5060 updateBranchRestriction: (
5061 params: Params.RepositoriesUpdateBranchRestriction
5062 ) => AsyncResponse<Schema.Branchrestriction>
5063 updateCommitBuildStatus: (
5064 params: Params.RepositoriesUpdateCommitBuildStatus
5065 ) => AsyncResponse<Schema.Commitstatus>
5066 updateDeployKey: (
5067 params: Params.RepositoriesUpdateDeployKey
5068 ) => AsyncResponse<Schema.DeployKey>
5069 updateDeploymentVariable: (
5070 params: Params.RepositoriesUpdateDeploymentVariable
5071 ) => AsyncResponse<Schema.DeploymentVariable>
5072 updateEnvironment: (
5073 params: Params.RepositoriesUpdateEnvironment
5074 ) => AsyncResponse<Schema.Any>
5075 updateIssue: (
5076 params: Params.RepositoriesUpdateIssue
5077 ) => AsyncResponse<Schema.Issue>
5078 updateIssueComment: (
5079 params: Params.RepositoriesUpdateIssueComment
5080 ) => AsyncResponse<Schema.IssueComment>
5081 updatePipelineBuildNumber: (
5082 params: Params.RepositoriesUpdatePipelineBuildNumber
5083 ) => AsyncResponse<Schema.PipelineBuildNumber>
5084 updatePipelineConfig: (
5085 params: Params.RepositoriesUpdatePipelineConfig
5086 ) => AsyncResponse<Schema.PipelinesConfig>
5087 updatePipelineKnownHost: (
5088 params: Params.RepositoriesUpdatePipelineKnownHost
5089 ) => AsyncResponse<Schema.PipelineKnownHost>
5090 updatePipelineSchedule: (
5091 params: Params.RepositoriesUpdatePipelineSchedule
5092 ) => AsyncResponse<Schema.PipelineSchedule>
5093 updatePipelineSshKeyPair: (
5094 params: Params.RepositoriesUpdatePipelineSshKeyPair
5095 ) => AsyncResponse<Schema.PipelineSshKeyPair>
5096 updatePipelineVariable: (
5097 params: Params.RepositoriesUpdatePipelineVariable
5098 ) => AsyncResponse<Schema.PipelineVariable>
5099 updatePullRequest: (
5100 params: Params.RepositoriesUpdatePullRequest
5101 ) => AsyncResponse<Schema.Pullrequest>
5102 updatePullRequestComment: (
5103 params: Params.RepositoriesUpdatePullRequestComment
5104 ) => AsyncResponse<Schema.PullrequestComment>
5105 updateWebhook: (
5106 params: Params.RepositoriesUpdateWebhook
5107 ) => AsyncResponse<Schema.WebhookSubscription>
5108 }
5109 search: {
5110 codeOfTeam: (
5111 params: Params.SearchCodeOfTeam
5112 ) => AsyncResponse<Schema.SearchResultPage>
5113 codeOfUser: (
5114 params: Params.SearchCodeOfUser
5115 ) => AsyncResponse<Schema.SearchResultPage>
5116 }
5117 snippet: {
5118 getRawFiles: (
5119 params: Params.SnippetGetRawFiles
5120 ) => AsyncResponse<Schema.Any>
5121 }
5122 snippets: {
5123 checkWatch: (params: Params.SnippetsCheckWatch) => AsyncResponse<Schema.Any>
5124 create: (params: Params.SnippetsCreate) => AsyncResponse<Schema.Snippet>
5125 createComment: (
5126 params: Params.SnippetsCreateComment
5127 ) => AsyncResponse<Schema.Snippet>
5128 createForUser: (
5129 params: Params.SnippetsCreateForUser
5130 ) => AsyncResponse<Schema.Snippet>
5131 delete: (params: Params.SnippetsDelete) => AsyncResponse<Schema.Any>
5132 deleteAt: (params: Params.SnippetsDeleteAt) => AsyncResponse<Schema.Any>
5133 deleteComment: (
5134 params: Params.SnippetsDeleteComment
5135 ) => AsyncResponse<Schema.Any>
5136 get: (params: Params.SnippetsGet) => AsyncResponse<Schema.Snippet>
5137 getAt: (params: Params.SnippetsGetAt) => AsyncResponse<Schema.Snippet>
5138 getComment: (
5139 params: Params.SnippetsGetComment
5140 ) => AsyncResponse<Schema.SnippetComment>
5141 getCommit: (
5142 params: Params.SnippetsGetCommit
5143 ) => AsyncResponse<Schema.SnippetCommit>
5144 getDiff: (params: Params.SnippetsGetDiff) => AsyncResponse<Schema.Any>
5145 getFile: (params: Params.SnippetsGetFile) => AsyncResponse<Schema.Any>
5146 getPatch: (params: Params.SnippetsGetPatch) => AsyncResponse<Schema.Any>
5147 getRawFiles: (
5148 params: Params.SnippetsGetRawFiles
5149 ) => AsyncResponse<Schema.Any>
5150 list: (
5151 params: Params.SnippetsList
5152 ) => AsyncResponse<Schema.PaginatedSnippets>
5153 listComments: (
5154 params: Params.SnippetsListComments
5155 ) => AsyncResponse<Schema.PaginatedSnippetComments>
5156 listCommits: (
5157 params: Params.SnippetsListCommits
5158 ) => AsyncResponse<Schema.PaginatedSnippetCommit>
5159 listForUser: (
5160 params: Params.SnippetsListForUser
5161 ) => AsyncResponse<Schema.PaginatedSnippets>
5162 listWatchers: (
5163 params: Params.SnippetsListWatchers
5164 ) => AsyncResponse<Schema.PaginatedUsers>
5165 startWatch: (params: Params.SnippetsStartWatch) => AsyncResponse<Schema.Any>
5166 stopWatch: (params: Params.SnippetsStopWatch) => AsyncResponse<Schema.Any>
5167 update: (params: Params.SnippetsUpdate) => AsyncResponse<Schema.Snippet>
5168 updateAt: (params: Params.SnippetsUpdateAt) => AsyncResponse<Schema.Snippet>
5169 updateComment: (
5170 params: Params.SnippetsUpdateComment
5171 ) => AsyncResponse<Schema.Any>
5172 }
5173 source: {
5174 createFileCommit: (
5175 params: Params.SourceCreateFileCommit
5176 ) => AsyncResponse<Schema.Any>
5177 listHistory: (
5178 params: Params.SourceListHistory
5179 ) => AsyncResponse<Schema.PaginatedFiles>
5180 read: (
5181 params: Params.SourceRead
5182 ) => AsyncResponse<Schema.PaginatedTreeentries>
5183 readRoot: (
5184 params: Params.SourceReadRoot
5185 ) => AsyncResponse<Schema.PaginatedTreeentries>
5186 }
5187 ssh: {
5188 createKey: (
5189 params: Params.SshCreateKey
5190 ) => AsyncResponse<Schema.SshAccountKey>
5191 deleteKey: (params: Params.SshDeleteKey) => AsyncResponse<Schema.Any>
5192 getKey: (params: Params.SshGetKey) => AsyncResponse<Schema.SshAccountKey>
5193 listKeys: (
5194 params: Params.SshListKeys
5195 ) => AsyncResponse<Schema.PaginatedSshUserKeys>
5196 updateKey: (
5197 params: Params.SshUpdateKey
5198 ) => AsyncResponse<Schema.SshAccountKey>
5199 }
5200 teams: {
5201 createPipelineVariable: (
5202 params: Params.TeamsCreatePipelineVariable
5203 ) => AsyncResponse<Schema.PipelineVariable>
5204 createProject: (
5205 params: Params.TeamsCreateProject
5206 ) => AsyncResponse<Schema.Project>
5207 createWebhook: (
5208 params: Params.TeamsCreateWebhook
5209 ) => AsyncResponse<Schema.WebhookSubscription>
5210 deletePipelineVariable: (
5211 params: Params.TeamsDeletePipelineVariable
5212 ) => AsyncResponse<Schema.Any>
5213 deleteProject: (
5214 params: Params.TeamsDeleteProject
5215 ) => AsyncResponse<Schema.Any>
5216 deleteWebhook: (
5217 params: Params.TeamsDeleteWebhook
5218 ) => AsyncResponse<Schema.Any>
5219 get: (params: Params.TeamsGet) => AsyncResponse<Schema.Team>
5220 getAllMembers: (
5221 params: Params.TeamsGetAllMembers
5222 ) => AsyncResponse<Schema.User>
5223 getMembers: (params: Params.TeamsGetMembers) => AsyncResponse<Schema.User>
5224 getPipelineVariable: (
5225 params: Params.TeamsGetPipelineVariable
5226 ) => AsyncResponse<Schema.PipelineVariable>
5227 getProject: (
5228 params: Params.TeamsGetProject
5229 ) => AsyncResponse<Schema.Project>
5230 getWebhook: (
5231 params: Params.TeamsGetWebhook
5232 ) => AsyncResponse<Schema.WebhookSubscription>
5233 list: (params: Params.TeamsList) => AsyncResponse<Schema.PaginatedTeams>
5234 listFollowers: (
5235 params: Params.TeamsListFollowers
5236 ) => AsyncResponse<Schema.PaginatedUsers>
5237 listFollowing: (
5238 params: Params.TeamsListFollowing
5239 ) => AsyncResponse<Schema.PaginatedUsers>
5240 listPermissions: (
5241 params: Params.TeamsListPermissions
5242 ) => AsyncResponse<Schema.PaginatedTeamPermissions>
5243 listPermissionsForRepo: (
5244 params: Params.TeamsListPermissionsForRepo
5245 ) => AsyncResponse<Schema.PaginatedRepositoryPermissions>
5246 listPermissionsForRepos: (
5247 params: Params.TeamsListPermissionsForRepos
5248 ) => AsyncResponse<Schema.PaginatedRepositoryPermissions>
5249 listPipelineVariables: (
5250 params: Params.TeamsListPipelineVariables
5251 ) => AsyncResponse<Schema.PaginatedPipelineVariables>
5252 listProjects: (
5253 params: Params.TeamsListProjects
5254 ) => AsyncResponse<Schema.PaginatedProjects>
5255 listRepositories: (
5256 params: Params.TeamsListRepositories
5257 ) => AsyncResponse<Schema.Any>
5258 listRepositoriesForUser: (
5259 params: Params.TeamsListRepositoriesForUser
5260 ) => AsyncResponse<Schema.Any>
5261 listWebhooks: (
5262 params: Params.TeamsListWebhooks
5263 ) => AsyncResponse<Schema.PaginatedWebhookSubscriptions>
5264 searchCode: (
5265 params: Params.TeamsSearchCode
5266 ) => AsyncResponse<Schema.SearchResultPage>
5267 updatePipelineVariable: (
5268 params: Params.TeamsUpdatePipelineVariable
5269 ) => AsyncResponse<Schema.PipelineVariable>
5270 updateProject: (
5271 params: Params.TeamsUpdateProject
5272 ) => AsyncResponse<Schema.Project>
5273 updateWebhook: (
5274 params: Params.TeamsUpdateWebhook
5275 ) => AsyncResponse<Schema.WebhookSubscription>
5276 }
5277 user: {
5278 get: (params: Params.UserGet) => AsyncResponse<Schema.User>
5279 getEmail: (params: Params.UserGetEmail) => AsyncResponse<Schema.Any>
5280 listEmails: (params: Params.UserListEmails) => AsyncResponse<Schema.Any>
5281 listPermissionsForRepos: (
5282 params: Params.UserListPermissionsForRepos
5283 ) => AsyncResponse<Schema.PaginatedRepositoryPermissions>
5284 listPermissionsForTeams: (
5285 params: Params.UserListPermissionsForTeams
5286 ) => AsyncResponse<Schema.PaginatedTeamPermissions>
5287 }
5288 users: {
5289 createPipelineVariable: (
5290 params: Params.UsersCreatePipelineVariable
5291 ) => AsyncResponse<Schema.PipelineVariable>
5292 createSshKey: (
5293 params: Params.UsersCreateSshKey
5294 ) => AsyncResponse<Schema.SshAccountKey>
5295 createWebhook: (
5296 params: Params.UsersCreateWebhook
5297 ) => AsyncResponse<Schema.WebhookSubscription>
5298 deletePipelineVariable: (
5299 params: Params.UsersDeletePipelineVariable
5300 ) => AsyncResponse<Schema.Any>
5301 deleteSshKey: (
5302 params: Params.UsersDeleteSshKey
5303 ) => AsyncResponse<Schema.Any>
5304 deleteWebhook: (
5305 params: Params.UsersDeleteWebhook
5306 ) => AsyncResponse<Schema.Any>
5307 get: (params: Params.UsersGet) => AsyncResponse<Schema.User>
5308 getAuthedUser: (
5309 params: Params.UsersGetAuthedUser
5310 ) => AsyncResponse<Schema.User>
5311 getEmailForAuthedUser: (
5312 params: Params.UsersGetEmailForAuthedUser
5313 ) => AsyncResponse<Schema.Any>
5314 getPipelineVariable: (
5315 params: Params.UsersGetPipelineVariable
5316 ) => AsyncResponse<Schema.PipelineVariable>
5317 getSshKey: (
5318 params: Params.UsersGetSshKey
5319 ) => AsyncResponse<Schema.SshAccountKey>
5320 getTeamMembers: (
5321 params: Params.UsersGetTeamMembers
5322 ) => AsyncResponse<Schema.User>
5323 getWebhook: (
5324 params: Params.UsersGetWebhook
5325 ) => AsyncResponse<Schema.WebhookSubscription>
5326 listEmailsForAuthedUser: (
5327 params: Params.UsersListEmailsForAuthedUser
5328 ) => AsyncResponse<Schema.Any>
5329 listFollowers: (
5330 params: Params.UsersListFollowers
5331 ) => AsyncResponse<Schema.PaginatedUsers>
5332 listFollowing: (
5333 params: Params.UsersListFollowing
5334 ) => AsyncResponse<Schema.PaginatedUsers>
5335 listPipelineVariables: (
5336 params: Params.UsersListPipelineVariables
5337 ) => AsyncResponse<Schema.PaginatedPipelineVariables>
5338 listRepositories: (
5339 params: Params.UsersListRepositories
5340 ) => AsyncResponse<Schema.Any>
5341 listRepositoriesForTeam: (
5342 params: Params.UsersListRepositoriesForTeam
5343 ) => AsyncResponse<Schema.Any>
5344 listSshKeys: (
5345 params: Params.UsersListSshKeys
5346 ) => AsyncResponse<Schema.PaginatedSshUserKeys>
5347 listWebhooks: (
5348 params: Params.UsersListWebhooks
5349 ) => AsyncResponse<Schema.PaginatedWebhookSubscriptions>
5350 searchCode: (
5351 params: Params.UsersSearchCode
5352 ) => AsyncResponse<Schema.SearchResultPage>
5353 updatePipelineVariable: (
5354 params: Params.UsersUpdatePipelineVariable
5355 ) => AsyncResponse<Schema.PipelineVariable>
5356 updateSshKey: (
5357 params: Params.UsersUpdateSshKey
5358 ) => AsyncResponse<Schema.SshAccountKey>
5359 updateWebhook: (
5360 params: Params.UsersUpdateWebhook
5361 ) => AsyncResponse<Schema.WebhookSubscription>
5362 }
5363 webhooks: {
5364 create: (
5365 params: Params.WebhooksCreate
5366 ) => AsyncResponse<Schema.WebhookSubscription>
5367 createForTeam: (
5368 params: Params.WebhooksCreateForTeam
5369 ) => AsyncResponse<Schema.WebhookSubscription>
5370 createForUser: (
5371 params: Params.WebhooksCreateForUser
5372 ) => AsyncResponse<Schema.WebhookSubscription>
5373 delete: (params: Params.WebhooksDelete) => AsyncResponse<Schema.Any>
5374 deleteForTeam: (
5375 params: Params.WebhooksDeleteForTeam
5376 ) => AsyncResponse<Schema.Any>
5377 deleteForUser: (
5378 params: Params.WebhooksDeleteForUser
5379 ) => AsyncResponse<Schema.Any>
5380 get: (
5381 params: Params.WebhooksGet
5382 ) => AsyncResponse<Schema.WebhookSubscription>
5383 getAllSubjectTypes: (
5384 params: Params.WebhooksGetAllSubjectTypes
5385 ) => AsyncResponse<Schema.SubjectTypes>
5386 getForTeam: (
5387 params: Params.WebhooksGetForTeam
5388 ) => AsyncResponse<Schema.WebhookSubscription>
5389 getForUser: (
5390 params: Params.WebhooksGetForUser
5391 ) => AsyncResponse<Schema.WebhookSubscription>
5392 list: (
5393 params: Params.WebhooksList
5394 ) => AsyncResponse<Schema.PaginatedHookEvents>
5395 listForRepo: (
5396 params: Params.WebhooksListForRepo
5397 ) => AsyncResponse<Schema.PaginatedWebhookSubscriptions>
5398 listForTeam: (
5399 params: Params.WebhooksListForTeam
5400 ) => AsyncResponse<Schema.PaginatedWebhookSubscriptions>
5401 listForUser: (
5402 params: Params.WebhooksListForUser
5403 ) => AsyncResponse<Schema.PaginatedWebhookSubscriptions>
5404 update: (
5405 params: Params.WebhooksUpdate
5406 ) => AsyncResponse<Schema.WebhookSubscription>
5407 updateForTeam: (
5408 params: Params.WebhooksUpdateForTeam
5409 ) => AsyncResponse<Schema.WebhookSubscription>
5410 updateForUser: (
5411 params: Params.WebhooksUpdateForUser
5412 ) => AsyncResponse<Schema.WebhookSubscription>
5413 }
5414}