Skip to content

Commit 2525d5a

Browse files
authored
Merge pull request #199 from mistralai/speakeasy-sdk-regen-1774276432
chore: 🐝 Update SDK - Generate MISTRALAI-SDK 2.1.2
2 parents 783dfaf + 26fbfc9 commit 2525d5a

40 files changed

Lines changed: 1283 additions & 47 deletions

.speakeasy/gen.lock

Lines changed: 136 additions & 27 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
@@ -34,7 +34,7 @@ generation:
3434
generateNewTests: false
3535
skipResponseBodyAssertions: false
3636
typescript:
37-
version: 2.1.1
37+
version: 2.1.2
3838
acceptHeaderEnum: true
3939
additionalDependencies:
4040
dependencies:

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ sources:
1414
- latest
1515
mistral-openapi:
1616
sourceNamespace: mistral-openapi
17-
sourceRevisionDigest: sha256:2796a05e4b9f32ebc2ffa6b195b959507d7d2683f6b06593781cc8ebdcd7cb6f
18-
sourceBlobDigest: sha256:9e5029c7cf5ae151e2b0a123e70013dc6d9a58b8127884cf33e85fa3be32abee
17+
sourceRevisionDigest: sha256:480366372609b8e74697827a161a478dd87aa95460d0e078ecc73b5dfa0d00ff
18+
sourceBlobDigest: sha256:23523b81989fa5223902dea44dd6bebf8eb7b1dceec5cc3aa4dbb969ecde6652
1919
tags:
2020
- latest
2121
targets:
@@ -36,10 +36,10 @@ targets:
3636
mistralai-sdk:
3737
source: mistral-openapi
3838
sourceNamespace: mistral-openapi
39-
sourceRevisionDigest: sha256:2796a05e4b9f32ebc2ffa6b195b959507d7d2683f6b06593781cc8ebdcd7cb6f
40-
sourceBlobDigest: sha256:9e5029c7cf5ae151e2b0a123e70013dc6d9a58b8127884cf33e85fa3be32abee
39+
sourceRevisionDigest: sha256:480366372609b8e74697827a161a478dd87aa95460d0e078ecc73b5dfa0d00ff
40+
sourceBlobDigest: sha256:23523b81989fa5223902dea44dd6bebf8eb7b1dceec5cc3aa4dbb969ecde6652
4141
codeSamplesNamespace: mistral-openapi-code-samples
42-
codeSamplesRevisionDigest: sha256:014de1be558e9a0ca3a53fc88ec20a1a2f7eb433c41a1e35bedeb43604a57d73
42+
codeSamplesRevisionDigest: sha256:501ec95da24e68e42acf019bf86fe6a6a80bf311e177f58c178111dabc121d53
4343
workflow:
4444
workflowVersion: 1.0.0
4545
speakeasyVersion: v1.751.1

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ We have dedicated SDKs for the following providers:
276276
* [list](docs/sdks/connectors/README.md#list) - List all connectors.
277277
* [getAuthUrl](docs/sdks/connectors/README.md#getauthurl) - Get the auth URL for a connector.
278278
* [callTool](docs/sdks/connectors/README.md#calltool) - Call Connector Tool
279+
* [listTools](docs/sdks/connectors/README.md#listtools) - List tools for a connector.
279280
* [get](docs/sdks/connectors/README.md#get) - Get a connector.
280281
* [update](docs/sdks/connectors/README.md#update) - Update a connector.
281282
* [delete](docs/sdks/connectors/README.md#delete) - Delete a connector.
@@ -634,8 +635,8 @@ run();
634635

635636

636637
**Inherit from [`MistralError`](./src/models/errors/mistralerror.ts)**:
637-
* [`HTTPValidationError`](./src/models/errors/httpvalidationerror.ts): Validation Error. Status code `422`. Applicable to 68 of 130 methods.*
638-
* [`ObservabilityError`](./src/models/errors/observabilityerror.ts): Bad Request - Invalid request parameters or data. Applicable to 41 of 130 methods.*
638+
* [`HTTPValidationError`](./src/models/errors/httpvalidationerror.ts): Validation Error. Status code `422`. Applicable to 69 of 131 methods.*
639+
* [`ObservabilityError`](./src/models/errors/observabilityerror.ts): Bad Request - Invalid request parameters or data. Applicable to 41 of 131 methods.*
639640
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
640641

641642
</details>
@@ -833,6 +834,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
833834
- [`betaConnectorsGet`](docs/sdks/connectors/README.md#get) - Get a connector.
834835
- [`betaConnectorsGetAuthUrl`](docs/sdks/connectors/README.md#getauthurl) - Get the auth URL for a connector.
835836
- [`betaConnectorsList`](docs/sdks/connectors/README.md#list) - List all connectors.
837+
- [`betaConnectorsListTools`](docs/sdks/connectors/README.md#listtools) - List tools for a connector.
836838
- [`betaConnectorsUpdate`](docs/sdks/connectors/README.md#update) - Update a connector.
837839
- [`betaConversationsAppend`](docs/sdks/conversations/README.md#append) - Append new entries to an existing conversation.
838840
- [`betaConversationsAppendStream`](docs/sdks/conversations/README.md#appendstream) - Append new entries to an existing conversation.

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,4 +358,14 @@ Based on:
358358
### Generated
359359
- [typescript v2.1.1] .
360360
### Releases
361-
- [NPM v2.1.1] https://www.npmjs.com/package/@mistralai/mistralai/v/2.1.1 - .
361+
- [NPM v2.1.1] https://www.npmjs.com/package/@mistralai/mistralai/v/2.1.1 - .
362+
363+
## 2026-03-23 14:33:33
364+
### Changes
365+
Based on:
366+
- OpenAPI Doc
367+
- Speakeasy CLI 1.751.1 (2.859.0) https://github.com/speakeasy-api/speakeasy
368+
### Generated
369+
- [typescript v2.1.2] .
370+
### Releases
371+
- [NPM v2.1.2] https://www.npmjs.com/package/@mistralai/mistralai/v/2.1.2 - .

docs/models/components/connectortool.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@ import { ConnectorTool } from "@mistralai/mistralai/models/components";
88
let value: ConnectorTool = {
99
id: "<id>",
1010
name: "<value>",
11-
description:
12-
"naturally usher immaculate deck yet wicked dampen gadzooks yuck stay",
11+
description: "who acidic since now lazily",
1312
executionConfig: {
1413
type: "<value>",
1514
},
1615
visibility: "shared_org",
17-
createdAt: new Date("2026-01-04T16:47:49.652Z"),
18-
modifiedAt: new Date("2026-10-23T13:08:04.213Z"),
16+
createdAt: new Date("2025-09-16T20:43:35.562Z"),
17+
modifiedAt: new Date("2026-10-28T04:35:49.624Z"),
1918
};
2019
```
2120

docs/models/components/mcptool.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# MCPTool
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { MCPTool } from "@mistralai/mistralai/models/components";
7+
8+
let value: MCPTool = {
9+
name: "<value>",
10+
inputSchema: {
11+
"key": "<value>",
12+
"key1": "<value>",
13+
"key2": "<value>",
14+
},
15+
};
16+
```
17+
18+
## Fields
19+
20+
| Field | Type | Required | Description |
21+
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
22+
| `name` | *string* | :heavy_check_mark: | N/A |
23+
| `title` | *string* | :heavy_minus_sign: | N/A |
24+
| `description` | *string* | :heavy_minus_sign: | N/A |
25+
| `inputSchema` | Record<string, *any*> | :heavy_check_mark: | N/A |
26+
| `outputSchema` | Record<string, *any*> | :heavy_minus_sign: | N/A |
27+
| `icons` | [components.MCPServerIcon](../../models/components/mcpservericon.md)[] | :heavy_minus_sign: | N/A |
28+
| `annotations` | [components.ToolAnnotations](../../models/components/toolannotations.md) | :heavy_minus_sign: | N/A |
29+
| `meta` | [components.MCPToolMeta](../../models/components/mcptoolmeta.md) | :heavy_minus_sign: | N/A |
30+
| `execution` | [components.ToolExecution](../../models/components/toolexecution.md) | :heavy_minus_sign: | N/A |
31+
| `additionalProperties` | Record<string, *any*> | :heavy_minus_sign: | N/A |
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MCPToolMeta
2+
3+
Typed _meta for MCP tools.
4+
5+
Only the 'ui' field is typed. Other fields are allowed via extra="allow".
6+
7+
## Example Usage
8+
9+
```typescript
10+
import { MCPToolMeta } from "@mistralai/mistralai/models/components";
11+
12+
let value: MCPToolMeta = {};
13+
```
14+
15+
## Fields
16+
17+
| Field | Type | Required | Description |
18+
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
19+
| `ui` | [components.MCPUIToolMeta](../../models/components/mcpuitoolmeta.md) | :heavy_minus_sign: | N/A |
20+
| `aiMistralTurbine` | [components.TurbineToolMeta](../../models/components/turbinetoolmeta.md) | :heavy_minus_sign: | N/A |
21+
| `additionalProperties` | Record<string, *any*> | :heavy_minus_sign: | N/A |
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# MCPUIToolMeta
2+
3+
UI metadata for tools that reference UI resources.
4+
5+
## Example Usage
6+
7+
```typescript
8+
import { MCPUIToolMeta } from "@mistralai/mistralai/models/components";
9+
10+
let value: MCPUIToolMeta = {};
11+
```
12+
13+
## Fields
14+
15+
| Field | Type | Required | Description |
16+
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
17+
| `resourceUri` | *string* | :heavy_minus_sign: | N/A |
18+
| `visibility` | [components.Visibility](../../models/components/visibility.md)[] | :heavy_minus_sign: | N/A |
19+
| `additionalProperties` | Record<string, *any*> | :heavy_minus_sign: | N/A |
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# TaskSupport
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { TaskSupport } from "@mistralai/mistralai/models/components";
7+
8+
let value: TaskSupport = "required";
9+
10+
// Open enum: unrecognized values are captured as Unrecognized<string>
11+
```
12+
13+
## Values
14+
15+
```typescript
16+
"forbidden" | "optional" | "required" | Unrecognized<string>
17+
```

0 commit comments

Comments
 (0)