{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fulcradynamics-com/json-schema/fulcradynamics-com-fulcra-user-preferences-schema.json",
  "title": "FulcraUserPreferences",
  "description": "A Fulcra user's preferences",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fulcradynamics-com-openapi.json#/components/schemas/FulcraUserPreferences",
  "properties": {
    "calendar_events_data_track_filter_map": {
      "anyOf": [
        {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Calendar Events Data Track Filter Map"
    },
    "calendars": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Calendars"
    },
    "location_resolution": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Location Resolution"
    },
    "periods_of_day": {
      "anyOf": [
        {
          "$ref": "#/$defs/PeriodsOfDay"
        },
        {
          "type": "null"
        }
      ],
      "default": {
        "afternoon": "12:00:00",
        "end_of_day": "21:00:00",
        "evening": "18:00:00",
        "morning": "08:00:00"
      },
      "description": "User defined periods of the day"
    },
    "pinned_metrics_count_map": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pinned Metrics Count Map"
    },
    "selected_calendar_vendor_ids": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Selected Calendar Vendor Ids"
    },
    "selected_metrics": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Selected Metrics"
    },
    "selected_metrics_map": {
      "anyOf": [
        {
          "additionalProperties": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Selected Metrics Map"
    },
    "timezone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Timezone"
    }
  },
  "type": "object",
  "$defs": {
    "PeriodsOfDay": {
      "additionalProperties": false,
      "properties": {
        "afternoon": {
          "type": "string"
        },
        "end_of_day": {
          "type": "string"
        },
        "evening": {
          "type": "string"
        },
        "morning": {
          "type": "string"
        }
      },
      "required": [
        "morning",
        "afternoon",
        "evening",
        "end_of_day"
      ],
      "type": "object"
    }
  }
}