@crowi/api-contract 2.0.0-alpha.1 → 2.0.0-alpha.5

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/index.d.ts CHANGED
@@ -24,7 +24,7 @@ import { hc } from 'hono/client';
24
24
  *
25
25
  * Keep this list alphabetised within each group for easy scanning.
26
26
  */
27
- declare const ERROR_CODES: readonly ["AUTHENTICATION_REQUIRED", "ADMIN_REQUIRED", "THIRD_PARTY_AUTH_REQUIRED", "USER_REGISTERED", "USER_SUSPENDED", "USER_INVITED", "USER_NOT_ACTIVE", "EMAIL_NOT_CONFIRMED", "INTERNAL_ERROR", "VALIDATION_ERROR", "INVALID_REQUEST", "NOT_FOUND", "CONFLICT", "SERVICE_UNAVAILABLE", "APPLICATION_NOT_INSTALLED", "INVALID_PAGE_ID", "PAGE_NOT_FOUND", "PAGE_NOT_GRANTED", "PAGE_REVISION_ERROR", "INVALID_GRANT", "COMMENT_NOT_FOUND", "NOTIFICATION_NOT_FOUND", "USER_NOT_FOUND", "USER_EXISTS", "USERNAME_TAKEN", "EMAIL_TAKEN", "EMAIL_NOT_ALLOWED", "INVALID_ACTIVATION_TOKEN", "INVALID_INVITE_TOKEN", "INVITE_ALREADY_ACCEPTED", "INVALID_RESET_TOKEN", "INVALID_EMAIL_CHANGE_TOKEN", "INVALID_CREDENTIALS", "REFRESH_TOKEN_REQUIRED", "REGISTRATION_CLOSED", "ENCRYPTION_NOT_CONFIGURED", "MAIL_TEST_FAILED", "PLUGIN_NOT_FOUND", "PLUGIN_CONFIG_VALIDATION_FAILED"];
27
+ declare const ERROR_CODES: readonly ["AUTHENTICATION_REQUIRED", "ADMIN_REQUIRED", "THIRD_PARTY_AUTH_REQUIRED", "USER_REGISTERED", "USER_SUSPENDED", "USER_INVITED", "USER_NOT_ACTIVE", "EMAIL_NOT_CONFIRMED", "INTERNAL_ERROR", "VALIDATION_ERROR", "INVALID_REQUEST", "NOT_FOUND", "CONFLICT", "SERVICE_UNAVAILABLE", "APPLICATION_NOT_INSTALLED", "INVALID_PAGE_ID", "PAGE_NOT_FOUND", "PAGE_NOT_GRANTED", "PAGE_REVISION_ERROR", "PAGE_TWIN_EXISTS", "INVALID_GRANT", "COMMENT_NOT_FOUND", "NOTIFICATION_NOT_FOUND", "USER_NOT_FOUND", "USER_EXISTS", "USERNAME_TAKEN", "EMAIL_TAKEN", "EMAIL_NOT_ALLOWED", "INVALID_ACTIVATION_TOKEN", "INVALID_INVITE_TOKEN", "INVITE_ALREADY_ACCEPTED", "INVALID_RESET_TOKEN", "INVALID_EMAIL_CHANGE_TOKEN", "INVALID_CREDENTIALS", "REFRESH_TOKEN_REQUIRED", "REGISTRATION_CLOSED", "ENCRYPTION_NOT_CONFIGURED", "MAIL_TEST_FAILED", "PLUGIN_NOT_FOUND", "PLUGIN_CONFIG_VALIDATION_FAILED"];
28
28
  declare const ErrorCodeSchema: z.ZodEnum<{
29
29
  AUTHENTICATION_REQUIRED: "AUTHENTICATION_REQUIRED";
30
30
  ADMIN_REQUIRED: "ADMIN_REQUIRED";
@@ -45,6 +45,7 @@ declare const ErrorCodeSchema: z.ZodEnum<{
45
45
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
46
46
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
47
47
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
48
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
48
49
  INVALID_GRANT: "INVALID_GRANT";
49
50
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
50
51
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -68,6 +69,64 @@ declare const ErrorCodeSchema: z.ZodEnum<{
68
69
  }>;
69
70
  type ErrorCode = (typeof ERROR_CODES)[number];
70
71
 
72
+ /**
73
+ * Canonical HTML5 element name set + a helper for stripping HTML tags from
74
+ * arbitrary text.
75
+ *
76
+ * This lives in the shared `@crowi/api-contract` package because BOTH sides of
77
+ * the wall need the SAME strip logic:
78
+ *
79
+ * - the api renderer (`renderer/core/headings.ts`) slugs a heading's anchor
80
+ * id from the HTML-stripped heading text, and
81
+ * - the web TOC (`components/page-view/page-toc.tsx`) strips the same tags
82
+ * out of the displayed label at render time.
83
+ *
84
+ * Keeping the set + the `stripKnownHtmlTags` regex here means anchor-id
85
+ * generation (server) and label display (client) can never diverge. The api
86
+ * migration layer (`wikilink-format`'s detection gate) also imports the set
87
+ * from here.
88
+ *
89
+ * Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element — the full
90
+ * standard element list as of the HTML Living Standard.
91
+ *
92
+ * `h1`..`h6` are listed explicitly. The deprecated/obsolete presentational
93
+ * elements `font` / `center` / `marquee` / `blink` / `applet` are included on
94
+ * purpose: they no longer appear in the MDN current element list but still
95
+ * occur in real legacy wiki content (e.g. `### <font color="1a73e8">…</font>`
96
+ * headings), so `</font>` etc. MUST be treated as close tags rather than
97
+ * rewritten to `[[/font]]` by `wikilink-format`.
98
+ *
99
+ * The set is kept a SUPERSET of the web body renderer's inline-kept HTML tag
100
+ * allow-list (`packages/web/src/components/editor/known-tags.ts`'s
101
+ * `HTML_TAGS`): a tag the body renders inline (e.g. `<strike>` / `<tt>` /
102
+ * `<big>` / `<acronym>` / `<nobr>` / `<search>` …) must also be stripped from a
103
+ * TOC label so the displayed label matches the rendered body text. The
104
+ * cross-guard test in `html-elements.test.ts` fails if the body adds an inline
105
+ * tag this set misses. (SVG tags are camelCase and never appear as inline
106
+ * heading markup, so they are intentionally NOT mirrored here.)
107
+ */
108
+ declare const KNOWN_HTML_ELEMENTS: ReadonlySet<string>;
109
+ /**
110
+ * Upper bound on the input `stripKnownHtmlTags` will actually scan. A TOC label
111
+ * / heading text is never legitimately longer than this; anything above it is
112
+ * pathological input (e.g. a malformed `<i<i<i…` run designed to make the
113
+ * attribute scan backtrack). Returning such input unchanged keeps the helper
114
+ * O(1) on adversarial input and protects the synchronous SAVE path (run per
115
+ * heading, on the event loop) and the per-TOC-entry client render path.
116
+ */
117
+ declare const STRIP_KNOWN_HTML_TAGS_MAX_LENGTH = 4096;
118
+ /**
119
+ * Remove every `<elem …>` / `</elem>` / `<elem/>` substring whose name is a
120
+ * known HTML element, case-insensitively. Text that merely contains a `<`
121
+ * (`price < 100`) or an unknown tag-like token (`Using List<int> in C#`) is
122
+ * returned unchanged.
123
+ *
124
+ * Inputs longer than `STRIP_KNOWN_HTML_TAGS_MAX_LENGTH` are returned unchanged
125
+ * WITHOUT running the regex — a heading / TOC label is never that long, and the
126
+ * cap is the cheap defence against a crafted long run blocking the event loop.
127
+ */
128
+ declare function stripKnownHtmlTags(text: string): string;
129
+
71
130
  declare const getAppInfoRoute: {
72
131
  method: "get";
73
132
  path: "/app/info";
@@ -84,6 +143,7 @@ declare const getAppInfoRoute: {
84
143
  version: zod.ZodString;
85
144
  apiVersion: zod.ZodString;
86
145
  capabilities: zod.ZodArray<zod.ZodString>;
146
+ canSelfRegister: zod.ZodBoolean;
87
147
  }, zod_v4_core.$strip>;
88
148
  };
89
149
  };
@@ -122,6 +182,7 @@ declare const appRoutes: {
122
182
  version: zod.ZodString;
123
183
  apiVersion: zod.ZodString;
124
184
  capabilities: zod.ZodArray<zod.ZodString>;
185
+ canSelfRegister: zod.ZodBoolean;
125
186
  }, zod_v4_core.$strip>;
126
187
  };
127
188
  };
