@leaflow/sdk 0.0.0-dev.11.g7f2d603
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/account/v1/index.d.ts +42 -0
- package/dist/account/v1/index.js +5 -0
- package/dist/account/v1/schema.d.ts +866 -0
- package/dist/account/v1/schema.js +5 -0
- package/dist/assistant/v1/index.d.ts +80 -0
- package/dist/assistant/v1/index.js +5 -0
- package/dist/assistant/v1/schema.d.ts +1888 -0
- package/dist/assistant/v1/schema.js +5 -0
- package/dist/canopy/v1/index.d.ts +48 -0
- package/dist/canopy/v1/index.js +5 -0
- package/dist/canopy/v1/schema.d.ts +1100 -0
- package/dist/canopy/v1/schema.js +5 -0
- package/dist/compute/v1/index.d.ts +224 -0
- package/dist/compute/v1/index.js +5 -0
- package/dist/compute/v1/schema.d.ts +4442 -0
- package/dist/compute/v1/schema.js +5 -0
- package/dist/iam/v1/index.d.ts +62 -0
- package/dist/iam/v1/index.js +5 -0
- package/dist/iam/v1/schema.d.ts +1230 -0
- package/dist/iam/v1/schema.js +5 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +6 -0
- package/dist/monitoring/v1/index.d.ts +96 -0
- package/dist/monitoring/v1/index.js +5 -0
- package/dist/monitoring/v1/schema.d.ts +2292 -0
- package/dist/monitoring/v1/schema.js +5 -0
- package/dist/tunnel/v1/index.d.ts +38 -0
- package/dist/tunnel/v1/index.js +5 -0
- package/dist/tunnel/v1/schema.d.ts +845 -0
- package/dist/tunnel/v1/schema.js +5 -0
- package/package.json +74 -0
|
@@ -0,0 +1,1230 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
"/api/v1/permissions": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* 列出 IAM 自己声明的权限
|
|
15
|
+
* @description **只有 IAM 这一份。** 别的服务的操作不在这里——权限目录由各个服务自己声明,IAM 认识它们就等于要跟着每个下游一起发版。
|
|
16
|
+
*/
|
|
17
|
+
get: operations["list-permissions"];
|
|
18
|
+
put?: never;
|
|
19
|
+
post?: never;
|
|
20
|
+
delete?: never;
|
|
21
|
+
options?: never;
|
|
22
|
+
head?: never;
|
|
23
|
+
patch?: never;
|
|
24
|
+
trace?: never;
|
|
25
|
+
};
|
|
26
|
+
"/api/v1/project": {
|
|
27
|
+
parameters: {
|
|
28
|
+
query?: never;
|
|
29
|
+
header?: never;
|
|
30
|
+
path?: never;
|
|
31
|
+
cookie?: never;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 查看一个项目
|
|
35
|
+
* @description 在项目里就看得到,不需要额外的读权限。
|
|
36
|
+
*/
|
|
37
|
+
get: operations["get-project"];
|
|
38
|
+
put?: never;
|
|
39
|
+
post?: never;
|
|
40
|
+
/**
|
|
41
|
+
* 删除项目
|
|
42
|
+
* @description 只有所有者能做,而且没有回头路:项目进入 DELETING,各服务开始清掉它下面的资源。项目行本身永远留着——查一个删掉的项目查得到,答案是它没了,而不是一个 404。
|
|
43
|
+
*/
|
|
44
|
+
delete: operations["delete-project"];
|
|
45
|
+
options?: never;
|
|
46
|
+
head?: never;
|
|
47
|
+
/** 改项目的名称与描述 */
|
|
48
|
+
patch: operations["update-project"];
|
|
49
|
+
trace?: never;
|
|
50
|
+
};
|
|
51
|
+
"/api/v1/membership": {
|
|
52
|
+
parameters: {
|
|
53
|
+
query?: never;
|
|
54
|
+
header?: never;
|
|
55
|
+
path?: never;
|
|
56
|
+
cookie?: never;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* 查看我在这个项目里的身份
|
|
60
|
+
* @description 只给事实,不给结论:这里没有 allowed,因为 IAM 不知道你要做的是哪个操作——哪个操作需要哪条权限那份目录属于各个服务,判断在它们那边。
|
|
61
|
+
*/
|
|
62
|
+
get: operations["get-project-membership"];
|
|
63
|
+
put?: never;
|
|
64
|
+
post?: never;
|
|
65
|
+
delete?: never;
|
|
66
|
+
options?: never;
|
|
67
|
+
head?: never;
|
|
68
|
+
patch?: never;
|
|
69
|
+
trace?: never;
|
|
70
|
+
};
|
|
71
|
+
"/api/v1/invitations": {
|
|
72
|
+
parameters: {
|
|
73
|
+
query?: never;
|
|
74
|
+
header?: never;
|
|
75
|
+
path?: never;
|
|
76
|
+
cookie?: never;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* 列出这个项目还在等的要约
|
|
80
|
+
* @description 在项目里就看得到,和成员列表同一条规则:谁被请了也是「这个项目有谁」的一部分。
|
|
81
|
+
*/
|
|
82
|
+
get: operations["list-project-invitations"];
|
|
83
|
+
put?: never;
|
|
84
|
+
/**
|
|
85
|
+
* 发出一份邀请
|
|
86
|
+
* @description 要约站 14 天。有上限是因为里面那些角色是按发出那一刻的项目校验的,一份活得比它所依据的安排还久的要约会授出现在没人打算授的权限。
|
|
87
|
+
*/
|
|
88
|
+
post: operations["issue-invitation"];
|
|
89
|
+
delete?: never;
|
|
90
|
+
options?: never;
|
|
91
|
+
head?: never;
|
|
92
|
+
patch?: never;
|
|
93
|
+
trace?: never;
|
|
94
|
+
};
|
|
95
|
+
"/api/v1/invitations/{invitationId}": {
|
|
96
|
+
parameters: {
|
|
97
|
+
query?: never;
|
|
98
|
+
header?: never;
|
|
99
|
+
path?: never;
|
|
100
|
+
cookie?: never;
|
|
101
|
+
};
|
|
102
|
+
get?: never;
|
|
103
|
+
put?: never;
|
|
104
|
+
post?: never;
|
|
105
|
+
/** 撤回一份还没被兑现的要约 */
|
|
106
|
+
delete: operations["revoke-invitation"];
|
|
107
|
+
options?: never;
|
|
108
|
+
head?: never;
|
|
109
|
+
patch?: never;
|
|
110
|
+
trace?: never;
|
|
111
|
+
};
|
|
112
|
+
"/api/v1/members": {
|
|
113
|
+
parameters: {
|
|
114
|
+
query?: never;
|
|
115
|
+
header?: never;
|
|
116
|
+
path?: never;
|
|
117
|
+
cookie?: never;
|
|
118
|
+
};
|
|
119
|
+
/** 列出项目成员 */
|
|
120
|
+
get: operations["list-members"];
|
|
121
|
+
put?: never;
|
|
122
|
+
post?: never;
|
|
123
|
+
delete?: never;
|
|
124
|
+
options?: never;
|
|
125
|
+
head?: never;
|
|
126
|
+
patch?: never;
|
|
127
|
+
trace?: never;
|
|
128
|
+
};
|
|
129
|
+
"/api/v1/members/{userId}": {
|
|
130
|
+
parameters: {
|
|
131
|
+
query?: never;
|
|
132
|
+
header?: never;
|
|
133
|
+
path?: never;
|
|
134
|
+
cookie?: never;
|
|
135
|
+
};
|
|
136
|
+
get?: never;
|
|
137
|
+
put?: never;
|
|
138
|
+
post?: never;
|
|
139
|
+
/**
|
|
140
|
+
* 移除成员,或者自己退出
|
|
141
|
+
* @description 移除别人要 iam:members.manage;退出只要求自己在这个项目里——任何人都可能被拉进一个项目,那么任何人就得能出去。所有者两条路都不行,先转移所有权。
|
|
142
|
+
*/
|
|
143
|
+
delete: operations["remove-member"];
|
|
144
|
+
options?: never;
|
|
145
|
+
head?: never;
|
|
146
|
+
patch?: never;
|
|
147
|
+
trace?: never;
|
|
148
|
+
};
|
|
149
|
+
"/api/v1/members/{userId}/roles": {
|
|
150
|
+
parameters: {
|
|
151
|
+
query?: never;
|
|
152
|
+
header?: never;
|
|
153
|
+
path?: never;
|
|
154
|
+
cookie?: never;
|
|
155
|
+
};
|
|
156
|
+
get?: never;
|
|
157
|
+
/**
|
|
158
|
+
* 设置一个成员持有的角色
|
|
159
|
+
* @description 整体替换而不是增删:调用方拿到的就是一份完整清单,让它自己算差集只会让「我以为我取消了那个角色」这种事变得可能。所有者身上的 OWNER 不受影响。
|
|
160
|
+
*/
|
|
161
|
+
put: operations["set-member-roles"];
|
|
162
|
+
post?: never;
|
|
163
|
+
delete?: never;
|
|
164
|
+
options?: never;
|
|
165
|
+
head?: never;
|
|
166
|
+
patch?: never;
|
|
167
|
+
trace?: never;
|
|
168
|
+
};
|
|
169
|
+
"/api/v1/transfer-ownership": {
|
|
170
|
+
parameters: {
|
|
171
|
+
query?: never;
|
|
172
|
+
header?: never;
|
|
173
|
+
path?: never;
|
|
174
|
+
cookie?: never;
|
|
175
|
+
};
|
|
176
|
+
get?: never;
|
|
177
|
+
put?: never;
|
|
178
|
+
/**
|
|
179
|
+
* 转移项目所有权
|
|
180
|
+
* @description OWNER 唯一的移动方式,只有所有者本人能发起——能像普通角色那样授予的话,任何管理员都可以顺手把自己变成所有者。
|
|
181
|
+
*/
|
|
182
|
+
post: operations["transfer-project-ownership"];
|
|
183
|
+
delete?: never;
|
|
184
|
+
options?: never;
|
|
185
|
+
head?: never;
|
|
186
|
+
patch?: never;
|
|
187
|
+
trace?: never;
|
|
188
|
+
};
|
|
189
|
+
"/api/v1/roles": {
|
|
190
|
+
parameters: {
|
|
191
|
+
query?: never;
|
|
192
|
+
header?: never;
|
|
193
|
+
path?: never;
|
|
194
|
+
cookie?: never;
|
|
195
|
+
};
|
|
196
|
+
/** 列出项目里的角色 */
|
|
197
|
+
get: operations["list-roles"];
|
|
198
|
+
put?: never;
|
|
199
|
+
/** 建一个角色 */
|
|
200
|
+
post: operations["create-role"];
|
|
201
|
+
delete?: never;
|
|
202
|
+
options?: never;
|
|
203
|
+
head?: never;
|
|
204
|
+
patch?: never;
|
|
205
|
+
trace?: never;
|
|
206
|
+
};
|
|
207
|
+
"/api/v1/roles/{code}": {
|
|
208
|
+
parameters: {
|
|
209
|
+
query?: never;
|
|
210
|
+
header?: never;
|
|
211
|
+
path?: never;
|
|
212
|
+
cookie?: never;
|
|
213
|
+
};
|
|
214
|
+
/** 查看一个角色 */
|
|
215
|
+
get: operations["get-role"];
|
|
216
|
+
/**
|
|
217
|
+
* 改一个角色
|
|
218
|
+
* @description 名称、描述和权限整体替换。改完会在同一个事务里重新编译持有它的每一个成员——角色的权限变了,就是那些人的权限变了,而下一次请求是拿编译结果判定的。
|
|
219
|
+
*/
|
|
220
|
+
put: operations["update-role"];
|
|
221
|
+
post?: never;
|
|
222
|
+
/**
|
|
223
|
+
* 删一个角色
|
|
224
|
+
* @description 还有人持有时会被拒。级联摘掉那些绑定等于把每个持有者悄悄降级——请求里没有一个字说了这件事,事后也查不到。
|
|
225
|
+
*/
|
|
226
|
+
delete: operations["delete-role"];
|
|
227
|
+
options?: never;
|
|
228
|
+
head?: never;
|
|
229
|
+
patch?: never;
|
|
230
|
+
trace?: never;
|
|
231
|
+
};
|
|
232
|
+
"/api/v1/ssh-keys": {
|
|
233
|
+
parameters: {
|
|
234
|
+
query?: never;
|
|
235
|
+
header?: never;
|
|
236
|
+
path?: never;
|
|
237
|
+
cookie?: never;
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* 列出这个项目的公钥
|
|
241
|
+
* @description 归成员的和归项目的都在里面,靠每一条上的 owner_user_id 区分。
|
|
242
|
+
*/
|
|
243
|
+
get: operations["list-ssh-keys"];
|
|
244
|
+
put?: never;
|
|
245
|
+
/**
|
|
246
|
+
* 添加一把公钥
|
|
247
|
+
* @description owner=me 是自己的,是成员就能加;owner=project 是项目公用的,要 iam:ssh_keys.manage —— 它会进这个项目之后开出来的每一台机器。
|
|
248
|
+
*/
|
|
249
|
+
post: operations["create-ssh-key"];
|
|
250
|
+
delete?: never;
|
|
251
|
+
options?: never;
|
|
252
|
+
head?: never;
|
|
253
|
+
patch?: never;
|
|
254
|
+
trace?: never;
|
|
255
|
+
};
|
|
256
|
+
"/api/v1/ssh-keys/{keyId}": {
|
|
257
|
+
parameters: {
|
|
258
|
+
query?: never;
|
|
259
|
+
header?: never;
|
|
260
|
+
path?: never;
|
|
261
|
+
cookie?: never;
|
|
262
|
+
};
|
|
263
|
+
/** 查看一把公钥 */
|
|
264
|
+
get: operations["get-ssh-key"];
|
|
265
|
+
put?: never;
|
|
266
|
+
post?: never;
|
|
267
|
+
/**
|
|
268
|
+
* 吊销一把公钥
|
|
269
|
+
* @description 行留着,状态变成 REVOKED。事故之后要问的是当时信任的是哪把钥匙。
|
|
270
|
+
*/
|
|
271
|
+
delete: operations["revoke-ssh-key"];
|
|
272
|
+
options?: never;
|
|
273
|
+
head?: never;
|
|
274
|
+
/**
|
|
275
|
+
* 给公钥改名
|
|
276
|
+
* @description 只有名字能改:公钥、类型、指纹是同一样东西的三种说法,改其中一个会让这一行描述一把并不存在的钥匙。
|
|
277
|
+
*/
|
|
278
|
+
patch: operations["rename-ssh-key"];
|
|
279
|
+
trace?: never;
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
export type webhooks = Record<string, never>;
|
|
283
|
+
export interface components {
|
|
284
|
+
schemas: {
|
|
285
|
+
Error: {
|
|
286
|
+
code?: string;
|
|
287
|
+
message: string;
|
|
288
|
+
meta?: {
|
|
289
|
+
[key: string]: unknown;
|
|
290
|
+
};
|
|
291
|
+
/** Format: int64 */
|
|
292
|
+
status: number;
|
|
293
|
+
};
|
|
294
|
+
PermissionResource: {
|
|
295
|
+
description: string;
|
|
296
|
+
name: string;
|
|
297
|
+
/** @description 只有项目所有者能做,绑到自定义角色上也不会生效 */
|
|
298
|
+
owner_only: boolean;
|
|
299
|
+
};
|
|
300
|
+
PermissionListResponseBody: {
|
|
301
|
+
items: components["schemas"]["PermissionResource"][] | null;
|
|
302
|
+
};
|
|
303
|
+
GrantResource: {
|
|
304
|
+
admin: boolean;
|
|
305
|
+
owner: boolean;
|
|
306
|
+
/** @description 持有的全部自定义角色的权限并集,已去重排序 */
|
|
307
|
+
permissions: string[] | null;
|
|
308
|
+
/** @description 持有的角色编码,只用于展示 */
|
|
309
|
+
roles: string[] | null;
|
|
310
|
+
};
|
|
311
|
+
ProjectResource: {
|
|
312
|
+
ban_reason: string;
|
|
313
|
+
/** Format: date-time */
|
|
314
|
+
created_at: string;
|
|
315
|
+
created_by: string;
|
|
316
|
+
/**
|
|
317
|
+
* Format: date-time
|
|
318
|
+
* @description 盖上墓碑的那一刻
|
|
319
|
+
*/
|
|
320
|
+
deleted_at: string | null;
|
|
321
|
+
description: string;
|
|
322
|
+
/** Format: uuid */
|
|
323
|
+
id: string;
|
|
324
|
+
name: string;
|
|
325
|
+
/**
|
|
326
|
+
* Format: date-time
|
|
327
|
+
* @description 欠费的起始时间
|
|
328
|
+
*/
|
|
329
|
+
overdue_at: string | null;
|
|
330
|
+
/** @enum {string} */
|
|
331
|
+
status: "ACTIVE" | "SUSPENDED" | "BANNED" | "DELETING" | "DELETED";
|
|
332
|
+
/** @description 给人看的,不参与任何查询 */
|
|
333
|
+
status_reason: string;
|
|
334
|
+
/** Format: date-time */
|
|
335
|
+
updated_at: string;
|
|
336
|
+
};
|
|
337
|
+
ProjectAccessResource: {
|
|
338
|
+
grant: components["schemas"]["GrantResource"];
|
|
339
|
+
project: components["schemas"]["ProjectResource"];
|
|
340
|
+
};
|
|
341
|
+
UpdateProjectRequestBody: {
|
|
342
|
+
description?: string;
|
|
343
|
+
name?: string;
|
|
344
|
+
};
|
|
345
|
+
MembershipResource: {
|
|
346
|
+
grant: components["schemas"]["GrantResource"];
|
|
347
|
+
member: boolean;
|
|
348
|
+
project_status: string;
|
|
349
|
+
user_status: string;
|
|
350
|
+
};
|
|
351
|
+
InvitationResource: {
|
|
352
|
+
/** Format: date-time */
|
|
353
|
+
created_at: string;
|
|
354
|
+
email: string;
|
|
355
|
+
/** Format: date-time */
|
|
356
|
+
expires_at: string;
|
|
357
|
+
/** Format: uuid */
|
|
358
|
+
id: string;
|
|
359
|
+
invited_by: string;
|
|
360
|
+
/** Format: uuid */
|
|
361
|
+
project_id: string;
|
|
362
|
+
/** @description 兑现时会授予的角色编码 */
|
|
363
|
+
roles: string[] | null;
|
|
364
|
+
};
|
|
365
|
+
LengthAwarePageInvitationResource: {
|
|
366
|
+
/** @description 这一页的内容 */
|
|
367
|
+
items: components["schemas"]["InvitationResource"][];
|
|
368
|
+
/**
|
|
369
|
+
* Format: int64
|
|
370
|
+
* @description 这一页最多几条,回显请求里的值
|
|
371
|
+
*/
|
|
372
|
+
limit: number;
|
|
373
|
+
/**
|
|
374
|
+
* Format: int64
|
|
375
|
+
* @description 跳过了多少条,回显请求里的值
|
|
376
|
+
*/
|
|
377
|
+
offset: number;
|
|
378
|
+
/**
|
|
379
|
+
* Format: int64
|
|
380
|
+
* @description 命中的总条数,不只是这一页
|
|
381
|
+
*/
|
|
382
|
+
total: number;
|
|
383
|
+
};
|
|
384
|
+
IssueInvitationRequestBody: {
|
|
385
|
+
/** Format: email */
|
|
386
|
+
email: string;
|
|
387
|
+
/** @description 兑现时授予的角色编码。必须是这个项目已经定义的,OWNER 不行 */
|
|
388
|
+
roles: string[] | null;
|
|
389
|
+
};
|
|
390
|
+
IssuedInvitationResponseBody: {
|
|
391
|
+
invitation: components["schemas"]["InvitationResource"];
|
|
392
|
+
/** @description 兑现用的明文,**只在这一次响应里出现**。库里只有它的哈希,丢了只能撤销重发 */
|
|
393
|
+
token: string;
|
|
394
|
+
};
|
|
395
|
+
MemberResource: {
|
|
396
|
+
/** Format: date-time */
|
|
397
|
+
created_at: string;
|
|
398
|
+
created_by: string;
|
|
399
|
+
email: string;
|
|
400
|
+
first_name: string;
|
|
401
|
+
grant: components["schemas"]["GrantResource"];
|
|
402
|
+
last_name: string;
|
|
403
|
+
user_id: string;
|
|
404
|
+
};
|
|
405
|
+
LengthAwarePageMemberResource: {
|
|
406
|
+
/** @description 这一页的内容 */
|
|
407
|
+
items: components["schemas"]["MemberResource"][];
|
|
408
|
+
/**
|
|
409
|
+
* Format: int64
|
|
410
|
+
* @description 这一页最多几条,回显请求里的值
|
|
411
|
+
*/
|
|
412
|
+
limit: number;
|
|
413
|
+
/**
|
|
414
|
+
* Format: int64
|
|
415
|
+
* @description 跳过了多少条,回显请求里的值
|
|
416
|
+
*/
|
|
417
|
+
offset: number;
|
|
418
|
+
/**
|
|
419
|
+
* Format: int64
|
|
420
|
+
* @description 命中的总条数,不只是这一页
|
|
421
|
+
*/
|
|
422
|
+
total: number;
|
|
423
|
+
};
|
|
424
|
+
SetMemberRolesRequestBody: {
|
|
425
|
+
/** @description 这个人应当持有的**全部**角色编码。OWNER 不能出现在这里 */
|
|
426
|
+
roles: string[] | null;
|
|
427
|
+
};
|
|
428
|
+
TransferOwnershipRequestBody: {
|
|
429
|
+
/** @description 接手的人必须已经是这个项目的成员 */
|
|
430
|
+
to_user_id: string;
|
|
431
|
+
};
|
|
432
|
+
OwnershipTransferResponseBody: {
|
|
433
|
+
/** @description 原所有者。他保留其余的角色——转让的是所有权,不是把人踢出去 */
|
|
434
|
+
from: components["schemas"]["MemberResource"];
|
|
435
|
+
to: components["schemas"]["MemberResource"];
|
|
436
|
+
};
|
|
437
|
+
RoleResource: {
|
|
438
|
+
/** @description 内置角色不可删、不可改权限:OWNER 和 ADMIN 的语义写在代码里 */
|
|
439
|
+
builtin: boolean;
|
|
440
|
+
code: string;
|
|
441
|
+
/** Format: date-time */
|
|
442
|
+
created_at: string;
|
|
443
|
+
description: string;
|
|
444
|
+
name: string;
|
|
445
|
+
permissions: string[] | null;
|
|
446
|
+
/** Format: date-time */
|
|
447
|
+
updated_at: string;
|
|
448
|
+
};
|
|
449
|
+
RoleListResponseBody: {
|
|
450
|
+
items: components["schemas"]["RoleResource"][] | null;
|
|
451
|
+
};
|
|
452
|
+
CreateRoleRequestBody: {
|
|
453
|
+
/** @description 小写字母开头,可含数字和下划线。建好之后不能改——成员绑定和邀请都指着它 */
|
|
454
|
+
code: string;
|
|
455
|
+
description?: string;
|
|
456
|
+
name: string;
|
|
457
|
+
/** @description 权限名。OwnerOnly 的那几条会被拒绝:绑上去也不会生效 */
|
|
458
|
+
permissions?: string[] | null;
|
|
459
|
+
};
|
|
460
|
+
UpdateRoleRequestBody: {
|
|
461
|
+
description?: string;
|
|
462
|
+
name: string;
|
|
463
|
+
permissions?: string[] | null;
|
|
464
|
+
};
|
|
465
|
+
SSHKeyResource: {
|
|
466
|
+
/** Format: date-time */
|
|
467
|
+
created_at: string;
|
|
468
|
+
fingerprint: string;
|
|
469
|
+
/** @description 平台生成并保管的那把。它的私钥不对外提供 */
|
|
470
|
+
has_private_key: boolean;
|
|
471
|
+
/** Format: uuid */
|
|
472
|
+
id: string;
|
|
473
|
+
key_type: string;
|
|
474
|
+
name: string;
|
|
475
|
+
/** @description 归属人;不给表示这把钥匙归项目本身 */
|
|
476
|
+
owner_user_id?: string;
|
|
477
|
+
public_key: string;
|
|
478
|
+
/** @description 用途标签。平台自己生成的那把是 platform */
|
|
479
|
+
purposes: string[] | null;
|
|
480
|
+
/** @enum {string} */
|
|
481
|
+
status: "ACTIVE" | "REVOKED";
|
|
482
|
+
};
|
|
483
|
+
LengthAwarePageSSHKeyResource: {
|
|
484
|
+
/** @description 这一页的内容 */
|
|
485
|
+
items: components["schemas"]["SSHKeyResource"][];
|
|
486
|
+
/**
|
|
487
|
+
* Format: int64
|
|
488
|
+
* @description 这一页最多几条,回显请求里的值
|
|
489
|
+
*/
|
|
490
|
+
limit: number;
|
|
491
|
+
/**
|
|
492
|
+
* Format: int64
|
|
493
|
+
* @description 跳过了多少条,回显请求里的值
|
|
494
|
+
*/
|
|
495
|
+
offset: number;
|
|
496
|
+
/**
|
|
497
|
+
* Format: int64
|
|
498
|
+
* @description 命中的总条数,不只是这一页
|
|
499
|
+
*/
|
|
500
|
+
total: number;
|
|
501
|
+
};
|
|
502
|
+
CreateSSHKeyRequestBody: {
|
|
503
|
+
name: string;
|
|
504
|
+
/**
|
|
505
|
+
* @description 这把钥匙归谁
|
|
506
|
+
* @default me
|
|
507
|
+
* @enum {string}
|
|
508
|
+
*/
|
|
509
|
+
owner: "me" | "project";
|
|
510
|
+
/** @description OpenSSH 格式的公钥。类型和指纹从它算出来,都不可改 */
|
|
511
|
+
public_key: string;
|
|
512
|
+
/** @description 用途标签,比如 ci、bastion */
|
|
513
|
+
purposes?: string[] | null;
|
|
514
|
+
};
|
|
515
|
+
RenameSSHKeyRequestBody: {
|
|
516
|
+
name: string;
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
responses: never;
|
|
520
|
+
parameters: never;
|
|
521
|
+
requestBodies: never;
|
|
522
|
+
headers: never;
|
|
523
|
+
pathItems: never;
|
|
524
|
+
}
|
|
525
|
+
export type $defs = Record<string, never>;
|
|
526
|
+
export interface operations {
|
|
527
|
+
"list-permissions": {
|
|
528
|
+
parameters: {
|
|
529
|
+
query?: never;
|
|
530
|
+
header?: never;
|
|
531
|
+
path?: never;
|
|
532
|
+
cookie?: never;
|
|
533
|
+
};
|
|
534
|
+
requestBody?: never;
|
|
535
|
+
responses: {
|
|
536
|
+
/** @description OK */
|
|
537
|
+
200: {
|
|
538
|
+
headers: {
|
|
539
|
+
[name: string]: unknown;
|
|
540
|
+
};
|
|
541
|
+
content: {
|
|
542
|
+
"application/json": components["schemas"]["PermissionListResponseBody"];
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
/** @description Error */
|
|
546
|
+
default: {
|
|
547
|
+
headers: {
|
|
548
|
+
[name: string]: unknown;
|
|
549
|
+
};
|
|
550
|
+
content: {
|
|
551
|
+
"application/json": components["schemas"]["Error"];
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
"get-project": {
|
|
557
|
+
parameters: {
|
|
558
|
+
query?: never;
|
|
559
|
+
header?: never;
|
|
560
|
+
path?: never;
|
|
561
|
+
cookie?: never;
|
|
562
|
+
};
|
|
563
|
+
requestBody?: never;
|
|
564
|
+
responses: {
|
|
565
|
+
/** @description OK */
|
|
566
|
+
200: {
|
|
567
|
+
headers: {
|
|
568
|
+
[name: string]: unknown;
|
|
569
|
+
};
|
|
570
|
+
content: {
|
|
571
|
+
"application/json": components["schemas"]["ProjectAccessResource"];
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
/** @description Error */
|
|
575
|
+
default: {
|
|
576
|
+
headers: {
|
|
577
|
+
[name: string]: unknown;
|
|
578
|
+
};
|
|
579
|
+
content: {
|
|
580
|
+
"application/json": components["schemas"]["Error"];
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
"delete-project": {
|
|
586
|
+
parameters: {
|
|
587
|
+
query?: never;
|
|
588
|
+
header?: never;
|
|
589
|
+
path?: never;
|
|
590
|
+
cookie?: never;
|
|
591
|
+
};
|
|
592
|
+
requestBody?: never;
|
|
593
|
+
responses: {
|
|
594
|
+
/** @description OK */
|
|
595
|
+
200: {
|
|
596
|
+
headers: {
|
|
597
|
+
[name: string]: unknown;
|
|
598
|
+
};
|
|
599
|
+
content: {
|
|
600
|
+
"application/json": components["schemas"]["ProjectAccessResource"];
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
/** @description Error */
|
|
604
|
+
default: {
|
|
605
|
+
headers: {
|
|
606
|
+
[name: string]: unknown;
|
|
607
|
+
};
|
|
608
|
+
content: {
|
|
609
|
+
"application/json": components["schemas"]["Error"];
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
};
|
|
614
|
+
"update-project": {
|
|
615
|
+
parameters: {
|
|
616
|
+
query?: never;
|
|
617
|
+
header?: never;
|
|
618
|
+
path?: never;
|
|
619
|
+
cookie?: never;
|
|
620
|
+
};
|
|
621
|
+
requestBody: {
|
|
622
|
+
content: {
|
|
623
|
+
"application/json": components["schemas"]["UpdateProjectRequestBody"];
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
responses: {
|
|
627
|
+
/** @description OK */
|
|
628
|
+
200: {
|
|
629
|
+
headers: {
|
|
630
|
+
[name: string]: unknown;
|
|
631
|
+
};
|
|
632
|
+
content: {
|
|
633
|
+
"application/json": components["schemas"]["ProjectAccessResource"];
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
/** @description Error */
|
|
637
|
+
default: {
|
|
638
|
+
headers: {
|
|
639
|
+
[name: string]: unknown;
|
|
640
|
+
};
|
|
641
|
+
content: {
|
|
642
|
+
"application/json": components["schemas"]["Error"];
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
};
|
|
647
|
+
"get-project-membership": {
|
|
648
|
+
parameters: {
|
|
649
|
+
query?: never;
|
|
650
|
+
header?: never;
|
|
651
|
+
path?: never;
|
|
652
|
+
cookie?: never;
|
|
653
|
+
};
|
|
654
|
+
requestBody?: never;
|
|
655
|
+
responses: {
|
|
656
|
+
/** @description OK */
|
|
657
|
+
200: {
|
|
658
|
+
headers: {
|
|
659
|
+
[name: string]: unknown;
|
|
660
|
+
};
|
|
661
|
+
content: {
|
|
662
|
+
"application/json": components["schemas"]["MembershipResource"];
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
/** @description Error */
|
|
666
|
+
default: {
|
|
667
|
+
headers: {
|
|
668
|
+
[name: string]: unknown;
|
|
669
|
+
};
|
|
670
|
+
content: {
|
|
671
|
+
"application/json": components["schemas"]["Error"];
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
"list-project-invitations": {
|
|
677
|
+
parameters: {
|
|
678
|
+
query?: {
|
|
679
|
+
/** @description 这一页最多返回多少条 */
|
|
680
|
+
limit?: number;
|
|
681
|
+
/** @description 跳过多少条。要翻得更深请改用游标翻页的接口 */
|
|
682
|
+
offset?: number;
|
|
683
|
+
};
|
|
684
|
+
header?: never;
|
|
685
|
+
path?: never;
|
|
686
|
+
cookie?: never;
|
|
687
|
+
};
|
|
688
|
+
requestBody?: never;
|
|
689
|
+
responses: {
|
|
690
|
+
/** @description OK */
|
|
691
|
+
200: {
|
|
692
|
+
headers: {
|
|
693
|
+
[name: string]: unknown;
|
|
694
|
+
};
|
|
695
|
+
content: {
|
|
696
|
+
"application/json": components["schemas"]["LengthAwarePageInvitationResource"];
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
/** @description Error */
|
|
700
|
+
default: {
|
|
701
|
+
headers: {
|
|
702
|
+
[name: string]: unknown;
|
|
703
|
+
};
|
|
704
|
+
content: {
|
|
705
|
+
"application/json": components["schemas"]["Error"];
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
"issue-invitation": {
|
|
711
|
+
parameters: {
|
|
712
|
+
query?: never;
|
|
713
|
+
header?: never;
|
|
714
|
+
path?: never;
|
|
715
|
+
cookie?: never;
|
|
716
|
+
};
|
|
717
|
+
requestBody: {
|
|
718
|
+
content: {
|
|
719
|
+
"application/json": components["schemas"]["IssueInvitationRequestBody"];
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
responses: {
|
|
723
|
+
/** @description Created */
|
|
724
|
+
201: {
|
|
725
|
+
headers: {
|
|
726
|
+
[name: string]: unknown;
|
|
727
|
+
};
|
|
728
|
+
content: {
|
|
729
|
+
"application/json": components["schemas"]["IssuedInvitationResponseBody"];
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
/** @description Error */
|
|
733
|
+
default: {
|
|
734
|
+
headers: {
|
|
735
|
+
[name: string]: unknown;
|
|
736
|
+
};
|
|
737
|
+
content: {
|
|
738
|
+
"application/json": components["schemas"]["Error"];
|
|
739
|
+
};
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
"revoke-invitation": {
|
|
744
|
+
parameters: {
|
|
745
|
+
query?: never;
|
|
746
|
+
header?: never;
|
|
747
|
+
path: {
|
|
748
|
+
invitationId: string;
|
|
749
|
+
};
|
|
750
|
+
cookie?: never;
|
|
751
|
+
};
|
|
752
|
+
requestBody?: never;
|
|
753
|
+
responses: {
|
|
754
|
+
/** @description No Content */
|
|
755
|
+
204: {
|
|
756
|
+
headers: {
|
|
757
|
+
[name: string]: unknown;
|
|
758
|
+
};
|
|
759
|
+
content?: never;
|
|
760
|
+
};
|
|
761
|
+
/** @description Error */
|
|
762
|
+
default: {
|
|
763
|
+
headers: {
|
|
764
|
+
[name: string]: unknown;
|
|
765
|
+
};
|
|
766
|
+
content: {
|
|
767
|
+
"application/json": components["schemas"]["Error"];
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
};
|
|
772
|
+
"list-members": {
|
|
773
|
+
parameters: {
|
|
774
|
+
query?: {
|
|
775
|
+
/** @description 这一页最多返回多少条 */
|
|
776
|
+
limit?: number;
|
|
777
|
+
/** @description 跳过多少条。要翻得更深请改用游标翻页的接口 */
|
|
778
|
+
offset?: number;
|
|
779
|
+
/** @description 按用户 ID、邮箱或姓名模糊匹配 */
|
|
780
|
+
keyword?: string;
|
|
781
|
+
};
|
|
782
|
+
header?: never;
|
|
783
|
+
path?: never;
|
|
784
|
+
cookie?: never;
|
|
785
|
+
};
|
|
786
|
+
requestBody?: never;
|
|
787
|
+
responses: {
|
|
788
|
+
/** @description OK */
|
|
789
|
+
200: {
|
|
790
|
+
headers: {
|
|
791
|
+
[name: string]: unknown;
|
|
792
|
+
};
|
|
793
|
+
content: {
|
|
794
|
+
"application/json": components["schemas"]["LengthAwarePageMemberResource"];
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
/** @description Error */
|
|
798
|
+
default: {
|
|
799
|
+
headers: {
|
|
800
|
+
[name: string]: unknown;
|
|
801
|
+
};
|
|
802
|
+
content: {
|
|
803
|
+
"application/json": components["schemas"]["Error"];
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
"remove-member": {
|
|
809
|
+
parameters: {
|
|
810
|
+
query?: never;
|
|
811
|
+
header?: never;
|
|
812
|
+
path: {
|
|
813
|
+
userId: string;
|
|
814
|
+
};
|
|
815
|
+
cookie?: never;
|
|
816
|
+
};
|
|
817
|
+
requestBody?: never;
|
|
818
|
+
responses: {
|
|
819
|
+
/** @description No Content */
|
|
820
|
+
204: {
|
|
821
|
+
headers: {
|
|
822
|
+
[name: string]: unknown;
|
|
823
|
+
};
|
|
824
|
+
content?: never;
|
|
825
|
+
};
|
|
826
|
+
/** @description Error */
|
|
827
|
+
default: {
|
|
828
|
+
headers: {
|
|
829
|
+
[name: string]: unknown;
|
|
830
|
+
};
|
|
831
|
+
content: {
|
|
832
|
+
"application/json": components["schemas"]["Error"];
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
};
|
|
837
|
+
"set-member-roles": {
|
|
838
|
+
parameters: {
|
|
839
|
+
query?: never;
|
|
840
|
+
header?: never;
|
|
841
|
+
path: {
|
|
842
|
+
userId: string;
|
|
843
|
+
};
|
|
844
|
+
cookie?: never;
|
|
845
|
+
};
|
|
846
|
+
requestBody: {
|
|
847
|
+
content: {
|
|
848
|
+
"application/json": components["schemas"]["SetMemberRolesRequestBody"];
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
responses: {
|
|
852
|
+
/** @description OK */
|
|
853
|
+
200: {
|
|
854
|
+
headers: {
|
|
855
|
+
[name: string]: unknown;
|
|
856
|
+
};
|
|
857
|
+
content: {
|
|
858
|
+
"application/json": components["schemas"]["MemberResource"];
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
/** @description Error */
|
|
862
|
+
default: {
|
|
863
|
+
headers: {
|
|
864
|
+
[name: string]: unknown;
|
|
865
|
+
};
|
|
866
|
+
content: {
|
|
867
|
+
"application/json": components["schemas"]["Error"];
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
};
|
|
871
|
+
};
|
|
872
|
+
"transfer-project-ownership": {
|
|
873
|
+
parameters: {
|
|
874
|
+
query?: never;
|
|
875
|
+
header?: never;
|
|
876
|
+
path?: never;
|
|
877
|
+
cookie?: never;
|
|
878
|
+
};
|
|
879
|
+
requestBody: {
|
|
880
|
+
content: {
|
|
881
|
+
"application/json": components["schemas"]["TransferOwnershipRequestBody"];
|
|
882
|
+
};
|
|
883
|
+
};
|
|
884
|
+
responses: {
|
|
885
|
+
/** @description OK */
|
|
886
|
+
200: {
|
|
887
|
+
headers: {
|
|
888
|
+
[name: string]: unknown;
|
|
889
|
+
};
|
|
890
|
+
content: {
|
|
891
|
+
"application/json": components["schemas"]["OwnershipTransferResponseBody"];
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
/** @description Error */
|
|
895
|
+
default: {
|
|
896
|
+
headers: {
|
|
897
|
+
[name: string]: unknown;
|
|
898
|
+
};
|
|
899
|
+
content: {
|
|
900
|
+
"application/json": components["schemas"]["Error"];
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
"list-roles": {
|
|
906
|
+
parameters: {
|
|
907
|
+
query?: never;
|
|
908
|
+
header?: never;
|
|
909
|
+
path?: never;
|
|
910
|
+
cookie?: never;
|
|
911
|
+
};
|
|
912
|
+
requestBody?: never;
|
|
913
|
+
responses: {
|
|
914
|
+
/** @description OK */
|
|
915
|
+
200: {
|
|
916
|
+
headers: {
|
|
917
|
+
[name: string]: unknown;
|
|
918
|
+
};
|
|
919
|
+
content: {
|
|
920
|
+
"application/json": components["schemas"]["RoleListResponseBody"];
|
|
921
|
+
};
|
|
922
|
+
};
|
|
923
|
+
/** @description Error */
|
|
924
|
+
default: {
|
|
925
|
+
headers: {
|
|
926
|
+
[name: string]: unknown;
|
|
927
|
+
};
|
|
928
|
+
content: {
|
|
929
|
+
"application/json": components["schemas"]["Error"];
|
|
930
|
+
};
|
|
931
|
+
};
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
"create-role": {
|
|
935
|
+
parameters: {
|
|
936
|
+
query?: never;
|
|
937
|
+
header?: never;
|
|
938
|
+
path?: never;
|
|
939
|
+
cookie?: never;
|
|
940
|
+
};
|
|
941
|
+
requestBody: {
|
|
942
|
+
content: {
|
|
943
|
+
"application/json": components["schemas"]["CreateRoleRequestBody"];
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
responses: {
|
|
947
|
+
/** @description Created */
|
|
948
|
+
201: {
|
|
949
|
+
headers: {
|
|
950
|
+
[name: string]: unknown;
|
|
951
|
+
};
|
|
952
|
+
content: {
|
|
953
|
+
"application/json": components["schemas"]["RoleResource"];
|
|
954
|
+
};
|
|
955
|
+
};
|
|
956
|
+
/** @description Error */
|
|
957
|
+
default: {
|
|
958
|
+
headers: {
|
|
959
|
+
[name: string]: unknown;
|
|
960
|
+
};
|
|
961
|
+
content: {
|
|
962
|
+
"application/json": components["schemas"]["Error"];
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
};
|
|
966
|
+
};
|
|
967
|
+
"get-role": {
|
|
968
|
+
parameters: {
|
|
969
|
+
query?: never;
|
|
970
|
+
header?: never;
|
|
971
|
+
path: {
|
|
972
|
+
code: string;
|
|
973
|
+
};
|
|
974
|
+
cookie?: never;
|
|
975
|
+
};
|
|
976
|
+
requestBody?: never;
|
|
977
|
+
responses: {
|
|
978
|
+
/** @description OK */
|
|
979
|
+
200: {
|
|
980
|
+
headers: {
|
|
981
|
+
[name: string]: unknown;
|
|
982
|
+
};
|
|
983
|
+
content: {
|
|
984
|
+
"application/json": components["schemas"]["RoleResource"];
|
|
985
|
+
};
|
|
986
|
+
};
|
|
987
|
+
/** @description Error */
|
|
988
|
+
default: {
|
|
989
|
+
headers: {
|
|
990
|
+
[name: string]: unknown;
|
|
991
|
+
};
|
|
992
|
+
content: {
|
|
993
|
+
"application/json": components["schemas"]["Error"];
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
};
|
|
997
|
+
};
|
|
998
|
+
"update-role": {
|
|
999
|
+
parameters: {
|
|
1000
|
+
query?: never;
|
|
1001
|
+
header?: never;
|
|
1002
|
+
path: {
|
|
1003
|
+
code: string;
|
|
1004
|
+
};
|
|
1005
|
+
cookie?: never;
|
|
1006
|
+
};
|
|
1007
|
+
requestBody: {
|
|
1008
|
+
content: {
|
|
1009
|
+
"application/json": components["schemas"]["UpdateRoleRequestBody"];
|
|
1010
|
+
};
|
|
1011
|
+
};
|
|
1012
|
+
responses: {
|
|
1013
|
+
/** @description OK */
|
|
1014
|
+
200: {
|
|
1015
|
+
headers: {
|
|
1016
|
+
[name: string]: unknown;
|
|
1017
|
+
};
|
|
1018
|
+
content: {
|
|
1019
|
+
"application/json": components["schemas"]["RoleResource"];
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
/** @description Error */
|
|
1023
|
+
default: {
|
|
1024
|
+
headers: {
|
|
1025
|
+
[name: string]: unknown;
|
|
1026
|
+
};
|
|
1027
|
+
content: {
|
|
1028
|
+
"application/json": components["schemas"]["Error"];
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
"delete-role": {
|
|
1034
|
+
parameters: {
|
|
1035
|
+
query?: never;
|
|
1036
|
+
header?: never;
|
|
1037
|
+
path: {
|
|
1038
|
+
code: string;
|
|
1039
|
+
};
|
|
1040
|
+
cookie?: never;
|
|
1041
|
+
};
|
|
1042
|
+
requestBody?: never;
|
|
1043
|
+
responses: {
|
|
1044
|
+
/** @description No Content */
|
|
1045
|
+
204: {
|
|
1046
|
+
headers: {
|
|
1047
|
+
[name: string]: unknown;
|
|
1048
|
+
};
|
|
1049
|
+
content?: never;
|
|
1050
|
+
};
|
|
1051
|
+
/** @description Error */
|
|
1052
|
+
default: {
|
|
1053
|
+
headers: {
|
|
1054
|
+
[name: string]: unknown;
|
|
1055
|
+
};
|
|
1056
|
+
content: {
|
|
1057
|
+
"application/json": components["schemas"]["Error"];
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
1060
|
+
};
|
|
1061
|
+
};
|
|
1062
|
+
"list-ssh-keys": {
|
|
1063
|
+
parameters: {
|
|
1064
|
+
query?: {
|
|
1065
|
+
/** @description 这一页最多返回多少条 */
|
|
1066
|
+
limit?: number;
|
|
1067
|
+
/** @description 跳过多少条。要翻得更深请改用游标翻页的接口 */
|
|
1068
|
+
offset?: number;
|
|
1069
|
+
/** @description 不传时两种都返回 */
|
|
1070
|
+
status?: "ACTIVE" | "REVOKED";
|
|
1071
|
+
/** @description 只列挂着这个用途的钥匙。平台自己生成的那把是 platform */
|
|
1072
|
+
purpose?: string;
|
|
1073
|
+
};
|
|
1074
|
+
header?: never;
|
|
1075
|
+
path?: never;
|
|
1076
|
+
cookie?: never;
|
|
1077
|
+
};
|
|
1078
|
+
requestBody?: never;
|
|
1079
|
+
responses: {
|
|
1080
|
+
/** @description OK */
|
|
1081
|
+
200: {
|
|
1082
|
+
headers: {
|
|
1083
|
+
[name: string]: unknown;
|
|
1084
|
+
};
|
|
1085
|
+
content: {
|
|
1086
|
+
"application/json": components["schemas"]["LengthAwarePageSSHKeyResource"];
|
|
1087
|
+
};
|
|
1088
|
+
};
|
|
1089
|
+
/** @description Error */
|
|
1090
|
+
default: {
|
|
1091
|
+
headers: {
|
|
1092
|
+
[name: string]: unknown;
|
|
1093
|
+
};
|
|
1094
|
+
content: {
|
|
1095
|
+
"application/json": components["schemas"]["Error"];
|
|
1096
|
+
};
|
|
1097
|
+
};
|
|
1098
|
+
};
|
|
1099
|
+
};
|
|
1100
|
+
"create-ssh-key": {
|
|
1101
|
+
parameters: {
|
|
1102
|
+
query?: never;
|
|
1103
|
+
header?: never;
|
|
1104
|
+
path?: never;
|
|
1105
|
+
cookie?: never;
|
|
1106
|
+
};
|
|
1107
|
+
requestBody: {
|
|
1108
|
+
content: {
|
|
1109
|
+
"application/json": components["schemas"]["CreateSSHKeyRequestBody"];
|
|
1110
|
+
};
|
|
1111
|
+
};
|
|
1112
|
+
responses: {
|
|
1113
|
+
/** @description Created */
|
|
1114
|
+
201: {
|
|
1115
|
+
headers: {
|
|
1116
|
+
[name: string]: unknown;
|
|
1117
|
+
};
|
|
1118
|
+
content: {
|
|
1119
|
+
"application/json": components["schemas"]["SSHKeyResource"];
|
|
1120
|
+
};
|
|
1121
|
+
};
|
|
1122
|
+
/** @description Error */
|
|
1123
|
+
default: {
|
|
1124
|
+
headers: {
|
|
1125
|
+
[name: string]: unknown;
|
|
1126
|
+
};
|
|
1127
|
+
content: {
|
|
1128
|
+
"application/json": components["schemas"]["Error"];
|
|
1129
|
+
};
|
|
1130
|
+
};
|
|
1131
|
+
};
|
|
1132
|
+
};
|
|
1133
|
+
"get-ssh-key": {
|
|
1134
|
+
parameters: {
|
|
1135
|
+
query?: never;
|
|
1136
|
+
header?: never;
|
|
1137
|
+
path: {
|
|
1138
|
+
keyId: string;
|
|
1139
|
+
};
|
|
1140
|
+
cookie?: never;
|
|
1141
|
+
};
|
|
1142
|
+
requestBody?: never;
|
|
1143
|
+
responses: {
|
|
1144
|
+
/** @description OK */
|
|
1145
|
+
200: {
|
|
1146
|
+
headers: {
|
|
1147
|
+
[name: string]: unknown;
|
|
1148
|
+
};
|
|
1149
|
+
content: {
|
|
1150
|
+
"application/json": components["schemas"]["SSHKeyResource"];
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
/** @description Error */
|
|
1154
|
+
default: {
|
|
1155
|
+
headers: {
|
|
1156
|
+
[name: string]: unknown;
|
|
1157
|
+
};
|
|
1158
|
+
content: {
|
|
1159
|
+
"application/json": components["schemas"]["Error"];
|
|
1160
|
+
};
|
|
1161
|
+
};
|
|
1162
|
+
};
|
|
1163
|
+
};
|
|
1164
|
+
"revoke-ssh-key": {
|
|
1165
|
+
parameters: {
|
|
1166
|
+
query?: never;
|
|
1167
|
+
header?: never;
|
|
1168
|
+
path: {
|
|
1169
|
+
keyId: string;
|
|
1170
|
+
};
|
|
1171
|
+
cookie?: never;
|
|
1172
|
+
};
|
|
1173
|
+
requestBody?: never;
|
|
1174
|
+
responses: {
|
|
1175
|
+
/** @description OK */
|
|
1176
|
+
200: {
|
|
1177
|
+
headers: {
|
|
1178
|
+
[name: string]: unknown;
|
|
1179
|
+
};
|
|
1180
|
+
content: {
|
|
1181
|
+
"application/json": components["schemas"]["SSHKeyResource"];
|
|
1182
|
+
};
|
|
1183
|
+
};
|
|
1184
|
+
/** @description Error */
|
|
1185
|
+
default: {
|
|
1186
|
+
headers: {
|
|
1187
|
+
[name: string]: unknown;
|
|
1188
|
+
};
|
|
1189
|
+
content: {
|
|
1190
|
+
"application/json": components["schemas"]["Error"];
|
|
1191
|
+
};
|
|
1192
|
+
};
|
|
1193
|
+
};
|
|
1194
|
+
};
|
|
1195
|
+
"rename-ssh-key": {
|
|
1196
|
+
parameters: {
|
|
1197
|
+
query?: never;
|
|
1198
|
+
header?: never;
|
|
1199
|
+
path: {
|
|
1200
|
+
keyId: string;
|
|
1201
|
+
};
|
|
1202
|
+
cookie?: never;
|
|
1203
|
+
};
|
|
1204
|
+
requestBody: {
|
|
1205
|
+
content: {
|
|
1206
|
+
"application/json": components["schemas"]["RenameSSHKeyRequestBody"];
|
|
1207
|
+
};
|
|
1208
|
+
};
|
|
1209
|
+
responses: {
|
|
1210
|
+
/** @description OK */
|
|
1211
|
+
200: {
|
|
1212
|
+
headers: {
|
|
1213
|
+
[name: string]: unknown;
|
|
1214
|
+
};
|
|
1215
|
+
content: {
|
|
1216
|
+
"application/json": components["schemas"]["SSHKeyResource"];
|
|
1217
|
+
};
|
|
1218
|
+
};
|
|
1219
|
+
/** @description Error */
|
|
1220
|
+
default: {
|
|
1221
|
+
headers: {
|
|
1222
|
+
[name: string]: unknown;
|
|
1223
|
+
};
|
|
1224
|
+
content: {
|
|
1225
|
+
"application/json": components["schemas"]["Error"];
|
|
1226
|
+
};
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1229
|
+
};
|
|
1230
|
+
}
|