Fix security vulnerabilities

This commit is contained in:
gpt-engineer-app[bot]
2025-10-04 01:11:43 +00:00
parent b221c75d4a
commit 756d6a5300
5 changed files with 366 additions and 16 deletions

View File

@@ -2038,6 +2038,7 @@ export type Database = {
expires_at: string
id: string
ip_address: unknown | null
ip_address_hash: string | null
last_activity: string
session_token: string
user_agent: string | null
@@ -2049,6 +2050,7 @@ export type Database = {
expires_at?: string
id?: string
ip_address?: unknown | null
ip_address_hash?: string | null
last_activity?: string
session_token: string
user_agent?: string | null
@@ -2060,6 +2062,7 @@ export type Database = {
expires_at?: string
id?: string
ip_address?: unknown | null
ip_address_hash?: string | null
last_activity?: string
session_token?: string
user_agent?: string | null
@@ -2174,6 +2177,10 @@ export type Database = {
Args: Record<PropertyKey, never>
Returns: boolean
}
cleanup_expired_sessions: {
Args: Record<PropertyKey, never>
Returns: undefined
}
extract_cf_image_id: {
Args: { url: string }
Returns: string
@@ -2205,6 +2212,10 @@ export type Database = {
}
Returns: boolean
}
hash_ip_address: {
Args: { ip_text: string }
Returns: string
}
is_moderator: {
Args: { _user_id: string }
Returns: boolean