Skip to content

Commit 9edfe93

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.345.4
1 parent 977063e commit 9edfe93

File tree

12 files changed

+134
-73
lines changed

12 files changed

+134
-73
lines changed

.speakeasy/gen.lock

Lines changed: 8 additions & 7 deletions
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: 774e507b2df4f671362defe668d4d0d6
5-
docVersion: 1.0.39
6-
speakeasyVersion: 1.335.0
7-
generationVersion: 2.370.2
8-
releaseVersion: 0.24.1
9-
configChecksum: 7ebed47354cd1fd023aebb9420561b04
4+
docChecksum: c20db13bfb07ee6d97a80d72980a238c
5+
docVersion: 1.0.41
6+
speakeasyVersion: 1.345.4
7+
generationVersion: 2.378.3
8+
releaseVersion: 0.24.2
9+
configChecksum: fec8eaa9c3b1e2a9c9a2032679e8c951
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
additionalDependencies: 0.1.0
1717
constsAndDefaults: 0.1.3
18-
core: 4.8.1
18+
core: 4.8.3
1919
examples: 2.81.3
2020
globalSecurity: 2.83.5
2121
globalSecurityCallbacks: 0.1.0
@@ -71,3 +71,4 @@ generatedFiles:
7171
- src/unstructured_client/_hooks/sdkhooks.py
7272
- src/unstructured_client/_hooks/types.py
7373
- src/unstructured_client/_hooks/__init__.py
74+
- CONTRIBUTING.md

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.335.0
1+
speakeasyVersion: 1.345.4
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:f10e0d137f19dffb5d454153726970d685470742c7a8d9371417d497011f39be
6-
sourceBlobDigest: sha256:b90b7b4a3f5ad94dd55e1cbaa47ae166776a377cb529dde2e3f1996f7789dbda
5+
sourceRevisionDigest: sha256:06546cdeff1e38101705a9a6fbafa43f8a924c9ddb0f2786f03fe3e7037592a7
6+
sourceBlobDigest: sha256:40aeac971430b48da0e8e010555e99868d76ed43c0db58ae679dc0c64b9b0327
77
tags:
88
- latest
99
- main
1010
targets:
1111
unstructured-python:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:f10e0d137f19dffb5d454153726970d685470742c7a8d9371417d497011f39be
15-
sourceBlobDigest: sha256:b90b7b4a3f5ad94dd55e1cbaa47ae166776a377cb529dde2e3f1996f7789dbda
14+
sourceRevisionDigest: sha256:06546cdeff1e38101705a9a6fbafa43f8a924c9ddb0f2786f03fe3e7037592a7
15+
sourceBlobDigest: sha256:40aeac971430b48da0e8e010555e99868d76ed43c0db58ae679dc0c64b9b0327
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing to This Repository
2+
3+
Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.
4+
5+
## How to Report Issues
6+
7+
If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:
8+
9+
- A clear and descriptive title
10+
- Steps to reproduce the issue
11+
- Expected and actual behavior
12+
- Any relevant logs, screenshots, or error messages
13+
- Information about your environment (e.g., operating system, software versions)
14+
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed
15+
16+
## Issue Triage and Upstream Fixes
17+
18+
We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.
19+
20+
## Contact
21+
22+
If you have any questions or need further assistance, please feel free to reach out by opening an issue.
23+
24+
Thank you for your understanding and cooperation!
25+
26+
The Maintainers

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,12 @@ res = s.general.partition(request=operations.PartitionRequest(
131131
content='0x2cC94b2FEF'.encode(),
132132
file_name='your_file_here',
133133
),
134+
chunking_strategy=shared.ChunkingStrategy.BY_TITLE,
134135
split_pdf_page_range=[
135136
1,
136137
10,
137138
],
138-
strategy=shared.Strategy.AUTO,
139+
strategy=shared.Strategy.HI_RES,
139140
),
140141
),
141142
RetryConfig('backoff', BackoffStrategy(1, 50, 1.1, 100), False))
@@ -164,11 +165,12 @@ res = s.general.partition(request=operations.PartitionRequest(
164165
content='0x2cC94b2FEF'.encode(),
165166
file_name='your_file_here',
166167
),
168+
chunking_strategy=shared.ChunkingStrategy.BY_TITLE,
167169
split_pdf_page_range=[
168170
1,
169171
10,
170172
],
171-
strategy=shared.Strategy.AUTO,
173+
strategy=shared.Strategy.HI_RES,
172174
),
173175
))
174176

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,4 +584,14 @@ Based on:
584584
### Generated
585585
- [python v0.24.1] .
586586
### Releases
587-
- [PyPI v0.24.1] https://pypi.org/project/unstructured-client/0.24.1 - .
587+
- [PyPI v0.24.1] https://pypi.org/project/unstructured-client/0.24.1 - .
588+
589+
## 2024-07-25 00:21:12
590+
### Changes
591+
Based on:
592+
- OpenAPI Doc
593+
- Speakeasy CLI 1.345.4 (2.378.3) https://github.com/speakeasy-api/speakeasy
594+
### Generated
595+
- [python v0.24.2] .
596+
### Releases
597+
- [PyPI v0.24.2] https://pypi.org/project/unstructured-client/0.24.2 - .

