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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -142,7 +142,21 @@ declare const getAppInfoRoute: {
142
142
  confidential: zod.ZodNullable<zod.ZodString>;
143
143
  version: zod.ZodString;
144
144
  apiVersion: zod.ZodString;
145
- capabilities: zod.ZodArray<zod.ZodString>;
145
+ capabilities: zod.ZodArray<zod.ZodEnum<{
146
+ search: "search";
147
+ oauth: "oauth";
148
+ "oauth:auth-code": "oauth:auth-code";
149
+ "oauth:device": "oauth:device";
150
+ "oauth:pkce": "oauth:pkce";
151
+ pat: "pat";
152
+ pages: "pages";
153
+ comments: "comments";
154
+ bookmarks: "bookmarks";
155
+ attachments: "attachments";
156
+ notifications: "notifications";
157
+ collab: "collab";
158
+ "collab:redis": "collab:redis";
159
+ }>>;
146
160
  canSelfRegister: zod.ZodBoolean;
147
161
  }, zod_v4_core.$strip>;
148
162
  };
@@ -181,7 +195,21 @@ declare const appRoutes: {
181
195
  confidential: zod.ZodNullable<zod.ZodString>;
182
196
  version: zod.ZodString;
183
197
  apiVersion: zod.ZodString;
184
- capabilities: zod.ZodArray<zod.ZodString>;
198
+ capabilities: zod.ZodArray<zod.ZodEnum<{
199
+ search: "search";
200
+ oauth: "oauth";
201
+ "oauth:auth-code": "oauth:auth-code";
202
+ "oauth:device": "oauth:device";
203
+ "oauth:pkce": "oauth:pkce";
204
+ pat: "pat";
205
+ pages: "pages";
206
+ comments: "comments";
207
+ bookmarks: "bookmarks";
208
+ attachments: "attachments";
209
+ notifications: "notifications";
210
+ collab: "collab";
211
+ "collab:redis": "collab:redis";
212
+ }>>;
185
213
  canSelfRegister: zod.ZodBoolean;
186
214
  }, zod_v4_core.$strip>;
187
215
  };
@@ -5147,9 +5175,9 @@ declare const recentlyViewedPagesRoute: {
5147
5175
  }, z.core.$strip>]>>>;
5148
5176
  message: z.ZodOptional<z.ZodString>;
5149
5177
  editVia: z.ZodOptional<z.ZodEnum<{
5150
- web: "web";
5151
5178
  oauth: "oauth";
5152
5179
  pat: "pat";
5180
+ web: "web";
5153
5181
  }>>;
5154
5182
  }, z.core.$strip>]>>;
5155
5183
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5688,9 +5716,9 @@ declare const meRoutes: {
5688
5716
  }, z.core.$strip>]>>>;
5689
5717
  message: z.ZodOptional<z.ZodString>;
5690
5718
  editVia: z.ZodOptional<z.ZodEnum<{
5691
- web: "web";
5692
5719
  oauth: "oauth";
5693
5720
  pat: "pat";
5721
+ web: "web";
5694
5722
  }>>;
5695
5723
  }, z.core.$strip>]>>;
5696
5724
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7272,9 +7300,9 @@ declare const getUserPageRoute: {
7272
7300
  }, z.core.$strip>]>>>;
7273
7301
  message: z.ZodOptional<z.ZodString>;
7274
7302
  editVia: z.ZodOptional<z.ZodEnum<{
7275
- web: "web";
7276
7303
  oauth: "oauth";
7277
7304
  pat: "pat";
7305
+ web: "web";
7278
7306
  }>>;
7279
7307
  }, z.core.$strip>]>>;
7280
7308
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7379,9 +7407,9 @@ declare const getUserPageRoute: {
7379
7407
  }, z.core.$strip>]>>>;
7380
7408
  message: z.ZodOptional<z.ZodString>;
7381
7409
  editVia: z.ZodOptional<z.ZodEnum<{
7382
- web: "web";
7383
7410
  oauth: "oauth";
7384
7411
  pat: "pat";
7412
+ web: "web";
7385
7413
  }>>;
7386
7414
  }, z.core.$strip>]>>;
7387
7415
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7577,9 +7605,9 @@ declare const getUserBookmarksRoute: {
7577
7605
  }, z.core.$strip>]>>>;
7578
7606
  message: z.ZodOptional<z.ZodString>;
7579
7607
  editVia: z.ZodOptional<z.ZodEnum<{
7580
- web: "web";
7581
7608
  oauth: "oauth";
7582
7609
  pat: "pat";
7610
+ web: "web";
7583
7611
  }>>;
7584
7612
  }, z.core.$strip>]>>;
7585
7613
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -7779,9 +7807,9 @@ declare const getUserPagesRoute: {
7779
7807
  }, z.core.$strip>]>>>;
7780
7808
  message: z.ZodOptional<z.ZodString>;
7781
7809
  editVia: z.ZodOptional<z.ZodEnum<{
7782
- web: "web";
7783
7810
  oauth: "oauth";
7784
7811
  pat: "pat";
7812
+ web: "web";
7785
7813
  }>>;
7786
7814
  }, z.core.$strip>]>>;
7787
7815
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -8046,9 +8074,9 @@ declare const userRoutes: {
8046
8074
  }, z.core.$strip>]>>>;
8047
8075
  message: z.ZodOptional<z.ZodString>;
8048
8076
  editVia: z.ZodOptional<z.ZodEnum<{
8049
- web: "web";
8050
8077
  oauth: "oauth";
8051
8078
  pat: "pat";
8079
+ web: "web";
8052
8080
  }>>;
8053
8081
  }, z.core.$strip>]>>;
8054
8082
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -8153,9 +8181,9 @@ declare const userRoutes: {
8153
8181
  }, z.core.$strip>]>>>;
8154
8182
  message: z.ZodOptional<z.ZodString>;
8155
8183
  editVia: z.ZodOptional<z.ZodEnum<{
8156
- web: "web";
8157
8184
  oauth: "oauth";
8158
8185
  pat: "pat";
8186
+ web: "web";
8159
8187
  }>>;
8160
8188
  }, z.core.$strip>]>>;
8161
8189
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -8351,9 +8379,9 @@ declare const userRoutes: {
8351
8379
  }, z.core.$strip>]>>>;
8352
8380
  message: z.ZodOptional<z.ZodString>;
8353
8381
  editVia: z.ZodOptional<z.ZodEnum<{
8354
- web: "web";
8355
8382
  oauth: "oauth";
8356
8383
  pat: "pat";
8384
+ web: "web";
8357
8385
  }>>;
8358
8386
  }, z.core.$strip>]>>;
8359
8387
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -8553,9 +8581,9 @@ declare const userRoutes: {
8553
8581
  }, z.core.$strip>]>>>;
8554
8582
  message: z.ZodOptional<z.ZodString>;
8555
8583
  editVia: z.ZodOptional<z.ZodEnum<{
8556
- web: "web";
8557
8584
  oauth: "oauth";
8558
8585
  pat: "pat";
8586
+ web: "web";
8559
8587
  }>>;
8560
8588
  }, z.core.$strip>]>>;
8561
8589
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -8803,9 +8831,9 @@ declare const getBookmarkRoute: {
8803
8831
  }, zod_v4_core.$strip>]>>>;
8804
8832
  message: zod.ZodOptional<zod.ZodString>;
8805
8833
  editVia: zod.ZodOptional<zod.ZodEnum<{
8806
- web: "web";
8807
8834
  oauth: "oauth";
8808
8835
  pat: "pat";
8836
+ web: "web";
8809
8837
  }>>;
8810
8838
  }, zod_v4_core.$strip>]>>;
8811
8839
  redirectTo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -8998,9 +9026,9 @@ declare const listMyBookmarksRoute: {
8998
9026
  }, zod_v4_core.$strip>]>>>;
8999
9027
  message: zod.ZodOptional<zod.ZodString>;
9000
9028
  editVia: zod.ZodOptional<zod.ZodEnum<{
9001
- web: "web";
9002
9029
  oauth: "oauth";
9003
9030
  pat: "pat";
9031
+ web: "web";
9004
9032
  }>>;
9005
9033
  }, zod_v4_core.$strip>]>>;
9006
9034
  redirectTo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -9191,9 +9219,9 @@ declare const addBookmarkRoute: {
9191
9219
  }, zod_v4_core.$strip>]>>>;
9192
9220
  message: zod.ZodOptional<zod.ZodString>;
9193
9221
  editVia: zod.ZodOptional<zod.ZodEnum<{
9194
- web: "web";
9195
9222
  oauth: "oauth";
9196
9223
  pat: "pat";
9224
+ web: "web";
9197
9225
  }>>;
9198
9226
  }, zod_v4_core.$strip>]>>;
9199
9227
  redirectTo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -9460,9 +9488,9 @@ declare const bookmarkRoutes: {
9460
9488
  }, zod_v4_core.$strip>]>>>;
9461
9489
  message: zod.ZodOptional<zod.ZodString>;
9462
9490
  editVia: zod.ZodOptional<zod.ZodEnum<{
9463
- web: "web";
9464
9491
  oauth: "oauth";
9465
9492
  pat: "pat";
9493
+ web: "web";
9466
9494
  }>>;
9467
9495
  }, zod_v4_core.$strip>]>>;
9468
9496
  redirectTo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -9655,9 +9683,9 @@ declare const bookmarkRoutes: {
9655
9683
  }, zod_v4_core.$strip>]>>>;
9656
9684
  message: zod.ZodOptional<zod.ZodString>;
9657
9685
  editVia: zod.ZodOptional<zod.ZodEnum<{
9658
- web: "web";
9659
9686
  oauth: "oauth";
9660
9687
  pat: "pat";
9688
+ web: "web";
9661
9689
  }>>;
9662
9690
  }, zod_v4_core.$strip>]>>;
9663
9691
  redirectTo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -9848,9 +9876,9 @@ declare const bookmarkRoutes: {
9848
9876
  }, zod_v4_core.$strip>]>>>;
9849
9877
  message: zod.ZodOptional<zod.ZodString>;
9850
9878
  editVia: zod.ZodOptional<zod.ZodEnum<{
9851
- web: "web";
9852
9879
  oauth: "oauth";
9853
9880
  pat: "pat";
9881
+ web: "web";
9854
9882
  }>>;
9855
9883
  }, zod_v4_core.$strip>]>>;
9856
9884
  redirectTo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -10119,6 +10147,19 @@ declare const getBacklinksRoute: {
10119
10147
  };
10120
10148
  };
10121
10149
  };
10150
+ 404: {
10151
+ description: string;
10152
+ content: {
10153
+ 'application/json': {
10154
+ schema: zod.ZodObject<{
10155
+ error: zod.ZodObject<{
10156
+ code: zod.ZodLiteral<"PAGE_NOT_FOUND">;
10157
+ message: zod.ZodLiteral<"Page not found">;
10158
+ }, zod_v4_core.$strip>;
10159
+ }, zod_v4_core.$strip>;
10160
+ };
10161
+ };
10162
+ };
10122
10163
  };
10123
10164
  } & {
10124
10165
  getRoutingPath(): "/backlinks";
@@ -10207,6 +10248,19 @@ declare const backlinkRoutes: {
10207
10248
  };
10208
10249
  };
10209
10250
  };
10251
+ 404: {
10252
+ description: string;
10253
+ content: {
10254
+ 'application/json': {
10255
+ schema: zod.ZodObject<{
10256
+ error: zod.ZodObject<{
10257
+ code: zod.ZodLiteral<"PAGE_NOT_FOUND">;
10258
+ message: zod.ZodLiteral<"Page not found">;
10259
+ }, zod_v4_core.$strip>;
10260
+ }, zod_v4_core.$strip>;
10261
+ };
10262
+ };
10263
+ };
10210
10264
  };
10211
10265
  } & {
10212
10266
  getRoutingPath(): "/backlinks";
@@ -10281,6 +10335,19 @@ declare const listCommentsRoute: {
10281
10335
  };
10282
10336
  };
10283
10337
  };
10338
+ 404: {
10339
+ description: string;
10340
+ content: {
10341
+ 'application/json': {
10342
+ schema: zod.ZodObject<{
10343
+ error: zod.ZodObject<{
10344
+ code: zod.ZodLiteral<"PAGE_NOT_FOUND">;
10345
+ message: zod.ZodLiteral<"Page not found">;
10346
+ }, zod_v4_core.$strip>;
10347
+ }, zod_v4_core.$strip>;
10348
+ };
10349
+ };
10350
+ };
10284
10351
  };
10285
10352
  } & {
10286
10353
  getRoutingPath(): "/comments";
@@ -10536,6 +10603,19 @@ declare const commentRoutes: {
10536
10603
  };
10537
10604
  };
10538
10605
  };
10606
+ 404: {
10607
+ description: string;
10608
+ content: {
10609
+ 'application/json': {
10610
+ schema: zod.ZodObject<{
10611
+ error: zod.ZodObject<{
10612
+ code: zod.ZodLiteral<"PAGE_NOT_FOUND">;
10613
+ message: zod.ZodLiteral<"Page not found">;
10614
+ }, zod_v4_core.$strip>;
10615
+ }, zod_v4_core.$strip>;
10616
+ };
10617
+ };
10618
+ };
10539
10619
  };
10540
10620
  } & {
10541
10621
  getRoutingPath(): "/comments";
@@ -10801,9 +10881,9 @@ declare const listRevisionsRoute: {
10801
10881
  createdAt: z.ZodString;
10802
10882
  }, z.core.$strip>>>;
10803
10883
  editVia: z.ZodOptional<z.ZodEnum<{
10804
- web: "web";
10805
10884
  oauth: "oauth";
10806
10885
  pat: "pat";
10886
+ web: "web";
10807
10887
  }>>;
10808
10888
  createdAt: z.ZodString;
10809
10889
  }, z.core.$strip>>;
@@ -10937,9 +11017,9 @@ declare const getRevisionsRoute: {
10937
11017
  }, z.core.$strip>]>>>;
10938
11018
  message: z.ZodOptional<z.ZodString>;
10939
11019
  editVia: z.ZodOptional<z.ZodEnum<{
10940
- web: "web";
10941
11020
  oauth: "oauth";
10942
11021
  pat: "pat";
11022
+ web: "web";
10943
11023
  }>>;
10944
11024
  }, z.core.$strip>>;
10945
11025
  }, z.core.$strip>;
@@ -11067,9 +11147,9 @@ declare const getRevisionRoute: {
11067
11147
  }, z.core.$strip>]>>>;
11068
11148
  message: z.ZodOptional<z.ZodString>;
11069
11149
  editVia: z.ZodOptional<z.ZodEnum<{
11070
- web: "web";
11071
11150
  oauth: "oauth";
11072
11151
  pat: "pat";
11152
+ web: "web";
11073
11153
  }>>;
11074
11154
  }, z.core.$strip>;
11075
11155
  }, z.core.$strip>;
@@ -11175,9 +11255,9 @@ declare const revisionRoutes: {
11175
11255
  createdAt: z.ZodString;
11176
11256
  }, z.core.$strip>>>;
11177
11257
  editVia: z.ZodOptional<z.ZodEnum<{
11178
- web: "web";
11179
11258
  oauth: "oauth";
11180
11259
  pat: "pat";
11260
+ web: "web";
11181
11261
  }>>;
11182
11262
  createdAt: z.ZodString;
11183
11263
  }, z.core.$strip>>;
@@ -11311,9 +11391,9 @@ declare const revisionRoutes: {
11311
11391
  }, z.core.$strip>]>>>;
11312
11392
  message: z.ZodOptional<z.ZodString>;
11313
11393
  editVia: z.ZodOptional<z.ZodEnum<{
11314
- web: "web";
11315
11394
  oauth: "oauth";
11316
11395
  pat: "pat";
11396
+ web: "web";
11317
11397
  }>>;
11318
11398
  }, z.core.$strip>>;
11319
11399
  }, z.core.$strip>;
@@ -11441,9 +11521,9 @@ declare const revisionRoutes: {
11441
11521
  }, z.core.$strip>]>>>;
11442
11522
  message: z.ZodOptional<z.ZodString>;
11443
11523
  editVia: z.ZodOptional<z.ZodEnum<{
11444
- web: "web";
11445
11524
  oauth: "oauth";
11446
11525
  pat: "pat";
11526
+ web: "web";
11447
11527
  }>>;
11448
11528
  }, z.core.$strip>;
11449
11529
  }, z.core.$strip>;
@@ -12452,9 +12532,9 @@ declare const getPageRoute: {
12452
12532
  }, z.core.$strip>]>>>;
12453
12533
  message: z.ZodOptional<z.ZodString>;
12454
12534
  editVia: z.ZodOptional<z.ZodEnum<{
12455
- web: "web";
12456
12535
  oauth: "oauth";
12457
12536
  pat: "pat";
12537
+ web: "web";
12458
12538
  }>>;
12459
12539
  }, z.core.$strip>;
12460
12540
  creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -12520,6 +12600,19 @@ declare const getPageRoute: {
12520
12600
  };
12521
12601
  };
12522
12602
  };
12603
+ 500: {
12604
+ description: string;
12605
+ content: {
12606
+ 'application/json': {
12607
+ schema: z.ZodObject<{
12608
+ error: z.ZodObject<{
12609
+ code: z.ZodLiteral<"INTERNAL_ERROR">;
12610
+ message: z.ZodLiteral<"Internal server error">;
12611
+ }, z.core.$strip>;
12612
+ }, z.core.$strip>;
12613
+ };
12614
+ };
12615
+ };
12523
12616
  };
12524
12617
  } & {
12525
12618
  getRoutingPath(): "/pages";
@@ -12618,9 +12711,9 @@ declare const listPagesRoute: {
12618
12711
  }, z.core.$strip>]>>>;
12619
12712
  message: z.ZodOptional<z.ZodString>;
12620
12713
  editVia: z.ZodOptional<z.ZodEnum<{
12621
- web: "web";
12622
12714
  oauth: "oauth";
12623
12715
  pat: "pat";
12716
+ web: "web";
12624
12717
  }>>;
12625
12718
  }, z.core.$strip>]>>;
12626
12719
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -12728,9 +12821,9 @@ declare const listPagesRoute: {
12728
12821
  }, z.core.$strip>]>>>;
12729
12822
  message: z.ZodOptional<z.ZodString>;
12730
12823
  editVia: z.ZodOptional<z.ZodEnum<{
12731
- web: "web";
12732
12824
  oauth: "oauth";
12733
12825
  pat: "pat";
12826
+ web: "web";
12734
12827
  }>>;
12735
12828
  }, z.core.$strip>]>>;
12736
12829
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -12833,9 +12926,9 @@ declare const listPagesRoute: {
12833
12926
  }, z.core.$strip>]>>>;
12834
12927
  message: z.ZodOptional<z.ZodString>;
12835
12928
  editVia: z.ZodOptional<z.ZodEnum<{
12836
- web: "web";
12837
12929
  oauth: "oauth";
12838
12930
  pat: "pat";
12931
+ web: "web";
12839
12932
  }>>;
12840
12933
  }, z.core.$strip>]>>;
12841
12934
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -13035,9 +13128,9 @@ declare const createPageRoute: {
13035
13128
  }, z.core.$strip>]>>>;
13036
13129
  message: z.ZodOptional<z.ZodString>;
13037
13130
  editVia: z.ZodOptional<z.ZodEnum<{
13038
- web: "web";
13039
13131
  oauth: "oauth";
13040
13132
  pat: "pat";
13133
+ web: "web";
13041
13134
  }>>;
13042
13135
  }, z.core.$strip>]>>;
13043
13136
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -13203,9 +13296,9 @@ declare const updatePageRoute: {
13203
13296
  }, z.core.$strip>]>>>;
13204
13297
  message: z.ZodOptional<z.ZodString>;
13205
13298
  editVia: z.ZodOptional<z.ZodEnum<{
13206
- web: "web";
13207
13299
  oauth: "oauth";
13208
13300
  pat: "pat";
13301
+ web: "web";
13209
13302
  }>>;
13210
13303
  }, z.core.$strip>]>>;
13211
13304
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -13395,9 +13488,9 @@ declare const setPageGrantRoute: {
13395
13488
  }, z.core.$strip>]>>>;
13396
13489
  message: z.ZodOptional<z.ZodString>;
13397
13490
  editVia: z.ZodOptional<z.ZodEnum<{
13398
- web: "web";
13399
13491
  oauth: "oauth";
13400
13492
  pat: "pat";
13493
+ web: "web";
13401
13494
  }>>;
13402
13495
  }, z.core.$strip>]>>;
13403
13496
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -13752,9 +13845,9 @@ declare const likePageRoute: {
13752
13845
  }, z.core.$strip>]>>>;
13753
13846
  message: z.ZodOptional<z.ZodString>;
13754
13847
  editVia: z.ZodOptional<z.ZodEnum<{
13755
- web: "web";
13756
13848
  oauth: "oauth";
13757
13849
  pat: "pat";
13850
+ web: "web";
13758
13851
  }>>;
13759
13852
  }, z.core.$strip>]>>;
13760
13853
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -13930,9 +14023,9 @@ declare const unlikePageRoute: {
13930
14023
  }, z.core.$strip>]>>>;
13931
14024
  message: z.ZodOptional<z.ZodString>;
13932
14025
  editVia: z.ZodOptional<z.ZodEnum<{
13933
- web: "web";
13934
14026
  oauth: "oauth";
13935
14027
  pat: "pat";
14028
+ web: "web";
13936
14029
  }>>;
13937
14030
  }, z.core.$strip>]>>;
13938
14031
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14022,6 +14115,218 @@ declare const unlikePageRoute: {
14022
14115
  } & {
14023
14116
  getRoutingPath(): "/pages/unlike";
14024
14117
  };
14118
+ declare const claimPageLinkAccessRoute: {
14119
+ method: "post";
14120
+ path: "/pages/link-access";
14121
+ tags: string[];
14122
+ security: {
14123
+ bearerAuth: never[];
14124
+ }[];
14125
+ summary: string;
14126
+ request: {
14127
+ body: {
14128
+ content: {
14129
+ 'application/json': {
14130
+ schema: z.ZodObject<{
14131
+ page_id: z.ZodString;
14132
+ }, z.core.$strip>;
14133
+ };
14134
+ };
14135
+ };
14136
+ };
14137
+ responses: {
14138
+ 200: {
14139
+ description: string;
14140
+ content: {
14141
+ 'application/json': {
14142
+ schema: z.ZodObject<{
14143
+ page: z.ZodObject<{
14144
+ _id: z.ZodString;
14145
+ path: z.ZodString;
14146
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14147
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
14148
+ deprecated: "deprecated";
14149
+ wip: "wip";
14150
+ published: "published";
14151
+ deleted: "deleted";
14152
+ draft: "draft";
14153
+ }>>>;
14154
+ grant: z.ZodOptional<z.ZodNumber>;
14155
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
14156
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
14157
+ commentCount: z.ZodDefault<z.ZodNumber>;
14158
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
14159
+ createdAt: z.ZodString;
14160
+ updatedAt: z.ZodOptional<z.ZodString>;
14161
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14162
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14163
+ latestRevision: z.ZodOptional<z.ZodString>;
14164
+ likerCount: z.ZodOptional<z.ZodNumber>;
14165
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
14166
+ revision: z.ZodObject<{
14167
+ _id: z.ZodString;
14168
+ path: z.ZodString;
14169
+ body: z.ZodString;
14170
+ format: z.ZodDefault<z.ZodString>;
14171
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14172
+ _id: z.ZodString;
14173
+ id: z.ZodOptional<z.ZodString>;
14174
+ username: z.ZodString;
14175
+ name: z.ZodString;
14176
+ email: z.ZodString;
14177
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14178
+ createdAt: z.ZodString;
14179
+ }, z.core.$strip>>>;
14180
+ createdAt: z.ZodString;
14181
+ meta: z.ZodOptional<z.ZodObject<{
14182
+ toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
14183
+ level: z.ZodNumber;
14184
+ text: z.ZodString;
14185
+ anchorId: z.ZodString;
14186
+ }, z.core.$strip>>>;
14187
+ wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
14188
+ raw: z.ZodString;
14189
+ target: z.ZodString;
14190
+ displayText: z.ZodOptional<z.ZodString>;
14191
+ }, z.core.$strip>>>;
14192
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
14193
+ username: z.ZodString;
14194
+ }, z.core.$strip>>>;
14195
+ codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
14196
+ }, z.core.$strip>>;
14197
+ renderedAst: z.ZodOptional<z.ZodUnknown>;
14198
+ rendererVersion: z.ZodOptional<z.ZodString>;
14199
+ parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14200
+ type: z.ZodOptional<z.ZodEnum<{
14201
+ snapshot: "snapshot";
14202
+ incremental: "incremental";
14203
+ }>>;
14204
+ savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14205
+ _id: z.ZodString;
14206
+ id: z.ZodOptional<z.ZodString>;
14207
+ username: z.ZodString;
14208
+ name: z.ZodString;
14209
+ email: z.ZodString;
14210
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14211
+ createdAt: z.ZodString;
14212
+ }, z.core.$strip>]>>>;
14213
+ contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14214
+ _id: z.ZodString;
14215
+ id: z.ZodOptional<z.ZodString>;
14216
+ username: z.ZodString;
14217
+ name: z.ZodString;
14218
+ email: z.ZodString;
14219
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14220
+ createdAt: z.ZodString;
14221
+ }, z.core.$strip>]>>>;
14222
+ message: z.ZodOptional<z.ZodString>;
14223
+ editVia: z.ZodOptional<z.ZodEnum<{
14224
+ oauth: "oauth";
14225
+ pat: "pat";
14226
+ web: "web";
14227
+ }>>;
14228
+ }, z.core.$strip>;
14229
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14230
+ _id: z.ZodString;
14231
+ id: z.ZodOptional<z.ZodString>;
14232
+ username: z.ZodString;
14233
+ name: z.ZodString;
14234
+ email: z.ZodString;
14235
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14236
+ createdAt: z.ZodString;
14237
+ }, z.core.$strip>>>;
14238
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14239
+ _id: z.ZodString;
14240
+ id: z.ZodOptional<z.ZodString>;
14241
+ username: z.ZodString;
14242
+ name: z.ZodString;
14243
+ email: z.ZodString;
14244
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14245
+ createdAt: z.ZodString;
14246
+ }, z.core.$strip>>>;
14247
+ }, z.core.$strip>;
14248
+ granted: z.ZodBoolean;
14249
+ }, z.core.$strip>;
14250
+ };
14251
+ };
14252
+ };
14253
+ 400: {
14254
+ description: string;
14255
+ content: {
14256
+ 'application/json': {
14257
+ schema: z.ZodObject<{
14258
+ error: z.ZodObject<{
14259
+ code: z.ZodLiteral<"INVALID_PAGE_ID">;
14260
+ message: z.ZodString;
14261
+ }, z.core.$strip>;
14262
+ }, z.core.$strip>;
14263
+ };
14264
+ };
14265
+ };
14266
+ 401: {
14267
+ description: string;
14268
+ content: {
14269
+ 'application/json': {
14270
+ schema: z.ZodObject<{
14271
+ error: z.ZodObject<{
14272
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
14273
+ message: z.ZodLiteral<"Authentication is required">;
14274
+ redirectTo: z.ZodOptional<z.ZodString>;
14275
+ }, z.core.$strip>;
14276
+ }, z.core.$strip>;
14277
+ };
14278
+ };
14279
+ };
14280
+ 403: {
14281
+ description: string;
14282
+ content: {
14283
+ 'application/json': {
14284
+ schema: z.ZodUnion<readonly [z.ZodObject<{
14285
+ error: z.ZodObject<{
14286
+ code: z.ZodLiteral<"PAGE_NOT_GRANTED">;
14287
+ message: z.ZodLiteral<"Page is not granted for the user">;
14288
+ }, z.core.$strip>;
14289
+ }, z.core.$strip>, z.ZodObject<{
14290
+ error: z.ZodObject<{
14291
+ code: z.ZodLiteral<"INSUFFICIENT_SCOPE">;
14292
+ message: z.ZodString;
14293
+ details: z.ZodOptional<z.ZodObject<{
14294
+ requiredScope: z.ZodString;
14295
+ }, z.core.$strip>>;
14296
+ }, z.core.$strip>;
14297
+ }, z.core.$strip>]>;
14298
+ };
14299
+ };
14300
+ };
14301
+ 404: {
14302
+ description: string;
14303
+ content: {
14304
+ 'application/json': {
14305
+ schema: z.ZodObject<{
14306
+ error: z.ZodObject<{
14307
+ code: z.ZodLiteral<"PAGE_NOT_FOUND">;
14308
+ message: z.ZodLiteral<"Page not found">;
14309
+ }, z.core.$strip>;
14310
+ }, z.core.$strip>;
14311
+ };
14312
+ };
14313
+ };
14314
+ 429: {
14315
+ description: string;
14316
+ content: {
14317
+ 'application/json': {
14318
+ schema: z.ZodObject<{
14319
+ error: z.ZodLiteral<"rate_limited">;
14320
+ message: z.ZodString;
14321
+ retryAfterSeconds: z.ZodNumber;
14322
+ }, z.core.$strip>;
14323
+ };
14324
+ };
14325
+ };
14326
+ };
14327
+ } & {
14328
+ getRoutingPath(): "/pages/link-access";
14329
+ };
14025
14330
  declare const getWatchStatusRoute: {
14026
14331
  method: "get";
14027
14332
  path: "/pages/watch";
@@ -14253,9 +14558,9 @@ declare const deletePageRoute: {
14253
14558
  }, z.core.$strip>]>>>;
14254
14559
  message: z.ZodOptional<z.ZodString>;
14255
14560
  editVia: z.ZodOptional<z.ZodEnum<{
14256
- web: "web";
14257
14561
  oauth: "oauth";
14258
14562
  pat: "pat";
14563
+ web: "web";
14259
14564
  }>>;
14260
14565
  }, z.core.$strip>]>>;
14261
14566
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14444,9 +14749,9 @@ declare const revertDeletedPageRoute: {
14444
14749
  }, z.core.$strip>]>>>;
14445
14750
  message: z.ZodOptional<z.ZodString>;
14446
14751
  editVia: z.ZodOptional<z.ZodEnum<{
14447
- web: "web";
14448
14752
  oauth: "oauth";
14449
14753
  pat: "pat";
14754
+ web: "web";
14450
14755
  }>>;
14451
14756
  }, z.core.$strip>]>>;
14452
14757
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14623,9 +14928,9 @@ declare const revertToRevisionRoute: {
14623
14928
  }, z.core.$strip>]>>>;
14624
14929
  message: z.ZodOptional<z.ZodString>;
14625
14930
  editVia: z.ZodOptional<z.ZodEnum<{
14626
- web: "web";
14627
14931
  oauth: "oauth";
14628
14932
  pat: "pat";
14933
+ web: "web";
14629
14934
  }>>;
14630
14935
  }, z.core.$strip>]>>;
14631
14936
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14805,9 +15110,9 @@ declare const renamePageRoute: {
14805
15110
  }, z.core.$strip>]>>>;
14806
15111
  message: z.ZodOptional<z.ZodString>;
14807
15112
  editVia: z.ZodOptional<z.ZodEnum<{
14808
- web: "web";
14809
15113
  oauth: "oauth";
14810
15114
  pat: "pat";
15115
+ web: "web";
14811
15116
  }>>;
14812
15117
  }, z.core.$strip>]>>;
14813
15118
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15107,9 +15412,9 @@ declare const pageRoutes: {
15107
15412
  }, z.core.$strip>]>>>;
15108
15413
  message: z.ZodOptional<z.ZodString>;
15109
15414
  editVia: z.ZodOptional<z.ZodEnum<{
15110
- web: "web";
15111
15415
  oauth: "oauth";
15112
15416
  pat: "pat";
15417
+ web: "web";
15113
15418
  }>>;
15114
15419
  }, z.core.$strip>;
15115
15420
  creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -15175,6 +15480,19 @@ declare const pageRoutes: {
15175
15480
  };
15176
15481
  };
15177
15482
  };
15483
+ 500: {
15484
+ description: string;
15485
+ content: {
15486
+ 'application/json': {
15487
+ schema: z.ZodObject<{
15488
+ error: z.ZodObject<{
15489
+ code: z.ZodLiteral<"INTERNAL_ERROR">;
15490
+ message: z.ZodLiteral<"Internal server error">;
15491
+ }, z.core.$strip>;
15492
+ }, z.core.$strip>;
15493
+ };
15494
+ };
15495
+ };
15178
15496
  };
15179
15497
  } & {
15180
15498
  getRoutingPath(): "/pages";
@@ -15273,9 +15591,9 @@ declare const pageRoutes: {
15273
15591
  }, z.core.$strip>]>>>;
15274
15592
  message: z.ZodOptional<z.ZodString>;
15275
15593
  editVia: z.ZodOptional<z.ZodEnum<{
15276
- web: "web";
15277
15594
  oauth: "oauth";
15278
15595
  pat: "pat";
15596
+ web: "web";
15279
15597
  }>>;
15280
15598
  }, z.core.$strip>]>>;
15281
15599
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15383,9 +15701,9 @@ declare const pageRoutes: {
15383
15701
  }, z.core.$strip>]>>>;
15384
15702
  message: z.ZodOptional<z.ZodString>;
15385
15703
  editVia: z.ZodOptional<z.ZodEnum<{
15386
- web: "web";
15387
15704
  oauth: "oauth";
15388
15705
  pat: "pat";
15706
+ web: "web";
15389
15707
  }>>;
15390
15708
  }, z.core.$strip>]>>;
15391
15709
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15488,9 +15806,9 @@ declare const pageRoutes: {
15488
15806
  }, z.core.$strip>]>>>;
15489
15807
  message: z.ZodOptional<z.ZodString>;
15490
15808
  editVia: z.ZodOptional<z.ZodEnum<{
15491
- web: "web";
15492
15809
  oauth: "oauth";
15493
15810
  pat: "pat";
15811
+ web: "web";
15494
15812
  }>>;
15495
15813
  }, z.core.$strip>]>>;
15496
15814
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15690,9 +16008,9 @@ declare const pageRoutes: {
15690
16008
  }, z.core.$strip>]>>>;
15691
16009
  message: z.ZodOptional<z.ZodString>;
15692
16010
  editVia: z.ZodOptional<z.ZodEnum<{
15693
- web: "web";
15694
16011
  oauth: "oauth";
15695
16012
  pat: "pat";
16013
+ web: "web";
15696
16014
  }>>;
15697
16015
  }, z.core.$strip>]>>;
15698
16016
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15858,9 +16176,9 @@ declare const pageRoutes: {
15858
16176
  }, z.core.$strip>]>>>;
15859
16177
  message: z.ZodOptional<z.ZodString>;
15860
16178
  editVia: z.ZodOptional<z.ZodEnum<{
15861
- web: "web";
15862
16179
  oauth: "oauth";
15863
16180
  pat: "pat";
16181
+ web: "web";
15864
16182
  }>>;
15865
16183
  }, z.core.$strip>]>>;
15866
16184
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -16050,9 +16368,9 @@ declare const pageRoutes: {
16050
16368
  }, z.core.$strip>]>>>;
16051
16369
  message: z.ZodOptional<z.ZodString>;
16052
16370
  editVia: z.ZodOptional<z.ZodEnum<{
16053
- web: "web";
16054
16371
  oauth: "oauth";
16055
16372
  pat: "pat";
16373
+ web: "web";
16056
16374
  }>>;
16057
16375
  }, z.core.$strip>]>>;
16058
16376
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -16407,9 +16725,9 @@ declare const pageRoutes: {
16407
16725
  }, z.core.$strip>]>>>;
16408
16726
  message: z.ZodOptional<z.ZodString>;
16409
16727
  editVia: z.ZodOptional<z.ZodEnum<{
16410
- web: "web";
16411
16728
  oauth: "oauth";
16412
16729
  pat: "pat";
16730
+ web: "web";
16413
16731
  }>>;
16414
16732
  }, z.core.$strip>]>>;
