Skip to content

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

471 B
Raw Blame
export type NodeCollaboratorCreateMutationInput = {
  type: 'node.collaborator.create';
  userId: string;
  nodeId: string;
  collaboratorIds: string[];
  role: string;
};

export type NodeCollaboratorCreateMutationOutput = {
  success: boolean;
};

declare module '@colanode/client/mutations' {
  interface MutationMap {
    'node.collaborator.create': {
      input: NodeCollaboratorCreateMutationInput;
      output: NodeCollaboratorCreateMutationOutput;
    };
  }
}