@del-internet/sdk-radius
Version:
TypeScript package to interacts with radius service
45 lines (44 loc) • 1.1 kB
TypeScript
export type Debugger = (...args: unknown[]) => void;
export interface Connection {
endpoint: string;
client: string;
secret: string;
debug: boolean;
headers: {
client: string;
secret: string;
};
}
export type Profile = 'public' | 'private';
export interface ProfilePayload {
type: Profile;
speed_up: number;
speed_down: number;
}
export interface CreatePayload extends ProfilePayload {
username: string;
password: string;
}
export interface UpdatePayload extends ProfilePayload {
password?: string;
}
export interface User {
id: number;
username: string;
password: string;
groupname: string;
static_ip: string | null;
ipv6_prefix: string | null;
First_connection: string | null;
ClientSRC: string | null;
ClientWAN: string | null;
AcctSessionID: string | null;
RadiusServer: string | null;
Last_up: string | null;
Last_down: string | null;
Active_connections: number;
speed_up: number | null;
speed_down: number | null;
error: number | null;
type: string | null;
}