diff --git a/go/types/v1/organization.pb.go b/go/types/v1/organization.pb.go index 713fe9f..923bc1d 100644 --- a/go/types/v1/organization.pb.go +++ b/go/types/v1/organization.pb.go @@ -141,15 +141,14 @@ func (x *Organization) GetCreatedAt() *timestamppb.Timestamp { type Invitation struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - InvitedTo *Organization `protobuf:"bytes,2,opt,name=invited_to,json=invitedTo,proto3" json:"invited_to,omitempty"` - InvitedBy *PublicUser `protobuf:"bytes,3,opt,name=invited_by,json=invitedBy,proto3" json:"invited_by,omitempty"` - InvitedUserEmail string `protobuf:"bytes,4,opt,name=invited_user_email,json=invitedUserEmail,proto3" json:"invited_user_email,omitempty"` - State Invitation_State `protobuf:"varint,5,opt,name=state,proto3,enum=types.v1.Invitation_State" json:"state,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` - AcceptedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=accepted_at,json=acceptedAt,proto3" json:"accepted_at,omitempty"` - RevokedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=revoked_at,json=revokedAt,proto3" json:"revoked_at,omitempty"` + InvitedBy *PublicUser `protobuf:"bytes,2,opt,name=invited_by,json=invitedBy,proto3" json:"invited_by,omitempty"` + InvitedUserEmail string `protobuf:"bytes,3,opt,name=invited_user_email,json=invitedUserEmail,proto3" json:"invited_user_email,omitempty"` + State Invitation_State `protobuf:"varint,4,opt,name=state,proto3,enum=types.v1.Invitation_State" json:"state,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,501,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,502,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,503,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` + AcceptedAt *timestamppb.Timestamp `protobuf:"bytes,504,opt,name=accepted_at,json=acceptedAt,proto3" json:"accepted_at,omitempty"` + RevokedAt *timestamppb.Timestamp `protobuf:"bytes,505,opt,name=revoked_at,json=revokedAt,proto3" json:"revoked_at,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -191,13 +190,6 @@ func (x *Invitation) GetId() int64 { return 0 } -func (x *Invitation) GetInvitedTo() *Organization { - if x != nil { - return x.InvitedTo - } - return nil -} - func (x *Invitation) GetInvitedBy() *PublicUser { if x != nil { return x.InvitedBy @@ -263,27 +255,24 @@ const file_types_v1_organization_proto_rawDesc = "" + "\x02id\x18\x01 \x01(\x03R\x02id\x129\n" + "\x04name\x18\x02 \x01(\tB%\xbaH\"r \x10\x03\x18'2\x1a^[a-zA-Z0-9][a-zA-Z0-9-]+$R\x04name\x129\n" + "\n" + - "created_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\"\xde\x04\n" + + "created_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\"\xac\x04\n" + "\n" + "Invitation\x12\x0e\n" + - "\x02id\x18\x01 \x01(\x03R\x02id\x125\n" + - "\n" + - "invited_to\x18\x02 \x01(\v2\x16.types.v1.OrganizationR\tinvitedTo\x123\n" + + "\x02id\x18\x01 \x01(\x03R\x02id\x123\n" + "\n" + - "invited_by\x18\x03 \x01(\v2\x14.types.v1.PublicUserR\tinvitedBy\x12,\n" + - "\x12invited_user_email\x18\x04 \x01(\tR\x10invitedUserEmail\x120\n" + - "\x05state\x18\x05 \x01(\x0e2\x1a.types.v1.Invitation.StateR\x05state\x129\n" + + "invited_by\x18\x02 \x01(\v2\x14.types.v1.PublicUserR\tinvitedBy\x12,\n" + + "\x12invited_user_email\x18\x03 \x01(\tR\x10invitedUserEmail\x120\n" + + "\x05state\x18\x04 \x01(\x0e2\x1a.types.v1.Invitation.StateR\x05state\x12:\n" + "\n" + - "created_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "created_at\x18\xf5\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12:\n" + "\n" + - "updated_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x129\n" + + "updated_at\x18\xf6\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12:\n" + "\n" + - "expires_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x12;\n" + - "\vaccepted_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\n" + - "acceptedAt\x129\n" + + "expires_at\x18\xf7\x03 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x12<\n" + + "\vaccepted_at\x18\xf8\x03 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "acceptedAt\x12:\n" + "\n" + - "revoked_at\x18\n" + - " \x01(\v2\x1a.google.protobuf.TimestampR\trevokedAt\"K\n" + + "revoked_at\x18\xf9\x03 \x01(\v2\x1a.google.protobuf.TimestampR\trevokedAt\"K\n" + "\x05State\x12\r\n" + "\tUNDEFINED\x10\x00\x12\v\n" + "\aPENDING\x10\x01\x12\f\n" + @@ -315,19 +304,18 @@ var file_types_v1_organization_proto_goTypes = []any{ } var file_types_v1_organization_proto_depIdxs = []int32{ 3, // 0: types.v1.Organization.created_at:type_name -> google.protobuf.Timestamp - 1, // 1: types.v1.Invitation.invited_to:type_name -> types.v1.Organization - 4, // 2: types.v1.Invitation.invited_by:type_name -> types.v1.PublicUser - 0, // 3: types.v1.Invitation.state:type_name -> types.v1.Invitation.State - 3, // 4: types.v1.Invitation.created_at:type_name -> google.protobuf.Timestamp - 3, // 5: types.v1.Invitation.updated_at:type_name -> google.protobuf.Timestamp - 3, // 6: types.v1.Invitation.expires_at:type_name -> google.protobuf.Timestamp - 3, // 7: types.v1.Invitation.accepted_at:type_name -> google.protobuf.Timestamp - 3, // 8: types.v1.Invitation.revoked_at:type_name -> google.protobuf.Timestamp - 9, // [9:9] is the sub-list for method output_type - 9, // [9:9] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name + 4, // 1: types.v1.Invitation.invited_by:type_name -> types.v1.PublicUser + 0, // 2: types.v1.Invitation.state:type_name -> types.v1.Invitation.State + 3, // 3: types.v1.Invitation.created_at:type_name -> google.protobuf.Timestamp + 3, // 4: types.v1.Invitation.updated_at:type_name -> google.protobuf.Timestamp + 3, // 5: types.v1.Invitation.expires_at:type_name -> google.protobuf.Timestamp + 3, // 6: types.v1.Invitation.accepted_at:type_name -> google.protobuf.Timestamp + 3, // 7: types.v1.Invitation.revoked_at:type_name -> google.protobuf.Timestamp + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name } func init() { file_types_v1_organization_proto_init() } diff --git a/js/types/v1/organization_pb.ts b/js/types/v1/organization_pb.ts index 2426d19..624aad7 100644 --- a/js/types/v1/organization_pb.ts +++ b/js/types/v1/organization_pb.ts @@ -15,7 +15,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file types/v1/organization.proto. */ export const file_types_v1_organization: GenFile = /*@__PURE__*/ - fileDesc("Cht0eXBlcy92MS9vcmdhbml6YXRpb24ucHJvdG8SCHR5cGVzLnYxIn8KDE9yZ2FuaXphdGlvbhIKCgJpZBgBIAEoAxIzCgRuYW1lGAIgASgJQiW6SCJyIBADGCcyGl5bYS16QS1aMC05XVthLXpBLVowLTktXSskEi4KCmNyZWF0ZWRfYXQYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIvMDCgpJbnZpdGF0aW9uEgoKAmlkGAEgASgDEioKCmludml0ZWRfdG8YAiABKAsyFi50eXBlcy52MS5Pcmdhbml6YXRpb24SKAoKaW52aXRlZF9ieRgDIAEoCzIULnR5cGVzLnYxLlB1YmxpY1VzZXISGgoSaW52aXRlZF91c2VyX2VtYWlsGAQgASgJEikKBXN0YXRlGAUgASgOMhoudHlwZXMudjEuSW52aXRhdGlvbi5TdGF0ZRIuCgpjcmVhdGVkX2F0GAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgp1cGRhdGVkX2F0GAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgpleHBpcmVzX2F0GAggASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgthY2NlcHRlZF9hdBgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKcmV2b2tlZF9hdBgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiSwoFU3RhdGUSDQoJVU5ERUZJTkVEEAASCwoHUEVORElORxABEgwKCEFDQ0VQVEVEEAISCwoHUkVWT0tFRBADEgsKB0VYUElSRUQQBEKRAQoMY29tLnR5cGVzLnYxQhFPcmdhbml6YXRpb25Qcm90b1ABWi1naXRodWIuY29tL2h1bWFubG9naW8vYXBpL2dvL3R5cGVzL3YxO3R5cGVzdjGiAgNUWFiqAghUeXBlcy5WMcoCCFR5cGVzXFYx4gIUVHlwZXNcVjFcR1BCTWV0YWRhdGHqAglUeXBlczo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_protobuf_timestamp, file_types_v1_user]); + fileDesc("Cht0eXBlcy92MS9vcmdhbml6YXRpb24ucHJvdG8SCHR5cGVzLnYxIn8KDE9yZ2FuaXphdGlvbhIKCgJpZBgBIAEoAxIzCgRuYW1lGAIgASgJQiW6SCJyIBADGCcyGl5bYS16QS1aMC05XVthLXpBLVowLTktXSskEi4KCmNyZWF0ZWRfYXQYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIswDCgpJbnZpdGF0aW9uEgoKAmlkGAEgASgDEigKCmludml0ZWRfYnkYAiABKAsyFC50eXBlcy52MS5QdWJsaWNVc2VyEhoKEmludml0ZWRfdXNlcl9lbWFpbBgDIAEoCRIpCgVzdGF0ZRgEIAEoDjIaLnR5cGVzLnYxLkludml0YXRpb24uU3RhdGUSLwoKY3JlYXRlZF9hdBj1AyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KCnVwZGF0ZWRfYXQY9gMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgpleHBpcmVzX2F0GPcDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASMAoLYWNjZXB0ZWRfYXQY+AMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgpyZXZva2VkX2F0GPkDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiSwoFU3RhdGUSDQoJVU5ERUZJTkVEEAASCwoHUEVORElORxABEgwKCEFDQ0VQVEVEEAISCwoHUkVWT0tFRBADEgsKB0VYUElSRUQQBEKRAQoMY29tLnR5cGVzLnYxQhFPcmdhbml6YXRpb25Qcm90b1ABWi1naXRodWIuY29tL2h1bWFubG9naW8vYXBpL2dvL3R5cGVzL3YxO3R5cGVzdjGiAgNUWFiqAghUeXBlcy5WMcoCCFR5cGVzXFYx4gIUVHlwZXNcVjFcR1BCTWV0YWRhdGHqAglUeXBlczo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_protobuf_timestamp, file_types_v1_user]); /** * @generated from message types.v1.Organization @@ -54,47 +54,42 @@ export type Invitation = Message<"types.v1.Invitation"> & { id: bigint; /** - * @generated from field: types.v1.Organization invited_to = 2; - */ - invitedTo?: Organization; - - /** - * @generated from field: types.v1.PublicUser invited_by = 3; + * @generated from field: types.v1.PublicUser invited_by = 2; */ invitedBy?: PublicUser; /** - * @generated from field: string invited_user_email = 4; + * @generated from field: string invited_user_email = 3; */ invitedUserEmail: string; /** - * @generated from field: types.v1.Invitation.State state = 5; + * @generated from field: types.v1.Invitation.State state = 4; */ state: Invitation_State; /** - * @generated from field: google.protobuf.Timestamp created_at = 6; + * @generated from field: google.protobuf.Timestamp created_at = 501; */ createdAt?: Timestamp; /** - * @generated from field: google.protobuf.Timestamp updated_at = 7; + * @generated from field: google.protobuf.Timestamp updated_at = 502; */ updatedAt?: Timestamp; /** - * @generated from field: google.protobuf.Timestamp expires_at = 8; + * @generated from field: google.protobuf.Timestamp expires_at = 503; */ expiresAt?: Timestamp; /** - * @generated from field: google.protobuf.Timestamp accepted_at = 9; + * @generated from field: google.protobuf.Timestamp accepted_at = 504; */ acceptedAt?: Timestamp; /** - * @generated from field: google.protobuf.Timestamp revoked_at = 10; + * @generated from field: google.protobuf.Timestamp revoked_at = 505; */ revokedAt?: Timestamp; }; diff --git a/proto/types/v1/organization.proto b/proto/types/v1/organization.proto index c86dc21..429a065 100644 --- a/proto/types/v1/organization.proto +++ b/proto/types/v1/organization.proto @@ -27,13 +27,12 @@ message Invitation { EXPIRED = 4; } int64 id = 1; - Organization invited_to = 2; - PublicUser invited_by = 3; - string invited_user_email = 4; - State state = 5; - google.protobuf.Timestamp created_at = 6; - google.protobuf.Timestamp updated_at = 7; - google.protobuf.Timestamp expires_at = 8; - google.protobuf.Timestamp accepted_at = 9; - google.protobuf.Timestamp revoked_at = 10; + PublicUser invited_by = 2; + string invited_user_email = 3; + State state = 4; + google.protobuf.Timestamp created_at = 501; + google.protobuf.Timestamp updated_at = 502; + google.protobuf.Timestamp expires_at = 503; + google.protobuf.Timestamp accepted_at = 504; + google.protobuf.Timestamp revoked_at = 505; }