(apiUrl: string, token: string | null, client: ClientKind = 'cli')
| 27 | readonly client: ClientKind; |
| 28 | |
| 29 | constructor(apiUrl: string, token: string | null, client: ClientKind = 'cli') { |
| 30 | this.apiUrl = apiUrl; |
| 31 | this.token = token; |
| 32 | this.client = client; |
| 33 | } |
| 34 | |
| 35 | async call<T>(op: Operation, input: Record<string, unknown> = {}): Promise<T> { |
| 36 | if (op.auth === 'token' && !this.token) { |
nothing calls this directly
no outgoing calls
no test coverage detected