bluelinky2
Version:
An unofficial nodejs API wrapper for Hyundai bluelink
50 lines (49 loc) • 1.22 kB
TypeScript
import BlueLinky from '../index';
export interface HyundaiResponse {
status: string;
result: any;
errorMessage: string;
}
export interface TokenResponse {
access_token: string;
refresh_token: string;
expires_in: string;
username: string;
}
export interface VehicleConfig {
vin: string | null;
pin: string | null;
token: string | null;
bluelinky: BlueLinky;
}
export interface AmericanEndpoints {
getToken: string;
validateToken: string;
auth: string;
remoteAction: string;
usageStats: string;
health: string;
messageCenter: string;
myAccount: string;
status: string;
enrollmentStatus: string;
subscriptions: string;
}
export interface RequestHeaders {
'access_token': string | undefined;
'client_id': string;
'Host': string;
'User-Agent': string;
'registrationId': string;
'gen': string;
'username': string | undefined;
'vin': string;
'APPCLOUD-VIN': string;
'Language': string;
'to': string;
'encryptFlag': string;
'from': string;
'brandIndicator': string;
'bluelinkservicepin': string | undefined;
'offset': string;
}