import { AuthorizationRecord, AuthorizationRole, AuthorizedClientType, AuthorizedKeyType } from "./authorization_types.mjs"; import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; //#region src/energy_device/authorization_api.d.ts declare const protobufPackage = "tesla.proto.energy_device.v1"; interface AuthorizationAPIAddAuthorizedClientRequest { type: AuthorizedClientType; description: string; keyType: AuthorizedKeyType; publicKey: Uint8Array; } interface AuthorizationAPIAddAuthorizedClientResponse { client: AuthorizationRecord | undefined; } interface AuthorizationAPIAddAuthorizedClientByTrustedSignatureRequest { type: AuthorizedClientType; description: string; keyType: AuthorizedKeyType; publicKey: Uint8Array; roles: AuthorizationRole[]; identifier: string; } interface AuthorizationAPIAddAuthorizedClientByTrustedSignatureResponse { client: AuthorizationRecord | undefined; } interface AuthorizationAPIRemoveAuthorizedClientRequest { publicKey: Uint8Array; } interface AuthorizationAPIRemoveAuthorizedClientResponse {} interface AuthorizationAPIListAuthorizedClientsRequest {} interface AuthorizationAPIListAuthorizedClientsResponse { clients: AuthorizationRecord[]; enableLineSwitchOff: boolean; } interface AuthorizationAPIGetSignedCommandsPublicKeyRequest {} interface AuthorizationAPIGetSignedCommandsPublicKeyResponse { pubKeyEcc: Uint8Array; } interface AuthorizationAPIConfigureRemoteServiceRequest { durationSeconds: number; sessionId: string; requesterEmail: string; } interface AuthorizationAPIConfigureRemoteServiceResponse { beginTime: Date | undefined; expiryTime: Date | undefined; } interface AuthorizationMessages { addAuthorizedClientRequest?: AuthorizationAPIAddAuthorizedClientRequest | undefined; addAuthorizedClientResponse?: AuthorizationAPIAddAuthorizedClientResponse | undefined; removeAuthorizedClientRequest?: AuthorizationAPIRemoveAuthorizedClientRequest | undefined; removeAuthorizedClientResponse?: AuthorizationAPIRemoveAuthorizedClientResponse | undefined; listAuthorizedClientsRequest?: AuthorizationAPIListAuthorizedClientsRequest | undefined; listAuthorizedClientsResponse?: AuthorizationAPIListAuthorizedClientsResponse | undefined; getSignedCommandsPublicKeyRequest?: AuthorizationAPIGetSignedCommandsPublicKeyRequest | undefined; getSignedCommandsPublicKeyResponse?: AuthorizationAPIGetSignedCommandsPublicKeyResponse | undefined; addAuthorizedClientByTrustedSignatureRequest?: AuthorizationAPIAddAuthorizedClientByTrustedSignatureRequest | undefined; addAuthorizedClientByTrustedSignatureResponse?: AuthorizationAPIAddAuthorizedClientByTrustedSignatureResponse | undefined; configureRemoteServiceRequest?: AuthorizationAPIConfigureRemoteServiceRequest | undefined; configureRemoteServiceResponse?: AuthorizationAPIConfigureRemoteServiceResponse | undefined; } declare const AuthorizationAPIAddAuthorizedClientRequest: MessageFns; declare const AuthorizationAPIAddAuthorizedClientResponse: MessageFns; declare const AuthorizationAPIAddAuthorizedClientByTrustedSignatureRequest: MessageFns; declare const AuthorizationAPIAddAuthorizedClientByTrustedSignatureResponse: MessageFns; declare const AuthorizationAPIRemoveAuthorizedClientRequest: MessageFns; declare const AuthorizationAPIRemoveAuthorizedClientResponse: MessageFns; declare const AuthorizationAPIListAuthorizedClientsRequest: MessageFns; declare const AuthorizationAPIListAuthorizedClientsResponse: MessageFns; declare const AuthorizationAPIGetSignedCommandsPublicKeyRequest: MessageFns; declare const AuthorizationAPIGetSignedCommandsPublicKeyResponse: MessageFns; declare const AuthorizationAPIConfigureRemoteServiceRequest: MessageFns; declare const AuthorizationAPIConfigureRemoteServiceResponse: MessageFns; declare const AuthorizationMessages: 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 { AuthorizationAPIAddAuthorizedClientByTrustedSignatureRequest, AuthorizationAPIAddAuthorizedClientByTrustedSignatureResponse, AuthorizationAPIAddAuthorizedClientRequest, AuthorizationAPIAddAuthorizedClientResponse, AuthorizationAPIConfigureRemoteServiceRequest, AuthorizationAPIConfigureRemoteServiceResponse, AuthorizationAPIGetSignedCommandsPublicKeyRequest, AuthorizationAPIGetSignedCommandsPublicKeyResponse, AuthorizationAPIListAuthorizedClientsRequest, AuthorizationAPIListAuthorizedClientsResponse, AuthorizationAPIRemoveAuthorizedClientRequest, AuthorizationAPIRemoveAuthorizedClientResponse, AuthorizationMessages, DeepPartial, Exact, MessageFns, protobufPackage };