@ -6,7 +6,6 @@ import type {
ClientCreateType,
UpdateClientType,
} from './types';
import type { ID } from '#db/schema';
import { wgInterface, userConfig } from '#db/schema';
import { parseCidr } from 'cidr-tools';
@ -1,7 +1,6 @@
import type { DBType } from '#db/sqlite';
import { eq, sql } from 'drizzle-orm';
import { oneTimeLink } from './schema';
import type { ID } from '../../schema';
import CRC32 from 'crc-32';
function createPreparedStatement(db: DBType) {
import { user } from './schema';
return {
@ -6,6 +6,3 @@ export * from './repositories/interface/schema';
export * from './repositories/oneTimeLink/schema';
export * from './repositories/user/schema';
export * from './repositories/userConfig/schema';
// TODO: move to types
export type ID = number;
import fs from 'node:fs/promises';
import debug from 'debug';
import QRCode from 'qrcode';
import type { InterfaceType } from '#db/repositories/interface/types';
const WG_DEBUG = debug('WireGuard');
@ -1,5 +1,4 @@
import type { H3Event } from 'h3';
import type { UserType } from '#db/repositories/user/types';
export type WGSession = Partial<{
@ -2,6 +2,8 @@ import type { ZodSchema } from 'zod';
import z from 'zod';
import type { H3Event, EventHandlerRequest } from 'h3';
/**
* return the string as is
*