Skip to content

Commit 95073f8

Browse files
committed
ci: regenerated with OpenAPI Doc 0.0.1, Speakeasy CLI 1.147.0
1 parent e3e49d6 commit 95073f8

File tree

6 files changed

+27
-14
lines changed

6 files changed

+27
-14
lines changed

.speakeasy/gen.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ management:
44
docChecksum: 559aacf6828c62bd379326645382b3ba
55
docVersion: 0.0.1
66
speakeasyVersion: internal
7-
generationVersion: 2.234.3
8-
releaseVersion: 0.15.4
9-
configChecksum: d09237e1be34fee035ce9f749b8e95cd
7+
generationVersion: 2.237.2
8+
releaseVersion: 0.15.5
9+
configChecksum: 5138d0e0d09d018eeec74356c4b3fef5
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
@@ -15,7 +15,7 @@ features:
1515
python:
1616
core: 4.4.2
1717
examples: 2.81.3
18-
globalSecurity: 2.83.1
18+
globalSecurity: 2.83.2
1919
globalServerURLs: 2.82.1
2020
nameOverrides: 2.81.1
2121
retries: 2.82.1

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,4 +374,14 @@ Based on:
374374
### Generated
375375
- [python v0.15.4] .
376376
### Releases
377-
- [PyPI v0.15.4] https://pypi.org/project/unstructured-client/0.15.4 - .
377+
- [PyPI v0.15.4] https://pypi.org/project/unstructured-client/0.15.4 - .
378+
379+
## 2024-01-19 00:19:58
380+
### Changes
381+
Based on:
382+
- OpenAPI Doc 0.0.1
383+
- Speakeasy CLI 1.147.0 (2.237.2) https://github.com/speakeasy-api/speakeasy
384+
### Generated
385+
- [python v0.15.5] .
386+
### Releases
387+
- [PyPI v0.15.5] https://pypi.org/project/unstructured-client/0.15.5 - .

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: 0.15.4
9+
version: 0.15.5
1010
author: Unstructured
1111
clientServerStatusCodesAsErrors: true
1212
description: Python Client SDK for Unstructured API

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="unstructured-client",
13-
version="0.15.4",
13+
version="0.15.5",
1414
author="Unstructured",
1515
description="Python Client SDK for Unstructured API",
1616
long_description=long_description,

src/unstructured_client/sdkconfiguration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class SDKConfiguration:
2727
server: str = ''
2828
language: str = 'python'
2929
openapi_doc_version: str = '0.0.1'
30-
sdk_version: str = '0.15.4'
31-
gen_version: str = '2.234.3'
32-
user_agent: str = 'speakeasy-sdk/python 0.15.4 2.234.3 0.0.1 unstructured-client'
30+
sdk_version: str = '0.15.5'
31+
gen_version: str = '2.237.2'
32+
user_agent: str = 'speakeasy-sdk/python 0.15.5 2.237.2 0.0.1 unstructured-client'
3333
retry_config: RetryConfig = None
3434

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

src/unstructured_client/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)