()
| 204 | } |
| 205 | |
| 206 | private async captchaRequired(): Promise<boolean> { |
| 207 | const resp = await this.client.post(`${SunoApi.BASE_URL}/api/c/check`, { |
| 208 | ctype: 'generation' |
| 209 | }); |
| 210 | logger.info(resp.data); |
| 211 | return resp.data.required; |
| 212 | } |
| 213 | |
| 214 | /** |
| 215 | * Clicks on a locator or XY vector. This method is made because of the difference between ghost-cursor-playwright and Playwright methods |