node-cnb 1.15.0 → 1.16.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/dist/index.d.mts CHANGED
@@ -25,7 +25,8 @@ type ApiBranchProtection = {
25
25
  id: string;
26
26
  required_approved_review_count: number;
27
27
  required_approved_review_ratio: number;
28
- required_commit_signatures: boolean;
28
+
29
+ /**RequiredCommitSignatures bool `json:"required_commit_signatures"`*/
29
30
  required_linear_history: boolean;
30
31
  required_master_approve: boolean;
31
32
  required_must_auto_merge: boolean;
@@ -183,7 +184,7 @@ type ApiPatchIssueForm = {
183
184
  /**end time*/
184
185
  end_date: string;
185
186
 
186
- /**Priority of this issue. Can be one of: `p0`, `p1`, `p2`, `p3`, `""`.*/
187
+ /**Priority of this issue. Can be one of: `-1P`, `-2P`, `P0`, `P1`, `P2`, `P3`, `""`.*/
187
188
  priority: string;
188
189
 
189
190
  /**start time*/
@@ -231,7 +232,7 @@ type ApiPostIssueForm = {
231
232
  end_date: string;
232
233
  labels: string[];
233
234
 
234
- /**Priority of this issue. Can be one of: `p0`, `p1`, `p2`, `p3`, `""`.*/
235
+ /**Priority of this issue. Can be one of: `-1P`, `-2P`, `P0`, `P1`, `P2`, `P3`, `""`.*/
235
236
  priority: string;
236
237
  start_date: string;
237
238
  title: string;
@@ -611,6 +612,28 @@ type DtoBuildResult = {
611
612
  /**构建号*/
612
613
  sn: string;
613
614
  };
615
+ type DtoBuildStageResult = {
616
+ /**stage 日志内容,数组格式,一个元素表示一行日志*/
617
+ content: string[];
618
+
619
+ /**stage 耗时,单位:ms*/
620
+ duration: number;
621
+
622
+ /**stage 结束时间*/
623
+ endTime: number;
624
+
625
+ /**stage 错误信息*/
626
+ error: string;
627
+
628
+ /**stage 名称*/
629
+ name: string;
630
+
631
+ /**stage 开始时间*/
632
+ startTime: number;
633
+
634
+ /**stage 状态: "pending", "start", "success", "error", "cancel", "skipped"*/
635
+ status: string;
636
+ };
614
637
  type DtoBuildStatusResult = {
615
638
  /**流水线的状态*/
616
639
  pipelinesStatus: any;
@@ -747,6 +770,12 @@ type DtoCreateGroupReq = {
747
770
  path: string;
748
771
  remark: string;
749
772
  };
773
+ type DtoCreateMissionReq = {
774
+ description: string;
775
+ name: string;
776
+ repos: string[];
777
+ visibility: "public" | "private";
778
+ };
750
779
  type DtoCreateRepoReq = {
751
780
  description: string;
752
781
  license: string;
@@ -758,6 +787,18 @@ type DtoDependency = {
758
787
  framework_name: string;
759
788
  name: string;
760
789
  };
790
+ type DtoDocumentStatistics = {
791
+ count: number;
792
+ size: number;
793
+ };
794
+ type DtoEmbeddingModel = {
795
+ dimension: number;
796
+ name: string;
797
+ };
798
+ type DtoEmbeddingModels = {
799
+ dimension: number;
800
+ name: string;
801
+ };
761
802
  type DtoFile = {
762
803
  name: string;
763
804
  size: number;
@@ -819,6 +860,14 @@ type DtoInheritMembersUser = {
819
860
  /**认证过期时间*/
820
861
  verified_expire_in: string;
821
862
  };
863
+ type DtoKnowledgeBaseInfoRes = {
864
+ embedding_model: DtoEmbeddingModels;
865
+ exclude: string;
866
+ id: number;
867
+ include: string;
868
+ last_commit_sha: string;
869
+ statistics: DtoDocumentStatistics;
870
+ };
822
871
  type DtoLastPusher = {
823
872
  is_frozen: boolean;
824
873
  is_lock: boolean;
@@ -1062,6 +1111,15 @@ type DtoPackageDetail = {
1062
1111
  pypi: DtoCommonRegistryPackageDetail;
1063
1112
  };
1064
1113
  type DtoPackageType = "all" | "docker" | "helm" | "npm" | "maven" | "ohpm" | "pypi" | "composer" | "nuget";
1114
+ type DtoQueryKnowledgeBaseReq = {
1115
+ query: string;
1116
+ top_k: number;
1117
+ };
1118
+ type DtoQueryKnowledgeBaseRes = {
1119
+ chunk: string;
1120
+ metadata: any;
1121
+ score: number;
1122
+ };
1065
1123
  type DtoQuotaRsp = {
1066
1124
  /**The hard limits of the quota,example: { "hard": { "storage": -1}}*/
1067
1125
  hard: any;
@@ -1240,6 +1298,26 @@ type DtoStartBuildReq = {
1240
1298
  /**触发 tag,优先级比 branch 高*/
1241
1299
  tag: string;
1242
1300
  };
1301
+ type DtoStartWorkspaceReq = {
1302
+ /**分支名,例如:main*/
1303
+ branch: string;
1304
+
1305
+ /**Git ref,例如:refs/heads/main*/
1306
+ ref: string;
1307
+ };
1308
+ type DtoStartWorkspaceResult = {
1309
+ /**仅新创建开发环境时返回,表示创建开发环境的流水线日志地址*/
1310
+ buildLogUrl: string;
1311
+
1312
+ /**仅新创建开发环境时返回,表示创建开发环境的提示信息*/
1313
+ message: string;
1314
+
1315
+ /**仅新创建开发环境时返回,表示创建开发环境的流水线 sn*/
1316
+ sn: string;
1317
+
1318
+ /**如果存在开发环境,则返回 WebIDE 访问 url;如果不存在开发环境,则返回启动云原生开发的 loading 页面 url 地址*/
1319
+ url: string;
1320
+ };
1243
1321
  type DtoTag = {
1244
1322
  composer: DtoCommonRegistryTag[];
1245
1323
  docker: DtoContainerTag[];
@@ -1265,10 +1343,6 @@ type DtoTransferSlugReq = {
1265
1343
  source: string;
1266
1344
  target: string;
1267
1345
  };
1268
- type DtoUpdateGroupAvatarReq = {
1269
- /**新头像 url*/
1270
- url: string;
1271
- };
1272
1346
  type DtoUpdateGroupReq = {
1273
1347
  description: string;
1274
1348
  domain: string;
@@ -1499,16 +1573,16 @@ type DtoWorkspaceInfo = {
1499
1573
  workspace: string;
1500
1574
  };
1501
1575
  type DtoWorkspaceListResult = {
1502
- /**开发环境状态,running: 开发环境已启动,closed:开发环境已关闭*/
1576
+ /**是否有更多数据*/
1503
1577
  hasMore: boolean;
1504
1578
 
1505
- /**查询开始时间,格式:YYYY-MM-DD HH:mm:ssZZ,例如:2024-12-01 00:00:00+0800*/
1579
+ /**云原生开发环境列表*/
1506
1580
  list: DtoWorkspaceInfo[];
1507
1581
 
1508
- /**查询结束时间,格式:YYYY-MM-DD HH:mm:ssZZ,例如:2024-12-01 00:00:00+0800*/
1582
+ /**分页信息*/
1509
1583
  pageInfo: any;
1510
1584
 
1511
- /**分支名,例如:main*/
1585
+ /**总数*/
1512
1586
  total: number;
1513
1587
  };
1514
1588
  type FlagsRepo = 0 | 2;
@@ -1681,6 +1755,10 @@ type WebWeek = {
1681
1755
  /**周的时间戳*/
1682
1756
  w: number;
1683
1757
  };
1758
+ type WebapiCherryPickPullRequestForm = {
1759
+ create_pr: boolean;
1760
+ target_branch: string;
1761
+ };
1684
1762
  type WebapiRevertPullRequestForm = {
1685
1763
  create_pr: boolean;
1686
1764
  target_branch: string;
@@ -1700,6 +1778,8 @@ type Users_AutoCompleteSource = (params?: {
1700
1778
  page_size?: number;
1701
1779
  search?: string;
1702
1780
  access?: "Reporter" | "Developer" | "Master" | "Owner";
1781
+ order_by?: "created_at" | "slug_path";
1782
+ desc?: boolean;
1703
1783
  }) => Promise<string[]>;
1704
1784
  type Organizations_ListTopGroups = (params?: {
1705
1785
  page?: number;
@@ -1737,10 +1817,6 @@ type Activities_GetUserActivitiesByDate = (params: {
1737
1817
  username: string;
1738
1818
  date?: string;
1739
1819
  }) => Promise<DtoActivityDate>;
1740
- type Assets_GetUserAvatar = (params: {
1741
- username: string;
1742
- size: string;
1743
- }) => Promise<any>;
1744
1820
  type Followers_GetFollowersByUserID = (params: {
1745
1821
  username: string;
1746
1822
  page?: number;
@@ -1808,10 +1884,6 @@ type Organizations_UpdateOrganization = (params: {
1808
1884
  group: string;
1809
1885
  request: DtoUpdateGroupReq;
1810
1886
  }) => Promise<any>;
1811
- type Organizations_UpdateGroupAvatar = (params: {
1812
- group: string;
1813
- request: DtoUpdateGroupAvatarReq;
1814
- }) => Promise<any>;
1815
1887
  type Collaborators_ListInheritMembersOfGroup = (params: {
1816
1888
  group: string;
1817
1889
  search?: string;
@@ -1819,14 +1891,6 @@ type Collaborators_ListInheritMembersOfGroup = (params: {
1819
1891
  page?: number;
1820
1892
  page_size?: number;
1821
1893
  }) => 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
1894
  type Collaborators_ListMembersOfGroup = (params: {
1831
1895
  group: string;
1832
1896
  page?: number;
@@ -1856,6 +1920,10 @@ type Collaborators_UpdateMembersOfGroup = (params: {
1856
1920
  username: string;
1857
1921
  request: DtoUpdateMembersRequest;
1858
1922
  }) => Promise<any>;
1923
+ type Missions_CreateMission = (params: {
1924
+ group: string;
1925
+ request: DtoCreateMissionReq;
1926
+ }) => Promise<any>;
1859
1927
  type Repositories_GetPinnedRepoByGroup = (params: {
1860
1928
  group: string;
1861
1929
  }) => Promise<DtoRepos4UserBase[]>;
@@ -1942,6 +2010,12 @@ type Build_GetBuildLogs = (params: {
1942
2010
  userId?: string;
1943
2011
  userName?: string;
1944
2012
  }) => Promise<DtoBuildLogsResult>;
2013
+ type Build_GetBuildStage = (params: {
2014
+ repo: string;
2015
+ sn: string;
2016
+ pipelineId: string;
2017
+ stageId: string;
2018
+ }) => Promise<DtoBuildStageResult>;
1945
2019
  type Build_StartBuild = (params: {
1946
2020
  repo: string;
1947
2021
  request: DtoStartBuildReq;
@@ -1956,7 +2030,8 @@ type Build_StopBuild = (params: {
1956
2030
  }) => Promise<DtoBuildResult>;
1957
2031
  type Assets_GetCommitAssets = (params: {
1958
2032
  repo: string;
1959
- fileName: string;
2033
+ commit_id: string;
2034
+ filename: string;
1960
2035
  share?: boolean;
1961
2036
  }) => Promise<any>;
1962
2037
  type RepoContributor_GetRepoContributorTrend = (params: {
@@ -1964,19 +2039,6 @@ type RepoContributor_GetRepoContributorTrend = (params: {
1964
2039
  limit?: number;
1965
2040
  exclude_external_users?: boolean;
1966
2041
  }) => 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
2042
  type Repositories_ListForksRepos = (params: {
1981
2043
  repo: string;
1982
2044
  start_from_root?: boolean;
@@ -2118,17 +2180,6 @@ type Git_GetTag = (params: {
2118
2180
  repo: string;
2119
2181
  tag: string;
2120
2182
  }) => 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
2183
  type Collaborators_ListInheritMembersOfRepo = (params: {
2133
2184
  repo: string;
2134
2185
  search?: string;
@@ -2236,6 +2287,19 @@ type Issues_DeleteIssueLabel = (params: {
2236
2287
  number: number;
2237
2288
  name: string;
2238
2289
  }) => Promise<ApiLabel>;
2290
+ type KnowledgeBase_DeleteKnowledgeBase = (params: {
2291
+ repo: string;
2292
+ }) => Promise<any>;
2293
+ type KnowledgeBase_GetKnowledgeBaseInfo = (params: {
2294
+ repo: string;
2295
+ }) => Promise<DtoKnowledgeBaseInfoRes>;
2296
+ type KnowledgeBase_QueryKnowledgeBase = (params: {
2297
+ repo: string;
2298
+ query: DtoQueryKnowledgeBaseReq;
2299
+ }) => Promise<DtoQueryKnowledgeBaseRes[]>;
2300
+ type KnowledgeBase_GetModels = (params: {
2301
+ repo: string;
2302
+ }) => Promise<DtoEmbeddingModel[]>;
2239
2303
  type RepoLabels_ListLabels = (params: {
2240
2304
  repo: string;
2241
2305
  page?: number;
@@ -2361,6 +2425,11 @@ type Pulls_CanUserBeAssignedToPull = (params: {
2361
2425
  number: string;
2362
2426
  assignee: string;
2363
2427
  }) => Promise<any>;
2428
+ type Pulls_CherryPickPullRequest = (params: {
2429
+ repo: string;
2430
+ number: number;
2431
+ cherry_pick_pull_request_form: WebapiCherryPickPullRequestForm;
2432
+ }) => Promise<any>;
2364
2433
  type Pulls_ListPullComments = (params: {
2365
2434
  repo: string;
2366
2435
  number: string;
@@ -2423,7 +2492,8 @@ type Releases_PostRelease = (params: {
2423
2492
  }) => Promise<any>;
2424
2493
  type Assets_GetReleasesAsset = (params: {
2425
2494
  repo: string;
2426
- fileName: string;
2495
+ tag: string;
2496
+ filename: string;
2427
2497
  share?: boolean;
2428
2498
  }) => Promise<any>;
2429
2499
  type Releases_GetLatestRelease = (params: {
@@ -2549,6 +2619,10 @@ type Workspace_GetWorkspaceDetail = (params: {
2549
2619
  repo: string;
2550
2620
  sn: string;
2551
2621
  }) => Promise<DtoWorkspaceDetailResult>;
2622
+ type Workspace_StartWorkspace = (params: {
2623
+ repo: string;
2624
+ request: DtoStartWorkspaceReq;
2625
+ }) => Promise<DtoStartWorkspaceResult>;
2552
2626
  type Artifactory_ListPackages = (params: {
2553
2627
  slug: string;
2554
2628
  type: "all" | "docker" | "helm" | "maven" | "npm" | "ohpm" | "pypi" | "nuget" | "composer";
@@ -2718,17 +2792,6 @@ interface Client {
2718
2792
  */
2719
2793
  get: Activities_GetUserActivitiesByDate;
2720
2794
  };
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
2795
  followers: {
2733
2796
  /***
2734
2797
  * 获取指定用户的粉丝列表。Get the followers list of specified user.
@@ -2861,17 +2924,6 @@ interface Client {
2861
2924
  * /{group}
2862
2925
  */
2863
2926
  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
2927
  inheritMembers: {
2876
2928
  /***
2877
2929
  * 获取指定组织或仓库内的继承成员。List inherited members within specified organization or repository。
@@ -2883,27 +2935,6 @@ interface Client {
2883
2935
  */
2884
2936
  list: Collaborators_ListInheritMembersOfGroup;
2885
2937
  };
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
2938
  members: {
2908
2939
  /***
2909
2940
  * 获取指定组织或仓库内的所有直接成员。List all direct members within specified organization or repository.
@@ -2966,6 +2997,17 @@ interface Client {
2966
2997
  */
2967
2998
  put: Collaborators_UpdateMembersOfGroup;
2968
2999
  };
3000
+ missions: {
3001
+ /***
3002
+ * 创建任务集
3003
+ *
3004
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3005
+ * group-resource:rw
3006
+ *
3007
+ * /{group}/-/missions
3008
+ */
3009
+ post: Missions_CreateMission;
3010
+ };
2969
3011
  pinnedRepos: {
2970
3012
  /***
2971
3013
  * 获取指定组织的仓库墙列表。List the pinned repositories of a group.
@@ -3150,6 +3192,17 @@ interface Client {
3150
3192
  * /{repo}/-/build/logs
3151
3193
  */
3152
3194
  get: Build_GetBuildLogs;
3195
+ stage: {
3196
+ /***
3197
+ * 查询流水线Stage详情。Get pipeline build stage detail.
3198
+ *
3199
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3200
+ * repo-cnb-trigger:r
3201
+ *
3202
+ * /{repo}/-/build/logs/stage/{sn}/{pipelineId}/{stageId}
3203
+ */
3204
+ get: Build_GetBuildStage;
3205
+ };
3153
3206
  };
3154
3207
  start: {
3155
3208
  /***
@@ -3193,7 +3246,7 @@ interface Client {
3193
3246
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3194
3247
  * repo-contents:r
3195
3248
  *
3196
- * /{repo}/-/commit-assets/download/{fileName}
3249
+ * /{repo}/-/commit-assets/download/{commit_id}/{filename}
3197
3250
  */
3198
3251
  get: Assets_GetCommitAssets;
3199
3252
  };
@@ -3211,27 +3264,6 @@ interface Client {
3211
3264
  get: RepoContributor_GetRepoContributorTrend;
3212
3265
  };
3213
3266
  };
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
3267
  forks: {
3236
3268
  /***
3237
3269
  * 获取指定仓库的 fork 列表。Get fork list for specified repository.
@@ -3387,7 +3419,7 @@ interface Client {
3387
3419
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3388
3420
  * repo-code:rw
3389
3421
  *
3390
- * /{repo}/-/git/commit-assets/{sha1}/asset-upload-confirmation/{token}/{asset_path}
3422
+ * /{repo}/-/git/commit-assets/{sha1}/asset-upload-confirmation/{upload_token}/{asset_path}
3391
3423
  */
3392
3424
  post: Git_PostCommitAssetUploadConfirmation;
3393
3425
  };
@@ -3562,27 +3594,6 @@ interface Client {
3562
3594
  get: Git_GetTag;
3563
3595
  };
3564
3596
  };
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
3597
  inheritMembers: {
3587
3598
  /***
3588
3599
  * 获取指定组织或仓库内的继承成员。List inherited members within specified organization or repository。
@@ -3778,6 +3789,53 @@ interface Client {
3778
3789
  deleteByName: Issues_DeleteIssueLabel;
3779
3790
  };
3780
3791
  };
3792
+ knowledge: {
3793
+ base: {
3794
+ /***
3795
+ * 删除知识库
3796
+ *
3797
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3798
+ * repo-code:rw
3799
+ *
3800
+ * /{repo}/-/knowledge/base
3801
+ */
3802
+ delete: KnowledgeBase_DeleteKnowledgeBase;
3803
+
3804
+ /***
3805
+ * 获取知识库信息
3806
+ *
3807
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3808
+ * repo-code:r
3809
+ *
3810
+ * /{repo}/-/knowledge/base
3811
+ */
3812
+ get: KnowledgeBase_GetKnowledgeBaseInfo;
3813
+ query: {
3814
+ /***
3815
+ * 查询知识库,使用文档:https://docs.cnb.cool/zh/ai/knowledge-base.html
3816
+ *
3817
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3818
+ * repo-code:r
3819
+ *
3820
+ * /{repo}/-/knowledge/base/query
3821
+ */
3822
+ post: KnowledgeBase_QueryKnowledgeBase;
3823
+ };
3824
+ };
3825
+ embedding: {
3826
+ models: {
3827
+ /***
3828
+ * 获取当前支持的 Embedding 模型列表
3829
+ *
3830
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
3831
+ * repo-code:r
3832
+ *
3833
+ * /{repo}/-/knowledge/embedding/models
3834
+ */
3835
+ list: KnowledgeBase_GetModels;
3836
+ };
3837
+ };
3838
+ };
3781
3839
  labels: {
3782
3840
  /***
3783
3841
  * 查询仓库的标签(label) 列表。List repository labels.
@@ -4026,6 +4084,17 @@ interface Client {
4026
4084
  */
4027
4085
  get: Pulls_CanUserBeAssignedToPull;
4028
4086
  };
4087
+ cherryPick: {
4088
+ /***
4089
+ * 拣选一个已合并的 Pull Request 的提交到选定的分支
4090
+ *
4091
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4092
+ * repo-pr:rw
4093
+ *
4094
+ * /{repo}/-/pulls/{number}/cherry-pick
4095
+ */
4096
+ post: Pulls_CherryPickPullRequest;
4097
+ };
4029
4098
  comments: {
4030
4099
  /***
4031
4100
  * 查询 Pull Comments 列表。List pull comments requests.
@@ -4159,7 +4228,7 @@ interface Client {
4159
4228
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4160
4229
  * repo-contents:r
4161
4230
  *
4162
- * /{repo}/-/releases/download/{fileName}
4231
+ * /{repo}/-/releases/download/{tag}/{filename}
4163
4232
  */
4164
4233
  get: Assets_GetReleasesAsset;
4165
4234
  };
@@ -4187,7 +4256,7 @@ interface Client {
4187
4256
  };
4188
4257
  tags: {
4189
4258
  /***
4190
- * 通过 tag 查询指定 releaseGet a release by tag.
4259
+ * 通过 tag 查询指定 release,包含附件信息。Get a release by tag, include assets information.
4191
4260
  *
4192
4261
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4193
4262
  * repo-code:r
@@ -4208,7 +4277,7 @@ interface Client {
4208
4277
  delete: Releases_DeleteRelease;
4209
4278
 
4210
4279
  /***
4211
- * 根据 id 查询指定 releaseGet a release by id.
4280
+ * 根据 id 查询指定 release, 包含附件信息。Get a release by id, include assets information.
4212
4281
  *
4213
4282
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4214
4283
  * repo-code:r
@@ -4233,7 +4302,7 @@ interface Client {
4233
4302
  * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4234
4303
  * repo-code:rw
4235
4304
  *
4236
- * /{repo}/-/releases/{release_id}/asset-upload-confirmation/{token}/{asset_path}
4305
+ * /{repo}/-/releases/{release_id}/asset-upload-confirmation/{upload_token}/{asset_path}
4237
4306
  */
4238
4307
  post: Releases_PostReleaseAssetUploadConfirmation;
4239
4308
  };
@@ -4488,6 +4557,17 @@ interface Client {
4488
4557
  */
4489
4558
  get: Workspace_GetWorkspaceDetail;
4490
4559
  };
4560
+ start: {
4561
+ /***
4562
+ * 启动云原生开发环境,已存在环境则直接打开,否则重新创建开发环境。Start cloud-native dev. Opens existing env or creates a new one.
4563
+ *
4564
+ * 访问令牌调用此接口需包含以下权限。Required permissions for access token.
4565
+ * repo-cnb-trigger:rw
4566
+ *
4567
+ * /{repo}/-/workspace/start
4568
+ */
4569
+ post: Workspace_StartWorkspace;
4570
+ };
4491
4571
  };
4492
4572
  };
4493
4573
  slug: {
@@ -4602,7 +4682,6 @@ interface Client {
4602
4682
  DeleteOrganization: Organizations_DeleteOrganization;
4603
4683
  GetGroup: Organizations_GetGroup;
4604
4684
  UpdateOrganization: Organizations_UpdateOrganization;
4605
- UpdateGroupAvatar: Organizations_UpdateGroupAvatar;
4606
4685
  GetGroupSetting: Organizations_GetGroupSetting;
4607
4686
  UpdateGroupSetting: Organizations_UpdateGroupSetting;
4608
4687
  ListSubgroups: Organizations_ListSubgroups;
@@ -4636,22 +4715,6 @@ interface Client {
4636
4715
  GetUserActivitiesByDate: Activities_GetUserActivitiesByDate;
4637
4716
  GetUserRepoActivityDetails: Activities_GetUserRepoActivityDetails;
4638
4717
  };
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
4718
  Followers: {
4656
4719
  GetFollowersByUserID: Followers_GetFollowersByUserID;
4657
4720
  GetFollowingByUserID: Followers_GetFollowingByUserID;
@@ -4664,6 +4727,7 @@ interface Client {
4664
4727
  DeleteWorkspace: Workspace_DeleteWorkspace;
4665
4728
  ListWorkspaces: Workspace_ListWorkspaces;
4666
4729
  GetWorkspaceDetail: Workspace_GetWorkspaceDetail;
4730
+ StartWorkspace: Workspace_StartWorkspace;
4667
4731
  };
4668
4732
  Collaborators: {
4669
4733
  ListInheritMembersOfGroup: Collaborators_ListInheritMembersOfGroup;
@@ -4691,8 +4755,18 @@ interface Client {
4691
4755
  ListMemberAccessLevelOfRepo: Contributors_ListMemberAccessLevelOfRepo;
4692
4756
  };
4693
4757
  Missions: {
4758
+ CreateMission: Missions_CreateMission;
4694
4759
  DeleteMission: Missions_DeleteMission;
4695
4760
  };
4761
+ Assets: {
4762
+ UploadLogos: Assets_UploadLogos;
4763
+ GetCommitAssets: Assets_GetCommitAssets;
4764
+ GetReleasesAsset: Assets_GetReleasesAsset;
4765
+ GetLatestReleasesAsset: Assets_GetLatestReleasesAsset;
4766
+ UploadFiles: Assets_UploadFiles;
4767
+ UploadImgs: Assets_UploadImgs;
4768
+ UploadReleases: Assets_UploadReleases;
4769
+ };
4696
4770
  Artifactory: {
4697
4771
  DeleteRegistry: Artifactory_DeleteRegistry;
4698
4772
  ListPackages: Artifactory_ListPackages;
@@ -4707,6 +4781,7 @@ interface Client {
4707
4781
  };
4708
4782
  Build: {
4709
4783
  GetBuildLogs: Build_GetBuildLogs;
4784
+ GetBuildStage: Build_GetBuildStage;
4710
4785
  StartBuild: Build_StartBuild;
4711
4786
  GetBuildStatus: Build_GetBuildStatus;
4712
4787
  StopBuild: Build_StopBuild;
@@ -4766,6 +4841,12 @@ interface Client {
4766
4841
  PutIssueLabels: Issues_PutIssueLabels;
4767
4842
  DeleteIssueLabel: Issues_DeleteIssueLabel;
4768
4843
  };
4844
+ KnowledgeBase: {
4845
+ DeleteKnowledgeBase: KnowledgeBase_DeleteKnowledgeBase;
4846
+ GetKnowledgeBaseInfo: KnowledgeBase_GetKnowledgeBaseInfo;
4847
+ QueryKnowledgeBase: KnowledgeBase_QueryKnowledgeBase;
4848
+ GetModels: KnowledgeBase_GetModels;
4849
+ };
4769
4850
  RepoLabels: {
4770
4851
  ListLabels: RepoLabels_ListLabels;
4771
4852
  PostLabel: RepoLabels_PostLabel;
@@ -4782,6 +4863,7 @@ interface Client {
4782
4863
  ListPullAssignees: Pulls_ListPullAssignees;
4783
4864
  PostPullAssignees: Pulls_PostPullAssignees;
4784
4865
  CanUserBeAssignedToPull: Pulls_CanUserBeAssignedToPull;
4866
+ CherryPickPullRequest: Pulls_CherryPickPullRequest;
4785
4867
  ListPullComments: Pulls_ListPullComments;
4786
4868
  PostPullComment: Pulls_PostPullComment;
4787
4869
  DeletePullLabels: Pulls_DeletePullLabels;