Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.438.1 (#46)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Nov 12, 2024
1 parent 8f86876 commit 7f1d28b
Show file tree
Hide file tree
Showing 46 changed files with 219 additions and 64 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 81b65c50-f2e3-40a3-bd65-346524007b3d
management:
docChecksum: ee15d853ecc28d415d6b33191893a6ff
docChecksum: 87f5a2bcfbc64bec79241e2b0de25b9f
docVersion: 0.0.2
speakeasyVersion: 1.434.4
generationVersion: 2.452.0
releaseVersion: 1.3.0
configChecksum: d6bf2d23bd8b094865db557c870ba6fc
speakeasyVersion: 1.438.1
generationVersion: 2.457.2
releaseVersion: 1.3.1
configChecksum: 592c371e12e0bb88cff133b730e6b426
repoURL: https://github.com/mistralai/client-ts.git
installationURL: https://github.com/mistralai/client-ts
published: true
Expand Down
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
typescript:
version: 1.3.0
version: 1.3.1
additionalDependencies:
dependencies: {}
devDependencies: {}
peerDependencies: {}
additionalPackageJSON: {}
author: Speakeasy
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
enumFormat: union
envVarPrefix: MISTRAL
flattenGlobalSecurity: true
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:
- main
mistral-openapi:
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:e658442ebfc83351cbb7873fb17b03f07ff9edebd8eddfce5577e2c5c7bfafce
sourceBlobDigest: sha256:559403eaaa97c021eaf0022adddb1066694d879a946c87057e942806d5a2a2a2
sourceRevisionDigest: sha256:e44702b93f6a8ac450f1d85b4197f6640f8efb3d5e06be98418ea79acd8f70be
sourceBlobDigest: sha256:94a9891a3bdf3fafea5c41cee226c5e366c206e91e39e734cd2d1163af74f688
tags:
- latest
- main
Expand All @@ -39,10 +39,10 @@ targets:
mistralai-sdk:
source: mistral-openapi
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:e658442ebfc83351cbb7873fb17b03f07ff9edebd8eddfce5577e2c5c7bfafce
sourceBlobDigest: sha256:559403eaaa97c021eaf0022adddb1066694d879a946c87057e942806d5a2a2a2
sourceRevisionDigest: sha256:e44702b93f6a8ac450f1d85b4197f6640f8efb3d5e06be98418ea79acd8f70be
sourceBlobDigest: sha256:94a9891a3bdf3fafea5c41cee226c5e366c206e91e39e734cd2d1163af74f688
codeSamplesNamespace: mistral-openapi-code-samples
codeSamplesRevisionDigest: sha256:040e9e9020d7edd595d15e2879b2bc64e21dc00bea1952375373fef9e132f2fe
codeSamplesRevisionDigest: sha256:e11c906b44a1097fb47e0ced237d00da922a4a69c0a86283f18d391814915d42
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,10 @@ If a HTTP request fails, an operation my also throw an error from the `models/er

In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `list` method may throw the following errors:

| Error Type | Status Code | Content Type |
| -------------------------- | -------------------------- | -------------------------- |
| errors.HTTPValidationError | 422 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |
| Error Type | Status Code | Content Type |
| -------------------------- | ----------- | ---------------- |
| errors.HTTPValidationError | 422 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |

```typescript
import { Mistral } from "@mistralai/mistralai";
Expand Down Expand Up @@ -492,11 +492,13 @@ Validation errors can also occur when either method arguments or data returned f

### Select Server by Name

You can override the default server globally by passing a server name to the `server` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
You can override the default server globally by passing a server name to the `server: keyof typeof ServerList` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:

| Name | Server | Variables |
| ----- | ------ | --------- |
| `eu` | `https://api.mistral.ai` | None |
| Name | Server |
| ---- | ------------------------ |
| `eu` | `https://api.mistral.ai` |

#### Example

```typescript
import { Mistral } from "@mistralai/mistralai";
Expand All @@ -517,11 +519,9 @@ run();

```


### Override Server URL Per-Client

The default server can also be overridden globally by passing a URL to the `serverURL` optional parameter when initializing the SDK client instance. For example:

The default server can also be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:
```typescript
import { Mistral } from "@mistralai/mistralai";

Expand Down Expand Up @@ -598,9 +598,9 @@ const sdk = new Mistral({ httpClient });

This SDK supports the following security scheme globally:

| Name | Type | Scheme | Environment Variable |
| -------------------- | -------------------- | -------------------- | -------------------- |
| `apiKey` | http | HTTP Bearer | `MISTRAL_API_KEY` |
| Name | Type | Scheme | Environment Variable |
| -------- | ---- | ----------- | -------------------- |
| `apiKey` | http | HTTP Bearer | `MISTRAL_API_KEY` |

To authenticate with the API the `apiKey` parameter must be set when initializing the SDK client instance. For example:
```typescript
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,14 @@ Based on:
### Generated
- [typescript v1.3.0] .
### Releases
- [NPM v1.3.0] https://www.npmjs.com/package/@mistralai/mistralai/v/1.3.0 - .
- [NPM v1.3.0] https://www.npmjs.com/package/@mistralai/mistralai/v/1.3.0 - .

## 2024-11-12 18:04:57
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.438.1 (2.457.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.3.1] .
### Releases
- [NPM v1.3.1] https://www.npmjs.com/package/@mistralai/mistralai/v/1.3.1 - .
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@mistralai/mistralai",
"version": "1.3.0",
"version": "1.3.1",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mistralai/mistralai",
"version": "1.3.0",
"version": "1.3.1",
"author": "Speakeasy",
"main": "./index.js",
"sideEffects": false,
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/agentsComplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export async function agentsComplete(
const context = {
operationID: "agents_completion_v1_agents_completions_post",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/agentsStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export async function agentsStream(
const context = {
operationID: "stream_agents",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/batchJobsCancel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export async function batchJobsCancel(
const context = {
operationID: "jobs_api_routes_batch_cancel_batch_job",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/batchJobsCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ export async function batchJobsCreate(
const context = {
operationID: "jobs_api_routes_batch_create_batch_job",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/batchJobsGet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export async function batchJobsGet(
const context = {
operationID: "jobs_api_routes_batch_get_batch_job",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/batchJobsList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ export async function batchJobsList(
const context = {
operationID: "jobs_api_routes_batch_get_batch_jobs",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/chatComplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export async function chatComplete(
const context = {
operationID: "chat_completion_v1_chat_completions_post",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/chatStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export async function chatStream(
const context = {
operationID: "stream_chat",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/classifiersModerate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export async function classifiersModerate(
const context = {
operationID: "moderations_v1_moderations_post",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/classifiersModerateChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ export async function classifiersModerateChat(
const context = {
operationID: "moderations_chat_v1_chat_moderations_post",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/embeddingsCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export async function embeddingsCreate(
const context = {
operationID: "embeddings_v1_embeddings_post",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/filesDelete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export async function filesDelete(
const context = {
operationID: "files_api_routes_delete_file",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/filesDownload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export async function filesDownload(
const context = {
operationID: "files_api_routes_download_file",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/filesList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ export async function filesList(
const context = {
operationID: "files_api_routes_list_files",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/filesRetrieve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export async function filesRetrieve(
const context = {
operationID: "files_api_routes_retrieve_file",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/filesUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ export async function filesUpload(
const context = {
operationID: "files_api_routes_upload_file",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/fimComplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export async function fimComplete(
const context = {
operationID: "fim_completion_v1_fim_completions_post",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/fimStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export async function fimStream(
const context = {
operationID: "stream_fim",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/fineTuningJobsCancel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ export async function fineTuningJobsCancel(
const context = {
operationID: "jobs_api_routes_fine_tuning_cancel_fine_tuning_job",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/fineTuningJobsCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ export async function fineTuningJobsCreate(
const context = {
operationID: "jobs_api_routes_fine_tuning_create_fine_tuning_job",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/fineTuningJobsGet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export async function fineTuningJobsGet(
const context = {
operationID: "jobs_api_routes_fine_tuning_get_fine_tuning_job",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/fineTuningJobsList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ export async function fineTuningJobsList(
const context = {
operationID: "jobs_api_routes_fine_tuning_get_fine_tuning_jobs",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
3 changes: 3 additions & 0 deletions src/funcs/fineTuningJobsStart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export async function fineTuningJobsStart(
const context = {
operationID: "jobs_api_routes_fine_tuning_start_fine_tuning_job",
oAuth2Scopes: [],

resolvedSecurity: requestSecurity,

securitySource: client._options.apiKey,
retryConfig: options?.retries
|| client._options.retryConfig
Expand Down
Loading

0 comments on commit 7f1d28b

Please sign in to comment.