@crowi/api-contract 2.0.0-alpha.13 → 2.0.0-alpha.15
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/generated/openapi.d.mts +233 -24
- package/dist/generated/openapi.d.ts +233 -24
- package/dist/generated/openapi.js.map +1 -1
- package/dist/index.d.mts +910 -260
- package/dist/index.d.ts +910 -260
- package/dist/index.js +162 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +149 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7563,7 +7563,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
|
|
|
7563
7563
|
form: {
|
|
7564
7564
|
file?: any;
|
|
7565
7565
|
pageId?: string | undefined;
|
|
7566
|
-
intent?: string | undefined;
|
|
7567
7566
|
};
|
|
7568
7567
|
};
|
|
7569
7568
|
output: {
|
|
@@ -7579,7 +7578,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
|
|
|
7579
7578
|
form: {
|
|
7580
7579
|
file?: any;
|
|
7581
7580
|
pageId?: string | undefined;
|
|
7582
|
-
intent?: string | undefined;
|
|
7583
7581
|
};
|
|
7584
7582
|
};
|
|
7585
7583
|
output: {
|
|
@@ -7596,7 +7594,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
|
|
|
7596
7594
|
form: {
|
|
7597
7595
|
file?: any;
|
|
7598
7596
|
pageId?: string | undefined;
|
|
7599
|
-
intent?: string | undefined;
|
|
7600
7597
|
};
|
|
7601
7598
|
};
|
|
7602
7599
|
output: {
|
|
@@ -7612,7 +7609,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
|
|
|
7612
7609
|
form: {
|
|
7613
7610
|
file?: any;
|
|
7614
7611
|
pageId?: string | undefined;
|
|
7615
|
-
intent?: string | undefined;
|
|
7616
7612
|
};
|
|
7617
7613
|
};
|
|
7618
7614
|
output: {
|
|
@@ -7629,7 +7625,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
|
|
|
7629
7625
|
form: {
|
|
7630
7626
|
file?: any;
|
|
7631
7627
|
pageId?: string | undefined;
|
|
7632
|
-
intent?: string | undefined;
|
|
7633
7628
|
};
|
|
7634
7629
|
};
|
|
7635
7630
|
output: {
|
|
@@ -7646,7 +7641,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
|
|
|
7646
7641
|
form: {
|
|
7647
7642
|
file?: any;
|
|
7648
7643
|
pageId?: string | undefined;
|
|
7649
|
-
intent?: string | undefined;
|
|
7650
7644
|
};
|
|
7651
7645
|
};
|
|
7652
7646
|
output: {
|
|
@@ -7663,7 +7657,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
|
|
|
7663
7657
|
form: {
|
|
7664
7658
|
file?: any;
|
|
7665
7659
|
pageId?: string | undefined;
|
|
7666
|
-
intent?: string | undefined;
|
|
7667
7660
|
};
|
|
7668
7661
|
};
|
|
7669
7662
|
output: {
|
|
@@ -7680,7 +7673,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
|
|
|
7680
7673
|
form: {
|
|
7681
7674
|
file?: any;
|
|
7682
7675
|
pageId?: string | undefined;
|
|
7683
|
-
intent?: string | undefined;
|
|
7684
7676
|
};
|
|
7685
7677
|
};
|
|
7686
7678
|
output: {
|
|
@@ -7873,6 +7865,38 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
|
|
|
7873
7865
|
status: 403;
|
|
7874
7866
|
};
|
|
7875
7867
|
};
|
|
7868
|
+
} & {
|
|
7869
|
+
"/attachments/upload-policy": {
|
|
7870
|
+
$get: {
|
|
7871
|
+
input: {};
|
|
7872
|
+
output: {
|
|
7873
|
+
error: {
|
|
7874
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
7875
|
+
message: "Authentication is required";
|
|
7876
|
+
redirectTo?: string | undefined;
|
|
7877
|
+
};
|
|
7878
|
+
};
|
|
7879
|
+
outputFormat: "json";
|
|
7880
|
+
status: 401;
|
|
7881
|
+
} | {
|
|
7882
|
+
input: {};
|
|
7883
|
+
output: {
|
|
7884
|
+
allowedMimeTypes: string[];
|
|
7885
|
+
extensionHints: {
|
|
7886
|
+
[x: string]: string;
|
|
7887
|
+
};
|
|
7888
|
+
maxBytes: {
|
|
7889
|
+
attachment: number;
|
|
7890
|
+
};
|
|
7891
|
+
profilePicture: {
|
|
7892
|
+
allowedMimeTypes: string[];
|
|
7893
|
+
maxBytes: number;
|
|
7894
|
+
};
|
|
7895
|
+
};
|
|
7896
|
+
outputFormat: "json";
|
|
7897
|
+
status: 200;
|
|
7898
|
+
};
|
|
7899
|
+
};
|
|
7876
7900
|
} & {
|
|
7877
7901
|
"/search": {
|
|
7878
7902
|
$get: {
|
|
@@ -9176,6 +9200,7 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
|
|
|
9176
9200
|
name: string;
|
|
9177
9201
|
email: string;
|
|
9178
9202
|
createdAt: string;
|
|
9203
|
+
linkedProviders: string[];
|
|
9179
9204
|
id?: string | undefined;
|
|
9180
9205
|
image?: string | null | undefined;
|
|
9181
9206
|
introduction?: string | undefined;
|
|
@@ -9414,7 +9439,6 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
|
|
|
9414
9439
|
} & {
|
|
9415
9440
|
json: {
|
|
9416
9441
|
name: string;
|
|
9417
|
-
email: string;
|
|
9418
9442
|
};
|
|
9419
9443
|
};
|
|
9420
9444
|
output: {
|
|
@@ -9433,7 +9457,6 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
|
|
|
9433
9457
|
} & {
|
|
9434
9458
|
json: {
|
|
9435
9459
|
name: string;
|
|
9436
|
-
email: string;
|
|
9437
9460
|
};
|
|
9438
9461
|
};
|
|
9439
9462
|
output: {
|
|
@@ -9453,7 +9476,6 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
|
|
|
9453
9476
|
} & {
|
|
9454
9477
|
json: {
|
|
9455
9478
|
name: string;
|
|
9456
|
-
email: string;
|
|
9457
9479
|
};
|
|
9458
9480
|
};
|
|
9459
9481
|
output: {
|
|
@@ -9472,7 +9494,6 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
|
|
|
9472
9494
|
} & {
|
|
9473
9495
|
json: {
|
|
9474
9496
|
name: string;
|
|
9475
|
-
email: string;
|
|
9476
9497
|
};
|
|
9477
9498
|
};
|
|
9478
9499
|
output: {
|
|
@@ -9497,7 +9518,6 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
|
|
|
9497
9518
|
} & {
|
|
9498
9519
|
json: {
|
|
9499
9520
|
name: string;
|
|
9500
|
-
email: string;
|
|
9501
9521
|
};
|
|
9502
9522
|
};
|
|
9503
9523
|
output: {
|
|
@@ -9517,7 +9537,6 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
|
|
|
9517
9537
|
} & {
|
|
9518
9538
|
json: {
|
|
9519
9539
|
name: string;
|
|
9520
|
-
email: string;
|
|
9521
9540
|
};
|
|
9522
9541
|
};
|
|
9523
9542
|
output: {
|
|
@@ -9536,25 +9555,6 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
|
|
|
9536
9555
|
};
|
|
9537
9556
|
outputFormat: "json";
|
|
9538
9557
|
status: 200;
|
|
9539
|
-
} | {
|
|
9540
|
-
input: {
|
|
9541
|
-
param: {
|
|
9542
|
-
id: string;
|
|
9543
|
-
};
|
|
9544
|
-
} & {
|
|
9545
|
-
json: {
|
|
9546
|
-
name: string;
|
|
9547
|
-
email: string;
|
|
9548
|
-
};
|
|
9549
|
-
};
|
|
9550
|
-
output: {
|
|
9551
|
-
error: {
|
|
9552
|
-
code: "CONFLICT";
|
|
9553
|
-
message: string;
|
|
9554
|
-
};
|
|
9555
|
-
};
|
|
9556
|
-
outputFormat: "json";
|
|
9557
|
-
status: 409;
|
|
9558
9558
|
};
|
|
9559
9559
|
};
|
|
9560
9560
|
} & {
|
|
@@ -10337,6 +10337,138 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
|
|
|
10337
10337
|
code: "CONFLICT";
|
|
10338
10338
|
message: string;
|
|
10339
10339
|
};
|
|
10340
|
+
} | {
|
|
10341
|
+
error: {
|
|
10342
|
+
code: "EMAIL_LOCKED_BY_FEDERATED_IDENTITY";
|
|
10343
|
+
message: string;
|
|
10344
|
+
};
|
|
10345
|
+
};
|
|
10346
|
+
outputFormat: "json";
|
|
10347
|
+
status: 409;
|
|
10348
|
+
};
|
|
10349
|
+
};
|
|
10350
|
+
} & {
|
|
10351
|
+
"/admin/users/:id/identities/:provider": {
|
|
10352
|
+
$delete: {
|
|
10353
|
+
input: {
|
|
10354
|
+
param: {
|
|
10355
|
+
id: string;
|
|
10356
|
+
provider: string;
|
|
10357
|
+
};
|
|
10358
|
+
};
|
|
10359
|
+
output: {
|
|
10360
|
+
error: {
|
|
10361
|
+
code: "INTERNAL_ERROR";
|
|
10362
|
+
message: "Internal server error";
|
|
10363
|
+
};
|
|
10364
|
+
};
|
|
10365
|
+
outputFormat: "json";
|
|
10366
|
+
status: 500;
|
|
10367
|
+
} | {
|
|
10368
|
+
input: {
|
|
10369
|
+
param: {
|
|
10370
|
+
id: string;
|
|
10371
|
+
provider: string;
|
|
10372
|
+
};
|
|
10373
|
+
};
|
|
10374
|
+
output: {
|
|
10375
|
+
error: {
|
|
10376
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
10377
|
+
message: "Authentication is required";
|
|
10378
|
+
redirectTo?: string | undefined;
|
|
10379
|
+
};
|
|
10380
|
+
};
|
|
10381
|
+
outputFormat: "json";
|
|
10382
|
+
status: 401;
|
|
10383
|
+
} | {
|
|
10384
|
+
input: {
|
|
10385
|
+
param: {
|
|
10386
|
+
id: string;
|
|
10387
|
+
provider: string;
|
|
10388
|
+
};
|
|
10389
|
+
};
|
|
10390
|
+
output: {
|
|
10391
|
+
error: {
|
|
10392
|
+
code: "VALIDATION_ERROR";
|
|
10393
|
+
message: string;
|
|
10394
|
+
details?: {
|
|
10395
|
+
fieldErrors: {
|
|
10396
|
+
[x: string]: string[];
|
|
10397
|
+
};
|
|
10398
|
+
formErrors: string[];
|
|
10399
|
+
} | undefined;
|
|
10400
|
+
};
|
|
10401
|
+
};
|
|
10402
|
+
outputFormat: "json";
|
|
10403
|
+
status: 400;
|
|
10404
|
+
} | {
|
|
10405
|
+
input: {
|
|
10406
|
+
param: {
|
|
10407
|
+
id: string;
|
|
10408
|
+
provider: string;
|
|
10409
|
+
};
|
|
10410
|
+
};
|
|
10411
|
+
output: {
|
|
10412
|
+
error: {
|
|
10413
|
+
code: "ADMIN_REQUIRED";
|
|
10414
|
+
message: "Admin permission required";
|
|
10415
|
+
redirectTo?: string | undefined;
|
|
10416
|
+
};
|
|
10417
|
+
};
|
|
10418
|
+
outputFormat: "json";
|
|
10419
|
+
status: 403;
|
|
10420
|
+
} | {
|
|
10421
|
+
input: {
|
|
10422
|
+
param: {
|
|
10423
|
+
id: string;
|
|
10424
|
+
provider: string;
|
|
10425
|
+
};
|
|
10426
|
+
};
|
|
10427
|
+
output: {
|
|
10428
|
+
user: {
|
|
10429
|
+
_id: string;
|
|
10430
|
+
username: string;
|
|
10431
|
+
name: string;
|
|
10432
|
+
email: string;
|
|
10433
|
+
createdAt: string;
|
|
10434
|
+
id?: string | undefined;
|
|
10435
|
+
image?: string | null | undefined;
|
|
10436
|
+
introduction?: string | undefined;
|
|
10437
|
+
admin?: boolean | undefined;
|
|
10438
|
+
status?: 1 | 4 | 2 | 3 | 5 | undefined;
|
|
10439
|
+
};
|
|
10440
|
+
passwordIssued: boolean;
|
|
10441
|
+
newPassword?: string | undefined;
|
|
10442
|
+
};
|
|
10443
|
+
outputFormat: "json";
|
|
10444
|
+
status: 200;
|
|
10445
|
+
} | {
|
|
10446
|
+
input: {
|
|
10447
|
+
param: {
|
|
10448
|
+
id: string;
|
|
10449
|
+
provider: string;
|
|
10450
|
+
};
|
|
10451
|
+
};
|
|
10452
|
+
output: {
|
|
10453
|
+
error: {
|
|
10454
|
+
code: "NOT_FOUND" | "NOT_LINKED";
|
|
10455
|
+
message: string;
|
|
10456
|
+
};
|
|
10457
|
+
};
|
|
10458
|
+
outputFormat: "json";
|
|
10459
|
+
status: 404;
|
|
10460
|
+
} | {
|
|
10461
|
+
input: {
|
|
10462
|
+
param: {
|
|
10463
|
+
id: string;
|
|
10464
|
+
provider: string;
|
|
10465
|
+
};
|
|
10466
|
+
};
|
|
10467
|
+
output: {
|
|
10468
|
+
error: {
|
|
10469
|
+
code: "CANNOT_UNLINK_SELF" | "PASSWORD_AUTH_DISABLED";
|
|
10470
|
+
message: string;
|
|
10471
|
+
};
|
|
10340
10472
|
};
|
|
10341
10473
|
outputFormat: "json";
|
|
10342
10474
|
status: 409;
|
|
@@ -35443,9 +35575,12 @@ declare const autocompleteRoutes: {
|
|
|
35443
35575
|
* Multipart: `addAttachment` + `uploadAttachment` are implemented
|
|
35444
35576
|
* Hono-native via `c.req.parseBody()`. multer is gone from this
|
|
35445
35577
|
* resource (legacy `/_api/me/picture/upload` still uses it, so the
|
|
35446
|
-
* package dependency is removed in Phase 6 cleanup, not here).
|
|
35447
|
-
*
|
|
35448
|
-
*
|
|
35578
|
+
* package dependency is removed in Phase 6 cleanup, not here). Both
|
|
35579
|
+
* routes reject an over-limit `Content-Length` before their body is ever
|
|
35580
|
+
* read — see `rejectOversizedContentLength` in the api handler
|
|
35581
|
+
* (`packages/api/src/hono/handlers/attachment.ts`) for why that check
|
|
35582
|
+
* has to run as middleware ahead of `.openapi()`'s generated multipart
|
|
35583
|
+
* validator rather than at the top of the handler.
|
|
35449
35584
|
*/
|
|
35450
35585
|
|
|
35451
35586
|
declare const listAttachmentsRoute: {
|
|
@@ -36117,7 +36252,6 @@ declare const uploadAttachmentRoute: {
|
|
|
36117
36252
|
schema: z.ZodObject<{
|
|
36118
36253
|
file: z.ZodOptional<z.ZodAny>;
|
|
36119
36254
|
pageId: z.ZodOptional<z.ZodString>;
|
|
36120
|
-
intent: z.ZodOptional<z.ZodString>;
|
|
36121
36255
|
}, z.core.$strip>;
|
|
36122
36256
|
};
|
|
36123
36257
|
};
|
|
@@ -36396,6 +36530,59 @@ declare const removeAttachmentRoute: {
|
|
|
36396
36530
|
} & {
|
|
36397
36531
|
getRoutingPath(): "/attachments/:id";
|
|
36398
36532
|
};
|
|
36533
|
+
/**
|
|
36534
|
+
* Publishes the server's upload policy (allowed MIME types, extension hints,
|
|
36535
|
+
* size limits) so a client stops guessing. `upload-policy` cannot collide
|
|
36536
|
+
* with the raw-stream `GET
|
|
36537
|
+
* /attachments/{id}` route (`attachment-stream.ts`, mounted outside this
|
|
36538
|
+
* contract file): that route constrains `:id` to a 24-char hex ObjectId, so
|
|
36539
|
+
* a literal path segment like `upload-policy` never matches it.
|
|
36540
|
+
*/
|
|
36541
|
+
declare const getUploadPolicyRoute: {
|
|
36542
|
+
method: "get";
|
|
36543
|
+
path: "/attachments/upload-policy";
|
|
36544
|
+
tags: string[];
|
|
36545
|
+
security: {
|
|
36546
|
+
bearerAuth: never[];
|
|
36547
|
+
}[];
|
|
36548
|
+
summary: string;
|
|
36549
|
+
responses: {
|
|
36550
|
+
200: {
|
|
36551
|
+
description: string;
|
|
36552
|
+
content: {
|
|
36553
|
+
'application/json': {
|
|
36554
|
+
schema: z.ZodObject<{
|
|
36555
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
36556
|
+
extensionHints: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
36557
|
+
maxBytes: z.ZodObject<{
|
|
36558
|
+
attachment: z.ZodNumber;
|
|
36559
|
+
}, z.core.$strip>;
|
|
36560
|
+
profilePicture: z.ZodObject<{
|
|
36561
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
36562
|
+
maxBytes: z.ZodNumber;
|
|
36563
|
+
}, z.core.$strip>;
|
|
36564
|
+
}, z.core.$strip>;
|
|
36565
|
+
};
|
|
36566
|
+
};
|
|
36567
|
+
};
|
|
36568
|
+
401: {
|
|
36569
|
+
description: string;
|
|
36570
|
+
content: {
|
|
36571
|
+
'application/json': {
|
|
36572
|
+
schema: z.ZodObject<{
|
|
36573
|
+
error: z.ZodObject<{
|
|
36574
|
+
code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
|
|
36575
|
+
message: z.ZodLiteral<"Authentication is required">;
|
|
36576
|
+
redirectTo: z.ZodOptional<z.ZodString>;
|
|
36577
|
+
}, z.core.$strip>;
|
|
36578
|
+
}, z.core.$strip>;
|
|
36579
|
+
};
|
|
36580
|
+
};
|
|
36581
|
+
};
|
|
36582
|
+
};
|
|
36583
|
+
} & {
|
|
36584
|
+
getRoutingPath(): "/attachments/upload-policy";
|
|
36585
|
+
};
|
|
36399
36586
|
declare const attachmentRoutes: {
|
|
36400
36587
|
getAttachmentUsageRoute: {
|
|
36401
36588
|
method: "get";
|
|
@@ -36936,7 +37123,6 @@ declare const attachmentRoutes: {
|
|
|
36936
37123
|
schema: z.ZodObject<{
|
|
36937
37124
|
file: z.ZodOptional<z.ZodAny>;
|
|
36938
37125
|
pageId: z.ZodOptional<z.ZodString>;
|
|
36939
|
-
intent: z.ZodOptional<z.ZodString>;
|
|
36940
37126
|
}, z.core.$strip>;
|
|
36941
37127
|
};
|
|
36942
37128
|
};
|
|
@@ -37345,6 +37531,51 @@ declare const attachmentRoutes: {
|
|
|
37345
37531
|
} & {
|
|
37346
37532
|
getRoutingPath(): "/attachments/:id";
|
|
37347
37533
|
};
|
|
37534
|
+
getUploadPolicyRoute: {
|
|
37535
|
+
method: "get";
|
|
37536
|
+
path: "/attachments/upload-policy";
|
|
37537
|
+
tags: string[];
|
|
37538
|
+
security: {
|
|
37539
|
+
bearerAuth: never[];
|
|
37540
|
+
}[];
|
|
37541
|
+
summary: string;
|
|
37542
|
+
responses: {
|
|
37543
|
+
200: {
|
|
37544
|
+
description: string;
|
|
37545
|
+
content: {
|
|
37546
|
+
'application/json': {
|
|
37547
|
+
schema: z.ZodObject<{
|
|
37548
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
37549
|
+
extensionHints: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
37550
|
+
maxBytes: z.ZodObject<{
|
|
37551
|
+
attachment: z.ZodNumber;
|
|
37552
|
+
}, z.core.$strip>;
|
|
37553
|
+
profilePicture: z.ZodObject<{
|
|
37554
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
37555
|
+
maxBytes: z.ZodNumber;
|
|
37556
|
+
}, z.core.$strip>;
|
|
37557
|
+
}, z.core.$strip>;
|
|
37558
|
+
};
|
|
37559
|
+
};
|
|
37560
|
+
};
|
|
37561
|
+
401: {
|
|
37562
|
+
description: string;
|
|
37563
|
+
content: {
|
|
37564
|
+
'application/json': {
|
|
37565
|
+
schema: z.ZodObject<{
|
|
37566
|
+
error: z.ZodObject<{
|
|
37567
|
+
code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
|
|
37568
|
+
message: z.ZodLiteral<"Authentication is required">;
|
|
37569
|
+
redirectTo: z.ZodOptional<z.ZodString>;
|
|
37570
|
+
}, z.core.$strip>;
|
|
37571
|
+
}, z.core.$strip>;
|
|
37572
|
+
};
|
|
37573
|
+
};
|
|
37574
|
+
};
|
|
37575
|
+
};
|
|
37576
|
+
} & {
|
|
37577
|
+
getRoutingPath(): "/attachments/upload-policy";
|
|
37578
|
+
};
|
|
37348
37579
|
};
|
|
37349
37580
|
|
|
37350
37581
|
declare const searchPagesRoute: {
|
|
@@ -41619,6 +41850,34 @@ declare const ListAdminUsersRequestSchema: z.ZodObject<{
|
|
|
41619
41850
|
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
41620
41851
|
}, z.core.$strip>;
|
|
41621
41852
|
type ListAdminUsersRequest = z.infer<typeof ListAdminUsersRequestSchema>;
|
|
41853
|
+
/**
|
|
41854
|
+
* A `UserPublic` row plus the provider slugs this user has a federated
|
|
41855
|
+
* identity for. Deliberately NOT folded into `UserPublicSchema` — that
|
|
41856
|
+
* schema is shared by every admin endpoint that returns a user (edit,
|
|
41857
|
+
* makeAdmin, resetPassword, ...), and adding `linkedProviders` there would
|
|
41858
|
+
* leak it into responses that never populate it. Only the list route
|
|
41859
|
+
* computes and attaches this field.
|
|
41860
|
+
*/
|
|
41861
|
+
declare const AdminUserListItemSchema: z.ZodObject<{
|
|
41862
|
+
_id: z.ZodString;
|
|
41863
|
+
id: z.ZodOptional<z.ZodString>;
|
|
41864
|
+
username: z.ZodString;
|
|
41865
|
+
name: z.ZodString;
|
|
41866
|
+
email: z.ZodString;
|
|
41867
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41868
|
+
introduction: z.ZodOptional<z.ZodString>;
|
|
41869
|
+
createdAt: z.ZodString;
|
|
41870
|
+
admin: z.ZodOptional<z.ZodBoolean>;
|
|
41871
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
41872
|
+
readonly REGISTERED: 1;
|
|
41873
|
+
readonly ACTIVE: 2;
|
|
41874
|
+
readonly SUSPENDED: 3;
|
|
41875
|
+
readonly DELETED: 4;
|
|
41876
|
+
readonly INVITED: 5;
|
|
41877
|
+
}>>;
|
|
41878
|
+
linkedProviders: z.ZodArray<z.ZodString>;
|
|
41879
|
+
}, z.core.$strip>;
|
|
41880
|
+
type AdminUserListItem = z.infer<typeof AdminUserListItemSchema>;
|
|
41622
41881
|
/**
|
|
41623
41882
|
* Response body for GET /admin/users.
|
|
41624
41883
|
*
|
|
@@ -41644,6 +41903,7 @@ declare const ListAdminUsersResponseSchema: z.ZodObject<{
|
|
|
41644
41903
|
readonly DELETED: 4;
|
|
41645
41904
|
readonly INVITED: 5;
|
|
41646
41905
|
}>>;
|
|
41906
|
+
linkedProviders: z.ZodArray<z.ZodString>;
|
|
41647
41907
|
}, z.core.$strip>>;
|
|
41648
41908
|
pager: z.ZodObject<{
|
|
41649
41909
|
page: z.ZodNumber;
|
|
@@ -41760,16 +42020,13 @@ declare const InviteUsersResponseSchema: z.ZodObject<{
|
|
|
41760
42020
|
}, z.core.$strip>;
|
|
41761
42021
|
type InviteUsersResponse = z.infer<typeof InviteUsersResponseSchema>;
|
|
41762
42022
|
/**
|
|
41763
|
-
* Request body for PATCH /admin/users/:id.
|
|
41764
|
-
*
|
|
41765
|
-
*
|
|
41766
|
-
*
|
|
41767
|
-
* endpoint exists for partial email-only updates that come from a different
|
|
41768
|
-
* UI affordance (the table row "change email" action).
|
|
42023
|
+
* Request body for PATCH /admin/users/:id. Writes only `name` — a federated
|
|
42024
|
+
* user's email has to be lockable against admin-side edits, and that lock
|
|
42025
|
+
* only has one place to live if there is only one email-writing route.
|
|
42026
|
+
* `PUT /admin/users/:id/email` is the sole email-change path.
|
|
41769
42027
|
*/
|
|
41770
42028
|
declare const EditAdminUserRequestSchema: z.ZodObject<{
|
|
41771
42029
|
name: z.ZodString;
|
|
41772
|
-
email: z.ZodString;
|
|
41773
42030
|
}, z.core.$strip>;
|
|
41774
42031
|
type EditAdminUserRequest = z.infer<typeof EditAdminUserRequestSchema>;
|
|
41775
42032
|
/**
|
|
@@ -41841,6 +42098,94 @@ declare const UpdateAdminUserEmailRequestSchema: z.ZodObject<{
|
|
|
41841
42098
|
email: z.ZodString;
|
|
41842
42099
|
}, z.core.$strip>;
|
|
41843
42100
|
type UpdateAdminUserEmailRequest = z.infer<typeof UpdateAdminUserEmailRequestSchema>;
|
|
42101
|
+
/**
|
|
42102
|
+
* 409 sibling to `ConflictErrorSchema` on PUT /admin/users/:id/email,
|
|
42103
|
+
* returned instead of a write when the target has a federated identity and
|
|
42104
|
+
* the request would move their email away from the IdP-verified address.
|
|
42105
|
+
* Kept as its own literal-code schema (not folded into the shared
|
|
42106
|
+
* `ConflictErrorSchema`, and not registered on the central `ErrorCodeSchema`
|
|
42107
|
+
* enum) so this one feature's error shape does not widen either shared
|
|
42108
|
+
* contract — the route declares both as a union response instead.
|
|
42109
|
+
*/
|
|
42110
|
+
declare const EmailLockedByFederatedIdentityErrorSchema: z.ZodObject<{
|
|
42111
|
+
error: z.ZodObject<{
|
|
42112
|
+
code: z.ZodLiteral<"EMAIL_LOCKED_BY_FEDERATED_IDENTITY">;
|
|
42113
|
+
message: z.ZodString;
|
|
42114
|
+
}, z.core.$strip>;
|
|
42115
|
+
}, z.core.$strip>;
|
|
42116
|
+
type EmailLockedByFederatedIdentityError = z.infer<typeof EmailLockedByFederatedIdentityErrorSchema>;
|
|
42117
|
+
/**
|
|
42118
|
+
* Path params for DELETE /admin/users/:id/identities/:provider.
|
|
42119
|
+
*/
|
|
42120
|
+
declare const AdminUserIdentityParamSchema: z.ZodObject<{
|
|
42121
|
+
id: z.ZodString;
|
|
42122
|
+
provider: z.ZodString;
|
|
42123
|
+
}, z.core.$strip>;
|
|
42124
|
+
type AdminUserIdentityParam = z.infer<typeof AdminUserIdentityParamSchema>;
|
|
42125
|
+
/**
|
|
42126
|
+
* Response body for DELETE /admin/users/:id/identities/:provider.
|
|
42127
|
+
*
|
|
42128
|
+
* `passwordIssued` tells the caller which of the two admin-unlink paths ran
|
|
42129
|
+
* (spec design decision: issue a password only when the target has none) so
|
|
42130
|
+
* the UI can show "share this new password" vs "the password was not
|
|
42131
|
+
* touched". `newPassword` is present only when `passwordIssued` is true.
|
|
42132
|
+
*/
|
|
42133
|
+
declare const UnlinkUserIdentityResponseSchema: z.ZodObject<{
|
|
42134
|
+
user: z.ZodObject<{
|
|
42135
|
+
_id: z.ZodString;
|
|
42136
|
+
id: z.ZodOptional<z.ZodString>;
|
|
42137
|
+
username: z.ZodString;
|
|
42138
|
+
name: z.ZodString;
|
|
42139
|
+
email: z.ZodString;
|
|
42140
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42141
|
+
introduction: z.ZodOptional<z.ZodString>;
|
|
42142
|
+
createdAt: z.ZodString;
|
|
42143
|
+
admin: z.ZodOptional<z.ZodBoolean>;
|
|
42144
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
42145
|
+
readonly REGISTERED: 1;
|
|
42146
|
+
readonly ACTIVE: 2;
|
|
42147
|
+
readonly SUSPENDED: 3;
|
|
42148
|
+
readonly DELETED: 4;
|
|
42149
|
+
readonly INVITED: 5;
|
|
42150
|
+
}>>;
|
|
42151
|
+
}, z.core.$strip>;
|
|
42152
|
+
passwordIssued: z.ZodBoolean;
|
|
42153
|
+
newPassword: z.ZodOptional<z.ZodString>;
|
|
42154
|
+
}, z.core.$strip>;
|
|
42155
|
+
type UnlinkUserIdentityResponse = z.infer<typeof UnlinkUserIdentityResponseSchema>;
|
|
42156
|
+
/**
|
|
42157
|
+
* 404 for DELETE /admin/users/:id/identities/:provider: either the user id
|
|
42158
|
+
* resolves to nothing (`NOT_FOUND`), or the user exists but has no identity
|
|
42159
|
+
* for the given provider (`NOT_LINKED`). Combined into one schema (mirroring
|
|
42160
|
+
* `UnlinkAuthProviderErrorSchema`'s self-service sibling) since a single
|
|
42161
|
+
* response status can declare only one content schema.
|
|
42162
|
+
*/
|
|
42163
|
+
declare const UnlinkUserIdentityNotFoundErrorSchema: z.ZodObject<{
|
|
42164
|
+
error: z.ZodObject<{
|
|
42165
|
+
code: z.ZodEnum<{
|
|
42166
|
+
NOT_FOUND: "NOT_FOUND";
|
|
42167
|
+
NOT_LINKED: "NOT_LINKED";
|
|
42168
|
+
}>;
|
|
42169
|
+
message: z.ZodString;
|
|
42170
|
+
}, z.core.$strip>;
|
|
42171
|
+
}, z.core.$strip>;
|
|
42172
|
+
type UnlinkUserIdentityNotFoundError = z.infer<typeof UnlinkUserIdentityNotFoundErrorSchema>;
|
|
42173
|
+
/**
|
|
42174
|
+
* 409 for DELETE /admin/users/:id/identities/:provider: refused because the
|
|
42175
|
+
* target is the operating admin themself (`CANNOT_UNLINK_SELF`), or because
|
|
42176
|
+
* password auth is disabled instance-wide so issuing a password would not
|
|
42177
|
+
* help (`PASSWORD_AUTH_DISABLED`).
|
|
42178
|
+
*/
|
|
42179
|
+
declare const UnlinkUserIdentityConflictErrorSchema: z.ZodObject<{
|
|
42180
|
+
error: z.ZodObject<{
|
|
42181
|
+
code: z.ZodEnum<{
|
|
42182
|
+
CANNOT_UNLINK_SELF: "CANNOT_UNLINK_SELF";
|
|
42183
|
+
PASSWORD_AUTH_DISABLED: "PASSWORD_AUTH_DISABLED";
|
|
42184
|
+
}>;
|
|
42185
|
+
message: z.ZodString;
|
|
42186
|
+
}, z.core.$strip>;
|
|
42187
|
+
}, z.core.$strip>;
|
|
42188
|
+
type UnlinkUserIdentityConflictError = z.infer<typeof UnlinkUserIdentityConflictErrorSchema>;
|
|
41844
42189
|
/**
|
|
41845
42190
|
* Response body for DELETE /admin/users/:id.
|
|
41846
42191
|
*
|
|
@@ -41924,6 +42269,7 @@ declare const listUsersRoute: {
|
|
|
41924
42269
|
readonly DELETED: 4;
|
|
41925
42270
|
readonly INVITED: 5;
|
|
41926
42271
|
}>>;
|
|
42272
|
+
linkedProviders: z.ZodArray<z.ZodString>;
|
|
41927
42273
|
}, z.core.$strip>>;
|
|
41928
42274
|
pager: z.ZodObject<{
|
|
41929
42275
|
page: z.ZodNumber;
|
|
@@ -42190,7 +42536,6 @@ declare const editUserRoute: {
|
|
|
42190
42536
|
'application/json': {
|
|
42191
42537
|
schema: z.ZodObject<{
|
|
42192
42538
|
name: z.ZodString;
|
|
42193
|
-
email: z.ZodString;
|
|
42194
42539
|
}, z.core.$strip>;
|
|
42195
42540
|
};
|
|
42196
42541
|
};
|
|
@@ -42282,19 +42627,6 @@ declare const editUserRoute: {
|
|
|
42282
42627
|
};
|
|
42283
42628
|
};
|
|
42284
42629
|
};
|
|
42285
|
-
409: {
|
|
42286
|
-
description: string;
|
|
42287
|
-
content: {
|
|
42288
|
-
'application/json': {
|
|
42289
|
-
schema: z.ZodObject<{
|
|
42290
|
-
error: z.ZodObject<{
|
|
42291
|
-
code: z.ZodLiteral<"CONFLICT">;
|
|
42292
|
-
message: z.ZodString;
|
|
42293
|
-
}, z.core.$strip>;
|
|
42294
|
-
}, z.core.$strip>;
|
|
42295
|
-
};
|
|
42296
|
-
};
|
|
42297
|
-
};
|
|
42298
42630
|
500: {
|
|
42299
42631
|
description: string;
|
|
42300
42632
|
content: {
|
|
@@ -42774,11 +43106,128 @@ declare const suspendUserRoute: {
|
|
|
42774
43106
|
};
|
|
42775
43107
|
};
|
|
42776
43108
|
} & {
|
|
42777
|
-
getRoutingPath(): "/admin/users/:id/status/suspended";
|
|
43109
|
+
getRoutingPath(): "/admin/users/:id/status/suspended";
|
|
43110
|
+
};
|
|
43111
|
+
declare const resetPasswordRoute: {
|
|
43112
|
+
method: "post";
|
|
43113
|
+
path: "/admin/users/{id}/reset-password";
|
|
43114
|
+
tags: string[];
|
|
43115
|
+
security: {
|
|
43116
|
+
bearerAuth: never[];
|
|
43117
|
+
}[];
|
|
43118
|
+
summary: string;
|
|
43119
|
+
request: {
|
|
43120
|
+
params: z.ZodObject<{
|
|
43121
|
+
id: z.ZodString;
|
|
43122
|
+
}, z.core.$strip>;
|
|
43123
|
+
};
|
|
43124
|
+
responses: {
|
|
43125
|
+
200: {
|
|
43126
|
+
description: string;
|
|
43127
|
+
content: {
|
|
43128
|
+
'application/json': {
|
|
43129
|
+
schema: z.ZodObject<{
|
|
43130
|
+
user: z.ZodObject<{
|
|
43131
|
+
_id: z.ZodString;
|
|
43132
|
+
id: z.ZodOptional<z.ZodString>;
|
|
43133
|
+
username: z.ZodString;
|
|
43134
|
+
name: z.ZodString;
|
|
43135
|
+
email: z.ZodString;
|
|
43136
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43137
|
+
introduction: z.ZodOptional<z.ZodString>;
|
|
43138
|
+
createdAt: z.ZodString;
|
|
43139
|
+
admin: z.ZodOptional<z.ZodBoolean>;
|
|
43140
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
43141
|
+
readonly REGISTERED: 1;
|
|
43142
|
+
readonly ACTIVE: 2;
|
|
43143
|
+
readonly SUSPENDED: 3;
|
|
43144
|
+
readonly DELETED: 4;
|
|
43145
|
+
readonly INVITED: 5;
|
|
43146
|
+
}>>;
|
|
43147
|
+
}, z.core.$strip>;
|
|
43148
|
+
newPassword: z.ZodString;
|
|
43149
|
+
}, z.core.$strip>;
|
|
43150
|
+
};
|
|
43151
|
+
};
|
|
43152
|
+
};
|
|
43153
|
+
400: {
|
|
43154
|
+
description: string;
|
|
43155
|
+
content: {
|
|
43156
|
+
'application/json': {
|
|
43157
|
+
schema: z.ZodObject<{
|
|
43158
|
+
error: z.ZodObject<{
|
|
43159
|
+
code: z.ZodLiteral<"VALIDATION_ERROR">;
|
|
43160
|
+
message: z.ZodString;
|
|
43161
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
43162
|
+
fieldErrors: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
43163
|
+
formErrors: z.ZodArray<z.ZodString>;
|
|
43164
|
+
}, z.core.$strip>>;
|
|
43165
|
+
}, z.core.$strip>;
|
|
43166
|
+
}, z.core.$strip>;
|
|
43167
|
+
};
|
|
43168
|
+
};
|
|
43169
|
+
};
|
|
43170
|
+
401: {
|
|
43171
|
+
description: string;
|
|
43172
|
+
content: {
|
|
43173
|
+
'application/json': {
|
|
43174
|
+
schema: z.ZodObject<{
|
|
43175
|
+
error: z.ZodObject<{
|
|
43176
|
+
code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
|
|
43177
|
+
message: z.ZodLiteral<"Authentication is required">;
|
|
43178
|
+
redirectTo: z.ZodOptional<z.ZodString>;
|
|
43179
|
+
}, z.core.$strip>;
|
|
43180
|
+
}, z.core.$strip>;
|
|
43181
|
+
};
|
|
43182
|
+
};
|
|
43183
|
+
};
|
|
43184
|
+
403: {
|
|
43185
|
+
description: string;
|
|
43186
|
+
content: {
|
|
43187
|
+
'application/json': {
|
|
43188
|
+
schema: z.ZodObject<{
|
|
43189
|
+
error: z.ZodObject<{
|
|
43190
|
+
code: z.ZodLiteral<"ADMIN_REQUIRED">;
|
|
43191
|
+
message: z.ZodLiteral<"Admin permission required">;
|
|
43192
|
+
redirectTo: z.ZodOptional<z.ZodString>;
|
|
43193
|
+
}, z.core.$strip>;
|
|
43194
|
+
}, z.core.$strip>;
|
|
43195
|
+
};
|
|
43196
|
+
};
|
|
43197
|
+
};
|
|
43198
|
+
404: {
|
|
43199
|
+
description: string;
|
|
43200
|
+
content: {
|
|
43201
|
+
'application/json': {
|
|
43202
|
+
schema: z.ZodObject<{
|
|
43203
|
+
error: z.ZodObject<{
|
|
43204
|
+
code: z.ZodLiteral<"NOT_FOUND">;
|
|
43205
|
+
message: z.ZodString;
|
|
43206
|
+
}, z.core.$strip>;
|
|
43207
|
+
}, z.core.$strip>;
|
|
43208
|
+
};
|
|
43209
|
+
};
|
|
43210
|
+
};
|
|
43211
|
+
500: {
|
|
43212
|
+
description: string;
|
|
43213
|
+
content: {
|
|
43214
|
+
'application/json': {
|
|
43215
|
+
schema: z.ZodObject<{
|
|
43216
|
+
error: z.ZodObject<{
|
|
43217
|
+
code: z.ZodLiteral<"INTERNAL_ERROR">;
|
|
43218
|
+
message: z.ZodLiteral<"Internal server error">;
|
|
43219
|
+
}, z.core.$strip>;
|
|
43220
|
+
}, z.core.$strip>;
|
|
43221
|
+
};
|
|
43222
|
+
};
|
|
43223
|
+
};
|
|
43224
|
+
};
|
|
43225
|
+
} & {
|
|
43226
|
+
getRoutingPath(): "/admin/users/:id/reset-password";
|
|
42778
43227
|
};
|
|
42779
|
-
declare const
|
|
43228
|
+
declare const resendInviteRoute: {
|
|
42780
43229
|
method: "post";
|
|
42781
|
-
path: "/admin/users/{id}/
|
|
43230
|
+
path: "/admin/users/{id}/resend-invite";
|
|
42782
43231
|
tags: string[];
|
|
42783
43232
|
security: {
|
|
42784
43233
|
bearerAuth: never[];
|
|
@@ -42813,7 +43262,6 @@ declare const resetPasswordRoute: {
|
|
|
42813
43262
|
readonly INVITED: 5;
|
|
42814
43263
|
}>>;
|
|
42815
43264
|
}, z.core.$strip>;
|
|
42816
|
-
newPassword: z.ZodString;
|
|
42817
43265
|
}, z.core.$strip>;
|
|
42818
43266
|
};
|
|
42819
43267
|
};
|
|
@@ -42876,6 +43324,19 @@ declare const resetPasswordRoute: {
|
|
|
42876
43324
|
};
|
|
42877
43325
|
};
|
|
42878
43326
|
};
|
|
43327
|
+
409: {
|
|
43328
|
+
description: string;
|
|
43329
|
+
content: {
|
|
43330
|
+
'application/json': {
|
|
43331
|
+
schema: z.ZodObject<{
|
|
43332
|
+
error: z.ZodObject<{
|
|
43333
|
+
code: z.ZodLiteral<"CONFLICT">;
|
|
43334
|
+
message: z.ZodString;
|
|
43335
|
+
}, z.core.$strip>;
|
|
43336
|
+
}, z.core.$strip>;
|
|
43337
|
+
};
|
|
43338
|
+
};
|
|
43339
|
+
};
|
|
42879
43340
|
500: {
|
|
42880
43341
|
description: string;
|
|
42881
43342
|
content: {
|
|
@@ -42891,11 +43352,11 @@ declare const resetPasswordRoute: {
|
|
|
42891
43352
|
};
|
|
42892
43353
|
};
|
|
42893
43354
|
} & {
|
|
42894
|
-
getRoutingPath(): "/admin/users/:id/
|
|
43355
|
+
getRoutingPath(): "/admin/users/:id/resend-invite";
|
|
42895
43356
|
};
|
|
42896
|
-
declare const
|
|
42897
|
-
method: "
|
|
42898
|
-
path: "/admin/users/{id}/
|
|
43357
|
+
declare const updateUserEmailRoute: {
|
|
43358
|
+
method: "put";
|
|
43359
|
+
path: "/admin/users/{id}/email";
|
|
42899
43360
|
tags: string[];
|
|
42900
43361
|
security: {
|
|
42901
43362
|
bearerAuth: never[];
|
|
@@ -42905,6 +43366,15 @@ declare const resendInviteRoute: {
|
|
|
42905
43366
|
params: z.ZodObject<{
|
|
42906
43367
|
id: z.ZodString;
|
|
42907
43368
|
}, z.core.$strip>;
|
|
43369
|
+
body: {
|
|
43370
|
+
content: {
|
|
43371
|
+
'application/json': {
|
|
43372
|
+
schema: z.ZodObject<{
|
|
43373
|
+
email: z.ZodString;
|
|
43374
|
+
}, z.core.$strip>;
|
|
43375
|
+
};
|
|
43376
|
+
};
|
|
43377
|
+
};
|
|
42908
43378
|
};
|
|
42909
43379
|
responses: {
|
|
42910
43380
|
200: {
|
|
@@ -42996,12 +43466,17 @@ declare const resendInviteRoute: {
|
|
|
42996
43466
|
description: string;
|
|
42997
43467
|
content: {
|
|
42998
43468
|
'application/json': {
|
|
42999
|
-
schema: z.ZodObject<{
|
|
43469
|
+
schema: z.ZodUnion<readonly [z.ZodObject<{
|
|
43000
43470
|
error: z.ZodObject<{
|
|
43001
43471
|
code: z.ZodLiteral<"CONFLICT">;
|
|
43002
43472
|
message: z.ZodString;
|
|
43003
43473
|
}, z.core.$strip>;
|
|
43004
|
-
}, z.core.$strip
|
|
43474
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43475
|
+
error: z.ZodObject<{
|
|
43476
|
+
code: z.ZodLiteral<"EMAIL_LOCKED_BY_FEDERATED_IDENTITY">;
|
|
43477
|
+
message: z.ZodString;
|
|
43478
|
+
}, z.core.$strip>;
|
|
43479
|
+
}, z.core.$strip>]>;
|
|
43005
43480
|
};
|
|
43006
43481
|
};
|
|
43007
43482
|
};
|
|
@@ -43020,11 +43495,11 @@ declare const resendInviteRoute: {
|
|
|
43020
43495
|
};
|
|
43021
43496
|
};
|
|
43022
43497
|
} & {
|
|
43023
|
-
getRoutingPath(): "/admin/users/:id/
|
|
43498
|
+
getRoutingPath(): "/admin/users/:id/email";
|
|
43024
43499
|
};
|
|
43025
|
-
declare const
|
|
43026
|
-
method: "
|
|
43027
|
-
path: "/admin/users/{id}/
|
|
43500
|
+
declare const unlinkUserIdentityRoute: {
|
|
43501
|
+
method: "delete";
|
|
43502
|
+
path: "/admin/users/{id}/identities/{provider}";
|
|
43028
43503
|
tags: string[];
|
|
43029
43504
|
security: {
|
|
43030
43505
|
bearerAuth: never[];
|
|
@@ -43033,16 +43508,8 @@ declare const updateUserEmailRoute: {
|
|
|
43033
43508
|
request: {
|
|
43034
43509
|
params: z.ZodObject<{
|
|
43035
43510
|
id: z.ZodString;
|
|
43511
|
+
provider: z.ZodString;
|
|
43036
43512
|
}, z.core.$strip>;
|
|
43037
|
-
body: {
|
|
43038
|
-
content: {
|
|
43039
|
-
'application/json': {
|
|
43040
|
-
schema: z.ZodObject<{
|
|
43041
|
-
email: z.ZodString;
|
|
43042
|
-
}, z.core.$strip>;
|
|
43043
|
-
};
|
|
43044
|
-
};
|
|
43045
|
-
};
|
|
43046
43513
|
};
|
|
43047
43514
|
responses: {
|
|
43048
43515
|
200: {
|
|
@@ -43068,6 +43535,8 @@ declare const updateUserEmailRoute: {
|
|
|
43068
43535
|
readonly INVITED: 5;
|
|
43069
43536
|
}>>;
|
|
43070
43537
|
}, z.core.$strip>;
|
|
43538
|
+
passwordIssued: z.ZodBoolean;
|
|
43539
|
+
newPassword: z.ZodOptional<z.ZodString>;
|
|
43071
43540
|
}, z.core.$strip>;
|
|
43072
43541
|
};
|
|
43073
43542
|
};
|
|
@@ -43123,7 +43592,10 @@ declare const updateUserEmailRoute: {
|
|
|
43123
43592
|
'application/json': {
|
|
43124
43593
|
schema: z.ZodObject<{
|
|
43125
43594
|
error: z.ZodObject<{
|
|
43126
|
-
code: z.
|
|
43595
|
+
code: z.ZodEnum<{
|
|
43596
|
+
NOT_FOUND: "NOT_FOUND";
|
|
43597
|
+
NOT_LINKED: "NOT_LINKED";
|
|
43598
|
+
}>;
|
|
43127
43599
|
message: z.ZodString;
|
|
43128
43600
|
}, z.core.$strip>;
|
|
43129
43601
|
}, z.core.$strip>;
|
|
@@ -43136,7 +43608,10 @@ declare const updateUserEmailRoute: {
|
|
|
43136
43608
|
'application/json': {
|
|
43137
43609
|
schema: z.ZodObject<{
|
|
43138
43610
|
error: z.ZodObject<{
|
|
43139
|
-
code: z.
|
|
43611
|
+
code: z.ZodEnum<{
|
|
43612
|
+
CANNOT_UNLINK_SELF: "CANNOT_UNLINK_SELF";
|
|
43613
|
+
PASSWORD_AUTH_DISABLED: "PASSWORD_AUTH_DISABLED";
|
|
43614
|
+
}>;
|
|
43140
43615
|
message: z.ZodString;
|
|
43141
43616
|
}, z.core.$strip>;
|
|
43142
43617
|
}, z.core.$strip>;
|
|
@@ -43158,7 +43633,7 @@ declare const updateUserEmailRoute: {
|
|
|
43158
43633
|
};
|
|
43159
43634
|
};
|
|
43160
43635
|
} & {
|
|
43161
|
-
getRoutingPath(): "/admin/users/:id/
|
|
43636
|
+
getRoutingPath(): "/admin/users/:id/identities/:provider";
|
|
43162
43637
|
};
|
|
43163
43638
|
declare const pendingUsersCountRoute: {
|
|
43164
43639
|
method: "get";
|
|
@@ -43376,6 +43851,7 @@ declare const adminUsersRoutes: {
|
|
|
43376
43851
|
readonly DELETED: 4;
|
|
43377
43852
|
readonly INVITED: 5;
|
|
43378
43853
|
}>>;
|
|
43854
|
+
linkedProviders: z.ZodArray<z.ZodString>;
|
|
43379
43855
|
}, z.core.$strip>>;
|
|
43380
43856
|
pager: z.ZodObject<{
|
|
43381
43857
|
page: z.ZodNumber;
|
|
@@ -43434,20 +43910,218 @@ declare const adminUsersRoutes: {
|
|
|
43434
43910
|
};
|
|
43435
43911
|
};
|
|
43436
43912
|
} & {
|
|
43437
|
-
getRoutingPath(): "/admin/users";
|
|
43913
|
+
getRoutingPath(): "/admin/users";
|
|
43914
|
+
};
|
|
43915
|
+
searchUsersByEmailRoute: {
|
|
43916
|
+
method: "get";
|
|
43917
|
+
path: "/admin/users/search";
|
|
43918
|
+
tags: string[];
|
|
43919
|
+
security: {
|
|
43920
|
+
bearerAuth: never[];
|
|
43921
|
+
}[];
|
|
43922
|
+
summary: string;
|
|
43923
|
+
request: {
|
|
43924
|
+
query: z.ZodObject<{
|
|
43925
|
+
email: z.ZodString;
|
|
43926
|
+
}, z.core.$strip>;
|
|
43927
|
+
};
|
|
43928
|
+
responses: {
|
|
43929
|
+
200: {
|
|
43930
|
+
description: string;
|
|
43931
|
+
content: {
|
|
43932
|
+
'application/json': {
|
|
43933
|
+
schema: z.ZodObject<{
|
|
43934
|
+
users: z.ZodArray<z.ZodObject<{
|
|
43935
|
+
_id: z.ZodString;
|
|
43936
|
+
id: z.ZodOptional<z.ZodString>;
|
|
43937
|
+
username: z.ZodString;
|
|
43938
|
+
name: z.ZodString;
|
|
43939
|
+
email: z.ZodString;
|
|
43940
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43941
|
+
introduction: z.ZodOptional<z.ZodString>;
|
|
43942
|
+
createdAt: z.ZodString;
|
|
43943
|
+
admin: z.ZodOptional<z.ZodBoolean>;
|
|
43944
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
43945
|
+
readonly REGISTERED: 1;
|
|
43946
|
+
readonly ACTIVE: 2;
|
|
43947
|
+
readonly SUSPENDED: 3;
|
|
43948
|
+
readonly DELETED: 4;
|
|
43949
|
+
readonly INVITED: 5;
|
|
43950
|
+
}>>;
|
|
43951
|
+
}, z.core.$strip>>;
|
|
43952
|
+
}, z.core.$strip>;
|
|
43953
|
+
};
|
|
43954
|
+
};
|
|
43955
|
+
};
|
|
43956
|
+
401: {
|
|
43957
|
+
description: string;
|
|
43958
|
+
content: {
|
|
43959
|
+
'application/json': {
|
|
43960
|
+
schema: z.ZodObject<{
|
|
43961
|
+
error: z.ZodObject<{
|
|
43962
|
+
code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
|
|
43963
|
+
message: z.ZodLiteral<"Authentication is required">;
|
|
43964
|
+
redirectTo: z.ZodOptional<z.ZodString>;
|
|
43965
|
+
}, z.core.$strip>;
|
|
43966
|
+
}, z.core.$strip>;
|
|
43967
|
+
};
|
|
43968
|
+
};
|
|
43969
|
+
};
|
|
43970
|
+
403: {
|
|
43971
|
+
description: string;
|
|
43972
|
+
content: {
|
|
43973
|
+
'application/json': {
|
|
43974
|
+
schema: z.ZodObject<{
|
|
43975
|
+
error: z.ZodObject<{
|
|
43976
|
+
code: z.ZodLiteral<"ADMIN_REQUIRED">;
|
|
43977
|
+
message: z.ZodLiteral<"Admin permission required">;
|
|
43978
|
+
redirectTo: z.ZodOptional<z.ZodString>;
|
|
43979
|
+
}, z.core.$strip>;
|
|
43980
|
+
}, z.core.$strip>;
|
|
43981
|
+
};
|
|
43982
|
+
};
|
|
43983
|
+
};
|
|
43984
|
+
500: {
|
|
43985
|
+
description: string;
|
|
43986
|
+
content: {
|
|
43987
|
+
'application/json': {
|
|
43988
|
+
schema: z.ZodObject<{
|
|
43989
|
+
error: z.ZodObject<{
|
|
43990
|
+
code: z.ZodLiteral<"INTERNAL_ERROR">;
|
|
43991
|
+
message: z.ZodLiteral<"Internal server error">;
|
|
43992
|
+
}, z.core.$strip>;
|
|
43993
|
+
}, z.core.$strip>;
|
|
43994
|
+
};
|
|
43995
|
+
};
|
|
43996
|
+
};
|
|
43997
|
+
};
|
|
43998
|
+
} & {
|
|
43999
|
+
getRoutingPath(): "/admin/users/search";
|
|
44000
|
+
};
|
|
44001
|
+
inviteUsersRoute: {
|
|
44002
|
+
method: "post";
|
|
44003
|
+
path: "/admin/users/invite";
|
|
44004
|
+
tags: string[];
|
|
44005
|
+
security: {
|
|
44006
|
+
bearerAuth: never[];
|
|
44007
|
+
}[];
|
|
44008
|
+
summary: string;
|
|
44009
|
+
request: {
|
|
44010
|
+
body: {
|
|
44011
|
+
content: {
|
|
44012
|
+
'application/json': {
|
|
44013
|
+
schema: z.ZodObject<{
|
|
44014
|
+
emailList: z.ZodArray<z.ZodString>;
|
|
44015
|
+
sendEmail: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
44016
|
+
}, z.core.$strip>;
|
|
44017
|
+
};
|
|
44018
|
+
};
|
|
44019
|
+
};
|
|
44020
|
+
};
|
|
44021
|
+
responses: {
|
|
44022
|
+
200: {
|
|
44023
|
+
description: string;
|
|
44024
|
+
content: {
|
|
44025
|
+
'application/json': {
|
|
44026
|
+
schema: z.ZodObject<{
|
|
44027
|
+
results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44028
|
+
email: z.ZodString;
|
|
44029
|
+
status: z.ZodLiteral<"created">;
|
|
44030
|
+
userId: z.ZodString;
|
|
44031
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44032
|
+
email: z.ZodString;
|
|
44033
|
+
status: z.ZodLiteral<"exists">;
|
|
44034
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44035
|
+
email: z.ZodString;
|
|
44036
|
+
status: z.ZodLiteral<"failed">;
|
|
44037
|
+
}, z.core.$strip>], "status">>;
|
|
44038
|
+
}, z.core.$strip>;
|
|
44039
|
+
};
|
|
44040
|
+
};
|
|
44041
|
+
};
|
|
44042
|
+
400: {
|
|
44043
|
+
description: string;
|
|
44044
|
+
content: {
|
|
44045
|
+
'application/json': {
|
|
44046
|
+
schema: z.ZodObject<{
|
|
44047
|
+
error: z.ZodObject<{
|
|
44048
|
+
code: z.ZodLiteral<"VALIDATION_ERROR">;
|
|
44049
|
+
message: z.ZodString;
|
|
44050
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
44051
|
+
fieldErrors: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
44052
|
+
formErrors: z.ZodArray<z.ZodString>;
|
|
44053
|
+
}, z.core.$strip>>;
|
|
44054
|
+
}, z.core.$strip>;
|
|
44055
|
+
}, z.core.$strip>;
|
|
44056
|
+
};
|
|
44057
|
+
};
|
|
44058
|
+
};
|
|
44059
|
+
401: {
|
|
44060
|
+
description: string;
|
|
44061
|
+
content: {
|
|
44062
|
+
'application/json': {
|
|
44063
|
+
schema: z.ZodObject<{
|
|
44064
|
+
error: z.ZodObject<{
|
|
44065
|
+
code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
|
|
44066
|
+
message: z.ZodLiteral<"Authentication is required">;
|
|
44067
|
+
redirectTo: z.ZodOptional<z.ZodString>;
|
|
44068
|
+
}, z.core.$strip>;
|
|
44069
|
+
}, z.core.$strip>;
|
|
44070
|
+
};
|
|
44071
|
+
};
|
|
44072
|
+
};
|
|
44073
|
+
403: {
|
|
44074
|
+
description: string;
|
|
44075
|
+
content: {
|
|
44076
|
+
'application/json': {
|
|
44077
|
+
schema: z.ZodObject<{
|
|
44078
|
+
error: z.ZodObject<{
|
|
44079
|
+
code: z.ZodLiteral<"ADMIN_REQUIRED">;
|
|
44080
|
+
message: z.ZodLiteral<"Admin permission required">;
|
|
44081
|
+
redirectTo: z.ZodOptional<z.ZodString>;
|
|
44082
|
+
}, z.core.$strip>;
|
|
44083
|
+
}, z.core.$strip>;
|
|
44084
|
+
};
|
|
44085
|
+
};
|
|
44086
|
+
};
|
|
44087
|
+
500: {
|
|
44088
|
+
description: string;
|
|
44089
|
+
content: {
|
|
44090
|
+
'application/json': {
|
|
44091
|
+
schema: z.ZodObject<{
|
|
44092
|
+
error: z.ZodObject<{
|
|
44093
|
+
code: z.ZodLiteral<"INTERNAL_ERROR">;
|
|
44094
|
+
message: z.ZodLiteral<"Internal server error">;
|
|
44095
|
+
}, z.core.$strip>;
|
|
44096
|
+
}, z.core.$strip>;
|
|
44097
|
+
};
|
|
44098
|
+
};
|
|
44099
|
+
};
|
|
44100
|
+
};
|
|
44101
|
+
} & {
|
|
44102
|
+
getRoutingPath(): "/admin/users/invite";
|
|
43438
44103
|
};
|
|
43439
|
-
|
|
43440
|
-
method: "
|
|
43441
|
-
path: "/admin/users/
|
|
44104
|
+
editUserRoute: {
|
|
44105
|
+
method: "patch";
|
|
44106
|
+
path: "/admin/users/{id}";
|
|
43442
44107
|
tags: string[];
|
|
43443
44108
|
security: {
|
|
43444
44109
|
bearerAuth: never[];
|
|
43445
44110
|
}[];
|
|
43446
44111
|
summary: string;
|
|
43447
44112
|
request: {
|
|
43448
|
-
|
|
43449
|
-
|
|
44113
|
+
params: z.ZodObject<{
|
|
44114
|
+
id: z.ZodString;
|
|
43450
44115
|
}, z.core.$strip>;
|
|
44116
|
+
body: {
|
|
44117
|
+
content: {
|
|
44118
|
+
'application/json': {
|
|
44119
|
+
schema: z.ZodObject<{
|
|
44120
|
+
name: z.ZodString;
|
|
44121
|
+
}, z.core.$strip>;
|
|
44122
|
+
};
|
|
44123
|
+
};
|
|
44124
|
+
};
|
|
43451
44125
|
};
|
|
43452
44126
|
responses: {
|
|
43453
44127
|
200: {
|
|
@@ -43455,7 +44129,7 @@ declare const adminUsersRoutes: {
|
|
|
43455
44129
|
content: {
|
|
43456
44130
|
'application/json': {
|
|
43457
44131
|
schema: z.ZodObject<{
|
|
43458
|
-
|
|
44132
|
+
user: z.ZodObject<{
|
|
43459
44133
|
_id: z.ZodString;
|
|
43460
44134
|
id: z.ZodOptional<z.ZodString>;
|
|
43461
44135
|
username: z.ZodString;
|
|
@@ -43472,97 +44146,11 @@ declare const adminUsersRoutes: {
|
|
|
43472
44146
|
readonly DELETED: 4;
|
|
43473
44147
|
readonly INVITED: 5;
|
|
43474
44148
|
}>>;
|
|
43475
|
-
}, z.core.$strip>>;
|
|
43476
|
-
}, z.core.$strip>;
|
|
43477
|
-
};
|
|
43478
|
-
};
|
|
43479
|
-
};
|
|
43480
|
-
401: {
|
|
43481
|
-
description: string;
|
|
43482
|
-
content: {
|
|
43483
|
-
'application/json': {
|
|
43484
|
-
schema: z.ZodObject<{
|
|
43485
|
-
error: z.ZodObject<{
|
|
43486
|
-
code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
|
|
43487
|
-
message: z.ZodLiteral<"Authentication is required">;
|
|
43488
|
-
redirectTo: z.ZodOptional<z.ZodString>;
|
|
43489
|
-
}, z.core.$strip>;
|
|
43490
|
-
}, z.core.$strip>;
|
|
43491
|
-
};
|
|
43492
|
-
};
|
|
43493
|
-
};
|
|
43494
|
-
403: {
|
|
43495
|
-
description: string;
|
|
43496
|
-
content: {
|
|
43497
|
-
'application/json': {
|
|
43498
|
-
schema: z.ZodObject<{
|
|
43499
|
-
error: z.ZodObject<{
|
|
43500
|
-
code: z.ZodLiteral<"ADMIN_REQUIRED">;
|
|
43501
|
-
message: z.ZodLiteral<"Admin permission required">;
|
|
43502
|
-
redirectTo: z.ZodOptional<z.ZodString>;
|
|
43503
|
-
}, z.core.$strip>;
|
|
43504
|
-
}, z.core.$strip>;
|
|
43505
|
-
};
|
|
43506
|
-
};
|
|
43507
|
-
};
|
|
43508
|
-
500: {
|
|
43509
|
-
description: string;
|
|
43510
|
-
content: {
|
|
43511
|
-
'application/json': {
|
|
43512
|
-
schema: z.ZodObject<{
|
|
43513
|
-
error: z.ZodObject<{
|
|
43514
|
-
code: z.ZodLiteral<"INTERNAL_ERROR">;
|
|
43515
|
-
message: z.ZodLiteral<"Internal server error">;
|
|
43516
44149
|
}, z.core.$strip>;
|
|
43517
44150
|
}, z.core.$strip>;
|
|
43518
44151
|
};
|
|
43519
44152
|
};
|
|
43520
44153
|
};
|
|
43521
|
-
};
|
|
43522
|
-
} & {
|
|
43523
|
-
getRoutingPath(): "/admin/users/search";
|
|
43524
|
-
};
|
|
43525
|
-
inviteUsersRoute: {
|
|
43526
|
-
method: "post";
|
|
43527
|
-
path: "/admin/users/invite";
|
|
43528
|
-
tags: string[];
|
|
43529
|
-
security: {
|
|
43530
|
-
bearerAuth: never[];
|
|
43531
|
-
}[];
|
|
43532
|
-
summary: string;
|
|
43533
|
-
request: {
|
|
43534
|
-
body: {
|
|
43535
|
-
content: {
|
|
43536
|
-
'application/json': {
|
|
43537
|
-
schema: z.ZodObject<{
|
|
43538
|
-
emailList: z.ZodArray<z.ZodString>;
|
|
43539
|
-
sendEmail: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
43540
|
-
}, z.core.$strip>;
|
|
43541
|
-
};
|
|
43542
|
-
};
|
|
43543
|
-
};
|
|
43544
|
-
};
|
|
43545
|
-
responses: {
|
|
43546
|
-
200: {
|
|
43547
|
-
description: string;
|
|
43548
|
-
content: {
|
|
43549
|
-
'application/json': {
|
|
43550
|
-
schema: z.ZodObject<{
|
|
43551
|
-
results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
43552
|
-
email: z.ZodString;
|
|
43553
|
-
status: z.ZodLiteral<"created">;
|
|
43554
|
-
userId: z.ZodString;
|
|
43555
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43556
|
-
email: z.ZodString;
|
|
43557
|
-
status: z.ZodLiteral<"exists">;
|
|
43558
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43559
|
-
email: z.ZodString;
|
|
43560
|
-
status: z.ZodLiteral<"failed">;
|
|
43561
|
-
}, z.core.$strip>], "status">>;
|
|
43562
|
-
}, z.core.$strip>;
|
|
43563
|
-
};
|
|
43564
|
-
};
|
|
43565
|
-
};
|
|
43566
44154
|
400: {
|
|
43567
44155
|
description: string;
|
|
43568
44156
|
content: {
|
|
@@ -43608,6 +44196,19 @@ declare const adminUsersRoutes: {
|
|
|
43608
44196
|
};
|
|
43609
44197
|
};
|
|
43610
44198
|
};
|
|
44199
|
+
404: {
|
|
44200
|
+
description: string;
|
|
44201
|
+
content: {
|
|
44202
|
+
'application/json': {
|
|
44203
|
+
schema: z.ZodObject<{
|
|
44204
|
+
error: z.ZodObject<{
|
|
44205
|
+
code: z.ZodLiteral<"NOT_FOUND">;
|
|
44206
|
+
message: z.ZodString;
|
|
44207
|
+
}, z.core.$strip>;
|
|
44208
|
+
}, z.core.$strip>;
|
|
44209
|
+
};
|
|
44210
|
+
};
|
|
44211
|
+
};
|
|
43611
44212
|
500: {
|
|
43612
44213
|
description: string;
|
|
43613
44214
|
content: {
|
|
@@ -43623,11 +44224,11 @@ declare const adminUsersRoutes: {
|
|
|
43623
44224
|
};
|
|
43624
44225
|
};
|
|
43625
44226
|
} & {
|
|
43626
|
-
getRoutingPath(): "/admin/users
|
|
44227
|
+
getRoutingPath(): "/admin/users/:id";
|
|
43627
44228
|
};
|
|
43628
|
-
|
|
43629
|
-
method: "
|
|
43630
|
-
path: "/admin/users/{id}";
|
|
44229
|
+
makeAdminRoute: {
|
|
44230
|
+
method: "put";
|
|
44231
|
+
path: "/admin/users/{id}/admin";
|
|
43631
44232
|
tags: string[];
|
|
43632
44233
|
security: {
|
|
43633
44234
|
bearerAuth: never[];
|
|
@@ -43637,16 +44238,6 @@ declare const adminUsersRoutes: {
|
|
|
43637
44238
|
params: z.ZodObject<{
|
|
43638
44239
|
id: z.ZodString;
|
|
43639
44240
|
}, z.core.$strip>;
|
|
43640
|
-
body: {
|
|
43641
|
-
content: {
|
|
43642
|
-
'application/json': {
|
|
43643
|
-
schema: z.ZodObject<{
|
|
43644
|
-
name: z.ZodString;
|
|
43645
|
-
email: z.ZodString;
|
|
43646
|
-
}, z.core.$strip>;
|
|
43647
|
-
};
|
|
43648
|
-
};
|
|
43649
|
-
};
|
|
43650
44241
|
};
|
|
43651
44242
|
responses: {
|
|
43652
44243
|
200: {
|
|
@@ -43734,19 +44325,6 @@ declare const adminUsersRoutes: {
|
|
|
43734
44325
|
};
|
|
43735
44326
|
};
|
|
43736
44327
|
};
|
|
43737
|
-
409: {
|
|
43738
|
-
description: string;
|
|
43739
|
-
content: {
|
|
43740
|
-
'application/json': {
|
|
43741
|
-
schema: z.ZodObject<{
|
|
43742
|
-
error: z.ZodObject<{
|
|
43743
|
-
code: z.ZodLiteral<"CONFLICT">;
|
|
43744
|
-
message: z.ZodString;
|
|
43745
|
-
}, z.core.$strip>;
|
|
43746
|
-
}, z.core.$strip>;
|
|
43747
|
-
};
|
|
43748
|
-
};
|
|
43749
|
-
};
|
|
43750
44328
|
500: {
|
|
43751
44329
|
description: string;
|
|
43752
44330
|
content: {
|
|
@@ -43762,10 +44340,10 @@ declare const adminUsersRoutes: {
|
|
|
43762
44340
|
};
|
|
43763
44341
|
};
|
|
43764
44342
|
} & {
|
|
43765
|
-
getRoutingPath(): "/admin/users/:id";
|
|
44343
|
+
getRoutingPath(): "/admin/users/:id/admin";
|
|
43766
44344
|
};
|
|
43767
|
-
|
|
43768
|
-
method: "
|
|
44345
|
+
removeFromAdminRoute: {
|
|
44346
|
+
method: "delete";
|
|
43769
44347
|
path: "/admin/users/{id}/admin";
|
|
43770
44348
|
tags: string[];
|
|
43771
44349
|
security: {
|
|
@@ -43880,9 +44458,9 @@ declare const adminUsersRoutes: {
|
|
|
43880
44458
|
} & {
|
|
43881
44459
|
getRoutingPath(): "/admin/users/:id/admin";
|
|
43882
44460
|
};
|
|
43883
|
-
|
|
43884
|
-
method: "
|
|
43885
|
-
path: "/admin/users/{id}/
|
|
44461
|
+
activateUserRoute: {
|
|
44462
|
+
method: "put";
|
|
44463
|
+
path: "/admin/users/{id}/status/active";
|
|
43886
44464
|
tags: string[];
|
|
43887
44465
|
security: {
|
|
43888
44466
|
bearerAuth: never[];
|
|
@@ -43994,11 +44572,11 @@ declare const adminUsersRoutes: {
|
|
|
43994
44572
|
};
|
|
43995
44573
|
};
|
|
43996
44574
|
} & {
|
|
43997
|
-
getRoutingPath(): "/admin/users/:id/
|
|
44575
|
+
getRoutingPath(): "/admin/users/:id/status/active";
|
|
43998
44576
|
};
|
|
43999
|
-
|
|
44577
|
+
suspendUserRoute: {
|
|
44000
44578
|
method: "put";
|
|
44001
|
-
path: "/admin/users/{id}/status/
|
|
44579
|
+
path: "/admin/users/{id}/status/suspended";
|
|
44002
44580
|
tags: string[];
|
|
44003
44581
|
security: {
|
|
44004
44582
|
bearerAuth: never[];
|
|
@@ -44110,11 +44688,11 @@ declare const adminUsersRoutes: {
|
|
|
44110
44688
|
};
|
|
44111
44689
|
};
|
|
44112
44690
|
} & {
|
|
44113
|
-
getRoutingPath(): "/admin/users/:id/status/
|
|
44691
|
+
getRoutingPath(): "/admin/users/:id/status/suspended";
|
|
44114
44692
|
};
|
|
44115
|
-
|
|
44116
|
-
method: "
|
|
44117
|
-
path: "/admin/users/{id}/
|
|
44693
|
+
resetPasswordRoute: {
|
|
44694
|
+
method: "post";
|
|
44695
|
+
path: "/admin/users/{id}/reset-password";
|
|
44118
44696
|
tags: string[];
|
|
44119
44697
|
security: {
|
|
44120
44698
|
bearerAuth: never[];
|
|
@@ -44149,6 +44727,7 @@ declare const adminUsersRoutes: {
|
|
|
44149
44727
|
readonly INVITED: 5;
|
|
44150
44728
|
}>>;
|
|
44151
44729
|
}, z.core.$strip>;
|
|
44730
|
+
newPassword: z.ZodString;
|
|
44152
44731
|
}, z.core.$strip>;
|
|
44153
44732
|
};
|
|
44154
44733
|
};
|
|
@@ -44226,11 +44805,11 @@ declare const adminUsersRoutes: {
|
|
|
44226
44805
|
};
|
|
44227
44806
|
};
|
|
44228
44807
|
} & {
|
|
44229
|
-
getRoutingPath(): "/admin/users/:id/
|
|
44808
|
+
getRoutingPath(): "/admin/users/:id/reset-password";
|
|
44230
44809
|
};
|
|
44231
|
-
|
|
44810
|
+
resendInviteRoute: {
|
|
44232
44811
|
method: "post";
|
|
44233
|
-
path: "/admin/users/{id}/
|
|
44812
|
+
path: "/admin/users/{id}/resend-invite";
|
|
44234
44813
|
tags: string[];
|
|
44235
44814
|
security: {
|
|
44236
44815
|
bearerAuth: never[];
|
|
@@ -44265,7 +44844,6 @@ declare const adminUsersRoutes: {
|
|
|
44265
44844
|
readonly INVITED: 5;
|
|
44266
44845
|
}>>;
|
|
44267
44846
|
}, z.core.$strip>;
|
|
44268
|
-
newPassword: z.ZodString;
|
|
44269
44847
|
}, z.core.$strip>;
|
|
44270
44848
|
};
|
|
44271
44849
|
};
|
|
@@ -44328,6 +44906,19 @@ declare const adminUsersRoutes: {
|
|
|
44328
44906
|
};
|
|
44329
44907
|
};
|
|
44330
44908
|
};
|
|
44909
|
+
409: {
|
|
44910
|
+
description: string;
|
|
44911
|
+
content: {
|
|
44912
|
+
'application/json': {
|
|
44913
|
+
schema: z.ZodObject<{
|
|
44914
|
+
error: z.ZodObject<{
|
|
44915
|
+
code: z.ZodLiteral<"CONFLICT">;
|
|
44916
|
+
message: z.ZodString;
|
|
44917
|
+
}, z.core.$strip>;
|
|
44918
|
+
}, z.core.$strip>;
|
|
44919
|
+
};
|
|
44920
|
+
};
|
|
44921
|
+
};
|
|
44331
44922
|
500: {
|
|
44332
44923
|
description: string;
|
|
44333
44924
|
content: {
|
|
@@ -44343,11 +44934,11 @@ declare const adminUsersRoutes: {
|
|
|
44343
44934
|
};
|
|
44344
44935
|
};
|
|
44345
44936
|
} & {
|
|
44346
|
-
getRoutingPath(): "/admin/users/:id/
|
|
44937
|
+
getRoutingPath(): "/admin/users/:id/resend-invite";
|
|
44347
44938
|
};
|
|
44348
|
-
|
|
44349
|
-
method: "
|
|
44350
|
-
path: "/admin/users/{id}/
|
|
44939
|
+
updateUserEmailRoute: {
|
|
44940
|
+
method: "put";
|
|
44941
|
+
path: "/admin/users/{id}/email";
|
|
44351
44942
|
tags: string[];
|
|
44352
44943
|
security: {
|
|
44353
44944
|
bearerAuth: never[];
|
|
@@ -44357,6 +44948,15 @@ declare const adminUsersRoutes: {
|
|
|
44357
44948
|
params: z.ZodObject<{
|
|
44358
44949
|
id: z.ZodString;
|
|
44359
44950
|
}, z.core.$strip>;
|
|
44951
|
+
body: {
|
|
44952
|
+
content: {
|
|
44953
|
+
'application/json': {
|
|
44954
|
+
schema: z.ZodObject<{
|
|
44955
|
+
email: z.ZodString;
|
|
44956
|
+
}, z.core.$strip>;
|
|
44957
|
+
};
|
|
44958
|
+
};
|
|
44959
|
+
};
|
|
44360
44960
|
};
|
|
44361
44961
|
responses: {
|
|
44362
44962
|
200: {
|
|
@@ -44448,12 +45048,17 @@ declare const adminUsersRoutes: {
|
|
|
44448
45048
|
description: string;
|
|
44449
45049
|
content: {
|
|
44450
45050
|
'application/json': {
|
|
44451
|
-
schema: z.ZodObject<{
|
|
45051
|
+
schema: z.ZodUnion<readonly [z.ZodObject<{
|
|
44452
45052
|
error: z.ZodObject<{
|
|
44453
45053
|
code: z.ZodLiteral<"CONFLICT">;
|
|
44454
45054
|
message: z.ZodString;
|
|
44455
45055
|
}, z.core.$strip>;
|
|
44456
|
-
}, z.core.$strip
|
|
45056
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45057
|
+
error: z.ZodObject<{
|
|
45058
|
+
code: z.ZodLiteral<"EMAIL_LOCKED_BY_FEDERATED_IDENTITY">;
|
|
45059
|
+
message: z.ZodString;
|
|
45060
|
+
}, z.core.$strip>;
|
|
45061
|
+
}, z.core.$strip>]>;
|
|
44457
45062
|
};
|
|
44458
45063
|
};
|
|
44459
45064
|
};
|
|
@@ -44472,11 +45077,11 @@ declare const adminUsersRoutes: {
|
|
|
44472
45077
|
};
|
|
44473
45078
|
};
|
|
44474
45079
|
} & {
|
|
44475
|
-
getRoutingPath(): "/admin/users/:id/
|
|
45080
|
+
getRoutingPath(): "/admin/users/:id/email";
|
|
44476
45081
|
};
|
|
44477
|
-
|
|
44478
|
-
method: "
|
|
44479
|
-
path: "/admin/users/{id}/
|
|
45082
|
+
unlinkUserIdentityRoute: {
|
|
45083
|
+
method: "delete";
|
|
45084
|
+
path: "/admin/users/{id}/identities/{provider}";
|
|
44480
45085
|
tags: string[];
|
|
44481
45086
|
security: {
|
|
44482
45087
|
bearerAuth: never[];
|
|
@@ -44485,16 +45090,8 @@ declare const adminUsersRoutes: {
|
|
|
44485
45090
|
request: {
|
|
44486
45091
|
params: z.ZodObject<{
|
|
44487
45092
|
id: z.ZodString;
|
|
45093
|
+
provider: z.ZodString;
|
|
44488
45094
|
}, z.core.$strip>;
|
|
44489
|
-
body: {
|
|
44490
|
-
content: {
|
|
44491
|
-
'application/json': {
|
|
44492
|
-
schema: z.ZodObject<{
|
|
44493
|
-
email: z.ZodString;
|
|
44494
|
-
}, z.core.$strip>;
|
|
44495
|
-
};
|
|
44496
|
-
};
|
|
44497
|
-
};
|
|
44498
45095
|
};
|
|
44499
45096
|
responses: {
|
|
44500
45097
|
200: {
|
|
@@ -44520,6 +45117,8 @@ declare const adminUsersRoutes: {
|
|
|
44520
45117
|
readonly INVITED: 5;
|
|
44521
45118
|
}>>;
|
|
44522
45119
|
}, z.core.$strip>;
|
|
45120
|
+
passwordIssued: z.ZodBoolean;
|
|
45121
|
+
newPassword: z.ZodOptional<z.ZodString>;
|
|
44523
45122
|
}, z.core.$strip>;
|
|
44524
45123
|
};
|
|
44525
45124
|
};
|
|
@@ -44575,7 +45174,10 @@ declare const adminUsersRoutes: {
|
|
|
44575
45174
|
'application/json': {
|
|
44576
45175
|
schema: z.ZodObject<{
|
|
44577
45176
|
error: z.ZodObject<{
|
|
44578
|
-
code: z.
|
|
45177
|
+
code: z.ZodEnum<{
|
|
45178
|
+
NOT_FOUND: "NOT_FOUND";
|
|
45179
|
+
NOT_LINKED: "NOT_LINKED";
|
|
45180
|
+
}>;
|
|
44579
45181
|
message: z.ZodString;
|
|
44580
45182
|
}, z.core.$strip>;
|
|
44581
45183
|
}, z.core.$strip>;
|
|
@@ -44588,7 +45190,10 @@ declare const adminUsersRoutes: {
|
|
|
44588
45190
|
'application/json': {
|
|
44589
45191
|
schema: z.ZodObject<{
|
|
44590
45192
|
error: z.ZodObject<{
|
|
44591
|
-
code: z.
|
|
45193
|
+
code: z.ZodEnum<{
|
|
45194
|
+
CANNOT_UNLINK_SELF: "CANNOT_UNLINK_SELF";
|
|
45195
|
+
PASSWORD_AUTH_DISABLED: "PASSWORD_AUTH_DISABLED";
|
|
45196
|
+
}>;
|
|
44592
45197
|
message: z.ZodString;
|
|
44593
45198
|
}, z.core.$strip>;
|
|
44594
45199
|
}, z.core.$strip>;
|
|
@@ -44610,7 +45215,7 @@ declare const adminUsersRoutes: {
|
|
|
44610
45215
|
};
|
|
44611
45216
|
};
|
|
44612
45217
|
} & {
|
|
44613
|
-
getRoutingPath(): "/admin/users/:id/
|
|
45218
|
+
getRoutingPath(): "/admin/users/:id/identities/:provider";
|
|
44614
45219
|
};
|
|
44615
45220
|
pendingUsersCountRoute: {
|
|
44616
45221
|
method: "get";
|
|
@@ -45527,11 +46132,12 @@ type AttachmentError = z.infer<typeof AttachmentErrorSchema>;
|
|
|
45527
46132
|
*
|
|
45528
46133
|
* The editor's paste / drag-and-drop handlers upload a file directly
|
|
45529
46134
|
* (multipart) and immediately splice the returned `url` into the
|
|
45530
|
-
* Markdown source. Unlike `addAttachment`, this endpoint
|
|
45531
|
-
* the editor `intent` (`paste` / `dnd`) for telemetry and applies a
|
|
46135
|
+
* Markdown source. Unlike `addAttachment`, this endpoint applies a
|
|
45532
46136
|
* per-user upload rate limit; it shares the same `FileUploader` storage
|
|
45533
46137
|
* path. See `docs/rfcs/0004-editor-ux-enhancement.md`
|
|
45534
|
-
* §"Attachment upload endpoint".
|
|
46138
|
+
* §"Attachment upload endpoint". The request body carries no `intent`
|
|
46139
|
+
* (`paste` / `dnd`) field: the size cap is a single value, independent of
|
|
46140
|
+
* which affordance triggered the upload.
|
|
45535
46141
|
*/
|
|
45536
46142
|
declare const UploadAttachmentResponseSchema: z.ZodObject<{
|
|
45537
46143
|
url: z.ZodString;
|
|
@@ -45547,9 +46153,8 @@ type UploadAttachmentResponse = z.infer<typeof UploadAttachmentResponseSchema>;
|
|
|
45547
46153
|
* because the editor maps each code to a specific user-facing toast:
|
|
45548
46154
|
* - `too_large` — file exceeds the size cap (413).
|
|
45549
46155
|
* - `disallowed_type`— malformed request (bad multipart body, missing
|
|
45550
|
-
* file
|
|
45551
|
-
*
|
|
45552
|
-
* as-is for those unrelated failure modes.
|
|
46156
|
+
* file); a generic 400 bucket kept as-is for those
|
|
46157
|
+
* unrelated failure modes.
|
|
45553
46158
|
* - `DISALLOWED_MIME`— the file's MIME type is outside the unified
|
|
45554
46159
|
* upload allow-list (415). Deliberately spelled
|
|
45555
46160
|
* the SAME as `AttachmentErrorCodeSchema`'s
|
|
@@ -45588,15 +46193,14 @@ declare const UploadAttachmentErrorSchema: z.ZodObject<{
|
|
|
45588
46193
|
}, z.core.$strip>;
|
|
45589
46194
|
type UploadAttachmentError = z.infer<typeof UploadAttachmentErrorSchema>;
|
|
45590
46195
|
/**
|
|
45591
|
-
*
|
|
45592
|
-
*
|
|
45593
|
-
*
|
|
45594
|
-
*
|
|
45595
|
-
*
|
|
45596
|
-
*
|
|
45597
|
-
*
|
|
45598
|
-
*
|
|
45599
|
-
* are unchanged and stay in the api handler, independent of this list.
|
|
46196
|
+
* The single "may this be uploaded at all" allow-list, shared by every
|
|
46197
|
+
* upload path: the general page attachment endpoint
|
|
46198
|
+
* (`POST /pages/:pageId/attachments`) and the editor's paste / drag-and-drop
|
|
46199
|
+
* endpoint (`POST /attachments/upload`). A file's fate does not depend on
|
|
46200
|
+
* which of the three affordances (attach button / paste / drag-and-drop)
|
|
46201
|
+
* triggered the upload. The SIZE cap (the api handler's single upload size
|
|
46202
|
+
* limit) is unified the same way: it applies regardless of route or
|
|
46203
|
+
* client-declared intent.
|
|
45600
46204
|
*
|
|
45601
46205
|
* Deliberately independent of `INLINE_SAFE_MIME`
|
|
45602
46206
|
* (`attachment-stream.ts`) — that is a strict security boundary deciding
|
|
@@ -45616,6 +46220,42 @@ type UploadAttachmentError = z.infer<typeof UploadAttachmentErrorSchema>;
|
|
|
45616
46220
|
* unknown, and it already downloads instead of rendering inline.
|
|
45617
46221
|
*/
|
|
45618
46222
|
declare const UPLOAD_ALLOWED_MIME: readonly ["image/png", "image/jpeg", "image/gif", "image/webp", "image/svg+xml", "image/bmp", "image/avif", "image/apng", "image/x-icon", "application/pdf", "text/plain", "text/markdown", "text/csv", "application/json", "application/xml", "text/html", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "application/zip", "application/gzip", "application/x-tar", "audio/mpeg", "audio/wav", "video/mp4", "video/webm", "video/quicktime", "application/octet-stream"];
|
|
46223
|
+
/**
|
|
46224
|
+
* Response for `GET /attachments/upload-policy`.
|
|
46225
|
+
*
|
|
46226
|
+
* Publishes the server's actual upload policy so a client (CLI / curl / MCP)
|
|
46227
|
+
* can stop guessing what this instance allows. Every field is derived from
|
|
46228
|
+
* existing api constants, never a value maintained separately for this
|
|
46229
|
+
* response — see the handler's doc comment for the source of each field.
|
|
46230
|
+
*
|
|
46231
|
+
* - `allowedMimeTypes`: the same allow-list every upload route already
|
|
46232
|
+
* enforces (`UPLOAD_ALLOWED_MIME` above).
|
|
46233
|
+
* - `extensionHints`: extension → MIME, for a client that only knows a
|
|
46234
|
+
* filename and needs to declare a `Content-Type` for it.
|
|
46235
|
+
* - `maxBytes.attachment`: the SINGLE size limit every attachment upload
|
|
46236
|
+
* route enforces (attach button / editor paste / editor drag-and-drop
|
|
46237
|
+
* alike), resolved server-side from `CROWI_UPLOAD_MAX_BYTES` (default
|
|
46238
|
+
* 50 MB, hard ceiling 50 MB — the value is a memory budget, not a policy
|
|
46239
|
+
* knob, because the api buffers the whole upload in memory; an operator
|
|
46240
|
+
* may only lower it). No separate `paste` / `dnd` figure: a client-
|
|
46241
|
+
* declared intent is not a real defence, so it cannot justify a
|
|
46242
|
+
* different number.
|
|
46243
|
+
* - `profilePicture`: the separate, narrower policy `POST /me/picture`
|
|
46244
|
+
* enforces (a finite image-type allow-list and its own size cap — not the
|
|
46245
|
+
* general attachment policy above, and unaffected by it).
|
|
46246
|
+
*/
|
|
46247
|
+
declare const UploadPolicyResponseSchema: z.ZodObject<{
|
|
46248
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
46249
|
+
extensionHints: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
46250
|
+
maxBytes: z.ZodObject<{
|
|
46251
|
+
attachment: z.ZodNumber;
|
|
46252
|
+
}, z.core.$strip>;
|
|
46253
|
+
profilePicture: z.ZodObject<{
|
|
46254
|
+
allowedMimeTypes: z.ZodArray<z.ZodString>;
|
|
46255
|
+
maxBytes: z.ZodNumber;
|
|
46256
|
+
}, z.core.$strip>;
|
|
46257
|
+
}, z.core.$strip>;
|
|
46258
|
+
type UploadPolicyResponse = z.infer<typeof UploadPolicyResponseSchema>;
|
|
45619
46259
|
|
|
45620
46260
|
/**
|
|
45621
46261
|
* Token-based authentication schemas, shared by the `tokenAuth` Hono
|
|
@@ -49867,6 +50507,16 @@ interface RenderedAstNodeDef {
|
|
|
49867
50507
|
/** Own (non-`type` / non-`data` / non-`children`) fields, nullability per `@types/mdast`. */
|
|
49868
50508
|
fields: AstFieldsValidator;
|
|
49869
50509
|
}
|
|
50510
|
+
declare const FRONTMATTER_MAX_ENTRIES = 50;
|
|
50511
|
+
declare const FRONTMATTER_MAX_KEY_CHARS = 100;
|
|
50512
|
+
declare const FRONTMATTER_MAX_VALUE_CHARS = 300;
|
|
50513
|
+
/** Raw frontmatter block size cap. Beyond this the block is never scanned into entries — it is preserved verbatim as a `code` node instead (§D-4). */
|
|
50514
|
+
declare const FRONTMATTER_MAX_RAW_BYTES: number;
|
|
50515
|
+
declare const CrowiFrontmatterEntrySchema: z.ZodObject<{
|
|
50516
|
+
key: z.ZodString;
|
|
50517
|
+
value: z.ZodString;
|
|
50518
|
+
}, z.core.$strip>;
|
|
50519
|
+
type CrowiFrontmatterEntry = z.infer<typeof CrowiFrontmatterEntrySchema>;
|
|
49870
50520
|
/**
|
|
49871
50521
|
* The closed type registry (design doc §3). Applies ONLY to
|
|
49872
50522
|
* `X-Crowi-Ast-Version: 1` envelope generation — legacy responses never
|
|
@@ -51443,4 +52093,4 @@ declare const WS_CLOSE_CODES: {
|
|
|
51443
52093
|
};
|
|
51444
52094
|
type WsCloseCode = (typeof WS_CLOSE_CODES)[keyof typeof WS_CLOSE_CODES];
|
|
51445
52095
|
|
|
51446
|
-
export { ALL_CAPABILITIES, ALL_SCOPES, API_SURFACE_VERSION, AST_INPUT_LIMIT_BYTES, AST_MAX_HAST_DEPTH, AST_MAX_IMAGE_BASE64_CHARS, AST_MAX_TREE_DEPTH, AST_MAX_VALUE_CHARS, AST_OUTPUT_BUDGET_BYTES, AST_OUTPUT_WARN_BYTES, type AccessToken, AccessTokenSchema, type ActivateRequest, ActivateRequestSchema, type ActivateValidationResponse, ActivateValidationResponseSchema, type ActiveSearchDriver, ActiveSearchDriverSchema, type ActiveStorageDriver, ActiveStorageDriverSchema, type AddAttachmentResponse, AddAttachmentResponseSchema, type AddBookmarkRequest, AddBookmarkRequestSchema, type AddCommentRequest, AddCommentRequestSchema, type AddCommentResponse, AddCommentResponseSchema, type AdminPager, AdminPagerSchema, type AdminRequiredError, AdminRequiredErrorSchema, type AdminSettingsContractApp, AdminSidebarSection, type AdminSidebarSectionValue, type AdminUserIdParam, AdminUserIdParamSchema, type AdminUserMutationResponse, AdminUserMutationResponseSchema, type AdminUsersPluginsContractApp, type ApiError, ApiErrorSchema, type AppAuthMeUserChain, type AppInfoResponse, AppInfoResponseSchema, type AppSettingsValidationError, AppSettingsValidationErrorSchema, type ApplicationNotInstalledError, ApplicationNotInstalledErrorSchema, type AstChildModel, type AstFieldsValidator, type AstPlacement, type Attachment, type AttachmentError, AttachmentErrorCodeSchema, AttachmentErrorSchema, type AttachmentMeta, AttachmentMetaSchema, AttachmentSchema, type AttachmentUsageResponse, AttachmentUsageResponseSchema, type AuthSettings, AuthSettingsSchema, type AuthenticationRequiredError, AuthenticationRequiredErrorSchema, type AuthorizeRequest, AuthorizeRequestSchema, type AuthorizeResponse, AuthorizeResponseSchema, type AutocompleteRateLimitError, AutocompleteRateLimitErrorSchema, type AutocompleteRequest, AutocompleteRequestSchema, type AutocompleteResponse, AutocompleteResponseSchema, type AutocompleteResult, AutocompleteResultSchema, type Backlink, type BacklinkFromPage, BacklinkFromPageSchema, type BacklinkFromRevision, BacklinkFromRevisionSchema, BacklinkSchema, type Bookmark, type BookmarkBacklinkCommentRevisionChain, type BookmarkResponse, BookmarkResponseSchema, BookmarkSchema, CURRENT_AST_VERSION, type Capability, CapabilitySchema, type ClaimPageLinkAccessResponse, ClaimPageLinkAccessResponseSchema, type ClearRenderCacheResponse, ClearRenderCacheResponseSchema, type ClientInfoResponse, ClientInfoResponseSchema, type ClientOptions, type CollabForceReloadMessage, CollabForceReloadMessageSchema, type CollabSaveError, CollabSaveErrorSchema, type CollabSaveMessage, CollabSaveMessageSchema, type CollabSaveOk, CollabSaveOkSchema, type Comment, type CommentInvalidRequestError, CommentInvalidRequestErrorSchema, type CommentNotFoundError, CommentNotFoundErrorSchema, CommentSchema, type ConfigReadinessIssue, ConfigReadinessIssueSchema, type ConfigReadinessResponse, ConfigReadinessResponseSchema, type ConfirmEmailChangeRequest, ConfirmEmailChangeRequestSchema, type ConfirmEmailChangeResponse, ConfirmEmailChangeResponseSchema, type ConflictError, ConflictErrorSchema, type ContributorRef, ContributorRefSchema, type CreateAccessTokenRequest, CreateAccessTokenRequestSchema, type CreateAccessTokenResponse, CreateAccessTokenResponseSchema, CreateAdminRequestSchema, CreateAdminResponseSchema, type CreateDraftRequest, CreateDraftRequestSchema, type CreateDraftResponse, CreateDraftResponseSchema, CreateLinkGrantRequestSchema, CreateLinkGrantResponseSchema, type CreatePageRequest, CreatePageRequestSchema, type CrowiApiClient, type CrowiCodeSidecar, CrowiCodeSidecarSchema, CrowiDiagramNodeSchema, type CrowiDiagramSidecar, CrowiDiagramSidecarSchema, CrowiDimensionSchema, type CrowiImagePayload, CrowiImagePayloadSchema, CrowiLinkCardNodeSchema, type CrowiLinkCardSidecar, CrowiLinkCardSidecarSchema, type CrowiMathSidecar, CrowiMathSidecarSchema, CrowiOpaqueNodeSchema, type CrowiPlaceholderKind, CrowiPlaceholderKindSchema, CrowiPlaceholderNodeSchema, type CrowiPlaceholderSidecar, CrowiPlaceholderSidecarSchema, type CryptoStatusResponse, CryptoStatusResponseSchema, DEVICE_CODE_GRANT_TYPE, DISCOVERY_SCOPES_SUPPORTED, DYNAMIC_CAPABILITIES, type DeleteAdminUserResponse, DeleteAdminUserResponseSchema, type DeleteCommentRequest, DeleteCommentRequestSchema, type DeleteCommentResponse, DeleteCommentResponseSchema, type DeviceAuthorizeRequest, DeviceAuthorizeRequestSchema, type DeviceAuthorizeResponse, DeviceAuthorizeResponseSchema, type DeviceInfoResponse, DeviceInfoResponseSchema, type DeviceVerifyRequest, DeviceVerifyRequestSchema, type DeviceVerifyResponse, DeviceVerifyResponseSchema, type DiscoveryResponse, DiscoveryResponseSchema, type DraftBadRequestError, DraftBadRequestErrorSchema, type DraftConflictOwner, DraftConflictOwnerSchema, type DraftNotFoundError, DraftNotFoundErrorSchema, type DraftPathConflictError, DraftPathConflictErrorSchema, type DraftSummary, DraftSummarySchema, ERROR_CODES, type EditAdminUserRequest, EditAdminUserRequestSchema, type EncryptionNotConfiguredError, EncryptionNotConfiguredErrorSchema, type ErrorCode, ErrorCodeSchema, type FederatedAuthContractApp, FederatedHandoffRequestSchema, FederatedHandoffResponseSchema, FederatedProviderSchema, FederatedRegistrationActiveResultSchema, FederatedRegistrationApprovalResultSchema, type FederatedRegistrationContractApp, FederatedRegistrationResultSchema, FederatedRegistrationSnapshotSchema, FederatedRegistrationSubmitRequestSchema, type ForbiddenError, ForbiddenErrorSchema, type ForgotPasswordRequest, ForgotPasswordRequestSchema, type ForgotPasswordResponse, ForgotPasswordResponseSchema, GRANT_TYPES_SUPPORTED, type GetAppSettingsResponse, GetAppSettingsResponseSchema, type GetAuthSettingsResponse, GetAuthSettingsResponseSchema, type GetBacklinksRequest, GetBacklinksRequestSchema, type GetBacklinksResponse, GetBacklinksResponseSchema, type GetBookmarkRequest, GetBookmarkRequestSchema, type GetLikersRequest, GetLikersRequestSchema, type GetMailSettingsResponse, GetMailSettingsResponseSchema, type GetPageRequest, GetPageRequestSchema, type GetPageResponse, GetPageResponseSchema, type GetRevisionResponse, GetRevisionResponseSchema, type GetRevisionsRequest, GetRevisionsRequestSchema, type GetRevisionsResponse, GetRevisionsResponseSchema, type GetSearchStatusResponse, GetSearchStatusResponseSchema, type GetSecuritySettingsResponse, GetSecuritySettingsResponseSchema, type GetSeenUsersRequest, GetSeenUsersRequestSchema, type GetStorageStatusResponse, GetStorageStatusResponseSchema, type GetWatchStatusRequest, GetWatchStatusRequestSchema, type HChild, HChildSchema, HChildrenSchema, HNameSchema, HPropertiesSchema, type HastHintData, HastHintDataSchema, ISSUABLE_SCOPES, InstallerStatusResponseSchema, type InsufficientScopeError, InsufficientScopeErrorSchema, type InternalServerError, InternalServerErrorSchema, type InvalidPageIdError, InvalidPageIdErrorSchema, type InvalidScopeError, InvalidScopeErrorSchema, type InviteAcceptRequest, InviteAcceptRequestSchema, type InvitePreviewResponse, InvitePreviewResponseSchema, type InviteUsersRequest, InviteUsersRequestSchema, type InviteUsersResponse, InviteUsersResponseSchema, type InvitedUserResult, InvitedUserResultSchema, KNOWN_HTML_ELEMENTS, type Language, LanguageSchema, type LateContractApp, type Liker, LikerSchema, type LikersResponse, LikersResponseSchema, LinkedAuthProviderListResponseSchema, type ListAccessTokensResponse, ListAccessTokensResponseSchema, type ListAdminUsersRequest, ListAdminUsersRequestSchema, type ListAdminUsersResponse, ListAdminUsersResponseSchema, type ListAttachmentsResponse, ListAttachmentsResponseSchema, type ListCommentsRequest, ListCommentsRequestSchema, type ListCommentsResponse, ListCommentsResponseSchema, type ListDraftsResponse, ListDraftsResponseSchema, type ListMyBookmarksResponse, ListMyBookmarksResponseSchema, type ListNotificationsRequest, ListNotificationsRequestSchema, type ListNotificationsResponse, ListNotificationsResponseSchema, type ListPageChildrenRequest, ListPageChildrenRequestSchema, type ListPageChildrenResponse, ListPageChildrenResponseSchema, type ListPagesRequest, ListPagesRequestSchema, type ListPagesResponse, ListPagesResponseSchema, type ListPagesSort, type ListPluginsResponse, ListPluginsResponseSchema, type ListRevisionsRequest, ListRevisionsRequestSchema, type ListRevisionsResponse, ListRevisionsResponseSchema, type ListUsersRequest, ListUsersRequestSchema, type ListUsersResponse, ListUsersResponseSchema, LooseRenderedAstRootSchema, type MailSettingsValidationError, MailSettingsValidationErrorSchema, type MailTokenPayload, MailTokenPayloadSchema, type MailTokenPurpose, MailTokenPurposeSchema, type MarkAllAsReadResponse, MarkAllAsReadResponseSchema, type MentionResponse, MentionSchema, type NotFoundError, NotFoundErrorSchema, type Notification, type NotificationAction, NotificationActionEnum, NotificationActionSchema, type NotificationNotFoundError, NotificationNotFoundErrorSchema, NotificationSchema, type NotificationStatus, NotificationStatusEnum, type NotificationStatusResponse, NotificationStatusResponseSchema, NotificationStatusSchema, type NotificationTargetModel, NotificationTargetModelEnum, NotificationTargetModelSchema, type NotificationsChangedMessage, NotificationsChangedMessageSchema, type NotificationsServerMessage, NotificationsServerMessageSchema, type NotificationsTokenPayload, NotificationsTokenPayloadSchema, type NotificationsTokenResponse, NotificationsTokenResponseSchema, OAUTH_ERROR_CODES, type OAuthContractApp, type OAuthError, type OAuthErrorCode, OAuthErrorSchema, type OpenNotificationParam, OpenNotificationParamSchema, type OpenNotificationResponse, OpenNotificationResponseSchema, type Page, type PageChain, type PageChildSegment, PageChildSegmentSchema, PageExtendedSchema, PageGrantEnum, PageGrantSchema, type PageNotFoundError, PageNotFoundErrorSchema, type PageNotGrantedError, PageNotGrantedErrorSchema, type PageRef, PageRefSchema, type PageRevisionError, PageRevisionErrorSchema, PageSchema, PageStatusEnum, PageStatusSchema, PageTypeEnum, PageTypeSchema, type PageUser, PageUserSchema, type PageWithRevision, PageWithRevisionSchema, type Pager, PagerSchema, type PaginationRequest, PaginationRequestSchema, type PasswordErrorResponse, PasswordErrorResponseSchema, type PasswordUpdateSuccess, PasswordUpdateSuccessSchema, type PastAttachmentUsage, PastAttachmentUsageSchema, type PendingUsersCountResponse, PendingUsersCountResponseSchema, type PictureUploadResponse, PictureUploadResponseSchema, type PluginAdminPlacement, PluginAdminPlacementSchema, type PluginConfigResponse, PluginConfigResponseSchema, type PluginConfigValidationError, PluginConfigValidationErrorSchema, type PluginField, PluginFieldSchema, type PluginInfo, PluginInfoSchema, type PluginNotFoundError, PluginNotFoundErrorSchema, type PluginReadinessField, PluginReadinessFieldSchema, type PresenceClientMessage, PresenceClientMessageSchema, type PresenceCommentChangedMessage, PresenceCommentChangedMessageSchema, type PresenceHeartbeatMessage, PresenceHeartbeatMessageSchema, type PresencePageUpdatedMessage, PresencePageUpdatedMessageSchema, type PresenceServerMessage, PresenceServerMessageSchema, type PresenceTokenPayload, PresenceTokenPayloadSchema, type PresenceTokenResponse, PresenceTokenResponseSchema, type PresenceViewer, PresenceViewerSchema, type PresenceViewersMessage, PresenceViewersMessageSchema, type PreviewPageRequest, PreviewPageRequestSchema, type PreviewPageResponse, PreviewPageResponseSchema, type ProfileErrorResponse, ProfileErrorResponseSchema, ProviderListResponseSchema, RENDERED_AST_NODE_DEFS, type RecentlyViewedPagesResponse, RecentlyViewedPagesResponseSchema, type ReencryptResponse, ReencryptResponseSchema, RefreshTokenRequestSchema, type RegisterPendingResponse, RegisterPendingResponseSchema, type RegistrationMode, RegistrationModeSchema, type RemoveAttachmentResponse, RemoveAttachmentResponseSchema, type RemoveBookmarkRequest, RemoveBookmarkRequestSchema, type RemoveBookmarkResponse, RemoveBookmarkResponseSchema, type RenamePageRequest, RenamePageRequestSchema, type RenamePageResponse, RenamePageResponseSchema, type RenameSubtreeRequest, RenameSubtreeRequestSchema, type RenameSubtreeResponse, RenameSubtreeResponseSchema, type RenameTreeError, RenameTreeErrorSchema, RenderedAstArtifactKeySchema, type RenderedAstEnvelope, RenderedAstEnvelopeOpenApiSchema, RenderedAstEnvelopeSchema, type RenderedAstNode, type RenderedAstNodeDef, RenderedAstNodeSchema, RenderedAstRootSchema, type RenderedAstValue, RenderedAstValueSchema, ReservationSchema, type ReservationShape, type ResetPasswordRequest, ResetPasswordRequestSchema, type ResetPasswordResponse, ResetPasswordResponseSchema, type RevertToRevisionRequest, RevertToRevisionRequestSchema, type Revision, type RevisionInvalidRequestError, RevisionInvalidRequestErrorSchema, type RevisionMeta, RevisionMetaSchema, RevisionMetaSchemaShape, type RevisionMetaShape, RevisionSchema, type RevisionType, RevisionTypeSchema, type RevokeRequest, RevokeRequestSchema, type RevokeResponse, RevokeResponseSchema, SCOPES, SIDECAR_KEYS, STATIC_CAPABILITIES, STRIP_KNOWN_HTML_TAGS_MAX_LENGTH, type Scope, type SearchAdminUsersByEmailRequest, SearchAdminUsersByEmailRequestSchema, type SearchAdminUsersByEmailResponse, SearchAdminUsersByEmailResponseSchema, type SearchDriverEntry, SearchDriverEntrySchema, type SearchHit, SearchHitSchema, type SearchPageType, SearchPageTypeSchema, type SearchPagesRequest, SearchPagesRequestSchema, type SearchPagesResponse, SearchPagesResponseSchema, type SecuritySettings, SecuritySettingsSchema, type SeenPageRequest, SeenPageRequestSchema, type SeenUsersResponse, SeenUsersResponseSchema, type SendTestMailError, SendTestMailErrorSchema, type SendTestMailRequest, SendTestMailRequestSchema, type SendTestMailResponse, SendTestMailResponseSchema, SenderProofSchema, SenderPublicJwkSchema, type SensitiveConfigEntry, SensitiveConfigEntrySchema, type ServiceUnavailableError, ServiceUnavailableErrorSchema, type SetPageGrantRequest, SetPageGrantRequestSchema, type SetWatchStatusRequest, SetWatchStatusRequestSchema, type ShikiToken, ShikiTokenLinesSchema, ShikiTokenSchema, ShikiTokenStyleSchema, type SidecarKey, type StorageDriverEntry, StorageDriverEntrySchema, type SuccessResponse, SuccessResponseSchema, type Theme, ThemeSchema, type ThemeUpdateResponse, ThemeUpdateResponseSchema, type ThirdPartyAuthRequiredError, ThirdPartyAuthRequiredErrorSchema, type ThirdPartyAuthUnavailableError, ThirdPartyAuthUnavailableErrorSchema, type TocEntryResponse, TocEntrySchema, TokenAuthLoginRequestSchema, TokenAuthRegisterRequestSchema, TokenAuthResponseSchema, type TokenRequest, TokenRequestSchema, type TokenResponse, TokenResponseSchema, UPLOAD_ALLOWED_MIME, UnlinkAuthProviderErrorSchema, type UpdateAdminUserEmailRequest, UpdateAdminUserEmailRequestSchema, type UpdateAppSettingsRequest, UpdateAppSettingsRequestSchema, type UpdateAppSettingsResponse, UpdateAppSettingsResponseSchema, type UpdateAuthSettingsRequest, UpdateAuthSettingsRequestSchema, type UpdateAuthSettingsResponse, UpdateAuthSettingsResponseSchema, type UpdateMailSettingsRequest, UpdateMailSettingsRequestSchema, type UpdateMailSettingsResponse, UpdateMailSettingsResponseSchema, type UpdatePageRequest, UpdatePageRequestSchema, type UpdatePasswordRequest, UpdatePasswordRequestSchema, type UpdatePluginConfigRequest, UpdatePluginConfigRequestSchema, type UpdatePluginConfigResponse, UpdatePluginConfigResponseSchema, type UpdateProfileRequest, UpdateProfileRequestSchema, type UpdateSecuritySettingsRequest, UpdateSecuritySettingsRequestSchema, type UpdateSecuritySettingsResponse, UpdateSecuritySettingsResponseSchema, type UpdateThemeRequest, UpdateThemeRequestSchema, type UploadAttachmentError, type UploadAttachmentErrorCode, UploadAttachmentErrorCodeSchema, UploadAttachmentErrorSchema, type UploadAttachmentResponse, UploadAttachmentResponseSchema, type UserBookmarksResponse, UserBookmarksResponseSchema, type UserLanguage, UserLanguageSchema, type UserListItem, UserListItemSchema, type UserNotFoundError, UserNotFoundErrorSchema, type UserPageResponse, UserPageResponseSchema, type UserPagesResponse, UserPagesResponseSchema, type UserProfileResponse, UserProfileResponseSchema, type UserPublic, UserPublicSchema, UserPublicStatus, UserStatusEnum, type UserStatusError, UserStatusErrorSchema, UserStatusSchema, type UserSubpagesRequest, UserSubpagesRequestSchema, type Username, UsernameSchema, type ValidationError, ValidationErrorSchema, WS_CLOSE_CODES, type WatchStatusResponse, WatchStatusResponseSchema, type WikiLinkResponse, WikiLinkSchema, type WsCloseCode, type WsTokenPayload, WsTokenPayloadSchema, type WsTokenResponse, WsTokenResponseSchema, acceptInviteRoute, accessTokenRoutes, activateAccountRoute, activateUserRoute, activationRoutes, addAttachmentRoute, addBookmarkRoute, addCommentRoute, adminAppRoutes, adminAuthRoutes, adminCryptoRoutes, adminMailRoutes, adminPluginsRoutes, adminSearchRoutes, adminSecurityRoutes, adminStorageRoutes, adminUsersRoutes, appRoutes, attachmentRoutes, authorizeRoute, autocompletePagesRoute, autocompleteRoutes, autocompleteUsersRoute, backlinkRoutes, bookmarkRoutes, callbackFederatedProviderRoute, cancelDraftRoute, claimPageLinkAccessRoute, clearRenderCacheAllRoute, clearRenderCachePluginRoute, clientInfoRoute, commentRoutes, confirmEmailChangeRoute, createAccessTokenRoute, createAdminRoute, createAuthProviderLinkGrantRoute, createClient, createDraftRoute, createPageRoute, deleteAccessTokenRoute, deleteCommentRoute, deletePageRoute, deletePictureRoute, deleteUserRoute, deviceAuthorizeRoute, deviceInfoRoute, deviceVerifyRoute, discoveryRoute, draftRoutes, editUserRoute, emailChangeRoutes, federatedAuthRoutes, federatedHandoffRoute, federatedRegistrationRoutes, forgotPasswordRoute, getAppInfoRoute, getAppSettingsRoute, getAttachmentMetaRoute, getAttachmentUsageRoute, getAuthSettingsRoute, getBacklinksRoute, getBookmarkRoute, getCryptoStatusRoute, getFederatedRegistrationRoute, getInstallerStatusRoute, getLikersRoute, getMailSettingsRoute, getNotificationsTokenRoute, getPageRoute, getPluginConfigRoute, getPluginReadinessRoute, getPresenceTokenRoute, getProfileRoute, getRevisionRoute, getRevisionsRoute, getSearchStatusRoute, getSecuritySettingsRoute, getSeenUsersRoute, getStorageStatusRoute, getUnreadCountRoute, getUserBookmarksRoute, getUserPageRoute, getUserPagesRoute, getUserSubpagesRoute, getWatchStatusRoute, getYjsTokenRoute, installerRoutes, inviteAcceptRoutes, invitePreviewRoute, inviteUsersRoute, isIssuableScope, isScope, likePageRoute, listAccessTokensRoute, listAttachmentsRoute, listCommentsRoute, listDraftsRoute, listFederatedProvidersRoute, listLinkedAuthProvidersRoute, listMembersRoute, listMyBookmarksRoute, listNotificationsRoute, listPageChildrenRoute, listPagesRoute, listPluginsRoute, listRevisionsRoute, listUsersRoute, logoutFederatedRegistrationRoute, makeAdminRoute, markAllAsReadRoute, meRoutes, notificationRoutes, oauthRoutes, openNotificationRoute, pageCollabRoutes, pagePreviewRoutes, pageRoutes, parseScopeClaim, passwordResetRoutes, pendingUsersCountRoute, presenceRoutes, previewPageRoute, recentlyViewedPagesRoute, reencryptAllRoute, removeAttachmentRoute, removeBookmarkRoute, removeFromAdminRoute, renamePageRoute, renameSubtreeRoute, resendInviteRoute, resetPasswordRoute, revertDeletedPageRoute, revertToRevisionRoute, revisionRoutes, revokeRoute, scopeSatisfies, searchPagesRoute, searchRoutes, searchUsersByEmailRoute, seenPageRoute, selfResetPasswordRoute, sendTestMailRoute, setPageGrantRoute, setWatchStatusRoute, startFederatedProviderRoute, stripKnownHtmlTags, submitFederatedRegistrationRoute, suspendUserRoute, tokenAuthRoutes, tokenLoginRoute, tokenLogoutRoute, tokenMeRoute, tokenRefreshRoute, tokenRegisterRoute, tokenRoute, unlikePageRoute, unlinkAuthProviderRoute, unwrapRenderedAst, updateAppSettingsRoute, updateAuthSettingsRoute, updateMailSettingsRoute, updatePageRoute, updatePasswordRoute, updatePluginConfigRoute, updateProfileRoute, updateSecuritySettingsRoute, updateThemeRoute, updateUserEmailRoute, uploadAttachmentRoute, uploadPictureRoute, userRoutes, validateActivationTokenRoute, validateEmailChangeTokenRoute, validateResetTokenRoute };
|
|
52096
|
+
export { ALL_CAPABILITIES, ALL_SCOPES, API_SURFACE_VERSION, AST_INPUT_LIMIT_BYTES, AST_MAX_HAST_DEPTH, AST_MAX_IMAGE_BASE64_CHARS, AST_MAX_TREE_DEPTH, AST_MAX_VALUE_CHARS, AST_OUTPUT_BUDGET_BYTES, AST_OUTPUT_WARN_BYTES, type AccessToken, AccessTokenSchema, type ActivateRequest, ActivateRequestSchema, type ActivateValidationResponse, ActivateValidationResponseSchema, type ActiveSearchDriver, ActiveSearchDriverSchema, type ActiveStorageDriver, ActiveStorageDriverSchema, type AddAttachmentResponse, AddAttachmentResponseSchema, type AddBookmarkRequest, AddBookmarkRequestSchema, type AddCommentRequest, AddCommentRequestSchema, type AddCommentResponse, AddCommentResponseSchema, type AdminPager, AdminPagerSchema, type AdminRequiredError, AdminRequiredErrorSchema, type AdminSettingsContractApp, AdminSidebarSection, type AdminSidebarSectionValue, type AdminUserIdParam, AdminUserIdParamSchema, type AdminUserIdentityParam, AdminUserIdentityParamSchema, type AdminUserListItem, AdminUserListItemSchema, type AdminUserMutationResponse, AdminUserMutationResponseSchema, type AdminUsersPluginsContractApp, type ApiError, ApiErrorSchema, type AppAuthMeUserChain, type AppInfoResponse, AppInfoResponseSchema, type AppSettingsValidationError, AppSettingsValidationErrorSchema, type ApplicationNotInstalledError, ApplicationNotInstalledErrorSchema, type AstChildModel, type AstFieldsValidator, type AstPlacement, type Attachment, type AttachmentError, AttachmentErrorCodeSchema, AttachmentErrorSchema, type AttachmentMeta, AttachmentMetaSchema, AttachmentSchema, type AttachmentUsageResponse, AttachmentUsageResponseSchema, type AuthSettings, AuthSettingsSchema, type AuthenticationRequiredError, AuthenticationRequiredErrorSchema, type AuthorizeRequest, AuthorizeRequestSchema, type AuthorizeResponse, AuthorizeResponseSchema, type AutocompleteRateLimitError, AutocompleteRateLimitErrorSchema, type AutocompleteRequest, AutocompleteRequestSchema, type AutocompleteResponse, AutocompleteResponseSchema, type AutocompleteResult, AutocompleteResultSchema, type Backlink, type BacklinkFromPage, BacklinkFromPageSchema, type BacklinkFromRevision, BacklinkFromRevisionSchema, BacklinkSchema, type Bookmark, type BookmarkBacklinkCommentRevisionChain, type BookmarkResponse, BookmarkResponseSchema, BookmarkSchema, CURRENT_AST_VERSION, type Capability, CapabilitySchema, type ClaimPageLinkAccessResponse, ClaimPageLinkAccessResponseSchema, type ClearRenderCacheResponse, ClearRenderCacheResponseSchema, type ClientInfoResponse, ClientInfoResponseSchema, type ClientOptions, type CollabForceReloadMessage, CollabForceReloadMessageSchema, type CollabSaveError, CollabSaveErrorSchema, type CollabSaveMessage, CollabSaveMessageSchema, type CollabSaveOk, CollabSaveOkSchema, type Comment, type CommentInvalidRequestError, CommentInvalidRequestErrorSchema, type CommentNotFoundError, CommentNotFoundErrorSchema, CommentSchema, type ConfigReadinessIssue, ConfigReadinessIssueSchema, type ConfigReadinessResponse, ConfigReadinessResponseSchema, type ConfirmEmailChangeRequest, ConfirmEmailChangeRequestSchema, type ConfirmEmailChangeResponse, ConfirmEmailChangeResponseSchema, type ConflictError, ConflictErrorSchema, type ContributorRef, ContributorRefSchema, type CreateAccessTokenRequest, CreateAccessTokenRequestSchema, type CreateAccessTokenResponse, CreateAccessTokenResponseSchema, CreateAdminRequestSchema, CreateAdminResponseSchema, type CreateDraftRequest, CreateDraftRequestSchema, type CreateDraftResponse, CreateDraftResponseSchema, CreateLinkGrantRequestSchema, CreateLinkGrantResponseSchema, type CreatePageRequest, CreatePageRequestSchema, type CrowiApiClient, type CrowiCodeSidecar, CrowiCodeSidecarSchema, CrowiDiagramNodeSchema, type CrowiDiagramSidecar, CrowiDiagramSidecarSchema, CrowiDimensionSchema, type CrowiFrontmatterEntry, CrowiFrontmatterEntrySchema, type CrowiImagePayload, CrowiImagePayloadSchema, CrowiLinkCardNodeSchema, type CrowiLinkCardSidecar, CrowiLinkCardSidecarSchema, type CrowiMathSidecar, CrowiMathSidecarSchema, CrowiOpaqueNodeSchema, type CrowiPlaceholderKind, CrowiPlaceholderKindSchema, CrowiPlaceholderNodeSchema, type CrowiPlaceholderSidecar, CrowiPlaceholderSidecarSchema, type CryptoStatusResponse, CryptoStatusResponseSchema, DEVICE_CODE_GRANT_TYPE, DISCOVERY_SCOPES_SUPPORTED, DYNAMIC_CAPABILITIES, type DeleteAdminUserResponse, DeleteAdminUserResponseSchema, type DeleteCommentRequest, DeleteCommentRequestSchema, type DeleteCommentResponse, DeleteCommentResponseSchema, type DeviceAuthorizeRequest, DeviceAuthorizeRequestSchema, type DeviceAuthorizeResponse, DeviceAuthorizeResponseSchema, type DeviceInfoResponse, DeviceInfoResponseSchema, type DeviceVerifyRequest, DeviceVerifyRequestSchema, type DeviceVerifyResponse, DeviceVerifyResponseSchema, type DiscoveryResponse, DiscoveryResponseSchema, type DraftBadRequestError, DraftBadRequestErrorSchema, type DraftConflictOwner, DraftConflictOwnerSchema, type DraftNotFoundError, DraftNotFoundErrorSchema, type DraftPathConflictError, DraftPathConflictErrorSchema, type DraftSummary, DraftSummarySchema, ERROR_CODES, type EditAdminUserRequest, EditAdminUserRequestSchema, type EmailLockedByFederatedIdentityError, EmailLockedByFederatedIdentityErrorSchema, type EncryptionNotConfiguredError, EncryptionNotConfiguredErrorSchema, type ErrorCode, ErrorCodeSchema, FRONTMATTER_MAX_ENTRIES, FRONTMATTER_MAX_KEY_CHARS, FRONTMATTER_MAX_RAW_BYTES, FRONTMATTER_MAX_VALUE_CHARS, type FederatedAuthContractApp, FederatedHandoffRequestSchema, FederatedHandoffResponseSchema, FederatedProviderSchema, FederatedRegistrationActiveResultSchema, FederatedRegistrationApprovalResultSchema, type FederatedRegistrationContractApp, FederatedRegistrationResultSchema, FederatedRegistrationSnapshotSchema, FederatedRegistrationSubmitRequestSchema, type ForbiddenError, ForbiddenErrorSchema, type ForgotPasswordRequest, ForgotPasswordRequestSchema, type ForgotPasswordResponse, ForgotPasswordResponseSchema, GRANT_TYPES_SUPPORTED, type GetAppSettingsResponse, GetAppSettingsResponseSchema, type GetAuthSettingsResponse, GetAuthSettingsResponseSchema, type GetBacklinksRequest, GetBacklinksRequestSchema, type GetBacklinksResponse, GetBacklinksResponseSchema, type GetBookmarkRequest, GetBookmarkRequestSchema, type GetLikersRequest, GetLikersRequestSchema, type GetMailSettingsResponse, GetMailSettingsResponseSchema, type GetPageRequest, GetPageRequestSchema, type GetPageResponse, GetPageResponseSchema, type GetRevisionResponse, GetRevisionResponseSchema, type GetRevisionsRequest, GetRevisionsRequestSchema, type GetRevisionsResponse, GetRevisionsResponseSchema, type GetSearchStatusResponse, GetSearchStatusResponseSchema, type GetSecuritySettingsResponse, GetSecuritySettingsResponseSchema, type GetSeenUsersRequest, GetSeenUsersRequestSchema, type GetStorageStatusResponse, GetStorageStatusResponseSchema, type GetWatchStatusRequest, GetWatchStatusRequestSchema, type HChild, HChildSchema, HChildrenSchema, HNameSchema, HPropertiesSchema, type HastHintData, HastHintDataSchema, ISSUABLE_SCOPES, InstallerStatusResponseSchema, type InsufficientScopeError, InsufficientScopeErrorSchema, type InternalServerError, InternalServerErrorSchema, type InvalidPageIdError, InvalidPageIdErrorSchema, type InvalidScopeError, InvalidScopeErrorSchema, type InviteAcceptRequest, InviteAcceptRequestSchema, type InvitePreviewResponse, InvitePreviewResponseSchema, type InviteUsersRequest, InviteUsersRequestSchema, type InviteUsersResponse, InviteUsersResponseSchema, type InvitedUserResult, InvitedUserResultSchema, KNOWN_HTML_ELEMENTS, type Language, LanguageSchema, type LateContractApp, type Liker, LikerSchema, type LikersResponse, LikersResponseSchema, LinkedAuthProviderListResponseSchema, type ListAccessTokensResponse, ListAccessTokensResponseSchema, type ListAdminUsersRequest, ListAdminUsersRequestSchema, type ListAdminUsersResponse, ListAdminUsersResponseSchema, type ListAttachmentsResponse, ListAttachmentsResponseSchema, type ListCommentsRequest, ListCommentsRequestSchema, type ListCommentsResponse, ListCommentsResponseSchema, type ListDraftsResponse, ListDraftsResponseSchema, type ListMyBookmarksResponse, ListMyBookmarksResponseSchema, type ListNotificationsRequest, ListNotificationsRequestSchema, type ListNotificationsResponse, ListNotificationsResponseSchema, type ListPageChildrenRequest, ListPageChildrenRequestSchema, type ListPageChildrenResponse, ListPageChildrenResponseSchema, type ListPagesRequest, ListPagesRequestSchema, type ListPagesResponse, ListPagesResponseSchema, type ListPagesSort, type ListPluginsResponse, ListPluginsResponseSchema, type ListRevisionsRequest, ListRevisionsRequestSchema, type ListRevisionsResponse, ListRevisionsResponseSchema, type ListUsersRequest, ListUsersRequestSchema, type ListUsersResponse, ListUsersResponseSchema, LooseRenderedAstRootSchema, type MailSettingsValidationError, MailSettingsValidationErrorSchema, type MailTokenPayload, MailTokenPayloadSchema, type MailTokenPurpose, MailTokenPurposeSchema, type MarkAllAsReadResponse, MarkAllAsReadResponseSchema, type MentionResponse, MentionSchema, type NotFoundError, NotFoundErrorSchema, type Notification, type NotificationAction, NotificationActionEnum, NotificationActionSchema, type NotificationNotFoundError, NotificationNotFoundErrorSchema, NotificationSchema, type NotificationStatus, NotificationStatusEnum, type NotificationStatusResponse, NotificationStatusResponseSchema, NotificationStatusSchema, type NotificationTargetModel, NotificationTargetModelEnum, NotificationTargetModelSchema, type NotificationsChangedMessage, NotificationsChangedMessageSchema, type NotificationsServerMessage, NotificationsServerMessageSchema, type NotificationsTokenPayload, NotificationsTokenPayloadSchema, type NotificationsTokenResponse, NotificationsTokenResponseSchema, OAUTH_ERROR_CODES, type OAuthContractApp, type OAuthError, type OAuthErrorCode, OAuthErrorSchema, type OpenNotificationParam, OpenNotificationParamSchema, type OpenNotificationResponse, OpenNotificationResponseSchema, type Page, type PageChain, type PageChildSegment, PageChildSegmentSchema, PageExtendedSchema, PageGrantEnum, PageGrantSchema, type PageNotFoundError, PageNotFoundErrorSchema, type PageNotGrantedError, PageNotGrantedErrorSchema, type PageRef, PageRefSchema, type PageRevisionError, PageRevisionErrorSchema, PageSchema, PageStatusEnum, PageStatusSchema, PageTypeEnum, PageTypeSchema, type PageUser, PageUserSchema, type PageWithRevision, PageWithRevisionSchema, type Pager, PagerSchema, type PaginationRequest, PaginationRequestSchema, type PasswordErrorResponse, PasswordErrorResponseSchema, type PasswordUpdateSuccess, PasswordUpdateSuccessSchema, type PastAttachmentUsage, PastAttachmentUsageSchema, type PendingUsersCountResponse, PendingUsersCountResponseSchema, type PictureUploadResponse, PictureUploadResponseSchema, type PluginAdminPlacement, PluginAdminPlacementSchema, type PluginConfigResponse, PluginConfigResponseSchema, type PluginConfigValidationError, PluginConfigValidationErrorSchema, type PluginField, PluginFieldSchema, type PluginInfo, PluginInfoSchema, type PluginNotFoundError, PluginNotFoundErrorSchema, type PluginReadinessField, PluginReadinessFieldSchema, type PresenceClientMessage, PresenceClientMessageSchema, type PresenceCommentChangedMessage, PresenceCommentChangedMessageSchema, type PresenceHeartbeatMessage, PresenceHeartbeatMessageSchema, type PresencePageUpdatedMessage, PresencePageUpdatedMessageSchema, type PresenceServerMessage, PresenceServerMessageSchema, type PresenceTokenPayload, PresenceTokenPayloadSchema, type PresenceTokenResponse, PresenceTokenResponseSchema, type PresenceViewer, PresenceViewerSchema, type PresenceViewersMessage, PresenceViewersMessageSchema, type PreviewPageRequest, PreviewPageRequestSchema, type PreviewPageResponse, PreviewPageResponseSchema, type ProfileErrorResponse, ProfileErrorResponseSchema, ProviderListResponseSchema, RENDERED_AST_NODE_DEFS, type RecentlyViewedPagesResponse, RecentlyViewedPagesResponseSchema, type ReencryptResponse, ReencryptResponseSchema, RefreshTokenRequestSchema, type RegisterPendingResponse, RegisterPendingResponseSchema, type RegistrationMode, RegistrationModeSchema, type RemoveAttachmentResponse, RemoveAttachmentResponseSchema, type RemoveBookmarkRequest, RemoveBookmarkRequestSchema, type RemoveBookmarkResponse, RemoveBookmarkResponseSchema, type RenamePageRequest, RenamePageRequestSchema, type RenamePageResponse, RenamePageResponseSchema, type RenameSubtreeRequest, RenameSubtreeRequestSchema, type RenameSubtreeResponse, RenameSubtreeResponseSchema, type RenameTreeError, RenameTreeErrorSchema, RenderedAstArtifactKeySchema, type RenderedAstEnvelope, RenderedAstEnvelopeOpenApiSchema, RenderedAstEnvelopeSchema, type RenderedAstNode, type RenderedAstNodeDef, RenderedAstNodeSchema, RenderedAstRootSchema, type RenderedAstValue, RenderedAstValueSchema, ReservationSchema, type ReservationShape, type ResetPasswordRequest, ResetPasswordRequestSchema, type ResetPasswordResponse, ResetPasswordResponseSchema, type RevertToRevisionRequest, RevertToRevisionRequestSchema, type Revision, type RevisionInvalidRequestError, RevisionInvalidRequestErrorSchema, type RevisionMeta, RevisionMetaSchema, RevisionMetaSchemaShape, type RevisionMetaShape, RevisionSchema, type RevisionType, RevisionTypeSchema, type RevokeRequest, RevokeRequestSchema, type RevokeResponse, RevokeResponseSchema, SCOPES, SIDECAR_KEYS, STATIC_CAPABILITIES, STRIP_KNOWN_HTML_TAGS_MAX_LENGTH, type Scope, type SearchAdminUsersByEmailRequest, SearchAdminUsersByEmailRequestSchema, type SearchAdminUsersByEmailResponse, SearchAdminUsersByEmailResponseSchema, type SearchDriverEntry, SearchDriverEntrySchema, type SearchHit, SearchHitSchema, type SearchPageType, SearchPageTypeSchema, type SearchPagesRequest, SearchPagesRequestSchema, type SearchPagesResponse, SearchPagesResponseSchema, type SecuritySettings, SecuritySettingsSchema, type SeenPageRequest, SeenPageRequestSchema, type SeenUsersResponse, SeenUsersResponseSchema, type SendTestMailError, SendTestMailErrorSchema, type SendTestMailRequest, SendTestMailRequestSchema, type SendTestMailResponse, SendTestMailResponseSchema, SenderProofSchema, SenderPublicJwkSchema, type SensitiveConfigEntry, SensitiveConfigEntrySchema, type ServiceUnavailableError, ServiceUnavailableErrorSchema, type SetPageGrantRequest, SetPageGrantRequestSchema, type SetWatchStatusRequest, SetWatchStatusRequestSchema, type ShikiToken, ShikiTokenLinesSchema, ShikiTokenSchema, ShikiTokenStyleSchema, type SidecarKey, type StorageDriverEntry, StorageDriverEntrySchema, type SuccessResponse, SuccessResponseSchema, type Theme, ThemeSchema, type ThemeUpdateResponse, ThemeUpdateResponseSchema, type ThirdPartyAuthRequiredError, ThirdPartyAuthRequiredErrorSchema, type ThirdPartyAuthUnavailableError, ThirdPartyAuthUnavailableErrorSchema, type TocEntryResponse, TocEntrySchema, TokenAuthLoginRequestSchema, TokenAuthRegisterRequestSchema, TokenAuthResponseSchema, type TokenRequest, TokenRequestSchema, type TokenResponse, TokenResponseSchema, UPLOAD_ALLOWED_MIME, UnlinkAuthProviderErrorSchema, type UnlinkUserIdentityConflictError, UnlinkUserIdentityConflictErrorSchema, type UnlinkUserIdentityNotFoundError, UnlinkUserIdentityNotFoundErrorSchema, type UnlinkUserIdentityResponse, UnlinkUserIdentityResponseSchema, type UpdateAdminUserEmailRequest, UpdateAdminUserEmailRequestSchema, type UpdateAppSettingsRequest, UpdateAppSettingsRequestSchema, type UpdateAppSettingsResponse, UpdateAppSettingsResponseSchema, type UpdateAuthSettingsRequest, UpdateAuthSettingsRequestSchema, type UpdateAuthSettingsResponse, UpdateAuthSettingsResponseSchema, type UpdateMailSettingsRequest, UpdateMailSettingsRequestSchema, type UpdateMailSettingsResponse, UpdateMailSettingsResponseSchema, type UpdatePageRequest, UpdatePageRequestSchema, type UpdatePasswordRequest, UpdatePasswordRequestSchema, type UpdatePluginConfigRequest, UpdatePluginConfigRequestSchema, type UpdatePluginConfigResponse, UpdatePluginConfigResponseSchema, type UpdateProfileRequest, UpdateProfileRequestSchema, type UpdateSecuritySettingsRequest, UpdateSecuritySettingsRequestSchema, type UpdateSecuritySettingsResponse, UpdateSecuritySettingsResponseSchema, type UpdateThemeRequest, UpdateThemeRequestSchema, type UploadAttachmentError, type UploadAttachmentErrorCode, UploadAttachmentErrorCodeSchema, UploadAttachmentErrorSchema, type UploadAttachmentResponse, UploadAttachmentResponseSchema, type UploadPolicyResponse, UploadPolicyResponseSchema, type UserBookmarksResponse, UserBookmarksResponseSchema, type UserLanguage, UserLanguageSchema, type UserListItem, UserListItemSchema, type UserNotFoundError, UserNotFoundErrorSchema, type UserPageResponse, UserPageResponseSchema, type UserPagesResponse, UserPagesResponseSchema, type UserProfileResponse, UserProfileResponseSchema, type UserPublic, UserPublicSchema, UserPublicStatus, UserStatusEnum, type UserStatusError, UserStatusErrorSchema, UserStatusSchema, type UserSubpagesRequest, UserSubpagesRequestSchema, type Username, UsernameSchema, type ValidationError, ValidationErrorSchema, WS_CLOSE_CODES, type WatchStatusResponse, WatchStatusResponseSchema, type WikiLinkResponse, WikiLinkSchema, type WsCloseCode, type WsTokenPayload, WsTokenPayloadSchema, type WsTokenResponse, WsTokenResponseSchema, acceptInviteRoute, accessTokenRoutes, activateAccountRoute, activateUserRoute, activationRoutes, addAttachmentRoute, addBookmarkRoute, addCommentRoute, adminAppRoutes, adminAuthRoutes, adminCryptoRoutes, adminMailRoutes, adminPluginsRoutes, adminSearchRoutes, adminSecurityRoutes, adminStorageRoutes, adminUsersRoutes, appRoutes, attachmentRoutes, authorizeRoute, autocompletePagesRoute, autocompleteRoutes, autocompleteUsersRoute, backlinkRoutes, bookmarkRoutes, callbackFederatedProviderRoute, cancelDraftRoute, claimPageLinkAccessRoute, clearRenderCacheAllRoute, clearRenderCachePluginRoute, clientInfoRoute, commentRoutes, confirmEmailChangeRoute, createAccessTokenRoute, createAdminRoute, createAuthProviderLinkGrantRoute, createClient, createDraftRoute, createPageRoute, deleteAccessTokenRoute, deleteCommentRoute, deletePageRoute, deletePictureRoute, deleteUserRoute, deviceAuthorizeRoute, deviceInfoRoute, deviceVerifyRoute, discoveryRoute, draftRoutes, editUserRoute, emailChangeRoutes, federatedAuthRoutes, federatedHandoffRoute, federatedRegistrationRoutes, forgotPasswordRoute, getAppInfoRoute, getAppSettingsRoute, getAttachmentMetaRoute, getAttachmentUsageRoute, getAuthSettingsRoute, getBacklinksRoute, getBookmarkRoute, getCryptoStatusRoute, getFederatedRegistrationRoute, getInstallerStatusRoute, getLikersRoute, getMailSettingsRoute, getNotificationsTokenRoute, getPageRoute, getPluginConfigRoute, getPluginReadinessRoute, getPresenceTokenRoute, getProfileRoute, getRevisionRoute, getRevisionsRoute, getSearchStatusRoute, getSecuritySettingsRoute, getSeenUsersRoute, getStorageStatusRoute, getUnreadCountRoute, getUploadPolicyRoute, getUserBookmarksRoute, getUserPageRoute, getUserPagesRoute, getUserSubpagesRoute, getWatchStatusRoute, getYjsTokenRoute, installerRoutes, inviteAcceptRoutes, invitePreviewRoute, inviteUsersRoute, isIssuableScope, isScope, likePageRoute, listAccessTokensRoute, listAttachmentsRoute, listCommentsRoute, listDraftsRoute, listFederatedProvidersRoute, listLinkedAuthProvidersRoute, listMembersRoute, listMyBookmarksRoute, listNotificationsRoute, listPageChildrenRoute, listPagesRoute, listPluginsRoute, listRevisionsRoute, listUsersRoute, logoutFederatedRegistrationRoute, makeAdminRoute, markAllAsReadRoute, meRoutes, notificationRoutes, oauthRoutes, openNotificationRoute, pageCollabRoutes, pagePreviewRoutes, pageRoutes, parseScopeClaim, passwordResetRoutes, pendingUsersCountRoute, presenceRoutes, previewPageRoute, recentlyViewedPagesRoute, reencryptAllRoute, removeAttachmentRoute, removeBookmarkRoute, removeFromAdminRoute, renamePageRoute, renameSubtreeRoute, resendInviteRoute, resetPasswordRoute, revertDeletedPageRoute, revertToRevisionRoute, revisionRoutes, revokeRoute, scopeSatisfies, searchPagesRoute, searchRoutes, searchUsersByEmailRoute, seenPageRoute, selfResetPasswordRoute, sendTestMailRoute, setPageGrantRoute, setWatchStatusRoute, startFederatedProviderRoute, stripKnownHtmlTags, submitFederatedRegistrationRoute, suspendUserRoute, tokenAuthRoutes, tokenLoginRoute, tokenLogoutRoute, tokenMeRoute, tokenRefreshRoute, tokenRegisterRoute, tokenRoute, unlikePageRoute, unlinkAuthProviderRoute, unlinkUserIdentityRoute, unwrapRenderedAst, updateAppSettingsRoute, updateAuthSettingsRoute, updateMailSettingsRoute, updatePageRoute, updatePasswordRoute, updatePluginConfigRoute, updateProfileRoute, updateSecuritySettingsRoute, updateThemeRoute, updateUserEmailRoute, uploadAttachmentRoute, uploadPictureRoute, userRoutes, validateActivationTokenRoute, validateEmailChangeTokenRoute, validateResetTokenRoute };
|