@crowi/api-contract 2.0.0-alpha.6 → 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.mts 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";
@@ -10827,9 +10881,9 @@ declare const listRevisionsRoute: {
10827
10881
  createdAt: z.ZodString;
10828
10882
  }, z.core.$strip>>>;
10829
10883
  editVia: z.ZodOptional<z.ZodEnum<{
10830
- web: "web";
10831
10884
  oauth: "oauth";
10832
10885
  pat: "pat";
10886
+ web: "web";
10833
10887
  }>>;
10834
10888
  createdAt: z.ZodString;
10835
10889
  }, z.core.$strip>>;
@@ -10963,9 +11017,9 @@ declare const getRevisionsRoute: {
10963
11017
  }, z.core.$strip>]>>>;
10964
11018
  message: z.ZodOptional<z.ZodString>;
10965
11019
  editVia: z.ZodOptional<z.ZodEnum<{
10966
- web: "web";
10967
11020
  oauth: "oauth";
10968
11021
  pat: "pat";
11022
+ web: "web";
10969
11023
  }>>;
10970
11024
  }, z.core.$strip>>;
10971
11025
  }, z.core.$strip>;
@@ -11093,9 +11147,9 @@ declare const getRevisionRoute: {
11093
11147
  }, z.core.$strip>]>>>;
11094
11148
  message: z.ZodOptional<z.ZodString>;
11095
11149
  editVia: z.ZodOptional<z.ZodEnum<{
11096
- web: "web";
11097
11150
  oauth: "oauth";
11098
11151
  pat: "pat";
11152
+ web: "web";
11099
11153
  }>>;
11100
11154
  }, z.core.$strip>;
11101
11155
  }, z.core.$strip>;
@@ -11201,9 +11255,9 @@ declare const revisionRoutes: {
11201
11255
  createdAt: z.ZodString;
11202
11256
  }, z.core.$strip>>>;
11203
11257
  editVia: z.ZodOptional<z.ZodEnum<{
11204
- web: "web";
11205
11258
  oauth: "oauth";
11206
11259
  pat: "pat";
11260
+ web: "web";
11207
11261
  }>>;
11208
11262
  createdAt: z.ZodString;
11209
11263
  }, z.core.$strip>>;
@@ -11337,9 +11391,9 @@ declare const revisionRoutes: {
11337
11391
  }, z.core.$strip>]>>>;
11338
11392
  message: z.ZodOptional<z.ZodString>;
11339
11393
  editVia: z.ZodOptional<z.ZodEnum<{
11340
- web: "web";
11341
11394
  oauth: "oauth";
11342
11395
  pat: "pat";
11396
+ web: "web";
11343
11397
  }>>;
11344
11398
  }, z.core.$strip>>;
11345
11399
  }, z.core.$strip>;
@@ -11467,9 +11521,9 @@ declare const revisionRoutes: {
11467
11521
  }, z.core.$strip>]>>>;
11468
11522
  message: z.ZodOptional<z.ZodString>;
11469
11523
  editVia: z.ZodOptional<z.ZodEnum<{
11470
- web: "web";
11471
11524
  oauth: "oauth";
11472
11525
  pat: "pat";
11526
+ web: "web";
11473
11527
  }>>;
11474
11528
  }, z.core.$strip>;
11475
11529
  }, z.core.$strip>;
@@ -12478,9 +12532,9 @@ declare const getPageRoute: {
12478
12532
  }, z.core.$strip>]>>>;
12479
12533
  message: z.ZodOptional<z.ZodString>;
12480
12534
  editVia: z.ZodOptional<z.ZodEnum<{
12481
- web: "web";
12482
12535
  oauth: "oauth";
12483
12536
  pat: "pat";
12537
+ web: "web";
12484
12538
  }>>;
12485
12539
  }, z.core.$strip>;
12486
12540
  creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -12546,6 +12600,19 @@ declare const getPageRoute: {
12546
12600
  };
12547
12601
  };
12548
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
+ };
12549
12616
  };
12550
12617
  } & {
12551
12618
  getRoutingPath(): "/pages";
@@ -12644,9 +12711,9 @@ declare const listPagesRoute: {
12644
12711
  }, z.core.$strip>]>>>;
12645
12712
  message: z.ZodOptional<z.ZodString>;
12646
12713
  editVia: z.ZodOptional<z.ZodEnum<{
12647
- web: "web";
12648
12714
  oauth: "oauth";
12649
12715
  pat: "pat";
12716
+ web: "web";
12650
12717
  }>>;
12651
12718
  }, z.core.$strip>]>>;
12652
12719
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -12754,9 +12821,9 @@ declare const listPagesRoute: {
12754
12821
  }, z.core.$strip>]>>>;
12755
12822
  message: z.ZodOptional<z.ZodString>;
12756
12823
  editVia: z.ZodOptional<z.ZodEnum<{
12757
- web: "web";
12758
12824
  oauth: "oauth";
12759
12825
  pat: "pat";
12826
+ web: "web";
12760
12827
  }>>;
12761
12828
  }, z.core.$strip>]>>;
12762
12829
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -12859,9 +12926,9 @@ declare const listPagesRoute: {
12859
12926
  }, z.core.$strip>]>>>;
12860
12927
  message: z.ZodOptional<z.ZodString>;
12861
12928
  editVia: z.ZodOptional<z.ZodEnum<{
12862
- web: "web";
12863
12929
  oauth: "oauth";
12864
12930
  pat: "pat";
12931
+ web: "web";
12865
12932
  }>>;
12866
12933
  }, z.core.$strip>]>>;
12867
12934
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -13061,177 +13128,177 @@ declare const createPageRoute: {
13061
13128
  }, z.core.$strip>]>>>;
13062
13129
  message: z.ZodOptional<z.ZodString>;
