Skip to content

Commit 4725f47

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0, Speakeasy CLI 1.227.0
1 parent 732982f commit 4725f47

File tree

8 files changed

+29
-17
lines changed

8 files changed

+29
-17
lines changed

.speakeasy/gen.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ id: b0b519b1-d1d3-43b2-82dd-b4292eadd4b0
33
management:
44
docChecksum: 17e2e733dfd588a7103c3c70e91b24b5
55
docVersion: 0.4.0
6-
speakeasyVersion: 1.219.2
7-
generationVersion: 2.286.7
8-
releaseVersion: 5.4.3
9-
configChecksum: 7fe27121cad4ded73012364cf3d6e9fd
6+
speakeasyVersion: 1.227.0
7+
generationVersion: 2.291.0
8+
releaseVersion: 5.5.0
9+
configChecksum: ee081843088189f4db4ec6101a93cc58
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-python.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-python.git
1313
published: true
1414
features:
1515
python:
16-
core: 4.5.1
16+
core: 4.5.2
1717
downloadStreams: 0.0.2
1818
examples: 2.81.3
1919
globalSecurity: 2.83.5
2020
globalServerURLs: 2.82.2
21-
globals: 2.81.1
21+
globals: 2.82.0
2222
inputOutputModels: 2.83.1
2323
responseFormat: 0.1.0
2424
retries: 2.82.1

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,4 +1356,14 @@ Based on:
13561356
### Generated
13571357
- [python v5.4.3] .
13581358
### Releases
1359-
- [PyPI v5.4.3] https://pypi.org/project/speakeasy-client-sdk-python/5.4.3 - .
1359+
- [PyPI v5.4.3] https://pypi.org/project/speakeasy-client-sdk-python/5.4.3 - .
1360+
1361+
## 2024-03-27 00:10:14
1362+
### Changes
1363+
Based on:
1364+
- OpenAPI Doc 0.4.0 https://docs.speakeasyapi.dev/openapi.yaml
1365+
- Speakeasy CLI 1.227.0 (2.291.0) https://github.com/speakeasy-api/speakeasy
1366+
### Generated
1367+
- [python v5.5.0] .
1368+
### Releases
1369+
- [PyPI v5.5.0] https://pypi.org/project/speakeasy-client-sdk-python/5.5.0 - .

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ generation:
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
1212
python:
13-
version: 5.4.3
13+
version: 5.5.0
1414
additionalDependencies:
1515
dependencies: {}
1616
extraDependencies:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="speakeasy-client-sdk-python",
13-
version="5.4.3",
13+
version="5.5.0",
1414
author="Speakeasy",
1515
description="Speakeasy API Client SDK for Python",
1616
long_description=long_description,

src/speakeasy/_hooks/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ def before_request(self, hook_ctx: BeforeRequestContext, request: requests_http.
4242

4343
class AfterSuccessHook(ABC):
4444
@abstractmethod
45-
def after_success(self, hook_ctx: AfterSuccessContext, response: requests_http.Response) -> Union[requests_http.PreparedRequest, Exception]:
45+
def after_success(self, hook_ctx: AfterSuccessContext, response: requests_http.Response) -> Union[requests_http.Response, Exception]:
4646
pass
4747

4848

4949
class AfterErrorHook(ABC):
5050
@abstractmethod
51-
def after_error(self, hook_ctx: AfterErrorContext, response: Optional[requests_http.Response], error: Optional[Exception]) -> Union[Tuple[Optional[requests_http.PreparedRequest], Optional[Exception]], Exception]:
51+
def after_error(self, hook_ctx: AfterErrorContext, response: Optional[requests_http.Response], error: Optional[Exception]) -> Union[Tuple[Optional[requests_http.Response], Optional[Exception]], Exception]:
5252
pass
5353

5454

src/speakeasy/sdk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def __init__(self,
7979
'pathParam': {
8080
'workspace_id': workspace_id,
8181
},
82+
'header': {
83+
},
8284
},
8385
}
8486

src/speakeasy/sdkconfiguration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ class SDKConfiguration:
2626
globals: Dict[str, Dict[str, Dict[str, Any]]] = field(default_factory=Dict)
2727
language: str = 'python'
2828
openapi_doc_version: str = '0.4.0'
29-
sdk_version: str = '5.4.3'
30-
gen_version: str = '2.286.7'
31-
user_agent: str = 'speakeasy-sdk/python 5.4.3 2.286.7 0.4.0 speakeasy-client-sdk-python'
29+
sdk_version: str = '5.5.0'
30+
gen_version: str = '2.291.0'
31+
user_agent: str = 'speakeasy-sdk/python 5.5.0 2.291.0 0.4.0 speakeasy-client-sdk-python'
3232
retry_config: RetryConfig = None
3333
_hooks: SDKHooks = None
3434

src/speakeasy/utils/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def get_query_params(clazz: type, query_params: Any, gbls: Optional[Dict[str, Di
272272
return params
273273

274274

275-
def get_headers(headers_params: Any) -> Dict[str, str]:
275+
def get_headers(headers_params: Any, gbls: Optional[Dict[str, Dict[str, Dict[str, Any]]]] = None) -> Dict[str, str]:
276276
if headers_params is None:
277277
return {}
278278

@@ -284,8 +284,8 @@ def get_headers(headers_params: Any) -> Dict[str, str]:
284284
if not metadata:
285285
continue
286286

287-
value = _serialize_header(metadata.get(
288-
'explode', False), getattr(headers_params, field.name))
287+
value = _populate_from_globals(field.name, getattr(headers_params, field.name), 'header', gbls)
288+
value = _serialize_header(metadata.get('explode', False), value)
289289

290290
if value != '':
291291
headers[metadata.get('field_name', field.name)] = value

0 commit comments

Comments
 (0)