diff --git a/sdk/ai/ai-projects/package.json b/sdk/ai/ai-projects/package.json index 57efe48f1d10..c0d89ca92909 100644 --- a/sdk/ai/ai-projects/package.json +++ b/sdk/ai/ai-projects/package.json @@ -110,18 +110,22 @@ "./package.json": "./package.json", ".": { "browser": { + "source": "./src/index.ts", "types": "./dist/browser/index.d.ts", "default": "./dist/browser/index.js" }, "react-native": { + "source": "./src/index.ts", "types": "./dist/react-native/index.d.ts", "default": "./dist/react-native/index.js" }, "import": { + "source": "./src/index.ts", "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" }, "require": { + "source": "./src/index.ts", "types": "./dist/commonjs/index.d.ts", "default": "./dist/commonjs/index.js" } diff --git a/sdk/ai/ai-projects/review/ai-projects.api.md b/sdk/ai/ai-projects/review/ai-projects.api.md index fba90fab7c1f..8beedc6a9fe4 100644 --- a/sdk/ai/ai-projects/review/ai-projects.api.md +++ b/sdk/ai/ai-projects/review/ai-projects.api.md @@ -11,64 +11,63 @@ import { TokenCredential } from '@azure/core-auth'; // @public (undocumented) export interface AgentsOperations { - // Warning: (ae-forgotten-export) The symbol "AgentsCancelRunParameters" needs to be exported by the entry point index.d.ts - cancelRun: (threadId: string, runId: string, options?: AgentsCancelRunParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "CancelRunParameters" needs to be exported by the entry point index.d.ts + cancelRun: (threadId: string, runId: string, options?: CancelRunParameters) => Promise; // Warning: (ae-forgotten-export) The symbol "CreateAgentOptions" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "AgentOutput" needs to be exported by the entry point index.d.ts createAgent: (options: CreateAgentOptions) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsCreateMessageParameters" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "CreateMessageParameters" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "ThreadMessageOutput" needs to be exported by the entry point index.d.ts - createMessage: (threadId: string, options: AgentsCreateMessageParameters) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsCreateRunParameters" needs to be exported by the entry point index.d.ts + createMessage: (threadId: string, options: CreateMessageParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "CreateRunParameters" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "ThreadRunOutput" needs to be exported by the entry point index.d.ts - createRun: (threadId: string, options: AgentsCreateRunParameters) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsCreateThreadParameters" needs to be exported by the entry point index.d.ts + createRun: (threadId: string, options: CreateRunParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "CreateThreadParameters" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "AgentThreadOutput" needs to be exported by the entry point index.d.ts - createThread: (options: AgentsCreateThreadParameters) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsCreateThreadAndRunParameters" needs to be exported by the entry point index.d.ts - createThreadAndRun: (options: AgentsCreateThreadAndRunParameters) => Promise; + createThread: (options: CreateThreadParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "CreateThreadAndRunParameters" needs to be exported by the entry point index.d.ts + createThreadAndRun: (options: CreateThreadAndRunParameters) => Promise; // Warning: (ae-forgotten-export) The symbol "AgentDeletionStatusOutput" needs to be exported by the entry point index.d.ts deleteAgent: (assistantId: string) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsDeleteFileParameters" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "DeleteFileParameters" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "FileDeletionStatusOutput" needs to be exported by the entry point index.d.ts - deleteFile: (fileId: string, options?: AgentsDeleteFileParameters) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsDeleteThreadParameters" needs to be exported by the entry point index.d.ts + deleteFile: (fileId: string, options?: DeleteFileParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "DeleteThreadParameters" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "ThreadDeletionStatusOutput" needs to be exported by the entry point index.d.ts - deleteThread: (threadId: string, options?: AgentsDeleteThreadParameters) => Promise; + deleteThread: (threadId: string, options?: DeleteThreadParameters) => Promise; getAgent: (assistantId: string) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsGetFileParameters" needs to be exported by the entry point index.d.ts - getFile: (fileId: string, options?: AgentsGetFileParameters) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsGetFileContentParameters" needs to be exported by the entry point index.d.ts - // Warning: (ae-forgotten-export) The symbol "FileContentResponseOutput" needs to be exported by the entry point index.d.ts - getFileContent: (fileId: string, options?: AgentsGetFileContentParameters) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsGetRunParameters" needs to be exported by the entry point index.d.ts - getRun: (threadId: string, runId: string, options?: AgentsGetRunParameters) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsGetThreadParameters" needs to be exported by the entry point index.d.ts - getThread: (threadId: string, options?: AgentsGetThreadParameters) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsListAgentsQueryParamProperties" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "GetFileParameters" needs to be exported by the entry point index.d.ts + getFile: (fileId: string, options?: GetFileParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "GetFileContentParameters" needs to be exported by the entry point index.d.ts + getFileContent: (fileId: string, options?: GetFileContentParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "GetRunParameters" needs to be exported by the entry point index.d.ts + getRun: (threadId: string, runId: string, options?: GetRunParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "GetThreadParameters" needs to be exported by the entry point index.d.ts + getThread: (threadId: string, options?: GetThreadParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "ListAgentsQueryParamProperties" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "OpenAIPageableListOfAgentOutput" needs to be exported by the entry point index.d.ts - listAgents: (options?: AgentsListAgentsQueryParamProperties) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsListFilesParameters" needs to be exported by the entry point index.d.ts + listAgents: (options?: ListAgentsQueryParamProperties) => Promise; + // Warning: (ae-forgotten-export) The symbol "ListFilesParameters" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "FileListResponseOutput" needs to be exported by the entry point index.d.ts - listFiles: (options?: AgentsListFilesParameters) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsListMessagesParameters" needs to be exported by the entry point index.d.ts - listMessages: (threadId: string, options?: AgentsListMessagesParameters) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsListRunsParameters" needs to be exported by the entry point index.d.ts + listFiles: (options?: ListFilesParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "ListMessagesParameters" needs to be exported by the entry point index.d.ts + listMessages: (threadId: string, options?: ListMessagesParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "ListRunsParameters" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "OpenAIPageableListOfThreadRunOutput" needs to be exported by the entry point index.d.ts - listRuns: (threadId: string, options?: AgentsListRunsParameters) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsSubmitToolOutputsToRunParameters" needs to be exported by the entry point index.d.ts - submitToolOutputsToRun: (threadId: string, runId: string, options: AgentsSubmitToolOutputsToRunParameters) => Promise; + listRuns: (threadId: string, options?: ListRunsParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "SubmitToolOutputsToRunParameters" needs to be exported by the entry point index.d.ts + submitToolOutputsToRun: (threadId: string, runId: string, options: SubmitToolOutputsToRunParameters) => Promise; // Warning: (ae-forgotten-export) The symbol "UpdateAgentOptions" needs to be exported by the entry point index.d.ts updateAgent: (assistantId: string, options: UpdateAgentOptions) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsUpdateMessageParameters" needs to be exported by the entry point index.d.ts - updateMessage: (threadId: string, messageId: string, options: AgentsUpdateMessageParameters) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsUpdateRunParameters" needs to be exported by the entry point index.d.ts - updateRun: (threadId: string, runId: string, options: AgentsUpdateRunParameters) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsUpdateThreadParameters" needs to be exported by the entry point index.d.ts - updateThread: (threadId: string, options: AgentsUpdateThreadParameters) => Promise; - // Warning: (ae-forgotten-export) The symbol "AgentsUploadFileParameters" needs to be exported by the entry point index.d.ts + // Warning: (ae-forgotten-export) The symbol "UpdateMessageParameters" needs to be exported by the entry point index.d.ts + updateMessage: (threadId: string, messageId: string, options: UpdateMessageParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "UpdateRunParameters" needs to be exported by the entry point index.d.ts + updateRun: (threadId: string, runId: string, options: UpdateRunParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "UpdateThreadParameters" needs to be exported by the entry point index.d.ts + updateThread: (threadId: string, options: UpdateThreadParameters) => Promise; + // Warning: (ae-forgotten-export) The symbol "UploadFileParameters" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "OpenAIFileOutput" needs to be exported by the entry point index.d.ts - uploadFile: (options: AgentsUploadFileParameters) => Promise; + uploadFile: (options: UploadFileParameters) => Promise; } // @public (undocumented) diff --git a/sdk/ai/ai-projects/src/agents/assistants.ts b/sdk/ai/ai-projects/src/agents/assistants.ts index c9e3ad9a9916..07da09d90963 100644 --- a/sdk/ai/ai-projects/src/agents/assistants.ts +++ b/sdk/ai/ai-projects/src/agents/assistants.ts @@ -3,7 +3,7 @@ import { Client, createRestError } from "@azure-rest/core-client"; import { AgentDeletionStatusOutput, AgentOutput, OpenAIPageableListOfAgentOutput } from "../generated/src/outputModels.js"; -import { AgentsCreateAgentParameters, AgentsDeleteAgentParameters, AgentsGetAgentParameters, AgentsListAgentsParameters, AgentsUpdateAgentParameters } from "../generated/src/parameters.js"; +import { CreateAgentParameters, DeleteAgentParameters, GetAgentParameters, UpdateAgentParameters, ListAgentsParameters } from "../generated/src/parameters.js"; const expectedStatuses = ["200"]; @@ -11,7 +11,7 @@ const expectedStatuses = ["200"]; /** Creates a new agent. */ export async function createAgent( context: Client, - options: AgentsCreateAgentParameters, + options: CreateAgentParameters, ): Promise { const result = await context.path("/assistants").post(options); @@ -24,7 +24,7 @@ export async function createAgent( /** Gets a list of agents that were previously created. */ export async function listAgents( context: Client, - options?: AgentsListAgentsParameters, + options?: ListAgentsParameters, ): Promise { const result = await context .path("/assistants") @@ -39,7 +39,7 @@ export async function createAgent( export async function getAgent( context: Client, assistantId: string, - options?: AgentsGetAgentParameters, + options?: GetAgentParameters, ): Promise { const result = await context .path("/assistants/{assistantId}", assistantId) @@ -54,7 +54,7 @@ export async function getAgent( export async function updateAgent( context: Client, assistantId: string, - options?: AgentsUpdateAgentParameters, + options?: UpdateAgentParameters, ): Promise { const result = await context .path("/assistants/{assistantId}", assistantId) @@ -70,7 +70,7 @@ export async function updateAgent( export async function deleteAgent( context: Client, assistantId: string, - options?: AgentsDeleteAgentParameters, + options?: DeleteAgentParameters, ): Promise { const result = await context .path("/assistants/{assistantId}", assistantId) diff --git a/sdk/ai/ai-projects/src/agents/files.ts b/sdk/ai/ai-projects/src/agents/files.ts index 9feb1a423671..ff48b86662d8 100644 --- a/sdk/ai/ai-projects/src/agents/files.ts +++ b/sdk/ai/ai-projects/src/agents/files.ts @@ -2,15 +2,15 @@ // Licensed under the MIT License. import { Client, createRestError } from "@azure-rest/core-client"; -import { FileContentResponseOutput, FileDeletionStatusOutput, FileListResponseOutput, OpenAIFileOutput } from "../generated/src/outputModels.js"; -import { AgentsDeleteFileParameters, AgentsGetFileContentParameters, AgentsGetFileParameters, AgentsListFilesParameters, AgentsUploadFileParameters } from "../generated/src/parameters.js"; +import { FileDeletionStatusOutput, FileListResponseOutput, OpenAIFileOutput } from "../generated/src/outputModels.js"; +import { DeleteFileParameters, GetFileContentParameters, GetFileParameters, ListFilesParameters, UploadFileParameters } from "../generated/src/parameters.js"; const expectedStatuses = ["200"]; /** Gets a list of previously uploaded files. */ export async function listFiles( context: Client, - options?: AgentsListFilesParameters, + options?: ListFilesParameters, ): Promise { const result = await context.path("/files").get(options); if (!expectedStatuses.includes(result.status)) { @@ -22,7 +22,7 @@ export async function listFiles( /** Uploads a file for use by other operations. */ export async function uploadFile( context: Client, - options: AgentsUploadFileParameters, + options: UploadFileParameters, ): Promise { const result = await context.path("/files").post(options); if (!expectedStatuses.includes(result.status)) { @@ -35,7 +35,7 @@ export async function uploadFile( export async function deleteFile( context: Client, fileId: string, - options?: AgentsDeleteFileParameters, + options?: DeleteFileParameters, ): Promise { const result = await context .path("/files/{fileId}", fileId) @@ -50,7 +50,7 @@ export async function deleteFile( export async function getFile( context: Client, fileId: string, - options?: AgentsGetFileParameters, + options?: GetFileParameters, ): Promise { const result = await context .path("/files/{fileId}", fileId) @@ -65,8 +65,8 @@ export async function getFile( export async function getFileContent( context: Client, fileId: string, - options?: AgentsGetFileContentParameters, -): Promise { + options?: GetFileContentParameters, +): Promise { const result = await context .path("/files/{fileId}", fileId) .get(options); diff --git a/sdk/ai/ai-projects/src/agents/index.ts b/sdk/ai/ai-projects/src/agents/index.ts index 97e090cb8b91..4a391f60d0dd 100644 --- a/sdk/ai/ai-projects/src/agents/index.ts +++ b/sdk/ai/ai-projects/src/agents/index.ts @@ -3,8 +3,8 @@ // Licensed under the MIT License. import { Client } from "@azure-rest/core-client"; -import { AgentDeletionStatusOutput, AgentOutput, AgentThreadOutput, FileContentResponseOutput, FileDeletionStatusOutput, FileListResponseOutput, OpenAIFileOutput, OpenAIPageableListOfAgentOutput, OpenAIPageableListOfThreadRunOutput, ThreadDeletionStatusOutput, ThreadMessageOutput, ThreadRunOutput } from "../generated/src/outputModels.js"; -import { AgentsCancelRunParameters, AgentsCreateMessageParameters, AgentsCreateRunParameters, AgentsCreateThreadAndRunParameters, AgentsCreateThreadParameters, AgentsDeleteFileParameters, AgentsDeleteThreadParameters, AgentsGetFileContentParameters, AgentsGetFileParameters, AgentsGetRunParameters, AgentsGetThreadParameters, AgentsListAgentsQueryParamProperties, AgentsListFilesParameters, AgentsListMessagesParameters, AgentsListRunsParameters, AgentsSubmitToolOutputsToRunParameters, AgentsUpdateMessageParameters, AgentsUpdateRunParameters, AgentsUpdateThreadParameters, AgentsUploadFileParameters } from "../generated/src/parameters.js"; +import { AgentDeletionStatusOutput, AgentOutput, AgentThreadOutput, FileDeletionStatusOutput, FileListResponseOutput, OpenAIFileOutput, OpenAIPageableListOfAgentOutput, OpenAIPageableListOfThreadRunOutput, ThreadDeletionStatusOutput, ThreadMessageOutput, ThreadRunOutput } from "../generated/src/outputModels.js"; +import { CancelRunParameters, CreateMessageParameters, CreateRunParameters, CreateThreadAndRunParameters, CreateThreadParameters, DeleteFileParameters, DeleteThreadParameters, GetFileContentParameters, GetFileParameters, GetRunParameters, GetThreadParameters, ListAgentsQueryParamProperties, ListFilesParameters, ListMessagesParameters, ListRunsParameters, SubmitToolOutputsToRunParameters, UpdateMessageParameters, UpdateRunParameters, UpdateThreadParameters, UploadFileParameters } from "../generated/src/parameters.js"; import { createAgent, deleteAgent, getAgent, listAgents, updateAgent } from "./assistants.js"; import { deleteFile, getFile, getFileContent, listFiles, uploadFile } from "./files.js"; import { createThread, deleteThread, getThread, updateThread } from "./threads.js"; @@ -19,7 +19,7 @@ export interface AgentsOperations { ) => Promise; /** Gets a list of agents that were previously created. */ listAgents: ( - options?: AgentsListAgentsQueryParamProperties, + options?: ListAgentsQueryParamProperties, ) => Promise; /** Retrieves an existing agent. */ getAgent: ( @@ -37,110 +37,110 @@ export interface AgentsOperations { /** Creates a new thread. Threads contain messages and can be run by agents. */ createThread: ( - options: AgentsCreateThreadParameters, + options: CreateThreadParameters, ) => Promise; /** Gets information about an existing thread. */ getThread: ( threadId: string, - options?: AgentsGetThreadParameters, + options?: GetThreadParameters, ) => Promise; /** Modifies an existing thread. */ updateThread: ( threadId: string, - options: AgentsUpdateThreadParameters, + options: UpdateThreadParameters, ) => Promise; /** Deletes an existing thread. */ deleteThread: ( threadId: string, - options?: AgentsDeleteThreadParameters, + options?: DeleteThreadParameters, ) => Promise; /** Creates and starts a new run of the specified thread using the specified agent. */ createRun: ( threadId: string, - options: AgentsCreateRunParameters, + options: CreateRunParameters, ) => Promise; /** Gets a list of runs for a specified thread. */ listRuns: ( threadId: string, - options?: AgentsListRunsParameters, + options?: ListRunsParameters, ) => Promise; /** Gets an existing run from an existing thread. */ getRun: ( threadId: string, runId: string, - options?: AgentsGetRunParameters, + options?: GetRunParameters, ) => Promise; /** Modifies an existing thread run. */ updateRun: ( threadId: string, runId: string, - options: AgentsUpdateRunParameters, + options: UpdateRunParameters, ) => Promise; /** Submits outputs from tools as requested by tool calls in a run. Runs that need submitted tool outputs will have a status of 'requires_action' with a required_action.type of 'submit_tool_outputs'. */ submitToolOutputsToRun: ( threadId: string, runId: string, - options: AgentsSubmitToolOutputsToRunParameters, + options: SubmitToolOutputsToRunParameters, ) => Promise; /** Cancels a run of an in progress thread. */ cancelRun: ( threadId: string, runId: string, - options?: AgentsCancelRunParameters, + options?: CancelRunParameters, ) => Promise; /** Creates a new thread and immediately starts a run of that thread. */ createThreadAndRun: ( - options: AgentsCreateThreadAndRunParameters, + options: CreateThreadAndRunParameters, ) => Promise; /** Creates a new message on a specified thread. */ createMessage: ( threadId: string, - options: AgentsCreateMessageParameters, + options: CreateMessageParameters, ) => Promise; /** Gets a list of messages that exist on a thread. */ listMessages: ( threadId: string, - options?: AgentsListMessagesParameters, + options?: ListMessagesParameters, ) => Promise; /** Modifies an existing message on an existing thread. */ updateMessage: ( threadId: string, messageId: string, - options: AgentsUpdateMessageParameters, + options: UpdateMessageParameters, ) => Promise; /** Gets a list of previously uploaded files. */ listFiles: ( - options?: AgentsListFilesParameters, + options?: ListFilesParameters, ) => Promise; /** Uploads a file for use by other operations. */ uploadFile: ( - options: AgentsUploadFileParameters, + options: UploadFileParameters, ) => Promise; /** Delete a previously uploaded file. */ deleteFile: ( fileId: string, - options?: AgentsDeleteFileParameters, + options?: DeleteFileParameters, ) => Promise; /** Returns information about a specific file. Does not retrieve file content. */ getFile: ( fileId: string, - options?: AgentsGetFileParameters, + options?: GetFileParameters, ) => Promise; /** Returns the content of a specific file. */ getFileContent: ( fileId: string, - options?: AgentsGetFileContentParameters, - ) => Promise; + options?: GetFileContentParameters, + ) => Promise; } function getAgents(context: Client) : AgentsOperations { return { createAgent: (options: CreateAgentOptions) => createAgent(context, { body:options }), - listAgents: (options?: AgentsListAgentsQueryParamProperties) => + listAgents: (options?: ListAgentsQueryParamProperties) => listAgents(context, { queryParameters : options as Record }), getAgent: (assistantId: string) => getAgent(context, assistantId), @@ -152,46 +152,46 @@ function getAgents(context: Client) : AgentsOperations { assistantId: string ) => deleteAgent(context, assistantId), - createThread: (options: AgentsCreateThreadParameters) => + createThread: (options: CreateThreadParameters) => createThread(context, options), - getThread: (threadId: string, options?: AgentsGetThreadParameters) => + getThread: (threadId: string, options?: GetThreadParameters) => getThread(context, threadId, options), - updateThread: (threadId: string, options: AgentsUpdateThreadParameters) => + updateThread: (threadId: string, options: UpdateThreadParameters) => updateThread(context, threadId, options), - deleteThread: (threadId: string, options?: AgentsDeleteThreadParameters) => + deleteThread: (threadId: string, options?: DeleteThreadParameters) => deleteThread(context, threadId, options), - createRun: (threadId: string, options: AgentsCreateRunParameters) => + createRun: (threadId: string, options: CreateRunParameters) => createRun(context, threadId, options), - listRuns: (threadId: string, options?: AgentsListRunsParameters) => + listRuns: (threadId: string, options?: ListRunsParameters) => listRuns(context, threadId, options), - getRun: (threadId: string, runId: string, options?: AgentsGetRunParameters) => + getRun: (threadId: string, runId: string, options?: GetRunParameters) => getRun(context, threadId, runId, options), - updateRun: (threadId: string, runId: string, options: AgentsUpdateRunParameters) => + updateRun: (threadId: string, runId: string, options: UpdateRunParameters) => updateRun(context, threadId, runId, options), - submitToolOutputsToRun: (threadId: string, runId: string, options: AgentsSubmitToolOutputsToRunParameters) => + submitToolOutputsToRun: (threadId: string, runId: string, options: SubmitToolOutputsToRunParameters) => submitToolOutputsToRun(context, threadId, runId, options), - cancelRun: (threadId: string, runId: string, options?: AgentsCancelRunParameters) => + cancelRun: (threadId: string, runId: string, options?: CancelRunParameters) => cancelRun(context, threadId, runId, options), - createThreadAndRun: (options: AgentsCreateThreadAndRunParameters) => + createThreadAndRun: (options: CreateThreadAndRunParameters) => createThreadAndRun(context, options), - createMessage: (threadId: string, options: AgentsCreateMessageParameters) => + createMessage: (threadId: string, options: CreateMessageParameters) => createMessage(context, threadId, options), - listMessages: (threadId: string, options?: AgentsListMessagesParameters) => + listMessages: (threadId: string, options?: ListMessagesParameters) => listMessages(context, threadId, options), - updateMessage: (threadId: string, messageId: string, options: AgentsUpdateMessageParameters) => + updateMessage: (threadId: string, messageId: string, options: UpdateMessageParameters) => updateMessage(context, threadId, messageId, options), - listFiles: (options?: AgentsListFilesParameters) => + listFiles: (options?: ListFilesParameters) => listFiles(context, options), - uploadFile: (options: AgentsUploadFileParameters) => + uploadFile: (options: UploadFileParameters) => uploadFile(context, options), - deleteFile: (fileId: string, options?: AgentsDeleteFileParameters) => + deleteFile: (fileId: string, options?: DeleteFileParameters) => deleteFile(context, fileId, options), - getFile: (fileId: string, options?: AgentsGetFileParameters) => + getFile: (fileId: string, options?: GetFileParameters) => getFile(context, fileId, options), - getFileContent: (fileId: string, options?: AgentsGetFileContentParameters) => + getFileContent: (fileId: string, options?: GetFileContentParameters) => getFileContent(context, fileId, options), }; } diff --git a/sdk/ai/ai-projects/src/agents/messages.ts b/sdk/ai/ai-projects/src/agents/messages.ts index 1e0a0078c94f..918a8d6f18b3 100644 --- a/sdk/ai/ai-projects/src/agents/messages.ts +++ b/sdk/ai/ai-projects/src/agents/messages.ts @@ -3,7 +3,7 @@ import { Client, createRestError } from "@azure-rest/core-client"; import { ThreadMessageOutput } from "../generated/src/outputModels.js"; -import { AgentsCreateMessageParameters, AgentsListMessagesParameters, AgentsUpdateMessageParameters } from "../generated/src/parameters.js"; +import { CreateMessageParameters, ListMessagesParameters, UpdateMessageParameters } from "../generated/src/parameters.js"; const expectedStatuses = ["200"]; @@ -11,7 +11,7 @@ const expectedStatuses = ["200"]; export async function createMessage( context: Client, threadId: string, - options: AgentsCreateMessageParameters, + options: CreateMessageParameters, ): Promise { const result = await context .path("/threads/{threadId}/messages", threadId) @@ -26,7 +26,7 @@ export async function createMessage( export async function listMessages( context: Client, threadId: string, - options?: AgentsListMessagesParameters, + options?: ListMessagesParameters, ): Promise { const result = await context .path("/threads/{threadId}/messages", threadId) @@ -42,7 +42,7 @@ export async function updateMessage( context: Client, threadId: string, messageId: string, - options: AgentsUpdateMessageParameters, + options: UpdateMessageParameters, ): Promise { const result = await context .path("/threads/{threadId}/messages/{messageId}", threadId, messageId) diff --git a/sdk/ai/ai-projects/src/agents/runs.ts b/sdk/ai/ai-projects/src/agents/runs.ts index 178aa518d594..f160b4bfda38 100644 --- a/sdk/ai/ai-projects/src/agents/runs.ts +++ b/sdk/ai/ai-projects/src/agents/runs.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { Client, createRestError } from "@azure-rest/core-client"; -import { AgentsCancelRunParameters, AgentsCreateRunParameters, AgentsCreateThreadAndRunParameters, AgentsGetRunParameters, AgentsListRunsParameters, AgentsSubmitToolOutputsToRunParameters, AgentsUpdateRunParameters } from "../generated/src/parameters.js"; +import { CancelRunParameters, CreateRunParameters, CreateThreadAndRunParameters, GetRunParameters, ListRunsParameters, SubmitToolOutputsToRunParameters, UpdateRunParameters } from "../generated/src/parameters.js"; import { OpenAIPageableListOfThreadRunOutput, ThreadRunOutput } from "../generated/src/outputModels.js"; const expectedStatuses = ["200"]; @@ -11,7 +11,7 @@ const expectedStatuses = ["200"]; export async function createRun( context: Client, threadId: string, - options: AgentsCreateRunParameters, + options: CreateRunParameters, ): Promise { const result = await context .path("/threads/{threadId}/runs", threadId) @@ -26,7 +26,7 @@ export async function createRun( export async function listRuns( context: Client, threadId: string, - options?: AgentsListRunsParameters, + options?: ListRunsParameters, ): Promise { const result = await context .path("/threads/{threadId}/runs", threadId) @@ -42,7 +42,7 @@ export async function getRun( context: Client, threadId: string, runId: string, - options?: AgentsGetRunParameters, + options?: GetRunParameters, ): Promise { const result = await context .path("/threads/{threadId}/runs/{runId}", threadId, runId) @@ -58,7 +58,7 @@ export async function updateRun( context: Client, threadId: string, runId: string, - options: AgentsUpdateRunParameters, + options: UpdateRunParameters, ): Promise { const result = await context .path("/threads/{threadId}/runs/{runId}", threadId, runId) @@ -74,7 +74,7 @@ export async function submitToolOutputsToRun( context: Client, threadId: string, runId: string, - options?: AgentsSubmitToolOutputsToRunParameters, + options?: SubmitToolOutputsToRunParameters, ): Promise { const result = await context .path("/threads/{threadId}/runs/{runId}/submit_tool_outputs", threadId, runId) @@ -90,7 +90,7 @@ export async function cancelRun( context: Client, threadId: string, runId: string, - options?: AgentsCancelRunParameters, + options?: CancelRunParameters, ): Promise { const result = await context .path("/threads/{threadId}/runs/{runId}/cancel", threadId, runId) @@ -104,7 +104,7 @@ export async function cancelRun( /** Creates a new thread and immediately starts a run of that thread. */ export async function createThreadAndRun( context: Client, - options: AgentsCreateThreadAndRunParameters, + options: CreateThreadAndRunParameters, ): Promise { const result = await context.path("/threads/runs").post(options); if (!expectedStatuses.includes(result.status)) { diff --git a/sdk/ai/ai-projects/src/agents/threads.ts b/sdk/ai/ai-projects/src/agents/threads.ts index 37be60da3902..8d54cf3981ca 100644 --- a/sdk/ai/ai-projects/src/agents/threads.ts +++ b/sdk/ai/ai-projects/src/agents/threads.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { Client, createRestError } from "@azure-rest/core-client"; -import { AgentsCreateThreadParameters, AgentsDeleteThreadParameters, AgentsGetThreadParameters, AgentsUpdateThreadParameters } from "../generated/src/parameters.js"; +import { CreateThreadParameters, DeleteThreadParameters, GetThreadParameters, UpdateThreadParameters } from "../generated/src/parameters.js"; import { AgentThreadOutput, ThreadDeletionStatusOutput } from "../generated/src/outputModels.js"; const expectedStatuses = ["200"]; @@ -10,7 +10,7 @@ const expectedStatuses = ["200"]; /** Creates a new thread. Threads contain messages and can be run by agents. */ export async function createThread( context: Client, - options: AgentsCreateThreadParameters, + options: CreateThreadParameters, ): Promise { const result = await context.path("/threads").post(options); if (!expectedStatuses.includes(result.status)) { @@ -23,7 +23,7 @@ export async function createThread( export async function getThread( context: Client, threadId: string, - options?: AgentsGetThreadParameters, + options?: GetThreadParameters, ): Promise { const result = await context .path("/threads/{threadId}", threadId) @@ -38,7 +38,7 @@ export async function getThread( export async function updateThread( context: Client, threadId: string, - options: AgentsUpdateThreadParameters, + options: UpdateThreadParameters, ): Promise { const result = await context .path("/threads/{threadId}", threadId) @@ -53,7 +53,7 @@ export async function updateThread( export async function deleteThread( context: Client, threadId: string, - options?: AgentsDeleteThreadParameters, + options?: DeleteThreadParameters, ): Promise { const result = await context .path("/threads/{threadId}", threadId) diff --git a/sdk/ai/ai-projects/src/generated/src/clientDefinitions.ts b/sdk/ai/ai-projects/src/generated/src/clientDefinitions.ts index febe2974893a..c00785ae2a6e 100644 --- a/sdk/ai/ai-projects/src/generated/src/clientDefinitions.ts +++ b/sdk/ai/ai-projects/src/generated/src/clientDefinitions.ts @@ -2,697 +2,669 @@ // Licensed under the MIT License. import { - AgentsCreateAgentParameters, - AgentsListAgentsParameters, - AgentsGetAgentParameters, - AgentsUpdateAgentParameters, - AgentsDeleteAgentParameters, - AgentsCreateThreadParameters, - AgentsGetThreadParameters, - AgentsUpdateThreadParameters, - AgentsDeleteThreadParameters, - AgentsCreateMessageParameters, - AgentsListMessagesParameters, - AgentsGetMessageParameters, - AgentsUpdateMessageParameters, - AgentsCreateRunParameters, - AgentsListRunsParameters, - AgentsGetRunParameters, - AgentsUpdateRunParameters, - AgentsSubmitToolOutputsToRunParameters, - AgentsCancelRunParameters, - AgentsCreateThreadAndRunParameters, - AgentsGetRunStepParameters, - AgentsListRunStepsParameters, - AgentsListFilesParameters, - AgentsUploadFileParameters, - AgentsDeleteFileParameters, - AgentsGetFileParameters, - AgentsGetFileContentParameters, - AgentsListVectorStoresParameters, - AgentsCreateVectorStoreParameters, - AgentsGetVectorStoreParameters, - AgentsModifyVectorStoreParameters, - AgentsDeleteVectorStoreParameters, - AgentsListVectorStoreFilesParameters, - AgentsCreateVectorStoreFileParameters, - AgentsGetVectorStoreFileParameters, - AgentsDeleteVectorStoreFileParameters, - AgentsCreateVectorStoreFileBatchParameters, - AgentsGetVectorStoreFileBatchParameters, - AgentsCancelVectorStoreFileBatchParameters, - AgentsListVectorStoreFileBatchFilesParameters, - ConnectionsListParameters, - ConnectionsGetParameters, - ConnectionsListSecretsParameters, - EvaluationsGetParameters, - EvaluationsUpdateParameters, - EvaluationsCreateParameters, - EvaluationsListParameters, - EvaluationsGetScheduleParameters, - EvaluationsCreateOrReplaceScheduleParameters, - EvaluationsDeleteScheduleParameters, - EvaluationsListScheduleParameters, + CreateAgentParameters, + ListAgentsParameters, + GetAgentParameters, + UpdateAgentParameters, + DeleteAgentParameters, + CreateThreadParameters, + GetThreadParameters, + UpdateThreadParameters, + DeleteThreadParameters, + CreateMessageParameters, + ListMessagesParameters, + GetMessageParameters, + UpdateMessageParameters, + CreateRunParameters, + ListRunsParameters, + GetRunParameters, + UpdateRunParameters, + SubmitToolOutputsToRunParameters, + CancelRunParameters, + CreateThreadAndRunParameters, + GetRunStepParameters, + ListRunStepsParameters, + ListFilesParameters, + UploadFileParameters, + DeleteFileParameters, + GetFileParameters, + GetFileContentParameters, + ListVectorStoresParameters, + CreateVectorStoreParameters, + GetVectorStoreParameters, + ModifyVectorStoreParameters, + DeleteVectorStoreParameters, + ListVectorStoreFilesParameters, + CreateVectorStoreFileParameters, + GetVectorStoreFileParameters, + DeleteVectorStoreFileParameters, + CreateVectorStoreFileBatchParameters, + GetVectorStoreFileBatchParameters, + CancelVectorStoreFileBatchParameters, + ListVectorStoreFileBatchFilesParameters, + GetWorkspaceParameters, + ListConnectionsParameters, + GetConnectionParameters, + GetConnectionWithSecretsParameters, + GetAppInsightsParameters, + GetParameters, + UpdateParameters, + CreateParameters, + ListParameters, + GetScheduleParameters, + CreateOrReplaceScheduleParameters, + ListScheduleParameters, + DisableScheduleParameters, } from "./parameters.js"; import { - AgentsCreateAgent200Response, - AgentsCreateAgentDefaultResponse, - AgentsListAgents200Response, - AgentsListAgentsDefaultResponse, - AgentsGetAgent200Response, - AgentsGetAgentDefaultResponse, - AgentsUpdateAgent200Response, - AgentsUpdateAgentDefaultResponse, - AgentsDeleteAgent200Response, - AgentsDeleteAgentDefaultResponse, - AgentsCreateThread200Response, - AgentsCreateThreadDefaultResponse, - AgentsGetThread200Response, - AgentsGetThreadDefaultResponse, - AgentsUpdateThread200Response, - AgentsUpdateThreadDefaultResponse, - AgentsDeleteThread200Response, - AgentsDeleteThreadDefaultResponse, - AgentsCreateMessage200Response, - AgentsCreateMessageDefaultResponse, - AgentsListMessages200Response, - AgentsListMessagesDefaultResponse, - AgentsGetMessage200Response, - AgentsGetMessageDefaultResponse, - AgentsUpdateMessage200Response, - AgentsUpdateMessageDefaultResponse, - AgentsCreateRun200Response, - AgentsCreateRunDefaultResponse, - AgentsListRuns200Response, - AgentsListRunsDefaultResponse, - AgentsGetRun200Response, - AgentsGetRunDefaultResponse, - AgentsUpdateRun200Response, - AgentsUpdateRunDefaultResponse, - AgentsSubmitToolOutputsToRun200Response, - AgentsSubmitToolOutputsToRunDefaultResponse, - AgentsCancelRun200Response, - AgentsCancelRunDefaultResponse, - AgentsCreateThreadAndRun200Response, - AgentsCreateThreadAndRunDefaultResponse, - AgentsGetRunStep200Response, - AgentsGetRunStepDefaultResponse, - AgentsListRunSteps200Response, - AgentsListRunStepsDefaultResponse, - AgentsListFiles200Response, - AgentsListFilesDefaultResponse, - AgentsUploadFile200Response, - AgentsUploadFileDefaultResponse, - AgentsDeleteFile200Response, - AgentsDeleteFileDefaultResponse, - AgentsGetFile200Response, - AgentsGetFileDefaultResponse, - AgentsGetFileContent200Response, - AgentsGetFileContentDefaultResponse, - AgentsListVectorStores200Response, - AgentsListVectorStoresDefaultResponse, - AgentsCreateVectorStore200Response, - AgentsCreateVectorStoreDefaultResponse, - AgentsGetVectorStore200Response, - AgentsGetVectorStoreDefaultResponse, - AgentsModifyVectorStore200Response, - AgentsModifyVectorStoreDefaultResponse, - AgentsDeleteVectorStore200Response, - AgentsDeleteVectorStoreDefaultResponse, - AgentsListVectorStoreFiles200Response, - AgentsListVectorStoreFilesDefaultResponse, - AgentsCreateVectorStoreFile200Response, - AgentsCreateVectorStoreFileDefaultResponse, - AgentsGetVectorStoreFile200Response, - AgentsGetVectorStoreFileDefaultResponse, - AgentsDeleteVectorStoreFile200Response, - AgentsDeleteVectorStoreFileDefaultResponse, - AgentsCreateVectorStoreFileBatch200Response, - AgentsCreateVectorStoreFileBatchDefaultResponse, - AgentsGetVectorStoreFileBatch200Response, - AgentsGetVectorStoreFileBatchDefaultResponse, - AgentsCancelVectorStoreFileBatch200Response, - AgentsCancelVectorStoreFileBatchDefaultResponse, - AgentsListVectorStoreFileBatchFiles200Response, - AgentsListVectorStoreFileBatchFilesDefaultResponse, - ConnectionsList200Response, - ConnectionsListDefaultResponse, - ConnectionsGet200Response, - ConnectionsGetDefaultResponse, - ConnectionsListSecrets200Response, - ConnectionsListSecretsDefaultResponse, - EvaluationsGet200Response, - EvaluationsGetDefaultResponse, - EvaluationsUpdate200Response, - EvaluationsUpdateDefaultResponse, - EvaluationsCreate201Response, - EvaluationsList200Response, - EvaluationsListDefaultResponse, - EvaluationsGetSchedule200Response, - EvaluationsGetScheduleDefaultResponse, - EvaluationsCreateOrReplaceSchedule200Response, - EvaluationsCreateOrReplaceSchedule201Response, - EvaluationsCreateOrReplaceScheduleDefaultResponse, - EvaluationsDeleteSchedule204Response, - EvaluationsDeleteScheduleDefaultResponse, - EvaluationsListSchedule200Response, - EvaluationsListScheduleDefaultResponse, + CreateAgent200Response, + CreateAgentDefaultResponse, + ListAgents200Response, + ListAgentsDefaultResponse, + GetAgent200Response, + GetAgentDefaultResponse, + UpdateAgent200Response, + UpdateAgentDefaultResponse, + DeleteAgent200Response, + DeleteAgentDefaultResponse, + CreateThread200Response, + CreateThreadDefaultResponse, + GetThread200Response, + GetThreadDefaultResponse, + UpdateThread200Response, + UpdateThreadDefaultResponse, + DeleteThread200Response, + DeleteThreadDefaultResponse, + CreateMessage200Response, + CreateMessageDefaultResponse, + ListMessages200Response, + ListMessagesDefaultResponse, + GetMessage200Response, + GetMessageDefaultResponse, + UpdateMessage200Response, + UpdateMessageDefaultResponse, + CreateRun200Response, + CreateRunDefaultResponse, + ListRuns200Response, + ListRunsDefaultResponse, + GetRun200Response, + GetRunDefaultResponse, + UpdateRun200Response, + UpdateRunDefaultResponse, + SubmitToolOutputsToRun200Response, + SubmitToolOutputsToRunDefaultResponse, + CancelRun200Response, + CancelRunDefaultResponse, + CreateThreadAndRun200Response, + CreateThreadAndRunDefaultResponse, + GetRunStep200Response, + GetRunStepDefaultResponse, + ListRunSteps200Response, + ListRunStepsDefaultResponse, + ListFiles200Response, + ListFilesDefaultResponse, + UploadFile200Response, + UploadFileDefaultResponse, + DeleteFile200Response, + DeleteFileDefaultResponse, + GetFile200Response, + GetFileDefaultResponse, + GetFileContent200Response, + GetFileContentDefaultResponse, + ListVectorStores200Response, + ListVectorStoresDefaultResponse, + CreateVectorStore200Response, + CreateVectorStoreDefaultResponse, + GetVectorStore200Response, + GetVectorStoreDefaultResponse, + ModifyVectorStore200Response, + ModifyVectorStoreDefaultResponse, + DeleteVectorStore200Response, + DeleteVectorStoreDefaultResponse, + ListVectorStoreFiles200Response, + ListVectorStoreFilesDefaultResponse, + CreateVectorStoreFile200Response, + CreateVectorStoreFileDefaultResponse, + GetVectorStoreFile200Response, + GetVectorStoreFileDefaultResponse, + DeleteVectorStoreFile200Response, + DeleteVectorStoreFileDefaultResponse, + CreateVectorStoreFileBatch200Response, + CreateVectorStoreFileBatchDefaultResponse, + GetVectorStoreFileBatch200Response, + GetVectorStoreFileBatchDefaultResponse, + CancelVectorStoreFileBatch200Response, + CancelVectorStoreFileBatchDefaultResponse, + ListVectorStoreFileBatchFiles200Response, + ListVectorStoreFileBatchFilesDefaultResponse, + GetWorkspace200Response, + GetWorkspaceDefaultResponse, + ListConnections200Response, + ListConnectionsDefaultResponse, + GetConnection200Response, + GetConnectionDefaultResponse, + GetConnectionWithSecrets200Response, + GetConnectionWithSecretsDefaultResponse, + GetAppInsights200Response, + GetAppInsightsDefaultResponse, + Get200Response, + GetDefaultResponse, + Update200Response, + UpdateDefaultResponse, + Create201Response, + List200Response, + ListDefaultResponse, + GetSchedule200Response, + GetScheduleDefaultResponse, + CreateOrReplaceSchedule200Response, + CreateOrReplaceSchedule201Response, + CreateOrReplaceScheduleDefaultResponse, + ListSchedule200Response, + ListScheduleDefaultResponse, + DisableSchedule204Response, + DisableScheduleDefaultResponse, } from "./responses.js"; import { Client, StreamableMethod } from "@azure-rest/core-client"; -export interface AgentsCreateAgent { +export interface CreateAgent { /** Creates a new agent. */ post( - options: AgentsCreateAgentParameters, - ): StreamableMethod< - AgentsCreateAgent200Response | AgentsCreateAgentDefaultResponse - >; + options: CreateAgentParameters, + ): StreamableMethod; /** Gets a list of agents that were previously created. */ get( - options?: AgentsListAgentsParameters, - ): StreamableMethod< - AgentsListAgents200Response | AgentsListAgentsDefaultResponse - >; + options?: ListAgentsParameters, + ): StreamableMethod; } -export interface AgentsGetAgent { +export interface GetAgent { /** Retrieves an existing agent. */ get( - options?: AgentsGetAgentParameters, - ): StreamableMethod< - AgentsGetAgent200Response | AgentsGetAgentDefaultResponse - >; + options?: GetAgentParameters, + ): StreamableMethod; /** Modifies an existing agent. */ post( - options: AgentsUpdateAgentParameters, - ): StreamableMethod< - AgentsUpdateAgent200Response | AgentsUpdateAgentDefaultResponse - >; + options: UpdateAgentParameters, + ): StreamableMethod; /** Deletes an agent. */ delete( - options?: AgentsDeleteAgentParameters, - ): StreamableMethod< - AgentsDeleteAgent200Response | AgentsDeleteAgentDefaultResponse - >; + options?: DeleteAgentParameters, + ): StreamableMethod; } -export interface AgentsCreateThread { +export interface CreateThread { /** Creates a new thread. Threads contain messages and can be run by agents. */ post( - options: AgentsCreateThreadParameters, - ): StreamableMethod< - AgentsCreateThread200Response | AgentsCreateThreadDefaultResponse - >; + options: CreateThreadParameters, + ): StreamableMethod; } -export interface AgentsGetThread { +export interface GetThread { /** Gets information about an existing thread. */ get( - options?: AgentsGetThreadParameters, - ): StreamableMethod< - AgentsGetThread200Response | AgentsGetThreadDefaultResponse - >; + options?: GetThreadParameters, + ): StreamableMethod; /** Modifies an existing thread. */ post( - options: AgentsUpdateThreadParameters, - ): StreamableMethod< - AgentsUpdateThread200Response | AgentsUpdateThreadDefaultResponse - >; + options: UpdateThreadParameters, + ): StreamableMethod; /** Deletes an existing thread. */ delete( - options?: AgentsDeleteThreadParameters, - ): StreamableMethod< - AgentsDeleteThread200Response | AgentsDeleteThreadDefaultResponse - >; + options?: DeleteThreadParameters, + ): StreamableMethod; } -export interface AgentsCreateMessage { +export interface CreateMessage { /** Creates a new message on a specified thread. */ post( - options: AgentsCreateMessageParameters, - ): StreamableMethod< - AgentsCreateMessage200Response | AgentsCreateMessageDefaultResponse - >; + options: CreateMessageParameters, + ): StreamableMethod; /** Gets a list of messages that exist on a thread. */ get( - options?: AgentsListMessagesParameters, - ): StreamableMethod< - AgentsListMessages200Response | AgentsListMessagesDefaultResponse - >; + options?: ListMessagesParameters, + ): StreamableMethod; } -export interface AgentsGetMessage { +export interface GetMessage { /** Gets an existing message from an existing thread. */ get( - options?: AgentsGetMessageParameters, - ): StreamableMethod< - AgentsGetMessage200Response | AgentsGetMessageDefaultResponse - >; + options?: GetMessageParameters, + ): StreamableMethod; /** Modifies an existing message on an existing thread. */ post( - options: AgentsUpdateMessageParameters, - ): StreamableMethod< - AgentsUpdateMessage200Response | AgentsUpdateMessageDefaultResponse - >; + options: UpdateMessageParameters, + ): StreamableMethod; } -export interface AgentsCreateRun { +export interface CreateRun { /** Creates a new run for an agent thread. */ post( - options: AgentsCreateRunParameters, - ): StreamableMethod< - AgentsCreateRun200Response | AgentsCreateRunDefaultResponse - >; + options: CreateRunParameters, + ): StreamableMethod; /** Gets a list of runs for a specified thread. */ get( - options?: AgentsListRunsParameters, - ): StreamableMethod< - AgentsListRuns200Response | AgentsListRunsDefaultResponse - >; + options?: ListRunsParameters, + ): StreamableMethod; } -export interface AgentsGetRun { +export interface GetRun { /** Gets an existing run from an existing thread. */ get( - options?: AgentsGetRunParameters, - ): StreamableMethod; + options?: GetRunParameters, + ): StreamableMethod; /** Modifies an existing thread run. */ post( - options: AgentsUpdateRunParameters, - ): StreamableMethod< - AgentsUpdateRun200Response | AgentsUpdateRunDefaultResponse - >; + options: UpdateRunParameters, + ): StreamableMethod; } -export interface AgentsSubmitToolOutputsToRun { +export interface SubmitToolOutputsToRun { /** Submits outputs from tools as requested by tool calls in a run. Runs that need submitted tool outputs will have a status of 'requires_action' with a required_action.type of 'submit_tool_outputs'. */ post( - options: AgentsSubmitToolOutputsToRunParameters, + options: SubmitToolOutputsToRunParameters, ): StreamableMethod< - | AgentsSubmitToolOutputsToRun200Response - | AgentsSubmitToolOutputsToRunDefaultResponse + SubmitToolOutputsToRun200Response | SubmitToolOutputsToRunDefaultResponse >; } -export interface AgentsCancelRun { +export interface CancelRun { /** Cancels a run of an in progress thread. */ post( - options?: AgentsCancelRunParameters, - ): StreamableMethod< - AgentsCancelRun200Response | AgentsCancelRunDefaultResponse - >; + options?: CancelRunParameters, + ): StreamableMethod; } -export interface AgentsCreateThreadAndRun { +export interface CreateThreadAndRun { /** Creates a new agent thread and immediately starts a run using that new thread. */ post( - options: AgentsCreateThreadAndRunParameters, + options: CreateThreadAndRunParameters, ): StreamableMethod< - | AgentsCreateThreadAndRun200Response - | AgentsCreateThreadAndRunDefaultResponse + CreateThreadAndRun200Response | CreateThreadAndRunDefaultResponse >; } -export interface AgentsGetRunStep { +export interface GetRunStep { /** Gets a single run step from a thread run. */ get( - options?: AgentsGetRunStepParameters, - ): StreamableMethod< - AgentsGetRunStep200Response | AgentsGetRunStepDefaultResponse - >; + options?: GetRunStepParameters, + ): StreamableMethod; } -export interface AgentsListRunSteps { +export interface ListRunSteps { /** Gets a list of run steps from a thread run. */ get( - options?: AgentsListRunStepsParameters, - ): StreamableMethod< - AgentsListRunSteps200Response | AgentsListRunStepsDefaultResponse - >; + options?: ListRunStepsParameters, + ): StreamableMethod; } -export interface AgentsListFiles { +export interface ListFiles { /** Gets a list of previously uploaded files. */ get( - options?: AgentsListFilesParameters, - ): StreamableMethod< - AgentsListFiles200Response | AgentsListFilesDefaultResponse - >; + options?: ListFilesParameters, + ): StreamableMethod; /** Uploads a file for use by other operations. */ post( - options: AgentsUploadFileParameters, - ): StreamableMethod< - AgentsUploadFile200Response | AgentsUploadFileDefaultResponse - >; + options: UploadFileParameters, + ): StreamableMethod; } -export interface AgentsDeleteFile { +export interface DeleteFile { /** Delete a previously uploaded file. */ delete( - options?: AgentsDeleteFileParameters, - ): StreamableMethod< - AgentsDeleteFile200Response | AgentsDeleteFileDefaultResponse - >; + options?: DeleteFileParameters, + ): StreamableMethod; /** Returns information about a specific file. Does not retrieve file content. */ get( - options?: AgentsGetFileParameters, - ): StreamableMethod; + options?: GetFileParameters, + ): StreamableMethod; } -export interface AgentsGetFileContent { - /** Returns information about a specific file. Does not retrieve file content. */ +export interface GetFileContent { + /** Retrieves the raw content of a specific file. */ get( - options?: AgentsGetFileContentParameters, + options?: GetFileContentParameters, ): StreamableMethod< - AgentsGetFileContent200Response | AgentsGetFileContentDefaultResponse + GetFileContent200Response | GetFileContentDefaultResponse >; } -export interface AgentsListVectorStores { +export interface ListVectorStores { /** Returns a list of vector stores. */ get( - options?: AgentsListVectorStoresParameters, + options?: ListVectorStoresParameters, ): StreamableMethod< - AgentsListVectorStores200Response | AgentsListVectorStoresDefaultResponse + ListVectorStores200Response | ListVectorStoresDefaultResponse >; /** Creates a vector store. */ post( - options: AgentsCreateVectorStoreParameters, + options: CreateVectorStoreParameters, ): StreamableMethod< - AgentsCreateVectorStore200Response | AgentsCreateVectorStoreDefaultResponse + CreateVectorStore200Response | CreateVectorStoreDefaultResponse >; } -export interface AgentsGetVectorStore { +export interface GetVectorStore { /** Returns the vector store object matching the specified ID. */ get( - options?: AgentsGetVectorStoreParameters, + options?: GetVectorStoreParameters, ): StreamableMethod< - AgentsGetVectorStore200Response | AgentsGetVectorStoreDefaultResponse + GetVectorStore200Response | GetVectorStoreDefaultResponse >; /** The ID of the vector store to modify. */ post( - options: AgentsModifyVectorStoreParameters, + options: ModifyVectorStoreParameters, ): StreamableMethod< - AgentsModifyVectorStore200Response | AgentsModifyVectorStoreDefaultResponse + ModifyVectorStore200Response | ModifyVectorStoreDefaultResponse >; /** Deletes the vector store object matching the specified ID. */ delete( - options?: AgentsDeleteVectorStoreParameters, + options?: DeleteVectorStoreParameters, ): StreamableMethod< - AgentsDeleteVectorStore200Response | AgentsDeleteVectorStoreDefaultResponse + DeleteVectorStore200Response | DeleteVectorStoreDefaultResponse >; } -export interface AgentsListVectorStoreFiles { +export interface ListVectorStoreFiles { /** Returns a list of vector store files. */ get( - options?: AgentsListVectorStoreFilesParameters, + options?: ListVectorStoreFilesParameters, ): StreamableMethod< - | AgentsListVectorStoreFiles200Response - | AgentsListVectorStoreFilesDefaultResponse + ListVectorStoreFiles200Response | ListVectorStoreFilesDefaultResponse >; /** Create a vector store file by attaching a file to a vector store. */ post( - options: AgentsCreateVectorStoreFileParameters, + options: CreateVectorStoreFileParameters, ): StreamableMethod< - | AgentsCreateVectorStoreFile200Response - | AgentsCreateVectorStoreFileDefaultResponse + CreateVectorStoreFile200Response | CreateVectorStoreFileDefaultResponse >; } -export interface AgentsGetVectorStoreFile { +export interface GetVectorStoreFile { /** Retrieves a vector store file. */ get( - options?: AgentsGetVectorStoreFileParameters, + options?: GetVectorStoreFileParameters, ): StreamableMethod< - | AgentsGetVectorStoreFile200Response - | AgentsGetVectorStoreFileDefaultResponse + GetVectorStoreFile200Response | GetVectorStoreFileDefaultResponse >; /** * Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. * To delete the file, use the delete file endpoint. */ delete( - options?: AgentsDeleteVectorStoreFileParameters, + options?: DeleteVectorStoreFileParameters, ): StreamableMethod< - | AgentsDeleteVectorStoreFile200Response - | AgentsDeleteVectorStoreFileDefaultResponse + DeleteVectorStoreFile200Response | DeleteVectorStoreFileDefaultResponse >; } -export interface AgentsCreateVectorStoreFileBatch { +export interface CreateVectorStoreFileBatch { /** Create a vector store file batch. */ post( - options: AgentsCreateVectorStoreFileBatchParameters, + options: CreateVectorStoreFileBatchParameters, ): StreamableMethod< - | AgentsCreateVectorStoreFileBatch200Response - | AgentsCreateVectorStoreFileBatchDefaultResponse + | CreateVectorStoreFileBatch200Response + | CreateVectorStoreFileBatchDefaultResponse >; } -export interface AgentsGetVectorStoreFileBatch { +export interface GetVectorStoreFileBatch { /** Retrieve a vector store file batch. */ get( - options?: AgentsGetVectorStoreFileBatchParameters, + options?: GetVectorStoreFileBatchParameters, ): StreamableMethod< - | AgentsGetVectorStoreFileBatch200Response - | AgentsGetVectorStoreFileBatchDefaultResponse + GetVectorStoreFileBatch200Response | GetVectorStoreFileBatchDefaultResponse >; } -export interface AgentsCancelVectorStoreFileBatch { +export interface CancelVectorStoreFileBatch { /** Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. */ post( - options?: AgentsCancelVectorStoreFileBatchParameters, + options?: CancelVectorStoreFileBatchParameters, ): StreamableMethod< - | AgentsCancelVectorStoreFileBatch200Response - | AgentsCancelVectorStoreFileBatchDefaultResponse + | CancelVectorStoreFileBatch200Response + | CancelVectorStoreFileBatchDefaultResponse >; } -export interface AgentsListVectorStoreFileBatchFiles { +export interface ListVectorStoreFileBatchFiles { /** Returns a list of vector store files in a batch. */ get( - options?: AgentsListVectorStoreFileBatchFilesParameters, + options?: ListVectorStoreFileBatchFilesParameters, ): StreamableMethod< - | AgentsListVectorStoreFileBatchFiles200Response - | AgentsListVectorStoreFileBatchFilesDefaultResponse + | ListVectorStoreFileBatchFiles200Response + | ListVectorStoreFileBatchFilesDefaultResponse >; } -export interface ConnectionsList { +export interface GetWorkspace { + /** Gets the properties of the specified machine learning workspace. */ + get( + options?: GetWorkspaceParameters, + ): StreamableMethod; +} + +export interface ListConnections { /** List the details of all the connections (not including their credentials) */ get( - options?: ConnectionsListParameters, + options?: ListConnectionsParameters, ): StreamableMethod< - ConnectionsList200Response | ConnectionsListDefaultResponse + ListConnections200Response | ListConnectionsDefaultResponse >; } -export interface ConnectionsGet { +export interface GetConnection { /** Get the details of a single connection, without credentials. */ get( - options?: ConnectionsGetParameters, - ): StreamableMethod< - ConnectionsGet200Response | ConnectionsGetDefaultResponse - >; + options?: GetConnectionParameters, + ): StreamableMethod; } -export interface ConnectionsListSecrets { +export interface GetConnectionWithSecrets { /** Get the details of a single connection, including credentials (if available). */ post( - options: ConnectionsListSecretsParameters, + options: GetConnectionWithSecretsParameters, ): StreamableMethod< - ConnectionsListSecrets200Response | ConnectionsListSecretsDefaultResponse + | GetConnectionWithSecrets200Response + | GetConnectionWithSecretsDefaultResponse >; } -export interface EvaluationsGet { - /** Resource read operation template. */ +export interface GetAppInsights { + /** Gets the properties of the specified Application Insights resource */ get( - options?: EvaluationsGetParameters, + options?: GetAppInsightsParameters, ): StreamableMethod< - EvaluationsGet200Response | EvaluationsGetDefaultResponse + GetAppInsights200Response | GetAppInsightsDefaultResponse >; +} + +export interface Get { + /** Resource read operation template. */ + get( + options?: GetParameters, + ): StreamableMethod; /** Resource update operation template. */ patch( - options: EvaluationsUpdateParameters, - ): StreamableMethod< - EvaluationsUpdate200Response | EvaluationsUpdateDefaultResponse - >; + options: UpdateParameters, + ): StreamableMethod; } -export interface EvaluationsCreate { +export interface Create { /** Run the evaluation. */ - post( - options: EvaluationsCreateParameters, - ): StreamableMethod; + post(options: CreateParameters): StreamableMethod; } -export interface EvaluationsList { +export interface List { /** Resource list operation template. */ get( - options?: EvaluationsListParameters, - ): StreamableMethod< - EvaluationsList200Response | EvaluationsListDefaultResponse - >; + options?: ListParameters, + ): StreamableMethod; } -export interface EvaluationsGetSchedule { +export interface GetSchedule { /** Resource read operation template. */ get( - options?: EvaluationsGetScheduleParameters, - ): StreamableMethod< - EvaluationsGetSchedule200Response | EvaluationsGetScheduleDefaultResponse - >; + options?: GetScheduleParameters, + ): StreamableMethod; /** Create or replace operation template. */ put( - options: EvaluationsCreateOrReplaceScheduleParameters, + options: CreateOrReplaceScheduleParameters, ): StreamableMethod< - | EvaluationsCreateOrReplaceSchedule200Response - | EvaluationsCreateOrReplaceSchedule201Response - | EvaluationsCreateOrReplaceScheduleDefaultResponse - >; - /** Resource delete operation template. */ - delete( - options?: EvaluationsDeleteScheduleParameters, - ): StreamableMethod< - | EvaluationsDeleteSchedule204Response - | EvaluationsDeleteScheduleDefaultResponse + | CreateOrReplaceSchedule200Response + | CreateOrReplaceSchedule201Response + | CreateOrReplaceScheduleDefaultResponse >; } -export interface EvaluationsListSchedule { +export interface ListSchedule { /** Resource list operation template. */ get( - options?: EvaluationsListScheduleParameters, + options?: ListScheduleParameters, + ): StreamableMethod; +} + +export interface DisableSchedule { + /** Disable the evaluation schedule. */ + patch( + options?: DisableScheduleParameters, ): StreamableMethod< - EvaluationsListSchedule200Response | EvaluationsListScheduleDefaultResponse + DisableSchedule204Response | DisableScheduleDefaultResponse >; } export interface Routes { /** Resource for '/assistants' has methods for the following verbs: post, get */ - (path: "/assistants"): AgentsCreateAgent; + (path: "/assistants"): CreateAgent; /** Resource for '/assistants/\{assistantId\}' has methods for the following verbs: get, post, delete */ - (path: "/assistants/{assistantId}", assistantId: string): AgentsGetAgent; + (path: "/assistants/{assistantId}", assistantId: string): GetAgent; /** Resource for '/threads' has methods for the following verbs: post */ - (path: "/threads"): AgentsCreateThread; + (path: "/threads"): CreateThread; /** Resource for '/threads/\{threadId\}' has methods for the following verbs: get, post, delete */ - (path: "/threads/{threadId}", threadId: string): AgentsGetThread; + (path: "/threads/{threadId}", threadId: string): GetThread; /** Resource for '/threads/\{threadId\}/messages' has methods for the following verbs: post, get */ - (path: "/threads/{threadId}/messages", threadId: string): AgentsCreateMessage; + (path: "/threads/{threadId}/messages", threadId: string): CreateMessage; /** Resource for '/threads/\{threadId\}/messages/\{messageId\}' has methods for the following verbs: get, post */ ( path: "/threads/{threadId}/messages/{messageId}", threadId: string, messageId: string, - ): AgentsGetMessage; + ): GetMessage; /** Resource for '/threads/\{threadId\}/runs' has methods for the following verbs: post, get */ - (path: "/threads/{threadId}/runs", threadId: string): AgentsCreateRun; + (path: "/threads/{threadId}/runs", threadId: string): CreateRun; /** Resource for '/threads/\{threadId\}/runs/\{runId\}' has methods for the following verbs: get, post */ ( path: "/threads/{threadId}/runs/{runId}", threadId: string, runId: string, - ): AgentsGetRun; + ): GetRun; /** Resource for '/threads/\{threadId\}/runs/\{runId\}/submit_tool_outputs' has methods for the following verbs: post */ ( path: "/threads/{threadId}/runs/{runId}/submit_tool_outputs", threadId: string, runId: string, - ): AgentsSubmitToolOutputsToRun; + ): SubmitToolOutputsToRun; /** Resource for '/threads/\{threadId\}/runs/\{runId\}/cancel' has methods for the following verbs: post */ ( path: "/threads/{threadId}/runs/{runId}/cancel", threadId: string, runId: string, - ): AgentsCancelRun; + ): CancelRun; /** Resource for '/threads/runs' has methods for the following verbs: post */ - (path: "/threads/runs"): AgentsCreateThreadAndRun; + (path: "/threads/runs"): CreateThreadAndRun; /** Resource for '/threads/\{threadId\}/runs/\{runId\}/steps/\{stepId\}' has methods for the following verbs: get */ ( path: "/threads/{threadId}/runs/{runId}/steps/{stepId}", threadId: string, runId: string, stepId: string, - ): AgentsGetRunStep; + ): GetRunStep; /** Resource for '/threads/\{threadId\}/runs/\{runId\}/steps' has methods for the following verbs: get */ ( path: "/threads/{threadId}/runs/{runId}/steps", threadId: string, runId: string, - ): AgentsListRunSteps; + ): ListRunSteps; /** Resource for '/files' has methods for the following verbs: get, post */ - (path: "/files"): AgentsListFiles; + (path: "/files"): ListFiles; /** Resource for '/files/\{fileId\}' has methods for the following verbs: delete, get */ - (path: "/files/{fileId}", fileId: string): AgentsDeleteFile; + (path: "/files/{fileId}", fileId: string): DeleteFile; /** Resource for '/files/\{fileId\}/content' has methods for the following verbs: get */ - (path: "/files/{fileId}/content", fileId: string): AgentsGetFileContent; + (path: "/files/{fileId}/content", fileId: string): GetFileContent; /** Resource for '/vector_stores' has methods for the following verbs: get, post */ - (path: "/vector_stores"): AgentsListVectorStores; + (path: "/vector_stores"): ListVectorStores; /** Resource for '/vector_stores/\{vectorStoreId\}' has methods for the following verbs: get, post, delete */ ( path: "/vector_stores/{vectorStoreId}", vectorStoreId: string, - ): AgentsGetVectorStore; + ): GetVectorStore; /** Resource for '/vector_stores/\{vectorStoreId\}/files' has methods for the following verbs: get, post */ ( path: "/vector_stores/{vectorStoreId}/files", vectorStoreId: string, - ): AgentsListVectorStoreFiles; + ): ListVectorStoreFiles; /** Resource for '/vector_stores/\{vectorStoreId\}/files/\{fileId\}' has methods for the following verbs: get, delete */ ( path: "/vector_stores/{vectorStoreId}/files/{fileId}", vectorStoreId: string, fileId: string, - ): AgentsGetVectorStoreFile; + ): GetVectorStoreFile; /** Resource for '/vector_stores/\{vectorStoreId\}/file_batches' has methods for the following verbs: post */ ( path: "/vector_stores/{vectorStoreId}/file_batches", vectorStoreId: string, - ): AgentsCreateVectorStoreFileBatch; + ): CreateVectorStoreFileBatch; /** Resource for '/vector_stores/\{vectorStoreId\}/file_batches/\{batchId\}' has methods for the following verbs: get */ ( path: "/vector_stores/{vectorStoreId}/file_batches/{batchId}", vectorStoreId: string, batchId: string, - ): AgentsGetVectorStoreFileBatch; + ): GetVectorStoreFileBatch; /** Resource for '/vector_stores/\{vectorStoreId\}/file_batches/\{batchId\}/cancel' has methods for the following verbs: post */ ( path: "/vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel", vectorStoreId: string, batchId: string, - ): AgentsCancelVectorStoreFileBatch; + ): CancelVectorStoreFileBatch; /** Resource for '/vector_stores/\{vectorStoreId\}/file_batches/\{batchId\}/files' has methods for the following verbs: get */ ( path: "/vector_stores/{vectorStoreId}/file_batches/{batchId}/files", vectorStoreId: string, batchId: string, - ): AgentsListVectorStoreFileBatchFiles; + ): ListVectorStoreFileBatchFiles; + /** Resource for '/' has methods for the following verbs: get */ + (path: "/"): GetWorkspace; /** Resource for '/connections' has methods for the following verbs: get */ - (path: "/connections"): ConnectionsList; + (path: "/connections"): ListConnections; /** Resource for '/connections/\{connectionName\}' has methods for the following verbs: get */ ( path: "/connections/{connectionName}", connectionName: string, - ): ConnectionsGet; + ): GetConnection; /** Resource for '/connections/\{connectionName\}/listsecrets' has methods for the following verbs: post */ ( path: "/connections/{connectionName}/listsecrets", connectionName: string, - ): ConnectionsListSecrets; + ): GetConnectionWithSecrets; + /** Resource for '/\{appInsightsResourceUrl\}' has methods for the following verbs: get */ + ( + path: "/{appInsightsResourceUrl}", + appInsightsResourceUrl: string, + ): GetAppInsights; /** Resource for '/evaluations/runs/\{id\}' has methods for the following verbs: get, patch */ - (path: "/evaluations/runs/{id}", id: string): EvaluationsGet; + (path: "/evaluations/runs/{id}", id: string): Get; /** Resource for '/evaluations/runs:run' has methods for the following verbs: post */ - (path: "/evaluations/runs:run"): EvaluationsCreate; + (path: "/evaluations/runs:run"): Create; /** Resource for '/evaluations/runs' has methods for the following verbs: get */ - (path: "/evaluations/runs"): EvaluationsList; - /** Resource for '/evaluations/schedules/\{name\}' has methods for the following verbs: get, put, delete */ - (path: "/evaluations/schedules/{name}", name: string): EvaluationsGetSchedule; + (path: "/evaluations/runs"): List; + /** Resource for '/evaluations/schedules/\{name\}' has methods for the following verbs: get, put */ + (path: "/evaluations/schedules/{name}", name: string): GetSchedule; /** Resource for '/evaluations/schedules' has methods for the following verbs: get */ - (path: "/evaluations/schedules"): EvaluationsListSchedule; + (path: "/evaluations/schedules"): ListSchedule; + /** Resource for '/evaluations/schedules/\{name\}/disable' has methods for the following verbs: patch */ + ( + path: "/evaluations/schedules/{name}/disable", + name: string, + ): DisableSchedule; } export type ProjectsClient = Client & { diff --git a/sdk/ai/ai-projects/src/generated/src/isUnexpected.ts b/sdk/ai/ai-projects/src/generated/src/isUnexpected.ts index a849ba5eb71a..6f5865336149 100644 --- a/sdk/ai/ai-projects/src/generated/src/isUnexpected.ts +++ b/sdk/ai/ai-projects/src/generated/src/isUnexpected.ts @@ -2,107 +2,111 @@ // Licensed under the MIT License. import { - AgentsCreateAgent200Response, - AgentsCreateAgentDefaultResponse, - AgentsListAgents200Response, - AgentsListAgentsDefaultResponse, - AgentsGetAgent200Response, - AgentsGetAgentDefaultResponse, - AgentsUpdateAgent200Response, - AgentsUpdateAgentDefaultResponse, - AgentsDeleteAgent200Response, - AgentsDeleteAgentDefaultResponse, - AgentsCreateThread200Response, - AgentsCreateThreadDefaultResponse, - AgentsGetThread200Response, - AgentsGetThreadDefaultResponse, - AgentsUpdateThread200Response, - AgentsUpdateThreadDefaultResponse, - AgentsDeleteThread200Response, - AgentsDeleteThreadDefaultResponse, - AgentsCreateMessage200Response, - AgentsCreateMessageDefaultResponse, - AgentsListMessages200Response, - AgentsListMessagesDefaultResponse, - AgentsGetMessage200Response, - AgentsGetMessageDefaultResponse, - AgentsUpdateMessage200Response, - AgentsUpdateMessageDefaultResponse, - AgentsCreateRun200Response, - AgentsCreateRunDefaultResponse, - AgentsListRuns200Response, - AgentsListRunsDefaultResponse, - AgentsGetRun200Response, - AgentsGetRunDefaultResponse, - AgentsUpdateRun200Response, - AgentsUpdateRunDefaultResponse, - AgentsSubmitToolOutputsToRun200Response, - AgentsSubmitToolOutputsToRunDefaultResponse, - AgentsCancelRun200Response, - AgentsCancelRunDefaultResponse, - AgentsCreateThreadAndRun200Response, - AgentsCreateThreadAndRunDefaultResponse, - AgentsGetRunStep200Response, - AgentsGetRunStepDefaultResponse, - AgentsListRunSteps200Response, - AgentsListRunStepsDefaultResponse, - AgentsListFiles200Response, - AgentsListFilesDefaultResponse, - AgentsUploadFile200Response, - AgentsUploadFileDefaultResponse, - AgentsDeleteFile200Response, - AgentsDeleteFileDefaultResponse, - AgentsGetFile200Response, - AgentsGetFileDefaultResponse, - AgentsGetFileContent200Response, - AgentsGetFileContentDefaultResponse, - AgentsListVectorStores200Response, - AgentsListVectorStoresDefaultResponse, - AgentsCreateVectorStore200Response, - AgentsCreateVectorStoreDefaultResponse, - AgentsGetVectorStore200Response, - AgentsGetVectorStoreDefaultResponse, - AgentsModifyVectorStore200Response, - AgentsModifyVectorStoreDefaultResponse, - AgentsDeleteVectorStore200Response, - AgentsDeleteVectorStoreDefaultResponse, - AgentsListVectorStoreFiles200Response, - AgentsListVectorStoreFilesDefaultResponse, - AgentsCreateVectorStoreFile200Response, - AgentsCreateVectorStoreFileDefaultResponse, - AgentsGetVectorStoreFile200Response, - AgentsGetVectorStoreFileDefaultResponse, - AgentsDeleteVectorStoreFile200Response, - AgentsDeleteVectorStoreFileDefaultResponse, - AgentsCreateVectorStoreFileBatch200Response, - AgentsCreateVectorStoreFileBatchDefaultResponse, - AgentsGetVectorStoreFileBatch200Response, - AgentsGetVectorStoreFileBatchDefaultResponse, - AgentsCancelVectorStoreFileBatch200Response, - AgentsCancelVectorStoreFileBatchDefaultResponse, - AgentsListVectorStoreFileBatchFiles200Response, - AgentsListVectorStoreFileBatchFilesDefaultResponse, - ConnectionsList200Response, - ConnectionsListDefaultResponse, - ConnectionsGet200Response, - ConnectionsGetDefaultResponse, - ConnectionsListSecrets200Response, - ConnectionsListSecretsDefaultResponse, - EvaluationsGet200Response, - EvaluationsGetDefaultResponse, - EvaluationsUpdate200Response, - EvaluationsUpdateDefaultResponse, - EvaluationsList200Response, - EvaluationsListDefaultResponse, - EvaluationsGetSchedule200Response, - EvaluationsGetScheduleDefaultResponse, - EvaluationsCreateOrReplaceSchedule200Response, - EvaluationsCreateOrReplaceSchedule201Response, - EvaluationsCreateOrReplaceScheduleDefaultResponse, - EvaluationsDeleteSchedule204Response, - EvaluationsDeleteScheduleDefaultResponse, - EvaluationsListSchedule200Response, - EvaluationsListScheduleDefaultResponse, + CreateAgent200Response, + CreateAgentDefaultResponse, + ListAgents200Response, + ListAgentsDefaultResponse, + GetAgent200Response, + GetAgentDefaultResponse, + UpdateAgent200Response, + UpdateAgentDefaultResponse, + DeleteAgent200Response, + DeleteAgentDefaultResponse, + CreateThread200Response, + CreateThreadDefaultResponse, + GetThread200Response, + GetThreadDefaultResponse, + UpdateThread200Response, + UpdateThreadDefaultResponse, + DeleteThread200Response, + DeleteThreadDefaultResponse, + CreateMessage200Response, + CreateMessageDefaultResponse, + ListMessages200Response, + ListMessagesDefaultResponse, + GetMessage200Response, + GetMessageDefaultResponse, + UpdateMessage200Response, + UpdateMessageDefaultResponse, + CreateRun200Response, + CreateRunDefaultResponse, + ListRuns200Response, + ListRunsDefaultResponse, + GetRun200Response, + GetRunDefaultResponse, + UpdateRun200Response, + UpdateRunDefaultResponse, + SubmitToolOutputsToRun200Response, + SubmitToolOutputsToRunDefaultResponse, + CancelRun200Response, + CancelRunDefaultResponse, + CreateThreadAndRun200Response, + CreateThreadAndRunDefaultResponse, + GetRunStep200Response, + GetRunStepDefaultResponse, + ListRunSteps200Response, + ListRunStepsDefaultResponse, + ListFiles200Response, + ListFilesDefaultResponse, + UploadFile200Response, + UploadFileDefaultResponse, + DeleteFile200Response, + DeleteFileDefaultResponse, + GetFile200Response, + GetFileDefaultResponse, + GetFileContent200Response, + GetFileContentDefaultResponse, + ListVectorStores200Response, + ListVectorStoresDefaultResponse, + CreateVectorStore200Response, + CreateVectorStoreDefaultResponse, + GetVectorStore200Response, + GetVectorStoreDefaultResponse, + ModifyVectorStore200Response, + ModifyVectorStoreDefaultResponse, + DeleteVectorStore200Response, + DeleteVectorStoreDefaultResponse, + ListVectorStoreFiles200Response, + ListVectorStoreFilesDefaultResponse, + CreateVectorStoreFile200Response, + CreateVectorStoreFileDefaultResponse, + GetVectorStoreFile200Response, + GetVectorStoreFileDefaultResponse, + DeleteVectorStoreFile200Response, + DeleteVectorStoreFileDefaultResponse, + CreateVectorStoreFileBatch200Response, + CreateVectorStoreFileBatchDefaultResponse, + GetVectorStoreFileBatch200Response, + GetVectorStoreFileBatchDefaultResponse, + CancelVectorStoreFileBatch200Response, + CancelVectorStoreFileBatchDefaultResponse, + ListVectorStoreFileBatchFiles200Response, + ListVectorStoreFileBatchFilesDefaultResponse, + GetWorkspace200Response, + GetWorkspaceDefaultResponse, + ListConnections200Response, + ListConnectionsDefaultResponse, + GetConnection200Response, + GetConnectionDefaultResponse, + GetConnectionWithSecrets200Response, + GetConnectionWithSecretsDefaultResponse, + GetAppInsights200Response, + GetAppInsightsDefaultResponse, + Get200Response, + GetDefaultResponse, + Update200Response, + UpdateDefaultResponse, + List200Response, + ListDefaultResponse, + GetSchedule200Response, + GetScheduleDefaultResponse, + CreateOrReplaceSchedule200Response, + CreateOrReplaceSchedule201Response, + CreateOrReplaceScheduleDefaultResponse, + ListSchedule200Response, + ListScheduleDefaultResponse, + DisableSchedule204Response, + DisableScheduleDefaultResponse, } from "./responses.js"; const responseMap: Record = { @@ -146,366 +150,358 @@ const responseMap: Record = { "GET /vector_stores/{vectorStoreId}/file_batches/{batchId}": ["200"], "POST /vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel": ["200"], "GET /vector_stores/{vectorStoreId}/file_batches/{batchId}/files": ["200"], + "GET /": ["200"], "GET /connections": ["200"], "GET /connections/{connectionName}": ["200"], "POST /connections/{connectionName}/listsecrets": ["200"], + "GET /{appInsightsResourceUrl}": ["200"], "GET /evaluations/runs/{id}": ["200"], "PATCH /evaluations/runs/{id}": ["200"], "POST /evaluations/runs:run": ["201"], "GET /evaluations/runs": ["200"], "GET /evaluations/schedules/{name}": ["200"], "PUT /evaluations/schedules/{name}": ["200", "201"], - "DELETE /evaluations/schedules/{name}": ["204"], "GET /evaluations/schedules": ["200"], + "PATCH /evaluations/schedules/{name}/disable": ["204"], }; export function isUnexpected( - response: AgentsCreateAgent200Response | AgentsCreateAgentDefaultResponse, -): response is AgentsCreateAgentDefaultResponse; + response: CreateAgent200Response | CreateAgentDefaultResponse, +): response is CreateAgentDefaultResponse; export function isUnexpected( - response: AgentsListAgents200Response | AgentsListAgentsDefaultResponse, -): response is AgentsListAgentsDefaultResponse; + response: ListAgents200Response | ListAgentsDefaultResponse, +): response is ListAgentsDefaultResponse; export function isUnexpected( - response: AgentsGetAgent200Response | AgentsGetAgentDefaultResponse, -): response is AgentsGetAgentDefaultResponse; + response: GetAgent200Response | GetAgentDefaultResponse, +): response is GetAgentDefaultResponse; export function isUnexpected( - response: AgentsUpdateAgent200Response | AgentsUpdateAgentDefaultResponse, -): response is AgentsUpdateAgentDefaultResponse; + response: UpdateAgent200Response | UpdateAgentDefaultResponse, +): response is UpdateAgentDefaultResponse; export function isUnexpected( - response: AgentsDeleteAgent200Response | AgentsDeleteAgentDefaultResponse, -): response is AgentsDeleteAgentDefaultResponse; + response: DeleteAgent200Response | DeleteAgentDefaultResponse, +): response is DeleteAgentDefaultResponse; export function isUnexpected( - response: AgentsCreateThread200Response | AgentsCreateThreadDefaultResponse, -): response is AgentsCreateThreadDefaultResponse; + response: CreateThread200Response | CreateThreadDefaultResponse, +): response is CreateThreadDefaultResponse; export function isUnexpected( - response: AgentsGetThread200Response | AgentsGetThreadDefaultResponse, -): response is AgentsGetThreadDefaultResponse; + response: GetThread200Response | GetThreadDefaultResponse, +): response is GetThreadDefaultResponse; export function isUnexpected( - response: AgentsUpdateThread200Response | AgentsUpdateThreadDefaultResponse, -): response is AgentsUpdateThreadDefaultResponse; + response: UpdateThread200Response | UpdateThreadDefaultResponse, +): response is UpdateThreadDefaultResponse; export function isUnexpected( - response: AgentsDeleteThread200Response | AgentsDeleteThreadDefaultResponse, -): response is AgentsDeleteThreadDefaultResponse; + response: DeleteThread200Response | DeleteThreadDefaultResponse, +): response is DeleteThreadDefaultResponse; export function isUnexpected( - response: AgentsCreateMessage200Response | AgentsCreateMessageDefaultResponse, -): response is AgentsCreateMessageDefaultResponse; + response: CreateMessage200Response | CreateMessageDefaultResponse, +): response is CreateMessageDefaultResponse; export function isUnexpected( - response: AgentsListMessages200Response | AgentsListMessagesDefaultResponse, -): response is AgentsListMessagesDefaultResponse; + response: ListMessages200Response | ListMessagesDefaultResponse, +): response is ListMessagesDefaultResponse; export function isUnexpected( - response: AgentsGetMessage200Response | AgentsGetMessageDefaultResponse, -): response is AgentsGetMessageDefaultResponse; + response: GetMessage200Response | GetMessageDefaultResponse, +): response is GetMessageDefaultResponse; export function isUnexpected( - response: AgentsUpdateMessage200Response | AgentsUpdateMessageDefaultResponse, -): response is AgentsUpdateMessageDefaultResponse; + response: UpdateMessage200Response | UpdateMessageDefaultResponse, +): response is UpdateMessageDefaultResponse; export function isUnexpected( - response: AgentsCreateRun200Response | AgentsCreateRunDefaultResponse, -): response is AgentsCreateRunDefaultResponse; + response: CreateRun200Response | CreateRunDefaultResponse, +): response is CreateRunDefaultResponse; export function isUnexpected( - response: AgentsListRuns200Response | AgentsListRunsDefaultResponse, -): response is AgentsListRunsDefaultResponse; + response: ListRuns200Response | ListRunsDefaultResponse, +): response is ListRunsDefaultResponse; export function isUnexpected( - response: AgentsGetRun200Response | AgentsGetRunDefaultResponse, -): response is AgentsGetRunDefaultResponse; + response: GetRun200Response | GetRunDefaultResponse, +): response is GetRunDefaultResponse; export function isUnexpected( - response: AgentsUpdateRun200Response | AgentsUpdateRunDefaultResponse, -): response is AgentsUpdateRunDefaultResponse; + response: UpdateRun200Response | UpdateRunDefaultResponse, +): response is UpdateRunDefaultResponse; export function isUnexpected( response: - | AgentsSubmitToolOutputsToRun200Response - | AgentsSubmitToolOutputsToRunDefaultResponse, -): response is AgentsSubmitToolOutputsToRunDefaultResponse; + | SubmitToolOutputsToRun200Response + | SubmitToolOutputsToRunDefaultResponse, +): response is SubmitToolOutputsToRunDefaultResponse; export function isUnexpected( - response: AgentsCancelRun200Response | AgentsCancelRunDefaultResponse, -): response is AgentsCancelRunDefaultResponse; + response: CancelRun200Response | CancelRunDefaultResponse, +): response is CancelRunDefaultResponse; export function isUnexpected( - response: - | AgentsCreateThreadAndRun200Response - | AgentsCreateThreadAndRunDefaultResponse, -): response is AgentsCreateThreadAndRunDefaultResponse; + response: CreateThreadAndRun200Response | CreateThreadAndRunDefaultResponse, +): response is CreateThreadAndRunDefaultResponse; export function isUnexpected( - response: AgentsGetRunStep200Response | AgentsGetRunStepDefaultResponse, -): response is AgentsGetRunStepDefaultResponse; + response: GetRunStep200Response | GetRunStepDefaultResponse, +): response is GetRunStepDefaultResponse; export function isUnexpected( - response: AgentsListRunSteps200Response | AgentsListRunStepsDefaultResponse, -): response is AgentsListRunStepsDefaultResponse; + response: ListRunSteps200Response | ListRunStepsDefaultResponse, +): response is ListRunStepsDefaultResponse; export function isUnexpected( - response: AgentsListFiles200Response | AgentsListFilesDefaultResponse, -): response is AgentsListFilesDefaultResponse; + response: ListFiles200Response | ListFilesDefaultResponse, +): response is ListFilesDefaultResponse; export function isUnexpected( - response: AgentsUploadFile200Response | AgentsUploadFileDefaultResponse, -): response is AgentsUploadFileDefaultResponse; + response: UploadFile200Response | UploadFileDefaultResponse, +): response is UploadFileDefaultResponse; export function isUnexpected( - response: AgentsDeleteFile200Response | AgentsDeleteFileDefaultResponse, -): response is AgentsDeleteFileDefaultResponse; + response: DeleteFile200Response | DeleteFileDefaultResponse, +): response is DeleteFileDefaultResponse; export function isUnexpected( - response: AgentsGetFile200Response | AgentsGetFileDefaultResponse, -): response is AgentsGetFileDefaultResponse; + response: GetFile200Response | GetFileDefaultResponse, +): response is GetFileDefaultResponse; export function isUnexpected( - response: - | AgentsGetFileContent200Response - | AgentsGetFileContentDefaultResponse, -): response is AgentsGetFileContentDefaultResponse; + response: GetFileContent200Response | GetFileContentDefaultResponse, +): response is GetFileContentDefaultResponse; export function isUnexpected( - response: - | AgentsListVectorStores200Response - | AgentsListVectorStoresDefaultResponse, -): response is AgentsListVectorStoresDefaultResponse; + response: ListVectorStores200Response | ListVectorStoresDefaultResponse, +): response is ListVectorStoresDefaultResponse; export function isUnexpected( - response: - | AgentsCreateVectorStore200Response - | AgentsCreateVectorStoreDefaultResponse, -): response is AgentsCreateVectorStoreDefaultResponse; + response: CreateVectorStore200Response | CreateVectorStoreDefaultResponse, +): response is CreateVectorStoreDefaultResponse; export function isUnexpected( - response: - | AgentsGetVectorStore200Response - | AgentsGetVectorStoreDefaultResponse, -): response is AgentsGetVectorStoreDefaultResponse; + response: GetVectorStore200Response | GetVectorStoreDefaultResponse, +): response is GetVectorStoreDefaultResponse; export function isUnexpected( - response: - | AgentsModifyVectorStore200Response - | AgentsModifyVectorStoreDefaultResponse, -): response is AgentsModifyVectorStoreDefaultResponse; + response: ModifyVectorStore200Response | ModifyVectorStoreDefaultResponse, +): response is ModifyVectorStoreDefaultResponse; export function isUnexpected( - response: - | AgentsDeleteVectorStore200Response - | AgentsDeleteVectorStoreDefaultResponse, -): response is AgentsDeleteVectorStoreDefaultResponse; + response: DeleteVectorStore200Response | DeleteVectorStoreDefaultResponse, +): response is DeleteVectorStoreDefaultResponse; export function isUnexpected( response: - | AgentsListVectorStoreFiles200Response - | AgentsListVectorStoreFilesDefaultResponse, -): response is AgentsListVectorStoreFilesDefaultResponse; + | ListVectorStoreFiles200Response + | ListVectorStoreFilesDefaultResponse, +): response is ListVectorStoreFilesDefaultResponse; export function isUnexpected( response: - | AgentsCreateVectorStoreFile200Response - | AgentsCreateVectorStoreFileDefaultResponse, -): response is AgentsCreateVectorStoreFileDefaultResponse; + | CreateVectorStoreFile200Response + | CreateVectorStoreFileDefaultResponse, +): response is CreateVectorStoreFileDefaultResponse; export function isUnexpected( - response: - | AgentsGetVectorStoreFile200Response - | AgentsGetVectorStoreFileDefaultResponse, -): response is AgentsGetVectorStoreFileDefaultResponse; + response: GetVectorStoreFile200Response | GetVectorStoreFileDefaultResponse, +): response is GetVectorStoreFileDefaultResponse; export function isUnexpected( response: - | AgentsDeleteVectorStoreFile200Response - | AgentsDeleteVectorStoreFileDefaultResponse, -): response is AgentsDeleteVectorStoreFileDefaultResponse; + | DeleteVectorStoreFile200Response + | DeleteVectorStoreFileDefaultResponse, +): response is DeleteVectorStoreFileDefaultResponse; export function isUnexpected( response: - | AgentsCreateVectorStoreFileBatch200Response - | AgentsCreateVectorStoreFileBatchDefaultResponse, -): response is AgentsCreateVectorStoreFileBatchDefaultResponse; + | CreateVectorStoreFileBatch200Response + | CreateVectorStoreFileBatchDefaultResponse, +): response is CreateVectorStoreFileBatchDefaultResponse; export function isUnexpected( response: - | AgentsGetVectorStoreFileBatch200Response - | AgentsGetVectorStoreFileBatchDefaultResponse, -): response is AgentsGetVectorStoreFileBatchDefaultResponse; + | GetVectorStoreFileBatch200Response + | GetVectorStoreFileBatchDefaultResponse, +): response is GetVectorStoreFileBatchDefaultResponse; export function isUnexpected( response: - | AgentsCancelVectorStoreFileBatch200Response - | AgentsCancelVectorStoreFileBatchDefaultResponse, -): response is AgentsCancelVectorStoreFileBatchDefaultResponse; + | CancelVectorStoreFileBatch200Response + | CancelVectorStoreFileBatchDefaultResponse, +): response is CancelVectorStoreFileBatchDefaultResponse; export function isUnexpected( response: - | AgentsListVectorStoreFileBatchFiles200Response - | AgentsListVectorStoreFileBatchFilesDefaultResponse, -): response is AgentsListVectorStoreFileBatchFilesDefaultResponse; + | ListVectorStoreFileBatchFiles200Response + | ListVectorStoreFileBatchFilesDefaultResponse, +): response is ListVectorStoreFileBatchFilesDefaultResponse; +export function isUnexpected( + response: GetWorkspace200Response | GetWorkspaceDefaultResponse, +): response is GetWorkspaceDefaultResponse; export function isUnexpected( - response: ConnectionsList200Response | ConnectionsListDefaultResponse, -): response is ConnectionsListDefaultResponse; + response: ListConnections200Response | ListConnectionsDefaultResponse, +): response is ListConnectionsDefaultResponse; export function isUnexpected( - response: ConnectionsGet200Response | ConnectionsGetDefaultResponse, -): response is ConnectionsGetDefaultResponse; + response: GetConnection200Response | GetConnectionDefaultResponse, +): response is GetConnectionDefaultResponse; export function isUnexpected( response: - | ConnectionsListSecrets200Response - | ConnectionsListSecretsDefaultResponse, -): response is ConnectionsListSecretsDefaultResponse; + | GetConnectionWithSecrets200Response + | GetConnectionWithSecretsDefaultResponse, +): response is GetConnectionWithSecretsDefaultResponse; export function isUnexpected( - response: EvaluationsGet200Response | EvaluationsGetDefaultResponse, -): response is EvaluationsGetDefaultResponse; + response: GetAppInsights200Response | GetAppInsightsDefaultResponse, +): response is GetAppInsightsDefaultResponse; export function isUnexpected( - response: EvaluationsUpdate200Response | EvaluationsUpdateDefaultResponse, -): response is EvaluationsUpdateDefaultResponse; + response: Get200Response | GetDefaultResponse, +): response is GetDefaultResponse; export function isUnexpected( - response: EvaluationsList200Response | EvaluationsListDefaultResponse, -): response is EvaluationsListDefaultResponse; + response: Update200Response | UpdateDefaultResponse, +): response is UpdateDefaultResponse; export function isUnexpected( - response: - | EvaluationsGetSchedule200Response - | EvaluationsGetScheduleDefaultResponse, -): response is EvaluationsGetScheduleDefaultResponse; + response: List200Response | ListDefaultResponse, +): response is ListDefaultResponse; export function isUnexpected( - response: - | EvaluationsCreateOrReplaceSchedule200Response - | EvaluationsCreateOrReplaceSchedule201Response - | EvaluationsCreateOrReplaceScheduleDefaultResponse, -): response is EvaluationsCreateOrReplaceScheduleDefaultResponse; + response: GetSchedule200Response | GetScheduleDefaultResponse, +): response is GetScheduleDefaultResponse; export function isUnexpected( response: - | EvaluationsDeleteSchedule204Response - | EvaluationsDeleteScheduleDefaultResponse, -): response is EvaluationsDeleteScheduleDefaultResponse; + | CreateOrReplaceSchedule200Response + | CreateOrReplaceSchedule201Response + | CreateOrReplaceScheduleDefaultResponse, +): response is CreateOrReplaceScheduleDefaultResponse; export function isUnexpected( - response: - | EvaluationsListSchedule200Response - | EvaluationsListScheduleDefaultResponse, -): response is EvaluationsListScheduleDefaultResponse; + response: ListSchedule200Response | ListScheduleDefaultResponse, +): response is ListScheduleDefaultResponse; +export function isUnexpected( + response: DisableSchedule204Response | DisableScheduleDefaultResponse, +): response is DisableScheduleDefaultResponse; export function isUnexpected( response: - | AgentsCreateAgent200Response - | AgentsCreateAgentDefaultResponse - | AgentsListAgents200Response - | AgentsListAgentsDefaultResponse - | AgentsGetAgent200Response - | AgentsGetAgentDefaultResponse - | AgentsUpdateAgent200Response - | AgentsUpdateAgentDefaultResponse - | AgentsDeleteAgent200Response - | AgentsDeleteAgentDefaultResponse - | AgentsCreateThread200Response - | AgentsCreateThreadDefaultResponse - | AgentsGetThread200Response - | AgentsGetThreadDefaultResponse - | AgentsUpdateThread200Response - | AgentsUpdateThreadDefaultResponse - | AgentsDeleteThread200Response - | AgentsDeleteThreadDefaultResponse - | AgentsCreateMessage200Response - | AgentsCreateMessageDefaultResponse - | AgentsListMessages200Response - | AgentsListMessagesDefaultResponse - | AgentsGetMessage200Response - | AgentsGetMessageDefaultResponse - | AgentsUpdateMessage200Response - | AgentsUpdateMessageDefaultResponse - | AgentsCreateRun200Response - | AgentsCreateRunDefaultResponse - | AgentsListRuns200Response - | AgentsListRunsDefaultResponse - | AgentsGetRun200Response - | AgentsGetRunDefaultResponse - | AgentsUpdateRun200Response - | AgentsUpdateRunDefaultResponse - | AgentsSubmitToolOutputsToRun200Response - | AgentsSubmitToolOutputsToRunDefaultResponse - | AgentsCancelRun200Response - | AgentsCancelRunDefaultResponse - | AgentsCreateThreadAndRun200Response - | AgentsCreateThreadAndRunDefaultResponse - | AgentsGetRunStep200Response - | AgentsGetRunStepDefaultResponse - | AgentsListRunSteps200Response - | AgentsListRunStepsDefaultResponse - | AgentsListFiles200Response - | AgentsListFilesDefaultResponse - | AgentsUploadFile200Response - | AgentsUploadFileDefaultResponse - | AgentsDeleteFile200Response - | AgentsDeleteFileDefaultResponse - | AgentsGetFile200Response - | AgentsGetFileDefaultResponse - | AgentsGetFileContent200Response - | AgentsGetFileContentDefaultResponse - | AgentsListVectorStores200Response - | AgentsListVectorStoresDefaultResponse - | AgentsCreateVectorStore200Response - | AgentsCreateVectorStoreDefaultResponse - | AgentsGetVectorStore200Response - | AgentsGetVectorStoreDefaultResponse - | AgentsModifyVectorStore200Response - | AgentsModifyVectorStoreDefaultResponse - | AgentsDeleteVectorStore200Response - | AgentsDeleteVectorStoreDefaultResponse - | AgentsListVectorStoreFiles200Response - | AgentsListVectorStoreFilesDefaultResponse - | AgentsCreateVectorStoreFile200Response - | AgentsCreateVectorStoreFileDefaultResponse - | AgentsGetVectorStoreFile200Response - | AgentsGetVectorStoreFileDefaultResponse - | AgentsDeleteVectorStoreFile200Response - | AgentsDeleteVectorStoreFileDefaultResponse - | AgentsCreateVectorStoreFileBatch200Response - | AgentsCreateVectorStoreFileBatchDefaultResponse - | AgentsGetVectorStoreFileBatch200Response - | AgentsGetVectorStoreFileBatchDefaultResponse - | AgentsCancelVectorStoreFileBatch200Response - | AgentsCancelVectorStoreFileBatchDefaultResponse - | AgentsListVectorStoreFileBatchFiles200Response - | AgentsListVectorStoreFileBatchFilesDefaultResponse - | ConnectionsList200Response - | ConnectionsListDefaultResponse - | ConnectionsGet200Response - | ConnectionsGetDefaultResponse - | ConnectionsListSecrets200Response - | ConnectionsListSecretsDefaultResponse - | EvaluationsGet200Response - | EvaluationsGetDefaultResponse - | EvaluationsUpdate200Response - | EvaluationsUpdateDefaultResponse - | EvaluationsList200Response - | EvaluationsListDefaultResponse - | EvaluationsGetSchedule200Response - | EvaluationsGetScheduleDefaultResponse - | EvaluationsCreateOrReplaceSchedule200Response - | EvaluationsCreateOrReplaceSchedule201Response - | EvaluationsCreateOrReplaceScheduleDefaultResponse - | EvaluationsDeleteSchedule204Response - | EvaluationsDeleteScheduleDefaultResponse - | EvaluationsListSchedule200Response - | EvaluationsListScheduleDefaultResponse, + | CreateAgent200Response + | CreateAgentDefaultResponse + | ListAgents200Response + | ListAgentsDefaultResponse + | GetAgent200Response + | GetAgentDefaultResponse + | UpdateAgent200Response + | UpdateAgentDefaultResponse + | DeleteAgent200Response + | DeleteAgentDefaultResponse + | CreateThread200Response + | CreateThreadDefaultResponse + | GetThread200Response + | GetThreadDefaultResponse + | UpdateThread200Response + | UpdateThreadDefaultResponse + | DeleteThread200Response + | DeleteThreadDefaultResponse + | CreateMessage200Response + | CreateMessageDefaultResponse + | ListMessages200Response + | ListMessagesDefaultResponse + | GetMessage200Response + | GetMessageDefaultResponse + | UpdateMessage200Response + | UpdateMessageDefaultResponse + | CreateRun200Response + | CreateRunDefaultResponse + | ListRuns200Response + | ListRunsDefaultResponse + | GetRun200Response + | GetRunDefaultResponse + | UpdateRun200Response + | UpdateRunDefaultResponse + | SubmitToolOutputsToRun200Response + | SubmitToolOutputsToRunDefaultResponse + | CancelRun200Response + | CancelRunDefaultResponse + | CreateThreadAndRun200Response + | CreateThreadAndRunDefaultResponse + | GetRunStep200Response + | GetRunStepDefaultResponse + | ListRunSteps200Response + | ListRunStepsDefaultResponse + | ListFiles200Response + | ListFilesDefaultResponse + | UploadFile200Response + | UploadFileDefaultResponse + | DeleteFile200Response + | DeleteFileDefaultResponse + | GetFile200Response + | GetFileDefaultResponse + | GetFileContent200Response + | GetFileContentDefaultResponse + | ListVectorStores200Response + | ListVectorStoresDefaultResponse + | CreateVectorStore200Response + | CreateVectorStoreDefaultResponse + | GetVectorStore200Response + | GetVectorStoreDefaultResponse + | ModifyVectorStore200Response + | ModifyVectorStoreDefaultResponse + | DeleteVectorStore200Response + | DeleteVectorStoreDefaultResponse + | ListVectorStoreFiles200Response + | ListVectorStoreFilesDefaultResponse + | CreateVectorStoreFile200Response + | CreateVectorStoreFileDefaultResponse + | GetVectorStoreFile200Response + | GetVectorStoreFileDefaultResponse + | DeleteVectorStoreFile200Response + | DeleteVectorStoreFileDefaultResponse + | CreateVectorStoreFileBatch200Response + | CreateVectorStoreFileBatchDefaultResponse + | GetVectorStoreFileBatch200Response + | GetVectorStoreFileBatchDefaultResponse + | CancelVectorStoreFileBatch200Response + | CancelVectorStoreFileBatchDefaultResponse + | ListVectorStoreFileBatchFiles200Response + | ListVectorStoreFileBatchFilesDefaultResponse + | GetWorkspace200Response + | GetWorkspaceDefaultResponse + | ListConnections200Response + | ListConnectionsDefaultResponse + | GetConnection200Response + | GetConnectionDefaultResponse + | GetConnectionWithSecrets200Response + | GetConnectionWithSecretsDefaultResponse + | GetAppInsights200Response + | GetAppInsightsDefaultResponse + | Get200Response + | GetDefaultResponse + | Update200Response + | UpdateDefaultResponse + | List200Response + | ListDefaultResponse + | GetSchedule200Response + | GetScheduleDefaultResponse + | CreateOrReplaceSchedule200Response + | CreateOrReplaceSchedule201Response + | CreateOrReplaceScheduleDefaultResponse + | ListSchedule200Response + | ListScheduleDefaultResponse + | DisableSchedule204Response + | DisableScheduleDefaultResponse, ): response is - | AgentsCreateAgentDefaultResponse - | AgentsListAgentsDefaultResponse - | AgentsGetAgentDefaultResponse - | AgentsUpdateAgentDefaultResponse - | AgentsDeleteAgentDefaultResponse - | AgentsCreateThreadDefaultResponse - | AgentsGetThreadDefaultResponse - | AgentsUpdateThreadDefaultResponse - | AgentsDeleteThreadDefaultResponse - | AgentsCreateMessageDefaultResponse - | AgentsListMessagesDefaultResponse - | AgentsGetMessageDefaultResponse - | AgentsUpdateMessageDefaultResponse - | AgentsCreateRunDefaultResponse - | AgentsListRunsDefaultResponse - | AgentsGetRunDefaultResponse - | AgentsUpdateRunDefaultResponse - | AgentsSubmitToolOutputsToRunDefaultResponse - | AgentsCancelRunDefaultResponse - | AgentsCreateThreadAndRunDefaultResponse - | AgentsGetRunStepDefaultResponse - | AgentsListRunStepsDefaultResponse - | AgentsListFilesDefaultResponse - | AgentsUploadFileDefaultResponse - | AgentsDeleteFileDefaultResponse - | AgentsGetFileDefaultResponse - | AgentsGetFileContentDefaultResponse - | AgentsListVectorStoresDefaultResponse - | AgentsCreateVectorStoreDefaultResponse - | AgentsGetVectorStoreDefaultResponse - | AgentsModifyVectorStoreDefaultResponse - | AgentsDeleteVectorStoreDefaultResponse - | AgentsListVectorStoreFilesDefaultResponse - | AgentsCreateVectorStoreFileDefaultResponse - | AgentsGetVectorStoreFileDefaultResponse - | AgentsDeleteVectorStoreFileDefaultResponse - | AgentsCreateVectorStoreFileBatchDefaultResponse - | AgentsGetVectorStoreFileBatchDefaultResponse - | AgentsCancelVectorStoreFileBatchDefaultResponse - | AgentsListVectorStoreFileBatchFilesDefaultResponse - | ConnectionsListDefaultResponse - | ConnectionsGetDefaultResponse - | ConnectionsListSecretsDefaultResponse - | EvaluationsGetDefaultResponse - | EvaluationsUpdateDefaultResponse - | EvaluationsListDefaultResponse - | EvaluationsGetScheduleDefaultResponse - | EvaluationsCreateOrReplaceScheduleDefaultResponse - | EvaluationsDeleteScheduleDefaultResponse - | EvaluationsListScheduleDefaultResponse { + | CreateAgentDefaultResponse + | ListAgentsDefaultResponse + | GetAgentDefaultResponse + | UpdateAgentDefaultResponse + | DeleteAgentDefaultResponse + | CreateThreadDefaultResponse + | GetThreadDefaultResponse + | UpdateThreadDefaultResponse + | DeleteThreadDefaultResponse + | CreateMessageDefaultResponse + | ListMessagesDefaultResponse + | GetMessageDefaultResponse + | UpdateMessageDefaultResponse + | CreateRunDefaultResponse + | ListRunsDefaultResponse + | GetRunDefaultResponse + | UpdateRunDefaultResponse + | SubmitToolOutputsToRunDefaultResponse + | CancelRunDefaultResponse + | CreateThreadAndRunDefaultResponse + | GetRunStepDefaultResponse + | ListRunStepsDefaultResponse + | ListFilesDefaultResponse + | UploadFileDefaultResponse + | DeleteFileDefaultResponse + | GetFileDefaultResponse + | GetFileContentDefaultResponse + | ListVectorStoresDefaultResponse + | CreateVectorStoreDefaultResponse + | GetVectorStoreDefaultResponse + | ModifyVectorStoreDefaultResponse + | DeleteVectorStoreDefaultResponse + | ListVectorStoreFilesDefaultResponse + | CreateVectorStoreFileDefaultResponse + | GetVectorStoreFileDefaultResponse + | DeleteVectorStoreFileDefaultResponse + | CreateVectorStoreFileBatchDefaultResponse + | GetVectorStoreFileBatchDefaultResponse + | CancelVectorStoreFileBatchDefaultResponse + | ListVectorStoreFileBatchFilesDefaultResponse + | GetWorkspaceDefaultResponse + | ListConnectionsDefaultResponse + | GetConnectionDefaultResponse + | GetConnectionWithSecretsDefaultResponse + | GetAppInsightsDefaultResponse + | GetDefaultResponse + | UpdateDefaultResponse + | ListDefaultResponse + | GetScheduleDefaultResponse + | CreateOrReplaceScheduleDefaultResponse + | ListScheduleDefaultResponse + | DisableScheduleDefaultResponse { const lroOriginal = response.headers["x-ms-original-url"]; const url = new URL(lroOriginal ?? response.request.url); const method = response.request.method; diff --git a/sdk/ai/ai-projects/src/generated/src/models.ts b/sdk/ai/ai-projects/src/generated/src/models.ts index 3068b685da7b..fed351a4af0a 100644 --- a/sdk/ai/ai-projects/src/generated/src/models.ts +++ b/sdk/ai/ai-projects/src/generated/src/models.ts @@ -87,18 +87,39 @@ export interface FunctionDefinition { export interface BingGroundingToolDefinition extends ToolDefinitionParent { /** The object type, which is always 'bing_grounding'. */ type: "bing_grounding"; + /** The list of connections used by the bing grounding tool. */ + bing_grounding: ToolConnectionList; +} + +/** A set of connection resources currently used by either the `bing_grounding`, `microsoft_fabric`, or `sharepoint_grounding` tools. */ +export interface ToolConnectionList { + /** + * The connections attached to this tool. There can be a maximum of 1 connection + * resource attached to the tool. + */ + connections?: Array; +} + +/** A connection resource. */ +export interface ToolConnection { + /** A connection in a ToolConnectionList attached to this tool. */ + connection_id: string; } /** The input definition information for a Microsoft Fabric tool as used to configure an agent. */ export interface MicrosoftFabricToolDefinition extends ToolDefinitionParent { /** The object type, which is always 'microsoft_fabric'. */ type: "microsoft_fabric"; + /** The list of connections used by the Microsoft Fabric tool. */ + microsoft_fabric: ToolConnectionList; } /** The input definition information for a sharepoint tool as used to configure an agent. */ export interface SharepointToolDefinition extends ToolDefinitionParent { - /** The object type, which is always 'sharepoint'. */ - type: "sharepoint"; + /** The object type, which is always 'sharepoint_grounding'. */ + type: "sharepoint_grounding"; + /** The list of connections used by the SharePoint tool. */ + sharepoint_grounding: ToolConnectionList; } /** The input definition information for an Azure AI search tool as used to configure an agent. */ @@ -117,12 +138,6 @@ export interface ToolResources { code_interpreter?: CodeInterpreterToolResource; /** Resources to be used by the `file_search` tool consisting of vector store IDs. */ file_search?: FileSearchToolResource; - /** Resources to be used by the `bing_grounding` tool consisting of connection IDs. */ - bing_grounding?: ConnectionListResource; - /** Resources to be used by the `microsoft_fabric` tool consisting of connection IDs. */ - microsoft_fabric?: ConnectionListResource; - /** Resources to be used by the `sharepoint` tool consisting of connection IDs. */ - sharepoint?: ConnectionListResource; /** Resources to be used by the `azure_ai_search` tool consisting of index IDs and names. */ azure_ai_search?: AzureAISearchResource; } @@ -145,21 +160,6 @@ export interface FileSearchToolResource { vector_store_ids?: string[]; } -/** A set of connection resources currently used by either the `bing_grounding`, `microsoft_fabric`, or `sharepoint` tools. */ -export interface ConnectionListResource { - /** - * The connections attached to this agent. There can be a maximum of 1 connection - * resource attached to the agent. - */ - connections?: Array; -} - -/** A connection resource. */ -export interface ConnectionResource { - /** A connection in a ConnectionListResource attached to this agent. */ - connection_id: string; -} - /** A set of index resources used by the `azure_ai_search` tool. */ export interface AzureAISearchResource { /** @@ -243,9 +243,11 @@ export interface AgentThreadCreationOptions { export interface ThreadMessageOptions { /** * The role of the entity that is creating the message. Allowed values include: - * - `user`: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages. - * - `assistant`: Indicates the message is generated by the agent. Use this value to insert messages from the agent into - * the conversation. + * - `user`: Indicates the message is sent by an actual user and should be used in most + * cases to represent user-generated messages. + * - `assistant`: Indicates the message is generated by the agent. Use this value to insert + * messages from the agent into the + * conversation. * * Possible values: "user", "assistant" */ @@ -495,7 +497,7 @@ export interface AgentsNamedToolChoice { /** * the type of tool. If type is `function`, the function name must be set. * - * Possible values: "function", "code_interpreter", "file_search", "bing_grounding", "microsoft_fabric", "sharepoint", "azure_ai_search" + * Possible values: "function", "code_interpreter", "file_search", "bing_grounding", "microsoft_fabric", "sharepoint_grounding", "azure_ai_search" */ type: AgentsNamedToolChoiceType; /** The name of the function to call */ @@ -521,12 +523,6 @@ export interface UpdateToolResourcesOptions { code_interpreter?: UpdateCodeInterpreterToolResourceOptions; /** Overrides the vector store attached to this agent. There can be a maximum of 1 vector store attached to the agent. */ file_search?: UpdateFileSearchToolResourceOptions; - /** Overrides the list of connections to be used by the `bing_grounding` tool consisting of connection IDs. */ - bing_grounding?: ConnectionListResource; - /** Overrides the list of connections to be used by the `microsoft_fabric` tool consisting of connection IDs. */ - microsoft_fabric?: ConnectionListResource; - /** Overrides the list of connections to be used by the `sharepoint` tool consisting of connection IDs. */ - sharepoint?: ConnectionListResource; /** Overrides the resources to be used by the `azure_ai_search` tool consisting of index IDs and names. */ azure_ai_search?: AzureAISearchResource; } @@ -658,7 +654,7 @@ export interface VectorStoreStaticChunkingStrategyOptions { max_chunk_size_tokens: number; /** * The number of tokens that overlap between chunks. The default value is 400. - * Note that the overlap must not exceed half of max_chunk_size_tokens. * + * Note that the overlap must not exceed half of max_chunk_size_tokens. */ chunk_overlap_tokens: number; } @@ -739,8 +735,6 @@ export interface EvaluationSchedule { evaluators: Record; /** Trigger for the evaluation. */ trigger: Trigger; - /** Sampling strategy for the evaluation. */ - samplingStrategy: SamplingStrategy; } /** Abstract data class for input data configuration. */ @@ -780,12 +774,6 @@ export interface CronTrigger extends TriggerParent { expression: string; } -/** SamplingStrategy Definition */ -export interface SamplingStrategy { - /** Sampling rate */ - rate: number; -} - /** An abstract representation of an input tool definition that an agent can use. */ export type ToolDefinition = | ToolDefinitionParent @@ -863,7 +851,8 @@ export type ConnectionType = | "AzureOpenAI" | "Serverless" | "AzureBlob" - | "AIServices"; + | "AIServices" + | "CognitiveSearch"; /** Alias for Frequency */ export type Frequency = string; /** Alias for WeekDays */ diff --git a/sdk/ai/ai-projects/src/generated/src/outputModels.ts b/sdk/ai/ai-projects/src/generated/src/outputModels.ts index 60a51d228b6a..0d7466ac3649 100644 --- a/sdk/ai/ai-projects/src/generated/src/outputModels.ts +++ b/sdk/ai/ai-projects/src/generated/src/outputModels.ts @@ -58,6 +58,23 @@ export interface BingGroundingToolDefinitionOutput extends ToolDefinitionOutputParent { /** The object type, which is always 'bing_grounding'. */ type: "bing_grounding"; + /** The list of connections used by the bing grounding tool. */ + bing_grounding: ToolConnectionListOutput; +} + +/** A set of connection resources currently used by either the `bing_grounding`, `microsoft_fabric`, or `sharepoint_grounding` tools. */ +export interface ToolConnectionListOutput { + /** + * The connections attached to this tool. There can be a maximum of 1 connection + * resource attached to the tool. + */ + connections?: Array; +} + +/** A connection resource. */ +export interface ToolConnectionOutput { + /** A connection in a ToolConnectionList attached to this tool. */ + connection_id: string; } /** The input definition information for a Microsoft Fabric tool as used to configure an agent. */ @@ -65,13 +82,17 @@ export interface MicrosoftFabricToolDefinitionOutput extends ToolDefinitionOutputParent { /** The object type, which is always 'microsoft_fabric'. */ type: "microsoft_fabric"; + /** The list of connections used by the Microsoft Fabric tool. */ + microsoft_fabric: ToolConnectionListOutput; } /** The input definition information for a sharepoint tool as used to configure an agent. */ export interface SharepointToolDefinitionOutput extends ToolDefinitionOutputParent { - /** The object type, which is always 'sharepoint'. */ - type: "sharepoint"; + /** The object type, which is always 'sharepoint_grounding'. */ + type: "sharepoint_grounding"; + /** The list of connections used by the SharePoint tool. */ + sharepoint_grounding: ToolConnectionListOutput; } /** The input definition information for an Azure AI search tool as used to configure an agent. */ @@ -91,12 +112,6 @@ export interface ToolResourcesOutput { code_interpreter?: CodeInterpreterToolResourceOutput; /** Resources to be used by the `file_search` tool consisting of vector store IDs. */ file_search?: FileSearchToolResourceOutput; - /** Resources to be used by the `bing_grounding` tool consisting of connection IDs. */ - bing_grounding?: ConnectionListResourceOutput; - /** Resources to be used by the `microsoft_fabric` tool consisting of connection IDs. */ - microsoft_fabric?: ConnectionListResourceOutput; - /** Resources to be used by the `sharepoint` tool consisting of connection IDs. */ - sharepoint?: ConnectionListResourceOutput; /** Resources to be used by the `azure_ai_search` tool consisting of index IDs and names. */ azure_ai_search?: AzureAISearchResourceOutput; } @@ -119,21 +134,6 @@ export interface FileSearchToolResourceOutput { vector_store_ids?: string[]; } -/** A set of connection resources currently used by either the `bing_grounding`, `microsoft_fabric`, or `sharepoint` tools. */ -export interface ConnectionListResourceOutput { - /** - * The connections attached to this agent. There can be a maximum of 1 connection - * resource attached to the agent. - */ - connections?: Array; -} - -/** A connection resource. */ -export interface ConnectionResourceOutput { - /** A connection in a ConnectionListResource attached to this agent. */ - connection_id: string; -} - /** A set of index resources used by the `azure_ai_search` tool. */ export interface AzureAISearchResourceOutput { /** @@ -437,7 +437,7 @@ export interface AgentsNamedToolChoiceOutput { /** * the type of tool. If type is `function`, the function name must be set. * - * Possible values: "function", "code_interpreter", "file_search", "bing_grounding", "microsoft_fabric", "sharepoint", "azure_ai_search" + * Possible values: "function", "code_interpreter", "file_search", "bing_grounding", "microsoft_fabric", "sharepoint_grounding", "azure_ai_search" */ type: AgentsNamedToolChoiceTypeOutput; /** The name of the function to call */ @@ -589,12 +589,6 @@ export interface UpdateToolResourcesOptionsOutput { code_interpreter?: UpdateCodeInterpreterToolResourceOptionsOutput; /** Overrides the vector store attached to this agent. There can be a maximum of 1 vector store attached to the agent. */ file_search?: UpdateFileSearchToolResourceOptionsOutput; - /** Overrides the list of connections to be used by the `bing_grounding` tool consisting of connection IDs. */ - bing_grounding?: ConnectionListResourceOutput; - /** Overrides the list of connections to be used by the `microsoft_fabric` tool consisting of connection IDs. */ - microsoft_fabric?: ConnectionListResourceOutput; - /** Overrides the list of connections to be used by the `sharepoint` tool consisting of connection IDs. */ - sharepoint?: ConnectionListResourceOutput; /** Overrides the resources to be used by the `azure_ai_search` tool consisting of index IDs and names. */ azure_ai_search?: AzureAISearchResourceOutput; } @@ -796,10 +790,10 @@ export interface RunStepAzureAISearchToolCallOutput */ export interface RunStepSharepointToolCallOutput extends RunStepToolCallOutputParent { - /** The object type, which is always 'sharepoint'. */ - type: "sharepoint"; + /** The object type, which is always 'sharepoint_grounding'. */ + type: "sharepoint_grounding"; /** Reserved for future use. */ - sharepoint: Record; + sharepoint_grounding: Record; } /** @@ -918,12 +912,6 @@ export interface FileDeletionStatusOutput { object: "file"; } -/** A response from a file get content operation. */ -export interface FileContentResponseOutput { - /** The content of the file, in bytes. */ - content: string; -} - /** The response data for a requested list of items. */ export interface OpenAIPageableListOfVectorStoreOutput { /** The object type, which is always list. */ @@ -1000,7 +988,7 @@ export interface VectorStoreStaticChunkingStrategyOptionsOutput { max_chunk_size_tokens: number; /** * The number of tokens that overlap between chunks. The default value is 400. - * Note that the overlap must not exceed half of max_chunk_size_tokens. * + * Note that the overlap must not exceed half of max_chunk_size_tokens. */ chunk_overlap_tokens: number; } @@ -1119,30 +1107,46 @@ export interface VectorStoreFileBatchOutput { file_counts: VectorStoreFileCountOutput; } +/** Response from the Workspace - Get operation */ +export interface GetWorkspaceResponseOutput { + /** A unique identifier for the resource */ + id: string; + /** The name of the resource */ + name: string; + /** The properties of the resource */ + properties: WorkspacePropertiesOutput; +} + +/** workspace properties */ +export interface WorkspacePropertiesOutput { + /** Authentication type of the connection target */ + applicationInsights: string; +} + /** Response from the list operation */ -export interface ConnectionsListResponseOutput { +export interface ListConnectionsResponseOutput { /** A list of connection list secrets */ - value: Array; + value: Array; } /** Response from the listSecrets operation */ -export interface ConnectionsListSecretsResponseOutput { +export interface GetConnectionResponseOutput { /** A unique identifier for the connection */ id: string; /** The name of the resource */ name: string; /** The properties of the resource */ - properties: ConnectionPropertiesOutput; + properties: InternalConnectionPropertiesOutput; } /** Connection properties */ -export interface ConnectionPropertiesOutputParent { +export interface InternalConnectionPropertiesOutputParent { authType: AuthenticationTypeOutput; } /** Connection properties for connections with API key authentication */ -export interface ConnectionPropertiesApiKeyAuthOutput - extends ConnectionPropertiesOutputParent { +export interface InternalConnectionPropertiesApiKeyAuthOutput + extends InternalConnectionPropertiesOutputParent { /** Authentication type of the connection target */ authType: "ApiKey"; /** Category of the connection */ @@ -1160,8 +1164,8 @@ export interface CredentialsApiKeyAuthOutput { } /** Connection properties for connections with AAD authentication (aka `Entra ID passthrough`) */ -export interface ConnectionPropertiesAADAuthOutput - extends ConnectionPropertiesOutputParent { +export interface InternalConnectionPropertiesAADAuthOutput + extends InternalConnectionPropertiesOutputParent { /** Authentication type of the connection target */ authType: "AAD"; /** Category of the connection */ @@ -1171,8 +1175,8 @@ export interface ConnectionPropertiesAADAuthOutput } /** Connection properties for connections with SAS authentication */ -export interface ConnectionPropertiesSASAuthOutput - extends ConnectionPropertiesOutputParent { +export interface InternalConnectionPropertiesSASAuthOutput + extends InternalConnectionPropertiesOutputParent { /** Authentication type of the connection target */ authType: "SAS"; /** Category of the connection */ @@ -1189,6 +1193,22 @@ export interface CredentialsSASAuthOutput { SAS: string; } +/** Response from getting properties of the Application Insights resource */ +export interface GetAppInsightsResponseOutput { + /** A unique identifier for the resource */ + id: string; + /** The name of the resource */ + name: string; + /** The properties of the resource */ + properties: AppInsightsPropertiesOutput; +} + +/** The properties of the Application Insights resource */ +export interface AppInsightsPropertiesOutput { + /** Authentication type of the connection target */ + ConnectionString: string; +} + /** Evaluation Definition */ export interface EvaluationOutput { /** Identifier of the evaluation. */ @@ -1279,8 +1299,6 @@ export interface EvaluationScheduleOutput { evaluators: Record; /** Trigger for the evaluation. */ trigger: TriggerOutput; - /** Sampling strategy for the evaluation. */ - samplingStrategy: SamplingStrategyOutput; } /** Abstract data class for input data configuration. */ @@ -1322,12 +1340,6 @@ export interface CronTriggerOutput extends TriggerOutputParent { expression: string; } -/** SamplingStrategy Definition */ -export interface SamplingStrategyOutput { - /** Sampling rate */ - rate: number; -} - /** An abstract representation of an input tool definition that an agent can use. */ export type ToolDefinitionOutput = | ToolDefinitionOutputParent @@ -1382,11 +1394,11 @@ export type VectorStoreChunkingStrategyResponseOutput = | VectorStoreAutoChunkingStrategyResponseOutput | VectorStoreStaticChunkingStrategyResponseOutput; /** Connection properties */ -export type ConnectionPropertiesOutput = - | ConnectionPropertiesOutputParent - | ConnectionPropertiesApiKeyAuthOutput - | ConnectionPropertiesAADAuthOutput - | ConnectionPropertiesSASAuthOutput; +export type InternalConnectionPropertiesOutput = + | InternalConnectionPropertiesOutputParent + | InternalConnectionPropertiesApiKeyAuthOutput + | InternalConnectionPropertiesAADAuthOutput + | InternalConnectionPropertiesSASAuthOutput; /** Abstract data class for input data configuration. */ export type InputDataOutput = | InputDataOutputParent @@ -1458,7 +1470,8 @@ export type ConnectionTypeOutput = | "AzureOpenAI" | "Serverless" | "AzureBlob" - | "AIServices"; + | "AIServices" + | "CognitiveSearch"; /** Authentication type used by Azure AI service to connect to another service */ export type AuthenticationTypeOutput = "ApiKey" | "AAD" | "SAS"; /** Paged collection of Evaluation items */ diff --git a/sdk/ai/ai-projects/src/generated/src/parameters.ts b/sdk/ai/ai-projects/src/generated/src/parameters.ts index e773cd6f5ebe..fbb38b023b59 100644 --- a/sdk/ai/ai-projects/src/generated/src/parameters.ts +++ b/sdk/ai/ai-projects/src/generated/src/parameters.ts @@ -23,14 +23,13 @@ import { EvaluationSchedule, } from "./models.js"; -export interface AgentsCreateAgentBodyParam { +export interface CreateAgentBodyParam { body: CreateAgentOptions; } -export type AgentsCreateAgentParameters = AgentsCreateAgentBodyParam & - RequestParameters; +export type CreateAgentParameters = CreateAgentBodyParam & RequestParameters; -export interface AgentsListAgentsQueryParamProperties { +export interface ListAgentsQueryParamProperties { /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */ limit?: number; /** @@ -45,46 +44,42 @@ export interface AgentsListAgentsQueryParamProperties { before?: string; } -export interface AgentsListAgentsQueryParam { - queryParameters?: AgentsListAgentsQueryParamProperties; +export interface ListAgentsQueryParam { + queryParameters?: ListAgentsQueryParamProperties; } -export type AgentsListAgentsParameters = AgentsListAgentsQueryParam & - RequestParameters; -export type AgentsGetAgentParameters = RequestParameters; +export type ListAgentsParameters = ListAgentsQueryParam & RequestParameters; +export type GetAgentParameters = RequestParameters; -export interface AgentsUpdateAgentBodyParam { +export interface UpdateAgentBodyParam { body: UpdateAgentOptions; } -export type AgentsUpdateAgentParameters = AgentsUpdateAgentBodyParam & - RequestParameters; -export type AgentsDeleteAgentParameters = RequestParameters; +export type UpdateAgentParameters = UpdateAgentBodyParam & RequestParameters; +export type DeleteAgentParameters = RequestParameters; -export interface AgentsCreateThreadBodyParam { +export interface CreateThreadBodyParam { body: AgentThreadCreationOptions; } -export type AgentsCreateThreadParameters = AgentsCreateThreadBodyParam & - RequestParameters; -export type AgentsGetThreadParameters = RequestParameters; +export type CreateThreadParameters = CreateThreadBodyParam & RequestParameters; +export type GetThreadParameters = RequestParameters; -export interface AgentsUpdateThreadBodyParam { +export interface UpdateThreadBodyParam { body: UpdateAgentThreadOptions; } -export type AgentsUpdateThreadParameters = AgentsUpdateThreadBodyParam & - RequestParameters; -export type AgentsDeleteThreadParameters = RequestParameters; +export type UpdateThreadParameters = UpdateThreadBodyParam & RequestParameters; +export type DeleteThreadParameters = RequestParameters; -export interface AgentsCreateMessageBodyParam { +export interface CreateMessageBodyParam { body: ThreadMessageOptions; } -export type AgentsCreateMessageParameters = AgentsCreateMessageBodyParam & +export type CreateMessageParameters = CreateMessageBodyParam & RequestParameters; -export interface AgentsListMessagesQueryParamProperties { +export interface ListMessagesQueryParamProperties { /** Filter messages by the run ID that generated them. */ runId?: string; /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */ @@ -101,29 +96,27 @@ export interface AgentsListMessagesQueryParamProperties { before?: string; } -export interface AgentsListMessagesQueryParam { - queryParameters?: AgentsListMessagesQueryParamProperties; +export interface ListMessagesQueryParam { + queryParameters?: ListMessagesQueryParamProperties; } -export type AgentsListMessagesParameters = AgentsListMessagesQueryParam & - RequestParameters; -export type AgentsGetMessageParameters = RequestParameters; +export type ListMessagesParameters = ListMessagesQueryParam & RequestParameters; +export type GetMessageParameters = RequestParameters; -export interface AgentsUpdateMessageBodyParam { +export interface UpdateMessageBodyParam { body: { metadata?: Record | null }; } -export type AgentsUpdateMessageParameters = AgentsUpdateMessageBodyParam & +export type UpdateMessageParameters = UpdateMessageBodyParam & RequestParameters; -export interface AgentsCreateRunBodyParam { +export interface CreateRunBodyParam { body: CreateRunOptions; } -export type AgentsCreateRunParameters = AgentsCreateRunBodyParam & - RequestParameters; +export type CreateRunParameters = CreateRunBodyParam & RequestParameters; -export interface AgentsListRunsQueryParamProperties { +export interface ListRunsQueryParamProperties { /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */ limit?: number; /** @@ -138,38 +131,36 @@ export interface AgentsListRunsQueryParamProperties { before?: string; } -export interface AgentsListRunsQueryParam { - queryParameters?: AgentsListRunsQueryParamProperties; +export interface ListRunsQueryParam { + queryParameters?: ListRunsQueryParamProperties; } -export type AgentsListRunsParameters = AgentsListRunsQueryParam & - RequestParameters; -export type AgentsGetRunParameters = RequestParameters; +export type ListRunsParameters = ListRunsQueryParam & RequestParameters; +export type GetRunParameters = RequestParameters; -export interface AgentsUpdateRunBodyParam { +export interface UpdateRunBodyParam { body: { metadata?: Record | null }; } -export type AgentsUpdateRunParameters = AgentsUpdateRunBodyParam & - RequestParameters; +export type UpdateRunParameters = UpdateRunBodyParam & RequestParameters; -export interface AgentsSubmitToolOutputsToRunBodyParam { +export interface SubmitToolOutputsToRunBodyParam { body: { tool_outputs: Array; stream?: boolean | null }; } -export type AgentsSubmitToolOutputsToRunParameters = - AgentsSubmitToolOutputsToRunBodyParam & RequestParameters; -export type AgentsCancelRunParameters = RequestParameters; +export type SubmitToolOutputsToRunParameters = SubmitToolOutputsToRunBodyParam & + RequestParameters; +export type CancelRunParameters = RequestParameters; -export interface AgentsCreateThreadAndRunBodyParam { +export interface CreateThreadAndRunBodyParam { body: CreateAndRunThreadOptions; } -export type AgentsCreateThreadAndRunParameters = - AgentsCreateThreadAndRunBodyParam & RequestParameters; -export type AgentsGetRunStepParameters = RequestParameters; +export type CreateThreadAndRunParameters = CreateThreadAndRunBodyParam & + RequestParameters; +export type GetRunStepParameters = RequestParameters; -export interface AgentsListRunStepsQueryParamProperties { +export interface ListRunStepsQueryParamProperties { /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */ limit?: number; /** @@ -184,14 +175,13 @@ export interface AgentsListRunStepsQueryParamProperties { before?: string; } -export interface AgentsListRunStepsQueryParam { - queryParameters?: AgentsListRunStepsQueryParamProperties; +export interface ListRunStepsQueryParam { + queryParameters?: ListRunStepsQueryParamProperties; } -export type AgentsListRunStepsParameters = AgentsListRunStepsQueryParam & - RequestParameters; +export type ListRunStepsParameters = ListRunStepsQueryParam & RequestParameters; -export interface AgentsListFilesQueryParamProperties { +export interface ListFilesQueryParamProperties { /** * The purpose of the file. * @@ -200,14 +190,13 @@ export interface AgentsListFilesQueryParamProperties { purpose?: FilePurpose; } -export interface AgentsListFilesQueryParam { - queryParameters?: AgentsListFilesQueryParamProperties; +export interface ListFilesQueryParam { + queryParameters?: ListFilesQueryParamProperties; } -export type AgentsListFilesParameters = AgentsListFilesQueryParam & - RequestParameters; +export type ListFilesParameters = ListFilesQueryParam & RequestParameters; -export interface AgentsUploadFileBodyParam { +export interface UploadFileBodyParam { body: | FormData | Array< @@ -232,19 +221,19 @@ export interface AgentsUploadFileBodyParam { >; } -export interface AgentsUploadFileMediaTypesParam { +export interface UploadFileMediaTypesParam { /** The name of the file to upload. */ contentType: "multipart/form-data"; } -export type AgentsUploadFileParameters = AgentsUploadFileMediaTypesParam & - AgentsUploadFileBodyParam & +export type UploadFileParameters = UploadFileMediaTypesParam & + UploadFileBodyParam & RequestParameters; -export type AgentsDeleteFileParameters = RequestParameters; -export type AgentsGetFileParameters = RequestParameters; -export type AgentsGetFileContentParameters = RequestParameters; +export type DeleteFileParameters = RequestParameters; +export type GetFileParameters = RequestParameters; +export type GetFileContentParameters = RequestParameters; -export interface AgentsListVectorStoresQueryParamProperties { +export interface ListVectorStoresQueryParamProperties { /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */ limit?: number; /** @@ -259,30 +248,30 @@ export interface AgentsListVectorStoresQueryParamProperties { before?: string; } -export interface AgentsListVectorStoresQueryParam { - queryParameters?: AgentsListVectorStoresQueryParamProperties; +export interface ListVectorStoresQueryParam { + queryParameters?: ListVectorStoresQueryParamProperties; } -export type AgentsListVectorStoresParameters = - AgentsListVectorStoresQueryParam & RequestParameters; +export type ListVectorStoresParameters = ListVectorStoresQueryParam & + RequestParameters; -export interface AgentsCreateVectorStoreBodyParam { +export interface CreateVectorStoreBodyParam { body: VectorStoreOptions; } -export type AgentsCreateVectorStoreParameters = - AgentsCreateVectorStoreBodyParam & RequestParameters; -export type AgentsGetVectorStoreParameters = RequestParameters; +export type CreateVectorStoreParameters = CreateVectorStoreBodyParam & + RequestParameters; +export type GetVectorStoreParameters = RequestParameters; -export interface AgentsModifyVectorStoreBodyParam { +export interface ModifyVectorStoreBodyParam { body: VectorStoreUpdateOptions; } -export type AgentsModifyVectorStoreParameters = - AgentsModifyVectorStoreBodyParam & RequestParameters; -export type AgentsDeleteVectorStoreParameters = RequestParameters; +export type ModifyVectorStoreParameters = ModifyVectorStoreBodyParam & + RequestParameters; +export type DeleteVectorStoreParameters = RequestParameters; -export interface AgentsListVectorStoreFilesQueryParamProperties { +export interface ListVectorStoreFilesQueryParamProperties { /** * Filter by file status. * @@ -303,38 +292,38 @@ export interface AgentsListVectorStoreFilesQueryParamProperties { before?: string; } -export interface AgentsListVectorStoreFilesQueryParam { - queryParameters?: AgentsListVectorStoreFilesQueryParamProperties; +export interface ListVectorStoreFilesQueryParam { + queryParameters?: ListVectorStoreFilesQueryParamProperties; } -export type AgentsListVectorStoreFilesParameters = - AgentsListVectorStoreFilesQueryParam & RequestParameters; +export type ListVectorStoreFilesParameters = ListVectorStoreFilesQueryParam & + RequestParameters; -export interface AgentsCreateVectorStoreFileBodyParam { +export interface CreateVectorStoreFileBodyParam { body: { file_id: string; chunking_strategy?: VectorStoreChunkingStrategyRequest; }; } -export type AgentsCreateVectorStoreFileParameters = - AgentsCreateVectorStoreFileBodyParam & RequestParameters; -export type AgentsGetVectorStoreFileParameters = RequestParameters; -export type AgentsDeleteVectorStoreFileParameters = RequestParameters; +export type CreateVectorStoreFileParameters = CreateVectorStoreFileBodyParam & + RequestParameters; +export type GetVectorStoreFileParameters = RequestParameters; +export type DeleteVectorStoreFileParameters = RequestParameters; -export interface AgentsCreateVectorStoreFileBatchBodyParam { +export interface CreateVectorStoreFileBatchBodyParam { body: { file_ids: string[]; chunking_strategy?: VectorStoreChunkingStrategyRequest; }; } -export type AgentsCreateVectorStoreFileBatchParameters = - AgentsCreateVectorStoreFileBatchBodyParam & RequestParameters; -export type AgentsGetVectorStoreFileBatchParameters = RequestParameters; -export type AgentsCancelVectorStoreFileBatchParameters = RequestParameters; +export type CreateVectorStoreFileBatchParameters = + CreateVectorStoreFileBatchBodyParam & RequestParameters; +export type GetVectorStoreFileBatchParameters = RequestParameters; +export type CancelVectorStoreFileBatchParameters = RequestParameters; -export interface AgentsListVectorStoreFileBatchFilesQueryParamProperties { +export interface ListVectorStoreFileBatchFilesQueryParamProperties { /** * Filter by file status. * @@ -355,14 +344,15 @@ export interface AgentsListVectorStoreFileBatchFilesQueryParamProperties { before?: string; } -export interface AgentsListVectorStoreFileBatchFilesQueryParam { - queryParameters?: AgentsListVectorStoreFileBatchFilesQueryParamProperties; +export interface ListVectorStoreFileBatchFilesQueryParam { + queryParameters?: ListVectorStoreFileBatchFilesQueryParamProperties; } -export type AgentsListVectorStoreFileBatchFilesParameters = - AgentsListVectorStoreFileBatchFilesQueryParam & RequestParameters; +export type ListVectorStoreFileBatchFilesParameters = + ListVectorStoreFileBatchFilesQueryParam & RequestParameters; +export type GetWorkspaceParameters = RequestParameters; -export interface ConnectionsListQueryParamProperties { +export interface ListConnectionsQueryParamProperties { /** Category of the workspace connection. */ category?: ConnectionType; /** Indicates whether to list datastores. Service default: do not list datastores. */ @@ -371,47 +361,46 @@ export interface ConnectionsListQueryParamProperties { target?: string; } -export interface ConnectionsListQueryParam { - queryParameters?: ConnectionsListQueryParamProperties; +export interface ListConnectionsQueryParam { + queryParameters?: ListConnectionsQueryParamProperties; } -export type ConnectionsListParameters = ConnectionsListQueryParam & +export type ListConnectionsParameters = ListConnectionsQueryParam & RequestParameters; -export type ConnectionsGetParameters = RequestParameters; +export type GetConnectionParameters = RequestParameters; -export interface ConnectionsListSecretsBodyParam { +export interface GetConnectionWithSecretsBodyParam { body: { ignored: string }; } -export type ConnectionsListSecretsParameters = ConnectionsListSecretsBodyParam & - RequestParameters; +export type GetConnectionWithSecretsParameters = + GetConnectionWithSecretsBodyParam & RequestParameters; +export type GetAppInsightsParameters = RequestParameters; -export interface EvaluationsGetHeaders { +export interface GetHeaders { /** An opaque, globally-unique, client-generated string identifier for the request. */ "x-ms-client-request-id"?: string; } -export interface EvaluationsGetHeaderParam { - headers?: RawHttpHeadersInput & EvaluationsGetHeaders; +export interface GetHeaderParam { + headers?: RawHttpHeadersInput & GetHeaders; } -export type EvaluationsGetParameters = EvaluationsGetHeaderParam & - RequestParameters; +export type GetParameters = GetHeaderParam & RequestParameters; -export interface EvaluationsCreateBodyParam { +export interface CreateBodyParam { /** Evaluation to run. */ body: Evaluation; } -export type EvaluationsCreateParameters = EvaluationsCreateBodyParam & - RequestParameters; +export type CreateParameters = CreateBodyParam & RequestParameters; -export interface EvaluationsListHeaders { +export interface ListHeaders { /** An opaque, globally-unique, client-generated string identifier for the request. */ "x-ms-client-request-id"?: string; } -export interface EvaluationsListQueryParamProperties { +export interface ListQueryParamProperties { /** The number of result items to return. */ top?: number; /** The number of result items to skip. */ @@ -420,19 +409,19 @@ export interface EvaluationsListQueryParamProperties { maxpagesize?: number; } -export interface EvaluationsListQueryParam { - queryParameters?: EvaluationsListQueryParamProperties; +export interface ListQueryParam { + queryParameters?: ListQueryParamProperties; } -export interface EvaluationsListHeaderParam { - headers?: RawHttpHeadersInput & EvaluationsListHeaders; +export interface ListHeaderParam { + headers?: RawHttpHeadersInput & ListHeaders; } -export type EvaluationsListParameters = EvaluationsListQueryParam & - EvaluationsListHeaderParam & +export type ListParameters = ListQueryParam & + ListHeaderParam & RequestParameters; -export interface EvaluationsUpdateHeaders { +export interface UpdateHeaders { /** An opaque, globally-unique, client-generated string identifier for the request. */ "x-ms-client-request-id"?: string; } @@ -440,62 +429,61 @@ export interface EvaluationsUpdateHeaders { /** The resource instance. */ export type EvaluationResourceMergeAndPatch = Partial; -export interface EvaluationsUpdateBodyParam { +export interface UpdateBodyParam { /** The resource instance. */ body: EvaluationResourceMergeAndPatch; } -export interface EvaluationsUpdateHeaderParam { - headers?: RawHttpHeadersInput & EvaluationsUpdateHeaders; +export interface UpdateHeaderParam { + headers?: RawHttpHeadersInput & UpdateHeaders; } -export interface EvaluationsUpdateMediaTypesParam { +export interface UpdateMediaTypesParam { /** This request has a JSON Merge Patch body. */ contentType: "application/merge-patch+json"; } -export type EvaluationsUpdateParameters = EvaluationsUpdateHeaderParam & - EvaluationsUpdateMediaTypesParam & - EvaluationsUpdateBodyParam & +export type UpdateParameters = UpdateHeaderParam & + UpdateMediaTypesParam & + UpdateBodyParam & RequestParameters; -export interface EvaluationsGetScheduleHeaders { +export interface GetScheduleHeaders { /** An opaque, globally-unique, client-generated string identifier for the request. */ "x-ms-client-request-id"?: string; } -export interface EvaluationsGetScheduleHeaderParam { - headers?: RawHttpHeadersInput & EvaluationsGetScheduleHeaders; +export interface GetScheduleHeaderParam { + headers?: RawHttpHeadersInput & GetScheduleHeaders; } -export type EvaluationsGetScheduleParameters = - EvaluationsGetScheduleHeaderParam & RequestParameters; +export type GetScheduleParameters = GetScheduleHeaderParam & RequestParameters; -export interface EvaluationsCreateOrReplaceScheduleHeaders { +export interface CreateOrReplaceScheduleHeaders { /** An opaque, globally-unique, client-generated string identifier for the request. */ "x-ms-client-request-id"?: string; } -export interface EvaluationsCreateOrReplaceScheduleBodyParam { +export interface CreateOrReplaceScheduleBodyParam { /** The resource instance. */ body: EvaluationSchedule; } -export interface EvaluationsCreateOrReplaceScheduleHeaderParam { - headers?: RawHttpHeadersInput & EvaluationsCreateOrReplaceScheduleHeaders; +export interface CreateOrReplaceScheduleHeaderParam { + headers?: RawHttpHeadersInput & CreateOrReplaceScheduleHeaders; } -export type EvaluationsCreateOrReplaceScheduleParameters = - EvaluationsCreateOrReplaceScheduleHeaderParam & - EvaluationsCreateOrReplaceScheduleBodyParam & +export type CreateOrReplaceScheduleParameters = + CreateOrReplaceScheduleHeaderParam & + CreateOrReplaceScheduleBodyParam & RequestParameters; -export interface EvaluationsListScheduleHeaders { +export interface ListScheduleHeaders { /** An opaque, globally-unique, client-generated string identifier for the request. */ "x-ms-client-request-id"?: string; } -export interface EvaluationsListScheduleQueryParamProperties { +export interface ListScheduleQueryParamProperties { /** The number of result items to return. */ top?: number; /** The number of result items to skip. */ @@ -504,27 +492,15 @@ export interface EvaluationsListScheduleQueryParamProperties { maxpagesize?: number; } -export interface EvaluationsListScheduleQueryParam { - queryParameters?: EvaluationsListScheduleQueryParamProperties; +export interface ListScheduleQueryParam { + queryParameters?: ListScheduleQueryParamProperties; } -export interface EvaluationsListScheduleHeaderParam { - headers?: RawHttpHeadersInput & EvaluationsListScheduleHeaders; +export interface ListScheduleHeaderParam { + headers?: RawHttpHeadersInput & ListScheduleHeaders; } -export type EvaluationsListScheduleParameters = - EvaluationsListScheduleQueryParam & - EvaluationsListScheduleHeaderParam & - RequestParameters; - -export interface EvaluationsDeleteScheduleHeaders { - /** An opaque, globally-unique, client-generated string identifier for the request. */ - "x-ms-client-request-id"?: string; -} - -export interface EvaluationsDeleteScheduleHeaderParam { - headers?: RawHttpHeadersInput & EvaluationsDeleteScheduleHeaders; -} - -export type EvaluationsDeleteScheduleParameters = - EvaluationsDeleteScheduleHeaderParam & RequestParameters; +export type ListScheduleParameters = ListScheduleQueryParam & + ListScheduleHeaderParam & + RequestParameters; +export type DisableScheduleParameters = RequestParameters; diff --git a/sdk/ai/ai-projects/src/generated/src/responses.ts b/sdk/ai/ai-projects/src/generated/src/responses.ts index 12164317d93b..3504ed2c5d5d 100644 --- a/sdk/ai/ai-projects/src/generated/src/responses.ts +++ b/sdk/ai/ai-projects/src/generated/src/responses.ts @@ -16,14 +16,15 @@ import { FileListResponseOutput, OpenAIFileOutput, FileDeletionStatusOutput, - FileContentResponseOutput, VectorStoreOutput, VectorStoreDeletionStatusOutput, VectorStoreFileOutput, VectorStoreFileDeletionStatusOutput, VectorStoreFileBatchOutput, - ConnectionsListResponseOutput, - ConnectionsListSecretsResponseOutput, + GetWorkspaceResponseOutput, + ListConnectionsResponseOutput, + GetConnectionResponseOutput, + GetAppInsightsResponseOutput, EvaluationOutput, PagedEvaluationOutput, EvaluationScheduleOutput, @@ -35,924 +36,941 @@ import { } from "./outputModels.js"; /** The new agent instance. */ -export interface AgentsCreateAgent200Response extends HttpResponse { +export interface CreateAgent200Response extends HttpResponse { status: "200"; body: AgentOutput; } -export interface AgentsCreateAgentDefaultHeaders { +export interface CreateAgentDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsCreateAgentDefaultResponse extends HttpResponse { +export interface CreateAgentDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsCreateAgentDefaultHeaders; + headers: RawHttpHeaders & CreateAgentDefaultHeaders; } /** The requested list of agents. */ -export interface AgentsListAgents200Response extends HttpResponse { +export interface ListAgents200Response extends HttpResponse { status: "200"; body: OpenAIPageableListOfAgentOutput; } -export interface AgentsListAgentsDefaultHeaders { +export interface ListAgentsDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsListAgentsDefaultResponse extends HttpResponse { +export interface ListAgentsDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsListAgentsDefaultHeaders; + headers: RawHttpHeaders & ListAgentsDefaultHeaders; } /** The requested agent instance. */ -export interface AgentsGetAgent200Response extends HttpResponse { +export interface GetAgent200Response extends HttpResponse { status: "200"; body: AgentOutput; } -export interface AgentsGetAgentDefaultHeaders { +export interface GetAgentDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsGetAgentDefaultResponse extends HttpResponse { +export interface GetAgentDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsGetAgentDefaultHeaders; + headers: RawHttpHeaders & GetAgentDefaultHeaders; } /** The updated agent instance. */ -export interface AgentsUpdateAgent200Response extends HttpResponse { +export interface UpdateAgent200Response extends HttpResponse { status: "200"; body: AgentOutput; } -export interface AgentsUpdateAgentDefaultHeaders { +export interface UpdateAgentDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsUpdateAgentDefaultResponse extends HttpResponse { +export interface UpdateAgentDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsUpdateAgentDefaultHeaders; + headers: RawHttpHeaders & UpdateAgentDefaultHeaders; } /** Status information about the requested deletion operation. */ -export interface AgentsDeleteAgent200Response extends HttpResponse { +export interface DeleteAgent200Response extends HttpResponse { status: "200"; body: AgentDeletionStatusOutput; } -export interface AgentsDeleteAgentDefaultHeaders { +export interface DeleteAgentDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsDeleteAgentDefaultResponse extends HttpResponse { +export interface DeleteAgentDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsDeleteAgentDefaultHeaders; + headers: RawHttpHeaders & DeleteAgentDefaultHeaders; } /** Information about the newly created thread. */ -export interface AgentsCreateThread200Response extends HttpResponse { +export interface CreateThread200Response extends HttpResponse { status: "200"; body: AgentThreadOutput; } -export interface AgentsCreateThreadDefaultHeaders { +export interface CreateThreadDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsCreateThreadDefaultResponse extends HttpResponse { +export interface CreateThreadDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsCreateThreadDefaultHeaders; + headers: RawHttpHeaders & CreateThreadDefaultHeaders; } /** Information about the requested thread. */ -export interface AgentsGetThread200Response extends HttpResponse { +export interface GetThread200Response extends HttpResponse { status: "200"; body: AgentThreadOutput; } -export interface AgentsGetThreadDefaultHeaders { +export interface GetThreadDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsGetThreadDefaultResponse extends HttpResponse { +export interface GetThreadDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsGetThreadDefaultHeaders; + headers: RawHttpHeaders & GetThreadDefaultHeaders; } /** Information about the modified thread. */ -export interface AgentsUpdateThread200Response extends HttpResponse { +export interface UpdateThread200Response extends HttpResponse { status: "200"; body: AgentThreadOutput; } -export interface AgentsUpdateThreadDefaultHeaders { +export interface UpdateThreadDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsUpdateThreadDefaultResponse extends HttpResponse { +export interface UpdateThreadDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsUpdateThreadDefaultHeaders; + headers: RawHttpHeaders & UpdateThreadDefaultHeaders; } /** Status information about the requested thread deletion operation. */ -export interface AgentsDeleteThread200Response extends HttpResponse { +export interface DeleteThread200Response extends HttpResponse { status: "200"; body: ThreadDeletionStatusOutput; } -export interface AgentsDeleteThreadDefaultHeaders { +export interface DeleteThreadDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsDeleteThreadDefaultResponse extends HttpResponse { +export interface DeleteThreadDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsDeleteThreadDefaultHeaders; + headers: RawHttpHeaders & DeleteThreadDefaultHeaders; } /** A representation of the new message. */ -export interface AgentsCreateMessage200Response extends HttpResponse { +export interface CreateMessage200Response extends HttpResponse { status: "200"; body: ThreadMessageOutput; } -export interface AgentsCreateMessageDefaultHeaders { +export interface CreateMessageDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsCreateMessageDefaultResponse extends HttpResponse { +export interface CreateMessageDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsCreateMessageDefaultHeaders; + headers: RawHttpHeaders & CreateMessageDefaultHeaders; } /** The requested list of messages. */ -export interface AgentsListMessages200Response extends HttpResponse { +export interface ListMessages200Response extends HttpResponse { status: "200"; body: OpenAIPageableListOfThreadMessageOutput; } -export interface AgentsListMessagesDefaultHeaders { +export interface ListMessagesDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsListMessagesDefaultResponse extends HttpResponse { +export interface ListMessagesDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsListMessagesDefaultHeaders; + headers: RawHttpHeaders & ListMessagesDefaultHeaders; } /** A representation of the requested message. */ -export interface AgentsGetMessage200Response extends HttpResponse { +export interface GetMessage200Response extends HttpResponse { status: "200"; body: ThreadMessageOutput; } -export interface AgentsGetMessageDefaultHeaders { +export interface GetMessageDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsGetMessageDefaultResponse extends HttpResponse { +export interface GetMessageDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsGetMessageDefaultHeaders; + headers: RawHttpHeaders & GetMessageDefaultHeaders; } /** A representation of the modified message. */ -export interface AgentsUpdateMessage200Response extends HttpResponse { +export interface UpdateMessage200Response extends HttpResponse { status: "200"; body: ThreadMessageOutput; } -export interface AgentsUpdateMessageDefaultHeaders { +export interface UpdateMessageDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsUpdateMessageDefaultResponse extends HttpResponse { +export interface UpdateMessageDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsUpdateMessageDefaultHeaders; + headers: RawHttpHeaders & UpdateMessageDefaultHeaders; } /** Information about the new thread run. */ -export interface AgentsCreateRun200Response extends HttpResponse { +export interface CreateRun200Response extends HttpResponse { status: "200"; body: ThreadRunOutput; } -export interface AgentsCreateRunDefaultHeaders { +export interface CreateRunDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsCreateRunDefaultResponse extends HttpResponse { +export interface CreateRunDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsCreateRunDefaultHeaders; + headers: RawHttpHeaders & CreateRunDefaultHeaders; } /** The requested list of thread runs. */ -export interface AgentsListRuns200Response extends HttpResponse { +export interface ListRuns200Response extends HttpResponse { status: "200"; body: OpenAIPageableListOfThreadRunOutput; } -export interface AgentsListRunsDefaultHeaders { +export interface ListRunsDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsListRunsDefaultResponse extends HttpResponse { +export interface ListRunsDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsListRunsDefaultHeaders; + headers: RawHttpHeaders & ListRunsDefaultHeaders; } /** The requested information about the specified thread run. */ -export interface AgentsGetRun200Response extends HttpResponse { +export interface GetRun200Response extends HttpResponse { status: "200"; body: ThreadRunOutput; } -export interface AgentsGetRunDefaultHeaders { +export interface GetRunDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsGetRunDefaultResponse extends HttpResponse { +export interface GetRunDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsGetRunDefaultHeaders; + headers: RawHttpHeaders & GetRunDefaultHeaders; } /** Information about the modified run. */ -export interface AgentsUpdateRun200Response extends HttpResponse { +export interface UpdateRun200Response extends HttpResponse { status: "200"; body: ThreadRunOutput; } -export interface AgentsUpdateRunDefaultHeaders { +export interface UpdateRunDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsUpdateRunDefaultResponse extends HttpResponse { +export interface UpdateRunDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsUpdateRunDefaultHeaders; + headers: RawHttpHeaders & UpdateRunDefaultHeaders; } /** Updated information about the run. */ -export interface AgentsSubmitToolOutputsToRun200Response extends HttpResponse { +export interface SubmitToolOutputsToRun200Response extends HttpResponse { status: "200"; body: ThreadRunOutput; } -export interface AgentsSubmitToolOutputsToRunDefaultHeaders { +export interface SubmitToolOutputsToRunDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsSubmitToolOutputsToRunDefaultResponse - extends HttpResponse { +export interface SubmitToolOutputsToRunDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsSubmitToolOutputsToRunDefaultHeaders; + headers: RawHttpHeaders & SubmitToolOutputsToRunDefaultHeaders; } /** Updated information about the cancelled run. */ -export interface AgentsCancelRun200Response extends HttpResponse { +export interface CancelRun200Response extends HttpResponse { status: "200"; body: ThreadRunOutput; } -export interface AgentsCancelRunDefaultHeaders { +export interface CancelRunDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsCancelRunDefaultResponse extends HttpResponse { +export interface CancelRunDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsCancelRunDefaultHeaders; + headers: RawHttpHeaders & CancelRunDefaultHeaders; } /** Information about the newly created thread. */ -export interface AgentsCreateThreadAndRun200Response extends HttpResponse { +export interface CreateThreadAndRun200Response extends HttpResponse { status: "200"; body: ThreadRunOutput; } -export interface AgentsCreateThreadAndRunDefaultHeaders { +export interface CreateThreadAndRunDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsCreateThreadAndRunDefaultResponse extends HttpResponse { +export interface CreateThreadAndRunDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsCreateThreadAndRunDefaultHeaders; + headers: RawHttpHeaders & CreateThreadAndRunDefaultHeaders; } /** Information about the requested run step. */ -export interface AgentsGetRunStep200Response extends HttpResponse { +export interface GetRunStep200Response extends HttpResponse { status: "200"; body: RunStepOutput; } -export interface AgentsGetRunStepDefaultHeaders { +export interface GetRunStepDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsGetRunStepDefaultResponse extends HttpResponse { +export interface GetRunStepDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsGetRunStepDefaultHeaders; + headers: RawHttpHeaders & GetRunStepDefaultHeaders; } /** The requested list of run steps. */ -export interface AgentsListRunSteps200Response extends HttpResponse { +export interface ListRunSteps200Response extends HttpResponse { status: "200"; body: OpenAIPageableListOfRunStepOutput; } -export interface AgentsListRunStepsDefaultHeaders { +export interface ListRunStepsDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsListRunStepsDefaultResponse extends HttpResponse { +export interface ListRunStepsDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsListRunStepsDefaultHeaders; + headers: RawHttpHeaders & ListRunStepsDefaultHeaders; } /** The requested list of files. */ -export interface AgentsListFiles200Response extends HttpResponse { +export interface ListFiles200Response extends HttpResponse { status: "200"; body: FileListResponseOutput; } -export interface AgentsListFilesDefaultHeaders { +export interface ListFilesDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsListFilesDefaultResponse extends HttpResponse { +export interface ListFilesDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsListFilesDefaultHeaders; + headers: RawHttpHeaders & ListFilesDefaultHeaders; } /** A representation of the uploaded file. */ -export interface AgentsUploadFile200Response extends HttpResponse { +export interface UploadFile200Response extends HttpResponse { status: "200"; body: OpenAIFileOutput; } -export interface AgentsUploadFileDefaultHeaders { +export interface UploadFileDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsUploadFileDefaultResponse extends HttpResponse { +export interface UploadFileDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsUploadFileDefaultHeaders; + headers: RawHttpHeaders & UploadFileDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsDeleteFile200Response extends HttpResponse { +export interface DeleteFile200Response extends HttpResponse { status: "200"; body: FileDeletionStatusOutput; } -export interface AgentsDeleteFileDefaultHeaders { +export interface DeleteFileDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsDeleteFileDefaultResponse extends HttpResponse { +export interface DeleteFileDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsDeleteFileDefaultHeaders; + headers: RawHttpHeaders & DeleteFileDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsGetFile200Response extends HttpResponse { +export interface GetFile200Response extends HttpResponse { status: "200"; body: OpenAIFileOutput; } -export interface AgentsGetFileDefaultHeaders { +export interface GetFileDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsGetFileDefaultResponse extends HttpResponse { +export interface GetFileDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsGetFileDefaultHeaders; + headers: RawHttpHeaders & GetFileDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsGetFileContent200Response extends HttpResponse { +export interface GetFileContent200Response extends HttpResponse { status: "200"; - body: FileContentResponseOutput; + body: string; } -export interface AgentsGetFileContentDefaultHeaders { +export interface GetFileContentDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsGetFileContentDefaultResponse extends HttpResponse { +export interface GetFileContentDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsGetFileContentDefaultHeaders; + headers: RawHttpHeaders & GetFileContentDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsListVectorStores200Response extends HttpResponse { +export interface ListVectorStores200Response extends HttpResponse { status: "200"; body: OpenAIPageableListOfVectorStoreOutput; } -export interface AgentsListVectorStoresDefaultHeaders { +export interface ListVectorStoresDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsListVectorStoresDefaultResponse extends HttpResponse { +export interface ListVectorStoresDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsListVectorStoresDefaultHeaders; + headers: RawHttpHeaders & ListVectorStoresDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsCreateVectorStore200Response extends HttpResponse { +export interface CreateVectorStore200Response extends HttpResponse { status: "200"; body: VectorStoreOutput; } -export interface AgentsCreateVectorStoreDefaultHeaders { +export interface CreateVectorStoreDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsCreateVectorStoreDefaultResponse extends HttpResponse { +export interface CreateVectorStoreDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsCreateVectorStoreDefaultHeaders; + headers: RawHttpHeaders & CreateVectorStoreDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsGetVectorStore200Response extends HttpResponse { +export interface GetVectorStore200Response extends HttpResponse { status: "200"; body: VectorStoreOutput; } -export interface AgentsGetVectorStoreDefaultHeaders { +export interface GetVectorStoreDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsGetVectorStoreDefaultResponse extends HttpResponse { +export interface GetVectorStoreDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsGetVectorStoreDefaultHeaders; + headers: RawHttpHeaders & GetVectorStoreDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsModifyVectorStore200Response extends HttpResponse { +export interface ModifyVectorStore200Response extends HttpResponse { status: "200"; body: VectorStoreOutput; } -export interface AgentsModifyVectorStoreDefaultHeaders { +export interface ModifyVectorStoreDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsModifyVectorStoreDefaultResponse extends HttpResponse { +export interface ModifyVectorStoreDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsModifyVectorStoreDefaultHeaders; + headers: RawHttpHeaders & ModifyVectorStoreDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsDeleteVectorStore200Response extends HttpResponse { +export interface DeleteVectorStore200Response extends HttpResponse { status: "200"; body: VectorStoreDeletionStatusOutput; } -export interface AgentsDeleteVectorStoreDefaultHeaders { +export interface DeleteVectorStoreDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsDeleteVectorStoreDefaultResponse extends HttpResponse { +export interface DeleteVectorStoreDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsDeleteVectorStoreDefaultHeaders; + headers: RawHttpHeaders & DeleteVectorStoreDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsListVectorStoreFiles200Response extends HttpResponse { +export interface ListVectorStoreFiles200Response extends HttpResponse { status: "200"; body: OpenAIPageableListOfVectorStoreFileOutput; } -export interface AgentsListVectorStoreFilesDefaultHeaders { +export interface ListVectorStoreFilesDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsListVectorStoreFilesDefaultResponse - extends HttpResponse { +export interface ListVectorStoreFilesDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsListVectorStoreFilesDefaultHeaders; + headers: RawHttpHeaders & ListVectorStoreFilesDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsCreateVectorStoreFile200Response extends HttpResponse { +export interface CreateVectorStoreFile200Response extends HttpResponse { status: "200"; body: VectorStoreFileOutput; } -export interface AgentsCreateVectorStoreFileDefaultHeaders { +export interface CreateVectorStoreFileDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsCreateVectorStoreFileDefaultResponse - extends HttpResponse { +export interface CreateVectorStoreFileDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsCreateVectorStoreFileDefaultHeaders; + headers: RawHttpHeaders & CreateVectorStoreFileDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsGetVectorStoreFile200Response extends HttpResponse { +export interface GetVectorStoreFile200Response extends HttpResponse { status: "200"; body: VectorStoreFileOutput; } -export interface AgentsGetVectorStoreFileDefaultHeaders { +export interface GetVectorStoreFileDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsGetVectorStoreFileDefaultResponse extends HttpResponse { +export interface GetVectorStoreFileDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsGetVectorStoreFileDefaultHeaders; + headers: RawHttpHeaders & GetVectorStoreFileDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsDeleteVectorStoreFile200Response extends HttpResponse { +export interface DeleteVectorStoreFile200Response extends HttpResponse { status: "200"; body: VectorStoreFileDeletionStatusOutput; } -export interface AgentsDeleteVectorStoreFileDefaultHeaders { +export interface DeleteVectorStoreFileDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsDeleteVectorStoreFileDefaultResponse - extends HttpResponse { +export interface DeleteVectorStoreFileDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsDeleteVectorStoreFileDefaultHeaders; + headers: RawHttpHeaders & DeleteVectorStoreFileDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsCreateVectorStoreFileBatch200Response - extends HttpResponse { +export interface CreateVectorStoreFileBatch200Response extends HttpResponse { status: "200"; body: VectorStoreFileBatchOutput; } -export interface AgentsCreateVectorStoreFileBatchDefaultHeaders { +export interface CreateVectorStoreFileBatchDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsCreateVectorStoreFileBatchDefaultResponse +export interface CreateVectorStoreFileBatchDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsCreateVectorStoreFileBatchDefaultHeaders; + headers: RawHttpHeaders & CreateVectorStoreFileBatchDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsGetVectorStoreFileBatch200Response extends HttpResponse { +export interface GetVectorStoreFileBatch200Response extends HttpResponse { status: "200"; body: VectorStoreFileBatchOutput; } -export interface AgentsGetVectorStoreFileBatchDefaultHeaders { +export interface GetVectorStoreFileBatchDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsGetVectorStoreFileBatchDefaultResponse - extends HttpResponse { +export interface GetVectorStoreFileBatchDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsGetVectorStoreFileBatchDefaultHeaders; + headers: RawHttpHeaders & GetVectorStoreFileBatchDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsCancelVectorStoreFileBatch200Response - extends HttpResponse { +export interface CancelVectorStoreFileBatch200Response extends HttpResponse { status: "200"; body: VectorStoreFileBatchOutput; } -export interface AgentsCancelVectorStoreFileBatchDefaultHeaders { +export interface CancelVectorStoreFileBatchDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsCancelVectorStoreFileBatchDefaultResponse +export interface CancelVectorStoreFileBatchDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsCancelVectorStoreFileBatchDefaultHeaders; + headers: RawHttpHeaders & CancelVectorStoreFileBatchDefaultHeaders; } /** The request has succeeded. */ -export interface AgentsListVectorStoreFileBatchFiles200Response - extends HttpResponse { +export interface ListVectorStoreFileBatchFiles200Response extends HttpResponse { status: "200"; body: OpenAIPageableListOfVectorStoreFileOutput; } -export interface AgentsListVectorStoreFileBatchFilesDefaultHeaders { +export interface ListVectorStoreFileBatchFilesDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface AgentsListVectorStoreFileBatchFilesDefaultResponse +export interface ListVectorStoreFileBatchFilesDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & AgentsListVectorStoreFileBatchFilesDefaultHeaders; + headers: RawHttpHeaders & ListVectorStoreFileBatchFilesDefaultHeaders; +} + +/** The request has succeeded. */ +export interface GetWorkspace200Response extends HttpResponse { + status: "200"; + body: GetWorkspaceResponseOutput; +} + +export interface GetWorkspaceDefaultHeaders { + /** String error code indicating what went wrong. */ + "x-ms-error-code"?: string; +} + +export interface GetWorkspaceDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponse; + headers: RawHttpHeaders & GetWorkspaceDefaultHeaders; } /** The request has succeeded. */ -export interface ConnectionsList200Response extends HttpResponse { +export interface ListConnections200Response extends HttpResponse { status: "200"; - body: ConnectionsListResponseOutput; + body: ListConnectionsResponseOutput; } -export interface ConnectionsListDefaultHeaders { +export interface ListConnectionsDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface ConnectionsListDefaultResponse extends HttpResponse { +export interface ListConnectionsDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & ConnectionsListDefaultHeaders; + headers: RawHttpHeaders & ListConnectionsDefaultHeaders; } /** The request has succeeded. */ -export interface ConnectionsGet200Response extends HttpResponse { +export interface GetConnection200Response extends HttpResponse { status: "200"; - body: ConnectionsListSecretsResponseOutput; + body: GetConnectionResponseOutput; } -export interface ConnectionsGetDefaultHeaders { +export interface GetConnectionDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface ConnectionsGetDefaultResponse extends HttpResponse { +export interface GetConnectionDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & ConnectionsGetDefaultHeaders; + headers: RawHttpHeaders & GetConnectionDefaultHeaders; } /** The request has succeeded. */ -export interface ConnectionsListSecrets200Response extends HttpResponse { +export interface GetConnectionWithSecrets200Response extends HttpResponse { status: "200"; - body: ConnectionsListSecretsResponseOutput; + body: GetConnectionResponseOutput; } -export interface ConnectionsListSecretsDefaultHeaders { +export interface GetConnectionWithSecretsDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface ConnectionsListSecretsDefaultResponse extends HttpResponse { +export interface GetConnectionWithSecretsDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & ConnectionsListSecretsDefaultHeaders; + headers: RawHttpHeaders & GetConnectionWithSecretsDefaultHeaders; } -export interface EvaluationsGet200Headers { +/** The request has succeeded. */ +export interface GetAppInsights200Response extends HttpResponse { + status: "200"; + body: GetAppInsightsResponseOutput; +} + +export interface GetAppInsightsDefaultHeaders { + /** String error code indicating what went wrong. */ + "x-ms-error-code"?: string; +} + +export interface GetAppInsightsDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponse; + headers: RawHttpHeaders & GetAppInsightsDefaultHeaders; +} + +export interface Get200Headers { /** An opaque, globally-unique, client-generated string identifier for the request. */ "x-ms-client-request-id"?: string; } /** The request has succeeded. */ -export interface EvaluationsGet200Response extends HttpResponse { +export interface Get200Response extends HttpResponse { status: "200"; body: EvaluationOutput; - headers: RawHttpHeaders & EvaluationsGet200Headers; + headers: RawHttpHeaders & Get200Headers; } -export interface EvaluationsGetDefaultHeaders { +export interface GetDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface EvaluationsGetDefaultResponse extends HttpResponse { +export interface GetDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & EvaluationsGetDefaultHeaders; + headers: RawHttpHeaders & GetDefaultHeaders; } /** Response model for create evaluation */ -export interface EvaluationsCreate201Response extends HttpResponse { +export interface Create201Response extends HttpResponse { status: "201"; body: EvaluationOutput; } -export interface EvaluationsList200Headers { +export interface List200Headers { /** An opaque, globally-unique, client-generated string identifier for the request. */ "x-ms-client-request-id"?: string; } /** The request has succeeded. */ -export interface EvaluationsList200Response extends HttpResponse { +export interface List200Response extends HttpResponse { status: "200"; body: PagedEvaluationOutput; - headers: RawHttpHeaders & EvaluationsList200Headers; + headers: RawHttpHeaders & List200Headers; } -export interface EvaluationsListDefaultHeaders { +export interface ListDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface EvaluationsListDefaultResponse extends HttpResponse { +export interface ListDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & EvaluationsListDefaultHeaders; + headers: RawHttpHeaders & ListDefaultHeaders; } -export interface EvaluationsUpdate200Headers { +export interface Update200Headers { /** An opaque, globally-unique, client-generated string identifier for the request. */ "x-ms-client-request-id"?: string; } /** The request has succeeded. */ -export interface EvaluationsUpdate200Response extends HttpResponse { +export interface Update200Response extends HttpResponse { status: "200"; body: EvaluationOutput; - headers: RawHttpHeaders & EvaluationsUpdate200Headers; + headers: RawHttpHeaders & Update200Headers; } -export interface EvaluationsUpdateDefaultHeaders { +export interface UpdateDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface EvaluationsUpdateDefaultResponse extends HttpResponse { +export interface UpdateDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & EvaluationsUpdateDefaultHeaders; + headers: RawHttpHeaders & UpdateDefaultHeaders; } -export interface EvaluationsGetSchedule200Headers { +export interface GetSchedule200Headers { /** An opaque, globally-unique, client-generated string identifier for the request. */ "x-ms-client-request-id"?: string; } /** The request has succeeded. */ -export interface EvaluationsGetSchedule200Response extends HttpResponse { +export interface GetSchedule200Response extends HttpResponse { status: "200"; body: EvaluationScheduleOutput; - headers: RawHttpHeaders & EvaluationsGetSchedule200Headers; + headers: RawHttpHeaders & GetSchedule200Headers; } -export interface EvaluationsGetScheduleDefaultHeaders { +export interface GetScheduleDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface EvaluationsGetScheduleDefaultResponse extends HttpResponse { +export interface GetScheduleDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & EvaluationsGetScheduleDefaultHeaders; + headers: RawHttpHeaders & GetScheduleDefaultHeaders; } -export interface EvaluationsCreateOrReplaceSchedule200Headers { +export interface CreateOrReplaceSchedule200Headers { /** An opaque, globally-unique, client-generated string identifier for the request. */ "x-ms-client-request-id"?: string; } /** The request has succeeded. */ -export interface EvaluationsCreateOrReplaceSchedule200Response - extends HttpResponse { +export interface CreateOrReplaceSchedule200Response extends HttpResponse { status: "200"; body: EvaluationScheduleOutput; - headers: RawHttpHeaders & EvaluationsCreateOrReplaceSchedule200Headers; + headers: RawHttpHeaders & CreateOrReplaceSchedule200Headers; } -export interface EvaluationsCreateOrReplaceSchedule201Headers { +export interface CreateOrReplaceSchedule201Headers { /** An opaque, globally-unique, client-generated string identifier for the request. */ "x-ms-client-request-id"?: string; } /** The request has succeeded and a new resource has been created as a result. */ -export interface EvaluationsCreateOrReplaceSchedule201Response - extends HttpResponse { +export interface CreateOrReplaceSchedule201Response extends HttpResponse { status: "201"; body: EvaluationScheduleOutput; - headers: RawHttpHeaders & EvaluationsCreateOrReplaceSchedule201Headers; + headers: RawHttpHeaders & CreateOrReplaceSchedule201Headers; } -export interface EvaluationsCreateOrReplaceScheduleDefaultHeaders { +export interface CreateOrReplaceScheduleDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface EvaluationsCreateOrReplaceScheduleDefaultResponse - extends HttpResponse { +export interface CreateOrReplaceScheduleDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & EvaluationsCreateOrReplaceScheduleDefaultHeaders; + headers: RawHttpHeaders & CreateOrReplaceScheduleDefaultHeaders; } -export interface EvaluationsListSchedule200Headers { +export interface ListSchedule200Headers { /** An opaque, globally-unique, client-generated string identifier for the request. */ "x-ms-client-request-id"?: string; } /** The request has succeeded. */ -export interface EvaluationsListSchedule200Response extends HttpResponse { +export interface ListSchedule200Response extends HttpResponse { status: "200"; body: PagedEvaluationScheduleOutput; - headers: RawHttpHeaders & EvaluationsListSchedule200Headers; + headers: RawHttpHeaders & ListSchedule200Headers; } -export interface EvaluationsListScheduleDefaultHeaders { +export interface ListScheduleDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface EvaluationsListScheduleDefaultResponse extends HttpResponse { +export interface ListScheduleDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & EvaluationsListScheduleDefaultHeaders; -} - -export interface EvaluationsDeleteSchedule204Headers { - /** An opaque, globally-unique, client-generated string identifier for the request. */ - "x-ms-client-request-id"?: string; + headers: RawHttpHeaders & ListScheduleDefaultHeaders; } /** There is no content to send for this request, but the headers may be useful. */ -export interface EvaluationsDeleteSchedule204Response extends HttpResponse { +export interface DisableSchedule204Response extends HttpResponse { status: "204"; - headers: RawHttpHeaders & EvaluationsDeleteSchedule204Headers; } -export interface EvaluationsDeleteScheduleDefaultHeaders { +export interface DisableScheduleDefaultHeaders { /** String error code indicating what went wrong. */ "x-ms-error-code"?: string; } -export interface EvaluationsDeleteScheduleDefaultResponse extends HttpResponse { +export interface DisableScheduleDefaultResponse extends HttpResponse { status: string; body: ErrorResponse; - headers: RawHttpHeaders & EvaluationsDeleteScheduleDefaultHeaders; + headers: RawHttpHeaders & DisableScheduleDefaultHeaders; } diff --git a/sdk/ai/ai-projects/tsp-location.yaml b/sdk/ai/ai-projects/tsp-location.yaml index 685d3b9d1306..1bd1df7e48d5 100644 --- a/sdk/ai/ai-projects/tsp-location.yaml +++ b/sdk/ai/ai-projects/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/ai/Azure.AI.Projects -commit: bc6f606c7e6b95fa26f95b91ca80fe8e64536b21 +commit: aa6957e65136e33582b6876300dfcef6f42aa340 repo: Azure/azure-rest-api-specs additionalDirectories: