From 3badce101083bd22b9de1bb69b5573fbe9fcc0e0 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 11 Mar 2026 14:47:39 +0000 Subject: [PATCH] feat: remove ErrorResponse type from summary module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the ErrorResponse type from the summary module as it is no longer needed by the API specification. This cleanup consolidates error handling patterns across the SDK. Key changes: - Remove ErrorResponse class from summary/types/ - Remove ErrorResponse from summary module exports - Clean up import statements and __all__ declarations 🌿 Generated with Fern --- .fern/metadata.json | 5 +++-- changelog.md | 3 +++ pyproject.toml | 2 +- src/phenoml/core/client_wrapper.py | 4 ++-- src/phenoml/summary/__init__.py | 3 --- src/phenoml/summary/types/__init__.py | 3 --- src/phenoml/summary/types/error_response.py | 23 --------------------- 7 files changed, 9 insertions(+), 34 deletions(-) delete mode 100644 src/phenoml/summary/types/error_response.py diff --git a/.fern/metadata.json b/.fern/metadata.json index da6d4c0..a3ccea9 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,9 +1,10 @@ { - "cliVersion": "4.17.0", + "cliVersion": "4.22.0", "generatorName": "fernapi/fern-python-sdk", "generatorVersion": "4.61.5", "generatorConfig": { "client_class_name": "PhenomlClient" }, - "sdkVersion": "8.1.0" + "originGitCommit": "cdfe611a02d68f09dbce1eb259387269402552fb", + "sdkVersion": "9.0.0" } \ No newline at end of file diff --git a/changelog.md b/changelog.md index e33096f..4ec42e9 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +## 9.0.0 - 2026-03-11 +* The `ErrorResponse` type has been removed from the summary module. If your code references `phenoml.summary.ErrorResponse` or imports it directly, you'll need to update your error handling logic to use the appropriate error types for your specific use case. + ## 8.1.0 - 2026-03-09 * feat: add ServiceUnavailableError and TooManyRequestsError handling * Add comprehensive error handling for HTTP 429 (Too Many Requests) and HTTP 503 (Service Unavailable) status codes across all FHIR client methods. This improves the client's robustness by properly handling rate limiting and temporary service unavailability scenarios. diff --git a/pyproject.toml b/pyproject.toml index 73586ff..a04a9d1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ dynamic = ["version"] [tool.poetry] name = "phenoml" -version = "8.1.0" +version = "9.0.0" description = "" readme = "README.md" authors = [] diff --git a/src/phenoml/core/client_wrapper.py b/src/phenoml/core/client_wrapper.py index 150c900..f21da3c 100644 --- a/src/phenoml/core/client_wrapper.py +++ b/src/phenoml/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": "phenoml/8.1.0", + "User-Agent": "phenoml/9.0.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": "phenoml", - "X-Fern-SDK-Version": "8.1.0", + "X-Fern-SDK-Version": "9.0.0", **(self.get_custom_headers() or {}), } token = self._get_token() diff --git a/src/phenoml/summary/__init__.py b/src/phenoml/summary/__init__.py index 342437b..f06a5c9 100644 --- a/src/phenoml/summary/__init__.py +++ b/src/phenoml/summary/__init__.py @@ -11,7 +11,6 @@ CreateSummaryRequestMode, CreateSummaryResponse, CreateSummaryTemplateResponse, - ErrorResponse, FhirBundle, FhirBundleEntryItem, FhirResource, @@ -28,7 +27,6 @@ "CreateSummaryRequestMode": ".types", "CreateSummaryResponse": ".types", "CreateSummaryTemplateResponse": ".types", - "ErrorResponse": ".types", "FhirBundle": ".types", "FhirBundleEntryItem": ".types", "FhirResource": ".types", @@ -71,7 +69,6 @@ def __dir__(): "CreateSummaryRequestMode", "CreateSummaryResponse", "CreateSummaryTemplateResponse", - "ErrorResponse", "FhirBundle", "FhirBundleEntryItem", "FhirResource", diff --git a/src/phenoml/summary/types/__init__.py b/src/phenoml/summary/types/__init__.py index 7ba51f3..34c4bdf 100644 --- a/src/phenoml/summary/types/__init__.py +++ b/src/phenoml/summary/types/__init__.py @@ -10,7 +10,6 @@ from .create_summary_request_mode import CreateSummaryRequestMode from .create_summary_response import CreateSummaryResponse from .create_summary_template_response import CreateSummaryTemplateResponse - from .error_response import ErrorResponse from .fhir_bundle import FhirBundle from .fhir_bundle_entry_item import FhirBundleEntryItem from .fhir_resource import FhirResource @@ -24,7 +23,6 @@ "CreateSummaryRequestMode": ".create_summary_request_mode", "CreateSummaryResponse": ".create_summary_response", "CreateSummaryTemplateResponse": ".create_summary_template_response", - "ErrorResponse": ".error_response", "FhirBundle": ".fhir_bundle", "FhirBundleEntryItem": ".fhir_bundle_entry_item", "FhirResource": ".fhir_resource", @@ -62,7 +60,6 @@ def __dir__(): "CreateSummaryRequestMode", "CreateSummaryResponse", "CreateSummaryTemplateResponse", - "ErrorResponse", "FhirBundle", "FhirBundleEntryItem", "FhirResource", diff --git a/src/phenoml/summary/types/error_response.py b/src/phenoml/summary/types/error_response.py deleted file mode 100644 index e4fbdaf..0000000 --- a/src/phenoml/summary/types/error_response.py +++ /dev/null @@ -1,23 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel - - -class ErrorResponse(UniversalBaseModel): - success: typing.Optional[bool] = None - error: typing.Optional[str] = pydantic.Field(default=None) - """ - Error message describing what went wrong - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow