Skip to content

Commit

Permalink
add email, display name, picture to create user
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <[email protected]>
  • Loading branch information
kradalby committed Dec 18, 2024
1 parent db1aa9e commit 81e4333
Show file tree
Hide file tree
Showing 10 changed files with 82 additions and 39 deletions.
2 changes: 1 addition & 1 deletion gen/go/headscale/v1/apikey.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gen/go/headscale/v1/device.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gen/go/headscale/v1/headscale.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gen/go/headscale/v1/node.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gen/go/headscale/v1/policy.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gen/go/headscale/v1/preauthkey.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gen/go/headscale/v1/routes.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 60 additions & 31 deletions gen/go/headscale/v1/user.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions gen/openapiv2/headscale/v1/headscale.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1039,6 +1039,15 @@
"properties": {
"name": {
"type": "string"
},
"displayName": {
"type": "string"
},
"email": {
"type": "string"
},
"pictureUrl": {
"type": "string"
}
}
},
Expand Down
7 changes: 6 additions & 1 deletion proto/headscale/v1/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ message User {
string profile_pic_url = 8;
}

message CreateUserRequest { string name = 1; }
message CreateUserRequest {
string name = 1;
string display_name = 2;
string email = 3;
string picture_url = 4;
}

message CreateUserResponse { User user = 1; }

Expand Down

0 comments on commit 81e4333

Please sign in to comment.