Skip to content

Commit a61dc37

Browse files
authored
Merge pull request #245 from mistralai/speakeasy-sdk-regen-1751557705
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 1.9.2
2 parents b014e3b + 7176907 commit a61dc37

File tree

112 files changed

+6851
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+6851
-93
lines changed

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 275 additions & 5 deletions
Large diffs are not rendered by default.

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ generation:
2121
generateNewTests: false
2222
skipResponseBodyAssertions: false
2323
python:
24-
version: 1.9.1
24+
version: 1.9.2
2525
additionalDependencies:
2626
dev:
2727
pytest: ^8.2.2

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ sources:
1414
- latest
1515
mistral-openapi:
1616
sourceNamespace: mistral-openapi
17-
sourceRevisionDigest: sha256:e9fd379cd22f75a10ccc5b866f4de98f973c3c0f77cb15a7bebcb94bf10c82f2
18-
sourceBlobDigest: sha256:4bb656d10d1cfbe09f9b1b7734c79f1855eb27184590362d3747116f6abf69d1
17+
sourceRevisionDigest: sha256:2ab1acc41424ca9be28ef867168aeb32af9fc7129b0a91494c0cd24d68c30345
18+
sourceBlobDigest: sha256:029ae17d555b02220397bba95308ba545c4733db81e65258be7baf9991d10c3a
1919
tags:
2020
- latest
21-
- speakeasy-sdk-regen-1751306196
21+
- speakeasy-sdk-regen-1751557705
2222
targets:
2323
mistralai-azure-sdk:
2424
source: mistral-azure-source
@@ -37,10 +37,10 @@ targets:
3737
mistralai-sdk:
3838
source: mistral-openapi
3939
sourceNamespace: mistral-openapi
40-
sourceRevisionDigest: sha256:e9fd379cd22f75a10ccc5b866f4de98f973c3c0f77cb15a7bebcb94bf10c82f2
41-
sourceBlobDigest: sha256:4bb656d10d1cfbe09f9b1b7734c79f1855eb27184590362d3747116f6abf69d1
40+
sourceRevisionDigest: sha256:2ab1acc41424ca9be28ef867168aeb32af9fc7129b0a91494c0cd24d68c30345
41+
sourceBlobDigest: sha256:029ae17d555b02220397bba95308ba545c4733db81e65258be7baf9991d10c3a
4242
codeSamplesNamespace: mistral-openapi-code-samples
43-
codeSamplesRevisionDigest: sha256:85311d42c06d86b38d49ed14b2485f45ad219ef76da40dfbec2592bb75dcaf00
43+
codeSamplesRevisionDigest: sha256:b45de481b3d77689a76a406421d4625dc37cc17bf90bab2f7d6e78f3eec77a9c
4444
workflow:
4545
workflowVersion: 1.0.0
4646
speakeasyVersion: 1.568.2

