Bluesky app fork with some witchin' additions 馃挮
at post-text-option 37 lines 781 B view raw
1import {type ToolsOzoneSafelinkDefs} from '@atproto/api' 2import {type Selectable} from 'kysely' 3 4export type DbSchema = { 5 link: Link 6 safelink_rule: SafelinkRule 7 safelink_cursor: SafelinkCursor 8} 9 10export interface Link { 11 id: string 12 type: LinkType 13 path: string 14} 15 16export enum LinkType { 17 StarterPack = 1, 18} 19 20export interface SafelinkRule { 21 id: number 22 eventType: ToolsOzoneSafelinkDefs.EventType 23 url: string 24 pattern: ToolsOzoneSafelinkDefs.PatternType 25 action: ToolsOzoneSafelinkDefs.ActionType 26 createdAt: string 27} 28 29export interface SafelinkCursor { 30 id: number 31 cursor: string 32 updatedAt: Date 33} 34 35export type LinkEntry = Selectable<Link> 36export type SafelinkRuleEntry = Selectable<SafelinkRule> 37export type SafelinkCursorEntry = Selectable<SafelinkCursor>