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

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.mts 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";
@@ -25561,6 +26242,135 @@ declare const resetPasswordRoute: {
25561
26242
  } & {
25562
26243
  getRoutingPath(): "/admin/users/:id/reset-password";
25563
26244
  };
26245
+ declare const resendInviteRoute: {
26246
+ method: "post";
26247
+ path: "/admin/users/{id}/resend-invite";
26248
+ tags: string[];
26249
+ security: {
26250
+ bearerAuth: never[];
26251
+ }[];
26252
+ summary: string;
26253
+ request: {
26254
+ params: z.ZodObject<{
26255
+ id: z.ZodString;
26256
+ }, z.core.$strip>;
26257
+ };
26258
+ responses: {
26259
+ 200: {
26260
+ description: string;
26261
+ content: {
26262
+ 'application/json': {
26263
+ schema: z.ZodObject<{
26264
+ user: z.ZodObject<{
26265
+ _id: z.ZodString;
26266
+ id: z.ZodOptional<z.ZodString>;
26267
+ username: z.ZodString;
26268
+ name: z.ZodString;
26269
+ email: z.ZodString;
26270
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26271
+ introduction: z.ZodOptional<z.ZodString>;
26272
+ createdAt: z.ZodString;
26273
+ admin: z.ZodOptional<z.ZodBoolean>;
26274
+ status: z.ZodOptional<z.ZodEnum<{
26275
+ readonly REGISTERED: 1;
26276
+ readonly ACTIVE: 2;
26277
+ readonly SUSPENDED: 3;
26278
+ readonly DELETED: 4;
26279
+ readonly INVITED: 5;
26280
+ }>>;
26281
+ }, z.core.$strip>;
26282
+ }, z.core.$strip>;
26283
+ };
26284
+ };
26285
+ };
26286
+ 400: {
26287
+ description: string;
26288
+ content: {
26289
+ 'application/json': {
26290
+ schema: z.ZodObject<{
26291
+ error: z.ZodObject<{
26292
+ code: z.ZodLiteral<"VALIDATION_ERROR">;
26293
+ message: z.ZodString;
26294
+ details: z.ZodOptional<z.ZodObject<{
26295
+ fieldErrors: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
26296
+ formErrors: z.ZodArray<z.ZodString>;
26297
+ }, z.core.$strip>>;
26298
+ }, z.core.$strip>;
26299
+ }, z.core.$strip>;
26300
+ };
26301
+ };
26302
+ };
26303
+ 401: {
26304
+ description: string;
26305
+ content: {
26306
+ 'application/json': {
26307
+ schema: z.ZodObject<{
26308
+ error: z.ZodObject<{
26309
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
26310
+ message: z.ZodLiteral<"Authentication is required">;
26311
+ redirectTo: z.ZodOptional<z.ZodString>;
26312
+ }, z.core.$strip>;
26313
+ }, z.core.$strip>;
26314
+ };
26315
+ };
26316
+ };
26317
+ 403: {
26318
+ description: string;
26319
+ content: {
26320
+ 'application/json': {
26321
+ schema: z.ZodObject<{
26322
+ error: z.ZodObject<{
26323
+ code: z.ZodLiteral<"ADMIN_REQUIRED">;
26324
+ message: z.ZodLiteral<"Admin permission required">;
26325
+ redirectTo: z.ZodOptional<z.ZodString>;
26326
+ }, z.core.$strip>;
26327
+ }, z.core.$strip>;
26328
+ };
26329
+ };
26330
+ };
26331
+ 404: {
26332
+ description: string;
26333
+ content: {
26334
+ 'application/json': {
26335
+ schema: z.ZodObject<{
26336
+ error: z.ZodObject<{
26337
+ code: z.ZodLiteral<"NOT_FOUND">;
26338
+ message: z.ZodString;
26339
+ }, z.core.$strip>;
26340
+ }, z.core.$strip>;
26341
+ };
26342
+ };
26343
+ };
26344
+ 409: {
26345
+ description: string;
26346
+ content: {
26347
+ 'application/json': {
26348
+ schema: z.ZodObject<{
26349
+ error: z.ZodObject<{
26350
+ code: z.ZodLiteral<"CONFLICT">;
26351
+ message: z.ZodString;
26352
+ }, z.core.$strip>;
26353
+ }, z.core.$strip>;
26354
+ };
26355
+ };
26356
+ };
26357
+ 500: {
26358
+ description: string;
26359
+ content: {
26360
+ 'application/json': {
26361
+ schema: z.ZodObject<{
26362
+ error: z.ZodObject<{
26363
+ code: z.ZodLiteral<"INTERNAL_ERROR">;
26364
+ message: z.ZodLiteral<"Internal server error">;
26365
+ }, z.core.$strip>;
26366
+ }, z.core.$strip>;
26367
+ };
26368
+ };
26369
+ };
26370
+ };
26371
+ } & {
26372
+ getRoutingPath(): "/admin/users/:id/resend-invite";
26373
+ };
25564
26374
  declare const updateUserEmailRoute: {
25565
26375
  method: "put";
25566
26376
  path: "/admin/users/{id}/email";
@@ -26882,7 +27692,136 @@ declare const adminUsersRoutes: {
26882
27692
  };
26883
27693
  };
