Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

432 B
Raw Blame
import { WorkspaceRole } from '@colanode/core';

export type UserRoleUpdateMutationInput = {
  type: 'user.role.update';
  userId: string;
  role: WorkspaceRole;
};

export type UserRoleUpdateMutationOutput = {
  success: boolean;
};

declare module '@colanode/client/mutations' {
  interface MutationMap {
    'user.role.update': {
      input: UserRoleUpdateMutationInput;
      output: UserRoleUpdateMutationOutput;
    };
  }
}