Skip to content

chore: 🐝 Update SDK - Generate 0.42.2 #305

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
Aug 7, 2025
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
12 changes: 6 additions & 6 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: 1e625384a184f21d27f5afa31f705ada
docChecksum: 4b5ce002d18e5f4df26dc25dca205ad2
docVersion: 1.1.45
speakeasyVersion: 1.598.0
generationVersion: 2.674.1
releaseVersion: 0.42.1
configChecksum: 93d86f1b261131a5f65615eab5147b8a
speakeasyVersion: 1.598.3
generationVersion: 2.674.3
releaseVersion: 0.42.2
configChecksum: 3f589c7483451e1a99a5cdaf066e319a
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.19.6
core: 5.19.7
customCodeRegions: 0.1.1
defaultEnabledRetries: 0.2.0
enumUnions: 0.1.0
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.598.0
speakeasyVersion: 1.598.3
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:fbae2a3d20d8dc0210e15a73e96e96325b1f38e080c97a1f893a843cd0a723e8
sourceBlobDigest: sha256:71012d02fdfa3ce10a9dd1b7152af158ad50029dca56ed47c15480e76d977261
sourceRevisionDigest: sha256:8f5b428c1907c847cd490c55161f4d6be0e9803ab6a519e054705afe092ac47b
sourceBlobDigest: sha256:6b5f3e775347a702d48357f9acd968c4ec89d1920dcef0f10e6fd84710aa5c41
tags:
- latest
- speakeasy-sdk-regen-1754439127
- speakeasy-sdk-regen-1754525536
- 1.1.45
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:fbae2a3d20d8dc0210e15a73e96e96325b1f38e080c97a1f893a843cd0a723e8
sourceBlobDigest: sha256:71012d02fdfa3ce10a9dd1b7152af158ad50029dca56ed47c15480e76d977261
sourceRevisionDigest: sha256:8f5b428c1907c847cd490c55161f4d6be0e9803ab6a519e054705afe092ac47b
sourceBlobDigest: sha256:6b5f3e775347a702d48357f9acd968c4ec89d1920dcef0f10e6fd84710aa5c41
codeSamplesNamespace: my-source-code-samples
codeSamplesRevisionDigest: sha256:589a66ad970bec88d190b8fa4af02a27274967553ea68a347b8e50a43422fad5
codeSamplesRevisionDigest: sha256:2519fac5f22f4b3c34fe2cb753bb092bed5cc6d8cfb86f5959370073ced015b1
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 @@ -1099,4 +1099,14 @@ Based on:
### Generated
- [python v0.42.1] .
### Releases
- [PyPI v0.42.1] https://pypi.org/project/unstructured-client/0.42.1 - .
- [PyPI v0.42.1] https://pypi.org/project/unstructured-client/0.42.1 - .

## 2025-08-07 00:11:58
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.598.3 (2.674.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.42.2] .
### Releases
- [PyPI v0.42.2] https://pypi.org/project/unstructured-client/0.42.2 - .
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.42.1"
version = "0.42.2"
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.42.1"
__version__: str = "0.42.2"
__openapi_doc_version__: str = "1.1.45"
__gen_version__: str = "2.674.1"
__user_agent__: str = "speakeasy-sdk/python 0.42.1 2.674.1 1.1.45 unstructured-client"
__gen_version__: str = "2.674.3"
__user_agent__: str = "speakeasy-sdk/python 0.42.2 2.674.3 1.1.45 unstructured-client"

try:
if __package__ is not None:
Expand Down
13 changes: 11 additions & 2 deletions src/unstructured_client/models/operations/list_destinations.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import httpx
import pydantic
from pydantic import model_serializer
from pydantic.functional_validators import PlainValidator
from typing import List, Optional
from typing_extensions import Annotated, NotRequired, TypedDict
from unstructured_client.models.shared import (
Expand All @@ -17,7 +18,12 @@
UNSET,
UNSET_SENTINEL,
)
from unstructured_client.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata
from unstructured_client.utils import (
FieldMetadata,
HeaderMetadata,
QueryParamMetadata,
validate_open_enum,
)


class ListDestinationsRequestTypedDict(TypedDict):
Expand All @@ -29,7 +35,10 @@ class ListDestinationsRequestTypedDict(TypedDict):

class ListDestinationsRequest(BaseModel):
destination_type: Annotated[
OptionalNullable[shared_destinationconnectortype.DestinationConnectorType],
Annotated[
OptionalNullable[shared_destinationconnectortype.DestinationConnectorType],
PlainValidator(validate_open_enum(False)),
],
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
] = UNSET

