From d9f9fe497d8d1e10e7ab7a54c67076b834ad2441 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 27 Mar 2024 01:02:14 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.227.0 --- .speakeasy/gen.lock | 12 ++++++------ RELEASES.md | 10 +++++++++- gen.yaml | 2 +- setup.py | 2 +- src/hightouch/_hooks/types.py | 4 ++-- src/hightouch/sdkconfiguration.py | 6 +++--- src/hightouch/utils/utils.py | 6 +++--- 7 files changed, 25 insertions(+), 17 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index de71a23..f65e371 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,18 +3,18 @@ id: 1cc01e85-de06-43c6-8eba-b42d8ac9f2f1 management: docChecksum: 8a72152156319b55ebd9dd4cff488703 docVersion: 1.0.0 - speakeasyVersion: 1.207.1 - generationVersion: 2.280.6 - releaseVersion: 5.2.2 - configChecksum: c71fe6a13a7e4c4c813f233071859d27 + speakeasyVersion: 1.227.0 + generationVersion: 2.291.0 + releaseVersion: 5.2.3 + configChecksum: a89ed61e5425dac6486a8952bf15caac repoURL: https://github.com/speakeasy-sdks/hightouch-python-sdk.git repoSubDirectory: . installationURL: https://github.com/speakeasy-sdks/hightouch-python-sdk.git features: python: constsAndDefaults: 0.1.3 - core: 4.5.1 - globalSecurity: 2.83.4 + core: 4.5.2 + globalSecurity: 2.83.5 globalServerURLs: 2.82.2 responseFormat: 0.1.0 unions: 2.82.6 diff --git a/RELEASES.md b/RELEASES.md index 4e68eee..a311048 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -790,4 +790,12 @@ Based on: - OpenAPI Doc 1.0.0 - Speakeasy CLI 1.207.1 (2.280.6) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v5.2.2] . \ No newline at end of file +- [python v5.2.2] . + +## 2024-03-27 01:02:02 +### Changes +Based on: +- OpenAPI Doc 1.0.0 +- Speakeasy CLI 1.227.0 (2.291.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v5.2.3] . \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index b00e7c6..9bd0c72 100644 --- a/gen.yaml +++ b/gen.yaml @@ -10,7 +10,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false python: - version: 5.2.2 + version: 5.2.3 additionalDependencies: dependencies: {} extraDependencies: diff --git a/setup.py b/setup.py index fe9e2a8..3d82cb4 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="hightouch", - version="5.2.2", + version="5.2.3", author="Speakeasy", description="Python SDK for Hightouch API", long_description=long_description, diff --git a/src/hightouch/_hooks/types.py b/src/hightouch/_hooks/types.py index d2fa862..a643f3d 100644 --- a/src/hightouch/_hooks/types.py +++ b/src/hightouch/_hooks/types.py @@ -42,13 +42,13 @@ def before_request(self, hook_ctx: BeforeRequestContext, request: requests_http. class AfterSuccessHook(ABC): @abstractmethod - def after_success(self, hook_ctx: AfterSuccessContext, response: requests_http.Response) -> Union[requests_http.PreparedRequest, Exception]: + def after_success(self, hook_ctx: AfterSuccessContext, response: requests_http.Response) -> Union[requests_http.Response, Exception]: pass class AfterErrorHook(ABC): @abstractmethod - def after_error(self, hook_ctx: AfterErrorContext, response: Optional[requests_http.Response], error: Optional[Exception]) -> Union[Tuple[Optional[requests_http.PreparedRequest], Optional[Exception]], Exception]: + def after_error(self, hook_ctx: AfterErrorContext, response: Optional[requests_http.Response], error: Optional[Exception]) -> Union[Tuple[Optional[requests_http.Response], Optional[Exception]], Exception]: pass diff --git a/src/hightouch/sdkconfiguration.py b/src/hightouch/sdkconfiguration.py index 4301624..81bcaa7 100644 --- a/src/hightouch/sdkconfiguration.py +++ b/src/hightouch/sdkconfiguration.py @@ -23,9 +23,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '5.2.2' - gen_version: str = '2.280.6' - user_agent: str = 'speakeasy-sdk/python 5.2.2 2.280.6 1.0.0 hightouch' + sdk_version: str = '5.2.3' + gen_version: str = '2.291.0' + user_agent: str = 'speakeasy-sdk/python 5.2.3 2.291.0 1.0.0 hightouch' retry_config: RetryConfig = None _hooks: SDKHooks = None diff --git a/src/hightouch/utils/utils.py b/src/hightouch/utils/utils.py index 44b7a2e..ddd914c 100644 --- a/src/hightouch/utils/utils.py +++ b/src/hightouch/utils/utils.py @@ -272,7 +272,7 @@ def get_query_params(clazz: type, query_params: Any, gbls: Optional[Dict[str, Di return params -def get_headers(headers_params: Any) -> Dict[str, str]: +def get_headers(headers_params: Any, gbls: Optional[Dict[str, Dict[str, Dict[str, Any]]]] = None) -> Dict[str, str]: if headers_params is None: return {} @@ -284,8 +284,8 @@ def get_headers(headers_params: Any) -> Dict[str, str]: if not metadata: continue - value = _serialize_header(metadata.get( - 'explode', False), getattr(headers_params, field.name)) + value = _populate_from_globals(field.name, getattr(headers_params, field.name), 'header', gbls) + value = _serialize_header(metadata.get('explode', False), value) if value != '': headers[metadata.get('field_name', field.name)] = value