@crowi/api-contract 2.0.0-alpha.10 → 2.0.0-alpha.12

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
@@ -1086,7 +1086,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
1086
1086
  name: string;
1087
1087
  email: string;
1088
1088
  lang: "en" | "ja";
1089
- theme: "system" | "light" | "dark";
1089
+ theme: "light" | "dark" | "system";
1090
1090
  image: string | null;
1091
1091
  hasPassword: boolean;
1092
1092
  createdAt: string;
@@ -1134,7 +1134,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
1134
1134
  name: string;
1135
1135
  email: string;
1136
1136
  lang: "en" | "ja";
1137
- theme: "system" | "light" | "dark";
1137
+ theme: "light" | "dark" | "system";
1138
1138
  image: string | null;
1139
1139
  hasPassword: boolean;
1140
1140
  createdAt: string;
@@ -1168,7 +1168,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
1168
1168
  $patch: {
1169
1169
  input: {
1170
1170
  json: {
1171
- theme: "system" | "light" | "dark";
1171
+ theme: "light" | "dark" | "system";
1172
1172
  };
1173
1173
  };
1174
1174
  output: {
@@ -1183,7 +1183,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
1183
1183
  } | {
1184
1184
  input: {
1185
1185
  json: {
1186
- theme: "system" | "light" | "dark";
1186
+ theme: "light" | "dark" | "system";
1187
1187
  };
1188
1188
  };
1189
1189
  output: {
@@ -1197,12 +1197,12 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
1197
1197
  } | {
1198
1198
  input: {
1199
1199
  json: {
1200
- theme: "system" | "light" | "dark";
1200
+ theme: "light" | "dark" | "system";
1201
1201
  };
1202
1202
  };
1203
1203
  output: {
1204
1204
  status: "ok";
1205
- theme: "system" | "light" | "dark";
1205
+ theme: "light" | "dark" | "system";
1206
1206
  };
1207
1207
  outputFormat: "json";
1208
1208
  status: 200;
@@ -1403,7 +1403,14 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
1403
1403
  codeBlockLanguages?: string[] | undefined;
1404
1404
  rawSpaceLinks?: string[] | undefined;
1405
1405
  } | undefined;
1406
- renderedAst?: hono_utils_types.JSONValue | undefined;
1406
+ renderedAst?: {
1407
+ astVersion: 1;
1408
+ root: hono_utils_types.JSONValue;
1409
+ } | {
1410
+ type: "root";
1411
+ children: hono_utils_types.JSONValue[];
1412
+ } | undefined;
1413
+ renderedAstArtifactKey?: string | undefined;
1407
1414
  rendererVersion?: string | undefined;
1408
1415
  parentRevisionId?: string | null | undefined;
1409
1416
  type?: "snapshot" | "incremental" | undefined;
@@ -1735,6 +1742,8 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
1735
1742
  };
1736
1743
  createdPagesCount: number;
1737
1744
  bookmarksCount: number;
1745
+ likesCount: number;
1746
+ commentsCount: number;
1738
1747
  recentPages?: {
1739
1748
  _id: string;
1740
1749
  path: string;
@@ -1772,7 +1781,14 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
1772
1781
  codeBlockLanguages?: string[] | undefined;
1773
1782
  rawSpaceLinks?: string[] | undefined;
1774
1783
  } | undefined;
1775
- renderedAst?: hono_utils_types.JSONValue | undefined;
1784
+ renderedAst?: {
1785
+ astVersion: 1;
1786
+ root: hono_utils_types.JSONValue;
1787
+ } | {
1788
+ type: "root";
1789
+ children: hono_utils_types.JSONValue[];
1790
+ } | undefined;
1791
+ renderedAstArtifactKey?: string | undefined;
1776
1792
  rendererVersion?: string | undefined;
1777
1793
  parentRevisionId?: string | null | undefined;
1778
1794
  type?: "snapshot" | "incremental" | undefined;
@@ -1869,7 +1885,14 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
1869
1885
  codeBlockLanguages?: string[] | undefined;
1870
1886
  rawSpaceLinks?: string[] | undefined;
1871
1887
  } | undefined;
1872
- renderedAst?: hono_utils_types.JSONValue | undefined;
1888
+ renderedAst?: {
1889
+ astVersion: 1;
1890
+ root: hono_utils_types.JSONValue;
1891
+ } | {
1892
+ type: "root";
1893
+ children: hono_utils_types.JSONValue[];
1894
+ } | undefined;
1895
+ renderedAstArtifactKey?: string | undefined;
1873
1896
  rendererVersion?: string | undefined;
1874
1897
  parentRevisionId?: string | null | undefined;
1875
1898
  type?: "snapshot" | "incremental" | undefined;
@@ -2071,7 +2094,14 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
2071
2094
  codeBlockLanguages?: string[] | undefined;
2072
2095
  rawSpaceLinks?: string[] | undefined;
2073
2096
  } | undefined;
2074
- renderedAst?: hono_utils_types.JSONValue | undefined;
2097
+ renderedAst?: {
2098
+ astVersion: 1;
2099
+ root: hono_utils_types.JSONValue;
2100
+ } | {
2101
+ type: "root";
2102
+ children: hono_utils_types.JSONValue[];
2103
+ } | undefined;
2104
+ renderedAstArtifactKey?: string | undefined;
2075
2105
  rendererVersion?: string | undefined;
2076
2106
  parentRevisionId?: string | null | undefined;
2077
2107
  type?: "snapshot" | "incremental" | undefined;
@@ -2263,7 +2293,14 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
2263
2293
  codeBlockLanguages?: string[] | undefined;
2264
2294
  rawSpaceLinks?: string[] | undefined;
2265
2295
  } | undefined;
2266
- renderedAst?: hono_utils_types.JSONValue | undefined;
2296
+ renderedAst?: {
2297
+ astVersion: 1;
2298
+ root: hono_utils_types.JSONValue;
2299
+ } | {
2300
+ type: "root";
2301
+ children: hono_utils_types.JSONValue[];
2302
+ } | undefined;
2303
+ renderedAstArtifactKey?: string | undefined;
2267
2304
  rendererVersion?: string | undefined;
2268
2305
  parentRevisionId?: string | null | undefined;
2269
2306
  type?: "snapshot" | "incremental" | undefined;
@@ -2441,7 +2478,14 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
2441
2478
  codeBlockLanguages?: string[] | undefined;
2442
2479
  rawSpaceLinks?: string[] | undefined;
2443
2480
  } | undefined;
2444
- renderedAst?: hono_utils_types.JSONValue | undefined;
2481
+ renderedAst?: {
2482
+ astVersion: 1;
2483
+ root: hono_utils_types.JSONValue;
2484
+ } | {
2485
+ type: "root";
2486
+ children: hono_utils_types.JSONValue[];
2487
+ } | undefined;
2488
+ renderedAstArtifactKey?: string | undefined;
2445
2489
  rendererVersion?: string | undefined;
2446
2490
  parentRevisionId?: string | null | undefined;
2447
2491
  type?: "snapshot" | "incremental" | undefined;
@@ -2696,7 +2740,14 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
2696
2740
  codeBlockLanguages?: string[] | undefined;
2697
2741
  rawSpaceLinks?: string[] | undefined;
2698
2742
  } | undefined;
2699
- renderedAst?: hono_utils_types.JSONValue | undefined;
2743
+ renderedAst?: {
2744
+ astVersion: 1;
2745
+ root: hono_utils_types.JSONValue;
2746
+ } | {
2747
+ type: "root";
2748
+ children: hono_utils_types.JSONValue[];
2749
+ } | undefined;
2750
+ renderedAstArtifactKey?: string | undefined;
2700
2751
  rendererVersion?: string | undefined;
2701
2752
  parentRevisionId?: string | null | undefined;
2702
2753
  type?: "snapshot" | "incremental" | undefined;
@@ -2867,7 +2918,14 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
2867
2918
  codeBlockLanguages?: string[] | undefined;
2868
2919
  rawSpaceLinks?: string[] | undefined;
2869
2920
  } | undefined;
2870
- renderedAst?: hono_utils_types.JSONValue | undefined;
2921
+ renderedAst?: {
2922
+ astVersion: 1;
2923
+ root: hono_utils_types.JSONValue;
2924
+ } | {
2925
+ type: "root";
2926
+ children: hono_utils_types.JSONValue[];
2927
+ } | undefined;
2928
+ renderedAstArtifactKey?: string | undefined;
2871
2929
  rendererVersion?: string | undefined;
2872
2930
  parentRevisionId?: string | null | undefined;
2873
2931
  type?: "snapshot" | "incremental" | undefined;
@@ -3027,7 +3085,14 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
3027
3085
  codeBlockLanguages?: string[] | undefined;
3028
3086
  rawSpaceLinks?: string[] | undefined;
3029
3087
  } | undefined;
3030
- renderedAst?: hono_utils_types.JSONValue | undefined;
3088
+ renderedAst?: {
3089
+ astVersion: 1;
3090
+ root: hono_utils_types.JSONValue;
3091
+ } | {
3092
+ type: "root";
3093
+ children: hono_utils_types.JSONValue[];
3094
+ } | undefined;
3095
+ renderedAstArtifactKey?: string | undefined;
3031
3096
  rendererVersion?: string | undefined;
3032
3097
  parentRevisionId?: string | null | undefined;
3033
3098
  type?: "snapshot" | "incremental" | undefined;
@@ -3707,7 +3772,14 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
3707
3772
  codeBlockLanguages?: string[] | undefined;
3708
3773
  rawSpaceLinks?: string[] | undefined;
3709
3774
  } | undefined;
3710
- renderedAst?: hono_utils_types.JSONValue | undefined;
3775
+ renderedAst?: {
3776
+ astVersion: 1;
3777
+ root: hono_utils_types.JSONValue;
3778
+ } | {
3779
+ type: "root";
3780
+ children: hono_utils_types.JSONValue[];
3781
+ } | undefined;
3782
+ renderedAstArtifactKey?: string | undefined;
3711
3783
  rendererVersion?: string | undefined;
3712
3784
  parentRevisionId?: string | null | undefined;
3713
3785
  type?: "snapshot" | "incremental" | undefined;
@@ -3821,7 +3893,14 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
3821
3893
  codeBlockLanguages?: string[] | undefined;
3822
3894
  rawSpaceLinks?: string[] | undefined;
3823
3895
  } | undefined;
3824
- renderedAst?: hono_utils_types.JSONValue | undefined;
3896
+ renderedAst?: {
3897
+ astVersion: 1;
3898
+ root: hono_utils_types.JSONValue;
3899
+ } | {
3900
+ type: "root";
3901
+ children: hono_utils_types.JSONValue[];
3902
+ } | undefined;
3903
+ renderedAstArtifactKey?: string | undefined;
3825
3904
  rendererVersion?: string | undefined;
3826
3905
  parentRevisionId?: string | null | undefined;
3827
3906
  type?: "snapshot" | "incremental" | undefined;
@@ -3965,7 +4044,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
3965
4044
  codeBlockLanguages?: string[] | undefined;
3966
4045
  rawSpaceLinks?: string[] | undefined;
3967
4046
  } | undefined;
3968
- renderedAst?: hono_utils_types.JSONValue | undefined;
4047
+ renderedAst?: {
4048
+ astVersion: 1;
4049
+ root: hono_utils_types.JSONValue;
4050
+ } | {
4051
+ type: "root";
4052
+ children: hono_utils_types.JSONValue[];
4053
+ } | undefined;
4054
+ renderedAstArtifactKey?: string | undefined;
3969
4055
  rendererVersion?: string | undefined;
3970
4056
  parentRevisionId?: string | null | undefined;
3971
4057
  type?: "snapshot" | "incremental" | undefined;
@@ -4103,7 +4189,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
4103
4189
  codeBlockLanguages?: string[] | undefined;
4104
4190
  rawSpaceLinks?: string[] | undefined;
4105
4191
  } | undefined;
4106
- renderedAst?: hono_utils_types.JSONValue | undefined;
4192
+ renderedAst?: {
4193
+ astVersion: 1;
4194
+ root: hono_utils_types.JSONValue;
4195
+ } | {
4196
+ type: "root";
4197
+ children: hono_utils_types.JSONValue[];
4198
+ } | undefined;
4199
+ renderedAstArtifactKey?: string | undefined;
4107
4200
  rendererVersion?: string | undefined;
4108
4201
  parentRevisionId?: string | null | undefined;
4109
4202
  type?: "snapshot" | "incremental" | undefined;
@@ -4166,6 +4259,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
4166
4259
  next: number | null;
4167
4260
  offset: number;
4168
4261
  };
4262
+ total: number;
4169
4263
  portalPage?: {
4170
4264
  _id: string;
4171
4265
  path: string;
@@ -4203,7 +4297,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
4203
4297
  codeBlockLanguages?: string[] | undefined;
4204
4298
  rawSpaceLinks?: string[] | undefined;
4205
4299
  } | undefined;
4206
- renderedAst?: hono_utils_types.JSONValue | undefined;
4300
+ renderedAst?: {
4301
+ astVersion: 1;
4302
+ root: hono_utils_types.JSONValue;
4303
+ } | {
4304
+ type: "root";
4305
+ children: hono_utils_types.JSONValue[];
4306
+ } | undefined;
4307
+ renderedAstArtifactKey?: string | undefined;
4207
4308
  rendererVersion?: string | undefined;
4208
4309
  parentRevisionId?: string | null | undefined;
4209
4310
  type?: "snapshot" | "incremental" | undefined;
@@ -4298,7 +4399,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
4298
4399
  codeBlockLanguages?: string[] | undefined;
4299
4400
  rawSpaceLinks?: string[] | undefined;
4300
4401
  } | undefined;
4301
- renderedAst?: hono_utils_types.JSONValue | undefined;
4402
+ renderedAst?: {
4403
+ astVersion: 1;
4404
+ root: hono_utils_types.JSONValue;
4405
+ } | {
4406
+ type: "root";
4407
+ children: hono_utils_types.JSONValue[];
4408
+ } | undefined;
4409
+ renderedAstArtifactKey?: string | undefined;
4302
4410
  rendererVersion?: string | undefined;
4303
4411
  parentRevisionId?: string | null | undefined;
4304
4412
  type?: "snapshot" | "incremental" | undefined;
@@ -4472,7 +4580,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
4472
4580
  codeBlockLanguages?: string[] | undefined;
4473
4581
  rawSpaceLinks?: string[] | undefined;
4474
4582
  } | undefined;
4475
- renderedAst?: hono_utils_types.JSONValue | undefined;
4583
+ renderedAst?: {
4584
+ astVersion: 1;
4585
+ root: hono_utils_types.JSONValue;
4586
+ } | {
4587
+ type: "root";
4588
+ children: hono_utils_types.JSONValue[];
4589
+ } | undefined;
4590
+ renderedAstArtifactKey?: string | undefined;
4476
4591
  rendererVersion?: string | undefined;
4477
4592
  parentRevisionId?: string | null | undefined;
4478
4593
  type?: "snapshot" | "incremental" | undefined;
@@ -4635,7 +4750,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
4635
4750
  codeBlockLanguages?: string[] | undefined;
4636
4751
  rawSpaceLinks?: string[] | undefined;
4637
4752
  } | undefined;
4638
- renderedAst?: hono_utils_types.JSONValue | undefined;
4753
+ renderedAst?: {
4754
+ astVersion: 1;
4755
+ root: hono_utils_types.JSONValue;
4756
+ } | {
4757
+ type: "root";
4758
+ children: hono_utils_types.JSONValue[];
4759
+ } | undefined;
4760
+ renderedAstArtifactKey?: string | undefined;
4639
4761
  rendererVersion?: string | undefined;
4640
4762
  parentRevisionId?: string | null | undefined;
4641
4763
  type?: "snapshot" | "incremental" | undefined;
@@ -4810,7 +4932,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
4810
4932
  codeBlockLanguages?: string[] | undefined;
4811
4933
  rawSpaceLinks?: string[] | undefined;
4812
4934
  } | undefined;
4813
- renderedAst?: hono_utils_types.JSONValue | undefined;
4935
+ renderedAst?: {
4936
+ astVersion: 1;
4937
+ root: hono_utils_types.JSONValue;
4938
+ } | {
4939
+ type: "root";
4940
+ children: hono_utils_types.JSONValue[];
4941
+ } | undefined;
4942
+ renderedAstArtifactKey?: string | undefined;
4814
4943
  rendererVersion?: string | undefined;
4815
4944
  parentRevisionId?: string | null | undefined;
4816
4945
  type?: "snapshot" | "incremental" | undefined;
@@ -5121,7 +5250,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
5121
5250
  codeBlockLanguages?: string[] | undefined;
5122
5251
  rawSpaceLinks?: string[] | undefined;
5123
5252
  } | undefined;
5124
- renderedAst?: hono_utils_types.JSONValue | undefined;
5253
+ renderedAst?: {
5254
+ astVersion: 1;
5255
+ root: hono_utils_types.JSONValue;
5256
+ } | {
5257
+ type: "root";
5258
+ children: hono_utils_types.JSONValue[];
5259
+ } | undefined;
5260
+ renderedAstArtifactKey?: string | undefined;
5125
5261
  rendererVersion?: string | undefined;
5126
5262
  parentRevisionId?: string | null | undefined;
5127
5263
  type?: "snapshot" | "incremental" | undefined;
@@ -5273,7 +5409,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
5273
5409
  codeBlockLanguages?: string[] | undefined;
5274
5410
  rawSpaceLinks?: string[] | undefined;
5275
5411
  } | undefined;
5276
- renderedAst?: hono_utils_types.JSONValue | undefined;
5412
+ renderedAst?: {
5413
+ astVersion: 1;
5414
+ root: hono_utils_types.JSONValue;
5415
+ } | {
5416
+ type: "root";
5417
+ children: hono_utils_types.JSONValue[];
5418
+ } | undefined;
5419
+ renderedAstArtifactKey?: string | undefined;
5277
5420
  rendererVersion?: string | undefined;
5278
5421
  parentRevisionId?: string | null | undefined;
5279
5422
  type?: "snapshot" | "incremental" | undefined;
@@ -5425,7 +5568,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
5425
5568
  codeBlockLanguages?: string[] | undefined;
5426
5569
  rawSpaceLinks?: string[] | undefined;
5427
5570
  } | undefined;
5428
- renderedAst?: hono_utils_types.JSONValue | undefined;
5571
+ renderedAst?: {
5572
+ astVersion: 1;
5573
+ root: hono_utils_types.JSONValue;
5574
+ } | {
5575
+ type: "root";
5576
+ children: hono_utils_types.JSONValue[];
5577
+ } | undefined;
5578
+ renderedAstArtifactKey?: string | undefined;
5429
5579
  rendererVersion?: string | undefined;
5430
5580
  parentRevisionId?: string | null | undefined;
5431
5581
  type?: "snapshot" | "incremental" | undefined;
@@ -5725,7 +5875,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
5725
5875
  codeBlockLanguages?: string[] | undefined;
5726
5876
  rawSpaceLinks?: string[] | undefined;
5727
5877
  } | undefined;
5728
- renderedAst?: hono_utils_types.JSONValue | undefined;
5878
+ renderedAst?: {
5879
+ astVersion: 1;
5880
+ root: hono_utils_types.JSONValue;
5881
+ } | {
5882
+ type: "root";
5883
+ children: hono_utils_types.JSONValue[];
5884
+ } | undefined;
5885
+ renderedAstArtifactKey?: string | undefined;
5729
5886
  rendererVersion?: string | undefined;
5730
5887
  parentRevisionId?: string | null | undefined;
5731
5888
  type?: "snapshot" | "incremental" | undefined;
@@ -5895,7 +6052,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
5895
6052
  codeBlockLanguages?: string[] | undefined;
5896
6053
  rawSpaceLinks?: string[] | undefined;
5897
6054
  } | undefined;
5898
- renderedAst?: hono_utils_types.JSONValue | undefined;
6055
+ renderedAst?: {
6056
+ astVersion: 1;
6057
+ root: hono_utils_types.JSONValue;
6058
+ } | {
6059
+ type: "root";
6060
+ children: hono_utils_types.JSONValue[];
6061
+ } | undefined;
6062
+ renderedAstArtifactKey?: string | undefined;
5899
6063
  rendererVersion?: string | undefined;
5900
6064
  parentRevisionId?: string | null | undefined;
5901
6065
  type?: "snapshot" | "incremental" | undefined;
@@ -6050,7 +6214,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
6050
6214
  codeBlockLanguages?: string[] | undefined;
6051
6215
  rawSpaceLinks?: string[] | undefined;
6052
6216
  } | undefined;
6053
- renderedAst?: hono_utils_types.JSONValue | undefined;
6217
+ renderedAst?: {
6218
+ astVersion: 1;
6219
+ root: hono_utils_types.JSONValue;
6220
+ } | {
6221
+ type: "root";
6222
+ children: hono_utils_types.JSONValue[];
6223
+ } | undefined;
6224
+ renderedAstArtifactKey?: string | undefined;
6054
6225
  rendererVersion?: string | undefined;
6055
6226
  parentRevisionId?: string | null | undefined;
6056
6227
  type?: "snapshot" | "incremental" | undefined;
@@ -6233,7 +6404,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
6233
6404
  codeBlockLanguages?: string[] | undefined;
6234
6405
  rawSpaceLinks?: string[] | undefined;
6235
6406
  } | undefined;
6236
- renderedAst?: hono_utils_types.JSONValue | undefined;
6407
+ renderedAst?: {
6408
+ astVersion: 1;
6409
+ root: hono_utils_types.JSONValue;
6410
+ } | {
6411
+ type: "root";
6412
+ children: hono_utils_types.JSONValue[];
6413
+ } | undefined;
6414
+ renderedAstArtifactKey?: string | undefined;
6237
6415
  rendererVersion?: string | undefined;
6238
6416
  parentRevisionId?: string | null | undefined;
6239
6417
  type?: "snapshot" | "incremental" | undefined;
@@ -6436,7 +6614,14 @@ declare const pageChain: OpenAPIHono<hono.Env, {
6436
6614
  };
6437
6615
  };
6438
6616
  output: {
6439
- renderedAst: hono_utils_types.JSONValue;
6617
+ renderedAst?: {
6618
+ astVersion: 1;
6619
+ root: hono_utils_types.JSONValue;
6620
+ } | {
6621
+ type: "root";
6622
+ children: hono_utils_types.JSONValue[];
6623
+ } | undefined;
6624
+ renderedAstArtifactKey?: string | undefined;
6440
6625
  };
6441
6626
  outputFormat: "json";
6442
6627
  status: 200;
@@ -7349,6 +7534,24 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7349
7534
  };
7350
7535
  outputFormat: "json";
7351
7536
  status: 413;
7537
+ } | {
7538
+ input: {
7539
+ param: {
7540
+ pageId: string;
7541
+ };
7542
+ } & {
7543
+ form: {
7544
+ file?: any;
7545
+ };
7546
+ };
7547
+ output: {
7548
+ error: {
7549
+ code: "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "FILE_MISSING" | "FILE_TOO_LARGE" | "DISALLOWED_MIME" | "INVALID_ATTACHMENT_ID" | "ATTACHMENT_NOT_FOUND" | "FORBIDDEN_FOR_DELETE" | "UPLOAD_FAILED" | "REMOVE_FAILED";
7550
+ message: string;
7551
+ };
7552
+ };
7553
+ outputFormat: "json";
7554
+ status: 415;
7352
7555
  };
7353
7556
  };
7354
7557
  } & {
@@ -7411,7 +7614,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7411
7614
  };
7412
7615
  };
7413
7616
  output: {
7414
- error: "too_large" | "disallowed_type" | "rate_limited" | "no_permission";
7617
+ error: "DISALLOWED_MIME" | "too_large" | "disallowed_type" | "rate_limited" | "no_permission";
7415
7618
  message: string;
7416
7619
  details?: {
7417
7620
  [x: string]: hono_utils_types.JSONValue;
@@ -7428,7 +7631,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7428
7631
  };
7429
7632
  };
7430
7633
  output: {
7431
- error: "too_large" | "disallowed_type" | "rate_limited" | "no_permission";
7634
+ error: "DISALLOWED_MIME" | "too_large" | "disallowed_type" | "rate_limited" | "no_permission";
7432
7635
  message: string;
7433
7636
  details?: {
7434
7637
  [x: string]: hono_utils_types.JSONValue;
@@ -7445,7 +7648,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7445
7648
  };
7446
7649
  };
7447
7650
  output: {
7448
- error: "too_large" | "disallowed_type" | "rate_limited" | "no_permission";
7651
+ error: "DISALLOWED_MIME" | "too_large" | "disallowed_type" | "rate_limited" | "no_permission";
7449
7652
  message: string;
7450
7653
  details?: {
7451
7654
  [x: string]: hono_utils_types.JSONValue;
@@ -7462,7 +7665,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7462
7665
  };
7463
7666
  };
7464
7667
  output: {
7465
- error: "too_large" | "disallowed_type" | "rate_limited" | "no_permission";
7668
+ error: "DISALLOWED_MIME" | "too_large" | "disallowed_type" | "rate_limited" | "no_permission";
7466
7669
  message: string;
7467
7670
  details?: {
7468
7671
  [x: string]: hono_utils_types.JSONValue;
@@ -7479,7 +7682,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7479
7682
  };
7480
7683
  };
