@shortcut/client
    Preparing search index...

    Interface ShortcutSessionTrigger

    What started a session. The known shapes are the ShortcutInteractionTrigger variants, and every one of them is assignable here. The session is the event, so only the entity reference is required and each per-type field is checked for its type, never for this version's enum values or for the combination a known type usually carries: a value Shortcut adds within envelope v1 must not stall the session with a 400. Narrowing on type therefore leaves the per-type fields optional.

    interface ShortcutSessionTrigger {
        comment_id?: string;
        comment_parent_id?: string | null;
        context?: "comment" | "description" | string & {};
        entity_id: string;
        entity_type: string;
        parent_comment_id?: string;
        type: "assigned" | "comment-reply" | "mentioned" | string & {};
    }
    Index

    Properties

    comment_id?: string

    comment-reply and a mentioned in a comment.

    comment_parent_id?: string | null

    mentioned in a Story comment: the parent comment's id for a reply, null for a top-level comment. Always null for an Epic comment, even a reply.

    context?: "comment" | "description" | string & {}

    mentioned only. The values this version knows, or one Shortcut added later.

    entity_id: string
    entity_type: string
    parent_comment_id?: string

    comment-reply only.

    type: "assigned" | "comment-reply" | "mentioned" | string & {}