mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 15:58:14 +00:00
624b9ab479
headscale 0.28 added GET /v1/preauthkey without a user param which returns all keys including tag-only ones. this change adds getAllPreAuthKeys() and uses it when available, falling back to per-user fetching on older versions. the UI now handles keys where user is null, showing them as Tag Only in the filter dropdown. closes #432 Amp-Thread-ID: https://ampcode.com/threads/T-019c9861-2d45-73ef-ab94-5fce62f63670 Co-authored-by: Amp <amp@ampcode.com>
14 lines
234 B
TypeScript
14 lines
234 B
TypeScript
import type { User } from './User';
|
|
|
|
export interface PreAuthKey {
|
|
id: string;
|
|
key: string;
|
|
user: User | null;
|
|
reusable: boolean;
|
|
ephemeral: boolean;
|
|
used: boolean;
|
|
expiration: string;
|
|
createdAt: string;
|
|
aclTags: string[];
|
|
}
|