Skip to content

Commit

Permalink
chore: 🐝 Update SDK - Generate 0.25.9 (#177)
Browse files Browse the repository at this point in the history
> [!IMPORTANT]
> Linting report available at:
<https://app.speakeasy.com/org/unstructured/unstructured5xr/linting-report/d2bc6f83effd47e2e89c60737ce323e6>
> OpenAPI Change report available at:
<https://app.speakeasy.com/org/unstructured/unstructured5xr/changes-report/7a3117a9f5b2e6252e1390b8cae91792>
# SDK update
Based on:
- OpenAPI Doc  
- Speakeasy CLI 1.399.2 (2.416.6)
https://github.com/speakeasy-api/speakeasy
## OpenAPI Change Summary
No specification changes

Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Sep 18, 2024
1 parent 84f39e9 commit f773b0d
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 26 deletions.
14 changes: 7 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ id: 8b5fa338-9106-4734-abf0-e30d67044a90
management:
docChecksum: ad32e3faae264ab1eb7cf461e373dcfa
docVersion: 1.0.48
speakeasyVersion: 1.394.0
generationVersion: 2.413.0
releaseVersion: 0.25.8
configChecksum: a507e57b6d5946017db1c1c77d195ca1
speakeasyVersion: 1.399.2
generationVersion: 2.416.6
releaseVersion: 0.25.9
configChecksum: b89659e8aec8879c7c254a35eb4c177a
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
Expand All @@ -15,7 +15,7 @@ features:
python:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.4
core: 4.8.7
core: 4.8.9
examples: 2.81.3
globalSecurity: 2.83.7
globalSecurityCallbacks: 0.1.0
Expand Down Expand Up @@ -76,11 +76,11 @@ examples:
partition:
speakeasy-default-partition:
requestBody:
multipart/form-data: {"chunking_strategy": "by_title", "files": {"": "your_file_here"}, "split_pdf_page_range": [1, 10], "strategy": "hi_res"}
multipart/form-data: {"chunking_strategy": "by_title", "files": {"": "{\"summary\":\"File to be partitioned\",\"externalValue\":\"https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf\"}"}, "split_pdf_page_range": [1, 10], "strategy": "hi_res"}
responses:
"200":
application/json: [{"type": "Title", "element_id": "6aa0ff22f91bbe7e26e8e25ca8052acd", "text": "LayoutParser: A Unified Toolkit for Deep Learning Based Document Image Analysis", "metadata": {"languages": ["eng"], "page_number": 1, "filename": "layout-parser-paper.pdf", "filetype": "application/pdf"}}]
"422":
application/json: {"detail": "<value>"}
application/json: {"detail": []}
5XX:
application/json: {"detail": "An error occurred"}
7 changes: 3 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
speakeasyVersion: 1.394.0
speakeasyVersion: 1.399.2
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:29b9f3ceed3f42448875bdc907c1c392968b754dba42e07b8f52cdc00ceec316
sourceRevisionDigest: sha256:03b68d64a17742b04310ceeea73a5967ac4524bb8649f4b48051bf822defcbc3
sourceBlobDigest: sha256:65a229a99ea03f305aa2234ac0cde685feca207446d2860c6e3d4b8280ad81d0
tags:
- latest
Expand All @@ -11,9 +11,8 @@ targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:29b9f3ceed3f42448875bdc907c1c392968b754dba42e07b8f52cdc00ceec316
sourceRevisionDigest: sha256:03b68d64a17742b04310ceeea73a5967ac4524bb8649f4b48051bf822defcbc3
sourceBlobDigest: sha256:65a229a99ea03f305aa2234ac0cde685feca207446d2860c6e3d4b8280ad81d0
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ res = s.general.partition(request=operations.PartitionRequest(
partition_parameters=shared.PartitionParameters(
files=shared.Files(
content='0x2cC94b2FEF'.encode(),
file_name='your_file_here',
file_name='example.file',
),
chunking_strategy=shared.ChunkingStrategy.BY_TITLE,
split_pdf_page_range=[
Expand Down Expand Up @@ -196,7 +196,7 @@ res = s.general.partition(request=operations.PartitionRequest(
partition_parameters=shared.PartitionParameters(
files=shared.Files(
content='0x2cC94b2FEF'.encode(),
file_name='your_file_here',
file_name='example.file',
),
chunking_strategy=shared.ChunkingStrategy.BY_TITLE,
split_pdf_page_range=[
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -675,4 +675,14 @@ Based on:
### Generated
- [python v0.25.8] .
### Releases
- [PyPI v0.25.8] https://pypi.org/project/unstructured-client/0.25.8 - .
- [PyPI v0.25.8] https://pypi.org/project/unstructured-client/0.25.8 - .

## 2024-09-18 15:20:12
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.399.2 (2.416.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.25.9] .
### Releases
- [PyPI v0.25.9] https://pypi.org/project/unstructured-client/0.25.9 - .
2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ res = s.general.partition(request=operations.PartitionRequest(
partition_parameters=shared.PartitionParameters(
files=shared.Files(
content='0x2cC94b2FEF'.encode(),
file_name='your_file_here',
file_name='example.file',
),
chunking_strategy=shared.ChunkingStrategy.BY_TITLE,
split_pdf_page_range=[
Expand Down
2 changes: 1 addition & 1 deletion codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ actions:
res = s.general.partition(request=operations.PartitionRequest(
partition_parameters=shared.PartitionParameters(
files=shared.Files(
file_name='your_file_here',
file_name='example.file',
content='0x2cC94b2FEF'.encode(),
),
strategy=shared.Strategy.AUTO,
Expand Down
8 changes: 4 additions & 4 deletions docs/models/shared/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `content` | *bytes* | :heavy_check_mark: | N/A |
| `file_name` | *str* | :heavy_check_mark: | N/A |
| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `content` | *bytes* | :heavy_check_mark: | N/A | {<br/>"summary": "File to be partitioned",<br/>"externalValue": "https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf"<br/>} |
| `file_name` | *str* | :heavy_check_mark: | N/A | {<br/>"summary": "File to be partitioned",<br/>"externalValue": "https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf"<br/>} |
4 changes: 2 additions & 2 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
python:
version: 0.25.8
version: 0.25.9
additionalDependencies:
dependencies:
cryptography: '>=3.1'
deepdiff: '>=6.0'
httpx: '>=0.27.0'
nest-asyncio: '>=1.6.0'
pypdf: '>=4.0'
cryptography: '>=3.1'
requests-toolbelt: '>=1.0.0'
extraDependencies:
dev: {}
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

setuptools.setup(
name='unstructured-client',
version='0.25.8',
version='0.25.9',
author='Unstructured',
description='Python Client SDK for Unstructured API',
license = 'MIT',
Expand All @@ -30,6 +30,7 @@
install_requires=[
"certifi>=2023.7.22",
"charset-normalizer>=3.2.0",
"cryptography>=3.1",
"dataclasses-json>=0.6.4",
"deepdiff>=6.0",
"httpx>=0.27.0",
Expand Down
6 changes: 3 additions & 3 deletions src/unstructured_client/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class SDKConfiguration:
server: Optional[str] = ''
language: str = 'python'
openapi_doc_version: str = '1.0.48'
sdk_version: str = '0.25.8'
gen_version: str = '2.413.0'
user_agent: str = 'speakeasy-sdk/python 0.25.8 2.413.0 1.0.48 unstructured-client'
sdk_version: str = '0.25.9'
gen_version: str = '2.416.6'
user_agent: str = 'speakeasy-sdk/python 0.25.9 2.416.6 1.0.48 unstructured-client'
retry_config: Optional[RetryConfig] = None

def __post_init__(self):
Expand Down

0 comments on commit f773b0d

Please sign in to comment.