(project: string, content: string)
| 462 | |
| 463 | // Sheets |
| 464 | async createSheet(project: string, content: string): Promise<string> { |
| 465 | const b64 = Buffer.from(content).toString("base64"); |
| 466 | const resp = await this.request<{ name: string }>( |
| 467 | "POST", `/v1/${project}/sheets`, { content: b64 } |
| 468 | ); |
| 469 | return resp.name; |
| 470 | } |
| 471 | |
| 472 | // Worksheets — distinct from Sheets. SQL Editor's left sidebar tree shows |
| 473 | // Worksheets, identified by `projects/{project}/worksheets/{uuid}`. The |