node-cnb 1.4.0 → 1.5.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/package.json +1 -1
- package/src/client.d.ts +128 -67
- package/src/types.d.ts +50 -30
package/package.json
CHANGED
package/src/client.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
DtoCreateGroupReq,
|
|
2
3
|
DtoUsersResultForSelf,
|
|
4
|
+
HttpUpdateUserInfoPayload,
|
|
3
5
|
DtoOrganizationAccess,
|
|
4
6
|
DtoRepos4User,
|
|
5
7
|
DtoRepos4UserBase,
|
|
@@ -7,42 +9,72 @@ import {
|
|
|
7
9
|
DtoUserFollowResult,
|
|
8
10
|
DtoOrganizationUnion,
|
|
9
11
|
DtoWorkspaceDeleteResult,
|
|
12
|
+
DtoWorkspaceDeleteReq,
|
|
10
13
|
DtoWorkspaceListResult,
|
|
14
|
+
DtoUpdateGroupAvatarReq,
|
|
11
15
|
DtoListInheritMembers,
|
|
12
16
|
DtoUsersWithAccessLevelInSlug,
|
|
13
17
|
DtoMemberAccessLevelInSlugUnion,
|
|
14
18
|
DtoMemberAccessLevel,
|
|
19
|
+
DtoUpdateMembersRequest,
|
|
20
|
+
DtoCreateRepoReq,
|
|
15
21
|
DtoOrganizationSettingWithParent,
|
|
22
|
+
DtoGroupSettingReq,
|
|
16
23
|
DtoUploadAssetsResponse,
|
|
24
|
+
DtoUploadRequestParams,
|
|
17
25
|
DtoBuildLogsResult,
|
|
18
26
|
DtoBuildResult,
|
|
27
|
+
DtoStartBuildReq,
|
|
19
28
|
DtoBuildStatusResult,
|
|
20
29
|
DtoForks,
|
|
30
|
+
DtoForkReq,
|
|
21
31
|
ApiBranch,
|
|
32
|
+
OpenapiCreateBranchForm,
|
|
22
33
|
ApiBranchDetail,
|
|
23
34
|
WebCommitAnnotationInBatch,
|
|
35
|
+
WebGetCommitAnnotationsInBatchForm,
|
|
24
36
|
WebCommitAnnotation,
|
|
37
|
+
OpenapiPutCommitAnnotationsForm,
|
|
25
38
|
ApiCommitAsset,
|
|
39
|
+
OpenapiPostCommitAssetUploadUrlForm,
|
|
26
40
|
ApiCommitStatus,
|
|
27
41
|
ApiCommit,
|
|
28
42
|
ApiCompareResponse,
|
|
29
43
|
ApiContent,
|
|
30
44
|
OpenapiHeadRef,
|
|
31
45
|
WebTagAnnotation,
|
|
46
|
+
OpenapiPutTagAnnotationsForm,
|
|
32
47
|
ApiTag,
|
|
33
48
|
ApiIssue,
|
|
49
|
+
ApiPostIssueForm,
|
|
34
50
|
ApiIssueDetail,
|
|
51
|
+
ApiPatchIssueForm,
|
|
35
52
|
ApiIssueComment,
|
|
53
|
+
ApiPostIssueCommentForm,
|
|
54
|
+
ApiPatchIssueCommentForm,
|
|
36
55
|
ApiLabel,
|
|
56
|
+
ApiPostLabelForm,
|
|
57
|
+
ApiPatchLabelForm,
|
|
37
58
|
DtoOutsideCollaboratorInRepo,
|
|
38
59
|
ApiPullRequest,
|
|
60
|
+
ApiPullCreationForm,
|
|
39
61
|
ApiPull,
|
|
62
|
+
ApiPatchPullRequest,
|
|
40
63
|
ApiPullRequestComment,
|
|
64
|
+
ApiPullCommentCreationForm,
|
|
65
|
+
ApiPostPullLabelsForm,
|
|
66
|
+
ApiPutPullLabelsForm,
|
|
41
67
|
ApiMergePullResponse,
|
|
68
|
+
ApiMergePullRequest,
|
|
69
|
+
ApiPullReviewCreationForm,
|
|
42
70
|
ApiRelease,
|
|
71
|
+
OpenapiPostReleaseForm,
|
|
72
|
+
OpenapiPatchReleaseForm,
|
|
73
|
+
OpenapiPostReleaseAssetUploadUrlForm,
|
|
43
74
|
ApiReleaseAsset,
|
|
44
75
|
ApiBranchProtection,
|
|
45
76
|
ApiPipelineSettings,
|
|
77
|
+
WebPipelineSettings,
|
|
46
78
|
ApiPullRequestSettings,
|
|
47
79
|
ApiPushLimitSettings,
|
|
48
80
|
DtoRepoStarUsers,
|
|
@@ -51,21 +83,21 @@ import {
|
|
|
51
83
|
|
|
52
84
|
export interface Client {
|
|
53
85
|
groups: {
|
|
54
|
-
post: (params: { request:
|
|
86
|
+
post: (params: { request: DtoCreateGroupReq }) => Promise<any>;
|
|
55
87
|
};
|
|
56
88
|
|
|
57
89
|
user: {
|
|
58
90
|
get: (params: {}) => Promise<DtoUsersResultForSelf>;
|
|
59
91
|
|
|
60
|
-
post: (params: { request:
|
|
92
|
+
post: (params: { request: HttpUpdateUserInfoPayload }) => Promise<any>;
|
|
61
93
|
|
|
62
94
|
autocompleteSource: {
|
|
63
95
|
list: (params: {
|
|
64
|
-
source_type?:
|
|
96
|
+
source_type?: "Group" | "Repo";
|
|
65
97
|
page?: number;
|
|
66
98
|
page_size?: number;
|
|
67
99
|
search?: string;
|
|
68
|
-
access?:
|
|
100
|
+
access?: "Reporter" | "Developer" | "Master" | "Owner";
|
|
69
101
|
}) => Promise<string[]>;
|
|
70
102
|
};
|
|
71
103
|
|
|
@@ -74,7 +106,7 @@ export interface Client {
|
|
|
74
106
|
page?: number;
|
|
75
107
|
page_size?: number;
|
|
76
108
|
search?: string;
|
|
77
|
-
role?:
|
|
109
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
78
110
|
}) => Promise<DtoOrganizationAccess[]>;
|
|
79
111
|
|
|
80
112
|
listByGroup: (params: {
|
|
@@ -90,9 +122,9 @@ export interface Client {
|
|
|
90
122
|
page?: number;
|
|
91
123
|
page_size?: number;
|
|
92
124
|
search?: string;
|
|
93
|
-
filter_type?:
|
|
94
|
-
role?:
|
|
95
|
-
order_by?:
|
|
125
|
+
filter_type?: "private" | "public" | "encrypted";
|
|
126
|
+
role?: "Reporter" | "Developer" | "Master" | "Owner";
|
|
127
|
+
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
96
128
|
desc?: boolean;
|
|
97
129
|
}) => Promise<DtoRepos4User[]>;
|
|
98
130
|
};
|
|
@@ -103,7 +135,7 @@ export interface Client {
|
|
|
103
135
|
page_size?: number;
|
|
104
136
|
search?: string;
|
|
105
137
|
desc?: boolean;
|
|
106
|
-
order_by?:
|
|
138
|
+
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
107
139
|
}) => Promise<DtoRepos4UserBase[]>;
|
|
108
140
|
};
|
|
109
141
|
};
|
|
@@ -138,7 +170,7 @@ export interface Client {
|
|
|
138
170
|
page?: number;
|
|
139
171
|
page_size?: number;
|
|
140
172
|
desc?: boolean;
|
|
141
|
-
order_by?:
|
|
173
|
+
order_by?: "join_time" | "created_at";
|
|
142
174
|
}) => Promise<DtoOrganizationUnion>;
|
|
143
175
|
};
|
|
144
176
|
|
|
@@ -150,11 +182,11 @@ export interface Client {
|
|
|
150
182
|
list: (params: {
|
|
151
183
|
username: string;
|
|
152
184
|
search?: string;
|
|
153
|
-
role?:
|
|
185
|
+
role?: "Reporter" | "Developer" | "Master" | "Owner";
|
|
154
186
|
page?: number;
|
|
155
187
|
page_size?: number;
|
|
156
188
|
desc?: boolean;
|
|
157
|
-
order_by?:
|
|
189
|
+
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
158
190
|
}) => Promise<DtoRepos4User[]>;
|
|
159
191
|
};
|
|
160
192
|
|
|
@@ -165,14 +197,16 @@ export interface Client {
|
|
|
165
197
|
page?: number;
|
|
166
198
|
page_size?: number;
|
|
167
199
|
desc?: boolean;
|
|
168
|
-
order_by?:
|
|
200
|
+
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
169
201
|
}) => Promise<DtoRepos4User[]>;
|
|
170
202
|
};
|
|
171
203
|
};
|
|
172
204
|
|
|
173
205
|
workspace: {
|
|
174
206
|
delete: {
|
|
175
|
-
post: (params: {
|
|
207
|
+
post: (params: {
|
|
208
|
+
request: DtoWorkspaceDeleteReq;
|
|
209
|
+
}) => Promise<DtoWorkspaceDeleteResult>;
|
|
176
210
|
};
|
|
177
211
|
|
|
178
212
|
list: {
|
|
@@ -192,14 +226,17 @@ export interface Client {
|
|
|
192
226
|
get: (params: { group: string }) => Promise<DtoOrganizationAccess>;
|
|
193
227
|
|
|
194
228
|
avatar: {
|
|
195
|
-
put: (params: {
|
|
229
|
+
put: (params: {
|
|
230
|
+
group: string;
|
|
231
|
+
request: DtoUpdateGroupAvatarReq;
|
|
232
|
+
}) => Promise<any>;
|
|
196
233
|
};
|
|
197
234
|
|
|
198
235
|
inheritMembers: {
|
|
199
236
|
list: (params: {
|
|
200
237
|
group: string;
|
|
201
238
|
search?: string;
|
|
202
|
-
role?:
|
|
239
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
203
240
|
page?: number;
|
|
204
241
|
page_size?: number;
|
|
205
242
|
}) => Promise<DtoListInheritMembers[]>;
|
|
@@ -210,10 +247,10 @@ export interface Client {
|
|
|
210
247
|
group: string;
|
|
211
248
|
page?: number;
|
|
212
249
|
page_size?: number;
|
|
213
|
-
role?:
|
|
250
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
214
251
|
search?: string;
|
|
215
252
|
names?: string;
|
|
216
|
-
order_by?:
|
|
253
|
+
order_by?: "created_at" | "stars" | "follower";
|
|
217
254
|
desc?: boolean;
|
|
218
255
|
}) => Promise<DtoUsersWithAccessLevelInSlug[]>;
|
|
219
256
|
};
|
|
@@ -229,7 +266,7 @@ export interface Client {
|
|
|
229
266
|
group: string;
|
|
230
267
|
page?: number;
|
|
231
268
|
page_size?: number;
|
|
232
|
-
role?:
|
|
269
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
233
270
|
search?: string;
|
|
234
271
|
}) => Promise<DtoUsersWithAccessLevelInSlug[]>;
|
|
235
272
|
|
|
@@ -250,7 +287,7 @@ export interface Client {
|
|
|
250
287
|
put: (params: {
|
|
251
288
|
group: string;
|
|
252
289
|
username: string;
|
|
253
|
-
request:
|
|
290
|
+
request: DtoUpdateMembersRequest;
|
|
254
291
|
}) => Promise<any>;
|
|
255
292
|
};
|
|
256
293
|
|
|
@@ -259,7 +296,7 @@ export interface Client {
|
|
|
259
296
|
|
|
260
297
|
put: (params: {
|
|
261
298
|
group: string;
|
|
262
|
-
request:
|
|
299
|
+
request: string[];
|
|
263
300
|
}) => Promise<DtoRepos4UserBase[]>;
|
|
264
301
|
};
|
|
265
302
|
|
|
@@ -268,14 +305,17 @@ export interface Client {
|
|
|
268
305
|
group: string;
|
|
269
306
|
page?: number;
|
|
270
307
|
page_size?: number;
|
|
271
|
-
filter_type?:
|
|
272
|
-
order_by?:
|
|
308
|
+
filter_type?: "private" | "public" | "encrypted";
|
|
309
|
+
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
273
310
|
desc?: boolean;
|
|
274
|
-
descendant?:
|
|
311
|
+
descendant?: "all" | "sub" | "grand";
|
|
275
312
|
search?: string;
|
|
276
313
|
}) => Promise<DtoRepos4UserBase[]>;
|
|
277
314
|
|
|
278
|
-
post: (params: {
|
|
315
|
+
post: (params: {
|
|
316
|
+
group: string;
|
|
317
|
+
request: DtoCreateRepoReq;
|
|
318
|
+
}) => Promise<any>;
|
|
279
319
|
};
|
|
280
320
|
|
|
281
321
|
settings: {
|
|
@@ -283,7 +323,10 @@ export interface Client {
|
|
|
283
323
|
group: string;
|
|
284
324
|
}) => Promise<DtoOrganizationSettingWithParent>;
|
|
285
325
|
|
|
286
|
-
put: (params: {
|
|
326
|
+
put: (params: {
|
|
327
|
+
group: string;
|
|
328
|
+
request: DtoGroupSettingReq;
|
|
329
|
+
}) => Promise<any>;
|
|
287
330
|
};
|
|
288
331
|
|
|
289
332
|
subGroups: {
|
|
@@ -299,7 +342,7 @@ export interface Client {
|
|
|
299
342
|
logos: {
|
|
300
343
|
post: (params: {
|
|
301
344
|
group: string;
|
|
302
|
-
request:
|
|
345
|
+
request: DtoUploadRequestParams;
|
|
303
346
|
}) => Promise<DtoUploadAssetsResponse>;
|
|
304
347
|
};
|
|
305
348
|
};
|
|
@@ -311,7 +354,7 @@ export interface Client {
|
|
|
311
354
|
tag: {
|
|
312
355
|
delete: (params: {
|
|
313
356
|
registry: string;
|
|
314
|
-
type:
|
|
357
|
+
type: "docker" | "helm";
|
|
315
358
|
name: string;
|
|
316
359
|
tag: string;
|
|
317
360
|
}) => Promise<any>;
|
|
@@ -345,7 +388,7 @@ export interface Client {
|
|
|
345
388
|
start: {
|
|
346
389
|
post: (params: {
|
|
347
390
|
repo: string;
|
|
348
|
-
request:
|
|
391
|
+
request: DtoStartBuildReq;
|
|
349
392
|
}) => Promise<DtoBuildResult[]>;
|
|
350
393
|
};
|
|
351
394
|
|
|
@@ -394,7 +437,7 @@ export interface Client {
|
|
|
394
437
|
page_size: number;
|
|
395
438
|
}) => Promise<DtoForks[]>;
|
|
396
439
|
|
|
397
|
-
post: (params: { repo: string; request:
|
|
440
|
+
post: (params: { repo: string; request: DtoForkReq }) => Promise<any>;
|
|
398
441
|
};
|
|
399
442
|
|
|
400
443
|
git: {
|
|
@@ -407,7 +450,7 @@ export interface Client {
|
|
|
407
450
|
|
|
408
451
|
post: (params: {
|
|
409
452
|
repo: string;
|
|
410
|
-
create_branch_form:
|
|
453
|
+
create_branch_form: OpenapiCreateBranchForm;
|
|
411
454
|
}) => Promise<any>;
|
|
412
455
|
|
|
413
456
|
delete: (params: { repo: string; branch: string }) => Promise<any>;
|
|
@@ -421,7 +464,7 @@ export interface Client {
|
|
|
421
464
|
commitAnnotationsInBatch: {
|
|
422
465
|
post: (params: {
|
|
423
466
|
repo: string;
|
|
424
|
-
get_commit_annotations_form:
|
|
467
|
+
get_commit_annotations_form: WebGetCommitAnnotationsInBatchForm;
|
|
425
468
|
}) => Promise<WebCommitAnnotationInBatch[]>;
|
|
426
469
|
};
|
|
427
470
|
|
|
@@ -434,7 +477,7 @@ export interface Client {
|
|
|
434
477
|
put: (params: {
|
|
435
478
|
repo: string;
|
|
436
479
|
sha: string;
|
|
437
|
-
put_commit_annotations_form:
|
|
480
|
+
put_commit_annotations_form: OpenapiPutCommitAnnotationsForm;
|
|
438
481
|
}) => Promise<any>;
|
|
439
482
|
|
|
440
483
|
delete: (params: {
|
|
@@ -463,7 +506,7 @@ export interface Client {
|
|
|
463
506
|
post: (params: {
|
|
464
507
|
repo: string;
|
|
465
508
|
sha1: number;
|
|
466
|
-
create_commit_asset_upload_url_form:
|
|
509
|
+
create_commit_asset_upload_url_form: OpenapiPostCommitAssetUploadUrlForm;
|
|
467
510
|
}) => Promise<any>;
|
|
468
511
|
};
|
|
469
512
|
|
|
@@ -529,7 +572,7 @@ export interface Client {
|
|
|
529
572
|
put: (params: {
|
|
530
573
|
repo: string;
|
|
531
574
|
tag: string;
|
|
532
|
-
put_tag_annotations_form:
|
|
575
|
+
put_tag_annotations_form: OpenapiPutTagAnnotationsForm;
|
|
533
576
|
}) => Promise<any>;
|
|
534
577
|
};
|
|
535
578
|
|
|
@@ -565,7 +608,7 @@ export interface Client {
|
|
|
565
608
|
list: (params: {
|
|
566
609
|
repo: string;
|
|
567
610
|
search?: string;
|
|
568
|
-
role?:
|
|
611
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
569
612
|
page?: number;
|
|
570
613
|
page_size?: number;
|
|
571
614
|
}) => Promise<DtoListInheritMembers[]>;
|
|
@@ -587,12 +630,15 @@ export interface Client {
|
|
|
587
630
|
order_by?: string;
|
|
588
631
|
}) => Promise<ApiIssue[]>;
|
|
589
632
|
|
|
590
|
-
post: (params: {
|
|
633
|
+
post: (params: {
|
|
634
|
+
repo: string;
|
|
635
|
+
post_issue_form: ApiPostIssueForm;
|
|
636
|
+
}) => Promise<any>;
|
|
591
637
|
|
|
592
638
|
patch: (params: {
|
|
593
639
|
repo: string;
|
|
594
640
|
number: number;
|
|
595
|
-
patch_issue_form:
|
|
641
|
+
patch_issue_form: ApiPatchIssueForm;
|
|
596
642
|
}) => Promise<ApiIssueDetail>;
|
|
597
643
|
|
|
598
644
|
comments: {
|
|
@@ -606,7 +652,7 @@ export interface Client {
|
|
|
606
652
|
post: (params: {
|
|
607
653
|
repo: string;
|
|
608
654
|
number: number;
|
|
609
|
-
post_issue_comment_form:
|
|
655
|
+
post_issue_comment_form: ApiPostIssueCommentForm;
|
|
610
656
|
}) => Promise<any>;
|
|
611
657
|
|
|
612
658
|
get: (params: {
|
|
@@ -619,7 +665,7 @@ export interface Client {
|
|
|
619
665
|
repo: string;
|
|
620
666
|
number: number;
|
|
621
667
|
comment_id: number;
|
|
622
|
-
patch_issue_comment_form:
|
|
668
|
+
patch_issue_comment_form: ApiPatchIssueCommentForm;
|
|
623
669
|
}) => Promise<ApiIssueComment>;
|
|
624
670
|
};
|
|
625
671
|
|
|
@@ -642,14 +688,17 @@ export interface Client {
|
|
|
642
688
|
keyword?: string;
|
|
643
689
|
}) => Promise<ApiLabel[]>;
|
|
644
690
|
|
|
645
|
-
post: (params: {
|
|
691
|
+
post: (params: {
|
|
692
|
+
repo: string;
|
|
693
|
+
post_label_form: ApiPostLabelForm;
|
|
694
|
+
}) => Promise<any>;
|
|
646
695
|
|
|
647
696
|
delete: (params: { repo: string; name: string }) => Promise<any>;
|
|
648
697
|
|
|
649
698
|
patch: (params: {
|
|
650
699
|
repo: string;
|
|
651
700
|
name: string;
|
|
652
|
-
patch_label_form:
|
|
701
|
+
patch_label_form: ApiPatchLabelForm;
|
|
653
702
|
}) => Promise<ApiLabel>;
|
|
654
703
|
};
|
|
655
704
|
|
|
@@ -658,10 +707,10 @@ export interface Client {
|
|
|
658
707
|
repo: string;
|
|
659
708
|
page?: number;
|
|
660
709
|
page_size?: number;
|
|
661
|
-
role?:
|
|
710
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
662
711
|
search?: string;
|
|
663
712
|
names?: string;
|
|
664
|
-
order_by?:
|
|
713
|
+
order_by?: "created_at" | "stars" | "follower";
|
|
665
714
|
desc?: boolean;
|
|
666
715
|
}) => Promise<DtoUsersWithAccessLevelInSlug[]>;
|
|
667
716
|
};
|
|
@@ -671,7 +720,7 @@ export interface Client {
|
|
|
671
720
|
repo: string;
|
|
672
721
|
page?: number;
|
|
673
722
|
page_size?: number;
|
|
674
|
-
role?:
|
|
723
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master" | "Owner";
|
|
675
724
|
search?: string;
|
|
676
725
|
}) => Promise<DtoUsersWithAccessLevelInSlug[]>;
|
|
677
726
|
|
|
@@ -692,7 +741,7 @@ export interface Client {
|
|
|
692
741
|
put: (params: {
|
|
693
742
|
repo: string;
|
|
694
743
|
username: string;
|
|
695
|
-
request:
|
|
744
|
+
request: DtoUpdateMembersRequest;
|
|
696
745
|
}) => Promise<any>;
|
|
697
746
|
};
|
|
698
747
|
|
|
@@ -701,7 +750,7 @@ export interface Client {
|
|
|
701
750
|
repo: string;
|
|
702
751
|
page?: number;
|
|
703
752
|
page_size?: number;
|
|
704
|
-
role?:
|
|
753
|
+
role?: "Guest" | "Reporter" | "Developer" | "Master";
|
|
705
754
|
search?: string;
|
|
706
755
|
}) => Promise<DtoOutsideCollaboratorInRepo[]>;
|
|
707
756
|
|
|
@@ -710,7 +759,7 @@ export interface Client {
|
|
|
710
759
|
put: (params: {
|
|
711
760
|
repo: string;
|
|
712
761
|
username: string;
|
|
713
|
-
role:
|
|
762
|
+
role: "Guest" | "Reporter" | "Developer";
|
|
714
763
|
}) => Promise<any>;
|
|
715
764
|
};
|
|
716
765
|
|
|
@@ -725,14 +774,17 @@ export interface Client {
|
|
|
725
774
|
assignees?: string;
|
|
726
775
|
}) => Promise<ApiPullRequest[]>;
|
|
727
776
|
|
|
728
|
-
post: (params: {
|
|
777
|
+
post: (params: {
|
|
778
|
+
repo: string;
|
|
779
|
+
post_pull_form: ApiPullCreationForm;
|
|
780
|
+
}) => Promise<any>;
|
|
729
781
|
|
|
730
782
|
get: (params: { repo: string; number: number }) => Promise<ApiPull>;
|
|
731
783
|
|
|
732
784
|
patch: (params: {
|
|
733
785
|
repo: string;
|
|
734
786
|
number: number;
|
|
735
|
-
update_pull_request_form:
|
|
787
|
+
update_pull_request_form: ApiPatchPullRequest;
|
|
736
788
|
}) => Promise<ApiPull>;
|
|
737
789
|
|
|
738
790
|
comments: {
|
|
@@ -745,7 +797,7 @@ export interface Client {
|
|
|
745
797
|
post: (params: {
|
|
746
798
|
repo: string;
|
|
747
799
|
number: number;
|
|
748
|
-
post_pull_comment_form:
|
|
800
|
+
post_pull_comment_form: ApiPullCommentCreationForm;
|
|
749
801
|
}) => Promise<any>;
|
|
750
802
|
};
|
|
751
803
|
|
|
@@ -762,13 +814,13 @@ export interface Client {
|
|
|
762
814
|
post: (params: {
|
|
763
815
|
repo: string;
|
|
764
816
|
number: number;
|
|
765
|
-
post_pull_labels_form:
|
|
817
|
+
post_pull_labels_form: ApiPostPullLabelsForm;
|
|
766
818
|
}) => Promise<ApiLabel>;
|
|
767
819
|
|
|
768
820
|
put: (params: {
|
|
769
821
|
repo: string;
|
|
770
822
|
number: number;
|
|
771
|
-
put_pull_labels_form:
|
|
823
|
+
put_pull_labels_form: ApiPutPullLabelsForm;
|
|
772
824
|
}) => Promise<ApiLabel>;
|
|
773
825
|
|
|
774
826
|
deleteByName: (params: {
|
|
@@ -782,7 +834,7 @@ export interface Client {
|
|
|
782
834
|
put: (params: {
|
|
783
835
|
repo: string;
|
|
784
836
|
number: number;
|
|
785
|
-
merge_pull_request_form:
|
|
837
|
+
merge_pull_request_form: ApiMergePullRequest;
|
|
786
838
|
}) => Promise<ApiMergePullResponse>;
|
|
787
839
|
};
|
|
788
840
|
|
|
@@ -790,7 +842,7 @@ export interface Client {
|
|
|
790
842
|
post: (params: {
|
|
791
843
|
repo: string;
|
|
792
844
|
number: number;
|
|
793
|
-
post_pull_review_form:
|
|
845
|
+
post_pull_review_form: ApiPullReviewCreationForm;
|
|
794
846
|
}) => Promise<any>;
|
|
795
847
|
};
|
|
796
848
|
};
|
|
@@ -804,7 +856,7 @@ export interface Client {
|
|
|
804
856
|
|
|
805
857
|
post: (params: {
|
|
806
858
|
repo: string;
|
|
807
|
-
create_release_form:
|
|
859
|
+
create_release_form: OpenapiPostReleaseForm;
|
|
808
860
|
}) => Promise<any>;
|
|
809
861
|
|
|
810
862
|
download: {
|
|
@@ -825,7 +877,7 @@ export interface Client {
|
|
|
825
877
|
patch: (params: {
|
|
826
878
|
repo: string;
|
|
827
879
|
release_id: number;
|
|
828
|
-
patch_release_form:
|
|
880
|
+
patch_release_form: OpenapiPatchReleaseForm;
|
|
829
881
|
}) => Promise<any>;
|
|
830
882
|
|
|
831
883
|
assetUploadConfirmation: {
|
|
@@ -841,7 +893,7 @@ export interface Client {
|
|
|
841
893
|
post: (params: {
|
|
842
894
|
repo: string;
|
|
843
895
|
release_id: number;
|
|
844
|
-
create_release_asset_upload_url_form:
|
|
896
|
+
create_release_asset_upload_url_form: OpenapiPostReleaseAssetUploadUrlForm;
|
|
845
897
|
}) => Promise<any>;
|
|
846
898
|
};
|
|
847
899
|
|
|
@@ -866,7 +918,7 @@ export interface Client {
|
|
|
866
918
|
|
|
867
919
|
post: (params: {
|
|
868
920
|
repo: string;
|
|
869
|
-
branch_protection_form:
|
|
921
|
+
branch_protection_form: ApiBranchProtection;
|
|
870
922
|
}) => Promise<any>;
|
|
871
923
|
|
|
872
924
|
delete: (params: { repo: string; id: string }) => Promise<any>;
|
|
@@ -879,33 +931,42 @@ export interface Client {
|
|
|
879
931
|
patch: (params: {
|
|
880
932
|
repo: string;
|
|
881
933
|
id: string;
|
|
882
|
-
branch_protection_form:
|
|
934
|
+
branch_protection_form: ApiBranchProtection;
|
|
883
935
|
}) => Promise<any>;
|
|
884
936
|
};
|
|
885
937
|
|
|
886
938
|
cloudNativeBuild: {
|
|
887
939
|
get: (params: { repo: string }) => Promise<ApiPipelineSettings>;
|
|
888
940
|
|
|
889
|
-
put: (params: {
|
|
941
|
+
put: (params: {
|
|
942
|
+
repo: string;
|
|
943
|
+
pipeline_form: WebPipelineSettings;
|
|
944
|
+
}) => Promise<any>;
|
|
890
945
|
};
|
|
891
946
|
|
|
892
947
|
pullRequest: {
|
|
893
948
|
get: (params: { repo: string }) => Promise<ApiPullRequestSettings>;
|
|
894
949
|
|
|
895
|
-
put: (params: {
|
|
950
|
+
put: (params: {
|
|
951
|
+
repo: string;
|
|
952
|
+
pull_request_form: ApiPullRequestSettings;
|
|
953
|
+
}) => Promise<any>;
|
|
896
954
|
};
|
|
897
955
|
|
|
898
956
|
pushLimit: {
|
|
899
957
|
get: (params: { repo: string }) => Promise<ApiPushLimitSettings>;
|
|
900
958
|
|
|
901
|
-
put: (params: {
|
|
959
|
+
put: (params: {
|
|
960
|
+
repo: string;
|
|
961
|
+
push_limit_form: ApiPushLimitSettings;
|
|
962
|
+
}) => Promise<any>;
|
|
902
963
|
};
|
|
903
964
|
};
|
|
904
965
|
|
|
905
966
|
stars: {
|
|
906
967
|
get: (params: {
|
|
907
968
|
repo: string;
|
|
908
|
-
filter_type:
|
|
969
|
+
filter_type: "all" | "followed";
|
|
909
970
|
page: number;
|
|
910
971
|
page_size: number;
|
|
911
972
|
}) => Promise<DtoRepoStarUsers>;
|
|
@@ -922,14 +983,14 @@ export interface Client {
|
|
|
922
983
|
files: {
|
|
923
984
|
post: (params: {
|
|
924
985
|
repo: string;
|
|
925
|
-
request:
|
|
986
|
+
request: DtoUploadRequestParams;
|
|
926
987
|
}) => Promise<DtoUploadAssetsResponse>;
|
|
927
988
|
};
|
|
928
989
|
|
|
929
990
|
imgs: {
|
|
930
991
|
post: (params: {
|
|
931
992
|
repo: string;
|
|
932
|
-
request:
|
|
993
|
+
request: DtoUploadRequestParams;
|
|
933
994
|
}) => Promise<DtoUploadAssetsResponse>;
|
|
934
995
|
};
|
|
935
996
|
|
|
@@ -937,7 +998,7 @@ export interface Client {
|
|
|
937
998
|
post: (params: {
|
|
938
999
|
repo: string;
|
|
939
1000
|
tagName: string;
|
|
940
|
-
request:
|
|
1001
|
+
request: DtoUploadRequestParams;
|
|
941
1002
|
}) => Promise<DtoUploadAssetsResponse>;
|
|
942
1003
|
};
|
|
943
1004
|
};
|
package/src/types.d.ts
CHANGED
|
@@ -488,25 +488,39 @@ made available for inspection by other applications.*/
|
|
|
488
488
|
version: string;
|
|
489
489
|
};
|
|
490
490
|
|
|
491
|
-
export type ConstantAccessRole =
|
|
491
|
+
export type ConstantAccessRole = 0 | 10 | 20 | 30 | 40 | 50;
|
|
492
492
|
|
|
493
|
-
export type ConstantActivityType =
|
|
493
|
+
export type ConstantActivityType =
|
|
494
|
+
| "mine"
|
|
495
|
+
| "fork"
|
|
496
|
+
| "follow"
|
|
497
|
+
| "star"
|
|
498
|
+
| "join_group"
|
|
499
|
+
| "create_repo"
|
|
500
|
+
| "user_create_release"
|
|
501
|
+
| "repo_create_release"
|
|
502
|
+
| "user_deploy_success"
|
|
503
|
+
| "repo_deploy_success";
|
|
494
504
|
|
|
495
|
-
export type ConstantChargeResType =
|
|
505
|
+
export type ConstantChargeResType =
|
|
506
|
+
| "charge_type_git"
|
|
507
|
+
| "charge_type_object"
|
|
508
|
+
| "charge_type_ci"
|
|
509
|
+
| "charge_type_dev";
|
|
496
510
|
|
|
497
|
-
export type ConstantRepoDisplayModule =
|
|
511
|
+
export type ConstantRepoDisplayModule = 1 | 2 | 4;
|
|
498
512
|
|
|
499
|
-
export type ConstantRepoStatus =
|
|
513
|
+
export type ConstantRepoStatus = 0 | 1 | 2;
|
|
500
514
|
|
|
501
|
-
export type ConstantSearchResourceType =
|
|
515
|
+
export type ConstantSearchResourceType = 0 | 1 | 2 | 3 | 4 | 5;
|
|
502
516
|
|
|
503
|
-
export type ConstantSlugType =
|
|
517
|
+
export type ConstantSlugType = 0 | 1 | 2 | 3 | 4;
|
|
504
518
|
|
|
505
|
-
export type ConstantUserEditable =
|
|
519
|
+
export type ConstantUserEditable = 1 | 2 | 4 | 8 | 16;
|
|
506
520
|
|
|
507
|
-
export type ConstantUserType =
|
|
521
|
+
export type ConstantUserType = 0 | 1 | 2 | 3;
|
|
508
522
|
|
|
509
|
-
export type ConstantVisibility =
|
|
523
|
+
export type ConstantVisibility = 0 | 10 | 20;
|
|
510
524
|
|
|
511
525
|
export type ConvertNullTime = {
|
|
512
526
|
time: string;
|
|
@@ -824,7 +838,7 @@ export type DtoBuildStatusResult = {
|
|
|
824
838
|
};
|
|
825
839
|
|
|
826
840
|
export type DtoCnbRegistry = {
|
|
827
|
-
artifact_policy:
|
|
841
|
+
artifact_policy: "all" | "snapshot" | "release";
|
|
828
842
|
created_at: string;
|
|
829
843
|
description: string;
|
|
830
844
|
freeze: boolean;
|
|
@@ -833,7 +847,7 @@ export type DtoCnbRegistry = {
|
|
|
833
847
|
last_push_time: string;
|
|
834
848
|
last_push_user: DtoUsers;
|
|
835
849
|
name: string;
|
|
836
|
-
overwrite_policy:
|
|
850
|
+
overwrite_policy: "forbid" | "allow";
|
|
837
851
|
pkg_count: number;
|
|
838
852
|
updated_at: string;
|
|
839
853
|
used_size: number;
|
|
@@ -884,9 +898,9 @@ export type DtoCheckStarResponse = {
|
|
|
884
898
|
is_star: boolean;
|
|
885
899
|
};
|
|
886
900
|
|
|
887
|
-
export type DtoCleanPolicy =
|
|
901
|
+
export type DtoCleanPolicy = "pull_time" | "push_time";
|
|
888
902
|
|
|
889
|
-
export type DtoCleanPolicyStatus =
|
|
903
|
+
export type DtoCleanPolicyStatus = "enabled" | "disabled";
|
|
890
904
|
|
|
891
905
|
export type DtoContainerAnnotation = {
|
|
892
906
|
revision: string;
|
|
@@ -944,7 +958,7 @@ export type DtoCopyReq = {
|
|
|
944
958
|
description: string;
|
|
945
959
|
group: string;
|
|
946
960
|
name: string;
|
|
947
|
-
visibility:
|
|
961
|
+
visibility: "public" | "private";
|
|
948
962
|
};
|
|
949
963
|
|
|
950
964
|
export type DtoCountResponse = {
|
|
@@ -979,23 +993,23 @@ export type DtoCreateMissionReq = {
|
|
|
979
993
|
description: string;
|
|
980
994
|
name: string;
|
|
981
995
|
repos: string[];
|
|
982
|
-
visibility:
|
|
996
|
+
visibility: "public" | "private";
|
|
983
997
|
};
|
|
984
998
|
|
|
985
999
|
export type DtoCreateRegistryReq = {
|
|
986
|
-
artifact_policy:
|
|
1000
|
+
artifact_policy: "all" | "snapshot" | "release";
|
|
987
1001
|
description: string;
|
|
988
1002
|
kind: string;
|
|
989
1003
|
name: string;
|
|
990
|
-
overwrite_policy:
|
|
991
|
-
visibility:
|
|
1004
|
+
overwrite_policy: "forbid" | "allow";
|
|
1005
|
+
visibility: "public" | "private";
|
|
992
1006
|
};
|
|
993
1007
|
|
|
994
1008
|
export type DtoCreateRepoReq = {
|
|
995
1009
|
description: string;
|
|
996
1010
|
license: string;
|
|
997
1011
|
name: string;
|
|
998
|
-
visibility:
|
|
1012
|
+
visibility: "public" | "private";
|
|
999
1013
|
};
|
|
1000
1014
|
|
|
1001
1015
|
export type DtoDependency = {
|
|
@@ -1090,7 +1104,7 @@ export type DtoInheritMembersUser = {
|
|
|
1090
1104
|
verified_expire_in: string;
|
|
1091
1105
|
};
|
|
1092
1106
|
|
|
1093
|
-
export type DtoInteractionType =
|
|
1107
|
+
export type DtoInteractionType = "radio" | "checkbox" | "time_selector";
|
|
1094
1108
|
|
|
1095
1109
|
export type DtoInvitation = {
|
|
1096
1110
|
count: number;
|
|
@@ -1485,7 +1499,7 @@ export type DtoOutsideCollaboratorInRepo = {
|
|
|
1485
1499
|
verified_expire_in: string;
|
|
1486
1500
|
};
|
|
1487
1501
|
|
|
1488
|
-
export type DtoOverwritePolicy =
|
|
1502
|
+
export type DtoOverwritePolicy = "forbid" | "allow";
|
|
1489
1503
|
|
|
1490
1504
|
export type DtoPack = {
|
|
1491
1505
|
name: string;
|
|
@@ -1496,7 +1510,7 @@ export type DtoPack = {
|
|
|
1496
1510
|
type: DtoPackType;
|
|
1497
1511
|
};
|
|
1498
1512
|
|
|
1499
|
-
export type DtoPackType =
|
|
1513
|
+
export type DtoPackType = -1 | 0 | 255;
|
|
1500
1514
|
|
|
1501
1515
|
export type DtoPackage = {
|
|
1502
1516
|
count: number;
|
|
@@ -1519,7 +1533,13 @@ export type DtoPackageDetail = {
|
|
|
1519
1533
|
ohpm: DtoOhpmPackageDetail;
|
|
1520
1534
|
};
|
|
1521
1535
|
|
|
1522
|
-
export type DtoPackageType =
|
|
1536
|
+
export type DtoPackageType =
|
|
1537
|
+
| "all"
|
|
1538
|
+
| "docker"
|
|
1539
|
+
| "helm"
|
|
1540
|
+
| "npm"
|
|
1541
|
+
| "maven"
|
|
1542
|
+
| "ohpm";
|
|
1523
1543
|
|
|
1524
1544
|
export type DtoPipelineStatus = {
|
|
1525
1545
|
/**流水线耗时*/
|
|
@@ -1570,7 +1590,7 @@ export type DtoQuotaRsp = {
|
|
|
1570
1590
|
|
|
1571
1591
|
export type DtoRegistry4User = {
|
|
1572
1592
|
access: any;
|
|
1573
|
-
artifact_policy:
|
|
1593
|
+
artifact_policy: "all" | "snapshot" | "release";
|
|
1574
1594
|
created_at: string;
|
|
1575
1595
|
description: string;
|
|
1576
1596
|
freeze: boolean;
|
|
@@ -1579,7 +1599,7 @@ export type DtoRegistry4User = {
|
|
|
1579
1599
|
last_push_time: string;
|
|
1580
1600
|
last_push_user: DtoUsers;
|
|
1581
1601
|
name: string;
|
|
1582
|
-
overwrite_policy:
|
|
1602
|
+
overwrite_policy: "forbid" | "allow";
|
|
1583
1603
|
path: string;
|
|
1584
1604
|
pkg_count: number;
|
|
1585
1605
|
star_time: string;
|
|
@@ -1743,7 +1763,7 @@ export type DtoResourceMission = {
|
|
|
1743
1763
|
};
|
|
1744
1764
|
|
|
1745
1765
|
export type DtoResourceRegistry = {
|
|
1746
|
-
artifact_policy:
|
|
1766
|
+
artifact_policy: "all" | "snapshot" | "release";
|
|
1747
1767
|
created_at: string;
|
|
1748
1768
|
description: string;
|
|
1749
1769
|
freeze: boolean;
|
|
@@ -1752,7 +1772,7 @@ export type DtoResourceRegistry = {
|
|
|
1752
1772
|
last_push_time: string;
|
|
1753
1773
|
last_push_user: DtoUsers;
|
|
1754
1774
|
name: string;
|
|
1755
|
-
overwrite_policy:
|
|
1775
|
+
overwrite_policy: "forbid" | "allow";
|
|
1756
1776
|
path: string;
|
|
1757
1777
|
pkg_count: number;
|
|
1758
1778
|
updated_at: string;
|
|
@@ -1945,7 +1965,7 @@ export type DtoUserEmailPayload = {
|
|
|
1945
1965
|
email: string;
|
|
1946
1966
|
};
|
|
1947
1967
|
|
|
1948
|
-
export type DtoUserEmailType =
|
|
1968
|
+
export type DtoUserEmailType = "git" | "contact";
|
|
1949
1969
|
|
|
1950
1970
|
export type DtoUserEmailWithCodePayload = {
|
|
1951
1971
|
code: string;
|
|
@@ -2101,7 +2121,7 @@ export type DtoUsersWithAccessLevelInSlug = {
|
|
|
2101
2121
|
verified_expire_in: string;
|
|
2102
2122
|
};
|
|
2103
2123
|
|
|
2104
|
-
export type DtoVersionPolicy =
|
|
2124
|
+
export type DtoVersionPolicy = "all" | "snapshot" | "release";
|
|
2105
2125
|
|
|
2106
2126
|
export type DtoVolumeUsed = any;
|
|
2107
2127
|
|