26884
27694
  } & {
26885
- getRoutingPath(): "/admin/users/:id/reset-password";
27695
+ getRoutingPath(): "/admin/users/:id/reset-password";
27696
+ };
27697
+ resendInviteRoute: {
27698
+ method: "post";
27699
+ path: "/admin/users/{id}/resend-invite";
27700
+ tags: string[];
27701
+ security: {
27702
+ bearerAuth: never[];
27703
+ }[];
27704
+ summary: string;
27705
+ request: {
27706
+ params: z.ZodObject<{
27707
+ id: z.ZodString;
27708
+ }, z.core.$strip>;
27709
+ };
27710
+ responses: {
27711
+ 200: {
27712
+ description: string;
27713
+ content: {
27714
+ 'application/json': {
27715
+ schema: z.ZodObject<{
27716
+ user: z.ZodObject<{
27717
+ _id: z.ZodString;
27718
+ id: z.ZodOptional<z.ZodString>;
27719
+ username: z.ZodString;
27720
+ name: z.ZodString;
27721
+ email: z.ZodString;
27722
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27723
+ introduction: z.ZodOptional<z.ZodString>;
27724
+ createdAt: z.ZodString;
27725
+ admin: z.ZodOptional<z.ZodBoolean>;
27726
+ status: z.ZodOptional<z.ZodEnum<{
27727
+ readonly REGISTERED: 1;
27728
+ readonly ACTIVE: 2;
27729
+ readonly SUSPENDED: 3;
27730
+ readonly DELETED: 4;
27731
+ readonly INVITED: 5;
27732
+ }>>;
27733
+ }, z.core.$strip>;
27734
+ }, z.core.$strip>;
27735
+ };
27736
+ };
27737
+ };
27738
+ 400: {
27739
+ description: string;
27740
+ content: {
27741
+ 'application/json': {
27742
+ schema: z.ZodObject<{
27743
+ error: z.ZodObject<{
27744
+ code: z.ZodLiteral<"VALIDATION_ERROR">;
27745
+ message: z.ZodString;
27746
+ details: z.ZodOptional<z.ZodObject<{
27747
+ fieldErrors: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
27748
+ formErrors: z.ZodArray<z.ZodString>;
27749
+ }, z.core.$strip>>;
27750
+ }, z.core.$strip>;
27751
+ }, z.core.$strip>;
27752
+ };
27753
+ };
27754
+ };
27755
+ 401: {
27756
+ description: string;
27757
+ content: {
27758
+ 'application/json': {
27759
+ schema: z.ZodObject<{
27760
+ error: z.ZodObject<{
27761
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
27762
+ message: z.ZodLiteral<"Authentication is required">;
27763
+ redirectTo: z.ZodOptional<z.ZodString>;
27764
+ }, z.core.$strip>;
27765
+ }, z.core.$strip>;
27766
+ };
27767
+ };
27768
+ };
27769
+ 403: {
27770
+ description: string;
27771
+ content: {
27772
+ 'application/json': {
27773
+ schema: z.ZodObject<{
27774
+ error: z.ZodObject<{
27775
+ code: z.ZodLiteral<"ADMIN_REQUIRED">;
27776
+ message: z.ZodLiteral<"Admin permission required">;
27777
+ redirectTo: z.ZodOptional<z.ZodString>;
27778
+ }, z.core.$strip>;
27779
+ }, z.core.$strip>;
27780
+ };
27781
+ };
27782
+ };
27783
+ 404: {
27784
+ description: string;
27785
+ content: {
27786
+ 'application/json': {
27787
+ schema: z.ZodObject<{
27788
+ error: z.ZodObject<{
27789
+ code: z.ZodLiteral<"NOT_FOUND">;
27790
+ message: z.ZodString;
27791
+ }, z.core.$strip>;
27792
+ }, z.core.$strip>;
27793
+ };
27794
+ };
27795
+ };
27796
+ 409: {
27797
+ description: string;
27798
+ content: {
27799
+ 'application/json': {
27800
+ schema: z.ZodObject<{
27801
+ error: z.ZodObject<{
27802
+ code: z.ZodLiteral<"CONFLICT">;
27803
+ message: z.ZodString;
27804
+ }, z.core.$strip>;
27805
+ }, z.core.$strip>;
27806
+ };
27807
+ };
27808
+ };
27809
+ 500: {
27810
+ description: string;
27811
+ content: {
27812
+ 'application/json': {
27813
+ schema: z.ZodObject<{
27814
+ error: z.ZodObject<{
27815
+ code: z.ZodLiteral<"INTERNAL_ERROR">;
27816
+ message: z.ZodLiteral<"Internal server error">;
27817
+ }, z.core.$strip>;
27818
+ }, z.core.$strip>;
27819
+ };
27820
+ };
27821
+ };
27822
+ };
27823
+ } & {
27824
+ getRoutingPath(): "/admin/users/:id/resend-invite";
26886
27825
  };
26887
27826
  updateUserEmailRoute: {
26888
27827
  method: "put";
@@ -27210,6 +28149,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27210
28149
  version: string;
27211
28150
  apiVersion: string;
27212
28151
  capabilities: string[];
28152
+ canSelfRegister: boolean;
27213
28153
  };
27214
28154
  outputFormat: "json";
27215
28155
  status: 200;
@@ -27353,7 +28293,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27353
28293
  };
27354
28294
  output: {
27355
28295
  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";
28296
+ 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
28297
  message: string;
27358
28298
  details?: any;
27359
28299
  };
@@ -27369,7 +28309,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27369
28309
  };
27370
28310
  output: {
27371
28311
  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";
28312
+ 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
28313
  message: string;
27374
28314
  details?: any;
27375
28315
  };
@@ -27424,7 +28364,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27424
28364
  };
27425
28365
  output: {
27426
28366
  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";
28367
+ 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
28368
  message: string;
27429
28369
  details?: any;
27430
28370
  };
@@ -27474,7 +28414,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27474
28414
  };
27475
28415
  output: {
27476
28416
  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";
28417
+ 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
28418
  message: string;
27479
28419
  details?: any;
27480
28420
  };
@@ -27492,7 +28432,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27492
28432
  };
27493
28433
  output: {
27494
28434
  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";
28435
+ 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
28436
  message: string;
27497
28437
  details?: any;
27498
28438
  };
@@ -27525,7 +28465,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27525
28465
  };
27526
28466
  output: {
27527
28467
  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";
28468
+ 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
28469
  message: string;
27530
28470
  details?: any;
27531
28471
  };
@@ -27540,7 +28480,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27540
28480
  };
27541
28481
  output: {
27542
28482
  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";
28483
+ 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
28484
  message: string;
27545
28485
  details?: any;
27546
28486
  };
@@ -27614,7 +28554,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27614
28554
  };
27615
28555
  output: {
27616
28556
  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";
28557
+ 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
28558
  message: string;
27619
28559
  details?: any;
27620
28560
  };
@@ -27632,7 +28572,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27632
28572
  };
27633
28573
  output: {
27634
28574
  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";
28575
+ 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
28576
  message: string;
27637
28577
  details?: any;
27638
28578
  };
@@ -27650,7 +28590,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27650
28590
  };
27651
28591
  output: {
27652
28592
  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";
28593
+ 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
28594
  message: string;
27655
28595
  details?: any;
27656
28596
  };
@@ -27668,7 +28608,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27668
28608
  };
27669
28609
  output: {
27670
28610
  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";
28611
+ 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
28612
  message: string;
27673
28613
  details?: any;
27674
28614
  };
@@ -27701,7 +28641,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27701
28641
  };
27702
28642
  output: {
27703
28643
  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";
28644
+ 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
28645
  message: string;
27706
28646
  details?: any;
27707
28647
  };
@@ -27745,7 +28685,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27745
28685
  };
27746
28686
  output: {
27747
28687
  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";
28688
+ 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
28689
  message: string;
27750
28690
  details?: any;
27751
28691
  };
