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/dist/paths.json
CHANGED
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"Users"
|
|
36
36
|
],
|
|
37
37
|
"summary": "获取指定用户的详情信息",
|
|
38
|
-
"parameters": [],
|
|
39
38
|
"responses": {
|
|
40
39
|
"200": {
|
|
41
40
|
"description": "OK",
|
|
@@ -314,7 +313,8 @@
|
|
|
314
313
|
"enum": [
|
|
315
314
|
"created_at",
|
|
316
315
|
"last_updated_at",
|
|
317
|
-
"stars"
|
|
316
|
+
"stars",
|
|
317
|
+
"slug_path"
|
|
318
318
|
],
|
|
319
319
|
"in": "query",
|
|
320
320
|
"name": "order_by",
|
|
@@ -724,7 +724,8 @@
|
|
|
724
724
|
"enum": [
|
|
725
725
|
"created_at",
|
|
726
726
|
"last_updated_at",
|
|
727
|
-
"stars"
|
|
727
|
+
"stars",
|
|
728
|
+
"slug_path"
|
|
728
729
|
],
|
|
729
730
|
"in": "query",
|
|
730
731
|
"name": "order_by",
|
|
@@ -1047,7 +1048,7 @@
|
|
|
1047
1048
|
"group.inheritMembers.list": [
|
|
1048
1049
|
{
|
|
1049
1050
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1050
|
-
"operationId": "
|
|
1051
|
+
"operationId": "ListInheritMembersOfGroup",
|
|
1051
1052
|
"tags": [
|
|
1052
1053
|
"Collaborators"
|
|
1053
1054
|
],
|
|
@@ -1110,97 +1111,6 @@
|
|
|
1110
1111
|
"method": "get"
|
|
1111
1112
|
}
|
|
1112
1113
|
],
|
|
1113
|
-
"group.listMembers.list": [
|
|
1114
|
-
{
|
|
1115
|
-
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1116
|
-
"operationId": "ListAllMembers",
|
|
1117
|
-
"tags": [
|
|
1118
|
-
"Collaborators"
|
|
1119
|
-
],
|
|
1120
|
-
"summary": "获取指定组织或仓库内的有效成员列表,包含继承成员",
|
|
1121
|
-
"parameters": [
|
|
1122
|
-
{
|
|
1123
|
-
"description": "slug",
|
|
1124
|
-
"in": "path",
|
|
1125
|
-
"name": "group",
|
|
1126
|
-
"required": true,
|
|
1127
|
-
"type": "string"
|
|
1128
|
-
},
|
|
1129
|
-
{
|
|
1130
|
-
"default": 1,
|
|
1131
|
-
"description": "第几页,从1开始",
|
|
1132
|
-
"in": "query",
|
|
1133
|
-
"name": "page",
|
|
1134
|
-
"type": "integer"
|
|
1135
|
-
},
|
|
1136
|
-
{
|
|
1137
|
-
"default": 10,
|
|
1138
|
-
"description": "每页多少条数据",
|
|
1139
|
-
"in": "query",
|
|
1140
|
-
"name": "page_size",
|
|
1141
|
-
"type": "integer"
|
|
1142
|
-
},
|
|
1143
|
-
{
|
|
1144
|
-
"description": "筛选角色",
|
|
1145
|
-
"enum": [
|
|
1146
|
-
"Guest",
|
|
1147
|
-
"Reporter",
|
|
1148
|
-
"Developer",
|
|
1149
|
-
"Master",
|
|
1150
|
-
"Owner"
|
|
1151
|
-
],
|
|
1152
|
-
"in": "query",
|
|
1153
|
-
"name": "role",
|
|
1154
|
-
"type": "string"
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
"default": "",
|
|
1158
|
-
"description": "过滤成员",
|
|
1159
|
-
"in": "query",
|
|
1160
|
-
"name": "search",
|
|
1161
|
-
"type": "string"
|
|
1162
|
-
},
|
|
1163
|
-
{
|
|
1164
|
-
"default": "",
|
|
1165
|
-
"description": "精准匹配用户名,多个用户名用逗号间隔",
|
|
1166
|
-
"in": "query",
|
|
1167
|
-
"name": "names",
|
|
1168
|
-
"type": "string"
|
|
1169
|
-
},
|
|
1170
|
-
{
|
|
1171
|
-
"description": "排序类型,默认created_at",
|
|
1172
|
-
"enum": [
|
|
1173
|
-
"created_at",
|
|
1174
|
-
"stars",
|
|
1175
|
-
"follower"
|
|
1176
|
-
],
|
|
1177
|
-
"in": "query",
|
|
1178
|
-
"name": "order_by",
|
|
1179
|
-
"type": "string"
|
|
1180
|
-
},
|
|
1181
|
-
{
|
|
1182
|
-
"default": false,
|
|
1183
|
-
"description": "排序顺序",
|
|
1184
|
-
"in": "query",
|
|
1185
|
-
"name": "desc",
|
|
1186
|
-
"type": "boolean"
|
|
1187
|
-
}
|
|
1188
|
-
],
|
|
1189
|
-
"responses": {
|
|
1190
|
-
"200": {
|
|
1191
|
-
"description": "OK",
|
|
1192
|
-
"schema": {
|
|
1193
|
-
"items": {
|
|
1194
|
-
"$ref": "#/definitions/dto.UsersWithAccessLevelInSlug"
|
|
1195
|
-
},
|
|
1196
|
-
"type": "array"
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
},
|
|
1200
|
-
"path": "/{group}/-/list-members",
|
|
1201
|
-
"method": "get"
|
|
1202
|
-
}
|
|
1203
|
-
],
|
|
1204
1114
|
"group.logos.put": [
|
|
1205
1115
|
{
|
|
1206
1116
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
@@ -1271,7 +1181,7 @@
|
|
|
1271
1181
|
"group.members.list": [
|
|
1272
1182
|
{
|
|
1273
1183
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1274
|
-
"operationId": "
|
|
1184
|
+
"operationId": "ListMembersOfGroup",
|
|
1275
1185
|
"tags": [
|
|
1276
1186
|
"Collaborators"
|
|
1277
1187
|
],
|
|
@@ -1337,7 +1247,7 @@
|
|
|
1337
1247
|
"group.members.accessLevel.get": [
|
|
1338
1248
|
{
|
|
1339
1249
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1340
|
-
"operationId": "
|
|
1250
|
+
"operationId": "GetMemberAccessLevelOfGroup",
|
|
1341
1251
|
"tags": [
|
|
1342
1252
|
"Contributors"
|
|
1343
1253
|
],
|
|
@@ -1373,7 +1283,7 @@
|
|
|
1373
1283
|
"group.members.delete": [
|
|
1374
1284
|
{
|
|
1375
1285
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1376
|
-
"operationId": "
|
|
1286
|
+
"operationId": "DeleteMembersOfGroup",
|
|
1377
1287
|
"tags": [
|
|
1378
1288
|
"Collaborators"
|
|
1379
1289
|
],
|
|
@@ -1406,7 +1316,7 @@
|
|
|
1406
1316
|
"group.members.put": [
|
|
1407
1317
|
{
|
|
1408
1318
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1409
|
-
"operationId": "
|
|
1319
|
+
"operationId": "UpdateMembersOfGroup",
|
|
1410
1320
|
"tags": [
|
|
1411
1321
|
"Collaborators"
|
|
1412
1322
|
],
|
|
@@ -1448,7 +1358,7 @@
|
|
|
1448
1358
|
"group.members.accessLevel.list": [
|
|
1449
1359
|
{
|
|
1450
1360
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:r",
|
|
1451
|
-
"operationId": "
|
|
1361
|
+
"operationId": "ListMemberAccessLevelOfGroup",
|
|
1452
1362
|
"tags": [
|
|
1453
1363
|
"Contributors"
|
|
1454
1364
|
],
|
|
@@ -1606,7 +1516,8 @@
|
|
|
1606
1516
|
"enum": [
|
|
1607
1517
|
"created_at",
|
|
1608
1518
|
"last_updated_at",
|
|
1609
|
-
"stars"
|
|
1519
|
+
"stars",
|
|
1520
|
+
"slug_path"
|
|
1610
1521
|
],
|
|
1611
1522
|
"in": "query",
|
|
1612
1523
|
"name": "order_by",
|
|
@@ -3947,7 +3858,7 @@
|
|
|
3947
3858
|
"repo.inheritMembers.list": [
|
|
3948
3859
|
{
|
|
3949
3860
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
3950
|
-
"operationId": "
|
|
3861
|
+
"operationId": "ListInheritMembersOfRepo",
|
|
3951
3862
|
"tags": [
|
|
3952
3863
|
"Collaborators"
|
|
3953
3864
|
],
|
|
@@ -5020,7 +4931,7 @@
|
|
|
5020
4931
|
"tags": [
|
|
5021
4932
|
"Collaborators"
|
|
5022
4933
|
],
|
|
5023
|
-
"summary": "
|
|
4934
|
+
"summary": "获取指定仓库内的有效成员列表,包含继承成员",
|
|
5024
4935
|
"parameters": [
|
|
5025
4936
|
{
|
|
5026
4937
|
"description": "slug",
|
|
@@ -5107,7 +5018,7 @@
|
|
|
5107
5018
|
"repo.members.list": [
|
|
5108
5019
|
{
|
|
5109
5020
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
5110
|
-
"operationId": "
|
|
5021
|
+
"operationId": "ListMembersOfRepo",
|
|
5111
5022
|
"tags": [
|
|
5112
5023
|
"Collaborators"
|
|
5113
5024
|
],
|
|
@@ -5173,7 +5084,7 @@
|
|
|
5173
5084
|
"repo.members.accessLevel.get": [
|
|
5174
5085
|
{
|
|
5175
5086
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
5176
|
-
"operationId": "
|
|
5087
|
+
"operationId": "GetMemberAccessLevelOfRepo",
|
|
5177
5088
|
"tags": [
|
|
5178
5089
|
"Contributors"
|
|
5179
5090
|
],
|
|
@@ -5209,7 +5120,7 @@
|
|
|
5209
5120
|
"repo.members.delete": [
|
|
5210
5121
|
{
|
|
5211
5122
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
5212
|
-
"operationId": "
|
|
5123
|
+
"operationId": "DeleteMembersOfRepo",
|
|
5213
5124
|
"tags": [
|
|
5214
5125
|
"Collaborators"
|
|
5215
5126
|
],
|
|
@@ -5242,7 +5153,7 @@
|
|
|
5242
5153
|
"repo.members.put": [
|
|
5243
5154
|
{
|
|
5244
5155
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
5245
|
-
"operationId": "
|
|
5156
|
+
"operationId": "UpdateMembersOfRepo",
|
|
5246
5157
|
"tags": [
|
|
5247
5158
|
"Collaborators"
|
|
5248
5159
|
],
|
|
@@ -5284,7 +5195,7 @@
|
|
|
5284
5195
|
"repo.members.accessLevel.list": [
|
|
5285
5196
|
{
|
|
5286
5197
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:r",
|
|
5287
|
-
"operationId": "
|
|
5198
|
+
"operationId": "ListMemberAccessLevelOfRepo",
|
|
5288
5199
|
"tags": [
|
|
5289
5200
|
"Contributors"
|
|
5290
5201
|
],
|
|
@@ -5568,6 +5479,12 @@
|
|
|
5568
5479
|
"in": "query",
|
|
5569
5480
|
"name": "assignees",
|
|
5570
5481
|
"type": "string"
|
|
5482
|
+
},
|
|
5483
|
+
{
|
|
5484
|
+
"description": "pull base ref, example: refs/heads/master",
|
|
5485
|
+
"in": "query",
|
|
5486
|
+
"name": "base_ref",
|
|
5487
|
+
"type": "string"
|
|
5571
5488
|
}
|
|
5572
5489
|
],
|
|
5573
5490
|
"responses": {
|