@crowi/api 2.0.0-alpha.0 → 2.0.0-alpha.1
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/hono/handlers/access-token.d.ts +55 -55
- package/dist/hono/handlers/activation.d.ts +27 -27
- package/dist/hono/handlers/admin/app.d.ts +26 -26
- package/dist/hono/handlers/admin/auth.d.ts +24 -24
- package/dist/hono/handlers/admin/mail.d.ts +30 -30
- package/dist/hono/handlers/admin/plugins.d.ts +112 -112
- package/dist/hono/handlers/admin/search.d.ts +21 -21
- package/dist/hono/handlers/admin/security.d.ts +24 -24
- package/dist/hono/handlers/admin/storage.d.ts +19 -19
- package/dist/hono/handlers/admin/users.d.ts +305 -305
- package/dist/hono/handlers/adminCrypto.d.ts +32 -32
- package/dist/hono/handlers/app.d.ts +11 -8
- package/dist/hono/handlers/app.js +31 -1
- package/dist/hono/handlers/app.js.map +1 -1
- package/dist/hono/handlers/attachment.d.ts +180 -180
- package/dist/hono/handlers/autocomplete.d.ts +45 -45
- package/dist/hono/handlers/backlink.d.ts +33 -33
- package/dist/hono/handlers/bookmark.d.ts +95 -95
- package/dist/hono/handlers/comment.d.ts +55 -55
- package/dist/hono/handlers/draft.d.ts +27 -27
- package/dist/hono/handlers/emailChange.d.ts +25 -25
- package/dist/hono/handlers/installer.d.ts +16 -16
- package/dist/hono/handlers/inviteAccept.d.ts +37 -37
- package/dist/hono/handlers/me.d.ts +92 -92
- package/dist/hono/handlers/notification.d.ts +94 -94
- package/dist/hono/handlers/oauth.d.ts +58 -58
- package/dist/hono/handlers/page-collab.d.ts +20 -20
- package/dist/hono/handlers/page-preview.d.ts +7 -7
- package/dist/hono/handlers/page.d.ts +333 -333
- package/dist/hono/handlers/passwordReset.d.ts +37 -37
- package/dist/hono/handlers/presence.d.ts +44 -44
- package/dist/hono/handlers/revision.d.ts +99 -99
- package/dist/hono/handlers/search.d.ts +64 -64
- package/dist/hono/handlers/tokenAuth.d.ts +80 -80
- package/dist/hono/handlers/user.d.ts +102 -102
- package/dist/hono/handlers/user.js +15 -5
- package/dist/hono/handlers/user.js.map +1 -1
- package/dist/hono/index.d.ts +94 -94
- package/dist/mcp/result.d.ts +15 -0
- package/dist/mcp/result.js +20 -1
- package/dist/mcp/result.js.map +1 -1
- package/dist/mcp/tools/page.js +9 -4
- package/dist/mcp/tools/page.js.map +1 -1
- package/dist/migration/migrations/index.js +2 -0
- package/dist/migration/migrations/index.js.map +1 -1
- package/dist/migration/migrations/relocate-reserved-api-paths.d.ts +3 -0
- package/dist/migration/migrations/relocate-reserved-api-paths.js +135 -0
- package/dist/migration/migrations/relocate-reserved-api-paths.js.map +1 -0
- package/dist/models/page.js +9 -2
- package/dist/models/page.js.map +1 -1
- package/dist/util/replace-url.d.ts +85 -0
- package/dist/util/replace-url.js +251 -0
- package/dist/util/replace-url.js.map +1 -0
- package/package.json +6 -4
- package/public/images/file-not-found.png +0 -0
- package/views/mail/activation.mjml +9 -0
- package/views/mail/activation.text +13 -0
- package/views/mail/adminApprovalPending.mjml +7 -0
- package/views/mail/adminApprovalPending.text +11 -0
- package/views/mail/emailChange.mjml +9 -0
- package/views/mail/emailChange.text +13 -0
- package/views/mail/invite.mjml +9 -0
- package/views/mail/invite.text +13 -0
- package/views/mail/layout.mjml +36 -0
- package/views/mail/passwordChanged.mjml +4 -0
- package/views/mail/passwordChanged.text +9 -0
- package/views/mail/passwordReset.mjml +9 -0
- package/views/mail/passwordReset.text +13 -0
- package/views/mail/test.mjml +2 -0
- package/views/mail/test.text +7 -0
|
@@ -4,6 +4,39 @@ import type { CrowiHonoBindings } from '../app';
|
|
|
4
4
|
export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBindings>>(app: E, crowi: Crowi) => OpenAPIHono<CrowiHonoBindings, {
|
|
5
5
|
"/pages": {
|
|
6
6
|
$get: {
|
|
7
|
+
input: {
|
|
8
|
+
query: {
|
|
9
|
+
path?: string | undefined;
|
|
10
|
+
page_id?: string | undefined;
|
|
11
|
+
revision_id?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
output: {
|
|
15
|
+
error: {
|
|
16
|
+
code: "PAGE_NOT_FOUND";
|
|
17
|
+
message: "Page not found";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
outputFormat: "json";
|
|
21
|
+
status: 404;
|
|
22
|
+
} | {
|
|
23
|
+
input: {
|
|
24
|
+
query: {
|
|
25
|
+
path?: string | undefined;
|
|
26
|
+
page_id?: string | undefined;
|
|
27
|
+
revision_id?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
output: {
|
|
31
|
+
error: {
|
|
32
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
33
|
+
message: "Authentication is required";
|
|
34
|
+
redirectTo?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
outputFormat: "json";
|
|
38
|
+
status: 401;
|
|
39
|
+
} | {
|
|
7
40
|
input: {
|
|
8
41
|
query: {
|
|
9
42
|
path?: string | undefined;
|
|
@@ -74,7 +107,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
74
107
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
75
108
|
};
|
|
76
109
|
redirectTo?: string | null | undefined;
|
|
77
|
-
status?: "
|
|
110
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
78
111
|
grant?: number | undefined;
|
|
79
112
|
grantedUsers?: string[] | undefined;
|
|
80
113
|
liker?: string[] | undefined;
|
|
@@ -109,23 +142,6 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
109
142
|
};
|
|
110
143
|
outputFormat: "json";
|
|
111
144
|
status: 200;
|
|
112
|
-
} | {
|
|
113
|
-
input: {
|
|
114
|
-
query: {
|
|
115
|
-
path?: string | undefined;
|
|
116
|
-
page_id?: string | undefined;
|
|
117
|
-
revision_id?: string | undefined;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
output: {
|
|
121
|
-
error: {
|
|
122
|
-
code: "AUTHENTICATION_REQUIRED";
|
|
123
|
-
message: "Authentication is required";
|
|
124
|
-
redirectTo?: string | undefined;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
outputFormat: "json";
|
|
128
|
-
status: 401;
|
|
129
145
|
} | {
|
|
130
146
|
input: {
|
|
131
147
|
query: {
|
|
@@ -142,27 +158,32 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
142
158
|
};
|
|
143
159
|
outputFormat: "json";
|
|
144
160
|
status: 403;
|
|
145
|
-
}
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
} & {
|
|
164
|
+
"/pages/list": {
|
|
165
|
+
$get: {
|
|
146
166
|
input: {
|
|
147
167
|
query: {
|
|
148
168
|
path?: string | undefined;
|
|
149
|
-
|
|
150
|
-
|
|
169
|
+
user?: string | undefined;
|
|
170
|
+
limit?: unknown;
|
|
171
|
+
offset?: unknown;
|
|
172
|
+
include_deleted?: unknown;
|
|
173
|
+
sort?: "path" | "createdAt" | "updatedAt" | undefined;
|
|
174
|
+
order?: "asc" | "desc" | undefined;
|
|
151
175
|
};
|
|
152
176
|
};
|
|
153
177
|
output: {
|
|
154
178
|
error: {
|
|
155
|
-
code: "
|
|
156
|
-
message: "
|
|
179
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
180
|
+
message: "Authentication is required";
|
|
181
|
+
redirectTo?: string | undefined;
|
|
157
182
|
};
|
|
158
183
|
};
|
|
159
184
|
outputFormat: "json";
|
|
160
|
-
status:
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
} & {
|
|
164
|
-
"/pages/list": {
|
|
165
|
-
$get: {
|
|
185
|
+
status: 401;
|
|
186
|
+
} | {
|
|
166
187
|
input: {
|
|
167
188
|
query: {
|
|
168
189
|
path?: string | undefined;
|
|
@@ -237,7 +258,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
237
258
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
238
259
|
} | undefined;
|
|
239
260
|
redirectTo?: string | null | undefined;
|
|
240
|
-
status?: "
|
|
261
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
241
262
|
grant?: number | undefined;
|
|
242
263
|
grantedUsers?: string[] | undefined;
|
|
243
264
|
creator?: string | {
|
|
@@ -336,7 +357,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
336
357
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
337
358
|
} | undefined;
|
|
338
359
|
redirectTo?: string | null | undefined;
|
|
339
|
-
status?: "
|
|
360
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
340
361
|
grant?: number | undefined;
|
|
341
362
|
grantedUsers?: string[] | undefined;
|
|
342
363
|
creator?: string | {
|
|
@@ -371,16 +392,14 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
371
392
|
};
|
|
372
393
|
outputFormat: "json";
|
|
373
394
|
status: 200;
|
|
374
|
-
}
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
} & {
|
|
398
|
+
"/pages/children": {
|
|
399
|
+
$get: {
|
|
375
400
|
input: {
|
|
376
401
|
query: {
|
|
377
|
-
path
|
|
378
|
-
user?: string | undefined;
|
|
379
|
-
limit?: unknown;
|
|
380
|
-
offset?: unknown;
|
|
381
|
-
include_deleted?: unknown;
|
|
382
|
-
sort?: "path" | "createdAt" | "updatedAt" | undefined;
|
|
383
|
-
order?: "asc" | "desc" | undefined;
|
|
402
|
+
path: string;
|
|
384
403
|
};
|
|
385
404
|
};
|
|
386
405
|
output: {
|
|
@@ -392,11 +411,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
392
411
|
};
|
|
393
412
|
outputFormat: "json";
|
|
394
413
|
status: 401;
|
|
395
|
-
}
|
|
396
|
-
};
|
|
397
|
-
} & {
|
|
398
|
-
"/pages/children": {
|
|
399
|
-
$get: {
|
|
414
|
+
} | {
|
|
400
415
|
input: {
|
|
401
416
|
query: {
|
|
402
417
|
path: string;
|
|
@@ -413,10 +428,32 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
413
428
|
};
|
|
414
429
|
outputFormat: "json";
|
|
415
430
|
status: 200;
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
} & {
|
|
434
|
+
"/pages": {
|
|
435
|
+
$post: {
|
|
436
|
+
input: {
|
|
437
|
+
json: {
|
|
438
|
+
path: string;
|
|
439
|
+
body: string;
|
|
440
|
+
grant?: number | undefined;
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
output: {
|
|
444
|
+
error: {
|
|
445
|
+
code: string;
|
|
446
|
+
message: string;
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
outputFormat: "json";
|
|
450
|
+
status: 400;
|
|
416
451
|
} | {
|
|
417
452
|
input: {
|
|
418
|
-
|
|
453
|
+
json: {
|
|
419
454
|
path: string;
|
|
455
|
+
body: string;
|
|
456
|
+
grant?: number | undefined;
|
|
420
457
|
};
|
|
421
458
|
};
|
|
422
459
|
output: {
|
|
@@ -428,11 +465,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
428
465
|
};
|
|
429
466
|
outputFormat: "json";
|
|
430
467
|
status: 401;
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
} & {
|
|
434
|
-
"/pages": {
|
|
435
|
-
$post: {
|
|
468
|
+
} | {
|
|
436
469
|
input: {
|
|
437
470
|
json: {
|
|
438
471
|
path: string;
|
|
@@ -503,7 +536,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
503
536
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
504
537
|
} | undefined;
|
|
505
538
|
redirectTo?: string | null | undefined;
|
|
506
|
-
status?: "
|
|
539
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
507
540
|
grant?: number | undefined;
|
|
508
541
|
grantedUsers?: string[] | undefined;
|
|
509
542
|
creator?: string | {
|
|
@@ -538,11 +571,33 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
538
571
|
};
|
|
539
572
|
outputFormat: "json";
|
|
540
573
|
status: 200;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
} & {
|
|
577
|
+
"/pages": {
|
|
578
|
+
$put: {
|
|
579
|
+
input: {
|
|
580
|
+
json: {
|
|
581
|
+
page_id: string;
|
|
582
|
+
body: string;
|
|
583
|
+
revision_id?: string | undefined;
|
|
584
|
+
grant?: number | undefined;
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
output: {
|
|
588
|
+
error: {
|
|
589
|
+
code: "PAGE_NOT_FOUND";
|
|
590
|
+
message: "Page not found";
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
outputFormat: "json";
|
|
594
|
+
status: 404;
|
|
541
595
|
} | {
|
|
542
596
|
input: {
|
|
543
597
|
json: {
|
|
544
|
-
|
|
598
|
+
page_id: string;
|
|
545
599
|
body: string;
|
|
600
|
+
revision_id?: string | undefined;
|
|
546
601
|
grant?: number | undefined;
|
|
547
602
|
};
|
|
548
603
|
};
|
|
@@ -557,8 +612,9 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
557
612
|
} | {
|
|
558
613
|
input: {
|
|
559
614
|
json: {
|
|
560
|
-
|
|
615
|
+
page_id: string;
|
|
561
616
|
body: string;
|
|
617
|
+
revision_id?: string | undefined;
|
|
562
618
|
grant?: number | undefined;
|
|
563
619
|
};
|
|
564
620
|
};
|
|
@@ -571,11 +627,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
571
627
|
};
|
|
572
628
|
outputFormat: "json";
|
|
573
629
|
status: 401;
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
|
-
} & {
|
|
577
|
-
"/pages": {
|
|
578
|
-
$put: {
|
|
630
|
+
} | {
|
|
579
631
|
input: {
|
|
580
632
|
json: {
|
|
581
633
|
page_id: string;
|
|
@@ -647,7 +699,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
647
699
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
648
700
|
} | undefined;
|
|
649
701
|
redirectTo?: string | null | undefined;
|
|
650
|
-
status?: "
|
|
702
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
651
703
|
grant?: number | undefined;
|
|
652
704
|
grantedUsers?: string[] | undefined;
|
|
653
705
|
creator?: string | {
|
|
@@ -693,69 +745,63 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
693
745
|
};
|
|
694
746
|
output: {
|
|
695
747
|
error: {
|
|
696
|
-
code:
|
|
748
|
+
code: "PAGE_REVISION_ERROR";
|
|
697
749
|
message: string;
|
|
698
750
|
};
|
|
699
751
|
};
|
|
700
752
|
outputFormat: "json";
|
|
701
|
-
status:
|
|
702
|
-
}
|
|
753
|
+
status: 409;
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
} & {
|
|
757
|
+
"/pages/grant": {
|
|
758
|
+
$put: {
|
|
703
759
|
input: {
|
|
704
760
|
json: {
|
|
705
761
|
page_id: string;
|
|
706
|
-
|
|
707
|
-
revision_id?: string | undefined;
|
|
708
|
-
grant?: number | undefined;
|
|
762
|
+
grant: number;
|
|
709
763
|
};
|
|
710
764
|
};
|
|
711
765
|
output: {
|
|
712
766
|
error: {
|
|
713
|
-
code: "
|
|
714
|
-
message: "
|
|
715
|
-
redirectTo?: string | undefined;
|
|
767
|
+
code: "PAGE_NOT_FOUND";
|
|
768
|
+
message: "Page not found";
|
|
716
769
|
};
|
|
717
770
|
};
|
|
718
771
|
outputFormat: "json";
|
|
719
|
-
status:
|
|
772
|
+
status: 404;
|
|
720
773
|
} | {
|
|
721
774
|
input: {
|
|
722
775
|
json: {
|
|
723
776
|
page_id: string;
|
|
724
|
-
|
|
725
|
-
revision_id?: string | undefined;
|
|
726
|
-
grant?: number | undefined;
|
|
777
|
+
grant: number;
|
|
727
778
|
};
|
|
728
779
|
};
|
|
729
780
|
output: {
|
|
730
781
|
error: {
|
|
731
|
-
code:
|
|
732
|
-
message:
|
|
782
|
+
code: string;
|
|
783
|
+
message: string;
|
|
733
784
|
};
|
|
734
785
|
};
|
|
735
786
|
outputFormat: "json";
|
|
736
|
-
status:
|
|
787
|
+
status: 400;
|
|
737
788
|
} | {
|
|
738
789
|
input: {
|
|
739
790
|
json: {
|
|
740
791
|
page_id: string;
|
|
741
|
-
|
|
742
|
-
revision_id?: string | undefined;
|
|
743
|
-
grant?: number | undefined;
|
|
792
|
+
grant: number;
|
|
744
793
|
};
|
|
745
794
|
};
|
|
746
795
|
output: {
|
|
747
796
|
error: {
|
|
748
|
-
code: "
|
|
749
|
-
message:
|
|
797
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
798
|
+
message: "Authentication is required";
|
|
799
|
+
redirectTo?: string | undefined;
|
|
750
800
|
};
|
|
751
801
|
};
|
|
752
802
|
outputFormat: "json";
|
|
753
|
-
status:
|
|
754
|
-
}
|
|
755
|
-
};
|
|
756
|
-
} & {
|
|
757
|
-
"/pages/grant": {
|
|
758
|
-
$put: {
|
|
803
|
+
status: 401;
|
|
804
|
+
} | {
|
|
759
805
|
input: {
|
|
760
806
|
json: {
|
|
761
807
|
page_id: string;
|
|
@@ -825,7 +871,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
825
871
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
826
872
|
} | undefined;
|
|
827
873
|
redirectTo?: string | null | undefined;
|
|
828
|
-
status?: "
|
|
874
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
829
875
|
grant?: number | undefined;
|
|
830
876
|
grantedUsers?: string[] | undefined;
|
|
831
877
|
creator?: string | {
|
|
@@ -860,57 +906,54 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
860
906
|
};
|
|
861
907
|
outputFormat: "json";
|
|
862
908
|
status: 200;
|
|
863
|
-
}
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
} & {
|
|
912
|
+
"/pages/seen": {
|
|
913
|
+
$post: {
|
|
864
914
|
input: {
|
|
865
915
|
json: {
|
|
866
916
|
page_id: string;
|
|
867
|
-
grant: number;
|
|
868
917
|
};
|
|
869
918
|
};
|
|
870
919
|
output: {
|
|
871
920
|
error: {
|
|
872
|
-
code:
|
|
873
|
-
message:
|
|
921
|
+
code: "PAGE_NOT_FOUND";
|
|
922
|
+
message: "Page not found";
|
|
874
923
|
};
|
|
875
924
|
};
|
|
876
925
|
outputFormat: "json";
|
|
877
|
-
status:
|
|
926
|
+
status: 404;
|
|
878
927
|
} | {
|
|
879
928
|
input: {
|
|
880
929
|
json: {
|
|
881
930
|
page_id: string;
|
|
882
|
-
grant: number;
|
|
883
931
|
};
|
|
884
932
|
};
|
|
885
933
|
output: {
|
|
886
934
|
error: {
|
|
887
|
-
code: "
|
|
888
|
-
message:
|
|
889
|
-
redirectTo?: string | undefined;
|
|
935
|
+
code: "INVALID_PAGE_ID";
|
|
936
|
+
message: string;
|
|
890
937
|
};
|
|
891
938
|
};
|
|
892
939
|
outputFormat: "json";
|
|
893
|
-
status:
|
|
940
|
+
status: 400;
|
|
894
941
|
} | {
|
|
895
942
|
input: {
|
|
896
943
|
json: {
|
|
897
944
|
page_id: string;
|
|
898
|
-
grant: number;
|
|
899
945
|
};
|
|
900
946
|
};
|
|
901
947
|
output: {
|
|
902
948
|
error: {
|
|
903
|
-
code: "
|
|
904
|
-
message: "
|
|
949
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
950
|
+
message: "Authentication is required";
|
|
951
|
+
redirectTo?: string | undefined;
|
|
905
952
|
};
|
|
906
953
|
};
|
|
907
954
|
outputFormat: "json";
|
|
908
|
-
status:
|
|
909
|
-
}
|
|
910
|
-
};
|
|
911
|
-
} & {
|
|
912
|
-
"/pages/seen": {
|
|
913
|
-
$post: {
|
|
955
|
+
status: 401;
|
|
956
|
+
} | {
|
|
914
957
|
input: {
|
|
915
958
|
json: {
|
|
916
959
|
page_id: string;
|
|
@@ -933,54 +976,57 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
933
976
|
};
|
|
934
977
|
outputFormat: "json";
|
|
935
978
|
status: 200;
|
|
936
|
-
}
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
} & {
|
|
982
|
+
"/pages/seen-users": {
|
|
983
|
+
$get: {
|
|
937
984
|
input: {
|
|
938
|
-
|
|
985
|
+
query: {
|
|
939
986
|
page_id: string;
|
|
987
|
+
limit?: unknown;
|
|
940
988
|
};
|
|
941
989
|
};
|
|
942
990
|
output: {
|
|
943
991
|
error: {
|
|
944
|
-
code: "
|
|
945
|
-
message:
|
|
992
|
+
code: "PAGE_NOT_FOUND";
|
|
993
|
+
message: "Page not found";
|
|
946
994
|
};
|
|
947
995
|
};
|
|
948
996
|
outputFormat: "json";
|
|
949
|
-
status:
|
|
997
|
+
status: 404;
|
|
950
998
|
} | {
|
|
951
999
|
input: {
|
|
952
|
-
|
|
1000
|
+
query: {
|
|
953
1001
|
page_id: string;
|
|
1002
|
+
limit?: unknown;
|
|
954
1003
|
};
|
|
955
1004
|
};
|
|
956
1005
|
output: {
|
|
957
1006
|
error: {
|
|
958
|
-
code: "
|
|
959
|
-
message:
|
|
960
|
-
redirectTo?: string | undefined;
|
|
1007
|
+
code: "INVALID_PAGE_ID";
|
|
1008
|
+
message: string;
|
|
961
1009
|
};
|
|
962
1010
|
};
|
|
963
1011
|
outputFormat: "json";
|
|
964
|
-
status:
|
|
1012
|
+
status: 400;
|
|
965
1013
|
} | {
|
|
966
1014
|
input: {
|
|
967
|
-
|
|
1015
|
+
query: {
|
|
968
1016
|
page_id: string;
|
|
1017
|
+
limit?: unknown;
|
|
969
1018
|
};
|
|
970
1019
|
};
|
|
971
1020
|
output: {
|
|
972
1021
|
error: {
|
|
973
|
-
code: "
|
|
974
|
-
message: "
|
|
1022
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
1023
|
+
message: "Authentication is required";
|
|
1024
|
+
redirectTo?: string | undefined;
|
|
975
1025
|
};
|
|
976
1026
|
};
|
|
977
1027
|
outputFormat: "json";
|
|
978
|
-
status:
|
|
979
|
-
}
|
|
980
|
-
};
|
|
981
|
-
} & {
|
|
982
|
-
"/pages/seen-users": {
|
|
983
|
-
$get: {
|
|
1028
|
+
status: 401;
|
|
1029
|
+
} | {
|
|
984
1030
|
input: {
|
|
985
1031
|
query: {
|
|
986
1032
|
page_id: string;
|
|
@@ -1004,57 +1050,54 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1004
1050
|
};
|
|
1005
1051
|
outputFormat: "json";
|
|
1006
1052
|
status: 200;
|
|
1007
|
-
}
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
} & {
|
|
1056
|
+
"/pages/like": {
|
|
1057
|
+
$post: {
|
|
1008
1058
|
input: {
|
|
1009
|
-
|
|
1059
|
+
json: {
|
|
1010
1060
|
page_id: string;
|
|
1011
|
-
limit?: unknown;
|
|
1012
1061
|
};
|
|
1013
1062
|
};
|
|
1014
1063
|
output: {
|
|
1015
1064
|
error: {
|
|
1016
|
-
code: "
|
|
1017
|
-
message:
|
|
1065
|
+
code: "PAGE_NOT_FOUND";
|
|
1066
|
+
message: "Page not found";
|
|
1018
1067
|
};
|
|
1019
1068
|
};
|
|
1020
1069
|
outputFormat: "json";
|
|
1021
|
-
status:
|
|
1070
|
+
status: 404;
|
|
1022
1071
|
} | {
|
|
1023
1072
|
input: {
|
|
1024
|
-
|
|
1073
|
+
json: {
|
|
1025
1074
|
page_id: string;
|
|
1026
|
-
limit?: unknown;
|
|
1027
1075
|
};
|
|
1028
1076
|
};
|
|
1029
1077
|
output: {
|
|
1030
1078
|
error: {
|
|
1031
|
-
code: "
|
|
1032
|
-
message:
|
|
1033
|
-
redirectTo?: string | undefined;
|
|
1079
|
+
code: "INVALID_PAGE_ID";
|
|
1080
|
+
message: string;
|
|
1034
1081
|
};
|
|
1035
1082
|
};
|
|
1036
1083
|
outputFormat: "json";
|
|
1037
|
-
status:
|
|
1084
|
+
status: 400;
|
|
1038
1085
|
} | {
|
|
1039
1086
|
input: {
|
|
1040
|
-
|
|
1087
|
+
json: {
|
|
1041
1088
|
page_id: string;
|
|
1042
|
-
limit?: unknown;
|
|
1043
1089
|
};
|
|
1044
1090
|
};
|
|
1045
1091
|
output: {
|
|
1046
1092
|
error: {
|
|
1047
|
-
code: "
|
|
1048
|
-
message: "
|
|
1093
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
1094
|
+
message: "Authentication is required";
|
|
1095
|
+
redirectTo?: string | undefined;
|
|
1049
1096
|
};
|
|
1050
1097
|
};
|
|
1051
1098
|
outputFormat: "json";
|
|
1052
|
-
status:
|
|
1053
|
-
}
|
|
1054
|
-
};
|
|
1055
|
-
} & {
|
|
1056
|
-
"/pages/like": {
|
|
1057
|
-
$post: {
|
|
1099
|
+
status: 401;
|
|
1100
|
+
} | {
|
|
1058
1101
|
input: {
|
|
1059
1102
|
json: {
|
|
1060
1103
|
page_id: string;
|
|
@@ -1123,7 +1166,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1123
1166
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
1124
1167
|
} | undefined;
|
|
1125
1168
|
redirectTo?: string | null | undefined;
|
|
1126
|
-
status?: "
|
|
1169
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
1127
1170
|
grant?: number | undefined;
|
|
1128
1171
|
grantedUsers?: string[] | undefined;
|
|
1129
1172
|
creator?: string | {
|
|
@@ -1158,7 +1201,11 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1158
1201
|
};
|
|
1159
1202
|
outputFormat: "json";
|
|
1160
1203
|
status: 200;
|
|
1161
|
-
}
|
|
1204
|
+
};
|
|
1205
|
+
};
|
|
1206
|
+
} & {
|
|
1207
|
+
"/pages/unlike": {
|
|
1208
|
+
$post: {
|
|
1162
1209
|
input: {
|
|
1163
1210
|
json: {
|
|
1164
1211
|
page_id: string;
|
|
@@ -1166,12 +1213,12 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1166
1213
|
};
|
|
1167
1214
|
output: {
|
|
1168
1215
|
error: {
|
|
1169
|
-
code: "
|
|
1170
|
-
message:
|
|
1216
|
+
code: "PAGE_NOT_FOUND";
|
|
1217
|
+
message: "Page not found";
|
|
1171
1218
|
};
|
|
1172
1219
|
};
|
|
1173
1220
|
outputFormat: "json";
|
|
1174
|
-
status:
|
|
1221
|
+
status: 404;
|
|
1175
1222
|
} | {
|
|
1176
1223
|
input: {
|
|
1177
1224
|
json: {
|
|
@@ -1180,13 +1227,12 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1180
1227
|
};
|
|
1181
1228
|
output: {
|
|
1182
1229
|
error: {
|
|
1183
|
-
code: "
|
|
1184
|
-
message:
|
|
1185
|
-
redirectTo?: string | undefined;
|
|
1230
|
+
code: "INVALID_PAGE_ID";
|
|
1231
|
+
message: string;
|
|
1186
1232
|
};
|
|
1187
1233
|
};
|
|
1188
1234
|
outputFormat: "json";
|
|
1189
|
-
status:
|
|
1235
|
+
status: 400;
|
|
1190
1236
|
} | {
|
|
1191
1237
|
input: {
|
|
1192
1238
|
json: {
|
|
@@ -1195,17 +1241,14 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1195
1241
|
};
|
|
1196
1242
|
output: {
|
|
1197
1243
|
error: {
|
|
1198
|
-
code: "
|
|
1199
|
-
message: "
|
|
1244
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
1245
|
+
message: "Authentication is required";
|
|
1246
|
+
redirectTo?: string | undefined;
|
|
1200
1247
|
};
|
|
1201
1248
|
};
|
|
1202
1249
|
outputFormat: "json";
|
|
1203
|
-
status:
|
|
1204
|
-
}
|
|
1205
|
-
};
|
|
1206
|
-
} & {
|
|
1207
|
-
"/pages/unlike": {
|
|
1208
|
-
$post: {
|
|
1250
|
+
status: 401;
|
|
1251
|
+
} | {
|
|
1209
1252
|
input: {
|
|
1210
1253
|
json: {
|
|
1211
1254
|
page_id: string;
|
|
@@ -1274,7 +1317,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1274
1317
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
1275
1318
|
} | undefined;
|
|
1276
1319
|
redirectTo?: string | null | undefined;
|
|
1277
|
-
status?: "
|
|
1320
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
1278
1321
|
grant?: number | undefined;
|
|
1279
1322
|
grantedUsers?: string[] | undefined;
|
|
1280
1323
|
creator?: string | {
|
|
@@ -1309,9 +1352,27 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1309
1352
|
};
|
|
1310
1353
|
outputFormat: "json";
|
|
1311
1354
|
status: 200;
|
|
1355
|
+
};
|
|
1356
|
+
};
|
|
1357
|
+
} & {
|
|
1358
|
+
"/pages/watch": {
|
|
1359
|
+
$get: {
|
|
1360
|
+
input: {
|
|
1361
|
+
query: {
|
|
1362
|
+
page_id: string;
|
|
1363
|
+
};
|
|
1364
|
+
};
|
|
1365
|
+
output: {
|
|
1366
|
+
error: {
|
|
1367
|
+
code: "PAGE_NOT_FOUND";
|
|
1368
|
+
message: "Page not found";
|
|
1369
|
+
};
|
|
1370
|
+
};
|
|
1371
|
+
outputFormat: "json";
|
|
1372
|
+
status: 404;
|
|
1312
1373
|
} | {
|
|
1313
1374
|
input: {
|
|
1314
|
-
|
|
1375
|
+
query: {
|
|
1315
1376
|
page_id: string;
|
|
1316
1377
|
};
|
|
1317
1378
|
};
|
|
@@ -1325,7 +1386,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1325
1386
|
status: 400;
|
|
1326
1387
|
} | {
|
|
1327
1388
|
input: {
|
|
1328
|
-
|
|
1389
|
+
query: {
|
|
1329
1390
|
page_id: string;
|
|
1330
1391
|
};
|
|
1331
1392
|
};
|
|
@@ -1340,37 +1401,39 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1340
1401
|
status: 401;
|
|
1341
1402
|
} | {
|
|
1342
1403
|
input: {
|
|
1343
|
-
|
|
1404
|
+
query: {
|
|
1344
1405
|
page_id: string;
|
|
1345
1406
|
};
|
|
1346
1407
|
};
|
|
1347
1408
|
output: {
|
|
1348
|
-
|
|
1349
|
-
code: "PAGE_NOT_FOUND";
|
|
1350
|
-
message: "Page not found";
|
|
1351
|
-
};
|
|
1409
|
+
watching: boolean;
|
|
1352
1410
|
};
|
|
1353
1411
|
outputFormat: "json";
|
|
1354
|
-
status:
|
|
1412
|
+
status: 200;
|
|
1355
1413
|
};
|
|
1356
1414
|
};
|
|
1357
1415
|
} & {
|
|
1358
1416
|
"/pages/watch": {
|
|
1359
|
-
$
|
|
1417
|
+
$put: {
|
|
1360
1418
|
input: {
|
|
1361
|
-
|
|
1419
|
+
json: {
|
|
1362
1420
|
page_id: string;
|
|
1421
|
+
watching: boolean;
|
|
1363
1422
|
};
|
|
1364
1423
|
};
|
|
1365
1424
|
output: {
|
|
1366
|
-
|
|
1425
|
+
error: {
|
|
1426
|
+
code: "PAGE_NOT_FOUND";
|
|
1427
|
+
message: "Page not found";
|
|
1428
|
+
};
|
|
1367
1429
|
};
|
|
1368
1430
|
outputFormat: "json";
|
|
1369
|
-
status:
|
|
1431
|
+
status: 404;
|
|
1370
1432
|
} | {
|
|
1371
1433
|
input: {
|
|
1372
|
-
|
|
1434
|
+
json: {
|
|
1373
1435
|
page_id: string;
|
|
1436
|
+
watching: boolean;
|
|
1374
1437
|
};
|
|
1375
1438
|
};
|
|
1376
1439
|
output: {
|
|
@@ -1383,8 +1446,9 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1383
1446
|
status: 400;
|
|
1384
1447
|
} | {
|
|
1385
1448
|
input: {
|
|
1386
|
-
|
|
1449
|
+
json: {
|
|
1387
1450
|
page_id: string;
|
|
1451
|
+
watching: boolean;
|
|
1388
1452
|
};
|
|
1389
1453
|
};
|
|
1390
1454
|
output: {
|
|
@@ -1398,44 +1462,47 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1398
1462
|
status: 401;
|
|
1399
1463
|
} | {
|
|
1400
1464
|
input: {
|
|
1401
|
-
|
|
1465
|
+
json: {
|
|
1402
1466
|
page_id: string;
|
|
1467
|
+
watching: boolean;
|
|
1403
1468
|
};
|
|
1404
1469
|
};
|
|
1405
1470
|
output: {
|
|
1406
|
-
|
|
1407
|
-
code: "PAGE_NOT_FOUND";
|
|
1408
|
-
message: "Page not found";
|
|
1409
|
-
};
|
|
1471
|
+
watching: boolean;
|
|
1410
1472
|
};
|
|
1411
1473
|
outputFormat: "json";
|
|
1412
|
-
status:
|
|
1474
|
+
status: 200;
|
|
1413
1475
|
};
|
|
1414
1476
|
};
|
|
1415
1477
|
} & {
|
|
1416
|
-
"/pages
|
|
1417
|
-
$
|
|
1478
|
+
"/pages": {
|
|
1479
|
+
$delete: {
|
|
1418
1480
|
input: {
|
|
1419
1481
|
json: {
|
|
1420
1482
|
page_id: string;
|
|
1421
|
-
|
|
1483
|
+
revision_id?: string | undefined;
|
|
1484
|
+
completely?: boolean | undefined;
|
|
1422
1485
|
};
|
|
1423
1486
|
};
|
|
1424
1487
|
output: {
|
|
1425
|
-
|
|
1488
|
+
error: {
|
|
1489
|
+
code: "PAGE_NOT_FOUND";
|
|
1490
|
+
message: "Page not found";
|
|
1491
|
+
};
|
|
1426
1492
|
};
|
|
1427
1493
|
outputFormat: "json";
|
|
1428
|
-
status:
|
|
1494
|
+
status: 404;
|
|
1429
1495
|
} | {
|
|
1430
1496
|
input: {
|
|
1431
1497
|
json: {
|
|
1432
1498
|
page_id: string;
|
|
1433
|
-
|
|
1499
|
+
revision_id?: string | undefined;
|
|
1500
|
+
completely?: boolean | undefined;
|
|
1434
1501
|
};
|
|
1435
1502
|
};
|
|
1436
1503
|
output: {
|
|
1437
1504
|
error: {
|
|
1438
|
-
code:
|
|
1505
|
+
code: string;
|
|
1439
1506
|
message: string;
|
|
1440
1507
|
};
|
|
1441
1508
|
};
|
|
@@ -1445,7 +1512,8 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1445
1512
|
input: {
|
|
1446
1513
|
json: {
|
|
1447
1514
|
page_id: string;
|
|
1448
|
-
|
|
1515
|
+
revision_id?: string | undefined;
|
|
1516
|
+
completely?: boolean | undefined;
|
|
1449
1517
|
};
|
|
1450
1518
|
};
|
|
1451
1519
|
output: {
|
|
@@ -1458,25 +1526,6 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1458
1526
|
outputFormat: "json";
|
|
1459
1527
|
status: 401;
|
|
1460
1528
|
} | {
|
|
1461
|
-
input: {
|
|
1462
|
-
json: {
|
|
1463
|
-
page_id: string;
|
|
1464
|
-
watching: boolean;
|
|
1465
|
-
};
|
|
1466
|
-
};
|
|
1467
|
-
output: {
|
|
1468
|
-
error: {
|
|
1469
|
-
code: "PAGE_NOT_FOUND";
|
|
1470
|
-
message: "Page not found";
|
|
1471
|
-
};
|
|
1472
|
-
};
|
|
1473
|
-
outputFormat: "json";
|
|
1474
|
-
status: 404;
|
|
1475
|
-
};
|
|
1476
|
-
};
|
|
1477
|
-
} & {
|
|
1478
|
-
"/pages": {
|
|
1479
|
-
$delete: {
|
|
1480
1529
|
input: {
|
|
1481
1530
|
json: {
|
|
1482
1531
|
page_id: string;
|
|
@@ -1547,7 +1596,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1547
1596
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
1548
1597
|
} | undefined;
|
|
1549
1598
|
redirectTo?: string | null | undefined;
|
|
1550
|
-
status?: "
|
|
1599
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
1551
1600
|
grant?: number | undefined;
|
|
1552
1601
|
grantedUsers?: string[] | undefined;
|
|
1553
1602
|
creator?: string | {
|
|
@@ -1592,66 +1641,60 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1592
1641
|
};
|
|
1593
1642
|
output: {
|
|
1594
1643
|
error: {
|
|
1595
|
-
code:
|
|
1644
|
+
code: "PAGE_REVISION_ERROR";
|
|
1596
1645
|
message: string;
|
|
1597
1646
|
};
|
|
1598
1647
|
};
|
|
1599
1648
|
outputFormat: "json";
|
|
1600
|
-
status:
|
|
1601
|
-
}
|
|
1649
|
+
status: 409;
|
|
1650
|
+
};
|
|
1651
|
+
};
|
|
1652
|
+
} & {
|
|
1653
|
+
"/pages/revert": {
|
|
1654
|
+
$post: {
|
|
1602
1655
|
input: {
|
|
1603
1656
|
json: {
|
|
1604
1657
|
page_id: string;
|
|
1605
|
-
revision_id?: string | undefined;
|
|
1606
|
-
completely?: boolean | undefined;
|
|
1607
1658
|
};
|
|
1608
1659
|
};
|
|
1609
1660
|
output: {
|
|
1610
1661
|
error: {
|
|
1611
|
-
code: "
|
|
1612
|
-
message: "
|
|
1613
|
-
redirectTo?: string | undefined;
|
|
1662
|
+
code: "PAGE_NOT_FOUND";
|
|
1663
|
+
message: "Page not found";
|
|
1614
1664
|
};
|
|
1615
1665
|
};
|
|
1616
1666
|
outputFormat: "json";
|
|
1617
|
-
status:
|
|
1667
|
+
status: 404;
|
|
1618
1668
|
} | {
|
|
1619
1669
|
input: {
|
|
1620
1670
|
json: {
|
|
1621
1671
|
page_id: string;
|
|
1622
|
-
revision_id?: string | undefined;
|
|
1623
|
-
completely?: boolean | undefined;
|
|
1624
1672
|
};
|
|
1625
1673
|
};
|
|
1626
1674
|
output: {
|
|
1627
1675
|
error: {
|
|
1628
|
-
code:
|
|
1629
|
-
message:
|
|
1676
|
+
code: string;
|
|
1677
|
+
message: string;
|
|
1630
1678
|
};
|
|
1631
1679
|
};
|
|
1632
1680
|
outputFormat: "json";
|
|
1633
|
-
status:
|
|
1681
|
+
status: 400;
|
|
1634
1682
|
} | {
|
|
1635
1683
|
input: {
|
|
1636
1684
|
json: {
|
|
1637
1685
|
page_id: string;
|
|
1638
|
-
revision_id?: string | undefined;
|
|
1639
|
-
completely?: boolean | undefined;
|
|
1640
1686
|
};
|
|
1641
1687
|
};
|
|
1642
1688
|
output: {
|
|
1643
1689
|
error: {
|
|
1644
|
-
code: "
|
|
1645
|
-
message:
|
|
1690
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
1691
|
+
message: "Authentication is required";
|
|
1692
|
+
redirectTo?: string | undefined;
|
|
1646
1693
|
};
|
|
1647
1694
|
};
|
|
1648
1695
|
outputFormat: "json";
|
|
1649
|
-
status:
|
|
1650
|
-
}
|
|
1651
|
-
};
|
|
1652
|
-
} & {
|
|
1653
|
-
"/pages/revert": {
|
|
1654
|
-
$post: {
|
|
1696
|
+
status: 401;
|
|
1697
|
+
} | {
|
|
1655
1698
|
input: {
|
|
1656
1699
|
json: {
|
|
1657
1700
|
page_id: string;
|
|
@@ -1720,7 +1763,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1720
1763
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
1721
1764
|
} | undefined;
|
|
1722
1765
|
redirectTo?: string | null | undefined;
|
|
1723
|
-
status?: "
|
|
1766
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
1724
1767
|
grant?: number | undefined;
|
|
1725
1768
|
grantedUsers?: string[] | undefined;
|
|
1726
1769
|
creator?: string | {
|
|
@@ -1755,54 +1798,76 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1755
1798
|
};
|
|
1756
1799
|
outputFormat: "json";
|
|
1757
1800
|
status: 200;
|
|
1758
|
-
}
|
|
1801
|
+
};
|
|
1802
|
+
};
|
|
1803
|
+
} & {
|
|
1804
|
+
"/pages/rename": {
|
|
1805
|
+
$post: {
|
|
1759
1806
|
input: {
|
|
1760
1807
|
json: {
|
|
1761
1808
|
page_id: string;
|
|
1809
|
+
new_path: string;
|
|
1810
|
+
revision_id?: string | undefined;
|
|
1811
|
+
create_redirect?: boolean | undefined;
|
|
1812
|
+
include_descendants?: boolean | undefined;
|
|
1762
1813
|
};
|
|
1763
1814
|
};
|
|
1764
1815
|
output: {
|
|
1765
1816
|
error: {
|
|
1766
|
-
code:
|
|
1767
|
-
message:
|
|
1817
|
+
code: "PAGE_NOT_FOUND";
|
|
1818
|
+
message: "Page not found";
|
|
1768
1819
|
};
|
|
1769
1820
|
};
|
|
1770
1821
|
outputFormat: "json";
|
|
1771
|
-
status:
|
|
1822
|
+
status: 404;
|
|
1772
1823
|
} | {
|
|
1773
1824
|
input: {
|
|
1774
1825
|
json: {
|
|
1775
1826
|
page_id: string;
|
|
1827
|
+
new_path: string;
|
|
1828
|
+
revision_id?: string | undefined;
|
|
1829
|
+
create_redirect?: boolean | undefined;
|
|
1830
|
+
include_descendants?: boolean | undefined;
|
|
1776
1831
|
};
|
|
1777
1832
|
};
|
|
1778
1833
|
output: {
|
|
1779
1834
|
error: {
|
|
1780
|
-
code:
|
|
1781
|
-
message:
|
|
1782
|
-
|
|
1835
|
+
code: string;
|
|
1836
|
+
message: string;
|
|
1837
|
+
};
|
|
1838
|
+
} | {
|
|
1839
|
+
error: {
|
|
1840
|
+
code: "PAGE_RENAME_TREE_FAILED";
|
|
1841
|
+
message: string;
|
|
1842
|
+
conflicts: {
|
|
1843
|
+
path: string;
|
|
1844
|
+
reasons: string[];
|
|
1845
|
+
}[];
|
|
1846
|
+
partial?: boolean | undefined;
|
|
1783
1847
|
};
|
|
1784
1848
|
};
|
|
1785
1849
|
outputFormat: "json";
|
|
1786
|
-
status:
|
|
1850
|
+
status: 400;
|
|
1787
1851
|
} | {
|
|
1788
1852
|
input: {
|
|
1789
1853
|
json: {
|
|
1790
1854
|
page_id: string;
|
|
1855
|
+
new_path: string;
|
|
1856
|
+
revision_id?: string | undefined;
|
|
1857
|
+
create_redirect?: boolean | undefined;
|
|
1858
|
+
include_descendants?: boolean | undefined;
|
|
1791
1859
|
};
|
|
1792
1860
|
};
|
|
1793
1861
|
output: {
|
|
1794
1862
|
error: {
|
|
1795
|
-
code: "
|
|
1796
|
-
message: "
|
|
1863
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
1864
|
+
message: "Authentication is required";
|
|
1865
|
+
redirectTo?: string | undefined;
|
|
1797
1866
|
};
|
|
1798
1867
|
};
|
|
1799
1868
|
outputFormat: "json";
|
|
1800
|
-
status:
|
|
1801
|
-
}
|
|
1802
|
-
};
|
|
1803
|
-
} & {
|
|
1804
|
-
"/pages/rename": {
|
|
1805
|
-
$post: {
|
|
1869
|
+
status: 401;
|
|
1870
|
+
} | {
|
|
1806
1871
|
input: {
|
|
1807
1872
|
json: {
|
|
1808
1873
|
page_id: string;
|
|
@@ -1875,7 +1940,7 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1875
1940
|
editVia?: "web" | "oauth" | "pat" | undefined;
|
|
1876
1941
|
} | undefined;
|
|
1877
1942
|
redirectTo?: string | null | undefined;
|
|
1878
|
-
status?: "
|
|
1943
|
+
status?: "published" | "wip" | "deleted" | "deprecated" | "draft" | null | undefined;
|
|
1879
1944
|
grant?: number | undefined;
|
|
1880
1945
|
grantedUsers?: string[] | undefined;
|
|
1881
1946
|
creator?: string | {
|
|
@@ -1911,71 +1976,6 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1911
1976
|
};
|
|
1912
1977
|
outputFormat: "json";
|
|
1913
1978
|
status: 200;
|
|
1914
|
-
} | {
|
|
1915
|
-
input: {
|
|
1916
|
-
json: {
|
|
1917
|
-
page_id: string;
|
|
1918
|
-
new_path: string;
|
|
1919
|
-
revision_id?: string | undefined;
|
|
1920
|
-
create_redirect?: boolean | undefined;
|
|
1921
|
-
include_descendants?: boolean | undefined;
|
|
1922
|
-
};
|
|
1923
|
-
};
|
|
1924
|
-
output: {
|
|
1925
|
-
error: {
|
|
1926
|
-
code: string;
|
|
1927
|
-
message: string;
|
|
1928
|
-
};
|
|
1929
|
-
} | {
|
|
1930
|
-
error: {
|
|
1931
|
-
code: "PAGE_RENAME_TREE_FAILED";
|
|
1932
|
-
message: string;
|
|
1933
|
-
conflicts: {
|
|
1934
|
-
path: string;
|
|
1935
|
-
reasons: string[];
|
|
1936
|
-
}[];
|
|
1937
|
-
partial?: boolean | undefined;
|
|
1938
|
-
};
|
|
1939
|
-
};
|
|
1940
|
-
outputFormat: "json";
|
|
1941
|
-
status: 400;
|
|
1942
|
-
} | {
|
|
1943
|
-
input: {
|
|
1944
|
-
json: {
|
|
1945
|
-
page_id: string;
|
|
1946
|
-
new_path: string;
|
|
1947
|
-
revision_id?: string | undefined;
|
|
1948
|
-
create_redirect?: boolean | undefined;
|
|
1949
|
-
include_descendants?: boolean | undefined;
|
|
1950
|
-
};
|
|
1951
|
-
};
|
|
1952
|
-
output: {
|
|
1953
|
-
error: {
|
|
1954
|
-
code: "AUTHENTICATION_REQUIRED";
|
|
1955
|
-
message: "Authentication is required";
|
|
1956
|
-
redirectTo?: string | undefined;
|
|
1957
|
-
};
|
|
1958
|
-
};
|
|
1959
|
-
outputFormat: "json";
|
|
1960
|
-
status: 401;
|
|
1961
|
-
} | {
|
|
1962
|
-
input: {
|
|
1963
|
-
json: {
|
|
1964
|
-
page_id: string;
|
|
1965
|
-
new_path: string;
|
|
1966
|
-
revision_id?: string | undefined;
|
|
1967
|
-
create_redirect?: boolean | undefined;
|
|
1968
|
-
include_descendants?: boolean | undefined;
|
|
1969
|
-
};
|
|
1970
|
-
};
|
|
1971
|
-
output: {
|
|
1972
|
-
error: {
|
|
1973
|
-
code: "PAGE_NOT_FOUND";
|
|
1974
|
-
message: "Page not found";
|
|
1975
|
-
};
|
|
1976
|
-
};
|
|
1977
|
-
outputFormat: "json";
|
|
1978
|
-
status: 404;
|
|
1979
1979
|
} | {
|
|
1980
1980
|
input: {
|
|
1981
1981
|
json: {
|
|
@@ -1999,19 +1999,6 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
1999
1999
|
} & {
|
|
2000
2000
|
"/pages/rename-subtree": {
|
|
2001
2001
|
$post: {
|
|
2002
|
-
input: {
|
|
2003
|
-
json: {
|
|
2004
|
-
old_path: string;
|
|
2005
|
-
new_path: string;
|
|
2006
|
-
create_redirect?: boolean | undefined;
|
|
2007
|
-
};
|
|
2008
|
-
};
|
|
2009
|
-
output: {
|
|
2010
|
-
renamed_count: number;
|
|
2011
|
-
};
|
|
2012
|
-
outputFormat: "json";
|
|
2013
|
-
status: 200;
|
|
2014
|
-
} | {
|
|
2015
2002
|
input: {
|
|
2016
2003
|
json: {
|
|
2017
2004
|
old_path: string;
|
|
@@ -2054,6 +2041,19 @@ export declare const registerPageRoutes: <E extends OpenAPIHono<CrowiHonoBinding
|
|
|
2054
2041
|
};
|
|
2055
2042
|
outputFormat: "json";
|
|
2056
2043
|
status: 401;
|
|
2044
|
+
} | {
|
|
2045
|
+
input: {
|
|
2046
|
+
json: {
|
|
2047
|
+
old_path: string;
|
|
2048
|
+
new_path: string;
|
|
2049
|
+
create_redirect?: boolean | undefined;
|
|
2050
|
+
};
|
|
2051
|
+
};
|
|
2052
|
+
output: {
|
|
2053
|
+
renamed_count: number;
|
|
2054
|
+
};
|
|
2055
|
+
outputFormat: "json";
|
|
2056
|
+
status: 200;
|
|
2057
2057
|
};
|
|
2058
2058
|
};
|
|
2059
2059
|
}, "/">;
|