@@ -27813,7 +28753,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27813
28753
  };
27814
28754
  output: {
27815
28755
  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";
28756
+ 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
28757
  message: string;
27818
28758
  details?: any;
27819
28759
  };
@@ -27829,7 +28769,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27829
28769
  };
27830
28770
  output: {
27831
28771
  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";
28772
+ 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
28773
  message: string;
27834
28774
  details?: any;
27835
28775
  };
@@ -27845,7 +28785,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27845
28785
  };
27846
28786
  output: {
27847
28787
  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";
28788
+ 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
28789
  message: string;
27850
28790
  details?: any;
27851
28791
  };
@@ -27878,7 +28818,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27878
28818
  };
27879
28819
  output: {
27880
28820
  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";
28821
+ 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
28822
  message: string;
27883
28823
  details?: any;
27884
28824
  };
@@ -27943,7 +28883,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27943
28883
  };
27944
28884
  output: {
27945
28885
  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";
28886
+ 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
28887
  message: string;
27948
28888
  details?: any;
27949
28889
  };
@@ -27958,7 +28898,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27958
28898
  };
27959
28899
  output: {
27960
28900
  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";
28901
+ 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
28902
  message: string;
27963
28903
  details?: any;
27964
28904
  };
@@ -27991,7 +28931,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
27991
28931
  };
27992
28932
  output: {
27993
28933
  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";
28934
+ 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
28935
  message: string;
27996
28936
  details?: any;
27997
28937
  };
@@ -28036,7 +28976,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
28036
28976
  };
28037
28977
  output: {
28038
28978
  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";
28979
+ 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
28980
  message: string;
28041
28981
  details?: any;
28042
28982
  };
@@ -28051,7 +28991,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
28051
28991
  };
28052
28992
  output: {
28053
28993
  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";
28994
+ 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
28995
  message: string;
28056
28996
  details?: any;
28057
28997
  };
@@ -28066,7 +29006,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
28066
29006
  };
28067
29007
  output: {
28068
29008
  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";
29009
+ 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
29010
  message: string;
28071
29011
  details?: any;
28072
29012
  };
@@ -28132,7 +29072,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
28132
29072
  };
28133
29073
  output: {
28134
29074
  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";
29075
+ 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
29076
  message: string;
28137
29077
  details?: any;
28138
29078
  };
@@ -28147,7 +29087,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
28147
29087
  };
28148
29088
  output: {
28149
29089
  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";
29090
+ 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
29091
  message: string;
28152
29092
  details?: any;
28153
29093
  };
@@ -28918,7 +29858,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
28918
29858
  image?: string | null | undefined;
28919
29859
  introduction?: string | undefined;
28920
29860
  admin?: boolean | undefined;
28921
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
29861
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
28922
29862
  };
28923
29863
  createdPagesCount: number;
28924
29864
  bookmarksCount: number;
@@ -29122,7 +30062,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
29122
30062
  image?: string | null | undefined;
29123
30063
  introduction?: string | undefined;
29124
30064
  admin?: boolean | undefined;
29125
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
30065
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
29126
30066
  };
29127
30067
  createdAt: string;
29128
30068
  }[] | undefined;
@@ -29323,7 +30263,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
29323
30263
  image?: string | null | undefined;
29324
30264
  introduction?: string | undefined;
29325
30265
  admin?: boolean | undefined;
29326
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
30266
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
29327
30267
  };
29328
30268
  createdAt: string;
29329
30269
  }[];
@@ -29721,7 +30661,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
29721
30661
  image?: string | null | undefined;
29722
30662
  introduction?: string | undefined;
29723
30663
  admin?: boolean | undefined;
29724
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
30664
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
29725
30665
  };
29726
30666
  createdAt: string;
29727
30667
  } | null;
@@ -29891,7 +30831,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
29891
30831
  image?: string | null | undefined;
29892
30832
  introduction?: string | undefined;
29893
30833
  admin?: boolean | undefined;
29894
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
30834
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
29895
30835
  };
29896
30836
  createdAt: string;
29897
30837
  }[];
@@ -30050,7 +30990,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
30050
30990
  image?: string | null | undefined;
30051
30991
  introduction?: string | undefined;
30052
30992
  admin?: boolean | undefined;
30053
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
30993
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
30054
30994
  };
30055
30995
  createdAt: string;
30056
30996
  } | null;
@@ -30194,7 +31134,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
30194
31134
  image?: string | null | undefined;
30195
31135
  introduction?: string | undefined;
30196
31136
  admin?: boolean | undefined;
30197
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
31137
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
30198
31138
  } | null | undefined;
30199
31139
  };
30200
31140
  updatedAt: string;
@@ -30945,6 +31885,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
30945
31885
  include_deleted?: unknown;
30946
31886
  sort?: "path" | "createdAt" | "updatedAt" | undefined;
30947
31887
  order?: "asc" | "desc" | undefined;
31888
+ revision_id?: string | undefined;
30948
31889
  };
30949
31890
  };
30950
31891
  output: {
@@ -30966,6 +31907,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
30966
31907
  include_deleted?: unknown;
30967
31908
  sort?: "path" | "createdAt" | "updatedAt" | undefined;
30968
31909
  order?: "asc" | "desc" | undefined;
31910
+ revision_id?: string | undefined;
30969
31911
  };
30970
31912
  };
