apiKeys.ts 348 B

123456789101112131415161718192021
  1. import { OrgRole } from './acl';
  2. export interface ApiKey {
  3. id: number;
  4. name: string;
  5. role: OrgRole;
  6. secondsToLive: number;
  7. expiration: string;
  8. }
  9. export interface NewApiKey {
  10. name: string;
  11. role: OrgRole;
  12. secondsToLive: number;
  13. }
  14. export interface ApiKeysState {
  15. keys: ApiKey[];
  16. searchQuery: string;
  17. hasFetched: boolean;
  18. }