prorm API Reference
    Preparing search index...

    Interface ConsentGrantOptions

    interface ConsentGrantOptions {
        subjectId: string;
        purpose: string;
        legalBasis?: LegalBasis | LegalBasisEnum;
        version?: string;
        ipAddress?: string;
        metadata?: Record<string, any>;
    }
    Index
    subjectId: string

    Unique identifier of the data subject

    purpose: string

    Purpose of the processing (e.g. 'marketing_emails', 'analytics')

    legalBasis?: LegalBasis | LegalBasisEnum

    GDPR/equivalent legal basis for processing

    version?: string

    Version of the privacy notice / consent form shown

    ipAddress?: string

    IP address of the consenting user

    metadata?: Record<string, any>

    Additional metadata (e.g. consent UI element ID, A/B test variant)