Skip to content

Commit

Permalink
chore: 🐝 Update SDK - Generate 0.26.0-beta.2 (#180)
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/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]>
  • Loading branch information
3 people authored Sep 21, 2024
1 parent 643ed88 commit f345613
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 1,913 deletions.
16 changes: 8 additions & 8 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
lockVersion: 2.0.0
id: 8b5fa338-9106-4734-abf0-e30d67044a90
management:
docChecksum: ad32e3faae264ab1eb7cf461e373dcfa
docChecksum: 50c3c5e39eb24b50e53fbe08f8156e76
docVersion: 1.0.48
speakeasyVersion: 1.396.6
generationVersion: 2.415.6
releaseVersion: 0.26.0-beta.1
configChecksum: 1af6154f17e397a8f89b4f6fd727be8d
speakeasyVersion: 1.401.2
generationVersion: 2.421.3
releaseVersion: 0.26.0-beta.2
configChecksum: 1c64b3f4febc852a778315853edd62ff
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
published: true
features:
python:
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.2
core: 5.5.3
constsAndDefaults: 1.0.3
core: 5.5.4
defaultEnabledRetries: 0.2.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.3.1
Expand Down Expand Up @@ -105,6 +105,6 @@ examples:
"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"}
11 changes: 5 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
speakeasyVersion: 1.361.1
speakeasyVersion: 1.401.2
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:403efaa5f402ccbd48b83c579e1d8c14197267223ba67e17ddf9f8b824c78a8e
sourceBlobDigest: sha256:f89c6ba5c02602f9cf8c75d96a69a7fef23f7057cd82e78236557ba51f504e98
sourceRevisionDigest: sha256:8e6306f9d3aef76cdd2d517057e363229b0c83337f56f7ef6ee5e497067ed02e
sourceBlobDigest: sha256:e56a9e82f06b4aecdc8653a8b04256104f5ef4c8000dd8fd30fb2cb66a857567
tags:
- latest
- main
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:403efaa5f402ccbd48b83c579e1d8c14197267223ba67e17ddf9f8b824c78a8e
sourceBlobDigest: sha256:f89c6ba5c02602f9cf8c75d96a69a7fef23f7057cd82e78236557ba51f504e98
outLocation: /github/workspace/repo
sourceRevisionDigest: sha256:8e6306f9d3aef76cdd2d517057e363229b0c83337f56f7ef6ee5e497067ed02e
sourceBlobDigest: sha256:e56a9e82f06b4aecdc8653a8b04256104f5ef4c8000dd8fd30fb2cb66a857567
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -654,4 +654,14 @@ Based on:
### Generated
- [python v0.26.0-beta.1] .
### Releases
- [PyPI v0.26.0-beta.1] https://pypi.org/project/unstructured-client/0.26.0-beta.1 - .
- [PyPI v0.26.0-beta.1] https://pypi.org/project/unstructured-client/0.26.0-beta.1 - .

## 2024-09-21 00:08:49
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.401.2 (2.421.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.26.0-beta.2] .
### Releases
- [PyPI v0.26.0-beta.2] https://pypi.org/project/unstructured-client/0.26.0-beta.2 - .
32 changes: 4 additions & 28 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,7 @@ info:
actions:
- target: $["paths"]["/general/v0/general"]["post"]
update:
x-codeSamples:
- lang: python
label: partition
source: |-
import unstructured_client
from unstructured_client.models import operations, shared
s = unstructured_client.UnstructuredClient()
res = s.general.partition(request=operations.PartitionRequest(
partition_parameters=shared.PartitionParameters(
files=shared.Files(
file_name='your_file_here',
content='0x2cC94b2FEF'.encode(),
),
strategy=shared.Strategy.AUTO,
chunking_strategy=shared.ChunkingStrategy.BASIC,
split_pdf_page_range=[
1,
10,
],
),
))
if res.elements is not None:
# handle response
pass
"x-codeSamples":
- "lang": "python"
"label": "partition"
"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"
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
python:
version: 0.26.0-beta.1
version: 0.26.0-beta.2
additionalDependencies:
dev:
deepdiff: '>=6.0'
Expand Down
Loading

0 comments on commit f345613

Please sign in to comment.