Skip to content

Commit 0a7f010

Browse files
authored
chore: generate 0.40.0 (#297)
Needed to do this manually to resolve some conflicts in our autogen ignore files. Steps: - Remove all endpoint python files from `.genignore` - Run speakeasy generate - Stage and commit the `HookContext` diffs in these files - Revert the other autogen changes that we aren't ready for
1 parent 8888ec2 commit 0a7f010

30 files changed

+316
-257
lines changed

.speakeasy/gen.lock

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 8b5fa338-9106-4734-abf0-e30d67044a90
33
management:
4-
docChecksum: 3e52fdac3e417f8e48fcb920b829025c
5-
docVersion: 1.1.34
6-
speakeasyVersion: 1.552.0
7-
generationVersion: 2.610.0
8-
releaseVersion: 0.39.1
9-
configChecksum: 2b0094ee827eb2deb71ef0ff9e572192
4+
docChecksum: 0593f5359a35b34f3dc1b346490deff2
5+
docVersion: 1.1.39
6+
speakeasyVersion: 1.568.0
7+
generationVersion: 2.632.2
8+
releaseVersion: 0.40.0
9+
configChecksum: 70954879fd1a6da62295461541e8680c
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
@@ -16,7 +16,7 @@ features:
1616
acceptHeaders: 3.0.0
1717
additionalDependencies: 1.0.0
1818
constsAndDefaults: 1.0.5
19-
core: 5.19.0
19+
core: 5.19.3
2020
customCodeRegions: 0.1.1
2121
defaultEnabledRetries: 0.2.0
2222
enumUnions: 0.1.0
@@ -33,7 +33,7 @@ features:
3333
openEnums: 1.0.1
3434
responseFormat: 1.0.1
3535
retries: 3.0.2
36-
sdkHooks: 1.0.1
36+
sdkHooks: 1.1.0
3737
serverIDs: 3.0.0
3838
unions: 3.0.4
3939
uploadStreams: 1.0.0
@@ -71,6 +71,8 @@ generatedFiles:
7171
- docs/models/operations/getconnectionchecksourcesresponse.md
7272
- docs/models/operations/getdestinationrequest.md
7373
- docs/models/operations/getdestinationresponse.md
74+
- docs/models/operations/getencryptioncertificaterequest.md
75+
- docs/models/operations/getencryptioncertificateresponse.md
7476
- docs/models/operations/getjobdetailsrequest.md
7577
- docs/models/operations/getjobdetailsresponse.md
7678
- docs/models/operations/getjobfailedfilesrequest.md
@@ -91,8 +93,6 @@ generatedFiles:
9193
- docs/models/operations/listworkflowsresponse.md
9294
- docs/models/operations/partitionrequest.md
9395
- docs/models/operations/partitionresponse.md
94-
- docs/models/operations/retrieverequest.md
95-
- docs/models/operations/retrieveresponse.md
9696
- docs/models/operations/runworkflowrequest.md
9797
- docs/models/operations/runworkflowresponse.md
9898
- docs/models/operations/storesecretrequest.md
@@ -140,6 +140,7 @@ generatedFiles:
140140
- docs/models/shared/elasticsearchconnectorconfig.md
141141
- docs/models/shared/elasticsearchconnectorconfiginput.md
142142
- docs/models/shared/encryptedsecret.md
143+
- docs/models/shared/encryptioncertificateresponse.md
143144
- docs/models/shared/encryptiontype.md
144145
- docs/models/shared/failedfile.md
145146
- docs/models/shared/files.md
@@ -181,7 +182,6 @@ generatedFiles:
181182
- docs/models/shared/outlooksourceconnectorconfiginput.md
182183
- docs/models/shared/outputformat.md
183184
- docs/models/shared/partitionparameters.md
184-
- docs/models/shared/pemauthresponse.md
185185
- docs/models/shared/pineconedestinationconnectorconfig.md
186186
- docs/models/shared/pineconedestinationconnectorconfiginput.md
187187
- docs/models/shared/postgresdestinationconnectorconfig.md
@@ -272,6 +272,7 @@ generatedFiles:
272272
- src/unstructured_client/models/operations/get_connection_check_destinations.py
273273
- src/unstructured_client/models/operations/get_connection_check_sources.py
274274
- src/unstructured_client/models/operations/get_destination.py
275+
- src/unstructured_client/models/operations/get_encryption_certificate.py
275276
- src/unstructured_client/models/operations/get_job.py
276277
- src/unstructured_client/models/operations/get_job_details.py
277278
- src/unstructured_client/models/operations/get_job_failed_files.py
@@ -282,7 +283,6 @@ generatedFiles:
282283
- src/unstructured_client/models/operations/list_sources.py
283284
- src/unstructured_client/models/operations/list_workflows.py
284285
- src/unstructured_client/models/operations/partition.py
285-
- src/unstructured_client/models/operations/retrieve.py
286286
- src/unstructured_client/models/operations/run_workflow.py
287287
- src/unstructured_client/models/operations/store_secret.py
288288
- src/unstructured_client/models/operations/update_destination.py
@@ -323,6 +323,7 @@ generatedFiles:
323323
- src/unstructured_client/models/shared/elasticsearchconnectorconfig.py
324324
- src/unstructured_client/models/shared/elasticsearchconnectorconfiginput.py
325325
- src/unstructured_client/models/shared/encryptedsecret.py
326+
- src/unstructured_client/models/shared/encryptioncertificateresponse.py
326327
- src/unstructured_client/models/shared/encryptiontype.py
327328
- src/unstructured_client/models/shared/failedfile.py
328329
- src/unstructured_client/models/shared/gcsdestinationconnectorconfig.py
@@ -359,7 +360,6 @@ generatedFiles:
359360
- src/unstructured_client/models/shared/outlooksourceconnectorconfig.py
360361
- src/unstructured_client/models/shared/outlooksourceconnectorconfiginput.py
361362
- src/unstructured_client/models/shared/partition_parameters.py
362-
- src/unstructured_client/models/shared/pemauthresponse.py
363363
- src/unstructured_client/models/shared/pineconedestinationconnectorconfig.py
364364
- src/unstructured_client/models/shared/pineconedestinationconnectorconfiginput.py
365365
- src/unstructured_client/models/shared/postgresdestinationconnectorconfig.py
@@ -709,5 +709,12 @@ examples:
709709
application/json: {"id": "<id>"}
710710
"422":
711711
application/json: {"detail": []}
712+
get_encryption_certificate:
713+
speakeasy-default-get-encryption-certificate:
714+
responses:
715+
"200":
716+
application/json: {"ca_chain": "<value>", "encryption_certificate": "<value>"}
717+
"422":
718+
application/json: {"detail": []}
712719
examplesVersion: 1.0.2
713720
generatedTests: {}

README.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ with UnstructuredClient() as uc_client:
316316

317317
</br>
318318

319-
The same SDK client can also be used to make asynchronous requests by importing asyncio.
319+
The same SDK client can also be used to make asychronous requests by importing asyncio.
320320
```python
321321
# Asynchronous Example
322322
import asyncio
@@ -410,30 +410,18 @@ Certain SDK methods accept file objects as part of a request body or multi-part
410410
411411
```python
412412
from unstructured_client import UnstructuredClient
413-
from unstructured_client.models import shared
414413

415414

416415
with UnstructuredClient() as uc_client:
417416

418-
res = uc_client.general.partition(request={
419-
"partition_parameters": {
420-
"files": {
421-
"content": open("example.file", "rb"),
422-
"file_name": "example.file",
423-
},
424-
"split_pdf_page_range": [
425-
1,
426-
10,
427-
],
428-
"vlm_model": shared.VLMModel.GPT_4O,
429-
"vlm_model_provider": shared.VLMModelProvider.OPENAI,
430-
},
417+
res = uc_client.workflows.run_workflow(request={
418+
"workflow_id": "e7054f23-ce92-4bf1-a1d7-7cf9cb14d013",
431419
})
432420

433-
assert res.elements is not None
421+
assert res.job_information is not None
434422

435423
# Handle response
436-
print(res.elements)
424+
print(res.job_information)
437425

438426
```
439427
<!-- End File uploads [file-upload] -->

docs/models/operations/retrieverequest.md renamed to docs/models/operations/getencryptioncertificaterequest.md

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

33

44
## Fields
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# GetEncryptionCertificateResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
9+
| `encryption_certificate_response` | [Optional[shared.EncryptionCertificateResponse]](../../models/shared/encryptioncertificateresponse.md) | :heavy_minus_sign: | Successful Response |
10+
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
11+
| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |

docs/models/operations/retrieveresponse.md

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# EncryptionCertificateResponse
2+
3+
Response model for the encryption certificate.
4+
Contains the siged user certificate and the root CA certificate
5+
for verification.
6+
7+
8+
## Fields
9+
10+
| Field | Type | Required | Description |
11+
| ------------------------ | ------------------------ | ------------------------ | ------------------------ |
12+
| `ca_chain` | *str* | :heavy_check_mark: | N/A |
13+
| `encryption_certificate` | *str* | :heavy_check_mark: | N/A |

docs/models/shared/pemauthresponse.md

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

docs/sdks/general/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@ with UnstructuredClient() as uc_client:
2222

2323
res = uc_client.general.partition(request={
2424
"partition_parameters": {
25+
"chunking_strategy": "by_title",
2526
"files": {
2627
"content": open("example.file", "rb"),
2728
"file_name": "example.file",
2829
},
30+
"split_pdf_cache_tmp_data_dir": "<value>",
2931
"split_pdf_page_range": [
3032
1,
3133
10,
3234
],
35+
"strategy": shared.Strategy.AUTO,
3336
"vlm_model": shared.VLMModel.GPT_4O,
3437
"vlm_model_provider": shared.VLMModelProvider.OPENAI,
3538
},

docs/sdks/users/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
### Available Operations
77

8-
* [retrieve](#retrieve) - Retrieve PEM Key
8+
* [get_encryption_certificate](#get_encryption_certificate) - Retrieve the user's public key for encryption.
99
* [store_secret](#store_secret) - Store an encrypted secret
1010

11-
## retrieve
11+
## get_encryption_certificate
1212

13-
Given a UNSTRUCTURED_API_KEY in the post-payload, retrieve the associated PEM key
13+
Retrieve a short lived certificate with the public key for encrypting secrets.
1414

1515
### Example Usage
1616

@@ -20,26 +20,26 @@ from unstructured_client import UnstructuredClient
2020

2121
with UnstructuredClient() as uc_client:
2222

23-
res = uc_client.users.retrieve(request={})
23+
res = uc_client.users.get_encryption_certificate(request={})
2424

25-
assert res.pem_auth_response is not None
25+
assert res.encryption_certificate_response is not None
2626

2727
# Handle response
28-
print(res.pem_auth_response)
28+
print(res.encryption_certificate_response)
2929

3030
```
3131

3232
### Parameters
3333

34-
| Parameter | Type | Required | Description |
35-
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
36-
| `request` | [operations.RetrieveRequest](../../models/operations/retrieverequest.md) | :heavy_check_mark: | The request object to use for the request. |
37-
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
38-
| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. |
34+
| Parameter | Type | Required | Description |
35+
| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
36+
| `request` | [operations.GetEncryptionCertificateRequest](../../models/operations/getencryptioncertificaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
37+
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
38+
| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. |
3939

4040
### Response
4141

42-
**[operations.RetrieveResponse](../../models/operations/retrieveresponse.md)**
42+
**[operations.GetEncryptionCertificateResponse](../../models/operations/getencryptioncertificateresponse.md)**
4343

4444
### Errors
4545

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ generation:
1414
oAuth2ClientCredentialsEnabled: false
1515
oAuth2PasswordEnabled: false
1616
python:
17-
version: 0.39.1
17+
version: 0.40.0
1818
additionalDependencies:
1919
dev:
2020
deepdiff: '>=6.0'

0 commit comments

Comments
 (0)