#pragma once
#include "esp_event.h"

#define AUTH_EVENT_TAG_MAX_LEN 32

ESP_EVENT_DECLARE_BASE(AUTH_EVENTS);

typedef enum {
    AUTH_EVENT_TAG_PROCESSED,
    AUTH_EVENT_TAG_SAVED,
    AUTH_EVENT_ENABLED_CHANGED,
    AUTH_EVENT_INIT,
} auth_event_id_t;

typedef struct {
    char tag[AUTH_EVENT_TAG_MAX_LEN];
    bool authorized;
} auth_tag_event_data_t;

typedef struct {
    bool enabled;
} auth_enabled_event_data_t;