30971
31913
  output: {
@@ -31162,6 +32104,100 @@ declare const pageChain: OpenAPIHono<hono.Env, {
31162
32104
  likerCount?: number | undefined;
31163
32105
  seenUsersCount?: number | undefined;
31164
32106
  } | null | undefined;
32107
+ contentPage?: {
32108
+ _id: string;
32109
+ path: string;
32110
+ commentCount: number;
32111
+ createdAt: string;
32112
+ revision?: string | {
32113
+ _id: string;
32114
+ path: string;
32115
+ body: string;
32116
+ format: string;
32117
+ createdAt: string;
32118
+ author?: {
32119
+ _id: string;
32120
+ username: string;
32121
+ name: string;
32122
+ email: string;
32123
+ createdAt: string;
32124
+ id?: string | undefined;
32125
+ image?: string | null | undefined;
32126
+ } | null | undefined;
32127
+ meta?: {
32128
+ toc?: {
32129
+ level: number;
32130
+ text: string;
32131
+ anchorId: string;
32132
+ }[] | undefined;
32133
+ wikiLinks?: {
32134
+ raw: string;
32135
+ target: string;
32136
+ displayText?: string | undefined;
32137
+ }[] | undefined;
32138
+ mentions?: {
32139
+ username: string;
32140
+ }[] | undefined;
32141
+ codeBlockLanguages?: string[] | undefined;
32142
+ } | undefined;
32143
+ renderedAst?: hono_utils_types.JSONValue | undefined;
32144
+ rendererVersion?: string | undefined;
32145
+ parentRevisionId?: string | null | undefined;
32146
+ type?: "snapshot" | "incremental" | undefined;
32147
+ savedBy?: string | {
32148
+ _id: string;
32149
+ username: string;
32150
+ name: string;
32151
+ email: string;
32152
+ createdAt: string;
32153
+ id?: string | undefined;
32154
+ image?: string | null | undefined;
32155
+ } | null | undefined;
32156
+ contributors?: (string | {
32157
+ _id: string;
32158
+ username: string;
32159
+ name: string;
32160
+ email: string;
32161
+ createdAt: string;
32162
+ id?: string | undefined;
32163
+ image?: string | null | undefined;
32164
+ })[] | undefined;
32165
+ message?: string | undefined;
32166
+ editVia?: "web" | "oauth" | "pat" | undefined;
32167
+ } | undefined;
32168
+ redirectTo?: string | null | undefined;
32169
+ status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
32170
+ grant?: number | undefined;
32171
+ grantedUsers?: string[] | undefined;
32172
+ creator?: string | {
32173
+ _id: string;
32174
+ username: string;
32175
+ name: string;
32176
+ email: string;
32177
+ createdAt: string;
32178
+ id?: string | undefined;
32179
+ image?: string | null | undefined;
32180
+ } | null | undefined;
32181
+ lastUpdateUser?: string | {
32182
+ _id: string;
32183
+ username: string;
32184
+ name: string;
32185
+ email: string;
32186
+ createdAt: string;
32187
+ id?: string | undefined;
32188
+ image?: string | null | undefined;
32189
+ } | null | undefined;
32190
+ liker?: string[] | undefined;
32191
+ extended?: {
32192
+ [x: string]: any;
32193
+ } | undefined;
32194
+ updatedAt?: string | undefined;
32195
+ currentRevision?: string | null | undefined;
32196
+ yjsCheckpointAt?: string | null | undefined;
32197
+ latestRevision?: string | undefined;
32198
+ likerCount?: number | undefined;
32199
+ seenUsersCount?: number | undefined;
32200
+ } | null | undefined;
31165
32201
  };
31166
32202
  outputFormat: "json";
31167
32203
  status: 200;
@@ -31743,7 +32779,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
31743
32779
  image?: string | null | undefined;
31744
32780
  introduction?: string | undefined;
31745
32781
  admin?: boolean | undefined;
31746
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
32782
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
31747
32783
  }[];
31748
32784
  seenUsersCount: number;
31749
32785
  };
@@ -31817,7 +32853,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
31817
32853
  image?: string | null | undefined;
31818
32854
  introduction?: string | undefined;
31819
32855
  admin?: boolean | undefined;
31820
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
32856
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
31821
32857
  }[];
31822
32858
  seenUsersCount: number;
31823
32859
  };
@@ -32573,6 +33609,161 @@ declare const pageChain: OpenAPIHono<hono.Env, {
32573
33609
  status: 400;
32574
33610
  };
32575
33611
  };
33612
+ } & {
33613
+ "/pages/revert-to-revision": {
33614
+ $post: {
33615
+ input: {
33616
+ json: {
33617
+ page_id: string;
33618
+ revision_id: string;
33619
+ };
33620
+ };
33621
+ output: {
33622
+ error: {
33623
+ code: "AUTHENTICATION_REQUIRED";
33624
+ message: "Authentication is required";
33625
+ redirectTo?: string | undefined;
33626
+ };
33627
+ };
33628
+ outputFormat: "json";
33629
+ status: 401;
33630
+ } | {
33631
+ input: {
33632
+ json: {
33633
+ page_id: string;
33634
+ revision_id: string;
33635
+ };
33636
+ };
33637
+ output: {
33638
+ error: {
33639
+ code: "PAGE_NOT_FOUND";
33640
+ message: "Page not found";
33641
+ };
33642
+ };
33643
+ outputFormat: "json";
33644
+ status: 404;
33645
+ } | {
33646
+ input: {
33647
+ json: {
33648
+ page_id: string;
33649
+ revision_id: string;
33650
+ };
33651
+ };
33652
+ output: {
33653
+ page: {
33654
+ _id: string;
33655
+ path: string;
33656
+ commentCount: number;
33657
+ createdAt: string;
33658
+ revision?: string | {
33659
+ _id: string;
33660
+ path: string;
33661
+ body: string;
33662
+ format: string;
33663
+ createdAt: string;
33664
+ author?: {
33665
+ _id: string;
33666
+ username: string;
33667
+ name: string;
33668
+ email: string;
33669
+ createdAt: string;
33670
+ id?: string | undefined;
33671
+ image?: string | null | undefined;
33672
+ } | null | undefined;
33673
+ meta?: {
33674
+ toc?: {
33675
+ level: number;
33676
+ text: string;
33677
+ anchorId: string;
33678
+ }[] | undefined;
33679
+ wikiLinks?: {
33680
+ raw: string;
33681
+ target: string;
33682
+ displayText?: string | undefined;
33683
+ }[] | undefined;
33684
+ mentions?: {
33685
+ username: string;
33686
+ }[] | undefined;
33687
+ codeBlockLanguages?: string[] | undefined;
33688
+ } | undefined;
33689
+ renderedAst?: hono_utils_types.JSONValue | undefined;
33690
+ rendererVersion?: string | undefined;
33691
+ parentRevisionId?: string | null | undefined;
33692
+ type?: "snapshot" | "incremental" | undefined;
33693
+ savedBy?: string | {
33694
+ _id: string;
33695
+ username: string;
33696
+ name: string;
33697
+ email: string;
33698
+ createdAt: string;
33699
+ id?: string | undefined;
33700
+ image?: string | null | undefined;
33701
+ } | null | undefined;
33702
+ contributors?: (string | {
33703
+ _id: string;
33704
+ username: string;
33705
+ name: string;
33706
+ email: string;
33707
+ createdAt: string;
33708
+ id?: string | undefined;
33709
+ image?: string | null | undefined;
33710
+ })[] | undefined;
33711
+ message?: string | undefined;
33712
+ editVia?: "web" | "oauth" | "pat" | undefined;
33713
+ } | undefined;
33714
+ redirectTo?: string | null | undefined;
33715
+ status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
33716
+ grant?: number | undefined;
33717
+ grantedUsers?: string[] | undefined;
33718
+ creator?: string | {
33719
+ _id: string;
33720
+ username: string;
33721
+ name: string;
33722
+ email: string;
33723
+ createdAt: string;
33724
+ id?: string | undefined;
33725
+ image?: string | null | undefined;
33726
+ } | null | undefined;
33727
+ lastUpdateUser?: string | {
33728
+ _id: string;
33729
+ username: string;
33730
+ name: string;
33731
+ email: string;
33732
+ createdAt: string;
33733
+ id?: string | undefined;
33734
+ image?: string | null | undefined;
33735
+ } | null | undefined;
33736
+ liker?: string[] | undefined;
33737
+ extended?: {
33738
+ [x: string]: any;
33739
+ } | undefined;
33740
+ updatedAt?: string | undefined;
33741
+ currentRevision?: string | null | undefined;
33742
+ yjsCheckpointAt?: string | null | undefined;
33743
+ latestRevision?: string | undefined;
33744
+ likerCount?: number | undefined;
33745
+ seenUsersCount?: number | undefined;
33746
+ };
33747
+ };
33748
+ outputFormat: "json";
33749
+ status: 200;
33750
+ } | {
33751
+ input: {
33752
+ json: {
33753
+ page_id: string;
33754
+ revision_id: string;
33755
+ };
33756
+ };
33757
+ output: {
33758
+ error: {
33759
+ code: string;
33760
+ message: string;
33761
+ };
33762
+ };
33763
+ outputFormat: "json";
33764
+ status: 400;
33765
+ };
33766
+ };
32576
33767
  } & {
32577
33768
  "/pages/rename": {
32578
33769
  $post: {
@@ -33463,7 +34654,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
33463
34654
  image?: string | null | undefined;
33464
34655
  introduction?: string | undefined;
33465
34656
  admin?: boolean | undefined;
33466
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
34657
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
33467
34658
  };
33468
34659
  filePath: string;
33469
34660
  fileName: string;
@@ -33488,7 +34679,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
33488
34679
  image?: string | null | undefined;
33489
34680
  introduction?: string | undefined;
33490
34681
  admin?: boolean | undefined;
33491
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
34682
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
33492
34683
  };
33493
34684
  filePath: string;
33494
34685
  fileName: string;
@@ -33512,7 +34703,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
33512
34703
  image?: string | null | undefined;
33513
34704
  introduction?: string | undefined;
33514
34705
  admin?: boolean | undefined;
33515
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
34706
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
33516
34707
  };
