{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/surfsessionfinder-com/json-schema/surfsessionfinder-com-user-preference-response-schema.json",
  "title": "UserPreferenceResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/surfsessionfinder-com-openapi.json#/components/schemas/UserPreferenceResponse",
  "properties": {
    "GUID": {
      "type": "string",
      "title": "Guid"
    },
    "CHANNEL": {
      "$ref": "#/$defs/ChannelType"
    },
    "CHANNEL_USER_IDENTITY": {
      "type": "string",
      "title": "Channel User Identity"
    },
    "DAYS_AHEAD": {
      "type": "integer",
      "title": "Days Ahead",
      "default": 0
    },
    "FOR_LEVELS": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "For Levels"
    },
    "SIDE_PREFERENCE": {
      "items": {
        "$ref": "#/$defs/SessionSide"
      },
      "type": "array",
      "title": "Side Preference",
      "default": []
    },
    "PREFERRED_DAY_OF_WEEK": {
      "items": {
        "type": "integer"
      },
      "type": "array",
      "title": "Preferred Day Of Week",
      "default": [
        0
      ]
    },
    "PREFERRED_TIME_OF_DAY": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Preferred Time Of Day",
      "default": []
    },
    "AVAILABLE_MIN": {
      "type": "integer",
      "title": "Available Min",
      "default": 1
    },
    "EXPIRY_PERIOD": {
      "type": "integer",
      "title": "Expiry Period",
      "default": 2
    },
    "FREQUENCY": {
      "type": "string",
      "title": "Frequency",
      "default": "once"
    },
    "START_TIME": {
      "type": "integer",
      "title": "Start Time",
      "default": 24
    },
    "IS_ACTIVE": {
      "type": "boolean",
      "title": "Is Active"
    },
    "CREATED_AT": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "FCM_TOKEN": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Fcm Token"
    },
    "POOL_ID": {
      "type": "string",
      "title": "Pool Id"
    }
  },
  "type": "object",
  "required": [
    "GUID",
    "CHANNEL",
    "CHANNEL_USER_IDENTITY",
    "FOR_LEVELS",
    "IS_ACTIVE",
    "CREATED_AT",
    "POOL_ID"
  ],
  "$defs": {
    "ChannelType": {
      "type": "string",
      "enum": [
        "EMAIL",
        "WHATSAPP",
        "TELEGRAM"
      ],
      "title": "ChannelType"
    },
    "SessionSide": {
      "type": "string",
      "enum": [
        "LEFT",
        "RIGHT"
      ],
      "title": "SessionSide"
    }
  }
}