7481
7684
  output: {
7482
- error: "too_large" | "disallowed_type" | "rate_limited" | "no_permission";
7685
+ error: "DISALLOWED_MIME" | "too_large" | "disallowed_type" | "rate_limited" | "no_permission";
7483
7686
  message: string;
7484
7687
  details?: {
7485
7688
  [x: string]: hono_utils_types.JSONValue;
@@ -7788,7 +7991,14 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
7788
7991
  codeBlockLanguages?: string[] | undefined;
7789
7992
  rawSpaceLinks?: string[] | undefined;
7790
7993
  } | undefined;
7791
- renderedAst?: hono_utils_types.JSONValue | undefined;
7994
+ renderedAst?: {
7995
+ astVersion: 1;
7996
+ root: hono_utils_types.JSONValue;
7997
+ } | {
7998
+ type: "root";
7999
+ children: hono_utils_types.JSONValue[];
8000
+ } | undefined;
8001
+ renderedAstArtifactKey?: string | undefined;
7792
8002
  rendererVersion?: string | undefined;
7793
8003
  parentRevisionId?: string | null | undefined;
7794
8004
  type?: "snapshot" | "incremental" | undefined;
@@ -8255,8 +8465,8 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
8255
8465
  *
8256
8466
  * - `adminSettingsContractApp`: the 6 read+write settings sub-contracts
8257
8467
  * (app / auth / security / mail / storage / search) = 11 routes.
8258
- * - `adminUsersPluginsContractApp`: the larger users (10) + plugins (5)
8259
- * sub-contracts = 15 routes.
8468
+ * - `adminUsersPluginsContractApp`: the larger users (10) + plugins (6)
8469
+ * sub-contracts = 16 routes.
8260
8470
  *
8261
8471
  * Phase 6 (TS2589 escape hatch removal) — these chains are no longer
8262
8472
  * concatenated onto a single `contractApp` via `.route('/', sub)`.
@@ -10504,6 +10714,50 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
10504
10714
  status: 422;
10505
10715
  };
10506
10716
  };
10717
+ } & {
10718
+ "/admin/plugins/readiness": {
10719
+ $get: {
10720
+ input: {};
10721
+ output: {
10722
+ error: {
10723
+ code: "AUTHENTICATION_REQUIRED";
10724
+ message: "Authentication is required";
10725
+ redirectTo?: string | undefined;
10726
+ };
10727
+ };
10728
+ outputFormat: "json";
10729
+ status: 401;
10730
+ } | {
10731
+ input: {};
10732
+ output: {
10733
+ error: {
10734
+ code: "ADMIN_REQUIRED";
10735
+ message: "Admin permission required";
10736
+ redirectTo?: string | undefined;
10737
+ };
10738
+ };
10739
+ outputFormat: "json";
10740
+ status: 403;
10741
+ } | {
10742
+ input: {};
10743
+ output: {
10744
+ issues: {
10745
+ name: string;
10746
+ adminPlacement: {
10747
+ section: "search" | "settings" | "shared" | "storage" | "mail" | "notification" | "auth" | "renderer" | "platform";
10748
+ label: string;
10749
+ icon?: string | undefined;
10750
+ };
10751
+ fields: {
10752
+ name: string;
10753
+ configured: false;
10754
+ }[];
10755
+ }[];
10756
+ };
10757
+ outputFormat: "json";
10758
+ status: 200;
10759
+ };
10760
+ };
10507
10761
  } & {
10508
10762
  "/admin/plugins/render-cache/clear-all": {
10509
10763
  $post: {
@@ -15648,9 +15902,9 @@ declare const getProfileRoute: {
15648
15902
  ja: "ja";
15649
15903
  }>;
15650
15904
  theme: z.ZodEnum<{
15651
- system: "system";
15652
15905
  light: "light";
15653
15906
  dark: "dark";
15907
+ system: "system";
15654
15908
  }>;
15655
15909
  image: z.ZodNullable<z.ZodString>;
15656
15910
  introduction: z.ZodOptional<z.ZodString>;
@@ -15720,9 +15974,9 @@ declare const updateProfileRoute: {
15720
15974
  ja: "ja";
15721
15975
  }>;
15722
15976
  theme: z.ZodEnum<{
15723
- system: "system";
15724
15977
  light: "light";
15725
15978
  dark: "dark";
15979
+ system: "system";
15726
15980
  }>;
15727
15981
  image: z.ZodNullable<z.ZodString>;
15728
15982
  introduction: z.ZodOptional<z.ZodString>;
@@ -15778,9 +16032,9 @@ declare const updateThemeRoute: {
15778
16032
  'application/json': {
15779
16033
  schema: z.ZodObject<{
15780
16034
  theme: z.ZodEnum<{
15781
- system: "system";
15782
16035
  light: "light";
15783
16036
  dark: "dark";
16037
+ system: "system";
15784
16038
  }>;
15785
16039
  }, z.core.$strip>;
15786
16040
  };
@@ -15795,9 +16049,9 @@ declare const updateThemeRoute: {
15795
16049
  schema: z.ZodObject<{
15796
16050
  status: z.ZodLiteral<"ok">;
15797
16051
  theme: z.ZodEnum<{
15798
- system: "system";
15799
16052
  light: "light";
15800
16053
  dark: "dark";
16054
+ system: "system";
15801
16055
  }>;
15802
16056
  }, z.core.$strip>;
15803
16057
  };
@@ -16063,7 +16317,14 @@ declare const recentlyViewedPagesRoute: {
16063
16317
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
16064
16318
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
16065
16319
  }, z.core.$strip>>;
16066
- renderedAst: z.ZodOptional<z.ZodUnknown>;
16320
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
16321
+ astVersion: z.ZodLiteral<1>;
16322
+ root: z.ZodUnknown;
16323
+ }, z.core.$strip>, z.ZodObject<{
16324
+ type: z.ZodLiteral<"root">;
16325
+ children: z.ZodArray<z.ZodUnknown>;
16326
+ }, z.core.$strip>]>>;
16327
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
16067
16328
  rendererVersion: z.ZodOptional<z.ZodString>;
16068
16329
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16069
16330
  type: z.ZodOptional<z.ZodEnum<{
@@ -16193,9 +16454,9 @@ declare const meRoutes: {
16193
16454
  ja: "ja";
16194
16455
  }>;
16195
16456
  theme: z.ZodEnum<{
16196
- system: "system";
16197
16457
  light: "light";
16198
16458
  dark: "dark";
16459
+ system: "system";
16199
16460
  }>;
16200
16461
  image: z.ZodNullable<z.ZodString>;
16201
16462
  introduction: z.ZodOptional<z.ZodString>;
@@ -16265,9 +16526,9 @@ declare const meRoutes: {
16265
16526
  ja: "ja";
16266
16527
  }>;
16267
16528
  theme: z.ZodEnum<{
16268
- system: "system";
16269
16529
  light: "light";
16270
16530
  dark: "dark";
16531
+ system: "system";
16271
16532
  }>;
16272
16533
  image: z.ZodNullable<z.ZodString>;
16273
16534
  introduction: z.ZodOptional<z.ZodString>;
@@ -16323,9 +16584,9 @@ declare const meRoutes: {
16323
16584
  'application/json': {
16324
16585
  schema: z.ZodObject<{
16325
16586
  theme: z.ZodEnum<{
16326
- system: "system";
16327
16587
  light: "light";
16328
16588
  dark: "dark";
16589
+ system: "system";
16329
16590
  }>;
16330
16591
  }, z.core.$strip>;
16331
16592
  };
@@ -16340,9 +16601,9 @@ declare const meRoutes: {
16340
16601
  schema: z.ZodObject<{
16341
16602
  status: z.ZodLiteral<"ok">;
16342
16603
  theme: z.ZodEnum<{
16343
- system: "system";
16344
16604
  light: "light";
16345
16605
  dark: "dark";
16606
+ system: "system";
16346
16607
  }>;
16347
16608
  }, z.core.$strip>;
16348
16609
  };
@@ -16608,7 +16869,14 @@ declare const meRoutes: {
16608
16869
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
16609
16870
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
16610
16871
  }, z.core.$strip>>;
16611
- renderedAst: z.ZodOptional<z.ZodUnknown>;
16872
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
16873
+ astVersion: z.ZodLiteral<1>;
16874
+ root: z.ZodUnknown;
16875
+ }, z.core.$strip>, z.ZodObject<{
16876
+ type: z.ZodLiteral<"root">;
16877
+ children: z.ZodArray<z.ZodUnknown>;
16878
+ }, z.core.$strip>]>>;
16879
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
16612
16880
  rendererVersion: z.ZodOptional<z.ZodString>;
16613
16881
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16614
16882
  type: z.ZodOptional<z.ZodEnum<{
@@ -18240,6 +18508,8 @@ declare const getUserPageRoute: {
18240
18508
  }, z.core.$strip>;
18241
18509
  createdPagesCount: z.ZodNumber;
18242
18510
  bookmarksCount: z.ZodNumber;
18511
+ likesCount: z.ZodNumber;
18512
+ commentsCount: z.ZodNumber;
18243
18513
  recentPages: z.ZodOptional<z.ZodArray<z.ZodObject<{
18244
18514
  _id: z.ZodString;
18245
18515
  path: z.ZodString;
@@ -18275,7 +18545,14 @@ declare const getUserPageRoute: {
18275
18545
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
18276
18546
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
18277
18547
  }, z.core.$strip>>;
18278
- renderedAst: z.ZodOptional<z.ZodUnknown>;
18548
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
18549
+ astVersion: z.ZodLiteral<1>;
18550
+ root: z.ZodUnknown;
18551
+ }, z.core.$strip>, z.ZodObject<{
18552
+ type: z.ZodLiteral<"root">;
18553
+ children: z.ZodArray<z.ZodUnknown>;
18554
+ }, z.core.$strip>]>>;
18555
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
18279
18556
  rendererVersion: z.ZodOptional<z.ZodString>;
18280
18557
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18281
18558
  type: z.ZodOptional<z.ZodEnum<{
@@ -18383,7 +18660,14 @@ declare const getUserPageRoute: {
18383
18660
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
18384
18661
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
18385
18662
  }, z.core.$strip>>;
18386
- renderedAst: z.ZodOptional<z.ZodUnknown>;
18663
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
18664
+ astVersion: z.ZodLiteral<1>;
18665
+ root: z.ZodUnknown;
18666
+ }, z.core.$strip>, z.ZodObject<{
18667
+ type: z.ZodLiteral<"root">;
18668
+ children: z.ZodArray<z.ZodUnknown>;
18669
+ }, z.core.$strip>]>>;
18670
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
18387
18671
  rendererVersion: z.ZodOptional<z.ZodString>;
18388
18672
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18389
18673
  type: z.ZodOptional<z.ZodEnum<{
@@ -18582,7 +18866,14 @@ declare const getUserBookmarksRoute: {
18582
18866
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
18583
18867
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
18584
18868
  }, z.core.$strip>>;
18585
- renderedAst: z.ZodOptional<z.ZodUnknown>;
18869
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
18870
+ astVersion: z.ZodLiteral<1>;
18871
+ root: z.ZodUnknown;
18872
+ }, z.core.$strip>, z.ZodObject<{
18873
+ type: z.ZodLiteral<"root">;
18874
+ children: z.ZodArray<z.ZodUnknown>;
18875
+ }, z.core.$strip>]>>;
18876
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
18586
18877
  rendererVersion: z.ZodOptional<z.ZodString>;
18587
18878
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18588
18879
  type: z.ZodOptional<z.ZodEnum<{
@@ -18785,7 +19076,14 @@ declare const getUserPagesRoute: {
18785
19076
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
18786
19077
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
18787
19078
  }, z.core.$strip>>;
18788
- renderedAst: z.ZodOptional<z.ZodUnknown>;
19079
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
19080
+ astVersion: z.ZodLiteral<1>;
19081
+ root: z.ZodUnknown;
19082
+ }, z.core.$strip>, z.ZodObject<{
19083
+ type: z.ZodLiteral<"root">;
19084
+ children: z.ZodArray<z.ZodUnknown>;
19085
+ }, z.core.$strip>]>>;
19086
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
18789
19087
  rendererVersion: z.ZodOptional<z.ZodString>;
18790
19088
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18791
19089
  type: z.ZodOptional<z.ZodEnum<{
@@ -18980,7 +19278,14 @@ declare const getUserSubpagesRoute: {
18980
19278
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
18981
19279
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
18982
19280
  }, z.core.$strip>>;
18983
- renderedAst: z.ZodOptional<z.ZodUnknown>;
19281
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
19282
+ astVersion: z.ZodLiteral<1>;
19283
+ root: z.ZodUnknown;
19284
+ }, z.core.$strip>, z.ZodObject<{
19285
+ type: z.ZodLiteral<"root">;
19286
+ children: z.ZodArray<z.ZodUnknown>;
19287
+ }, z.core.$strip>]>>;
19288
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
18984
19289
  rendererVersion: z.ZodOptional<z.ZodString>;
18985
19290
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18986
19291
  type: z.ZodOptional<z.ZodEnum<{
@@ -19246,6 +19551,8 @@ declare const userRoutes: {
19246
19551
  }, z.core.$strip>;
19247
19552
  createdPagesCount: z.ZodNumber;
19248
19553
  bookmarksCount: z.ZodNumber;
19554
+ likesCount: z.ZodNumber;
19555
+ commentsCount: z.ZodNumber;
19249
19556
  recentPages: z.ZodOptional<z.ZodArray<z.ZodObject<{
19250
19557
  _id: z.ZodString;
19251
19558
  path: z.ZodString;
@@ -19281,7 +19588,14 @@ declare const userRoutes: {
19281
19588
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
19282
19589
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
19283
19590
  }, z.core.$strip>>;
19284
- renderedAst: z.ZodOptional<z.ZodUnknown>;
19591
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
19592
+ astVersion: z.ZodLiteral<1>;
19593
+ root: z.ZodUnknown;
19594
+ }, z.core.$strip>, z.ZodObject<{
19595
+ type: z.ZodLiteral<"root">;
19596
+ children: z.ZodArray<z.ZodUnknown>;
19597
+ }, z.core.$strip>]>>;
19598
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
19285
19599
  rendererVersion: z.ZodOptional<z.ZodString>;
19286
19600
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19287
19601
  type: z.ZodOptional<z.ZodEnum<{
@@ -19389,7 +19703,14 @@ declare const userRoutes: {
19389
19703
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
19390
19704
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
19391
19705
  }, z.core.$strip>>;
19392
- renderedAst: z.ZodOptional<z.ZodUnknown>;
19706
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
19707
+ astVersion: z.ZodLiteral<1>;
19708
+ root: z.ZodUnknown;
19709
+ }, z.core.$strip>, z.ZodObject<{
19710
+ type: z.ZodLiteral<"root">;
19711
+ children: z.ZodArray<z.ZodUnknown>;
19712
+ }, z.core.$strip>]>>;
19713
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
19393
19714
  rendererVersion: z.ZodOptional<z.ZodString>;
19394
19715
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19395
19716
  type: z.ZodOptional<z.ZodEnum<{
@@ -19588,7 +19909,14 @@ declare const userRoutes: {
19588
19909
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
19589
19910
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
19590
19911
  }, z.core.$strip>>;
19591
- renderedAst: z.ZodOptional<z.ZodUnknown>;
19912
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
19913
+ astVersion: z.ZodLiteral<1>;
19914
+ root: z.ZodUnknown;
19915
+ }, z.core.$strip>, z.ZodObject<{
19916
+ type: z.ZodLiteral<"root">;
19917
+ children: z.ZodArray<z.ZodUnknown>;
19918
+ }, z.core.$strip>]>>;
19919
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
19592
19920
  rendererVersion: z.ZodOptional<z.ZodString>;
19593
19921
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19594
19922
  type: z.ZodOptional<z.ZodEnum<{
@@ -19791,7 +20119,14 @@ declare const userRoutes: {
19791
20119
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
19792
20120
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
19793
20121
  }, z.core.$strip>>;
19794
- renderedAst: z.ZodOptional<z.ZodUnknown>;
20122
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
20123
+ astVersion: z.ZodLiteral<1>;
20124
+ root: z.ZodUnknown;
20125
+ }, z.core.$strip>, z.ZodObject<{
20126
+ type: z.ZodLiteral<"root">;
20127
+ children: z.ZodArray<z.ZodUnknown>;
20128
+ }, z.core.$strip>]>>;
20129
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
19795
20130
  rendererVersion: z.ZodOptional<z.ZodString>;
19796
20131
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19797
20132
  type: z.ZodOptional<z.ZodEnum<{
@@ -19974,7 +20309,14 @@ declare const userRoutes: {
19974
20309
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
19975
20310
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
19976
20311
  }, z.core.$strip>>;
19977
- renderedAst: z.ZodOptional<z.ZodUnknown>;
20312
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
20313
+ astVersion: z.ZodLiteral<1>;
20314
+ root: z.ZodUnknown;
20315
+ }, z.core.$strip>, z.ZodObject<{
20316
+ type: z.ZodLiteral<"root">;
20317
+ children: z.ZodArray<z.ZodUnknown>;
20318
+ }, z.core.$strip>]>>;
20319
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
19978
20320
  rendererVersion: z.ZodOptional<z.ZodString>;
19979
20321
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19980
20322
  type: z.ZodOptional<z.ZodEnum<{
@@ -20258,7 +20600,14 @@ declare const getBookmarkRoute: {
20258
20600
  codeBlockLanguages: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
20259
20601
  rawSpaceLinks: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
20260
20602
  }, zod_v4_core.$strip>>;
20261
- renderedAst: zod.ZodOptional<zod.ZodUnknown>;
20603
+ renderedAst: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
20604
+ astVersion: zod.ZodLiteral<1>;
20605
+ root: zod.ZodUnknown;
20606
+ }, zod_v4_core.$strip>, zod.ZodObject<{
20607
+ type: zod.ZodLiteral<"root">;
20608
+ children: zod.ZodArray<zod.ZodUnknown>;
20609
+ }, zod_v4_core.$strip>]>>;
20610
+ renderedAstArtifactKey: zod.ZodOptional<zod.ZodString>;
20262
20611
  rendererVersion: zod.ZodOptional<zod.ZodString>;
20263
20612
  parentRevisionId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
20264
20613
  type: zod.ZodOptional<zod.ZodEnum<{
@@ -20454,7 +20803,14 @@ declare const listMyBookmarksRoute: {
20454
20803
  codeBlockLanguages: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
20455
20804
  rawSpaceLinks: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
20456
20805
  }, zod_v4_core.$strip>>;
20457
- renderedAst: zod.ZodOptional<zod.ZodUnknown>;
20806
+ renderedAst: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
20807
+ astVersion: zod.ZodLiteral<1>;
20808
+ root: zod.ZodUnknown;
20809
+ }, zod_v4_core.$strip>, zod.ZodObject<{
20810
+ type: zod.ZodLiteral<"root">;
20811
+ children: zod.ZodArray<zod.ZodUnknown>;
20812
+ }, zod_v4_core.$strip>]>>;
20813
+ renderedAstArtifactKey: zod.ZodOptional<zod.ZodString>;
20458
20814
  rendererVersion: zod.ZodOptional<zod.ZodString>;
20459
20815
  parentRevisionId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
20460
20816
  type: zod.ZodOptional<zod.ZodEnum<{
@@ -20648,7 +21004,14 @@ declare const addBookmarkRoute: {
20648
21004
  codeBlockLanguages: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
20649
21005
  rawSpaceLinks: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
20650
21006
  }, zod_v4_core.$strip>>;
20651
- renderedAst: zod.ZodOptional<zod.ZodUnknown>;
21007
+ renderedAst: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
21008
+ astVersion: zod.ZodLiteral<1>;
21009
+ root: zod.ZodUnknown;
21010
+ }, zod_v4_core.$strip>, zod.ZodObject<{
21011
+ type: zod.ZodLiteral<"root">;
21012
+ children: zod.ZodArray<zod.ZodUnknown>;
21013
+ }, zod_v4_core.$strip>]>>;
21014
+ renderedAstArtifactKey: zod.ZodOptional<zod.ZodString>;
20652
21015
  rendererVersion: zod.ZodOptional<zod.ZodString>;
20653
21016
  parentRevisionId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
20654
21017
  type: zod.ZodOptional<zod.ZodEnum<{
@@ -20918,7 +21281,14 @@ declare const bookmarkRoutes: {
20918
21281
  codeBlockLanguages: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
20919
21282
  rawSpaceLinks: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
20920
21283
  }, zod_v4_core.$strip>>;
20921
- renderedAst: zod.ZodOptional<zod.ZodUnknown>;
21284
+ renderedAst: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
21285
+ astVersion: zod.ZodLiteral<1>;
21286
+ root: zod.ZodUnknown;
21287
+ }, zod_v4_core.$strip>, zod.ZodObject<{
21288
+ type: zod.ZodLiteral<"root">;
21289
+ children: zod.ZodArray<zod.ZodUnknown>;
21290
+ }, zod_v4_core.$strip>]>>;
21291
+ renderedAstArtifactKey: zod.ZodOptional<zod.ZodString>;
20922
21292
  rendererVersion: zod.ZodOptional<zod.ZodString>;
20923
21293
  parentRevisionId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
20924
21294
  type: zod.ZodOptional<zod.ZodEnum<{
@@ -21114,7 +21484,14 @@ declare const bookmarkRoutes: {
21114
21484
  codeBlockLanguages: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
21115
21485
  rawSpaceLinks: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
21116
21486
  }, zod_v4_core.$strip>>;
21117
- renderedAst: zod.ZodOptional<zod.ZodUnknown>;
21487
+ renderedAst: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
21488
+ astVersion: zod.ZodLiteral<1>;
21489
+ root: zod.ZodUnknown;
21490
+ }, zod_v4_core.$strip>, zod.ZodObject<{
21491
+ type: zod.ZodLiteral<"root">;
21492
+ children: zod.ZodArray<zod.ZodUnknown>;
21493
+ }, zod_v4_core.$strip>]>>;
21494
+ renderedAstArtifactKey: zod.ZodOptional<zod.ZodString>;
21118
21495
  rendererVersion: zod.ZodOptional<zod.ZodString>;
21119
21496
  parentRevisionId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
21120
21497
  type: zod.ZodOptional<zod.ZodEnum<{
@@ -21308,7 +21685,14 @@ declare const bookmarkRoutes: {
21308
21685
  codeBlockLanguages: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
21309
21686
  rawSpaceLinks: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
21310
21687
  }, zod_v4_core.$strip>>;
21311
- renderedAst: zod.ZodOptional<zod.ZodUnknown>;
21688
+ renderedAst: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
21689
+ astVersion: zod.ZodLiteral<1>;
21690
+ root: zod.ZodUnknown;
21691
+ }, zod_v4_core.$strip>, zod.ZodObject<{
21692
+ type: zod.ZodLiteral<"root">;
21693
+ children: zod.ZodArray<zod.ZodUnknown>;
21694
+ }, zod_v4_core.$strip>]>>;
21695
+ renderedAstArtifactKey: zod.ZodOptional<zod.ZodString>;
21312
21696
  rendererVersion: zod.ZodOptional<zod.ZodString>;
21313
21697
  parentRevisionId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
21314
21698
  type: zod.ZodOptional<zod.ZodEnum<{
@@ -22450,7 +22834,14 @@ declare const getRevisionsRoute: {
22450
22834
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
22451
22835
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
22452
22836
  }, z.core.$strip>>;
22453
- renderedAst: z.ZodOptional<z.ZodUnknown>;
22837
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
22838
+ astVersion: z.ZodLiteral<1>;
22839
+ root: z.ZodUnknown;
22840
+ }, z.core.$strip>, z.ZodObject<{
22841
+ type: z.ZodLiteral<"root">;
22842
+ children: z.ZodArray<z.ZodUnknown>;
22843
+ }, z.core.$strip>]>>;
22844
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
22454
22845
  rendererVersion: z.ZodOptional<z.ZodString>;
22455
22846
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22456
22847
  type: z.ZodOptional<z.ZodEnum<{
@@ -22581,7 +22972,14 @@ declare const getRevisionRoute: {
22581
22972
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
22582
22973
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
22583
22974
  }, z.core.$strip>>;
22584
- renderedAst: z.ZodOptional<z.ZodUnknown>;
22975
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
22976
+ astVersion: z.ZodLiteral<1>;
22977
+ root: z.ZodUnknown;
22978
+ }, z.core.$strip>, z.ZodObject<{
22979
+ type: z.ZodLiteral<"root">;
22980
+ children: z.ZodArray<z.ZodUnknown>;
22981
+ }, z.core.$strip>]>>;
22982
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
22585
22983
  rendererVersion: z.ZodOptional<z.ZodString>;
22586
22984
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22587
22985
  type: z.ZodOptional<z.ZodEnum<{
@@ -22826,7 +23224,14 @@ declare const revisionRoutes: {
22826
23224
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
22827
23225
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
22828
23226
  }, z.core.$strip>>;
22829
- renderedAst: z.ZodOptional<z.ZodUnknown>;
23227
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
23228
+ astVersion: z.ZodLiteral<1>;
23229
+ root: z.ZodUnknown;
23230
+ }, z.core.$strip>, z.ZodObject<{
23231
+ type: z.ZodLiteral<"root">;
23232
+ children: z.ZodArray<z.ZodUnknown>;
23233
+ }, z.core.$strip>]>>;
23234
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
22830
23235
  rendererVersion: z.ZodOptional<z.ZodString>;
22831
23236
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22832
23237
  type: z.ZodOptional<z.ZodEnum<{
@@ -22957,7 +23362,14 @@ declare const revisionRoutes: {
22957
23362
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
22958
23363
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
22959
23364
  }, z.core.$strip>>;
22960
- renderedAst: z.ZodOptional<z.ZodUnknown>;
23365
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
23366
+ astVersion: z.ZodLiteral<1>;
23367
+ root: z.ZodUnknown;
23368
+ }, z.core.$strip>, z.ZodObject<{
23369
+ type: z.ZodLiteral<"root">;
23370
+ children: z.ZodArray<z.ZodUnknown>;
23371
+ }, z.core.$strip>]>>;
23372
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
22961
23373
  rendererVersion: z.ZodOptional<z.ZodString>;
