@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
|
@@ -6,17 +6,13 @@ export declare const registerAccessTokenRoutes: <E extends OpenAPIHono<CrowiHono
|
|
|
6
6
|
$get: {
|
|
7
7
|
input: {};
|
|
8
8
|
output: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
expiresAt: string | null;
|
|
14
|
-
lastUsedAt: string | null;
|
|
15
|
-
createdAt: string;
|
|
16
|
-
}[];
|
|
9
|
+
error: {
|
|
10
|
+
code: "INTERNAL_ERROR";
|
|
11
|
+
message: "Internal server error";
|
|
12
|
+
};
|
|
17
13
|
};
|
|
18
14
|
outputFormat: "json";
|
|
19
|
-
status:
|
|
15
|
+
status: 500;
|
|
20
16
|
} | {
|
|
21
17
|
input: {};
|
|
22
18
|
output: {
|
|
@@ -31,23 +27,27 @@ export declare const registerAccessTokenRoutes: <E extends OpenAPIHono<CrowiHono
|
|
|
31
27
|
} | {
|
|
32
28
|
input: {};
|
|
33
29
|
output: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
accessTokens: {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
scopes: string[];
|
|
34
|
+
expiresAt: string | null;
|
|
35
|
+
lastUsedAt: string | null;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
}[];
|
|
38
38
|
};
|
|
39
39
|
outputFormat: "json";
|
|
40
|
-
status:
|
|
40
|
+
status: 200;
|
|
41
41
|
} | {
|
|
42
42
|
input: {};
|
|
43
43
|
output: {
|
|
44
44
|
error: {
|
|
45
|
-
code: "
|
|
46
|
-
message:
|
|
45
|
+
code: "FORBIDDEN";
|
|
46
|
+
message: string;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
outputFormat: "json";
|
|
50
|
-
status:
|
|
50
|
+
status: 403;
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
} & {
|
|
@@ -61,16 +61,13 @@ export declare const registerAccessTokenRoutes: <E extends OpenAPIHono<CrowiHono
|
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
output: {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
lastUsedAt: string | null;
|
|
69
|
-
createdAt: string;
|
|
70
|
-
token: string;
|
|
64
|
+
error: {
|
|
65
|
+
code: "INTERNAL_ERROR";
|
|
66
|
+
message: "Internal server error";
|
|
67
|
+
};
|
|
71
68
|
};
|
|
72
69
|
outputFormat: "json";
|
|
73
|
-
status:
|
|
70
|
+
status: 500;
|
|
74
71
|
} | {
|
|
75
72
|
input: {
|
|
76
73
|
json: {
|
|
@@ -116,13 +113,16 @@ export declare const registerAccessTokenRoutes: <E extends OpenAPIHono<CrowiHono
|
|
|
116
113
|
};
|
|
117
114
|
};
|
|
118
115
|
output: {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
id: string;
|
|
117
|
+
name: string;
|
|
118
|
+
scopes: string[];
|
|
119
|
+
expiresAt: string | null;
|
|
120
|
+
lastUsedAt: string | null;
|
|
121
|
+
createdAt: string;
|
|
122
|
+
token: string;
|
|
123
123
|
};
|
|
124
124
|
outputFormat: "json";
|
|
125
|
-
status:
|
|
125
|
+
status: 201;
|
|
126
126
|
} | {
|
|
127
127
|
input: {
|
|
128
128
|
json: {
|
|
@@ -133,12 +133,12 @@ export declare const registerAccessTokenRoutes: <E extends OpenAPIHono<CrowiHono
|
|
|
133
133
|
};
|
|
134
134
|
output: {
|
|
135
135
|
error: {
|
|
136
|
-
code: "
|
|
137
|
-
message:
|
|
136
|
+
code: "FORBIDDEN";
|
|
137
|
+
message: string;
|
|
138
138
|
};
|
|
139
139
|
};
|
|
140
140
|
outputFormat: "json";
|
|
141
|
-
status:
|
|
141
|
+
status: 403;
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
144
|
} & {
|
|
@@ -150,15 +150,13 @@ export declare const registerAccessTokenRoutes: <E extends OpenAPIHono<CrowiHono
|
|
|
150
150
|
};
|
|
151
151
|
};
|
|
152
152
|
output: {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
lastUsedAt: string | null;
|
|
158
|
-
createdAt: string;
|
|
153
|
+
error: {
|
|
154
|
+
code: "INTERNAL_ERROR";
|
|
155
|
+
message: "Internal server error";
|
|
156
|
+
};
|
|
159
157
|
};
|
|
160
158
|
outputFormat: "json";
|
|
161
|
-
status:
|
|
159
|
+
status: 500;
|
|
162
160
|
} | {
|
|
163
161
|
input: {
|
|
164
162
|
param: {
|
|
@@ -167,13 +165,12 @@ export declare const registerAccessTokenRoutes: <E extends OpenAPIHono<CrowiHono
|
|
|
167
165
|
};
|
|
168
166
|
output: {
|
|
169
167
|
error: {
|
|
170
|
-
code: "
|
|
171
|
-
message:
|
|
172
|
-
redirectTo?: string | undefined;
|
|
168
|
+
code: "NOT_FOUND";
|
|
169
|
+
message: string;
|
|
173
170
|
};
|
|
174
171
|
};
|
|
175
172
|
outputFormat: "json";
|
|
176
|
-
status:
|
|
173
|
+
status: 404;
|
|
177
174
|
} | {
|
|
178
175
|
input: {
|
|
179
176
|
param: {
|
|
@@ -182,12 +179,13 @@ export declare const registerAccessTokenRoutes: <E extends OpenAPIHono<CrowiHono
|
|
|
182
179
|
};
|
|
183
180
|
output: {
|
|
184
181
|
error: {
|
|
185
|
-
code: "
|
|
186
|
-
message:
|
|
182
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
183
|
+
message: "Authentication is required";
|
|
184
|
+
redirectTo?: string | undefined;
|
|
187
185
|
};
|
|
188
186
|
};
|
|
189
187
|
outputFormat: "json";
|
|
190
|
-
status:
|
|
188
|
+
status: 401;
|
|
191
189
|
} | {
|
|
192
190
|
input: {
|
|
193
191
|
param: {
|
|
@@ -195,13 +193,15 @@ export declare const registerAccessTokenRoutes: <E extends OpenAPIHono<CrowiHono
|
|
|
195
193
|
};
|
|
196
194
|
};
|
|
197
195
|
output: {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
196
|
+
id: string;
|
|
197
|
+
name: string;
|
|
198
|
+
scopes: string[];
|
|
199
|
+
expiresAt: string | null;
|
|
200
|
+
lastUsedAt: string | null;
|
|
201
|
+
createdAt: string;
|
|
202
202
|
};
|
|
203
203
|
outputFormat: "json";
|
|
204
|
-
status:
|
|
204
|
+
status: 200;
|
|
205
205
|
} | {
|
|
206
206
|
input: {
|
|
207
207
|
param: {
|
|
@@ -210,12 +210,12 @@ export declare const registerAccessTokenRoutes: <E extends OpenAPIHono<CrowiHono
|
|
|
210
210
|
};
|
|
211
211
|
output: {
|
|
212
212
|
error: {
|
|
213
|
-
code: "
|
|
214
|
-
message:
|
|
213
|
+
code: "FORBIDDEN";
|
|
214
|
+
message: string;
|
|
215
215
|
};
|
|
216
216
|
};
|
|
217
217
|
outputFormat: "json";
|
|
218
|
-
status:
|
|
218
|
+
status: 403;
|
|
219
219
|
};
|
|
220
220
|
};
|
|
221
221
|
}, "/">;
|
|
@@ -10,10 +10,13 @@ export declare const registerActivationRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
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
|
query: {
|
|
@@ -22,7 +25,7 @@ export declare const registerActivationRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
22
25
|
};
|
|
23
26
|
output: {
|
|
24
27
|
error: {
|
|
25
|
-
code: "
|
|
28
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "INTERNAL_ERROR" | "AUTHENTICATION_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "ADMIN_REQUIRED" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED";
|
|
26
29
|
message: string;
|
|
27
30
|
details?: any;
|
|
28
31
|
};
|
|
@@ -36,13 +39,10 @@ export declare const registerActivationRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
36
39
|
};
|
|
37
40
|
};
|
|
38
41
|
output: {
|
|
39
|
-
|
|
40
|
-
code: "INTERNAL_ERROR";
|
|
41
|
-
message: "Internal server error";
|
|
42
|
-
};
|
|
42
|
+
ok: true;
|
|
43
43
|
};
|
|
44
44
|
outputFormat: "json";
|
|
45
|
-
status:
|
|
45
|
+
status: 200;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
} & {
|
|
@@ -54,20 +54,13 @@ export declare const registerActivationRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
output: {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
user: {
|
|
61
|
-
id: string;
|
|
62
|
-
username: string;
|
|
63
|
-
email: string;
|
|
64
|
-
name: string;
|
|
65
|
-
image?: string | undefined;
|
|
66
|
-
admin?: boolean | undefined;
|
|
57
|
+
error: {
|
|
58
|
+
code: "INTERNAL_ERROR";
|
|
59
|
+
message: "Internal server error";
|
|
67
60
|
};
|
|
68
61
|
};
|
|
69
62
|
outputFormat: "json";
|
|
70
|
-
status:
|
|
63
|
+
status: 500;
|
|
71
64
|
} | {
|
|
72
65
|
input: {
|
|
73
66
|
json: {
|
|
@@ -76,13 +69,13 @@ export declare const registerActivationRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
76
69
|
};
|
|
77
70
|
output: {
|
|
78
71
|
error: {
|
|
79
|
-
code: "
|
|
72
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "INTERNAL_ERROR" | "AUTHENTICATION_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "ADMIN_REQUIRED" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED";
|
|
80
73
|
message: string;
|
|
81
74
|
details?: any;
|
|
82
75
|
};
|
|
83
76
|
};
|
|
84
77
|
outputFormat: "json";
|
|
85
|
-
status:
|
|
78
|
+
status: 404;
|
|
86
79
|
} | {
|
|
87
80
|
input: {
|
|
88
81
|
json: {
|
|
@@ -91,13 +84,13 @@ export declare const registerActivationRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
91
84
|
};
|
|
92
85
|
output: {
|
|
93
86
|
error: {
|
|
94
|
-
code: "
|
|
87
|
+
code: "PAGE_NOT_FOUND" | "INVALID_PAGE_ID" | "INTERNAL_ERROR" | "AUTHENTICATION_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "ADMIN_REQUIRED" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "INVALID_GRANT" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED";
|
|
95
88
|
message: string;
|
|
96
89
|
details?: any;
|
|
97
90
|
};
|
|
98
91
|
};
|
|
99
92
|
outputFormat: "json";
|
|
100
|
-
status:
|
|
93
|
+
status: 401;
|
|
101
94
|
} | {
|
|
102
95
|
input: {
|
|
103
96
|
json: {
|
|
@@ -105,13 +98,20 @@ export declare const registerActivationRoutes: <E extends OpenAPIHono<CrowiHonoB
|
|
|
105
98
|
};
|
|
106
99
|
};
|
|
107
100
|
output: {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
101
|
+
accessToken: string;
|
|
102
|
+
refreshToken: string;
|
|
103
|
+
expiresIn: number;
|
|
104
|
+
user: {
|
|
105
|
+
id: string;
|
|
106
|
+
username: string;
|
|
107
|
+
email: string;
|
|
108
|
+
name: string;
|
|
109
|
+
image?: string | undefined;
|
|
110
|
+
admin?: boolean | undefined;
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
113
|
outputFormat: "json";
|
|
114
|
-
status:
|
|
114
|
+
status: 200;
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
117
|
}, "/">;
|
|
@@ -4,6 +4,17 @@ import type { CrowiHonoBindings } from '../../app';
|
|
|
4
4
|
export declare const registerAdminAppRoutes: <E extends OpenAPIHono<CrowiHonoBindings>>(app: E, crowi: Crowi) => OpenAPIHono<CrowiHonoBindings, {
|
|
5
5
|
"/admin/app": {
|
|
6
6
|
$get: {
|
|
7
|
+
input: {};
|
|
8
|
+
output: {
|
|
9
|
+
error: {
|
|
10
|
+
code: "AUTHENTICATION_REQUIRED";
|
|
11
|
+
message: "Authentication is required";
|
|
12
|
+
redirectTo?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
outputFormat: "json";
|
|
16
|
+
status: 401;
|
|
17
|
+
} | {
|
|
7
18
|
input: {};
|
|
8
19
|
output: {
|
|
9
20
|
app: {
|
|
@@ -18,17 +29,6 @@ export declare const registerAdminAppRoutes: <E extends OpenAPIHono<CrowiHonoBin
|
|
|
18
29
|
};
|
|
19
30
|
outputFormat: "json";
|
|
20
31
|
status: 200;
|
|
21
|
-
} | {
|
|
22
|
-
input: {};
|
|
23
|
-
output: {
|
|
24
|
-
error: {
|
|
25
|
-
code: "AUTHENTICATION_REQUIRED";
|
|
26
|
-
message: "Authentication is required";
|
|
27
|
-
redirectTo?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
outputFormat: "json";
|
|
31
|
-
status: 401;
|
|
32
32
|
} | {
|
|
33
33
|
input: {};
|
|
34
34
|
output: {
|
|
@@ -45,21 +45,6 @@ export declare const registerAdminAppRoutes: <E extends OpenAPIHono<CrowiHonoBin
|
|
|
45
45
|
} & {
|
|
46
46
|
"/admin/app": {
|
|
47
47
|
$put: {
|
|
48
|
-
input: {
|
|
49
|
-
json: {
|
|
50
|
-
app?: {
|
|
51
|
-
title?: string | undefined;
|
|
52
|
-
confidential?: string | undefined;
|
|
53
|
-
} | undefined;
|
|
54
|
-
setupChecklistDismissed?: boolean | undefined;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
output: {
|
|
58
|
-
ok: true;
|
|
59
|
-
};
|
|
60
|
-
outputFormat: "json";
|
|
61
|
-
status: 200;
|
|
62
|
-
} | {
|
|
63
48
|
input: {
|
|
64
49
|
json: {
|
|
65
50
|
app?: {
|
|
@@ -99,6 +84,21 @@ export declare const registerAdminAppRoutes: <E extends OpenAPIHono<CrowiHonoBin
|
|
|
99
84
|
};
|
|
100
85
|
outputFormat: "json";
|
|
101
86
|
status: 401;
|
|
87
|
+
} | {
|
|
88
|
+
input: {
|
|
89
|
+
json: {
|
|
90
|
+
app?: {
|
|
91
|
+
title?: string | undefined;
|
|
92
|
+
confidential?: string | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
setupChecklistDismissed?: boolean | undefined;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
output: {
|
|
98
|
+
ok: true;
|
|
99
|
+
};
|
|
100
|
+
outputFormat: "json";
|
|
101
|
+
status: 200;
|
|
102
102
|
} | {
|
|
103
103
|
input: {
|
|
104
104
|
json: {
|
|
@@ -6,11 +6,13 @@ export declare const registerAdminAuthRoutes: <E extends OpenAPIHono<CrowiHonoBi
|
|
|
6
6
|
$get: {
|
|
7
7
|
input: {};
|
|
8
8
|
output: {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
error: {
|
|
10
|
+
code: "INTERNAL_ERROR";
|
|
11
|
+
message: "Internal server error";
|
|
12
|
+
};
|
|
11
13
|
};
|
|
12
14
|
outputFormat: "json";
|
|
13
|
-
status:
|
|
15
|
+
status: 500;
|
|
14
16
|
} | {
|
|
15
17
|
input: {};
|
|
16
18
|
output: {
|
|
@@ -25,24 +27,22 @@ export declare const registerAdminAuthRoutes: <E extends OpenAPIHono<CrowiHonoBi
|
|
|
25
27
|
} | {
|
|
26
28
|
input: {};
|
|
27
29
|
output: {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
message: "Admin permission required";
|
|
31
|
-
redirectTo?: string | undefined;
|
|
32
|
-
};
|
|
30
|
+
requireThirdPartyAuth: boolean;
|
|
31
|
+
disablePasswordAuth: boolean;
|
|
33
32
|
};
|
|
34
33
|
outputFormat: "json";
|
|
35
|
-
status:
|
|
34
|
+
status: 200;
|
|
36
35
|
} | {
|
|
37
36
|
input: {};
|
|
38
37
|
output: {
|
|
39
38
|
error: {
|
|
40
|
-
code: "
|
|
41
|
-
message: "
|
|
39
|
+
code: "ADMIN_REQUIRED";
|
|
40
|
+
message: "Admin permission required";
|
|
41
|
+
redirectTo?: string | undefined;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
outputFormat: "json";
|
|
45
|
-
status:
|
|
45
|
+
status: 403;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
} & {
|
|
@@ -55,11 +55,13 @@ export declare const registerAdminAuthRoutes: <E extends OpenAPIHono<CrowiHonoBi
|
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
output: {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
error: {
|
|
59
|
+
code: "INTERNAL_ERROR";
|
|
60
|
+
message: "Internal server error";
|
|
61
|
+
};
|
|
60
62
|
};
|
|
61
63
|
outputFormat: "json";
|
|
62
|
-
status:
|
|
64
|
+
status: 500;
|
|
63
65
|
} | {
|
|
64
66
|
input: {
|
|
65
67
|
json: {
|
|
@@ -99,14 +101,11 @@ export declare const registerAdminAuthRoutes: <E extends OpenAPIHono<CrowiHonoBi
|
|
|
99
101
|
};
|
|
100
102
|
};
|
|
101
103
|
output: {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
message: "Admin permission required";
|
|
105
|
-
redirectTo?: string | undefined;
|
|
106
|
-
};
|
|
104
|
+
requireThirdPartyAuth: boolean;
|
|
105
|
+
disablePasswordAuth: boolean;
|
|
107
106
|
};
|
|
108
107
|
outputFormat: "json";
|
|
109
|
-
status:
|
|
108
|
+
status: 200;
|
|
110
109
|
} | {
|
|
111
110
|
input: {
|
|
112
111
|
json: {
|
|
@@ -116,12 +115,13 @@ export declare const registerAdminAuthRoutes: <E extends OpenAPIHono<CrowiHonoBi
|
|
|
116
115
|
};
|
|
117
116
|
output: {
|
|
118
117
|
error: {
|
|
119
|
-
code: "
|
|
120
|
-
message: "
|
|
118
|
+
code: "ADMIN_REQUIRED";
|
|
119
|
+
message: "Admin permission required";
|
|
120
|
+
redirectTo?: string | undefined;
|
|
121
121
|
};
|
|
122
122
|
};
|
|
123
123
|
outputFormat: "json";
|
|
124
|
-
status:
|
|
124
|
+
status: 403;
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
127
|
}, "/">;
|
|
@@ -4,15 +4,6 @@ import type { CrowiHonoBindings } from '../../app';
|
|
|
4
4
|
export declare const registerAdminMailRoutes: <E extends OpenAPIHono<CrowiHonoBindings>>(app: E, crowi: Crowi) => OpenAPIHono<CrowiHonoBindings, {
|
|
5
5
|
"/admin/mail": {
|
|
6
6
|
$get: {
|
|
7
|
-
input: {};
|
|
8
|
-
output: {
|
|
9
|
-
from: string;
|
|
10
|
-
activeDriver: string;
|
|
11
|
-
activePlugin: string;
|
|
12
|
-
};
|
|
13
|
-
outputFormat: "json";
|
|
14
|
-
status: 200;
|
|
15
|
-
} | {
|
|
16
7
|
input: {};
|
|
17
8
|
output: {
|
|
18
9
|
error: {
|
|
@@ -23,6 +14,15 @@ export declare const registerAdminMailRoutes: <E extends OpenAPIHono<CrowiHonoBi
|
|
|
23
14
|
};
|
|
24
15
|
outputFormat: "json";
|
|
25
16
|
status: 401;
|
|
17
|
+
} | {
|
|
18
|
+
input: {};
|
|
19
|
+
output: {
|
|
20
|
+
from: string;
|
|
21
|
+
activeDriver: string;
|
|
22
|
+
activePlugin: string;
|
|
23
|
+
};
|
|
24
|
+
outputFormat: "json";
|
|
25
|
+
status: 200;
|
|
26
26
|
} | {
|
|
27
27
|
input: {};
|
|
28
28
|
output: {
|
|
@@ -39,17 +39,6 @@ export declare const registerAdminMailRoutes: <E extends OpenAPIHono<CrowiHonoBi
|
|
|
39
39
|
} & {
|
|
40
40
|
"/admin/mail": {
|
|
41
41
|
$put: {
|
|
42
|
-
input: {
|
|
43
|
-
json: {
|
|
44
|
-
from?: string | undefined;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
output: {
|
|
48
|
-
ok: true;
|
|
49
|
-
};
|
|
50
|
-
outputFormat: "json";
|
|
51
|
-
status: 200;
|
|
52
|
-
} | {
|
|
53
42
|
input: {
|
|
54
43
|
json: {
|
|
55
44
|
from?: string | undefined;
|
|
@@ -81,6 +70,17 @@ export declare const registerAdminMailRoutes: <E extends OpenAPIHono<CrowiHonoBi
|
|
|
81
70
|
};
|
|
82
71
|
outputFormat: "json";
|
|
83
72
|
status: 401;
|
|
73
|
+
} | {
|
|
74
|
+
input: {
|
|
75
|
+
json: {
|
|
76
|
+
from?: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
output: {
|
|
80
|
+
ok: true;
|
|
81
|
+
};
|
|
82
|
+
outputFormat: "json";
|
|
83
|
+
status: 200;
|
|
84
84
|
} | {
|
|
85
85
|
input: {
|
|
86
86
|
json: {
|
|
@@ -101,16 +101,6 @@ export declare const registerAdminMailRoutes: <E extends OpenAPIHono<CrowiHonoBi
|
|
|
101
101
|
} & {
|
|
102
102
|
"/admin/mail/test": {
|
|
103
103
|
$post: {
|
|
104
|
-
input: {
|
|
105
|
-
json: Record<string, never> | undefined;
|
|
106
|
-
};
|
|
107
|
-
output: {
|
|
108
|
-
ok: true;
|
|
109
|
-
to: string;
|
|
110
|
-
};
|
|
111
|
-
outputFormat: "json";
|
|
112
|
-
status: 200;
|
|
113
|
-
} | {
|
|
114
104
|
input: {
|
|
115
105
|
json: Record<string, never> | undefined;
|
|
116
106
|
};
|
|
@@ -138,6 +128,16 @@ export declare const registerAdminMailRoutes: <E extends OpenAPIHono<CrowiHonoBi
|
|
|
138
128
|
};
|
|
139
129
|
outputFormat: "json";
|
|
140
130
|
status: 401;
|
|
131
|
+
} | {
|
|
132
|
+
input: {
|
|
133
|
+
json: Record<string, never> | undefined;
|
|
134
|
+
};
|
|
135
|
+
output: {
|
|
136
|
+
ok: true;
|
|
137
|
+
to: string;
|
|
138
|
+
};
|
|
139
|
+
outputFormat: "json";
|
|
140
|
+
status: 200;
|
|
141
141
|
} | {
|
|
142
142
|
input: {
|
|
143
143
|
json: Record<string, never> | undefined;
|