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

Diff for: README.md

+13-9
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

Diff for: RELEASES.md

+11-1
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 - .

Diff for: USAGE.md

+9-5
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 -->

Diff for: docs/models/operations/partitionrequest.md

+9
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 |

Diff for: docs/models/operations/pipeline1generalv0042generalpostrequest.md

-9
This file was deleted.

Diff for: docs/models/operations/pipeline1generalv0042generalpostresponse.md

-11
This file was deleted.

Diff for: docs/models/operations/pipeline1generalv0generalpostrequest.md

-9
This file was deleted.

Diff for: docs/models/shared/bodypipeline1generalv0042generalpost.md

-19
This file was deleted.

Diff for: docs/models/shared/bodypipeline1generalv0generalpost.md renamed to docs/models/shared/documentsubmission.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# BodyPipeline1GeneralV0GeneralPost
1+
# DocumentSubmission
22

33

44
## Fields

Diff for: docs/models/shared/security.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Security
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `api_key_auth` | *str* | :heavy_check_mark: | N/A | YOUR_API_KEY |

Diff for: docs/models/shared/success.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Success
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `msg` | *Optional[str]* | :heavy_minus_sign: | N/A |

Diff for: docs/sdks/document/README.md

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# document
2+
3+
### Available Operations
4+
5+
* [partition](#partition) - Pipeline 1
6+
7+
## partition
8+
9+
Pipeline 1
10+
11+
### Example Usage
12+
13+
```python
14+
import unstructured
15+
from unstructured.models import operations, shared
16+
17+
s = unstructured.Unstructured(
18+
security=shared.Security(
19+
api_key_auth="YOUR_API_KEY",
20+
),
21+
)
22+
23+
req = operations.PartitionRequest(
24+
document_submission=shared.DocumentSubmission(
25+
coordinates=[
26+
'magnam',
27+
],
28+
encoding=[
29+
'debitis',
30+
],
31+
files=[
32+
'ipsa'.encode(),
33+
],
34+
gz_uncompressed_content_type='delectus',
35+
hi_res_model_name=[
36+
'tempora',
37+
],
38+
include_page_breaks=[
39+
'suscipit',
40+
],
41+
ocr_languages=[
42+
'molestiae',
43+
],
44+
output_format='minus',
45+
pdf_infer_table_structure=[
46+
'placeat',
47+
],
48+
skip_infer_table_types=[
49+
'voluptatum',
50+
],
51+
strategy=[
52+
'iusto',
53+
],
54+
xml_keep_tags=[
55+
'excepturi',
56+
],
57+
),
58+
unstructured_api_key='nisi',
59+
)
60+
61+
res = s.document.partition(req)
62+
63+
if res.success is not None:
64+
# handle response
65+
```
66+
67+
### Parameters
68+
69+
| Parameter | Type | Required | Description |
70+
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
71+
| `request` | [operations.PartitionRequest](../../models/operations/partitionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
72+
73+
74+
### Response
75+
76+
**[operations.PartitionResponse](../../models/operations/partitionresponse.md)**
77+

0 commit comments

Comments
 (0)