Refactor security functions

This commit is contained in:
gpt-engineer-app[bot]
2025-10-14 19:38:36 +00:00
parent 1554254c82
commit 95972a0b22
9 changed files with 638 additions and 89 deletions

View File

@@ -3043,10 +3043,10 @@ export type Database = {
get_my_sessions: {
Args: Record<PropertyKey, never>
Returns: {
aal: "aal1" | "aal2" | "aal3"
aal: string
created_at: string
id: string
ip: unknown
ip: string
not_after: string
refreshed_at: string
updated_at: string
@@ -3084,6 +3084,10 @@ export type Database = {
Args: { ip_text: string }
Returns: string
}
hash_session_ip: {
Args: { session_ip: unknown }
Returns: string
}
increment_blog_view_count: {
Args: { post_slug: string }
Returns: undefined
@@ -3125,6 +3129,10 @@ export type Database = {
Args: { session_id: string }
Returns: undefined
}
revoke_session_with_mfa: {
Args: { target_session_id: string; target_user_id: string }
Returns: Json
}
rollback_to_version: {
Args: {
p_changed_by: string