@leaflow/sdk 0.10.0 → 0.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.
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export type { paths, components, operations, webhooks } from "./schema.js";
|
|
2
2
|
import type { operations } from "./schema.js";
|
|
3
|
+
/** `GET /account/v1/settings` 成功时的响应体。 */
|
|
4
|
+
export type GetSettingsResult = operations["get-settings"]["responses"][200]["content"]["application/json"];
|
|
3
5
|
/** `GET /account/v1/agreements` 成功时的响应体。 */
|
|
4
6
|
export type ListAgreementsResult = operations["list-agreements"]["responses"][200]["content"]["application/json"];
|
|
5
7
|
/** `GET /account/v1/me/consents` 成功时的响应体。 */
|
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
* Do not make direct changes to the file.
|
|
4
4
|
*/
|
|
5
5
|
export interface paths {
|
|
6
|
+
"/account/v1/settings": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* 这个平台现在收不收人
|
|
15
|
+
* @description 注册页和「新建项目」按钮用它决定画什么。不需要令牌。
|
|
16
|
+
*
|
|
17
|
+
* `registration_mode` 不是 `OPEN` 时 `POST /account/v1/register` 会答 403:`CLOSED` 是整个关着,`INVITE_ONLY` 是只收手上有项目邀请的邮箱。`project_creation_mode` 同理,`VERIFIED_ONLY` 要先过实名。
|
|
18
|
+
*
|
|
19
|
+
* 两条配额是 0 表示不限。它们只用来提前提示,真正的判定在写入那一刻。
|
|
20
|
+
*/
|
|
21
|
+
get: operations["get-settings"];
|
|
22
|
+
put?: never;
|
|
23
|
+
post?: never;
|
|
24
|
+
delete?: never;
|
|
25
|
+
options?: never;
|
|
26
|
+
head?: never;
|
|
27
|
+
patch?: never;
|
|
28
|
+
trace?: never;
|
|
29
|
+
};
|
|
6
30
|
"/account/v1/agreements": {
|
|
7
31
|
parameters: {
|
|
8
32
|
query?: never;
|
|
@@ -242,6 +266,28 @@ export interface components {
|
|
|
242
266
|
/** Format: int64 */
|
|
243
267
|
status: number;
|
|
244
268
|
};
|
|
269
|
+
SettingsResource: {
|
|
270
|
+
/**
|
|
271
|
+
* Format: int64
|
|
272
|
+
* @description 一个项目最多几个成员,0 表示不限
|
|
273
|
+
*/
|
|
274
|
+
max_members_per_project: number;
|
|
275
|
+
/**
|
|
276
|
+
* Format: int64
|
|
277
|
+
* @description 你最多能当几个项目的所有者,0 表示不限。已删除的项目不算在内
|
|
278
|
+
*/
|
|
279
|
+
max_projects_per_user: number;
|
|
280
|
+
/**
|
|
281
|
+
* @description VERIFIED_ONLY 要求先过实名,审核中不算
|
|
282
|
+
* @enum {string}
|
|
283
|
+
*/
|
|
284
|
+
project_creation_mode: "OPEN" | "VERIFIED_ONLY" | "CLOSED";
|
|
285
|
+
/**
|
|
286
|
+
* @description INVITE_ONLY 是只收手上有项目邀请的邮箱
|
|
287
|
+
* @enum {string}
|
|
288
|
+
*/
|
|
289
|
+
registration_mode: "OPEN" | "INVITE_ONLY" | "CLOSED";
|
|
290
|
+
};
|
|
245
291
|
AgreementResource: {
|
|
246
292
|
/**
|
|
247
293
|
* Format: date-time
|
|
@@ -448,6 +494,35 @@ export interface components {
|
|
|
448
494
|
}
|
|
449
495
|
export type $defs = Record<string, never>;
|
|
450
496
|
export interface operations {
|
|
497
|
+
"get-settings": {
|
|
498
|
+
parameters: {
|
|
499
|
+
query?: never;
|
|
500
|
+
header?: never;
|
|
501
|
+
path?: never;
|
|
502
|
+
cookie?: never;
|
|
503
|
+
};
|
|
504
|
+
requestBody?: never;
|
|
505
|
+
responses: {
|
|
506
|
+
/** @description OK */
|
|
507
|
+
200: {
|
|
508
|
+
headers: {
|
|
509
|
+
[name: string]: unknown;
|
|
510
|
+
};
|
|
511
|
+
content: {
|
|
512
|
+
"application/json": components["schemas"]["SettingsResource"];
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
/** @description Error */
|
|
516
|
+
default: {
|
|
517
|
+
headers: {
|
|
518
|
+
[name: string]: unknown;
|
|
519
|
+
};
|
|
520
|
+
content: {
|
|
521
|
+
"application/json": components["schemas"]["Error"];
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
};
|
|
451
526
|
"list-agreements": {
|
|
452
527
|
parameters: {
|
|
453
528
|
query?: never;
|