Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
253 changes: 188 additions & 65 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 3.5.0
version: 3.6.0
additionalDependencies:
dev:
pytest: ^8.2.2
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ sources:
- speakeasy-mistralai-gcp-sdk-26292830187-1
mistral-openapi:
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:2e71945d25a8d5ef853793bde7979e1bef1749311f1200ada89fcd6ee5348e07
sourceBlobDigest: sha256:861833fe29d784afb8f378e9c7addea0b7239aebae2bbd5d6da9a08cca6b9e8e
sourceRevisionDigest: sha256:a4f1649fc6d293f9cf3652df5b6dea61d16c4824bbc429194f9ec20b9f798a8c
sourceBlobDigest: sha256:16df92d5f5fb961cb5677c2db17092202548f7d2aea908d800653d1b5596cd78
tags:
- latest
- 1.0.0
Expand All @@ -39,10 +39,10 @@ targets:
mistralai-sdk:
source: mistral-openapi
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:2e71945d25a8d5ef853793bde7979e1bef1749311f1200ada89fcd6ee5348e07
sourceBlobDigest: sha256:861833fe29d784afb8f378e9c7addea0b7239aebae2bbd5d6da9a08cca6b9e8e
sourceRevisionDigest: sha256:a4f1649fc6d293f9cf3652df5b6dea61d16c4824bbc429194f9ec20b9f798a8c
sourceBlobDigest: sha256:16df92d5f5fb961cb5677c2db17092202548f7d2aea908d800653d1b5596cd78
codeSamplesNamespace: mistral-openapi-python-code-samples
codeSamplesRevisionDigest: sha256:cfa2c195f3262d7efbde0b3c45037f0c372faa9baa9c980c6d2c0f5b714e4c93
codeSamplesRevisionDigest: sha256:0768cbd3d8153d3e6f7de9fc36f22055898671d601895f2f55b95c0fec812490
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.796.4
Expand Down
80 changes: 80 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1596,3 +1596,83 @@ Based on:
- [python v3.5.0] .
### Releases
- [PyPI v3.5.0] https://pypi.org/project/mistralai/3.5.0 - .

## 2026-10-27 16:51:27
### Generated SDK baseline differences
The published SDK or generator baseline differs from the baseline used by the OpenAPI changelog.

<details>
<summary>Generated surface details</summary>

#### Stable compatibility changes
Removed from the stable API surface (27):
- `CompletionTokensDetails`
- `MessageTokens`
- `PromptTokensDetails`
- `UsageInfoDollarDefs`
- `CompletionTokensDetails.reasoning_tokens`
- `MessageTokens.role`
- `MessageTokens.settings_tokens`
- `MessageTokens.total_tokens`
- `MessageTokens.truncated`
- `MessageTokens.usage_count`
- `PromptTokensDetails.audio_tokens`
- `PromptTokensDetails.cached_tokens`
- `PromptTokensDetails.messages`
- `UsageInfoDollarDefs.completion_tokens`
- `UsageInfoDollarDefs.completion_tokens_details`
- `UsageInfoDollarDefs.num_cached_tokens`
- `UsageInfoDollarDefs.prompt_audio_seconds`
- `UsageInfoDollarDefs.prompt_token_details`
- `UsageInfoDollarDefs.prompt_tokens`
- `UsageInfoDollarDefs.prompt_tokens_details`
- `UsageInfoDollarDefs.request_count`
- `UsageInfoDollarDefs.service_tier`
- `UsageInfoDollarDefs.total_tokens`
- `CompletionTokensDetails.serialize_model`
- `MessageTokens.serialize_model`
- ...and 2 more
#### Stable type changes
Changed types or signatures on the stable surface (2):
- `SpeechStreamDone.usage: UsageInfoDollarDefs -> UsageInfo`
- `SpeechStreamDoneTypedDict.usage: UsageInfoDollarDefsTypedDict -> UsageInfoTypedDict`
#### Beta surface changes
Changed types or signatures in beta (3):
- `ConnectionPreference.is_default: OptionalNullable[bool] -> Annotated[OptionalNullable[bool], pydantic.Field(deprecated='warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible.')]`
- `ConnectionPreference.name: str -> Annotated[Optional[str], pydantic.Field(deprecated='warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible.')]`
- `ConnectionPreferenceTypedDict.name: str -> NotRequired[str]`
</details>

### API changes
#### Breaking changes

- Removed fields `num_cached_tokens`, `prompt_tokens_details`, `completion_tokens_details`, `prompt_token_details`, and `request_count` from response `data.union(speech.audio.done).usage` in `sdk.audio.speech.complete()`.

#### Added operations

Stable:

- `sdk.audio.realtime_speech.connect()`
- `sdk.audio.realtime_speech.speak_stream()`

#### Schema changes

