diff --git a/RELEASES.md b/RELEASES.md
index a89dc111..2c0e6bbc 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -164,4 +164,24 @@ Based on:
### Generated
- [python v0.8.1] .
### Releases
-- [PyPI v0.8.1] https://pypi.org/project/unstructured-client/0.8.1 - .
\ No newline at end of file
+- [PyPI v0.8.1] https://pypi.org/project/unstructured-client/0.8.1 - .
+
+## 2023-10-05 00:18:04
+### Changes
+Based on:
+- OpenAPI Doc 0.0.1
+- Speakeasy CLI 1.94.0 (2.147.0) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [python v0.8.2] .
+### Releases
+- [PyPI v0.8.2] https://pypi.org/project/unstructured-client/0.8.2 - .
+
+## 2023-10-07 00:17:38
+### Changes
+Based on:
+- OpenAPI Doc 0.0.1
+- Speakeasy CLI 1.96.1 (2.150.0) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [python v0.9.0] .
+### Releases
+- [PyPI v0.9.0] https://pypi.org/project/unstructured-client/0.9.0 - .
\ No newline at end of file
diff --git a/USAGE.md b/USAGE.md
index b1def9e4..8b919bdd 100755
--- a/USAGE.md
+++ b/USAGE.md
@@ -14,7 +14,6 @@ s = unstructured_client.UnstructuredClient(
req = shared.PartitionParameters(
chunking_strategy='by_title',
combine_under_n_chars=500,
- coordinates=False,
encoding='utf-8',
files=shared.PartitionParametersFiles(
content='+WmI5Q)|yy'.encode(),
@@ -22,19 +21,21 @@ req = shared.PartitionParameters(
),
gz_uncompressed_content_type='application/pdf',
hi_res_model_name='yolox',
- include_page_breaks=False,
languages=[
- 'eng',
+ '[',
+ 'e',
+ 'n',
+ 'g',
+ ']',
],
- multipage_sections=False,
new_after_n_chars=1500,
output_format='application/json',
- pdf_infer_table_structure=False,
skip_infer_table_types=[
- 'pdf',
+ 'p',
+ 'd',
+ 'f',
],
strategy='hi_res',
- xml_keep_tags=False,
)
res = s.general.partition(req)
diff --git a/docs/models/shared/partitionparameters.md b/docs/models/shared/partitionparameters.md
index bc956e9a..28750bee 100755
--- a/docs/models/shared/partitionparameters.md
+++ b/docs/models/shared/partitionparameters.md
@@ -13,11 +13,11 @@
| `gz_uncompressed_content_type` | *Optional[str]* | :heavy_minus_sign: | If file is gzipped, use this content type after unzipping | application/pdf |
| `hi_res_model_name` | *Optional[str]* | :heavy_minus_sign: | The name of the inference model used when strategy is hi_res | yolox |
| `include_page_breaks` | *Optional[bool]* | :heavy_minus_sign: | If True, the output will include page breaks if the filetype supports it. Default: false | |
-| `languages` | list[*str*] | :heavy_minus_sign: | The languages present in the document, for use in partitioning and/or OCR | |
+| `languages` | list[*str*] | :heavy_minus_sign: | The languages present in the document, for use in partitioning and/or OCR | [eng] |
| `multipage_sections` | *Optional[bool]* | :heavy_minus_sign: | If chunking strategy is set, determines if sections can span multiple sections. Default: true | |
| `new_after_n_chars` | *Optional[int]* | :heavy_minus_sign: | If chunking strategy is set, cut off new sections after reaching a length of n chars. Default: 1500 | 1500 |
| `output_format` | *Optional[str]* | :heavy_minus_sign: | The format of the response. Supported formats are application/json and text/csv. Default: application/json. | application/json |
| `pdf_infer_table_structure` | *Optional[bool]* | :heavy_minus_sign: | If True and strategy=hi_res, any Table Elements extracted from a PDF will include an additional metadata field, 'text_as_html', where the value (string) is a just a transformation of the data into an HTML
. | |
-| `skip_infer_table_types` | list[*str*] | :heavy_minus_sign: | The document types that you want to skip table extraction with. Default: ['pdf', 'jpg', 'png'] | |
+| `skip_infer_table_types` | list[*str*] | :heavy_minus_sign: | The document types that you want to skip table extraction with. Default: ['pdf', 'jpg', 'png'] | pdf |
| `strategy` | *Optional[str]* | :heavy_minus_sign: | The strategy to use for partitioning PDF/image. Options are fast, hi_res, auto. Default: auto | hi_res |
| `xml_keep_tags` | *Optional[bool]* | :heavy_minus_sign: | If True, will retain the XML tags in the output. Otherwise it will simply extract the text from within the tags. Only applies to partition_xml. | |
\ No newline at end of file
diff --git a/docs/sdks/general/README.md b/docs/sdks/general/README.md
index 922f1c33..e0d52595 100755
--- a/docs/sdks/general/README.md
+++ b/docs/sdks/general/README.md
@@ -24,7 +24,6 @@ s = unstructured_client.UnstructuredClient(
req = shared.PartitionParameters(
chunking_strategy='by_title',
combine_under_n_chars=500,
- coordinates=False,
encoding='utf-8',
files=shared.PartitionParametersFiles(
content='+WmI5Q)|yy'.encode(),
@@ -32,19 +31,21 @@ req = shared.PartitionParameters(
),
gz_uncompressed_content_type='application/pdf',
hi_res_model_name='yolox',
- include_page_breaks=False,
languages=[
- 'eng',
+ '[',
+ 'e',
+ 'n',
+ 'g',
+ ']',
],
- multipage_sections=False,
new_after_n_chars=1500,
output_format='application/json',
- pdf_infer_table_structure=False,
skip_infer_table_types=[
- 'pdf',
+ 'p',
+ 'd',
+ 'f',
],
strategy='hi_res',
- xml_keep_tags=False,
)
res = s.general.partition(req)
diff --git a/gen.yaml b/gen.yaml
index 3d4c9daa..a940780b 100644
--- a/gen.yaml
+++ b/gen.yaml
@@ -2,8 +2,8 @@ configVersion: 1.0.0
management:
docChecksum: 25324f1821b1070aa4a416ec8ddca590
docVersion: 0.0.1
- speakeasyVersion: 1.92.3
- generationVersion: 2.143.2
+ speakeasyVersion: 1.96.1
+ generationVersion: 2.150.0
generation:
comments:
disableComments: false
@@ -14,18 +14,19 @@ generation:
tagNamespacingDisabled: false
features:
python:
- core: 2.88.1
+ core: 2.88.4
downloadStreams: 0.0.1
examples: 2.81.2
- globalSecurity: 2.81.1
+ globalSecurity: 2.82.0
globalServerURLs: 2.82.0
nameOverrides: 2.81.1
retries: 2.82.0
serverIDs: 2.81.1
python:
- version: 0.8.1
+ version: 0.9.0
author: Unstructured
clientServerStatusCodesAsErrors: true
description: Python Client SDK Generated by Speakeasy
+ flattenGlobalSecurity: false
maxMethodParams: 0
packageName: unstructured-client
diff --git a/setup.py b/setup.py
index a8740672..f23ddd89 100755
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@
setuptools.setup(
name="unstructured-client",
- version="0.8.1",
+ version="0.9.0",
author="Unstructured",
description="Python Client SDK Generated by Speakeasy",
long_description=long_description,
diff --git a/src/unstructured_client/models/__init__.py b/src/unstructured_client/models/__init__.py
index 889f8adc..36628d6c 100755
--- a/src/unstructured_client/models/__init__.py
+++ b/src/unstructured_client/models/__init__.py
@@ -1,2 +1,3 @@
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
+# __init__.py
diff --git a/src/unstructured_client/models/errors/validationerror.py b/src/unstructured_client/models/errors/validationerror.py
index 2a78ee82..ba57c966 100755
--- a/src/unstructured_client/models/errors/validationerror.py
+++ b/src/unstructured_client/models/errors/validationerror.py
@@ -2,6 +2,7 @@
from __future__ import annotations
import dataclasses
+from ..shared import validationerror_loc as shared_validationerror_loc
from dataclasses_json import Undefined, dataclass_json
from typing import Union
from unstructured_client import utils
diff --git a/src/unstructured_client/sdk.py b/src/unstructured_client/sdk.py
index e665c59f..2e830b46 100755
--- a/src/unstructured_client/sdk.py
+++ b/src/unstructured_client/sdk.py
@@ -13,7 +13,7 @@ class UnstructuredClient:
sdk_configuration: SDKConfiguration
def __init__(self,
- security: shared.Security = None,
+ api_key_auth: str,
server: str = None,
server_url: str = None,
url_params: dict[str, str] = None,
@@ -22,8 +22,8 @@ def __init__(self,
) -> None:
"""Instantiates the SDK configuring it with the provided parameters.
- :param security: The security details required for authentication
- :type security: shared.Security
+ :param api_key_auth: The api_key_auth required for authentication
+ :type api_key_auth: str
:param server: The server by name to use for all operations
:type server: str
:param server_url: The server URL to use for all operations
@@ -38,8 +38,10 @@ def __init__(self,
if client is None:
client = requests_http.Session()
+
security_client = utils.configure_security_client(client, security)
+
if server_url is not None:
if url_params is not None:
server_url = utils.template_url(server_url, url_params)
diff --git a/src/unstructured_client/sdkconfiguration.py b/src/unstructured_client/sdkconfiguration.py
index 6a69c8a3..c9f51c18 100755
--- a/src/unstructured_client/sdkconfiguration.py
+++ b/src/unstructured_client/sdkconfiguration.py
@@ -25,9 +25,9 @@ class SDKConfiguration:
server: str = ''
language: str = 'python'
openapi_doc_version: str = '0.0.1'
- sdk_version: str = '0.8.1'
- gen_version: str = '2.143.2'
- user_agent: str = 'speakeasy-sdk/python 0.8.1 2.143.2 0.0.1 unstructured-client'
+ sdk_version: str = '0.9.0'
+ gen_version: str = '2.150.0'
+ user_agent: str = 'speakeasy-sdk/python 0.9.0 2.150.0 0.0.1 unstructured-client'
retry_config: RetryConfig = None
def get_server_details(self) -> tuple[str, dict[str, str]]: