mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 21:27:10 +01:00
8a77a8b251
* Create jobs to trigger sending all alias as create events * Set events in past tense * fix test * Removed debug log * Log messages
51 lines
905 B
Protocol Buffer
51 lines
905 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package simplelogin_events;
|
|
|
|
message UserPlanChanged {
|
|
uint32 plan_end_time = 1;
|
|
}
|
|
|
|
message UserDeleted {
|
|
}
|
|
|
|
message AliasCreated {
|
|
uint32 alias_id = 1;
|
|
string alias_email = 2;
|
|
string alias_note = 3;
|
|
bool enabled = 4;
|
|
}
|
|
|
|
message AliasStatusChanged {
|
|
uint32 alias_id = 1;
|
|
string alias_email = 2;
|
|
bool enabled = 3;
|
|
}
|
|
|
|
message AliasDeleted {
|
|
uint32 alias_id = 1;
|
|
string alias_email = 2;
|
|
}
|
|
|
|
message AliasCreatedList {
|
|
repeated AliasCreated events = 1;
|
|
}
|
|
|
|
message EventContent {
|
|
oneof content {
|
|
UserPlanChanged user_plan_change = 1;
|
|
UserDeleted user_deleted = 2;
|
|
AliasCreated alias_created = 3;
|
|
AliasStatusChanged alias_status_change = 4;
|
|
AliasDeleted alias_deleted = 5;
|
|
AliasCreatedList alias_create_list = 6;
|
|
}
|
|
}
|
|
|
|
message Event {
|
|
uint32 user_id = 1;
|
|
string external_user_id = 2;
|
|
uint32 partner_id = 3;
|
|
EventContent content = 4;
|
|
}
|