Data Models
Config
- pydantic model pylibrelinkup.models.config.AlarmRules[source]
Bases:
ConfigBaseModelAlarmRules class to store alarm rules data.
Show JSON schema
{ "title": "AlarmRules", "description": "AlarmRules class to store alarm rules data.", "type": "object", "properties": { "c": { "default": false, "title": "C", "type": "boolean" }, "h": { "$ref": "#/$defs/H" }, "f": { "$ref": "#/$defs/F" }, "l": { "$ref": "#/$defs/L" }, "nd": { "$ref": "#/$defs/Nd" }, "p": { "default": 0, "title": "P", "type": "integer" }, "r": { "default": 0, "title": "R", "type": "integer" }, "std": { "$ref": "#/$defs/Std" } }, "$defs": { "F": { "description": "F class to store F data.", "properties": { "th": { "default": 0, "title": "Th", "type": "integer" }, "thmm": { "default": 0.0, "title": "Thmm", "type": "number" }, "d": { "default": 0, "title": "D", "type": "integer" }, "tl": { "default": 0, "title": "Tl", "type": "integer" }, "tlmm": { "default": 0.0, "title": "Tlmm", "type": "number" } }, "title": "F", "type": "object" }, "H": { "description": "H class to store H data.", "properties": { "th": { "default": 0, "title": "Th", "type": "integer" }, "thmm": { "default": 0.0, "title": "Thmm", "type": "number" }, "d": { "default": 0, "title": "D", "type": "integer" }, "f": { "default": 0.0, "title": "F", "type": "number" } }, "title": "H", "type": "object" }, "L": { "description": "L class to store L data.", "properties": { "th": { "default": 0, "title": "Th", "type": "integer" }, "thmm": { "default": 0.0, "title": "Thmm", "type": "number" }, "d": { "default": 0, "title": "D", "type": "integer" }, "tl": { "default": 0, "title": "Tl", "type": "integer" }, "tlmm": { "default": 0.0, "title": "Tlmm", "type": "number" } }, "title": "L", "type": "object" }, "Nd": { "description": "Nd class to store Nd data.", "properties": { "i": { "default": 0, "title": "I", "type": "integer" }, "r": { "default": 0, "title": "R", "type": "integer" }, "l": { "default": 0, "title": "L", "type": "integer" } }, "title": "Nd", "type": "object" }, "Std": { "description": "Std class to store Std data.", "properties": { "sd": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Sd" } }, "title": "Std", "type": "object" } }, "required": [ "h", "f", "l", "nd", "std" ] }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.config.FixedLowAlarmValues[source]
Bases:
ConfigBaseModelFixedLowAlarmValues class to store fixed alarm values.
Show JSON schema
{ "title": "FixedLowAlarmValues", "description": "FixedLowAlarmValues class to store fixed alarm values.", "type": "object", "properties": { "mgdl": { "default": 0, "title": "Mgdl", "type": "integer" }, "mmoll": { "default": 0.0, "title": "Mmoll", "type": "number" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
Connections
- pydantic model pylibrelinkup.models.connection.GraphResponse[source]
Bases:
APIResponseGraphResponse class to store API graph data endpoint response.
Show JSON schema
{ "title": "GraphResponse", "description": "GraphResponse class to store API graph data endpoint response.", "type": "object", "properties": { "status": { "default": 0, "title": "Status", "type": "integer" }, "ticket": { "$ref": "#/$defs/Ticket" }, "data": { "$ref": "#/$defs/Data" } }, "$defs": { "ActiveSensor": { "description": "ActiveSensor class to store active sensor data.", "properties": { "sensor": { "$ref": "#/$defs/Sensor" }, "device": { "$ref": "#/$defs/PatientDevice" } }, "required": [ "sensor", "device" ], "title": "ActiveSensor", "type": "object" }, "AlarmRules": { "description": "AlarmRules class to store alarm rules data.", "properties": { "c": { "default": false, "title": "C", "type": "boolean" }, "h": { "$ref": "#/$defs/H" }, "f": { "$ref": "#/$defs/F" }, "l": { "$ref": "#/$defs/L" }, "nd": { "$ref": "#/$defs/Nd" }, "p": { "default": 0, "title": "P", "type": "integer" }, "r": { "default": 0, "title": "R", "type": "integer" }, "std": { "$ref": "#/$defs/Std" } }, "required": [ "h", "f", "l", "nd", "std" ], "title": "AlarmRules", "type": "object" }, "Connection": { "description": "Connection class to store connection data.", "properties": { "id": { "format": "uuid", "title": "Id", "type": "string" }, "patientId": { "format": "uuid", "title": "Patientid", "type": "string" }, "country": { "default": "", "title": "Country", "type": "string" }, "status": { "default": 0, "title": "Status", "type": "integer" }, "firstName": { "default": "", "title": "Firstname", "type": "string" }, "lastName": { "default": "", "title": "Lastname", "type": "string" }, "targetLow": { "default": 0, "title": "Targetlow", "type": "integer" }, "targetHigh": { "default": 0, "title": "Targethigh", "type": "integer" }, "uom": { "default": 0, "title": "Uom", "type": "integer" }, "sensor": { "$ref": "#/$defs/Sensor" }, "alarmRules": { "$ref": "#/$defs/AlarmRules" }, "glucoseMeasurement": { "$ref": "#/$defs/GlucoseMeasurementWithTrend" }, "glucoseItem": { "$ref": "#/$defs/GlucoseMeasurement" }, "glucoseAlarm": { "title": "Glucosealarm", "type": "null" }, "patientDevice": { "$ref": "#/$defs/PatientDevice" }, "created": { "default": 0, "title": "Created", "type": "integer" } }, "required": [ "id", "patientId", "sensor", "alarmRules", "glucoseMeasurement", "glucoseItem", "glucoseAlarm", "patientDevice" ], "title": "Connection", "type": "object" }, "Data": { "description": "Data class to store connection data.", "properties": { "connection": { "$ref": "#/$defs/Connection" }, "activeSensors": { "items": { "$ref": "#/$defs/ActiveSensor" }, "title": "Activesensors", "type": "array" }, "graphData": { "items": { "$ref": "#/$defs/GlucoseMeasurement" }, "title": "Graphdata", "type": "array" } }, "required": [ "connection", "activeSensors", "graphData" ], "title": "Data", "type": "object" }, "F": { "description": "F class to store F data.", "properties": { "th": { "default": 0, "title": "Th", "type": "integer" }, "thmm": { "default": 0.0, "title": "Thmm", "type": "number" }, "d": { "default": 0, "title": "D", "type": "integer" }, "tl": { "default": 0, "title": "Tl", "type": "integer" }, "tlmm": { "default": 0.0, "title": "Tlmm", "type": "number" } }, "title": "F", "type": "object" }, "FixedLowAlarmValues": { "description": "FixedLowAlarmValues class to store fixed alarm values.", "properties": { "mgdl": { "default": 0, "title": "Mgdl", "type": "integer" }, "mmoll": { "default": 0.0, "title": "Mmoll", "type": "number" } }, "title": "FixedLowAlarmValues", "type": "object" }, "GlucoseMeasurement": { "description": "GlucoseMeasurement class to store glucose measurement data.", "properties": { "FactoryTimestamp": { "format": "date-time", "title": "Factorytimestamp", "type": "string" }, "Timestamp": { "format": "date-time", "title": "Timestamp", "type": "string" }, "Type": { "default": 0, "title": "Type", "type": "integer" }, "ValueInMgPerDl": { "default": 0.0, "title": "Valueinmgperdl", "type": "number" }, "MeasurementColor": { "default": 0, "title": "Measurementcolor", "type": "integer" }, "GlucoseUnits": { "default": 0, "title": "Glucoseunits", "type": "integer" }, "Value": { "default": 0.0, "title": "Value", "type": "number" }, "isHigh": { "title": "Ishigh", "type": "boolean" }, "isLow": { "title": "Islow", "type": "boolean" } }, "required": [ "FactoryTimestamp", "Timestamp", "isHigh", "isLow" ], "title": "GlucoseMeasurement", "type": "object" }, "GlucoseMeasurementWithTrend": { "properties": { "FactoryTimestamp": { "format": "date-time", "title": "Factorytimestamp", "type": "string" }, "Timestamp": { "format": "date-time", "title": "Timestamp", "type": "string" }, "Type": { "default": 0, "title": "Type", "type": "integer" }, "ValueInMgPerDl": { "default": 0.0, "title": "Valueinmgperdl", "type": "number" }, "MeasurementColor": { "default": 0, "title": "Measurementcolor", "type": "integer" }, "GlucoseUnits": { "default": 0, "title": "Glucoseunits", "type": "integer" }, "Value": { "default": 0.0, "title": "Value", "type": "number" }, "isHigh": { "title": "Ishigh", "type": "boolean" }, "isLow": { "title": "Islow", "type": "boolean" }, "TrendArrow": { "$ref": "#/$defs/Trend", "default": 3 } }, "required": [ "FactoryTimestamp", "Timestamp", "isHigh", "isLow" ], "title": "GlucoseMeasurementWithTrend", "type": "object" }, "H": { "description": "H class to store H data.", "properties": { "th": { "default": 0, "title": "Th", "type": "integer" }, "thmm": { "default": 0.0, "title": "Thmm", "type": "number" }, "d": { "default": 0, "title": "D", "type": "integer" }, "f": { "default": 0.0, "title": "F", "type": "number" } }, "title": "H", "type": "object" }, "L": { "description": "L class to store L data.", "properties": { "th": { "default": 0, "title": "Th", "type": "integer" }, "thmm": { "default": 0.0, "title": "Thmm", "type": "number" }, "d": { "default": 0, "title": "D", "type": "integer" }, "tl": { "default": 0, "title": "Tl", "type": "integer" }, "tlmm": { "default": 0.0, "title": "Tlmm", "type": "number" } }, "title": "L", "type": "object" }, "Nd": { "description": "Nd class to store Nd data.", "properties": { "i": { "default": 0, "title": "I", "type": "integer" }, "r": { "default": 0, "title": "R", "type": "integer" }, "l": { "default": 0, "title": "L", "type": "integer" } }, "title": "Nd", "type": "object" }, "PatientDevice": { "description": "PatientDevice class to store device data.", "properties": { "did": { "default": "", "title": "Did", "type": "string" }, "dtid": { "default": 0, "title": "Dtid", "type": "integer" }, "v": { "default": "", "title": "V", "type": "string" }, "ll": { "default": 0, "title": "Ll", "type": "integer" }, "hl": { "default": 0, "title": "Hl", "type": "integer" }, "u": { "default": 0, "title": "U", "type": "integer" }, "fixedLowAlarmValues": { "$ref": "#/$defs/FixedLowAlarmValues" }, "alarms": { "default": false, "title": "Alarms", "type": "boolean" } }, "required": [ "fixedLowAlarmValues" ], "title": "PatientDevice", "type": "object" }, "Sensor": { "description": "Sensor class to store sensor data.", "properties": { "deviceId": { "default": "", "title": "Deviceid", "type": "string" }, "sn": { "default": "", "title": "Sn", "type": "string" }, "a": { "default": 0, "title": "A", "type": "integer" }, "w": { "default": 0, "title": "W", "type": "integer" }, "pt": { "default": 0, "title": "Pt", "type": "integer" } }, "title": "Sensor", "type": "object" }, "Std": { "description": "Std class to store Std data.", "properties": { "sd": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Sd" } }, "title": "Std", "type": "object" }, "Ticket": { "description": "TicketData class to store ticket data.", "properties": { "token": { "default": "", "title": "Token", "type": "string" }, "expires": { "default": 0, "title": "Expires", "type": "integer" }, "duration": { "default": 0, "title": "Duration", "type": "integer" } }, "title": "Ticket", "type": "object" }, "Trend": { "enum": [ 1, 2, 3, 4, 5 ], "title": "Trend", "type": "integer" } }, "required": [ "ticket", "data" ] }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
-
field data:
Data[Required] - Validated by:
preprocess_datavalidate_api_response
- property current: GlucoseMeasurementWithTrend
Returns the current glucose measurement.
- property history: list[GlucoseMeasurement]
Returns the historical glucose measurements.
- pydantic model pylibrelinkup.models.connection.LogbookResponse[source]
Bases:
APIResponseLogbookResponse class to store API logbook data endpoint response.
Show JSON schema
{ "title": "LogbookResponse", "description": "LogbookResponse class to store API logbook data endpoint response.", "type": "object", "properties": { "status": { "default": 0, "title": "Status", "type": "integer" }, "ticket": { "$ref": "#/$defs/Ticket" }, "data": { "items": { "$ref": "#/$defs/GlucoseMeasurement" }, "title": "Data", "type": "array" } }, "$defs": { "GlucoseMeasurement": { "description": "GlucoseMeasurement class to store glucose measurement data.", "properties": { "FactoryTimestamp": { "format": "date-time", "title": "Factorytimestamp", "type": "string" }, "Timestamp": { "format": "date-time", "title": "Timestamp", "type": "string" }, "Type": { "default": 0, "title": "Type", "type": "integer" }, "ValueInMgPerDl": { "default": 0.0, "title": "Valueinmgperdl", "type": "number" }, "MeasurementColor": { "default": 0, "title": "Measurementcolor", "type": "integer" }, "GlucoseUnits": { "default": 0, "title": "Glucoseunits", "type": "integer" }, "Value": { "default": 0.0, "title": "Value", "type": "number" }, "isHigh": { "title": "Ishigh", "type": "boolean" }, "isLow": { "title": "Islow", "type": "boolean" } }, "required": [ "FactoryTimestamp", "Timestamp", "isHigh", "isLow" ], "title": "GlucoseMeasurement", "type": "object" }, "Ticket": { "description": "TicketData class to store ticket data.", "properties": { "token": { "default": "", "title": "Token", "type": "string" }, "expires": { "default": 0, "title": "Expires", "type": "integer" }, "duration": { "default": 0, "title": "Duration", "type": "integer" } }, "title": "Ticket", "type": "object" } }, "required": [ "ticket", "data" ] }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
-
field data:
list[GlucoseMeasurement] [Required] - Validated by:
preprocess_datavalidate_api_response
- property raw
Returns the raw JSON data returned by the API.
Data
- pydantic model pylibrelinkup.models.data.F[source]
Bases:
ConfigBaseModelF class to store F data.
Show JSON schema
{ "title": "F", "description": "F class to store F data.", "type": "object", "properties": { "th": { "default": 0, "title": "Th", "type": "integer" }, "thmm": { "default": 0.0, "title": "Thmm", "type": "number" }, "d": { "default": 0, "title": "D", "type": "integer" }, "tl": { "default": 0, "title": "Tl", "type": "integer" }, "tlmm": { "default": 0.0, "title": "Tlmm", "type": "number" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.data.GlucoseMeasurement[source]
Bases:
ConfigBaseModelGlucoseMeasurement class to store glucose measurement data.
Show JSON schema
{ "title": "GlucoseMeasurement", "description": "GlucoseMeasurement class to store glucose measurement data.", "type": "object", "properties": { "FactoryTimestamp": { "format": "date-time", "title": "Factorytimestamp", "type": "string" }, "Timestamp": { "format": "date-time", "title": "Timestamp", "type": "string" }, "Type": { "default": 0, "title": "Type", "type": "integer" }, "ValueInMgPerDl": { "default": 0.0, "title": "Valueinmgperdl", "type": "number" }, "MeasurementColor": { "default": 0, "title": "Measurementcolor", "type": "integer" }, "GlucoseUnits": { "default": 0, "title": "Glucoseunits", "type": "integer" }, "Value": { "default": 0.0, "title": "Value", "type": "number" }, "isHigh": { "title": "Ishigh", "type": "boolean" }, "isLow": { "title": "Islow", "type": "boolean" } }, "required": [ "FactoryTimestamp", "Timestamp", "isHigh", "isLow" ] }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_pascal at 0x7701ee8bc4a0>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
-
field factory_timestamp:
datetime[Required] (alias 'FactoryTimestamp') - Validated by:
preprocess_data
- validator parse_timestamp » factory_timestamp, timestamp[source]
- pydantic model pylibrelinkup.models.data.GlucoseMeasurementWithTrend[source]
Bases:
GlucoseMeasurementShow JSON schema
{ "title": "GlucoseMeasurementWithTrend", "type": "object", "properties": { "FactoryTimestamp": { "format": "date-time", "title": "Factorytimestamp", "type": "string" }, "Timestamp": { "format": "date-time", "title": "Timestamp", "type": "string" }, "Type": { "default": 0, "title": "Type", "type": "integer" }, "ValueInMgPerDl": { "default": 0.0, "title": "Valueinmgperdl", "type": "number" }, "MeasurementColor": { "default": 0, "title": "Measurementcolor", "type": "integer" }, "GlucoseUnits": { "default": 0, "title": "Glucoseunits", "type": "integer" }, "Value": { "default": 0.0, "title": "Value", "type": "number" }, "isHigh": { "title": "Ishigh", "type": "boolean" }, "isLow": { "title": "Islow", "type": "boolean" }, "TrendArrow": { "$ref": "#/$defs/Trend", "default": 3 } }, "$defs": { "Trend": { "enum": [ 1, 2, 3, 4, 5 ], "title": "Trend", "type": "integer" } }, "required": [ "FactoryTimestamp", "Timestamp", "isHigh", "isLow" ] }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_pascal at 0x7701ee8bc4a0>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.data.H[source]
Bases:
ConfigBaseModelH class to store H data.
Show JSON schema
{ "title": "H", "description": "H class to store H data.", "type": "object", "properties": { "th": { "default": 0, "title": "Th", "type": "integer" }, "thmm": { "default": 0.0, "title": "Thmm", "type": "number" }, "d": { "default": 0, "title": "D", "type": "integer" }, "f": { "default": 0.0, "title": "F", "type": "number" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.data.L[source]
Bases:
ConfigBaseModelL class to store L data.
Show JSON schema
{ "title": "L", "description": "L class to store L data.", "type": "object", "properties": { "th": { "default": 0, "title": "Th", "type": "integer" }, "thmm": { "default": 0.0, "title": "Thmm", "type": "number" }, "d": { "default": 0, "title": "D", "type": "integer" }, "tl": { "default": 0, "title": "Tl", "type": "integer" }, "tlmm": { "default": 0.0, "title": "Tlmm", "type": "number" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.data.Nd[source]
Bases:
ConfigBaseModelNd class to store Nd data.
Show JSON schema
{ "title": "Nd", "description": "Nd class to store Nd data.", "type": "object", "properties": { "i": { "default": 0, "title": "I", "type": "integer" }, "r": { "default": 0, "title": "R", "type": "integer" }, "l": { "default": 0, "title": "L", "type": "integer" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.data.Patient[source]
Bases:
ConfigBaseModelPatient class to store patient data.
Show JSON schema
{ "title": "Patient", "description": "Patient class to store patient data.", "type": "object", "properties": { "id": { "format": "uuid", "title": "Id", "type": "string" }, "patientId": { "format": "uuid", "title": "Patientid", "type": "string" }, "firstName": { "title": "Firstname", "type": "string" }, "lastName": { "title": "Lastname", "type": "string" } }, "required": [ "id", "patientId", "firstName", "lastName" ] }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.data.Std[source]
Bases:
ConfigBaseModelStd class to store Std data.
Show JSON schema
{ "title": "Std", "description": "Std class to store Std data.", "type": "object", "properties": { "sd": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Sd" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- enum pylibrelinkup.models.data.Trend(value)[source]
Bases:
IntEnum- Member Type:
Valid values are as follows:
- DOWN_FAST = <Trend.DOWN_FAST: 1>
- DOWN_SLOW = <Trend.DOWN_SLOW: 2>
- STABLE = <Trend.STABLE: 3>
- UP_SLOW = <Trend.UP_SLOW: 4>
- UP_FAST = <Trend.UP_FAST: 5>
The
Enumand its members also have the following methods:
Hardware
- pydantic model pylibrelinkup.models.hardware.ActiveSensor[source]
Bases:
ConfigBaseModelActiveSensor class to store active sensor data.
Show JSON schema
{ "title": "ActiveSensor", "description": "ActiveSensor class to store active sensor data.", "type": "object", "properties": { "sensor": { "$ref": "#/$defs/Sensor" }, "device": { "$ref": "#/$defs/PatientDevice" } }, "$defs": { "FixedLowAlarmValues": { "description": "FixedLowAlarmValues class to store fixed alarm values.", "properties": { "mgdl": { "default": 0, "title": "Mgdl", "type": "integer" }, "mmoll": { "default": 0.0, "title": "Mmoll", "type": "number" } }, "title": "FixedLowAlarmValues", "type": "object" }, "PatientDevice": { "description": "PatientDevice class to store device data.", "properties": { "did": { "default": "", "title": "Did", "type": "string" }, "dtid": { "default": 0, "title": "Dtid", "type": "integer" }, "v": { "default": "", "title": "V", "type": "string" }, "ll": { "default": 0, "title": "Ll", "type": "integer" }, "hl": { "default": 0, "title": "Hl", "type": "integer" }, "u": { "default": 0, "title": "U", "type": "integer" }, "fixedLowAlarmValues": { "$ref": "#/$defs/FixedLowAlarmValues" }, "alarms": { "default": false, "title": "Alarms", "type": "boolean" } }, "required": [ "fixedLowAlarmValues" ], "title": "PatientDevice", "type": "object" }, "Sensor": { "description": "Sensor class to store sensor data.", "properties": { "deviceId": { "default": "", "title": "Deviceid", "type": "string" }, "sn": { "default": "", "title": "Sn", "type": "string" }, "a": { "default": 0, "title": "A", "type": "integer" }, "w": { "default": 0, "title": "W", "type": "integer" }, "pt": { "default": 0, "title": "Pt", "type": "integer" } }, "title": "Sensor", "type": "object" } }, "required": [ "sensor", "device" ] }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
-
field device:
PatientDevice[Required] - Validated by:
preprocess_data
- pydantic model pylibrelinkup.models.hardware.PatientDevice[source]
Bases:
ConfigBaseModelPatientDevice class to store device data.
Show JSON schema
{ "title": "PatientDevice", "description": "PatientDevice class to store device data.", "type": "object", "properties": { "did": { "default": "", "title": "Did", "type": "string" }, "dtid": { "default": 0, "title": "Dtid", "type": "integer" }, "v": { "default": "", "title": "V", "type": "string" }, "ll": { "default": 0, "title": "Ll", "type": "integer" }, "hl": { "default": 0, "title": "Hl", "type": "integer" }, "u": { "default": 0, "title": "U", "type": "integer" }, "fixedLowAlarmValues": { "$ref": "#/$defs/FixedLowAlarmValues" }, "alarms": { "default": false, "title": "Alarms", "type": "boolean" } }, "$defs": { "FixedLowAlarmValues": { "description": "FixedLowAlarmValues class to store fixed alarm values.", "properties": { "mgdl": { "default": 0, "title": "Mgdl", "type": "integer" }, "mmoll": { "default": 0.0, "title": "Mmoll", "type": "number" } }, "title": "FixedLowAlarmValues", "type": "object" } }, "required": [ "fixedLowAlarmValues" ] }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
-
field fixed_low_alarm_values:
FixedLowAlarmValues[Required] (alias 'fixedLowAlarmValues') - Validated by:
preprocess_data
- pydantic model pylibrelinkup.models.hardware.Sensor[source]
Bases:
ConfigBaseModelSensor class to store sensor data.
Show JSON schema
{ "title": "Sensor", "description": "Sensor class to store sensor data.", "type": "object", "properties": { "deviceId": { "default": "", "title": "Deviceid", "type": "string" }, "sn": { "default": "", "title": "Sn", "type": "string" }, "a": { "default": 0, "title": "A", "type": "integer" }, "w": { "default": 0, "title": "W", "type": "integer" }, "pt": { "default": 0, "title": "Pt", "type": "integer" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
Login
- pydantic model pylibrelinkup.models.login.AuthTicket[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "AuthTicket", "type": "object", "properties": { "token": { "default": "", "title": "Token", "type": "string" }, "expires": { "default": 0, "title": "Expires", "type": "integer" }, "duration": { "default": 0, "title": "Duration", "type": "integer" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.login.Consents[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "Consents", "type": "object", "properties": { "llu": { "$ref": "#/$defs/Llu", "default": { "policyAccept": 0, "touAccept": 0 } }, "realWorldEvidence": { "$ref": "#/$defs/RealWorldEvidence", "default": { "policyAccept": 0, "declined": false, "touAccept": 0, "history": [] } } }, "$defs": { "HistoryItem": { "properties": { "policyAccept": { "default": 0, "title": "Policyaccept", "type": "integer" }, "declined": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Declined" } }, "title": "HistoryItem", "type": "object" }, "Llu": { "properties": { "policyAccept": { "default": 0, "title": "Policyaccept", "type": "integer" }, "touAccept": { "default": 0, "title": "Touaccept", "type": "integer" } }, "title": "Llu", "type": "object" }, "RealWorldEvidence": { "properties": { "policyAccept": { "default": 0, "title": "Policyaccept", "type": "integer" }, "declined": { "default": false, "title": "Declined", "type": "boolean" }, "touAccept": { "default": 0, "title": "Touaccept", "type": "integer" }, "history": { "default": [], "items": { "$ref": "#/$defs/HistoryItem" }, "title": "History", "type": "array" } }, "title": "RealWorldEvidence", "type": "object" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
-
field realWorldEvidence:
RealWorldEvidence= RealWorldEvidence(policyAccept=0, declined=False, touAccept=0, history=[]) - Validated by:
preprocess_data
- pydantic model pylibrelinkup.models.login.Data[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "Data", "type": "object", "properties": { "user": { "$ref": "#/$defs/User" }, "messages": { "$ref": "#/$defs/DataMessages" }, "notifications": { "$ref": "#/$defs/Notifications" }, "authTicket": { "$ref": "#/$defs/AuthTicket" }, "invitations": { "items": { "type": "string" }, "title": "Invitations", "type": "array" } }, "$defs": { "AuthTicket": { "properties": { "token": { "default": "", "title": "Token", "type": "string" }, "expires": { "default": 0, "title": "Expires", "type": "integer" }, "duration": { "default": 0, "title": "Duration", "type": "integer" } }, "title": "AuthTicket", "type": "object" }, "Consents": { "properties": { "llu": { "$ref": "#/$defs/Llu", "default": { "policyAccept": 0, "touAccept": 0 } }, "realWorldEvidence": { "$ref": "#/$defs/RealWorldEvidence", "default": { "policyAccept": 0, "declined": false, "touAccept": 0, "history": [] } } }, "title": "Consents", "type": "object" }, "DataMessages": { "properties": { "unread": { "default": 0, "title": "Unread", "type": "integer" } }, "title": "DataMessages", "type": "object" }, "HistoryItem": { "properties": { "policyAccept": { "default": 0, "title": "Policyaccept", "type": "integer" }, "declined": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Declined" } }, "title": "HistoryItem", "type": "object" }, "Llu": { "properties": { "policyAccept": { "default": 0, "title": "Policyaccept", "type": "integer" }, "touAccept": { "default": 0, "title": "Touaccept", "type": "integer" } }, "title": "Llu", "type": "object" }, "Notifications": { "properties": { "unresolved": { "default": 0, "title": "Unresolved", "type": "integer" } }, "title": "Notifications", "type": "object" }, "RealWorldEvidence": { "properties": { "policyAccept": { "default": 0, "title": "Policyaccept", "type": "integer" }, "declined": { "default": false, "title": "Declined", "type": "boolean" }, "touAccept": { "default": 0, "title": "Touaccept", "type": "integer" }, "history": { "default": [], "items": { "$ref": "#/$defs/HistoryItem" }, "title": "History", "type": "array" } }, "title": "RealWorldEvidence", "type": "object" }, "System": { "properties": { "messages": { "$ref": "#/$defs/SystemMessages" } }, "required": [ "messages" ], "title": "System", "type": "object" }, "SystemMessages": { "properties": { "firstUsePhoenix": { "default": 0, "title": "Firstusephoenix", "type": "integer" }, "firstUsePhoenixReportsDataMerged": { "default": 0, "title": "Firstusephoenixreportsdatamerged", "type": "integer" }, "lluGettingStartedBanner": { "default": 0, "title": "Llugettingstartedbanner", "type": "integer" }, "lluNewFeatureModal": { "default": 0, "title": "Llunewfeaturemodal", "type": "integer" }, "lluOnboarding": { "default": 0, "title": "Lluonboarding", "type": "integer" }, "lvWebPostRelease": { "default": "", "title": "Lvwebpostrelease", "type": "string" } }, "title": "SystemMessages", "type": "object" }, "User": { "properties": { "id": { "default": "", "title": "Id", "type": "string" }, "firstName": { "default": "", "title": "Firstname", "type": "string" }, "lastName": { "default": "", "title": "Lastname", "type": "string" }, "email": { "default": "", "title": "Email", "type": "string" }, "country": { "default": "", "title": "Country", "type": "string" }, "uiLanguage": { "default": "", "title": "Uilanguage", "type": "string" }, "communicationLanguage": { "default": "", "title": "Communicationlanguage", "type": "string" }, "accountType": { "default": "", "title": "Accounttype", "type": "string" }, "uom": { "default": "", "title": "Uom", "type": "string" }, "dateFormat": { "default": "", "title": "Dateformat", "type": "string" }, "timeFormat": { "default": "", "title": "Timeformat", "type": "string" }, "emailDay": { "items": { "type": "integer" }, "title": "Emailday", "type": "array" }, "system": { "$ref": "#/$defs/System" }, "details": { "additionalProperties": true, "title": "Details", "type": "object" }, "created": { "title": "Created", "type": "integer" }, "lastLogin": { "title": "Lastlogin", "type": "integer" }, "programs": { "additionalProperties": true, "title": "Programs", "type": "object" }, "dateOfBirth": { "title": "Dateofbirth", "type": "integer" }, "practices": { "additionalProperties": true, "title": "Practices", "type": "object" }, "devices": { "additionalProperties": true, "title": "Devices", "type": "object" }, "consents": { "$ref": "#/$defs/Consents" } }, "required": [ "emailDay", "system", "details", "created", "lastLogin", "programs", "dateOfBirth", "practices", "devices", "consents" ], "title": "User", "type": "object" } }, "required": [ "user", "messages", "notifications", "authTicket", "invitations" ] }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
-
field authTicket:
AuthTicket[Required] - Validated by:
preprocess_data
-
field messages:
DataMessages[Required] - Validated by:
preprocess_data
-
field notifications:
Notifications[Required] - Validated by:
preprocess_data
- pydantic model pylibrelinkup.models.login.DataMessages[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "DataMessages", "type": "object", "properties": { "unread": { "default": 0, "title": "Unread", "type": "integer" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.login.ErrorMessage[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "ErrorMessage", "type": "object", "properties": { "message": { "default": "", "title": "Message", "type": "string" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.login.Llu[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "Llu", "type": "object", "properties": { "policyAccept": { "default": 0, "title": "Policyaccept", "type": "integer" }, "touAccept": { "default": 0, "title": "Touaccept", "type": "integer" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.login.LoginArgs[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "LoginArgs", "type": "object", "properties": { "email": { "default": "", "title": "Email", "type": "string" }, "password": { "default": "", "title": "Password", "type": "string" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.login.LoginRedirectData[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "LoginRedirectData", "type": "object", "properties": { "redirect": { "default": false, "title": "Redirect", "type": "boolean" }, "region": { "default": "", "title": "Region", "type": "string" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.login.LoginRedirectResponse[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "LoginRedirectResponse", "type": "object", "properties": { "status": { "default": 0, "title": "Status", "type": "integer" }, "data": { "$ref": "#/$defs/LoginRedirectData" } }, "$defs": { "LoginRedirectData": { "properties": { "redirect": { "default": false, "title": "Redirect", "type": "boolean" }, "region": { "default": "", "title": "Region", "type": "string" } }, "title": "LoginRedirectData", "type": "object" } }, "required": [ "data" ] }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
-
field data:
LoginRedirectData[Required] - Validated by:
preprocess_data
- pydantic model pylibrelinkup.models.login.LoginResponse[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "LoginResponse", "type": "object", "properties": { "status": { "default": 0, "title": "Status", "type": "integer" }, "data": { "$ref": "#/$defs/Data" } }, "$defs": { "AuthTicket": { "properties": { "token": { "default": "", "title": "Token", "type": "string" }, "expires": { "default": 0, "title": "Expires", "type": "integer" }, "duration": { "default": 0, "title": "Duration", "type": "integer" } }, "title": "AuthTicket", "type": "object" }, "Consents": { "properties": { "llu": { "$ref": "#/$defs/Llu", "default": { "policyAccept": 0, "touAccept": 0 } }, "realWorldEvidence": { "$ref": "#/$defs/RealWorldEvidence", "default": { "policyAccept": 0, "declined": false, "touAccept": 0, "history": [] } } }, "title": "Consents", "type": "object" }, "Data": { "properties": { "user": { "$ref": "#/$defs/User" }, "messages": { "$ref": "#/$defs/DataMessages" }, "notifications": { "$ref": "#/$defs/Notifications" }, "authTicket": { "$ref": "#/$defs/AuthTicket" }, "invitations": { "items": { "type": "string" }, "title": "Invitations", "type": "array" } }, "required": [ "user", "messages", "notifications", "authTicket", "invitations" ], "title": "Data", "type": "object" }, "DataMessages": { "properties": { "unread": { "default": 0, "title": "Unread", "type": "integer" } }, "title": "DataMessages", "type": "object" }, "HistoryItem": { "properties": { "policyAccept": { "default": 0, "title": "Policyaccept", "type": "integer" }, "declined": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Declined" } }, "title": "HistoryItem", "type": "object" }, "Llu": { "properties": { "policyAccept": { "default": 0, "title": "Policyaccept", "type": "integer" }, "touAccept": { "default": 0, "title": "Touaccept", "type": "integer" } }, "title": "Llu", "type": "object" }, "Notifications": { "properties": { "unresolved": { "default": 0, "title": "Unresolved", "type": "integer" } }, "title": "Notifications", "type": "object" }, "RealWorldEvidence": { "properties": { "policyAccept": { "default": 0, "title": "Policyaccept", "type": "integer" }, "declined": { "default": false, "title": "Declined", "type": "boolean" }, "touAccept": { "default": 0, "title": "Touaccept", "type": "integer" }, "history": { "default": [], "items": { "$ref": "#/$defs/HistoryItem" }, "title": "History", "type": "array" } }, "title": "RealWorldEvidence", "type": "object" }, "System": { "properties": { "messages": { "$ref": "#/$defs/SystemMessages" } }, "required": [ "messages" ], "title": "System", "type": "object" }, "SystemMessages": { "properties": { "firstUsePhoenix": { "default": 0, "title": "Firstusephoenix", "type": "integer" }, "firstUsePhoenixReportsDataMerged": { "default": 0, "title": "Firstusephoenixreportsdatamerged", "type": "integer" }, "lluGettingStartedBanner": { "default": 0, "title": "Llugettingstartedbanner", "type": "integer" }, "lluNewFeatureModal": { "default": 0, "title": "Llunewfeaturemodal", "type": "integer" }, "lluOnboarding": { "default": 0, "title": "Lluonboarding", "type": "integer" }, "lvWebPostRelease": { "default": "", "title": "Lvwebpostrelease", "type": "string" } }, "title": "SystemMessages", "type": "object" }, "User": { "properties": { "id": { "default": "", "title": "Id", "type": "string" }, "firstName": { "default": "", "title": "Firstname", "type": "string" }, "lastName": { "default": "", "title": "Lastname", "type": "string" }, "email": { "default": "", "title": "Email", "type": "string" }, "country": { "default": "", "title": "Country", "type": "string" }, "uiLanguage": { "default": "", "title": "Uilanguage", "type": "string" }, "communicationLanguage": { "default": "", "title": "Communicationlanguage", "type": "string" }, "accountType": { "default": "", "title": "Accounttype", "type": "string" }, "uom": { "default": "", "title": "Uom", "type": "string" }, "dateFormat": { "default": "", "title": "Dateformat", "type": "string" }, "timeFormat": { "default": "", "title": "Timeformat", "type": "string" }, "emailDay": { "items": { "type": "integer" }, "title": "Emailday", "type": "array" }, "system": { "$ref": "#/$defs/System" }, "details": { "additionalProperties": true, "title": "Details", "type": "object" }, "created": { "title": "Created", "type": "integer" }, "lastLogin": { "title": "Lastlogin", "type": "integer" }, "programs": { "additionalProperties": true, "title": "Programs", "type": "object" }, "dateOfBirth": { "title": "Dateofbirth", "type": "integer" }, "practices": { "additionalProperties": true, "title": "Practices", "type": "object" }, "devices": { "additionalProperties": true, "title": "Devices", "type": "object" }, "consents": { "$ref": "#/$defs/Consents" } }, "required": [ "emailDay", "system", "details", "created", "lastLogin", "programs", "dateOfBirth", "practices", "devices", "consents" ], "title": "User", "type": "object" } }, "required": [ "data" ] }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.login.LoginResponseUnauthenticated[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "LoginResponseUnauthenticated", "type": "object", "properties": { "status": { "default": 0, "title": "Status", "type": "integer" }, "error": { "$ref": "#/$defs/ErrorMessage" } }, "$defs": { "ErrorMessage": { "properties": { "message": { "default": "", "title": "Message", "type": "string" } }, "title": "ErrorMessage", "type": "object" } }, "required": [ "error" ] }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
-
field error:
ErrorMessage[Required] - Validated by:
preprocess_data
- pydantic model pylibrelinkup.models.login.Notifications[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "Notifications", "type": "object", "properties": { "unresolved": { "default": 0, "title": "Unresolved", "type": "integer" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.login.System[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "System", "type": "object", "properties": { "messages": { "$ref": "#/$defs/SystemMessages" } }, "$defs": { "SystemMessages": { "properties": { "firstUsePhoenix": { "default": 0, "title": "Firstusephoenix", "type": "integer" }, "firstUsePhoenixReportsDataMerged": { "default": 0, "title": "Firstusephoenixreportsdatamerged", "type": "integer" }, "lluGettingStartedBanner": { "default": 0, "title": "Llugettingstartedbanner", "type": "integer" }, "lluNewFeatureModal": { "default": 0, "title": "Llunewfeaturemodal", "type": "integer" }, "lluOnboarding": { "default": 0, "title": "Lluonboarding", "type": "integer" }, "lvWebPostRelease": { "default": "", "title": "Lvwebpostrelease", "type": "string" } }, "title": "SystemMessages", "type": "object" } }, "required": [ "messages" ] }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
-
field messages:
SystemMessages[Required] - Validated by:
preprocess_data
- pydantic model pylibrelinkup.models.login.SystemMessages[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "SystemMessages", "type": "object", "properties": { "firstUsePhoenix": { "default": 0, "title": "Firstusephoenix", "type": "integer" }, "firstUsePhoenixReportsDataMerged": { "default": 0, "title": "Firstusephoenixreportsdatamerged", "type": "integer" }, "lluGettingStartedBanner": { "default": 0, "title": "Llugettingstartedbanner", "type": "integer" }, "lluNewFeatureModal": { "default": 0, "title": "Llunewfeaturemodal", "type": "integer" }, "lluOnboarding": { "default": 0, "title": "Lluonboarding", "type": "integer" }, "lvWebPostRelease": { "default": "", "title": "Lvwebpostrelease", "type": "string" } } }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators:
- pydantic model pylibrelinkup.models.login.User[source]
Bases:
ConfigBaseModelShow JSON schema
{ "title": "User", "type": "object", "properties": { "id": { "default": "", "title": "Id", "type": "string" }, "firstName": { "default": "", "title": "Firstname", "type": "string" }, "lastName": { "default": "", "title": "Lastname", "type": "string" }, "email": { "default": "", "title": "Email", "type": "string" }, "country": { "default": "", "title": "Country", "type": "string" }, "uiLanguage": { "default": "", "title": "Uilanguage", "type": "string" }, "communicationLanguage": { "default": "", "title": "Communicationlanguage", "type": "string" }, "accountType": { "default": "", "title": "Accounttype", "type": "string" }, "uom": { "default": "", "title": "Uom", "type": "string" }, "dateFormat": { "default": "", "title": "Dateformat", "type": "string" }, "timeFormat": { "default": "", "title": "Timeformat", "type": "string" }, "emailDay": { "items": { "type": "integer" }, "title": "Emailday", "type": "array" }, "system": { "$ref": "#/$defs/System" }, "details": { "additionalProperties": true, "title": "Details", "type": "object" }, "created": { "title": "Created", "type": "integer" }, "lastLogin": { "title": "Lastlogin", "type": "integer" }, "programs": { "additionalProperties": true, "title": "Programs", "type": "object" }, "dateOfBirth": { "title": "Dateofbirth", "type": "integer" }, "practices": { "additionalProperties": true, "title": "Practices", "type": "object" }, "devices": { "additionalProperties": true, "title": "Devices", "type": "object" }, "consents": { "$ref": "#/$defs/Consents" } }, "$defs": { "Consents": { "properties": { "llu": { "$ref": "#/$defs/Llu", "default": { "policyAccept": 0, "touAccept": 0 } }, "realWorldEvidence": { "$ref": "#/$defs/RealWorldEvidence", "default": { "policyAccept": 0, "declined": false, "touAccept": 0, "history": [] } } }, "title": "Consents", "type": "object" }, "HistoryItem": { "properties": { "policyAccept": { "default": 0, "title": "Policyaccept", "type": "integer" }, "declined": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Declined" } }, "title": "HistoryItem", "type": "object" }, "Llu": { "properties": { "policyAccept": { "default": 0, "title": "Policyaccept", "type": "integer" }, "touAccept": { "default": 0, "title": "Touaccept", "type": "integer" } }, "title": "Llu", "type": "object" }, "RealWorldEvidence": { "properties": { "policyAccept": { "default": 0, "title": "Policyaccept", "type": "integer" }, "declined": { "default": false, "title": "Declined", "type": "boolean" }, "touAccept": { "default": 0, "title": "Touaccept", "type": "integer" }, "history": { "default": [], "items": { "$ref": "#/$defs/HistoryItem" }, "title": "History", "type": "array" } }, "title": "RealWorldEvidence", "type": "object" }, "System": { "properties": { "messages": { "$ref": "#/$defs/SystemMessages" } }, "required": [ "messages" ], "title": "System", "type": "object" }, "SystemMessages": { "properties": { "firstUsePhoenix": { "default": 0, "title": "Firstusephoenix", "type": "integer" }, "firstUsePhoenixReportsDataMerged": { "default": 0, "title": "Firstusephoenixreportsdatamerged", "type": "integer" }, "lluGettingStartedBanner": { "default": 0, "title": "Llugettingstartedbanner", "type": "integer" }, "lluNewFeatureModal": { "default": 0, "title": "Llunewfeaturemodal", "type": "integer" }, "lluOnboarding": { "default": 0, "title": "Lluonboarding", "type": "integer" }, "lvWebPostRelease": { "default": "", "title": "Lvwebpostrelease", "type": "string" } }, "title": "SystemMessages", "type": "object" } }, "required": [ "emailDay", "system", "details", "created", "lastLogin", "programs", "dateOfBirth", "practices", "devices", "consents" ] }
- Config:
str_strip_whitespace: bool = True
alias_generator: function = <function to_camel at 0x7701ee8bc540>
populate_by_name: bool = True
from_attributes: bool = True
validate_by_alias: bool = True
validate_by_name: bool = True
- Fields:
- Validators: