修改为东南天坐标系
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
# package
|
||||
Binary file not shown.
@@ -0,0 +1,67 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
from importlib import import_module
|
||||
import builtins
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .httpvalidationerror import (
|
||||
Detail,
|
||||
HTTPValidationError,
|
||||
HTTPValidationErrorData,
|
||||
)
|
||||
from .no_response_error import NoResponseError
|
||||
from .responsevalidationerror import ResponseValidationError
|
||||
from .sdkerror import SDKError
|
||||
from .servererror import ServerError, ServerErrorData
|
||||
from .unstructuredclienterror import UnstructuredClientError
|
||||
|
||||
__all__ = [
|
||||
"Detail",
|
||||
"HTTPValidationError",
|
||||
"HTTPValidationErrorData",
|
||||
"NoResponseError",
|
||||
"ResponseValidationError",
|
||||
"SDKError",
|
||||
"ServerError",
|
||||
"ServerErrorData",
|
||||
"UnstructuredClientError",
|
||||
]
|
||||
|
||||
_dynamic_imports: dict[str, str] = {
|
||||
"Detail": ".httpvalidationerror",
|
||||
"HTTPValidationError": ".httpvalidationerror",
|
||||
"HTTPValidationErrorData": ".httpvalidationerror",
|
||||
"NoResponseError": ".no_response_error",
|
||||
"ResponseValidationError": ".responsevalidationerror",
|
||||
"SDKError": ".sdkerror",
|
||||
"ServerError": ".servererror",
|
||||
"ServerErrorData": ".servererror",
|
||||
"UnstructuredClientError": ".unstructuredclienterror",
|
||||
}
|
||||
|
||||
|
||||
def __getattr__(attr_name: str) -> object:
|
||||
module_name = _dynamic_imports.get(attr_name)
|
||||
if module_name is None:
|
||||
raise AttributeError(
|
||||
f"No {attr_name} found in _dynamic_imports for module name -> {__name__} "
|
||||
)
|
||||
|
||||
try:
|
||||
module = import_module(module_name, __package__)
|
||||
result = getattr(module, attr_name)
|
||||
return result
|
||||
except ImportError as e:
|
||||
raise ImportError(
|
||||
f"Failed to import {attr_name} from {module_name}: {e}"
|
||||
) from e
|
||||
except AttributeError as e:
|
||||
raise AttributeError(
|
||||
f"Failed to get {attr_name} from {module_name}: {e}"
|
||||
) from e
|
||||
|
||||
|
||||
def __dir__():
|
||||
lazy_attrs = builtins.list(_dynamic_imports.keys())
|
||||
return builtins.sorted(lazy_attrs)
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,37 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
from typing import List, Optional, Union
|
||||
from typing_extensions import TypeAliasType
|
||||
from unstructured_client.models.errors import UnstructuredClientError
|
||||
from unstructured_client.models.shared import validationerror as shared_validationerror
|
||||
from unstructured_client.types import BaseModel
|
||||
|
||||
|
||||
DetailTypedDict = TypeAliasType(
|
||||
"DetailTypedDict", Union[List[shared_validationerror.ValidationErrorTypedDict], str]
|
||||
)
|
||||
|
||||
|
||||
Detail = TypeAliasType(
|
||||
"Detail", Union[List[shared_validationerror.ValidationError], str]
|
||||
)
|
||||
|
||||
|
||||
class HTTPValidationErrorData(BaseModel):
|
||||
detail: Optional[Detail] = None
|
||||
|
||||
|
||||
class HTTPValidationError(UnstructuredClientError):
|
||||
data: HTTPValidationErrorData
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
data: HTTPValidationErrorData,
|
||||
raw_response: httpx.Response,
|
||||
body: Optional[str] = None,
|
||||
):
|
||||
message = body or raw_response.text
|
||||
super().__init__(message, raw_response, body)
|
||||
self.data = data
|
||||
@@ -0,0 +1,13 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
class NoResponseError(Exception):
|
||||
"""Error raised when no HTTP response is received from the server."""
|
||||
|
||||
message: str
|
||||
|
||||
def __init__(self, message: str = "No response received"):
|
||||
self.message = message
|
||||
super().__init__(message)
|
||||
|
||||
def __str__(self):
|
||||
return self.message
|
||||
@@ -0,0 +1,25 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
import httpx
|
||||
from typing import Optional
|
||||
|
||||
from unstructured_client.models.errors import UnstructuredClientError
|
||||
|
||||
|
||||
class ResponseValidationError(UnstructuredClientError):
|
||||
"""Error raised when there is a type mismatch between the response data and the expected Pydantic model."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
message: str,
|
||||
raw_response: httpx.Response,
|
||||
cause: Exception,
|
||||
body: Optional[str] = None,
|
||||
):
|
||||
message = f"{message}: {cause}"
|
||||
super().__init__(message, raw_response, body)
|
||||
|
||||
@property
|
||||
def cause(self):
|
||||
"""Normally the Pydantic ValidationError"""
|
||||
return self.__cause__
|
||||
@@ -0,0 +1,38 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
import httpx
|
||||
from typing import Optional
|
||||
|
||||
from unstructured_client.models.errors import UnstructuredClientError
|
||||
|
||||
MAX_MESSAGE_LEN = 10_000
|
||||
|
||||
|
||||
class SDKError(UnstructuredClientError):
|
||||
"""The fallback error class if no more specific error class is matched."""
|
||||
|
||||
def __init__(
|
||||
self, message: str, raw_response: httpx.Response, body: Optional[str] = None
|
||||
):
|
||||
body_display = body or raw_response.text or '""'
|
||||
|
||||
if message:
|
||||
message += ": "
|
||||
message += f"Status {raw_response.status_code}"
|
||||
|
||||
headers = raw_response.headers
|
||||
content_type = headers.get("content-type", '""')
|
||||
if content_type != "application/json":
|
||||
if " " in content_type:
|
||||
content_type = f'"{content_type}"'
|
||||
message += f" Content-Type {content_type}"
|
||||
|
||||
if len(body_display) > MAX_MESSAGE_LEN:
|
||||
truncated = body_display[:MAX_MESSAGE_LEN]
|
||||
remaining = len(body_display) - MAX_MESSAGE_LEN
|
||||
body_display = f"{truncated}...and {remaining} more chars"
|
||||
|
||||
message += f". Body: {body_display}"
|
||||
message = message.strip()
|
||||
|
||||
super().__init__(message, raw_response, body)
|
||||
@@ -0,0 +1,25 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
from typing import Optional
|
||||
from unstructured_client.models.errors import UnstructuredClientError
|
||||
from unstructured_client.types import BaseModel
|
||||
|
||||
|
||||
class ServerErrorData(BaseModel):
|
||||
detail: Optional[str] = None
|
||||
|
||||
|
||||
class ServerError(UnstructuredClientError):
|
||||
data: ServerErrorData
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
data: ServerErrorData,
|
||||
raw_response: httpx.Response,
|
||||
body: Optional[str] = None,
|
||||
):
|
||||
message = body or raw_response.text
|
||||
super().__init__(message, raw_response, body)
|
||||
self.data = data
|
||||
@@ -0,0 +1,26 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
import httpx
|
||||
from typing import Optional
|
||||
|
||||
|
||||
class UnstructuredClientError(Exception):
|
||||
"""The base class for all HTTP error responses."""
|
||||
|
||||
message: str
|
||||
status_code: int
|
||||
body: str
|
||||
headers: httpx.Headers
|
||||
raw_response: httpx.Response
|
||||
|
||||
def __init__(
|
||||
self, message: str, raw_response: httpx.Response, body: Optional[str] = None
|
||||
):
|
||||
self.message = message
|
||||
self.status_code = raw_response.status_code
|
||||
self.body = body if body is not None else raw_response.text
|
||||
self.headers = raw_response.headers
|
||||
self.raw_response = raw_response
|
||||
|
||||
def __str__(self):
|
||||
return self.message
|
||||
@@ -0,0 +1,459 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
from importlib import import_module
|
||||
import builtins
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .cancel_job import (
|
||||
CancelJobRequest,
|
||||
CancelJobRequestTypedDict,
|
||||
CancelJobResponse,
|
||||
CancelJobResponseTypedDict,
|
||||
)
|
||||
from .create_connection_check_destinations import (
|
||||
CreateConnectionCheckDestinationsRequest,
|
||||
CreateConnectionCheckDestinationsRequestTypedDict,
|
||||
CreateConnectionCheckDestinationsResponse,
|
||||
CreateConnectionCheckDestinationsResponseTypedDict,
|
||||
)
|
||||
from .create_connection_check_sources import (
|
||||
CreateConnectionCheckSourcesRequest,
|
||||
CreateConnectionCheckSourcesRequestTypedDict,
|
||||
CreateConnectionCheckSourcesResponse,
|
||||
CreateConnectionCheckSourcesResponseTypedDict,
|
||||
)
|
||||
from .create_destination import (
|
||||
CreateDestinationRequest,
|
||||
CreateDestinationRequestTypedDict,
|
||||
CreateDestinationResponse,
|
||||
CreateDestinationResponseTypedDict,
|
||||
)
|
||||
from .create_job import (
|
||||
CreateJobRequest,
|
||||
CreateJobRequestTypedDict,
|
||||
CreateJobResponse,
|
||||
CreateJobResponseTypedDict,
|
||||
)
|
||||
from .create_source import (
|
||||
CreateSourceRequest,
|
||||
CreateSourceRequestTypedDict,
|
||||
CreateSourceResponse,
|
||||
CreateSourceResponseTypedDict,
|
||||
)
|
||||
from .create_workflow import (
|
||||
CreateWorkflowRequest,
|
||||
CreateWorkflowRequestTypedDict,
|
||||
CreateWorkflowResponse,
|
||||
CreateWorkflowResponseTypedDict,
|
||||
)
|
||||
from .delete_destination import (
|
||||
DeleteDestinationRequest,
|
||||
DeleteDestinationRequestTypedDict,
|
||||
DeleteDestinationResponse,
|
||||
DeleteDestinationResponseTypedDict,
|
||||
)
|
||||
from .delete_source import (
|
||||
DeleteSourceRequest,
|
||||
DeleteSourceRequestTypedDict,
|
||||
DeleteSourceResponse,
|
||||
DeleteSourceResponseTypedDict,
|
||||
)
|
||||
from .delete_workflow import (
|
||||
DeleteWorkflowRequest,
|
||||
DeleteWorkflowRequestTypedDict,
|
||||
DeleteWorkflowResponse,
|
||||
DeleteWorkflowResponseTypedDict,
|
||||
)
|
||||
from .download_job_output import (
|
||||
DownloadJobOutputRequest,
|
||||
DownloadJobOutputRequestTypedDict,
|
||||
DownloadJobOutputResponse,
|
||||
DownloadJobOutputResponseTypedDict,
|
||||
)
|
||||
from .get_connection_check_destinations import (
|
||||
GetConnectionCheckDestinationsRequest,
|
||||
GetConnectionCheckDestinationsRequestTypedDict,
|
||||
GetConnectionCheckDestinationsResponse,
|
||||
GetConnectionCheckDestinationsResponseTypedDict,
|
||||
)
|
||||
from .get_connection_check_sources import (
|
||||
GetConnectionCheckSourcesRequest,
|
||||
GetConnectionCheckSourcesRequestTypedDict,
|
||||
GetConnectionCheckSourcesResponse,
|
||||
GetConnectionCheckSourcesResponseTypedDict,
|
||||
)
|
||||
from .get_destination import (
|
||||
GetDestinationRequest,
|
||||
GetDestinationRequestTypedDict,
|
||||
GetDestinationResponse,
|
||||
GetDestinationResponseTypedDict,
|
||||
)
|
||||
from .get_job import (
|
||||
GetJobRequest,
|
||||
GetJobRequestTypedDict,
|
||||
GetJobResponse,
|
||||
GetJobResponseTypedDict,
|
||||
)
|
||||
from .get_job_details import (
|
||||
GetJobDetailsRequest,
|
||||
GetJobDetailsRequestTypedDict,
|
||||
GetJobDetailsResponse,
|
||||
GetJobDetailsResponseTypedDict,
|
||||
)
|
||||
from .get_job_failed_files import (
|
||||
GetJobFailedFilesRequest,
|
||||
GetJobFailedFilesRequestTypedDict,
|
||||
GetJobFailedFilesResponse,
|
||||
GetJobFailedFilesResponseTypedDict,
|
||||
)
|
||||
from .get_source import (
|
||||
GetSourceRequest,
|
||||
GetSourceRequestTypedDict,
|
||||
GetSourceResponse,
|
||||
GetSourceResponseTypedDict,
|
||||
)
|
||||
from .get_template import (
|
||||
GetTemplateRequest,
|
||||
GetTemplateRequestTypedDict,
|
||||
GetTemplateResponse,
|
||||
GetTemplateResponseTypedDict,
|
||||
)
|
||||
from .get_workflow import (
|
||||
GetWorkflowRequest,
|
||||
GetWorkflowRequestTypedDict,
|
||||
GetWorkflowResponse,
|
||||
GetWorkflowResponseTypedDict,
|
||||
)
|
||||
from .list_destinations import (
|
||||
ListDestinationsRequest,
|
||||
ListDestinationsRequestTypedDict,
|
||||
ListDestinationsResponse,
|
||||
ListDestinationsResponseTypedDict,
|
||||
)
|
||||
from .list_jobs import (
|
||||
ListJobsRequest,
|
||||
ListJobsRequestTypedDict,
|
||||
ListJobsResponse,
|
||||
ListJobsResponseTypedDict,
|
||||
)
|
||||
from .list_sources import (
|
||||
ListSourcesRequest,
|
||||
ListSourcesRequestTypedDict,
|
||||
ListSourcesResponse,
|
||||
ListSourcesResponseTypedDict,
|
||||
)
|
||||
from .list_templates import (
|
||||
ListTemplatesRequest,
|
||||
ListTemplatesRequestTypedDict,
|
||||
ListTemplatesResponse,
|
||||
ListTemplatesResponseTypedDict,
|
||||
)
|
||||
from .list_workflows import (
|
||||
ListWorkflowsRequest,
|
||||
ListWorkflowsRequestTypedDict,
|
||||
ListWorkflowsResponse,
|
||||
ListWorkflowsResponseTypedDict,
|
||||
)
|
||||
from .partition import (
|
||||
PartitionRequest,
|
||||
PartitionRequestTypedDict,
|
||||
PartitionResponse,
|
||||
PartitionResponseTypedDict,
|
||||
)
|
||||
from .run_workflow import (
|
||||
RunWorkflowRequest,
|
||||
RunWorkflowRequestTypedDict,
|
||||
RunWorkflowResponse,
|
||||
RunWorkflowResponseTypedDict,
|
||||
)
|
||||
from .update_destination import (
|
||||
UpdateDestinationRequest,
|
||||
UpdateDestinationRequestTypedDict,
|
||||
UpdateDestinationResponse,
|
||||
UpdateDestinationResponseTypedDict,
|
||||
)
|
||||
from .update_source import (
|
||||
UpdateSourceRequest,
|
||||
UpdateSourceRequestTypedDict,
|
||||
UpdateSourceResponse,
|
||||
UpdateSourceResponseTypedDict,
|
||||
)
|
||||
from .update_workflow import (
|
||||
UpdateWorkflowRequest,
|
||||
UpdateWorkflowRequestTypedDict,
|
||||
UpdateWorkflowResponse,
|
||||
UpdateWorkflowResponseTypedDict,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"CancelJobRequest",
|
||||
"CancelJobRequestTypedDict",
|
||||
"CancelJobResponse",
|
||||
"CancelJobResponseTypedDict",
|
||||
"CreateConnectionCheckDestinationsRequest",
|
||||
"CreateConnectionCheckDestinationsRequestTypedDict",
|
||||
"CreateConnectionCheckDestinationsResponse",
|
||||
"CreateConnectionCheckDestinationsResponseTypedDict",
|
||||
"CreateConnectionCheckSourcesRequest",
|
||||
"CreateConnectionCheckSourcesRequestTypedDict",
|
||||
"CreateConnectionCheckSourcesResponse",
|
||||
"CreateConnectionCheckSourcesResponseTypedDict",
|
||||
"CreateDestinationRequest",
|
||||
"CreateDestinationRequestTypedDict",
|
||||
"CreateDestinationResponse",
|
||||
"CreateDestinationResponseTypedDict",
|
||||
"CreateJobRequest",
|
||||
"CreateJobRequestTypedDict",
|
||||
"CreateJobResponse",
|
||||
"CreateJobResponseTypedDict",
|
||||
"CreateSourceRequest",
|
||||
"CreateSourceRequestTypedDict",
|
||||
"CreateSourceResponse",
|
||||
"CreateSourceResponseTypedDict",
|
||||
"CreateWorkflowRequest",
|
||||
"CreateWorkflowRequestTypedDict",
|
||||
"CreateWorkflowResponse",
|
||||
"CreateWorkflowResponseTypedDict",
|
||||
"DeleteDestinationRequest",
|
||||
"DeleteDestinationRequestTypedDict",
|
||||
"DeleteDestinationResponse",
|
||||
"DeleteDestinationResponseTypedDict",
|
||||
"DeleteSourceRequest",
|
||||
"DeleteSourceRequestTypedDict",
|
||||
"DeleteSourceResponse",
|
||||
"DeleteSourceResponseTypedDict",
|
||||
"DeleteWorkflowRequest",
|
||||
"DeleteWorkflowRequestTypedDict",
|
||||
"DeleteWorkflowResponse",
|
||||
"DeleteWorkflowResponseTypedDict",
|
||||
"DownloadJobOutputRequest",
|
||||
"DownloadJobOutputRequestTypedDict",
|
||||
"DownloadJobOutputResponse",
|
||||
"DownloadJobOutputResponseTypedDict",
|
||||
"GetConnectionCheckDestinationsRequest",
|
||||
"GetConnectionCheckDestinationsRequestTypedDict",
|
||||
"GetConnectionCheckDestinationsResponse",
|
||||
"GetConnectionCheckDestinationsResponseTypedDict",
|
||||
"GetConnectionCheckSourcesRequest",
|
||||
"GetConnectionCheckSourcesRequestTypedDict",
|
||||
"GetConnectionCheckSourcesResponse",
|
||||
"GetConnectionCheckSourcesResponseTypedDict",
|
||||
"GetDestinationRequest",
|
||||
"GetDestinationRequestTypedDict",
|
||||
"GetDestinationResponse",
|
||||
"GetDestinationResponseTypedDict",
|
||||
"GetJobDetailsRequest",
|
||||
"GetJobDetailsRequestTypedDict",
|
||||
"GetJobDetailsResponse",
|
||||
"GetJobDetailsResponseTypedDict",
|
||||
"GetJobFailedFilesRequest",
|
||||
"GetJobFailedFilesRequestTypedDict",
|
||||
"GetJobFailedFilesResponse",
|
||||
"GetJobFailedFilesResponseTypedDict",
|
||||
"GetJobRequest",
|
||||
"GetJobRequestTypedDict",
|
||||
"GetJobResponse",
|
||||
"GetJobResponseTypedDict",
|
||||
"GetSourceRequest",
|
||||
"GetSourceRequestTypedDict",
|
||||
"GetSourceResponse",
|
||||
"GetSourceResponseTypedDict",
|
||||
"GetTemplateRequest",
|
||||
"GetTemplateRequestTypedDict",
|
||||
"GetTemplateResponse",
|
||||
"GetTemplateResponseTypedDict",
|
||||
"GetWorkflowRequest",
|
||||
"GetWorkflowRequestTypedDict",
|
||||
"GetWorkflowResponse",
|
||||
"GetWorkflowResponseTypedDict",
|
||||
"ListDestinationsRequest",
|
||||
"ListDestinationsRequestTypedDict",
|
||||
"ListDestinationsResponse",
|
||||
"ListDestinationsResponseTypedDict",
|
||||
"ListJobsRequest",
|
||||
"ListJobsRequestTypedDict",
|
||||
"ListJobsResponse",
|
||||
"ListJobsResponseTypedDict",
|
||||
"ListSourcesRequest",
|
||||
"ListSourcesRequestTypedDict",
|
||||
"ListSourcesResponse",
|
||||
"ListSourcesResponseTypedDict",
|
||||
"ListTemplatesRequest",
|
||||
"ListTemplatesRequestTypedDict",
|
||||
"ListTemplatesResponse",
|
||||
"ListTemplatesResponseTypedDict",
|
||||
"ListWorkflowsRequest",
|
||||
"ListWorkflowsRequestTypedDict",
|
||||
"ListWorkflowsResponse",
|
||||
"ListWorkflowsResponseTypedDict",
|
||||
"PartitionRequest",
|
||||
"PartitionRequestTypedDict",
|
||||
"PartitionResponse",
|
||||
"PartitionResponseTypedDict",
|
||||
"RunWorkflowRequest",
|
||||
"RunWorkflowRequestTypedDict",
|
||||
"RunWorkflowResponse",
|
||||
"RunWorkflowResponseTypedDict",
|
||||
"UpdateDestinationRequest",
|
||||
"UpdateDestinationRequestTypedDict",
|
||||
"UpdateDestinationResponse",
|
||||
"UpdateDestinationResponseTypedDict",
|
||||
"UpdateSourceRequest",
|
||||
"UpdateSourceRequestTypedDict",
|
||||
"UpdateSourceResponse",
|
||||
"UpdateSourceResponseTypedDict",
|
||||
"UpdateWorkflowRequest",
|
||||
"UpdateWorkflowRequestTypedDict",
|
||||
"UpdateWorkflowResponse",
|
||||
"UpdateWorkflowResponseTypedDict",
|
||||
]
|
||||
|
||||
_dynamic_imports: dict[str, str] = {
|
||||
"CancelJobRequest": ".cancel_job",
|
||||
"CancelJobRequestTypedDict": ".cancel_job",
|
||||
"CancelJobResponse": ".cancel_job",
|
||||
"CancelJobResponseTypedDict": ".cancel_job",
|
||||
"CreateConnectionCheckDestinationsRequest": ".create_connection_check_destinations",
|
||||
"CreateConnectionCheckDestinationsRequestTypedDict": ".create_connection_check_destinations",
|
||||
"CreateConnectionCheckDestinationsResponse": ".create_connection_check_destinations",
|
||||
"CreateConnectionCheckDestinationsResponseTypedDict": ".create_connection_check_destinations",
|
||||
"CreateConnectionCheckSourcesRequest": ".create_connection_check_sources",
|
||||
"CreateConnectionCheckSourcesRequestTypedDict": ".create_connection_check_sources",
|
||||
"CreateConnectionCheckSourcesResponse": ".create_connection_check_sources",
|
||||
"CreateConnectionCheckSourcesResponseTypedDict": ".create_connection_check_sources",
|
||||
"CreateDestinationRequest": ".create_destination",
|
||||
"CreateDestinationRequestTypedDict": ".create_destination",
|
||||
"CreateDestinationResponse": ".create_destination",
|
||||
"CreateDestinationResponseTypedDict": ".create_destination",
|
||||
"CreateJobRequest": ".create_job",
|
||||
"CreateJobRequestTypedDict": ".create_job",
|
||||
"CreateJobResponse": ".create_job",
|
||||
"CreateJobResponseTypedDict": ".create_job",
|
||||
"CreateSourceRequest": ".create_source",
|
||||
"CreateSourceRequestTypedDict": ".create_source",
|
||||
"CreateSourceResponse": ".create_source",
|
||||
"CreateSourceResponseTypedDict": ".create_source",
|
||||
"CreateWorkflowRequest": ".create_workflow",
|
||||
"CreateWorkflowRequestTypedDict": ".create_workflow",
|
||||
"CreateWorkflowResponse": ".create_workflow",
|
||||
"CreateWorkflowResponseTypedDict": ".create_workflow",
|
||||
"DeleteDestinationRequest": ".delete_destination",
|
||||
"DeleteDestinationRequestTypedDict": ".delete_destination",
|
||||
"DeleteDestinationResponse": ".delete_destination",
|
||||
"DeleteDestinationResponseTypedDict": ".delete_destination",
|
||||
"DeleteSourceRequest": ".delete_source",
|
||||
"DeleteSourceRequestTypedDict": ".delete_source",
|
||||
"DeleteSourceResponse": ".delete_source",
|
||||
"DeleteSourceResponseTypedDict": ".delete_source",
|
||||
"DeleteWorkflowRequest": ".delete_workflow",
|
||||
"DeleteWorkflowRequestTypedDict": ".delete_workflow",
|
||||
"DeleteWorkflowResponse": ".delete_workflow",
|
||||
"DeleteWorkflowResponseTypedDict": ".delete_workflow",
|
||||
"DownloadJobOutputRequest": ".download_job_output",
|
||||
"DownloadJobOutputRequestTypedDict": ".download_job_output",
|
||||
"DownloadJobOutputResponse": ".download_job_output",
|
||||
"DownloadJobOutputResponseTypedDict": ".download_job_output",
|
||||
"GetConnectionCheckDestinationsRequest": ".get_connection_check_destinations",
|
||||
"GetConnectionCheckDestinationsRequestTypedDict": ".get_connection_check_destinations",
|
||||
"GetConnectionCheckDestinationsResponse": ".get_connection_check_destinations",
|
||||
"GetConnectionCheckDestinationsResponseTypedDict": ".get_connection_check_destinations",
|
||||
"GetConnectionCheckSourcesRequest": ".get_connection_check_sources",
|
||||
"GetConnectionCheckSourcesRequestTypedDict": ".get_connection_check_sources",
|
||||
"GetConnectionCheckSourcesResponse": ".get_connection_check_sources",
|
||||
"GetConnectionCheckSourcesResponseTypedDict": ".get_connection_check_sources",
|
||||
"GetDestinationRequest": ".get_destination",
|
||||
"GetDestinationRequestTypedDict": ".get_destination",
|
||||
"GetDestinationResponse": ".get_destination",
|
||||
"GetDestinationResponseTypedDict": ".get_destination",
|
||||
"GetJobRequest": ".get_job",
|
||||
"GetJobRequestTypedDict": ".get_job",
|
||||
"GetJobResponse": ".get_job",
|
||||
"GetJobResponseTypedDict": ".get_job",
|
||||
"GetJobDetailsRequest": ".get_job_details",
|
||||
"GetJobDetailsRequestTypedDict": ".get_job_details",
|
||||
"GetJobDetailsResponse": ".get_job_details",
|
||||
"GetJobDetailsResponseTypedDict": ".get_job_details",
|
||||
"GetJobFailedFilesRequest": ".get_job_failed_files",
|
||||
"GetJobFailedFilesRequestTypedDict": ".get_job_failed_files",
|
||||
"GetJobFailedFilesResponse": ".get_job_failed_files",
|
||||
"GetJobFailedFilesResponseTypedDict": ".get_job_failed_files",
|
||||
"GetSourceRequest": ".get_source",
|
||||
"GetSourceRequestTypedDict": ".get_source",
|
||||
"GetSourceResponse": ".get_source",
|
||||
"GetSourceResponseTypedDict": ".get_source",
|
||||
"GetTemplateRequest": ".get_template",
|
||||
"GetTemplateRequestTypedDict": ".get_template",
|
||||
"GetTemplateResponse": ".get_template",
|
||||
"GetTemplateResponseTypedDict": ".get_template",
|
||||
"GetWorkflowRequest": ".get_workflow",
|
||||
"GetWorkflowRequestTypedDict": ".get_workflow",
|
||||
"GetWorkflowResponse": ".get_workflow",
|
||||
"GetWorkflowResponseTypedDict": ".get_workflow",
|
||||
"ListDestinationsRequest": ".list_destinations",
|
||||
"ListDestinationsRequestTypedDict": ".list_destinations",
|
||||
"ListDestinationsResponse": ".list_destinations",
|
||||
"ListDestinationsResponseTypedDict": ".list_destinations",
|
||||
"ListJobsRequest": ".list_jobs",
|
||||
"ListJobsRequestTypedDict": ".list_jobs",
|
||||
"ListJobsResponse": ".list_jobs",
|
||||
"ListJobsResponseTypedDict": ".list_jobs",
|
||||
"ListSourcesRequest": ".list_sources",
|
||||
"ListSourcesRequestTypedDict": ".list_sources",
|
||||
"ListSourcesResponse": ".list_sources",
|
||||
"ListSourcesResponseTypedDict": ".list_sources",
|
||||
"ListTemplatesRequest": ".list_templates",
|
||||
"ListTemplatesRequestTypedDict": ".list_templates",
|
||||
"ListTemplatesResponse": ".list_templates",
|
||||
"ListTemplatesResponseTypedDict": ".list_templates",
|
||||
"ListWorkflowsRequest": ".list_workflows",
|
||||
"ListWorkflowsRequestTypedDict": ".list_workflows",
|
||||
"ListWorkflowsResponse": ".list_workflows",
|
||||
"ListWorkflowsResponseTypedDict": ".list_workflows",
|
||||
"PartitionRequest": ".partition",
|
||||
"PartitionRequestTypedDict": ".partition",
|
||||
"PartitionResponse": ".partition",
|
||||
"PartitionResponseTypedDict": ".partition",
|
||||
"RunWorkflowRequest": ".run_workflow",
|
||||
"RunWorkflowRequestTypedDict": ".run_workflow",
|
||||
"RunWorkflowResponse": ".run_workflow",
|
||||
"RunWorkflowResponseTypedDict": ".run_workflow",
|
||||
"UpdateDestinationRequest": ".update_destination",
|
||||
"UpdateDestinationRequestTypedDict": ".update_destination",
|
||||
"UpdateDestinationResponse": ".update_destination",
|
||||
"UpdateDestinationResponseTypedDict": ".update_destination",
|
||||
"UpdateSourceRequest": ".update_source",
|
||||
"UpdateSourceRequestTypedDict": ".update_source",
|
||||
"UpdateSourceResponse": ".update_source",
|
||||
"UpdateSourceResponseTypedDict": ".update_source",
|
||||
"UpdateWorkflowRequest": ".update_workflow",
|
||||
"UpdateWorkflowRequestTypedDict": ".update_workflow",
|
||||
"UpdateWorkflowResponse": ".update_workflow",
|
||||
"UpdateWorkflowResponseTypedDict": ".update_workflow",
|
||||
}
|
||||
|
||||
|
||||
def __getattr__(attr_name: str) -> object:
|
||||
module_name = _dynamic_imports.get(attr_name)
|
||||
if module_name is None:
|
||||
raise AttributeError(
|
||||
f"No {attr_name} found in _dynamic_imports for module name -> {__name__} "
|
||||
)
|
||||
|
||||
try:
|
||||
module = import_module(module_name, __package__)
|
||||
result = getattr(module, attr_name)
|
||||
return result
|
||||
except ImportError as e:
|
||||
raise ImportError(
|
||||
f"Failed to import {attr_name} from {module_name}: {e}"
|
||||
) from e
|
||||
except AttributeError as e:
|
||||
raise AttributeError(
|
||||
f"Failed to get {attr_name} from {module_name}: {e}"
|
||||
) from e
|
||||
|
||||
|
||||
def __dir__():
|
||||
lazy_attrs = builtins.list(_dynamic_imports.keys())
|
||||
return builtins.sorted(lazy_attrs)
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,88 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Any, Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class CancelJobRequestTypedDict(TypedDict):
|
||||
job_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class CancelJobRequest(BaseModel):
|
||||
job_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class CancelJobResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
any: NotRequired[Any]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class CancelJobResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
any: Optional[Any] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,95 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
dagnodeconnectioncheck as shared_dagnodeconnectioncheck,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class CreateConnectionCheckDestinationsRequestTypedDict(TypedDict):
|
||||
destination_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class CreateConnectionCheckDestinationsRequest(BaseModel):
|
||||
destination_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class CreateConnectionCheckDestinationsResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
dag_node_connection_check: NotRequired[
|
||||
shared_dagnodeconnectioncheck.DagNodeConnectionCheckTypedDict
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class CreateConnectionCheckDestinationsResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
dag_node_connection_check: Optional[
|
||||
shared_dagnodeconnectioncheck.DagNodeConnectionCheck
|
||||
] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,95 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
dagnodeconnectioncheck as shared_dagnodeconnectioncheck,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class CreateConnectionCheckSourcesRequestTypedDict(TypedDict):
|
||||
source_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class CreateConnectionCheckSourcesRequest(BaseModel):
|
||||
source_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class CreateConnectionCheckSourcesResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
dag_node_connection_check: NotRequired[
|
||||
shared_dagnodeconnectioncheck.DagNodeConnectionCheckTypedDict
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class CreateConnectionCheckSourcesResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
dag_node_connection_check: Optional[
|
||||
shared_dagnodeconnectioncheck.DagNodeConnectionCheck
|
||||
] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,99 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
createdestinationconnector as shared_createdestinationconnector,
|
||||
destinationconnectorinformation as shared_destinationconnectorinformation,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, RequestMetadata
|
||||
|
||||
|
||||
class CreateDestinationRequestTypedDict(TypedDict):
|
||||
create_destination_connector: (
|
||||
shared_createdestinationconnector.CreateDestinationConnectorTypedDict
|
||||
)
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class CreateDestinationRequest(BaseModel):
|
||||
create_destination_connector: Annotated[
|
||||
shared_createdestinationconnector.CreateDestinationConnector,
|
||||
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class CreateDestinationResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
destination_connector_information: NotRequired[
|
||||
shared_destinationconnectorinformation.DestinationConnectorInformationTypedDict
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class CreateDestinationResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
destination_connector_information: Optional[
|
||||
shared_destinationconnectorinformation.DestinationConnectorInformation
|
||||
] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,93 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
body_create_job as shared_body_create_job,
|
||||
jobinformation as shared_jobinformation,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, RequestMetadata
|
||||
|
||||
|
||||
class CreateJobRequestTypedDict(TypedDict):
|
||||
body_create_job: shared_body_create_job.BodyCreateJobTypedDict
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class CreateJobRequest(BaseModel):
|
||||
body_create_job: Annotated[
|
||||
shared_body_create_job.BodyCreateJob,
|
||||
FieldMetadata(request=RequestMetadata(media_type="multipart/form-data")),
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class CreateJobResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
job_information: NotRequired[shared_jobinformation.JobInformationTypedDict]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class CreateJobResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
job_information: Optional[shared_jobinformation.JobInformation] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,97 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
createsourceconnector as shared_createsourceconnector,
|
||||
sourceconnectorinformation as shared_sourceconnectorinformation,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, RequestMetadata
|
||||
|
||||
|
||||
class CreateSourceRequestTypedDict(TypedDict):
|
||||
create_source_connector: shared_createsourceconnector.CreateSourceConnectorTypedDict
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class CreateSourceRequest(BaseModel):
|
||||
create_source_connector: Annotated[
|
||||
shared_createsourceconnector.CreateSourceConnector,
|
||||
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class CreateSourceResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
source_connector_information: NotRequired[
|
||||
shared_sourceconnectorinformation.SourceConnectorInformationTypedDict
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class CreateSourceResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
source_connector_information: Optional[
|
||||
shared_sourceconnectorinformation.SourceConnectorInformation
|
||||
] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,97 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
createworkflow as shared_createworkflow,
|
||||
workflowinformation as shared_workflowinformation,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, RequestMetadata
|
||||
|
||||
|
||||
class CreateWorkflowRequestTypedDict(TypedDict):
|
||||
create_workflow: shared_createworkflow.CreateWorkflowTypedDict
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class CreateWorkflowRequest(BaseModel):
|
||||
create_workflow: Annotated[
|
||||
shared_createworkflow.CreateWorkflow,
|
||||
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class CreateWorkflowResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
workflow_information: NotRequired[
|
||||
shared_workflowinformation.WorkflowInformationTypedDict
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class CreateWorkflowResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
workflow_information: Optional[shared_workflowinformation.WorkflowInformation] = (
|
||||
None
|
||||
)
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,88 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Any, Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class DeleteDestinationRequestTypedDict(TypedDict):
|
||||
destination_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class DeleteDestinationRequest(BaseModel):
|
||||
destination_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class DeleteDestinationResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
any: NotRequired[Any]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class DeleteDestinationResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
any: Optional[Any] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,88 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Any, Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class DeleteSourceRequestTypedDict(TypedDict):
|
||||
source_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class DeleteSourceRequest(BaseModel):
|
||||
source_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class DeleteSourceResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
any: NotRequired[Any]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class DeleteSourceResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
any: Optional[Any] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,88 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Any, Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class DeleteWorkflowRequestTypedDict(TypedDict):
|
||||
workflow_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class DeleteWorkflowRequest(BaseModel):
|
||||
workflow_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class DeleteWorkflowResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
any: NotRequired[Any]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class DeleteWorkflowResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
any: Optional[Any] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,108 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Any, Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import (
|
||||
FieldMetadata,
|
||||
HeaderMetadata,
|
||||
PathParamMetadata,
|
||||
QueryParamMetadata,
|
||||
)
|
||||
|
||||
|
||||
class DownloadJobOutputRequestTypedDict(TypedDict):
|
||||
file_id: str
|
||||
r"""ID of the file to download"""
|
||||
job_id: str
|
||||
node_id: NotRequired[Nullable[str]]
|
||||
r"""Node ID to retrieve the corresponding output file.If not provided, uses the last node in the workflow."""
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class DownloadJobOutputRequest(BaseModel):
|
||||
file_id: Annotated[
|
||||
str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
|
||||
]
|
||||
r"""ID of the file to download"""
|
||||
|
||||
job_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
node_id: Annotated[
|
||||
OptionalNullable[str],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
r"""Node ID to retrieve the corresponding output file.If not provided, uses the last node in the workflow."""
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["node_id", "unstructured-api-key"]
|
||||
nullable_fields = ["node_id", "unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class DownloadJobOutputResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
any: NotRequired[Any]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class DownloadJobOutputResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
any: Optional[Any] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,95 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
dagnodeconnectioncheck as shared_dagnodeconnectioncheck,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class GetConnectionCheckDestinationsRequestTypedDict(TypedDict):
|
||||
destination_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class GetConnectionCheckDestinationsRequest(BaseModel):
|
||||
destination_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class GetConnectionCheckDestinationsResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
dag_node_connection_check: NotRequired[
|
||||
shared_dagnodeconnectioncheck.DagNodeConnectionCheckTypedDict
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class GetConnectionCheckDestinationsResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
dag_node_connection_check: Optional[
|
||||
shared_dagnodeconnectioncheck.DagNodeConnectionCheck
|
||||
] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,95 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
dagnodeconnectioncheck as shared_dagnodeconnectioncheck,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class GetConnectionCheckSourcesRequestTypedDict(TypedDict):
|
||||
source_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class GetConnectionCheckSourcesRequest(BaseModel):
|
||||
source_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class GetConnectionCheckSourcesResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
dag_node_connection_check: NotRequired[
|
||||
shared_dagnodeconnectioncheck.DagNodeConnectionCheckTypedDict
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class GetConnectionCheckSourcesResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
dag_node_connection_check: Optional[
|
||||
shared_dagnodeconnectioncheck.DagNodeConnectionCheck
|
||||
] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,95 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
destinationconnectorinformation as shared_destinationconnectorinformation,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class GetDestinationRequestTypedDict(TypedDict):
|
||||
destination_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class GetDestinationRequest(BaseModel):
|
||||
destination_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class GetDestinationResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
destination_connector_information: NotRequired[
|
||||
shared_destinationconnectorinformation.DestinationConnectorInformationTypedDict
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class GetDestinationResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
destination_connector_information: Optional[
|
||||
shared_destinationconnectorinformation.DestinationConnectorInformation
|
||||
] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,89 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import jobinformation as shared_jobinformation
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class GetJobRequestTypedDict(TypedDict):
|
||||
job_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class GetJobRequest(BaseModel):
|
||||
job_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class GetJobResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
job_information: NotRequired[shared_jobinformation.JobInformationTypedDict]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class GetJobResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
job_information: Optional[shared_jobinformation.JobInformation] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,89 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import jobdetails as shared_jobdetails
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class GetJobDetailsRequestTypedDict(TypedDict):
|
||||
job_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class GetJobDetailsRequest(BaseModel):
|
||||
job_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class GetJobDetailsResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
job_details: NotRequired[shared_jobdetails.JobDetailsTypedDict]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class GetJobDetailsResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
job_details: Optional[shared_jobdetails.JobDetails] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,89 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import jobfailedfiles as shared_jobfailedfiles
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class GetJobFailedFilesRequestTypedDict(TypedDict):
|
||||
job_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class GetJobFailedFilesRequest(BaseModel):
|
||||
job_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class GetJobFailedFilesResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
job_failed_files: NotRequired[shared_jobfailedfiles.JobFailedFilesTypedDict]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class GetJobFailedFilesResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
job_failed_files: Optional[shared_jobfailedfiles.JobFailedFiles] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,95 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
sourceconnectorinformation as shared_sourceconnectorinformation,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class GetSourceRequestTypedDict(TypedDict):
|
||||
source_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class GetSourceRequest(BaseModel):
|
||||
source_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class GetSourceResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
source_connector_information: NotRequired[
|
||||
shared_sourceconnectorinformation.SourceConnectorInformationTypedDict
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class GetSourceResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
source_connector_information: Optional[
|
||||
shared_sourceconnectorinformation.SourceConnectorInformation
|
||||
] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,89 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import templatedetail as shared_templatedetail
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class GetTemplateRequestTypedDict(TypedDict):
|
||||
template_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class GetTemplateRequest(BaseModel):
|
||||
template_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class GetTemplateResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
template_detail: NotRequired[shared_templatedetail.TemplateDetailTypedDict]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class GetTemplateResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
template_detail: Optional[shared_templatedetail.TemplateDetail] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,95 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
workflowinformation as shared_workflowinformation,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
||||
|
||||
|
||||
class GetWorkflowRequestTypedDict(TypedDict):
|
||||
workflow_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class GetWorkflowRequest(BaseModel):
|
||||
workflow_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class GetWorkflowResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
workflow_information: NotRequired[
|
||||
shared_workflowinformation.WorkflowInformationTypedDict
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class GetWorkflowResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
workflow_information: Optional[shared_workflowinformation.WorkflowInformation] = (
|
||||
None
|
||||
)
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,110 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
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 (
|
||||
destinationconnectorinformation as shared_destinationconnectorinformation,
|
||||
destinationconnectortype as shared_destinationconnectortype,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import (
|
||||
FieldMetadata,
|
||||
HeaderMetadata,
|
||||
QueryParamMetadata,
|
||||
validate_open_enum,
|
||||
)
|
||||
|
||||
|
||||
class ListDestinationsRequestTypedDict(TypedDict):
|
||||
destination_type: NotRequired[
|
||||
Nullable[shared_destinationconnectortype.DestinationConnectorType]
|
||||
]
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class ListDestinationsRequest(BaseModel):
|
||||
destination_type: Annotated[
|
||||
Annotated[
|
||||
OptionalNullable[shared_destinationconnectortype.DestinationConnectorType],
|
||||
PlainValidator(validate_open_enum(False)),
|
||||
],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["destination_type", "unstructured-api-key"]
|
||||
nullable_fields = ["destination_type", "unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class ListDestinationsResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
response_list_destinations: NotRequired[
|
||||
List[
|
||||
shared_destinationconnectorinformation.DestinationConnectorInformationTypedDict
|
||||
]
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class ListDestinationsResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
response_list_destinations: Optional[
|
||||
List[shared_destinationconnectorinformation.DestinationConnectorInformation]
|
||||
] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,96 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import List, Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import jobinformation as shared_jobinformation
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata
|
||||
|
||||
|
||||
class ListJobsRequestTypedDict(TypedDict):
|
||||
status: NotRequired[Nullable[str]]
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
workflow_id: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class ListJobsRequest(BaseModel):
|
||||
status: Annotated[
|
||||
OptionalNullable[str],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
workflow_id: Annotated[
|
||||
OptionalNullable[str],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["status", "unstructured-api-key", "workflow_id"]
|
||||
nullable_fields = ["status", "unstructured-api-key", "workflow_id"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class ListJobsResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
response_list_jobs: NotRequired[List[shared_jobinformation.JobInformationTypedDict]]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class ListJobsResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
response_list_jobs: Optional[List[shared_jobinformation.JobInformation]] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,106 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
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 (
|
||||
sourceconnectorinformation as shared_sourceconnectorinformation,
|
||||
sourceconnectortype as shared_sourceconnectortype,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import (
|
||||
FieldMetadata,
|
||||
HeaderMetadata,
|
||||
QueryParamMetadata,
|
||||
validate_open_enum,
|
||||
)
|
||||
|
||||
|
||||
class ListSourcesRequestTypedDict(TypedDict):
|
||||
source_type: NotRequired[Nullable[shared_sourceconnectortype.SourceConnectorType]]
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class ListSourcesRequest(BaseModel):
|
||||
source_type: Annotated[
|
||||
Annotated[
|
||||
OptionalNullable[shared_sourceconnectortype.SourceConnectorType],
|
||||
PlainValidator(validate_open_enum(False)),
|
||||
],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["source_type", "unstructured-api-key"]
|
||||
nullable_fields = ["source_type", "unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class ListSourcesResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
response_list_sources: NotRequired[
|
||||
List[shared_sourceconnectorinformation.SourceConnectorInformationTypedDict]
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class ListSourcesResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
response_list_sources: Optional[
|
||||
List[shared_sourceconnectorinformation.SourceConnectorInformation]
|
||||
] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,90 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import List, Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
templatelistitem as shared_templatelistitem,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata
|
||||
|
||||
|
||||
class ListTemplatesRequestTypedDict(TypedDict):
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class ListTemplatesRequest(BaseModel):
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class ListTemplatesResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
response_list_templates: NotRequired[
|
||||
List[shared_templatelistitem.TemplateListItemTypedDict]
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class ListTemplatesResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
response_list_templates: Optional[
|
||||
List[shared_templatelistitem.TemplateListItem]
|
||||
] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,199 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from datetime import datetime
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import List, Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
sortdirection as shared_sortdirection,
|
||||
workflowinformation as shared_workflowinformation,
|
||||
workflowstate as shared_workflowstate,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata
|
||||
|
||||
|
||||
class ListWorkflowsRequestTypedDict(TypedDict):
|
||||
created_before: NotRequired[Nullable[datetime]]
|
||||
created_since: NotRequired[Nullable[datetime]]
|
||||
dag_node_configuration_id: NotRequired[Nullable[str]]
|
||||
destination_id: NotRequired[Nullable[str]]
|
||||
name: NotRequired[Nullable[str]]
|
||||
page: NotRequired[Nullable[int]]
|
||||
page_size: NotRequired[Nullable[int]]
|
||||
show_only_soft_deleted: NotRequired[Nullable[bool]]
|
||||
show_recommender_workflows: NotRequired[Nullable[bool]]
|
||||
sort_by: NotRequired[str]
|
||||
sort_direction: NotRequired[shared_sortdirection.SortDirection]
|
||||
source_id: NotRequired[Nullable[str]]
|
||||
status: NotRequired[Nullable[shared_workflowstate.WorkflowState]]
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class ListWorkflowsRequest(BaseModel):
|
||||
created_before: Annotated[
|
||||
OptionalNullable[datetime],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
created_since: Annotated[
|
||||
OptionalNullable[datetime],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
dag_node_configuration_id: Annotated[
|
||||
OptionalNullable[str],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
destination_id: Annotated[
|
||||
OptionalNullable[str],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
name: Annotated[
|
||||
OptionalNullable[str],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
page: Annotated[
|
||||
OptionalNullable[int],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
page_size: Annotated[
|
||||
OptionalNullable[int],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
show_only_soft_deleted: Annotated[
|
||||
OptionalNullable[bool],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
show_recommender_workflows: Annotated[
|
||||
OptionalNullable[bool],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
sort_by: Annotated[
|
||||
Optional[str],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = "id"
|
||||
|
||||
sort_direction: Annotated[
|
||||
Optional[shared_sortdirection.SortDirection],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = None
|
||||
|
||||
source_id: Annotated[
|
||||
OptionalNullable[str],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
status: Annotated[
|
||||
OptionalNullable[shared_workflowstate.WorkflowState],
|
||||
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
|
||||
] = UNSET
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = [
|
||||
"created_before",
|
||||
"created_since",
|
||||
"dag_node_configuration_id",
|
||||
"destination_id",
|
||||
"name",
|
||||
"page",
|
||||
"page_size",
|
||||
"show_only_soft_deleted",
|
||||
"show_recommender_workflows",
|
||||
"sort_by",
|
||||
"sort_direction",
|
||||
"source_id",
|
||||
"status",
|
||||
"unstructured-api-key",
|
||||
]
|
||||
nullable_fields = [
|
||||
"created_before",
|
||||
"created_since",
|
||||
"dag_node_configuration_id",
|
||||
"destination_id",
|
||||
"name",
|
||||
"page",
|
||||
"page_size",
|
||||
"show_only_soft_deleted",
|
||||
"show_recommender_workflows",
|
||||
"source_id",
|
||||
"status",
|
||||
"unstructured-api-key",
|
||||
]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class ListWorkflowsResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
response_list_workflows: NotRequired[
|
||||
List[shared_workflowinformation.WorkflowInformationTypedDict]
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class ListWorkflowsResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
response_list_workflows: Optional[
|
||||
List[shared_workflowinformation.WorkflowInformation]
|
||||
] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,97 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Any, Dict, List, Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
partition_parameters as shared_partition_parameters,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import FieldMetadata, HeaderMetadata, RequestMetadata
|
||||
|
||||
|
||||
class PartitionRequestTypedDict(TypedDict):
|
||||
partition_parameters: shared_partition_parameters.PartitionParametersTypedDict
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class PartitionRequest(BaseModel):
|
||||
partition_parameters: Annotated[
|
||||
shared_partition_parameters.PartitionParameters,
|
||||
FieldMetadata(request=RequestMetadata(media_type="multipart/form-data")),
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class PartitionResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
csv_elements: NotRequired[str]
|
||||
r"""Successful Response"""
|
||||
elements: NotRequired[List[Dict[str, Any]]]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class PartitionResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
csv_elements: Optional[str] = None
|
||||
r"""Successful Response"""
|
||||
|
||||
elements: Optional[List[Dict[str, Any]]] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,103 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
body_run_workflow as shared_body_run_workflow,
|
||||
jobinformation as shared_jobinformation,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import (
|
||||
FieldMetadata,
|
||||
HeaderMetadata,
|
||||
PathParamMetadata,
|
||||
RequestMetadata,
|
||||
)
|
||||
|
||||
|
||||
class RunWorkflowRequestTypedDict(TypedDict):
|
||||
workflow_id: str
|
||||
body_run_workflow: NotRequired[shared_body_run_workflow.BodyRunWorkflowTypedDict]
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class RunWorkflowRequest(BaseModel):
|
||||
workflow_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
body_run_workflow: Annotated[
|
||||
Optional[shared_body_run_workflow.BodyRunWorkflow],
|
||||
FieldMetadata(request=RequestMetadata(media_type="multipart/form-data")),
|
||||
] = None
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["Body_run_workflow", "unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class RunWorkflowResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
job_information: NotRequired[shared_jobinformation.JobInformationTypedDict]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class RunWorkflowResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
job_information: Optional[shared_jobinformation.JobInformation] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,109 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
destinationconnectorinformation as shared_destinationconnectorinformation,
|
||||
updatedestinationconnector as shared_updatedestinationconnector,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import (
|
||||
FieldMetadata,
|
||||
HeaderMetadata,
|
||||
PathParamMetadata,
|
||||
RequestMetadata,
|
||||
)
|
||||
|
||||
|
||||
class UpdateDestinationRequestTypedDict(TypedDict):
|
||||
update_destination_connector: (
|
||||
shared_updatedestinationconnector.UpdateDestinationConnectorTypedDict
|
||||
)
|
||||
destination_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class UpdateDestinationRequest(BaseModel):
|
||||
update_destination_connector: Annotated[
|
||||
shared_updatedestinationconnector.UpdateDestinationConnector,
|
||||
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
||||
]
|
||||
|
||||
destination_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class UpdateDestinationResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
destination_connector_information: NotRequired[
|
||||
shared_destinationconnectorinformation.DestinationConnectorInformationTypedDict
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class UpdateDestinationResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
destination_connector_information: Optional[
|
||||
shared_destinationconnectorinformation.DestinationConnectorInformation
|
||||
] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,107 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
sourceconnectorinformation as shared_sourceconnectorinformation,
|
||||
updatesourceconnector as shared_updatesourceconnector,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import (
|
||||
FieldMetadata,
|
||||
HeaderMetadata,
|
||||
PathParamMetadata,
|
||||
RequestMetadata,
|
||||
)
|
||||
|
||||
|
||||
class UpdateSourceRequestTypedDict(TypedDict):
|
||||
update_source_connector: shared_updatesourceconnector.UpdateSourceConnectorTypedDict
|
||||
source_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class UpdateSourceRequest(BaseModel):
|
||||
update_source_connector: Annotated[
|
||||
shared_updatesourceconnector.UpdateSourceConnector,
|
||||
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
||||
]
|
||||
|
||||
source_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class UpdateSourceResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
source_connector_information: NotRequired[
|
||||
shared_sourceconnectorinformation.SourceConnectorInformationTypedDict
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class UpdateSourceResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
source_connector_information: Optional[
|
||||
shared_sourceconnectorinformation.SourceConnectorInformation
|
||||
] = None
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,107 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
import httpx
|
||||
import pydantic
|
||||
from pydantic import model_serializer
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
from unstructured_client.models.shared import (
|
||||
updateworkflow as shared_updateworkflow,
|
||||
workflowinformation as shared_workflowinformation,
|
||||
)
|
||||
from unstructured_client.types import (
|
||||
BaseModel,
|
||||
Nullable,
|
||||
OptionalNullable,
|
||||
UNSET,
|
||||
UNSET_SENTINEL,
|
||||
)
|
||||
from unstructured_client.utils import (
|
||||
FieldMetadata,
|
||||
HeaderMetadata,
|
||||
PathParamMetadata,
|
||||
RequestMetadata,
|
||||
)
|
||||
|
||||
|
||||
class UpdateWorkflowRequestTypedDict(TypedDict):
|
||||
update_workflow: shared_updateworkflow.UpdateWorkflowTypedDict
|
||||
workflow_id: str
|
||||
unstructured_api_key: NotRequired[Nullable[str]]
|
||||
|
||||
|
||||
class UpdateWorkflowRequest(BaseModel):
|
||||
update_workflow: Annotated[
|
||||
shared_updateworkflow.UpdateWorkflow,
|
||||
FieldMetadata(request=RequestMetadata(media_type="application/json")),
|
||||
]
|
||||
|
||||
workflow_id: Annotated[
|
||||
str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
|
||||
]
|
||||
|
||||
unstructured_api_key: Annotated[
|
||||
OptionalNullable[str],
|
||||
pydantic.Field(alias="unstructured-api-key"),
|
||||
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
||||
] = UNSET
|
||||
|
||||
@model_serializer(mode="wrap")
|
||||
def serialize_model(self, handler):
|
||||
optional_fields = ["unstructured-api-key"]
|
||||
nullable_fields = ["unstructured-api-key"]
|
||||
null_default_fields = []
|
||||
|
||||
serialized = handler(self)
|
||||
|
||||
m = {}
|
||||
|
||||
for n, f in type(self).model_fields.items():
|
||||
k = f.alias or n
|
||||
val = serialized.get(k)
|
||||
serialized.pop(k, None)
|
||||
|
||||
optional_nullable = k in optional_fields and k in nullable_fields
|
||||
is_set = (
|
||||
self.__pydantic_fields_set__.intersection({n})
|
||||
or k in null_default_fields
|
||||
) # pylint: disable=no-member
|
||||
|
||||
if val is not None and val != UNSET_SENTINEL:
|
||||
m[k] = val
|
||||
elif val != UNSET_SENTINEL and (
|
||||
not k in optional_fields or (optional_nullable and is_set)
|
||||
):
|
||||
m[k] = val
|
||||
|
||||
return m
|
||||
|
||||
|
||||
class UpdateWorkflowResponseTypedDict(TypedDict):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
workflow_information: NotRequired[
|
||||
shared_workflowinformation.WorkflowInformationTypedDict
|
||||
]
|
||||
r"""Successful Response"""
|
||||
|
||||
|
||||
class UpdateWorkflowResponse(BaseModel):
|
||||
content_type: str
|
||||
r"""HTTP response content type for this operation"""
|
||||
|
||||
status_code: int
|
||||
r"""HTTP response status code for this operation"""
|
||||
|
||||
raw_response: httpx.Response
|
||||
r"""Raw HTTP response; suitable for custom response parsing"""
|
||||
|
||||
workflow_information: Optional[shared_workflowinformation.WorkflowInformation] = (
|
||||
None
|
||||
)
|
||||
r"""Successful Response"""
|
||||
@@ -0,0 +1,971 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
from importlib import import_module
|
||||
import builtins
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .astradbconnectorconfig import (
|
||||
AstraDBConnectorConfig,
|
||||
AstraDBConnectorConfigTypedDict,
|
||||
)
|
||||
from .astradbconnectorconfiginput import (
|
||||
AstraDBConnectorConfigInput,
|
||||
AstraDBConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .azureaisearchconnectorconfig import (
|
||||
AzureAISearchConnectorConfig,
|
||||
AzureAISearchConnectorConfigTypedDict,
|
||||
)
|
||||
from .azureaisearchconnectorconfiginput import (
|
||||
AzureAISearchConnectorConfigInput,
|
||||
AzureAISearchConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .azuredestinationconnectorconfig import (
|
||||
AzureDestinationConnectorConfig,
|
||||
AzureDestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .azuredestinationconnectorconfiginput import (
|
||||
AzureDestinationConnectorConfigInput,
|
||||
AzureDestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .azuresourceconnectorconfig import (
|
||||
AzureSourceConnectorConfig,
|
||||
AzureSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .azuresourceconnectorconfiginput import (
|
||||
AzureSourceConnectorConfigInput,
|
||||
AzureSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .body_create_job import (
|
||||
BodyCreateJob,
|
||||
BodyCreateJobTypedDict,
|
||||
InputFiles,
|
||||
InputFilesTypedDict,
|
||||
)
|
||||
from .body_run_workflow import (
|
||||
BodyRunWorkflow,
|
||||
BodyRunWorkflowInputFiles,
|
||||
BodyRunWorkflowInputFilesTypedDict,
|
||||
BodyRunWorkflowTypedDict,
|
||||
)
|
||||
from .boxsourceconnectorconfig import (
|
||||
BoxSourceConnectorConfig,
|
||||
BoxSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .boxsourceconnectorconfiginput import (
|
||||
BoxSourceConnectorConfigInput,
|
||||
BoxSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .confluencesourceconnectorconfig import (
|
||||
ConfluenceSourceConnectorConfig,
|
||||
ConfluenceSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .confluencesourceconnectorconfiginput import (
|
||||
ConfluenceSourceConnectorConfigInput,
|
||||
ConfluenceSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .connectioncheckstatus import ConnectionCheckStatus
|
||||
from .couchbasedestinationconnectorconfig import (
|
||||
CouchbaseDestinationConnectorConfig,
|
||||
CouchbaseDestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .couchbasedestinationconnectorconfiginput import (
|
||||
CouchbaseDestinationConnectorConfigInput,
|
||||
CouchbaseDestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .couchbasesourceconnectorconfig import (
|
||||
CouchbaseSourceConnectorConfig,
|
||||
CouchbaseSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .couchbasesourceconnectorconfiginput import (
|
||||
CouchbaseSourceConnectorConfigInput,
|
||||
CouchbaseSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .createdestinationconnector import (
|
||||
Config,
|
||||
ConfigTypedDict,
|
||||
CreateDestinationConnector,
|
||||
CreateDestinationConnectorTypedDict,
|
||||
)
|
||||
from .createsourceconnector import (
|
||||
CreateSourceConnector,
|
||||
CreateSourceConnectorConfig,
|
||||
CreateSourceConnectorConfigTypedDict,
|
||||
CreateSourceConnectorTypedDict,
|
||||
)
|
||||
from .createworkflow import CreateWorkflow, CreateWorkflowTypedDict, Schedule
|
||||
from .crontabentry import CronTabEntry, CronTabEntryTypedDict
|
||||
from .dagnodeconnectioncheck import (
|
||||
DagNodeConnectionCheck,
|
||||
DagNodeConnectionCheckTypedDict,
|
||||
)
|
||||
from .databricksvdtdestinationconnectorconfig import (
|
||||
DatabricksVDTDestinationConnectorConfig,
|
||||
DatabricksVDTDestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .databricksvdtdestinationconnectorconfiginput import (
|
||||
DatabricksVDTDestinationConnectorConfigInput,
|
||||
DatabricksVDTDestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .databricksvolumesconnectorconfig import (
|
||||
DatabricksVolumesConnectorConfig,
|
||||
DatabricksVolumesConnectorConfigTypedDict,
|
||||
)
|
||||
from .databricksvolumesconnectorconfiginput import (
|
||||
DatabricksVolumesConnectorConfigInput,
|
||||
DatabricksVolumesConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .deltatableconnectorconfig import (
|
||||
DeltaTableConnectorConfig,
|
||||
DeltaTableConnectorConfigTypedDict,
|
||||
)
|
||||
from .deltatableconnectorconfiginput import (
|
||||
DeltaTableConnectorConfigInput,
|
||||
DeltaTableConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .destinationconnectorinformation import (
|
||||
DestinationConnectorInformation,
|
||||
DestinationConnectorInformationConfig,
|
||||
DestinationConnectorInformationConfigTypedDict,
|
||||
DestinationConnectorInformationTypedDict,
|
||||
)
|
||||
from .destinationconnectortype import DestinationConnectorType
|
||||
from .dropboxsourceconnectorconfig import (
|
||||
DropboxSourceConnectorConfig,
|
||||
DropboxSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .dropboxsourceconnectorconfiginput import (
|
||||
DropboxSourceConnectorConfigInput,
|
||||
DropboxSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .elasticsearchconnectorconfig import (
|
||||
ElasticsearchConnectorConfig,
|
||||
ElasticsearchConnectorConfigTypedDict,
|
||||
)
|
||||
from .elasticsearchconnectorconfiginput import (
|
||||
ElasticsearchConnectorConfigInput,
|
||||
ElasticsearchConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .encryptiontype import EncryptionType
|
||||
from .failedfile import FailedFile, FailedFileTypedDict
|
||||
from .gcsdestinationconnectorconfig import (
|
||||
GCSDestinationConnectorConfig,
|
||||
GCSDestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .gcsdestinationconnectorconfiginput import (
|
||||
GCSDestinationConnectorConfigInput,
|
||||
GCSDestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .gcssourceconnectorconfig import (
|
||||
GCSSourceConnectorConfig,
|
||||
GCSSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .gcssourceconnectorconfiginput import (
|
||||
GCSSourceConnectorConfigInput,
|
||||
GCSSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .googledrivesourceconnectorconfig import (
|
||||
GoogleDriveSourceConnectorConfig,
|
||||
GoogleDriveSourceConnectorConfigTypedDict,
|
||||
ServiceAccountKey,
|
||||
ServiceAccountKeyTypedDict,
|
||||
)
|
||||
from .googledrivesourceconnectorconfiginput import (
|
||||
GoogleDriveSourceConnectorConfigInput,
|
||||
GoogleDriveSourceConnectorConfigInputServiceAccountKey,
|
||||
GoogleDriveSourceConnectorConfigInputServiceAccountKeyTypedDict,
|
||||
GoogleDriveSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .ibmwatsonxs3destinationconnectorconfig import (
|
||||
IBMWatsonxS3DestinationConnectorConfig,
|
||||
IBMWatsonxS3DestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .ibmwatsonxs3destinationconnectorconfiginput import (
|
||||
IBMWatsonxS3DestinationConnectorConfigInput,
|
||||
IBMWatsonxS3DestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .jirasourceconnectorconfig import (
|
||||
JiraSourceConnectorConfig,
|
||||
JiraSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .jirasourceconnectorconfiginput import (
|
||||
JiraSourceConnectorConfigInput,
|
||||
JiraSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .jobdetails import JobDetails, JobDetailsTypedDict
|
||||
from .jobfailedfiles import JobFailedFiles, JobFailedFilesTypedDict
|
||||
from .jobinformation import JobInformation, JobInformationTypedDict
|
||||
from .jobnodedetails import JobNodeDetails, JobNodeDetailsTypedDict
|
||||
from .jobprocessingstatus import JobProcessingStatus
|
||||
from .jobstatus import JobStatus
|
||||
from .kafkaclouddestinationconnectorconfig import (
|
||||
KafkaCloudDestinationConnectorConfig,
|
||||
KafkaCloudDestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .kafkaclouddestinationconnectorconfiginput import (
|
||||
KafkaCloudDestinationConnectorConfigInput,
|
||||
KafkaCloudDestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .kafkacloudsourceconnectorconfig import (
|
||||
KafkaCloudSourceConnectorConfig,
|
||||
KafkaCloudSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .kafkacloudsourceconnectorconfiginput import (
|
||||
KafkaCloudSourceConnectorConfigInput,
|
||||
KafkaCloudSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .milvusdestinationconnectorconfig import (
|
||||
MilvusDestinationConnectorConfig,
|
||||
MilvusDestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .milvusdestinationconnectorconfiginput import (
|
||||
MilvusDestinationConnectorConfigInput,
|
||||
MilvusDestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .mongodbconnectorconfig import (
|
||||
MongoDBConnectorConfig,
|
||||
MongoDBConnectorConfigTypedDict,
|
||||
)
|
||||
from .mongodbconnectorconfiginput import (
|
||||
MongoDBConnectorConfigInput,
|
||||
MongoDBConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .neo4jdestinationconnectorconfig import (
|
||||
Neo4jDestinationConnectorConfig,
|
||||
Neo4jDestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .neo4jdestinationconnectorconfiginput import (
|
||||
Neo4jDestinationConnectorConfigInput,
|
||||
Neo4jDestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .nodefilemetadata import NodeFileMetadata, NodeFileMetadataTypedDict
|
||||
from .onedrivedestinationconnectorconfig import (
|
||||
OneDriveDestinationConnectorConfig,
|
||||
OneDriveDestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .onedrivedestinationconnectorconfiginput import (
|
||||
OneDriveDestinationConnectorConfigInput,
|
||||
OneDriveDestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .onedrivesourceconnectorconfig import (
|
||||
OneDriveSourceConnectorConfig,
|
||||
OneDriveSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .onedrivesourceconnectorconfiginput import (
|
||||
OneDriveSourceConnectorConfigInput,
|
||||
OneDriveSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .opensearchconnectorconfig import (
|
||||
OpenSearchConnectorConfig,
|
||||
OpenSearchConnectorConfigTypedDict,
|
||||
)
|
||||
from .opensearchconnectorconfiginput import (
|
||||
OpenSearchConnectorConfigInput,
|
||||
OpenSearchConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .outlooksourceconnectorconfig import (
|
||||
OutlookSourceConnectorConfig,
|
||||
OutlookSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .outlooksourceconnectorconfiginput import (
|
||||
OutlookSourceConnectorConfigInput,
|
||||
OutlookSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .partition_parameters import (
|
||||
Files,
|
||||
FilesTypedDict,
|
||||
OutputFormat,
|
||||
PartitionParameters,
|
||||
PartitionParametersTypedDict,
|
||||
Strategy,
|
||||
VLMModelProvider,
|
||||
)
|
||||
from .pineconedestinationconnectorconfig import (
|
||||
PineconeDestinationConnectorConfig,
|
||||
PineconeDestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .pineconedestinationconnectorconfiginput import (
|
||||
PineconeDestinationConnectorConfigInput,
|
||||
PineconeDestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .postgresdestinationconnectorconfig import (
|
||||
PostgresDestinationConnectorConfig,
|
||||
PostgresDestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .postgresdestinationconnectorconfiginput import (
|
||||
PostgresDestinationConnectorConfigInput,
|
||||
PostgresDestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .postgressourceconnectorconfig import (
|
||||
PostgresSourceConnectorConfig,
|
||||
PostgresSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .postgressourceconnectorconfiginput import (
|
||||
PostgresSourceConnectorConfigInput,
|
||||
PostgresSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .qdrantclouddestinationconnectorconfig import (
|
||||
QdrantCloudDestinationConnectorConfig,
|
||||
QdrantCloudDestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .qdrantclouddestinationconnectorconfiginput import (
|
||||
QdrantCloudDestinationConnectorConfigInput,
|
||||
QdrantCloudDestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .redisdestinationconnectorconfig import (
|
||||
RedisDestinationConnectorConfig,
|
||||
RedisDestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .redisdestinationconnectorconfiginput import (
|
||||
RedisDestinationConnectorConfigInput,
|
||||
RedisDestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .s3destinationconnectorconfig import (
|
||||
S3DestinationConnectorConfig,
|
||||
S3DestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .s3destinationconnectorconfiginput import (
|
||||
S3DestinationConnectorConfigInput,
|
||||
S3DestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .s3sourceconnectorconfig import (
|
||||
S3SourceConnectorConfig,
|
||||
S3SourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .s3sourceconnectorconfiginput import (
|
||||
S3SourceConnectorConfigInput,
|
||||
S3SourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .salesforcesourceconnectorconfig import (
|
||||
SalesforceSourceConnectorConfig,
|
||||
SalesforceSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .salesforcesourceconnectorconfiginput import (
|
||||
SalesforceSourceConnectorConfigInput,
|
||||
SalesforceSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .secretreference import SecretReference, SecretReferenceTypedDict
|
||||
from .security import Security, SecurityTypedDict
|
||||
from .sharepointsourceconnectorconfig import (
|
||||
SharePointSourceConnectorConfig,
|
||||
SharePointSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .sharepointsourceconnectorconfiginput import (
|
||||
SharePointSourceConnectorConfigInput,
|
||||
SharePointSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .snowflakedestinationconnectorconfig import (
|
||||
SnowflakeDestinationConnectorConfig,
|
||||
SnowflakeDestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .snowflakedestinationconnectorconfiginput import (
|
||||
SnowflakeDestinationConnectorConfigInput,
|
||||
SnowflakeDestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .snowflakesourceconnectorconfig import (
|
||||
SnowflakeSourceConnectorConfig,
|
||||
SnowflakeSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .snowflakesourceconnectorconfiginput import (
|
||||
SnowflakeSourceConnectorConfigInput,
|
||||
SnowflakeSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .sortdirection import SortDirection
|
||||
from .sourceconnectorinformation import (
|
||||
SourceConnectorInformation,
|
||||
SourceConnectorInformationConfig,
|
||||
SourceConnectorInformationConfigTypedDict,
|
||||
SourceConnectorInformationTypedDict,
|
||||
)
|
||||
from .sourceconnectortype import SourceConnectorType
|
||||
from .templatedetail import TemplateDetail, TemplateDetailTypedDict
|
||||
from .templatelistitem import TemplateListItem, TemplateListItemTypedDict
|
||||
from .templatenode import TemplateNode, TemplateNodeTypedDict
|
||||
from .updatedestinationconnector import (
|
||||
UpdateDestinationConnector,
|
||||
UpdateDestinationConnectorConfig,
|
||||
UpdateDestinationConnectorConfigTypedDict,
|
||||
UpdateDestinationConnectorTypedDict,
|
||||
)
|
||||
from .updatesourceconnector import (
|
||||
UpdateSourceConnector,
|
||||
UpdateSourceConnectorConfig,
|
||||
UpdateSourceConnectorConfigTypedDict,
|
||||
UpdateSourceConnectorTypedDict,
|
||||
)
|
||||
from .updateworkflow import (
|
||||
UpdateWorkflow,
|
||||
UpdateWorkflowSchedule,
|
||||
UpdateWorkflowTypedDict,
|
||||
)
|
||||
from .validationerror import (
|
||||
Loc,
|
||||
LocTypedDict,
|
||||
ValidationError,
|
||||
ValidationErrorTypedDict,
|
||||
)
|
||||
from .weaviatedestinationconnectorconfig import (
|
||||
WeaviateDestinationConnectorConfig,
|
||||
WeaviateDestinationConnectorConfigTypedDict,
|
||||
)
|
||||
from .weaviatedestinationconnectorconfiginput import (
|
||||
WeaviateDestinationConnectorConfigInput,
|
||||
WeaviateDestinationConnectorConfigInputTypedDict,
|
||||
)
|
||||
from .workflowinformation import WorkflowInformation, WorkflowInformationTypedDict
|
||||
from .workflowjobtype import WorkflowJobType
|
||||
from .workflownode import WorkflowNode, WorkflowNodeTypedDict
|
||||
from .workflowschedule import WorkflowSchedule, WorkflowScheduleTypedDict
|
||||
from .workflowstate import WorkflowState
|
||||
from .workflowtype import WorkflowType
|
||||
from .zendesksourceconnectorconfig import (
|
||||
ZendeskSourceConnectorConfig,
|
||||
ZendeskSourceConnectorConfigTypedDict,
|
||||
)
|
||||
from .zendesksourceconnectorconfiginput import (
|
||||
ZendeskSourceConnectorConfigInput,
|
||||
ZendeskSourceConnectorConfigInputTypedDict,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"AstraDBConnectorConfig",
|
||||
"AstraDBConnectorConfigInput",
|
||||
"AstraDBConnectorConfigInputTypedDict",
|
||||
"AstraDBConnectorConfigTypedDict",
|
||||
"AzureAISearchConnectorConfig",
|
||||
"AzureAISearchConnectorConfigInput",
|
||||
"AzureAISearchConnectorConfigInputTypedDict",
|
||||
"AzureAISearchConnectorConfigTypedDict",
|
||||
"AzureDestinationConnectorConfig",
|
||||
"AzureDestinationConnectorConfigInput",
|
||||
"AzureDestinationConnectorConfigInputTypedDict",
|
||||
"AzureDestinationConnectorConfigTypedDict",
|
||||
"AzureSourceConnectorConfig",
|
||||
"AzureSourceConnectorConfigInput",
|
||||
"AzureSourceConnectorConfigInputTypedDict",
|
||||
"AzureSourceConnectorConfigTypedDict",
|
||||
"BodyCreateJob",
|
||||
"BodyCreateJobTypedDict",
|
||||
"BodyRunWorkflow",
|
||||
"BodyRunWorkflowInputFiles",
|
||||
"BodyRunWorkflowInputFilesTypedDict",
|
||||
"BodyRunWorkflowTypedDict",
|
||||
"BoxSourceConnectorConfig",
|
||||
"BoxSourceConnectorConfigInput",
|
||||
"BoxSourceConnectorConfigInputTypedDict",
|
||||
"BoxSourceConnectorConfigTypedDict",
|
||||
"Config",
|
||||
"ConfigTypedDict",
|
||||
"ConfluenceSourceConnectorConfig",
|
||||
"ConfluenceSourceConnectorConfigInput",
|
||||
"ConfluenceSourceConnectorConfigInputTypedDict",
|
||||
"ConfluenceSourceConnectorConfigTypedDict",
|
||||
"ConnectionCheckStatus",
|
||||
"CouchbaseDestinationConnectorConfig",
|
||||
"CouchbaseDestinationConnectorConfigInput",
|
||||
"CouchbaseDestinationConnectorConfigInputTypedDict",
|
||||
"CouchbaseDestinationConnectorConfigTypedDict",
|
||||
"CouchbaseSourceConnectorConfig",
|
||||
"CouchbaseSourceConnectorConfigInput",
|
||||
"CouchbaseSourceConnectorConfigInputTypedDict",
|
||||
"CouchbaseSourceConnectorConfigTypedDict",
|
||||
"CreateDestinationConnector",
|
||||
"CreateDestinationConnectorTypedDict",
|
||||
"CreateSourceConnector",
|
||||
"CreateSourceConnectorConfig",
|
||||
"CreateSourceConnectorConfigTypedDict",
|
||||
"CreateSourceConnectorTypedDict",
|
||||
"CreateWorkflow",
|
||||
"CreateWorkflowTypedDict",
|
||||
"CronTabEntry",
|
||||
"CronTabEntryTypedDict",
|
||||
"DagNodeConnectionCheck",
|
||||
"DagNodeConnectionCheckTypedDict",
|
||||
"DatabricksVDTDestinationConnectorConfig",
|
||||
"DatabricksVDTDestinationConnectorConfigInput",
|
||||
"DatabricksVDTDestinationConnectorConfigInputTypedDict",
|
||||
"DatabricksVDTDestinationConnectorConfigTypedDict",
|
||||
"DatabricksVolumesConnectorConfig",
|
||||
"DatabricksVolumesConnectorConfigInput",
|
||||
"DatabricksVolumesConnectorConfigInputTypedDict",
|
||||
"DatabricksVolumesConnectorConfigTypedDict",
|
||||
"DeltaTableConnectorConfig",
|
||||
"DeltaTableConnectorConfigInput",
|
||||
"DeltaTableConnectorConfigInputTypedDict",
|
||||
"DeltaTableConnectorConfigTypedDict",
|
||||
"DestinationConnectorInformation",
|
||||
"DestinationConnectorInformationConfig",
|
||||
"DestinationConnectorInformationConfigTypedDict",
|
||||
"DestinationConnectorInformationTypedDict",
|
||||
"DestinationConnectorType",
|
||||
"DropboxSourceConnectorConfig",
|
||||
"DropboxSourceConnectorConfigInput",
|
||||
"DropboxSourceConnectorConfigInputTypedDict",
|
||||
"DropboxSourceConnectorConfigTypedDict",
|
||||
"ElasticsearchConnectorConfig",
|
||||
"ElasticsearchConnectorConfigInput",
|
||||
"ElasticsearchConnectorConfigInputTypedDict",
|
||||
"ElasticsearchConnectorConfigTypedDict",
|
||||
"EncryptionType",
|
||||
"FailedFile",
|
||||
"FailedFileTypedDict",
|
||||
"Files",
|
||||
"FilesTypedDict",
|
||||
"GCSDestinationConnectorConfig",
|
||||
"GCSDestinationConnectorConfigInput",
|
||||
"GCSDestinationConnectorConfigInputTypedDict",
|
||||
"GCSDestinationConnectorConfigTypedDict",
|
||||
"GCSSourceConnectorConfig",
|
||||
"GCSSourceConnectorConfigInput",
|
||||
"GCSSourceConnectorConfigInputTypedDict",
|
||||
"GCSSourceConnectorConfigTypedDict",
|
||||
"GoogleDriveSourceConnectorConfig",
|
||||
"GoogleDriveSourceConnectorConfigInput",
|
||||
"GoogleDriveSourceConnectorConfigInputServiceAccountKey",
|
||||
"GoogleDriveSourceConnectorConfigInputServiceAccountKeyTypedDict",
|
||||
"GoogleDriveSourceConnectorConfigInputTypedDict",
|
||||
"GoogleDriveSourceConnectorConfigTypedDict",
|
||||
"IBMWatsonxS3DestinationConnectorConfig",
|
||||
"IBMWatsonxS3DestinationConnectorConfigInput",
|
||||
"IBMWatsonxS3DestinationConnectorConfigInputTypedDict",
|
||||
"IBMWatsonxS3DestinationConnectorConfigTypedDict",
|
||||
"InputFiles",
|
||||
"InputFilesTypedDict",
|
||||
"JiraSourceConnectorConfig",
|
||||
"JiraSourceConnectorConfigInput",
|
||||
"JiraSourceConnectorConfigInputTypedDict",
|
||||
"JiraSourceConnectorConfigTypedDict",
|
||||
"JobDetails",
|
||||
"JobDetailsTypedDict",
|
||||
"JobFailedFiles",
|
||||
"JobFailedFilesTypedDict",
|
||||
"JobInformation",
|
||||
"JobInformationTypedDict",
|
||||
"JobNodeDetails",
|
||||
"JobNodeDetailsTypedDict",
|
||||
"JobProcessingStatus",
|
||||
"JobStatus",
|
||||
"KafkaCloudDestinationConnectorConfig",
|
||||
"KafkaCloudDestinationConnectorConfigInput",
|
||||
"KafkaCloudDestinationConnectorConfigInputTypedDict",
|
||||
"KafkaCloudDestinationConnectorConfigTypedDict",
|
||||
"KafkaCloudSourceConnectorConfig",
|
||||
"KafkaCloudSourceConnectorConfigInput",
|
||||
"KafkaCloudSourceConnectorConfigInputTypedDict",
|
||||
"KafkaCloudSourceConnectorConfigTypedDict",
|
||||
"Loc",
|
||||
"LocTypedDict",
|
||||
"MilvusDestinationConnectorConfig",
|
||||
"MilvusDestinationConnectorConfigInput",
|
||||
"MilvusDestinationConnectorConfigInputTypedDict",
|
||||
"MilvusDestinationConnectorConfigTypedDict",
|
||||
"MongoDBConnectorConfig",
|
||||
"MongoDBConnectorConfigInput",
|
||||
"MongoDBConnectorConfigInputTypedDict",
|
||||
"MongoDBConnectorConfigTypedDict",
|
||||
"Neo4jDestinationConnectorConfig",
|
||||
"Neo4jDestinationConnectorConfigInput",
|
||||
"Neo4jDestinationConnectorConfigInputTypedDict",
|
||||
"Neo4jDestinationConnectorConfigTypedDict",
|
||||
"NodeFileMetadata",
|
||||
"NodeFileMetadataTypedDict",
|
||||
"OneDriveDestinationConnectorConfig",
|
||||
"OneDriveDestinationConnectorConfigInput",
|
||||
"OneDriveDestinationConnectorConfigInputTypedDict",
|
||||
"OneDriveDestinationConnectorConfigTypedDict",
|
||||
"OneDriveSourceConnectorConfig",
|
||||
"OneDriveSourceConnectorConfigInput",
|
||||
"OneDriveSourceConnectorConfigInputTypedDict",
|
||||
"OneDriveSourceConnectorConfigTypedDict",
|
||||
"OpenSearchConnectorConfig",
|
||||
"OpenSearchConnectorConfigInput",
|
||||
"OpenSearchConnectorConfigInputTypedDict",
|
||||
"OpenSearchConnectorConfigTypedDict",
|
||||
"OutlookSourceConnectorConfig",
|
||||
"OutlookSourceConnectorConfigInput",
|
||||
"OutlookSourceConnectorConfigInputTypedDict",
|
||||
"OutlookSourceConnectorConfigTypedDict",
|
||||
"OutputFormat",
|
||||
"PartitionParameters",
|
||||
"PartitionParametersTypedDict",
|
||||
"PineconeDestinationConnectorConfig",
|
||||
"PineconeDestinationConnectorConfigInput",
|
||||
"PineconeDestinationConnectorConfigInputTypedDict",
|
||||
"PineconeDestinationConnectorConfigTypedDict",
|
||||
"PostgresDestinationConnectorConfig",
|
||||
"PostgresDestinationConnectorConfigInput",
|
||||
"PostgresDestinationConnectorConfigInputTypedDict",
|
||||
"PostgresDestinationConnectorConfigTypedDict",
|
||||
"PostgresSourceConnectorConfig",
|
||||
"PostgresSourceConnectorConfigInput",
|
||||
"PostgresSourceConnectorConfigInputTypedDict",
|
||||
"PostgresSourceConnectorConfigTypedDict",
|
||||
"QdrantCloudDestinationConnectorConfig",
|
||||
"QdrantCloudDestinationConnectorConfigInput",
|
||||
"QdrantCloudDestinationConnectorConfigInputTypedDict",
|
||||
"QdrantCloudDestinationConnectorConfigTypedDict",
|
||||
"RedisDestinationConnectorConfig",
|
||||
"RedisDestinationConnectorConfigInput",
|
||||
"RedisDestinationConnectorConfigInputTypedDict",
|
||||
"RedisDestinationConnectorConfigTypedDict",
|
||||
"S3DestinationConnectorConfig",
|
||||
"S3DestinationConnectorConfigInput",
|
||||
"S3DestinationConnectorConfigInputTypedDict",
|
||||
"S3DestinationConnectorConfigTypedDict",
|
||||
"S3SourceConnectorConfig",
|
||||
"S3SourceConnectorConfigInput",
|
||||
"S3SourceConnectorConfigInputTypedDict",
|
||||
"S3SourceConnectorConfigTypedDict",
|
||||
"SalesforceSourceConnectorConfig",
|
||||
"SalesforceSourceConnectorConfigInput",
|
||||
"SalesforceSourceConnectorConfigInputTypedDict",
|
||||
"SalesforceSourceConnectorConfigTypedDict",
|
||||
"Schedule",
|
||||
"SecretReference",
|
||||
"SecretReferenceTypedDict",
|
||||
"Security",
|
||||
"SecurityTypedDict",
|
||||
"ServiceAccountKey",
|
||||
"ServiceAccountKeyTypedDict",
|
||||
"SharePointSourceConnectorConfig",
|
||||
"SharePointSourceConnectorConfigInput",
|
||||
"SharePointSourceConnectorConfigInputTypedDict",
|
||||
"SharePointSourceConnectorConfigTypedDict",
|
||||
"SnowflakeDestinationConnectorConfig",
|
||||
"SnowflakeDestinationConnectorConfigInput",
|
||||
"SnowflakeDestinationConnectorConfigInputTypedDict",
|
||||
"SnowflakeDestinationConnectorConfigTypedDict",
|
||||
"SnowflakeSourceConnectorConfig",
|
||||
"SnowflakeSourceConnectorConfigInput",
|
||||
"SnowflakeSourceConnectorConfigInputTypedDict",
|
||||
"SnowflakeSourceConnectorConfigTypedDict",
|
||||
"SortDirection",
|
||||
"SourceConnectorInformation",
|
||||
"SourceConnectorInformationConfig",
|
||||
"SourceConnectorInformationConfigTypedDict",
|
||||
"SourceConnectorInformationTypedDict",
|
||||
"SourceConnectorType",
|
||||
"Strategy",
|
||||
"TemplateDetail",
|
||||
"TemplateDetailTypedDict",
|
||||
"TemplateListItem",
|
||||
"TemplateListItemTypedDict",
|
||||
"TemplateNode",
|
||||
"TemplateNodeTypedDict",
|
||||
"UpdateDestinationConnector",
|
||||
"UpdateDestinationConnectorConfig",
|
||||
"UpdateDestinationConnectorConfigTypedDict",
|
||||
"UpdateDestinationConnectorTypedDict",
|
||||
"UpdateSourceConnector",
|
||||
"UpdateSourceConnectorConfig",
|
||||
"UpdateSourceConnectorConfigTypedDict",
|
||||
"UpdateSourceConnectorTypedDict",
|
||||
"UpdateWorkflow",
|
||||
"UpdateWorkflowSchedule",
|
||||
"UpdateWorkflowTypedDict",
|
||||
"VLMModelProvider",
|
||||
"ValidationError",
|
||||
"ValidationErrorTypedDict",
|
||||
"WeaviateDestinationConnectorConfig",
|
||||
"WeaviateDestinationConnectorConfigInput",
|
||||
"WeaviateDestinationConnectorConfigInputTypedDict",
|
||||
"WeaviateDestinationConnectorConfigTypedDict",
|
||||
"WorkflowInformation",
|
||||
"WorkflowInformationTypedDict",
|
||||
"WorkflowJobType",
|
||||
"WorkflowNode",
|
||||
"WorkflowNodeTypedDict",
|
||||
"WorkflowSchedule",
|
||||
"WorkflowScheduleTypedDict",
|
||||
"WorkflowState",
|
||||
"WorkflowType",
|
||||
"ZendeskSourceConnectorConfig",
|
||||
"ZendeskSourceConnectorConfigInput",
|
||||
"ZendeskSourceConnectorConfigInputTypedDict",
|
||||
"ZendeskSourceConnectorConfigTypedDict",
|
||||
]
|
||||
|
||||
_dynamic_imports: dict[str, str] = {
|
||||
"AstraDBConnectorConfig": ".astradbconnectorconfig",
|
||||
"AstraDBConnectorConfigTypedDict": ".astradbconnectorconfig",
|
||||
"AstraDBConnectorConfigInput": ".astradbconnectorconfiginput",
|
||||
"AstraDBConnectorConfigInputTypedDict": ".astradbconnectorconfiginput",
|
||||
"AzureAISearchConnectorConfig": ".azureaisearchconnectorconfig",
|
||||
"AzureAISearchConnectorConfigTypedDict": ".azureaisearchconnectorconfig",
|
||||
"AzureAISearchConnectorConfigInput": ".azureaisearchconnectorconfiginput",
|
||||
"AzureAISearchConnectorConfigInputTypedDict": ".azureaisearchconnectorconfiginput",
|
||||
"AzureDestinationConnectorConfig": ".azuredestinationconnectorconfig",
|
||||
"AzureDestinationConnectorConfigTypedDict": ".azuredestinationconnectorconfig",
|
||||
"AzureDestinationConnectorConfigInput": ".azuredestinationconnectorconfiginput",
|
||||
"AzureDestinationConnectorConfigInputTypedDict": ".azuredestinationconnectorconfiginput",
|
||||
"AzureSourceConnectorConfig": ".azuresourceconnectorconfig",
|
||||
"AzureSourceConnectorConfigTypedDict": ".azuresourceconnectorconfig",
|
||||
"AzureSourceConnectorConfigInput": ".azuresourceconnectorconfiginput",
|
||||
"AzureSourceConnectorConfigInputTypedDict": ".azuresourceconnectorconfiginput",
|
||||
"BodyCreateJob": ".body_create_job",
|
||||
"BodyCreateJobTypedDict": ".body_create_job",
|
||||
"InputFiles": ".body_create_job",
|
||||
"InputFilesTypedDict": ".body_create_job",
|
||||
"BodyRunWorkflow": ".body_run_workflow",
|
||||
"BodyRunWorkflowInputFiles": ".body_run_workflow",
|
||||
"BodyRunWorkflowInputFilesTypedDict": ".body_run_workflow",
|
||||
"BodyRunWorkflowTypedDict": ".body_run_workflow",
|
||||
"BoxSourceConnectorConfig": ".boxsourceconnectorconfig",
|
||||
"BoxSourceConnectorConfigTypedDict": ".boxsourceconnectorconfig",
|
||||
"BoxSourceConnectorConfigInput": ".boxsourceconnectorconfiginput",
|
||||
"BoxSourceConnectorConfigInputTypedDict": ".boxsourceconnectorconfiginput",
|
||||
"ConfluenceSourceConnectorConfig": ".confluencesourceconnectorconfig",
|
||||
"ConfluenceSourceConnectorConfigTypedDict": ".confluencesourceconnectorconfig",
|
||||
"ConfluenceSourceConnectorConfigInput": ".confluencesourceconnectorconfiginput",
|
||||
"ConfluenceSourceConnectorConfigInputTypedDict": ".confluencesourceconnectorconfiginput",
|
||||
"ConnectionCheckStatus": ".connectioncheckstatus",
|
||||
"CouchbaseDestinationConnectorConfig": ".couchbasedestinationconnectorconfig",
|
||||
"CouchbaseDestinationConnectorConfigTypedDict": ".couchbasedestinationconnectorconfig",
|
||||
"CouchbaseDestinationConnectorConfigInput": ".couchbasedestinationconnectorconfiginput",
|
||||
"CouchbaseDestinationConnectorConfigInputTypedDict": ".couchbasedestinationconnectorconfiginput",
|
||||
"CouchbaseSourceConnectorConfig": ".couchbasesourceconnectorconfig",
|
||||
"CouchbaseSourceConnectorConfigTypedDict": ".couchbasesourceconnectorconfig",
|
||||
"CouchbaseSourceConnectorConfigInput": ".couchbasesourceconnectorconfiginput",
|
||||
"CouchbaseSourceConnectorConfigInputTypedDict": ".couchbasesourceconnectorconfiginput",
|
||||
"Config": ".createdestinationconnector",
|
||||
"ConfigTypedDict": ".createdestinationconnector",
|
||||
"CreateDestinationConnector": ".createdestinationconnector",
|
||||
"CreateDestinationConnectorTypedDict": ".createdestinationconnector",
|
||||
"CreateSourceConnector": ".createsourceconnector",
|
||||
"CreateSourceConnectorConfig": ".createsourceconnector",
|
||||
"CreateSourceConnectorConfigTypedDict": ".createsourceconnector",
|
||||
"CreateSourceConnectorTypedDict": ".createsourceconnector",
|
||||
"CreateWorkflow": ".createworkflow",
|
||||
"CreateWorkflowTypedDict": ".createworkflow",
|
||||
"Schedule": ".createworkflow",
|
||||
"CronTabEntry": ".crontabentry",
|
||||
"CronTabEntryTypedDict": ".crontabentry",
|
||||
"DagNodeConnectionCheck": ".dagnodeconnectioncheck",
|
||||
"DagNodeConnectionCheckTypedDict": ".dagnodeconnectioncheck",
|
||||
"DatabricksVDTDestinationConnectorConfig": ".databricksvdtdestinationconnectorconfig",
|
||||
"DatabricksVDTDestinationConnectorConfigTypedDict": ".databricksvdtdestinationconnectorconfig",
|
||||
"DatabricksVDTDestinationConnectorConfigInput": ".databricksvdtdestinationconnectorconfiginput",
|
||||
"DatabricksVDTDestinationConnectorConfigInputTypedDict": ".databricksvdtdestinationconnectorconfiginput",
|
||||
"DatabricksVolumesConnectorConfig": ".databricksvolumesconnectorconfig",
|
||||
"DatabricksVolumesConnectorConfigTypedDict": ".databricksvolumesconnectorconfig",
|
||||
"DatabricksVolumesConnectorConfigInput": ".databricksvolumesconnectorconfiginput",
|
||||
"DatabricksVolumesConnectorConfigInputTypedDict": ".databricksvolumesconnectorconfiginput",
|
||||
"DeltaTableConnectorConfig": ".deltatableconnectorconfig",
|
||||
"DeltaTableConnectorConfigTypedDict": ".deltatableconnectorconfig",
|
||||
"DeltaTableConnectorConfigInput": ".deltatableconnectorconfiginput",
|
||||
"DeltaTableConnectorConfigInputTypedDict": ".deltatableconnectorconfiginput",
|
||||
"DestinationConnectorInformation": ".destinationconnectorinformation",
|
||||
"DestinationConnectorInformationConfig": ".destinationconnectorinformation",
|
||||
"DestinationConnectorInformationConfigTypedDict": ".destinationconnectorinformation",
|
||||
"DestinationConnectorInformationTypedDict": ".destinationconnectorinformation",
|
||||
"DestinationConnectorType": ".destinationconnectortype",
|
||||
"DropboxSourceConnectorConfig": ".dropboxsourceconnectorconfig",
|
||||
"DropboxSourceConnectorConfigTypedDict": ".dropboxsourceconnectorconfig",
|
||||
"DropboxSourceConnectorConfigInput": ".dropboxsourceconnectorconfiginput",
|
||||
"DropboxSourceConnectorConfigInputTypedDict": ".dropboxsourceconnectorconfiginput",
|
||||
"ElasticsearchConnectorConfig": ".elasticsearchconnectorconfig",
|
||||
"ElasticsearchConnectorConfigTypedDict": ".elasticsearchconnectorconfig",
|
||||
"ElasticsearchConnectorConfigInput": ".elasticsearchconnectorconfiginput",
|
||||
"ElasticsearchConnectorConfigInputTypedDict": ".elasticsearchconnectorconfiginput",
|
||||
"EncryptionType": ".encryptiontype",
|
||||
"FailedFile": ".failedfile",
|
||||
"FailedFileTypedDict": ".failedfile",
|
||||
"GCSDestinationConnectorConfig": ".gcsdestinationconnectorconfig",
|
||||
"GCSDestinationConnectorConfigTypedDict": ".gcsdestinationconnectorconfig",
|
||||
"GCSDestinationConnectorConfigInput": ".gcsdestinationconnectorconfiginput",
|
||||
"GCSDestinationConnectorConfigInputTypedDict": ".gcsdestinationconnectorconfiginput",
|
||||
"GCSSourceConnectorConfig": ".gcssourceconnectorconfig",
|
||||
"GCSSourceConnectorConfigTypedDict": ".gcssourceconnectorconfig",
|
||||
"GCSSourceConnectorConfigInput": ".gcssourceconnectorconfiginput",
|
||||
"GCSSourceConnectorConfigInputTypedDict": ".gcssourceconnectorconfiginput",
|
||||
"GoogleDriveSourceConnectorConfig": ".googledrivesourceconnectorconfig",
|
||||
"GoogleDriveSourceConnectorConfigTypedDict": ".googledrivesourceconnectorconfig",
|
||||
"ServiceAccountKey": ".googledrivesourceconnectorconfig",
|
||||
"ServiceAccountKeyTypedDict": ".googledrivesourceconnectorconfig",
|
||||
"GoogleDriveSourceConnectorConfigInput": ".googledrivesourceconnectorconfiginput",
|
||||
"GoogleDriveSourceConnectorConfigInputServiceAccountKey": ".googledrivesourceconnectorconfiginput",
|
||||
"GoogleDriveSourceConnectorConfigInputServiceAccountKeyTypedDict": ".googledrivesourceconnectorconfiginput",
|
||||
"GoogleDriveSourceConnectorConfigInputTypedDict": ".googledrivesourceconnectorconfiginput",
|
||||
"IBMWatsonxS3DestinationConnectorConfig": ".ibmwatsonxs3destinationconnectorconfig",
|
||||
"IBMWatsonxS3DestinationConnectorConfigTypedDict": ".ibmwatsonxs3destinationconnectorconfig",
|
||||
"IBMWatsonxS3DestinationConnectorConfigInput": ".ibmwatsonxs3destinationconnectorconfiginput",
|
||||
"IBMWatsonxS3DestinationConnectorConfigInputTypedDict": ".ibmwatsonxs3destinationconnectorconfiginput",
|
||||
"JiraSourceConnectorConfig": ".jirasourceconnectorconfig",
|
||||
"JiraSourceConnectorConfigTypedDict": ".jirasourceconnectorconfig",
|
||||
"JiraSourceConnectorConfigInput": ".jirasourceconnectorconfiginput",
|
||||
"JiraSourceConnectorConfigInputTypedDict": ".jirasourceconnectorconfiginput",
|
||||
"JobDetails": ".jobdetails",
|
||||
"JobDetailsTypedDict": ".jobdetails",
|
||||
"JobFailedFiles": ".jobfailedfiles",
|
||||
"JobFailedFilesTypedDict": ".jobfailedfiles",
|
||||
"JobInformation": ".jobinformation",
|
||||
"JobInformationTypedDict": ".jobinformation",
|
||||
"JobNodeDetails": ".jobnodedetails",
|
||||
"JobNodeDetailsTypedDict": ".jobnodedetails",
|
||||
"JobProcessingStatus": ".jobprocessingstatus",
|
||||
"JobStatus": ".jobstatus",
|
||||
"KafkaCloudDestinationConnectorConfig": ".kafkaclouddestinationconnectorconfig",
|
||||
"KafkaCloudDestinationConnectorConfigTypedDict": ".kafkaclouddestinationconnectorconfig",
|
||||
"KafkaCloudDestinationConnectorConfigInput": ".kafkaclouddestinationconnectorconfiginput",
|
||||
"KafkaCloudDestinationConnectorConfigInputTypedDict": ".kafkaclouddestinationconnectorconfiginput",
|
||||
"KafkaCloudSourceConnectorConfig": ".kafkacloudsourceconnectorconfig",
|
||||
"KafkaCloudSourceConnectorConfigTypedDict": ".kafkacloudsourceconnectorconfig",
|
||||
"KafkaCloudSourceConnectorConfigInput": ".kafkacloudsourceconnectorconfiginput",
|
||||
"KafkaCloudSourceConnectorConfigInputTypedDict": ".kafkacloudsourceconnectorconfiginput",
|
||||
"MilvusDestinationConnectorConfig": ".milvusdestinationconnectorconfig",
|
||||
"MilvusDestinationConnectorConfigTypedDict": ".milvusdestinationconnectorconfig",
|
||||
"MilvusDestinationConnectorConfigInput": ".milvusdestinationconnectorconfiginput",
|
||||
"MilvusDestinationConnectorConfigInputTypedDict": ".milvusdestinationconnectorconfiginput",
|
||||
"MongoDBConnectorConfig": ".mongodbconnectorconfig",
|
||||
"MongoDBConnectorConfigTypedDict": ".mongodbconnectorconfig",
|
||||
"MongoDBConnectorConfigInput": ".mongodbconnectorconfiginput",
|
||||
"MongoDBConnectorConfigInputTypedDict": ".mongodbconnectorconfiginput",
|
||||
"Neo4jDestinationConnectorConfig": ".neo4jdestinationconnectorconfig",
|
||||
"Neo4jDestinationConnectorConfigTypedDict": ".neo4jdestinationconnectorconfig",
|
||||
"Neo4jDestinationConnectorConfigInput": ".neo4jdestinationconnectorconfiginput",
|
||||
"Neo4jDestinationConnectorConfigInputTypedDict": ".neo4jdestinationconnectorconfiginput",
|
||||
"NodeFileMetadata": ".nodefilemetadata",
|
||||
"NodeFileMetadataTypedDict": ".nodefilemetadata",
|
||||
"OneDriveDestinationConnectorConfig": ".onedrivedestinationconnectorconfig",
|
||||
"OneDriveDestinationConnectorConfigTypedDict": ".onedrivedestinationconnectorconfig",
|
||||
"OneDriveDestinationConnectorConfigInput": ".onedrivedestinationconnectorconfiginput",
|
||||
"OneDriveDestinationConnectorConfigInputTypedDict": ".onedrivedestinationconnectorconfiginput",
|
||||
"OneDriveSourceConnectorConfig": ".onedrivesourceconnectorconfig",
|
||||
"OneDriveSourceConnectorConfigTypedDict": ".onedrivesourceconnectorconfig",
|
||||
"OneDriveSourceConnectorConfigInput": ".onedrivesourceconnectorconfiginput",
|
||||
"OneDriveSourceConnectorConfigInputTypedDict": ".onedrivesourceconnectorconfiginput",
|
||||
"OpenSearchConnectorConfig": ".opensearchconnectorconfig",
|
||||
"OpenSearchConnectorConfigTypedDict": ".opensearchconnectorconfig",
|
||||
"OpenSearchConnectorConfigInput": ".opensearchconnectorconfiginput",
|
||||
"OpenSearchConnectorConfigInputTypedDict": ".opensearchconnectorconfiginput",
|
||||
"OutlookSourceConnectorConfig": ".outlooksourceconnectorconfig",
|
||||
"OutlookSourceConnectorConfigTypedDict": ".outlooksourceconnectorconfig",
|
||||
"OutlookSourceConnectorConfigInput": ".outlooksourceconnectorconfiginput",
|
||||
"OutlookSourceConnectorConfigInputTypedDict": ".outlooksourceconnectorconfiginput",
|
||||
"Files": ".partition_parameters",
|
||||
"FilesTypedDict": ".partition_parameters",
|
||||
"OutputFormat": ".partition_parameters",
|
||||
"PartitionParameters": ".partition_parameters",
|
||||
"PartitionParametersTypedDict": ".partition_parameters",
|
||||
"Strategy": ".partition_parameters",
|
||||
"VLMModelProvider": ".partition_parameters",
|
||||
"PineconeDestinationConnectorConfig": ".pineconedestinationconnectorconfig",
|
||||
"PineconeDestinationConnectorConfigTypedDict": ".pineconedestinationconnectorconfig",
|
||||
"PineconeDestinationConnectorConfigInput": ".pineconedestinationconnectorconfiginput",
|
||||
"PineconeDestinationConnectorConfigInputTypedDict": ".pineconedestinationconnectorconfiginput",
|
||||
"PostgresDestinationConnectorConfig": ".postgresdestinationconnectorconfig",
|
||||
"PostgresDestinationConnectorConfigTypedDict": ".postgresdestinationconnectorconfig",
|
||||
"PostgresDestinationConnectorConfigInput": ".postgresdestinationconnectorconfiginput",
|
||||
"PostgresDestinationConnectorConfigInputTypedDict": ".postgresdestinationconnectorconfiginput",
|
||||
"PostgresSourceConnectorConfig": ".postgressourceconnectorconfig",
|
||||
"PostgresSourceConnectorConfigTypedDict": ".postgressourceconnectorconfig",
|
||||
"PostgresSourceConnectorConfigInput": ".postgressourceconnectorconfiginput",
|
||||
"PostgresSourceConnectorConfigInputTypedDict": ".postgressourceconnectorconfiginput",
|
||||
"QdrantCloudDestinationConnectorConfig": ".qdrantclouddestinationconnectorconfig",
|
||||
"QdrantCloudDestinationConnectorConfigTypedDict": ".qdrantclouddestinationconnectorconfig",
|
||||
"QdrantCloudDestinationConnectorConfigInput": ".qdrantclouddestinationconnectorconfiginput",
|
||||
"QdrantCloudDestinationConnectorConfigInputTypedDict": ".qdrantclouddestinationconnectorconfiginput",
|
||||
"RedisDestinationConnectorConfig": ".redisdestinationconnectorconfig",
|
||||
"RedisDestinationConnectorConfigTypedDict": ".redisdestinationconnectorconfig",
|
||||
"RedisDestinationConnectorConfigInput": ".redisdestinationconnectorconfiginput",
|
||||
"RedisDestinationConnectorConfigInputTypedDict": ".redisdestinationconnectorconfiginput",
|
||||
"S3DestinationConnectorConfig": ".s3destinationconnectorconfig",
|
||||
"S3DestinationConnectorConfigTypedDict": ".s3destinationconnectorconfig",
|
||||
"S3DestinationConnectorConfigInput": ".s3destinationconnectorconfiginput",
|
||||
"S3DestinationConnectorConfigInputTypedDict": ".s3destinationconnectorconfiginput",
|
||||
"S3SourceConnectorConfig": ".s3sourceconnectorconfig",
|
||||
"S3SourceConnectorConfigTypedDict": ".s3sourceconnectorconfig",
|
||||
"S3SourceConnectorConfigInput": ".s3sourceconnectorconfiginput",
|
||||
"S3SourceConnectorConfigInputTypedDict": ".s3sourceconnectorconfiginput",
|
||||
"SalesforceSourceConnectorConfig": ".salesforcesourceconnectorconfig",
|
||||
"SalesforceSourceConnectorConfigTypedDict": ".salesforcesourceconnectorconfig",
|
||||
"SalesforceSourceConnectorConfigInput": ".salesforcesourceconnectorconfiginput",
|
||||
"SalesforceSourceConnectorConfigInputTypedDict": ".salesforcesourceconnectorconfiginput",
|
||||
"SecretReference": ".secretreference",
|
||||
"SecretReferenceTypedDict": ".secretreference",
|
||||
"Security": ".security",
|
||||
"SecurityTypedDict": ".security",
|
||||
"SharePointSourceConnectorConfig": ".sharepointsourceconnectorconfig",
|
||||
"SharePointSourceConnectorConfigTypedDict": ".sharepointsourceconnectorconfig",
|
||||
"SharePointSourceConnectorConfigInput": ".sharepointsourceconnectorconfiginput",
|
||||
"SharePointSourceConnectorConfigInputTypedDict": ".sharepointsourceconnectorconfiginput",
|
||||
"SnowflakeDestinationConnectorConfig": ".snowflakedestinationconnectorconfig",
|
||||
"SnowflakeDestinationConnectorConfigTypedDict": ".snowflakedestinationconnectorconfig",
|
||||
"SnowflakeDestinationConnectorConfigInput": ".snowflakedestinationconnectorconfiginput",
|
||||
"SnowflakeDestinationConnectorConfigInputTypedDict": ".snowflakedestinationconnectorconfiginput",
|
||||
"SnowflakeSourceConnectorConfig": ".snowflakesourceconnectorconfig",
|
||||
"SnowflakeSourceConnectorConfigTypedDict": ".snowflakesourceconnectorconfig",
|
||||
"SnowflakeSourceConnectorConfigInput": ".snowflakesourceconnectorconfiginput",
|
||||
"SnowflakeSourceConnectorConfigInputTypedDict": ".snowflakesourceconnectorconfiginput",
|
||||
"SortDirection": ".sortdirection",
|
||||
"SourceConnectorInformation": ".sourceconnectorinformation",
|
||||
"SourceConnectorInformationConfig": ".sourceconnectorinformation",
|
||||
"SourceConnectorInformationConfigTypedDict": ".sourceconnectorinformation",
|
||||
"SourceConnectorInformationTypedDict": ".sourceconnectorinformation",
|
||||
"SourceConnectorType": ".sourceconnectortype",
|
||||
"TemplateDetail": ".templatedetail",
|
||||
"TemplateDetailTypedDict": ".templatedetail",
|
||||
"TemplateListItem": ".templatelistitem",
|
||||
"TemplateListItemTypedDict": ".templatelistitem",
|
||||
"TemplateNode": ".templatenode",
|
||||
"TemplateNodeTypedDict": ".templatenode",
|
||||
"UpdateDestinationConnector": ".updatedestinationconnector",
|
||||
"UpdateDestinationConnectorConfig": ".updatedestinationconnector",
|
||||
"UpdateDestinationConnectorConfigTypedDict": ".updatedestinationconnector",
|
||||
"UpdateDestinationConnectorTypedDict": ".updatedestinationconnector",
|
||||
"UpdateSourceConnector": ".updatesourceconnector",
|
||||
"UpdateSourceConnectorConfig": ".updatesourceconnector",
|
||||
"UpdateSourceConnectorConfigTypedDict": ".updatesourceconnector",
|
||||
"UpdateSourceConnectorTypedDict": ".updatesourceconnector",
|
||||
"UpdateWorkflow": ".updateworkflow",
|
||||
"UpdateWorkflowSchedule": ".updateworkflow",
|
||||
"UpdateWorkflowTypedDict": ".updateworkflow",
|
||||
"Loc": ".validationerror",
|
||||
"LocTypedDict": ".validationerror",
|
||||
"ValidationError": ".validationerror",
|
||||
"ValidationErrorTypedDict": ".validationerror",
|
||||
"WeaviateDestinationConnectorConfig": ".weaviatedestinationconnectorconfig",
|
||||
"WeaviateDestinationConnectorConfigTypedDict": ".weaviatedestinationconnectorconfig",
|
||||
"WeaviateDestinationConnectorConfigInput": ".weaviatedestinationconnectorconfiginput",
|
||||
"WeaviateDestinationConnectorConfigInputTypedDict": ".weaviatedestinationconnectorconfiginput",
|
||||
"WorkflowInformation": ".workflowinformation",
|
||||
"WorkflowInformationTypedDict": ".workflowinformation",
|
||||
"WorkflowJobType": ".workflowjobtype",
|
||||
"WorkflowNode": ".workflownode",
|
||||
"WorkflowNodeTypedDict": ".workflownode",
|
||||
"WorkflowSchedule": ".workflowschedule",
|
||||
"WorkflowScheduleTypedDict": ".workflowschedule",
|
||||
"WorkflowState": ".workflowstate",
|
||||
"WorkflowType": ".workflowtype",
|
||||
"ZendeskSourceConnectorConfig": ".zendesksourceconnectorconfig",
|
||||
"ZendeskSourceConnectorConfigTypedDict": ".zendesksourceconnectorconfig",
|
||||
"ZendeskSourceConnectorConfigInput": ".zendesksourceconnectorconfiginput",
|
||||
"ZendeskSourceConnectorConfigInputTypedDict": ".zendesksourceconnectorconfiginput",
|
||||
}
|
||||
|
||||
|
||||
def __getattr__(attr_name: str) -> object:
|
||||
module_name = _dynamic_imports.get(attr_name)
|
||||
if module_name is None:
|
||||
raise AttributeError(
|
||||
f"No {attr_name} found in _dynamic_imports for module name -> {__name__} "
|
||||
)
|
||||
|
||||
try:
|
||||
module = import_module(module_name, __package__)
|
||||
result = getattr(module, attr_name)
|
||||
return result
|
||||
except ImportError as e:
|
||||
raise ImportError(
|
||||
f"Failed to import {attr_name} from {module_name}: {e}"
|
||||
) from e
|
||||
except AttributeError as e:
|
||||
raise AttributeError(
|
||||
f"Failed to get {attr_name} from {module_name}: {e}"
|
||||
) from e
|
||||
|
||||
|
||||
def __dir__():
|
||||
lazy_attrs = builtins.list(_dynamic_imports.keys())
|
||||
return builtins.sorted(lazy_attrs)
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user