@crowi/api 2.0.0-alpha.0 → 2.0.0-alpha.1

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.
Files changed (70) hide show
  1. package/dist/hono/handlers/access-token.d.ts +55 -55
  2. package/dist/hono/handlers/activation.d.ts +27 -27
  3. package/dist/hono/handlers/admin/app.d.ts +26 -26
  4. package/dist/hono/handlers/admin/auth.d.ts +24 -24
  5. package/dist/hono/handlers/admin/mail.d.ts +30 -30
  6. package/dist/hono/handlers/admin/plugins.d.ts +112 -112
  7. package/dist/hono/handlers/admin/search.d.ts +21 -21
  8. package/dist/hono/handlers/admin/security.d.ts +24 -24
  9. package/dist/hono/handlers/admin/storage.d.ts +19 -19
  10. package/dist/hono/handlers/admin/users.d.ts +305 -305
  11. package/dist/hono/handlers/adminCrypto.d.ts +32 -32
  12. package/dist/hono/handlers/app.d.ts +11 -8
  13. package/dist/hono/handlers/app.js +31 -1
  14. package/dist/hono/handlers/app.js.map +1 -1
  15. package/dist/hono/handlers/attachment.d.ts +180 -180
  16. package/dist/hono/handlers/autocomplete.d.ts +45 -45
  17. package/dist/hono/handlers/backlink.d.ts +33 -33
  18. package/dist/hono/handlers/bookmark.d.ts +95 -95
  19. package/dist/hono/handlers/comment.d.ts +55 -55
  20. package/dist/hono/handlers/draft.d.ts +27 -27
  21. package/dist/hono/handlers/emailChange.d.ts +25 -25
  22. package/dist/hono/handlers/installer.d.ts +16 -16
  23. package/dist/hono/handlers/inviteAccept.d.ts +37 -37
  24. package/dist/hono/handlers/me.d.ts +92 -92
  25. package/dist/hono/handlers/notification.d.ts +94 -94
  26. package/dist/hono/handlers/oauth.d.ts +58 -58
  27. package/dist/hono/handlers/page-collab.d.ts +20 -20
  28. package/dist/hono/handlers/page-preview.d.ts +7 -7
  29. package/dist/hono/handlers/page.d.ts +333 -333
  30. package/dist/hono/handlers/passwordReset.d.ts +37 -37
  31. package/dist/hono/handlers/presence.d.ts +44 -44
  32. package/dist/hono/handlers/revision.d.ts +99 -99
  33. package/dist/hono/handlers/search.d.ts +64 -64
  34. package/dist/hono/handlers/tokenAuth.d.ts +80 -80
  35. package/dist/hono/handlers/user.d.ts +102 -102
  36. package/dist/hono/handlers/user.js +15 -5
  37. package/dist/hono/handlers/user.js.map +1 -1
  38. package/dist/hono/index.d.ts +94 -94
  39. package/dist/mcp/result.d.ts +15 -0
  40. package/dist/mcp/result.js +20 -1
  41. package/dist/mcp/result.js.map +1 -1
  42. package/dist/mcp/tools/page.js +9 -4
  43. package/dist/mcp/tools/page.js.map +1 -1
  44. package/dist/migration/migrations/index.js +2 -0
  45. package/dist/migration/migrations/index.js.map +1 -1
  46. package/dist/migration/migrations/relocate-reserved-api-paths.d.ts +3 -0
  47. package/dist/migration/migrations/relocate-reserved-api-paths.js +135 -0
  48. package/dist/migration/migrations/relocate-reserved-api-paths.js.map +1 -0
  49. package/dist/models/page.js +9 -2
  50. package/dist/models/page.js.map +1 -1
  51. package/dist/util/replace-url.d.ts +85 -0
  52. package/dist/util/replace-url.js +251 -0
  53. package/dist/util/replace-url.js.map +1 -0
  54. package/package.json +6 -4
  55. package/public/images/file-not-found.png +0 -0
  56. package/views/mail/activation.mjml +9 -0
  57. package/views/mail/activation.text +13 -0
  58. package/views/mail/adminApprovalPending.mjml +7 -0
  59. package/views/mail/adminApprovalPending.text +11 -0
  60. package/views/mail/emailChange.mjml +9 -0
  61. package/views/mail/emailChange.text +13 -0
  62. package/views/mail/invite.mjml +9 -0
  63. package/views/mail/invite.text +13 -0
  64. package/views/mail/layout.mjml +36 -0
  65. package/views/mail/passwordChanged.mjml +4 -0
  66. package/views/mail/passwordChanged.text +9 -0
  67. package/views/mail/passwordReset.mjml +9 -0
  68. package/views/mail/passwordReset.text +13 -0
  69. package/views/mail/test.mjml +2 -0
  70. package/views/mail/test.text +7 -0
