Skip to content

Commit c28d33d

Browse files
github-actions[bot]speakeasybotactions-user
authored
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 2.2.0rc2 (#457)
* ## Python SDK Changes: * `mistral.workflows.workers.whoami()`: **Added** * `mistral.workflows.events.send_event()`: **Added** * `mistral.workflows.events.send_events_batch()`: **Added** * `mistral.events.send_event()`: **Added** * `mistral.events.send_events_batch()`: **Added** * `mistral.workflows.events.receive_workflow_event()`: **Removed** (Breaking ⚠️) * `mistral.workflows.events.receive_workflow_events_batch()`: **Removed** (Breaking ⚠️) * `mistral.events.receive_workflow_event()`: **Removed** (Breaking ⚠️) * `mistral.events.receive_workflow_events_batch()`: **Removed** (Breaking ⚠️) * `mistral.workflows.executions.get_workflow_execution_history()`: `request.decode_payloads` **Added** * `mistral.workflows.runs.get_run_history()`: `request.decode_payloads` **Added** * chore: align pyproject.toml and uv.lock to version 2.2.0rc2 --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: GitHub Action <action@github.com>
1 parent 8d1ddf4 commit c28d33d

27 files changed

Lines changed: 474 additions & 91 deletions

.speakeasy/gen.lock

Lines changed: 75 additions & 38 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
@@ -32,7 +32,7 @@ generation:
3232
generateNewTests: false
3333
skipResponseBodyAssertions: false
3434
python:
35-
version: 2.2.0rc1
35+
version: 2.2.0rc2
3636
additionalDependencies:
3737
dev:
3838
pytest: ^8.2.2

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ sources:
1616
- speakeasy-sdk-regen-1773084660
1717
mistral-openapi:
1818
sourceNamespace: mistral-openapi
19-
sourceRevisionDigest: sha256:edeef4396c29b9a5960e150514289777d4aef71037b03d14444238455fc1c1bd
20-
sourceBlobDigest: sha256:b8b6deb9c127b45ad0cd5700c1e9d69f63927b070817e5986f7131f14dba6ba7
19+
sourceRevisionDigest: sha256:b0edc400c913c03cb63b1d50e468c855b7d9d393a816a7aec8b3c9b2e264acbb
20+
sourceBlobDigest: sha256:e893659c7767d3bc967d4a5a98f0fb5e2a27f7db03d8b1946de13c22b9321b0a
2121
tags:
2222
- latest
2323
targets:
@@ -38,10 +38,10 @@ targets:
3838
mistralai-sdk:
3939
source: mistral-openapi
4040
sourceNamespace: mistral-openapi
41-
sourceRevisionDigest: sha256:edeef4396c29b9a5960e150514289777d4aef71037b03d14444238455fc1c1bd
42-
sourceBlobDigest: sha256:b8b6deb9c127b45ad0cd5700c1e9d69f63927b070817e5986f7131f14dba6ba7
41+
sourceRevisionDigest: sha256:b0edc400c913c03cb63b1d50e468c855b7d9d393a816a7aec8b3c9b2e264acbb
42+
sourceBlobDigest: sha256:e893659c7767d3bc967d4a5a98f0fb5e2a27f7db03d8b1946de13c22b9321b0a
4343
codeSamplesNamespace: mistral-openapi-code-samples
44-
codeSamplesRevisionDigest: sha256:6fc37de5c06926f4bb561b007ea0856a0436829f465b0b054c19cb916cb25909
44+
codeSamplesRevisionDigest: sha256:1231751d127af0b0bfed6d1b2c7dff8376e587c60d1d368ba1b13c5d3090b9c7
4545
workflow:
4646
workflowVersion: 1.0.0
4747
speakeasyVersion: 1.754.0

README-PYPI.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,8 @@ print(res.choices[0].message.content)
637637

638638
### [Events](https://github.com/mistralai/client-python/blob/main/docs/sdks/events/README.md)
639639

640-
* [receive_workflow_event](https://github.com/mistralai/client-python/blob/main/docs/sdks/events/README.md#receive_workflow_event) - Receive Workflow Event
641-
* [receive_workflow_events_batch](https://github.com/mistralai/client-python/blob/main/docs/sdks/events/README.md#receive_workflow_events_batch) - Receive Workflow Events Batch
640+
* [send_event](https://github.com/mistralai/client-python/blob/main/docs/sdks/events/README.md#send_event) - Receive Workflow Event
641+
* [send_events_batch](https://github.com/mistralai/client-python/blob/main/docs/sdks/events/README.md#send_events_batch) - Receive Workflow Events Batch
642642
* [get_stream_events](https://github.com/mistralai/client-python/blob/main/docs/sdks/events/README.md#get_stream_events) - Get Stream Events
643643
* [get_workflow_events](https://github.com/mistralai/client-python/blob/main/docs/sdks/events/README.md#get_workflow_events) - Get Workflow Events
644644

@@ -696,8 +696,8 @@ print(res.choices[0].message.content)
696696

697697
#### [Workflows.Events](https://github.com/mistralai/client-python/blob/main/docs/sdks/workflowsevents/README.md)
698698

699-
* [receive_workflow_event](https://github.com/mistralai/client-python/blob/main/docs/sdks/workflowsevents/README.md#receive_workflow_event) - Receive Workflow Event
700-
* [receive_workflow_events_batch](https://github.com/mistralai/client-python/blob/main/docs/sdks/workflowsevents/README.md#receive_workflow_events_batch) - Receive Workflow Events Batch
699+
* [send_event](https://github.com/mistralai/client-python/blob/main/docs/sdks/workflowsevents/README.md#send_event) - Receive Workflow Event
700+
* [send_events_batch](https://github.com/mistralai/client-python/blob/main/docs/sdks/workflowsevents/README.md#send_events_batch) - Receive Workflow Events Batch
701701
* [get_stream_events](https://github.com/mistralai/client-python/blob/main/docs/sdks/workflowsevents/README.md#get_stream_events) - Get Stream Events
702702
* [get_workflow_events](https://github.com/mistralai/client-python/blob/main/docs/sdks/workflowsevents/README.md#get_workflow_events) - Get Workflow Events
703703

@@ -734,6 +734,10 @@ print(res.choices[0].message.content)
734734
* [schedule_workflow](https://github.com/mistralai/client-python/blob/main/docs/sdks/schedules/README.md#schedule_workflow) - Schedule Workflow
735735
* [unschedule_workflow](https://github.com/mistralai/client-python/blob/main/docs/sdks/schedules/README.md#unschedule_workflow) - Unschedule Workflow
736736

737+
#### [Workflows.Workers](https://github.com/mistralai/client-python/blob/main/docs/sdks/workers/README.md)
738+
739+
* [whoami](https://github.com/mistralai/client-python/blob/main/docs/sdks/workers/README.md#whoami) - Get Worker Info
740+
737741
</details>
738742
<!-- End Available Resources and Operations [operations] -->
739743

@@ -944,8 +948,8 @@ with Mistral(
944948

945949

946950
**Inherit from [`MistralError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/mistralerror.py)**:
947-
* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 105 of 172 methods.*
948-
* [`ObservabilityError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 41 of 172 methods.*
951+
* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 105 of 173 methods.*
952+
* [`ObservabilityError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 41 of 173 methods.*
949953
* [`ResponseValidationError`](https://github.com/mistralai/client-python/blob/main/src/mistralai/client/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
950954

951955
</details>

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,8 @@ print(res.choices[0].message.content)
637637

638638
### [Events](docs/sdks/events/README.md)
639639

640-
* [receive_workflow_event](docs/sdks/events/README.md#receive_workflow_event) - Receive Workflow Event
641-
* [receive_workflow_events_batch](docs/sdks/events/README.md#receive_workflow_events_batch) - Receive Workflow Events Batch
640+
* [send_event](docs/sdks/events/README.md#send_event) - Receive Workflow Event
641+
* [send_events_batch](docs/sdks/events/README.md#send_events_batch) - Receive Workflow Events Batch
642642
* [get_stream_events](docs/sdks/events/README.md#get_stream_events) - Get Stream Events
643643
* [get_workflow_events](docs/sdks/events/README.md#get_workflow_events) - Get Workflow Events
644644

@@ -696,8 +696,8 @@ print(res.choices[0].message.content)
696696

697697
#### [Workflows.Events](docs/sdks/workflowsevents/README.md)
698698

699-
* [receive_workflow_event](docs/sdks/workflowsevents/README.md#receive_workflow_event) - Receive Workflow Event
700-
* [receive_workflow_events_batch](docs/sdks/workflowsevents/README.md#receive_workflow_events_batch) - Receive Workflow Events Batch
699+
* [send_event](docs/sdks/workflowsevents/README.md#send_event) - Receive Workflow Event
700+
* [send_events_batch](docs/sdks/workflowsevents/README.md#send_events_batch) - Receive Workflow Events Batch
701701
* [get_stream_events](docs/sdks/workflowsevents/README.md#get_stream_events) - Get Stream Events
702702
* [get_workflow_events](docs/sdks/workflowsevents/README.md#get_workflow_events) - Get Workflow Events
703703

@@ -734,6 +734,10 @@ print(res.choices[0].message.content)
734734
* [schedule_workflow](docs/sdks/schedules/README.md#schedule_workflow) - Schedule Workflow
735735
* [unschedule_workflow](docs/sdks/schedules/README.md#unschedule_workflow) - Unschedule Workflow
736736

737+
#### [Workflows.Workers](docs/sdks/workers/README.md)
738+
739+
* [whoami](docs/sdks/workers/README.md#whoami) - Get Worker Info
740+
737741
</details>
738742
<!-- End Available Resources and Operations [operations] -->
739743

@@ -944,8 +948,8 @@ with Mistral(
944948

945949

946950
**Inherit from [`MistralError`](./src/mistralai/client/errors/mistralerror.py)**:
947-
* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 105 of 172 methods.*
948-
* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 41 of 172 methods.*
951+
* [`HTTPValidationError`](./src/mistralai/client/errors/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 105 of 173 methods.*
952+
* [`ObservabilityError`](./src/mistralai/client/errors/observabilityerror.py): Bad Request - Invalid request parameters or data. Applicable to 41 of 173 methods.*
949953
* [`ResponseValidationError`](./src/mistralai/client/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
950954

951955
</details>

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,4 +498,14 @@ Based on:
498498
### Generated
499499
- [python v2.2.0rc1] .
500500
### Releases
501-
- [PyPI v2.2.0rc1] https://pypi.org/project/mistralai/2.2.0rc1 - .
501+
- [PyPI v2.2.0rc1] https://pypi.org/project/mistralai/2.2.0rc1 - .
502+
503+
## 2026-03-30 15:55:53
504+
### Changes
505+
Based on:
506+
- OpenAPI Doc
507+
- Speakeasy CLI 1.754.0 (2.862.0) https://github.com/speakeasy-api/speakeasy
508+
### Generated
509+
- [python v2.2.0rc2] .
510+
### Releases
511+
- [PyPI v2.2.0rc2] https://pypi.org/project/mistralai/2.2.0rc2 - .

docs/models/getrunhistoryv1workflowsrunsrunidhistorygetrequest.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55

66
| Field | Type | Required | Description |
77
| ------------------ | ------------------ | ------------------ | ------------------ |
8-
| `run_id` | *str* | :heavy_check_mark: | N/A |
8+
| `run_id` | *str* | :heavy_check_mark: | N/A |
9+
| `decode_payloads` | *Optional[bool]* | :heavy_minus_sign: | N/A |

docs/models/getworkflowexecutionhistoryv1workflowsexecutionsexecutionidhistorygetrequest.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55

66
| Field | Type | Required | Description |
77
| ------------------ | ------------------ | ------------------ | ------------------ |
8-
| `execution_id` | *str* | :heavy_check_mark: | N/A |
8+
| `execution_id` | *str* | :heavy_check_mark: | N/A |
9+
| `decode_payloads` | *Optional[bool]* | :heavy_minus_sign: | N/A |

docs/models/workerinfo.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# WorkerInfo
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `scheduler_url` | *str* | :heavy_check_mark: | N/A |
9+
| `namespace` | *str* | :heavy_check_mark: | N/A |
10+
| `tls` | *Optional[bool]* | :heavy_minus_sign: | N/A |

docs/sdks/events/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
### Available Operations
66

7-
* [receive_workflow_event](#receive_workflow_event) - Receive Workflow Event
8-
* [receive_workflow_events_batch](#receive_workflow_events_batch) - Receive Workflow Events Batch
7+
* [send_event](#send_event) - Receive Workflow Event
8+
* [send_events_batch](#send_events_batch) - Receive Workflow Events Batch
99
* [get_stream_events](#get_stream_events) - Get Stream Events
1010
* [get_workflow_events](#get_workflow_events) - Get Workflow Events
1111

12-
## receive_workflow_event
12+
## send_event
1313

1414
Receive workflow events from workers.
1515

@@ -30,7 +30,7 @@ with Mistral(
3030
api_key=os.getenv("MISTRAL_API_KEY", ""),
3131
) as mistral:
3232

33-
res = mistral.events.receive_workflow_event(event={
33+
res = mistral.events.send_event(event={
3434
"event_id": "<id>",
3535
"root_workflow_exec_id": "<id>",
3636
"workflow_exec_id": "<id>",
@@ -66,7 +66,7 @@ with Mistral(
6666
| errors.HTTPValidationError | 422 | application/json |
6767
| errors.SDKError | 4XX, 5XX | \*/\* |
6868

69-
## receive_workflow_events_batch
69+
## send_events_batch
7070

7171
Receive multiple workflow events from workers in a single batch.
7272

@@ -88,7 +88,7 @@ with Mistral(
8888
api_key=os.getenv("MISTRAL_API_KEY", ""),
8989
) as mistral:
9090

91-
res = mistral.events.receive_workflow_events_batch(events=[
91+
res = mistral.events.send_events_batch(events=[
9292
{
9393
"event_id": "<id>",
9494
"root_workflow_exec_id": "<id>",

0 commit comments

Comments
 (0)