node-cnb 1.10.1 → 1.12.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.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/paths.json +859 -492
- package/package.json +1 -1
- package/src/client.d.ts +484 -322
- package/src/index.ts +1 -1
- package/src/types.d.ts +536 -36
package/src/client.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ import {
|
|
|
45
45
|
ApiCommit,
|
|
46
46
|
ApiCompareResponse,
|
|
47
47
|
ApiContent,
|
|
48
|
+
WebDeferredCommit,
|
|
48
49
|
OpenapiHeadRef,
|
|
49
50
|
WebTagAnnotation,
|
|
50
51
|
OpenapiPutTagAnnotationsForm,
|
|
@@ -131,7 +132,7 @@ type Repositories_GetRepos = (params?: {
|
|
|
131
132
|
search?: string;
|
|
132
133
|
filter_type?: "private" | "public" | "encrypted";
|
|
133
134
|
role?: "Reporter" | "Developer" | "Master" | "Owner";
|
|
134
|
-
order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path";
|
|
135
|
+
order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path" | "forks";
|
|
135
136
|
desc?: boolean;
|
|
136
137
|
}) => Promise<DtoRepos4User[]>;
|
|
137
138
|
|
|
@@ -140,7 +141,7 @@ type Repositories_GetUserAllStaredRepos = (params?: {
|
|
|
140
141
|
page_size?: number;
|
|
141
142
|
search?: string;
|
|
142
143
|
desc?: boolean;
|
|
143
|
-
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
144
|
+
order_by?: "created_at" | "last_updated_at" | "stars" | "forks";
|
|
144
145
|
}) => Promise<DtoRepos4UserBase[]>;
|
|
145
146
|
|
|
146
147
|
type Users_GetUserInfoByName = (params: {
|
|
@@ -184,7 +185,7 @@ type Repositories_GetReposByUserName = (params: {
|
|
|
184
185
|
page?: number;
|
|
185
186
|
page_size?: number;
|
|
186
187
|
desc?: boolean;
|
|
187
|
-
order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path";
|
|
188
|
+
order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path" | "forks";
|
|
188
189
|
}) => Promise<DtoRepos4User[]>;
|
|
189
190
|
|
|
190
191
|
type Starring_GetUserStaredRepos = (params: {
|
|
@@ -193,7 +194,7 @@ type Starring_GetUserStaredRepos = (params: {
|
|
|
193
194
|
page?: number;
|
|
194
195
|
page_size?: number;
|
|
195
196
|
desc?: boolean;
|
|
196
|
-
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
197
|
+
order_by?: "created_at" | "last_updated_at" | "stars" | "forks";
|
|
197
198
|
}) => Promise<DtoRepos4User[]>;
|
|
198
199
|
|
|
199
200
|
type Workspace_DeleteWorkspace = (params: {
|
|
@@ -270,6 +271,12 @@ type Collaborators_DeleteMembersOfGroup = (params: {
|
|
|
270
271
|
username: string;
|
|
271
272
|
}) => Promise<any>;
|
|
272
273
|
|
|
274
|
+
type Collaborators_AddMembersOfGroup = (params: {
|
|
275
|
+
group: string;
|
|
276
|
+
username: string;
|
|
277
|
+
request: DtoUpdateMembersRequest;
|
|
278
|
+
}) => Promise<any>;
|
|
279
|
+
|
|
273
280
|
type Collaborators_UpdateMembersOfGroup = (params: {
|
|
274
281
|
group: string;
|
|
275
282
|
username: string;
|
|
@@ -327,11 +334,23 @@ type Missions_DeleteMission = (params: {
|
|
|
327
334
|
"x-cnb-identity-ticket"?: string;
|
|
328
335
|
}) => Promise<any>;
|
|
329
336
|
|
|
337
|
+
type Collaborators_AddMembersOfMission = (params: {
|
|
338
|
+
mission: string;
|
|
339
|
+
username: string;
|
|
340
|
+
request: DtoUpdateMembersRequest;
|
|
341
|
+
}) => Promise<any>;
|
|
342
|
+
|
|
330
343
|
type Artifactory_DeleteRegistry = (params: {
|
|
331
344
|
registry: string;
|
|
332
345
|
"x-cnb-identity-ticket"?: string;
|
|
333
346
|
}) => Promise<any>;
|
|
334
347
|
|
|
348
|
+
type Collaborators_AddMembersOfRegistry = (params: {
|
|
349
|
+
registry: string;
|
|
350
|
+
username: string;
|
|
351
|
+
request: DtoUpdateMembersRequest;
|
|
352
|
+
}) => Promise<any>;
|
|
353
|
+
|
|
335
354
|
type Repositories_DeleteRepo = (params: {
|
|
336
355
|
repo: string;
|
|
337
356
|
"x-cnb-identity-ticket"?: string;
|
|
@@ -414,6 +433,16 @@ type Repositories_CreateAFork = (params: {
|
|
|
414
433
|
request: DtoForkReq;
|
|
415
434
|
}) => Promise<any>;
|
|
416
435
|
|
|
436
|
+
type Git_GetArchiveCommitChangedFiles = (params: {
|
|
437
|
+
repo: string;
|
|
438
|
+
sha1?: string;
|
|
439
|
+
}) => Promise<any>;
|
|
440
|
+
|
|
441
|
+
type Git_GetArchiveCompareChangedFiles = (params: {
|
|
442
|
+
repo: string;
|
|
443
|
+
base_head: string;
|
|
444
|
+
}) => Promise<any>;
|
|
445
|
+
|
|
417
446
|
type Git_CreateBlob = (params: {
|
|
418
447
|
repo: string;
|
|
419
448
|
post_blob_form: ApiPostBlobForm;
|
|
@@ -518,6 +547,11 @@ type Git_GetContent = (params: {
|
|
|
518
547
|
ref?: string;
|
|
519
548
|
}) => Promise<ApiContent>;
|
|
520
549
|
|
|
550
|
+
type Git_ListDeferredCommits = (params: {
|
|
551
|
+
repo: string;
|
|
552
|
+
cs: string;
|
|
553
|
+
}) => Promise<WebDeferredCommit[]>;
|
|
554
|
+
|
|
521
555
|
type Git_GetHead = (params: { repo: string }) => Promise<OpenapiHeadRef>;
|
|
522
556
|
|
|
523
557
|
type Git_DeleteTagAnnotation = (params: {
|
|
@@ -716,6 +750,12 @@ type Collaborators_DeleteMembersOfRepo = (params: {
|
|
|
716
750
|
username: string;
|
|
717
751
|
}) => Promise<any>;
|
|
718
752
|
|
|
753
|
+
type Collaborators_AddMembersOfRepo = (params: {
|
|
754
|
+
repo: string;
|
|
755
|
+
username: string;
|
|
756
|
+
request: DtoUpdateMembersRequest;
|
|
757
|
+
}) => Promise<any>;
|
|
758
|
+
|
|
719
759
|
type Collaborators_UpdateMembersOfRepo = (params: {
|
|
720
760
|
repo: string;
|
|
721
761
|
username: string;
|
|
@@ -844,6 +884,15 @@ type Assets_GetReleasesAsset = (params: {
|
|
|
844
884
|
fileName: string;
|
|
845
885
|
}) => Promise<any>;
|
|
846
886
|
|
|
887
|
+
type Releases_GetLatestRelease = (params: {
|
|
888
|
+
repo: string;
|
|
889
|
+
}) => Promise<ApiRelease>;
|
|
890
|
+
|
|
891
|
+
type Assets_GetLatestReleasesAsset = (params: {
|
|
892
|
+
repo: string;
|
|
893
|
+
fileName: string;
|
|
894
|
+
}) => Promise<any>;
|
|
895
|
+
|
|
847
896
|
type Releases_GetReleaseByTag = (params: {
|
|
848
897
|
repo: string;
|
|
849
898
|
tag: string;
|
|
@@ -1048,9 +1097,9 @@ type Artifactory_ListPackageTags = (params: {
|
|
|
1048
1097
|
export interface Client {
|
|
1049
1098
|
groups: {
|
|
1050
1099
|
/***
|
|
1051
|
-
*
|
|
1100
|
+
* 创建新组织。Create new organization.
|
|
1052
1101
|
*
|
|
1053
|
-
*
|
|
1102
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1054
1103
|
* group-manage:rw
|
|
1055
1104
|
*
|
|
1056
1105
|
* /groups
|
|
@@ -1060,9 +1109,9 @@ export interface Client {
|
|
|
1060
1109
|
|
|
1061
1110
|
user: {
|
|
1062
1111
|
/***
|
|
1063
|
-
*
|
|
1112
|
+
* 获取指定用户的详情信息。Get detailed information for a specified user.
|
|
1064
1113
|
*
|
|
1065
|
-
*
|
|
1114
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1066
1115
|
* account-profile:r
|
|
1067
1116
|
*
|
|
1068
1117
|
* /user
|
|
@@ -1070,9 +1119,9 @@ export interface Client {
|
|
|
1070
1119
|
get: Users_GetUserInfo;
|
|
1071
1120
|
|
|
1072
1121
|
/***
|
|
1073
|
-
*
|
|
1122
|
+
* 更新指定用户的详情信息。Updates the specified user's profile information.
|
|
1074
1123
|
*
|
|
1075
|
-
*
|
|
1124
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1076
1125
|
* account-profile:rw
|
|
1077
1126
|
*
|
|
1078
1127
|
* /user
|
|
@@ -1081,9 +1130,9 @@ export interface Client {
|
|
|
1081
1130
|
|
|
1082
1131
|
autocompleteSource: {
|
|
1083
1132
|
/***
|
|
1084
|
-
*
|
|
1133
|
+
* 查询当前用户用户拥有指定权限的所有资源列表。List resources that the current user has specified permissions for.
|
|
1085
1134
|
*
|
|
1086
|
-
*
|
|
1135
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1087
1136
|
* account-engage:r
|
|
1088
1137
|
*
|
|
1089
1138
|
* /user/autocomplete_source
|
|
@@ -1093,9 +1142,9 @@ export interface Client {
|
|
|
1093
1142
|
|
|
1094
1143
|
groups: {
|
|
1095
1144
|
/***
|
|
1096
|
-
*
|
|
1145
|
+
* 获取当前用户拥有权限的顶层组织列表。Get top-level organizations list that the current user has access to.
|
|
1097
1146
|
*
|
|
1098
|
-
*
|
|
1147
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1099
1148
|
* account-engage:r
|
|
1100
1149
|
*
|
|
1101
1150
|
* /user/groups
|
|
@@ -1103,9 +1152,9 @@ export interface Client {
|
|
|
1103
1152
|
list: Organizations_ListTopGroups;
|
|
1104
1153
|
|
|
1105
1154
|
/***
|
|
1106
|
-
*
|
|
1155
|
+
* 查询当前用户在指定组织下拥有指定权限的子组织列表。Get the list of sub-organizations that the current user has access to in the specified organization.
|
|
1107
1156
|
*
|
|
1108
|
-
*
|
|
1157
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1109
1158
|
* account-engage:r
|
|
1110
1159
|
*
|
|
1111
1160
|
* /user/groups/{group}
|
|
@@ -1115,9 +1164,9 @@ export interface Client {
|
|
|
1115
1164
|
|
|
1116
1165
|
repos: {
|
|
1117
1166
|
/***
|
|
1118
|
-
*
|
|
1167
|
+
* 获取当前用户拥有指定权限及其以上权限的仓库。List repositories owned by the current user with the specified permissions or higher.
|
|
1119
1168
|
*
|
|
1120
|
-
*
|
|
1169
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1121
1170
|
* account-engage:r
|
|
1122
1171
|
*
|
|
1123
1172
|
* /user/repos
|
|
@@ -1127,9 +1176,9 @@ export interface Client {
|
|
|
1127
1176
|
|
|
1128
1177
|
staredRepos: {
|
|
1129
1178
|
/***
|
|
1130
|
-
* 获取当前用户 star
|
|
1179
|
+
* 获取当前用户 star 的仓库列表。List all stared repositories.
|
|
1131
1180
|
*
|
|
1132
|
-
*
|
|
1181
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1133
1182
|
* account-engage:r
|
|
1134
1183
|
*
|
|
1135
1184
|
* /user/stared-repos
|
|
@@ -1140,9 +1189,9 @@ export interface Client {
|
|
|
1140
1189
|
|
|
1141
1190
|
users: {
|
|
1142
1191
|
/***
|
|
1143
|
-
*
|
|
1192
|
+
* 获取指定用户的详情信息。Get detailed information for a specified user.
|
|
1144
1193
|
*
|
|
1145
|
-
*
|
|
1194
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1146
1195
|
* account-profile:r
|
|
1147
1196
|
*
|
|
1148
1197
|
* /users/{username}
|
|
@@ -1151,9 +1200,9 @@ export interface Client {
|
|
|
1151
1200
|
|
|
1152
1201
|
avatar: {
|
|
1153
1202
|
/***
|
|
1154
|
-
*
|
|
1203
|
+
* 获取指定用户的用户头像。Get the user's avatar.
|
|
1155
1204
|
*
|
|
1156
|
-
*
|
|
1205
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1157
1206
|
* account-profile:r
|
|
1158
1207
|
*
|
|
1159
1208
|
* /users/{username}/avatar/{size}
|
|
@@ -1163,9 +1212,9 @@ export interface Client {
|
|
|
1163
1212
|
|
|
1164
1213
|
followers: {
|
|
1165
1214
|
/***
|
|
1166
|
-
*
|
|
1215
|
+
* 获取指定用户的粉丝列表。Get the followers list of specified user.
|
|
1167
1216
|
*
|
|
1168
|
-
*
|
|
1217
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1169
1218
|
* account-engage:r
|
|
1170
1219
|
*
|
|
1171
1220
|
* /users/{username}/followers
|
|
@@ -1175,9 +1224,9 @@ export interface Client {
|
|
|
1175
1224
|
|
|
1176
1225
|
following: {
|
|
1177
1226
|
/***
|
|
1178
|
-
*
|
|
1227
|
+
* 获取指定用户的关注人列表。Get the list of users that the specified user is following.
|
|
1179
1228
|
*
|
|
1180
|
-
*
|
|
1229
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1181
1230
|
* account-engage:r
|
|
1182
1231
|
*
|
|
1183
1232
|
* /users/{username}/following
|
|
@@ -1187,9 +1236,9 @@ export interface Client {
|
|
|
1187
1236
|
|
|
1188
1237
|
groups: {
|
|
1189
1238
|
/***
|
|
1190
|
-
*
|
|
1239
|
+
* 获取指定用户拥有权限的顶层组织列表。 Get a list of top-level organizations that the specified user has permissions to access.
|
|
1191
1240
|
*
|
|
1192
|
-
*
|
|
1241
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1193
1242
|
* account-engage:r
|
|
1194
1243
|
*
|
|
1195
1244
|
* /users/{username}/groups
|
|
@@ -1199,9 +1248,9 @@ export interface Client {
|
|
|
1199
1248
|
|
|
1200
1249
|
pinnedRepos: {
|
|
1201
1250
|
/***
|
|
1202
|
-
*
|
|
1251
|
+
* 获取指定用户的用户仓库墙。 Get a list of repositories that the specified user has pinned.
|
|
1203
1252
|
*
|
|
1204
|
-
*
|
|
1253
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1205
1254
|
* account-engage:r
|
|
1206
1255
|
*
|
|
1207
1256
|
* /users/{username}/pinned-repos
|
|
@@ -1211,9 +1260,9 @@ export interface Client {
|
|
|
1211
1260
|
|
|
1212
1261
|
repos: {
|
|
1213
1262
|
/***
|
|
1214
|
-
*
|
|
1263
|
+
* 获取指定用户有指定以上权限并且客人态可见的仓库。List repositories where the specified user has the specified permission level or higher and are visible to guests.
|
|
1215
1264
|
*
|
|
1216
|
-
*
|
|
1265
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1217
1266
|
* account-engage:r
|
|
1218
1267
|
*
|
|
1219
1268
|
* /users/{username}/repos
|
|
@@ -1223,9 +1272,9 @@ export interface Client {
|
|
|
1223
1272
|
|
|
1224
1273
|
staredRepos: {
|
|
1225
1274
|
/***
|
|
1226
|
-
* 获取指定用户的 star
|
|
1275
|
+
* 获取指定用户的 star 仓库列表。Get the list of repositories starred by the specified user.
|
|
1227
1276
|
*
|
|
1228
|
-
*
|
|
1277
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1229
1278
|
* account-engage:r
|
|
1230
1279
|
*
|
|
1231
1280
|
* /users/{username}/stared-repos
|
|
@@ -1237,9 +1286,9 @@ export interface Client {
|
|
|
1237
1286
|
workspace: {
|
|
1238
1287
|
delete: {
|
|
1239
1288
|
/***
|
|
1240
|
-
*
|
|
1289
|
+
* 删除我的云原生开发环境。Delete my workspace.
|
|
1241
1290
|
*
|
|
1242
|
-
*
|
|
1291
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1243
1292
|
* account-engage:rw
|
|
1244
1293
|
*
|
|
1245
1294
|
* /workspace/delete
|
|
@@ -1249,9 +1298,9 @@ export interface Client {
|
|
|
1249
1298
|
|
|
1250
1299
|
list: {
|
|
1251
1300
|
/***
|
|
1252
|
-
*
|
|
1301
|
+
* 获取我的云原生开发环境列表。List my workspaces.
|
|
1253
1302
|
*
|
|
1254
|
-
*
|
|
1303
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1255
1304
|
* account-engage:r
|
|
1256
1305
|
*
|
|
1257
1306
|
* /workspace/list
|
|
@@ -1262,9 +1311,9 @@ export interface Client {
|
|
|
1262
1311
|
|
|
1263
1312
|
group: {
|
|
1264
1313
|
/***
|
|
1265
|
-
*
|
|
1314
|
+
* 删除指定组织。Delete the specified organization.
|
|
1266
1315
|
*
|
|
1267
|
-
*
|
|
1316
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1268
1317
|
* group-delete:rw
|
|
1269
1318
|
*
|
|
1270
1319
|
* /{group}
|
|
@@ -1272,9 +1321,9 @@ export interface Client {
|
|
|
1272
1321
|
delete: Organizations_DeleteOrganization;
|
|
1273
1322
|
|
|
1274
1323
|
/***
|
|
1275
|
-
*
|
|
1324
|
+
* 获取指定组织信息。Get information for the specified organization.
|
|
1276
1325
|
*
|
|
1277
|
-
*
|
|
1326
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1278
1327
|
* group-resource:r
|
|
1279
1328
|
*
|
|
1280
1329
|
* /{group}
|
|
@@ -1282,9 +1331,9 @@ export interface Client {
|
|
|
1282
1331
|
get: Organizations_GetGroup;
|
|
1283
1332
|
|
|
1284
1333
|
/***
|
|
1285
|
-
* 更新组织信息, 可更新的内容为: 组织描述, 组织展示名称, 组织网站,
|
|
1334
|
+
* 更新组织信息, 可更新的内容为: 组织描述, 组织展示名称, 组织网站, 组织联系邮箱。Updates organization information including: description, display name, website URL and contact email.
|
|
1286
1335
|
*
|
|
1287
|
-
*
|
|
1336
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1288
1337
|
* group-manage:rw
|
|
1289
1338
|
*
|
|
1290
1339
|
* /{group}
|
|
@@ -1293,9 +1342,9 @@ export interface Client {
|
|
|
1293
1342
|
|
|
1294
1343
|
avatar: {
|
|
1295
1344
|
/***
|
|
1296
|
-
* 更新组织头像 URL
|
|
1345
|
+
* 更新组织头像 URL 地址。Updates the organization avatar URL.
|
|
1297
1346
|
*
|
|
1298
|
-
*
|
|
1347
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1299
1348
|
* group-manage:rw
|
|
1300
1349
|
*
|
|
1301
1350
|
* /{group}/-/avatar
|
|
@@ -1305,9 +1354,9 @@ export interface Client {
|
|
|
1305
1354
|
|
|
1306
1355
|
inheritMembers: {
|
|
1307
1356
|
/***
|
|
1308
|
-
*
|
|
1357
|
+
* 获取指定组织或仓库内的继承成员。List inherited members within specified organization or repository。
|
|
1309
1358
|
*
|
|
1310
|
-
*
|
|
1359
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1311
1360
|
* group-manage:r
|
|
1312
1361
|
*
|
|
1313
1362
|
* /{group}/-/inherit-members
|
|
@@ -1317,9 +1366,9 @@ export interface Client {
|
|
|
1317
1366
|
|
|
1318
1367
|
logos: {
|
|
1319
1368
|
/***
|
|
1320
|
-
* 确认上传的logo
|
|
1369
|
+
* 确认上传的logo。Confirms the uploaded logo.
|
|
1321
1370
|
*
|
|
1322
|
-
*
|
|
1371
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1323
1372
|
* group-manage:rw
|
|
1324
1373
|
*
|
|
1325
1374
|
* /{group}/-/logos
|
|
@@ -1327,9 +1376,9 @@ export interface Client {
|
|
|
1327
1376
|
put: Assets_PutLogos;
|
|
1328
1377
|
|
|
1329
1378
|
/***
|
|
1330
|
-
* 发起一个获取 logo 的请求,返回内容或者 302
|
|
1379
|
+
* 发起一个获取 logo 的请求,返回内容或者 302 到某个地址。Post a request to fetch a logo and returns the content directly or a 302 redirect to the logo URL.
|
|
1331
1380
|
*
|
|
1332
|
-
*
|
|
1381
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1333
1382
|
* group-resource:r
|
|
1334
1383
|
*
|
|
1335
1384
|
* /{group}/-/logos/{size}
|
|
@@ -1339,9 +1388,9 @@ export interface Client {
|
|
|
1339
1388
|
|
|
1340
1389
|
members: {
|
|
1341
1390
|
/***
|
|
1342
|
-
*
|
|
1391
|
+
* 获取指定组织或仓库内的所有直接成员。List all direct members within specified organization or repository.
|
|
1343
1392
|
*
|
|
1344
|
-
*
|
|
1393
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1345
1394
|
* group-manage:r
|
|
1346
1395
|
*
|
|
1347
1396
|
* /{group}/-/members
|
|
@@ -1350,9 +1399,9 @@ export interface Client {
|
|
|
1350
1399
|
|
|
1351
1400
|
accessLevel: {
|
|
1352
1401
|
/***
|
|
1353
|
-
* 获取指定组织或仓库内,
|
|
1402
|
+
* 获取指定组织或仓库内, 访问成员在当前层级内的权限信息。Get permission information for accessing members at current level.
|
|
1354
1403
|
*
|
|
1355
|
-
*
|
|
1404
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1356
1405
|
* group-manage:r
|
|
1357
1406
|
*
|
|
1358
1407
|
* /{group}/-/members/access-level
|
|
@@ -1360,9 +1409,9 @@ export interface Client {
|
|
|
1360
1409
|
get: Contributors_GetMemberAccessLevelOfGroup;
|
|
1361
1410
|
|
|
1362
1411
|
/***
|
|
1363
|
-
* 获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示,
|
|
1412
|
+
* 获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示, 包含上层组织的权限继承信息。Get specified member's permissions with organizational hierarchy.
|
|
1364
1413
|
*
|
|
1365
|
-
*
|
|
1414
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1366
1415
|
* group-manage:r
|
|
1367
1416
|
*
|
|
1368
1417
|
* /{group}/-/members/{username}/access-level
|
|
@@ -1371,9 +1420,9 @@ export interface Client {
|
|
|
1371
1420
|
};
|
|
1372
1421
|
|
|
1373
1422
|
/***
|
|
1374
|
-
*
|
|
1423
|
+
* 删除指定组织或仓库的直接成员。Remove direct members from specified organization/repository.
|
|
1375
1424
|
*
|
|
1376
|
-
*
|
|
1425
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1377
1426
|
* group-manage:rw
|
|
1378
1427
|
*
|
|
1379
1428
|
* /{group}/-/members/{username}
|
|
@@ -1381,9 +1430,19 @@ export interface Client {
|
|
|
1381
1430
|
delete: Collaborators_DeleteMembersOfGroup;
|
|
1382
1431
|
|
|
1383
1432
|
/***
|
|
1384
|
-
*
|
|
1433
|
+
* 添加成员。Add members.
|
|
1385
1434
|
*
|
|
1386
|
-
*
|
|
1435
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1436
|
+
* group-manage:rw
|
|
1437
|
+
*
|
|
1438
|
+
* /{group}/-/members/{username}
|
|
1439
|
+
*/
|
|
1440
|
+
post: Collaborators_AddMembersOfGroup;
|
|
1441
|
+
|
|
1442
|
+
/***
|
|
1443
|
+
* 更新指定组织或仓库内的直接成员权限信息。Update permission information for direct members in specified organization/repository.
|
|
1444
|
+
*
|
|
1445
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1387
1446
|
* group-manage:rw
|
|
1388
1447
|
*
|
|
1389
1448
|
* /{group}/-/members/{username}
|
|
@@ -1393,9 +1452,9 @@ export interface Client {
|
|
|
1393
1452
|
|
|
1394
1453
|
pinnedRepos: {
|
|
1395
1454
|
/***
|
|
1396
|
-
*
|
|
1455
|
+
* 获取指定组织的仓库墙列表。List the pinned repositories of a group.
|
|
1397
1456
|
*
|
|
1398
|
-
*
|
|
1457
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1399
1458
|
* group-manage:r
|
|
1400
1459
|
*
|
|
1401
1460
|
* /{group}/-/pinned-repos
|
|
@@ -1403,9 +1462,9 @@ export interface Client {
|
|
|
1403
1462
|
list: Repositories_GetPinnedRepoByGroup;
|
|
1404
1463
|
|
|
1405
1464
|
/***
|
|
1406
|
-
*
|
|
1465
|
+
* 更新指定组织仓库墙。Update the pinned repositories of a group.
|
|
1407
1466
|
*
|
|
1408
|
-
*
|
|
1467
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1409
1468
|
* group-manage:rw
|
|
1410
1469
|
*
|
|
1411
1470
|
* /{group}/-/pinned-repos
|
|
@@ -1415,9 +1474,9 @@ export interface Client {
|
|
|
1415
1474
|
|
|
1416
1475
|
repos: {
|
|
1417
1476
|
/***
|
|
1418
|
-
*
|
|
1477
|
+
* 查询组织下访问用户有权限查看到仓库。List the repositories that the user has access to.
|
|
1419
1478
|
*
|
|
1420
|
-
*
|
|
1479
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1421
1480
|
* group-resource:r
|
|
1422
1481
|
*
|
|
1423
1482
|
* /{group}/-/repos
|
|
@@ -1425,9 +1484,9 @@ export interface Client {
|
|
|
1425
1484
|
list: Repositories_GetGroupSubRepos;
|
|
1426
1485
|
|
|
1427
1486
|
/***
|
|
1428
|
-
*
|
|
1487
|
+
* 创建仓库。Create repositories.
|
|
1429
1488
|
*
|
|
1430
|
-
*
|
|
1489
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1431
1490
|
* group-resource:rw
|
|
1432
1491
|
*
|
|
1433
1492
|
* /{group}/-/repos
|
|
@@ -1437,9 +1496,9 @@ export interface Client {
|
|
|
1437
1496
|
|
|
1438
1497
|
settings: {
|
|
1439
1498
|
/***
|
|
1440
|
-
*
|
|
1499
|
+
* 获取指定组织的配置详情。Get the configuration details for the specified organization.
|
|
1441
1500
|
*
|
|
1442
|
-
*
|
|
1501
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1443
1502
|
* group-manage:r
|
|
1444
1503
|
*
|
|
1445
1504
|
* /{group}/-/settings
|
|
@@ -1447,9 +1506,9 @@ export interface Client {
|
|
|
1447
1506
|
get: Organizations_GetGroupSetting;
|
|
1448
1507
|
|
|
1449
1508
|
/***
|
|
1450
|
-
*
|
|
1509
|
+
* 更新指定组织的配置。Updates the configuration for the specified organization.
|
|
1451
1510
|
*
|
|
1452
|
-
*
|
|
1511
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1453
1512
|
* group-manage:rw
|
|
1454
1513
|
*
|
|
1455
1514
|
* /{group}/-/settings
|
|
@@ -1459,9 +1518,9 @@ export interface Client {
|
|
|
1459
1518
|
|
|
1460
1519
|
subGroups: {
|
|
1461
1520
|
/***
|
|
1462
|
-
*
|
|
1521
|
+
* 获取指定组织下的子组织列表。Get the list of sub-organizations under the specified organization.
|
|
1463
1522
|
*
|
|
1464
|
-
*
|
|
1523
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1465
1524
|
* group-resource:r
|
|
1466
1525
|
*
|
|
1467
1526
|
* /{group}/-/sub-groups
|
|
@@ -1472,9 +1531,9 @@ export interface Client {
|
|
|
1472
1531
|
upload: {
|
|
1473
1532
|
logos: {
|
|
1474
1533
|
/***
|
|
1475
|
-
* 发起一个上传 logo 的请求,返回上传 cos 的 url 和 form
|
|
1534
|
+
* 发起一个上传 logo 的请求,返回上传 cos 的 url 和 form 内容。Post a request to upload a logo.
|
|
1476
1535
|
*
|
|
1477
|
-
*
|
|
1536
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1478
1537
|
* group-manage:rw
|
|
1479
1538
|
*
|
|
1480
1539
|
* /{group}/-/upload/logos
|
|
@@ -1486,33 +1545,57 @@ export interface Client {
|
|
|
1486
1545
|
|
|
1487
1546
|
mission: {
|
|
1488
1547
|
/***
|
|
1489
|
-
*
|
|
1548
|
+
* 删除指定任务集。Delete the specified mission.
|
|
1490
1549
|
*
|
|
1491
|
-
*
|
|
1550
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1492
1551
|
* mission-delete:rw
|
|
1493
1552
|
*
|
|
1494
1553
|
* /{mission}
|
|
1495
1554
|
*/
|
|
1496
1555
|
delete: Missions_DeleteMission;
|
|
1556
|
+
|
|
1557
|
+
members: {
|
|
1558
|
+
/***
|
|
1559
|
+
* 添加成员。Add members.
|
|
1560
|
+
*
|
|
1561
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1562
|
+
* mission-manage:rw
|
|
1563
|
+
*
|
|
1564
|
+
* /{mission}/-/members/{username}
|
|
1565
|
+
*/
|
|
1566
|
+
post: Collaborators_AddMembersOfMission;
|
|
1567
|
+
};
|
|
1497
1568
|
};
|
|
1498
1569
|
|
|
1499
1570
|
registry: {
|
|
1500
1571
|
/***
|
|
1501
|
-
*
|
|
1572
|
+
* 删除制品仓库。Delete the artifact repository.
|
|
1502
1573
|
*
|
|
1503
|
-
*
|
|
1574
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1504
1575
|
* registry-delete:rw
|
|
1505
1576
|
*
|
|
1506
1577
|
* /{registry}
|
|
1507
1578
|
*/
|
|
1508
1579
|
delete: Artifactory_DeleteRegistry;
|
|
1580
|
+
|
|
1581
|
+
members: {
|
|
1582
|
+
/***
|
|
1583
|
+
* 添加成员。Add members.
|
|
1584
|
+
*
|
|
1585
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1586
|
+
* registry-manage:rw
|
|
1587
|
+
*
|
|
1588
|
+
* /{registry}/-/members/{username}
|
|
1589
|
+
*/
|
|
1590
|
+
post: Collaborators_AddMembersOfRegistry;
|
|
1591
|
+
};
|
|
1509
1592
|
};
|
|
1510
1593
|
|
|
1511
1594
|
repo: {
|
|
1512
1595
|
/***
|
|
1513
|
-
*
|
|
1596
|
+
* 删除指定仓库。Delete the specified repository.
|
|
1514
1597
|
*
|
|
1515
|
-
*
|
|
1598
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1516
1599
|
* repo-delete:rw
|
|
1517
1600
|
*
|
|
1518
1601
|
* /{repo}
|
|
@@ -1520,9 +1603,9 @@ export interface Client {
|
|
|
1520
1603
|
delete: Repositories_DeleteRepo;
|
|
1521
1604
|
|
|
1522
1605
|
/***
|
|
1523
|
-
*
|
|
1606
|
+
* 获取指定仓库信息。Get information for the specified repository.
|
|
1524
1607
|
*
|
|
1525
|
-
*
|
|
1608
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1526
1609
|
* repo-basic-info:r
|
|
1527
1610
|
*
|
|
1528
1611
|
* /{repo}
|
|
@@ -1530,9 +1613,9 @@ export interface Client {
|
|
|
1530
1613
|
get: Repositories_GetRepo;
|
|
1531
1614
|
|
|
1532
1615
|
/***
|
|
1533
|
-
* 更新仓库信息, 可更新的内容为: 仓库简介, 仓库站点, 仓库主题,
|
|
1616
|
+
* 更新仓库信息, 可更新的内容为: 仓库简介, 仓库站点, 仓库主题, 开源许可证。updates repository details including description, website URL,topics and license type.
|
|
1534
1617
|
*
|
|
1535
|
-
*
|
|
1618
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1536
1619
|
* repo-manage:rw
|
|
1537
1620
|
*
|
|
1538
1621
|
* /{repo}
|
|
@@ -1542,9 +1625,9 @@ export interface Client {
|
|
|
1542
1625
|
build: {
|
|
1543
1626
|
logs: {
|
|
1544
1627
|
/***
|
|
1545
|
-
*
|
|
1628
|
+
* 查询流水线构建列表。List pipeline builds.
|
|
1546
1629
|
*
|
|
1547
|
-
*
|
|
1630
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1548
1631
|
* repo-cnb-trigger:r
|
|
1549
1632
|
*
|
|
1550
1633
|
* /{repo}/-/build/logs
|
|
@@ -1554,9 +1637,9 @@ export interface Client {
|
|
|
1554
1637
|
|
|
1555
1638
|
start: {
|
|
1556
1639
|
/***
|
|
1557
|
-
*
|
|
1640
|
+
* 开始一个构建。Start a build.
|
|
1558
1641
|
*
|
|
1559
|
-
*
|
|
1642
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1560
1643
|
* repo-cnb-trigger:rw
|
|
1561
1644
|
*
|
|
1562
1645
|
* /{repo}/-/build/start
|
|
@@ -1566,9 +1649,9 @@ export interface Client {
|
|
|
1566
1649
|
|
|
1567
1650
|
status: {
|
|
1568
1651
|
/***
|
|
1569
|
-
*
|
|
1652
|
+
* 查询流水线构建状态。Get pipeline build status.
|
|
1570
1653
|
*
|
|
1571
|
-
*
|
|
1654
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1572
1655
|
* repo-cnb-trigger:r
|
|
1573
1656
|
*
|
|
1574
1657
|
* /{repo}/-/build/status/{sn}
|
|
@@ -1578,9 +1661,9 @@ export interface Client {
|
|
|
1578
1661
|
|
|
1579
1662
|
stop: {
|
|
1580
1663
|
/***
|
|
1581
|
-
*
|
|
1664
|
+
* 停止一个构建。 Stop a build.
|
|
1582
1665
|
*
|
|
1583
|
-
*
|
|
1666
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1584
1667
|
* repo-cnb-trigger:rw
|
|
1585
1668
|
*
|
|
1586
1669
|
* /{repo}/-/build/stop/{sn}
|
|
@@ -1592,9 +1675,9 @@ export interface Client {
|
|
|
1592
1675
|
commitAssets: {
|
|
1593
1676
|
download: {
|
|
1594
1677
|
/***
|
|
1595
|
-
* 发起一个获取 commits 附件的请求,返回内容或者 302
|
|
1678
|
+
* 发起一个获取 commits 附件的请求,返回内容或者 302 到某个地址。Get a request to fetch a commit assets and returns the content directly or a 302 redirect to the assets URL.
|
|
1596
1679
|
*
|
|
1597
|
-
*
|
|
1680
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1598
1681
|
* repo-contents:r
|
|
1599
1682
|
*
|
|
1600
1683
|
* /{repo}/-/commit-assets/download/{fileName}
|
|
@@ -1606,9 +1689,9 @@ export interface Client {
|
|
|
1606
1689
|
contributor: {
|
|
1607
1690
|
trend: {
|
|
1608
1691
|
/***
|
|
1609
|
-
* 查询仓库贡献者前 100
|
|
1692
|
+
* 查询仓库贡献者前 100 名的详细趋势数据。Query detailed trend data for top 100 contributors of the repository.
|
|
1610
1693
|
*
|
|
1611
|
-
*
|
|
1694
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1612
1695
|
* repo-code:r
|
|
1613
1696
|
*
|
|
1614
1697
|
* /{repo}/-/contributor/trend
|
|
@@ -1619,9 +1702,9 @@ export interface Client {
|
|
|
1619
1702
|
|
|
1620
1703
|
files: {
|
|
1621
1704
|
/***
|
|
1622
|
-
* 发起一个获取 files 的请求,返回内容或者 302
|
|
1705
|
+
* 发起一个获取 files 的请求,返回内容或者 302 到某个地址。Initiate a request to retrieve files, returns content or 302 redirect.
|
|
1623
1706
|
*
|
|
1624
|
-
*
|
|
1707
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1625
1708
|
* repo-contents:r
|
|
1626
1709
|
*
|
|
1627
1710
|
* /{repo}/-/files/{userIdKey}/{randomUUID}/{fileName}
|
|
@@ -1629,9 +1712,9 @@ export interface Client {
|
|
|
1629
1712
|
get: Assets_GetFiles;
|
|
1630
1713
|
|
|
1631
1714
|
/***
|
|
1632
|
-
* 发起一个确认 files
|
|
1715
|
+
* 发起一个确认 files 的请求,上传的图片要调用此接口才能生效。Initiate a request to confirm files, uploaded images need to call this API to take effect.
|
|
1633
1716
|
*
|
|
1634
|
-
*
|
|
1717
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1635
1718
|
* repo-contents:rw
|
|
1636
1719
|
*
|
|
1637
1720
|
* /{repo}/-/files/{userIdKey}/{randomUUID}/{fileName}
|
|
@@ -1641,9 +1724,9 @@ export interface Client {
|
|
|
1641
1724
|
|
|
1642
1725
|
forks: {
|
|
1643
1726
|
/***
|
|
1644
|
-
* 获取指定仓库的 fork
|
|
1727
|
+
* 获取指定仓库的 fork 列表。Get fork list for specified repository.
|
|
1645
1728
|
*
|
|
1646
|
-
*
|
|
1729
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1647
1730
|
* repo-base-info:r
|
|
1648
1731
|
*
|
|
1649
1732
|
* /{repo}/-/forks
|
|
@@ -1651,9 +1734,9 @@ export interface Client {
|
|
|
1651
1734
|
list: Repositories_ListForksRepos;
|
|
1652
1735
|
|
|
1653
1736
|
/***
|
|
1654
|
-
* fork
|
|
1737
|
+
* fork 仓库。Fork a repository.
|
|
1655
1738
|
*
|
|
1656
|
-
*
|
|
1739
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1657
1740
|
* group-resource:rw
|
|
1658
1741
|
*
|
|
1659
1742
|
* /{repo}/-/forks
|
|
@@ -1662,11 +1745,35 @@ export interface Client {
|
|
|
1662
1745
|
};
|
|
1663
1746
|
|
|
1664
1747
|
git: {
|
|
1748
|
+
archiveCommitChangedFiles: {
|
|
1749
|
+
/***
|
|
1750
|
+
* 打包下载 commit 变更文件。Download archive of changed files for a commit.
|
|
1751
|
+
*
|
|
1752
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1753
|
+
* repo-code:r
|
|
1754
|
+
*
|
|
1755
|
+
* /{repo}/-/git/archive-commit-changed-files/{sha1}
|
|
1756
|
+
*/
|
|
1757
|
+
get: Git_GetArchiveCommitChangedFiles;
|
|
1758
|
+
};
|
|
1759
|
+
|
|
1760
|
+
archiveCompareChangedFiles: {
|
|
1761
|
+
/***
|
|
1762
|
+
* 打包下载两次 ref 之间的变更文件。Download archive of changed files for a compare.
|
|
1763
|
+
*
|
|
1764
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1765
|
+
* repo-code:r
|
|
1766
|
+
*
|
|
1767
|
+
* /{repo}/-/git/archive-compare-changed-files/{base_head}
|
|
1768
|
+
*/
|
|
1769
|
+
get: Git_GetArchiveCompareChangedFiles;
|
|
1770
|
+
};
|
|
1771
|
+
|
|
1665
1772
|
blobs: {
|
|
1666
1773
|
/***
|
|
1667
|
-
* 创建一个 blob
|
|
1774
|
+
* 创建一个 blob。Create a blob.
|
|
1668
1775
|
*
|
|
1669
|
-
*
|
|
1776
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1670
1777
|
* repo-code:rw
|
|
1671
1778
|
*
|
|
1672
1779
|
* /{repo}/-/git/blobs
|
|
@@ -1676,9 +1783,9 @@ export interface Client {
|
|
|
1676
1783
|
|
|
1677
1784
|
branches: {
|
|
1678
1785
|
/***
|
|
1679
|
-
*
|
|
1786
|
+
* 查询分支列表。List branches.
|
|
1680
1787
|
*
|
|
1681
|
-
*
|
|
1788
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1682
1789
|
* repo-code:r
|
|
1683
1790
|
*
|
|
1684
1791
|
* /{repo}/-/git/branches
|
|
@@ -1686,9 +1793,9 @@ export interface Client {
|
|
|
1686
1793
|
list: Git_ListBranches;
|
|
1687
1794
|
|
|
1688
1795
|
/***
|
|
1689
|
-
*
|
|
1796
|
+
* 创建新分支。Create a new branch based on a start point.
|
|
1690
1797
|
*
|
|
1691
|
-
*
|
|
1798
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1692
1799
|
* repo-code:rw
|
|
1693
1800
|
*
|
|
1694
1801
|
* /{repo}/-/git/branches
|
|
@@ -1696,9 +1803,9 @@ export interface Client {
|
|
|
1696
1803
|
post: Git_CreateBranch;
|
|
1697
1804
|
|
|
1698
1805
|
/***
|
|
1699
|
-
*
|
|
1806
|
+
* 删除指定分支。Delete the specified branch.
|
|
1700
1807
|
*
|
|
1701
|
-
*
|
|
1808
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1702
1809
|
* repo-code:rw
|
|
1703
1810
|
*
|
|
1704
1811
|
* /{repo}/-/git/branches/{branch}
|
|
@@ -1706,9 +1813,9 @@ export interface Client {
|
|
|
1706
1813
|
delete: Git_DeleteBranch;
|
|
1707
1814
|
|
|
1708
1815
|
/***
|
|
1709
|
-
*
|
|
1816
|
+
* 查询指定分支。Get a branch.
|
|
1710
1817
|
*
|
|
1711
|
-
*
|
|
1818
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1712
1819
|
* repo-code:r
|
|
1713
1820
|
*
|
|
1714
1821
|
* /{repo}/-/git/branches/{branch}
|
|
@@ -1718,9 +1825,9 @@ export interface Client {
|
|
|
1718
1825
|
|
|
1719
1826
|
commitAnnotationsInBatch: {
|
|
1720
1827
|
/***
|
|
1721
|
-
* 查询指定 commit
|
|
1828
|
+
* 查询指定 commit 的元数据。Get commit annotations in batch.
|
|
1722
1829
|
*
|
|
1723
|
-
*
|
|
1830
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1724
1831
|
* repo-code:r
|
|
1725
1832
|
*
|
|
1726
1833
|
* /{repo}/-/git/commit-annotations-in-batch
|
|
@@ -1730,9 +1837,9 @@ export interface Client {
|
|
|
1730
1837
|
|
|
1731
1838
|
commitAnnotations: {
|
|
1732
1839
|
/***
|
|
1733
|
-
* 查询指定 commit
|
|
1840
|
+
* 查询指定 commit 的元数据。Get commit annotations.
|
|
1734
1841
|
*
|
|
1735
|
-
*
|
|
1842
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1736
1843
|
* repo-code:r
|
|
1737
1844
|
*
|
|
1738
1845
|
* /{repo}/-/git/commit-annotations/{sha}
|
|
@@ -1740,9 +1847,9 @@ export interface Client {
|
|
|
1740
1847
|
list: Git_GetCommitAnnotations;
|
|
1741
1848
|
|
|
1742
1849
|
/***
|
|
1743
|
-
* 设定指定 commit
|
|
1850
|
+
* 设定指定 commit 的元数据。Put commit annotations.
|
|
1744
1851
|
*
|
|
1745
|
-
*
|
|
1852
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1746
1853
|
* repo-code:rw
|
|
1747
1854
|
*
|
|
1748
1855
|
* /{repo}/-/git/commit-annotations/{sha}
|
|
@@ -1750,9 +1857,9 @@ export interface Client {
|
|
|
1750
1857
|
put: Git_PutCommitAnnotations;
|
|
1751
1858
|
|
|
1752
1859
|
/***
|
|
1753
|
-
* 删除指定 commit
|
|
1860
|
+
* 删除指定 commit 的元数据。Delete commit annotation.
|
|
1754
1861
|
*
|
|
1755
|
-
*
|
|
1862
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1756
1863
|
* repo-code:rw
|
|
1757
1864
|
*
|
|
1758
1865
|
* /{repo}/-/git/commit-annotations/{sha}/{key}
|
|
@@ -1762,9 +1869,9 @@ export interface Client {
|
|
|
1762
1869
|
|
|
1763
1870
|
commitAssets: {
|
|
1764
1871
|
/***
|
|
1765
|
-
* 查询指定 commit
|
|
1872
|
+
* 查询指定 commit 的附件。List commit assets.
|
|
1766
1873
|
*
|
|
1767
|
-
*
|
|
1874
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1768
1875
|
* repo-code:r
|
|
1769
1876
|
*
|
|
1770
1877
|
* /{repo}/-/git/commit-assets/{sha1}
|
|
@@ -1773,9 +1880,9 @@ export interface Client {
|
|
|
1773
1880
|
|
|
1774
1881
|
assetUploadConfirmation: {
|
|
1775
1882
|
/***
|
|
1776
|
-
* 确认 Commit asset
|
|
1883
|
+
* 确认 Commit asset 上传完成。Confirm commit asset upload.
|
|
1777
1884
|
*
|
|
1778
|
-
*
|
|
1885
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1779
1886
|
* repo-code:rw
|
|
1780
1887
|
*
|
|
1781
1888
|
* /{repo}/-/git/commit-assets/{sha1}/asset-upload-confirmation/{token}/{asset_path}
|
|
@@ -1785,9 +1892,9 @@ export interface Client {
|
|
|
1785
1892
|
|
|
1786
1893
|
assetUploadUrl: {
|
|
1787
1894
|
/***
|
|
1788
|
-
* 新增一个 Commit asset
|
|
1895
|
+
* 新增一个 Commit asset。Create a commit asset.
|
|
1789
1896
|
*
|
|
1790
|
-
*
|
|
1897
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1791
1898
|
* repo-code:rw
|
|
1792
1899
|
*
|
|
1793
1900
|
* /{repo}/-/git/commit-assets/{sha1}/asset-upload-url
|
|
@@ -1796,9 +1903,9 @@ export interface Client {
|
|
|
1796
1903
|
};
|
|
1797
1904
|
|
|
1798
1905
|
/***
|
|
1799
|
-
* 删除指定 commit
|
|
1906
|
+
* 删除指定 commit 的附件。Delete commit asset.
|
|
1800
1907
|
*
|
|
1801
|
-
*
|
|
1908
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1802
1909
|
* repo-code:rw
|
|
1803
1910
|
*
|
|
1804
1911
|
* /{repo}/-/git/commit-assets/{sha1}/{asset_id}
|
|
@@ -1808,9 +1915,9 @@ export interface Client {
|
|
|
1808
1915
|
|
|
1809
1916
|
commitStatuses: {
|
|
1810
1917
|
/***
|
|
1811
|
-
* 查询指定 commit 的 check statuses
|
|
1918
|
+
* 查询指定 commit 的 check statuses。List commit check statuses.
|
|
1812
1919
|
*
|
|
1813
|
-
*
|
|
1920
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1814
1921
|
* repo-code:r
|
|
1815
1922
|
*
|
|
1816
1923
|
* /{repo}/-/git/commit-statuses/{commitish}
|
|
@@ -1820,9 +1927,9 @@ export interface Client {
|
|
|
1820
1927
|
|
|
1821
1928
|
commits: {
|
|
1822
1929
|
/***
|
|
1823
|
-
* 查询 commit
|
|
1930
|
+
* 查询 commit 列表。List commits.
|
|
1824
1931
|
*
|
|
1825
|
-
*
|
|
1932
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1826
1933
|
* repo-code:r
|
|
1827
1934
|
*
|
|
1828
1935
|
* /{repo}/-/git/commits
|
|
@@ -1830,9 +1937,9 @@ export interface Client {
|
|
|
1830
1937
|
list: Git_ListCommits;
|
|
1831
1938
|
|
|
1832
1939
|
/***
|
|
1833
|
-
* 查询指定 commit
|
|
1940
|
+
* 查询指定 commit。Get a commit.
|
|
1834
1941
|
*
|
|
1835
|
-
*
|
|
1942
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1836
1943
|
* repo-code:r
|
|
1837
1944
|
*
|
|
1838
1945
|
* /{repo}/-/git/commits/{ref}
|
|
@@ -1842,9 +1949,9 @@ export interface Client {
|
|
|
1842
1949
|
|
|
1843
1950
|
compare: {
|
|
1844
1951
|
/***
|
|
1845
|
-
* 对比 base...head
|
|
1952
|
+
* 对比 base...head。Compare two commits.
|
|
1846
1953
|
*
|
|
1847
|
-
*
|
|
1954
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1848
1955
|
* repo-code:r
|
|
1849
1956
|
*
|
|
1850
1957
|
* /{repo}/-/git/compare/{base_head}
|
|
@@ -1854,9 +1961,9 @@ export interface Client {
|
|
|
1854
1961
|
|
|
1855
1962
|
contents: {
|
|
1856
1963
|
/***
|
|
1857
|
-
*
|
|
1964
|
+
* 查询仓库文件列表或文件。List repository files or file.
|
|
1858
1965
|
*
|
|
1859
|
-
*
|
|
1966
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1860
1967
|
* repo-code:r
|
|
1861
1968
|
*
|
|
1862
1969
|
* /{repo}/-/git/contents/{file_path}
|
|
@@ -1864,11 +1971,23 @@ export interface Client {
|
|
|
1864
1971
|
get: Git_GetContent;
|
|
1865
1972
|
};
|
|
1866
1973
|
|
|
1974
|
+
deferredCommits: {
|
|
1975
|
+
/***
|
|
1976
|
+
* 查询 deferred commit 列表
|
|
1977
|
+
*
|
|
1978
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1979
|
+
* repo-code:r
|
|
1980
|
+
*
|
|
1981
|
+
* /{repo}/-/git/deferred-commits
|
|
1982
|
+
*/
|
|
1983
|
+
list: Git_ListDeferredCommits;
|
|
1984
|
+
};
|
|
1985
|
+
|
|
1867
1986
|
head: {
|
|
1868
1987
|
/***
|
|
1869
|
-
*
|
|
1988
|
+
* 获取仓库默认分支。Get the default branch of the repository.
|
|
1870
1989
|
*
|
|
1871
|
-
*
|
|
1990
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1872
1991
|
* repo-code:r
|
|
1873
1992
|
*
|
|
1874
1993
|
* /{repo}/-/git/head
|
|
@@ -1878,9 +1997,9 @@ export interface Client {
|
|
|
1878
1997
|
|
|
1879
1998
|
tagAnnotations: {
|
|
1880
1999
|
/***
|
|
1881
|
-
* 删除指定 tag
|
|
2000
|
+
* 删除指定 tag 的元数据。Delete the metadata of the specified tag.
|
|
1882
2001
|
*
|
|
1883
|
-
*
|
|
2002
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1884
2003
|
* repo-contents:rw
|
|
1885
2004
|
*
|
|
1886
2005
|
* /{repo}/-/git/tag-annotations/{tag_with_key}
|
|
@@ -1888,9 +2007,9 @@ export interface Client {
|
|
|
1888
2007
|
delete: Git_DeleteTagAnnotation;
|
|
1889
2008
|
|
|
1890
2009
|
/***
|
|
1891
|
-
* 查询指定 tag
|
|
2010
|
+
* 查询指定 tag 的元数据。Query the metadata of the specified tag.
|
|
1892
2011
|
*
|
|
1893
|
-
*
|
|
2012
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1894
2013
|
* repo-contents:r
|
|
1895
2014
|
*
|
|
1896
2015
|
* /{repo}/-/git/tag-annotations/{tag}
|
|
@@ -1898,9 +2017,9 @@ export interface Client {
|
|
|
1898
2017
|
list: Git_GetTagAnnotations;
|
|
1899
2018
|
|
|
1900
2019
|
/***
|
|
1901
|
-
* 设定指定 tag
|
|
2020
|
+
* 设定指定 tag 的元数据。Set the metadata of the specified tag.
|
|
1902
2021
|
*
|
|
1903
|
-
*
|
|
2022
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1904
2023
|
* repo-contents:rw
|
|
1905
2024
|
*
|
|
1906
2025
|
* /{repo}/-/git/tag-annotations/{tag}
|
|
@@ -1910,9 +2029,9 @@ export interface Client {
|
|
|
1910
2029
|
|
|
1911
2030
|
tags: {
|
|
1912
2031
|
/***
|
|
1913
|
-
*
|
|
2032
|
+
* 查询标签列表。List tags.
|
|
1914
2033
|
*
|
|
1915
|
-
*
|
|
2034
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1916
2035
|
* repo-contents:r
|
|
1917
2036
|
*
|
|
1918
2037
|
* /{repo}/-/git/tags
|
|
@@ -1920,9 +2039,9 @@ export interface Client {
|
|
|
1920
2039
|
list: Git_ListTags;
|
|
1921
2040
|
|
|
1922
2041
|
/***
|
|
1923
|
-
* 创建一个 tag
|
|
2042
|
+
* 创建一个 tag。Create a tag.
|
|
1924
2043
|
*
|
|
1925
|
-
*
|
|
2044
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1926
2045
|
* repo-code:rw
|
|
1927
2046
|
*
|
|
1928
2047
|
* /{repo}/-/git/tags
|
|
@@ -1930,9 +2049,9 @@ export interface Client {
|
|
|
1930
2049
|
post: Git_CreateTag;
|
|
1931
2050
|
|
|
1932
2051
|
/***
|
|
1933
|
-
*
|
|
2052
|
+
* 删除指定标签。Delete the specified tag.
|
|
1934
2053
|
*
|
|
1935
|
-
*
|
|
2054
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1936
2055
|
* repo-contents:rw
|
|
1937
2056
|
*
|
|
1938
2057
|
* /{repo}/-/git/tags/{tag}
|
|
@@ -1940,9 +2059,9 @@ export interface Client {
|
|
|
1940
2059
|
delete: Git_DeleteTag;
|
|
1941
2060
|
|
|
1942
2061
|
/***
|
|
1943
|
-
* 查询指定 Tag
|
|
2062
|
+
* 查询指定 Tag。Get a tag.
|
|
1944
2063
|
*
|
|
1945
|
-
*
|
|
2064
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1946
2065
|
* repo-contents:r
|
|
1947
2066
|
*
|
|
1948
2067
|
* /{repo}/-/git/tags/{tag}
|
|
@@ -1953,9 +2072,9 @@ export interface Client {
|
|
|
1953
2072
|
|
|
1954
2073
|
imgs: {
|
|
1955
2074
|
/***
|
|
1956
|
-
* 发起一个获取 imgs 的请求,返回内容或者 302
|
|
2075
|
+
* 发起一个获取 imgs 的请求,返回内容或者 302 到某个地址。Initiate a request to get images, returns content or 302 redirect.
|
|
1957
2076
|
*
|
|
1958
|
-
*
|
|
2077
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1959
2078
|
* repo-contents:r
|
|
1960
2079
|
*
|
|
1961
2080
|
* /{repo}/-/imgs/{userIdKey}/{fileName}
|
|
@@ -1963,9 +2082,9 @@ export interface Client {
|
|
|
1963
2082
|
get: Assets_GetImgs;
|
|
1964
2083
|
|
|
1965
2084
|
/***
|
|
1966
|
-
* 发起一个确认 imgs
|
|
2085
|
+
* 发起一个确认 imgs 的请求,上传的图片要调用此接口才能生效。Initiate a request to confirm images, uploaded images need to call this API to take effect.
|
|
1967
2086
|
*
|
|
1968
|
-
*
|
|
2087
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1969
2088
|
* repo-contents:rw
|
|
1970
2089
|
*
|
|
1971
2090
|
* /{repo}/-/imgs/{userIdKey}/{fileName}
|
|
@@ -1975,9 +2094,9 @@ export interface Client {
|
|
|
1975
2094
|
|
|
1976
2095
|
inheritMembers: {
|
|
1977
2096
|
/***
|
|
1978
|
-
*
|
|
2097
|
+
* 获取指定组织或仓库内的继承成员。List inherited members within specified organization or repository。
|
|
1979
2098
|
*
|
|
1980
|
-
*
|
|
2099
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1981
2100
|
* repo-manage:r
|
|
1982
2101
|
*
|
|
1983
2102
|
* /{repo}/-/inherit-members
|
|
@@ -1987,9 +2106,9 @@ export interface Client {
|
|
|
1987
2106
|
|
|
1988
2107
|
issues: {
|
|
1989
2108
|
/***
|
|
1990
|
-
* 查询仓库的 Issues
|
|
2109
|
+
* 查询仓库的 Issues。List issues.
|
|
1991
2110
|
*
|
|
1992
|
-
*
|
|
2111
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
1993
2112
|
* repo-notes:r
|
|
1994
2113
|
*
|
|
1995
2114
|
* /{repo}/-/issues
|
|
@@ -1997,9 +2116,9 @@ export interface Client {
|
|
|
1997
2116
|
list: Issues_ListIssues;
|
|
1998
2117
|
|
|
1999
2118
|
/***
|
|
2000
|
-
* 创建一个 Issue
|
|
2119
|
+
* 创建一个 Issue。Create an issue.
|
|
2001
2120
|
*
|
|
2002
|
-
*
|
|
2121
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2003
2122
|
* repo-notes:rw
|
|
2004
2123
|
*
|
|
2005
2124
|
* /{repo}/-/issues
|
|
@@ -2007,9 +2126,9 @@ export interface Client {
|
|
|
2007
2126
|
post: Issues_CreateIssue;
|
|
2008
2127
|
|
|
2009
2128
|
/***
|
|
2010
|
-
* 查询指定的 Issues
|
|
2129
|
+
* 查询指定的 Issues。Get an issue.
|
|
2011
2130
|
*
|
|
2012
|
-
*
|
|
2131
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2013
2132
|
* repo-notes:r
|
|
2014
2133
|
*
|
|
2015
2134
|
* /{repo}/-/issues/{number}
|
|
@@ -2017,9 +2136,9 @@ export interface Client {
|
|
|
2017
2136
|
get: Issues_GetIssue;
|
|
2018
2137
|
|
|
2019
2138
|
/***
|
|
2020
|
-
* 更新一个 Issue
|
|
2139
|
+
* 更新一个 Issue。Update an issue.
|
|
2021
2140
|
*
|
|
2022
|
-
*
|
|
2141
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2023
2142
|
* repo-notes:rw
|
|
2024
2143
|
*
|
|
2025
2144
|
* /{repo}/-/issues/{number}
|
|
@@ -2028,9 +2147,9 @@ export interface Client {
|
|
|
2028
2147
|
|
|
2029
2148
|
comments: {
|
|
2030
2149
|
/***
|
|
2031
|
-
* 查询仓库的 Issue
|
|
2150
|
+
* 查询仓库的 Issue 评论列表。List repository issue comments.
|
|
2032
2151
|
*
|
|
2033
|
-
*
|
|
2152
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2034
2153
|
* repo-notes:r
|
|
2035
2154
|
*
|
|
2036
2155
|
* /{repo}/-/issues/{number}/comments
|
|
@@ -2038,9 +2157,9 @@ export interface Client {
|
|
|
2038
2157
|
list: Issues_ListIssueComments;
|
|
2039
2158
|
|
|
2040
2159
|
/***
|
|
2041
|
-
* 创建一个 Issue Comment
|
|
2160
|
+
* 创建一个 Issue Comment。Create an issue comment.
|
|
2042
2161
|
*
|
|
2043
|
-
*
|
|
2162
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2044
2163
|
* repo-notes:rw
|
|
2045
2164
|
*
|
|
2046
2165
|
* /{repo}/-/issues/{number}/comments
|
|
@@ -2048,9 +2167,9 @@ export interface Client {
|
|
|
2048
2167
|
post: Issues_PostIssueComment;
|
|
2049
2168
|
|
|
2050
2169
|
/***
|
|
2051
|
-
* 获取一个 Issue Comment
|
|
2170
|
+
* 获取一个 Issue Comment。Get an issue comment.
|
|
2052
2171
|
*
|
|
2053
|
-
*
|
|
2172
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2054
2173
|
* repo-notes:r
|
|
2055
2174
|
*
|
|
2056
2175
|
* /{repo}/-/issues/{number}/comments/{comment_id}
|
|
@@ -2058,9 +2177,9 @@ export interface Client {
|
|
|
2058
2177
|
get: Issues_GetIssueComment;
|
|
2059
2178
|
|
|
2060
2179
|
/***
|
|
2061
|
-
* 修改一个 Issue Comment
|
|
2180
|
+
* 修改一个 Issue Comment。Update an issue comment.
|
|
2062
2181
|
*
|
|
2063
|
-
*
|
|
2182
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2064
2183
|
* repo-notes:rw
|
|
2065
2184
|
*
|
|
2066
2185
|
* /{repo}/-/issues/{number}/comments/{comment_id}
|
|
@@ -2070,9 +2189,9 @@ export interface Client {
|
|
|
2070
2189
|
|
|
2071
2190
|
labels: {
|
|
2072
2191
|
/***
|
|
2073
|
-
* 清空 Issue
|
|
2192
|
+
* 清空 Issue 标签。Remove all labels from an issue.
|
|
2074
2193
|
*
|
|
2075
|
-
*
|
|
2194
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2076
2195
|
* repo-notes:rw
|
|
2077
2196
|
*
|
|
2078
2197
|
* /{repo}/-/issues/{number}/labels
|
|
@@ -2080,9 +2199,9 @@ export interface Client {
|
|
|
2080
2199
|
delete: Issues_DeleteIssueLabels;
|
|
2081
2200
|
|
|
2082
2201
|
/***
|
|
2083
|
-
* 查询 Issue 的标签(label)
|
|
2202
|
+
* 查询 Issue 的标签(label) 列表。List labels for an issue.
|
|
2084
2203
|
*
|
|
2085
|
-
*
|
|
2204
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2086
2205
|
* repo-notes:r
|
|
2087
2206
|
*
|
|
2088
2207
|
* /{repo}/-/issues/{number}/labels
|
|
@@ -2090,9 +2209,9 @@ export interface Client {
|
|
|
2090
2209
|
list: Issues_ListIssueLabels;
|
|
2091
2210
|
|
|
2092
2211
|
/***
|
|
2093
|
-
* 新增 Issue
|
|
2212
|
+
* 新增 Issue 标签。Add labels to an issue.
|
|
2094
2213
|
*
|
|
2095
|
-
*
|
|
2214
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2096
2215
|
* repo-notes:rw
|
|
2097
2216
|
*
|
|
2098
2217
|
* /{repo}/-/issues/{number}/labels
|
|
@@ -2100,9 +2219,9 @@ export interface Client {
|
|
|
2100
2219
|
post: Issues_PostIssueLabels;
|
|
2101
2220
|
|
|
2102
2221
|
/***
|
|
2103
|
-
* 设置 Issue
|
|
2222
|
+
* 设置 Issue 标签。 Set the new labels for an issue.
|
|
2104
2223
|
*
|
|
2105
|
-
*
|
|
2224
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2106
2225
|
* repo-notes:rw
|
|
2107
2226
|
*
|
|
2108
2227
|
* /{repo}/-/issues/{number}/labels
|
|
@@ -2110,9 +2229,9 @@ export interface Client {
|
|
|
2110
2229
|
put: Issues_PutIssueLabels;
|
|
2111
2230
|
|
|
2112
2231
|
/***
|
|
2113
|
-
* 删除 Issue
|
|
2232
|
+
* 删除 Issue 标签。Remove a label from an issue.
|
|
2114
2233
|
*
|
|
2115
|
-
*
|
|
2234
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2116
2235
|
* repo-notes:rw
|
|
2117
2236
|
*
|
|
2118
2237
|
* /{repo}/-/issues/{number}/labels/{name}
|
|
@@ -2123,9 +2242,9 @@ export interface Client {
|
|
|
2123
2242
|
|
|
2124
2243
|
labels: {
|
|
2125
2244
|
/***
|
|
2126
|
-
* 查询仓库的标签(label)
|
|
2245
|
+
* 查询仓库的标签(label) 列表。List repository labels.
|
|
2127
2246
|
*
|
|
2128
|
-
*
|
|
2247
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2129
2248
|
* repo-notes:r
|
|
2130
2249
|
*
|
|
2131
2250
|
* /{repo}/-/labels
|
|
@@ -2133,9 +2252,9 @@ export interface Client {
|
|
|
2133
2252
|
list: RepoLabels_ListLabels;
|
|
2134
2253
|
|
|
2135
2254
|
/***
|
|
2136
|
-
* 创建一个
|
|
2255
|
+
* 创建一个 标签。Create a label.
|
|
2137
2256
|
*
|
|
2138
|
-
*
|
|
2257
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2139
2258
|
* repo-notes:rw
|
|
2140
2259
|
*
|
|
2141
2260
|
* /{repo}/-/labels
|
|
@@ -2143,9 +2262,9 @@ export interface Client {
|
|
|
2143
2262
|
post: RepoLabels_PostLabel;
|
|
2144
2263
|
|
|
2145
2264
|
/***
|
|
2146
|
-
* 删除指定的仓库标签 label
|
|
2265
|
+
* 删除指定的仓库标签 label。Delete the specified repository label.
|
|
2147
2266
|
*
|
|
2148
|
-
*
|
|
2267
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2149
2268
|
* repo-notes:rw
|
|
2150
2269
|
*
|
|
2151
2270
|
* /{repo}/-/labels/{name}
|
|
@@ -2153,9 +2272,9 @@ export interface Client {
|
|
|
2153
2272
|
delete: RepoLabels_DeleteLabel;
|
|
2154
2273
|
|
|
2155
2274
|
/***
|
|
2156
|
-
*
|
|
2275
|
+
* 更新标签信息。Update label information.
|
|
2157
2276
|
*
|
|
2158
|
-
*
|
|
2277
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2159
2278
|
* repo-notes:rw
|
|
2160
2279
|
*
|
|
2161
2280
|
* /{repo}/-/labels/{name}
|
|
@@ -2165,9 +2284,9 @@ export interface Client {
|
|
|
2165
2284
|
|
|
2166
2285
|
listMembers: {
|
|
2167
2286
|
/***
|
|
2168
|
-
*
|
|
2287
|
+
* 获取指定仓库内的有效成员列表,包含继承成员。List active members in specified repository including inherited members.
|
|
2169
2288
|
*
|
|
2170
|
-
*
|
|
2289
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2171
2290
|
* repo-manage:r
|
|
2172
2291
|
*
|
|
2173
2292
|
* /{repo}/-/list-members
|
|
@@ -2177,9 +2296,9 @@ export interface Client {
|
|
|
2177
2296
|
|
|
2178
2297
|
members: {
|
|
2179
2298
|
/***
|
|
2180
|
-
*
|
|
2299
|
+
* 获取指定组织或仓库内的所有直接成员。List all direct members within specified organization or repository.
|
|
2181
2300
|
*
|
|
2182
|
-
*
|
|
2301
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2183
2302
|
* repo-manage:r
|
|
2184
2303
|
*
|
|
2185
2304
|
* /{repo}/-/members
|
|
@@ -2188,9 +2307,9 @@ export interface Client {
|
|
|
2188
2307
|
|
|
2189
2308
|
accessLevel: {
|
|
2190
2309
|
/***
|
|
2191
|
-
* 获取指定组织或仓库内,
|
|
2310
|
+
* 获取指定组织或仓库内, 访问成员在当前层级内的权限信息。Get permission information for accessing members at current level.
|
|
2192
2311
|
*
|
|
2193
|
-
*
|
|
2312
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2194
2313
|
* repo-manage:r
|
|
2195
2314
|
*
|
|
2196
2315
|
* /{repo}/-/members/access-level
|
|
@@ -2198,9 +2317,9 @@ export interface Client {
|
|
|
2198
2317
|
get: Contributors_GetMemberAccessLevelOfRepo;
|
|
2199
2318
|
|
|
2200
2319
|
/***
|
|
2201
|
-
* 获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示,
|
|
2320
|
+
* 获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示, 包含上层组织的权限继承信息。Get specified member's permissions with organizational hierarchy.
|
|
2202
2321
|
*
|
|
2203
|
-
*
|
|
2322
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2204
2323
|
* repo-manage:r
|
|
2205
2324
|
*
|
|
2206
2325
|
* /{repo}/-/members/{username}/access-level
|
|
@@ -2209,9 +2328,9 @@ export interface Client {
|
|
|
2209
2328
|
};
|
|
2210
2329
|
|
|
2211
2330
|
/***
|
|
2212
|
-
*
|
|
2331
|
+
* 删除指定组织或仓库的直接成员。Remove direct members from specified organization/repository.
|
|
2213
2332
|
*
|
|
2214
|
-
*
|
|
2333
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2215
2334
|
* repo-manage:rw
|
|
2216
2335
|
*
|
|
2217
2336
|
* /{repo}/-/members/{username}
|
|
@@ -2219,9 +2338,19 @@ export interface Client {
|
|
|
2219
2338
|
delete: Collaborators_DeleteMembersOfRepo;
|
|
2220
2339
|
|
|
2221
2340
|
/***
|
|
2222
|
-
*
|
|
2341
|
+
* 添加成员。Add members.
|
|
2223
2342
|
*
|
|
2224
|
-
*
|
|
2343
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2344
|
+
* repo-manage:rw
|
|
2345
|
+
*
|
|
2346
|
+
* /{repo}/-/members/{username}
|
|
2347
|
+
*/
|
|
2348
|
+
post: Collaborators_AddMembersOfRepo;
|
|
2349
|
+
|
|
2350
|
+
/***
|
|
2351
|
+
* 更新指定组织或仓库内的直接成员权限信息。Update permission information for direct members in specified organization/repository.
|
|
2352
|
+
*
|
|
2353
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2225
2354
|
* repo-manage:rw
|
|
2226
2355
|
*
|
|
2227
2356
|
* /{repo}/-/members/{username}
|
|
@@ -2231,9 +2360,9 @@ export interface Client {
|
|
|
2231
2360
|
|
|
2232
2361
|
outsideCollaborators: {
|
|
2233
2362
|
/***
|
|
2234
|
-
*
|
|
2363
|
+
* 获取指定仓库内的外部贡献者。List external contributors in specified repository.
|
|
2235
2364
|
*
|
|
2236
|
-
*
|
|
2365
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2237
2366
|
* repo-manage:r
|
|
2238
2367
|
*
|
|
2239
2368
|
* /{repo}/-/outside-collaborators
|
|
@@ -2241,9 +2370,9 @@ export interface Client {
|
|
|
2241
2370
|
list: Collaborators_ListOutsideCollaborators;
|
|
2242
2371
|
|
|
2243
2372
|
/***
|
|
2244
|
-
*
|
|
2373
|
+
* 删除指定仓库的外部贡献者。Removes external contributors from specified repository.
|
|
2245
2374
|
*
|
|
2246
|
-
*
|
|
2375
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2247
2376
|
* repo-manage:rw
|
|
2248
2377
|
*
|
|
2249
2378
|
* /{repo}/-/outside-collaborators/{username}
|
|
@@ -2251,9 +2380,9 @@ export interface Client {
|
|
|
2251
2380
|
delete: Collaborators_DeleteOutsideCollaborators;
|
|
2252
2381
|
|
|
2253
2382
|
/***
|
|
2254
|
-
*
|
|
2383
|
+
* 更新指定仓库的外部贡献者权限信息。 Update permission information for external contributors in specified repository.
|
|
2255
2384
|
*
|
|
2256
|
-
*
|
|
2385
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2257
2386
|
* repo-manage:rw
|
|
2258
2387
|
*
|
|
2259
2388
|
* /{repo}/-/outside-collaborators/{username}
|
|
@@ -2263,9 +2392,9 @@ export interface Client {
|
|
|
2263
2392
|
|
|
2264
2393
|
pullInBatch: {
|
|
2265
2394
|
/***
|
|
2266
|
-
*
|
|
2395
|
+
* 根据numbers查询 Pull 列表。List pull requests by numbers.
|
|
2267
2396
|
*
|
|
2268
|
-
*
|
|
2397
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2269
2398
|
* repo-pr:r
|
|
2270
2399
|
*
|
|
2271
2400
|
* /{repo}/-/pull-in-batch
|
|
@@ -2275,9 +2404,9 @@ export interface Client {
|
|
|
2275
2404
|
|
|
2276
2405
|
pulls: {
|
|
2277
2406
|
/***
|
|
2278
|
-
*
|
|
2407
|
+
* 查询 Pull 列表。List pull requests.
|
|
2279
2408
|
*
|
|
2280
|
-
*
|
|
2409
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2281
2410
|
* repo-pr:r
|
|
2282
2411
|
*
|
|
2283
2412
|
* /{repo}/-/pulls
|
|
@@ -2285,9 +2414,9 @@ export interface Client {
|
|
|
2285
2414
|
list: Pulls_ListPulls;
|
|
2286
2415
|
|
|
2287
2416
|
/***
|
|
2288
|
-
*
|
|
2417
|
+
* 新增一个 Pull。Create a pull request.
|
|
2289
2418
|
*
|
|
2290
|
-
*
|
|
2419
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2291
2420
|
* repo-pr:rw
|
|
2292
2421
|
*
|
|
2293
2422
|
* /{repo}/-/pulls
|
|
@@ -2295,9 +2424,9 @@ export interface Client {
|
|
|
2295
2424
|
post: Pulls_PostPull;
|
|
2296
2425
|
|
|
2297
2426
|
/***
|
|
2298
|
-
*
|
|
2427
|
+
* 查询指定 Pull。Get a pull request.
|
|
2299
2428
|
*
|
|
2300
|
-
*
|
|
2429
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2301
2430
|
* repo-pr:r
|
|
2302
2431
|
*
|
|
2303
2432
|
* /{repo}/-/pulls/{number}
|
|
@@ -2305,9 +2434,9 @@ export interface Client {
|
|
|
2305
2434
|
get: Pulls_GetPull;
|
|
2306
2435
|
|
|
2307
2436
|
/***
|
|
2308
|
-
*
|
|
2437
|
+
* 更新一个 Pull Request。Update a pull request.
|
|
2309
2438
|
*
|
|
2310
|
-
*
|
|
2439
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2311
2440
|
* repo-pr:rw
|
|
2312
2441
|
*
|
|
2313
2442
|
* /{repo}/-/pulls/{number}
|
|
@@ -2316,9 +2445,9 @@ export interface Client {
|
|
|
2316
2445
|
|
|
2317
2446
|
comments: {
|
|
2318
2447
|
/***
|
|
2319
|
-
*
|
|
2448
|
+
* 查询 Pull Comments 列表。List pull comments requests.
|
|
2320
2449
|
*
|
|
2321
|
-
*
|
|
2450
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2322
2451
|
* repo-notes:r
|
|
2323
2452
|
*
|
|
2324
2453
|
* /{repo}/-/pulls/{number}/comments
|
|
@@ -2326,9 +2455,9 @@ export interface Client {
|
|
|
2326
2455
|
list: Pulls_ListPullComments;
|
|
2327
2456
|
|
|
2328
2457
|
/***
|
|
2329
|
-
*
|
|
2458
|
+
* 新增一个 Pull Comment。Create a pull comment.
|
|
2330
2459
|
*
|
|
2331
|
-
*
|
|
2460
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2332
2461
|
* repo-notes:rw
|
|
2333
2462
|
*
|
|
2334
2463
|
* /{repo}/-/pulls/{number}/comments
|
|
@@ -2338,9 +2467,9 @@ export interface Client {
|
|
|
2338
2467
|
|
|
2339
2468
|
labels: {
|
|
2340
2469
|
/***
|
|
2341
|
-
* 清空 Pull
|
|
2470
|
+
* 清空 Pull 标签。Remove all labels from a pull.
|
|
2342
2471
|
*
|
|
2343
|
-
*
|
|
2472
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2344
2473
|
* repo-notes:rw
|
|
2345
2474
|
*
|
|
2346
2475
|
* /{repo}/-/pulls/{number}/labels
|
|
@@ -2348,9 +2477,9 @@ export interface Client {
|
|
|
2348
2477
|
delete: Pulls_DeletePullLabels;
|
|
2349
2478
|
|
|
2350
2479
|
/***
|
|
2351
|
-
* 查询 Pull 的标签(label)
|
|
2480
|
+
* 查询 Pull 的标签(label) 列表。List labels for a pull.
|
|
2352
2481
|
*
|
|
2353
|
-
*
|
|
2482
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2354
2483
|
* repo-notes:r
|
|
2355
2484
|
*
|
|
2356
2485
|
* /{repo}/-/pulls/{number}/labels
|
|
@@ -2358,9 +2487,9 @@ export interface Client {
|
|
|
2358
2487
|
list: Pulls_ListPullLabels;
|
|
2359
2488
|
|
|
2360
2489
|
/***
|
|
2361
|
-
* 新增 Pull
|
|
2490
|
+
* 新增 Pull 标签。Add labels to a pull.
|
|
2362
2491
|
*
|
|
2363
|
-
*
|
|
2492
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2364
2493
|
* repo-notes:rw
|
|
2365
2494
|
*
|
|
2366
2495
|
* /{repo}/-/pulls/{number}/labels
|
|
@@ -2368,9 +2497,9 @@ export interface Client {
|
|
|
2368
2497
|
post: Pulls_PostPullLabels;
|
|
2369
2498
|
|
|
2370
2499
|
/***
|
|
2371
|
-
* 设置 Pull
|
|
2500
|
+
* 设置 Pull 标签。Set the new labels for a pull.
|
|
2372
2501
|
*
|
|
2373
|
-
*
|
|
2502
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2374
2503
|
* repo-notes:rw
|
|
2375
2504
|
*
|
|
2376
2505
|
* /{repo}/-/pulls/{number}/labels
|
|
@@ -2378,9 +2507,9 @@ export interface Client {
|
|
|
2378
2507
|
put: Pulls_PutPullLabels;
|
|
2379
2508
|
|
|
2380
2509
|
/***
|
|
2381
|
-
* 删除 Pull
|
|
2510
|
+
* 删除 Pull 标签。Remove a label from a pull.
|
|
2382
2511
|
*
|
|
2383
|
-
*
|
|
2512
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2384
2513
|
* repo-notes:rw
|
|
2385
2514
|
*
|
|
2386
2515
|
* /{repo}/-/pulls/{number}/labels/{name}
|
|
@@ -2390,9 +2519,9 @@ export interface Client {
|
|
|
2390
2519
|
|
|
2391
2520
|
merge: {
|
|
2392
2521
|
/***
|
|
2393
|
-
*
|
|
2522
|
+
* 合并一个 Pull Request。Merge a pull request.
|
|
2394
2523
|
*
|
|
2395
|
-
*
|
|
2524
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2396
2525
|
* repo-pr:rw
|
|
2397
2526
|
*
|
|
2398
2527
|
* /{repo}/-/pulls/{number}/merge
|
|
@@ -2402,9 +2531,9 @@ export interface Client {
|
|
|
2402
2531
|
|
|
2403
2532
|
reviews: {
|
|
2404
2533
|
/***
|
|
2405
|
-
* 新增一次 pull request
|
|
2534
|
+
* 新增一次 pull request 评审。Create a pull review.
|
|
2406
2535
|
*
|
|
2407
|
-
*
|
|
2536
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2408
2537
|
* repo-notes:rw
|
|
2409
2538
|
*
|
|
2410
2539
|
* /{repo}/-/pulls/{number}/reviews
|
|
@@ -2415,9 +2544,9 @@ export interface Client {
|
|
|
2415
2544
|
|
|
2416
2545
|
releases: {
|
|
2417
2546
|
/***
|
|
2418
|
-
*
|
|
2547
|
+
* 查询 release 列表。List releases.
|
|
2419
2548
|
*
|
|
2420
|
-
*
|
|
2549
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2421
2550
|
* repo-code:r
|
|
2422
2551
|
*
|
|
2423
2552
|
* /{repo}/-/releases
|
|
@@ -2425,9 +2554,9 @@ export interface Client {
|
|
|
2425
2554
|
list: Releases_ListReleases;
|
|
2426
2555
|
|
|
2427
2556
|
/***
|
|
2428
|
-
*
|
|
2557
|
+
* 新增一个 Release。Create a release.
|
|
2429
2558
|
*
|
|
2430
|
-
*
|
|
2559
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2431
2560
|
* repo-code:rw
|
|
2432
2561
|
*
|
|
2433
2562
|
* /{repo}/-/releases
|
|
@@ -2436,9 +2565,9 @@ export interface Client {
|
|
|
2436
2565
|
|
|
2437
2566
|
download: {
|
|
2438
2567
|
/***
|
|
2439
|
-
* 发起一个获取 release 附件的请求,返回内容或者 302
|
|
2568
|
+
* 发起一个获取 release 附件的请求,返回内容或者 302 到某个地址。Initiate a request to get release attachments, returns content or 302 redirect.
|
|
2440
2569
|
*
|
|
2441
|
-
*
|
|
2570
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2442
2571
|
* repo-contents:r
|
|
2443
2572
|
*
|
|
2444
2573
|
* /{repo}/-/releases/download/{fileName}
|
|
@@ -2446,11 +2575,35 @@ export interface Client {
|
|
|
2446
2575
|
get: Assets_GetReleasesAsset;
|
|
2447
2576
|
};
|
|
2448
2577
|
|
|
2578
|
+
latest: {
|
|
2579
|
+
/***
|
|
2580
|
+
* 查询 latest release。Query the latest release.
|
|
2581
|
+
*
|
|
2582
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2583
|
+
* repo-code:r
|
|
2584
|
+
*
|
|
2585
|
+
* /{repo}/-/releases/latest
|
|
2586
|
+
*/
|
|
2587
|
+
get: Releases_GetLatestRelease;
|
|
2588
|
+
|
|
2589
|
+
download: {
|
|
2590
|
+
/***
|
|
2591
|
+
* 发起一个获取 latest release 附件的请求,返回内容或者 302 到某个地址。Initiate a request to get latest release attachments, returns content or 302 redirect.
|
|
2592
|
+
*
|
|
2593
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2594
|
+
* repo-contents:r
|
|
2595
|
+
*
|
|
2596
|
+
* /{repo}/-/releases/latest/download/{fileName}
|
|
2597
|
+
*/
|
|
2598
|
+
get: Assets_GetLatestReleasesAsset;
|
|
2599
|
+
};
|
|
2600
|
+
};
|
|
2601
|
+
|
|
2449
2602
|
tags: {
|
|
2450
2603
|
/***
|
|
2451
|
-
*
|
|
2604
|
+
* 通过 tag 查询指定 release。Get a release by tag.
|
|
2452
2605
|
*
|
|
2453
|
-
*
|
|
2606
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2454
2607
|
* repo-code:r
|
|
2455
2608
|
*
|
|
2456
2609
|
* /{repo}/-/releases/tags/{tag}
|
|
@@ -2459,9 +2612,9 @@ export interface Client {
|
|
|
2459
2612
|
};
|
|
2460
2613
|
|
|
2461
2614
|
/***
|
|
2462
|
-
*
|
|
2615
|
+
* 删除指定的 release。Delete a release.
|
|
2463
2616
|
*
|
|
2464
|
-
*
|
|
2617
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2465
2618
|
* repo-code:rw
|
|
2466
2619
|
*
|
|
2467
2620
|
* /{repo}/-/releases/{release_id}
|
|
@@ -2469,9 +2622,9 @@ export interface Client {
|
|
|
2469
2622
|
delete: Releases_DeleteRelease;
|
|
2470
2623
|
|
|
2471
2624
|
/***
|
|
2472
|
-
*
|
|
2625
|
+
* 根据 id 查询指定 release。Get a release by id.
|
|
2473
2626
|
*
|
|
2474
|
-
*
|
|
2627
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2475
2628
|
* repo-code:r
|
|
2476
2629
|
*
|
|
2477
2630
|
* /{repo}/-/releases/{release_id}
|
|
@@ -2479,9 +2632,9 @@ export interface Client {
|
|
|
2479
2632
|
get: Releases_GetReleaseByID;
|
|
2480
2633
|
|
|
2481
2634
|
/***
|
|
2482
|
-
*
|
|
2635
|
+
* 更新 release。Update a release.
|
|
2483
2636
|
*
|
|
2484
|
-
*
|
|
2637
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2485
2638
|
* repo-code:rw
|
|
2486
2639
|
*
|
|
2487
2640
|
* /{repo}/-/releases/{release_id}
|
|
@@ -2490,9 +2643,9 @@ export interface Client {
|
|
|
2490
2643
|
|
|
2491
2644
|
assetUploadConfirmation: {
|
|
2492
2645
|
/***
|
|
2493
|
-
*
|
|
2646
|
+
* 确认 Release asset 上传完成。Confirm release asset upload.
|
|
2494
2647
|
*
|
|
2495
|
-
*
|
|
2648
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2496
2649
|
* repo-code:rw
|
|
2497
2650
|
*
|
|
2498
2651
|
* /{repo}/-/releases/{release_id}/asset-upload-confirmation/{token}/{asset_path}
|
|
@@ -2502,9 +2655,9 @@ export interface Client {
|
|
|
2502
2655
|
|
|
2503
2656
|
assetUploadUrl: {
|
|
2504
2657
|
/***
|
|
2505
|
-
*
|
|
2658
|
+
* 新增一个 Release asset。Create a release asset.
|
|
2506
2659
|
*
|
|
2507
|
-
*
|
|
2660
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2508
2661
|
* repo-code:rw
|
|
2509
2662
|
*
|
|
2510
2663
|
* /{repo}/-/releases/{release_id}/asset-upload-url
|
|
@@ -2514,9 +2667,9 @@ export interface Client {
|
|
|
2514
2667
|
|
|
2515
2668
|
assets: {
|
|
2516
2669
|
/***
|
|
2517
|
-
*
|
|
2670
|
+
* 删除指定的 release asset。Delete the specified release asset.
|
|
2518
2671
|
*
|
|
2519
|
-
*
|
|
2672
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2520
2673
|
* repo-code:rw
|
|
2521
2674
|
*
|
|
2522
2675
|
* /{repo}/-/releases/{release_id}/assets/{asset_id}
|
|
@@ -2524,9 +2677,9 @@ export interface Client {
|
|
|
2524
2677
|
delete: Releases_DeleteReleaseAsset;
|
|
2525
2678
|
|
|
2526
2679
|
/***
|
|
2527
|
-
*
|
|
2680
|
+
* 查询指定的 release asset。Get the specified release asset.
|
|
2528
2681
|
*
|
|
2529
|
-
*
|
|
2682
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2530
2683
|
* repo-code:r
|
|
2531
2684
|
*
|
|
2532
2685
|
* /{repo}/-/releases/{release_id}/assets/{asset_id}
|
|
@@ -2538,9 +2691,9 @@ export interface Client {
|
|
|
2538
2691
|
settings: {
|
|
2539
2692
|
branchProtections: {
|
|
2540
2693
|
/***
|
|
2541
|
-
*
|
|
2694
|
+
* 查询仓库保护分支规则列表。List branch protection rules.
|
|
2542
2695
|
*
|
|
2543
|
-
*
|
|
2696
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2544
2697
|
* repo-manage:r
|
|
2545
2698
|
*
|
|
2546
2699
|
* /{repo}/-/settings/branch-protections
|
|
@@ -2548,9 +2701,9 @@ export interface Client {
|
|
|
2548
2701
|
list: GitSettings_ListBranchProtections;
|
|
2549
2702
|
|
|
2550
2703
|
/***
|
|
2551
|
-
*
|
|
2704
|
+
* 新增仓库保护分支规则。Create branch protection rule.
|
|
2552
2705
|
*
|
|
2553
|
-
*
|
|
2706
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2554
2707
|
* repo-manage:rw
|
|
2555
2708
|
*
|
|
2556
2709
|
* /{repo}/-/settings/branch-protections
|
|
@@ -2558,9 +2711,9 @@ export interface Client {
|
|
|
2558
2711
|
post: GitSettings_PostBranchProtection;
|
|
2559
2712
|
|
|
2560
2713
|
/***
|
|
2561
|
-
*
|
|
2714
|
+
* 删除仓库保护分支规则。 Delete branch protection rule.
|
|
2562
2715
|
*
|
|
2563
|
-
*
|
|
2716
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2564
2717
|
* repo-manage:rw
|
|
2565
2718
|
*
|
|
2566
2719
|
* /{repo}/-/settings/branch-protections/{id}
|
|
@@ -2568,9 +2721,9 @@ export interface Client {
|
|
|
2568
2721
|
delete: GitSettings_DeleteBranchProtection;
|
|
2569
2722
|
|
|
2570
2723
|
/***
|
|
2571
|
-
*
|
|
2724
|
+
* 查询仓库保护分支规则。Get branch protection rule.
|
|
2572
2725
|
*
|
|
2573
|
-
*
|
|
2726
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2574
2727
|
* repo-manage:r
|
|
2575
2728
|
*
|
|
2576
2729
|
* /{repo}/-/settings/branch-protections/{id}
|
|
@@ -2578,9 +2731,9 @@ export interface Client {
|
|
|
2578
2731
|
get: GitSettings_GetBranchProtection;
|
|
2579
2732
|
|
|
2580
2733
|
/***
|
|
2581
|
-
*
|
|
2734
|
+
* 更新仓库保护分支规则。Update branch protection rule.
|
|
2582
2735
|
*
|
|
2583
|
-
*
|
|
2736
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2584
2737
|
* repo-manage:rw
|
|
2585
2738
|
*
|
|
2586
2739
|
* /{repo}/-/settings/branch-protections/{id}
|
|
@@ -2590,9 +2743,9 @@ export interface Client {
|
|
|
2590
2743
|
|
|
2591
2744
|
cloudNativeBuild: {
|
|
2592
2745
|
/***
|
|
2593
|
-
*
|
|
2746
|
+
* 查询仓库云原生构建设置。List pipeline settings.
|
|
2594
2747
|
*
|
|
2595
|
-
*
|
|
2748
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2596
2749
|
* repo-manage:r
|
|
2597
2750
|
*
|
|
2598
2751
|
* /{repo}/-/settings/cloud-native-build
|
|
@@ -2600,9 +2753,9 @@ export interface Client {
|
|
|
2600
2753
|
get: GitSettings_GetPipelineSettings;
|
|
2601
2754
|
|
|
2602
2755
|
/***
|
|
2603
|
-
*
|
|
2756
|
+
* 更新仓库云原生构建设置。Update pipeline settings.
|
|
2604
2757
|
*
|
|
2605
|
-
*
|
|
2758
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2606
2759
|
* repo-manage:rw
|
|
2607
2760
|
*
|
|
2608
2761
|
* /{repo}/-/settings/cloud-native-build
|
|
@@ -2612,9 +2765,9 @@ export interface Client {
|
|
|
2612
2765
|
|
|
2613
2766
|
pullRequest: {
|
|
2614
2767
|
/***
|
|
2615
|
-
*
|
|
2768
|
+
* 查询仓库合并请求设置。List pull request settings.
|
|
2616
2769
|
*
|
|
2617
|
-
*
|
|
2770
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2618
2771
|
* repo-manage:r
|
|
2619
2772
|
*
|
|
2620
2773
|
* /{repo}/-/settings/pull-request
|
|
@@ -2622,9 +2775,9 @@ export interface Client {
|
|
|
2622
2775
|
get: GitSettings_GetPullRequestSettings;
|
|
2623
2776
|
|
|
2624
2777
|
/***
|
|
2625
|
-
*
|
|
2778
|
+
* 设置仓库推送设置。Set pull request settings.
|
|
2626
2779
|
*
|
|
2627
|
-
*
|
|
2780
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2628
2781
|
* repo-manage:rw
|
|
2629
2782
|
*
|
|
2630
2783
|
* /{repo}/-/settings/pull-request
|
|
@@ -2634,9 +2787,9 @@ export interface Client {
|
|
|
2634
2787
|
|
|
2635
2788
|
pushLimit: {
|
|
2636
2789
|
/***
|
|
2637
|
-
*
|
|
2790
|
+
* 查询仓库推送设置。List push limit settings.
|
|
2638
2791
|
*
|
|
2639
|
-
*
|
|
2792
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2640
2793
|
* repo-manage:r
|
|
2641
2794
|
*
|
|
2642
2795
|
* /{repo}/-/settings/push-limit
|
|
@@ -2644,9 +2797,9 @@ export interface Client {
|
|
|
2644
2797
|
get: GitSettings_GetPushLimitSettings;
|
|
2645
2798
|
|
|
2646
2799
|
/***
|
|
2647
|
-
*
|
|
2800
|
+
* 设置仓库推送设置。Set push limit settings.
|
|
2648
2801
|
*
|
|
2649
|
-
*
|
|
2802
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2650
2803
|
* repo-manage:rw
|
|
2651
2804
|
*
|
|
2652
2805
|
* /{repo}/-/settings/push-limit
|
|
@@ -2657,9 +2810,9 @@ export interface Client {
|
|
|
2657
2810
|
|
|
2658
2811
|
stars: {
|
|
2659
2812
|
/***
|
|
2660
|
-
* 获取指定仓库的star
|
|
2813
|
+
* 获取指定仓库的star用户列表。Get the list of users who starred the specified repository.
|
|
2661
2814
|
*
|
|
2662
|
-
*
|
|
2815
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2663
2816
|
* repo-basic-info:r
|
|
2664
2817
|
*
|
|
2665
2818
|
* /{repo}/-/stars
|
|
@@ -2669,9 +2822,9 @@ export interface Client {
|
|
|
2669
2822
|
|
|
2670
2823
|
topActivityUsers: {
|
|
2671
2824
|
/***
|
|
2672
|
-
* 获取 top
|
|
2825
|
+
* 获取 top 贡献用户。List the top contributing users
|
|
2673
2826
|
*
|
|
2674
|
-
*
|
|
2827
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2675
2828
|
* repo-base-info:r
|
|
2676
2829
|
*
|
|
2677
2830
|
* /{repo}/-/top-activity-users
|
|
@@ -2682,9 +2835,9 @@ export interface Client {
|
|
|
2682
2835
|
upload: {
|
|
2683
2836
|
files: {
|
|
2684
2837
|
/***
|
|
2685
|
-
* 发起一个上传 files
|
|
2838
|
+
* 发起一个上传 files 的请求,返回上传 cos 的 url 和 form 内容。Initiate a request to upload files,returns COS upload URL and form data.
|
|
2686
2839
|
*
|
|
2687
|
-
*
|
|
2840
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2688
2841
|
* repo-contents:rw
|
|
2689
2842
|
*
|
|
2690
2843
|
* /{repo}/-/upload/files
|
|
@@ -2694,9 +2847,9 @@ export interface Client {
|
|
|
2694
2847
|
|
|
2695
2848
|
imgs: {
|
|
2696
2849
|
/***
|
|
2697
|
-
* 发起一个上传 imgs 的请求,返回上传 cos 的 url 和 form
|
|
2850
|
+
* 发起一个上传 imgs 的请求,返回上传 cos 的 url 和 form 内容。发起一个上传 imgs 的请求,返回上传 cos 的 url 和 form 内容.
|
|
2698
2851
|
*
|
|
2699
|
-
*
|
|
2852
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2700
2853
|
* repo-contents:rw
|
|
2701
2854
|
*
|
|
2702
2855
|
* /{repo}/-/upload/imgs
|
|
@@ -2706,9 +2859,9 @@ export interface Client {
|
|
|
2706
2859
|
|
|
2707
2860
|
releases: {
|
|
2708
2861
|
/***
|
|
2709
|
-
* 发起一个上传 release 附件的请求,返回上传 cos 的 url 和 form
|
|
2862
|
+
* 发起一个上传 release 附件的请求,返回上传 cos 的 url 和 form 内容。Initiate a request to upload release attachments, returns COS upload URL and form data.
|
|
2710
2863
|
*
|
|
2711
|
-
*
|
|
2864
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2712
2865
|
* repo-contents:rw
|
|
2713
2866
|
*
|
|
2714
2867
|
* /{repo}/-/upload/releases/{tagName}
|
|
@@ -2720,9 +2873,9 @@ export interface Client {
|
|
|
2720
2873
|
workspace: {
|
|
2721
2874
|
detail: {
|
|
2722
2875
|
/***
|
|
2723
|
-
* 根据流水线sn
|
|
2876
|
+
* 根据流水线sn查询云原生开发访问地址。Query cloud-native development access address by pipeline SN.
|
|
2724
2877
|
*
|
|
2725
|
-
*
|
|
2878
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2726
2879
|
* repo-cnb-detail:r
|
|
2727
2880
|
*
|
|
2728
2881
|
* /{repo}/-/workspace/detail/{sn}
|
|
@@ -2735,9 +2888,9 @@ export interface Client {
|
|
|
2735
2888
|
slug: {
|
|
2736
2889
|
packages: {
|
|
2737
2890
|
/***
|
|
2738
|
-
* List all packages
|
|
2891
|
+
* 查询制品列表。 List all packages.
|
|
2739
2892
|
*
|
|
2740
|
-
*
|
|
2893
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2741
2894
|
* registry-package:r
|
|
2742
2895
|
*
|
|
2743
2896
|
* /{slug}/-/packages
|
|
@@ -2745,9 +2898,9 @@ export interface Client {
|
|
|
2745
2898
|
list: Artifactory_ListPackages;
|
|
2746
2899
|
|
|
2747
2900
|
/***
|
|
2748
|
-
* Head all packages
|
|
2901
|
+
* 查询制品数量。 Head all packages.
|
|
2749
2902
|
*
|
|
2750
|
-
*
|
|
2903
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2751
2904
|
* registry-package:r
|
|
2752
2905
|
*
|
|
2753
2906
|
* /{slug}/-/packages
|
|
@@ -2757,9 +2910,9 @@ export interface Client {
|
|
|
2757
2910
|
type: {
|
|
2758
2911
|
quota: {
|
|
2759
2912
|
/***
|
|
2760
|
-
* Get quota of specific registry
|
|
2913
|
+
* 查询制品配额。 Get quota of specific registry.
|
|
2761
2914
|
*
|
|
2762
|
-
*
|
|
2915
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2763
2916
|
* registry-package:r
|
|
2764
2917
|
*
|
|
2765
2918
|
* /{slug}/-/packages/{type}/-/quota
|
|
@@ -2769,9 +2922,9 @@ export interface Client {
|
|
|
2769
2922
|
|
|
2770
2923
|
quotas: {
|
|
2771
2924
|
/***
|
|
2772
|
-
* Get quotas of packages under one registry
|
|
2925
|
+
* 查询全部制品配额。 Get quotas of packages under one registry.
|
|
2773
2926
|
*
|
|
2774
|
-
*
|
|
2927
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2775
2928
|
* registry-package:r
|
|
2776
2929
|
*
|
|
2777
2930
|
* /{slug}/-/packages/{type}/-/quotas
|
|
@@ -2780,9 +2933,9 @@ export interface Client {
|
|
|
2780
2933
|
|
|
2781
2934
|
download: {
|
|
2782
2935
|
/***
|
|
2783
|
-
* Download registry quota details
|
|
2936
|
+
* 下载制品配额信息。 Download registry quota details.
|
|
2784
2937
|
*
|
|
2785
|
-
*
|
|
2938
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2786
2939
|
* registry-package:r
|
|
2787
2940
|
*
|
|
2788
2941
|
* /{slug}/-/packages/{type}/-/quotas/download
|
|
@@ -2793,9 +2946,9 @@ export interface Client {
|
|
|
2793
2946
|
};
|
|
2794
2947
|
|
|
2795
2948
|
/***
|
|
2796
|
-
* Get the
|
|
2949
|
+
* 获取某一制品的详细信息。 Get the package detail.
|
|
2797
2950
|
*
|
|
2798
|
-
*
|
|
2951
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2799
2952
|
* registry-package:r
|
|
2800
2953
|
*
|
|
2801
2954
|
* /{slug}/-/packages/{type}/{name}
|
|
@@ -2805,9 +2958,9 @@ export interface Client {
|
|
|
2805
2958
|
name: {
|
|
2806
2959
|
tag: {
|
|
2807
2960
|
/***
|
|
2808
|
-
* Delete the specific tag under specific package
|
|
2961
|
+
* 删除制品标签。 Delete the specific tag under specific package
|
|
2809
2962
|
*
|
|
2810
|
-
*
|
|
2963
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2811
2964
|
* registry-package-delete:rw
|
|
2812
2965
|
*
|
|
2813
2966
|
* /{slug}/-/packages/{type}/{name}/-/tag/{tag}
|
|
@@ -2815,9 +2968,9 @@ export interface Client {
|
|
|
2815
2968
|
delete: Artifactory_DeletePackageTag;
|
|
2816
2969
|
|
|
2817
2970
|
/***
|
|
2818
|
-
* Get the specific tag under specific package
|
|
2971
|
+
* 获取制品标签详情。 Get the specific tag under specific package.
|
|
2819
2972
|
*
|
|
2820
|
-
*
|
|
2973
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2821
2974
|
* registry-package:r
|
|
2822
2975
|
*
|
|
2823
2976
|
* /{slug}/-/packages/{type}/{name}/-/tag/{tag}
|
|
@@ -2829,9 +2982,9 @@ export interface Client {
|
|
|
2829
2982
|
pkgname: {
|
|
2830
2983
|
tags: {
|
|
2831
2984
|
/***
|
|
2832
|
-
* List all tags under specific package
|
|
2985
|
+
* 查询制品标签列表。 List all tags under specific package.
|
|
2833
2986
|
*
|
|
2834
|
-
*
|
|
2987
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2835
2988
|
* registry-package:r
|
|
2836
2989
|
*
|
|
2837
2990
|
* /{slug}/-/packages/{type}/{pkgname}/-/tags
|
|
@@ -2890,6 +3043,7 @@ export interface Client {
|
|
|
2890
3043
|
GetImgs: Assets_GetImgs;
|
|
2891
3044
|
PutImgs: Assets_PutImgs;
|
|
2892
3045
|
GetReleasesAsset: Assets_GetReleasesAsset;
|
|
3046
|
+
GetLatestReleasesAsset: Assets_GetLatestReleasesAsset;
|
|
2893
3047
|
UploadFiles: Assets_UploadFiles;
|
|
2894
3048
|
UploadImgs: Assets_UploadImgs;
|
|
2895
3049
|
UploadReleases: Assets_UploadReleases;
|
|
@@ -2915,11 +3069,15 @@ export interface Client {
|
|
|
2915
3069
|
ListInheritMembersOfGroup: Collaborators_ListInheritMembersOfGroup;
|
|
2916
3070
|
ListMembersOfGroup: Collaborators_ListMembersOfGroup;
|
|
2917
3071
|
DeleteMembersOfGroup: Collaborators_DeleteMembersOfGroup;
|
|
3072
|
+
AddMembersOfGroup: Collaborators_AddMembersOfGroup;
|
|
2918
3073
|
UpdateMembersOfGroup: Collaborators_UpdateMembersOfGroup;
|
|
3074
|
+
AddMembersOfMission: Collaborators_AddMembersOfMission;
|
|
3075
|
+
AddMembersOfRegistry: Collaborators_AddMembersOfRegistry;
|
|
2919
3076
|
ListInheritMembersOfRepo: Collaborators_ListInheritMembersOfRepo;
|
|
2920
3077
|
ListAllMembers: Collaborators_ListAllMembers;
|
|
2921
3078
|
ListMembersOfRepo: Collaborators_ListMembersOfRepo;
|
|
2922
3079
|
DeleteMembersOfRepo: Collaborators_DeleteMembersOfRepo;
|
|
3080
|
+
AddMembersOfRepo: Collaborators_AddMembersOfRepo;
|
|
2923
3081
|
UpdateMembersOfRepo: Collaborators_UpdateMembersOfRepo;
|
|
2924
3082
|
ListOutsideCollaborators: Collaborators_ListOutsideCollaborators;
|
|
2925
3083
|
DeleteOutsideCollaborators: Collaborators_DeleteOutsideCollaborators;
|
|
@@ -2963,6 +3121,8 @@ export interface Client {
|
|
|
2963
3121
|
};
|
|
2964
3122
|
|
|
2965
3123
|
Git: {
|
|
3124
|
+
GetArchiveCommitChangedFiles: Git_GetArchiveCommitChangedFiles;
|
|
3125
|
+
GetArchiveCompareChangedFiles: Git_GetArchiveCompareChangedFiles;
|
|
2966
3126
|
CreateBlob: Git_CreateBlob;
|
|
2967
3127
|
ListBranches: Git_ListBranches;
|
|
2968
3128
|
CreateBranch: Git_CreateBranch;
|
|
@@ -2981,6 +3141,7 @@ export interface Client {
|
|
|
2981
3141
|
GetCommit: Git_GetCommit;
|
|
2982
3142
|
GetCompareCommits: Git_GetCompareCommits;
|
|
2983
3143
|
GetContent: Git_GetContent;
|
|
3144
|
+
ListDeferredCommits: Git_ListDeferredCommits;
|
|
2984
3145
|
GetHead: Git_GetHead;
|
|
2985
3146
|
DeleteTagAnnotation: Git_DeleteTagAnnotation;
|
|
2986
3147
|
GetTagAnnotations: Git_GetTagAnnotations;
|
|
@@ -3034,6 +3195,7 @@ export interface Client {
|
|
|
3034
3195
|
Releases: {
|
|
3035
3196
|
ListReleases: Releases_ListReleases;
|
|
3036
3197
|
PostRelease: Releases_PostRelease;
|
|
3198
|
+
GetLatestRelease: Releases_GetLatestRelease;
|
|
3037
3199
|
GetReleaseByTag: Releases_GetReleaseByTag;
|
|
3038
3200
|
DeleteRelease: Releases_DeleteRelease;
|
|
3039
3201
|
GetReleaseByID: Releases_GetReleaseByID;
|