Add TypeScript sample: Copilot Interaction Export API compliance dashboard#393
Open
keshavk-msft wants to merge 1 commit into
Open
Conversation
…board A pull-based companion to the change-notifications-copilot-ai-interactions sample. - Server-to-server export via Microsoft Graph getAllEnterpriseInteractions - MSAL client-credentials auth with AiEnterpriseInteraction.Read.All - Full @odata.nextLink pagination + appClass filtering - SQLite (WAL) archival with upsert semantics - node-cron scheduler for automatic exports - React + Vite + Tailwind + Recharts compliance dashboard - Tabs: Overview, Interactions, Sessions, Export and Archive - JSON / CSV download endpoints
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new TypeScript sample under
typescript/samples/interaction-export-copilot-compliancethat complements the existingchange-notifications-copilot-ai-interactionssample.aiInteractionHistory: getAllEnterpriseInteractionsWhat's included
Backend (
src/)@azure/msal-nodeclient-credentials auth (scope:https://graph.microsoft.com/.default)@odata.nextLinkpagination and optional$filter=appClass eq '…'better-sqlite3(WAL mode) persistence with upsert semanticsnode-cronscheduler for automatic hourly exportsrequestId,sessionId)npm run export)Frontend (
client/)REST API endpoints
GET/api/statsGET/api/interactionsappClass,interactionType,search,startDate,endDate,sessionId)GET/api/sessionsGET/api/sessions/:sessionIdPOST/api/exportGET/api/export/downloadformat=json|csv)Prerequisites
AiEnterpriseInteraction.Read.All(Application) + admin consentTested with real tenant data
Documentation links
aiInteractionHistory: getAllEnterpriseInteractionsaiInteractionresource type