mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 18:37:46 +08:00
feat(gateway): add Codex Live and OpenAI Realtime
Implement preflighted Live/Realtime WebSocket transports, protocol-aware authentication, usage auditing, UI filtering, and legacy Codex permission migration.
This commit is contained in:
@@ -153,4 +153,29 @@ describe('usageApi contract alignment', () => {
|
||||
timeout: 120000,
|
||||
})
|
||||
})
|
||||
|
||||
it('passes the WebSocket usage type filter to the admin records endpoint', async () => {
|
||||
getMock.mockResolvedValueOnce({
|
||||
data: {
|
||||
records: [],
|
||||
total: 0,
|
||||
limit: 20,
|
||||
offset: 0,
|
||||
},
|
||||
})
|
||||
|
||||
await usageApi.getAllUsageRecords({
|
||||
status: 'websocket',
|
||||
limit: 20,
|
||||
offset: 0,
|
||||
})
|
||||
|
||||
expect(getMock).toHaveBeenCalledWith('/api/admin/usage/records', {
|
||||
params: {
|
||||
status: 'websocket',
|
||||
limit: 20,
|
||||
offset: 0,
|
||||
},
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user