Skip to content

chore: 🐝 Update SDK - Generate 0.37.1 #275

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

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
22 changes: 18 additions & 4 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: 1305a6771cbde39530fd78e1b8acb938
docVersion: 1.1.17
docChecksum: 9f5b0f5a65058a58d5eb82235ccf0616
docVersion: 1.1.23
speakeasyVersion: 1.552.0
generationVersion: 2.610.0
releaseVersion: 0.36.0
configChecksum: e1d52979607afacfb892d70fedc250fb
releaseVersion: 0.37.1
configChecksum: 995e2ded80d15617a1661ac4be288219
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
Expand Down Expand Up @@ -86,6 +86,8 @@ generatedFiles:
- docs/models/operations/listworkflowsresponse.md
- docs/models/operations/partitionrequest.md
- docs/models/operations/partitionresponse.md
- docs/models/operations/retrieverequest.md
- docs/models/operations/retrieveresponse.md
- docs/models/operations/runworkflowrequest.md
- docs/models/operations/runworkflowresponse.md
- docs/models/operations/updatedestinationrequest.md
Expand Down Expand Up @@ -164,6 +166,7 @@ generatedFiles:
- docs/models/shared/outlooksourceconnectorconfiginput.md
- docs/models/shared/outputformat.md
- docs/models/shared/partitionparameters.md
- docs/models/shared/pemauthresponse.md
- docs/models/shared/pineconedestinationconnectorconfig.md
- docs/models/shared/pineconedestinationconnectorconfiginput.md
- docs/models/shared/postgresdestinationconnectorconfig.md
Expand Down Expand Up @@ -215,6 +218,7 @@ generatedFiles:
- docs/sdks/destinations/README.md
- docs/sdks/general/README.md
- docs/sdks/jobs/README.md
- docs/sdks/pemkeyauth/README.md
- docs/sdks/sources/README.md
- docs/sdks/unstructuredclient/README.md
- docs/sdks/workflows/README.md
Expand Down Expand Up @@ -258,6 +262,7 @@ generatedFiles:
- src/unstructured_client/models/operations/list_sources.py
- src/unstructured_client/models/operations/list_workflows.py
- src/unstructured_client/models/operations/partition.py
- src/unstructured_client/models/operations/retrieve.py
- src/unstructured_client/models/operations/run_workflow.py
- src/unstructured_client/models/operations/update_destination.py
- src/unstructured_client/models/operations/update_source.py
Expand Down Expand Up @@ -326,6 +331,7 @@ generatedFiles:
- src/unstructured_client/models/shared/outlooksourceconnectorconfig.py
- src/unstructured_client/models/shared/outlooksourceconnectorconfiginput.py
- src/unstructured_client/models/shared/partition_parameters.py
- src/unstructured_client/models/shared/pemauthresponse.py
- src/unstructured_client/models/shared/pineconedestinationconnectorconfig.py
- src/unstructured_client/models/shared/pineconedestinationconnectorconfiginput.py
- src/unstructured_client/models/shared/postgresdestinationconnectorconfig.py
Expand Down Expand Up @@ -365,6 +371,7 @@ generatedFiles:
- src/unstructured_client/models/shared/workflowtype.py
- src/unstructured_client/models/shared/zendesksourceconnectorconfig.py
- src/unstructured_client/models/shared/zendesksourceconnectorconfiginput.py
- src/unstructured_client/pemkeyauth.py
- src/unstructured_client/py.typed
- src/unstructured_client/sdk.py
- src/unstructured_client/sdkconfiguration.py
Expand Down Expand Up @@ -633,5 +640,12 @@ examples:
application/json: {"detail": "<value>"}
5XX:
application/json: {"detail": "An error occurred"}
retrieve:
speakeasy-default-retrieve:
responses:
"200":
application/json: {"pem_key": "<value>", "tenant_id": "<id>"}
"422":
application/json: {"detail": "<value>"}
examplesVersion: 1.0.2
generatedTests: {}
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ speakeasyVersion: 1.552.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:7ceb514059ca48d6851ea7eacc84aa4177b0299d9fc01e71a891f6bc6244b089
sourceBlobDigest: sha256:20af3cb02fd412795707dc692fcfdb11f412c27d8095ee4197ea318ea31c7bfe
sourceRevisionDigest: sha256:e3bb8b85cdb5e7cf4f9ac2fc93398696108bd299e379c14c338f73ad4ea5a9c7
sourceBlobDigest: sha256:45fccbe81de2d78b0e015ea92ed40440c6e2b56525706293cc7489f533181254
tags:
- latest
- speakeasy-sdk-regen-1748459387
- 1.1.17
- speakeasy-sdk-regen-1749082267
- 1.1.23
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:7ceb514059ca48d6851ea7eacc84aa4177b0299d9fc01e71a891f6bc6244b089
sourceBlobDigest: sha256:20af3cb02fd412795707dc692fcfdb11f412c27d8095ee4197ea318ea31c7bfe
sourceRevisionDigest: sha256:e3bb8b85cdb5e7cf4f9ac2fc93398696108bd299e379c14c338f73ad4ea5a9c7
sourceBlobDigest: sha256:45fccbe81de2d78b0e015ea92ed40440c6e2b56525706293cc7489f533181254
codeSamplesNamespace: my-source-code-samples
codeSamplesRevisionDigest: sha256:8dd8b645e1112de59bfed16856623f891e44b10d8af11e4f48877b08541e246f
codeSamplesRevisionDigest: sha256:e21609fe9dcd7aa32fef1f3ca6fa653f8eb06210eadca7169d0ea8f45eb837b6
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 @@ -1007,4 +1007,14 @@ Based on:
### Generated
- [python v0.36.0] .
### Releases
- [PyPI v0.36.0] https://pypi.org/project/unstructured-client/0.36.0 - .
- [PyPI v0.36.0] https://pypi.org/project/unstructured-client/0.36.0 - .

