(taskId: string, visibility: ShareVisibility = "organization")
| 109 | } |
| 110 | |
| 111 | async shareTask(taskId: string, visibility: ShareVisibility = "organization"): Promise<ShareResponse> { |
| 112 | this.log(`[CloudAPI] Sharing task ${taskId} with visibility: ${visibility}`) |
| 113 | |
| 114 | const response = await this.request("/api/extension/share", { |
| 115 | method: "POST", |
| 116 | body: JSON.stringify({ taskId, visibility }), |
| 117 | parseResponse: (data) => shareResponseSchema.parse(data), |
| 118 | }) |
| 119 | |
| 120 | this.log("[CloudAPI] Share response:", response) |
| 121 | return response |
| 122 | } |
| 123 | |
| 124 | async bridgeConfig() { |
| 125 | return this.request("/api/extension/bridge/config", { |
no test coverage detected