@bbki.ng/backend 0.3.0 → 0.3.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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -4,11 +4,11 @@ import { HTTPException } from "hono/http-exception";
|
|
|
4
4
|
interface AddStreamingRequest {
|
|
5
5
|
author?: string;
|
|
6
6
|
content: string;
|
|
7
|
-
type?: 'note' | 'article' | 'link' | 'image';
|
|
7
|
+
type?: 'note' | 'article' | 'link' | 'image' | 'ci';
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
const MAX_CONTENT_LENGTH = 50000;
|
|
11
|
-
const ALLOWED_TYPES = ['note', 'article', 'link', 'image'] as const;
|
|
11
|
+
const ALLOWED_TYPES = ['note', 'article', 'link', 'image', 'ci'] as const;
|
|
12
12
|
|
|
13
13
|
const timingSafeEqual = (a: string, b: string): boolean => {
|
|
14
14
|
if (a.length !== b.length) return false;
|