@@ -442,6 +503,7 @@ declare const tokenLoginRoute: {
442
503
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
443
504
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
444
505
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
506
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
445
507
  INVALID_GRANT: "INVALID_GRANT";
446
508
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
447
509
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -496,6 +558,7 @@ declare const tokenLoginRoute: {
496
558
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
497
559
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
498
560
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
561
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
499
562
  INVALID_GRANT: "INVALID_GRANT";
500
563
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
501
564
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -614,6 +677,7 @@ declare const tokenRegisterRoute: {
614
677
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
615
678
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
616
679
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
680
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
617
681
  INVALID_GRANT: "INVALID_GRANT";
618
682
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
619
683
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -668,6 +732,7 @@ declare const tokenRegisterRoute: {
668
732
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
669
733
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
670
734
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
735
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
671
736
  INVALID_GRANT: "INVALID_GRANT";
672
737
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
673
738
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -722,6 +787,7 @@ declare const tokenRegisterRoute: {
722
787
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
723
788
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
724
789
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
790
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
725
791
  INVALID_GRANT: "INVALID_GRANT";
726
792
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
727
793
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -844,6 +910,7 @@ declare const tokenRefreshRoute: {
844
910
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
845
911
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
846
912
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
913
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
847
914
  INVALID_GRANT: "INVALID_GRANT";
848
915
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
849
916
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -912,6 +979,7 @@ declare const tokenRefreshRoute: {
912
979
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
913
980
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
914
981
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
982
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
915
983
  INVALID_GRANT: "INVALID_GRANT";
916
984
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
917
985
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -1142,6 +1210,7 @@ declare const tokenAuthRoutes: {
1142
1210
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
1143
1211
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
1144
1212
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
1213
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
1145
1214
  INVALID_GRANT: "INVALID_GRANT";
1146
1215
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
1147
1216
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -1196,6 +1265,7 @@ declare const tokenAuthRoutes: {
1196
1265
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
1197
1266
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
1198
1267
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
1268
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
1199
1269
  INVALID_GRANT: "INVALID_GRANT";
1200
1270
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
1201
1271
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -1314,6 +1384,7 @@ declare const tokenAuthRoutes: {
1314
1384
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
1315
1385
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
1316
1386
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
1387
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
1317
1388
  INVALID_GRANT: "INVALID_GRANT";
1318
1389
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
1319
1390
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -1368,6 +1439,7 @@ declare const tokenAuthRoutes: {
1368
1439
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
1369
1440
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
1370
1441
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
1442
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
1371
1443
  INVALID_GRANT: "INVALID_GRANT";
1372
1444
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
1373
1445
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -1422,6 +1494,7 @@ declare const tokenAuthRoutes: {
1422
1494
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
1423
1495
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
1424
1496
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
1497
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
1425
1498
  INVALID_GRANT: "INVALID_GRANT";
1426
1499
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
1427
1500
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -1544,6 +1617,7 @@ declare const tokenAuthRoutes: {
1544
1617
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
1545
1618
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
1546
1619
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
1620
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
1547
1621
  INVALID_GRANT: "INVALID_GRANT";
1548
1622
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
1549
1623
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -1612,6 +1686,7 @@ declare const tokenAuthRoutes: {
1612
1686
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
1613
1687
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
1614
1688
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
1689
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
1615
1690
  INVALID_GRANT: "INVALID_GRANT";
1616
1691
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
1617
1692
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -1826,6 +1901,7 @@ declare const invitePreviewRoute: {
1826
1901
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
1827
1902
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
1828
1903
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
1904
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
1829
1905
  INVALID_GRANT: "INVALID_GRANT";
1830
1906
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
1831
1907
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -1880,6 +1956,7 @@ declare const invitePreviewRoute: {
1880
1956
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
1881
1957
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
1882
1958
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
1959
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
1883
1960
  INVALID_GRANT: "INVALID_GRANT";
1884
1961
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
1885
1962
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -1991,6 +2068,7 @@ declare const acceptInviteRoute: {
1991
2068
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
1992
2069
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
1993
2070
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
2071
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
1994
2072
  INVALID_GRANT: "INVALID_GRANT";
1995
2073
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
1996
2074
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -2045,6 +2123,7 @@ declare const acceptInviteRoute: {
2045
2123
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
2046
2124
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
2047
2125
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
2126
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
2048
2127
  INVALID_GRANT: "INVALID_GRANT";
2049
2128
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
2050
2129
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -2099,6 +2178,7 @@ declare const acceptInviteRoute: {
2099
2178
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
2100
2179
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
2101
2180
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
2181
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
2102
2182
  INVALID_GRANT: "INVALID_GRANT";
2103
2183
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
2104
2184
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -2153,6 +2233,7 @@ declare const acceptInviteRoute: {
2153
2233
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
2154
2234
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
2155
2235
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
2236
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
2156
2237
  INVALID_GRANT: "INVALID_GRANT";
2157
2238
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
2158
2239
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -2246,6 +2327,7 @@ declare const inviteAcceptRoutes: {
2246
2327
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
2247
2328
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
2248
2329
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
2330
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
2249
2331
  INVALID_GRANT: "INVALID_GRANT";
2250
2332
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
2251
2333
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -2300,6 +2382,7 @@ declare const inviteAcceptRoutes: {
2300
2382
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
2301
2383
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
2302
2384
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
2385
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
2303
2386
  INVALID_GRANT: "INVALID_GRANT";
2304
2387
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
2305
2388
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -2411,6 +2494,7 @@ declare const inviteAcceptRoutes: {
2411
2494
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
2412
2495
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
2413
2496
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
2497
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
2414
2498
  INVALID_GRANT: "INVALID_GRANT";
2415
2499
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
2416
2500
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -2465,6 +2549,7 @@ declare const inviteAcceptRoutes: {
2465
2549
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
2466
2550
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
2467
2551
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
2552
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
2468
2553
  INVALID_GRANT: "INVALID_GRANT";
2469
2554
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
2470
2555
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -2519,6 +2604,7 @@ declare const inviteAcceptRoutes: {
2519
2604
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
2520
2605
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
2521
2606
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
2607
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
2522
2608
  INVALID_GRANT: "INVALID_GRANT";
2523
2609
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
2524
2610
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -2573,6 +2659,7 @@ declare const inviteAcceptRoutes: {
2573
2659
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
2574
2660
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
2575
2661
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
2662
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
2576
2663
  INVALID_GRANT: "INVALID_GRANT";
2577
2664
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
2578
2665
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -2673,6 +2760,7 @@ declare const forgotPasswordRoute: {
2673
2760
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
2674
2761
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
2675
2762
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
2763
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
2676
2764
  INVALID_GRANT: "INVALID_GRANT";
2677
2765
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
2678
2766
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -2765,6 +2853,7 @@ declare const validateResetTokenRoute: {
2765
2853
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
2766
2854
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
2767
2855
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
2856
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
2768
2857
  INVALID_GRANT: "INVALID_GRANT";
2769
2858
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
2770
2859
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -2874,6 +2963,7 @@ declare const selfResetPasswordRoute: {
2874
2963
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
2875
2964
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
2876
2965
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
2966
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
2877
2967
  INVALID_GRANT: "INVALID_GRANT";
2878
2968
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
2879
2969
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -2928,6 +3018,7 @@ declare const selfResetPasswordRoute: {
2928
3018
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
2929
3019
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
2930
3020
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
3021
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
2931
3022
  INVALID_GRANT: "INVALID_GRANT";
2932
3023
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
2933
3024
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -2982,6 +3073,7 @@ declare const selfResetPasswordRoute: {
2982
3073
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
2983
3074
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
2984
3075
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
3076
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
2985
3077
  INVALID_GRANT: "INVALID_GRANT";
2986
3078
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
2987
3079
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -3081,6 +3173,7 @@ declare const passwordResetRoutes: {
3081
3173
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
3082
3174
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
3083
3175
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
3176
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
3084
3177
  INVALID_GRANT: "INVALID_GRANT";
3085
3178
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
3086
3179
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -3173,6 +3266,7 @@ declare const passwordResetRoutes: {
3173
3266
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
3174
3267
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
3175
3268
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
3269
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
3176
3270
  INVALID_GRANT: "INVALID_GRANT";
3177
3271
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
3178
3272
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -3282,6 +3376,7 @@ declare const passwordResetRoutes: {
3282
3376
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
3283
3377
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
3284
3378
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
3379
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
3285
3380
  INVALID_GRANT: "INVALID_GRANT";
3286
3381
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
3287
3382
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -3336,6 +3431,7 @@ declare const passwordResetRoutes: {
3336
3431
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
3337
3432
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
3338
3433
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
3434
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
3339
3435
  INVALID_GRANT: "INVALID_GRANT";
3340
3436
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
3341
3437
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -3390,6 +3486,7 @@ declare const passwordResetRoutes: {
3390
3486
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
3391
3487
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
3392
3488
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
3489
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
3393
3490
  INVALID_GRANT: "INVALID_GRANT";
3394
3491
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
3395
3492
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -3484,6 +3581,7 @@ declare const validateActivationTokenRoute: {
3484
3581
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
3485
3582
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
3486
3583
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
3584
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
3487
3585
  INVALID_GRANT: "INVALID_GRANT";
3488
3586
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
3489
3587
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -3592,6 +3690,7 @@ declare const activateAccountRoute: {
3592
3690
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
3593
3691
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
3594
3692
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
3693
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
3595
3694
  INVALID_GRANT: "INVALID_GRANT";
3596
3695
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
3597
3696
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -3646,6 +3745,7 @@ declare const activateAccountRoute: {
3646
3745
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
3647
3746
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
3648
3747
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
3748
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
3649
3749
  INVALID_GRANT: "INVALID_GRANT";
3650
3750
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
3651
3751
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -3739,6 +3839,7 @@ declare const activationRoutes: {
3739
3839
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
3740
3840
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
3741
3841
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
3842
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
3742
3843
  INVALID_GRANT: "INVALID_GRANT";
3743
3844
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
3744
3845
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -3847,6 +3948,7 @@ declare const activationRoutes: {
3847
3948
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
3848
3949
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
3849
3950
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
3951
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
3850
3952
  INVALID_GRANT: "INVALID_GRANT";
3851
3953
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
3852
3954
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -3901,6 +4003,7 @@ declare const activationRoutes: {
3901
4003
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
3902
4004
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
3903
4005
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
4006
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
3904
4007
  INVALID_GRANT: "INVALID_GRANT";
3905
4008
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
3906
4009
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -3996,6 +4099,7 @@ declare const validateEmailChangeTokenRoute: {
3996
4099
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
3997
4100
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
3998
4101
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
4102
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
3999
4103
  INVALID_GRANT: "INVALID_GRANT";
4000
4104
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
4001
4105
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -4095,6 +4199,7 @@ declare const confirmEmailChangeRoute: {
4095
4199
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
4096
4200
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
4097
4201
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
4202
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
4098
4203
  INVALID_GRANT: "INVALID_GRANT";
4099
4204
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
4100
4205
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -4149,6 +4254,7 @@ declare const confirmEmailChangeRoute: {
4149
4254
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
4150
4255
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
4151
4256
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
4257
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
4152
4258
  INVALID_GRANT: "INVALID_GRANT";
4153
4259
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
4154
4260
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -4203,6 +4309,7 @@ declare const confirmEmailChangeRoute: {
4203
4309
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
4204
4310
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
4205
4311
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
4312
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
4206
4313
  INVALID_GRANT: "INVALID_GRANT";
4207
4314
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
4208
4315
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -4297,6 +4404,7 @@ declare const emailChangeRoutes: {
4297
4404
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
4298
4405
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
4299
4406
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
4407
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
4300
4408
  INVALID_GRANT: "INVALID_GRANT";
4301
4409
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
4302
4410
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -4396,6 +4504,7 @@ declare const emailChangeRoutes: {
4396
4504
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
4397
4505
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
4398
4506
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
4507
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
4399
4508
  INVALID_GRANT: "INVALID_GRANT";
4400
4509
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
4401
4510
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -4450,6 +4559,7 @@ declare const emailChangeRoutes: {
4450
4559
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
4451
4560
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
4452
4561
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
4562
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
4453
4563
  INVALID_GRANT: "INVALID_GRANT";
4454
4564
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
4455
4565
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -4504,6 +4614,7 @@ declare const emailChangeRoutes: {
4504
4614
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
4505
4615
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
4506
4616
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
4617
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
4507
4618
  INVALID_GRANT: "INVALID_GRANT";
4508
4619
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
4509
4620
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -12437,6 +12548,7 @@ declare const listPagesRoute: {
12437
12548
  asc: "asc";
12438
12549
  desc: "desc";
12439
12550
  }>>>;
12551
+ revision_id: z.ZodOptional<z.ZodString>;
12440
12552
  }, z.core.$strip>;
12441
12553
  };
12442
12554
  responses: {
@@ -12660,6 +12772,111 @@ declare const listPagesRoute: {
12660
12772
  likerCount: z.ZodOptional<z.ZodNumber>;
12661
12773
  seenUsersCount: z.ZodOptional<z.ZodNumber>;
12662
12774
  }, z.core.$strip>>>;
12775
+ contentPage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12776
+ _id: z.ZodString;
12777
+ path: z.ZodString;
12778
+ revision: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
12779
+ _id: z.ZodString;
12780
+ path: z.ZodString;
12781
+ body: z.ZodString;
12782
+ format: z.ZodDefault<z.ZodString>;
12783
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12784
+ _id: z.ZodString;
12785
+ id: z.ZodOptional<z.ZodString>;
12786
+ username: z.ZodString;
12787
+ name: z.ZodString;
12788
+ email: z.ZodString;
12789
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12790
+ createdAt: z.ZodString;
12791
+ }, z.core.$strip>>>;
12792
+ createdAt: z.ZodString;
12793
+ meta: z.ZodOptional<z.ZodObject<{
12794
+ toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
12795
+ level: z.ZodNumber;
12796
+ text: z.ZodString;
12797
+ anchorId: z.ZodString;
12798
+ }, z.core.$strip>>>;
12799
+ wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
12800
+ raw: z.ZodString;
12801
+ target: z.ZodString;
12802
+ displayText: z.ZodOptional<z.ZodString>;
12803
+ }, z.core.$strip>>>;
12804
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
12805
+ username: z.ZodString;
12806
+ }, z.core.$strip>>>;
12807
+ codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
12808
+ }, z.core.$strip>>;
12809
+ renderedAst: z.ZodOptional<z.ZodUnknown>;
12810
+ rendererVersion: z.ZodOptional<z.ZodString>;
12811
+ parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12812
+ type: z.ZodOptional<z.ZodEnum<{
12813
+ snapshot: "snapshot";
12814
+ incremental: "incremental";
12815
+ }>>;
12816
+ savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
12817
+ _id: z.ZodString;
12818
+ id: z.ZodOptional<z.ZodString>;
12819
+ username: z.ZodString;
12820
+ name: z.ZodString;
12821
+ email: z.ZodString;
12822
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12823
+ createdAt: z.ZodString;
12824
+ }, z.core.$strip>]>>>;
12825
+ contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
12826
+ _id: z.ZodString;
12827
+ id: z.ZodOptional<z.ZodString>;
12828
+ username: z.ZodString;
12829
+ name: z.ZodString;
12830
+ email: z.ZodString;
12831
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12832
+ createdAt: z.ZodString;
12833
+ }, z.core.$strip>]>>>;
12834
+ message: z.ZodOptional<z.ZodString>;
12835
+ editVia: z.ZodOptional<z.ZodEnum<{
12836
+ web: "web";
12837
+ oauth: "oauth";
12838
+ pat: "pat";
12839
+ }>>;
12840
+ }, z.core.$strip>]>>;
12841
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12842
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
12843
+ deprecated: "deprecated";
12844
+ wip: "wip";
12845
+ published: "published";
12846
+ deleted: "deleted";
12847
+ draft: "draft";
12848
+ }>>>;
12849
+ grant: z.ZodOptional<z.ZodNumber>;
12850
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
12851
+ creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
12852
+ _id: z.ZodString;
12853
+ id: z.ZodOptional<z.ZodString>;
12854
+ username: z.ZodString;
12855
+ name: z.ZodString;
12856
+ email: z.ZodString;
12857
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12858
+ createdAt: z.ZodString;
12859
+ }, z.core.$strip>]>>>;
12860
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
12861
+ _id: z.ZodString;
12862
+ id: z.ZodOptional<z.ZodString>;
12863
+ username: z.ZodString;
12864
+ name: z.ZodString;
12865
+ email: z.ZodString;
12866
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12867
+ createdAt: z.ZodString;
12868
+ }, z.core.$strip>]>>>;
12869
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
12870
+ commentCount: z.ZodDefault<z.ZodNumber>;
12871
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
12872
+ createdAt: z.ZodString;
12873
+ updatedAt: z.ZodOptional<z.ZodString>;
12874
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12875
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12876
+ latestRevision: z.ZodOptional<z.ZodString>;
12877
+ likerCount: z.ZodOptional<z.ZodNumber>;
12878
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
12879
+ }, z.core.$strip>>>;
12663
12880
  }, z.core.$strip>;
12664
12881
  };
12665
12882
  };
@@ -14319,9 +14536,9 @@ declare const revertDeletedPageRoute: {
14319
14536
  } & {
14320
14537
  getRoutingPath(): "/pages/revert";
14321
14538
  };
14322
- declare const renamePageRoute: {
14539
+ declare const revertToRevisionRoute: {
14323
14540
  method: "post";
14324
- path: "/pages/rename";
14541
+ path: "/pages/revert-to-revision";
14325
14542
  tags: string[];
14326
14543
  security: {
14327
14544
  bearerAuth: never[];
@@ -14333,10 +14550,7 @@ declare const renamePageRoute: {
14333
14550
  'application/json': {
14334
14551
  schema: z.ZodObject<{
14335
14552
  page_id: z.ZodString;
14336
- new_path: z.ZodString;
14337
- revision_id: z.ZodOptional<z.ZodString>;
14338
- create_redirect: z.ZodOptional<z.ZodBoolean>;
14339
- include_descendants: z.ZodOptional<z.ZodBoolean>;
14553
+ revision_id: z.ZodString;
14340
14554
  }, z.core.$strip>;
14341
14555
  };
14342
14556
  };
@@ -14453,7 +14667,6 @@ declare const renamePageRoute: {
14453
14667
  likerCount: z.ZodOptional<z.ZodNumber>;
14454
14668
  seenUsersCount: z.ZodOptional<z.ZodNumber>;
14455
14669
  }, z.core.$strip>;
14456
- renamed_count: z.ZodNumber;
14457
14670
  }, z.core.$strip>;
14458
14671
  };
14459
14672
  };
@@ -14462,22 +14675,12 @@ declare const renamePageRoute: {
14462
14675
  description: string;
14463
14676
  content: {
14464
14677
  'application/json': {
14465
- schema: z.ZodUnion<readonly [z.ZodObject<{
14678
+ schema: z.ZodObject<{
14466
14679
  error: z.ZodObject<{
14467
14680
  code: z.ZodString;
14468
14681
  message: z.ZodString;
14469
14682
  }, z.core.$strip>;
14470
- }, z.core.$strip>, z.ZodObject<{
14471
- error: z.ZodObject<{
14472
- code: z.ZodLiteral<"PAGE_RENAME_TREE_FAILED">;
14473
- message: z.ZodString;
14474
- conflicts: z.ZodArray<z.ZodObject<{
14475
- path: z.ZodString;
14476
- reasons: z.ZodArray<z.ZodString>;
14477
- }, z.core.$strip>>;
14478
- partial: z.ZodOptional<z.ZodBoolean>;
14479
- }, z.core.$strip>;
14480
- }, z.core.$strip>]>;
14683
+ }, z.core.$strip>;
14481
14684
  };
14482
14685
  };
14483
14686
  };
@@ -14508,26 +14711,13 @@ declare const renamePageRoute: {
14508
14711
  };
14509
14712
  };
14510
14713
  };
14511
- 409: {
14512
- description: string;
14513
- content: {
14514
- 'application/json': {
14515
- schema: z.ZodObject<{
14516
- error: z.ZodObject<{
14517
- code: z.ZodLiteral<"PAGE_REVISION_ERROR">;
14518
- message: z.ZodString;
14519
- }, z.core.$strip>;
14520
- }, z.core.$strip>;
14521
- };
14522
- };
14523
- };
14524
14714
  };
14525
14715
  } & {
14526
- getRoutingPath(): "/pages/rename";
14716
+ getRoutingPath(): "/pages/revert-to-revision";
14527
14717
  };
14528
- declare const renameSubtreeRoute: {
14718
+ declare const renamePageRoute: {
14529
14719
  method: "post";
14530
- path: "/pages/rename-subtree";
14720
+ path: "/pages/rename";
14531
14721
  tags: string[];
14532
14722
  security: {
14533
14723
  bearerAuth: never[];
@@ -14538,7 +14728,213 @@ declare const renameSubtreeRoute: {
14538
14728
  content: {
14539
14729
  'application/json': {
14540
14730
  schema: z.ZodObject<{
14541
- old_path: z.ZodString;
14731
+ page_id: z.ZodString;
14732
+ new_path: z.ZodString;
14733
+ revision_id: z.ZodOptional<z.ZodString>;
14734
+ create_redirect: z.ZodOptional<z.ZodBoolean>;
14735
+ include_descendants: z.ZodOptional<z.ZodBoolean>;
14736
+ }, z.core.$strip>;
14737
+ };
14738
+ };
14739
+ };
14740
+ };
14741
+ responses: {
14742
+ 200: {
14743
+ description: string;
14744
+ content: {
14745
+ 'application/json': {
14746
+ schema: z.ZodObject<{
14747
+ page: z.ZodObject<{
14748
+ _id: z.ZodString;
14749
+ path: z.ZodString;
14750
+ revision: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14751
+ _id: z.ZodString;
14752
+ path: z.ZodString;
14753
+ body: z.ZodString;
14754
+ format: z.ZodDefault<z.ZodString>;
14755
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14756
+ _id: z.ZodString;
14757
+ id: z.ZodOptional<z.ZodString>;
14758
+ username: z.ZodString;
14759
+ name: z.ZodString;
14760
+ email: z.ZodString;
14761
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14762
+ createdAt: z.ZodString;
14763
+ }, z.core.$strip>>>;
14764
+ createdAt: z.ZodString;
14765
+ meta: z.ZodOptional<z.ZodObject<{
14766
+ toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
14767
+ level: z.ZodNumber;
14768
+ text: z.ZodString;
14769
+ anchorId: z.ZodString;
14770
+ }, z.core.$strip>>>;
14771
+ wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
14772
+ raw: z.ZodString;
14773
+ target: z.ZodString;
14774
+ displayText: z.ZodOptional<z.ZodString>;
14775
+ }, z.core.$strip>>>;
14776
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
14777
+ username: z.ZodString;
14778
+ }, z.core.$strip>>>;
14779
+ codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
14780
+ }, z.core.$strip>>;
14781
+ renderedAst: z.ZodOptional<z.ZodUnknown>;
14782
+ rendererVersion: z.ZodOptional<z.ZodString>;
14783
+ parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14784
+ type: z.ZodOptional<z.ZodEnum<{
14785
+ snapshot: "snapshot";
14786
+ incremental: "incremental";
14787
+ }>>;
14788
+ savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14789
+ _id: z.ZodString;
14790
+ id: z.ZodOptional<z.ZodString>;
14791
+ username: z.ZodString;
14792
+ name: z.ZodString;
14793
+ email: z.ZodString;
14794
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14795
+ createdAt: z.ZodString;
14796
+ }, z.core.$strip>]>>>;
14797
+ contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14798
+ _id: z.ZodString;
14799
+ id: z.ZodOptional<z.ZodString>;
14800
+ username: z.ZodString;
14801
+ name: z.ZodString;
14802
+ email: z.ZodString;
14803
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14804
+ createdAt: z.ZodString;
14805
+ }, z.core.$strip>]>>>;
14806
+ message: z.ZodOptional<z.ZodString>;
14807
+ editVia: z.ZodOptional<z.ZodEnum<{
14808
+ web: "web";
14809
+ oauth: "oauth";
14810
+ pat: "pat";
14811
+ }>>;
14812
+ }, z.core.$strip>]>>;
14813
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14814
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
14815
+ deprecated: "deprecated";
14816
+ wip: "wip";
14817
+ published: "published";
14818
+ deleted: "deleted";
14819
+ draft: "draft";
14820
+ }>>>;
14821
+ grant: z.ZodOptional<z.ZodNumber>;
14822
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
14823
+ creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14824
+ _id: z.ZodString;
14825
+ id: z.ZodOptional<z.ZodString>;
14826
+ username: z.ZodString;
14827
+ name: z.ZodString;
14828
+ email: z.ZodString;
14829
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14830
+ createdAt: z.ZodString;
14831
+ }, z.core.$strip>]>>>;
14832
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14833
+ _id: z.ZodString;
14834
+ id: z.ZodOptional<z.ZodString>;
14835
+ username: z.ZodString;
14836
+ name: z.ZodString;
14837
+ email: z.ZodString;
14838
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14839
+ createdAt: z.ZodString;
14840
+ }, z.core.$strip>]>>>;
14841
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
14842
+ commentCount: z.ZodDefault<z.ZodNumber>;
14843
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
14844
+ createdAt: z.ZodString;
14845
+ updatedAt: z.ZodOptional<z.ZodString>;
14846
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14847
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14848
+ latestRevision: z.ZodOptional<z.ZodString>;
14849
+ likerCount: z.ZodOptional<z.ZodNumber>;
14850
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
14851
+ }, z.core.$strip>;
14852
+ renamed_count: z.ZodNumber;
14853
+ }, z.core.$strip>;
14854
+ };
14855
+ };
14856
+ };
14857
+ 400: {
14858
+ description: string;
14859
+ content: {
14860
+ 'application/json': {
14861
+ schema: z.ZodUnion<readonly [z.ZodObject<{
14862
+ error: z.ZodObject<{
14863
+ code: z.ZodString;
14864
+ message: z.ZodString;
14865
+ }, z.core.$strip>;
14866
+ }, z.core.$strip>, z.ZodObject<{
14867
+ error: z.ZodObject<{
14868
+ code: z.ZodLiteral<"PAGE_RENAME_TREE_FAILED">;
14869
+ message: z.ZodString;
14870
+ conflicts: z.ZodArray<z.ZodObject<{
14871
+ path: z.ZodString;
14872
+ reasons: z.ZodArray<z.ZodString>;
14873
+ }, z.core.$strip>>;
14874
+ partial: z.ZodOptional<z.ZodBoolean>;
14875
+ }, z.core.$strip>;
14876
+ }, z.core.$strip>]>;
14877
+ };
14878
+ };
14879
+ };
14880
+ 401: {
14881
+ description: string;
14882
+ content: {
14883
+ 'application/json': {
14884
+ schema: z.ZodObject<{
14885
+ error: z.ZodObject<{
14886
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
14887
+ message: z.ZodLiteral<"Authentication is required">;
14888
+ redirectTo: z.ZodOptional<z.ZodString>;
14889
+ }, z.core.$strip>;
14890
+ }, z.core.$strip>;
14891
+ };
14892
+ };
14893
+ };
14894
+ 404: {
14895
+ description: string;
14896
+ content: {
14897
+ 'application/json': {
14898
+ schema: z.ZodObject<{
14899
+ error: z.ZodObject<{
14900
+ code: z.ZodLiteral<"PAGE_NOT_FOUND">;
14901
+ message: z.ZodLiteral<"Page not found">;
14902
+ }, z.core.$strip>;
14903
+ }, z.core.$strip>;
14904
+ };
14905
+ };
14906
+ };
14907
+ 409: {
14908
+ description: string;
14909
+ content: {
14910
+ 'application/json': {
14911
+ schema: z.ZodObject<{
14912
+ error: z.ZodObject<{
14913
+ code: z.ZodLiteral<"PAGE_REVISION_ERROR">;
14914
+ message: z.ZodString;
14915
+ }, z.core.$strip>;
14916
+ }, z.core.$strip>;
14917
+ };
14918
+ };
14919
+ };
14920
+ };
14921
+ } & {
14922
+ getRoutingPath(): "/pages/rename";
14923
+ };
14924
+ declare const renameSubtreeRoute: {
14925
+ method: "post";
14926
+ path: "/pages/rename-subtree";
14927
+ tags: string[];
14928
+ security: {
14929
+ bearerAuth: never[];
14930
+ }[];
14931
+ summary: string;
14932
+ request: {
14933
+ body: {
14934
+ content: {
14935
+ 'application/json': {
14936
+ schema: z.ZodObject<{
14937
+ old_path: z.ZodString;
14542
14938
  new_path: z.ZodString;
14543
14939
  create_redirect: z.ZodOptional<z.ZodBoolean>;
14544
14940
  }, z.core.$strip>;
@@ -14807,6 +15203,7 @@ declare const pageRoutes: {
14807
15203
  asc: "asc";
14808
15204
  desc: "desc";
14809
15205
  }>>>;
15206
+ revision_id: z.ZodOptional<z.ZodString>;
14810
15207
  }, z.core.$strip>;
14811
15208
  };
14812
15209
  responses: {
@@ -15030,104 +15427,7 @@ declare const pageRoutes: {
15030
15427
  likerCount: z.ZodOptional<z.ZodNumber>;
15031
15428
  seenUsersCount: z.ZodOptional<z.ZodNumber>;
15032
15429
  }, z.core.$strip>>>;
15033
- }, z.core.$strip>;
15034
- };
15035
- };
15036
- };
15037
- 401: {
15038
- description: string;
15039
- content: {
15040
- 'application/json': {
15041
- schema: z.ZodObject<{
15042
- error: z.ZodObject<{
15043
- code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
15044
- message: z.ZodLiteral<"Authentication is required">;
15045
- redirectTo: z.ZodOptional<z.ZodString>;
15046
- }, z.core.$strip>;
15047
- }, z.core.$strip>;
15048
- };
15049
- };
15050
- };
15051
- };
15052
- } & {
15053
- getRoutingPath(): "/pages/list";
15054
- };
15055
- listPageChildrenRoute: {
15056
- method: "get";
15057
- path: "/pages/children";
15058
- tags: string[];
15059
- security: {
15060
- bearerAuth: never[];
15061
- }[];
15062
- summary: string;
15063
- request: {
15064
- query: z.ZodObject<{
15065
- path: z.ZodString;
15066
- }, z.core.$strip>;
15067
- };
15068
- responses: {
15069
- 200: {
15070
- description: string;
15071
- content: {
15072
- 'application/json': {
15073
- schema: z.ZodObject<{
15074
- children: z.ZodArray<z.ZodObject<{
15075
- segment: z.ZodString;
15076
- path: z.ZodString;
15077
- isPage: z.ZodBoolean;
15078
- hasPortal: z.ZodBoolean;
15079
- count: z.ZodNumber;
15080
- }, z.core.$strip>>;
15081
- }, z.core.$strip>;
15082
- };
15083
- };
15084
- };
15085
- 401: {
15086
- description: string;
15087
- content: {
15088
- 'application/json': {
15089
- schema: z.ZodObject<{
15090
- error: z.ZodObject<{
15091
- code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
15092
- message: z.ZodLiteral<"Authentication is required">;
15093
- redirectTo: z.ZodOptional<z.ZodString>;
15094
- }, z.core.$strip>;
15095
- }, z.core.$strip>;
15096
- };
15097
- };
15098
- };
15099
- };
15100
- } & {
15101
- getRoutingPath(): "/pages/children";
15102
- };
15103
- createPageRoute: {
15104
- method: "post";
15105
- path: "/pages";
15106
- tags: string[];
15107
- security: {
15108
- bearerAuth: never[];
15109
- }[];
15110
- summary: string;
15111
- request: {
15112
- body: {
15113
- content: {
15114
- 'application/json': {
15115
- schema: z.ZodObject<{
15116
- path: z.ZodString;
15117
- body: z.ZodString;
15118
- grant: z.ZodOptional<z.ZodNumber>;
15119
- }, z.core.$strip>;
15120
- };
15121
- };
15122
- };
15123
- };
15124
- responses: {
15125
- 200: {
15126
- description: string;
15127
- content: {
15128
- 'application/json': {
15129
- schema: z.ZodObject<{
15130
- page: z.ZodObject<{
15430
+ contentPage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15131
15431
  _id: z.ZodString;
15132
15432
  path: z.ZodString;
15133
15433
  revision: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
@@ -15231,24 +15531,59 @@ declare const pageRoutes: {
15231
15531
  latestRevision: z.ZodOptional<z.ZodString>;
15232
15532
  likerCount: z.ZodOptional<z.ZodNumber>;
15233
15533
  seenUsersCount: z.ZodOptional<z.ZodNumber>;
15234
- }, z.core.$strip>;
15534
+ }, z.core.$strip>>>;
15235
15535
  }, z.core.$strip>;
15236
15536
  };
15237
15537
  };
15238
15538
  };
15239
- 400: {
15539
+ 401: {
15240
15540
  description: string;
15241
15541
  content: {
15242
15542
  'application/json': {
15243
15543
  schema: z.ZodObject<{
15244
15544
  error: z.ZodObject<{
15245
- code: z.ZodString;
15246
- message: z.ZodString;
15545
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
15546
+ message: z.ZodLiteral<"Authentication is required">;
15547
+ redirectTo: z.ZodOptional<z.ZodString>;
15247
15548
  }, z.core.$strip>;
15248
15549
  }, z.core.$strip>;
15249
15550
  };
15250
15551
  };
15251
15552
  };
15553
+ };
15554
+ } & {
15555
+ getRoutingPath(): "/pages/list";
15556
+ };
15557
+ listPageChildrenRoute: {
15558
+ method: "get";
15559
+ path: "/pages/children";
15560
+ tags: string[];
15561
+ security: {
15562
+ bearerAuth: never[];
15563
+ }[];
15564
+ summary: string;
15565
+ request: {
15566
+ query: z.ZodObject<{
15567
+ path: z.ZodString;
15568
+ }, z.core.$strip>;
15569
+ };
15570
+ responses: {
15571
+ 200: {
15572
+ description: string;
15573
+ content: {
15574
+ 'application/json': {
15575
+ schema: z.ZodObject<{
15576
+ children: z.ZodArray<z.ZodObject<{
15577
+ segment: z.ZodString;
15578
+ path: z.ZodString;
15579
+ isPage: z.ZodBoolean;
15580
+ hasPortal: z.ZodBoolean;
15581
+ count: z.ZodNumber;
15582
+ }, z.core.$strip>>;
15583
+ }, z.core.$strip>;
15584
+ };
15585
+ };
15586
+ };
15252
15587
  401: {
15253
15588
  description: string;
15254
15589
  content: {
@@ -15265,10 +15600,10 @@ declare const pageRoutes: {
15265
15600
  };
15266
15601
  };
15267
15602
  } & {
15268
- getRoutingPath(): "/pages";
15603
+ getRoutingPath(): "/pages/children";
15269
15604
  };
15270
- updatePageRoute: {
15271
- method: "put";
15605
+ createPageRoute: {
15606
+ method: "post";
15272
15607
  path: "/pages";
15273
15608
  tags: string[];
15274
15609
  security: {
@@ -15280,9 +15615,8 @@ declare const pageRoutes: {
15280
15615
  content: {
15281
15616
  'application/json': {
15282
15617
  schema: z.ZodObject<{
15283
- page_id: z.ZodString;
15618
+ path: z.ZodString;
15284
15619
  body: z.ZodString;
15285
- revision_id: z.ZodOptional<z.ZodString>;
15286
15620
  grant: z.ZodOptional<z.ZodNumber>;
15287
15621
  }, z.core.$strip>;
15288
15622
  };
@@ -15431,39 +15765,13 @@ declare const pageRoutes: {
15431
15765
  };
15432
15766
  };
15433
15767
  };
15434
- 404: {
15435
- description: string;
15436
- content: {
15437
- 'application/json': {
15438
- schema: z.ZodObject<{
15439
- error: z.ZodObject<{
15440
- code: z.ZodLiteral<"PAGE_NOT_FOUND">;
15441
- message: z.ZodLiteral<"Page not found">;
15442
- }, z.core.$strip>;
15443
- }, z.core.$strip>;
15444
- };
15445
- };
15446
- };
15447
- 409: {
15448
- description: string;
15449
- content: {
15450
- 'application/json': {
15451
- schema: z.ZodObject<{
15452
- error: z.ZodObject<{
15453
- code: z.ZodLiteral<"PAGE_REVISION_ERROR">;
15454
- message: z.ZodString;
15455
- }, z.core.$strip>;
15456
- }, z.core.$strip>;
15457
- };
15458
- };
15459
- };
15460
15768
  };
15461
15769
  } & {
15462
15770
  getRoutingPath(): "/pages";
15463
15771
  };
15464
- setPageGrantRoute: {
15772
+ updatePageRoute: {
15465
15773
  method: "put";
15466
- path: "/pages/grant";
15774
+ path: "/pages";
15467
15775
  tags: string[];
15468
15776
  security: {
15469
15777
  bearerAuth: never[];
@@ -15475,7 +15783,201 @@ declare const pageRoutes: {
15475
15783
  'application/json': {
15476
15784
  schema: z.ZodObject<{
15477
15785
  page_id: z.ZodString;
15478
- grant: z.ZodNumber;
15786
+ body: z.ZodString;
15787
+ revision_id: z.ZodOptional<z.ZodString>;
15788
+ grant: z.ZodOptional<z.ZodNumber>;
15789
+ }, z.core.$strip>;
15790
+ };
15791
+ };
15792
+ };
15793
+ };
15794
+ responses: {
15795
+ 200: {
15796
+ description: string;
15797
+ content: {
15798
+ 'application/json': {
15799
+ schema: z.ZodObject<{
15800
+ page: z.ZodObject<{
15801
+ _id: z.ZodString;
15802
+ path: z.ZodString;
15803
+ revision: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
15804
+ _id: z.ZodString;
15805
+ path: z.ZodString;
15806
+ body: z.ZodString;
15807
+ format: z.ZodDefault<z.ZodString>;
15808
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15809
+ _id: z.ZodString;
15810
+ id: z.ZodOptional<z.ZodString>;
15811
+ username: z.ZodString;
15812
+ name: z.ZodString;
15813
+ email: z.ZodString;
15814
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15815
+ createdAt: z.ZodString;
15816
+ }, z.core.$strip>>>;
15817
+ createdAt: z.ZodString;
15818
+ meta: z.ZodOptional<z.ZodObject<{
15819
+ toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
15820
+ level: z.ZodNumber;
15821
+ text: z.ZodString;
15822
+ anchorId: z.ZodString;
15823
+ }, z.core.$strip>>>;
15824
+ wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
15825
+ raw: z.ZodString;
15826
+ target: z.ZodString;
15827
+ displayText: z.ZodOptional<z.ZodString>;
15828
+ }, z.core.$strip>>>;
15829
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
15830
+ username: z.ZodString;
15831
+ }, z.core.$strip>>>;
15832
+ codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
15833
+ }, z.core.$strip>>;
15834
+ renderedAst: z.ZodOptional<z.ZodUnknown>;
15835
+ rendererVersion: z.ZodOptional<z.ZodString>;
15836
+ parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15837
+ type: z.ZodOptional<z.ZodEnum<{
15838
+ snapshot: "snapshot";
15839
+ incremental: "incremental";
15840
+ }>>;
15841
+ savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
15842
+ _id: z.ZodString;
15843
+ id: z.ZodOptional<z.ZodString>;
15844
+ username: z.ZodString;
15845
+ name: z.ZodString;
15846
+ email: z.ZodString;
15847
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15848
+ createdAt: z.ZodString;
15849
+ }, z.core.$strip>]>>>;
15850
+ contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
15851
+ _id: z.ZodString;
15852
+ id: z.ZodOptional<z.ZodString>;
15853
+ username: z.ZodString;
15854
+ name: z.ZodString;
15855
+ email: z.ZodString;
15856
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15857
+ createdAt: z.ZodString;
15858
+ }, z.core.$strip>]>>>;
15859
+ message: z.ZodOptional<z.ZodString>;
15860
+ editVia: z.ZodOptional<z.ZodEnum<{
15861
+ web: "web";
15862
+ oauth: "oauth";
15863
+ pat: "pat";
15864
+ }>>;
15865
+ }, z.core.$strip>]>>;
15866
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15867
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
15868
+ deprecated: "deprecated";
15869
+ wip: "wip";
15870
+ published: "published";
15871
+ deleted: "deleted";
15872
+ draft: "draft";
15873
+ }>>>;
15874
+ grant: z.ZodOptional<z.ZodNumber>;
15875
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
15876
+ creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
15877
+ _id: z.ZodString;
15878
+ id: z.ZodOptional<z.ZodString>;
15879
+ username: z.ZodString;
15880
+ name: z.ZodString;
15881
+ email: z.ZodString;
15882
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15883
+ createdAt: z.ZodString;
15884
+ }, z.core.$strip>]>>>;
15885
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
15886
+ _id: z.ZodString;
15887
+ id: z.ZodOptional<z.ZodString>;
15888
+ username: z.ZodString;
15889
+ name: z.ZodString;
15890
+ email: z.ZodString;
15891
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15892
+ createdAt: z.ZodString;
15893
+ }, z.core.$strip>]>>>;
15894
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
15895
+ commentCount: z.ZodDefault<z.ZodNumber>;
15896
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
15897
+ createdAt: z.ZodString;
15898
+ updatedAt: z.ZodOptional<z.ZodString>;
15899
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15900
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15901
+ latestRevision: z.ZodOptional<z.ZodString>;
15902
+ likerCount: z.ZodOptional<z.ZodNumber>;
15903
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
15904
+ }, z.core.$strip>;
15905
+ }, z.core.$strip>;
15906
+ };
15907
+ };
15908
+ };
15909
+ 400: {
15910
+ description: string;
15911
+ content: {
15912
+ 'application/json': {
15913
+ schema: z.ZodObject<{
15914
+ error: z.ZodObject<{
15915
+ code: z.ZodString;
15916
+ message: z.ZodString;
15917
+ }, z.core.$strip>;
15918
+ }, z.core.$strip>;
15919
+ };
15920
+ };
15921
+ };
15922
+ 401: {
15923
+ description: string;
15924
+ content: {
15925
+ 'application/json': {
15926
+ schema: z.ZodObject<{
15927
+ error: z.ZodObject<{
15928
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
15929
+ message: z.ZodLiteral<"Authentication is required">;
15930
+ redirectTo: z.ZodOptional<z.ZodString>;
15931
+ }, z.core.$strip>;
15932
+ }, z.core.$strip>;
15933
+ };
15934
+ };
15935
+ };
15936
+ 404: {
15937
+ description: string;
15938
+ content: {
15939
+ 'application/json': {
15940
+ schema: z.ZodObject<{
15941
+ error: z.ZodObject<{
15942
+ code: z.ZodLiteral<"PAGE_NOT_FOUND">;
15943
+ message: z.ZodLiteral<"Page not found">;
15944
+ }, z.core.$strip>;
15945
+ }, z.core.$strip>;
15946
+ };
15947
+ };
15948
+ };
15949
+ 409: {
15950
+ description: string;
15951
+ content: {
15952
+ 'application/json': {
15953
+ schema: z.ZodObject<{
15954
+ error: z.ZodObject<{
15955
+ code: z.ZodLiteral<"PAGE_REVISION_ERROR">;
15956
+ message: z.ZodString;
15957
+ }, z.core.$strip>;
15958
+ }, z.core.$strip>;
15959
+ };
15960
+ };
15961
+ };
15962
+ };
15963
+ } & {
15964
+ getRoutingPath(): "/pages";
15965
+ };
15966
+ setPageGrantRoute: {
15967
+ method: "put";
15968
+ path: "/pages/grant";
15969
+ tags: string[];
15970
+ security: {
15971
+ bearerAuth: never[];
15972
+ }[];
15973
+ summary: string;
15974
+ request: {
15975
+ body: {
15976
+ content: {
15977
+ 'application/json': {
15978
+ schema: z.ZodObject<{
15979
+ page_id: z.ZodString;
15980
+ grant: z.ZodNumber;
15479
15981
  }, z.core.$strip>;
15480
15982
  };
15481
15983
  };
@@ -16494,26 +16996,204 @@ declare const pageRoutes: {
16494
16996
  };
16495
16997
  };
16496
16998
  };
16497
- 409: {
16498
- description: string;
16499
- content: {
16500
- 'application/json': {
16501
- schema: z.ZodObject<{
16502
- error: z.ZodObject<{
16503
- code: z.ZodLiteral<"PAGE_REVISION_ERROR">;
16504
- message: z.ZodString;
16505
- }, z.core.$strip>;
16506
- }, z.core.$strip>;
16507
- };
16508
- };
16509
- };
16999
+ 409: {
17000
+ description: string;
17001
+ content: {
17002
+ 'application/json': {
17003
+ schema: z.ZodObject<{
17004
+ error: z.ZodObject<{
17005
+ code: z.ZodLiteral<"PAGE_REVISION_ERROR">;
17006
+ message: z.ZodString;
17007
+ }, z.core.$strip>;
17008
+ }, z.core.$strip>;
17009
+ };
17010
+ };
17011
+ };
17012
+ };
17013
+ } & {
17014
+ getRoutingPath(): "/pages";
17015
+ };
17016
+ revertDeletedPageRoute: {
17017
+ method: "post";
17018
+ path: "/pages/revert";
17019
+ tags: string[];
17020
+ security: {
17021
+ bearerAuth: never[];
17022
+ }[];
17023
+ summary: string;
17024
+ request: {
17025
+ body: {
17026
+ content: {
17027
+ 'application/json': {
17028
+ schema: z.ZodObject<{
17029
+ page_id: z.ZodString;
17030
+ }, z.core.$strip>;
17031
+ };
17032
+ };
17033
+ };
17034
+ };
17035
+ responses: {
17036
+ 200: {
17037
+ description: string;
17038
+ content: {
17039
+ 'application/json': {
17040
+ schema: z.ZodObject<{
17041
+ page: z.ZodObject<{
17042
+ _id: z.ZodString;
17043
+ path: z.ZodString;
17044
+ revision: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
17045
+ _id: z.ZodString;
17046
+ path: z.ZodString;
17047
+ body: z.ZodString;
17048
+ format: z.ZodDefault<z.ZodString>;
17049
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17050
+ _id: z.ZodString;
17051
+ id: z.ZodOptional<z.ZodString>;
17052
+ username: z.ZodString;
17053
+ name: z.ZodString;
17054
+ email: z.ZodString;
17055
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17056
+ createdAt: z.ZodString;
17057
+ }, z.core.$strip>>>;
17058
+ createdAt: z.ZodString;
17059
+ meta: z.ZodOptional<z.ZodObject<{
17060
+ toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
17061
+ level: z.ZodNumber;
17062
+ text: z.ZodString;
17063
+ anchorId: z.ZodString;
17064
+ }, z.core.$strip>>>;
17065
+ wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
17066
+ raw: z.ZodString;
17067
+ target: z.ZodString;
17068
+ displayText: z.ZodOptional<z.ZodString>;
17069
+ }, z.core.$strip>>>;
17070
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
17071
+ username: z.ZodString;
17072
+ }, z.core.$strip>>>;
17073
+ codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
17074
+ }, z.core.$strip>>;
17075
+ renderedAst: z.ZodOptional<z.ZodUnknown>;
17076
+ rendererVersion: z.ZodOptional<z.ZodString>;
17077
+ parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17078
+ type: z.ZodOptional<z.ZodEnum<{
17079
+ snapshot: "snapshot";
17080
+ incremental: "incremental";
17081
+ }>>;
17082
+ savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
17083
+ _id: z.ZodString;
17084
+ id: z.ZodOptional<z.ZodString>;
17085
+ username: z.ZodString;
17086
+ name: z.ZodString;
17087
+ email: z.ZodString;
17088
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17089
+ createdAt: z.ZodString;
17090
+ }, z.core.$strip>]>>>;
17091
+ contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
17092
+ _id: z.ZodString;
17093
+ id: z.ZodOptional<z.ZodString>;
17094
+ username: z.ZodString;
17095
+ name: z.ZodString;
17096
+ email: z.ZodString;
17097
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17098
+ createdAt: z.ZodString;
17099
+ }, z.core.$strip>]>>>;
17100
+ message: z.ZodOptional<z.ZodString>;
17101
+ editVia: z.ZodOptional<z.ZodEnum<{
17102
+ web: "web";
17103
+ oauth: "oauth";
17104
+ pat: "pat";
17105
+ }>>;
17106
+ }, z.core.$strip>]>>;
17107
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17108
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
17109
+ deprecated: "deprecated";
17110
+ wip: "wip";
17111
+ published: "published";
17112
+ deleted: "deleted";
17113
+ draft: "draft";
17114
+ }>>>;
17115
+ grant: z.ZodOptional<z.ZodNumber>;
17116
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
17117
+ creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
17118
+ _id: z.ZodString;
17119
+ id: z.ZodOptional<z.ZodString>;
17120
+ username: z.ZodString;
17121
+ name: z.ZodString;
17122
+ email: z.ZodString;
17123
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17124
+ createdAt: z.ZodString;
17125
+ }, z.core.$strip>]>>>;
17126
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
17127
+ _id: z.ZodString;
17128
+ id: z.ZodOptional<z.ZodString>;
17129
+ username: z.ZodString;
17130
+ name: z.ZodString;
17131
+ email: z.ZodString;
17132
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17133
+ createdAt: z.ZodString;
17134
+ }, z.core.$strip>]>>>;
17135
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
17136
+ commentCount: z.ZodDefault<z.ZodNumber>;
17137
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
17138
+ createdAt: z.ZodString;
17139
+ updatedAt: z.ZodOptional<z.ZodString>;
17140
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17141
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17142
+ latestRevision: z.ZodOptional<z.ZodString>;
17143
+ likerCount: z.ZodOptional<z.ZodNumber>;
17144
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
17145
+ }, z.core.$strip>;
17146
+ }, z.core.$strip>;
17147
+ };
17148
+ };
17149
+ };
17150
+ 400: {
17151
+ description: string;
17152
+ content: {
17153
+ 'application/json': {
17154
+ schema: z.ZodObject<{
17155
+ error: z.ZodObject<{
17156
+ code: z.ZodString;
17157
+ message: z.ZodString;
17158
+ }, z.core.$strip>;
17159
+ }, z.core.$strip>;
17160
+ };
17161
+ };
17162
+ };
17163
+ 401: {
17164
+ description: string;
17165
+ content: {
17166
+ 'application/json': {
17167
+ schema: z.ZodObject<{
17168
+ error: z.ZodObject<{
17169
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
17170
+ message: z.ZodLiteral<"Authentication is required">;
17171
+ redirectTo: z.ZodOptional<z.ZodString>;
17172
+ }, z.core.$strip>;
17173
+ }, z.core.$strip>;
17174
+ };
17175
+ };
17176
+ };
17177
+ 404: {
17178
+ description: string;
17179
+ content: {
17180
+ 'application/json': {
17181
+ schema: z.ZodObject<{
17182
+ error: z.ZodObject<{
17183
+ code: z.ZodLiteral<"PAGE_NOT_FOUND">;
17184
+ message: z.ZodLiteral<"Page not found">;
17185
+ }, z.core.$strip>;
17186
+ }, z.core.$strip>;
17187
+ };
17188
+ };
17189
+ };
16510
17190
  };
