(projectRef: string)
| 63 | } |
| 64 | |
| 65 | async getProject(projectRef: string) { |
| 66 | if (!this.accessToken) { |
| 67 | throw new Error("getProject: No access token"); |
| 68 | } |
| 69 | |
| 70 | return wrapZodFetch(GetProjectResponseBody, `${this.apiURL}/api/v1/projects/${projectRef}`, { |
| 71 | headers: { |
| 72 | Authorization: `Bearer ${this.accessToken}`, |
| 73 | "Content-Type": "application/json", |
| 74 | }, |
| 75 | }); |
| 76 | } |
| 77 | |
| 78 | async getProjects() { |
| 79 | if (!this.accessToken) { |
nothing calls this directly
no test coverage detected