Function unsealEventsResponse

  • Decrypts the sealed response with the provided keys. The SDK will try to decrypt the result with each key until it succeeds. To learn more about sealed results visit: https://dev.fingerprint.com/docs/sealed-client-results

    Parameters

    Returns Promise<
        {
            bot?: "bad"
            | "good"
            | "not_detected";
            bot_info?: {
                category: string;
                confidence: "high" | "low" | "medium";
                identity: "unknown" | "verified" | "signed" | "spoofed";
                name: string;
                provider: string;
                provider_url?: string;
            };
            bot_type?: string;
            browser_details?: {
                browser_full_version: string;
                browser_major_version: string;
                browser_name: string;
                device: string;
                os: string;
                os_version: string;
            };
            bundle_id?: string;
            client_referrer?: string;
            cloned_app?: boolean;
            developer_tools?: boolean;
            emulator?: boolean;
            environment_id?: string;
            event_id: string;
            factory_reset_timestamp?: number;
            frida?: boolean;
            high_activity_device?: boolean;
            identification?: {
                confidence?: { comment?: string; score: number; version?: string };
                first_seen_at?: number;
                last_seen_at?: number;
                visitor_found: boolean;
                visitor_id: string;
            };
            incognito?: boolean;
            ip_address?: string;
            ip_blocklist?: {
                attack_source?: boolean;
                email_spam?: boolean;
                tor_node?: boolean;
            };
            ip_info?: {
                v4?: {
                    address: string;
                    asn?: string;
                    asn_name?: string;
                    asn_network?: string;
                    asn_type?: string;
                    datacenter_name?: string;
                    datacenter_result?: boolean;
                    geolocation?: {
                        accuracy_radius?: number;
                        city_name?: string;
                        continent_code?: string;
                        continent_name?: string;
                        country_code?: string;
                        country_name?: string;
                        latitude?: number;
                        longitude?: number;
                        postal_code?: string;
                        subdivisions?: { iso_code: ...; name: ... }[];
                        timezone?: string;
                    };
                };
                v6?: {
                    address: string;
                    asn?: string;
                    asn_name?: string;
                    asn_network?: string;
                    asn_type?: string;
                    datacenter_name?: string;
                    datacenter_result?: boolean;
                    geolocation?: {
                        accuracy_radius?: number;
                        city_name?: string;
                        continent_code?: string;
                        continent_name?: string;
                        country_code?: string;
                        country_name?: string;
                        latitude?: number;
                        longitude?: number;
                        postal_code?: string;
                        subdivisions?: { iso_code: ...; name: ... }[];
                        timezone?: string;
                    };
                };
            };
            jailbroken?: boolean;
            linked_id?: string;
            location_spoofing?: boolean;
            mitm_attack?: boolean;
            package_name?: string;
            privacy_settings?: boolean;
            proximity?: {
                confidence: number;
                id: string;
                precision_radius: 10
                | 25
                | 65
                | 175
                | 450
                | 1200
                | 3300
                | 8500
                | 22500;
            };
            proxy?: boolean;
            proxy_confidence?: "high"
            | "low"
            | "medium";
            proxy_details?: {
                last_seen_at?: number;
                provider?: string;
                proxy_type: "residential" | "data_center";
            };
            raw_device_attributes?: {
                architecture?: number;
                audio?: number;
                canvas?: { geometry?: string; text?: string; winding?: boolean };
                color_depth?: number;
                cookies_enabled?: boolean;
                date_time_locale?: string;
                device_memory?: number;
                emoji?: {
                    bottom?: number;
                    font?: string;
                    height?: number;
                    left?: number;
                    right?: number;
                    top?: number;
                    width?: number;
                    x?: number;
                    y?: number;
                };
                font_preferences?: {
                    apple?: number;
                    default?: number;
                    min?: number;
                    mono?: number;
                    sans?: number;
                    serif?: number;
                    system?: number;
                };
                fonts?: string[];
                hardware_concurrency?: number;
                indexed_db?: boolean;
                languages?: string[][];
                local_storage?: boolean;
                math?: string;
                oscpu?: string;
                platform?: string;
                plugins?: {
                    description?: string;
                    mimeTypes?: {
                        description?: (...)
                        | (...);
                        suffixes?: (...) | (...);
                        type?: (...) | (...);
                    }[];
                    name: string;
                }[];
                screen_resolution?: number[];
                session_storage?: boolean;
                timezone?: string;
                touch_support?: {
                    max_touch_points?: number;
                    touch_event?: boolean;
                    touch_start?: boolean;
                };
                vendor?: string;
                webgl_basics?: {
                    renderer?: string;
                    renderer_unmasked?: string;
                    shading_language_version?: string;
                    vendor?: string;
                    vendor_unmasked?: string;
                    version?: string;
                };
                webgl_extensions?: {
                    context_attributes?: string;
                    extension_parameters?: string;
                    extensions?: string;
                    parameters?: string;
                    shader_precisions?: string;
                    unsupported_extensions?: string[];
                };
            };
            replayed?: boolean;
            root_apps?: boolean;
            rule_action?: | {
                request_header_modifications?: {
                    append?: { name: string; value: string }[];
                    remove?: string[];
                    set?: { name: string; value: string }[];
                };
                rule_expression?: string;
                rule_id?: string;
                ruleset_id: string;
                type: "allow";
            }
            | {
                body?: string;
                headers?: { name: string; value: string }[];
                rule_expression?: string;
                rule_id?: string;
                ruleset_id: string;
                status_code?: number;
                type: "block";
            };
            sdk?: {
                integrations?: {
                    name?: string;
                    subintegration?: { name?: string; version?: string };
                    version?: string;
                }[];
                platform: "unknown"
                | "js"
                | "android"
                | "ios";
                version: string;
            };
            supplementary_id_high_recall?: {
                confidence?: { comment?: string; score: number; version?: string };
                first_seen_at?: number;
                last_seen_at?: number;
                visitor_found: boolean;
                visitor_id: string;
            };
            suspect?: boolean;
            suspect_score?: number;
            tags?: { [key: string]: unknown };
            tampering?: boolean;
            tampering_details?: {
                anomaly_score?: number;
                anti_detect_browser?: boolean;
            };
            timestamp: number;
            url?: string;
            user_agent?: string;
            velocity?: {
                distinct_country?: {
                    "1_hour": number;
                    "24_hours"?: number;
                    "5_minutes": number;
                };
                distinct_ip?: {
                    "1_hour": number;
                    "24_hours"?: number;
                    "5_minutes": number;
                };
                distinct_ip_by_linked_id?: {
                    "1_hour": number;
                    "24_hours"?: number;
                    "5_minutes": number;
                };
                distinct_linked_id?: {
                    "1_hour": number;
                    "24_hours"?: number;
                    "5_minutes": number;
                };
                distinct_visitor_id_by_linked_id?: {
                    "1_hour": number;
                    "24_hours"?: number;
                    "5_minutes": number;
                };
                events?: { "1_hour": number; "24_hours"?: number; "5_minutes": number };
                ip_events?: {
                    "1_hour": number;
                    "24_hours"?: number;
                    "5_minutes": number;
                };
            };
            virtual_machine?: boolean;
            vpn?: boolean;
            vpn_confidence?: "high"
            | "low"
            | "medium";
            vpn_methods?: {
                auxiliary_mobile?: boolean;
                os_mismatch?: boolean;
                public_vpn?: boolean;
                relay?: boolean;
                timezone_mismatch?: boolean;
            };
            vpn_origin_country?: string;
            vpn_origin_timezone?: string;
        },
    >

    UnsealAggregateError

    Error