16511
17191
  } & {
16512
- getRoutingPath(): "/pages";
17192
+ getRoutingPath(): "/pages/revert";
16513
17193
  };
16514
- revertDeletedPageRoute: {
17194
+ revertToRevisionRoute: {
16515
17195
  method: "post";
16516
- path: "/pages/revert";
17196
+ path: "/pages/revert-to-revision";
16517
17197
  tags: string[];
16518
17198
  security: {
16519
17199
  bearerAuth: never[];
@@ -16525,6 +17205,7 @@ declare const pageRoutes: {
16525
17205
  'application/json': {
16526
17206
  schema: z.ZodObject<{
16527
17207
  page_id: z.ZodString;
17208
+ revision_id: z.ZodString;
16528
17209
  }, z.core.$strip>;
16529
17210
  };
16530
17211
  };
@@ -16687,7 +17368,7 @@ declare const pageRoutes: {
16687
17368
  };
16688
17369
  };
16689
17370
  } & {
16690
- getRoutingPath(): "/pages/revert";
17371
+ getRoutingPath(): "/pages/revert-to-revision";
16691
17372
  };
16692
17373
  renamePageRoute: {
16693
17374
  method: "post";
@@ -22352,6 +23033,7 @@ declare const AdminSidebarSection: z.ZodEnum<{
22352
23033
  mail: "mail";
22353
23034
  auth: "auth";
22354
23035
  renderer: "renderer";
23036
+ platform: "platform";
22355
23037
  }>;
22356
23038
  type AdminSidebarSectionValue = z.infer<typeof AdminSidebarSection>;
22357
23039
  declare const PluginAdminPlacementSchema: z.ZodObject<{
@@ -22364,6 +23046,7 @@ declare const PluginAdminPlacementSchema: z.ZodObject<{
22364
23046
  mail: "mail";
22365
23047
  auth: "auth";
22366
23048
  renderer: "renderer";
23049
+ platform: "platform";
22367
23050
  }>;
22368
23051
  label: z.ZodString;
22369
23052
  icon: z.ZodOptional<z.ZodString>;
@@ -22385,6 +23068,7 @@ declare const PluginInfoSchema: z.ZodObject<{
22385
23068
  mail: "mail";
22386
23069
  auth: "auth";
22387
23070
  renderer: "renderer";
23071
+ platform: "platform";
22388
23072
  }>;
22389
23073
  label: z.ZodString;
22390
23074
  icon: z.ZodOptional<z.ZodString>;
@@ -22409,6 +23093,7 @@ declare const ListPluginsResponseSchema: z.ZodObject<{
22409
23093
  mail: "mail";
22410
23094
  auth: "auth";
22411
23095
  renderer: "renderer";
23096
+ platform: "platform";
22412
23097
  }>;
22413
23098
  label: z.ZodString;
22414
23099
  icon: z.ZodOptional<z.ZodString>;
@@ -22545,6 +23230,7 @@ declare const listPluginsRoute: {
22545
23230
  mail: "mail";
22546
23231
  auth: "auth";
22547
23232
  renderer: "renderer";
23233
+ platform: "platform";
22548
23234
  }>;
22549
23235
  label: z.ZodString;
22550
23236
  icon: z.ZodOptional<z.ZodString>;
@@ -23012,6 +23698,7 @@ declare const adminPluginsRoutes: {
23012
23698
  mail: "mail";
23013
23699
  auth: "auth";
23014
23700
  renderer: "renderer";
23701
+ platform: "platform";
23015
23702
  }>;
23016
23703
  label: z.ZodString;
23017
23704
  icon: z.ZodOptional<z.ZodString>;
@@ -25561,6 +26248,135 @@ declare const resetPasswordRoute: {
25561
26248
  } & {
25562
26249
  getRoutingPath(): "/admin/users/:id/reset-password";
25563
26250
  };
26251
+ declare const resendInviteRoute: {
26252
+ method: "post";
26253
+ path: "/admin/users/{id}/resend-invite";
26254
+ tags: string[];
26255
+ security: {
26256
+ bearerAuth: never[];
26257
+ }[];
26258
+ summary: string;
26259
+ request: {
26260
+ params: z.ZodObject<{
26261
+ id: z.ZodString;
26262
+ }, z.core.$strip>;
26263
+ };
26264
+ responses: {
26265
+ 200: {
26266
+ description: string;
26267
+ content: {
26268
+ 'application/json': {
26269
+ schema: z.ZodObject<{
26270
+ user: z.ZodObject<{
26271
+ _id: z.ZodString;
26272
+ id: z.ZodOptional<z.ZodString>;
26273
+ username: z.ZodString;
26274
+ name: z.ZodString;
26275
+ email: z.ZodString;
26276
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26277
+ introduction: z.ZodOptional<z.ZodString>;
26278
+ createdAt: z.ZodString;
26279
+ admin: z.ZodOptional<z.ZodBoolean>;
26280
+ status: z.ZodOptional<z.ZodEnum<{
26281
+ readonly REGISTERED: 1;
26282
+ readonly ACTIVE: 2;
26283
+ readonly SUSPENDED: 3;
26284
+ readonly DELETED: 4;
26285
+ readonly INVITED: 5;
26286
+ }>>;
26287
+ }, z.core.$strip>;
26288
+ }, z.core.$strip>;
26289
+ };
26290
+ };
26291
+ };
26292
+ 400: {
26293
+ description: string;
26294
+ content: {
26295
+ 'application/json': {
26296
+ schema: z.ZodObject<{
26297
+ error: z.ZodObject<{
26298
+ code: z.ZodLiteral<"VALIDATION_ERROR">;
26299
+ message: z.ZodString;
26300
+ details: z.ZodOptional<z.ZodObject<{
26301
+ fieldErrors: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
26302
+ formErrors: z.ZodArray<z.ZodString>;
26303
+ }, z.core.$strip>>;
26304
+ }, z.core.$strip>;
26305
+ }, z.core.$strip>;
26306
+ };
26307
+ };
26308
+ };
26309
+ 401: {
26310
+ description: string;
26311
+ content: {
26312
+ 'application/json': {
26313
+ schema: z.ZodObject<{
26314
+ error: z.ZodObject<{
26315
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
26316
+ message: z.ZodLiteral<"Authentication is required">;
26317
+ redirectTo: z.ZodOptional<z.ZodString>;
26318
+ }, z.core.$strip>;
26319
+ }, z.core.$strip>;
26320
+ };
26321
+ };
26322
+ };
26323
+ 403: {
26324
+ description: string;
26325
+ content: {
26326
+ 'application/json': {
26327
+ schema: z.ZodObject<{
26328
+ error: z.ZodObject<{
26329
+ code: z.ZodLiteral<"ADMIN_REQUIRED">;
26330
+ message: z.ZodLiteral<"Admin permission required">;
26331
+ redirectTo: z.ZodOptional<z.ZodString>;
26332
+ }, z.core.$strip>;
26333
+ }, z.core.$strip>;
26334
+ };
26335
+ };
26336
+ };
26337
+ 404: {
26338
+ description: string;
26339
+ content: {
26340
+ 'application/json': {
26341
+ schema: z.ZodObject<{
26342
+ error: z.ZodObject<{
26343
+ code: z.ZodLiteral<"NOT_FOUND">;
26344
+ message: z.ZodString;
26345
+ }, z.core.$strip>;
26346
+ }, z.core.$strip>;
26347
+ };
26348
+ };
26349
+ };
26350
+ 409: {
26351
+ description: string;
26352
+ content: {
26353
+ 'application/json': {
26354
+ schema: z.ZodObject<{
26355
+ error: z.ZodObject<{
26356
+ code: z.ZodLiteral<"CONFLICT">;
26357
+ message: z.ZodString;
26358
+ }, z.core.$strip>;
26359
+ }, z.core.$strip>;
26360
+ };
26361
+ };
26362
+ };
26363
+ 500: {
26364
+ description: string;
26365
+ content: {
26366
+ 'application/json': {
26367
+ schema: z.ZodObject<{
26368
+ error: z.ZodObject<{
26369
+ code: z.ZodLiteral<"INTERNAL_ERROR">;
26370
+ message: z.ZodLiteral<"Internal server error">;
26371
+ }, z.core.$strip>;
26372
+ }, z.core.$strip>;
26373
+ };
26374
+ };
26375
+ };
26376
+ };
26377
+ } & {
26378
+ getRoutingPath(): "/admin/users/:id/resend-invite";
26379
+ };
25564
26380
  declare const updateUserEmailRoute: {
25565
26381
  method: "put";
25566
26382
  path: "/admin/users/{id}/email";
@@ -26882,7 +27698,136 @@ declare const adminUsersRoutes: {
26882
27698
  };
26883
27699
  };
26884
27700
  } & {
26885
- getRoutingPath(): "/admin/users/:id/reset-password";
27701
+ getRoutingPath(): "/admin/users/:id/reset-password";
27702
+ };
27703
+ resendInviteRoute: {
27704
+ method: "post";
27705
+ path: "/admin/users/{id}/resend-invite";
27706
+ tags: string[];
27707
+ security: {
27708
+ bearerAuth: never[];
27709
+ }[];
27710
+ summary: string;
27711
+ request: {
27712
+ params: z.ZodObject<{
27713
+ id: z.ZodString;
27714
+ }, z.core.$strip>;
27715
+ };
27716
+ responses: {
27717
+ 200: {
27718
+ description: string;
27719
+ content: {
27720
+ 'application/json': {
27721
+ schema: z.ZodObject<{
27722
+ user: z.ZodObject<{
27723
+ _id: z.ZodString;
27724
+ id: z.ZodOptional<z.ZodString>;
27725
+ username: z.ZodString;
27726
+ name: z.ZodString;
27727
+ email: z.ZodString;
27728
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27729
+ introduction: z.ZodOptional<z.ZodString>;
27730
+ createdAt: z.ZodString;
27731
+ admin: z.ZodOptional<z.ZodBoolean>;
27732
+ status: z.ZodOptional<z.ZodEnum<{
27733
+ readonly REGISTERED: 1;
27734
+ readonly ACTIVE: 2;
27735
+ readonly SUSPENDED: 3;
27736
+ readonly DELETED: 4;
27737
+ readonly INVITED: 5;
27738
+ }>>;
27739
+ }, z.core.$strip>;
27740
+ }, z.core.$strip>;
27741
+ };
27742
+ };
27743
+ };
27744
+ 400: {
27745
+ description: string;
27746
+ content: {
27747
+ 'application/json': {
27748
+ schema: z.ZodObject<{
27749
+ error: z.ZodObject<{
27750
+ code: z.ZodLiteral<"VALIDATION_ERROR">;
27751
+ message: z.ZodString;
27752
+ details: z.ZodOptional<z.ZodObject<{
27753
+ fieldErrors: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
27754
+ formErrors: z.ZodArray<z.ZodString>;
27755
+ }, z.core.$strip>>;
27756
+ }, z.core.$strip>;
27757
+ }, z.core.$strip>;
27758
+ };
27759
+ };
27760
+ };
27761
+ 401: {
27762
+ description: string;
27763
+ content: {
27764
+ 'application/json': {
27765
+ schema: z.ZodObject<{
27766
+ error: z.ZodObject<{
27767
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
27768
+ message: z.ZodLiteral<"Authentication is required">;
27769
+ redirectTo: z.ZodOptional<z.ZodString>;
27770
+ }, z.core.$strip>;
27771
+ }, z.core.$strip>;
27772
+ };
27773
+ };
27774
+ };
27775
+ 403: {
27776
+ description: string;
27777
+ content: {
27778
+ 'application/json': {
27779
+ schema: z.ZodObject<{
27780
+ error: z.ZodObject<{
27781
+ code: z.ZodLiteral<"ADMIN_REQUIRED">;
27782
+ message: z.ZodLiteral<"Admin permission required">;
27783
+ redirectTo: z.ZodOptional<z.ZodString>;
27784
+ }, z.core.$strip>;
27785
+ }, z.core.$strip>;
27786
+ };
27787
+ };
27788
+ };
27789
+ 404: {
27790
+ description: string;
27791
+ content: {
27792
+ 'application/json': {
27793
+ schema: z.ZodObject<{
27794
+ error: z.ZodObject<{
27795
+ code: z.ZodLiteral<"NOT_FOUND">;
27796
+ message: z.ZodString;
27797
+ }, z.core.$strip>;
27798
+ }, z.core.$strip>;
27799
+ };
27800
+ };
27801
+ };
27802
+ 409: {
27803
+ description: string;
27804
+ content: {
27805
+ 'application/json': {
27806
+ schema: z.ZodObject<{
27807
+ error: z.ZodObject<{
27808
+ code: z.ZodLiteral<"CONFLICT">;
27809
+ message: z.ZodString;
27810
+ }, z.core.$strip>;
27811
+ }, z.core.$strip>;
27812
+ };
27813
+ };
27814
+ };
27815
+ 500: {
27816
+ description: string;
27817
+ content: {
27818
+ 'application/json': {
27819
+ schema: z.ZodObject<{
27820
+ error: z.ZodObject<{
27821
+ code: z.ZodLiteral<"INTERNAL_ERROR">;
27822
+ message: z.ZodLiteral<"Internal server error">;
27823
+ }, z.core.$strip>;
27824
+ }, z.core.$strip>;
27825
+ };
27826
+ };
27827
+ };
27828
+ };
27829
+ } & {
27830
+ getRoutingPath(): "/admin/users/:id/resend-invite";
26886
27831
  };
26887
27832
  updateUserEmailRoute: {
26888
27833
  method: "put";
@@ -27210,6 +28155,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27210
28155
  version: string;
27211
28156
  apiVersion: string;
27212
28157
  capabilities: string[];
28158
+ canSelfRegister: boolean;
27213
28159
  };
27214
28160
  outputFormat: "json";
27215
28161
  status: 200;
@@ -27353,7 +28299,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27353
28299
  };
27354
28300
  output: {
27355
28301
  error: {
27356
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28302
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27357
28303
  message: string;
27358
28304
  details?: any;
27359
28305
  };
@@ -27369,7 +28315,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27369
28315
  };
27370
28316
  output: {
27371
28317
  error: {
27372
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28318
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27373
28319
  message: string;
27374
28320
  details?: any;
27375
28321
  };
@@ -27424,7 +28370,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27424
28370
  };
27425
28371
  output: {
27426
28372
  error: {
27427
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28373
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27428
28374
  message: string;
27429
28375
  details?: any;
27430
28376
  };
@@ -27474,7 +28420,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27474
28420
  };
27475
28421
  output: {
27476
28422
  error: {
27477
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28423
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27478
28424
  message: string;
27479
28425
  details?: any;
27480
28426
  };
@@ -27492,7 +28438,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27492
28438
  };
27493
28439
  output: {
27494
28440
  error: {
27495
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28441
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27496
28442
  message: string;
27497
28443
  details?: any;
27498
28444
  };
@@ -27525,7 +28471,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27525
28471
  };
27526
28472
  output: {
27527
28473
  error: {
27528
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28474
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27529
28475
  message: string;
27530
28476
  details?: any;
27531
28477
  };
@@ -27540,7 +28486,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27540
28486
  };
27541
28487
  output: {
27542
28488
  error: {
27543
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28489
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27544
28490
  message: string;
27545
28491
  details?: any;
27546
28492
  };
@@ -27614,7 +28560,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27614
28560
  };
27615
28561
  output: {
27616
28562
  error: {
27617
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28563
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27618
28564
  message: string;
27619
28565
  details?: any;
27620
28566
  };
@@ -27632,7 +28578,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27632
28578
  };
27633
28579
  output: {
27634
28580
  error: {
27635
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28581
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27636
28582
  message: string;
27637
28583
  details?: any;
27638
28584
  };
@@ -27650,7 +28596,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27650
28596
  };
27651
28597
  output: {
27652
28598
  error: {
27653
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28599
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27654
28600
  message: string;
27655
28601
  details?: any;
27656
28602
  };
@@ -27668,7 +28614,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27668
28614
  };
27669
28615
  output: {
27670
28616
  error: {
27671
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28617
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27672
28618
  message: string;
27673
28619
  details?: any;
27674
28620
  };
@@ -27701,7 +28647,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27701
28647
  };
27702
28648
  output: {
27703
28649
  error: {
27704
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28650
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27705
28651
  message: string;
27706
28652
  details?: any;
27707
28653
  };
@@ -27745,7 +28691,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27745
28691
  };
27746
28692
  output: {
27747
28693
  error: {
27748
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28694
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27749
28695
  message: string;
27750
28696
  details?: any;
27751
28697
  };
@@ -27813,7 +28759,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27813
28759
  };
27814
28760
  output: {
27815
28761
  error: {
27816
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28762
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27817
28763
  message: string;
27818
28764
  details?: any;
27819
28765
  };
@@ -27829,7 +28775,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27829
28775
  };
27830
28776
  output: {
27831
28777
  error: {
27832
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28778
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27833
28779
  message: string;
27834
28780
  details?: any;
27835
28781
  };
@@ -27845,7 +28791,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27845
28791
  };
27846
28792
  output: {
27847
28793
  error: {
27848
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28794
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27849
28795
  message: string;
27850
28796
  details?: any;
27851
28797
  };
@@ -27878,7 +28824,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27878
28824
  };
27879
28825
  output: {
27880
28826
  error: {
27881
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28827
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27882
28828
  message: string;
27883
28829
  details?: any;
27884
28830
  };
@@ -27943,7 +28889,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27943
28889
  };
27944
28890
  output: {
27945
28891
  error: {
27946
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28892
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27947
28893
  message: string;
27948
28894
  details?: any;
27949
28895
  };
@@ -27958,7 +28904,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27958
28904
  };
27959
28905
  output: {
27960
28906
  error: {
27961
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28907
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27962
28908
  message: string;
27963
28909
  details?: any;
27964
28910
  };
@@ -27991,7 +28937,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27991
28937
  };
27992
28938
  output: {
27993
28939
  error: {
27994
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28940
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
27995
28941
  message: string;
27996
28942
  details?: any;
27997
28943
  };
@@ -28036,7 +28982,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
28036
28982
  };
28037
28983
  output: {
28038
28984
  error: {
28039
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28985
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28040
28986
  message: string;
28041
28987
  details?: any;
28042
28988
  };
@@ -28051,7 +28997,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
28051
28997
  };
28052
28998
  output: {
28053
28999
  error: {
28054
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
29000
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28055
29001
  message: string;
28056
29002
  details?: any;
28057
29003
  };
@@ -28066,7 +29012,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
28066
29012
  };
28067
29013
  output: {
28068
29014
  error: {
28069
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
29015
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28070
29016
  message: string;
28071
29017
  details?: any;
28072
29018
  };
@@ -28132,7 +29078,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
28132
29078
  };
28133
29079
  output: {
28134
29080
  error: {
28135
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
29081
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28136
29082
  message: string;
28137
29083
  details?: any;
28138
29084
  };
@@ -28147,7 +29093,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
28147
29093
  };
28148
29094
  output: {
28149
29095
  error: {
28150
- code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
29096
+ code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED";
28151
29097
  message: string;
28152
29098
  details?: any;
28153
29099
  };
@@ -28918,7 +29864,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
28918
29864
  image?: string | null | undefined;
28919
29865
  introduction?: string | undefined;
28920
29866
  admin?: boolean | undefined;
28921
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
29867
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
28922
29868
  };
28923
29869
  createdPagesCount: number;
28924
29870
  bookmarksCount: number;
@@ -29122,7 +30068,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
29122
30068
  image?: string | null | undefined;
29123
30069
  introduction?: string | undefined;
29124
30070
  admin?: boolean | undefined;
29125
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
30071
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
29126
30072
  };
