Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: 🐝 Update SDK - Generate MISTRALAI-GCP-SDK 1.4.0 #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
7 changes: 4 additions & 3 deletions packages/mistralai-gcp/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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: {}
3 changes: 2 additions & 1 deletion packages/mistralai-gcp/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -23,6 +23,7 @@ typescript:
author: Speakeasy
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
enableReactQuery: false
enumFormat: union
flattenGlobalSecurity: true
flatteningOrder: body-first
Expand Down
12 changes: 11 additions & 1 deletion packages/mistralai-gcp/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
- [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
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| `referenceIds` | *number*[] | :heavy_check_mark: | N/A |
| `type` | [components.ReferenceChunkType](../../models/components/referencechunktype.md) | :heavy_minus_sign: | N/A |
4 changes: 2 additions & 2 deletions packages/mistralai-gcp/docs/models/components/textchunk.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| `text` | *string* | :heavy_check_mark: | N/A |
| `type` | [components.Type](../../models/components/type.md) | :heavy_minus_sign: | N/A |
2 changes: 1 addition & 1 deletion packages/mistralai-gcp/jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/mistralai-gcp/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 packages/mistralai-gcp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mistralai/mistralai-gcp",
"version": "1.3.4",
"version": "1.4.0",
"author": "Speakeasy",
"main": "./index.js",
"sideEffects": false,
Expand Down
4 changes: 2 additions & 2 deletions packages/mistralai-gcp/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export const ReferenceChunkType = {
export type ReferenceChunkType = ClosedEnum<typeof ReferenceChunkType>;

export type ReferenceChunk = {
type?: "reference" | undefined;
referenceIds: Array<number>;
type?: ReferenceChunkType | undefined;
};

/** @internal */
Expand Down Expand Up @@ -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",
Expand All @@ -53,8 +53,8 @@ export const ReferenceChunk$inboundSchema: z.ZodType<

/** @internal */
export type ReferenceChunk$Outbound = {
type: "reference";
reference_ids: Array<number>;
type: string;
};

/** @internal */
Expand All @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions packages/mistralai-gcp/src/models/components/textchunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export const Type = {
export type Type = ClosedEnum<typeof Type>;

export type TextChunk = {
type?: "text" | undefined;
text: string;
type?: Type | undefined;
};

/** @internal */
Expand Down Expand Up @@ -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 */
Expand All @@ -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"),
});

/**
Expand Down