16415
16733
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -16527,7 +16845,205 @@ declare const pageRoutes: {
16527
16845
  page: z.ZodObject<{
16528
16846
  _id: z.ZodString;
16529
16847
  path: z.ZodString;
16530
- revision: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
16848
+ revision: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
16849
+ _id: z.ZodString;
16850
+ path: z.ZodString;
16851
+ body: z.ZodString;
16852
+ format: z.ZodDefault<z.ZodString>;
16853
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16854
+ _id: z.ZodString;
16855
+ id: z.ZodOptional<z.ZodString>;
16856
+ username: z.ZodString;
16857
+ name: z.ZodString;
16858
+ email: z.ZodString;
16859
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16860
+ createdAt: z.ZodString;
16861
+ }, z.core.$strip>>>;
16862
+ createdAt: z.ZodString;
16863
+ meta: z.ZodOptional<z.ZodObject<{
16864
+ toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
16865
+ level: z.ZodNumber;
16866
+ text: z.ZodString;
16867
+ anchorId: z.ZodString;
16868
+ }, z.core.$strip>>>;
16869
+ wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
16870
+ raw: z.ZodString;
16871
+ target: z.ZodString;
16872
+ displayText: z.ZodOptional<z.ZodString>;
16873
+ }, z.core.$strip>>>;
16874
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
16875
+ username: z.ZodString;
16876
+ }, z.core.$strip>>>;
16877
+ codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
16878
+ }, z.core.$strip>>;
16879
+ renderedAst: z.ZodOptional<z.ZodUnknown>;
16880
+ rendererVersion: z.ZodOptional<z.ZodString>;
16881
+ parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16882
+ type: z.ZodOptional<z.ZodEnum<{
16883
+ snapshot: "snapshot";
16884
+ incremental: "incremental";
16885
+ }>>;
16886
+ savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
16887
+ _id: z.ZodString;
16888
+ id: z.ZodOptional<z.ZodString>;
16889
+ username: z.ZodString;
16890
+ name: z.ZodString;
16891
+ email: z.ZodString;
16892
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16893
+ createdAt: z.ZodString;
16894
+ }, z.core.$strip>]>>>;
16895
+ contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
16896
+ _id: z.ZodString;
16897
+ id: z.ZodOptional<z.ZodString>;
16898
+ username: z.ZodString;
16899
+ name: z.ZodString;
16900
+ email: z.ZodString;
16901
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16902
+ createdAt: z.ZodString;
16903
+ }, z.core.$strip>]>>>;
16904
+ message: z.ZodOptional<z.ZodString>;
16905
+ editVia: z.ZodOptional<z.ZodEnum<{
16906
+ oauth: "oauth";
16907
+ pat: "pat";
16908
+ web: "web";
16909
+ }>>;
16910
+ }, z.core.$strip>]>>;
16911
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16912
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
16913
+ deprecated: "deprecated";
16914
+ wip: "wip";
16915
+ published: "published";
16916
+ deleted: "deleted";
16917
+ draft: "draft";
16918
+ }>>>;
16919
+ grant: z.ZodOptional<z.ZodNumber>;
16920
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
16921
+ creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
16922
+ _id: z.ZodString;
16923
+ id: z.ZodOptional<z.ZodString>;
16924
+ username: z.ZodString;
16925
+ name: z.ZodString;
16926
+ email: z.ZodString;
16927
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16928
+ createdAt: z.ZodString;
16929
+ }, z.core.$strip>]>>>;
16930
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
16931
+ _id: z.ZodString;
16932
+ id: z.ZodOptional<z.ZodString>;
16933
+ username: z.ZodString;
16934
+ name: z.ZodString;
16935
+ email: z.ZodString;
16936
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16937
+ createdAt: z.ZodString;
16938
+ }, z.core.$strip>]>>>;
16939
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
16940
+ commentCount: z.ZodDefault<z.ZodNumber>;
16941
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16942
+ createdAt: z.ZodString;
16943
+ updatedAt: z.ZodOptional<z.ZodString>;
16944
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16945
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16946
+ latestRevision: z.ZodOptional<z.ZodString>;
16947
+ likerCount: z.ZodOptional<z.ZodNumber>;
16948
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
16949
+ }, z.core.$strip>;
16950
+ }, z.core.$strip>;
16951
+ };
16952
+ };
16953
+ };
16954
+ 400: {
16955
+ description: string;
16956
+ content: {
16957
+ 'application/json': {
16958
+ schema: z.ZodObject<{
16959
+ error: z.ZodObject<{
16960
+ code: z.ZodLiteral<"INVALID_PAGE_ID">;
16961
+ message: z.ZodString;
16962
+ }, z.core.$strip>;
16963
+ }, z.core.$strip>;
16964
+ };
16965
+ };
16966
+ };
16967
+ 401: {
16968
+ description: string;
16969
+ content: {
16970
+ 'application/json': {
16971
+ schema: z.ZodObject<{
16972
+ error: z.ZodObject<{
16973
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
16974
+ message: z.ZodLiteral<"Authentication is required">;
16975
+ redirectTo: z.ZodOptional<z.ZodString>;
16976
+ }, z.core.$strip>;
16977
+ }, z.core.$strip>;
16978
+ };
16979
+ };
16980
+ };
16981
+ 404: {
16982
+ description: string;
16983
+ content: {
16984
+ 'application/json': {
16985
+ schema: z.ZodObject<{
16986
+ error: z.ZodObject<{
16987
+ code: z.ZodLiteral<"PAGE_NOT_FOUND">;
16988
+ message: z.ZodLiteral<"Page not found">;
16989
+ }, z.core.$strip>;
16990
+ }, z.core.$strip>;
16991
+ };
16992
+ };
16993
+ };
16994
+ };
16995
+ } & {
16996
+ getRoutingPath(): "/pages/unlike";
16997
+ };
16998
+ claimPageLinkAccessRoute: {
16999
+ method: "post";
17000
+ path: "/pages/link-access";
17001
+ tags: string[];
17002
+ security: {
17003
+ bearerAuth: never[];
17004
+ }[];
17005
+ summary: string;
17006
+ request: {
17007
+ body: {
17008
+ content: {
17009
+ 'application/json': {
17010
+ schema: z.ZodObject<{
17011
+ page_id: z.ZodString;
17012
+ }, z.core.$strip>;
17013
+ };
17014
+ };
17015
+ };
17016
+ };
17017
+ responses: {
17018
+ 200: {
17019
+ description: string;
17020
+ content: {
17021
+ 'application/json': {
17022
+ schema: z.ZodObject<{
17023
+ page: z.ZodObject<{
17024
+ _id: z.ZodString;
17025
+ path: z.ZodString;
17026
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17027
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
17028
+ deprecated: "deprecated";
17029
+ wip: "wip";
17030
+ published: "published";
17031
+ deleted: "deleted";
17032
+ draft: "draft";
17033
+ }>>>;
17034
+ grant: z.ZodOptional<z.ZodNumber>;
17035
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
17036
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
17037
+ commentCount: z.ZodDefault<z.ZodNumber>;
17038
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
17039
+ createdAt: z.ZodString;
17040
+ updatedAt: z.ZodOptional<z.ZodString>;
17041
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17042
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17043
+ latestRevision: z.ZodOptional<z.ZodString>;
17044
+ likerCount: z.ZodOptional<z.ZodNumber>;
17045
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
17046
+ revision: z.ZodObject<{
16531
17047
  _id: z.ZodString;
16532
17048
  path: z.ZodString;
16533
17049
  body: z.ZodString;
@@ -16585,22 +17101,12 @@ declare const pageRoutes: {
16585
17101
  }, z.core.$strip>]>>>;
16586
17102
  message: z.ZodOptional<z.ZodString>;
16587
17103
  editVia: z.ZodOptional<z.ZodEnum<{
16588
- web: "web";
16589
17104
  oauth: "oauth";
16590
17105
  pat: "pat";
17106
+ web: "web";
16591
17107
  }>>;
16592
- }, z.core.$strip>]>>;
16593
- redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16594
- status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
16595
- deprecated: "deprecated";
16596
- wip: "wip";
16597
- published: "published";
16598
- deleted: "deleted";
16599
- draft: "draft";
16600
- }>>>;
16601
- grant: z.ZodOptional<z.ZodNumber>;
16602
- grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
16603
- creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
17108
+ }, z.core.$strip>;
17109
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16604
17110
  _id: z.ZodString;
16605
17111
  id: z.ZodOptional<z.ZodString>;
16606
17112
  username: z.ZodString;
@@ -16608,8 +17114,8 @@ declare const pageRoutes: {
16608
17114
  email: z.ZodString;
16609
17115
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16610
17116
  createdAt: z.ZodString;
16611
- }, z.core.$strip>]>>>;
16612
- lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
17117
+ }, z.core.$strip>>>;
17118
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16613
17119
  _id: z.ZodString;
16614
17120
  id: z.ZodOptional<z.ZodString>;
16615
17121
  username: z.ZodString;
@@ -16617,18 +17123,9 @@ declare const pageRoutes: {
16617
17123
  email: z.ZodString;
16618
17124
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16619
17125
  createdAt: z.ZodString;
16620
- }, z.core.$strip>]>>>;
16621
- liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
16622
- commentCount: z.ZodDefault<z.ZodNumber>;
16623
- extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16624
- createdAt: z.ZodString;
16625
- updatedAt: z.ZodOptional<z.ZodString>;
16626
- currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16627
- yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16628
- latestRevision: z.ZodOptional<z.ZodString>;
16629
- likerCount: z.ZodOptional<z.ZodNumber>;
16630
- seenUsersCount: z.ZodOptional<z.ZodNumber>;
17126
+ }, z.core.$strip>>>;
16631
17127
  }, z.core.$strip>;
17128
+ granted: z.ZodBoolean;
16632
17129
  }, z.core.$strip>;
16633
17130
  };
16634
17131
  };
@@ -16660,6 +17157,27 @@ declare const pageRoutes: {
16660
17157
  };
16661
17158
  };
16662
17159
  };
17160
+ 403: {
17161
+ description: string;
17162
+ content: {
17163
+ 'application/json': {
17164
+ schema: z.ZodUnion<readonly [z.ZodObject<{
17165
+ error: z.ZodObject<{
17166
+ code: z.ZodLiteral<"PAGE_NOT_GRANTED">;
17167
+ message: z.ZodLiteral<"Page is not granted for the user">;
17168
+ }, z.core.$strip>;
17169
+ }, z.core.$strip>, z.ZodObject<{
17170
+ error: z.ZodObject<{
17171
+ code: z.ZodLiteral<"INSUFFICIENT_SCOPE">;
17172
+ message: z.ZodString;
17173
+ details: z.ZodOptional<z.ZodObject<{
17174
+ requiredScope: z.ZodString;
17175
+ }, z.core.$strip>>;
17176
+ }, z.core.$strip>;
17177
+ }, z.core.$strip>]>;
17178
+ };
17179
+ };
17180
+ };
16663
17181
  404: {
16664
17182
  description: string;
16665
17183
  content: {
@@ -16673,9 +17191,21 @@ declare const pageRoutes: {
16673
17191
  };
16674
17192
  };
16675
17193
  };
17194
+ 429: {
17195
+ description: string;
17196
+ content: {
17197
+ 'application/json': {
17198
+ schema: z.ZodObject<{
17199
+ error: z.ZodLiteral<"rate_limited">;
17200
+ message: z.ZodString;
17201
+ retryAfterSeconds: z.ZodNumber;
17202
+ }, z.core.$strip>;
17203
+ };
17204
+ };
17205
+ };
16676
17206
  };
16677
17207
  } & {
16678
- getRoutingPath(): "/pages/unlike";
17208
+ getRoutingPath(): "/pages/link-access";
16679
17209
  };
16680
17210
  getWatchStatusRoute: {
16681
17211
  method: "get";
@@ -16908,9 +17438,9 @@ declare const pageRoutes: {
16908
17438
  }, z.core.$strip>]>>>;
16909
17439
  message: z.ZodOptional<z.ZodString>;
16910
17440
  editVia: z.ZodOptional<z.ZodEnum<{
16911
- web: "web";
16912
17441
  oauth: "oauth";
16913
17442
  pat: "pat";
17443
+ web: "web";
16914
17444
  }>>;
16915
17445
  }, z.core.$strip>]>>;
16916
17446
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17099,9 +17629,9 @@ declare const pageRoutes: {
17099
17629
  }, z.core.$strip>]>>>;
17100
17630
  message: z.ZodOptional<z.ZodString>;
17101
17631
  editVia: z.ZodOptional<z.ZodEnum<{
17102
- web: "web";
17103
17632
  oauth: "oauth";
17104
17633
  pat: "pat";
17634
+ web: "web";
17105
17635
  }>>;
17106
17636
  }, z.core.$strip>]>>;
17107
17637
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17278,9 +17808,9 @@ declare const pageRoutes: {
17278
17808
  }, z.core.$strip>]>>>;
17279
17809
  message: z.ZodOptional<z.ZodString>;
17280
17810
  editVia: z.ZodOptional<z.ZodEnum<{
17281
- web: "web";
17282
17811
  oauth: "oauth";
17283
17812
  pat: "pat";
17813
+ web: "web";
17284
17814
  }>>;
17285
17815
  }, z.core.$strip>]>>;
17286
17816
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17460,9 +17990,9 @@ declare const pageRoutes: {
17460
17990
  }, z.core.$strip>]>>>;
17461
17991
  message: z.ZodOptional<z.ZodString>;
17462
17992
  editVia: z.ZodOptional<z.ZodEnum<{
17463
- web: "web";
17464
17993
  oauth: "oauth";
17465
17994
  pat: "pat";
17995
+ web: "web";
17466
17996
  }>>;
17467
17997
  }, z.core.$strip>]>>;
17468
17998
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -21087,9 +21617,9 @@ declare const searchPagesRoute: {
21087
21617
  }, zod_v4_core.$strip>]>>>;
21088
21618
  message: zod.ZodOptional<zod.ZodString>;
21089
21619
  editVia: zod.ZodOptional<zod.ZodEnum<{
21090
- web: "web";
21091
21620
  oauth: "oauth";
21092
21621
  pat: "pat";
21622
+ web: "web";
21093
21623
  }>>;
21094
21624
  }, zod_v4_core.$strip>]>>;
21095
21625
  redirectTo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -21298,9 +21828,9 @@ declare const searchRoutes: {
21298
21828
  }, zod_v4_core.$strip>]>>>;
21299
21829
  message: zod.ZodOptional<zod.ZodString>;
21300
21830
  editVia: zod.ZodOptional<zod.ZodEnum<{
21301
- web: "web";
21302
21831
  oauth: "oauth";
21303
21832
  pat: "pat";
21833
+ web: "web";
21304
21834
  }>>;
21305
21835
  }, zod_v4_core.$strip>]>>;
21306
21836
  redirectTo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -23056,6 +23586,7 @@ declare const PluginInfoSchema: z.ZodObject<{
23056
23586
  name: z.ZodString;
23057
23587
  version: z.ZodString;
23058
23588
  requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
23589
+ modelAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
23059
23590
  hasConfig: z.ZodBoolean;
23060
23591
  registers: z.ZodArray<z.ZodString>;
23061
23592
  adminPlacement: z.ZodObject<{
@@ -23074,6 +23605,11 @@ declare const PluginInfoSchema: z.ZodObject<{
23074
23605
  icon: z.ZodOptional<z.ZodString>;
23075
23606
  }, z.core.$strip>;
23076
23607
  supportsHotReload: z.ZodBoolean;
23608
+ status: z.ZodDefault<z.ZodEnum<{
23609
+ active: "active";
23610
+ failed: "failed";
23611
+ }>>;
23612
+ error: z.ZodOptional<z.ZodString>;
23077
23613
  }, z.core.$strip>;
23078
23614
  type PluginInfo = z.infer<typeof PluginInfoSchema>;
23079
23615
  declare const ListPluginsResponseSchema: z.ZodObject<{
@@ -23081,6 +23617,7 @@ declare const ListPluginsResponseSchema: z.ZodObject<{
23081
23617
  name: z.ZodString;
23082
23618
  version: z.ZodString;
23083
23619
  requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
23620
+ modelAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
23084
23621
  hasConfig: z.ZodBoolean;
23085
23622
  registers: z.ZodArray<z.ZodString>;
23086
23623
  adminPlacement: z.ZodObject<{
@@ -23099,6 +23636,11 @@ declare const ListPluginsResponseSchema: z.ZodObject<{
23099
23636
  icon: z.ZodOptional<z.ZodString>;
23100
23637
  }, z.core.$strip>;
23101
23638
  supportsHotReload: z.ZodBoolean;
23639
+ status: z.ZodDefault<z.ZodEnum<{
23640
+ active: "active";
23641
+ failed: "failed";
23642
+ }>>;
23643
+ error: z.ZodOptional<z.ZodString>;
23102
23644
  }, z.core.$strip>>;
23103
23645
  }, z.core.$strip>;
23104
23646
  type ListPluginsResponse = z.infer<typeof ListPluginsResponseSchema>;
@@ -23218,6 +23760,7 @@ declare const listPluginsRoute: {
23218
23760
  name: z.ZodString;
23219
23761
  version: z.ZodString;
23220
23762
  requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
23763
+ modelAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
23221
23764
  hasConfig: z.ZodBoolean;
23222
23765
  registers: z.ZodArray<z.ZodString>;
23223
23766
  adminPlacement: z.ZodObject<{
@@ -23236,6 +23779,11 @@ declare const listPluginsRoute: {
23236
23779
  icon: z.ZodOptional<z.ZodString>;
23237
23780
  }, z.core.$strip>;
23238
23781
  supportsHotReload: z.ZodBoolean;
23782
+ status: z.ZodDefault<z.ZodEnum<{
23783
+ active: "active";
23784
+ failed: "failed";
23785
+ }>>;
23786
+ error: z.ZodOptional<z.ZodString>;
23239
23787
  }, z.core.$strip>>;
23240
23788
  }, z.core.$strip>;
23241
23789
  };
@@ -23686,6 +24234,7 @@ declare const adminPluginsRoutes: {
23686
24234
  name: z.ZodString;
23687
24235
  version: z.ZodString;
23688
24236
  requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
24237
+ modelAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
23689
24238
  hasConfig: z.ZodBoolean;
23690
24239
  registers: z.ZodArray<z.ZodString>;
23691
24240
  adminPlacement: z.ZodObject<{
@@ -23704,6 +24253,11 @@ declare const adminPluginsRoutes: {
23704
24253
  icon: z.ZodOptional<z.ZodString>;
23705
24254
  }, z.core.$strip>;
23706
24255
  supportsHotReload: z.ZodBoolean;
24256
+ status: z.ZodDefault<z.ZodEnum<{
24257
+ active: "active";
24258
+ failed: "failed";
24259
+ }>>;
24260
+ error: z.ZodOptional<z.ZodString>;
23707
24261
  }, z.core.$strip>>;
23708
24262
  }, z.core.$strip>;
23709
24263
  };
@@ -28154,7 +28708,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
28154
28708
  confidential: string | null;
28155
28709
  version: string;
28156
28710
  apiVersion: string;
28157
- capabilities: string[];
28711
+ capabilities: ("search" | "oauth" | "oauth:auth-code" | "oauth:device" | "oauth:pkce" | "pat" | "pages" | "comments" | "bookmarks" | "attachments" | "notifications" | "collab" | "collab:redis")[];
28158
28712
  canSelfRegister: boolean;
28159
28713
  };
28160
28714
  outputFormat: "json";
@@ -29559,7 +30113,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
29559
30113
  image?: string | null | undefined;
29560
30114
  })[] | undefined;
29561
30115
  message?: string | undefined;
29562
- editVia?: "web" | "oauth" | "pat" | undefined;
30116
+ editVia?: "oauth" | "pat" | "web" | undefined;
29563
30117
  } | undefined;
29564
30118
  redirectTo?: string | null | undefined;
29565
30119
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -29927,7 +30481,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
29927
30481
  image?: string | null | undefined;
29928
30482
  })[] | undefined;
29929
30483
  message?: string | undefined;
29930
- editVia?: "web" | "oauth" | "pat" | undefined;
30484
+ editVia?: "oauth" | "pat" | "web" | undefined;
29931
30485
  } | undefined;
29932
30486
  redirectTo?: string | null | undefined;
29933
30487
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -30023,7 +30577,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
30023
30577
  image?: string | null | undefined;
30024
30578
  })[] | undefined;
30025
30579
  message?: string | undefined;
30026
- editVia?: "web" | "oauth" | "pat" | undefined;
30580
+ editVia?: "oauth" | "pat" | "web" | undefined;
30027
30581
  } | undefined;
30028
30582
  redirectTo?: string | null | undefined;
30029
30583
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -30224,7 +30778,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
30224
30778
  image?: string | null | undefined;
30225
30779
  })[] | undefined;
30226
30780
  message?: string | undefined;
30227
- editVia?: "web" | "oauth" | "pat" | undefined;
30781
+ editVia?: "oauth" | "pat" | "web" | undefined;
30228
30782
  } | undefined;
30229
30783
  redirectTo?: string | null | undefined;
30230
30784
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -30415,7 +30969,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
30415
30969
  image?: string | null | undefined;
30416
30970
  })[] | undefined;
30417
30971
  message?: string | undefined;
30418
- editVia?: "web" | "oauth" | "pat" | undefined;
30972
+ editVia?: "oauth" | "pat" | "web" | undefined;
30419
30973
  } | undefined;
30420
30974
  redirectTo?: string | null | undefined;
