* Upsert worker (create or update) * Uses the OpenAPI SDK WorkerService
(input: WorkerUpsertInput)
| 73 | * Uses the OpenAPI SDK WorkerService |
| 74 | */ |
| 75 | async upsertWorker(input: WorkerUpsertInput): Promise<WorkerInfo> { |
| 76 | const result = await openApiClient.WorkerService.workerUpsert({ |
| 77 | workspaceId: this.config.workspaceId, |
| 78 | requestBody: input, |
| 79 | }); |
| 80 | |
| 81 | return result as WorkerInfo; |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Get worker by ID |