Creating Plot Twists
    Preparing search index...

    Type Alias Note

    Note: ActivityCommon & {
        key: string | null;
        activity: Activity;
        content: string | null;
        links: Link[] | null;
        reNote: { id: Uuid } | null;
    }

    Represents a note within an activity.

    Notes contain the detailed content (note text, links) associated with an activity. They are always ordered by creation time within their parent activity.

    Type Declaration

    • key: string | null

      Globally unique, stable identifier for the note within its activity. Can be used to upsert without knowing the id.

      Use one of these patterns:

      • Hardcoded semantic keys for fixed note types: "description", "cancellation"
      • External service IDs for dynamic collections: comment:${immutableId}

      Examples:

      • "description" (for a Jira issue's description note)
      • "comment:12345" (for a specific comment by ID)
      • "gmail:msg:18d4e5f2a3b1c9d7" (for a Gmail message within a thread)

      ⚠️ Ensure IDs are immutable - avoid human-readable slugs or titles.

    • activity: Activity

      The parent activity this note belongs to

    • content: string | null

      Primary content for the note (markdown)

    • links: Link[] | null

      Array of interactive links attached to the note

    • reNote: { id: Uuid } | null

      The note this is a reply to, or null if not a reply