13063
13130
  editVia: z.ZodOptional<z.ZodEnum<{
13064
- web: "web";
13065
13131
  oauth: "oauth";
13066
13132
  pat: "pat";
13067
- }>>;
13068
- }, z.core.$strip>]>>;
13069
- redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13070
- status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
13071
- deprecated: "deprecated";
13072
- wip: "wip";
13073
- published: "published";
13074
- deleted: "deleted";
13075
- draft: "draft";
13076
- }>>>;
13077
- grant: z.ZodOptional<z.ZodNumber>;
13078
- grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
13079
- creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13080
- _id: z.ZodString;
13081
- id: z.ZodOptional<z.ZodString>;
13082
- username: z.ZodString;
13083
- name: z.ZodString;
13084
- email: z.ZodString;
13085
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13086
- createdAt: z.ZodString;
13087
- }, z.core.$strip>]>>>;
13088
- lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13089
- _id: z.ZodString;
13090
- id: z.ZodOptional<z.ZodString>;
13091
- username: z.ZodString;
13092
- name: z.ZodString;
13093
- email: z.ZodString;
13094
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13095
- createdAt: z.ZodString;
13096
- }, z.core.$strip>]>>>;
13097
- liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
13098
- commentCount: z.ZodDefault<z.ZodNumber>;
13099
- extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13100
- createdAt: z.ZodString;
13101
- updatedAt: z.ZodOptional<z.ZodString>;
13102
- currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13103
- yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13104
- latestRevision: z.ZodOptional<z.ZodString>;
13105
- likerCount: z.ZodOptional<z.ZodNumber>;
13106
- seenUsersCount: z.ZodOptional<z.ZodNumber>;
13107
- }, z.core.$strip>;
13108
- }, z.core.$strip>;
13109
- };
13110
- };
13111
- };
13112
- 400: {
13113
- description: string;
13114
- content: {
13115
- 'application/json': {
13116
- schema: z.ZodObject<{
13117
- error: z.ZodObject<{
13118
- code: z.ZodString;
13119
- message: z.ZodString;
13120
- }, z.core.$strip>;
13121
- }, z.core.$strip>;
13122
- };
13123
- };
13124
- };
13125
- 401: {
13126
- description: string;
13127
- content: {
13128
- 'application/json': {
13129
- schema: z.ZodObject<{
13130
- error: z.ZodObject<{
13131
- code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
13132
- message: z.ZodLiteral<"Authentication is required">;
13133
- redirectTo: z.ZodOptional<z.ZodString>;
13134
- }, z.core.$strip>;
13135
- }, z.core.$strip>;
13136
- };
13137
- };
13138
- };
13139
- };
13140
- } & {
13141
- getRoutingPath(): "/pages";
13142
- };
13143
- declare const updatePageRoute: {
13144
- method: "put";
13145
- path: "/pages";
13146
- tags: string[];
13147
- security: {
13148
- bearerAuth: never[];
13149
- }[];
13150
- summary: string;
13151
- request: {
13152
- body: {
13153
- content: {
13154
- 'application/json': {
13155
- schema: z.ZodObject<{
13156
- page_id: z.ZodString;
13157
- body: z.ZodString;
13158
- revision_id: z.ZodOptional<z.ZodString>;
13159
- grant: z.ZodOptional<z.ZodNumber>;
13160
- }, z.core.$strip>;
13161
- };
13162
- };
13163
- };
13164
- };
13165
- responses: {
13166
- 200: {
13167
- description: string;
13168
- content: {
13169
- 'application/json': {
13170
- schema: z.ZodObject<{
13171
- page: z.ZodObject<{
13172
- _id: z.ZodString;
13173
- path: z.ZodString;
13174
- revision: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13175
- _id: z.ZodString;
13176
- path: z.ZodString;
13177
- body: z.ZodString;
13178
- format: z.ZodDefault<z.ZodString>;
13179
- author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13180
- _id: z.ZodString;
13181
- id: z.ZodOptional<z.ZodString>;
13182
- username: z.ZodString;
13183
- name: z.ZodString;
13184
- email: z.ZodString;
13185
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13186
- createdAt: z.ZodString;
13187
- }, z.core.$strip>>>;
13188
- createdAt: z.ZodString;
13189
- meta: z.ZodOptional<z.ZodObject<{
13190
- toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
13191
- level: z.ZodNumber;
13192
- text: z.ZodString;
13193
- anchorId: z.ZodString;
13194
- }, z.core.$strip>>>;
13195
- wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
13196
- raw: z.ZodString;
13197
- target: z.ZodString;
13198
- displayText: z.ZodOptional<z.ZodString>;
13199
- }, z.core.$strip>>>;
13200
- mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
13201
- username: z.ZodString;
13202
- }, z.core.$strip>>>;
13203
- codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
13204
- }, z.core.$strip>>;
13205
- renderedAst: z.ZodOptional<z.ZodUnknown>;
13206
- rendererVersion: z.ZodOptional<z.ZodString>;
13207
- parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13208
- type: z.ZodOptional<z.ZodEnum<{
13209
- snapshot: "snapshot";
13210
- incremental: "incremental";
13211
- }>>;
13212
- savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13213
- _id: z.ZodString;
13214
- id: z.ZodOptional<z.ZodString>;
13215
- username: z.ZodString;
13216
- name: z.ZodString;
13217
- email: z.ZodString;
13218
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13219
- createdAt: z.ZodString;
13220
- }, z.core.$strip>]>>>;
13221
- contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13222
- _id: z.ZodString;
13223
- id: z.ZodOptional<z.ZodString>;
13224
- username: z.ZodString;
13225
- name: z.ZodString;
13226
- email: z.ZodString;
13227
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13228
- createdAt: z.ZodString;
13229
- }, z.core.$strip>]>>>;
13230
- message: z.ZodOptional<z.ZodString>;
13231
- editVia: z.ZodOptional<z.ZodEnum<{
13232
13133
  web: "web";
13233
- oauth: "oauth";
13234
- pat: "pat";
13134
+ }>>;
13135
+ }, z.core.$strip>]>>;
13136
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13137
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
13138
+ deprecated: "deprecated";
13139
+ wip: "wip";
13140
+ published: "published";
13141
+ deleted: "deleted";
13142
+ draft: "draft";
13143
+ }>>>;
13144
+ grant: z.ZodOptional<z.ZodNumber>;
13145
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
13146
+ creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13147
+ _id: z.ZodString;
13148
+ id: z.ZodOptional<z.ZodString>;
13149
+ username: z.ZodString;
13150
+ name: z.ZodString;
13151
+ email: z.ZodString;
13152
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13153
+ createdAt: z.ZodString;
13154
+ }, z.core.$strip>]>>>;
13155
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13156
+ _id: z.ZodString;
13157
+ id: z.ZodOptional<z.ZodString>;
13158
+ username: z.ZodString;
13159
+ name: z.ZodString;
13160
+ email: z.ZodString;
13161
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13162
+ createdAt: z.ZodString;
13163
+ }, z.core.$strip>]>>>;
13164
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
13165
+ commentCount: z.ZodDefault<z.ZodNumber>;
13166
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13167
+ createdAt: z.ZodString;
13168
+ updatedAt: z.ZodOptional<z.ZodString>;
13169
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13170
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13171
+ latestRevision: z.ZodOptional<z.ZodString>;
13172
+ likerCount: z.ZodOptional<z.ZodNumber>;
13173
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
13174
+ }, z.core.$strip>;
13175
+ }, z.core.$strip>;
13176
+ };
13177
+ };
13178
+ };
13179
+ 400: {
13180
+ description: string;
13181
+ content: {
13182
+ 'application/json': {
13183
+ schema: z.ZodObject<{
13184
+ error: z.ZodObject<{
13185
+ code: z.ZodString;
13186
+ message: z.ZodString;
13187
+ }, z.core.$strip>;
13188
+ }, z.core.$strip>;
13189
+ };
13190
+ };
13191
+ };
13192
+ 401: {
13193
+ description: string;
13194
+ content: {
13195
+ 'application/json': {
13196
+ schema: z.ZodObject<{
13197
+ error: z.ZodObject<{
13198
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
13199
+ message: z.ZodLiteral<"Authentication is required">;
13200
+ redirectTo: z.ZodOptional<z.ZodString>;
13201
+ }, z.core.$strip>;
13202
+ }, z.core.$strip>;
13203
+ };
13204
+ };
13205
+ };
13206
+ };
13207
+ } & {
13208
+ getRoutingPath(): "/pages";
13209
+ };
13210
+ declare const updatePageRoute: {
13211
+ method: "put";
13212
+ path: "/pages";
13213
+ tags: string[];
13214
+ security: {
13215
+ bearerAuth: never[];
13216
+ }[];
13217
+ summary: string;
13218
+ request: {
13219
+ body: {
13220
+ content: {
13221
+ 'application/json': {
13222
+ schema: z.ZodObject<{
13223
+ page_id: z.ZodString;
13224
+ body: z.ZodString;
13225
+ revision_id: z.ZodOptional<z.ZodString>;
13226
+ grant: z.ZodOptional<z.ZodNumber>;
13227
+ }, z.core.$strip>;
13228
+ };
13229
+ };
13230
+ };
13231
+ };
13232
+ responses: {
13233
+ 200: {
13234
+ description: string;
13235
+ content: {
13236
+ 'application/json': {
13237
+ schema: z.ZodObject<{
13238
+ page: z.ZodObject<{
13239
+ _id: z.ZodString;
13240
+ path: z.ZodString;
13241
+ revision: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13242
+ _id: z.ZodString;
13243
+ path: z.ZodString;
13244
+ body: z.ZodString;
13245
+ format: z.ZodDefault<z.ZodString>;
13246
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13247
+ _id: z.ZodString;
13248
+ id: z.ZodOptional<z.ZodString>;
13249
+ username: z.ZodString;
13250
+ name: z.ZodString;
13251
+ email: z.ZodString;
13252
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13253
+ createdAt: z.ZodString;
13254
+ }, z.core.$strip>>>;
13255
+ createdAt: z.ZodString;
13256
+ meta: z.ZodOptional<z.ZodObject<{
13257
+ toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
13258
+ level: z.ZodNumber;
13259
+ text: z.ZodString;
13260
+ anchorId: z.ZodString;
13261
+ }, z.core.$strip>>>;
13262
+ wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
13263
+ raw: z.ZodString;
13264
+ target: z.ZodString;
13265
+ displayText: z.ZodOptional<z.ZodString>;
13266
+ }, z.core.$strip>>>;
13267
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
13268
+ username: z.ZodString;
13269
+ }, z.core.$strip>>>;
13270
+ codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
13271
+ }, z.core.$strip>>;
13272
+ renderedAst: z.ZodOptional<z.ZodUnknown>;
13273
+ rendererVersion: z.ZodOptional<z.ZodString>;
13274
+ parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13275
+ type: z.ZodOptional<z.ZodEnum<{
13276
+ snapshot: "snapshot";
13277
+ incremental: "incremental";
13278
+ }>>;
13279
+ savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13280
+ _id: z.ZodString;
13281
+ id: z.ZodOptional<z.ZodString>;
13282
+ username: z.ZodString;
13283
+ name: z.ZodString;
13284
+ email: z.ZodString;
13285
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13286
+ createdAt: z.ZodString;
13287
+ }, z.core.$strip>]>>>;
13288
+ contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
13289
+ _id: z.ZodString;
13290
+ id: z.ZodOptional<z.ZodString>;
13291
+ username: z.ZodString;
13292
+ name: z.ZodString;
13293
+ email: z.ZodString;
13294
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13295
+ createdAt: z.ZodString;
13296
+ }, z.core.$strip>]>>>;
13297
+ message: z.ZodOptional<z.ZodString>;
13298
+ editVia: z.ZodOptional<z.ZodEnum<{
13299
+ oauth: "oauth";
13300
+ pat: "pat";
13301
+ web: "web";
13235
13302
  }>>;
13236
13303
  }, z.core.$strip>]>>;
13237
13304
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -13421,9 +13488,9 @@ declare const setPageGrantRoute: {
13421
13488
  }, z.core.$strip>]>>>;
13422
13489
  message: z.ZodOptional<z.ZodString>;
13423
13490
  editVia: z.ZodOptional<z.ZodEnum<{
13424
- web: "web";
13425
13491
  oauth: "oauth";
13426
13492
  pat: "pat";
13493
+ web: "web";
13427
13494
  }>>;
13428
13495
  }, z.core.$strip>]>>;
13429
13496
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -13778,9 +13845,9 @@ declare const likePageRoute: {
13778
13845
  }, z.core.$strip>]>>>;
13779
13846
  message: z.ZodOptional<z.ZodString>;
13780
13847
  editVia: z.ZodOptional<z.ZodEnum<{
13781
- web: "web";
13782
13848
  oauth: "oauth";
13783
13849
  pat: "pat";
13850
+ web: "web";
13784
13851
  }>>;
13785
13852
  }, z.core.$strip>]>>;
13786
13853
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -13956,22 +14023,210 @@ declare const unlikePageRoute: {
13956
14023
  }, z.core.$strip>]>>>;
13957
14024
  message: z.ZodOptional<z.ZodString>;
13958
14025
  editVia: z.ZodOptional<z.ZodEnum<{
13959
- web: "web";
13960
14026
  oauth: "oauth";
13961
14027
  pat: "pat";
14028
+ web: "web";
14029
+ }>>;
14030
+ }, z.core.$strip>]>>;
14031
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14032
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
14033
+ deprecated: "deprecated";
14034
+ wip: "wip";
14035
+ published: "published";
14036
+ deleted: "deleted";
14037
+ draft: "draft";
14038
+ }>>>;
14039
+ grant: z.ZodOptional<z.ZodNumber>;
14040
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
14041
+ creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14042
+ _id: z.ZodString;
14043
+ id: z.ZodOptional<z.ZodString>;
14044
+ username: z.ZodString;
14045
+ name: z.ZodString;
14046
+ email: z.ZodString;
14047
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14048
+ createdAt: z.ZodString;
14049
+ }, z.core.$strip>]>>>;
14050
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14051
+ _id: z.ZodString;
14052
+ id: z.ZodOptional<z.ZodString>;
14053
+ username: z.ZodString;
14054
+ name: z.ZodString;
14055
+ email: z.ZodString;
14056
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14057
+ createdAt: z.ZodString;
14058
+ }, z.core.$strip>]>>>;
14059
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
14060
+ commentCount: z.ZodDefault<z.ZodNumber>;
14061
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
14062
+ createdAt: z.ZodString;
14063
+ updatedAt: z.ZodOptional<z.ZodString>;
14064
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14065
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14066
+ latestRevision: z.ZodOptional<z.ZodString>;
14067
+ likerCount: z.ZodOptional<z.ZodNumber>;
14068
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
14069
+ }, z.core.$strip>;
14070
+ }, z.core.$strip>;
14071
+ };
14072
+ };
14073
+ };
14074
+ 400: {
14075
+ description: string;
14076
+ content: {
14077
+ 'application/json': {
14078
+ schema: z.ZodObject<{
14079
+ error: z.ZodObject<{
14080
+ code: z.ZodLiteral<"INVALID_PAGE_ID">;
14081
+ message: z.ZodString;
14082
+ }, z.core.$strip>;
14083
+ }, z.core.$strip>;
14084
+ };
14085
+ };
14086
+ };
14087
+ 401: {
14088
+ description: string;
14089
+ content: {
14090
+ 'application/json': {
14091
+ schema: z.ZodObject<{
14092
+ error: z.ZodObject<{
14093
+ code: z.ZodLiteral<"AUTHENTICATION_REQUIRED">;
14094
+ message: z.ZodLiteral<"Authentication is required">;
14095
+ redirectTo: z.ZodOptional<z.ZodString>;
14096
+ }, z.core.$strip>;
14097
+ }, z.core.$strip>;
14098
+ };
14099
+ };
14100
+ };
14101
+ 404: {
14102
+ description: string;
14103
+ content: {
14104
+ 'application/json': {
14105
+ schema: z.ZodObject<{
14106
+ error: z.ZodObject<{
14107
+ code: z.ZodLiteral<"PAGE_NOT_FOUND">;
14108
+ message: z.ZodLiteral<"Page not found">;
14109
+ }, z.core.$strip>;
14110
+ }, z.core.$strip>;
14111
+ };
14112
+ };
14113
+ };
14114
+ };
14115
+ } & {
14116
+ getRoutingPath(): "/pages/unlike";
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";
13962
14227
  }>>;
