()
| 16 | * Fetch all available secrets from the secrets service |
| 17 | */ |
| 18 | export async function fetchSecrets(): Promise<SecretSummary[]> { |
| 19 | try { |
| 20 | return await api.secrets.list(); |
| 21 | } catch (error) { |
| 22 | console.error('Failed to fetch secrets:', error); |
| 23 | return []; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Fetch a specific secret by ID |
no test coverage detected