@@ -4,6 +4,27 @@ import type { CrowiHonoBindings } from '../../app';
4
4
  export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHonoBindings>>(app: E, crowi: Crowi) => OpenAPIHono<CrowiHonoBindings, {
5
5
  "/admin/plugins": {
6
6
  $get: {
7
+ input: {};
8
+ output: {
9
+ error: {
10
+ code: "INTERNAL_ERROR";
11
+ message: "Internal server error";
12
+ };
13
+ };
14
+ outputFormat: "json";
15
+ status: 500;
16
+ } | {
17
+ input: {};
18
+ output: {
19
+ error: {
20
+ code: "AUTHENTICATION_REQUIRED";
21
+ message: "Authentication is required";
22
+ redirectTo?: string | undefined;
23
+ };
24
+ };
25
+ outputFormat: "json";
26
+ status: 401;
27
+ } | {
7
28
  input: {};
8
29
  output: {
9
30
  plugins: {
@@ -12,7 +33,7 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
12
33
  hasConfig: boolean;
13
34
  registers: string[];
14
35
  adminPlacement: {
15
- section: "search" | "auth" | "notification" | "settings" | "shared" | "storage" | "mail" | "renderer";
36
+ section: "auth" | "search" | "notification" | "settings" | "shared" | "storage" | "mail" | "renderer";
16
37
  label: string;
17
38
  icon?: string | undefined;
18
39
  };
@@ -22,17 +43,6 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
22
43
  };
23
44
  outputFormat: "json";
24
45
  status: 200;
25
- } | {
26
- input: {};
27
- output: {
28
- error: {
29
- code: "AUTHENTICATION_REQUIRED";
30
- message: "Authentication is required";
31
- redirectTo?: string | undefined;
32
- };
33
- };
34
- outputFormat: "json";
35
- status: 401;
36
46
  } | {
37
47
  input: {};
38
48
  output: {
@@ -44,16 +54,6 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
44
54
  };
45
55
  outputFormat: "json";
46
56
  status: 403;
47
- } | {
48
- input: {};
49
- output: {
50
- error: {
51
- code: "INTERNAL_ERROR";
52
- message: "Internal server error";
53
- };
54
- };
55
- outputFormat: "json";
56
- status: 500;
57
57
  };
58
58
  };
59
59
  } & {
@@ -66,27 +66,13 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
66
66
  };
67
67
  };