30421
30975
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -30622,7 +31176,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
30622
31176
  image?: string | null | undefined;
30623
31177
  })[] | undefined;
30624
31178
  message?: string | undefined;
30625
- editVia?: "web" | "oauth" | "pat" | undefined;
31179
+ editVia?: "oauth" | "pat" | "web" | undefined;
30626
31180
  } | undefined;
30627
31181
  redirectTo?: string | null | undefined;
30628
31182
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -30792,7 +31346,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
30792
31346
  image?: string | null | undefined;
30793
31347
  })[] | undefined;
30794
31348
  message?: string | undefined;
30795
- editVia?: "web" | "oauth" | "pat" | undefined;
31349
+ editVia?: "oauth" | "pat" | "web" | undefined;
30796
31350
  } | undefined;
30797
31351
  redirectTo?: string | null | undefined;
30798
31352
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -30951,7 +31505,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
30951
31505
  image?: string | null | undefined;
30952
31506
  })[] | undefined;
30953
31507
  message?: string | undefined;
30954
- editVia?: "web" | "oauth" | "pat" | undefined;
31508
+ editVia?: "oauth" | "pat" | "web" | undefined;
30955
31509
  } | undefined;
30956
31510
  redirectTo?: string | null | undefined;
30957
31511
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -31149,6 +31703,22 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
31149
31703
  };
31150
31704
  outputFormat: "json";
31151
31705
  status: 200;
31706
+ } | {
31707
+ input: {
31708
+ query: {
31709
+ page_id: string;
31710
+ limit?: unknown;
31711
+ offset?: unknown;
31712
+ };
31713
+ };
31714
+ output: {
31715
+ error: {
31716
+ code: "PAGE_NOT_FOUND";
31717
+ message: "Page not found";
31718
+ };
31719
+ };
31720
+ outputFormat: "json";
31721
+ status: 404;
31152
31722
  };
31153
31723
  };
31154
31724
  } & {
@@ -31169,6 +31739,21 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
31169
31739
  };
31170
31740
  outputFormat: "json";
31171
31741
  status: 401;
31742
+ } | {
31743
+ input: {
31744
+ query: {
31745
+ page_id?: string | undefined;
31746
+ revision_id?: string | undefined;
31747
+ };
31748
+ };
31749
+ output: {
31750
+ error: {
31751
+ code: "PAGE_NOT_FOUND";
31752
+ message: "Page not found";
31753
+ };
31754
+ };
31755
+ outputFormat: "json";
31756
+ status: 404;
31172
31757
  } | {
31173
31758
  input: {
31174
31759
  query: {
@@ -31234,6 +31819,23 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
31234
31819
  };
31235
31820
  outputFormat: "json";
31236
31821
  status: 401;
31822
+ } | {
31823
+ input: {
31824
+ json: {
31825
+ page_id: string;
31826
+ revision_id: string;
31827
+ comment: string;
31828
+ comment_position?: number | undefined;
31829
+ };
31830
+ };
31831
+ output: {
31832
+ error: {
31833
+ code: "PAGE_NOT_FOUND";
31834
+ message: "Page not found";
31835
+ };
31836
+ };
31837
+ outputFormat: "json";
31838
+ status: 404;
31237
31839
  } | {
31238
31840
  input: {
31239
31841
  json: {
@@ -31282,23 +31884,6 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
31282
31884
  };
31283
31885
  outputFormat: "json";
31284
31886
  status: 200;
31285
- } | {
31286
- input: {
31287
- json: {
31288
- page_id: string;
31289
- revision_id: string;
31290
- comment: string;
31291
- comment_position?: number | undefined;
31292
- };
31293
- };
31294
- output: {
31295
- error: {
31296
- code: "PAGE_NOT_FOUND";
31297
- message: "Page not found";
31298
- };
31299
- };
31300
- outputFormat: "json";
31301
- status: 404;
31302
31887
  };
31303
31888
  };
31304
31889
  } & {
@@ -31462,7 +32047,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
31462
32047
  id?: string | undefined;
31463
32048
  image?: string | null | undefined;
31464
32049
  }[] | undefined;
31465
- editVia?: "web" | "oauth" | "pat" | undefined;
32050
+ editVia?: "oauth" | "pat" | "web" | undefined;
31466
32051
  }[];
31467
32052
  pager: {
31468
32053
  prev: number | null;
@@ -31599,130 +32184,146 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
31599
32184
  image?: string | null | undefined;
31600
32185
  })[] | undefined;
31601
32186
  message?: string | undefined;
31602
- editVia?: "web" | "oauth" | "pat" | undefined;
31603
- }[];
32187
+ editVia?: "oauth" | "pat" | "web" | undefined;
32188
+ }[];
32189
+ };
32190
+ outputFormat: "json";
32191
+ status: 200;
32192
+ };
32193
+ };
32194
+ } & {
32195
+ "/pages/revisions/:id": {
32196
+ $get: {
32197
+ input: {
32198
+ param: {
32199
+ id: string;
32200
+ };
32201
+ };
32202
+ output: {
32203
+ error: {
32204
+ code: "AUTHENTICATION_REQUIRED";
32205
+ message: "Authentication is required";
32206
+ redirectTo?: string | undefined;
32207
+ };
32208
+ };
32209
+ outputFormat: "json";
32210
+ status: 401;
32211
+ } | {
32212
+ input: {
32213
+ param: {
32214
+ id: string;
32215
+ };
32216
+ };
32217
+ output: {
32218
+ error: {
32219
+ code: "PAGE_NOT_FOUND";
32220
+ message: "Page not found";
32221
+ };
32222
+ };
32223
+ outputFormat: "json";
32224
+ status: 404;
32225
+ } | {
32226
+ input: {
32227
+ param: {
32228
+ id: string;
32229
+ };
32230
+ };
32231
+ output: {
32232
+ error: {
32233
+ code: "INVALID_REQUEST";
32234
+ message: string;
32235
+ };
32236
+ };
32237
+ outputFormat: "json";
32238
+ status: 400;
32239
+ } | {
32240
+ input: {
32241
+ param: {
32242
+ id: string;
32243
+ };
32244
+ };
32245
+ output: {
32246
+ revision: {
32247
+ _id: string;
32248
+ path: string;
32249
+ body: string;
32250
+ format: string;
32251
+ createdAt: string;
32252
+ author?: {
32253
+ _id: string;
32254
+ username: string;
32255
+ name: string;
32256
+ email: string;
32257
+ createdAt: string;
32258
+ id?: string | undefined;
32259
+ image?: string | null | undefined;
32260
+ } | null | undefined;
32261
+ meta?: {
32262
+ toc?: {
32263
+ level: number;
32264
+ text: string;
32265
+ anchorId: string;
32266
+ }[] | undefined;
32267
+ wikiLinks?: {
32268
+ raw: string;
32269
+ target: string;
32270
+ displayText?: string | undefined;
32271
+ }[] | undefined;
32272
+ mentions?: {
32273
+ username: string;
32274
+ }[] | undefined;
32275
+ codeBlockLanguages?: string[] | undefined;
32276
+ } | undefined;
32277
+ renderedAst?: hono_utils_types.JSONValue | undefined;
32278
+ rendererVersion?: string | undefined;
32279
+ parentRevisionId?: string | null | undefined;
32280
+ type?: "snapshot" | "incremental" | undefined;
32281
+ savedBy?: string | {
32282
+ _id: string;
32283
+ username: string;
32284
+ name: string;
32285
+ email: string;
32286
+ createdAt: string;
32287
+ id?: string | undefined;
32288
+ image?: string | null | undefined;
32289
+ } | null | undefined;
32290
+ contributors?: (string | {
32291
+ _id: string;
32292
+ username: string;
32293
+ name: string;
32294
+ email: string;
32295
+ createdAt: string;
32296
+ id?: string | undefined;
32297
+ image?: string | null | undefined;
32298
+ })[] | undefined;
32299
+ message?: string | undefined;
32300
+ editVia?: "oauth" | "pat" | "web" | undefined;
32301
+ };
31604
32302
  };
31605
32303
  outputFormat: "json";
31606
32304
  status: 200;
31607
32305
  };
31608
32306
  };
31609
- } & {
31610
- "/pages/revisions/:id": {
32307
+ }, "/">;
32308
+ declare const pageChain: OpenAPIHono<hono.Env, {
32309
+ "/pages": {
31611
32310
  $get: {
31612
32311
  input: {
31613
- param: {
31614
- id: string;
31615
- };
31616
- };
31617
- output: {
31618
- error: {
31619
- code: "AUTHENTICATION_REQUIRED";
31620
- message: "Authentication is required";
31621
- redirectTo?: string | undefined;
31622
- };
31623
- };
31624
- outputFormat: "json";
31625
- status: 401;
31626
- } | {
31627
- input: {
31628
- param: {
31629
- id: string;
31630
- };
31631
- };
31632
- output: {
31633
- error: {
31634
- code: "PAGE_NOT_FOUND";
31635
- message: "Page not found";
31636
- };
31637
- };
31638
- outputFormat: "json";
31639
- status: 404;
31640
- } | {
31641
- input: {
31642
- param: {
31643
- id: string;
32312
+ query: {
32313
+ path?: string | undefined;
32314
+ page_id?: string | undefined;
32315
+ revision_id?: string | undefined;
31644
32316
  };
31645
32317
  };
31646
32318
  output: {
31647
32319
  error: {
31648
- code: "INVALID_REQUEST";
31649
- message: string;
32320
+ code: "INTERNAL_ERROR";
32321
+ message: "Internal server error";
31650
32322
  };
31651
32323
  };
31652
32324
  outputFormat: "json";
31653
- status: 400;
32325
+ status: 500;
31654
32326
  } | {
31655
- input: {
31656
- param: {
31657
- id: string;
31658
- };
31659
- };
31660
- output: {
31661
- revision: {
31662
- _id: string;
31663
- path: string;
31664
- body: string;
31665
- format: string;
31666
- createdAt: string;
31667
- author?: {
31668
- _id: string;
31669
- username: string;
31670
- name: string;
31671
- email: string;
31672
- createdAt: string;
31673
- id?: string | undefined;
31674
- image?: string | null | undefined;
31675
- } | null | undefined;
31676
- meta?: {
31677
- toc?: {
31678
- level: number;
31679
- text: string;
31680
- anchorId: string;
31681
- }[] | undefined;
31682
- wikiLinks?: {
31683
- raw: string;
31684
- target: string;
31685
- displayText?: string | undefined;
31686
- }[] | undefined;
31687
- mentions?: {
31688
- username: string;
31689
- }[] | undefined;
31690
- codeBlockLanguages?: string[] | undefined;
31691
- } | undefined;
31692
- renderedAst?: hono_utils_types.JSONValue | undefined;
31693
- rendererVersion?: string | undefined;
31694
- parentRevisionId?: string | null | undefined;
31695
- type?: "snapshot" | "incremental" | undefined;
31696
- savedBy?: string | {
31697
- _id: string;
31698
- username: string;
31699
- name: string;
31700
- email: string;
31701
- createdAt: string;
31702
- id?: string | undefined;
31703
- image?: string | null | undefined;
31704
- } | null | undefined;
31705
- contributors?: (string | {
31706
- _id: string;
31707
- username: string;
31708
- name: string;
31709
- email: string;
31710
- createdAt: string;
31711
- id?: string | undefined;
31712
- image?: string | null | undefined;
31713
- })[] | undefined;
31714
- message?: string | undefined;
31715
- editVia?: "web" | "oauth" | "pat" | undefined;
31716
- };
31717
- };
31718
- outputFormat: "json";
31719
- status: 200;
31720
- };
31721
- };
31722
- }, "/">;
31723
- declare const pageChain: OpenAPIHono<hono.Env, {
31724
- "/pages": {
31725
- $get: {
31726
32327
  input: {
31727
32328
  query: {
31728
32329
  path?: string | undefined;
@@ -31839,7 +32440,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
31839
32440
  image?: string | null | undefined;
31840
32441
  })[] | undefined;
31841
32442
  message?: string | undefined;
31842
- editVia?: "web" | "oauth" | "pat" | undefined;
32443
+ editVia?: "oauth" | "pat" | "web" | undefined;
31843
32444
  };
31844
32445
  redirectTo?: string | null | undefined;
31845
32446
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -31976,7 +32577,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
31976
32577
  image?: string | null | undefined;
31977
32578
  })[] | undefined;
31978
32579
  message?: string | undefined;
31979
- editVia?: "web" | "oauth" | "pat" | undefined;
32580
+ editVia?: "oauth" | "pat" | "web" | undefined;
31980
32581
  } | undefined;
31981
32582
  redirectTo?: string | null | undefined;
31982
32583
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -32075,7 +32676,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
32075
32676
  image?: string | null | undefined;
32076
32677
  })[] | undefined;
32077
32678
  message?: string | undefined;
32078
- editVia?: "web" | "oauth" | "pat" | undefined;
32679
+ editVia?: "oauth" | "pat" | "web" | undefined;
32079
32680
  } | undefined;
32080
32681
  redirectTo?: string | null | undefined;
32081
32682
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -32169,7 +32770,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
32169
32770
  image?: string | null | undefined;
32170
32771
  })[] | undefined;
32171
32772
  message?: string | undefined;
32172
- editVia?: "web" | "oauth" | "pat" | undefined;
32773
+ editVia?: "oauth" | "pat" | "web" | undefined;
32173
32774
  } | undefined;
32174
32775
  redirectTo?: string | null | undefined;
32175
32776
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -32332,7 +32933,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
32332
32933
  image?: string | null | undefined;
32333
32934
  })[] | undefined;
32334
32935
  message?: string | undefined;
32335
- editVia?: "web" | "oauth" | "pat" | undefined;
32936
+ editVia?: "oauth" | "pat" | "web" | undefined;
32336
32937
  } | undefined;
32337
32938
  redirectTo?: string | null | undefined;
32338
32939
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -32494,7 +33095,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
32494
33095
  image?: string | null | undefined;
32495
33096
  })[] | undefined;
32496
33097
  message?: string | undefined;
32497
- editVia?: "web" | "oauth" | "pat" | undefined;
33098
+ editVia?: "oauth" | "pat" | "web" | undefined;
32498
33099
  } | undefined;
32499
33100
  redirectTo?: string | null | undefined;
32500
33101
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -32668,7 +33269,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
32668
33269
  image?: string | null | undefined;
32669
33270
  })[] | undefined;
32670
33271
  message?: string | undefined;
32671
- editVia?: "web" | "oauth" | "pat" | undefined;
33272
+ editVia?: "oauth" | "pat" | "web" | undefined;
32672
33273
  } | undefined;
32673
33274
  redirectTo?: string | null | undefined;
32674
33275
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -32978,7 +33579,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
32978
33579
  image?: string | null | undefined;
32979
33580
  })[] | undefined;
32980
33581
  message?: string | undefined;
32981
- editVia?: "web" | "oauth" | "pat" | undefined;
33582
+ editVia?: "oauth" | "pat" | "web" | undefined;
32982
33583
  } | undefined;
32983
33584
  redirectTo?: string | null | undefined;
32984
33585
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -33129,13 +33730,174 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33129
33730
  image?: string | null | undefined;
33130
33731
  })[] | undefined;
33131
33732
  message?: string | undefined;
33132
- editVia?: "web" | "oauth" | "pat" | undefined;
33133
- } | undefined;
33733
+ editVia?: "oauth" | "pat" | "web" | undefined;
33734
+ } | undefined;
33735
+ redirectTo?: string | null | undefined;
33736
+ status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
33737
+ grant?: number | undefined;
33738
+ grantedUsers?: string[] | undefined;
33739
+ creator?: string | {
33740
+ _id: string;
33741
+ username: string;
33742
+ name: string;
33743
+ email: string;
33744
+ createdAt: string;
33745
+ id?: string | undefined;
33746
+ image?: string | null | undefined;
33747
+ } | null | undefined;
33748
+ lastUpdateUser?: string | {
33749
+ _id: string;
33750
+ username: string;
33751
+ name: string;
33752
+ email: string;
33753
+ createdAt: string;
33754
+ id?: string | undefined;
33755
+ image?: string | null | undefined;
33756
+ } | null | undefined;
33757
+ liker?: string[] | undefined;
33758
+ extended?: {
33759
+ [x: string]: any;
33760
+ } | undefined;
33761
+ updatedAt?: string | undefined;
33762
+ currentRevision?: string | null | undefined;
33763
+ yjsCheckpointAt?: string | null | undefined;
33764
+ latestRevision?: string | undefined;
33765
+ likerCount?: number | undefined;
33766
+ seenUsersCount?: number | undefined;
33767
+ };
33768
+ };
33769
+ outputFormat: "json";
33770
+ status: 200;
33771
+ };
33772
+ };
33773
+ } & {
33774
+ "/pages/link-access": {
33775
+ $post: {
33776
+ input: {
33777
+ json: {
33778
+ page_id: string;
33779
+ };
33780
+ };
33781
+ output: {
33782
+ error: {
33783
+ code: "AUTHENTICATION_REQUIRED";
33784
+ message: "Authentication is required";
33785
+ redirectTo?: string | undefined;
33786
+ };
33787
+ };
33788
+ outputFormat: "json";
33789
+ status: 401;
33790
+ } | {
33791
+ input: {
33792
+ json: {
33793
+ page_id: string;
33794
+ };
33795
+ };
33796
+ output: {
33797
+ error: {
33798
+ code: "INVALID_PAGE_ID";
33799
+ message: string;
33800
+ };
33801
+ };
33802
+ outputFormat: "json";
33803
+ status: 400;
33804
+ } | {
33805
+ input: {
33806
+ json: {
33807
+ page_id: string;
33808
+ };
33809
+ };
33810
+ output: {
33811
+ error: {
33812
+ code: "PAGE_NOT_FOUND";
33813
+ message: "Page not found";
33814
+ };
33815
+ };
33816
+ outputFormat: "json";
33817
+ status: 404;
33818
+ } | {
33819
+ input: {
33820
+ json: {
33821
+ page_id: string;
33822
+ };
33823
+ };
33824
+ output: {
33825
+ page: {
33826
+ _id: string;
33827
+ path: string;
33828
+ commentCount: number;
33829
+ createdAt: string;
33830
+ revision: {
33831
+ _id: string;
33832
+ path: string;
33833
+ body: string;
33834
+ format: string;
33835
+ createdAt: string;
33836
+ author?: {
33837
+ _id: string;
33838
+ username: string;
33839
+ name: string;
33840
+ email: string;
33841
+ createdAt: string;
33842
+ id?: string | undefined;
33843
+ image?: string | null | undefined;
33844
+ } | null | undefined;
33845
+ meta?: {
33846
+ toc?: {
33847
+ level: number;
33848
+ text: string;
33849
+ anchorId: string;
33850
+ }[] | undefined;
33851
+ wikiLinks?: {
33852
+ raw: string;
33853
+ target: string;
33854
+ displayText?: string | undefined;
33855
+ }[] | undefined;
33856
+ mentions?: {
33857
+ username: string;
33858
+ }[] | undefined;
33859
+ codeBlockLanguages?: string[] | undefined;
33860
+ } | undefined;
33861
+ renderedAst?: hono_utils_types.JSONValue | undefined;
33862
+ rendererVersion?: string | undefined;
33863
+ parentRevisionId?: string | null | undefined;
33864
+ type?: "snapshot" | "incremental" | undefined;
33865
+ savedBy?: string | {
33866
+ _id: string;
33867
+ username: string;
33868
+ name: string;
33869
+ email: string;
33870
+ createdAt: string;
33871
+ id?: string | undefined;
33872
+ image?: string | null | undefined;
33873
+ } | null | undefined;
33874
+ contributors?: (string | {
33875
+ _id: string;
33876
+ username: string;
33877
+ name: string;
33878
+ email: string;
33879
+ createdAt: string;
33880
+ id?: string | undefined;
33881
+ image?: string | null | undefined;
33882
+ })[] | undefined;
33883
+ message?: string | undefined;
33884
+ editVia?: "oauth" | "pat" | "web" | undefined;
33885
+ };
33134
33886
  redirectTo?: string | null | undefined;
33135
33887
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
33136
33888
  grant?: number | undefined;
33137
33889
  grantedUsers?: string[] | undefined;
33138
- creator?: string | {
33890
+ liker?: string[] | undefined;
33891
+ extended?: {
33892
+ [x: string]: any;
33893
+ } | undefined;
33894
+ updatedAt?: string | undefined;
33895
+ currentRevision?: string | null | undefined;
33896
+ yjsCheckpointAt?: string | null | undefined;
33897
+ latestRevision?: string | undefined;
33898
+ likerCount?: number | undefined;
33899
+ seenUsersCount?: number | undefined;
33900
+ creator?: {
33139
33901
  _id: string;
33140
33902
  username: string;
33141
33903
  name: string;
@@ -33144,7 +33906,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33144
33906
  id?: string | undefined;
33145
33907
  image?: string | null | undefined;
33146
33908
  } | null | undefined;
33147
- lastUpdateUser?: string | {
33909
+ lastUpdateUser?: {
33148
33910
  _id: string;
33149
33911
  username: string;
33150
33912
  name: string;
@@ -33153,20 +33915,46 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33153
33915
  id?: string | undefined;
33154
33916
  image?: string | null | undefined;
33155
33917
  } | null | undefined;
33156
- liker?: string[] | undefined;
33157
- extended?: {
33158
- [x: string]: any;
33159
- } | undefined;
33160
- updatedAt?: string | undefined;
33161
- currentRevision?: string | null | undefined;
33162
- yjsCheckpointAt?: string | null | undefined;
33163
- latestRevision?: string | undefined;
33164
- likerCount?: number | undefined;
33165
- seenUsersCount?: number | undefined;
33166
33918
  };
33919
+ granted: boolean;
33167
33920
  };
33168
33921
  outputFormat: "json";
33169
33922
  status: 200;
33923
+ } | {
33924
+ input: {
33925
+ json: {
33926
+ page_id: string;
33927
+ };
33928
+ };
33929
+ output: {
33930
+ error: {
33931
+ code: "PAGE_NOT_GRANTED";
33932
+ message: "Page is not granted for the user";
33933
+ };
33934
+ } | {
33935
+ error: {
33936
+ code: "INSUFFICIENT_SCOPE";
33937
+ message: string;
33938
+ details?: {
33939
+ requiredScope: string;
33940
+ } | undefined;
33941
+ };
33942
+ };
33943
+ outputFormat: "json";
33944
+ status: 403;
33945
+ } | {
33946
+ input: {
33947
+ json: {
33948
+ page_id: string;
33949
+ };
33950
+ };
33951
+ output: {
33952
+ error: "rate_limited";
33953
+ message: string;
33954
+ retryAfterSeconds: number;
33955
+ };
33956
+ outputFormat: "json";
33957
+ status: 429;
33170
33958
  };
33171
33959
  };
33172
33960
  } & {
@@ -33392,7 +34180,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33392
34180
  image?: string | null | undefined;
33393
34181
  })[] | undefined;
33394
34182
  message?: string | undefined;
33395
- editVia?: "web" | "oauth" | "pat" | undefined;
34183
+ editVia?: "oauth" | "pat" | "web" | undefined;
33396
34184
  } | undefined;