33517
34708
  }[];
33518
34709
  }[];
@@ -33628,7 +34819,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
33628
34819
  image?: string | null | undefined;
33629
34820
  introduction?: string | undefined;
33630
34821
  admin?: boolean | undefined;
33631
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
34822
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
33632
34823
  };
33633
34824
  filePath: string;
33634
34825
  fileName: string;
@@ -33725,7 +34916,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
33725
34916
  image?: string | null | undefined;
33726
34917
  introduction?: string | undefined;
33727
34918
  admin?: boolean | undefined;
33728
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
34919
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
33729
34920
  };
33730
34921
  filePath: string;
33731
34922
  fileName: string;
@@ -33994,7 +35185,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
33994
35185
  image?: string | null | undefined;
33995
35186
  introduction?: string | undefined;
33996
35187
  admin?: boolean | undefined;
33997
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
35188
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
33998
35189
  };
33999
35190
  page: string;
34000
35191
  url: string;
@@ -34466,7 +35657,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
34466
35657
  image?: string | null | undefined;
34467
35658
  introduction?: string | undefined;
34468
35659
  admin?: boolean | undefined;
34469
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
35660
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
34470
35661
  }[];
34471
35662
  createdAt: string;
34472
35663
  }[];
@@ -34637,7 +35828,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
34637
35828
  image?: string | null | undefined;
34638
35829
  introduction?: string | undefined;
34639
35830
  admin?: boolean | undefined;
34640
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
35831
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
34641
35832
  }[];
34642
35833
  createdAt: string;
34643
35834
  };
@@ -35383,7 +36574,7 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
35383
36574
  image?: string | null | undefined;
35384
36575
  introduction?: string | undefined;
35385
36576
  admin?: boolean | undefined;
35386
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
36577
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
35387
36578
  }[];
35388
36579
  pager: {
35389
36580
  page: number;
@@ -35463,7 +36654,7 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
35463
36654
  image?: string | null | undefined;
35464
36655
  introduction?: string | undefined;
35465
36656
  admin?: boolean | undefined;
35466
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
36657
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
35467
36658
  }[];
35468
36659
  };
35469
36660
  outputFormat: "json";
@@ -35734,7 +36925,7 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
35734
36925
  image?: string | null | undefined;
35735
36926
  introduction?: string | undefined;
35736
36927
  admin?: boolean | undefined;
35737
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
36928
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
35738
36929
  };
35739
36930
  };
35740
36931
  outputFormat: "json";
@@ -35857,7 +37048,7 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
35857
37048
  image?: string | null | undefined;
35858
37049
  introduction?: string | undefined;
35859
37050
  admin?: boolean | undefined;
35860
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
37051
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
35861
37052
  };
35862
37053
  };
35863
37054
  outputFormat: "json";
@@ -35961,7 +37152,7 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
35961
37152
  image?: string | null | undefined;
35962
37153
  introduction?: string | undefined;
35963
37154
  admin?: boolean | undefined;
35964
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
37155
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
35965
37156
  };
35966
37157
  };
35967
37158
  outputFormat: "json";
@@ -36065,29 +37256,324 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
36065
37256
  image?: string | null | undefined;
36066
37257
  introduction?: string | undefined;
36067
37258
  admin?: boolean | undefined;
