Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 🐝 Update SDK - Generate 0.31.0 #231

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 8b5fa338-9106-4734-abf0-e30d67044a90
management:
docChecksum: 622461ba121cc2a105e29eab97b6bee3
docChecksum: eb050201e8bfff645042e3b2847104cc
docVersion: 1.0.68
speakeasyVersion: 1.490.0
generationVersion: 2.512.0
releaseVersion: 0.30.4
configChecksum: 87e53f0ca57296c4cae62d4792edc2cf
speakeasyVersion: 1.504.1
generationVersion: 2.529.2
releaseVersion: 0.31.0
configChecksum: faf5191e78f1597b78cd7600af4f1d96
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
Expand All @@ -16,7 +16,7 @@ features:
acceptHeaders: 3.0.0
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.5
core: 5.11.0
core: 5.12.1
defaultEnabledRetries: 0.2.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.3.2
Expand All @@ -27,11 +27,11 @@ features:
methodServerURLs: 3.1.1
multipartFileContentType: 1.0.0
nameOverrides: 3.0.1
nullables: 1.0.0
nullables: 1.0.1
openEnums: 1.0.0
responseFormat: 1.0.1
retries: 3.0.2
sdkHooks: 1.0.0
sdkHooks: 1.0.1
serverIDs: 3.0.0
unions: 3.0.4
uploadStreams: 1.0.0
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.501.0
speakeasyVersion: 1.504.1
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:aafca097133621c9d805647795672de6a443518d28ccff1ba4ad207084ada140
sourceRevisionDigest: sha256:4f63229dca06781c54905bcb9c2769ef714dccbd7b347d72ed6b9c0a57f768f9
sourceBlobDigest: sha256:24d7c75ebda9119f02eec391b4ac5697e7f909341f1694177d9d164ff90e39be
tags:
- latest
- speakeasy-sdk-regen-1740182957
- speakeasy-sdk-regen-1740499439
- 1.0.68
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:aafca097133621c9d805647795672de6a443518d28ccff1ba4ad207084ada140
sourceRevisionDigest: sha256:4f63229dca06781c54905bcb9c2769ef714dccbd7b347d72ed6b9c0a57f768f9
sourceBlobDigest: sha256:24d7c75ebda9119f02eec391b4ac5697e7f909341f1694177d9d164ff90e39be
codeSamplesNamespace: my-source-code-samples
codeSamplesRevisionDigest: sha256:45129928113c916a9525093bb2e25021b8e62477fa2b86de2af2dc369294a555
codeSamplesRevisionDigest: sha256:c7f49ae4ef636cb4f1f872f62dbec7312d7cff92d59e1de774428843f0474b91
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
31 changes: 23 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ from unstructured_client import UnstructuredClient
from unstructured_client.models import shared
from unstructured_client.utils import BackoffStrategy, RetryConfig

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.destinations.create_destination(request={
"create_destination_connector": {
Expand Down Expand Up @@ -142,6 +144,7 @@ from unstructured_client.models import shared
from unstructured_client.utils import BackoffStrategy, RetryConfig

with UnstructuredClient(
server_url="https://api.example.com",
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
) as uc_client:

Expand Down Expand Up @@ -193,7 +196,9 @@ When custom error responses are specified for an operation, the SDK may also rai
from unstructured_client import UnstructuredClient
from unstructured_client.models import errors, shared

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:
res = None
try:

Expand Down Expand Up @@ -325,7 +330,9 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
from unstructured_client import UnstructuredClient
from unstructured_client.models import shared

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.destinations.create_destination(request={
"create_destination_connector": {
Expand Down Expand Up @@ -355,7 +362,9 @@ from unstructured_client import UnstructuredClient
from unstructured_client.models import shared

async def main():
async with UnstructuredClient() as uc_client:
async with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = await uc_client.destinations.create_destination_async(request={
"create_destination_connector": {
Expand Down Expand Up @@ -450,7 +459,9 @@ Certain SDK methods accept file objects as part of a request body or multi-part
```python
from unstructured_client import UnstructuredClient

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.general.partition(request={
"partition_parameters": {
Expand Down Expand Up @@ -483,13 +494,17 @@ The `UnstructuredClient` class implements the context manager protocol and regis
```python
from unstructured_client import UnstructuredClient
def main():
with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:
# Rest of application here...


# Or when using async:
async def amain():
async with UnstructuredClient() as uc_client:
async with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:
# Rest of application here...
```
<!-- End Resource Management [resource-management] -->
Expand All @@ -505,7 +520,7 @@ from unstructured_client import UnstructuredClient
import logging

logging.basicConfig(level=logging.DEBUG)
s = UnstructuredClient(debug_logger=logging.getLogger("unstructured_client"))
s = UnstructuredClient(server_url="https://example.com", debug_logger=logging.getLogger("unstructured_client"))
```
<!-- End Debugging [debug] -->

Expand Down
10 changes: 10 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -814,4 +814,14 @@ Based on:
### Generated
- [python v0.31.0] .
### Releases
- [PyPI v0.31.0] https://pypi.org/project/unstructured-client/0.31.0 - .

## 2025-02-26 00:09:36
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.504.1 (2.529.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.31.0] .
### Releases
- [PyPI v0.31.0] https://pypi.org/project/unstructured-client/0.31.0 - .
8 changes: 6 additions & 2 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
from unstructured_client import UnstructuredClient
from unstructured_client.models import shared

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.destinations.create_destination(request={
"create_destination_connector": {
Expand Down Expand Up @@ -34,7 +36,9 @@ from unstructured_client import UnstructuredClient
from unstructured_client.models import shared

async def main():
async with UnstructuredClient() as uc_client:
async with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = await uc_client.destinations.create_destination_async(request={
"create_destination_connector": {
Expand Down
20 changes: 15 additions & 5 deletions docs/sdks/destinations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ Create a new destination connector using the provided configuration and name.
from unstructured_client import UnstructuredClient
from unstructured_client.models import shared

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.destinations.create_destination(request={
"create_destination_connector": {
Expand Down Expand Up @@ -70,7 +72,9 @@ Delete a specific destination connector by its ID.
```python
from unstructured_client import UnstructuredClient

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.destinations.delete_destination(request={
"destination_id": "10a88d76-65fb-4c88-8488-9e7d272c6373",
Expand Down Expand Up @@ -111,7 +115,9 @@ Retrieve detailed information for a specific destination connector by its ID.
```python
from unstructured_client import UnstructuredClient

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.destinations.get_destination(request={
"destination_id": "41ba03fb-faa3-4e9e-8cfb-27f133c4198a",
Expand Down Expand Up @@ -152,7 +158,9 @@ Retrieve a list of available destination connectors.
```python
from unstructured_client import UnstructuredClient

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.destinations.list_destinations(request={})

Expand Down Expand Up @@ -191,7 +199,9 @@ Update the configuration of an existing destination connector.
```python
from unstructured_client import UnstructuredClient

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.destinations.update_destination(request={
"update_destination_connector": {
Expand Down
4 changes: 3 additions & 1 deletion docs/sdks/general/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ Description
```python
from unstructured_client import UnstructuredClient

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.general.partition(request={
"partition_parameters": {
Expand Down
12 changes: 9 additions & 3 deletions docs/sdks/jobs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Cancel the specified job.
```python
from unstructured_client import UnstructuredClient

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.jobs.cancel_job(request={
"job_id": "ec29bf67-0f30-4793-b5ee-8fc0da196032",
Expand Down Expand Up @@ -59,7 +61,9 @@ Retrieve detailed information for a specific job by its ID.
```python
from unstructured_client import UnstructuredClient

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.jobs.get_job(request={
"job_id": "6bb4cb72-a072-4398-9de3-194e59352a3c",
Expand Down Expand Up @@ -100,7 +104,9 @@ Retrieve a list of jobs with optional filtering by workflow ID or job status.
```python
from unstructured_client import UnstructuredClient

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.jobs.list_jobs(request={})

Expand Down
20 changes: 15 additions & 5 deletions docs/sdks/sources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ Create a new source connector using the provided configuration and name.
from unstructured_client import UnstructuredClient
from unstructured_client.models import shared

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.sources.create_source(request={
"create_source_connector": {
Expand Down Expand Up @@ -75,7 +77,9 @@ Delete a specific source connector identified by its ID.
```python
from unstructured_client import UnstructuredClient

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.sources.delete_source(request={
"source_id": "8a24d7ae-5524-45e9-83f9-b0adba5303d4",
Expand Down Expand Up @@ -116,7 +120,9 @@ Retrieve detailed information for a specific source connector by its ID.
```python
from unstructured_client import UnstructuredClient

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.sources.get_source(request={
"source_id": "e02d8147-b614-4e4c-9c6d-0cd9c4492ea0",
Expand Down Expand Up @@ -157,7 +163,9 @@ Retrieve a list of available source connectors.
```python
from unstructured_client import UnstructuredClient

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.sources.list_sources(request={})

Expand Down Expand Up @@ -196,7 +204,9 @@ Update the configuration of an existing source connector.
```python
from unstructured_client import UnstructuredClient

with UnstructuredClient() as uc_client:
with UnstructuredClient(
server_url="https://api.example.com",
) as uc_client:

res = uc_client.sources.update_source(request={
"update_source_connector": {
Expand Down
Loading