22962
23374
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22963
23375
  type: z.ZodOptional<z.ZodEnum<{
@@ -23396,7 +23808,7 @@ declare const openNotificationRoute: {
23396
23808
  getRoutingPath(): "/notifications/:id/open";
23397
23809
  };
23398
23810
  /**
23399
- * GET /api/v2/notifications/token
23811
+ * GET /api/notifications/token
23400
23812
  *
23401
23813
  * Mints the short-lived JWT a browser presents on the
23402
23814
  * `/notifications/<userId>` WebSocket handshake. The notifications
@@ -23969,7 +24381,14 @@ declare const getPageRoute: {
23969
24381
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
23970
24382
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
23971
24383
  }, z.core.$strip>>;
23972
- renderedAst: z.ZodOptional<z.ZodUnknown>;
24384
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
24385
+ astVersion: z.ZodLiteral<1>;
24386
+ root: z.ZodUnknown;
24387
+ }, z.core.$strip>, z.ZodObject<{
24388
+ type: z.ZodLiteral<"root">;
24389
+ children: z.ZodArray<z.ZodUnknown>;
24390
+ }, z.core.$strip>]>>;
24391
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
23973
24392
  rendererVersion: z.ZodOptional<z.ZodString>;
23974
24393
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23975
24394
  type: z.ZodOptional<z.ZodEnum<{
@@ -24149,7 +24568,14 @@ declare const listPagesRoute: {
24149
24568
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
24150
24569
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
24151
24570
  }, z.core.$strip>>;
24152
- renderedAst: z.ZodOptional<z.ZodUnknown>;
24571
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
24572
+ astVersion: z.ZodLiteral<1>;
24573
+ root: z.ZodUnknown;
24574
+ }, z.core.$strip>, z.ZodObject<{
24575
+ type: z.ZodLiteral<"root">;
24576
+ children: z.ZodArray<z.ZodUnknown>;
24577
+ }, z.core.$strip>]>>;
24578
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
24153
24579
  rendererVersion: z.ZodOptional<z.ZodString>;
24154
24580
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24155
24581
  type: z.ZodOptional<z.ZodEnum<{
@@ -24260,7 +24686,14 @@ declare const listPagesRoute: {
24260
24686
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
24261
24687
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
24262
24688
  }, z.core.$strip>>;
24263
- renderedAst: z.ZodOptional<z.ZodUnknown>;
24689
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
24690
+ astVersion: z.ZodLiteral<1>;
24691
+ root: z.ZodUnknown;
24692
+ }, z.core.$strip>, z.ZodObject<{
24693
+ type: z.ZodLiteral<"root">;
24694
+ children: z.ZodArray<z.ZodUnknown>;
24695
+ }, z.core.$strip>]>>;
24696
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
24264
24697
  rendererVersion: z.ZodOptional<z.ZodString>;
24265
24698
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24266
24699
  type: z.ZodOptional<z.ZodEnum<{
@@ -24366,7 +24799,14 @@ declare const listPagesRoute: {
24366
24799
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
24367
24800
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
24368
24801
  }, z.core.$strip>>;
24369
- renderedAst: z.ZodOptional<z.ZodUnknown>;
24802
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
24803
+ astVersion: z.ZodLiteral<1>;
24804
+ root: z.ZodUnknown;
24805
+ }, z.core.$strip>, z.ZodObject<{
24806
+ type: z.ZodLiteral<"root">;
24807
+ children: z.ZodArray<z.ZodUnknown>;
24808
+ }, z.core.$strip>]>>;
24809
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
24370
24810
  rendererVersion: z.ZodOptional<z.ZodString>;
24371
24811
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24372
24812
  type: z.ZodOptional<z.ZodEnum<{
@@ -24437,6 +24877,7 @@ declare const listPagesRoute: {
24437
24877
  likerCount: z.ZodOptional<z.ZodNumber>;
24438
24878
  seenUsersCount: z.ZodOptional<z.ZodNumber>;
24439
24879
  }, z.core.$strip>>>;
24880
+ total: z.ZodNumber;
24440
24881
  }, z.core.$strip>;
24441
24882
  };
24442
24883
  };
@@ -24579,7 +25020,14 @@ declare const createPageRoute: {
24579
25020
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
24580
25021
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
24581
25022
  }, z.core.$strip>>;
24582
- renderedAst: z.ZodOptional<z.ZodUnknown>;
25023
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
25024
+ astVersion: z.ZodLiteral<1>;
25025
+ root: z.ZodUnknown;
25026
+ }, z.core.$strip>, z.ZodObject<{
25027
+ type: z.ZodLiteral<"root">;
25028
+ children: z.ZodArray<z.ZodUnknown>;
25029
+ }, z.core.$strip>]>>;
25030
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
24583
25031
  rendererVersion: z.ZodOptional<z.ZodString>;
24584
25032
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24585
25033
  type: z.ZodOptional<z.ZodEnum<{
@@ -24748,7 +25196,14 @@ declare const updatePageRoute: {
24748
25196
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
24749
25197
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
24750
25198
  }, z.core.$strip>>;
24751
- renderedAst: z.ZodOptional<z.ZodUnknown>;
25199
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
25200
+ astVersion: z.ZodLiteral<1>;
25201
+ root: z.ZodUnknown;
25202
+ }, z.core.$strip>, z.ZodObject<{
25203
+ type: z.ZodLiteral<"root">;
25204
+ children: z.ZodArray<z.ZodUnknown>;
25205
+ }, z.core.$strip>]>>;
25206
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
24752
25207
  rendererVersion: z.ZodOptional<z.ZodString>;
24753
25208
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24754
25209
  type: z.ZodOptional<z.ZodEnum<{
@@ -24941,7 +25396,14 @@ declare const setPageGrantRoute: {
24941
25396
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
24942
25397
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
24943
25398
  }, z.core.$strip>>;
24944
- renderedAst: z.ZodOptional<z.ZodUnknown>;
25399
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
25400
+ astVersion: z.ZodLiteral<1>;
25401
+ root: z.ZodUnknown;
25402
+ }, z.core.$strip>, z.ZodObject<{
25403
+ type: z.ZodLiteral<"root">;
25404
+ children: z.ZodArray<z.ZodUnknown>;
25405
+ }, z.core.$strip>]>>;
25406
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
24945
25407
  rendererVersion: z.ZodOptional<z.ZodString>;
24946
25408
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24947
25409
  type: z.ZodOptional<z.ZodEnum<{
@@ -25299,7 +25761,14 @@ declare const likePageRoute: {
25299
25761
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
25300
25762
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
25301
25763
  }, z.core.$strip>>;
25302
- renderedAst: z.ZodOptional<z.ZodUnknown>;
25764
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
25765
+ astVersion: z.ZodLiteral<1>;
25766
+ root: z.ZodUnknown;
25767
+ }, z.core.$strip>, z.ZodObject<{
25768
+ type: z.ZodLiteral<"root">;
25769
+ children: z.ZodArray<z.ZodUnknown>;
25770
+ }, z.core.$strip>]>>;
25771
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
25303
25772
  rendererVersion: z.ZodOptional<z.ZodString>;
25304
25773
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25305
25774
  type: z.ZodOptional<z.ZodEnum<{
@@ -25478,7 +25947,14 @@ declare const unlikePageRoute: {
25478
25947
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
25479
25948
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
25480
25949
  }, z.core.$strip>>;
25481
- renderedAst: z.ZodOptional<z.ZodUnknown>;
25950
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
25951
+ astVersion: z.ZodLiteral<1>;
25952
+ root: z.ZodUnknown;
25953
+ }, z.core.$strip>, z.ZodObject<{
25954
+ type: z.ZodLiteral<"root">;
25955
+ children: z.ZodArray<z.ZodUnknown>;
25956
+ }, z.core.$strip>]>>;
25957
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
25482
25958
  rendererVersion: z.ZodOptional<z.ZodString>;
25483
25959
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25484
25960
  type: z.ZodOptional<z.ZodEnum<{
@@ -25677,7 +26153,14 @@ declare const claimPageLinkAccessRoute: {
25677
26153
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
25678
26154
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
25679
26155
  }, z.core.$strip>>;
25680
- renderedAst: z.ZodOptional<z.ZodUnknown>;
26156
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
26157
+ astVersion: z.ZodLiteral<1>;
26158
+ root: z.ZodUnknown;
26159
+ }, z.core.$strip>, z.ZodObject<{
26160
+ type: z.ZodLiteral<"root">;
26161
+ children: z.ZodArray<z.ZodUnknown>;
26162
+ }, z.core.$strip>]>>;
26163
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
25681
26164
  rendererVersion: z.ZodOptional<z.ZodString>;
25682
26165
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25683
26166
  type: z.ZodOptional<z.ZodEnum<{
@@ -26015,7 +26498,14 @@ declare const deletePageRoute: {
26015
26498
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
26016
26499
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
26017
26500
  }, z.core.$strip>>;
26018
- renderedAst: z.ZodOptional<z.ZodUnknown>;
26501
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
26502
+ astVersion: z.ZodLiteral<1>;
26503
+ root: z.ZodUnknown;
26504
+ }, z.core.$strip>, z.ZodObject<{
26505
+ type: z.ZodLiteral<"root">;
26506
+ children: z.ZodArray<z.ZodUnknown>;
26507
+ }, z.core.$strip>]>>;
26508
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
26019
26509
  rendererVersion: z.ZodOptional<z.ZodString>;
26020
26510
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26021
26511
  type: z.ZodOptional<z.ZodEnum<{
@@ -26207,7 +26697,14 @@ declare const revertDeletedPageRoute: {
26207
26697
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
26208
26698
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
26209
26699
  }, z.core.$strip>>;
26210
- renderedAst: z.ZodOptional<z.ZodUnknown>;
26700
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
26701
+ astVersion: z.ZodLiteral<1>;
26702
+ root: z.ZodUnknown;
26703
+ }, z.core.$strip>, z.ZodObject<{
26704
+ type: z.ZodLiteral<"root">;
26705
+ children: z.ZodArray<z.ZodUnknown>;
26706
+ }, z.core.$strip>]>>;
26707
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
26211
26708
  rendererVersion: z.ZodOptional<z.ZodString>;
26212
26709
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26213
26710
  type: z.ZodOptional<z.ZodEnum<{
@@ -26387,7 +26884,14 @@ declare const revertToRevisionRoute: {
26387
26884
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
26388
26885
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
26389
26886
  }, z.core.$strip>>;
26390
- renderedAst: z.ZodOptional<z.ZodUnknown>;
26887
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
26888
+ astVersion: z.ZodLiteral<1>;
26889
+ root: z.ZodUnknown;
26890
+ }, z.core.$strip>, z.ZodObject<{
26891
+ type: z.ZodLiteral<"root">;
26892
+ children: z.ZodArray<z.ZodUnknown>;
26893
+ }, z.core.$strip>]>>;
26894
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
26391
26895
  rendererVersion: z.ZodOptional<z.ZodString>;
26392
26896
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26393
26897
  type: z.ZodOptional<z.ZodEnum<{
@@ -26570,7 +27074,14 @@ declare const renamePageRoute: {
26570
27074
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
26571
27075
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
26572
27076
  }, z.core.$strip>>;
26573
- renderedAst: z.ZodOptional<z.ZodUnknown>;
27077
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
27078
+ astVersion: z.ZodLiteral<1>;
27079
+ root: z.ZodUnknown;
27080
+ }, z.core.$strip>, z.ZodObject<{
27081
+ type: z.ZodLiteral<"root">;
27082
+ children: z.ZodArray<z.ZodUnknown>;
27083
+ }, z.core.$strip>]>>;
27084
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
26574
27085
  rendererVersion: z.ZodOptional<z.ZodString>;
26575
27086
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26576
27087
  type: z.ZodOptional<z.ZodEnum<{
@@ -26873,7 +27384,14 @@ declare const pageRoutes: {
26873
27384
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
26874
27385
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
26875
27386
  }, z.core.$strip>>;
26876
- renderedAst: z.ZodOptional<z.ZodUnknown>;
27387
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
27388
+ astVersion: z.ZodLiteral<1>;
27389
+ root: z.ZodUnknown;
27390
+ }, z.core.$strip>, z.ZodObject<{
27391
+ type: z.ZodLiteral<"root">;
27392
+ children: z.ZodArray<z.ZodUnknown>;
27393
+ }, z.core.$strip>]>>;
27394
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
26877
27395
  rendererVersion: z.ZodOptional<z.ZodString>;
26878
27396
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26879
27397
  type: z.ZodOptional<z.ZodEnum<{
@@ -27053,7 +27571,14 @@ declare const pageRoutes: {
27053
27571
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
27054
27572
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
27055
27573
  }, z.core.$strip>>;
27056
- renderedAst: z.ZodOptional<z.ZodUnknown>;
27574
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
27575
+ astVersion: z.ZodLiteral<1>;
27576
+ root: z.ZodUnknown;
27577
+ }, z.core.$strip>, z.ZodObject<{
27578
+ type: z.ZodLiteral<"root">;
27579
+ children: z.ZodArray<z.ZodUnknown>;
27580
+ }, z.core.$strip>]>>;
27581
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
27057
27582
  rendererVersion: z.ZodOptional<z.ZodString>;
27058
27583
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27059
27584
  type: z.ZodOptional<z.ZodEnum<{
@@ -27164,7 +27689,14 @@ declare const pageRoutes: {
27164
27689
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
27165
27690
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
27166
27691
  }, z.core.$strip>>;
27167
- renderedAst: z.ZodOptional<z.ZodUnknown>;
27692
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
27693
+ astVersion: z.ZodLiteral<1>;
27694
+ root: z.ZodUnknown;
27695
+ }, z.core.$strip>, z.ZodObject<{
27696
+ type: z.ZodLiteral<"root">;
27697
+ children: z.ZodArray<z.ZodUnknown>;
27698
+ }, z.core.$strip>]>>;
27699
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
27168
27700
  rendererVersion: z.ZodOptional<z.ZodString>;
27169
27701
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27170
27702
  type: z.ZodOptional<z.ZodEnum<{
@@ -27270,7 +27802,14 @@ declare const pageRoutes: {
27270
27802
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
27271
27803
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
27272
27804
  }, z.core.$strip>>;
27273
- renderedAst: z.ZodOptional<z.ZodUnknown>;
27805
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
27806
+ astVersion: z.ZodLiteral<1>;
27807
+ root: z.ZodUnknown;
27808
+ }, z.core.$strip>, z.ZodObject<{
27809
+ type: z.ZodLiteral<"root">;
27810
+ children: z.ZodArray<z.ZodUnknown>;
27811
+ }, z.core.$strip>]>>;
27812
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
27274
27813
  rendererVersion: z.ZodOptional<z.ZodString>;
27275
27814
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27276
27815
  type: z.ZodOptional<z.ZodEnum<{
@@ -27341,6 +27880,7 @@ declare const pageRoutes: {
27341
27880
  likerCount: z.ZodOptional<z.ZodNumber>;
27342
27881
  seenUsersCount: z.ZodOptional<z.ZodNumber>;
27343
27882
  }, z.core.$strip>>>;
27883
+ total: z.ZodNumber;
27344
27884
  }, z.core.$strip>;
27345
27885
  };
27346
27886
  };
@@ -27483,7 +28023,14 @@ declare const pageRoutes: {
27483
28023
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
27484
28024
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
27485
28025
  }, z.core.$strip>>;
27486
- renderedAst: z.ZodOptional<z.ZodUnknown>;
28026
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
28027
+ astVersion: z.ZodLiteral<1>;
28028
+ root: z.ZodUnknown;
28029
+ }, z.core.$strip>, z.ZodObject<{
28030
+ type: z.ZodLiteral<"root">;
28031
+ children: z.ZodArray<z.ZodUnknown>;
28032
+ }, z.core.$strip>]>>;
28033
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
27487
28034
  rendererVersion: z.ZodOptional<z.ZodString>;
27488
28035
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27489
28036
  type: z.ZodOptional<z.ZodEnum<{
@@ -27652,7 +28199,14 @@ declare const pageRoutes: {
27652
28199
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
27653
28200
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
27654
28201
  }, z.core.$strip>>;
27655
- renderedAst: z.ZodOptional<z.ZodUnknown>;
28202
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
28203
+ astVersion: z.ZodLiteral<1>;
28204
+ root: z.ZodUnknown;
28205
+ }, z.core.$strip>, z.ZodObject<{
28206
+ type: z.ZodLiteral<"root">;
28207
+ children: z.ZodArray<z.ZodUnknown>;
28208
+ }, z.core.$strip>]>>;
28209
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
27656
28210
  rendererVersion: z.ZodOptional<z.ZodString>;
27657
28211
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27658
28212
  type: z.ZodOptional<z.ZodEnum<{
@@ -27845,7 +28399,14 @@ declare const pageRoutes: {
27845
28399
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
27846
28400
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
27847
28401
  }, z.core.$strip>>;
27848
- renderedAst: z.ZodOptional<z.ZodUnknown>;
28402
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
28403
+ astVersion: z.ZodLiteral<1>;
28404
+ root: z.ZodUnknown;
28405
+ }, z.core.$strip>, z.ZodObject<{
28406
+ type: z.ZodLiteral<"root">;
28407
+ children: z.ZodArray<z.ZodUnknown>;
28408
+ }, z.core.$strip>]>>;
28409
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
27849
28410
  rendererVersion: z.ZodOptional<z.ZodString>;
27850
28411
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27851
28412
  type: z.ZodOptional<z.ZodEnum<{
@@ -28203,7 +28764,14 @@ declare const pageRoutes: {
28203
28764
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
28204
28765
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
28205
28766
  }, z.core.$strip>>;
28206
- renderedAst: z.ZodOptional<z.ZodUnknown>;
28767
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
28768
+ astVersion: z.ZodLiteral<1>;
28769
+ root: z.ZodUnknown;
28770
+ }, z.core.$strip>, z.ZodObject<{
28771
+ type: z.ZodLiteral<"root">;
28772
+ children: z.ZodArray<z.ZodUnknown>;
28773
+ }, z.core.$strip>]>>;
28774
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
28207
28775
  rendererVersion: z.ZodOptional<z.ZodString>;
28208
28776
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28209
28777
  type: z.ZodOptional<z.ZodEnum<{
@@ -28382,7 +28950,14 @@ declare const pageRoutes: {
28382
28950
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
28383
28951
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
28384
28952
  }, z.core.$strip>>;
28385
- renderedAst: z.ZodOptional<z.ZodUnknown>;
28953
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
28954
+ astVersion: z.ZodLiteral<1>;
28955
+ root: z.ZodUnknown;
28956
+ }, z.core.$strip>, z.ZodObject<{
28957
+ type: z.ZodLiteral<"root">;
28958
+ children: z.ZodArray<z.ZodUnknown>;
28959
+ }, z.core.$strip>]>>;
28960
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
28386
28961
  rendererVersion: z.ZodOptional<z.ZodString>;
28387
28962
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28388
28963
  type: z.ZodOptional<z.ZodEnum<{
@@ -28581,7 +29156,14 @@ declare const pageRoutes: {
28581
29156
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
28582
29157
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
28583
29158
  }, z.core.$strip>>;
28584
- renderedAst: z.ZodOptional<z.ZodUnknown>;
29159
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
29160
+ astVersion: z.ZodLiteral<1>;
29161
+ root: z.ZodUnknown;
29162
+ }, z.core.$strip>, z.ZodObject<{
29163
+ type: z.ZodLiteral<"root">;
29164
+ children: z.ZodArray<z.ZodUnknown>;
29165
+ }, z.core.$strip>]>>;
29166
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
28585
29167
  rendererVersion: z.ZodOptional<z.ZodString>;
28586
29168
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28587
29169
  type: z.ZodOptional<z.ZodEnum<{
@@ -28919,7 +29501,14 @@ declare const pageRoutes: {
28919
29501
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
28920
29502
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
28921
29503
  }, z.core.$strip>>;
28922
- renderedAst: z.ZodOptional<z.ZodUnknown>;
29504
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
29505
+ astVersion: z.ZodLiteral<1>;
29506
+ root: z.ZodUnknown;
29507
+ }, z.core.$strip>, z.ZodObject<{
29508
+ type: z.ZodLiteral<"root">;
29509
+ children: z.ZodArray<z.ZodUnknown>;
29510
+ }, z.core.$strip>]>>;
29511
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
28923
29512
  rendererVersion: z.ZodOptional<z.ZodString>;
28924
29513
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28925
29514
  type: z.ZodOptional<z.ZodEnum<{
@@ -29111,7 +29700,14 @@ declare const pageRoutes: {
29111
29700
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
29112
29701
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
29113
29702
  }, z.core.$strip>>;
29114
- renderedAst: z.ZodOptional<z.ZodUnknown>;
29703
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
29704
+ astVersion: z.ZodLiteral<1>;
29705
+ root: z.ZodUnknown;
29706
+ }, z.core.$strip>, z.ZodObject<{
29707
+ type: z.ZodLiteral<"root">;
29708
+ children: z.ZodArray<z.ZodUnknown>;
29709
+ }, z.core.$strip>]>>;
29710
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
29115
29711
  rendererVersion: z.ZodOptional<z.ZodString>;
29116
29712
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29117
29713
  type: z.ZodOptional<z.ZodEnum<{
@@ -29291,7 +29887,14 @@ declare const pageRoutes: {
29291
29887
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
29292
29888
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
29293
29889
  }, z.core.$strip>>;
29294
- renderedAst: z.ZodOptional<z.ZodUnknown>;
29890
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
29891
+ astVersion: z.ZodLiteral<1>;
29892
+ root: z.ZodUnknown;
29893
+ }, z.core.$strip>, z.ZodObject<{
29894
+ type: z.ZodLiteral<"root">;
29895
+ children: z.ZodArray<z.ZodUnknown>;
29896
+ }, z.core.$strip>]>>;
29897
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
29295
29898
  rendererVersion: z.ZodOptional<z.ZodString>;
29296
29899
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29297
29900
  type: z.ZodOptional<z.ZodEnum<{
@@ -29474,7 +30077,14 @@ declare const pageRoutes: {
29474
30077
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
29475
30078
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
29476
30079
  }, z.core.$strip>>;
29477
- renderedAst: z.ZodOptional<z.ZodUnknown>;
30080
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
30081
+ astVersion: z.ZodLiteral<1>;
30082
+ root: z.ZodUnknown;
30083
+ }, z.core.$strip>, z.ZodObject<{
30084
+ type: z.ZodLiteral<"root">;
30085
+ children: z.ZodArray<z.ZodUnknown>;
30086
+ }, z.core.$strip>]>>;
30087
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
29478
30088
  rendererVersion: z.ZodOptional<z.ZodString>;
29479
30089
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29480
30090
  type: z.ZodOptional<z.ZodEnum<{
@@ -29717,7 +30327,14 @@ declare const previewPageRoute: {
29717
30327
  content: {
29718
30328
  'application/json': {
29719
30329
  schema: zod.ZodObject<{
29720
- renderedAst: zod.ZodUnknown;
30330
+ renderedAst: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
30331
+ astVersion: zod.ZodLiteral<1>;
30332
+ root: zod.ZodUnknown;
30333
+ }, zod_v4_core.$strip>, zod.ZodObject<{
30334
+ type: zod.ZodLiteral<"root">;
30335
+ children: zod.ZodArray<zod.ZodUnknown>;
30336
+ }, zod_v4_core.$strip>]>>;
30337
+ renderedAstArtifactKey: zod.ZodOptional<zod.ZodString>;
29721
30338
  }, zod_v4_core.$strip>;
29722
30339
  };
29723
30340
  };
@@ -29791,7 +30408,14 @@ declare const pagePreviewRoutes: {
29791
30408
  content: {
29792
30409
  'application/json': {
29793
30410
  schema: zod.ZodObject<{
29794
- renderedAst: zod.ZodUnknown;
30411
+ renderedAst: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
30412
+ astVersion: zod.ZodLiteral<1>;
30413
+ root: zod.ZodUnknown;
30414
+ }, zod_v4_core.$strip>, zod.ZodObject<{
30415
+ type: zod.ZodLiteral<"root">;
30416
+ children: zod.ZodArray<zod.ZodUnknown>;
30417
+ }, zod_v4_core.$strip>]>>;
30418
+ renderedAstArtifactKey: zod.ZodOptional<zod.ZodString>;
29795
30419
  }, zod_v4_core.$strip>;
29796
30420
  };
29797
30421
  };
@@ -29872,7 +30496,7 @@ declare const pagePreviewRoutes: {
29872
30496
  */
29873
30497
 
29874
30498
  /**
29875
- * GET /api/v2/pages/:id/yjs-token (RFC-0003 Phase 2)
30499
+ * GET /api/pages/:id/yjs-token (RFC-0003 Phase 2)
29876
30500
  *
29877
30501
  * Mints the short-lived JWT (`wsToken`) the Hocuspocus client
29878
30502
  * (`HocuspocusProvider`) presents on connect. Phase 3 wires
@@ -30097,7 +30721,7 @@ declare const pageCollabRoutes: {
30097
30721
  */
30098
30722
 
30099
30723
  /**
30100
- * GET /api/v2/pages/:id/presence-token (RFC-0005 Phase 1)
30724
+ * GET /api/pages/:id/presence-token (RFC-0005 Phase 1)
30101
30725
  *
30102
30726
  * Mints the short-lived JWT a page viewer presents on the
30103
30727
  * `/presence/:pageId` WebSocket handshake. The presence handler
@@ -30201,7 +30825,7 @@ declare const getPresenceTokenRoute: {
30201
30825
  getRoutingPath(): "/pages/:id/presence-token";
30202
30826
  };
30203
30827
  /**
30204
- * GET /api/v2/pages/:id/likers (RFC-0005 Phase 3)
30828
+ * GET /api/pages/:id/likers (RFC-0005 Phase 3)
30205
30829
  *
30206
30830
  * Returns the users who have liked the page, backing the "Liked by"
30207
30831
  * modal opened from the meta-chip row. Read access to the page is
@@ -31210,9 +31834,22 @@ declare const autocompleteRoutes: {
31210
31834
  * - `/pages/*` (list / add / usage) reuses the `revision` handler's
31211
31835
  * broad `createJwtAuth(crowi)` apply — same shared-middleware
31212
31836
  * pattern as page / page-preview / pageCollab / presence / draft.
31837
+ * Header-only (Bearer), same as every other `createJwtAuth` consumer.
31213
31838
  * - `/attachments/*` (meta / upload / remove) is OUTSIDE that prefix
31214
- * so the attachment handler installs `createJwtAuth(crowi)` on
31215
- * `/attachments/*` itself.
31839
+ * so the attachment handler installs `createAttachmentAuth(crowi)`
31840
+ * (feature-auth-cookie-fallback-scope) on `/attachments/*` itself.
31841
+ * `createAttachmentAuth` is its OWN boundary — `createJwtAuth` is
31842
+ * header-only everywhere and never reads the `crowi.accessToken`
31843
+ * cookie at all; only `createAttachmentAuth` does, and only for
31844
+ * GET/HEAD on the three raw streaming delivery routes below
31845
+ * (`/attachments/{id}`, `/attachments/{id}/original`,
31846
+ * `/attachments/by-key/{key}`), which are hand-coded Hono routes
31847
+ * outside this contract file (a browser `<img src>` / direct
31848
+ * navigation to those cannot carry an Authorization header). Every
31849
+ * endpoint IN this contract file (upload / meta / remove / add) is
31850
+ * header-only — none of them accept the cookie, so this contract's
31851
+ * `security: [{ bearerAuth: [] }]` on every route below is accurate
31852
+ * as written.
31216
31853
  *
31217
31854
  * Multipart: `addAttachment` + `uploadAttachment` are implemented
31218
31855
  * Hono-native via `c.req.parseBody()`. multer is gone from this
@@ -31505,6 +32142,30 @@ declare const addAttachmentRoute: {
31505
32142
  };
31506
32143
  };
31507
32144
  };
32145
+ 415: {
32146
+ description: string;
32147
+ content: {
32148
+ 'application/json': {
32149
+ schema: z.ZodObject<{
32150
+ error: z.ZodObject<{
32151
+ code: z.ZodEnum<{
32152
+ INVALID_PAGE_ID: "INVALID_PAGE_ID";
32153
+ PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
32154
+ FILE_MISSING: "FILE_MISSING";
32155
+ FILE_TOO_LARGE: "FILE_TOO_LARGE";
32156
+ DISALLOWED_MIME: "DISALLOWED_MIME";
32157
+ INVALID_ATTACHMENT_ID: "INVALID_ATTACHMENT_ID";
32158
+ ATTACHMENT_NOT_FOUND: "ATTACHMENT_NOT_FOUND";
32159
+ FORBIDDEN_FOR_DELETE: "FORBIDDEN_FOR_DELETE";
32160
+ UPLOAD_FAILED: "UPLOAD_FAILED";
32161
+ REMOVE_FAILED: "REMOVE_FAILED";
32162
+ }>;
32163
+ message: z.ZodString;
32164
+ }, z.core.$strip>;
32165
+ }, z.core.$strip>;
32166
+ };
32167
+ };
32168
+ };
31508
32169
  500: {
31509
32170
  description: string;
31510
32171
  content: {
@@ -31893,6 +32554,7 @@ declare const uploadAttachmentRoute: {
31893
32554
  'application/json': {
31894
32555
  schema: z.ZodObject<{
31895
32556
  error: z.ZodEnum<{
32557
+ DISALLOWED_MIME: "DISALLOWED_MIME";
31896
32558
  too_large: "too_large";
31897
32559
  disallowed_type: "disallowed_type";
31898
32560
  rate_limited: "rate_limited";
@@ -31924,6 +32586,7 @@ declare const uploadAttachmentRoute: {
31924
32586
  'application/json': {
31925
32587
  schema: z.ZodObject<{
31926
32588
  error: z.ZodEnum<{
32589
+ DISALLOWED_MIME: "DISALLOWED_MIME";
31927
32590
  too_large: "too_large";
31928
32591
  disallowed_type: "disallowed_type";
31929
32592
  rate_limited: "rate_limited";
@@ -31941,6 +32604,7 @@ declare const uploadAttachmentRoute: {
31941
32604
  'application/json': {
31942
32605
  schema: z.ZodObject<{
31943
32606
  error: z.ZodEnum<{
32607
+ DISALLOWED_MIME: "DISALLOWED_MIME";
31944
32608
  too_large: "too_large";
31945
32609
  disallowed_type: "disallowed_type";
31946
32610
  rate_limited: "rate_limited";
@@ -31958,6 +32622,7 @@ declare const uploadAttachmentRoute: {
31958
32622
  'application/json': {
31959
32623
  schema: z.ZodObject<{
31960
32624
  error: z.ZodEnum<{
32625
+ DISALLOWED_MIME: "DISALLOWED_MIME";
31961
32626
  too_large: "too_large";
31962
32627
  disallowed_type: "disallowed_type";
31963
32628
  rate_limited: "rate_limited";
@@ -31975,6 +32640,7 @@ declare const uploadAttachmentRoute: {
31975
32640
  'application/json': {
31976
32641
  schema: z.ZodObject<{
31977
32642
  error: z.ZodEnum<{
32643
+ DISALLOWED_MIME: "DISALLOWED_MIME";
31978
32644
  too_large: "too_large";
31979
32645
  disallowed_type: "disallowed_type";
31980
32646
  rate_limited: "rate_limited";
@@ -32614,6 +33280,30 @@ declare const attachmentRoutes: {
32614
33280
  };
32615
33281
  };
32616
33282
  };
33283
+ 415: {
33284
+ description: string;
33285
+ content: {
33286
+ 'application/json': {
33287
+ schema: z.ZodObject<{
33288
+ error: z.ZodObject<{
33289
+ code: z.ZodEnum<{
33290
+ INVALID_PAGE_ID: "INVALID_PAGE_ID";
33291
+ PAGE_NOT_FOUND: "PAGE_NOT_FOUND";
33292
+ FILE_MISSING: "FILE_MISSING";
33293
+ FILE_TOO_LARGE: "FILE_TOO_LARGE";
33294
+ DISALLOWED_MIME: "DISALLOWED_MIME";
33295
+ INVALID_ATTACHMENT_ID: "INVALID_ATTACHMENT_ID";
33296
+ ATTACHMENT_NOT_FOUND: "ATTACHMENT_NOT_FOUND";
33297
+ FORBIDDEN_FOR_DELETE: "FORBIDDEN_FOR_DELETE";
33298
+ UPLOAD_FAILED: "UPLOAD_FAILED";
33299
+ REMOVE_FAILED: "REMOVE_FAILED";
33300
+ }>;
33301
+ message: z.ZodString;
33302
+ }, z.core.$strip>;
33303
+ }, z.core.$strip>;
33304
+ };
33305
+ };
33306
+ };
32617
33307
  500: {
32618
33308
  description: string;
32619
33309
  content: {
@@ -32683,6 +33373,7 @@ declare const attachmentRoutes: {
32683
33373
  'application/json': {
32684
33374
  schema: z.ZodObject<{
32685
33375
  error: z.ZodEnum<{
33376
+ DISALLOWED_MIME: "DISALLOWED_MIME";
32686
33377
  too_large: "too_large";
32687
33378
  disallowed_type: "disallowed_type";
32688
33379
  rate_limited: "rate_limited";
@@ -32714,6 +33405,7 @@ declare const attachmentRoutes: {
32714
33405
  'application/json': {
32715
33406
  schema: z.ZodObject<{
32716
33407
  error: z.ZodEnum<{
33408
+ DISALLOWED_MIME: "DISALLOWED_MIME";
32717
33409
  too_large: "too_large";
32718
33410
  disallowed_type: "disallowed_type";
32719
33411
  rate_limited: "rate_limited";
@@ -32731,6 +33423,7 @@ declare const attachmentRoutes: {
32731
33423
  'application/json': {
32732
33424
  schema: z.ZodObject<{
32733
33425
  error: z.ZodEnum<{
33426
+ DISALLOWED_MIME: "DISALLOWED_MIME";
32734
33427
  too_large: "too_large";
32735
33428
  disallowed_type: "disallowed_type";
32736
33429
  rate_limited: "rate_limited";
@@ -32748,6 +33441,7 @@ declare const attachmentRoutes: {
32748
33441
  'application/json': {
32749
33442
  schema: z.ZodObject<{
32750
33443
  error: z.ZodEnum<{
33444
+ DISALLOWED_MIME: "DISALLOWED_MIME";
32751
33445
  too_large: "too_large";
32752
33446
  disallowed_type: "disallowed_type";
32753
33447
  rate_limited: "rate_limited";
@@ -32765,6 +33459,7 @@ declare const attachmentRoutes: {
32765
33459
  'application/json': {
32766
33460
  schema: z.ZodObject<{
32767
33461
  error: z.ZodEnum<{
33462
+ DISALLOWED_MIME: "DISALLOWED_MIME";
32768
33463
  too_large: "too_large";
32769
33464
  disallowed_type: "disallowed_type";
32770
33465
  rate_limited: "rate_limited";
@@ -33136,7 +33831,14 @@ declare const searchPagesRoute: {
33136
33831
  codeBlockLanguages: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
33137
33832
  rawSpaceLinks: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
33138
33833
  }, zod_v4_core.$strip>>;
33139
- renderedAst: zod.ZodOptional<zod.ZodUnknown>;
33834
+ renderedAst: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
33835
+ astVersion: zod.ZodLiteral<1>;
33836
+ root: zod.ZodUnknown;
33837
+ }, zod_v4_core.$strip>, zod.ZodObject<{
33838
+ type: zod.ZodLiteral<"root">;
33839
+ children: zod.ZodArray<zod.ZodUnknown>;
33840
+ }, zod_v4_core.$strip>]>>;
33841
+ renderedAstArtifactKey: zod.ZodOptional<zod.ZodString>;
33140
33842
  rendererVersion: zod.ZodOptional<zod.ZodString>;
33141
33843
  parentRevisionId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
33142
33844
  type: zod.ZodOptional<zod.ZodEnum<{
@@ -33348,7 +34050,14 @@ declare const searchRoutes: {
33348
34050
  codeBlockLanguages: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
33349
34051
  rawSpaceLinks: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
33350
34052
  }, zod_v4_core.$strip>>;
33351
- renderedAst: zod.ZodOptional<zod.ZodUnknown>;
34053
+ renderedAst: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
34054
+ astVersion: zod.ZodLiteral<1>;
34055
+ root: zod.ZodUnknown;
34056
+ }, zod_v4_core.$strip>, zod.ZodObject<{
34057
+ type: zod.ZodLiteral<"root">;
34058
+ children: zod.ZodArray<zod.ZodUnknown>;
34059
+ }, zod_v4_core.$strip>]>>;
34060
+ renderedAstArtifactKey: zod.ZodOptional<zod.ZodString>;
33352
34061
  rendererVersion: zod.ZodOptional<zod.ZodString>;
33353
34062
  parentRevisionId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
33354
34063
  type: zod.ZodOptional<zod.ZodEnum<{
@@ -35268,15 +35977,86 @@ declare const ClearRenderCacheResponseSchema: z.ZodObject<{
35268
35977
  removedCount: z.ZodNumber;
35269
35978
  }, z.core.$strip>;
35270
35979
  type ClearRenderCacheResponse = z.infer<typeof ClearRenderCacheResponseSchema>;
35980
+ /**
35981
+ * feature-plugin-config-readiness — one unset `requiredConfigFields`
35982
+ * entry from a plugin's `readiness` declaration. Deliberately carries
35983
+ * only the field name and a fixed `configured: false` (never the
35984
+ * declared field's list of possible values, its actual value, or
35985
+ * anything else that could echo secret config back to the client).
35986
+ */
35987
+ declare const PluginReadinessFieldSchema: z.ZodObject<{
35988
+ name: z.ZodString;
35989
+ configured: z.ZodLiteral<false>;
35990
+ }, z.core.$strip>;
35991
+ type PluginReadinessField = z.infer<typeof PluginReadinessFieldSchema>;
35992
+ /**
35993
+ * A currently-active plugin (its `readiness.driver` matches the
35994
+ * selected `crowi.config.json` driver for `readiness.registry`) with at
35995
+ * least one unset required config field.
35996
+ */
35997
+ declare const PluginReadinessIssueSchema: z.ZodObject<{
35998
+ name: z.ZodString;
35999
+ adminPlacement: z.ZodObject<{
36000
+ section: z.ZodEnum<{
36001
+ search: "search";
36002
+ settings: "settings";
36003
+ shared: "shared";
36004
+ storage: "storage";
36005
+ mail: "mail";
36006
+ notification: "notification";
36007
+ auth: "auth";
36008
+ renderer: "renderer";
36009
+ platform: "platform";
36010
+ }>;
36011
+ label: z.ZodString;
36012
+ icon: z.ZodOptional<z.ZodString>;
36013
+ }, z.core.$strip>;
36014
+ fields: z.ZodArray<z.ZodObject<{
36015
+ name: z.ZodString;
36016
+ configured: z.ZodLiteral<false>;
36017
+ }, z.core.$strip>>;
36018
+ }, z.core.$strip>;
36019
+ type PluginReadinessIssue = z.infer<typeof PluginReadinessIssueSchema>;
36020
+ /**
36021
+ * `GET /admin/plugins/readiness` response. Empty `issues` means every
36022
+ * active plugin with a readiness declaration is fully configured (or no
36023
+ * loaded plugin declares readiness at all).
36024
+ */
36025
+ declare const PluginReadinessResponseSchema: z.ZodObject<{
36026
+ issues: z.ZodArray<z.ZodObject<{
36027
+ name: z.ZodString;
36028
+ adminPlacement: z.ZodObject<{
36029
+ section: z.ZodEnum<{
36030
+ search: "search";
36031
+ settings: "settings";
36032
+ shared: "shared";
36033
+ storage: "storage";
36034
+ mail: "mail";
36035
+ notification: "notification";
36036
+ auth: "auth";
36037
+ renderer: "renderer";
36038
+ platform: "platform";
36039
+ }>;
36040
+ label: z.ZodString;
36041
+ icon: z.ZodOptional<z.ZodString>;
36042
+ }, z.core.$strip>;
36043
+ fields: z.ZodArray<z.ZodObject<{
36044
+ name: z.ZodString;
36045
+ configured: z.ZodLiteral<false>;
36046
+ }, z.core.$strip>>;
36047
+ }, z.core.$strip>>;
36048
+ }, z.core.$strip>;
36049
+ type PluginReadinessResponse = z.infer<typeof PluginReadinessResponseSchema>;
35271
36050
 
35272
36051
  /**
35273
36052
  * RFC-0006 Phase 4 Batch 9 — `admin.plugins` sub-contract ported to
35274
36053
  * `@hono/zod-openapi` route definitions.
35275
36054
  *
35276
- * 5 endpoints:
36055
+ * 6 endpoints:
35277
36056
  * GET /admin/plugins (listPlugins)
35278
36057
  * GET /admin/plugins/config?name=… (getPluginConfig)
35279
36058
  * PUT /admin/plugins/config?name=… (updatePluginConfig)
36059
+ * GET /admin/plugins/readiness (getPluginReadiness — feature-plugin-config-readiness)
35280
36060
  * POST /admin/plugins/render-cache/clear-all (clearRenderCacheAll)
35281
36061
  * POST /admin/plugins/render-cache/clear-plugin?name=… (clearRenderCachePlugin)
35282
36062
  *
@@ -35671,6 +36451,84 @@ declare const clearRenderCacheAllRoute: {
35671
36451
  } & {
35672
36452
  getRoutingPath(): "/admin/plugins/render-cache/clear-all";
35673
36453
  };
36454
+ /**
36455
+ * feature-plugin-config-readiness — active plugins missing config that
36456
+ * their own `readiness` declaration says is required for the currently
36457
+ * selected driver. Never returns config values, secrets, or URLs — see
36458
+ * `PluginReadinessResponseSchema`.
36459
+ */
36460
+ declare const getPluginReadinessRoute: {
36461
+ method: "get";
36462
+ path: "/admin/plugins/readiness";
36463
+ tags: string[];
36464
+ security: {
36465
+ bearerAuth: never[];
36466
+ }[];
36467
+ summary: string;
36468
+ responses: {
36469
+ 200: {
36470
+ description: string;
36471
+ content: {
36472
+ 'application/json': {
36473
+ schema: z.ZodObject<{
36474
+ issues: z.ZodArray<z.ZodObject<{
36475
+ name: z.ZodString;
36476
+ adminPlacement: z.ZodObject<{
36477
+ section: z.ZodEnum<{
36478
+ search: "search";
36479
+ settings: "settings";
36480
+ shared: "shared";
36481
+ storage: "storage";
36482
+ mail: "mail";
36483
+ notification: "notification";
36484
+ auth: "auth";
36485
+ renderer: "renderer";
36486
+ platform: "platform";
36487
+ }>;
36488
+ label: z.ZodString;
36489
+ icon: z.ZodOptional<z.ZodString>;
36490
+ }, z.core.$strip>;
36491
+ fields: z.ZodArray<z.ZodObject<{
36492
+ name: z.ZodString;
36493
+ configured: z.ZodLiteral<false>;
36494
+ }, z.core.$strip>>;
36495
+ }, z.core.$strip>>;
36496
+ }, z.core.$strip>;
36497
+ };
36498
+ };
36499
+ };
36500
+ 401: {
36501
+ description: string;
36502
+ content: {
36503
+ 'application/json': {
36504
+ schema: z.ZodObject<{
36505
+ error: z.ZodObject<{
36506
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
36507
+ message: z.ZodLiteral<"Authentication is required">;
36508
+ redirectTo: z.ZodOptional<z.ZodString>;
36509
+ }, z.core.$strip>;
36510
+ }, z.core.$strip>;
36511
+ };
36512
+ };
36513
+ };
36514
+ 403: {
36515
+ description: string;
36516
+ content: {
36517
+ 'application/json': {
36518
+ schema: z.ZodObject<{
36519
+ error: z.ZodObject<{
36520
+ code: z.ZodLiteral<"ADMIN_REQUIRED">;
36521
+ message: z.ZodLiteral<"Admin permission required">;
36522
+ redirectTo: z.ZodOptional<z.ZodString>;
36523
+ }, z.core.$strip>;
36524
+ }, z.core.$strip>;
36525
+ };
36526
+ };
36527
+ };
36528
+ };
36529
+ } & {
36530
+ getRoutingPath(): "/admin/plugins/readiness";
36531
+ };
35674
36532
  declare const clearRenderCachePluginRoute: {
35675
36533
  method: "post";
35676
36534
  path: "/admin/plugins/render-cache/clear-plugin";
@@ -36070,6 +36928,78 @@ declare const adminPluginsRoutes: {
36070
36928
  } & {
36071
36929
  getRoutingPath(): "/admin/plugins/config";
36072
36930
  };
36931
+ getPluginReadinessRoute: {
36932
+ method: "get";
36933
+ path: "/admin/plugins/readiness";
36934
+ tags: string[];
36935
+ security: {
36936
+ bearerAuth: never[];
36937
+ }[];
36938
+ summary: string;
36939
+ responses: {
36940
+ 200: {
36941
+ description: string;
36942
+ content: {
36943
+ 'application/json': {
36944
+ schema: z.ZodObject<{
36945
+ issues: z.ZodArray<z.ZodObject<{
36946
+ name: z.ZodString;
36947
+ adminPlacement: z.ZodObject<{
36948
+ section: z.ZodEnum<{
36949
+ search: "search";
36950
+ settings: "settings";
36951
+ shared: "shared";
36952
+ storage: "storage";
36953
+ mail: "mail";
36954
+ notification: "notification";
36955
+ auth: "auth";
36956
+ renderer: "renderer";
36957
+ platform: "platform";
36958
+ }>;
36959
+ label: z.ZodString;
36960
+ icon: z.ZodOptional<z.ZodString>;
36961
+ }, z.core.$strip>;
36962
+ fields: z.ZodArray<z.ZodObject<{
36963
+ name: z.ZodString;
36964
+ configured: z.ZodLiteral<false>;
36965
+ }, z.core.$strip>>;
36966
+ }, z.core.$strip>>;
36967
+ }, z.core.$strip>;
36968
+ };
36969
+ };
36970
+ };
36971
+ 401: {
36972
+ description: string;
36973
+ content: {
36974
+ 'application/json': {
36975
+ schema: z.ZodObject<{
36976
+ error: z.ZodObject<{
36977
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
36978
+ message: z.ZodLiteral<"Authentication is required">;
36979
+ redirectTo: z.ZodOptional<z.ZodString>;
36980
+ }, z.core.$strip>;
36981
+ }, z.core.$strip>;
36982
+ };
36983
+ };
36984
+ };
36985
+ 403: {
36986
+ description: string;
36987
+ content: {
36988
+ 'application/json': {
36989
+ schema: z.ZodObject<{
36990
+ error: z.ZodObject<{
36991
+ code: z.ZodLiteral<"ADMIN_REQUIRED">;
36992
+ message: z.ZodLiteral<"Admin permission required">;
36993
+ redirectTo: z.ZodOptional<z.ZodString>;
36994
+ }, z.core.$strip>;
36995
+ }, z.core.$strip>;
36996
+ };
36997
+ };
36998
+ };
36999
+ };
37000
+ } & {
37001
+ getRoutingPath(): "/admin/plugins/readiness";
37002
+ };
36073
37003
  clearRenderCacheAllRoute: {
36074
37004
  method: "post";
36075
37005
  path: "/admin/plugins/render-cache/clear-all";
@@ -40512,7 +41442,7 @@ type EncryptionNotConfiguredError = z.infer<typeof EncryptionNotConfiguredErrorS
40512
41442
  *
40513
41443
  * `rendererStylesheets` (feature-renderer-plugin-boundary Phase 1) is the
40514
41444
  * boot-time CSS-asset manifest: API-relative absolute paths
40515
- * (`/api/v2/plugins/<plugin-name>/…`) that renderer plugins registered via
41445
+ * (`/api/plugins/<plugin-name>/…`) that renderer plugins registered via
40516
41446
  * `RendererRegistry.addStylesheet(path)` AND whose `registerRoutes` mounted
40517
41447
  * successfully (see `RendererRegistryImpl.commitStylesheets`,
40518
41448
  * `packages/api/src/renderer/registry.ts`) — a plugin whose route mount
@@ -40552,7 +41482,7 @@ type AppInfoResponse = z.infer<typeof AppInfoResponseSchema>;
40552
41482
 
40553
41483
  /**
40554
41484
  * The static capability baseline + API surface version advertised at
40555
- * `GET /api/v2/app/info` and consumed by the `@crowi/cli` end-user CLI for
41485
+ * `GET /api/app/info` and consumed by the `@crowi/cli` end-user CLI for
40556
41486
  * feature detection / version-skew warnings.
40557
41487
  *
40558
41488
  * These two values are deliberately shared between the API handler
@@ -40628,7 +41558,7 @@ declare const API_SURFACE_VERSION = "v2";
40628
41558
  * - `creator` is populated server-side via `Attachment.getListByPageId`
40629
41559
  * (or after `Attachment.create()` on the add path) so consumers always
40630
41560
  * see the public user shape and never bare ObjectId strings.
40631
- * - `url` is a relative URL (`/api/v2/attachments/:id`) computed by the
41561
+ * - `url` is a relative URL (`/api/attachments/:id`) computed by the
40632
41562
  * handler from the document's `fileUrl` virtual. Browsers fetch the
40633
41563
  * stream endpoint via the same origin, so absolute URLs are not needed.
40634
41564
  * feature-image-derivative-optimization Phase 2 — this URL now serves the
@@ -40638,7 +41568,7 @@ declare const API_SURFACE_VERSION = "v2";
40638
41568
  * `${url}/original` — always resolves to the original bytes regardless of
40639
41569
  * `derivatives.display`. Derived, not stored (same as `url`).
40640
41570
  * - `inUse` (Phase 7) is `true` when the attachment is referenced by the
40641
- * page's latest revision body (a `/api/v2/attachments/<id>` or legacy
41571
+ * page's latest revision body (a `/api/attachments/<id>` or legacy
40642
41572
  * `/files/<id>` URI). `listAttachments` computes it by scanning the
40643
41573
  * latest revision body once; when the revision is missing or empty it
40644
41574
  * falls back to `true` for every attachment so files are not hidden
@@ -40679,7 +41609,7 @@ declare const AttachmentSchema: z.ZodObject<{
40679
41609
  }, z.core.$strip>;
40680
41610
  type Attachment = z.infer<typeof AttachmentSchema>;
40681
41611
  /**
40682
- * Attachment metadata as returned by `GET /api/v2/attachments/:id/meta`.
41612
+ * Attachment metadata as returned by `GET /api/attachments/:id/meta`.
40683
41613
  *
40684
41614
  * Identical to `AttachmentSchema` minus `inUse`: the meta endpoint resolves
40685
41615
  * a bare attachment id (a body reference carries no page context) and
@@ -40998,7 +41928,7 @@ declare const AttachmentErrorSchema: z.ZodObject<{
40998
41928
  }, z.core.$strip>;
40999
41929
  type AttachmentError = z.infer<typeof AttachmentErrorSchema>;
41000
41930
  /**
41001
- * RFC-0004 Phase 6 — `POST /api/v2/attachments/upload`.
41931
+ * RFC-0004 Phase 6 — `POST /api/attachments/upload`.
41002
41932
  *
41003
41933
  * The editor's paste / drag-and-drop handlers upload a file directly
41004
41934
  * (multipart) and immediately splice the returned `url` into the
@@ -41016,12 +41946,26 @@ declare const UploadAttachmentResponseSchema: z.ZodObject<{
41016
41946
  }, z.core.$strip>;
41017
41947
  type UploadAttachmentResponse = z.infer<typeof UploadAttachmentResponseSchema>;
41018
41948
  /**
41019
- * Error envelope for `POST /api/v2/attachments/upload`. The `error`
41949
+ * Error envelope for `POST /api/attachments/upload`. The `error`
41020
41950
  * codes are lowercase + RFC-specified (distinct from the uppercase
41021
41951
  * `AttachmentErrorCodeSchema` used by the list / add / delete endpoints)
41022
41952
  * because the editor maps each code to a specific user-facing toast:
41023
41953
  * - `too_large` — file exceeds the size cap (413).
41024
- * - `disallowed_type`— MIME type not in the allow-list (415).
41954
+ * - `disallowed_type`— malformed request (bad multipart body, missing
41955
+ * file, invalid `intent`); a generic 400 bucket
41956
+ * predating feature-attachment-upload-policy, kept
41957
+ * as-is for those unrelated failure modes.
41958
+ * - `DISALLOWED_MIME`— the file's MIME type is outside the unified
41959
+ * upload allow-list (415). Deliberately spelled
41960
+ * the SAME as `AttachmentErrorCodeSchema`'s
41961
+ * `DISALLOWED_MIME` (not lowercased to
41962
+ * `disallowed_mime`) — feature-attachment-upload-policy's
41963
+ * cross-route parity requirement is that a MIME-type
41964
+ * rejection carries an identical code AND message
41965
+ * everywhere it happens (`addAttachment` and
41966
+ * `uploadAttachment` alike), even though the two
41967
+ * endpoints' envelopes otherwise keep their own
41968
+ * established casing convention for unrelated codes.
41025
41969
  * - `rate_limited` — per-user upload budget exhausted (429); a
41026
41970
  * `Retry-After` header carries the cooldown.
41027
41971
  * - `no_permission` — caller cannot write attachments to `pageId` (403).
@@ -41029,6 +41973,7 @@ type UploadAttachmentResponse = z.infer<typeof UploadAttachmentResponseSchema>;
41029
41973
  * offending MIME, the size limit) the client may surface verbatim.
41030
41974
  */
41031
41975
  declare const UploadAttachmentErrorCodeSchema: z.ZodEnum<{
41976
+ DISALLOWED_MIME: "DISALLOWED_MIME";
41032
41977
  too_large: "too_large";
41033
41978
  disallowed_type: "disallowed_type";
41034
41979
  rate_limited: "rate_limited";
@@ -41037,6 +41982,7 @@ declare const UploadAttachmentErrorCodeSchema: z.ZodEnum<{
41037
41982
  type UploadAttachmentErrorCode = z.infer<typeof UploadAttachmentErrorCodeSchema>;
41038
41983
  declare const UploadAttachmentErrorSchema: z.ZodObject<{
41039
41984
  error: z.ZodEnum<{
41985
+ DISALLOWED_MIME: "DISALLOWED_MIME";
41040
41986
  too_large: "too_large";
41041
41987
  disallowed_type: "disallowed_type";
41042
41988
  rate_limited: "rate_limited";
@@ -41047,17 +41993,34 @@ declare const UploadAttachmentErrorSchema: z.ZodObject<{
41047
41993
  }, z.core.$strip>;
41048
41994
  type UploadAttachmentError = z.infer<typeof UploadAttachmentErrorSchema>;
41049
41995
  /**
41050
- * MIME allow-lists for `POST /api/v2/attachments/upload`, shared by the
41051
- * api handler (authoritative enforcement) and the web editor's paste /
41052
- * drag-and-drop handlers (early client-side rejection). Kept here so the
41053
- * two sides cannot drift see `docs/rfcs/0004-editor-ux-enhancement.md`
41054
- * §"Image paste limits" / §"D&D limits".
41996
+ * feature-attachment-upload-policy the single "may this be uploaded at
41997
+ * all" allow-list, shared by every upload path: the general page
41998
+ * attachment endpoint (`POST /pages/:pageId/attachments`) and the editor's
41999
+ * paste / drag-and-drop endpoint (`POST /attachments/upload`, both
42000
+ * intents). A file's fate no longer depends on which of the three
42001
+ * affordances (attach button / paste / drag-and-drop) triggered the
42002
+ * upload — see the feature spec's "3 つの独立した問い" design judgment 1.
42003
+ * Per-route/per-intent SIZE caps (paste 10 MB / dnd 50 MB / add 100 MB)
42004
+ * are unchanged and stay in the api handler, independent of this list.
41055
42005
  *
41056
- * `paste` accepts images only (a clipboard blob is always an image);
41057
- * `dnd` additionally accepts documents + archives.
42006
+ * Deliberately independent of `INLINE_SAFE_MIME`
42007
+ * (`attachment-stream.ts`) that is a strict security boundary deciding
42008
+ * what may render inline in the browser, updated rarely and separately.
42009
+ * This list decides what may be STORED at all, and can be broad because
42010
+ * everything not on `INLINE_SAFE_MIME` is delivered as a download
42011
+ * regardless of whether it is accepted here.
42012
+ *
42013
+ * Covers: raster + vector images, common document / text formats, office
42014
+ * documents (docx/xlsx/pptx and their legacy doc/xls/ppt forms), archives,
42015
+ * and the audio/video/json/xml/html types `@crowi/cli`'s `attach add` can
42016
+ * declare (`packages/cli/src/lib/media-type.ts`) — the general attach
42017
+ * route had NO check before this feature, so anything CLI could already
42018
+ * send must keep working. `application/octet-stream` (a client that sends
42019
+ * no `Content-Type`, or an unrecognised extension) is intentionally
42020
+ * included: an unknown type is not "clearly undesirable", it is simply
42021
+ * unknown, and it already downloads instead of rendering inline.
41058
42022
  */
41059
- declare const IMAGE_UPLOAD_MIME: readonly ["image/png", "image/jpeg", "image/gif", "image/webp", "image/svg+xml"];
41060
- declare const DND_EXTRA_UPLOAD_MIME: readonly ["application/pdf", "text/plain", "text/markdown", "text/csv", "application/zip"];
42023
+ declare const UPLOAD_ALLOWED_MIME: readonly ["image/png", "image/jpeg", "image/gif", "image/webp", "image/svg+xml", "image/bmp", "image/avif", "image/apng", "image/x-icon", "application/pdf", "text/plain", "text/markdown", "text/csv", "application/json", "application/xml", "text/html", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "application/zip", "application/gzip", "application/x-tar", "audio/mpeg", "audio/wav", "video/mp4", "video/webm", "video/quicktime", "application/octet-stream"];
41061
42024
 
41062
42025
  /**
41063
42026
  * Token-based authentication schemas, shared by the `tokenAuth` Hono
@@ -41066,7 +42029,7 @@ declare const DND_EXTRA_UPLOAD_MIME: readonly ["application/pdf", "text/plain",
41066
42029
  * The legacy SSR-style schemas (`LoginRequestSchema`, `LoginResponseSchema`,
41067
42030
  * `RegisterRequestSchema`, `RegisterResponseSchema`, `ErrorResponseSchema`)
41068
42031
  * that backed the deleted `auth` contract were removed in RFC-0006 Phase 4
41069
- * Batch 1 — the corresponding `/api/v2/login` / `/api/v2/register` paths
42032
+ * Batch 1 — the corresponding `/api/login` / `/api/register` paths
41070
42033
  * had no production frontend consumer and were dropped wholesale.
41071
42034
  */
41072
42035
 
@@ -41112,7 +42075,7 @@ type RegisterPendingResponse = z.infer<typeof RegisterPendingResponseSchema>;
41112
42075
 
41113
42076
  /**
41114
42077
  * RFC-0004 Phase 5 — schemas for the autocomplete endpoints
41115
- * (`GET /api/v2/users/autocomplete`, `GET /api/v2/pages/autocomplete`).
42078
+ * (`GET /api/users/autocomplete`, `GET /api/pages/autocomplete`).
41116
42079
  *
41117
42080
  * Autocomplete powers the editor's `@username` / `[[page]]` dropdowns.
41118
42081
  * Both endpoints share one query shape and one result shape so the
@@ -41323,7 +42286,14 @@ declare const BookmarkSchema: z.ZodObject<{
41323
42286
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
41324
42287
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
41325
42288
  }, z.core.$strip>>;
41326
- renderedAst: z.ZodOptional<z.ZodUnknown>;
42289
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
42290
+ astVersion: z.ZodLiteral<1>;
42291
+ root: z.ZodUnknown;
42292
+ }, z.core.$strip>, z.ZodObject<{
42293
+ type: z.ZodLiteral<"root">;
42294
+ children: z.ZodArray<z.ZodUnknown>;
42295
+ }, z.core.$strip>]>>;
42296
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
41327
42297
  rendererVersion: z.ZodOptional<z.ZodString>;
41328
42298
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41329
42299
  type: z.ZodOptional<z.ZodEnum<{
@@ -41457,7 +42427,14 @@ declare const BookmarkResponseSchema: z.ZodObject<{
41457
42427
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
41458
42428
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
41459
42429
  }, z.core.$strip>>;
41460
- renderedAst: z.ZodOptional<z.ZodUnknown>;
42430
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
42431
+ astVersion: z.ZodLiteral<1>;
42432
+ root: z.ZodUnknown;
42433
+ }, z.core.$strip>, z.ZodObject<{
42434
+ type: z.ZodLiteral<"root">;
42435
+ children: z.ZodArray<z.ZodUnknown>;
42436
+ }, z.core.$strip>]>>;
42437
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
41461
42438
  rendererVersion: z.ZodOptional<z.ZodString>;
41462
42439
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41463
42440
  type: z.ZodOptional<z.ZodEnum<{
@@ -41588,7 +42565,14 @@ declare const ListMyBookmarksResponseSchema: z.ZodObject<{
41588
42565
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
41589
42566
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
41590
42567
  }, z.core.$strip>>;
41591
- renderedAst: z.ZodOptional<z.ZodUnknown>;
42568
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
42569
+ astVersion: z.ZodLiteral<1>;
42570
+ root: z.ZodUnknown;
42571
+ }, z.core.$strip>, z.ZodObject<{
42572
+ type: z.ZodLiteral<"root">;
42573
+ children: z.ZodArray<z.ZodUnknown>;
42574
+ }, z.core.$strip>]>>;
42575
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
41592
42576
  rendererVersion: z.ZodOptional<z.ZodString>;
41593
42577
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41594
42578
  type: z.ZodOptional<z.ZodEnum<{
@@ -41706,7 +42690,7 @@ type RemoveBookmarkResponse = z.infer<typeof RemoveBookmarkResponseSchema>;
41706
42690
  * the actual ts-rest contracts and Hocuspocus message handlers in
41707
42691
  * later phases:
41708
42692
  *
41709
- * - Phase 2 (`GET /api/v2/pages/:id/yjs-token`) consumes
42693
+ * - Phase 2 (`GET /api/pages/:id/yjs-token`) consumes
41710
42694
  * `WsTokenResponseSchema`.
41711
42695
  * - Phase 5 (Hocuspocus custom message handler) consumes
41712
42696
  * `CollabSaveMessageSchema` and `CollabSaveErrorSchema`.
@@ -41759,7 +42743,7 @@ declare const RevisionTypeSchema: z.ZodEnum<{
41759
42743
  type RevisionType = z.infer<typeof RevisionTypeSchema>;
41760
42744
  /**
41761
42745
  * Response body of the Phase 2 wsToken endpoint
41762
- * (`GET /api/v2/pages/:id/yjs-token`). The Hocuspocus client
42746
+ * (`GET /api/pages/:id/yjs-token`). The Hocuspocus client
41763
42747
  * (`HocuspocusProvider`) takes the `wsToken` and presents it on
41764
42748
  * connect; the server validates it via `onAuthenticate`.
41765
42749
  *
@@ -42129,7 +43113,7 @@ declare const ConflictErrorSchema: z.ZodObject<{
42129
43113
  * clients branch on which subsystem is missing without parsing `message`.
42130
43114
  *
42131
43115
  * Examples of `feature` values the API surfaces:
42132
- * - `'search'` — `GET /api/v2/search` when no `@crowi/plugin-search-*`
43116
+ * - `'search'` — `GET /api/search` when no `@crowi/plugin-search-*`
42133
43117
  * is installed in the runner project.
42134
43118
  * - `'notifier'` (future) — when no slack / chat notifier driver is registered.
42135
43119
  * - `'mailer'` (future) — when SMTP transport is not configured.
@@ -42172,7 +43156,7 @@ type ForbiddenError = z.infer<typeof ForbiddenErrorSchema>;
42172
43156
 
42173
43157
  /**
42174
43158
  * RFC-0004 Phase 3 — schemas for the drafts endpoints
42175
- * (`POST` / `GET` / `DELETE` under `/api/v2/pages/drafts`).
43159
+ * (`POST` / `GET` / `DELETE` under `/api/pages/drafts`).
42176
43160
  *
42177
43161
  * A *draft* is a `Page` with `status === 'draft'`: a brand-new page in
42178
43162
  * progress, visible only to its author until the first save promotes it
@@ -42180,7 +43164,7 @@ type ForbiddenError = z.infer<typeof ForbiddenErrorSchema>;
42180
43164
  * wire format and the same-path conflict (409) body.
42181
43165
  */
42182
43166
  /**
42183
- * Request body for `POST /api/v2/pages/drafts`.
43167
+ * Request body for `POST /api/pages/drafts`.
42184
43168
  * `path` is the canonical wiki path the new page will occupy.
42185
43169
  * `initialBody` seeds the draft's first revision; defaults to empty.
42186
43170
  */
@@ -42190,7 +43174,7 @@ declare const CreateDraftRequestSchema: z.ZodObject<{
42190
43174
  }, z.core.$strip>;
42191
43175
  type CreateDraftRequest = z.infer<typeof CreateDraftRequestSchema>;
42192
43176
  /**
42193
- * Success body for `POST /api/v2/pages/drafts` (201). Only the new
43177
+ * Success body for `POST /api/pages/drafts` (201). Only the new
42194
43178
  * `pageId` is returned — the client navigates to `/pages/<id>/edit`
42195
43179
  * and the collab session loads the rest.
42196
43180
  */
@@ -42211,7 +43195,7 @@ declare const DraftConflictOwnerSchema: z.ZodObject<{
42211
43195
  }, z.core.$strip>;
42212
43196
  type DraftConflictOwner = z.infer<typeof DraftConflictOwnerSchema>;
42213
43197
  /**
42214
- * 409 body for `POST /api/v2/pages/drafts` when another user already
43198
+ * 409 body for `POST /api/pages/drafts` when another user already
42215
43199
  * holds a draft at the requested path. `error` is a stable machine
42216
43200
  * code; `owner` lets the UI show the contact-the-owner message;
42217
43201
  * `message` is a human-readable fallback.
@@ -42227,7 +43211,7 @@ declare const DraftPathConflictErrorSchema: z.ZodObject<{
42227
43211
  }, z.core.$strip>;
42228
43212
  type DraftPathConflictError = z.infer<typeof DraftPathConflictErrorSchema>;
42229
43213
  /**
42230
- * Generic 400 for `POST /api/v2/pages/drafts` — an uncreatable path,
43214
+ * Generic 400 for `POST /api/pages/drafts` — an uncreatable path,
42231
43215
  * or a path already occupied by a *published* page (not another
42232
43216
  * user's draft, which is the 409 case above).
42233
43217
  */
@@ -42240,7 +43224,7 @@ declare const DraftBadRequestErrorSchema: z.ZodObject<{
42240
43224
  }, z.core.$strip>;
42241
43225
  type DraftBadRequestError = z.infer<typeof DraftBadRequestErrorSchema>;
42242
43226
  /**
42243
- * 403 / 404 body for `DELETE /api/v2/pages/drafts/:id` — the id is not
43227
+ * 403 / 404 body for `DELETE /api/pages/drafts/:id` — the id is not
42244
43228
  * a draft the caller owns. The same generic shape covers both "no such
42245
43229
  * draft" and "not your draft" so draft existence is never leaked.
42246
43230
  */
@@ -42250,7 +43234,7 @@ declare const DraftNotFoundErrorSchema: z.ZodObject<{
42250
43234
  }, z.core.$strip>;
42251
43235
  type DraftNotFoundError = z.infer<typeof DraftNotFoundErrorSchema>;
42252
43236
  /**
42253
- * A single row in `GET /api/v2/pages/drafts` — enough for the
43237
+ * A single row in `GET /api/pages/drafts` — enough for the
42254
43238
  * `Creating pages` view: identifiers (`pageId`, `path`), and the two
42255
43239
  * timestamps that frame "did I make progress recently or is this stale"
42256
43240
  * (`createdAt`, `updatedAt`).
@@ -42272,7 +43256,7 @@ declare const DraftSummarySchema: z.ZodObject<{
42272
43256
  }, z.core.$strip>;
42273
43257
  type DraftSummary = z.infer<typeof DraftSummarySchema>;
42274
43258
  /**
42275
- * Success body for `GET /api/v2/pages/drafts`. Lists only the calling
43259
+ * Success body for `GET /api/pages/drafts`. Lists only the calling
42276
43260
  * user's own drafts, newest first.
42277
43261
  */
42278
43262
  declare const ListDraftsResponseSchema: z.ZodObject<{
@@ -42378,6 +43362,7 @@ declare const MailTokenPayloadSchema: z.ZodObject<{
42378
43362
  fromEmail: z.ZodOptional<z.ZodString>;
42379
43363
  resetGeneration: z.ZodOptional<z.ZodNumber>;
42380
43364
  authVersion: z.ZodOptional<z.ZodNumber>;
43365
+ emailChangeGeneration: z.ZodOptional<z.ZodNumber>;
42381
43366
  iat: z.ZodOptional<z.ZodNumber>;
42382
43367
  exp: z.ZodOptional<z.ZodNumber>;
42383
43368
  }, z.core.$strip>;
@@ -42389,9 +43374,9 @@ declare const LanguageSchema: z.ZodEnum<{
42389
43374
  }>;
42390
43375
  type Language = z.infer<typeof LanguageSchema>;
42391
43376
  declare const ThemeSchema: z.ZodEnum<{
42392
- system: "system";
42393
43377
  light: "light";
42394
43378
  dark: "dark";
43379
+ system: "system";
42395
43380
  }>;
42396
43381
  type Theme = z.infer<typeof ThemeSchema>;
42397
43382
  declare const UserProfileResponseSchema: z.ZodObject<{
@@ -42404,9 +43389,9 @@ declare const UserProfileResponseSchema: z.ZodObject<{
42404
43389
  ja: "ja";
42405
43390
  }>;
42406
43391
  theme: z.ZodEnum<{
42407
- system: "system";
42408
43392
  light: "light";
42409
43393
  dark: "dark";
43394
+ system: "system";
42410
43395
  }>;
42411
43396
  image: z.ZodNullable<z.ZodString>;
42412
43397
  introduction: z.ZodOptional<z.ZodString>;
@@ -42428,18 +43413,18 @@ declare const UpdateProfileRequestSchema: z.ZodObject<{
42428
43413
  type UpdateProfileRequest = z.infer<typeof UpdateProfileRequestSchema>;
42429
43414
  declare const UpdateThemeRequestSchema: z.ZodObject<{
42430
43415
  theme: z.ZodEnum<{
42431
- system: "system";
42432
43416
  light: "light";
42433
43417
  dark: "dark";
43418
+ system: "system";
42434
43419
  }>;
42435
43420
  }, z.core.$strip>;
42436
43421
  type UpdateThemeRequest = z.infer<typeof UpdateThemeRequestSchema>;
42437
43422
  declare const ThemeUpdateResponseSchema: z.ZodObject<{
42438
43423
  status: z.ZodLiteral<"ok">;
42439
43424
  theme: z.ZodEnum<{
42440
- system: "system";
42441
43425
  light: "light";
42442
43426
  dark: "dark";
43427
+ system: "system";
42443
43428
  }>;
42444
43429
  }, z.core.$strip>;
42445
43430
  type ThemeUpdateResponse = z.infer<typeof ThemeUpdateResponseSchema>;
@@ -42517,7 +43502,14 @@ declare const RecentlyViewedPagesResponseSchema: z.ZodObject<{
42517
43502
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
42518
43503
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
42519
43504
  }, z.core.$strip>>;
42520
- renderedAst: z.ZodOptional<z.ZodUnknown>;
43505
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
43506
+ astVersion: z.ZodLiteral<1>;
43507
+ root: z.ZodUnknown;
43508
+ }, z.core.$strip>, z.ZodObject<{
43509
+ type: z.ZodLiteral<"root">;
43510
+ children: z.ZodArray<z.ZodUnknown>;
43511
+ }, z.core.$strip>]>>;
43512
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
42521
43513
  rendererVersion: z.ZodOptional<z.ZodString>;
42522
43514
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42523
43515
  type: z.ZodOptional<z.ZodEnum<{
@@ -42815,7 +43807,7 @@ declare const NotificationNotFoundErrorSchema: z.ZodObject<{
42815
43807
  }, z.core.$strip>;
42816
43808
  type NotificationNotFoundError = z.infer<typeof NotificationNotFoundErrorSchema>;
42817
43809
  /**
42818
- * Response body of `GET /api/v2/notifications/token`.
43810
+ * Response body of `GET /api/notifications/token`.
42819
43811
  *
42820
43812
  * Used by the browser to authenticate the `/notifications/<userId>` WebSocket
42821
43813
  * handshake that fans out per-user notification invalidation signals
@@ -43150,7 +44142,7 @@ declare const GRANT_TYPES_SUPPORTED: readonly ["authorization_code", "refresh_to
43150
44142
  * `GET /.well-known/oauth-authorization-server` response (RFC 8414). Lets
43151
44143
  * CLIs / SDKs auto-discover endpoints. `authorization_endpoint` is the
43152
44144
  * **web** consent screen origin; `token_endpoint` / `revocation_endpoint`
43153
- * are the `/api/v2/oauth/*` API (the two live on different base URLs —
44145
+ * are the `/api/oauth/*` API (the two live on different base URLs —
43154
44146
  * RFC-0010, PHASE3-Q6). `device_authorization_endpoint` is optional so
43155
44147
  * Phase 4 can add it without a schema break.
43156
44148
  */
@@ -43282,7 +44274,14 @@ declare const RevisionSchema: z.ZodObject<{
43282
44274
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
43283
44275
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
43284
44276
  }, z.core.$strip>>;
43285
- renderedAst: z.ZodOptional<z.ZodUnknown>;
44277
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
44278
+ astVersion: z.ZodLiteral<1>;
44279
+ root: z.ZodUnknown;
44280
+ }, z.core.$strip>, z.ZodObject<{
44281
+ type: z.ZodLiteral<"root">;
44282
+ children: z.ZodArray<z.ZodUnknown>;
44283
+ }, z.core.$strip>]>>;
44284
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
43286
44285
  rendererVersion: z.ZodOptional<z.ZodString>;
43287
44286
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43288
44287
  type: z.ZodOptional<z.ZodEnum<{
@@ -43351,7 +44350,14 @@ declare const PageSchema: z.ZodObject<{
43351
44350
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
43352
44351
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
43353
44352
  }, z.core.$strip>>;
43354
- renderedAst: z.ZodOptional<z.ZodUnknown>;
44353
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
44354
+ astVersion: z.ZodLiteral<1>;
44355
+ root: z.ZodUnknown;
44356
+ }, z.core.$strip>, z.ZodObject<{
44357
+ type: z.ZodLiteral<"root">;
44358
+ children: z.ZodArray<z.ZodUnknown>;
44359
+ }, z.core.$strip>]>>;
44360
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
43355
44361
  rendererVersion: z.ZodOptional<z.ZodString>;
43356
44362
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43357
44363
  type: z.ZodOptional<z.ZodEnum<{
@@ -43478,7 +44484,14 @@ declare const PageWithRevisionSchema: z.ZodObject<{
43478
44484
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
43479
44485
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
43480
44486
  }, z.core.$strip>>;
43481
- renderedAst: z.ZodOptional<z.ZodUnknown>;
44487
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
44488
+ astVersion: z.ZodLiteral<1>;
44489
+ root: z.ZodUnknown;
44490
+ }, z.core.$strip>, z.ZodObject<{
44491
+ type: z.ZodLiteral<"root">;
44492
+ children: z.ZodArray<z.ZodUnknown>;
44493
+ }, z.core.$strip>]>>;
44494
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
43482
44495
  rendererVersion: z.ZodOptional<z.ZodString>;
43483
44496
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43484
44497
  type: z.ZodOptional<z.ZodEnum<{
@@ -43592,7 +44605,14 @@ declare const GetPageResponseSchema: z.ZodObject<{
43592
44605
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
43593
44606
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
43594
44607
  }, z.core.$strip>>;
43595
- renderedAst: z.ZodOptional<z.ZodUnknown>;
44608
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
44609
+ astVersion: z.ZodLiteral<1>;
44610
+ root: z.ZodUnknown;
44611
+ }, z.core.$strip>, z.ZodObject<{
44612
+ type: z.ZodLiteral<"root">;
44613
+ children: z.ZodArray<z.ZodUnknown>;
44614
+ }, z.core.$strip>]>>;
44615
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
43596
44616
  rendererVersion: z.ZodOptional<z.ZodString>;
43597
44617
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43598
44618
  type: z.ZodOptional<z.ZodEnum<{
@@ -43701,7 +44721,14 @@ declare const ClaimPageLinkAccessResponseSchema: z.ZodObject<{
43701
44721
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
43702
44722
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
43703
44723
  }, z.core.$strip>>;
43704
- renderedAst: z.ZodOptional<z.ZodUnknown>;
44724
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
44725
+ astVersion: z.ZodLiteral<1>;
44726
+ root: z.ZodUnknown;
44727
+ }, z.core.$strip>, z.ZodObject<{
44728
+ type: z.ZodLiteral<"root">;
44729
+ children: z.ZodArray<z.ZodUnknown>;
44730
+ }, z.core.$strip>]>>;
44731
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
43705
44732
  rendererVersion: z.ZodOptional<z.ZodString>;
43706
44733
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43707
44734
  type: z.ZodOptional<z.ZodEnum<{
@@ -43816,7 +44843,14 @@ declare const ListPagesResponseSchema: z.ZodObject<{
43816
44843
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
43817
44844
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
43818
44845
  }, z.core.$strip>>;
43819
- renderedAst: z.ZodOptional<z.ZodUnknown>;
44846
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
44847
+ astVersion: z.ZodLiteral<1>;
44848
+ root: z.ZodUnknown;
44849
+ }, z.core.$strip>, z.ZodObject<{
44850
+ type: z.ZodLiteral<"root">;
44851
+ children: z.ZodArray<z.ZodUnknown>;
44852
+ }, z.core.$strip>]>>;
44853
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
43820
44854
  rendererVersion: z.ZodOptional<z.ZodString>;
43821
44855
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43822
44856
  type: z.ZodOptional<z.ZodEnum<{
@@ -43927,7 +44961,14 @@ declare const ListPagesResponseSchema: z.ZodObject<{
43927
44961
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
43928
44962
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
43929
44963
  }, z.core.$strip>>;
43930
- renderedAst: z.ZodOptional<z.ZodUnknown>;
44964
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
44965
+ astVersion: z.ZodLiteral<1>;
44966
+ root: z.ZodUnknown;
44967
+ }, z.core.$strip>, z.ZodObject<{
44968
+ type: z.ZodLiteral<"root">;
44969
+ children: z.ZodArray<z.ZodUnknown>;
44970
+ }, z.core.$strip>]>>;
44971
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
43931
44972
  rendererVersion: z.ZodOptional<z.ZodString>;
43932
44973
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43933
44974
  type: z.ZodOptional<z.ZodEnum<{
@@ -44033,7 +45074,14 @@ declare const ListPagesResponseSchema: z.ZodObject<{
44033
45074
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
44034
45075
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
44035
45076
  }, z.core.$strip>>;
44036
- renderedAst: z.ZodOptional<z.ZodUnknown>;
45077
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
45078
+ astVersion: z.ZodLiteral<1>;
45079
+ root: z.ZodUnknown;
45080
+ }, z.core.$strip>, z.ZodObject<{
45081
+ type: z.ZodLiteral<"root">;
45082
+ children: z.ZodArray<z.ZodUnknown>;
45083
+ }, z.core.$strip>]>>;
45084
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
44037
45085
  rendererVersion: z.ZodOptional<z.ZodString>;
