Skip to content

Commit 55bce43

Browse files
committed
ci: regenerated with OpenAPI Doc 0.3.0, Speakeasy CLI 1.147.0
1 parent d76765c commit 55bce43

File tree

6 files changed

+28
-15
lines changed

6 files changed

+28
-15
lines changed

.speakeasy/gen.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ management:
44
docChecksum: ba638b2ad28966c596e28321a2003686
55
docVersion: 0.3.0
66
speakeasyVersion: internal
7-
generationVersion: 2.233.2
8-
releaseVersion: 3.3.2
9-
configChecksum: edd271faa6a1bb696695699287e1224e
7+
generationVersion: 2.237.2
8+
releaseVersion: 3.3.3
9+
configChecksum: a1ed4e64a555433fb6f28461bfb93daa
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.4.1
16+
core: 4.4.2
1717
downloadStreams: 0.0.2
1818
examples: 2.81.3
19-
globalSecurity: 2.83.1
19+
globalSecurity: 2.83.2
2020
globalServerURLs: 2.82.1
2121
inputOutputModels: 2.83.0
2222
serverIDs: 2.81.1

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,4 +1146,14 @@ Based on:
11461146
### Generated
11471147
- [python v3.3.2] .
11481148
### Releases
1149-
- [PyPI v3.3.2] https://pypi.org/project/speakeasy-client-sdk-python/3.3.2 - .
1149+
- [PyPI v3.3.2] https://pypi.org/project/speakeasy-client-sdk-python/3.3.2 - .
1150+
1151+
## 2024-01-19 00:11:02
1152+
### Changes
1153+
Based on:
1154+
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
1155+
- Speakeasy CLI 1.147.0 (2.237.2) https://github.com/speakeasy-api/speakeasy
1156+
### Generated
1157+
- [python v3.3.3] .
1158+
### Releases
1159+
- [PyPI v3.3.3] https://pypi.org/project/speakeasy-client-sdk-python/3.3.3 - .

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ generation:
66
fixes:
77
nameResolutionDec2023: false
88
python:
9-
version: 3.3.2
9+
version: 3.3.3
1010
author: Speakeasy
1111
clientServerStatusCodesAsErrors: true
1212
description: Speakeasy API Client SDK for Python

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="3.3.2",
13+
version="3.3.3",
1414
author="Speakeasy",
1515
description="Speakeasy API Client SDK for Python",
1616
long_description=long_description,

src/speakeasy/sdkconfiguration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class SDKConfiguration:
2323
server: str = ''
2424
language: str = 'python'
2525
openapi_doc_version: str = '0.3.0'
26-
sdk_version: str = '3.3.2'
27-
gen_version: str = '2.233.2'
28-
user_agent: str = 'speakeasy-sdk/python 3.3.2 2.233.2 0.3.0 speakeasy-client-sdk-python'
26+
sdk_version: str = '3.3.3'
27+
gen_version: str = '2.237.2'
28+
user_agent: str = 'speakeasy-sdk/python 3.3.3 2.237.2 0.3.0 speakeasy-client-sdk-python'
2929
retry_config: RetryConfig = None
3030

3131
def get_server_details(self) -> Tuple[str, Dict[str, str]]:

src/speakeasy/utils/utils.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,22 @@ def _parse_security_scheme_value(client: SecurityClient, scheme_metadata: Dict,
110110
else:
111111
raise Exception('not supported')
112112
elif scheme_type == "openIdConnect":
113-
client.client.headers[header_name] = value
113+
client.client.headers[header_name] = _apply_bearer(value)
114114
elif scheme_type == 'oauth2':
115-
client.client.headers[header_name] = value
115+
client.client.headers[header_name] = _apply_bearer(value)
116116
elif scheme_type == 'http':
117117
if sub_type == 'bearer':
118-
client.client.headers[header_name] = value.lower().startswith(
119-
'bearer ') and value or f'Bearer {value}'
118+
client.client.headers[header_name] = _apply_bearer(value)
120119
else:
121120
raise Exception('not supported')
122121
else:
123122
raise Exception('not supported')
124123

125124

125+
def _apply_bearer(token: str) -> str:
126+
return token.lower().startswith('bearer ') and token or f'Bearer {token}'
127+
128+
126129
def _parse_basic_auth_scheme(client: SecurityClient, scheme: dataclass):
127130
username = ""
128131
password = ""

0 commit comments

Comments
 (0)