29127
30073
  createdAt: string;
29128
30074
  }[] | undefined;
@@ -29323,7 +30269,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
29323
30269
  image?: string | null | undefined;
29324
30270
  introduction?: string | undefined;
29325
30271
  admin?: boolean | undefined;
29326
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
30272
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
29327
30273
  };
29328
30274
  createdAt: string;
29329
30275
  }[];
@@ -29721,7 +30667,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
29721
30667
  image?: string | null | undefined;
29722
30668
  introduction?: string | undefined;
29723
30669
  admin?: boolean | undefined;
29724
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
30670
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
29725
30671
  };
29726
30672
  createdAt: string;
29727
30673
  } | null;
@@ -29891,7 +30837,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
29891
30837
  image?: string | null | undefined;
29892
30838
  introduction?: string | undefined;
29893
30839
  admin?: boolean | undefined;
29894
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
30840
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
29895
30841
  };
29896
30842
  createdAt: string;
29897
30843
  }[];
@@ -30050,7 +30996,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
30050
30996
  image?: string | null | undefined;
30051
30997
  introduction?: string | undefined;
30052
30998
  admin?: boolean | undefined;
30053
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
30999
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
30054
31000
  };
30055
31001
  createdAt: string;
30056
31002
  } | null;
@@ -30194,7 +31140,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
30194
31140
  image?: string | null | undefined;
