/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2026.8.0-rc7 * Contact: hello@goauthentik.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * Count of unique users in events and aggregated counts per specified deltas * @export * @interface EventStats */ export interface EventStats { /** * * @type {number} * @memberof EventStats */ uniqueUsers: number; /** * * @type {{ [key: string]: any; }} * @memberof EventStats */ countStep: { [key: string]: any; }; } /** * Check if a given object implements the EventStats interface. */ export function instanceOfEventStats(value: object): value is EventStats { if (!('uniqueUsers' in value) || value['uniqueUsers'] === undefined) return false; if (!('countStep' in value) || value['countStep'] === undefined) return false; return true; } export function EventStatsFromJSON(json: any): EventStats { return EventStatsFromJSONTyped(json, false); } export function EventStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventStats { if (json == null) { return json; } return { 'uniqueUsers': json['unique_users'], 'countStep': json['count_step'], }; } export function EventStatsToJSON(json: any): EventStats { return EventStatsToJSONTyped(json, false); } export function EventStatsToJSONTyped(value?: EventStats | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'unique_users': value['uniqueUsers'], 'count_step': value['countStep'], }; }