Skip to content

Commit 7a2c296

Browse files
committed
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.83.2
1 parent b3f0caf commit 7a2c296

28 files changed

+266
-369
lines changed

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
## SDK Installation
1111

1212
```bash
13-
pip install git+https://github.com/Unstructured-IO/unstructured-python-client.git
13+
pip install unstructured-client
1414
```
1515
<!-- End SDK Installation -->
1616

@@ -22,10 +22,14 @@ pip install git+https://github.com/Unstructured-IO/unstructured-python-client.gi
2222
import unstructured
2323
from unstructured.models import operations, shared
2424

25-
s = unstructured.Unstructured()
25+
s = unstructured.Unstructured(
26+
security=shared.Security(
27+
api_key_auth="YOUR_API_KEY",
28+
),
29+
)
2630

27-
req = operations.Pipeline1GeneralV0042GeneralPostRequest(
28-
body_pipeline_1_general_v0_0_42_general_post=shared.BodyPipeline1GeneralV0042GeneralPost(
31+
req = operations.PartitionRequest(
32+
document_submission=shared.DocumentSubmission(
2933
coordinates=[
3034
'corrupti',
3135
],
@@ -62,20 +66,20 @@ req = operations.Pipeline1GeneralV0042GeneralPostRequest(
6266
unstructured_api_key='iure',
6367
)
6468

65-
res = s.pipeline_1_general_v0_0_42_general_post(req)
69+
res = s.document.partition(req)
6670

67-
if res.pipeline_1_general_v0_0_42_general_post_200_application_json_any is not None:
71+
if res.success is not None:
6872
# handle response
6973
```
7074
<!-- End SDK Example Usage -->
7175

7276
<!-- Start SDK Available Operations -->
7377
## Available Resources and Operations
7478

75-
### [Unstructured SDK](docs/sdks/unstructured/README.md)
7679

77-
* [pipeline_1_general_v0_0_42_general_post](docs/sdks/unstructured/README.md#pipeline_1_general_v0_0_42_general_post) - Pipeline 1
78-
* [pipeline_1_general_v0_general_post](docs/sdks/unstructured/README.md#pipeline_1_general_v0_general_post) - Pipeline 1
80+
### [document](docs/sdks/document/README.md)
81+
82+
* [partition](docs/sdks/document/README.md#partition) - Pipeline 1
7983
<!-- End SDK Available Operations -->
8084

8185
### Maturity

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,14 @@ Based on:
1414
- OpenAPI Doc 1.0.0
1515
- Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy
1616
### Generated
17-
- [python v0.1.1] .
17+
- [python v0.1.1] .
18+
19+
## 2023-09-13 19:51:16
20+
### Changes
21+
Based on:
22+
- OpenAPI Doc 1.0.0
23+
- Speakeasy CLI 1.83.2 (2.109.3) https://github.com/speakeasy-api/speakeasy
24+
### Generated
25+
- [python v0.1.2] .
26+
### Releases
27+
- [PyPI v0.1.2] https://pypi.org/project/unstructured-client/0.1.2 - .

USAGE.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@
55
import unstructured
66
from unstructured.models import operations, shared
77

8-
s = unstructured.Unstructured()
8+
s = unstructured.Unstructured(
9+
security=shared.Security(
10+
api_key_auth="YOUR_API_KEY",
11+
),
12+
)
913

10-
req = operations.Pipeline1GeneralV0042GeneralPostRequest(
11-
body_pipeline_1_general_v0_0_42_general_post=shared.BodyPipeline1GeneralV0042GeneralPost(
14+
req = operations.PartitionRequest(
15+
document_submission=shared.DocumentSubmission(
1216
coordinates=[
1317
'corrupti',
1418
],
@@ -45,9 +49,9 @@ req = operations.Pipeline1GeneralV0042GeneralPostRequest(
4549
unstructured_api_key='iure',
4650
)
4751

48-
res = s.pipeline_1_general_v0_0_42_general_post(req)
52+
res = s.document.partition(req)
4953

50-
if res.pipeline_1_general_v0_0_42_general_post_200_application_json_any is not None:
54+
if res.success is not None:
5155
# handle response
5256
```
5357
<!-- End SDK Example Usage -->
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# PartitionRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
8+
| `document_submission` | [Optional[shared.DocumentSubmission]](../../models/shared/documentsubmission.md) | :heavy_minus_sign: | N/A |
9+
| `unstructured_api_key` | *Optional[str]* | :heavy_minus_sign: | N/A |
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Pipeline1GeneralV0GeneralPostResponse
1+
# PartitionResponse
22

33

44
## Fields
@@ -8,4 +8,4 @@
88
| `content_type` | *str* | :heavy_check_mark: | N/A |
99
| `status_code` | *int* | :heavy_check_mark: | N/A |
1010
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
11-
| `pipeline_1_general_v0_general_post_200_application_json_any` | *Optional[Any]* | :heavy_minus_sign: | Successful Response |
11+
| `success` | [Optional[shared.Success]](../../models/shared/success.md) | :heavy_minus_sign: | Successful Response |

docs/models/operations/pipeline1generalv0042generalpostrequest.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/models/operations/pipeline1generalv0042generalpostresponse.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/models/operations/pipeline1generalv0generalpostrequest.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/models/shared/bodypipeline1generalv0042generalpost.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/models/shared/bodypipeline1generalv0generalpost.md renamed to docs/models/shared/documentsubmission.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# BodyPipeline1GeneralV0GeneralPost
1+
# DocumentSubmission
22

33

44
## Fields

0 commit comments

Comments
 (0)