68
68
  output: {
69
- name: string;
70
- fields: {
71
- name: string;
72
- kind: "string" | "number" | "boolean" | "enum" | "secret" | "string-array";
73
- optional: boolean;
74
- label?: string | undefined;
75
- description?: string | undefined;
76
- defaultValue?: import("hono/utils/types").JSONValue | undefined;
77
- options?: string[] | undefined;
78
- action?: {
79
- label: string;
80
- method: string;
81
- path: string;
82
- } | undefined;
83
- }[];
84
- values: {
85
- [x: string]: import("hono/utils/types").JSONValue;
69
+ error: {
70
+ code: "INTERNAL_ERROR";
71
+ message: "Internal server error";
86
72
  };
87
73
  };
88
74
  outputFormat: "json";
89
- status: 200;
75
+ status: 500;
90
76
  } | {
91
77
  input: {
92
78
  query: {
@@ -96,13 +82,12 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
96
82
  };
97
83
  output: {
98
84
  error: {
99
- code: "AUTHENTICATION_REQUIRED";
100
- message: "Authentication is required";
101
- redirectTo?: string | undefined;
85
+ code: "PLUGIN_NOT_FOUND";
86
+ message: string;
102
87
  };
103
88
  };
104
89
  outputFormat: "json";
105
- status: 401;
90
+ status: 404;
106
91
  } | {
107
92
  input: {
108
93
  query: {
@@ -112,13 +97,13 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
112
97
  };
113
98
  output: {
114
99
  error: {
115
- code: "ADMIN_REQUIRED";
116
- message: "Admin permission required";
100
+ code: "AUTHENTICATION_REQUIRED";
101
+ message: "Authentication is required";
117
102
  redirectTo?: string | undefined;
118
103
  };
119
104
  };
120
105
  outputFormat: "json";
121
- status: 403;
106
+ status: 401;
122
107
  } | {
123
108
  input: {
124
109
  query: {
@@ -127,13 +112,27 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
127
112
  };
128
113
  };
129
114
  output: {
130
- error: {
131
- code: "PLUGIN_NOT_FOUND";
132
- message: string;
115
+ name: string;
116
+ fields: {
117
+ name: string;
118
+ kind: "string" | "number" | "boolean" | "enum" | "secret" | "string-array";
119
+ optional: boolean;
120
+ label?: string | undefined;
121
+ description?: string | undefined;
122
+ defaultValue?: import("hono/utils/types").JSONValue | undefined;
123
+ options?: string[] | undefined;
124
+ action?: {
125
+ label: string;
126
+ method: string;
127
+ path: string;
128
+ } | undefined;
129
+ }[];
130
+ values: {
131
+ [x: string]: import("hono/utils/types").JSONValue;
133
132
  };
134
133
  };
135
134
  outputFormat: "json";
136
- status: 404;
135
+ status: 200;
137
136
  } | {
138
137
  input: {
139
138
  query: {
@@ -143,12 +142,13 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
143
142
  };
144
143
  output: {
145
144
  error: {
146
- code: "INTERNAL_ERROR";
147
- message: "Internal server error";
145
+ code: "ADMIN_REQUIRED";
146
+ message: "Admin permission required";
147
+ redirectTo?: string | undefined;
148
148
  };
149
149
  };
150
150
  outputFormat: "json";
151
- status: 500;
151
+ status: 403;
152
152
  };
153
153
  };
154
154
  } & {
@@ -164,12 +164,13 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
164
164
  };
165
165
  };
166
166
  output: {
167
- ok: true;
168
- hotReloaded: boolean;
169
- reconfigureFailed: boolean;
167
+ error: {
168
+ code: "INTERNAL_ERROR";
169
+ message: "Internal server error";
170
+ };
170
171
  };
171
172
  outputFormat: "json";
172
- status: 200;
173
+ status: 500;
173
174
  } | {
174
175
  input: {
175
176
  query: {
@@ -182,13 +183,12 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
182
183
  };
183
184
  output: {
184
185
  error: {
185
- code: "AUTHENTICATION_REQUIRED";
186
- message: "Authentication is required";
187
- redirectTo?: string | undefined;
186
+ code: "PLUGIN_NOT_FOUND";
187
+ message: string;
188
188
  };
189
189
  };
190
190
  outputFormat: "json";
191
- status: 401;
191
+ status: 404;
192
192
  } | {
193
193
  input: {
194
194
  query: {
@@ -201,13 +201,13 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
201
201
  };
202
202
  output: {
203
203
  error: {
204
- code: "ADMIN_REQUIRED";
205
- message: "Admin permission required";
204
+ code: "AUTHENTICATION_REQUIRED";
205
+ message: "Authentication is required";
206
206
  redirectTo?: string | undefined;
207
207
  };
208
208
  };
209
209
  outputFormat: "json";
210
- status: 403;
210
+ status: 401;
211
211
  } | {
212
212
  input: {
213
213
  query: {
@@ -219,13 +219,12 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
219
219
  };
220
220
  };
221
221
  output: {
222
- error: {
223
- code: "PLUGIN_NOT_FOUND";
224
- message: string;
225
- };
222
+ ok: true;
223
+ hotReloaded: boolean;
224
+ reconfigureFailed: boolean;
226
225
  };
227
226
  outputFormat: "json";
228
- status: 404;
227
+ status: 200;
229
228
  } | {
230
229
  input: {
231
230
  query: {
@@ -238,16 +237,13 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
238
237
  };
239
238
  output: {
240
239
  error: {
241
- code: "PLUGIN_CONFIG_VALIDATION_FAILED";
242
- message: string;
243
- issues: {
244
- path: (string | number)[];
245
- message: string;
246
- }[];
240
+ code: "ADMIN_REQUIRED";
241
+ message: "Admin permission required";
242
+ redirectTo?: string | undefined;
247
243
  };
248
244
  };
249
245
  outputFormat: "json";
250
- status: 422;
246
+ status: 403;
251
247
  } | {
252
248
  input: {
253
249
  query: {
@@ -260,12 +256,16 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
260
256
  };
261
257
  output: {
262
258
  error: {
263
- code: "INTERNAL_ERROR";
264
- message: "Internal server error";
259
+ code: "PLUGIN_CONFIG_VALIDATION_FAILED";
260
+ message: string;
261
+ issues: {
262
+ path: (string | number)[];
263
+ message: string;
264
+ }[];
265
265
  };
266
266
  };
267
267
  outputFormat: "json";
268
- status: 500;
268
+ status: 422;
269
269
  };
270
270
  };
271
271
  } & {
@@ -275,12 +275,13 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
275
275
  json: Record<string, never> | undefined;
276
276
  };
277
277
  output: {
278
- ok: true;
279
- clearedAt: string;
280
- removedCount: number;
278
+ error: {
279
+ code: "INTERNAL_ERROR";
280
+ message: "Internal server error";
281
+ };
281
282
  };
282
283
  outputFormat: "json";
283
- status: 200;
284
+ status: 500;
284
285
  } | {
285
286
  input: {
286
287
  json: Record<string, never> | undefined;
@@ -299,26 +300,25 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
299
300
  json: Record<string, never> | undefined;
300
301
  };
301
302
  output: {
302
- error: {
303
- code: "ADMIN_REQUIRED";
304
- message: "Admin permission required";
305
- redirectTo?: string | undefined;
306
- };
303
+ ok: true;
304
+ clearedAt: string;
305
+ removedCount: number;
307
306
  };
308
307
  outputFormat: "json";
309
- status: 403;
308
+ status: 200;
310
309
  } | {
311
310
  input: {
312
311
  json: Record<string, never> | undefined;
313
312
  };
314
313
  output: {
315
314
  error: {
316
- code: "INTERNAL_ERROR";
317
- message: "Internal server error";
315
+ code: "ADMIN_REQUIRED";
316
+ message: "Admin permission required";
317
+ redirectTo?: string | undefined;
318
318
  };
319
319
  };
320
320
  outputFormat: "json";
321
- status: 500;
321
+ status: 403;
322
322
  };
323
323
  };
