Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion packages/v0-sdk/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/v0-sdk/src/sdk/v0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1824,6 +1824,7 @@ export function createClient(config: V0ClientConfig = {}) {
endDate?: string
chatId?: string
messageId?: string
userId?: string
limit?: number
cursor?: string
}): Promise<ReportsGetUsageResponse> {
Expand All @@ -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,
Expand Down