This interface defines the structure of a Workspace object.
import { WorkspaceRole } from './workspace-role';

export interface Workspace {
    id?: string;
    organization_id?: string;
    name?: string;
    slug?: string;
    description?: string;
    created_at?: string;
    updated_at?: string;
    member_count?: number;
    roles?: WorkspaceRole[];
}

Properties

  • id (string, optional): The unique identifier of the workspace.
  • organization_id (string, optional): The ID of the organization this workspace belongs to.
  • name (string, optional): The name of the workspace.
  • slug (string, optional): The URL-friendly slug of the workspace.
  • description (string, optional): A description of the workspace.
  • created_at (string, optional): The timestamp when the workspace was created.
  • updated_at (string, optional): The timestamp when the workspace was last updated.
  • member_count (number, optional): The number of members in the workspace.
  • roles (WorkspaceRole[], optional): A list of roles defined within this workspace.