github
1381 of 2753 branches covered (50.16%)
10 of 452 new or added lines in 19 files covered. (2.21%)
1 existing line in 1 file now uncovered.13874 of 75743 relevant lines covered (18.32%)
1.83 hits per line
NEW
|
import { axios } from '../axios'; |
|
NEW
|
import { registerRoute, urlBuilder } from '../utils'; |
× |
NEW
|
import { z } from '../zod'; |
× |
NEW
|
|
× |
NEW
|
export const OAUTH_SECRET_DELETE = '/oauth/client/{clientId}/secret/{secretId}'; |
× |
NEW
|
|
× |
NEW
|
export const deleteOauthSecretRoute = registerRoute({ |
× |
NEW
|
method: 'delete', |
× |
NEW
|
path: OAUTH_SECRET_DELETE, |
× |
NEW
|
description: 'Delete the OAuth secret', |
× |
NEW
|
request: { |
× |
NEW
|
params: z.object({
|
× |
NEW
|
secretId: z.string(), |
× |
NEW
|
}), |
× |
NEW
|
}, |
× |
NEW
|
responses: {
|
× |
NEW
|
200: {
|
× |
NEW
|
description: 'OAuth secret deleted', |
× |
NEW
|
}, |
× |
NEW
|
}, |
× |
NEW
|
tags: ['oauth'], |
× |
NEW
|
}); |
× |
NEW
|
|
× |
NEW
|
export const deleteOAuthSecret = async (clientId: string, secretId: string) => { |
× |
NEW
|
return axios.delete<void>(urlBuilder(OAUTH_SECRET_DELETE, { clientId, secretId })); |
× |
NEW
|
}; |
× |