diff --git a/go/types/v1/user_token.pb.go b/go/types/v1/user_token.pb.go index 5972d83..14c6694 100644 --- a/go/types/v1/user_token.pb.go +++ b/go/types/v1/user_token.pb.go @@ -27,6 +27,7 @@ type UserToken struct { 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"` + OrgId int64 `protobuf:"varint,4,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -82,15 +83,23 @@ func (x *UserToken) GetUsername() string { return "" } +func (x *UserToken) GetOrgId() int64 { + if x != nil { + return x.OrgId + } + return 0 +} + 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\"V\n" + + "\x19types/v1/user_token.proto\x12\btypes.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"m\n" + "\tUserToken\x12\x17\n" + "\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x14\n" + "\x05token\x18\x02 \x01(\tR\x05token\x12\x1a\n" + - "\busername\x18\x03 \x01(\tR\busernameB\x8e\x01\n" + + "\busername\x18\x03 \x01(\tR\busername\x12\x15\n" + + "\x06org_id\x18\x04 \x01(\x03R\x05orgIdB\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 258d7c7..2089605 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("Chl0eXBlcy92MS91c2VyX3Rva2VuLnByb3RvEgh0eXBlcy52MSI9CglVc2VyVG9rZW4SDwoHdXNlcl9pZBgBIAEoAxINCgV0b2tlbhgCIAEoCRIQCgh1c2VybmFtZRgDIAEoCUKOAQoMY29tLnR5cGVzLnYxQg5Vc2VyVG9rZW5Qcm90b1ABWi1naXRodWIuY29tL2h1bWFubG9naW8vYXBpL2dvL3R5cGVzL3YxO3R5cGVzdjGiAgNUWFiqAghUeXBlcy5WMcoCCFR5cGVzXFYx4gIUVHlwZXNcVjFcR1BCTWV0YWRhdGHqAglUeXBlczo6VjFiBnByb3RvMw", [file_google_protobuf_timestamp]); + fileDesc("Chl0eXBlcy92MS91c2VyX3Rva2VuLnByb3RvEgh0eXBlcy52MSJNCglVc2VyVG9rZW4SDwoHdXNlcl9pZBgBIAEoAxINCgV0b2tlbhgCIAEoCRIQCgh1c2VybmFtZRgDIAEoCRIOCgZvcmdfaWQYBCABKANCjgEKDGNvbS50eXBlcy52MUIOVXNlclRva2VuUHJvdG9QAVotZ2l0aHViLmNvbS9odW1hbmxvZ2lvL2FwaS9nby90eXBlcy92MTt0eXBlc3YxogIDVFhYqgIIVHlwZXMuVjHKAghUeXBlc1xWMeICFFR5cGVzXFYxXEdQQk1ldGFkYXRh6gIJVHlwZXM6OlYxYgZwcm90bzM", [file_google_protobuf_timestamp]); /** * @generated from message types.v1.UserToken @@ -31,6 +31,11 @@ export type UserToken = Message<"types.v1.UserToken"> & { * @generated from field: string username = 3; */ username: string; + + /** + * @generated from field: int64 org_id = 4; + */ + orgId: bigint; }; /** diff --git a/proto/types/v1/user_token.proto b/proto/types/v1/user_token.proto index 4c3d0f4..e90af90 100644 --- a/proto/types/v1/user_token.proto +++ b/proto/types/v1/user_token.proto @@ -10,4 +10,5 @@ message UserToken { int64 user_id = 1; string token = 2; string username = 3; + int64 org_id = 4; }