Skip to content

chore: 🐝 Update SDK - Generate 0.31.2 #246

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 58 additions & 23 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.513.0
speakeasyVersion: 1.521.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:284396f88ac6b8f00fc6b64e117310094af9403c775d96d0273f2dc91e20a99d
sourceBlobDigest: sha256:eeff76b4ac663079622a4957d5023f06ca2a8ad423075a125478ad3b57aeb4ef
sourceRevisionDigest: sha256:4f35a2c57bcd3c591ef9d161f5e34d317ff8a06e9e9591f2e2004f13e5c63cbb
sourceBlobDigest: sha256:7f47ca310de4d401a93083208819c79bfba2a77519e7bfcd34d825bbcbb8da60
tags:
- latest
- speakeasy-sdk-regen-1741292249
- 1.0.78
- speakeasy-sdk-regen-1741651804
- 1.0.81
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:284396f88ac6b8f00fc6b64e117310094af9403c775d96d0273f2dc91e20a99d
sourceBlobDigest: sha256:eeff76b4ac663079622a4957d5023f06ca2a8ad423075a125478ad3b57aeb4ef
sourceRevisionDigest: sha256:4f35a2c57bcd3c591ef9d161f5e34d317ff8a06e9e9591f2e2004f13e5c63cbb
sourceBlobDigest: sha256:7f47ca310de4d401a93083208819c79bfba2a77519e7bfcd34d825bbcbb8da60
codeSamplesNamespace: my-source-code-samples
codeSamplesRevisionDigest: sha256:19241c5759df66896762918163ed4cbb6be089a165082e64717f088fb50320c1
codeSamplesRevisionDigest: sha256:e8f8184199d659db4bcbdd1e0c8e6ab5133ad869812c76a407038b79e07d7438
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ with UnstructuredClient() as uc_client:
1,
10,
],
"vlm_model": shared.PartitionParametersStrategy.GPT_4O,
"vlm_model_provider": shared.PartitionParametersSchemasStrategy.OPENAI,
"vlm_model": shared.VLMModel.GPT_4O,
"vlm_model_provider": shared.VLMModelProvider.OPENAI,
},
})

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -855,4 +855,14 @@ Based on:
### Generated
- [python v0.31.1] .
### Releases
- [PyPI v0.31.1] https://pypi.org/project/unstructured-client/0.31.1 - .
- [PyPI v0.31.1] https://pypi.org/project/unstructured-client/0.31.1 - .