44038
45086
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44039
45087
  type: z.ZodOptional<z.ZodEnum<{
@@ -44104,6 +45152,7 @@ declare const ListPagesResponseSchema: z.ZodObject<{
44104
45152
  likerCount: z.ZodOptional<z.ZodNumber>;
44105
45153
  seenUsersCount: z.ZodOptional<z.ZodNumber>;
44106
45154
  }, z.core.$strip>>>;
45155
+ total: z.ZodNumber;
44107
45156
  }, z.core.$strip>;
44108
45157
  type ListPagesResponse = z.infer<typeof ListPagesResponseSchema>;
44109
45158
  declare const PageChildSegmentSchema: z.ZodObject<{
@@ -44215,7 +45264,14 @@ declare const RenamePageResponseSchema: z.ZodObject<{
44215
45264
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
44216
45265
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
44217
45266
  }, z.core.$strip>>;
44218
- renderedAst: z.ZodOptional<z.ZodUnknown>;
45267
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
45268
+ astVersion: z.ZodLiteral<1>;
45269
+ root: z.ZodUnknown;
45270
+ }, z.core.$strip>, z.ZodObject<{
45271
+ type: z.ZodLiteral<"root">;
45272
+ children: z.ZodArray<z.ZodUnknown>;
45273
+ }, z.core.$strip>]>>;
45274
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
44219
45275
  rendererVersion: z.ZodOptional<z.ZodString>;
