node-cnb 1.15.0 → 1.17.1

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/dist/index.d.mts CHANGED
@@ -9,6 +9,7 @@ type ApiBranch = {
9
9
  };
10
10
  type ApiBranchDetail = {
11
11
  commit: ApiCommit;
12
+ dev_meta: number[];
12
13
  name: string;
13
14
  protected: boolean;
14
15
  };
@@ -25,7 +26,8 @@ type ApiBranchProtection = {
25
26
  id: string;
26
27
  required_approved_review_count: number;
27
28
  required_approved_review_ratio: number;
28
- required_commit_signatures: boolean;
29
+
30
+ /**RequiredCommitSignatures bool `json:"required_commit_signatures"`*/
29
31
  required_linear_history: boolean;
30
32
  required_master_approve: boolean;
31
33
  required_must_auto_merge: boolean;
@@ -54,9 +56,12 @@ type ApiCommitAsset = {
54
56
  type ApiCommitDiffFilePatch = {
55
57
  additions: number;
56
58
  deletions: number;
59
+ mode: string;
57
60
  name: string;
58
61
  patch: string;
59
62
  path: string;
63
+ previous_filename: string;
64
+ previous_mode: string;
60
65
  status: string;
61
66
  };
62
67
  type ApiCommitObject = {
@@ -113,6 +118,13 @@ type ApiDeleteIssueAssigneesForm = {
113
118
  type ApiDeletePullAssigneesForm = {
114
119
  assignees: string[];
115
120
  };
121
+ type ApiDiffLine = {
122
+ content: string;
123
+ left_line_number: number;
124
+ prefix: string;
125
+ right_line_number: number;
126
+ type: string;
127
+ };
116
128
  type ApiIssue = {
117
129
  assignees: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[];
118
130
  author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
@@ -183,7 +195,7 @@ type ApiPatchIssueForm = {
183
195
  /**end time*/
184
196
  end_date: string;
185
197
 
186
- /**Priority of this issue. Can be one of: `p0`, `p1`, `p2`, `p3`, `""`.*/
198
+ /**Priority of this issue. Can be one of: `-1P`, `-2P`, `P0`, `P1`, `P2`, `P3`, `""`.*/
187
199
  priority: string;
188
200
 
189
201
  /**start time*/
@@ -231,7 +243,7 @@ type ApiPostIssueForm = {
231
243
  end_date: string;
232
244
  labels: string[];
233
245
 
234
- /**Priority of this issue. Can be one of: `p0`, `p1`, `p2`, `p3`, `""`.*/
246
+ /**Priority of this issue. Can be one of: `-1P`, `-2P`, `P0`, `P1`, `P2`, `P3`, `""`.*/
235
247
  priority: string;
236
248
  start_date: string;
237
249
  title: string;
@@ -258,8 +270,10 @@ type ApiPostTagFrom = {
258
270
  };
259
271
  type ApiPull = {
260
272
  base: ApiPullRef;
273
+ blocked_on: string;
261
274
  body: string;
262
275
  head: ApiPullRef;
276
+ is_wip: boolean;
263
277
  merged_by: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
264
278
  number: string;
265
279
  state: string;
@@ -293,6 +307,7 @@ type ApiPullRequest = {
293
307
  comment_count: number;
294
308
  created_at: string;
295
309
  head: ApiPullRef;
310
+ is_wip: boolean;
296
311
  last_acted_at: string;
297
312
  mergeable_state: string;
298
313
  merged_by: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
@@ -334,6 +349,32 @@ type ApiPullRequestSettings = {
334
349
  merge_commit_message_style: string;
335
350
  squash_commit_message_style: string;
336
351
  };
352
+ type ApiPullReview = {
353
+ author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
354
+ body: string;
355
+ created_at: string;
356
+ id: string;
357
+ state: string;
358
+ updated_at: string;
359
+ };
360
+ type ApiPullReviewComment = {
361
+ author: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
362
+ body: string;
363
+ commit_hash: string;
364
+ created_at: string;
365
+ diff_hunk: ApiDiffLine[];
366
+ end_line: number;
367
+ end_side: string;
368
+ id: string;
369
+ path: string;
370
+ reply_to_comment_id: string;
371
+ review_id: string;
372
+ review_state: string;
373
+ start_line: number;
374
+ start_side: string;
375
+ subject_type: string;
376
+ updated_at: string;
377
+ };
337
378
  type ApiPullReviewCommentCreationForm = {
338
379
  body: string;
339
380
  end_line: number;
@@ -582,6 +623,42 @@ type DtoActivityRepoDetail = {
582
623
  /**仓库可见性*/
583
624
  visibility_level: any;
584
625
  };
626
+ type DtoAiChatCompletionsChoice = {
627
+ /**结束原因*/
628
+ finish_reason: string;
629
+
630
+ /**索引*/
631
+ index: number;
632
+
633
+ /**消息*/
634
+ message: any;
635
+ };
636
+ type DtoAiChatCompletionsReq = {
637
+ /**对话内容*/
638
+ messages: DtoMessage[];
639
+
640
+ /**模型名称*/
641
+ model: string;
642
+
643
+ /**是否流式返回结果,部分模型可能不支持非流式*/
644
+ stream: boolean;
645
+ };
646
+ type DtoAiChatCompletionsResult = {
647
+ /**选择*/
648
+ choices: DtoAiChatCompletionsChoice[];
649
+
650
+ /**创建时间*/
651
+ created: number;
652
+
653
+ /**ID*/
654
+ id: string;
655
+
656
+ /**模型*/
657
+ model: string;
658
+
659
+ /**对象*/
660
+ object: string;
661
+ };
585
662
  type DtoAssets = {
586
663
  content_type: string;
587
664
  name: string;
@@ -611,10 +688,41 @@ type DtoBuildResult = {
611
688
  /**构建号*/
612
689
  sn: string;
613
690
  };
691
+ type DtoBuildStageResult = {
692
+ /**stage 日志内容,数组格式,一个元素表示一行日志*/
693
+ content: string[];
694
+
695
+ /**stage 耗时,单位:ms*/
696
+ duration: number;
697
+
698
+ /**stage 结束时间*/
699
+ endTime: number;
700
+
701
+ /**stage 错误信息*/
702
+ error: string;
703
+
704
+ /**stage id*/
705
+ id: string;
706
+
707
+ /**stage 名称*/
708
+ name: string;
709
+
710
+ /**stage 开始时间*/
711
+ startTime: number;
712
+
713
+ /**stage 状态: "pending", "start", "success", "error", "cancel", "skipped"*/
714
+ status: string;
715
+ };
614
716
  type DtoBuildStatusResult = {
717
+ /**解析后的流水线JSON格式配置内容*/
718
+ jsonConfig: string;
719
+
615
720
  /**流水线的状态*/
616
721
  pipelinesStatus: any;
617
722
 
723
+ /**流水线原始配置内容*/
724
+ rawConfig: string;
725
+
618
726
  /**构建状态*/
619
727
  status: string;
620
728
  };
@@ -654,6 +762,7 @@ type DtoChartTagDetail = {
654
762
  };
655
763
  type DtoCodeRepoQuotaRsp = {
656
764
  docker: DtoQuotaRsp;
765
+ docker_model: DtoQuotaRsp;
657
766
  helm: DtoQuotaRsp;
658
767
  };
659
768
  type DtoCommonRegistryPackageDetail = {
@@ -733,6 +842,9 @@ type DtoContainerTagDetail = {
733
842
  annotations: DtoContainerAnnotation;
734
843
  image: DtoContainerImage;
735
844
  last_pusher: DtoLastPusher;
845
+
846
+ /**返回的结果是否和提供的架构匹配*/
847
+ matches_requested_arch: boolean;
736
848
  options: DtoContainerImage[];
737
849
  package: string;
738
850
  pull_count: number;
@@ -747,6 +859,12 @@ type DtoCreateGroupReq = {
747
859
  path: string;
748
860
  remark: string;
749
861
  };
862
+ type DtoCreateMissionReq = {
863
+ description: string;
864
+ name: string;
865
+ repos: string[];
866
+ visibility: "public" | "private";
867
+ };
750
868
  type DtoCreateRepoReq = {
751
869
  description: string;
752
870
  license: string;
@@ -758,6 +876,67 @@ type DtoDependency = {
758
876
  framework_name: string;
759
877
  name: string;
760
878
  };
879
+ type DtoDockerModelConfig = {
880
+ files: DtoDockerModelFile[];
881
+
882
+ /**Format the packaging format of the model file(s), currently the only supported value is gguf.*/
883
+ format: string;
884
+
885
+ /**FormatVersion the version of the format*/
886
+ format_version: string;
887
+ gguf: DtoGguf;
888
+ size: string;
889
+ };
890
+ type DtoDockerModelDescriptor = {
891
+ createdAt: string;
892
+ };
893
+ type DtoDockerModelFile = {
894
+ diffID: string;
895
+ type: string;
896
+ };
897
+ type DtoDockerModelPackageDetail = {
898
+ address: string;
899
+ desc: string;
900
+ last_pusher: DtoLastPusher;
901
+ package: string;
902
+ pull_count: number;
903
+ recent_pull_count: number;
904
+ slug: string;
905
+ tag_total: number;
906
+ tags: DtoDockerModelTag[];
907
+ };
908
+ type DtoDockerModelTag = {
909
+ address: string;
910
+ docker_model_config: DtoDockerModelConfig;
911
+ docker_model_descriptor: DtoDockerModelDescriptor;
912
+ last_pusher: DtoLastPusher;
913
+ name: string;
914
+ pull_count: number;
915
+ recent_pull_count: number;
916
+ };
917
+ type DtoDockerModelTagDetail = {
918
+ address: string;
919
+ docker_model_config: DtoDockerModelConfig;
920
+ docker_model_descriptor: DtoDockerModelDescriptor;
921
+ last_pusher: DtoLastPusher;
922
+ package: string;
923
+ pull_count: number;
924
+ recent_pull_count: number;
925
+ slug: string;
926
+ tag: string;
927
+ };
928
+ type DtoDocumentStatistics = {
929
+ count: number;
930
+ size: number;
931
+ };
932
+ type DtoEmbeddingModel = {
933
+ dimension: number;
934
+ name: string;
935
+ };
936
+ type DtoEmbeddingModels = {
937
+ dimension: number;
938
+ name: string;
939
+ };
761
940
  type DtoFile = {
762
941
  name: string;
763
942
  size: number;
@@ -778,6 +957,11 @@ type DtoForks = {
778
957
  user_lock: boolean;
779
958
  username: string;
780
959
  };
960
+ type DtoGguf = {
961
+ architecture: string;
962
+ parameter_count: string;
963
+ quantization: string;
964
+ };
781
965
  type DtoGroupSettingReq = {
782
966
  /**组织限制指定邮箱认证才能加入*/
783
967
  email_verification: string;
@@ -819,6 +1003,14 @@ type DtoInheritMembersUser = {
819
1003
  /**认证过期时间*/
820
1004
  verified_expire_in: string;
821
1005
  };
1006
+ type DtoKnowledgeBaseInfoRes = {
1007
+ embedding_model: DtoEmbeddingModels;
1008
+ exclude: string;
1009
+ id: number;
1010
+ include: string;
1011
+ last_commit_sha: string;
1012
+ statistics: DtoDocumentStatistics;
1013
+ };
822
1014
  type DtoLastPusher = {
823
1015
  is_frozen: boolean;
824
1016
  is_lock: boolean;
@@ -912,6 +1104,13 @@ type DtoMemberAccessLevelInSlugUnion = {
912
1104
  read_privilege: boolean;
913
1105
  write_privilege: boolean;
914
1106
  };
1107
+ type DtoMessage = {
1108
+ /**内容*/
1109
+ content: string;
1110
+
1111
+ /**角色,可选值:user、assistant*/
1112
+ role: string;
1113
+ };
915
1114
  type DtoMetaData = {
916
1115
  author: string;
917
1116
  home_page: string;
@@ -923,6 +1122,50 @@ type DtoMetaData = {
923
1122
  readme: string;
924
1123
  repository_url: string;
925
1124
  };
1125
+ type DtoMissionPostViewReq = {
1126
+ /**视图唯一标识列表,按此顺序排序*/
1127
+ ids: string[];
1128
+ };
1129
+ type DtoMissionView = {
1130
+ id: string;
1131
+ name: string;
1132
+ type: DtoMissionViewType;
1133
+ };
1134
+ type DtoMissionViewConfig = {
1135
+ /**字段配置*/
1136
+ fields: DtoMissionViewFieldConfig[];
1137
+
1138
+ /**分组信息*/
1139
+ group: any;
1140
+
1141
+ /**视图唯一标识*/
1142
+ id: string;
1143
+
1144
+ /**筛选条件*/
1145
+ selectors: DtoMissionViewSelector[];
1146
+
1147
+ /**排序条件*/
1148
+ sorts: DtoMissionViewSort[];
1149
+
1150
+ /**视图类型*/
1151
+ type: any;
1152
+ };
1153
+ type DtoMissionViewFieldConfig = {
1154
+ field: string;
1155
+ width: number;
1156
+ };
1157
+ type DtoMissionViewSelector = {
1158
+ field: string;
1159
+ operator: DtoOperatorType;
1160
+ value: string[];
1161
+ };
1162
+ type DtoMissionViewSort = {
1163
+ field: string;
1164
+ order: DtoMissionViewSortOrder;
1165
+ };
1166
+ type DtoMissionViewSortOrder = "asc" | "desc";
1167
+ type DtoMissionViewType = "table" | "board" | "gantt";
1168
+ type DtoOperatorType = "equal" | "equals" | "not_equals" | "contains" | "contains_all" | "not_contains" | "empty" | "not_empty" | "before" | "after" | "time_selector";
926
1169
  type DtoOrganizationAccess = {
927
1170
  /**AccessRole 用户在当前资源的最大权限*/
928
1171
  access_role: any;
@@ -1007,6 +1250,8 @@ type DtoOrganizationUnion = {
1007
1250
  member_count: number;
1008
1251
  name: string;
1009
1252
  path: string;
1253
+ pinned: boolean;
1254
+ pinned_time: string;
1010
1255
  remark: string;
1011
1256
  site: string;
1012
1257
 
@@ -1054,6 +1299,7 @@ type DtoPackage = {
1054
1299
  type DtoPackageDetail = {
1055
1300
  composer: DtoCommonRegistryPackageDetail;
1056
1301
  docker: DtoContainerPackageDetail;
1302
+ docker_model: DtoDockerModelPackageDetail;
1057
1303
  helm: DtoChartPackageDetail;
1058
1304
  maven: DtoCommonRegistryPackageDetail;
1059
1305
  npm: DtoCommonRegistryPackageDetail;
@@ -1061,7 +1307,17 @@ type DtoPackageDetail = {
1061
1307
  ohpm: DtoCommonRegistryPackageDetail;
1062
1308
  pypi: DtoCommonRegistryPackageDetail;
1063
1309
  };
1064
- type DtoPackageType = "all" | "docker" | "helm" | "npm" | "maven" | "ohpm" | "pypi" | "composer" | "nuget";
1310
+ type DtoPackageType = "all" | "docker" | "helm" | "docker-model" | "npm" | "maven" | "ohpm" | "pypi" | "composer" | "nuget";
1311
+ type DtoQueryKnowledgeBaseReq = {
1312
+ query: string;
1313
+ score_threshold: number;
1314
+ top_k: number;
1315
+ };
1316
+ type DtoQueryKnowledgeBaseRes = {
1317
+ chunk: string;
1318
+ metadata: any;
1319
+ score: number;
1320
+ };
1065
1321
  type DtoQuotaRsp = {
1066
1322
  /**The hard limits of the quota,example: { "hard": { "storage": -1}}*/
1067
1323
  hard: any;
@@ -1101,7 +1357,7 @@ type DtoRepos4User = {
1101
1357
  /**预留*/
1102
1358
  forked_from_repo: any;
1103
1359
  freeze: boolean;
1104
- id: number;
1360
+ id: string;
1105
1361
 
1106
1362
  /**仓库程序语言,预留*/
1107
1363
  language: string;
@@ -1157,7 +1413,7 @@ type DtoRepos4UserBase = {
1157
1413
  /**预留*/
1158
1414
  forked_from_repo: any;
1159
1415
  freeze: boolean;
1160
- id: number;
1416
+ id: string;
1161
1417
 
1162
1418
  /**仓库程序语言,预留*/
1163
1419
  language: string;
@@ -1240,9 +1496,30 @@ type DtoStartBuildReq = {
1240
1496
  /**触发 tag,优先级比 branch 高*/
1241
1497
  tag: string;
1242
1498
  };
1499
+ type DtoStartWorkspaceReq = {
1500
+ /**分支名或 tag 名,例如:main 或 v1.0.0。*/
1501
+ branch: string;
1502
+
1503
+ /**Git ref,例如,refs/heads/main 或 refs/tags/v1.0.0。不传 ref 时默认基于分支启动*/
1504
+ ref: string;
1505
+ };
1506
+ type DtoStartWorkspaceResult = {
1507
+ /**仅新创建开发环境时返回,表示创建开发环境的流水线日志地址*/
1508
+ buildLogUrl: string;
1509
+
1510
+ /**仅新创建开发环境时返回,表示创建开发环境的提示信息*/
1511
+ message: string;
1512
+
1513
+ /**仅新创建开发环境时返回,表示创建开发环境的流水线 sn*/
1514
+ sn: string;
1515
+
1516
+ /**如果存在开发环境,则返回 WebIDE 访问 url;如果不存在开发环境,则返回启动云原生开发的 loading 页面 url 地址*/
1517
+ url: string;
1518
+ };
1243
1519
  type DtoTag = {
1244
1520
  composer: DtoCommonRegistryTag[];
1245
1521
  docker: DtoContainerTag[];
1522
+ docker_model: DtoDockerModelTag[];
1246
1523
  helm: DtoChartTag[];
1247
1524
  maven: DtoCommonRegistryTag[];
1248
1525
  npm: DtoCommonRegistryTag[];
@@ -1254,6 +1531,7 @@ type DtoTag = {
1254
1531
  type DtoTagDetail = {
1255
1532
  composer: DtoCommonRegistryTagDetail;
1256
1533
  docker: DtoContainerTagDetail;
1534
+ docker_model: DtoDockerModelTagDetail;
1257
1535
  helm: DtoChartTagDetail;
1258
1536
  maven: DtoCommonRegistryTagDetail;
1259
1537
  npm: DtoCommonRegistryTagDetail;
@@ -1265,10 +1543,6 @@ type DtoTransferSlugReq = {
1265
1543
  source: string;
1266
1544
  target: string;
1267
1545
  };
1268
- type DtoUpdateGroupAvatarReq = {
1269
- /**新头像 url*/
1270
- url: string;
1271
- };
1272
1546
  type DtoUpdateGroupReq = {
1273
1547
  description: string;
1274
1548
  domain: string;
@@ -1281,6 +1555,17 @@ type DtoUpdateMembersRequest = {
1281
1555
  access_level: string;
1282
1556
  is_outside_collaborator: boolean;
1283
1557
  };
1558
+ type DtoUpdateUserInfoPayload = {
1559
+ address: string;
1560
+ bio: string;
1561
+ company: string;
1562
+ location: string;
1563
+ name: string;
1564
+ nickname: string;
1565
+ site: string;
1566
+ wechat_mp: string;
1567
+ wechat_mp_qrcode: string;
1568
+ };
1284
1569
  type DtoUploadAssetsResponse = {
1285
1570
  assets: DtoAssets;
1286
1571
  form: any;
@@ -1289,6 +1574,32 @@ type DtoUploadAssetsResponse = {
1289
1574
  token: string;
1290
1575
  upload_url: string;
1291
1576
  };
1577
+ type DtoUploadBadgeReq = {
1578
+ /**徽章 key。目前允许上传的 key 包括:security/tca*/
1579
+ key: string;
1580
+
1581
+ /**是否上传 latest 徽章。默认为 false:不上传 latest,仅上传 commitid 对应的徽章;true:上传 latest 和 commitid 对应的徽章*/
1582
+ latest: boolean;
1583
+
1584
+ /**点击徽章右侧的跳转链接*/
1585
+ link: string;
1586
+
1587
+ /**徽章右侧显示内容*/
1588
+ message: string;
1589
+
1590
+ /**commit id*/
1591
+ sha: string;
1592
+
1593
+ /**徽章数值,不传默认用 message 代替*/
1594
+ value: number;
1595
+ };
1596
+ type DtoUploadBadgeResult = {
1597
+ /**latest 对应的徽章 url 地址。如果没有传 latest: true,则该字段为空字符串*/
1598
+ latest_url: string;
1599
+
1600
+ /**commitid 对应的徽章 url 地址*/
1601
+ url: string;
1602
+ };
1292
1603
  type DtoUploadRequestParams = {
1293
1604
  name: string;
1294
1605
  size: number;
@@ -1440,12 +1751,33 @@ type DtoWorkspaceDeleteResult = {
1440
1751
  message: string;
1441
1752
  };
1442
1753
  type DtoWorkspaceDetailResult = {
1754
+ /**CodeBuddy 国际版客户端 remote-ssh 访问 schema 地址*/
1755
+ codebuddy: string;
1756
+
1757
+ /**CodeBuddy 国内版客户端 remote-ssh 访问 schema 地址*/
1758
+ codebuddycn: string;
1759
+
1443
1760
  /**Cursor 客户端 remote-ssh 访问 schema 地址*/
1444
1761
  cursor: string;
1445
1762
 
1763
+ /**jetbrains 系列 ide 的 jetbrains gateway 访问 schema 地址,环境内有安装 JetBrains 系列 ide 才会有*/
1764
+ jetbrains: any;
1765
+
1766
+ /**选择入口页面 url*/
1767
+ jumpUrl: string;
1768
+
1769
+ /**remote-ssh 连接地址*/
1770
+ remoteSsh: string;
1771
+
1772
+ /**ssh 登录命令*/
1773
+ ssh: string;
1774
+
1446
1775
  /**VSCode 客户端 remote-ssh 访问 schema 地址*/
1447
1776
  vscode: string;
1448
1777
 
1778
+ /**Vscode 预览版客户端 remote-ssh 访问 schema 地址*/
1779
+ "vscode-insiders": string;
1780
+
1449
1781
  /**WebIDE 访问 url*/
1450
1782
  webide: string;
1451
1783
  };
@@ -1499,25 +1831,27 @@ type DtoWorkspaceInfo = {
1499
1831
  workspace: string;
1500
1832
  };
1501
1833
  type DtoWorkspaceListResult = {
1502
- /**开发环境状态,running: 开发环境已启动,closed:开发环境已关闭*/
1834
+ /**是否有更多数据*/
1503
1835
  hasMore: boolean;
1504
1836
 
1505
- /**查询开始时间,格式:YYYY-MM-DD HH:mm:ssZZ,例如:2024-12-01 00:00:00+0800*/
1837
+ /**云原生开发环境列表*/
1506
1838
  list: DtoWorkspaceInfo[];
1507
1839
 
1508
- /**查询结束时间,格式:YYYY-MM-DD HH:mm:ssZZ,例如:2024-12-01 00:00:00+0800*/
1840
+ /**分页信息*/
1509
1841
  pageInfo: any;
1510
1842
 
1511
- /**分支名,例如:main*/
1843
+ /**总数*/
1512
1844
  total: number;
1513
1845
  };
1514
- type FlagsRepo = 0 | 2;
1846
+ type FlagsRepo = 0 | 2 | 4;
1515
1847
  type GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo = {
1848
+ email: string;
1516
1849
  freeze: boolean;
1517
1850
  nickname: string;
1518
1851
  username: string;
1519
1852
  };
1520
1853
  type GitWoaComCnbMonorepoGitInternalAppGitServiceBffWebUserInfo = {
1854
+ email: string;
1521
1855
  freeze: boolean;
1522
1856
  nickname: string;
1523
1857
  username: string;
@@ -1526,17 +1860,6 @@ type GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo = {
1526
1860
  nickname: string;
1527
1861
  username: string;
1528
1862
  };
1529
- type HttpUpdateUserInfoPayload = {
1530
- address: string;
1531
- bio: string;
1532
- company: string;
1533
- location: string;
1534
- name: string;
1535
- nickname: string;
1536
- site: string;
1537
- wechat_mp: string;
1538
- wechat_mp_qrcode: string;
1539
- };
1540
1863
  type OpenapiCreateBranchForm = {
1541
1864
  name: string;
1542
1865
  start_point: string;
@@ -1681,6 +2004,10 @@ type WebWeek = {
1681
2004
  /**周的时间戳*/
1682
2005
  w: number;
1683
2006
  };
2007
+ type WebapiCherryPickPullRequestForm = {
2008
+ create_pr: boolean;
2009
+ target_branch: string;
2010
+ };
1684
2011
  type WebapiRevertPullRequestForm = {
1685
2012
  create_pr: boolean;
1686
2013
  target_branch: string;
@@ -1692,7 +2019,7 @@ type Organizations_CreateOrganization = (params: {
1692
2019
  }) => Promise<any>;
1693
2020
  type Users_GetUserInfo = () => Promise<DtoUsersResultForSelf>;
1694
2021
  type Users_UpdateUserInfo = (params: {
1695
- request: HttpUpdateUserInfoPayload;
2022
+ request: DtoUpdateUserInfoPayload;
1696
2023
  }) => Promise<any>;
1697
2024
  type Users_AutoCompleteSource = (params?: {
1698
2025
  source_type?: "Group" | "Repo";
@@ -1700,6 +2027,8 @@ type Users_AutoCompleteSource = (params?: {
1700
2027
  page_size?: number;
1701
2028
  search?: string;
1702
2029
  access?: "Reporter" | "Developer" | "Master" | "Owner";
2030
+ order_by?: "created_at" | "slug_path";
2031
+ desc?: boolean;
1703
2032
  }) => Promise<string[]>;
1704
2033
  type Organizations_ListTopGroups = (params?: {
1705
2034
  page?: number;
@@ -1717,9 +2046,10 @@ type Repositories_GetRepos = (params?: {
1717
2046
  page?: number;
1718
2047
  page_size?: number;
1719
2048
  search?: string;
1720
- filter_type?: "private" | "public" | "encrypted";
2049
+ filter_type?: "private" | "public" | "secret";
1721
2050
  role?: "Reporter" | "Developer" | "Master" | "Owner";
1722
2051
  flags?: "KnowledgeBase";
2052
+ status?: "active" | "archived";
1723
2053
  order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path" | "forks";
1724
2054
  desc?: boolean;
1725
2055
  }) => Promise<DtoRepos4User[]>;
@@ -1737,10 +2067,6 @@ type Activities_GetUserActivitiesByDate = (params: {
1737
2067
  username: string;
1738
2068
  date?: string;
1739
2069
  }) => Promise<DtoActivityDate>;
1740
- type Assets_GetUserAvatar = (params: {
1741
- username: string;
1742
- size: string;
1743
- }) => Promise<any>;
1744
2070
  type Followers_GetFollowersByUserID = (params: {
1745
2071
  username: string;
1746
2072
  page?: number;
@@ -1808,10 +2134,6 @@ type Organizations_UpdateOrganization = (params: {
1808
2134
  group: string;
1809
2135
  request: DtoUpdateGroupReq;
1810
2136
  }) => Promise<any>;
1811
- type Organizations_UpdateGroupAvatar = (params: {
1812
- group: string;
1813
- request: DtoUpdateGroupAvatarReq;
1814
- }) => Promise<any>;
1815
2137
  type Collaborators_ListInheritMembersOfGroup = (params: {
1816
2138
  group: string;
1817
2139
  search?: string;
@@ -1819,14 +2141,6 @@ type Collaborators_ListInheritMembersOfGroup = (params: {
1819
2141
  page?: number;
1820
2142
  page_size?: number;
1821
2143
  }) => Promise<DtoListInheritMembers[]>;
1822
- type Assets_PutLogos = (params: {
1823
- group: string;
1824
- token: string;
1825
- }) => Promise<any>;
1826
- type Assets_GetLogos = (params: {
1827
- group: string;
1828
- size?: string;
1829
- }) => Promise<any>;
1830
2144
  type Collaborators_ListMembersOfGroup = (params: {
1831
2145
  group: string;
1832
2146
  page?: number;
@@ -1856,6 +2170,10 @@ type Collaborators_UpdateMembersOfGroup = (params: {
1856
2170
  username: string;
1857
2171
  request: DtoUpdateMembersRequest;
1858
2172
  }) => Promise<any>;
2173
+ type Missions_CreateMission = (params: {
2174
+ group: string;
2175
+ request: DtoCreateMissionReq;
2176
+ }) => Promise<any>;
1859
2177
  type Repositories_GetPinnedRepoByGroup = (params: {
1860
2178
  group: string;
1861
2179
  }) => Promise<DtoRepos4UserBase[]>;
@@ -1867,7 +2185,7 @@ type Repositories_GetGroupSubRepos = (params: {
1867
2185
  group: string;
1868
2186
  page?: number;
1869
2187
  page_size?: number;
1870
- filter_type?: "private" | "public" | "encrypted";
2188
+ filter_type?: "private" | "public" | "secret";
1871
2189
  order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path";
1872
2190
  desc?: boolean;
1873
2191
  descendant?: "all" | "sub" | "grand";
@@ -1907,6 +2225,25 @@ type Collaborators_AddMembersOfMission = (params: {
1907
2225
  username: string;
1908
2226
  request: DtoUpdateMembersRequest;
1909
2227
  }) => Promise<any>;
2228
+ type Missions_GetMissionViewConfig = (params: {
2229
+ mission: string;
2230
+ id: string;
2231
+ }) => Promise<DtoMissionViewConfig>;
2232
+ type Missions_PostMissionViewConfig = (params: {
2233
+ mission: string;
2234
+ request: DtoMissionViewConfig;
2235
+ }) => Promise<any>;
2236
+ type Missions_GetMissionViewList = (params: {
2237
+ mission: string;
2238
+ }) => Promise<DtoMissionView[]>;
2239
+ type Missions_PostMissionViewList = (params: {
2240
+ mission: string;
2241
+ request: DtoMissionPostViewReq;
2242
+ }) => Promise<any>;
2243
+ type Missions_PutMissionViewList = (params: {
2244
+ mission: string;
2245
+ request: DtoMissionView;
2246
+ }) => Promise<any>;
1910
2247
  type Artifactory_DeleteRegistry = (params: {
1911
2248
  registry: string;
1912
2249
  "x-cnb-identity-ticket"?: string;
@@ -1927,6 +2264,14 @@ type Repositories_UpdateRepo = (params: {
1927
2264
  repo: string;
1928
2265
  request: DtoRepoPatch;
1929
2266
  }) => Promise<any>;
2267
+ type Ai_AiChatCompletions = (params: {
2268
+ repo: string;
2269
+ request: DtoAiChatCompletionsReq;
2270
+ }) => Promise<DtoAiChatCompletionsResult>;
2271
+ type Badge_UploadBadge = (params: {
2272
+ repo: string;
2273
+ request: DtoUploadBadgeReq;
2274
+ }) => Promise<DtoUploadBadgeResult>;
1930
2275
  type Build_GetBuildLogs = (params: {
1931
2276
  repo: string;
1932
2277
  createTime?: string;
@@ -1942,6 +2287,16 @@ type Build_GetBuildLogs = (params: {
1942
2287
  userId?: string;
1943
2288
  userName?: string;
1944
2289
  }) => Promise<DtoBuildLogsResult>;
2290
+ type Build_GetBuildStage = (params: {
2291
+ repo: string;
2292
+ sn: string;
2293
+ pipelineId: string;
2294
+ stageId: string;
2295
+ }) => Promise<DtoBuildStageResult>;
2296
+ type Build_BuildRunnerDownloadLog = (params: {
2297
+ repo: string;
2298
+ pipelineId: string;
2299
+ }) => Promise<any>;
1945
2300
  type Build_StartBuild = (params: {
1946
2301
  repo: string;
1947
2302
  request: DtoStartBuildReq;
@@ -1956,7 +2311,8 @@ type Build_StopBuild = (params: {
1956
2311
  }) => Promise<DtoBuildResult>;
1957
2312
  type Assets_GetCommitAssets = (params: {
1958
2313
  repo: string;
1959
- fileName: string;
2314
+ commit_id: string;
2315
+ filename: string;
1960
2316
  share?: boolean;
1961
2317
  }) => Promise<any>;
1962
2318
  type RepoContributor_GetRepoContributorTrend = (params: {
@@ -1964,19 +2320,6 @@ type RepoContributor_GetRepoContributorTrend = (params: {
1964
2320
  limit?: number;
1965
2321
  exclude_external_users?: boolean;
1966
2322
  }) => Promise<WebRepoContribTrend>;
1967
- type Assets_GetFiles = (params: {
1968
- repo: string;
1969
- userIdKey: string;
1970
- randomUUID: string;
1971
- fileName: string;
1972
- }) => Promise<any>;
1973
- type Assets_PutFiles = (params: {
1974
- repo: string;
1975
- userIdKey: string;
1976
- randomUUID: string;
1977
- fileName: string;
1978
- token: string;
1979
- }) => Promise<any>;
1980
2323
  type Repositories_ListForksRepos = (params: {
1981
2324
  repo: string;
1982
2325
  start_from_root?: boolean;
@@ -2041,7 +2384,7 @@ type Git_GetCommitAssetsBySha = (params: {
2041
2384
  type Git_PostCommitAssetUploadConfirmation = (params: {
2042
2385
  repo: string;
2043
2386
  sha1: string;
2044
- token: string;
2387
+ upload_token: string;
2045
2388
  asset_path: string;
2046
2389
  }) => Promise<any>;
2047
2390
  type Git_PostCommitAssetUploadURL = (params: {
@@ -2118,17 +2461,6 @@ type Git_GetTag = (params: {
2118
2461
  repo: string;
2119
2462
  tag: string;
2120
2463
  }) => Promise<ApiTag>;
2121
- type Assets_GetImgs = (params: {
2122
- repo: string;
2123
- userIdKey: string;
2124
- fileName: string;
2125
- }) => Promise<any>;
2126
- type Assets_PutImgs = (params: {
2127
- repo: string;
2128
- userIdKey: string;
2129
- fileName: string;
2130
- token: string;
2131
- }) => Promise<any>;
2132
2464
  type Collaborators_ListInheritMembersOfRepo = (params: {
2133
2465
  repo: string;
2134
2466
  search?: string;
@@ -2236,6 +2568,19 @@ type Issues_DeleteIssueLabel = (params: {
2236
2568
  number: number;
2237
2569
  name: string;
2238
2570
  }) => Promise<ApiLabel>;
2571
+ type KnowledgeBase_DeleteKnowledgeBase = (params: {
2572
+ repo: string;
2573
+ }) => Promise<any>;
2574
+ type KnowledgeBase_GetKnowledgeBaseInfo = (params: {
2575
+ repo: string;
2576
+ }) => Promise<DtoKnowledgeBaseInfoRes>;
2577
+ type KnowledgeBase_QueryKnowledgeBase = (params: {
2578
+ repo: string;
2579
+ query: DtoQueryKnowledgeBaseReq;
2580
+ }) => Promise<DtoQueryKnowledgeBaseRes[]>;
2581
+ type KnowledgeBase_GetModels = (params: {
2582
+ repo: string;
2583
+ }) => Promise<DtoEmbeddingModel[]>;
2239
2584
  type RepoLabels_ListLabels = (params: {
2240
2585
  repo: string;
2241
2586
  page?: number;
@@ -2361,6 +2706,11 @@ type Pulls_CanUserBeAssignedToPull = (params: {
2361
2706
  number: string;
2362
2707
  assignee: string;
2363
2708
  }) => Promise<any>;
2709
+ type Pulls_CherryPickPullRequest = (params: {
2710
+ repo: string;
2711
+ number: number;
2712
+ cherry_pick_pull_request_form: WebapiCherryPickPullRequestForm;
2713
+ }) => Promise<any>;
2364
2714
  type Pulls_ListPullComments = (params: {
2365
2715
  repo: string;
2366
2716
  number: string;
@@ -2407,11 +2757,24 @@ type Pulls_RevertPullRequest = (params: {
2407
2757
  number: number;
2408
2758
  revert_pull_request_form: WebapiRevertPullRequestForm;
2409
2759
  }) => Promise<any>;
2760
+ type Pulls_ListPullReviews = (params: {
2761
+ repo: string;
2762
+ number: string;
2763
+ page?: number;
2764
+ page_size?: number;
2765
+ }) => Promise<ApiPullReview[]>;
2410
2766
  type Pulls_PostPullReview = (params: {
2411
2767
  repo: string;
2412
2768
  number: string;
2413
2769
  post_pull_review_form: ApiPullReviewCreationForm;
2414
2770
  }) => Promise<any>;
2771
+ type Pulls_ListPullReviewComments = (params: {
2772
+ repo: string;
2773
+ number: number;
2774
+ review_id: number;
2775
+ page?: number;
2776
+ page_size?: number;
2777
+ }) => Promise<ApiPullReviewComment[]>;
2415
2778
  type Releases_ListReleases = (params: {
2416
2779
  repo: string;
2417
2780
  page?: number;
@@ -2423,7 +2786,8 @@ type Releases_PostRelease = (params: {
2423
2786
  }) => Promise<any>;
2424
2787
  type Assets_GetReleasesAsset = (params: {
2425
2788
  repo: string;
2426
- fileName: string;
2789
+ tag: string;
2790
+ filename: string;
2427
2791
  share?: boolean;
2428
2792
  }) => Promise<any>;
2429
2793
  type Releases_GetLatestRelease = (params: {
@@ -2453,7 +2817,7 @@ type Releases_PatchRelease = (params: {
2453
2817
  type Releases_PostReleaseAssetUploadConfirmation = (params: {
2454
2818
  repo: string;
2455
2819
  release_id: string;
2456
- token: string;
2820
+ upload_token: string;
2457
2821
  asset_path: string;
2458
2822
  }) => Promise<any>;
2459
2823
  type Releases_PostReleaseAssetUploadURL = (params: {
@@ -2545,13 +2909,21 @@ type Assets_UploadReleases = (params: {
2545
2909
  tagName: string;
2546
2910
  request: DtoUploadRequestParams;
2547
2911
  }) => Promise<DtoUploadAssetsResponse>;
2912
+ type wiki_UploadWikiFile = (params: {
2913
+ repo: string;
2914
+ request: DtoUploadRequestParams;
2915
+ }) => Promise<DtoUploadAssetsResponse>;
2548
2916
  type Workspace_GetWorkspaceDetail = (params: {
2549
2917
  repo: string;
2550
2918
  sn: string;
2551
2919
  }) => Promise<DtoWorkspaceDetailResult>;
2920
+ type Workspace_StartWorkspace = (params: {
2921
+ repo: string;
2922
+ request: DtoStartWorkspaceReq;
2923
+ }) => Promise<DtoStartWorkspaceResult>;
2552
2924
  type Artifactory_ListPackages = (params: {
2553
2925
  slug: string;
2554
- type: "all" | "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2926
+ type: "all" | "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2555
2927
  page?: number;
2556
2928
  page_size?: number;
2557
2929
  ordering?: "pull_count" | "last_push_at" | "name_ascend" | "name_descend";
@@ -2559,7 +2931,7 @@ type Artifactory_ListPackages = (params: {
2559
2931
  }) => Promise<DtoPackage[]>;
2560
2932
  type Artifactory_HeadPackages = (params: {
2561
2933
  slug: string;
2562
- type: "all" | "docker" | "helm";
2934
+ type: "all" | "docker" | "helm" | "docker-model";
2563
2935
  page?: number;
2564
2936
  page_size?: number;
2565
2937
  ordering?: "pull_count" | "last_push_at" | "name_ascend" | "name_descend";
@@ -2567,25 +2939,26 @@ type Artifactory_HeadPackages = (params: {
2567
2939
  }) => Promise<any>;
2568
2940
  type Artifactory_GetPackage = (params: {
2569
2941
  slug: string;
2570
- type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2942
+ type: "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2571
2943
  name: string;
2572
2944
  }) => Promise<DtoPackageDetail>;
2573
2945
  type Artifactory_DeletePackageTag = (params: {
2574
2946
  slug: string;
2575
- type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2947
+ type: "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2576
2948
  name: string;
2577
2949
  tag: string;
2578
2950
  }) => Promise<any>;
2579
2951
  type Artifactory_GetPackageTagDetail = (params: {
2580
2952
  slug: string;
2581
- type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2953
+ type: "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2582
2954
  name: string;
2583
2955
  tag: string;
2584
2956
  sha256?: string;
2957
+ arch?: string;
2585
2958
  }) => Promise<DtoTagDetail>;
2586
2959
  type Artifactory_ListPackageTags = (params: {
2587
2960
  slug: string;
2588
- type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2961
+ type: "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2589
2962
  pkgname: string;
2590
2963
  page?: number;
2591
2964
  page_size?: number;
@@ -2594,18 +2967,18 @@ type Artifactory_ListPackageTags = (params: {
2594
2967
  }) => Promise<DtoTag>;
2595
2968
  type Artifactory_GetRegistryQuota = (params: {
2596
2969
  slug: string;
2597
- type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2970
+ type: "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2598
2971
  }) => Promise<DtoRegistryLevelQuotaRsp>;
2599
2972
  type Artifactory_GetRegistryQuotas = (params: {
2600
2973
  slug: string;
2601
- type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2974
+ type: "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2602
2975
  page?: number;
2603
2976
  page_size?: number;
2604
2977
  ordering?: "used_ascend" | "used_descend";
2605
2978
  }) => Promise<DtoQuotaRsp[]>;
2606
2979
  type Artifactory_DownloadRegistryQuotas = (params: {
2607
2980
  slug: string;
2608
- type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2981
+ type: "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2609
2982
  page?: number;
2610
2983
  page_size?: number;
2611
2984
  ordering?: "used_ascend" | "used_descend";
@@ -2718,17 +3091,6 @@ interface Client {
2718
3091
  */
2719
3092
  get: Activities_GetUserActivitiesByDate;
2720
3093
  };
2721
- avatar: {
2722
- /***
2723
- * 获取指定用户的用户头像。Get the user's avatar.
2724
- *
2725
- * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2726
- * account-profile:r
2727
- *
2728
- * /users/{username}/avatar/{size}
2729
- */
2730
- get: Assets_GetUserAvatar;
2731
- };
2732
3094
  followers: {
2733
3095
  /***
2734
3096
  * 获取指定用户的粉丝列表。Get the followers list of specified user.
@@ -2861,17 +3223,6 @@ interface Client {
2861
3223
  * /{group}
2862
3224
  */
2863
3225
  put: Organizations_UpdateOrganization;
2864
- avatar: {
2865
- /***
2866
- * 更新组织头像 URL 地址。Updates the organization avatar URL.
2867
- *
2868
- * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2869
- * group-manage:rw
2870
- *
2871
- * /{group}/-/avatar
2872
- */
2873
- put: Organizations_UpdateGroupAvatar;
2874
- };
2875
3226
  inheritMembers: {
2876
3227
  /***
2877
3228
  * 获取指定组织或仓库内的继承成员。List inherited members within specified organization or repository。
@@ -2883,27 +3234,6 @@ interface Client {
2883
3234
  */
2884
3235
  list: Collaborators_ListInheritMembersOfGroup;
2885
3236
  };
2886
- logos: {
2887
- /***
2888
- * 确认上传的logo。Confirms the uploaded logo.
2889
- *
2890
- * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2891
- * group-manage:rw
2892
- *
2893
- * /{group}/-/logos
2894
- */
2895
- put: Assets_PutLogos;
2896
-
2897
- /***
2898
- * 发起一个获取 logo 的请求,返回内容或者 302 到某个地址。Post a request to fetch a logo and returns the content directly or a 302 redirect to the logo URL.
2899
- *
2900
- * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
2901
- * group-resource:r
2902
- *
2903
- * /{group}/-/logos/{size}
2904
- */
2905
- get: Assets_GetLogos;
2906
- };
2907
3237
  members: {
2908
3238
  /***
2909
3239
  * 获取指定组织或仓库内的所有直接成员。List all direct members within specified organization or repository.
@@ -2966,6 +3296,17 @@ interface Client {
2966
3296
  */
2967
3297
  put: Collaborators_UpdateMembersOfGroup;
2968
3298
  };
3299
+ missions: {
3300
+ /***
3301
+ * 创建任务集
3302
+ *
3303
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3304
+ * group-resource:rw
3305
+ *
3306
+ * /{group}/-/missions
3307
+ */
3308
+ post: Missions_CreateMission;
3309
+ };
2969
3310
  pinnedRepos: {
2970
3311
  /***
2971
3312
  * 获取指定组织的仓库墙列表。List the pinned repositories of a group.
@@ -3054,7 +3395,7 @@ interface Client {
3054
3395
  upload: {
3055
3396
  logos: {
3056
3397
  /***
3057
- * 发起一个上传 logo 的请求,返回上传 cos 的 url form 内容。Post a request to upload a logo.
3398
+ * 发起一个上传 logo 的请求,返回上传文件的url,请使用 put 发起流式上传。Initiate a request to upload logo,returns upload URL.Use PUT to initiate a stream upload.
3058
3399
  *
3059
3400
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3060
3401
  * group-manage:rw
@@ -3086,6 +3427,60 @@ interface Client {
3086
3427
  */
3087
3428
  post: Collaborators_AddMembersOfMission;
3088
3429
  };
3430
+ mission: {
3431
+ view: {
3432
+ /***
3433
+ * 查询任务集视图配置信息。Get mission view config.
3434
+ *
3435
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3436
+ * mission-manage:r
3437
+ *
3438
+ * /{mission}/-/mission/view
3439
+ */
3440
+ get: Missions_GetMissionViewConfig;
3441
+
3442
+ /***
3443
+ * 设置任务集视图配置信息。Set mission view config.
3444
+ *
3445
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3446
+ * mission-manage:rw
3447
+ *
3448
+ * /{mission}/-/mission/view
3449
+ */
3450
+ post: Missions_PostMissionViewConfig;
3451
+ };
3452
+ viewList: {
3453
+ /***
3454
+ * 获取任务集视图列表。Get view list of a mission.
3455
+ *
3456
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3457
+ * mission-manage:r
3458
+ *
3459
+ * /{mission}/-/mission/view-list
3460
+ */
3461
+ list: Missions_GetMissionViewList;
3462
+
3463
+ /***
3464
+ * 排序任务集视图。Sort mission view list.
3465
+ *
3466
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3467
+ * mission-manage:rw
3468
+ *
3469
+ * /{mission}/-/mission/view-list
3470
+ */
3471
+ post: Missions_PostMissionViewList;
3472
+
3473
+ /***
3474
+ * 添加、修改任务集视图。Update a mission view or add a new one.
3475
+ *
3476
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3477
+ * mission-manage:rw
3478
+ *
3479
+ * /{mission}/-/mission/view-list
3480
+ */
3481
+ put: Missions_PutMissionViewList;
3482
+ };
3483
+ };
3089
3484
  };
3090
3485
  registry: {
3091
3486
  /***
@@ -3139,6 +3534,34 @@ interface Client {
3139
3534
  * /{repo}
3140
3535
  */
3141
3536
  patch: Repositories_UpdateRepo;
3537
+ ai: {
3538
+ chat: {
3539
+ completions: {
3540
+ /***
3541
+ * Ai 对话,参数根据模型不同会有区别。Ai chat completions, params may differ by model.
3542
+ *
3543
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3544
+ * repo-code:r
3545
+ *
3546
+ * /{repo}/-/ai/chat/completions
3547
+ */
3548
+ post: Ai_AiChatCompletions;
3549
+ };
3550
+ };
3551
+ };
3552
+ badge: {
3553
+ upload: {
3554
+ /***
3555
+ * 上传徽章数据。Upload badge data
3556
+ *
3557
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3558
+ * repo-commit-status:rw
3559
+ *
3560
+ * /{repo}/-/badge/upload
3561
+ */
3562
+ post: Badge_UploadBadge;
3563
+ };
3564
+ };
3142
3565
  build: {
3143
3566
  logs: {
3144
3567
  /***
@@ -3150,6 +3573,32 @@ interface Client {
3150
3573
  * /{repo}/-/build/logs
3151
3574
  */
3152
3575
  get: Build_GetBuildLogs;
3576
+ stage: {
3577
+ /***
3578
+ * 查询流水线Stage详情。Get pipeline build stage detail.
3579
+ *
3580
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3581
+ * repo-cnb-trigger:r
3582
+ *
3583
+ * /{repo}/-/build/logs/stage/{sn}/{pipelineId}/{stageId}
3584
+ */
3585
+ get: Build_GetBuildStage;
3586
+ };
3587
+ };
3588
+ runner: {
3589
+ download: {
3590
+ log: {
3591
+ /***
3592
+ * 流水线runner日志下载。Pipeline runner log download.
3593
+ *
3594
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3595
+ * repo-cnb-trigger:r
3596
+ *
3597
+ * /{repo}/-/build/runner/download/log/{pipelineId}
3598
+ */
3599
+ get: Build_BuildRunnerDownloadLog;
3600
+ };
3601
+ };
3153
3602
  };
3154
3603
  start: {
3155
3604
  /***
@@ -3193,7 +3642,7 @@ interface Client {
3193
3642
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3194
3643
  * repo-contents:r
3195
3644
  *
3196
- * /{repo}/-/commit-assets/download/{fileName}
3645
+ * /{repo}/-/commit-assets/download/{commit_id}/{filename}
3197
3646
  */
3198
3647
  get: Assets_GetCommitAssets;
3199
3648
  };
@@ -3211,27 +3660,6 @@ interface Client {
3211
3660
  get: RepoContributor_GetRepoContributorTrend;
3212
3661
  };
3213
3662
  };
3214
- files: {
3215
- /***
3216
- * 发起一个获取 files 的请求,返回内容或者 302 到某个地址。Initiate a request to retrieve files, returns content or 302 redirect.
3217
- *
3218
- * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3219
- * repo-contents:r
3220
- *
3221
- * /{repo}/-/files/{userIdKey}/{randomUUID}/{fileName}
3222
- */
3223
- get: Assets_GetFiles;
3224
-
3225
- /***
3226
- * 发起一个确认 files 的请求,上传的图片要调用此接口才能生效。Initiate a request to confirm files, uploaded images need to call this API to take effect.
3227
- *
3228
- * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3229
- * repo-contents:rw
3230
- *
3231
- * /{repo}/-/files/{userIdKey}/{randomUUID}/{fileName}
3232
- */
3233
- put: Assets_PutFiles;
3234
- };
3235
3663
  forks: {
3236
3664
  /***
3237
3665
  * 获取指定仓库的 fork 列表。Get fork list for specified repository.
@@ -3387,7 +3815,7 @@ interface Client {
3387
3815
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3388
3816
  * repo-code:rw
3389
3817
  *
3390
- * /{repo}/-/git/commit-assets/{sha1}/asset-upload-confirmation/{token}/{asset_path}
3818
+ * /{repo}/-/git/commit-assets/{sha1}/asset-upload-confirmation/{upload_token}/{asset_path}
3391
3819
  */
3392
3820
  post: Git_PostCommitAssetUploadConfirmation;
3393
3821
  };
@@ -3562,27 +3990,6 @@ interface Client {
3562
3990
  get: Git_GetTag;
3563
3991
  };
3564
3992
  };
3565
- imgs: {
3566
- /***
3567
- * 发起一个获取 imgs 的请求,返回内容或者 302 到某个地址。Initiate a request to get images, returns content or 302 redirect.
3568
- *
3569
- * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3570
- * repo-contents:r
3571
- *
3572
- * /{repo}/-/imgs/{userIdKey}/{fileName}
3573
- */
3574
- get: Assets_GetImgs;
3575
-
3576
- /***
3577
- * 发起一个确认 imgs 的请求,上传的图片要调用此接口才能生效。Initiate a request to confirm images, uploaded images need to call this API to take effect.
3578
- *
3579
- * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3580
- * repo-contents:rw
3581
- *
3582
- * /{repo}/-/imgs/{userIdKey}/{fileName}
3583
- */
3584
- put: Assets_PutImgs;
3585
- };
3586
3993
  inheritMembers: {
3587
3994
  /***
3588
3995
  * 获取指定组织或仓库内的继承成员。List inherited members within specified organization or repository。
@@ -3778,6 +4185,53 @@ interface Client {
3778
4185
  deleteByName: Issues_DeleteIssueLabel;
3779
4186
  };
3780
4187
  };
4188
+ knowledge: {
4189
+ base: {
4190
+ /***
4191
+ * 删除知识库
4192
+ *
4193
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4194
+ * repo-code:rw
4195
+ *
4196
+ * /{repo}/-/knowledge/base
4197
+ */
4198
+ delete: KnowledgeBase_DeleteKnowledgeBase;
4199
+
4200
+ /***
4201
+ * 获取知识库信息
4202
+ *
4203
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4204
+ * repo-code:r
4205
+ *
4206
+ * /{repo}/-/knowledge/base
4207
+ */
4208
+ get: KnowledgeBase_GetKnowledgeBaseInfo;
4209
+ query: {
4210
+ /***
4211
+ * 查询知识库,使用文档:https://docs.cnb.cool/zh/ai/knowledge-base.html
4212
+ *
4213
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4214
+ * repo-code:r
4215
+ *
4216
+ * /{repo}/-/knowledge/base/query
4217
+ */
4218
+ post: KnowledgeBase_QueryKnowledgeBase;
4219
+ };
4220
+ };
4221
+ embedding: {
4222
+ models: {
4223
+ /***
4224
+ * 获取当前支持的 Embedding 模型列表
4225
+ *
4226
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4227
+ * repo-code:r
4228
+ *
4229
+ * /{repo}/-/knowledge/embedding/models
4230
+ */
4231
+ list: KnowledgeBase_GetModels;
4232
+ };
4233
+ };
4234
+ };
3781
4235
  labels: {
3782
4236
  /***
3783
4237
  * 查询仓库的标签(label) 列表。List repository labels.
@@ -4026,6 +4480,17 @@ interface Client {
4026
4480
  */
4027
4481
  get: Pulls_CanUserBeAssignedToPull;
4028
4482
  };
4483
+ cherryPick: {
4484
+ /***
4485
+ * 拣选一个已合并的 Pull Request 的提交到选定的分支
4486
+ *
4487
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4488
+ * repo-pr:rw
4489
+ *
4490
+ * /{repo}/-/pulls/{number}/cherry-pick
4491
+ */
4492
+ post: Pulls_CherryPickPullRequest;
4493
+ };
4029
4494
  comments: {
4030
4495
  /***
4031
4496
  * 查询 Pull Comments 列表。List pull comments requests.
@@ -4121,6 +4586,16 @@ interface Client {
4121
4586
  post: Pulls_RevertPullRequest;
4122
4587
  };
4123
4588
  reviews: {
4589
+ /***
4590
+ * 查询特定 pull reviews 列表。List pull reviews.
4591
+ *
4592
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4593
+ * repo-notes:r
4594
+ *
4595
+ * /{repo}/-/pulls/{number}/reviews
4596
+ */
4597
+ list: Pulls_ListPullReviews;
4598
+
4124
4599
  /***
4125
4600
  * 新增一次 pull request 评审。Create a pull review.
4126
4601
  *
@@ -4130,6 +4605,17 @@ interface Client {
4130
4605
  * /{repo}/-/pulls/{number}/reviews
4131
4606
  */
4132
4607
  post: Pulls_PostPullReview;
4608
+ comments: {
4609
+ /***
4610
+ * 查询指定 Pull Review Comments 列表评论。List pull review comments.
4611
+ *
4612
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4613
+ * repo-notes:r
4614
+ *
4615
+ * /{repo}/-/pulls/{number}/reviews/{review_id}/comments
4616
+ */
4617
+ list: Pulls_ListPullReviewComments;
4618
+ };
4133
4619
  };
4134
4620
  };
4135
4621
  releases: {
@@ -4159,7 +4645,7 @@ interface Client {
4159
4645
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4160
4646
  * repo-contents:r
4161
4647
  *
4162
- * /{repo}/-/releases/download/{fileName}
4648
+ * /{repo}/-/releases/download/{tag}/{filename}
4163
4649
  */
4164
4650
  get: Assets_GetReleasesAsset;
4165
4651
  };
@@ -4187,7 +4673,7 @@ interface Client {
4187
4673
  };
4188
4674
  tags: {
4189
4675
  /***
4190
- * 通过 tag 查询指定 releaseGet a release by tag.
4676
+ * 通过 tag 查询指定 release,包含附件信息。Get a release by tag, include assets information.
4191
4677
  *
4192
4678
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4193
4679
  * repo-code:r
@@ -4208,7 +4694,7 @@ interface Client {
4208
4694
  delete: Releases_DeleteRelease;
4209
4695
 
4210
4696
  /***
4211
- * 根据 id 查询指定 releaseGet a release by id.
4697
+ * 根据 id 查询指定 release, 包含附件信息。Get a release by id, include assets information.
4212
4698
  *
4213
4699
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4214
4700
  * repo-code:r
@@ -4233,7 +4719,7 @@ interface Client {
4233
4719
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4234
4720
  * repo-code:rw
4235
4721
  *
4236
- * /{repo}/-/releases/{release_id}/asset-upload-confirmation/{token}/{asset_path}
4722
+ * /{repo}/-/releases/{release_id}/asset-upload-confirmation/{upload_token}/{asset_path}
4237
4723
  */
4238
4724
  post: Releases_PostReleaseAssetUploadConfirmation;
4239
4725
  };
@@ -4444,7 +4930,7 @@ interface Client {
4444
4930
  upload: {
4445
4931
  files: {
4446
4932
  /***
4447
- * 发起一个上传 files 的请求,返回上传 cos 的 url form 内容。Initiate a request to upload files,returns COS upload URL and form data.
4933
+ * 发起一个上传 files 的请求,返回上传文件的url,请使用 put 发起流式上传。Initiate a request to upload files,returns upload URL.Use PUT to initiate a stream upload.
4448
4934
  *
4449
4935
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4450
4936
  * repo-contents:rw
@@ -4455,7 +4941,7 @@ interface Client {
4455
4941
  };
4456
4942
  imgs: {
4457
4943
  /***
4458
- * 发起一个上传 imgs 的请求,返回上传 cos url form 内容。发起一个上传 imgs 的请求,返回上传 cos url form 内容.
4944
+ * 发起一个上传 imgs 的请求,返回上传文件的url,请使用 put 发起流式上传。Initiate a request to upload images,returns upload URL.Use PUT to initiate a stream upload.
4459
4945
  *
4460
4946
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4461
4947
  * repo-contents:rw
@@ -4466,7 +4952,7 @@ interface Client {
4466
4952
  };
4467
4953
  releases: {
4468
4954
  /***
4469
- * 发起一个上传 release 附件的请求,返回上传 cos 的 url 。Initiate a request to upload release attachments,
4955
+ * 发起一个上传 release 附件的请求,返回上传文件的url,附件上限是64GiB。请使用 put 发起流式上传。
4470
4956
  *
4471
4957
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4472
4958
  * repo-contents:rw
@@ -4475,6 +4961,17 @@ interface Client {
4475
4961
  */
4476
4962
  post: Assets_UploadReleases;
4477
4963
  };
4964
+ wiki: {
4965
+ /***
4966
+ * 发起一个上传 wiki 文件的请求,返回上传文件的url,请使用 put 发起流式上传。Initiate a request to upload wiki files,returns upload URL.Use PUT to initiate a stream upload.
4967
+ *
4968
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4969
+ * repo-contents:rw
4970
+ *
4971
+ * /{repo}/-/upload/wiki
4972
+ */
4973
+ post: wiki_UploadWikiFile;
4974
+ };
4478
4975
  };
4479
4976
  workspace: {
4480
4977
  detail: {
@@ -4488,6 +4985,17 @@ interface Client {
4488
4985
  */
4489
4986
  get: Workspace_GetWorkspaceDetail;
4490
4987
  };
4988
+ start: {
4989
+ /***
4990
+ * 启动云原生开发环境,已存在环境则直接打开,否则重新创建开发环境。Start cloud-native dev. Opens existing env or creates a new one.
4991
+ *
4992
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4993
+ * repo-cnb-trigger:rw
4994
+ *
4995
+ * /{repo}/-/workspace/start
4996
+ */
4997
+ post: Workspace_StartWorkspace;
4998
+ };
4491
4999
  };
4492
5000
  };
4493
5001
  slug: {
@@ -4602,7 +5110,6 @@ interface Client {
4602
5110
  DeleteOrganization: Organizations_DeleteOrganization;
4603
5111
  GetGroup: Organizations_GetGroup;
4604
5112
  UpdateOrganization: Organizations_UpdateOrganization;
4605
- UpdateGroupAvatar: Organizations_UpdateGroupAvatar;
4606
5113
  GetGroupSetting: Organizations_GetGroupSetting;
4607
5114
  UpdateGroupSetting: Organizations_UpdateGroupSetting;
4608
5115
  ListSubgroups: Organizations_ListSubgroups;
@@ -4636,22 +5143,6 @@ interface Client {
4636
5143
  GetUserActivitiesByDate: Activities_GetUserActivitiesByDate;
4637
5144
  GetUserRepoActivityDetails: Activities_GetUserRepoActivityDetails;
4638
5145
  };
4639
- Assets: {
4640
- GetUserAvatar: Assets_GetUserAvatar;
4641
- PutLogos: Assets_PutLogos;
4642
- GetLogos: Assets_GetLogos;
4643
- UploadLogos: Assets_UploadLogos;
4644
- GetCommitAssets: Assets_GetCommitAssets;
4645
- GetFiles: Assets_GetFiles;
4646
- PutFiles: Assets_PutFiles;
4647
- GetImgs: Assets_GetImgs;
4648
- PutImgs: Assets_PutImgs;
4649
- GetReleasesAsset: Assets_GetReleasesAsset;
4650
- GetLatestReleasesAsset: Assets_GetLatestReleasesAsset;
4651
- UploadFiles: Assets_UploadFiles;
4652
- UploadImgs: Assets_UploadImgs;
4653
- UploadReleases: Assets_UploadReleases;
4654
- };
4655
5146
  Followers: {
4656
5147
  GetFollowersByUserID: Followers_GetFollowersByUserID;
4657
5148
  GetFollowingByUserID: Followers_GetFollowingByUserID;
@@ -4664,6 +5155,7 @@ interface Client {
4664
5155
  DeleteWorkspace: Workspace_DeleteWorkspace;
4665
5156
  ListWorkspaces: Workspace_ListWorkspaces;
4666
5157
  GetWorkspaceDetail: Workspace_GetWorkspaceDetail;
5158
+ StartWorkspace: Workspace_StartWorkspace;
4667
5159
  };
4668
5160
  Collaborators: {
4669
5161
  ListInheritMembersOfGroup: Collaborators_ListInheritMembersOfGroup;
@@ -4691,7 +5183,22 @@ interface Client {
4691
5183
  ListMemberAccessLevelOfRepo: Contributors_ListMemberAccessLevelOfRepo;
4692
5184
  };
4693
5185
  Missions: {
5186
+ CreateMission: Missions_CreateMission;
4694
5187
  DeleteMission: Missions_DeleteMission;
5188
+ GetMissionViewConfig: Missions_GetMissionViewConfig;
5189
+ PostMissionViewConfig: Missions_PostMissionViewConfig;
5190
+ GetMissionViewList: Missions_GetMissionViewList;
5191
+ PostMissionViewList: Missions_PostMissionViewList;
5192
+ PutMissionViewList: Missions_PutMissionViewList;
5193
+ };
5194
+ Assets: {
5195
+ UploadLogos: Assets_UploadLogos;
5196
+ GetCommitAssets: Assets_GetCommitAssets;
5197
+ GetReleasesAsset: Assets_GetReleasesAsset;
5198
+ GetLatestReleasesAsset: Assets_GetLatestReleasesAsset;
5199
+ UploadFiles: Assets_UploadFiles;
5200
+ UploadImgs: Assets_UploadImgs;
5201
+ UploadReleases: Assets_UploadReleases;
4695
5202
  };
4696
5203
  Artifactory: {
4697
5204
  DeleteRegistry: Artifactory_DeleteRegistry;
@@ -4705,8 +5212,16 @@ interface Client {
4705
5212
  GetRegistryQuotas: Artifactory_GetRegistryQuotas;
4706
5213
  DownloadRegistryQuotas: Artifactory_DownloadRegistryQuotas;
4707
5214
  };
5215
+ Ai: {
5216
+ AiChatCompletions: Ai_AiChatCompletions;
5217
+ };
5218
+ Badge: {
5219
+ UploadBadge: Badge_UploadBadge;
5220
+ };
4708
5221
  Build: {
4709
5222
  GetBuildLogs: Build_GetBuildLogs;
5223
+ GetBuildStage: Build_GetBuildStage;
5224
+ BuildRunnerDownloadLog: Build_BuildRunnerDownloadLog;
4710
5225
  StartBuild: Build_StartBuild;
4711
5226
  GetBuildStatus: Build_GetBuildStatus;
4712
5227
  StopBuild: Build_StopBuild;
@@ -4766,6 +5281,12 @@ interface Client {
4766
5281
  PutIssueLabels: Issues_PutIssueLabels;
4767
5282
  DeleteIssueLabel: Issues_DeleteIssueLabel;
4768
5283
  };
5284
+ KnowledgeBase: {
5285
+ DeleteKnowledgeBase: KnowledgeBase_DeleteKnowledgeBase;
5286
+ GetKnowledgeBaseInfo: KnowledgeBase_GetKnowledgeBaseInfo;
5287
+ QueryKnowledgeBase: KnowledgeBase_QueryKnowledgeBase;
5288
+ GetModels: KnowledgeBase_GetModels;
5289
+ };
4769
5290
  RepoLabels: {
4770
5291
  ListLabels: RepoLabels_ListLabels;
4771
5292
  PostLabel: RepoLabels_PostLabel;
@@ -4782,6 +5303,7 @@ interface Client {
4782
5303
  ListPullAssignees: Pulls_ListPullAssignees;
4783
5304
  PostPullAssignees: Pulls_PostPullAssignees;
4784
5305
  CanUserBeAssignedToPull: Pulls_CanUserBeAssignedToPull;
5306
+ CherryPickPullRequest: Pulls_CherryPickPullRequest;
4785
5307
  ListPullComments: Pulls_ListPullComments;
4786
5308
  PostPullComment: Pulls_PostPullComment;
4787
5309
  DeletePullLabels: Pulls_DeletePullLabels;
@@ -4791,7 +5313,9 @@ interface Client {
4791
5313
  DeletePullLabel: Pulls_DeletePullLabel;
4792
5314
  MergePull: Pulls_MergePull;
4793
5315
  RevertPullRequest: Pulls_RevertPullRequest;
5316
+ ListPullReviews: Pulls_ListPullReviews;
4794
5317
  PostPullReview: Pulls_PostPullReview;
5318
+ ListPullReviewComments: Pulls_ListPullReviewComments;
4795
5319
  };
4796
5320
  Releases: {
4797
5321
  ListReleases: Releases_ListReleases;
@@ -4819,6 +5343,9 @@ interface Client {
4819
5343
  GetPushLimitSettings: GitSettings_GetPushLimitSettings;
4820
5344
  PutPushLimitSettings: GitSettings_PutPushLimitSettings;
4821
5345
  };
5346
+ wiki: {
5347
+ UploadWikiFile: wiki_UploadWikiFile;
5348
+ };
4822
5349
  }
4823
5350
  //#endregion
4824
5351
  //#region src/index.d.ts