full diff

ai.newnal.mydata.lifestyleHabits

From
bafyreif3o6ctybtyeckn7bvt3r3rlxprp2auieunr6khlrrbeqtvlwgqpi indexed 2026-11-18 12:19 UTC View this version
To
bafyreialbcenvgc4zr4oa252uzwa2lvsit3ywmgk4qi2ubhoipjsupizsu indexed 2026-11-23 10:40 UTC View this version

Compatibility

breaking 1 breaking change, 7 non-breaking changes.

Breaking changes (1)
  • ConstraintTightened ConstraintTightened { vertex_id: "ai.newnal.mydata.lifestyleHabits#entry.activity", sort: "knownValues", old_value: "[\"walking\",\"strength_training\",\"stretching\",\"running\",\"yoga\",\"cycling\",\"caffeine\",\"alcohol\",\"nicotine\",\"supplement\",\"sugar\",\"screen_time\",\"home_cooking\",\"late_night_snack\",\"meal_prep\",\"late_breakfast\",\"snacking\"]", new_value: "[\"walking\",\"strength_training\",\"stretching\",\"running\",\"yoga\",\"cycling\",\"caffeine\",\"alcohol\",\"nicotine\",\"supplement\",\"sugar\",\"screen_time\",\"home_cooking\",\"late_night_snack\",\"meal_prep\",\"late_breakfast\",\"snacking\",\"night_sleep\",\"nap\",\"meal\"]" }
Non-breaking changes (7)
  • AddedVertex AddedVertex { vertex_id: "ai.newnal.mydata.defs#localTime" }
  • AddedVertex AddedVertex { vertex_id: "ai.newnal.mydata.lifestyleHabits#entry.usualEndTime" }
  • AddedVertex AddedVertex { vertex_id: "ai.newnal.mydata.lifestyleHabits#entry.usualStartTime" }
  • AddedEdge AddedEdge { src: "ai.newnal.mydata.lifestyleHabits#entry", tgt: "ai.newnal.mydata.lifestyleHabits#entry.usualEndTime", kind: "prop", name: Some("usualEndTime") }
  • AddedEdge AddedEdge { src: "ai.newnal.mydata.lifestyleHabits#entry", tgt: "ai.newnal.mydata.lifestyleHabits#entry.usualStartTime", kind: "prop", name: Some("usualStartTime") }
  • AddedEdge AddedEdge { src: "ai.newnal.mydata.lifestyleHabits#entry.usualEndTime", tgt: "ai.newnal.mydata.defs#localTime", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "ai.newnal.mydata.lifestyleHabits#entry.usualStartTime", tgt: "ai.newnal.mydata.defs#localTime", kind: "ref", name: None }

Migration guidance

Added

  • AddedVertex { vertex_id: "ai.newnal.mydata.defs#localTime" }
  • AddedVertex { vertex_id: "ai.newnal.mydata.lifestyleHabits#entry.usualEndTime" }
  • AddedVertex { vertex_id: "ai.newnal.mydata.lifestyleHabits#entry.usualStartTime" }

Constraint changes

  • ConstraintTightened ConstraintTightened { vertex_id: "ai.newnal.mydata.lifestyleHabits#entry.activity", sort: "knownValues", old_value: "[\"walking\",\"strength_training\",\"stretching\",\"running\",\"yoga\",\"cycling\",\"caffeine\",\"alcohol\",\"nicotine\",\"supplement\",\"sugar\",\"screen_time\",\"home_cooking\",\"late_night_snack\",\"meal_prep\",\"late_breakfast\",\"snacking\"]", new_value: "[\"walking\",\"strength_training\",\"stretching\",\"running\",\"yoga\",\"cycling\",\"caffeine\",\"alcohol\",\"nicotine\",\"supplement\",\"sugar\",\"screen_time\",\"home_cooking\",\"late_night_snack\",\"meal_prep\",\"late_breakfast\",\"snacking\",\"night_sleep\",\"nap\",\"meal\"]" }

