node-cnb 1.0.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/.ide/Dockerfile +20 -0
- package/README.md +57 -0
- package/build.js +148 -0
- package/client.d.ts +662 -0
- package/dist/client.d.ts +970 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +79 -0
- package/dist/index.js.map +1 -0
- package/dist/paths.json +8826 -0
- package/dist/types.d.ts +3642 -0
- package/openapi_swagger.json +17663 -0
- package/package.json +32 -0
- package/pathMethodMap.json +10 -0
- package/src/client.d.ts +970 -0
- package/src/index.d.ts +3 -0
- package/src/index.ts +94 -0
- package/src/paths.json +8826 -0
- package/src/types.d.ts +3642 -0
- package/templates/data_type.tpl +7 -0
- package/tsconfig.json +16 -0
- package/types.d.ts +3678 -0
package/client.d.ts
ADDED
|
@@ -0,0 +1,662 @@
|
|
|
1
|
+
import {DtoUsersResultForSelf, DtoOrganizationAccess, DtoRepos4User, DtoRepos4UserBase, DtoUsersResult, DtoUserFollowResult, DtoOrganizationUnion, DtoWorkspaceDeleteResult, DtoWorkspaceListResult, DtoListInheritMembers, DtoUsersWithAccessLevelInSlug, DtoMemberAccessLevelInSlugUnion, DtoMemberAccessLevel, DtoOrganizationSettingWithParent, DtoUploadAssetsResponse, DtoBuildLogsResult, DtoBuildResult, DtoBuildStatusResult, WebRepoContribTrend, DtoForks, ApiBranch, ApiBranchDetail, WebCommitAnnotationInBatch, WebCommitAnnotation, ApiCommitAsset, ApiCommitStatus, ApiCommit, ApiCompareResponse, ApiContent, OpenapiHeadRef, WebTagAnnotation, ApiTag, ApiIssue, ApiIssueDetail, ApiIssueComment, ApiLabel, DtoOutsideCollaboratorInRepo, ApiPullRequest, ApiPull, ApiPullRequestComment, ApiMergePullResponse, ApiRelease, ApiReleaseAsset, ApiBranchProtection, ApiPipelineSettings, ApiPullRequestSettings, ApiPushLimitSettings, DtoRepoStarUsers, DtoWorkspaceDetailResult} from './types';
|
|
2
|
+
|
|
3
|
+
export interface Client {
|
|
4
|
+
|
|
5
|
+
groups: {
|
|
6
|
+
|
|
7
|
+
post: (params: {request: any}) => Promise<any>
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
user: {
|
|
12
|
+
|
|
13
|
+
get: (params: {}) => Promise<DtoUsersResultForSelf>
|
|
14
|
+
|
|
15
|
+
post: (params: {request: any}) => Promise<any>
|
|
16
|
+
|
|
17
|
+
autocomplete_source: {
|
|
18
|
+
|
|
19
|
+
list: (params: {source_type?: string,page?: number,page_size?: number,search?: string,access?: string}) => Promise<string[]>
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
groups: {
|
|
24
|
+
|
|
25
|
+
list: (params: {page?: number,page_size?: number,search?: string,role?: string}) => Promise<DtoOrganizationAccess[]>
|
|
26
|
+
|
|
27
|
+
listByGroup: (params: {group: string,page?: number,page_size?: number,access?: number}) => Promise<DtoOrganizationAccess[]>
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
repos: {
|
|
32
|
+
|
|
33
|
+
list: (params: {page?: number,page_size?: number,search?: string,filter_type?: string,role?: string,order_by?: string,desc?: boolean}) => Promise<DtoRepos4User[]>
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
'stared-repos': {
|
|
38
|
+
|
|
39
|
+
list: (params: {page?: number,page_size?: number,search?: string,desc?: boolean,order_by?: string}) => Promise<DtoRepos4UserBase[]>
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
users: {
|
|
46
|
+
|
|
47
|
+
get: (params: {username: string}) => Promise<DtoUsersResult>
|
|
48
|
+
|
|
49
|
+
avatar: {
|
|
50
|
+
|
|
51
|
+
get: (params: {username: string,size: string}) => Promise<any>
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
followers: {
|
|
56
|
+
|
|
57
|
+
list: (params: {username: string,page?: number,page_size?: number}) => Promise<DtoUserFollowResult[]>
|
|
58
|
+
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
following: {
|
|
62
|
+
|
|
63
|
+
list: (params: {username: string,page?: number,page_size?: number}) => Promise<DtoUserFollowResult[]>
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
groups: {
|
|
68
|
+
|
|
69
|
+
get: (params: {username: string,search?: string,page?: number,page_size?: number,desc?: boolean,order_by?: string}) => Promise<DtoOrganizationUnion>
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
'pinned-repos': {
|
|
74
|
+
|
|
75
|
+
list: (params: {username: string}) => Promise<DtoRepos4User[]>
|
|
76
|
+
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
repos: {
|
|
80
|
+
|
|
81
|
+
list: (params: {username: string,search?: string,role?: string,page?: number,page_size?: number,desc?: boolean,order_by?: string}) => Promise<DtoRepos4User[]>
|
|
82
|
+
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
'stared-repos': {
|
|
86
|
+
|
|
87
|
+
list: (params: {username: string,search?: string,page?: number,page_size?: number,desc?: boolean,order_by?: string}) => Promise<DtoRepos4User[]>
|
|
88
|
+
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
workspace: {
|
|
94
|
+
|
|
95
|
+
delete: {
|
|
96
|
+
|
|
97
|
+
post: (params: {request: any}) => Promise<DtoWorkspaceDeleteResult>
|
|
98
|
+
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
list: {
|
|
102
|
+
|
|
103
|
+
get: (params: {branch?: string,end?: string,page?: number,pageSize?: number,slug?: string,start?: string,status?: string}) => Promise<DtoWorkspaceListResult>
|
|
104
|
+
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
group: {
|
|
110
|
+
|
|
111
|
+
get: (params: {group: string}) => Promise<DtoOrganizationAccess>
|
|
112
|
+
|
|
113
|
+
avatar: {
|
|
114
|
+
|
|
115
|
+
put: (params: {group: string,request: any}) => Promise<any>
|
|
116
|
+
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
'inherit-members': {
|
|
120
|
+
|
|
121
|
+
list: (params: {group: string,search?: string,role?: string,page?: number,page_size?: number}) => Promise<DtoListInheritMembers[]>
|
|
122
|
+
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
'list-members': {
|
|
126
|
+
|
|
127
|
+
list: (params: {group: string,page?: number,page_size?: number,role?: string,search?: string,names?: string,order_by?: string,desc?: boolean}) => Promise<DtoUsersWithAccessLevelInSlug[]>
|
|
128
|
+
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
logos: {
|
|
132
|
+
|
|
133
|
+
put: (params: {group: string,token: string}) => Promise<any>
|
|
134
|
+
|
|
135
|
+
get: (params: {group: string,size?: string}) => Promise<any>
|
|
136
|
+
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
members: {
|
|
140
|
+
|
|
141
|
+
list: (params: {group: string,page?: number,page_size?: number,role?: string,search?: string}) => Promise<DtoUsersWithAccessLevelInSlug[]>
|
|
142
|
+
|
|
143
|
+
'access-level': {
|
|
144
|
+
|
|
145
|
+
get: (params: {group: string,include_inherit?: boolean}) => Promise<DtoMemberAccessLevelInSlugUnion>
|
|
146
|
+
|
|
147
|
+
list: (params: {group: string,username: string}) => Promise<DtoMemberAccessLevel[]>
|
|
148
|
+
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
delete: (params: {group: string,username: string}) => Promise<any>
|
|
152
|
+
|
|
153
|
+
put: (params: {group: string,username: string,request: any}) => Promise<any>
|
|
154
|
+
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
'pinned-repos': {
|
|
158
|
+
|
|
159
|
+
list: (params: {group: string}) => Promise<DtoRepos4UserBase[]>
|
|
160
|
+
|
|
161
|
+
put: (params: {group: string,request: any}) => Promise<DtoRepos4UserBase[]>
|
|
162
|
+
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
repos: {
|
|
166
|
+
|
|
167
|
+
list: (params: {group: string,page?: number,page_size?: number,filter_type?: string,order_by?: string,desc?: boolean,descendant?: string,search?: string}) => Promise<DtoRepos4UserBase[]>
|
|
168
|
+
|
|
169
|
+
post: (params: {group: string,request: any}) => Promise<any>
|
|
170
|
+
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
settings: {
|
|
174
|
+
|
|
175
|
+
get: (params: {group: string}) => Promise<DtoOrganizationSettingWithParent>
|
|
176
|
+
|
|
177
|
+
put: (params: {group: string,request: any}) => Promise<any>
|
|
178
|
+
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
'sub-groups': {
|
|
182
|
+
|
|
183
|
+
list: (params: {group: string,search?: string,page: number,page_size: number}) => Promise<DtoOrganizationUnion[]>
|
|
184
|
+
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
upload: {
|
|
188
|
+
|
|
189
|
+
logos: {
|
|
190
|
+
|
|
191
|
+
post: (params: {group: string,request: any}) => Promise<DtoUploadAssetsResponse>
|
|
192
|
+
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
registry: {
|
|
200
|
+
|
|
201
|
+
packages: {
|
|
202
|
+
|
|
203
|
+
name: {
|
|
204
|
+
|
|
205
|
+
tag: {
|
|
206
|
+
|
|
207
|
+
delete: (params: {registry: string,type: string,name: string,tag: string}) => Promise<any>
|
|
208
|
+
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
repo: {
|
|
218
|
+
|
|
219
|
+
get: (params: {repo: string}) => Promise<DtoRepos4User>
|
|
220
|
+
|
|
221
|
+
build: {
|
|
222
|
+
|
|
223
|
+
logs: {
|
|
224
|
+
|
|
225
|
+
get: (params: {repo: string,createTime?: string,endTime?: string,event?: string,page?: number,pagesize?: number,sha?: string,sn?: string,sourceRef?: string,status?: string,targetRef?: string,userId?: string,userName?: string}) => Promise<DtoBuildLogsResult>
|
|
226
|
+
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
start: {
|
|
230
|
+
|
|
231
|
+
post: (params: {repo: string,request: any}) => Promise<DtoBuildResult[]>
|
|
232
|
+
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
status: {
|
|
236
|
+
|
|
237
|
+
get: (params: {repo: string,sn: string}) => Promise<DtoBuildStatusResult>
|
|
238
|
+
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
stop: {
|
|
242
|
+
|
|
243
|
+
post: (params: {repo: string,sn: string}) => Promise<DtoBuildResult[]>
|
|
244
|
+
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
'commit-assets': {
|
|
250
|
+
|
|
251
|
+
download: {
|
|
252
|
+
|
|
253
|
+
get: (params: {repo: string,fileName: string}) => Promise<any>
|
|
254
|
+
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
contributor: {
|
|
260
|
+
|
|
261
|
+
trend: {
|
|
262
|
+
|
|
263
|
+
list: (params: {repo: string,limit?: number,exclude_external_users?: boolean}) => Promise<WebRepoContribTrend[]>
|
|
264
|
+
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
files: {
|
|
270
|
+
|
|
271
|
+
get: (params: {repo: string,userIdKey: string,randomUUID: string,fileName: string}) => Promise<any>
|
|
272
|
+
|
|
273
|
+
put: (params: {repo: string,userIdKey: string,randomUUID: string,fileName: string,token: string}) => Promise<any>
|
|
274
|
+
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
forks: {
|
|
278
|
+
|
|
279
|
+
list: (params: {repo: string,page: number,page_size: number}) => Promise<DtoForks[]>
|
|
280
|
+
|
|
281
|
+
post: (params: {repo: string,request: any}) => Promise<any>
|
|
282
|
+
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
git: {
|
|
286
|
+
|
|
287
|
+
branches: {
|
|
288
|
+
|
|
289
|
+
list: (params: {repo: string,page?: number,page_size?: number}) => Promise<ApiBranch[]>
|
|
290
|
+
|
|
291
|
+
post: (params: {repo: string,create_branch_form: any}) => Promise<any>
|
|
292
|
+
|
|
293
|
+
delete: (params: {repo: string,branch: string}) => Promise<any>
|
|
294
|
+
|
|
295
|
+
get: (params: {repo: string,branch?: string}) => Promise<ApiBranchDetail>
|
|
296
|
+
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
'commit-annotations-in-batch': {
|
|
300
|
+
|
|
301
|
+
post: (params: {repo: string,get_commit_annotations_form: any}) => Promise<WebCommitAnnotationInBatch[]>
|
|
302
|
+
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
'commit-annotations': {
|
|
306
|
+
|
|
307
|
+
list: (params: {repo: string,sha: string}) => Promise<WebCommitAnnotation[]>
|
|
308
|
+
|
|
309
|
+
put: (params: {repo: string,sha: string,put_commit_annotations_form: any}) => Promise<any>
|
|
310
|
+
|
|
311
|
+
delete: (params: {repo: string,sha: string,key: string}) => Promise<any>
|
|
312
|
+
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
'commit-assets': {
|
|
316
|
+
|
|
317
|
+
list: (params: {repo: string,sha1: string}) => Promise<ApiCommitAsset[]>
|
|
318
|
+
|
|
319
|
+
'asset-upload-confirmation': {
|
|
320
|
+
|
|
321
|
+
post: (params: {repo: string,sha1: number,token: string,asset_path: string}) => Promise<any>
|
|
322
|
+
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
'asset-upload-url': {
|
|
326
|
+
|
|
327
|
+
post: (params: {repo: string,sha1: number,create_commit_asset_upload_url_form: any}) => Promise<any>
|
|
328
|
+
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
delete: (params: {repo: string,sha1: string,asset_id: number}) => Promise<any>
|
|
332
|
+
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
'commit-statuses': {
|
|
336
|
+
|
|
337
|
+
list: (params: {repo: string,sha: string}) => Promise<ApiCommitStatus[]>
|
|
338
|
+
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
commits: {
|
|
342
|
+
|
|
343
|
+
list: (params: {repo: string,sha?: string,author?: string,committer?: string,since?: string,until?: string,page?: number,page_size?: number}) => Promise<ApiCommit[]>
|
|
344
|
+
|
|
345
|
+
get: (params: {repo: string,ref: string}) => Promise<ApiCommit>
|
|
346
|
+
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
compare: {
|
|
350
|
+
|
|
351
|
+
get: (params: {repo: string,base_head: string}) => Promise<ApiCompareResponse>
|
|
352
|
+
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
contents: {
|
|
356
|
+
|
|
357
|
+
get: (params: {repo: string,file_path: string,ref?: string}) => Promise<ApiContent>
|
|
358
|
+
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
head: {
|
|
362
|
+
|
|
363
|
+
get: (params: {repo: string}) => Promise<OpenapiHeadRef>
|
|
364
|
+
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
'tag-annotations': {
|
|
368
|
+
|
|
369
|
+
delete: (params: {repo: string,tag_with_key: string}) => Promise<any>
|
|
370
|
+
|
|
371
|
+
list: (params: {repo: string,tag: string}) => Promise<WebTagAnnotation[]>
|
|
372
|
+
|
|
373
|
+
put: (params: {repo: string,tag: string,put_tag_annotations_form: any}) => Promise<any>
|
|
374
|
+
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
tags: {
|
|
378
|
+
|
|
379
|
+
list: (params: {repo: string,page?: number,page_size?: number}) => Promise<ApiTag[]>
|
|
380
|
+
|
|
381
|
+
delete: (params: {repo: string,tag: string}) => Promise<any>
|
|
382
|
+
|
|
383
|
+
get: (params: {repo: string,tag: string}) => Promise<ApiTag>
|
|
384
|
+
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
imgs: {
|
|
390
|
+
|
|
391
|
+
get: (params: {repo: string,userIdKey: string,fileName: string}) => Promise<any>
|
|
392
|
+
|
|
393
|
+
put: (params: {repo: string,userIdKey: string,fileName: string,token: string}) => Promise<any>
|
|
394
|
+
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
'inherit-members': {
|
|
398
|
+
|
|
399
|
+
list: (params: {repo: string,search?: string,role?: string,page?: number,page_size?: number}) => Promise<DtoListInheritMembers[]>
|
|
400
|
+
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
issues: {
|
|
404
|
+
|
|
405
|
+
list: (params: {repo: string,page?: number,page_size?: number,state?: string,keyword?: string,priority?: string,labels?: string,authors?: string,assignees?: string,updated_time_begin?: string,updated_time_end?: string,order_by?: string}) => Promise<ApiIssue[]>
|
|
406
|
+
|
|
407
|
+
post: (params: {repo: string,post_issue_form: any}) => Promise<any>
|
|
408
|
+
|
|
409
|
+
get: (params: {repo: string,number: number}) => Promise<ApiIssueDetail>
|
|
410
|
+
|
|
411
|
+
patch: (params: {repo: string,number: number,patch_issue_form: any}) => Promise<ApiIssueDetail>
|
|
412
|
+
|
|
413
|
+
comments: {
|
|
414
|
+
|
|
415
|
+
list: (params: {repo: string,number: number,page?: number,page_size?: number}) => Promise<ApiIssueComment[]>
|
|
416
|
+
|
|
417
|
+
post: (params: {repo: string,number: number,post_issue_comment_form: any}) => Promise<any>
|
|
418
|
+
|
|
419
|
+
get: (params: {repo: string,number: number,comment_id: number}) => Promise<ApiIssueComment>
|
|
420
|
+
|
|
421
|
+
patch: (params: {repo: string,number: number,comment_id: number,patch_issue_comment_form: any}) => Promise<ApiIssueComment>
|
|
422
|
+
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
labels: {
|
|
426
|
+
|
|
427
|
+
delete: (params: {repo: string,number: number}) => Promise<any>
|
|
428
|
+
|
|
429
|
+
deleteByName: (params: {repo: string,number: number,name: string}) => Promise<ApiLabel>
|
|
430
|
+
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
labels: {
|
|
436
|
+
|
|
437
|
+
list: (params: {repo: string,page?: number,page_size?: number,keyword?: string}) => Promise<ApiLabel[]>
|
|
438
|
+
|
|
439
|
+
post: (params: {repo: string,post_label_form: any}) => Promise<any>
|
|
440
|
+
|
|
441
|
+
delete: (params: {repo: string,name: string}) => Promise<any>
|
|
442
|
+
|
|
443
|
+
patch: (params: {repo: string,name: string,patch_label_form: any}) => Promise<ApiLabel>
|
|
444
|
+
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
'list-members': {
|
|
448
|
+
|
|
449
|
+
list: (params: {repo: string,page?: number,page_size?: number,role?: string,search?: string,names?: string,order_by?: string,desc?: boolean}) => Promise<DtoUsersWithAccessLevelInSlug[]>
|
|
450
|
+
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
members: {
|
|
454
|
+
|
|
455
|
+
list: (params: {repo: string,page?: number,page_size?: number,role?: string,search?: string}) => Promise<DtoUsersWithAccessLevelInSlug[]>
|
|
456
|
+
|
|
457
|
+
'access-level': {
|
|
458
|
+
|
|
459
|
+
get: (params: {repo: string,include_inherit?: boolean}) => Promise<DtoMemberAccessLevelInSlugUnion>
|
|
460
|
+
|
|
461
|
+
list: (params: {repo: string,username: string}) => Promise<DtoMemberAccessLevel[]>
|
|
462
|
+
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
delete: (params: {repo: string,username: string}) => Promise<any>
|
|
466
|
+
|
|
467
|
+
put: (params: {repo: string,username: string,request: any}) => Promise<any>
|
|
468
|
+
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
'outside-collaborators': {
|
|
472
|
+
|
|
473
|
+
list: (params: {repo: string,page?: number,page_size?: number,role?: string,search?: string}) => Promise<DtoOutsideCollaboratorInRepo[]>
|
|
474
|
+
|
|
475
|
+
delete: (params: {repo: string,username: string}) => Promise<any>
|
|
476
|
+
|
|
477
|
+
put: (params: {repo: string,username: string,role: string}) => Promise<any>
|
|
478
|
+
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
pulls: {
|
|
482
|
+
|
|
483
|
+
list: (params: {repo: string,page?: number,page_size?: number,state?: string,authors?: string,reviewers?: string,assignees?: string}) => Promise<ApiPullRequest[]>
|
|
484
|
+
|
|
485
|
+
post: (params: {repo: string,post_pull_form: any}) => Promise<any>
|
|
486
|
+
|
|
487
|
+
get: (params: {repo: string,number: number}) => Promise<ApiPull>
|
|
488
|
+
|
|
489
|
+
patch: (params: {repo: string,number: number,update_pull_request_form: any}) => Promise<ApiPull>
|
|
490
|
+
|
|
491
|
+
comments: {
|
|
492
|
+
|
|
493
|
+
list: (params: {repo: string,page?: number,page_size?: number}) => Promise<ApiPullRequestComment[]>
|
|
494
|
+
|
|
495
|
+
post: (params: {repo: string,number: number,post_pull_comment_form: any}) => Promise<any>
|
|
496
|
+
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
labels: {
|
|
500
|
+
|
|
501
|
+
delete: (params: {repo: string,number: number}) => Promise<any>
|
|
502
|
+
|
|
503
|
+
list: (params: {repo: string,number: number,page?: number,page_size?: number}) => Promise<ApiLabel[]>
|
|
504
|
+
|
|
505
|
+
post: (params: {repo: string,number: number,post_pull_labels_form: any}) => Promise<ApiLabel>
|
|
506
|
+
|
|
507
|
+
put: (params: {repo: string,number: number,put_pull_labels_form: any}) => Promise<ApiLabel>
|
|
508
|
+
|
|
509
|
+
deleteByName: (params: {repo: string,number: number,name: string}) => Promise<ApiLabel>
|
|
510
|
+
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
merge: {
|
|
514
|
+
|
|
515
|
+
put: (params: {repo: string,number: number,merge_pull_request_form: any}) => Promise<ApiMergePullResponse>
|
|
516
|
+
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
reviews: {
|
|
520
|
+
|
|
521
|
+
post: (params: {repo: string,number: number,post_pull_review_form: any}) => Promise<any>
|
|
522
|
+
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
releases: {
|
|
528
|
+
|
|
529
|
+
list: (params: {repo: string,page?: number,page_size?: number}) => Promise<ApiRelease[]>
|
|
530
|
+
|
|
531
|
+
post: (params: {repo: string,create_release_form: any}) => Promise<any>
|
|
532
|
+
|
|
533
|
+
download: {
|
|
534
|
+
|
|
535
|
+
get: (params: {repo: string,fileName: string}) => Promise<any>
|
|
536
|
+
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
tags: {
|
|
540
|
+
|
|
541
|
+
get: (params: {repo: string,tag: string}) => Promise<ApiRelease>
|
|
542
|
+
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
delete: (params: {repo: string,release_id: number}) => Promise<any>
|
|
546
|
+
|
|
547
|
+
get: (params: {repo: string,release_id: number}) => Promise<ApiRelease>
|
|
548
|
+
|
|
549
|
+
patch: (params: {repo: string,release_id: number,patch_release_form: any}) => Promise<any>
|
|
550
|
+
|
|
551
|
+
'asset-upload-confirmation': {
|
|
552
|
+
|
|
553
|
+
post: (params: {repo: string,release_id: number,token: string,asset_path: string}) => Promise<any>
|
|
554
|
+
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
'asset-upload-url': {
|
|
558
|
+
|
|
559
|
+
post: (params: {repo: string,release_id: number,create_release_asset_upload_url_form: any}) => Promise<any>
|
|
560
|
+
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
assets: {
|
|
564
|
+
|
|
565
|
+
delete: (params: {repo: string,release_id: number,asset_id: number}) => Promise<any>
|
|
566
|
+
|
|
567
|
+
get: (params: {repo: string,release_id: number,asset_id: number}) => Promise<ApiReleaseAsset>
|
|
568
|
+
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
settings: {
|
|
574
|
+
|
|
575
|
+
'branch-protections': {
|
|
576
|
+
|
|
577
|
+
list: (params: {repo: string}) => Promise<ApiBranchProtection[]>
|
|
578
|
+
|
|
579
|
+
post: (params: {repo: string,branch_protection_form: any}) => Promise<any>
|
|
580
|
+
|
|
581
|
+
delete: (params: {repo: string,id: string}) => Promise<any>
|
|
582
|
+
|
|
583
|
+
get: (params: {repo: string,id: string}) => Promise<ApiBranchProtection>
|
|
584
|
+
|
|
585
|
+
patch: (params: {repo: string,id: string,branch_protection_form: any}) => Promise<any>
|
|
586
|
+
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
'cloud-native-build': {
|
|
590
|
+
|
|
591
|
+
get: (params: {repo: string}) => Promise<ApiPipelineSettings>
|
|
592
|
+
|
|
593
|
+
put: (params: {repo: string,pipeline_form: any}) => Promise<any>
|
|
594
|
+
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
'pull-request': {
|
|
598
|
+
|
|
599
|
+
get: (params: {repo: string}) => Promise<ApiPullRequestSettings>
|
|
600
|
+
|
|
601
|
+
put: (params: {repo: string,pull_request_form: any}) => Promise<any>
|
|
602
|
+
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
'push-limit': {
|
|
606
|
+
|
|
607
|
+
get: (params: {repo: string}) => Promise<ApiPushLimitSettings>
|
|
608
|
+
|
|
609
|
+
put: (params: {repo: string,push_limit_form: any}) => Promise<any>
|
|
610
|
+
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
stars: {
|
|
616
|
+
|
|
617
|
+
get: (params: {repo: string,filter_type: string,page: number,page_size: number}) => Promise<DtoRepoStarUsers>
|
|
618
|
+
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
'top-activity-users': {
|
|
622
|
+
|
|
623
|
+
list: (params: {repo: string,top?: number}) => Promise<DtoUsersResult[]>
|
|
624
|
+
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
upload: {
|
|
628
|
+
|
|
629
|
+
files: {
|
|
630
|
+
|
|
631
|
+
post: (params: {repo: string,request: any}) => Promise<DtoUploadAssetsResponse>
|
|
632
|
+
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
imgs: {
|
|
636
|
+
|
|
637
|
+
post: (params: {repo: string,request: any}) => Promise<DtoUploadAssetsResponse>
|
|
638
|
+
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
releases: {
|
|
642
|
+
|
|
643
|
+
post: (params: {repo: string,tagName: string,request: any}) => Promise<DtoUploadAssetsResponse>
|
|
644
|
+
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
workspace: {
|
|
650
|
+
|
|
651
|
+
detail: {
|
|
652
|
+
|
|
653
|
+
get: (params: {repo: string,sn: string}) => Promise<DtoWorkspaceDetailResult>
|
|
654
|
+
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
}
|
|
662
|
+
|