diff --git a/go/types/v1/user_token.pb.go b/go/types/v1/user_token.pb.go index 37c4bcb..5972d83 100644 --- a/go/types/v1/user_token.pb.go +++ b/go/types/v1/user_token.pb.go @@ -26,6 +26,7 @@ type UserToken struct { state protoimpl.MessageState `protogen:"open.v1"` UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -74,14 +75,22 @@ func (x *UserToken) GetToken() string { return "" } +func (x *UserToken) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + var File_types_v1_user_token_proto protoreflect.FileDescriptor const file_types_v1_user_token_proto_rawDesc = "" + "\n" + - "\x19types/v1/user_token.proto\x12\btypes.v1\x1a\x1fgoogle/protobuf/timestamp.proto\":\n" + + "\x19types/v1/user_token.proto\x12\btypes.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"V\n" + "\tUserToken\x12\x17\n" + "\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x14\n" + - "\x05token\x18\x02 \x01(\tR\x05tokenB\x8e\x01\n" + + "\x05token\x18\x02 \x01(\tR\x05token\x12\x1a\n" + + "\busername\x18\x03 \x01(\tR\busernameB\x8e\x01\n" + "\fcom.types.v1B\x0eUserTokenProtoP\x01Z-github.com/humanlogio/api/go/types/v1;typesv1\xa2\x02\x03TXX\xaa\x02\bTypes.V1\xca\x02\bTypes\\V1\xe2\x02\x14Types\\V1\\GPBMetadata\xea\x02\tTypes::V1b\x06proto3" var ( diff --git a/js/types/v1/user_token_pb.ts b/js/types/v1/user_token_pb.ts index d0452ca..258d7c7 100644 --- a/js/types/v1/user_token_pb.ts +++ b/js/types/v1/user_token_pb.ts @@ -11,7 +11,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file types/v1/user_token.proto. */ export const file_types_v1_user_token: GenFile = /*@__PURE__*/ - fileDesc("Chl0eXBlcy92MS91c2VyX3Rva2VuLnByb3RvEgh0eXBlcy52MSIrCglVc2VyVG9rZW4SDwoHdXNlcl9pZBgBIAEoAxINCgV0b2tlbhgCIAEoCUKOAQoMY29tLnR5cGVzLnYxQg5Vc2VyVG9rZW5Qcm90b1ABWi1naXRodWIuY29tL2h1bWFubG9naW8vYXBpL2dvL3R5cGVzL3YxO3R5cGVzdjGiAgNUWFiqAghUeXBlcy5WMcoCCFR5cGVzXFYx4gIUVHlwZXNcVjFcR1BCTWV0YWRhdGHqAglUeXBlczo6VjFiBnByb3RvMw", [file_google_protobuf_timestamp]); + fileDesc("Chl0eXBlcy92MS91c2VyX3Rva2VuLnByb3RvEgh0eXBlcy52MSI9CglVc2VyVG9rZW4SDwoHdXNlcl9pZBgBIAEoAxINCgV0b2tlbhgCIAEoCRIQCgh1c2VybmFtZRgDIAEoCUKOAQoMY29tLnR5cGVzLnYxQg5Vc2VyVG9rZW5Qcm90b1ABWi1naXRodWIuY29tL2h1bWFubG9naW8vYXBpL2dvL3R5cGVzL3YxO3R5cGVzdjGiAgNUWFiqAghUeXBlcy5WMcoCCFR5cGVzXFYx4gIUVHlwZXNcVjFcR1BCTWV0YWRhdGHqAglUeXBlczo6VjFiBnByb3RvMw", [file_google_protobuf_timestamp]); /** * @generated from message types.v1.UserToken @@ -26,6 +26,11 @@ export type UserToken = Message<"types.v1.UserToken"> & { * @generated from field: string token = 2; */ token: string; + + /** + * @generated from field: string username = 3; + */ + username: string; }; /** diff --git a/proto/types/v1/user_token.proto b/proto/types/v1/user_token.proto index d3bc01c..4c3d0f4 100644 --- a/proto/types/v1/user_token.proto +++ b/proto/types/v1/user_token.proto @@ -9,4 +9,5 @@ option go_package = "types/v1;typesv1"; message UserToken { int64 user_id = 1; string token = 2; + string username = 3; }