@@ -11,13 +11,60 @@ option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
11
11
service UserService {
12
12
// GetAuthenticatedUser allows to retrieve the current user.
13
13
rpc GetAuthenticatedUser (GetAuthenticatedUserRequest ) returns (GetAuthenticatedUserResponse ) {}
14
+
15
+ // UpdateUser updates the properties of a user.
16
+ rpc UpdateUser (UpdateUserRequest ) returns (UpdateUserResponse ) {}
14
17
}
15
18
16
19
message GetAuthenticatedUserRequest {}
17
20
message GetAuthenticatedUserResponse {
18
21
User user = 1 ;
19
22
}
20
23
24
+ message UpdateUserRequest {
25
+ string user_id = 1 ;
26
+ optional string name = 2 ;
27
+ optional string accepted_privacy_policy_date = 3 ;
28
+ optional ProfileDetails profile = 4 ;
29
+ message ProfileDetails {
30
+ optional string last_updated_details_nudge = 1 ;
31
+ optional string accepted_privacy_policy_date = 2 ;
32
+ optional string company_name = 3 ;
33
+ optional string email_address = 4 ;
34
+ optional string job_role = 5 ;
35
+ optional string job_role_other = 6 ;
36
+ repeated string exploration_reasons = 7 ;
37
+ repeated string signup_goals = 8 ;
38
+ optional string signup_goals_other = 10 ;
39
+ optional string onboarded_timestamp = 11 ;
40
+ optional string company_size = 12 ;
41
+ }
42
+ optional string email_address = 5 ;
43
+ optional EditorReference editor_settings = 6 ;
44
+ optional EmailNotificationSettings email_notification_settings = 7 ;
45
+ message EmailNotificationSettings {
46
+ optional bool allows_changelog_mail = 1 ;
47
+ optional bool allows_devx_mail = 2 ;
48
+ optional bool allows_onboarding_mail = 3 ;
49
+ }
50
+ repeated WorkspaceAutostartOption workspace_autostart_options = 8 ;
51
+ message WorkspaceAutostartOption {
52
+ string clone_url = 1 ;
53
+ string organization_id = 2 ;
54
+ string workspace_class = 3 ;
55
+ EditorReference editor_settings = 4 ;
56
+ string region = 5 ;
57
+ }
58
+ optional WorkspaceTimeoutSettings workspace_timeout_settings = 9 ;
59
+ message WorkspaceTimeoutSettings {
60
+ optional google.protobuf.Duration inactivity = 1 ;
61
+ optional bool disabled_disconnected = 2 ;
62
+ }
63
+ }
64
+ message UpdateUserResponse {
65
+ User user = 1 ;
66
+ }
67
+
21
68
message User {
22
69
// id is a UUID of the user
23
70
string id = 1 ;
0 commit comments