(jobId: string)
| 567 | } |
| 568 | |
| 569 | async cancelRunsForJob(jobId: string) { |
| 570 | const apiKey = await this.#apiKey(); |
| 571 | |
| 572 | this.#logger.debug("Cancelling Runs for Job", { |
| 573 | jobId, |
| 574 | }); |
| 575 | |
| 576 | return await zodfetch( |
| 577 | CancelRunsForJobSchema, |
| 578 | `${this.#apiUrl}/api/v1/jobs/${jobId}/cancel-runs`, |
| 579 | { |
| 580 | method: "POST", |
| 581 | headers: { |
| 582 | "Content-Type": "application/json", |
| 583 | Authorization: `Bearer ${apiKey}`, |
| 584 | }, |
| 585 | } |
| 586 | ); |
| 587 | } |
| 588 | |
| 589 | async createEphemeralEventDispatcher(payload: EphemeralEventDispatcherRequestBody) { |
| 590 | const apiKey = await this.#apiKey(); |
no test coverage detected