- Added enum value `optimization_trial_observation_already_exists` across beta observability judges, beta observability datasets, beta observability datasets records, beta observability evaluations, beta observability evaluations projects, beta observability evaluations runs, beta observability evaluations records, beta observability evaluations optimizations, beta observability logs, beta observability traces, beta observability spans (65 operations).
- Changed response field `name` in `sdk.beta.connectors.list()`, `sdk.beta.connectors.create()`, `sdk.beta.connectors.get()`, and `sdk.beta.connectors.update()`.
- Added field `status[403]` in `sdk.beta.rag.managed_indexes.create()`.
- Added request fields `diarize`, `context_bias`, `language`, `speaker_references`, and `turn_detection` in `sdk.audio.realtime.connect()`, `sdk.audio.realtime.transcribe_stream()`, and `sdk.audio.realtime.connect().update_session()`.
- Added response variants `TurnDetectionStartEvent`, `TurnDetectionEagerEndEvent`, `TurnDetectionResumeEvent`, and `TurnDetectionEndEvent` in `sdk.audio.realtime.connect()` and `sdk.audio.realtime.transcribe_stream()`.

#### Fixes

- `sdk.workflows.schedules.schedule_workflow()` and `sdk.workflows.schedules.update_schedule()` now encrypt `schedule.input` when payload encryption is enabled; it was previously sent in cleartext. `sdk.workflows.schedules.get_schedule()` and `sdk.workflows.schedules.get_schedules()` decode it.
- Partially encrypted workflow payloads are now serialized as compact JSON, matching the TypeScript SDK.

### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.796.4 (2.935.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v3.6.0] .
### Releases
- [PyPI v3.6.0] https://pypi.org/project/mistralai/3.6.0 - .
14 changes: 0 additions & 14 deletions docs/models/completiontokensdetails.md

This file was deleted.

12 changes: 6 additions & 6 deletions docs/models/connectionpreference.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| `name` | *str* | :heavy_check_mark: | N/A |
| `tool_configuration` | [models.ToolExecutionConfiguration](../models/toolexecutionconfiguration.md) | :heavy_check_mark: | N/A |
| `is_default` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A |
| `consumer_type` | [OptionalNullable[models.ConsumerType]](../models/consumertype.md) | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `tool_configuration` | [models.ToolExecutionConfiguration](../models/toolexecutionconfiguration.md) | :heavy_check_mark: | N/A |
| `consumer_type` | [OptionalNullable[models.ConsumerType]](../models/consumertype.md) | :heavy_minus_sign: | N/A |
| ~~`name`~~ | *Optional[str]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>Deprecated: always `default`, a connection holds a single preference. |
| ~~`is_default`~~ | *OptionalNullable[bool]* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>Deprecated: always `true`. |
14 changes: 0 additions & 14 deletions docs/models/messagetokens.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/models/observabilityerrorcode.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ This is an open enum. Unrecognized values will not fail type checks.
- `"EVALUATION_NAME_ALREADY_EXISTS"`
- `"OPTIMIZATION_NOT_FOUND"`
- `"OPTIMIZATION_TRIAL_KEY_ALREADY_EXISTS"`
- `"OPTIMIZATION_TRIAL_OBSERVATION_ALREADY_EXISTS"`
- `"TRACES_FILTER_QUERY_PARSE_ERROR"`
- `"TRACE_NOT_FOUND"`
- `"SPAN_NOT_FOUND"`
12 changes: 0 additions & 12 deletions docs/models/prompttokensdetails.md

This file was deleted.

9 changes: 9 additions & 0 deletions docs/models/realtimespeecherror.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# RealtimeSpeechError


## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `type` | *Optional[Literal["error"]]* | :heavy_minus_sign: | N/A |
| `error` | [models.RealtimeSpeechErrorDetail](../models/realtimespeecherrordetail.md) | :heavy_check_mark: | N/A |
9 changes: 9 additions & 0 deletions docs/models/realtimespeecherrordetail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# RealtimeSpeechErrorDetail


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `message` | [models.RealtimeSpeechErrorDetailMessage](../models/realtimespeecherrordetailmessage.md) | :heavy_check_mark: | Human-readable error message. |
| `code` | *int* | :heavy_check_mark: | Internal error code for debugging. |
19 changes: 19 additions & 0 deletions docs/models/realtimespeecherrordetailmessage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# RealtimeSpeechErrorDetailMessage

Human-readable error message.


## Supported Types

### `str`

```python
value: str = /* values here */
```

### `Dict[str, Any]`

```python
value: Dict[str, Any] = /* values here */
```

9 changes: 9 additions & 0 deletions docs/models/realtimespeechinputtextappend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# RealtimeSpeechInputTextAppend


## Fields

| Field | Type | Required | Description |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| `type` | *Optional[Literal["input_text.append"]]* | :heavy_minus_sign: | N/A |
| `text` | *str* | :heavy_check_mark: | N/A |
Loading
Loading