import { MsgBaseCfg, OptionalAuth } from "@vibes.diy/api-types"; import { Result } from "@adviser/cement"; import { SuperThis, DashAuthType } from "@vibes.diy/identity"; export interface VibesDiyApiParam { readonly apiUrl: string; readonly ca?: string[]; readonly me?: string; fetch?(input: RequestInfo | URL, init?: RequestInit): Promise; readonly ws?: WebSocket; getToken(): Promise>; readonly msg?: MsgBaseCfg; readonly sthis?: SuperThis; readonly timeoutMs?: number; readonly shardKey?: string; } export interface VibesDiyApiConfig { readonly apiUrl: string; readonly ca?: string[]; readonly me: string; fetch(input: RequestInfo | URL, init?: RequestInit): Promise; readonly ws?: WebSocket; getToken(): Promise>; readonly msg: MsgBaseCfg; readonly sthis: SuperThis; readonly timeoutMs: number; } export type ReqType = Omit & OptionalAuth; export type WithAuth = Omit & { readonly auth: DashAuthType; };