36068
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
37259
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
37260
+ };
37261
+ };
37262
+ outputFormat: "json";
37263
+ status: 200;
37264
+ };
37265
+ };
37266
+ } & {
37267
+ "/admin/users/:id/status/suspended": {
37268
+ $put: {
37269
+ input: {
37270
+ param: {
37271
+ id: string;
37272
+ };
37273
+ };
37274
+ output: {
37275
+ error: {
37276
+ code: "INTERNAL_ERROR";
37277
+ message: "Internal server error";
37278
+ };
37279
+ };
37280
+ outputFormat: "json";
37281
+ status: 500;
37282
+ } | {
37283
+ input: {
37284
+ param: {
37285
+ id: string;
37286
+ };
37287
+ };
37288
+ output: {
37289
+ error: {
37290
+ code: "AUTHENTICATION_REQUIRED";
37291
+ message: "Authentication is required";
37292
+ redirectTo?: string | undefined;
37293
+ };
37294
+ };
37295
+ outputFormat: "json";
37296
+ status: 401;
37297
+ } | {
37298
+ input: {
37299
+ param: {
37300
+ id: string;
37301
+ };
37302
+ };
37303
+ output: {
37304
+ error: {
37305
+ code: "NOT_FOUND";
37306
+ message: string;
37307
+ };
37308
+ };
37309
+ outputFormat: "json";
37310
+ status: 404;
37311
+ } | {
37312
+ input: {
37313
+ param: {
37314
+ id: string;
37315
+ };
37316
+ };
37317
+ output: {
37318
+ error: {
37319
+ code: "VALIDATION_ERROR";
37320
+ message: string;
37321
+ details?: {
37322
+ fieldErrors: {
37323
+ [x: string]: string[];
37324
+ };
37325
+ formErrors: string[];
37326
+ } | undefined;
37327
+ };
37328
+ };
37329
+ outputFormat: "json";
37330
+ status: 400;
37331
+ } | {
37332
+ input: {
37333
+ param: {
37334
+ id: string;
37335
+ };
37336
+ };
37337
+ output: {
37338
+ error: {
37339
+ code: "ADMIN_REQUIRED";
37340
+ message: "Admin permission required";
37341
+ redirectTo?: string | undefined;
37342
+ };
37343
+ };
37344
+ outputFormat: "json";
37345
+ status: 403;
37346
+ } | {
37347
+ input: {
37348
+ param: {
37349
+ id: string;
37350
+ };
37351
+ };
37352
+ output: {
37353
+ user: {
37354
+ _id: string;
37355
+ username: string;
37356
+ name: string;
37357
+ email: string;
37358
+ createdAt: string;
37359
+ id?: string | undefined;
37360
+ image?: string | null | undefined;
37361
+ introduction?: string | undefined;
37362
+ admin?: boolean | undefined;
37363
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
37364
+ };
37365
+ };
37366
+ outputFormat: "json";
37367
+ status: 200;
37368
+ };
37369
+ };
37370
+ } & {
37371
+ "/admin/users/:id/reset-password": {
37372
+ $post: {
37373
+ input: {
37374
+ param: {
37375
+ id: string;
37376
+ };
37377
+ };
37378
+ output: {
37379
+ error: {
37380
+ code: "INTERNAL_ERROR";
37381
+ message: "Internal server error";
37382
+ };
37383
+ };
37384
+ outputFormat: "json";
37385
+ status: 500;
37386
+ } | {
37387
+ input: {
37388
+ param: {
37389
+ id: string;
37390
+ };
37391
+ };
37392
+ output: {
37393
+ error: {
37394
+ code: "AUTHENTICATION_REQUIRED";
37395
+ message: "Authentication is required";
37396
+ redirectTo?: string | undefined;
37397
+ };
37398
+ };
37399
+ outputFormat: "json";
37400
+ status: 401;
37401
+ } | {
37402
+ input: {
37403
+ param: {
37404
+ id: string;
37405
+ };
37406
+ };
37407
+ output: {
37408
+ error: {
37409
+ code: "NOT_FOUND";
37410
+ message: string;
37411
+ };
37412
+ };
37413
+ outputFormat: "json";
37414
+ status: 404;
37415
+ } | {
37416
+ input: {
37417
+ param: {
37418
+ id: string;
37419
+ };
37420
+ };
37421
+ output: {
37422
+ error: {
37423
+ code: "VALIDATION_ERROR";
37424
+ message: string;
37425
+ details?: {
37426
+ fieldErrors: {
37427
+ [x: string]: string[];
37428
+ };
37429
+ formErrors: string[];
37430
+ } | undefined;
37431
+ };
37432
+ };
37433
+ outputFormat: "json";
37434
+ status: 400;
37435
+ } | {
37436
+ input: {
37437
+ param: {
37438
+ id: string;
37439
+ };
37440
+ };
37441
+ output: {
37442
+ error: {
37443
+ code: "ADMIN_REQUIRED";
37444
+ message: "Admin permission required";
37445
+ redirectTo?: string | undefined;
37446
+ };
37447
+ };
37448
+ outputFormat: "json";
37449
+ status: 403;
37450
+ } | {
37451
+ input: {
37452
+ param: {
37453
+ id: string;
37454
+ };
37455
+ };
37456
+ output: {
37457
+ user: {
37458
+ _id: string;
37459
+ username: string;
37460
+ name: string;
37461
+ email: string;
37462
+ createdAt: string;
37463
+ id?: string | undefined;
37464
+ image?: string | null | undefined;
37465
+ introduction?: string | undefined;
37466
+ admin?: boolean | undefined;
37467
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
37468
+ };
37469
+ newPassword: string;
37470
+ };
37471
+ outputFormat: "json";
37472
+ status: 200;
37473
+ };
37474
+ };
37475
+ } & {
37476
+ "/admin/users/:id/resend-invite": {
37477
+ $post: {
37478
+ input: {
37479
+ param: {
37480
+ id: string;
37481
+ };
37482
+ };
37483
+ output: {
37484
+ error: {
37485
+ code: "INTERNAL_ERROR";
37486
+ message: "Internal server error";
37487
+ };
37488
+ };
37489
+ outputFormat: "json";
37490
+ status: 500;
37491
+ } | {
37492
+ input: {
37493
+ param: {
37494
+ id: string;
37495
+ };
37496
+ };
37497
+ output: {
37498
+ error: {
37499
+ code: "AUTHENTICATION_REQUIRED";
37500
+ message: "Authentication is required";
37501
+ redirectTo?: string | undefined;
37502
+ };
37503
+ };
37504
+ outputFormat: "json";
37505
+ status: 401;
37506
+ } | {
37507
+ input: {
37508
+ param: {
37509
+ id: string;
37510
+ };
37511
+ };
37512
+ output: {
37513
+ error: {
37514
+ code: "NOT_FOUND";
37515
+ message: string;
37516
+ };
37517
+ };
37518
+ outputFormat: "json";
37519
+ status: 404;
37520
+ } | {
37521
+ input: {
37522
+ param: {
37523
+ id: string;
37524
+ };
37525
+ };
37526
+ output: {
37527
+ error: {
37528
+ code: "VALIDATION_ERROR";
37529
+ message: string;
37530
+ details?: {
37531
+ fieldErrors: {
37532
+ [x: string]: string[];
37533
+ };
37534
+ formErrors: string[];
37535
+ } | undefined;
37536
+ };
37537
+ };
37538
+ outputFormat: "json";
37539
+ status: 400;
37540
+ } | {
37541
+ input: {
37542
+ param: {
37543
+ id: string;
37544
+ };
37545
+ };
37546
+ output: {
37547
+ error: {
37548
+ code: "ADMIN_REQUIRED";
37549
+ message: "Admin permission required";
37550
+ redirectTo?: string | undefined;
37551
+ };
37552
+ };
37553
+ outputFormat: "json";
37554
+ status: 403;
37555
+ } | {
37556
+ input: {
37557
+ param: {
37558
+ id: string;
37559
+ };
37560
+ };
37561
+ output: {
37562
+ user: {
37563
+ _id: string;
37564
+ username: string;
37565
+ name: string;
37566
+ email: string;
37567
+ createdAt: string;
37568
+ id?: string | undefined;
37569
+ image?: string | null | undefined;
37570
+ introduction?: string | undefined;
37571
+ admin?: boolean | undefined;
37572
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
36069
37573
  };
36070
37574
  };
36071
37575
  outputFormat: "json";
36072
37576
  status: 200;
36073
- };
36074
- };
36075
- } & {
36076
- "/admin/users/:id/status/suspended": {
36077
- $put: {
36078
- input: {
36079
- param: {
36080
- id: string;
36081
- };
36082
- };
36083
- output: {
36084
- error: {
36085
- code: "INTERNAL_ERROR";
36086
- message: "Internal server error";
36087
- };
36088
- };
36089
- outputFormat: "json";
36090
- status: 500;
36091
37577
  } | {
36092
37578
  input: {
36093
37579
  param: {
@@ -36096,189 +37582,12 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
36096
37582
  };
36097
37583
  output: {
36098
37584
  error: {
36099
- code: "AUTHENTICATION_REQUIRED";
36100
- message: "Authentication is required";
36101
- redirectTo?: string | undefined;
36102
- };
36103
- };
36104
- outputFormat: "json";
36105
- status: 401;
36106
- } | {
36107
- input: {
36108
- param: {
36109
- id: string;
36110
- };
36111
- };
36112
- output: {
36113
- error: {
36114
- code: "NOT_FOUND";
36115
- message: string;
36116
- };
36117
- };
36118
- outputFormat: "json";
36119
- status: 404;
36120
- } | {
36121
- input: {
36122
- param: {
36123
- id: string;
36124
- };
36125
- };
36126
- output: {
36127
- error: {
36128
- code: "VALIDATION_ERROR";
36129
- message: string;
36130
- details?: {
36131
- fieldErrors: {
36132
- [x: string]: string[];
36133
- };
36134
- formErrors: string[];
36135
- } | undefined;
36136
- };
36137
- };
36138
- outputFormat: "json";
36139
- status: 400;
36140
- } | {
36141
- input: {
36142
- param: {
36143
- id: string;
36144
- };
36145
- };
36146
- output: {
36147
- error: {
36148
- code: "ADMIN_REQUIRED";
36149
- message: "Admin permission required";
36150
- redirectTo?: string | undefined;
36151
- };
36152
- };
36153
- outputFormat: "json";
36154
- status: 403;
36155
- } | {
36156
- input: {
36157
- param: {
36158
- id: string;
36159
- };
36160
- };
36161
- output: {
36162
- user: {
36163
- _id: string;
36164
- username: string;
36165
- name: string;
36166
- email: string;
36167
- createdAt: string;
36168
- id?: string | undefined;
36169
- image?: string | null | undefined;
36170
- introduction?: string | undefined;
36171
- admin?: boolean | undefined;
36172
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
36173
- };
36174
- };
36175
- outputFormat: "json";
36176
- 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
- } | {
36196
- input: {
36197
- param: {
36198
- id: string;
36199
- };
36200
- };
36201
- output: {
36202
- 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";
37585
+ code: "CONFLICT";
36233
37586
  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
37587
  };
36256
37588
  };
36257
37589
  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
- };
36278
- newPassword: string;
36279
- };
36280
- outputFormat: "json";
36281
- status: 200;
37590
+ status: 409;
36282
37591
  };
