Skip to content

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

607 B
Raw Blame
import { NodeRole } from '@colanode/core/registry/nodes/core';

export type SyncCollaborationsInput = {
  type: 'collaborations';
};

export type SyncCollaborationData = {
  collaboratorId: string;
  nodeId: string;
  workspaceId: string;
  role: NodeRole;
  createdAt: string;
  createdBy: string;
  updatedAt: string | null;
  updatedBy: string | null;
  deletedAt: string | null;
  deletedBy: string | null;
  revision: string;
};

declare module '@colanode/core' {
  interface SynchronizerMap {
    collaborations: {
      input: SyncCollaborationsInput;
      data: SyncCollaborationData;
    };
  }
}