USAGE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ res = s.general.partition(request=operations.PartitionRequest(
1414
content='0x2cC94b2FEF'.encode(),
1515
file_name='your_file_here',
1616
),
17+
chunking_strategy=shared.ChunkingStrategy.BY_TITLE,
1718
split_pdf_page_range=[
1819
1,
1920
10,
2021
],
21-
strategy=shared.Strategy.AUTO,
22+
strategy=shared.Strategy.HI_RES,
2223
),
2324
))
2425

codeSamples.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ actions:
2424
content='0x2cC94b2FEF'.encode(),
2525
),
2626
strategy=shared.Strategy.AUTO,
27+
chunking_strategy=shared.ChunkingStrategy.BASIC,
2728
split_pdf_page_range=[
2829
1,
2930
10,

docs/models/shared/partitionparameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| Field | Type | Required | Description | Example |
77
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
88
| `files` | [shared.Files](../../models/shared/files.md) | :heavy_check_mark: | The file to extract | |
9-
| `chunking_strategy` | [Optional[shared.ChunkingStrategy]](../../models/shared/chunkingstrategy.md) | :heavy_minus_sign: | Use one of the supported strategies to chunk the returned elements after partitioning. When 'chunking_strategy' is not specified, no chunking is performed and any other chunking parameters provided are ignored. Supported strategies: 'basic', 'by_page', 'by_similarity', or 'by_title' | |
9+
| `chunking_strategy` | [Optional[shared.ChunkingStrategy]](../../models/shared/chunkingstrategy.md) | :heavy_minus_sign: | Use one of the supported strategies to chunk the returned elements after partitioning. When 'chunking_strategy' is not specified, no chunking is performed and any other chunking parameters provided are ignored. Supported strategies: 'basic', 'by_page', 'by_similarity', or 'by_title' | by_title |
1010
| `combine_under_n_chars` | *Optional[int]* | :heavy_minus_sign: | If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500 | |
1111
| `coordinates` | *Optional[bool]* | :heavy_minus_sign: | If `True`, return coordinates for each element extracted via OCR. Default: `False` | |
1212
| `encoding` | *Optional[str]* | :heavy_minus_sign: | The encoding method used to decode the text input. Default: utf-8 | |

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ generation:
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
1212
python:
13-
version: 0.24.1
13+
version: 0.24.2
1414
additionalDependencies:
1515
dependencies:
1616
deepdiff: '>=6.0'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

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

src/unstructured_client/sdkconfiguration.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@
1010
from unstructured_client.models import shared
1111

1212

13+
SERVER_SAAS_API = 'saas-api'
14+
r"""Serverless SaaS API"""
1315
SERVER_FREE_API = 'free-api'
1416
r"""Hosted API Free"""
1517
SERVER_DEVELOPMENT = 'development'
1618
r"""Development server"""
1719
SERVERS = {
20+
SERVER_SAAS_API: 'https://api.unstructuredapp.io',
1821
SERVER_FREE_API: 'https://api.unstructured.io',
1922
SERVER_DEVELOPMENT: 'http://localhost:8000',
2023
}
@@ -28,10 +31,10 @@ class SDKConfiguration:
2831
server_url: Optional[str] = ''
2932
server: Optional[str] = ''
3033
language: str = 'python'
31-
openapi_doc_version: str = '1.0.39'
32-
sdk_version: str = '0.24.1'
33-
gen_version: str = '2.370.2'
34-
user_agent: str = 'speakeasy-sdk/python 0.24.1 2.370.2 1.0.39 unstructured-client'
34+
openapi_doc_version: str = '1.0.41'
35+
sdk_version: str = '0.24.2'
36+
gen_version: str = '2.378.3'
37+
user_agent: str = 'speakeasy-sdk/python 0.24.2 2.378.3 1.0.41 unstructured-client'
3538
retry_config: Optional[RetryConfig] = None
3639

3740
def __post_init__(self):
@@ -41,7 +44,7 @@ def get_server_details(self) -> Tuple[str, Dict[str, str]]:
4144
if self.server_url is not None and self.server_url != '':
4245
return utils.remove_suffix(self.server_url, '/'), {}
4346
if not self.server:
44-
self.server = SERVER_FREE_API
47+
self.server = SERVER_SAAS_API
4548

4649
if self.server not in SERVERS:
4750
raise ValueError(f"Invalid server \"{self.server}\"")

0 commit comments

Comments
 (0)