30195
31141
  introduction?: string | undefined;
30196
31142
  admin?: boolean | undefined;
30197
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
31143
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
30198
31144
  } | null | undefined;
30199
31145
  };
30200
31146
  updatedAt: string;
@@ -30945,6 +31891,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
30945
31891
  include_deleted?: unknown;
30946
31892
  sort?: "path" | "createdAt" | "updatedAt" | undefined;
30947
31893
  order?: "asc" | "desc" | undefined;
31894
+ revision_id?: string | undefined;
30948
31895
  };
30949
31896
  };
30950
31897
  output: {
@@ -30966,6 +31913,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
30966
31913
  include_deleted?: unknown;
30967
31914
  sort?: "path" | "createdAt" | "updatedAt" | undefined;
30968
31915
  order?: "asc" | "desc" | undefined;
31916
+ revision_id?: string | undefined;
30969
31917
  };
30970
31918
  };
30971
31919
  output: {
@@ -31162,6 +32110,100 @@ declare const pageChain: OpenAPIHono<hono.Env, {
31162
32110
  likerCount?: number | undefined;
31163
32111
  seenUsersCount?: number | undefined;
31164
32112
  } | null | undefined;
32113
+ contentPage?: {
32114
+ _id: string;
32115
+ path: string;
32116
+ commentCount: number;
32117
+ createdAt: string;
32118
+ revision?: string | {
32119
+ _id: string;
32120
+ path: string;
32121
+ body: string;
32122
+ format: string;
32123
+ createdAt: string;
32124
+ author?: {
32125
+ _id: string;
32126
+ username: string;
32127
+ name: string;
32128
+ email: string;
32129
+ createdAt: string;
32130
+ id?: string | undefined;
32131
+ image?: string | null | undefined;
32132
+ } | null | undefined;
32133
+ meta?: {
32134
+ toc?: {
32135
+ level: number;
32136
+ text: string;
32137
+ anchorId: string;
32138
+ }[] | undefined;
32139
+ wikiLinks?: {
32140
+ raw: string;
32141
+ target: string;
32142
+ displayText?: string | undefined;
32143
+ }[] | undefined;
32144
+ mentions?: {
32145
+ username: string;
32146
+ }[] | undefined;
32147
+ codeBlockLanguages?: string[] | undefined;
32148
+ } | undefined;
32149
+ renderedAst?: hono_utils_types.JSONValue | undefined;
32150
+ rendererVersion?: string | undefined;
32151
+ parentRevisionId?: string | null | undefined;
32152
+ type?: "snapshot" | "incremental" | undefined;
32153
+ savedBy?: string | {
32154
+ _id: string;
32155
+ username: string;
32156
+ name: string;
32157
+ email: string;
32158
+ createdAt: string;
32159
+ id?: string | undefined;
32160
+ image?: string | null | undefined;
32161
+ } | null | undefined;
32162
+ contributors?: (string | {
32163
+ _id: string;
32164
+ username: string;
32165
+ name: string;
32166
+ email: string;
32167
+ createdAt: string;
32168
+ id?: string | undefined;
32169
+ image?: string | null | undefined;
32170
+ })[] | undefined;
32171
+ message?: string | undefined;
32172
+ editVia?: "web" | "oauth" | "pat" | undefined;
32173
+ } | undefined;
32174
+ redirectTo?: string | null | undefined;
32175
+ status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
32176
+ grant?: number | undefined;
32177
+ grantedUsers?: string[] | undefined;
32178
+ creator?: string | {
32179
+ _id: string;
32180
+ username: string;
32181
+ name: string;
32182
+ email: string;
32183
+ createdAt: string;
32184
+ id?: string | undefined;
32185
+ image?: string | null | undefined;
32186
+ } | null | undefined;
32187
+ lastUpdateUser?: string | {
32188
+ _id: string;
32189
+ username: string;
32190
+ name: string;
32191
+ email: string;
32192
+ createdAt: string;
32193
+ id?: string | undefined;
32194
+ image?: string | null | undefined;
32195
+ } | null | undefined;
32196
+ liker?: string[] | undefined;
32197
+ extended?: {
32198
+ [x: string]: any;
32199
+ } | undefined;
32200
+ updatedAt?: string | undefined;
32201
+ currentRevision?: string | null | undefined;
32202
+ yjsCheckpointAt?: string | null | undefined;
32203
+ latestRevision?: string | undefined;
32204
+ likerCount?: number | undefined;
32205
+ seenUsersCount?: number | undefined;
32206
+ } | null | undefined;
31165
32207
  };
