C15T Logo

API Reference

Comprehensive guide to using the c15t package for managing privacy consents.

Core Package API Reference

The core package (c15t) provides the fundamental functionality for managing privacy consents in your application. This reference documents the main types, interfaces, and functions available in the package.

Store API

The core package implements a robust state management system for handling privacy consents. The store provides methods for:

  • Managing consent states
  • Persisting consent data
  • Validating consent configurations

For detailed implementation examples, refer to the Getting Started guide.

The PrivacyConsentState type represents the current state of privacy consents in your application. It contains information about user preferences, consent categories, and their respective settings.

Property
Types

The ConsentType type defines the structure of individual consent categories and their properties.

Property
Types

Translation Configuration

The defaultTranslationConfig provides the default translation settings for the consent management interface.

Property
Types

Tracking Blocker Configuration

The TrackingBlockerConfig type defines the configuration options for the tracking blocker functionality.

Property
Types

Additional Types

Property
Types

Compliance Settings

Property
Types

Privacy Settings

Property
Types

Translation Types

Property
Types
Property
Types
Edit on GitHub

Last updated: June 23, 2025