Notes

  • Non-breaking: AddedEdge { src: "ai.newnal.mydata.lifestyleHabits#entry", tgt: "ai.newnal.mydata.lifestyleHabits#entry.usualEndTime", kind: "prop", name: Some("usualEndTime") }
  • Non-breaking: AddedEdge { src: "ai.newnal.mydata.lifestyleHabits#entry", tgt: "ai.newnal.mydata.lifestyleHabits#entry.usualStartTime", kind: "prop", name: Some("usualStartTime") }
  • Non-breaking: AddedEdge { src: "ai.newnal.mydata.lifestyleHabits#entry.usualEndTime", tgt: "ai.newnal.mydata.defs#localTime", kind: "ref", name: None }
  • Non-breaking: AddedEdge { src: "ai.newnal.mydata.lifestyleHabits#entry.usualStartTime", tgt: "ai.newnal.mydata.defs#localTime", kind: "ref", name: None }

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "entry": {
55 "description": "One lifestyle habit.",
66 "properties": {
77 "activity": {
88 "description": "The recurring activity.",
99 "knownValues": [
1010 "walking",
1111 "strength_training",
1212 "stretching",
1313 "running",
1414 "yoga",
1515 "cycling",
1616 "caffeine",
1717 "alcohol",
1818 "nicotine",
1919 "supplement",
2020 "sugar",
2121 "screen_time",
2222 "home_cooking",
2323 "late_night_snack",
2424 "meal_prep",
2525 "late_breakfast",
26 "snacking"
26 "snacking",
27 "night_sleep",
28 "nap",
29 "meal"
2730 ],
2831 "maxGraphemes": 64,
2932 "maxLength": 640,
3033 "type": "string"
3134 },
3235 "category": {
3336 "description": "The semantic category of the habit activity. Not a time of day.",
3437 "knownValues": [
3538 "sleep",
3639 "exercise",
3740 "eating",
3841 "consumption",
3942 "routine"
4043 ],
4144 "maxGraphemes": 64,
4245 "maxLength": 640,
4346 "type": "string"
4447 },
4548 "frequency": {
4649 "description": "The usual frequency of recurrence.",
4750 "knownValues": [
4851 "daily",
4952 "several_times_weekly",
5053 "weekly",
5154 "occasional",
5255 "rarely"
5356 ],
5457 "maxGraphemes": 64,
5558 "maxLength": 640,
5659 "type": "string"
5760 },
5861 "notes": {
5962 "description": "A note summarizing the details of the habit, such as sleep duration and quality or exercise intensity.",
6063 "maxGraphemes": 3000,
6164 "maxLength": 30000,
6265 "type": "string"
6366 },
6467 "tags": {
6568 "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.",
6669 "items": {
6770 "description": "One item of the list of the tags for the meaning, traits or context the user gave to or adopted for this habit.",
6871 "knownValues": [
6972 "home",
7073 "work",
7174 "planning",
7275 "health",
7376 "care",
7477 "cardio",
7578 "strength",
7679 "wellness",
7780 "mobility",
7881 "sports",
7982 "outdoor"
8083 ],
8184 "maxGraphemes": 64,
8285 "maxLength": 640,
8386 "type": "string"
8487 },
8588 "maxLength": 100,
8689 "type": "array"
8790 },
91 "usualEndTime": {
92 "description": "The time of day the activity usually ends. For night sleep, the usual time of getting up.",
93 "ref": "ai.newnal.mydata.defs#localTime",
94 "type": "ref"
95 },
96 "usualStartTime": {
97 "description": "The time of day the activity usually starts. For night sleep, the usual bedtime.",
98 "ref": "ai.newnal.mydata.defs#localTime",
99 "type": "ref"
100 },
88101 "usualTiming": {
89102 "description": "The approximate time of day or temporal context of the activity.",
90103 "knownValues": [
91104 "morning",
92105 "midday",
93106 "evening",
94107 "workday",
95108 "weekend",
96109 "commute"
97110 ],
98111 "maxGraphemes": 64,
99112 "maxLength": 640,
100113 "type": "string"
101114 }
102115 },
103116 "type": "object"
104117 },
105118 "main": {
106119 "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.",
107120 "key": "tid",
108121 "record": {
109122 "properties": {
110123 "_meta": {
111124 "ref": "ai.newnal.mydata.defs#recordMeta",
112125 "type": "ref"
113126 },
114127 "data": {
115128 "closed": true,
116129 "refs": [
117130 "#entry"
118131 ],
119132 "type": "union"
120133 }
121134 },
122135 "required": [
123136 "data",
124137 "_meta"
125138 ],
126139 "type": "object"
127140 },
128141 "type": "record"
129142 }
130143 },
131144 "id": "ai.newnal.mydata.lifestyleHabits",
132145 "lexicon": 1
133146}

Compare other versions