13963
- }, z.core.$strip>]>>;
13964
- redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13965
- status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
13966
- deprecated: "deprecated";
13967
- wip: "wip";
13968
- published: "published";
13969
- deleted: "deleted";
13970
- draft: "draft";
13971
- }>>>;
13972
- grant: z.ZodOptional<z.ZodNumber>;
13973
- grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
13974
- creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14228
+ }, z.core.$strip>;
14229
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13975
14230
  _id: z.ZodString;
13976
14231
  id: z.ZodOptional<z.ZodString>;
13977
14232
  username: z.ZodString;
@@ -13979,8 +14234,8 @@ declare const unlikePageRoute: {
13979
14234
  email: z.ZodString;
13980
14235
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13981
14236
  createdAt: z.ZodString;
13982
- }, z.core.$strip>]>>>;
13983
- lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
14237
+ }, z.core.$strip>>>;
14238
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13984
14239
  _id: z.ZodString;
13985
14240
  id: z.ZodOptional<z.ZodString>;
13986
14241
  username: z.ZodString;
@@ -13988,18 +14243,9 @@ declare const unlikePageRoute: {
13988
14243
  email: z.ZodString;
13989
14244
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13990
14245
  createdAt: z.ZodString;
13991
- }, z.core.$strip>]>>>;
13992
- liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
13993
- commentCount: z.ZodDefault<z.ZodNumber>;
13994
- extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13995
- createdAt: z.ZodString;
13996
- updatedAt: z.ZodOptional<z.ZodString>;
13997
- currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13998
- yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13999
- latestRevision: z.ZodOptional<z.ZodString>;
14000
- likerCount: z.ZodOptional<z.ZodNumber>;
14001
- seenUsersCount: z.ZodOptional<z.ZodNumber>;
14246
+ }, z.core.$strip>>>;
14002
14247
  }, z.core.$strip>;
14248
+ granted: z.ZodBoolean;
14003
14249
  }, z.core.$strip>;
14004
14250
  };
14005
14251
  };
@@ -14031,6 +14277,27 @@ declare const unlikePageRoute: {
14031
14277
  };
14032
14278
  };
14033
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
+ };
14034
14301
  404: {
14035
14302
  description: string;
14036
14303
  content: {
@@ -14044,9 +14311,21 @@ declare const unlikePageRoute: {
14044
14311
  };
14045
14312
  };
14046
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
+ };
14047
14326
  };
14048
14327
  } & {
14049
- getRoutingPath(): "/pages/unlike";
14328
+ getRoutingPath(): "/pages/link-access";
14050
14329
  };
14051
14330
  declare const getWatchStatusRoute: {
14052
14331
  method: "get";
@@ -14279,9 +14558,9 @@ declare const deletePageRoute: {
14279
14558
  }, z.core.$strip>]>>>;
14280
14559
  message: z.ZodOptional<z.ZodString>;
14281
14560
  editVia: z.ZodOptional<z.ZodEnum<{
14282
- web: "web";
14283
14561
  oauth: "oauth";
14284
14562
  pat: "pat";
14563
+ web: "web";
14285
14564
  }>>;
14286
14565
  }, z.core.$strip>]>>;
14287
14566
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14470,9 +14749,9 @@ declare const revertDeletedPageRoute: {
14470
14749
  }, z.core.$strip>]>>>;
14471
14750
  message: z.ZodOptional<z.ZodString>;
14472
14751
  editVia: z.ZodOptional<z.ZodEnum<{
14473
- web: "web";
14474
14752
  oauth: "oauth";
14475
14753
  pat: "pat";
14754
+ web: "web";
14476
14755
  }>>;
14477
14756
  }, z.core.$strip>]>>;
14478
14757
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14649,9 +14928,9 @@ declare const revertToRevisionRoute: {
14649
14928
  }, z.core.$strip>]>>>;
14650
14929
  message: z.ZodOptional<z.ZodString>;
14651
14930
  editVia: z.ZodOptional<z.ZodEnum<{
14652
- web: "web";
14653
14931
  oauth: "oauth";
14654
14932
  pat: "pat";
14933
+ web: "web";
14655
14934
  }>>;
14656
14935
  }, z.core.$strip>]>>;
14657
14936
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14831,9 +15110,9 @@ declare const renamePageRoute: {
14831
15110
  }, z.core.$strip>]>>>;
14832
15111
  message: z.ZodOptional<z.ZodString>;
14833
15112
  editVia: z.ZodOptional<z.ZodEnum<{
14834
- web: "web";
14835
15113
  oauth: "oauth";
14836
15114
  pat: "pat";
15115
+ web: "web";
14837
15116
  }>>;
14838
15117
  }, z.core.$strip>]>>;
14839
15118
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15133,9 +15412,9 @@ declare const pageRoutes: {
15133
15412
  }, z.core.$strip>]>>>;
15134
15413
  message: z.ZodOptional<z.ZodString>;
15135
15414
  editVia: z.ZodOptional<z.ZodEnum<{
15136
- web: "web";
15137
15415
  oauth: "oauth";
15138
15416
  pat: "pat";
15417
+ web: "web";
15139
15418
  }>>;
15140
15419
  }, z.core.$strip>;
15141
15420
  creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -15201,6 +15480,19 @@ declare const pageRoutes: {
15201
15480
  };
15202
15481
  };
15203
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
+ };
15204
15496
  };
15205
15497
  } & {
15206
15498
  getRoutingPath(): "/pages";
@@ -15299,9 +15591,9 @@ declare const pageRoutes: {
15299
15591
  }, z.core.$strip>]>>>;
15300
15592
  message: z.ZodOptional<z.ZodString>;
15301
15593
  editVia: z.ZodOptional<z.ZodEnum<{
15302
- web: "web";
15303
15594
  oauth: "oauth";
15304
15595
  pat: "pat";
15596
+ web: "web";
15305
15597
  }>>;
15306
15598
  }, z.core.$strip>]>>;
15307
15599
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15409,9 +15701,9 @@ declare const pageRoutes: {
15409
15701
  }, z.core.$strip>]>>>;
15410
15702
  message: z.ZodOptional<z.ZodString>;
15411
15703
  editVia: z.ZodOptional<z.ZodEnum<{
15412
- web: "web";
15413
15704
  oauth: "oauth";
15414
15705
  pat: "pat";
15706
+ web: "web";
15415
15707
  }>>;
15416
15708
  }, z.core.$strip>]>>;
15417
15709
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15514,9 +15806,9 @@ declare const pageRoutes: {
15514
15806
  }, z.core.$strip>]>>>;
15515
15807
  message: z.ZodOptional<z.ZodString>;
15516
15808
  editVia: z.ZodOptional<z.ZodEnum<{
15517
- web: "web";
15518
15809
  oauth: "oauth";
15519
15810
  pat: "pat";
15811
+ web: "web";
15520
15812
  }>>;
15521
15813
  }, z.core.$strip>]>>;
15522
15814
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15716,9 +16008,9 @@ declare const pageRoutes: {
15716
16008
  }, z.core.$strip>]>>>;
15717
16009
  message: z.ZodOptional<z.ZodString>;
15718
16010
  editVia: z.ZodOptional<z.ZodEnum<{
15719
- web: "web";
15720
16011
  oauth: "oauth";
15721
16012
  pat: "pat";
16013
+ web: "web";
15722
16014
  }>>;
15723
16015
  }, z.core.$strip>]>>;
15724
16016
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -15884,9 +16176,9 @@ declare const pageRoutes: {
15884
16176
  }, z.core.$strip>]>>>;
15885
16177
  message: z.ZodOptional<z.ZodString>;
15886
16178
  editVia: z.ZodOptional<z.ZodEnum<{
15887
- web: "web";
15888
16179
  oauth: "oauth";
15889
16180
  pat: "pat";
16181
+ web: "web";
15890
16182
  }>>;
15891
16183
  }, z.core.$strip>]>>;
15892
16184
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -16076,9 +16368,9 @@ declare const pageRoutes: {
16076
16368
  }, z.core.$strip>]>>>;
16077
16369
  message: z.ZodOptional<z.ZodString>;
16078
16370
  editVia: z.ZodOptional<z.ZodEnum<{
16079
- web: "web";
16080
16371
  oauth: "oauth";
16081
16372
  pat: "pat";
16373
+ web: "web";
16082
16374
  }>>;
16083
16375
  }, z.core.$strip>]>>;
16084
16376
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -16433,9 +16725,9 @@ declare const pageRoutes: {
16433
16725
  }, z.core.$strip>]>>>;
16434
16726
  message: z.ZodOptional<z.ZodString>;
16435
16727
  editVia: z.ZodOptional<z.ZodEnum<{
16436
- web: "web";
16437
16728
  oauth: "oauth";
16438
16729
  pat: "pat";
16730
+ web: "web";
16439
16731
  }>>;
16440
16732
  }, z.core.$strip>]>>;
16441
16733
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -16553,7 +16845,205 @@ declare const pageRoutes: {
16553
16845
  page: z.ZodObject<{
16554
16846
  _id: z.ZodString;
16555
16847
  path: z.ZodString;
16556
- 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<{
16557
17047
  _id: z.ZodString;
16558
17048
  path: z.ZodString;
16559
17049
  body: z.ZodString;
@@ -16611,22 +17101,12 @@ declare const pageRoutes: {
16611
17101
  }, z.core.$strip>]>>>;
16612
17102
  message: z.ZodOptional<z.ZodString>;
16613
17103
  editVia: z.ZodOptional<z.ZodEnum<{
16614
- web: "web";
16615
17104
  oauth: "oauth";
16616
17105
  pat: "pat";
17106
+ web: "web";
16617
17107
  }>>;
16618
- }, z.core.$strip>]>>;
16619
- redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16620
- status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
16621
- deprecated: "deprecated";
16622
- wip: "wip";
16623
- published: "published";
16624
- deleted: "deleted";
16625
- draft: "draft";
16626
- }>>>;
16627
- grant: z.ZodOptional<z.ZodNumber>;
16628
- grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
16629
- creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
17108
+ }, z.core.$strip>;
17109
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16630
17110
  _id: z.ZodString;
16631
17111
  id: z.ZodOptional<z.ZodString>;
16632
17112
  username: z.ZodString;
@@ -16634,8 +17114,8 @@ declare const pageRoutes: {
16634
17114
  email: z.ZodString;
16635
17115
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16636
17116
  createdAt: z.ZodString;
16637
- }, z.core.$strip>]>>>;
16638
- lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
17117
+ }, z.core.$strip>>>;
17118
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16639
17119
  _id: z.ZodString;
16640
17120
  id: z.ZodOptional<z.ZodString>;
16641
17121
  username: z.ZodString;
