node-cnb 1.16.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
  };
@@ -55,9 +56,12 @@ type ApiCommitAsset = {
55
56
  type ApiCommitDiffFilePatch = {
56
57
  additions: number;
57
58
  deletions: number;
59
+ mode: string;
58
60
  name: string;
59
61
  patch: string;
60
62
  path: string;
63
+ previous_filename: string;
64
+ previous_mode: string;
61
65
  status: string;
62
66
  };
63
67
  type ApiCommitObject = {
@@ -114,6 +118,13 @@ type ApiDeleteIssueAssigneesForm = {
114
118
  type ApiDeletePullAssigneesForm = {
115
119
  assignees: string[];
116
120
  };
121
+ type ApiDiffLine = {
122
+ content: string;
123
+ left_line_number: number;
124
+ prefix: string;
125
+ right_line_number: number;
126
+ type: string;
127
+ };
117
128
  type ApiIssue = {
118
129
  assignees: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[];
119
130
  author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
@@ -259,8 +270,10 @@ type ApiPostTagFrom = {
259
270
  };
260
271
  type ApiPull = {
261
272
  base: ApiPullRef;
273
+ blocked_on: string;
262
274
  body: string;
263
275
  head: ApiPullRef;
276
+ is_wip: boolean;
264
277
  merged_by: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
265
278
  number: string;
266
279
  state: string;
@@ -294,6 +307,7 @@ type ApiPullRequest = {
294
307
  comment_count: number;
295
308
  created_at: string;
296
309
  head: ApiPullRef;
310
+ is_wip: boolean;
297
311
  last_acted_at: string;
298
312
  mergeable_state: string;
299
313
  merged_by: GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo;
@@ -335,6 +349,32 @@ type ApiPullRequestSettings = {
335
349
  merge_commit_message_style: string;
336
350
  squash_commit_message_style: string;
337
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
+ };
338
378
  type ApiPullReviewCommentCreationForm = {
339
379
  body: string;
340
380
  end_line: number;
@@ -583,6 +623,42 @@ type DtoActivityRepoDetail = {
583
623
  /**仓库可见性*/
584
624
  visibility_level: any;
585
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
+ };
586
662
  type DtoAssets = {
587
663
  content_type: string;
588
664
  name: string;
@@ -625,6 +701,9 @@ type DtoBuildStageResult = {
625
701
  /**stage 错误信息*/
626
702
  error: string;
627
703
 
704
+ /**stage id*/
705
+ id: string;
706
+
628
707
  /**stage 名称*/
629
708
  name: string;
630
709
 
@@ -635,9 +714,15 @@ type DtoBuildStageResult = {
635
714
  status: string;
636
715
  };
637
716
  type DtoBuildStatusResult = {
717
+ /**解析后的流水线JSON格式配置内容*/
718
+ jsonConfig: string;
719
+
638
720
  /**流水线的状态*/
639
721
  pipelinesStatus: any;
640
722
 
723
+ /**流水线原始配置内容*/
724
+ rawConfig: string;
725
+
641
726
  /**构建状态*/
642
727
  status: string;
643
728
  };
@@ -677,6 +762,7 @@ type DtoChartTagDetail = {
677
762
  };
678
763
  type DtoCodeRepoQuotaRsp = {
679
764
  docker: DtoQuotaRsp;
765
+ docker_model: DtoQuotaRsp;
680
766
  helm: DtoQuotaRsp;
681
767
  };
682
768
  type DtoCommonRegistryPackageDetail = {
@@ -756,6 +842,9 @@ type DtoContainerTagDetail = {
756
842
  annotations: DtoContainerAnnotation;
757
843
  image: DtoContainerImage;
758
844
  last_pusher: DtoLastPusher;
845
+
846
+ /**返回的结果是否和提供的架构匹配*/
847
+ matches_requested_arch: boolean;
759
848
  options: DtoContainerImage[];
760
849
  package: string;
761
850
  pull_count: number;
@@ -787,6 +876,55 @@ type DtoDependency = {
787
876
  framework_name: string;
788
877
  name: string;
789
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
+ };
790
928
  type DtoDocumentStatistics = {
791
929
  count: number;
792
930
  size: number;
@@ -819,6 +957,11 @@ type DtoForks = {
819
957
  user_lock: boolean;
820
958
  username: string;
821
959
  };
960
+ type DtoGguf = {
961
+ architecture: string;
962
+ parameter_count: string;
963
+ quantization: string;
964
+ };
822
965
  type DtoGroupSettingReq = {
823
966
  /**组织限制指定邮箱认证才能加入*/
824
967
  email_verification: string;
@@ -961,6 +1104,13 @@ type DtoMemberAccessLevelInSlugUnion = {
961
1104
  read_privilege: boolean;
962
1105
  write_privilege: boolean;
963
1106
  };
1107
+ type DtoMessage = {
1108
+ /**内容*/
1109
+ content: string;
1110
+
1111
+ /**角色,可选值:user、assistant*/
1112
+ role: string;
1113
+ };
964
1114
  type DtoMetaData = {
965
1115
  author: string;
966
1116
  home_page: string;
@@ -972,6 +1122,50 @@ type DtoMetaData = {
972
1122
  readme: string;
973
1123
  repository_url: string;
974
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";
975
1169
  type DtoOrganizationAccess = {
976
1170
  /**AccessRole 用户在当前资源的最大权限*/
977
1171
  access_role: any;
@@ -1056,6 +1250,8 @@ type DtoOrganizationUnion = {
1056
1250
  member_count: number;
1057
1251
  name: string;
1058
1252
  path: string;
1253
+ pinned: boolean;
1254
+ pinned_time: string;
1059
1255
  remark: string;
1060
1256
  site: string;
1061
1257
 
@@ -1103,6 +1299,7 @@ type DtoPackage = {
1103
1299
  type DtoPackageDetail = {
1104
1300
  composer: DtoCommonRegistryPackageDetail;
1105
1301
  docker: DtoContainerPackageDetail;
1302
+ docker_model: DtoDockerModelPackageDetail;
1106
1303
  helm: DtoChartPackageDetail;
1107
1304
  maven: DtoCommonRegistryPackageDetail;
1108
1305
  npm: DtoCommonRegistryPackageDetail;
@@ -1110,9 +1307,10 @@ type DtoPackageDetail = {
1110
1307
  ohpm: DtoCommonRegistryPackageDetail;
1111
1308
  pypi: DtoCommonRegistryPackageDetail;
1112
1309
  };
1113
- 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";
1114
1311
  type DtoQueryKnowledgeBaseReq = {
1115
1312
  query: string;
1313
+ score_threshold: number;
1116
1314
  top_k: number;
1117
1315
  };
1118
1316
  type DtoQueryKnowledgeBaseRes = {
@@ -1159,7 +1357,7 @@ type DtoRepos4User = {
1159
1357
  /**预留*/
1160
1358
  forked_from_repo: any;
1161
1359
  freeze: boolean;
1162
- id: number;
1360
+ id: string;
1163
1361
 
1164
1362
  /**仓库程序语言,预留*/
1165
1363
  language: string;
@@ -1215,7 +1413,7 @@ type DtoRepos4UserBase = {
1215
1413
  /**预留*/
1216
1414
  forked_from_repo: any;
1217
1415
  freeze: boolean;
1218
- id: number;
1416
+ id: string;
1219
1417
 
1220
1418
  /**仓库程序语言,预留*/
1221
1419
  language: string;
@@ -1299,10 +1497,10 @@ type DtoStartBuildReq = {
1299
1497
  tag: string;
1300
1498
  };
1301
1499
  type DtoStartWorkspaceReq = {
1302
- /**分支名,例如:main*/
1500
+ /**分支名或 tag 名,例如:main 或 v1.0.0。*/
1303
1501
  branch: string;
1304
1502
 
1305
- /**Git ref,例如:refs/heads/main*/
1503
+ /**Git ref,例如,refs/heads/main 或 refs/tags/v1.0.0。不传 ref 时默认基于分支启动*/
1306
1504
  ref: string;
1307
1505
  };
1308
1506
  type DtoStartWorkspaceResult = {
@@ -1321,6 +1519,7 @@ type DtoStartWorkspaceResult = {
1321
1519
  type DtoTag = {
1322
1520
  composer: DtoCommonRegistryTag[];
1323
1521
  docker: DtoContainerTag[];
1522
+ docker_model: DtoDockerModelTag[];
1324
1523
  helm: DtoChartTag[];
1325
1524
  maven: DtoCommonRegistryTag[];
1326
1525
  npm: DtoCommonRegistryTag[];
@@ -1332,6 +1531,7 @@ type DtoTag = {
1332
1531
  type DtoTagDetail = {
1333
1532
  composer: DtoCommonRegistryTagDetail;
1334
1533
  docker: DtoContainerTagDetail;
1534
+ docker_model: DtoDockerModelTagDetail;
1335
1535
  helm: DtoChartTagDetail;
1336
1536
  maven: DtoCommonRegistryTagDetail;
1337
1537
  npm: DtoCommonRegistryTagDetail;
@@ -1355,6 +1555,17 @@ type DtoUpdateMembersRequest = {
1355
1555
  access_level: string;
1356
1556
  is_outside_collaborator: boolean;
1357
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
+ };
1358
1569
  type DtoUploadAssetsResponse = {
1359
1570
  assets: DtoAssets;
1360
1571
  form: any;
@@ -1363,6 +1574,32 @@ type DtoUploadAssetsResponse = {
1363
1574
  token: string;
1364
1575
  upload_url: string;
1365
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
+ };
1366
1603
  type DtoUploadRequestParams = {
1367
1604
  name: string;
1368
1605
  size: number;
@@ -1514,12 +1751,33 @@ type DtoWorkspaceDeleteResult = {
1514
1751
  message: string;
1515
1752
  };
1516
1753
  type DtoWorkspaceDetailResult = {
1754
+ /**CodeBuddy 国际版客户端 remote-ssh 访问 schema 地址*/
1755
+ codebuddy: string;
1756
+
1757
+ /**CodeBuddy 国内版客户端 remote-ssh 访问 schema 地址*/
1758
+ codebuddycn: string;
1759
+
1517
1760
  /**Cursor 客户端 remote-ssh 访问 schema 地址*/
1518
1761
  cursor: string;
1519
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
+
1520
1775
  /**VSCode 客户端 remote-ssh 访问 schema 地址*/
1521
1776
  vscode: string;
1522
1777
 
1778
+ /**Vscode 预览版客户端 remote-ssh 访问 schema 地址*/
1779
+ "vscode-insiders": string;
1780
+
1523
1781
  /**WebIDE 访问 url*/
1524
1782
  webide: string;
1525
1783
  };
@@ -1585,13 +1843,15 @@ type DtoWorkspaceListResult = {
1585
1843
  /**总数*/
1586
1844
  total: number;
1587
1845
  };
1588
- type FlagsRepo = 0 | 2;
1846
+ type FlagsRepo = 0 | 2 | 4;
1589
1847
  type GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo = {
1848
+ email: string;
1590
1849
  freeze: boolean;
1591
1850
  nickname: string;
1592
1851
  username: string;
1593
1852
  };
1594
1853
  type GitWoaComCnbMonorepoGitInternalAppGitServiceBffWebUserInfo = {
1854
+ email: string;
1595
1855
  freeze: boolean;
1596
1856
  nickname: string;
1597
1857
  username: string;
@@ -1600,17 +1860,6 @@ type GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo = {
1600
1860
  nickname: string;
1601
1861
  username: string;
1602
1862
  };
1603
- type HttpUpdateUserInfoPayload = {
1604
- address: string;
1605
- bio: string;
1606
- company: string;
1607
- location: string;
1608
- name: string;
1609
- nickname: string;
1610
- site: string;
1611
- wechat_mp: string;
1612
- wechat_mp_qrcode: string;
1613
- };
1614
1863
  type OpenapiCreateBranchForm = {
1615
1864
  name: string;
1616
1865
  start_point: string;
@@ -1770,7 +2019,7 @@ type Organizations_CreateOrganization = (params: {
1770
2019
  }) => Promise<any>;
1771
2020
  type Users_GetUserInfo = () => Promise<DtoUsersResultForSelf>;
1772
2021
  type Users_UpdateUserInfo = (params: {
1773
- request: HttpUpdateUserInfoPayload;
2022
+ request: DtoUpdateUserInfoPayload;
1774
2023
  }) => Promise<any>;
1775
2024
  type Users_AutoCompleteSource = (params?: {
1776
2025
  source_type?: "Group" | "Repo";
@@ -1797,9 +2046,10 @@ type Repositories_GetRepos = (params?: {
1797
2046
  page?: number;
1798
2047
  page_size?: number;
1799
2048
  search?: string;
1800
- filter_type?: "private" | "public" | "encrypted";
2049
+ filter_type?: "private" | "public" | "secret";
1801
2050
  role?: "Reporter" | "Developer" | "Master" | "Owner";
1802
2051
  flags?: "KnowledgeBase";
2052
+ status?: "active" | "archived";
1803
2053
  order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path" | "forks";
1804
2054
  desc?: boolean;
1805
2055
  }) => Promise<DtoRepos4User[]>;
@@ -1935,7 +2185,7 @@ type Repositories_GetGroupSubRepos = (params: {
1935
2185
  group: string;
1936
2186
  page?: number;
1937
2187
  page_size?: number;
1938
- filter_type?: "private" | "public" | "encrypted";
2188
+ filter_type?: "private" | "public" | "secret";
1939
2189
  order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path";
1940
2190
  desc?: boolean;
1941
2191
  descendant?: "all" | "sub" | "grand";
@@ -1975,6 +2225,25 @@ type Collaborators_AddMembersOfMission = (params: {
1975
2225
  username: string;
1976
2226
  request: DtoUpdateMembersRequest;
1977
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>;
1978
2247
  type Artifactory_DeleteRegistry = (params: {
1979
2248
  registry: string;
1980
2249
  "x-cnb-identity-ticket"?: string;
@@ -1995,6 +2264,14 @@ type Repositories_UpdateRepo = (params: {
1995
2264
  repo: string;
1996
2265
  request: DtoRepoPatch;
1997
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>;
1998
2275
  type Build_GetBuildLogs = (params: {
1999
2276
  repo: string;
2000
2277
  createTime?: string;
@@ -2016,6 +2293,10 @@ type Build_GetBuildStage = (params: {
2016
2293
  pipelineId: string;
2017
2294
  stageId: string;
2018
2295
  }) => Promise<DtoBuildStageResult>;
2296
+ type Build_BuildRunnerDownloadLog = (params: {
2297
+ repo: string;
2298
+ pipelineId: string;
2299
+ }) => Promise<any>;
2019
2300
  type Build_StartBuild = (params: {
2020
2301
  repo: string;
2021
2302
  request: DtoStartBuildReq;
@@ -2103,7 +2384,7 @@ type Git_GetCommitAssetsBySha = (params: {
2103
2384
  type Git_PostCommitAssetUploadConfirmation = (params: {
2104
2385
  repo: string;
2105
2386
  sha1: string;
2106
- token: string;
2387
+ upload_token: string;
2107
2388
  asset_path: string;
2108
2389
  }) => Promise<any>;
2109
2390
  type Git_PostCommitAssetUploadURL = (params: {
@@ -2476,11 +2757,24 @@ type Pulls_RevertPullRequest = (params: {
2476
2757
  number: number;
2477
2758
  revert_pull_request_form: WebapiRevertPullRequestForm;
2478
2759
  }) => Promise<any>;
2760
+ type Pulls_ListPullReviews = (params: {
2761
+ repo: string;
2762
+ number: string;
2763
+ page?: number;
2764
+ page_size?: number;
2765
+ }) => Promise<ApiPullReview[]>;
2479
2766
  type Pulls_PostPullReview = (params: {
2480
2767
  repo: string;
2481
2768
  number: string;
2482
2769
  post_pull_review_form: ApiPullReviewCreationForm;
2483
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[]>;
2484
2778
  type Releases_ListReleases = (params: {
2485
2779
  repo: string;
2486
2780
  page?: number;
@@ -2523,7 +2817,7 @@ type Releases_PatchRelease = (params: {
2523
2817
  type Releases_PostReleaseAssetUploadConfirmation = (params: {
2524
2818
  repo: string;
2525
2819
  release_id: string;
2526
- token: string;
2820
+ upload_token: string;
2527
2821
  asset_path: string;
2528
2822
  }) => Promise<any>;
2529
2823
  type Releases_PostReleaseAssetUploadURL = (params: {
@@ -2615,6 +2909,10 @@ type Assets_UploadReleases = (params: {
2615
2909
  tagName: string;
2616
2910
  request: DtoUploadRequestParams;
2617
2911
  }) => Promise<DtoUploadAssetsResponse>;
2912
+ type wiki_UploadWikiFile = (params: {
2913
+ repo: string;
2914
+ request: DtoUploadRequestParams;
2915
+ }) => Promise<DtoUploadAssetsResponse>;
2618
2916
  type Workspace_GetWorkspaceDetail = (params: {
2619
2917
  repo: string;
2620
2918
  sn: string;
@@ -2625,7 +2923,7 @@ type Workspace_StartWorkspace = (params: {
2625
2923
  }) => Promise<DtoStartWorkspaceResult>;
2626
2924
  type Artifactory_ListPackages = (params: {
2627
2925
  slug: string;
2628
- type: "all" | "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2926
+ type: "all" | "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2629
2927
  page?: number;
2630
2928
  page_size?: number;
2631
2929
  ordering?: "pull_count" | "last_push_at" | "name_ascend" | "name_descend";
@@ -2633,7 +2931,7 @@ type Artifactory_ListPackages = (params: {
2633
2931
  }) => Promise<DtoPackage[]>;
2634
2932
  type Artifactory_HeadPackages = (params: {
2635
2933
  slug: string;
2636
- type: "all" | "docker" | "helm";
2934
+ type: "all" | "docker" | "helm" | "docker-model";
2637
2935
  page?: number;
2638
2936
  page_size?: number;
2639
2937
  ordering?: "pull_count" | "last_push_at" | "name_ascend" | "name_descend";
@@ -2641,25 +2939,26 @@ type Artifactory_HeadPackages = (params: {
2641
2939
  }) => Promise<any>;
2642
2940
  type Artifactory_GetPackage = (params: {
2643
2941
  slug: string;
2644
- type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2942
+ type: "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2645
2943
  name: string;
2646
2944
  }) => Promise<DtoPackageDetail>;
2647
2945
  type Artifactory_DeletePackageTag = (params: {
2648
2946
  slug: string;
2649
- type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2947
+ type: "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2650
2948
  name: string;
2651
2949
  tag: string;
2652
2950
  }) => Promise<any>;
2653
2951
  type Artifactory_GetPackageTagDetail = (params: {
2654
2952
  slug: string;
2655
- type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2953
+ type: "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2656
2954
  name: string;
2657
2955
  tag: string;
2658
2956
  sha256?: string;
2957
+ arch?: string;
2659
2958
  }) => Promise<DtoTagDetail>;
2660
2959
  type Artifactory_ListPackageTags = (params: {
2661
2960
  slug: string;
2662
- type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2961
+ type: "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2663
2962
  pkgname: string;
2664
2963
  page?: number;
2665
2964
  page_size?: number;
@@ -2668,18 +2967,18 @@ type Artifactory_ListPackageTags = (params: {
2668
2967
  }) => Promise<DtoTag>;
2669
2968
  type Artifactory_GetRegistryQuota = (params: {
2670
2969
  slug: string;
2671
- type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2970
+ type: "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2672
2971
  }) => Promise<DtoRegistryLevelQuotaRsp>;
2673
2972
  type Artifactory_GetRegistryQuotas = (params: {
2674
2973
  slug: string;
2675
- type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2974
+ type: "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2676
2975
  page?: number;
2677
2976
  page_size?: number;
2678
2977
  ordering?: "used_ascend" | "used_descend";
2679
2978
  }) => Promise<DtoQuotaRsp[]>;
2680
2979
  type Artifactory_DownloadRegistryQuotas = (params: {
2681
2980
  slug: string;
2682
- type: "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2981
+ type: "docker" | "helm" | "docker-model" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
2683
2982
  page?: number;
2684
2983
  page_size?: number;
2685
2984
  ordering?: "used_ascend" | "used_descend";
@@ -3096,7 +3395,7 @@ interface Client {
3096
3395
  upload: {
3097
3396
  logos: {
3098
3397
  /***
3099
- * 发起一个上传 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.
3100
3399
  *
3101
3400
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3102
3401
  * group-manage:rw
@@ -3128,6 +3427,60 @@ interface Client {
3128
3427
  */
3129
3428
  post: Collaborators_AddMembersOfMission;
3130
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
+ };
3131
3484
  };
3132
3485
  registry: {
3133
3486
  /***
@@ -3181,6 +3534,34 @@ interface Client {
3181
3534
  * /{repo}
3182
3535
  */
3183
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
+ };
3184
3565
  build: {
3185
3566
  logs: {
3186
3567
  /***
@@ -3204,6 +3585,21 @@ interface Client {
3204
3585
  get: Build_GetBuildStage;
3205
3586
  };
3206
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
+ };
3602
+ };
3207
3603
  start: {
3208
3604
  /***
3209
3605
  * 开始一个构建。Start a build.
@@ -4190,6 +4586,16 @@ interface Client {
4190
4586
  post: Pulls_RevertPullRequest;
4191
4587
  };
4192
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
+
4193
4599
  /***
4194
4600
  * 新增一次 pull request 评审。Create a pull review.
4195
4601
  *
@@ -4199,6 +4605,17 @@ interface Client {
4199
4605
  * /{repo}/-/pulls/{number}/reviews
4200
4606
  */
4201
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
+ };
4202
4619
  };
4203
4620
  };
4204
4621
  releases: {
@@ -4513,7 +4930,7 @@ interface Client {
4513
4930
  upload: {
4514
4931
  files: {
4515
4932
  /***
4516
- * 发起一个上传 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.
4517
4934
  *
4518
4935
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4519
4936
  * repo-contents:rw
@@ -4524,7 +4941,7 @@ interface Client {
4524
4941
  };
4525
4942
  imgs: {
4526
4943
  /***
4527
- * 发起一个上传 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.
4528
4945
  *
4529
4946
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4530
4947
  * repo-contents:rw
@@ -4535,7 +4952,7 @@ interface Client {
4535
4952
  };
4536
4953
  releases: {
4537
4954
  /***
4538
- * 发起一个上传 release 附件的请求,返回上传 cos 的 url 。Initiate a request to upload release attachments,
4955
+ * 发起一个上传 release 附件的请求,返回上传文件的url,附件上限是64GiB。请使用 put 发起流式上传。
4539
4956
  *
4540
4957
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4541
4958
  * repo-contents:rw
@@ -4544,6 +4961,17 @@ interface Client {
4544
4961
  */
4545
4962
  post: Assets_UploadReleases;
4546
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
+ };
4547
4975
  };
4548
4976
  workspace: {
4549
4977
  detail: {
@@ -4757,6 +5185,11 @@ interface Client {
4757
5185
  Missions: {
4758
5186
  CreateMission: Missions_CreateMission;
4759
5187
  DeleteMission: Missions_DeleteMission;
5188
+ GetMissionViewConfig: Missions_GetMissionViewConfig;
5189
+ PostMissionViewConfig: Missions_PostMissionViewConfig;
5190
+ GetMissionViewList: Missions_GetMissionViewList;
5191
+ PostMissionViewList: Missions_PostMissionViewList;
5192
+ PutMissionViewList: Missions_PutMissionViewList;
4760
5193
  };
4761
5194
  Assets: {
4762
5195
  UploadLogos: Assets_UploadLogos;
@@ -4779,9 +5212,16 @@ interface Client {
4779
5212
  GetRegistryQuotas: Artifactory_GetRegistryQuotas;
4780
5213
  DownloadRegistryQuotas: Artifactory_DownloadRegistryQuotas;
4781
5214
  };
5215
+ Ai: {
5216
+ AiChatCompletions: Ai_AiChatCompletions;
5217
+ };
5218
+ Badge: {
5219
+ UploadBadge: Badge_UploadBadge;
5220
+ };
4782
5221
  Build: {
4783
5222
  GetBuildLogs: Build_GetBuildLogs;
4784
5223
  GetBuildStage: Build_GetBuildStage;
5224
+ BuildRunnerDownloadLog: Build_BuildRunnerDownloadLog;
4785
5225
  StartBuild: Build_StartBuild;
4786
5226
  GetBuildStatus: Build_GetBuildStatus;
4787
5227
  StopBuild: Build_StopBuild;
@@ -4873,7 +5313,9 @@ interface Client {
4873
5313
  DeletePullLabel: Pulls_DeletePullLabel;
4874
5314
  MergePull: Pulls_MergePull;
4875
5315
  RevertPullRequest: Pulls_RevertPullRequest;
5316
+ ListPullReviews: Pulls_ListPullReviews;
4876
5317
  PostPullReview: Pulls_PostPullReview;
5318
+ ListPullReviewComments: Pulls_ListPullReviewComments;
4877
5319
  };
4878
5320
  Releases: {
4879
5321
  ListReleases: Releases_ListReleases;
@@ -4901,6 +5343,9 @@ interface Client {
4901
5343
  GetPushLimitSettings: GitSettings_GetPushLimitSettings;
4902
5344
  PutPushLimitSettings: GitSettings_PutPushLimitSettings;
4903
5345
  };
5346
+ wiki: {
5347
+ UploadWikiFile: wiki_UploadWikiFile;
5348
+ };
4904
5349
  }
4905
5350
  //#endregion
4906
5351
  //#region src/index.d.ts