()
| 293 | } |
| 294 | |
| 295 | async info(): Promise<InfoResponse<T>> { |
| 296 | const result = await send_rpc_request<Omit<InfoResponse<TcbInfo>, 'tcb_info'> & { tcb_info: string }>(this.endpoint, '/Info', '{}') |
| 297 | return Object.freeze({ |
| 298 | ...result, |
| 299 | tcb_info: JSON.parse(result.tcb_info) as T, |
| 300 | }) |
| 301 | } |
| 302 | |
| 303 | /** |
| 304 | * Query the guest-agent version. |