33397
34185
  redirectTo?: string | null | undefined;
33398
34186
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -33561,7 +34349,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33561
34349
  image?: string | null | undefined;
33562
34350
  })[] | undefined;
33563
34351
  message?: string | undefined;
33564
- editVia?: "web" | "oauth" | "pat" | undefined;
34352
+ editVia?: "oauth" | "pat" | "web" | undefined;
33565
34353
  } | undefined;
33566
34354
  redirectTo?: string | null | undefined;
33567
34355
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -33715,7 +34503,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33715
34503
  image?: string | null | undefined;
33716
34504
  })[] | undefined;
33717
34505
  message?: string | undefined;
33718
- editVia?: "web" | "oauth" | "pat" | undefined;
34506
+ editVia?: "oauth" | "pat" | "web" | undefined;
33719
34507
  } | undefined;
33720
34508
  redirectTo?: string | null | undefined;
33721
34509
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -33897,7 +34685,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33897
34685
  image?: string | null | undefined;
33898
34686
  })[] | undefined;
33899
34687
  message?: string | undefined;
33900
- editVia?: "web" | "oauth" | "pat" | undefined;
34688
+ editVia?: "oauth" | "pat" | "web" | undefined;
33901
34689
  } | undefined;
33902
34690
  redirectTo?: string | null | undefined;
33903
34691
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -34471,6 +35259,21 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
34471
35259
  };
34472
35260
  outputFormat: "json";
34473
35261
  status: 401;
35262
+ } | {
35263
+ input: {
35264
+ query: {
35265
+ q: string;
35266
+ limit?: unknown;
35267
+ anchor?: "substring" | "prefix" | undefined;
35268
+ };
35269
+ };
35270
+ output: {
35271
+ error: "rate_limited";
35272
+ message: string;
35273
+ retryAfterSeconds: number;
35274
+ };
35275
+ outputFormat: "json";
35276
+ status: 429;
34474
35277
  } | {
34475
35278
  input: {
34476
35279
  query: {
@@ -34513,21 +35316,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
34513
35316
  };
34514
35317
  outputFormat: "json";
34515
35318
  status: 400;
34516
- } | {
34517
- input: {
34518
- query: {
34519
- q: string;
34520
- limit?: unknown;
34521
- anchor?: "substring" | "prefix" | undefined;
34522
- };
34523
- };
34524
- output: {
34525
- error: "rate_limited";
34526
- message: string;
34527
- retryAfterSeconds: number;
34528
- };
34529
- outputFormat: "json";
34530
- status: 429;
34531
35319
  };
34532
35320
  };
34533
35321
  } & {
@@ -34549,6 +35337,21 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
34549
35337
  };
34550
35338
  outputFormat: "json";
34551
35339
  status: 401;
35340
+ } | {
35341
+ input: {
35342
+ query: {
35343
+ q: string;
35344
+ limit?: unknown;
35345
+ anchor?: "substring" | "prefix" | undefined;
35346
+ };
35347
+ };
35348
+ output: {
35349
+ error: "rate_limited";
35350
+ message: string;
35351
+ retryAfterSeconds: number;
35352
+ };
35353
+ outputFormat: "json";
35354
+ status: 429;
34552
35355
  } | {
34553
35356
  input: {
34554
35357
  query: {
@@ -34591,21 +35394,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
34591
35394
  };
34592
35395
  outputFormat: "json";
34593
35396
  status: 400;
34594
- } | {
34595
- input: {
34596
- query: {
34597
- q: string;
34598
- limit?: unknown;
34599
- anchor?: "substring" | "prefix" | undefined;
34600
- };
34601
- };
34602
- output: {
34603
- error: "rate_limited";
34604
- message: string;
34605
- retryAfterSeconds: number;
34606
- };
34607
- outputFormat: "json";
34608
- status: 429;
34609
35397
  };
34610
35398
  };
34611
35399
  } & {
@@ -35433,7 +36221,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
35433
36221
  image?: string | null | undefined;
35434
36222
  })[] | undefined;
35435
36223
  message?: string | undefined;
35436
- editVia?: "web" | "oauth" | "pat" | undefined;
36224
+ editVia?: "oauth" | "pat" | "web" | undefined;
35437
36225
  } | undefined;
35438
36226
  redirectTo?: string | null | undefined;
35439
36227
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -35882,9 +36670,10 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
35882
36670
  *
35883
36671
  * Phase 6 (TS2589 escape hatch removal) — these chains are no longer
35884
36672
  * concatenated onto a single `contractApp` via `.route('/', sub)`.
35885
- * Instead, every chain stands alone and `AppType` below is an
35886
- * intersection of their `typeof`s, which `hc<T>` happily collapses via
35887
- * its built-in `UnionToIntersection<Client<T, Prefix>>` plumbing.
36673
+ * Instead, every chain stands alone and `CrowiApiClient` below is an
36674
+ * intersection of their `hc<...>` return types, which `hc<T>` happily
36675
+ * collapses via its built-in `UnionToIntersection<Client<T, Prefix>>`
36676
+ * plumbing.
35888
36677
  */
35889
36678
  declare const adminSettingsContractApp: OpenAPIHono<hono.Env, {
35890
36679
  "/admin/app": {
@@ -37897,7 +38686,10 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
37897
38686
  icon?: string | undefined;
37898
38687
  };
37899
38688
  supportsHotReload: boolean;
38689
+ status: "active" | "failed";
37900
38690
  requires?: string[] | undefined;
38691
+ modelAccess?: string[] | undefined;
38692
+ error?: string | undefined;
37901
38693
  }[];
37902
38694
  };
37903
38695
  outputFormat: "json";
@@ -38576,19 +39368,6 @@ type LateContractApp = typeof lateContractApp;
38576
39368
  type AdminSettingsContractApp = typeof adminSettingsContractApp;
38577
39369
  type AdminUsersPluginsContractApp = typeof adminUsersPluginsContractApp;
38578
39370
  type OAuthContractApp = typeof oauthContractApp;
38579
- /**
38580
- * `AppType` is exposed as an alias of one representative sub-chain so
38581
- * legacy consumers that `import type { AppType }` keep building. The
38582
- * accurate client surface is `CrowiApiClient` below, which intersects
38583
- * the per-chain `hc` instantiations one at a time so TypeScript never
38584
- * has to fold every chain's schema into a single `Client<T, Prefix>`
38585
- * type expression. (Folding-via-intersection was the layout we tried
38586
- * first and it tripped TS2589 in `Client<T, Prefix>`'s
38587
- * `T extends HonoBase<any, infer S, any>` arm — `infer S` only sees
38588
- * the first summand, so only one chain's routes showed up on the
38589
- * proxy.)
38590
- */
38591
- type AppType = AppAuthMeUserChain;
38592
39371
  /**
38593
39372
  * Default request init applied to every call unless the caller overrides
38594
39373
  * it. The `headers` shape matches Hono's `hc` (a plain record / async
@@ -38614,7 +39393,8 @@ interface ClientOptions {
38614
39393
  * is a path-traversal `Proxy`: it lazily reflects whatever property
38615
39394
  * chain the caller dots into. The actual route dispatch happens on the
38616
39395
  * server, so the proxy's runtime behaviour is identical regardless of
38617
- * which `AppType` we hand `hc`. We hand it one chain (`AppType`) and
39396
+ * which chain type we hand `hc`. We hand it one chain
39397
+ * (`AppAuthMeUserChain`, arbitrarily — any of the seven would do) and
38618
39398
  * then assert the returned proxy as the full intersection below.
38619
39399
  */
38620
39400
  type CrowiApiClient = ReturnType<typeof hc<AppAuthMeUserChain>> & ReturnType<typeof hc<BookmarkBacklinkCommentRevisionChain>> & ReturnType<typeof hc<PageChain>> & ReturnType<typeof hc<LateContractApp>> & ReturnType<typeof hc<AdminSettingsContractApp>> & ReturnType<typeof hc<AdminUsersPluginsContractApp>> & ReturnType<typeof hc<OAuthContractApp>>;
@@ -38641,14 +39421,25 @@ declare const createClient: (baseUrl: string, options?: ClientOptions) => CrowiA
38641
39421
  * notice shows on screenshots / printouts (corporate IT requirement).
38642
39422
  *
38643
39423
  * `version` is the running Crowi server version (the `@crowi/api` package
38644
- * version). `apiVersion` is the API surface version (currently `"v2"`).
38645
- * `capabilities` is a coarse list of subsystems the server exposes —
38646
- * unconditionally-compiled features plus dynamically-detected ones
38647
- * (e.g. `"search"` only when a search driver is active). Together these
38648
- * three fields are the version-skew / feature-detection signal the
38649
- * `@crowi/cli` end-user CLI reads from this public, unauthenticated
38650
- * endpoint. The CLI parses them leniently: an older server that omits
38651
- * them degrades to a static baseline with version-skew warnings
39424
+ * version). `apiVersion` is the API surface version (currently always
39425
+ * `API_SURFACE_VERSION` = `"v2"`, from `./app-capabilities`) kept as
39426
+ * `z.string()` rather than `z.literal(API_SURFACE_VERSION)` on purpose: the
39427
+ * `@crowi/cli` end-user CLI parses this response with
39428
+ * `AppInfoResponseSchema.partial().safeParse(body)` to implement its
39429
+ * WARN-ONLY version-skew note (`packages/cli/src/lib/capability.ts`), and a
39430
+ * `.partial()` object schema still rejects the WHOLE parse (not just the
39431
+ * mismatched field) when a present field fails its own validator. A literal
39432
+ * `apiVersion` would make that safeParse fail outright the moment a future
39433
+ * server advertises a different surface version — exactly the skew case the
39434
+ * CLI needs to detect and warn about, not silently swallow. `capabilities`
39435
+ * does not have this hazard today (no currently-shipped client sends an
39436
+ * out-of-vocabulary tag), so it is the strict `CapabilitySchema` enum: a
39437
+ * coarse list of subsystems the server exposes — unconditionally-compiled
39438
+ * features plus dynamically-detected ones (e.g. `"search"` only when a
39439
+ * search driver is active). Together these three fields are the
39440
+ * version-skew / feature-detection signal the CLI reads from this public,
39441
+ * unauthenticated endpoint. The CLI parses them leniently: an older server
39442
+ * that omits them degrades to a static baseline with version-skew warnings
38652
39443
  * suppressed.
38653
39444
  *
38654
39445
  * `canSelfRegister` tells the unauthenticated login / register pages
@@ -38667,7 +39458,21 @@ declare const AppInfoResponseSchema: z.ZodObject<{
38667
39458
  confidential: z.ZodNullable<z.ZodString>;
38668
39459
  version: z.ZodString;
38669
39460
  apiVersion: z.ZodString;
38670
- capabilities: z.ZodArray<z.ZodString>;
39461
+ capabilities: z.ZodArray<z.ZodEnum<{
39462
+ search: "search";
39463
+ oauth: "oauth";
39464
+ "oauth:auth-code": "oauth:auth-code";
39465
+ "oauth:device": "oauth:device";
39466
+ "oauth:pkce": "oauth:pkce";
39467
+ pat: "pat";
39468
+ pages: "pages";
39469
+ comments: "comments";
39470
+ bookmarks: "bookmarks";
39471
+ attachments: "attachments";
39472
+ notifications: "notifications";
39473
+ collab: "collab";
39474
+ "collab:redis": "collab:redis";
39475
+ }>>;
38671
39476
  canSelfRegister: z.ZodBoolean;
38672
39477
  }, z.core.$strip>;
38673
39478
  type AppInfoResponse = z.infer<typeof AppInfoResponseSchema>;
@@ -38681,8 +39486,10 @@ type AppInfoResponse = z.infer<typeof AppInfoResponseSchema>;
38681
39486
  * (`packages/api/src/hono/handlers/app.ts`) and the CLI
38682
39487
  * (`packages/cli/src/lib/capability.ts`) so the "always-on" set and the
38683
39488
  * floor version can never drift apart silently. Dynamically-detected
38684
- * capabilities (e.g. `search`, `collab`) are NOT listed here the handler
38685
- * appends those at runtime based on live server state.
39489
+ * capabilities (e.g. `search`, `collab`) are listed separately below, in
39490
+ * `DYNAMIC_CAPABILITIES` — the handler appends those at runtime based on
39491
+ * live server state, but references the named constants rather than
39492
+ * re-typing the tags as string literals.
38686
39493
  *
38687
39494
  * NOTE: this is the source of truth for the coarse *capability vocabulary*,
38688
39495
  * not for OAuth grant support itself — the canonical OAuth registry is
@@ -38699,6 +39506,39 @@ type AppInfoResponse = z.infer<typeof AppInfoResponseSchema>;
38699
39506
  * handlers are always mounted, so these are always-on.
38700
39507
  */
38701
39508
  declare const STATIC_CAPABILITIES: readonly ["oauth", "oauth:auth-code", "oauth:device", "oauth:pkce", "pat", "pages", "comments", "bookmarks", "attachments", "notifications"];
