const { aparteGlobalConfig } = window.aparte;
// The info button appears only on a message that carries usage, and only asks:
// the popover with the numbers is your app's.
aparteGlobalConfig.setBubbleActions({ info: true });
document.querySelector('aparte-chat-bubble').setUsage({ inputTokens: 412, outputTokens: 38, durationMs: 1260 });
document.addEventListener('aparte-message-info', (e) => console.log('show the stats for', e.detail));