@@ -16643,18 +17123,9 @@ declare const pageRoutes: {
16643
17123
  email: z.ZodString;
16644
17124
  image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16645
17125
  createdAt: z.ZodString;
16646
- }, z.core.$strip>]>>>;
16647
- liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
16648
- commentCount: z.ZodDefault<z.ZodNumber>;
16649
- extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16650
- createdAt: z.ZodString;
16651
- updatedAt: z.ZodOptional<z.ZodString>;
16652
- currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16653
- yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16654
- latestRevision: z.ZodOptional<z.ZodString>;
16655
- likerCount: z.ZodOptional<z.ZodNumber>;
16656
- seenUsersCount: z.ZodOptional<z.ZodNumber>;
17126
+ }, z.core.$strip>>>;
16657
17127
  }, z.core.$strip>;
17128
+ granted: z.ZodBoolean;
16658
17129
  }, z.core.$strip>;
16659
17130
  };
16660
17131
  };
@@ -16686,6 +17157,27 @@ declare const pageRoutes: {
16686
17157
  };
16687
17158
  };
16688
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
+ };
16689
17181
  404: {
16690
17182
  description: string;
16691
17183
  content: {
@@ -16699,9 +17191,21 @@ declare const pageRoutes: {
16699
17191
  };
16700
17192
  };
16701
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
+ };
16702
17206
  };
16703
17207
  } & {
16704
- getRoutingPath(): "/pages/unlike";
17208
+ getRoutingPath(): "/pages/link-access";
16705
17209
  };
16706
17210
  getWatchStatusRoute: {
16707
17211
  method: "get";
@@ -16934,9 +17438,9 @@ declare const pageRoutes: {
16934
17438
  }, z.core.$strip>]>>>;
16935
17439
  message: z.ZodOptional<z.ZodString>;
16936
17440
  editVia: z.ZodOptional<z.ZodEnum<{
16937
- web: "web";
16938
17441
  oauth: "oauth";
16939
17442
  pat: "pat";
17443
+ web: "web";
16940
17444
  }>>;
16941
17445
  }, z.core.$strip>]>>;
16942
17446
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17125,9 +17629,9 @@ declare const pageRoutes: {
17125
17629
  }, z.core.$strip>]>>>;
17126
17630
  message: z.ZodOptional<z.ZodString>;
17127
17631
  editVia: z.ZodOptional<z.ZodEnum<{
17128
- web: "web";
17129
17632
  oauth: "oauth";
17130
17633
  pat: "pat";
17634
+ web: "web";
17131
17635
  }>>;
17132
17636
  }, z.core.$strip>]>>;
17133
17637
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17304,9 +17808,9 @@ declare const pageRoutes: {
17304
17808
  }, z.core.$strip>]>>>;
17305
17809
  message: z.ZodOptional<z.ZodString>;
17306
17810
  editVia: z.ZodOptional<z.ZodEnum<{
17307
- web: "web";
17308
17811
  oauth: "oauth";
17309
17812
  pat: "pat";
17813
+ web: "web";
17310
17814
  }>>;
17311
17815
  }, z.core.$strip>]>>;
17312
17816
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -17486,9 +17990,9 @@ declare const pageRoutes: {
17486
17990
  }, z.core.$strip>]>>>;
17487
17991
  message: z.ZodOptional<z.ZodString>;
17488
17992
  editVia: z.ZodOptional<z.ZodEnum<{
17489
- web: "web";
17490
17993
  oauth: "oauth";
17491
17994
  pat: "pat";
17995
+ web: "web";
17492
17996
  }>>;
17493
17997
  }, z.core.$strip>]>>;
17494
17998
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -21113,9 +21617,9 @@ declare const searchPagesRoute: {
21113
21617
  }, zod_v4_core.$strip>]>>>;
21114
21618
  message: zod.ZodOptional<zod.ZodString>;
21115
21619
  editVia: zod.ZodOptional<zod.ZodEnum<{
21116
- web: "web";
21117
21620
  oauth: "oauth";
21118
21621
  pat: "pat";
21622
+ web: "web";
21119
21623
  }>>;
21120
21624
  }, zod_v4_core.$strip>]>>;
21121
21625
  redirectTo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -21324,9 +21828,9 @@ declare const searchRoutes: {
21324
21828
  }, zod_v4_core.$strip>]>>>;
21325
21829
  message: zod.ZodOptional<zod.ZodString>;
21326
21830
  editVia: zod.ZodOptional<zod.ZodEnum<{
21327
- web: "web";
21328
21831
  oauth: "oauth";
21329
21832
  pat: "pat";
21833
+ web: "web";
21330
21834
  }>>;
21331
21835
  }, zod_v4_core.$strip>]>>;
21332
21836
  redirectTo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
@@ -23082,6 +23586,7 @@ declare const PluginInfoSchema: z.ZodObject<{
23082
23586
  name: z.ZodString;
23083
23587
  version: z.ZodString;
23084
23588
  requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
23589
+ modelAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
23085
23590
  hasConfig: z.ZodBoolean;
23086
23591
  registers: z.ZodArray<z.ZodString>;
23087
23592
  adminPlacement: z.ZodObject<{
@@ -23100,6 +23605,11 @@ declare const PluginInfoSchema: z.ZodObject<{
23100
23605
  icon: z.ZodOptional<z.ZodString>;
23101
23606
  }, z.core.$strip>;
23102
23607
  supportsHotReload: z.ZodBoolean;
23608
+ status: z.ZodDefault<z.ZodEnum<{
23609
+ active: "active";
23610
+ failed: "failed";
23611
+ }>>;
23612
+ error: z.ZodOptional<z.ZodString>;
23103
23613
  }, z.core.$strip>;
23104
23614
  type PluginInfo = z.infer<typeof PluginInfoSchema>;
23105
23615
  declare const ListPluginsResponseSchema: z.ZodObject<{
@@ -23107,6 +23617,7 @@ declare const ListPluginsResponseSchema: z.ZodObject<{
23107
23617
  name: z.ZodString;
23108
23618
  version: z.ZodString;
23109
23619
  requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
23620
+ modelAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
23110
23621
  hasConfig: z.ZodBoolean;
23111
23622
  registers: z.ZodArray<z.ZodString>;
23112
23623
  adminPlacement: z.ZodObject<{
@@ -23125,6 +23636,11 @@ declare const ListPluginsResponseSchema: z.ZodObject<{
23125
23636
  icon: z.ZodOptional<z.ZodString>;
23126
23637
  }, z.core.$strip>;
23127
23638
  supportsHotReload: z.ZodBoolean;
23639
+ status: z.ZodDefault<z.ZodEnum<{
23640
+ active: "active";
23641
+ failed: "failed";
23642
+ }>>;
23643
+ error: z.ZodOptional<z.ZodString>;
23128
23644
  }, z.core.$strip>>;
23129
23645
  }, z.core.$strip>;
23130
23646
  type ListPluginsResponse = z.infer<typeof ListPluginsResponseSchema>;
@@ -23244,6 +23760,7 @@ declare const listPluginsRoute: {
23244
23760
  name: z.ZodString;
23245
23761
  version: z.ZodString;
23246
23762
  requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
23763
+ modelAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
23247
23764
  hasConfig: z.ZodBoolean;
23248
23765
  registers: z.ZodArray<z.ZodString>;
23249
23766
  adminPlacement: z.ZodObject<{
@@ -23262,6 +23779,11 @@ declare const listPluginsRoute: {
23262
23779
  icon: z.ZodOptional<z.ZodString>;
23263
23780
  }, z.core.$strip>;
23264
23781
  supportsHotReload: z.ZodBoolean;
23782
+ status: z.ZodDefault<z.ZodEnum<{
23783
+ active: "active";
23784
+ failed: "failed";
23785
+ }>>;
23786
+ error: z.ZodOptional<z.ZodString>;
23265
23787
  }, z.core.$strip>>;
23266
23788
  }, z.core.$strip>;
23267
23789
  };
@@ -23712,6 +24234,7 @@ declare const adminPluginsRoutes: {
23712
24234
  name: z.ZodString;
23713
24235
  version: z.ZodString;
23714
24236
  requires: z.ZodOptional<z.ZodArray<z.ZodString>>;
24237
+ modelAccess: z.ZodOptional<z.ZodArray<z.ZodString>>;
23715
24238
  hasConfig: z.ZodBoolean;
23716
24239
  registers: z.ZodArray<z.ZodString>;
23717
24240
  adminPlacement: z.ZodObject<{
@@ -23730,6 +24253,11 @@ declare const adminPluginsRoutes: {
23730
24253
  icon: z.ZodOptional<z.ZodString>;
23731
24254
  }, z.core.$strip>;
23732
24255
  supportsHotReload: z.ZodBoolean;
24256
+ status: z.ZodDefault<z.ZodEnum<{
24257
+ active: "active";
24258
+ failed: "failed";
24259
+ }>>;
24260
+ error: z.ZodOptional<z.ZodString>;
23733
24261
  }, z.core.$strip>>;
23734
24262
  }, z.core.$strip>;
23735
24263
  };
@@ -28180,7 +28708,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
28180
28708
  confidential: string | null;
28181
28709
  version: string;
28182
28710
  apiVersion: string;
28183
- capabilities: string[];
28711
+ capabilities: ("search" | "oauth" | "oauth:auth-code" | "oauth:device" | "oauth:pkce" | "pat" | "pages" | "comments" | "bookmarks" | "attachments" | "notifications" | "collab" | "collab:redis")[];
28184
28712
  canSelfRegister: boolean;
28185
28713
  };
28186
28714
  outputFormat: "json";
@@ -29585,7 +30113,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
29585
30113
  image?: string | null | undefined;
29586
30114
  })[] | undefined;
29587
30115
  message?: string | undefined;
29588
- editVia?: "web" | "oauth" | "pat" | undefined;
30116
+ editVia?: "oauth" | "pat" | "web" | undefined;
29589
30117
  } | undefined;
29590
30118
  redirectTo?: string | null | undefined;
29591
30119
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -29953,7 +30481,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
29953
30481
  image?: string | null | undefined;
29954
30482
  })[] | undefined;
29955
30483
  message?: string | undefined;
29956
- editVia?: "web" | "oauth" | "pat" | undefined;
30484
+ editVia?: "oauth" | "pat" | "web" | undefined;
29957
30485
  } | undefined;
29958
30486
  redirectTo?: string | null | undefined;
29959
30487
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -30049,7 +30577,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
30049
30577
  image?: string | null | undefined;
30050
30578
  })[] | undefined;
30051
30579
  message?: string | undefined;
30052
- editVia?: "web" | "oauth" | "pat" | undefined;
30580
+ editVia?: "oauth" | "pat" | "web" | undefined;
30053
30581
  } | undefined;
30054
30582
  redirectTo?: string | null | undefined;
30055
30583
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -30250,7 +30778,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
30250
30778
  image?: string | null | undefined;
30251
30779
  })[] | undefined;
30252
30780
  message?: string | undefined;
30253
- editVia?: "web" | "oauth" | "pat" | undefined;
30781
+ editVia?: "oauth" | "pat" | "web" | undefined;
30254
30782
  } | undefined;
30255
30783
  redirectTo?: string | null | undefined;
30256
30784
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -30441,7 +30969,7 @@ declare const appAuthMeUserChain: OpenAPIHono<hono.Env, {
30441
30969
  image?: string | null | undefined;
30442
30970
  })[] | undefined;