## 2025-06-08 00:11:56
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.552.0 (2.610.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.37.1] .
### Releases
- [PyPI v0.37.1] https://pypi.org/project/unstructured-client/0.37.1 - .
6 changes: 6 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ actions:
- "lang": "python"
"label": "download_job_output"
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.download_job_output(request={\n \"job_id\": \"06d1b7b8-8642-4793-b37e-e45d97d53bc3\",\n \"file_id\": \"<id>\",\n \"node_id\": \"7c8f2aa4-da13-4a04-a98d-0204ea55681e\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)"
- target: $["paths"]["/api/v1/pemkeyauth/retrieve"]["post"]
update:
"x-codeSamples":
- "lang": "python"
"label": "retrieve"
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.pemkeyauth.retrieve(request={})\n\n assert res.pem_auth_response is not None\n\n # Handle response\n print(res.pem_auth_response)"
- target: $["paths"]["/api/v1/sources/"]["get"]
update:
"x-codeSamples":
Expand Down
8 changes: 8 additions & 0 deletions docs/models/operations/retrieverequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# RetrieveRequest


## Fields

| Field | Type | Required | Description |
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
11 changes: 11 additions & 0 deletions docs/models/operations/retrieveresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# RetrieveResponse


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `pem_auth_response` | [Optional[shared.PemAuthResponse]](../../models/shared/pemauthresponse.md) | :heavy_minus_sign: | Successful Response |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
12 changes: 12 additions & 0 deletions docs/models/shared/pemauthresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# PemAuthResponse

Response model for PEM key retrieval.


## Fields

| Field | Type | Required | Description |
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
| `pem_key` | *str* | :heavy_check_mark: | N/A |
| `tenant_id` | *str* | :heavy_check_mark: | N/A |
| `user_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
48 changes: 48 additions & 0 deletions docs/sdks/pemkeyauth/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Pemkeyauth
(*pemkeyauth*)

## Overview

### Available Operations

* [retrieve](#retrieve) - Retrieve PEM Key

## retrieve

Given a UNSTRUCTURED_API_KEY in the post-payload, retrieve the associated PEM key

### Example Usage

```python
from unstructured_client import UnstructuredClient


with UnstructuredClient() as uc_client:

res = uc_client.pemkeyauth.retrieve(request={})

assert res.pem_auth_response is not None

# Handle response
print(res.pem_auth_response)

```

### Parameters

| Parameter | Type | Required | Description |
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
| `request` | [operations.RetrieveRequest](../../models/operations/retrieverequest.md) | :heavy_check_mark: | The request object to use for the request. |
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. |

### Response

**[operations.RetrieveResponse](../../models/operations/retrieveresponse.md)**

### Errors

| Error Type | Status Code | Content Type |
| -------------------------- | -------------------------- | -------------------------- |
| errors.HTTPValidationError | 422 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |
4 changes: 3 additions & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ generation:
sdkClassName: unstructured_client
usageSnippets:
optionalPropertyRendering: withExample
sdkInitStyle: constructor
fixes:
nameResolutionFeb2025: false
parameterOrderingFeb2024: false
Expand All @@ -13,7 +14,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
python:
version: 0.36.0
version: 0.37.1
additionalDependencies:
dev:
deepdiff: '>=6.0'
Expand All @@ -34,6 +35,7 @@ python:
requests-toolbelt: '>=1.0.0'
authors:
- Unstructured
baseErrorName: UnstructuredClientError
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
description: Python Client SDK for Unstructured API
Expand Down
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "unstructured-client"
version = "0.36.0"
version = "0.37.1"
description = "Python Client SDK for Unstructured API"
authors = [{ name = "Unstructured" },]
readme = "README-PYPI.md"
Expand Down
6 changes: 3 additions & 3 deletions src/unstructured_client/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import importlib.metadata

__title__: str = "unstructured-client"
__version__: str = "0.36.0"
__openapi_doc_version__: str = "1.1.17"
__version__: str = "0.37.1"
__openapi_doc_version__: str = "1.1.23"
__gen_version__: str = "2.610.0"
__user_agent__: str = "speakeasy-sdk/python 0.36.0 2.610.0 1.1.17 unstructured-client"
__user_agent__: str = "speakeasy-sdk/python 0.37.1 2.610.0 1.1.23 unstructured-client"

try:
if __package__ is not None:
Expand Down
20 changes: 20 additions & 0 deletions src/unstructured_client/models/operations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@
PartitionResponse,
PartitionResponseTypedDict,
)
from .retrieve import (
RETRIEVE_SERVERS,
RETRIEVE_SERVER_PLATFORM_API,
RetrieveRequest,
RetrieveRequestTypedDict,
RetrieveResponse,
RetrieveResponseTypedDict,
)
from .run_workflow import (
RUN_WORKFLOW_SERVERS,
RUN_WORKFLOW_SERVER_PLATFORM_API,
Expand Down Expand Up @@ -334,8 +342,14 @@
"PartitionRequestTypedDict",
"PartitionResponse",
"PartitionResponseTypedDict",
"RETRIEVE_SERVERS",
"RETRIEVE_SERVER_PLATFORM_API",
"RUN_WORKFLOW_SERVERS",
"RUN_WORKFLOW_SERVER_PLATFORM_API",
"RetrieveRequest",
"RetrieveRequestTypedDict",
"RetrieveResponse",
"RetrieveResponseTypedDict",
"RunWorkflowRequest",
"RunWorkflowRequestTypedDict",
"RunWorkflowResponse",
Expand Down Expand Up @@ -488,6 +502,12 @@
"PartitionRequestTypedDict": ".partition",
"PartitionResponse": ".partition",
"PartitionResponseTypedDict": ".partition",
"RETRIEVE_SERVERS": ".retrieve",
"RETRIEVE_SERVER_PLATFORM_API": ".retrieve",
"RetrieveRequest": ".retrieve",
"RetrieveRequestTypedDict": ".retrieve",
"RetrieveResponse": ".retrieve",
"RetrieveResponseTypedDict": ".retrieve",
"RUN_WORKFLOW_SERVERS": ".run_workflow",
"RUN_WORKFLOW_SERVER_PLATFORM_API": ".run_workflow",
"RunWorkflowRequest": ".run_workflow",
Expand Down
Loading