39509
+ /**
39510
+ * Capabilities the handler (`packages/api/src/hono/handlers/app.ts`) detects
39511
+ * at runtime from live server state — `search` only when a search driver is
39512
+ * active, `collab` unconditionally (Hocuspocus is library-attached), and
39513
+ * `collab:redis` additionally when `REDIS_URL` is set. Listed here (rather
39514
+ * than left as bare string literals in the handler) so both the wire schema
39515
+ * and the handler's return type are compiler-checked against the same
39516
+ * vocabulary.
39517
+ */
39518
+ declare const DYNAMIC_CAPABILITIES: readonly ["search", "collab", "collab:redis"];
39519
+ /**
39520
+ * The full known capability vocabulary: everything `GET /app/info.capabilities`
39521
+ * can ever contain. Used to build the wire-level enum (`CapabilitySchema`).
39522
+ */
39523
+ declare const ALL_CAPABILITIES: readonly ["oauth", "oauth:auth-code", "oauth:device", "oauth:pkce", "pat", "pages", "comments", "bookmarks", "attachments", "notifications", "search", "collab", "collab:redis"];
39524
+ /** Wire-level enum for a single capability tag. */
39525
+ declare const CapabilitySchema: z.ZodEnum<{
39526
+ search: "search";
39527
+ oauth: "oauth";
39528
+ "oauth:auth-code": "oauth:auth-code";
39529
+ "oauth:device": "oauth:device";
39530
+ "oauth:pkce": "oauth:pkce";
39531
+ pat: "pat";
39532
+ pages: "pages";
39533
+ comments: "comments";
39534
+ bookmarks: "bookmarks";
39535
+ attachments: "attachments";
39536
+ notifications: "notifications";
39537
+ collab: "collab";
39538
+ "collab:redis": "collab:redis";
39539
+ }>;
39540
+ /** A single known capability tag (static or dynamic). */
39541
+ type Capability = (typeof ALL_CAPABILITIES)[number];
38702
39542
  /**
38703
39543
  * The API surface version advertised in `app/info.apiVersion` and the
38704
39544
  * version the CLI is built against (the "v2 floor"). A mismatch drives a
@@ -39537,9 +40377,9 @@ declare const RecentlyViewedPagesResponseSchema: z.ZodObject<{
39537
40377
  }, z.core.$strip>]>>>;
39538
40378
  message: z.ZodOptional<z.ZodString>;
39539
40379
  editVia: z.ZodOptional<z.ZodEnum<{
39540
- web: "web";
39541
40380
  oauth: "oauth";
39542
40381
  pat: "pat";
40382
+ web: "web";
39543
40383
  }>>;
39544
40384
  }, z.core.$strip>]>>;
39545
40385
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -39792,9 +40632,9 @@ declare const RevisionSchema: z.ZodObject<{
39792
40632
  }, z.core.$strip>]>>>;
39793
40633
  message: z.ZodOptional<z.ZodString>;
39794
40634
  editVia: z.ZodOptional<z.ZodEnum<{
39795
- web: "web";
39796
40635
  oauth: "oauth";
39797
40636
  pat: "pat";
40637
+ web: "web";
39798
40638
  }>>;
39799
40639
  }, z.core.$strip>;
39800
40640
  type Revision = z.infer<typeof RevisionSchema>;
@@ -39860,22 +40700,138 @@ declare const PageSchema: z.ZodObject<{
39860
40700
  }, z.core.$strip>]>>>;
39861
40701
  message: z.ZodOptional<z.ZodString>;
39862
40702
  editVia: z.ZodOptional<z.ZodEnum<{
39863
- web: "web";
39864
40703
  oauth: "oauth";
39865
40704
  pat: "pat";
40705
+ web: "web";
40706
+ }>>;
40707
+ }, z.core.$strip>]>>;
40708
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40709
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
40710
+ deprecated: "deprecated";
40711
+ wip: "wip";
40712
+ published: "published";
40713
+ deleted: "deleted";
40714
+ draft: "draft";
40715
+ }>>>;
40716
+ grant: z.ZodOptional<z.ZodNumber>;
40717
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
40718
+ creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40719
+ _id: z.ZodString;
40720
+ id: z.ZodOptional<z.ZodString>;
40721
+ username: z.ZodString;
40722
+ name: z.ZodString;
40723
+ email: z.ZodString;
40724
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40725
+ createdAt: z.ZodString;
40726
+ }, z.core.$strip>]>>>;
40727
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40728
+ _id: z.ZodString;
40729
+ id: z.ZodOptional<z.ZodString>;
40730
+ username: z.ZodString;
40731
+ name: z.ZodString;
40732
+ email: z.ZodString;
40733
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40734
+ createdAt: z.ZodString;
40735
+ }, z.core.$strip>]>>>;
40736
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
40737
+ commentCount: z.ZodDefault<z.ZodNumber>;
40738
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
40739
+ createdAt: z.ZodString;
40740
+ updatedAt: z.ZodOptional<z.ZodString>;
40741
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40742
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40743
+ latestRevision: z.ZodOptional<z.ZodString>;
40744
+ likerCount: z.ZodOptional<z.ZodNumber>;
40745
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
40746
+ }, z.core.$strip>;
40747
+ type Page = z.infer<typeof PageSchema>;
40748
+ declare const PageWithRevisionSchema: z.ZodObject<{
40749
+ _id: z.ZodString;
40750
+ path: z.ZodString;
40751
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40752
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
40753
+ deprecated: "deprecated";
40754
+ wip: "wip";
40755
+ published: "published";
40756
+ deleted: "deleted";
40757
+ draft: "draft";
40758
+ }>>>;
40759
+ grant: z.ZodOptional<z.ZodNumber>;
40760
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
40761
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
40762
+ commentCount: z.ZodDefault<z.ZodNumber>;
40763
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
40764
+ createdAt: z.ZodString;
40765
+ updatedAt: z.ZodOptional<z.ZodString>;
40766
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40767
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40768
+ latestRevision: z.ZodOptional<z.ZodString>;
40769
+ likerCount: z.ZodOptional<z.ZodNumber>;
40770
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
40771
+ revision: z.ZodObject<{
40772
+ _id: z.ZodString;
40773
+ path: z.ZodString;
40774
+ body: z.ZodString;
40775
+ format: z.ZodDefault<z.ZodString>;
40776
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40777
+ _id: z.ZodString;
40778
+ id: z.ZodOptional<z.ZodString>;
40779
+ username: z.ZodString;
40780
+ name: z.ZodString;
40781
+ email: z.ZodString;
40782
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40783
+ createdAt: z.ZodString;
40784
+ }, z.core.$strip>>>;
40785
+ createdAt: z.ZodString;
40786
+ meta: z.ZodOptional<z.ZodObject<{
40787
+ toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
40788
+ level: z.ZodNumber;
40789
+ text: z.ZodString;
40790
+ anchorId: z.ZodString;
40791
+ }, z.core.$strip>>>;
40792
+ wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
40793
+ raw: z.ZodString;
40794
+ target: z.ZodString;
40795
+ displayText: z.ZodOptional<z.ZodString>;
40796
+ }, z.core.$strip>>>;
40797
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
40798
+ username: z.ZodString;
40799
+ }, z.core.$strip>>>;
40800
+ codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
40801
+ }, z.core.$strip>>;
40802
+ renderedAst: z.ZodOptional<z.ZodUnknown>;
40803
+ rendererVersion: z.ZodOptional<z.ZodString>;
40804
+ parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40805
+ type: z.ZodOptional<z.ZodEnum<{
40806
+ snapshot: "snapshot";
40807
+ incremental: "incremental";
40808
+ }>>;
40809
+ savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40810
+ _id: z.ZodString;
40811
+ id: z.ZodOptional<z.ZodString>;
40812
+ username: z.ZodString;
40813
+ name: z.ZodString;
40814
+ email: z.ZodString;
40815
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40816
+ createdAt: z.ZodString;
40817
+ }, z.core.$strip>]>>>;
40818
+ contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40819
+ _id: z.ZodString;
40820
+ id: z.ZodOptional<z.ZodString>;
40821
+ username: z.ZodString;
40822
+ name: z.ZodString;
40823
+ email: z.ZodString;
40824
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40825
+ createdAt: z.ZodString;
40826
+ }, z.core.$strip>]>>>;
40827
+ message: z.ZodOptional<z.ZodString>;
40828
+ editVia: z.ZodOptional<z.ZodEnum<{
40829
+ oauth: "oauth";
40830
+ pat: "pat";
40831
+ web: "web";
39866
40832
  }>>;
39867
- }, z.core.$strip>]>>;
39868
- redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39869
- status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
39870
- deprecated: "deprecated";
39871
- wip: "wip";
39872
- published: "published";
39873
- deleted: "deleted";
39874
- draft: "draft";
39875
- }>>>;
39876
- grant: z.ZodOptional<z.ZodNumber>;
39877
- grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
39878
- creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40833
+ }, z.core.$strip>;
40834
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39879
40835
  _id: z.ZodString;
39880
40836
  id: z.ZodOptional<z.ZodString>;
39881
40837
  username: z.ZodString;
@@ -39883,8 +40839,8 @@ declare const PageSchema: z.ZodObject<{
39883
40839
  email: z.ZodString;
39884
40840
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39885
40841
  createdAt: z.ZodString;
39886
- }, z.core.$strip>]>>>;
39887
- lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40842
+ }, z.core.$strip>>>;
40843
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39888
40844
  _id: z.ZodString;
39889
40845
  id: z.ZodOptional<z.ZodString>;
39890
40846
  username: z.ZodString;
@@ -39892,81 +40848,103 @@ declare const PageSchema: z.ZodObject<{
39892
40848
  email: z.ZodString;
39893
40849
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39894
40850
  createdAt: z.ZodString;
39895
- }, z.core.$strip>]>>>;
39896
- liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
39897
- commentCount: z.ZodDefault<z.ZodNumber>;
39898
- extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
39899
- createdAt: z.ZodString;
39900
- updatedAt: z.ZodOptional<z.ZodString>;
39901
- currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39902
- yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39903
- latestRevision: z.ZodOptional<z.ZodString>;
39904
- likerCount: z.ZodOptional<z.ZodNumber>;
39905
- seenUsersCount: z.ZodOptional<z.ZodNumber>;
40851
+ }, z.core.$strip>>>;
39906
40852
  }, z.core.$strip>;
39907
- type Page = z.infer<typeof PageSchema>;
39908
- declare const PageWithRevisionSchema: z.ZodObject<{
39909
- _id: z.ZodString;
39910
- path: z.ZodString;
39911
- redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39912
- status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
39913
- deprecated: "deprecated";
39914
- wip: "wip";
39915
- published: "published";
39916
- deleted: "deleted";
39917
- draft: "draft";
39918
- }>>>;
39919
- grant: z.ZodOptional<z.ZodNumber>;
39920
- grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
39921
- liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
39922
- commentCount: z.ZodDefault<z.ZodNumber>;
39923
- extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
39924
- createdAt: z.ZodString;
39925
- updatedAt: z.ZodOptional<z.ZodString>;
39926
- currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39927
- yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39928
- latestRevision: z.ZodOptional<z.ZodString>;
39929
- likerCount: z.ZodOptional<z.ZodNumber>;
39930
- seenUsersCount: z.ZodOptional<z.ZodNumber>;
39931
- revision: z.ZodObject<{
40853
+ type PageWithRevision = z.infer<typeof PageWithRevisionSchema>;
40854
+ declare const GetPageRequestSchema: z.ZodObject<{
40855
+ path: z.ZodOptional<z.ZodString>;
40856
+ page_id: z.ZodOptional<z.ZodString>;
40857
+ revision_id: z.ZodOptional<z.ZodString>;
40858
+ }, z.core.$strip>;
40859
+ type GetPageRequest = z.infer<typeof GetPageRequestSchema>;
40860
+ declare const GetPageResponseSchema: z.ZodObject<{
40861
+ page: z.ZodObject<{
39932
40862
  _id: z.ZodString;
39933
40863
  path: z.ZodString;
39934
- body: z.ZodString;
39935
- format: z.ZodDefault<z.ZodString>;
39936
- author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39937
- _id: z.ZodString;
39938
- id: z.ZodOptional<z.ZodString>;
39939
- username: z.ZodString;
39940
- name: z.ZodString;
39941
- email: z.ZodString;
39942
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39943
- createdAt: z.ZodString;
39944
- }, z.core.$strip>>>;
40864
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40865
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
40866
+ deprecated: "deprecated";
40867
+ wip: "wip";
40868
+ published: "published";
40869
+ deleted: "deleted";
40870
+ draft: "draft";
40871
+ }>>>;
40872
+ grant: z.ZodOptional<z.ZodNumber>;
40873
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
40874
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
40875
+ commentCount: z.ZodDefault<z.ZodNumber>;
40876
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
39945
40877
  createdAt: z.ZodString;
39946
- meta: z.ZodOptional<z.ZodObject<{
39947
- toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
39948
- level: z.ZodNumber;
39949
- text: z.ZodString;
39950
- anchorId: z.ZodString;
39951
- }, z.core.$strip>>>;
39952
- wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
39953
- raw: z.ZodString;
39954
- target: z.ZodString;
39955
- displayText: z.ZodOptional<z.ZodString>;
39956
- }, z.core.$strip>>>;
39957
- mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
40878
+ updatedAt: z.ZodOptional<z.ZodString>;
40879
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40880
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40881
+ latestRevision: z.ZodOptional<z.ZodString>;
40882
+ likerCount: z.ZodOptional<z.ZodNumber>;
40883
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
40884
+ revision: z.ZodObject<{
40885
+ _id: z.ZodString;
40886
+ path: z.ZodString;
40887
+ body: z.ZodString;
40888
+ format: z.ZodDefault<z.ZodString>;
40889
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40890
+ _id: z.ZodString;
40891
+ id: z.ZodOptional<z.ZodString>;
39958
40892
  username: z.ZodString;
40893
+ name: z.ZodString;
40894
+ email: z.ZodString;
40895
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40896
+ createdAt: z.ZodString;
39959
40897
  }, z.core.$strip>>>;
39960
- codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
39961
- }, z.core.$strip>>;
39962
- renderedAst: z.ZodOptional<z.ZodUnknown>;
39963
- rendererVersion: z.ZodOptional<z.ZodString>;
39964
- parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39965
- type: z.ZodOptional<z.ZodEnum<{
39966
- snapshot: "snapshot";
39967
- incremental: "incremental";
39968
- }>>;
39969
- savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40898
+ createdAt: z.ZodString;
40899
+ meta: z.ZodOptional<z.ZodObject<{
40900
+ toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
40901
+ level: z.ZodNumber;
40902
+ text: z.ZodString;
40903
+ anchorId: z.ZodString;
40904
+ }, z.core.$strip>>>;
40905
+ wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
40906
+ raw: z.ZodString;
40907
+ target: z.ZodString;
40908
+ displayText: z.ZodOptional<z.ZodString>;
40909
+ }, z.core.$strip>>>;
40910
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
40911
+ username: z.ZodString;
40912
+ }, z.core.$strip>>>;
40913
+ codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
40914
+ }, z.core.$strip>>;
40915
+ renderedAst: z.ZodOptional<z.ZodUnknown>;
40916
+ rendererVersion: z.ZodOptional<z.ZodString>;
40917
+ parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40918
+ type: z.ZodOptional<z.ZodEnum<{
40919
+ snapshot: "snapshot";
40920
+ incremental: "incremental";
40921
+ }>>;
40922
+ savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40923
+ _id: z.ZodString;
40924
+ id: z.ZodOptional<z.ZodString>;
40925
+ username: z.ZodString;
40926
+ name: z.ZodString;
40927
+ email: z.ZodString;
40928
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40929
+ createdAt: z.ZodString;
40930
+ }, z.core.$strip>]>>>;
40931
+ contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40932
+ _id: z.ZodString;
40933
+ id: z.ZodOptional<z.ZodString>;
40934
+ username: z.ZodString;
40935
+ name: z.ZodString;
40936
+ email: z.ZodString;
40937
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40938
+ createdAt: z.ZodString;
40939
+ }, z.core.$strip>]>>>;
40940
+ message: z.ZodOptional<z.ZodString>;
40941
+ editVia: z.ZodOptional<z.ZodEnum<{
40942
+ oauth: "oauth";
40943
+ pat: "pat";
40944
+ web: "web";
40945
+ }>>;
40946
+ }, z.core.$strip>;
40947
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39970
40948
  _id: z.ZodString;
39971
40949
  id: z.ZodOptional<z.ZodString>;
39972
40950
  username: z.ZodString;
@@ -39974,8 +40952,8 @@ declare const PageWithRevisionSchema: z.ZodObject<{
39974
40952
  email: z.ZodString;
39975
40953
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39976
40954
  createdAt: z.ZodString;
39977
- }, z.core.$strip>]>>>;
39978
- contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40955
+ }, z.core.$strip>>>;
40956
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39979
40957
  _id: z.ZodString;
39980
40958
  id: z.ZodOptional<z.ZodString>;
39981
40959
  username: z.ZodString;
@@ -39983,41 +40961,11 @@ declare const PageWithRevisionSchema: z.ZodObject<{
39983
40961
  email: z.ZodString;
39984
40962
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39985
40963
  createdAt: z.ZodString;
39986
- }, z.core.$strip>]>>>;
39987
- message: z.ZodOptional<z.ZodString>;
39988
- editVia: z.ZodOptional<z.ZodEnum<{
39989
- web: "web";
39990
- oauth: "oauth";
39991
- pat: "pat";
39992
- }>>;
40964
+ }, z.core.$strip>>>;
39993
40965
  }, z.core.$strip>;
39994
- creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39995
- _id: z.ZodString;
39996
- id: z.ZodOptional<z.ZodString>;
39997
- username: z.ZodString;
39998
- name: z.ZodString;
39999
- email: z.ZodString;
40000
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40001
- createdAt: z.ZodString;
40002
- }, z.core.$strip>>>;
40003
- lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40004
- _id: z.ZodString;
40005
- id: z.ZodOptional<z.ZodString>;
40006
- username: z.ZodString;
40007
- name: z.ZodString;
40008
- email: z.ZodString;
40009
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40010
- createdAt: z.ZodString;
40011
- }, z.core.$strip>>>;
40012
40966
  }, z.core.$strip>;
40013
- type PageWithRevision = z.infer<typeof PageWithRevisionSchema>;
40014
- declare const GetPageRequestSchema: z.ZodObject<{
40015
- path: z.ZodOptional<z.ZodString>;
40016
- page_id: z.ZodOptional<z.ZodString>;
40017
- revision_id: z.ZodOptional<z.ZodString>;
40018
- }, z.core.$strip>;
40019
- type GetPageRequest = z.infer<typeof GetPageRequestSchema>;
40020
- declare const GetPageResponseSchema: z.ZodObject<{
40967
+ type GetPageResponse = z.infer<typeof GetPageResponseSchema>;
40968
+ declare const ClaimPageLinkAccessResponseSchema: z.ZodObject<{
40021
40969
  page: z.ZodObject<{
40022
40970
  _id: z.ZodString;
40023
40971
  path: z.ZodString;
@@ -40099,9 +41047,9 @@ declare const GetPageResponseSchema: z.ZodObject<{
40099
41047
  }, z.core.$strip>]>>>;
40100
41048
  message: z.ZodOptional<z.ZodString>;
40101
41049
  editVia: z.ZodOptional<z.ZodEnum<{
40102
- web: "web";
40103
41050
  oauth: "oauth";
40104
41051
  pat: "pat";
41052
+ web: "web";
40105
41053
  }>>;
40106
41054
  }, z.core.$strip>;
40107
41055
  creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -40123,8 +41071,9 @@ declare const GetPageResponseSchema: z.ZodObject<{
40123
41071
  createdAt: z.ZodString;
40124
41072
  }, z.core.$strip>>>;
40125
41073
  }, z.core.$strip>;
41074
+ granted: z.ZodBoolean;
40126
41075
  }, z.core.$strip>;
40127
- type GetPageResponse = z.infer<typeof GetPageResponseSchema>;
41076
+ type ClaimPageLinkAccessResponse = z.infer<typeof ClaimPageLinkAccessResponseSchema>;
40128
41077
  declare const ListPagesRequestSchema: z.ZodObject<{
40129
41078
  path: z.ZodOptional<z.ZodString>;
40130
41079
  user: z.ZodOptional<z.ZodString>;
@@ -40212,9 +41161,9 @@ declare const ListPagesResponseSchema: z.ZodObject<{
40212
41161
  }, z.core.$strip>]>>>;
40213
41162
  message: z.ZodOptional<z.ZodString>;
40214
41163
  editVia: z.ZodOptional<z.ZodEnum<{
40215
- web: "web";
40216
41164
  oauth: "oauth";
40217
41165
  pat: "pat";
41166
+ web: "web";
40218
41167
  }>>;
40219
41168
  }, z.core.$strip>]>>;
40220
41169
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -40322,9 +41271,9 @@ declare const ListPagesResponseSchema: z.ZodObject<{
40322
41271
  }, z.core.$strip>]>>>;
40323
41272
  message: z.ZodOptional<z.ZodString>;
40324
41273
  editVia: z.ZodOptional<z.ZodEnum<{
40325
- web: "web";
40326
41274
  oauth: "oauth";
40327
41275
  pat: "pat";
41276
+ web: "web";
40328
41277
  }>>;
40329
41278
  }, z.core.$strip>]>>;
40330
41279
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -40427,9 +41376,9 @@ declare const ListPagesResponseSchema: z.ZodObject<{
40427
41376
  }, z.core.$strip>]>>>;
40428
41377
  message: z.ZodOptional<z.ZodString>;
40429
41378
  editVia: z.ZodOptional<z.ZodEnum<{
40430
- web: "web";
40431
41379
  oauth: "oauth";
40432
41380
  pat: "pat";
41381
+ web: "web";
40433
41382
  }>>;
40434
41383
  }, z.core.$strip>]>>;
40435
41384
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -40588,9 +41537,9 @@ declare const RenamePageResponseSchema: z.ZodObject<{
40588
41537
  }, z.core.$strip>]>>>;
40589
41538
  message: z.ZodOptional<z.ZodString>;
40590
41539
  editVia: z.ZodOptional<z.ZodEnum<{
40591
- web: "web";
40592
41540
  oauth: "oauth";
40593
41541
  pat: "pat";
41542
+ web: "web";
40594
41543
  }>>;
40595
41544
  }, z.core.$strip>]>>;
40596
41545
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -40841,9 +41790,9 @@ declare const BookmarkSchema: z.ZodObject<{
40841
41790
  }, z.core.$strip>]>>>;
40842
41791
  message: z.ZodOptional<z.ZodString>;
40843
41792
  editVia: z.ZodOptional<z.ZodEnum<{
40844
- web: "web";
40845
41793
  oauth: "oauth";
40846
41794
  pat: "pat";
41795
+ web: "web";
40847
41796
  }>>;
40848
41797
  }, z.core.$strip>]>>;
40849
41798
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -40974,9 +41923,9 @@ declare const BookmarkResponseSchema: z.ZodObject<{
40974
41923
  }, z.core.$strip>]>>>;
40975
41924
  message: z.ZodOptional<z.ZodString>;
40976
41925
  editVia: z.ZodOptional<z.ZodEnum<{
40977
- web: "web";
40978
41926
  oauth: "oauth";
40979
41927
  pat: "pat";
41928
+ web: "web";
40980
41929
  }>>;
40981
41930
  }, z.core.$strip>]>>;
40982
41931
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41104,9 +42053,9 @@ declare const ListMyBookmarksResponseSchema: z.ZodObject<{
41104
42053
  }, z.core.$strip>]>>>;
41105
42054
  message: z.ZodOptional<z.ZodString>;
41106
42055
  editVia: z.ZodOptional<z.ZodEnum<{
41107
- web: "web";
41108
42056
  oauth: "oauth";
41109
42057
  pat: "pat";
42058
+ web: "web";
41110
42059
  }>>;
41111
42060
  }, z.core.$strip>]>>;
41112
42061
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41323,9 +42272,9 @@ declare const UserPageResponseSchema: z.ZodObject<{
41323
42272
  }, z.core.$strip>]>>>;
41324
42273
  message: z.ZodOptional<z.ZodString>;
41325
42274
  editVia: z.ZodOptional<z.ZodEnum<{
41326
- web: "web";
41327
42275
  oauth: "oauth";
41328
42276
  pat: "pat";
42277
+ web: "web";
41329
42278
  }>>;
41330
42279
  }, z.core.$strip>]>>;
41331
42280
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41430,9 +42379,9 @@ declare const UserPageResponseSchema: z.ZodObject<{
41430
42379
  }, z.core.$strip>]>>>;
41431
42380
  message: z.ZodOptional<z.ZodString>;
41432
42381
  editVia: z.ZodOptional<z.ZodEnum<{
41433
- web: "web";
41434
42382
  oauth: "oauth";
41435
42383
  pat: "pat";
42384
+ web: "web";
41436
42385
  }>>;
41437
42386
  }, z.core.$strip>]>>;
41438
42387
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41560,9 +42509,9 @@ declare const UserBookmarksResponseSchema: z.ZodObject<{
41560
42509
  }, z.core.$strip>]>>>;
41561
42510
  message: z.ZodOptional<z.ZodString>;
41562
42511
  editVia: z.ZodOptional<z.ZodEnum<{
41563
- web: "web";
41564
42512
  oauth: "oauth";
41565
42513
  pat: "pat";
42514
+ web: "web";
41566
42515
  }>>;
41567
42516
  }, z.core.$strip>]>>;
41568
42517
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41694,9 +42643,9 @@ declare const UserPagesResponseSchema: z.ZodObject<{
41694
42643
  }, z.core.$strip>]>>>;
41695
42644
  message: z.ZodOptional<z.ZodString>;
41696
42645
  editVia: z.ZodOptional<z.ZodEnum<{
41697
- web: "web";
41698
42646
  oauth: "oauth";
41699
42647
  pat: "pat";
42648
+ web: "web";
41700
42649
  }>>;
41701
42650
  }, z.core.$strip>]>>;
41702
42651
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41898,9 +42847,9 @@ declare const RevisionMetaSchema: z.ZodObject<{
41898
42847
  createdAt: z.ZodString;
41899
42848
  }, z.core.$strip>>>;
41900
42849
  editVia: z.ZodOptional<z.ZodEnum<{
41901
- web: "web";
41902
42850
  oauth: "oauth";
41903
42851
  pat: "pat";
42852
+ web: "web";
41904
42853
  }>>;
41905
42854
  createdAt: z.ZodString;
41906
42855
  }, z.core.$strip>;
@@ -41942,9 +42891,9 @@ declare const ListRevisionsResponseSchema: z.ZodObject<{
41942
42891
  createdAt: z.ZodString;
41943
42892
  }, z.core.$strip>>>;
41944
42893
  editVia: z.ZodOptional<z.ZodEnum<{
41945
- web: "web";
41946
42894
  oauth: "oauth";
41947
42895
  pat: "pat";
42896
+ web: "web";
41948
42897
  }>>;
41949
42898
  createdAt: z.ZodString;
41950
42899
  }, z.core.$strip>>;
@@ -42014,9 +42963,9 @@ declare const GetRevisionResponseSchema: z.ZodObject<{
42014
42963
  }, z.core.$strip>]>>>;
42015
42964
  message: z.ZodOptional<z.ZodString>;
42016
42965
  editVia: z.ZodOptional<z.ZodEnum<{
42017
- web: "web";
42018
42966
  oauth: "oauth";
42019
42967
  pat: "pat";
42968
+ web: "web";
42020
42969
  }>>;
42021
42970
  }, z.core.$strip>;
42022
42971
  }, z.core.$strip>;
@@ -42084,9 +43033,9 @@ declare const GetRevisionsResponseSchema: z.ZodObject<{
42084
43033
  }, z.core.$strip>]>>>;
42085
43034
  message: z.ZodOptional<z.ZodString>;
42086
43035
  editVia: z.ZodOptional<z.ZodEnum<{
42087
- web: "web";
42088
43036
  oauth: "oauth";
42089
43037
  pat: "pat";
43038
+ web: "web";
42090
43039
  }>>;
42091
43040
  }, z.core.$strip>>;
42092
43041
  }, z.core.$strip>;
@@ -42937,7 +43886,79 @@ declare const PresenceViewersMessageSchema: z.ZodObject<{
42937
43886
  }, z.core.$strip>>;
42938
43887
  }, z.core.$strip>;
42939
43888
  type PresenceViewersMessage = z.infer<typeof PresenceViewersMessageSchema>;
42940
- declare const PresenceServerMessageSchema: z.ZodObject<{
43889
+ /**
43890
+ * Server → client message: a new revision was saved for the page being
43891
+ * viewed (feature-live-page-content-sync, RFC-0003 §v2.1 read-side
43892
+ * soft-refresh). Rides the same `/presence/<pageId>` channel as the
43893
+ * viewer-list broadcast so no second WebSocket is opened.
43894
+ *
43895
+ * The payload deliberately carries only *identity* — `pageId`,
43896
+ * `revisionId`, and who saved it — never the body or `renderedAst`.
43897
+ * Shipping the body over the presence channel would leak a private
43898
+ * page's content to every connected viewer socket; instead the client
43899
+ * fetches the new revision from the permission-checked
43900
+ * `GET /pages/revisions/{id}` endpoint (404 when grant is missing), so
43901
+ * body access stays gated by the same authorization as a normal read.
43902
+ *
43903
+ * - `revisionId` — the newly-saved revision's `_id`; the client
43904
+ * fetches its body to swap the content in place.
43905
+ * - `editorUserId` — who saved. The client suppresses its own
43906
+ * saves (`editorUserId === selfUserId`).
43907
+ * - `editorDisplayName`— shown in the "updated by …" banner.
43908
+ */
43909
+ declare const PresencePageUpdatedMessageSchema: z.ZodObject<{
43910
+ type: z.ZodLiteral<"page-updated">;
43911
+ pageId: z.ZodString;
43912
+ revisionId: z.ZodString;
43913
+ editorUserId: z.ZodString;
43914
+ editorDisplayName: z.ZodString;
43915
+ }, z.core.$strip>;
43916
+ type PresencePageUpdatedMessage = z.infer<typeof PresencePageUpdatedMessageSchema>;
43917
+ /**
43918
+ * Server → client message: a comment was added to / removed from the
43919
+ * page being viewed (feature-live-page-comment-sync). Rides the same
43920
+ * `/presence/<pageId>` channel as the viewer-list + page-updated
43921
+ * broadcasts so no second WebSocket is opened — the sibling of
43922
+ * `page-updated`, but the target is the comment list rather than the
43923
+ * body revision.
43924
+ *
43925
+ * Like `page-updated`, the payload carries only *identity* — never the
43926
+ * comment body. Shipping a comment's text over the presence channel
43927
+ * would leak a private page's discussion to every connected viewer
43928
+ * socket; instead the client re-fetches from the permission-checked
43929
+ * `GET /comments?page_id=`, so comment access stays gated by the same
43930
+ * authorization as a normal read.
43931
+ *
43932
+ * - `changeType` — `'added'` (a new comment) or `'removed'` (deleted).
43933
+ * - `commentId` — the affected comment's `_id`. Advisory only: the
43934
+ * client re-fetches the whole list and derives the
43935
+ * new-comment highlight from a client-side seen-set
43936
+ * diff, so a dropped / duplicated frame is harmless.
43937
+ * - `actorUserId` — who added the comment, present only for `'added'`.
43938
+ * The client suppresses its own posts
43939
+ * (`actorUserId === selfUserId`). Absent for
43940
+ * `'removed'` (the deleter is not known at the model
43941
+ * event layer; a redundant re-fetch is idempotent).
43942
+ */
43943
+ declare const PresenceCommentChangedMessageSchema: z.ZodObject<{
43944
+ type: z.ZodLiteral<"comment-changed">;
43945
+ pageId: z.ZodString;
43946
+ changeType: z.ZodEnum<{
43947
+ added: "added";
43948
+ removed: "removed";
43949
+ }>;
43950
+ commentId: z.ZodString;
43951
+ actorUserId: z.ZodOptional<z.ZodString>;
43952
+ }, z.core.$strip>;
43953
+ type PresenceCommentChangedMessage = z.infer<typeof PresenceCommentChangedMessageSchema>;
43954
+ /**
43955
+ * Discriminated union of every server → client presence frame. The
43956
+ * client parses inbound frames with this and switches on `type`:
43957
+ * `'viewers'` drives the live-presence row, `'page-updated'` drives the
43958
+ * read-side soft-refresh banner, `'comment-changed'` drives the live
43959
+ * comment append / removal.
43960
+ */
43961
+ declare const PresenceServerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
42941
43962
  type: z.ZodLiteral<"viewers">;
