feat: get metadata about the current api key (#21027)

This commit is contained in:
Jason Rasmussen 2025-08-18 19:15:03 -04:00 committed by GitHub
parent a313e4338e
commit e00556a34a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 174 additions and 12 deletions

View file

@ -2027,6 +2027,14 @@ export function createApiKey({ apiKeyCreateDto }: {
body: apiKeyCreateDto
})));
}
export function getMyApiKey(opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchJson<{
status: 200;
data: ApiKeyResponseDto;
}>("/api-keys/me", {
...opts
}));
}
/**
* This endpoint requires the `apiKey.delete` permission.
*/