Skip to content

Commit da803a1

Browse files
feat: add metadata res to ping session api
1 parent f475a7d commit da803a1

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

raystack/frontier/v1beta1/frontier.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4091,7 +4091,9 @@ message RevokeSessionResponse {}
40914091

40924092
message PingUserSessionRequest {}
40934093

4094-
message PingUserSessionResponse {}
4094+
message PingUserSessionResponse {
4095+
Session.Meta metadata = 1;
4096+
}
40954097

40964098
message CreateAuditRecordRequest {
40974099
AuditRecordActor actor = 1 [(google.api.field_behavior) = REQUIRED];

raystack/frontier/v1beta1/models.proto

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,10 +1044,16 @@ message ExportOrganizationsRequest {
10441044

10451045
message Session {
10461046
message Meta {
1047+
message Location {
1048+
string city = 1;
1049+
string country = 2;
1050+
string latitude = 3;
1051+
string longitude = 4;
1052+
}
10471053
string operating_system = 1;
10481054
string browser = 2;
10491055
string ip_address = 3;
1050-
string location = 4;
1056+
Location location = 4;
10511057
}
10521058

10531059
string id = 1;

0 commit comments

Comments
 (0)