31166
32208
  outputFormat: "json";
31167
32209
  status: 200;
@@ -31743,7 +32785,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
31743
32785
  image?: string | null | undefined;
31744
32786
  introduction?: string | undefined;
31745
32787
  admin?: boolean | undefined;
31746
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
32788
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
31747
32789
  }[];
31748
32790
  seenUsersCount: number;
31749
32791
  };
@@ -31817,7 +32859,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
31817
32859
  image?: string | null | undefined;
31818
32860
  introduction?: string | undefined;
31819
32861
  admin?: boolean | undefined;
31820
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
32862
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
31821
32863
  }[];
31822
32864
  seenUsersCount: number;
31823
32865
  };
@@ -32573,6 +33615,161 @@ declare const pageChain: OpenAPIHono<hono.Env, {
32573
33615
  status: 400;
32574
33616
  };
32575
33617
  };
33618
+ } & {
33619
+ "/pages/revert-to-revision": {
33620
+ $post: {
33621
+ input: {
33622
+ json: {
33623
+ page_id: string;
33624
+ revision_id: string;
33625
+ };
33626
+ };
33627
+ output: {
33628
+ error: {
33629
+ code: "AUTHENTICATION_REQUIRED";
33630
+ message: "Authentication is required";
33631
+ redirectTo?: string | undefined;
33632
+ };
33633
+ };
33634
+ outputFormat: "json";
33635
+ status: 401;
33636
+ } | {
33637
+ input: {
33638
+ json: {
33639
+ page_id: string;
33640
+ revision_id: string;
33641
+ };
33642
+ };
33643
+ output: {
33644
+ error: {
33645
+ code: "PAGE_NOT_FOUND";
33646
+ message: "Page not found";
33647
+ };
33648
+ };
33649
+ outputFormat: "json";
33650
+ status: 404;
33651
+ } | {
33652
+ input: {
33653
+ json: {
33654
+ page_id: string;
33655
+ revision_id: string;
33656
+ };
33657
+ };
33658
+ output: {
33659
+ page: {
33660
+ _id: string;
33661
+ path: string;
33662
+ commentCount: number;
33663
+ createdAt: string;
33664
+ revision?: string | {
33665
+ _id: string;
33666
+ path: string;
33667
+ body: string;
33668
+ format: string;
33669
+ createdAt: string;
33670
+ author?: {
33671
+ _id: string;
33672
+ username: string;
33673
+ name: string;
33674
+ email: string;
33675
+ createdAt: string;
33676
+ id?: string | undefined;
33677
+ image?: string | null | undefined;
33678
+ } | null | undefined;
33679
+ meta?: {
33680
+ toc?: {
33681
+ level: number;
33682
+ text: string;
33683
+ anchorId: string;
33684
+ }[] | undefined;
33685
+ wikiLinks?: {
33686
+ raw: string;
33687
+ target: string;
33688
+ displayText?: string | undefined;
33689
+ }[] | undefined;
33690
+ mentions?: {
33691
+ username: string;
33692
+ }[] | undefined;
33693
+ codeBlockLanguages?: string[] | undefined;
33694
+ } | undefined;
33695
+ renderedAst?: hono_utils_types.JSONValue | undefined;
33696
+ rendererVersion?: string | undefined;
33697
+ parentRevisionId?: string | null | undefined;
33698
+ type?: "snapshot" | "incremental" | undefined;
33699
+ savedBy?: string | {
33700
+ _id: string;
33701
+ username: string;
33702
+ name: string;
33703
+ email: string;
33704
+ createdAt: string;
33705
+ id?: string | undefined;
33706
+ image?: string | null | undefined;
33707
+ } | null | undefined;
33708
+ contributors?: (string | {
33709
+ _id: string;
33710
+ username: string;
33711
+ name: string;
33712
+ email: string;
33713
+ createdAt: string;
33714
+ id?: string | undefined;
33715
+ image?: string | null | undefined;
33716
+ })[] | undefined;
33717
+ message?: string | undefined;
33718
+ editVia?: "web" | "oauth" | "pat" | undefined;
33719
+ } | undefined;
33720
+ redirectTo?: string | null | undefined;
33721
+ status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
33722
+ grant?: number | undefined;
33723
+ grantedUsers?: string[] | undefined;
33724
+ creator?: string | {
33725
+ _id: string;
33726
+ username: string;
33727
+ name: string;
33728
+ email: string;
33729
+ createdAt: string;
33730
+ id?: string | undefined;
33731
+ image?: string | null | undefined;
33732
+ } | null | undefined;
33733
+ lastUpdateUser?: string | {
33734
+ _id: string;
33735
+ username: string;
33736
+ name: string;
33737
+ email: string;
33738
+ createdAt: string;
33739
+ id?: string | undefined;
33740
+ image?: string | null | undefined;
33741
+ } | null | undefined;
33742
+ liker?: string[] | undefined;
33743
+ extended?: {
33744
+ [x: string]: any;
33745
+ } | undefined;
33746
+ updatedAt?: string | undefined;
33747
+ currentRevision?: string | null | undefined;
33748
+ yjsCheckpointAt?: string | null | undefined;
33749
+ latestRevision?: string | undefined;
33750
+ likerCount?: number | undefined;
33751
+ seenUsersCount?: number | undefined;
33752
+ };
33753
+ };
33754
+ outputFormat: "json";
33755
+ status: 200;
33756
+ } | {
33757
+ input: {
33758
+ json: {
33759
+ page_id: string;
33760
+ revision_id: string;
33761
+ };
33762
+ };
33763
+ output: {
33764
+ error: {
33765
+ code: string;
33766
+ message: string;
33767
+ };
33768
+ };
33769
+ outputFormat: "json";
33770
+ status: 400;
33771
+ };
33772
+ };
32576
33773
  } & {
32577
33774
  "/pages/rename": {
32578
33775
  $post: {
@@ -33463,7 +34660,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
33463
34660
  image?: string | null | undefined;
33464
34661
  introduction?: string | undefined;
33465
34662
  admin?: boolean | undefined;
33466
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
34663
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
33467
34664
  };
33468
34665
  filePath: string;
33469
34666
  fileName: string;
@@ -33488,7 +34685,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
33488
34685
  image?: string | null | undefined;
33489
34686
  introduction?: string | undefined;
33490
34687
  admin?: boolean | undefined;
33491
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
34688
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
33492
34689
  };
33493
34690
  filePath: string;
33494
34691
  fileName: string;
@@ -33512,7 +34709,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
33512
34709
  image?: string | null | undefined;
33513
34710
  introduction?: string | undefined;
33514
34711
  admin?: boolean | undefined;
33515
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
34712
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
33516
34713
  };
33517
34714
  }[];
33518
34715
  }[];
@@ -33628,7 +34825,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
33628
34825
  image?: string | null | undefined;
33629
34826
  introduction?: string | undefined;
33630
34827
  admin?: boolean | undefined;
33631
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
34828
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
33632
34829
  };
33633
34830
  filePath: string;
33634
34831
  fileName: string;
@@ -33725,7 +34922,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
33725
34922
  image?: string | null | undefined;
33726
34923
  introduction?: string | undefined;
33727
34924
  admin?: boolean | undefined;
33728
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
34925
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
33729
34926
  };
33730
34927
  filePath: string;
33731
34928
  fileName: string;
@@ -33994,7 +35191,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
33994
35191
  image?: string | null | undefined;
33995
35192
  introduction?: string | undefined;
33996
35193
  admin?: boolean | undefined;
33997
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
35194
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
33998
35195
  };
33999
35196
  page: string;
34000
35197
  url: string;
@@ -34466,7 +35663,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
34466
35663
  image?: string | null | undefined;
34467
35664
  introduction?: string | undefined;
34468
35665
  admin?: boolean | undefined;
34469
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
35666
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
34470
35667
  }[];
34471
35668
  createdAt: string;
34472
35669
  }[];
@@ -34637,7 +35834,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
34637
35834
  image?: string | null | undefined;
34638
35835
  introduction?: string | undefined;
34639
35836
  admin?: boolean | undefined;
34640
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
35837
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
34641
35838
  }[];
34642
35839
  createdAt: string;
34643
35840
  };
@@ -35383,7 +36580,7 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
35383
36580
  image?: string | null | undefined;
35384
36581
  introduction?: string | undefined;
35385
36582
  admin?: boolean | undefined;
35386
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
36583
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
35387
36584
  }[];
35388
36585
  pager: {
35389
36586
  page: number;
@@ -35463,7 +36660,7 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
35463
36660
  image?: string | null | undefined;
35464
36661
  introduction?: string | undefined;
35465
36662
  admin?: boolean | undefined;
35466
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
36663
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
35467
36664
  }[];
35468
36665
  };
35469
36666
  outputFormat: "json";
@@ -35734,7 +36931,7 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
35734
36931
  image?: string | null | undefined;
35735
36932
  introduction?: string | undefined;
35736
36933
  admin?: boolean | undefined;
35737
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
36934
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
35738
36935
  };
35739
36936
  };
35740
36937
  outputFormat: "json";
@@ -35857,7 +37054,7 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
35857
37054
  image?: string | null | undefined;
35858
37055
  introduction?: string | undefined;
35859
37056
  admin?: boolean | undefined;
35860
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
37057
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
35861
37058
  };
35862
37059
  };
35863
37060
  outputFormat: "json";
@@ -35961,120 +37158,329 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
35961
37158
  image?: string | null | undefined;
35962
37159
  introduction?: string | undefined;
35963
37160
  admin?: boolean | undefined;
