Skip to content

Commit 4846ad6

Browse files
committed
[papi] Add UserService/UpdateUser to proto
1 parent 2f14d7a commit 4846ad6

File tree

7 files changed

+1495
-268
lines changed

7 files changed

+1495
-268
lines changed

components/public-api/gitpod/v1/user.proto

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,60 @@ option go_package = "github.com/gitpod-io/gitpod/components/public-api/go/v1";
1111
service UserService {
1212
// GetAuthenticatedUser allows to retrieve the current user.
1313
rpc GetAuthenticatedUser(GetAuthenticatedUserRequest) returns (GetAuthenticatedUserResponse) {}
14+
15+
// UpdateUser updates the properties of a user.
16+
rpc UpdateUser(UpdateUserRequest) returns (UpdateUserResponse) {}
1417
}
1518

1619
message GetAuthenticatedUserRequest {}
1720
message GetAuthenticatedUserResponse {
1821
User user = 1;
1922
}
2023

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+
2168
message User {
2269
// id is a UUID of the user
2370
string id = 1;

0 commit comments

Comments
 (0)