knxultimate
Version:
KNX IP protocol implementation for Node. This is the ENGINE of Node-Red KNX-Ultimate node.
74 lines (73 loc) • 2.15 kB
TypeScript
export declare class IndividualAddress {
raw: number;
constructor(address: string | number);
toString(): string;
}
export declare class GroupAddress {
raw: number;
constructor(address: string | number);
toString(): string;
}
export interface Interface {
type: string;
individualAddress: IndividualAddress;
host?: IndividualAddress;
userId?: number;
password?: string;
authentication?: string;
decryptedPassword?: string;
decryptedAuthentication?: string;
groupAddresses: Map<string, IndividualAddress[]>;
}
export interface Backbone {
key?: string;
decryptedKey?: Buffer;
latency?: number;
multicastAddress?: string;
}
export interface GroupAddressKey {
address: GroupAddress;
key: string;
decryptedKey?: Buffer;
}
export interface Device {
individualAddress: IndividualAddress;
toolKey?: string;
decryptedToolKey?: Buffer;
managementPassword?: string;
decryptedManagementPassword?: string;
authentication?: string;
decryptedAuthentication?: string;
sequenceNumber?: number;
serialNumber?: string;
}
export declare class Keyring {
private interfaces;
private backbones;
private groupAddresses;
private devices;
private passwordHash?;
private createdBy?;
private created?;
private iv?;
load(source: string, password: string): Promise<void>;
loadFromString(content: string, password: string): Promise<void>;
getCreatedBy(): string | undefined;
getCreated(): string | undefined;
private hashKeyringPassword;
private decryptAes128Cbc;
private extractPassword;
private unzipKnxKeys;
private parseKeyring;
private parseInterface;
private parseBackbone;
private parseGroupAddress;
private parseDevice;
getInterfaces(): Map<string, Interface>;
getInterface(address: string): Interface | undefined;
getBackbones(): Backbone[];
getGroupAddresses(): Map<string, GroupAddressKey>;
getGroupAddress(address: string): GroupAddressKey | undefined;
getDevices(): Map<string, Device>;
getDevice(address: string): Device | undefined;
}