node-cnb 1.7.1 → 1.9.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.
package/src/types.d.ts CHANGED
@@ -759,7 +759,9 @@ export type DtoActivityUsers = {
759
759
  id: string;
760
760
  is_follow: boolean;
761
761
  location: string;
762
+ mission_count: number;
762
763
  nickname: string;
764
+ registry_count: number;
763
765
  repo_count: number;
764
766
  reward_amount: number;
765
767
  reward_count: number;
@@ -821,6 +823,14 @@ export type DtoAssets = {
821
823
  size: number;
822
824
  };
823
825
 
826
+ export type DtoBindResources = {
827
+ app_id: string;
828
+ created_at: string;
829
+ metadata: string;
830
+ openid: string;
831
+ updated_at: string;
832
+ };
833
+
824
834
  export type DtoBindUsers = {
825
835
  app_id: string;
826
836
  created_at: string;
@@ -871,6 +881,20 @@ export type DtoBudget = {
871
881
  uin: string;
872
882
  };
873
883
 
884
+ export type DtoBudgetPrice = {
885
+ /**ci价格,单位:分*/
886
+ charge_type_ci_price: number;
887
+
888
+ /**开发价格,单位:分*/
889
+ charge_type_dev_price: number;
890
+
891
+ /**git存储价格,单位:分*/
892
+ charge_type_git_price: number;
893
+
894
+ /**对象存储价格,单位:分*/
895
+ charge_type_object_price: number;
896
+ };
897
+
874
898
  export type DtoBudgetSts = 1 | 2 | 3 | 4;
875
899
 
876
900
  export type DtoBuildLogsResult = {
@@ -936,6 +960,7 @@ export type DtoChartPackageDetail = {
936
960
  };
937
961
 
938
962
  export type DtoChartTag = {
963
+ address: string;
939
964
  digest: string;
940
965
  is_deprecated: boolean;
941
966
  last_pusher: DtoLastPusher;
@@ -1002,6 +1027,7 @@ export type DtoContainerPackageDetail = {
1002
1027
  };
1003
1028
 
1004
1029
  export type DtoContainerTag = {
1030
+ address: string;
1005
1031
  annotations: DtoContainerAnnotation;
1006
1032
  images: DtoContainerImage[];
1007
1033
  last_pusher: DtoLastPusher;
@@ -1131,6 +1157,9 @@ export type DtoGetTodoDetailRsp = {
1131
1157
  };
1132
1158
 
1133
1159
  export type DtoGroupSettingReq = {
1160
+ /**组织限制指定邮箱认证才能加入*/
1161
+ email_verification: string;
1162
+
1134
1163
  /**组织保护开关,0 - 关闭,1 - 打开*/
1135
1164
  group_protection: number;
1136
1165
 
@@ -1167,8 +1196,10 @@ export type DtoInheritMembersUser = {
1167
1196
  avatar: string;
1168
1197
  created_at: string;
1169
1198
  email: string;
1199
+ email_verification: string;
1170
1200
  freeze: boolean;
1171
1201
  id: string;
1202
+ inviter: DtoUsers;
1172
1203
  join_time: string;
1173
1204
  nickname: string;
1174
1205
  self_member: boolean;
@@ -1551,6 +1582,7 @@ export type DtoOrganizationSettingWithParent = {
1551
1582
  /**上级group设置了hide_sub_groups为1,则下级都不能显示*/
1552
1583
  can_show_sub_groups: boolean;
1553
1584
  can_show_watermark: boolean;
1585
+ email_verification: string;
1554
1586
  group_protection: number;
1555
1587
 
1556
1588
  /**是否对外隐藏组织成员,0 - 否, 1 - 是*/
@@ -1560,6 +1592,7 @@ export type DtoOrganizationSettingWithParent = {
1560
1592
  hide_sub_groups: number;
1561
1593
  root_group_protection: boolean;
1562
1594
  show_private_repo_watermark: number;
1595
+ values: OrganizationSettingValue;
1563
1596
  };
1564
1597
 
1565
1598
  export type DtoOrganizationUnion = {
@@ -1621,6 +1654,7 @@ export type DtoOutsideCollaboratorInRepo = {
1621
1654
  export type DtoOverwritePolicy = "forbid" | "allow";
1622
1655
 
1623
1656
  export type DtoPack = {
1657
+ expire_at: string;
1624
1658
  name: string;
1625
1659
  res_type: ConstantChargeResType;
1626
1660
 
@@ -1629,7 +1663,7 @@ export type DtoPack = {
1629
1663
  type: DtoPackType;
1630
1664
  };
1631
1665
 
1632
- export type DtoPackType = -1 | 0 | 255;
1666
+ export type DtoPackType = -1 | 0 | 1 | 255;
1633
1667
 
1634
1668
  export type DtoPackage = {
1635
1669
  count: number;
@@ -1799,6 +1833,12 @@ export type DtoRepos4User = {
1799
1833
  mark_count: number;
1800
1834
  name: string;
1801
1835
 
1836
+ /**开启的issue数*/
1837
+ open_issue_count: number;
1838
+
1839
+ /**开启的pull request数*/
1840
+ open_pull_request_count: number;
1841
+
1802
1842
  /**完整仓库路径*/
1803
1843
  path: string;
1804
1844
  site: string;
@@ -1841,6 +1881,12 @@ export type DtoRepos4UserBase = {
1841
1881
  mark_count: number;
1842
1882
  name: string;
1843
1883
 
1884
+ /**开启的issue数*/
1885
+ open_issue_count: number;
1886
+
1887
+ /**开启的pull request数*/
1888
+ open_pull_request_count: number;
1889
+
1844
1890
  /**完整仓库路径*/
1845
1891
  path: string;
1846
1892
  site: string;
@@ -1855,6 +1901,15 @@ export type DtoRepos4UserBase = {
1855
1901
  web_url: string;
1856
1902
  };
1857
1903
 
1904
+ export type DtoResourceBindInfo = {
1905
+ code: string;
1906
+ expire_at: string;
1907
+ name: string;
1908
+ nick: string;
1909
+ slug: string;
1910
+ url: string;
1911
+ };
1912
+
1858
1913
  export type DtoResourceGroup = {
1859
1914
  created_at: string;
1860
1915
  description: string;
@@ -1935,10 +1990,14 @@ export type DtoSlugMemberCount = {
1935
1990
  };
1936
1991
 
1937
1992
  export type DtoSlugs = {
1993
+ created_at: string;
1938
1994
  freeze: boolean;
1939
1995
  path: string;
1940
1996
  resource_id: number;
1941
1997
  resource_type: ConstantSlugType;
1998
+ root_freeze: boolean;
1999
+ root_id: number;
2000
+ updated_at: string;
1942
2001
  };
1943
2002
 
1944
2003
  export type DtoSpecialAmount = {
@@ -2187,7 +2246,9 @@ export type DtoUsersResult = {
2187
2246
  /**查询人是否follow了此用户*/
2188
2247
  is_following: boolean;
2189
2248
  location: string;
2249
+ mission_count: number;
2190
2250
  nickname: string;
2251
+ registry_count: number;
2191
2252
  repo_count: number;
2192
2253
  reward_amount: number;
2193
2254
  reward_count: number;
@@ -2227,8 +2288,10 @@ export type DtoUsersResultForSelf = {
2227
2288
  last_login_at: string;
2228
2289
  last_login_ip: string;
2229
2290
  location: string;
2291
+ mission_count: number;
2230
2292
  next_updated_name_at: string;
2231
2293
  nickname: string;
2294
+ registry_count: number;
2232
2295
  repo_count: number;
2233
2296
  reward_amount: number;
2234
2297
  reward_count: number;
@@ -2253,8 +2316,10 @@ export type DtoUsersWithAccessLevelInSlug = {
2253
2316
  avatar: string;
2254
2317
  created_at: string;
2255
2318
  email: string;
2319
+ email_verification: string;
2256
2320
  freeze: boolean;
2257
2321
  id: string;
2322
+ inviter: DtoUsers;
2258
2323
  join_time: string;
2259
2324
  nickname: string;
2260
2325
  type: ConstantUserType;
@@ -2596,6 +2661,8 @@ export type OpenapiReleaseAssetUploadUrl = {
2596
2661
  verify_url: string;
2597
2662
  };
2598
2663
 
2664
+ export type OrganizationSettingValue = 1 | 2 | 4 | 8;
2665
+
2599
2666
  export type OrganizationsDomainsVerificationResponse = {
2600
2667
  domains: string[];
2601
2668
  domains_by: string[];
@@ -2698,8 +2765,8 @@ export type WebBranchListItem = {
2698
2765
  commit: WebCommit;
2699
2766
  dev_meta: number[];
2700
2767
  is_head: boolean;
2768
+ is_protected: boolean;
2701
2769
  name: string;
2702
- protected: boolean;
2703
2770
  };
2704
2771
 
2705
2772
  export type WebBranchProtection = {
@@ -2732,16 +2799,28 @@ export type WebBranchPullRequest = {
2732
2799
  state: string;
2733
2800
  };
2734
2801
 
2802
+ export type WebCodeSensitiveDetail = {
2803
+ class: string;
2804
+ content: string;
2805
+ description: string;
2806
+ domain: string;
2807
+ info_id: string;
2808
+ keen_attr: WebKeenAttr;
2809
+ line_no: number[];
2810
+ source: string;
2811
+ sub_class: string;
2812
+ };
2813
+
2735
2814
  export type WebCodeSensitiveInfo = {
2736
2815
  commit_id: string;
2737
2816
  created_at: string;
2738
2817
  file_path: string;
2739
- id: number;
2818
+ id: string;
2740
2819
  issue_hash: string;
2741
2820
  issue_type: string;
2742
2821
  owner: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo;
2743
2822
  raw_author: WebRawAuthor;
2744
- repo_id: number;
2823
+ repo_id: string;
2745
2824
  risk_level: string;
2746
2825
  state: string;
2747
2826
  tool: string;
@@ -2970,6 +3049,7 @@ export type WebFieldInfos = {
2970
3049
 
2971
3050
  export type WebFileContent = {
2972
3051
  branch_count: number;
3052
+ cnb_settings: WebPreloadFile;
2973
3053
  content: string;
2974
3054
  encoding: string;
2975
3055
  file_size_exceeded: boolean;
@@ -3014,6 +3094,8 @@ export type WebGitSize = {
3014
3094
  lfs_limit_in_kib: string;
3015
3095
  lfs_used_in_kib: string;
3016
3096
  limit_in_kib: string;
3097
+ logical_lfs_used_in_kib: string;
3098
+ physical_lfs_used_in_kib: string;
3017
3099
  used_in_kib: string;
3018
3100
  };
3019
3101
 
@@ -3108,6 +3190,12 @@ export type WebIssueTemplates = {
3108
3190
  templates: WebIssueTemplate[];
3109
3191
  };
3110
3192
 
3193
+ export type WebKeenAttr = {
3194
+ encrypted: boolean;
3195
+ scheme: string;
3196
+ tag: string;
3197
+ };
3198
+
3111
3199
  export type WebLfsFile = {
3112
3200
  sha: string;
3113
3201
  size: string;
@@ -3205,6 +3293,13 @@ export type WebPostCommitAssetForm = {
3205
3293
  token: string;
3206
3294
  };
3207
3295
 
3296
+ export type WebPreloadFile = {
3297
+ content: string;
3298
+ encoding: string;
3299
+ file_stat: WebFileStat;
3300
+ name: string;
3301
+ };
3302
+
3208
3303
  export type WebPullRawDiff = {
3209
3304
  base_commit: string;
3210
3305
  diff: string;
@@ -3445,13 +3540,6 @@ export type WebRawAuthor = {
3445
3540
  author_name: string;
3446
3541
  };
3447
3542
 
3448
- export type WebReadMeFile = {
3449
- content: string;
3450
- encoding: string;
3451
- file_stat: WebFileStat;
3452
- name: string;
3453
- };
3454
-
3455
3543
  export type WebRecommendBranchNameResponse = {
3456
3544
  name: string;
3457
3545
  };
@@ -3619,6 +3707,7 @@ export type WebTagObject = {
3619
3707
 
3620
3708
  export type WebTreeContent = {
3621
3709
  branch_count: number;
3710
+ cnb_settings: WebPreloadFile;
3622
3711
  commit_count: number;
3623
3712
  commit_count_exceeded: boolean;
3624
3713
  entries: WebTreeEntry[];
@@ -3632,7 +3721,7 @@ export type WebTreeContent = {
3632
3721
  last_commit: WebCommit;
3633
3722
  name: string;
3634
3723
  path: string;
3635
- read_me: WebReadMeFile;
3724
+ read_me: WebPreloadFile;
3636
3725
  repository: WebRepository;
3637
3726
  tag_count: number;
3638
3727
  type: string;
@@ -3870,6 +3959,11 @@ export type WebapiReleaseAssetId = {
3870
3959
  asset_id: string;
3871
3960
  };
3872
3961
 
3962
+ export type WebapiUpdateCodeSensitiveIgnoreForm = {
3963
+ ignore: boolean;
3964
+ ignore_reason: string;
3965
+ };
3966
+
3873
3967
  export type WebapiUpdatePullRequestForm = {
3874
3968
  body: string;
3875
3969
  state: string;