15230: Refactor copy to clipboard, applies to all DetailsAttribute
[arvados-workbench2.git] / src / models / session.ts
index 8a5002be5e6c3aa82fa41b5cb81c363f72dc0c00..9a942967370f1241de198007359d6582ac594a2a 100644 (file)
@@ -1,9 +1,21 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+export enum SessionStatus {
+    INVALIDATED,
+    BEING_VALIDATED,
+    VALIDATED
+}
+
 export interface Session {
     clusterId: string;
     remoteHost: string;
+    baseUrl: string;
     username: string;
     email: string;
     token: string;
     loggedIn: boolean;
-    validated: boolean;
+    status: SessionStatus;
+    active: boolean;
 }