Skip to content

Commit 049961c

Browse files
committed
Release 1.0.4
1 parent 44044a5 commit 049961c

43 files changed

Lines changed: 474 additions & 114 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "terra-python"
33

44
[tool.poetry]
55
name = "terra-python"
6-
version = "1.0.3"
6+
version = "1.0.4"
77
description = ""
88
readme = "README.md"
99
authors = []

src/terra/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ def __init__(self, *, dev_id: str, api_key: str, base_url: str, timeout: typing.
1515

1616
def get_headers(self) -> typing.Dict[str, str]:
1717
headers: typing.Dict[str, str] = {
18-
"User-Agent": "terra-python/1.0.3",
18+
"User-Agent": "terra-python/1.0.4",
1919
"X-Fern-Language": "Python",
2020
"X-Fern-SDK-Name": "terra-python",
21-
"X-Fern-SDK-Version": "1.0.3",
21+
"X-Fern-SDK-Version": "1.0.4",
2222
}
2323
headers["dev-id"] = self._dev_id
2424
headers["x-api-key"] = self.api_key

src/terra/types/a_fib_classification_sample.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@
99

1010

1111
class AFibClassificationSample(UncheckedBaseModel):
12-
timestamp: str
13-
afib_classification: Inconclusive
12+
timestamp: typing.Optional[str] = pydantic.Field(default=None)
13+
"""
14+
Time with which the record is associated, in ISO8601 format with microsecond precision. TimeZone info will be provided whenever possible. If absent, the time corresponds to the user's local time.
15+
"""
16+
17+
afib_classification: typing.Optional[Inconclusive] = pydantic.Field(default=None)
18+
"""
19+
Flag indicating the atrial fibrillation classification of the individual
20+
"""
1421

1522
if IS_PYDANTIC_V2:
1623
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/terra/types/activity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Activity(UncheckedBaseModel):
3838
Object containing calorie-related information for the user during the specific workout.
3939
"""
4040

41-
cheat_detection: typing.Optional[int] = pydantic.Field(default=None)
41+
cheat_detection: typing.Optional[float] = pydantic.Field(default=None)
4242
"""
4343
Cheat detection flag.
4444
"""

src/terra/types/activity_level_sample.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99

1010

1111
class ActivityLevelSample(UncheckedBaseModel):
12-
timestamp: str
13-
level: ActivityLevel
12+
timestamp: typing.Optional[str] = pydantic.Field(default=None)
13+
"""
14+
Time with which the record is associated, in ISO8601 format with microsecond precision. TimeZone info will be provided whenever possible. If absent, the time corresponds to the user's local time.
15+
"""
16+
17+
level: typing.Optional[ActivityLevel] = None
1418

1519
if IS_PYDANTIC_V2:
1620
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/terra/types/blood_pressure_sample.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,20 @@
88

99

1010
class BloodPressureSample(UncheckedBaseModel):
11-
timestamp: str
12-
diastolic_bp: float
13-
systolic_bp: float
11+
timestamp: typing.Optional[str] = pydantic.Field(default=None)
12+
"""
13+
Time with which the record is associated, in ISO8601 format with microsecond precision. TimeZone info will be provided whenever possible. If absent, the time corresponds to the user's local time.
14+
"""
15+
16+
diastolic_bp: typing.Optional[float] = pydantic.Field(default=None)
17+
"""
18+
User's diastolic blood pressure, in mmHg
19+
"""
20+
21+
systolic_bp: typing.Optional[float] = pydantic.Field(default=None)
22+
"""
23+
User's systolic blood pressure, in mmHg
24+
"""
1425

1526
if IS_PYDANTIC_V2:
1627
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/terra/types/body_battery_sample.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@
88

99

1010
class BodyBatterySample(UncheckedBaseModel):
11-
timestamp: str
12-
level: float
11+
timestamp: typing.Optional[str] = pydantic.Field(default=None)
12+
"""
13+
Time with which the record is associated, in ISO8601 format with microsecond precision. TimeZone info will be provided whenever possible. If absent, the time corresponds to the user's local time.
14+
"""
15+
16+
level: typing.Optional[float] = None
1317

1418
if IS_PYDANTIC_V2:
1519
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/terra/types/breath_sample.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@
88

99

1010
class BreathSample(UncheckedBaseModel):
11-
timestamp: str
12-
breaths_per_min: float
11+
timestamp: typing.Optional[str] = pydantic.Field(default=None)
12+
"""
13+
Time with which the record is associated, in ISO8601 format with microsecond precision. TimeZone info will be provided whenever possible. If absent, the time corresponds to the user's local time
14+
"""
15+
16+
breaths_per_min: typing.Optional[float] = pydantic.Field(default=None)
17+
"""
18+
User's respiration rate
19+
"""
1320

1421
if IS_PYDANTIC_V2:
1522
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/terra/types/cadence_sample.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88

99

1010
class CadenceSample(UncheckedBaseModel):
11-
timestamp: str
12-
cadence_rpm: float
13-
timer_duration_seconds: float
11+
timestamp: typing.Optional[str] = pydantic.Field(default=None)
12+
"""
13+
Time with which the record is associated, in ISO8601 format with microsecond precision. TimeZone info will be provided whenever possible. If absent, the time corresponds to the user's local time.
14+
"""
15+
16+
cadence_rpm: typing.Optional[float] = None
17+
timer_duration_seconds: typing.Optional[float] = None
1418

1519
if IS_PYDANTIC_V2:
1620
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/terra/types/calorie_sample.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88

99

1010
class CalorieSample(UncheckedBaseModel):
11-
timestamp: str
12-
calories: float
13-
timer_duration_seconds: float
11+
timestamp: typing.Optional[str] = pydantic.Field(default=None)
12+
"""
13+
Time with which the record is associated, in ISO8601 format with microsecond precision. TimeZone info will be provided whenever possible. If absent, the time corresponds to the user's local time.
14+
"""
15+
16+
calories: typing.Optional[float] = None
17+
timer_duration_seconds: typing.Optional[float] = None
1418

1519
if IS_PYDANTIC_V2:
1620
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

0 commit comments

Comments
 (0)