node-cnb 1.2.8 → 1.2.9

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.
package/types.d.ts DELETED
@@ -1,3678 +0,0 @@
1
- export type ApiBranch = {
2
- commit: {
3
- sha: string;
4
- };
5
- name: string;
6
- protected: boolean;
7
- };
8
-
9
- export type ApiBranchDetail = {
10
- commit: ApiCommit;
11
- name: string;
12
- protected: boolean;
13
- };
14
-
15
- export 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_pushes: boolean;
23
- allow_pushes: boolean;
24
- id: string;
25
- required_approved_review_count: number;
26
- required_approved_review_ratio: number;
27
- required_commit_signatures: boolean;
28
- required_linear_history: boolean;
29
- required_master_approve: boolean;
30
- required_must_auto_merge: boolean;
31
- required_must_push_via_pull_request: boolean;
32
- required_pull_request_reviews: boolean;
33
- required_status_checks: boolean;
34
- rule: string;
35
- };
36
-
37
- export type ApiCommit = {
38
- author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
39
- commit: ApiCommitObject;
40
- committer: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
41
- parents: ApiCommitParent[];
42
- sha: string;
43
- };
44
-
45
- export type ApiCommitAsset = {
46
- author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
47
- content_type: string;
48
- created_at: string;
49
- id: string;
50
- name: string;
51
- path: string;
52
- size_in_byte: number;
53
- updated_at: string;
54
- };
55
-
56
- export type ApiCommitDiffFilePatch = {
57
- additions: number;
58
- deletions: number;
59
- name: string;
60
- patch: string;
61
- path: string;
62
- status: string;
63
- };
64
-
65
- export type ApiCommitObject = {
66
- author: ApiSignature;
67
- comment_count: number;
68
- committer: ApiSignature;
69
- message: string;
70
- tree: ApiCommitObjectTree;
71
- verification: ApiCommitObjectVerification;
72
- };
73
-
74
- export type ApiCommitObjectTree = {
75
- sha: string;
76
- };
77
-
78
- export type ApiCommitObjectVerification = {
79
- payload: string;
80
- resone: string;
81
- signature: string;
82
- verified: boolean;
83
- };
84
-
85
- export type ApiCommitParent = {
86
- sha: string;
87
- };
88
-
89
- export type ApiCommitStatus = {
90
- context: string;
91
- created_at: string;
92
- description: string;
93
- state: string;
94
- target_url: string;
95
- updated_at: string;
96
- };
97
-
98
- export type ApiCompareResponse = {
99
- base_commit: ApiCommit;
100
- commits: ApiCommit[];
101
- files: ApiCommitDiffFilePatch[];
102
- head_commit: ApiCommit;
103
- merge_base_commit: ApiCommit;
104
- total_commits: number;
105
- };
106
-
107
- export type ApiContent = {
108
- content: string;
109
- encoding: string;
110
- entries: ApiTreeEntry[];
111
- name: string;
112
- path: string;
113
- sha: string;
114
- size: number;
115
- type: string;
116
- };
117
-
118
- export type ApiIssue = {
119
- assignees: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[];
120
- author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
121
- comment_count: number;
122
- created_at: string;
123
- labels: ApiLabel[];
124
- number: string;
125
- priority: string;
126
- state: string;
127
- state_reason: string;
128
- title: string;
129
- updated_at: string;
130
- };
131
-
132
- export type ApiIssueComment = {
133
- author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
134
- body: string;
135
- created_at: string;
136
- id: string;
137
- updated_at: string;
138
- };
139
-
140
- export type ApiIssueDetail = {
141
- assignees: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[];
142
- author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
143
- body: string;
144
- comment_count: number;
145
- created_at: string;
146
- labels: ApiLabel[];
147
- number: string;
148
- priority: string;
149
- state: string;
150
- state_reason: string;
151
- title: string;
152
- updated_at: string;
153
- };
154
-
155
- export type ApiLabel = {
156
- color: string;
157
- description: string;
158
- id: string;
159
- name: string;
160
- };
161
-
162
- export 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
-
170
- export type ApiMergePullResponse = {
171
- merged: boolean;
172
- message: string;
173
- sha: string;
174
- };
175
-
176
- export type ApiPatchIssueCommentForm = {
177
- body: string;
178
- };
179
-
180
- export type ApiPatchIssueForm = {
181
- body: string;
182
-
183
- /**Priority of this issue. Can be one of: `p0`, `p1`, `p2`, `p3`, `""`.*/
184
- priority: string;
185
-
186
- /**State of this issue. Either `open` or `closed`.*/
187
- state: string;
188
-
189
- /**StateReason can be one of: `completed`, `not_planned`, `reopened`*/
190
- state_reason: string;
191
- title: string;
192
- };
193
-
194
- export type ApiPatchLabelForm = {
195
-
196
- /**The hexadecimal color code for the label, without the leading `#`.*/
197
- color: string;
198
- description: string;
199
- new_name: string;
200
- };
201
-
202
- export type ApiPatchPullRequest = {
203
- body: string;
204
-
205
- /**State of this Pull Request. Either `open` or `closed`.*/
206
- state: string;
207
- title: string;
208
- };
209
-
210
- export type ApiPipelineSettings = {
211
- auto_trigger: boolean;
212
- forked_repo_auto_trigger: boolean;
213
- };
214
-
215
- export type ApiPostIssueCommentForm = {
216
- body: string;
217
- };
218
-
219
- export type ApiPostIssueForm = {
220
- assignees: string[];
221
- body: string;
222
- labels: string[];
223
-
224
- /**Priority of this issue. Can be one of: `p0`, `p1`, `p2`, `p3`, `""`.*/
225
- priority: string;
226
- title: string;
227
- };
228
-
229
- export type ApiPostIssueLabelsForm = {
230
- labels: string[];
231
- };
232
-
233
- export type ApiPostLabelForm = {
234
-
235
- /**The hexadecimal color code for the label, without the leading `#`.*/
236
- color: string;
237
- description: string;
238
- name: string;
239
- };
240
-
241
- export type ApiPostPullLabelsForm = {
242
- labels: string[];
243
- };
244
-
245
- export type ApiPull = {
246
- base: ApiPullRef;
247
- body: string;
248
- head: ApiPullRef;
249
- merged_by: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
250
- number: string;
251
- state: string;
252
- title: string;
253
- };
254
-
255
- export type ApiPullCommentCreationForm = {
256
- body: string;
257
- };
258
-
259
- export type ApiPullCreationForm = {
260
- base: string;
261
- body: string;
262
- head: string;
263
- head_repo: string;
264
- title: string;
265
- };
266
-
267
- export type ApiPullRef = {
268
- ref: string;
269
- repo: ApiRepo;
270
- sha: string;
271
- };
272
-
273
- export type ApiPullRequest = {
274
- assignees: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo[];
275
- author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
276
- base: ApiPullRef;
277
- blocked_on: string;
278
- comment_count: number;
279
- created_at: string;
280
- head: ApiPullRef;
281
- mergeable_state: string;
282
- merged_by: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
283
- number: string;
284
- repo: ApiRepo;
285
- review_count: number;
286
- state: string;
287
- title: string;
288
- updated_at: string;
289
- };
290
-
291
- export type ApiPullRequestComment = {
292
- author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
293
- body: string;
294
- created_at: string;
295
- updated_at: string;
296
- };
297
-
298
- export type ApiPullRequestSettings = {
299
- allow_merge_commit_merge: boolean;
300
- allow_rebase_merge: boolean;
301
- allow_squash_merge: boolean;
302
- master_auto_as_reviewer: boolean;
303
- merge_commit_message_style: string;
304
- squash_commit_message_style: string;
305
- };
306
-
307
- export type ApiPullReviewCommentCreationForm = {
308
- body: string;
309
- end_line: number;
310
- end_side: string;
311
- path: string;
312
- start_line: number;
313
- start_side: string;
314
-
315
- /**can be one of: line, file*/
316
- subject_type: string;
317
- };
318
-
319
- export type ApiPullReviewCreationForm = {
320
- body: string;
321
- comments: ApiPullReviewCommentCreationForm[];
322
- event: string;
323
- };
324
-
325
- export type ApiPushLimitSettings = {
326
- allow_single_push_number: number;
327
- check_single_push_number: boolean;
328
- only_master_can_push_tag: boolean;
329
- };
330
-
331
- export type ApiPutIssueLabelsForm = {
332
- labels: string[];
333
- };
334
-
335
- export type ApiPutPullLabelsForm = {
336
- labels: string[];
337
- };
338
-
339
- export type ApiRelease = {
340
- assets: ApiReleaseAsset[];
341
- author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
342
- body: string;
343
- created_at: string;
344
- draft: boolean;
345
- id: string;
346
- is_latest: boolean;
347
- name: string;
348
- prerelease: boolean;
349
- published_at: string;
350
- tag_commitish: string;
351
- tag_name: string;
352
- updated_at: string;
353
- };
354
-
355
- export type ApiReleaseAsset = {
356
- content_type: string;
357
- created_at: string;
358
- id: string;
359
- name: string;
360
- path: string;
361
- size: number;
362
- updated_at: string;
363
- uploader: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
364
- };
365
-
366
- export type ApiRepo = {
367
- id: string;
368
- name: string;
369
- path: string;
370
- web_url: string;
371
- };
372
-
373
- export type ApiSignature = {
374
- date: string;
375
- email: string;
376
- name: string;
377
- };
378
-
379
- export type ApiTag = {
380
- commit: ApiCommit;
381
- name: string;
382
- target: string;
383
- target_type: string;
384
- };
385
-
386
- export type ApiTreeEntry = {
387
- name: string;
388
- path: string;
389
- sha: string;
390
- type: string;
391
- };
392
-
393
- export type ChartDependency = {
394
-
395
- /**Alias usable alias to be used for the chart*/
396
- alias: string;
397
-
398
- /**A yaml path that resolves to a boolean, used for enabling/disabling charts (e.g. subchart1.enabled )*/
399
- condition: string;
400
-
401
- /**Enabled bool determines if chart should be loaded*/
402
- enabled: boolean;
403
-
404
- /**ImportValues holds the mapping of source values to parent key to be imported. Each item can be a
405
- string or pair of child/parent sublist items.*/
406
- 'import-values': any[];
407
-
408
- /**Name is the name of the dependency.
409
-
410
- This must mach the name in the dependency's Chart.yaml.*/
411
- name: string;
412
-
413
- /**The URL to the repository.
414
-
415
- Appending `index.yaml` to this string should result in a URL that can be
416
- used to fetch the repository index.*/
417
- repository: string;
418
-
419
- /**Tags can be used to group charts for enabling/disabling together*/
420
- tags: string[];
421
-
422
- /**Version is the version (range) of this chart.
423
-
424
- A lock file will always produce a single version, while a dependency
425
- may contain a semantic version range.*/
426
- version: string;
427
- };
428
-
429
- export type ChartMaintainer = {
430
-
431
- /**Email is an optional email address to contact the named maintainer*/
432
- email: string;
433
-
434
- /**Name is a user name or organization name*/
435
- name: string;
436
-
437
- /**URL is an optional URL to an address for the named maintainer*/
438
- url: string;
439
- };
440
-
441
- export type ChartMetadata = {
442
-
443
- /**Annotations are additional mappings uninterpreted by Helm,
444
- made available for inspection by other applications.*/
445
- annotations: any;
446
-
447
- /**The API Version of this chart. Required.*/
448
- apiVersion: string;
449
-
450
- /**The version of the application enclosed inside of this chart.*/
451
- appVersion: string;
452
-
453
- /**The condition to check to enable chart*/
454
- condition: string;
455
-
456
- /**Dependencies are a list of dependencies for a chart.*/
457
- dependencies: ChartDependency[];
458
-
459
- /**Whether or not this chart is deprecated*/
460
- deprecated: boolean;
461
-
462
- /**A one-sentence description of the chart*/
463
- description: string;
464
-
465
- /**The URL to a relevant project page, git repo, or contact person*/
466
- home: string;
467
-
468
- /**The URL to an icon file.*/
469
- icon: string;
470
-
471
- /**A list of string keywords*/
472
- keywords: string[];
473
-
474
- /**KubeVersion is a SemVer constraint specifying the version of Kubernetes required.*/
475
- kubeVersion: string;
476
-
477
- /**A list of name and URL/email address combinations for the maintainer(s)*/
478
- maintainers: ChartMaintainer[];
479
-
480
- /**The name of the chart. Required.*/
481
- name: string;
482
-
483
- /**Source is the URL to the source code of this chart*/
484
- sources: string[];
485
-
486
- /**The tags to check to enable chart*/
487
- tags: string;
488
-
489
- /**Specifies the chart type: application or library*/
490
- type: string;
491
-
492
- /**A SemVer 2 conformant version string of the chart. Required.*/
493
- version: string;
494
- };
495
-
496
- export type ConstantAccessRole = number;
497
-
498
- export type ConstantActivityType = string;
499
-
500
- export type ConstantChargeResType = string;
501
-
502
- export type ConstantRepoDisplayModule = number;
503
-
504
- export type ConstantRepoStatus = number;
505
-
506
- export type ConstantSearchResourceType = number;
507
-
508
- export type ConstantSlugType = number;
509
-
510
- export type ConstantUserEditable = number;
511
-
512
- export type ConstantUserType = number;
513
-
514
- export type ConstantVisibility = number;
515
-
516
- export type ConvertNullTime = {
517
- time: string;
518
-
519
- /**Valid is true if Time is not NULL*/
520
- valid: boolean;
521
- };
522
-
523
- export type DieWebErr = {
524
- errcode: number;
525
- errmsg: string;
526
- errparam: any;
527
- };
528
-
529
- export type DieWebError = {
530
- errcode: number;
531
- errmsg: string;
532
- errparam: any;
533
- };
534
-
535
- export type DtoAccessTokenItem = {
536
- created_at: string;
537
- description: string;
538
- expired_at: string;
539
- last_activity_at: string;
540
- resource_type: ConstantSlugType;
541
- scope: string;
542
- slug: string;
543
- title: string;
544
- token_fragment: string;
545
-
546
- /**id 的 string 格式,用于兼容前端 int64 支持*/
547
- token_id: string;
548
- };
549
-
550
- export type DtoAccessTokenPayload = {
551
- description: string;
552
- expired_at: ConvertNullTime;
553
- scope: string;
554
- slug: string;
555
- token: string;
556
- };
557
-
558
- export type DtoActivityCalendar = any;
559
-
560
- export type DtoActivityCalendarDate = {
561
- commit_count: number;
562
- issues_count: number;
563
- pr_count: number;
564
- score: number;
565
-
566
- /**有效cr数,代码评审通过且对应的pr被合入*/
567
- valid_cr_count: number;
568
-
569
- /**有效pr数,已被合入,且pr具有至少一个已通过的代码评审*/
570
- valid_pr_count: number;
571
- };
572
-
573
- export type DtoActivityCreateRepoDetail = {
574
- create_at: string;
575
-
576
- /**公仓转私仓或仓库被删除后为 null*/
577
- detail: any;
578
-
579
- /**activity 发生时仓库的 path,这时的 path 是可以公开的*/
580
- exposed_repo_path: string;
581
-
582
- /**仓库是否封禁*/
583
- freeze: boolean;
584
-
585
- /**仓库是否不可访问(公仓转私仓或仓库被删除后不可访问)*/
586
- repo_unaccessible: boolean;
587
-
588
- /**仓库可见性*/
589
- visibility_level: any;
590
- };
591
-
592
- export type DtoActivityDate = {
593
- code_review_count: number;
594
- code_reviews: DtoActivityRepoDetail[];
595
- commit_count: number;
596
- commits: DtoActivityRepoDetail[];
597
- group_count: number;
598
- groups: DtoActivityJoinGroupDetail[];
599
- issues: DtoActivityRepoDetail[];
600
- issues_count: number;
601
- private_score: number;
602
- pull_request_count: number;
603
- pull_requests: DtoActivityRepoDetail[];
604
- repo_count: number;
605
- repos: DtoActivityCreateRepoDetail[];
606
- };
607
-
608
- export type DtoActivityJoinGroupDetail = {
609
- create_at: string;
610
-
611
- /**组织详情,组织被删后为 null*/
612
- detail: any;
613
-
614
- /**组织别名,组织被删除后才有值*/
615
- remark: string;
616
- };
617
-
618
- export type DtoActivityMineData = {
619
- activity_type: ConstantActivityType;
620
- created_at: ConvertNullTime;
621
- repo: DtoActivityRepos;
622
- user: DtoActivityUsers;
623
- };
624
-
625
- export type DtoActivityRelease = {
626
- commit_hash: string;
627
- tag: string;
628
- title: string;
629
- };
630
-
631
- export type DtoActivityRepoDetail = {
632
-
633
- /**公仓转私仓或仓库被删除后为 null*/
634
- detail: any;
635
-
636
- /**activity 发生时仓库的 path,这时的 path 是可以公开的*/
637
- exposed_repo_path: string;
638
-
639
- /**仓库是否封禁*/
640
- freeze: boolean;
641
-
642
- /**仓库是否不可访问(公仓转私仓或仓库被删除后不可访问)*/
643
- repo_unaccessible: boolean;
644
- time: number;
645
-
646
- /**仓库可见性*/
647
- visibility_level: any;
648
- };
649
-
650
- export type DtoActivityRepos = {
651
- created_at: string;
652
- description: string;
653
- display_module: ConstantRepoDisplayModule;
654
- fork_count: number;
655
- forked_from: string;
656
- freeze: boolean;
657
- id: number;
658
- is_star: boolean;
659
-
660
- /**仓库程序语言,预留*/
661
- language: string;
662
-
663
- /**最新代码更新时间*/
664
- last_updated_at: any;
665
- license: string;
666
- mark_count: number;
667
- name: string;
668
- path: string;
669
- site: string;
670
- star_count: number;
671
- status: any;
672
- topics: string;
673
- updated_at: string;
674
- visibility_level: ConstantVisibility;
675
- };
676
-
677
- export type DtoActivitySlugDetail = {
678
-
679
- /**完整仓库路径*/
680
- path: string;
681
- };
682
-
683
- export type DtoActivityTotal = {
684
- activity_type: ConstantActivityType;
685
- unread: boolean;
686
- users: string[];
687
- };
688
-
689
- export type DtoActivityUsers = {
690
- address: string;
691
-
692
- /**用户赞赏码状态,0-无赞赏码,1-有*/
693
- appreciate_status: number;
694
- bio: string;
695
- company: string;
696
- created_at: string;
697
- follow_count: number;
698
- follow_repo_count: number;
699
- follower_count: number;
700
- freeze: boolean;
701
- gender: number;
702
- group_count: number;
703
- id: string;
704
- is_follow: boolean;
705
- location: string;
706
- nickname: string;
707
- repo_count: number;
708
- reward_amount: number;
709
- reward_count: number;
710
- site: string;
711
- stars_count: number;
712
- type: ConstantUserType;
713
- username: string;
714
-
715
- /**认证类型*/
716
- verified: number;
717
-
718
- /**认证过期时间*/
719
- verified_expire_in: string;
720
- wechat_mp: string;
721
- wechat_mp_qrcode: string;
722
- };
723
-
724
- export type DtoActivityWorkflowData = {
725
- activity_type: ConstantActivityType;
726
- created_at: ConvertNullTime;
727
- group: DtoOrganizationUnion;
728
- release: DtoActivityRelease;
729
- repo: DtoActivityRepos;
730
- user: DtoActivityUsers;
731
- };
732
-
733
- export type DtoAnnouncement = {
734
- announcement_msg: string;
735
- created_at: string;
736
- expired_at: string;
737
- id: string;
738
- pinned: number;
739
- title: string;
740
- updated_at: string;
741
- };
742
-
743
- export type DtoArtifactStatus = {
744
- status: string;
745
- };
746
-
747
- export type DtoAssetRecords = {
748
- id: string;
749
-
750
- /**来源地址,例如 release 附件的来源地址是对应的 release 页面。issue和pr文件没有。*/
751
- origin_path: string;
752
- path: string;
753
- referer: string;
754
- size_in_byte: number;
755
- };
756
-
757
- export type DtoAssetSize = {
758
- used_in_byte: string;
759
- };
760
-
761
- export type DtoAssets = {
762
- content_type: string;
763
- name: string;
764
- path: string;
765
- size: number;
766
- };
767
-
768
- export type DtoBoolResponse = {
769
- message: string;
770
- result: boolean;
771
- };
772
-
773
- export type DtoBudget = {
774
-
775
- /**单位:核时*/
776
- charge_type_ci: number;
777
- charge_type_ci_policy: number;
778
-
779
- /**ci价格,单位:分*/
780
- charge_type_ci_price: number;
781
- charge_type_dev: number;
782
- charge_type_dev_policy: number;
783
-
784
- /**开发价格,单位:分*/
785
- charge_type_dev_price: number;
786
-
787
- /**单位:Gib*/
788
- charge_type_git: number;
789
-
790
- /**折扣,没折扣是100*/
791
- charge_type_git_policy: number;
792
-
793
- /**git存储价格,单位:分*/
794
- charge_type_git_price: number;
795
- charge_type_object: number;
796
- charge_type_object_policy: number;
797
-
798
- /**对象存储价格,单位:分*/
799
- charge_type_object_price: number;
800
-
801
- /**预算单名称*/
802
- name: string;
803
- status: DtoBudgetSts;
804
-
805
- /**云账号id*/
806
- uin: string;
807
- };
808
-
809
- export type DtoBudgetSts = number;
810
-
811
- export type DtoBuildLogsResult = {
812
-
813
- /**构建数据列表*/
814
- data: DtoLogInfo[];
815
-
816
- /**当前仓库是否已经有构建记录,1 表示有构建记录,0 表示没有构建记录*/
817
- init: boolean;
818
-
819
- /**当前时间戳*/
820
- timestamp: number;
821
-
822
- /**总数*/
823
- total: number;
824
- };
825
-
826
- export type DtoBuildResult = {
827
-
828
- /**构建链接*/
829
- buildLogUrl: string;
830
-
831
- /**message*/
832
- message: string;
833
-
834
- /**构建号*/
835
- sn: string;
836
- };
837
-
838
- export type DtoBuildStatusResult = {
839
-
840
- /**流水线的状态*/
841
- pipelinesStatus: any;
842
-
843
- /**构建状态*/
844
- status: string;
845
- };
846
-
847
- export type DtoCnbRegistry = {
848
- artifact_policy: string;
849
- created_at: string;
850
- description: string;
851
- freeze: boolean;
852
- id: string;
853
- kind: string;
854
- last_push_time: string;
855
- last_push_user: DtoUsers;
856
- name: string;
857
- overwrite_policy: string;
858
- pkg_count: number;
859
- updated_at: string;
860
- used_size: number;
861
- visibility_level: ConstantVisibility;
862
- };
863
-
864
- export type DtoChartPackageDetail = {
865
- address: string;
866
- desc: string;
867
- last_pusher: DtoLastPusher;
868
- package: string;
869
- pull_count: number;
870
- recent_pull_count: number;
871
- slug: string;
872
- tag_total: number;
873
- tags: DtoChartTag[];
874
- };
875
-
876
- export type DtoChartTag = {
877
- digest: string;
878
- is_deprecated: boolean;
879
- last_pusher: DtoLastPusher;
880
- metadata: ChartMetadata;
881
- name: string;
882
- pull_count: number;
883
- recent_pull_count: number;
884
- size: number;
885
- };
886
-
887
- export type DtoChartTagDetail = {
888
- address: string;
889
- is_deprecated: boolean;
890
- last_pusher: DtoLastPusher;
891
- metadata: ChartMetadata;
892
- package: string;
893
- pull_count: number;
894
- recent_pull_count: number;
895
- size: number;
896
- slug: string;
897
- tag: string;
898
- };
899
-
900
- export type DtoCheckFollowingResponse = {
901
- is_following: boolean;
902
- };
903
-
904
- export type DtoCheckStarResponse = {
905
- is_star: boolean;
906
- };
907
-
908
- export type DtoCleanPolicy = string;
909
-
910
- export type DtoCleanPolicyStatus = string;
911
-
912
- export type DtoContainerAnnotation = {
913
- revision: string;
914
- version: string;
915
- };
916
-
917
- export type DtoContainerImage = {
918
- arch: string;
919
- digest: string;
920
- layers: DtoContainerImageLayer[];
921
- os: string;
922
- size: number;
923
- };
924
-
925
- export type DtoContainerImageLayer = {
926
- instruction: string;
927
- size: number;
928
- };
929
-
930
- export type DtoContainerPackageDetail = {
931
- address: string;
932
- desc: string;
933
- last_pusher: DtoLastPusher;
934
- package: string;
935
- pull_count: number;
936
- recent_pull_count: number;
937
- slug: string;
938
- tag_total: number;
939
- tags: DtoContainerTag[];
940
- };
941
-
942
- export type DtoContainerTag = {
943
- annotations: DtoContainerAnnotation;
944
- images: DtoContainerImage[];
945
- last_pusher: DtoLastPusher;
946
- name: string;
947
- pull_count: number;
948
- recent_pull_count: number;
949
- };
950
-
951
- export type DtoContainerTagDetail = {
952
- address: string;
953
- annotations: DtoContainerAnnotation;
954
- image: DtoContainerImage;
955
- last_pusher: DtoLastPusher;
956
- options: DtoContainerImage[];
957
- package: string;
958
- pull_count: number;
959
- recent_pull_count: number;
960
- slug: string;
961
- tag: string;
962
- };
963
-
964
- export type DtoCopyReq = {
965
- description: string;
966
- group: string;
967
- name: string;
968
- visibility: string;
969
- };
970
-
971
- export type DtoCountResponse = {
972
- group: number;
973
- repo: number;
974
- user: number;
975
- };
976
-
977
- export type DtoCreateGroupReq = {
978
-
979
- /**BindDomain 根组织绑定的域名*/
980
- bind_domain: string;
981
- description: string;
982
- path: string;
983
- remark: string;
984
- };
985
-
986
- export type DtoCreateInvitationRequest = {
987
- is_outside_collaborator: boolean;
988
- member_number: number;
989
- member_role: ConstantAccessRole;
990
- validity_hour: number;
991
- };
992
-
993
- export type DtoCreateInvitationResponse = {
994
- link_token: string;
995
- resource_name: string;
996
- resource_type: ConstantSlugType;
997
- username: string;
998
- };
999
-
1000
- export type DtoCreateMissionReq = {
1001
- description: string;
1002
- name: string;
1003
- repos: string[];
1004
- visibility: string;
1005
- };
1006
-
1007
- export type DtoCreateRegistryReq = {
1008
- artifact_policy: string;
1009
- description: string;
1010
- kind: string;
1011
- name: string;
1012
- overwrite_policy: string;
1013
- visibility: string;
1014
- };
1015
-
1016
- export type DtoCreateRepoReq = {
1017
- description: string;
1018
- license: string;
1019
- name: string;
1020
- visibility: string;
1021
- };
1022
-
1023
- export type DtoDependency = {
1024
- artifact: string;
1025
- name: string;
1026
- };
1027
-
1028
- export type DtoFile = {
1029
- name: string;
1030
- size: number;
1031
- };
1032
-
1033
- export type DtoForkReq = {
1034
- branch: string;
1035
- description: string;
1036
- group: string;
1037
- name: string;
1038
- };
1039
-
1040
- export type DtoForks = {
1041
- created_at: string;
1042
- freeze: boolean;
1043
- nickname: string;
1044
- path: string;
1045
- user_freeze: boolean;
1046
- username: string;
1047
- };
1048
-
1049
- export type DtoGetActivityMineDetailRsp = {
1050
- activity_mine_datas: DtoActivityMineData[];
1051
- next_offset: string;
1052
- };
1053
-
1054
- export type DtoGetActivityWorkflowDetailRsp = {
1055
- activity_workflow_datas: DtoActivityWorkflowData[];
1056
- next_offset: string;
1057
- };
1058
-
1059
- export type DtoGetMineCreateDetailRsp = {
1060
- issue_datas: DtoIssueData[];
1061
- mine_type: string;
1062
- pull_request_datas: DtoPullRequestData[];
1063
- };
1064
-
1065
- export type DtoGetTodoDetailRsp = {
1066
- issue_datas: DtoIssueData[];
1067
- pull_request_datas: DtoPullRequestData[];
1068
- todo_type: string;
1069
- };
1070
-
1071
- export type DtoGroupSettingReq = {
1072
-
1073
- /**是否对外隐藏组织成员,0 - 否, 1 - 是*/
1074
- hide_members: number;
1075
-
1076
- /**是否对外隐藏子组织,0 - 否, 1 - 是*/
1077
- hide_sub_groups: number;
1078
- };
1079
-
1080
- export type DtoHarborRepository = {
1081
-
1082
- /**The description of the repository*/
1083
- description: string;
1084
-
1085
- /**The repository labels*/
1086
- labels: string[];
1087
-
1088
- /**The push time of the artifact inside the repository
1089
- Format: date-time*/
1090
- push_time: string;
1091
-
1092
- /**The ID of the pusher who push the artifact.*/
1093
- pusher_id: number;
1094
-
1095
- /**The count that the artifact inside the repository recent pulled*/
1096
- recent_pull_count: number;
1097
- };
1098
-
1099
- export type DtoInheritMembersUser = {
1100
- access_level: ConstantAccessRole;
1101
- created_at: string;
1102
- freeze: boolean;
1103
- id: string;
1104
- join_time: string;
1105
- nickname: string;
1106
- self_member: boolean;
1107
- type: ConstantUserType;
1108
- username: string;
1109
-
1110
- /**认证类型*/
1111
- verified: number;
1112
-
1113
- /**认证过期时间*/
1114
- verified_expire_in: string;
1115
- };
1116
-
1117
- export type DtoInteractionType = string;
1118
-
1119
- export type DtoInvitation = {
1120
- count: number;
1121
- creator: string;
1122
- expire: number;
1123
- is_outside_collaborator: boolean;
1124
- resource: DtoResources;
1125
- role: ConstantAccessRole;
1126
- status: string;
1127
- };
1128
-
1129
- export type DtoIssueData = {
1130
- associated_pull_request_counts: number;
1131
- comment_counts: number;
1132
- label: DtoLabel[];
1133
- number: number;
1134
- pinned: boolean;
1135
- priority: string;
1136
- slug: string;
1137
- slug_freeze: boolean;
1138
- state: string;
1139
- title: string;
1140
- todo_id: string;
1141
- };
1142
-
1143
- export type DtoLabel = {
1144
- color: string;
1145
- description: string;
1146
- name: string;
1147
- };
1148
-
1149
- export type DtoLastPusher = {
1150
- is_frozen: boolean;
1151
- name: string;
1152
- nickname: string;
1153
- push_at: string;
1154
- };
1155
-
1156
- export type DtoListInheritMembers = {
1157
- inherit_path: string;
1158
- total: number;
1159
- users: DtoInheritMembersUser[];
1160
- };
1161
-
1162
- export type DtoLogInfo = {
1163
-
1164
- /**构建日志 url*/
1165
- buildLogUrl: string;
1166
-
1167
- /**提交日志 title*/
1168
- commitTitle: string;
1169
-
1170
- /**构建开始时间*/
1171
- createTime: string;
1172
-
1173
- /**构建耗时,单位:ms*/
1174
- duration: number;
1175
-
1176
- /**事件名*/
1177
- event: string;
1178
-
1179
- /**事件 url*/
1180
- eventUrl: string;
1181
-
1182
- /**构建用户是否被冻结*/
1183
- freeze: boolean;
1184
-
1185
- /**组织名*/
1186
- groupName: string;
1187
-
1188
- /**流水线标签*/
1189
- labels: string;
1190
-
1191
- /**构建用户昵称*/
1192
- nickName: string;
1193
-
1194
- /**失败的子流水线个数*/
1195
- pipelineFailCount: number;
1196
-
1197
- /**成功的子流水线个数*/
1198
- pipelineSuccessCount: number;
1199
-
1200
- /**子流水线个数*/
1201
- pipelineTotalCount: number;
1202
-
1203
- /**commitid*/
1204
- sha: string;
1205
-
1206
- /**仓库路径*/
1207
- slug: string;
1208
-
1209
- /**构建号*/
1210
- sn: string;
1211
-
1212
- /**源分支名*/
1213
- sourceRef: string;
1214
-
1215
- /**源仓库路径*/
1216
- sourceSlug: string;
1217
-
1218
- /**构建状态*/
1219
- status: string;
1220
-
1221
- /**目标分支名*/
1222
- targetRef: string;
1223
-
1224
- /**构建 title*/
1225
- title: string;
1226
-
1227
- /**用户名*/
1228
- userName: string;
1229
- };
1230
-
1231
- export type DtoMavenPackageDetail = {
1232
- address: string;
1233
- desc: string;
1234
- last_pusher: DtoLastPusher;
1235
- package: string;
1236
- pull_count: number;
1237
- recent_pull_count: number;
1238
- slug: string;
1239
- tag_total: number;
1240
- tags: DtoMavenTag[];
1241
- };
1242
-
1243
- export type DtoMavenTag = {
1244
- desc: string;
1245
- digest: string;
1246
- last_pusher: DtoLastPusher;
1247
- name: string;
1248
- pull_count: number;
1249
- recent_pull_count: number;
1250
- size: number;
1251
- status: string;
1252
- };
1253
-
1254
- export type DtoMavenTagDetail = {
1255
- address: string;
1256
- desc: string;
1257
- files: DtoFile[];
1258
- last_pusher: DtoLastPusher;
1259
- package: string;
1260
- pull_count: number;
1261
- recent_pull_count: number;
1262
- size: number;
1263
- slug: string;
1264
- status: string;
1265
- tag: string;
1266
- tags: DtoMavenTag[];
1267
- };
1268
-
1269
- export type DtoMemberAccessLevel = {
1270
- access_level: ConstantAccessRole;
1271
- path: string;
1272
- };
1273
-
1274
- export type DtoMemberAccessLevelInSlugUnion = {
1275
- access_level: ConstantAccessRole;
1276
- inherit: boolean;
1277
- read_privilege: boolean;
1278
- write_privilege: boolean;
1279
- };
1280
-
1281
- export type DtoMineCreateTotal = {
1282
- issue_count: number;
1283
- pull_request_count: number;
1284
- total: number;
1285
- };
1286
-
1287
- export type DtoMissionPatch = {
1288
- description: string;
1289
- ref_repos: string[];
1290
- };
1291
-
1292
- export type DtoMissionWithPath = {
1293
- created_at: string;
1294
- description: string;
1295
- freeze: boolean;
1296
- id: number;
1297
- name: string;
1298
- path: string;
1299
- updated_at: string;
1300
- visibility_level: ConstantVisibility;
1301
- };
1302
-
1303
- export type DtoMissionWithRepos = {
1304
- created_at: string;
1305
- description: string;
1306
- freeze: boolean;
1307
- id: number;
1308
- name: string;
1309
- repos: DtoRepos4User[];
1310
- updated_at: string;
1311
- visibility_level: ConstantVisibility;
1312
- };
1313
-
1314
- export type DtoMissions4User = {
1315
- access: any;
1316
- created_at: string;
1317
- description: string;
1318
- freeze: boolean;
1319
- id: number;
1320
- name: string;
1321
- path: string;
1322
- star_time: string;
1323
- stared: boolean;
1324
- updated_at: string;
1325
- visibility_level: ConstantVisibility;
1326
- };
1327
-
1328
- export type DtoNpmPackageDetail = {
1329
- address: string;
1330
- desc: string;
1331
- last_pusher: DtoLastPusher;
1332
- package: string;
1333
- pull_count: number;
1334
- recent_pull_count: number;
1335
- slug: string;
1336
- tag_total: number;
1337
- tags: DtoNpmTag[];
1338
- };
1339
-
1340
- export type DtoNpmTag = {
1341
- desc: string;
1342
- digest: string;
1343
- last_pusher: DtoLastPusher;
1344
- name: string;
1345
- pull_count: number;
1346
- recent_pull_count: number;
1347
- size: number;
1348
- status: string;
1349
- };
1350
-
1351
- export type DtoNpmTagDetail = {
1352
- address: string;
1353
- dependencies: DtoDependency[];
1354
- desc: string;
1355
- files: DtoFile[];
1356
- last_pusher: DtoLastPusher;
1357
- package: string;
1358
- pull_count: number;
1359
- recent_pull_count: number;
1360
- size: number;
1361
- slug: string;
1362
- status: string;
1363
- tag: string;
1364
- tags: DtoNpmTag[];
1365
- };
1366
-
1367
- export type DtoOhpmPackageDetail = {
1368
- address: string;
1369
- desc: string;
1370
- last_pusher: DtoLastPusher;
1371
- package: string;
1372
- pull_count: number;
1373
- recent_pull_count: number;
1374
- slug: string;
1375
- tag_total: number;
1376
- tags: DtoOhpmTag[];
1377
- };
1378
-
1379
- export type DtoOhpmTag = {
1380
- desc: string;
1381
- digest: string;
1382
- last_pusher: DtoLastPusher;
1383
- name: string;
1384
- pull_count: number;
1385
- recent_pull_count: number;
1386
- size: number;
1387
- status: string;
1388
- };
1389
-
1390
- export type DtoOhpmTagDetail = {
1391
- address: string;
1392
- dependencies: DtoDependency[];
1393
- desc: string;
1394
- files: DtoFile[];
1395
- last_pusher: DtoLastPusher;
1396
- package: string;
1397
- pull_count: number;
1398
- recent_pull_count: number;
1399
- size: number;
1400
- slug: string;
1401
- status: string;
1402
- tag: string;
1403
- tags: DtoOhpmTag[];
1404
- };
1405
-
1406
- export type DtoOrganizationAccess = {
1407
-
1408
- /**AccessRole 用户在当前资源的最大权限*/
1409
- access_role: any;
1410
- all_member_count: number;
1411
-
1412
- /**下面所有层级子组织*/
1413
- all_sub_group_count: number;
1414
-
1415
- /**下面所有层级子任务*/
1416
- all_sub_mission_count: number;
1417
- all_sub_registry_count: number;
1418
-
1419
- /**下面所有层级子仓库*/
1420
- all_sub_repo_count: number;
1421
- created_at: string;
1422
- description: string;
1423
- domain: string;
1424
- email: string;
1425
- follow_count: number;
1426
- freeze: boolean;
1427
- has_sub_group: boolean;
1428
- id: number;
1429
- member_count: number;
1430
- name: string;
1431
- path: string;
1432
- remark: string;
1433
- site: string;
1434
-
1435
- /**下一级子组织数量*/
1436
- sub_group_count: number;
1437
- sub_mission_count: number;
1438
- sub_registry_count: number;
1439
-
1440
- /**下一级子仓库*/
1441
- sub_repo_count: number;
1442
- updated_at: string;
1443
- wechat_mp: string;
1444
- };
1445
-
1446
- export type DtoOrganizationSettingWithParent = {
1447
-
1448
- /**上级group设置了hide_members为1,则下级都不能显示*/
1449
- can_show_members: boolean;
1450
-
1451
- /**上级group设置了hide_sub_groups为1,则下级都不能显示*/
1452
- can_show_sub_groups: boolean;
1453
-
1454
- /**是否对外隐藏组织成员,0 - 否, 1 - 是*/
1455
- hide_members: number;
1456
-
1457
- /**是否对外隐藏子组织,0 - 否, 1 - 是*/
1458
- hide_sub_groups: number;
1459
- };
1460
-
1461
- export type DtoOrganizationUnion = {
1462
- all_member_count: number;
1463
-
1464
- /**下面所有层级子组织*/
1465
- all_sub_group_count: number;
1466
-
1467
- /**下面所有层级子任务*/
1468
- all_sub_mission_count: number;
1469
- all_sub_registry_count: number;
1470
-
1471
- /**下面所有层级子仓库*/
1472
- all_sub_repo_count: number;
1473
- created_at: string;
1474
- description: string;
1475
- domain: string;
1476
- email: string;
1477
- follow_count: number;
1478
- freeze: boolean;
1479
- has_sub_group: boolean;
1480
- id: number;
1481
- member_count: number;
1482
- name: string;
1483
- path: string;
1484
- remark: string;
1485
- site: string;
1486
-
1487
- /**下一级子组织数量*/
1488
- sub_group_count: number;
1489
- sub_mission_count: number;
1490
- sub_registry_count: number;
1491
-
1492
- /**下一级子仓库*/
1493
- sub_repo_count: number;
1494
- updated_at: string;
1495
- wechat_mp: string;
1496
- };
1497
-
1498
- export type DtoOutsideCollaboratorInRepo = {
1499
- access_level: ConstantAccessRole;
1500
- created_at: string;
1501
- freeze: boolean;
1502
- id: string;
1503
- join_time: string;
1504
- nickname: string;
1505
- type: ConstantUserType;
1506
- username: string;
1507
-
1508
- /**认证类型*/
1509
- verified: number;
1510
-
1511
- /**认证过期时间*/
1512
- verified_expire_in: string;
1513
- };
1514
-
1515
- export type DtoOverwritePolicy = string;
1516
-
1517
- export type DtoPack = {
1518
- name: string;
1519
- res_type: ConstantChargeResType;
1520
-
1521
- /**单位: GiB/核时*/
1522
- size: number;
1523
- type: DtoPackType;
1524
- };
1525
-
1526
- export type DtoPackType = number;
1527
-
1528
- export type DtoPackage = {
1529
- count: number;
1530
- description: string;
1531
- labels: string[];
1532
- last_artifact_name: string;
1533
- last_pusher: DtoLastPusher;
1534
- name: string;
1535
- package: string;
1536
- package_type: DtoPackageType;
1537
- pull_count: number;
1538
- recent_pull_count: number;
1539
- };
1540
-
1541
- export type DtoPackageDetail = {
1542
- docker: DtoContainerPackageDetail;
1543
- helm: DtoChartPackageDetail;
1544
- maven: DtoMavenPackageDetail;
1545
- npm: DtoNpmPackageDetail;
1546
- ohpm: DtoOhpmPackageDetail;
1547
- };
1548
-
1549
- export type DtoPackageType = string;
1550
-
1551
- export type DtoPipelineStatus = {
1552
-
1553
- /**流水线耗时*/
1554
- duration: number;
1555
-
1556
- /**流水线各 stage 的状态*/
1557
- stages: DtoStage[];
1558
-
1559
- /**流水线状态*/
1560
- status: string;
1561
- };
1562
-
1563
- export type DtoPullRequestData = {
1564
- associated_issue_counts: number;
1565
- build_status: string;
1566
- comment_counts: number;
1567
- label: DtoLabel[];
1568
- mergeable_state: string;
1569
- number: number;
1570
- pinned: boolean;
1571
- slug: string;
1572
- slug_freeze: boolean;
1573
- src_ref: string;
1574
- state: string;
1575
- target_ref: string;
1576
- title: string;
1577
- todo_id: string;
1578
- };
1579
-
1580
- export type DtoQuota = {
1581
-
1582
- /**The hard limits of the quota,example: { "hard": { "storage": -1}}*/
1583
- hard: any;
1584
- };
1585
-
1586
- export type DtoQuotaRsp = {
1587
-
1588
- /**The hard limits of the quota,example: { "hard": { "storage": -1}}*/
1589
- hard: any;
1590
-
1591
- /**The repository name of the quota*/
1592
- repository_name: string;
1593
-
1594
- /**The cnb default quota value*/
1595
- storage_per_project: string;
1596
-
1597
- /**The used limits of the quota,example: { "used": { "storage": 0}}*/
1598
- used: any;
1599
- };
1600
-
1601
- export type DtoRegistry4User = {
1602
- access: any;
1603
- artifact_policy: string;
1604
- created_at: string;
1605
- description: string;
1606
- freeze: boolean;
1607
- id: string;
1608
- kind: string;
1609
- last_push_time: string;
1610
- last_push_user: DtoUsers;
1611
- name: string;
1612
- overwrite_policy: string;
1613
- path: string;
1614
- pkg_count: number;
1615
- star_time: string;
1616
- stared: boolean;
1617
- updated_at: string;
1618
- used_size: number;
1619
- visibility_level: ConstantVisibility;
1620
- };
1621
-
1622
- export type DtoRegistryCleanDetail = {
1623
- artifact_num: number;
1624
- clean_policy: DtoCleanPolicy;
1625
- status: DtoCleanPolicyStatus;
1626
- };
1627
-
1628
- export type DtoRegistryPatch = {
1629
- description: string;
1630
- };
1631
-
1632
- export type DtoRegistryPolicy = {
1633
- clean_policy_detail: DtoRegistryCleanDetail;
1634
- overwrite_policy: DtoOverwritePolicy;
1635
- version_policy: DtoVersionPolicy;
1636
- };
1637
-
1638
- export type DtoRepoCoreHour = {
1639
- ci_used_core_Sec: string;
1640
- ci_used_core_hour: string;
1641
- code_used_core_Sec: string;
1642
- code_used_core_hour: string;
1643
- };
1644
-
1645
- export type DtoRepoPatch = {
1646
- description: string;
1647
- license: string;
1648
- site: string;
1649
- topics: string[];
1650
- };
1651
-
1652
- export type DtoRepoStarUsers = {
1653
- my_follow_count: number;
1654
- total: number;
1655
- users: DtoStarUser[];
1656
- };
1657
-
1658
- export type DtoRepoVolume = {
1659
- is_deleted: boolean;
1660
- resource_id: string;
1661
- resource_type: ConstantSlugType;
1662
- slug: string;
1663
- volume: string;
1664
- };
1665
-
1666
- export type DtoRepos4User = {
1667
- access: any;
1668
- created_at: string;
1669
- description: string;
1670
- display_module: ConstantRepoDisplayModule;
1671
- fork_count: number;
1672
-
1673
- /**预留*/
1674
- forked_from_repo: any;
1675
- freeze: boolean;
1676
- id: number;
1677
-
1678
- /**仓库程序语言,预留*/
1679
- language: string;
1680
-
1681
- /**最新代码更新人姓名*/
1682
- last_update_nickname: string;
1683
-
1684
- /**最新代码更新人账户名*/
1685
- last_update_username: string;
1686
-
1687
- /**最新代码更新时间*/
1688
- last_updated_at: any;
1689
- license: string;
1690
- mark_count: number;
1691
- name: string;
1692
-
1693
- /**完整仓库路径*/
1694
- path: string;
1695
- site: string;
1696
- star_count: number;
1697
- star_time: string;
1698
- stared: boolean;
1699
- status: any;
1700
- tags: {
1701
- name: string;
1702
- }[];
1703
- topics: string;
1704
- updated_at: string;
1705
- visibility_level: ConstantVisibility;
1706
- web_url: string;
1707
- };
1708
-
1709
- export type DtoRepos4UserBase = {
1710
- created_at: string;
1711
- description: string;
1712
- display_module: ConstantRepoDisplayModule;
1713
- fork_count: number;
1714
-
1715
- /**预留*/
1716
- forked_from_repo: any;
1717
- freeze: boolean;
1718
- id: number;
1719
-
1720
- /**仓库程序语言,预留*/
1721
- language: string;
1722
-
1723
- /**最新代码更新人姓名*/
1724
- last_update_nickname: string;
1725
-
1726
- /**最新代码更新人账户名*/
1727
- last_update_username: string;
1728
-
1729
- /**最新代码更新时间*/
1730
- last_updated_at: any;
1731
- license: string;
1732
- mark_count: number;
1733
- name: string;
1734
-
1735
- /**完整仓库路径*/
1736
- path: string;
1737
- site: string;
1738
- star_count: number;
1739
- status: any;
1740
- tags: {
1741
- name: string;
1742
- }[];
1743
- topics: string;
1744
- updated_at: string;
1745
- visibility_level: ConstantVisibility;
1746
- web_url: string;
1747
- };
1748
-
1749
- export type DtoResourceGroup = {
1750
- created_at: string;
1751
- description: string;
1752
- domain: string;
1753
- email: string;
1754
- freeze: boolean;
1755
- id: number;
1756
- name: string;
1757
- path: string;
1758
- remark: string;
1759
- site: string;
1760
- updated_at: string;
1761
- wechat_mp: string;
1762
- };
1763
-
1764
- export type DtoResourceMission = {
1765
- created_at: string;
1766
- description: string;
1767
- freeze: boolean;
1768
- id: number;
1769
- name: string;
1770
- path: string;
1771
- updated_at: string;
1772
- visibility_level: ConstantVisibility;
1773
- };
1774
-
1775
- export type DtoResourceRegistry = {
1776
- artifact_policy: string;
1777
- created_at: string;
1778
- description: string;
1779
- freeze: boolean;
1780
- id: string;
1781
- kind: string;
1782
- last_push_time: string;
1783
- last_push_user: DtoUsers;
1784
- name: string;
1785
- overwrite_policy: string;
1786
- path: string;
1787
- pkg_count: number;
1788
- updated_at: string;
1789
- used_size: number;
1790
- visibility_level: ConstantVisibility;
1791
- };
1792
-
1793
- export type DtoResourceRepo = {
1794
- created_at: string;
1795
- freeze: boolean;
1796
- id: number;
1797
- name: string;
1798
- path: string;
1799
- status: any;
1800
- updated_at: string;
1801
- visibility_level: ConstantVisibility;
1802
- };
1803
-
1804
- export type DtoResources = {
1805
- group: DtoResourceGroup;
1806
- mission: DtoResourceMission;
1807
- registry: DtoResourceRegistry;
1808
- repo: DtoResourceRepo;
1809
- type: ConstantSlugType;
1810
- };
1811
-
1812
- export type DtoSearchResponseAny = {
1813
- resource_type: ConstantSearchResourceType;
1814
- results: any;
1815
- };
1816
-
1817
- export type DtoSlugMemberCount = {
1818
-
1819
- /**继承成员总数*/
1820
- inherited_member_count: number;
1821
-
1822
- /**直接成员总数*/
1823
- member_count: number;
1824
-
1825
- /**外部协作者总数*/
1826
- outside_collaborator_count: number;
1827
- };
1828
-
1829
- export type DtoSlugs = {
1830
- freeze: boolean;
1831
- path: string;
1832
- resource_id: number;
1833
- resource_type: ConstantSlugType;
1834
- };
1835
-
1836
- export type DtoSpecialAmount = {
1837
- compute_build_corehour: number;
1838
- compute_build_desc: string;
1839
- compute_build_expire: string;
1840
- compute_develop_corehour: number;
1841
- compute_develop_desc: string;
1842
- compute_develop_expire: string;
1843
- storage_git_desc: string;
1844
- storage_git_expire: string;
1845
- storage_git_gib: number;
1846
- storage_object_desc: string;
1847
- storage_object_expire: string;
1848
- storage_object_gib: number;
1849
- };
1850
-
1851
- export type DtoStage = {
1852
-
1853
- /**stage 耗时*/
1854
- duration: number;
1855
-
1856
- /**stage 状态*/
1857
- status: string;
1858
- };
1859
-
1860
- export type DtoStarUser = {
1861
- created_at: string;
1862
- freeze: boolean;
1863
- id: string;
1864
- is_follow: boolean;
1865
- nickname: string;
1866
- stared_at: string;
1867
- type: ConstantUserType;
1868
- username: string;
1869
-
1870
- /**认证类型*/
1871
- verified: number;
1872
-
1873
- /**认证过期时间*/
1874
- verified_expire_in: string;
1875
- };
1876
-
1877
- export type DtoStartBuildReq = {
1878
-
1879
- /**触发分支,默认为主分支*/
1880
- branch: string;
1881
-
1882
- /**指定配置文件内容,yaml 格式*/
1883
- config: string;
1884
-
1885
- /**环境变量,对象格式*/
1886
- env: any;
1887
-
1888
- /**事件名,必须是 api_trigger 或以 api_trigger_ 开头,默认为 `api_trigger`*/
1889
- event: string;
1890
-
1891
- /**是否跳过 git status 的上报*/
1892
- ignoreGitStatus: string;
1893
-
1894
- /**commit id ,优先级比 tag 高,默认为分支最新提交记录*/
1895
- sha: string;
1896
-
1897
- /**是否等待构建正式触发,为false时会立刻返回 sn 和 buildLogUrl*/
1898
- sync: string;
1899
-
1900
- /**触发 tag,优先级比 branch 高*/
1901
- tag: string;
1902
- };
1903
-
1904
- export type DtoSystemAcceleration = {
1905
- priority: number;
1906
- url: string;
1907
- user_name: string;
1908
- };
1909
-
1910
- export type DtoTag = {
1911
- docker: DtoContainerTag[];
1912
- helm: DtoChartTag[];
1913
- maven: DtoMavenTag[];
1914
- npm: DtoNpmTag[];
1915
- ohpm: DtoOhpmTag[];
1916
- package: string;
1917
- };
1918
-
1919
- export type DtoTagDetail = {
1920
- docker: DtoContainerTagDetail;
1921
- helm: DtoChartTagDetail;
1922
- maven: DtoMavenTagDetail;
1923
- npm: DtoNpmTagDetail;
1924
- ohpm: DtoOhpmTagDetail;
1925
- };
1926
-
1927
- export type DtoTimeVolume = {
1928
- time_rfc3339: string;
1929
- volume: string;
1930
- };
1931
-
1932
- export type DtoTodoTotal = {
1933
- issue_complete_count: number;
1934
- issue_pending_count: number;
1935
- pull_request_complete_count: number;
1936
- pull_request_pending_count: number;
1937
- total: number;
1938
- };
1939
-
1940
- export type DtoTransferSlugReq = {
1941
- source: string;
1942
- target: string;
1943
- };
1944
-
1945
- export type DtoUpdateGroupAvatarReq = {
1946
-
1947
- /**新头像 url*/
1948
- url: string;
1949
- };
1950
-
1951
- export type DtoUpdateGroupReq = {
1952
- description: string;
1953
- domain: string;
1954
- email: string;
1955
- remark: string;
1956
- site: string;
1957
- wechat_mp: string;
1958
- };
1959
-
1960
- export type DtoUpdateMembersRequest = {
1961
- access_level: string;
1962
- };
1963
-
1964
- export type DtoUploadAssetsResponse = {
1965
- assets: DtoAssets;
1966
- form: any;
1967
-
1968
- /**后续调用 confirm 接口用的*/
1969
- token: string;
1970
- upload_url: string;
1971
- };
1972
-
1973
- export type DtoUploadRequestParams = {
1974
- name: string;
1975
- size: number;
1976
- };
1977
-
1978
- export type DtoUserEmailPayload = {
1979
- email: string;
1980
- };
1981
-
1982
- export type DtoUserEmailType = string;
1983
-
1984
- export type DtoUserEmailWithCodePayload = {
1985
- code: string;
1986
- email: string;
1987
- };
1988
-
1989
- export type DtoUserEmailWithTypePayload = {
1990
- email: string;
1991
- type: DtoUserEmailType;
1992
- };
1993
-
1994
- export type DtoUserEmails = {
1995
-
1996
- /**ContactEmail 用户通知邮箱*/
1997
- contact_email: string;
1998
-
1999
- /**Email 用户git提交邮箱,是 emails 里面的某一个*/
2000
- email: string;
2001
-
2002
- /**Emails 邮箱列表*/
2003
- emails: string[];
2004
-
2005
- /**系统默认邮箱*/
2006
- system_email: string;
2007
-
2008
- /**系统默认邮箱是否可以通知*/
2009
- system_email_contact: boolean;
2010
- };
2011
-
2012
- export type DtoUserFollowResult = {
2013
- freeze: boolean;
2014
-
2015
- /**查询人是否follow了此用户*/
2016
- is_following: boolean;
2017
- nickname: string;
2018
- username: string;
2019
- };
2020
-
2021
- export type DtoUsers = {
2022
- created_at: string;
2023
- freeze: boolean;
2024
- id: string;
2025
- nickname: string;
2026
- type: ConstantUserType;
2027
- username: string;
2028
-
2029
- /**认证类型*/
2030
- verified: number;
2031
-
2032
- /**认证过期时间*/
2033
- verified_expire_in: string;
2034
- };
2035
-
2036
- export type DtoUsersIdentity = {
2037
- phone: string;
2038
- };
2039
-
2040
- export type DtoUsersLangPayload = {
2041
- language: string;
2042
- };
2043
-
2044
- export type DtoUsersResult = {
2045
- address: string;
2046
-
2047
- /**用户赞赏码状态,0-无赞赏码,1-有*/
2048
- appreciate_status: number;
2049
- bio: string;
2050
- company: string;
2051
- created_at: string;
2052
- follow_count: number;
2053
- follow_repo_count: number;
2054
- follower_count: number;
2055
- freeze: boolean;
2056
- gender: number;
2057
- group_count: number;
2058
- id: string;
2059
-
2060
- /**查询人是否follow了此用户*/
2061
- is_following: boolean;
2062
- location: string;
2063
- nickname: string;
2064
- repo_count: number;
2065
- reward_amount: number;
2066
- reward_count: number;
2067
- site: string;
2068
- stars_count: number;
2069
- type: ConstantUserType;
2070
- username: string;
2071
-
2072
- /**认证类型*/
2073
- verified: number;
2074
-
2075
- /**认证过期时间*/
2076
- verified_expire_in: string;
2077
- wechat_mp: string;
2078
- wechat_mp_qrcode: string;
2079
- };
2080
-
2081
- export type DtoUsersResultForSelf = {
2082
- address: string;
2083
-
2084
- /**用户赞赏码状态,0-无赞赏码,1-有*/
2085
- appreciate_status: number;
2086
- bio: string;
2087
- company: string;
2088
- created_at: string;
2089
- editable: ConstantUserEditable;
2090
- follow_count: number;
2091
- follow_repo_count: number;
2092
- follower_count: number;
2093
- freeze: boolean;
2094
- gender: number;
2095
- group_count: number;
2096
- id: string;
2097
- language: string;
2098
- last_login_at: string;
2099
- last_login_ip: string;
2100
- location: string;
2101
- next_updated_name_at: string;
2102
- nickname: string;
2103
- repo_count: number;
2104
- reward_amount: number;
2105
- reward_count: number;
2106
- site: string;
2107
- stars_count: number;
2108
- type: ConstantUserType;
2109
- updated_name_at: string;
2110
- updated_nick_at: string;
2111
- username: string;
2112
-
2113
- /**认证类型*/
2114
- verified: number;
2115
-
2116
- /**认证过期时间*/
2117
- verified_expire_in: string;
2118
- wechat_mp: string;
2119
- wechat_mp_qrcode: string;
2120
- };
2121
-
2122
- export type DtoUsersWithAccessLevelInSlug = {
2123
- access_level: ConstantAccessRole;
2124
- created_at: string;
2125
- freeze: boolean;
2126
- id: string;
2127
- join_time: string;
2128
- nickname: string;
2129
- type: ConstantUserType;
2130
- username: string;
2131
-
2132
- /**认证类型*/
2133
- verified: number;
2134
-
2135
- /**认证过期时间*/
2136
- verified_expire_in: string;
2137
- };
2138
-
2139
- export type DtoVersionPolicy = string;
2140
-
2141
- export type DtoVolumeUsed = any;
2142
-
2143
- export type DtoWorkspaceDeleteReq = {
2144
-
2145
- /**创建环境的流水线 id*/
2146
- pipelineId: string;
2147
- };
2148
-
2149
- export type DtoWorkspaceDeleteResult = {
2150
-
2151
- /**返回码,0 表示成功,1 表示失败*/
2152
- code: number;
2153
-
2154
- /**描述*/
2155
- message: string;
2156
- };
2157
-
2158
- export type DtoWorkspaceDetailResult = {
2159
-
2160
- /**Cursor 客户端 remote-ssh 访问 schema 地址*/
2161
- cursor: string;
2162
-
2163
- /**VSCode 客户端 remote-ssh 访问 schema 地址*/
2164
- vscode: string;
2165
-
2166
- /**WebIDE 访问 url*/
2167
- webide: string;
2168
- };
2169
-
2170
- export type DtoWorkspaceInfo = {
2171
-
2172
- /**分支名,例如:main*/
2173
- branch: string;
2174
-
2175
- /**备份的 commit 数*/
2176
- commit_count: number;
2177
-
2178
- /**开发环境创建时间,例如:2024-12-02T03:20:22.000Z*/
2179
- create_time: string;
2180
-
2181
- /**开发环境持续时间,单位:ms(非实时更新)*/
2182
- duration: number;
2183
-
2184
- /**备份的文件数*/
2185
- file_count: number;
2186
-
2187
- /**备份的文件列表,仅前五个备份文件相对路径*/
2188
- file_list: string;
2189
-
2190
- /**环境销毁时远程最新的 commit short hash*/
2191
- latest_sha: string;
2192
-
2193
- /**创建环境的子流水线 id*/
2194
- pipeline_id: string;
2195
-
2196
- /**备份的 stash 数*/
2197
- remote_stash_count: number;
2198
-
2199
- /**仓库地址*/
2200
- repo_url: string;
2201
-
2202
- /**恢复备份代码的流水线 id,如果有值表示备份代码已被恢复(重建环境时会恢复备份代码)*/
2203
- restore_id: string;
2204
-
2205
- /**仓库路径,例如:groupname/reponame*/
2206
- slug: string;
2207
-
2208
- /**创建开发环境的流水线 sn*/
2209
- sn: string;
2210
-
2211
- /**开发环境是否支持 ssh 链接*/
2212
- ssh: boolean;
2213
-
2214
- /**工作区状态,running: 开发环境已启动,closed:开发环境已关闭*/
2215
- status: string;
2216
-
2217
- /**开发环境默认工作区路径*/
2218
- workspace: string;
2219
- };
2220
-
2221
- export type DtoWorkspaceListResult = {
2222
-
2223
- /**开发环境状态,running: 开发环境已启动,closed:开发环境已关闭*/
2224
- hasMore: boolean;
2225
-
2226
- /**查询开始时间,格式:YYYY-MM-DD HH:mm:ssZZ,例如:2024-12-01 00:00:00+0800*/
2227
- list: DtoWorkspaceInfo[];
2228
-
2229
- /**查询结束时间,格式:YYYY-MM-DD HH:mm:ssZZ,例如:2024-12-01 00:00:00+0800*/
2230
- pageInfo: any;
2231
-
2232
- /**分支名,例如:main*/
2233
- total: number;
2234
- };
2235
-
2236
- export type DtoWorkspacePageInfo = {
2237
- page: number;
2238
- pageSize: number;
2239
- };
2240
-
2241
- export type DtoStorage = {
2242
-
2243
- /**example: { "hard": { "storage": -1}},移除 omitempty ,Storage = 0,会生成 {"hard":{"storage":0}}*/
2244
- storage: number;
2245
- };
2246
-
2247
- export type GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo = {
2248
- freeze: boolean;
2249
- nickname: string;
2250
- username: string;
2251
- };
2252
-
2253
- export type GitWoaComCnbMonorepoGitInternalAppGitServiceBffWebUserInfo = {
2254
- freeze: boolean;
2255
- nickname: string;
2256
- username: string;
2257
- };
2258
-
2259
- export type GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo = {
2260
- nickname: string;
2261
- username: string;
2262
- };
2263
-
2264
- export type GitWoaComCnbMonorepoGitInternalDtoWebUserInfo = {
2265
- freeze: boolean;
2266
- nickname: string;
2267
- username: string;
2268
- };
2269
-
2270
- export type GitWoaComCnbMonorepoMissionMissionResourceDtoWebUserInfo = {
2271
- nickname: string;
2272
- username: string;
2273
- };
2274
-
2275
- export type HandlerCreateIssueCommentForm = {
2276
- body: string;
2277
- };
2278
-
2279
- export type HandlerCreateIssueForm = {
2280
- assignees: string[];
2281
- body: string;
2282
- labels: string[];
2283
-
2284
- /**p0, p1, p2, p3, ""。 single choice。*/
2285
- priority: string;
2286
- title: string;
2287
- };
2288
-
2289
- export type HandlerCreateLabelForm = {
2290
- color: string;
2291
- description: string;
2292
- name: string;
2293
- };
2294
-
2295
- export type HandlerGitIgnoreTemplate = {
2296
- name: string;
2297
- source: string;
2298
- };
2299
-
2300
- export type HandlerIssueNumber = {
2301
- number: string;
2302
- };
2303
-
2304
- export type HandlerLabelId = {
2305
- id: string;
2306
- };
2307
-
2308
- export type HandlerLicense = {
2309
- body: string;
2310
- conditions: string[];
2311
- description: string;
2312
- key: string;
2313
- limitations: string[];
2314
- name: string;
2315
- permissions: string[];
2316
- spdx_id: string;
2317
- };
2318
-
2319
- export type HandlerLicenseListItem = {
2320
- key: string;
2321
- name: string;
2322
- spdx_id: string;
2323
- };
2324
-
2325
- export type HandlerLogoutRes = {
2326
- url: string;
2327
- };
2328
-
2329
- export type HandlerMissionFilter = {
2330
-
2331
- /**属性名*/
2332
- field: string;
2333
-
2334
- /**筛选符*/
2335
- operator: string;
2336
-
2337
- /**属性值*/
2338
- value: string[];
2339
- };
2340
-
2341
- export type HandlerMissionFilterFrom = {
2342
- selectors: HandlerMissionFilter[];
2343
- };
2344
-
2345
- export type HandlerUpdateIssueForm = {
2346
- body: string;
2347
-
2348
- /**p0, p1, p2, p3, ""。 single choice。*/
2349
- priority: string;
2350
-
2351
- /**open or closed*/
2352
- state: string;
2353
-
2354
- /**completed, not_planned, reopened*/
2355
- state_reason: string;
2356
- title: string;
2357
- };
2358
-
2359
- export type HandlerUpdateItemField = {
2360
- id: string;
2361
- value: string[];
2362
- };
2363
-
2364
- export type HandlerUpdateItemFieldInBatchForm = {
2365
- field: string;
2366
- type: string;
2367
- updated_item_fields: HandlerUpdateItemField[];
2368
- };
2369
-
2370
- export type HandlerUpdateLabelForm = {
2371
- color: string;
2372
- description: string;
2373
- new_name: string;
2374
- };
2375
-
2376
- export type HttpUpdateUserInfoPayload = {
2377
- address: string;
2378
- bio: string;
2379
- company: string;
2380
- location: string;
2381
- name: string;
2382
- nickname: string;
2383
- site: string;
2384
- wechat_mp: string;
2385
- wechat_mp_qrcode: string;
2386
- };
2387
-
2388
- export type IdentityMpPhoneReq = {
2389
- code: string;
2390
- };
2391
-
2392
- export type IdentityState = {
2393
- nickName: string;
2394
- ok: boolean;
2395
- };
2396
-
2397
- export type IdentityTicket = {
2398
- state: string;
2399
- };
2400
-
2401
- export type LabelOption = {
2402
- color: string;
2403
- description: string;
2404
- id: string;
2405
- name: string;
2406
- };
2407
-
2408
- export type OpenapiCommitAssetUploadUrl = {
2409
- expires_in_sec: number;
2410
- upload_url: string;
2411
- verify_url: string;
2412
- };
2413
-
2414
- export type OpenapiCreateBranchForm = {
2415
- name: string;
2416
- start_point: string;
2417
- };
2418
-
2419
- export type OpenapiHeadRef = {
2420
- name: string;
2421
- protected: boolean;
2422
- };
2423
-
2424
- export type OpenapiPatchReleaseForm = {
2425
- body: string;
2426
- draft: boolean;
2427
- make_latest: string;
2428
- name: string;
2429
- prerelease: boolean;
2430
- };
2431
-
2432
- export type OpenapiPostCommitAssetUploadUrlForm = {
2433
- asset_name: string;
2434
- };
2435
-
2436
- export type OpenapiPostReleaseAssetUploadUrlForm = {
2437
- asset_name: string;
2438
- overwrite: boolean;
2439
- };
2440
-
2441
- export type OpenapiPostReleaseForm = {
2442
- body: string;
2443
- draft: boolean;
2444
- make_latest: string;
2445
- name: string;
2446
- prerelease: boolean;
2447
- tag_name: string;
2448
- target_commitish: string;
2449
- };
2450
-
2451
- export type OpenapiPutCommitAnnotation = {
2452
- key: string;
2453
- value: string;
2454
- };
2455
-
2456
- export type OpenapiPutCommitAnnotationsForm = {
2457
- annotations: OpenapiPutCommitAnnotation[];
2458
- };
2459
-
2460
- export type OpenapiPutTagAnnotation = {
2461
- key: string;
2462
- value: string;
2463
- };
2464
-
2465
- export type OpenapiPutTagAnnotationsForm = {
2466
- annotations: OpenapiPutTagAnnotation[];
2467
- };
2468
-
2469
- export type OpenapiReleaseAssetUploadUrl = {
2470
- expires_in_sec: number;
2471
- upload_url: string;
2472
- verify_url: string;
2473
- };
2474
-
2475
- export type OrganizationsDomainsVerificationResponse = {
2476
- domains: string[];
2477
- domains_by: string[];
2478
- message: string;
2479
- result: boolean;
2480
- txt_match: boolean;
2481
- txt_value: string;
2482
- valid: boolean;
2483
- };
2484
-
2485
- export type ScopeAccessTokenConfig = {
2486
- config: ScopeGroupItem[];
2487
- scene: ScopeScene[];
2488
- };
2489
-
2490
- export type ScopeGroupItem = {
2491
- codes: ScopeRawItem[];
2492
- group: string;
2493
- };
2494
-
2495
- export type ScopeRawItem = {
2496
- code: string;
2497
- text: string;
2498
- values: string[];
2499
- };
2500
-
2501
- export type ScopeScene = {
2502
- description: string;
2503
- id: string;
2504
- title: string;
2505
- values: string[];
2506
- };
2507
-
2508
- export type WebAuthor = {
2509
- email: string;
2510
- user_name: string;
2511
- };
2512
-
2513
- export type WebBranch = {
2514
- commit: WebCommit;
2515
- is_protected: boolean;
2516
- name: string;
2517
- };
2518
-
2519
- export type WebBranchListItem = {
2520
- ahead: number;
2521
- associated_pull_request: WebBranchPullRequest;
2522
- behind: number;
2523
- commit: WebCommit;
2524
- dev_meta: number[];
2525
- is_head: boolean;
2526
- name: string;
2527
- protected: boolean;
2528
- };
2529
-
2530
- export type WebBranchProtection = {
2531
- allow_creation: boolean;
2532
- allow_deletions: boolean;
2533
- allow_force_pushes: boolean;
2534
- allow_master_creation: boolean;
2535
- allow_master_deletions: boolean;
2536
- allow_master_force_pushes: boolean;
2537
- allow_master_pushes: boolean;
2538
- allow_pushes: boolean;
2539
- id: string;
2540
- match_count: number;
2541
- required_approved_review_count: number;
2542
- required_approved_review_ratio: number;
2543
- required_commit_signatures: boolean;
2544
- required_linear_history: boolean;
2545
- required_master_approve: boolean;
2546
- required_must_auto_merge: boolean;
2547
- required_must_push_via_pull_request: boolean;
2548
- required_pull_request_reviews: boolean;
2549
- required_status_checks: boolean;
2550
- rule: string;
2551
- };
2552
-
2553
- export type WebBranchPullRequest = {
2554
- is_merged: boolean;
2555
- mergeable_state: string;
2556
- number: string;
2557
- state: string;
2558
- };
2559
-
2560
- export type WebCommit = {
2561
- author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffWebUserInfo;
2562
- commit: WebCommitObject;
2563
- commit_statuses: WebCommitStatuses;
2564
- committer: GitWoaComCnbMonorepoGitInternalAppGitServiceBffWebUserInfo;
2565
- files: WebCommitFiles;
2566
- parents: WebCommitParent[];
2567
- sha: string;
2568
- };
2569
-
2570
- export type WebCommitAnnotation = {
2571
- key: string;
2572
- meta: any;
2573
- value: string;
2574
- };
2575
-
2576
- export type WebCommitAnnotationInBatch = {
2577
- annotations: WebCommitAnnotation[];
2578
- commit_hash: string;
2579
- };
2580
-
2581
- export type WebCommitAsset = {
2582
- author: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
2583
- content_type: string;
2584
- created_at: string;
2585
- id: string;
2586
- name: string;
2587
- path: string;
2588
- size_in_byte: number;
2589
- updated_at: string;
2590
- };
2591
-
2592
- export type WebCommitFiles = {
2593
- base_commit: string;
2594
- diff: WebDiff;
2595
- head_commit: string;
2596
- straight: boolean;
2597
- };
2598
-
2599
- export type WebCommitObject = {
2600
- author: WebSignature;
2601
- comment_count: number;
2602
- committer: WebSignature;
2603
- message: string;
2604
- tree: WebCommitObjectTree;
2605
- verification: WebCommitObjectVerification;
2606
- };
2607
-
2608
- export type WebCommitObjectTree = {
2609
- sha: string;
2610
- };
2611
-
2612
- export type WebCommitObjectVerification = {
2613
- payload: string;
2614
- reason: string;
2615
- signature: string;
2616
- verified: boolean;
2617
- };
2618
-
2619
- export type WebCommitParent = {
2620
- sha: string;
2621
- };
2622
-
2623
- export type WebCommitStatus = {
2624
- context: string;
2625
- created_at: string;
2626
- description: string;
2627
- state: string;
2628
- target_url: string;
2629
- updated_at: string;
2630
- };
2631
-
2632
- export type WebCommitStatuses = {
2633
- sha: string;
2634
- state: string;
2635
- statuses: WebCommitStatus[];
2636
- };
2637
-
2638
- export type WebComparedCommits = {
2639
- base_commit: string;
2640
- commit_count: number;
2641
- commits: WebCommit[];
2642
- head_commit: string;
2643
- merge_base_commit: string;
2644
- straight: boolean;
2645
- };
2646
-
2647
- export type WebComparedFiles = {
2648
- base_commit: string;
2649
- diff: WebDiff;
2650
- head_commit: string;
2651
- merge_base_commit: string;
2652
- straight: boolean;
2653
- };
2654
-
2655
- export type WebComparedOverview = {
2656
- base_commit: string;
2657
- commit_count: number;
2658
- file_count: number;
2659
- head_commit: string;
2660
- merge_base_commit: string;
2661
- straight: boolean;
2662
- };
2663
-
2664
- export type WebComparedRawDiff = {
2665
- base_commit: string;
2666
- diff: string;
2667
- head_commit: string;
2668
- merge_base_commit: string;
2669
- straight: boolean;
2670
- };
2671
-
2672
- export type WebContributorTrend = {
2673
-
2674
- /**贡献者信息*/
2675
- author: any;
2676
-
2677
- /**贡献者的总提交数*/
2678
- commit_count: number;
2679
-
2680
- /**贡献者以周为单位的提交趋势数据*/
2681
- weeks: WebWeek[];
2682
- };
2683
-
2684
- export type WebCustomerField = {
2685
- name: string;
2686
- type: string;
2687
- value: string;
2688
- };
2689
-
2690
- export type WebDiff = {
2691
- base_commit: string;
2692
- file_exceeded: boolean;
2693
- file_limit: number;
2694
- files: WebDiffFile[];
2695
- head_commit: string;
2696
- stat: WebDiffStat;
2697
- };
2698
-
2699
- export type WebDiffEntry = {
2700
- change_type: string;
2701
- deletions: number;
2702
- file_index: number;
2703
- insertions: number;
2704
- is_bin: boolean;
2705
- old_path: string;
2706
- path: string;
2707
- };
2708
-
2709
- export type WebDiffFile = {
2710
- change_type: string;
2711
- deletions: number;
2712
- file_index: number;
2713
- insertions: number;
2714
- is_bin: boolean;
2715
- old_path: string;
2716
- path: string;
2717
- sections: WebDiffSection[];
2718
- };
2719
-
2720
- export type WebDiffLine = {
2721
- content: string;
2722
- left_line_number: number;
2723
- prefix: string;
2724
- right_line_number: number;
2725
- type: string;
2726
- };
2727
-
2728
- export type WebDiffSection = {
2729
- lines: WebDiffLine[];
2730
- };
2731
-
2732
- export type WebDiffStat = {
2733
- deletions: number;
2734
- entry_exceeded: boolean;
2735
- entry_limit: number;
2736
- insertions: number;
2737
- paths: WebDiffEntry[];
2738
- };
2739
-
2740
- export type WebEntry = {
2741
- entries: WebSubEntry[];
2742
- name: string;
2743
- path: string;
2744
- type: string;
2745
- };
2746
-
2747
- export type WebExpandBlob = {
2748
- lines: string[];
2749
- };
2750
-
2751
- export type WebFieldInfo = {
2752
- priority: WebFieldInfoPriority;
2753
- status: WebFieldInfoStatus;
2754
- };
2755
-
2756
- export type WebFieldInfoPriority = {
2757
- color_options: WebFieldInfoPriorityColorOption[];
2758
- html_type: string;
2759
- label: string;
2760
- name: string;
2761
- };
2762
-
2763
- export type WebFieldInfoPriorityColorOption = {
2764
- color: string;
2765
- label: string;
2766
- value: string;
2767
- };
2768
-
2769
- export type WebFieldInfoStatus = {
2770
- html_type: string;
2771
- label: string;
2772
- name: string;
2773
- options: any;
2774
- };
2775
-
2776
- export type WebFieldInfos = {
2777
- bug: WebFieldInfo;
2778
- stories: WebFieldInfo;
2779
- task: WebFieldInfo;
2780
- };
2781
-
2782
- export type WebFileContent = {
2783
- branch_count: number;
2784
- content: string;
2785
- encoding: string;
2786
- file_size_exceeded: boolean;
2787
- file_size_limit: number;
2788
- file_stat: WebFileStat;
2789
- initialized: boolean;
2790
- is_lfs: boolean;
2791
-
2792
- /**如果当前访问的是分支,那么表示是否是保护分支*/
2793
- is_protected: boolean;
2794
- last_commit: WebCommit;
2795
- lfs_oid: string;
2796
- name: string;
2797
- path: string;
2798
- repository: WebRepository;
2799
- size: number;
2800
- tag_count: number;
2801
- type: string;
2802
- };
2803
-
2804
- export type WebFileStat = {
2805
- mime_type: WebMimeType;
2806
- };
2807
-
2808
- export type WebForkSyncStatus = {
2809
- ahead: number;
2810
- behind: number;
2811
- upstream_ref: string;
2812
- upstream_slug: string;
2813
- };
2814
-
2815
- export type WebGetCommitAnnotationsInBatchForm = {
2816
- commit_hashes: string[];
2817
- keys: string[];
2818
- };
2819
-
2820
- export type WebGitHead = {
2821
- branch: string;
2822
- };
2823
-
2824
- export type WebGitSize = {
2825
- lfs_limit_in_kib: string;
2826
- lfs_used_in_kib: string;
2827
- limit_in_kib: string;
2828
- used_in_kib: string;
2829
- };
2830
-
2831
- export type WebIssue = {
2832
- assignees: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo[];
2833
- author: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
2834
- comment_count: number;
2835
- created_at: string;
2836
- labels: LabelOption[];
2837
- number: string;
2838
- priority: string;
2839
- state: string;
2840
- state_reason: string;
2841
- title: string;
2842
- updated_at: string;
2843
- };
2844
-
2845
- export type WebIssueActivity = {
2846
- actor: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
2847
- actor_access_role: string;
2848
- actor_meta: number[];
2849
- created_at: string;
2850
- payload: any;
2851
- type: string;
2852
- };
2853
-
2854
- export type WebIssueAssignee = {
2855
- user: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
2856
- };
2857
-
2858
- export type WebIssueDetail = {
2859
- assignees: WebIssueAssignee[];
2860
- author: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
2861
- body: string;
2862
- comment_count: number;
2863
- created_at: string;
2864
- labels: LabelOption[];
2865
- number: string;
2866
- participants: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo[];
2867
- priority: string;
2868
- state: string;
2869
- state_reason: string;
2870
- title: string;
2871
- updated_at: string;
2872
- };
2873
-
2874
- export type WebIssueResource = {
2875
- assignees: GitWoaComCnbMonorepoMissionMissionResourceDtoWebUserInfo[];
2876
- author: GitWoaComCnbMonorepoMissionMissionResourceDtoWebUserInfo;
2877
- comment_count: number;
2878
- created_at: string;
2879
- customer_fields: WebCustomerField[];
2880
- id: string;
2881
- labels: WebLabelOption[];
2882
- number: string;
2883
- priority: string;
2884
- repo_slug: string;
2885
- state: string;
2886
- state_reason: string;
2887
- title: string;
2888
- updated_at: string;
2889
- };
2890
-
2891
- export type WebIssueSummary = {
2892
- closed_issue_number: number;
2893
- closed_pull_request_number: number;
2894
- open_issue_number: number;
2895
- open_pull_request_number: number;
2896
- };
2897
-
2898
- export type WebIssueTemplate = {
2899
- content: string;
2900
- encoding: string;
2901
- name: string;
2902
- path: string;
2903
- };
2904
-
2905
- export type WebIssueTemplates = {
2906
- templates: WebIssueTemplate[];
2907
- };
2908
-
2909
- export type WebLfsFile = {
2910
- sha: string;
2911
- size: string;
2912
- };
2913
-
2914
- export type WebLabelOption = {
2915
- color: string;
2916
- created_at: string;
2917
- description: string;
2918
- id: string;
2919
- name: string;
2920
- repo_id: number;
2921
- slug: string;
2922
- updated_at: string;
2923
- };
2924
-
2925
- export type WebLabelWithCount = {
2926
- color: string;
2927
- created_at: string;
2928
- description: string;
2929
- id: string;
2930
- issue_count: number;
2931
- name: string;
2932
- pull_request_count: number;
2933
- updated_at: string;
2934
- };
2935
-
2936
- export type WebLastPushBranch = {
2937
- date_time: string;
2938
- is_head: boolean;
2939
- pull_number: number;
2940
- ref: string;
2941
- };
2942
-
2943
- export type WebMimeType = {
2944
- content_type: string;
2945
- externsion: string;
2946
- is_audio: boolean;
2947
- is_browsable_binary_type: boolean;
2948
- is_image: boolean;
2949
- is_pdf: boolean;
2950
- is_representable_as_text: boolean;
2951
- is_svg_image: boolean;
2952
- is_text: boolean;
2953
- is_video: boolean;
2954
- };
2955
-
2956
- export type WebMeta = {
2957
- gen_branch: string;
2958
- gen_hash: string;
2959
- updated_at: string;
2960
- };
2961
-
2962
- export type WebMissionField = {
2963
- interaction_type: DtoInteractionType;
2964
- name: string;
2965
- value: any[];
2966
- };
2967
-
2968
- export type WebMissionResources = {
2969
- issues: WebIssueResource[];
2970
- pull_requests: WebPullRequestResource[];
2971
- };
2972
-
2973
- export type WebOverviewBranches = {
2974
- active_branches: WebBranchListItem[];
2975
- default_branch: WebBranchListItem;
2976
- has_more_active_branch: boolean;
2977
- has_more_stale_branch: boolean;
2978
- has_more_yours_branch: boolean;
2979
- initialized: boolean;
2980
- stale_branches: WebBranchListItem[];
2981
- yours_branches: WebBranchListItem[];
2982
- };
2983
-
2984
- export type WebPermission = {
2985
- allow_push_git_tag: boolean;
2986
- };
2987
-
2988
- export type WebPipelineSettings = {
2989
- auto_trigger: boolean;
2990
- forked_repo_auto_trigger: boolean;
2991
- };
2992
-
2993
- export type WebPostCommitAssetForm = {
2994
- content_type: string;
2995
- name: string;
2996
- path: string;
2997
- size_in_byte: number;
2998
- token: string;
2999
- };
3000
-
3001
- export type WebPullRawDiff = {
3002
- base_commit: string;
3003
- diff: string;
3004
- head_commit: string;
3005
- merge_base_commit: string;
3006
- };
3007
-
3008
- export type WebPullRequest = {
3009
- assignees: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo[];
3010
- author: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
3011
- base_repo_ref: string;
3012
- blocked_on: string;
3013
- comment_count: number;
3014
- commit_count: number;
3015
- commit_statuses: WebCommitStatuses;
3016
- created_at: string;
3017
- file_count: number;
3018
- head_repo_ref: string;
3019
- is_merged: boolean;
3020
- is_ready_for_merge: boolean;
3021
- labels: LabelOption[];
3022
- last_acted_at: string;
3023
- merge_style: string;
3024
- mergeable_state: string;
3025
- number: string;
3026
- review_comment_count: number;
3027
- review_count: number;
3028
- reviewers: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo[];
3029
- state: string;
3030
- status_check_commit_sha: string;
3031
- title: string;
3032
- updated_at: string;
3033
- };
3034
-
3035
- export type WebPullRequestActivity = {
3036
- actor: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
3037
- actor_access_role: string;
3038
- actor_meta: number[];
3039
- created_at: string;
3040
- payload: any;
3041
- type: string;
3042
- };
3043
-
3044
- export type WebPullRequestAssignee = {
3045
- user: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
3046
- };
3047
-
3048
- export type WebPullRequestBranchProtection = {
3049
- allow_deletions: boolean;
3050
- allow_force_pushes: boolean;
3051
- allow_master_deletions: boolean;
3052
- allow_master_force_pushes: boolean;
3053
- dismiss_stale_review: boolean;
3054
- required_approved_review_count: number;
3055
- required_approved_review_ratio: number;
3056
- required_commit_signatures: boolean;
3057
- required_conversation_resolution: boolean;
3058
- required_linear_history: boolean;
3059
- required_master_approve: boolean;
3060
- required_must_auto_merge: boolean;
3061
- required_must_push_via_pull_request: boolean;
3062
- required_pull_request_reviews: boolean;
3063
- required_status_checks: boolean;
3064
- rule: string;
3065
- };
3066
-
3067
- export type WebPullRequestDetail = {
3068
- allow_merge_styles: string[];
3069
- assignees: WebPullRequestAssignee[];
3070
- author: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
3071
- base: WebPullRequestRepository;
3072
- base_repo_ref: string;
3073
- blocked_on: string;
3074
- body: string;
3075
- can_do_merge: boolean;
3076
- comment_count: number;
3077
- commit_count: number;
3078
- commit_statuses: WebCommitStatuses;
3079
- conflict_file_count: number;
3080
- conflict_files: string[];
3081
- created_at: string;
3082
- file_count: number;
3083
- head: WebPullRequestRepository;
3084
- head_repo_ref: string;
3085
- is_merged: boolean;
3086
- is_ready_for_merge: boolean;
3087
- labels: LabelOption[];
3088
- last_acted_at: string;
3089
- merge_style: string;
3090
- mergeable_state: string;
3091
- number: string;
3092
- participants: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo[];
3093
- review_comment_count: number;
3094
- review_count: number;
3095
- reviewers: WebPullRequestReviewer[];
3096
- reviews: WebPullRequestReviews;
3097
- settings: WebPullRequestSetting;
3098
- state: string;
3099
- status_check_commit_sha: string;
3100
- title: string;
3101
- updated_at: string;
3102
- };
3103
-
3104
- export type WebPullRequestFileComments = {
3105
- comments: WebPullRequestReviewComment[];
3106
- path: string;
3107
- total_comment: number;
3108
- };
3109
-
3110
- export type WebPullRequestFiles = {
3111
- base_commit: string;
3112
- diff: WebDiff;
3113
- file_comments: WebPullRequestFileComments[];
3114
- head_commit: string;
3115
- merge_base_commit: string;
3116
- };
3117
-
3118
- export type WebPullRequestRepository = {
3119
- ref: string;
3120
- slug: string;
3121
- };
3122
-
3123
- export type WebPullRequestResource = {
3124
- assignees: GitWoaComCnbMonorepoMissionMissionResourceDtoWebUserInfo[];
3125
- author: GitWoaComCnbMonorepoMissionMissionResourceDtoWebUserInfo;
3126
- base_repo_ref: string;
3127
- blocked_on: string;
3128
- comment_count: number;
3129
- commit_count: number;
3130
- created_at: string;
3131
- customer_fields: WebCustomerField[];
3132
- file_count: number;
3133
- head_repo_ref: string;
3134
- id: string;
3135
- is_merged: boolean;
3136
- is_ready_for_merge: boolean;
3137
- labels: WebLabelOption[];
3138
- last_acted_at: string;
3139
- merge_style: string;
3140
- mergeable_state: string;
3141
- number: string;
3142
- repo_slug: string;
3143
- reviewers: WebPullRequestResourceReviewer[];
3144
- state: string;
3145
- status_check_commit_sha: string;
3146
- title: string;
3147
- updated_at: string;
3148
- };
3149
-
3150
- export type WebPullRequestResourceReviewer = {
3151
- nickname: string;
3152
- review_state: string;
3153
- username: string;
3154
- };
3155
-
3156
- export type WebPullRequestReviewComment = {
3157
- author: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
3158
- author_meta: number[];
3159
- body: string;
3160
- comment_id: string;
3161
- commit_hash: string;
3162
- created_at: string;
3163
- diff_hunk: WebDiffLine[];
3164
- end_line: number;
3165
- end_side: string;
3166
- path: string;
3167
- replies: WebPullRequestReviewCommentReply[];
3168
- reply_to_comment_id: string;
3169
- review_id: string;
3170
- start_line: number;
3171
- start_side: string;
3172
- subject_type: string;
3173
- updated_at: string;
3174
- };
3175
-
3176
- export type WebPullRequestReviewCommentReply = {
3177
- author: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
3178
- body: string;
3179
- comment_id: string;
3180
- created_at: string;
3181
- updated_at: string;
3182
- };
3183
-
3184
- export type WebPullRequestReviewer = {
3185
- review_state: string;
3186
- user: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
3187
- };
3188
-
3189
- export type WebPullRequestReviews = {
3190
- approved_ratio: number;
3191
- master_reviewers: WebPullRequestReviewer[];
3192
- reviewers: WebPullRequestReviewer[];
3193
- state: string;
3194
- };
3195
-
3196
- export type WebPullRequestSetting = {
3197
- allow_merge_styles: string[];
3198
- base_branch_protection: WebPullRequestBranchProtection;
3199
- merge_commit_message_style: string;
3200
- squash_commit_message_style: string;
3201
- };
3202
-
3203
- export type WebPullRequestSettings = {
3204
- allow_merge_commit_merge: boolean;
3205
- allow_rebase_merge: boolean;
3206
- allow_squash_merge: boolean;
3207
- master_auto_as_reviewer: boolean;
3208
- merge_commit_message_style: string;
3209
- squash_commit_message_style: string;
3210
- };
3211
-
3212
- export type WebPullRequestState = {
3213
- commit_statuses: WebCommitStatuses;
3214
- merge_style: string;
3215
- mergeable_state: string;
3216
- number: string;
3217
- reviews: WebPullRequestReviews;
3218
- settings: WebPullRequestSetting;
3219
- state: string;
3220
- status_check_commit_sha: string;
3221
- };
3222
-
3223
- export type WebPullViewedFile = {
3224
- head_commit_sha: string;
3225
- is_viewed: boolean;
3226
- path: string;
3227
- };
3228
-
3229
- export type WebPushLimitSettings = {
3230
- allow_single_push_number: number;
3231
- check_single_push_number: boolean;
3232
- only_master_can_push_tag: boolean;
3233
- };
3234
-
3235
- export type WebReadMeFile = {
3236
- content: string;
3237
- encoding: string;
3238
- file_stat: WebFileStat;
3239
- name: string;
3240
- };
3241
-
3242
- export type WebRecommendBranchNameResponse = {
3243
- name: string;
3244
- };
3245
-
3246
- export type WebRecommendReviewer = {
3247
- user: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
3248
- };
3249
-
3250
- export type WebRef = {
3251
- is_head: boolean;
3252
- is_protected: boolean;
3253
- ref: string;
3254
- target_date: string;
3255
- target_hash: string;
3256
- target_type: string;
3257
- };
3258
-
3259
- export type WebRefWithPath = {
3260
- initialized: boolean;
3261
- path: string;
3262
- ref: string;
3263
- ref_simple_name: string;
3264
- ref_type: string;
3265
- };
3266
-
3267
- export type WebReferTapd = {
3268
- created: string;
3269
- due: string;
3270
- id: string;
3271
- name: string;
3272
- owner: string;
3273
- priority: string;
3274
- status: string;
3275
- type: string;
3276
- view_link: string;
3277
- workspace_id: string;
3278
- };
3279
-
3280
- export type WebRelease = {
3281
- assets: WebReleaseAsset[];
3282
- author: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
3283
- body: string;
3284
- created_at: string;
3285
- id: string;
3286
- is_draft: boolean;
3287
- is_latest: boolean;
3288
- is_prerelease: boolean;
3289
- last_updated_by: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
3290
- published_at: string;
3291
- tag_ref: string;
3292
- target_commit_hash: string;
3293
- title: string;
3294
- updated_at: string;
3295
- };
3296
-
3297
- export type WebReleaseAsset = {
3298
- author: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
3299
- content_type: string;
3300
- created_at: string;
3301
- id: string;
3302
- name: string;
3303
- path: string;
3304
- size_in_byte: number;
3305
- updated_at: string;
3306
- };
3307
-
3308
- export type WebReleaseList = {
3309
- release_count: number;
3310
- releases: WebRelease[];
3311
- tag_count: number;
3312
- };
3313
-
3314
- export type WebRepoContribSimply = {
3315
- meta: WebMeta;
3316
- top_100_contrib: WebUserContributorSimply[];
3317
- total: number;
3318
- };
3319
-
3320
- export type WebRepoContribTrend = {
3321
- meta: WebMeta;
3322
- repo_data: WebWeek[];
3323
- user_total: number;
3324
- users_data: WebContributorTrend[];
3325
- week_total: number;
3326
-
3327
- /**是否统计增删的行数, 默认总提交超过 10000 的仓库不统计*/
3328
- with_line_counts: boolean;
3329
- };
3330
-
3331
- export type WebRepoLanguage = {
3332
- name: string;
3333
- ratio: string;
3334
- };
3335
-
3336
- export type WebRepoLicense = {
3337
- file_name: string;
3338
- license: string;
3339
- };
3340
-
3341
- export type WebRepository = {
3342
- head_ref: string;
3343
- http_clone_url: string;
3344
- slug: string;
3345
- ssh_clone_url: string;
3346
- };
3347
-
3348
- export type WebResource = {
3349
- type: string;
3350
- };
3351
-
3352
- export type WebSignature = {
3353
- date: string;
3354
- email: string;
3355
- name: string;
3356
- };
3357
-
3358
- export type WebSubEntry = {
3359
- name: string;
3360
- path: string;
3361
- sha: string;
3362
- type: string;
3363
- };
3364
-
3365
- export type WebSubmodule = {
3366
- link_url: string;
3367
- };
3368
-
3369
- export type WebTag = {
3370
- commit: WebCommit;
3371
- has_release: boolean;
3372
- message: string;
3373
- tag: string;
3374
- tag_object: WebTagObject;
3375
- tagger: GitWoaComCnbMonorepoGitInternalAppGitServiceBffWebUserInfo;
3376
- };
3377
-
3378
- export type WebTagAnnotation = {
3379
- key: string;
3380
- meta: any;
3381
- value: string;
3382
- };
3383
-
3384
- export type WebTagList = {
3385
- release_count: number;
3386
- tag_count: number;
3387
- tags: WebTag[];
3388
- };
3389
-
3390
- export type WebTagObject = {
3391
- message: string;
3392
- tag: string;
3393
- tagger: WebSignature;
3394
- };
3395
-
3396
- export type WebTreeContent = {
3397
- branch_count: number;
3398
- commit_count: number;
3399
- commit_count_exceeded: boolean;
3400
- entries: WebTreeEntry[];
3401
- file_list_exceeded: boolean;
3402
- file_list_limit: number;
3403
- has_web_trigger: boolean;
3404
- initialized: boolean;
3405
-
3406
- /**如果当前访问的是分支,那么表示是否是保护分支*/
3407
- is_protected: boolean;
3408
- last_commit: WebCommit;
3409
- name: string;
3410
- path: string;
3411
- read_me: WebReadMeFile;
3412
- repository: WebRepository;
3413
- tag_count: number;
3414
- type: string;
3415
- };
3416
-
3417
- export type WebTreeEntry = {
3418
- is_lfs: boolean;
3419
- name: string;
3420
- path: string;
3421
- sha: string;
3422
- submodule: WebSubmodule;
3423
- type: string;
3424
- };
3425
-
3426
- export type WebTreeInfo = {
3427
- entries: WebTreeInfoEntry[];
3428
- path: string;
3429
- };
3430
-
3431
- export type WebTreeInfoEntry = {
3432
- last_commit: WebCommit;
3433
- name: string;
3434
- path: string;
3435
- };
3436
-
3437
- export type WebUpdateGitQuotaForm = {
3438
- quota_in_kib: number;
3439
- };
3440
-
3441
- export type WebUpdateLfsQuotaForm = {
3442
- quota_in_kib: number;
3443
- };
3444
-
3445
- export type WebUpdatePullViewedFileForm = {
3446
- path: string;
3447
- };
3448
-
3449
- export type WebUserContributorSimply = {
3450
- commit_count: number;
3451
- email: string;
3452
- user_name: string;
3453
- };
3454
-
3455
- export type WebWeek = {
3456
-
3457
- /**每周增加的行数*/
3458
- a: number;
3459
-
3460
- /**每周的提交数量*/
3461
- c: number;
3462
-
3463
- /**每周删除的行数*/
3464
- d: number;
3465
-
3466
- /**周的时间戳*/
3467
- w: number;
3468
- };
3469
-
3470
- export type WebapiCommitAssetId = {
3471
- asset_id: string;
3472
- };
3473
-
3474
- export type WebapiCreateBranchForm = {
3475
- new_branch_name: string;
3476
- start_point: string;
3477
- };
3478
-
3479
- export type WebapiCreateIssueCommentForm = {
3480
- body: string;
3481
- };
3482
-
3483
- export type WebapiCreatePullRequestCommentForm = {
3484
- body: string;
3485
- };
3486
-
3487
- export type WebapiCreatePullRequestForm = {
3488
- assignees: string[];
3489
- base_branch: string;
3490
- body: string;
3491
- head_branch: string;
3492
- head_repo_slug: string;
3493
- labels: string[];
3494
- reviewers: string[];
3495
- title: string;
3496
- };
3497
-
3498
- export type WebapiCreateTagForm = {
3499
- message: string;
3500
- name: string;
3501
- target: string;
3502
- };
3503
-
3504
- export type WebapiHeadRef = {
3505
- ref: string;
3506
- };
3507
-
3508
- export type WebapiInitRepositoryForm = {
3509
- gitignore_template: string;
3510
- is_auto_readme: boolean;
3511
- license_template: string;
3512
- };
3513
-
3514
- export type WebapiMergePullRequestForm = {
3515
- commit_message: string;
3516
- merge_style: string;
3517
- };
3518
-
3519
- export type WebapiPatchIssueAssigneesForm = {
3520
- assignees: string[];
3521
- };
3522
-
3523
- export type WebapiPatchPullRequestAssigneesForm = {
3524
- assignees: string[];
3525
- };
3526
-
3527
- export type WebapiPatchPullRequestReviewCommentForm = {
3528
- body: string;
3529
- };
3530
-
3531
- export type WebapiPatchPullRequestReviewForm = {
3532
- body: string;
3533
- };
3534
-
3535
- export type WebapiPatchPullRequestReviewersForm = {
3536
- reviewers: string[];
3537
- };
3538
-
3539
- export type WebapiPatchReleaseForm = {
3540
- body: string;
3541
- is_draft: boolean;
3542
- is_prerelease: boolean;
3543
- make_latest: string;
3544
- title: string;
3545
- };
3546
-
3547
- export type WebapiPostCommitFile = {
3548
- content: string;
3549
- encoding: string;
3550
- is_deleted: boolean;
3551
- is_executable: boolean;
3552
- path: string;
3553
- };
3554
-
3555
- export type WebapiPostCommitForm = {
3556
- base_branch: string;
3557
- files: WebapiPostCommitFile[];
3558
- message: string;
3559
- new_branch: string;
3560
- parent_commit_sha: string;
3561
- };
3562
-
3563
- export type WebapiPostPendingPullRequestReviewEventForm = {
3564
- body: string;
3565
- event: string;
3566
- };
3567
-
3568
- export type WebapiPostPullRequestReviewCommentForm = {
3569
- body: string;
3570
- end_line: number;
3571
- end_side: string;
3572
- path: string;
3573
- start_line: number;
3574
- start_side: string;
3575
-
3576
- /**can be one of: line, file*/
3577
- subject_type: string;
3578
- };
3579
-
3580
- export type WebapiPostPullRequestReviewForm = {
3581
- body: string;
3582
- comment: WebapiPostPullRequestReviewCommentForm;
3583
-
3584
- /**comment, approve, request_changes or ""*/
3585
- event: string;
3586
- };
3587
-
3588
- export type WebapiPostPullRequestReviewReplyForm = {
3589
- body: string;
3590
- reply_to_comment_id: string;
3591
- };
3592
-
3593
- export type WebapiPostReleaseAssetForm = {
3594
- content_type: string;
3595
- name: string;
3596
- path: string;
3597
- size_in_byte: number;
3598
- token: string;
3599
- };
3600
-
3601
- export type WebapiPostReleaseForm = {
3602
- body: string;
3603
- is_draft: boolean;
3604
- is_prerelease: boolean;
3605
- make_latest: string;
3606
- tag_name: string;
3607
- target_commitish: string;
3608
- title: string;
3609
- };
3610
-
3611
- export type WebapiPullRequestNumber = {
3612
- number: string;
3613
- };
3614
-
3615
- export type WebapiPullRequestReviewId = {
3616
- comment_ids: string[];
3617
- review_id: string;
3618
- };
3619
-
3620
- export type WebapiPutCommitAnnotation = {
3621
- key: string;
3622
- value: string;
3623
- };
3624
-
3625
- export type WebapiPutCommitAnnotationsForm = {
3626
- annotations: WebapiPutCommitAnnotation[];
3627
- };
3628
-
3629
- export type WebapiPutIssueLabelsForm = {
3630
- labels: string[];
3631
- };
3632
-
3633
- export type WebapiPutPullRequestLabelsForm = {
3634
- labels: string[];
3635
- };
3636
-
3637
- export type WebapiPutTagAnnotation = {
3638
- key: string;
3639
- value: string;
3640
- };
3641
-
3642
- export type WebapiPutTagAnnotationsForm = {
3643
- annotations: WebapiPutTagAnnotation[];
3644
- };
3645
-
3646
- export type WebapiReleaseAssetId = {
3647
- asset_id: string;
3648
- };
3649
-
3650
- export type WebapiUpdatePullRequestForm = {
3651
- body: string;
3652
- state: string;
3653
- title: string;
3654
- };
3655
-
3656
- export type WechatAuthorizedUser = {
3657
-
3658
- /**默认的过期天数*/
3659
- defaultMaxDay: number;
3660
- freeze: boolean;
3661
- headImgUrl: string;
3662
-
3663
- /**用户登陆过期天数可选项*/
3664
- maxDaysOptions: number[];
3665
- nickName: string;
3666
- };
3667
-
3668
- export type WechatLoginState = {
3669
- avatar: string;
3670
- confirmed: boolean;
3671
- isExpired: boolean;
3672
- nickName: string;
3673
- };
3674
-
3675
- export type WechatLoginTicket = {
3676
- state: string;
3677
- };
3678
-