35964
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
35965
- };
35966
- };
35967
- outputFormat: "json";
35968
- status: 200;
35969
- };
35970
- };
35971
- } & {
35972
- "/admin/users/:id/status/active": {
35973
- $put: {
35974
- input: {
35975
- param: {
35976
- id: string;
35977
- };
35978
- };
35979
- output: {
35980
- error: {
35981
- code: "INTERNAL_ERROR";
35982
- message: "Internal server error";
35983
- };
35984
- };
35985
- outputFormat: "json";
35986
- status: 500;
35987
- } | {
35988
- input: {
35989
- param: {
35990
- id: string;
35991
- };
35992
- };
35993
- output: {
35994
- error: {
35995
- code: "AUTHENTICATION_REQUIRED";
35996
- message: "Authentication is required";
35997
- redirectTo?: string | undefined;
35998
- };
35999
- };
36000
- outputFormat: "json";
36001
- status: 401;
36002
- } | {
36003
- input: {
36004
- param: {
36005
- id: string;
36006
- };
36007
- };
36008
- output: {
36009
- error: {
36010
- code: "NOT_FOUND";
36011
- message: string;
36012
- };
36013
- };
36014
- outputFormat: "json";
36015
- status: 404;
36016
- } | {
36017
- input: {
36018
- param: {
36019
- id: string;
36020
- };
36021
- };
36022
- output: {
36023
- error: {
36024
- code: "VALIDATION_ERROR";
36025
- message: string;
36026
- details?: {
36027
- fieldErrors: {
36028
- [x: string]: string[];
36029
- };
36030
- formErrors: string[];
36031
- } | undefined;
36032
- };
36033
- };
36034
- outputFormat: "json";
36035
- status: 400;
36036
- } | {
36037
- input: {
36038
- param: {
36039
- id: string;
36040
- };
36041
- };
36042
- output: {
36043
- error: {
36044
- code: "ADMIN_REQUIRED";
36045
- message: "Admin permission required";
36046
- redirectTo?: string | undefined;
36047
- };
36048
- };
36049
- outputFormat: "json";
36050
- status: 403;
36051
- } | {
36052
- input: {
36053
- param: {
36054
- id: string;
36055
- };
36056
- };
36057
- output: {
36058
- user: {
36059
- _id: string;
36060
- username: string;
36061
- name: string;
36062
- email: string;
36063
- createdAt: string;
36064
- id?: string | undefined;
36065
- image?: string | null | undefined;
36066
- introduction?: string | undefined;
36067
- admin?: boolean | undefined;
36068
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
37161
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
37162
+ };
37163
+ };
37164
+ outputFormat: "json";
37165
+ status: 200;
37166
+ };
37167
+ };
37168
+ } & {
37169
+ "/admin/users/:id/status/active": {
37170
+ $put: {
37171
+ input: {
37172
+ param: {
37173
+ id: string;
37174
+ };
37175
+ };
37176
+ output: {
37177
+ error: {
37178
+ code: "INTERNAL_ERROR";
37179
+ message: "Internal server error";
37180
+ };
37181
+ };
37182
+ outputFormat: "json";
37183
+ status: 500;
37184
+ } | {
37185
+ input: {
37186
+ param: {
37187
+ id: string;
37188
+ };
37189
+ };
37190
+ output: {
37191
+ error: {
37192
+ code: "AUTHENTICATION_REQUIRED";
37193
+ message: "Authentication is required";
37194
+ redirectTo?: string | undefined;
37195
+ };
37196
+ };
37197
+ outputFormat: "json";
37198
+ status: 401;
37199
+ } | {
37200
+ input: {
37201
+ param: {
37202
+ id: string;
37203
+ };
37204
+ };
37205
+ output: {
37206
+ error: {
37207
+ code: "NOT_FOUND";
37208
+ message: string;
37209
+ };
37210
+ };
37211
+ outputFormat: "json";
37212
+ status: 404;
37213
+ } | {
37214
+ input: {
37215
+ param: {
37216
+ id: string;
37217
+ };
37218
+ };
37219
+ output: {
37220
+ error: {
37221
+ code: "VALIDATION_ERROR";
37222
+ message: string;
37223
+ details?: {
37224
+ fieldErrors: {
37225
+ [x: string]: string[];
37226
+ };
37227
+ formErrors: string[];
37228
+ } | undefined;
37229
+ };
37230
+ };
37231
+ outputFormat: "json";
37232
+ status: 400;
37233
+ } | {
37234
+ input: {
37235
+ param: {
37236
+ id: string;
37237
+ };
37238
+ };
37239
+ output: {
37240
+ error: {
37241
+ code: "ADMIN_REQUIRED";
37242
+ message: "Admin permission required";
37243
+ redirectTo?: string | undefined;
37244
+ };
37245
+ };
37246
+ outputFormat: "json";
37247
+ status: 403;
37248
+ } | {
37249
+ input: {
37250
+ param: {
37251
+ id: string;
37252
+ };
37253
+ };
37254
+ output: {
37255
+ user: {
37256
+ _id: string;
37257
+ username: string;
37258
+ name: string;
37259
+ email: string;
37260
+ createdAt: string;
37261
+ id?: string | undefined;
37262
+ image?: string | null | undefined;
37263
+ introduction?: string | undefined;
37264
+ admin?: boolean | undefined;
37265
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
37266
+ };
37267
+ };
37268
+ outputFormat: "json";
37269
+ status: 200;
37270
+ };
37271
+ };
37272
+ } & {
37273
+ "/admin/users/:id/status/suspended": {
37274
+ $put: {
37275
+ input: {
37276
+ param: {
37277
+ id: string;
37278
+ };
37279
+ };
37280
+ output: {
37281
+ error: {
37282
+ code: "INTERNAL_ERROR";
37283
+ message: "Internal server error";
37284
+ };
37285
+ };
37286
+ outputFormat: "json";
37287
+ status: 500;
37288
+ } | {
37289
+ input: {
37290
+ param: {
37291
+ id: string;
37292
+ };
37293
+ };
37294
+ output: {
37295
+ error: {
37296
+ code: "AUTHENTICATION_REQUIRED";
37297
+ message: "Authentication is required";
37298
+ redirectTo?: string | undefined;
37299
+ };
37300
+ };
37301
+ outputFormat: "json";
37302
+ status: 401;
37303
+ } | {
37304
+ input: {
37305
+ param: {
37306
+ id: string;
37307
+ };
37308
+ };
37309
+ output: {
37310
+ error: {
37311
+ code: "NOT_FOUND";
37312
+ message: string;
37313
+ };
37314
+ };
37315
+ outputFormat: "json";
37316
+ status: 404;
37317
+ } | {
37318
+ input: {
37319
+ param: {
37320
+ id: string;
37321
+ };
37322
+ };
37323
+ output: {
37324
+ error: {
37325
+ code: "VALIDATION_ERROR";
37326
+ message: string;
37327
+ details?: {
37328
+ fieldErrors: {
37329
+ [x: string]: string[];
37330
+ };
37331
+ formErrors: string[];
37332
+ } | undefined;
37333
+ };
37334
+ };
37335
+ outputFormat: "json";
37336
+ status: 400;
37337
+ } | {
37338
+ input: {
37339
+ param: {
37340
+ id: string;
37341
+ };
37342
+ };
37343
+ output: {
37344
+ error: {
37345
+ code: "ADMIN_REQUIRED";
37346
+ message: "Admin permission required";
37347
+ redirectTo?: string | undefined;
37348
+ };
37349
+ };
37350
+ outputFormat: "json";
37351
+ status: 403;
37352
+ } | {
37353
+ input: {
37354
+ param: {
37355
+ id: string;
37356
+ };
37357
+ };
37358
+ output: {
37359
+ user: {
37360
+ _id: string;
37361
+ username: string;
37362
+ name: string;
37363
+ email: string;
37364
+ createdAt: string;
37365
+ id?: string | undefined;
37366
+ image?: string | null | undefined;
37367
+ introduction?: string | undefined;
37368
+ admin?: boolean | undefined;
37369
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
37370
+ };
37371
+ };
37372
+ outputFormat: "json";
37373
+ status: 200;
37374
+ };
37375
+ };
37376
+ } & {
37377
+ "/admin/users/:id/reset-password": {
37378
+ $post: {
37379
+ input: {
37380
+ param: {
37381
+ id: string;
37382
+ };
37383
+ };
37384
+ output: {
37385
+ error: {
37386
+ code: "INTERNAL_ERROR";
37387
+ message: "Internal server error";
37388
+ };
37389
+ };
37390
+ outputFormat: "json";
37391
+ status: 500;
37392
+ } | {
37393
+ input: {
37394
+ param: {
37395
+ id: string;
37396
+ };
37397
+ };
37398
+ output: {
37399
+ error: {
37400
+ code: "AUTHENTICATION_REQUIRED";
37401
+ message: "Authentication is required";
37402
+ redirectTo?: string | undefined;
37403
+ };
37404
+ };
37405
+ outputFormat: "json";
37406
+ status: 401;
37407
+ } | {
37408
+ input: {
37409
+ param: {
37410
+ id: string;
37411
+ };
37412
+ };
37413
+ output: {
37414
+ error: {
37415
+ code: "NOT_FOUND";
37416
+ message: string;
37417
+ };
37418
+ };
37419
+ outputFormat: "json";
37420
+ status: 404;
37421
+ } | {
37422
+ input: {
37423
+ param: {
37424
+ id: string;
37425
+ };
37426
+ };
37427
+ output: {
37428
+ error: {
37429
+ code: "VALIDATION_ERROR";
37430
+ message: string;
37431
+ details?: {
37432
+ fieldErrors: {
37433
+ [x: string]: string[];
37434
+ };
37435
+ formErrors: string[];
37436
+ } | undefined;
37437
+ };
37438
+ };
37439
+ outputFormat: "json";
37440
+ status: 400;
37441
+ } | {
37442
+ input: {
37443
+ param: {
37444
+ id: string;
37445
+ };
37446
+ };
37447
+ output: {
37448
+ error: {
37449
+ code: "ADMIN_REQUIRED";
37450
+ message: "Admin permission required";
37451
+ redirectTo?: string | undefined;
37452
+ };
37453
+ };
37454
+ outputFormat: "json";
37455
+ status: 403;
37456
+ } | {
37457
+ input: {
37458
+ param: {
37459
+ id: string;
37460
+ };
37461
+ };
37462
+ output: {
37463
+ user: {
37464
+ _id: string;
37465
+ username: string;
37466
+ name: string;
37467
+ email: string;
37468
+ createdAt: string;
37469
+ id?: string | undefined;
37470
+ image?: string | null | undefined;
37471
+ introduction?: string | undefined;
37472
+ admin?: boolean | undefined;
37473
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
36069
37474
  };
37475
+ newPassword: string;
36070
37476
  };
36071
37477
  outputFormat: "json";
36072
37478
  status: 200;
36073
37479
  };
36074
37480
  };
36075
37481
  } & {
36076
- "/admin/users/:id/status/suspended": {
36077
- $put: {
37482
+ "/admin/users/:id/resend-invite": {
37483
+ $post: {
36078
37484
  input: {
36079
37485
  param: {
36080
37486
  id: string;
@@ -36169,29 +37575,11 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
36169
37575
  image?: string | null | undefined;
36170
37576
  introduction?: string | undefined;
36171
37577
  admin?: boolean | undefined;
36172
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
37578
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
36173
37579
  };
36174
37580
  };
36175
37581
  outputFormat: "json";
36176
37582
  status: 200;
36177
- };
36178
- };
36179
- } & {
36180
- "/admin/users/:id/reset-password": {
36181
- $post: {
36182
- input: {
36183
- param: {
36184
- id: string;
36185
- };
36186
- };
36187
- output: {
36188
- error: {
36189
- code: "INTERNAL_ERROR";
36190
- message: "Internal server error";
36191
- };
36192
- };
36193
- outputFormat: "json";
36194
- status: 500;
36195
37583
  } | {
36196
37584
  input: {
36197
37585
  param: {
@@ -36200,85 +37588,12 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
36200
37588
  };
36201
37589
  output: {
36202
37590
  error: {
36203
- code: "AUTHENTICATION_REQUIRED";
36204
- message: "Authentication is required";
36205
- redirectTo?: string | undefined;
36206
- };
36207
- };
36208
- outputFormat: "json";
36209
- status: 401;
36210
- } | {
36211
- input: {
36212
- param: {
36213
- id: string;
36214
- };
36215
- };
36216
- output: {
36217
- error: {
36218
- code: "NOT_FOUND";
36219
- message: string;
36220
- };
36221
- };
36222
- outputFormat: "json";
36223
- status: 404;
36224
- } | {
36225
- input: {
36226
- param: {
36227
- id: string;
36228
- };
36229
- };
36230
- output: {
36231
- error: {
36232
- code: "VALIDATION_ERROR";
37591
+ code: "CONFLICT";
36233
37592
  message: string;
36234
- details?: {
36235
- fieldErrors: {
36236
- [x: string]: string[];
36237
- };
36238
- formErrors: string[];
36239
- } | undefined;
36240
- };
36241
- };
36242
- outputFormat: "json";
36243
- status: 400;
36244
- } | {
36245
- input: {
36246
- param: {
36247
- id: string;
36248
- };
36249
- };
36250
- output: {
36251
- error: {
36252
- code: "ADMIN_REQUIRED";
36253
- message: "Admin permission required";
36254
- redirectTo?: string | undefined;
36255
- };
36256
- };
36257
- outputFormat: "json";
36258
- status: 403;
36259
- } | {
36260
- input: {
36261
- param: {
36262
- id: string;
36263
- };
36264
- };
36265
- output: {
36266
- user: {
36267
- _id: string;
36268
- username: string;
36269
- name: string;
36270
- email: string;
36271
- createdAt: string;
36272
- id?: string | undefined;
36273
- image?: string | null | undefined;
36274
- introduction?: string | undefined;
36275
- admin?: boolean | undefined;
36276
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
36277
37593
  };
36278
- newPassword: string;
36279
37594
  };
36280
37595
  outputFormat: "json";
36281
- status: 200;
37596
+ status: 409;
36282
37597
  };
36283
37598
  };
36284
37599
  } & {
@@ -36402,7 +37717,7 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
36402
37717
  image?: string | null | undefined;
36403
37718
  introduction?: string | undefined;
36404
37719
  admin?: boolean | undefined;
36405
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
37720
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
36406
37721
  };
36407
37722
  };
36408
37723
  outputFormat: "json";
@@ -36577,7 +37892,7 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
36577
37892
  hasConfig: boolean;
36578
37893
  registers: string[];
36579
37894
  adminPlacement: {
36580
- section: "search" | "notification" | "settings" | "shared" | "storage" | "mail" | "auth" | "renderer";
37895
+ section: "search" | "notification" | "settings" | "shared" | "storage" | "mail" | "auth" | "renderer" | "platform";
36581
37896
  label: string;
36582
37897
  icon?: string | undefined;
36583
37898
  };
@@ -37335,6 +38650,17 @@ declare const createClient: (baseUrl: string, options?: ClientOptions) => CrowiA
37335
38650
  * endpoint. The CLI parses them leniently: an older server that omits
37336
38651
  * them degrades to a static baseline with version-skew warnings
37337
38652
  * suppressed.
38653
+ *
38654
+ * `canSelfRegister` tells the unauthenticated login / register pages
38655
+ * whether self-service registration is open, so the web can hide the
38656
+ * `/register` form (and the login → register link) up front instead of
38657
+ * letting users fill the form and only learn it is closed on a 403. It is
38658
+ * `true` for the `Open` / `Restricted` registration modes and `false` for
38659
+ * `Closed` (invite-only). Only the boolean is exposed — the internal mode
38660
+ * string (whose stored value is the historical `Resricted` typo) is never
38661
+ * surfaced. The API still enforces the real guard (403
38662
+ * `REGISTRATION_CLOSED` on `POST /auth/register`); this flag is a UX hint
38663
+ * the front-end may fail-open on.
37338
38664
  */
37339
38665
  declare const AppInfoResponseSchema: z.ZodObject<{
37340
38666
  title: z.ZodNullable<z.ZodString>;
@@ -37342,6 +38668,7 @@ declare const AppInfoResponseSchema: z.ZodObject<{
37342
38668
  version: z.ZodString;
37343
38669
  apiVersion: z.ZodString;
37344
38670
  capabilities: z.ZodArray<z.ZodString>;
38671
+ canSelfRegister: z.ZodBoolean;
37345
38672
  }, z.core.$strip>;
37346
38673
  type AppInfoResponse = z.infer<typeof AppInfoResponseSchema>;
37347
38674
 
@@ -37598,6 +38925,7 @@ declare const ApiErrorSchema: z.ZodObject<{
37598
38925
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
37599
38926
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
37600
38927
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
38928
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
37601
38929
  INVALID_GRANT: "INVALID_GRANT";
37602
38930
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
37603
38931
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -38812,6 +40140,7 @@ declare const ListPagesRequestSchema: z.ZodObject<{
38812
40140
  asc: "asc";
38813
40141
  desc: "desc";
38814
40142
  }>>>;
40143
+ revision_id: z.ZodOptional<z.ZodString>;
38815
40144
  }, z.core.$strip>;
38816
40145
  type ListPagesRequest = z.infer<typeof ListPagesRequestSchema>;
38817
40146
  type ListPagesSort = ListPagesRequest['sort'];
@@ -39037,6 +40366,111 @@ declare const ListPagesResponseSchema: z.ZodObject<{
39037
40366
  likerCount: z.ZodOptional<z.ZodNumber>;
39038
40367
  seenUsersCount: z.ZodOptional<z.ZodNumber>;
39039
40368
  }, z.core.$strip>>>;
40369
+ contentPage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40370
+ _id: z.ZodString;
40371
+ path: z.ZodString;
40372
+ revision: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40373
+ _id: z.ZodString;
40374
+ path: z.ZodString;
40375
+ body: z.ZodString;
40376
+ format: z.ZodDefault<z.ZodString>;
40377
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40378
+ _id: z.ZodString;
40379
+ id: z.ZodOptional<z.ZodString>;
40380
+ username: z.ZodString;
40381
+ name: z.ZodString;
40382
+ email: z.ZodString;
40383
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40384
+ createdAt: z.ZodString;
40385
+ }, z.core.$strip>>>;
40386
+ createdAt: z.ZodString;
40387
+ meta: z.ZodOptional<z.ZodObject<{
40388
+ toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
40389
+ level: z.ZodNumber;
40390
+ text: z.ZodString;
40391
+ anchorId: z.ZodString;
40392
+ }, z.core.$strip>>>;
40393
+ wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
40394
+ raw: z.ZodString;
40395
+ target: z.ZodString;
40396
+ displayText: z.ZodOptional<z.ZodString>;
40397
+ }, z.core.$strip>>>;
40398
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
40399
+ username: z.ZodString;
40400
+ }, z.core.$strip>>>;
40401
+ codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
40402
+ }, z.core.$strip>>;
40403
+ renderedAst: z.ZodOptional<z.ZodUnknown>;
40404
+ rendererVersion: z.ZodOptional<z.ZodString>;
40405
+ parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40406
+ type: z.ZodOptional<z.ZodEnum<{
40407
+ snapshot: "snapshot";
40408
+ incremental: "incremental";
40409
+ }>>;
40410
+ savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40411
+ _id: z.ZodString;
40412
+ id: z.ZodOptional<z.ZodString>;
40413
+ username: z.ZodString;
40414
+ name: z.ZodString;
40415
+ email: z.ZodString;
40416
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40417
+ createdAt: z.ZodString;
40418
+ }, z.core.$strip>]>>>;
40419
+ contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40420
+ _id: z.ZodString;
40421
+ id: z.ZodOptional<z.ZodString>;
40422
+ username: z.ZodString;
40423
+ name: z.ZodString;
40424
+ email: z.ZodString;
40425
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40426
+ createdAt: z.ZodString;
40427
+ }, z.core.$strip>]>>>;
40428
+ message: z.ZodOptional<z.ZodString>;
40429
+ editVia: z.ZodOptional<z.ZodEnum<{
40430
+ web: "web";
40431
+ oauth: "oauth";
40432
+ pat: "pat";
40433
+ }>>;
40434
+ }, z.core.$strip>]>>;
40435
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40436
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
40437
+ deprecated: "deprecated";
40438
+ wip: "wip";
40439
+ published: "published";
40440
+ deleted: "deleted";
40441
+ draft: "draft";
40442
+ }>>>;
40443
+ grant: z.ZodOptional<z.ZodNumber>;
40444
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
40445
+ creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40446
+ _id: z.ZodString;
40447
+ id: z.ZodOptional<z.ZodString>;
40448
+ username: z.ZodString;
40449
+ name: z.ZodString;
40450
+ email: z.ZodString;
40451
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40452
+ createdAt: z.ZodString;
40453
+ }, z.core.$strip>]>>>;
40454
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40455
+ _id: z.ZodString;
40456
+ id: z.ZodOptional<z.ZodString>;
40457
+ username: z.ZodString;
40458
+ name: z.ZodString;
40459
+ email: z.ZodString;
40460
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40461
+ createdAt: z.ZodString;
40462
+ }, z.core.$strip>]>>>;
40463
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
40464
+ commentCount: z.ZodDefault<z.ZodNumber>;
40465
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
40466
+ createdAt: z.ZodString;
40467
+ updatedAt: z.ZodOptional<z.ZodString>;
40468
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40469
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40470
+ latestRevision: z.ZodOptional<z.ZodString>;
40471
+ likerCount: z.ZodOptional<z.ZodNumber>;
40472
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
40473
+ }, z.core.$strip>>>;
39040
40474
  }, z.core.$strip>;
