import { FetchDataResponse, NextType } from '../types'; export interface AuthData { token: string; expirationTime: string; } export interface Owner { owner: string; rootPublicKey: string; rootPrivateKey: string; rootApiKey: string; } export interface PublicKey { publicKey: string; } export interface KeyPair extends PublicKey { privateKey: string; } export interface ApiKeyInfo { owner: string; principal: string; } export interface GetListPublicKeysResponse extends NextType { keyPairs: PublicKey[]; } export interface SingOutRequest { principal: string; token: string; } export type AuthenticateResponse = FetchDataResponse; export type ListPublicKeysResponse = FetchDataResponse; export type RegisterResponse = FetchDataResponse; export type CreateKeyPairResponse = FetchDataResponse; export type GetApiKeyInfoResponse = FetchDataResponse;