node-cnb 1.13.0 → 1.14.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 +261 -13
- package/package.json +2 -2
- package/src/client.d.ts +91 -2
- package/src/types.d.ts +90 -0
package/dist/paths.json
CHANGED
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
"type": "string"
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
|
-
"description": "
|
|
278
|
+
"description": "RType",
|
|
279
279
|
"enum": [
|
|
280
280
|
"private",
|
|
281
281
|
"public",
|
|
@@ -2179,10 +2179,7 @@
|
|
|
2179
2179
|
"200": {
|
|
2180
2180
|
"description": "OK",
|
|
2181
2181
|
"schema": {
|
|
2182
|
-
"
|
|
2183
|
-
"$ref": "#/definitions/dto.BuildResult"
|
|
2184
|
-
},
|
|
2185
|
-
"type": "array"
|
|
2182
|
+
"$ref": "#/definitions/dto.BuildResult"
|
|
2186
2183
|
}
|
|
2187
2184
|
}
|
|
2188
2185
|
},
|
|
@@ -2250,10 +2247,7 @@
|
|
|
2250
2247
|
"200": {
|
|
2251
2248
|
"description": "OK",
|
|
2252
2249
|
"schema": {
|
|
2253
|
-
"
|
|
2254
|
-
"$ref": "#/definitions/dto.BuildResult"
|
|
2255
|
-
},
|
|
2256
|
-
"type": "array"
|
|
2250
|
+
"$ref": "#/definitions/dto.BuildResult"
|
|
2257
2251
|
}
|
|
2258
2252
|
}
|
|
2259
2253
|
},
|
|
@@ -4380,6 +4374,61 @@
|
|
|
4380
4374
|
"path": "/{repo}/-/issues/{number}",
|
|
4381
4375
|
"method": "patch"
|
|
4382
4376
|
},
|
|
4377
|
+
"repo.issues.assignees.delete": {
|
|
4378
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4379
|
+
"operationId": "DeleteIssueAssignees",
|
|
4380
|
+
"tags": [
|
|
4381
|
+
"Issues"
|
|
4382
|
+
],
|
|
4383
|
+
"summary": "删除 Issue 中的 Assignees。 Removes one or more assignees from an issue.",
|
|
4384
|
+
"parameters": [
|
|
4385
|
+
{
|
|
4386
|
+
"description": "repo",
|
|
4387
|
+
"in": "path",
|
|
4388
|
+
"name": "repo",
|
|
4389
|
+
"required": true,
|
|
4390
|
+
"type": "string"
|
|
4391
|
+
},
|
|
4392
|
+
{
|
|
4393
|
+
"description": "issue number",
|
|
4394
|
+
"in": "path",
|
|
4395
|
+
"name": "number",
|
|
4396
|
+
"required": true,
|
|
4397
|
+
"type": "string"
|
|
4398
|
+
},
|
|
4399
|
+
{
|
|
4400
|
+
"description": "Delete Issue Assignees Form",
|
|
4401
|
+
"in": "body",
|
|
4402
|
+
"name": "delete_issue_assignees_form",
|
|
4403
|
+
"required": true,
|
|
4404
|
+
"schema": {
|
|
4405
|
+
"$ref": "#/definitions/api.DeleteIssueAssigneesForm"
|
|
4406
|
+
}
|
|
4407
|
+
}
|
|
4408
|
+
],
|
|
4409
|
+
"responses": {
|
|
4410
|
+
"200": {
|
|
4411
|
+
"description": "OK",
|
|
4412
|
+
"schema": {
|
|
4413
|
+
"$ref": "#/definitions/api.IssueDetail"
|
|
4414
|
+
}
|
|
4415
|
+
},
|
|
4416
|
+
"404": {
|
|
4417
|
+
"description": "Not Found",
|
|
4418
|
+
"schema": {
|
|
4419
|
+
"$ref": "#/definitions/die.WebError"
|
|
4420
|
+
}
|
|
4421
|
+
},
|
|
4422
|
+
"500": {
|
|
4423
|
+
"description": "Internal Server Error",
|
|
4424
|
+
"schema": {
|
|
4425
|
+
"$ref": "#/definitions/die.WebError"
|
|
4426
|
+
}
|
|
4427
|
+
}
|
|
4428
|
+
},
|
|
4429
|
+
"path": "/{repo}/-/issues/{number}/assignees",
|
|
4430
|
+
"method": "delete"
|
|
4431
|
+
},
|
|
4383
4432
|
"repo.issues.assignees.list": {
|
|
4384
4433
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
4385
4434
|
"operationId": "ListIssueAssignees",
|
|
@@ -4465,10 +4514,7 @@
|
|
|
4465
4514
|
"201": {
|
|
4466
4515
|
"description": "Created",
|
|
4467
4516
|
"schema": {
|
|
4468
|
-
"
|
|
4469
|
-
"$ref": "#/definitions/api.IssueDetail"
|
|
4470
|
-
},
|
|
4471
|
-
"type": "array"
|
|
4517
|
+
"$ref": "#/definitions/api.IssueDetail"
|
|
4472
4518
|
}
|
|
4473
4519
|
},
|
|
4474
4520
|
"404": {
|
|
@@ -4487,6 +4533,56 @@
|
|
|
4487
4533
|
"path": "/{repo}/-/issues/{number}/assignees",
|
|
4488
4534
|
"method": "post"
|
|
4489
4535
|
},
|
|
4536
|
+
"repo.issues.assignees.get": {
|
|
4537
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
4538
|
+
"operationId": "CanUserBeAssignedToIssue",
|
|
4539
|
+
"tags": [
|
|
4540
|
+
"Issues"
|
|
4541
|
+
],
|
|
4542
|
+
"summary": "检查用户是否可以被添加到 Issue 的 Assignees 中。 Checks if a user can be assigned to an issue.",
|
|
4543
|
+
"parameters": [
|
|
4544
|
+
{
|
|
4545
|
+
"description": "repo",
|
|
4546
|
+
"in": "path",
|
|
4547
|
+
"name": "repo",
|
|
4548
|
+
"required": true,
|
|
4549
|
+
"type": "string"
|
|
4550
|
+
},
|
|
4551
|
+
{
|
|
4552
|
+
"description": "issue number",
|
|
4553
|
+
"in": "path",
|
|
4554
|
+
"name": "number",
|
|
4555
|
+
"required": true,
|
|
4556
|
+
"type": "string"
|
|
4557
|
+
},
|
|
4558
|
+
{
|
|
4559
|
+
"description": "assignee",
|
|
4560
|
+
"in": "path",
|
|
4561
|
+
"name": "assignee",
|
|
4562
|
+
"required": true,
|
|
4563
|
+
"type": "string"
|
|
4564
|
+
}
|
|
4565
|
+
],
|
|
4566
|
+
"responses": {
|
|
4567
|
+
"204": {
|
|
4568
|
+
"description": "No Content"
|
|
4569
|
+
},
|
|
4570
|
+
"404": {
|
|
4571
|
+
"description": "Not Found",
|
|
4572
|
+
"schema": {
|
|
4573
|
+
"$ref": "#/definitions/die.WebError"
|
|
4574
|
+
}
|
|
4575
|
+
},
|
|
4576
|
+
"500": {
|
|
4577
|
+
"description": "Internal Server Error",
|
|
4578
|
+
"schema": {
|
|
4579
|
+
"$ref": "#/definitions/die.WebError"
|
|
4580
|
+
}
|
|
4581
|
+
}
|
|
4582
|
+
},
|
|
4583
|
+
"path": "/{repo}/-/issues/{number}/assignees/{assignee}",
|
|
4584
|
+
"method": "get"
|
|
4585
|
+
},
|
|
4490
4586
|
"repo.issues.comments.list": {
|
|
4491
4587
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
4492
4588
|
"operationId": "ListIssueComments",
|
|
@@ -5197,6 +5293,53 @@
|
|
|
5197
5293
|
"path": "/{repo}/-/labels/{name}",
|
|
5198
5294
|
"method": "patch"
|
|
5199
5295
|
},
|
|
5296
|
+
"repo.lfs.get": {
|
|
5297
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
5298
|
+
"operationId": "GetPresignedLFSDownloadLink",
|
|
5299
|
+
"tags": [
|
|
5300
|
+
"Git"
|
|
5301
|
+
],
|
|
5302
|
+
"summary": "获取 git lfs 文件下载链接",
|
|
5303
|
+
"parameters": [
|
|
5304
|
+
{
|
|
5305
|
+
"description": "slug",
|
|
5306
|
+
"in": "path",
|
|
5307
|
+
"name": "repo",
|
|
5308
|
+
"required": true,
|
|
5309
|
+
"type": "string"
|
|
5310
|
+
},
|
|
5311
|
+
{
|
|
5312
|
+
"description": "lfs oid",
|
|
5313
|
+
"in": "path",
|
|
5314
|
+
"name": "oid",
|
|
5315
|
+
"required": true,
|
|
5316
|
+
"type": "string"
|
|
5317
|
+
},
|
|
5318
|
+
{
|
|
5319
|
+
"description": "download filename",
|
|
5320
|
+
"in": "query",
|
|
5321
|
+
"name": "name",
|
|
5322
|
+
"required": true,
|
|
5323
|
+
"type": "string"
|
|
5324
|
+
}
|
|
5325
|
+
],
|
|
5326
|
+
"responses": {
|
|
5327
|
+
"404": {
|
|
5328
|
+
"description": "Not Found",
|
|
5329
|
+
"schema": {
|
|
5330
|
+
"$ref": "#/definitions/die.WebError"
|
|
5331
|
+
}
|
|
5332
|
+
},
|
|
5333
|
+
"500": {
|
|
5334
|
+
"description": "Internal Server Error",
|
|
5335
|
+
"schema": {
|
|
5336
|
+
"$ref": "#/definitions/die.WebError"
|
|
5337
|
+
}
|
|
5338
|
+
}
|
|
5339
|
+
},
|
|
5340
|
+
"path": "/{repo}/-/lfs/{oid}",
|
|
5341
|
+
"method": "get"
|
|
5342
|
+
},
|
|
5200
5343
|
"repo.listMembers.list": {
|
|
5201
5344
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
|
|
5202
5345
|
"operationId": "ListAllMembers",
|
|
@@ -5954,6 +6097,61 @@
|
|
|
5954
6097
|
"path": "/{repo}/-/pulls/{number}",
|
|
5955
6098
|
"method": "patch"
|
|
5956
6099
|
},
|
|
6100
|
+
"repo.pulls.assignees.delete": {
|
|
6101
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
6102
|
+
"operationId": "DeletePullAssignees",
|
|
6103
|
+
"tags": [
|
|
6104
|
+
"Pulls"
|
|
6105
|
+
],
|
|
6106
|
+
"summary": "删除 PullRequest 中的 Assignees。 Removes one or more assignees from a pull request.",
|
|
6107
|
+
"parameters": [
|
|
6108
|
+
{
|
|
6109
|
+
"description": "repo",
|
|
6110
|
+
"in": "path",
|
|
6111
|
+
"name": "repo",
|
|
6112
|
+
"required": true,
|
|
6113
|
+
"type": "string"
|
|
6114
|
+
},
|
|
6115
|
+
{
|
|
6116
|
+
"description": "number",
|
|
6117
|
+
"in": "path",
|
|
6118
|
+
"name": "number",
|
|
6119
|
+
"required": true,
|
|
6120
|
+
"type": "string"
|
|
6121
|
+
},
|
|
6122
|
+
{
|
|
6123
|
+
"description": "Delete Pull Assignees Form",
|
|
6124
|
+
"in": "body",
|
|
6125
|
+
"name": "delete_pull_assignees_form",
|
|
6126
|
+
"required": true,
|
|
6127
|
+
"schema": {
|
|
6128
|
+
"$ref": "#/definitions/api.DeletePullAssigneesForm"
|
|
6129
|
+
}
|
|
6130
|
+
}
|
|
6131
|
+
],
|
|
6132
|
+
"responses": {
|
|
6133
|
+
"200": {
|
|
6134
|
+
"description": "OK",
|
|
6135
|
+
"schema": {
|
|
6136
|
+
"$ref": "#/definitions/api.Pull"
|
|
6137
|
+
}
|
|
6138
|
+
},
|
|
6139
|
+
"404": {
|
|
6140
|
+
"description": "Not Found",
|
|
6141
|
+
"schema": {
|
|
6142
|
+
"$ref": "#/definitions/die.WebError"
|
|
6143
|
+
}
|
|
6144
|
+
},
|
|
6145
|
+
"500": {
|
|
6146
|
+
"description": "Internal Server Error",
|
|
6147
|
+
"schema": {
|
|
6148
|
+
"$ref": "#/definitions/die.WebError"
|
|
6149
|
+
}
|
|
6150
|
+
}
|
|
6151
|
+
},
|
|
6152
|
+
"path": "/{repo}/-/pulls/{number}/assignees",
|
|
6153
|
+
"method": "delete"
|
|
6154
|
+
},
|
|
5957
6155
|
"repo.pulls.assignees.list": {
|
|
5958
6156
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
5959
6157
|
"operationId": "ListPullAssignees",
|
|
@@ -6058,6 +6256,56 @@
|
|
|
6058
6256
|
"path": "/{repo}/-/pulls/{number}/assignees",
|
|
6059
6257
|
"method": "post"
|
|
6060
6258
|
},
|
|
6259
|
+
"repo.pulls.assignees.get": {
|
|
6260
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
6261
|
+
"operationId": "CanUserBeAssignedToPull",
|
|
6262
|
+
"tags": [
|
|
6263
|
+
"Pulls"
|
|
6264
|
+
],
|
|
6265
|
+
"summary": "检查用户是否可以被添加到 PullRequest 的 Assignees 中。 Checks if a user can be assigned to a pull request.",
|
|
6266
|
+
"parameters": [
|
|
6267
|
+
{
|
|
6268
|
+
"description": "repo",
|
|
6269
|
+
"in": "path",
|
|
6270
|
+
"name": "repo",
|
|
6271
|
+
"required": true,
|
|
6272
|
+
"type": "string"
|
|
6273
|
+
},
|
|
6274
|
+
{
|
|
6275
|
+
"description": "number",
|
|
6276
|
+
"in": "path",
|
|
6277
|
+
"name": "number",
|
|
6278
|
+
"required": true,
|
|
6279
|
+
"type": "string"
|
|
6280
|
+
},
|
|
6281
|
+
{
|
|
6282
|
+
"description": "assignee",
|
|
6283
|
+
"in": "path",
|
|
6284
|
+
"name": "assignee",
|
|
6285
|
+
"required": true,
|
|
6286
|
+
"type": "string"
|
|
6287
|
+
}
|
|
6288
|
+
],
|
|
6289
|
+
"responses": {
|
|
6290
|
+
"204": {
|
|
6291
|
+
"description": "No Content"
|
|
6292
|
+
},
|
|
6293
|
+
"404": {
|
|
6294
|
+
"description": "Not Found",
|
|
6295
|
+
"schema": {
|
|
6296
|
+
"$ref": "#/definitions/die.WebError"
|
|
6297
|
+
}
|
|
6298
|
+
},
|
|
6299
|
+
"500": {
|
|
6300
|
+
"description": "Internal Server Error",
|
|
6301
|
+
"schema": {
|
|
6302
|
+
"$ref": "#/definitions/die.WebError"
|
|
6303
|
+
}
|
|
6304
|
+
}
|
|
6305
|
+
},
|
|
6306
|
+
"path": "/{repo}/-/pulls/{number}/assignees/{assignee}",
|
|
6307
|
+
"method": "get"
|
|
6308
|
+
},
|
|
6061
6309
|
"repo.pulls.comments.list": {
|
|
6062
6310
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
6063
6311
|
"operationId": "ListPullComments",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-cnb",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"description": "node sdk for cnb open api",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
9
|
"build": "node build.js && tsc && cp src/*.json dist/",
|
|
10
10
|
"sync-swagger": "wget -O openapi_swagger.json https://api.cnb.cool/swagger.json",
|
|
11
|
-
"release": "standard-version && git push --follow-tags origin
|
|
11
|
+
"release": "standard-version && git push --follow-tags origin release -f"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
package/src/client.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ import {
|
|
|
56
56
|
ApiPostIssueForm,
|
|
57
57
|
ApiIssueDetail,
|
|
58
58
|
ApiPatchIssueForm,
|
|
59
|
+
ApiDeleteIssueAssigneesForm,
|
|
59
60
|
GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo,
|
|
60
61
|
ApiPostIssueAssigneesForm,
|
|
61
62
|
ApiIssueComment,
|
|
@@ -72,6 +73,7 @@ import {
|
|
|
72
73
|
ApiPullCreationForm,
|
|
73
74
|
ApiPull,
|
|
74
75
|
ApiPatchPullRequest,
|
|
76
|
+
ApiDeletePullAssigneesForm,
|
|
75
77
|
GitWoaComCnbMonorepoGitInternalAppGitServiceBffApiUserInfo,
|
|
76
78
|
ApiPostPullAssigneesForm,
|
|
77
79
|
ApiPullRequestComment,
|
|
@@ -401,7 +403,7 @@ type Build_GetBuildLogs = (params: {
|
|
|
401
403
|
type Build_StartBuild = (params: {
|
|
402
404
|
repo: string;
|
|
403
405
|
request: DtoStartBuildReq;
|
|
404
|
-
}) => Promise<DtoBuildResult
|
|
406
|
+
}) => Promise<DtoBuildResult>;
|
|
405
407
|
|
|
406
408
|
type Build_GetBuildStatus = (params: {
|
|
407
409
|
repo: string;
|
|
@@ -411,7 +413,7 @@ type Build_GetBuildStatus = (params: {
|
|
|
411
413
|
type Build_StopBuild = (params: {
|
|
412
414
|
repo: string;
|
|
413
415
|
sn: string;
|
|
414
|
-
}) => Promise<DtoBuildResult
|
|
416
|
+
}) => Promise<DtoBuildResult>;
|
|
415
417
|
|
|
416
418
|
type Assets_GetCommitAssets = (params: {
|
|
417
419
|
repo: string;
|
|
@@ -657,6 +659,12 @@ type Issues_UpdateIssue = (params: {
|
|
|
657
659
|
patch_issue_form: ApiPatchIssueForm;
|
|
658
660
|
}) => Promise<ApiIssueDetail>;
|
|
659
661
|
|
|
662
|
+
type Issues_DeleteIssueAssignees = (params: {
|
|
663
|
+
repo: string;
|
|
664
|
+
number: string;
|
|
665
|
+
delete_issue_assignees_form: ApiDeleteIssueAssigneesForm;
|
|
666
|
+
}) => Promise<ApiIssueDetail>;
|
|
667
|
+
|
|
660
668
|
type Issues_ListIssueAssignees = (params: {
|
|
661
669
|
repo: string;
|
|
662
670
|
number: string;
|
|
@@ -668,6 +676,12 @@ type Issues_PostIssueAssignees = (params: {
|
|
|
668
676
|
post_issue_assignees_form: ApiPostIssueAssigneesForm;
|
|
669
677
|
}) => Promise<any>;
|
|
670
678
|
|
|
679
|
+
type Issues_CanUserBeAssignedToIssue = (params: {
|
|
680
|
+
repo: string;
|
|
681
|
+
number: string;
|
|
682
|
+
assignee: string;
|
|
683
|
+
}) => Promise<any>;
|
|
684
|
+
|
|
671
685
|
type Issues_ListIssueComments = (params: {
|
|
672
686
|
repo: string;
|
|
673
687
|
number: number;
|
|
@@ -747,6 +761,12 @@ type RepoLabels_PatchLabel = (params: {
|
|
|
747
761
|
patch_label_form: ApiPatchLabelForm;
|
|
748
762
|
}) => Promise<ApiLabel>;
|
|
749
763
|
|
|
764
|
+
type Git_GetPresignedLFSDownloadLink = (params: {
|
|
765
|
+
repo: string;
|
|
766
|
+
oid: string;
|
|
767
|
+
name: string;
|
|
768
|
+
}) => Promise<any>;
|
|
769
|
+
|
|
750
770
|
type Collaborators_ListAllMembers = (params: {
|
|
751
771
|
repo: string;
|
|
752
772
|
page?: number;
|
|
@@ -844,6 +864,12 @@ type Pulls_PatchPull = (params: {
|
|
|
844
864
|
update_pull_request_form: ApiPatchPullRequest;
|
|
845
865
|
}) => Promise<ApiPull>;
|
|
846
866
|
|
|
867
|
+
type Pulls_DeletePullAssignees = (params: {
|
|
868
|
+
repo: string;
|
|
869
|
+
number: string;
|
|
870
|
+
delete_pull_assignees_form: ApiDeletePullAssigneesForm;
|
|
871
|
+
}) => Promise<ApiPull>;
|
|
872
|
+
|
|
847
873
|
type Pulls_ListPullAssignees = (params: {
|
|
848
874
|
repo: string;
|
|
849
875
|
number: string;
|
|
@@ -855,6 +881,12 @@ type Pulls_PostPullAssignees = (params: {
|
|
|
855
881
|
post_pull_assignees_form: ApiPostPullAssigneesForm;
|
|
856
882
|
}) => Promise<any>;
|
|
857
883
|
|
|
884
|
+
type Pulls_CanUserBeAssignedToPull = (params: {
|
|
885
|
+
repo: string;
|
|
886
|
+
number: string;
|
|
887
|
+
assignee: string;
|
|
888
|
+
}) => Promise<any>;
|
|
889
|
+
|
|
858
890
|
type Pulls_ListPullComments = (params: {
|
|
859
891
|
repo: string;
|
|
860
892
|
number: string;
|
|
@@ -2212,6 +2244,16 @@ export interface Client {
|
|
|
2212
2244
|
patch: Issues_UpdateIssue;
|
|
2213
2245
|
|
|
2214
2246
|
assignees: {
|
|
2247
|
+
/***
|
|
2248
|
+
* 删除 Issue 中的 Assignees。 Removes one or more assignees from an issue.
|
|
2249
|
+
*
|
|
2250
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2251
|
+
* repo-notes:rw
|
|
2252
|
+
*
|
|
2253
|
+
* /{repo}/-/issues/{number}/assignees
|
|
2254
|
+
*/
|
|
2255
|
+
delete: Issues_DeleteIssueAssignees;
|
|
2256
|
+
|
|
2215
2257
|
/***
|
|
2216
2258
|
* 查询指定 Issue 的 Assignees。 List repository issue assignees.
|
|
2217
2259
|
*
|
|
@@ -2231,6 +2273,16 @@ export interface Client {
|
|
|
2231
2273
|
* /{repo}/-/issues/{number}/assignees
|
|
2232
2274
|
*/
|
|
2233
2275
|
post: Issues_PostIssueAssignees;
|
|
2276
|
+
|
|
2277
|
+
/***
|
|
2278
|
+
* 检查用户是否可以被添加到 Issue 的 Assignees 中。 Checks if a user can be assigned to an issue.
|
|
2279
|
+
*
|
|
2280
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2281
|
+
* repo-notes:r
|
|
2282
|
+
*
|
|
2283
|
+
* /{repo}/-/issues/{number}/assignees/{assignee}
|
|
2284
|
+
*/
|
|
2285
|
+
get: Issues_CanUserBeAssignedToIssue;
|
|
2234
2286
|
};
|
|
2235
2287
|
|
|
2236
2288
|
comments: {
|
|
@@ -2370,6 +2422,18 @@ export interface Client {
|
|
|
2370
2422
|
patch: RepoLabels_PatchLabel;
|
|
2371
2423
|
};
|
|
2372
2424
|
|
|
2425
|
+
lfs: {
|
|
2426
|
+
/***
|
|
2427
|
+
* 获取 git lfs 文件下载链接
|
|
2428
|
+
*
|
|
2429
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2430
|
+
* repo-code:r
|
|
2431
|
+
*
|
|
2432
|
+
* /{repo}/-/lfs/{oid}
|
|
2433
|
+
*/
|
|
2434
|
+
get: Git_GetPresignedLFSDownloadLink;
|
|
2435
|
+
};
|
|
2436
|
+
|
|
2373
2437
|
listMembers: {
|
|
2374
2438
|
/***
|
|
2375
2439
|
* 获取指定仓库内的有效成员列表,包含继承成员。List active members in specified repository including inherited members.
|
|
@@ -2532,6 +2596,16 @@ export interface Client {
|
|
|
2532
2596
|
patch: Pulls_PatchPull;
|
|
2533
2597
|
|
|
2534
2598
|
assignees: {
|
|
2599
|
+
/***
|
|
2600
|
+
* 删除 PullRequest 中的 Assignees。 Removes one or more assignees from a pull request.
|
|
2601
|
+
*
|
|
2602
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2603
|
+
* repo-notes:rw
|
|
2604
|
+
*
|
|
2605
|
+
* /{repo}/-/pulls/{number}/assignees
|
|
2606
|
+
*/
|
|
2607
|
+
delete: Pulls_DeletePullAssignees;
|
|
2608
|
+
|
|
2535
2609
|
/***
|
|
2536
2610
|
* 查询指定 PullRequest 的 Assignees。List repository pull request assignees.
|
|
2537
2611
|
*
|
|
@@ -2551,6 +2625,16 @@ export interface Client {
|
|
|
2551
2625
|
* /{repo}/-/pulls/{number}/assignees
|
|
2552
2626
|
*/
|
|
2553
2627
|
post: Pulls_PostPullAssignees;
|
|
2628
|
+
|
|
2629
|
+
/***
|
|
2630
|
+
* 检查用户是否可以被添加到 PullRequest 的 Assignees 中。 Checks if a user can be assigned to a pull request.
|
|
2631
|
+
*
|
|
2632
|
+
* 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
2633
|
+
* repo-notes:r
|
|
2634
|
+
*
|
|
2635
|
+
* /{repo}/-/pulls/{number}/assignees/{assignee}
|
|
2636
|
+
*/
|
|
2637
|
+
get: Pulls_CanUserBeAssignedToPull;
|
|
2554
2638
|
};
|
|
2555
2639
|
|
|
2556
2640
|
comments: {
|
|
@@ -3265,6 +3349,7 @@ export interface Client {
|
|
|
3265
3349
|
CreateTag: Git_CreateTag;
|
|
3266
3350
|
DeleteTag: Git_DeleteTag;
|
|
3267
3351
|
GetTag: Git_GetTag;
|
|
3352
|
+
GetPresignedLFSDownloadLink: Git_GetPresignedLFSDownloadLink;
|
|
3268
3353
|
};
|
|
3269
3354
|
|
|
3270
3355
|
Issues: {
|
|
@@ -3272,8 +3357,10 @@ export interface Client {
|
|
|
3272
3357
|
CreateIssue: Issues_CreateIssue;
|
|
3273
3358
|
GetIssue: Issues_GetIssue;
|
|
3274
3359
|
UpdateIssue: Issues_UpdateIssue;
|
|
3360
|
+
DeleteIssueAssignees: Issues_DeleteIssueAssignees;
|
|
3275
3361
|
ListIssueAssignees: Issues_ListIssueAssignees;
|
|
3276
3362
|
PostIssueAssignees: Issues_PostIssueAssignees;
|
|
3363
|
+
CanUserBeAssignedToIssue: Issues_CanUserBeAssignedToIssue;
|
|
3277
3364
|
ListIssueComments: Issues_ListIssueComments;
|
|
3278
3365
|
PostIssueComment: Issues_PostIssueComment;
|
|
3279
3366
|
GetIssueComment: Issues_GetIssueComment;
|
|
@@ -3298,8 +3385,10 @@ export interface Client {
|
|
|
3298
3385
|
PostPull: Pulls_PostPull;
|
|
3299
3386
|
GetPull: Pulls_GetPull;
|
|
3300
3387
|
PatchPull: Pulls_PatchPull;
|
|
3388
|
+
DeletePullAssignees: Pulls_DeletePullAssignees;
|
|
3301
3389
|
ListPullAssignees: Pulls_ListPullAssignees;
|
|
3302
3390
|
PostPullAssignees: Pulls_PostPullAssignees;
|
|
3391
|
+
CanUserBeAssignedToPull: Pulls_CanUserBeAssignedToPull;
|
|
3303
3392
|
ListPullComments: Pulls_ListPullComments;
|
|
3304
3393
|
PostPullComment: Pulls_PostPullComment;
|
|
3305
3394
|
DeletePullLabels: Pulls_DeletePullLabels;
|
package/src/types.d.ts
CHANGED
|
@@ -119,6 +119,7 @@ export type ApiContent = {
|
|
|
119
119
|
content: string;
|
|
120
120
|
encoding: string;
|
|
121
121
|
entries: ApiTreeEntry[];
|
|
122
|
+
lfs_download_url: string;
|
|
122
123
|
name: string;
|
|
123
124
|
path: string;
|
|
124
125
|
sha: string;
|
|
@@ -126,6 +127,14 @@ export type ApiContent = {
|
|
|
126
127
|
type: string;
|
|
127
128
|
};
|
|
128
129
|
|
|
130
|
+
export type ApiDeleteIssueAssigneesForm = {
|
|
131
|
+
assignees: string[];
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export type ApiDeletePullAssigneesForm = {
|
|
135
|
+
assignees: string[];
|
|
136
|
+
};
|
|
137
|
+
|
|
129
138
|
export type ApiIssue = {
|
|
130
139
|
assignees: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo[];
|
|
131
140
|
author: GitWoaComCnbMonorepoGitInternalAppVcsServiceBffApiUserInfo;
|
|
@@ -640,6 +649,10 @@ export type DtoAccessTokenItem = {
|
|
|
640
649
|
token_id: string;
|
|
641
650
|
};
|
|
642
651
|
|
|
652
|
+
export type DtoAccessTokenPatchPayload = {
|
|
653
|
+
description: string;
|
|
654
|
+
};
|
|
655
|
+
|
|
643
656
|
export type DtoAccessTokenPayload = {
|
|
644
657
|
description: string;
|
|
645
658
|
expired_at: ConvertNullTime;
|
|
@@ -798,6 +811,7 @@ export type DtoActivityUsers = {
|
|
|
798
811
|
id: string;
|
|
799
812
|
is_follow: boolean;
|
|
800
813
|
location: string;
|
|
814
|
+
lock: boolean;
|
|
801
815
|
mission_count: number;
|
|
802
816
|
nickname: string;
|
|
803
817
|
registry_count: number;
|
|
@@ -1188,6 +1202,7 @@ export type DtoCreateRepoReq = {
|
|
|
1188
1202
|
|
|
1189
1203
|
export type DtoCreator = {
|
|
1190
1204
|
freeze: boolean;
|
|
1205
|
+
lock: boolean;
|
|
1191
1206
|
name: string;
|
|
1192
1207
|
nick: string;
|
|
1193
1208
|
};
|
|
@@ -1200,6 +1215,7 @@ export type DtoDashboardStar = {
|
|
|
1200
1215
|
|
|
1201
1216
|
export type DtoDependency = {
|
|
1202
1217
|
artifact: string;
|
|
1218
|
+
framework_name: string;
|
|
1203
1219
|
name: string;
|
|
1204
1220
|
};
|
|
1205
1221
|
|
|
@@ -1281,6 +1297,7 @@ export type DtoForks = {
|
|
|
1281
1297
|
nickname: string;
|
|
1282
1298
|
path: string;
|
|
1283
1299
|
user_freeze: boolean;
|
|
1300
|
+
user_lock: boolean;
|
|
1284
1301
|
username: string;
|
|
1285
1302
|
};
|
|
1286
1303
|
|
|
@@ -1366,6 +1383,7 @@ export type DtoInheritMembersUser = {
|
|
|
1366
1383
|
id: string;
|
|
1367
1384
|
inviter: DtoUsers;
|
|
1368
1385
|
join_time: string;
|
|
1386
|
+
lock: boolean;
|
|
1369
1387
|
nickname: string;
|
|
1370
1388
|
self_member: boolean;
|
|
1371
1389
|
type: ConstantUserType;
|
|
@@ -1417,6 +1435,7 @@ export type DtoLabel = {
|
|
|
1417
1435
|
|
|
1418
1436
|
export type DtoLastPusher = {
|
|
1419
1437
|
is_frozen: boolean;
|
|
1438
|
+
is_lock: boolean;
|
|
1420
1439
|
name: string;
|
|
1421
1440
|
nickname: string;
|
|
1422
1441
|
push_at: string;
|
|
@@ -1544,6 +1563,7 @@ export type DtoMember4GetAllMembersByRoot = {
|
|
|
1544
1563
|
id: string;
|
|
1545
1564
|
inviter: DtoUsers;
|
|
1546
1565
|
join_time: string;
|
|
1566
|
+
lock: boolean;
|
|
1547
1567
|
nickname: string;
|
|
1548
1568
|
path: string;
|
|
1549
1569
|
type: ConstantUserType;
|
|
@@ -1570,9 +1590,13 @@ export type DtoMemberAccessLevelInSlugUnion = {
|
|
|
1570
1590
|
};
|
|
1571
1591
|
|
|
1572
1592
|
export type DtoMetaData = {
|
|
1593
|
+
author: string;
|
|
1573
1594
|
home_page: string;
|
|
1574
1595
|
license_url: string;
|
|
1596
|
+
minimum_stability: string;
|
|
1575
1597
|
package_name: string;
|
|
1598
|
+
package_tag: string;
|
|
1599
|
+
package_type: string;
|
|
1576
1600
|
readme: string;
|
|
1577
1601
|
repository_url: string;
|
|
1578
1602
|
};
|
|
@@ -1734,6 +1758,7 @@ export type DtoOutsideCollaboratorInRepo = {
|
|
|
1734
1758
|
freeze: boolean;
|
|
1735
1759
|
id: string;
|
|
1736
1760
|
join_time: string;
|
|
1761
|
+
lock: boolean;
|
|
1737
1762
|
nickname: string;
|
|
1738
1763
|
type: ConstantUserType;
|
|
1739
1764
|
username: string;
|
|
@@ -1897,6 +1922,62 @@ export type DtoRankDetail = {
|
|
|
1897
1922
|
web_url: string;
|
|
1898
1923
|
};
|
|
1899
1924
|
|
|
1925
|
+
export type DtoRankDetailWithIncr = {
|
|
1926
|
+
created_at: string;
|
|
1927
|
+
description: string;
|
|
1928
|
+
display_module: ConstantRepoDisplayModule;
|
|
1929
|
+
fork_count: number;
|
|
1930
|
+
|
|
1931
|
+
/**预留*/
|
|
1932
|
+
forked_from_repo: any;
|
|
1933
|
+
freeze: boolean;
|
|
1934
|
+
id: number;
|
|
1935
|
+
increase_fork: number;
|
|
1936
|
+
increase_star: number;
|
|
1937
|
+
|
|
1938
|
+
/**仓库程序语言,预留*/
|
|
1939
|
+
language: string;
|
|
1940
|
+
|
|
1941
|
+
/**仓库语言*/
|
|
1942
|
+
languages: any;
|
|
1943
|
+
|
|
1944
|
+
/**最新代码更新人姓名*/
|
|
1945
|
+
last_update_nickname: string;
|
|
1946
|
+
|
|
1947
|
+
/**最新代码更新人账户名*/
|
|
1948
|
+
last_update_username: string;
|
|
1949
|
+
|
|
1950
|
+
/**最新代码更新时间*/
|
|
1951
|
+
last_updated_at: any;
|
|
1952
|
+
license: string;
|
|
1953
|
+
mark_count: number;
|
|
1954
|
+
name: string;
|
|
1955
|
+
|
|
1956
|
+
/**开启的issue数*/
|
|
1957
|
+
open_issue_count: number;
|
|
1958
|
+
|
|
1959
|
+
/**开启的pull request数*/
|
|
1960
|
+
open_pull_request_count: number;
|
|
1961
|
+
|
|
1962
|
+
/**完整仓库路径*/
|
|
1963
|
+
path: string;
|
|
1964
|
+
|
|
1965
|
+
/**第二语言*/
|
|
1966
|
+
second_languages: any;
|
|
1967
|
+
site: string;
|
|
1968
|
+
star_count: number;
|
|
1969
|
+
stared: boolean;
|
|
1970
|
+
status: any;
|
|
1971
|
+
tags: {
|
|
1972
|
+
name: string;
|
|
1973
|
+
}[];
|
|
1974
|
+
topics: string;
|
|
1975
|
+
updated_at: string;
|
|
1976
|
+
visibility_level: ConstantVisibility;
|
|
1977
|
+
web_url: string;
|
|
1978
|
+
weight_score: number;
|
|
1979
|
+
};
|
|
1980
|
+
|
|
1900
1981
|
export type DtoRegistry4User = {
|
|
1901
1982
|
access: any;
|
|
1902
1983
|
artifact_policy: "all" | "snapshot" | "release";
|
|
@@ -2244,6 +2325,7 @@ export type DtoStarUser = {
|
|
|
2244
2325
|
freeze: boolean;
|
|
2245
2326
|
id: string;
|
|
2246
2327
|
is_follow: boolean;
|
|
2328
|
+
lock: boolean;
|
|
2247
2329
|
nickname: string;
|
|
2248
2330
|
stared_at: string;
|
|
2249
2331
|
type: ConstantUserType;
|
|
@@ -2441,6 +2523,7 @@ export type DtoUserFollowResult = {
|
|
|
2441
2523
|
|
|
2442
2524
|
/**查询人是否follow了此用户*/
|
|
2443
2525
|
is_following: boolean;
|
|
2526
|
+
lock: boolean;
|
|
2444
2527
|
nickname: string;
|
|
2445
2528
|
username: string;
|
|
2446
2529
|
};
|
|
@@ -2453,6 +2536,7 @@ export type DtoUserForSelf = {
|
|
|
2453
2536
|
freeze: boolean;
|
|
2454
2537
|
id: string;
|
|
2455
2538
|
language: string;
|
|
2539
|
+
lock: boolean;
|
|
2456
2540
|
next_updated_name_at: string;
|
|
2457
2541
|
nickname: string;
|
|
2458
2542
|
type: ConstantUserType;
|
|
@@ -2473,6 +2557,7 @@ export type DtoUsers = {
|
|
|
2473
2557
|
email: string;
|
|
2474
2558
|
freeze: boolean;
|
|
2475
2559
|
id: string;
|
|
2560
|
+
lock: boolean;
|
|
2476
2561
|
nickname: string;
|
|
2477
2562
|
type: ConstantUserType;
|
|
2478
2563
|
username: string;
|
|
@@ -2514,6 +2599,7 @@ export type DtoUsersResult = {
|
|
|
2514
2599
|
/**查询人是否follow了此用户*/
|
|
2515
2600
|
is_following: boolean;
|
|
2516
2601
|
location: string;
|
|
2602
|
+
lock: boolean;
|
|
2517
2603
|
mission_count: number;
|
|
2518
2604
|
nickname: string;
|
|
2519
2605
|
registry_count: number;
|
|
@@ -2557,6 +2643,7 @@ export type DtoUsersResultForSelf = {
|
|
|
2557
2643
|
last_login_at: string;
|
|
2558
2644
|
last_login_ip: string;
|
|
2559
2645
|
location: string;
|
|
2646
|
+
lock: boolean;
|
|
2560
2647
|
mission_count: number;
|
|
2561
2648
|
next_updated_name_at: string;
|
|
2562
2649
|
nickname: string;
|
|
@@ -2590,6 +2677,7 @@ export type DtoUsersWithAccessLevelInSlug = {
|
|
|
2590
2677
|
id: string;
|
|
2591
2678
|
inviter: DtoUsers;
|
|
2592
2679
|
join_time: string;
|
|
2680
|
+
lock: boolean;
|
|
2593
2681
|
nickname: string;
|
|
2594
2682
|
type: ConstantUserType;
|
|
2595
2683
|
username: string;
|
|
@@ -3640,6 +3728,7 @@ export type WebIssueActivity = {
|
|
|
3640
3728
|
created_at: string;
|
|
3641
3729
|
id: string;
|
|
3642
3730
|
payload: any;
|
|
3731
|
+
submitted_at: string;
|
|
3643
3732
|
type: string;
|
|
3644
3733
|
};
|
|
3645
3734
|
|
|
@@ -3874,6 +3963,7 @@ export type WebPullRequestActivity = {
|
|
|
3874
3963
|
created_at: string;
|
|
3875
3964
|
id: string;
|
|
3876
3965
|
payload: any;
|
|
3966
|
+
submitted_at: string;
|
|
3877
3967
|
type: string;
|
|
3878
3968
|
};
|
|
3879
3969
|
|