@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.
- package/dist/hono/handlers/access-token.d.ts +55 -55
- package/dist/hono/handlers/activation.d.ts +27 -27
- package/dist/hono/handlers/admin/app.d.ts +26 -26
- package/dist/hono/handlers/admin/auth.d.ts +24 -24
- package/dist/hono/handlers/admin/mail.d.ts +30 -30
- package/dist/hono/handlers/admin/plugins.d.ts +112 -112
- package/dist/hono/handlers/admin/search.d.ts +21 -21
- package/dist/hono/handlers/admin/security.d.ts +24 -24
- package/dist/hono/handlers/admin/storage.d.ts +19 -19
- package/dist/hono/handlers/admin/users.d.ts +305 -305
- package/dist/hono/handlers/adminCrypto.d.ts +32 -32
- package/dist/hono/handlers/app.d.ts +11 -8
- package/dist/hono/handlers/app.js +31 -1
- package/dist/hono/handlers/app.js.map +1 -1
- package/dist/hono/handlers/attachment.d.ts +180 -180
- package/dist/hono/handlers/autocomplete.d.ts +45 -45
- package/dist/hono/handlers/backlink.d.ts +33 -33
- package/dist/hono/handlers/bookmark.d.ts +95 -95
- package/dist/hono/handlers/comment.d.ts +55 -55
- package/dist/hono/handlers/draft.d.ts +27 -27
- package/dist/hono/handlers/emailChange.d.ts +25 -25
- package/dist/hono/handlers/installer.d.ts +16 -16
- package/dist/hono/handlers/inviteAccept.d.ts +37 -37
- package/dist/hono/handlers/me.d.ts +92 -92
- package/dist/hono/handlers/notification.d.ts +94 -94
- package/dist/hono/handlers/oauth.d.ts +58 -58
- package/dist/hono/handlers/page-collab.d.ts +20 -20
- package/dist/hono/handlers/page-preview.d.ts +7 -7
- package/dist/hono/handlers/page.d.ts +333 -333
- package/dist/hono/handlers/passwordReset.d.ts +37 -37
- package/dist/hono/handlers/presence.d.ts +44 -44
- package/dist/hono/handlers/revision.d.ts +99 -99
- package/dist/hono/handlers/search.d.ts +64 -64
- package/dist/hono/handlers/tokenAuth.d.ts +80 -80
- package/dist/hono/handlers/user.d.ts +102 -102
- package/dist/hono/handlers/user.js +15 -5
- package/dist/hono/handlers/user.js.map +1 -1
- package/dist/hono/index.d.ts +94 -94
- package/dist/mcp/result.d.ts +15 -0
- package/dist/mcp/result.js +20 -1
- package/dist/mcp/result.js.map +1 -1
- package/dist/mcp/tools/page.js +9 -4
- package/dist/mcp/tools/page.js.map +1 -1
- package/dist/migration/migrations/index.js +2 -0
- package/dist/migration/migrations/index.js.map +1 -1
- package/dist/migration/migrations/relocate-reserved-api-paths.d.ts +3 -0
- package/dist/migration/migrations/relocate-reserved-api-paths.js +135 -0
- package/dist/migration/migrations/relocate-reserved-api-paths.js.map +1 -0
- package/dist/models/page.js +9 -2
- package/dist/models/page.js.map +1 -1
- package/dist/util/replace-url.d.ts +85 -0
- package/dist/util/replace-url.js +251 -0
- package/dist/util/replace-url.js.map +1 -0
- package/package.json +6 -4
- package/public/images/file-not-found.png +0 -0
- package/views/mail/activation.mjml +9 -0
- package/views/mail/activation.text +13 -0
- package/views/mail/adminApprovalPending.mjml +7 -0
- package/views/mail/adminApprovalPending.text +11 -0
- package/views/mail/emailChange.mjml +9 -0
- package/views/mail/emailChange.text +13 -0
- package/views/mail/invite.mjml +9 -0
- package/views/mail/invite.text +13 -0
- package/views/mail/layout.mjml +36 -0
- package/views/mail/passwordChanged.mjml +4 -0
- package/views/mail/passwordChanged.text +9 -0
- package/views/mail/passwordReset.mjml +9 -0
- package/views/mail/passwordReset.text +13 -0
- package/views/mail/test.mjml +2 -0
- package/views/mail/test.text +7 -0
|
@@ -15,10 +15,13 @@ export declare const registerOAuthRoutes: <E extends OpenAPIHono<CrowiHonoBindin
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
output: {
|
|
18
|
-
|
|
18
|
+
error: {
|
|
19
|
+
code: "INTERNAL_ERROR";
|
|
20
|
+
message: "Internal server error";
|
|
21
|
+
};
|
|
19
22
|
};
|
|
20
23
|
outputFormat: "json";
|
|
21
|
-
status:
|
|
24
|
+
status: 500;
|
|
22
25
|
} | {
|
|
23
26
|
input: {
|
|
24
27
|
json: {
|
|
@@ -48,13 +51,10 @@ export declare const registerOAuthRoutes: <E extends OpenAPIHono<CrowiHonoBindin
|
|
|
48
51
|
};
|
|
49
52
|
};
|
|
50
53
|
output: {
|
|
51
|
-
|
|
52
|
-
code: "FORBIDDEN";
|
|
53
|
-
message: string;
|
|
54
|
-
};
|
|
54
|
+
redirectUri: string;
|
|
55
55
|
};
|
|
56
56
|
outputFormat: "json";
|
|
57
|
-
status:
|
|
57
|
+
status: 200;
|
|
58
58
|
} | {
|
|
59
59
|
input: {
|
|
60
60
|
json: {
|
|
@@ -68,12 +68,12 @@ export declare const registerOAuthRoutes: <E extends OpenAPIHono<CrowiHonoBindin
|
|
|
68
68
|
};
|
|
69
69
|
output: {
|
|
70
70
|
error: {
|
|
71
|
-
code: "
|
|
72
|
-
message:
|
|
71
|
+
code: "FORBIDDEN";
|
|
72
|
+
message: string;
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
75
|
outputFormat: "json";
|
|
76
|
-
status:
|
|
76
|
+
status: 403;
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
79
|
} & {
|
|
@@ -81,14 +81,13 @@ export declare const registerOAuthRoutes: <E extends OpenAPIHono<CrowiHonoBindin
|
|
|
81
81
|
$post: {
|
|
82
82
|
input: {};
|
|
83
83
|
output: {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
scope: string;
|
|
84
|
+
error: {
|
|
85
|
+
code: "INTERNAL_ERROR";
|
|
86
|
+
message: "Internal server error";
|
|
87
|
+
};
|
|
89
88
|
};
|
|
90
89
|
outputFormat: "json";
|
|
91
|
-
status:
|
|
90
|
+
status: 500;
|
|
92
91
|
} | {
|
|
93
92
|
input: {};
|
|
94
93
|
output: {
|
|
@@ -108,23 +107,19 @@ export declare const registerOAuthRoutes: <E extends OpenAPIHono<CrowiHonoBindin
|
|
|
108
107
|
} | {
|
|
109
108
|
input: {};
|
|
110
109
|
output: {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
110
|
+
access_token: string;
|
|
111
|
+
token_type: "Bearer";
|
|
112
|
+
expires_in: number;
|
|
113
|
+
refresh_token: string;
|
|
114
|
+
scope: string;
|
|
115
115
|
};
|
|
116
116
|
outputFormat: "json";
|
|
117
|
-
status:
|
|
117
|
+
status: 200;
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
} & {
|
|
121
121
|
"/oauth/revoke": {
|
|
122
122
|
$post: {
|
|
123
|
-
input: {};
|
|
124
|
-
output: {};
|
|
125
|
-
outputFormat: "json";
|
|
126
|
-
status: 200;
|
|
127
|
-
} | {
|
|
128
123
|
input: {};
|
|
129
124
|
output: {
|
|
130
125
|
error: {
|
|
@@ -134,6 +129,11 @@ export declare const registerOAuthRoutes: <E extends OpenAPIHono<CrowiHonoBindin
|
|
|
134
129
|
};
|
|
135
130
|
outputFormat: "json";
|
|
136
131
|
status: 500;
|
|
132
|
+
} | {
|
|
133
|
+
input: {};
|
|
134
|
+
output: {};
|
|
135
|
+
outputFormat: "json";
|
|
136
|
+
status: 200;
|
|
137
137
|
};
|
|
138
138
|
};
|
|
139
139
|
} & {
|
|
@@ -166,15 +166,13 @@ export declare const registerOAuthRoutes: <E extends OpenAPIHono<CrowiHonoBindin
|
|
|
166
166
|
};
|
|
167
167
|
};
|
|
168
168
|
output: {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
expires_in: number;
|
|
174
|
-
interval: number;
|
|
169
|
+
error: {
|
|
170
|
+
code: "INTERNAL_ERROR";
|
|
171
|
+
message: "Internal server error";
|
|
172
|
+
};
|
|
175
173
|
};
|
|
176
174
|
outputFormat: "json";
|
|
177
|
-
status:
|
|
175
|
+
status: 500;
|
|
178
176
|
} | {
|
|
179
177
|
input: {
|
|
180
178
|
json: {
|
|
@@ -196,13 +194,15 @@ export declare const registerOAuthRoutes: <E extends OpenAPIHono<CrowiHonoBindin
|
|
|
196
194
|
};
|
|
197
195
|
};
|
|
198
196
|
output: {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
197
|
+
device_code: string;
|
|
198
|
+
user_code: string;
|
|
199
|
+
verification_uri: string;
|
|
200
|
+
verification_uri_complete: string;
|
|
201
|
+
expires_in: number;
|
|
202
|
+
interval: number;
|
|
203
203
|
};
|
|
204
204
|
outputFormat: "json";
|
|
205
|
-
status:
|
|
205
|
+
status: 200;
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
208
|
} & {
|
|
@@ -214,11 +214,13 @@ export declare const registerOAuthRoutes: <E extends OpenAPIHono<CrowiHonoBindin
|
|
|
214
214
|
};
|
|
215
215
|
};
|
|
216
216
|
output: {
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
error: {
|
|
218
|
+
code: "NOT_FOUND";
|
|
219
|
+
message: string;
|
|
220
|
+
};
|
|
219
221
|
};
|
|
220
222
|
outputFormat: "json";
|
|
221
|
-
status:
|
|
223
|
+
status: 404;
|
|
222
224
|
} | {
|
|
223
225
|
input: {
|
|
224
226
|
query: {
|
|
@@ -226,13 +228,11 @@ export declare const registerOAuthRoutes: <E extends OpenAPIHono<CrowiHonoBindin
|
|
|
226
228
|
};
|
|
227
229
|
};
|
|
228
230
|
output: {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
message: string;
|
|
232
|
-
};
|
|
231
|
+
client_id: string;
|
|
232
|
+
scopes: string[];
|
|
233
233
|
};
|
|
234
234
|
outputFormat: "json";
|
|
235
|
-
status:
|
|
235
|
+
status: 200;
|
|
236
236
|
};
|
|
237
237
|
};
|
|
238
238
|
} & {
|
|
@@ -245,10 +245,13 @@ export declare const registerOAuthRoutes: <E extends OpenAPIHono<CrowiHonoBindin
|
|
|
245
245
|
};
|
|
246
246
|
};
|
|
247
247
|
output: {
|
|
248
|
-
|
|
248
|
+
error: {
|
|
249
|
+
code: "INTERNAL_ERROR";
|
|
250
|
+
message: "Internal server error";
|
|
251
|
+
};
|
|
249
252
|
};
|
|
250
253
|
outputFormat: "json";
|
|
251
|
-
status:
|
|
254
|
+
status: 500;
|
|
252
255
|
} | {
|
|
253
256
|
input: {
|
|
254
257
|
json: {
|
|
@@ -258,12 +261,12 @@ export declare const registerOAuthRoutes: <E extends OpenAPIHono<CrowiHonoBindin
|
|
|
258
261
|
};
|
|
259
262
|
output: {
|
|
260
263
|
error: {
|
|
261
|
-
code: "
|
|
264
|
+
code: "NOT_FOUND";
|
|
262
265
|
message: string;
|
|
263
266
|
};
|
|
264
267
|
};
|
|
265
268
|
outputFormat: "json";
|
|
266
|
-
status:
|
|
269
|
+
status: 404;
|
|
267
270
|
} | {
|
|
268
271
|
input: {
|
|
269
272
|
json: {
|
|
@@ -272,13 +275,10 @@ export declare const registerOAuthRoutes: <E extends OpenAPIHono<CrowiHonoBindin
|
|
|
272
275
|
};
|
|
273
276
|
};
|
|
274
277
|
output: {
|
|
275
|
-
|
|
276
|
-
code: "NOT_FOUND";
|
|
277
|
-
message: string;
|
|
278
|
-
};
|
|
278
|
+
status: "approved" | "denied";
|
|
279
279
|
};
|
|
280
280
|
outputFormat: "json";
|
|
281
|
-
status:
|
|
281
|
+
status: 200;
|
|
282
282
|
} | {
|
|
283
283
|
input: {
|
|
284
284
|
json: {
|
|
@@ -288,12 +288,12 @@ export declare const registerOAuthRoutes: <E extends OpenAPIHono<CrowiHonoBindin
|
|
|
288
288
|
};
|
|
289
289
|
output: {
|
|
290
290
|
error: {
|
|
291
|
-
code: "
|
|
292
|
-
message:
|
|
291
|
+
code: "FORBIDDEN";
|
|
292
|
+
message: string;
|
|
293
293
|
};
|
|
294
294
|
};
|
|
295
295
|
outputFormat: "json";
|
|
296
|
-
status:
|
|
296
|
+
status: 403;
|
|
297
297
|
};
|
|
298
298
|
};
|
|
299
299
|
}, "/">;
|
|
@@ -10,13 +10,13 @@ export declare const registerPageCollabRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
output: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
error: {
|
|
14
|
+
code: "INTERNAL_ERROR";
|
|
15
|
+
message: "Internal server error";
|
|
16
|
+
};
|
|
17
17
|
};
|
|
18
18
|
outputFormat: "json";
|
|
19
|
-
status:
|
|
19
|
+
status: 500;
|
|
20
20
|
} | {
|
|
21
21
|
input: {
|
|
22
22
|
param: {
|
|
@@ -25,12 +25,12 @@ export declare const registerPageCollabRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
25
25
|
};
|
|
26
26
|
output: {
|
|
27
27
|
error: {
|
|
28
|
-
code: "
|
|
29
|
-
message:
|
|
28
|
+
code: "PAGE_NOT_FOUND";
|
|
29
|
+
message: "Page not found";
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
outputFormat: "json";
|
|
33
|
-
status:
|
|
33
|
+
status: 404;
|
|
34
34
|
} | {
|
|
35
35
|
input: {
|
|
36
36
|
param: {
|
|
@@ -39,13 +39,12 @@ export declare const registerPageCollabRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
39
39
|
};
|
|
40
40
|
output: {
|
|
41
41
|
error: {
|
|
42
|
-
code: "
|
|
43
|
-
message:
|
|
44
|
-
redirectTo?: string | undefined;
|
|
42
|
+
code: "INVALID_PAGE_ID";
|
|
43
|
+
message: string;
|
|
45
44
|
};
|
|
46
45
|
};
|
|
47
46
|
outputFormat: "json";
|
|
48
|
-
status:
|
|
47
|
+
status: 400;
|
|
49
48
|
} | {
|
|
50
49
|
input: {
|
|
51
50
|
param: {
|
|
@@ -54,12 +53,13 @@ export declare const registerPageCollabRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
54
53
|
};
|
|
55
54
|
output: {
|
|
56
55
|
error: {
|
|
57
|
-
code: "
|
|
58
|
-
message: "
|
|
56
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
57
|
+
message: "Authentication is required";
|
|
58
|
+
redirectTo?: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
outputFormat: "json";
|
|
62
|
-
status:
|
|
62
|
+
status: 401;
|
|
63
63
|
} | {
|
|
64
64
|
input: {
|
|
65
65
|
param: {
|
|
@@ -67,13 +67,13 @@ export declare const registerPageCollabRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
output: {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
wsToken: string;
|
|
71
|
+
pageId: string;
|
|
72
|
+
expiresAt: string;
|
|
73
|
+
readonly: boolean;
|
|
74
74
|
};
|
|
75
75
|
outputFormat: "json";
|
|
76
|
-
status:
|
|
76
|
+
status: 200;
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
79
|
}, "/">;
|
|
@@ -10,10 +10,13 @@ export declare const registerPagePreviewRoutes: <E extends OpenAPIHono<CrowiHono
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
output: {
|
|
13
|
-
|
|
13
|
+
error: {
|
|
14
|
+
code: "INTERNAL_ERROR";
|
|
15
|
+
message: "Internal server error";
|
|
16
|
+
};
|
|
14
17
|
};
|
|
15
18
|
outputFormat: "json";
|
|
16
|
-
status:
|
|
19
|
+
status: 500;
|
|
17
20
|
} | {
|
|
18
21
|
input: {
|
|
19
22
|
json: {
|
|
@@ -36,13 +39,10 @@ export declare const registerPagePreviewRoutes: <E extends OpenAPIHono<CrowiHono
|
|
|
36
39
|
};
|
|
37
40
|
};
|
|
38
41
|
output: {
|
|
39
|
-
|
|
40
|
-
code: "INTERNAL_ERROR";
|
|
41
|
-
message: "Internal server error";
|
|
42
|
-
};
|
|
42
|
+
renderedAst: import("hono/utils/types").JSONValue;
|
|
43
43
|
};
|
|
44
44
|
outputFormat: "json";
|
|
45
|
-
status:
|
|
45
|
+
status: 200;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
}, "/">;
|