(runId: string)
| 490 | } |
| 491 | |
| 492 | async cancelRun(runId: string) { |
| 493 | const apiKey = await this.#apiKey(); |
| 494 | |
| 495 | this.#logger.debug("Cancelling Run", { |
| 496 | runId, |
| 497 | }); |
| 498 | |
| 499 | return await zodfetch(GetRunSchema, `${this.#apiUrl}/api/v1/runs/${runId}/cancel`, { |
| 500 | method: "POST", |
| 501 | headers: { |
| 502 | "Content-Type": "application/json", |
| 503 | Authorization: `Bearer ${apiKey}`, |
| 504 | }, |
| 505 | }); |
| 506 | } |
| 507 | |
| 508 | async getRunStatuses(runId: string) { |
| 509 | const apiKey = await this.#apiKey(); |