diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 6e74fac..b3ea35b 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,8 +9,8 @@ sources: - main mistral-google-cloud-source: sourceNamespace: mistral-google-cloud-source - sourceRevisionDigest: sha256:d3e3d15303dcc1acb27b8895aa3064328bd5b8013ea635c2bce553b6e647b498 - sourceBlobDigest: sha256:db72004ee842a27c3e77980be28a727811e0581daa7a51ad34d142302f8ba2f3 + sourceRevisionDigest: sha256:e0fd58ce2dbba068f375d3a23d758b8678c2a68cf4fc7bc46ea7e1b37abe0647 + sourceBlobDigest: sha256:0707d8d2566a9ef4ef286bb0abe467f8696ccf83ba73091065d7caf627a06611 tags: - latest - main @@ -32,10 +32,10 @@ targets: mistralai-gcp-sdk: source: mistral-google-cloud-source sourceNamespace: mistral-google-cloud-source - sourceRevisionDigest: sha256:d3e3d15303dcc1acb27b8895aa3064328bd5b8013ea635c2bce553b6e647b498 - sourceBlobDigest: sha256:db72004ee842a27c3e77980be28a727811e0581daa7a51ad34d142302f8ba2f3 + sourceRevisionDigest: sha256:e0fd58ce2dbba068f375d3a23d758b8678c2a68cf4fc7bc46ea7e1b37abe0647 + sourceBlobDigest: sha256:0707d8d2566a9ef4ef286bb0abe467f8696ccf83ba73091065d7caf627a06611 codeSamplesNamespace: mistral-openapi-google-cloud-code-samples - codeSamplesRevisionDigest: sha256:5dc48a4ede0443945c76f9c50a0f87da055605d2599ee64ba4953553cc0ec1c5 + codeSamplesRevisionDigest: sha256:dcd570ea409fb05ebf2bf4008aa9e53ee63154e80cea88fb396aa65c69aa786c mistralai-sdk: source: mistral-openapi sourceNamespace: mistral-openapi diff --git a/packages/mistralai-gcp/.speakeasy/gen.lock b/packages/mistralai-gcp/.speakeasy/gen.lock index c3d55ac..a734bd7 100644 --- a/packages/mistralai-gcp/.speakeasy/gen.lock +++ b/packages/mistralai-gcp/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: c6044247-eaf9-46da-b078-0e1334e93be2 management: - docChecksum: e6c0a4254e61b1f171b409862f717867 + docChecksum: d50a06ac34844141709fa2e57cc940c5 docVersion: 0.0.2 speakeasyVersion: 1.438.1 generationVersion: 2.457.2 - releaseVersion: 1.3.4 - configChecksum: dda464868f797196bfe7e83112f0516b + releaseVersion: 1.4.0 + configChecksum: 73e9418ba7737f8803cf83fc9e56d5d4 repoURL: https://github.com/mistralai/client-ts.git repoSubDirectory: packages/mistralai-gcp installationURL: https://gitpkg.now.sh/mistralai/client-ts/packages/mistralai-gcp @@ -198,3 +198,4 @@ examples: "200": application/json: {"id": "cmpl-e5cc70bb28c444948073e77776eb30ef", "object": "chat.completion", "model": "codestral-latest", "usage": {"prompt_tokens": 16, "completion_tokens": 34, "total_tokens": 50}, "created": 1702256327, "choices": [{"index": 0, "finish_reason": "stop"}, {"index": 0, "finish_reason": "stop"}, {"index": 0, "finish_reason": "stop"}]} "422": {} +generatedTests: {} diff --git a/packages/mistralai-gcp/.speakeasy/gen.yaml b/packages/mistralai-gcp/.speakeasy/gen.yaml index ceba8b8..328578b 100644 --- a/packages/mistralai-gcp/.speakeasy/gen.yaml +++ b/packages/mistralai-gcp/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false typescript: - version: 1.3.4 + version: 1.4.0 additionalDependencies: dependencies: google-auth-library: ^9.11.0 @@ -23,6 +23,7 @@ typescript: author: Speakeasy clientServerStatusCodesAsErrors: true defaultErrorName: SDKError + enableReactQuery: false enumFormat: union flattenGlobalSecurity: true flatteningOrder: body-first diff --git a/packages/mistralai-gcp/RELEASES.md b/packages/mistralai-gcp/RELEASES.md index 0694891..b73e286 100644 --- a/packages/mistralai-gcp/RELEASES.md +++ b/packages/mistralai-gcp/RELEASES.md @@ -78,4 +78,14 @@ Based on: ### Generated - [typescript v1.3.4] packages/mistralai-gcp ### Releases -- [NPM v1.3.4] https://www.npmjs.com/package/@mistralai/mistralai-gcp/v/1.3.4 - packages/mistralai-gcp \ No newline at end of file +- [NPM v1.3.4] https://www.npmjs.com/package/@mistralai/mistralai-gcp/v/1.3.4 - packages/mistralai-gcp + +## 2024-12-02 14:25:33 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.438.1 (2.457.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v1.4.0] packages/mistralai-gcp +### Releases +- [NPM v1.4.0] https://www.npmjs.com/package/@mistralai/mistralai-gcp/v/1.4.0 - packages/mistralai-gcp \ No newline at end of file diff --git a/packages/mistralai-gcp/docs/models/components/referencechunk.md b/packages/mistralai-gcp/docs/models/components/referencechunk.md index a932028..c6c4cfe 100644 --- a/packages/mistralai-gcp/docs/models/components/referencechunk.md +++ b/packages/mistralai-gcp/docs/models/components/referencechunk.md @@ -16,5 +16,5 @@ let value: ReferenceChunk = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `type` | [components.ReferenceChunkType](../../models/components/referencechunktype.md) | :heavy_minus_sign: | N/A | -| `referenceIds` | *number*[] | :heavy_check_mark: | N/A | \ No newline at end of file +| `referenceIds` | *number*[] | :heavy_check_mark: | N/A | +| `type` | [components.ReferenceChunkType](../../models/components/referencechunktype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/packages/mistralai-gcp/docs/models/components/textchunk.md b/packages/mistralai-gcp/docs/models/components/textchunk.md index 9319ad9..a3cb8dc 100644 --- a/packages/mistralai-gcp/docs/models/components/textchunk.md +++ b/packages/mistralai-gcp/docs/models/components/textchunk.md @@ -14,5 +14,5 @@ let value: TextChunk = { | Field | Type | Required | Description | | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `type` | [components.Type](../../models/components/type.md) | :heavy_minus_sign: | N/A | -| `text` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `text` | *string* | :heavy_check_mark: | N/A | +| `type` | [components.Type](../../models/components/type.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/packages/mistralai-gcp/jsr.json b/packages/mistralai-gcp/jsr.json index c478c83..071caab 100644 --- a/packages/mistralai-gcp/jsr.json +++ b/packages/mistralai-gcp/jsr.json @@ -2,7 +2,7 @@ { "name": "@mistralai/mistralai-gcp", - "version": "1.3.4", + "version": "1.4.0", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/packages/mistralai-gcp/package-lock.json b/packages/mistralai-gcp/package-lock.json index 49766ca..96a3316 100644 --- a/packages/mistralai-gcp/package-lock.json +++ b/packages/mistralai-gcp/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mistralai/mistralai-gcp", - "version": "1.3.4", + "version": "1.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mistralai/mistralai-gcp", - "version": "1.3.4", + "version": "1.4.0", "dependencies": { "google-auth-library": "^9.11.0" }, diff --git a/packages/mistralai-gcp/package.json b/packages/mistralai-gcp/package.json index 6c19cc1..7993933 100644 --- a/packages/mistralai-gcp/package.json +++ b/packages/mistralai-gcp/package.json @@ -1,6 +1,6 @@ { "name": "@mistralai/mistralai-gcp", - "version": "1.3.4", + "version": "1.4.0", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, diff --git a/packages/mistralai-gcp/src/lib/config.ts b/packages/mistralai-gcp/src/lib/config.ts index 6383f34..6c9bac7 100644 --- a/packages/mistralai-gcp/src/lib/config.ts +++ b/packages/mistralai-gcp/src/lib/config.ts @@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.2", - sdkVersion: "1.3.4", + sdkVersion: "1.4.0", genVersion: "2.457.2", userAgent: - "speakeasy-sdk/typescript 1.3.4 2.457.2 0.0.2 @mistralai/mistralai-gcp", + "speakeasy-sdk/typescript 1.4.0 2.457.2 0.0.2 @mistralai/mistralai-gcp", } as const; diff --git a/packages/mistralai-gcp/src/models/components/referencechunk.ts b/packages/mistralai-gcp/src/models/components/referencechunk.ts index d245ce3..41e21e6 100644 --- a/packages/mistralai-gcp/src/models/components/referencechunk.ts +++ b/packages/mistralai-gcp/src/models/components/referencechunk.ts @@ -12,8 +12,8 @@ export const ReferenceChunkType = { export type ReferenceChunkType = ClosedEnum; export type ReferenceChunk = { - type?: "reference" | undefined; referenceIds: Array; + type?: ReferenceChunkType | undefined; }; /** @internal */ @@ -43,8 +43,8 @@ export const ReferenceChunk$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: z.literal("reference").default("reference"), reference_ids: z.array(z.number().int()), + type: ReferenceChunkType$inboundSchema.default("reference"), }).transform((v) => { return remap$(v, { "reference_ids": "referenceIds", @@ -53,8 +53,8 @@ export const ReferenceChunk$inboundSchema: z.ZodType< /** @internal */ export type ReferenceChunk$Outbound = { - type: "reference"; reference_ids: Array; + type: string; }; /** @internal */ @@ -63,8 +63,8 @@ export const ReferenceChunk$outboundSchema: z.ZodType< z.ZodTypeDef, ReferenceChunk > = z.object({ - type: z.literal("reference").default("reference"), referenceIds: z.array(z.number().int()), + type: ReferenceChunkType$outboundSchema.default("reference"), }).transform((v) => { return remap$(v, { referenceIds: "reference_ids", diff --git a/packages/mistralai-gcp/src/models/components/textchunk.ts b/packages/mistralai-gcp/src/models/components/textchunk.ts index 456e0fd..ec00ab9 100644 --- a/packages/mistralai-gcp/src/models/components/textchunk.ts +++ b/packages/mistralai-gcp/src/models/components/textchunk.ts @@ -11,8 +11,8 @@ export const Type = { export type Type = ClosedEnum; export type TextChunk = { - type?: "text" | undefined; text: string; + type?: Type | undefined; }; /** @internal */ @@ -41,14 +41,14 @@ export const TextChunk$inboundSchema: z.ZodType< z.ZodTypeDef, unknown > = z.object({ - type: z.literal("text").default("text"), text: z.string(), + type: Type$inboundSchema.default("text"), }); /** @internal */ export type TextChunk$Outbound = { - type: "text"; text: string; + type: string; }; /** @internal */ @@ -57,8 +57,8 @@ export const TextChunk$outboundSchema: z.ZodType< z.ZodTypeDef, TextChunk > = z.object({ - type: z.literal("text").default("text"), text: z.string(), + type: Type$outboundSchema.default("text"), }); /**