30443
30971
  message?: string | undefined;
30444
- editVia?: "web" | "oauth" | "pat" | undefined;
30972
+ editVia?: "oauth" | "pat" | "web" | undefined;
30445
30973
  } | undefined;
30446
30974
  redirectTo?: string | null | undefined;
30447
30975
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -30648,7 +31176,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
30648
31176
  image?: string | null | undefined;
30649
31177
  })[] | undefined;
30650
31178
  message?: string | undefined;
30651
- editVia?: "web" | "oauth" | "pat" | undefined;
31179
+ editVia?: "oauth" | "pat" | "web" | undefined;
30652
31180
  } | undefined;
30653
31181
  redirectTo?: string | null | undefined;
30654
31182
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -30818,7 +31346,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
30818
31346
  image?: string | null | undefined;
30819
31347
  })[] | undefined;
30820
31348
  message?: string | undefined;
30821
- editVia?: "web" | "oauth" | "pat" | undefined;
31349
+ editVia?: "oauth" | "pat" | "web" | undefined;
30822
31350
  } | undefined;
30823
31351
  redirectTo?: string | null | undefined;
30824
31352
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -30977,7 +31505,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
30977
31505
  image?: string | null | undefined;
30978
31506
  })[] | undefined;
30979
31507
  message?: string | undefined;
30980
- editVia?: "web" | "oauth" | "pat" | undefined;
31508
+ editVia?: "oauth" | "pat" | "web" | undefined;
30981
31509
  } | undefined;
30982
31510
  redirectTo?: string | null | undefined;
30983
31511
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -31175,6 +31703,22 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
31175
31703
  };
31176
31704
  outputFormat: "json";
31177
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;
31178
31722
  };
31179
31723
  };
31180
31724
  } & {
@@ -31195,6 +31739,21 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
31195
31739
  };
31196
31740
  outputFormat: "json";
31197
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;
31198
31757
  } | {
31199
31758
  input: {
31200
31759
  query: {
@@ -31238,21 +31797,6 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
31238
31797
  };
31239
31798
  outputFormat: "json";
31240
31799
  status: 400;
31241
- } | {
31242
- input: {
31243
- query: {
31244
- page_id?: string | undefined;
31245
- revision_id?: string | undefined;
31246
- };
31247
- };
31248
- output: {
31249
- error: {
31250
- code: "PAGE_NOT_FOUND";
31251
- message: "Page not found";
31252
- };
31253
- };
31254
- outputFormat: "json";
31255
- status: 404;
31256
31800
  };
31257
31801
  };
31258
31802
  } & {
@@ -31286,12 +31830,12 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
31286
31830
  };
31287
31831
  output: {
31288
31832
  error: {
31289
- code: "INVALID_REQUEST";
31290
- message: string;
31833
+ code: "PAGE_NOT_FOUND";
31834
+ message: "Page not found";
31291
31835
  };
31292
31836
  };
31293
31837
  outputFormat: "json";
31294
- status: 400;
31838
+ status: 404;
31295
31839
  } | {
31296
31840
  input: {
31297
31841
  json: {
@@ -31303,12 +31847,12 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
31303
31847
  };
31304
31848
  output: {
31305
31849
  error: {
31306
- code: "PAGE_NOT_FOUND";
31307
- message: "Page not found";
31850
+ code: "INVALID_REQUEST";
31851
+ message: string;
31308
31852
  };
31309
31853
  };
31310
31854
  outputFormat: "json";
31311
- status: 404;
31855
+ status: 400;
31312
31856
  } | {
31313
31857
  input: {
31314
31858
  json: {
@@ -31503,7 +32047,7 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
31503
32047
  id?: string | undefined;
31504
32048
  image?: string | null | undefined;
31505
32049
  }[] | undefined;
31506
- editVia?: "web" | "oauth" | "pat" | undefined;
32050
+ editVia?: "oauth" | "pat" | "web" | undefined;
31507
32051
  }[];
31508
32052
  pager: {
31509
32053
  prev: number | null;
@@ -31640,130 +32184,146 @@ declare const bookmarkBacklinkCommentRevisionChain: OpenAPIHono<hono.Env, {
31640
32184
  image?: string | null | undefined;
31641
32185
  })[] | undefined;
31642
32186
  message?: string | undefined;
31643
- editVia?: "web" | "oauth" | "pat" | undefined;
31644
- }[];
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
+ };
31645
32302
  };
31646
32303
  outputFormat: "json";
31647
32304
  status: 200;
31648
32305
  };
31649
32306
  };
31650
- } & {
31651
- "/pages/revisions/:id": {
32307
+ }, "/">;
32308
+ declare const pageChain: OpenAPIHono<hono.Env, {
32309
+ "/pages": {
31652
32310
  $get: {
31653
32311
  input: {
31654
- param: {
31655
- id: string;
31656
- };
31657
- };
31658
- output: {
31659
- error: {
31660
- code: "AUTHENTICATION_REQUIRED";
31661
- message: "Authentication is required";
31662
- redirectTo?: string | undefined;
31663
- };
31664
- };
31665
- outputFormat: "json";
31666
- status: 401;
31667
- } | {
31668
- input: {
31669
- param: {
31670
- id: string;
31671
- };
31672
- };
31673
- output: {
31674
- error: {
31675
- code: "PAGE_NOT_FOUND";
31676
- message: "Page not found";
31677
- };
31678
- };
31679
- outputFormat: "json";
31680
- status: 404;
31681
- } | {
31682
- input: {
31683
- param: {
31684
- id: string;
32312
+ query: {
32313
+ path?: string | undefined;
32314
+ page_id?: string | undefined;
32315
+ revision_id?: string | undefined;
31685
32316
  };
31686
32317
  };
31687
32318
  output: {
31688
32319
  error: {
31689
- code: "INVALID_REQUEST";
31690
- message: string;
32320
+ code: "INTERNAL_ERROR";
32321
+ message: "Internal server error";
31691
32322
  };
31692
32323
  };
31693
32324
  outputFormat: "json";
31694
- status: 400;
32325
+ status: 500;
31695
32326
  } | {
31696
- input: {
31697
- param: {
31698
- id: string;
31699
- };
31700
- };
31701
- output: {
31702
- revision: {
31703
- _id: string;
31704
- path: string;
31705
- body: string;
31706
- format: string;
31707
- createdAt: string;
31708
- author?: {
31709
- _id: string;
31710
- username: string;
31711
- name: string;
31712
- email: string;
31713
- createdAt: string;
31714
- id?: string | undefined;
31715
- image?: string | null | undefined;
31716
- } | null | undefined;
31717
- meta?: {
31718
- toc?: {
31719
- level: number;
31720
- text: string;
31721
- anchorId: string;
31722
- }[] | undefined;
31723
- wikiLinks?: {
31724
- raw: string;
31725
- target: string;
31726
- displayText?: string | undefined;
31727
- }[] | undefined;
31728
- mentions?: {
31729
- username: string;
31730
- }[] | undefined;
31731
- codeBlockLanguages?: string[] | undefined;
31732
- } | undefined;
31733
- renderedAst?: hono_utils_types.JSONValue | undefined;
31734
- rendererVersion?: string | undefined;
31735
- parentRevisionId?: string | null | undefined;
31736
- type?: "snapshot" | "incremental" | undefined;
31737
- savedBy?: string | {
31738
- _id: string;
31739
- username: string;
31740
- name: string;
31741
- email: string;
31742
- createdAt: string;
31743
- id?: string | undefined;
31744
- image?: string | null | undefined;
31745
- } | null | undefined;
31746
- contributors?: (string | {
31747
- _id: string;
31748
- username: string;
31749
- name: string;
31750
- email: string;
31751
- createdAt: string;
31752
- id?: string | undefined;
31753
- image?: string | null | undefined;
31754
- })[] | undefined;
31755
- message?: string | undefined;
31756
- editVia?: "web" | "oauth" | "pat" | undefined;
31757
- };
31758
- };
31759
- outputFormat: "json";
31760
- status: 200;
31761
- };
31762
- };
31763
- }, "/">;
31764
- declare const pageChain: OpenAPIHono<hono.Env, {
31765
- "/pages": {
31766
- $get: {
31767
32327
  input: {
31768
32328
  query: {
31769
32329
  path?: string | undefined;
@@ -31880,7 +32440,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
31880
32440
  image?: string | null | undefined;
31881
32441
  })[] | undefined;
31882
32442
  message?: string | undefined;
31883
- editVia?: "web" | "oauth" | "pat" | undefined;
32443
+ editVia?: "oauth" | "pat" | "web" | undefined;
31884
32444
  };
31885
32445
  redirectTo?: string | null | undefined;
31886
32446
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -32017,7 +32577,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
32017
32577
  image?: string | null | undefined;
32018
32578
  })[] | undefined;
32019
32579
  message?: string | undefined;
32020
- editVia?: "web" | "oauth" | "pat" | undefined;
32580
+ editVia?: "oauth" | "pat" | "web" | undefined;
32021
32581
  } | undefined;
32022
32582
  redirectTo?: string | null | undefined;
32023
32583
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -32116,7 +32676,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
32116
32676
  image?: string | null | undefined;
32117
32677
  })[] | undefined;
32118
32678
  message?: string | undefined;
32119
- editVia?: "web" | "oauth" | "pat" | undefined;
32679
+ editVia?: "oauth" | "pat" | "web" | undefined;
32120
32680
  } | undefined;
32121
32681
  redirectTo?: string | null | undefined;
32122
32682
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -32210,7 +32770,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
32210
32770
  image?: string | null | undefined;
32211
32771
  })[] | undefined;
32212
32772
  message?: string | undefined;
32213
- editVia?: "web" | "oauth" | "pat" | undefined;
32773
+ editVia?: "oauth" | "pat" | "web" | undefined;
32214
32774
  } | undefined;
32215
32775
  redirectTo?: string | null | undefined;
32216
32776
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -32373,7 +32933,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
32373
32933
  image?: string | null | undefined;
32374
32934
  })[] | undefined;
32375
32935
  message?: string | undefined;
32376
- editVia?: "web" | "oauth" | "pat" | undefined;
32936
+ editVia?: "oauth" | "pat" | "web" | undefined;
32377
32937
  } | undefined;
32378
32938
  redirectTo?: string | null | undefined;
32379
32939
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -32535,7 +33095,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
32535
33095
  image?: string | null | undefined;
32536
33096
  })[] | undefined;
32537
33097
  message?: string | undefined;
32538
- editVia?: "web" | "oauth" | "pat" | undefined;
33098
+ editVia?: "oauth" | "pat" | "web" | undefined;
32539
33099
  } | undefined;
32540
33100
  redirectTo?: string | null | undefined;
32541
33101
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -32709,7 +33269,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
32709
33269
  image?: string | null | undefined;
32710
33270
  })[] | undefined;
32711
33271
  message?: string | undefined;
32712
- editVia?: "web" | "oauth" | "pat" | undefined;
33272
+ editVia?: "oauth" | "pat" | "web" | undefined;
32713
33273
  } | undefined;
