(jobSlug: string, options?: GetRunsOptions)
| 521 | } |
| 522 | |
| 523 | async getRuns(jobSlug: string, options?: GetRunsOptions) { |
| 524 | const apiKey = await this.#apiKey(); |
| 525 | |
| 526 | this.#logger.debug("Getting Runs", { |
| 527 | jobSlug, |
| 528 | }); |
| 529 | |
| 530 | return await zodfetch( |
| 531 | GetRunsSchema, |
| 532 | urlWithSearchParams(`${this.#apiUrl}/api/v1/jobs/${jobSlug}/runs`, options), |
| 533 | { |
| 534 | method: "GET", |
| 535 | headers: { |
| 536 | Authorization: `Bearer ${apiKey}`, |
| 537 | }, |
| 538 | } |
| 539 | ); |
| 540 | } |
| 541 | |
| 542 | async invokeJob(jobId: string, payload: any, options: InvokeOptions = {}) { |
| 543 | const apiKey = await this.#apiKey(); |
no test coverage detected