diff --git a/.fern/metadata.json b/.fern/metadata.json index 91c4fe4..8cca9f5 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.5.1", + "cliVersion": "5.6.1", "generatorName": "fernapi/fern-python-sdk", "generatorVersion": "5.8.1", "generatorConfig": { @@ -10,10 +10,10 @@ "use_pydantic_field_aliases": true } }, - "originGitCommit": "05d79dd6ce370cbd029417f59eb71c056d94aa61", + "originGitCommit": "e1c3ceef9f4e6957d1a38d66920fdb58ec00c6d5", "originGitCommitIsDirty": true, "invokedBy": "ci", "requestedVersion": "AUTO", "ciProvider": "unknown", - "sdkVersion": "0.0.1" + "sdkVersion": "0.1.0" } \ No newline at end of file diff --git a/changelog.md b/changelog.md index 9f803cf..9473bb3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +## 0.1.0 - 2026-05-01 +### Added +* **`MealInDbBaseClientFacingSource`** now includes a `calendar_date` field (string in `YYYY-mm-dd` format) representing the date of the meal, particularly useful for providers that only expose a date rather than a full timestamp. + ## 0.0.1 - 2026-05-01 * Initial SDK generation * 🌿 Generated with Fern diff --git a/pyproject.toml b/pyproject.toml index 766bd19..11ca7f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ dynamic = ["version"] [tool.poetry] name = "junction-api-sdk" -version = "0.0.1" +version = "0.1.0" description = "" readme = "README.md" authors = [] diff --git a/src/junction/core/client_wrapper.py b/src/junction/core/client_wrapper.py index 628daab..b46fff8 100644 --- a/src/junction/core/client_wrapper.py +++ b/src/junction/core/client_wrapper.py @@ -27,12 +27,12 @@ def get_headers(self) -> typing.Dict[str, str]: import platform headers: typing.Dict[str, str] = { - "User-Agent": "junction-api-sdk/0.0.1", + "User-Agent": "junction-api-sdk/0.1.0", "X-Fern-Language": "Python", "X-Fern-Runtime": f"python/{platform.python_version()}", "X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}", "X-Fern-SDK-Name": "junction-api-sdk", - "X-Fern-SDK-Version": "0.0.1", + "X-Fern-SDK-Version": "0.1.0", **(self.get_custom_headers() or {}), } headers["x-vital-api-key"] = self.api_key diff --git a/src/junction/types/meal_in_db_base_client_facing_source.py b/src/junction/types/meal_in_db_base_client_facing_source.py index 5ae7a0b..7525775 100644 --- a/src/junction/types/meal_in_db_base_client_facing_source.py +++ b/src/junction/types/meal_in_db_base_client_facing_source.py @@ -31,6 +31,11 @@ class MealInDbBaseClientFacingSource(UniversalBaseModel): """ timestamp: dt.datetime + calendar_date: str = pydantic.Field() + """ + Date of the meal in the YYYY-mm-dd format. For providers that only expose a date, this is the calendar date as recorded by the user. + """ + name: str energy: typing.Optional[Energy] = None macros: typing.Optional[Macros] = None