@@ -49,30 +49,44 @@ message WorkspacesOwnedList {
49
49
message InviteRequest {
50
50
// The user the invitation is for.
51
51
required string user = 1 ;
52
- // the workspace the invitation is for
52
+ // The workspace the invitation is for.
53
53
required common.Identifier workspace = 2 ;
54
54
}
55
55
56
56
// A message representing a session event.
57
57
message SessionEvent {
58
- // Event that occurs when you get invited to a workspace
58
+ // Event that occurs when you get invited to a workspace.
59
59
message InvitationEvent {
60
60
// The user that invited you.
61
61
required common.User user = 1 ;
62
+ // The workspace the invitation is for.
63
+ required common.WorkspaceInfo workspace = 2 ;
62
64
}
63
- // Event that occurs when a user leaves a workspace.
64
- message LeaveEvent {
65
- // The user that left .
65
+ // Event that occurs when a user quits a workspace.
66
+ message QuitEvent {
67
+ // The user that quits .
66
68
required common.User user = 1 ;
69
+ // The workspace the user quit.
70
+ required common.WorkspaceInfo workspace = 2 ;
67
71
}
68
- // Event that occurs when an user joins in a workspace you are in
69
- message JoinEvent {
70
- // The user that joined .
72
+ // Event that occurs when an user accepts an invite to a workspace you are in.
73
+ message AcceptEvent {
74
+ // The user that accepted the invite .
71
75
required common.User user = 1 ;
76
+ // The workspace the user accepted the invite for.
77
+ required common.WorkspaceInfo workspace = 2 ;
78
+ }
79
+ // Event that occurs when an user rejects an invite.
80
+ message RejectEvent {
81
+ // The user that rejected the invite.
82
+ required common.User user = 1 ;
83
+ // The workspace the invitation was for.
84
+ required common.WorkspaceInfo workspace = 2 ;
72
85
}
73
86
oneof event {
74
87
InvitationEvent invite = 1 ;
75
- LeaveEvent leave = 2 ;
76
- JoinEvent join = 3 ;
88
+ QuitEvent leave = 2 ;
89
+ AcceptEvent join = 3 ;
90
+ RejectEvent reject = 4 ;
77
91
}
78
92
}
0 commit comments