44220
45276
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44221
45277
  type: z.ZodOptional<z.ZodEnum<{
@@ -44389,13 +45445,22 @@ declare const PreviewPageRequestSchema: z.ZodObject<{
44389
45445
  type PreviewPageRequest = z.infer<typeof PreviewPageRequestSchema>;
44390
45446
  /**
44391
45447
  * Response shape mirrors the `renderedAst` carried on a populated
44392
- * revision. We keep it as `z.unknown()` (same temperature as
44393
- * `RevisionSchema.renderedAst`) because the persisted mdast shape is
44394
- * external-spec / too deep to maintain a strict Zod schema for; the
44395
- * client casts to `mdast.Root` at the boundary.
45448
+ * revision (RFC-0023): the same envelope-or-bare-Root union as
45449
+ * `RevisionSchema.renderedAst` preview does NOT go through
45450
+ * `RevisionSchema`, so it must carry the union independently or the
45451
+ * declared-client (v1) preview response would never surface in the
45452
+ * contract types. `renderedAstArtifactKey` is a per-response nonce
45453
+ * here (preview output is never a stored artifact).
44396
45454
  */
44397
45455
  declare const PreviewPageResponseSchema: z.ZodObject<{
44398
- renderedAst: z.ZodUnknown;
45456
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
45457
+ astVersion: z.ZodLiteral<1>;
45458
+ root: z.ZodUnknown;
45459
+ }, z.core.$strip>, z.ZodObject<{
45460
+ type: z.ZodLiteral<"root">;
45461
+ children: z.ZodArray<z.ZodUnknown>;
45462
+ }, z.core.$strip>]>>;
45463
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
44399
45464
  }, z.core.$strip>;
