1
0
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:
Oscar Hinton
2023-02-24 16:44:24 +01:00
committed by GitHub
parent 76d6586ff8
commit a643074709
10 changed files with 65 additions and 9 deletions

View File

@@ -78,4 +78,6 @@ export enum EventType {
OrganizationDomain_Removed = 2001,
OrganizationDomain_Verified = 2002,
OrganizationDomain_NotVerified = 2003,
Secret_Retrieved = 2100,
}

View File

@@ -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");
}
}

View File

@@ -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;
}
}