export interface BearerToken { type: 'bearer'; token: string; } export type BasicAuth = { type: 'basic'; token: string; } | { type: 'basic'; username: string; password: string; }; export interface ClientKeyAuth { type: 'key'; clientKey: string; } export type Auth = BearerToken | BasicAuth | ClientKeyAuth; export interface GetAuthParams { token?: string | null; username?: string | null; password?: string | null; clientKey?: string | null; }