36283
37592
  };
36284
37593
  } & {
@@ -36402,7 +37711,7 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
36402
37711
  image?: string | null | undefined;
36403
37712
  introduction?: string | undefined;
36404
37713
  admin?: boolean | undefined;
36405
- status?: 3 | 4 | 1 | 2 | 5 | undefined;
37714
+ status?: 2 | 1 | 3 | 4 | 5 | undefined;
36406
37715
  };
36407
37716
  };
36408
37717
  outputFormat: "json";
@@ -37335,6 +38644,17 @@ declare const createClient: (baseUrl: string, options?: ClientOptions) => CrowiA
37335
38644
  * endpoint. The CLI parses them leniently: an older server that omits
37336
38645
  * them degrades to a static baseline with version-skew warnings
37337
38646
  * suppressed.
38647
+ *
38648
+ * `canSelfRegister` tells the unauthenticated login / register pages
38649
+ * whether self-service registration is open, so the web can hide the
38650
+ * `/register` form (and the login → register link) up front instead of
38651
+ * letting users fill the form and only learn it is closed on a 403. It is
38652
+ * `true` for the `Open` / `Restricted` registration modes and `false` for
38653
+ * `Closed` (invite-only). Only the boolean is exposed — the internal mode
38654
+ * string (whose stored value is the historical `Resricted` typo) is never
38655
+ * surfaced. The API still enforces the real guard (403
38656
+ * `REGISTRATION_CLOSED` on `POST /auth/register`); this flag is a UX hint
38657
+ * the front-end may fail-open on.
37338
38658
  */