39041
40475
  type ListPagesResponse = z.infer<typeof ListPagesResponseSchema>;
39042
40476
  declare const PageChildSegmentSchema: z.ZodObject<{
@@ -39074,6 +40508,11 @@ declare const UpdatePageRequestSchema: z.ZodObject<{
39074
40508
  grant: z.ZodOptional<z.ZodNumber>;
39075
40509
  }, z.core.$strip>;
39076
40510
  type UpdatePageRequest = z.infer<typeof UpdatePageRequestSchema>;
40511
+ declare const RevertToRevisionRequestSchema: z.ZodObject<{
40512
+ page_id: z.ZodString;
40513
+ revision_id: z.ZodString;
40514
+ }, z.core.$strip>;
40515
+ type RevertToRevisionRequest = z.infer<typeof RevertToRevisionRequestSchema>;
39077
40516
  declare const SetPageGrantRequestSchema: z.ZodObject<{
39078
40517
  page_id: z.ZodString;
39079
40518
  grant: z.ZodNumber;
@@ -41243,7 +42682,7 @@ type AutocompleteRateLimitError = z.infer<typeof AutocompleteRateLimitErrorSchem
41243
42682
  *
41244
42683
  * Keeping the types here (and not in `page.ts`) keeps the
41245
42684
  * collaborative additions discoverable as one bundle and avoids
41246
- * polluting the legacy page contract with v2.1-only fields.
42685
+ * polluting the legacy page contract with v2.0-only fields.
41247
42686
  */
41248
42687
  /**
41249
42688
  * Public user shape surfaced for collaboration UI (Save author /
@@ -41301,6 +42740,12 @@ type RevisionType = z.infer<typeof RevisionTypeSchema>;
41301
42740
  * readonly clients still subscribe to live
41302
42741
  * updates but their writes are rejected by
41303
42742
  * Hocuspocus.
42743
+ *
42744
+ * Round 2 (Decision 1): the save optimistic lock moved SERVER-SIDE — it is
42745
+ * now anchored to the revision the server's Hocuspocus document was
42746
+ * materialised from, not to a client-pinned base. The wsToken response no
42747
+ * longer carries `currentRevision` (the client never pins / echoes a base
42748
+ * any more).
41304
42749
  */
41305
42750
  declare const WsTokenResponseSchema: z.ZodObject<{
41306
42751
  wsToken: z.ZodString;
@@ -41337,8 +42782,15 @@ type WsTokenPayload = z.infer<typeof WsTokenPayloadSchema>;
41337
42782
  * dispatcher; Phase 8 wires it to the Save button.
41338
42783
  *
41339
42784
  * `message` is the optional checkpoint message (currently unused in
41340
- * the v2.1 UI per spec open question 1, but reserved on the wire so
42785
+ * the v2.0 UI per spec open question 1, but reserved on the wire so
41341
42786
  * we can light it up without a wire-format break).
42787
+ *
42788
+ * Round 2 (Decision 1): the save optimistic lock is anchored SERVER-SIDE
42789
+ * to the revision the server's Hocuspocus document was materialised from,
42790
+ * so the client no longer sends a `baseRevisionId` — the field was
42791
+ * removed. A divergence (an out-of-band save moved `currentRevision`) is
42792
+ * caught by the server's compare-and-set pointer write and surfaced as
42793
+ * `crowi:save-error` `code: 'CONFLICT'`.
41342
42794
  */
41343
42795
  declare const CollabSaveMessageSchema: z.ZodObject<{
41344
42796
  kind: z.ZodLiteral<"crowi:save">;
@@ -41361,7 +42813,12 @@ type CollabSaveOk = z.infer<typeof CollabSaveOkSchema>;
41361
42813
  * fails. The Phase 8 Save UI surfaces `message` in a toast. `code`
41362
42814
  * lets the client branch on retry vs surface-and-stop (e.g.
41363
42815
  * `'RENDERER_FAILED'` is a hard error from the RFC-0002 renderer; the
41364
- * client should not retry).
42816
+ * client should not retry). `code: 'CONFLICT'` is the
42817
+ * editor-preview-reliability server-doc-lock rejection (round 2, Decision
42818
+ * 1) — the page's live `currentRevision` diverged from the revision the
42819
+ * server doc was materialised from (an out-of-band save), so the client
42820
+ * must prompt a reload rather than retry, mirroring the HTTP
42821
+ * `PageRevisionConflictError`.
41365
42822
  */
41366
42823
  declare const CollabSaveErrorSchema: z.ZodObject<{
41367
42824
  kind: z.ZodLiteral<"crowi:save-error">;
@@ -42289,4 +43746,4 @@ declare const SearchPagesResponseSchema: z.ZodObject<{
42289
43746
  }, z.core.$strip>;
42290
43747
  type SearchPagesResponse = z.infer<typeof SearchPagesResponseSchema>;
42291
43748
 
42292
- export { ALL_SCOPES, API_SURFACE_VERSION, 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 AppType, type ApplicationNotInstalledError, ApplicationNotInstalledErrorSchema, 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, type ClearRenderCacheResponse, ClearRenderCacheResponseSchema, type ClientOptions, type CollabForceReloadMessage, CollabForceReloadMessageSchema, type CollabSaveError, CollabSaveErrorSchema, type CollabSaveMessage, CollabSaveMessageSchema, type CollabSaveOk, CollabSaveOkSchema, type Comment, type CommentInvalidRequestError, CommentInvalidRequestErrorSchema, type CommentNotFoundError, CommentNotFoundErrorSchema, CommentSchema, 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, type CreatePageRequest, CreatePageRequestSchema, type CrowiApiClient, type CryptoStatusResponse, CryptoStatusResponseSchema, DEVICE_CODE_GRANT_TYPE, DISCOVERY_SCOPES_SUPPORTED, DND_EXTRA_UPLOAD_MIME, 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 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, IMAGE_UPLOAD_MIME, 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, type Language, LanguageSchema, type LateContractApp, type Liker, LikerSchema, type LikersResponse, LikersResponseSchema, 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, 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 PresenceClientMessage, PresenceClientMessageSchema, type PresenceHeartbeatMessage, PresenceHeartbeatMessageSchema, type PresenceServerMessage, PresenceServerMessageSchema, type PresenceTokenPayload, PresenceTokenPayloadSchema, type PresenceTokenResponse, PresenceTokenResponseSchema, type PresenceViewer, PresenceViewerSchema, type PresenceViewersMessage, PresenceViewersMessageSchema, type PreviewPageRequest, PreviewPageRequestSchema, type PreviewPageResponse, PreviewPageResponseSchema, type ProfileErrorResponse, ProfileErrorResponseSchema, 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, type ResetPasswordRequest, ResetPasswordRequestSchema, type ResetPasswordResponse, ResetPasswordResponseSchema, type Revision, type RevisionInvalidRequestError, RevisionInvalidRequestErrorSchema, type RevisionMeta, RevisionMetaSchema, RevisionMetaSchemaShape, type RevisionMetaShape, RevisionSchema, type RevisionType, RevisionTypeSchema, type RevokeRequest, RevokeRequestSchema, type RevokeResponse, RevokeResponseSchema, SCOPES, STATIC_CAPABILITIES, 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, type SensitiveConfigEntry, SensitiveConfigEntrySchema, type ServiceUnavailableError, ServiceUnavailableErrorSchema, type SetPageGrantRequest, SetPageGrantRequestSchema, type SetWatchStatusRequest, SetWatchStatusRequestSchema, 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, 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 ValidationError, ValidationErrorSchema, type WatchStatusResponse, WatchStatusResponseSchema, type WikiLinkResponse, WikiLinkSchema, 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, cancelDraftRoute, clearRenderCacheAllRoute, clearRenderCachePluginRoute, commentRoutes, confirmEmailChangeRoute, createAccessTokenRoute, createAdminRoute, createClient, createDraftRoute, createPageRoute, deleteAccessTokenRoute, deleteCommentRoute, deletePageRoute, deletePictureRoute, deleteUserRoute, deviceAuthorizeRoute, deviceInfoRoute, deviceVerifyRoute, discoveryRoute, draftRoutes, editUserRoute, emailChangeRoutes, forgotPasswordRoute, getAppInfoRoute, getAppSettingsRoute, getAttachmentMetaRoute, getAttachmentUsageRoute, getAuthSettingsRoute, getBacklinksRoute, getBookmarkRoute, getCryptoStatusRoute, getInstallerStatusRoute, getLikersRoute, getMailSettingsRoute, getNotificationsTokenRoute, getPageRoute, getPluginConfigRoute, getPresenceTokenRoute, getProfileRoute, getRevisionRoute, getRevisionsRoute, getSearchStatusRoute, getSecuritySettingsRoute, getSeenUsersRoute, getStorageStatusRoute, getUnreadCountRoute, getUserBookmarksRoute, getUserPageRoute, getUserPagesRoute, getWatchStatusRoute, getYjsTokenRoute, installerRoutes, inviteAcceptRoutes, invitePreviewRoute, inviteUsersRoute, isIssuableScope, isScope, likePageRoute, listAccessTokensRoute, listAttachmentsRoute, listCommentsRoute, listDraftsRoute, listMembersRoute, listMyBookmarksRoute, listNotificationsRoute, listPageChildrenRoute, listPagesRoute, listPluginsRoute, listRevisionsRoute, listUsersRoute, makeAdminRoute, markAllAsReadRoute, meRoutes, notificationRoutes, oauthRoutes, openNotificationRoute, pageCollabRoutes, pagePreviewRoutes, pageRoutes, parseScopeClaim, passwordResetRoutes, pendingUsersCountRoute, presenceRoutes, previewPageRoute, recentlyViewedPagesRoute, reencryptAllRoute, removeAttachmentRoute, removeBookmarkRoute, removeFromAdminRoute, renamePageRoute, renameSubtreeRoute, resetPasswordRoute, revertDeletedPageRoute, revisionRoutes, revokeRoute, scopeSatisfies, searchPagesRoute, searchRoutes, searchUsersByEmailRoute, seenPageRoute, selfResetPasswordRoute, sendTestMailRoute, setPageGrantRoute, setWatchStatusRoute, suspendUserRoute, tokenAuthRoutes, tokenLoginRoute, tokenLogoutRoute, tokenMeRoute, tokenRefreshRoute, tokenRegisterRoute, tokenRoute, unlikePageRoute, updateAppSettingsRoute, updateAuthSettingsRoute, updateMailSettingsRoute, updatePageRoute, updatePasswordRoute, updatePluginConfigRoute, updateProfileRoute, updateSecuritySettingsRoute, updateThemeRoute, updateUserEmailRoute, uploadAttachmentRoute, uploadPictureRoute, userRoutes, validateActivationTokenRoute, validateEmailChangeTokenRoute, validateResetTokenRoute };
43749
+ export { ALL_SCOPES, API_SURFACE_VERSION, 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 AppType, type ApplicationNotInstalledError, ApplicationNotInstalledErrorSchema, 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, type ClearRenderCacheResponse, ClearRenderCacheResponseSchema, type ClientOptions, type CollabForceReloadMessage, CollabForceReloadMessageSchema, type CollabSaveError, CollabSaveErrorSchema, type CollabSaveMessage, CollabSaveMessageSchema, type CollabSaveOk, CollabSaveOkSchema, type Comment, type CommentInvalidRequestError, CommentInvalidRequestErrorSchema, type CommentNotFoundError, CommentNotFoundErrorSchema, CommentSchema, 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, type CreatePageRequest, CreatePageRequestSchema, type CrowiApiClient, type CryptoStatusResponse, CryptoStatusResponseSchema, DEVICE_CODE_GRANT_TYPE, DISCOVERY_SCOPES_SUPPORTED, DND_EXTRA_UPLOAD_MIME, 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 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, IMAGE_UPLOAD_MIME, 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, 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, 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 PresenceClientMessage, PresenceClientMessageSchema, type PresenceHeartbeatMessage, PresenceHeartbeatMessageSchema, type PresenceServerMessage, PresenceServerMessageSchema, type PresenceTokenPayload, PresenceTokenPayloadSchema, type PresenceTokenResponse, PresenceTokenResponseSchema, type PresenceViewer, PresenceViewerSchema, type PresenceViewersMessage, PresenceViewersMessageSchema, type PreviewPageRequest, PreviewPageRequestSchema, type PreviewPageResponse, PreviewPageResponseSchema, type ProfileErrorResponse, ProfileErrorResponseSchema, 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, 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, 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, type SensitiveConfigEntry, SensitiveConfigEntrySchema, type ServiceUnavailableError, ServiceUnavailableErrorSchema, type SetPageGrantRequest, SetPageGrantRequestSchema, type SetWatchStatusRequest, SetWatchStatusRequestSchema, 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, 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 ValidationError, ValidationErrorSchema, type WatchStatusResponse, WatchStatusResponseSchema, type WikiLinkResponse, WikiLinkSchema, 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, cancelDraftRoute, clearRenderCacheAllRoute, clearRenderCachePluginRoute, commentRoutes, confirmEmailChangeRoute, createAccessTokenRoute, createAdminRoute, createClient, createDraftRoute, createPageRoute, deleteAccessTokenRoute, deleteCommentRoute, deletePageRoute, deletePictureRoute, deleteUserRoute, deviceAuthorizeRoute, deviceInfoRoute, deviceVerifyRoute, discoveryRoute, draftRoutes, editUserRoute, emailChangeRoutes, forgotPasswordRoute, getAppInfoRoute, getAppSettingsRoute, getAttachmentMetaRoute, getAttachmentUsageRoute, getAuthSettingsRoute, getBacklinksRoute, getBookmarkRoute, getCryptoStatusRoute, getInstallerStatusRoute, getLikersRoute, getMailSettingsRoute, getNotificationsTokenRoute, getPageRoute, getPluginConfigRoute, getPresenceTokenRoute, getProfileRoute, getRevisionRoute, getRevisionsRoute, getSearchStatusRoute, getSecuritySettingsRoute, getSeenUsersRoute, getStorageStatusRoute, getUnreadCountRoute, getUserBookmarksRoute, getUserPageRoute, getUserPagesRoute, getWatchStatusRoute, getYjsTokenRoute, installerRoutes, inviteAcceptRoutes, invitePreviewRoute, inviteUsersRoute, isIssuableScope, isScope, likePageRoute, listAccessTokensRoute, listAttachmentsRoute, listCommentsRoute, listDraftsRoute, listMembersRoute, listMyBookmarksRoute, listNotificationsRoute, listPageChildrenRoute, listPagesRoute, listPluginsRoute, listRevisionsRoute, listUsersRoute, 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, stripKnownHtmlTags, suspendUserRoute, tokenAuthRoutes, tokenLoginRoute, tokenLogoutRoute, tokenMeRoute, tokenRefreshRoute, tokenRegisterRoute, tokenRoute, unlikePageRoute, updateAppSettingsRoute, updateAuthSettingsRoute, updateMailSettingsRoute, updatePageRoute, updatePasswordRoute, updatePluginConfigRoute, updateProfileRoute, updateSecuritySettingsRoute, updateThemeRoute, updateUserEmailRoute, uploadAttachmentRoute, uploadPictureRoute, userRoutes, validateActivationTokenRoute, validateEmailChangeTokenRoute, validateResetTokenRoute };