diff --git a/packages/v0-sdk/openapi.json b/packages/v0-sdk/openapi.json index 1eeefeb..2b2c050 100644 --- a/packages/v0-sdk/openapi.json +++ b/packages/v0-sdk/openapi.json @@ -6810,7 +6810,7 @@ "/reports/usage": { "get": { "summary": "Get Usage Report", - "description": "Retrieves detailed usage events for the authenticated user or team, including costs, event types, models used, and metadata. Shows the same data as displayed in the usage dashboard. Can be filtered by chatId to show usage for a specific chat.", + "description": "Retrieves detailed usage events for the authenticated user or team, including costs, event types, models used, and metadata. Shows the same data as displayed in the usage dashboard. Can be filtered by chatId to show usage for a specific chat, or by userId to show usage for a specific user.", "operationId": "reports.getUsage", "tags": ["reports"], "responses": { @@ -7029,6 +7029,15 @@ }, "description": "Query parameter \"messageId\"" }, + { + "name": "userId", + "in": "query", + "required": false, + "schema": { + "type": "string" + }, + "description": "Query parameter \"userId\"" + }, { "name": "limit", "in": "query", diff --git a/packages/v0-sdk/src/sdk/v0.ts b/packages/v0-sdk/src/sdk/v0.ts index 28711a7..59de7d9 100644 --- a/packages/v0-sdk/src/sdk/v0.ts +++ b/packages/v0-sdk/src/sdk/v0.ts @@ -1824,6 +1824,7 @@ export function createClient(config: V0ClientConfig = {}) { endDate?: string chatId?: string messageId?: string + userId?: string limit?: number cursor?: string }): Promise { @@ -1834,6 +1835,7 @@ export function createClient(config: V0ClientConfig = {}) { endDate: params.endDate, chatId: params.chatId, messageId: params.messageId, + userId: params.userId, limit: params.limit !== undefined ? String(params.limit) : undefined, cursor: params.cursor,