(runId: string, options?: GetRunOptionsWithTaskDetails)
| 471 | } |
| 472 | |
| 473 | async getRun(runId: string, options?: GetRunOptionsWithTaskDetails) { |
| 474 | const apiKey = await this.#apiKey(); |
| 475 | |
| 476 | this.#logger.debug("Getting Run", { |
| 477 | runId, |
| 478 | }); |
| 479 | |
| 480 | return await zodfetch( |
| 481 | GetRunSchema, |
| 482 | urlWithSearchParams(`${this.#apiUrl}/api/v2/runs/${runId}`, options), |
| 483 | { |
| 484 | method: "GET", |
| 485 | headers: { |
| 486 | Authorization: `Bearer ${apiKey}`, |
| 487 | }, |
| 488 | } |
| 489 | ); |
| 490 | } |
| 491 | |
| 492 | async cancelRun(runId: string) { |
| 493 | const apiKey = await this.#apiKey(); |
no test coverage detected