( payload: CreateSimulatorRequest, )
| 38 | } |
| 39 | |
| 40 | export async function createSimulator( |
| 41 | payload: CreateSimulatorRequest, |
| 42 | ): Promise<CreateSimulatorResponse> { |
| 43 | return apiRequest<CreateSimulatorResponse>("/api/simulators", { |
| 44 | body: JSON.stringify(payload), |
| 45 | method: "POST", |
| 46 | }); |
| 47 | } |
| 48 | |
| 49 | export async function fetchChromeProfile(udid: string): Promise<ChromeProfile> { |
| 50 | return apiRequest<ChromeProfile>(`/api/simulators/${udid}/chrome-profile`); |