Skip to content

Commit f345613

Browse files
github-actions[bot]speakeasybotawalker4
authored
chore: 🐝 Update SDK - Generate 0.26.0-beta.2 (#180)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/linting-report/06f2b539d2c97cb1615ae662e87e17ac> > OpenAPI Change report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/changes-report/6742c98a9ebf761f72becadba40dc5f8> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.401.2 (2.421.3) https://github.com/speakeasy-api/speakeasy ## OpenAPI Change Summary ``` ├─┬Info │ └──[🔀] version (5:16) ├─┬Components │ └─┬partition_parameters │ ├──[➕] properties (448:11) │ ├─┬starting_page_number │ │ ├─┬ANYOF │ │ │ ├──[🔀] type (302:25)❌ │ │ │ └──[➕] default (303:28)❌ │ │ └─┬ANYOF │ │ ├──[🔀] type (306:25)❌ │ │ └──[➖] default (181:35)❌ │ ├─┬gz_uncompressed_content_type │ │ ├─┬ANYOF │ │ │ ├──[🔀] type (226:25)❌ │ │ │ └──[➕] default (227:28)❌ │ │ └─┬ANYOF │ │ ├──[🔀] type (230:25)❌ │ │ └──[➖] default (127:35)❌ │ ├─┬strategy │ │ ├──[🔀] description (321:28) │ │ └──[🔀] default (322:24)❌ │ ├─┬max_characters │ │ ├─┬ANYOF │ │ │ ├──[🔀] type (394:25)❌ │ │ │ └──[➕] default (395:28)❌ │ │ └─┬ANYOF │ │ ├──[🔀] type (398:25)❌ │ │ └──[➖] default (242:35)❌ │ ├─┬new_after_n_chars │ │ ├─┬ANYOF │ │ │ ├──[🔀] type (413:25)❌ │ │ │ └──[➕] default (414:28)❌ │ │ └─┬ANYOF │ │ ├──[🔀] type (417:25)❌ │ │ └──[➖] default (254:35)❌ │ ├─┬encoding │ │ ├─┬ANYOF │ │ │ ├──[🔀] type (204:25)❌ │ │ │ └──[➕] default (205:28)❌ │ │ └─┬ANYOF │ │ ├──[🔀] type (208:25)❌ │ │ └──[➖] default (113:35)❌ │ ├─┬content_type │ │ ├─┬ANYOF │ │ │ ├──[🔀] type (191:25)❌ │ │ │ └──[➕] default (192:28)❌ │ │ └─┬ANYOF │ │ ├──[🔀] type (195:25)❌ │ │ └──[➖] default (106:35)❌ │ ├─┬combine_under_n_chars │ │ ├─┬ANYOF │ │ │ ├──[🔀] type (368:25)❌ │ │ │ └──[➕] default (369:28)❌ │ │ └─┬ANYOF │ │ ├──[🔀] type (372:25)❌ │ │ └──[➖] default (228:35)❌ │ ├─┬chunking_strategy │ │ ├─┬ANYOF │ │ │ ├──[➖] enum (214:31)❌ │ │ │ ├──[➖] enum (215:31)❌ │ │ │ ├──[➖] enum (216:31)❌ │ │ │ ├──[➖] enum (213:31)❌ │ │ │ ├──[🔀] type (354:25)❌ │ │ │ └──[➖] default (217:35)❌ │ │ └─┬ANYOF │ │ ├──[➕] enum (346:19) │ │ ├──[➕] enum (347:19) │ │ ├──[➕] enum (348:19) │ │ ├──[➕] enum (349:19) │ │ ├──[🔀] type (344:25)❌ │ │ └──[➕] default (351:28)❌ │ ├──similarity_threshold │ ├─┬include_orig_elements │ │ ├─┬ANYOF │ │ │ ├──[🔀] type (385:25)❌ │ │ │ └──[➖] default (235:35)❌ │ │ └─┬ANYOF │ │ ├──[🔀] type (381:25)❌ │ │ └──[➕] default (382:28)❌ │ └─┬hi_res_model_name │ ├─┬ANYOF │ │ ├──[🔀] type (239:25)❌ │ │ └──[➕] default (240:28)❌ │ └─┬ANYOF │ ├──[🔀] type (243:25)❌ │ └──[➖] default (134:35)❌ └─┬Extensions └──[🔀] x-speakeasy-retries (543:26) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | info | 1 | 0 | | components | 51 | 45 | Co-authored-by: speakeasybot <[email protected]> Co-authored-by: Austin Walker <[email protected]>
1 parent 643ed88 commit f345613

File tree

8 files changed

+96
-1913
lines changed

8 files changed

+96
-1913
lines changed

.speakeasy/gen.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
lockVersion: 2.0.0
22
id: 8b5fa338-9106-4734-abf0-e30d67044a90
33
management:
4-
docChecksum: ad32e3faae264ab1eb7cf461e373dcfa
4+
docChecksum: 50c3c5e39eb24b50e53fbe08f8156e76
55
docVersion: 1.0.48
6-
speakeasyVersion: 1.396.6
7-
generationVersion: 2.415.6
8-
releaseVersion: 0.26.0-beta.1
9-
configChecksum: 1af6154f17e397a8f89b4f6fd727be8d
6+
speakeasyVersion: 1.401.2
7+
generationVersion: 2.421.3
8+
releaseVersion: 0.26.0-beta.2
9+
configChecksum: 1c64b3f4febc852a778315853edd62ff
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:
1616
additionalDependencies: 1.0.0
17-
constsAndDefaults: 1.0.2
18-
core: 5.5.3
17+
constsAndDefaults: 1.0.3
18+
core: 5.5.4
1919
defaultEnabledRetries: 0.2.0
2020
enumUnions: 0.1.0
2121
envVarSecurityUsage: 0.3.1
@@ -105,6 +105,6 @@ examples:
105105
"200":
106106
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"}}]
107107
"422":
108-
application/json: {"detail": "<value>"}
108+
application/json: {"detail": []}
109109
5XX:
110110
application/json: {"detail": "An error occurred"}

.speakeasy/workflow.lock

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
speakeasyVersion: 1.361.1
1+
speakeasyVersion: 1.401.2
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:403efaa5f402ccbd48b83c579e1d8c14197267223ba67e17ddf9f8b824c78a8e
6-
sourceBlobDigest: sha256:f89c6ba5c02602f9cf8c75d96a69a7fef23f7057cd82e78236557ba51f504e98
5+
sourceRevisionDigest: sha256:8e6306f9d3aef76cdd2d517057e363229b0c83337f56f7ef6ee5e497067ed02e
6+
sourceBlobDigest: sha256:e56a9e82f06b4aecdc8653a8b04256104f5ef4c8000dd8fd30fb2cb66a857567
77
tags:
88
- latest
99
- main
1010
targets:
1111
unstructured-python:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:403efaa5f402ccbd48b83c579e1d8c14197267223ba67e17ddf9f8b824c78a8e
15-
sourceBlobDigest: sha256:f89c6ba5c02602f9cf8c75d96a69a7fef23f7057cd82e78236557ba51f504e98
16-
outLocation: /github/workspace/repo
14+
sourceRevisionDigest: sha256:8e6306f9d3aef76cdd2d517057e363229b0c83337f56f7ef6ee5e497067ed02e
15+
sourceBlobDigest: sha256:e56a9e82f06b4aecdc8653a8b04256104f5ef4c8000dd8fd30fb2cb66a857567
1716
workflow:
1817
workflowVersion: 1.0.0
1918
speakeasyVersion: latest

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -654,4 +654,14 @@ Based on:
654654
### Generated
655655
- [python v0.26.0-beta.1] .
656656
### Releases
657-
- [PyPI v0.26.0-beta.1] https://pypi.org/project/unstructured-client/0.26.0-beta.1 - .
657+
- [PyPI v0.26.0-beta.1] https://pypi.org/project/unstructured-client/0.26.0-beta.1 - .
658+
659+
## 2024-09-21 00:08:49
660+
### Changes
661+
Based on:
662+
- OpenAPI Doc
663+
- Speakeasy CLI 1.401.2 (2.421.3) https://github.com/speakeasy-api/speakeasy
664+
### Generated
665+
- [python v0.26.0-beta.2] .
666+
### Releases
667+
- [PyPI v0.26.0-beta.2] https://pypi.org/project/unstructured-client/0.26.0-beta.2 - .

codeSamples.yaml

+4-28
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,7 @@ info:
55
actions:
66
- target: $["paths"]["/general/v0/general"]["post"]
77
update:
8-
x-codeSamples:
9-
- lang: python
10-
label: partition
11-
source: |-
12-
import unstructured_client
13-
from unstructured_client.models import operations, shared
14-
15-
s = unstructured_client.UnstructuredClient()
16-
17-
18-
res = s.general.partition(request=operations.PartitionRequest(
19-
partition_parameters=shared.PartitionParameters(
20-
files=shared.Files(
21-
file_name='your_file_here',
22-
content='0x2cC94b2FEF'.encode(),
23-
),
24-
strategy=shared.Strategy.AUTO,
25-
chunking_strategy=shared.ChunkingStrategy.BASIC,
26-
split_pdf_page_range=[
27-
1,
28-
10,
29-
],
30-
),
31-
))
32-
33-
if res.elements is not None:
34-
# handle response
35-
pass
8+
"x-codeSamples":
9+
- "lang": "python"
10+
"label": "partition"
11+
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\ns = UnstructuredClient()\n\nres = s.general.partition(request={\n \"partition_parameters\": {\n \"files\": {\n \"file_name\": \"example.file\",\n \"content\": open(\"example.file\", \"rb\"),\n },\n \"strategy\": shared.Strategy.AUTO,\n \"chunking_strategy\": shared.ChunkingStrategy.BASIC,\n \"split_pdf_page_range\": [\n 1,\n 10,\n ],\n },\n})\n\nif res.elements is not None:\n # handle response\n pass"

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.26.0-beta.1
13+
version: 0.26.0-beta.2
1414
additionalDependencies:
1515
dev:
1616
deepdiff: '>=6.0'

0 commit comments

Comments
 (0)