mirror of
https://github.com/idanoo/autobrr
synced 2025-07-26 02:09:13 +00:00
feat(irc): support optional SASL and NickServ auth (#511)
* feat(irc): support SASL and NickServ auth * feat(irc): add missing fields * feat(irc): support SASL and NickServ auth * feat(irc): add missing fields * feat(irc): add validation * feat(indexers): unify and set required values * feat(irc): add postgres migrations * feat(irc): use nick as handlerkey * feat(irc): use account for nickserv * fix(irc): pg db migration
This commit is contained in:
parent
4ef0408f33
commit
4bf023d030
65 changed files with 1404 additions and 631 deletions
14
web/src/types/Irc.d.ts
vendored
14
web/src/types/Irc.d.ts
vendored
|
@ -5,9 +5,10 @@ interface IrcNetwork {
|
|||
server: string;
|
||||
port: number;
|
||||
tls: boolean;
|
||||
nick: string;
|
||||
pass: string;
|
||||
auth: IrcAuth; // optional
|
||||
invite_command: string;
|
||||
nickserv?: NickServ; // optional
|
||||
channels: IrcChannel[];
|
||||
connected: boolean;
|
||||
connected_since: string;
|
||||
|
@ -20,8 +21,9 @@ interface IrcNetworkCreate {
|
|||
port: number;
|
||||
tls: boolean;
|
||||
pass: string;
|
||||
nick: string;
|
||||
auth: IrcAuth; // optional
|
||||
invite_command: string;
|
||||
nickserv?: NickServ; // optional
|
||||
channels: IrcChannel[];
|
||||
connected: boolean;
|
||||
}
|
||||
|
@ -48,8 +50,9 @@ interface IrcNetworkWithHealth {
|
|||
port: number;
|
||||
tls: boolean;
|
||||
pass: string;
|
||||
nick: string;
|
||||
auth: IrcAuth; // optional
|
||||
invite_command: string;
|
||||
nickserv?: NickServ; // optional
|
||||
channels: IrcChannelWithHealth[];
|
||||
connected: boolean;
|
||||
connected_since: string;
|
||||
|
@ -57,7 +60,10 @@ interface IrcNetworkWithHealth {
|
|||
healthy: boolean;
|
||||
}
|
||||
|
||||
interface NickServ {
|
||||
type IrcAuthMechanism = "NONE" | "SASL_PLAIN" | "NICKSERV";
|
||||
|
||||
interface IrcAuth {
|
||||
mechanism: IrcAuthMechanism; // optional
|
||||
account?: string; // optional
|
||||
password?: string; // optional
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue