node-cnb 1.10.0 → 1.11.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/README.md +24 -0
- package/dist/paths.json +247 -4
- package/package.json +1 -1
- package/src/client.d.ts +112 -4
- package/src/types.d.ts +280 -13
package/README.md
CHANGED
|
@@ -48,6 +48,10 @@ client.users.pinnedRepos
|
|
|
48
48
|
|
|
49
49
|
## 方法路径
|
|
50
50
|
|
|
51
|
+
方法路径有两种模式
|
|
52
|
+
|
|
53
|
+
### 1.请求路径拼接
|
|
54
|
+
|
|
51
55
|
方法路径为由如下几个元素组成:
|
|
52
56
|
|
|
53
57
|
1. 第一个 `/-/` 前的参数名
|
|
@@ -62,4 +66,24 @@ client.users.pinnedRepos
|
|
|
62
66
|
|
|
63
67
|
对于此规则下方法路径仍然重复的 api,则单独定义在 [pathMethodMap.json](https://cnb.cool/cnb/sdk/node-cnb/-/blob/main/pathMethodMap.json)
|
|
64
68
|
|
|
69
|
+
### 2.Tag+operationId拼接
|
|
70
|
+
|
|
71
|
+
在 swagger json 中可以看到每个方法都有一个 Tag 和 operationId,
|
|
72
|
+
|
|
73
|
+
可以用 `client.<Tag>.<operationId>` 调用:
|
|
74
|
+
|
|
75
|
+
```javascript
|
|
76
|
+
const sdk = require("node-cnb");
|
|
77
|
+
|
|
78
|
+
// 参数分别为 api url 和 访问令牌
|
|
79
|
+
const client = sdk.getClient("https://api.cnb.cool", "xxx");
|
|
80
|
+
|
|
81
|
+
client.Repositories.GetPinnedRepoByID({
|
|
82
|
+
username: "xxx",
|
|
83
|
+
})
|
|
84
|
+
.then((res) => {
|
|
85
|
+
console.log(res);
|
|
86
|
+
});
|
|
87
|
+
```
|
|
88
|
+
|
|
65
89
|
完整api路径请参考 [client.d.ts](https://cnb.cool/cnb/sdk/node-cnb/-/blob/main/src/client.d.ts)
|
package/dist/paths.json
CHANGED
|
@@ -301,7 +301,8 @@
|
|
|
301
301
|
"created_at",
|
|
302
302
|
"last_updated_at",
|
|
303
303
|
"stars",
|
|
304
|
-
"slug_path"
|
|
304
|
+
"slug_path",
|
|
305
|
+
"forks"
|
|
305
306
|
],
|
|
306
307
|
"in": "query",
|
|
307
308
|
"name": "order_by",
|
|
@@ -370,7 +371,8 @@
|
|
|
370
371
|
"enum": [
|
|
371
372
|
"created_at",
|
|
372
373
|
"last_updated_at",
|
|
373
|
-
"stars"
|
|
374
|
+
"stars",
|
|
375
|
+
"forks"
|
|
374
376
|
],
|
|
375
377
|
"in": "query",
|
|
376
378
|
"name": "order_by",
|
|
@@ -696,7 +698,8 @@
|
|
|
696
698
|
"created_at",
|
|
697
699
|
"last_updated_at",
|
|
698
700
|
"stars",
|
|
699
|
-
"slug_path"
|
|
701
|
+
"slug_path",
|
|
702
|
+
"forks"
|
|
700
703
|
],
|
|
701
704
|
"in": "query",
|
|
702
705
|
"name": "order_by",
|
|
@@ -766,7 +769,8 @@
|
|
|
766
769
|
"enum": [
|
|
767
770
|
"created_at",
|
|
768
771
|
"last_updated_at",
|
|
769
|
-
"stars"
|
|
772
|
+
"stars",
|
|
773
|
+
"forks"
|
|
770
774
|
],
|
|
771
775
|
"in": "query",
|
|
772
776
|
"name": "order_by",
|
|
@@ -1257,6 +1261,46 @@
|
|
|
1257
1261
|
"path": "/{group}/-/members/{username}",
|
|
1258
1262
|
"method": "delete"
|
|
1259
1263
|
},
|
|
1264
|
+
"group.members.post": {
|
|
1265
|
+
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1266
|
+
"operationId": "AddMembersOfGroup",
|
|
1267
|
+
"tags": [
|
|
1268
|
+
"Collaborators"
|
|
1269
|
+
],
|
|
1270
|
+
"summary": "添加成员",
|
|
1271
|
+
"parameters": [
|
|
1272
|
+
{
|
|
1273
|
+
"description": "slug",
|
|
1274
|
+
"in": "path",
|
|
1275
|
+
"name": "group",
|
|
1276
|
+
"required": true,
|
|
1277
|
+
"type": "string"
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
"description": "username",
|
|
1281
|
+
"in": "path",
|
|
1282
|
+
"name": "username",
|
|
1283
|
+
"required": true,
|
|
1284
|
+
"type": "string"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"description": "member information",
|
|
1288
|
+
"in": "body",
|
|
1289
|
+
"name": "request",
|
|
1290
|
+
"required": true,
|
|
1291
|
+
"schema": {
|
|
1292
|
+
"$ref": "#/definitions/dto.UpdateMembersRequest"
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
],
|
|
1296
|
+
"responses": {
|
|
1297
|
+
"200": {
|
|
1298
|
+
"description": "OK"
|
|
1299
|
+
}
|
|
1300
|
+
},
|
|
1301
|
+
"path": "/{group}/-/members/{username}",
|
|
1302
|
+
"method": "post"
|
|
1303
|
+
},
|
|
1260
1304
|
"group.members.put": {
|
|
1261
1305
|
"description": "访问令牌调用此接口需包含以下权限 \ngroup-manage:rw",
|
|
1262
1306
|
"operationId": "UpdateMembersOfGroup",
|
|
@@ -1711,6 +1755,46 @@
|
|
|
1711
1755
|
"path": "/{mission}",
|
|
1712
1756
|
"method": "delete"
|
|
1713
1757
|
},
|
|
1758
|
+
"mission.members.post": {
|
|
1759
|
+
"description": "访问令牌调用此接口需包含以下权限 \nmission-manage:rw",
|
|
1760
|
+
"operationId": "AddMembersOfMission",
|
|
1761
|
+
"tags": [
|
|
1762
|
+
"Collaborators"
|
|
1763
|
+
],
|
|
1764
|
+
"summary": "添加成员",
|
|
1765
|
+
"parameters": [
|
|
1766
|
+
{
|
|
1767
|
+
"description": "slug",
|
|
1768
|
+
"in": "path",
|
|
1769
|
+
"name": "mission",
|
|
1770
|
+
"required": true,
|
|
1771
|
+
"type": "string"
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
"description": "username",
|
|
1775
|
+
"in": "path",
|
|
1776
|
+
"name": "username",
|
|
1777
|
+
"required": true,
|
|
1778
|
+
"type": "string"
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
"description": "member information",
|
|
1782
|
+
"in": "body",
|
|
1783
|
+
"name": "request",
|
|
1784
|
+
"required": true,
|
|
1785
|
+
"schema": {
|
|
1786
|
+
"$ref": "#/definitions/dto.UpdateMembersRequest"
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
],
|
|
1790
|
+
"responses": {
|
|
1791
|
+
"200": {
|
|
1792
|
+
"description": "OK"
|
|
1793
|
+
}
|
|
1794
|
+
},
|
|
1795
|
+
"path": "/{mission}/-/members/{username}",
|
|
1796
|
+
"method": "post"
|
|
1797
|
+
},
|
|
1714
1798
|
"registry.delete": {
|
|
1715
1799
|
"description": "访问令牌调用此接口需包含以下权限 \nregistry-delete:rw",
|
|
1716
1800
|
"operationId": "DeleteRegistry",
|
|
@@ -1741,6 +1825,46 @@
|
|
|
1741
1825
|
"path": "/{registry}",
|
|
1742
1826
|
"method": "delete"
|
|
1743
1827
|
},
|
|
1828
|
+
"registry.members.post": {
|
|
1829
|
+
"description": "访问令牌调用此接口需包含以下权限 \nregistry-manage:rw",
|
|
1830
|
+
"operationId": "AddMembersOfRegistry",
|
|
1831
|
+
"tags": [
|
|
1832
|
+
"Collaborators"
|
|
1833
|
+
],
|
|
1834
|
+
"summary": "添加成员",
|
|
1835
|
+
"parameters": [
|
|
1836
|
+
{
|
|
1837
|
+
"description": "slug",
|
|
1838
|
+
"in": "path",
|
|
1839
|
+
"name": "registry",
|
|
1840
|
+
"required": true,
|
|
1841
|
+
"type": "string"
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
"description": "username",
|
|
1845
|
+
"in": "path",
|
|
1846
|
+
"name": "username",
|
|
1847
|
+
"required": true,
|
|
1848
|
+
"type": "string"
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
"description": "member information",
|
|
1852
|
+
"in": "body",
|
|
1853
|
+
"name": "request",
|
|
1854
|
+
"required": true,
|
|
1855
|
+
"schema": {
|
|
1856
|
+
"$ref": "#/definitions/dto.UpdateMembersRequest"
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
],
|
|
1860
|
+
"responses": {
|
|
1861
|
+
"200": {
|
|
1862
|
+
"description": "OK"
|
|
1863
|
+
}
|
|
1864
|
+
},
|
|
1865
|
+
"path": "/{registry}/-/members/{username}",
|
|
1866
|
+
"method": "post"
|
|
1867
|
+
},
|
|
1744
1868
|
"repo.delete": {
|
|
1745
1869
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-delete:rw",
|
|
1746
1870
|
"operationId": "DeleteRepo",
|
|
@@ -2303,6 +2427,85 @@
|
|
|
2303
2427
|
"path": "/{repo}/-/forks",
|
|
2304
2428
|
"method": "post"
|
|
2305
2429
|
},
|
|
2430
|
+
"repo.git.archiveCommitChangedFiles.get": {
|
|
2431
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
2432
|
+
"operationId": "GetArchiveCommitChangedFiles",
|
|
2433
|
+
"tags": [
|
|
2434
|
+
"Git"
|
|
2435
|
+
],
|
|
2436
|
+
"summary": "打包下载 commit 变更文件",
|
|
2437
|
+
"parameters": [
|
|
2438
|
+
{
|
|
2439
|
+
"description": "repo",
|
|
2440
|
+
"in": "path",
|
|
2441
|
+
"name": "repo",
|
|
2442
|
+
"required": true,
|
|
2443
|
+
"type": "string"
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
"description": "commit sha",
|
|
2447
|
+
"in": "path",
|
|
2448
|
+
"name": "sha1",
|
|
2449
|
+
"type": "string"
|
|
2450
|
+
}
|
|
2451
|
+
],
|
|
2452
|
+
"responses": {
|
|
2453
|
+
"404": {
|
|
2454
|
+
"description": "Not Found",
|
|
2455
|
+
"schema": {
|
|
2456
|
+
"$ref": "#/definitions/die.WebError"
|
|
2457
|
+
}
|
|
2458
|
+
},
|
|
2459
|
+
"500": {
|
|
2460
|
+
"description": "Internal Server Error",
|
|
2461
|
+
"schema": {
|
|
2462
|
+
"$ref": "#/definitions/die.WebError"
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
},
|
|
2466
|
+
"path": "/{repo}/-/git/archive-commit-changed-files/{sha1}",
|
|
2467
|
+
"method": "get"
|
|
2468
|
+
},
|
|
2469
|
+
"repo.git.archiveCompareChangedFiles.get": {
|
|
2470
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:r",
|
|
2471
|
+
"operationId": "GetArchiveCompareChangedFiles",
|
|
2472
|
+
"tags": [
|
|
2473
|
+
"Git"
|
|
2474
|
+
],
|
|
2475
|
+
"summary": "打包下载两次 ref 之间的变更文件",
|
|
2476
|
+
"parameters": [
|
|
2477
|
+
{
|
|
2478
|
+
"description": "repo",
|
|
2479
|
+
"in": "path",
|
|
2480
|
+
"name": "repo",
|
|
2481
|
+
"required": true,
|
|
2482
|
+
"type": "string"
|
|
2483
|
+
},
|
|
2484
|
+
{
|
|
2485
|
+
"description": "base...head",
|
|
2486
|
+
"in": "path",
|
|
2487
|
+
"name": "base_head",
|
|
2488
|
+
"required": true,
|
|
2489
|
+
"type": "string"
|
|
2490
|
+
}
|
|
2491
|
+
],
|
|
2492
|
+
"responses": {
|
|
2493
|
+
"404": {
|
|
2494
|
+
"description": "Not Found",
|
|
2495
|
+
"schema": {
|
|
2496
|
+
"$ref": "#/definitions/die.WebError"
|
|
2497
|
+
}
|
|
2498
|
+
},
|
|
2499
|
+
"500": {
|
|
2500
|
+
"description": "Internal Server Error",
|
|
2501
|
+
"schema": {
|
|
2502
|
+
"$ref": "#/definitions/die.WebError"
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
},
|
|
2506
|
+
"path": "/{repo}/-/git/archive-compare-changed-files/{base_head}",
|
|
2507
|
+
"method": "get"
|
|
2508
|
+
},
|
|
2306
2509
|
"repo.git.blobs.post": {
|
|
2307
2510
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-code:rw",
|
|
2308
2511
|
"operationId": "CreateBlob",
|
|
@@ -4944,6 +5147,46 @@
|
|
|
4944
5147
|
"path": "/{repo}/-/members/{username}",
|
|
4945
5148
|
"method": "delete"
|
|
4946
5149
|
},
|
|
5150
|
+
"repo.members.post": {
|
|
5151
|
+
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
5152
|
+
"operationId": "AddMembersOfRepo",
|
|
5153
|
+
"tags": [
|
|
5154
|
+
"Collaborators"
|
|
5155
|
+
],
|
|
5156
|
+
"summary": "添加成员",
|
|
5157
|
+
"parameters": [
|
|
5158
|
+
{
|
|
5159
|
+
"description": "slug",
|
|
5160
|
+
"in": "path",
|
|
5161
|
+
"name": "repo",
|
|
5162
|
+
"required": true,
|
|
5163
|
+
"type": "string"
|
|
5164
|
+
},
|
|
5165
|
+
{
|
|
5166
|
+
"description": "username",
|
|
5167
|
+
"in": "path",
|
|
5168
|
+
"name": "username",
|
|
5169
|
+
"required": true,
|
|
5170
|
+
"type": "string"
|
|
5171
|
+
},
|
|
5172
|
+
{
|
|
5173
|
+
"description": "member information",
|
|
5174
|
+
"in": "body",
|
|
5175
|
+
"name": "request",
|
|
5176
|
+
"required": true,
|
|
5177
|
+
"schema": {
|
|
5178
|
+
"$ref": "#/definitions/dto.UpdateMembersRequest"
|
|
5179
|
+
}
|
|
5180
|
+
}
|
|
5181
|
+
],
|
|
5182
|
+
"responses": {
|
|
5183
|
+
"200": {
|
|
5184
|
+
"description": "OK"
|
|
5185
|
+
}
|
|
5186
|
+
},
|
|
5187
|
+
"path": "/{repo}/-/members/{username}",
|
|
5188
|
+
"method": "post"
|
|
5189
|
+
},
|
|
4947
5190
|
"repo.members.put": {
|
|
4948
5191
|
"description": "访问令牌调用此接口需包含以下权限 \nrepo-manage:rw",
|
|
4949
5192
|
"operationId": "UpdateMembersOfRepo",
|
package/package.json
CHANGED
package/src/client.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ type Repositories_GetRepos = (params?: {
|
|
|
131
131
|
search?: string;
|
|
132
132
|
filter_type?: "private" | "public" | "encrypted";
|
|
133
133
|
role?: "Reporter" | "Developer" | "Master" | "Owner";
|
|
134
|
-
order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path";
|
|
134
|
+
order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path" | "forks";
|
|
135
135
|
desc?: boolean;
|
|
136
136
|
}) => Promise<DtoRepos4User[]>;
|
|
137
137
|
|
|
@@ -140,7 +140,7 @@ type Repositories_GetUserAllStaredRepos = (params?: {
|
|
|
140
140
|
page_size?: number;
|
|
141
141
|
search?: string;
|
|
142
142
|
desc?: boolean;
|
|
143
|
-
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
143
|
+
order_by?: "created_at" | "last_updated_at" | "stars" | "forks";
|
|
144
144
|
}) => Promise<DtoRepos4UserBase[]>;
|
|
145
145
|
|
|
146
146
|
type Users_GetUserInfoByName = (params: {
|
|
@@ -184,7 +184,7 @@ type Repositories_GetReposByUserName = (params: {
|
|
|
184
184
|
page?: number;
|
|
185
185
|
page_size?: number;
|
|
186
186
|
desc?: boolean;
|
|
187
|
-
order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path";
|
|
187
|
+
order_by?: "created_at" | "last_updated_at" | "stars" | "slug_path" | "forks";
|
|
188
188
|
}) => Promise<DtoRepos4User[]>;
|
|
189
189
|
|
|
190
190
|
type Starring_GetUserStaredRepos = (params: {
|
|
@@ -193,7 +193,7 @@ type Starring_GetUserStaredRepos = (params: {
|
|
|
193
193
|
page?: number;
|
|
194
194
|
page_size?: number;
|
|
195
195
|
desc?: boolean;
|
|
196
|
-
order_by?: "created_at" | "last_updated_at" | "stars";
|
|
196
|
+
order_by?: "created_at" | "last_updated_at" | "stars" | "forks";
|
|
197
197
|
}) => Promise<DtoRepos4User[]>;
|
|
198
198
|
|
|
199
199
|
type Workspace_DeleteWorkspace = (params: {
|
|
@@ -270,6 +270,12 @@ type Collaborators_DeleteMembersOfGroup = (params: {
|
|
|
270
270
|
username: string;
|
|
271
271
|
}) => Promise<any>;
|
|
272
272
|
|
|
273
|
+
type Collaborators_AddMembersOfGroup = (params: {
|
|
274
|
+
group: string;
|
|
275
|
+
username: string;
|
|
276
|
+
request: DtoUpdateMembersRequest;
|
|
277
|
+
}) => Promise<any>;
|
|
278
|
+
|
|
273
279
|
type Collaborators_UpdateMembersOfGroup = (params: {
|
|
274
280
|
group: string;
|
|
275
281
|
username: string;
|
|
@@ -327,11 +333,23 @@ type Missions_DeleteMission = (params: {
|
|
|
327
333
|
"x-cnb-identity-ticket"?: string;
|
|
328
334
|
}) => Promise<any>;
|
|
329
335
|
|
|
336
|
+
type Collaborators_AddMembersOfMission = (params: {
|
|
337
|
+
mission: string;
|
|
338
|
+
username: string;
|
|
339
|
+
request: DtoUpdateMembersRequest;
|
|
340
|
+
}) => Promise<any>;
|
|
341
|
+
|
|
330
342
|
type Artifactory_DeleteRegistry = (params: {
|
|
331
343
|
registry: string;
|
|
332
344
|
"x-cnb-identity-ticket"?: string;
|
|
333
345
|
}) => Promise<any>;
|
|
334
346
|
|
|
347
|
+
type Collaborators_AddMembersOfRegistry = (params: {
|
|
348
|
+
registry: string;
|
|
349
|
+
username: string;
|
|
350
|
+
request: DtoUpdateMembersRequest;
|
|
351
|
+
}) => Promise<any>;
|
|
352
|
+
|
|
335
353
|
type Repositories_DeleteRepo = (params: {
|
|
336
354
|
repo: string;
|
|
337
355
|
"x-cnb-identity-ticket"?: string;
|
|
@@ -414,6 +432,16 @@ type Repositories_CreateAFork = (params: {
|
|
|
414
432
|
request: DtoForkReq;
|
|
415
433
|
}) => Promise<any>;
|
|
416
434
|
|
|
435
|
+
type Git_GetArchiveCommitChangedFiles = (params: {
|
|
436
|
+
repo: string;
|
|
437
|
+
sha1?: string;
|
|
438
|
+
}) => Promise<any>;
|
|
439
|
+
|
|
440
|
+
type Git_GetArchiveCompareChangedFiles = (params: {
|
|
441
|
+
repo: string;
|
|
442
|
+
base_head: string;
|
|
443
|
+
}) => Promise<any>;
|
|
444
|
+
|
|
417
445
|
type Git_CreateBlob = (params: {
|
|
418
446
|
repo: string;
|
|
419
447
|
post_blob_form: ApiPostBlobForm;
|
|
@@ -716,6 +744,12 @@ type Collaborators_DeleteMembersOfRepo = (params: {
|
|
|
716
744
|
username: string;
|
|
717
745
|
}) => Promise<any>;
|
|
718
746
|
|
|
747
|
+
type Collaborators_AddMembersOfRepo = (params: {
|
|
748
|
+
repo: string;
|
|
749
|
+
username: string;
|
|
750
|
+
request: DtoUpdateMembersRequest;
|
|
751
|
+
}) => Promise<any>;
|
|
752
|
+
|
|
719
753
|
type Collaborators_UpdateMembersOfRepo = (params: {
|
|
720
754
|
repo: string;
|
|
721
755
|
username: string;
|
|
@@ -1380,6 +1414,16 @@ export interface Client {
|
|
|
1380
1414
|
*/
|
|
1381
1415
|
delete: Collaborators_DeleteMembersOfGroup;
|
|
1382
1416
|
|
|
1417
|
+
/***
|
|
1418
|
+
* 添加成员
|
|
1419
|
+
*
|
|
1420
|
+
* 访问令牌调用此接口需包含以下权限
|
|
1421
|
+
* group-manage:rw
|
|
1422
|
+
*
|
|
1423
|
+
* /{group}/-/members/{username}
|
|
1424
|
+
*/
|
|
1425
|
+
post: Collaborators_AddMembersOfGroup;
|
|
1426
|
+
|
|
1383
1427
|
/***
|
|
1384
1428
|
* 更新指定组织或仓库内的直接成员权限信息
|
|
1385
1429
|
*
|
|
@@ -1494,6 +1538,18 @@ export interface Client {
|
|
|
1494
1538
|
* /{mission}
|
|
1495
1539
|
*/
|
|
1496
1540
|
delete: Missions_DeleteMission;
|
|
1541
|
+
|
|
1542
|
+
members: {
|
|
1543
|
+
/***
|
|
1544
|
+
* 添加成员
|
|
1545
|
+
*
|
|
1546
|
+
* 访问令牌调用此接口需包含以下权限
|
|
1547
|
+
* mission-manage:rw
|
|
1548
|
+
*
|
|
1549
|
+
* /{mission}/-/members/{username}
|
|
1550
|
+
*/
|
|
1551
|
+
post: Collaborators_AddMembersOfMission;
|
|
1552
|
+
};
|
|
1497
1553
|
};
|
|
1498
1554
|
|
|
1499
1555
|
registry: {
|
|
@@ -1506,6 +1562,18 @@ export interface Client {
|
|
|
1506
1562
|
* /{registry}
|
|
1507
1563
|
*/
|
|
1508
1564
|
delete: Artifactory_DeleteRegistry;
|
|
1565
|
+
|
|
1566
|
+
members: {
|
|
1567
|
+
/***
|
|
1568
|
+
* 添加成员
|
|
1569
|
+
*
|
|
1570
|
+
* 访问令牌调用此接口需包含以下权限
|
|
1571
|
+
* registry-manage:rw
|
|
1572
|
+
*
|
|
1573
|
+
* /{registry}/-/members/{username}
|
|
1574
|
+
*/
|
|
1575
|
+
post: Collaborators_AddMembersOfRegistry;
|
|
1576
|
+
};
|
|
1509
1577
|
};
|
|
1510
1578
|
|
|
1511
1579
|
repo: {
|
|
@@ -1662,6 +1730,30 @@ export interface Client {
|
|
|
1662
1730
|
};
|
|
1663
1731
|
|
|
1664
1732
|
git: {
|
|
1733
|
+
archiveCommitChangedFiles: {
|
|
1734
|
+
/***
|
|
1735
|
+
* 打包下载 commit 变更文件
|
|
1736
|
+
*
|
|
1737
|
+
* 访问令牌调用此接口需包含以下权限
|
|
1738
|
+
* repo-code:r
|
|
1739
|
+
*
|
|
1740
|
+
* /{repo}/-/git/archive-commit-changed-files/{sha1}
|
|
1741
|
+
*/
|
|
1742
|
+
get: Git_GetArchiveCommitChangedFiles;
|
|
1743
|
+
};
|
|
1744
|
+
|
|
1745
|
+
archiveCompareChangedFiles: {
|
|
1746
|
+
/***
|
|
1747
|
+
* 打包下载两次 ref 之间的变更文件
|
|
1748
|
+
*
|
|
1749
|
+
* 访问令牌调用此接口需包含以下权限
|
|
1750
|
+
* repo-code:r
|
|
1751
|
+
*
|
|
1752
|
+
* /{repo}/-/git/archive-compare-changed-files/{base_head}
|
|
1753
|
+
*/
|
|
1754
|
+
get: Git_GetArchiveCompareChangedFiles;
|
|
1755
|
+
};
|
|
1756
|
+
|
|
1665
1757
|
blobs: {
|
|
1666
1758
|
/***
|
|
1667
1759
|
* 创建一个 blob
|
|
@@ -2218,6 +2310,16 @@ export interface Client {
|
|
|
2218
2310
|
*/
|
|
2219
2311
|
delete: Collaborators_DeleteMembersOfRepo;
|
|
2220
2312
|
|
|
2313
|
+
/***
|
|
2314
|
+
* 添加成员
|
|
2315
|
+
*
|
|
2316
|
+
* 访问令牌调用此接口需包含以下权限
|
|
2317
|
+
* repo-manage:rw
|
|
2318
|
+
*
|
|
2319
|
+
* /{repo}/-/members/{username}
|
|
2320
|
+
*/
|
|
2321
|
+
post: Collaborators_AddMembersOfRepo;
|
|
2322
|
+
|
|
2221
2323
|
/***
|
|
2222
2324
|
* 更新指定组织或仓库内的直接成员权限信息
|
|
2223
2325
|
*
|
|
@@ -2915,11 +3017,15 @@ export interface Client {
|
|
|
2915
3017
|
ListInheritMembersOfGroup: Collaborators_ListInheritMembersOfGroup;
|
|
2916
3018
|
ListMembersOfGroup: Collaborators_ListMembersOfGroup;
|
|
2917
3019
|
DeleteMembersOfGroup: Collaborators_DeleteMembersOfGroup;
|
|
3020
|
+
AddMembersOfGroup: Collaborators_AddMembersOfGroup;
|
|
2918
3021
|
UpdateMembersOfGroup: Collaborators_UpdateMembersOfGroup;
|
|
3022
|
+
AddMembersOfMission: Collaborators_AddMembersOfMission;
|
|
3023
|
+
AddMembersOfRegistry: Collaborators_AddMembersOfRegistry;
|
|
2919
3024
|
ListInheritMembersOfRepo: Collaborators_ListInheritMembersOfRepo;
|
|
2920
3025
|
ListAllMembers: Collaborators_ListAllMembers;
|
|
2921
3026
|
ListMembersOfRepo: Collaborators_ListMembersOfRepo;
|
|
2922
3027
|
DeleteMembersOfRepo: Collaborators_DeleteMembersOfRepo;
|
|
3028
|
+
AddMembersOfRepo: Collaborators_AddMembersOfRepo;
|
|
2923
3029
|
UpdateMembersOfRepo: Collaborators_UpdateMembersOfRepo;
|
|
2924
3030
|
ListOutsideCollaborators: Collaborators_ListOutsideCollaborators;
|
|
2925
3031
|
DeleteOutsideCollaborators: Collaborators_DeleteOutsideCollaborators;
|
|
@@ -2963,6 +3069,8 @@ export interface Client {
|
|
|
2963
3069
|
};
|
|
2964
3070
|
|
|
2965
3071
|
Git: {
|
|
3072
|
+
GetArchiveCommitChangedFiles: Git_GetArchiveCommitChangedFiles;
|
|
3073
|
+
GetArchiveCompareChangedFiles: Git_GetArchiveCompareChangedFiles;
|
|
2966
3074
|
CreateBlob: Git_CreateBlob;
|
|
2967
3075
|
ListBranches: Git_ListBranches;
|
|
2968
3076
|
CreateBranch: Git_CreateBranch;
|
package/src/types.d.ts
CHANGED
|
@@ -549,6 +549,8 @@ export type ConstantActivityType =
|
|
|
549
549
|
| "user_deploy_success"
|
|
550
550
|
| "repo_deploy_success";
|
|
551
551
|
|
|
552
|
+
export type ConstantBudgetSts = 1 | 2 | 3 | 4;
|
|
553
|
+
|
|
552
554
|
export type ConstantChargeResType =
|
|
553
555
|
| "charge_type_git"
|
|
554
556
|
| "charge_type_object"
|
|
@@ -844,6 +846,12 @@ export type DtoBoolResponse = {
|
|
|
844
846
|
result: boolean;
|
|
845
847
|
};
|
|
846
848
|
|
|
849
|
+
export type DtoBoolResponseWithDataMapConstantSlugTypeInt64 = {
|
|
850
|
+
data: MapConstantSlugTypeInt64;
|
|
851
|
+
message: string;
|
|
852
|
+
result: boolean;
|
|
853
|
+
};
|
|
854
|
+
|
|
847
855
|
export type DtoBudget = {
|
|
848
856
|
/**单位:核时*/
|
|
849
857
|
charge_type_ci: number;
|
|
@@ -895,8 +903,6 @@ export type DtoBudgetPrice = {
|
|
|
895
903
|
charge_type_object_price: number;
|
|
896
904
|
};
|
|
897
905
|
|
|
898
|
-
export type DtoBudgetSts = 1 | 2 | 3 | 4;
|
|
899
|
-
|
|
900
906
|
export type DtoBuildLogsResult = {
|
|
901
907
|
/**构建数据列表*/
|
|
902
908
|
data: DtoLogInfo[];
|
|
@@ -1107,6 +1113,12 @@ export type DtoCreateRepoReq = {
|
|
|
1107
1113
|
visibility: "public" | "private" | "secret";
|
|
1108
1114
|
};
|
|
1109
1115
|
|
|
1116
|
+
export type DtoCreator = {
|
|
1117
|
+
freeze: boolean;
|
|
1118
|
+
name: string;
|
|
1119
|
+
nick: string;
|
|
1120
|
+
};
|
|
1121
|
+
|
|
1110
1122
|
export type DtoDependency = {
|
|
1111
1123
|
artifact: string;
|
|
1112
1124
|
name: string;
|
|
@@ -1171,6 +1183,9 @@ export type DtoGroupSettingReq = {
|
|
|
1171
1183
|
|
|
1172
1184
|
/**是否对外显示私有仓库水印,0 - 否, 1 - 是*/
|
|
1173
1185
|
show_private_repo_watermark: number;
|
|
1186
|
+
|
|
1187
|
+
/**SettingValue 组织设置值,多个选项,用逗号拼接。可选值来自 SettingNamesArray 的值,e.g. disable_organization_readme,cloud_native_dev_only*/
|
|
1188
|
+
values: string;
|
|
1174
1189
|
};
|
|
1175
1190
|
|
|
1176
1191
|
export type DtoHarborRepository = {
|
|
@@ -1215,9 +1230,11 @@ export type DtoInheritMembersUser = {
|
|
|
1215
1230
|
|
|
1216
1231
|
export type DtoInteractionType = "radio" | "checkbox" | "time_selector";
|
|
1217
1232
|
|
|
1218
|
-
export type
|
|
1233
|
+
export type DtoInvitationWithEmail = {
|
|
1219
1234
|
count: number;
|
|
1220
1235
|
creator: string;
|
|
1236
|
+
email: string;
|
|
1237
|
+
email_match: boolean;
|
|
1221
1238
|
expire: number;
|
|
1222
1239
|
is_outside_collaborator: boolean;
|
|
1223
1240
|
resource: DtoResources;
|
|
@@ -1228,6 +1245,8 @@ export type DtoInvitation = {
|
|
|
1228
1245
|
export type DtoIssueData = {
|
|
1229
1246
|
associated_pull_request_counts: number;
|
|
1230
1247
|
comment_counts: number;
|
|
1248
|
+
created_time: string;
|
|
1249
|
+
creator: DtoCreator;
|
|
1231
1250
|
label: DtoLabel[];
|
|
1232
1251
|
number: number;
|
|
1233
1252
|
pinned: boolean;
|
|
@@ -1237,6 +1256,7 @@ export type DtoIssueData = {
|
|
|
1237
1256
|
state: string;
|
|
1238
1257
|
title: string;
|
|
1239
1258
|
todo_id: string;
|
|
1259
|
+
updated_time: string;
|
|
1240
1260
|
};
|
|
1241
1261
|
|
|
1242
1262
|
export type DtoLabel = {
|
|
@@ -1590,7 +1610,9 @@ export type DtoOrganizationSettingWithParent = {
|
|
|
1590
1610
|
|
|
1591
1611
|
/**是否对外隐藏子组织,0 - 否, 1 - 是*/
|
|
1592
1612
|
hide_sub_groups: number;
|
|
1613
|
+
root_email_verification: string;
|
|
1593
1614
|
root_group_protection: boolean;
|
|
1615
|
+
root_values: OrganizationSettingValue;
|
|
1594
1616
|
show_private_repo_watermark: number;
|
|
1595
1617
|
values: OrganizationSettingValue;
|
|
1596
1618
|
};
|
|
@@ -1663,7 +1685,7 @@ export type DtoPack = {
|
|
|
1663
1685
|
type: DtoPackType;
|
|
1664
1686
|
};
|
|
1665
1687
|
|
|
1666
|
-
export type DtoPackType = -1 | 0 | 1 | 255;
|
|
1688
|
+
export type DtoPackType = -1 | 0 | 1 | 10 | 20 | 255;
|
|
1667
1689
|
|
|
1668
1690
|
export type DtoPackage = {
|
|
1669
1691
|
count: number;
|
|
@@ -1785,6 +1807,11 @@ export type DtoRepoCoreHour = {
|
|
|
1785
1807
|
code_used_core_hour: string;
|
|
1786
1808
|
};
|
|
1787
1809
|
|
|
1810
|
+
export type DtoRepoLanguage = {
|
|
1811
|
+
language: string;
|
|
1812
|
+
ratio: string;
|
|
1813
|
+
};
|
|
1814
|
+
|
|
1788
1815
|
export type DtoRepoPatch = {
|
|
1789
1816
|
description: string;
|
|
1790
1817
|
license: string;
|
|
@@ -1821,6 +1848,9 @@ export type DtoRepos4User = {
|
|
|
1821
1848
|
/**仓库程序语言,预留*/
|
|
1822
1849
|
language: string;
|
|
1823
1850
|
|
|
1851
|
+
/**仓库语言*/
|
|
1852
|
+
languages: DtoRepoLanguage[];
|
|
1853
|
+
|
|
1824
1854
|
/**最新代码更新人姓名*/
|
|
1825
1855
|
last_update_nickname: string;
|
|
1826
1856
|
|
|
@@ -1869,6 +1899,9 @@ export type DtoRepos4UserBase = {
|
|
|
1869
1899
|
/**仓库程序语言,预留*/
|
|
1870
1900
|
language: string;
|
|
1871
1901
|
|
|
1902
|
+
/**仓库语言*/
|
|
1903
|
+
languages: DtoRepoLanguage[];
|
|
1904
|
+
|
|
1872
1905
|
/**最新代码更新人姓名*/
|
|
1873
1906
|
last_update_nickname: string;
|
|
1874
1907
|
|
|
@@ -2133,6 +2166,7 @@ export type DtoUpdateGroupReq = {
|
|
|
2133
2166
|
|
|
2134
2167
|
export type DtoUpdateMembersRequest = {
|
|
2135
2168
|
access_level: string;
|
|
2169
|
+
is_outside_collaborator: boolean;
|
|
2136
2170
|
};
|
|
2137
2171
|
|
|
2138
2172
|
export type DtoUploadAssetsResponse = {
|
|
@@ -2429,6 +2463,15 @@ export type DtoWorkspacePageInfo = {
|
|
|
2429
2463
|
pageSize: number;
|
|
2430
2464
|
};
|
|
2431
2465
|
|
|
2466
|
+
export type DtoWxJsSdkSign = {
|
|
2467
|
+
appid: string;
|
|
2468
|
+
noncestr: string;
|
|
2469
|
+
|
|
2470
|
+
/**签名结果*/
|
|
2471
|
+
sign: string;
|
|
2472
|
+
timestamp: number;
|
|
2473
|
+
};
|
|
2474
|
+
|
|
2432
2475
|
export type DtoStorage = {
|
|
2433
2476
|
/**example: { "hard": { "storage": -1}},移除 omitempty ,Storage = 0,会生成 {"hard":{"storage":0}}*/
|
|
2434
2477
|
storage: number;
|
|
@@ -2533,9 +2576,11 @@ export type HandlerMissionFilterFrom = {
|
|
|
2533
2576
|
|
|
2534
2577
|
export type HandlerUpdateIssueForm = {
|
|
2535
2578
|
body: string;
|
|
2579
|
+
end_date: string;
|
|
2536
2580
|
|
|
2537
2581
|
/**p0, p1, p2, p3, ""。 single choice。*/
|
|
2538
2582
|
priority: string;
|
|
2583
|
+
start_date: string;
|
|
2539
2584
|
|
|
2540
2585
|
/**open or closed*/
|
|
2541
2586
|
state: string;
|
|
@@ -2594,6 +2639,8 @@ export type LabelOption = {
|
|
|
2594
2639
|
name: string;
|
|
2595
2640
|
};
|
|
2596
2641
|
|
|
2642
|
+
export type MapConstantSlugTypeInt64 = any;
|
|
2643
|
+
|
|
2597
2644
|
export type OpenapiCommitAssetUploadUrl = {
|
|
2598
2645
|
expires_in_sec: number;
|
|
2599
2646
|
upload_url: string;
|
|
@@ -2661,7 +2708,7 @@ export type OpenapiReleaseAssetUploadUrl = {
|
|
|
2661
2708
|
verify_url: string;
|
|
2662
2709
|
};
|
|
2663
2710
|
|
|
2664
|
-
export type OrganizationSettingValue = 1 | 2 | 4 | 8;
|
|
2711
|
+
export type OrganizationSettingValue = 1 | 2 | 4 | 8 | 16;
|
|
2665
2712
|
|
|
2666
2713
|
export type OrganizationsDomainsVerificationResponse = {
|
|
2667
2714
|
domains: string[];
|
|
@@ -2747,6 +2794,14 @@ example `v7` to specify ARMv7 when architecture is `arm`.*/
|
|
|
2747
2794
|
variant: string;
|
|
2748
2795
|
};
|
|
2749
2796
|
|
|
2797
|
+
export type WebAddGpgKeyForm = {
|
|
2798
|
+
/**A GPG public key in ASCII-armored format.*/
|
|
2799
|
+
armoredPublicKey: string;
|
|
2800
|
+
|
|
2801
|
+
/**A descriptive name for the new key.*/
|
|
2802
|
+
name: string;
|
|
2803
|
+
};
|
|
2804
|
+
|
|
2750
2805
|
export type WebAuthor = {
|
|
2751
2806
|
email: string;
|
|
2752
2807
|
user_name: string;
|
|
@@ -2800,29 +2855,171 @@ export type WebBranchPullRequest = {
|
|
|
2800
2855
|
};
|
|
2801
2856
|
|
|
2802
2857
|
export type WebCodeSensitiveDetail = {
|
|
2803
|
-
|
|
2858
|
+
/**问题内容*/
|
|
2804
2859
|
content: string;
|
|
2860
|
+
|
|
2861
|
+
/**问题创建时间*/
|
|
2862
|
+
created_at: string;
|
|
2863
|
+
|
|
2864
|
+
/**问题描述*/
|
|
2805
2865
|
description: string;
|
|
2866
|
+
|
|
2867
|
+
/**问题域*/
|
|
2806
2868
|
domain: string;
|
|
2869
|
+
|
|
2870
|
+
/**包含问题的文件路径*/
|
|
2871
|
+
file_path: string;
|
|
2872
|
+
|
|
2873
|
+
/**默认分支信息*/
|
|
2874
|
+
head_ref: any;
|
|
2875
|
+
|
|
2876
|
+
/**问题 id,此id用来更新问题状态*/
|
|
2807
2877
|
info_id: string;
|
|
2878
|
+
|
|
2879
|
+
/**问题类型*/
|
|
2880
|
+
issue_type: string;
|
|
2808
2881
|
keen_attr: WebKeenAttr;
|
|
2882
|
+
|
|
2883
|
+
/**问题行号*/
|
|
2809
2884
|
line_no: number[];
|
|
2810
|
-
|
|
2885
|
+
|
|
2886
|
+
/**问题发生版本*/
|
|
2887
|
+
occur_version: string;
|
|
2888
|
+
|
|
2889
|
+
/**问题责任人(平台信息)*/
|
|
2890
|
+
owner: any;
|
|
2891
|
+
|
|
2892
|
+
/**问题责任人原生git信息*/
|
|
2893
|
+
raw_author: any;
|
|
2894
|
+
|
|
2895
|
+
/**仓库 id*/
|
|
2896
|
+
repo_id: string;
|
|
2897
|
+
|
|
2898
|
+
/**问题所在版本*/
|
|
2899
|
+
revision: string;
|
|
2900
|
+
|
|
2901
|
+
/**问题等级*/
|
|
2902
|
+
risk_level: string;
|
|
2903
|
+
|
|
2904
|
+
/**问题状态 开启/忽略*/
|
|
2905
|
+
state: string;
|
|
2906
|
+
|
|
2907
|
+
/**问题子类型*/
|
|
2811
2908
|
sub_class: string;
|
|
2909
|
+
|
|
2910
|
+
/**扫描工具*/
|
|
2911
|
+
tool: string;
|
|
2912
|
+
};
|
|
2913
|
+
|
|
2914
|
+
export type WebCodeSensitiveDetailResp = {
|
|
2915
|
+
/**问题详情*/
|
|
2916
|
+
detail: any;
|
|
2917
|
+
|
|
2918
|
+
/**忽略问题详情*/
|
|
2919
|
+
ignore_detail: any;
|
|
2920
|
+
|
|
2921
|
+
/**详情类型 开启中/已忽略*/
|
|
2922
|
+
type: string;
|
|
2923
|
+
};
|
|
2924
|
+
|
|
2925
|
+
export type WebCodeSensitiveIgnoreDetail = {
|
|
2926
|
+
/**问题内容*/
|
|
2927
|
+
content: string;
|
|
2928
|
+
|
|
2929
|
+
/**问题创建时间*/
|
|
2930
|
+
created_at: string;
|
|
2931
|
+
|
|
2932
|
+
/**问题描述*/
|
|
2933
|
+
description: string;
|
|
2934
|
+
|
|
2935
|
+
/**问题域*/
|
|
2936
|
+
domain: string;
|
|
2937
|
+
|
|
2938
|
+
/**包含问题的文件路径*/
|
|
2939
|
+
file_path: string;
|
|
2940
|
+
|
|
2941
|
+
/**默认分支信息*/
|
|
2942
|
+
head_ref: any;
|
|
2943
|
+
|
|
2944
|
+
/**忽略人*/
|
|
2945
|
+
ignore_operator: any;
|
|
2946
|
+
|
|
2947
|
+
/**忽略原因*/
|
|
2948
|
+
ignore_reason: string;
|
|
2949
|
+
|
|
2950
|
+
/**问题 id,此id用来更新问题状态*/
|
|
2951
|
+
info_id: string;
|
|
2952
|
+
|
|
2953
|
+
/**问题类型*/
|
|
2954
|
+
issue_type: string;
|
|
2955
|
+
keen_attr: WebKeenAttr;
|
|
2956
|
+
|
|
2957
|
+
/**问题行号*/
|
|
2958
|
+
line_no: number[];
|
|
2959
|
+
|
|
2960
|
+
/**问题发生版本*/
|
|
2961
|
+
occur_version: string;
|
|
2962
|
+
|
|
2963
|
+
/**问题责任人(平台信息)*/
|
|
2964
|
+
owner: any;
|
|
2965
|
+
|
|
2966
|
+
/**问题责任人原生git信息*/
|
|
2967
|
+
raw_author: any;
|
|
2968
|
+
|
|
2969
|
+
/**仓库 id*/
|
|
2970
|
+
repo_id: string;
|
|
2971
|
+
|
|
2972
|
+
/**问题所在版本*/
|
|
2973
|
+
revision: string;
|
|
2974
|
+
|
|
2975
|
+
/**问题等级*/
|
|
2976
|
+
risk_level: string;
|
|
2977
|
+
|
|
2978
|
+
/**问题状态 开启/忽略*/
|
|
2979
|
+
state: string;
|
|
2980
|
+
|
|
2981
|
+
/**问题子类型*/
|
|
2982
|
+
sub_class: string;
|
|
2983
|
+
|
|
2984
|
+
/**扫描工具*/
|
|
2985
|
+
tool: string;
|
|
2812
2986
|
};
|
|
2813
2987
|
|
|
2814
2988
|
export type WebCodeSensitiveInfo = {
|
|
2815
|
-
|
|
2989
|
+
/**问题创建时间*/
|
|
2816
2990
|
created_at: string;
|
|
2991
|
+
|
|
2992
|
+
/**包含问题的文件路径*/
|
|
2817
2993
|
file_path: string;
|
|
2994
|
+
|
|
2995
|
+
/**问题id*/
|
|
2818
2996
|
id: string;
|
|
2819
|
-
|
|
2997
|
+
|
|
2998
|
+
/**问题类型*/
|
|
2820
2999
|
issue_type: string;
|
|
2821
|
-
|
|
2822
|
-
|
|
3000
|
+
|
|
3001
|
+
/**问题发生版本*/
|
|
3002
|
+
occur_version: string;
|
|
3003
|
+
|
|
3004
|
+
/**问题责任人(平台信息)*/
|
|
3005
|
+
owner: any;
|
|
3006
|
+
|
|
3007
|
+
/**问题责任人原生git信息*/
|
|
3008
|
+
raw_author: any;
|
|
3009
|
+
|
|
3010
|
+
/**仓库id*/
|
|
2823
3011
|
repo_id: string;
|
|
3012
|
+
|
|
3013
|
+
/**问题所在版本*/
|
|
3014
|
+
revision: string;
|
|
3015
|
+
|
|
3016
|
+
/**问题等级*/
|
|
2824
3017
|
risk_level: string;
|
|
3018
|
+
|
|
3019
|
+
/**问题状态 开启/忽略*/
|
|
2825
3020
|
state: string;
|
|
3021
|
+
|
|
3022
|
+
/**扫描工具*/
|
|
2826
3023
|
tool: string;
|
|
2827
3024
|
};
|
|
2828
3025
|
|
|
@@ -3081,6 +3278,61 @@ export type WebForkSyncStatus = {
|
|
|
3081
3278
|
upstream_slug: string;
|
|
3082
3279
|
};
|
|
3083
3280
|
|
|
3281
|
+
export type WebGpgEmail = {
|
|
3282
|
+
/**邮箱*/
|
|
3283
|
+
email: string;
|
|
3284
|
+
|
|
3285
|
+
/**是否已验证*/
|
|
3286
|
+
verified: boolean;
|
|
3287
|
+
};
|
|
3288
|
+
|
|
3289
|
+
export type WebGpgPublicKey = {
|
|
3290
|
+
created_at: string;
|
|
3291
|
+
emails: WebGpgEmail[];
|
|
3292
|
+
|
|
3293
|
+
/**过期时间*/
|
|
3294
|
+
expired_at: string;
|
|
3295
|
+
|
|
3296
|
+
/**公钥指纹*/
|
|
3297
|
+
fingerprint: string;
|
|
3298
|
+
id: string;
|
|
3299
|
+
|
|
3300
|
+
/**密钥创建时间*/
|
|
3301
|
+
key_creation_time: string;
|
|
3302
|
+
|
|
3303
|
+
/**公钥 ID*/
|
|
3304
|
+
key_id: string;
|
|
3305
|
+
|
|
3306
|
+
/**标题*/
|
|
3307
|
+
name: string;
|
|
3308
|
+
public_key: string;
|
|
3309
|
+
|
|
3310
|
+
/**子密钥指纹,当为 primary key 时与 primary_fingerprint 相同*/
|
|
3311
|
+
subkeys: WebGpgSubkey[];
|
|
3312
|
+
user_id: string;
|
|
3313
|
+
};
|
|
3314
|
+
|
|
3315
|
+
export type WebGpgSubkey = {
|
|
3316
|
+
/**子密钥系统创建时间(添加到系统时间)*/
|
|
3317
|
+
created_at: string;
|
|
3318
|
+
|
|
3319
|
+
/**子密钥过期时间*/
|
|
3320
|
+
expired_at: string;
|
|
3321
|
+
|
|
3322
|
+
/**子密钥指纹*/
|
|
3323
|
+
fingerprint: string;
|
|
3324
|
+
id: string;
|
|
3325
|
+
|
|
3326
|
+
/**子密钥创建时间*/
|
|
3327
|
+
key_creation_time: string;
|
|
3328
|
+
|
|
3329
|
+
/**子密钥 KeyID*/
|
|
3330
|
+
key_id: string;
|
|
3331
|
+
|
|
3332
|
+
/**主密钥 KeyID*/
|
|
3333
|
+
primary_key_id: string;
|
|
3334
|
+
};
|
|
3335
|
+
|
|
3084
3336
|
export type WebGetCommitAnnotationsInBatchForm = {
|
|
3085
3337
|
commit_hashes: string[];
|
|
3086
3338
|
keys: string[];
|
|
@@ -3099,8 +3351,12 @@ export type WebGitSize = {
|
|
|
3099
3351
|
used_in_kib: string;
|
|
3100
3352
|
};
|
|
3101
3353
|
|
|
3102
|
-
export type
|
|
3103
|
-
|
|
3354
|
+
export type WebHeadRef = {
|
|
3355
|
+
/**分支hash*/
|
|
3356
|
+
hash: string;
|
|
3357
|
+
|
|
3358
|
+
/**分支名称*/
|
|
3359
|
+
ref: string;
|
|
3104
3360
|
};
|
|
3105
3361
|
|
|
3106
3362
|
export type WebIssue = {
|
|
@@ -3109,6 +3365,7 @@ export type WebIssue = {
|
|
|
3109
3365
|
comment_count: number;
|
|
3110
3366
|
created_at: string;
|
|
3111
3367
|
labels: LabelOption[];
|
|
3368
|
+
last_acted_at: string;
|
|
3112
3369
|
number: string;
|
|
3113
3370
|
priority: string;
|
|
3114
3371
|
state: string;
|
|
@@ -3146,6 +3403,7 @@ export type WebIssueDetail = {
|
|
|
3146
3403
|
comment_count: number;
|
|
3147
3404
|
created_at: string;
|
|
3148
3405
|
labels: LabelOption[];
|
|
3406
|
+
last_acted_at: string;
|
|
3149
3407
|
number: string;
|
|
3150
3408
|
participants: GitWoaComCnbMonorepoGitInternalDtoWebUserInfo[];
|
|
3151
3409
|
priority: string;
|
|
@@ -3161,11 +3419,13 @@ export type WebIssueResource = {
|
|
|
3161
3419
|
comment_count: number;
|
|
3162
3420
|
created_at: string;
|
|
3163
3421
|
customer_fields: WebCustomerField[];
|
|
3422
|
+
ended_at: string;
|
|
3164
3423
|
id: string;
|
|
3165
3424
|
labels: WebLabelOption[];
|
|
3166
3425
|
number: string;
|
|
3167
3426
|
priority: string;
|
|
3168
3427
|
repo_slug: string;
|
|
3428
|
+
started_at: string;
|
|
3169
3429
|
state: string;
|
|
3170
3430
|
state_reason: string;
|
|
3171
3431
|
title: string;
|
|
@@ -3191,8 +3451,13 @@ export type WebIssueTemplates = {
|
|
|
3191
3451
|
};
|
|
3192
3452
|
|
|
3193
3453
|
export type WebKeenAttr = {
|
|
3454
|
+
/**秘钥对象是否加密*/
|
|
3194
3455
|
encrypted: boolean;
|
|
3456
|
+
|
|
3457
|
+
/**URL 协议*/
|
|
3195
3458
|
scheme: string;
|
|
3459
|
+
|
|
3460
|
+
/**文件类型标签*/
|
|
3196
3461
|
tag: string;
|
|
3197
3462
|
};
|
|
3198
3463
|
|
|
@@ -3318,6 +3583,7 @@ export type WebPullRequest = {
|
|
|
3318
3583
|
created_at: string;
|
|
3319
3584
|
file_count: number;
|
|
3320
3585
|
head_repo_ref: string;
|
|
3586
|
+
head_repo_slug: string;
|
|
3321
3587
|
is_merged: boolean;
|
|
3322
3588
|
is_ready_for_merge: boolean;
|
|
3323
3589
|
labels: LabelOption[];
|
|
@@ -3384,6 +3650,7 @@ export type WebPullRequestDetail = {
|
|
|
3384
3650
|
file_count: number;
|
|
3385
3651
|
head: WebPullRequestRepository;
|
|
3386
3652
|
head_repo_ref: string;
|
|
3653
|
+
head_repo_slug: string;
|
|
3387
3654
|
is_merged: boolean;
|
|
3388
3655
|
is_ready_for_merge: boolean;
|
|
3389
3656
|
labels: LabelOption[];
|