node-cnb 1.7.1 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/paths.json +511 -108
- package/package.json +1 -1
- package/pathMethodMap.json +4 -6
- package/src/client.d.ts +1140 -727
- package/src/types.d.ts +106 -12
package/src/client.d.ts
CHANGED
|
@@ -58,6 +58,8 @@ import {
|
|
|
58
58
|
ApiPostIssueCommentForm,
|
|
59
59
|
ApiPatchIssueCommentForm,
|
|
60
60
|
ApiLabel,
|
|
61
|
+
ApiPostIssueLabelsForm,
|
|
62
|
+
ApiPutIssueLabelsForm,
|
|
61
63
|
ApiPostLabelForm,
|
|
62
64
|
ApiPatchLabelForm,
|
|
63
65
|
DtoOutsideCollaboratorInRepo,
|
|
@@ -91,6 +93,957 @@ import {
|
|
|
91
93
|
DtoTagDetail,
|
|
92
94
|
DtoTag,
|
|
93
95
|
} from "./types";
|
|
96
|
+
type Organizations_CreateOrganization = (params: {
|
|
97
|
+
request: DtoCreateGroupReq;
|
|
98
|
+
}) => Promise<any>;
|
|
99
|
+
|
|
100
|
+
type Users_GetUserInfo = () => Promise<DtoUsersResultForSelf>;
|
|
101
|
+
|
|
102
|
+
type Users_UpdateUserInfo = (params: {
|
|
103
|
+
request: HttpUpdateUserInfoPayload;
|
|
104
|
+
}) => Promise<any>;
|
|
105
|
+
|
|
106
|
+
type Users_AutoCompleteSource = (params?: {
|
|
107
|
+
source_type?: "Group" | "Repo";
|
|
108
|
+
page?: number;
|
|
109
|
+
page_size?: number;
|
|
110
|
+
search?: string;
|
|
111
|
+
access?: "Reporter" | "Developer" | "Master" | "Owner";
|
|
112
|
+
}) => Promise<string[]>;
|
|
113
|
+
|
|
114
|
+
type Organizations_ListTopGroups = (params?: {
|
|
115
|
+
page?: number;
|
|
116
|
+
page_size?: number;
|
|
117
|
+
search?: string;
|
|
118
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
119
|
+
}) => Promise<DtoOrganizationAccess[]>;
|
|
120
|
+
|
|
121
|
+
type Organizations_ListGroups = (params: {
|
|
122
|
+
group: string;
|
|
123
|
+
page?: number;
|
|
124
|
+
page_size?: number;
|
|
125
|
+
access?: number;
|
|
126
|
+
}) => Promise<DtoOrganizationAccess[]>;
|
|
127
|
+
|
|
128
|
+
type Repositories_GetRepos = (params?: {
|
|
129
|
+
page?: number;
|
|
130
|
+
page_size?: number;
|
|
131
|
+
search?: string;
|
|
132
|
+
filter_type?: "private" | "public" | "encrypted";
|
|
133
|
+
role?: "Reporter" | "Developer" | "Master" | "Owner";
|
|
134
|
+
order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path";
|
|
135
|
+
desc?: boolean;
|
|
136
|
+
}) => Promise<DtoRepos4User[]>;
|
|
137
|
+
|
|
138
|
+
type Repositories_GetUserAllStaredRepos = (params?: {
|
|
139
|
+
page?: number;
|
|
140
|
+
page_size?: number;
|
|
141
|
+
search?: string;
|
|
142
|
+
desc?: boolean;
|
|
143
|
+
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
144
|
+
}) => Promise<DtoRepos4UserBase[]>;
|
|
145
|
+
|
|
146
|
+
type Users_GetUserInfoByName = (params: {
|
|
147
|
+
username: string;
|
|
148
|
+
}) => Promise<DtoUsersResult>;
|
|
149
|
+
|
|
150
|
+
type Assets_GetUserAvatar = (params: {
|
|
151
|
+
username: string;
|
|
152
|
+
size: string;
|
|
153
|
+
}) => Promise<any>;
|
|
154
|
+
|
|
155
|
+
type Followers_GetFollowersByUserID = (params: {
|
|
156
|
+
username: string;
|
|
157
|
+
page?: number;
|
|
158
|
+
page_size?: number;
|
|
159
|
+
}) => Promise<DtoUserFollowResult[]>;
|
|
160
|
+
|
|
161
|
+
type Followers_GetFollowingByUserID = (params: {
|
|
162
|
+
username: string;
|
|
163
|
+
page?: number;
|
|
164
|
+
page_size?: number;
|
|
165
|
+
}) => Promise<DtoUserFollowResult[]>;
|
|
166
|
+
|
|
167
|
+
type Organizations_GetGroupsByUserID = (params: {
|
|
168
|
+
username: string;
|
|
169
|
+
search?: string;
|
|
170
|
+
page?: number;
|
|
171
|
+
page_size?: number;
|
|
172
|
+
desc?: boolean;
|
|
173
|
+
order_by?: "join_time" | "created_at";
|
|
174
|
+
}) => Promise<DtoOrganizationUnion>;
|
|
175
|
+
|
|
176
|
+
type Repositories_GetPinnedRepoByID = (params: {
|
|
177
|
+
username: string;
|
|
178
|
+
}) => Promise<DtoRepos4User[]>;
|
|
179
|
+
|
|
180
|
+
type Repositories_GetReposByUserName = (params: {
|
|
181
|
+
username: string;
|
|
182
|
+
search?: string;
|
|
183
|
+
role?: "Reporter" | "Developer" | "Master" | "Owner";
|
|
184
|
+
page?: number;
|
|
185
|
+
page_size?: number;
|
|
186
|
+
desc?: boolean;
|
|
187
|
+
order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path";
|
|
188
|
+
}) => Promise<DtoRepos4User[]>;
|
|
189
|
+
|
|
190
|
+
type Starring_GetUserStaredRepos = (params: {
|
|
191
|
+
username: string;
|
|
192
|
+
search?: string;
|
|
193
|
+
page?: number;
|
|
194
|
+
page_size?: number;
|
|
195
|
+
desc?: boolean;
|
|
196
|
+
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
197
|
+
}) => Promise<DtoRepos4User[]>;
|
|
198
|
+
|
|
199
|
+
type Workspace_DeleteWorkspace = (params: {
|
|
200
|
+
request: DtoWorkspaceDeleteReq;
|
|
201
|
+
}) => Promise<DtoWorkspaceDeleteResult>;
|
|
202
|
+
|
|
203
|
+
type Workspace_ListWorkspaces = (params?: {
|
|
204
|
+
branch?: string;
|
|
205
|
+
end?: string;
|
|
206
|
+
page?: number;
|
|
207
|
+
pageSize?: number;
|
|
208
|
+
slug?: string;
|
|
209
|
+
start?: string;
|
|
210
|
+
status?: string;
|
|
211
|
+
}) => Promise<DtoWorkspaceListResult>;
|
|
212
|
+
|
|
213
|
+
type Organizations_DeleteOrganization = (params: {
|
|
214
|
+
group: string;
|
|
215
|
+
"x-cnb-identity-ticket"?: string;
|
|
216
|
+
}) => Promise<any>;
|
|
217
|
+
|
|
218
|
+
type Organizations_GetGroup = (params: {
|
|
219
|
+
group: string;
|
|
220
|
+
}) => Promise<DtoOrganizationAccess>;
|
|
221
|
+
|
|
222
|
+
type Organizations_UpdateOrganization = (params: {
|
|
223
|
+
group: string;
|
|
224
|
+
request: DtoUpdateGroupReq;
|
|
225
|
+
}) => Promise<any>;
|
|
226
|
+
|
|
227
|
+
type Organizations_UpdateGroupAvatar = (params: {
|
|
228
|
+
group: string;
|
|
229
|
+
request: DtoUpdateGroupAvatarReq;
|
|
230
|
+
}) => Promise<any>;
|
|
231
|
+
|
|
232
|
+
type Collaborators_ListInheritMembersOfGroup = (params: {
|
|
233
|
+
group: string;
|
|
234
|
+
search?: string;
|
|
235
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
236
|
+
page?: number;
|
|
237
|
+
page_size?: number;
|
|
238
|
+
}) => Promise<DtoListInheritMembers[]>;
|
|
239
|
+
|
|
240
|
+
type Assets_PutLogos = (params: {
|
|
241
|
+
group: string;
|
|
242
|
+
token: string;
|
|
243
|
+
}) => Promise<any>;
|
|
244
|
+
|
|
245
|
+
type Assets_GetLogos = (params: {
|
|
246
|
+
group: string;
|
|
247
|
+
size?: string;
|
|
248
|
+
}) => Promise<any>;
|
|
249
|
+
|
|
250
|
+
type Collaborators_ListMembersOfGroup = (params: {
|
|
251
|
+
group: string;
|
|
252
|
+
page?: number;
|
|
253
|
+
page_size?: number;
|
|
254
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
255
|
+
search?: string;
|
|
256
|
+
}) => Promise<DtoUsersWithAccessLevelInSlug[]>;
|
|
257
|
+
|
|
258
|
+
type Contributors_GetMemberAccessLevelOfGroup = (params: {
|
|
259
|
+
group: string;
|
|
260
|
+
include_inherit?: boolean;
|
|
261
|
+
}) => Promise<DtoMemberAccessLevelInSlugUnion>;
|
|
262
|
+
|
|
263
|
+
type Contributors_ListMemberAccessLevelOfGroup = (params: {
|
|
264
|
+
group: string;
|
|
265
|
+
username: string;
|
|
266
|
+
}) => Promise<DtoMemberAccessLevel[]>;
|
|
267
|
+
|
|
268
|
+
type Collaborators_DeleteMembersOfGroup = (params: {
|
|
269
|
+
group: string;
|
|
270
|
+
username: string;
|
|
271
|
+
}) => Promise<any>;
|
|
272
|
+
|
|
273
|
+
type Collaborators_UpdateMembersOfGroup = (params: {
|
|
274
|
+
group: string;
|
|
275
|
+
username: string;
|
|
276
|
+
request: DtoUpdateMembersRequest;
|
|
277
|
+
}) => Promise<any>;
|
|
278
|
+
|
|
279
|
+
type Repositories_GetPinnedRepoByGroup = (params: {
|
|
280
|
+
group: string;
|
|
281
|
+
}) => Promise<DtoRepos4UserBase[]>;
|
|
282
|
+
|
|
283
|
+
type Repositories_SetPinnedRepoByGroup = (params: {
|
|
284
|
+
group: string;
|
|
285
|
+
request: string[];
|
|
286
|
+
}) => Promise<DtoRepos4UserBase[]>;
|
|
287
|
+
|
|
288
|
+
type Repositories_GetGroupSubRepos = (params: {
|
|
289
|
+
group: string;
|
|
290
|
+
page?: number;
|
|
291
|
+
page_size?: number;
|
|
292
|
+
filter_type?: "private" | "public" | "encrypted";
|
|
293
|
+
order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path";
|
|
294
|
+
desc?: boolean;
|
|
295
|
+
descendant?: "all" | "sub" | "grand";
|
|
296
|
+
search?: string;
|
|
297
|
+
}) => Promise<DtoRepos4UserBase[]>;
|
|
298
|
+
|
|
299
|
+
type Repositories_CreateRepo = (params: {
|
|
300
|
+
group: string;
|
|
301
|
+
request: DtoCreateRepoReq;
|
|
302
|
+
}) => Promise<any>;
|
|
303
|
+
|
|
304
|
+
type Organizations_GetGroupSetting = (params: {
|
|
305
|
+
group: string;
|
|
306
|
+
}) => Promise<DtoOrganizationSettingWithParent>;
|
|
307
|
+
|
|
308
|
+
type Organizations_UpdateGroupSetting = (params: {
|
|
309
|
+
group: string;
|
|
310
|
+
request: DtoGroupSettingReq;
|
|
311
|
+
}) => Promise<any>;
|
|
312
|
+
|
|
313
|
+
type Organizations_ListSubgroups = (params: {
|
|
314
|
+
group: string;
|
|
315
|
+
search?: string;
|
|
316
|
+
page: number;
|
|
317
|
+
page_size: number;
|
|
318
|
+
}) => Promise<DtoOrganizationUnion[]>;
|
|
319
|
+
|
|
320
|
+
type Assets_UploadLogos = (params: {
|
|
321
|
+
group: string;
|
|
322
|
+
request: DtoUploadRequestParams;
|
|
323
|
+
}) => Promise<DtoUploadAssetsResponse>;
|
|
324
|
+
|
|
325
|
+
type Missions_DeleteMission = (params: {
|
|
326
|
+
mission: string;
|
|
327
|
+
"x-cnb-identity-ticket"?: string;
|
|
328
|
+
}) => Promise<any>;
|
|
329
|
+
|
|
330
|
+
type Artifactory_DeleteRegistry = (params: {
|
|
331
|
+
registry: string;
|
|
332
|
+
"x-cnb-identity-ticket"?: string;
|
|
333
|
+
}) => Promise<any>;
|
|
334
|
+
|
|
335
|
+
type Repositories_DeleteRepo = (params: {
|
|
336
|
+
repo: string;
|
|
337
|
+
"x-cnb-identity-ticket"?: string;
|
|
338
|
+
}) => Promise<any>;
|
|
339
|
+
|
|
340
|
+
type Repositories_GetRepo = (params: {
|
|
341
|
+
repo: string;
|
|
342
|
+
}) => Promise<DtoRepos4User>;
|
|
343
|
+
|
|
344
|
+
type Repositories_UpdateRepo = (params: {
|
|
345
|
+
repo: string;
|
|
346
|
+
request: DtoRepoPatch;
|
|
347
|
+
}) => Promise<any>;
|
|
348
|
+
|
|
349
|
+
type Build_GetBuildLogs = (params: {
|
|
350
|
+
repo: string;
|
|
351
|
+
createTime?: string;
|
|
352
|
+
endTime?: string;
|
|
353
|
+
event?: string;
|
|
354
|
+
page?: number;
|
|
355
|
+
pagesize?: number;
|
|
356
|
+
sha?: string;
|
|
357
|
+
sn?: string;
|
|
358
|
+
sourceRef?: string;
|
|
359
|
+
status?: string;
|
|
360
|
+
targetRef?: string;
|
|
361
|
+
userId?: string;
|
|
362
|
+
userName?: string;
|
|
363
|
+
}) => Promise<DtoBuildLogsResult>;
|
|
364
|
+
|
|
365
|
+
type Build_StartBuild = (params: {
|
|
366
|
+
repo: string;
|
|
367
|
+
request: DtoStartBuildReq;
|
|
368
|
+
}) => Promise<DtoBuildResult[]>;
|
|
369
|
+
|
|
370
|
+
type Build_GetBuildStatus = (params: {
|
|
371
|
+
repo: string;
|
|
372
|
+
sn: string;
|
|
373
|
+
}) => Promise<DtoBuildStatusResult>;
|
|
374
|
+
|
|
375
|
+
type Build_StopBuild = (params: {
|
|
376
|
+
repo: string;
|
|
377
|
+
sn: string;
|
|
378
|
+
}) => Promise<DtoBuildResult[]>;
|
|
379
|
+
|
|
380
|
+
type Assets_GetCommitAssets = (params: {
|
|
381
|
+
repo: string;
|
|
382
|
+
fileName: string;
|
|
383
|
+
}) => Promise<any>;
|
|
384
|
+
|
|
385
|
+
type RepoContributor_GetRepoContributorTrend = (params: {
|
|
386
|
+
repo: string;
|
|
387
|
+
limit?: number;
|
|
388
|
+
exclude_external_users?: boolean;
|
|
389
|
+
}) => Promise<WebRepoContribTrend>;
|
|
390
|
+
|
|
391
|
+
type Assets_GetFiles = (params: {
|
|
392
|
+
repo: string;
|
|
393
|
+
userIdKey: string;
|
|
394
|
+
randomUUID: string;
|
|
395
|
+
fileName: string;
|
|
396
|
+
}) => Promise<any>;
|
|
397
|
+
|
|
398
|
+
type Assets_PutFiles = (params: {
|
|
399
|
+
repo: string;
|
|
400
|
+
userIdKey: string;
|
|
401
|
+
randomUUID: string;
|
|
402
|
+
fileName: string;
|
|
403
|
+
token: string;
|
|
404
|
+
}) => Promise<any>;
|
|
405
|
+
|
|
406
|
+
type Repositories_ListForksRepos = (params: {
|
|
407
|
+
repo: string;
|
|
408
|
+
page: number;
|
|
409
|
+
page_size: number;
|
|
410
|
+
}) => Promise<DtoForks[]>;
|
|
411
|
+
|
|
412
|
+
type Repositories_CreateAFork = (params: {
|
|
413
|
+
repo: string;
|
|
414
|
+
request: DtoForkReq;
|
|
415
|
+
}) => Promise<any>;
|
|
416
|
+
|
|
417
|
+
type Git_CreateBlob = (params: {
|
|
418
|
+
repo: string;
|
|
419
|
+
post_blob_form: ApiPostBlobForm;
|
|
420
|
+
}) => Promise<any>;
|
|
421
|
+
|
|
422
|
+
type Git_ListBranches = (params: {
|
|
423
|
+
repo: string;
|
|
424
|
+
page?: number;
|
|
425
|
+
page_size?: number;
|
|
426
|
+
}) => Promise<ApiBranch[]>;
|
|
427
|
+
|
|
428
|
+
type Git_CreateBranch = (params: {
|
|
429
|
+
repo: string;
|
|
430
|
+
create_branch_form: OpenapiCreateBranchForm;
|
|
431
|
+
}) => Promise<any>;
|
|
432
|
+
|
|
433
|
+
type Git_DeleteBranch = (params: {
|
|
434
|
+
repo: string;
|
|
435
|
+
branch: string;
|
|
436
|
+
}) => Promise<any>;
|
|
437
|
+
|
|
438
|
+
type Git_GetBranch = (params: {
|
|
439
|
+
repo: string;
|
|
440
|
+
branch?: string;
|
|
441
|
+
}) => Promise<ApiBranchDetail>;
|
|
442
|
+
|
|
443
|
+
type Git_GetCommitAnnotationsInBatch = (params: {
|
|
444
|
+
repo: string;
|
|
445
|
+
get_commit_annotations_form: WebGetCommitAnnotationsInBatchForm;
|
|
446
|
+
}) => Promise<WebCommitAnnotationInBatch[]>;
|
|
447
|
+
|
|
448
|
+
type Git_GetCommitAnnotations = (params: {
|
|
449
|
+
repo: string;
|
|
450
|
+
sha: string;
|
|
451
|
+
}) => Promise<WebCommitAnnotation[]>;
|
|
452
|
+
|
|
453
|
+
type Git_PutCommitAnnotations = (params: {
|
|
454
|
+
repo: string;
|
|
455
|
+
sha: string;
|
|
456
|
+
put_commit_annotations_form: OpenapiPutCommitAnnotationsForm;
|
|
457
|
+
}) => Promise<any>;
|
|
458
|
+
|
|
459
|
+
type Git_DeleteCommitAnnotation = (params: {
|
|
460
|
+
repo: string;
|
|
461
|
+
sha: string;
|
|
462
|
+
key: string;
|
|
463
|
+
}) => Promise<any>;
|
|
464
|
+
|
|
465
|
+
type Git_GetCommitAssetsBySha = (params: {
|
|
466
|
+
repo: string;
|
|
467
|
+
sha1: string;
|
|
468
|
+
}) => Promise<ApiCommitAsset[]>;
|
|
469
|
+
|
|
470
|
+
type Git_PostCommitAssetUploadConfirmation = (params: {
|
|
471
|
+
repo: string;
|
|
472
|
+
sha1: number;
|
|
473
|
+
token: string;
|
|
474
|
+
asset_path: string;
|
|
475
|
+
}) => Promise<any>;
|
|
476
|
+
|
|
477
|
+
type Git_PostCommitAssetUploadURL = (params: {
|
|
478
|
+
repo: string;
|
|
479
|
+
sha1: number;
|
|
480
|
+
create_commit_asset_upload_url_form: OpenapiPostCommitAssetUploadUrlForm;
|
|
481
|
+
}) => Promise<any>;
|
|
482
|
+
|
|
483
|
+
type Git_DeleteCommitAsset = (params: {
|
|
484
|
+
repo: string;
|
|
485
|
+
sha1: string;
|
|
486
|
+
asset_id: number;
|
|
487
|
+
}) => Promise<any>;
|
|
488
|
+
|
|
489
|
+
type Git_GetCommitStatuses = (params: {
|
|
490
|
+
repo: string;
|
|
491
|
+
commitish: string;
|
|
492
|
+
}) => Promise<ApiCommitStatus[]>;
|
|
493
|
+
|
|
494
|
+
type Git_ListCommits = (params: {
|
|
495
|
+
repo: string;
|
|
496
|
+
sha?: string;
|
|
497
|
+
author?: string;
|
|
498
|
+
committer?: string;
|
|
499
|
+
since?: string;
|
|
500
|
+
until?: string;
|
|
501
|
+
page?: number;
|
|
502
|
+
page_size?: number;
|
|
503
|
+
}) => Promise<ApiCommit[]>;
|
|
504
|
+
|
|
505
|
+
type Git_GetCommit = (params: {
|
|
506
|
+
repo: string;
|
|
507
|
+
ref: string;
|
|
508
|
+
}) => Promise<ApiCommit>;
|
|
509
|
+
|
|
510
|
+
type Git_GetCompareCommits = (params: {
|
|
511
|
+
repo: string;
|
|
512
|
+
base_head: string;
|
|
513
|
+
}) => Promise<ApiCompareResponse>;
|
|
514
|
+
|
|
515
|
+
type Git_GetContent = (params: {
|
|
516
|
+
repo: string;
|
|
517
|
+
file_path: string;
|
|
518
|
+
ref?: string;
|
|
519
|
+
}) => Promise<ApiContent>;
|
|
520
|
+
|
|
521
|
+
type Git_GetHead = (params: { repo: string }) => Promise<OpenapiHeadRef>;
|
|
522
|
+
|
|
523
|
+
type Git_DeleteTagAnnotation = (params: {
|
|
524
|
+
repo: string;
|
|
525
|
+
tag_with_key: string;
|
|
526
|
+
}) => Promise<any>;
|
|
527
|
+
|
|
528
|
+
type Git_GetTagAnnotations = (params: {
|
|
529
|
+
repo: string;
|
|
530
|
+
tag: string;
|
|
531
|
+
}) => Promise<WebTagAnnotation[]>;
|
|
532
|
+
|
|
533
|
+
type Git_PutTagAnnotations = (params: {
|
|
534
|
+
repo: string;
|
|
535
|
+
tag: string;
|
|
536
|
+
put_tag_annotations_form: OpenapiPutTagAnnotationsForm;
|
|
537
|
+
}) => Promise<any>;
|
|
538
|
+
|
|
539
|
+
type Git_ListTags = (params: {
|
|
540
|
+
repo: string;
|
|
541
|
+
page?: number;
|
|
542
|
+
page_size?: number;
|
|
543
|
+
}) => Promise<ApiTag[]>;
|
|
544
|
+
|
|
545
|
+
type Git_CreateTag = (params: {
|
|
546
|
+
repo: string;
|
|
547
|
+
post_tag_form: ApiPostTagFrom;
|
|
548
|
+
}) => Promise<any>;
|
|
549
|
+
|
|
550
|
+
type Git_DeleteTag = (params: { repo: string; tag: string }) => Promise<any>;
|
|
551
|
+
|
|
552
|
+
type Git_GetTag = (params: { repo: string; tag: string }) => Promise<ApiTag>;
|
|
553
|
+
|
|
554
|
+
type Assets_GetImgs = (params: {
|
|
555
|
+
repo: string;
|
|
556
|
+
userIdKey: string;
|
|
557
|
+
fileName: string;
|
|
558
|
+
}) => Promise<any>;
|
|
559
|
+
|
|
560
|
+
type Assets_PutImgs = (params: {
|
|
561
|
+
repo: string;
|
|
562
|
+
userIdKey: string;
|
|
563
|
+
fileName: string;
|
|
564
|
+
token: string;
|
|
565
|
+
}) => Promise<any>;
|
|
566
|
+
|
|
567
|
+
type Collaborators_ListInheritMembersOfRepo = (params: {
|
|
568
|
+
repo: string;
|
|
569
|
+
search?: string;
|
|
570
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
571
|
+
page?: number;
|
|
572
|
+
page_size?: number;
|
|
573
|
+
}) => Promise<DtoListInheritMembers[]>;
|
|
574
|
+
|
|
575
|
+
type Issues_ListIssues = (params: {
|
|
576
|
+
repo: string;
|
|
577
|
+
page?: number;
|
|
578
|
+
page_size?: number;
|
|
579
|
+
state?: string;
|
|
580
|
+
keyword?: string;
|
|
581
|
+
priority?: string;
|
|
582
|
+
labels?: string;
|
|
583
|
+
authors?: string;
|
|
584
|
+
assignees?: string;
|
|
585
|
+
updated_time_begin?: string;
|
|
586
|
+
updated_time_end?: string;
|
|
587
|
+
order_by?: string;
|
|
588
|
+
}) => Promise<ApiIssue[]>;
|
|
589
|
+
|
|
590
|
+
type Issues_CreateIssue = (params: {
|
|
591
|
+
repo: string;
|
|
592
|
+
post_issue_form: ApiPostIssueForm;
|
|
593
|
+
}) => Promise<any>;
|
|
594
|
+
|
|
595
|
+
type Issues_GetIssue = (params: {
|
|
596
|
+
repo: string;
|
|
597
|
+
number: number;
|
|
598
|
+
}) => Promise<ApiIssueDetail>;
|
|
599
|
+
|
|
600
|
+
type Issues_UpdateIssue = (params: {
|
|
601
|
+
repo: string;
|
|
602
|
+
number: number;
|
|
603
|
+
patch_issue_form: ApiPatchIssueForm;
|
|
604
|
+
}) => Promise<ApiIssueDetail>;
|
|
605
|
+
|
|
606
|
+
type Issues_ListIssueComments = (params: {
|
|
607
|
+
repo: string;
|
|
608
|
+
number: number;
|
|
609
|
+
page?: number;
|
|
610
|
+
page_size?: number;
|
|
611
|
+
}) => Promise<ApiIssueComment[]>;
|
|
612
|
+
|
|
613
|
+
type Issues_PostIssueComment = (params: {
|
|
614
|
+
repo: string;
|
|
615
|
+
number: number;
|
|
616
|
+
post_issue_comment_form: ApiPostIssueCommentForm;
|
|
617
|
+
}) => Promise<any>;
|
|
618
|
+
|
|
619
|
+
type Issues_GetIssueComment = (params: {
|
|
620
|
+
repo: string;
|
|
621
|
+
number: number;
|
|
622
|
+
comment_id: number;
|
|
623
|
+
}) => Promise<ApiIssueComment>;
|
|
624
|
+
|
|
625
|
+
type Issues_PatchIssueComment = (params: {
|
|
626
|
+
repo: string;
|
|
627
|
+
number: number;
|
|
628
|
+
comment_id: number;
|
|
629
|
+
patch_issue_comment_form: ApiPatchIssueCommentForm;
|
|
630
|
+
}) => Promise<ApiIssueComment>;
|
|
631
|
+
|
|
632
|
+
type Issues_DeleteIssueLabels = (params: {
|
|
633
|
+
repo: string;
|
|
634
|
+
number: number;
|
|
635
|
+
}) => Promise<any>;
|
|
636
|
+
|
|
637
|
+
type Issues_ListIssueLabels = (params: {
|
|
638
|
+
repo: string;
|
|
639
|
+
number: number;
|
|
640
|
+
page?: number;
|
|
641
|
+
page_size?: number;
|
|
642
|
+
}) => Promise<ApiLabel[]>;
|
|
643
|
+
|
|
644
|
+
type Issues_PostIssueLabels = (params: {
|
|
645
|
+
repo: string;
|
|
646
|
+
number: number;
|
|
647
|
+
post_issue_labels_form: ApiPostIssueLabelsForm;
|
|
648
|
+
}) => Promise<ApiLabel>;
|
|
649
|
+
|
|
650
|
+
type Issues_PutIssueLabels = (params: {
|
|
651
|
+
repo: string;
|
|
652
|
+
number: number;
|
|
653
|
+
put_issue_labels_form: ApiPutIssueLabelsForm;
|
|
654
|
+
}) => Promise<ApiLabel>;
|
|
655
|
+
|
|
656
|
+
type Issues_DeleteIssueLabel = (params: {
|
|
657
|
+
repo: string;
|
|
658
|
+
number: number;
|
|
659
|
+
name: string;
|
|
660
|
+
}) => Promise<ApiLabel>;
|
|
661
|
+
|
|
662
|
+
type RepoLabels_ListLabels = (params: {
|
|
663
|
+
repo: string;
|
|
664
|
+
page?: number;
|
|
665
|
+
page_size?: number;
|
|
666
|
+
keyword?: string;
|
|
667
|
+
}) => Promise<ApiLabel[]>;
|
|
668
|
+
|
|
669
|
+
type RepoLabels_PostLabel = (params: {
|
|
670
|
+
repo: string;
|
|
671
|
+
post_label_form: ApiPostLabelForm;
|
|
672
|
+
}) => Promise<any>;
|
|
673
|
+
|
|
674
|
+
type RepoLabels_DeleteLabel = (params: {
|
|
675
|
+
repo: string;
|
|
676
|
+
name: string;
|
|
677
|
+
}) => Promise<any>;
|
|
678
|
+
|
|
679
|
+
type RepoLabels_PatchLabel = (params: {
|
|
680
|
+
repo: string;
|
|
681
|
+
name: string;
|
|
682
|
+
patch_label_form: ApiPatchLabelForm;
|
|
683
|
+
}) => Promise<ApiLabel>;
|
|
684
|
+
|
|
685
|
+
type Collaborators_ListAllMembers = (params: {
|
|
686
|
+
repo: string;
|
|
687
|
+
page?: number;
|
|
688
|
+
page_size?: number;
|
|
689
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
690
|
+
search?: string;
|
|
691
|
+
names?: string;
|
|
692
|
+
order_by?: "created_at" | "stars" | "follower";
|
|
693
|
+
desc?: boolean;
|
|
694
|
+
}) => Promise<DtoUsersWithAccessLevelInSlug[]>;
|
|
695
|
+
|
|
696
|
+
type Collaborators_ListMembersOfRepo = (params: {
|
|
697
|
+
repo: string;
|
|
698
|
+
page?: number;
|
|
699
|
+
page_size?: number;
|
|
700
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
701
|
+
search?: string;
|
|
702
|
+
}) => Promise<DtoUsersWithAccessLevelInSlug[]>;
|
|
703
|
+
|
|
704
|
+
type Contributors_GetMemberAccessLevelOfRepo = (params: {
|
|
705
|
+
repo: string;
|
|
706
|
+
include_inherit?: boolean;
|
|
707
|
+
}) => Promise<DtoMemberAccessLevelInSlugUnion>;
|
|
708
|
+
|
|
709
|
+
type Contributors_ListMemberAccessLevelOfRepo = (params: {
|
|
710
|
+
repo: string;
|
|
711
|
+
username: string;
|
|
712
|
+
}) => Promise<DtoMemberAccessLevel[]>;
|
|
713
|
+
|
|
714
|
+
type Collaborators_DeleteMembersOfRepo = (params: {
|
|
715
|
+
repo: string;
|
|
716
|
+
username: string;
|
|
717
|
+
}) => Promise<any>;
|
|
718
|
+
|
|
719
|
+
type Collaborators_UpdateMembersOfRepo = (params: {
|
|
720
|
+
repo: string;
|
|
721
|
+
username: string;
|
|
722
|
+
request: DtoUpdateMembersRequest;
|
|
723
|
+
}) => Promise<any>;
|
|
724
|
+
|
|
725
|
+
type Collaborators_ListOutsideCollaborators = (params: {
|
|
726
|
+
repo: string;
|
|
727
|
+
page?: number;
|
|
728
|
+
page_size?: number;
|
|
729
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master";
|
|
730
|
+
search?: string;
|
|
731
|
+
}) => Promise<DtoOutsideCollaboratorInRepo[]>;
|
|
732
|
+
|
|
733
|
+
type Collaborators_DeleteOutsideCollaborators = (params: {
|
|
734
|
+
repo: string;
|
|
735
|
+
username: string;
|
|
736
|
+
}) => Promise<any>;
|
|
737
|
+
|
|
738
|
+
type Collaborators_UpdateOutsideCollaborators = (params: {
|
|
739
|
+
repo: string;
|
|
740
|
+
username: string;
|
|
741
|
+
role: "Guest" | "Reporter" | "Developer";
|
|
742
|
+
}) => Promise<any>;
|
|
743
|
+
|
|
744
|
+
type Pulls_ListPullsByNumbers = (params: {
|
|
745
|
+
repo: string;
|
|
746
|
+
n: any[];
|
|
747
|
+
}) => Promise<ApiPullRequestInfo[]>;
|
|
748
|
+
|
|
749
|
+
type Pulls_ListPulls = (params: {
|
|
750
|
+
repo: string;
|
|
751
|
+
page?: number;
|
|
752
|
+
page_size?: number;
|
|
753
|
+
state?: string;
|
|
754
|
+
authors?: string;
|
|
755
|
+
reviewers?: string;
|
|
756
|
+
assignees?: string;
|
|
757
|
+
base_ref?: string;
|
|
758
|
+
}) => Promise<ApiPullRequest[]>;
|
|
759
|
+
|
|
760
|
+
type Pulls_PostPull = (params: {
|
|
761
|
+
repo: string;
|
|
762
|
+
post_pull_form: ApiPullCreationForm;
|
|
763
|
+
}) => Promise<any>;
|
|
764
|
+
|
|
765
|
+
type Pulls_GetPull = (params: {
|
|
766
|
+
repo: string;
|
|
767
|
+
number: number;
|
|
768
|
+
}) => Promise<ApiPull>;
|
|
769
|
+
|
|
770
|
+
type Pulls_PatchPull = (params: {
|
|
771
|
+
repo: string;
|
|
772
|
+
number: number;
|
|
773
|
+
update_pull_request_form: ApiPatchPullRequest;
|
|
774
|
+
}) => Promise<ApiPull>;
|
|
775
|
+
|
|
776
|
+
type Pulls_ListPullComments = (params: {
|
|
777
|
+
repo: string;
|
|
778
|
+
number: string;
|
|
779
|
+
page?: number;
|
|
780
|
+
page_size?: number;
|
|
781
|
+
}) => Promise<ApiPullRequestComment[]>;
|
|
782
|
+
|
|
783
|
+
type Pulls_PostPullComment = (params: {
|
|
784
|
+
repo: string;
|
|
785
|
+
number: number;
|
|
786
|
+
post_pull_comment_form: ApiPullCommentCreationForm;
|
|
787
|
+
}) => Promise<any>;
|
|
788
|
+
|
|
789
|
+
type Pulls_DeletePullLabels = (params: {
|
|
790
|
+
repo: string;
|
|
791
|
+
number: number;
|
|
792
|
+
}) => Promise<any>;
|
|
793
|
+
|
|
794
|
+
type Pulls_ListPullLabels = (params: {
|
|
795
|
+
repo: string;
|
|
796
|
+
number: number;
|
|
797
|
+
page?: number;
|
|
798
|
+
page_size?: number;
|
|
799
|
+
}) => Promise<ApiLabel[]>;
|
|
800
|
+
|
|
801
|
+
type Pulls_PostPullLabels = (params: {
|
|
802
|
+
repo: string;
|
|
803
|
+
number: number;
|
|
804
|
+
post_pull_labels_form: ApiPostPullLabelsForm;
|
|
805
|
+
}) => Promise<ApiLabel>;
|
|
806
|
+
|
|
807
|
+
type Pulls_PutPullLabels = (params: {
|
|
808
|
+
repo: string;
|
|
809
|
+
number: number;
|
|
810
|
+
put_pull_labels_form: ApiPutPullLabelsForm;
|
|
811
|
+
}) => Promise<ApiLabel>;
|
|
812
|
+
|
|
813
|
+
type Pulls_DeletePullLabel = (params: {
|
|
814
|
+
repo: string;
|
|
815
|
+
number: number;
|
|
816
|
+
name: string;
|
|
817
|
+
}) => Promise<ApiLabel>;
|
|
818
|
+
|
|
819
|
+
type Pulls_MergePull = (params: {
|
|
820
|
+
repo: string;
|
|
821
|
+
number: number;
|
|
822
|
+
merge_pull_request_form: ApiMergePullRequest;
|
|
823
|
+
}) => Promise<ApiMergePullResponse>;
|
|
824
|
+
|
|
825
|
+
type Pulls_PostPullReview = (params: {
|
|
826
|
+
repo: string;
|
|
827
|
+
number: number;
|
|
828
|
+
post_pull_review_form: ApiPullReviewCreationForm;
|
|
829
|
+
}) => Promise<any>;
|
|
830
|
+
|
|
831
|
+
type Releases_ListReleases = (params: {
|
|
832
|
+
repo: string;
|
|
833
|
+
page?: number;
|
|
834
|
+
page_size?: number;
|
|
835
|
+
}) => Promise<ApiRelease[]>;
|
|
836
|
+
|
|
837
|
+
type Releases_PostRelease = (params: {
|
|
838
|
+
repo: string;
|
|
839
|
+
create_release_form: OpenapiPostReleaseForm;
|
|
840
|
+
}) => Promise<any>;
|
|
841
|
+
|
|
842
|
+
type Assets_GetReleasesAsset = (params: {
|
|
843
|
+
repo: string;
|
|
844
|
+
fileName: string;
|
|
845
|
+
}) => Promise<any>;
|
|
846
|
+
|
|
847
|
+
type Releases_GetReleaseByTag = (params: {
|
|
848
|
+
repo: string;
|
|
849
|
+
tag: string;
|
|
850
|
+
}) => Promise<ApiRelease>;
|
|
851
|
+
|
|
852
|
+
type Releases_DeleteRelease = (params: {
|
|
853
|
+
repo: string;
|
|
854
|
+
release_id: number;
|
|
855
|
+
}) => Promise<any>;
|
|
856
|
+
|
|
857
|
+
type Releases_GetReleaseByID = (params: {
|
|
858
|
+
repo: string;
|
|
859
|
+
release_id: number;
|
|
860
|
+
}) => Promise<ApiRelease>;
|
|
861
|
+
|
|
862
|
+
type Releases_PatchRelease = (params: {
|
|
863
|
+
repo: string;
|
|
864
|
+
release_id: number;
|
|
865
|
+
patch_release_form: OpenapiPatchReleaseForm;
|
|
866
|
+
}) => Promise<any>;
|
|
867
|
+
|
|
868
|
+
type Releases_PostReleaseAssetUploadConfirmation = (params: {
|
|
869
|
+
repo: string;
|
|
870
|
+
release_id: number;
|
|
871
|
+
token: string;
|
|
872
|
+
asset_path: string;
|
|
873
|
+
}) => Promise<any>;
|
|
874
|
+
|
|
875
|
+
type Releases_PostReleaseAssetUploadURL = (params: {
|
|
876
|
+
repo: string;
|
|
877
|
+
release_id: number;
|
|
878
|
+
create_release_asset_upload_url_form: OpenapiPostReleaseAssetUploadUrlForm;
|
|
879
|
+
}) => Promise<any>;
|
|
880
|
+
|
|
881
|
+
type Releases_DeleteReleaseAsset = (params: {
|
|
882
|
+
repo: string;
|
|
883
|
+
release_id: number;
|
|
884
|
+
asset_id: number;
|
|
885
|
+
}) => Promise<any>;
|
|
886
|
+
|
|
887
|
+
type Releases_GetReleaseAsset = (params: {
|
|
888
|
+
repo: string;
|
|
889
|
+
release_id: number;
|
|
890
|
+
asset_id: number;
|
|
891
|
+
}) => Promise<ApiReleaseAsset>;
|
|
892
|
+
|
|
893
|
+
type GitSettings_ListBranchProtections = (params: {
|
|
894
|
+
repo: string;
|
|
895
|
+
}) => Promise<ApiBranchProtection[]>;
|
|
896
|
+
|
|
897
|
+
type GitSettings_PostBranchProtection = (params: {
|
|
898
|
+
repo: string;
|
|
899
|
+
branch_protection_form: ApiBranchProtection;
|
|
900
|
+
}) => Promise<any>;
|
|
901
|
+
|
|
902
|
+
type GitSettings_DeleteBranchProtection = (params: {
|
|
903
|
+
repo: string;
|
|
904
|
+
id: string;
|
|
905
|
+
}) => Promise<any>;
|
|
906
|
+
|
|
907
|
+
type GitSettings_GetBranchProtection = (params: {
|
|
908
|
+
repo: string;
|
|
909
|
+
id: string;
|
|
910
|
+
}) => Promise<ApiBranchProtection>;
|
|
911
|
+
|
|
912
|
+
type GitSettings_PatchBranchProtection = (params: {
|
|
913
|
+
repo: string;
|
|
914
|
+
id: string;
|
|
915
|
+
branch_protection_form: ApiBranchProtection;
|
|
916
|
+
}) => Promise<any>;
|
|
917
|
+
|
|
918
|
+
type GitSettings_GetPipelineSettings = (params: {
|
|
919
|
+
repo: string;
|
|
920
|
+
}) => Promise<ApiPipelineSettings>;
|
|
921
|
+
|
|
922
|
+
type GitSettings_PutPipelineSettings = (params: {
|
|
923
|
+
repo: string;
|
|
924
|
+
pipeline_form: WebPipelineSettings;
|
|
925
|
+
}) => Promise<any>;
|
|
926
|
+
|
|
927
|
+
type GitSettings_GetPullRequestSettings = (params: {
|
|
928
|
+
repo: string;
|
|
929
|
+
}) => Promise<ApiPullRequestSettings>;
|
|
930
|
+
|
|
931
|
+
type GitSettings_PutPullRequestSettings = (params: {
|
|
932
|
+
repo: string;
|
|
933
|
+
pull_request_form: ApiPullRequestSettings;
|
|
934
|
+
}) => Promise<any>;
|
|
935
|
+
|
|
936
|
+
type GitSettings_GetPushLimitSettings = (params: {
|
|
937
|
+
repo: string;
|
|
938
|
+
}) => Promise<ApiPushLimitSettings>;
|
|
939
|
+
|
|
940
|
+
type GitSettings_PutPushLimitSettings = (params: {
|
|
941
|
+
repo: string;
|
|
942
|
+
push_limit_form: ApiPushLimitSettings;
|
|
943
|
+
}) => Promise<any>;
|
|
944
|
+
|
|
945
|
+
type Starring_ListStarUsers = (params: {
|
|
946
|
+
repo: string;
|
|
947
|
+
filter_type: "all" | "followed";
|
|
948
|
+
page: number;
|
|
949
|
+
page_size: number;
|
|
950
|
+
}) => Promise<DtoRepoStarUsers>;
|
|
951
|
+
|
|
952
|
+
type Collaborators_TopContributors = (params: {
|
|
953
|
+
repo: string;
|
|
954
|
+
top?: number;
|
|
955
|
+
}) => Promise<DtoUsersResult[]>;
|
|
956
|
+
|
|
957
|
+
type Assets_UploadFiles = (params: {
|
|
958
|
+
repo: string;
|
|
959
|
+
request: DtoUploadRequestParams;
|
|
960
|
+
}) => Promise<DtoUploadAssetsResponse>;
|
|
961
|
+
|
|
962
|
+
type Assets_UploadImgs = (params: {
|
|
963
|
+
repo: string;
|
|
964
|
+
request: DtoUploadRequestParams;
|
|
965
|
+
}) => Promise<DtoUploadAssetsResponse>;
|
|
966
|
+
|
|
967
|
+
type Assets_UploadReleases = (params: {
|
|
968
|
+
repo: string;
|
|
969
|
+
tagName: string;
|
|
970
|
+
request: DtoUploadRequestParams;
|
|
971
|
+
}) => Promise<DtoUploadAssetsResponse>;
|
|
972
|
+
|
|
973
|
+
type Workspace_GetWorkspaceDetail = (params: {
|
|
974
|
+
repo: string;
|
|
975
|
+
sn: string;
|
|
976
|
+
}) => Promise<DtoWorkspaceDetailResult>;
|
|
977
|
+
|
|
978
|
+
type Artifactory_ListPackages = (params: {
|
|
979
|
+
slug: string;
|
|
980
|
+
type: "all" | "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
981
|
+
page?: number;
|
|
982
|
+
page_size?: number;
|
|
983
|
+
ordering?: "pull_count" | "last_push_at" | "name_ascend" | "name_descend";
|
|
984
|
+
name?: string;
|
|
985
|
+
}) => Promise<DtoPackage[]>;
|
|
986
|
+
|
|
987
|
+
type Artifactory_HeadPackages = (params: {
|
|
988
|
+
slug: string;
|
|
989
|
+
type: "all" | "docker" | "helm";
|
|
990
|
+
page?: number;
|
|
991
|
+
page_size?: number;
|
|
992
|
+
ordering?: "pull_count" | "last_push_at" | "name_ascend" | "name_descend";
|
|
993
|
+
name?: string;
|
|
994
|
+
}) => Promise<any>;
|
|
995
|
+
|
|
996
|
+
type Artifactory_GetQuotaByProjectName = (params: {
|
|
997
|
+
slug: string;
|
|
998
|
+
type: "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
999
|
+
}) => Promise<DtoQuotaRsp>;
|
|
1000
|
+
|
|
1001
|
+
type Artifactory_GetQuotasByProjectName = (params: {
|
|
1002
|
+
slug: string;
|
|
1003
|
+
type: "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
1004
|
+
page?: number;
|
|
1005
|
+
page_size?: number;
|
|
1006
|
+
ordering?: "used_ascend" | "used_descend";
|
|
1007
|
+
}) => Promise<DtoQuotaRsp[]>;
|
|
1008
|
+
|
|
1009
|
+
type Artifactory_DownloadQuotasByProjectName = (params: {
|
|
1010
|
+
slug: string;
|
|
1011
|
+
type: "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
1012
|
+
page?: number;
|
|
1013
|
+
page_size?: number;
|
|
1014
|
+
ordering?: "used_ascend" | "used_descend";
|
|
1015
|
+
}) => Promise<DtoQuotaRsp[]>;
|
|
1016
|
+
|
|
1017
|
+
type Artifactory_GetPackage = (params: {
|
|
1018
|
+
slug: string;
|
|
1019
|
+
type: "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
1020
|
+
name: string;
|
|
1021
|
+
}) => Promise<DtoPackageDetail>;
|
|
1022
|
+
|
|
1023
|
+
type Artifactory_DeletePackageTag = (params: {
|
|
1024
|
+
slug: string;
|
|
1025
|
+
type: "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
1026
|
+
name: string;
|
|
1027
|
+
tag: string;
|
|
1028
|
+
}) => Promise<any>;
|
|
1029
|
+
|
|
1030
|
+
type Artifactory_GetPackageTagDetail = (params: {
|
|
1031
|
+
slug: string;
|
|
1032
|
+
type: "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
1033
|
+
name: string;
|
|
1034
|
+
tag: string;
|
|
1035
|
+
sha256?: string;
|
|
1036
|
+
}) => Promise<DtoTagDetail>;
|
|
1037
|
+
|
|
1038
|
+
type Artifactory_ListPackageTags = (params: {
|
|
1039
|
+
slug: string;
|
|
1040
|
+
type: "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
1041
|
+
pkgname: string;
|
|
1042
|
+
page?: number;
|
|
1043
|
+
page_size?: number;
|
|
1044
|
+
ordering?: "pull_count" | "last_push_at";
|
|
1045
|
+
name?: string;
|
|
1046
|
+
}) => Promise<DtoTag>;
|
|
94
1047
|
|
|
95
1048
|
export interface Client {
|
|
96
1049
|
groups: {
|
|
@@ -102,7 +1055,7 @@ export interface Client {
|
|
|
102
1055
|
*
|
|
103
1056
|
* /groups
|
|
104
1057
|
*/
|
|
105
|
-
post:
|
|
1058
|
+
post: Organizations_CreateOrganization;
|
|
106
1059
|
};
|
|
107
1060
|
|
|
108
1061
|
user: {
|
|
@@ -114,7 +1067,7 @@ export interface Client {
|
|
|
114
1067
|
*
|
|
115
1068
|
* /user
|
|
116
1069
|
*/
|
|
117
|
-
get:
|
|
1070
|
+
get: Users_GetUserInfo;
|
|
118
1071
|
|
|
119
1072
|
/***
|
|
120
1073
|
* 更新指定用户的详情信息, 可更新内容为: 昵称, 个人签名, 微信公众号名称, 微信公众号二维码链接, 个人网站, 个人地址, 公司名称
|
|
@@ -124,7 +1077,7 @@ export interface Client {
|
|
|
124
1077
|
*
|
|
125
1078
|
* /user
|
|
126
1079
|
*/
|
|
127
|
-
post:
|
|
1080
|
+
post: Users_UpdateUserInfo;
|
|
128
1081
|
|
|
129
1082
|
autocompleteSource: {
|
|
130
1083
|
/***
|
|
@@ -135,13 +1088,7 @@ export interface Client {
|
|
|
135
1088
|
*
|
|
136
1089
|
* /user/autocomplete_source
|
|
137
1090
|
*/
|
|
138
|
-
list:
|
|
139
|
-
source_type?: "Group" | "Repo";
|
|
140
|
-
page?: number;
|
|
141
|
-
page_size?: number;
|
|
142
|
-
search?: string;
|
|
143
|
-
access?: "Reporter" | "Developer" | "Master" | "Owner";
|
|
144
|
-
}) => Promise<string[]>;
|
|
1091
|
+
list: Users_AutoCompleteSource;
|
|
145
1092
|
};
|
|
146
1093
|
|
|
147
1094
|
groups: {
|
|
@@ -153,12 +1100,7 @@ export interface Client {
|
|
|
153
1100
|
*
|
|
154
1101
|
* /user/groups
|
|
155
1102
|
*/
|
|
156
|
-
list:
|
|
157
|
-
page?: number;
|
|
158
|
-
page_size?: number;
|
|
159
|
-
search?: string;
|
|
160
|
-
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
161
|
-
}) => Promise<DtoOrganizationAccess[]>;
|
|
1103
|
+
list: Organizations_ListTopGroups;
|
|
162
1104
|
|
|
163
1105
|
/***
|
|
164
1106
|
* 查询当前用户在指定组织下拥有指定权限的子组织列表
|
|
@@ -168,12 +1110,7 @@ export interface Client {
|
|
|
168
1110
|
*
|
|
169
1111
|
* /user/groups/{group}
|
|
170
1112
|
*/
|
|
171
|
-
listByGroup:
|
|
172
|
-
group: string;
|
|
173
|
-
page?: number;
|
|
174
|
-
page_size?: number;
|
|
175
|
-
access?: number;
|
|
176
|
-
}) => Promise<DtoOrganizationAccess[]>;
|
|
1113
|
+
listByGroup: Organizations_ListGroups;
|
|
177
1114
|
};
|
|
178
1115
|
|
|
179
1116
|
repos: {
|
|
@@ -185,15 +1122,7 @@ export interface Client {
|
|
|
185
1122
|
*
|
|
186
1123
|
* /user/repos
|
|
187
1124
|
*/
|
|
188
|
-
list:
|
|
189
|
-
page?: number;
|
|
190
|
-
page_size?: number;
|
|
191
|
-
search?: string;
|
|
192
|
-
filter_type?: "private" | "public" | "encrypted";
|
|
193
|
-
role?: "Reporter" | "Developer" | "Master" | "Owner";
|
|
194
|
-
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
195
|
-
desc?: boolean;
|
|
196
|
-
}) => Promise<DtoRepos4User[]>;
|
|
1125
|
+
list: Repositories_GetRepos;
|
|
197
1126
|
};
|
|
198
1127
|
|
|
199
1128
|
staredRepos: {
|
|
@@ -205,13 +1134,7 @@ export interface Client {
|
|
|
205
1134
|
*
|
|
206
1135
|
* /user/stared-repos
|
|
207
1136
|
*/
|
|
208
|
-
list:
|
|
209
|
-
page?: number;
|
|
210
|
-
page_size?: number;
|
|
211
|
-
search?: string;
|
|
212
|
-
desc?: boolean;
|
|
213
|
-
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
214
|
-
}) => Promise<DtoRepos4UserBase[]>;
|
|
1137
|
+
list: Repositories_GetUserAllStaredRepos;
|
|
215
1138
|
};
|
|
216
1139
|
};
|
|
217
1140
|
|
|
@@ -224,7 +1147,7 @@ export interface Client {
|
|
|
224
1147
|
*
|
|
225
1148
|
* /users/{username}
|
|
226
1149
|
*/
|
|
227
|
-
get:
|
|
1150
|
+
get: Users_GetUserInfoByName;
|
|
228
1151
|
|
|
229
1152
|
avatar: {
|
|
230
1153
|
/***
|
|
@@ -235,7 +1158,7 @@ export interface Client {
|
|
|
235
1158
|
*
|
|
236
1159
|
* /users/{username}/avatar/{size}
|
|
237
1160
|
*/
|
|
238
|
-
get:
|
|
1161
|
+
get: Assets_GetUserAvatar;
|
|
239
1162
|
};
|
|
240
1163
|
|
|
241
1164
|
followers: {
|
|
@@ -247,11 +1170,7 @@ export interface Client {
|
|
|
247
1170
|
*
|
|
248
1171
|
* /users/{username}/followers
|
|
249
1172
|
*/
|
|
250
|
-
list:
|
|
251
|
-
username: string;
|
|
252
|
-
page?: number;
|
|
253
|
-
page_size?: number;
|
|
254
|
-
}) => Promise<DtoUserFollowResult[]>;
|
|
1173
|
+
list: Followers_GetFollowersByUserID;
|
|
255
1174
|
};
|
|
256
1175
|
|
|
257
1176
|
following: {
|
|
@@ -263,11 +1182,7 @@ export interface Client {
|
|
|
263
1182
|
*
|
|
264
1183
|
* /users/{username}/following
|
|
265
1184
|
*/
|
|
266
|
-
list:
|
|
267
|
-
username: string;
|
|
268
|
-
page?: number;
|
|
269
|
-
page_size?: number;
|
|
270
|
-
}) => Promise<DtoUserFollowResult[]>;
|
|
1185
|
+
list: Followers_GetFollowingByUserID;
|
|
271
1186
|
};
|
|
272
1187
|
|
|
273
1188
|
groups: {
|
|
@@ -279,14 +1194,7 @@ export interface Client {
|
|
|
279
1194
|
*
|
|
280
1195
|
* /users/{username}/groups
|
|
281
1196
|
*/
|
|
282
|
-
get:
|
|
283
|
-
username: string;
|
|
284
|
-
search?: string;
|
|
285
|
-
page?: number;
|
|
286
|
-
page_size?: number;
|
|
287
|
-
desc?: boolean;
|
|
288
|
-
order_by?: "join_time" | "created_at";
|
|
289
|
-
}) => Promise<DtoOrganizationUnion>;
|
|
1197
|
+
get: Organizations_GetGroupsByUserID;
|
|
290
1198
|
};
|
|
291
1199
|
|
|
292
1200
|
pinnedRepos: {
|
|
@@ -298,7 +1206,7 @@ export interface Client {
|
|
|
298
1206
|
*
|
|
299
1207
|
* /users/{username}/pinned-repos
|
|
300
1208
|
*/
|
|
301
|
-
list:
|
|
1209
|
+
list: Repositories_GetPinnedRepoByID;
|
|
302
1210
|
};
|
|
303
1211
|
|
|
304
1212
|
repos: {
|
|
@@ -310,15 +1218,7 @@ export interface Client {
|
|
|
310
1218
|
*
|
|
311
1219
|
* /users/{username}/repos
|
|
312
1220
|
*/
|
|
313
|
-
list:
|
|
314
|
-
username: string;
|
|
315
|
-
search?: string;
|
|
316
|
-
role?: "Reporter" | "Developer" | "Master" | "Owner";
|
|
317
|
-
page?: number;
|
|
318
|
-
page_size?: number;
|
|
319
|
-
desc?: boolean;
|
|
320
|
-
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
321
|
-
}) => Promise<DtoRepos4User[]>;
|
|
1221
|
+
list: Repositories_GetReposByUserName;
|
|
322
1222
|
};
|
|
323
1223
|
|
|
324
1224
|
staredRepos: {
|
|
@@ -330,14 +1230,7 @@ export interface Client {
|
|
|
330
1230
|
*
|
|
331
1231
|
* /users/{username}/stared-repos
|
|
332
1232
|
*/
|
|
333
|
-
list:
|
|
334
|
-
username: string;
|
|
335
|
-
search?: string;
|
|
336
|
-
page?: number;
|
|
337
|
-
page_size?: number;
|
|
338
|
-
desc?: boolean;
|
|
339
|
-
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
340
|
-
}) => Promise<DtoRepos4User[]>;
|
|
1233
|
+
list: Starring_GetUserStaredRepos;
|
|
341
1234
|
};
|
|
342
1235
|
};
|
|
343
1236
|
|
|
@@ -351,9 +1244,7 @@ export interface Client {
|
|
|
351
1244
|
*
|
|
352
1245
|
* /workspace/delete
|
|
353
1246
|
*/
|
|
354
|
-
post:
|
|
355
|
-
request: DtoWorkspaceDeleteReq;
|
|
356
|
-
}) => Promise<DtoWorkspaceDeleteResult>;
|
|
1247
|
+
post: Workspace_DeleteWorkspace;
|
|
357
1248
|
};
|
|
358
1249
|
|
|
359
1250
|
list: {
|
|
@@ -365,15 +1256,7 @@ export interface Client {
|
|
|
365
1256
|
*
|
|
366
1257
|
* /workspace/list
|
|
367
1258
|
*/
|
|
368
|
-
get:
|
|
369
|
-
branch?: string;
|
|
370
|
-
end?: string;
|
|
371
|
-
page?: number;
|
|
372
|
-
pageSize?: number;
|
|
373
|
-
slug?: string;
|
|
374
|
-
start?: string;
|
|
375
|
-
status?: string;
|
|
376
|
-
}) => Promise<DtoWorkspaceListResult>;
|
|
1259
|
+
get: Workspace_ListWorkspaces;
|
|
377
1260
|
};
|
|
378
1261
|
};
|
|
379
1262
|
|
|
@@ -386,10 +1269,7 @@ export interface Client {
|
|
|
386
1269
|
*
|
|
387
1270
|
* /{group}
|
|
388
1271
|
*/
|
|
389
|
-
delete:
|
|
390
|
-
group: string;
|
|
391
|
-
"x-cnb-identity-ticket"?: string;
|
|
392
|
-
}) => Promise<any>;
|
|
1272
|
+
delete: Organizations_DeleteOrganization;
|
|
393
1273
|
|
|
394
1274
|
/***
|
|
395
1275
|
* 获取指定组织信息
|
|
@@ -399,7 +1279,7 @@ export interface Client {
|
|
|
399
1279
|
*
|
|
400
1280
|
* /{group}
|
|
401
1281
|
*/
|
|
402
|
-
get:
|
|
1282
|
+
get: Organizations_GetGroup;
|
|
403
1283
|
|
|
404
1284
|
/***
|
|
405
1285
|
* 更新组织信息, 可更新的内容为: 组织描述, 组织展示名称, 组织网站, 组织联系邮箱
|
|
@@ -409,10 +1289,7 @@ export interface Client {
|
|
|
409
1289
|
*
|
|
410
1290
|
* /{group}
|
|
411
1291
|
*/
|
|
412
|
-
put:
|
|
413
|
-
group: string;
|
|
414
|
-
request: DtoUpdateGroupReq;
|
|
415
|
-
}) => Promise<any>;
|
|
1292
|
+
put: Organizations_UpdateOrganization;
|
|
416
1293
|
|
|
417
1294
|
avatar: {
|
|
418
1295
|
/***
|
|
@@ -423,10 +1300,7 @@ export interface Client {
|
|
|
423
1300
|
*
|
|
424
1301
|
* /{group}/-/avatar
|
|
425
1302
|
*/
|
|
426
|
-
put:
|
|
427
|
-
group: string;
|
|
428
|
-
request: DtoUpdateGroupAvatarReq;
|
|
429
|
-
}) => Promise<any>;
|
|
1303
|
+
put: Organizations_UpdateGroupAvatar;
|
|
430
1304
|
};
|
|
431
1305
|
|
|
432
1306
|
inheritMembers: {
|
|
@@ -438,34 +1312,7 @@ export interface Client {
|
|
|
438
1312
|
*
|
|
439
1313
|
* /{group}/-/inherit-members
|
|
440
1314
|
*/
|
|
441
|
-
list:
|
|
442
|
-
group: string;
|
|
443
|
-
search?: string;
|
|
444
|
-
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
445
|
-
page?: number;
|
|
446
|
-
page_size?: number;
|
|
447
|
-
}) => Promise<DtoListInheritMembers[]>;
|
|
448
|
-
};
|
|
449
|
-
|
|
450
|
-
listMembers: {
|
|
451
|
-
/***
|
|
452
|
-
* 获取指定组织或仓库内的有效成员列表,包含继承成员
|
|
453
|
-
*
|
|
454
|
-
* 访问令牌调用此接口需包含以下权限
|
|
455
|
-
* group-manage:r
|
|
456
|
-
*
|
|
457
|
-
* /{group}/-/list-members
|
|
458
|
-
*/
|
|
459
|
-
list: (params: {
|
|
460
|
-
group: string;
|
|
461
|
-
page?: number;
|
|
462
|
-
page_size?: number;
|
|
463
|
-
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
464
|
-
search?: string;
|
|
465
|
-
names?: string;
|
|
466
|
-
order_by?: "created_at" | "stars" | "follower";
|
|
467
|
-
desc?: boolean;
|
|
468
|
-
}) => Promise<DtoUsersWithAccessLevelInSlug[]>;
|
|
1315
|
+
list: Collaborators_ListInheritMembersOfGroup;
|
|
469
1316
|
};
|
|
470
1317
|
|
|
471
1318
|
logos: {
|
|
@@ -477,7 +1324,7 @@ export interface Client {
|
|
|
477
1324
|
*
|
|
478
1325
|
* /{group}/-/logos
|
|
479
1326
|
*/
|
|
480
|
-
put:
|
|
1327
|
+
put: Assets_PutLogos;
|
|
481
1328
|
|
|
482
1329
|
/***
|
|
483
1330
|
* 发起一个获取 logo 的请求,返回内容或者 302 到某个地址
|
|
@@ -487,7 +1334,7 @@ export interface Client {
|
|
|
487
1334
|
*
|
|
488
1335
|
* /{group}/-/logos/{size}
|
|
489
1336
|
*/
|
|
490
|
-
get:
|
|
1337
|
+
get: Assets_GetLogos;
|
|
491
1338
|
};
|
|
492
1339
|
|
|
493
1340
|
members: {
|
|
@@ -499,13 +1346,7 @@ export interface Client {
|
|
|
499
1346
|
*
|
|
500
1347
|
* /{group}/-/members
|
|
501
1348
|
*/
|
|
502
|
-
list:
|
|
503
|
-
group: string;
|
|
504
|
-
page?: number;
|
|
505
|
-
page_size?: number;
|
|
506
|
-
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
507
|
-
search?: string;
|
|
508
|
-
}) => Promise<DtoUsersWithAccessLevelInSlug[]>;
|
|
1349
|
+
list: Collaborators_ListMembersOfGroup;
|
|
509
1350
|
|
|
510
1351
|
accessLevel: {
|
|
511
1352
|
/***
|
|
@@ -516,10 +1357,7 @@ export interface Client {
|
|
|
516
1357
|
*
|
|
517
1358
|
* /{group}/-/members/access-level
|
|
518
1359
|
*/
|
|
519
|
-
get:
|
|
520
|
-
group: string;
|
|
521
|
-
include_inherit?: boolean;
|
|
522
|
-
}) => Promise<DtoMemberAccessLevelInSlugUnion>;
|
|
1360
|
+
get: Contributors_GetMemberAccessLevelOfGroup;
|
|
523
1361
|
|
|
524
1362
|
/***
|
|
525
1363
|
* 获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示, 包含上层组织的权限继承信息
|
|
@@ -529,10 +1367,7 @@ export interface Client {
|
|
|
529
1367
|
*
|
|
530
1368
|
* /{group}/-/members/{username}/access-level
|
|
531
1369
|
*/
|
|
532
|
-
list:
|
|
533
|
-
group: string;
|
|
534
|
-
username: string;
|
|
535
|
-
}) => Promise<DtoMemberAccessLevel[]>;
|
|
1370
|
+
list: Contributors_ListMemberAccessLevelOfGroup;
|
|
536
1371
|
};
|
|
537
1372
|
|
|
538
1373
|
/***
|
|
@@ -543,7 +1378,7 @@ export interface Client {
|
|
|
543
1378
|
*
|
|
544
1379
|
* /{group}/-/members/{username}
|
|
545
1380
|
*/
|
|
546
|
-
delete:
|
|
1381
|
+
delete: Collaborators_DeleteMembersOfGroup;
|
|
547
1382
|
|
|
548
1383
|
/***
|
|
549
1384
|
* 更新指定组织或仓库内的直接成员权限信息
|
|
@@ -553,11 +1388,7 @@ export interface Client {
|
|
|
553
1388
|
*
|
|
554
1389
|
* /{group}/-/members/{username}
|
|
555
1390
|
*/
|
|
556
|
-
put:
|
|
557
|
-
group: string;
|
|
558
|
-
username: string;
|
|
559
|
-
request: DtoUpdateMembersRequest;
|
|
560
|
-
}) => Promise<any>;
|
|
1391
|
+
put: Collaborators_UpdateMembersOfGroup;
|
|
561
1392
|
};
|
|
562
1393
|
|
|
563
1394
|
pinnedRepos: {
|
|
@@ -569,7 +1400,7 @@ export interface Client {
|
|
|
569
1400
|
*
|
|
570
1401
|
* /{group}/-/pinned-repos
|
|
571
1402
|
*/
|
|
572
|
-
list:
|
|
1403
|
+
list: Repositories_GetPinnedRepoByGroup;
|
|
573
1404
|
|
|
574
1405
|
/***
|
|
575
1406
|
* 更新指定组织仓库墙
|
|
@@ -579,10 +1410,7 @@ export interface Client {
|
|
|
579
1410
|
*
|
|
580
1411
|
* /{group}/-/pinned-repos
|
|
581
1412
|
*/
|
|
582
|
-
put:
|
|
583
|
-
group: string;
|
|
584
|
-
request: string[];
|
|
585
|
-
}) => Promise<DtoRepos4UserBase[]>;
|
|
1413
|
+
put: Repositories_SetPinnedRepoByGroup;
|
|
586
1414
|
};
|
|
587
1415
|
|
|
588
1416
|
repos: {
|
|
@@ -594,16 +1422,7 @@ export interface Client {
|
|
|
594
1422
|
*
|
|
595
1423
|
* /{group}/-/repos
|
|
596
1424
|
*/
|
|
597
|
-
list:
|
|
598
|
-
group: string;
|
|
599
|
-
page?: number;
|
|
600
|
-
page_size?: number;
|
|
601
|
-
filter_type?: "private" | "public" | "encrypted";
|
|
602
|
-
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
603
|
-
desc?: boolean;
|
|
604
|
-
descendant?: "all" | "sub" | "grand";
|
|
605
|
-
search?: string;
|
|
606
|
-
}) => Promise<DtoRepos4UserBase[]>;
|
|
1425
|
+
list: Repositories_GetGroupSubRepos;
|
|
607
1426
|
|
|
608
1427
|
/***
|
|
609
1428
|
* 创建仓库
|
|
@@ -613,10 +1432,7 @@ export interface Client {
|
|
|
613
1432
|
*
|
|
614
1433
|
* /{group}/-/repos
|
|
615
1434
|
*/
|
|
616
|
-
post:
|
|
617
|
-
group: string;
|
|
618
|
-
request: DtoCreateRepoReq;
|
|
619
|
-
}) => Promise<any>;
|
|
1435
|
+
post: Repositories_CreateRepo;
|
|
620
1436
|
};
|
|
621
1437
|
|
|
622
1438
|
settings: {
|
|
@@ -628,9 +1444,7 @@ export interface Client {
|
|
|
628
1444
|
*
|
|
629
1445
|
* /{group}/-/settings
|
|
630
1446
|
*/
|
|
631
|
-
get:
|
|
632
|
-
group: string;
|
|
633
|
-
}) => Promise<DtoOrganizationSettingWithParent>;
|
|
1447
|
+
get: Organizations_GetGroupSetting;
|
|
634
1448
|
|
|
635
1449
|
/***
|
|
636
1450
|
* 更新指定组织的配置, 可更新内容为: 是否对外隐藏组织成员
|
|
@@ -640,10 +1454,7 @@ export interface Client {
|
|
|
640
1454
|
*
|
|
641
1455
|
* /{group}/-/settings
|
|
642
1456
|
*/
|
|
643
|
-
put:
|
|
644
|
-
group: string;
|
|
645
|
-
request: DtoGroupSettingReq;
|
|
646
|
-
}) => Promise<any>;
|
|
1457
|
+
put: Organizations_UpdateGroupSetting;
|
|
647
1458
|
};
|
|
648
1459
|
|
|
649
1460
|
subGroups: {
|
|
@@ -655,12 +1466,7 @@ export interface Client {
|
|
|
655
1466
|
*
|
|
656
1467
|
* /{group}/-/sub-groups
|
|
657
1468
|
*/
|
|
658
|
-
list:
|
|
659
|
-
group: string;
|
|
660
|
-
search?: string;
|
|
661
|
-
page: number;
|
|
662
|
-
page_size: number;
|
|
663
|
-
}) => Promise<DtoOrganizationUnion[]>;
|
|
1469
|
+
list: Organizations_ListSubgroups;
|
|
664
1470
|
};
|
|
665
1471
|
|
|
666
1472
|
upload: {
|
|
@@ -673,10 +1479,7 @@ export interface Client {
|
|
|
673
1479
|
*
|
|
674
1480
|
* /{group}/-/upload/logos
|
|
675
1481
|
*/
|
|
676
|
-
post:
|
|
677
|
-
group: string;
|
|
678
|
-
request: DtoUploadRequestParams;
|
|
679
|
-
}) => Promise<DtoUploadAssetsResponse>;
|
|
1482
|
+
post: Assets_UploadLogos;
|
|
680
1483
|
};
|
|
681
1484
|
};
|
|
682
1485
|
};
|
|
@@ -690,10 +1493,7 @@ export interface Client {
|
|
|
690
1493
|
*
|
|
691
1494
|
* /{mission}
|
|
692
1495
|
*/
|
|
693
|
-
delete:
|
|
694
|
-
mission: string;
|
|
695
|
-
"x-cnb-identity-ticket"?: string;
|
|
696
|
-
}) => Promise<any>;
|
|
1496
|
+
delete: Missions_DeleteMission;
|
|
697
1497
|
};
|
|
698
1498
|
|
|
699
1499
|
registry: {
|
|
@@ -705,10 +1505,7 @@ export interface Client {
|
|
|
705
1505
|
*
|
|
706
1506
|
* /{registry}
|
|
707
1507
|
*/
|
|
708
|
-
delete:
|
|
709
|
-
registry: string;
|
|
710
|
-
"x-cnb-identity-ticket"?: string;
|
|
711
|
-
}) => Promise<any>;
|
|
1508
|
+
delete: Artifactory_DeleteRegistry;
|
|
712
1509
|
};
|
|
713
1510
|
|
|
714
1511
|
repo: {
|
|
@@ -720,10 +1517,7 @@ export interface Client {
|
|
|
720
1517
|
*
|
|
721
1518
|
* /{repo}
|
|
722
1519
|
*/
|
|
723
|
-
delete:
|
|
724
|
-
repo: string;
|
|
725
|
-
"x-cnb-identity-ticket"?: string;
|
|
726
|
-
}) => Promise<any>;
|
|
1520
|
+
delete: Repositories_DeleteRepo;
|
|
727
1521
|
|
|
728
1522
|
/***
|
|
729
1523
|
* 获取指定仓库信息
|
|
@@ -733,7 +1527,7 @@ export interface Client {
|
|
|
733
1527
|
*
|
|
734
1528
|
* /{repo}
|
|
735
1529
|
*/
|
|
736
|
-
get:
|
|
1530
|
+
get: Repositories_GetRepo;
|
|
737
1531
|
|
|
738
1532
|
/***
|
|
739
1533
|
* 更新仓库信息, 可更新的内容为: 仓库简介, 仓库站点, 仓库主题, 开源许可证
|
|
@@ -743,7 +1537,7 @@ export interface Client {
|
|
|
743
1537
|
*
|
|
744
1538
|
* /{repo}
|
|
745
1539
|
*/
|
|
746
|
-
patch:
|
|
1540
|
+
patch: Repositories_UpdateRepo;
|
|
747
1541
|
|
|
748
1542
|
build: {
|
|
749
1543
|
logs: {
|
|
@@ -755,21 +1549,7 @@ export interface Client {
|
|
|
755
1549
|
*
|
|
756
1550
|
* /{repo}/-/build/logs
|
|
757
1551
|
*/
|
|
758
|
-
get:
|
|
759
|
-
repo: string;
|
|
760
|
-
createTime?: string;
|
|
761
|
-
endTime?: string;
|
|
762
|
-
event?: string;
|
|
763
|
-
page?: number;
|
|
764
|
-
pagesize?: number;
|
|
765
|
-
sha?: string;
|
|
766
|
-
sn?: string;
|
|
767
|
-
sourceRef?: string;
|
|
768
|
-
status?: string;
|
|
769
|
-
targetRef?: string;
|
|
770
|
-
userId?: string;
|
|
771
|
-
userName?: string;
|
|
772
|
-
}) => Promise<DtoBuildLogsResult>;
|
|
1552
|
+
get: Build_GetBuildLogs;
|
|
773
1553
|
};
|
|
774
1554
|
|
|
775
1555
|
start: {
|
|
@@ -781,10 +1561,7 @@ export interface Client {
|
|
|
781
1561
|
*
|
|
782
1562
|
* /{repo}/-/build/start
|
|
783
1563
|
*/
|
|
784
|
-
post:
|
|
785
|
-
repo: string;
|
|
786
|
-
request: DtoStartBuildReq;
|
|
787
|
-
}) => Promise<DtoBuildResult[]>;
|
|
1564
|
+
post: Build_StartBuild;
|
|
788
1565
|
};
|
|
789
1566
|
|
|
790
1567
|
status: {
|
|
@@ -796,10 +1573,7 @@ export interface Client {
|
|
|
796
1573
|
*
|
|
797
1574
|
* /{repo}/-/build/status/{sn}
|
|
798
1575
|
*/
|
|
799
|
-
get:
|
|
800
|
-
repo: string;
|
|
801
|
-
sn: string;
|
|
802
|
-
}) => Promise<DtoBuildStatusResult>;
|
|
1576
|
+
get: Build_GetBuildStatus;
|
|
803
1577
|
};
|
|
804
1578
|
|
|
805
1579
|
stop: {
|
|
@@ -811,10 +1585,7 @@ export interface Client {
|
|
|
811
1585
|
*
|
|
812
1586
|
* /{repo}/-/build/stop/{sn}
|
|
813
1587
|
*/
|
|
814
|
-
post:
|
|
815
|
-
repo: string;
|
|
816
|
-
sn: string;
|
|
817
|
-
}) => Promise<DtoBuildResult[]>;
|
|
1588
|
+
post: Build_StopBuild;
|
|
818
1589
|
};
|
|
819
1590
|
};
|
|
820
1591
|
|
|
@@ -828,7 +1599,7 @@ export interface Client {
|
|
|
828
1599
|
*
|
|
829
1600
|
* /{repo}/-/commit-assets/download/{fileName}
|
|
830
1601
|
*/
|
|
831
|
-
get:
|
|
1602
|
+
get: Assets_GetCommitAssets;
|
|
832
1603
|
};
|
|
833
1604
|
};
|
|
834
1605
|
|
|
@@ -842,11 +1613,7 @@ export interface Client {
|
|
|
842
1613
|
*
|
|
843
1614
|
* /{repo}/-/contributor/trend
|
|
844
1615
|
*/
|
|
845
|
-
get:
|
|
846
|
-
repo: string;
|
|
847
|
-
limit?: number;
|
|
848
|
-
exclude_external_users?: boolean;
|
|
849
|
-
}) => Promise<WebRepoContribTrend>;
|
|
1616
|
+
get: RepoContributor_GetRepoContributorTrend;
|
|
850
1617
|
};
|
|
851
1618
|
};
|
|
852
1619
|
|
|
@@ -859,12 +1626,7 @@ export interface Client {
|
|
|
859
1626
|
*
|
|
860
1627
|
* /{repo}/-/files/{userIdKey}/{randomUUID}/{fileName}
|
|
861
1628
|
*/
|
|
862
|
-
get:
|
|
863
|
-
repo: string;
|
|
864
|
-
userIdKey: string;
|
|
865
|
-
randomUUID: string;
|
|
866
|
-
fileName: string;
|
|
867
|
-
}) => Promise<any>;
|
|
1629
|
+
get: Assets_GetFiles;
|
|
868
1630
|
|
|
869
1631
|
/***
|
|
870
1632
|
* 发起一个确认 files 的请求,上传的图片要调用此接口才能生效
|
|
@@ -874,13 +1636,7 @@ export interface Client {
|
|
|
874
1636
|
*
|
|
875
1637
|
* /{repo}/-/files/{userIdKey}/{randomUUID}/{fileName}
|
|
876
1638
|
*/
|
|
877
|
-
put:
|
|
878
|
-
repo: string;
|
|
879
|
-
userIdKey: string;
|
|
880
|
-
randomUUID: string;
|
|
881
|
-
fileName: string;
|
|
882
|
-
token: string;
|
|
883
|
-
}) => Promise<any>;
|
|
1639
|
+
put: Assets_PutFiles;
|
|
884
1640
|
};
|
|
885
1641
|
|
|
886
1642
|
forks: {
|
|
@@ -892,11 +1648,7 @@ export interface Client {
|
|
|
892
1648
|
*
|
|
893
1649
|
* /{repo}/-/forks
|
|
894
1650
|
*/
|
|
895
|
-
list:
|
|
896
|
-
repo: string;
|
|
897
|
-
page: number;
|
|
898
|
-
page_size: number;
|
|
899
|
-
}) => Promise<DtoForks[]>;
|
|
1651
|
+
list: Repositories_ListForksRepos;
|
|
900
1652
|
|
|
901
1653
|
/***
|
|
902
1654
|
* fork 仓库
|
|
@@ -906,7 +1658,7 @@ export interface Client {
|
|
|
906
1658
|
*
|
|
907
1659
|
* /{repo}/-/forks
|
|
908
1660
|
*/
|
|
909
|
-
post:
|
|
1661
|
+
post: Repositories_CreateAFork;
|
|
910
1662
|
};
|
|
911
1663
|
|
|
912
1664
|
git: {
|
|
@@ -919,10 +1671,7 @@ export interface Client {
|
|
|
919
1671
|
*
|
|
920
1672
|
* /{repo}/-/git/blobs
|
|
921
1673
|
*/
|
|
922
|
-
post:
|
|
923
|
-
repo: string;
|
|
924
|
-
post_blob_form: ApiPostBlobForm;
|
|
925
|
-
}) => Promise<any>;
|
|
1674
|
+
post: Git_CreateBlob;
|
|
926
1675
|
};
|
|
927
1676
|
|
|
928
1677
|
branches: {
|
|
@@ -934,11 +1683,7 @@ export interface Client {
|
|
|
934
1683
|
*
|
|
935
1684
|
* /{repo}/-/git/branches
|
|
936
1685
|
*/
|
|
937
|
-
list:
|
|
938
|
-
repo: string;
|
|
939
|
-
page?: number;
|
|
940
|
-
page_size?: number;
|
|
941
|
-
}) => Promise<ApiBranch[]>;
|
|
1686
|
+
list: Git_ListBranches;
|
|
942
1687
|
|
|
943
1688
|
/***
|
|
944
1689
|
* 创建新分支
|
|
@@ -948,10 +1693,7 @@ export interface Client {
|
|
|
948
1693
|
*
|
|
949
1694
|
* /{repo}/-/git/branches
|
|
950
1695
|
*/
|
|
951
|
-
post:
|
|
952
|
-
repo: string;
|
|
953
|
-
create_branch_form: OpenapiCreateBranchForm;
|
|
954
|
-
}) => Promise<any>;
|
|
1696
|
+
post: Git_CreateBranch;
|
|
955
1697
|
|
|
956
1698
|
/***
|
|
957
1699
|
* 删除指定分支
|
|
@@ -961,7 +1703,7 @@ export interface Client {
|
|
|
961
1703
|
*
|
|
962
1704
|
* /{repo}/-/git/branches/{branch}
|
|
963
1705
|
*/
|
|
964
|
-
delete:
|
|
1706
|
+
delete: Git_DeleteBranch;
|
|
965
1707
|
|
|
966
1708
|
/***
|
|
967
1709
|
* 查询指定分支
|
|
@@ -971,10 +1713,7 @@ export interface Client {
|
|
|
971
1713
|
*
|
|
972
1714
|
* /{repo}/-/git/branches/{branch}
|
|
973
1715
|
*/
|
|
974
|
-
get:
|
|
975
|
-
repo: string;
|
|
976
|
-
branch?: string;
|
|
977
|
-
}) => Promise<ApiBranchDetail>;
|
|
1716
|
+
get: Git_GetBranch;
|
|
978
1717
|
};
|
|
979
1718
|
|
|
980
1719
|
commitAnnotationsInBatch: {
|
|
@@ -986,10 +1725,7 @@ export interface Client {
|
|
|
986
1725
|
*
|
|
987
1726
|
* /{repo}/-/git/commit-annotations-in-batch
|
|
988
1727
|
*/
|
|
989
|
-
post:
|
|
990
|
-
repo: string;
|
|
991
|
-
get_commit_annotations_form: WebGetCommitAnnotationsInBatchForm;
|
|
992
|
-
}) => Promise<WebCommitAnnotationInBatch[]>;
|
|
1728
|
+
post: Git_GetCommitAnnotationsInBatch;
|
|
993
1729
|
};
|
|
994
1730
|
|
|
995
1731
|
commitAnnotations: {
|
|
@@ -1001,10 +1737,7 @@ export interface Client {
|
|
|
1001
1737
|
*
|
|
1002
1738
|
* /{repo}/-/git/commit-annotations/{sha}
|
|
1003
1739
|
*/
|
|
1004
|
-
list:
|
|
1005
|
-
repo: string;
|
|
1006
|
-
sha: string;
|
|
1007
|
-
}) => Promise<WebCommitAnnotation[]>;
|
|
1740
|
+
list: Git_GetCommitAnnotations;
|
|
1008
1741
|
|
|
1009
1742
|
/***
|
|
1010
1743
|
* 设定指定 commit 的元数据
|
|
@@ -1014,11 +1747,7 @@ export interface Client {
|
|
|
1014
1747
|
*
|
|
1015
1748
|
* /{repo}/-/git/commit-annotations/{sha}
|
|
1016
1749
|
*/
|
|
1017
|
-
put:
|
|
1018
|
-
repo: string;
|
|
1019
|
-
sha: string;
|
|
1020
|
-
put_commit_annotations_form: OpenapiPutCommitAnnotationsForm;
|
|
1021
|
-
}) => Promise<any>;
|
|
1750
|
+
put: Git_PutCommitAnnotations;
|
|
1022
1751
|
|
|
1023
1752
|
/***
|
|
1024
1753
|
* 删除指定 commit 的元数据
|
|
@@ -1028,11 +1757,7 @@ export interface Client {
|
|
|
1028
1757
|
*
|
|
1029
1758
|
* /{repo}/-/git/commit-annotations/{sha}/{key}
|
|
1030
1759
|
*/
|
|
1031
|
-
delete:
|
|
1032
|
-
repo: string;
|
|
1033
|
-
sha: string;
|
|
1034
|
-
key: string;
|
|
1035
|
-
}) => Promise<any>;
|
|
1760
|
+
delete: Git_DeleteCommitAnnotation;
|
|
1036
1761
|
};
|
|
1037
1762
|
|
|
1038
1763
|
commitAssets: {
|
|
@@ -1044,10 +1769,7 @@ export interface Client {
|
|
|
1044
1769
|
*
|
|
1045
1770
|
* /{repo}/-/git/commit-assets/{sha1}
|
|
1046
1771
|
*/
|
|
1047
|
-
list:
|
|
1048
|
-
repo: string;
|
|
1049
|
-
sha1: string;
|
|
1050
|
-
}) => Promise<ApiCommitAsset[]>;
|
|
1772
|
+
list: Git_GetCommitAssetsBySha;
|
|
1051
1773
|
|
|
1052
1774
|
assetUploadConfirmation: {
|
|
1053
1775
|
/***
|
|
@@ -1058,12 +1780,7 @@ export interface Client {
|
|
|
1058
1780
|
*
|
|
1059
1781
|
* /{repo}/-/git/commit-assets/{sha1}/asset-upload-confirmation/{token}/{asset_path}
|
|
1060
1782
|
*/
|
|
1061
|
-
post:
|
|
1062
|
-
repo: string;
|
|
1063
|
-
sha1: number;
|
|
1064
|
-
token: string;
|
|
1065
|
-
asset_path: string;
|
|
1066
|
-
}) => Promise<any>;
|
|
1783
|
+
post: Git_PostCommitAssetUploadConfirmation;
|
|
1067
1784
|
};
|
|
1068
1785
|
|
|
1069
1786
|
assetUploadUrl: {
|
|
@@ -1075,11 +1792,7 @@ export interface Client {
|
|
|
1075
1792
|
*
|
|
1076
1793
|
* /{repo}/-/git/commit-assets/{sha1}/asset-upload-url
|
|
1077
1794
|
*/
|
|
1078
|
-
post:
|
|
1079
|
-
repo: string;
|
|
1080
|
-
sha1: number;
|
|
1081
|
-
create_commit_asset_upload_url_form: OpenapiPostCommitAssetUploadUrlForm;
|
|
1082
|
-
}) => Promise<any>;
|
|
1795
|
+
post: Git_PostCommitAssetUploadURL;
|
|
1083
1796
|
};
|
|
1084
1797
|
|
|
1085
1798
|
/***
|
|
@@ -1090,11 +1803,7 @@ export interface Client {
|
|
|
1090
1803
|
*
|
|
1091
1804
|
* /{repo}/-/git/commit-assets/{sha1}/{asset_id}
|
|
1092
1805
|
*/
|
|
1093
|
-
delete:
|
|
1094
|
-
repo: string;
|
|
1095
|
-
sha1: string;
|
|
1096
|
-
asset_id: number;
|
|
1097
|
-
}) => Promise<any>;
|
|
1806
|
+
delete: Git_DeleteCommitAsset;
|
|
1098
1807
|
};
|
|
1099
1808
|
|
|
1100
1809
|
commitStatuses: {
|
|
@@ -1106,10 +1815,7 @@ export interface Client {
|
|
|
1106
1815
|
*
|
|
1107
1816
|
* /{repo}/-/git/commit-statuses/{commitish}
|
|
1108
1817
|
*/
|
|
1109
|
-
list:
|
|
1110
|
-
repo: string;
|
|
1111
|
-
commitish: string;
|
|
1112
|
-
}) => Promise<ApiCommitStatus[]>;
|
|
1818
|
+
list: Git_GetCommitStatuses;
|
|
1113
1819
|
};
|
|
1114
1820
|
|
|
1115
1821
|
commits: {
|
|
@@ -1121,16 +1827,7 @@ export interface Client {
|
|
|
1121
1827
|
*
|
|
1122
1828
|
* /{repo}/-/git/commits
|
|
1123
1829
|
*/
|
|
1124
|
-
list:
|
|
1125
|
-
repo: string;
|
|
1126
|
-
sha?: string;
|
|
1127
|
-
author?: string;
|
|
1128
|
-
committer?: string;
|
|
1129
|
-
since?: string;
|
|
1130
|
-
until?: string;
|
|
1131
|
-
page?: number;
|
|
1132
|
-
page_size?: number;
|
|
1133
|
-
}) => Promise<ApiCommit[]>;
|
|
1830
|
+
list: Git_ListCommits;
|
|
1134
1831
|
|
|
1135
1832
|
/***
|
|
1136
1833
|
* 查询指定 commit
|
|
@@ -1140,7 +1837,7 @@ export interface Client {
|
|
|
1140
1837
|
*
|
|
1141
1838
|
* /{repo}/-/git/commits/{ref}
|
|
1142
1839
|
*/
|
|
1143
|
-
get:
|
|
1840
|
+
get: Git_GetCommit;
|
|
1144
1841
|
};
|
|
1145
1842
|
|
|
1146
1843
|
compare: {
|
|
@@ -1152,10 +1849,7 @@ export interface Client {
|
|
|
1152
1849
|
*
|
|
1153
1850
|
* /{repo}/-/git/compare/{base_head}
|
|
1154
1851
|
*/
|
|
1155
|
-
get:
|
|
1156
|
-
repo: string;
|
|
1157
|
-
base_head: string;
|
|
1158
|
-
}) => Promise<ApiCompareResponse>;
|
|
1852
|
+
get: Git_GetCompareCommits;
|
|
1159
1853
|
};
|
|
1160
1854
|
|
|
1161
1855
|
contents: {
|
|
@@ -1167,11 +1861,7 @@ export interface Client {
|
|
|
1167
1861
|
*
|
|
1168
1862
|
* /{repo}/-/git/contents/{file_path}
|
|
1169
1863
|
*/
|
|
1170
|
-
get:
|
|
1171
|
-
repo: string;
|
|
1172
|
-
file_path: string;
|
|
1173
|
-
ref?: string;
|
|
1174
|
-
}) => Promise<ApiContent>;
|
|
1864
|
+
get: Git_GetContent;
|
|
1175
1865
|
};
|
|
1176
1866
|
|
|
1177
1867
|
head: {
|
|
@@ -1183,7 +1873,7 @@ export interface Client {
|
|
|
1183
1873
|
*
|
|
1184
1874
|
* /{repo}/-/git/head
|
|
1185
1875
|
*/
|
|
1186
|
-
get:
|
|
1876
|
+
get: Git_GetHead;
|
|
1187
1877
|
};
|
|
1188
1878
|
|
|
1189
1879
|
tagAnnotations: {
|
|
@@ -1195,10 +1885,7 @@ export interface Client {
|
|
|
1195
1885
|
*
|
|
1196
1886
|
* /{repo}/-/git/tag-annotations/{tag_with_key}
|
|
1197
1887
|
*/
|
|
1198
|
-
delete:
|
|
1199
|
-
repo: string;
|
|
1200
|
-
tag_with_key: string;
|
|
1201
|
-
}) => Promise<any>;
|
|
1888
|
+
delete: Git_DeleteTagAnnotation;
|
|
1202
1889
|
|
|
1203
1890
|
/***
|
|
1204
1891
|
* 查询指定 tag 的元数据
|
|
@@ -1208,10 +1895,7 @@ export interface Client {
|
|
|
1208
1895
|
*
|
|
1209
1896
|
* /{repo}/-/git/tag-annotations/{tag}
|
|
1210
1897
|
*/
|
|
1211
|
-
list:
|
|
1212
|
-
repo: string;
|
|
1213
|
-
tag: string;
|
|
1214
|
-
}) => Promise<WebTagAnnotation[]>;
|
|
1898
|
+
list: Git_GetTagAnnotations;
|
|
1215
1899
|
|
|
1216
1900
|
/***
|
|
1217
1901
|
* 设定指定 tag 的元数据
|
|
@@ -1221,11 +1905,7 @@ export interface Client {
|
|
|
1221
1905
|
*
|
|
1222
1906
|
* /{repo}/-/git/tag-annotations/{tag}
|
|
1223
1907
|
*/
|
|
1224
|
-
put:
|
|
1225
|
-
repo: string;
|
|
1226
|
-
tag: string;
|
|
1227
|
-
put_tag_annotations_form: OpenapiPutTagAnnotationsForm;
|
|
1228
|
-
}) => Promise<any>;
|
|
1908
|
+
put: Git_PutTagAnnotations;
|
|
1229
1909
|
};
|
|
1230
1910
|
|
|
1231
1911
|
tags: {
|
|
@@ -1237,11 +1917,7 @@ export interface Client {
|
|
|
1237
1917
|
*
|
|
1238
1918
|
* /{repo}/-/git/tags
|
|
1239
1919
|
*/
|
|
1240
|
-
list:
|
|
1241
|
-
repo: string;
|
|
1242
|
-
page?: number;
|
|
1243
|
-
page_size?: number;
|
|
1244
|
-
}) => Promise<ApiTag[]>;
|
|
1920
|
+
list: Git_ListTags;
|
|
1245
1921
|
|
|
1246
1922
|
/***
|
|
1247
1923
|
* 创建一个 tag
|
|
@@ -1251,10 +1927,7 @@ export interface Client {
|
|
|
1251
1927
|
*
|
|
1252
1928
|
* /{repo}/-/git/tags
|
|
1253
1929
|
*/
|
|
1254
|
-
post:
|
|
1255
|
-
repo: string;
|
|
1256
|
-
post_tag_form: ApiPostTagFrom;
|
|
1257
|
-
}) => Promise<any>;
|
|
1930
|
+
post: Git_CreateTag;
|
|
1258
1931
|
|
|
1259
1932
|
/***
|
|
1260
1933
|
* 删除指定标签
|
|
@@ -1264,7 +1937,7 @@ export interface Client {
|
|
|
1264
1937
|
*
|
|
1265
1938
|
* /{repo}/-/git/tags/{tag}
|
|
1266
1939
|
*/
|
|
1267
|
-
delete:
|
|
1940
|
+
delete: Git_DeleteTag;
|
|
1268
1941
|
|
|
1269
1942
|
/***
|
|
1270
1943
|
* 查询指定 Tag
|
|
@@ -1274,7 +1947,7 @@ export interface Client {
|
|
|
1274
1947
|
*
|
|
1275
1948
|
* /{repo}/-/git/tags/{tag}
|
|
1276
1949
|
*/
|
|
1277
|
-
get:
|
|
1950
|
+
get: Git_GetTag;
|
|
1278
1951
|
};
|
|
1279
1952
|
};
|
|
1280
1953
|
|
|
@@ -1287,11 +1960,7 @@ export interface Client {
|
|
|
1287
1960
|
*
|
|
1288
1961
|
* /{repo}/-/imgs/{userIdKey}/{fileName}
|
|
1289
1962
|
*/
|
|
1290
|
-
get:
|
|
1291
|
-
repo: string;
|
|
1292
|
-
userIdKey: string;
|
|
1293
|
-
fileName: string;
|
|
1294
|
-
}) => Promise<any>;
|
|
1963
|
+
get: Assets_GetImgs;
|
|
1295
1964
|
|
|
1296
1965
|
/***
|
|
1297
1966
|
* 发起一个确认 imgs 的请求,上传的图片要调用此接口才能生效
|
|
@@ -1301,12 +1970,7 @@ export interface Client {
|
|
|
1301
1970
|
*
|
|
1302
1971
|
* /{repo}/-/imgs/{userIdKey}/{fileName}
|
|
1303
1972
|
*/
|
|
1304
|
-
put:
|
|
1305
|
-
repo: string;
|
|
1306
|
-
userIdKey: string;
|
|
1307
|
-
fileName: string;
|
|
1308
|
-
token: string;
|
|
1309
|
-
}) => Promise<any>;
|
|
1973
|
+
put: Assets_PutImgs;
|
|
1310
1974
|
};
|
|
1311
1975
|
|
|
1312
1976
|
inheritMembers: {
|
|
@@ -1318,13 +1982,7 @@ export interface Client {
|
|
|
1318
1982
|
*
|
|
1319
1983
|
* /{repo}/-/inherit-members
|
|
1320
1984
|
*/
|
|
1321
|
-
list:
|
|
1322
|
-
repo: string;
|
|
1323
|
-
search?: string;
|
|
1324
|
-
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
1325
|
-
page?: number;
|
|
1326
|
-
page_size?: number;
|
|
1327
|
-
}) => Promise<DtoListInheritMembers[]>;
|
|
1985
|
+
list: Collaborators_ListInheritMembersOfRepo;
|
|
1328
1986
|
};
|
|
1329
1987
|
|
|
1330
1988
|
issues: {
|
|
@@ -1336,20 +1994,7 @@ export interface Client {
|
|
|
1336
1994
|
*
|
|
1337
1995
|
* /{repo}/-/issues
|
|
1338
1996
|
*/
|
|
1339
|
-
list:
|
|
1340
|
-
repo: string;
|
|
1341
|
-
page?: number;
|
|
1342
|
-
page_size?: number;
|
|
1343
|
-
state?: string;
|
|
1344
|
-
keyword?: string;
|
|
1345
|
-
priority?: string;
|
|
1346
|
-
labels?: string;
|
|
1347
|
-
authors?: string;
|
|
1348
|
-
assignees?: string;
|
|
1349
|
-
updated_time_begin?: string;
|
|
1350
|
-
updated_time_end?: string;
|
|
1351
|
-
order_by?: string;
|
|
1352
|
-
}) => Promise<ApiIssue[]>;
|
|
1997
|
+
list: Issues_ListIssues;
|
|
1353
1998
|
|
|
1354
1999
|
/***
|
|
1355
2000
|
* 创建一个 Issue
|
|
@@ -1359,10 +2004,7 @@ export interface Client {
|
|
|
1359
2004
|
*
|
|
1360
2005
|
* /{repo}/-/issues
|
|
1361
2006
|
*/
|
|
1362
|
-
post:
|
|
1363
|
-
repo: string;
|
|
1364
|
-
post_issue_form: ApiPostIssueForm;
|
|
1365
|
-
}) => Promise<any>;
|
|
2007
|
+
post: Issues_CreateIssue;
|
|
1366
2008
|
|
|
1367
2009
|
/***
|
|
1368
2010
|
* 查询指定的 Issues
|
|
@@ -1372,10 +2014,7 @@ export interface Client {
|
|
|
1372
2014
|
*
|
|
1373
2015
|
* /{repo}/-/issues/{number}
|
|
1374
2016
|
*/
|
|
1375
|
-
get:
|
|
1376
|
-
repo: string;
|
|
1377
|
-
number: number;
|
|
1378
|
-
}) => Promise<ApiIssueDetail>;
|
|
2017
|
+
get: Issues_GetIssue;
|
|
1379
2018
|
|
|
1380
2019
|
/***
|
|
1381
2020
|
* 更新一个 Issue
|
|
@@ -1385,11 +2024,7 @@ export interface Client {
|
|
|
1385
2024
|
*
|
|
1386
2025
|
* /{repo}/-/issues/{number}
|
|
1387
2026
|
*/
|
|
1388
|
-
patch:
|
|
1389
|
-
repo: string;
|
|
1390
|
-
number: number;
|
|
1391
|
-
patch_issue_form: ApiPatchIssueForm;
|
|
1392
|
-
}) => Promise<ApiIssueDetail>;
|
|
2027
|
+
patch: Issues_UpdateIssue;
|
|
1393
2028
|
|
|
1394
2029
|
comments: {
|
|
1395
2030
|
/***
|
|
@@ -1400,12 +2035,7 @@ export interface Client {
|
|
|
1400
2035
|
*
|
|
1401
2036
|
* /{repo}/-/issues/{number}/comments
|
|
1402
2037
|
*/
|
|
1403
|
-
list:
|
|
1404
|
-
repo: string;
|
|
1405
|
-
number: number;
|
|
1406
|
-
page?: number;
|
|
1407
|
-
page_size?: number;
|
|
1408
|
-
}) => Promise<ApiIssueComment[]>;
|
|
2038
|
+
list: Issues_ListIssueComments;
|
|
1409
2039
|
|
|
1410
2040
|
/***
|
|
1411
2041
|
* 创建一个 Issue Comment
|
|
@@ -1415,11 +2045,7 @@ export interface Client {
|
|
|
1415
2045
|
*
|
|
1416
2046
|
* /{repo}/-/issues/{number}/comments
|
|
1417
2047
|
*/
|
|
1418
|
-
post:
|
|
1419
|
-
repo: string;
|
|
1420
|
-
number: number;
|
|
1421
|
-
post_issue_comment_form: ApiPostIssueCommentForm;
|
|
1422
|
-
}) => Promise<any>;
|
|
2048
|
+
post: Issues_PostIssueComment;
|
|
1423
2049
|
|
|
1424
2050
|
/***
|
|
1425
2051
|
* 获取一个 Issue Comment
|
|
@@ -1429,11 +2055,7 @@ export interface Client {
|
|
|
1429
2055
|
*
|
|
1430
2056
|
* /{repo}/-/issues/{number}/comments/{comment_id}
|
|
1431
2057
|
*/
|
|
1432
|
-
get:
|
|
1433
|
-
repo: string;
|
|
1434
|
-
number: number;
|
|
1435
|
-
comment_id: number;
|
|
1436
|
-
}) => Promise<ApiIssueComment>;
|
|
2058
|
+
get: Issues_GetIssueComment;
|
|
1437
2059
|
|
|
1438
2060
|
/***
|
|
1439
2061
|
* 修改一个 Issue Comment
|
|
@@ -1443,12 +2065,7 @@ export interface Client {
|
|
|
1443
2065
|
*
|
|
1444
2066
|
* /{repo}/-/issues/{number}/comments/{comment_id}
|
|
1445
2067
|
*/
|
|
1446
|
-
patch:
|
|
1447
|
-
repo: string;
|
|
1448
|
-
number: number;
|
|
1449
|
-
comment_id: number;
|
|
1450
|
-
patch_issue_comment_form: ApiPatchIssueCommentForm;
|
|
1451
|
-
}) => Promise<ApiIssueComment>;
|
|
2068
|
+
patch: Issues_PatchIssueComment;
|
|
1452
2069
|
};
|
|
1453
2070
|
|
|
1454
2071
|
labels: {
|
|
@@ -1460,7 +2077,37 @@ export interface Client {
|
|
|
1460
2077
|
*
|
|
1461
2078
|
* /{repo}/-/issues/{number}/labels
|
|
1462
2079
|
*/
|
|
1463
|
-
delete:
|
|
2080
|
+
delete: Issues_DeleteIssueLabels;
|
|
2081
|
+
|
|
2082
|
+
/***
|
|
2083
|
+
* 查询 Issue 的标签(label) 列表
|
|
2084
|
+
*
|
|
2085
|
+
* 访问令牌调用此接口需包含以下权限
|
|
2086
|
+
* repo-notes:r
|
|
2087
|
+
*
|
|
2088
|
+
* /{repo}/-/issues/{number}/labels
|
|
2089
|
+
*/
|
|
2090
|
+
list: Issues_ListIssueLabels;
|
|
2091
|
+
|
|
2092
|
+
/***
|
|
2093
|
+
* 新增 Issue 标签
|
|
2094
|
+
*
|
|
2095
|
+
* 访问令牌调用此接口需包含以下权限
|
|
2096
|
+
* repo-notes:rw
|
|
2097
|
+
*
|
|
2098
|
+
* /{repo}/-/issues/{number}/labels
|
|
2099
|
+
*/
|
|
2100
|
+
post: Issues_PostIssueLabels;
|
|
2101
|
+
|
|
2102
|
+
/***
|
|
2103
|
+
* 设置 Issue 标签
|
|
2104
|
+
*
|
|
2105
|
+
* 访问令牌调用此接口需包含以下权限
|
|
2106
|
+
* repo-notes:rw
|
|
2107
|
+
*
|
|
2108
|
+
* /{repo}/-/issues/{number}/labels
|
|
2109
|
+
*/
|
|
2110
|
+
put: Issues_PutIssueLabels;
|
|
1464
2111
|
|
|
1465
2112
|
/***
|
|
1466
2113
|
* 删除 Issue 标签
|
|
@@ -1470,11 +2117,7 @@ export interface Client {
|
|
|
1470
2117
|
*
|
|
1471
2118
|
* /{repo}/-/issues/{number}/labels/{name}
|
|
1472
2119
|
*/
|
|
1473
|
-
deleteByName:
|
|
1474
|
-
repo: string;
|
|
1475
|
-
number: number;
|
|
1476
|
-
name: string;
|
|
1477
|
-
}) => Promise<ApiLabel>;
|
|
2120
|
+
deleteByName: Issues_DeleteIssueLabel;
|
|
1478
2121
|
};
|
|
1479
2122
|
};
|
|
1480
2123
|
|
|
@@ -1487,12 +2130,7 @@ export interface Client {
|
|
|
1487
2130
|
*
|
|
1488
2131
|
* /{repo}/-/labels
|
|
1489
2132
|
*/
|
|
1490
|
-
list:
|
|
1491
|
-
repo: string;
|
|
1492
|
-
page?: number;
|
|
1493
|
-
page_size?: number;
|
|
1494
|
-
keyword?: string;
|
|
1495
|
-
}) => Promise<ApiLabel[]>;
|
|
2133
|
+
list: RepoLabels_ListLabels;
|
|
1496
2134
|
|
|
1497
2135
|
/***
|
|
1498
2136
|
* 创建一个 标签
|
|
@@ -1502,10 +2140,7 @@ export interface Client {
|
|
|
1502
2140
|
*
|
|
1503
2141
|
* /{repo}/-/labels
|
|
1504
2142
|
*/
|
|
1505
|
-
post:
|
|
1506
|
-
repo: string;
|
|
1507
|
-
post_label_form: ApiPostLabelForm;
|
|
1508
|
-
}) => Promise<any>;
|
|
2143
|
+
post: RepoLabels_PostLabel;
|
|
1509
2144
|
|
|
1510
2145
|
/***
|
|
1511
2146
|
* 删除指定的仓库标签 label
|
|
@@ -1515,7 +2150,7 @@ export interface Client {
|
|
|
1515
2150
|
*
|
|
1516
2151
|
* /{repo}/-/labels/{name}
|
|
1517
2152
|
*/
|
|
1518
|
-
delete:
|
|
2153
|
+
delete: RepoLabels_DeleteLabel;
|
|
1519
2154
|
|
|
1520
2155
|
/***
|
|
1521
2156
|
* 更新标签信息
|
|
@@ -1525,32 +2160,19 @@ export interface Client {
|
|
|
1525
2160
|
*
|
|
1526
2161
|
* /{repo}/-/labels/{name}
|
|
1527
2162
|
*/
|
|
1528
|
-
patch:
|
|
1529
|
-
repo: string;
|
|
1530
|
-
name: string;
|
|
1531
|
-
patch_label_form: ApiPatchLabelForm;
|
|
1532
|
-
}) => Promise<ApiLabel>;
|
|
2163
|
+
patch: RepoLabels_PatchLabel;
|
|
1533
2164
|
};
|
|
1534
2165
|
|
|
1535
2166
|
listMembers: {
|
|
1536
2167
|
/***
|
|
1537
|
-
*
|
|
2168
|
+
* 获取指定仓库内的有效成员列表,包含继承成员
|
|
1538
2169
|
*
|
|
1539
2170
|
* 访问令牌调用此接口需包含以下权限
|
|
1540
2171
|
* repo-manage:r
|
|
1541
2172
|
*
|
|
1542
2173
|
* /{repo}/-/list-members
|
|
1543
2174
|
*/
|
|
1544
|
-
list:
|
|
1545
|
-
repo: string;
|
|
1546
|
-
page?: number;
|
|
1547
|
-
page_size?: number;
|
|
1548
|
-
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
1549
|
-
search?: string;
|
|
1550
|
-
names?: string;
|
|
1551
|
-
order_by?: "created_at" | "stars" | "follower";
|
|
1552
|
-
desc?: boolean;
|
|
1553
|
-
}) => Promise<DtoUsersWithAccessLevelInSlug[]>;
|
|
2175
|
+
list: Collaborators_ListAllMembers;
|
|
1554
2176
|
};
|
|
1555
2177
|
|
|
1556
2178
|
members: {
|
|
@@ -1562,13 +2184,7 @@ export interface Client {
|
|
|
1562
2184
|
*
|
|
1563
2185
|
* /{repo}/-/members
|
|
1564
2186
|
*/
|
|
1565
|
-
list:
|
|
1566
|
-
repo: string;
|
|
1567
|
-
page?: number;
|
|
1568
|
-
page_size?: number;
|
|
1569
|
-
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
1570
|
-
search?: string;
|
|
1571
|
-
}) => Promise<DtoUsersWithAccessLevelInSlug[]>;
|
|
2187
|
+
list: Collaborators_ListMembersOfRepo;
|
|
1572
2188
|
|
|
1573
2189
|
accessLevel: {
|
|
1574
2190
|
/***
|
|
@@ -1579,10 +2195,7 @@ export interface Client {
|
|
|
1579
2195
|
*
|
|
1580
2196
|
* /{repo}/-/members/access-level
|
|
1581
2197
|
*/
|
|
1582
|
-
get:
|
|
1583
|
-
repo: string;
|
|
1584
|
-
include_inherit?: boolean;
|
|
1585
|
-
}) => Promise<DtoMemberAccessLevelInSlugUnion>;
|
|
2198
|
+
get: Contributors_GetMemberAccessLevelOfRepo;
|
|
1586
2199
|
|
|
1587
2200
|
/***
|
|
1588
2201
|
* 获取指定组织或仓库内指定成员的权限信息, 结果按组织层级来展示, 包含上层组织的权限继承信息
|
|
@@ -1592,10 +2205,7 @@ export interface Client {
|
|
|
1592
2205
|
*
|
|
1593
2206
|
* /{repo}/-/members/{username}/access-level
|
|
1594
2207
|
*/
|
|
1595
|
-
list:
|
|
1596
|
-
repo: string;
|
|
1597
|
-
username: string;
|
|
1598
|
-
}) => Promise<DtoMemberAccessLevel[]>;
|
|
2208
|
+
list: Contributors_ListMemberAccessLevelOfRepo;
|
|
1599
2209
|
};
|
|
1600
2210
|
|
|
1601
2211
|
/***
|
|
@@ -1606,7 +2216,7 @@ export interface Client {
|
|
|
1606
2216
|
*
|
|
1607
2217
|
* /{repo}/-/members/{username}
|
|
1608
2218
|
*/
|
|
1609
|
-
delete:
|
|
2219
|
+
delete: Collaborators_DeleteMembersOfRepo;
|
|
1610
2220
|
|
|
1611
2221
|
/***
|
|
1612
2222
|
* 更新指定组织或仓库内的直接成员权限信息
|
|
@@ -1616,11 +2226,7 @@ export interface Client {
|
|
|
1616
2226
|
*
|
|
1617
2227
|
* /{repo}/-/members/{username}
|
|
1618
2228
|
*/
|
|
1619
|
-
put:
|
|
1620
|
-
repo: string;
|
|
1621
|
-
username: string;
|
|
1622
|
-
request: DtoUpdateMembersRequest;
|
|
1623
|
-
}) => Promise<any>;
|
|
2229
|
+
put: Collaborators_UpdateMembersOfRepo;
|
|
1624
2230
|
};
|
|
1625
2231
|
|
|
1626
2232
|
outsideCollaborators: {
|
|
@@ -1632,13 +2238,7 @@ export interface Client {
|
|
|
1632
2238
|
*
|
|
1633
2239
|
* /{repo}/-/outside-collaborators
|
|
1634
2240
|
*/
|
|
1635
|
-
list:
|
|
1636
|
-
repo: string;
|
|
1637
|
-
page?: number;
|
|
1638
|
-
page_size?: number;
|
|
1639
|
-
role?: "Guest" | "Reporter" | "Developer" | "Master";
|
|
1640
|
-
search?: string;
|
|
1641
|
-
}) => Promise<DtoOutsideCollaboratorInRepo[]>;
|
|
2241
|
+
list: Collaborators_ListOutsideCollaborators;
|
|
1642
2242
|
|
|
1643
2243
|
/***
|
|
1644
2244
|
* 删除指定仓库的外部贡献者, 包含两种场景: 1. 作为外部贡献者的用户自己退出仓库 2. 由仓库管理者移除指定的外部贡献者
|
|
@@ -1648,7 +2248,7 @@ export interface Client {
|
|
|
1648
2248
|
*
|
|
1649
2249
|
* /{repo}/-/outside-collaborators/{username}
|
|
1650
2250
|
*/
|
|
1651
|
-
delete:
|
|
2251
|
+
delete: Collaborators_DeleteOutsideCollaborators;
|
|
1652
2252
|
|
|
1653
2253
|
/***
|
|
1654
2254
|
* 更新指定仓库的外部贡献者权限信息
|
|
@@ -1658,11 +2258,7 @@ export interface Client {
|
|
|
1658
2258
|
*
|
|
1659
2259
|
* /{repo}/-/outside-collaborators/{username}
|
|
1660
2260
|
*/
|
|
1661
|
-
put:
|
|
1662
|
-
repo: string;
|
|
1663
|
-
username: string;
|
|
1664
|
-
role: "Guest" | "Reporter" | "Developer";
|
|
1665
|
-
}) => Promise<any>;
|
|
2261
|
+
put: Collaborators_UpdateOutsideCollaborators;
|
|
1666
2262
|
};
|
|
1667
2263
|
|
|
1668
2264
|
pullInBatch: {
|
|
@@ -1674,10 +2270,7 @@ export interface Client {
|
|
|
1674
2270
|
*
|
|
1675
2271
|
* /{repo}/-/pull-in-batch
|
|
1676
2272
|
*/
|
|
1677
|
-
list:
|
|
1678
|
-
repo: string;
|
|
1679
|
-
n: any[];
|
|
1680
|
-
}) => Promise<ApiPullRequestInfo[]>;
|
|
2273
|
+
list: Pulls_ListPullsByNumbers;
|
|
1681
2274
|
};
|
|
1682
2275
|
|
|
1683
2276
|
pulls: {
|
|
@@ -1689,15 +2282,7 @@ export interface Client {
|
|
|
1689
2282
|
*
|
|
1690
2283
|
* /{repo}/-/pulls
|
|
1691
2284
|
*/
|
|
1692
|
-
list:
|
|
1693
|
-
repo: string;
|
|
1694
|
-
page?: number;
|
|
1695
|
-
page_size?: number;
|
|
1696
|
-
state?: string;
|
|
1697
|
-
authors?: string;
|
|
1698
|
-
reviewers?: string;
|
|
1699
|
-
assignees?: string;
|
|
1700
|
-
}) => Promise<ApiPullRequest[]>;
|
|
2285
|
+
list: Pulls_ListPulls;
|
|
1701
2286
|
|
|
1702
2287
|
/***
|
|
1703
2288
|
* [openapi] 新增一个 Pull
|
|
@@ -1707,10 +2292,7 @@ export interface Client {
|
|
|
1707
2292
|
*
|
|
1708
2293
|
* /{repo}/-/pulls
|
|
1709
2294
|
*/
|
|
1710
|
-
post:
|
|
1711
|
-
repo: string;
|
|
1712
|
-
post_pull_form: ApiPullCreationForm;
|
|
1713
|
-
}) => Promise<any>;
|
|
2295
|
+
post: Pulls_PostPull;
|
|
1714
2296
|
|
|
1715
2297
|
/***
|
|
1716
2298
|
* [openapi] 查询指定 Pull
|
|
@@ -1720,7 +2302,7 @@ export interface Client {
|
|
|
1720
2302
|
*
|
|
1721
2303
|
* /{repo}/-/pulls/{number}
|
|
1722
2304
|
*/
|
|
1723
|
-
get:
|
|
2305
|
+
get: Pulls_GetPull;
|
|
1724
2306
|
|
|
1725
2307
|
/***
|
|
1726
2308
|
* [openapi] 更新一个 Pull Request
|
|
@@ -1730,11 +2312,7 @@ export interface Client {
|
|
|
1730
2312
|
*
|
|
1731
2313
|
* /{repo}/-/pulls/{number}
|
|
1732
2314
|
*/
|
|
1733
|
-
patch:
|
|
1734
|
-
repo: string;
|
|
1735
|
-
number: number;
|
|
1736
|
-
update_pull_request_form: ApiPatchPullRequest;
|
|
1737
|
-
}) => Promise<ApiPull>;
|
|
2315
|
+
patch: Pulls_PatchPull;
|
|
1738
2316
|
|
|
1739
2317
|
comments: {
|
|
1740
2318
|
/***
|
|
@@ -1745,12 +2323,7 @@ export interface Client {
|
|
|
1745
2323
|
*
|
|
1746
2324
|
* /{repo}/-/pulls/{number}/comments
|
|
1747
2325
|
*/
|
|
1748
|
-
list:
|
|
1749
|
-
repo: string;
|
|
1750
|
-
number: string;
|
|
1751
|
-
page?: number;
|
|
1752
|
-
page_size?: number;
|
|
1753
|
-
}) => Promise<ApiPullRequestComment[]>;
|
|
2326
|
+
list: Pulls_ListPullComments;
|
|
1754
2327
|
|
|
1755
2328
|
/***
|
|
1756
2329
|
* [openapi] 新增一个 Pull Comment
|
|
@@ -1760,11 +2333,7 @@ export interface Client {
|
|
|
1760
2333
|
*
|
|
1761
2334
|
* /{repo}/-/pulls/{number}/comments
|
|
1762
2335
|
*/
|
|
1763
|
-
post:
|
|
1764
|
-
repo: string;
|
|
1765
|
-
number: number;
|
|
1766
|
-
post_pull_comment_form: ApiPullCommentCreationForm;
|
|
1767
|
-
}) => Promise<any>;
|
|
2336
|
+
post: Pulls_PostPullComment;
|
|
1768
2337
|
};
|
|
1769
2338
|
|
|
1770
2339
|
labels: {
|
|
@@ -1776,7 +2345,7 @@ export interface Client {
|
|
|
1776
2345
|
*
|
|
1777
2346
|
* /{repo}/-/pulls/{number}/labels
|
|
1778
2347
|
*/
|
|
1779
|
-
delete:
|
|
2348
|
+
delete: Pulls_DeletePullLabels;
|
|
1780
2349
|
|
|
1781
2350
|
/***
|
|
1782
2351
|
* 查询 Pull 的标签(label) 列表
|
|
@@ -1786,12 +2355,7 @@ export interface Client {
|
|
|
1786
2355
|
*
|
|
1787
2356
|
* /{repo}/-/pulls/{number}/labels
|
|
1788
2357
|
*/
|
|
1789
|
-
list:
|
|
1790
|
-
repo: string;
|
|
1791
|
-
number: number;
|
|
1792
|
-
page?: number;
|
|
1793
|
-
page_size?: number;
|
|
1794
|
-
}) => Promise<ApiLabel[]>;
|
|
2358
|
+
list: Pulls_ListPullLabels;
|
|
1795
2359
|
|
|
1796
2360
|
/***
|
|
1797
2361
|
* 新增 Pull 标签
|
|
@@ -1801,11 +2365,7 @@ export interface Client {
|
|
|
1801
2365
|
*
|
|
1802
2366
|
* /{repo}/-/pulls/{number}/labels
|
|
1803
2367
|
*/
|
|
1804
|
-
post:
|
|
1805
|
-
repo: string;
|
|
1806
|
-
number: number;
|
|
1807
|
-
post_pull_labels_form: ApiPostPullLabelsForm;
|
|
1808
|
-
}) => Promise<ApiLabel>;
|
|
2368
|
+
post: Pulls_PostPullLabels;
|
|
1809
2369
|
|
|
1810
2370
|
/***
|
|
1811
2371
|
* 设置 Pull 标签
|
|
@@ -1815,11 +2375,7 @@ export interface Client {
|
|
|
1815
2375
|
*
|
|
1816
2376
|
* /{repo}/-/pulls/{number}/labels
|
|
1817
2377
|
*/
|
|
1818
|
-
put:
|
|
1819
|
-
repo: string;
|
|
1820
|
-
number: number;
|
|
1821
|
-
put_pull_labels_form: ApiPutPullLabelsForm;
|
|
1822
|
-
}) => Promise<ApiLabel>;
|
|
2378
|
+
put: Pulls_PutPullLabels;
|
|
1823
2379
|
|
|
1824
2380
|
/***
|
|
1825
2381
|
* 删除 Pull 标签
|
|
@@ -1829,11 +2385,7 @@ export interface Client {
|
|
|
1829
2385
|
*
|
|
1830
2386
|
* /{repo}/-/pulls/{number}/labels/{name}
|
|
1831
2387
|
*/
|
|
1832
|
-
deleteByName:
|
|
1833
|
-
repo: string;
|
|
1834
|
-
number: number;
|
|
1835
|
-
name: string;
|
|
1836
|
-
}) => Promise<ApiLabel>;
|
|
2388
|
+
deleteByName: Pulls_DeletePullLabel;
|
|
1837
2389
|
};
|
|
1838
2390
|
|
|
1839
2391
|
merge: {
|
|
@@ -1845,11 +2397,7 @@ export interface Client {
|
|
|
1845
2397
|
*
|
|
1846
2398
|
* /{repo}/-/pulls/{number}/merge
|
|
1847
2399
|
*/
|
|
1848
|
-
put:
|
|
1849
|
-
repo: string;
|
|
1850
|
-
number: number;
|
|
1851
|
-
merge_pull_request_form: ApiMergePullRequest;
|
|
1852
|
-
}) => Promise<ApiMergePullResponse>;
|
|
2400
|
+
put: Pulls_MergePull;
|
|
1853
2401
|
};
|
|
1854
2402
|
|
|
1855
2403
|
reviews: {
|
|
@@ -1861,11 +2409,7 @@ export interface Client {
|
|
|
1861
2409
|
*
|
|
1862
2410
|
* /{repo}/-/pulls/{number}/reviews
|
|
1863
2411
|
*/
|
|
1864
|
-
post:
|
|
1865
|
-
repo: string;
|
|
1866
|
-
number: number;
|
|
1867
|
-
post_pull_review_form: ApiPullReviewCreationForm;
|
|
1868
|
-
}) => Promise<any>;
|
|
2412
|
+
post: Pulls_PostPullReview;
|
|
1869
2413
|
};
|
|
1870
2414
|
};
|
|
1871
2415
|
|
|
@@ -1878,11 +2422,7 @@ export interface Client {
|
|
|
1878
2422
|
*
|
|
1879
2423
|
* /{repo}/-/releases
|
|
1880
2424
|
*/
|
|
1881
|
-
list:
|
|
1882
|
-
repo: string;
|
|
1883
|
-
page?: number;
|
|
1884
|
-
page_size?: number;
|
|
1885
|
-
}) => Promise<ApiRelease[]>;
|
|
2425
|
+
list: Releases_ListReleases;
|
|
1886
2426
|
|
|
1887
2427
|
/***
|
|
1888
2428
|
* [openapi] 新增一个 Release
|
|
@@ -1892,10 +2432,7 @@ export interface Client {
|
|
|
1892
2432
|
*
|
|
1893
2433
|
* /{repo}/-/releases
|
|
1894
2434
|
*/
|
|
1895
|
-
post:
|
|
1896
|
-
repo: string;
|
|
1897
|
-
create_release_form: OpenapiPostReleaseForm;
|
|
1898
|
-
}) => Promise<any>;
|
|
2435
|
+
post: Releases_PostRelease;
|
|
1899
2436
|
|
|
1900
2437
|
download: {
|
|
1901
2438
|
/***
|
|
@@ -1906,7 +2443,7 @@ export interface Client {
|
|
|
1906
2443
|
*
|
|
1907
2444
|
* /{repo}/-/releases/download/{fileName}
|
|
1908
2445
|
*/
|
|
1909
|
-
get:
|
|
2446
|
+
get: Assets_GetReleasesAsset;
|
|
1910
2447
|
};
|
|
1911
2448
|
|
|
1912
2449
|
tags: {
|
|
@@ -1918,7 +2455,7 @@ export interface Client {
|
|
|
1918
2455
|
*
|
|
1919
2456
|
* /{repo}/-/releases/tags/{tag}
|
|
1920
2457
|
*/
|
|
1921
|
-
get:
|
|
2458
|
+
get: Releases_GetReleaseByTag;
|
|
1922
2459
|
};
|
|
1923
2460
|
|
|
1924
2461
|
/***
|
|
@@ -1929,7 +2466,7 @@ export interface Client {
|
|
|
1929
2466
|
*
|
|
1930
2467
|
* /{repo}/-/releases/{release_id}
|
|
1931
2468
|
*/
|
|
1932
|
-
delete:
|
|
2469
|
+
delete: Releases_DeleteRelease;
|
|
1933
2470
|
|
|
1934
2471
|
/***
|
|
1935
2472
|
* [openapi] 根据 id 查询指定 release
|
|
@@ -1939,10 +2476,7 @@ export interface Client {
|
|
|
1939
2476
|
*
|
|
1940
2477
|
* /{repo}/-/releases/{release_id}
|
|
1941
2478
|
*/
|
|
1942
|
-
get:
|
|
1943
|
-
repo: string;
|
|
1944
|
-
release_id: number;
|
|
1945
|
-
}) => Promise<ApiRelease>;
|
|
2479
|
+
get: Releases_GetReleaseByID;
|
|
1946
2480
|
|
|
1947
2481
|
/***
|
|
1948
2482
|
* [openapi] 更新 release
|
|
@@ -1952,11 +2486,7 @@ export interface Client {
|
|
|
1952
2486
|
*
|
|
1953
2487
|
* /{repo}/-/releases/{release_id}
|
|
1954
2488
|
*/
|
|
1955
|
-
patch:
|
|
1956
|
-
repo: string;
|
|
1957
|
-
release_id: number;
|
|
1958
|
-
patch_release_form: OpenapiPatchReleaseForm;
|
|
1959
|
-
}) => Promise<any>;
|
|
2489
|
+
patch: Releases_PatchRelease;
|
|
1960
2490
|
|
|
1961
2491
|
assetUploadConfirmation: {
|
|
1962
2492
|
/***
|
|
@@ -1967,12 +2497,7 @@ export interface Client {
|
|
|
1967
2497
|
*
|
|
1968
2498
|
* /{repo}/-/releases/{release_id}/asset-upload-confirmation/{token}/{asset_path}
|
|
1969
2499
|
*/
|
|
1970
|
-
post:
|
|
1971
|
-
repo: string;
|
|
1972
|
-
release_id: number;
|
|
1973
|
-
token: string;
|
|
1974
|
-
asset_path: string;
|
|
1975
|
-
}) => Promise<any>;
|
|
2500
|
+
post: Releases_PostReleaseAssetUploadConfirmation;
|
|
1976
2501
|
};
|
|
1977
2502
|
|
|
1978
2503
|
assetUploadUrl: {
|
|
@@ -1984,11 +2509,7 @@ export interface Client {
|
|
|
1984
2509
|
*
|
|
1985
2510
|
* /{repo}/-/releases/{release_id}/asset-upload-url
|
|
1986
2511
|
*/
|
|
1987
|
-
post:
|
|
1988
|
-
repo: string;
|
|
1989
|
-
release_id: number;
|
|
1990
|
-
create_release_asset_upload_url_form: OpenapiPostReleaseAssetUploadUrlForm;
|
|
1991
|
-
}) => Promise<any>;
|
|
2512
|
+
post: Releases_PostReleaseAssetUploadURL;
|
|
1992
2513
|
};
|
|
1993
2514
|
|
|
1994
2515
|
assets: {
|
|
@@ -2000,11 +2521,7 @@ export interface Client {
|
|
|
2000
2521
|
*
|
|
2001
2522
|
* /{repo}/-/releases/{release_id}/assets/{asset_id}
|
|
2002
2523
|
*/
|
|
2003
|
-
delete:
|
|
2004
|
-
repo: string;
|
|
2005
|
-
release_id: number;
|
|
2006
|
-
asset_id: number;
|
|
2007
|
-
}) => Promise<any>;
|
|
2524
|
+
delete: Releases_DeleteReleaseAsset;
|
|
2008
2525
|
|
|
2009
2526
|
/***
|
|
2010
2527
|
* [openapi] 查询指定的 release asset
|
|
@@ -2014,11 +2531,7 @@ export interface Client {
|
|
|
2014
2531
|
*
|
|
2015
2532
|
* /{repo}/-/releases/{release_id}/assets/{asset_id}
|
|
2016
2533
|
*/
|
|
2017
|
-
get:
|
|
2018
|
-
repo: string;
|
|
2019
|
-
release_id: number;
|
|
2020
|
-
asset_id: number;
|
|
2021
|
-
}) => Promise<ApiReleaseAsset>;
|
|
2534
|
+
get: Releases_GetReleaseAsset;
|
|
2022
2535
|
};
|
|
2023
2536
|
};
|
|
2024
2537
|
|
|
@@ -2032,7 +2545,7 @@ export interface Client {
|
|
|
2032
2545
|
*
|
|
2033
2546
|
* /{repo}/-/settings/branch-protections
|
|
2034
2547
|
*/
|
|
2035
|
-
list:
|
|
2548
|
+
list: GitSettings_ListBranchProtections;
|
|
2036
2549
|
|
|
2037
2550
|
/***
|
|
2038
2551
|
* 新增仓库保护分支规则(openapi)
|
|
@@ -2042,10 +2555,7 @@ export interface Client {
|
|
|
2042
2555
|
*
|
|
2043
2556
|
* /{repo}/-/settings/branch-protections
|
|
2044
2557
|
*/
|
|
2045
|
-
post:
|
|
2046
|
-
repo: string;
|
|
2047
|
-
branch_protection_form: ApiBranchProtection;
|
|
2048
|
-
}) => Promise<any>;
|
|
2558
|
+
post: GitSettings_PostBranchProtection;
|
|
2049
2559
|
|
|
2050
2560
|
/***
|
|
2051
2561
|
* 删除仓库保护分支规则(openapi)
|
|
@@ -2055,7 +2565,7 @@ export interface Client {
|
|
|
2055
2565
|
*
|
|
2056
2566
|
* /{repo}/-/settings/branch-protections/{id}
|
|
2057
2567
|
*/
|
|
2058
|
-
delete:
|
|
2568
|
+
delete: GitSettings_DeleteBranchProtection;
|
|
2059
2569
|
|
|
2060
2570
|
/***
|
|
2061
2571
|
* 查询仓库保护分支规则(openapi)
|
|
@@ -2065,10 +2575,7 @@ export interface Client {
|
|
|
2065
2575
|
*
|
|
2066
2576
|
* /{repo}/-/settings/branch-protections/{id}
|
|
2067
2577
|
*/
|
|
2068
|
-
get:
|
|
2069
|
-
repo: string;
|
|
2070
|
-
id: string;
|
|
2071
|
-
}) => Promise<ApiBranchProtection>;
|
|
2578
|
+
get: GitSettings_GetBranchProtection;
|
|
2072
2579
|
|
|
2073
2580
|
/***
|
|
2074
2581
|
* 更新仓库保护分支规则(openapi)
|
|
@@ -2078,11 +2585,7 @@ export interface Client {
|
|
|
2078
2585
|
*
|
|
2079
2586
|
* /{repo}/-/settings/branch-protections/{id}
|
|
2080
2587
|
*/
|
|
2081
|
-
patch:
|
|
2082
|
-
repo: string;
|
|
2083
|
-
id: string;
|
|
2084
|
-
branch_protection_form: ApiBranchProtection;
|
|
2085
|
-
}) => Promise<any>;
|
|
2588
|
+
patch: GitSettings_PatchBranchProtection;
|
|
2086
2589
|
};
|
|
2087
2590
|
|
|
2088
2591
|
cloudNativeBuild: {
|
|
@@ -2094,7 +2597,7 @@ export interface Client {
|
|
|
2094
2597
|
*
|
|
2095
2598
|
* /{repo}/-/settings/cloud-native-build
|
|
2096
2599
|
*/
|
|
2097
|
-
get:
|
|
2600
|
+
get: GitSettings_GetPipelineSettings;
|
|
2098
2601
|
|
|
2099
2602
|
/***
|
|
2100
2603
|
* 更新仓库云原生构建设置(openapi)
|
|
@@ -2104,10 +2607,7 @@ export interface Client {
|
|
|
2104
2607
|
*
|
|
2105
2608
|
* /{repo}/-/settings/cloud-native-build
|
|
2106
2609
|
*/
|
|
2107
|
-
put:
|
|
2108
|
-
repo: string;
|
|
2109
|
-
pipeline_form: WebPipelineSettings;
|
|
2110
|
-
}) => Promise<any>;
|
|
2610
|
+
put: GitSettings_PutPipelineSettings;
|
|
2111
2611
|
};
|
|
2112
2612
|
|
|
2113
2613
|
pullRequest: {
|
|
@@ -2119,7 +2619,7 @@ export interface Client {
|
|
|
2119
2619
|
*
|
|
2120
2620
|
* /{repo}/-/settings/pull-request
|
|
2121
2621
|
*/
|
|
2122
|
-
get:
|
|
2622
|
+
get: GitSettings_GetPullRequestSettings;
|
|
2123
2623
|
|
|
2124
2624
|
/***
|
|
2125
2625
|
* 设置仓库推送设置(openapi)
|
|
@@ -2129,10 +2629,7 @@ export interface Client {
|
|
|
2129
2629
|
*
|
|
2130
2630
|
* /{repo}/-/settings/pull-request
|
|
2131
2631
|
*/
|
|
2132
|
-
put:
|
|
2133
|
-
repo: string;
|
|
2134
|
-
pull_request_form: ApiPullRequestSettings;
|
|
2135
|
-
}) => Promise<any>;
|
|
2632
|
+
put: GitSettings_PutPullRequestSettings;
|
|
2136
2633
|
};
|
|
2137
2634
|
|
|
2138
2635
|
pushLimit: {
|
|
@@ -2144,7 +2641,7 @@ export interface Client {
|
|
|
2144
2641
|
*
|
|
2145
2642
|
* /{repo}/-/settings/push-limit
|
|
2146
2643
|
*/
|
|
2147
|
-
get:
|
|
2644
|
+
get: GitSettings_GetPushLimitSettings;
|
|
2148
2645
|
|
|
2149
2646
|
/***
|
|
2150
2647
|
* 设置仓库推送设置(openapi)
|
|
@@ -2154,10 +2651,7 @@ export interface Client {
|
|
|
2154
2651
|
*
|
|
2155
2652
|
* /{repo}/-/settings/push-limit
|
|
2156
2653
|
*/
|
|
2157
|
-
put:
|
|
2158
|
-
repo: string;
|
|
2159
|
-
push_limit_form: ApiPushLimitSettings;
|
|
2160
|
-
}) => Promise<any>;
|
|
2654
|
+
put: GitSettings_PutPushLimitSettings;
|
|
2161
2655
|
};
|
|
2162
2656
|
};
|
|
2163
2657
|
|
|
@@ -2170,12 +2664,7 @@ export interface Client {
|
|
|
2170
2664
|
*
|
|
2171
2665
|
* /{repo}/-/stars
|
|
2172
2666
|
*/
|
|
2173
|
-
get:
|
|
2174
|
-
repo: string;
|
|
2175
|
-
filter_type: "all" | "followed";
|
|
2176
|
-
page: number;
|
|
2177
|
-
page_size: number;
|
|
2178
|
-
}) => Promise<DtoRepoStarUsers>;
|
|
2667
|
+
get: Starring_ListStarUsers;
|
|
2179
2668
|
};
|
|
2180
2669
|
|
|
2181
2670
|
topActivityUsers: {
|
|
@@ -2187,10 +2676,7 @@ export interface Client {
|
|
|
2187
2676
|
*
|
|
2188
2677
|
* /{repo}/-/top-activity-users
|
|
2189
2678
|
*/
|
|
2190
|
-
list:
|
|
2191
|
-
repo: string;
|
|
2192
|
-
top?: number;
|
|
2193
|
-
}) => Promise<DtoUsersResult[]>;
|
|
2679
|
+
list: Collaborators_TopContributors;
|
|
2194
2680
|
};
|
|
2195
2681
|
|
|
2196
2682
|
upload: {
|
|
@@ -2203,10 +2689,7 @@ export interface Client {
|
|
|
2203
2689
|
*
|
|
2204
2690
|
* /{repo}/-/upload/files
|
|
2205
2691
|
*/
|
|
2206
|
-
post:
|
|
2207
|
-
repo: string;
|
|
2208
|
-
request: DtoUploadRequestParams;
|
|
2209
|
-
}) => Promise<DtoUploadAssetsResponse>;
|
|
2692
|
+
post: Assets_UploadFiles;
|
|
2210
2693
|
};
|
|
2211
2694
|
|
|
2212
2695
|
imgs: {
|
|
@@ -2218,10 +2701,7 @@ export interface Client {
|
|
|
2218
2701
|
*
|
|
2219
2702
|
* /{repo}/-/upload/imgs
|
|
2220
2703
|
*/
|
|
2221
|
-
post:
|
|
2222
|
-
repo: string;
|
|
2223
|
-
request: DtoUploadRequestParams;
|
|
2224
|
-
}) => Promise<DtoUploadAssetsResponse>;
|
|
2704
|
+
post: Assets_UploadImgs;
|
|
2225
2705
|
};
|
|
2226
2706
|
|
|
2227
2707
|
releases: {
|
|
@@ -2233,11 +2713,7 @@ export interface Client {
|
|
|
2233
2713
|
*
|
|
2234
2714
|
* /{repo}/-/upload/releases/{tagName}
|
|
2235
2715
|
*/
|
|
2236
|
-
post:
|
|
2237
|
-
repo: string;
|
|
2238
|
-
tagName: string;
|
|
2239
|
-
request: DtoUploadRequestParams;
|
|
2240
|
-
}) => Promise<DtoUploadAssetsResponse>;
|
|
2716
|
+
post: Assets_UploadReleases;
|
|
2241
2717
|
};
|
|
2242
2718
|
};
|
|
2243
2719
|
|
|
@@ -2251,10 +2727,7 @@ export interface Client {
|
|
|
2251
2727
|
*
|
|
2252
2728
|
* /{repo}/-/workspace/detail/{sn}
|
|
2253
2729
|
*/
|
|
2254
|
-
get:
|
|
2255
|
-
repo: string;
|
|
2256
|
-
sn: string;
|
|
2257
|
-
}) => Promise<DtoWorkspaceDetailResult>;
|
|
2730
|
+
get: Workspace_GetWorkspaceDetail;
|
|
2258
2731
|
};
|
|
2259
2732
|
};
|
|
2260
2733
|
};
|
|
@@ -2269,18 +2742,7 @@ export interface Client {
|
|
|
2269
2742
|
*
|
|
2270
2743
|
* /{slug}/-/packages
|
|
2271
2744
|
*/
|
|
2272
|
-
list:
|
|
2273
|
-
slug: string;
|
|
2274
|
-
type: "all" | "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
2275
|
-
page?: number;
|
|
2276
|
-
page_size?: number;
|
|
2277
|
-
ordering?:
|
|
2278
|
-
| "pull_count"
|
|
2279
|
-
| "last_push_at"
|
|
2280
|
-
| "name_ascend"
|
|
2281
|
-
| "name_descend";
|
|
2282
|
-
name?: string;
|
|
2283
|
-
}) => Promise<DtoPackage[]>;
|
|
2745
|
+
list: Artifactory_ListPackages;
|
|
2284
2746
|
|
|
2285
2747
|
/***
|
|
2286
2748
|
* Head all packages
|
|
@@ -2290,18 +2752,7 @@ export interface Client {
|
|
|
2290
2752
|
*
|
|
2291
2753
|
* /{slug}/-/packages
|
|
2292
2754
|
*/
|
|
2293
|
-
head:
|
|
2294
|
-
slug: string;
|
|
2295
|
-
type: "all" | "docker" | "helm";
|
|
2296
|
-
page?: number;
|
|
2297
|
-
page_size?: number;
|
|
2298
|
-
ordering?:
|
|
2299
|
-
| "pull_count"
|
|
2300
|
-
| "last_push_at"
|
|
2301
|
-
| "name_ascend"
|
|
2302
|
-
| "name_descend";
|
|
2303
|
-
name?: string;
|
|
2304
|
-
}) => Promise<any>;
|
|
2755
|
+
head: Artifactory_HeadPackages;
|
|
2305
2756
|
|
|
2306
2757
|
type: {
|
|
2307
2758
|
quota: {
|
|
@@ -2313,10 +2764,7 @@ export interface Client {
|
|
|
2313
2764
|
*
|
|
2314
2765
|
* /{slug}/-/packages/{type}/-/quota
|
|
2315
2766
|
*/
|
|
2316
|
-
get:
|
|
2317
|
-
slug: string;
|
|
2318
|
-
type: "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
2319
|
-
}) => Promise<DtoQuotaRsp>;
|
|
2767
|
+
get: Artifactory_GetQuotaByProjectName;
|
|
2320
2768
|
};
|
|
2321
2769
|
|
|
2322
2770
|
quotas: {
|
|
@@ -2328,13 +2776,7 @@ export interface Client {
|
|
|
2328
2776
|
*
|
|
2329
2777
|
* /{slug}/-/packages/{type}/-/quotas
|
|
2330
2778
|
*/
|
|
2331
|
-
list:
|
|
2332
|
-
slug: string;
|
|
2333
|
-
type: "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
2334
|
-
page?: number;
|
|
2335
|
-
page_size?: number;
|
|
2336
|
-
ordering?: "used_ascend" | "used_descend";
|
|
2337
|
-
}) => Promise<DtoQuotaRsp[]>;
|
|
2779
|
+
list: Artifactory_GetQuotasByProjectName;
|
|
2338
2780
|
|
|
2339
2781
|
download: {
|
|
2340
2782
|
/***
|
|
@@ -2345,13 +2787,7 @@ export interface Client {
|
|
|
2345
2787
|
*
|
|
2346
2788
|
* /{slug}/-/packages/{type}/-/quotas/download
|
|
2347
2789
|
*/
|
|
2348
|
-
list:
|
|
2349
|
-
slug: string;
|
|
2350
|
-
type: "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
2351
|
-
page?: number;
|
|
2352
|
-
page_size?: number;
|
|
2353
|
-
ordering?: "used_ascend" | "used_descend";
|
|
2354
|
-
}) => Promise<DtoQuotaRsp[]>;
|
|
2790
|
+
list: Artifactory_DownloadQuotasByProjectName;
|
|
2355
2791
|
};
|
|
2356
2792
|
};
|
|
2357
2793
|
};
|
|
@@ -2364,11 +2800,7 @@ export interface Client {
|
|
|
2364
2800
|
*
|
|
2365
2801
|
* /{slug}/-/packages/{type}/{name}
|
|
2366
2802
|
*/
|
|
2367
|
-
get:
|
|
2368
|
-
slug: string;
|
|
2369
|
-
type: "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
2370
|
-
name: string;
|
|
2371
|
-
}) => Promise<DtoPackageDetail>;
|
|
2803
|
+
get: Artifactory_GetPackage;
|
|
2372
2804
|
|
|
2373
2805
|
name: {
|
|
2374
2806
|
tag: {
|
|
@@ -2380,12 +2812,7 @@ export interface Client {
|
|
|
2380
2812
|
*
|
|
2381
2813
|
* /{slug}/-/packages/{type}/{name}/-/tag/{tag}
|
|
2382
2814
|
*/
|
|
2383
|
-
delete:
|
|
2384
|
-
slug: string;
|
|
2385
|
-
type: "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
2386
|
-
name: string;
|
|
2387
|
-
tag: string;
|
|
2388
|
-
}) => Promise<any>;
|
|
2815
|
+
delete: Artifactory_DeletePackageTag;
|
|
2389
2816
|
|
|
2390
2817
|
/***
|
|
2391
2818
|
* Get the specific tag under specific package
|
|
@@ -2395,13 +2822,7 @@ export interface Client {
|
|
|
2395
2822
|
*
|
|
2396
2823
|
* /{slug}/-/packages/{type}/{name}/-/tag/{tag}
|
|
2397
2824
|
*/
|
|
2398
|
-
get:
|
|
2399
|
-
slug: string;
|
|
2400
|
-
type: "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
2401
|
-
name: string;
|
|
2402
|
-
tag: string;
|
|
2403
|
-
sha256?: string;
|
|
2404
|
-
}) => Promise<DtoTagDetail>;
|
|
2825
|
+
get: Artifactory_GetPackageTagDetail;
|
|
2405
2826
|
};
|
|
2406
2827
|
};
|
|
2407
2828
|
|
|
@@ -2415,15 +2836,7 @@ export interface Client {
|
|
|
2415
2836
|
*
|
|
2416
2837
|
* /{slug}/-/packages/{type}/{pkgname}/-/tags
|
|
2417
2838
|
*/
|
|
2418
|
-
get:
|
|
2419
|
-
slug: string;
|
|
2420
|
-
type: "docker" | "helm" | "maven" | "npm" | "ohpm";
|
|
2421
|
-
pkgname: string;
|
|
2422
|
-
page?: number;
|
|
2423
|
-
page_size?: number;
|
|
2424
|
-
ordering?: "pull_count" | "last_push_at";
|
|
2425
|
-
name?: string;
|
|
2426
|
-
}) => Promise<DtoTag>;
|
|
2839
|
+
get: Artifactory_ListPackageTags;
|
|
2427
2840
|
};
|
|
2428
2841
|
};
|
|
2429
2842
|
};
|