(eventId: string)
| 245 | } |
| 246 | |
| 247 | async cancelEvent(eventId: string) { |
| 248 | const apiKey = await this.#apiKey(); |
| 249 | |
| 250 | this.#logger.debug("Cancelling event", { |
| 251 | eventId, |
| 252 | }); |
| 253 | |
| 254 | return await zodfetch(ApiEventLogSchema, `${this.#apiUrl}/api/v1/events/${eventId}/cancel`, { |
| 255 | method: "POST", |
| 256 | headers: { |
| 257 | "Content-Type": "application/json", |
| 258 | Authorization: `Bearer ${apiKey}`, |
| 259 | }, |
| 260 | }); |
| 261 | } |
| 262 | |
| 263 | async cancelRunsForEvent(eventId: string) { |
| 264 | const apiKey = await this.#apiKey(); |