From bc825f94b506922632d841e29684f03a23cdae6c Mon Sep 17 00:00:00 2001 From: zyssyz123 <916125788@qq.com> Date: Wed, 17 Jun 2026 23:57:02 +0800 Subject: [PATCH] fix(agent): sync generated observability contracts (#37597) --- api/openapi/markdown/console-openapi.md | 6 +++--- packages/contracts/generated/api/console/agent/zod.gen.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/openapi/markdown/console-openapi.md b/api/openapi/markdown/console-openapi.md index ff0f4337a28..a559a526e75 100644 --- a/api/openapi/markdown/console-openapi.md +++ b/api/openapi/markdown/console-openapi.md @@ -663,7 +663,7 @@ Commit an uploaded file into the Agent App drive under files/ | Name | Located in | Description | Required | Schema | | ---- | ---------- | ----------- | -------- | ------ | -| agent_id | path | | Yes | string | +| agent_id | path | | Yes | string (uuid) | #### Responses @@ -703,8 +703,8 @@ Commit an uploaded file into the Agent App drive under files/ | source | query | Filter by all, console/explore, api/service-api, web-app, debugger, openapi, or trigger | No | string | | start | query | Start date (YYYY-MM-DD HH:MM) | No | string | | status | query | Filter by success, failed, or paused | No | string | -| agent_id | path | | Yes | string | -| conversation_id | path | | Yes | string | +| agent_id | path | | Yes | string (uuid) | +| conversation_id | path | | Yes | string (uuid) | #### Responses diff --git a/packages/contracts/generated/api/console/agent/zod.gen.ts b/packages/contracts/generated/api/console/agent/zod.gen.ts index 7f3f711360b..07e753e0c9b 100644 --- a/packages/contracts/generated/api/console/agent/zod.gen.ts +++ b/packages/contracts/generated/api/console/agent/zod.gen.ts @@ -2347,7 +2347,7 @@ export const zPostAgentByAgentIdFilesPath = z.object({ export const zPostAgentByAgentIdFilesResponse = zAgentDriveFileCommitResponse export const zGetAgentByAgentIdLogSourcesPath = z.object({ - agent_id: z.string(), + agent_id: z.uuid(), }) /** @@ -2375,8 +2375,8 @@ export const zGetAgentByAgentIdLogsQuery = z.object({ export const zGetAgentByAgentIdLogsResponse = zAgentLogListResponse export const zGetAgentByAgentIdLogsByConversationIdMessagesPath = z.object({ - agent_id: z.string(), - conversation_id: z.string(), + agent_id: z.uuid(), + conversation_id: z.uuid(), }) export const zGetAgentByAgentIdLogsByConversationIdMessagesQuery = z.object({