feat: user service

This commit is contained in:
Ilia Denisov
2026-04-10 19:05:02 +02:00
committed by GitHub
parent 710bad712e
commit 23ffcb7535
140 changed files with 33418 additions and 952 deletions
+78
View File
@@ -0,0 +1,78 @@
// user contains FlatBuffers payloads used by the authenticated gateway
// self-service boundary for User Service.
namespace user;
table GetMyAccountRequest {
}
table UpdateMyProfileRequest {
race_name:string;
}
table UpdateMySettingsRequest {
preferred_language:string;
time_zone:string;
}
table ActorRef {
type:string;
id:string;
}
table EntitlementSnapshot {
plan_code:string;
is_paid:bool;
source:string;
actor:ActorRef;
reason_code:string;
starts_at_ms:int64;
ends_at_ms:int64;
updated_at_ms:int64;
}
table ActiveSanction {
sanction_code:string;
scope:string;
reason_code:string;
actor:ActorRef;
applied_at_ms:int64;
expires_at_ms:int64;
}
table ActiveLimit {
limit_code:string;
value:int64;
reason_code:string;
actor:ActorRef;
applied_at_ms:int64;
expires_at_ms:int64;
}
table AccountView {
user_id:string;
email:string;
race_name:string;
preferred_language:string;
time_zone:string;
declared_country:string;
entitlement:EntitlementSnapshot;
active_sanctions:[ActiveSanction];
active_limits:[ActiveLimit];
created_at_ms:int64;
updated_at_ms:int64;
}
table AccountResponse {
account:AccountView;
}
table ErrorBody {
code:string;
message:string;
}
table ErrorResponse {
error:ErrorBody;
}
root_type AccountResponse;