UNPKG

tesla-fleet-api

Version:

A library for the [Tesla Fleet API](https://developer.tesla.com/docs/fleet-api), and the third parties services [Teslemetry](https://teslemetry.com/docs/getting-started/api) and [Tessie](https://developer.tessie.com/docs/tesla-api-comparison), which provi

17 lines (16 loc) 778 B
import TeslaFleetApi from "./teslafleetapi.js"; import { CommandResponse } from "./types/commands.js"; export default class User { parent: TeslaFleetApi; constructor(parent: TeslaFleetApi); /** Returns the public key associated with the user. */ backup_key(): Promise<CommandResponse>; /** Returns any custom feature flag applied to a user. */ feature_config(): Promise<CommandResponse>; /** Returns a summary of a user's account. */ me(): Promise<CommandResponse>; /** Returns the active orders for a user. */ orders(): Promise<CommandResponse>; /** Returns a user's region and appropriate fleet-api base URL. Accepts no parameters, response is based on the authentication token subject. */ region(): Promise<CommandResponse>; }