42942
43963
  viewers: z.ZodArray<z.ZodObject<{
42943
43964
  userId: z.ZodString;
@@ -42947,7 +43968,22 @@ declare const PresenceServerMessageSchema: z.ZodObject<{
42947
43968
  isEditing: z.ZodBoolean;
42948
43969
  joinedAt: z.ZodNumber;
42949
43970
  }, z.core.$strip>>;
42950
- }, z.core.$strip>;
43971
+ }, z.core.$strip>, z.ZodObject<{
43972
+ type: z.ZodLiteral<"page-updated">;
43973
+ pageId: z.ZodString;
43974
+ revisionId: z.ZodString;
43975
+ editorUserId: z.ZodString;
43976
+ editorDisplayName: z.ZodString;
43977
+ }, z.core.$strip>, z.ZodObject<{
43978
+ type: z.ZodLiteral<"comment-changed">;
43979
+ pageId: z.ZodString;
43980
+ changeType: z.ZodEnum<{
43981
+ added: "added";
43982
+ removed: "removed";
43983
+ }>;
43984
+ commentId: z.ZodString;
43985
+ actorUserId: z.ZodOptional<z.ZodString>;
43986
+ }, z.core.$strip>], "type">;
42951
43987
  type PresenceServerMessage = z.infer<typeof PresenceServerMessageSchema>;
