node-cnb 1.13.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4827 @@
1
+ //#region src/types.d.ts
2
+
3
+ type ApiBranch = {
4
+ commit: {
5
+ sha: string;
6
+ };
7
+ name: string;
8
+ protected: boolean;
9
+ };
10
+ type ApiBranchDetail = {
11
+ commit: ApiCommit;
12
+ name: string;
13
+ protected: boolean;
14
+ };
15
+ type ApiBranchProtection = {
16
+ allow_creation: boolean;
17
+ allow_deletions: boolean;
18
+ allow_force_pushes: boolean;
19
+ allow_master_creation: boolean;
20
+ allow_master_deletions: boolean;
21
+ allow_master_force_pushes: boolean;
22
+ allow_master_manual_merge: boolean;
23
+ allow_master_pushes: boolean;
24
+ allow_pushes: boolean;
25
+ id: string;
26
+ required_approved_review_count: number;
27
+ required_approved_review_ratio: number;
28
+ required_commit_signatures: boolean;
29
+ required_linear_history: boolean;
30
+ required_master_approve: boolean;
31
+ required_must_auto_merge: boolean;
32
+ required_must_push_via_pull_request: boolean;
33
+ required_pull_request_reviews: boolean;
34
+ required_status_checks: boolean;
35
+ rule: string;
36
+ };
37
+ type ApiCommit = {
38
+ author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
39
+ commit: ApiCommitObject;
40
+ committer: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
41
+ parents: ApiCommitParent[];
42
+ sha: string;
43
+ };
44
+ type ApiCommitAsset = {
45
+ author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
46
+ content_type: string;
47
+ created_at: string;
48
+ id: string;
49
+ name: string;
50
+ path: string;
51
+ size_in_byte: number;
52
+ updated_at: string;
53
+ };
54
+ type ApiCommitDiffFilePatch = {
55
+ additions: number;
56
+ deletions: number;
57
+ name: string;
58
+ patch: string;
59
+ path: string;
60
+ status: string;
61
+ };
62
+ type ApiCommitObject = {
63
+ author: ApiSignature;
64
+ comment_count: number;
65
+ committer: ApiSignature;
66
+ message: string;
67
+ tree: ApiCommitObjectTree;
68
+ verification: ApiCommitObjectVerification;
69
+ };
70
+ type ApiCommitObjectTree = {
71
+ sha: string;
72
+ };
73
+ type ApiCommitObjectVerification = {
74
+ payload: string;
75
+ reason: string;
76
+ signature: string;
77
+ verified: boolean;
78
+ verified_at: string;
79
+ };
80
+ type ApiCommitParent = {
81
+ sha: string;
82
+ };
83
+ type ApiCommitStatus = {
84
+ context: string;
85
+ created_at: string;
86
+ description: string;
87
+ state: string;
88
+ target_url: string;
89
+ updated_at: string;
90
+ };
91
+ type ApiCompareResponse = {
92
+ base_commit: ApiCommit;
93
+ commits: ApiCommit[];
94
+ files: ApiCommitDiffFilePatch[];
95
+ head_commit: ApiCommit;
96
+ merge_base_commit: ApiCommit;
97
+ total_commits: number;
98
+ };
99
+ type ApiContent = {
100
+ content: string;
101
+ encoding: string;
102
+ entries: ApiTreeEntry[];
103
+ lfs_download_url: string;
104
+ name: string;
105
+ path: string;
106
+ sha: string;
107
+ size: number;
108
+ type: string;
109
+ };
110
+ type ApiDeleteIssueAssigneesForm = {
111
+ assignees: string[];
112
+ };
113
+ type ApiDeletePullAssigneesForm = {
114
+ assignees: string[];
115
+ };
116
+ type ApiIssue = {
117
+ assignees: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[];
118
+ author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
119
+ comment_count: number;
120
+ created_at: string;
121
+ ended_at: string;
122
+ labels: ApiLabel[];
123
+ last_acted_at: string;
124
+ number: string;
125
+ priority: string;
126
+ started_at: string;
127
+ state: string;
128
+ state_reason: string;
129
+ title: string;
130
+ updated_at: string;
131
+ };
132
+ type ApiIssueComment = {
133
+ author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
134
+ body: string;
135
+ created_at: string;
136
+ id: string;
137
+ updated_at: string;
138
+ };
139
+ type ApiIssueDetail = {
140
+ assignees: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[];
141
+ author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
142
+ body: string;
143
+ comment_count: number;
144
+ created_at: string;
145
+ ended_at: string;
146
+ labels: ApiLabel[];
147
+ last_acted_at: string;
148
+ number: string;
149
+ priority: string;
150
+ started_at: string;
151
+ state: string;
152
+ state_reason: string;
153
+ title: string;
154
+ updated_at: string;
155
+ };
156
+ type ApiLabel = {
157
+ color: string;
158
+ description: string;
159
+ id: string;
160
+ name: string;
161
+ };
162
+ type ApiMergePullRequest = {
163
+ commit_message: string;
164
+ commit_title: string;
165
+
166
+ /**The merge method to use. Can be one of: `merge`, `squash`, `rebase`*/
167
+ merge_style: string;
168
+ };
169
+ type ApiMergePullResponse = {
170
+ merged: boolean;
171
+ message: string;
172
+ sha: string;
173
+ };
174
+ type ApiPatchIssueAssigneesForm = {
175
+ assignees: string[];
176
+ };
177
+ type ApiPatchIssueCommentForm = {
178
+ body: string;
179
+ };
180
+ type ApiPatchIssueForm = {
181
+ body: string;
182
+
183
+ /**end time*/
184
+ end_date: string;
185
+
186
+ /**Priority of this issue. Can be one of: `p0`, `p1`, `p2`, `p3`, `""`.*/
187
+ priority: string;
188
+
189
+ /**start time*/
190
+ start_date: string;
191
+
192
+ /**State of this issue. Either `open` or `closed`.*/
193
+ state: string;
194
+
195
+ /**StateReason can be one of: `completed`, `not_planned`, `reopened`*/
196
+ state_reason: string;
197
+ title: string;
198
+ };
199
+ type ApiPatchLabelForm = {
200
+ /**The hexadecimal color code for the label, without the leading `#`.*/
201
+ color: string;
202
+ description: string;
203
+ new_name: string;
204
+ };
205
+ type ApiPatchPullRequest = {
206
+ body: string;
207
+
208
+ /**State of this Pull Request. Either `open` or `closed`.*/
209
+ state: string;
210
+ title: string;
211
+ };
212
+ type ApiPipelineSettings = {
213
+ auto_trigger: boolean;
214
+ forked_repo_auto_trigger: boolean;
215
+ };
216
+ type ApiPostBlobForm = {
217
+ content: string;
218
+
219
+ /**当前编码只支持 `"utf-8"` and `"base64"` 。默认: `utf-8`*/
220
+ encoding: string;
221
+ };
222
+ type ApiPostIssueAssigneesForm = {
223
+ assignees: string[];
224
+ };
225
+ type ApiPostIssueCommentForm = {
226
+ body: string;
227
+ };
228
+ type ApiPostIssueForm = {
229
+ assignees: string[];
230
+ body: string;
231
+ end_date: string;
232
+ labels: string[];
233
+
234
+ /**Priority of this issue. Can be one of: `p0`, `p1`, `p2`, `p3`, `""`.*/
235
+ priority: string;
236
+ start_date: string;
237
+ title: string;
238
+ };
239
+ type ApiPostIssueLabelsForm = {
240
+ labels: string[];
241
+ };
242
+ type ApiPostLabelForm = {
243
+ /**The hexadecimal color code for the label, without the leading `#`.*/
244
+ color: string;
245
+ description: string;
246
+ name: string;
247
+ };
248
+ type ApiPostPullAssigneesForm = {
249
+ assignees: string[];
250
+ };
251
+ type ApiPostPullLabelsForm = {
252
+ labels: string[];
253
+ };
254
+ type ApiPostTagFrom = {
255
+ message: string;
256
+ name: string;
257
+ target: string;
258
+ };
259
+ type ApiPull = {
260
+ base: ApiPullRef;
261
+ body: string;
262
+ head: ApiPullRef;
263
+ merged_by: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
264
+ number: string;
265
+ state: string;
266
+ title: string;
267
+ };
268
+ type ApiPullCommentCreationForm = {
269
+ body: string;
270
+ };
271
+ type ApiPullCreationForm = {
272
+ base: string;
273
+ body: string;
274
+ head: string;
275
+ head_repo: string;
276
+ title: string;
277
+ };
278
+ type ApiPullRef = {
279
+ ref: string;
280
+ repo: ApiRepo;
281
+ sha: string;
282
+ };
283
+ type ApiPullRefInfo = {
284
+ ref: string;
285
+ repo: ApiRepoInfo;
286
+ sha: string;
287
+ };
288
+ type ApiPullRequest = {
289
+ assignees: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo[];
290
+ author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
291
+ base: ApiPullRef;
292
+ blocked_on: string;
293
+ comment_count: number;
294
+ created_at: string;
295
+ head: ApiPullRef;
296
+ last_acted_at: string;
297
+ mergeable_state: string;
298
+ merged_by: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
299
+ number: string;
300
+ repo: ApiRepo;
301
+ review_count: number;
302
+ state: string;
303
+ title: string;
304
+ updated_at: string;
305
+ };
306
+ type ApiPullRequestComment = {
307
+ author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
308
+ body: string;
309
+ created_at: string;
310
+ updated_at: string;
311
+ };
312
+ type ApiPullRequestInfo = {
313
+ assignees: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[];
314
+ author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
315
+ base: ApiPullRefInfo;
316
+ blocked_on: string;
317
+ created_at: string;
318
+ head: ApiPullRefInfo;
319
+ last_acted_at: string;
320
+ mergeable_state: string;
321
+ merged_by: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
322
+ number: string;
323
+ repo: ApiRepoInfo;
324
+ reviewers: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[];
325
+ state: string;
326
+ title: string;
327
+ updated_at: string;
328
+ };
329
+ type ApiPullRequestSettings = {
330
+ allow_merge_commit_merge: boolean;
331
+ allow_rebase_merge: boolean;
332
+ allow_squash_merge: boolean;
333
+ master_auto_as_reviewer: boolean;
334
+ merge_commit_message_style: string;
335
+ squash_commit_message_style: string;
336
+ };
337
+ type ApiPullReviewCommentCreationForm = {
338
+ body: string;
339
+ end_line: number;
340
+ end_side: string;
341
+ path: string;
342
+ start_line: number;
343
+ start_side: string;
344
+
345
+ /**can be one of: line, file*/
346
+ subject_type: string;
347
+ };
348
+ type ApiPullReviewCreationForm = {
349
+ body: string;
350
+ comments: ApiPullReviewCommentCreationForm[];
351
+ event: string;
352
+ };
353
+ type ApiPushLimitSettings = {
354
+ allow_single_push_number: number;
355
+ check_single_push_number: boolean;
356
+ only_master_can_push_tag: boolean;
357
+ push_commit_must_be: string;
358
+ };
359
+ type ApiPutIssueLabelsForm = {
360
+ labels: string[];
361
+ };
362
+ type ApiPutPullLabelsForm = {
363
+ labels: string[];
364
+ };
365
+ type ApiRelease = {
366
+ assets: ApiReleaseAsset[];
367
+ author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
368
+ body: string;
369
+ created_at: string;
370
+ draft: boolean;
371
+ id: string;
372
+ is_latest: boolean;
373
+ name: string;
374
+ prerelease: boolean;
375
+ published_at: string;
376
+ tag_commitish: string;
377
+ tag_name: string;
378
+ updated_at: string;
379
+ };
380
+ type ApiReleaseAsset = {
381
+ content_type: string;
382
+ created_at: string;
383
+ id: string;
384
+ name: string;
385
+ path: string;
386
+ size: number;
387
+ updated_at: string;
388
+ uploader: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
389
+ };
390
+ type ApiRepo = {
391
+ id: string;
392
+ name: string;
393
+ path: string;
394
+ web_url: string;
395
+ };
396
+ type ApiRepoInfo = {
397
+ id: string;
398
+ name: string;
399
+ path: string;
400
+ web_url: string;
401
+ };
402
+ type ApiSignature = {
403
+ date: string;
404
+ email: string;
405
+ name: string;
406
+ };
407
+ type ApiTag = {
408
+ commit: ApiCommit;
409
+ name: string;
410
+ target: string;
411
+ target_type: string;
412
+ verification: ApiTagObjectVerification;
413
+ };
414
+ type ApiTagObjectVerification = {
415
+ payload: string;
416
+ reason: string;
417
+ signature: string;
418
+ verified: boolean;
419
+ verified_at: string;
420
+ };
421
+ type ApiTreeEntry = {
422
+ name: string;
423
+ path: string;
424
+ sha: string;
425
+ type: string;
426
+ };
427
+ type ChartDependency = {
428
+ /**Alias usable alias to be used for the chart*/
429
+ alias: string;
430
+
431
+ /**A yaml path that resolves to a boolean, used for enabling/disabling charts (e.g. subchart1.enabled )*/
432
+ condition: string;
433
+
434
+ /**Enabled bool determines if chart should be loaded*/
435
+ enabled: boolean;
436
+
437
+ /**ImportValues holds the mapping of source values to parent key to be imported. Each item can be a
438
+ string or pair of child/parent sublist items.*/
439
+ "import-values": any[];
440
+
441
+ /**Name is the name of the dependency.
442
+ This must mach the name in the dependency's Chart.yaml.*/
443
+ name: string;
444
+
445
+ /**The URL to the repository.
446
+ Appending `index.yaml` to this string should result in a URL that can be
447
+ used to fetch the repository index.*/
448
+ repository: string;
449
+
450
+ /**Tags can be used to group charts for enabling/disabling together*/
451
+ tags: string[];
452
+
453
+ /**Version is the version (range) of this chart.
454
+ A lock file will always produce a single version, while a dependency
455
+ may contain a semantic version range.*/
456
+ version: string;
457
+ };
458
+ type ChartMaintainer = {
459
+ /**Email is an optional email address to contact the named maintainer*/
460
+ email: string;
461
+
462
+ /**Name is a user name or organization name*/
463
+ name: string;
464
+
465
+ /**URL is an optional URL to an address for the named maintainer*/
466
+ url: string;
467
+ };
468
+ type ChartMetadata = {
469
+ /**Annotations are additional mappings uninterpreted by Helm,
470
+ made available for inspection by other applications.*/
471
+ annotations: any;
472
+
473
+ /**The API Version of this chart. Required.*/
474
+ apiVersion: string;
475
+
476
+ /**The version of the application enclosed inside of this chart.*/
477
+ appVersion: string;
478
+
479
+ /**The condition to check to enable chart*/
480
+ condition: string;
481
+
482
+ /**Dependencies are a list of dependencies for a chart.*/
483
+ dependencies: ChartDependency[];
484
+
485
+ /**Whether or not this chart is deprecated*/
486
+ deprecated: boolean;
487
+
488
+ /**A one-sentence description of the chart*/
489
+ description: string;
490
+
491
+ /**The URL to a relevant project page, git repo, or contact person*/
492
+ home: string;
493
+
494
+ /**The URL to an icon file.*/
495
+ icon: string;
496
+
497
+ /**A list of string keywords*/
498
+ keywords: string[];
499
+
500
+ /**KubeVersion is a SemVer constraint specifying the version of Kubernetes required.*/
501
+ kubeVersion: string;
502
+
503
+ /**A list of name and URL/email address combinations for the maintainer(s)*/
504
+ maintainers: ChartMaintainer[];
505
+
506
+ /**The name of the chart. Required.*/
507
+ name: string;
508
+
509
+ /**Source is the URL to the source code of this chart*/
510
+ sources: string[];
511
+
512
+ /**The tags to check to enable chart*/
513
+ tags: string;
514
+
515
+ /**Specifies the chart type: application or library*/
516
+ type: string;
517
+
518
+ /**A SemVer 2 conformant version string of the chart. Required.*/
519
+ version: string;
520
+ };
521
+ type ConstantAccessRole = 0 | 10 | 20 | 30 | 40 | 50;
522
+ type ConstantRepoDisplayModule = 1 | 2 | 4;
523
+ type ConstantUserEditable = 1 | 2 | 4 | 8 | 16 | 32;
524
+ type ConstantUserType = 0 | 1 | 2 | 3;
525
+ type ConstantVisibility = 0 | 10 | 20;
526
+ type DtoActivityCreateRepoDetail = {
527
+ create_at: string;
528
+
529
+ /**公仓转私仓或仓库被删除后为 null*/
530
+ detail: any;
531
+
532
+ /**activity 发生时仓库的 path,这时的 path 是可以公开的*/
533
+ exposed_repo_path: string;
534
+
535
+ /**仓库是否封禁*/
536
+ freeze: boolean;
537
+
538
+ /**仓库是否不可访问(公仓转私仓或仓库被删除后不可访问)*/
539
+ repo_unaccessible: boolean;
540
+
541
+ /**仓库可见性*/
542
+ visibility_level: any;
543
+ };
544
+ type DtoActivityDate = {
545
+ code_review_count: number;
546
+ code_reviews: DtoActivityRepoDetail[];
547
+ commit_count: number;
548
+ commits: DtoActivityRepoDetail[];
549
+ group_count: number;
550
+ groups: DtoActivityJoinGroupDetail[];
551
+ issues: DtoActivityRepoDetail[];
552
+ issues_count: number;
553
+ private_score: number;
554
+ pull_request_count: number;
555
+ pull_requests: DtoActivityRepoDetail[];
556
+ repo_count: number;
557
+ repos: DtoActivityCreateRepoDetail[];
558
+ };
559
+ type DtoActivityJoinGroupDetail = {
560
+ create_at: string;
561
+
562
+ /**组织详情,组织被删后为 null*/
563
+ detail: any;
564
+
565
+ /**组织别名,组织被删除后才有值*/
566
+ remark: string;
567
+ };
568
+ type DtoActivityRepoDetail = {
569
+ /**公仓转私仓或仓库被删除后为 null*/
570
+ detail: any;
571
+
572
+ /**activity 发生时仓库的 path,这时的 path 是可以公开的*/
573
+ exposed_repo_path: string;
574
+
575
+ /**仓库是否封禁*/
576
+ freeze: boolean;
577
+
578
+ /**仓库是否不可访问(公仓转私仓或仓库被删除后不可访问)*/
579
+ repo_unaccessible: boolean;
580
+ time: number;
581
+
582
+ /**仓库可见性*/
583
+ visibility_level: any;
584
+ };
585
+ type DtoAssets = {
586
+ content_type: string;
587
+ name: string;
588
+ path: string;
589
+ size: number;
590
+ };
591
+ type DtoBuildLogsResult = {
592
+ /**构建数据列表*/
593
+ data: DtoLogInfo[];
594
+
595
+ /**当前仓库是否已经有构建记录,1 表示有构建记录,0 表示没有构建记录*/
596
+ init: boolean;
597
+
598
+ /**当前时间戳*/
599
+ timestamp: number;
600
+
601
+ /**总数*/
602
+ total: number;
603
+ };
604
+ type DtoBuildResult = {
605
+ /**构建链接*/
606
+ buildLogUrl: string;
607
+
608
+ /**message*/
609
+ message: string;
610
+
611
+ /**构建号*/
612
+ sn: string;
613
+ };
614
+ type DtoBuildStatusResult = {
615
+ /**流水线的状态*/
616
+ pipelinesStatus: any;
617
+
618
+ /**构建状态*/
619
+ status: string;
620
+ };
621
+ type DtoChartPackageDetail = {
622
+ address: string;
623
+ desc: string;
624
+ last_pusher: DtoLastPusher;
625
+ package: string;
626
+ pull_count: number;
627
+ recent_pull_count: number;
628
+ slug: string;
629
+ tag_total: number;
630
+ tags: DtoChartTag[];
631
+ };
632
+ type DtoChartTag = {
633
+ address: string;
634
+ digest: string;
635
+ is_deprecated: boolean;
636
+ last_pusher: DtoLastPusher;
637
+ metadata: ChartMetadata;
638
+ name: string;
639
+ pull_count: number;
640
+ recent_pull_count: number;
641
+ size: number;
642
+ };
643
+ type DtoChartTagDetail = {
644
+ address: string;
645
+ is_deprecated: boolean;
646
+ last_pusher: DtoLastPusher;
647
+ metadata: ChartMetadata;
648
+ package: string;
649
+ pull_count: number;
650
+ recent_pull_count: number;
651
+ size: number;
652
+ slug: string;
653
+ tag: string;
654
+ };
655
+ type DtoCodeRepoQuotaRsp = {
656
+ docker: DtoQuotaRsp;
657
+ helm: DtoQuotaRsp;
658
+ };
659
+ type DtoCommonRegistryPackageDetail = {
660
+ address: string;
661
+ desc: string;
662
+ last_pusher: DtoLastPusher;
663
+ package: string;
664
+ pull_count: number;
665
+ recent_pull_count: number;
666
+ slug: string;
667
+ tag_total: number;
668
+ tags: DtoCommonRegistryTag[];
669
+ };
670
+ type DtoCommonRegistryTag = {
671
+ desc: string;
672
+ digest: string;
673
+ last_pusher: DtoLastPusher;
674
+ name: string;
675
+ pull_count: number;
676
+ recent_pull_count: number;
677
+ size: number;
678
+ status: string;
679
+ };
680
+ type DtoCommonRegistryTagDetail = {
681
+ address: string;
682
+ dependencies: DtoDependency[];
683
+ desc: string;
684
+ files: DtoFile[];
685
+ last_pusher: DtoLastPusher;
686
+ metadata: DtoMetaData;
687
+ package: string;
688
+ pull_count: number;
689
+ recent_pull_count: number;
690
+ size: number;
691
+ slug: string;
692
+ status: string;
693
+ tag: string;
694
+ tags: DtoCommonRegistryTag[];
695
+ };
696
+ type DtoContainerAnnotation = {
697
+ revision: string;
698
+ version: string;
699
+ };
700
+ type DtoContainerImage = {
701
+ arch: string;
702
+ digest: string;
703
+ layers: DtoContainerImageLayer[];
704
+ os: string;
705
+ size: number;
706
+ };
707
+ type DtoContainerImageLayer = {
708
+ instruction: string;
709
+ size: number;
710
+ };
711
+ type DtoContainerPackageDetail = {
712
+ address: string;
713
+ desc: string;
714
+ last_pusher: DtoLastPusher;
715
+ package: string;
716
+ pull_count: number;
717
+ recent_pull_count: number;
718
+ slug: string;
719
+ tag_total: number;
720
+ tags: DtoContainerTag[];
721
+ };
722
+ type DtoContainerTag = {
723
+ address: string;
724
+ annotations: DtoContainerAnnotation;
725
+ images: DtoContainerImage[];
726
+ last_pusher: DtoLastPusher;
727
+ name: string;
728
+ pull_count: number;
729
+ recent_pull_count: number;
730
+ };
731
+ type DtoContainerTagDetail = {
732
+ address: string;
733
+ annotations: DtoContainerAnnotation;
734
+ image: DtoContainerImage;
735
+ last_pusher: DtoLastPusher;
736
+ options: DtoContainerImage[];
737
+ package: string;
738
+ pull_count: number;
739
+ recent_pull_count: number;
740
+ slug: string;
741
+ tag: string;
742
+ };
743
+ type DtoCreateGroupReq = {
744
+ /**BindDomain 根组织绑定的域名*/
745
+ bind_domain: string;
746
+ description: string;
747
+ path: string;
748
+ remark: string;
749
+ };
750
+ type DtoCreateRepoReq = {
751
+ description: string;
752
+ license: string;
753
+ name: string;
754
+ visibility: "public" | "private" | "secret";
755
+ };
756
+ type DtoDependency = {
757
+ artifact: string;
758
+ framework_name: string;
759
+ name: string;
760
+ };
761
+ type DtoFile = {
762
+ name: string;
763
+ size: number;
764
+ };
765
+ type DtoForkReq = {
766
+ branch: string;
767
+ description: string;
768
+ group: string;
769
+ name: string;
770
+ };
771
+ type DtoForks = {
772
+ created_at: string;
773
+ fork_count: number;
774
+ freeze: boolean;
775
+ nickname: string;
776
+ path: string;
777
+ user_freeze: boolean;
778
+ user_lock: boolean;
779
+ username: string;
780
+ };
781
+ type DtoGroupSettingReq = {
782
+ /**组织限制指定邮箱认证才能加入*/
783
+ email_verification: string;
784
+
785
+ /**组织保护开关,0 - 关闭,1 - 打开*/
786
+ group_protection: number;
787
+
788
+ /**是否对外隐藏组织成员,0 - 否, 1 - 是*/
789
+ hide_members: number;
790
+
791
+ /**是否对外隐藏子组织,0 - 否, 1 - 是*/
792
+ hide_sub_groups: number;
793
+
794
+ /**是否对外显示私有仓库水印,0 - 否, 1 - 是*/
795
+ show_private_repo_watermark: number;
796
+
797
+ /**SettingValue 组织设置值,多个选项,用逗号拼接。可选值来自 SettingNamesArray 的值,e.g. disable_organization_readme,cloud_native_dev_only*/
798
+ values: string;
799
+ };
800
+ type DtoInheritMembersUser = {
801
+ access_level: ConstantAccessRole;
802
+ avatar: string;
803
+ created_at: string;
804
+ email: string;
805
+ email_verification: string;
806
+ freeze: boolean;
807
+ id: string;
808
+ inviter: DtoUsers;
809
+ join_time: string;
810
+ locked: boolean;
811
+ nickname: string;
812
+ self_member: boolean;
813
+ type: ConstantUserType;
814
+ username: string;
815
+
816
+ /**认证类型*/
817
+ verified: number;
818
+
819
+ /**认证过期时间*/
820
+ verified_expire_in: string;
821
+ };
822
+ type DtoLastPusher = {
823
+ is_frozen: boolean;
824
+ is_lock: boolean;
825
+ name: string;
826
+ nickname: string;
827
+ push_at: string;
828
+ };
829
+ type DtoListForks = {
830
+ fork_tree_count: number;
831
+ forks: DtoForks[];
832
+ };
833
+ type DtoListInheritMembers = {
834
+ inherit_path: string;
835
+ total: number;
836
+ users: DtoInheritMembersUser[];
837
+ };
838
+ type DtoLogInfo = {
839
+ /**构建日志 url*/
840
+ buildLogUrl: string;
841
+
842
+ /**提交日志 title*/
843
+ commitTitle: string;
844
+
845
+ /**构建开始时间*/
846
+ createTime: string;
847
+
848
+ /**构建耗时,单位:ms*/
849
+ duration: number;
850
+
851
+ /**事件名*/
852
+ event: string;
853
+
854
+ /**事件 url*/
855
+ eventUrl: string;
856
+
857
+ /**构建用户是否被冻结*/
858
+ freeze: boolean;
859
+
860
+ /**组织名*/
861
+ groupName: string;
862
+
863
+ /**流水线标签*/
864
+ labels: string;
865
+
866
+ /**构建用户昵称*/
867
+ nickName: string;
868
+
869
+ /**失败的子流水线个数*/
870
+ pipelineFailCount: number;
871
+
872
+ /**成功的子流水线个数*/
873
+ pipelineSuccessCount: number;
874
+
875
+ /**子流水线个数*/
876
+ pipelineTotalCount: number;
877
+
878
+ /**commitid*/
879
+ sha: string;
880
+
881
+ /**仓库路径*/
882
+ slug: string;
883
+
884
+ /**构建号*/
885
+ sn: string;
886
+
887
+ /**源分支名*/
888
+ sourceRef: string;
889
+
890
+ /**源仓库路径*/
891
+ sourceSlug: string;
892
+
893
+ /**构建状态*/
894
+ status: string;
895
+
896
+ /**目标分支名*/
897
+ targetRef: string;
898
+
899
+ /**构建 title*/
900
+ title: string;
901
+
902
+ /**用户名*/
903
+ userName: string;
904
+ };
905
+ type DtoMemberAccessLevel = {
906
+ access_level: ConstantAccessRole;
907
+ path: string;
908
+ };
909
+ type DtoMemberAccessLevelInSlugUnion = {
910
+ access_level: ConstantAccessRole;
911
+ inherit: boolean;
912
+ read_privilege: boolean;
913
+ write_privilege: boolean;
914
+ };
915
+ type DtoMetaData = {
916
+ author: string;
917
+ home_page: string;
918
+ license_url: string;
919
+ minimum_stability: string;
920
+ package_name: string;
921
+ package_tag: string;
922
+ package_type: string;
923
+ readme: string;
924
+ repository_url: string;
925
+ };
926
+ type DtoOrganizationAccess = {
927
+ /**AccessRole 用户在当前资源的最大权限*/
928
+ access_role: any;
929
+ all_member_count: number;
930
+
931
+ /**下面所有层级子组织*/
932
+ all_sub_group_count: number;
933
+
934
+ /**下面所有层级子任务*/
935
+ all_sub_mission_count: number;
936
+ all_sub_registry_count: number;
937
+
938
+ /**下面所有层级子仓库*/
939
+ all_sub_repo_count: number;
940
+ created_at: string;
941
+ description: string;
942
+ domain: string;
943
+ email: string;
944
+ follow_count: number;
945
+ freeze: boolean;
946
+ has_sub_group: boolean;
947
+ id: number;
948
+ member_count: number;
949
+ name: string;
950
+ path: string;
951
+ pinned: boolean;
952
+ pinned_time: string;
953
+ remark: string;
954
+ site: string;
955
+
956
+ /**下一级子组织数量*/
957
+ sub_group_count: number;
958
+ sub_mission_count: number;
959
+ sub_registry_count: number;
960
+
961
+ /**下一级子仓库*/
962
+ sub_repo_count: number;
963
+ updated_at: string;
964
+ wechat_mp: string;
965
+ };
966
+ type DtoOrganizationSettingWithParent = {
967
+ /**上级group设置了hide_members为1,则下级都不能显示*/
968
+ can_show_members: boolean;
969
+
970
+ /**上级group设置了hide_sub_groups为1,则下级都不能显示*/
971
+ can_show_sub_groups: boolean;
972
+ can_show_watermark: boolean;
973
+ email_verification: string;
974
+ group_protection: number;
975
+
976
+ /**是否对外隐藏组织成员,0 - 否, 1 - 是*/
977
+ hide_members: number;
978
+
979
+ /**是否对外隐藏子组织,0 - 否, 1 - 是*/
980
+ hide_sub_groups: number;
981
+ root_email_verification: string;
982
+ root_group_protection: boolean;
983
+ root_values: OrganizationSettingValue;
984
+ show_private_repo_watermark: number;
985
+ values: OrganizationSettingValue;
986
+ };
987
+ type DtoOrganizationUnion = {
988
+ all_member_count: number;
989
+
990
+ /**下面所有层级子组织*/
991
+ all_sub_group_count: number;
992
+
993
+ /**下面所有层级子任务*/
994
+ all_sub_mission_count: number;
995
+ all_sub_registry_count: number;
996
+
997
+ /**下面所有层级子仓库*/
998
+ all_sub_repo_count: number;
999
+ created_at: string;
1000
+ description: string;
1001
+ domain: string;
1002
+ email: string;
1003
+ follow_count: number;
1004
+ freeze: boolean;
1005
+ has_sub_group: boolean;
1006
+ id: number;
1007
+ member_count: number;
1008
+ name: string;
1009
+ path: string;
1010
+ remark: string;
1011
+ site: string;
1012
+
1013
+ /**下一级子组织数量*/
1014
+ sub_group_count: number;
1015
+ sub_mission_count: number;
1016
+ sub_registry_count: number;
1017
+
1018
+ /**下一级子仓库*/
1019
+ sub_repo_count: number;
1020
+ updated_at: string;
1021
+ wechat_mp: string;
1022
+ };
1023
+ type DtoOutsideCollaboratorInRepo = {
1024
+ access_level: ConstantAccessRole;
1025
+ avatar: string;
1026
+ created_at: string;
1027
+ email: string;
1028
+ freeze: boolean;
1029
+ id: string;
1030
+ join_time: string;
1031
+ locked: boolean;
1032
+ nickname: string;
1033
+ type: ConstantUserType;
1034
+ username: string;
1035
+
1036
+ /**认证类型*/
1037
+ verified: number;
1038
+
1039
+ /**认证过期时间*/
1040
+ verified_expire_in: string;
1041
+ };
1042
+ type DtoPackage = {
1043
+ count: number;
1044
+ description: string;
1045
+ labels: string[];
1046
+ last_artifact_name: string;
1047
+ last_pusher: DtoLastPusher;
1048
+ name: string;
1049
+ package: string;
1050
+ package_type: DtoPackageType;
1051
+ pull_count: number;
1052
+ recent_pull_count: number;
1053
+ };
1054
+ type DtoPackageDetail = {
1055
+ composer: DtoCommonRegistryPackageDetail;
1056
+ docker: DtoContainerPackageDetail;
1057
+ helm: DtoChartPackageDetail;
1058
+ maven: DtoCommonRegistryPackageDetail;
1059
+ npm: DtoCommonRegistryPackageDetail;
1060
+ nuget: DtoCommonRegistryPackageDetail;
1061
+ ohpm: DtoCommonRegistryPackageDetail;
1062
+ pypi: DtoCommonRegistryPackageDetail;
1063
+ };
1064
+ type DtoPackageType = "all" | "docker" | "helm" | "npm" | "maven" | "ohpm" | "pypi" | "composer" | "nuget";
1065
+ type DtoQuotaRsp = {
1066
+ /**The hard limits of the quota,example: { "hard": { "storage": -1}}*/
1067
+ hard: any;
1068
+
1069
+ /**The repository name of the quota*/
1070
+ repository_name: string;
1071
+
1072
+ /**The cnb default quota value*/
1073
+ storage_per_project: string;
1074
+
1075
+ /**The used limits of the quota,example: { "used": { "storage": 0}}*/
1076
+ used: any;
1077
+ };
1078
+ type DtoRegistryLevelQuotaRsp = {
1079
+ code_repo: DtoCodeRepoQuotaRsp;
1080
+ common_registry: DtoQuotaRsp;
1081
+ };
1082
+ type DtoRepoPatch = {
1083
+ description: string;
1084
+ license: string;
1085
+ site: string;
1086
+ topics: string[];
1087
+ };
1088
+ type DtoRepoStarUsers = {
1089
+ my_follow_count: number;
1090
+ total: number;
1091
+ users: DtoStarUser[];
1092
+ };
1093
+ type DtoRepos4User = {
1094
+ access: any;
1095
+ created_at: string;
1096
+ description: string;
1097
+ display_module: ConstantRepoDisplayModule;
1098
+ flags: FlagsRepo;
1099
+ fork_count: number;
1100
+
1101
+ /**预留*/
1102
+ forked_from_repo: any;
1103
+ freeze: boolean;
1104
+ id: number;
1105
+
1106
+ /**仓库程序语言,预留*/
1107
+ language: string;
1108
+
1109
+ /**仓库语言*/
1110
+ languages: any;
1111
+
1112
+ /**最新代码更新人姓名*/
1113
+ last_update_nickname: string;
1114
+
1115
+ /**最新代码更新人账户名*/
1116
+ last_update_username: string;
1117
+
1118
+ /**最新代码更新时间*/
1119
+ last_updated_at: any;
1120
+ license: string;
1121
+ mark_count: number;
1122
+ name: string;
1123
+
1124
+ /**开启的issue数*/
1125
+ open_issue_count: number;
1126
+
1127
+ /**开启的pull request数*/
1128
+ open_pull_request_count: number;
1129
+
1130
+ /**完整仓库路径*/
1131
+ path: string;
1132
+ pinned: boolean;
1133
+ pinned_time: string;
1134
+
1135
+ /**第二语言*/
1136
+ second_languages: any;
1137
+ site: string;
1138
+ star_count: number;
1139
+ star_time: string;
1140
+ stared: boolean;
1141
+ status: any;
1142
+ tags: {
1143
+ name: string;
1144
+ }[];
1145
+ topics: string;
1146
+ updated_at: string;
1147
+ visibility_level: ConstantVisibility;
1148
+ web_url: string;
1149
+ };
1150
+ type DtoRepos4UserBase = {
1151
+ created_at: string;
1152
+ description: string;
1153
+ display_module: ConstantRepoDisplayModule;
1154
+ flags: FlagsRepo;
1155
+ fork_count: number;
1156
+
1157
+ /**预留*/
1158
+ forked_from_repo: any;
1159
+ freeze: boolean;
1160
+ id: number;
1161
+
1162
+ /**仓库程序语言,预留*/
1163
+ language: string;
1164
+
1165
+ /**仓库语言*/
1166
+ languages: any;
1167
+
1168
+ /**最新代码更新人姓名*/
1169
+ last_update_nickname: string;
1170
+
1171
+ /**最新代码更新人账户名*/
1172
+ last_update_username: string;
1173
+
1174
+ /**最新代码更新时间*/
1175
+ last_updated_at: any;
1176
+ license: string;
1177
+ mark_count: number;
1178
+ name: string;
1179
+
1180
+ /**开启的issue数*/
1181
+ open_issue_count: number;
1182
+
1183
+ /**开启的pull request数*/
1184
+ open_pull_request_count: number;
1185
+
1186
+ /**完整仓库路径*/
1187
+ path: string;
1188
+
1189
+ /**第二语言*/
1190
+ second_languages: any;
1191
+ site: string;
1192
+ star_count: number;
1193
+ status: any;
1194
+ tags: {
1195
+ name: string;
1196
+ }[];
1197
+ topics: string;
1198
+ updated_at: string;
1199
+ visibility_level: ConstantVisibility;
1200
+ web_url: string;
1201
+ };
1202
+ type DtoStarUser = {
1203
+ avatar: string;
1204
+ created_at: string;
1205
+ email: string;
1206
+ freeze: boolean;
1207
+ id: string;
1208
+ is_follow: boolean;
1209
+ locked: boolean;
1210
+ nickname: string;
1211
+ stared_at: string;
1212
+ type: ConstantUserType;
1213
+ username: string;
1214
+
1215
+ /**认证类型*/
1216
+ verified: number;
1217
+
1218
+ /**认证过期时间*/
1219
+ verified_expire_in: string;
1220
+ };
1221
+ type DtoStartBuildReq = {
1222
+ /**触发分支,默认为主分支*/
1223
+ branch: string;
1224
+
1225
+ /**指定配置文件内容,yaml 格式*/
1226
+ config: string;
1227
+
1228
+ /**环境变量,对象格式*/
1229
+ env: any;
1230
+
1231
+ /**事件名,必须是 api_trigger 或以 api_trigger_ 开头,默认为 `api_trigger`*/
1232
+ event: string;
1233
+
1234
+ /**commit id ,优先级比 tag 高,默认为分支最新提交记录*/
1235
+ sha: string;
1236
+
1237
+ /**是否等待构建正式触发,为false时会立刻返回 sn 和 buildLogUrl*/
1238
+ sync: string;
1239
+
1240
+ /**触发 tag,优先级比 branch 高*/
1241
+ tag: string;
1242
+ };
1243
+ type DtoTag = {
1244
+ composer: DtoCommonRegistryTag[];
1245
+ docker: DtoContainerTag[];
1246
+ helm: DtoChartTag[];
1247
+ maven: DtoCommonRegistryTag[];
1248
+ npm: DtoCommonRegistryTag[];
1249
+ nuget: DtoCommonRegistryTag[];
1250
+ ohpm: DtoCommonRegistryTag[];
1251
+ package: string;
1252
+ pypi: DtoCommonRegistryTag[];
1253
+ };
1254
+ type DtoTagDetail = {
1255
+ composer: DtoCommonRegistryTagDetail;
1256
+ docker: DtoContainerTagDetail;
1257
+ helm: DtoChartTagDetail;
1258
+ maven: DtoCommonRegistryTagDetail;
1259
+ npm: DtoCommonRegistryTagDetail;
1260
+ nuget: DtoCommonRegistryTagDetail;
1261
+ ohpm: DtoCommonRegistryTagDetail;
1262
+ pypi: DtoCommonRegistryTagDetail;
1263
+ };
1264
+ type DtoTransferSlugReq = {
1265
+ source: string;
1266
+ target: string;
1267
+ };
1268
+ type DtoUpdateGroupAvatarReq = {
1269
+ /**新头像 url*/
1270
+ url: string;
1271
+ };
1272
+ type DtoUpdateGroupReq = {
1273
+ description: string;
1274
+ domain: string;
1275
+ email: string;
1276
+ remark: string;
1277
+ site: string;
1278
+ wechat_mp: string;
1279
+ };
1280
+ type DtoUpdateMembersRequest = {
1281
+ access_level: string;
1282
+ is_outside_collaborator: boolean;
1283
+ };
1284
+ type DtoUploadAssetsResponse = {
1285
+ assets: DtoAssets;
1286
+ form: any;
1287
+
1288
+ /**后续调用 confirm 接口用的*/
1289
+ token: string;
1290
+ upload_url: string;
1291
+ };
1292
+ type DtoUploadRequestParams = {
1293
+ name: string;
1294
+ size: number;
1295
+ };
1296
+ type DtoUserFollowResult = {
1297
+ freeze: boolean;
1298
+
1299
+ /**查询人是否follow了此用户*/
1300
+ is_following: boolean;
1301
+ locked: boolean;
1302
+ nickname: string;
1303
+ username: string;
1304
+ };
1305
+ type DtoUsers = {
1306
+ avatar: string;
1307
+ created_at: string;
1308
+ email: string;
1309
+ freeze: boolean;
1310
+ id: string;
1311
+ locked: boolean;
1312
+ nickname: string;
1313
+ type: ConstantUserType;
1314
+ username: string;
1315
+
1316
+ /**认证类型*/
1317
+ verified: number;
1318
+
1319
+ /**认证过期时间*/
1320
+ verified_expire_in: string;
1321
+ };
1322
+ type DtoUsersResult = {
1323
+ address: string;
1324
+
1325
+ /**用户赞赏码状态,0-无赞赏码,1-有*/
1326
+ appreciate_status: number;
1327
+ avatar: string;
1328
+ bio: string;
1329
+ company: string;
1330
+ created_at: string;
1331
+ email: string;
1332
+ follow_count: number;
1333
+ follow_mission_count: number;
1334
+ follow_repo_count: number;
1335
+ follower_count: number;
1336
+ freeze: boolean;
1337
+ gender: number;
1338
+ group_count: number;
1339
+ id: string;
1340
+
1341
+ /**查询人是否follow了此用户*/
1342
+ is_following: boolean;
1343
+ location: string;
1344
+ locked: boolean;
1345
+ mission_count: number;
1346
+ nickname: string;
1347
+ registry_count: number;
1348
+ repo_count: number;
1349
+ reward_amount: number;
1350
+ reward_count: number;
1351
+ site: string;
1352
+ stars_count: number;
1353
+ type: ConstantUserType;
1354
+ username: string;
1355
+
1356
+ /**认证类型*/
1357
+ verified: number;
1358
+
1359
+ /**认证过期时间*/
1360
+ verified_expire_in: string;
1361
+ wechat_mp: string;
1362
+ wechat_mp_qrcode: string;
1363
+ };
1364
+ type DtoUsersResultForSelf = {
1365
+ address: string;
1366
+
1367
+ /**用户赞赏码状态,0-无赞赏码,1-有*/
1368
+ appreciate_status: number;
1369
+ avatar: string;
1370
+ bio: string;
1371
+ company: string;
1372
+ created_at: string;
1373
+ editable: ConstantUserEditable;
1374
+ email: string;
1375
+ follow_count: number;
1376
+ follow_mission_count: number;
1377
+ follow_repo_count: number;
1378
+ follower_count: number;
1379
+ freeze: boolean;
1380
+ gender: number;
1381
+ group_count: number;
1382
+ id: string;
1383
+ language: string;
1384
+ last_login_at: string;
1385
+ last_login_ip: string;
1386
+ location: string;
1387
+ locked: boolean;
1388
+ mission_count: number;
1389
+ next_updated_name_at: string;
1390
+ nickname: string;
1391
+ registry_count: number;
1392
+ repo_count: number;
1393
+ reward_amount: number;
1394
+ reward_count: number;
1395
+ site: string;
1396
+ stars_count: number;
1397
+ type: ConstantUserType;
1398
+ updated_name_at: string;
1399
+ updated_nick_at: string;
1400
+ username: string;
1401
+
1402
+ /**认证类型*/
1403
+ verified: number;
1404
+
1405
+ /**认证过期时间*/
1406
+ verified_expire_in: string;
1407
+ wechat_mp: string;
1408
+ wechat_mp_qrcode: string;
1409
+ };
1410
+ type DtoUsersWithAccessLevelInSlug = {
1411
+ access_level: ConstantAccessRole;
1412
+ avatar: string;
1413
+ created_at: string;
1414
+ email: string;
1415
+ email_verification: string;
1416
+ freeze: boolean;
1417
+ id: string;
1418
+ inviter: DtoUsers;
1419
+ join_time: string;
1420
+ locked: boolean;
1421
+ nickname: string;
1422
+ type: ConstantUserType;
1423
+ username: string;
1424
+
1425
+ /**认证类型*/
1426
+ verified: number;
1427
+
1428
+ /**认证过期时间*/
1429
+ verified_expire_in: string;
1430
+ };
1431
+ type DtoWorkspaceDeleteReq = {
1432
+ /**创建环境的流水线 id*/
1433
+ pipelineId: string;
1434
+ };
1435
+ type DtoWorkspaceDeleteResult = {
1436
+ /**返回码,0 表示成功,1 表示失败*/
1437
+ code: number;
1438
+
1439
+ /**描述*/
1440
+ message: string;
1441
+ };
1442
+ type DtoWorkspaceDetailResult = {
1443
+ /**Cursor 客户端 remote-ssh 访问 schema 地址*/
1444
+ cursor: string;
1445
+
1446
+ /**VSCode 客户端 remote-ssh 访问 schema 地址*/
1447
+ vscode: string;
1448
+
1449
+ /**WebIDE 访问 url*/
1450
+ webide: string;
1451
+ };
1452
+ type DtoWorkspaceInfo = {
1453
+ /**分支名,例如:main*/
1454
+ branch: string;
1455
+
1456
+ /**备份的 commit 数*/
1457
+ commit_count: number;
1458
+
1459
+ /**开发环境创建时间,例如:2024-12-02T03:20:22.000Z*/
1460
+ create_time: string;
1461
+
1462
+ /**开发环境持续时间,单位:ms(非实时更新)*/
1463
+ duration: number;
1464
+
1465
+ /**备份的文件数*/
1466
+ file_count: number;
1467
+
1468
+ /**备份的文件列表,仅前五个备份文件相对路径*/
1469
+ file_list: string;
1470
+
1471
+ /**环境销毁时远程最新的 commit short hash*/
1472
+ latest_sha: string;
1473
+
1474
+ /**创建环境的子流水线 id*/
1475
+ pipeline_id: string;
1476
+
1477
+ /**备份的 stash 数*/
1478
+ remote_stash_count: number;
1479
+
1480
+ /**仓库地址*/
1481
+ repo_url: string;
1482
+
1483
+ /**恢复备份代码的流水线 id,如果有值表示备份代码已被恢复(重建环境时会恢复备份代码)*/
1484
+ restore_id: string;
1485
+
1486
+ /**仓库路径,例如:groupname/reponame*/
1487
+ slug: string;
1488
+
1489
+ /**创建开发环境的流水线 sn*/
1490
+ sn: string;
1491
+
1492
+ /**开发环境是否支持 ssh 链接*/
1493
+ ssh: boolean;
1494
+
1495
+ /**工作区状态,running: 开发环境已启动,closed:开发环境已关闭*/
1496
+ status: string;
1497
+
1498
+ /**开发环境默认工作区路径*/
1499
+ workspace: string;
1500
+ };
1501
+ type DtoWorkspaceListResult = {
1502
+ /**开发环境状态,running: 开发环境已启动,closed:开发环境已关闭*/
1503
+ hasMore: boolean;
1504
+
1505
+ /**查询开始时间,格式:YYYY-MM-DD HH:mm:ssZZ,例如:2024-12-01 00:00:00+0800*/
1506
+ list: DtoWorkspaceInfo[];
1507
+
1508
+ /**查询结束时间,格式:YYYY-MM-DD HH:mm:ssZZ,例如:2024-12-01 00:00:00+0800*/
1509
+ pageInfo: any;
1510
+
1511
+ /**分支名,例如:main*/
1512
+ total: number;
1513
+ };
1514
+ type FlagsRepo = 0 | 2;
1515
+ type GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo = {
1516
+ freeze: boolean;
1517
+ nickname: string;
1518
+ username: string;
1519
+ };
1520
+ type GitWoaComCnbMonorepoGitInternalAppGitServiceBffWebUserInfo = {
1521
+ freeze: boolean;
1522
+ nickname: string;
1523
+ username: string;
1524
+ };
1525
+ type GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo = {
1526
+ nickname: string;
1527
+ username: string;
1528
+ };
1529
+ type HttpUpdateUserInfoPayload = {
1530
+ address: string;
1531
+ bio: string;
1532
+ company: string;
1533
+ location: string;
1534
+ name: string;
1535
+ nickname: string;
1536
+ site: string;
1537
+ wechat_mp: string;
1538
+ wechat_mp_qrcode: string;
1539
+ };
1540
+ type OpenapiCreateBranchForm = {
1541
+ name: string;
1542
+ start_point: string;
1543
+ };
1544
+ type OpenapiHeadRef = {
1545
+ name: string;
1546
+ protected: boolean;
1547
+ };
1548
+ type OpenapiPatchReleaseForm = {
1549
+ body: string;
1550
+ draft: boolean;
1551
+ make_latest: string;
1552
+ name: string;
1553
+ prerelease: boolean;
1554
+ };
1555
+ type OpenapiPostCommitAssetUploadUrlForm = {
1556
+ asset_name: string;
1557
+
1558
+ /**附件大小,单位为字节。 Attachment size, in bytes.*/
1559
+ size: number;
1560
+ };
1561
+ type OpenapiPostReleaseAssetUploadUrlForm = {
1562
+ asset_name: string;
1563
+ overwrite: boolean;
1564
+
1565
+ /**附件大小,单位为字节。 Attachment size, in bytes.*/
1566
+ size: number;
1567
+ };
1568
+ type OpenapiPostReleaseForm = {
1569
+ body: string;
1570
+ draft: boolean;
1571
+ make_latest: string;
1572
+ name: string;
1573
+ prerelease: boolean;
1574
+ tag_name: string;
1575
+ target_commitish: string;
1576
+ };
1577
+ type OpenapiPutCommitAnnotation = {
1578
+ key: string;
1579
+ value: string;
1580
+ };
1581
+ type OpenapiPutCommitAnnotationsForm = {
1582
+ annotations: OpenapiPutCommitAnnotation[];
1583
+ };
1584
+ type OpenapiPutTagAnnotation = {
1585
+ key: string;
1586
+ value: string;
1587
+ };
1588
+ type OpenapiPutTagAnnotationsForm = {
1589
+ annotations: OpenapiPutTagAnnotation[];
1590
+ };
1591
+ type OrganizationSettingValue = 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192 | 16384 | 32768 | 65536 | 131072 | 262144 | 524288;
1592
+ type WebCommitAnnotation = {
1593
+ key: string;
1594
+ meta: any;
1595
+ value: string;
1596
+ };
1597
+ type WebCommitAnnotationInBatch = {
1598
+ annotations: WebCommitAnnotation[];
1599
+ commit_hash: string;
1600
+ };
1601
+ type WebCommitStatus = {
1602
+ context: string;
1603
+ created_at: string;
1604
+ description: string;
1605
+ state: string;
1606
+ target_url: string;
1607
+ updated_at: string;
1608
+ };
1609
+ type WebCommitStatuses = {
1610
+ sha: string;
1611
+ state: string;
1612
+ statuses: WebCommitStatus[];
1613
+ };
1614
+ type WebContributorTrend = {
1615
+ /**贡献者信息*/
1616
+ author: any;
1617
+
1618
+ /**贡献者的总提交数*/
1619
+ commit_count: number;
1620
+
1621
+ /**贡献者以周为单位的提交趋势数据*/
1622
+ weeks: WebWeek[];
1623
+ };
1624
+ type WebDeferredCommit = {
1625
+ oid: string;
1626
+ signature_information: WebSignatureInformation;
1627
+ status_check_statuses: WebCommitStatuses;
1628
+
1629
+ /**one of `verified`, `unverified`, `unsigned`*/
1630
+ verified_status: string;
1631
+ };
1632
+ type WebGetCommitAnnotationsInBatchForm = {
1633
+ commit_hashes: string[];
1634
+ keys: string[];
1635
+ };
1636
+ type WebMeta = {
1637
+ gen_branch: string;
1638
+ gen_hash: string;
1639
+ updated_at: string;
1640
+ };
1641
+ type WebPipelineSettings = {
1642
+ auto_trigger: boolean;
1643
+ forked_repo_auto_trigger: boolean;
1644
+ };
1645
+ type WebRepoContribTrend = {
1646
+ meta: WebMeta;
1647
+ repo_data: WebWeek[];
1648
+ user_total: number;
1649
+ users_data: WebContributorTrend[];
1650
+ week_total: number;
1651
+
1652
+ /**是否统计增删的行数, 默认总提交超过 10000 的仓库不统计*/
1653
+ with_line_counts: boolean;
1654
+ };
1655
+ type WebSignatureInformation = {
1656
+ has_signature: boolean;
1657
+ key_expired: boolean;
1658
+ key_id: string;
1659
+ signature_type: string;
1660
+ signature_verification_reason: string;
1661
+ signed_by_cnb: boolean;
1662
+ signer: GitWoaComCnbMonorepoGitInternalAppGitServiceBffWebUserInfo;
1663
+ verified: boolean;
1664
+ verified_at: string;
1665
+ };
1666
+ type WebTagAnnotation = {
1667
+ key: string;
1668
+ meta: any;
1669
+ value: string;
1670
+ };
1671
+ type WebWeek = {
1672
+ /**每周增加的行数*/
1673
+ a: number;
1674
+
1675
+ /**每周的提交数量*/
1676
+ c: number;
1677
+
1678
+ /**每周删除的行数*/
1679
+ d: number;
1680
+
1681
+ /**周的时间戳*/
1682
+ w: number;
1683
+ };
1684
+ type WebapiRevertPullRequestForm = {
1685
+ create_pr: boolean;
1686
+ target_branch: string;
1687
+ };
1688
+ //#endregion
1689
+ //#region src/client.d.ts
1690
+ type Organizations_CreateOrganization = (params: {
1691
+ request: DtoCreateGroupReq;
1692
+ }) => Promise<any>;
1693
+ type Users_GetUserInfo = () => Promise<DtoUsersResultForSelf>;
1694
+ type Users_UpdateUserInfo = (params: {
1695
+ request: HttpUpdateUserInfoPayload;
1696
+ }) => Promise<any>;
1697
+ type Users_AutoCompleteSource = (params?: {
1698
+ source_type?: "Group" | "Repo";
1699
+ page?: number;
1700
+ page_size?: number;
1701
+ search?: string;
1702
+ access?: "Reporter" | "Developer" | "Master" | "Owner";
1703
+ }) => Promise<string[]>;
1704
+ type Organizations_ListTopGroups = (params?: {
1705
+ page?: number;
1706
+ page_size?: number;
1707
+ search?: string;
1708
+ role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
1709
+ }) => Promise<DtoOrganizationAccess[]>;
1710
+ type Organizations_ListGroups = (params: {
1711
+ group: string;
1712
+ page?: number;
1713
+ page_size?: number;
1714
+ access?: number;
1715
+ }) => Promise<DtoOrganizationAccess[]>;
1716
+ type Repositories_GetRepos = (params?: {
1717
+ page?: number;
1718
+ page_size?: number;
1719
+ search?: string;
1720
+ filter_type?: "private" | "public" | "encrypted";
1721
+ role?: "Reporter" | "Developer" | "Master" | "Owner";
1722
+ flags?: "KnowledgeBase";
1723
+ order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path" | "forks";
1724
+ desc?: boolean;
1725
+ }) => Promise<DtoRepos4User[]>;
1726
+ type Repositories_GetUserAllStaredRepos = (params?: {
1727
+ page?: number;
1728
+ page_size?: number;
1729
+ search?: string;
1730
+ desc?: boolean;
1731
+ order_by?: "created_at" | "last_updated_at" | "stars" | "forks";
1732
+ }) => Promise<DtoRepos4User[]>;
1733
+ type Users_GetUserInfoByName = (params: {
1734
+ username: string;
1735
+ }) => Promise<DtoUsersResult>;
1736
+ type Activities_GetUserActivitiesByDate = (params: {
1737
+ username: string;
1738
+ date?: string;
1739
+ }) => Promise<DtoActivityDate>;
1740
+ type Assets_GetUserAvatar = (params: {
1741
+ username: string;
1742
+ size: string;
1743
+ }) => Promise<any>;
1744
+ type Followers_GetFollowersByUserID = (params: {
1745
+ username: string;
1746
+ page?: number;
1747
+ page_size?: number;
1748
+ }) => Promise<DtoUserFollowResult[]>;
1749
+ type Followers_GetFollowingByUserID = (params: {
1750
+ username: string;
1751
+ page?: number;
1752
+ page_size?: number;
1753
+ }) => Promise<DtoUserFollowResult[]>;
1754
+ type Organizations_GetGroupsByUserID = (params: {
1755
+ username: string;
1756
+ search?: string;
1757
+ page?: number;
1758
+ page_size?: number;
1759
+ desc?: boolean;
1760
+ order_by?: "join_time" | "created_at";
1761
+ }) => Promise<DtoOrganizationUnion>;
1762
+ type Repositories_GetPinnedRepoByID = (params: {
1763
+ username: string;
1764
+ }) => Promise<DtoRepos4User[]>;
1765
+ type Activities_GetUserRepoActivityDetails = (params: {
1766
+ username: string;
1767
+ activityType: "issue" | "pull_request" | "code_review";
1768
+ slug: string;
1769
+ date: string;
1770
+ }) => Promise<any[]>;
1771
+ type Repositories_GetReposByUserName = (params: {
1772
+ username: string;
1773
+ search?: string;
1774
+ role?: "Reporter" | "Developer" | "Master" | "Owner";
1775
+ page?: number;
1776
+ page_size?: number;
1777
+ desc?: boolean;
1778
+ order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path" | "forks";
1779
+ }) => Promise<DtoRepos4User[]>;
1780
+ type Starring_GetUserStaredRepos = (params: {
1781
+ username: string;
1782
+ search?: string;
1783
+ page?: number;
1784
+ page_size?: number;
1785
+ desc?: boolean;
1786
+ order_by?: "created_at" | "last_updated_at" | "stars" | "forks";
1787
+ }) => Promise<DtoRepos4User[]>;
1788
+ type Workspace_DeleteWorkspace = (params: {
1789
+ request: DtoWorkspaceDeleteReq;
1790
+ }) => Promise<DtoWorkspaceDeleteResult>;
1791
+ type Workspace_ListWorkspaces = (params?: {
1792
+ branch?: string;
1793
+ end?: string;
1794
+ page?: number;
1795
+ pageSize?: number;
1796
+ slug?: string;
1797
+ start?: string;
1798
+ status?: string;
1799
+ }) => Promise<DtoWorkspaceListResult>;
1800
+ type Organizations_DeleteOrganization = (params: {
1801
+ group: string;
1802
+ "x-cnb-identity-ticket"?: string;
1803
+ }) => Promise<any>;
1804
+ type Organizations_GetGroup = (params: {
1805
+ group: string;
1806
+ }) => Promise<DtoOrganizationAccess>;
1807
+ type Organizations_UpdateOrganization = (params: {
1808
+ group: string;
1809
+ request: DtoUpdateGroupReq;
1810
+ }) => Promise<any>;
1811
+ type Organizations_UpdateGroupAvatar = (params: {
1812
+ group: string;
1813
+ request: DtoUpdateGroupAvatarReq;
1814
+ }) => Promise<any>;
1815
+ type Collaborators_ListInheritMembersOfGroup = (params: {
1816
+ group: string;
1817
+ search?: string;
1818
+ role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
1819
+ page?: number;
1820
+ page_size?: number;
1821
+ }) => Promise<DtoListInheritMembers[]>;
1822
+ type Assets_PutLogos = (params: {
1823
+ group: string;
1824
+ token: string;
1825
+ }) => Promise<any>;
1826
+ type Assets_GetLogos = (params: {
1827
+ group: string;
1828
+ size?: string;
1829
+ }) => Promise<any>;
1830
+ type Collaborators_ListMembersOfGroup = (params: {
1831
+ group: string;
1832
+ page?: number;
1833
+ page_size?: number;
1834
+ role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
1835
+ search?: string;
1836
+ }) => Promise<DtoUsersWithAccessLevelInSlug[]>;
1837
+ type Contributors_GetMemberAccessLevelOfGroup = (params: {
1838
+ group: string;
1839
+ include_inherit?: boolean;
1840
+ }) => Promise<DtoMemberAccessLevelInSlugUnion>;
1841
+ type Contributors_ListMemberAccessLevelOfGroup = (params: {
1842
+ group: string;
1843
+ username: string;
1844
+ }) => Promise<DtoMemberAccessLevel[]>;
1845
+ type Collaborators_DeleteMembersOfGroup = (params: {
1846
+ group: string;
1847
+ username: string;
1848
+ }) => Promise<any>;
1849
+ type Collaborators_AddMembersOfGroup = (params: {
1850
+ group: string;
1851
+ username: string;
1852
+ request: DtoUpdateMembersRequest;
1853
+ }) => Promise<any>;
1854
+ type Collaborators_UpdateMembersOfGroup = (params: {
1855
+ group: string;
1856
+ username: string;
1857
+ request: DtoUpdateMembersRequest;
1858
+ }) => Promise<any>;
1859
+ type Repositories_GetPinnedRepoByGroup = (params: {
1860
+ group: string;
1861
+ }) => Promise<DtoRepos4UserBase[]>;
1862
+ type Repositories_SetPinnedRepoByGroup = (params: {
1863
+ group: string;
1864
+ request: string[];
1865
+ }) => Promise<DtoRepos4UserBase[]>;
1866
+ type Repositories_GetGroupSubRepos = (params: {
1867
+ group: string;
1868
+ page?: number;
1869
+ page_size?: number;
1870
+ filter_type?: "private" | "public" | "encrypted";
1871
+ order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path";
1872
+ desc?: boolean;
1873
+ descendant?: "all" | "sub" | "grand";
1874
+ search?: string;
1875
+ }) => Promise<DtoRepos4User[]>;
1876
+ type Repositories_CreateRepo = (params: {
1877
+ group: string;
1878
+ request: DtoCreateRepoReq;
1879
+ }) => Promise<any>;
1880
+ type Organizations_GetGroupSetting = (params: {
1881
+ group: string;
1882
+ }) => Promise<DtoOrganizationSettingWithParent>;
1883
+ type Organizations_UpdateGroupSetting = (params: {
1884
+ group: string;
1885
+ request: DtoGroupSettingReq;
1886
+ }) => Promise<any>;
1887
+ type Organizations_ListSubgroups = (params: {
1888
+ group: string;
1889
+ search?: string;
1890
+ page: number;
1891
+ page_size: number;
1892
+ }) => Promise<DtoOrganizationUnion[]>;
1893
+ type Organizations_TransferGroup = (params: {
1894
+ group: string;
1895
+ request: DtoTransferSlugReq;
1896
+ }) => Promise<any>;
1897
+ type Assets_UploadLogos = (params: {
1898
+ group: string;
1899
+ request: DtoUploadRequestParams;
1900
+ }) => Promise<DtoUploadAssetsResponse>;
1901
+ type Missions_DeleteMission = (params: {
1902
+ mission: string;
1903
+ "x-cnb-identity-ticket"?: string;
1904
+ }) => Promise<any>;
1905
+ type Collaborators_AddMembersOfMission = (params: {
1906
+ mission: string;
1907
+ username: string;
1908
+ request: DtoUpdateMembersRequest;
1909
+ }) => Promise<any>;
1910
+ type Artifactory_DeleteRegistry = (params: {
1911
+ registry: string;
1912
+ "x-cnb-identity-ticket"?: string;
1913
+ }) => Promise<any>;
1914
+ type Collaborators_AddMembersOfRegistry = (params: {
1915
+ registry: string;
1916
+ username: string;
1917
+ request: DtoUpdateMembersRequest;
1918
+ }) => Promise<any>;
1919
+ type Repositories_DeleteRepo = (params: {
1920
+ repo: string;
1921
+ "x-cnb-identity-ticket"?: string;
1922
+ }) => Promise<any>;
1923
+ type Repositories_GetByID = (params: {
1924
+ repo: string;
1925
+ }) => Promise<DtoRepos4User>;
1926
+ type Repositories_UpdateRepo = (params: {
1927
+ repo: string;
1928
+ request: DtoRepoPatch;
1929
+ }) => Promise<any>;
1930
+ type Build_GetBuildLogs = (params: {
1931
+ repo: string;
1932
+ createTime?: string;
1933
+ endTime?: string;
1934
+ event?: string;
1935
+ page?: number;
1936
+ pagesize?: number;
1937
+ sha?: string;
1938
+ sn?: string;
1939
+ sourceRef?: string;
1940
+ status?: string;
1941
+ targetRef?: string;
1942
+ userId?: string;
1943
+ userName?: string;
1944
+ }) => Promise<DtoBuildLogsResult>;
1945
+ type Build_StartBuild = (params: {
1946
+ repo: string;
1947
+ request: DtoStartBuildReq;
1948
+ }) => Promise<DtoBuildResult>;
1949
+ type Build_GetBuildStatus = (params: {
1950
+ repo: string;
1951
+ sn: string;
1952
+ }) => Promise<DtoBuildStatusResult>;
1953
+ type Build_StopBuild = (params: {
1954
+ repo: string;
1955
+ sn: string;
1956
+ }) => Promise<DtoBuildResult>;
1957
+ type Assets_GetCommitAssets = (params: {
1958
+ repo: string;
1959
+ fileName: string;
1960
+ share?: boolean;
1961
+ }) => Promise<any>;
1962
+ type RepoContributor_GetRepoContributorTrend = (params: {
1963
+ repo: string;
1964
+ limit?: number;
1965
+ exclude_external_users?: boolean;
1966
+ }) => Promise<WebRepoContribTrend>;
1967
+ type Assets_GetFiles = (params: {
1968
+ repo: string;
1969
+ userIdKey: string;
1970
+ randomUUID: string;
1971
+ fileName: string;
1972
+ }) => Promise<any>;
1973
+ type Assets_PutFiles = (params: {
1974
+ repo: string;
1975
+ userIdKey: string;
1976
+ randomUUID: string;
1977
+ fileName: string;
1978
+ token: string;
1979
+ }) => Promise<any>;
1980
+ type Repositories_ListForksRepos = (params: {
1981
+ repo: string;
1982
+ start_from_root?: boolean;
1983
+ page: number;
1984
+ page_size: number;
1985
+ }) => Promise<DtoListForks>;
1986
+ type Repositories_CreateAFork = (params: {
1987
+ repo: string;
1988
+ request: DtoForkReq;
1989
+ }) => Promise<any>;
1990
+ type Git_GetArchiveCommitChangedFiles = (params: {
1991
+ repo: string;
1992
+ sha1?: string;
1993
+ }) => Promise<any>;
1994
+ type Git_GetArchiveCompareChangedFiles = (params: {
1995
+ repo: string;
1996
+ base_head: string;
1997
+ }) => Promise<any>;
1998
+ type Git_CreateBlob = (params: {
1999
+ repo: string;
2000
+ post_blob_form: ApiPostBlobForm;
2001
+ }) => Promise<any>;
2002
+ type Git_ListBranches = (params: {
2003
+ repo: string;
2004
+ page?: number;
2005
+ page_size?: number;
2006
+ }) => Promise<ApiBranch[]>;
2007
+ type Git_CreateBranch = (params: {
2008
+ repo: string;
2009
+ create_branch_form: OpenapiCreateBranchForm;
2010
+ }) => Promise<any>;
2011
+ type Git_DeleteBranch = (params: {
2012
+ repo: string;
2013
+ branch: string;
2014
+ }) => Promise<any>;
2015
+ type Git_GetBranch = (params: {
2016
+ repo: string;
2017
+ branch?: string;
2018
+ }) => Promise<ApiBranchDetail>;
2019
+ type Git_GetCommitAnnotationsInBatch = (params: {
2020
+ repo: string;
2021
+ get_commit_annotations_form: WebGetCommitAnnotationsInBatchForm;
2022
+ }) => Promise<WebCommitAnnotationInBatch[]>;
2023
+ type Git_GetCommitAnnotations = (params: {
2024
+ repo: string;
2025
+ sha: string;
2026
+ }) => Promise<WebCommitAnnotation[]>;
2027
+ type Git_PutCommitAnnotations = (params: {
2028
+ repo: string;
2029
+ sha: string;
2030
+ put_commit_annotations_form: OpenapiPutCommitAnnotationsForm;
2031
+ }) => Promise<any>;
2032
+ type Git_DeleteCommitAnnotation = (params: {
2033
+ repo: string;
2034
+ sha: string;
2035
+ key: string;
2036
+ }) => Promise<any>;
2037
+ type Git_GetCommitAssetsBySha = (params: {
2038
+ repo: string;
2039
+ sha1: string;
2040
+ }) => Promise<ApiCommitAsset[]>;
2041
+ type Git_PostCommitAssetUploadConfirmation = (params: {
2042
+ repo: string;
2043
+ sha1: string;
2044
+ token: string;
2045
+ asset_path: string;
2046
+ }) => Promise<any>;
2047
+ type Git_PostCommitAssetUploadURL = (params: {
2048
+ repo: string;
2049
+ sha1: string;
2050
+ create_commit_asset_upload_url_form: OpenapiPostCommitAssetUploadUrlForm;
2051
+ }) => Promise<any>;
2052
+ type Git_DeleteCommitAsset = (params: {
2053
+ repo: string;
2054
+ sha1: string;
2055
+ asset_id: string;
2056
+ }) => Promise<any>;
2057
+ type Git_GetCommitStatuses = (params: {
2058
+ repo: string;
2059
+ commitish: string;
2060
+ }) => Promise<ApiCommitStatus[]>;
2061
+ type Git_ListCommits = (params: {
2062
+ repo: string;
2063
+ sha?: string;
2064
+ author?: string;
2065
+ committer?: string;
2066
+ since?: string;
2067
+ until?: string;
2068
+ page?: number;
2069
+ page_size?: number;
2070
+ }) => Promise<ApiCommit[]>;
2071
+ type Git_GetCommit = (params: {
2072
+ repo: string;
2073
+ ref: string;
2074
+ }) => Promise<ApiCommit>;
2075
+ type Git_GetCompareCommits = (params: {
2076
+ repo: string;
2077
+ base_head: string;
2078
+ }) => Promise<ApiCompareResponse>;
2079
+ type Git_GetContent = (params: {
2080
+ repo: string;
2081
+ file_path: string;
2082
+ ref?: string;
2083
+ }) => Promise<ApiContent>;
2084
+ type Git_ListDeferredCommits = (params: {
2085
+ repo: string;
2086
+ cs: string;
2087
+ }) => Promise<WebDeferredCommit[]>;
2088
+ type Git_GetHead = (params: {
2089
+ repo: string;
2090
+ }) => Promise<OpenapiHeadRef>;
2091
+ type Git_DeleteTagAnnotation = (params: {
2092
+ repo: string;
2093
+ tag_with_key: string;
2094
+ }) => Promise<any>;
2095
+ type Git_GetTagAnnotations = (params: {
2096
+ repo: string;
2097
+ tag: string;
2098
+ }) => Promise<WebTagAnnotation[]>;
2099
+ type Git_PutTagAnnotations = (params: {
2100
+ repo: string;
2101
+ tag: string;
2102
+ put_tag_annotations_form: OpenapiPutTagAnnotationsForm;
2103
+ }) => Promise<any>;
2104
+ type Git_ListTags = (params: {
2105
+ repo: string;
2106
+ page?: number;
2107
+ page_size?: number;
2108
+ }) => Promise<ApiTag[]>;
2109
+ type Git_CreateTag = (params: {
2110
+ repo: string;
2111
+ post_tag_form: ApiPostTagFrom;
2112
+ }) => Promise<any>;
2113
+ type Git_DeleteTag = (params: {
2114
+ repo: string;
2115
+ tag: string;
2116
+ }) => Promise<any>;
2117
+ type Git_GetTag = (params: {
2118
+ repo: string;
2119
+ tag: string;
2120
+ }) => Promise<ApiTag>;
2121
+ type Assets_GetImgs = (params: {
2122
+ repo: string;
2123
+ userIdKey: string;
2124
+ fileName: string;
2125
+ }) => Promise<any>;
2126
+ type Assets_PutImgs = (params: {
2127
+ repo: string;
2128
+ userIdKey: string;
2129
+ fileName: string;
2130
+ token: string;
2131
+ }) => Promise<any>;
2132
+ type Collaborators_ListInheritMembersOfRepo = (params: {
2133
+ repo: string;
2134
+ search?: string;
2135
+ role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
2136
+ page?: number;
2137
+ page_size?: number;
2138
+ }) => Promise<DtoListInheritMembers[]>;
2139
+ type Issues_ListIssues = (params: {
2140
+ repo: string;
2141
+ page?: number;
2142
+ page_size?: number;
2143
+ state?: string;
2144
+ keyword?: string;
2145
+ priority?: string;
2146
+ labels?: string;
2147
+ authors?: string;
2148
+ assignees?: string;
2149
+ updated_time_begin?: string;
2150
+ updated_time_end?: string;
2151
+ close_time_begin?: string;
2152
+ close_time_end?: string;
2153
+ order_by?: string;
2154
+ }) => Promise<ApiIssue[]>;
2155
+ type Issues_CreateIssue = (params: {
2156
+ repo: string;
2157
+ post_issue_form: ApiPostIssueForm;
2158
+ }) => Promise<any>;
2159
+ type Issues_GetIssue = (params: {
2160
+ repo: string;
2161
+ number: number;
2162
+ }) => Promise<ApiIssueDetail>;
2163
+ type Issues_UpdateIssue = (params: {
2164
+ repo: string;
2165
+ number: number;
2166
+ patch_issue_form: ApiPatchIssueForm;
2167
+ }) => Promise<ApiIssueDetail>;
2168
+ type Issues_DeleteIssueAssignees = (params: {
2169
+ repo: string;
2170
+ number: string;
2171
+ delete_issue_assignees_form: ApiDeleteIssueAssigneesForm;
2172
+ }) => Promise<ApiIssueDetail>;
2173
+ type Issues_ListIssueAssignees = (params: {
2174
+ repo: string;
2175
+ number: string;
2176
+ }) => Promise<GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[]>;
2177
+ type Issues_PatchIssueAssignees = (params: {
2178
+ repo: string;
2179
+ number: string;
2180
+ patch_issue_assignees_form: ApiPatchIssueAssigneesForm;
2181
+ }) => Promise<ApiIssueDetail>;
2182
+ type Issues_PostIssueAssignees = (params: {
2183
+ repo: string;
2184
+ number: string;
2185
+ post_issue_assignees_form: ApiPostIssueAssigneesForm;
2186
+ }) => Promise<any>;
2187
+ type Issues_CanUserBeAssignedToIssue = (params: {
2188
+ repo: string;
2189
+ number: string;
2190
+ assignee: string;
2191
+ }) => Promise<any>;
2192
+ type Issues_ListIssueComments = (params: {
2193
+ repo: string;
2194
+ number: number;
2195
+ page?: number;
2196
+ page_size?: number;
2197
+ }) => Promise<ApiIssueComment[]>;
2198
+ type Issues_PostIssueComment = (params: {
2199
+ repo: string;
2200
+ number: number;
2201
+ post_issue_comment_form: ApiPostIssueCommentForm;
2202
+ }) => Promise<any>;
2203
+ type Issues_GetIssueComment = (params: {
2204
+ repo: string;
2205
+ number: string;
2206
+ comment_id: string;
2207
+ }) => Promise<ApiIssueComment>;
2208
+ type Issues_PatchIssueComment = (params: {
2209
+ repo: string;
2210
+ number: number;
2211
+ comment_id: number;
2212
+ patch_issue_comment_form: ApiPatchIssueCommentForm;
2213
+ }) => Promise<ApiIssueComment>;
2214
+ type Issues_DeleteIssueLabels = (params: {
2215
+ repo: string;
2216
+ number: number;
2217
+ }) => Promise<any>;
2218
+ type Issues_ListIssueLabels = (params: {
2219
+ repo: string;
2220
+ number: number;
2221
+ page?: number;
2222
+ page_size?: number;
2223
+ }) => Promise<ApiLabel[]>;
2224
+ type Issues_PostIssueLabels = (params: {
2225
+ repo: string;
2226
+ number: number;
2227
+ post_issue_labels_form: ApiPostIssueLabelsForm;
2228
+ }) => Promise<ApiLabel>;
2229
+ type Issues_PutIssueLabels = (params: {
2230
+ repo: string;
2231
+ number: number;
2232
+ put_issue_labels_form: ApiPutIssueLabelsForm;
2233
+ }) => Promise<ApiLabel>;
2234
+ type Issues_DeleteIssueLabel = (params: {
2235
+ repo: string;
2236
+ number: number;
2237
+ name: string;
2238
+ }) => Promise<ApiLabel>;
2239
+ type RepoLabels_ListLabels = (params: {
2240
+ repo: string;
2241
+ page?: number;
2242
+ page_size?: number;
2243
+ keyword?: string;
2244
+ }) => Promise<ApiLabel[]>;
2245
+ type RepoLabels_PostLabel = (params: {
2246
+ repo: string;
2247
+ post_label_form: ApiPostLabelForm;
2248
+ }) => Promise<any>;
2249
+ type RepoLabels_DeleteLabel = (params: {
2250
+ repo: string;
2251
+ name: string;
2252
+ }) => Promise<any>;
2253
+ type RepoLabels_PatchLabel = (params: {
2254
+ repo: string;
2255
+ name: string;
2256
+ patch_label_form: ApiPatchLabelForm;
2257
+ }) => Promise<ApiLabel>;
2258
+ type Git_GetPresignedLFSDownloadLink = (params: {
2259
+ repo: string;
2260
+ oid: string;
2261
+ name: string;
2262
+ }) => Promise<any>;
2263
+ type Collaborators_ListAllMembers = (params: {
2264
+ repo: string;
2265
+ page?: number;
2266
+ page_size?: number;
2267
+ role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
2268
+ search?: string;
2269
+ names?: string;
2270
+ order_by?: "created_at" | "stars" | "follower";
2271
+ desc?: boolean;
2272
+ }) => Promise<DtoUsersWithAccessLevelInSlug[]>;
2273
+ type Collaborators_ListMembersOfRepo = (params: {
2274
+ repo: string;
2275
+ page?: number;
2276
+ page_size?: number;
2277
+ role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
2278
+ search?: string;
2279
+ }) => Promise<DtoUsersWithAccessLevelInSlug[]>;
2280
+ type Contributors_GetMemberAccessLevelOfRepo = (params: {
2281
+ repo: string;
2282
+ include_inherit?: boolean;
2283
+ }) => Promise<DtoMemberAccessLevelInSlugUnion>;
2284
+ type Contributors_ListMemberAccessLevelOfRepo = (params: {
2285
+ repo: string;
2286
+ username: string;
2287
+ }) => Promise<DtoMemberAccessLevel[]>;
2288
+ type Collaborators_DeleteMembersOfRepo = (params: {
2289
+ repo: string;
2290
+ username: string;
2291
+ }) => Promise<any>;
2292
+ type Collaborators_AddMembersOfRepo = (params: {
2293
+ repo: string;
2294
+ username: string;
2295
+ request: DtoUpdateMembersRequest;
2296
+ }) => Promise<any>;
2297
+ type Collaborators_UpdateMembersOfRepo = (params: {
2298
+ repo: string;
2299
+ username: string;
2300
+ request: DtoUpdateMembersRequest;
2301
+ }) => Promise<any>;
2302
+ type Collaborators_ListOutsideCollaborators = (params: {
2303
+ repo: string;
2304
+ page?: number;
2305
+ page_size?: number;
2306
+ role?: "Guest" | "Reporter" | "Developer" | "Master";
2307
+ search?: string;
2308
+ }) => Promise<DtoOutsideCollaboratorInRepo[]>;
2309
+ type Collaborators_DeleteOutsideCollaborators = (params: {
2310
+ repo: string;
2311
+ username: string;
2312
+ }) => Promise<any>;
2313
+ type Collaborators_UpdateOutsideCollaborators = (params: {
2314
+ repo: string;
2315
+ username: string;
2316
+ role: "Guest" | "Reporter" | "Developer";
2317
+ }) => Promise<any>;
2318
+ type Pulls_ListPullsByNumbers = (params: {
2319
+ repo: string;
2320
+ n: any[];
2321
+ }) => Promise<ApiPullRequestInfo[]>;
2322
+ type Pulls_ListPulls = (params: {
2323
+ repo: string;
2324
+ page?: number;
2325
+ page_size?: number;
2326
+ state?: string;
2327
+ authors?: string;
2328
+ reviewers?: string;
2329
+ assignees?: string;
2330
+ base_ref?: string;
2331
+ }) => Promise<ApiPullRequest[]>;
2332
+ type Pulls_PostPull = (params: {
2333
+ repo: string;
2334
+ post_pull_form: ApiPullCreationForm;
2335
+ }) => Promise<any>;
2336
+ type Pulls_GetPull = (params: {
2337
+ repo: string;
2338
+ number: string;
2339
+ }) => Promise<ApiPull>;
2340
+ type Pulls_PatchPull = (params: {
2341
+ repo: string;
2342
+ number: string;
2343
+ update_pull_request_form: ApiPatchPullRequest;
2344
+ }) => Promise<ApiPull>;
2345
+ type Pulls_DeletePullAssignees = (params: {
2346
+ repo: string;
2347
+ number: string;
2348
+ delete_pull_assignees_form: ApiDeletePullAssigneesForm;
2349
+ }) => Promise<ApiPull>;
2350
+ type Pulls_ListPullAssignees = (params: {
2351
+ repo: string;
2352
+ number: string;
2353
+ }) => Promise<GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo[]>;
2354
+ type Pulls_PostPullAssignees = (params: {
2355
+ repo: string;
2356
+ number: string;
2357
+ post_pull_assignees_form: ApiPostPullAssigneesForm;
2358
+ }) => Promise<any>;
2359
+ type Pulls_CanUserBeAssignedToPull = (params: {
2360
+ repo: string;
2361
+ number: string;
2362
+ assignee: string;
2363
+ }) => Promise<any>;
2364
+ type Pulls_ListPullComments = (params: {
2365
+ repo: string;
2366
+ number: string;
2367
+ page?: number;
2368
+ page_size?: number;
2369
+ }) => Promise<ApiPullRequestComment[]>;
2370
+ type Pulls_PostPullComment = (params: {
2371
+ repo: string;
2372
+ number: string;
2373
+ post_pull_comment_form: ApiPullCommentCreationForm;
2374
+ }) => Promise<any>;
2375
+ type Pulls_DeletePullLabels = (params: {
2376
+ repo: string;
2377
+ number: string;
2378
+ }) => Promise<any>;
2379
+ type Pulls_ListPullLabels = (params: {
2380
+ repo: string;
2381
+ number: string;
2382
+ page?: number;
2383
+ page_size?: number;
2384
+ }) => Promise<ApiLabel[]>;
2385
+ type Pulls_PostPullLabels = (params: {
2386
+ repo: string;
2387
+ number: string;
2388
+ post_pull_labels_form: ApiPostPullLabelsForm;
2389
+ }) => Promise<ApiLabel>;
2390
+ type Pulls_PutPullLabels = (params: {
2391
+ repo: string;
2392
+ number: string;
2393
+ put_pull_labels_form: ApiPutPullLabelsForm;
2394
+ }) => Promise<ApiLabel>;
2395
+ type Pulls_DeletePullLabel = (params: {
2396
+ repo: string;
2397
+ number: string;
2398
+ name: string;
2399
+ }) => Promise<ApiLabel>;
2400
+ type Pulls_MergePull = (params: {
2401
+ repo: string;
2402
+ number: string;
2403
+ merge_pull_request_form: ApiMergePullRequest;
2404
+ }) => Promise<ApiMergePullResponse>;
2405
+ type Pulls_RevertPullRequest = (params: {
2406
+ repo: string;
2407
+ number: number;
2408
+ revert_pull_request_form: WebapiRevertPullRequestForm;
2409
+ }) => Promise<any>;
2410
+ type Pulls_PostPullReview = (params: {
2411
+ repo: string;
2412
+ number: string;
2413
+ post_pull_review_form: ApiPullReviewCreationForm;
2414
+ }) => Promise<any>;
2415
+ type Releases_ListReleases = (params: {
2416
+ repo: string;
2417
+ page?: number;
2418
+ page_size?: number;
2419
+ }) => Promise<ApiRelease[]>;
2420
+ type Releases_PostRelease = (params: {
2421
+ repo: string;
2422
+ create_release_form: OpenapiPostReleaseForm;
2423
+ }) => Promise<any>;
2424
+ type Assets_GetReleasesAsset = (params: {
2425
+ repo: string;
2426
+ fileName: string;
2427
+ share?: boolean;
2428
+ }) => Promise<any>;
2429
+ type Releases_GetLatestRelease = (params: {
2430
+ repo: string;
2431
+ }) => Promise<ApiRelease>;
2432
+ type Assets_GetLatestReleasesAsset = (params: {
2433
+ repo: string;
2434
+ fileName: string;
2435
+ }) => Promise<any>;
2436
+ type Releases_GetReleaseByTag = (params: {
2437
+ repo: string;
2438
+ tag: string;
2439
+ }) => Promise<ApiRelease>;
2440
+ type Releases_DeleteRelease = (params: {
2441
+ repo: string;
2442
+ release_id: string;
2443
+ }) => Promise<any>;
2444
+ type Releases_GetReleaseByID = (params: {
2445
+ repo: string;
2446
+ release_id: string;
2447
+ }) => Promise<ApiRelease>;
2448
+ type Releases_PatchRelease = (params: {
2449
+ repo: string;
2450
+ release_id: string;
2451
+ patch_release_form: OpenapiPatchReleaseForm;
2452
+ }) => Promise<any>;
2453
+ type Releases_PostReleaseAssetUploadConfirmation = (params: {
2454
+ repo: string;
2455
+ release_id: string;
2456
+ token: string;
2457
+ asset_path: string;
2458
+ }) => Promise<any>;
2459
+ type Releases_PostReleaseAssetUploadURL = (params: {
2460
+ repo: string;
2461
+ release_id: string;
2462
+ create_release_asset_upload_url_form: OpenapiPostReleaseAssetUploadUrlForm;
2463
+ }) => Promise<any>;
2464
+ type Releases_DeleteReleaseAsset = (params: {
2465
+ repo: string;
2466
+ release_id: string;
2467
+ asset_id: string;
2468
+ }) => Promise<any>;
2469
+ type Releases_GetReleaseAsset = (params: {
2470
+ repo: string;
2471
+ release_id: string;
2472
+ asset_id: string;
2473
+ }) => Promise<ApiReleaseAsset>;
2474
+ type Repositories_ArchiveRepo = (params: {
2475
+ repo: string;
2476
+ }) => Promise<any>;
2477
+ type GitSettings_ListBranchProtections = (params: {
2478
+ repo: string;
2479
+ }) => Promise<ApiBranchProtection[]>;
2480
+ type GitSettings_PostBranchProtection = (params: {
2481
+ repo: string;
2482
+ branch_protection_form: ApiBranchProtection;
2483
+ }) => Promise<any>;
2484
+ type GitSettings_DeleteBranchProtection = (params: {
2485
+ repo: string;
2486
+ id: string;
2487
+ }) => Promise<any>;
2488
+ type GitSettings_GetBranchProtection = (params: {
2489
+ repo: string;
2490
+ id: string;
2491
+ }) => Promise<ApiBranchProtection>;
2492
+ type GitSettings_PatchBranchProtection = (params: {
2493
+ repo: string;
2494
+ id: string;
2495
+ branch_protection_form: ApiBranchProtection;
2496
+ }) => Promise<any>;
2497
+ type GitSettings_GetPipelineSettings = (params: {
2498
+ repo: string;
2499
+ }) => Promise<ApiPipelineSettings>;
2500
+ type GitSettings_PutPipelineSettings = (params: {
2501
+ repo: string;
2502
+ pipeline_form: WebPipelineSettings;
2503
+ }) => Promise<any>;
2504
+ type GitSettings_GetPullRequestSettings = (params: {
2505
+ repo: string;
2506
+ }) => Promise<ApiPullRequestSettings>;
2507
+ type GitSettings_PutPullRequestSettings = (params: {
2508
+ repo: string;
2509
+ pull_request_form: ApiPullRequestSettings;
2510
+ }) => Promise<any>;
2511
+ type GitSettings_GetPushLimitSettings = (params: {
2512
+ repo: string;
2513
+ }) => Promise<ApiPushLimitSettings>;
2514
+ type GitSettings_PutPushLimitSettings = (params: {
2515
+ repo: string;
2516
+ push_limit_form: ApiPushLimitSettings;
2517
+ }) => Promise<any>;
2518
+ type Repositories_UnArchiveRepo = (params: {
2519
+ repo: string;
2520
+ }) => Promise<any>;
2521
+ type Starring_ListStarUsers = (params: {
2522
+ repo: string;
2523
+ filter_type: "all" | "followed";
2524
+ page: number;
2525
+ page_size: number;
2526
+ }) => Promise<DtoRepoStarUsers>;
2527
+ type Collaborators_TopContributors = (params: {
2528
+ repo: string;
2529
+ top?: number;
2530
+ }) => Promise<DtoUsersResult[]>;
2531
+ type Repositories_TransferRepo = (params: {
2532
+ repo: string;
2533
+ request: DtoTransferSlugReq;
2534
+ }) => Promise<any>;
2535
+ type Assets_UploadFiles = (params: {
2536
+ repo: string;
2537
+ request: DtoUploadRequestParams;
2538
+ }) => Promise<DtoUploadAssetsResponse>;
2539
+ type Assets_UploadImgs = (params: {
2540
+ repo: string;
2541
+ request: DtoUploadRequestParams;
2542
+ }) => Promise<DtoUploadAssetsResponse>;
2543
+ type Assets_UploadReleases = (params: {
2544
+ repo: string;
2545
+ tagName: string;
2546
+ request: DtoUploadRequestParams;
2547
+ }) => Promise<DtoUploadAssetsResponse>;
2548
+ type Workspace_GetWorkspaceDetail = (params: {
2549
+ repo: string;
2550
+ sn: string;
2551
+ }) => Promise<DtoWorkspaceDetailResult>;
2552
+ type Artifactory_ListPackages = (params: {
2553
+ slug: string;
2554
+ type: "all" | "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2555
+ page?: number;
2556
+ page_size?: number;
2557
+ ordering?: "pull_count" | "last_push_at" | "name_ascend" | "name_descend";
2558
+ name?: string;
2559
+ }) => Promise<DtoPackage[]>;
2560
+ type Artifactory_HeadPackages = (params: {
2561
+ slug: string;
2562
+ type: "all" | "docker" | "helm";
2563
+ page?: number;
2564
+ page_size?: number;
2565
+ ordering?: "pull_count" | "last_push_at" | "name_ascend" | "name_descend";
2566
+ name?: string;
2567
+ }) => Promise<any>;
2568
+ type Artifactory_GetPackage = (params: {
2569
+ slug: string;
2570
+ type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2571
+ name: string;
2572
+ }) => Promise<DtoPackageDetail>;
2573
+ type Artifactory_DeletePackageTag = (params: {
2574
+ slug: string;
2575
+ type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2576
+ name: string;
2577
+ tag: string;
2578
+ }) => Promise<any>;
2579
+ type Artifactory_GetPackageTagDetail = (params: {
2580
+ slug: string;
2581
+ type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2582
+ name: string;
2583
+ tag: string;
2584
+ sha256?: string;
2585
+ }) => Promise<DtoTagDetail>;
2586
+ type Artifactory_ListPackageTags = (params: {
2587
+ slug: string;
2588
+ type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2589
+ pkgname: string;
2590
+ page?: number;
2591
+ page_size?: number;
2592
+ ordering?: "pull_count" | "last_push_at";
2593
+ name?: string;
2594
+ }) => Promise<DtoTag>;
2595
+ type Artifactory_GetRegistryQuota = (params: {
2596
+ slug: string;
2597
+ type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2598
+ }) => Promise<DtoRegistryLevelQuotaRsp>;
2599
+ type Artifactory_GetRegistryQuotas = (params: {
2600
+ slug: string;
2601
+ type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2602
+ page?: number;
2603
+ page_size?: number;
2604
+ ordering?: "used_ascend" | "used_descend";
2605
+ }) => Promise<DtoQuotaRsp[]>;
2606
+ type Artifactory_DownloadRegistryQuotas = (params: {
2607
+ slug: string;
2608
+ type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2609
+ page?: number;
2610
+ page_size?: number;
2611
+ ordering?: "used_ascend" | "used_descend";
2612
+ }) => Promise<DtoQuotaRsp[]>;
2613
+ interface Client {
2614
+ groups: {
2615
+ /***
2616
+ * 创建新组织。Create new organization.
2617
+ *
2618
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2619
+ * group-manage:rw
2620
+ *
2621
+ * /groups
2622
+ */
2623
+ post: Organizations_CreateOrganization;
2624
+ };
2625
+ user: {
2626
+ /***
2627
+ * 获取指定用户的详情信息。Get detailed information for a specified user.
2628
+ *
2629
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2630
+ * account-profile:r
2631
+ *
2632
+ * /user
2633
+ */
2634
+ get: Users_GetUserInfo;
2635
+
2636
+ /***
2637
+ * 更新指定用户的详情信息。Updates the specified user's profile information.
2638
+ *
2639
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2640
+ * account-profile:rw
2641
+ *
2642
+ * /user
2643
+ */
2644
+ post: Users_UpdateUserInfo;
2645
+ autocompleteSource: {
2646
+ /***
2647
+ * 查询当前用户用户拥有指定权限的所有资源列表。List resources that the current user has specified permissions for.
2648
+ *
2649
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2650
+ * account-engage:r
2651
+ *
2652
+ * /user/autocomplete_source
2653
+ */
2654
+ list: Users_AutoCompleteSource;
2655
+ };
2656
+ groups: {
2657
+ /***
2658
+ * 获取当前用户拥有权限的顶层组织列表。Get top-level organizations list that the current user has access to.
2659
+ *
2660
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2661
+ * account-engage:r
2662
+ *
2663
+ * /user/groups
2664
+ */
2665
+ list: Organizations_ListTopGroups;
2666
+
2667
+ /***
2668
+ * 查询当前用户在指定组织下拥有指定权限的子组织列表。Get the list of sub-organizations that the current user has access to in the specified organization.
2669
+ *
2670
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2671
+ * account-engage:r
2672
+ *
2673
+ * /user/groups/{group}
2674
+ */
2675
+ listByGroup: Organizations_ListGroups;
2676
+ };
2677
+ repos: {
2678
+ /***
2679
+ * 获取当前用户拥有指定权限及其以上权限的仓库。List repositories owned by the current user with the specified permissions or higher.
2680
+ *
2681
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2682
+ * account-engage:r
2683
+ *
2684
+ * /user/repos
2685
+ */
2686
+ list: Repositories_GetRepos;
2687
+ };
2688
+ staredRepos: {
2689
+ /***
2690
+ * 获取当前用户 star 的仓库列表。List all stared repositories.
2691
+ *
2692
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2693
+ * account-engage:r
2694
+ *
2695
+ * /user/stared-repos
2696
+ */
2697
+ list: Repositories_GetUserAllStaredRepos;
2698
+ };
2699
+ };
2700
+ users: {
2701
+ /***
2702
+ * 获取指定用户的详情信息。Get detailed information for a specified user.
2703
+ *
2704
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2705
+ * account-profile:r
2706
+ *
2707
+ * /users/{username}
2708
+ */
2709
+ get: Users_GetUserInfoByName;
2710
+ activities: {
2711
+ /***
2712
+ * 获取个人动态活跃详情汇总
2713
+ *
2714
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2715
+ * account-engage:r
2716
+ *
2717
+ * /users/{username}/activities
2718
+ */
2719
+ get: Activities_GetUserActivitiesByDate;
2720
+ };
2721
+ avatar: {
2722
+ /***
2723
+ * 获取指定用户的用户头像。Get the user's avatar.
2724
+ *
2725
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2726
+ * account-profile:r
2727
+ *
2728
+ * /users/{username}/avatar/{size}
2729
+ */
2730
+ get: Assets_GetUserAvatar;
2731
+ };
2732
+ followers: {
2733
+ /***
2734
+ * 获取指定用户的粉丝列表。Get the followers list of specified user.
2735
+ *
2736
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2737
+ * account-engage:r
2738
+ *
2739
+ * /users/{username}/followers
2740
+ */
2741
+ list: Followers_GetFollowersByUserID;
2742
+ };
2743
+ following: {
2744
+ /***
2745
+ * 获取指定用户的关注人列表。Get the list of users that the specified user is following.
2746
+ *
2747
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2748
+ * account-engage:r
2749
+ *
2750
+ * /users/{username}/following
2751
+ */
2752
+ list: Followers_GetFollowingByUserID;
2753
+ };
2754
+ groups: {
2755
+ /***
2756
+ * 获取指定用户拥有权限的顶层组织列表。 Get a list of top-level organizations that the specified user has permissions to access.
2757
+ *
2758
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2759
+ * account-engage:r
2760
+ *
2761
+ * /users/{username}/groups
2762
+ */
2763
+ get: Organizations_GetGroupsByUserID;
2764
+ };
2765
+ pinnedRepos: {
2766
+ /***
2767
+ * 获取指定用户的用户仓库墙。 Get a list of repositories that the specified user has pinned.
2768
+ *
2769
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2770
+ * account-engage:r
2771
+ *
2772
+ * /users/{username}/pinned-repos
2773
+ */
2774
+ list: Repositories_GetPinnedRepoByID;
2775
+ };
2776
+ repoActivities: {
2777
+ /***
2778
+ * 个人仓库动态详情列表
2779
+ *
2780
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2781
+ * account-engage:r
2782
+ *
2783
+ * /users/{username}/repo-activities/{activityType}
2784
+ */
2785
+ list: Activities_GetUserRepoActivityDetails;
2786
+ };
2787
+ repos: {
2788
+ /***
2789
+ * 获取指定用户有指定以上权限并且客人态可见的仓库。List repositories where the specified user has the specified permission level or higher and are visible to guests.
2790
+ *
2791
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2792
+ * account-engage:r
2793
+ *
2794
+ * /users/{username}/repos
2795
+ */
2796
+ list: Repositories_GetReposByUserName;
2797
+ };
2798
+ staredRepos: {
2799
+ /***
2800
+ * 获取指定用户的 star 仓库列表。Get the list of repositories starred by the specified user.
2801
+ *
2802
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2803
+ * account-engage:r
2804
+ *
2805
+ * /users/{username}/stared-repos
2806
+ */
2807
+ list: Starring_GetUserStaredRepos;
2808
+ };
2809
+ };
2810
+ workspace: {
2811
+ delete: {
2812
+ /***
2813
+ * 删除我的云原生开发环境。Delete my workspace.
2814
+ *
2815
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2816
+ * account-engage:rw
2817
+ *
2818
+ * /workspace/delete
2819
+ */
2820
+ post: Workspace_DeleteWorkspace;
2821
+ };
2822
+ list: {
2823
+ /***
2824
+ * 获取我的云原生开发环境列表。List my workspaces.
2825
+ *
2826
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2827
+ * account-engage:r
2828
+ *
2829
+ * /workspace/list
2830
+ */
2831
+ get: Workspace_ListWorkspaces;
2832
+ };
2833
+ };
2834
+ group: {
2835
+ /***
2836
+ * 删除指定组织。Delete the specified organization.
2837
+ *
2838
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2839
+ * group-delete:rw
2840
+ *
2841
+ * /{group}
2842
+ */
2843
+ delete: Organizations_DeleteOrganization;
2844
+
2845
+ /***
2846
+ * 获取指定组织信息。Get information for the specified organization.
2847
+ *
2848
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2849
+ * group-resource:r
2850
+ *
2851
+ * /{group}
2852
+ */
2853
+ get: Organizations_GetGroup;
2854
+
2855
+ /***
2856
+ * 更新组织信息, 可更新的内容为: 组织描述, 组织展示名称, 组织网站, 组织联系邮箱。Updates organization information including: description, display name, website URL and contact email.
2857
+ *
2858
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2859
+ * group-manage:rw
2860
+ *
2861
+ * /{group}
2862
+ */
2863
+ put: Organizations_UpdateOrganization;
2864
+ avatar: {
2865
+ /***
2866
+ * 更新组织头像 URL 地址。Updates the organization avatar URL.
2867
+ *
2868
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2869
+ * group-manage:rw
2870
+ *
2871
+ * /{group}/-/avatar
2872
+ */
2873
+ put: Organizations_UpdateGroupAvatar;
2874
+ };
2875
+ inheritMembers: {
2876
+ /***
2877
+ * 获取指定组织或仓库内的继承成员。List inherited members within specified organization or repository。
2878
+ *
2879
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2880
+ * group-manage:r
2881
+ *
2882
+ * /{group}/-/inherit-members
2883
+ */
2884
+ list: Collaborators_ListInheritMembersOfGroup;
2885
+ };
2886
+ logos: {
2887
+ /***
2888
+ * 确认上传的logo。Confirms the uploaded logo.
2889
+ *
2890
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2891
+ * group-manage:rw
2892
+ *
2893
+ * /{group}/-/logos
2894
+ */
2895
+ put: Assets_PutLogos;
2896
+
2897
+ /***
2898
+ * 发起一个获取 logo 的请求,返回内容或者 302 到某个地址。Post a request to fetch a logo and returns the content directly or a 302 redirect to the logo URL.
2899
+ *
2900
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2901
+ * group-resource:r
2902
+ *
2903
+ * /{group}/-/logos/{size}
2904
+ */
2905
+ get: Assets_GetLogos;
2906
+ };
2907
+ members: {
2908
+ /***
2909
+ * 获取指定组织或仓库内的所有直接成员。List all direct members within specified organization or repository.
2910
+ *
2911
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2912
+ * group-manage:r
2913
+ *
2914
+ * /{group}/-/members
2915
+ */
2916
+ list: Collaborators_ListMembersOfGroup;
2917
+ accessLevel: {
2918
+ /***
2919
+ * 获取指定组织或仓库内, 访问成员在当前层级内的权限信息。Get permission information for accessing members at current level.
2920
+ *
2921
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2922
+ * group-manage:r
2923
+ *
2924
+ * /{group}/-/members/access-level
2925
+ */
2926
+ get: Contributors_GetMemberAccessLevelOfGroup;
2927
+
2928
+ /***
2929
+ * 获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示, 包含上层组织的权限继承信息。Get specified member's permissions with organizational hierarchy.
2930
+ *
2931
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2932
+ * group-manage:r
2933
+ *
2934
+ * /{group}/-/members/{username}/access-level
2935
+ */
2936
+ list: Contributors_ListMemberAccessLevelOfGroup;
2937
+ };
2938
+
2939
+ /***
2940
+ * 删除指定组织或仓库的直接成员。Remove direct members from specified organization/repository.
2941
+ *
2942
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2943
+ * group-manage:rw
2944
+ *
2945
+ * /{group}/-/members/{username}
2946
+ */
2947
+ delete: Collaborators_DeleteMembersOfGroup;
2948
+
2949
+ /***
2950
+ * 添加成员。Add members.
2951
+ *
2952
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2953
+ * group-manage:rw
2954
+ *
2955
+ * /{group}/-/members/{username}
2956
+ */
2957
+ post: Collaborators_AddMembersOfGroup;
2958
+
2959
+ /***
2960
+ * 更新指定组织或仓库内的直接成员权限信息。Update permission information for direct members in specified organization/repository.
2961
+ *
2962
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2963
+ * group-manage:rw
2964
+ *
2965
+ * /{group}/-/members/{username}
2966
+ */
2967
+ put: Collaborators_UpdateMembersOfGroup;
2968
+ };
2969
+ pinnedRepos: {
2970
+ /***
2971
+ * 获取指定组织的仓库墙列表。List the pinned repositories of a group.
2972
+ *
2973
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2974
+ * group-manage:r
2975
+ *
2976
+ * /{group}/-/pinned-repos
2977
+ */
2978
+ list: Repositories_GetPinnedRepoByGroup;
2979
+
2980
+ /***
2981
+ * 更新指定组织仓库墙。Update the pinned repositories of a group.
2982
+ *
2983
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2984
+ * group-manage:rw
2985
+ *
2986
+ * /{group}/-/pinned-repos
2987
+ */
2988
+ put: Repositories_SetPinnedRepoByGroup;
2989
+ };
2990
+ repos: {
2991
+ /***
2992
+ * 查询组织下访问用户有权限查看到仓库。List the repositories that the user has access to.
2993
+ *
2994
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2995
+ * group-resource:r
2996
+ *
2997
+ * /{group}/-/repos
2998
+ */
2999
+ list: Repositories_GetGroupSubRepos;
3000
+
3001
+ /***
3002
+ * 创建仓库。Create repositories.
3003
+ *
3004
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3005
+ * group-resource:rw
3006
+ *
3007
+ * /{group}/-/repos
3008
+ */
3009
+ post: Repositories_CreateRepo;
3010
+ };
3011
+ settings: {
3012
+ /***
3013
+ * 获取指定组织的配置详情。Get the configuration details for the specified organization.
3014
+ *
3015
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3016
+ * group-manage:r
3017
+ *
3018
+ * /{group}/-/settings
3019
+ */
3020
+ get: Organizations_GetGroupSetting;
3021
+
3022
+ /***
3023
+ * 更新指定组织的配置。Updates the configuration for the specified organization.
3024
+ *
3025
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3026
+ * group-manage:rw
3027
+ *
3028
+ * /{group}/-/settings
3029
+ */
3030
+ put: Organizations_UpdateGroupSetting;
3031
+ };
3032
+ subGroups: {
3033
+ /***
3034
+ * 获取指定组织下的子组织列表。Get the list of sub-organizations under the specified organization.
3035
+ *
3036
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3037
+ * group-resource:r
3038
+ *
3039
+ * /{group}/-/sub-groups
3040
+ */
3041
+ list: Organizations_ListSubgroups;
3042
+ };
3043
+ transfer: {
3044
+ /***
3045
+ * 转移组织
3046
+ *
3047
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3048
+ * group-manage:rw
3049
+ *
3050
+ * /{group}/-/transfer
3051
+ */
3052
+ post: Organizations_TransferGroup;
3053
+ };
3054
+ upload: {
3055
+ logos: {
3056
+ /***
3057
+ * 发起一个上传 logo 的请求,返回上传 cos 的 url 和 form 内容。Post a request to upload a logo.
3058
+ *
3059
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3060
+ * group-manage:rw
3061
+ *
3062
+ * /{group}/-/upload/logos
3063
+ */
3064
+ post: Assets_UploadLogos;
3065
+ };
3066
+ };
3067
+ };
3068
+ mission: {
3069
+ /***
3070
+ * 删除指定任务集。Delete the specified mission.
3071
+ *
3072
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3073
+ * mission-delete:rw
3074
+ *
3075
+ * /{mission}
3076
+ */
3077
+ delete: Missions_DeleteMission;
3078
+ members: {
3079
+ /***
3080
+ * 添加成员。Add members.
3081
+ *
3082
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3083
+ * mission-manage:rw
3084
+ *
3085
+ * /{mission}/-/members/{username}
3086
+ */
3087
+ post: Collaborators_AddMembersOfMission;
3088
+ };
3089
+ };
3090
+ registry: {
3091
+ /***
3092
+ * 删除制品仓库。Delete the artifact repository.
3093
+ *
3094
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3095
+ * registry-delete:rw
3096
+ *
3097
+ * /{registry}
3098
+ */
3099
+ delete: Artifactory_DeleteRegistry;
3100
+ members: {
3101
+ /***
3102
+ * 添加成员。Add members.
3103
+ *
3104
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3105
+ * registry-manage:rw
3106
+ *
3107
+ * /{registry}/-/members/{username}
3108
+ */
3109
+ post: Collaborators_AddMembersOfRegistry;
3110
+ };
3111
+ };
3112
+ repo: {
3113
+ /***
3114
+ * 删除指定仓库。Delete the specified repository.
3115
+ *
3116
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3117
+ * repo-delete:rw
3118
+ *
3119
+ * /{repo}
3120
+ */
3121
+ delete: Repositories_DeleteRepo;
3122
+
3123
+ /***
3124
+ * 获取指定仓库信息。Get information for the specified repository.
3125
+ *
3126
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3127
+ * repo-basic-info:r
3128
+ *
3129
+ * /{repo}
3130
+ */
3131
+ get: Repositories_GetByID;
3132
+
3133
+ /***
3134
+ * 更新仓库信息, 可更新的内容为: 仓库简介, 仓库站点, 仓库主题, 开源许可证。updates repository details including description, website URL,topics and license type.
3135
+ *
3136
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3137
+ * repo-manage:rw
3138
+ *
3139
+ * /{repo}
3140
+ */
3141
+ patch: Repositories_UpdateRepo;
3142
+ build: {
3143
+ logs: {
3144
+ /***
3145
+ * 查询流水线构建列表。List pipeline builds.
3146
+ *
3147
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3148
+ * repo-cnb-trigger:r
3149
+ *
3150
+ * /{repo}/-/build/logs
3151
+ */
3152
+ get: Build_GetBuildLogs;
3153
+ };
3154
+ start: {
3155
+ /***
3156
+ * 开始一个构建。Start a build.
3157
+ *
3158
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3159
+ * repo-cnb-trigger:rw
3160
+ *
3161
+ * /{repo}/-/build/start
3162
+ */
3163
+ post: Build_StartBuild;
3164
+ };
3165
+ status: {
3166
+ /***
3167
+ * 查询流水线构建状态。Get pipeline build status.
3168
+ *
3169
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3170
+ * repo-cnb-trigger:r
3171
+ *
3172
+ * /{repo}/-/build/status/{sn}
3173
+ */
3174
+ get: Build_GetBuildStatus;
3175
+ };
3176
+ stop: {
3177
+ /***
3178
+ * 停止一个构建。 Stop a build.
3179
+ *
3180
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3181
+ * repo-cnb-trigger:rw
3182
+ *
3183
+ * /{repo}/-/build/stop/{sn}
3184
+ */
3185
+ post: Build_StopBuild;
3186
+ };
3187
+ };
3188
+ commitAssets: {
3189
+ download: {
3190
+ /***
3191
+ * 发起一个获取 commits 附件的请求,返回内容或者 302 到某个地址。Get a request to fetch a commit assets and returns the content directly or a 302 redirect to the assets URL.
3192
+ *
3193
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3194
+ * repo-contents:r
3195
+ *
3196
+ * /{repo}/-/commit-assets/download/{fileName}
3197
+ */
3198
+ get: Assets_GetCommitAssets;
3199
+ };
3200
+ };
3201
+ contributor: {
3202
+ trend: {
3203
+ /***
3204
+ * 查询仓库贡献者前 100 名的详细趋势数据。Query detailed trend data for top 100 contributors of the repository.
3205
+ *
3206
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3207
+ * repo-code:r
3208
+ *
3209
+ * /{repo}/-/contributor/trend
3210
+ */
3211
+ get: RepoContributor_GetRepoContributorTrend;
3212
+ };
3213
+ };
3214
+ files: {
3215
+ /***
3216
+ * 发起一个获取 files 的请求,返回内容或者 302 到某个地址。Initiate a request to retrieve files, returns content or 302 redirect.
3217
+ *
3218
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3219
+ * repo-contents:r
3220
+ *
3221
+ * /{repo}/-/files/{userIdKey}/{randomUUID}/{fileName}
3222
+ */
3223
+ get: Assets_GetFiles;
3224
+
3225
+ /***
3226
+ * 发起一个确认 files 的请求,上传的图片要调用此接口才能生效。Initiate a request to confirm files, uploaded images need to call this API to take effect.
3227
+ *
3228
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3229
+ * repo-contents:rw
3230
+ *
3231
+ * /{repo}/-/files/{userIdKey}/{randomUUID}/{fileName}
3232
+ */
3233
+ put: Assets_PutFiles;
3234
+ };
3235
+ forks: {
3236
+ /***
3237
+ * 获取指定仓库的 fork 列表。Get fork list for specified repository.
3238
+ *
3239
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3240
+ * repo-base-info:r
3241
+ *
3242
+ * /{repo}/-/forks
3243
+ */
3244
+ get: Repositories_ListForksRepos;
3245
+
3246
+ /***
3247
+ * fork 仓库。Fork a repository.
3248
+ *
3249
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3250
+ * group-resource:rw
3251
+ *
3252
+ * /{repo}/-/forks
3253
+ */
3254
+ post: Repositories_CreateAFork;
3255
+ };
3256
+ git: {
3257
+ archiveCommitChangedFiles: {
3258
+ /***
3259
+ * 打包下载 commit 变更文件。Download archive of changed files for a commit.
3260
+ *
3261
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3262
+ * repo-code:r
3263
+ *
3264
+ * /{repo}/-/git/archive-commit-changed-files/{sha1}
3265
+ */
3266
+ get: Git_GetArchiveCommitChangedFiles;
3267
+ };
3268
+ archiveCompareChangedFiles: {
3269
+ /***
3270
+ * 打包下载两次 ref 之间的变更文件。Download archive of changed files for a compare.
3271
+ *
3272
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3273
+ * repo-code:r
3274
+ *
3275
+ * /{repo}/-/git/archive-compare-changed-files/{base_head}
3276
+ */
3277
+ get: Git_GetArchiveCompareChangedFiles;
3278
+ };
3279
+ blobs: {
3280
+ /***
3281
+ * 创建一个 blob。Create a blob.
3282
+ *
3283
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3284
+ * repo-code:rw
3285
+ *
3286
+ * /{repo}/-/git/blobs
3287
+ */
3288
+ post: Git_CreateBlob;
3289
+ };
3290
+ branches: {
3291
+ /***
3292
+ * 查询分支列表。List branches.
3293
+ *
3294
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3295
+ * repo-code:r
3296
+ *
3297
+ * /{repo}/-/git/branches
3298
+ */
3299
+ list: Git_ListBranches;
3300
+
3301
+ /***
3302
+ * 创建新分支。Create a new branch based on a start point.
3303
+ *
3304
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3305
+ * repo-code:rw
3306
+ *
3307
+ * /{repo}/-/git/branches
3308
+ */
3309
+ post: Git_CreateBranch;
3310
+
3311
+ /***
3312
+ * 删除指定分支。Delete the specified branch.
3313
+ *
3314
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3315
+ * repo-code:rw
3316
+ *
3317
+ * /{repo}/-/git/branches/{branch}
3318
+ */
3319
+ delete: Git_DeleteBranch;
3320
+
3321
+ /***
3322
+ * 查询指定分支。Get a branch.
3323
+ *
3324
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3325
+ * repo-code:r
3326
+ *
3327
+ * /{repo}/-/git/branches/{branch}
3328
+ */
3329
+ get: Git_GetBranch;
3330
+ };
3331
+ commitAnnotationsInBatch: {
3332
+ /***
3333
+ * 查询指定 commit 的元数据。Get commit annotations in batch.
3334
+ *
3335
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3336
+ * repo-code:r
3337
+ *
3338
+ * /{repo}/-/git/commit-annotations-in-batch
3339
+ */
3340
+ post: Git_GetCommitAnnotationsInBatch;
3341
+ };
3342
+ commitAnnotations: {
3343
+ /***
3344
+ * 查询指定 commit 的元数据。Get commit annotations.
3345
+ *
3346
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3347
+ * repo-code:r
3348
+ *
3349
+ * /{repo}/-/git/commit-annotations/{sha}
3350
+ */
3351
+ list: Git_GetCommitAnnotations;
3352
+
3353
+ /***
3354
+ * 设定指定 commit 的元数据。Put commit annotations.
3355
+ *
3356
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3357
+ * repo-code:rw
3358
+ *
3359
+ * /{repo}/-/git/commit-annotations/{sha}
3360
+ */
3361
+ put: Git_PutCommitAnnotations;
3362
+
3363
+ /***
3364
+ * 删除指定 commit 的元数据。Delete commit annotation.
3365
+ *
3366
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3367
+ * repo-code:rw
3368
+ *
3369
+ * /{repo}/-/git/commit-annotations/{sha}/{key}
3370
+ */
3371
+ delete: Git_DeleteCommitAnnotation;
3372
+ };
3373
+ commitAssets: {
3374
+ /***
3375
+ * 查询指定 commit 的附件。List commit assets.
3376
+ *
3377
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3378
+ * repo-code:r
3379
+ *
3380
+ * /{repo}/-/git/commit-assets/{sha1}
3381
+ */
3382
+ list: Git_GetCommitAssetsBySha;
3383
+ assetUploadConfirmation: {
3384
+ /***
3385
+ * 确认 Commit asset 上传完成。Confirm commit asset upload.
3386
+ *
3387
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3388
+ * repo-code:rw
3389
+ *
3390
+ * /{repo}/-/git/commit-assets/{sha1}/asset-upload-confirmation/{token}/{asset_path}
3391
+ */
3392
+ post: Git_PostCommitAssetUploadConfirmation;
3393
+ };
3394
+ assetUploadUrl: {
3395
+ /***
3396
+ * 新增一个 Commit asset。Create a commit asset.
3397
+ *
3398
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3399
+ * repo-code:rw
3400
+ *
3401
+ * /{repo}/-/git/commit-assets/{sha1}/asset-upload-url
3402
+ */
3403
+ post: Git_PostCommitAssetUploadURL;
3404
+ };
3405
+
3406
+ /***
3407
+ * 删除指定 commit 的附件。Delete commit asset.
3408
+ *
3409
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3410
+ * repo-code:rw
3411
+ *
3412
+ * /{repo}/-/git/commit-assets/{sha1}/{asset_id}
3413
+ */
3414
+ delete: Git_DeleteCommitAsset;
3415
+ };
3416
+ commitStatuses: {
3417
+ /***
3418
+ * 查询指定 commit 的 check statuses。List commit check statuses.
3419
+ *
3420
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3421
+ * repo-code:r
3422
+ *
3423
+ * /{repo}/-/git/commit-statuses/{commitish}
3424
+ */
3425
+ list: Git_GetCommitStatuses;
3426
+ };
3427
+ commits: {
3428
+ /***
3429
+ * 查询 commit 列表。List commits.
3430
+ *
3431
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3432
+ * repo-code:r
3433
+ *
3434
+ * /{repo}/-/git/commits
3435
+ */
3436
+ list: Git_ListCommits;
3437
+
3438
+ /***
3439
+ * 查询指定 commit。Get a commit.
3440
+ *
3441
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3442
+ * repo-code:r
3443
+ *
3444
+ * /{repo}/-/git/commits/{ref}
3445
+ */
3446
+ get: Git_GetCommit;
3447
+ };
3448
+ compare: {
3449
+ /***
3450
+ * 对比 base...head。Compare two commits.
3451
+ *
3452
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3453
+ * repo-code:r
3454
+ *
3455
+ * /{repo}/-/git/compare/{base_head}
3456
+ */
3457
+ get: Git_GetCompareCommits;
3458
+ };
3459
+ contents: {
3460
+ /***
3461
+ * 查询仓库文件列表或文件。List repository files or file.
3462
+ *
3463
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3464
+ * repo-code:r
3465
+ *
3466
+ * /{repo}/-/git/contents/{file_path}
3467
+ */
3468
+ get: Git_GetContent;
3469
+ };
3470
+ deferredCommits: {
3471
+ /***
3472
+ * 查询 deferred commit 列表
3473
+ *
3474
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3475
+ * repo-code:r
3476
+ *
3477
+ * /{repo}/-/git/deferred-commits
3478
+ */
3479
+ list: Git_ListDeferredCommits;
3480
+ };
3481
+ head: {
3482
+ /***
3483
+ * 获取仓库默认分支。Get the default branch of the repository.
3484
+ *
3485
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3486
+ * repo-code:r
3487
+ *
3488
+ * /{repo}/-/git/head
3489
+ */
3490
+ get: Git_GetHead;
3491
+ };
3492
+ tagAnnotations: {
3493
+ /***
3494
+ * 删除指定 tag 的元数据。Delete the metadata of the specified tag.
3495
+ *
3496
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3497
+ * repo-contents:rw
3498
+ *
3499
+ * /{repo}/-/git/tag-annotations/{tag_with_key}
3500
+ */
3501
+ delete: Git_DeleteTagAnnotation;
3502
+
3503
+ /***
3504
+ * 查询指定 tag 的元数据。Query the metadata of the specified tag.
3505
+ *
3506
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3507
+ * repo-contents:r
3508
+ *
3509
+ * /{repo}/-/git/tag-annotations/{tag}
3510
+ */
3511
+ list: Git_GetTagAnnotations;
3512
+
3513
+ /***
3514
+ * 设定指定 tag 的元数据。Set the metadata of the specified tag.
3515
+ *
3516
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3517
+ * repo-contents:rw
3518
+ *
3519
+ * /{repo}/-/git/tag-annotations/{tag}
3520
+ */
3521
+ put: Git_PutTagAnnotations;
3522
+ };
3523
+ tags: {
3524
+ /***
3525
+ * 查询标签列表。List tags.
3526
+ *
3527
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3528
+ * repo-contents:r
3529
+ *
3530
+ * /{repo}/-/git/tags
3531
+ */
3532
+ list: Git_ListTags;
3533
+
3534
+ /***
3535
+ * 创建一个 tag。Create a tag.
3536
+ *
3537
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3538
+ * repo-code:rw
3539
+ *
3540
+ * /{repo}/-/git/tags
3541
+ */
3542
+ post: Git_CreateTag;
3543
+
3544
+ /***
3545
+ * 删除指定标签。Delete the specified tag.
3546
+ *
3547
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3548
+ * repo-contents:rw
3549
+ *
3550
+ * /{repo}/-/git/tags/{tag}
3551
+ */
3552
+ delete: Git_DeleteTag;
3553
+
3554
+ /***
3555
+ * 查询指定 Tag。Get a tag.
3556
+ *
3557
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3558
+ * repo-contents:r
3559
+ *
3560
+ * /{repo}/-/git/tags/{tag}
3561
+ */
3562
+ get: Git_GetTag;
3563
+ };
3564
+ };
3565
+ imgs: {
3566
+ /***
3567
+ * 发起一个获取 imgs 的请求,返回内容或者 302 到某个地址。Initiate a request to get images, returns content or 302 redirect.
3568
+ *
3569
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3570
+ * repo-contents:r
3571
+ *
3572
+ * /{repo}/-/imgs/{userIdKey}/{fileName}
3573
+ */
3574
+ get: Assets_GetImgs;
3575
+
3576
+ /***
3577
+ * 发起一个确认 imgs 的请求,上传的图片要调用此接口才能生效。Initiate a request to confirm images, uploaded images need to call this API to take effect.
3578
+ *
3579
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3580
+ * repo-contents:rw
3581
+ *
3582
+ * /{repo}/-/imgs/{userIdKey}/{fileName}
3583
+ */
3584
+ put: Assets_PutImgs;
3585
+ };
3586
+ inheritMembers: {
3587
+ /***
3588
+ * 获取指定组织或仓库内的继承成员。List inherited members within specified organization or repository。
3589
+ *
3590
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3591
+ * repo-manage:r
3592
+ *
3593
+ * /{repo}/-/inherit-members
3594
+ */
3595
+ list: Collaborators_ListInheritMembersOfRepo;
3596
+ };
3597
+ issues: {
3598
+ /***
3599
+ * 查询仓库的 Issues。List issues.
3600
+ *
3601
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3602
+ * repo-notes:r
3603
+ *
3604
+ * /{repo}/-/issues
3605
+ */
3606
+ list: Issues_ListIssues;
3607
+
3608
+ /***
3609
+ * 创建一个 Issue。Create an issue.
3610
+ *
3611
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3612
+ * repo-notes:rw
3613
+ *
3614
+ * /{repo}/-/issues
3615
+ */
3616
+ post: Issues_CreateIssue;
3617
+
3618
+ /***
3619
+ * 查询指定的 Issues。Get an issue.
3620
+ *
3621
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3622
+ * repo-notes:r
3623
+ *
3624
+ * /{repo}/-/issues/{number}
3625
+ */
3626
+ get: Issues_GetIssue;
3627
+
3628
+ /***
3629
+ * 更新一个 Issue。Update an issue.
3630
+ *
3631
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3632
+ * repo-notes:rw
3633
+ *
3634
+ * /{repo}/-/issues/{number}
3635
+ */
3636
+ patch: Issues_UpdateIssue;
3637
+ assignees: {
3638
+ /***
3639
+ * 删除 Issue 中的 Assignees。 Removes one or more assignees from an issue.
3640
+ *
3641
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3642
+ * repo-notes:rw
3643
+ *
3644
+ * /{repo}/-/issues/{number}/assignees
3645
+ */
3646
+ delete: Issues_DeleteIssueAssignees;
3647
+
3648
+ /***
3649
+ * 查询指定 Issue 的 Assignees。 List repository issue assignees.
3650
+ *
3651
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3652
+ * repo-notes:r
3653
+ *
3654
+ * /{repo}/-/issues/{number}/assignees
3655
+ */
3656
+ list: Issues_ListIssueAssignees;
3657
+
3658
+ /***
3659
+ * 更新 Issue 中的 Assignees。 Updates the assignees of an issue.
3660
+ *
3661
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3662
+ * repo-notes:rw
3663
+ *
3664
+ * /{repo}/-/issues/{number}/assignees
3665
+ */
3666
+ patch: Issues_PatchIssueAssignees;
3667
+
3668
+ /***
3669
+ * 添加 Assignees 到指定的 Issue。 Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.
3670
+ *
3671
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3672
+ * repo-notes:rw
3673
+ *
3674
+ * /{repo}/-/issues/{number}/assignees
3675
+ */
3676
+ post: Issues_PostIssueAssignees;
3677
+
3678
+ /***
3679
+ * 检查用户是否可以被添加到 Issue 的 Assignees 中。 Checks if a user can be assigned to an issue.
3680
+ *
3681
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3682
+ * repo-notes:r
3683
+ *
3684
+ * /{repo}/-/issues/{number}/assignees/{assignee}
3685
+ */
3686
+ get: Issues_CanUserBeAssignedToIssue;
3687
+ };
3688
+ comments: {
3689
+ /***
3690
+ * 查询仓库的 Issue 评论列表。List repository issue comments.
3691
+ *
3692
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3693
+ * repo-notes:r
3694
+ *
3695
+ * /{repo}/-/issues/{number}/comments
3696
+ */
3697
+ list: Issues_ListIssueComments;
3698
+
3699
+ /***
3700
+ * 创建一个 Issue Comment。Create an issue comment.
3701
+ *
3702
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3703
+ * repo-notes:rw
3704
+ *
3705
+ * /{repo}/-/issues/{number}/comments
3706
+ */
3707
+ post: Issues_PostIssueComment;
3708
+
3709
+ /***
3710
+ * 获取一个 Issue Comment。Get an issue comment.
3711
+ *
3712
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3713
+ * repo-notes:r
3714
+ *
3715
+ * /{repo}/-/issues/{number}/comments/{comment_id}
3716
+ */
3717
+ get: Issues_GetIssueComment;
3718
+
3719
+ /***
3720
+ * 修改一个 Issue Comment。Update an issue comment.
3721
+ *
3722
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3723
+ * repo-notes:rw
3724
+ *
3725
+ * /{repo}/-/issues/{number}/comments/{comment_id}
3726
+ */
3727
+ patch: Issues_PatchIssueComment;
3728
+ };
3729
+ labels: {
3730
+ /***
3731
+ * 清空 Issue 标签。Remove all labels from an issue.
3732
+ *
3733
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3734
+ * repo-notes:rw
3735
+ *
3736
+ * /{repo}/-/issues/{number}/labels
3737
+ */
3738
+ delete: Issues_DeleteIssueLabels;
3739
+
3740
+ /***
3741
+ * 查询 Issue 的标签(label) 列表。List labels for an issue.
3742
+ *
3743
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3744
+ * repo-notes:r
3745
+ *
3746
+ * /{repo}/-/issues/{number}/labels
3747
+ */
3748
+ list: Issues_ListIssueLabels;
3749
+
3750
+ /***
3751
+ * 新增 Issue 标签。Add labels to an issue.
3752
+ *
3753
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3754
+ * repo-notes:rw
3755
+ *
3756
+ * /{repo}/-/issues/{number}/labels
3757
+ */
3758
+ post: Issues_PostIssueLabels;
3759
+
3760
+ /***
3761
+ * 设置 Issue 标签。 Set the new labels for an issue.
3762
+ *
3763
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3764
+ * repo-notes:rw
3765
+ *
3766
+ * /{repo}/-/issues/{number}/labels
3767
+ */
3768
+ put: Issues_PutIssueLabels;
3769
+
3770
+ /***
3771
+ * 删除 Issue 标签。Remove a label from an issue.
3772
+ *
3773
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3774
+ * repo-notes:rw
3775
+ *
3776
+ * /{repo}/-/issues/{number}/labels/{name}
3777
+ */
3778
+ deleteByName: Issues_DeleteIssueLabel;
3779
+ };
3780
+ };
3781
+ labels: {
3782
+ /***
3783
+ * 查询仓库的标签(label) 列表。List repository labels.
3784
+ *
3785
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3786
+ * repo-notes:r
3787
+ *
3788
+ * /{repo}/-/labels
3789
+ */
3790
+ list: RepoLabels_ListLabels;
3791
+
3792
+ /***
3793
+ * 创建一个 标签。Create a label.
3794
+ *
3795
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3796
+ * repo-notes:rw
3797
+ *
3798
+ * /{repo}/-/labels
3799
+ */
3800
+ post: RepoLabels_PostLabel;
3801
+
3802
+ /***
3803
+ * 删除指定的仓库标签 label。Delete the specified repository label.
3804
+ *
3805
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3806
+ * repo-notes:rw
3807
+ *
3808
+ * /{repo}/-/labels/{name}
3809
+ */
3810
+ delete: RepoLabels_DeleteLabel;
3811
+
3812
+ /***
3813
+ * 更新标签信息。Update label information.
3814
+ *
3815
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3816
+ * repo-notes:rw
3817
+ *
3818
+ * /{repo}/-/labels/{name}
3819
+ */
3820
+ patch: RepoLabels_PatchLabel;
3821
+ };
3822
+ lfs: {
3823
+ /***
3824
+ * 获取 git lfs 文件下载链接
3825
+ *
3826
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3827
+ * repo-code:r
3828
+ *
3829
+ * /{repo}/-/lfs/{oid}
3830
+ */
3831
+ get: Git_GetPresignedLFSDownloadLink;
3832
+ };
3833
+ listMembers: {
3834
+ /***
3835
+ * 获取指定仓库内的有效成员列表,包含继承成员。List active members in specified repository including inherited members.
3836
+ *
3837
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3838
+ * repo-manage:r
3839
+ *
3840
+ * /{repo}/-/list-members
3841
+ */
3842
+ list: Collaborators_ListAllMembers;
3843
+ };
3844
+ members: {
3845
+ /***
3846
+ * 获取指定组织或仓库内的所有直接成员。List all direct members within specified organization or repository.
3847
+ *
3848
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3849
+ * repo-manage:r
3850
+ *
3851
+ * /{repo}/-/members
3852
+ */
3853
+ list: Collaborators_ListMembersOfRepo;
3854
+ accessLevel: {
3855
+ /***
3856
+ * 获取指定组织或仓库内, 访问成员在当前层级内的权限信息。Get permission information for accessing members at current level.
3857
+ *
3858
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3859
+ * repo-manage:r
3860
+ *
3861
+ * /{repo}/-/members/access-level
3862
+ */
3863
+ get: Contributors_GetMemberAccessLevelOfRepo;
3864
+
3865
+ /***
3866
+ * 获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示, 包含上层组织的权限继承信息。Get specified member's permissions with organizational hierarchy.
3867
+ *
3868
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3869
+ * repo-manage:r
3870
+ *
3871
+ * /{repo}/-/members/{username}/access-level
3872
+ */
3873
+ list: Contributors_ListMemberAccessLevelOfRepo;
3874
+ };
3875
+
3876
+ /***
3877
+ * 删除指定组织或仓库的直接成员。Remove direct members from specified organization/repository.
3878
+ *
3879
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3880
+ * repo-manage:rw
3881
+ *
3882
+ * /{repo}/-/members/{username}
3883
+ */
3884
+ delete: Collaborators_DeleteMembersOfRepo;
3885
+
3886
+ /***
3887
+ * 添加成员。Add members.
3888
+ *
3889
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3890
+ * repo-manage:rw
3891
+ *
3892
+ * /{repo}/-/members/{username}
3893
+ */
3894
+ post: Collaborators_AddMembersOfRepo;
3895
+
3896
+ /***
3897
+ * 更新指定组织或仓库内的直接成员权限信息。Update permission information for direct members in specified organization/repository.
3898
+ *
3899
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3900
+ * repo-manage:rw
3901
+ *
3902
+ * /{repo}/-/members/{username}
3903
+ */
3904
+ put: Collaborators_UpdateMembersOfRepo;
3905
+ };
3906
+ outsideCollaborators: {
3907
+ /***
3908
+ * 获取指定仓库内的外部贡献者。List external contributors in specified repository.
3909
+ *
3910
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3911
+ * repo-manage:r
3912
+ *
3913
+ * /{repo}/-/outside-collaborators
3914
+ */
3915
+ list: Collaborators_ListOutsideCollaborators;
3916
+
3917
+ /***
3918
+ * 删除指定仓库的外部贡献者。Removes external contributors from specified repository.
3919
+ *
3920
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3921
+ * repo-manage:rw
3922
+ *
3923
+ * /{repo}/-/outside-collaborators/{username}
3924
+ */
3925
+ delete: Collaborators_DeleteOutsideCollaborators;
3926
+
3927
+ /***
3928
+ * 更新指定仓库的外部贡献者权限信息。 Update permission information for external contributors in specified repository.
3929
+ *
3930
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3931
+ * repo-manage:rw
3932
+ *
3933
+ * /{repo}/-/outside-collaborators/{username}
3934
+ */
3935
+ put: Collaborators_UpdateOutsideCollaborators;
3936
+ };
3937
+ pullInBatch: {
3938
+ /***
3939
+ * 根据numbers查询 Pull 列表。List pull requests by numbers.
3940
+ *
3941
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3942
+ * repo-pr:r
3943
+ *
3944
+ * /{repo}/-/pull-in-batch
3945
+ */
3946
+ list: Pulls_ListPullsByNumbers;
3947
+ };
3948
+ pulls: {
3949
+ /***
3950
+ * 查询 Pull 列表。List pull requests.
3951
+ *
3952
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3953
+ * repo-pr:r
3954
+ *
3955
+ * /{repo}/-/pulls
3956
+ */
3957
+ list: Pulls_ListPulls;
3958
+
3959
+ /***
3960
+ * 新增一个 Pull。Create a pull request.
3961
+ *
3962
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3963
+ * repo-pr:rw
3964
+ *
3965
+ * /{repo}/-/pulls
3966
+ */
3967
+ post: Pulls_PostPull;
3968
+
3969
+ /***
3970
+ * 查询指定 Pull。Get a pull request.
3971
+ *
3972
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3973
+ * repo-pr:r
3974
+ *
3975
+ * /{repo}/-/pulls/{number}
3976
+ */
3977
+ get: Pulls_GetPull;
3978
+
3979
+ /***
3980
+ * 更新一个 Pull Request。Update a pull request.
3981
+ *
3982
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3983
+ * repo-pr:rw
3984
+ *
3985
+ * /{repo}/-/pulls/{number}
3986
+ */
3987
+ patch: Pulls_PatchPull;
3988
+ assignees: {
3989
+ /***
3990
+ * 删除 PullRequest 中的 Assignees。 Removes one or more assignees from a pull request.
3991
+ *
3992
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3993
+ * repo-notes:rw
3994
+ *
3995
+ * /{repo}/-/pulls/{number}/assignees
3996
+ */
3997
+ delete: Pulls_DeletePullAssignees;
3998
+
3999
+ /***
4000
+ * 查询指定 PullRequest 的 Assignees。List repository pull request assignees.
4001
+ *
4002
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4003
+ * repo-notes:r
4004
+ *
4005
+ * /{repo}/-/pulls/{number}/assignees
4006
+ */
4007
+ list: Pulls_ListPullAssignees;
4008
+
4009
+ /***
4010
+ * 添加 Assignees 到指定的 PullRequest。 Adds up to 10 assignees to a pull request. Users already assigned to an issue are not replaced.
4011
+ *
4012
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4013
+ * repo-notes:rw
4014
+ *
4015
+ * /{repo}/-/pulls/{number}/assignees
4016
+ */
4017
+ post: Pulls_PostPullAssignees;
4018
+
4019
+ /***
4020
+ * 检查用户是否可以被添加到 PullRequest 的 Assignees 中。 Checks if a user can be assigned to a pull request.
4021
+ *
4022
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4023
+ * repo-notes:r
4024
+ *
4025
+ * /{repo}/-/pulls/{number}/assignees/{assignee}
4026
+ */
4027
+ get: Pulls_CanUserBeAssignedToPull;
4028
+ };
4029
+ comments: {
4030
+ /***
4031
+ * 查询 Pull Comments 列表。List pull comments requests.
4032
+ *
4033
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4034
+ * repo-notes:r
4035
+ *
4036
+ * /{repo}/-/pulls/{number}/comments
4037
+ */
4038
+ list: Pulls_ListPullComments;
4039
+
4040
+ /***
4041
+ * 新增一个 Pull Comment。Create a pull comment.
4042
+ *
4043
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4044
+ * repo-notes:rw
4045
+ *
4046
+ * /{repo}/-/pulls/{number}/comments
4047
+ */
4048
+ post: Pulls_PostPullComment;
4049
+ };
4050
+ labels: {
4051
+ /***
4052
+ * 清空 Pull 标签。Remove all labels from a pull.
4053
+ *
4054
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4055
+ * repo-notes:rw
4056
+ *
4057
+ * /{repo}/-/pulls/{number}/labels
4058
+ */
4059
+ delete: Pulls_DeletePullLabels;
4060
+
4061
+ /***
4062
+ * 查询 Pull 的标签(label) 列表。List labels for a pull.
4063
+ *
4064
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4065
+ * repo-notes:r
4066
+ *
4067
+ * /{repo}/-/pulls/{number}/labels
4068
+ */
4069
+ list: Pulls_ListPullLabels;
4070
+
4071
+ /***
4072
+ * 新增 Pull 标签。Add labels to a pull.
4073
+ *
4074
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4075
+ * repo-notes:rw
4076
+ *
4077
+ * /{repo}/-/pulls/{number}/labels
4078
+ */
4079
+ post: Pulls_PostPullLabels;
4080
+
4081
+ /***
4082
+ * 设置 Pull 标签。Set the new labels for a pull.
4083
+ *
4084
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4085
+ * repo-notes:rw
4086
+ *
4087
+ * /{repo}/-/pulls/{number}/labels
4088
+ */
4089
+ put: Pulls_PutPullLabels;
4090
+
4091
+ /***
4092
+ * 删除 Pull 标签。Remove a label from a pull.
4093
+ *
4094
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4095
+ * repo-notes:rw
4096
+ *
4097
+ * /{repo}/-/pulls/{number}/labels/{name}
4098
+ */
4099
+ deleteByName: Pulls_DeletePullLabel;
4100
+ };
4101
+ merge: {
4102
+ /***
4103
+ * 合并一个 Pull Request。Merge a pull request.
4104
+ *
4105
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4106
+ * repo-pr:rw
4107
+ *
4108
+ * /{repo}/-/pulls/{number}/merge
4109
+ */
4110
+ put: Pulls_MergePull;
4111
+ };
4112
+ revert: {
4113
+ /***
4114
+ * 还原一个已合并的 Pull Request
4115
+ *
4116
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4117
+ * repo-pr:rw
4118
+ *
4119
+ * /{repo}/-/pulls/{number}/revert
4120
+ */
4121
+ post: Pulls_RevertPullRequest;
4122
+ };
4123
+ reviews: {
4124
+ /***
4125
+ * 新增一次 pull request 评审。Create a pull review.
4126
+ *
4127
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4128
+ * repo-notes:rw
4129
+ *
4130
+ * /{repo}/-/pulls/{number}/reviews
4131
+ */
4132
+ post: Pulls_PostPullReview;
4133
+ };
4134
+ };
4135
+ releases: {
4136
+ /***
4137
+ * 查询 release 列表。List releases.
4138
+ *
4139
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4140
+ * repo-code:r
4141
+ *
4142
+ * /{repo}/-/releases
4143
+ */
4144
+ list: Releases_ListReleases;
4145
+
4146
+ /***
4147
+ * 新增一个 Release。Create a release.
4148
+ *
4149
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4150
+ * repo-code:rw
4151
+ *
4152
+ * /{repo}/-/releases
4153
+ */
4154
+ post: Releases_PostRelease;
4155
+ download: {
4156
+ /***
4157
+ * 发起一个获取 release 附件的请求,返回内容或者 302 到某个地址。Initiate a request to get release attachments, returns content or 302 redirect.
4158
+ *
4159
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4160
+ * repo-contents:r
4161
+ *
4162
+ * /{repo}/-/releases/download/{fileName}
4163
+ */
4164
+ get: Assets_GetReleasesAsset;
4165
+ };
4166
+ latest: {
4167
+ /***
4168
+ * 查询 latest release。Query the latest release.
4169
+ *
4170
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4171
+ * repo-code:r
4172
+ *
4173
+ * /{repo}/-/releases/latest
4174
+ */
4175
+ get: Releases_GetLatestRelease;
4176
+ download: {
4177
+ /***
4178
+ * 发起一个获取 latest release 附件的请求,返回内容或者 302 到某个地址。Initiate a request to get latest release attachments, returns content or 302 redirect.
4179
+ *
4180
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4181
+ * repo-contents:r
4182
+ *
4183
+ * /{repo}/-/releases/latest/download/{fileName}
4184
+ */
4185
+ get: Assets_GetLatestReleasesAsset;
4186
+ };
4187
+ };
4188
+ tags: {
4189
+ /***
4190
+ * 通过 tag 查询指定 release。Get a release by tag.
4191
+ *
4192
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4193
+ * repo-code:r
4194
+ *
4195
+ * /{repo}/-/releases/tags/{tag}
4196
+ */
4197
+ get: Releases_GetReleaseByTag;
4198
+ };
4199
+
4200
+ /***
4201
+ * 删除指定的 release。Delete a release.
4202
+ *
4203
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4204
+ * repo-code:rw
4205
+ *
4206
+ * /{repo}/-/releases/{release_id}
4207
+ */
4208
+ delete: Releases_DeleteRelease;
4209
+
4210
+ /***
4211
+ * 根据 id 查询指定 release。Get a release by id.
4212
+ *
4213
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4214
+ * repo-code:r
4215
+ *
4216
+ * /{repo}/-/releases/{release_id}
4217
+ */
4218
+ get: Releases_GetReleaseByID;
4219
+
4220
+ /***
4221
+ * 更新 release。Update a release.
4222
+ *
4223
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4224
+ * repo-code:rw
4225
+ *
4226
+ * /{repo}/-/releases/{release_id}
4227
+ */
4228
+ patch: Releases_PatchRelease;
4229
+ assetUploadConfirmation: {
4230
+ /***
4231
+ * 确认 Release asset 上传完成。Confirm release asset upload.
4232
+ *
4233
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4234
+ * repo-code:rw
4235
+ *
4236
+ * /{repo}/-/releases/{release_id}/asset-upload-confirmation/{token}/{asset_path}
4237
+ */
4238
+ post: Releases_PostReleaseAssetUploadConfirmation;
4239
+ };
4240
+ assetUploadUrl: {
4241
+ /***
4242
+ * 新增一个 Release asset。Create a release asset.
4243
+ *
4244
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4245
+ * repo-code:rw
4246
+ *
4247
+ * /{repo}/-/releases/{release_id}/asset-upload-url
4248
+ */
4249
+ post: Releases_PostReleaseAssetUploadURL;
4250
+ };
4251
+ assets: {
4252
+ /***
4253
+ * 删除指定的 release asset。Delete the specified release asset.
4254
+ *
4255
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4256
+ * repo-code:rw
4257
+ *
4258
+ * /{repo}/-/releases/{release_id}/assets/{asset_id}
4259
+ */
4260
+ delete: Releases_DeleteReleaseAsset;
4261
+
4262
+ /***
4263
+ * 查询指定的 release asset。Get the specified release asset.
4264
+ *
4265
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4266
+ * repo-code:r
4267
+ *
4268
+ * /{repo}/-/releases/{release_id}/assets/{asset_id}
4269
+ */
4270
+ get: Releases_GetReleaseAsset;
4271
+ };
4272
+ };
4273
+ settings: {
4274
+ archive: {
4275
+ /***
4276
+ * 仓库归档
4277
+ *
4278
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4279
+ * repo-manage:rw,repo-code:rw
4280
+ *
4281
+ * /{repo}/-/settings/archive
4282
+ */
4283
+ post: Repositories_ArchiveRepo;
4284
+ };
4285
+ branchProtections: {
4286
+ /***
4287
+ * 查询仓库保护分支规则列表。List branch protection rules.
4288
+ *
4289
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4290
+ * repo-manage:r
4291
+ *
4292
+ * /{repo}/-/settings/branch-protections
4293
+ */
4294
+ list: GitSettings_ListBranchProtections;
4295
+
4296
+ /***
4297
+ * 新增仓库保护分支规则。Create branch protection rule.
4298
+ *
4299
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4300
+ * repo-manage:rw
4301
+ *
4302
+ * /{repo}/-/settings/branch-protections
4303
+ */
4304
+ post: GitSettings_PostBranchProtection;
4305
+
4306
+ /***
4307
+ * 删除仓库保护分支规则。 Delete branch protection rule.
4308
+ *
4309
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4310
+ * repo-manage:rw
4311
+ *
4312
+ * /{repo}/-/settings/branch-protections/{id}
4313
+ */
4314
+ delete: GitSettings_DeleteBranchProtection;
4315
+
4316
+ /***
4317
+ * 查询仓库保护分支规则。Get branch protection rule.
4318
+ *
4319
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4320
+ * repo-manage:r
4321
+ *
4322
+ * /{repo}/-/settings/branch-protections/{id}
4323
+ */
4324
+ get: GitSettings_GetBranchProtection;
4325
+
4326
+ /***
4327
+ * 更新仓库保护分支规则。Update branch protection rule.
4328
+ *
4329
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4330
+ * repo-manage:rw
4331
+ *
4332
+ * /{repo}/-/settings/branch-protections/{id}
4333
+ */
4334
+ patch: GitSettings_PatchBranchProtection;
4335
+ };
4336
+ cloudNativeBuild: {
4337
+ /***
4338
+ * 查询仓库云原生构建设置。List pipeline settings.
4339
+ *
4340
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4341
+ * repo-manage:r
4342
+ *
4343
+ * /{repo}/-/settings/cloud-native-build
4344
+ */
4345
+ get: GitSettings_GetPipelineSettings;
4346
+
4347
+ /***
4348
+ * 更新仓库云原生构建设置。Update pipeline settings.
4349
+ *
4350
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4351
+ * repo-manage:rw
4352
+ *
4353
+ * /{repo}/-/settings/cloud-native-build
4354
+ */
4355
+ put: GitSettings_PutPipelineSettings;
4356
+ };
4357
+ pullRequest: {
4358
+ /***
4359
+ * 查询仓库合并请求设置。List pull request settings.
4360
+ *
4361
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4362
+ * repo-manage:r
4363
+ *
4364
+ * /{repo}/-/settings/pull-request
4365
+ */
4366
+ get: GitSettings_GetPullRequestSettings;
4367
+
4368
+ /***
4369
+ * 设置仓库推送设置。Set pull request settings.
4370
+ *
4371
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4372
+ * repo-manage:rw
4373
+ *
4374
+ * /{repo}/-/settings/pull-request
4375
+ */
4376
+ put: GitSettings_PutPullRequestSettings;
4377
+ };
4378
+ pushLimit: {
4379
+ /***
4380
+ * 查询仓库推送设置。List push limit settings.
4381
+ *
4382
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4383
+ * repo-manage:r
4384
+ *
4385
+ * /{repo}/-/settings/push-limit
4386
+ */
4387
+ get: GitSettings_GetPushLimitSettings;
4388
+
4389
+ /***
4390
+ * 设置仓库推送设置。Set push limit settings.
4391
+ *
4392
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4393
+ * repo-manage:rw
4394
+ *
4395
+ * /{repo}/-/settings/push-limit
4396
+ */
4397
+ put: GitSettings_PutPushLimitSettings;
4398
+ };
4399
+ unarchive: {
4400
+ /***
4401
+ * 解除仓库归档
4402
+ *
4403
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4404
+ * repo-manage:rw,repo-code:rw
4405
+ *
4406
+ * /{repo}/-/settings/unarchive
4407
+ */
4408
+ post: Repositories_UnArchiveRepo;
4409
+ };
4410
+ };
4411
+ stars: {
4412
+ /***
4413
+ * 获取指定仓库的star用户列表。Get the list of users who starred the specified repository.
4414
+ *
4415
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4416
+ * repo-basic-info:r
4417
+ *
4418
+ * /{repo}/-/stars
4419
+ */
4420
+ get: Starring_ListStarUsers;
4421
+ };
4422
+ topActivityUsers: {
4423
+ /***
4424
+ * 获取 top 贡献用户。List the top contributing users
4425
+ *
4426
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4427
+ * repo-base-info:r
4428
+ *
4429
+ * /{repo}/-/top-activity-users
4430
+ */
4431
+ list: Collaborators_TopContributors;
4432
+ };
4433
+ transfer: {
4434
+ /***
4435
+ * 转移仓库
4436
+ *
4437
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4438
+ * repo-manage:rw,repo-code:rw
4439
+ *
4440
+ * /{repo}/-/transfer
4441
+ */
4442
+ post: Repositories_TransferRepo;
4443
+ };
4444
+ upload: {
4445
+ files: {
4446
+ /***
4447
+ * 发起一个上传 files 的请求,返回上传 cos 的 url 和 form 内容。Initiate a request to upload files,returns COS upload URL and form data.
4448
+ *
4449
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4450
+ * repo-contents:rw
4451
+ *
4452
+ * /{repo}/-/upload/files
4453
+ */
4454
+ post: Assets_UploadFiles;
4455
+ };
4456
+ imgs: {
4457
+ /***
4458
+ * 发起一个上传 imgs 的请求,返回上传 cos 的 url 和 form 内容。发起一个上传 imgs 的请求,返回上传 cos 的 url 和 form 内容.
4459
+ *
4460
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4461
+ * repo-contents:rw
4462
+ *
4463
+ * /{repo}/-/upload/imgs
4464
+ */
4465
+ post: Assets_UploadImgs;
4466
+ };
4467
+ releases: {
4468
+ /***
4469
+ * 发起一个上传 release 附件的请求,返回上传 cos 的 url 。Initiate a request to upload release attachments,
4470
+ *
4471
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4472
+ * repo-contents:rw
4473
+ *
4474
+ * /{repo}/-/upload/releases/{tagName}
4475
+ */
4476
+ post: Assets_UploadReleases;
4477
+ };
4478
+ };
4479
+ workspace: {
4480
+ detail: {
4481
+ /***
4482
+ * 根据流水线sn查询云原生开发访问地址。Query cloud-native development access address by pipeline SN.
4483
+ *
4484
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4485
+ * repo-cnb-detail:r
4486
+ *
4487
+ * /{repo}/-/workspace/detail/{sn}
4488
+ */
4489
+ get: Workspace_GetWorkspaceDetail;
4490
+ };
4491
+ };
4492
+ };
4493
+ slug: {
4494
+ packages: {
4495
+ /***
4496
+ * 查询制品列表。 List all packages.
4497
+ *
4498
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4499
+ * registry-package:r
4500
+ *
4501
+ * /{slug}/-/packages
4502
+ */
4503
+ list: Artifactory_ListPackages;
4504
+
4505
+ /***
4506
+ * 查询制品数量。 Head all packages.
4507
+ *
4508
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4509
+ * registry-package:r
4510
+ *
4511
+ * /{slug}/-/packages
4512
+ */
4513
+ head: Artifactory_HeadPackages;
4514
+
4515
+ /***
4516
+ * 获取某一制品的详细信息。 Get the package detail.
4517
+ *
4518
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4519
+ * registry-package:r
4520
+ *
4521
+ * /{slug}/-/packages/{type}/{name}
4522
+ */
4523
+ get: Artifactory_GetPackage;
4524
+ name: {
4525
+ tag: {
4526
+ /***
4527
+ * 删除制品标签。 Delete the specific tag under specific package
4528
+ *
4529
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4530
+ * registry-package-delete:rw
4531
+ *
4532
+ * /{slug}/-/packages/{type}/{name}/-/tag/{tag}
4533
+ */
4534
+ delete: Artifactory_DeletePackageTag;
4535
+
4536
+ /***
4537
+ * 获取制品标签详情。 Get the specific tag under specific package.
4538
+ *
4539
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4540
+ * registry-package:r
4541
+ *
4542
+ * /{slug}/-/packages/{type}/{name}/-/tag/{tag}
4543
+ */
4544
+ get: Artifactory_GetPackageTagDetail;
4545
+ };
4546
+ };
4547
+ pkgname: {
4548
+ tags: {
4549
+ /***
4550
+ * 查询制品标签列表。 List all tags under specific package.
4551
+ *
4552
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4553
+ * registry-package:r
4554
+ *
4555
+ * /{slug}/-/packages/{type}/{pkgname}/-/tags
4556
+ */
4557
+ get: Artifactory_ListPackageTags;
4558
+ };
4559
+ };
4560
+ };
4561
+ registry: {
4562
+ quota: {
4563
+ /***
4564
+ * 查询制品配额。 Get quota of specific registry.
4565
+ *
4566
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4567
+ * registry-package:r
4568
+ *
4569
+ * /{slug}/-/registry/-/quota
4570
+ */
4571
+ get: Artifactory_GetRegistryQuota;
4572
+ };
4573
+ quotas: {
4574
+ /***
4575
+ * 查询全部制品配额。 Get quotas of packages under one registry.
4576
+ *
4577
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4578
+ * registry-package:r
4579
+ *
4580
+ * /{slug}/-/registry/-/quotas
4581
+ */
4582
+ list: Artifactory_GetRegistryQuotas;
4583
+ download: {
4584
+ /***
4585
+ * 下载制品配额信息。 Download registry quota details.
4586
+ *
4587
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4588
+ * registry-package:r
4589
+ *
4590
+ * /{slug}/-/registry/-/quotas/download
4591
+ */
4592
+ list: Artifactory_DownloadRegistryQuotas;
4593
+ };
4594
+ };
4595
+ };
4596
+ };
4597
+ Organizations: {
4598
+ CreateOrganization: Organizations_CreateOrganization;
4599
+ ListTopGroups: Organizations_ListTopGroups;
4600
+ ListGroups: Organizations_ListGroups;
4601
+ GetGroupsByUserID: Organizations_GetGroupsByUserID;
4602
+ DeleteOrganization: Organizations_DeleteOrganization;
4603
+ GetGroup: Organizations_GetGroup;
4604
+ UpdateOrganization: Organizations_UpdateOrganization;
4605
+ UpdateGroupAvatar: Organizations_UpdateGroupAvatar;
4606
+ GetGroupSetting: Organizations_GetGroupSetting;
4607
+ UpdateGroupSetting: Organizations_UpdateGroupSetting;
4608
+ ListSubgroups: Organizations_ListSubgroups;
4609
+ TransferGroup: Organizations_TransferGroup;
4610
+ };
4611
+ Users: {
4612
+ GetUserInfo: Users_GetUserInfo;
4613
+ UpdateUserInfo: Users_UpdateUserInfo;
4614
+ AutoCompleteSource: Users_AutoCompleteSource;
4615
+ GetUserInfoByName: Users_GetUserInfoByName;
4616
+ };
4617
+ Repositories: {
4618
+ GetRepos: Repositories_GetRepos;
4619
+ GetUserAllStaredRepos: Repositories_GetUserAllStaredRepos;
4620
+ GetPinnedRepoByID: Repositories_GetPinnedRepoByID;
4621
+ GetReposByUserName: Repositories_GetReposByUserName;
4622
+ GetPinnedRepoByGroup: Repositories_GetPinnedRepoByGroup;
4623
+ SetPinnedRepoByGroup: Repositories_SetPinnedRepoByGroup;
4624
+ GetGroupSubRepos: Repositories_GetGroupSubRepos;
4625
+ CreateRepo: Repositories_CreateRepo;
4626
+ DeleteRepo: Repositories_DeleteRepo;
4627
+ GetByID: Repositories_GetByID;
4628
+ UpdateRepo: Repositories_UpdateRepo;
4629
+ ListForksRepos: Repositories_ListForksRepos;
4630
+ CreateAFork: Repositories_CreateAFork;
4631
+ ArchiveRepo: Repositories_ArchiveRepo;
4632
+ UnArchiveRepo: Repositories_UnArchiveRepo;
4633
+ TransferRepo: Repositories_TransferRepo;
4634
+ };
4635
+ Activities: {
4636
+ GetUserActivitiesByDate: Activities_GetUserActivitiesByDate;
4637
+ GetUserRepoActivityDetails: Activities_GetUserRepoActivityDetails;
4638
+ };
4639
+ Assets: {
4640
+ GetUserAvatar: Assets_GetUserAvatar;
4641
+ PutLogos: Assets_PutLogos;
4642
+ GetLogos: Assets_GetLogos;
4643
+ UploadLogos: Assets_UploadLogos;
4644
+ GetCommitAssets: Assets_GetCommitAssets;
4645
+ GetFiles: Assets_GetFiles;
4646
+ PutFiles: Assets_PutFiles;
4647
+ GetImgs: Assets_GetImgs;
4648
+ PutImgs: Assets_PutImgs;
4649
+ GetReleasesAsset: Assets_GetReleasesAsset;
4650
+ GetLatestReleasesAsset: Assets_GetLatestReleasesAsset;
4651
+ UploadFiles: Assets_UploadFiles;
4652
+ UploadImgs: Assets_UploadImgs;
4653
+ UploadReleases: Assets_UploadReleases;
4654
+ };
4655
+ Followers: {
4656
+ GetFollowersByUserID: Followers_GetFollowersByUserID;
4657
+ GetFollowingByUserID: Followers_GetFollowingByUserID;
4658
+ };
4659
+ Starring: {
4660
+ GetUserStaredRepos: Starring_GetUserStaredRepos;
4661
+ ListStarUsers: Starring_ListStarUsers;
4662
+ };
4663
+ Workspace: {
4664
+ DeleteWorkspace: Workspace_DeleteWorkspace;
4665
+ ListWorkspaces: Workspace_ListWorkspaces;
4666
+ GetWorkspaceDetail: Workspace_GetWorkspaceDetail;
4667
+ };
4668
+ Collaborators: {
4669
+ ListInheritMembersOfGroup: Collaborators_ListInheritMembersOfGroup;
4670
+ ListMembersOfGroup: Collaborators_ListMembersOfGroup;
4671
+ DeleteMembersOfGroup: Collaborators_DeleteMembersOfGroup;
4672
+ AddMembersOfGroup: Collaborators_AddMembersOfGroup;
4673
+ UpdateMembersOfGroup: Collaborators_UpdateMembersOfGroup;
4674
+ AddMembersOfMission: Collaborators_AddMembersOfMission;
4675
+ AddMembersOfRegistry: Collaborators_AddMembersOfRegistry;
4676
+ ListInheritMembersOfRepo: Collaborators_ListInheritMembersOfRepo;
4677
+ ListAllMembers: Collaborators_ListAllMembers;
4678
+ ListMembersOfRepo: Collaborators_ListMembersOfRepo;
4679
+ DeleteMembersOfRepo: Collaborators_DeleteMembersOfRepo;
4680
+ AddMembersOfRepo: Collaborators_AddMembersOfRepo;
4681
+ UpdateMembersOfRepo: Collaborators_UpdateMembersOfRepo;
4682
+ ListOutsideCollaborators: Collaborators_ListOutsideCollaborators;
4683
+ DeleteOutsideCollaborators: Collaborators_DeleteOutsideCollaborators;
4684
+ UpdateOutsideCollaborators: Collaborators_UpdateOutsideCollaborators;
4685
+ TopContributors: Collaborators_TopContributors;
4686
+ };
4687
+ Contributors: {
4688
+ GetMemberAccessLevelOfGroup: Contributors_GetMemberAccessLevelOfGroup;
4689
+ ListMemberAccessLevelOfGroup: Contributors_ListMemberAccessLevelOfGroup;
4690
+ GetMemberAccessLevelOfRepo: Contributors_GetMemberAccessLevelOfRepo;
4691
+ ListMemberAccessLevelOfRepo: Contributors_ListMemberAccessLevelOfRepo;
4692
+ };
4693
+ Missions: {
4694
+ DeleteMission: Missions_DeleteMission;
4695
+ };
4696
+ Artifactory: {
4697
+ DeleteRegistry: Artifactory_DeleteRegistry;
4698
+ ListPackages: Artifactory_ListPackages;
4699
+ HeadPackages: Artifactory_HeadPackages;
4700
+ GetPackage: Artifactory_GetPackage;
4701
+ DeletePackageTag: Artifactory_DeletePackageTag;
4702
+ GetPackageTagDetail: Artifactory_GetPackageTagDetail;
4703
+ ListPackageTags: Artifactory_ListPackageTags;
4704
+ GetRegistryQuota: Artifactory_GetRegistryQuota;
4705
+ GetRegistryQuotas: Artifactory_GetRegistryQuotas;
4706
+ DownloadRegistryQuotas: Artifactory_DownloadRegistryQuotas;
4707
+ };
4708
+ Build: {
4709
+ GetBuildLogs: Build_GetBuildLogs;
4710
+ StartBuild: Build_StartBuild;
4711
+ GetBuildStatus: Build_GetBuildStatus;
4712
+ StopBuild: Build_StopBuild;
4713
+ };
4714
+ RepoContributor: {
4715
+ GetRepoContributorTrend: RepoContributor_GetRepoContributorTrend;
4716
+ };
4717
+ Git: {
4718
+ GetArchiveCommitChangedFiles: Git_GetArchiveCommitChangedFiles;
4719
+ GetArchiveCompareChangedFiles: Git_GetArchiveCompareChangedFiles;
4720
+ CreateBlob: Git_CreateBlob;
4721
+ ListBranches: Git_ListBranches;
4722
+ CreateBranch: Git_CreateBranch;
4723
+ DeleteBranch: Git_DeleteBranch;
4724
+ GetBranch: Git_GetBranch;
4725
+ GetCommitAnnotationsInBatch: Git_GetCommitAnnotationsInBatch;
4726
+ GetCommitAnnotations: Git_GetCommitAnnotations;
4727
+ PutCommitAnnotations: Git_PutCommitAnnotations;
4728
+ DeleteCommitAnnotation: Git_DeleteCommitAnnotation;
4729
+ GetCommitAssetsBySha: Git_GetCommitAssetsBySha;
4730
+ PostCommitAssetUploadConfirmation: Git_PostCommitAssetUploadConfirmation;
4731
+ PostCommitAssetUploadURL: Git_PostCommitAssetUploadURL;
4732
+ DeleteCommitAsset: Git_DeleteCommitAsset;
4733
+ GetCommitStatuses: Git_GetCommitStatuses;
4734
+ ListCommits: Git_ListCommits;
4735
+ GetCommit: Git_GetCommit;
4736
+ GetCompareCommits: Git_GetCompareCommits;
4737
+ GetContent: Git_GetContent;
4738
+ ListDeferredCommits: Git_ListDeferredCommits;
4739
+ GetHead: Git_GetHead;
4740
+ DeleteTagAnnotation: Git_DeleteTagAnnotation;
4741
+ GetTagAnnotations: Git_GetTagAnnotations;
4742
+ PutTagAnnotations: Git_PutTagAnnotations;
4743
+ ListTags: Git_ListTags;
4744
+ CreateTag: Git_CreateTag;
4745
+ DeleteTag: Git_DeleteTag;
4746
+ GetTag: Git_GetTag;
4747
+ GetPresignedLFSDownloadLink: Git_GetPresignedLFSDownloadLink;
4748
+ };
4749
+ Issues: {
4750
+ ListIssues: Issues_ListIssues;
4751
+ CreateIssue: Issues_CreateIssue;
4752
+ GetIssue: Issues_GetIssue;
4753
+ UpdateIssue: Issues_UpdateIssue;
4754
+ DeleteIssueAssignees: Issues_DeleteIssueAssignees;
4755
+ ListIssueAssignees: Issues_ListIssueAssignees;
4756
+ PatchIssueAssignees: Issues_PatchIssueAssignees;
4757
+ PostIssueAssignees: Issues_PostIssueAssignees;
4758
+ CanUserBeAssignedToIssue: Issues_CanUserBeAssignedToIssue;
4759
+ ListIssueComments: Issues_ListIssueComments;
4760
+ PostIssueComment: Issues_PostIssueComment;
4761
+ GetIssueComment: Issues_GetIssueComment;
4762
+ PatchIssueComment: Issues_PatchIssueComment;
4763
+ DeleteIssueLabels: Issues_DeleteIssueLabels;
4764
+ ListIssueLabels: Issues_ListIssueLabels;
4765
+ PostIssueLabels: Issues_PostIssueLabels;
4766
+ PutIssueLabels: Issues_PutIssueLabels;
4767
+ DeleteIssueLabel: Issues_DeleteIssueLabel;
4768
+ };
4769
+ RepoLabels: {
4770
+ ListLabels: RepoLabels_ListLabels;
4771
+ PostLabel: RepoLabels_PostLabel;
4772
+ DeleteLabel: RepoLabels_DeleteLabel;
4773
+ PatchLabel: RepoLabels_PatchLabel;
4774
+ };
4775
+ Pulls: {
4776
+ ListPullsByNumbers: Pulls_ListPullsByNumbers;
4777
+ ListPulls: Pulls_ListPulls;
4778
+ PostPull: Pulls_PostPull;
4779
+ GetPull: Pulls_GetPull;
4780
+ PatchPull: Pulls_PatchPull;
4781
+ DeletePullAssignees: Pulls_DeletePullAssignees;
4782
+ ListPullAssignees: Pulls_ListPullAssignees;
4783
+ PostPullAssignees: Pulls_PostPullAssignees;
4784
+ CanUserBeAssignedToPull: Pulls_CanUserBeAssignedToPull;
4785
+ ListPullComments: Pulls_ListPullComments;
4786
+ PostPullComment: Pulls_PostPullComment;
4787
+ DeletePullLabels: Pulls_DeletePullLabels;
4788
+ ListPullLabels: Pulls_ListPullLabels;
4789
+ PostPullLabels: Pulls_PostPullLabels;
4790
+ PutPullLabels: Pulls_PutPullLabels;
4791
+ DeletePullLabel: Pulls_DeletePullLabel;
4792
+ MergePull: Pulls_MergePull;
4793
+ RevertPullRequest: Pulls_RevertPullRequest;
4794
+ PostPullReview: Pulls_PostPullReview;
4795
+ };
4796
+ Releases: {
4797
+ ListReleases: Releases_ListReleases;
4798
+ PostRelease: Releases_PostRelease;
4799
+ GetLatestRelease: Releases_GetLatestRelease;
4800
+ GetReleaseByTag: Releases_GetReleaseByTag;
4801
+ DeleteRelease: Releases_DeleteRelease;
4802
+ GetReleaseByID: Releases_GetReleaseByID;
4803
+ PatchRelease: Releases_PatchRelease;
4804
+ PostReleaseAssetUploadConfirmation: Releases_PostReleaseAssetUploadConfirmation;
4805
+ PostReleaseAssetUploadURL: Releases_PostReleaseAssetUploadURL;
4806
+ DeleteReleaseAsset: Releases_DeleteReleaseAsset;
4807
+ GetReleaseAsset: Releases_GetReleaseAsset;
4808
+ };
4809
+ GitSettings: {
4810
+ ListBranchProtections: GitSettings_ListBranchProtections;
4811
+ PostBranchProtection: GitSettings_PostBranchProtection;
4812
+ DeleteBranchProtection: GitSettings_DeleteBranchProtection;
4813
+ GetBranchProtection: GitSettings_GetBranchProtection;
4814
+ PatchBranchProtection: GitSettings_PatchBranchProtection;
4815
+ GetPipelineSettings: GitSettings_GetPipelineSettings;
4816
+ PutPipelineSettings: GitSettings_PutPipelineSettings;
4817
+ GetPullRequestSettings: GitSettings_GetPullRequestSettings;
4818
+ PutPullRequestSettings: GitSettings_PutPullRequestSettings;
4819
+ GetPushLimitSettings: GitSettings_GetPushLimitSettings;
4820
+ PutPushLimitSettings: GitSettings_PutPushLimitSettings;
4821
+ };
4822
+ }
4823
+ //#endregion
4824
+ //#region src/index.d.ts
4825
+ declare const getClient: (baseUrl: string, token: string) => Client;
4826
+ //#endregion
4827
+ export { getClient };