Skip to content

chore: 🐝 Update SDK - Generate #103

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

Merged
merged 1 commit into from
Jun 4, 2024
Merged
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
21 changes: 9 additions & 12 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: 95cf473b65c812e2a731bc586e691f89
docVersion: 1.0.32
speakeasyVersion: 1.299.4
generationVersion: 2.338.7
releaseVersion: 0.27.0
configChecksum: f30a94fe7726e498bf687d6aefa48ec4
docChecksum: 2cabb51a37782b691a9f16fbbf8df52b
docVersion: 1.0.33
speakeasyVersion: 1.299.6
generationVersion: 2.338.12
releaseVersion: 0.27.1
configChecksum: be7515df9b3a3a127ec54c60f405dc64
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.3
core: 4.6.8
core: 4.6.9
examples: 2.81.3
globalSecurity: 2.83.5
globalSecurityCallbacks: 0.1.0
Expand Down Expand Up @@ -43,19 +43,17 @@ generatedFiles:
- src/unstructured_client/utils/utils.py
- src/unstructured_client/models/errors/sdkerror.py
- src/unstructured_client/models/operations/partition.py
- src/unstructured_client/models/shared/element.py
- src/unstructured_client/models/errors/httpvalidationerror.py
- src/unstructured_client/models/shared/validationerror.py
- src/unstructured_client/models/shared/partition_parameters.py
- src/unstructured_client/models/shared/security.py
- src/unstructured_client/models/errors/httpvalidationerror.py
- src/unstructured_client/models/__init__.py
- src/unstructured_client/models/errors/__init__.py
- src/unstructured_client/models/operations/__init__.py
- src/unstructured_client/models/shared/__init__.py
- docs/models/operations/partitionrequest.md
- docs/models/operations/partitionresponse.md
- docs/models/shared/metadata.md
- docs/models/shared/element.md
- docs/models/errors/httpvalidationerror.md
- docs/models/shared/loc.md
- docs/models/shared/validationerror.md
- docs/models/shared/chunkingstrategy.md
Expand All @@ -64,7 +62,6 @@ generatedFiles:
- docs/models/shared/strategy.md
- docs/models/shared/partitionparameters.md
- docs/models/shared/security.md
- docs/models/errors/httpvalidationerror.md
- USAGE.md
- .gitattributes
- src/unstructured_client/_hooks/sdkhooks.py
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.299.4
speakeasyVersion: 1.299.6
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:1f77ecb5a93c98a2666959cc431213df275eb3daf04c08c78f76b4d28579d765
sourceBlobDigest: sha256:823dd5db79564693f9fe02a562840c3fe02a6cd546917e9bac7aecd60dd8c260
sourceRevisionDigest: sha256:90bd16aaed9a9bfefbf815e309c927f19491bd472b7c1f7f56dab7bf4a4c2dc7
sourceBlobDigest: sha256:6d2271499f0b5dd811144b3e1857443c6401e45229627f3078f88672f655334c
tags:
- latest
- main
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:1f77ecb5a93c98a2666959cc431213df275eb3daf04c08c78f76b4d28579d765
sourceBlobDigest: sha256:823dd5db79564693f9fe02a562840c3fe02a6cd546917e9bac7aecd60dd8c260
sourceRevisionDigest: sha256:90bd16aaed9a9bfefbf815e309c927f19491bd472b7c1f7f56dab7bf4a4c2dc7
sourceBlobDigest: sha256:6d2271499f0b5dd811144b3e1857443c6401e45229627f3078f88672f655334c
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -562,4 +562,12 @@ Based on:
- OpenAPI Doc
- Speakeasy CLI 1.299.4 (2.338.7) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.27.0] .
- [python v0.27.0] .

## 2024-06-04 02:44:17
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.299.6 (2.338.12) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.27.1] .
2 changes: 1 addition & 1 deletion docs/models/operations/partitionresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `elements` | List[[shared.Element](../../models/shared/element.md)] | :heavy_minus_sign: | Successful Response |
| `elements` | List[Dict[str, *Any*]] | :heavy_minus_sign: | Successful Response |
11 changes: 0 additions & 11 deletions docs/models/shared/element.md

This file was deleted.

7 changes: 0 additions & 7 deletions docs/models/shared/metadata.md

This file was deleted.

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.27.0
version: 0.27.1
additionalDependencies:
dependencies:
deepdiff: '>=6.0'
Expand Down
2 changes: 1 addition & 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.27.0',
version='0.27.1',
author='Unstructured',
description='Python Client SDK for Unstructured API',
license = 'MIT',
Expand Down
6 changes: 3 additions & 3 deletions src/unstructured_client/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import requests as requests_http
from .sdkconfiguration import SDKConfiguration
from typing import List, Optional
from typing import Any, Dict, List, Optional
from unstructured_client import utils
from unstructured_client._hooks import AfterErrorContext, AfterSuccessContext, BeforeRequestContext, HookContext
from unstructured_client.models import errors, operations, shared
from unstructured_client.models import errors, operations

class General:
sdk_configuration: SDKConfiguration
Expand Down Expand Up @@ -83,7 +83,7 @@ def do_request():
if http_res.status_code == 200:
# pylint: disable=no-else-return
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
out = utils.unmarshal_json(http_res.text, Optional[List[shared.Element]])
out = utils.unmarshal_json(http_res.text, Optional[List[Dict[str, Any]]])
res.elements = out
else:
content_type = http_res.headers.get('Content-Type')
Expand Down
5 changes: 2 additions & 3 deletions src/unstructured_client/models/operations/partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
from __future__ import annotations
import dataclasses
import requests as requests_http
from ...models.shared import element as shared_element
from ...models.shared import partition_parameters as shared_partition_parameters
from typing import List, Optional
from typing import Any, Dict, List, Optional


@dataclasses.dataclass
Expand All @@ -25,7 +24,7 @@ class PartitionResponse:
r"""HTTP response status code for this operation"""
raw_response: requests_http.Response = dataclasses.field()
r"""Raw HTTP response; suitable for custom response parsing"""
elements: Optional[List[shared_element.Element]] = dataclasses.field(default=None)
elements: Optional[List[Dict[str, Any]]] = dataclasses.field(default=None)
r"""Successful Response"""


3 changes: 1 addition & 2 deletions src/unstructured_client/models/shared/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""

from .element import *
from .partition_parameters import *
from .security import *
from .validationerror import *

__all__ = ["ChunkingStrategy","Element","Files","Loc","Metadata","OutputFormat","PartitionParameters","Security","Strategy","ValidationError"]
__all__ = ["ChunkingStrategy","Files","Loc","OutputFormat","PartitionParameters","Security","Strategy","ValidationError"]
22 changes: 0 additions & 22 deletions src/unstructured_client/models/shared/element.py

This file was deleted.

8 changes: 4 additions & 4 deletions src/unstructured_client/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class SDKConfiguration:
server_url: Optional[str] = ''
server: Optional[str] = ''
language: str = 'python'
openapi_doc_version: str = '1.0.32'
sdk_version: str = '0.27.0'
gen_version: str = '2.338.7'
user_agent: str = 'speakeasy-sdk/python 0.27.0 2.338.7 1.0.32 unstructured-client'
openapi_doc_version: str = '1.0.33'
sdk_version: str = '0.27.1'
gen_version: str = '2.338.12'
user_agent: str = 'speakeasy-sdk/python 0.27.1 2.338.12 1.0.33 unstructured-client'
retry_config: Optional[RetryConfig] = None

def __post_init__(self):
Expand Down