324
324
  } & {
@@ -332,12 +332,13 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
332
332
  json: Record<string, never> | undefined;
333
333
  };
334
334
  output: {
335
- ok: true;
336
- clearedAt: string;
337
- removedCount: number;
335
+ error: {
336
+ code: "INTERNAL_ERROR";
337
+ message: "Internal server error";
338
+ };
338
339
  };
339
340
  outputFormat: "json";
340
- status: 200;
341
+ status: 500;
341
342
  } | {
342
343
  input: {
343
344
  query: {
@@ -348,13 +349,12 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
348
349
  };
349
350
  output: {
350
351
  error: {
351
- code: "AUTHENTICATION_REQUIRED";
352
- message: "Authentication is required";
353
- redirectTo?: string | undefined;
352
+ code: "PLUGIN_NOT_FOUND";
353
+ message: string;
354
354
  };
355
355
  };
356
356
  outputFormat: "json";
357
- status: 401;
357
+ status: 404;
358
358
  } | {
359
359
  input: {
360
360
  query: {
@@ -365,13 +365,13 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
365
365
  };
366
366
  output: {
367
367
  error: {
368
- code: "ADMIN_REQUIRED";
369
- message: "Admin permission required";
368
+ code: "AUTHENTICATION_REQUIRED";
369
+ message: "Authentication is required";
370
370
  redirectTo?: string | undefined;
371
371
  };
372
372
  };
373
373
  outputFormat: "json";
374
- status: 403;
374
+ status: 401;
375
375
  } | {
376
376
  input: {
377
377
  query: {
@@ -381,13 +381,12 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
381
381
  json: Record<string, never> | undefined;
382
382
  };
383
383
  output: {
384
- error: {
385
- code: "PLUGIN_NOT_FOUND";
386
- message: string;
387
- };
384
+ ok: true;
385
+ clearedAt: string;
386
+ removedCount: number;
388
387
  };
389
388
  outputFormat: "json";
390
- status: 404;
389
+ status: 200;
391
390
  } | {
392
391
  input: {
393
392
  query: {
@@ -398,12 +397,13 @@ export declare const registerAdminPluginsRoutes: <E extends OpenAPIHono<CrowiHon
398
397
  };
399
398
  output: {
400
399
  error: {
401
- code: "INTERNAL_ERROR";
402
- message: "Internal server error";
400
+ code: "ADMIN_REQUIRED";
401
+ message: "Admin permission required";
402
+ redirectTo?: string | undefined;
403
403
  };
404
404
  };
405
405
  outputFormat: "json";
406
- status: 500;
406
+ status: 403;
407
407
  };
408
408
  };
409
409
  }, "/">;
@@ -6,20 +6,13 @@ export declare const registerAdminSearchRoutes: <E extends OpenAPIHono<CrowiHono
6
6
  $get: {
7
7
  input: {};
8
8
  output: {
9
- active: {
10
- driverName: string;
11
- pluginName: string;
12
- supportsRebuild: boolean;
13
- } | null;
14
- drivers: {
15
- driverName: string;
16
- pluginName: string;
17
- isActive: boolean;
18
- supportsRebuild: boolean;
19
- }[];
9
+ error: {
10
+ code: "INTERNAL_ERROR";
11
+ message: "Internal server error";
12
+ };
20
13
  };
21
14
  outputFormat: "json";
22
- status: 200;
15
+ status: 500;
23
16
  } | {
24
17
  input: {};
25
18
  output: {
@@ -34,24 +27,31 @@ export declare const registerAdminSearchRoutes: <E extends OpenAPIHono<CrowiHono
34
27
  } | {
35
28
  input: {};
36
29
  output: {
37
- error: {
38
- code: "ADMIN_REQUIRED";
39
- message: "Admin permission required";
40
- redirectTo?: string | undefined;
41
- };
30
+ active: {
31
+ driverName: string;
32
+ pluginName: string;
33
+ supportsRebuild: boolean;
34
+ } | null;
35
+ drivers: {
36
+ driverName: string;
37
+ pluginName: string;
38
+ isActive: boolean;
39
+ supportsRebuild: boolean;
40
+ }[];
42
41
  };
43
42
  outputFormat: "json";
44
- status: 403;
43
+ status: 200;
45
44
  } | {
46
45
  input: {};
47
46
  output: {
48
47
  error: {
49
- code: "INTERNAL_ERROR";
50
- message: "Internal server error";
48
+ code: "ADMIN_REQUIRED";
49
+ message: "Admin permission required";
50
+ redirectTo?: string | undefined;
51
51
  };
52
52
  };
53
53
  outputFormat: "json";
54
- status: 500;
54
+ status: 403;
55
55
  };
56
56
  };
57
57
  }, "/">;
@@ -6,11 +6,13 @@ export declare const registerAdminSecurityRoutes: <E extends OpenAPIHono<CrowiHo
6
6
  $get: {
7
7
  input: {};
8
8
  output: {
9
- registrationMode: "Open" | "Resricted" | "Closed";
10
- registrationWhiteList: string[];
9
+ error: {
10
+ code: "INTERNAL_ERROR";
11
+ message: "Internal server error";
12
+ };
11
13
  };
12
14
  outputFormat: "json";
13
- status: 200;
15
+ status: 500;
14
16
  } | {
15
17
  input: {};
16
18
  output: {
@@ -25,24 +27,22 @@ export declare const registerAdminSecurityRoutes: <E extends OpenAPIHono<CrowiHo
25
27
  } | {
26
28
  input: {};
27
29
  output: {
28
- error: {
29
- code: "ADMIN_REQUIRED";
30
- message: "Admin permission required";
31
- redirectTo?: string | undefined;
32
- };
30
+ registrationMode: "Open" | "Resricted" | "Closed";
31
+ registrationWhiteList: string[];
33
32
  };
34
33
  outputFormat: "json";
35
- status: 403;
34
+ status: 200;
36
35
  } | {
37
36
  input: {};
38
37
  output: {
39
38
  error: {
40
- code: "INTERNAL_ERROR";
41
- message: "Internal server error";
39
+ code: "ADMIN_REQUIRED";
40
+ message: "Admin permission required";
41
+ redirectTo?: string | undefined;
42
42
  };
43
43
  };
44
44
  outputFormat: "json";
45
- status: 500;
45
+ status: 403;
46
46
  };
47
47
  };
48
48
  } & {
@@ -55,11 +55,13 @@ export declare const registerAdminSecurityRoutes: <E extends OpenAPIHono<CrowiHo
55
55
  };
