ai.newnal.mydata.lifestyleHabits

Recurring lifestyle habits such as sleep, exercise, meals, consumption of indulgences and daily routines. They are lasting behaviour patterns, not exact schedules, and are written with a frequency and an approximate time of day. Schedules with a set date and time are kept in profile.scheduleActivities.

Details · record, key tid
Kindrecord
Record keytid
Authoritymydata.newnal.ai
Commit rev3n2lk5rjzfw23
Indexed
cid bafyreif3o6ctybtyeckn7bvt3r3rlxprp2auieunr6khlrrbeqtvlwgqpi

Checks

Valid
  • large-string defs.entry.properties.notesmaxLength is over 20 KB. Use a blob for content that large.
  • field-name-syntax defs.main.record.properties._metaThe field name _meta should be letters and digits, starting with a letter.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "description": "One lifestyle habit.",
      "properties": {
        "activity": {
          "description": "The recurring activity.",
          "knownValues": [
            "walking",
            "strength_training",
            "stretching",
            "running",
            "yoga",
            "cycling",
            "caffeine",
            "alcohol",
            "nicotine",
            "supplement",
            "sugar",
            "screen_time",
            "home_cooking",
            "late_night_snack",
            "meal_prep",
            "late_breakfast",
            "snacking"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "category": {
          "description": "The semantic category of the habit activity. Not a time of day.",
          "knownValues": [
            "sleep",
            "exercise",
            "eating",
            "consumption",
            "routine"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "frequency": {
          "description": "The usual frequency of recurrence.",
          "knownValues": [
            "daily",
            "several_times_weekly",
            "weekly",
            "occasional",
            "rarely"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "notes": {
          "description": "A note summarizing the details of the habit, such as sleep duration and quality or exercise intensity.",
          "maxGraphemes": 3000,
          "maxLength": 30000,
          "type": "string"
        },
        "tags": {
          "description": "List of the tags for the meaning, traits or context the user gave to or adopted for this habit. A tag itself does not decide visibility or access rights: disclosure is decided by a separate user permission policy.",
          "items": {
            "description": "One item of the list of the tags for the meaning, traits or context the user gave to or adopted for this habit.",
            "knownValues": [
              "home",
              "work",
              "planning",
              "health",
              "care",
              "cardio",
              "strength",
              "wellness",
              "mobility",
              "sports",
              "outdoor"
            ],
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        },
        "usualTiming": {
          "description": "The approximate time of day or temporal context of the activity.",
          "knownValues": [
            "morning",
            "midday",
            "evening",
            "workday",
            "weekend",
            "commute"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "Recurring lifestyle habits such as sleep, exercise, meals, consumption of indulgences and daily routines. They are lasting behaviour patterns, not exact schedules, and are written with a frequency and an approximate time of day. Schedules with a set date and time are kept in profile.scheduleActivities.",
      "key": "tid",
      "record": {
        "properties": {
          "_meta": {
            "ref": "ai.newnal.mydata.defs#recordMeta",
            "type": "ref"
          },
          "data": {
            "closed": true,
            "refs": [
              "#entry"
            ],
            "type": "union"
          }
        },
        "required": [
          "data",
          "_meta"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.mydata.lifestyleHabits",
  "lexicon": 1
}