its a bit broken
This commit is contained in:
@@ -449,16 +449,22 @@ export const runners = {
|
||||
};
|
||||
|
||||
export const admin = {
|
||||
async generateToken(expiresInHours) {
|
||||
return api.post('/admin/runners/tokens', { expires_in_hours: expiresInHours });
|
||||
async generateAPIKey(name, description, scope) {
|
||||
const data = { name, scope };
|
||||
if (description) data.description = description;
|
||||
return api.post('/admin/runners/api-keys', data);
|
||||
},
|
||||
|
||||
async listTokens() {
|
||||
return api.get('/admin/runners/tokens');
|
||||
async listAPIKeys() {
|
||||
return api.get('/admin/runners/api-keys');
|
||||
},
|
||||
|
||||
async revokeToken(tokenId) {
|
||||
return api.delete(`/admin/runners/tokens/${tokenId}`);
|
||||
async revokeAPIKey(keyId) {
|
||||
return api.patch(`/admin/runners/api-keys/${keyId}/revoke`);
|
||||
},
|
||||
|
||||
async deleteAPIKey(keyId) {
|
||||
return api.delete(`/admin/runners/api-keys/${keyId}`);
|
||||
},
|
||||
|
||||
async listRunners() {
|
||||
|
||||
Reference in New Issue
Block a user