mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
[SM-389] Event log for service account (#4679)
This commit is contained in:
@@ -78,4 +78,6 @@ export enum EventType {
|
||||
OrganizationDomain_Removed = 2001,
|
||||
OrganizationDomain_Verified = 2002,
|
||||
OrganizationDomain_NotVerified = 2003,
|
||||
|
||||
Secret_Retrieved = 2100,
|
||||
}
|
||||
|
||||
@@ -23,6 +23,8 @@ export class EventResponse extends BaseResponse {
|
||||
installationId: string;
|
||||
systemUser: EventSystemUser;
|
||||
domainName: string;
|
||||
secretId: string;
|
||||
serviceAccountId: string;
|
||||
|
||||
constructor(response: any) {
|
||||
super(response);
|
||||
@@ -44,5 +46,7 @@ export class EventResponse extends BaseResponse {
|
||||
this.installationId = this.getResponseProperty("InstallationId");
|
||||
this.systemUser = this.getResponseProperty("SystemUser");
|
||||
this.domainName = this.getResponseProperty("DomainName");
|
||||
this.secretId = this.getResponseProperty("SecretId");
|
||||
this.serviceAccountId = this.getResponseProperty("ServiceAccountId");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ export class EventView {
|
||||
type: EventType;
|
||||
installationId: string;
|
||||
systemUser: EventSystemUser;
|
||||
serviceAccountId: string;
|
||||
|
||||
constructor(data: Required<EventView>) {
|
||||
this.message = data.message;
|
||||
@@ -28,5 +29,6 @@ export class EventView {
|
||||
this.type = data.type;
|
||||
this.installationId = data.installationId;
|
||||
this.systemUser = data.systemUser;
|
||||
this.serviceAccountId = data.serviceAccountId;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user