Expand Down
13 changes: 11 additions & 2 deletions src/unstructured_client/models/operations/list_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import httpx
import pydantic
from pydantic import model_serializer
from pydantic.functional_validators import PlainValidator
from typing import List, Optional
from typing_extensions import Annotated, NotRequired, TypedDict
from unstructured_client.models.shared import (
Expand All @@ -17,7 +18,12 @@
UNSET,
UNSET_SENTINEL,
)
from unstructured_client.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata
from unstructured_client.utils import (
FieldMetadata,
HeaderMetadata,
QueryParamMetadata,
validate_open_enum,
)


class ListSourcesRequestTypedDict(TypedDict):
Expand All @@ -27,7 +33,10 @@ class ListSourcesRequestTypedDict(TypedDict):

class ListSourcesRequest(BaseModel):
source_type: Annotated[
OptionalNullable[shared_sourceconnectortype.SourceConnectorType],
Annotated[
OptionalNullable[shared_sourceconnectortype.SourceConnectorType],
PlainValidator(validate_open_enum(False)),
],
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
] = UNSET

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@
WeaviateDestinationConnectorConfigInput,
WeaviateDestinationConnectorConfigInputTypedDict,
)
from pydantic.functional_validators import PlainValidator
from typing import Union
from typing_extensions import TypeAliasType, TypedDict
from typing_extensions import Annotated, TypeAliasType, TypedDict
from unstructured_client.types import BaseModel
from unstructured_client.utils import validate_open_enum


ConfigTypedDict = TypeAliasType(
Expand Down Expand Up @@ -158,4 +160,4 @@ class CreateDestinationConnector(BaseModel):

name: str

type: DestinationConnectorType
type: Annotated[DestinationConnectorType, PlainValidator(validate_open_enum(False))]
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@
ZendeskSourceConnectorConfigInput,
ZendeskSourceConnectorConfigInputTypedDict,
)
from pydantic.functional_validators import PlainValidator
from typing import Union
from typing_extensions import TypeAliasType, TypedDict
from typing_extensions import Annotated, TypeAliasType, TypedDict
from unstructured_client.types import BaseModel
from unstructured_client.utils import validate_open_enum


CreateSourceConnectorConfigTypedDict = TypeAliasType(
Expand Down Expand Up @@ -152,4 +154,4 @@ class CreateSourceConnector(BaseModel):

name: str

type: SourceConnectorType
type: Annotated[SourceConnectorType, PlainValidator(validate_open_enum(False))]
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,17 @@
)
from datetime import datetime
from pydantic import model_serializer
from pydantic.functional_validators import PlainValidator
from typing import Union
from typing_extensions import NotRequired, TypeAliasType, TypedDict
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
from unstructured_client.types import (
BaseModel,
Nullable,
OptionalNullable,
UNSET,
UNSET_SENTINEL,
)
from unstructured_client.utils import validate_open_enum


DestinationConnectorInformationConfigTypedDict = TypeAliasType(
Expand Down Expand Up @@ -173,7 +175,7 @@ class DestinationConnectorInformation(BaseModel):

name: str

type: DestinationConnectorType
type: Annotated[DestinationConnectorType, PlainValidator(validate_open_enum(False))]

updated_at: OptionalNullable[datetime] = UNSET

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

from __future__ import annotations
from enum import Enum
from unstructured_client import utils


class DestinationConnectorType(str, Enum):
class DestinationConnectorType(str, Enum, metaclass=utils.OpenEnumMeta):
ASTRADB = "astradb"
AZURE_AI_SEARCH = "azure_ai_search"
COUCHBASE = "couchbase"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,17 @@
)
from datetime import datetime
from pydantic import model_serializer
from pydantic.functional_validators import PlainValidator
from typing import Union
from typing_extensions import NotRequired, TypeAliasType, TypedDict
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
from unstructured_client.types import (
BaseModel,
Nullable,
OptionalNullable,
UNSET,
UNSET_SENTINEL,
)
from unstructured_client.utils import validate_open_enum


SourceConnectorInformationConfigTypedDict = TypeAliasType(
Expand Down Expand Up @@ -167,7 +169,7 @@ class SourceConnectorInformation(BaseModel):

name: str

type: SourceConnectorType
type: Annotated[SourceConnectorType, PlainValidator(validate_open_enum(False))]

updated_at: OptionalNullable[datetime] = UNSET

Expand Down
3 changes: 2 additions & 1 deletion src/unstructured_client/models/shared/sourceconnectortype.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

from __future__ import annotations
from enum import Enum
from unstructured_client import utils


class SourceConnectorType(str, Enum):
class SourceConnectorType(str, Enum, metaclass=utils.OpenEnumMeta):
AZURE = "azure"
BOX = "box"
CONFLUENCE = "confluence"
Expand Down