44400
45465
  type PreviewPageResponse = z.infer<typeof PreviewPageResponseSchema>;
44401
45466
 
@@ -44435,7 +45500,7 @@ type ResetPasswordRequest = z.infer<typeof ResetPasswordRequestSchema>;
44435
45500
  *
44436
45501
  * Two surfaces are described here:
44437
45502
  *
44438
- * - the HTTP `GET /api/v2/pages/:id/presence-token` response
45503
+ * - the HTTP `GET /api/pages/:id/presence-token` response
44439
45504
  * (`PresenceTokenResponseSchema` / `PresenceTokenPayloadSchema`),
44440
45505
  * - the WebSocket `/presence/:pageId` message envelope
44441
45506
  * (`PresenceClientMessageSchema` / `PresenceServerMessageSchema`).
@@ -44447,7 +45512,7 @@ type ResetPasswordRequest = z.infer<typeof ResetPasswordRequestSchema>;
44447
45512
  * never be replayed against the presence channel and vice versa.
44448
45513
  */
44449
45514
  /**
44450
- * Response body of `GET /api/v2/pages/:id/presence-token`.
45515
+ * Response body of `GET /api/pages/:id/presence-token`.
44451
45516
  *
44452
45517
  * - `token` — short-lived JWT (5 min) the browser presents on
44453
45518
  * the `/presence/:pageId?token=` WebSocket connect.
@@ -44639,7 +45704,7 @@ declare const PresenceServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
44639
45704
  }, z.core.$strip>], "type">;
44640
45705
  type PresenceServerMessage = z.infer<typeof PresenceServerMessageSchema>;
44641
45706
  /**
44642
- * RFC-0005 Phase 3 — `GET /api/v2/pages/:id/likers`.
45707
+ * RFC-0005 Phase 3 — `GET /api/pages/:id/likers`.
44643
45708
  *
44644
45709
  * A single entry in the "liked by" list. Sourced from the page's
44645
45710
  * `liker` ObjectId array (the authoritative set of who liked the
@@ -44657,7 +45722,7 @@ declare const LikerSchema: z.ZodObject<{
44657
45722
  }, z.core.$strip>;
44658
45723
  type Liker = z.infer<typeof LikerSchema>;
44659
45724
  /**
44660
- * Response body of `GET /api/v2/pages/:id/likers`.
45725
+ * Response body of `GET /api/pages/:id/likers`.
44661
45726
  *
44662
45727
  * - `users` — the liker list, newest-liked first when `likedAt`
44663
45728
  * is known (entries without a timestamp sort last).
@@ -44675,12 +45740,588 @@ declare const LikersResponseSchema: z.ZodObject<{
44675
45740
  totalCount: z.ZodNumber;
44676
45741
  }, z.core.$strip>;
44677
45742
  type LikersResponse = z.infer<typeof LikersResponseSchema>;
44678
- /** Query schema of `GET /api/v2/pages/:id/likers`. */
45743
+ /** Query schema of `GET /api/pages/:id/likers`. */
44679
45744
  declare const GetLikersRequestSchema: z.ZodObject<{
44680
45745
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
44681
45746
  }, z.core.$strip>;
44682
45747
  type GetLikersRequest = z.infer<typeof GetLikersRequestSchema>;
44683
45748
 
