Skip to content

Commit ce02dd8

Browse files
chore: 🐝 Update SDK - Generate 0.25.5 (#151)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/linting-report/19da1f821803b462faae5549c66818cc> > OpenAPI Change report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/changes-report/5416ef5aa667c7e13534f5380ca3cb49> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.360.0 (2.392.0) https://github.com/speakeasy-api/speakeasy ## OpenAPI Change Summary ``` ├──[➕] security (324:7) ├─┬Info │ └──[🔀] version (4:14) └─┬Extensions └──[🔀] x-speakeasy-retries (325:22) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | info | 1 | 0 | Co-authored-by: speakeasybot <[email protected]>
1 parent d7fc6fc commit ce02dd8

File tree

13 files changed

+41
-35
lines changed

13 files changed

+41
-35
lines changed

Diff for: .speakeasy/gen.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 8b5fa338-9106-4734-abf0-e30d67044a90
33
management:
4-
docChecksum: f4daf2a82fa5421160b71b44ed12f0b9
5-
docVersion: 1.0.43
6-
speakeasyVersion: 1.354.0
7-
generationVersion: 2.386.2
8-
releaseVersion: 0.25.4
9-
configChecksum: 1f4bb53171d8f53ae1bc81f2b0b040e4
4+
docChecksum: 17bd23e4247d7b65a92813afd1252693
5+
docVersion: 1.0.44
6+
speakeasyVersion: 1.361.1
7+
generationVersion: 2.393.4
8+
releaseVersion: 0.25.5
9+
configChecksum: 6b4c1555edde75f4f1e422e49a07c208
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
@@ -17,7 +17,7 @@ features:
1717
constsAndDefaults: 0.1.4
1818
core: 4.8.4
1919
examples: 2.81.3
20-
globalSecurity: 2.83.6
20+
globalSecurity: 2.83.7
2121
globalSecurityCallbacks: 0.1.0
2222
globalSecurityFlattening: 0.1.0
2323
globalServerURLs: 2.82.2
@@ -28,7 +28,7 @@ features:
2828
retries: 2.82.2
2929
sdkHooks: 0.1.0
3030
serverIDs: 2.81.1
31-
unions: 2.82.8
31+
unions: 2.82.9
3232
generatedFiles:
3333
- src/unstructured_client/sdkconfiguration.py
3434
- src/unstructured_client/general.py

Diff for: .speakeasy/workflow.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.354.0
1+
speakeasyVersion: 1.361.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:ee0d781765ce00c76d08ae0013b4636a39a807611e9eb20daf6de4a788966abc
6-
sourceBlobDigest: sha256:4d3509bbee8300363a214c69eff09037aa9d589e46846af3687ebe57cb17194c
5+
sourceRevisionDigest: sha256:403efaa5f402ccbd48b83c579e1d8c14197267223ba67e17ddf9f8b824c78a8e
6+
sourceBlobDigest: sha256:f89c6ba5c02602f9cf8c75d96a69a7fef23f7057cd82e78236557ba51f504e98
77
tags:
88
- latest
99
- main
1010
targets:
1111
unstructured-python:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:ee0d781765ce00c76d08ae0013b4636a39a807611e9eb20daf6de4a788966abc
15-
sourceBlobDigest: sha256:4d3509bbee8300363a214c69eff09037aa9d589e46846af3687ebe57cb17194c
14+
sourceRevisionDigest: sha256:403efaa5f402ccbd48b83c579e1d8c14197267223ba67e17ddf9f8b824c78a8e
15+
sourceBlobDigest: sha256:f89c6ba5c02602f9cf8c75d96a69a7fef23f7057cd82e78236557ba51f504e98
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

Diff for: README.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ import unstructured_client
135135
from unstructured_client.models import operations, shared
136136
from unstructured_client.utils import BackoffStrategy, RetryConfig
137137

138-
s = unstructured_client.UnstructuredClient(
139-
api_key_auth="YOUR_API_KEY",
140-
)
138+
s = unstructured_client.UnstructuredClient()
141139

142140

143141
res = s.general.partition(request=operations.PartitionRequest(
@@ -170,7 +168,6 @@ from unstructured_client.utils import BackoffStrategy, RetryConfig
170168

171169
s = unstructured_client.UnstructuredClient(
172170
retry_config=RetryConfig('backoff', BackoffStrategy(1, 50, 1.1, 100), False),
173-
api_key_auth="YOUR_API_KEY",
174171
)
175172

176173

Diff for: RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -634,4 +634,14 @@ Based on:
634634
### Generated
635635
- [python v0.25.4] .
636636
### Releases
637-
- [PyPI v0.25.4] https://pypi.org/project/unstructured-client/0.25.4 - .
637+
- [PyPI v0.25.4] https://pypi.org/project/unstructured-client/0.25.4 - .
638+
639+
## 2024-08-12 00:22:41
640+
### Changes
641+
Based on:
642+
- OpenAPI Doc
643+
- Speakeasy CLI 1.361.1 (2.393.4) https://github.com/speakeasy-api/speakeasy
644+
### Generated
645+
- [python v0.25.5] .
646+
### Releases
647+
- [PyPI v0.25.5] https://pypi.org/project/unstructured-client/0.25.5 - .

Diff for: USAGE.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
import unstructured_client
44
from unstructured_client.models import operations, shared
55

6-
s = unstructured_client.UnstructuredClient(
7-
api_key_auth="YOUR_API_KEY",
8-
)
6+
s = unstructured_client.UnstructuredClient()
97

108

119
res = s.general.partition(request=operations.PartitionRequest(

Diff for: codeSamples.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ actions:
1212
import unstructured_client
1313
from unstructured_client.models import operations, shared
1414
15-
s = unstructured_client.UnstructuredClient(
16-
api_key_auth="YOUR_API_KEY",
17-
)
15+
s = unstructured_client.UnstructuredClient()
1816
1917
2018
res = s.general.partition(request=operations.PartitionRequest(

Diff for: docs/models/shared/security.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
| Field | Type | Required | Description | Example |
77
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
8-
| `api_key_auth` | *str* | :heavy_check_mark: | N/A | YOUR_API_KEY |
8+
| `api_key_auth` | *Optional[str]* | :heavy_minus_sign: | N/A | YOUR_API_KEY |

Diff for: gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ generation:
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
1212
python:
13-
version: 0.25.4
13+
version: 0.25.5
1414
additionalDependencies:
1515
dependencies:
1616
deepdiff: '>=6.0'

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
setuptools.setup(
2121
name='unstructured-client',
22-
version='0.25.4',
22+
version='0.25.5',
2323
author='Unstructured',
2424
description='Python Client SDK for Unstructured API',
2525
license = 'MIT',

Diff for: src/unstructured_client/general.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ def do_request():
7474
return http_res
7575

7676
http_res = utils.retry(do_request, utils.Retries(retry_config, [
77-
'5xx'
77+
'502',
78+
'503',
79+
'504'
7880
]))
7981

8082

Diff for: src/unstructured_client/models/shared/security.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
from __future__ import annotations
44
import dataclasses
5+
from typing import Optional
56

67

78
@dataclasses.dataclass
89
class Security:
9-
api_key_auth: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'unstructured-api-key' }})
10+
api_key_auth: Optional[str] = dataclasses.field(default=None, metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'unstructured-api-key' }})
1011

1112

Diff for: src/unstructured_client/sdk.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class UnstructuredClient:
1515
sdk_configuration: SDKConfiguration
1616

1717
def __init__(self,
18-
api_key_auth: Union[str, Callable[[], str]],
18+
api_key_auth: Union[Optional[str], Callable[[], Optional[str]]] = None,
1919
server: Optional[str] = None,
2020
server_url: Optional[str] = None,
2121
url_params: Optional[Dict[str, str]] = None,
@@ -25,7 +25,7 @@ def __init__(self,
2525
"""Instantiates the SDK configuring it with the provided parameters.
2626
2727
:param api_key_auth: The api_key_auth required for authentication
28-
:type api_key_auth: Union[str, Callable[[], str]]
28+
:type api_key_auth: Union[Optional[str], Callable[[], Optional[str]]]
2929
:param server: The server by name to use for all operations
3030
:type server: str
3131
:param server_url: The server URL to use for all operations

Diff for: src/unstructured_client/sdkconfiguration.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ class SDKConfiguration:
3131
server_url: Optional[str] = ''
3232
server: Optional[str] = ''
3333
language: str = 'python'
34-
openapi_doc_version: str = '1.0.43'
35-
sdk_version: str = '0.25.4'
36-
gen_version: str = '2.386.2'
37-
user_agent: str = 'speakeasy-sdk/python 0.25.4 2.386.2 1.0.43 unstructured-client'
34+
openapi_doc_version: str = '1.0.44'
35+
sdk_version: str = '0.25.5'
36+
gen_version: str = '2.393.4'
37+
user_agent: str = 'speakeasy-sdk/python 0.25.5 2.393.4 1.0.44 unstructured-client'
3838
retry_config: Optional[RetryConfig] = None
3939

4040
def __post_init__(self):

0 commit comments

Comments
 (0)