Skip to content

Commit e3e49d6

Browse files
committed
ci: regenerated with OpenAPI Doc 0.0.1, Speakeasy CLI 1.142.1
1 parent 47d7765 commit e3e49d6

File tree

6 files changed

+29
-16
lines changed

6 files changed

+29
-16
lines changed

.speakeasy/gen.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ management:
44
docChecksum: 559aacf6828c62bd379326645382b3ba
55
docVersion: 0.0.1
66
speakeasyVersion: internal
7-
generationVersion: 2.233.2
8-
releaseVersion: 0.15.3
9-
configChecksum: 2e2a4386f71b10d46d24683e1b2cb31c
7+
generationVersion: 2.234.3
8+
releaseVersion: 0.15.4
9+
configChecksum: d09237e1be34fee035ce9f749b8e95cd
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1313
published: true
1414
features:
1515
python:
16-
core: 4.4.1
16+
core: 4.4.2
1717
examples: 2.81.3
1818
globalSecurity: 2.83.1
1919
globalServerURLs: 2.82.1

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,4 +364,14 @@ Based on:
364364
### Generated
365365
- [python v0.15.3] .
366366
### Releases
367-
- [PyPI v0.15.3] https://pypi.org/project/unstructured-client/0.15.3 - .
367+
- [PyPI v0.15.3] https://pypi.org/project/unstructured-client/0.15.3 - .
368+
369+
## 2024-01-17 00:19:51
370+
### Changes
371+
Based on:
372+
- OpenAPI Doc 0.0.1
373+
- Speakeasy CLI 1.142.1 (2.234.3) https://github.com/speakeasy-api/speakeasy
374+
### Generated
375+
- [python v0.15.4] .
376+
### Releases
377+
- [PyPI v0.15.4] https://pypi.org/project/unstructured-client/0.15.4 - .

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

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="unstructured-client",
13-
version="0.15.3",
13+
version="0.15.4",
1414
author="Unstructured",
1515
description="Python Client SDK for Unstructured API",
1616
long_description=long_description,
@@ -36,6 +36,5 @@
3636
"dev":["pylint==2.16.2"]
3737
},
3838
package_dir={'': 'src'},
39-
python_requires='>=3.8',
40-
license="MIT License",
39+
python_requires='>=3.8'
4140
)

src/unstructured_client/sdk.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import requests as requests_http
44
from .general import General
55
from .sdkconfiguration import SDKConfiguration
6-
from typing import Dict
6+
from typing import Callable, Dict, Union
77
from unstructured_client import utils
88
from unstructured_client.models import shared
99

@@ -14,7 +14,7 @@ class UnstructuredClient:
1414
sdk_configuration: SDKConfiguration
1515

1616
def __init__(self,
17-
api_key_auth: str ,
17+
api_key_auth: Union[str, Callable[[], str]],
1818
server: str = None,
1919
server_url: str = None,
2020
url_params: Dict[str, str] = None,
@@ -24,7 +24,7 @@ def __init__(self,
2424
"""Instantiates the SDK configuring it with the provided parameters.
2525
2626
:param api_key_auth: The api_key_auth required for authentication
27-
:type api_key_auth: Union[str,Callable[[], str]]
27+
:type api_key_auth: Union[str, Callable[[], str]]
2828
:param server: The server by name to use for all operations
2929
:type server: str
3030
:param server_url: The server URL to use for all operations
@@ -39,7 +39,11 @@ def __init__(self,
3939
if client is None:
4040
client = requests_http.Session()
4141

42-
security = shared.Security(api_key_auth = api_key_auth)
42+
if callable(api_key_auth):
43+
def security():
44+
return shared.Security(api_key_auth = api_key_auth())
45+
else:
46+
security = shared.Security(api_key_auth = api_key_auth)
4347

4448
if server_url is not None:
4549
if url_params is not None:

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.3'
31-
gen_version: str = '2.233.2'
32-
user_agent: str = 'speakeasy-sdk/python 0.15.3 2.233.2 0.0.1 unstructured-client'
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'
3333
retry_config: RetryConfig = None
3434

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

0 commit comments

Comments
 (0)