Preserve raw response usage metadata (#41980)

## What changed

- Include the complete upstream `response.usage` object in
  `ResponseUsageMetadata.metadata` while retaining the existing `amount` field.
- Expose the metadata through `rawResponse/completed` notifications and update
  the generated JSON and TypeScript schemas.

## Testing

- Cover SSE, WebSocket, turn, and compaction completion paths.

GitOrigin-RevId: 6d79b1b4c92ac11abf43ec98f380b4868288a701
This commit is contained in:
sayan-oai authored and copyberry committed 2026-09-01 05:17:11 +00:00
1 parent d038f3448f
commit e017e93ace
14 files changed
+62 -13

No files matched your search

@@ -9,7 +9,8 @@
"string",
"null"
]
}
},
"metadata": true
},
"type": "object"
},