/** * Catapult REST Endpoints * OpenAPI Specification of catapult-rest * * The version of the OpenAPI document: 1.0.5 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { NetworkTypeEnum } from './NetworkTypeEnum'; /** * Identity and configuration of the connected node: version, public key, network * generation hash, roles (peer/api/voting), host, port, and friendly name. * * @export * @interface NodeInfoDTO */ export interface NodeInfoDTO { /** * Version of the application. * @type {number} * @memberof NodeInfoDTO */ version: number; /** * 256-bit public key encoded as a hexadecimal string (64 hex characters). * @type {string} * @memberof NodeInfoDTO */ publicKey: string; /** * 256-bit hash encoded as a 64-character hexadecimal string. * @type {string} * @memberof NodeInfoDTO */ networkGenerationHashSeed: string; /** * Bitmask of roles the node provides. * Individual flags: * - `0`: No roles. * - `1`: Peer node. * - `2`: API node. * - `4`: Voting node. * - `64`: IPv4 compatible node. * - `128`: IPv6 compatible node. * * Flags are combined with bitwise OR. Examples: * - `1` = Peer only. * - `2` = API only. * - `3` = Peer and API. * - `7` = Peer, API and Voting. * - `65` = IPv4 and Peer. * * @type {number} * @memberof NodeInfoDTO */ roles: number; /** * Port used for the communication. * @type {number} * @memberof NodeInfoDTO */ port: number; /** * * @type {NetworkTypeEnum} * @memberof NodeInfoDTO */ networkIdentifier: NetworkTypeEnum; /** * Node friendly name. * @type {string} * @memberof NodeInfoDTO */ friendlyName: string; /** * Node IP address. * @type {string} * @memberof NodeInfoDTO */ host: string; /** * 256-bit public key encoded as a hexadecimal string (64 hex characters). * @type {string} * @memberof NodeInfoDTO */ nodePublicKey?: string; } /** * Check if a given object implements the NodeInfoDTO interface. */ export declare function instanceOfNodeInfoDTO(value: Record): value is NodeInfoDTO; export declare function NodeInfoDTOFromJSON(json: any): NodeInfoDTO; export declare function NodeInfoDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeInfoDTO; export declare function NodeInfoDTOToJSON(json: any): NodeInfoDTO; export declare function NodeInfoDTOToJSONTyped(value?: NodeInfoDTO | null, ignoreDiscriminator?: boolean): any;