diff --git a/package.json b/package.json index b6f73089..5d33aed7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cohere-ai", - "version": "7.17.1", + "version": "8.0.0", "private": false, "repository": "https://github.com/cohere-ai/cohere-typescript", "main": "./index.js", diff --git a/reference.md b/reference.md index 26969785..6d4f9dd8 100644 --- a/reference.md +++ b/reference.md @@ -59,7 +59,7 @@ await client.checkApiKey(); ## V2 -
client.v2.chatStream({ ...params }) -> core.Stream +
client.v2.chatStream({ ...params }) -> core.Stream
@@ -71,7 +71,7 @@ await client.checkApiKey();
-Generates a text response to a user message. To learn how to use the Chat API and RAG follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api). +Generates a text response to a user message and streams it down, token by token. To learn how to use the Chat API with streaming follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api). Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2. @@ -90,12 +90,11 @@ Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) ```typescript const response = await client.v2.chatStream({ - model: "model", + model: "command-r", messages: [ { - role: "tool", - toolCallId: "messages", - content: "messages", + role: "user", + content: "Hello!", }, ], }); @@ -136,7 +135,7 @@ for await (const item of response) {
-
client.v2.chat({ ...params }) -> Cohere.ChatResponse +
client.v2.chat({ ...params }) -> Cohere.V2ChatResponse
@@ -167,12 +166,11 @@ Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) ```typescript await client.v2.chat({ - model: "model", + model: "command-r", messages: [ { - role: "tool", - toolCallId: "messages", - content: "messages", + role: "user", + content: "Tell me about LLMs", }, ], }); @@ -243,9 +241,12 @@ If you want to learn more how to use the embedding model, have a look at the [Se ```typescript await client.v2.embed({ - model: "model", - inputType: "search_document", + model: "embed-english-v3.0", + inputType: "image", embeddingTypes: ["float"], + images: [ + "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAfQ29tcHJlc3N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G49UVVtzAGjbRH6cq90TxGvdE8RoW0Q7M6Cqu5VA9kVrNLvC5DvNRWEa75CWPIUqqgyVQB5bVzarMCy7n7++mUoxVhkRtW9tPdypBbRNJI3BVFYf0FdlWTErnQP24uP5JqLojgUYyNqznvZ2q46GYLKDq0khPejk/8ArOsU6HX1irTWre8xDeQBk4/FHduPtALEKozJq3skjAaQaT/wOqv4NJdco3jj6bNtby3c8VtAulJIwVRWCYJb4PbKqqGnYDWSdpPcPLZ6V9HEmikxOxjAlQaUqL9Q7x5+2xgCrrmG8/p9OrIDAg8CKkTQd07iRsdBcPV3ucSkX9H9KP1O8naIBBBG410gsBh2K3MCDKNjrE/2tSLpuqDtIFKAqhRwA6y9GVw/mAdjohEEwK2I4u0jH/Lb6exgXljL2tEwP9pq0GdzF69bfHO4fyAGx0ScPgVpl9JkB/yO309cG6w9O0ROeZq3bQnib/UOsJyBJqV9ZI7952Ogl8DDdYezfEra1B5HcdvpTfC+xicoc44QIl/t4/z7LaUTRK3bwPr1d9PoJqlPxN/A2cOvpsNvIbyA/Eh3jvHaDWHYjbYnapdWzgg/qHap7js9JseTDLZreBwbuVSAB9AP1GiSSSeJ9ltcGB8/pPEUjq6hlOYPU3FykC97dgp3aRi7HMnaw3FbzCptdaSZeJDvVh5isO6aYdcqq3gNvJ25705ikxXDJAGS/gI/5FqfHMIt10pb+H0DBjyGdYr03XRaLCojnw1sg/6FTTSzyPNNIXkc5szHMnYhuJIDmh3doPCo7+F9z5oaE0R4SrzrWR/cXnWsj+4vOtZH9xeYrWx/cXmKe6gTjID6b6lxAnMQrl5mmYsSzEkn92//2Q==", + ], }); ``` @@ -310,9 +311,16 @@ This endpoint takes in a query and a list of texts and produces an ordered array ```typescript await client.v2.rerank({ - model: "model", - query: "query", - documents: ["documents"], + documents: [ + "Carson City is the capital city of the American state of Nevada.", + "The Commonwealth of the Northern Mariana Islands is a group of islands in the Pacific Ocean. Its capital is Saipan.", + "Capitalization or capitalisation in English grammar is the use of a capital letter at the start of a word. English usage varies from capitalization in other languages.", + "Washington, D.C. (also known as simply Washington or D.C., and officially as the District of Columbia) is the capital of the United States. It is a federal district.", + "Capital punishment has existed in the United States since beforethe United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states.", + ], + query: "What is the capital of the United States?", + topN: 3, + model: "rerank-v3.5", }); ``` @@ -1355,7 +1363,7 @@ Returns the details of a model, provided its name.
```typescript -await client.models.get("command-a-03-2025"); +await client.models.get("command-r"); ```
diff --git a/src/Client.ts b/src/Client.ts index 7584905d..46aa5e6f 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -74,8 +74,7 @@ export class CohereClient { } /** - * Generates a streamed text response to a user message. - * + * Generates a text response to a user message. * To learn how to use the Chat API and RAG follow our [Text Generation guides](https://docs.cohere.com/docs/chat-api). */ public async chatStream( @@ -97,8 +96,8 @@ export class CohereClient { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, Accepts: accepts != null ? accepts : undefined, @@ -150,21 +149,59 @@ export class CohereClient { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -201,7 +238,6 @@ export class CohereClient { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -210,14 +246,61 @@ export class CohereClient { * * @example * await client.chat({ - * message: "Can you give me a global market overview of solar panels?", * chatHistory: [{ - * role: "TOOL" + * role: "USER", + * message: "Who discovered gravity?" * }, { - * role: "TOOL" + * role: "CHATBOT", + * message: "The man who is widely credited with discovering gravity is Sir Isaac Newton" * }], - * promptTruncation: "OFF", - * temperature: 0.3 + * message: "What year was he born?", + * connectors: [{ + * id: "web-search" + * }] + * }) + * + * @example + * await client.chat({ + * message: "Who is more popular: Nsync or Backstreet Boys?", + * documents: [{ + * "title": "CSPC: Backstreet Boys Popularity Analysis - ChartMasters", + * "snippet": "\u2193 Skip to Main Content\n\nMusic industry \u2013 One step closer to being accurate\n\nCSPC: Backstreet Boys Popularity Analysis\n\nHern\u00E1n Lopez Posted on February 9, 2017 Posted in CSPC 72 Comments Tagged with Backstreet Boys, Boy band\n\nAt one point, Backstreet Boys defined success: massive albums sales across the globe, great singles sales, plenty of chart topping releases, hugely hyped tours and tremendous media coverage.\n\nIt is true that they benefited from extraordinarily good market conditions in all markets. After all, the all-time record year for the music business, as far as revenues in billion dollars are concerned, was actually 1999. That is, back when this five men group was at its peak." + * }, { + * "title": "CSPC: NSYNC Popularity Analysis - ChartMasters", + * "snippet": "\u2193 Skip to Main Content\n\nMusic industry \u2013 One step closer to being accurate\n\nCSPC: NSYNC Popularity Analysis\n\nMJD Posted on February 9, 2018 Posted in CSPC 27 Comments Tagged with Boy band, N'Sync\n\nAt the turn of the millennium three teen acts were huge in the US, the Backstreet Boys, Britney Spears and NSYNC. The latter is the only one we haven\u2019t study so far. It took 15 years and Adele to break their record of 2,4 million units sold of No Strings Attached in its first week alone.\n\nIt wasn\u2019t a fluke, as the second fastest selling album of the Soundscan era prior 2015, was also theirs since Celebrity debuted with 1,88 million units sold." + * }, { + * "title": "CSPC: Backstreet Boys Popularity Analysis - ChartMasters", + * "snippet": "1997, 1998, 2000 and 2001 also rank amongst some of the very best years.\nYet the way many music consumers \u2013 especially teenagers and young women\u2019s \u2013 embraced their output deserves its own chapter. If Jonas Brothers and more recently One Direction reached a great level of popularity during the past decade, the type of success achieved by Backstreet Boys is in a completely different level as they really dominated the business for a few years all over the world, including in some countries that were traditionally hard to penetrate for Western artists.\n\nWe will try to analyze the extent of that hegemony with this new article with final results which will more than surprise many readers." + * }, { + * "title": "CSPC: NSYNC Popularity Analysis - ChartMasters", + * "snippet": "Was the teen group led by Justin Timberlake really that big? Was it only in the US where they found success? Or were they a global phenomenon?\nAs usual, I\u2019ll be using the Commensurate Sales to Popularity Concept in order to relevantly gauge their results. This concept will not only bring you sales information for all NSYNC\u2018s albums, physical and download singles, as well as audio and video streaming, but it will also determine their true popularity. If you are not yet familiar with the CSPC method, the next page explains it with a short video. I fully recommend watching the video before getting into the sales figures." + * }] + * }) + * + * @example + * await client.chat({ + * message: "Can you provide a sales summary for 29th September 2023, and also give me some details about the products in the 'Electronics' category, for example their prices and stock levels?", + * tools: [{ + * name: "query_daily_sales_report", + * description: "Connects to a database to retrieve overall sales volumes and sales information for a given day.", + * parameterDefinitions: { + * "day": { + * description: "Retrieves sales data for this day, formatted as YYYY-MM-DD.", + * type: "str", + * required: true + * } + * } + * }, { + * name: "query_product_catalog", + * description: "Connects to a a product catalog with information about all the products being sold, including categories, prices, and stock levels.", + * parameterDefinitions: { + * "category": { + * description: "Retrieves product information data for all products in this category.", + * type: "str", + * required: true + * } + * } + * }] * }) */ public async chat( @@ -239,8 +322,8 @@ export class CohereClient { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, Accepts: accepts != null ? accepts : undefined, @@ -281,21 +364,59 @@ export class CohereClient { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -321,7 +442,7 @@ export class CohereClient { /** * - * This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](https://docs.cohere.com/docs/migrating-from-cogenerate-to-cochat) to start using the Chat with Streaming API. + * This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](https://docs.cohere.com/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API. * * Generates realistic text conditioned on a given input. */ @@ -343,8 +464,8 @@ export class CohereClient { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -395,21 +516,59 @@ export class CohereClient { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -448,7 +607,6 @@ export class CohereClient { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -478,8 +636,8 @@ export class CohereClient { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -519,21 +677,59 @@ export class CohereClient { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -573,7 +769,6 @@ export class CohereClient { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -581,7 +776,19 @@ export class CohereClient { * @throws {@link Cohere.GatewayTimeoutError} * * @example - * await client.embed() + * await client.embed({ + * model: "embed-english-v3.0", + * inputType: "image", + * embeddingTypes: ["float"], + * images: ["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAfQ29tcHJlc3NlZCBieSBqcGVnLXJlY29tcHJlc3P/2wCEAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRER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WTErnQP24uP5JqLojgUYyNqznvZ2q46GYLKDq0khPejk/8ArOsU6HX1irTWre8xDeQBk4/FHduPtALEKozJq3skjAaQaT/wOqv4NJdco3jj6bNtby3c8VtAulJIwVRWCYJb4PbKqqGnYDWSdpPcPLZ6V9HEmikxOxjAlQaUqL9Q7x5+2xgCrrmG8/p9OrIDAg8CKkTQd07iRsdBcPV3ucSkX9H9KP1O8naIBBBG410gsBh2K3MCDKNjrE/2tSLpuqDtIFKAqhRwA6y9GVw/mAdjohEEwK2I4u0jH/Lb6exgXljL2tEwP9pq0GdzF69bfHO4fyAGx0ScPgVpl9JkB/yO309cG6w9O0ROeZq3bQnib/UOsJyBJqV9ZI7952Ogl8DDdYezfEra1B5HcdvpTfC+xicoc44QIl/t4/z7LaUTRK3bwPr1d9PoJqlPxN/A2cOvpsNvIbyA/Eh3jvHaDWHYjbYnapdWzgg/qHap7js9JseTDLZreBwbuVSAB9AP1GiSSSeJ9ltcGB8/pPEUjq6hlOYPU3FykC97dgp3aRi7HMnaw3FbzCptdaSZeJDvVh5isO6aYdcqq3gNvJ25705ikxXDJAGS/gI/5FqfHMIt10pb+H0DBjyGdYr03XRaLCojnw1sg/6FTTSzyPNNIXkc5szHMnYhuJIDmh3doPCo7+F9z5oaE0R4SrzrWR/cXnWsj+4vOtZH9xeYrWx/cXmKe6gTjID6b6lxAnMQrl5mmYsSzEkn92//2Q=="] + * }) + * + * @example + * await client.embed({ + * texts: ["hello", "goodbye"], + * model: "embed-english-v3.0", + * inputType: "classification" + * }) */ public async embed( request: Cohere.EmbedRequest = {}, @@ -601,8 +808,8 @@ export class CohereClient { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -639,21 +846,59 @@ export class CohereClient { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -689,7 +934,6 @@ export class CohereClient { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -698,8 +942,20 @@ export class CohereClient { * * @example * await client.rerank({ - * query: "query", - * documents: ["documents"] + * documents: [{ + * "text": "Carson City is the capital city of the American state of Nevada." + * }, { + * "text": "The Commonwealth of the Northern Mariana Islands is a group of islands in the Pacific Ocean. Its capital is Saipan." + * }, { + * "text": "Capitalization or capitalisation in English grammar is the use of a capital letter at the start of a word. English usage varies from capitalization in other languages." + * }, { + * "text": "Washington, D.C. (also known as simply Washington or D.C., and officially as the District of Columbia) is the capital of the United States. It is a federal district." + * }, { + * "text": "Capital punishment has existed in the United States since beforethe United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states." + * }], + * query: "What is the capital of the United States?", + * topN: 3, + * model: "rerank-v3.5" * }) */ public async rerank( @@ -720,8 +976,8 @@ export class CohereClient { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -758,21 +1014,59 @@ export class CohereClient { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -809,7 +1103,6 @@ export class CohereClient { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -818,7 +1111,38 @@ export class CohereClient { * * @example * await client.classify({ - * inputs: ["inputs"] + * examples: [{ + * text: "Dermatologists don't like her!", + * label: "Spam" + * }, { + * text: "'Hello, open to this?'", + * label: "Spam" + * }, { + * text: "I need help please wire me $1000 right now", + * label: "Spam" + * }, { + * text: "Nice to know you ;)", + * label: "Spam" + * }, { + * text: "Please help me?", + * label: "Spam" + * }, { + * text: "Your parcel will be delivered today", + * label: "Not spam" + * }, { + * text: "Review changes to our Terms and Conditions", + * label: "Not spam" + * }, { + * text: "Weekly sync notes", + * label: "Not spam" + * }, { + * text: "'Re: Follow up from today's meeting'", + * label: "Not spam" + * }, { + * text: "Pre-read for tomorrow", + * label: "Not spam" + * }], + * inputs: ["Confirm your email address", "hey i need u to send some $"] * }) */ public async classify( @@ -839,8 +1163,8 @@ export class CohereClient { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -877,21 +1201,59 @@ export class CohereClient { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -930,7 +1292,6 @@ export class CohereClient { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -939,7 +1300,7 @@ export class CohereClient { * * @example * await client.summarize({ - * text: "text" + * text: "Ice cream is a sweetened frozen food typically eaten as a snack or dessert. It may be made from milk or cream and is flavoured with a sweetener, either sugar or an alternative, and a spice, such as cocoa or vanilla, or with fruit such as strawberries or peaches. It can also be made by whisking a flavored cream base and liquid nitrogen together. Food coloring is sometimes added, in addition to stabilizers. The mixture is cooled below the freezing point of water and stirred to incorporate air spaces and to prevent detectable ice crystals from forming. The result is a smooth, semi-solid foam that is solid at very low temperatures (below 2 \u00B0C or 35 \u00B0F). It becomes more malleable as its temperature increases.\n\nThe meaning of the name \"ice cream\" varies from one country to another. In some countries, such as the United States, \"ice cream\" applies only to a specific variety, and most governments regulate the commercial use of the various terms according to the relative quantities of the main ingredients, notably the amount of cream. Products that do not meet the criteria to be called ice cream are sometimes labelled \"frozen dairy dessert\" instead. In other countries, such as Italy and Argentina, one word is used fo\r all variants. Analogues made from dairy alternatives, such as goat's or sheep's milk, or milk substitutes (e.g., soy, cashew, coconut, almond milk or tofu), are available for those who are lactose intolerant, allergic to dairy protein or vegan." * }) */ public async summarize( @@ -960,8 +1321,8 @@ export class CohereClient { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -998,21 +1359,59 @@ export class CohereClient { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -1048,7 +1447,6 @@ export class CohereClient { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -1079,8 +1477,8 @@ export class CohereClient { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -1117,21 +1515,59 @@ export class CohereClient { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -1167,7 +1603,6 @@ export class CohereClient { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -1176,8 +1611,8 @@ export class CohereClient { * * @example * await client.detokenize({ - * tokens: [1], - * model: "model" + * tokens: [10002, 2261, 2012, 8, 2792, 43], + * model: "command" * }) */ public async detokenize( @@ -1198,8 +1633,8 @@ export class CohereClient { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -1236,21 +1671,59 @@ export class CohereClient { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -1285,7 +1758,6 @@ export class CohereClient { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -1310,8 +1782,8 @@ export class CohereClient { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -1343,21 +1815,59 @@ export class CohereClient { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, diff --git a/src/api/client/requests/ChatRequest.ts b/src/api/client/requests/ChatRequest.ts index ad16e2de..f65704f8 100644 --- a/src/api/client/requests/ChatRequest.ts +++ b/src/api/client/requests/ChatRequest.ts @@ -7,14 +7,61 @@ import * as Cohere from "../../index"; /** * @example * { - * message: "Can you give me a global market overview of solar panels?", * chatHistory: [{ - * role: "TOOL" + * role: "USER", + * message: "Who discovered gravity?" * }, { - * role: "TOOL" + * role: "CHATBOT", + * message: "The man who is widely credited with discovering gravity is Sir Isaac Newton" * }], - * promptTruncation: "OFF", - * temperature: 0.3 + * message: "What year was he born?", + * connectors: [{ + * id: "web-search" + * }] + * } + * + * @example + * { + * message: "Who is more popular: Nsync or Backstreet Boys?", + * documents: [{ + * "title": "CSPC: Backstreet Boys Popularity Analysis - ChartMasters", + * "snippet": "\u2193 Skip to Main Content\n\nMusic industry \u2013 One step closer to being accurate\n\nCSPC: Backstreet Boys Popularity Analysis\n\nHern\u00E1n Lopez Posted on February 9, 2017 Posted in CSPC 72 Comments Tagged with Backstreet Boys, Boy band\n\nAt one point, Backstreet Boys defined success: massive albums sales across the globe, great singles sales, plenty of chart topping releases, hugely hyped tours and tremendous media coverage.\n\nIt is true that they benefited from extraordinarily good market conditions in all markets. After all, the all-time record year for the music business, as far as revenues in billion dollars are concerned, was actually 1999. That is, back when this five men group was at its peak." + * }, { + * "title": "CSPC: NSYNC Popularity Analysis - ChartMasters", + * "snippet": "\u2193 Skip to Main Content\n\nMusic industry \u2013 One step closer to being accurate\n\nCSPC: NSYNC Popularity Analysis\n\nMJD Posted on February 9, 2018 Posted in CSPC 27 Comments Tagged with Boy band, N'Sync\n\nAt the turn of the millennium three teen acts were huge in the US, the Backstreet Boys, Britney Spears and NSYNC. The latter is the only one we haven\u2019t study so far. It took 15 years and Adele to break their record of 2,4 million units sold of No Strings Attached in its first week alone.\n\nIt wasn\u2019t a fluke, as the second fastest selling album of the Soundscan era prior 2015, was also theirs since Celebrity debuted with 1,88 million units sold." + * }, { + * "title": "CSPC: Backstreet Boys Popularity Analysis - ChartMasters", + * "snippet": "1997, 1998, 2000 and 2001 also rank amongst some of the very best years.\nYet the way many music consumers \u2013 especially teenagers and young women\u2019s \u2013 embraced their output deserves its own chapter. If Jonas Brothers and more recently One Direction reached a great level of popularity during the past decade, the type of success achieved by Backstreet Boys is in a completely different level as they really dominated the business for a few years all over the world, including in some countries that were traditionally hard to penetrate for Western artists.\n\nWe will try to analyze the extent of that hegemony with this new article with final results which will more than surprise many readers." + * }, { + * "title": "CSPC: NSYNC Popularity Analysis - ChartMasters", + * "snippet": "Was the teen group led by Justin Timberlake really that big? Was it only in the US where they found success? Or were they a global phenomenon?\nAs usual, I\u2019ll be using the Commensurate Sales to Popularity Concept in order to relevantly gauge their results. This concept will not only bring you sales information for all NSYNC\u2018s albums, physical and download singles, as well as audio and video streaming, but it will also determine their true popularity. If you are not yet familiar with the CSPC method, the next page explains it with a short video. I fully recommend watching the video before getting into the sales figures." + * }] + * } + * + * @example + * { + * message: "Can you provide a sales summary for 29th September 2023, and also give me some details about the products in the 'Electronics' category, for example their prices and stock levels?", + * tools: [{ + * name: "query_daily_sales_report", + * description: "Connects to a database to retrieve overall sales volumes and sales information for a given day.", + * parameterDefinitions: { + * "day": { + * description: "Retrieves sales data for this day, formatted as YYYY-MM-DD.", + * type: "str", + * required: true + * } + * } + * }, { + * name: "query_product_catalog", + * description: "Connects to a a product catalog with information about all the products being sold, including categories, prices, and stock levels.", + * parameterDefinitions: { + * "category": { + * description: "Retrieves product information data for all products in this category.", + * type: "str", + * required: true + * } + * } + * }] * } */ export interface ChatRequest { @@ -30,6 +77,8 @@ export interface ChatRequest { */ message: string; /** + * Defaults to `command-r-plus-08-2024`. + * * The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model. * * Compatible Deployments: Cohere Platform, Private Deployments @@ -212,16 +261,6 @@ export interface ChatRequest { * */ presencePenalty?: number; - /** - * When enabled, the user's prompt will be sent to the model without - * any pre-processing. - * - * Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments - * - */ - rawPrompting?: boolean; - /** The prompt is returned in the `prompt` response field when this is enabled. */ - returnPrompt?: boolean; /** * A list of available tools (functions) that the model may suggest invoking before producing a text response. * @@ -267,9 +306,9 @@ export interface ChatRequest { * * Safety modes are not yet configurable in combination with `tools`, `tool_results` and `documents` parameters. * - * **Note**: This parameter is only compatible newer Cohere models, starting with [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release) and [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release). + * **Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release) and newer. * - * **Note**: `command-r7b-12-2024` and newer models only support `"CONTEXTUAL"` and `"STRICT"` modes. + * **Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes. * * Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments * diff --git a/src/api/client/requests/ChatStreamRequest.ts b/src/api/client/requests/ChatStreamRequest.ts index d2b95372..e8f6560a 100644 --- a/src/api/client/requests/ChatStreamRequest.ts +++ b/src/api/client/requests/ChatStreamRequest.ts @@ -7,14 +7,7 @@ import * as Cohere from "../../index"; /** * @example * { - * message: "Can you give me a global market overview of solar panels?", - * chatHistory: [{ - * role: "TOOL" - * }, { - * role: "TOOL" - * }], - * promptTruncation: "OFF", - * temperature: 0.3 + * message: "hello world!" * } */ export interface ChatStreamRequest { @@ -30,6 +23,8 @@ export interface ChatStreamRequest { */ message: string; /** + * Defaults to `command-r-plus-08-2024`. + * * The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model. * * Compatible Deployments: Cohere Platform, Private Deployments @@ -212,16 +207,6 @@ export interface ChatStreamRequest { * */ presencePenalty?: number; - /** - * When enabled, the user's prompt will be sent to the model without - * any pre-processing. - * - * Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments - * - */ - rawPrompting?: boolean; - /** The prompt is returned in the `prompt` response field when this is enabled. */ - returnPrompt?: boolean; /** * A list of available tools (functions) that the model may suggest invoking before producing a text response. * @@ -267,9 +252,9 @@ export interface ChatStreamRequest { * * Safety modes are not yet configurable in combination with `tools`, `tool_results` and `documents` parameters. * - * **Note**: This parameter is only compatible newer Cohere models, starting with [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release) and [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release). + * **Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release) and newer. * - * **Note**: `command-r7b-12-2024` and newer models only support `"CONTEXTUAL"` and `"STRICT"` modes. + * **Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes. * * Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments * diff --git a/src/api/client/requests/ClassifyRequest.ts b/src/api/client/requests/ClassifyRequest.ts index a7fd35d4..740f107f 100644 --- a/src/api/client/requests/ClassifyRequest.ts +++ b/src/api/client/requests/ClassifyRequest.ts @@ -7,7 +7,38 @@ import * as Cohere from "../../index"; /** * @example * { - * inputs: ["inputs"] + * examples: [{ + * text: "Dermatologists don't like her!", + * label: "Spam" + * }, { + * text: "'Hello, open to this?'", + * label: "Spam" + * }, { + * text: "I need help please wire me $1000 right now", + * label: "Spam" + * }, { + * text: "Nice to know you ;)", + * label: "Spam" + * }, { + * text: "Please help me?", + * label: "Spam" + * }, { + * text: "Your parcel will be delivered today", + * label: "Not spam" + * }, { + * text: "Review changes to our Terms and Conditions", + * label: "Not spam" + * }, { + * text: "Weekly sync notes", + * label: "Not spam" + * }, { + * text: "'Re: Follow up from today's meeting'", + * label: "Not spam" + * }, { + * text: "Pre-read for tomorrow", + * label: "Not spam" + * }], + * inputs: ["Confirm your email address", "hey i need u to send some $"] * } */ export interface ClassifyRequest { @@ -22,7 +53,7 @@ export interface ClassifyRequest { * Note: [Fine-tuned Models](https://docs.cohere.com/docs/classify-fine-tuning) trained on classification examples don't require the `examples` parameter to be passed in explicitly. */ examples?: Cohere.ClassifyExample[]; - /** ID of a [Fine-tuned](https://docs.cohere.com/v2/docs/classify-starting-the-training) Classify model */ + /** The identifier of the model. Currently available models are `embed-multilingual-v2.0`, `embed-english-light-v2.0`, and `embed-english-v2.0` (default). Smaller "light" models are faster, while larger models will perform better. [Fine-tuned models](https://docs.cohere.com/docs/fine-tuning) can also be supplied with their full ID. */ model?: string; /** The ID of a custom playground preset. You can create presets in the [playground](https://dashboard.cohere.com/playground/classify?model=large). If you use a preset, all other parameters become optional, and any included parameters will override the preset's parameters. */ preset?: string; diff --git a/src/api/client/requests/DetokenizeRequest.ts b/src/api/client/requests/DetokenizeRequest.ts index 9bc622e6..2b1a2def 100644 --- a/src/api/client/requests/DetokenizeRequest.ts +++ b/src/api/client/requests/DetokenizeRequest.ts @@ -5,8 +5,8 @@ /** * @example * { - * tokens: [1], - * model: "model" + * tokens: [10002, 2261, 2012, 8, 2792, 43], + * model: "command" * } */ export interface DetokenizeRequest { diff --git a/src/api/client/requests/EmbedRequest.ts b/src/api/client/requests/EmbedRequest.ts index 0868472e..c0838828 100644 --- a/src/api/client/requests/EmbedRequest.ts +++ b/src/api/client/requests/EmbedRequest.ts @@ -6,7 +6,19 @@ import * as Cohere from "../../index"; /** * @example - * {} + * { + * model: "embed-english-v3.0", + * inputType: "image", + * embeddingTypes: ["float"], + * images: ["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAfQ29tcHJlc3NlZCBieSBqcGVnLXJlY29tcHJlc3P/2wCEAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFwBBAQEBAQEBAQEBAYGBQYGCAcHBwcIDAkJCQkJDBMMDgwMDgwTERQQDxAUER4XFRUXHiIdGx0iKiUlKjQyNEREXP/CABEIAZABkAMBIgACEQEDEQH/xAAdAAEAAQQDAQAAAAAAAAAAAAAABwEFBggCAwQJ/9oAC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qL9Q7x5+2xgCrrmG8/p9OrIDAg8CKkTQd07iRsdBcPV3ucSkX9H9KP1O8naIBBBG410gsBh2K3MCDKNjrE/2tSLpuqDtIFKAqhRwA6y9GVw/mAdjohEEwK2I4u0jH/Lb6exgXljL2tEwP9pq0GdzF69bfHO4fyAGx0ScPgVpl9JkB/yO309cG6w9O0ROeZq3bQnib/UOsJyBJqV9ZI7952Ogl8DDdYezfEra1B5HcdvpTfC+xicoc44QIl/t4/z7LaUTRK3bwPr1d9PoJqlPxN/A2cOvpsNvIbyA/Eh3jvHaDWHYjbYnapdWzgg/qHap7js9JseTDLZreBwbuVSAB9AP1GiSSSeJ9ltcGB8/pPEUjq6hlOYPU3FykC97dgp3aRi7HMnaw3FbzCptdaSZeJDvVh5isO6aYdcqq3gNvJ25705ikxXDJAGS/gI/5FqfHMIt10pb+H0DBjyGdYr03XRaLCojnw1sg/6FTTSzyPNNIXkc5szHMnYhuJIDmh3doPCo7+F9z5oaE0R4SrzrWR/cXnWsj+4vOtZH9xeYrWx/cXmKe6gTjID6b6lxAnMQrl5mmYsSzEkn92//2Q=="] + * } + * + * @example + * { + * texts: ["hello", "goodbye"], + * model: "embed-english-v3.0", + * inputType: "classification" + * } */ export interface EmbedRequest { /** An array of strings for the model to embed. Maximum number of texts per call is `96`. We recommend reducing the length of each text to be under `512` tokens for optimal quality. */ diff --git a/src/api/client/requests/GenerateStreamRequest.ts b/src/api/client/requests/GenerateStreamRequest.ts index 4d2b3f97..08e93e54 100644 --- a/src/api/client/requests/GenerateStreamRequest.ts +++ b/src/api/client/requests/GenerateStreamRequest.ts @@ -7,7 +7,22 @@ import * as Cohere from "../../index"; /** * @example * { - * prompt: "Please explain to me how LLMs work" + * prompt: "string", + * model: "string", + * numGenerations: 1, + * maxTokens: 1, + * truncate: "NONE", + * temperature: 1.1, + * seed: 1, + * preset: "string", + * endSequences: ["string"], + * stopSequences: ["string"], + * k: 1, + * p: 1.1, + * frequencyPenalty: 1.1, + * presencePenalty: 1.1, + * returnLikelihoods: "GENERATION", + * rawPrompting: true * } */ export interface GenerateStreamRequest { diff --git a/src/api/client/requests/RerankRequest.ts b/src/api/client/requests/RerankRequest.ts index 92e36c54..8358ce9b 100644 --- a/src/api/client/requests/RerankRequest.ts +++ b/src/api/client/requests/RerankRequest.ts @@ -7,8 +7,20 @@ import * as Cohere from "../../index"; /** * @example * { - * query: "query", - * documents: ["documents"] + * documents: [{ + * "text": "Carson City is the capital city of the American state of Nevada." + * }, { + * "text": "The Commonwealth of the Northern Mariana Islands is a group of islands in the Pacific Ocean. Its capital is Saipan." + * }, { + * "text": "Capitalization or capitalisation in English grammar is the use of a capital letter at the start of a word. English usage varies from capitalization in other languages." + * }, { + * "text": "Washington, D.C. (also known as simply Washington or D.C., and officially as the District of Columbia) is the capital of the United States. It is a federal district." + * }, { + * "text": "Capital punishment has existed in the United States since beforethe United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states." + * }], + * query: "What is the capital of the United States?", + * topN: 3, + * model: "rerank-v3.5" * } */ export interface RerankRequest { diff --git a/src/api/client/requests/SummarizeRequest.ts b/src/api/client/requests/SummarizeRequest.ts index ac448421..c581afce 100644 --- a/src/api/client/requests/SummarizeRequest.ts +++ b/src/api/client/requests/SummarizeRequest.ts @@ -7,7 +7,7 @@ import * as Cohere from "../../index"; /** * @example * { - * text: "text" + * text: "Ice cream is a sweetened frozen food typically eaten as a snack or dessert. It may be made from milk or cream and is flavoured with a sweetener, either sugar or an alternative, and a spice, such as cocoa or vanilla, or with fruit such as strawberries or peaches. It can also be made by whisking a flavored cream base and liquid nitrogen together. Food coloring is sometimes added, in addition to stabilizers. The mixture is cooled below the freezing point of water and stirred to incorporate air spaces and to prevent detectable ice crystals from forming. The result is a smooth, semi-solid foam that is solid at very low temperatures (below 2 \u00B0C or 35 \u00B0F). It becomes more malleable as its temperature increases.\n\nThe meaning of the name \"ice cream\" varies from one country to another. In some countries, such as the United States, \"ice cream\" applies only to a specific variety, and most governments regulate the commercial use of the various terms according to the relative quantities of the main ingredients, notably the amount of cream. Products that do not meet the criteria to be called ice cream are sometimes labelled \"frozen dairy dessert\" instead. In other countries, such as Italy and Argentina, one word is used fo\r all variants. Analogues made from dairy alternatives, such as goat's or sheep's milk, or milk substitutes (e.g., soy, cashew, coconut, almond milk or tofu), are available for those who are lactose intolerant, allergic to dairy protein or vegan." * } */ export interface SummarizeRequest { diff --git a/src/api/errors/ClientClosedRequestError.ts b/src/api/errors/ClientClosedRequestError.ts index 1c6f3d52..aebadb27 100644 --- a/src/api/errors/ClientClosedRequestError.ts +++ b/src/api/errors/ClientClosedRequestError.ts @@ -3,9 +3,10 @@ */ import * as errors from "../../errors/index"; +import * as Cohere from "../index"; export class ClientClosedRequestError extends errors.CohereError { - constructor(body?: unknown) { + constructor(body: Cohere.ClientClosedRequestErrorBody) { super({ message: "ClientClosedRequestError", statusCode: 499, diff --git a/src/api/errors/GatewayTimeoutError.ts b/src/api/errors/GatewayTimeoutError.ts index 2cf3fe7a..45d9667a 100644 --- a/src/api/errors/GatewayTimeoutError.ts +++ b/src/api/errors/GatewayTimeoutError.ts @@ -3,9 +3,10 @@ */ import * as errors from "../../errors/index"; +import * as Cohere from "../index"; export class GatewayTimeoutError extends errors.CohereError { - constructor(body?: unknown) { + constructor(body: Cohere.GatewayTimeoutErrorBody) { super({ message: "GatewayTimeoutError", statusCode: 504, diff --git a/src/api/errors/InvalidTokenError.ts b/src/api/errors/InvalidTokenError.ts deleted file mode 100644 index e3f4cfd4..00000000 --- a/src/api/errors/InvalidTokenError.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as errors from "../../errors/index"; - -export class InvalidTokenError extends errors.CohereError { - constructor(body?: unknown) { - super({ - message: "InvalidTokenError", - statusCode: 498, - body: body, - }); - Object.setPrototypeOf(this, InvalidTokenError.prototype); - } -} diff --git a/src/api/errors/NotImplementedError.ts b/src/api/errors/NotImplementedError.ts index e0f57e30..091027ba 100644 --- a/src/api/errors/NotImplementedError.ts +++ b/src/api/errors/NotImplementedError.ts @@ -3,9 +3,10 @@ */ import * as errors from "../../errors/index"; +import * as Cohere from "../index"; export class NotImplementedError extends errors.CohereError { - constructor(body?: unknown) { + constructor(body: Cohere.NotImplementedErrorBody) { super({ message: "NotImplementedError", statusCode: 501, diff --git a/src/api/errors/TooManyRequestsError.ts b/src/api/errors/TooManyRequestsError.ts index 525080b5..c7fdf0d6 100644 --- a/src/api/errors/TooManyRequestsError.ts +++ b/src/api/errors/TooManyRequestsError.ts @@ -3,9 +3,10 @@ */ import * as errors from "../../errors/index"; +import * as Cohere from "../index"; export class TooManyRequestsError extends errors.CohereError { - constructor(body?: unknown) { + constructor(body: Cohere.TooManyRequestsErrorBody) { super({ message: "TooManyRequestsError", statusCode: 429, diff --git a/src/api/errors/UnprocessableEntityError.ts b/src/api/errors/UnprocessableEntityError.ts index 5bde21b6..a7c30c81 100644 --- a/src/api/errors/UnprocessableEntityError.ts +++ b/src/api/errors/UnprocessableEntityError.ts @@ -3,9 +3,10 @@ */ import * as errors from "../../errors/index"; +import * as Cohere from "../index"; export class UnprocessableEntityError extends errors.CohereError { - constructor(body?: unknown) { + constructor(body: Cohere.UnprocessableEntityErrorBody) { super({ message: "UnprocessableEntityError", statusCode: 422, diff --git a/src/api/errors/index.ts b/src/api/errors/index.ts index 651fac27..cb601a98 100644 --- a/src/api/errors/index.ts +++ b/src/api/errors/index.ts @@ -4,7 +4,6 @@ export * from "./ForbiddenError"; export * from "./NotFoundError"; export * from "./UnprocessableEntityError"; export * from "./TooManyRequestsError"; -export * from "./InvalidTokenError"; export * from "./ClientClosedRequestError"; export * from "./InternalServerError"; export * from "./NotImplementedError"; diff --git a/src/api/resources/connectors/client/Client.ts b/src/api/resources/connectors/client/Client.ts index 3e2e97a9..129138b9 100644 --- a/src/api/resources/connectors/client/Client.ts +++ b/src/api/resources/connectors/client/Client.ts @@ -47,7 +47,6 @@ export class Connectors { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -85,8 +84,8 @@ export class Connectors { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -119,21 +118,59 @@ export class Connectors { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -169,7 +206,6 @@ export class Connectors { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -200,8 +236,8 @@ export class Connectors { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -238,21 +274,59 @@ export class Connectors { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -288,7 +362,6 @@ export class Connectors { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -313,8 +386,8 @@ export class Connectors { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -346,21 +419,59 @@ export class Connectors { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -396,7 +507,6 @@ export class Connectors { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -424,8 +534,8 @@ export class Connectors { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -457,21 +567,59 @@ export class Connectors { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -508,7 +656,6 @@ export class Connectors { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -537,8 +684,8 @@ export class Connectors { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -575,21 +722,59 @@ export class Connectors { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -614,7 +799,7 @@ export class Connectors { } /** - * Authorize the connector with the given ID for the connector oauth app. See ['Connector Authentication'](https://docs.cohere.com/docs/connector-authentication) for more information. + * Authorize the connector with the given ID for the connector oauth app. See ['Connector Authentication'](https://docs.cohere.com/docs/connector-authentication) for more information. * * @param {string} id - The ID of the connector to authorize. * @param {Cohere.ConnectorsOAuthAuthorizeRequest} request @@ -626,7 +811,6 @@ export class Connectors { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -661,8 +845,8 @@ export class Connectors { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -695,21 +879,59 @@ export class Connectors { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, diff --git a/src/api/resources/datasets/client/Client.ts b/src/api/resources/datasets/client/Client.ts index 38540f2f..f992dff1 100644 --- a/src/api/resources/datasets/client/Client.ts +++ b/src/api/resources/datasets/client/Client.ts @@ -49,7 +49,6 @@ export class Datasets { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -103,8 +102,8 @@ export class Datasets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -137,21 +136,59 @@ export class Datasets { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -189,7 +226,6 @@ export class Datasets { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -243,10 +279,6 @@ export class Datasets { _queryParams["csv_delimiter"] = request.csvDelimiter; } - if (request.dryRun != null) { - _queryParams["dry_run"] = request.dryRun.toString(); - } - const _request = await core.newFormData(); await _request.appendFile("data", data); if (evalData != null) { @@ -268,8 +300,8 @@ export class Datasets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ..._maybeEncodedRequest.headers, @@ -304,21 +336,59 @@ export class Datasets { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -353,7 +423,6 @@ export class Datasets { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -378,8 +447,8 @@ export class Datasets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -411,21 +480,59 @@ export class Datasets { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -461,7 +568,6 @@ export class Datasets { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -486,8 +592,8 @@ export class Datasets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -519,21 +625,59 @@ export class Datasets { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -569,7 +713,6 @@ export class Datasets { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -594,8 +737,8 @@ export class Datasets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -627,21 +770,59 @@ export class Datasets { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, diff --git a/src/api/resources/datasets/client/requests/DatasetsCreateRequest.ts b/src/api/resources/datasets/client/requests/DatasetsCreateRequest.ts index 21f4845c..ac72803c 100644 --- a/src/api/resources/datasets/client/requests/DatasetsCreateRequest.ts +++ b/src/api/resources/datasets/client/requests/DatasetsCreateRequest.ts @@ -44,8 +44,4 @@ export interface DatasetsCreateRequest { * The delimiter used for .csv uploads. */ csvDelimiter?: string; - /** - * flag to enable dry_run mode - */ - dryRun?: boolean; } diff --git a/src/api/resources/datasets/types/DatasetsCreateResponseDatasetPartsItem.ts b/src/api/resources/datasets/types/DatasetsCreateResponseDatasetPartsItem.ts deleted file mode 100644 index adcc1d6c..00000000 --- a/src/api/resources/datasets/types/DatasetsCreateResponseDatasetPartsItem.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * the underlying files that make up the dataset - */ -export interface DatasetsCreateResponseDatasetPartsItem { - /** the name of the dataset part */ - name?: string; - /** the number of rows in the dataset part */ - numRows?: number; - samples?: string[]; - /** the kind of dataset part */ - partKind?: string; -} diff --git a/src/api/resources/datasets/types/index.ts b/src/api/resources/datasets/types/index.ts index cc2e2520..54dc414b 100644 --- a/src/api/resources/datasets/types/index.ts +++ b/src/api/resources/datasets/types/index.ts @@ -1,5 +1,4 @@ export * from "./DatasetsListResponse"; -export * from "./DatasetsCreateResponseDatasetPartsItem"; export * from "./DatasetsCreateResponse"; export * from "./DatasetsGetUsageResponse"; export * from "./DatasetsGetResponse"; diff --git a/src/api/resources/embedJobs/client/Client.ts b/src/api/resources/embedJobs/client/Client.ts index 84511ff1..3cd87994 100644 --- a/src/api/resources/embedJobs/client/Client.ts +++ b/src/api/resources/embedJobs/client/Client.ts @@ -46,7 +46,6 @@ export class EmbedJobs { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -71,8 +70,8 @@ export class EmbedJobs { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -104,21 +103,59 @@ export class EmbedJobs { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -154,7 +191,6 @@ export class EmbedJobs { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -186,8 +222,8 @@ export class EmbedJobs { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -224,21 +260,59 @@ export class EmbedJobs { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -274,7 +348,6 @@ export class EmbedJobs { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -299,8 +372,8 @@ export class EmbedJobs { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -332,21 +405,59 @@ export class EmbedJobs { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -382,7 +493,6 @@ export class EmbedJobs { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -407,8 +517,8 @@ export class EmbedJobs { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -434,21 +544,59 @@ export class EmbedJobs { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, diff --git a/src/api/resources/finetuning/client/Client.ts b/src/api/resources/finetuning/client/Client.ts index bbbffb14..5d848479 100644 --- a/src/api/resources/finetuning/client/Client.ts +++ b/src/api/resources/finetuning/client/Client.ts @@ -84,8 +84,8 @@ export class Finetuning { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -186,8 +186,8 @@ export class Finetuning { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -284,8 +284,8 @@ export class Finetuning { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -377,8 +377,8 @@ export class Finetuning { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -480,8 +480,8 @@ export class Finetuning { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -594,8 +594,8 @@ export class Finetuning { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -700,8 +700,8 @@ export class Finetuning { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/finetuning/client/requests/FinetuningListEventsRequest.ts b/src/api/resources/finetuning/client/requests/FinetuningListEventsRequest.ts index 0d771bfc..b96e5bd4 100644 --- a/src/api/resources/finetuning/client/requests/FinetuningListEventsRequest.ts +++ b/src/api/resources/finetuning/client/requests/FinetuningListEventsRequest.ts @@ -8,8 +8,7 @@ */ export interface FinetuningListEventsRequest { /** - * Maximum number of results to be returned by the server. If 0, defaults to - * 50. + * Maximum number of results to be returned by the server. If 0, defaults to 50. */ pageSize?: number; /** @@ -22,7 +21,8 @@ export interface FinetuningListEventsRequest { * " desc" to the field name. For example: "created_at desc,name". * * Supported sorting fields: - * - created_at (default) + * + * - created_at (default) */ orderBy?: string; } diff --git a/src/api/resources/finetuning/client/requests/FinetuningListFinetunedModelsRequest.ts b/src/api/resources/finetuning/client/requests/FinetuningListFinetunedModelsRequest.ts index 48ea8b27..833f92db 100644 --- a/src/api/resources/finetuning/client/requests/FinetuningListFinetunedModelsRequest.ts +++ b/src/api/resources/finetuning/client/requests/FinetuningListFinetunedModelsRequest.ts @@ -8,8 +8,7 @@ */ export interface FinetuningListFinetunedModelsRequest { /** - * Maximum number of results to be returned by the server. If 0, defaults to - * 50. + * Maximum number of results to be returned by the server. If 0, defaults to 50. */ pageSize?: number; /** @@ -22,7 +21,8 @@ export interface FinetuningListFinetunedModelsRequest { * " desc" to the field name. For example: "created_at desc,name". * * Supported sorting fields: - * - created_at (default) + * + * - created_at (default) */ orderBy?: string; } diff --git a/src/api/resources/finetuning/client/requests/FinetuningListTrainingStepMetricsRequest.ts b/src/api/resources/finetuning/client/requests/FinetuningListTrainingStepMetricsRequest.ts index b9661fec..535c0b83 100644 --- a/src/api/resources/finetuning/client/requests/FinetuningListTrainingStepMetricsRequest.ts +++ b/src/api/resources/finetuning/client/requests/FinetuningListTrainingStepMetricsRequest.ts @@ -8,8 +8,7 @@ */ export interface FinetuningListTrainingStepMetricsRequest { /** - * Maximum number of results to be returned by the server. If 0, defaults to - * 50. + * Maximum number of results to be returned by the server. If 0, defaults to 50. */ pageSize?: number; /** diff --git a/src/api/resources/finetuning/resources/finetuning/types/BaseType.ts b/src/api/resources/finetuning/resources/finetuning/types/BaseType.ts index 20b88699..3482f187 100644 --- a/src/api/resources/finetuning/resources/finetuning/types/BaseType.ts +++ b/src/api/resources/finetuning/resources/finetuning/types/BaseType.ts @@ -5,11 +5,11 @@ /** * The possible types of fine-tuned models. * - * - BASE_TYPE_UNSPECIFIED: Unspecified model. - * - BASE_TYPE_GENERATIVE: Deprecated: Generative model. - * - BASE_TYPE_CLASSIFICATION: Classification model. - * - BASE_TYPE_RERANK: Rerank model. - * - BASE_TYPE_CHAT: Chat model. + * - BASE_TYPE_UNSPECIFIED: Unspecified model. + * - BASE_TYPE_GENERATIVE: Deprecated: Generative model. + * - BASE_TYPE_CLASSIFICATION: Classification model. + * - BASE_TYPE_RERANK: Rerank model. + * - BASE_TYPE_CHAT: Chat model. */ export type BaseType = | "BASE_TYPE_UNSPECIFIED" diff --git a/src/api/resources/finetuning/resources/finetuning/types/LoraTargetModules.ts b/src/api/resources/finetuning/resources/finetuning/types/LoraTargetModules.ts index b3c17c8b..4a503750 100644 --- a/src/api/resources/finetuning/resources/finetuning/types/LoraTargetModules.ts +++ b/src/api/resources/finetuning/resources/finetuning/types/LoraTargetModules.ts @@ -5,10 +5,10 @@ /** * The possible combinations of LoRA modules to target. * - * - LORA_TARGET_MODULES_UNSPECIFIED: Unspecified LoRA target modules. - * - LORA_TARGET_MODULES_QV: LoRA adapts the query and value matrices in transformer attention layers. - * - LORA_TARGET_MODULES_QKVO: LoRA adapts query, key, value, and output matrices in attention layers. - * - LORA_TARGET_MODULES_QKVO_FFN: LoRA adapts attention projection matrices and feed-forward networks (FFN). + * - LORA_TARGET_MODULES_UNSPECIFIED: Unspecified LoRA target modules. + * - LORA_TARGET_MODULES_QV: LoRA adapts the query and value matrices in transformer attention layers. + * - LORA_TARGET_MODULES_QKVO: LoRA adapts query, key, value, and output matrices in attention layers. + * - LORA_TARGET_MODULES_QKVO_FFN: LoRA adapts attention projection matrices and feed-forward networks (FFN). */ export type LoraTargetModules = | "LORA_TARGET_MODULES_UNSPECIFIED" diff --git a/src/api/resources/finetuning/resources/finetuning/types/Status.ts b/src/api/resources/finetuning/resources/finetuning/types/Status.ts index 04f72b89..6a76d4c7 100644 --- a/src/api/resources/finetuning/resources/finetuning/types/Status.ts +++ b/src/api/resources/finetuning/resources/finetuning/types/Status.ts @@ -5,15 +5,15 @@ /** * The possible stages of a fine-tuned model life-cycle. * - * - STATUS_UNSPECIFIED: Unspecified status. - * - STATUS_FINETUNING: The fine-tuned model is being fine-tuned. - * - STATUS_DEPLOYING_API: Deprecated: The fine-tuned model is being deployed. - * - STATUS_READY: The fine-tuned model is ready to receive requests. - * - STATUS_FAILED: The fine-tuned model failed. - * - STATUS_DELETED: The fine-tuned model was deleted. - * - STATUS_TEMPORARILY_OFFLINE: Deprecated: The fine-tuned model is temporarily unavailable. - * - STATUS_PAUSED: Deprecated: The fine-tuned model is paused (Vanilla only). - * - STATUS_QUEUED: The fine-tuned model is queued for training. + * - STATUS_UNSPECIFIED: Unspecified status. + * - STATUS_FINETUNING: The fine-tuned model is being fine-tuned. + * - STATUS_DEPLOYING_API: Deprecated: The fine-tuned model is being deployed. + * - STATUS_READY: The fine-tuned model is ready to receive requests. + * - STATUS_FAILED: The fine-tuned model failed. + * - STATUS_DELETED: The fine-tuned model was deleted. + * - STATUS_TEMPORARILY_OFFLINE: Deprecated: The fine-tuned model is temporarily unavailable. + * - STATUS_PAUSED: Deprecated: The fine-tuned model is paused (Vanilla only). + * - STATUS_QUEUED: The fine-tuned model is queued for training. */ export type Status = | "STATUS_UNSPECIFIED" diff --git a/src/api/resources/finetuning/resources/finetuning/types/Strategy.ts b/src/api/resources/finetuning/resources/finetuning/types/Strategy.ts index 455569d8..d9a499e4 100644 --- a/src/api/resources/finetuning/resources/finetuning/types/Strategy.ts +++ b/src/api/resources/finetuning/resources/finetuning/types/Strategy.ts @@ -5,9 +5,9 @@ /** * The possible strategy used to serve a fine-tuned models. * - * - STRATEGY_UNSPECIFIED: Unspecified strategy. - * - STRATEGY_VANILLA: Deprecated: Serve the fine-tuned model on a dedicated GPU. - * - STRATEGY_TFEW: Deprecated: Serve the fine-tuned model on a shared GPU. + * - STRATEGY_UNSPECIFIED: Unspecified strategy. + * - STRATEGY_VANILLA: Deprecated: Serve the fine-tuned model on a dedicated GPU. + * - STRATEGY_TFEW: Deprecated: Serve the fine-tuned model on a shared GPU. */ export type Strategy = "STRATEGY_UNSPECIFIED" | "STRATEGY_VANILLA" | "STRATEGY_TFEW"; export const Strategy = { diff --git a/src/api/resources/models/client/Client.ts b/src/api/resources/models/client/Client.ts index 0ba6b914..f77527d2 100644 --- a/src/api/resources/models/client/Client.ts +++ b/src/api/resources/models/client/Client.ts @@ -47,7 +47,6 @@ export class Models { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -55,7 +54,7 @@ export class Models { * @throws {@link Cohere.GatewayTimeoutError} * * @example - * await client.models.get("command-a-03-2025") + * await client.models.get("command-r") */ public async get(model: string, requestOptions?: Models.RequestOptions): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -72,8 +71,8 @@ export class Models { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -105,21 +104,59 @@ export class Models { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -155,7 +192,6 @@ export class Models { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -201,8 +237,8 @@ export class Models { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -235,21 +271,59 @@ export class Models { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, diff --git a/src/api/resources/v2/client/Client.ts b/src/api/resources/v2/client/Client.ts index 2a1fc16b..c01cd441 100644 --- a/src/api/resources/v2/client/Client.ts +++ b/src/api/resources/v2/client/Client.ts @@ -37,14 +37,14 @@ export class V2 { constructor(protected readonly _options: V2.Options = {}) {} /** - * Generates a text response to a user message. To learn how to use the Chat API and RAG follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api). + * Generates a text response to a user message and streams it down, token by token. To learn how to use the Chat API with streaming follow our [Text Generation guides](https://docs.cohere.com/v2/docs/chat-api). * * Follow the [Migration Guide](https://docs.cohere.com/v2/docs/migrating-v1-to-v2) for instructions on moving from API v1 to API v2. */ public async chatStream( request: Cohere.V2ChatStreamRequest, requestOptions?: V2.RequestOptions - ): Promise> { + ): Promise> { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.CohereEnvironment.Production, @@ -59,8 +59,8 @@ export class V2 { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -84,7 +84,7 @@ export class V2 { return new core.Stream({ stream: _response.body, parse: async (data) => { - return serializers.StreamedChatResponseV2.parseOrThrow(data, { + return serializers.V2ChatStreamResponse.parseOrThrow(data, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -111,21 +111,59 @@ export class V2 { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -163,7 +201,6 @@ export class V2 { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -172,15 +209,93 @@ export class V2 { * * @example * await client.v2.chat({ - * model: "model", + * model: "command-r", + * messages: [{ + * role: "user", + * content: "Tell me about LLMs" + * }] + * }) + * + * @example + * await client.v2.chat({ + * model: "command-r", + * documents: [{ + * data: { + * "content": "CSPC: Backstreet Boys Popularity Analysis - ChartMasters", + * "snippet": "\u2193 Skip to Main Content\n\nMusic industry \u2013 One step closer to being accurate\n\nCSPC: Backstreet Boys Popularity Analysis\n\nHern\u00E1n Lopez Posted on February 9, 2017 Posted in CSPC 72 Comments Tagged with Backstreet Boys, Boy band\n\nAt one point, Backstreet Boys defined success: massive albums sales across the globe, great singles sales, plenty of chart topping releases, hugely hyped tours and tremendous media coverage.\n\nIt is true that they benefited from extraordinarily good market conditions in all markets. After all, the all-time record year for the music business, as far as revenues in billion dollars are concerned, was actually 1999. That is, back when this five men group was at its peak." + * } + * }, { + * data: { + * "content": "CSPC: NSYNC Popularity Analysis - ChartMasters", + * "snippet": "\u2193 Skip to Main Content\n\nMusic industry \u2013 One step closer to being accurate\n\nCSPC: NSYNC Popularity Analysis\n\nMJD Posted on February 9, 2018 Posted in CSPC 27 Comments Tagged with Boy band, N'Sync\n\nAt the turn of the millennium three teen acts were huge in the US, the Backstreet Boys, Britney Spears and NSYNC. The latter is the only one we haven\u2019t study so far. It took 15 years and Adele to break their record of 2,4 million units sold of No Strings Attached in its first week alone.\n\nIt wasn\u2019t a fluke, as the second fastest selling album of the Soundscan era prior 2015, was also theirs since Celebrity debuted with 1,88 million units sold." + * } + * }, { + * data: { + * "content": "CSPC: Backstreet Boys Popularity Analysis - ChartMasters", + * "snippet": "1997, 1998, 2000 and 2001 also rank amongst some of the very best years.\nYet the way many music consumers \u2013 especially teenagers and young women\u2019s \u2013 embraced their output deserves its own chapter. If Jonas Brothers and more recently One Direction reached a great level of popularity during the past decade, the type of success achieved by Backstreet Boys is in a completely different level as they really dominated the business for a few years all over the world, including in some countries that were traditionally hard to penetrate for Western artists.\n\nWe will try to analyze the extent of that hegemony with this new article with final results which will more than surprise many readers." + * } + * }, { + * data: { + * "content": "CSPC: NSYNC Popularity Analysis - ChartMasters", + * "snippet": "Was the teen group led by Justin Timberlake really that big? Was it only in the US where they found success? Or were they a global phenomenon?\nAs usual, I\u2019ll be using the Commensurate Sales to Popularity Concept in order to relevantly gauge their results. This concept will not only bring you sales information for all NSYNC\u2018s albums, physical and download singles, as well as audio and video streaming, but it will also determine their true popularity. If you are not yet familiar with the CSPC method, the next page explains it with a short video. I fully recommend watching the video before getting into the sales figures." + * } + * }], + * messages: [{ + * role: "user", + * content: "Who is more popular: Nsync or Backstreet Boys?" + * }] + * }) + * + * @example + * await client.v2.chat({ + * model: "command-r", * messages: [{ - * role: "tool", - * toolCallId: "messages", - * content: "messages" + * role: "user", + * content: "Tell me about LLMs" + * }], + * tools: [{ + * type: "function", + * function: { + * name: "query_daily_sales_report", + * description: "Connects to a database to retrieve overall sales volumes and sales information for a given day.", + * parameters: { + * "type": "object", + * "properties": { + * "day": { + * "description": "Retrieves sales data for this day, formatted as YYYY-MM-DD.", + * "type": "str" + * } + * }, + * "required": [ + * "day" + * ] + * } + * } + * }, { + * type: "function", + * function: { + * name: "query_product_catalog", + * description: "Connects to a a product catalog with information about all the products being sold, including categories, prices, and stock levels.", + * parameters: { + * "type": "object", + * "properties": { + * "category": { + * "description": "Retrieves product information data for all products in this category.", + * "type": "str" + * } + * }, + * "required": [ + * "category" + * ] + * } + * } * }] * }) */ - public async chat(request: Cohere.V2ChatRequest, requestOptions?: V2.RequestOptions): Promise { + public async chat( + request: Cohere.V2ChatRequest, + requestOptions?: V2.RequestOptions + ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.CohereEnvironment.Production, @@ -195,8 +310,8 @@ export class V2 { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -216,7 +331,7 @@ export class V2 { abortSignal: requestOptions?.abortSignal, }); if (_response.ok) { - return serializers.ChatResponse.parseOrThrow(_response.body, { + return serializers.V2ChatResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -236,21 +351,59 @@ export class V2 { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -290,7 +443,6 @@ export class V2 { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -299,8 +451,17 @@ export class V2 { * * @example * await client.v2.embed({ - * model: "model", - * inputType: "search_document", + * model: "embed-english-v3.0", + * inputType: "image", + * embeddingTypes: ["float"], + * images: ["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAfQ29tcHJlc3NlZCBieSBqcGVnLXJlY29tcHJlc3P/2wCEAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUVFx4iHRsdIiolJSo0MjRERFwBBAQEBAQEBAQEBAYGBQYGCAcHBwcIDAkJCQkJDBMMDgwMDgwTERQQDxAUER4XFRUXHiIdGx0iKiUlKjQyNEREXP/CABEIAZABkAMBIgACEQEDEQH/xAAdAAEAAQQDAQAAAAAAAAAAAAAABwEFBggCAwQJ/9oACAEBAAAAAN/gAAAAAAAAAAAAAAAAAAAAAAAAAAHTg9j6agAAp23/ADjsAAAPFrlAUYeagAAArdZ12uzcAAKax6jWUAAAAO/bna+oAC1aBxAA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GVw/mAdjohEEwK2I4u0jH/Lb6exgXljL2tEwP9pq0GdzF69bfHO4fyAGx0ScPgVpl9JkB/yO309cG6w9O0ROeZq3bQnib/UOsJyBJqV9ZI7952Ogl8DDdYezfEra1B5HcdvpTfC+xicoc44QIl/t4/z7LaUTRK3bwPr1d9PoJqlPxN/A2cOvpsNvIbyA/Eh3jvHaDWHYjbYnapdWzgg/qHap7js9JseTDLZreBwbuVSAB9AP1GiSSSeJ9ltcGB8/pPEUjq6hlOYPU3FykC97dgp3aRi7HMnaw3FbzCptdaSZeJDvVh5isO6aYdcqq3gNvJ25705ikxXDJAGS/gI/5FqfHMIt10pb+H0DBjyGdYr03XRaLCojnw1sg/6FTTSzyPNNIXkc5szHMnYhuJIDmh3doPCo7+F9z5oaE0R4SrzrWR/cXnWsj+4vOtZH9xeYrWx/cXmKe6gTjID6b6lxAnMQrl5mmYsSzEkn92//2Q=="] + * }) + * + * @example + * await client.v2.embed({ + * texts: ["hello", "goodbye"], + * model: "embed-english-v3.0", + * inputType: "classification", * embeddingTypes: ["float"] * }) */ @@ -322,8 +483,8 @@ export class V2 { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -360,21 +521,59 @@ export class V2 { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, @@ -410,7 +609,6 @@ export class V2 { * @throws {@link Cohere.NotFoundError} * @throws {@link Cohere.UnprocessableEntityError} * @throws {@link Cohere.TooManyRequestsError} - * @throws {@link Cohere.InvalidTokenError} * @throws {@link Cohere.ClientClosedRequestError} * @throws {@link Cohere.InternalServerError} * @throws {@link Cohere.NotImplementedError} @@ -419,9 +617,10 @@ export class V2 { * * @example * await client.v2.rerank({ - * model: "model", - * query: "query", - * documents: ["documents"] + * documents: ["Carson City is the capital city of the American state of Nevada.", "The Commonwealth of the Northern Mariana Islands is a group of islands in the Pacific Ocean. Its capital is Saipan.", "Capitalization or capitalisation in English grammar is the use of a capital letter at the start of a word. English usage varies from capitalization in other languages.", "Washington, D.C. (also known as simply Washington or D.C., and officially as the District of Columbia) is the capital of the United States. It is a federal district.", "Capital punishment has existed in the United States since beforethe United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states."], + * query: "What is the capital of the United States?", + * topN: 3, + * model: "rerank-v3.5" * }) */ public async rerank( @@ -442,8 +641,8 @@ export class V2 { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "cohere-ai", - "X-Fern-SDK-Version": "7.17.1", - "User-Agent": "cohere-ai/7.17.1", + "X-Fern-SDK-Version": "8.0.0", + "User-Agent": "cohere-ai/8.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -480,21 +679,59 @@ export class V2 { case 404: throw new Cohere.NotFoundError(_response.error.body); case 422: - throw new Cohere.UnprocessableEntityError(_response.error.body); + throw new Cohere.UnprocessableEntityError( + serializers.UnprocessableEntityErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 429: - throw new Cohere.TooManyRequestsError(_response.error.body); - case 498: - throw new Cohere.InvalidTokenError(_response.error.body); + throw new Cohere.TooManyRequestsError( + serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 499: - throw new Cohere.ClientClosedRequestError(_response.error.body); + throw new Cohere.ClientClosedRequestError( + serializers.ClientClosedRequestErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Cohere.InternalServerError(_response.error.body); case 501: - throw new Cohere.NotImplementedError(_response.error.body); + throw new Cohere.NotImplementedError( + serializers.NotImplementedErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 503: throw new Cohere.ServiceUnavailableError(_response.error.body); case 504: - throw new Cohere.GatewayTimeoutError(_response.error.body); + throw new Cohere.GatewayTimeoutError( + serializers.GatewayTimeoutErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.CohereError({ statusCode: _response.error.statusCode, diff --git a/src/api/resources/v2/client/requests/V2ChatRequest.ts b/src/api/resources/v2/client/requests/V2ChatRequest.ts index f5d45ecf..70e701aa 100644 --- a/src/api/resources/v2/client/requests/V2ChatRequest.ts +++ b/src/api/resources/v2/client/requests/V2ChatRequest.ts @@ -7,16 +7,91 @@ import * as Cohere from "../../../../index"; /** * @example * { - * model: "model", + * model: "command-r", * messages: [{ - * role: "tool", - * toolCallId: "messages", - * content: "messages" + * role: "user", + * content: "Tell me about LLMs" + * }] + * } + * + * @example + * { + * model: "command-r", + * documents: [{ + * data: { + * "content": "CSPC: Backstreet Boys Popularity Analysis - ChartMasters", + * "snippet": "\u2193 Skip to Main Content\n\nMusic industry \u2013 One step closer to being accurate\n\nCSPC: Backstreet Boys Popularity Analysis\n\nHern\u00E1n Lopez Posted on February 9, 2017 Posted in CSPC 72 Comments Tagged with Backstreet Boys, Boy band\n\nAt one point, Backstreet Boys defined success: massive albums sales across the globe, great singles sales, plenty of chart topping releases, hugely hyped tours and tremendous media coverage.\n\nIt is true that they benefited from extraordinarily good market conditions in all markets. After all, the all-time record year for the music business, as far as revenues in billion dollars are concerned, was actually 1999. That is, back when this five men group was at its peak." + * } + * }, { + * data: { + * "content": "CSPC: NSYNC Popularity Analysis - ChartMasters", + * "snippet": "\u2193 Skip to Main Content\n\nMusic industry \u2013 One step closer to being accurate\n\nCSPC: NSYNC Popularity Analysis\n\nMJD Posted on February 9, 2018 Posted in CSPC 27 Comments Tagged with Boy band, N'Sync\n\nAt the turn of the millennium three teen acts were huge in the US, the Backstreet Boys, Britney Spears and NSYNC. The latter is the only one we haven\u2019t study so far. It took 15 years and Adele to break their record of 2,4 million units sold of No Strings Attached in its first week alone.\n\nIt wasn\u2019t a fluke, as the second fastest selling album of the Soundscan era prior 2015, was also theirs since Celebrity debuted with 1,88 million units sold." + * } + * }, { + * data: { + * "content": "CSPC: Backstreet Boys Popularity Analysis - ChartMasters", + * "snippet": "1997, 1998, 2000 and 2001 also rank amongst some of the very best years.\nYet the way many music consumers \u2013 especially teenagers and young women\u2019s \u2013 embraced their output deserves its own chapter. If Jonas Brothers and more recently One Direction reached a great level of popularity during the past decade, the type of success achieved by Backstreet Boys is in a completely different level as they really dominated the business for a few years all over the world, including in some countries that were traditionally hard to penetrate for Western artists.\n\nWe will try to analyze the extent of that hegemony with this new article with final results which will more than surprise many readers." + * } + * }, { + * data: { + * "content": "CSPC: NSYNC Popularity Analysis - ChartMasters", + * "snippet": "Was the teen group led by Justin Timberlake really that big? Was it only in the US where they found success? Or were they a global phenomenon?\nAs usual, I\u2019ll be using the Commensurate Sales to Popularity Concept in order to relevantly gauge their results. This concept will not only bring you sales information for all NSYNC\u2018s albums, physical and download singles, as well as audio and video streaming, but it will also determine their true popularity. If you are not yet familiar with the CSPC method, the next page explains it with a short video. I fully recommend watching the video before getting into the sales figures." + * } + * }], + * messages: [{ + * role: "user", + * content: "Who is more popular: Nsync or Backstreet Boys?" + * }] + * } + * + * @example + * { + * model: "command-r", + * messages: [{ + * role: "user", + * content: "Tell me about LLMs" + * }], + * tools: [{ + * type: "function", + * function: { + * name: "query_daily_sales_report", + * description: "Connects to a database to retrieve overall sales volumes and sales information for a given day.", + * parameters: { + * "type": "object", + * "properties": { + * "day": { + * "description": "Retrieves sales data for this day, formatted as YYYY-MM-DD.", + * "type": "str" + * } + * }, + * "required": [ + * "day" + * ] + * } + * } + * }, { + * type: "function", + * function: { + * name: "query_product_catalog", + * description: "Connects to a a product catalog with information about all the products being sold, including categories, prices, and stock levels.", + * parameters: { + * "type": "object", + * "properties": { + * "category": { + * "description": "Retrieves product information data for all products in this category.", + * "type": "str" + * } + * }, + * "required": [ + * "category" + * ] + * } + * } * }] * } */ export interface V2ChatRequest { - /** The name of a compatible [Cohere model](https://docs.cohere.com/v2/docs/models) or the ID of a [fine-tuned](https://docs.cohere.com/v2/docs/chat-fine-tuning) model. */ + /** The name of a compatible [Cohere model](https://docs.cohere.com/v2/docs/models) (such as command-r or command-r-plus) or the ID of a [fine-tuned](https://docs.cohere.com/v2/docs/chat-fine-tuning) model. */ model: string; messages: Cohere.ChatMessages; /** @@ -46,9 +121,9 @@ export interface V2ChatRequest { * * Safety modes are not yet configurable in combination with `tools`, `tool_results` and `documents` parameters. * - * **Note**: This parameter is only compatible newer Cohere models, starting with [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release) and [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release). + * **Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/v2/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/v2/docs/command-r-plus#august-2024-release) and newer. * - * **Note**: `command-r7b-12-2024` and newer models only support `"CONTEXTUAL"` and `"STRICT"` modes. + * **Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes. * */ safetyMode?: Cohere.V2ChatRequestSafetyMode; @@ -105,8 +180,6 @@ export interface V2ChatRequest { * */ p?: number; - /** Whether to return the prompt in the response. */ - returnPrompt?: boolean; /** * Defaults to `false`. When set to `true`, the log probabilities of the generated tokens will be included in the response. * @@ -117,7 +190,7 @@ export interface V2ChatRequest { * When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response. * If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not. * - * **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer. + * **Note**: This parameter is only compatible with models [Command-r7b-12-2024](https://docs.cohere.com/v2/docs/command-r7b) and newer. * * **Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`. * diff --git a/src/api/resources/v2/client/requests/V2ChatStreamRequest.ts b/src/api/resources/v2/client/requests/V2ChatStreamRequest.ts index 5c6bcf26..f33d9b04 100644 --- a/src/api/resources/v2/client/requests/V2ChatStreamRequest.ts +++ b/src/api/resources/v2/client/requests/V2ChatStreamRequest.ts @@ -7,16 +7,15 @@ import * as Cohere from "../../../../index"; /** * @example * { - * model: "model", + * model: "command-r", * messages: [{ - * role: "tool", - * toolCallId: "messages", - * content: "messages" + * role: "user", + * content: "Hello!" * }] * } */ export interface V2ChatStreamRequest { - /** The name of a compatible [Cohere model](https://docs.cohere.com/v2/docs/models) or the ID of a [fine-tuned](https://docs.cohere.com/v2/docs/chat-fine-tuning) model. */ + /** The name of a compatible [Cohere model](https://docs.cohere.com/v2/docs/models) (such as command-r or command-r-plus) or the ID of a [fine-tuned](https://docs.cohere.com/v2/docs/chat-fine-tuning) model. */ model: string; messages: Cohere.ChatMessages; /** @@ -46,9 +45,9 @@ export interface V2ChatStreamRequest { * * Safety modes are not yet configurable in combination with `tools`, `tool_results` and `documents` parameters. * - * **Note**: This parameter is only compatible newer Cohere models, starting with [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release) and [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release). + * **Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/v2/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/v2/docs/command-r-plus#august-2024-release) and newer. * - * **Note**: `command-r7b-12-2024` and newer models only support `"CONTEXTUAL"` and `"STRICT"` modes. + * **Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes. * */ safetyMode?: Cohere.V2ChatStreamRequestSafetyMode; @@ -105,8 +104,6 @@ export interface V2ChatStreamRequest { * */ p?: number; - /** Whether to return the prompt in the response. */ - returnPrompt?: boolean; /** * Defaults to `false`. When set to `true`, the log probabilities of the generated tokens will be included in the response. * @@ -117,7 +114,7 @@ export interface V2ChatStreamRequest { * When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response. * If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not. * - * **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer. + * **Note**: This parameter is only compatible with models [Command-r7b-12-2024](https://docs.cohere.com/v2/docs/command-r7b) and newer. * * **Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`. * diff --git a/src/api/resources/v2/client/requests/V2EmbedRequest.ts b/src/api/resources/v2/client/requests/V2EmbedRequest.ts index 56131f6a..8072310a 100644 --- a/src/api/resources/v2/client/requests/V2EmbedRequest.ts +++ b/src/api/resources/v2/client/requests/V2EmbedRequest.ts @@ -7,8 +7,17 @@ import * as Cohere from "../../../../index"; /** * @example * { - * model: "model", - * inputType: "search_document", + * model: "embed-english-v3.0", + * inputType: "image", + * embeddingTypes: ["float"], + * images: ["data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAfQ29tcHJlc3NlZCBieSBqcGVnLXJlY29tcHJlc3P/2wCEAAQEBAQEBAQEBAQGBgUGBggHBwcHCAwJCQkJCQwTDA4MDA4MExEUEA8QFBEeFxUV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PdypBbRNJI3BVFYf0FdlWTErnQP24uP5JqLojgUYyNqznvZ2q46GYLKDq0khPejk/8ArOsU6HX1irTWre8xDeQBk4/FHduPtALEKozJq3skjAaQaT/wOqv4NJdco3jj6bNtby3c8VtAulJIwVRWCYJb4PbKqqGnYDWSdpPcPLZ6V9HEmikxOxjAlQaUqL9Q7x5+2xgCrrmG8/p9OrIDAg8CKkTQd07iRsdBcPV3ucSkX9H9KP1O8naIBBBG410gsBh2K3MCDKNjrE/2tSLpuqDtIFKAqhRwA6y9GVw/mAdjohEEwK2I4u0jH/Lb6exgXljL2tEwP9pq0GdzF69bfHO4fyAGx0ScPgVpl9JkB/yO309cG6w9O0ROeZq3bQnib/UOsJyBJqV9ZI7952Ogl8DDdYezfEra1B5HcdvpTfC+xicoc44QIl/t4/z7LaUTRK3bwPr1d9PoJqlPxN/A2cOvpsNvIbyA/Eh3jvHaDWHYjbYnapdWzgg/qHap7js9JseTDLZreBwbuVSAB9AP1GiSSSeJ9ltcGB8/pPEUjq6hlOYPU3FykC97dgp3aRi7HMnaw3FbzCptdaSZeJDvVh5isO6aYdcqq3gNvJ25705ikxXDJAGS/gI/5FqfHMIt10pb+H0DBjyGdYr03XRaLCojnw1sg/6FTTSzyPNNIXkc5szHMnYhuJIDmh3doPCo7+F9z5oaE0R4SrzrWR/cXnWsj+4vOtZH9xeYrWx/cXmKe6gTjID6b6lxAnMQrl5mmYsSzEkn92//2Q=="] + * } + * + * @example + * { + * texts: ["hello", "goodbye"], + * model: "embed-english-v3.0", + * inputType: "classification", * embeddingTypes: ["float"] * } */ @@ -39,15 +48,6 @@ export interface V2EmbedRequest { */ model: string; inputType: Cohere.EmbedInputType; - /** An array of inputs for the model to embed. Maximum number of inputs per call is `96`. An input can contain a mix of text and image components. */ - inputs?: Cohere.EmbedInput[]; - /** The maximum number of tokens to embed per input. If the input text is longer than this, it will be truncated according to the `truncate` parameter. */ - maxTokens?: number; - /** - * The number of dimensions of the output embedding. This is only available for `embed-v4` and newer models. - * Possible values are `256`, `512`, `1024`, and `1536`. The default is `1536`. - */ - outputDimension?: number; /** * Specifies the types of embeddings you want to get back. Can be one or more of the following types. * diff --git a/src/api/resources/v2/client/requests/V2RerankRequest.ts b/src/api/resources/v2/client/requests/V2RerankRequest.ts index b3dc57bb..331576b3 100644 --- a/src/api/resources/v2/client/requests/V2RerankRequest.ts +++ b/src/api/resources/v2/client/requests/V2RerankRequest.ts @@ -5,9 +5,10 @@ /** * @example * { - * model: "model", - * query: "query", - * documents: ["documents"] + * documents: ["Carson City is the capital city of the American state of Nevada.", "The Commonwealth of the Northern Mariana Islands is a group of islands in the Pacific Ocean. Its capital is Saipan.", "Capitalization or capitalisation in English grammar is the use of a capital letter at the start of a word. English usage varies from capitalization in other languages.", "Washington, D.C. (also known as simply Washington or D.C., and officially as the District of Columbia) is the capital of the United States. It is a federal district.", "Capital punishment has existed in the United States since beforethe United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states."], + * query: "What is the capital of the United States?", + * topN: 3, + * model: "rerank-v3.5" * } */ export interface V2RerankRequest { @@ -26,11 +27,6 @@ export interface V2RerankRequest { documents: string[]; /** Limits the number of returned rerank results to the specified value. If not passed, all the rerank results will be returned. */ topN?: number; - /** - * - If false, returns results without the doc text - the api will return a list of {index, relevance score} where index is inferred from the list passed into the request. - * - If true, returns results with the doc text passed in - the api will return an ordered list of {index, text, relevance score} where index + text refers to the list passed into the request. - */ - returnDocuments?: boolean; /** Defaults to `4096`. Long documents will be automatically truncated to the specified number of tokens. */ maxTokensPerDoc?: number; } diff --git a/src/api/resources/v2/types/V2ChatRequestSafetyMode.ts b/src/api/resources/v2/types/V2ChatRequestSafetyMode.ts index 3ed6d6f9..6b92cc81 100644 --- a/src/api/resources/v2/types/V2ChatRequestSafetyMode.ts +++ b/src/api/resources/v2/types/V2ChatRequestSafetyMode.ts @@ -8,9 +8,9 @@ * * Safety modes are not yet configurable in combination with `tools`, `tool_results` and `documents` parameters. * - * **Note**: This parameter is only compatible newer Cohere models, starting with [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release) and [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release). + * **Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/v2/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/v2/docs/command-r-plus#august-2024-release) and newer. * - * **Note**: `command-r7b-12-2024` and newer models only support `"CONTEXTUAL"` and `"STRICT"` modes. + * **Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes. */ export type V2ChatRequestSafetyMode = "CONTEXTUAL" | "STRICT" | "OFF"; export const V2ChatRequestSafetyMode = { diff --git a/src/api/resources/v2/types/V2ChatRequestToolChoice.ts b/src/api/resources/v2/types/V2ChatRequestToolChoice.ts index e0232ac5..eb163c82 100644 --- a/src/api/resources/v2/types/V2ChatRequestToolChoice.ts +++ b/src/api/resources/v2/types/V2ChatRequestToolChoice.ts @@ -7,7 +7,7 @@ * When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response. * If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not. * - * **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer. + * **Note**: This parameter is only compatible with models [Command-r7b-12-2024](https://docs.cohere.com/v2/docs/command-r7b) and newer. * * **Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`. */ diff --git a/src/api/types/ChatResponse.ts b/src/api/resources/v2/types/V2ChatResponse.ts similarity index 63% rename from src/api/types/ChatResponse.ts rename to src/api/resources/v2/types/V2ChatResponse.ts index ce6acd33..b1dc2c1d 100644 --- a/src/api/types/ChatResponse.ts +++ b/src/api/resources/v2/types/V2ChatResponse.ts @@ -2,14 +2,12 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Cohere from "../index"; +import * as Cohere from "../../../index"; -export interface ChatResponse { +export interface V2ChatResponse { /** Unique identifier for the generated reply. Useful for submitting feedback. */ id: string; finishReason: Cohere.ChatFinishReason; - /** The prompt that was used. Only present when `return_prompt` in the request is set to true. */ - prompt?: string; message: Cohere.AssistantMessageResponse; usage?: Cohere.Usage; logprobs?: Cohere.LogprobItem[]; diff --git a/src/api/resources/v2/types/V2ChatStreamRequestSafetyMode.ts b/src/api/resources/v2/types/V2ChatStreamRequestSafetyMode.ts index 62494ad8..f1db0698 100644 --- a/src/api/resources/v2/types/V2ChatStreamRequestSafetyMode.ts +++ b/src/api/resources/v2/types/V2ChatStreamRequestSafetyMode.ts @@ -8,9 +8,9 @@ * * Safety modes are not yet configurable in combination with `tools`, `tool_results` and `documents` parameters. * - * **Note**: This parameter is only compatible newer Cohere models, starting with [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release) and [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release). + * **Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/v2/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/v2/docs/command-r-plus#august-2024-release) and newer. * - * **Note**: `command-r7b-12-2024` and newer models only support `"CONTEXTUAL"` and `"STRICT"` modes. + * **Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes. */ export type V2ChatStreamRequestSafetyMode = "CONTEXTUAL" | "STRICT" | "OFF"; export const V2ChatStreamRequestSafetyMode = { diff --git a/src/api/resources/v2/types/V2ChatStreamRequestToolChoice.ts b/src/api/resources/v2/types/V2ChatStreamRequestToolChoice.ts index 1c1b9645..9db19084 100644 --- a/src/api/resources/v2/types/V2ChatStreamRequestToolChoice.ts +++ b/src/api/resources/v2/types/V2ChatStreamRequestToolChoice.ts @@ -7,7 +7,7 @@ * When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response. * If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not. * - * **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer. + * **Note**: This parameter is only compatible with models [Command-r7b-12-2024](https://docs.cohere.com/v2/docs/command-r7b) and newer. * * **Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`. */ diff --git a/src/api/types/StreamedChatResponseV2.ts b/src/api/resources/v2/types/V2ChatStreamResponse.ts similarity index 68% rename from src/api/types/StreamedChatResponseV2.ts rename to src/api/resources/v2/types/V2ChatStreamResponse.ts index dc8a0556..fe8382b5 100644 --- a/src/api/types/StreamedChatResponseV2.ts +++ b/src/api/resources/v2/types/V2ChatStreamResponse.ts @@ -2,26 +2,26 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Cohere from "../index"; +import * as Cohere from "../../../index"; /** * StreamedChatResponse is returned in streaming mode (specified with `stream=True` in the request). */ -export type StreamedChatResponseV2 = - | Cohere.StreamedChatResponseV2.MessageStart - | Cohere.StreamedChatResponseV2.ContentStart - | Cohere.StreamedChatResponseV2.ContentDelta - | Cohere.StreamedChatResponseV2.ContentEnd - | Cohere.StreamedChatResponseV2.ToolPlanDelta - | Cohere.StreamedChatResponseV2.ToolCallStart - | Cohere.StreamedChatResponseV2.ToolCallDelta - | Cohere.StreamedChatResponseV2.ToolCallEnd - | Cohere.StreamedChatResponseV2.CitationStart - | Cohere.StreamedChatResponseV2.CitationEnd - | Cohere.StreamedChatResponseV2.MessageEnd - | Cohere.StreamedChatResponseV2.Debug; +export type V2ChatStreamResponse = + | Cohere.V2ChatStreamResponse.MessageStart + | Cohere.V2ChatStreamResponse.ContentStart + | Cohere.V2ChatStreamResponse.ContentDelta + | Cohere.V2ChatStreamResponse.ContentEnd + | Cohere.V2ChatStreamResponse.ToolPlanDelta + | Cohere.V2ChatStreamResponse.ToolCallStart + | Cohere.V2ChatStreamResponse.ToolCallDelta + | Cohere.V2ChatStreamResponse.ToolCallEnd + | Cohere.V2ChatStreamResponse.CitationStart + | Cohere.V2ChatStreamResponse.CitationEnd + | Cohere.V2ChatStreamResponse.MessageEnd + | Cohere.V2ChatStreamResponse.Debug; -export namespace StreamedChatResponseV2 { +export namespace V2ChatStreamResponse { export interface MessageStart extends Cohere.ChatMessageStartEvent { type: "message-start"; } diff --git a/src/api/resources/v2/types/V2RerankResponseResultsItem.ts b/src/api/resources/v2/types/V2RerankResponseResultsItem.ts index 64c5b03b..2abbaa14 100644 --- a/src/api/resources/v2/types/V2RerankResponseResultsItem.ts +++ b/src/api/resources/v2/types/V2RerankResponseResultsItem.ts @@ -2,11 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Cohere from "../../../index"; - export interface V2RerankResponseResultsItem { - /** If `return_documents` is set as `false` this will return none, if `true` it will return the documents passed in */ - document?: Cohere.V2RerankResponseResultsItemDocument; /** Corresponds to the index in the original list of documents to which the ranked document belongs. (i.e. if the first value in the `results` object has an `index` value of 3, it means in the list of documents passed in, the document at `index=3` had the highest relevance) */ index: number; /** Relevance scores are normalized to be in the range `[0, 1]`. Scores close to `1` indicate a high relevance to the query, and scores closer to `0` indicate low relevance. It is not accurate to assume a score of 0.9 means the document is 2x more relevant than a document with a score of 0.45 */ diff --git a/src/api/resources/v2/types/V2RerankResponseResultsItemDocument.ts b/src/api/resources/v2/types/V2RerankResponseResultsItemDocument.ts deleted file mode 100644 index aba00dbe..00000000 --- a/src/api/resources/v2/types/V2RerankResponseResultsItemDocument.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * If `return_documents` is set as `false` this will return none, if `true` it will return the documents passed in - */ -export interface V2RerankResponseResultsItemDocument { - /** The text of the document to rerank */ - text: string; -} diff --git a/src/api/resources/v2/types/index.ts b/src/api/resources/v2/types/index.ts index 56d3128e..35057865 100644 --- a/src/api/resources/v2/types/index.ts +++ b/src/api/resources/v2/types/index.ts @@ -1,10 +1,11 @@ export * from "./V2ChatStreamRequestDocumentsItem"; export * from "./V2ChatStreamRequestSafetyMode"; export * from "./V2ChatStreamRequestToolChoice"; +export * from "./V2ChatStreamResponse"; export * from "./V2ChatRequestDocumentsItem"; export * from "./V2ChatRequestSafetyMode"; export * from "./V2ChatRequestToolChoice"; +export * from "./V2ChatResponse"; export * from "./V2EmbedRequestTruncate"; -export * from "./V2RerankResponseResultsItemDocument"; export * from "./V2RerankResponseResultsItem"; export * from "./V2RerankResponse"; diff --git a/src/api/types/ChatCitation.ts b/src/api/types/ChatCitation.ts index 16609e3d..05a8972b 100644 --- a/src/api/types/ChatCitation.ts +++ b/src/api/types/ChatCitation.ts @@ -2,8 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Cohere from "../index"; - /** * A section of the generated reply which cites external knowledge. */ @@ -16,6 +14,4 @@ export interface ChatCitation { text: string; /** Identifiers of documents cited by this section of the generated reply. */ documentIds: string[]; - /** The type of citation which indicates what part of the response the citation is for. */ - type?: Cohere.ChatCitationType; } diff --git a/src/api/types/ChatCitationType.ts b/src/api/types/ChatCitationType.ts deleted file mode 100644 index 6d60602c..00000000 --- a/src/api/types/ChatCitationType.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * The type of citation which indicates what part of the response the citation is for. - */ -export type ChatCitationType = "TEXT_CONTENT" | "PLAN"; -export const ChatCitationType = { - TextContent: "TEXT_CONTENT", - Plan: "PLAN", -} as const; diff --git a/src/api/types/ChatRequestConnectorsSearchOptions.ts b/src/api/types/ChatRequestConnectorsSearchOptions.ts deleted file mode 100644 index 2312ae73..00000000 --- a/src/api/types/ChatRequestConnectorsSearchOptions.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * (internal) Sets inference and model options for RAG search query and tool use generations. Defaults are used when options are not specified here, meaning that other parameters outside of connectors_search_options are ignored (such as model= or temperature=). - */ -export interface ChatRequestConnectorsSearchOptions { - /** - * If specified, the backend will make a best effort to sample tokens - * deterministically, such that repeated requests with the same - * seed and parameters should return the same result. However, - * determinism cannot be totally guaranteed. - * - * Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments - */ - seed?: number; -} diff --git a/src/api/types/ChatRequestPromptTruncation.ts b/src/api/types/ChatRequestPromptTruncation.ts index c4db05a2..07227bb8 100644 --- a/src/api/types/ChatRequestPromptTruncation.ts +++ b/src/api/types/ChatRequestPromptTruncation.ts @@ -14,8 +14,9 @@ * With `prompt_truncation` set to "OFF", no elements will be dropped. If the sum of the inputs exceeds the model's context length limit, a `TooManyTokens` error will be returned. * * Compatible Deployments: - * - AUTO: Cohere Platform Only - * - AUTO_PRESERVE_ORDER: Azure, AWS Sagemaker/Bedrock, Private Deployments + * + * - AUTO: Cohere Platform Only + * - AUTO_PRESERVE_ORDER: Azure, AWS Sagemaker/Bedrock, Private Deployments */ export type ChatRequestPromptTruncation = "OFF" | "AUTO" | "AUTO_PRESERVE_ORDER"; export const ChatRequestPromptTruncation = { diff --git a/src/api/types/ChatRequestSafetyMode.ts b/src/api/types/ChatRequestSafetyMode.ts index 5fe6ddb4..45e8866f 100644 --- a/src/api/types/ChatRequestSafetyMode.ts +++ b/src/api/types/ChatRequestSafetyMode.ts @@ -8,9 +8,9 @@ * * Safety modes are not yet configurable in combination with `tools`, `tool_results` and `documents` parameters. * - * **Note**: This parameter is only compatible newer Cohere models, starting with [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release) and [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release). + * **Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release) and newer. * - * **Note**: `command-r7b-12-2024` and newer models only support `"CONTEXTUAL"` and `"STRICT"` modes. + * **Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes. * * Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments */ diff --git a/src/api/types/ChatStreamRequestConnectorsSearchOptions.ts b/src/api/types/ChatStreamRequestConnectorsSearchOptions.ts deleted file mode 100644 index 741b7e04..00000000 --- a/src/api/types/ChatStreamRequestConnectorsSearchOptions.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * (internal) Sets inference and model options for RAG search query and tool use generations. Defaults are used when options are not specified here, meaning that other parameters outside of connectors_search_options are ignored (such as model= or temperature=). - */ -export interface ChatStreamRequestConnectorsSearchOptions { - /** - * If specified, the backend will make a best effort to sample tokens - * deterministically, such that repeated requests with the same - * seed and parameters should return the same result. However, - * determinism cannot be totally guaranteed. - * - * Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments - */ - seed?: number; -} diff --git a/src/api/types/ChatStreamRequestPromptTruncation.ts b/src/api/types/ChatStreamRequestPromptTruncation.ts index 72ba8fa2..4cfe1ce7 100644 --- a/src/api/types/ChatStreamRequestPromptTruncation.ts +++ b/src/api/types/ChatStreamRequestPromptTruncation.ts @@ -14,8 +14,9 @@ * With `prompt_truncation` set to "OFF", no elements will be dropped. If the sum of the inputs exceeds the model's context length limit, a `TooManyTokens` error will be returned. * * Compatible Deployments: - * - AUTO: Cohere Platform Only - * - AUTO_PRESERVE_ORDER: Azure, AWS Sagemaker/Bedrock, Private Deployments + * + * - AUTO: Cohere Platform Only + * - AUTO_PRESERVE_ORDER: Azure, AWS Sagemaker/Bedrock, Private Deployments */ export type ChatStreamRequestPromptTruncation = "OFF" | "AUTO" | "AUTO_PRESERVE_ORDER"; export const ChatStreamRequestPromptTruncation = { diff --git a/src/api/types/ChatStreamRequestSafetyMode.ts b/src/api/types/ChatStreamRequestSafetyMode.ts index 4ab7a5ec..7ade2fa6 100644 --- a/src/api/types/ChatStreamRequestSafetyMode.ts +++ b/src/api/types/ChatStreamRequestSafetyMode.ts @@ -8,9 +8,9 @@ * * Safety modes are not yet configurable in combination with `tools`, `tool_results` and `documents` parameters. * - * **Note**: This parameter is only compatible newer Cohere models, starting with [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release) and [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release). + * **Note**: This parameter is only compatible with models [Command R 08-2024](https://docs.cohere.com/docs/command-r#august-2024-release), [Command R+ 08-2024](https://docs.cohere.com/docs/command-r-plus#august-2024-release) and newer. * - * **Note**: `command-r7b-12-2024` and newer models only support `"CONTEXTUAL"` and `"STRICT"` modes. + * **Note**: `command-r7b-12-2024` only supports `"CONTEXTUAL"` and `"STRICT"` modes. * * Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments */ diff --git a/src/api/types/Citation.ts b/src/api/types/Citation.ts index 47f98b35..1b08b5b4 100644 --- a/src/api/types/Citation.ts +++ b/src/api/types/Citation.ts @@ -15,5 +15,4 @@ export interface Citation { /** Text snippet that is being cited. */ text?: string; sources?: Cohere.Source[]; - type?: Cohere.CitationType; } diff --git a/src/api/types/CitationOptions.ts b/src/api/types/CitationOptions.ts index b5a4edae..50ca1d2d 100644 --- a/src/api/types/CitationOptions.ts +++ b/src/api/types/CitationOptions.ts @@ -12,7 +12,7 @@ export interface CitationOptions { * Defaults to `"accurate"`. * Dictates the approach taken to generating citations as part of the RAG flow by allowing the user to specify whether they want `"accurate"` results, `"fast"` results or no results. * - * **Note**: `command-r7b-12-2024` and `command-a-03-2025` only support `"fast"` and `"off"` modes. The default is `"fast"`. + * **Note**: `command-r7b-12-2024` only supports `"fast"` and `"off"` modes. Its default is `"fast"`. */ mode?: Cohere.CitationOptionsMode; } diff --git a/src/api/types/CitationOptionsMode.ts b/src/api/types/CitationOptionsMode.ts index 8939379d..5da3fd53 100644 --- a/src/api/types/CitationOptionsMode.ts +++ b/src/api/types/CitationOptionsMode.ts @@ -6,7 +6,7 @@ * Defaults to `"accurate"`. * Dictates the approach taken to generating citations as part of the RAG flow by allowing the user to specify whether they want `"accurate"` results, `"fast"` results or no results. * - * **Note**: `command-r7b-12-2024` and `command-a-03-2025` only support `"fast"` and `"off"` modes. The default is `"fast"`. + * **Note**: `command-r7b-12-2024` only supports `"fast"` and `"off"` modes. Its default is `"fast"`. */ export type CitationOptionsMode = "FAST" | "ACCURATE" | "OFF"; export const CitationOptionsMode = { diff --git a/src/api/types/CitationType.ts b/src/api/types/CitationType.ts deleted file mode 100644 index 10b48662..00000000 --- a/src/api/types/CitationType.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * The type of citation which indicates what part of the response the citation is for. - */ -export type CitationType = "TEXT_CONTENT" | "PLAN"; -export const CitationType = { - TextContent: "TEXT_CONTENT", - Plan: "PLAN", -} as const; diff --git a/src/api/types/ClientClosedRequestErrorBody.ts b/src/api/types/ClientClosedRequestErrorBody.ts new file mode 100644 index 00000000..8c199217 --- /dev/null +++ b/src/api/types/ClientClosedRequestErrorBody.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ClientClosedRequestErrorBody { + data?: string; +} diff --git a/src/api/types/Content.ts b/src/api/types/Content.ts index 8d2a964c..c8581ca7 100644 --- a/src/api/types/Content.ts +++ b/src/api/types/Content.ts @@ -7,14 +7,10 @@ import * as Cohere from "../index"; /** * A Content block which contains information about the content type and the content itself. */ -export type Content = Cohere.Content.Text | Cohere.Content.ImageUrl; +export type Content = Cohere.Content.Text; export namespace Content { export interface Text extends Cohere.TextContent { type: "text"; } - - export interface ImageUrl extends Cohere.ImageContent { - type: "image_url"; - } } diff --git a/src/api/types/EmbedContent.ts b/src/api/types/EmbedContent.ts deleted file mode 100644 index db445015..00000000 --- a/src/api/types/EmbedContent.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Cohere from "../index"; - -export type EmbedContent = Cohere.EmbedContent.ImageUrl | Cohere.EmbedContent.Text; - -export namespace EmbedContent { - export interface ImageUrl extends Cohere.EmbedImage { - type: "image_url"; - } - - export interface Text extends Cohere.EmbedText { - type: "text"; - } -} diff --git a/src/api/types/EmbedImage.ts b/src/api/types/EmbedImage.ts deleted file mode 100644 index d8536a58..00000000 --- a/src/api/types/EmbedImage.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Cohere from "../index"; - -/** - * Image content of the input. - */ -export interface EmbedImage { - imageUrl?: Cohere.EmbedImageUrl; -} diff --git a/src/api/types/EmbedImageUrl.ts b/src/api/types/EmbedImageUrl.ts deleted file mode 100644 index c32d82d3..00000000 --- a/src/api/types/EmbedImageUrl.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * Base64 url of image. - */ -export interface EmbedImageUrl { - url: string; -} diff --git a/src/api/types/EmbedInput.ts b/src/api/types/EmbedInput.ts deleted file mode 100644 index f7faf266..00000000 --- a/src/api/types/EmbedInput.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Cohere from "../index"; - -export interface EmbedInput { - /** An array of objects containing the input data for the model to embed. */ - content: Cohere.EmbedContent[]; -} diff --git a/src/api/types/EmbedText.ts b/src/api/types/EmbedText.ts deleted file mode 100644 index 659c7f1a..00000000 --- a/src/api/types/EmbedText.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * Text content of the input. - */ -export interface EmbedText { - text?: string; -} diff --git a/src/api/types/GatewayTimeoutErrorBody.ts b/src/api/types/GatewayTimeoutErrorBody.ts new file mode 100644 index 00000000..b9350446 --- /dev/null +++ b/src/api/types/GatewayTimeoutErrorBody.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface GatewayTimeoutErrorBody { + data?: string; +} diff --git a/src/api/types/GetModelResponse.ts b/src/api/types/GetModelResponse.ts index 2af432ff..5ed1ec02 100644 --- a/src/api/types/GetModelResponse.ts +++ b/src/api/types/GetModelResponse.ts @@ -18,10 +18,6 @@ export interface GetModelResponse { contextLength?: number; /** Public URL to the tokenizer's configuration file. */ tokenizerUrl?: string; - /** Whether the model supports image inputs or not. */ - supportsVision?: boolean; /** The API endpoints that the model is default to. */ defaultEndpoints?: Cohere.CompatibleEndpoint[]; - /** The features that the model supports. */ - features?: string[]; } diff --git a/src/api/types/ImageContent.ts b/src/api/types/ImageContent.ts deleted file mode 100644 index ea20837c..00000000 --- a/src/api/types/ImageContent.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Cohere from "../index"; - -/** - * Image content of the message. - */ -export interface ImageContent { - imageUrl: Cohere.ImageUrl; -} diff --git a/src/api/types/ImageUrl.ts b/src/api/types/ImageUrl.ts deleted file mode 100644 index 76f8e646..00000000 --- a/src/api/types/ImageUrl.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * Base64 url of image. - */ -export interface ImageUrl { - url: string; -} diff --git a/src/api/types/JsonResponseFormat.ts b/src/api/types/JsonResponseFormat.ts index 0efa1c49..98651e7f 100644 --- a/src/api/types/JsonResponseFormat.ts +++ b/src/api/types/JsonResponseFormat.ts @@ -6,12 +6,13 @@ export interface JsonResponseFormat { /** * A JSON schema object that the output will adhere to. There are some restrictions we have on the schema, refer to [our guide](https://docs.cohere.com/docs/structured-outputs-json#schema-constraints) for more information. * Example (required name and age object): + * * ```json * { * "type": "object", * "properties": { - * "name": {"type": "string"}, - * "age": {"type": "integer"} + * "name": { "type": "string" }, + * "age": { "type": "integer" } * }, * "required": ["name", "age"] * } diff --git a/src/api/types/JsonResponseFormatV2.ts b/src/api/types/JsonResponseFormatV2.ts index ebfa3354..3e80d85b 100644 --- a/src/api/types/JsonResponseFormatV2.ts +++ b/src/api/types/JsonResponseFormatV2.ts @@ -6,12 +6,13 @@ export interface JsonResponseFormatV2 { /** * A [JSON schema](https://json-schema.org/overview/what-is-jsonschema) object that the output will adhere to. There are some restrictions we have on the schema, refer to [our guide](https://docs.cohere.com/docs/structured-outputs-json#schema-constraints) for more information. * Example (required name and age object): + * * ```json * { * "type": "object", * "properties": { - * "name": {"type": "string"}, - * "age": {"type": "integer"} + * "name": { "type": "string" }, + * "age": { "type": "integer" } * }, * "required": ["name", "age"] * } diff --git a/src/api/types/Metrics.ts b/src/api/types/Metrics.ts index 954f6a70..a7414812 100644 --- a/src/api/types/Metrics.ts +++ b/src/api/types/Metrics.ts @@ -6,5 +6,4 @@ import * as Cohere from "../index"; export interface Metrics { finetuneDatasetMetrics?: Cohere.FinetuneDatasetMetrics; - embedData?: Cohere.MetricsEmbedData; } diff --git a/src/api/types/MetricsEmbedData.ts b/src/api/types/MetricsEmbedData.ts deleted file mode 100644 index 8cba241a..00000000 --- a/src/api/types/MetricsEmbedData.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Cohere from "../index"; - -export interface MetricsEmbedData { - /** the fields in the dataset */ - fields?: Cohere.MetricsEmbedDataFieldsItem[]; -} diff --git a/src/api/types/MetricsEmbedDataFieldsItem.ts b/src/api/types/MetricsEmbedDataFieldsItem.ts deleted file mode 100644 index 1f1fdb8e..00000000 --- a/src/api/types/MetricsEmbedDataFieldsItem.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface MetricsEmbedDataFieldsItem { - /** the name of the field */ - name?: string; - /** the number of times the field appears in the dataset */ - count?: number; -} diff --git a/src/api/types/NonStreamedChatResponse.ts b/src/api/types/NonStreamedChatResponse.ts index f9bbec28..5b2d9b14 100644 --- a/src/api/types/NonStreamedChatResponse.ts +++ b/src/api/types/NonStreamedChatResponse.ts @@ -25,7 +25,5 @@ export interface NonStreamedChatResponse { toolCalls?: Cohere.ToolCall[]; /** A list of previous messages between the user and the model, meant to give the model conversational context for responding to the user's `message`. */ chatHistory?: Cohere.Message[]; - /** The prompt that was used. Only present when `return_prompt` in the request is set to true. */ - prompt?: string; meta?: Cohere.ApiMeta; } diff --git a/src/api/types/NotImplementedErrorBody.ts b/src/api/types/NotImplementedErrorBody.ts new file mode 100644 index 00000000..f4088a4b --- /dev/null +++ b/src/api/types/NotImplementedErrorBody.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface NotImplementedErrorBody { + data?: string; +} diff --git a/src/api/types/ReasoningEffort.ts b/src/api/types/ReasoningEffort.ts deleted file mode 100644 index 174f0596..00000000 --- a/src/api/types/ReasoningEffort.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * The reasoning effort level of the model. This affects the model's performance and the time it takes to generate a response. - */ -export type ReasoningEffort = "low" | "medium" | "high"; -export const ReasoningEffort = { - Low: "low", - Medium: "medium", - High: "high", -} as const; diff --git a/src/api/types/ResponseFormat.ts b/src/api/types/ResponseFormat.ts index 7c8f4912..e2ae5440 100644 --- a/src/api/types/ResponseFormat.ts +++ b/src/api/types/ResponseFormat.ts @@ -11,7 +11,7 @@ import * as Cohere from "../index"; * * A [JSON Schema](https://json-schema.org/) can optionally be provided, to ensure a specific structure. * - * **Note**: When using `{ "type": "json_object" }` your `message` should always explicitly instruct the model to generate a JSON (eg: _"Generate a JSON ..."_) . Otherwise the model may end up getting stuck generating an infinite stream of characters and eventually run out of context length. + * **Note**: When using `{ "type": "json_object" }` your `message` should always explicitly instruct the model to generate a JSON (eg: _"Generate a JSON ..."_) . Otherwise the model may end up getting stuck generating an infinite stream of characters and eventually run out of context length. * **Limitation**: The parameter is not supported in RAG mode (when any of `connectors`, `documents`, `tools`, `tool_results` are provided). */ export type ResponseFormat = Cohere.ResponseFormat.Text | Cohere.ResponseFormat.JsonObject; diff --git a/src/api/types/ResponseFormatV2.ts b/src/api/types/ResponseFormatV2.ts index 2f891a82..eeca6662 100644 --- a/src/api/types/ResponseFormatV2.ts +++ b/src/api/types/ResponseFormatV2.ts @@ -11,7 +11,7 @@ import * as Cohere from "../index"; * * A [JSON Schema](https://json-schema.org/) can optionally be provided, to ensure a specific structure. * - * **Note**: When using `{ "type": "json_object" }` your `message` should always explicitly instruct the model to generate a JSON (eg: _"Generate a JSON ..."_) . Otherwise the model may end up getting stuck generating an infinite stream of characters and eventually run out of context length. + * **Note**: When using `{ "type": "json_object" }` your `message` should always explicitly instruct the model to generate a JSON (eg: _"Generate a JSON ..."_) . Otherwise the model may end up getting stuck generating an infinite stream of characters and eventually run out of context length. * * **Note**: When `json_schema` is not specified, the generated object can have up to 5 layers of nesting. * diff --git a/src/api/types/TooManyRequestsErrorBody.ts b/src/api/types/TooManyRequestsErrorBody.ts new file mode 100644 index 00000000..5bc99045 --- /dev/null +++ b/src/api/types/TooManyRequestsErrorBody.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface TooManyRequestsErrorBody { + data?: string; +} diff --git a/src/api/types/Tool.ts b/src/api/types/Tool.ts index e43ede9a..75761f06 100644 --- a/src/api/types/Tool.ts +++ b/src/api/types/Tool.ts @@ -11,6 +11,7 @@ export interface Tool { description: string; /** * The input parameters of the tool. Accepts a dictionary where the key is the name of the parameter and the value is the parameter spec. Valid parameter names contain only the characters `a-z`, `A-Z`, `0-9`, `_` and must not begin with a digit. + * * ``` * { * "my_param": { diff --git a/src/api/types/ToolV2Function.ts b/src/api/types/ToolV2Function.ts index b02383cf..aab9f0d1 100644 --- a/src/api/types/ToolV2Function.ts +++ b/src/api/types/ToolV2Function.ts @@ -7,9 +7,9 @@ */ export interface ToolV2Function { /** The name of the function. */ - name: string; + name?: string; /** The description of the function. */ description?: string; /** The parameters of the function as a JSON schema. */ - parameters: Record; + parameters?: Record; } diff --git a/src/api/types/TruncationStrategy.ts b/src/api/types/TruncationStrategy.ts deleted file mode 100644 index 98ad4b62..00000000 --- a/src/api/types/TruncationStrategy.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Cohere from "../index"; - -/** - * Describes the truncation strategy for when the prompt exceeds the context length. Defaults to 'none' - */ -export type TruncationStrategy = Cohere.TruncationStrategy.Auto | Cohere.TruncationStrategy.None; - -export namespace TruncationStrategy { - export interface Auto extends Cohere.TruncationStrategyAutoPreserveOrder { - type: "auto"; - } - - export interface None extends Cohere.TruncationStrategyNone { - type: "none"; - } -} diff --git a/src/api/types/TruncationStrategyAutoPreserveOrder.ts b/src/api/types/TruncationStrategyAutoPreserveOrder.ts deleted file mode 100644 index 0b0bc76a..00000000 --- a/src/api/types/TruncationStrategyAutoPreserveOrder.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * If the prompt exceeds the context length, this truncation strategy will continuously omit the oldest tool call and tool result pairs until the prompt fits. If the prompt does not fit with only the last tool call and tool result pair, an error will be returned. - */ -export interface TruncationStrategyAutoPreserveOrder {} diff --git a/src/api/types/TruncationStrategyNone.ts b/src/api/types/TruncationStrategyNone.ts deleted file mode 100644 index 5c233e46..00000000 --- a/src/api/types/TruncationStrategyNone.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * Prohibits any prompt truncation; if the context length is exceeded, an error will be returned. - */ -export interface TruncationStrategyNone {} diff --git a/src/api/types/UnprocessableEntityErrorBody.ts b/src/api/types/UnprocessableEntityErrorBody.ts new file mode 100644 index 00000000..79aa4af5 --- /dev/null +++ b/src/api/types/UnprocessableEntityErrorBody.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UnprocessableEntityErrorBody { + data?: string; +} diff --git a/src/api/types/index.ts b/src/api/types/index.ts index e13942c0..ceb71d85 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -1,15 +1,22 @@ export * from "./ChatStreamRequestPromptTruncation"; export * from "./ChatStreamRequestCitationQuality"; -export * from "./ChatStreamRequestConnectorsSearchOptions"; export * from "./ChatStreamRequestSafetyMode"; +export * from "./StreamedChatResponse"; +export * from "./UnprocessableEntityErrorBody"; +export * from "./TooManyRequestsErrorBody"; +export * from "./ClientClosedRequestErrorBody"; +export * from "./NotImplementedErrorBody"; +export * from "./GatewayTimeoutErrorBody"; export * from "./ChatRequestPromptTruncation"; export * from "./ChatRequestCitationQuality"; -export * from "./ChatRequestConnectorsSearchOptions"; export * from "./ChatRequestSafetyMode"; +export * from "./NonStreamedChatResponse"; export * from "./GenerateStreamRequestTruncate"; export * from "./GenerateStreamRequestReturnLikelihoods"; +export * from "./GenerateStreamedResponse"; export * from "./GenerateRequestTruncate"; export * from "./GenerateRequestReturnLikelihoods"; +export * from "./Generation"; export * from "./EmbedRequestTruncate"; export * from "./EmbedResponse"; export * from "./RerankRequestDocumentsItem"; @@ -40,7 +47,6 @@ export * from "./Tool"; export * from "./TextResponseFormat"; export * from "./JsonResponseFormat"; export * from "./ResponseFormat"; -export * from "./ChatCitationType"; export * from "./ChatCitation"; export * from "./ChatSearchQuery"; export * from "./ChatSearchResultConnector"; @@ -50,7 +56,6 @@ export * from "./ApiMetaApiVersion"; export * from "./ApiMetaBilledUnits"; export * from "./ApiMetaTokens"; export * from "./ApiMeta"; -export * from "./NonStreamedChatResponse"; export * from "./ChatStreamEvent"; export * from "./ChatStreamStartEvent"; export * from "./ChatSearchQueriesGenerationEvent"; @@ -63,10 +68,7 @@ export * from "./ChatStreamEndEvent"; export * from "./ToolCallDelta"; export * from "./ChatToolCallsChunkEvent"; export * from "./ChatDebugEvent"; -export * from "./StreamedChatResponse"; export * from "./TextContent"; -export * from "./ImageUrl"; -export * from "./ImageContent"; export * from "./Content"; export * from "./UserMessageContent"; export * from "./UserMessage"; @@ -75,7 +77,6 @@ export * from "./ToolCallV2"; export * from "./ToolSource"; export * from "./DocumentSource"; export * from "./Source"; -export * from "./CitationType"; export * from "./Citation"; export * from "./AssistantMessageContentItem"; export * from "./AssistantMessageContent"; @@ -90,14 +91,10 @@ export * from "./ToolMessageV2Content"; export * from "./ToolMessageV2"; export * from "./ChatMessageV2"; export * from "./ChatMessages"; -export * from "./ReasoningEffort"; export * from "./ToolV2Function"; export * from "./ToolV2"; export * from "./CitationOptionsMode"; export * from "./CitationOptions"; -export * from "./TruncationStrategyAutoPreserveOrder"; -export * from "./TruncationStrategyNone"; -export * from "./TruncationStrategy"; export * from "./TextResponseFormatV2"; export * from "./JsonResponseFormatV2"; export * from "./ResponseFormatV2"; @@ -108,7 +105,6 @@ export * from "./UsageBilledUnits"; export * from "./UsageTokens"; export * from "./Usage"; export * from "./LogprobItem"; -export * from "./ChatResponse"; export * from "./ChatStreamEventType"; export * from "./ChatMessageStartEventDeltaMessage"; export * from "./ChatMessageStartEventDelta"; @@ -140,28 +136,20 @@ export * from "./CitationStartEvent"; export * from "./CitationEndEvent"; export * from "./ChatMessageEndEventDelta"; export * from "./ChatMessageEndEvent"; -export * from "./StreamedChatResponseV2"; export * from "./SingleGenerationTokenLikelihoodsItem"; export * from "./SingleGeneration"; -export * from "./Generation"; export * from "./GenerateStreamEvent"; export * from "./GenerateStreamText"; export * from "./SingleGenerationInStream"; export * from "./GenerateStreamEndResponse"; export * from "./GenerateStreamEnd"; export * from "./GenerateStreamError"; -export * from "./GenerateStreamedResponse"; export * from "./EmbedInputType"; export * from "./EmbeddingType"; export * from "./Image"; export * from "./EmbedFloatsResponse"; export * from "./EmbedByTypeResponseEmbeddings"; export * from "./EmbedByTypeResponse"; -export * from "./EmbedImageUrl"; -export * from "./EmbedImage"; -export * from "./EmbedText"; -export * from "./EmbedContent"; -export * from "./EmbedInput"; export * from "./EmbedJobStatus"; export * from "./EmbedJobTruncate"; export * from "./EmbedJob"; @@ -178,8 +166,6 @@ export * from "./ChatDataMetrics"; export * from "./LabelMetric"; export * from "./ClassifyDataMetrics"; export * from "./FinetuneDatasetMetrics"; -export * from "./MetricsEmbedDataFieldsItem"; -export * from "./MetricsEmbedData"; export * from "./Metrics"; export * from "./Dataset"; export * from "./ConnectorOAuth"; diff --git a/src/serialization/client/requests/ChatRequest.ts b/src/serialization/client/requests/ChatRequest.ts index 4e2084b1..820e5757 100644 --- a/src/serialization/client/requests/ChatRequest.ts +++ b/src/serialization/client/requests/ChatRequest.ts @@ -41,8 +41,6 @@ export const ChatRequest: core.serialization.Schema< ), frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number().optional()), presencePenalty: core.serialization.property("presence_penalty", core.serialization.number().optional()), - rawPrompting: core.serialization.property("raw_prompting", core.serialization.boolean().optional()), - returnPrompt: core.serialization.property("return_prompt", core.serialization.boolean().optional()), tools: core.serialization.list(Tool).optional(), toolResults: core.serialization.property("tool_results", core.serialization.list(ToolResult).optional()), forceSingleStep: core.serialization.property("force_single_step", core.serialization.boolean().optional()), @@ -71,8 +69,6 @@ export declare namespace ChatRequest { stop_sequences?: string[] | null; frequency_penalty?: number | null; presence_penalty?: number | null; - raw_prompting?: boolean | null; - return_prompt?: boolean | null; tools?: Tool.Raw[] | null; tool_results?: ToolResult.Raw[] | null; force_single_step?: boolean | null; diff --git a/src/serialization/client/requests/ChatStreamRequest.ts b/src/serialization/client/requests/ChatStreamRequest.ts index 70f53971..058962ff 100644 --- a/src/serialization/client/requests/ChatStreamRequest.ts +++ b/src/serialization/client/requests/ChatStreamRequest.ts @@ -41,8 +41,6 @@ export const ChatStreamRequest: core.serialization.Schema< ), frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number().optional()), presencePenalty: core.serialization.property("presence_penalty", core.serialization.number().optional()), - rawPrompting: core.serialization.property("raw_prompting", core.serialization.boolean().optional()), - returnPrompt: core.serialization.property("return_prompt", core.serialization.boolean().optional()), tools: core.serialization.list(Tool).optional(), toolResults: core.serialization.property("tool_results", core.serialization.list(ToolResult).optional()), forceSingleStep: core.serialization.property("force_single_step", core.serialization.boolean().optional()), @@ -71,8 +69,6 @@ export declare namespace ChatStreamRequest { stop_sequences?: string[] | null; frequency_penalty?: number | null; presence_penalty?: number | null; - raw_prompting?: boolean | null; - return_prompt?: boolean | null; tools?: Tool.Raw[] | null; tool_results?: ToolResult.Raw[] | null; force_single_step?: boolean | null; diff --git a/src/serialization/resources/datasets/types/DatasetsCreateResponseDatasetPartsItem.ts b/src/serialization/resources/datasets/types/DatasetsCreateResponseDatasetPartsItem.ts deleted file mode 100644 index ab772281..00000000 --- a/src/serialization/resources/datasets/types/DatasetsCreateResponseDatasetPartsItem.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../index"; -import * as Cohere from "../../../../api/index"; -import * as core from "../../../../core"; - -export const DatasetsCreateResponseDatasetPartsItem: core.serialization.ObjectSchema< - serializers.DatasetsCreateResponseDatasetPartsItem.Raw, - Cohere.DatasetsCreateResponseDatasetPartsItem -> = core.serialization.object({ - name: core.serialization.string().optional(), - numRows: core.serialization.property("num_rows", core.serialization.number().optional()), - samples: core.serialization.list(core.serialization.string()).optional(), - partKind: core.serialization.property("part_kind", core.serialization.string().optional()), -}); - -export declare namespace DatasetsCreateResponseDatasetPartsItem { - interface Raw { - name?: string | null; - num_rows?: number | null; - samples?: string[] | null; - part_kind?: string | null; - } -} diff --git a/src/serialization/resources/datasets/types/index.ts b/src/serialization/resources/datasets/types/index.ts index cc2e2520..54dc414b 100644 --- a/src/serialization/resources/datasets/types/index.ts +++ b/src/serialization/resources/datasets/types/index.ts @@ -1,5 +1,4 @@ export * from "./DatasetsListResponse"; -export * from "./DatasetsCreateResponseDatasetPartsItem"; export * from "./DatasetsCreateResponse"; export * from "./DatasetsGetUsageResponse"; export * from "./DatasetsGetResponse"; diff --git a/src/serialization/resources/v2/client/requests/V2ChatRequest.ts b/src/serialization/resources/v2/client/requests/V2ChatRequest.ts index 0c8df01f..a95076ac 100644 --- a/src/serialization/resources/v2/client/requests/V2ChatRequest.ts +++ b/src/serialization/resources/v2/client/requests/V2ChatRequest.ts @@ -35,7 +35,6 @@ export const V2ChatRequest: core.serialization.Schema = +export const V2ChatResponse: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string(), finishReason: core.serialization.property("finish_reason", ChatFinishReason), - prompt: core.serialization.string().optional(), message: AssistantMessageResponse, usage: Usage.optional(), logprobs: core.serialization.list(LogprobItem).optional(), }); -export declare namespace ChatResponse { +export declare namespace V2ChatResponse { interface Raw { id: string; finish_reason: ChatFinishReason.Raw; - prompt?: string | null; message: AssistantMessageResponse.Raw; usage?: Usage.Raw | null; logprobs?: LogprobItem.Raw[] | null; diff --git a/src/serialization/types/StreamedChatResponseV2.ts b/src/serialization/resources/v2/types/V2ChatStreamResponse.ts similarity index 52% rename from src/serialization/types/StreamedChatResponseV2.ts rename to src/serialization/resources/v2/types/V2ChatStreamResponse.ts index 43023467..f825c88d 100644 --- a/src/serialization/types/StreamedChatResponseV2.ts +++ b/src/serialization/resources/v2/types/V2ChatStreamResponse.ts @@ -2,25 +2,25 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as serializers from "../index"; -import * as Cohere from "../../api/index"; -import * as core from "../../core"; -import { ChatMessageStartEvent } from "./ChatMessageStartEvent"; -import { ChatContentStartEvent } from "./ChatContentStartEvent"; -import { ChatContentDeltaEvent } from "./ChatContentDeltaEvent"; -import { ChatContentEndEvent } from "./ChatContentEndEvent"; -import { ChatToolPlanDeltaEvent } from "./ChatToolPlanDeltaEvent"; -import { ChatToolCallStartEvent } from "./ChatToolCallStartEvent"; -import { ChatToolCallDeltaEvent } from "./ChatToolCallDeltaEvent"; -import { ChatToolCallEndEvent } from "./ChatToolCallEndEvent"; -import { CitationStartEvent } from "./CitationStartEvent"; -import { CitationEndEvent } from "./CitationEndEvent"; -import { ChatMessageEndEvent } from "./ChatMessageEndEvent"; -import { ChatDebugEvent } from "./ChatDebugEvent"; +import * as serializers from "../../../index"; +import * as Cohere from "../../../../api/index"; +import * as core from "../../../../core"; +import { ChatMessageStartEvent } from "../../../types/ChatMessageStartEvent"; +import { ChatContentStartEvent } from "../../../types/ChatContentStartEvent"; +import { ChatContentDeltaEvent } from "../../../types/ChatContentDeltaEvent"; +import { ChatContentEndEvent } from "../../../types/ChatContentEndEvent"; +import { ChatToolPlanDeltaEvent } from "../../../types/ChatToolPlanDeltaEvent"; +import { ChatToolCallStartEvent } from "../../../types/ChatToolCallStartEvent"; +import { ChatToolCallDeltaEvent } from "../../../types/ChatToolCallDeltaEvent"; +import { ChatToolCallEndEvent } from "../../../types/ChatToolCallEndEvent"; +import { CitationStartEvent } from "../../../types/CitationStartEvent"; +import { CitationEndEvent } from "../../../types/CitationEndEvent"; +import { ChatMessageEndEvent } from "../../../types/ChatMessageEndEvent"; +import { ChatDebugEvent } from "../../../types/ChatDebugEvent"; -export const StreamedChatResponseV2: core.serialization.Schema< - serializers.StreamedChatResponseV2.Raw, - Cohere.StreamedChatResponseV2 +export const V2ChatStreamResponse: core.serialization.Schema< + serializers.V2ChatStreamResponse.Raw, + Cohere.V2ChatStreamResponse > = core.serialization .union("type", { "message-start": ChatMessageStartEvent, @@ -36,25 +36,25 @@ export const StreamedChatResponseV2: core.serialization.Schema< "message-end": ChatMessageEndEvent, debug: ChatDebugEvent, }) - .transform({ + .transform({ transform: (value) => value, untransform: (value) => value, }); -export declare namespace StreamedChatResponseV2 { +export declare namespace V2ChatStreamResponse { type Raw = - | StreamedChatResponseV2.MessageStart - | StreamedChatResponseV2.ContentStart - | StreamedChatResponseV2.ContentDelta - | StreamedChatResponseV2.ContentEnd - | StreamedChatResponseV2.ToolPlanDelta - | StreamedChatResponseV2.ToolCallStart - | StreamedChatResponseV2.ToolCallDelta - | StreamedChatResponseV2.ToolCallEnd - | StreamedChatResponseV2.CitationStart - | StreamedChatResponseV2.CitationEnd - | StreamedChatResponseV2.MessageEnd - | StreamedChatResponseV2.Debug; + | V2ChatStreamResponse.MessageStart + | V2ChatStreamResponse.ContentStart + | V2ChatStreamResponse.ContentDelta + | V2ChatStreamResponse.ContentEnd + | V2ChatStreamResponse.ToolPlanDelta + | V2ChatStreamResponse.ToolCallStart + | V2ChatStreamResponse.ToolCallDelta + | V2ChatStreamResponse.ToolCallEnd + | V2ChatStreamResponse.CitationStart + | V2ChatStreamResponse.CitationEnd + | V2ChatStreamResponse.MessageEnd + | V2ChatStreamResponse.Debug; interface MessageStart extends ChatMessageStartEvent.Raw { type: "message-start"; diff --git a/src/serialization/resources/v2/types/V2RerankResponseResultsItem.ts b/src/serialization/resources/v2/types/V2RerankResponseResultsItem.ts index 4eaad344..2c7eb02b 100644 --- a/src/serialization/resources/v2/types/V2RerankResponseResultsItem.ts +++ b/src/serialization/resources/v2/types/V2RerankResponseResultsItem.ts @@ -5,20 +5,17 @@ import * as serializers from "../../../index"; import * as Cohere from "../../../../api/index"; import * as core from "../../../../core"; -import { V2RerankResponseResultsItemDocument } from "./V2RerankResponseResultsItemDocument"; export const V2RerankResponseResultsItem: core.serialization.ObjectSchema< serializers.V2RerankResponseResultsItem.Raw, Cohere.V2RerankResponseResultsItem > = core.serialization.object({ - document: V2RerankResponseResultsItemDocument.optional(), index: core.serialization.number(), relevanceScore: core.serialization.property("relevance_score", core.serialization.number()), }); export declare namespace V2RerankResponseResultsItem { interface Raw { - document?: V2RerankResponseResultsItemDocument.Raw | null; index: number; relevance_score: number; } diff --git a/src/serialization/resources/v2/types/V2RerankResponseResultsItemDocument.ts b/src/serialization/resources/v2/types/V2RerankResponseResultsItemDocument.ts deleted file mode 100644 index 360f3b58..00000000 --- a/src/serialization/resources/v2/types/V2RerankResponseResultsItemDocument.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../index"; -import * as Cohere from "../../../../api/index"; -import * as core from "../../../../core"; - -export const V2RerankResponseResultsItemDocument: core.serialization.ObjectSchema< - serializers.V2RerankResponseResultsItemDocument.Raw, - Cohere.V2RerankResponseResultsItemDocument -> = core.serialization.object({ - text: core.serialization.string(), -}); - -export declare namespace V2RerankResponseResultsItemDocument { - interface Raw { - text: string; - } -} diff --git a/src/serialization/resources/v2/types/index.ts b/src/serialization/resources/v2/types/index.ts index 56d3128e..35057865 100644 --- a/src/serialization/resources/v2/types/index.ts +++ b/src/serialization/resources/v2/types/index.ts @@ -1,10 +1,11 @@ export * from "./V2ChatStreamRequestDocumentsItem"; export * from "./V2ChatStreamRequestSafetyMode"; export * from "./V2ChatStreamRequestToolChoice"; +export * from "./V2ChatStreamResponse"; export * from "./V2ChatRequestDocumentsItem"; export * from "./V2ChatRequestSafetyMode"; export * from "./V2ChatRequestToolChoice"; +export * from "./V2ChatResponse"; export * from "./V2EmbedRequestTruncate"; -export * from "./V2RerankResponseResultsItemDocument"; export * from "./V2RerankResponseResultsItem"; export * from "./V2RerankResponse"; diff --git a/src/serialization/types/ChatCitation.ts b/src/serialization/types/ChatCitation.ts index 3dbe233a..8f6fda17 100644 --- a/src/serialization/types/ChatCitation.ts +++ b/src/serialization/types/ChatCitation.ts @@ -5,7 +5,6 @@ import * as serializers from "../index"; import * as Cohere from "../../api/index"; import * as core from "../../core"; -import { ChatCitationType } from "./ChatCitationType"; export const ChatCitation: core.serialization.ObjectSchema = core.serialization.object({ @@ -13,7 +12,6 @@ export const ChatCitation: core.serialization.ObjectSchema = - core.serialization.enum_(["TEXT_CONTENT", "PLAN"]); - -export declare namespace ChatCitationType { - type Raw = "TEXT_CONTENT" | "PLAN"; -} diff --git a/src/serialization/types/ChatRequestConnectorsSearchOptions.ts b/src/serialization/types/ChatRequestConnectorsSearchOptions.ts deleted file mode 100644 index db5f7247..00000000 --- a/src/serialization/types/ChatRequestConnectorsSearchOptions.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Cohere from "../../api/index"; -import * as core from "../../core"; - -export const ChatRequestConnectorsSearchOptions: core.serialization.ObjectSchema< - serializers.ChatRequestConnectorsSearchOptions.Raw, - Cohere.ChatRequestConnectorsSearchOptions -> = core.serialization.object({ - seed: core.serialization.number().optional(), -}); - -export declare namespace ChatRequestConnectorsSearchOptions { - interface Raw { - seed?: number | null; - } -} diff --git a/src/serialization/types/ChatStreamRequestConnectorsSearchOptions.ts b/src/serialization/types/ChatStreamRequestConnectorsSearchOptions.ts deleted file mode 100644 index 5cc02bcf..00000000 --- a/src/serialization/types/ChatStreamRequestConnectorsSearchOptions.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Cohere from "../../api/index"; -import * as core from "../../core"; - -export const ChatStreamRequestConnectorsSearchOptions: core.serialization.ObjectSchema< - serializers.ChatStreamRequestConnectorsSearchOptions.Raw, - Cohere.ChatStreamRequestConnectorsSearchOptions -> = core.serialization.object({ - seed: core.serialization.number().optional(), -}); - -export declare namespace ChatStreamRequestConnectorsSearchOptions { - interface Raw { - seed?: number | null; - } -} diff --git a/src/serialization/types/Citation.ts b/src/serialization/types/Citation.ts index b5333173..d7ea2325 100644 --- a/src/serialization/types/Citation.ts +++ b/src/serialization/types/Citation.ts @@ -6,7 +6,6 @@ import * as serializers from "../index"; import * as Cohere from "../../api/index"; import * as core from "../../core"; import { Source } from "./Source"; -import { CitationType } from "./CitationType"; export const Citation: core.serialization.ObjectSchema = core.serialization.object({ @@ -14,7 +13,6 @@ export const Citation: core.serialization.ObjectSchema = - core.serialization.enum_(["TEXT_CONTENT", "PLAN"]); - -export declare namespace CitationType { - type Raw = "TEXT_CONTENT" | "PLAN"; -} diff --git a/src/serialization/types/ClientClosedRequestErrorBody.ts b/src/serialization/types/ClientClosedRequestErrorBody.ts new file mode 100644 index 00000000..84fb4f3b --- /dev/null +++ b/src/serialization/types/ClientClosedRequestErrorBody.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Cohere from "../../api/index"; +import * as core from "../../core"; + +export const ClientClosedRequestErrorBody: core.serialization.ObjectSchema< + serializers.ClientClosedRequestErrorBody.Raw, + Cohere.ClientClosedRequestErrorBody +> = core.serialization.object({ + data: core.serialization.string().optional(), +}); + +export declare namespace ClientClosedRequestErrorBody { + interface Raw { + data?: string | null; + } +} diff --git a/src/serialization/types/Content.ts b/src/serialization/types/Content.ts index ad51834d..af0383d9 100644 --- a/src/serialization/types/Content.ts +++ b/src/serialization/types/Content.ts @@ -6,12 +6,10 @@ import * as serializers from "../index"; import * as Cohere from "../../api/index"; import * as core from "../../core"; import { TextContent } from "./TextContent"; -import { ImageContent } from "./ImageContent"; export const Content: core.serialization.Schema = core.serialization .union("type", { text: TextContent, - image_url: ImageContent, }) .transform({ transform: (value) => value, @@ -19,13 +17,9 @@ export const Content: core.serialization.Schema = - core.serialization - .union("type", { - image_url: EmbedImage, - text: EmbedText, - }) - .transform({ - transform: (value) => value, - untransform: (value) => value, - }); - -export declare namespace EmbedContent { - type Raw = EmbedContent.ImageUrl | EmbedContent.Text; - - interface ImageUrl extends EmbedImage.Raw { - type: "image_url"; - } - - interface Text extends EmbedText.Raw { - type: "text"; - } -} diff --git a/src/serialization/types/EmbedImage.ts b/src/serialization/types/EmbedImage.ts deleted file mode 100644 index ae09ad3b..00000000 --- a/src/serialization/types/EmbedImage.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Cohere from "../../api/index"; -import * as core from "../../core"; -import { EmbedImageUrl } from "./EmbedImageUrl"; - -export const EmbedImage: core.serialization.ObjectSchema = - core.serialization.object({ - imageUrl: core.serialization.property("image_url", EmbedImageUrl.optional()), - }); - -export declare namespace EmbedImage { - interface Raw { - image_url?: EmbedImageUrl.Raw | null; - } -} diff --git a/src/serialization/types/EmbedImageUrl.ts b/src/serialization/types/EmbedImageUrl.ts deleted file mode 100644 index e2b9f547..00000000 --- a/src/serialization/types/EmbedImageUrl.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Cohere from "../../api/index"; -import * as core from "../../core"; - -export const EmbedImageUrl: core.serialization.ObjectSchema = - core.serialization.object({ - url: core.serialization.string(), - }); - -export declare namespace EmbedImageUrl { - interface Raw { - url: string; - } -} diff --git a/src/serialization/types/EmbedInput.ts b/src/serialization/types/EmbedInput.ts deleted file mode 100644 index 02da14a0..00000000 --- a/src/serialization/types/EmbedInput.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Cohere from "../../api/index"; -import * as core from "../../core"; -import { EmbedContent } from "./EmbedContent"; - -export const EmbedInput: core.serialization.ObjectSchema = - core.serialization.object({ - content: core.serialization.list(EmbedContent), - }); - -export declare namespace EmbedInput { - interface Raw { - content: EmbedContent.Raw[]; - } -} diff --git a/src/serialization/types/EmbedText.ts b/src/serialization/types/EmbedText.ts deleted file mode 100644 index a93e75c0..00000000 --- a/src/serialization/types/EmbedText.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Cohere from "../../api/index"; -import * as core from "../../core"; - -export const EmbedText: core.serialization.ObjectSchema = - core.serialization.object({ - text: core.serialization.string().optional(), - }); - -export declare namespace EmbedText { - interface Raw { - text?: string | null; - } -} diff --git a/src/serialization/types/GatewayTimeoutErrorBody.ts b/src/serialization/types/GatewayTimeoutErrorBody.ts new file mode 100644 index 00000000..b539b08c --- /dev/null +++ b/src/serialization/types/GatewayTimeoutErrorBody.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Cohere from "../../api/index"; +import * as core from "../../core"; + +export const GatewayTimeoutErrorBody: core.serialization.ObjectSchema< + serializers.GatewayTimeoutErrorBody.Raw, + Cohere.GatewayTimeoutErrorBody +> = core.serialization.object({ + data: core.serialization.string().optional(), +}); + +export declare namespace GatewayTimeoutErrorBody { + interface Raw { + data?: string | null; + } +} diff --git a/src/serialization/types/GetModelResponse.ts b/src/serialization/types/GetModelResponse.ts index 07af1dc7..ad12bb92 100644 --- a/src/serialization/types/GetModelResponse.ts +++ b/src/serialization/types/GetModelResponse.ts @@ -16,12 +16,10 @@ export const GetModelResponse: core.serialization.ObjectSchema< finetuned: core.serialization.boolean().optional(), contextLength: core.serialization.property("context_length", core.serialization.number().optional()), tokenizerUrl: core.serialization.property("tokenizer_url", core.serialization.string().optional()), - supportsVision: core.serialization.property("supports_vision", core.serialization.boolean().optional()), defaultEndpoints: core.serialization.property( "default_endpoints", core.serialization.list(CompatibleEndpoint).optional() ), - features: core.serialization.list(core.serialization.string()).optional(), }); export declare namespace GetModelResponse { @@ -31,8 +29,6 @@ export declare namespace GetModelResponse { finetuned?: boolean | null; context_length?: number | null; tokenizer_url?: string | null; - supports_vision?: boolean | null; default_endpoints?: CompatibleEndpoint.Raw[] | null; - features?: string[] | null; } } diff --git a/src/serialization/types/ImageContent.ts b/src/serialization/types/ImageContent.ts deleted file mode 100644 index cea9532f..00000000 --- a/src/serialization/types/ImageContent.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Cohere from "../../api/index"; -import * as core from "../../core"; -import { ImageUrl } from "./ImageUrl"; - -export const ImageContent: core.serialization.ObjectSchema = - core.serialization.object({ - imageUrl: core.serialization.property("image_url", ImageUrl), - }); - -export declare namespace ImageContent { - interface Raw { - image_url: ImageUrl.Raw; - } -} diff --git a/src/serialization/types/ImageUrl.ts b/src/serialization/types/ImageUrl.ts deleted file mode 100644 index c3e4f84a..00000000 --- a/src/serialization/types/ImageUrl.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Cohere from "../../api/index"; -import * as core from "../../core"; - -export const ImageUrl: core.serialization.ObjectSchema = - core.serialization.object({ - url: core.serialization.string(), - }); - -export declare namespace ImageUrl { - interface Raw { - url: string; - } -} diff --git a/src/serialization/types/Metrics.ts b/src/serialization/types/Metrics.ts index a8842311..646a4af7 100644 --- a/src/serialization/types/Metrics.ts +++ b/src/serialization/types/Metrics.ts @@ -6,7 +6,6 @@ import * as serializers from "../index"; import * as Cohere from "../../api/index"; import * as core from "../../core"; import { FinetuneDatasetMetrics } from "./FinetuneDatasetMetrics"; -import { MetricsEmbedData } from "./MetricsEmbedData"; export const Metrics: core.serialization.ObjectSchema = core.serialization.object({ @@ -14,12 +13,10 @@ export const Metrics: core.serialization.ObjectSchema = core.serialization.object({ - fields: core.serialization.list(MetricsEmbedDataFieldsItem).optional(), -}); - -export declare namespace MetricsEmbedData { - interface Raw { - fields?: MetricsEmbedDataFieldsItem.Raw[] | null; - } -} diff --git a/src/serialization/types/MetricsEmbedDataFieldsItem.ts b/src/serialization/types/MetricsEmbedDataFieldsItem.ts deleted file mode 100644 index 05432092..00000000 --- a/src/serialization/types/MetricsEmbedDataFieldsItem.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Cohere from "../../api/index"; -import * as core from "../../core"; - -export const MetricsEmbedDataFieldsItem: core.serialization.ObjectSchema< - serializers.MetricsEmbedDataFieldsItem.Raw, - Cohere.MetricsEmbedDataFieldsItem -> = core.serialization.object({ - name: core.serialization.string().optional(), - count: core.serialization.number().optional(), -}); - -export declare namespace MetricsEmbedDataFieldsItem { - interface Raw { - name?: string | null; - count?: number | null; - } -} diff --git a/src/serialization/types/NonStreamedChatResponse.ts b/src/serialization/types/NonStreamedChatResponse.ts index ffe4486d..6dc23dab 100644 --- a/src/serialization/types/NonStreamedChatResponse.ts +++ b/src/serialization/types/NonStreamedChatResponse.ts @@ -29,7 +29,6 @@ export const NonStreamedChatResponse: core.serialization.ObjectSchema< finishReason: core.serialization.property("finish_reason", FinishReason.optional()), toolCalls: core.serialization.property("tool_calls", core.serialization.list(ToolCall).optional()), chatHistory: core.serialization.property("chat_history", core.serialization.list(Message).optional()), - prompt: core.serialization.string().optional(), meta: ApiMeta.optional(), }); @@ -46,7 +45,6 @@ export declare namespace NonStreamedChatResponse { finish_reason?: FinishReason.Raw | null; tool_calls?: ToolCall.Raw[] | null; chat_history?: Message.Raw[] | null; - prompt?: string | null; meta?: ApiMeta.Raw | null; } } diff --git a/src/serialization/types/NotImplementedErrorBody.ts b/src/serialization/types/NotImplementedErrorBody.ts new file mode 100644 index 00000000..66df27aa --- /dev/null +++ b/src/serialization/types/NotImplementedErrorBody.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Cohere from "../../api/index"; +import * as core from "../../core"; + +export const NotImplementedErrorBody: core.serialization.ObjectSchema< + serializers.NotImplementedErrorBody.Raw, + Cohere.NotImplementedErrorBody +> = core.serialization.object({ + data: core.serialization.string().optional(), +}); + +export declare namespace NotImplementedErrorBody { + interface Raw { + data?: string | null; + } +} diff --git a/src/serialization/types/ReasoningEffort.ts b/src/serialization/types/ReasoningEffort.ts deleted file mode 100644 index e8870fa1..00000000 --- a/src/serialization/types/ReasoningEffort.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Cohere from "../../api/index"; -import * as core from "../../core"; - -export const ReasoningEffort: core.serialization.Schema = - core.serialization.enum_(["low", "medium", "high"]); - -export declare namespace ReasoningEffort { - type Raw = "low" | "medium" | "high"; -} diff --git a/src/serialization/types/TooManyRequestsErrorBody.ts b/src/serialization/types/TooManyRequestsErrorBody.ts new file mode 100644 index 00000000..d36cdd4e --- /dev/null +++ b/src/serialization/types/TooManyRequestsErrorBody.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Cohere from "../../api/index"; +import * as core from "../../core"; + +export const TooManyRequestsErrorBody: core.serialization.ObjectSchema< + serializers.TooManyRequestsErrorBody.Raw, + Cohere.TooManyRequestsErrorBody +> = core.serialization.object({ + data: core.serialization.string().optional(), +}); + +export declare namespace TooManyRequestsErrorBody { + interface Raw { + data?: string | null; + } +} diff --git a/src/serialization/types/ToolV2Function.ts b/src/serialization/types/ToolV2Function.ts index e56b4608..fe37c478 100644 --- a/src/serialization/types/ToolV2Function.ts +++ b/src/serialization/types/ToolV2Function.ts @@ -8,15 +8,15 @@ import * as core from "../../core"; export const ToolV2Function: core.serialization.ObjectSchema = core.serialization.object({ - name: core.serialization.string(), + name: core.serialization.string().optional(), description: core.serialization.string().optional(), - parameters: core.serialization.record(core.serialization.string(), core.serialization.unknown()), + parameters: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), }); export declare namespace ToolV2Function { interface Raw { - name: string; + name?: string | null; description?: string | null; - parameters: Record; + parameters?: Record | null; } } diff --git a/src/serialization/types/TruncationStrategy.ts b/src/serialization/types/TruncationStrategy.ts deleted file mode 100644 index 96507b34..00000000 --- a/src/serialization/types/TruncationStrategy.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Cohere from "../../api/index"; -import * as core from "../../core"; -import { TruncationStrategyAutoPreserveOrder } from "./TruncationStrategyAutoPreserveOrder"; -import { TruncationStrategyNone } from "./TruncationStrategyNone"; - -export const TruncationStrategy: core.serialization.Schema< - serializers.TruncationStrategy.Raw, - Cohere.TruncationStrategy -> = core.serialization - .union("type", { - auto: TruncationStrategyAutoPreserveOrder, - none: TruncationStrategyNone, - }) - .transform({ - transform: (value) => value, - untransform: (value) => value, - }); - -export declare namespace TruncationStrategy { - type Raw = TruncationStrategy.Auto | TruncationStrategy.None; - - interface Auto extends TruncationStrategyAutoPreserveOrder.Raw { - type: "auto"; - } - - interface None extends TruncationStrategyNone.Raw { - type: "none"; - } -} diff --git a/src/serialization/types/TruncationStrategyAutoPreserveOrder.ts b/src/serialization/types/TruncationStrategyAutoPreserveOrder.ts deleted file mode 100644 index eb65db7b..00000000 --- a/src/serialization/types/TruncationStrategyAutoPreserveOrder.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Cohere from "../../api/index"; -import * as core from "../../core"; - -export const TruncationStrategyAutoPreserveOrder: core.serialization.ObjectSchema< - serializers.TruncationStrategyAutoPreserveOrder.Raw, - Cohere.TruncationStrategyAutoPreserveOrder -> = core.serialization.object({}); - -export declare namespace TruncationStrategyAutoPreserveOrder { - interface Raw {} -} diff --git a/src/serialization/types/TruncationStrategyNone.ts b/src/serialization/types/TruncationStrategyNone.ts deleted file mode 100644 index 65243dab..00000000 --- a/src/serialization/types/TruncationStrategyNone.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Cohere from "../../api/index"; -import * as core from "../../core"; - -export const TruncationStrategyNone: core.serialization.ObjectSchema< - serializers.TruncationStrategyNone.Raw, - Cohere.TruncationStrategyNone -> = core.serialization.object({}); - -export declare namespace TruncationStrategyNone { - interface Raw {} -} diff --git a/src/serialization/types/UnprocessableEntityErrorBody.ts b/src/serialization/types/UnprocessableEntityErrorBody.ts new file mode 100644 index 00000000..bb7dc161 --- /dev/null +++ b/src/serialization/types/UnprocessableEntityErrorBody.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as Cohere from "../../api/index"; +import * as core from "../../core"; + +export const UnprocessableEntityErrorBody: core.serialization.ObjectSchema< + serializers.UnprocessableEntityErrorBody.Raw, + Cohere.UnprocessableEntityErrorBody +> = core.serialization.object({ + data: core.serialization.string().optional(), +}); + +export declare namespace UnprocessableEntityErrorBody { + interface Raw { + data?: string | null; + } +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index e13942c0..ceb71d85 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -1,15 +1,22 @@ export * from "./ChatStreamRequestPromptTruncation"; export * from "./ChatStreamRequestCitationQuality"; -export * from "./ChatStreamRequestConnectorsSearchOptions"; export * from "./ChatStreamRequestSafetyMode"; +export * from "./StreamedChatResponse"; +export * from "./UnprocessableEntityErrorBody"; +export * from "./TooManyRequestsErrorBody"; +export * from "./ClientClosedRequestErrorBody"; +export * from "./NotImplementedErrorBody"; +export * from "./GatewayTimeoutErrorBody"; export * from "./ChatRequestPromptTruncation"; export * from "./ChatRequestCitationQuality"; -export * from "./ChatRequestConnectorsSearchOptions"; export * from "./ChatRequestSafetyMode"; +export * from "./NonStreamedChatResponse"; export * from "./GenerateStreamRequestTruncate"; export * from "./GenerateStreamRequestReturnLikelihoods"; +export * from "./GenerateStreamedResponse"; export * from "./GenerateRequestTruncate"; export * from "./GenerateRequestReturnLikelihoods"; +export * from "./Generation"; export * from "./EmbedRequestTruncate"; export * from "./EmbedResponse"; export * from "./RerankRequestDocumentsItem"; @@ -40,7 +47,6 @@ export * from "./Tool"; export * from "./TextResponseFormat"; export * from "./JsonResponseFormat"; export * from "./ResponseFormat"; -export * from "./ChatCitationType"; export * from "./ChatCitation"; export * from "./ChatSearchQuery"; export * from "./ChatSearchResultConnector"; @@ -50,7 +56,6 @@ export * from "./ApiMetaApiVersion"; export * from "./ApiMetaBilledUnits"; export * from "./ApiMetaTokens"; export * from "./ApiMeta"; -export * from "./NonStreamedChatResponse"; export * from "./ChatStreamEvent"; export * from "./ChatStreamStartEvent"; export * from "./ChatSearchQueriesGenerationEvent"; @@ -63,10 +68,7 @@ export * from "./ChatStreamEndEvent"; export * from "./ToolCallDelta"; export * from "./ChatToolCallsChunkEvent"; export * from "./ChatDebugEvent"; -export * from "./StreamedChatResponse"; export * from "./TextContent"; -export * from "./ImageUrl"; -export * from "./ImageContent"; export * from "./Content"; export * from "./UserMessageContent"; export * from "./UserMessage"; @@ -75,7 +77,6 @@ export * from "./ToolCallV2"; export * from "./ToolSource"; export * from "./DocumentSource"; export * from "./Source"; -export * from "./CitationType"; export * from "./Citation"; export * from "./AssistantMessageContentItem"; export * from "./AssistantMessageContent"; @@ -90,14 +91,10 @@ export * from "./ToolMessageV2Content"; export * from "./ToolMessageV2"; export * from "./ChatMessageV2"; export * from "./ChatMessages"; -export * from "./ReasoningEffort"; export * from "./ToolV2Function"; export * from "./ToolV2"; export * from "./CitationOptionsMode"; export * from "./CitationOptions"; -export * from "./TruncationStrategyAutoPreserveOrder"; -export * from "./TruncationStrategyNone"; -export * from "./TruncationStrategy"; export * from "./TextResponseFormatV2"; export * from "./JsonResponseFormatV2"; export * from "./ResponseFormatV2"; @@ -108,7 +105,6 @@ export * from "./UsageBilledUnits"; export * from "./UsageTokens"; export * from "./Usage"; export * from "./LogprobItem"; -export * from "./ChatResponse"; export * from "./ChatStreamEventType"; export * from "./ChatMessageStartEventDeltaMessage"; export * from "./ChatMessageStartEventDelta"; @@ -140,28 +136,20 @@ export * from "./CitationStartEvent"; export * from "./CitationEndEvent"; export * from "./ChatMessageEndEventDelta"; export * from "./ChatMessageEndEvent"; -export * from "./StreamedChatResponseV2"; export * from "./SingleGenerationTokenLikelihoodsItem"; export * from "./SingleGeneration"; -export * from "./Generation"; export * from "./GenerateStreamEvent"; export * from "./GenerateStreamText"; export * from "./SingleGenerationInStream"; export * from "./GenerateStreamEndResponse"; export * from "./GenerateStreamEnd"; export * from "./GenerateStreamError"; -export * from "./GenerateStreamedResponse"; export * from "./EmbedInputType"; export * from "./EmbeddingType"; export * from "./Image"; export * from "./EmbedFloatsResponse"; export * from "./EmbedByTypeResponseEmbeddings"; export * from "./EmbedByTypeResponse"; -export * from "./EmbedImageUrl"; -export * from "./EmbedImage"; -export * from "./EmbedText"; -export * from "./EmbedContent"; -export * from "./EmbedInput"; export * from "./EmbedJobStatus"; export * from "./EmbedJobTruncate"; export * from "./EmbedJob"; @@ -178,8 +166,6 @@ export * from "./ChatDataMetrics"; export * from "./LabelMetric"; export * from "./ClassifyDataMetrics"; export * from "./FinetuneDatasetMetrics"; -export * from "./MetricsEmbedDataFieldsItem"; -export * from "./MetricsEmbedData"; export * from "./Metrics"; export * from "./Dataset"; export * from "./ConnectorOAuth"; diff --git a/src/version.ts b/src/version.ts index d200da59..2707c0ff 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "7.17.1"; +export const SDK_VERSION = "8.0.0"; diff --git a/yarn.lock b/yarn.lock index ae9427f5..e25c95c7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -66,379 +66,381 @@ "@smithy/util-utf8" "^2.0.0" tslib "^2.6.2" -"@aws-sdk/client-cognito-identity@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.758.0.tgz#d7094cdb9cb2d9d2de50da4528d53d604205118e" - integrity sha512-8bOXVYtf/0OUN0jXTIHLv3V0TAS6kvvCRAy7nmiL/fDde0O+ChW1WZU7CVPAOtFEpFCdKskDcxFspM7m1k6qyg== +"@aws-sdk/client-cognito-identity@3.817.0": + version "3.817.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.817.0.tgz#43b72aaf94ef1ab483dfc17548db509b8b063d42" + integrity sha512-MNGwOJDQU0jpvsLLPSuPQDhPtDzFTc/k7rLmiKoPrIlgb3Y8pSF4crpJ+ZH3+xod2NWyyOVMEMQeMaKFFdMaKw== dependencies: "@aws-crypto/sha256-browser" "5.2.0" "@aws-crypto/sha256-js" "5.2.0" - "@aws-sdk/core" "3.758.0" - "@aws-sdk/credential-provider-node" "3.758.0" - "@aws-sdk/middleware-host-header" "3.734.0" - "@aws-sdk/middleware-logger" "3.734.0" - "@aws-sdk/middleware-recursion-detection" "3.734.0" - "@aws-sdk/middleware-user-agent" "3.758.0" - "@aws-sdk/region-config-resolver" "3.734.0" - "@aws-sdk/types" "3.734.0" - "@aws-sdk/util-endpoints" "3.743.0" - "@aws-sdk/util-user-agent-browser" "3.734.0" - "@aws-sdk/util-user-agent-node" "3.758.0" - "@smithy/config-resolver" "^4.0.1" - "@smithy/core" "^3.1.5" - "@smithy/fetch-http-handler" "^5.0.1" - "@smithy/hash-node" "^4.0.1" - "@smithy/invalid-dependency" "^4.0.1" - "@smithy/middleware-content-length" "^4.0.1" - "@smithy/middleware-endpoint" "^4.0.6" - "@smithy/middleware-retry" "^4.0.7" - "@smithy/middleware-serde" "^4.0.2" - "@smithy/middleware-stack" "^4.0.1" - "@smithy/node-config-provider" "^4.0.1" - "@smithy/node-http-handler" "^4.0.3" - "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.6" - "@smithy/types" "^4.1.0" - "@smithy/url-parser" "^4.0.1" + "@aws-sdk/core" "3.816.0" + "@aws-sdk/credential-provider-node" "3.817.0" + "@aws-sdk/middleware-host-header" "3.804.0" + "@aws-sdk/middleware-logger" "3.804.0" + "@aws-sdk/middleware-recursion-detection" "3.804.0" + "@aws-sdk/middleware-user-agent" "3.816.0" + "@aws-sdk/region-config-resolver" "3.808.0" + "@aws-sdk/types" "3.804.0" + "@aws-sdk/util-endpoints" "3.808.0" + "@aws-sdk/util-user-agent-browser" "3.804.0" + "@aws-sdk/util-user-agent-node" "3.816.0" + "@smithy/config-resolver" "^4.1.2" + "@smithy/core" "^3.3.3" + "@smithy/fetch-http-handler" "^5.0.2" + "@smithy/hash-node" "^4.0.2" + "@smithy/invalid-dependency" "^4.0.2" + "@smithy/middleware-content-length" "^4.0.2" + "@smithy/middleware-endpoint" "^4.1.6" + "@smithy/middleware-retry" "^4.1.7" + "@smithy/middleware-serde" "^4.0.5" + "@smithy/middleware-stack" "^4.0.2" + "@smithy/node-config-provider" "^4.1.1" + "@smithy/node-http-handler" "^4.0.4" + "@smithy/protocol-http" "^5.1.0" + "@smithy/smithy-client" "^4.2.6" + "@smithy/types" "^4.2.0" + "@smithy/url-parser" "^4.0.2" "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-body-length-node" "^4.0.0" - "@smithy/util-defaults-mode-browser" "^4.0.7" - "@smithy/util-defaults-mode-node" "^4.0.7" - "@smithy/util-endpoints" "^3.0.1" - "@smithy/util-middleware" "^4.0.1" - "@smithy/util-retry" "^4.0.1" + "@smithy/util-defaults-mode-browser" "^4.0.14" + "@smithy/util-defaults-mode-node" "^4.0.14" + "@smithy/util-endpoints" "^3.0.4" + "@smithy/util-middleware" "^4.0.2" + "@smithy/util-retry" "^4.0.3" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" "@aws-sdk/client-sagemaker@^3.583.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/client-sagemaker/-/client-sagemaker-3.758.0.tgz#ee8ae07e774af4141d655330600fb52faf368224" - integrity sha512-w9Ks0XNtZupU7BSqo8JywFosiPeEB8+m6iYDjFLbESe6dWF1eptaU9cT74l6HUVmd3wzQmTaBkZ6ycKkVxkxWQ== + version "3.820.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/client-sagemaker/-/client-sagemaker-3.820.0.tgz#36215e03d2423333122bc982081f5b38951b8798" + integrity sha512-cGSWgLrxd4YUru27dTLW06DA9l2cDhVkCXO6SrRLG101sCQdCS+QZPKDLGScLYgDn9OK+IPqJsak5kPVwYZLJQ== dependencies: "@aws-crypto/sha256-browser" "5.2.0" "@aws-crypto/sha256-js" "5.2.0" - "@aws-sdk/core" "3.758.0" - "@aws-sdk/credential-provider-node" "3.758.0" - "@aws-sdk/middleware-host-header" "3.734.0" - "@aws-sdk/middleware-logger" "3.734.0" - "@aws-sdk/middleware-recursion-detection" "3.734.0" - "@aws-sdk/middleware-user-agent" "3.758.0" - "@aws-sdk/region-config-resolver" "3.734.0" - "@aws-sdk/types" "3.734.0" - "@aws-sdk/util-endpoints" "3.743.0" - "@aws-sdk/util-user-agent-browser" "3.734.0" - "@aws-sdk/util-user-agent-node" "3.758.0" - "@smithy/config-resolver" "^4.0.1" - "@smithy/core" "^3.1.5" - "@smithy/fetch-http-handler" "^5.0.1" - "@smithy/hash-node" "^4.0.1" - "@smithy/invalid-dependency" "^4.0.1" - "@smithy/middleware-content-length" "^4.0.1" - "@smithy/middleware-endpoint" "^4.0.6" - "@smithy/middleware-retry" "^4.0.7" - "@smithy/middleware-serde" "^4.0.2" - "@smithy/middleware-stack" "^4.0.1" - "@smithy/node-config-provider" "^4.0.1" - "@smithy/node-http-handler" "^4.0.3" - "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.6" - "@smithy/types" "^4.1.0" - "@smithy/url-parser" "^4.0.1" + "@aws-sdk/core" "3.816.0" + "@aws-sdk/credential-provider-node" "3.817.0" + "@aws-sdk/middleware-host-header" "3.804.0" + "@aws-sdk/middleware-logger" "3.804.0" + "@aws-sdk/middleware-recursion-detection" "3.804.0" + "@aws-sdk/middleware-user-agent" "3.816.0" + "@aws-sdk/region-config-resolver" "3.808.0" + "@aws-sdk/types" "3.804.0" + "@aws-sdk/util-endpoints" "3.808.0" + "@aws-sdk/util-user-agent-browser" "3.804.0" + "@aws-sdk/util-user-agent-node" "3.816.0" + "@smithy/config-resolver" "^4.1.2" + "@smithy/core" "^3.3.3" + "@smithy/fetch-http-handler" "^5.0.2" + "@smithy/hash-node" "^4.0.2" + "@smithy/invalid-dependency" "^4.0.2" + "@smithy/middleware-content-length" "^4.0.2" + "@smithy/middleware-endpoint" "^4.1.6" + "@smithy/middleware-retry" "^4.1.7" + "@smithy/middleware-serde" "^4.0.5" + "@smithy/middleware-stack" "^4.0.2" + "@smithy/node-config-provider" "^4.1.1" + "@smithy/node-http-handler" "^4.0.4" + "@smithy/protocol-http" "^5.1.0" + "@smithy/smithy-client" "^4.2.6" + "@smithy/types" "^4.2.0" + "@smithy/url-parser" "^4.0.2" "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-body-length-node" "^4.0.0" - "@smithy/util-defaults-mode-browser" "^4.0.7" - "@smithy/util-defaults-mode-node" "^4.0.7" - "@smithy/util-endpoints" "^3.0.1" - "@smithy/util-middleware" "^4.0.1" - "@smithy/util-retry" "^4.0.1" + "@smithy/util-defaults-mode-browser" "^4.0.14" + "@smithy/util-defaults-mode-node" "^4.0.14" + "@smithy/util-endpoints" "^3.0.4" + "@smithy/util-middleware" "^4.0.2" + "@smithy/util-retry" "^4.0.3" "@smithy/util-utf8" "^4.0.0" - "@smithy/util-waiter" "^4.0.2" + "@smithy/util-waiter" "^4.0.3" "@types/uuid" "^9.0.1" tslib "^2.6.2" uuid "^9.0.1" -"@aws-sdk/client-sso@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/client-sso/-/client-sso-3.758.0.tgz#59a249abdfa52125fbe98b1d59c11e4f08ca6527" - integrity sha512-BoGO6IIWrLyLxQG6txJw6RT2urmbtlwfggapNCrNPyYjlXpzTSJhBYjndg7TpDATFd0SXL0zm8y/tXsUXNkdYQ== +"@aws-sdk/client-sso@3.817.0": + version "3.817.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/client-sso/-/client-sso-3.817.0.tgz#eca663fb562095f7ff1c2d0af6f89cc1f04e12a4" + integrity sha512-fCh5rUHmWmWDvw70NNoWpE5+BRdtNi45kDnIoeoszqVg7UKF79SlG+qYooUT52HKCgDNHqgbWaXxMOSqd2I/OQ== dependencies: "@aws-crypto/sha256-browser" "5.2.0" "@aws-crypto/sha256-js" "5.2.0" - "@aws-sdk/core" "3.758.0" - "@aws-sdk/middleware-host-header" "3.734.0" - "@aws-sdk/middleware-logger" "3.734.0" - "@aws-sdk/middleware-recursion-detection" "3.734.0" - "@aws-sdk/middleware-user-agent" "3.758.0" - "@aws-sdk/region-config-resolver" "3.734.0" - "@aws-sdk/types" "3.734.0" - "@aws-sdk/util-endpoints" "3.743.0" - "@aws-sdk/util-user-agent-browser" "3.734.0" - "@aws-sdk/util-user-agent-node" "3.758.0" - "@smithy/config-resolver" "^4.0.1" - "@smithy/core" "^3.1.5" - "@smithy/fetch-http-handler" "^5.0.1" - "@smithy/hash-node" "^4.0.1" - "@smithy/invalid-dependency" "^4.0.1" - "@smithy/middleware-content-length" "^4.0.1" - "@smithy/middleware-endpoint" "^4.0.6" - "@smithy/middleware-retry" "^4.0.7" - "@smithy/middleware-serde" "^4.0.2" - "@smithy/middleware-stack" "^4.0.1" - "@smithy/node-config-provider" "^4.0.1" - "@smithy/node-http-handler" "^4.0.3" - "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.6" - "@smithy/types" "^4.1.0" - "@smithy/url-parser" "^4.0.1" + "@aws-sdk/core" "3.816.0" + "@aws-sdk/middleware-host-header" "3.804.0" + "@aws-sdk/middleware-logger" "3.804.0" + "@aws-sdk/middleware-recursion-detection" "3.804.0" + "@aws-sdk/middleware-user-agent" "3.816.0" + "@aws-sdk/region-config-resolver" "3.808.0" + "@aws-sdk/types" "3.804.0" + "@aws-sdk/util-endpoints" "3.808.0" + "@aws-sdk/util-user-agent-browser" "3.804.0" + "@aws-sdk/util-user-agent-node" "3.816.0" + "@smithy/config-resolver" "^4.1.2" + "@smithy/core" "^3.3.3" + "@smithy/fetch-http-handler" "^5.0.2" + "@smithy/hash-node" "^4.0.2" + "@smithy/invalid-dependency" "^4.0.2" + "@smithy/middleware-content-length" "^4.0.2" + "@smithy/middleware-endpoint" "^4.1.6" + "@smithy/middleware-retry" "^4.1.7" + "@smithy/middleware-serde" "^4.0.5" + "@smithy/middleware-stack" "^4.0.2" + "@smithy/node-config-provider" "^4.1.1" + "@smithy/node-http-handler" "^4.0.4" + "@smithy/protocol-http" "^5.1.0" + "@smithy/smithy-client" "^4.2.6" + "@smithy/types" "^4.2.0" + "@smithy/url-parser" "^4.0.2" "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-body-length-node" "^4.0.0" - "@smithy/util-defaults-mode-browser" "^4.0.7" - "@smithy/util-defaults-mode-node" "^4.0.7" - "@smithy/util-endpoints" "^3.0.1" - "@smithy/util-middleware" "^4.0.1" - "@smithy/util-retry" "^4.0.1" + "@smithy/util-defaults-mode-browser" "^4.0.14" + "@smithy/util-defaults-mode-node" "^4.0.14" + "@smithy/util-endpoints" "^3.0.4" + "@smithy/util-middleware" "^4.0.2" + "@smithy/util-retry" "^4.0.3" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" -"@aws-sdk/core@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/core/-/core-3.758.0.tgz#d13a4bb95de0460d5269cd5a40503c85b344b0b4" - integrity sha512-0RswbdR9jt/XKemaLNuxi2gGr4xGlHyGxkTdhSQzCyUe9A9OPCoLl3rIESRguQEech+oJnbHk/wuiwHqTuP9sg== - dependencies: - "@aws-sdk/types" "3.734.0" - "@smithy/core" "^3.1.5" - "@smithy/node-config-provider" "^4.0.1" - "@smithy/property-provider" "^4.0.1" - "@smithy/protocol-http" "^5.0.1" - "@smithy/signature-v4" "^5.0.1" - "@smithy/smithy-client" "^4.1.6" - "@smithy/types" "^4.1.0" - "@smithy/util-middleware" "^4.0.1" +"@aws-sdk/core@3.816.0": + version "3.816.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/core/-/core-3.816.0.tgz#f310a2fd458534b13f42de5e10fdfd3dfc8d4982" + integrity sha512-Lx50wjtyarzKpMFV6V+gjbSZDgsA/71iyifbClGUSiNPoIQ4OCV0KVOmAAj7mQRVvGJqUMWKVM+WzK79CjbjWA== + dependencies: + "@aws-sdk/types" "3.804.0" + "@smithy/core" "^3.3.3" + "@smithy/node-config-provider" "^4.1.1" + "@smithy/property-provider" "^4.0.2" + "@smithy/protocol-http" "^5.1.0" + "@smithy/signature-v4" "^5.1.0" + "@smithy/smithy-client" "^4.2.6" + "@smithy/types" "^4.2.0" + "@smithy/util-middleware" "^4.0.2" fast-xml-parser "4.4.1" tslib "^2.6.2" -"@aws-sdk/credential-provider-cognito-identity@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.758.0.tgz#40b2a6a785cb8110c0f76a26f7379735b8db0801" - integrity sha512-y/rHZqyChlEkNRr59gn4hv0gjhJwGmdCdW0JI1K9p3P9p7EurWGjr2M6+goTn3ilOlcAwrl5oFKR5jLt27TkOA== +"@aws-sdk/credential-provider-cognito-identity@3.817.0": + version "3.817.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.817.0.tgz#846db6edb05df88e98b2c775f582832addc808d7" + integrity sha512-+dzgWGmdmMNDdeSF+VvONN+hwqoGKX5A6Z3+siMO4CIoKWN7u5nDOx/JLjTGdVQji3522pJjJ+o9veQJNWOMRg== dependencies: - "@aws-sdk/client-cognito-identity" "3.758.0" - "@aws-sdk/types" "3.734.0" - "@smithy/property-provider" "^4.0.1" - "@smithy/types" "^4.1.0" + "@aws-sdk/client-cognito-identity" "3.817.0" + "@aws-sdk/types" "3.804.0" + "@smithy/property-provider" "^4.0.2" + "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-env@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-env/-/credential-provider-env-3.758.0.tgz#6193d1607eedd0929640ff64013f7787f29ff6a1" - integrity sha512-N27eFoRrO6MeUNumtNHDW9WOiwfd59LPXPqDrIa3kWL/s+fOKFHb9xIcF++bAwtcZnAxKkgpDCUP+INNZskE+w== +"@aws-sdk/credential-provider-env@3.816.0": + version "3.816.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-env/-/credential-provider-env-3.816.0.tgz#a5e1dd3a23403f6c8ea4cbdcbf06d7986bcd1e81" + integrity sha512-wUJZwRLe+SxPxRV9AENYBLrJZRrNIo+fva7ZzejsC83iz7hdfq6Rv6B/aHEdPwG/nQC4+q7UUvcRPlomyrpsBA== dependencies: - "@aws-sdk/core" "3.758.0" - "@aws-sdk/types" "3.734.0" - "@smithy/property-provider" "^4.0.1" - "@smithy/types" "^4.1.0" + "@aws-sdk/core" "3.816.0" + "@aws-sdk/types" "3.804.0" + "@smithy/property-provider" "^4.0.2" + "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-http@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-http/-/credential-provider-http-3.758.0.tgz#f7b28d642f2ac933e81a7add08ce582b398c1635" - integrity sha512-Xt9/U8qUCiw1hihztWkNeIR+arg6P+yda10OuCHX6kFVx3auTlU7+hCqs3UxqniGU4dguHuftf3mRpi5/GJ33Q== - dependencies: - "@aws-sdk/core" "3.758.0" - "@aws-sdk/types" "3.734.0" - "@smithy/fetch-http-handler" "^5.0.1" - "@smithy/node-http-handler" "^4.0.3" - "@smithy/property-provider" "^4.0.1" - "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.6" - "@smithy/types" "^4.1.0" - "@smithy/util-stream" "^4.1.2" +"@aws-sdk/credential-provider-http@3.816.0": + version "3.816.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-http/-/credential-provider-http-3.816.0.tgz#35e5188e9c0143c48d02a9c7ca08f9e6e4821ed1" + integrity sha512-gcWGzMQ7yRIF+ljTkR8Vzp7727UY6cmeaPrFQrvcFB8PhOqWpf7g0JsgOf5BSaP8CkkSQcTQHc0C5ZYAzUFwPg== + dependencies: + "@aws-sdk/core" "3.816.0" + "@aws-sdk/types" "3.804.0" + "@smithy/fetch-http-handler" "^5.0.2" + "@smithy/node-http-handler" "^4.0.4" + "@smithy/property-provider" "^4.0.2" + "@smithy/protocol-http" "^5.1.0" + "@smithy/smithy-client" "^4.2.6" + "@smithy/types" "^4.2.0" + "@smithy/util-stream" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-ini@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.758.0.tgz#66457e71d8f5013e18111b25629c2367ed8ef116" - integrity sha512-cymSKMcP5d+OsgetoIZ5QCe1wnp2Q/tq+uIxVdh9MbfdBBEnl9Ecq6dH6VlYS89sp4QKuxHxkWXVnbXU3Q19Aw== - dependencies: - "@aws-sdk/core" "3.758.0" - "@aws-sdk/credential-provider-env" "3.758.0" - "@aws-sdk/credential-provider-http" "3.758.0" - "@aws-sdk/credential-provider-process" "3.758.0" - "@aws-sdk/credential-provider-sso" "3.758.0" - "@aws-sdk/credential-provider-web-identity" "3.758.0" - "@aws-sdk/nested-clients" "3.758.0" - "@aws-sdk/types" "3.734.0" - "@smithy/credential-provider-imds" "^4.0.1" - "@smithy/property-provider" "^4.0.1" - "@smithy/shared-ini-file-loader" "^4.0.1" - "@smithy/types" "^4.1.0" +"@aws-sdk/credential-provider-ini@3.817.0": + version "3.817.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.817.0.tgz#eb0d2dab8fc861cc0871e1a01bac6ac3f84a3b8b" + integrity sha512-kyEwbQyuXE+phWVzloMdkFv6qM6NOon+asMXY5W0fhDKwBz9zQLObDRWBrvQX9lmqq8BbDL1sCfZjOh82Y+RFw== + dependencies: + "@aws-sdk/core" "3.816.0" + "@aws-sdk/credential-provider-env" "3.816.0" + "@aws-sdk/credential-provider-http" "3.816.0" + "@aws-sdk/credential-provider-process" "3.816.0" + "@aws-sdk/credential-provider-sso" "3.817.0" + "@aws-sdk/credential-provider-web-identity" "3.817.0" + "@aws-sdk/nested-clients" "3.817.0" + "@aws-sdk/types" "3.804.0" + "@smithy/credential-provider-imds" "^4.0.4" + "@smithy/property-provider" "^4.0.2" + "@smithy/shared-ini-file-loader" "^4.0.2" + "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-node@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-node/-/credential-provider-node-3.758.0.tgz#b0a5d18e5d7f1b091fd891e2e8088578c0246cef" - integrity sha512-+DaMv63wiq7pJrhIQzZYMn4hSarKiizDoJRvyR7WGhnn0oQ/getX9Z0VNCV3i7lIFoLNTb7WMmQ9k7+z/uD5EQ== - dependencies: - "@aws-sdk/credential-provider-env" "3.758.0" - "@aws-sdk/credential-provider-http" "3.758.0" - "@aws-sdk/credential-provider-ini" "3.758.0" - "@aws-sdk/credential-provider-process" "3.758.0" - "@aws-sdk/credential-provider-sso" "3.758.0" - "@aws-sdk/credential-provider-web-identity" "3.758.0" - "@aws-sdk/types" "3.734.0" - "@smithy/credential-provider-imds" "^4.0.1" - "@smithy/property-provider" "^4.0.1" - "@smithy/shared-ini-file-loader" "^4.0.1" - "@smithy/types" "^4.1.0" +"@aws-sdk/credential-provider-node@3.817.0": + version "3.817.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-node/-/credential-provider-node-3.817.0.tgz#ffa311d3917535a24a3319ff01f430c5ba4139e0" + integrity sha512-b5mz7av0Lhavs1Bz3Zb+jrs0Pki93+8XNctnVO0drBW98x1fM4AR38cWvGbM/w9F9Q0/WEH3TinkmrMPrP4T/w== + dependencies: + "@aws-sdk/credential-provider-env" "3.816.0" + "@aws-sdk/credential-provider-http" "3.816.0" + "@aws-sdk/credential-provider-ini" "3.817.0" + "@aws-sdk/credential-provider-process" "3.816.0" + "@aws-sdk/credential-provider-sso" "3.817.0" + "@aws-sdk/credential-provider-web-identity" "3.817.0" + "@aws-sdk/types" "3.804.0" + "@smithy/credential-provider-imds" "^4.0.4" + "@smithy/property-provider" "^4.0.2" + "@smithy/shared-ini-file-loader" "^4.0.2" + "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-process@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-process/-/credential-provider-process-3.758.0.tgz#563bfae58049afd9968ca60f61672753834ff506" - integrity sha512-AzcY74QTPqcbXWVgjpPZ3HOmxQZYPROIBz2YINF0OQk0MhezDWV/O7Xec+K1+MPGQO3qS6EDrUUlnPLjsqieHA== +"@aws-sdk/credential-provider-process@3.816.0": + version "3.816.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-process/-/credential-provider-process-3.816.0.tgz#8fa3694b8d17d4e446de038e74d5a177d25d86f0" + integrity sha512-9Tm+AxMoV2Izvl5b9tyMQRbBwaex8JP06HN7ZeCXgC5sAsSN+o8dsThnEhf8jKN+uBpT6CLWKN1TXuUMrAmW1A== dependencies: - "@aws-sdk/core" "3.758.0" - "@aws-sdk/types" "3.734.0" - "@smithy/property-provider" "^4.0.1" - "@smithy/shared-ini-file-loader" "^4.0.1" - "@smithy/types" "^4.1.0" + "@aws-sdk/core" "3.816.0" + "@aws-sdk/types" "3.804.0" + "@smithy/property-provider" "^4.0.2" + "@smithy/shared-ini-file-loader" "^4.0.2" + "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-sso@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.758.0.tgz#5098c196a2dd38ba467aca052fc5193476b8a404" - integrity sha512-x0FYJqcOLUCv8GLLFDYMXRAQKGjoM+L0BG4BiHYZRDf24yQWFCAZsCQAYKo6XZYh2qznbsW6f//qpyJ5b0QVKQ== - dependencies: - "@aws-sdk/client-sso" "3.758.0" - "@aws-sdk/core" "3.758.0" - "@aws-sdk/token-providers" "3.758.0" - "@aws-sdk/types" "3.734.0" - "@smithy/property-provider" "^4.0.1" - "@smithy/shared-ini-file-loader" "^4.0.1" - "@smithy/types" "^4.1.0" +"@aws-sdk/credential-provider-sso@3.817.0": + version "3.817.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.817.0.tgz#e23361a57f6aa72417847d568d7fb807a3c7ebfc" + integrity sha512-gFUAW3VmGvdnueK1bh6TOcRX+j99Xm0men1+gz3cA4RE+rZGNy1Qjj8YHlv0hPwI9OnTPZquvPzA5fkviGREWg== + dependencies: + "@aws-sdk/client-sso" "3.817.0" + "@aws-sdk/core" "3.816.0" + "@aws-sdk/token-providers" "3.817.0" + "@aws-sdk/types" "3.804.0" + "@smithy/property-provider" "^4.0.2" + "@smithy/shared-ini-file-loader" "^4.0.2" + "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/credential-provider-web-identity@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.758.0.tgz#ea88729ee0e5de0bf5f31929d60dfd148934b6a5" - integrity sha512-XGguXhBqiCXMXRxcfCAVPlMbm3VyJTou79r/3mxWddHWF0XbhaQiBIbUz6vobVTD25YQRbWSmSch7VA8kI5Lrw== +"@aws-sdk/credential-provider-web-identity@3.817.0": + version "3.817.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.817.0.tgz#7d3c9c5af5a5d17ea877feda57b92ba075df64a8" + integrity sha512-A2kgkS9g6NY0OMT2f2EdXHpL17Ym81NhbGnQ8bRXPqESIi7TFypFD2U6osB2VnsFv+MhwM+Ke4PKXSmLun22/A== dependencies: - "@aws-sdk/core" "3.758.0" - "@aws-sdk/nested-clients" "3.758.0" - "@aws-sdk/types" "3.734.0" - "@smithy/property-provider" "^4.0.1" - "@smithy/types" "^4.1.0" + "@aws-sdk/core" "3.816.0" + "@aws-sdk/nested-clients" "3.817.0" + "@aws-sdk/types" "3.804.0" + "@smithy/property-provider" "^4.0.2" + "@smithy/types" "^4.2.0" tslib "^2.6.2" "@aws-sdk/credential-providers@^3.583.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/credential-providers/-/credential-providers-3.758.0.tgz#302b5339fccaeb3db3cb699a0aeb897e58c12d48" - integrity sha512-BaGVBdm9ynsErIc/mLuUwJ1OQcL/pkhCuAm24jpsif3evZ5wgyZnEAZB2yRin+mQnQaQT3L+KvTbdKGfjL8+fQ== - dependencies: - "@aws-sdk/client-cognito-identity" "3.758.0" - "@aws-sdk/core" "3.758.0" - "@aws-sdk/credential-provider-cognito-identity" "3.758.0" - "@aws-sdk/credential-provider-env" "3.758.0" - "@aws-sdk/credential-provider-http" "3.758.0" - "@aws-sdk/credential-provider-ini" "3.758.0" - "@aws-sdk/credential-provider-node" "3.758.0" - "@aws-sdk/credential-provider-process" "3.758.0" - "@aws-sdk/credential-provider-sso" "3.758.0" - "@aws-sdk/credential-provider-web-identity" "3.758.0" - "@aws-sdk/nested-clients" "3.758.0" - "@aws-sdk/types" "3.734.0" - "@smithy/core" "^3.1.5" - "@smithy/credential-provider-imds" "^4.0.1" - "@smithy/property-provider" "^4.0.1" - "@smithy/types" "^4.1.0" + version "3.817.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/credential-providers/-/credential-providers-3.817.0.tgz#b8db526715d8ac61e7d4650e4f6bab669429d204" + integrity sha512-i6Q2MyktWHG4YG+EmLlnXTgNVjW9/yeNHSKzF55GTho5fjqfU+t9beJfuMWclanRCifamm3N5e5OCm52rVDdTQ== + dependencies: + "@aws-sdk/client-cognito-identity" "3.817.0" + "@aws-sdk/core" "3.816.0" + "@aws-sdk/credential-provider-cognito-identity" "3.817.0" + "@aws-sdk/credential-provider-env" "3.816.0" + "@aws-sdk/credential-provider-http" "3.816.0" + "@aws-sdk/credential-provider-ini" "3.817.0" + "@aws-sdk/credential-provider-node" "3.817.0" + "@aws-sdk/credential-provider-process" "3.816.0" + "@aws-sdk/credential-provider-sso" "3.817.0" + "@aws-sdk/credential-provider-web-identity" "3.817.0" + "@aws-sdk/nested-clients" "3.817.0" + "@aws-sdk/types" "3.804.0" + "@smithy/config-resolver" "^4.1.2" + "@smithy/core" "^3.3.3" + "@smithy/credential-provider-imds" "^4.0.4" + "@smithy/node-config-provider" "^4.1.1" + "@smithy/property-provider" "^4.0.2" + "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/middleware-host-header@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-host-header/-/middleware-host-header-3.734.0.tgz#a9a02c055352f5c435cc925a4e1e79b7ba41b1b5" - integrity sha512-LW7RRgSOHHBzWZnigNsDIzu3AiwtjeI2X66v+Wn1P1u+eXssy1+up4ZY/h+t2sU4LU36UvEf+jrZti9c6vRnFw== +"@aws-sdk/middleware-host-header@3.804.0": + version "3.804.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-host-header/-/middleware-host-header-3.804.0.tgz#e4c2180cfc75f19c697974383324509fa104d7a3" + integrity sha512-bum1hLVBrn2lJCi423Z2fMUYtsbkGI2s4N+2RI2WSjvbaVyMSv/WcejIrjkqiiMR+2Y7m5exgoKeg4/TODLDPQ== dependencies: - "@aws-sdk/types" "3.734.0" - "@smithy/protocol-http" "^5.0.1" - "@smithy/types" "^4.1.0" + "@aws-sdk/types" "3.804.0" + "@smithy/protocol-http" "^5.1.0" + "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/middleware-logger@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-logger/-/middleware-logger-3.734.0.tgz#d31e141ae7a78667e372953a3b86905bc6124664" - integrity sha512-mUMFITpJUW3LcKvFok176eI5zXAUomVtahb9IQBwLzkqFYOrMJvWAvoV4yuxrJ8TlQBG8gyEnkb9SnhZvjg67w== +"@aws-sdk/middleware-logger@3.804.0": + version "3.804.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-logger/-/middleware-logger-3.804.0.tgz#9b7860d0193ec8647a1102aa6ffad070e3260513" + integrity sha512-w/qLwL3iq0KOPQNat0Kb7sKndl9BtceigINwBU7SpkYWX9L/Lem6f8NPEKrC9Tl4wDBht3Yztub4oRTy/horJA== dependencies: - "@aws-sdk/types" "3.734.0" - "@smithy/types" "^4.1.0" + "@aws-sdk/types" "3.804.0" + "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/middleware-recursion-detection@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.734.0.tgz#4fa1deb9887455afbb39130f7d9bc89ccee17168" - integrity sha512-CUat2d9ITsFc2XsmeiRQO96iWpxSKYFjxvj27Hc7vo87YUHRnfMfnc8jw1EpxEwMcvBD7LsRa6vDNky6AjcrFA== +"@aws-sdk/middleware-recursion-detection@3.804.0": + version "3.804.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.804.0.tgz#797bbe72c765e83a1d4c259db9799b77831e1fbb" + integrity sha512-zqHOrvLRdsUdN/ehYfZ9Tf8svhbiLLz5VaWUz22YndFv6m9qaAcijkpAOlKexsv3nLBMJdSdJ6GUTAeIy3BZzw== dependencies: - "@aws-sdk/types" "3.734.0" - "@smithy/protocol-http" "^5.0.1" - "@smithy/types" "^4.1.0" + "@aws-sdk/types" "3.804.0" + "@smithy/protocol-http" "^5.1.0" + "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/middleware-user-agent@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.758.0.tgz#f3c9d2025aa55fd400acb1d699c1fbd6b4f68f34" - integrity sha512-iNyehQXtQlj69JCgfaOssgZD4HeYGOwxcaKeG6F+40cwBjTAi0+Ph1yfDwqk2qiBPIRWJ/9l2LodZbxiBqgrwg== - dependencies: - "@aws-sdk/core" "3.758.0" - "@aws-sdk/types" "3.734.0" - "@aws-sdk/util-endpoints" "3.743.0" - "@smithy/core" "^3.1.5" - "@smithy/protocol-http" "^5.0.1" - "@smithy/types" "^4.1.0" +"@aws-sdk/middleware-user-agent@3.816.0": + version "3.816.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.816.0.tgz#6eb00bbcb44304ff9df53dbb53dc072638831760" + integrity sha512-bHRSlWZ0xDsFR8E2FwDb//0Ff6wMkVx4O+UKsfyNlAbtqCiiHRt5ANNfKPafr95cN2CCxLxiPvFTFVblQM5TsQ== + dependencies: + "@aws-sdk/core" "3.816.0" + "@aws-sdk/types" "3.804.0" + "@aws-sdk/util-endpoints" "3.808.0" + "@smithy/core" "^3.3.3" + "@smithy/protocol-http" "^5.1.0" + "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/nested-clients@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/nested-clients/-/nested-clients-3.758.0.tgz#571c853602d38f5e8faa10178347e711e4f0e444" - integrity sha512-YZ5s7PSvyF3Mt2h1EQulCG93uybprNGbBkPmVuy/HMMfbFTt4iL3SbKjxqvOZelm86epFfj7pvK7FliI2WOEcg== +"@aws-sdk/nested-clients@3.817.0": + version "3.817.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/nested-clients/-/nested-clients-3.817.0.tgz#4df7ff486cb918fa567bd29581452eeac7c05055" + integrity sha512-vQ2E06A48STJFssueJQgxYD8lh1iGJoLJnHdshRDWOQb8gy1wVQR+a7MkPGhGR6lGoS0SCnF/Qp6CZhnwLsqsQ== dependencies: "@aws-crypto/sha256-browser" "5.2.0" "@aws-crypto/sha256-js" "5.2.0" - "@aws-sdk/core" "3.758.0" - "@aws-sdk/middleware-host-header" "3.734.0" - "@aws-sdk/middleware-logger" "3.734.0" - "@aws-sdk/middleware-recursion-detection" "3.734.0" - "@aws-sdk/middleware-user-agent" "3.758.0" - "@aws-sdk/region-config-resolver" "3.734.0" - "@aws-sdk/types" "3.734.0" - "@aws-sdk/util-endpoints" "3.743.0" - "@aws-sdk/util-user-agent-browser" "3.734.0" - "@aws-sdk/util-user-agent-node" "3.758.0" - "@smithy/config-resolver" "^4.0.1" - "@smithy/core" "^3.1.5" - "@smithy/fetch-http-handler" "^5.0.1" - "@smithy/hash-node" "^4.0.1" - "@smithy/invalid-dependency" "^4.0.1" - "@smithy/middleware-content-length" "^4.0.1" - "@smithy/middleware-endpoint" "^4.0.6" - "@smithy/middleware-retry" "^4.0.7" - "@smithy/middleware-serde" "^4.0.2" - "@smithy/middleware-stack" "^4.0.1" - "@smithy/node-config-provider" "^4.0.1" - "@smithy/node-http-handler" "^4.0.3" - "@smithy/protocol-http" "^5.0.1" - "@smithy/smithy-client" "^4.1.6" - "@smithy/types" "^4.1.0" - "@smithy/url-parser" "^4.0.1" + "@aws-sdk/core" "3.816.0" + "@aws-sdk/middleware-host-header" "3.804.0" + "@aws-sdk/middleware-logger" "3.804.0" + "@aws-sdk/middleware-recursion-detection" "3.804.0" + "@aws-sdk/middleware-user-agent" "3.816.0" + "@aws-sdk/region-config-resolver" "3.808.0" + "@aws-sdk/types" "3.804.0" + "@aws-sdk/util-endpoints" "3.808.0" + "@aws-sdk/util-user-agent-browser" "3.804.0" + "@aws-sdk/util-user-agent-node" "3.816.0" + "@smithy/config-resolver" "^4.1.2" + "@smithy/core" "^3.3.3" + "@smithy/fetch-http-handler" "^5.0.2" + "@smithy/hash-node" "^4.0.2" + "@smithy/invalid-dependency" "^4.0.2" + "@smithy/middleware-content-length" "^4.0.2" + "@smithy/middleware-endpoint" "^4.1.6" + "@smithy/middleware-retry" "^4.1.7" + "@smithy/middleware-serde" "^4.0.5" + "@smithy/middleware-stack" "^4.0.2" + "@smithy/node-config-provider" "^4.1.1" + "@smithy/node-http-handler" "^4.0.4" + "@smithy/protocol-http" "^5.1.0" + "@smithy/smithy-client" "^4.2.6" + "@smithy/types" "^4.2.0" + "@smithy/url-parser" "^4.0.2" "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" "@smithy/util-body-length-node" "^4.0.0" - "@smithy/util-defaults-mode-browser" "^4.0.7" - "@smithy/util-defaults-mode-node" "^4.0.7" - "@smithy/util-endpoints" "^3.0.1" - "@smithy/util-middleware" "^4.0.1" - "@smithy/util-retry" "^4.0.1" + "@smithy/util-defaults-mode-browser" "^4.0.14" + "@smithy/util-defaults-mode-node" "^4.0.14" + "@smithy/util-endpoints" "^3.0.4" + "@smithy/util-middleware" "^4.0.2" + "@smithy/util-retry" "^4.0.3" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" @@ -450,16 +452,16 @@ "@smithy/protocol-http" "^1.1.0" tslib "^2.5.0" -"@aws-sdk/region-config-resolver@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/region-config-resolver/-/region-config-resolver-3.734.0.tgz#45ffbc56a3e94cc5c9e0cd596b0fda60f100f70b" - integrity sha512-Lvj1kPRC5IuJBr9DyJ9T9/plkh+EfKLy+12s/mykOy1JaKHDpvj+XGy2YO6YgYVOb8JFtaqloid+5COtje4JTQ== +"@aws-sdk/region-config-resolver@3.808.0": + version "3.808.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/region-config-resolver/-/region-config-resolver-3.808.0.tgz#76b037215c39b01361b9c34b7205f0b52513607c" + integrity sha512-9x2QWfphkARZY5OGkl9dJxZlSlYM2l5inFeo2bKntGuwg4A4YUe5h7d5yJ6sZbam9h43eBrkOdumx03DAkQF9A== dependencies: - "@aws-sdk/types" "3.734.0" - "@smithy/node-config-provider" "^4.0.1" - "@smithy/types" "^4.1.0" + "@aws-sdk/types" "3.804.0" + "@smithy/node-config-provider" "^4.1.1" + "@smithy/types" "^4.2.0" "@smithy/util-config-provider" "^4.0.0" - "@smithy/util-middleware" "^4.0.1" + "@smithy/util-middleware" "^4.0.2" tslib "^2.6.2" "@aws-sdk/signature-v4@^3.374.0": @@ -470,62 +472,63 @@ "@smithy/signature-v4" "^1.0.1" tslib "^2.5.0" -"@aws-sdk/token-providers@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/token-providers/-/token-providers-3.758.0.tgz#fcab3885ba2b222ff8bb7817448d3c786dc2ddf9" - integrity sha512-ckptN1tNrIfQUaGWm/ayW1ddG+imbKN7HHhjFdS4VfItsP0QQOB0+Ov+tpgb4MoNR4JaUghMIVStjIeHN2ks1w== - dependencies: - "@aws-sdk/nested-clients" "3.758.0" - "@aws-sdk/types" "3.734.0" - "@smithy/property-provider" "^4.0.1" - "@smithy/shared-ini-file-loader" "^4.0.1" - "@smithy/types" "^4.1.0" +"@aws-sdk/token-providers@3.817.0": + version "3.817.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/token-providers/-/token-providers-3.817.0.tgz#138a0b4aac9ddbd16c7244a8a0618334804572c1" + integrity sha512-CYN4/UO0VaqyHf46ogZzNrVX7jI3/CfiuktwKlwtpKA6hjf2+ivfgHSKzPpgPBcSEfiibA/26EeLuMnB6cpSrQ== + dependencies: + "@aws-sdk/core" "3.816.0" + "@aws-sdk/nested-clients" "3.817.0" + "@aws-sdk/types" "3.804.0" + "@smithy/property-provider" "^4.0.2" + "@smithy/shared-ini-file-loader" "^4.0.2" + "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/types@3.734.0", "@aws-sdk/types@^3.222.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.734.0.tgz#af5e620b0e761918282aa1c8e53cac6091d169a2" - integrity sha512-o11tSPTT70nAkGV1fN9wm/hAIiLPyWX6SuGf+9JyTp7S/rC2cFWhR26MvA69nplcjNaXVzB0f+QFrLXXjOqCrg== +"@aws-sdk/types@3.804.0", "@aws-sdk/types@^3.222.0": + version "3.804.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.804.0.tgz#b70a734fa721450cf8a513cec0c276001a5d154f" + integrity sha512-A9qnsy9zQ8G89vrPPlNG9d1d8QcKRGqJKqwyGgS0dclJpwy6d1EWgQLIolKPl6vcFpLoe6avLOLxr+h8ur5wpg== dependencies: - "@smithy/types" "^4.1.0" + "@smithy/types" "^4.2.0" tslib "^2.6.2" -"@aws-sdk/util-endpoints@3.743.0": - version "3.743.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-endpoints/-/util-endpoints-3.743.0.tgz#fba654e0c5f1c8ba2b3e175dfee8e3ba4df2394a" - integrity sha512-sN1l559zrixeh5x+pttrnd0A3+r34r0tmPkJ/eaaMaAzXqsmKU/xYre9K3FNnsSS1J1k4PEfk/nHDTVUgFYjnw== +"@aws-sdk/util-endpoints@3.808.0": + version "3.808.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/util-endpoints/-/util-endpoints-3.808.0.tgz#a3d269c4d5a6536d6387ba3cd66876f5b52ce913" + integrity sha512-N6Lic98uc4ADB7fLWlzx+1uVnq04VgVjngZvwHoujcRg9YDhIg9dUDiTzD5VZv13g1BrPYmvYP1HhsildpGV6w== dependencies: - "@aws-sdk/types" "3.734.0" - "@smithy/types" "^4.1.0" - "@smithy/util-endpoints" "^3.0.1" + "@aws-sdk/types" "3.804.0" + "@smithy/types" "^4.2.0" + "@smithy/util-endpoints" "^3.0.4" tslib "^2.6.2" "@aws-sdk/util-locate-window@^3.0.0": - version "3.723.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-locate-window/-/util-locate-window-3.723.0.tgz#174551bfdd2eb36d3c16e7023fd7e7ee96ad0fa9" - integrity sha512-Yf2CS10BqK688DRsrKI/EO6B8ff5J86NXe4C+VCysK7UOgN0l1zOTeTukZ3H8Q9tYYX3oaF1961o8vRkFm7Nmw== + version "3.804.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/util-locate-window/-/util-locate-window-3.804.0.tgz#a2ee8dc5d9c98276986e8e1ba03c0c84d9afb0f5" + integrity sha512-zVoRfpmBVPodYlnMjgVjfGoEZagyRF5IPn3Uo6ZvOZp24chnW/FRstH7ESDHDDRga4z3V+ElUQHKpFDXWyBW5A== dependencies: tslib "^2.6.2" -"@aws-sdk/util-user-agent-browser@3.734.0": - version "3.734.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.734.0.tgz#bbf3348b14bd7783f60346e1ce86978999450fe7" - integrity sha512-xQTCus6Q9LwUuALW+S76OL0jcWtMOVu14q+GoLnWPUM7QeUw963oQcLhF7oq0CtaLLKyl4GOUfcwc773Zmwwng== +"@aws-sdk/util-user-agent-browser@3.804.0": + version "3.804.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.804.0.tgz#0312fda0fd34958a1d89e7691c5b1cf41ad5549b" + integrity sha512-KfW6T6nQHHM/vZBBdGn6fMyG/MgX5lq82TDdX4HRQRRuHKLgBWGpKXqqvBwqIaCdXwWHgDrg2VQups6GqOWW2A== dependencies: - "@aws-sdk/types" "3.734.0" - "@smithy/types" "^4.1.0" + "@aws-sdk/types" "3.804.0" + "@smithy/types" "^4.2.0" bowser "^2.11.0" tslib "^2.6.2" -"@aws-sdk/util-user-agent-node@3.758.0": - version "3.758.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.758.0.tgz#604ccb02a5d11c9cedaea0bea279641ea9d4194d" - integrity sha512-A5EZw85V6WhoKMV2hbuFRvb9NPlxEErb4HPO6/SPXYY4QrjprIzScHxikqcWv1w4J3apB1wto9LPU3IMsYtfrw== +"@aws-sdk/util-user-agent-node@3.816.0": + version "3.816.0" + resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.816.0.tgz#c752f9bc37a973f82841c84b864e362f8ad28f68" + integrity sha512-Q6dxmuj4hL7pudhrneWEQ7yVHIQRBFr0wqKLF1opwOi1cIePuoEbPyJ2jkel6PDEv1YMfvsAKaRshp6eNA8VHg== dependencies: - "@aws-sdk/middleware-user-agent" "3.758.0" - "@aws-sdk/types" "3.734.0" - "@smithy/node-config-provider" "^4.0.1" - "@smithy/types" "^4.1.0" + "@aws-sdk/middleware-user-agent" "3.816.0" + "@aws-sdk/types" "3.804.0" + "@smithy/node-config-provider" "^4.1.1" + "@smithy/types" "^4.2.0" tslib "^2.6.2" "@aws-sdk/util-utf8-browser@^3.0.0": @@ -535,114 +538,114 @@ dependencies: tslib "^2.3.1" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.26.2": - version "7.26.2" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.26.2.tgz#4b5fab97d33338eff916235055f0ebc21e573a85" - integrity sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ== +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.27.1": + version "7.27.1" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.27.1.tgz#200f715e66d52a23b221a9435534a91cc13ad5be" + integrity sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg== dependencies: - "@babel/helper-validator-identifier" "^7.25.9" + "@babel/helper-validator-identifier" "^7.27.1" js-tokens "^4.0.0" - picocolors "^1.0.0" + picocolors "^1.1.1" -"@babel/compat-data@^7.26.5": - version "7.26.8" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.8.tgz#821c1d35641c355284d4a870b8a4a7b0c141e367" - integrity sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ== +"@babel/compat-data@^7.27.2": + version "7.27.3" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.27.3.tgz#cc49c2ac222d69b889bf34c795f537c0c6311111" + integrity sha512-V42wFfx1ymFte+ecf6iXghnnP8kWTO+ZLXIyZq+1LAXHHvTZdVxicn4yiVYdYMGaCO3tmqub11AorKkv+iodqw== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.26.9.tgz#71838542a4b1e49dfed353d7acbc6eb89f4a76f2" - integrity sha512-lWBYIrF7qK5+GjY5Uy+/hEgp8OJWOD/rpy74GplYRhEauvbHDeFB8t5hPOZxCZ0Oxf4Cc36tK51/l3ymJysrKw== + version "7.27.3" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.27.3.tgz#d7d05502bccede3cab36373ed142e6a1df554c2f" + integrity sha512-hyrN8ivxfvJ4i0fIJuV4EOlV0WDMz5Ui4StRTgVaAvWeiRCilXgwVvxJKtFQ3TKtHgJscB2YiXKGNJuVwhQMtA== dependencies: "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.26.2" - "@babel/generator" "^7.26.9" - "@babel/helper-compilation-targets" "^7.26.5" - "@babel/helper-module-transforms" "^7.26.0" - "@babel/helpers" "^7.26.9" - "@babel/parser" "^7.26.9" - "@babel/template" "^7.26.9" - "@babel/traverse" "^7.26.9" - "@babel/types" "^7.26.9" + "@babel/code-frame" "^7.27.1" + "@babel/generator" "^7.27.3" + "@babel/helper-compilation-targets" "^7.27.2" + "@babel/helper-module-transforms" "^7.27.3" + "@babel/helpers" "^7.27.3" + "@babel/parser" "^7.27.3" + "@babel/template" "^7.27.2" + "@babel/traverse" "^7.27.3" + "@babel/types" "^7.27.3" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.26.9", "@babel/generator@^7.7.2": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.26.9.tgz#75a9482ad3d0cc7188a537aa4910bc59db67cbca" - integrity sha512-kEWdzjOAUMW4hAyrzJ0ZaTOu9OmpyDIQicIh0zg0EEcEkYXZb2TjtBhnHi2ViX7PKwZqF4xwqfAm299/QMP3lg== +"@babel/generator@^7.27.3", "@babel/generator@^7.7.2": + version "7.27.3" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.27.3.tgz#ef1c0f7cfe3b5fc8cbb9f6cc69f93441a68edefc" + integrity sha512-xnlJYj5zepml8NXtjkG0WquFUv8RskFqyFcVgTBp5k+NaA/8uw/K+OSVf8AMGw5e9HKP2ETd5xpK5MLZQD6b4Q== dependencies: - "@babel/parser" "^7.26.9" - "@babel/types" "^7.26.9" + "@babel/parser" "^7.27.3" + "@babel/types" "^7.27.3" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" jsesc "^3.0.2" -"@babel/helper-compilation-targets@^7.26.5": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.26.5.tgz#75d92bb8d8d51301c0d49e52a65c9a7fe94514d8" - integrity sha512-IXuyn5EkouFJscIDuFF5EsiSolseme1s0CZB+QxVugqJLYmKdxI1VfIBOst0SUu4rnk2Z7kqTwmoO1lp3HIfnA== +"@babel/helper-compilation-targets@^7.27.2": + version "7.27.2" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz#46a0f6efab808d51d29ce96858dd10ce8732733d" + integrity sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ== dependencies: - "@babel/compat-data" "^7.26.5" - "@babel/helper-validator-option" "^7.25.9" + "@babel/compat-data" "^7.27.2" + "@babel/helper-validator-option" "^7.27.1" browserslist "^4.24.0" lru-cache "^5.1.1" semver "^6.3.1" -"@babel/helper-module-imports@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz#e7f8d20602ebdbf9ebbea0a0751fb0f2a4141715" - integrity sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw== +"@babel/helper-module-imports@^7.27.1": + version "7.27.1" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz#7ef769a323e2655e126673bb6d2d6913bbead204" + integrity sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w== dependencies: - "@babel/traverse" "^7.25.9" - "@babel/types" "^7.25.9" + "@babel/traverse" "^7.27.1" + "@babel/types" "^7.27.1" -"@babel/helper-module-transforms@^7.26.0": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz#8ce54ec9d592695e58d84cd884b7b5c6a2fdeeae" - integrity sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw== +"@babel/helper-module-transforms@^7.27.3": + version "7.27.3" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.27.3.tgz#db0bbcfba5802f9ef7870705a7ef8788508ede02" + integrity sha512-dSOvYwvyLsWBeIRyOeHXp5vPj5l1I011r52FM1+r1jCERv+aFXYk4whgQccYEGYxK2H3ZAIA8nuPkQ0HaUo3qg== dependencies: - "@babel/helper-module-imports" "^7.25.9" - "@babel/helper-validator-identifier" "^7.25.9" - "@babel/traverse" "^7.25.9" + "@babel/helper-module-imports" "^7.27.1" + "@babel/helper-validator-identifier" "^7.27.1" + "@babel/traverse" "^7.27.3" -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.25.9", "@babel/helper-plugin-utils@^7.8.0": - version "7.26.5" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz#18580d00c9934117ad719392c4f6585c9333cc35" - integrity sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg== +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.27.1", "@babel/helper-plugin-utils@^7.8.0": + version "7.27.1" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz#ddb2f876534ff8013e6c2b299bf4d39b3c51d44c" + integrity sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw== -"@babel/helper-string-parser@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz#1aabb72ee72ed35789b4bbcad3ca2862ce614e8c" - integrity sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA== +"@babel/helper-string-parser@^7.27.1": + version "7.27.1" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz#54da796097ab19ce67ed9f88b47bb2ec49367687" + integrity sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA== -"@babel/helper-validator-identifier@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz#24b64e2c3ec7cd3b3c547729b8d16871f22cbdc7" - integrity sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ== +"@babel/helper-validator-identifier@^7.27.1": + version "7.27.1" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz#a7054dcc145a967dd4dc8fee845a57c1316c9df8" + integrity sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow== -"@babel/helper-validator-option@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz#86e45bd8a49ab7e03f276577f96179653d41da72" - integrity sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw== +"@babel/helper-validator-option@^7.27.1": + version "7.27.1" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz#fa52f5b1e7db1ab049445b421c4471303897702f" + integrity sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg== -"@babel/helpers@^7.26.9": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.26.9.tgz#28f3fb45252fc88ef2dc547c8a911c255fc9fef6" - integrity sha512-Mz/4+y8udxBKdmzt/UjPACs4G3j5SshJJEFFKxlCGPydG4JAHXxjWjAwjd09tf6oINvl1VfMJo+nB7H2YKQ0dA== +"@babel/helpers@^7.27.3": + version "7.27.3" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.27.3.tgz#387d65d279290e22fe7a47a8ffcd2d0c0184edd0" + integrity sha512-h/eKy9agOya1IGuLaZ9tEUgz+uIRXcbtOhRtUyyMf8JFmn1iT13vnl/IGVWSkdOCG/pC57U4S1jnAabAavTMwg== dependencies: - "@babel/template" "^7.26.9" - "@babel/types" "^7.26.9" + "@babel/template" "^7.27.2" + "@babel/types" "^7.27.3" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.26.9": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.9.tgz#d9e78bee6dc80f9efd8f2349dcfbbcdace280fd5" - integrity sha512-81NWa1njQblgZbQHxWHpxxCzNsa3ZwvFqpUg7P+NNUU6f3UU2jBEg4OlF/J6rl8+PQGh1q6/zWScd001YwcA5A== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.27.2", "@babel/parser@^7.27.3": + version "7.27.3" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.27.3.tgz#1b7533f0d908ad2ac545c4d05cbe2fb6dc8cfaaf" + integrity sha512-xyYxRj6+tLNDTWi0KCBcZ9V7yg3/lwL9DWh9Uwh/RIVlIfFidggcgxKX3GCXwCiswwcGRawBKbEg2LG/Y8eJhw== dependencies: - "@babel/types" "^7.26.9" + "@babel/types" "^7.27.3" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -673,11 +676,11 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-import-attributes@^7.24.7": - version "7.26.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.26.0.tgz#3b1412847699eea739b4f2602c74ce36f6b0b0f7" - integrity sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A== + version "7.27.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz#34c017d54496f9b11b61474e7ea3dfd5563ffe07" + integrity sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.27.1" "@babel/plugin-syntax-import-meta@^7.10.4": version "7.10.4" @@ -694,11 +697,11 @@ "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-jsx@^7.7.2": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.9.tgz#a34313a178ea56f1951599b929c1ceacee719290" - integrity sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA== + version "7.27.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz#2f9beb5eff30fa507c5532d107daac7b888fa34c" + integrity sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w== dependencies: - "@babel/helper-plugin-utils" "^7.25.9" + "@babel/helper-plugin-utils" "^7.27.1" "@babel/plugin-syntax-logical-assignment-operators@^7.10.4": version "7.10.4" @@ -757,41 +760,41 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript@^7.7.2": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.9.tgz#67dda2b74da43727cf21d46cf9afef23f4365399" - integrity sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/template@^7.26.9", "@babel/template@^7.3.3": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.26.9.tgz#4577ad3ddf43d194528cff4e1fa6b232fa609bb2" - integrity sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA== - dependencies: - "@babel/code-frame" "^7.26.2" - "@babel/parser" "^7.26.9" - "@babel/types" "^7.26.9" - -"@babel/traverse@^7.25.9", "@babel/traverse@^7.26.9": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.9.tgz#4398f2394ba66d05d988b2ad13c219a2c857461a" - integrity sha512-ZYW7L+pL8ahU5fXmNbPF+iZFHCv5scFak7MZ9bwaRPLUhHh7QQEMjZUg0HevihoqCM5iSYHN61EyCoZvqC+bxg== - dependencies: - "@babel/code-frame" "^7.26.2" - "@babel/generator" "^7.26.9" - "@babel/parser" "^7.26.9" - "@babel/template" "^7.26.9" - "@babel/types" "^7.26.9" + version "7.27.1" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz#5147d29066a793450f220c63fa3a9431b7e6dd18" + integrity sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ== + dependencies: + "@babel/helper-plugin-utils" "^7.27.1" + +"@babel/template@^7.27.2", "@babel/template@^7.3.3": + version "7.27.2" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.27.2.tgz#fa78ceed3c4e7b63ebf6cb39e5852fca45f6809d" + integrity sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw== + dependencies: + "@babel/code-frame" "^7.27.1" + "@babel/parser" "^7.27.2" + "@babel/types" "^7.27.1" + +"@babel/traverse@^7.27.1", "@babel/traverse@^7.27.3": + version "7.27.3" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.27.3.tgz#8b62a6c2d10f9d921ba7339c90074708509cffae" + integrity sha512-lId/IfN/Ye1CIu8xG7oKBHXd2iNb2aW1ilPszzGcJug6M8RCKfVNcYhpI5+bMvFYjK7lXIM0R+a+6r8xhHp2FQ== + dependencies: + "@babel/code-frame" "^7.27.1" + "@babel/generator" "^7.27.3" + "@babel/parser" "^7.27.3" + "@babel/template" "^7.27.2" + "@babel/types" "^7.27.3" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.25.9", "@babel/types@^7.26.9", "@babel/types@^7.3.3": - version "7.26.9" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.9.tgz#08b43dec79ee8e682c2ac631c010bdcac54a21ce" - integrity sha512-Y3IR1cRnOxOCDvMmNiym7XpXQ93iGDDPHx+Zj+NM+rg0fBaShfQLkg+hKPaZCEvg5N/LeCo4+Rj/i3FuJsIQaw== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.27.1", "@babel/types@^7.27.3", "@babel/types@^7.3.3": + version "7.27.3" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.27.3.tgz#c0257bedf33aad6aad1f406d35c44758321eb3ec" + integrity sha512-Y1GkI4ktrtvmawoSq+4FCVHNryea6uR+qUQy0AGxLSsjCX0nVmkYQMBLHDkXZuo5hGx7eYdnIaslsdBFm7zbUw== dependencies: - "@babel/helper-string-parser" "^7.25.9" - "@babel/helper-validator-identifier" "^7.25.9" + "@babel/helper-string-parser" "^7.27.1" + "@babel/helper-validator-identifier" "^7.27.1" "@bcoe/v8-coverage@^0.2.3": version "0.2.3" @@ -1065,48 +1068,49 @@ dependencies: "@sinonjs/commons" "^3.0.0" -"@smithy/abort-controller@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/abort-controller/-/abort-controller-4.0.1.tgz#7c5e73690c4105ad264c2896bd1ea822450c3819" - integrity sha512-fiUIYgIgRjMWznk6iLJz35K2YxSLHzLBA/RC6lBrKfQ8fHbPfvk7Pk9UvpKoHgJjI18MnbPuEju53zcVy6KF1g== +"@smithy/abort-controller@^4.0.4": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@smithy/abort-controller/-/abort-controller-4.0.4.tgz#ab991d521fc78b5c7f24907fcd6803c0f2da51d9" + integrity sha512-gJnEjZMvigPDQWHrW3oPrFhQtkrgqBkyjj3pCIdF3A5M6vsZODG93KNlfJprv6bp4245bdT32fsHK4kkH3KYDA== dependencies: - "@smithy/types" "^4.1.0" + "@smithy/types" "^4.3.1" tslib "^2.6.2" -"@smithy/config-resolver@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/config-resolver/-/config-resolver-4.0.1.tgz#3d6c78bbc51adf99c9819bb3f0ea197fe03ad363" - integrity sha512-Igfg8lKu3dRVkTSEm98QpZUvKEOa71jDX4vKRcvJVyRc3UgN3j7vFMf0s7xLQhYmKa8kyJGQgUJDOV5V3neVlQ== +"@smithy/config-resolver@^4.1.2", "@smithy/config-resolver@^4.1.4": + version "4.1.4" + resolved "https://registry.yarnpkg.com/@smithy/config-resolver/-/config-resolver-4.1.4.tgz#05d8eab8bb8eb73bec90c222fc19ac5608b1384e" + integrity sha512-prmU+rDddxHOH0oNcwemL+SwnzcG65sBF2yXRO7aeXIn/xTlq2pX7JLVbkBnVLowHLg4/OL4+jBmv9hVrVGS+w== dependencies: - "@smithy/node-config-provider" "^4.0.1" - "@smithy/types" "^4.1.0" + "@smithy/node-config-provider" "^4.1.3" + "@smithy/types" "^4.3.1" "@smithy/util-config-provider" "^4.0.0" - "@smithy/util-middleware" "^4.0.1" + "@smithy/util-middleware" "^4.0.4" tslib "^2.6.2" -"@smithy/core@^3.1.5": - version "3.1.5" - resolved "https://registry.yarnpkg.com/@smithy/core/-/core-3.1.5.tgz#cc260229e45964d8354a3737bf3dedb56e373616" - integrity sha512-HLclGWPkCsekQgsyzxLhCQLa8THWXtB5PxyYN+2O6nkyLt550KQKTlbV2D1/j5dNIQapAZM1+qFnpBFxZQkgCA== +"@smithy/core@^3.3.3", "@smithy/core@^3.5.1": + version "3.5.1" + resolved "https://registry.yarnpkg.com/@smithy/core/-/core-3.5.1.tgz#12f68b4605b8b374020723989d23464eb55cdd38" + integrity sha512-xSw7bZEFKwOKrm/iv8e2BLt2ur98YZdrRD6nII8ditQeUsY2Q1JmIQ0rpILOhaLKYxxG2ivnoOpokzr9qLyDWA== dependencies: - "@smithy/middleware-serde" "^4.0.2" - "@smithy/protocol-http" "^5.0.1" - "@smithy/types" "^4.1.0" + "@smithy/middleware-serde" "^4.0.8" + "@smithy/protocol-http" "^5.1.2" + "@smithy/types" "^4.3.1" + "@smithy/util-base64" "^4.0.0" "@smithy/util-body-length-browser" "^4.0.0" - "@smithy/util-middleware" "^4.0.1" - "@smithy/util-stream" "^4.1.2" + "@smithy/util-middleware" "^4.0.4" + "@smithy/util-stream" "^4.2.2" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" -"@smithy/credential-provider-imds@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/credential-provider-imds/-/credential-provider-imds-4.0.1.tgz#807110739982acd1588a4847b61e6edf196d004e" - integrity sha512-l/qdInaDq1Zpznpmev/+52QomsJNZ3JkTl5yrTl02V6NBgJOQ4LY0SFw/8zsMwj3tLe8vqiIuwF6nxaEwgf6mg== +"@smithy/credential-provider-imds@^4.0.4", "@smithy/credential-provider-imds@^4.0.6": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@smithy/credential-provider-imds/-/credential-provider-imds-4.0.6.tgz#4cfd79a619cdbc9a75fcdc51a1193685f6a8944e" + integrity sha512-hKMWcANhUiNbCJouYkZ9V3+/Qf9pteR1dnwgdyzR09R4ODEYx8BbUysHwRSyex4rZ9zapddZhLFTnT4ZijR4pw== dependencies: - "@smithy/node-config-provider" "^4.0.1" - "@smithy/property-provider" "^4.0.1" - "@smithy/types" "^4.1.0" - "@smithy/url-parser" "^4.0.1" + "@smithy/node-config-provider" "^4.1.3" + "@smithy/property-provider" "^4.0.4" + "@smithy/types" "^4.3.1" + "@smithy/url-parser" "^4.0.4" tslib "^2.6.2" "@smithy/eventstream-codec@^1.1.0": @@ -1119,33 +1123,33 @@ "@smithy/util-hex-encoding" "^1.1.0" tslib "^2.5.0" -"@smithy/fetch-http-handler@^5.0.1": - version "5.0.1" - resolved "https://registry.yarnpkg.com/@smithy/fetch-http-handler/-/fetch-http-handler-5.0.1.tgz#8463393442ca6a1644204849e42c386066f0df79" - integrity sha512-3aS+fP28urrMW2KTjb6z9iFow6jO8n3MFfineGbndvzGZit3taZhKWtTorf+Gp5RpFDDafeHlhfsGlDCXvUnJA== +"@smithy/fetch-http-handler@^5.0.2", "@smithy/fetch-http-handler@^5.0.4": + version "5.0.4" + resolved "https://registry.yarnpkg.com/@smithy/fetch-http-handler/-/fetch-http-handler-5.0.4.tgz#c68601b4676787e049b5d464d5f4b825dbb44013" + integrity sha512-AMtBR5pHppYMVD7z7G+OlHHAcgAN7v0kVKEpHuTO4Gb199Gowh0taYi9oDStFeUhetkeP55JLSVlTW1n9rFtUw== dependencies: - "@smithy/protocol-http" "^5.0.1" - "@smithy/querystring-builder" "^4.0.1" - "@smithy/types" "^4.1.0" + "@smithy/protocol-http" "^5.1.2" + "@smithy/querystring-builder" "^4.0.4" + "@smithy/types" "^4.3.1" "@smithy/util-base64" "^4.0.0" tslib "^2.6.2" -"@smithy/hash-node@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/hash-node/-/hash-node-4.0.1.tgz#ce78fc11b848a4f47c2e1e7a07fb6b982d2f130c" - integrity sha512-TJ6oZS+3r2Xu4emVse1YPB3Dq3d8RkZDKcPr71Nj/lJsdAP1c7oFzYqEn1IBc915TsgLl2xIJNuxCz+gLbLE0w== +"@smithy/hash-node@^4.0.2": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@smithy/hash-node/-/hash-node-4.0.4.tgz#f867cfe6b702ed8893aacd3e097f8ca8ecba579e" + integrity sha512-qnbTPUhCVnCgBp4z4BUJUhOEkVwxiEi1cyFM+Zj6o+aY8OFGxUQleKWq8ltgp3dujuhXojIvJWdoqpm6dVO3lQ== dependencies: - "@smithy/types" "^4.1.0" + "@smithy/types" "^4.3.1" "@smithy/util-buffer-from" "^4.0.0" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" -"@smithy/invalid-dependency@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/invalid-dependency/-/invalid-dependency-4.0.1.tgz#704d1acb6fac105558c17d53f6d55da6b0d6b6fc" - integrity sha512-gdudFPf4QRQ5pzj7HEnu6FhKRi61BfH/Gk5Yf6O0KiSbr1LlVhgjThcvjdu658VE6Nve8vaIWB8/fodmS1rBPQ== +"@smithy/invalid-dependency@^4.0.2": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@smithy/invalid-dependency/-/invalid-dependency-4.0.4.tgz#8c2c539b2f22e857b4652bd2427a3d7a8befd610" + integrity sha512-bNYMi7WKTJHu0gn26wg8OscncTt1t2b8KcsZxvOv56XA6cyXtOAAAaNP7+m45xfppXfOatXF3Sb1MNsLUgVLTw== dependencies: - "@smithy/types" "^4.1.0" + "@smithy/types" "^4.3.1" tslib "^2.6.2" "@smithy/is-array-buffer@^1.1.0": @@ -1169,87 +1173,88 @@ dependencies: tslib "^2.6.2" -"@smithy/middleware-content-length@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/middleware-content-length/-/middleware-content-length-4.0.1.tgz#378bc94ae623f45e412fb4f164b5bb90b9de2ba3" - integrity sha512-OGXo7w5EkB5pPiac7KNzVtfCW2vKBTZNuCctn++TTSOMpe6RZO/n6WEC1AxJINn3+vWLKW49uad3lo/u0WJ9oQ== +"@smithy/middleware-content-length@^4.0.2": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@smithy/middleware-content-length/-/middleware-content-length-4.0.4.tgz#fad1f125779daf8d5f261dae6dbebba0f60c234b" + integrity sha512-F7gDyfI2BB1Kc+4M6rpuOLne5LOcEknH1n6UQB69qv+HucXBR1rkzXBnQTB2q46sFy1PM/zuSJOB532yc8bg3w== dependencies: - "@smithy/protocol-http" "^5.0.1" - "@smithy/types" "^4.1.0" + "@smithy/protocol-http" "^5.1.2" + "@smithy/types" "^4.3.1" tslib "^2.6.2" -"@smithy/middleware-endpoint@^4.0.6": - version "4.0.6" - resolved "https://registry.yarnpkg.com/@smithy/middleware-endpoint/-/middleware-endpoint-4.0.6.tgz#7ead08fcfda92ee470786a7f458e9b59048407eb" - integrity sha512-ftpmkTHIFqgaFugcjzLZv3kzPEFsBFSnq1JsIkr2mwFzCraZVhQk2gqN51OOeRxqhbPTkRFj39Qd2V91E/mQxg== - dependencies: - "@smithy/core" "^3.1.5" - "@smithy/middleware-serde" "^4.0.2" - "@smithy/node-config-provider" "^4.0.1" - "@smithy/shared-ini-file-loader" "^4.0.1" - "@smithy/types" "^4.1.0" - "@smithy/url-parser" "^4.0.1" - "@smithy/util-middleware" "^4.0.1" +"@smithy/middleware-endpoint@^4.1.6", "@smithy/middleware-endpoint@^4.1.9": + version "4.1.9" + resolved "https://registry.yarnpkg.com/@smithy/middleware-endpoint/-/middleware-endpoint-4.1.9.tgz#217020b4c29605e73b953da47202aa1f30c28fdf" + integrity sha512-AjDgX4UjORLltD/LZCBQTwjQqEfyrx/GeDTHcYLzIgf87pIT70tMWnN87NQpJru1K4ITirY2htSOxNECZJCBOg== + dependencies: + "@smithy/core" "^3.5.1" + "@smithy/middleware-serde" "^4.0.8" + "@smithy/node-config-provider" "^4.1.3" + "@smithy/shared-ini-file-loader" "^4.0.4" + "@smithy/types" "^4.3.1" + "@smithy/url-parser" "^4.0.4" + "@smithy/util-middleware" "^4.0.4" tslib "^2.6.2" -"@smithy/middleware-retry@^4.0.7": - version "4.0.7" - resolved "https://registry.yarnpkg.com/@smithy/middleware-retry/-/middleware-retry-4.0.7.tgz#8bb2014842a6144f230967db502f5fe6adcd6529" - integrity sha512-58j9XbUPLkqAcV1kHzVX/kAR16GT+j7DUZJqwzsxh1jtz7G82caZiGyyFgUvogVfNTg3TeAOIJepGc8TXF4AVQ== - dependencies: - "@smithy/node-config-provider" "^4.0.1" - "@smithy/protocol-http" "^5.0.1" - "@smithy/service-error-classification" "^4.0.1" - "@smithy/smithy-client" "^4.1.6" - "@smithy/types" "^4.1.0" - "@smithy/util-middleware" "^4.0.1" - "@smithy/util-retry" "^4.0.1" +"@smithy/middleware-retry@^4.1.7": + version "4.1.10" + resolved "https://registry.yarnpkg.com/@smithy/middleware-retry/-/middleware-retry-4.1.10.tgz#f3b8442b29c8bbd5ec2fdf1b033e443ff7b3bdbc" + integrity sha512-RyhcA3sZIIvAo6r48b2Nx2qfg0OnyohlaV0fw415xrQyx5HQ2bvHl9vs/WBiDXIP49mCfws5wX4308c9Pi/isw== + dependencies: + "@smithy/node-config-provider" "^4.1.3" + "@smithy/protocol-http" "^5.1.2" + "@smithy/service-error-classification" "^4.0.5" + "@smithy/smithy-client" "^4.4.1" + "@smithy/types" "^4.3.1" + "@smithy/util-middleware" "^4.0.4" + "@smithy/util-retry" "^4.0.5" tslib "^2.6.2" uuid "^9.0.1" -"@smithy/middleware-serde@^4.0.2": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@smithy/middleware-serde/-/middleware-serde-4.0.2.tgz#f792d72f6ad8fa6b172e3f19c6fe1932a856a56d" - integrity sha512-Sdr5lOagCn5tt+zKsaW+U2/iwr6bI9p08wOkCp6/eL6iMbgdtc2R5Ety66rf87PeohR0ExI84Txz9GYv5ou3iQ== +"@smithy/middleware-serde@^4.0.5", "@smithy/middleware-serde@^4.0.8": + version "4.0.8" + resolved "https://registry.yarnpkg.com/@smithy/middleware-serde/-/middleware-serde-4.0.8.tgz#3704c8cc46acd0a7f910a78ee1d2f23ce928701f" + integrity sha512-iSSl7HJoJaGyMIoNn2B7czghOVwJ9nD7TMvLhMWeSB5vt0TnEYyRRqPJu/TqW76WScaNvYYB8nRoiBHR9S1Ddw== dependencies: - "@smithy/types" "^4.1.0" + "@smithy/protocol-http" "^5.1.2" + "@smithy/types" "^4.3.1" tslib "^2.6.2" -"@smithy/middleware-stack@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/middleware-stack/-/middleware-stack-4.0.1.tgz#c157653f9df07f7c26e32f49994d368e4e071d22" - integrity sha512-dHwDmrtR/ln8UTHpaIavRSzeIk5+YZTBtLnKwDW3G2t6nAupCiQUvNzNoHBpik63fwUaJPtlnMzXbQrNFWssIA== +"@smithy/middleware-stack@^4.0.2", "@smithy/middleware-stack@^4.0.4": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@smithy/middleware-stack/-/middleware-stack-4.0.4.tgz#58e0c6a0d7678c6ad4d6af8dd9a00f749ffac7c5" + integrity sha512-kagK5ggDrBUCCzI93ft6DjteNSfY8Ulr83UtySog/h09lTIOAJ/xUSObutanlPT0nhoHAkpmW9V5K8oPyLh+QA== dependencies: - "@smithy/types" "^4.1.0" + "@smithy/types" "^4.3.1" tslib "^2.6.2" -"@smithy/node-config-provider@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/node-config-provider/-/node-config-provider-4.0.1.tgz#4e84fe665c0774d5f4ebb75144994fc6ebedf86e" - integrity sha512-8mRTjvCtVET8+rxvmzRNRR0hH2JjV0DFOmwXPrISmTIJEfnCBugpYYGAsCj8t41qd+RB5gbheSQ/6aKZCQvFLQ== +"@smithy/node-config-provider@^4.1.1", "@smithy/node-config-provider@^4.1.3": + version "4.1.3" + resolved "https://registry.yarnpkg.com/@smithy/node-config-provider/-/node-config-provider-4.1.3.tgz#6626fe26c6fe7b0df34f71cb72764ccba414a815" + integrity sha512-HGHQr2s59qaU1lrVH6MbLlmOBxadtzTsoO4c+bF5asdgVik3I8o7JIOzoeqWc5MjVa+vD36/LWE0iXKpNqooRw== dependencies: - "@smithy/property-provider" "^4.0.1" - "@smithy/shared-ini-file-loader" "^4.0.1" - "@smithy/types" "^4.1.0" + "@smithy/property-provider" "^4.0.4" + "@smithy/shared-ini-file-loader" "^4.0.4" + "@smithy/types" "^4.3.1" tslib "^2.6.2" -"@smithy/node-http-handler@^4.0.3": - version "4.0.3" - resolved "https://registry.yarnpkg.com/@smithy/node-http-handler/-/node-http-handler-4.0.3.tgz#363e1d453168b4e37e8dd456d0a368a4e413bc98" - integrity sha512-dYCLeINNbYdvmMLtW0VdhW1biXt+PPCGazzT5ZjKw46mOtdgToQEwjqZSS9/EN8+tNs/RO0cEWG044+YZs97aA== +"@smithy/node-http-handler@^4.0.4", "@smithy/node-http-handler@^4.0.6": + version "4.0.6" + resolved "https://registry.yarnpkg.com/@smithy/node-http-handler/-/node-http-handler-4.0.6.tgz#a022da499ba3af4b6b4c815104fde973c0eccc40" + integrity sha512-NqbmSz7AW2rvw4kXhKGrYTiJVDHnMsFnX4i+/FzcZAfbOBauPYs2ekuECkSbtqaxETLLTu9Rl/ex6+I2BKErPA== dependencies: - "@smithy/abort-controller" "^4.0.1" - "@smithy/protocol-http" "^5.0.1" - "@smithy/querystring-builder" "^4.0.1" - "@smithy/types" "^4.1.0" + "@smithy/abort-controller" "^4.0.4" + "@smithy/protocol-http" "^5.1.2" + "@smithy/querystring-builder" "^4.0.4" + "@smithy/types" "^4.3.1" tslib "^2.6.2" -"@smithy/property-provider@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/property-provider/-/property-provider-4.0.1.tgz#8d35d5997af2a17cf15c5e921201ef6c5e3fc870" - integrity sha512-o+VRiwC2cgmk/WFV0jaETGOtX16VNPp2bSQEzu0whbReqE1BMqsP2ami2Vi3cbGVdKu1kq9gQkDAGKbt0WOHAQ== +"@smithy/property-provider@^4.0.2", "@smithy/property-provider@^4.0.4": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@smithy/property-provider/-/property-provider-4.0.4.tgz#303a8fd99665fff61eeb6ec3922eee53838962c5" + integrity sha512-qHJ2sSgu4FqF4U/5UUp4DhXNmdTrgmoAai6oQiM+c5RZ/sbDwJ12qxB1M6FnP+Tn/ggkPZf9ccn4jqKSINaquw== dependencies: - "@smithy/types" "^4.1.0" + "@smithy/types" "^4.3.1" tslib "^2.6.2" "@smithy/protocol-http@^1.1.0": @@ -1260,44 +1265,44 @@ "@smithy/types" "^1.2.0" tslib "^2.5.0" -"@smithy/protocol-http@^5.0.1": - version "5.0.1" - resolved "https://registry.yarnpkg.com/@smithy/protocol-http/-/protocol-http-5.0.1.tgz#37c248117b29c057a9adfad4eb1d822a67079ff1" - integrity sha512-TE4cpj49jJNB/oHyh/cRVEgNZaoPaxd4vteJNB0yGidOCVR0jCw/hjPVsT8Q8FRmj8Bd3bFZt8Dh7xGCT+xMBQ== +"@smithy/protocol-http@^5.1.0", "@smithy/protocol-http@^5.1.2": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@smithy/protocol-http/-/protocol-http-5.1.2.tgz#8094860c2407f250b80c95899e0385112d6eb98b" + integrity sha512-rOG5cNLBXovxIrICSBm95dLqzfvxjEmuZx4KK3hWwPFHGdW3lxY0fZNXfv2zebfRO7sJZ5pKJYHScsqopeIWtQ== dependencies: - "@smithy/types" "^4.1.0" + "@smithy/types" "^4.3.1" tslib "^2.6.2" -"@smithy/querystring-builder@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/querystring-builder/-/querystring-builder-4.0.1.tgz#37e1e05d0d33c6f694088abc3e04eafb65cb6976" - integrity sha512-wU87iWZoCbcqrwszsOewEIuq+SU2mSoBE2CcsLwE0I19m0B2gOJr1MVjxWcDQYOzHbR1xCk7AcOBbGFUYOKvdg== +"@smithy/querystring-builder@^4.0.4": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@smithy/querystring-builder/-/querystring-builder-4.0.4.tgz#f7546efd59d457b3d2525a330c6137e5f907864c" + integrity sha512-SwREZcDnEYoh9tLNgMbpop+UTGq44Hl9tdj3rf+yeLcfH7+J8OXEBaMc2kDxtyRHu8BhSg9ADEx0gFHvpJgU8w== dependencies: - "@smithy/types" "^4.1.0" + "@smithy/types" "^4.3.1" "@smithy/util-uri-escape" "^4.0.0" tslib "^2.6.2" -"@smithy/querystring-parser@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/querystring-parser/-/querystring-parser-4.0.1.tgz#312dc62b146f8bb8a67558d82d4722bb9211af42" - integrity sha512-Ma2XC7VS9aV77+clSFylVUnPZRindhB7BbmYiNOdr+CHt/kZNJoPP0cd3QxCnCFyPXC4eybmyE98phEHkqZ5Jw== +"@smithy/querystring-parser@^4.0.4": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@smithy/querystring-parser/-/querystring-parser-4.0.4.tgz#307ab95ee5f1a142ab46c2eddebeae68cb2f703d" + integrity sha512-6yZf53i/qB8gRHH/l2ZwUG5xgkPgQF15/KxH0DdXMDHjesA9MeZje/853ifkSY0x4m5S+dfDZ+c4x439PF0M2w== dependencies: - "@smithy/types" "^4.1.0" + "@smithy/types" "^4.3.1" tslib "^2.6.2" -"@smithy/service-error-classification@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/service-error-classification/-/service-error-classification-4.0.1.tgz#84e78579af46c7b79c900b6d6cc822c9465f3259" - integrity sha512-3JNjBfOWpj/mYfjXJHB4Txc/7E4LVq32bwzE7m28GN79+M1f76XHflUaSUkhOriprPDzev9cX/M+dEB80DNDKA== +"@smithy/service-error-classification@^4.0.5": + version "4.0.5" + resolved "https://registry.yarnpkg.com/@smithy/service-error-classification/-/service-error-classification-4.0.5.tgz#cd912cdd0510de9369db6a4d34dc36f36de54a59" + integrity sha512-LvcfhrnCBvCmTee81pRlh1F39yTS/+kYleVeLCwNtkY8wtGg8V/ca9rbZZvYIl8OjlMtL6KIjaiL/lgVqHD2nA== dependencies: - "@smithy/types" "^4.1.0" + "@smithy/types" "^4.3.1" -"@smithy/shared-ini-file-loader@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.1.tgz#d35c21c29454ca4e58914a4afdde68d3b2def1ee" - integrity sha512-hC8F6qTBbuHRI/uqDgqqi6J0R4GtEZcgrZPhFQnMhfJs3MnUTGSnR1NSJCJs5VWlMydu0kJz15M640fJlRsIOw== +"@smithy/shared-ini-file-loader@^4.0.2", "@smithy/shared-ini-file-loader@^4.0.4": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.0.4.tgz#33c63468b95cfd5e7d642c8131d7acc034025e00" + integrity sha512-63X0260LoFBjrHifPDs+nM9tV0VMkOTl4JRMYNuKh/f5PauSjowTfvF3LogfkWdcPoxsA9UjqEOgjeYIbhb7Nw== dependencies: - "@smithy/types" "^4.1.0" + "@smithy/types" "^4.3.1" tslib "^2.6.2" "@smithy/signature-v4@^1.0.1": @@ -1314,31 +1319,31 @@ "@smithy/util-utf8" "^1.1.0" tslib "^2.5.0" -"@smithy/signature-v4@^5.0.1": - version "5.0.1" - resolved "https://registry.yarnpkg.com/@smithy/signature-v4/-/signature-v4-5.0.1.tgz#f93401b176150286ba246681031b0503ec359270" - integrity sha512-nCe6fQ+ppm1bQuw5iKoeJ0MJfz2os7Ic3GBjOkLOPtavbD1ONoyE3ygjBfz2ythFWm4YnRm6OxW+8p/m9uCoIA== +"@smithy/signature-v4@^5.1.0": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@smithy/signature-v4/-/signature-v4-5.1.2.tgz#5afd9d428bd26bb660bee8075b6e89fe93600c22" + integrity sha512-d3+U/VpX7a60seHziWnVZOHuEgJlclufjkS6zhXvxcJgkJq4UWdH5eOBLzHRMx6gXjsdT9h6lfpmLzbrdupHgQ== dependencies: "@smithy/is-array-buffer" "^4.0.0" - "@smithy/protocol-http" "^5.0.1" - "@smithy/types" "^4.1.0" + "@smithy/protocol-http" "^5.1.2" + "@smithy/types" "^4.3.1" "@smithy/util-hex-encoding" "^4.0.0" - "@smithy/util-middleware" "^4.0.1" + "@smithy/util-middleware" "^4.0.4" "@smithy/util-uri-escape" "^4.0.0" "@smithy/util-utf8" "^4.0.0" tslib "^2.6.2" -"@smithy/smithy-client@^4.1.6": - version "4.1.6" - resolved "https://registry.yarnpkg.com/@smithy/smithy-client/-/smithy-client-4.1.6.tgz#2183c922d086d33252012232be891f29a008d932" - integrity sha512-UYDolNg6h2O0L+cJjtgSyKKvEKCOa/8FHYJnBobyeoeWDmNpXjwOAtw16ezyeu1ETuuLEOZbrynK0ZY1Lx9Jbw== - dependencies: - "@smithy/core" "^3.1.5" - "@smithy/middleware-endpoint" "^4.0.6" - "@smithy/middleware-stack" "^4.0.1" - "@smithy/protocol-http" "^5.0.1" - "@smithy/types" "^4.1.0" - "@smithy/util-stream" "^4.1.2" +"@smithy/smithy-client@^4.2.6", "@smithy/smithy-client@^4.4.1": + version "4.4.1" + resolved "https://registry.yarnpkg.com/@smithy/smithy-client/-/smithy-client-4.4.1.tgz#4725d5339393f3dae37f3934a6d79b9934fbf496" + integrity sha512-XPbcHRfd0iwx8dY5XCBCGyI7uweMW0oezYezxXcG8ANgvZ5YPuC6Ylh+n0bTHpdU3SCMZOnhzgVklYz+p3fIhw== + dependencies: + "@smithy/core" "^3.5.1" + "@smithy/middleware-endpoint" "^4.1.9" + "@smithy/middleware-stack" "^4.0.4" + "@smithy/protocol-http" "^5.1.2" + "@smithy/types" "^4.3.1" + "@smithy/util-stream" "^4.2.2" tslib "^2.6.2" "@smithy/types@^1.2.0": @@ -1348,20 +1353,20 @@ dependencies: tslib "^2.5.0" -"@smithy/types@^4.1.0": - version "4.1.0" - resolved "https://registry.yarnpkg.com/@smithy/types/-/types-4.1.0.tgz#19de0b6087bccdd4182a334eb5d3d2629699370f" - integrity sha512-enhjdwp4D7CXmwLtD6zbcDMbo6/T6WtuuKCY49Xxc6OMOmUWlBEBDREsxxgV2LIdeQPW756+f97GzcgAwp3iLw== +"@smithy/types@^4.2.0", "@smithy/types@^4.3.1": + version "4.3.1" + resolved "https://registry.yarnpkg.com/@smithy/types/-/types-4.3.1.tgz#c11276ea16235d798f47a68aef9f44d3dbb70dd4" + integrity sha512-UqKOQBL2x6+HWl3P+3QqFD4ncKq0I8Nuz9QItGv5WuKuMHuuwlhvqcZCoXGfc+P1QmfJE7VieykoYYmrOoFJxA== dependencies: tslib "^2.6.2" -"@smithy/url-parser@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/url-parser/-/url-parser-4.0.1.tgz#b47743f785f5b8d81324878cbb1b5f834bf8d85a" - integrity sha512-gPXcIEUtw7VlK8f/QcruNXm7q+T5hhvGu9tl63LsJPZ27exB6dtNwvh2HIi0v7JcXJ5emBxB+CJxwaLEdJfA+g== +"@smithy/url-parser@^4.0.2", "@smithy/url-parser@^4.0.4": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@smithy/url-parser/-/url-parser-4.0.4.tgz#049143f4c156356e177bd69242675db26fe4f4db" + integrity sha512-eMkc144MuN7B0TDA4U2fKs+BqczVbk3W+qIvcoCY6D1JY3hnAdCuhCZODC+GAeaxj0p6Jroz4+XMUn3PCxQQeQ== dependencies: - "@smithy/querystring-parser" "^4.0.1" - "@smithy/types" "^4.1.0" + "@smithy/querystring-parser" "^4.0.4" + "@smithy/types" "^4.3.1" tslib "^2.6.2" "@smithy/util-base64@^4.0.0": @@ -1418,37 +1423,37 @@ dependencies: tslib "^2.6.2" -"@smithy/util-defaults-mode-browser@^4.0.7": - version "4.0.7" - resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.7.tgz#54595ab3da6765bfb388e8e8b594276e0f485710" - integrity sha512-CZgDDrYHLv0RUElOsmZtAnp1pIjwDVCSuZWOPhIOBvG36RDfX1Q9+6lS61xBf+qqvHoqRjHxgINeQz47cYFC2Q== +"@smithy/util-defaults-mode-browser@^4.0.14": + version "4.0.17" + resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.0.17.tgz#9389485ad47119b51e888ea1a4fdfa23c040c4a9" + integrity sha512-HXq5181qnXmIwB7VrwqwP8rsJybHMoYuJnNoXy4PROs2pfSI4sWDMASF2i+7Lo+u64Y6xowhegcdxczowgJtZg== dependencies: - "@smithy/property-provider" "^4.0.1" - "@smithy/smithy-client" "^4.1.6" - "@smithy/types" "^4.1.0" + "@smithy/property-provider" "^4.0.4" + "@smithy/smithy-client" "^4.4.1" + "@smithy/types" "^4.3.1" bowser "^2.11.0" tslib "^2.6.2" -"@smithy/util-defaults-mode-node@^4.0.7": - version "4.0.7" - resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.7.tgz#0dea136de9096a36d84416f6af5843d866621491" - integrity sha512-79fQW3hnfCdrfIi1soPbK3zmooRFnLpSx3Vxi6nUlqaaQeC5dm8plt4OTNDNqEEEDkvKghZSaoti684dQFVrGQ== - dependencies: - "@smithy/config-resolver" "^4.0.1" - "@smithy/credential-provider-imds" "^4.0.1" - "@smithy/node-config-provider" "^4.0.1" - "@smithy/property-provider" "^4.0.1" - "@smithy/smithy-client" "^4.1.6" - "@smithy/types" "^4.1.0" +"@smithy/util-defaults-mode-node@^4.0.14": + version "4.0.17" + resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.0.17.tgz#5a5f12ad57e775b7fc227dd6975baa4f51a318f3" + integrity sha512-RfU2A5LjFhEHw4Nwl1GZNitK4AUWu5jGtigAUDoQtfDUvYHpQxcuLw2QGAdKDtKRflIiHSZ8wXBDR36H9R2Ang== + dependencies: + "@smithy/config-resolver" "^4.1.4" + "@smithy/credential-provider-imds" "^4.0.6" + "@smithy/node-config-provider" "^4.1.3" + "@smithy/property-provider" "^4.0.4" + "@smithy/smithy-client" "^4.4.1" + "@smithy/types" "^4.3.1" tslib "^2.6.2" -"@smithy/util-endpoints@^3.0.1": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@smithy/util-endpoints/-/util-endpoints-3.0.1.tgz#44ccbf1721447966f69496c9003b87daa8f61975" - integrity sha512-zVdUENQpdtn9jbpD9SCFK4+aSiavRb9BxEtw9ZGUR1TYo6bBHbIoi7VkrFQ0/RwZlzx0wRBaRmPclj8iAoJCLA== +"@smithy/util-endpoints@^3.0.4": + version "3.0.6" + resolved "https://registry.yarnpkg.com/@smithy/util-endpoints/-/util-endpoints-3.0.6.tgz#a24b0801a1b94c0de26ad83da206b9add68117f2" + integrity sha512-YARl3tFL3WgPuLzljRUnrS2ngLiUtkwhQtj8PAL13XZSyUiNLQxwG3fBBq3QXFqGFUXepIN73pINp3y8c2nBmA== dependencies: - "@smithy/node-config-provider" "^4.0.1" - "@smithy/types" "^4.1.0" + "@smithy/node-config-provider" "^4.1.3" + "@smithy/types" "^4.3.1" tslib "^2.6.2" "@smithy/util-hex-encoding@^1.1.0": @@ -1472,31 +1477,31 @@ dependencies: tslib "^2.5.0" -"@smithy/util-middleware@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/util-middleware/-/util-middleware-4.0.1.tgz#58d363dcd661219298c89fa176a28e98ccc4bf43" - integrity sha512-HiLAvlcqhbzhuiOa0Lyct5IIlyIz0PQO5dnMlmQ/ubYM46dPInB+3yQGkfxsk6Q24Y0n3/JmcA1v5iEhmOF5mA== +"@smithy/util-middleware@^4.0.2", "@smithy/util-middleware@^4.0.4": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@smithy/util-middleware/-/util-middleware-4.0.4.tgz#8f639de049082c687841ea5e69c6c36e12e31a3c" + integrity sha512-9MLKmkBmf4PRb0ONJikCbCwORACcil6gUWojwARCClT7RmLzF04hUR4WdRprIXal7XVyrddadYNfp2eF3nrvtQ== dependencies: - "@smithy/types" "^4.1.0" + "@smithy/types" "^4.3.1" tslib "^2.6.2" -"@smithy/util-retry@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@smithy/util-retry/-/util-retry-4.0.1.tgz#fb5f26492383dcb9a09cc4aee23a10f839cd0769" - integrity sha512-WmRHqNVwn3kI3rKk1LsKcVgPBG6iLTBGC1iYOV3GQegwJ3E8yjzHytPt26VNzOWr1qu0xE03nK0Ug8S7T7oufw== +"@smithy/util-retry@^4.0.3", "@smithy/util-retry@^4.0.5": + version "4.0.5" + resolved "https://registry.yarnpkg.com/@smithy/util-retry/-/util-retry-4.0.5.tgz#58eea5bb1869745dac28a3f81a5904f225ec1207" + integrity sha512-V7MSjVDTlEt/plmOFBn1762Dyu5uqMrV2Pl2X0dYk4XvWfdWJNe9Bs5Bzb56wkCuiWjSfClVMGcsuKrGj7S/yg== dependencies: - "@smithy/service-error-classification" "^4.0.1" - "@smithy/types" "^4.1.0" + "@smithy/service-error-classification" "^4.0.5" + "@smithy/types" "^4.3.1" tslib "^2.6.2" -"@smithy/util-stream@^4.1.2": - version "4.1.2" - resolved "https://registry.yarnpkg.com/@smithy/util-stream/-/util-stream-4.1.2.tgz#b867f25bc8b016de0582810a2f4092a71c5e3244" - integrity sha512-44PKEqQ303d3rlQuiDpcCcu//hV8sn+u2JBo84dWCE0rvgeiVl0IlLMagbU++o0jCWhYCsHaAt9wZuZqNe05Hw== +"@smithy/util-stream@^4.2.0", "@smithy/util-stream@^4.2.2": + version "4.2.2" + resolved "https://registry.yarnpkg.com/@smithy/util-stream/-/util-stream-4.2.2.tgz#beeb1edf690db9b7d7983f46ca4fb66e22253608" + integrity sha512-aI+GLi7MJoVxg24/3J1ipwLoYzgkB4kUfogZfnslcYlynj3xsQ0e7vk4TnTro9hhsS5PvX1mwmkRqqHQjwcU7w== dependencies: - "@smithy/fetch-http-handler" "^5.0.1" - "@smithy/node-http-handler" "^4.0.3" - "@smithy/types" "^4.1.0" + "@smithy/fetch-http-handler" "^5.0.4" + "@smithy/node-http-handler" "^4.0.6" + "@smithy/types" "^4.3.1" "@smithy/util-base64" "^4.0.0" "@smithy/util-buffer-from" "^4.0.0" "@smithy/util-hex-encoding" "^4.0.0" @@ -1541,13 +1546,13 @@ "@smithy/util-buffer-from" "^4.0.0" tslib "^2.6.2" -"@smithy/util-waiter@^4.0.2": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@smithy/util-waiter/-/util-waiter-4.0.2.tgz#0a73a0fcd30ea7bbc3009cf98ad199f51b8eac51" - integrity sha512-piUTHyp2Axx3p/kc2CIJkYSv0BAaheBQmbACZgQSSfWUumWNW+R1lL+H9PDBxKJkvOeEX+hKYEFiwO8xagL8AQ== +"@smithy/util-waiter@^4.0.3": + version "4.0.5" + resolved "https://registry.yarnpkg.com/@smithy/util-waiter/-/util-waiter-4.0.5.tgz#cc7c65c86f5f8330445e27f9cc47d42c53c69bb7" + integrity sha512-4QvC49HTteI1gfemu0I1syWovJgPvGn7CVUoN9ZFkdvr/cCFkrEL7qNCdx/2eICqDWEGnnr68oMdSIPCLAriSQ== dependencies: - "@smithy/abort-controller" "^4.0.1" - "@smithy/types" "^4.1.0" + "@smithy/abort-controller" "^4.0.4" + "@smithy/types" "^4.3.1" tslib "^2.6.2" "@tootallnate/once@2": @@ -1567,9 +1572,9 @@ "@types/babel__traverse" "*" "@types/babel__generator@*": - version "7.6.8" - resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.8.tgz#f836c61f48b1346e7d2b0d93c6dacc5b9535d3ab" - integrity sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw== + version "7.27.0" + resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.27.0.tgz#b5819294c51179957afaec341442f9341e4108a9" + integrity sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg== dependencies: "@babel/types" "^7.0.0" @@ -1582,9 +1587,9 @@ "@babel/types" "^7.0.0" "@types/babel__traverse@*", "@types/babel__traverse@^7.0.6": - version "7.20.6" - resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.20.6.tgz#8dc9f0ae0f202c08d8d4dab648912c8d6038e3f7" - integrity sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg== + version "7.20.7" + resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.20.7.tgz#968cdc2366ec3da159f61166428ee40f370e56c2" + integrity sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng== dependencies: "@babel/types" "^7.20.7" @@ -1612,9 +1617,9 @@ "@types/json-schema" "*" "@types/estree@*", "@types/estree@^1.0.6": - version "1.0.6" - resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.6.tgz#628effeeae2064a1b4e79f78e81d87b7e5fc7b50" - integrity sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw== + version "1.0.7" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.7.tgz#4158d3105276773d5b7695cd4834b1722e4f37a8" + integrity sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ== "@types/graceful-fs@^4.1.3": version "4.1.9" @@ -1659,7 +1664,7 @@ "@types/tough-cookie" "*" parse5 "^7.0.0" -"@types/json-schema@*", "@types/json-schema@^7.0.9": +"@types/json-schema@*", "@types/json-schema@^7.0.15", "@types/json-schema@^7.0.9": version "7.0.15" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== @@ -1673,11 +1678,11 @@ form-data "^4.0.0" "@types/node@*": - version "22.13.6" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.13.6.tgz#9e6ffd5239524e8432c0bca2de80311e068dad62" - integrity sha512-GYmF65GI7417CpZXsEXMjT8goQQDnpRnJnDw6jIYa+le3V/lMazPZ4vZmK1B/9R17fh2VLr2zuy9d/h5xgrLAg== + version "22.15.27" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.15.27.tgz#b99cd64129c4c85a69edca903af9b3aa72c3b4f7" + integrity sha512-5fF+eu5mwihV2BeVtX5vijhdaZOfkQTATrePEaXTcKqI16LhJ7gi2/Vhd9OZM0UojcdmiOCVg5rrax+i1MdoQQ== dependencies: - undici-types "~6.20.0" + undici-types "~6.21.0" "@types/node@17.0.33": version "17.0.33" @@ -1690,12 +1695,11 @@ integrity sha512-u95svzDlTysU5xecFNTgfFG5RUWu1A9P0VzgpcIiGZA9iraHOdSzcxMxQ55DyeRaGCSxQi7LxXDI4rzq/MYfdg== "@types/readable-stream@^4.0.14": - version "4.0.18" - resolved "https://registry.yarnpkg.com/@types/readable-stream/-/readable-stream-4.0.18.tgz#5d8d15d26c776500ce573cae580787d149823bfc" - integrity sha512-21jK/1j+Wg+7jVw1xnSwy/2Q1VgVjWuFssbYGTREPUBeZ+rqVFl2udq0IkxzPC0ZhOzVceUbyIACFZKLqKEBlA== + version "4.0.20" + resolved "https://registry.yarnpkg.com/@types/readable-stream/-/readable-stream-4.0.20.tgz#6104b683b4c4db12157b13dca74482b407c58dca" + integrity sha512-eLgbR5KwUh8+6pngBDxS32MymdCsCHnGtwHTrC0GDorbc7NbcnkZAWptDLgZiRk9VRas+B6TyRgPDucq4zRs8g== dependencies: "@types/node" "*" - safe-buffer "~5.1.1" "@types/stack-utils@^2.0.0": version "2.0.3" @@ -1887,10 +1891,10 @@ acorn-walk@^8.0.2: dependencies: acorn "^8.11.0" -acorn@^8.1.0, acorn@^8.11.0, acorn@^8.14.0, acorn@^8.8.1, acorn@^8.8.2: - version "8.14.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.14.0.tgz#063e2c70cac5fb4f6467f0b11152e04c682795b0" - integrity sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA== +acorn@^8.1.0, acorn@^8.11.0, acorn@^8.14.0, acorn@^8.8.1: + version "8.14.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.14.1.tgz#721d5dc10f7d5b5609a891773d47731796935dfb" + integrity sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg== agent-base@6: version "6.0.2" @@ -2073,14 +2077,14 @@ braces@^3.0.3: fill-range "^7.1.1" browserslist@^4.24.0: - version "4.24.4" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.4.tgz#c6b2865a3f08bcb860a0e827389003b9fe686e4b" - integrity sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A== + version "4.25.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.25.0.tgz#986aa9c6d87916885da2b50d8eb577ac8d133b2c" + integrity sha512-PJ8gYKeS5e/whHBh8xrwYK+dAvEj7JXtz6uTucnMRB8OiGTsKccFekoRrjajPBHV8oOY+2tI4uxeceSimKwMFA== dependencies: - caniuse-lite "^1.0.30001688" - electron-to-chromium "^1.5.73" + caniuse-lite "^1.0.30001718" + electron-to-chromium "^1.5.160" node-releases "^2.0.19" - update-browserslist-db "^1.1.1" + update-browserslist-db "^1.1.3" bs-logger@^0.2.6: version "0.2.6" @@ -2118,12 +2122,12 @@ call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: function-bind "^1.1.2" call-bound@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/call-bound/-/call-bound-1.0.3.tgz#41cfd032b593e39176a71533ab4f384aa04fd681" - integrity sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA== + version "1.0.4" + resolved "https://registry.yarnpkg.com/call-bound/-/call-bound-1.0.4.tgz#238de935d2a2a692928c538c7ccfa91067fd062a" + integrity sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg== dependencies: - call-bind-apply-helpers "^1.0.1" - get-intrinsic "^1.2.6" + call-bind-apply-helpers "^1.0.2" + get-intrinsic "^1.3.0" callsites@^3.0.0: version "3.1.0" @@ -2140,10 +2144,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001688: - version "1.0.30001701" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001701.tgz#ad9c90301f7153cf6b3314d16cc30757285bf9e7" - integrity sha512-faRs/AW3jA9nTwmJBSO1PQ6L/EOgsB5HMQQq4iCu5zhPgVVgO/pZRHlmatwijZKetFw8/Pr4q6dEN8sJuq8qTw== +caniuse-lite@^1.0.30001718: + version "1.0.30001720" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001720.tgz#c138cb6026d362be9d8d7b0e4bcd0183a850edfd" + integrity sha512-Ec/2yV2nNPwb4DnTANEV99ZWwm3ZWfdlfkQbWSDDt+PsXEVYwlhPH8tdMaPunYTKKmz7AnHi2oNEi1GcmKCD8g== chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0: version "4.1.2" @@ -2283,9 +2287,9 @@ data-urls@^3.0.2: whatwg-url "^11.0.0" debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: - version "4.4.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.0.tgz#2b3f2aea2ffeb776477460267377dc8710faba8a" - integrity sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA== + version "4.4.1" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.1.tgz#e5a8bc6cbc4c6cd3e64308b0693a3d4fa550189b" + integrity sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ== dependencies: ms "^2.1.3" @@ -2295,9 +2299,9 @@ decimal.js@^10.4.2: integrity sha512-8vDa8Qxvr/+d94hSh5P3IJwI5t8/c0KsMp+g8bNw9cY2icONa5aPfvKeieW1WlG0WQYwwhJ7mjui2xtiePQSXw== dedent@^1.0.0: - version "1.5.3" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.3.tgz#99aee19eb9bae55a67327717b6e848d0bf777e5a" - integrity sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ== + version "1.6.0" + resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.6.0.tgz#79d52d6389b1ffa67d2bcef59ba51847a9d503b2" + integrity sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA== deepmerge@^4.2.2: version "4.3.1" @@ -2342,10 +2346,10 @@ ejs@^3.1.10: dependencies: jake "^10.8.5" -electron-to-chromium@^1.5.73: - version "1.5.109" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.109.tgz#905a573d2b4cbb31412a2de6267fb22cf45e097e" - integrity sha512-AidaH9JETVRr9DIPGfp1kAarm/W6hRJTPuCnkF+2MqhF4KaAgRIcBc8nvjk+YMXZhwfISof/7WG29eS4iGxQLQ== +electron-to-chromium@^1.5.160: + version "1.5.161" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.161.tgz#650376bd3be7ff8e581031409fc2d4f150620b12" + integrity sha512-hwtetwfKNZo/UlwHIVBlKZVdy7o8bIZxxKs0Mv/ROPiQQQmDgdm5a+KvKtBsxM8ZjFzTaCeLoodZ8jiBE3o9rA== emittery@^0.13.1: version "0.13.1" @@ -2365,10 +2369,10 @@ enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.1: graceful-fs "^4.2.4" tapable "^2.2.0" -entities@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48" - integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== +entities@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/entities/-/entities-6.0.0.tgz#09c9e29cb79b0a6459a9b9db9efb418ac5bb8e51" + integrity sha512-aKstq2TDOndCn4diEyp9Uq/Flu2i1GlLkc6XIDQSDMuaFE3OPW5OphLCyQ5SpSJZTb4reN+kTcYru5yIfXoRPw== error-ex@^1.3.1: version "1.3.2" @@ -2388,9 +2392,9 @@ es-errors@^1.3.0: integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== es-module-lexer@^1.2.1: - version "1.6.0" - resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.6.0.tgz#da49f587fd9e68ee2404fe4e256c0c7d3a81be21" - integrity sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ== + version "1.7.0" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.7.0.tgz#9159601561880a85f2734560a9099b2c31e5372a" + integrity sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA== es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: version "1.1.1" @@ -2602,7 +2606,7 @@ get-caller-file@^2.0.5: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-intrinsic@^1.2.5, get-intrinsic@^1.2.6: +get-intrinsic@^1.2.5, get-intrinsic@^1.2.6, get-intrinsic@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz#743f0e3b6964a93a5491ed1bffaae054d7f98d01" integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== @@ -3477,9 +3481,9 @@ npm-run-path@^4.0.1: path-key "^3.0.0" nwsapi@^2.2.2: - version "2.2.16" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.16.tgz#177760bba02c351df1d2644e220c31dfec8cdb43" - integrity sha512-F1I/bimDpj3ncaNDhfyMWuFqmQDBwDB0Fogc2qpL3BWvkQteFD/8BzWuIRl83rq0DXfm8SGt/HFhLXZyljTXcQ== + version "2.2.20" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.20.tgz#22e53253c61e7b0e7e93cef42c891154bcca11ef" + integrity sha512-/ieB+mDe4MrrKMT8z+mQL8klXydZWGR5Dowt4RAGKbJ3kIGEx3X4ljUo+6V73IXtUPWgfOlU5B9MlGxFO5T+cA== object-inspect@^1.13.3: version "1.13.4" @@ -3537,11 +3541,11 @@ parse-json@^5.2.0: lines-and-columns "^1.1.6" parse5@^7.0.0, parse5@^7.1.1: - version "7.2.1" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.2.1.tgz#8928f55915e6125f430cc44309765bf17556a33a" - integrity sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ== + version "7.3.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.3.0.tgz#d7e224fa72399c7a175099f45fc2ad024b05ec05" + integrity sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw== dependencies: - entities "^4.5.0" + entities "^6.0.0" path-exists@^4.0.0: version "4.0.0" @@ -3563,7 +3567,7 @@ path-parse@^1.0.7: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== -picocolors@^1.0.0, picocolors@^1.1.1: +picocolors@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== @@ -3574,9 +3578,9 @@ picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== pirates@^4.0.4: - version "4.0.6" - resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9" - integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg== + version "4.0.7" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.7.tgz#643b4a18c4257c8a65104b73f3049ce9a0a15e22" + integrity sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA== pkg-dir@^4.2.0: version "4.2.0" @@ -3710,11 +3714,6 @@ safe-buffer@^5.1.0, safe-buffer@~5.2.0: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== -safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - "safer-buffer@>= 2.1.2 < 3.0.0": version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" @@ -3727,10 +3726,10 @@ saxes@^6.0.0: dependencies: xmlchars "^2.2.0" -schema-utils@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.0.tgz#3b669f04f71ff2dfb5aba7ce2d5a9d79b35622c0" - integrity sha512-Gf9qqc58SpCA/xdziiHz35F4GNIWYWZrEshUc/G/r5BnLph6xpKuLeoJoQuj5WfBIx/eQLf+hmVPYHaxJu7V2g== +schema-utils@^4.3.0, schema-utils@^4.3.2: + version "4.3.2" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.2.tgz#0c10878bf4a73fd2b1dfd14b9462b26788c806ae" + integrity sha512-Gn/JaSk/Mt9gYubxTtSn/QCV4em9mpAPiR1rqy/Ocu19u/G9J5WWdNoUT4SiV6mFC3y6cxyFcFwdzPM3FgxGAQ== dependencies: "@types/json-schema" "^7.0.9" ajv "^8.9.0" @@ -3742,10 +3741,10 @@ semver@^6.3.0, semver@^6.3.1: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.3.4, semver@^7.5.3, semver@^7.5.4, semver@^7.7.1: - version "7.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.1.tgz#abd5098d82b18c6c81f6074ff2647fd3e7220c9f" - integrity sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA== +semver@^7.3.4, semver@^7.5.3, semver@^7.5.4, semver@^7.7.2: + version "7.7.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.2.tgz#67d99fdcd35cec21e6f8b87a7fd515a33f982b58" + integrity sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA== serialize-javascript@^6.0.2: version "6.0.2" @@ -3935,14 +3934,14 @@ symbol-tree@^3.2.4: integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== tapable@^2.1.1, tapable@^2.2.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" - integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== + version "2.2.2" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.2.tgz#ab4984340d30cb9989a490032f086dbb8b56d872" + integrity sha512-Re10+NauLTMCudc7T5WLFLAwDhQ0JWdrMK+9B2M8zR5hRExKmsRDCBA7/aV/pNJFltmBFO5BAMlQFi/vq3nKOg== terser-webpack-plugin@^5.3.11: - version "5.3.12" - resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.12.tgz#d9518c80493081bace668aa8613b22e4a838810c" - integrity sha512-jDLYqo7oF8tJIttjXO6jBY5Hk8p3A8W4ttih7cCEq64fQFWmgJ4VqAQjKr7WwIDlmXKEc6QeoRb5ecjZ+2afcg== + version "5.3.14" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.14.tgz#9031d48e57ab27567f02ace85c7d690db66c3e06" + integrity sha512-vkZjpUjb6OMS7dhV+tILUW6BhpDR7P2L/aQSAv+Uwk+m8KATX9EccViHTJR2qDtACKPIYndLGCyl3FMo+r2LMw== dependencies: "@jridgewell/trace-mapping" "^0.3.25" jest-worker "^27.4.5" @@ -3951,12 +3950,12 @@ terser-webpack-plugin@^5.3.11: terser "^5.31.1" terser@^5.31.1: - version "5.39.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.39.0.tgz#0e82033ed57b3ddf1f96708d123cca717d86ca3a" - integrity sha512-LBAhFyLho16harJoWMg/nZsQYgTrg5jXOn2nCYjRUcZZEdE3qa2zb8QEDRUGVZBW4rlazf2fxkg8tztybTaqWw== + version "5.40.0" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.40.0.tgz#839a80db42bfee8340085f44ea99b5cba36c55c8" + integrity sha512-cfeKl/jjwSR5ar7d0FGmave9hFGJT8obyo0z+CrQOylLDbk7X81nPU6vq9VORa5jU30SkDnT2FXjLbR8HLP+xA== dependencies: "@jridgewell/source-map" "^0.3.3" - acorn "^8.8.2" + acorn "^8.14.0" commander "^2.20.0" source-map-support "~0.5.20" @@ -4004,9 +4003,9 @@ tr46@~0.0.3: integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== ts-jest@^29.1.2: - version "29.2.6" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.2.6.tgz#df53edf8b72fb89de032cfa310abf37582851d9a" - integrity sha512-yTNZVZqc8lSixm+QGVFcPe6+yj7+TWZwIesuOWvfcn4B9bz5x4NDzVCQQjOs7Hfouu36aEqfEbo9Qpo+gq8dDg== + version "29.3.4" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.3.4.tgz#9354472aceae1d3867a80e8e02014ea5901aee41" + integrity sha512-Iqbrm8IXOmV+ggWHOTEbjwyCf2xZlUMv5npExksXohL+tk8va4Fjhb+X2+Rt9NBmgO7bJ8WpnMLOwih/DnMlFA== dependencies: bs-logger "^0.2.6" ejs "^3.1.10" @@ -4015,7 +4014,8 @@ ts-jest@^29.1.2: json5 "^2.2.3" lodash.memoize "^4.1.2" make-error "^1.3.6" - semver "^7.7.1" + semver "^7.7.2" + type-fest "^4.41.0" yargs-parser "^21.1.1" ts-loader@^9.5.1: @@ -4049,22 +4049,27 @@ type-fest@^0.21.3: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== +type-fest@^4.41.0: + version "4.41.0" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.41.0.tgz#6ae1c8e5731273c2bf1f58ad39cbae2c91a46c58" + integrity sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA== + typescript@4.6.4: version "4.6.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9" integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== -undici-types@~6.20.0: - version "6.20.0" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433" - integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg== +undici-types@~6.21.0: + version "6.21.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb" + integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ== universalify@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== -update-browserslist-db@^1.1.1: +update-browserslist-db@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz#348377dd245216f9e7060ff50b15a1b740b75420" integrity sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw== @@ -4114,9 +4119,9 @@ walker@^1.0.8: makeerror "1.0.12" watchpack@^2.4.1: - version "2.4.2" - resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.2.tgz#2feeaed67412e7c33184e5a79ca738fbd38564da" - integrity sha512-TnbFSbcOCcDgjZ4piURLCbJ3nJhznVh9kw6F6iokjiFPl8ONxe9A6nMDVXDiNbrSfLILs6vB07F7wLBrwPYzJw== + version "2.4.4" + resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.4.tgz#473bda72f0850453da6425081ea46fc0d7602947" + integrity sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA== dependencies: glob-to-regexp "^0.4.1" graceful-fs "^4.1.2" @@ -4132,17 +4137,18 @@ webidl-conversions@^7.0.0: integrity sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g== webpack-sources@^3.2.3: - version "3.2.3" - resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde" - integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== + version "3.3.0" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.3.0.tgz#8d3449f1ed3f254e722a529a0a344a37d2d17048" + integrity sha512-77R0RDmJfj9dyv5p3bM5pOHa+X8/ZkO9c7kpDstigkC4nIDobadsfSGCwB4bKhMVxqAok8tajaoR8rirM7+VFQ== webpack@^5.91.0: - version "5.98.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.98.0.tgz#44ae19a8f2ba97537978246072fb89d10d1fbd17" - integrity sha512-UFynvx+gM44Gv9qFgj0acCQK2VE1CtdfwFdimkapco3hlPCJ/zeq73n2yVKimVbtm+TnApIugGhLJnkU6gjYXA== + version "5.99.9" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.99.9.tgz#d7de799ec17d0cce3c83b70744b4aedb537d8247" + integrity sha512-brOPwM3JnmOa+7kd3NsmOUOwbDAj8FT9xDsG3IW0MgbN9yZV7Oi/s/+MNQ/EcSMqw7qfoRyXPoeEWT8zLVdVGg== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.6" + "@types/json-schema" "^7.0.15" "@webassemblyjs/ast" "^1.14.1" "@webassemblyjs/wasm-edit" "^1.14.1" "@webassemblyjs/wasm-parser" "^1.14.1" @@ -4159,7 +4165,7 @@ webpack@^5.91.0: loader-runner "^4.2.0" mime-types "^2.1.27" neo-async "^2.6.2" - schema-utils "^4.3.0" + schema-utils "^4.3.2" tapable "^2.1.1" terser-webpack-plugin "^5.3.11" watchpack "^2.4.1" @@ -4223,9 +4229,9 @@ write-file-atomic@^4.0.2: signal-exit "^3.0.7" ws@^8.11.0: - version "8.18.1" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.1.tgz#ea131d3784e1dfdff91adb0a4a116b127515e3cb" - integrity sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w== + version "8.18.2" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.2.tgz#42738b2be57ced85f46154320aabb51ab003705a" + integrity sha512-DMricUmwGZUVr++AEAe2uiVM7UoO9MAVZMDu05UQOaUII0lp+zOzLLU4Xqh/JvTqklB1T4uELaaPBKyjE1r4fQ== xml-name-validator@^4.0.0: version "4.0.0"