import { DeviceCertFormat, DeviceSignedPayload, DeviceType, EcuId, EncryptedMessage } from "./device.mjs"; import { ErrorResponse } from "./error.mjs"; import { Duration } from "./google/protobuf/duration.mjs"; import { CellularEID, CellularProfileType, NetworkInterface, NetworkInterfaceIPv4Config, WifiConfig, WifiConfigureResult, WifiNetwork, WifiNetworkSecurityType } from "./networking.mjs"; import { AcceptedPackage, FirmwareVersion, LocallyAvailablePackage, SystemUpdate } from "./update.mjs"; import { AssetSiteUuidOfDeviceResponse, RegistrationFailure, RegistrationRequest, RegistrationResponse, SiteSuggestionRequest, SiteSuggestionResponse } from "./registration_api.mjs"; import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; //#region src/energy_device/common_api.d.ts declare const protobufPackage = "tesla.proto.energy_device.v1"; interface CommonAPIGetSystemInfoRequest {} interface RadioLegalInformation { manufacturer: string | undefined; model: string | undefined; fccId: string | undefined; icId: string | undefined; } interface ComplianceInformation { radioLegalInformation: RadioLegalInformation[]; } interface CommonAPIGetSystemInfoResponse { deviceId: EcuId | undefined; din: string; firmwareVersion: FirmwareVersion | undefined; systemUpdate: SystemUpdate | undefined; deviceType: DeviceType; complianceInformation: ComplianceInformation | undefined; installedFirmwareSignature: Uint8Array; offlineFirmwareSignature: Uint8Array; } interface CommonAPISetLocalSiteConfigRequest {} interface CommonAPISetLocalSiteConfigResponse {} interface CommonAPIPerformUpdateRequest {} interface CommonAPIPerformUpdateResponse {} interface CommonAPIFactoryResetRequest {} interface CommonAPIFactoryResetResponse {} interface CommonAPIWifiScanRequest { maxScanDurationS: number; desiredSecurityTypes: WifiNetworkSecurityType[]; maximumTotalAps: number; } interface CommonAPIWifiScanResponse { wifiNetworks: WifiNetwork[]; } interface CommonAPIConfigureWifiRequest { enabled: boolean; wifiConfig: WifiConfig | undefined; } interface CommonAPIConfigureWifiResponse { wifiConfig: WifiConfig | undefined; wifi: NetworkInterface | undefined; } interface CommonAPIConfigureWifiWithEncryptedPasswordRequest { enabled: boolean; wifiConfig: WifiConfig | undefined; encryptedPassword: EncryptedMessage | undefined; } interface CommonAPIConfigureWifiWithEncryptedPasswordResponse { wifiConfig: WifiConfig | undefined; wifi: NetworkInterface | undefined; result: WifiConfigureResult; } interface CommonAPICheckForUpdateRequest { downloadIfAvailable: boolean; } interface CommonAPICheckForUpdateResponse {} interface CommonAPICheckForUpdateUrgencyRequest {} interface CommonAPICheckForUpdateUrgencyResponse {} interface CommonAPIClearUpdateRequest {} interface CommonAPIClearUpdateResponse {} interface CommonAPIDeviceCertRequest {} interface CommonAPIDeviceCertResponse { format: DeviceCertFormat; deviceCert: Uint8Array; } interface CommonAPIGetNetworkingStatusRequest {} interface CommonAPIGetNetworkingStatusResponse { wifiConfig: WifiConfig | undefined; wifi: NetworkInterface | undefined; eth: NetworkInterface | undefined; gsm: NetworkInterface | undefined; } interface CommonAPIGetCellularInfoRequest {} interface CommonAPIGetCellularInfoResponse { eid: CellularEID | undefined; supportedProfiles: CellularProfileType[]; } interface CommonAPIConfigureEthernetRequest { ipv4Config: NetworkInterfaceIPv4Config | undefined; } interface CommonAPIConfigureEthernetResponse { eth: NetworkInterface | undefined; } interface CommonAPIForgetWifiNetworkRequest { ssid: string; } interface CommonAPIForgetWifiNetworkResponse {} interface CommonAPICheckInternetRequest {} interface CommonAPICheckInternetResponse { wifi: NetworkInterface | undefined; eth: NetworkInterface | undefined; gsm: NetworkInterface | undefined; } interface CommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest { locallyAvailablePackages: LocallyAvailablePackage[]; } interface CommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse { acceptedPackages: AcceptedPackage[]; } interface CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest { locallyAvailablePackages: LocallyAvailablePackage[]; } interface CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse { acceptedPackages: AcceptedPackage[]; } interface CommonAPIPrepareRegistrationPayloadRequest { customerRegistrationInfo: Uint8Array; } interface CommonAPIPrepareRegistrationPayloadResponse { signedRegistrationPayload: DeviceSignedPayload | undefined; } interface TcpdumpInfo { path: string; pid: number; interface: string; expression: string; duration: Duration | undefined; maxDuration: Duration | undefined; size: number; maxSize: number; } interface CommonAPIStartTcpdumpRequest { name: string; interface: string; expression: string; maxDuration: Duration | undefined; maxSize: number; } interface CommonAPIStartTcpdumpResponse {} interface CommonAPIStopTcpdumpRequest { name: string; remove: boolean; } interface CommonAPIStopTcpdumpResponse {} interface CommonAPIGetTcpdumpInfoRequest {} interface CommonAPIGetTcpdumpInfoResponse { list: TcpdumpInfo[]; diskQuota: number; } interface CommonAPIRegisterRequest { request: RegistrationRequest | undefined; } interface CommonAPIRegisterResponse { failure: RegistrationFailure; response: RegistrationResponse | undefined; } interface CommonAPIRetrieveSiteUuidRequest {} interface CommonAPIRetrieveSiteUuidResponse { response: AssetSiteUuidOfDeviceResponse | undefined; } interface CommonAPIRetrieveSiteSuggestionRequest { request: SiteSuggestionRequest | undefined; } interface CommonAPIRetrieveSiteSuggestionResponse { response: SiteSuggestionResponse | undefined; } interface CommonMessages { errorResponse?: ErrorResponse | undefined; getSystemInfoRequest?: CommonAPIGetSystemInfoRequest | undefined; getSystemInfoResponse?: CommonAPIGetSystemInfoResponse | undefined; setLocalSiteConfigRequest?: CommonAPISetLocalSiteConfigRequest | undefined; setLocalSiteConfigResponse?: CommonAPISetLocalSiteConfigResponse | undefined; performUpdateRequest?: CommonAPIPerformUpdateRequest | undefined; performUpdateResponse?: CommonAPIPerformUpdateResponse | undefined; factoryResetRequest?: CommonAPIFactoryResetRequest | undefined; factoryResetResponse?: CommonAPIFactoryResetResponse | undefined; wifiScanRequest?: CommonAPIWifiScanRequest | undefined; wifiScanResponse?: CommonAPIWifiScanResponse | undefined; configureWifiRequest?: CommonAPIConfigureWifiRequest | undefined; configureWifiResponse?: CommonAPIConfigureWifiResponse | undefined; checkForUpdateRequest?: CommonAPICheckForUpdateRequest | undefined; checkForUpdateResponse?: CommonAPICheckForUpdateResponse | undefined; clearUpdateRequest?: CommonAPIClearUpdateRequest | undefined; clearUpdateResponse?: CommonAPIClearUpdateResponse | undefined; deviceCertRequest?: CommonAPIDeviceCertRequest | undefined; deviceCertResponse?: CommonAPIDeviceCertResponse | undefined; configureWifiWithEncryptedPasswordRequest?: CommonAPIConfigureWifiWithEncryptedPasswordRequest | undefined; configureWifiWithEncryptedPasswordResponse?: CommonAPIConfigureWifiWithEncryptedPasswordResponse | undefined; getNetworkingStatusRequest?: CommonAPIGetNetworkingStatusRequest | undefined; getNetworkingStatusResponse?: CommonAPIGetNetworkingStatusResponse | undefined; getCellularInfoRequest?: CommonAPIGetCellularInfoRequest | undefined; getCellularInfoResponse?: CommonAPIGetCellularInfoResponse | undefined; configureEthernetRequest?: CommonAPIConfigureEthernetRequest | undefined; configureEthernetResponse?: CommonAPIConfigureEthernetResponse | undefined; forgetWifiNetworkRequest?: CommonAPIForgetWifiNetworkRequest | undefined; forgetWifiNetworkResponse?: CommonAPIForgetWifiNetworkResponse | undefined; checkInternetRequest?: CommonAPICheckInternetRequest | undefined; checkInternetResponse?: CommonAPICheckInternetResponse | undefined; checkForUpdateUrgencyRequest?: CommonAPICheckForUpdateUrgencyRequest | undefined; checkForUpdateUrgencyResponse?: CommonAPICheckForUpdateUrgencyResponse | undefined; negotiateUpdateWithLocallyAvailablePackagesRequest?: CommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest | undefined; negotiateUpdateWithLocallyAvailablePackagesResponse?: CommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse | undefined; prepareRegistrationPayloadRequest?: CommonAPIPrepareRegistrationPayloadRequest | undefined; prepareRegistrationPayloadResponse?: CommonAPIPrepareRegistrationPayloadResponse | undefined; performUpdateFromLocallyAvailablePackagesRequest?: CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest | undefined; performUpdateFromLocallyAvailablePackagesResponse?: CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse | undefined; registerRequest?: CommonAPIRegisterRequest | undefined; registerResponse?: CommonAPIRegisterResponse | undefined; retrieveSiteUuidRequest?: CommonAPIRetrieveSiteUuidRequest | undefined; retrieveSiteUuidResponse?: CommonAPIRetrieveSiteUuidResponse | undefined; retrieveSiteSuggestionRequest?: CommonAPIRetrieveSiteSuggestionRequest | undefined; retrieveSiteSuggestionResponse?: CommonAPIRetrieveSiteSuggestionResponse | undefined; startTcpdumpRequest?: CommonAPIStartTcpdumpRequest | undefined; startTcpdumpResponse?: CommonAPIStartTcpdumpResponse | undefined; stopTcpdumpRequest?: CommonAPIStopTcpdumpRequest | undefined; stopTcpdumpResponse?: CommonAPIStopTcpdumpResponse | undefined; getTcpdumpInfoRequest?: CommonAPIGetTcpdumpInfoRequest | undefined; getTcpdumpInfoResponse?: CommonAPIGetTcpdumpInfoResponse | undefined; } declare const CommonAPIGetSystemInfoRequest: MessageFns; declare const RadioLegalInformation: MessageFns; declare const ComplianceInformation: MessageFns; declare const CommonAPIGetSystemInfoResponse: MessageFns; declare const CommonAPISetLocalSiteConfigRequest: MessageFns; declare const CommonAPISetLocalSiteConfigResponse: MessageFns; declare const CommonAPIPerformUpdateRequest: MessageFns; declare const CommonAPIPerformUpdateResponse: MessageFns; declare const CommonAPIFactoryResetRequest: MessageFns; declare const CommonAPIFactoryResetResponse: MessageFns; declare const CommonAPIWifiScanRequest: MessageFns; declare const CommonAPIWifiScanResponse: MessageFns; declare const CommonAPIConfigureWifiRequest: MessageFns; declare const CommonAPIConfigureWifiResponse: MessageFns; declare const CommonAPIConfigureWifiWithEncryptedPasswordRequest: MessageFns; declare const CommonAPIConfigureWifiWithEncryptedPasswordResponse: MessageFns; declare const CommonAPICheckForUpdateRequest: MessageFns; declare const CommonAPICheckForUpdateResponse: MessageFns; declare const CommonAPICheckForUpdateUrgencyRequest: MessageFns; declare const CommonAPICheckForUpdateUrgencyResponse: MessageFns; declare const CommonAPIClearUpdateRequest: MessageFns; declare const CommonAPIClearUpdateResponse: MessageFns; declare const CommonAPIDeviceCertRequest: MessageFns; declare const CommonAPIDeviceCertResponse: MessageFns; declare const CommonAPIGetNetworkingStatusRequest: MessageFns; declare const CommonAPIGetNetworkingStatusResponse: MessageFns; declare const CommonAPIGetCellularInfoRequest: MessageFns; declare const CommonAPIGetCellularInfoResponse: MessageFns; declare const CommonAPIConfigureEthernetRequest: MessageFns; declare const CommonAPIConfigureEthernetResponse: MessageFns; declare const CommonAPIForgetWifiNetworkRequest: MessageFns; declare const CommonAPIForgetWifiNetworkResponse: MessageFns; declare const CommonAPICheckInternetRequest: MessageFns; declare const CommonAPICheckInternetResponse: MessageFns; declare const CommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest: MessageFns; declare const CommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse: MessageFns; declare const CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest: MessageFns; declare const CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse: MessageFns; declare const CommonAPIPrepareRegistrationPayloadRequest: MessageFns; declare const CommonAPIPrepareRegistrationPayloadResponse: MessageFns; declare const TcpdumpInfo: MessageFns; declare const CommonAPIStartTcpdumpRequest: MessageFns; declare const CommonAPIStartTcpdumpResponse: MessageFns; declare const CommonAPIStopTcpdumpRequest: MessageFns; declare const CommonAPIStopTcpdumpResponse: MessageFns; declare const CommonAPIGetTcpdumpInfoRequest: MessageFns; declare const CommonAPIGetTcpdumpInfoResponse: MessageFns; declare const CommonAPIRegisterRequest: MessageFns; declare const CommonAPIRegisterResponse: MessageFns; declare const CommonAPIRetrieveSiteUuidRequest: MessageFns; declare const CommonAPIRetrieveSiteUuidResponse: MessageFns; declare const CommonAPIRetrieveSiteSuggestionRequest: MessageFns; declare const CommonAPIRetrieveSiteSuggestionResponse: MessageFns; declare const CommonMessages: MessageFns; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; type DeepPartial = T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude>]: never; }; interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; toJSON(message: T): unknown; create, I>>(base?: I): T; fromPartial, I>>(object: I): T; } //#endregion export { CommonAPICheckForUpdateRequest, CommonAPICheckForUpdateResponse, CommonAPICheckForUpdateUrgencyRequest, CommonAPICheckForUpdateUrgencyResponse, CommonAPICheckInternetRequest, CommonAPICheckInternetResponse, CommonAPIClearUpdateRequest, CommonAPIClearUpdateResponse, CommonAPIConfigureEthernetRequest, CommonAPIConfigureEthernetResponse, CommonAPIConfigureWifiRequest, CommonAPIConfigureWifiResponse, CommonAPIConfigureWifiWithEncryptedPasswordRequest, CommonAPIConfigureWifiWithEncryptedPasswordResponse, CommonAPIDeviceCertRequest, CommonAPIDeviceCertResponse, CommonAPIFactoryResetRequest, CommonAPIFactoryResetResponse, CommonAPIForgetWifiNetworkRequest, CommonAPIForgetWifiNetworkResponse, CommonAPIGetCellularInfoRequest, CommonAPIGetCellularInfoResponse, CommonAPIGetNetworkingStatusRequest, CommonAPIGetNetworkingStatusResponse, CommonAPIGetSystemInfoRequest, CommonAPIGetSystemInfoResponse, CommonAPIGetTcpdumpInfoRequest, CommonAPIGetTcpdumpInfoResponse, CommonAPINegotiateUpdateWithLocallyAvailablePackagesRequest, CommonAPINegotiateUpdateWithLocallyAvailablePackagesResponse, CommonAPIPerformUpdateFromLocallyAvailablePackagesRequest, CommonAPIPerformUpdateFromLocallyAvailablePackagesResponse, CommonAPIPerformUpdateRequest, CommonAPIPerformUpdateResponse, CommonAPIPrepareRegistrationPayloadRequest, CommonAPIPrepareRegistrationPayloadResponse, CommonAPIRegisterRequest, CommonAPIRegisterResponse, CommonAPIRetrieveSiteSuggestionRequest, CommonAPIRetrieveSiteSuggestionResponse, CommonAPIRetrieveSiteUuidRequest, CommonAPIRetrieveSiteUuidResponse, CommonAPISetLocalSiteConfigRequest, CommonAPISetLocalSiteConfigResponse, CommonAPIStartTcpdumpRequest, CommonAPIStartTcpdumpResponse, CommonAPIStopTcpdumpRequest, CommonAPIStopTcpdumpResponse, CommonAPIWifiScanRequest, CommonAPIWifiScanResponse, CommonMessages, ComplianceInformation, DeepPartial, Exact, MessageFns, RadioLegalInformation, TcpdumpInfo, protobufPackage };