diff --git a/package.json b/package.json
index 22966acc..273e895b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cohere-ai",
- "version": "7.12.1",
+ "version": "7.13.0",
"private": false,
"repository": "https://github.com/cohere-ai/cohere-typescript",
"main": "./index.js",
diff --git a/reference.md b/reference.md
index 7f23a456..e8fca18b 100644
--- a/reference.md
+++ b/reference.md
@@ -63,6 +63,21 @@ await client.checkApiKey();
-
+#### 📝 Description
+
+
+-
+
+
+-
+
+Generates a message from the model in response to a provided conversation. To learn how to use the Chat API with Streaming and RAG follow our Text Generation guides.
+
+
+
+
+
+
#### 🔌 Usage
@@ -76,41 +91,15 @@ await client.v2.chatStream({
model: "string",
messages: [
{
- role: "assistant",
- toolCalls: [
+ role: "user",
+ content: "string",
+ documents: [
{
- id: "string",
- type: "function",
- function: {
- name: "string",
- arguments: "string",
+ string: {
+ key: "value",
},
},
],
- toolPlan: "string",
- content: [
- {
- text: "string",
- },
- ],
- citations: [
- {
- start: 1,
- end: 1,
- text: "string",
- sources: [
- {
- type: "tool",
- id: "string",
- toolOutput: {
- string: {
- key: "value",
- },
- },
- },
- ],
- },
- ],
},
],
tools: [
@@ -127,26 +116,18 @@ await client.v2.chatStream({
},
},
],
- toolChoice: Cohere.V2ChatStreamRequestToolChoice.Auto,
citationMode: Cohere.V2ChatStreamRequestCitationMode.Fast,
- truncationMode: Cohere.V2ChatStreamRequestTruncationMode.Off,
responseFormat: {
- type: "json_object",
- schema: {
- string: {
- key: "value",
- },
- },
+ type: "text",
},
maxTokens: 1,
stopSequences: ["string"],
- maxInputTokens: 1,
temperature: 1.1,
seed: 1,
frequencyPenalty: 1.1,
presencePenalty: 1.1,
- k: 1,
- p: 1,
+ k: 1.1,
+ p: 1.1,
returnPrompt: true,
});
```
@@ -187,6 +168,21 @@ await client.v2.chatStream({
-
+#### 📝 Description
+
+
+-
+
+
+-
+
+Generates a message from the model in response to a provided conversation. To learn how to use the Chat API with Streaming and RAG follow our Text Generation guides.
+
+
+
+
+
+
#### 🔌 Usage
diff --git a/src/Client.ts b/src/Client.ts
index 4d5ebf22..ccae1496 100644
--- a/src/Client.ts
+++ b/src/Client.ts
@@ -62,8 +62,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -233,8 +233,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -350,10 +350,9 @@ export class CohereClient {
}
/**
- * > 🚧 Warning
- * >
- * > This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
- *
+ *
+ * This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
+ *
* Generates realistic text conditioned on a given input.
*/
public async generateStream(
@@ -374,8 +373,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -502,10 +501,9 @@ export class CohereClient {
}
/**
- * > 🚧 Warning
- * >
- * > This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
- *
+ *
+ * This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
+ *
* Generates realistic text conditioned on a given input.
*
* @param {Cohere.GenerateRequest} request
@@ -546,8 +544,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -687,6 +685,7 @@ export class CohereClient {
* @example
* await client.embed({
* texts: ["string"],
+ * images: ["string"],
* model: "string",
* inputType: Cohere.EmbedInputType.SearchDocument,
* embeddingTypes: [Cohere.EmbeddingType.Float],
@@ -711,8 +710,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -844,9 +843,8 @@ export class CohereClient {
*
* @example
* await client.rerank({
- * model: "rerank-english-v3.0",
- * query: "What is the capital of the United States?",
- * 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.", "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 (the death penalty) 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: "query",
+ * documents: ["documents"]
* })
*/
public async rerank(
@@ -867,8 +865,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -1001,38 +999,7 @@ export class CohereClient {
*
* @example
* await client.classify({
- * inputs: ["Confirm your email address", "hey i need u to send some $"],
- * 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\u2019s meeting",
- * label: "Not spam"
- * }, {
- * text: "Pre-read for tomorrow",
- * label: "Not spam"
- * }]
+ * inputs: ["inputs"]
* })
*/
public async classify(
@@ -1053,8 +1020,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -1167,10 +1134,9 @@ export class CohereClient {
}
/**
- * > 🚧 Warning
- * >
- * > This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
- *
+ *
+ * This API is marked as "Legacy" and is no longer maintained. Follow the [migration guide](/docs/migrating-from-cogenerate-to-cochat) to start using the Chat API.
+ *
* Generates a summary in English for a given text.
*
* @param {Cohere.SummarizeRequest} request
@@ -1190,7 +1156,7 @@ export class CohereClient {
*
* @example
* await client.summarize({
- * 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."
+ * text: "text"
* })
*/
public async summarize(
@@ -1211,8 +1177,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -1366,8 +1332,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -1499,8 +1465,8 @@ export class CohereClient {
*
* @example
* await client.detokenize({
- * tokens: [10104, 12221, 1315, 34, 1420, 69],
- * model: "command"
+ * tokens: [1],
+ * model: "model"
* })
*/
public async detokenize(
@@ -1521,8 +1487,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -1669,8 +1635,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
diff --git a/src/api/client/requests/ChatRequest.ts b/src/api/client/requests/ChatRequest.ts
index d06c1771..aeed9356 100644
--- a/src/api/client/requests/ChatRequest.ts
+++ b/src/api/client/requests/ChatRequest.ts
@@ -15,14 +15,16 @@ import * as Cohere from "../../index";
export interface ChatRequest {
/**
* Text input for the model to respond to.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
message: string;
/**
- * Defaults to `command-r-plus`.
+ * 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
*
*/
@@ -31,6 +33,7 @@ export interface ChatRequest {
* When specified, the default Cohere preamble will be replaced with the provided one. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style, and use the `SYSTEM` role.
*
* The `SYSTEM` role is also used for the contents of the optional `chat_history=` parameter. When used with the `chat_history=` parameter it adds content throughout a conversation. Conversely, when used with the `preamble=` parameter it adds content at the start of the conversation only.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -41,6 +44,7 @@ export interface ChatRequest {
* Each item represents a single message in the chat history, excluding the current user turn. It has two properties: `role` and `message`. The `role` identifies the sender (`CHATBOT`, `SYSTEM`, or `USER`), while the `message` contains the text content.
*
* The chat_history parameter should not be used for `SYSTEM` messages in most cases. Instead, to add a `SYSTEM` role message at the beginning of a conversation, the `preamble` parameter should be used.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -49,6 +53,7 @@ export interface ChatRequest {
* An alternative to `chat_history`.
*
* Providing a `conversation_id` creates or resumes a persisted conversation with the specified ID. The ID can be any non empty string.
+ *
* Compatible Deployments: Cohere Platform
*
*/
@@ -63,7 +68,10 @@ export interface ChatRequest {
* With `prompt_truncation` set to "AUTO_PRESERVE_ORDER", some elements from `chat_history` and `documents` will be dropped in an attempt to construct a prompt that fits within the model's context length limit. During this process the order of the documents and chat history will be preserved as they are inputted into the API.
*
* 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: Cohere Platform Only AUTO_PRESERVE_ORDER: Azure, AWS Sagemaker/Bedrock, Private Deployments
+ *
+ * Compatible Deployments:
+ * - AUTO: Cohere Platform Only
+ * - AUTO_PRESERVE_ORDER: Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
promptTruncation?: Cohere.ChatRequestPromptTruncation;
@@ -71,6 +79,7 @@ export interface ChatRequest {
* Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/docs/creating-and-deploying-a-connector) one.
*
* When specified, the model's reply will be enriched with information found by querying each of the connectors (RAG).
+ *
* Compatible Deployments: Cohere Platform
*
*/
@@ -79,6 +88,7 @@ export interface ChatRequest {
* Defaults to `false`.
*
* When `true`, the response will only contain a list of generated search queries, but no search will take place, and no reply from the model to the user's `message` will be generated.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -87,10 +97,12 @@ export interface ChatRequest {
* A list of relevant documents that the model can cite to generate a more accurate reply. Each document is a string-string dictionary.
*
* Example:
- * `[
+ * ```
+ * [
* { "title": "Tall penguins", "text": "Emperor penguins are the tallest." },
* { "title": "Penguin habitats", "text": "Emperor penguins only live in Antarctica." },
- * ]`
+ * ]
+ * ```
*
* Keys and values from each document will be serialized to a string and passed to the model. The resulting generation will include citations that reference some of these documents.
*
@@ -101,6 +113,7 @@ export interface ChatRequest {
* An `_excludes` field (array of strings) can be optionally supplied to omit some key-value pairs from being shown to the model. The omitted fields will still show up in the citation object. The "_excludes" field will not be passed to the model.
*
* See ['Document Mode'](https://docs.cohere.com/docs/retrieval-augmented-generation-rag#document-mode) in the guide for more information.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -109,6 +122,7 @@ export interface ChatRequest {
* 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.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -119,12 +133,14 @@ export interface ChatRequest {
* A non-negative float that tunes the degree of randomness in generation. Lower temperatures mean less random generations, and higher temperatures mean more random generations.
*
* Randomness can be further maximized by increasing the value of the `p` parameter.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
temperature?: number;
/**
* The maximum number of tokens the model will generate as part of the response. Note: Setting a low value may result in incomplete generations.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -133,6 +149,7 @@ export interface ChatRequest {
* The maximum number of input tokens to send to the model. If not specified, `max_input_tokens` is the model's context length limit minus a small buffer.
*
* Input will be truncated according to the `prompt_truncation` parameter.
+ *
* Compatible Deployments: Cohere Platform
*
*/
@@ -140,6 +157,7 @@ export interface ChatRequest {
/**
* Ensures only the top `k` most likely tokens are considered for generation at each step.
* Defaults to `0`, min value of `0`, max value of `500`.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -147,6 +165,7 @@ export interface ChatRequest {
/**
* Ensures that only the most likely tokens, with total probability mass of `p`, are considered for generation at each step. If both `k` and `p` are enabled, `p` acts after `k`.
* Defaults to `0.75`. min value of `0.01`, max value of `0.99`.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -156,12 +175,14 @@ export interface ChatRequest {
* 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;
/**
* A list of up to 5 strings that the model will use to stop generation. If the model generates a string that matches any of the strings in the list, it will stop generating tokens and return the generated text up to that point not including the stop sequence.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -170,6 +191,7 @@ export interface ChatRequest {
* Defaults to `0.0`, min value of `0.0`, max value of `1.0`.
*
* Used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -178,6 +200,7 @@ export interface ChatRequest {
* Defaults to `0.0`, min value of `0.0`, max value of `1.0`.
*
* Used to reduce repetitiveness of generated tokens. Similar to `frequency_penalty`, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -185,6 +208,7 @@ export interface ChatRequest {
/**
* 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
*
*/
@@ -195,6 +219,7 @@ export interface ChatRequest {
* A list of available tools (functions) that the model may suggest invoking before producing a text response.
*
* When `tools` is passed (without `tool_results`), the `text` field in the response will be `""` and the `tool_calls` field in the response will be populated with a list of tool calls that need to be made. If no calls need to be made, the `tool_calls` array will be empty.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -221,6 +246,7 @@ export interface ChatRequest {
* ]
* ```
* **Note**: Chat calls with `tool_results` should not be included in the Chat history to avoid duplication of the message text.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -228,4 +254,16 @@ export interface ChatRequest {
/** Forces the chat to be single step. Defaults to `false`. */
forceSingleStep?: boolean;
responseFormat?: Cohere.ResponseFormat;
+ /**
+ * Used to select the [safety instruction](/docs/safety-modes) inserted into the prompt. Defaults to `CONTEXTUAL`.
+ * When `NONE` is specified, the safety instruction will be omitted.
+ *
+ * Safety modes are not yet configurable in combination with `tools`, `tool_results` and `documents` parameters.
+ *
+ * **Note**: This parameter is only compatible with models [Command R 08-2024](/docs/command-r#august-2024-release), [Command R+ 08-2024](/docs/command-r-plus#august-2024-release) and newer.
+ *
+ * Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
+ *
+ */
+ safetyMode?: Cohere.ChatRequestSafetyMode;
}
diff --git a/src/api/client/requests/ChatStreamRequest.ts b/src/api/client/requests/ChatStreamRequest.ts
index 79d30baf..855e6ca5 100644
--- a/src/api/client/requests/ChatStreamRequest.ts
+++ b/src/api/client/requests/ChatStreamRequest.ts
@@ -84,20 +84,23 @@ import * as Cohere from "../../index";
* forceSingleStep: true,
* responseFormat: {
* type: "text"
- * }
+ * },
+ * safetyMode: Cohere.ChatStreamRequestSafetyMode.Contextual
* }
*/
export interface ChatStreamRequest {
/**
* Text input for the model to respond to.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
message: string;
/**
- * Defaults to `command-r-plus`.
+ * 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
*
*/
@@ -106,6 +109,7 @@ export interface ChatStreamRequest {
* When specified, the default Cohere preamble will be replaced with the provided one. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style, and use the `SYSTEM` role.
*
* The `SYSTEM` role is also used for the contents of the optional `chat_history=` parameter. When used with the `chat_history=` parameter it adds content throughout a conversation. Conversely, when used with the `preamble=` parameter it adds content at the start of the conversation only.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -116,6 +120,7 @@ export interface ChatStreamRequest {
* Each item represents a single message in the chat history, excluding the current user turn. It has two properties: `role` and `message`. The `role` identifies the sender (`CHATBOT`, `SYSTEM`, or `USER`), while the `message` contains the text content.
*
* The chat_history parameter should not be used for `SYSTEM` messages in most cases. Instead, to add a `SYSTEM` role message at the beginning of a conversation, the `preamble` parameter should be used.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -124,6 +129,7 @@ export interface ChatStreamRequest {
* An alternative to `chat_history`.
*
* Providing a `conversation_id` creates or resumes a persisted conversation with the specified ID. The ID can be any non empty string.
+ *
* Compatible Deployments: Cohere Platform
*
*/
@@ -138,7 +144,10 @@ export interface ChatStreamRequest {
* With `prompt_truncation` set to "AUTO_PRESERVE_ORDER", some elements from `chat_history` and `documents` will be dropped in an attempt to construct a prompt that fits within the model's context length limit. During this process the order of the documents and chat history will be preserved as they are inputted into the API.
*
* 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: Cohere Platform Only AUTO_PRESERVE_ORDER: Azure, AWS Sagemaker/Bedrock, Private Deployments
+ *
+ * Compatible Deployments:
+ * - AUTO: Cohere Platform Only
+ * - AUTO_PRESERVE_ORDER: Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
promptTruncation?: Cohere.ChatStreamRequestPromptTruncation;
@@ -146,6 +155,7 @@ export interface ChatStreamRequest {
* Accepts `{"id": "web-search"}`, and/or the `"id"` for a custom [connector](https://docs.cohere.com/docs/connectors), if you've [created](https://docs.cohere.com/docs/creating-and-deploying-a-connector) one.
*
* When specified, the model's reply will be enriched with information found by querying each of the connectors (RAG).
+ *
* Compatible Deployments: Cohere Platform
*
*/
@@ -154,6 +164,7 @@ export interface ChatStreamRequest {
* Defaults to `false`.
*
* When `true`, the response will only contain a list of generated search queries, but no search will take place, and no reply from the model to the user's `message` will be generated.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -162,10 +173,12 @@ export interface ChatStreamRequest {
* A list of relevant documents that the model can cite to generate a more accurate reply. Each document is a string-string dictionary.
*
* Example:
- * `[
+ * ```
+ * [
* { "title": "Tall penguins", "text": "Emperor penguins are the tallest." },
* { "title": "Penguin habitats", "text": "Emperor penguins only live in Antarctica." },
- * ]`
+ * ]
+ * ```
*
* Keys and values from each document will be serialized to a string and passed to the model. The resulting generation will include citations that reference some of these documents.
*
@@ -176,6 +189,7 @@ export interface ChatStreamRequest {
* An `_excludes` field (array of strings) can be optionally supplied to omit some key-value pairs from being shown to the model. The omitted fields will still show up in the citation object. The "_excludes" field will not be passed to the model.
*
* See ['Document Mode'](https://docs.cohere.com/docs/retrieval-augmented-generation-rag#document-mode) in the guide for more information.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -184,6 +198,7 @@ export interface ChatStreamRequest {
* 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.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -194,12 +209,14 @@ export interface ChatStreamRequest {
* A non-negative float that tunes the degree of randomness in generation. Lower temperatures mean less random generations, and higher temperatures mean more random generations.
*
* Randomness can be further maximized by increasing the value of the `p` parameter.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
temperature?: number;
/**
* The maximum number of tokens the model will generate as part of the response. Note: Setting a low value may result in incomplete generations.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -208,6 +225,7 @@ export interface ChatStreamRequest {
* The maximum number of input tokens to send to the model. If not specified, `max_input_tokens` is the model's context length limit minus a small buffer.
*
* Input will be truncated according to the `prompt_truncation` parameter.
+ *
* Compatible Deployments: Cohere Platform
*
*/
@@ -215,6 +233,7 @@ export interface ChatStreamRequest {
/**
* Ensures only the top `k` most likely tokens are considered for generation at each step.
* Defaults to `0`, min value of `0`, max value of `500`.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -222,6 +241,7 @@ export interface ChatStreamRequest {
/**
* Ensures that only the most likely tokens, with total probability mass of `p`, are considered for generation at each step. If both `k` and `p` are enabled, `p` acts after `k`.
* Defaults to `0.75`. min value of `0.01`, max value of `0.99`.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -231,12 +251,14 @@ export interface ChatStreamRequest {
* 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;
/**
* A list of up to 5 strings that the model will use to stop generation. If the model generates a string that matches any of the strings in the list, it will stop generating tokens and return the generated text up to that point not including the stop sequence.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -245,6 +267,7 @@ export interface ChatStreamRequest {
* Defaults to `0.0`, min value of `0.0`, max value of `1.0`.
*
* Used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -253,6 +276,7 @@ export interface ChatStreamRequest {
* Defaults to `0.0`, min value of `0.0`, max value of `1.0`.
*
* Used to reduce repetitiveness of generated tokens. Similar to `frequency_penalty`, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -260,6 +284,7 @@ export interface ChatStreamRequest {
/**
* 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
*
*/
@@ -270,6 +295,7 @@ export interface ChatStreamRequest {
* A list of available tools (functions) that the model may suggest invoking before producing a text response.
*
* When `tools` is passed (without `tool_results`), the `text` field in the response will be `""` and the `tool_calls` field in the response will be populated with a list of tool calls that need to be made. If no calls need to be made, the `tool_calls` array will be empty.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -296,6 +322,7 @@ export interface ChatStreamRequest {
* ]
* ```
* **Note**: Chat calls with `tool_results` should not be included in the Chat history to avoid duplication of the message text.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*
*/
@@ -303,4 +330,16 @@ export interface ChatStreamRequest {
/** Forces the chat to be single step. Defaults to `false`. */
forceSingleStep?: boolean;
responseFormat?: Cohere.ResponseFormat;
+ /**
+ * Used to select the [safety instruction](/docs/safety-modes) inserted into the prompt. Defaults to `CONTEXTUAL`.
+ * When `NONE` is specified, the safety instruction will be omitted.
+ *
+ * Safety modes are not yet configurable in combination with `tools`, `tool_results` and `documents` parameters.
+ *
+ * **Note**: This parameter is only compatible with models [Command R 08-2024](/docs/command-r#august-2024-release), [Command R+ 08-2024](/docs/command-r-plus#august-2024-release) and newer.
+ *
+ * Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
+ *
+ */
+ safetyMode?: Cohere.ChatStreamRequestSafetyMode;
}
diff --git a/src/api/client/requests/ClassifyRequest.ts b/src/api/client/requests/ClassifyRequest.ts
index 2cb75207..3ebd3e0d 100644
--- a/src/api/client/requests/ClassifyRequest.ts
+++ b/src/api/client/requests/ClassifyRequest.ts
@@ -7,38 +7,7 @@ import * as Cohere from "../../index";
/**
* @example
* {
- * inputs: ["Confirm your email address", "hey i need u to send some $"],
- * 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\u2019s meeting",
- * label: "Not spam"
- * }, {
- * text: "Pre-read for tomorrow",
- * label: "Not spam"
- * }]
+ * inputs: ["inputs"]
* }
*/
export interface ClassifyRequest {
diff --git a/src/api/client/requests/DetokenizeRequest.ts b/src/api/client/requests/DetokenizeRequest.ts
index deb55ec5..9bc622e6 100644
--- a/src/api/client/requests/DetokenizeRequest.ts
+++ b/src/api/client/requests/DetokenizeRequest.ts
@@ -5,8 +5,8 @@
/**
* @example
* {
- * tokens: [10104, 12221, 1315, 34, 1420, 69],
- * model: "command"
+ * tokens: [1],
+ * model: "model"
* }
*/
export interface DetokenizeRequest {
diff --git a/src/api/client/requests/EmbedRequest.ts b/src/api/client/requests/EmbedRequest.ts
index fc541a30..3da25ecd 100644
--- a/src/api/client/requests/EmbedRequest.ts
+++ b/src/api/client/requests/EmbedRequest.ts
@@ -8,6 +8,7 @@ import * as Cohere from "../../index";
* @example
* {
* texts: ["string"],
+ * images: ["string"],
* model: "string",
* inputType: Cohere.EmbedInputType.SearchDocument,
* embeddingTypes: [Cohere.EmbeddingType.Float],
diff --git a/src/api/client/requests/RerankRequest.ts b/src/api/client/requests/RerankRequest.ts
index 9d1ef36e..36459c01 100644
--- a/src/api/client/requests/RerankRequest.ts
+++ b/src/api/client/requests/RerankRequest.ts
@@ -7,9 +7,8 @@ import * as Cohere from "../../index";
/**
* @example
* {
- * model: "rerank-english-v3.0",
- * query: "What is the capital of the United States?",
- * 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.", "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 (the death penalty) 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: "query",
+ * documents: ["documents"]
* }
*/
export interface RerankRequest {
diff --git a/src/api/client/requests/SummarizeRequest.ts b/src/api/client/requests/SummarizeRequest.ts
index c581afce..ac448421 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: "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."
+ * text: "text"
* }
*/
export interface SummarizeRequest {
diff --git a/src/api/resources/connectors/client/Client.ts b/src/api/resources/connectors/client/Client.ts
index faf7048b..40fa9628 100644
--- a/src/api/resources/connectors/client/Client.ts
+++ b/src/api/resources/connectors/client/Client.ts
@@ -82,8 +82,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -233,8 +233,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -382,8 +382,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -529,8 +529,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -678,8 +678,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -838,8 +838,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
diff --git a/src/api/resources/embedJobs/client/Client.ts b/src/api/resources/embedJobs/client/Client.ts
index 24694b4f..1f0de89e 100644
--- a/src/api/resources/embedJobs/client/Client.ts
+++ b/src/api/resources/embedJobs/client/Client.ts
@@ -68,8 +68,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -219,8 +219,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -368,8 +368,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -512,8 +512,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
diff --git a/src/api/resources/finetuning/client/Client.ts b/src/api/resources/finetuning/client/Client.ts
index 180a5278..cb9f84bc 100644
--- a/src/api/resources/finetuning/client/Client.ts
+++ b/src/api/resources/finetuning/client/Client.ts
@@ -82,8 +82,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -181,8 +181,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -276,8 +276,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -366,8 +366,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -466,8 +466,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -577,8 +577,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -680,8 +680,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
diff --git a/src/api/resources/models/client/Client.ts b/src/api/resources/models/client/Client.ts
index d2f7b40e..6f346842 100644
--- a/src/api/resources/models/client/Client.ts
+++ b/src/api/resources/models/client/Client.ts
@@ -69,8 +69,8 @@ export class Models {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -234,8 +234,8 @@ export class Models {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
diff --git a/src/api/resources/v2/client/Client.ts b/src/api/resources/v2/client/Client.ts
index 69d7f04b..ef88aa52 100644
--- a/src/api/resources/v2/client/Client.ts
+++ b/src/api/resources/v2/client/Client.ts
@@ -34,6 +34,9 @@ export declare namespace V2 {
export class V2 {
constructor(protected readonly _options: V2.Options = {}) {}
+ /**
+ * Generates a message from the model in response to a provided conversation. To learn how to use the Chat API with Streaming and RAG follow our Text Generation guides.
+ */
public async chatStream(
request: Cohere.V2ChatStreamRequest,
requestOptions?: V2.RequestOptions
@@ -52,8 +55,8 @@ export class V2 {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
@@ -180,6 +183,8 @@ export class V2 {
}
/**
+ * Generates a message from the model in response to a provided conversation. To learn how to use the Chat API with Streaming and RAG follow our Text Generation guides.
+ *
* @param {Cohere.V2ChatRequest} request
* @param {V2.RequestOptions} requestOptions - Request-specific configuration.
*
@@ -219,8 +224,8 @@ export class V2 {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
- "X-Fern-SDK-Version": "7.12.1",
- "User-Agent": "cohere-ai/7.12.1",
+ "X-Fern-SDK-Version": "7.13.0",
+ "User-Agent": "cohere-ai/7.13.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
diff --git a/src/api/resources/v2/client/requests/V2ChatRequest.ts b/src/api/resources/v2/client/requests/V2ChatRequest.ts
index b2f7a277..3f5dae7a 100644
--- a/src/api/resources/v2/client/requests/V2ChatRequest.ts
+++ b/src/api/resources/v2/client/requests/V2ChatRequest.ts
@@ -12,28 +12,73 @@ import * as Cohere from "../../../../index";
* }
*/
export interface V2ChatRequest {
- /** The model to use for the chat. */
+ /** The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) (such as command-r or command-r-plus) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model. */
model: string;
messages: Cohere.ChatMessages;
+ /**
+ * A list of available tools (functions) that the model may suggest invoking before producing a text response.
+ *
+ * When `tools` is passed (without `tool_results`), the `text` content in the response will be empty and the `tool_calls` field in the response will be populated with a list of tool calls that need to be made. If no calls need to be made, the `tool_calls` array will be empty.
+ *
+ */
tools?: Cohere.Tool2[];
- toolChoice?: Cohere.V2ChatRequestToolChoice;
+ /**
+ * 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.
+ *
+ */
citationMode?: Cohere.V2ChatRequestCitationMode;
- truncationMode?: Cohere.V2ChatRequestTruncationMode;
- responseFormat?: Cohere.V2ChatRequestResponseFormat;
- /** The maximum number of tokens to generate. */
+ responseFormat?: Cohere.ResponseFormat2;
+ /**
+ * The maximum number of tokens the model will generate as part of the response. Note: Setting a low value may result in incomplete generations.
+ *
+ */
maxTokens?: number;
- /** A list of strings that the model will stop generating at. */
+ /**
+ * A list of up to 5 strings that the model will use to stop generation. If the model generates a string that matches any of the strings in the list, it will stop generating tokens and return the generated text up to that point not including the stop sequence.
+ *
+ */
stopSequences?: string[];
- /** The maximum number of tokens to feed into the model. */
- maxInputTokens?: number;
- /** The temperature of the model. */
+ /**
+ * Defaults to `0.3`.
+ *
+ * A non-negative float that tunes the degree of randomness in generation. Lower temperatures mean less random generations, and higher temperatures mean more random generations.
+ *
+ * Randomness can be further maximized by increasing the value of the `p` parameter.
+ *
+ */
temperature?: number;
+ /**
+ * 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.
+ *
+ */
seed?: number;
- /** The frequency penalty of the model. */
+ /**
+ * Defaults to `0.0`, min value of `0.0`, max value of `1.0`.
+ * Used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation.
+ *
+ */
frequencyPenalty?: number;
- /** The presence penalty of the model. */
+ /**
+ * Defaults to `0.0`, min value of `0.0`, max value of `1.0`.
+ * Used to reduce repetitiveness of generated tokens. Similar to `frequency_penalty`, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies.
+ *
+ */
presencePenalty?: number;
+ /**
+ * Ensures only the top `k` most likely tokens are considered for generation at each step.
+ * Defaults to `0`, min value of `0`, max value of `500`.
+ *
+ */
k?: number;
+ /**
+ * Ensures that only the most likely tokens, with total probability mass of `p`, are considered for generation at each step. If both `k` and `p` are enabled, `p` acts after `k`.
+ * Defaults to `0.75`. min value of `0.01`, max value of `0.99`.
+ *
+ */
p?: number;
/** Whether to return the prompt in the response. */
returnPrompt?: boolean;
diff --git a/src/api/resources/v2/client/requests/V2ChatStreamRequest.ts b/src/api/resources/v2/client/requests/V2ChatStreamRequest.ts
index 183dd5ee..8acdcf22 100644
--- a/src/api/resources/v2/client/requests/V2ChatStreamRequest.ts
+++ b/src/api/resources/v2/client/requests/V2ChatStreamRequest.ts
@@ -9,32 +9,12 @@ import * as Cohere from "../../../../index";
* {
* model: "string",
* messages: [{
- * role: "assistant",
- * toolCalls: [{
- * id: "string",
- * type: "function",
- * function: {
- * name: "string",
- * arguments: "string"
+ * role: "user",
+ * content: "string",
+ * documents: [{
+ * "string": {
+ * "key": "value"
* }
- * }],
- * toolPlan: "string",
- * content: [{
- * text: "string"
- * }],
- * citations: [{
- * start: 1,
- * end: 1,
- * text: "string",
- * sources: [{
- * type: "tool",
- * id: "string",
- * toolOutput: {
- * "string": {
- * "key": "value"
- * }
- * }
- * }]
* }]
* }],
* tools: [{
@@ -49,52 +29,89 @@ import * as Cohere from "../../../../index";
* }
* }
* }],
- * toolChoice: Cohere.V2ChatStreamRequestToolChoice.Auto,
* citationMode: Cohere.V2ChatStreamRequestCitationMode.Fast,
- * truncationMode: Cohere.V2ChatStreamRequestTruncationMode.Off,
* responseFormat: {
- * type: "json_object",
- * schema: {
- * "string": {
- * "key": "value"
- * }
- * }
+ * type: "text"
* },
* maxTokens: 1,
* stopSequences: ["string"],
- * maxInputTokens: 1,
* temperature: 1.1,
* seed: 1,
* frequencyPenalty: 1.1,
* presencePenalty: 1.1,
- * k: 1,
- * p: 1,
+ * k: 1.1,
+ * p: 1.1,
* returnPrompt: true
* }
*/
export interface V2ChatStreamRequest {
- /** The model to use for the chat. */
+ /** The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) (such as command-r or command-r-plus) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model. */
model: string;
messages: Cohere.ChatMessages;
+ /**
+ * A list of available tools (functions) that the model may suggest invoking before producing a text response.
+ *
+ * When `tools` is passed (without `tool_results`), the `text` content in the response will be empty and the `tool_calls` field in the response will be populated with a list of tool calls that need to be made. If no calls need to be made, the `tool_calls` array will be empty.
+ *
+ */
tools?: Cohere.Tool2[];
- toolChoice?: Cohere.V2ChatStreamRequestToolChoice;
+ /**
+ * 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.
+ *
+ */
citationMode?: Cohere.V2ChatStreamRequestCitationMode;
- truncationMode?: Cohere.V2ChatStreamRequestTruncationMode;
- responseFormat?: Cohere.V2ChatStreamRequestResponseFormat;
- /** The maximum number of tokens to generate. */
+ responseFormat?: Cohere.ResponseFormat2;
+ /**
+ * The maximum number of tokens the model will generate as part of the response. Note: Setting a low value may result in incomplete generations.
+ *
+ */
maxTokens?: number;
- /** A list of strings that the model will stop generating at. */
+ /**
+ * A list of up to 5 strings that the model will use to stop generation. If the model generates a string that matches any of the strings in the list, it will stop generating tokens and return the generated text up to that point not including the stop sequence.
+ *
+ */
stopSequences?: string[];
- /** The maximum number of tokens to feed into the model. */
- maxInputTokens?: number;
- /** The temperature of the model. */
+ /**
+ * Defaults to `0.3`.
+ *
+ * A non-negative float that tunes the degree of randomness in generation. Lower temperatures mean less random generations, and higher temperatures mean more random generations.
+ *
+ * Randomness can be further maximized by increasing the value of the `p` parameter.
+ *
+ */
temperature?: number;
+ /**
+ * 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.
+ *
+ */
seed?: number;
- /** The frequency penalty of the model. */
+ /**
+ * Defaults to `0.0`, min value of `0.0`, max value of `1.0`.
+ * Used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation.
+ *
+ */
frequencyPenalty?: number;
- /** The presence penalty of the model. */
+ /**
+ * Defaults to `0.0`, min value of `0.0`, max value of `1.0`.
+ * Used to reduce repetitiveness of generated tokens. Similar to `frequency_penalty`, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies.
+ *
+ */
presencePenalty?: number;
+ /**
+ * Ensures only the top `k` most likely tokens are considered for generation at each step.
+ * Defaults to `0`, min value of `0`, max value of `500`.
+ *
+ */
k?: number;
+ /**
+ * Ensures that only the most likely tokens, with total probability mass of `p`, are considered for generation at each step. If both `k` and `p` are enabled, `p` acts after `k`.
+ * Defaults to `0.75`. min value of `0.01`, max value of `0.99`.
+ *
+ */
p?: number;
/** Whether to return the prompt in the response. */
returnPrompt?: boolean;
diff --git a/src/api/resources/v2/types/AssistantMessage.ts b/src/api/resources/v2/types/AssistantMessage.ts
index 4d93549f..7e32b950 100644
--- a/src/api/resources/v2/types/AssistantMessage.ts
+++ b/src/api/resources/v2/types/AssistantMessage.ts
@@ -10,6 +10,6 @@ import * as Cohere from "../../../index";
export interface AssistantMessage {
toolCalls?: Cohere.ToolCall2[];
toolPlan?: string;
- content?: Cohere.TextContent[];
+ content?: Cohere.AssistantMessageContent;
citations?: Cohere.Citation[];
}
diff --git a/src/api/resources/v2/types/AssistantMessageContent.ts b/src/api/resources/v2/types/AssistantMessageContent.ts
new file mode 100644
index 00000000..439ba023
--- /dev/null
+++ b/src/api/resources/v2/types/AssistantMessageContent.ts
@@ -0,0 +1,7 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Cohere from "../../../index";
+
+export type AssistantMessageContent = string | Cohere.AssistantMessageContentItem[];
diff --git a/src/api/resources/v2/types/AssistantMessageContentItem.ts b/src/api/resources/v2/types/AssistantMessageContentItem.ts
new file mode 100644
index 00000000..148d1d6a
--- /dev/null
+++ b/src/api/resources/v2/types/AssistantMessageContentItem.ts
@@ -0,0 +1,13 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Cohere from "../../../index";
+
+export type AssistantMessageContentItem = Cohere.AssistantMessageContentItem.Text;
+
+export declare namespace AssistantMessageContentItem {
+ interface Text extends Cohere.TextContent {
+ type: "text";
+ }
+}
diff --git a/src/api/resources/v2/types/AssistantMessageResponse.ts b/src/api/resources/v2/types/AssistantMessageResponse.ts
new file mode 100644
index 00000000..ed26065a
--- /dev/null
+++ b/src/api/resources/v2/types/AssistantMessageResponse.ts
@@ -0,0 +1,16 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Cohere from "../../../index";
+
+/**
+ * A message from the assistant role can contain text and tool call information.
+ */
+export interface AssistantMessageResponse {
+ role: "assistant";
+ toolCalls?: Cohere.ToolCall2[];
+ toolPlan?: string;
+ content?: Cohere.AssistantMessageResponseContentItem[];
+ citations?: Cohere.Citation[];
+}
diff --git a/src/api/resources/v2/types/AssistantMessageResponseContentItem.ts b/src/api/resources/v2/types/AssistantMessageResponseContentItem.ts
new file mode 100644
index 00000000..9d03eba8
--- /dev/null
+++ b/src/api/resources/v2/types/AssistantMessageResponseContentItem.ts
@@ -0,0 +1,13 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Cohere from "../../../index";
+
+export type AssistantMessageResponseContentItem = Cohere.AssistantMessageResponseContentItem.Text;
+
+export declare namespace AssistantMessageResponseContentItem {
+ interface Text extends Cohere.TextContent {
+ type: "text";
+ }
+}
diff --git a/src/api/resources/v2/types/ChatMessage2.ts b/src/api/resources/v2/types/ChatMessage2.ts
index d98cbd1e..cd08e480 100644
--- a/src/api/resources/v2/types/ChatMessage2.ts
+++ b/src/api/resources/v2/types/ChatMessage2.ts
@@ -8,12 +8,16 @@ import * as Cohere from "../../../index";
* Represents a single message in the chat history from a given role.
*/
export type ChatMessage2 =
+ | Cohere.ChatMessage2.User
| Cohere.ChatMessage2.Assistant
| Cohere.ChatMessage2.System
- | Cohere.ChatMessage2.User
| Cohere.ChatMessage2.Tool;
export declare namespace ChatMessage2 {
+ interface User extends Cohere.UserMessage {
+ role: "user";
+ }
+
interface Assistant extends Cohere.AssistantMessage {
role: "assistant";
}
@@ -22,10 +26,6 @@ export declare namespace ChatMessage2 {
role: "system";
}
- interface User extends Cohere.UserMessage {
- role: "user";
- }
-
interface Tool extends Cohere.ToolMessage2 {
role: "tool";
}
diff --git a/src/api/resources/v2/types/ChatMessages.ts b/src/api/resources/v2/types/ChatMessages.ts
index e6cd094a..70308b10 100644
--- a/src/api/resources/v2/types/ChatMessages.ts
+++ b/src/api/resources/v2/types/ChatMessages.ts
@@ -5,6 +5,8 @@
import * as Cohere from "../../../index";
/**
- * A list of chat messages representing the list chat message turns.
+ * A list of chat messages in chronological order, representing a conversation between the user and the model.
+ *
+ * Messages can be from `User`, `Assistant`, `Tool` and `System` roles. Learn more about messages and roles in [the Chat API guide](https://docs.cohere.com/docs/chat-api).
*/
export type ChatMessages = Cohere.ChatMessage2[];
diff --git a/src/api/resources/v2/types/Content.ts b/src/api/resources/v2/types/Content.ts
index d7ebade2..62ec41ae 100644
--- a/src/api/resources/v2/types/Content.ts
+++ b/src/api/resources/v2/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.Document;
+export type Content = Cohere.Content.Text;
export declare namespace Content {
interface Text extends Cohere.TextContent {
type: "text";
}
-
- interface Document extends Cohere.DocumentContent {
- type: "document";
- }
}
diff --git a/src/api/resources/v2/types/DocumentContent.ts b/src/api/resources/v2/types/DocumentContent.ts
deleted file mode 100644
index b329a12c..00000000
--- a/src/api/resources/v2/types/DocumentContent.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-import * as Cohere from "../../../index";
-
-/**
- * Content block of the message that contains information about documents.
- */
-export interface DocumentContent {
- id: string;
- /**
- * Relevant information that could be used by the model to generate a more accurate reply.
- * The contents of each document are generally short (under 300 words), and are passed in the form of a
- * dictionary of strings or a single string. If a single string is passed, it will be treated as the value for key "content".
- */
- document: Cohere.DocumentContentDocument;
-}
diff --git a/src/api/resources/v2/types/DocumentContentDocument.ts b/src/api/resources/v2/types/DocumentContentDocument.ts
deleted file mode 100644
index 7a97d0fb..00000000
--- a/src/api/resources/v2/types/DocumentContentDocument.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-/**
- * Relevant information that could be used by the model to generate a more accurate reply.
- * The contents of each document are generally short (under 300 words), and are passed in the form of a
- * dictionary of strings or a single string. If a single string is passed, it will be treated as the value for key "content".
- */
-export type DocumentContentDocument = Record | string;
diff --git a/src/api/resources/v2/types/NonStreamedChatResponse2.ts b/src/api/resources/v2/types/NonStreamedChatResponse2.ts
index 4a07eee5..93824602 100644
--- a/src/api/resources/v2/types/NonStreamedChatResponse2.ts
+++ b/src/api/resources/v2/types/NonStreamedChatResponse2.ts
@@ -10,6 +10,6 @@ export interface NonStreamedChatResponse2 {
finishReason: Cohere.ChatFinishReason;
/** The prompt that was used. Only present when `return_prompt` in the request is set to true. */
prompt?: string;
- message?: Cohere.AssistantMessage;
+ message?: Cohere.AssistantMessageResponse;
usage?: Cohere.Usage;
}
diff --git a/src/api/resources/v2/types/Tool2.ts b/src/api/resources/v2/types/Tool2.ts
index 0621eb9a..501e1f27 100644
--- a/src/api/resources/v2/types/Tool2.ts
+++ b/src/api/resources/v2/types/Tool2.ts
@@ -6,5 +6,6 @@ import * as Cohere from "../../../index";
export interface Tool2 {
type?: "function";
+ /** The function to be executed. */
function?: Cohere.Tool2Function;
}
diff --git a/src/api/resources/v2/types/Tool2Function.ts b/src/api/resources/v2/types/Tool2Function.ts
index eb515088..c40d24b8 100644
--- a/src/api/resources/v2/types/Tool2Function.ts
+++ b/src/api/resources/v2/types/Tool2Function.ts
@@ -2,8 +2,13 @@
* This file was auto-generated by Fern from our API Definition.
*/
+/**
+ * The function to be executed.
+ */
export interface Tool2Function {
+ /** The name of the function. */
name?: string;
+ /** The description of the function. */
description?: string;
/** The parameters of the function as a JSON schema. */
parameters?: Record;
diff --git a/src/api/resources/v2/types/UserMessage.ts b/src/api/resources/v2/types/UserMessage.ts
index d5d6aecf..f649039e 100644
--- a/src/api/resources/v2/types/UserMessage.ts
+++ b/src/api/resources/v2/types/UserMessage.ts
@@ -8,5 +8,11 @@ import * as Cohere from "../../../index";
* A message from the user.
*/
export interface UserMessage {
+ /**
+ * The content of the message. This can be a string or a list of content blocks.
+ * If a string is provided, it will be treated as a text content block.
+ */
content: Cohere.UserMessageContent;
+ /** Documents seen by the model when generating the reply. */
+ documents?: Cohere.ChatDocument[];
}
diff --git a/src/api/resources/v2/types/UserMessageContent.ts b/src/api/resources/v2/types/UserMessageContent.ts
index 39091fba..1452d18b 100644
--- a/src/api/resources/v2/types/UserMessageContent.ts
+++ b/src/api/resources/v2/types/UserMessageContent.ts
@@ -4,4 +4,8 @@
import * as Cohere from "../../../index";
+/**
+ * The content of the message. This can be a string or a list of content blocks.
+ * If a string is provided, it will be treated as a text content block.
+ */
export type UserMessageContent = string | Cohere.Content[];
diff --git a/src/api/resources/v2/types/V2ChatRequestCitationMode.ts b/src/api/resources/v2/types/V2ChatRequestCitationMode.ts
index 768a612a..4e1512e7 100644
--- a/src/api/resources/v2/types/V2ChatRequestCitationMode.ts
+++ b/src/api/resources/v2/types/V2ChatRequestCitationMode.ts
@@ -2,9 +2,14 @@
* This file was auto-generated by Fern from our API Definition.
*/
-export type V2ChatRequestCitationMode = "FAST" | "ACCURATE";
+/**
+ * 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.
+ */
+export type V2ChatRequestCitationMode = "FAST" | "ACCURATE" | "OFF";
export const V2ChatRequestCitationMode = {
Fast: "FAST",
Accurate: "ACCURATE",
+ Off: "OFF",
} as const;
diff --git a/src/api/resources/v2/types/V2ChatRequestResponseFormat.ts b/src/api/resources/v2/types/V2ChatRequestResponseFormat.ts
deleted file mode 100644
index 5cb55122..00000000
--- a/src/api/resources/v2/types/V2ChatRequestResponseFormat.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-export interface V2ChatRequestResponseFormat {
- /** When set to JSON, the output will be parse-able valid JSON (or run out of context). */
- type?: "json_object";
- /** A JSON schema object that the output will adhere to. Refer to https://json-schema.org/ for reference about schemas. */
- schema?: Record;
-}
diff --git a/src/api/resources/v2/types/V2ChatRequestToolChoice.ts b/src/api/resources/v2/types/V2ChatRequestToolChoice.ts
deleted file mode 100644
index 9f98b4d7..00000000
--- a/src/api/resources/v2/types/V2ChatRequestToolChoice.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-export type V2ChatRequestToolChoice = "AUTO" | "NONE" | "ANY";
-
-export const V2ChatRequestToolChoice = {
- Auto: "AUTO",
- None: "NONE",
- Any: "ANY",
-} as const;
diff --git a/src/api/resources/v2/types/V2ChatRequestTruncationMode.ts b/src/api/resources/v2/types/V2ChatRequestTruncationMode.ts
deleted file mode 100644
index fa0d6543..00000000
--- a/src/api/resources/v2/types/V2ChatRequestTruncationMode.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-export type V2ChatRequestTruncationMode = "OFF" | "AUTO" | "AUTO_PRESERVE_ORDER";
-
-export const V2ChatRequestTruncationMode = {
- Off: "OFF",
- Auto: "AUTO",
- AutoPreserveOrder: "AUTO_PRESERVE_ORDER",
-} as const;
diff --git a/src/api/resources/v2/types/V2ChatStreamRequestCitationMode.ts b/src/api/resources/v2/types/V2ChatStreamRequestCitationMode.ts
index b0609b9d..1ebaef15 100644
--- a/src/api/resources/v2/types/V2ChatStreamRequestCitationMode.ts
+++ b/src/api/resources/v2/types/V2ChatStreamRequestCitationMode.ts
@@ -2,9 +2,14 @@
* This file was auto-generated by Fern from our API Definition.
*/
-export type V2ChatStreamRequestCitationMode = "FAST" | "ACCURATE";
+/**
+ * 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.
+ */
+export type V2ChatStreamRequestCitationMode = "FAST" | "ACCURATE" | "OFF";
export const V2ChatStreamRequestCitationMode = {
Fast: "FAST",
Accurate: "ACCURATE",
+ Off: "OFF",
} as const;
diff --git a/src/api/resources/v2/types/V2ChatStreamRequestResponseFormat.ts b/src/api/resources/v2/types/V2ChatStreamRequestResponseFormat.ts
deleted file mode 100644
index b30b96b0..00000000
--- a/src/api/resources/v2/types/V2ChatStreamRequestResponseFormat.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-export interface V2ChatStreamRequestResponseFormat {
- /** When set to JSON, the output will be parse-able valid JSON (or run out of context). */
- type?: "json_object";
- /** A JSON schema object that the output will adhere to. Refer to https://json-schema.org/ for reference about schemas. */
- schema?: Record;
-}
diff --git a/src/api/resources/v2/types/V2ChatStreamRequestToolChoice.ts b/src/api/resources/v2/types/V2ChatStreamRequestToolChoice.ts
deleted file mode 100644
index 2f017e3f..00000000
--- a/src/api/resources/v2/types/V2ChatStreamRequestToolChoice.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-export type V2ChatStreamRequestToolChoice = "AUTO" | "NONE" | "ANY";
-
-export const V2ChatStreamRequestToolChoice = {
- Auto: "AUTO",
- None: "NONE",
- Any: "ANY",
-} as const;
diff --git a/src/api/resources/v2/types/V2ChatStreamRequestTruncationMode.ts b/src/api/resources/v2/types/V2ChatStreamRequestTruncationMode.ts
deleted file mode 100644
index b2535786..00000000
--- a/src/api/resources/v2/types/V2ChatStreamRequestTruncationMode.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * This file was auto-generated by Fern from our API Definition.
- */
-
-export type V2ChatStreamRequestTruncationMode = "OFF" | "AUTO" | "AUTO_PRESERVE_ORDER";
-
-export const V2ChatStreamRequestTruncationMode = {
- Off: "OFF",
- Auto: "AUTO",
- AutoPreserveOrder: "AUTO_PRESERVE_ORDER",
-} as const;
diff --git a/src/api/resources/v2/types/index.ts b/src/api/resources/v2/types/index.ts
index 96a08e92..5b9c6c0e 100644
--- a/src/api/resources/v2/types/index.ts
+++ b/src/api/resources/v2/types/index.ts
@@ -1,27 +1,21 @@
-export * from "./V2ChatStreamRequestToolChoice";
export * from "./V2ChatStreamRequestCitationMode";
-export * from "./V2ChatStreamRequestTruncationMode";
-export * from "./V2ChatStreamRequestResponseFormat";
-export * from "./V2ChatRequestToolChoice";
export * from "./V2ChatRequestCitationMode";
-export * from "./V2ChatRequestTruncationMode";
-export * from "./V2ChatRequestResponseFormat";
+export * from "./TextContent";
+export * from "./Content";
+export * from "./UserMessageContent";
+export * from "./UserMessage";
export * from "./ToolCall2Function";
export * from "./ToolCall2";
-export * from "./TextContent";
export * from "./ToolSource";
export * from "./DocumentSource";
export * from "./Source";
export * from "./Citation";
+export * from "./AssistantMessageContentItem";
+export * from "./AssistantMessageContent";
export * from "./AssistantMessage";
export * from "./SystemMessageContentItem";
export * from "./SystemMessageContent";
export * from "./SystemMessage";
-export * from "./DocumentContentDocument";
-export * from "./DocumentContent";
-export * from "./Content";
-export * from "./UserMessageContent";
-export * from "./UserMessage";
export * from "./ToolContent";
export * from "./ToolMessage2ToolContentItem";
export * from "./ToolMessage2";
@@ -30,6 +24,8 @@ export * from "./ChatMessages";
export * from "./Tool2Function";
export * from "./Tool2";
export * from "./ChatFinishReason";
+export * from "./AssistantMessageResponseContentItem";
+export * from "./AssistantMessageResponse";
export * from "./UsageBilledUnits";
export * from "./UsageTokens";
export * from "./Usage";
diff --git a/src/api/types/ChatRequestCitationQuality.ts b/src/api/types/ChatRequestCitationQuality.ts
index 8dbd30cc..f19d39ea 100644
--- a/src/api/types/ChatRequestCitationQuality.ts
+++ b/src/api/types/ChatRequestCitationQuality.ts
@@ -6,6 +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.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*/
export type ChatRequestCitationQuality = "fast" | "accurate" | "off";
diff --git a/src/api/types/ChatRequestConnectorsSearchOptions.ts b/src/api/types/ChatRequestConnectorsSearchOptions.ts
index 662aa59e..2312ae73 100644
--- a/src/api/types/ChatRequestConnectorsSearchOptions.ts
+++ b/src/api/types/ChatRequestConnectorsSearchOptions.ts
@@ -11,6 +11,7 @@ export interface ChatRequestConnectorsSearchOptions {
* 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 0a063707..af9886bf 100644
--- a/src/api/types/ChatRequestPromptTruncation.ts
+++ b/src/api/types/ChatRequestPromptTruncation.ts
@@ -12,7 +12,11 @@
* With `prompt_truncation` set to "AUTO_PRESERVE_ORDER", some elements from `chat_history` and `documents` will be dropped in an attempt to construct a prompt that fits within the model's context length limit. During this process the order of the documents and chat history will be preserved as they are inputted into the API.
*
* 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: Cohere Platform Only AUTO_PRESERVE_ORDER: Azure, AWS Sagemaker/Bedrock, Private Deployments
+ *
+ * Compatible Deployments:
+ *
+ * - AUTO: Cohere Platform Only
+ * - AUTO_PRESERVE_ORDER: Azure, AWS Sagemaker/Bedrock, Private Deployments
*/
export type ChatRequestPromptTruncation = "OFF" | "AUTO" | "AUTO_PRESERVE_ORDER";
diff --git a/src/api/types/ChatRequestSafetyMode.ts b/src/api/types/ChatRequestSafetyMode.ts
new file mode 100644
index 00000000..fbb8209f
--- /dev/null
+++ b/src/api/types/ChatRequestSafetyMode.ts
@@ -0,0 +1,21 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * Used to select the [safety instruction](/docs/safety-modes) inserted into the prompt. Defaults to `CONTEXTUAL`.
+ * When `NONE` is specified, the safety instruction will be omitted.
+ *
+ * Safety modes are not yet configurable in combination with `tools`, `tool_results` and `documents` parameters.
+ *
+ * **Note**: This parameter is only compatible with models [Command R 08-2024](/docs/command-r#august-2024-release), [Command R+ 08-2024](/docs/command-r-plus#august-2024-release) and newer.
+ *
+ * Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
+ */
+export type ChatRequestSafetyMode = "CONTEXTUAL" | "STRICT" | "NONE";
+
+export const ChatRequestSafetyMode = {
+ Contextual: "CONTEXTUAL",
+ Strict: "STRICT",
+ None: "NONE",
+} as const;
diff --git a/src/api/types/ChatStreamRequestCitationQuality.ts b/src/api/types/ChatStreamRequestCitationQuality.ts
index 0fa1a01f..9c0db488 100644
--- a/src/api/types/ChatStreamRequestCitationQuality.ts
+++ b/src/api/types/ChatStreamRequestCitationQuality.ts
@@ -6,6 +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.
+ *
* Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
*/
export type ChatStreamRequestCitationQuality = "fast" | "accurate" | "off";
diff --git a/src/api/types/ChatStreamRequestConnectorsSearchOptions.ts b/src/api/types/ChatStreamRequestConnectorsSearchOptions.ts
index 37b9a1e1..741b7e04 100644
--- a/src/api/types/ChatStreamRequestConnectorsSearchOptions.ts
+++ b/src/api/types/ChatStreamRequestConnectorsSearchOptions.ts
@@ -11,6 +11,7 @@ export interface ChatStreamRequestConnectorsSearchOptions {
* 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 221337a4..9eca9f7f 100644
--- a/src/api/types/ChatStreamRequestPromptTruncation.ts
+++ b/src/api/types/ChatStreamRequestPromptTruncation.ts
@@ -12,7 +12,11 @@
* With `prompt_truncation` set to "AUTO_PRESERVE_ORDER", some elements from `chat_history` and `documents` will be dropped in an attempt to construct a prompt that fits within the model's context length limit. During this process the order of the documents and chat history will be preserved as they are inputted into the API.
*
* 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: Cohere Platform Only AUTO_PRESERVE_ORDER: Azure, AWS Sagemaker/Bedrock, Private Deployments
+ *
+ * Compatible Deployments:
+ *
+ * - AUTO: Cohere Platform Only
+ * - AUTO_PRESERVE_ORDER: Azure, AWS Sagemaker/Bedrock, Private Deployments
*/
export type ChatStreamRequestPromptTruncation = "OFF" | "AUTO" | "AUTO_PRESERVE_ORDER";
diff --git a/src/api/types/ChatStreamRequestSafetyMode.ts b/src/api/types/ChatStreamRequestSafetyMode.ts
new file mode 100644
index 00000000..ba52a9e7
--- /dev/null
+++ b/src/api/types/ChatStreamRequestSafetyMode.ts
@@ -0,0 +1,21 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * Used to select the [safety instruction](/docs/safety-modes) inserted into the prompt. Defaults to `CONTEXTUAL`.
+ * When `NONE` is specified, the safety instruction will be omitted.
+ *
+ * Safety modes are not yet configurable in combination with `tools`, `tool_results` and `documents` parameters.
+ *
+ * **Note**: This parameter is only compatible with models [Command R 08-2024](/docs/command-r#august-2024-release), [Command R+ 08-2024](/docs/command-r-plus#august-2024-release) and newer.
+ *
+ * Compatible Deployments: Cohere Platform, Azure, AWS Sagemaker/Bedrock, Private Deployments
+ */
+export type ChatStreamRequestSafetyMode = "CONTEXTUAL" | "STRICT" | "NONE";
+
+export const ChatStreamRequestSafetyMode = {
+ Contextual: "CONTEXTUAL",
+ Strict: "STRICT",
+ None: "NONE",
+} as const;
diff --git a/src/api/types/JsonResponseFormat.ts b/src/api/types/JsonResponseFormat.ts
index b27e706c..ecece77c 100644
--- a/src/api/types/JsonResponseFormat.ts
+++ b/src/api/types/JsonResponseFormat.ts
@@ -4,7 +4,7 @@
export interface JsonResponseFormat {
/**
- * [BETA] A JSON schema object that the output will adhere to. There are some restrictions we have on the schema, refer to [our guide](/docs/structured-outputs-json#schema-constraints) for more information.
+ * A JSON schema object that the output will adhere to. There are some restrictions we have on the schema, refer to [our guide](/docs/structured-outputs-json#schema-constraints) for more information.
* Example (required name and age object):
*
* ```json
diff --git a/src/api/types/JsonResponseFormat2.ts b/src/api/types/JsonResponseFormat2.ts
new file mode 100644
index 00000000..f6a6dde6
--- /dev/null
+++ b/src/api/types/JsonResponseFormat2.ts
@@ -0,0 +1,24 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+export interface JsonResponseFormat2 {
+ /**
+ * [BETA] A JSON schema object that the output will adhere to. There are some restrictions we have on the schema, refer to [our guide](/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" }
+ * },
+ * "required": ["name", "age"]
+ * }
+ * ```
+ *
+ * **Note**: This field must not be specified when the `type` is set to `"text"`.
+ */
+ jsonSchema?: Record;
+}
diff --git a/src/api/types/ResponseFormat.ts b/src/api/types/ResponseFormat.ts
index 9e886fbc..13989153 100644
--- a/src/api/types/ResponseFormat.ts
+++ b/src/api/types/ResponseFormat.ts
@@ -5,7 +5,7 @@
import * as Cohere from "../index";
/**
- * Configuration for forcing the model output to adhere to the specified format. Supported on [Command R](https://docs.cohere.com/docs/command-r), [Command R+](https://docs.cohere.com/docs/command-r-plus) and newer models.
+ * Configuration for forcing the model output to adhere to the specified format. Supported on [Command R 03-2024](https://docs.cohere.com/docs/command-r), [Command R+ 04-2024](https://docs.cohere.com/docs/command-r-plus) and newer models.
*
* The model can be forced into outputting JSON objects (with up to 5 levels of nesting) by setting `{ "type": "json_object" }`.
*
diff --git a/src/api/types/ResponseFormat2.ts b/src/api/types/ResponseFormat2.ts
new file mode 100644
index 00000000..55e07ea7
--- /dev/null
+++ b/src/api/types/ResponseFormat2.ts
@@ -0,0 +1,27 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as Cohere from "../index";
+
+/**
+ * Configuration for forcing the model output to adhere to the specified format. Supported on [Command R](https://docs.cohere.com/docs/command-r), [Command R+](https://docs.cohere.com/docs/command-r-plus) and newer models.
+ *
+ * The model can be forced into outputting JSON objects (with up to 5 levels of nesting) by setting `{ "type": "json_object" }`.
+ *
+ * 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.
+ * **Limitation**: The parameter is not supported in RAG mode (when any of `connectors`, `documents`, `tools`, `tool_results` are provided).
+ */
+export type ResponseFormat2 = Cohere.ResponseFormat2.Text | Cohere.ResponseFormat2.JsonObject;
+
+export declare namespace ResponseFormat2 {
+ interface Text extends Cohere.TextResponseFormat {
+ type: "text";
+ }
+
+ interface JsonObject extends Cohere.JsonResponseFormat2 {
+ type: "json_object";
+ }
+}
diff --git a/src/api/types/index.ts b/src/api/types/index.ts
index 2035942a..e166e4c8 100644
--- a/src/api/types/index.ts
+++ b/src/api/types/index.ts
@@ -1,6 +1,7 @@
export * from "./ChatStreamRequestPromptTruncation";
export * from "./ChatStreamRequestCitationQuality";
export * from "./ChatStreamRequestConnectorsSearchOptions";
+export * from "./ChatStreamRequestSafetyMode";
export * from "./UnprocessableEntityErrorBody";
export * from "./TooManyRequestsErrorBody";
export * from "./ClientClosedRequestErrorBody";
@@ -9,6 +10,7 @@ export * from "./GatewayTimeoutErrorBody";
export * from "./ChatRequestPromptTruncation";
export * from "./ChatRequestCitationQuality";
export * from "./ChatRequestConnectorsSearchOptions";
+export * from "./ChatRequestSafetyMode";
export * from "./GenerateStreamRequestTruncate";
export * from "./GenerateStreamRequestReturnLikelihoods";
export * from "./GenerateRequestTruncate";
@@ -65,6 +67,8 @@ export * from "./ChatStreamEndEvent";
export * from "./ToolCallDelta";
export * from "./ChatToolCallsChunkEvent";
export * from "./StreamedChatResponse";
+export * from "./JsonResponseFormat2";
+export * from "./ResponseFormat2";
export * from "./CitationStartEventDeltaMessage";
export * from "./CitationStartEventDelta";
export * from "./CitationStartEvent";
diff --git a/src/serialization/client/requests/ChatRequest.ts b/src/serialization/client/requests/ChatRequest.ts
index 5cc15ce8..1c418373 100644
--- a/src/serialization/client/requests/ChatRequest.ts
+++ b/src/serialization/client/requests/ChatRequest.ts
@@ -13,6 +13,7 @@ import { ChatRequestCitationQuality } from "../../types/ChatRequestCitationQuali
import { Tool } from "../../types/Tool";
import { ToolResult } from "../../types/ToolResult";
import { ResponseFormat } from "../../types/ResponseFormat";
+import { ChatRequestSafetyMode } from "../../types/ChatRequestSafetyMode";
export const ChatRequest: core.serialization.Schema =
core.serialization.object({
@@ -44,6 +45,7 @@ export const ChatRequest: core.serialization.Schema =
core.serialization.object({
@@ -47,6 +48,7 @@ export const ChatStreamRequest: core.serialization.Schema =
@@ -18,16 +16,13 @@ export const V2ChatRequest: core.serialization.Schema = core.serialization.object({
toolCalls: core.serialization.property("tool_calls", core.serialization.list(ToolCall2).optional()),
toolPlan: core.serialization.property("tool_plan", core.serialization.string().optional()),
- content: core.serialization.list(TextContent).optional(),
+ content: AssistantMessageContent.optional(),
citations: core.serialization.list(Citation).optional(),
});
@@ -23,7 +23,7 @@ export declare namespace AssistantMessage {
interface Raw {
tool_calls?: ToolCall2.Raw[] | null;
tool_plan?: string | null;
- content?: TextContent.Raw[] | null;
+ content?: AssistantMessageContent.Raw | null;
citations?: Citation.Raw[] | null;
}
}
diff --git a/src/serialization/resources/v2/types/AssistantMessageContent.ts b/src/serialization/resources/v2/types/AssistantMessageContent.ts
new file mode 100644
index 00000000..8996bc94
--- /dev/null
+++ b/src/serialization/resources/v2/types/AssistantMessageContent.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";
+import { AssistantMessageContentItem } from "./AssistantMessageContentItem";
+
+export const AssistantMessageContent: core.serialization.Schema<
+ serializers.AssistantMessageContent.Raw,
+ Cohere.AssistantMessageContent
+> = core.serialization.undiscriminatedUnion([
+ core.serialization.string(),
+ core.serialization.list(AssistantMessageContentItem),
+]);
+
+export declare namespace AssistantMessageContent {
+ type Raw = string | AssistantMessageContentItem.Raw[];
+}
diff --git a/src/serialization/resources/v2/types/AssistantMessageContentItem.ts b/src/serialization/resources/v2/types/AssistantMessageContentItem.ts
new file mode 100644
index 00000000..2beef7fa
--- /dev/null
+++ b/src/serialization/resources/v2/types/AssistantMessageContentItem.ts
@@ -0,0 +1,28 @@
+/**
+ * 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 { TextContent } from "./TextContent";
+
+export const AssistantMessageContentItem: core.serialization.Schema<
+ serializers.AssistantMessageContentItem.Raw,
+ Cohere.AssistantMessageContentItem
+> = core.serialization
+ .union("type", {
+ text: TextContent,
+ })
+ .transform({
+ transform: (value) => value,
+ untransform: (value) => value,
+ });
+
+export declare namespace AssistantMessageContentItem {
+ type Raw = AssistantMessageContentItem.Text;
+
+ interface Text extends TextContent.Raw {
+ type: "text";
+ }
+}
diff --git a/src/serialization/resources/v2/types/AssistantMessageResponse.ts b/src/serialization/resources/v2/types/AssistantMessageResponse.ts
new file mode 100644
index 00000000..7965f174
--- /dev/null
+++ b/src/serialization/resources/v2/types/AssistantMessageResponse.ts
@@ -0,0 +1,31 @@
+/**
+ * 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 { ToolCall2 } from "./ToolCall2";
+import { AssistantMessageResponseContentItem } from "./AssistantMessageResponseContentItem";
+import { Citation } from "./Citation";
+
+export const AssistantMessageResponse: core.serialization.ObjectSchema<
+ serializers.AssistantMessageResponse.Raw,
+ Cohere.AssistantMessageResponse
+> = core.serialization.object({
+ role: core.serialization.stringLiteral("assistant"),
+ toolCalls: core.serialization.property("tool_calls", core.serialization.list(ToolCall2).optional()),
+ toolPlan: core.serialization.property("tool_plan", core.serialization.string().optional()),
+ content: core.serialization.list(AssistantMessageResponseContentItem).optional(),
+ citations: core.serialization.list(Citation).optional(),
+});
+
+export declare namespace AssistantMessageResponse {
+ interface Raw {
+ role: "assistant";
+ tool_calls?: ToolCall2.Raw[] | null;
+ tool_plan?: string | null;
+ content?: AssistantMessageResponseContentItem.Raw[] | null;
+ citations?: Citation.Raw[] | null;
+ }
+}
diff --git a/src/serialization/resources/v2/types/AssistantMessageResponseContentItem.ts b/src/serialization/resources/v2/types/AssistantMessageResponseContentItem.ts
new file mode 100644
index 00000000..6bf0970d
--- /dev/null
+++ b/src/serialization/resources/v2/types/AssistantMessageResponseContentItem.ts
@@ -0,0 +1,28 @@
+/**
+ * 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 { TextContent } from "./TextContent";
+
+export const AssistantMessageResponseContentItem: core.serialization.Schema<
+ serializers.AssistantMessageResponseContentItem.Raw,
+ Cohere.AssistantMessageResponseContentItem
+> = core.serialization
+ .union("type", {
+ text: TextContent,
+ })
+ .transform({
+ transform: (value) => value,
+ untransform: (value) => value,
+ });
+
+export declare namespace AssistantMessageResponseContentItem {
+ type Raw = AssistantMessageResponseContentItem.Text;
+
+ interface Text extends TextContent.Raw {
+ type: "text";
+ }
+}
diff --git a/src/serialization/resources/v2/types/ChatMessage2.ts b/src/serialization/resources/v2/types/ChatMessage2.ts
index 9c5ddbf7..c96757d5 100644
--- a/src/serialization/resources/v2/types/ChatMessage2.ts
+++ b/src/serialization/resources/v2/types/ChatMessage2.ts
@@ -5,17 +5,17 @@
import * as serializers from "../../../index";
import * as Cohere from "../../../../api/index";
import * as core from "../../../../core";
+import { UserMessage } from "./UserMessage";
import { AssistantMessage } from "./AssistantMessage";
import { SystemMessage } from "./SystemMessage";
-import { UserMessage } from "./UserMessage";
import { ToolMessage2 } from "./ToolMessage2";
export const ChatMessage2: core.serialization.Schema =
core.serialization
.union("role", {
+ user: UserMessage,
assistant: AssistantMessage,
system: SystemMessage,
- user: UserMessage,
tool: ToolMessage2,
})
.transform({
@@ -24,7 +24,11 @@ export const ChatMessage2: core.serialization.Schema = core.serialization
.union("type", {
text: TextContent,
- document: DocumentContent,
})
.transform({
transform: (value) => value,
@@ -19,13 +17,9 @@ export const Content: core.serialization.Schema =
- core.serialization.object({
- id: core.serialization.string(),
- document: DocumentContentDocument,
- });
-
-export declare namespace DocumentContent {
- interface Raw {
- id: string;
- document: DocumentContentDocument.Raw;
- }
-}
diff --git a/src/serialization/resources/v2/types/DocumentContentDocument.ts b/src/serialization/resources/v2/types/DocumentContentDocument.ts
deleted file mode 100644
index cb65fadd..00000000
--- a/src/serialization/resources/v2/types/DocumentContentDocument.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";
-
-export const DocumentContentDocument: core.serialization.Schema<
- serializers.DocumentContentDocument.Raw,
- Cohere.DocumentContentDocument
-> = core.serialization.undiscriminatedUnion([
- core.serialization.record(core.serialization.string(), core.serialization.unknown()),
- core.serialization.string(),
-]);
-
-export declare namespace DocumentContentDocument {
- type Raw = Record | string;
-}
diff --git a/src/serialization/resources/v2/types/NonStreamedChatResponse2.ts b/src/serialization/resources/v2/types/NonStreamedChatResponse2.ts
index 0584e070..a3b7f20a 100644
--- a/src/serialization/resources/v2/types/NonStreamedChatResponse2.ts
+++ b/src/serialization/resources/v2/types/NonStreamedChatResponse2.ts
@@ -6,7 +6,7 @@ import * as serializers from "../../../index";
import * as Cohere from "../../../../api/index";
import * as core from "../../../../core";
import { ChatFinishReason } from "./ChatFinishReason";
-import { AssistantMessage } from "./AssistantMessage";
+import { AssistantMessageResponse } from "./AssistantMessageResponse";
import { Usage } from "./Usage";
export const NonStreamedChatResponse2: core.serialization.ObjectSchema<
@@ -16,7 +16,7 @@ export const NonStreamedChatResponse2: core.serialization.ObjectSchema<
id: core.serialization.string(),
finishReason: core.serialization.property("finish_reason", ChatFinishReason),
prompt: core.serialization.string().optional(),
- message: AssistantMessage.optional(),
+ message: AssistantMessageResponse.optional(),
usage: Usage.optional(),
});
@@ -25,7 +25,7 @@ export declare namespace NonStreamedChatResponse2 {
id: string;
finish_reason: ChatFinishReason.Raw;
prompt?: string | null;
- message?: AssistantMessage.Raw | null;
+ message?: AssistantMessageResponse.Raw | null;
usage?: Usage.Raw | null;
}
}
diff --git a/src/serialization/resources/v2/types/UserMessage.ts b/src/serialization/resources/v2/types/UserMessage.ts
index d2708326..bff1d16f 100644
--- a/src/serialization/resources/v2/types/UserMessage.ts
+++ b/src/serialization/resources/v2/types/UserMessage.ts
@@ -6,14 +6,17 @@ import * as serializers from "../../../index";
import * as Cohere from "../../../../api/index";
import * as core from "../../../../core";
import { UserMessageContent } from "./UserMessageContent";
+import { ChatDocument } from "../../../types/ChatDocument";
export const UserMessage: core.serialization.ObjectSchema =
core.serialization.object({
content: UserMessageContent,
+ documents: core.serialization.list(ChatDocument).optional(),
});
export declare namespace UserMessage {
interface Raw {
content: UserMessageContent.Raw;
+ documents?: ChatDocument.Raw[] | null;
}
}
diff --git a/src/serialization/resources/v2/types/V2ChatRequestCitationMode.ts b/src/serialization/resources/v2/types/V2ChatRequestCitationMode.ts
index f3e0216d..82808d33 100644
--- a/src/serialization/resources/v2/types/V2ChatRequestCitationMode.ts
+++ b/src/serialization/resources/v2/types/V2ChatRequestCitationMode.ts
@@ -9,8 +9,8 @@ import * as core from "../../../../core";
export const V2ChatRequestCitationMode: core.serialization.Schema<
serializers.V2ChatRequestCitationMode.Raw,
Cohere.V2ChatRequestCitationMode
-> = core.serialization.enum_(["FAST", "ACCURATE"]);
+> = core.serialization.enum_(["FAST", "ACCURATE", "OFF"]);
export declare namespace V2ChatRequestCitationMode {
- type Raw = "FAST" | "ACCURATE";
+ type Raw = "FAST" | "ACCURATE" | "OFF";
}
diff --git a/src/serialization/resources/v2/types/V2ChatRequestResponseFormat.ts b/src/serialization/resources/v2/types/V2ChatRequestResponseFormat.ts
deleted file mode 100644
index 040fe215..00000000
--- a/src/serialization/resources/v2/types/V2ChatRequestResponseFormat.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 V2ChatRequestResponseFormat: core.serialization.ObjectSchema<
- serializers.V2ChatRequestResponseFormat.Raw,
- Cohere.V2ChatRequestResponseFormat
-> = core.serialization.object({
- type: core.serialization.stringLiteral("json_object").optional(),
- schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
-});
-
-export declare namespace V2ChatRequestResponseFormat {
- interface Raw {
- type?: "json_object" | null;
- schema?: Record | null;
- }
-}
diff --git a/src/serialization/resources/v2/types/V2ChatRequestToolChoice.ts b/src/serialization/resources/v2/types/V2ChatRequestToolChoice.ts
deleted file mode 100644
index 74938399..00000000
--- a/src/serialization/resources/v2/types/V2ChatRequestToolChoice.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 V2ChatRequestToolChoice: core.serialization.Schema<
- serializers.V2ChatRequestToolChoice.Raw,
- Cohere.V2ChatRequestToolChoice
-> = core.serialization.enum_(["AUTO", "NONE", "ANY"]);
-
-export declare namespace V2ChatRequestToolChoice {
- type Raw = "AUTO" | "NONE" | "ANY";
-}
diff --git a/src/serialization/resources/v2/types/V2ChatRequestTruncationMode.ts b/src/serialization/resources/v2/types/V2ChatRequestTruncationMode.ts
deleted file mode 100644
index 0532c07a..00000000
--- a/src/serialization/resources/v2/types/V2ChatRequestTruncationMode.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 V2ChatRequestTruncationMode: core.serialization.Schema<
- serializers.V2ChatRequestTruncationMode.Raw,
- Cohere.V2ChatRequestTruncationMode
-> = core.serialization.enum_(["OFF", "AUTO", "AUTO_PRESERVE_ORDER"]);
-
-export declare namespace V2ChatRequestTruncationMode {
- type Raw = "OFF" | "AUTO" | "AUTO_PRESERVE_ORDER";
-}
diff --git a/src/serialization/resources/v2/types/V2ChatStreamRequestCitationMode.ts b/src/serialization/resources/v2/types/V2ChatStreamRequestCitationMode.ts
index 1a1b4b63..3009be97 100644
--- a/src/serialization/resources/v2/types/V2ChatStreamRequestCitationMode.ts
+++ b/src/serialization/resources/v2/types/V2ChatStreamRequestCitationMode.ts
@@ -9,8 +9,8 @@ import * as core from "../../../../core";
export const V2ChatStreamRequestCitationMode: core.serialization.Schema<
serializers.V2ChatStreamRequestCitationMode.Raw,
Cohere.V2ChatStreamRequestCitationMode
-> = core.serialization.enum_(["FAST", "ACCURATE"]);
+> = core.serialization.enum_(["FAST", "ACCURATE", "OFF"]);
export declare namespace V2ChatStreamRequestCitationMode {
- type Raw = "FAST" | "ACCURATE";
+ type Raw = "FAST" | "ACCURATE" | "OFF";
}
diff --git a/src/serialization/resources/v2/types/V2ChatStreamRequestResponseFormat.ts b/src/serialization/resources/v2/types/V2ChatStreamRequestResponseFormat.ts
deleted file mode 100644
index 3b8432ad..00000000
--- a/src/serialization/resources/v2/types/V2ChatStreamRequestResponseFormat.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 V2ChatStreamRequestResponseFormat: core.serialization.ObjectSchema<
- serializers.V2ChatStreamRequestResponseFormat.Raw,
- Cohere.V2ChatStreamRequestResponseFormat
-> = core.serialization.object({
- type: core.serialization.stringLiteral("json_object").optional(),
- schema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
-});
-
-export declare namespace V2ChatStreamRequestResponseFormat {
- interface Raw {
- type?: "json_object" | null;
- schema?: Record | null;
- }
-}
diff --git a/src/serialization/resources/v2/types/V2ChatStreamRequestToolChoice.ts b/src/serialization/resources/v2/types/V2ChatStreamRequestToolChoice.ts
deleted file mode 100644
index dda6df06..00000000
--- a/src/serialization/resources/v2/types/V2ChatStreamRequestToolChoice.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 V2ChatStreamRequestToolChoice: core.serialization.Schema<
- serializers.V2ChatStreamRequestToolChoice.Raw,
- Cohere.V2ChatStreamRequestToolChoice
-> = core.serialization.enum_(["AUTO", "NONE", "ANY"]);
-
-export declare namespace V2ChatStreamRequestToolChoice {
- type Raw = "AUTO" | "NONE" | "ANY";
-}
diff --git a/src/serialization/resources/v2/types/V2ChatStreamRequestTruncationMode.ts b/src/serialization/resources/v2/types/V2ChatStreamRequestTruncationMode.ts
deleted file mode 100644
index 3975bf5f..00000000
--- a/src/serialization/resources/v2/types/V2ChatStreamRequestTruncationMode.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 V2ChatStreamRequestTruncationMode: core.serialization.Schema<
- serializers.V2ChatStreamRequestTruncationMode.Raw,
- Cohere.V2ChatStreamRequestTruncationMode
-> = core.serialization.enum_(["OFF", "AUTO", "AUTO_PRESERVE_ORDER"]);
-
-export declare namespace V2ChatStreamRequestTruncationMode {
- type Raw = "OFF" | "AUTO" | "AUTO_PRESERVE_ORDER";
-}
diff --git a/src/serialization/resources/v2/types/index.ts b/src/serialization/resources/v2/types/index.ts
index 96a08e92..5b9c6c0e 100644
--- a/src/serialization/resources/v2/types/index.ts
+++ b/src/serialization/resources/v2/types/index.ts
@@ -1,27 +1,21 @@
-export * from "./V2ChatStreamRequestToolChoice";
export * from "./V2ChatStreamRequestCitationMode";
-export * from "./V2ChatStreamRequestTruncationMode";
-export * from "./V2ChatStreamRequestResponseFormat";
-export * from "./V2ChatRequestToolChoice";
export * from "./V2ChatRequestCitationMode";
-export * from "./V2ChatRequestTruncationMode";
-export * from "./V2ChatRequestResponseFormat";
+export * from "./TextContent";
+export * from "./Content";
+export * from "./UserMessageContent";
+export * from "./UserMessage";
export * from "./ToolCall2Function";
export * from "./ToolCall2";
-export * from "./TextContent";
export * from "./ToolSource";
export * from "./DocumentSource";
export * from "./Source";
export * from "./Citation";
+export * from "./AssistantMessageContentItem";
+export * from "./AssistantMessageContent";
export * from "./AssistantMessage";
export * from "./SystemMessageContentItem";
export * from "./SystemMessageContent";
export * from "./SystemMessage";
-export * from "./DocumentContentDocument";
-export * from "./DocumentContent";
-export * from "./Content";
-export * from "./UserMessageContent";
-export * from "./UserMessage";
export * from "./ToolContent";
export * from "./ToolMessage2ToolContentItem";
export * from "./ToolMessage2";
@@ -30,6 +24,8 @@ export * from "./ChatMessages";
export * from "./Tool2Function";
export * from "./Tool2";
export * from "./ChatFinishReason";
+export * from "./AssistantMessageResponseContentItem";
+export * from "./AssistantMessageResponse";
export * from "./UsageBilledUnits";
export * from "./UsageTokens";
export * from "./Usage";
diff --git a/src/serialization/types/ChatRequestSafetyMode.ts b/src/serialization/types/ChatRequestSafetyMode.ts
new file mode 100644
index 00000000..67dedb4e
--- /dev/null
+++ b/src/serialization/types/ChatRequestSafetyMode.ts
@@ -0,0 +1,16 @@
+/**
+ * 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 ChatRequestSafetyMode: core.serialization.Schema<
+ serializers.ChatRequestSafetyMode.Raw,
+ Cohere.ChatRequestSafetyMode
+> = core.serialization.enum_(["CONTEXTUAL", "STRICT", "NONE"]);
+
+export declare namespace ChatRequestSafetyMode {
+ type Raw = "CONTEXTUAL" | "STRICT" | "NONE";
+}
diff --git a/src/serialization/types/ChatStreamRequestSafetyMode.ts b/src/serialization/types/ChatStreamRequestSafetyMode.ts
new file mode 100644
index 00000000..865052b5
--- /dev/null
+++ b/src/serialization/types/ChatStreamRequestSafetyMode.ts
@@ -0,0 +1,16 @@
+/**
+ * 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 ChatStreamRequestSafetyMode: core.serialization.Schema<
+ serializers.ChatStreamRequestSafetyMode.Raw,
+ Cohere.ChatStreamRequestSafetyMode
+> = core.serialization.enum_(["CONTEXTUAL", "STRICT", "NONE"]);
+
+export declare namespace ChatStreamRequestSafetyMode {
+ type Raw = "CONTEXTUAL" | "STRICT" | "NONE";
+}
diff --git a/src/serialization/types/JsonResponseFormat2.ts b/src/serialization/types/JsonResponseFormat2.ts
new file mode 100644
index 00000000..c6719a2b
--- /dev/null
+++ b/src/serialization/types/JsonResponseFormat2.ts
@@ -0,0 +1,23 @@
+/**
+ * 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 JsonResponseFormat2: core.serialization.ObjectSchema<
+ serializers.JsonResponseFormat2.Raw,
+ Cohere.JsonResponseFormat2
+> = core.serialization.object({
+ jsonSchema: core.serialization.property(
+ "json_schema",
+ core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()
+ ),
+});
+
+export declare namespace JsonResponseFormat2 {
+ interface Raw {
+ json_schema?: Record | null;
+ }
+}
diff --git a/src/serialization/types/ResponseFormat2.ts b/src/serialization/types/ResponseFormat2.ts
new file mode 100644
index 00000000..3005c3ea
--- /dev/null
+++ b/src/serialization/types/ResponseFormat2.ts
@@ -0,0 +1,32 @@
+/**
+ * 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 { TextResponseFormat } from "./TextResponseFormat";
+import { JsonResponseFormat2 } from "./JsonResponseFormat2";
+
+export const ResponseFormat2: core.serialization.Schema =
+ core.serialization
+ .union("type", {
+ text: TextResponseFormat,
+ json_object: JsonResponseFormat2,
+ })
+ .transform({
+ transform: (value) => value,
+ untransform: (value) => value,
+ });
+
+export declare namespace ResponseFormat2 {
+ type Raw = ResponseFormat2.Text | ResponseFormat2.JsonObject;
+
+ interface Text extends TextResponseFormat.Raw {
+ type: "text";
+ }
+
+ interface JsonObject extends JsonResponseFormat2.Raw {
+ type: "json_object";
+ }
+}
diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts
index 2035942a..e166e4c8 100644
--- a/src/serialization/types/index.ts
+++ b/src/serialization/types/index.ts
@@ -1,6 +1,7 @@
export * from "./ChatStreamRequestPromptTruncation";
export * from "./ChatStreamRequestCitationQuality";
export * from "./ChatStreamRequestConnectorsSearchOptions";
+export * from "./ChatStreamRequestSafetyMode";
export * from "./UnprocessableEntityErrorBody";
export * from "./TooManyRequestsErrorBody";
export * from "./ClientClosedRequestErrorBody";
@@ -9,6 +10,7 @@ export * from "./GatewayTimeoutErrorBody";
export * from "./ChatRequestPromptTruncation";
export * from "./ChatRequestCitationQuality";
export * from "./ChatRequestConnectorsSearchOptions";
+export * from "./ChatRequestSafetyMode";
export * from "./GenerateStreamRequestTruncate";
export * from "./GenerateStreamRequestReturnLikelihoods";
export * from "./GenerateRequestTruncate";
@@ -65,6 +67,8 @@ export * from "./ChatStreamEndEvent";
export * from "./ToolCallDelta";
export * from "./ChatToolCallsChunkEvent";
export * from "./StreamedChatResponse";
+export * from "./JsonResponseFormat2";
+export * from "./ResponseFormat2";
export * from "./CitationStartEventDeltaMessage";
export * from "./CitationStartEventDelta";
export * from "./CitationStartEvent";
diff --git a/yarn.lock b/yarn.lock
index 72bee419..3c9800cb 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -66,47 +66,47 @@
"@smithy/util-utf8" "^2.0.0"
tslib "^2.6.2"
-"@aws-sdk/client-cognito-identity@3.632.0":
- version "3.632.0"
- resolved "https://registry.yarnpkg.com/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.632.0.tgz#9b8b95885e21eecce2593f7a8f45ec5828ddf0be"
- integrity sha512-ciPZZ0jxMmXuaKCVdJthWogfqJ/4nb1zCxm7D/XkKcSbANjAiJ+1l+yiu7ZPTLGKKPRQQkPsWUknw5xb/5LxeQ==
+"@aws-sdk/client-cognito-identity@3.637.0":
+ version "3.637.0"
+ resolved "https://registry.yarnpkg.com/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.637.0.tgz#77c755a0faa53d94910b76fc34ac0aee59263855"
+ integrity sha512-391mca6yEfXVcSOTLGcxzlT0QCFfvoymLlVHfb//bzl806UUTq12cR2k+AnaCKLj+QSejmA7n6lwZWADm00Fvg==
dependencies:
"@aws-crypto/sha256-browser" "5.2.0"
"@aws-crypto/sha256-js" "5.2.0"
- "@aws-sdk/client-sso-oidc" "3.632.0"
- "@aws-sdk/client-sts" "3.632.0"
- "@aws-sdk/core" "3.629.0"
- "@aws-sdk/credential-provider-node" "3.632.0"
+ "@aws-sdk/client-sso-oidc" "3.637.0"
+ "@aws-sdk/client-sts" "3.637.0"
+ "@aws-sdk/core" "3.635.0"
+ "@aws-sdk/credential-provider-node" "3.637.0"
"@aws-sdk/middleware-host-header" "3.620.0"
"@aws-sdk/middleware-logger" "3.609.0"
"@aws-sdk/middleware-recursion-detection" "3.620.0"
- "@aws-sdk/middleware-user-agent" "3.632.0"
+ "@aws-sdk/middleware-user-agent" "3.637.0"
"@aws-sdk/region-config-resolver" "3.614.0"
"@aws-sdk/types" "3.609.0"
- "@aws-sdk/util-endpoints" "3.632.0"
+ "@aws-sdk/util-endpoints" "3.637.0"
"@aws-sdk/util-user-agent-browser" "3.609.0"
"@aws-sdk/util-user-agent-node" "3.614.0"
"@smithy/config-resolver" "^3.0.5"
- "@smithy/core" "^2.3.2"
+ "@smithy/core" "^2.4.0"
"@smithy/fetch-http-handler" "^3.2.4"
"@smithy/hash-node" "^3.0.3"
"@smithy/invalid-dependency" "^3.0.3"
"@smithy/middleware-content-length" "^3.0.5"
"@smithy/middleware-endpoint" "^3.1.0"
- "@smithy/middleware-retry" "^3.0.14"
+ "@smithy/middleware-retry" "^3.0.15"
"@smithy/middleware-serde" "^3.0.3"
"@smithy/middleware-stack" "^3.0.3"
"@smithy/node-config-provider" "^3.1.4"
"@smithy/node-http-handler" "^3.1.4"
"@smithy/protocol-http" "^4.1.0"
- "@smithy/smithy-client" "^3.1.12"
+ "@smithy/smithy-client" "^3.2.0"
"@smithy/types" "^3.3.0"
"@smithy/url-parser" "^3.0.3"
"@smithy/util-base64" "^3.0.0"
"@smithy/util-body-length-browser" "^3.0.0"
"@smithy/util-body-length-node" "^3.0.0"
- "@smithy/util-defaults-mode-browser" "^3.0.14"
- "@smithy/util-defaults-mode-node" "^3.0.14"
+ "@smithy/util-defaults-mode-browser" "^3.0.15"
+ "@smithy/util-defaults-mode-node" "^3.0.15"
"@smithy/util-endpoints" "^2.0.5"
"@smithy/util-middleware" "^3.0.3"
"@smithy/util-retry" "^3.0.3"
@@ -114,46 +114,46 @@
tslib "^2.6.2"
"@aws-sdk/client-sagemaker@^3.583.0":
- version "3.633.0"
- resolved "https://registry.yarnpkg.com/@aws-sdk/client-sagemaker/-/client-sagemaker-3.633.0.tgz#9048fe2a0a35ab5a194488507240fc70cca26871"
- integrity sha512-3AJ2MMxHyXkdWftF5ppu53BGcxkB/oJRuduvjvXDTJQvTzGJCIjCfF/J/GqRSxJ9/s6XT+Oaryxa6zvW0sqkaA==
+ version "3.637.0"
+ resolved "https://registry.yarnpkg.com/@aws-sdk/client-sagemaker/-/client-sagemaker-3.637.0.tgz#194776b734b3ef802bdcc7ca6ac90a65a31ff6dd"
+ integrity sha512-pFgsRe3Ht0P+8rw2fz8GhDcRjc054wp6q4OI1zKRPKofd6i8OX6SFGr3Wh7M5Gawgs8qFk7hO1s7XEF1ZrJOnQ==
dependencies:
"@aws-crypto/sha256-browser" "5.2.0"
"@aws-crypto/sha256-js" "5.2.0"
- "@aws-sdk/client-sso-oidc" "3.632.0"
- "@aws-sdk/client-sts" "3.632.0"
- "@aws-sdk/core" "3.629.0"
- "@aws-sdk/credential-provider-node" "3.632.0"
+ "@aws-sdk/client-sso-oidc" "3.637.0"
+ "@aws-sdk/client-sts" "3.637.0"
+ "@aws-sdk/core" "3.635.0"
+ "@aws-sdk/credential-provider-node" "3.637.0"
"@aws-sdk/middleware-host-header" "3.620.0"
"@aws-sdk/middleware-logger" "3.609.0"
"@aws-sdk/middleware-recursion-detection" "3.620.0"
- "@aws-sdk/middleware-user-agent" "3.632.0"
+ "@aws-sdk/middleware-user-agent" "3.637.0"
"@aws-sdk/region-config-resolver" "3.614.0"
"@aws-sdk/types" "3.609.0"
- "@aws-sdk/util-endpoints" "3.632.0"
+ "@aws-sdk/util-endpoints" "3.637.0"
"@aws-sdk/util-user-agent-browser" "3.609.0"
"@aws-sdk/util-user-agent-node" "3.614.0"
"@smithy/config-resolver" "^3.0.5"
- "@smithy/core" "^2.3.2"
+ "@smithy/core" "^2.4.0"
"@smithy/fetch-http-handler" "^3.2.4"
"@smithy/hash-node" "^3.0.3"
"@smithy/invalid-dependency" "^3.0.3"
"@smithy/middleware-content-length" "^3.0.5"
"@smithy/middleware-endpoint" "^3.1.0"
- "@smithy/middleware-retry" "^3.0.14"
+ "@smithy/middleware-retry" "^3.0.15"
"@smithy/middleware-serde" "^3.0.3"
"@smithy/middleware-stack" "^3.0.3"
"@smithy/node-config-provider" "^3.1.4"
"@smithy/node-http-handler" "^3.1.4"
"@smithy/protocol-http" "^4.1.0"
- "@smithy/smithy-client" "^3.1.12"
+ "@smithy/smithy-client" "^3.2.0"
"@smithy/types" "^3.3.0"
"@smithy/url-parser" "^3.0.3"
"@smithy/util-base64" "^3.0.0"
"@smithy/util-body-length-browser" "^3.0.0"
"@smithy/util-body-length-node" "^3.0.0"
- "@smithy/util-defaults-mode-browser" "^3.0.14"
- "@smithy/util-defaults-mode-node" "^3.0.14"
+ "@smithy/util-defaults-mode-browser" "^3.0.15"
+ "@smithy/util-defaults-mode-node" "^3.0.15"
"@smithy/util-endpoints" "^2.0.5"
"@smithy/util-middleware" "^3.0.3"
"@smithy/util-retry" "^3.0.3"
@@ -162,163 +162,163 @@
tslib "^2.6.2"
uuid "^9.0.1"
-"@aws-sdk/client-sso-oidc@3.632.0":
- version "3.632.0"
- resolved "https://registry.yarnpkg.com/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.632.0.tgz#38d0b11980f0716c85e63acf2bce0ac1e6ccc9b5"
- integrity sha512-Oh1fIWaoZluihOCb/zDEpRTi+6an82fgJz7fyRBugyLhEtDjmvpCQ3oKjzaOhoN+4EvXAm1ZS/ZgpvXBlIRTgw==
+"@aws-sdk/client-sso-oidc@3.637.0":
+ version "3.637.0"
+ resolved "https://registry.yarnpkg.com/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.637.0.tgz#d7e22ce6627c3285bf311e6c9e64c22b99bbd76a"
+ integrity sha512-27bHALN6Qb6m6KZmPvRieJ/QRlj1lyac/GT2Rn5kJpre8Mpp+yxrtvp3h9PjNBty4lCeFEENfY4dGNSozBuBcw==
dependencies:
"@aws-crypto/sha256-browser" "5.2.0"
"@aws-crypto/sha256-js" "5.2.0"
- "@aws-sdk/core" "3.629.0"
- "@aws-sdk/credential-provider-node" "3.632.0"
+ "@aws-sdk/core" "3.635.0"
+ "@aws-sdk/credential-provider-node" "3.637.0"
"@aws-sdk/middleware-host-header" "3.620.0"
"@aws-sdk/middleware-logger" "3.609.0"
"@aws-sdk/middleware-recursion-detection" "3.620.0"
- "@aws-sdk/middleware-user-agent" "3.632.0"
+ "@aws-sdk/middleware-user-agent" "3.637.0"
"@aws-sdk/region-config-resolver" "3.614.0"
"@aws-sdk/types" "3.609.0"
- "@aws-sdk/util-endpoints" "3.632.0"
+ "@aws-sdk/util-endpoints" "3.637.0"
"@aws-sdk/util-user-agent-browser" "3.609.0"
"@aws-sdk/util-user-agent-node" "3.614.0"
"@smithy/config-resolver" "^3.0.5"
- "@smithy/core" "^2.3.2"
+ "@smithy/core" "^2.4.0"
"@smithy/fetch-http-handler" "^3.2.4"
"@smithy/hash-node" "^3.0.3"
"@smithy/invalid-dependency" "^3.0.3"
"@smithy/middleware-content-length" "^3.0.5"
"@smithy/middleware-endpoint" "^3.1.0"
- "@smithy/middleware-retry" "^3.0.14"
+ "@smithy/middleware-retry" "^3.0.15"
"@smithy/middleware-serde" "^3.0.3"
"@smithy/middleware-stack" "^3.0.3"
"@smithy/node-config-provider" "^3.1.4"
"@smithy/node-http-handler" "^3.1.4"
"@smithy/protocol-http" "^4.1.0"
- "@smithy/smithy-client" "^3.1.12"
+ "@smithy/smithy-client" "^3.2.0"
"@smithy/types" "^3.3.0"
"@smithy/url-parser" "^3.0.3"
"@smithy/util-base64" "^3.0.0"
"@smithy/util-body-length-browser" "^3.0.0"
"@smithy/util-body-length-node" "^3.0.0"
- "@smithy/util-defaults-mode-browser" "^3.0.14"
- "@smithy/util-defaults-mode-node" "^3.0.14"
+ "@smithy/util-defaults-mode-browser" "^3.0.15"
+ "@smithy/util-defaults-mode-node" "^3.0.15"
"@smithy/util-endpoints" "^2.0.5"
"@smithy/util-middleware" "^3.0.3"
"@smithy/util-retry" "^3.0.3"
"@smithy/util-utf8" "^3.0.0"
tslib "^2.6.2"
-"@aws-sdk/client-sso@3.632.0":
- version "3.632.0"
- resolved "https://registry.yarnpkg.com/@aws-sdk/client-sso/-/client-sso-3.632.0.tgz#cc7d7c7578ba34d3689574dc015a0a71b35872e1"
- integrity sha512-iYWHiKBz44m3chCFvtvHnvCpL2rALzyr1e6tOZV3dLlOKtQtDUlPy6OtnXDu4y+wyJCniy8ivG3+LAe4klzn1Q==
+"@aws-sdk/client-sso@3.637.0":
+ version "3.637.0"
+ resolved "https://registry.yarnpkg.com/@aws-sdk/client-sso/-/client-sso-3.637.0.tgz#ae152759a5e1e576e1df6b8f4edaf59796e1758e"
+ integrity sha512-+KjLvgX5yJYROWo3TQuwBJlHCY0zz9PsLuEolmXQn0BVK1L/m9GteZHtd+rEdAoDGBpE0Xqjy1oz5+SmtsaRUw==
dependencies:
"@aws-crypto/sha256-browser" "5.2.0"
"@aws-crypto/sha256-js" "5.2.0"
- "@aws-sdk/core" "3.629.0"
+ "@aws-sdk/core" "3.635.0"
"@aws-sdk/middleware-host-header" "3.620.0"
"@aws-sdk/middleware-logger" "3.609.0"
"@aws-sdk/middleware-recursion-detection" "3.620.0"
- "@aws-sdk/middleware-user-agent" "3.632.0"
+ "@aws-sdk/middleware-user-agent" "3.637.0"
"@aws-sdk/region-config-resolver" "3.614.0"
"@aws-sdk/types" "3.609.0"
- "@aws-sdk/util-endpoints" "3.632.0"
+ "@aws-sdk/util-endpoints" "3.637.0"
"@aws-sdk/util-user-agent-browser" "3.609.0"
"@aws-sdk/util-user-agent-node" "3.614.0"
"@smithy/config-resolver" "^3.0.5"
- "@smithy/core" "^2.3.2"
+ "@smithy/core" "^2.4.0"
"@smithy/fetch-http-handler" "^3.2.4"
"@smithy/hash-node" "^3.0.3"
"@smithy/invalid-dependency" "^3.0.3"
"@smithy/middleware-content-length" "^3.0.5"
"@smithy/middleware-endpoint" "^3.1.0"
- "@smithy/middleware-retry" "^3.0.14"
+ "@smithy/middleware-retry" "^3.0.15"
"@smithy/middleware-serde" "^3.0.3"
"@smithy/middleware-stack" "^3.0.3"
"@smithy/node-config-provider" "^3.1.4"
"@smithy/node-http-handler" "^3.1.4"
"@smithy/protocol-http" "^4.1.0"
- "@smithy/smithy-client" "^3.1.12"
+ "@smithy/smithy-client" "^3.2.0"
"@smithy/types" "^3.3.0"
"@smithy/url-parser" "^3.0.3"
"@smithy/util-base64" "^3.0.0"
"@smithy/util-body-length-browser" "^3.0.0"
"@smithy/util-body-length-node" "^3.0.0"
- "@smithy/util-defaults-mode-browser" "^3.0.14"
- "@smithy/util-defaults-mode-node" "^3.0.14"
+ "@smithy/util-defaults-mode-browser" "^3.0.15"
+ "@smithy/util-defaults-mode-node" "^3.0.15"
"@smithy/util-endpoints" "^2.0.5"
"@smithy/util-middleware" "^3.0.3"
"@smithy/util-retry" "^3.0.3"
"@smithy/util-utf8" "^3.0.0"
tslib "^2.6.2"
-"@aws-sdk/client-sts@3.632.0":
- version "3.632.0"
- resolved "https://registry.yarnpkg.com/@aws-sdk/client-sts/-/client-sts-3.632.0.tgz#dc0e9d9958752f620adbe9783fb8ba2f2f915463"
- integrity sha512-Ss5cBH09icpTvT+jtGGuQlRdwtO7RyE9BF4ZV/CEPATdd9whtJt4Qxdya8BUnkWR7h5HHTrQHqai3YVYjku41A==
+"@aws-sdk/client-sts@3.637.0":
+ version "3.637.0"
+ resolved "https://registry.yarnpkg.com/@aws-sdk/client-sts/-/client-sts-3.637.0.tgz#6dcde6640d8a5e60dd4a2df8557284a0226d182c"
+ integrity sha512-xUi7x4qDubtA8QREtlblPuAcn91GS/09YVEY/RwU7xCY0aqGuFwgszAANlha4OUIqva8oVj2WO4gJuG+iaSnhw==
dependencies:
"@aws-crypto/sha256-browser" "5.2.0"
"@aws-crypto/sha256-js" "5.2.0"
- "@aws-sdk/client-sso-oidc" "3.632.0"
- "@aws-sdk/core" "3.629.0"
- "@aws-sdk/credential-provider-node" "3.632.0"
+ "@aws-sdk/client-sso-oidc" "3.637.0"
+ "@aws-sdk/core" "3.635.0"
+ "@aws-sdk/credential-provider-node" "3.637.0"
"@aws-sdk/middleware-host-header" "3.620.0"
"@aws-sdk/middleware-logger" "3.609.0"
"@aws-sdk/middleware-recursion-detection" "3.620.0"
- "@aws-sdk/middleware-user-agent" "3.632.0"
+ "@aws-sdk/middleware-user-agent" "3.637.0"
"@aws-sdk/region-config-resolver" "3.614.0"
"@aws-sdk/types" "3.609.0"
- "@aws-sdk/util-endpoints" "3.632.0"
+ "@aws-sdk/util-endpoints" "3.637.0"
"@aws-sdk/util-user-agent-browser" "3.609.0"
"@aws-sdk/util-user-agent-node" "3.614.0"
"@smithy/config-resolver" "^3.0.5"
- "@smithy/core" "^2.3.2"
+ "@smithy/core" "^2.4.0"
"@smithy/fetch-http-handler" "^3.2.4"
"@smithy/hash-node" "^3.0.3"
"@smithy/invalid-dependency" "^3.0.3"
"@smithy/middleware-content-length" "^3.0.5"
"@smithy/middleware-endpoint" "^3.1.0"
- "@smithy/middleware-retry" "^3.0.14"
+ "@smithy/middleware-retry" "^3.0.15"
"@smithy/middleware-serde" "^3.0.3"
"@smithy/middleware-stack" "^3.0.3"
"@smithy/node-config-provider" "^3.1.4"
"@smithy/node-http-handler" "^3.1.4"
"@smithy/protocol-http" "^4.1.0"
- "@smithy/smithy-client" "^3.1.12"
+ "@smithy/smithy-client" "^3.2.0"
"@smithy/types" "^3.3.0"
"@smithy/url-parser" "^3.0.3"
"@smithy/util-base64" "^3.0.0"
"@smithy/util-body-length-browser" "^3.0.0"
"@smithy/util-body-length-node" "^3.0.0"
- "@smithy/util-defaults-mode-browser" "^3.0.14"
- "@smithy/util-defaults-mode-node" "^3.0.14"
+ "@smithy/util-defaults-mode-browser" "^3.0.15"
+ "@smithy/util-defaults-mode-node" "^3.0.15"
"@smithy/util-endpoints" "^2.0.5"
"@smithy/util-middleware" "^3.0.3"
"@smithy/util-retry" "^3.0.3"
"@smithy/util-utf8" "^3.0.0"
tslib "^2.6.2"
-"@aws-sdk/core@3.629.0":
- version "3.629.0"
- resolved "https://registry.yarnpkg.com/@aws-sdk/core/-/core-3.629.0.tgz#1ed02c657edcd22ffdce9b3b5bdbd2a36fe899aa"
- integrity sha512-+/ShPU/tyIBM3oY1cnjgNA/tFyHtlWq+wXF9xEKRv19NOpYbWQ+xzNwVjGq8vR07cCRqy/sDQLWPhxjtuV/FiQ==
+"@aws-sdk/core@3.635.0":
+ version "3.635.0"
+ resolved "https://registry.yarnpkg.com/@aws-sdk/core/-/core-3.635.0.tgz#74b7d0d7fa3aa39f87ea5cf4e6c97d4d84f4ef14"
+ integrity sha512-i1x/E/sgA+liUE1XJ7rj1dhyXpAKO1UKFUcTTHXok2ARjWTvszHnSXMOsB77aPbmn0fUp1JTx2kHUAZ1LVt5Bg==
dependencies:
- "@smithy/core" "^2.3.2"
+ "@smithy/core" "^2.4.0"
"@smithy/node-config-provider" "^3.1.4"
"@smithy/property-provider" "^3.1.3"
"@smithy/protocol-http" "^4.1.0"
"@smithy/signature-v4" "^4.1.0"
- "@smithy/smithy-client" "^3.1.12"
+ "@smithy/smithy-client" "^3.2.0"
"@smithy/types" "^3.3.0"
"@smithy/util-middleware" "^3.0.3"
fast-xml-parser "4.4.1"
tslib "^2.6.2"
-"@aws-sdk/credential-provider-cognito-identity@3.632.0":
- version "3.632.0"
- resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.632.0.tgz#f2db006faf4f81aed366b793845d036ac3054e09"
- integrity sha512-fr+xCIqMYsUD67vwE/IpboIqHiEYMQMrpPjnvpbbvyjTKspFh0GS7Qn1LVFCd5oNeu1rzAdJei1On2HBOwIiZQ==
+"@aws-sdk/credential-provider-cognito-identity@3.637.0":
+ version "3.637.0"
+ resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.637.0.tgz#d21f068d8fdf94f065502192a92847c2d7d83d96"
+ integrity sha512-9qK1mF+EThtv3tsL1C/wb9MpWctJSkzjrLTFj+0Rtk8VYm6DlGepo/I6a2x3SeDmdBfHAFSrKFU39GqWDp1mwQ==
dependencies:
- "@aws-sdk/client-cognito-identity" "3.632.0"
+ "@aws-sdk/client-cognito-identity" "3.637.0"
"@aws-sdk/types" "3.609.0"
"@smithy/property-provider" "^3.1.3"
"@smithy/types" "^3.3.0"
@@ -334,30 +334,30 @@
"@smithy/types" "^3.3.0"
tslib "^2.6.2"
-"@aws-sdk/credential-provider-http@3.622.0":
- version "3.622.0"
- resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-http/-/credential-provider-http-3.622.0.tgz#db481fdef859849d07dd5870894f45df2debab3d"
- integrity sha512-VUHbr24Oll1RK3WR8XLUugLpgK9ZuxEm/NVeVqyFts1Ck9gsKpRg1x4eH7L7tW3SJ4TDEQNMbD7/7J+eoL2svg==
+"@aws-sdk/credential-provider-http@3.635.0":
+ version "3.635.0"
+ resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-http/-/credential-provider-http-3.635.0.tgz#083439af1336693049958e4b61695e4712b30fd4"
+ integrity sha512-iJyRgEjOCQlBMXqtwPLIKYc7Bsc6nqjrZybdMDenPDa+kmLg7xh8LxHsu9088e+2/wtLicE34FsJJIfzu3L82g==
dependencies:
"@aws-sdk/types" "3.609.0"
"@smithy/fetch-http-handler" "^3.2.4"
"@smithy/node-http-handler" "^3.1.4"
"@smithy/property-provider" "^3.1.3"
"@smithy/protocol-http" "^4.1.0"
- "@smithy/smithy-client" "^3.1.12"
+ "@smithy/smithy-client" "^3.2.0"
"@smithy/types" "^3.3.0"
"@smithy/util-stream" "^3.1.3"
tslib "^2.6.2"
-"@aws-sdk/credential-provider-ini@3.632.0":
- version "3.632.0"
- resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.632.0.tgz#55c2aa6e59fb9f19cf4e9c1e4ebf70235de32930"
- integrity sha512-m6epoW41xa1ajU5OiHcmQHoGVtrbXBaRBOUhlCLZmcaqMLYsboM4iD/WZP8aatKEON5tTnVXh/4StV8D/+wemw==
+"@aws-sdk/credential-provider-ini@3.637.0":
+ version "3.637.0"
+ resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.637.0.tgz#dae0d8b05c8b9480da5a92beb4dd244985ecbd70"
+ integrity sha512-h+PFCWfZ0Q3Dx84SppET/TFpcQHmxFW8/oV9ArEvMilw4EBN+IlxgbL0CnHwjHW64szcmrM0mbebjEfHf4FXmw==
dependencies:
"@aws-sdk/credential-provider-env" "3.620.1"
- "@aws-sdk/credential-provider-http" "3.622.0"
+ "@aws-sdk/credential-provider-http" "3.635.0"
"@aws-sdk/credential-provider-process" "3.620.1"
- "@aws-sdk/credential-provider-sso" "3.632.0"
+ "@aws-sdk/credential-provider-sso" "3.637.0"
"@aws-sdk/credential-provider-web-identity" "3.621.0"
"@aws-sdk/types" "3.609.0"
"@smithy/credential-provider-imds" "^3.2.0"
@@ -366,16 +366,16 @@
"@smithy/types" "^3.3.0"
tslib "^2.6.2"
-"@aws-sdk/credential-provider-node@3.632.0":
- version "3.632.0"
- resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-node/-/credential-provider-node-3.632.0.tgz#33a21d722b620c6a9cc43c38981cba69345e251f"
- integrity sha512-cL8fuJWm/xQBO4XJPkeuZzl3XinIn9EExWgzpG48NRMKR5us1RI/ucv7xFbBBaG+r/sDR2HpYBIA3lVIpm1H3Q==
+"@aws-sdk/credential-provider-node@3.637.0":
+ version "3.637.0"
+ resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-node/-/credential-provider-node-3.637.0.tgz#0ac6678ab31783adf5b1cf03add5d1da101ea946"
+ integrity sha512-yoEhoxJJfs7sPVQ6Is939BDQJZpZCoUgKr/ySse4YKOZ24t4VqgHA6+wV7rYh+7IW24Rd91UTvEzSuHYTlxlNA==
dependencies:
"@aws-sdk/credential-provider-env" "3.620.1"
- "@aws-sdk/credential-provider-http" "3.622.0"
- "@aws-sdk/credential-provider-ini" "3.632.0"
+ "@aws-sdk/credential-provider-http" "3.635.0"
+ "@aws-sdk/credential-provider-ini" "3.637.0"
"@aws-sdk/credential-provider-process" "3.620.1"
- "@aws-sdk/credential-provider-sso" "3.632.0"
+ "@aws-sdk/credential-provider-sso" "3.637.0"
"@aws-sdk/credential-provider-web-identity" "3.621.0"
"@aws-sdk/types" "3.609.0"
"@smithy/credential-provider-imds" "^3.2.0"
@@ -395,12 +395,12 @@
"@smithy/types" "^3.3.0"
tslib "^2.6.2"
-"@aws-sdk/credential-provider-sso@3.632.0":
- version "3.632.0"
- resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.632.0.tgz#c217b853fd7d00511f3f14accdd3bf27ec4426a6"
- integrity sha512-P/4wB6j7ym5QCPTL2xlMfvf2NcXSh+z0jmsZP4WW/tVwab4hvgabPPbLeEZDSWZ0BpgtxKGvRq0GSHuGeirQbA==
+"@aws-sdk/credential-provider-sso@3.637.0":
+ version "3.637.0"
+ resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.637.0.tgz#13acf77579df026e89ced33501489defd06a0518"
+ integrity sha512-Mvz+h+e62/tl+dVikLafhv+qkZJ9RUb8l2YN/LeKMWkxQylPT83CPk9aimVhCV89zth1zpREArl97+3xsfgQvA==
dependencies:
- "@aws-sdk/client-sso" "3.632.0"
+ "@aws-sdk/client-sso" "3.637.0"
"@aws-sdk/token-providers" "3.614.0"
"@aws-sdk/types" "3.609.0"
"@smithy/property-provider" "^3.1.3"
@@ -419,20 +419,20 @@
tslib "^2.6.2"
"@aws-sdk/credential-providers@^3.583.0":
- version "3.632.0"
- resolved "https://registry.yarnpkg.com/@aws-sdk/credential-providers/-/credential-providers-3.632.0.tgz#5556914f3ffa6d01e312a2fc6410749bf2d50ac0"
- integrity sha512-Q4x2ARdgncZKOJE/NXJHY5s8/YDRugVUR4lBEtibE764w5ezAhI1aMChzAzv4j3WMSDZ29KyxaymHHt2vJED9g==
- dependencies:
- "@aws-sdk/client-cognito-identity" "3.632.0"
- "@aws-sdk/client-sso" "3.632.0"
- "@aws-sdk/client-sts" "3.632.0"
- "@aws-sdk/credential-provider-cognito-identity" "3.632.0"
+ version "3.637.0"
+ resolved "https://registry.yarnpkg.com/@aws-sdk/credential-providers/-/credential-providers-3.637.0.tgz#372598b0a29cf3ce2362081400442825555be43e"
+ integrity sha512-yW1scL3Z7JsrTrmhjyZsB6tsMJ49UCO42BGlNWZAW+kN1vNJ+qbv6XYQJWR4gjpuD2rdmtGcEawcgllE2Bmigw==
+ dependencies:
+ "@aws-sdk/client-cognito-identity" "3.637.0"
+ "@aws-sdk/client-sso" "3.637.0"
+ "@aws-sdk/client-sts" "3.637.0"
+ "@aws-sdk/credential-provider-cognito-identity" "3.637.0"
"@aws-sdk/credential-provider-env" "3.620.1"
- "@aws-sdk/credential-provider-http" "3.622.0"
- "@aws-sdk/credential-provider-ini" "3.632.0"
- "@aws-sdk/credential-provider-node" "3.632.0"
+ "@aws-sdk/credential-provider-http" "3.635.0"
+ "@aws-sdk/credential-provider-ini" "3.637.0"
+ "@aws-sdk/credential-provider-node" "3.637.0"
"@aws-sdk/credential-provider-process" "3.620.1"
- "@aws-sdk/credential-provider-sso" "3.632.0"
+ "@aws-sdk/credential-provider-sso" "3.637.0"
"@aws-sdk/credential-provider-web-identity" "3.621.0"
"@aws-sdk/types" "3.609.0"
"@smithy/credential-provider-imds" "^3.2.0"
@@ -469,13 +469,13 @@
"@smithy/types" "^3.3.0"
tslib "^2.6.2"
-"@aws-sdk/middleware-user-agent@3.632.0":
- version "3.632.0"
- resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.632.0.tgz#274bbf2789268f30c1ff2ef20c395c9dc4f91c96"
- integrity sha512-yY/sFsHKwG9yzSf/DTclqWJaGPI2gPBJDCGBujSqTG1zlS7Ot4fqi91DZ6088BFWzbOorDzJFcAhAEFzc6LuQg==
+"@aws-sdk/middleware-user-agent@3.637.0":
+ version "3.637.0"
+ resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.637.0.tgz#2b00de72b00953a477bcc02a68d8cbb5e9670c44"
+ integrity sha512-EYo0NE9/da/OY8STDsK2LvM4kNa79DBsf4YVtaG4P5pZ615IeFsD8xOHZeuJmUrSMlVQ8ywPRX7WMucUybsKug==
dependencies:
"@aws-sdk/types" "3.609.0"
- "@aws-sdk/util-endpoints" "3.632.0"
+ "@aws-sdk/util-endpoints" "3.637.0"
"@smithy/protocol-http" "^4.1.0"
"@smithy/types" "^3.3.0"
tslib "^2.6.2"
@@ -527,10 +527,10 @@
"@smithy/types" "^3.3.0"
tslib "^2.6.2"
-"@aws-sdk/util-endpoints@3.632.0":
- version "3.632.0"
- resolved "https://registry.yarnpkg.com/@aws-sdk/util-endpoints/-/util-endpoints-3.632.0.tgz#f8716bdc75fc322babc6a3faf943ee1d0e462124"
- integrity sha512-LlYMU8pAbcEQphOpE6xaNLJ8kPGhklZZTVzZVpVW477NaaGgoGTMYNXTABYHcxeF5E2lLrxql9OmVpvr8GWN8Q==
+"@aws-sdk/util-endpoints@3.637.0":
+ version "3.637.0"
+ resolved "https://registry.yarnpkg.com/@aws-sdk/util-endpoints/-/util-endpoints-3.637.0.tgz#e20bcb69028039fdbc06e98a3028c7f8d8e8adaa"
+ integrity sha512-pAqOKUHeVWHEXXDIp/qoMk/6jyxIb6GGjnK1/f8dKHtKIEs4tKsnnL563gceEvdad53OPXIt86uoevCcCzmBnw==
dependencies:
"@aws-sdk/types" "3.609.0"
"@smithy/types" "^3.3.0"
@@ -580,9 +580,9 @@
picocolors "^1.0.0"
"@babel/compat-data@^7.25.2":
- version "7.25.2"
- resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.2.tgz#e41928bd33475305c586f6acbbb7e3ade7a6f7f5"
- integrity sha512-bYcppcpKBvX4znYaPEeFau03bp89ShqNMLs+rmdptMw+heSZh9+z84d2YG+K7cYLbWwzdjtDoW/uqZmPjulClQ==
+ version "7.25.4"
+ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.4.tgz#7d2a80ce229890edcf4cc259d4d696cb4dae2fcb"
+ integrity sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ==
"@babel/core@^7.0.0", "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9":
version "7.25.2"
@@ -605,12 +605,12 @@
json5 "^2.2.3"
semver "^6.3.1"
-"@babel/generator@^7.25.0", "@babel/generator@^7.7.2":
- version "7.25.0"
- resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.0.tgz#f858ddfa984350bc3d3b7f125073c9af6988f18e"
- integrity sha512-3LEEcj3PVW8pW2R1SR1M89g/qrYk/m/mB/tLqn7dn4sbBUQyTqnlod+II2U4dqiGtUmkcnAmkMDralTFZttRiw==
+"@babel/generator@^7.25.0", "@babel/generator@^7.25.6", "@babel/generator@^7.7.2":
+ version "7.25.6"
+ resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.6.tgz#0df1ad8cb32fe4d2b01d8bf437f153d19342a87c"
+ integrity sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw==
dependencies:
- "@babel/types" "^7.25.0"
+ "@babel/types" "^7.25.6"
"@jridgewell/gen-mapping" "^0.3.5"
"@jridgewell/trace-mapping" "^0.3.25"
jsesc "^2.5.1"
@@ -644,7 +644,7 @@
"@babel/helper-validator-identifier" "^7.24.7"
"@babel/traverse" "^7.25.2"
-"@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.24.7", "@babel/helper-plugin-utils@^7.8.0":
+"@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.24.7", "@babel/helper-plugin-utils@^7.24.8", "@babel/helper-plugin-utils@^7.8.0":
version "7.24.8"
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz#94ee67e8ec0e5d44ea7baeb51e571bd26af07878"
integrity sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg==
@@ -673,12 +673,12 @@
integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q==
"@babel/helpers@^7.25.0":
- version "7.25.0"
- resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.0.tgz#e69beb7841cb93a6505531ede34f34e6a073650a"
- integrity sha512-MjgLZ42aCm0oGjJj8CtSM3DB8NOOf8h2l7DCTePJs29u+v7yO/RBX9nShlKMgFnRks/Q4tBAe7Hxnov9VkGwLw==
+ version "7.25.6"
+ resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.6.tgz#57ee60141829ba2e102f30711ffe3afab357cc60"
+ integrity sha512-Xg0tn4HcfTijTwfDwYlvVCl43V6h4KyVVX2aEm4qdO/PC6L2YvzLHFdmxhoeSA3eslcE6+ZVXHgWwopXYLNq4Q==
dependencies:
"@babel/template" "^7.25.0"
- "@babel/types" "^7.25.0"
+ "@babel/types" "^7.25.6"
"@babel/highlight@^7.24.7":
version "7.24.7"
@@ -690,12 +690,12 @@
js-tokens "^4.0.0"
picocolors "^1.0.0"
-"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.0", "@babel/parser@^7.25.3":
- version "7.25.3"
- resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.3.tgz#91fb126768d944966263f0657ab222a642b82065"
- integrity sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw==
+"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.0", "@babel/parser@^7.25.6":
+ version "7.25.6"
+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.6.tgz#85660c5ef388cbbf6e3d2a694ee97a38f18afe2f"
+ integrity sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q==
dependencies:
- "@babel/types" "^7.25.2"
+ "@babel/types" "^7.25.6"
"@babel/plugin-syntax-async-generators@^7.8.4":
version "7.8.4"
@@ -726,11 +726,11 @@
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-import-attributes@^7.24.7":
- version "7.24.7"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.7.tgz#b4f9ea95a79e6912480c4b626739f86a076624ca"
- integrity sha512-hbX+lKKeUMGihnK8nvKqmXBInriT3GVjzXKFriV3YC6APGxMbP8RZNFwy91+hocLXq90Mta+HshoB31802bb8A==
+ version "7.25.6"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.6.tgz#6d4c78f042db0e82fd6436cd65fec5dc78ad2bde"
+ integrity sha512-sXaDXaJN9SNLymBdlWFA+bjzBhFD617ZaFiY13dGt7TVslVvVgA6fkZOP7Ki3IGElC45lwHdOTrCtKZGVAWeLQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.8"
"@babel/plugin-syntax-import-meta@^7.10.4":
version "7.10.4"
@@ -810,16 +810,16 @@
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-typescript@^7.7.2":
- version "7.24.7"
- resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.7.tgz#58d458271b4d3b6bb27ee6ac9525acbb259bad1c"
- integrity sha512-c/+fVeJBB0FeKsFvwytYiUD+LBvhHjGSI0g446PRGdSVGZLRNArBUno2PETbAly3tpiNAQR5XaZ+JslxkotsbA==
+ version "7.25.4"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.4.tgz#04db9ce5a9043d9c635e75ae7969a2cd50ca97ff"
+ integrity sha512-uMOCoHVU52BsSWxPOMVv5qKRdeSlPuImUCB2dlPuBSU+W2/ROE7/Zg8F2Kepbk+8yBa68LlRKxO+xgEVWorsDg==
dependencies:
- "@babel/helper-plugin-utils" "^7.24.7"
+ "@babel/helper-plugin-utils" "^7.24.8"
"@babel/runtime@^7.0.0":
- version "7.25.0"
- resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.25.0.tgz#3af9a91c1b739c569d5d80cc917280919c544ecb"
- integrity sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw==
+ version "7.25.6"
+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.25.6.tgz#9afc3289f7184d8d7f98b099884c26317b9264d2"
+ integrity sha512-VBj9MYyDb9tuLq7yzqjgzt6Q+IBQLrGZfdjOekyEirZPHxXWoTSGUTMrpsfi58Up73d13NfYLv8HT9vmznjzhQ==
dependencies:
regenerator-runtime "^0.14.0"
@@ -833,22 +833,22 @@
"@babel/types" "^7.25.0"
"@babel/traverse@^7.24.7", "@babel/traverse@^7.25.2":
- version "7.25.3"
- resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.3.tgz#f1b901951c83eda2f3e29450ce92743783373490"
- integrity sha512-HefgyP1x754oGCsKmV5reSmtV7IXj/kpaE1XYY+D9G5PvKKoFfSbiS4M77MdjuwlZKDIKFCffq9rPU+H/s3ZdQ==
+ version "7.25.6"
+ resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.6.tgz#04fad980e444f182ecf1520504941940a90fea41"
+ integrity sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ==
dependencies:
"@babel/code-frame" "^7.24.7"
- "@babel/generator" "^7.25.0"
- "@babel/parser" "^7.25.3"
+ "@babel/generator" "^7.25.6"
+ "@babel/parser" "^7.25.6"
"@babel/template" "^7.25.0"
- "@babel/types" "^7.25.2"
+ "@babel/types" "^7.25.6"
debug "^4.3.1"
globals "^11.1.0"
-"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.3.3":
- version "7.25.2"
- resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.2.tgz#55fb231f7dc958cd69ea141a4c2997e819646125"
- integrity sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==
+"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.25.6", "@babel/types@^7.3.3":
+ version "7.25.6"
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.6.tgz#893942ddb858f32ae7a004ec9d3a76b3463ef8e6"
+ integrity sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==
dependencies:
"@babel/helper-string-parser" "^7.24.8"
"@babel/helper-validator-identifier" "^7.24.7"
@@ -1145,7 +1145,7 @@
"@smithy/util-middleware" "^3.0.3"
tslib "^2.6.2"
-"@smithy/core@^2.3.2":
+"@smithy/core@^2.4.0":
version "2.4.0"
resolved "https://registry.yarnpkg.com/@smithy/core/-/core-2.4.0.tgz#56e917b6ab2dffeba681a05395c40a757d681147"
integrity sha512-cHXq+FneIF/KJbt4q4pjN186+Jf4ZB0ZOqEaZMBhT79srEyGDDBV31NqBRBjazz8ppQ1bJbDJMY9ba5wKFV36w==
@@ -1254,7 +1254,7 @@
"@smithy/util-middleware" "^3.0.3"
tslib "^2.6.2"
-"@smithy/middleware-retry@^3.0.14", "@smithy/middleware-retry@^3.0.15":
+"@smithy/middleware-retry@^3.0.15":
version "3.0.15"
resolved "https://registry.yarnpkg.com/@smithy/middleware-retry/-/middleware-retry-3.0.15.tgz#9b96900cde70d8aafd267e13f4e79241be90e0c7"
integrity sha512-iTMedvNt1ApdvkaoE8aSDuwaoc+BhvHqttbA/FO4Ty+y/S5hW6Ci/CTScG7vam4RYJWZxdTElc3MEfHRVH6cgQ==
@@ -1390,7 +1390,7 @@
"@smithy/util-utf8" "^3.0.0"
tslib "^2.6.2"
-"@smithy/smithy-client@^3.1.12", "@smithy/smithy-client@^3.2.0":
+"@smithy/smithy-client@^3.2.0":
version "3.2.0"
resolved "https://registry.yarnpkg.com/@smithy/smithy-client/-/smithy-client-3.2.0.tgz#6db94024e4bdaefa079ac68dbea23dafbea230c8"
integrity sha512-pDbtxs8WOhJLJSeaF/eAbPgXg4VVYFlRcL/zoNYA5WbG3wBL06CHtBSg53ppkttDpAJ/hdiede+xApip1CwSLw==
@@ -1479,7 +1479,7 @@
dependencies:
tslib "^2.6.2"
-"@smithy/util-defaults-mode-browser@^3.0.14":
+"@smithy/util-defaults-mode-browser@^3.0.15":
version "3.0.15"
resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.15.tgz#df73b9ae3dddc9126e0bb93ebc720b09d7163858"
integrity sha512-FZ4Psa3vjp8kOXcd3HJOiDPBCWtiilLl57r0cnNtq/Ga9RSDrM5ERL6xt+tO43+2af6Pn5Yp92x2n5vPuduNfg==
@@ -1490,7 +1490,7 @@
bowser "^2.11.0"
tslib "^2.6.2"
-"@smithy/util-defaults-mode-node@^3.0.14":
+"@smithy/util-defaults-mode-node@^3.0.15":
version "3.0.15"
resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.15.tgz#d52476e1f2e66525d918b51f8d5a9b0972bf518e"
integrity sha512-KSyAAx2q6d0t6f/S4XB2+3+6aQacm3aLMhs9aLMqn18uYGUepbdssfogW5JQZpc6lXNBnp0tEnR5e9CEKmEd7A==
@@ -1649,23 +1649,7 @@
dependencies:
"@babel/types" "^7.20.7"
-"@types/eslint-scope@^3.7.3":
- version "3.7.7"
- resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.7.tgz#3108bd5f18b0cdb277c867b3dd449c9ed7079ac5"
- integrity sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==
- dependencies:
- "@types/eslint" "*"
- "@types/estree" "*"
-
-"@types/eslint@*":
- version "9.6.0"
- resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-9.6.0.tgz#51d4fe4d0316da9e9f2c80884f2c20ed5fb022ff"
- integrity sha512-gi6WQJ7cHRgZxtkQEoyHMppPjq9Kxo5Tjn2prSKDSmZrCz8TZ3jSRCeTJm+WoM+oB0WG37bRqLzaaU3q7JypGg==
- dependencies:
- "@types/estree" "*"
- "@types/json-schema" "*"
-
-"@types/estree@*", "@types/estree@^1.0.5":
+"@types/estree@^1.0.5":
version "1.0.5"
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4"
integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==
@@ -1713,7 +1697,7 @@
"@types/tough-cookie" "*"
parse5 "^7.0.0"
-"@types/json-schema@*", "@types/json-schema@^7.0.8":
+"@types/json-schema@^7.0.8":
version "7.0.15"
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841"
integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==
@@ -1727,9 +1711,9 @@
form-data "^4.0.0"
"@types/node@*":
- version "22.4.1"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-22.4.1.tgz#9b595d292c65b94c20923159e2ce947731b6fdce"
- integrity sha512-1tbpb9325+gPnKK0dMm+/LMriX0vKxf6RnB0SZUqfyVkQ4fMgUSySqhxE/y8Jvs4NyF1yHzTfG9KlnkIODxPKg==
+ version "22.5.1"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-22.5.1.tgz#de01dce265f6b99ed32b295962045d10b5b99560"
+ integrity sha512-KkHsxej0j9IW1KKOOAA/XBA0z08UFSrRQHErzEfA3Vgq57eXIMYboIlHJuYIfd+lwCQjtKqUu3UnmKbtUc9yRw==
dependencies:
undici-types "~6.19.2"
@@ -2134,7 +2118,7 @@ browserslist@^4.21.10, browserslist@^4.23.1:
node-releases "^2.0.18"
update-browserslist-db "^1.1.0"
-bs-logger@0.x:
+bs-logger@^0.2.6:
version "0.2.6"
resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8"
integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==
@@ -2188,9 +2172,9 @@ camelcase@^6.2.0:
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==
caniuse-lite@^1.0.30001646:
- version "1.0.30001651"
- resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001651.tgz#52de59529e8b02b1aedcaaf5c05d9e23c0c28138"
- integrity sha512-9Cf+Xv1jJNe1xPZLGuUXLNkE1BoDkqRqYyFJ9TDYSqhduqA4hu4oR9HluGoWYQC/aj8WHjsGVV+bwkh0+tegRg==
+ version "1.0.30001655"
+ resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001655.tgz#0ce881f5a19a2dcfda2ecd927df4d5c1684b982f"
+ integrity sha512-jRGVy3iSGO5Uutn2owlb5gR6qsGngTw9ZTb4ali9f3glshcNmJ2noam4Mo9zia5P9Dk3jNNydy7vQjuE5dQmfg==
chalk@^2.4.2:
version "2.4.2"
@@ -2225,9 +2209,9 @@ ci-info@^3.2.0:
integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==
cjs-module-lexer@^1.0.0:
- version "1.3.1"
- resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz#c485341ae8fd999ca4ee5af2d7a1c9ae01e0099c"
- integrity sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.0.tgz#677de7ed7efff67cc40c9bf1897fea79d41b5215"
+ integrity sha512-N1NGmowPlGBLsOZLPvm48StN04V4YvQRL0i6b7ctrVY3epjP/ct7hFLOItz6pDIvRjwpfPxi52a2UWV2ziir8g==
cliui@^8.0.1:
version "8.0.1"
@@ -2408,9 +2392,9 @@ ejs@^3.1.10:
jake "^10.8.5"
electron-to-chromium@^1.5.4:
- version "1.5.12"
- resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.12.tgz#ee31756eaa2e06f2aa606f170b7ad06dd402b4e4"
- integrity sha512-tIhPkdlEoCL1Y+PToq3zRNehUaKp3wBX/sr7aclAWdIWjvqAe/Im/H0SiCM4c1Q8BLPHCdoJTol+ZblflydehA==
+ version "1.5.13"
+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.13.tgz#1abf0410c5344b2b829b7247e031f02810d442e6"
+ integrity sha512-lbBcvtIJ4J6sS4tb5TLp1b4LyfCdMkwStzXPyAgVgTRAsep4bvrAGaBOP7ZJtQMNJpSQ9SqG4brWOroNaQtm7Q==
emittery@^0.13.1:
version "0.13.1"
@@ -2422,7 +2406,7 @@ emoji-regex@^8.0.0:
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
-enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.0:
+enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.1:
version "5.17.1"
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz#67bfbbcc2f81d511be77d686a90267ef7f898a15"
integrity sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==
@@ -2460,9 +2444,9 @@ es-module-lexer@^1.2.1:
integrity sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==
escalade@^3.1.1, escalade@^3.1.2:
- version "3.1.2"
- resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27"
- integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5"
+ integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==
escape-string-regexp@^1.0.5:
version "1.0.5"
@@ -2841,9 +2825,9 @@ is-arrayish@^0.2.1:
integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==
is-core-module@^2.13.0:
- version "2.15.0"
- resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.0.tgz#71c72ec5442ace7e76b306e9d48db361f22699ea"
- integrity sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA==
+ version "2.15.1"
+ resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.1.tgz#a7363a25bee942fefab0de13bf6aa372c82dcc37"
+ integrity sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==
dependencies:
hasown "^2.0.2"
@@ -3428,7 +3412,7 @@ lodash.isequal@^4.5.0:
resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"
integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==
-lodash.memoize@4.x:
+lodash.memoize@^4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe"
integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==
@@ -3452,7 +3436,7 @@ make-dir@^4.0.0:
dependencies:
semver "^7.5.3"
-make-error@1.x:
+make-error@^1.3.6:
version "1.3.6"
resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2"
integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==
@@ -3470,9 +3454,9 @@ merge-stream@^2.0.0:
integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==
micromatch@^4.0.0, micromatch@^4.0.4:
- version "4.0.7"
- resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.7.tgz#33e8190d9fe474a9895525f5618eee136d46c2e5"
- integrity sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==
+ version "4.0.8"
+ resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202"
+ integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==
dependencies:
braces "^3.0.3"
picomatch "^2.3.1"
@@ -3825,7 +3809,7 @@ 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.3.4, semver@^7.5.3, semver@^7.5.4, semver@^7.6.3:
version "7.6.3"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143"
integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==
@@ -4088,19 +4072,19 @@ tr46@~0.0.3:
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==
ts-jest@^29.1.2:
- version "29.2.4"
- resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.2.4.tgz#38ccf487407d7a63054a72689f6f99b075e296e5"
- integrity sha512-3d6tgDyhCI29HlpwIq87sNuI+3Q6GLTTCeYRHCs7vDz+/3GCMwEtV9jezLyl4ZtnBgx00I7hm8PCP8cTksMGrw==
+ version "29.2.5"
+ resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.2.5.tgz#591a3c108e1f5ebd013d3152142cb5472b399d63"
+ integrity sha512-KD8zB2aAZrcKIdGk4OwpJggeLcH1FgrICqDSROWqlnJXGCXK4Mn6FcdK2B6670Xr73lHMG1kHw8R87A0ecZ+vA==
dependencies:
- bs-logger "0.x"
+ bs-logger "^0.2.6"
ejs "^3.1.10"
- fast-json-stable-stringify "2.x"
+ fast-json-stable-stringify "^2.1.0"
jest-util "^29.0.0"
json5 "^2.2.3"
- lodash.memoize "4.x"
- make-error "1.x"
- semver "^7.5.3"
- yargs-parser "^21.0.1"
+ lodash.memoize "^4.1.2"
+ make-error "^1.3.6"
+ semver "^7.6.3"
+ yargs-parser "^21.1.1"
ts-loader@^9.5.1:
version "9.5.1"
@@ -4119,9 +4103,9 @@ tslib@^1.11.1:
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
tslib@^2.3.1, tslib@^2.5.0, tslib@^2.6.2:
- version "2.6.3"
- resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.3.tgz#0438f810ad7a9edcde7a241c3d80db693c8cbfe0"
- integrity sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==
+ version "2.7.0"
+ resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.7.0.tgz#d9b40c5c40ab59e8738f297df3087bf1a2690c01"
+ integrity sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==
type-detect@4.0.8:
version "4.0.8"
@@ -4233,11 +4217,10 @@ webpack-sources@^3.2.3:
integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==
webpack@^5.91.0:
- version "5.93.0"
- resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.93.0.tgz#2e89ec7035579bdfba9760d26c63ac5c3462a5e5"
- integrity sha512-Y0m5oEY1LRuwly578VqluorkXbvXKh7U3rLoQCEO04M97ScRr44afGVkI0FQFsXzysk5OgFAxjZAb9rsGQVihA==
+ version "5.94.0"
+ resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.94.0.tgz#77a6089c716e7ab90c1c67574a28da518a20970f"
+ integrity sha512-KcsGn50VT+06JH/iunZJedYGUJS5FGjow8wb9c0v5n1Om8O1g4L6LjtfxwlXIATopoQu+vOXXa7gYisWxCoPyg==
dependencies:
- "@types/eslint-scope" "^3.7.3"
"@types/estree" "^1.0.5"
"@webassemblyjs/ast" "^1.12.1"
"@webassemblyjs/wasm-edit" "^1.12.1"
@@ -4246,7 +4229,7 @@ webpack@^5.91.0:
acorn-import-attributes "^1.9.5"
browserslist "^4.21.10"
chrome-trace-event "^1.0.2"
- enhanced-resolve "^5.17.0"
+ enhanced-resolve "^5.17.1"
es-module-lexer "^1.2.1"
eslint-scope "5.1.1"
events "^3.2.0"
@@ -4353,7 +4336,7 @@ yallist@^3.0.2:
resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd"
integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==
-yargs-parser@^21.0.1, yargs-parser@^21.1.1:
+yargs-parser@^21.1.1:
version "21.1.1"
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35"
integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==