β€ŽREADME.mdβ€Ž

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,33 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
468468
* [append_stream](docs/sdks/conversations/README.md#append_stream) - Append new entries to an existing conversation.
469469
* [restart_stream](docs/sdks/conversations/README.md#restart_stream) - Restart a conversation starting from a given entry.
470470

471+
#### [beta.libraries](docs/sdks/libraries/README.md)
472+
473+
* [list](docs/sdks/libraries/README.md#list) - List all libraries you have access to.
474+
* [create](docs/sdks/libraries/README.md#create) - Create a new Library.
475+
* [get](docs/sdks/libraries/README.md#get) - Detailed information about a specific Library.
476+
* [delete](docs/sdks/libraries/README.md#delete) - Delete a library and all of it's document.
477+
* [update](docs/sdks/libraries/README.md#update) - Update a library.
478+
479+
#### [beta.libraries.accesses](docs/sdks/accesses/README.md)
480+
481+
* [list](docs/sdks/accesses/README.md#list) - List all of the access to this library.
482+
* [update_or_create](docs/sdks/accesses/README.md#update_or_create) - Create or update an access level.
483+
* [delete](docs/sdks/accesses/README.md#delete) - Delete an access level.
484+
485+
#### [beta.libraries.documents](docs/sdks/documents/README.md)
486+
487+
* [list](docs/sdks/documents/README.md#list) - List document in a given library.
488+
* [upload](docs/sdks/documents/README.md#upload) - Upload a new document.
489+
* [get](docs/sdks/documents/README.md#get) - Retrieve the metadata of a specific document.
490+
* [update](docs/sdks/documents/README.md#update) - Update the metadata of a specific document.
491+
* [delete](docs/sdks/documents/README.md#delete) - Delete a document.
492+
* [text_content](docs/sdks/documents/README.md#text_content) - Retrieve the text content of a specific document.
493+
* [status](docs/sdks/documents/README.md#status) - Retrieve the processing status of a specific document.
494+
* [get_signed_url](docs/sdks/documents/README.md#get_signed_url) - Retrieve the signed URL of a specific document.
495+
* [extracted_text_signed_url](docs/sdks/documents/README.md#extracted_text_signed_url) - Retrieve the signed URL of text extracted from a given document.
496+
* [reprocess](docs/sdks/documents/README.md#reprocess) - Reprocess a document.
497+
471498
### [chat](docs/sdks/chat/README.md)
472499

473500
* [complete](docs/sdks/chat/README.md#complete) - Chat Completion
@@ -587,7 +614,7 @@ with Mistral(
587614
api_key=os.getenv("MISTRAL_API_KEY", ""),
588615
) as mistral:
589616

590-
res = mistral.files.upload(file={
617+
res = mistral.beta.libraries.documents.upload(library_id="a02150d9-5ee0-4877-b62c-28b1fcdf3b76", file={
591618
"file_name": "example.file",
592619
"content": open("example.file", "rb"),
593620
})

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,14 @@ Based on:
248248
### Generated
249249
- [python v1.9.1] .
250250
### Releases
251-
- [PyPI v1.9.1] https://pypi.org/project/mistralai/1.9.1 - .
251+
- [PyPI v1.9.1] https://pypi.org/project/mistralai/1.9.1 - .
252+
253+
## 2025-07-10 12:22:52
254+
### Changes
255+
Based on:
256+
- OpenAPI Doc
257+
- Speakeasy CLI 1.568.2 (2.634.2) https://github.com/speakeasy-api/speakeasy
258+
### Generated
259+
- [python v1.9.2] .
260+
### Releases
261+
- [PyPI v1.9.2] https://pypi.org/project/mistralai/1.9.2 - .

β€Ždocs/models/basemodelcard.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
| `deprecation` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A |
1818
| `deprecation_replacement_model` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
1919
| `default_model_temperature` | *OptionalNullable[float]* | :heavy_minus_sign: | N/A |
20-
| `type` | *Optional[Literal["base"]]* | :heavy_minus_sign: | N/A |
20+
| `type` | [Optional[models.Type]](../models/type.md) | :heavy_minus_sign: | N/A |

β€Ždocs/models/conversationeventsdata.mdβ€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ value: models.FunctionCallEvent = /* values here */
4545
value: models.MessageOutputEvent = /* values here */
4646
```
4747

48+
### `models.ToolExecutionDeltaEvent`
49+
50+
```python
51+
value: models.ToolExecutionDeltaEvent = /* values here */
52+
```
53+
4854
### `models.ToolExecutionDoneEvent`
4955

5056
```python

β€Ždocs/models/documentout.mdβ€Ž

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# DocumentOut
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
8+
| `id` | *str* | :heavy_check_mark: | N/A |
9+
| `library_id` | *str* | :heavy_check_mark: | N/A |
10+
| `hash` | *str* | :heavy_check_mark: | N/A |
11+
| `mime_type` | *str* | :heavy_check_mark: | N/A |
12+
| `extension` | *str* | :heavy_check_mark: | N/A |
13+
| `size` | *int* | :heavy_check_mark: | N/A |
14+
| `name` | *str* | :heavy_check_mark: | N/A |
15+
| `summary` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
16+
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
17+
| `last_processed_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A |
18+
| `number_of_pages` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A |
19+
| `processing_status` | *str* | :heavy_check_mark: | N/A |
20+
| `uploaded_by_id` | *str* | :heavy_check_mark: | N/A |
21+
| `uploaded_by_type` | *str* | :heavy_check_mark: | N/A |
22+
| `tokens_processing_main_content` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A |
23+
| `tokens_processing_summary` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A |
24+
| `tokens_processing_total` | *int* | :heavy_check_mark: | N/A |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# DocumentTextContent
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `text` | *str* | :heavy_check_mark: | N/A |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# DocumentUpdateIn
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
8+
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |

0 commit comments

Comments
Β (0)