## 2025-03-20 00:09:37
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.521.0 (2.558.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.31.2] .
### Releases
- [PyPI v0.31.2] https://pypi.org/project/unstructured-client/0.31.2 - .
14 changes: 10 additions & 4 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ actions:
- "lang": "python"
"label": "cancel_job"
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.cancel_job(request={\n \"job_id\": \"ec29bf67-0f30-4793-b5ee-8fc0da196032\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)"
- target: $["paths"]["/api/v1/jobs/{job_id}/download"]["get"]
update:
"x-codeSamples":
- "lang": "python"
"label": "download_playground_job"
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.download_playground_job(request={\n \"job_id\": \"844a9b13-d032-43c7-8e81-b20a874c4c79\",\n \"file_id\": \"<id>\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)"
- target: $["paths"]["/api/v1/sources/"]["get"]
update:
"x-codeSamples":
Expand All @@ -62,7 +68,7 @@ actions:
"x-codeSamples":
- "lang": "python"
"label": "create_source"
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.create_source(request={\n \"create_source_connector\": {\n \"name\": \"<value>\",\n \"type\": shared.SourceConnectorType.S3,\n \"config\": {\n \"username\": \"Eldora_Casper\",\n \"consumer_key\": \"<value>\",\n \"private_key\": \"<value>\",\n \"categories\": [\n \"<value>\",\n ],\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.create_source(request={\n \"create_source_connector\": {\n \"name\": \"<value>\",\n \"type\": shared.SourceConnectorType.S3,\n \"config\": {\n \"username\": \"Eldora_Casper\",\n \"password\": \"I5xeRKAX3jUtlnj\",\n \"security_token\": \"<value>\",\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
- target: $["paths"]["/api/v1/sources/{source_id}"]["delete"]
update:
"x-codeSamples":
Expand All @@ -80,7 +86,7 @@ actions:
"x-codeSamples":
- "lang": "python"
"label": "update_source"
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.update_source(request={\n \"source_id\": \"7d031737-4969-4d2e-ae5d-8e2396edec43\",\n \"update_source_connector\": {\n \"config\": {\n \"client_id\": \"<id>\",\n \"tenant\": \"<value>\",\n \"authority_url\": \"https://pleasing-hammock.org/\",\n \"user_pname\": \"<value>\",\n \"client_cred\": \"<value>\",\n \"recursive\": False,\n \"path\": \"/etc/namedb\",\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.update_source(request={\n \"source_id\": \"196d27d0-3173-4749-b69d-2ee5d8e2396e\",\n \"update_source_connector\": {\n \"config\": {\n \"client_id\": \"<id>\",\n \"client_cred\": \"<value>\",\n \"recursive\": False,\n \"user_email\": \"<value>\",\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
- target: $["paths"]["/api/v1/workflows/"]["get"]
update:
"x-codeSamples":
Expand All @@ -92,7 +98,7 @@ actions:
"x-codeSamples":
- "lang": "python"
"label": "create_workflow"
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.workflows.create_workflow(request={\n \"create_workflow\": {\n \"name\": \"<value>\",\n \"source_id\": \"b5baba90-bc88-4ea4-b45f-e894788e3f38\",\n \"destination_id\": \"0efa0612-4dfe-411e-b84d-d7cfa1e3fe9e\",\n \"workflow_type\": shared.WorkflowType.ADVANCED,\n },\n })\n\n assert res.workflow_information is not None\n\n # Handle response\n print(res.workflow_information)"
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.workflows.create_workflow(request={\n \"create_workflow\": {\n \"name\": \"<value>\",\n \"workflow_type\": shared.WorkflowType.PLATINUM,\n },\n })\n\n assert res.workflow_information is not None\n\n # Handle response\n print(res.workflow_information)"
- target: $["paths"]["/api/v1/workflows/{workflow_id}"]["delete"]
update:
"x-codeSamples":
Expand Down Expand Up @@ -122,4 +128,4 @@ actions:
"x-codeSamples":
- "lang": "python"
"label": "partition"
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.general.partition(request={\n \"partition_parameters\": {\n \"files\": {\n \"file_name\": \"example.file\",\n \"content\": open(\"example.file\", \"rb\"),\n },\n \"vlm_model_provider\": shared.PartitionParametersStrategy.OPENAI,\n \"vlm_model\": shared.PartitionParametersSchemasStrategy.GPT_4O,\n \"split_pdf_page_range\": [\n 1,\n 10,\n ],\n },\n })\n\n assert res.elements is not None\n\n # Handle response\n print(res.elements)"
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.general.partition(request={\n \"partition_parameters\": {\n \"files\": {\n \"file_name\": \"example.file\",\n \"content\": open(\"example.file\", \"rb\"),\n },\n \"vlm_model_provider\": shared.VLMModelProvider.OPENAI,\n \"vlm_model\": shared.VLMModel.GPT_4O,\n \"split_pdf_page_range\": [\n 1,\n 10,\n ],\n },\n })\n\n assert res.elements is not None\n\n # Handle response\n print(res.elements)"
11 changes: 11 additions & 0 deletions docs/models/operations/downloadplaygroundjobrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# DownloadPlaygroundJobRequest


## Fields

| Field | Type | Required | Description |
| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- |
| `file_id` | *str* | :heavy_check_mark: | ID of the file to download |
| `job_id` | *str* | :heavy_check_mark: | N/A |
| `node_id` | *OptionalNullable[str]* | :heavy_minus_sign: | Node ID to view per node output of the file |
| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
11 changes: 11 additions & 0 deletions docs/models/operations/downloadplaygroundjobresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# DownloadPlaygroundJobResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `any` | *Optional[Any]* | :heavy_minus_sign: | Successful Response |
9 changes: 5 additions & 4 deletions docs/models/operations/runworkflowrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

## Fields

| Field | Type | Required | Description |
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
| `workflow_id` | *str* | :heavy_check_mark: | N/A |
| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `workflow_id` | *str* | :heavy_check_mark: | N/A |
| `body_run_workflow` | [Optional[shared.BodyRunWorkflow]](../../models/shared/bodyrunworkflow.md) | :heavy_minus_sign: | N/A |
| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
8 changes: 8 additions & 0 deletions docs/models/shared/bodyrunworkflow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# BodyRunWorkflow


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `input_files` | List[[shared.InputFiles](../../models/shared/inputfiles.md)] | :heavy_minus_sign: | N/A |
6 changes: 0 additions & 6 deletions docs/models/shared/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ value: shared.ElasticsearchConnectorConfigInput = /* values here */
value: shared.GCSDestinationConnectorConfigInput = /* values here */
```

### `shared.KafkaCloudDestinationConnectorConfigInput`

```python
value: shared.KafkaCloudDestinationConnectorConfigInput = /* values here */
```

### `shared.MilvusDestinationConnectorConfigInput`

```python
Expand Down
2 changes: 1 addition & 1 deletion docs/models/shared/confluencesourceconnectorconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
| `cloud` | *bool* | :heavy_check_mark: | N/A |
| `max_num_of_docs_from_each_space` | *int* | :heavy_check_mark: | N/A |
| `max_num_of_spaces` | *int* | :heavy_check_mark: | N/A |
| `spaces` | *Nullable[str]* | :heavy_check_mark: | N/A |
| `url` | *str* | :heavy_check_mark: | N/A |
| `username` | *str* | :heavy_check_mark: | N/A |
| `password` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `spaces` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
2 changes: 1 addition & 1 deletion docs/models/shared/couchbasesourceconnectorconfiginput.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

| Field | Type | Required | Description |
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
| `batch_size` | *int* | :heavy_check_mark: | N/A |
| `bucket` | *str* | :heavy_check_mark: | N/A |
| `collection_id` | *str* | :heavy_check_mark: | N/A |
| `connection_string` | *str* | :heavy_check_mark: | N/A |
| `password` | *str* | :heavy_check_mark: | N/A |
| `username` | *str* | :heavy_check_mark: | N/A |
| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A |
| `collection` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `scope` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
Loading
Loading