1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00

Add InstallationId to event responses (#2007)

This commit is contained in:
Matt Gibson 2022-05-19 10:58:47 -04:00 committed by GitHub
parent e314537713
commit 60e36a8f0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,7 @@ namespace Bit.Api.Models.Public.Response
Date = ev.Date;
Device = ev.DeviceType;
IpAddress = ev.IpAddress;
InstallationId = ev.InstallationId;
}
/// <summary>
@ -71,6 +72,11 @@ namespace Bit.Api.Models.Public.Response
/// <example>a2549f79-a71f-4eb9-9234-eb7247333f94</example>
public Guid? ActingUserId { get; set; }
/// <summary>
/// The Unique identifier of the Installation that performed the event.
/// </summary>
/// <value></value>
public Guid? InstallationId { get; set; }
/// <summary>
/// The date/timestamp when the event occurred.
/// </summary>
[Required]

View File

@ -30,6 +30,7 @@ namespace Bit.Api.Models.Response
Date = ev.Date;
DeviceType = ev.DeviceType;
IpAddress = ev.IpAddress;
InstallationId = ev.InstallationId;
}
public EventType Type { get; set; }
@ -44,6 +45,7 @@ namespace Bit.Api.Models.Response
public Guid? ProviderUserId { get; set; }
public Guid? ProviderOrganizationId { get; set; }
public Guid? ActingUserId { get; set; }
public Guid? InstallationId { get; set; }
public DateTime Date { get; set; }
public DeviceType? DeviceType { get; set; }
public string IpAddress { get; set; }