1
Fork 0

feat: add fields to current user response
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
mya 2024-01-01 16:05:13 -06:00
parent f068352bf7
commit 73ec057fcd
Signed by: mya
GPG Key ID: 4DFBA0F91AC3544A
2 changed files with 85 additions and 7 deletions

View File

@ -250,6 +250,66 @@
"type": "object"
},
"v1CurrentResponse": {
"properties": {
"birthdate": {
"type": "string"
},
"email": {
"type": "string"
},
"emailVerified": {
"type": "boolean"
},
"familyName": {
"type": "string"
},
"gender": {
"type": "string"
},
"givenName": {
"type": "string"
},
"locale": {
"type": "string"
},
"middleName": {
"type": "string"
},
"name": {
"type": "string"
},
"nickname": {
"type": "string"
},
"phoneNumber": {
"type": "string"
},
"phoneNumberVerified": {
"type": "boolean"
},
"picture": {
"type": "string"
},
"preferredUsername": {
"type": "string"
},
"profile": {
"type": "string"
},
"subject": {
"type": "string"
},
"updatedAt": {
"format": "int32",
"type": "integer"
},
"website": {
"type": "string"
},
"zoneinfo": {
"type": "string"
}
},
"type": "object"
},
"v1InviteResponse": {

View File

@ -23,7 +23,27 @@ message SignupResponse {}
message CurrentRequest {}
message CurrentResponse {}
message CurrentResponse {
string subject = 1;
string name = 2;
string given_name = 3;
string family_name = 4;
string middle_name = 5;
string nickname = 6;
string preferred_username = 7;
string profile = 8;
string picture = 9;
string website = 10;
string email = 11;
bool email_verified = 12;
string gender = 13;
string birthdate = 14;
string zoneinfo = 15;
string locale = 16;
string phone_number = 17;
bool phone_number_verified = 18;
int32 updated_at = 19;
}
service UserService {
rpc Signup(SignupRequest) returns (SignupResponse) {
@ -31,11 +51,9 @@ service UserService {
post: "/v1/users"
body: "*"
};
};
}
rpc Current(CurrentRequest) returns (CurrentResponse) {
option (google.api.http) = {
get: "/v1/users/current"
};
};
}
option (google.api.http) = {get: "/v1/users/current"};
}
}