Execution sequence
Discover identity, inspect the published action and eligible workspace, validate input and review the exact plan before executing. Retain full results and verify the operation-specific outcome.
Published actions
- Get Insights widget: Read the selected workspace’s saved dashboard, alert, report and recent-update counts.
- Get Insights bootstrap: Read the authenticated user and organization used to initialize Insights.
- List Insights sources: List the selected workspace’s registered analytics sources.
- Register Insights source: Register the selected workspace’s single active analytics source.
- Transfer Insights source: Move a registered source into another administered workspace, optionally merging into its existing source.
- List Insights collection keys: List website collectors without exposing their one-time collection secrets.
- Create Insights collection key: Create an origin-restricted website collector and receive its key once.
- Revoke Insights collection key: Permanently revoke one selected workspace collector.
- List Insights event definitions: Read the selected workspace’s governed event name/version/purpose declarations.
- Register Insights event definition: Register one versioned, purpose-bound event definition in the selected workspace.
- Ingest Insights event batch: Validate and enqueue a batch, returning per-event acceptance, duplicate and rejection outcomes.
- Get Insights analytics: Read workspace-scoped analytics with a bounded time window, optional source and dimension drill-downs.
- List Insights dashboards: Read saved dashboard configuration and ordered widgets in the selected workspace.
- Create Insights dashboard: Save a uniquely named dashboard with one to eight distinct widget kinds.
- Replace Insights dashboard: Replace the selected dashboard’s entire editable configuration and widget set.
- Delete Insights dashboard: Permanently remove one saved dashboard and its widget configuration.
- Inspect Insights organization inventory: Return database row counts and object metadata for the authenticated organization in this environment.
- Erase Insights organization data: Erase this environment’s Insights organization rows and archive/report objects, then report verification counts.
- Archive empty Insights workspace: Check Insights emptiness, then request the platform-owned workspace archive.
Examples and proof
Actual exported Insights worker, all nine migrated D1 scripts and isolated local R2. Auth identity/grants/archive transport, queue delivery and Analytics Engine sink are synthetic; local queue processing is called explicitly. Notify and Nexus are disabled. No live website, provider, paid usage or deployed data erasure is tested.
The examples cover 19 source-declared actions. They do not add aliases for unpublished functionality. Source transfer and organization-wide inventory/erasure require their own scope review.