32714
33274
  redirectTo?: string | null | undefined;
32715
33275
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -33019,7 +33579,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33019
33579
  image?: string | null | undefined;
33020
33580
  })[] | undefined;
33021
33581
  message?: string | undefined;
33022
- editVia?: "web" | "oauth" | "pat" | undefined;
33582
+ editVia?: "oauth" | "pat" | "web" | undefined;
33023
33583
  } | undefined;
33024
33584
  redirectTo?: string | null | undefined;
33025
33585
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -33170,13 +33730,174 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33170
33730
  image?: string | null | undefined;
33171
33731
  })[] | undefined;
33172
33732
  message?: string | undefined;
33173
- editVia?: "web" | "oauth" | "pat" | undefined;
33174
- } | 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
+ };
33175
33886
  redirectTo?: string | null | undefined;
33176
33887
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
33177
33888
  grant?: number | undefined;
33178
33889
  grantedUsers?: string[] | undefined;
33179
- 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?: {
33180
33901
  _id: string;
33181
33902
  username: string;
33182
33903
  name: string;
@@ -33185,7 +33906,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33185
33906
  id?: string | undefined;
33186
33907
  image?: string | null | undefined;
33187
33908
  } | null | undefined;
33188
- lastUpdateUser?: string | {
33909
+ lastUpdateUser?: {
33189
33910
  _id: string;
33190
33911
  username: string;
33191
33912
  name: string;
@@ -33194,20 +33915,46 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33194
33915
  id?: string | undefined;
33195
33916
  image?: string | null | undefined;
33196
33917
  } | null | undefined;
33197
- liker?: string[] | undefined;
33198
- extended?: {
33199
- [x: string]: any;
33200
- } | undefined;
33201
- updatedAt?: string | undefined;
33202
- currentRevision?: string | null | undefined;
33203
- yjsCheckpointAt?: string | null | undefined;
33204
- latestRevision?: string | undefined;
33205
- likerCount?: number | undefined;
33206
- seenUsersCount?: number | undefined;
33207
33918
  };
33919
+ granted: boolean;
33208
33920
  };
33209
33921
  outputFormat: "json";
33210
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;
33211
33958
  };
33212
33959
  };
33213
33960
  } & {
@@ -33433,7 +34180,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33433
34180
  image?: string | null | undefined;
33434
34181
  })[] | undefined;
33435
34182
  message?: string | undefined;
33436
- editVia?: "web" | "oauth" | "pat" | undefined;
34183
+ editVia?: "oauth" | "pat" | "web" | undefined;
33437
34184
  } | undefined;
33438
34185
  redirectTo?: string | null | undefined;
33439
34186
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -33602,7 +34349,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33602
34349
  image?: string | null | undefined;
33603
34350
  })[] | undefined;
33604
34351
  message?: string | undefined;
33605
- editVia?: "web" | "oauth" | "pat" | undefined;
34352
+ editVia?: "oauth" | "pat" | "web" | undefined;
33606
34353
  } | undefined;
33607
34354
  redirectTo?: string | null | undefined;
33608
34355
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -33756,7 +34503,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33756
34503
  image?: string | null | undefined;
33757
34504
  })[] | undefined;
33758
34505
  message?: string | undefined;
33759
- editVia?: "web" | "oauth" | "pat" | undefined;
34506
+ editVia?: "oauth" | "pat" | "web" | undefined;
33760
34507
  } | undefined;
33761
34508
  redirectTo?: string | null | undefined;
33762
34509
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -33938,7 +34685,7 @@ declare const pageChain: OpenAPIHono<hono.Env, {
33938
34685
  image?: string | null | undefined;
33939
34686
  })[] | undefined;
33940
34687
  message?: string | undefined;
33941
- editVia?: "web" | "oauth" | "pat" | undefined;
34688
+ editVia?: "oauth" | "pat" | "web" | undefined;
33942
34689
  } | undefined;
33943
34690
  redirectTo?: string | null | undefined;
33944
34691
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -34512,6 +35259,21 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
34512
35259
  };
34513
35260
  outputFormat: "json";
34514
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;
34515
35277
  } | {
34516
35278
  input: {
34517
35279
  query: {
@@ -34554,21 +35316,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
34554
35316
  };
34555
35317
  outputFormat: "json";
34556
35318
  status: 400;
34557
- } | {
34558
- input: {
34559
- query: {
34560
- q: string;
34561
- limit?: unknown;
34562
- anchor?: "substring" | "prefix" | undefined;
34563
- };
34564
- };
34565
- output: {
34566
- error: "rate_limited";
34567
- message: string;
34568
- retryAfterSeconds: number;
34569
- };
34570
- outputFormat: "json";
34571
- status: 429;
34572
35319
  };
34573
35320
  };
34574
35321
  } & {
@@ -34590,6 +35337,21 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
34590
35337
  };
34591
35338
  outputFormat: "json";
34592
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;
34593
35355
  } | {
34594
35356
  input: {
34595
35357
  query: {
@@ -34632,21 +35394,6 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
34632
35394
  };
34633
35395
  outputFormat: "json";
34634
35396
  status: 400;
34635
- } | {
34636
- input: {
34637
- query: {
34638
- q: string;
34639
- limit?: unknown;
34640
- anchor?: "substring" | "prefix" | undefined;
34641
- };
34642
- };
34643
- output: {
34644
- error: "rate_limited";
34645
- message: string;
34646
- retryAfterSeconds: number;
34647
- };
34648
- outputFormat: "json";
34649
- status: 429;
34650
35397
  };
34651
35398
  };
34652
35399
  } & {
@@ -35474,7 +36221,7 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
35474
36221
  image?: string | null | undefined;
35475
36222
  })[] | undefined;
35476
36223
  message?: string | undefined;
35477
- editVia?: "web" | "oauth" | "pat" | undefined;
36224
+ editVia?: "oauth" | "pat" | "web" | undefined;
35478
36225
  } | undefined;
35479
36226
  redirectTo?: string | null | undefined;
35480
36227
  status?: "deprecated" | "wip" | "published" | "deleted" | "draft" | null | undefined;
@@ -35923,9 +36670,10 @@ declare const lateContractApp: OpenAPIHono<hono.Env, {
35923
36670
  *
35924
36671
  * Phase 6 (TS2589 escape hatch removal) — these chains are no longer
35925
36672
  * concatenated onto a single `contractApp` via `.route('/', sub)`.
35926
- * Instead, every chain stands alone and `AppType` below is an
35927
- * intersection of their `typeof`s, which `hc<T>` happily collapses via
35928
- * 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.
35929
36677
  */
35930
36678
  declare const adminSettingsContractApp: OpenAPIHono<hono.Env, {
35931
36679
  "/admin/app": {
@@ -37938,7 +38686,10 @@ declare const adminUsersPluginsContractApp: OpenAPIHono<hono.Env, {
37938
38686
  icon?: string | undefined;
37939
38687
  };
37940
38688
  supportsHotReload: boolean;
38689
+ status: "active" | "failed";
37941
38690
  requires?: string[] | undefined;
38691
+ modelAccess?: string[] | undefined;
38692
+ error?: string | undefined;
37942
38693
  }[];
37943
38694
  };
37944
38695
  outputFormat: "json";
@@ -38617,19 +39368,6 @@ type LateContractApp = typeof lateContractApp;
38617
39368
  type AdminSettingsContractApp = typeof adminSettingsContractApp;
38618
39369
  type AdminUsersPluginsContractApp = typeof adminUsersPluginsContractApp;
38619
39370
  type OAuthContractApp = typeof oauthContractApp;
38620
- /**
38621
- * `AppType` is exposed as an alias of one representative sub-chain so
38622
- * legacy consumers that `import type { AppType }` keep building. The
38623
- * accurate client surface is `CrowiApiClient` below, which intersects
38624
- * the per-chain `hc` instantiations one at a time so TypeScript never
38625
- * has to fold every chain's schema into a single `Client<T, Prefix>`
38626
- * type expression. (Folding-via-intersection was the layout we tried
38627
- * first and it tripped TS2589 in `Client<T, Prefix>`'s
38628
- * `T extends HonoBase<any, infer S, any>` arm — `infer S` only sees
38629
- * the first summand, so only one chain's routes showed up on the
38630
- * proxy.)
38631
- */
38632
- type AppType = AppAuthMeUserChain;
38633
39371
  /**
38634
39372
  * Default request init applied to every call unless the caller overrides
38635
39373
  * it. The `headers` shape matches Hono's `hc` (a plain record / async
@@ -38655,7 +39393,8 @@ interface ClientOptions {
38655
39393
  * is a path-traversal `Proxy`: it lazily reflects whatever property
38656
39394
  * chain the caller dots into. The actual route dispatch happens on the
38657
39395
  * server, so the proxy's runtime behaviour is identical regardless of
38658
- * 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
38659
39398
  * then assert the returned proxy as the full intersection below.
38660
39399
  */
38661
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>>;
@@ -38682,14 +39421,25 @@ declare const createClient: (baseUrl: string, options?: ClientOptions) => CrowiA
38682
39421
  * notice shows on screenshots / printouts (corporate IT requirement).
38683
39422
  *
38684
39423
  * `version` is the running Crowi server version (the `@crowi/api` package
38685
- * version). `apiVersion` is the API surface version (currently `"v2"`).
38686
- * `capabilities` is a coarse list of subsystems the server exposes —
38687
- * unconditionally-compiled features plus dynamically-detected ones
38688
- * (e.g. `"search"` only when a search driver is active). Together these
38689
- * three fields are the version-skew / feature-detection signal the
38690
- * `@crowi/cli` end-user CLI reads from this public, unauthenticated
38691
- * endpoint. The CLI parses them leniently: an older server that omits
38692
- * 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
38693
39443
  * suppressed.
38694
39444
  *
38695
39445
  * `canSelfRegister` tells the unauthenticated login / register pages
@@ -38708,7 +39458,21 @@ declare const AppInfoResponseSchema: z.ZodObject<{
38708
39458
  confidential: z.ZodNullable<z.ZodString>;
38709
39459
  version: z.ZodString;
38710
39460
  apiVersion: z.ZodString;
38711
- 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
+ }>>;
38712
39476
  canSelfRegister: z.ZodBoolean;
38713
39477
  }, z.core.$strip>;
38714
39478
  type AppInfoResponse = z.infer<typeof AppInfoResponseSchema>;
@@ -38722,8 +39486,10 @@ type AppInfoResponse = z.infer<typeof AppInfoResponseSchema>;
38722
39486
  * (`packages/api/src/hono/handlers/app.ts`) and the CLI
38723
39487
  * (`packages/cli/src/lib/capability.ts`) so the "always-on" set and the
38724
39488
  * floor version can never drift apart silently. Dynamically-detected
38725
- * capabilities (e.g. `search`, `collab`) are NOT listed here the handler
38726
- * 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.
38727
39493
  *
38728
39494
  * NOTE: this is the source of truth for the coarse *capability vocabulary*,
38729
39495
  * not for OAuth grant support itself — the canonical OAuth registry is