56
56
  };
57
57
  output: {
58
- registrationMode: "Open" | "Resricted" | "Closed";
59
- registrationWhiteList: string[];
58
+ error: {
59
+ code: "INTERNAL_ERROR";
60
+ message: "Internal server error";
61
+ };
60
62
  };
61
63
  outputFormat: "json";
62
- status: 200;
64
+ status: 500;
63
65
  } | {
64
66
  input: {
65
67
  json: {
@@ -84,14 +86,11 @@ export declare const registerAdminSecurityRoutes: <E extends OpenAPIHono<CrowiHo
84
86
  };
85
87
  };
86
88
  output: {
87
- error: {
88
- code: "ADMIN_REQUIRED";
89
- message: "Admin permission required";
90
- redirectTo?: string | undefined;
91
- };
89
+ registrationMode: "Open" | "Resricted" | "Closed";
90
+ registrationWhiteList: string[];
92
91
  };
93
92
  outputFormat: "json";
94
- status: 403;
93
+ status: 200;
95
94
  } | {
96
95
  input: {
97
96
  json: {
@@ -101,12 +100,13 @@ export declare const registerAdminSecurityRoutes: <E extends OpenAPIHono<CrowiHo
101
100
  };
102
101
  output: {
103
102
  error: {
104
- code: "INTERNAL_ERROR";
105
- message: "Internal server error";
103
+ code: "ADMIN_REQUIRED";
104
+ message: "Admin permission required";
105
+ redirectTo?: string | undefined;
106
106
  };
107
107
  };
108
108
  outputFormat: "json";
109
- status: 500;
109
+ status: 403;
110
110
  };
111
111
  };