37339
38659
  declare const AppInfoResponseSchema: z.ZodObject<{
37340
38660
  title: z.ZodNullable<z.ZodString>;
@@ -37342,6 +38662,7 @@ declare const AppInfoResponseSchema: z.ZodObject<{
37342
38662
  version: z.ZodString;
37343
38663
  apiVersion: z.ZodString;
37344
38664
  capabilities: z.ZodArray<z.ZodString>;
38665
+ canSelfRegister: z.ZodBoolean;
37345
38666
  }, z.core.$strip>;
37346
38667
  type AppInfoResponse = z.infer<typeof AppInfoResponseSchema>;
37347
38668
 
@@ -37598,6 +38919,7 @@ declare const ApiErrorSchema: z.ZodObject<{
37598
38919
  PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
37599
38920
  PAGE_NOT_GRANTED: "PAGE_NOT_GRANTED";
37600
38921
  PAGE_REVISION_ERROR: "PAGE_REVISION_ERROR";
38922
+ PAGE_TWIN_EXISTS: "PAGE_TWIN_EXISTS";
37601
38923
  INVALID_GRANT: "INVALID_GRANT";
37602
38924
  COMMENT_NOT_FOUND: "COMMENT_NOT_FOUND";
37603
38925
  NOTIFICATION_NOT_FOUND: "NOTIFICATION_NOT_FOUND";
@@ -38812,6 +40134,7 @@ declare const ListPagesRequestSchema: z.ZodObject<{
38812
40134
  asc: "asc";
38813
40135
  desc: "desc";
38814
40136
  }>>>;
40137
+ revision_id: z.ZodOptional<z.ZodString>;
38815
40138
  }, z.core.$strip>;
38816
40139
  type ListPagesRequest = z.infer<typeof ListPagesRequestSchema>;
38817
40140
  type ListPagesSort = ListPagesRequest['sort'];
@@ -39037,6 +40360,111 @@ declare const ListPagesResponseSchema: z.ZodObject<{
39037
40360
  likerCount: z.ZodOptional<z.ZodNumber>;
39038
40361
  seenUsersCount: z.ZodOptional<z.ZodNumber>;
39039
40362
  }, z.core.$strip>>>;
40363
+ contentPage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40364
+ _id: z.ZodString;
40365
+ path: z.ZodString;
40366
+ revision: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40367
+ _id: z.ZodString;
40368
+ path: z.ZodString;
40369
+ body: z.ZodString;
40370
+ format: z.ZodDefault<z.ZodString>;
40371
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40372
+ _id: z.ZodString;
40373
+ id: z.ZodOptional<z.ZodString>;
40374
+ username: z.ZodString;
40375
+ name: z.ZodString;
40376
+ email: z.ZodString;
40377
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40378
+ createdAt: z.ZodString;
40379
+ }, z.core.$strip>>>;
40380
+ createdAt: z.ZodString;
40381
+ meta: z.ZodOptional<z.ZodObject<{
40382
+ toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
40383
+ level: z.ZodNumber;
40384
+ text: z.ZodString;
40385
+ anchorId: z.ZodString;
40386
+ }, z.core.$strip>>>;
40387
+ wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
40388
+ raw: z.ZodString;
40389
+ target: z.ZodString;
40390
+ displayText: z.ZodOptional<z.ZodString>;
40391
+ }, z.core.$strip>>>;
40392
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
40393
+ username: z.ZodString;
40394
+ }, z.core.$strip>>>;
40395
+ codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
40396
+ }, z.core.$strip>>;
40397
+ renderedAst: z.ZodOptional<z.ZodUnknown>;
40398
+ rendererVersion: z.ZodOptional<z.ZodString>;
40399
+ parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40400
+ type: z.ZodOptional<z.ZodEnum<{
40401
+ snapshot: "snapshot";
40402
+ incremental: "incremental";
40403
+ }>>;
40404
+ savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40405
+ _id: z.ZodString;
40406
+ id: z.ZodOptional<z.ZodString>;
40407
+ username: z.ZodString;
40408
+ name: z.ZodString;
40409
+ email: z.ZodString;
40410
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40411
+ createdAt: z.ZodString;
40412
+ }, z.core.$strip>]>>>;
40413
+ contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40414
+ _id: z.ZodString;
40415
+ id: z.ZodOptional<z.ZodString>;
40416
+ username: z.ZodString;
40417
+ name: z.ZodString;
40418
+ email: z.ZodString;
40419
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40420
+ createdAt: z.ZodString;
40421
+ }, z.core.$strip>]>>>;
40422
+ message: z.ZodOptional<z.ZodString>;
40423
+ editVia: z.ZodOptional<z.ZodEnum<{
40424
+ web: "web";
40425
+ oauth: "oauth";
40426
+ pat: "pat";
40427
+ }>>;
40428
+ }, z.core.$strip>]>>;
40429
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40430
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
40431
+ deprecated: "deprecated";
40432
+ wip: "wip";
40433
+ published: "published";
40434
+ deleted: "deleted";
40435
+ draft: "draft";
40436
+ }>>>;
40437
+ grant: z.ZodOptional<z.ZodNumber>;
40438
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
40439
+ creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40440
+ _id: z.ZodString;
40441
+ id: z.ZodOptional<z.ZodString>;
40442
+ username: z.ZodString;
40443
+ name: z.ZodString;
40444
+ email: z.ZodString;
40445
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40446
+ createdAt: z.ZodString;
40447
+ }, z.core.$strip>]>>>;
40448
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40449
+ _id: z.ZodString;
40450
+ id: z.ZodOptional<z.ZodString>;
40451
+ username: z.ZodString;
40452
+ name: z.ZodString;
40453
+ email: z.ZodString;
40454
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40455
+ createdAt: z.ZodString;
40456
+ }, z.core.$strip>]>>>;
40457
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
40458
+ commentCount: z.ZodDefault<z.ZodNumber>;
40459
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
40460
+ createdAt: z.ZodString;
40461
+ updatedAt: z.ZodOptional<z.ZodString>;
40462
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40463
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40464
+ latestRevision: z.ZodOptional<z.ZodString>;
40465
+ likerCount: z.ZodOptional<z.ZodNumber>;
40466
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
40467
+ }, z.core.$strip>>>;
39040
40468
  }, z.core.$strip>;
39041
40469
  type ListPagesResponse = z.infer<typeof ListPagesResponseSchema>;
39042
40470
  declare const PageChildSegmentSchema: z.ZodObject<{
@@ -39074,6 +40502,11 @@ declare const UpdatePageRequestSchema: z.ZodObject<{
39074
40502
  grant: z.ZodOptional<z.ZodNumber>;
39075
40503
  }, z.core.$strip>;
39076
40504
  type UpdatePageRequest = z.infer<typeof UpdatePageRequestSchema>;
40505
+ declare const RevertToRevisionRequestSchema: z.ZodObject<{
40506
+ page_id: z.ZodString;
40507
+ revision_id: z.ZodString;
40508
+ }, z.core.$strip>;
40509
+ type RevertToRevisionRequest = z.infer<typeof RevertToRevisionRequestSchema>;
39077
40510
  declare const SetPageGrantRequestSchema: z.ZodObject<{
39078
40511
  page_id: z.ZodString;
39079
40512
  grant: z.ZodNumber;
@@ -42289,4 +43722,4 @@ declare const SearchPagesResponseSchema: z.ZodObject<{
42289
43722
  }, z.core.$strip>;
42290
43723
  type SearchPagesResponse = z.infer<typeof SearchPagesResponseSchema>;
42291
43724
 
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 };
43725
+ 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 };