Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.227.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Mar 27, 2024
1 parent 212c050 commit d9f9fe4
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 17 deletions.
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] .
- [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] .
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
python:
version: 5.2.2
version: 5.2.3
additionalDependencies:
dependencies: {}
extraDependencies:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/hightouch/_hooks/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
6 changes: 3 additions & 3 deletions src/hightouch/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions src/hightouch/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand All @@ -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
Expand Down

0 comments on commit d9f9fe4

Please sign in to comment.