112
112
  }, "/">;
@@ -6,18 +6,13 @@ export declare const registerAdminStorageRoutes: <E extends OpenAPIHono<CrowiHon
6
6
  $get: {
7
7
  input: {};
8
8
  output: {
9
- active: {
10
- driverName: string;
11
- pluginName: string;
12
- } | null;
13
- drivers: {
14
- driverName: string;
15
- pluginName: string;
16
- isActive: boolean;
17
- }[];
9
+ error: {
10
+ code: "INTERNAL_ERROR";
11
+ message: "Internal server error";
12
+ };
18
13
  };
19
14
  outputFormat: "json";
20
- status: 200;
15
+ status: 500;
21
16
  } | {
22
17
  input: {};
23
18
  output: {
@@ -32,24 +27,29 @@ export declare const registerAdminStorageRoutes: <E extends OpenAPIHono<CrowiHon
32
27
  } | {
33
28
  input: {};
34
29
  output: {
35
- error: {
36
- code: "ADMIN_REQUIRED";
37
- message: "Admin permission required";
38
- redirectTo?: string | undefined;
39
- };
30
+ active: {
31
+ driverName: string;
32
+ pluginName: string;
33
+ } | null;
34
+ drivers: {
35
+ driverName: string;
36
+ pluginName: string;
37
+ isActive: boolean;
38
+ }[];
40
39
  };
41
40
  outputFormat: "json";
42
- status: 403;
41
+ status: 200;
43
42
  } | {
44
43
  input: {};
45
44
  output: {
46
45
  error: {
47
- code: "INTERNAL_ERROR";
48
- message: "Internal server error";
46
+ code: "ADMIN_REQUIRED";
47
+ message: "Admin permission required";
48
+ redirectTo?: string | undefined;
49
49
  };
50
50
  };
51
51
  outputFormat: "json";
52
- status: 500;
52
+ status: 403;
53
53
  };
54
54
  };
55
55
  }, "/">;