@@ -38740,6 +39506,39 @@ type AppInfoResponse = z.infer<typeof AppInfoResponseSchema>;
38740
39506
  * handlers are always mounted, so these are always-on.
38741
39507
  */
38742
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];
38743
39542
  /**
38744
39543
  * The API surface version advertised in `app/info.apiVersion` and the
38745
39544
  * version the CLI is built against (the "v2 floor"). A mismatch drives a
@@ -39578,9 +40377,9 @@ declare const RecentlyViewedPagesResponseSchema: z.ZodObject<{
39578
40377
  }, z.core.$strip>]>>>;
39579
40378
  message: z.ZodOptional<z.ZodString>;
39580
40379
  editVia: z.ZodOptional<z.ZodEnum<{
39581
- web: "web";
39582
40380
  oauth: "oauth";
39583
40381
  pat: "pat";
40382
+ web: "web";
39584
40383
  }>>;
39585
40384
  }, z.core.$strip>]>>;
39586
40385
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -39833,9 +40632,9 @@ declare const RevisionSchema: z.ZodObject<{
39833
40632
  }, z.core.$strip>]>>>;
39834
40633
  message: z.ZodOptional<z.ZodString>;
39835
40634
  editVia: z.ZodOptional<z.ZodEnum<{
39836
- web: "web";
39837
40635
  oauth: "oauth";
39838
40636
  pat: "pat";
40637
+ web: "web";
39839
40638
  }>>;
39840
40639
  }, z.core.$strip>;
39841
40640
  type Revision = z.infer<typeof RevisionSchema>;
@@ -39901,135 +40700,135 @@ declare const PageSchema: z.ZodObject<{
39901
40700
  }, z.core.$strip>]>>>;
39902
40701
  message: z.ZodOptional<z.ZodString>;
39903
40702
  editVia: z.ZodOptional<z.ZodEnum<{
40703
+ oauth: "oauth";
40704
+ pat: "pat";
39904
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<{
39905
40829
  oauth: "oauth";
39906
40830
  pat: "pat";
39907
- }>>;
39908
- }, z.core.$strip>]>>;
39909
- redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39910
- status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
39911
- deprecated: "deprecated";
39912
- wip: "wip";
39913
- published: "published";
39914
- deleted: "deleted";
39915
- draft: "draft";
39916
- }>>>;
39917
- grant: z.ZodOptional<z.ZodNumber>;
39918
- grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
39919
- creator: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
39920
- _id: z.ZodString;
39921
- id: z.ZodOptional<z.ZodString>;
39922
- username: z.ZodString;
39923
- name: z.ZodString;
39924
- email: z.ZodString;
39925
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39926
- createdAt: z.ZodString;
39927
- }, z.core.$strip>]>>>;
39928
- lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
39929
- _id: z.ZodString;
39930
- id: z.ZodOptional<z.ZodString>;
39931
- username: z.ZodString;
39932
- name: z.ZodString;
39933
- email: z.ZodString;
39934
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39935
- createdAt: z.ZodString;
39936
- }, z.core.$strip>]>>>;
39937
- liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
39938
- commentCount: z.ZodDefault<z.ZodNumber>;
39939
- extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
39940
- createdAt: z.ZodString;
39941
- updatedAt: z.ZodOptional<z.ZodString>;
39942
- currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39943
- yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39944
- latestRevision: z.ZodOptional<z.ZodString>;
39945
- likerCount: z.ZodOptional<z.ZodNumber>;
39946
- seenUsersCount: z.ZodOptional<z.ZodNumber>;
39947
- }, z.core.$strip>;
39948
- type Page = z.infer<typeof PageSchema>;
39949
- declare const PageWithRevisionSchema: z.ZodObject<{
39950
- _id: z.ZodString;
39951
- path: z.ZodString;
39952
- redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39953
- status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
39954
- deprecated: "deprecated";
39955
- wip: "wip";
39956
- published: "published";
39957
- deleted: "deleted";
39958
- draft: "draft";
39959
- }>>>;
39960
- grant: z.ZodOptional<z.ZodNumber>;
39961
- grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
39962
- liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
39963
- commentCount: z.ZodDefault<z.ZodNumber>;
39964
- extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
39965
- createdAt: z.ZodString;
39966
- updatedAt: z.ZodOptional<z.ZodString>;
39967
- currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39968
- yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39969
- latestRevision: z.ZodOptional<z.ZodString>;
39970
- likerCount: z.ZodOptional<z.ZodNumber>;
39971
- seenUsersCount: z.ZodOptional<z.ZodNumber>;
39972
- revision: z.ZodObject<{
39973
- _id: z.ZodString;
39974
- path: z.ZodString;
39975
- body: z.ZodString;
39976
- format: z.ZodDefault<z.ZodString>;
39977
- author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39978
- _id: z.ZodString;
39979
- id: z.ZodOptional<z.ZodString>;
39980
- username: z.ZodString;
39981
- name: z.ZodString;
39982
- email: z.ZodString;
39983
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39984
- createdAt: z.ZodString;
39985
- }, z.core.$strip>>>;
39986
- createdAt: z.ZodString;
39987
- meta: z.ZodOptional<z.ZodObject<{
39988
- toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
39989
- level: z.ZodNumber;
39990
- text: z.ZodString;
39991
- anchorId: z.ZodString;
39992
- }, z.core.$strip>>>;
39993
- wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
39994
- raw: z.ZodString;
39995
- target: z.ZodString;
39996
- displayText: z.ZodOptional<z.ZodString>;
39997
- }, z.core.$strip>>>;
39998
- mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
39999
- username: z.ZodString;
40000
- }, z.core.$strip>>>;
40001
- codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
40002
- }, z.core.$strip>>;
40003
- renderedAst: z.ZodOptional<z.ZodUnknown>;
40004
- rendererVersion: z.ZodOptional<z.ZodString>;
40005
- parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40006
- type: z.ZodOptional<z.ZodEnum<{
40007
- snapshot: "snapshot";
40008
- incremental: "incremental";
40009
- }>>;
40010
- savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40011
- _id: z.ZodString;
40012
- id: z.ZodOptional<z.ZodString>;
40013
- username: z.ZodString;
40014
- name: z.ZodString;
40015
- email: z.ZodString;
40016
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40017
- createdAt: z.ZodString;
40018
- }, z.core.$strip>]>>>;
40019
- contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
40020
- _id: z.ZodString;
40021
- id: z.ZodOptional<z.ZodString>;
40022
- username: z.ZodString;
40023
- name: z.ZodString;
40024
- email: z.ZodString;
40025
- image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40026
- createdAt: z.ZodString;
40027
- }, z.core.$strip>]>>>;
40028
- message: z.ZodOptional<z.ZodString>;
40029
- editVia: z.ZodOptional<z.ZodEnum<{
40030
- web: "web";
40031
- oauth: "oauth";
40032
- pat: "pat";
40831
+ web: "web";
40033
40832
  }>>;
40034
40833
  }, z.core.$strip>;
40035
40834
  creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -40140,9 +40939,9 @@ declare const GetPageResponseSchema: z.ZodObject<{
40140
40939
  }, z.core.$strip>]>>>;
40141
40940
  message: z.ZodOptional<z.ZodString>;
40142
40941
  editVia: z.ZodOptional<z.ZodEnum<{
40143
- web: "web";
40144
40942
  oauth: "oauth";
40145
40943
  pat: "pat";
40944
+ web: "web";
40146
40945
  }>>;
40147
40946
  }, z.core.$strip>;
40148
40947
  creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -40166,6 +40965,115 @@ declare const GetPageResponseSchema: z.ZodObject<{
40166
40965
  }, z.core.$strip>;
40167
40966
  }, z.core.$strip>;
40168
40967
  type GetPageResponse = z.infer<typeof GetPageResponseSchema>;
40968
+ declare const ClaimPageLinkAccessResponseSchema: z.ZodObject<{
40969
+ page: z.ZodObject<{
40970
+ _id: z.ZodString;
40971
+ path: z.ZodString;
40972
+ redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40973
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
40974
+ deprecated: "deprecated";
40975
+ wip: "wip";
40976
+ published: "published";
40977
+ deleted: "deleted";
40978
+ draft: "draft";
40979
+ }>>>;
40980
+ grant: z.ZodOptional<z.ZodNumber>;
40981
+ grantedUsers: z.ZodOptional<z.ZodArray<z.ZodString>>;
40982
+ liker: z.ZodOptional<z.ZodArray<z.ZodString>>;
40983
+ commentCount: z.ZodDefault<z.ZodNumber>;
40984
+ extended: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
40985
+ createdAt: z.ZodString;
40986
+ updatedAt: z.ZodOptional<z.ZodString>;
40987
+ currentRevision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40988
+ yjsCheckpointAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40989
+ latestRevision: z.ZodOptional<z.ZodString>;
40990
+ likerCount: z.ZodOptional<z.ZodNumber>;
40991
+ seenUsersCount: z.ZodOptional<z.ZodNumber>;
40992
+ revision: z.ZodObject<{
40993
+ _id: z.ZodString;
40994
+ path: z.ZodString;
40995
+ body: z.ZodString;
40996
+ format: z.ZodDefault<z.ZodString>;
40997
+ author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40998
+ _id: z.ZodString;
40999
+ id: z.ZodOptional<z.ZodString>;
41000
+ username: z.ZodString;
41001
+ name: z.ZodString;
41002
+ email: z.ZodString;
41003
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41004
+ createdAt: z.ZodString;
41005
+ }, z.core.$strip>>>;
41006
+ createdAt: z.ZodString;
41007
+ meta: z.ZodOptional<z.ZodObject<{
41008
+ toc: z.ZodOptional<z.ZodArray<z.ZodObject<{
41009
+ level: z.ZodNumber;
41010
+ text: z.ZodString;
41011
+ anchorId: z.ZodString;
41012
+ }, z.core.$strip>>>;
41013
+ wikiLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
41014
+ raw: z.ZodString;
41015
+ target: z.ZodString;
41016
+ displayText: z.ZodOptional<z.ZodString>;
41017
+ }, z.core.$strip>>>;
41018
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
41019
+ username: z.ZodString;
41020
+ }, z.core.$strip>>>;
41021
+ codeBlockLanguages: z.ZodOptional<z.ZodArray<z.ZodString>>;
41022
+ }, z.core.$strip>>;
41023
+ renderedAst: z.ZodOptional<z.ZodUnknown>;
41024
+ rendererVersion: z.ZodOptional<z.ZodString>;
41025
+ parentRevisionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41026
+ type: z.ZodOptional<z.ZodEnum<{
41027
+ snapshot: "snapshot";
41028
+ incremental: "incremental";
41029
+ }>>;
41030
+ savedBy: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
41031
+ _id: z.ZodString;
41032
+ id: z.ZodOptional<z.ZodString>;
41033
+ username: z.ZodString;
41034
+ name: z.ZodString;
41035
+ email: z.ZodString;
41036
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41037
+ createdAt: z.ZodString;
41038
+ }, z.core.$strip>]>>>;
41039
+ contributors: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
41040
+ _id: z.ZodString;
41041
+ id: z.ZodOptional<z.ZodString>;
41042
+ username: z.ZodString;
41043
+ name: z.ZodString;
41044
+ email: z.ZodString;
41045
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41046
+ createdAt: z.ZodString;
41047
+ }, z.core.$strip>]>>>;
41048
+ message: z.ZodOptional<z.ZodString>;
41049
+ editVia: z.ZodOptional<z.ZodEnum<{
41050
+ oauth: "oauth";
41051
+ pat: "pat";
41052
+ web: "web";
41053
+ }>>;
41054
+ }, z.core.$strip>;
41055
+ creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41056
+ _id: z.ZodString;
41057
+ id: z.ZodOptional<z.ZodString>;
41058
+ username: z.ZodString;
41059
+ name: z.ZodString;
41060
+ email: z.ZodString;
41061
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41062
+ createdAt: z.ZodString;
41063
+ }, z.core.$strip>>>;
41064
+ lastUpdateUser: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41065
+ _id: z.ZodString;
41066
+ id: z.ZodOptional<z.ZodString>;
41067
+ username: z.ZodString;
41068
+ name: z.ZodString;
41069
+ email: z.ZodString;
41070
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41071
+ createdAt: z.ZodString;
41072
+ }, z.core.$strip>>>;
41073
+ }, z.core.$strip>;
41074
+ granted: z.ZodBoolean;
41075
+ }, z.core.$strip>;
41076
+ type ClaimPageLinkAccessResponse = z.infer<typeof ClaimPageLinkAccessResponseSchema>;
40169
41077
  declare const ListPagesRequestSchema: z.ZodObject<{
40170
41078
  path: z.ZodOptional<z.ZodString>;
40171
41079
  user: z.ZodOptional<z.ZodString>;
@@ -40253,9 +41161,9 @@ declare const ListPagesResponseSchema: z.ZodObject<{
40253
41161
  }, z.core.$strip>]>>>;
40254
41162
  message: z.ZodOptional<z.ZodString>;
40255
41163
  editVia: z.ZodOptional<z.ZodEnum<{
40256
- web: "web";
40257
41164
  oauth: "oauth";
40258
41165
  pat: "pat";
41166
+ web: "web";
40259
41167
  }>>;
40260
41168
  }, z.core.$strip>]>>;
40261
41169
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -40363,9 +41271,9 @@ declare const ListPagesResponseSchema: z.ZodObject<{
40363
41271
  }, z.core.$strip>]>>>;
40364
41272
  message: z.ZodOptional<z.ZodString>;
40365
41273
  editVia: z.ZodOptional<z.ZodEnum<{
40366
- web: "web";
40367
41274
  oauth: "oauth";
40368
41275
  pat: "pat";
41276
+ web: "web";
40369
41277
  }>>;
40370
41278
  }, z.core.$strip>]>>;
40371
41279
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -40468,9 +41376,9 @@ declare const ListPagesResponseSchema: z.ZodObject<{
40468
41376
  }, z.core.$strip>]>>>;
40469
41377
  message: z.ZodOptional<z.ZodString>;
40470
41378
  editVia: z.ZodOptional<z.ZodEnum<{
40471
- web: "web";
40472
41379
  oauth: "oauth";
40473
41380
  pat: "pat";
41381
+ web: "web";
40474
41382
  }>>;
40475
41383
  }, z.core.$strip>]>>;
40476
41384
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -40629,9 +41537,9 @@ declare const RenamePageResponseSchema: z.ZodObject<{
40629
41537
  }, z.core.$strip>]>>>;
40630
41538
  message: z.ZodOptional<z.ZodString>;
40631
41539
  editVia: z.ZodOptional<z.ZodEnum<{
40632
- web: "web";
40633
41540
  oauth: "oauth";
40634
41541
  pat: "pat";
41542
+ web: "web";
40635
41543
  }>>;
40636
41544
  }, z.core.$strip>]>>;
40637
41545
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -40882,9 +41790,9 @@ declare const BookmarkSchema: z.ZodObject<{
40882
41790
  }, z.core.$strip>]>>>;
40883
41791
  message: z.ZodOptional<z.ZodString>;
40884
41792
  editVia: z.ZodOptional<z.ZodEnum<{
40885
- web: "web";
40886
41793
  oauth: "oauth";
40887
41794
  pat: "pat";
41795
+ web: "web";
40888
41796
  }>>;
40889
41797
  }, z.core.$strip>]>>;
40890
41798
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41015,9 +41923,9 @@ declare const BookmarkResponseSchema: z.ZodObject<{
41015
41923
  }, z.core.$strip>]>>>;
41016
41924
  message: z.ZodOptional<z.ZodString>;
41017
41925
  editVia: z.ZodOptional<z.ZodEnum<{
41018
- web: "web";
41019
41926
  oauth: "oauth";
41020
41927
  pat: "pat";
41928
+ web: "web";
41021
41929
  }>>;
41022
41930
  }, z.core.$strip>]>>;
41023
41931
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41145,9 +42053,9 @@ declare const ListMyBookmarksResponseSchema: z.ZodObject<{
41145
42053
  }, z.core.$strip>]>>>;
41146
42054
  message: z.ZodOptional<z.ZodString>;
41147
42055
  editVia: z.ZodOptional<z.ZodEnum<{
41148
- web: "web";
41149
42056
  oauth: "oauth";
41150
42057
  pat: "pat";
42058
+ web: "web";
41151
42059
  }>>;
41152
42060
  }, z.core.$strip>]>>;
41153
42061
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41364,9 +42272,9 @@ declare const UserPageResponseSchema: z.ZodObject<{
41364
42272
  }, z.core.$strip>]>>>;
41365
42273
  message: z.ZodOptional<z.ZodString>;
41366
42274
  editVia: z.ZodOptional<z.ZodEnum<{
41367
- web: "web";
41368
42275
  oauth: "oauth";
41369
42276
  pat: "pat";
42277
+ web: "web";
41370
42278
  }>>;
41371
42279
  }, z.core.$strip>]>>;
41372
42280
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41471,9 +42379,9 @@ declare const UserPageResponseSchema: z.ZodObject<{
41471
42379
  }, z.core.$strip>]>>>;
41472
42380
  message: z.ZodOptional<z.ZodString>;
41473
42381
  editVia: z.ZodOptional<z.ZodEnum<{
41474
- web: "web";
41475
42382
  oauth: "oauth";
41476
42383
  pat: "pat";
42384
+ web: "web";
41477
42385
  }>>;
41478
42386
  }, z.core.$strip>]>>;
41479
42387
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41601,9 +42509,9 @@ declare const UserBookmarksResponseSchema: z.ZodObject<{
41601
42509
  }, z.core.$strip>]>>>;
41602
42510
  message: z.ZodOptional<z.ZodString>;
41603
42511
  editVia: z.ZodOptional<z.ZodEnum<{
41604
- web: "web";
41605
42512
  oauth: "oauth";
41606
42513
  pat: "pat";
42514
+ web: "web";
41607
42515
  }>>;
41608
42516
  }, z.core.$strip>]>>;
41609
42517
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41735,9 +42643,9 @@ declare const UserPagesResponseSchema: z.ZodObject<{
41735
42643
  }, z.core.$strip>]>>>;
41736
42644
  message: z.ZodOptional<z.ZodString>;
41737
42645
  editVia: z.ZodOptional<z.ZodEnum<{
41738
- web: "web";
41739
42646
  oauth: "oauth";
41740
42647
  pat: "pat";
42648
+ web: "web";
41741
42649
  }>>;
41742
42650
  }, z.core.$strip>]>>;
41743
42651
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41939,9 +42847,9 @@ declare const RevisionMetaSchema: z.ZodObject<{
41939
42847
  createdAt: z.ZodString;
41940
42848
  }, z.core.$strip>>>;
41941
42849
  editVia: z.ZodOptional<z.ZodEnum<{
41942
- web: "web";
41943
42850
  oauth: "oauth";
41944
42851
  pat: "pat";
42852
+ web: "web";
41945
42853
  }>>;
41946
42854
  createdAt: z.ZodString;
41947
42855
  }, z.core.$strip>;
@@ -41983,9 +42891,9 @@ declare const ListRevisionsResponseSchema: z.ZodObject<{
41983
42891
  createdAt: z.ZodString;
41984
42892
  }, z.core.$strip>>>;
41985
42893
  editVia: z.ZodOptional<z.ZodEnum<{
41986
- web: "web";
41987
42894
  oauth: "oauth";
41988
42895
  pat: "pat";
42896
+ web: "web";
41989
42897
  }>>;
41990
42898
  createdAt: z.ZodString;
41991
42899
  }, z.core.$strip>>;
@@ -42055,9 +42963,9 @@ declare const GetRevisionResponseSchema: z.ZodObject<{
42055
42963
  }, z.core.$strip>]>>>;
42056
42964
  message: z.ZodOptional<z.ZodString>;
42057
42965
  editVia: z.ZodOptional<z.ZodEnum<{
42058
- web: "web";
42059
42966
  oauth: "oauth";
42060
42967
  pat: "pat";
42968
+ web: "web";
42061
42969
  }>>;
42062
42970
  }, z.core.$strip>;
42063
42971
  }, z.core.$strip>;
@@ -42125,9 +43033,9 @@ declare const GetRevisionsResponseSchema: z.ZodObject<{
42125
43033
  }, z.core.$strip>]>>>;
42126
43034
  message: z.ZodOptional<z.ZodString>;
42127
43035
  editVia: z.ZodOptional<z.ZodEnum<{
42128
- web: "web";
42129
43036
  oauth: "oauth";
42130
43037
  pat: "pat";
43038
+ web: "web";
42131
43039
  }>>;
42132
43040
  }, z.core.$strip>>;
42133
43041
  }, z.core.$strip>;
@@ -43700,9 +44608,9 @@ declare const SearchHitSchema: z.ZodObject<{
43700
44608
  }, z.core.$strip>]>>>;
43701
44609
  message: z.ZodOptional<z.ZodString>;
43702
44610
  editVia: z.ZodOptional<z.ZodEnum<{
43703
- web: "web";
43704
44611
  oauth: "oauth";
43705
44612
  pat: "pat";
44613
+ web: "web";
43706
44614
  }>>;
43707
44615
  }, z.core.$strip>]>>;
43708
44616
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -43826,9 +44734,9 @@ declare const SearchPagesResponseSchema: z.ZodObject<{
43826
44734
  }, z.core.$strip>]>>>;
43827
44735
  message: z.ZodOptional<z.ZodString>;
43828
44736
  editVia: z.ZodOptional<z.ZodEnum<{
43829
- web: "web";
43830
44737
  oauth: "oauth";
43831
44738
  pat: "pat";
44739
+ web: "web";
43832
44740
  }>>;
43833
44741
  }, z.core.$strip>]>>;
43834
44742
  redirectTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -43874,4 +44782,4 @@ declare const SearchPagesResponseSchema: z.ZodObject<{
43874
44782
  }, z.core.$strip>;
43875
44783
  type SearchPagesResponse = z.infer<typeof SearchPagesResponseSchema>;
43876
44784
 
43877
- 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 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, 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 };