(runId: string)
| 506 | } |
| 507 | |
| 508 | async getRunStatuses(runId: string) { |
| 509 | const apiKey = await this.#apiKey(); |
| 510 | |
| 511 | this.#logger.debug("Getting Run statuses", { |
| 512 | runId, |
| 513 | }); |
| 514 | |
| 515 | return await zodfetch(GetRunStatusesSchema, `${this.#apiUrl}/api/v2/runs/${runId}/statuses`, { |
| 516 | method: "GET", |
| 517 | headers: { |
| 518 | Authorization: `Bearer ${apiKey}`, |
| 519 | }, |
| 520 | }); |
| 521 | } |
| 522 | |
| 523 | async getRuns(jobSlug: string, options?: GetRunsOptions) { |
| 524 | const apiKey = await this.#apiKey(); |