@adcp/client API Reference - v3.11.2
    Preparing search index...

    Interface SIIdentity

    User identity shared with brand agent (with explicit consent)

    interface SIIdentity {
        consent_granted: boolean;
        consent_timestamp?: string;
        consent_scope?: (
            "name"
            | "email"
            | "phone"
            | "shipping_address"
            | "locale"
        )[];
        privacy_policy_acknowledged?: {
            brand_policy_url?: string;
            brand_policy_version?: string;
            [k: string]: unknown;
        };
        user?: {
            email?: string;
            name?: string;
            locale?: string;
            phone?: string;
            shipping_address?: {
                street?: string;
                city?: string;
                state?: string;
                postal_code?: string;
                country?: string;
                [k: string]: unknown;
            };
            [k: string]: unknown;
        };
        anonymous_session_id?: string;
        [k: string]: unknown;
    }

    Indexable

    • [k: string]: unknown
    Index

    Properties

    consent_granted: boolean

    Whether user consented to share identity

    consent_timestamp?: string

    When consent was granted (ISO 8601)

    consent_scope?: ("name" | "email" | "phone" | "shipping_address" | "locale")[]

    What data was consented to share

    privacy_policy_acknowledged?: {
        brand_policy_url?: string;
        brand_policy_version?: string;
        [k: string]: unknown;
    }

    Brand privacy policy acknowledgment

    Type Declaration

    • [k: string]: unknown
    • Optionalbrand_policy_url?: string

      URL to brand's privacy policy

    • Optionalbrand_policy_version?: string

      Version of policy acknowledged

    user?: {
        email?: string;
        name?: string;
        locale?: string;
        phone?: string;
        shipping_address?: {
            street?: string;
            city?: string;
            state?: string;
            postal_code?: string;
            country?: string;
            [k: string]: unknown;
        };
        [k: string]: unknown;
    }

    User data (only present if consent_granted is true)

    Type Declaration

    • [k: string]: unknown
    • Optionalemail?: string

      User's email address

    • Optionalname?: string

      User's display name

    • Optionallocale?: string

      User's locale (e.g., en-US)

    • Optionalphone?: string

      User's phone number

    • Optionalshipping_address?: {
          street?: string;
          city?: string;
          state?: string;
          postal_code?: string;
          country?: string;
          [k: string]: unknown;
      }

      User's shipping address for accurate pricing

    anonymous_session_id?: string

    Session ID for anonymous users (when consent_granted is false)