2024-05-23 10:27:08 +02:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package simplelogin_events;
|
|
|
|
|
2024-06-07 15:36:18 +02:00
|
|
|
message UserPlanChanged {
|
2024-05-23 10:27:08 +02:00
|
|
|
uint32 plan_end_time = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UserDeleted {
|
|
|
|
}
|
|
|
|
|
|
|
|
message AliasCreated {
|
|
|
|
uint32 alias_id = 1;
|
|
|
|
string alias_email = 2;
|
|
|
|
string alias_note = 3;
|
|
|
|
bool enabled = 4;
|
|
|
|
}
|
|
|
|
|
2024-06-07 15:36:18 +02:00
|
|
|
message AliasStatusChanged {
|
2024-05-23 10:27:08 +02:00
|
|
|
uint32 alias_id = 1;
|
|
|
|
string alias_email = 2;
|
|
|
|
bool enabled = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AliasDeleted {
|
|
|
|
uint32 alias_id = 1;
|
|
|
|
string alias_email = 2;
|
|
|
|
}
|
|
|
|
|
2024-06-07 15:36:18 +02:00
|
|
|
message AliasCreatedList {
|
|
|
|
repeated AliasCreated events = 1;
|
2024-06-06 11:05:47 +02:00
|
|
|
}
|
|
|
|
|
2024-05-23 10:27:08 +02:00
|
|
|
message EventContent {
|
|
|
|
oneof content {
|
2024-06-07 15:36:18 +02:00
|
|
|
UserPlanChanged user_plan_change = 1;
|
2024-05-23 10:27:08 +02:00
|
|
|
UserDeleted user_deleted = 2;
|
|
|
|
AliasCreated alias_created = 3;
|
2024-06-07 15:36:18 +02:00
|
|
|
AliasStatusChanged alias_status_change = 4;
|
2024-05-23 10:27:08 +02:00
|
|
|
AliasDeleted alias_deleted = 5;
|
2024-06-07 15:36:18 +02:00
|
|
|
AliasCreatedList alias_create_list = 6;
|
2024-05-23 10:27:08 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message Event {
|
|
|
|
uint32 user_id = 1;
|
|
|
|
string external_user_id = 2;
|
|
|
|
uint32 partner_id = 3;
|
|
|
|
EventContent content = 4;
|
2024-06-06 11:05:47 +02:00
|
|
|
}
|