42952
43988
  /**
42953
43989
  * RFC-0005 Phase 3 — `GET /api/v2/pages/:id/likers`.
@@ -43572,9 +44608,9 @@ declare const SearchHitSchema: z.ZodObject<{
43572
44608
  }, z.core.$strip>]>>>;
43573
44609
  message: z.ZodOptional<z.ZodString>;
43574
44610
  editVia: z.ZodOptional<z.ZodEnum<{
43575
- web: "web";
43576
44611
  oauth: "oauth";
43577
44612
  pat: "pat";
44613
+ web: "web";
43578
44614
  }>>;
43579
44615
  }, z.core.$strip>]>>;
43580
44616
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -43698,9 +44734,9 @@ declare const SearchPagesResponseSchema: z.ZodObject<{
43698
44734
  }, z.core.$strip>]>>>;
43699
44735
  message: z.ZodOptional<z.ZodString>;
43700
44736
  editVia: z.ZodOptional<z.ZodEnum<{
43701
- web: "web";
43702
44737
  oauth: "oauth";
43703
44738
  pat: "pat";
44739
+ web: "web";
43704
44740
  }>>;
43705
44741
  }, z.core.$strip>]>>;
43706
44742
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -43746,4 +44782,4 @@ declare const SearchPagesResponseSchema: z.ZodObject<{
43746
44782
  }, z.core.$strip>;
43747
44783
  type SearchPagesResponse = z.infer<typeof SearchPagesResponseSchema>;
43748
44784
 
43749
- export { ALL_SCOPES, API_SURFACE_VERSION, type AccessToken, AccessTokenSchema, type ActivateRequest, ActivateRequestSchema, type ActivateValidationResponse, ActivateValidationResponseSchema, type ActiveSearchDriver, ActiveSearchDriverSchema, type ActiveStorageDriver, ActiveStorageDriverSchema, type AddAttachmentResponse, AddAttachmentResponseSchema, type AddBookmarkRequest, AddBookmarkRequestSchema, type AddCommentRequest, AddCommentRequestSchema, type AddCommentResponse, AddCommentResponseSchema, type AdminPager, AdminPagerSchema, type AdminRequiredError, AdminRequiredErrorSchema, type AdminSettingsContractApp, AdminSidebarSection, type AdminSidebarSectionValue, type AdminUserIdParam, AdminUserIdParamSchema, type AdminUserMutationResponse, AdminUserMutationResponseSchema, type AdminUsersPluginsContractApp, type ApiError, ApiErrorSchema, type AppAuthMeUserChain, type AppInfoResponse, AppInfoResponseSchema, type AppSettingsValidationError, AppSettingsValidationErrorSchema, type AppType, type ApplicationNotInstalledError, ApplicationNotInstalledErrorSchema, type Attachment, type AttachmentError, AttachmentErrorCodeSchema, AttachmentErrorSchema, type AttachmentMeta, AttachmentMetaSchema, AttachmentSchema, type AttachmentUsageResponse, AttachmentUsageResponseSchema, type AuthSettings, AuthSettingsSchema, type AuthenticationRequiredError, AuthenticationRequiredErrorSchema, type AuthorizeRequest, AuthorizeRequestSchema, type AuthorizeResponse, AuthorizeResponseSchema, type AutocompleteRateLimitError, AutocompleteRateLimitErrorSchema, type AutocompleteRequest, AutocompleteRequestSchema, type AutocompleteResponse, AutocompleteResponseSchema, type AutocompleteResult, AutocompleteResultSchema, type Backlink, type BacklinkFromPage, BacklinkFromPageSchema, type BacklinkFromRevision, BacklinkFromRevisionSchema, BacklinkSchema, type Bookmark, type BookmarkBacklinkCommentRevisionChain, type BookmarkResponse, BookmarkResponseSchema, BookmarkSchema, type ClearRenderCacheResponse, ClearRenderCacheResponseSchema, type ClientOptions, type CollabForceReloadMessage, CollabForceReloadMessageSchema, type CollabSaveError, CollabSaveErrorSchema, type CollabSaveMessage, CollabSaveMessageSchema, type CollabSaveOk, CollabSaveOkSchema, type Comment, type CommentInvalidRequestError, CommentInvalidRequestErrorSchema, type CommentNotFoundError, CommentNotFoundErrorSchema, CommentSchema, type ConfirmEmailChangeRequest, ConfirmEmailChangeRequestSchema, type ConfirmEmailChangeResponse, ConfirmEmailChangeResponseSchema, type ConflictError, ConflictErrorSchema, type ContributorRef, ContributorRefSchema, type CreateAccessTokenRequest, CreateAccessTokenRequestSchema, type CreateAccessTokenResponse, CreateAccessTokenResponseSchema, CreateAdminRequestSchema, CreateAdminResponseSchema, type CreateDraftRequest, CreateDraftRequestSchema, type CreateDraftResponse, CreateDraftResponseSchema, type CreatePageRequest, CreatePageRequestSchema, type CrowiApiClient, type CryptoStatusResponse, CryptoStatusResponseSchema, DEVICE_CODE_GRANT_TYPE, DISCOVERY_SCOPES_SUPPORTED, DND_EXTRA_UPLOAD_MIME, type DeleteAdminUserResponse, DeleteAdminUserResponseSchema, type DeleteCommentRequest, DeleteCommentRequestSchema, type DeleteCommentResponse, DeleteCommentResponseSchema, type DeviceAuthorizeRequest, DeviceAuthorizeRequestSchema, type DeviceAuthorizeResponse, DeviceAuthorizeResponseSchema, type DeviceInfoResponse, DeviceInfoResponseSchema, type DeviceVerifyRequest, DeviceVerifyRequestSchema, type DeviceVerifyResponse, DeviceVerifyResponseSchema, type DiscoveryResponse, DiscoveryResponseSchema, type DraftBadRequestError, DraftBadRequestErrorSchema, type DraftConflictOwner, DraftConflictOwnerSchema, type DraftNotFoundError, DraftNotFoundErrorSchema, type DraftPathConflictError, DraftPathConflictErrorSchema, type DraftSummary, DraftSummarySchema, ERROR_CODES, type EditAdminUserRequest, EditAdminUserRequestSchema, type EncryptionNotConfiguredError, EncryptionNotConfiguredErrorSchema, type ErrorCode, ErrorCodeSchema, type ForbiddenError, ForbiddenErrorSchema, type ForgotPasswordRequest, ForgotPasswordRequestSchema, type ForgotPasswordResponse, ForgotPasswordResponseSchema, GRANT_TYPES_SUPPORTED, type GetAppSettingsResponse, GetAppSettingsResponseSchema, type GetAuthSettingsResponse, GetAuthSettingsResponseSchema, type GetBacklinksRequest, GetBacklinksRequestSchema, type GetBacklinksResponse, GetBacklinksResponseSchema, type GetBookmarkRequest, GetBookmarkRequestSchema, type GetLikersRequest, GetLikersRequestSchema, type GetMailSettingsResponse, GetMailSettingsResponseSchema, type GetPageRequest, GetPageRequestSchema, type GetPageResponse, GetPageResponseSchema, type GetRevisionResponse, GetRevisionResponseSchema, type GetRevisionsRequest, GetRevisionsRequestSchema, type GetRevisionsResponse, GetRevisionsResponseSchema, type GetSearchStatusResponse, GetSearchStatusResponseSchema, type GetSecuritySettingsResponse, GetSecuritySettingsResponseSchema, type GetSeenUsersRequest, GetSeenUsersRequestSchema, type GetStorageStatusResponse, GetStorageStatusResponseSchema, type GetWatchStatusRequest, GetWatchStatusRequestSchema, IMAGE_UPLOAD_MIME, ISSUABLE_SCOPES, InstallerStatusResponseSchema, type InsufficientScopeError, InsufficientScopeErrorSchema, type InternalServerError, InternalServerErrorSchema, type InvalidPageIdError, InvalidPageIdErrorSchema, type InvalidScopeError, InvalidScopeErrorSchema, type InviteAcceptRequest, InviteAcceptRequestSchema, type InvitePreviewResponse, InvitePreviewResponseSchema, type InviteUsersRequest, InviteUsersRequestSchema, type InviteUsersResponse, InviteUsersResponseSchema, type InvitedUserResult, InvitedUserResultSchema, KNOWN_HTML_ELEMENTS, type Language, LanguageSchema, type LateContractApp, type Liker, LikerSchema, type LikersResponse, LikersResponseSchema, type ListAccessTokensResponse, ListAccessTokensResponseSchema, type ListAdminUsersRequest, ListAdminUsersRequestSchema, type ListAdminUsersResponse, ListAdminUsersResponseSchema, type ListAttachmentsResponse, ListAttachmentsResponseSchema, type ListCommentsRequest, ListCommentsRequestSchema, type ListCommentsResponse, ListCommentsResponseSchema, type ListDraftsResponse, ListDraftsResponseSchema, type ListMyBookmarksResponse, ListMyBookmarksResponseSchema, type ListNotificationsRequest, ListNotificationsRequestSchema, type ListNotificationsResponse, ListNotificationsResponseSchema, type ListPageChildrenRequest, ListPageChildrenRequestSchema, type ListPageChildrenResponse, ListPageChildrenResponseSchema, type ListPagesRequest, ListPagesRequestSchema, type ListPagesResponse, ListPagesResponseSchema, type ListPagesSort, type ListPluginsResponse, ListPluginsResponseSchema, type ListRevisionsRequest, ListRevisionsRequestSchema, type ListRevisionsResponse, ListRevisionsResponseSchema, type ListUsersRequest, ListUsersRequestSchema, type ListUsersResponse, ListUsersResponseSchema, type MailSettingsValidationError, MailSettingsValidationErrorSchema, type MailTokenPayload, MailTokenPayloadSchema, type MailTokenPurpose, MailTokenPurposeSchema, type MarkAllAsReadResponse, MarkAllAsReadResponseSchema, type MentionResponse, MentionSchema, type NotFoundError, NotFoundErrorSchema, type Notification, type NotificationAction, NotificationActionEnum, NotificationActionSchema, type NotificationNotFoundError, NotificationNotFoundErrorSchema, NotificationSchema, type NotificationStatus, NotificationStatusEnum, type NotificationStatusResponse, NotificationStatusResponseSchema, NotificationStatusSchema, type NotificationTargetModel, NotificationTargetModelEnum, NotificationTargetModelSchema, type NotificationsChangedMessage, NotificationsChangedMessageSchema, type NotificationsServerMessage, NotificationsServerMessageSchema, type NotificationsTokenPayload, NotificationsTokenPayloadSchema, type NotificationsTokenResponse, NotificationsTokenResponseSchema, OAUTH_ERROR_CODES, type OAuthContractApp, type OAuthError, type OAuthErrorCode, OAuthErrorSchema, type OpenNotificationParam, OpenNotificationParamSchema, type OpenNotificationResponse, OpenNotificationResponseSchema, type Page, type PageChain, type PageChildSegment, PageChildSegmentSchema, PageExtendedSchema, PageGrantEnum, PageGrantSchema, type PageNotFoundError, PageNotFoundErrorSchema, type PageNotGrantedError, PageNotGrantedErrorSchema, type PageRef, PageRefSchema, type PageRevisionError, PageRevisionErrorSchema, PageSchema, PageStatusEnum, PageStatusSchema, PageTypeEnum, PageTypeSchema, type PageUser, PageUserSchema, type PageWithRevision, PageWithRevisionSchema, type Pager, PagerSchema, type PaginationRequest, PaginationRequestSchema, type PasswordErrorResponse, PasswordErrorResponseSchema, type PasswordUpdateSuccess, PasswordUpdateSuccessSchema, type PastAttachmentUsage, PastAttachmentUsageSchema, type PendingUsersCountResponse, PendingUsersCountResponseSchema, type PictureUploadResponse, PictureUploadResponseSchema, type PluginAdminPlacement, PluginAdminPlacementSchema, type PluginConfigResponse, PluginConfigResponseSchema, type PluginConfigValidationError, PluginConfigValidationErrorSchema, type PluginField, PluginFieldSchema, type PluginInfo, PluginInfoSchema, type PluginNotFoundError, PluginNotFoundErrorSchema, type PresenceClientMessage, PresenceClientMessageSchema, type PresenceHeartbeatMessage, PresenceHeartbeatMessageSchema, type PresenceServerMessage, PresenceServerMessageSchema, type PresenceTokenPayload, PresenceTokenPayloadSchema, type PresenceTokenResponse, PresenceTokenResponseSchema, type PresenceViewer, PresenceViewerSchema, type PresenceViewersMessage, PresenceViewersMessageSchema, type PreviewPageRequest, PreviewPageRequestSchema, type PreviewPageResponse, PreviewPageResponseSchema, type ProfileErrorResponse, ProfileErrorResponseSchema, type RecentlyViewedPagesResponse, RecentlyViewedPagesResponseSchema, type ReencryptResponse, ReencryptResponseSchema, RefreshTokenRequestSchema, type RegisterPendingResponse, RegisterPendingResponseSchema, type RegistrationMode, RegistrationModeSchema, type RemoveAttachmentResponse, RemoveAttachmentResponseSchema, type RemoveBookmarkRequest, RemoveBookmarkRequestSchema, type RemoveBookmarkResponse, RemoveBookmarkResponseSchema, type RenamePageRequest, RenamePageRequestSchema, type RenamePageResponse, RenamePageResponseSchema, type RenameSubtreeRequest, RenameSubtreeRequestSchema, type RenameSubtreeResponse, RenameSubtreeResponseSchema, type RenameTreeError, RenameTreeErrorSchema, type ResetPasswordRequest, ResetPasswordRequestSchema, type ResetPasswordResponse, ResetPasswordResponseSchema, type RevertToRevisionRequest, RevertToRevisionRequestSchema, type Revision, type RevisionInvalidRequestError, RevisionInvalidRequestErrorSchema, type RevisionMeta, RevisionMetaSchema, RevisionMetaSchemaShape, type RevisionMetaShape, RevisionSchema, type RevisionType, RevisionTypeSchema, type RevokeRequest, RevokeRequestSchema, type RevokeResponse, RevokeResponseSchema, SCOPES, STATIC_CAPABILITIES, STRIP_KNOWN_HTML_TAGS_MAX_LENGTH, type Scope, type SearchAdminUsersByEmailRequest, SearchAdminUsersByEmailRequestSchema, type SearchAdminUsersByEmailResponse, SearchAdminUsersByEmailResponseSchema, type SearchDriverEntry, SearchDriverEntrySchema, type SearchHit, SearchHitSchema, type SearchPageType, SearchPageTypeSchema, type SearchPagesRequest, SearchPagesRequestSchema, type SearchPagesResponse, SearchPagesResponseSchema, type SecuritySettings, SecuritySettingsSchema, type SeenPageRequest, SeenPageRequestSchema, type SeenUsersResponse, SeenUsersResponseSchema, type SendTestMailError, SendTestMailErrorSchema, type SendTestMailRequest, SendTestMailRequestSchema, type SendTestMailResponse, SendTestMailResponseSchema, type SensitiveConfigEntry, SensitiveConfigEntrySchema, type ServiceUnavailableError, ServiceUnavailableErrorSchema, type SetPageGrantRequest, SetPageGrantRequestSchema, type SetWatchStatusRequest, SetWatchStatusRequestSchema, type StorageDriverEntry, StorageDriverEntrySchema, type SuccessResponse, SuccessResponseSchema, type Theme, ThemeSchema, type ThemeUpdateResponse, ThemeUpdateResponseSchema, type ThirdPartyAuthRequiredError, ThirdPartyAuthRequiredErrorSchema, type ThirdPartyAuthUnavailableError, ThirdPartyAuthUnavailableErrorSchema, type TocEntryResponse, TocEntrySchema, TokenAuthLoginRequestSchema, TokenAuthRegisterRequestSchema, TokenAuthResponseSchema, type TokenRequest, TokenRequestSchema, type TokenResponse, TokenResponseSchema, type UpdateAdminUserEmailRequest, UpdateAdminUserEmailRequestSchema, type UpdateAppSettingsRequest, UpdateAppSettingsRequestSchema, type UpdateAppSettingsResponse, UpdateAppSettingsResponseSchema, type UpdateAuthSettingsRequest, UpdateAuthSettingsRequestSchema, type UpdateAuthSettingsResponse, UpdateAuthSettingsResponseSchema, type UpdateMailSettingsRequest, UpdateMailSettingsRequestSchema, type UpdateMailSettingsResponse, UpdateMailSettingsResponseSchema, type UpdatePageRequest, UpdatePageRequestSchema, type UpdatePasswordRequest, UpdatePasswordRequestSchema, type UpdatePluginConfigRequest, UpdatePluginConfigRequestSchema, type UpdatePluginConfigResponse, UpdatePluginConfigResponseSchema, type UpdateProfileRequest, UpdateProfileRequestSchema, type UpdateSecuritySettingsRequest, UpdateSecuritySettingsRequestSchema, type UpdateSecuritySettingsResponse, UpdateSecuritySettingsResponseSchema, type UpdateThemeRequest, UpdateThemeRequestSchema, type UploadAttachmentError, type UploadAttachmentErrorCode, UploadAttachmentErrorCodeSchema, UploadAttachmentErrorSchema, type UploadAttachmentResponse, UploadAttachmentResponseSchema, type UserBookmarksResponse, UserBookmarksResponseSchema, type UserLanguage, UserLanguageSchema, type UserListItem, UserListItemSchema, type UserNotFoundError, UserNotFoundErrorSchema, type UserPageResponse, UserPageResponseSchema, type UserPagesResponse, UserPagesResponseSchema, type UserProfileResponse, UserProfileResponseSchema, type UserPublic, UserPublicSchema, UserPublicStatus, UserStatusEnum, type UserStatusError, UserStatusErrorSchema, UserStatusSchema, type ValidationError, ValidationErrorSchema, type WatchStatusResponse, WatchStatusResponseSchema, type WikiLinkResponse, WikiLinkSchema, type WsTokenPayload, WsTokenPayloadSchema, type WsTokenResponse, WsTokenResponseSchema, acceptInviteRoute, accessTokenRoutes, activateAccountRoute, activateUserRoute, activationRoutes, addAttachmentRoute, addBookmarkRoute, addCommentRoute, adminAppRoutes, adminAuthRoutes, adminCryptoRoutes, adminMailRoutes, adminPluginsRoutes, adminSearchRoutes, adminSecurityRoutes, adminStorageRoutes, adminUsersRoutes, appRoutes, attachmentRoutes, authorizeRoute, autocompletePagesRoute, autocompleteRoutes, autocompleteUsersRoute, backlinkRoutes, bookmarkRoutes, cancelDraftRoute, clearRenderCacheAllRoute, clearRenderCachePluginRoute, commentRoutes, confirmEmailChangeRoute, createAccessTokenRoute, createAdminRoute, createClient, createDraftRoute, createPageRoute, deleteAccessTokenRoute, deleteCommentRoute, deletePageRoute, deletePictureRoute, deleteUserRoute, deviceAuthorizeRoute, deviceInfoRoute, deviceVerifyRoute, discoveryRoute, draftRoutes, editUserRoute, emailChangeRoutes, forgotPasswordRoute, getAppInfoRoute, getAppSettingsRoute, getAttachmentMetaRoute, getAttachmentUsageRoute, getAuthSettingsRoute, getBacklinksRoute, getBookmarkRoute, getCryptoStatusRoute, getInstallerStatusRoute, getLikersRoute, getMailSettingsRoute, getNotificationsTokenRoute, getPageRoute, getPluginConfigRoute, getPresenceTokenRoute, getProfileRoute, getRevisionRoute, getRevisionsRoute, getSearchStatusRoute, getSecuritySettingsRoute, getSeenUsersRoute, getStorageStatusRoute, getUnreadCountRoute, getUserBookmarksRoute, getUserPageRoute, getUserPagesRoute, getWatchStatusRoute, getYjsTokenRoute, installerRoutes, inviteAcceptRoutes, invitePreviewRoute, inviteUsersRoute, isIssuableScope, isScope, likePageRoute, listAccessTokensRoute, listAttachmentsRoute, listCommentsRoute, listDraftsRoute, listMembersRoute, listMyBookmarksRoute, listNotificationsRoute, listPageChildrenRoute, listPagesRoute, listPluginsRoute, listRevisionsRoute, listUsersRoute, makeAdminRoute, markAllAsReadRoute, meRoutes, notificationRoutes, oauthRoutes, openNotificationRoute, pageCollabRoutes, pagePreviewRoutes, pageRoutes, parseScopeClaim, passwordResetRoutes, pendingUsersCountRoute, presenceRoutes, previewPageRoute, recentlyViewedPagesRoute, reencryptAllRoute, removeAttachmentRoute, removeBookmarkRoute, removeFromAdminRoute, renamePageRoute, renameSubtreeRoute, resendInviteRoute, resetPasswordRoute, revertDeletedPageRoute, revertToRevisionRoute, revisionRoutes, revokeRoute, scopeSatisfies, searchPagesRoute, searchRoutes, searchUsersByEmailRoute, seenPageRoute, selfResetPasswordRoute, sendTestMailRoute, setPageGrantRoute, setWatchStatusRoute, stripKnownHtmlTags, suspendUserRoute, tokenAuthRoutes, tokenLoginRoute, tokenLogoutRoute, tokenMeRoute, tokenRefreshRoute, tokenRegisterRoute, tokenRoute, unlikePageRoute, updateAppSettingsRoute, updateAuthSettingsRoute, updateMailSettingsRoute, updatePageRoute, updatePasswordRoute, updatePluginConfigRoute, updateProfileRoute, updateSecuritySettingsRoute, updateThemeRoute, updateUserEmailRoute, uploadAttachmentRoute, uploadPictureRoute, userRoutes, validateActivationTokenRoute, validateEmailChangeTokenRoute, validateResetTokenRoute };
44785
+ 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 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 ValidationError, ValidationErrorSchema, type WatchStatusResponse, WatchStatusResponseSchema, type WikiLinkResponse, WikiLinkSchema, type WsTokenPayload, WsTokenPayloadSchema, type WsTokenResponse, WsTokenResponseSchema, acceptInviteRoute, accessTokenRoutes, activateAccountRoute, activateUserRoute, activationRoutes, addAttachmentRoute, addBookmarkRoute, addCommentRoute, adminAppRoutes, adminAuthRoutes, adminCryptoRoutes, adminMailRoutes, adminPluginsRoutes, adminSearchRoutes, adminSecurityRoutes, adminStorageRoutes, adminUsersRoutes, appRoutes, attachmentRoutes, authorizeRoute, autocompletePagesRoute, autocompleteRoutes, autocompleteUsersRoute, backlinkRoutes, bookmarkRoutes, cancelDraftRoute, claimPageLinkAccessRoute, clearRenderCacheAllRoute, clearRenderCachePluginRoute, commentRoutes, confirmEmailChangeRoute, createAccessTokenRoute, createAdminRoute, createClient, createDraftRoute, createPageRoute, deleteAccessTokenRoute, deleteCommentRoute, deletePageRoute, deletePictureRoute, deleteUserRoute, deviceAuthorizeRoute, deviceInfoRoute, deviceVerifyRoute, discoveryRoute, draftRoutes, editUserRoute, emailChangeRoutes, forgotPasswordRoute, getAppInfoRoute, getAppSettingsRoute, getAttachmentMetaRoute, getAttachmentUsageRoute, getAuthSettingsRoute, getBacklinksRoute, getBookmarkRoute, getCryptoStatusRoute, getInstallerStatusRoute, getLikersRoute, getMailSettingsRoute, getNotificationsTokenRoute, getPageRoute, getPluginConfigRoute, getPresenceTokenRoute, getProfileRoute, getRevisionRoute, getRevisionsRoute, getSearchStatusRoute, getSecuritySettingsRoute, getSeenUsersRoute, getStorageStatusRoute, getUnreadCountRoute, getUserBookmarksRoute, getUserPageRoute, getUserPagesRoute, getWatchStatusRoute, getYjsTokenRoute, installerRoutes, inviteAcceptRoutes, invitePreviewRoute, inviteUsersRoute, isIssuableScope, isScope, likePageRoute, listAccessTokensRoute, listAttachmentsRoute, listCommentsRoute, listDraftsRoute, listMembersRoute, listMyBookmarksRoute, listNotificationsRoute, listPageChildrenRoute, listPagesRoute, listPluginsRoute, listRevisionsRoute, listUsersRoute, makeAdminRoute, markAllAsReadRoute, meRoutes, notificationRoutes, oauthRoutes, openNotificationRoute, pageCollabRoutes, pagePreviewRoutes, pageRoutes, parseScopeClaim, passwordResetRoutes, pendingUsersCountRoute, presenceRoutes, previewPageRoute, recentlyViewedPagesRoute, reencryptAllRoute, removeAttachmentRoute, removeBookmarkRoute, removeFromAdminRoute, renamePageRoute, renameSubtreeRoute, resendInviteRoute, resetPasswordRoute, revertDeletedPageRoute, revertToRevisionRoute, revisionRoutes, revokeRoute, scopeSatisfies, searchPagesRoute, searchRoutes, searchUsersByEmailRoute, seenPageRoute, selfResetPasswordRoute, sendTestMailRoute, setPageGrantRoute, setWatchStatusRoute, stripKnownHtmlTags, suspendUserRoute, tokenAuthRoutes, tokenLoginRoute, tokenLogoutRoute, tokenMeRoute, tokenRefreshRoute, tokenRegisterRoute, tokenRoute, unlikePageRoute, updateAppSettingsRoute, updateAuthSettingsRoute, updateMailSettingsRoute, updatePageRoute, updatePasswordRoute, updatePluginConfigRoute, updateProfileRoute, updateSecuritySettingsRoute, updateThemeRoute, updateUserEmailRoute, uploadAttachmentRoute, uploadPictureRoute, userRoutes, validateActivationTokenRoute, validateEmailChangeTokenRoute, validateResetTokenRoute };