(
projectId: string,
tokenName: string,
access?: number,
)
| 16 | } |
| 17 | |
| 18 | export async function createProjectToken( |
| 19 | projectId: string, |
| 20 | tokenName: string, |
| 21 | access?: number, |
| 22 | ): Promise<IProjectToken> { |
| 23 | return await fetchApi( |
| 24 | `/projects/${projectId}/api-tokens`, |
| 25 | ProjectTokenSchema, |
| 26 | { |
| 27 | method: "POST", |
| 28 | body: JSON.stringify({ name: tokenName, access }), |
| 29 | }, |
| 30 | ); |
| 31 | } |
| 32 | |
| 33 | export async function deleteProjectToken( |
| 34 | projectId: string, |
no test coverage detected
searching dependent graphs…