Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 82 additions & 22 deletions gen/go/identity/v1/organizations.pb.go

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

32 changes: 29 additions & 3 deletions gen/ts/identity/v1/organizations_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { Message } from "@bufbuild/protobuf";
* Describes the file identity/v1/organizations.proto.
*/
export const file_identity_v1_organizations: GenFile = /*@__PURE__*/
fileDesc("Ch9pZGVudGl0eS92MS9vcmdhbml6YXRpb25zLnByb3RvEgtpZGVudGl0eS52MSJmCgxPcmdhbml6YXRpb24SCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRIMCgRzbHVnGAMgASgJEi4KCmNyZWF0ZWRfYXQYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIuYBCgZNZW1iZXISDwoHdXNlcl9pZBgBIAEoCRIXCg9vcmdhbml6YXRpb25faWQYAiABKAkSDQoFZW1haWwYAyABKAkSDAoEbmFtZRgEIAEoCRIPCgdwaWN0dXJlGAUgASgJEgwKBHJvbGUYBiABKAkSDgoGc3RhdHVzGAcgASgJEhkKEWlkZW50aXR5X3Byb3ZpZGVyGAggASgJEhsKE3Byb3Zpc2lvbmluZ19zb3VyY2UYCSABKAkSLgoKY3JlYXRlZF9hdBgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAi2gEKBkFQSUtleRIKCgJpZBgBIAEoCRIXCg9vcmdhbml6YXRpb25faWQYAiABKAkSDAoEbmFtZRgDIAEoCRIOCgZwcmVmaXgYBCABKAkSEAoIcHJvdmlkZXIYBSABKAkSDAoEcm9sZRgGIAEoCRINCgVsYWJlbBgHIAEoCRIuCgpjcmVhdGVkX2F0GAggASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWV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UucHJvdG9idWYuVGltZXN0YW1wQjhaNmdpdGh1Yi5jb20vZXZhbG9wcy9wcm90by9nZW4vZ28vaWRlbnRpdHkvdjE7aWRlbnRpdHl2MWIGcHJvdG8z", [file_google_protobuf_timestamp]);

/**
* Organization is the canonical org/workspace type.
Expand Down Expand Up @@ -49,6 +49,32 @@ export type Organization = Message<"identity.v1.Organization"> & {
export const OrganizationSchema: GenMessage<Organization> = /*@__PURE__*/
messageDesc(file_identity_v1_organizations, 0);

/**
* OrganizationMembership is the canonical "org plus this user's role in it"
* view. It replaces chat's WorkspaceInfo without pushing membership-scoped
* fields onto Organization itself.
*
* @generated from message identity.v1.OrganizationMembership
*/
export type OrganizationMembership = Message<"identity.v1.OrganizationMembership"> & {
/**
* @generated from field: identity.v1.Organization organization = 1;
*/
organization?: Organization;

/**
* @generated from field: string role = 2;
*/
role: string;
};

/**
* Describes the message identity.v1.OrganizationMembership.
* Use `create(OrganizationMembershipSchema)` to create a new message.
*/
export const OrganizationMembershipSchema: GenMessage<OrganizationMembership> = /*@__PURE__*/
messageDesc(file_identity_v1_organizations, 1);

/**
* Member is the canonical org membership type.
* Unifies gate's OrgMember and chat's WorkspaceMemberInfo.
Expand Down Expand Up @@ -112,7 +138,7 @@ export type Member = Message<"identity.v1.Member"> & {
* Use `create(MemberSchema)` to create a new message.
*/
export const MemberSchema: GenMessage<Member> = /*@__PURE__*/
messageDesc(file_identity_v1_organizations, 1);
messageDesc(file_identity_v1_organizations, 2);

/**
* APIKey is the canonical API key type.
Expand Down Expand Up @@ -172,5 +198,5 @@ export type APIKey = Message<"identity.v1.APIKey"> & {
* Use `create(APIKeySchema)` to create a new message.
*/
export const APIKeySchema: GenMessage<APIKey> = /*@__PURE__*/
messageDesc(file_identity_v1_organizations, 2);
messageDesc(file_identity_v1_organizations, 3);

8 changes: 8 additions & 0 deletions proto/identity/v1/organizations.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ message Organization {
google.protobuf.Timestamp created_at = 4;
}

// OrganizationMembership is the canonical "org plus this user's role in it"
// view. It replaces chat's WorkspaceInfo without pushing membership-scoped
// fields onto Organization itself.
message OrganizationMembership {
Organization organization = 1;
string role = 2;
}

// Member is the canonical org membership type.
// Unifies gate's OrgMember and chat's WorkspaceMemberInfo.
message Member {
Expand Down
Loading