45749
+ /**
45750
+ * RFC-0023 / feature-rendered-ast-wire-contract — the `renderedAst`
45751
+ * wire contract.
45752
+ *
45753
+ * Two independent layers live in this file:
45754
+ *
45755
+ * 1. **The OpenAPI-facing wire union** (`RenderedAstValueSchema`):
45756
+ * `RenderedAstEnvelopeOpenApiSchema | LooseRenderedAstRootSchema`.
45757
+ * The envelope member keeps `root` as `z.unknown()` at the OpenAPI
45758
+ * layer — this is the design doc §2's *documented fallback*: the
45759
+ * strict recursive discriminated union below is not flowed into the
45760
+ * OpenAPI generator (recursive `z.lazy` unions do not serialise
45761
+ * cleanly), and the legacy member is intentionally loose anyway.
45762
+ * The strict validation's effective enforcement points — the server
45763
+ * walker (`packages/api/src/renderer/sanitize-ast.ts`) and the iOS
45764
+ * decoder — are unaffected by this choice.
45765
+ *
45766
+ * 2. **The strict schemas + node registry** (`RenderedAstNodeSchema`,
45767
+ * `RENDERED_AST_NODE_DEFS`, sidecar schemas): the single authority
45768
+ * both the api-side sanitising walker (projection input + post-walk
45769
+ * `.parse()` assertion) and the dispatch sidecar mapper reference.
45770
+ *
45771
+ * The **legacy branch is unvalidated by contract** (design doc §2): a
45772
+ * request that does not declare `X-Crowi-Ast-Version: 1` receives the
45773
+ * stored bare mdast `Root` verbatim — no depth / byte / mediaType /
45774
+ * base64 / URL-scheme limit is ever applied to it, and
45775
+ * `LooseRenderedAstRootSchema` is deliberately NOT an alias of the
45776
+ * strict union (third-party `addUnifiedPlugin` / `addNodeRenderer`
45777
+ * nodes with arbitrary `type` strings are *expected* in legacy
45778
+ * responses). This loose member is permanent for as long as the web
45779
+ * client exists (design doc §9).
45780
+ */
45781
+ /** Contract generation of the typed AST wire shape. Single integer, not semver. */
45782
+ declare const CURRENT_AST_VERSION: 1;
45783
+ /**
45784
+ * Coarse input-side DoS gate for `sanitizeAst` — measured on the raw
45785
+ * stored AST (pre-projection). Also the per-AST component of the
45786
+ * save-time revision size guard (design doc §10) so a stored AST can
45787
+ * never trip this gate on read.
45788
+ */
45789
+ declare const AST_INPUT_LIMIT_BYTES: number;
45790
+ /** Output-side (post-projection) envelope budget — warn threshold. */
45791
+ declare const AST_OUTPUT_WARN_BYTES: number;
45792
+ /** Output-side (post-projection) envelope budget — node-degrade threshold. Never fails the whole envelope. */
45793
+ declare const AST_OUTPUT_BUDGET_BYTES: number;
45794
+ /** Iterative pre-pass tree depth limit (never rely on zod recursion for this). */
45795
+ declare const AST_MAX_TREE_DEPTH = 64;
45796
+ /** Iterative pre-pass depth limit for `data.hChildren` hast subtrees. */
45797
+ declare const AST_MAX_HAST_DEPTH = 16;
45798
+ /** base64 char cap for embedded diagram payloads (≈100KB decoded via the 4/3 expansion). */
45799
+ declare const AST_MAX_IMAGE_BASE64_CHARS = 140000;
45800
+ /** Free-form string value cap on wire nodes (`text.value`, `code.value`, `html.value`, TeX source, ...). */
45801
+ declare const AST_MAX_VALUE_CHARS = 200000;
45802
+ /**
45803
+ * Bounded `data.hProperties`. Explicit keys cover the shipped
45804
+ * producers (heading anchors, emoji a11y, preview scroll-sync, image
45805
+ * display attributes); the bounded catchall is the escape valve for
45806
+ * future HTML-attribute-like additions. The 4096-char string cap is
45807
+ * safe because no shipped producer ever puts a large payload into
45808
+ * `hProperties` — base64 diagrams / shiki HTML live inside `html`
45809
+ * node *values*, never here.
45810
+ */
45811
+ declare const HPropertiesSchema: z.ZodObject<{
45812
+ id: z.ZodOptional<z.ZodString>;
45813
+ className: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
45814
+ role: z.ZodOptional<z.ZodString>;
45815
+ ariaLabel: z.ZodOptional<z.ZodString>;
45816
+ 'data-source-line': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
45817
+ 'data-crowi-image-align': z.ZodOptional<z.ZodString>;
45818
+ 'data-crowi-image-float': z.ZodOptional<z.ZodString>;
45819
+ 'data-crowi-image-width': z.ZodOptional<z.ZodString>;
45820
+ 'data-crowi-image-height': z.ZodOptional<z.ZodString>;
45821
+ }, z.core.$catchall<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>>;
45822
+ /** Bounded hast subset allowed inside `data.hChildren` (e.g. remark-emoji's accessible text child). */
45823
+ type HChild = {
45824
+ type: 'raw';
45825
+ value: string;
45826
+ } | {
45827
+ type: 'text';
45828
+ value: string;
45829
+ } | {
45830
+ type: 'element';
45831
+ tagName: string;
45832
+ properties?: Record<string, unknown>;
45833
+ children: HChild[];
45834
+ };
45835
+ declare const HChildSchema: z.ZodType<HChild>;
45836
+ declare const HChildrenSchema: z.ZodArray<z.ZodType<HChild, unknown, z.core.$ZodTypeInternals<HChild, unknown>>>;
45837
+ declare const HNameSchema: z.ZodString;
45838
+ /** Common `data` every node type may optionally carry (design doc §4). */
45839
+ declare const HastHintDataSchema: z.ZodObject<{
45840
+ hName: z.ZodOptional<z.ZodString>;
45841
+ hProperties: z.ZodOptional<z.ZodObject<{
45842
+ id: z.ZodOptional<z.ZodString>;
45843
+ className: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
45844
+ role: z.ZodOptional<z.ZodString>;
45845
+ ariaLabel: z.ZodOptional<z.ZodString>;
45846
+ 'data-source-line': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
45847
+ 'data-crowi-image-align': z.ZodOptional<z.ZodString>;
45848
+ 'data-crowi-image-float': z.ZodOptional<z.ZodString>;
45849
+ 'data-crowi-image-width': z.ZodOptional<z.ZodString>;
45850
+ 'data-crowi-image-height': z.ZodOptional<z.ZodString>;
45851
+ }, z.core.$catchall<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>>>;
45852
+ hChildren: z.ZodOptional<z.ZodArray<z.ZodType<HChild, unknown, z.core.$ZodTypeInternals<HChild, unknown>>>>;
45853
+ }, z.core.$strip>;
45854
+ type HastHintData = z.infer<typeof HastHintDataSchema>;
45855
+ declare const CrowiDimensionSchema: z.ZodNumber;
45856
+ declare const CrowiImagePayloadSchema: z.ZodObject<{
45857
+ mediaType: z.ZodEnum<{
45858
+ "image/png": "image/png";
45859
+ "image/svg+xml": "image/svg+xml";
45860
+ }>;
45861
+ base64: z.ZodString;
45862
+ width: z.ZodNumber;
45863
+ height: z.ZodNumber;
45864
+ }, z.core.$strip>;
45865
+ type CrowiImagePayload = z.infer<typeof CrowiImagePayloadSchema>;
45866
+ declare const ShikiTokenStyleSchema: z.ZodObject<{
45867
+ color: z.ZodString;
45868
+ bgColor: z.ZodOptional<z.ZodString>;
45869
+ fontStyle: z.ZodOptional<z.ZodArray<z.ZodEnum<{
45870
+ bold: "bold";
45871
+ italic: "italic";
45872
+ underline: "underline";
45873
+ strikethrough: "strikethrough";
45874
+ }>>>;
45875
+ }, z.core.$strip>;
45876
+ declare const ShikiTokenSchema: z.ZodObject<{
45877
+ content: z.ZodString;
45878
+ light: z.ZodObject<{
45879
+ color: z.ZodString;
45880
+ bgColor: z.ZodOptional<z.ZodString>;
45881
+ fontStyle: z.ZodOptional<z.ZodArray<z.ZodEnum<{
45882
+ bold: "bold";
45883
+ italic: "italic";
45884
+ underline: "underline";
45885
+ strikethrough: "strikethrough";
45886
+ }>>>;
45887
+ }, z.core.$strip>;
45888
+ dark: z.ZodObject<{
45889
+ color: z.ZodString;
45890
+ bgColor: z.ZodOptional<z.ZodString>;
45891
+ fontStyle: z.ZodOptional<z.ZodArray<z.ZodEnum<{
45892
+ bold: "bold";
45893
+ italic: "italic";
45894
+ underline: "underline";
45895
+ strikethrough: "strikethrough";
45896
+ }>>>;
45897
+ }, z.core.$strip>;
45898
+ }, z.core.$strip>;
45899
+ type ShikiToken = z.infer<typeof ShikiTokenSchema>;
45900
+ declare const ShikiTokenLinesSchema: z.ZodArray<z.ZodArray<z.ZodObject<{
45901
+ content: z.ZodString;
45902
+ light: z.ZodObject<{
45903
+ color: z.ZodString;
45904
+ bgColor: z.ZodOptional<z.ZodString>;
45905
+ fontStyle: z.ZodOptional<z.ZodArray<z.ZodEnum<{
45906
+ bold: "bold";
45907
+ italic: "italic";
45908
+ underline: "underline";
45909
+ strikethrough: "strikethrough";
45910
+ }>>>;
45911
+ }, z.core.$strip>;
45912
+ dark: z.ZodObject<{
45913
+ color: z.ZodString;
45914
+ bgColor: z.ZodOptional<z.ZodString>;
45915
+ fontStyle: z.ZodOptional<z.ZodArray<z.ZodEnum<{
45916
+ bold: "bold";
45917
+ italic: "italic";
45918
+ underline: "underline";
45919
+ strikethrough: "strikethrough";
45920
+ }>>>;
45921
+ }, z.core.$strip>;
45922
+ }, z.core.$strip>>>;
45923
+ declare const CrowiCodeSidecarSchema: z.ZodObject<{
45924
+ lang: z.ZodOptional<z.ZodString>;
45925
+ value: z.ZodString;
45926
+ tokens: z.ZodArray<z.ZodArray<z.ZodObject<{
45927
+ content: z.ZodString;
45928
+ light: z.ZodObject<{
45929
+ color: z.ZodString;
45930
+ bgColor: z.ZodOptional<z.ZodString>;
45931
+ fontStyle: z.ZodOptional<z.ZodArray<z.ZodEnum<{
45932
+ bold: "bold";
45933
+ italic: "italic";
45934
+ underline: "underline";
45935
+ strikethrough: "strikethrough";
45936
+ }>>>;
45937
+ }, z.core.$strip>;
45938
+ dark: z.ZodObject<{
45939
+ color: z.ZodString;
45940
+ bgColor: z.ZodOptional<z.ZodString>;
45941
+ fontStyle: z.ZodOptional<z.ZodArray<z.ZodEnum<{
45942
+ bold: "bold";
45943
+ italic: "italic";
45944
+ underline: "underline";
45945
+ strikethrough: "strikethrough";
45946
+ }>>>;
45947
+ }, z.core.$strip>;
45948
+ }, z.core.$strip>>>;
45949
+ }, z.core.$strip>;
45950
+ type CrowiCodeSidecar = z.infer<typeof CrowiCodeSidecarSchema>;
45951
+ declare const CrowiMathSidecarSchema: z.ZodObject<{
45952
+ tex: z.ZodString;
45953
+ display: z.ZodBoolean;
45954
+ }, z.core.$strip>;
45955
+ type CrowiMathSidecar = z.infer<typeof CrowiMathSidecarSchema>;
45956
+ declare const CrowiDiagramSidecarSchema: z.ZodObject<{
45957
+ kind: z.ZodEnum<{
45958
+ mermaid: "mermaid";
45959
+ plantuml: "plantuml";
45960
+ }>;
45961
+ diagramType: z.ZodOptional<z.ZodString>;
45962
+ alt: z.ZodString;
45963
+ image: z.ZodObject<{
45964
+ mediaType: z.ZodEnum<{
45965
+ "image/png": "image/png";
45966
+ "image/svg+xml": "image/svg+xml";
45967
+ }>;
45968
+ base64: z.ZodString;
45969
+ width: z.ZodNumber;
45970
+ height: z.ZodNumber;
45971
+ }, z.core.$strip>;
45972
+ }, z.core.$strip>;
45973
+ type CrowiDiagramSidecar = z.infer<typeof CrowiDiagramSidecarSchema>;
45974
+ declare const CrowiLinkCardSidecarSchema: z.ZodObject<{
45975
+ url: z.ZodString;
45976
+ title: z.ZodOptional<z.ZodString>;
45977
+ description: z.ZodOptional<z.ZodString>;
45978
+ image: z.ZodOptional<z.ZodObject<{
45979
+ url: z.ZodString;
45980
+ }, z.core.$strip>>;
45981
+ siteName: z.ZodOptional<z.ZodString>;
45982
+ domain: z.ZodOptional<z.ZodString>;
45983
+ }, z.core.$strip>;
45984
+ type CrowiLinkCardSidecar = z.infer<typeof CrowiLinkCardSidecarSchema>;
45985
+ /**
45986
+ * The 13 placeholder kinds: the 8 render-error codes + the 2 cache
45987
+ * size-limit rejects + the per-run dispatch cap + the 2 validation
45988
+ * kinds. `validation-failed` is node-level (a known type failed a value
45989
+ * constraint); `envelope-invalid` is the envelope-level collapse
45990
+ * (design doc §7) — a distinct kind so clients can tell them apart
45991
+ * structurally without special-casing either.
45992
+ */
45993
+ declare const CrowiPlaceholderKindSchema: z.ZodEnum<{
45994
+ "error-auth": "error-auth";
45995
+ "error-rate-limit": "error-rate-limit";
45996
+ "error-not-found": "error-not-found";
45997
+ "error-network": "error-network";
45998
+ "error-timeout": "error-timeout";
45999
+ "error-unknown": "error-unknown";
46000
+ "error-blocked": "error-blocked";
46001
+ "error-busy": "error-busy";
46002
+ "size-limit-entry": "size-limit-entry";
46003
+ "size-limit-page": "size-limit-page";
46004
+ "dispatch-limit": "dispatch-limit";
46005
+ "validation-failed": "validation-failed";
46006
+ "envelope-invalid": "envelope-invalid";
46007
+ }>;
46008
+ type CrowiPlaceholderKind = z.infer<typeof CrowiPlaceholderKindSchema>;
46009
+ /** Mirror of `@crowi/plugin-api`'s `Reservation` union (that package must not depend on this one). */
46010
+ declare const ReservationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
46011
+ variant: z.ZodLiteral<"fixed">;
46012
+ widthPx: z.ZodOptional<z.ZodNumber>;
46013
+ heightPx: z.ZodNumber;
46014
+ }, z.core.$strip>, z.ZodObject<{
46015
+ variant: z.ZodLiteral<"aspect">;
46016
+ aspectRatio: z.ZodNumber;
46017
+ }, z.core.$strip>, z.ZodObject<{
46018
+ variant: z.ZodLiteral<"card">;
46019
+ size: z.ZodEnum<{
46020
+ small: "small";
46021
+ medium: "medium";
46022
+ large: "large";
46023
+ }>;
46024
+ }, z.core.$strip>], "variant">;
46025
+ type ReservationShape = z.infer<typeof ReservationSchema>;
46026
+ declare const CrowiPlaceholderSidecarSchema: z.ZodObject<{
46027
+ kind: z.ZodEnum<{
46028
+ "error-auth": "error-auth";
46029
+ "error-rate-limit": "error-rate-limit";
46030
+ "error-not-found": "error-not-found";
46031
+ "error-network": "error-network";
46032
+ "error-timeout": "error-timeout";
46033
+ "error-unknown": "error-unknown";
46034
+ "error-blocked": "error-blocked";
46035
+ "error-busy": "error-busy";
46036
+ "size-limit-entry": "size-limit-entry";
46037
+ "size-limit-page": "size-limit-page";
46038
+ "dispatch-limit": "dispatch-limit";
46039
+ "validation-failed": "validation-failed";
46040
+ "envelope-invalid": "envelope-invalid";
46041
+ }>;
46042
+ label: z.ZodString;
46043
+ reservation: z.ZodDiscriminatedUnion<[z.ZodObject<{
46044
+ variant: z.ZodLiteral<"fixed">;
46045
+ widthPx: z.ZodOptional<z.ZodNumber>;
46046
+ heightPx: z.ZodNumber;
46047
+ }, z.core.$strip>, z.ZodObject<{
46048
+ variant: z.ZodLiteral<"aspect">;
46049
+ aspectRatio: z.ZodNumber;
46050
+ }, z.core.$strip>, z.ZodObject<{
46051
+ variant: z.ZodLiteral<"card">;
46052
+ size: z.ZodEnum<{
46053
+ small: "small";
46054
+ medium: "medium";
46055
+ large: "large";
46056
+ }>;
46057
+ }, z.core.$strip>], "variant">;
46058
+ }, z.core.$strip>;
46059
+ type CrowiPlaceholderSidecar = z.infer<typeof CrowiPlaceholderSidecarSchema>;
46060
+ /** The sidecar keys a producer may stamp on an `html` node's `data`. Exactly one per node. */
46061
+ declare const SIDECAR_KEYS: readonly ["crowiCode", "crowiMath", "crowiDiagram", "crowiLinkCard", "crowiPlaceholder"];
46062
+ type SidecarKey = (typeof SIDECAR_KEYS)[number];
46063
+ /** Where a node may appear. `listItems` / `tableRows` / `tableCells` are the structural positions. */
46064
+ type AstPlacement = 'flow' | 'phrasing' | 'both' | 'listItems' | 'tableRows' | 'tableCells';
46065
+ /** What a node's `children` array contains (`none` = leaf; children are dropped). */
46066
+ type AstChildModel = 'flow' | 'phrasing' | 'listItems' | 'tableRows' | 'tableCells' | 'none';
46067
+ /** Structural view of a zod safeParse the walker consumes without depending on zod generics. */
46068
+ interface AstFieldsValidator {
46069
+ safeParse(value: unknown): {
46070
+ success: true;
46071
+ data: Record<string, unknown>;
46072
+ } | {
46073
+ success: false;
46074
+ error: unknown;
46075
+ };
46076
+ }
46077
+ interface RenderedAstNodeDef {
46078
+ placement: AstPlacement;
46079
+ childModel: AstChildModel;
46080
+ /** Own (non-`type` / non-`data` / non-`children`) fields, nullability per `@types/mdast`. */
46081
+ fields: AstFieldsValidator;
46082
+ }
46083
+ /**
46084
+ * The closed type registry (design doc §3). Applies ONLY to
46085
+ * `X-Crowi-Ast-Version: 1` envelope generation — legacy responses never
46086
+ * consult it, and third-party `x-<plugin>-<type>` nodes are opaque-ised
46087
+ * by design (the web keeps rendering them through `mdast-util-to-hast`'s
46088
+ * generic `data.hName` fallback on the legacy branch).
46089
+ */
46090
+ declare const RENDERED_AST_NODE_DEFS: Readonly<Record<string, RenderedAstNodeDef>>;
46091
+ /** A validated v1 wire node. Loose TS view; the runtime shape is pinned by the schema. */
46092
+ type RenderedAstNode = {
46093
+ type: string;
46094
+ } & Record<string, unknown>;
46095
+ declare const RenderedAstNodeSchema: z.ZodType<unknown>;
46096
+ declare const CrowiDiagramNodeSchema: z.ZodObject<{
46097
+ kind: z.ZodEnum<{
46098
+ mermaid: "mermaid";
46099
+ plantuml: "plantuml";
46100
+ }>;
46101
+ diagramType: z.ZodOptional<z.ZodString>;
46102
+ alt: z.ZodString;
46103
+ image: z.ZodObject<{
46104
+ mediaType: z.ZodEnum<{
46105
+ "image/png": "image/png";
46106
+ "image/svg+xml": "image/svg+xml";
46107
+ }>;
46108
+ base64: z.ZodString;
46109
+ width: z.ZodNumber;
46110
+ height: z.ZodNumber;
46111
+ }, z.core.$strip>;
46112
+ type: z.ZodLiteral<"crowiDiagram">;
46113
+ data: z.ZodOptional<z.ZodObject<{
46114
+ hName: z.ZodOptional<z.ZodString>;
46115
+ hProperties: z.ZodOptional<z.ZodObject<{
46116
+ id: z.ZodOptional<z.ZodString>;
46117
+ className: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
46118
+ role: z.ZodOptional<z.ZodString>;
46119
+ ariaLabel: z.ZodOptional<z.ZodString>;
46120
+ 'data-source-line': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
46121
+ 'data-crowi-image-align': z.ZodOptional<z.ZodString>;
46122
+ 'data-crowi-image-float': z.ZodOptional<z.ZodString>;
46123
+ 'data-crowi-image-width': z.ZodOptional<z.ZodString>;
46124
+ 'data-crowi-image-height': z.ZodOptional<z.ZodString>;
46125
+ }, z.core.$catchall<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>>>;
46126
+ hChildren: z.ZodOptional<z.ZodArray<z.ZodType<HChild, unknown, z.core.$ZodTypeInternals<HChild, unknown>>>>;
46127
+ }, z.core.$strip>>;
46128
+ }, z.core.$strip>;
46129
+ declare const CrowiLinkCardNodeSchema: z.ZodObject<{
46130
+ url: z.ZodString;
46131
+ title: z.ZodOptional<z.ZodString>;
46132
+ description: z.ZodOptional<z.ZodString>;
46133
+ image: z.ZodOptional<z.ZodObject<{
46134
+ url: z.ZodString;
46135
+ }, z.core.$strip>>;
46136
+ siteName: z.ZodOptional<z.ZodString>;
46137
+ domain: z.ZodOptional<z.ZodString>;
46138
+ type: z.ZodLiteral<"crowiLinkCard">;
46139
+ data: z.ZodOptional<z.ZodObject<{
46140
+ hName: z.ZodOptional<z.ZodString>;
46141
+ hProperties: z.ZodOptional<z.ZodObject<{
46142
+ id: z.ZodOptional<z.ZodString>;
46143
+ className: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
46144
+ role: z.ZodOptional<z.ZodString>;
46145
+ ariaLabel: z.ZodOptional<z.ZodString>;
46146
+ 'data-source-line': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
46147
+ 'data-crowi-image-align': z.ZodOptional<z.ZodString>;
46148
+ 'data-crowi-image-float': z.ZodOptional<z.ZodString>;
46149
+ 'data-crowi-image-width': z.ZodOptional<z.ZodString>;
46150
+ 'data-crowi-image-height': z.ZodOptional<z.ZodString>;
46151
+ }, z.core.$catchall<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>>>;
46152
+ hChildren: z.ZodOptional<z.ZodArray<z.ZodType<HChild, unknown, z.core.$ZodTypeInternals<HChild, unknown>>>>;
46153
+ }, z.core.$strip>>;
46154
+ }, z.core.$strip>;
46155
+ declare const CrowiPlaceholderNodeSchema: z.ZodObject<{
46156
+ kind: z.ZodEnum<{
46157
+ "error-auth": "error-auth";
46158
+ "error-rate-limit": "error-rate-limit";
46159
+ "error-not-found": "error-not-found";
46160
+ "error-network": "error-network";
46161
+ "error-timeout": "error-timeout";
46162
+ "error-unknown": "error-unknown";
46163
+ "error-blocked": "error-blocked";
46164
+ "error-busy": "error-busy";
46165
+ "size-limit-entry": "size-limit-entry";
46166
+ "size-limit-page": "size-limit-page";
46167
+ "dispatch-limit": "dispatch-limit";
46168
+ "validation-failed": "validation-failed";
46169
+ "envelope-invalid": "envelope-invalid";
46170
+ }>;
46171
+ label: z.ZodString;
46172
+ reservation: z.ZodDiscriminatedUnion<[z.ZodObject<{
46173
+ variant: z.ZodLiteral<"fixed">;
46174
+ widthPx: z.ZodOptional<z.ZodNumber>;
46175
+ heightPx: z.ZodNumber;
46176
+ }, z.core.$strip>, z.ZodObject<{
46177
+ variant: z.ZodLiteral<"aspect">;
46178
+ aspectRatio: z.ZodNumber;
46179
+ }, z.core.$strip>, z.ZodObject<{
46180
+ variant: z.ZodLiteral<"card">;
46181
+ size: z.ZodEnum<{
46182
+ small: "small";
46183
+ medium: "medium";
46184
+ large: "large";
46185
+ }>;
46186
+ }, z.core.$strip>], "variant">;
46187
+ type: z.ZodLiteral<"crowiPlaceholder">;
46188
+ data: z.ZodOptional<z.ZodObject<{
46189
+ hName: z.ZodOptional<z.ZodString>;
46190
+ hProperties: z.ZodOptional<z.ZodObject<{
46191
+ id: z.ZodOptional<z.ZodString>;
46192
+ className: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
46193
+ role: z.ZodOptional<z.ZodString>;
46194
+ ariaLabel: z.ZodOptional<z.ZodString>;
46195
+ 'data-source-line': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
46196
+ 'data-crowi-image-align': z.ZodOptional<z.ZodString>;
46197
+ 'data-crowi-image-float': z.ZodOptional<z.ZodString>;
46198
+ 'data-crowi-image-width': z.ZodOptional<z.ZodString>;
46199
+ 'data-crowi-image-height': z.ZodOptional<z.ZodString>;
46200
+ }, z.core.$catchall<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>>>;
46201
+ hChildren: z.ZodOptional<z.ZodArray<z.ZodType<HChild, unknown, z.core.$ZodTypeInternals<HChild, unknown>>>>;
46202
+ }, z.core.$strip>>;
46203
+ }, z.core.$strip>;
46204
+ declare const CrowiOpaqueNodeSchema: z.ZodObject<{
46205
+ reason: z.ZodEnum<{
46206
+ "unknown-type": "unknown-type";
46207
+ "invalid-shape": "invalid-shape";
46208
+ "invalid-position": "invalid-position";
46209
+ }>;
46210
+ originalType: z.ZodOptional<z.ZodString>;
46211
+ type: z.ZodLiteral<"crowiOpaque">;
46212
+ data: z.ZodOptional<z.ZodObject<{
46213
+ hName: z.ZodOptional<z.ZodString>;
46214
+ hProperties: z.ZodOptional<z.ZodObject<{
46215
+ id: z.ZodOptional<z.ZodString>;
46216
+ className: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
46217
+ role: z.ZodOptional<z.ZodString>;
46218
+ ariaLabel: z.ZodOptional<z.ZodString>;
46219
+ 'data-source-line': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
46220
+ 'data-crowi-image-align': z.ZodOptional<z.ZodString>;
46221
+ 'data-crowi-image-float': z.ZodOptional<z.ZodString>;
46222
+ 'data-crowi-image-width': z.ZodOptional<z.ZodString>;
46223
+ 'data-crowi-image-height': z.ZodOptional<z.ZodString>;
46224
+ }, z.core.$catchall<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>>>;
46225
+ hChildren: z.ZodOptional<z.ZodArray<z.ZodType<HChild, unknown, z.core.$ZodTypeInternals<HChild, unknown>>>>;
46226
+ }, z.core.$strip>>;
46227
+ }, z.core.$strip>;
46228
+ declare const RenderedAstRootSchema: z.ZodObject<{
46229
+ type: z.ZodLiteral<"root">;
46230
+ data: z.ZodOptional<z.ZodObject<{
46231
+ hName: z.ZodOptional<z.ZodString>;
46232
+ hProperties: z.ZodOptional<z.ZodObject<{
46233
+ id: z.ZodOptional<z.ZodString>;
46234
+ className: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
46235
+ role: z.ZodOptional<z.ZodString>;
46236
+ ariaLabel: z.ZodOptional<z.ZodString>;
46237
+ 'data-source-line': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
46238
+ 'data-crowi-image-align': z.ZodOptional<z.ZodString>;
46239
+ 'data-crowi-image-float': z.ZodOptional<z.ZodString>;
46240
+ 'data-crowi-image-width': z.ZodOptional<z.ZodString>;
46241
+ 'data-crowi-image-height': z.ZodOptional<z.ZodString>;
46242
+ }, z.core.$catchall<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>>>;
46243
+ hChildren: z.ZodOptional<z.ZodArray<z.ZodType<HChild, unknown, z.core.$ZodTypeInternals<HChild, unknown>>>>;
46244
+ }, z.core.$strip>>;
46245
+ children: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
46246
+ }, z.core.$strip>;
46247
+ /**
46248
+ * The strict v1 envelope: what `sanitizeAst` produces and what the iOS
46249
+ * decoder consumes. NOT flowed into OpenAPI (see the module doc
46250
+ * comment's fallback note); the OpenAPI representation of the envelope
46251
+ * is `RenderedAstEnvelopeOpenApiSchema` below.
46252
+ */
46253
+ declare const RenderedAstEnvelopeSchema: z.ZodObject<{
46254
+ astVersion: z.ZodLiteral<1>;
46255
+ root: z.ZodObject<{
46256
+ type: z.ZodLiteral<"root">;
46257
+ data: z.ZodOptional<z.ZodObject<{
46258
+ hName: z.ZodOptional<z.ZodString>;
46259
+ hProperties: z.ZodOptional<z.ZodObject<{
46260
+ id: z.ZodOptional<z.ZodString>;
46261
+ className: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
46262
+ role: z.ZodOptional<z.ZodString>;
46263
+ ariaLabel: z.ZodOptional<z.ZodString>;
46264
+ 'data-source-line': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
46265
+ 'data-crowi-image-align': z.ZodOptional<z.ZodString>;
46266
+ 'data-crowi-image-float': z.ZodOptional<z.ZodString>;
46267
+ 'data-crowi-image-width': z.ZodOptional<z.ZodString>;
46268
+ 'data-crowi-image-height': z.ZodOptional<z.ZodString>;
46269
+ }, z.core.$catchall<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>>>>;
46270
+ hChildren: z.ZodOptional<z.ZodArray<z.ZodType<HChild, unknown, z.core.$ZodTypeInternals<HChild, unknown>>>>;
46271
+ }, z.core.$strip>>;
46272
+ children: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
46273
+ }, z.core.$strip>;
46274
+ }, z.core.$strip>;
46275
+ /** OpenAPI representation of the v1 envelope (documented fallback: `root` stays loose at this layer). */
46276
+ declare const RenderedAstEnvelopeOpenApiSchema: z.ZodObject<{
46277
+ astVersion: z.ZodLiteral<1>;
46278
+ root: z.ZodUnknown;
46279
+ }, z.core.$strip>;
46280
+ /**
46281
+ * The shape the declaration-less (legacy) branch actually returns:
46282
+ * the stored bare mdast `Root`, verbatim and **unvalidated**.
46283
+ * Intentionally loose and intentionally NOT an alias of the strict
46284
+ * union — see the module doc comment.
46285
+ */
46286
+ declare const LooseRenderedAstRootSchema: z.ZodObject<{
46287
+ type: z.ZodLiteral<"root">;
46288
+ children: z.ZodArray<z.ZodUnknown>;
46289
+ }, z.core.$strip>;
46290
+ /** What `renderedAst` response fields carry: v1 envelope (declared clients) or bare Root (everyone else). */
46291
+ declare const RenderedAstValueSchema: z.ZodUnion<readonly [z.ZodObject<{
46292
+ astVersion: z.ZodLiteral<1>;
46293
+ root: z.ZodUnknown;
46294
+ }, z.core.$strip>, z.ZodObject<{
46295
+ type: z.ZodLiteral<"root">;
46296
+ children: z.ZodArray<z.ZodUnknown>;
46297
+ }, z.core.$strip>]>;
46298
+ type RenderedAstValue = z.infer<typeof RenderedAstValueSchema>;
46299
+ /**
46300
+ * Response-identity key for the served AST artifact (design doc §14):
46301
+ * `rendererVersion` when the stored AST was served verbatim, a
46302
+ * per-response nonce when the tree was modified (pending-marker retry)
46303
+ * or recomputed (freshness mismatch). The web render memo keys on
46304
+ * `[revisionId, renderedAstArtifactKey]`.
46305
+ */
46306
+ declare const RenderedAstArtifactKeySchema: z.ZodString;
46307
+ /**
46308
+ * Unwrap a `renderedAst` response value to a bare mdast-`Root`-shaped
46309
+ * object, or `undefined` when there is nothing renderable.
46310
+ *
46311
+ * In normal operation the web always receives the bare Root branch —
46312
+ * the envelope branch is pure belt-and-suspenders against a future
46313
+ * header-emitting mistake or a misconfigured reverse cache.
46314
+ */
46315
+ declare function unwrapRenderedAst(value: unknown): unknown | undefined;
46316
+ /** Strict envelope type (walker output / decoder input). */
46317
+ interface RenderedAstEnvelope {
46318
+ astVersion: typeof CURRENT_AST_VERSION;
46319
+ root: {
46320
+ type: 'root';
46321
+ children: unknown[];
46322
+ } & Record<string, unknown>;
46323
+ }
46324
+
44684
46325
  /**
44685
46326
  * Revision meta schema - lightweight (no body) for list endpoints.
44686
46327
  *
@@ -44820,7 +46461,14 @@ declare const GetRevisionResponseSchema: z.ZodObject<{
44820
46461
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
44821
46462
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
44822
46463
  }, z.core.$strip>>;
44823
- renderedAst: z.ZodOptional<z.ZodUnknown>;
46464
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
46465
+ astVersion: z.ZodLiteral<1>;
46466
+ root: z.ZodUnknown;
46467
+ }, z.core.$strip>, z.ZodObject<{
46468
+ type: z.ZodLiteral<"root">;
46469
+ children: z.ZodArray<z.ZodUnknown>;
46470
+ }, z.core.$strip>]>>;
46471
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
44824
46472
  rendererVersion: z.ZodOptional<z.ZodString>;
44825
46473
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44826
46474
  type: z.ZodOptional<z.ZodEnum<{
@@ -44891,7 +46539,14 @@ declare const GetRevisionsResponseSchema: z.ZodObject<{
44891
46539
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
44892
46540
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
44893
46541
  }, z.core.$strip>>;
44894
- renderedAst: z.ZodOptional<z.ZodUnknown>;
46542
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
46543
+ astVersion: z.ZodLiteral<1>;
46544
+ root: z.ZodUnknown;
46545
+ }, z.core.$strip>, z.ZodObject<{
46546
+ type: z.ZodLiteral<"root">;
46547
+ children: z.ZodArray<z.ZodUnknown>;
46548
+ }, z.core.$strip>]>>;
46549
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
44895
46550
  rendererVersion: z.ZodOptional<z.ZodString>;
44896
46551
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44897
46552
  type: z.ZodOptional<z.ZodEnum<{
@@ -44951,7 +46606,7 @@ declare const SearchPageTypeSchema: z.ZodEnum<{
44951
46606
  }>;
44952
46607
  type SearchPageType = z.infer<typeof SearchPageTypeSchema>;
44953
46608
  /**
44954
- * Request schema for `GET /api/v2/search`.
46609
+ * Request schema for `GET /api/search`.
44955
46610
  *
44956
46611
  * - `q` is required and must be non-empty (legacy parity with
44957
46612
  * `controllers/search.ts:!keyword`).
@@ -45021,7 +46676,14 @@ declare const SearchHitSchema: z.ZodObject<{
45021
46676
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
45022
46677
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
45023
46678
  }, z.core.$strip>>;
45024
- renderedAst: z.ZodOptional<z.ZodUnknown>;
46679
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
46680
+ astVersion: z.ZodLiteral<1>;
46681
+ root: z.ZodUnknown;
46682
+ }, z.core.$strip>, z.ZodObject<{
46683
+ type: z.ZodLiteral<"root">;
46684
+ children: z.ZodArray<z.ZodUnknown>;
46685
+ }, z.core.$strip>]>>;
46686
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
45025
46687
  rendererVersion: z.ZodOptional<z.ZodString>;
45026
46688
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45027
46689
  type: z.ZodOptional<z.ZodEnum<{
@@ -45095,7 +46757,7 @@ declare const SearchHitSchema: z.ZodObject<{
45095
46757
  }, z.core.$strip>;
45096
46758
  type SearchHit = z.infer<typeof SearchHitSchema>;
45097
46759
  /**
45098
- * Response schema for `GET /api/v2/search`.
46760
+ * Response schema for `GET /api/search`.
45099
46761
  *
45100
46762
  * - `meta.total` is the total number of matches across all pages (driver-reported).
45101
46763
  * - `meta.results` is the count in this response page (= `data.length`).
@@ -45148,7 +46810,14 @@ declare const SearchPagesResponseSchema: z.ZodObject<{
45148
46810
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
45149
46811
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
45150
46812
  }, z.core.$strip>>;
45151
- renderedAst: z.ZodOptional<z.ZodUnknown>;
46813
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
46814
+ astVersion: z.ZodLiteral<1>;
46815
+ root: z.ZodUnknown;
46816
+ }, z.core.$strip>, z.ZodObject<{
46817
+ type: z.ZodLiteral<"root">;
46818
+ children: z.ZodArray<z.ZodUnknown>;
46819
+ }, z.core.$strip>]>>;
46820
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
45152
46821
  rendererVersion: z.ZodOptional<z.ZodString>;
45153
46822
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45154
46823
  type: z.ZodOptional<z.ZodEnum<{
@@ -45301,6 +46970,8 @@ declare const UserPageResponseSchema: z.ZodObject<{
45301
46970
  }, z.core.$strip>;
45302
46971
  createdPagesCount: z.ZodNumber;
45303
46972
  bookmarksCount: z.ZodNumber;
46973
+ likesCount: z.ZodNumber;
46974
+ commentsCount: z.ZodNumber;
45304
46975
  recentPages: z.ZodOptional<z.ZodArray<z.ZodObject<{
45305
46976
  _id: z.ZodString;
45306
46977
  path: z.ZodString;
@@ -45336,7 +47007,14 @@ declare const UserPageResponseSchema: z.ZodObject<{
45336
47007
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
45337
47008
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
45338
47009
  }, z.core.$strip>>;
45339
- renderedAst: z.ZodOptional<z.ZodUnknown>;
47010
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
47011
+ astVersion: z.ZodLiteral<1>;
47012
+ root: z.ZodUnknown;
47013
+ }, z.core.$strip>, z.ZodObject<{
47014
+ type: z.ZodLiteral<"root">;
47015
+ children: z.ZodArray<z.ZodUnknown>;
47016
+ }, z.core.$strip>]>>;
47017
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
45340
47018
  rendererVersion: z.ZodOptional<z.ZodString>;
45341
47019
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45342
47020
  type: z.ZodOptional<z.ZodEnum<{
@@ -45444,7 +47122,14 @@ declare const UserPageResponseSchema: z.ZodObject<{
45444
47122
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
45445
47123
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
45446
47124
  }, z.core.$strip>>;
45447
- renderedAst: z.ZodOptional<z.ZodUnknown>;
47125
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
47126
+ astVersion: z.ZodLiteral<1>;
47127
+ root: z.ZodUnknown;
47128
+ }, z.core.$strip>, z.ZodObject<{
47129
+ type: z.ZodLiteral<"root">;
47130
+ children: z.ZodArray<z.ZodUnknown>;
47131
+ }, z.core.$strip>]>>;
47132
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
45448
47133
  rendererVersion: z.ZodOptional<z.ZodString>;
45449
47134
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45450
47135
  type: z.ZodOptional<z.ZodEnum<{
@@ -45575,7 +47260,14 @@ declare const UserBookmarksResponseSchema: z.ZodObject<{
45575
47260
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
45576
47261
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
45577
47262
  }, z.core.$strip>>;
45578
- renderedAst: z.ZodOptional<z.ZodUnknown>;
47263
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
47264
+ astVersion: z.ZodLiteral<1>;
47265
+ root: z.ZodUnknown;
47266
+ }, z.core.$strip>, z.ZodObject<{
47267
+ type: z.ZodLiteral<"root">;
47268
+ children: z.ZodArray<z.ZodUnknown>;
47269
+ }, z.core.$strip>]>>;
47270
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
45579
47271
  rendererVersion: z.ZodOptional<z.ZodString>;
45580
47272
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45581
47273
  type: z.ZodOptional<z.ZodEnum<{
@@ -45710,7 +47402,14 @@ declare const UserPagesResponseSchema: z.ZodObject<{
45710
47402
  codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
45711
47403
  rawSpaceLinks: z.ZodOptional<z.ZodArray<z.ZodString>>;
45712
47404
  }, z.core.$strip>>;
45713
- renderedAst: z.ZodOptional<z.ZodUnknown>;
47405
+ renderedAst: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
47406
+ astVersion: z.ZodLiteral<1>;
47407
+ root: z.ZodUnknown;
47408
+ }, z.core.$strip>, z.ZodObject<{
47409
+ type: z.ZodLiteral<"root">;
47410
+ children: z.ZodArray<z.ZodUnknown>;
47411
+ }, z.core.$strip>]>>;
47412
+ renderedAstArtifactKey: z.ZodOptional<z.ZodString>;
45714
47413
  rendererVersion: z.ZodOptional<z.ZodString>;
45715
47414
  parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45716
47415
  type: z.ZodOptional<z.ZodEnum<{
@@ -45830,6 +47529,27 @@ declare const UserPublicSchema: z.ZodObject<{
45830
47529
  }, z.core.$strip>;
45831
47530
  type UserPublic = z.infer<typeof UserPublicSchema>;
45832
47531
 
47532
+ /**
47533
+ * The single username syntax contract shared by every write path that can
47534
+ * set a `username`: self-registration (`TokenAuthRegisterRequestSchema`),
47535
+ * invite acceptance (`InviteAcceptRequestSchema`), first-admin creation
47536
+ * (`CreateAdminRequestSchema`), and the `User` Mongoose model's own field
47537
+ * validator (`packages/api/src/models/user.ts`). No `trim()`, case
47538
+ * folding, or Unicode normalization: any of those would silently rewrite
47539
+ * the stored value away from what the caller sent, which would disagree
47540
+ * with the existing case-insensitive unique collation
47541
+ * (`USER_UNIQUE_COLLATION`) and with already-stored data.
47542
+ *
47543
+ * The allowed set — ASCII `[A-Za-z0-9_-]`, 1-64 characters — matches the
47544
+ * mention renderer's `MENTION_RE` exactly
47545
+ * (`packages/api/src/renderer/core/mentions.ts`), so a stored username is
47546
+ * always a syntactically valid `@mention` target. `.` is deliberately not
47547
+ * allowed even though the installer's previous regex permitted it — that
47548
+ * was an existing inconsistency this contract removes.
47549
+ */
47550
+ declare const UsernameSchema: z.ZodString;
47551
+ type Username = z.infer<typeof UsernameSchema>;
47552
+
45833
47553
  /**
45834
47554
  * Canonical HTML5 element name set + a helper for stripping HTML tags from
45835
47555
  * arbitrary text.
@@ -45936,4 +47656,4 @@ declare const WS_CLOSE_CODES: {
45936
47656
  };
45937
47657
  type WsCloseCode = (typeof WS_CLOSE_CODES)[keyof typeof WS_CLOSE_CODES];
45938
47658
 
45939
- export { ALL_CAPABILITIES, 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 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 Capability, CapabilitySchema, type ClaimPageLinkAccessResponse, ClaimPageLinkAccessResponseSchema, type ClearRenderCacheResponse, ClearRenderCacheResponseSchema, type ClientInfoResponse, ClientInfoResponseSchema, type ClientOptions, type CollabForceReloadMessage, CollabForceReloadMessageSchema, type CollabSaveError, CollabSaveErrorSchema, type CollabSaveMessage, CollabSaveMessageSchema, type CollabSaveOk, CollabSaveOkSchema, type Comment, type CommentInvalidRequestError, CommentInvalidRequestErrorSchema, type CommentNotFoundError, CommentNotFoundErrorSchema, CommentSchema, type 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, DYNAMIC_CAPABILITIES, type DeleteAdminUserResponse, DeleteAdminUserResponseSchema, type DeleteCommentRequest, DeleteCommentRequestSchema, type DeleteCommentResponse, DeleteCommentResponseSchema, type DeviceAuthorizeRequest, DeviceAuthorizeRequestSchema, type DeviceAuthorizeResponse, DeviceAuthorizeResponseSchema, type DeviceInfoResponse, DeviceInfoResponseSchema, type DeviceVerifyRequest, DeviceVerifyRequestSchema, type DeviceVerifyResponse, DeviceVerifyResponseSchema, type DiscoveryResponse, DiscoveryResponseSchema, type DraftBadRequestError, DraftBadRequestErrorSchema, type DraftConflictOwner, DraftConflictOwnerSchema, type DraftNotFoundError, DraftNotFoundErrorSchema, type DraftPathConflictError, DraftPathConflictErrorSchema, type DraftSummary, DraftSummarySchema, ERROR_CODES, type EditAdminUserRequest, EditAdminUserRequestSchema, type EncryptionNotConfiguredError, EncryptionNotConfiguredErrorSchema, type ErrorCode, ErrorCodeSchema, type 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 PresenceCommentChangedMessage, PresenceCommentChangedMessageSchema, type PresenceHeartbeatMessage, PresenceHeartbeatMessageSchema, type PresencePageUpdatedMessage, PresencePageUpdatedMessageSchema, type PresenceServerMessage, PresenceServerMessageSchema, type PresenceTokenPayload, PresenceTokenPayloadSchema, type PresenceTokenResponse, PresenceTokenResponseSchema, type PresenceViewer, PresenceViewerSchema, type PresenceViewersMessage, PresenceViewersMessageSchema, type PreviewPageRequest, PreviewPageRequestSchema, type PreviewPageResponse, PreviewPageResponseSchema, type ProfileErrorResponse, ProfileErrorResponseSchema, 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 UserSubpagesRequest, UserSubpagesRequestSchema, type ValidationError, ValidationErrorSchema, WS_CLOSE_CODES, type WatchStatusResponse, WatchStatusResponseSchema, type WikiLinkResponse, WikiLinkSchema, type WsCloseCode, type WsTokenPayload, WsTokenPayloadSchema, type WsTokenResponse, WsTokenResponseSchema, acceptInviteRoute, accessTokenRoutes, activateAccountRoute, activateUserRoute, activationRoutes, addAttachmentRoute, addBookmarkRoute, addCommentRoute, adminAppRoutes, adminAuthRoutes, adminCryptoRoutes, adminMailRoutes, adminPluginsRoutes, adminSearchRoutes, adminSecurityRoutes, adminStorageRoutes, adminUsersRoutes, appRoutes, attachmentRoutes, authorizeRoute, autocompletePagesRoute, autocompleteRoutes, autocompleteUsersRoute, backlinkRoutes, bookmarkRoutes, cancelDraftRoute, claimPageLinkAccessRoute, clearRenderCacheAllRoute, clearRenderCachePluginRoute, clientInfoRoute, 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, getUserSubpagesRoute, 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 };
47659
+ export { ALL_CAPABILITIES, ALL_SCOPES, API_SURFACE_VERSION, AST_INPUT_LIMIT_BYTES, AST_MAX_HAST_DEPTH, AST_MAX_IMAGE_BASE64_CHARS, AST_MAX_TREE_DEPTH, AST_MAX_VALUE_CHARS, AST_OUTPUT_BUDGET_BYTES, AST_OUTPUT_WARN_BYTES, type AccessToken, AccessTokenSchema, type ActivateRequest, ActivateRequestSchema, type ActivateValidationResponse, ActivateValidationResponseSchema, type ActiveSearchDriver, ActiveSearchDriverSchema, type ActiveStorageDriver, ActiveStorageDriverSchema, type AddAttachmentResponse, AddAttachmentResponseSchema, type AddBookmarkRequest, AddBookmarkRequestSchema, type AddCommentRequest, AddCommentRequestSchema, type AddCommentResponse, AddCommentResponseSchema, type AdminPager, AdminPagerSchema, type AdminRequiredError, AdminRequiredErrorSchema, type AdminSettingsContractApp, AdminSidebarSection, type AdminSidebarSectionValue, type AdminUserIdParam, AdminUserIdParamSchema, type AdminUserMutationResponse, AdminUserMutationResponseSchema, type AdminUsersPluginsContractApp, type ApiError, ApiErrorSchema, type AppAuthMeUserChain, type AppInfoResponse, AppInfoResponseSchema, type AppSettingsValidationError, AppSettingsValidationErrorSchema, type ApplicationNotInstalledError, ApplicationNotInstalledErrorSchema, type AstChildModel, type AstFieldsValidator, type AstPlacement, type Attachment, type AttachmentError, AttachmentErrorCodeSchema, AttachmentErrorSchema, type AttachmentMeta, AttachmentMetaSchema, AttachmentSchema, type AttachmentUsageResponse, AttachmentUsageResponseSchema, type AuthSettings, AuthSettingsSchema, type AuthenticationRequiredError, AuthenticationRequiredErrorSchema, type AuthorizeRequest, AuthorizeRequestSchema, type AuthorizeResponse, AuthorizeResponseSchema, type AutocompleteRateLimitError, AutocompleteRateLimitErrorSchema, type AutocompleteRequest, AutocompleteRequestSchema, type AutocompleteResponse, AutocompleteResponseSchema, type AutocompleteResult, AutocompleteResultSchema, type Backlink, type BacklinkFromPage, BacklinkFromPageSchema, type BacklinkFromRevision, BacklinkFromRevisionSchema, BacklinkSchema, type Bookmark, type BookmarkBacklinkCommentRevisionChain, type BookmarkResponse, BookmarkResponseSchema, BookmarkSchema, CURRENT_AST_VERSION, type Capability, CapabilitySchema, type ClaimPageLinkAccessResponse, ClaimPageLinkAccessResponseSchema, type ClearRenderCacheResponse, ClearRenderCacheResponseSchema, type ClientInfoResponse, ClientInfoResponseSchema, type ClientOptions, type CollabForceReloadMessage, CollabForceReloadMessageSchema, type CollabSaveError, CollabSaveErrorSchema, type CollabSaveMessage, CollabSaveMessageSchema, type CollabSaveOk, CollabSaveOkSchema, type Comment, type CommentInvalidRequestError, CommentInvalidRequestErrorSchema, type CommentNotFoundError, CommentNotFoundErrorSchema, CommentSchema, type 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 CrowiCodeSidecar, CrowiCodeSidecarSchema, CrowiDiagramNodeSchema, type CrowiDiagramSidecar, CrowiDiagramSidecarSchema, CrowiDimensionSchema, type CrowiImagePayload, CrowiImagePayloadSchema, CrowiLinkCardNodeSchema, type CrowiLinkCardSidecar, CrowiLinkCardSidecarSchema, type CrowiMathSidecar, CrowiMathSidecarSchema, CrowiOpaqueNodeSchema, type CrowiPlaceholderKind, CrowiPlaceholderKindSchema, CrowiPlaceholderNodeSchema, type CrowiPlaceholderSidecar, CrowiPlaceholderSidecarSchema, type CryptoStatusResponse, CryptoStatusResponseSchema, DEVICE_CODE_GRANT_TYPE, DISCOVERY_SCOPES_SUPPORTED, DYNAMIC_CAPABILITIES, type DeleteAdminUserResponse, DeleteAdminUserResponseSchema, type DeleteCommentRequest, DeleteCommentRequestSchema, type DeleteCommentResponse, DeleteCommentResponseSchema, type DeviceAuthorizeRequest, DeviceAuthorizeRequestSchema, type DeviceAuthorizeResponse, DeviceAuthorizeResponseSchema, type DeviceInfoResponse, DeviceInfoResponseSchema, type DeviceVerifyRequest, DeviceVerifyRequestSchema, type DeviceVerifyResponse, DeviceVerifyResponseSchema, type DiscoveryResponse, DiscoveryResponseSchema, type DraftBadRequestError, DraftBadRequestErrorSchema, type DraftConflictOwner, DraftConflictOwnerSchema, type DraftNotFoundError, DraftNotFoundErrorSchema, type DraftPathConflictError, DraftPathConflictErrorSchema, type DraftSummary, DraftSummarySchema, ERROR_CODES, type EditAdminUserRequest, EditAdminUserRequestSchema, type EncryptionNotConfiguredError, EncryptionNotConfiguredErrorSchema, type ErrorCode, ErrorCodeSchema, type ForbiddenError, ForbiddenErrorSchema, type ForgotPasswordRequest, ForgotPasswordRequestSchema, type ForgotPasswordResponse, ForgotPasswordResponseSchema, GRANT_TYPES_SUPPORTED, type GetAppSettingsResponse, GetAppSettingsResponseSchema, type GetAuthSettingsResponse, GetAuthSettingsResponseSchema, type GetBacklinksRequest, GetBacklinksRequestSchema, type GetBacklinksResponse, GetBacklinksResponseSchema, type GetBookmarkRequest, GetBookmarkRequestSchema, type GetLikersRequest, GetLikersRequestSchema, type GetMailSettingsResponse, GetMailSettingsResponseSchema, type GetPageRequest, GetPageRequestSchema, type GetPageResponse, GetPageResponseSchema, type GetRevisionResponse, GetRevisionResponseSchema, type GetRevisionsRequest, GetRevisionsRequestSchema, type GetRevisionsResponse, GetRevisionsResponseSchema, type GetSearchStatusResponse, GetSearchStatusResponseSchema, type GetSecuritySettingsResponse, GetSecuritySettingsResponseSchema, type GetSeenUsersRequest, GetSeenUsersRequestSchema, type GetStorageStatusResponse, GetStorageStatusResponseSchema, type GetWatchStatusRequest, GetWatchStatusRequestSchema, type HChild, HChildSchema, HChildrenSchema, HNameSchema, HPropertiesSchema, type HastHintData, HastHintDataSchema, ISSUABLE_SCOPES, InstallerStatusResponseSchema, type InsufficientScopeError, InsufficientScopeErrorSchema, type InternalServerError, InternalServerErrorSchema, type InvalidPageIdError, InvalidPageIdErrorSchema, type InvalidScopeError, InvalidScopeErrorSchema, type InviteAcceptRequest, InviteAcceptRequestSchema, type InvitePreviewResponse, InvitePreviewResponseSchema, type InviteUsersRequest, InviteUsersRequestSchema, type InviteUsersResponse, InviteUsersResponseSchema, type InvitedUserResult, InvitedUserResultSchema, KNOWN_HTML_ELEMENTS, type Language, LanguageSchema, type LateContractApp, type Liker, LikerSchema, type LikersResponse, LikersResponseSchema, type ListAccessTokensResponse, ListAccessTokensResponseSchema, type ListAdminUsersRequest, ListAdminUsersRequestSchema, type ListAdminUsersResponse, ListAdminUsersResponseSchema, type ListAttachmentsResponse, ListAttachmentsResponseSchema, type ListCommentsRequest, ListCommentsRequestSchema, type ListCommentsResponse, ListCommentsResponseSchema, type ListDraftsResponse, ListDraftsResponseSchema, type ListMyBookmarksResponse, ListMyBookmarksResponseSchema, type ListNotificationsRequest, ListNotificationsRequestSchema, type ListNotificationsResponse, ListNotificationsResponseSchema, type ListPageChildrenRequest, ListPageChildrenRequestSchema, type ListPageChildrenResponse, ListPageChildrenResponseSchema, type ListPagesRequest, ListPagesRequestSchema, type ListPagesResponse, ListPagesResponseSchema, type ListPagesSort, type ListPluginsResponse, ListPluginsResponseSchema, type ListRevisionsRequest, ListRevisionsRequestSchema, type ListRevisionsResponse, ListRevisionsResponseSchema, type ListUsersRequest, ListUsersRequestSchema, type ListUsersResponse, ListUsersResponseSchema, LooseRenderedAstRootSchema, type MailSettingsValidationError, MailSettingsValidationErrorSchema, type MailTokenPayload, MailTokenPayloadSchema, type MailTokenPurpose, MailTokenPurposeSchema, type MarkAllAsReadResponse, MarkAllAsReadResponseSchema, type MentionResponse, MentionSchema, type NotFoundError, NotFoundErrorSchema, type Notification, type NotificationAction, NotificationActionEnum, NotificationActionSchema, type NotificationNotFoundError, NotificationNotFoundErrorSchema, NotificationSchema, type NotificationStatus, NotificationStatusEnum, type NotificationStatusResponse, NotificationStatusResponseSchema, NotificationStatusSchema, type NotificationTargetModel, NotificationTargetModelEnum, NotificationTargetModelSchema, type NotificationsChangedMessage, NotificationsChangedMessageSchema, type NotificationsServerMessage, NotificationsServerMessageSchema, type NotificationsTokenPayload, NotificationsTokenPayloadSchema, type NotificationsTokenResponse, NotificationsTokenResponseSchema, OAUTH_ERROR_CODES, type OAuthContractApp, type OAuthError, type OAuthErrorCode, OAuthErrorSchema, type OpenNotificationParam, OpenNotificationParamSchema, type OpenNotificationResponse, OpenNotificationResponseSchema, type Page, type PageChain, type PageChildSegment, PageChildSegmentSchema, PageExtendedSchema, PageGrantEnum, PageGrantSchema, type PageNotFoundError, PageNotFoundErrorSchema, type PageNotGrantedError, PageNotGrantedErrorSchema, type PageRef, PageRefSchema, type PageRevisionError, PageRevisionErrorSchema, PageSchema, PageStatusEnum, PageStatusSchema, PageTypeEnum, PageTypeSchema, type PageUser, PageUserSchema, type PageWithRevision, PageWithRevisionSchema, type Pager, PagerSchema, type PaginationRequest, PaginationRequestSchema, type PasswordErrorResponse, PasswordErrorResponseSchema, type PasswordUpdateSuccess, PasswordUpdateSuccessSchema, type PastAttachmentUsage, PastAttachmentUsageSchema, type PendingUsersCountResponse, PendingUsersCountResponseSchema, type PictureUploadResponse, PictureUploadResponseSchema, type PluginAdminPlacement, PluginAdminPlacementSchema, type PluginConfigResponse, PluginConfigResponseSchema, type PluginConfigValidationError, PluginConfigValidationErrorSchema, type PluginField, PluginFieldSchema, type PluginInfo, PluginInfoSchema, type PluginNotFoundError, PluginNotFoundErrorSchema, type PluginReadinessField, PluginReadinessFieldSchema, type PluginReadinessIssue, PluginReadinessIssueSchema, type PluginReadinessResponse, PluginReadinessResponseSchema, type PresenceClientMessage, PresenceClientMessageSchema, type PresenceCommentChangedMessage, PresenceCommentChangedMessageSchema, type PresenceHeartbeatMessage, PresenceHeartbeatMessageSchema, type PresencePageUpdatedMessage, PresencePageUpdatedMessageSchema, type PresenceServerMessage, PresenceServerMessageSchema, type PresenceTokenPayload, PresenceTokenPayloadSchema, type PresenceTokenResponse, PresenceTokenResponseSchema, type PresenceViewer, PresenceViewerSchema, type PresenceViewersMessage, PresenceViewersMessageSchema, type PreviewPageRequest, PreviewPageRequestSchema, type PreviewPageResponse, PreviewPageResponseSchema, type ProfileErrorResponse, ProfileErrorResponseSchema, RENDERED_AST_NODE_DEFS, type RecentlyViewedPagesResponse, RecentlyViewedPagesResponseSchema, type ReencryptResponse, ReencryptResponseSchema, RefreshTokenRequestSchema, type RegisterPendingResponse, RegisterPendingResponseSchema, type RegistrationMode, RegistrationModeSchema, type RemoveAttachmentResponse, RemoveAttachmentResponseSchema, type RemoveBookmarkRequest, RemoveBookmarkRequestSchema, type RemoveBookmarkResponse, RemoveBookmarkResponseSchema, type RenamePageRequest, RenamePageRequestSchema, type RenamePageResponse, RenamePageResponseSchema, type RenameSubtreeRequest, RenameSubtreeRequestSchema, type RenameSubtreeResponse, RenameSubtreeResponseSchema, type RenameTreeError, RenameTreeErrorSchema, RenderedAstArtifactKeySchema, type RenderedAstEnvelope, RenderedAstEnvelopeOpenApiSchema, RenderedAstEnvelopeSchema, type RenderedAstNode, type RenderedAstNodeDef, RenderedAstNodeSchema, RenderedAstRootSchema, type RenderedAstValue, RenderedAstValueSchema, ReservationSchema, type ReservationShape, type ResetPasswordRequest, ResetPasswordRequestSchema, type ResetPasswordResponse, ResetPasswordResponseSchema, type RevertToRevisionRequest, RevertToRevisionRequestSchema, type Revision, type RevisionInvalidRequestError, RevisionInvalidRequestErrorSchema, type RevisionMeta, RevisionMetaSchema, RevisionMetaSchemaShape, type RevisionMetaShape, RevisionSchema, type RevisionType, RevisionTypeSchema, type RevokeRequest, RevokeRequestSchema, type RevokeResponse, RevokeResponseSchema, SCOPES, SIDECAR_KEYS, STATIC_CAPABILITIES, STRIP_KNOWN_HTML_TAGS_MAX_LENGTH, type Scope, type SearchAdminUsersByEmailRequest, SearchAdminUsersByEmailRequestSchema, type SearchAdminUsersByEmailResponse, SearchAdminUsersByEmailResponseSchema, type SearchDriverEntry, SearchDriverEntrySchema, type SearchHit, SearchHitSchema, type SearchPageType, SearchPageTypeSchema, type SearchPagesRequest, SearchPagesRequestSchema, type SearchPagesResponse, SearchPagesResponseSchema, type SecuritySettings, SecuritySettingsSchema, type SeenPageRequest, SeenPageRequestSchema, type SeenUsersResponse, SeenUsersResponseSchema, type SendTestMailError, SendTestMailErrorSchema, type SendTestMailRequest, SendTestMailRequestSchema, type SendTestMailResponse, SendTestMailResponseSchema, type SensitiveConfigEntry, SensitiveConfigEntrySchema, type ServiceUnavailableError, ServiceUnavailableErrorSchema, type SetPageGrantRequest, SetPageGrantRequestSchema, type SetWatchStatusRequest, SetWatchStatusRequestSchema, type ShikiToken, ShikiTokenLinesSchema, ShikiTokenSchema, ShikiTokenStyleSchema, type SidecarKey, type StorageDriverEntry, StorageDriverEntrySchema, type SuccessResponse, SuccessResponseSchema, type Theme, ThemeSchema, type ThemeUpdateResponse, ThemeUpdateResponseSchema, type ThirdPartyAuthRequiredError, ThirdPartyAuthRequiredErrorSchema, type ThirdPartyAuthUnavailableError, ThirdPartyAuthUnavailableErrorSchema, type TocEntryResponse, TocEntrySchema, TokenAuthLoginRequestSchema, TokenAuthRegisterRequestSchema, TokenAuthResponseSchema, type TokenRequest, TokenRequestSchema, type TokenResponse, TokenResponseSchema, UPLOAD_ALLOWED_MIME, type UpdateAdminUserEmailRequest, UpdateAdminUserEmailRequestSchema, type UpdateAppSettingsRequest, UpdateAppSettingsRequestSchema, type UpdateAppSettingsResponse, UpdateAppSettingsResponseSchema, type UpdateAuthSettingsRequest, UpdateAuthSettingsRequestSchema, type UpdateAuthSettingsResponse, UpdateAuthSettingsResponseSchema, type UpdateMailSettingsRequest, UpdateMailSettingsRequestSchema, type UpdateMailSettingsResponse, UpdateMailSettingsResponseSchema, type UpdatePageRequest, UpdatePageRequestSchema, type UpdatePasswordRequest, UpdatePasswordRequestSchema, type UpdatePluginConfigRequest, UpdatePluginConfigRequestSchema, type UpdatePluginConfigResponse, UpdatePluginConfigResponseSchema, type UpdateProfileRequest, UpdateProfileRequestSchema, type UpdateSecuritySettingsRequest, UpdateSecuritySettingsRequestSchema, type UpdateSecuritySettingsResponse, UpdateSecuritySettingsResponseSchema, type UpdateThemeRequest, UpdateThemeRequestSchema, type UploadAttachmentError, type UploadAttachmentErrorCode, UploadAttachmentErrorCodeSchema, UploadAttachmentErrorSchema, type UploadAttachmentResponse, UploadAttachmentResponseSchema, type UserBookmarksResponse, UserBookmarksResponseSchema, type UserLanguage, UserLanguageSchema, type UserListItem, UserListItemSchema, type UserNotFoundError, UserNotFoundErrorSchema, type UserPageResponse, UserPageResponseSchema, type UserPagesResponse, UserPagesResponseSchema, type UserProfileResponse, UserProfileResponseSchema, type UserPublic, UserPublicSchema, UserPublicStatus, UserStatusEnum, type UserStatusError, UserStatusErrorSchema, UserStatusSchema, type UserSubpagesRequest, UserSubpagesRequestSchema, type Username, UsernameSchema, type ValidationError, ValidationErrorSchema, WS_CLOSE_CODES, type WatchStatusResponse, WatchStatusResponseSchema, type WikiLinkResponse, WikiLinkSchema, type WsCloseCode, type WsTokenPayload, WsTokenPayloadSchema, type WsTokenResponse, WsTokenResponseSchema, acceptInviteRoute, accessTokenRoutes, activateAccountRoute, activateUserRoute, activationRoutes, addAttachmentRoute, addBookmarkRoute, addCommentRoute, adminAppRoutes, adminAuthRoutes, adminCryptoRoutes, adminMailRoutes, adminPluginsRoutes, adminSearchRoutes, adminSecurityRoutes, adminStorageRoutes, adminUsersRoutes, appRoutes, attachmentRoutes, authorizeRoute, autocompletePagesRoute, autocompleteRoutes, autocompleteUsersRoute, backlinkRoutes, bookmarkRoutes, cancelDraftRoute, claimPageLinkAccessRoute, clearRenderCacheAllRoute, clearRenderCachePluginRoute, clientInfoRoute, 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, getPluginReadinessRoute, getPresenceTokenRoute, getProfileRoute, getRevisionRoute, getRevisionsRoute, getSearchStatusRoute, getSecuritySettingsRoute, getSeenUsersRoute, getStorageStatusRoute, getUnreadCountRoute, getUserBookmarksRoute, getUserPageRoute, getUserPagesRoute, getUserSubpagesRoute, getWatchStatusRoute, getYjsTokenRoute, installerRoutes, inviteAcceptRoutes, invitePreviewRoute, inviteUsersRoute, isIssuableScope, isScope, likePageRoute, listAccessTokensRoute, listAttachmentsRoute, listCommentsRoute, listDraftsRoute, 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, unwrapRenderedAst, updateAppSettingsRoute, updateAuthSettingsRoute, updateMailSettingsRoute, updatePageRoute, updatePasswordRoute, updatePluginConfigRoute, updateProfileRoute, updateSecuritySettingsRoute, updateThemeRoute, updateUserEmailRoute, uploadAttachmentRoute, uploadPictureRoute, userRoutes, validateActivationTokenRoute, validateEmailChangeTokenRoute, validateResetTokenRoute };