Creating Plot Twists
    Preparing search index...

    Type Alias NoteUpdate

    NoteUpdate: ({ id: Uuid } | { key: string }) & Partial<
        Pick<Note, "draft" | "private" | "archived" | "content" | "links">,
    > & {
        contentType?: ContentType;
        tags?: NewTags;
        twistTags?: Partial<Record<Tag, boolean>>;
        mentions?: NewActor[];
    }

    Type for updating existing notes. Must provide either id or key to identify the note to update.

    Type Declaration

    • { id: Uuid }
    • { key: string }
    • OptionalcontentType?: ContentType

      Format of the note content. Determines how the note is processed:

      • 'text': Plain text that will be converted to markdown (auto-links URLs, preserves line breaks)
      • 'markdown': Already in markdown format (default, no conversion)
      • 'html': HTML content that will be converted to markdown
    • Optionaltags?: NewTags

      Tags to change on the note. Use an empty array of NewActor to remove a tag. Use twistTags to add/remove the twist from tags to avoid clearing other actors' tags.

    • OptionaltwistTags?: Partial<Record<Tag, boolean>>

      Add or remove the twist's tags. Maps tag ID to boolean: true = add tag, false = remove tag. This is allowed on all notes the twist has access to.

    • Optionalmentions?: NewActor[]

      Change the mentions on the note.