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