:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(desktop-recordings): remove retired product and recall.ai secrets (#66111)
Lucas Faria47058f1c5ddd
diff --git a/.semgrep/rules/idor-team-scoped-models.yaml b/.semgrep/rules/idor-team-scoped-models.yamlindex 0d8490ff09f2..a9fad5a7223d 100644--- a/.semgrep/rules/idor-team-scoped-models.yaml+++ b/.semgrep/rules/idor-team-scoped-models.yaml@@ -111,7 +111,6 @@ rules:|Deployment|DeploymentEvent|DeploymentProject- |DesktopRecording|EarlyAccessFeature|EmailMessageMapping|EvaluationContext@@ -378,7 +377,6 @@ rules:|Deployment|DeploymentEvent|DeploymentProject- |DesktopRecording|EarlyAccessFeature|EmailMessageMapping|EvaluationContextdiff --git a/frontend/src/lib/scopes.tsx b/frontend/src/lib/scopes.tsxindex 3c66feb7a1bc..d197854ab696 100644--- a/frontend/src/lib/scopes.tsx+++ b/frontend/src/lib/scopes.tsx@@ -41,7 +41,6 @@ export const API_SCOPES: APIScope[] = [{ key: 'dashboard', objectName: 'Dashboard', objectPlural: 'dashboards' },{ key: 'dashboard_template', objectName: 'Dashboard template', objectPlural: 'dashboard templates' },{ key: 'dataset', objectName: 'Dataset', objectPlural: 'datasets' },- { key: 'desktop_recording', objectName: 'Desktop recording', objectPlural: 'desktop recordings' },{ key: 'early_access_feature', objectName: 'Early access feature', objectPlural: 'early access features' },{ key: 'element', objectName: 'Element', objectPlural: 'elements' },{ key: 'endpoint', objectName: 'Endpoint', objectPlural: 'endpoints' },diff --git a/frontend/src/types.ts b/frontend/src/types.tsindex 3da60c0ca0cd..d2829eb51674 100644--- a/frontend/src/types.ts+++ b/frontend/src/types.ts@@ -5581,7 +5581,6 @@ export type APIScopeObject =| 'dashboard'| 'dashboard_template'| 'dataset'- | 'desktop_recording'| 'early_access_feature'| 'element'| 'endpoint'diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 9e34fe0d69f6..71bd1430f754 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -3018,8 +3018,6 @@ importers:specifier: 18.3.1version: 18.3.1- products/desktop_recordings: {}-products/early_access_features:dependencies:'@posthog/icons':diff --git a/posthog/models/scoping/baseline_unmigrated.txt b/posthog/models/scoping/baseline_unmigrated.txtindex c815879df6e4..863d2bcc5772 100644--- a/posthog/models/scoping/baseline_unmigrated.txt+++ b/posthog/models/scoping/baseline_unmigrated.txt@@ -49,7 +49,6 @@ DataWarehouseSavedQueryFolderDataWarehouseTableDatasetDatasetItem-DesktopRecordingEarlyAccessFeatureEdgeEmailChanneldiff --git a/posthog/scopes.py b/posthog/scopes.pyindex abfac981b6d3..a7c647aa4e42 100644--- a/posthog/scopes.py+++ b/posthog/scopes.py@@ -38,7 +38,6 @@ APIScopeObject = Literal["event_filter","dashboard_template","dataset",- "desktop_recording","early_access_feature","endpoint","engineering_analytics",diff --git a/posthog/settings/integrations.py b/posthog/settings/integrations.pyindex 92b12f4d7caa..469549cf8acc 100644--- a/posthog/settings/integrations.py+++ b/posthog/settings/integrations.py@@ -88,10 +88,6 @@ WORKOS_RADAR_ENABLED = get_from_env("WORKOS_RADAR_ENABLED", False, type_cast=strCLOUDFLARE_TURNSTILE_SECRET_KEY = get_from_env("CLOUDFLARE_TURNSTILE_SECRET_KEY", "")CLOUDFLARE_TURNSTILE_SITE_KEY = get_from_env("CLOUDFLARE_TURNSTILE_SITE_KEY", "")-# Recall.ai (for desktop recordings product)-RECALL_AI_API_KEY = get_from_env("RECALL_AI_API_KEY", "")-RECALL_AI_API_URL = get_from_env("RECALL_AI_API_URL", "https://us-west-2.recall.ai")-# ElevenLabs (Max hands-free mode)# STT goes browser ↔ ElevenLabs over a single-use Scribe WebSocket token (backend just mints).# TTS goes browser → PostHog → ElevenLabs → audio stream (backend proxies the key to ElevenLabs).diff --git a/posthog/settings/web.py b/posthog/settings/web.pyindex 09f0780ac6ad..514ef7487ad0 100644--- a/posthog/settings/web.py+++ b/posthog/settings/web.py@@ -49,7 +49,6 @@ PRODUCTS_APPS = ["products.surveys.backend.apps.SurveysConfig","products.data_warehouse.backend.apps.DataWarehouseConfig","products.data_modeling.backend.apps.DataModelingConfig",- "products.desktop_recordings.backend.apps.DesktopRecordingsConfig","products.live_debugger.backend.apps.LiveDebuggerConfig","products.experiments.backend.apps.ExperimentsConfig","products.feature_flags.backend.apps.FeatureFlagsConfig",@@ -486,8 +485,6 @@ SPECTACULAR_SETTINGS = {"ConversationType": "products.posthog_ai.backend.models.assistant.Conversation.Type","DetailModeEnum": "products.ai_observability.backend.summarization.models.SummarizationMode","SavedQueryStatusEnum": "products.data_modeling.backend.models.datawarehouse_saved_query.DataWarehouseSavedQuery.Status",- "DesktopRecordingStatusEnum": "products.desktop_recordings.backend.models.DesktopRecording.Status",- "MeetingPlatformEnum": "products.desktop_recordings.backend.models.DesktopRecording.Platform","PushTokenPlatformEnum": "posthog.models.user_push_token.UserPushToken.Platform","PropertyDefinitionTypeEnum": "products.event_definitions.backend.models.property_definition.PropertyType","ExternalDataSourceTypeEnum": "products.warehouse_sources.backend.types.ExternalDataSourceType",diff --git a/products/desktop_recordings/README.md b/products/desktop_recordings/README.mddeleted file mode 100644index 768dea38f482..000000000000--- a/products/desktop_recordings/README.md+++ /dev/null@@ -1,127 +0,0 @@-# Desktop Recordings Product--Backend API for recording desktop meetings via Array desktop app using Recall.ai.--## Setup--### Environment Variables--```bash-RECALL_AI_API_KEY=your-recall-ai-api-key-RECALL_AI_API_URL=https://us-west-2.recall.ai # Optional, defaults to this-```--## API Endpoints--### Create Upload Token--```bash-POST /api/environments/{team_id}/desktop_recordings/-Authorization: Bearer {personal_api_key}-Content-Type: application/json--{- "platform": "zoom" # or "teams", "meet", "slack", "desktop_audio"-}--Response:-{- "upload_token": "...", # Pass to Recall SDK- "id": "..." # PostHog recording ID- ...additional fields...-}-```--### List Recordings--```bash-GET /api/environments/{team_id}/desktop_recordings/-Authorization: Bearer {personal_api_key}--Query params:-- platform: Filter by platform (zoom, teams, meet, etc.)-- status: Filter by status (recording, uploading, processing, ready, failed)-- search: Search transcript text-```--### Get Recording Details--```bash-GET /api/environments/{team_id}/desktop_recordings/{id}/-Authorization: Bearer {personal_api_key}-```--### Get Transcript--```bash-GET /api/environments/{team_id}/desktop_recordings/{id}/transcript/-Authorization: Bearer {personal_api_key}--Response:-{- "full_text": "Complete transcript...",- "segments": [- {- "text": "...",- "start": 0,- "end": 5,- "speaker": "Speaker 1"- }- ],- "extracted_tasks": [- {- "title": "Fix login bug",- "description": "Users can't log in on Safari",- "assigned_to": "John"- }- ]-}-```--## Personal API Key Scopes--Users need to create a Personal API Key with these scopes:--- `desktop_recording:read` - View recordings and transcripts-- `desktop_recording:write` - Create new recordings--## Architecture--### Data Flow--1. Array desktop detects meeting → calls `create_upload`-2. PostHog creates recording → returns Recall upload token-3. Array uses Recall SDK to record → uploads to Recall-4. Once upload is done, Array updates the desktop recording on PostHog-5. Recording status changes to "ready"--### Models--- `DesktopRecording`: Stores recording metadata, status, video URL-- `RecordingTranscript`: Stores transcript text, segments, extracted tasks--### Webhook Events--- `sdk_upload.uploading`: Recording started uploading-- `sdk_upload.complete`: Upload finished, triggers processing-- `sdk_upload.failed`: Upload failed--## Testing--```bash-# Run backend tests-pytest products/desktop_recordings/backend/tests/ -v--# Test API endpoint-curl -X POST 'http://localhost:8010/api/environments/1/desktop_recordings/' \- -H 'Authorization: Bearer phx_YOUR_API_KEY' \- -H 'Content-Type: application/json' \- -d '{"platform": "zoom"}'-```--## Next Steps (Phase 2)--- Web UI to view recordings in PostHog-- Integration with PostHog Tasks product-- Team permissions and sharing-- Search across all transcriptsdiff --git a/products/desktop_recordings/__init__.py b/products/desktop_recordings/__init__.pydeleted file mode 100644index e69de29bb2d1..000000000000diff --git a/products/desktop_recordings/backend/__init__.py b/products/desktop_recordings/backend/__init__.pydeleted file mode 100644index becf85b74e75..000000000000--- a/products/desktop_recordings/backend/__init__.py+++ /dev/null@@ -1 +0,0 @@-"""Backend for desktop recordings product."""diff --git a/products/desktop_recordings/backend/admin.py b/products/desktop_recordings/backend/admin.pydeleted file mode 100644index f3e0bfcd2db5..000000000000--- a/products/desktop_recordings/backend/admin.py+++ /dev/null@@ -1,106 +0,0 @@-from django.contrib import admin-from django.urls import reverse-from django.utils.html import format_html--from products.desktop_recordings.backend.models import DesktopRecording--[email protected](DesktopRecording)-class DesktopRecordingAdmin(admin.ModelAdmin):- list_display = (- "id",- "meeting_title",- "platform",- "status",- "team_link",- "created_by_link",- "started_at",- "duration_seconds",- )- list_filter = ("status", "platform", "started_at", "created_at")- search_fields = ("id", "meeting_title", "meeting_url", "team__name", "created_by__email")- readonly_fields = (- "id",- "sdk_upload_id",- "recall_recording_id",- "created_at",- "updated_at",- "started_at",- "completed_at",- "summary_generated_at",- "tasks_generated_at",- )- autocomplete_fields = ("team", "created_by")-- fieldsets = (- (None, {"fields": ("id", "team", "created_by", "status")}),- (- "Meeting info",- {- "fields": (- "platform",- "meeting_title",- "meeting_url",- "duration_seconds",- "participants",- )- },- ),- (- "Recording details",- {- "fields": (- "sdk_upload_id",- "recall_recording_id",- "video_url",- "video_size_bytes",- "notes",- "error_message",- )- },- ),- (- "Transcript & AI",- {- "fields": (- "transcript_text",- "transcript_segments",- "summary",- "summary_generated_at",- "extracted_tasks",- "tasks_generated_at",- )- },- ),- (- "Dates",- {- "fields": (- "started_at",- "completed_at",- "created_at",- "updated_at",- )- },- ),- )-- @admin.display(description="Team")- def team_link(self, obj: DesktopRecording) -> str:- if obj.team:- return format_html(- '<a href="{}">{}</a>',- reverse("admin:posthog_team_change", args=[obj.team.pk]),- obj.team.name,- )- return "-"-- @admin.display(description="Created by")- def created_by_link(self, obj: DesktopRecording) -> str:- if obj.created_by:- return format_html(- '<a href="{}">{}</a>',- reverse("admin:posthog_user_change", args=[obj.created_by.pk]),- obj.created_by.email,- )- return "-"diff --git a/products/desktop_recordings/backend/api.py b/products/desktop_recordings/backend/api.pydeleted file mode 100644index 9176b0f74f53..000000000000--- a/products/desktop_recordings/backend/api.py+++ /dev/null@@ -1,159 +0,0 @@-from typing import cast--from django.db import transaction-from django.db.models import QuerySet--from drf_spectacular.utils import extend_schema-from rest_framework import status, viewsets-from rest_framework.authentication import SessionAuthentication-from rest_framework.decorators import action-from rest_framework.permissions import IsAuthenticated-from rest_framework.request import Request-from rest_framework.response import Response--from posthog.api.routing import TeamAndOrgViewSetMixin-from posthog.auth import PersonalAPIKeyAuthentication-from posthog.models.user import User-from posthog.permissions import APIScopePermission--from .models import DesktopRecording-from .serializers import (- AppendSegmentsSerializer,- CreateRecordingRequestSerializer,- CreateRecordingResponseSerializer,- DesktopRecordingSerializer,-)-from .services.recall_client import RecallAIClient---class DesktopRecordingViewSet(TeamAndOrgViewSetMixin, viewsets.ModelViewSet):- """- RESTful API for managing desktop meeting recordings.-- Standard CRUD operations plus transcript management as a subresource.- """-- serializer_class = DesktopRecordingSerializer- authentication_classes = [SessionAuthentication, PersonalAPIKeyAuthentication]- permission_classes = [IsAuthenticated, APIScopePermission]- scope_object = "desktop_recording"- scope_object_read_actions = ["list", "retrieve"]- scope_object_write_actions = [- "create",- "update",- "partial_update",- "destroy",- "append_segments",- ]- queryset = DesktopRecording.objects.all()-- def safely_get_queryset(self, queryset: QuerySet) -> QuerySet:- """Filter recordings to current team"""- queryset = queryset.filter(team=self.team)-- user_id = self.request.query_params.get("user_id")- if user_id:- queryset = queryset.filter(created_by_id=user_id)-- platform = self.request.query_params.get("platform")- if platform:- queryset = queryset.filter(platform=platform)-- status_param = self.request.query_params.get("status")- if status_param:- queryset = queryset.filter(status=status_param)-- search = self.request.query_params.get("search")- if search:- queryset = queryset.filter(transcript_text__icontains=search)-- return queryset-- @extend_schema(- request=CreateRecordingRequestSerializer,- responses={201: CreateRecordingResponseSerializer},- description="Create a new recording and get Recall.ai upload token for the desktop SDK",- )- @transaction.atomic- def create(self, request: Request, **kwargs) -> Response:- """- RESTful POST /desktop_recordings/-- Create a new recording with Recall.ai upload token.- Auto-creates empty transcript record.- """- from posthog.settings.integrations import RECALL_AI_API_KEY, RECALL_AI_API_URL-- if not RECALL_AI_API_KEY:- return Response({"detail": "Recall.ai API key not configured"}, status=status.HTTP_503_SERVICE_UNAVAILABLE)-- request_serializer = CreateRecordingRequestSerializer(data=request.data)- request_serializer.is_valid(raise_exception=True)- platform = request_serializer.validated_data["platform"]-- recall_client = RecallAIClient(api_key=RECALL_AI_API_KEY, api_url=RECALL_AI_API_URL)-- try:- upload_response = recall_client.create_sdk_upload(- recording_config={- "transcript": {"provider": {"assembly_ai_v3_streaming": {}}},- "realtime_endpoints": [{"type": "desktop_sdk_callback", "events": ["transcript.data"]}],- }- )- except Exception as e:- return Response(- {"detail": f"Failed to create upload with Recall.ai: {str(e)}"},- status=status.HTTP_503_SERVICE_UNAVAILABLE,- )-- recording = DesktopRecording.objects.create(- team=self.team,- created_by=cast(User, request.user),- sdk_upload_id=upload_response["id"],- status=DesktopRecording.Status.RECORDING,- platform=platform,- transcript_text="",- transcript_segments=[],- )-- serializer = self.get_serializer(recording)- response_data = serializer.data- response_data["upload_token"] = upload_response["upload_token"]-- return Response(response_data, status=status.HTTP_201_CREATED)-- @extend_schema(- request=AppendSegmentsSerializer,- responses={200: DesktopRecordingSerializer},- description="Append transcript segments (supports batched real-time streaming)",- )- @action(detail=True, methods=["POST"])- def append_segments(self, request: Request, pk: int | None = None, **kwargs) -> Response:- """- POST /recordings/{id}/append_segments/-- Append transcript segments in batches (supports real-time streaming from desktop app).- Deduplicates by timestamp to handle retries.- """- recording = self.get_object()-- serializer = AppendSegmentsSerializer(data=request.data)- serializer.is_valid(raise_exception=True)-- segments = serializer.validated_data["segments"]-- # Append new segments to existing ones (for batched uploads)- existing_segments = recording.transcript_segments or []- existing_timestamps = {s.get("timestamp") for s in existing_segments if s.get("timestamp") is not None}-- # Only add segments with new timestamps to avoid duplicates- # Segments with None timestamps are always added (can't deduplicate reliably)- new_segments = [- s for s in segments if s.get("timestamp") is None or s.get("timestamp") not in existing_timestamps- ]-- recording.transcript_segments = existing_segments + new_segments- recording.transcript_text = " ".join(s.get("text", "") for s in recording.transcript_segments if s.get("text"))- recording.save(update_fields=["transcript_segments", "transcript_text", "updated_at"])-- return Response(DesktopRecordingSerializer(recording).data)diff --git a/products/desktop_recordings/backend/apps.py b/products/desktop_recordings/backend/apps.pydeleted file mode 100644index 5c3251fe96bb..000000000000--- a/products/desktop_recordings/backend/apps.py+++ /dev/null@@ -1,8 +0,0 @@-from django.apps import AppConfig---class DesktopRecordingsConfig(AppConfig):- default_auto_field = "django.db.models.BigAutoField"- name = "products.desktop_recordings.backend"- label = "desktop_recordings"- verbose_name = "Desktop recordings"diff --git a/products/desktop_recordings/backend/migrations/0001_initial.py b/products/desktop_recordings/backend/migrations/0001_initial.pydeleted file mode 100644index 701faf8efbe3..000000000000--- a/products/desktop_recordings/backend/migrations/0001_initial.py+++ /dev/null@@ -1,101 +0,0 @@-# Generated by Django 4.2.22 on 2025-10-29 15:55--import django.utils.timezone-import django.db.models.deletion-from django.conf import settings-from django.db import migrations, models--import posthog.models.utils---class Migration(migrations.Migration):- initial = True-- dependencies = [- ("posthog", "0892_alter_integration_kind"),- migrations.swappable_dependency(settings.AUTH_USER_MODEL),- ]-- operations = [- migrations.CreateModel(- name="DesktopRecording",- fields=[- (- "id",- models.UUIDField(- default=posthog.models.utils.uuid7, editable=False, primary_key=True, serialize=False- ),- ),- ("sdk_upload_id", models.UUIDField(db_index=True, unique=True)),- ("recall_recording_id", models.UUIDField(blank=True, db_index=True, null=True)),- (- "platform",- models.CharField(- choices=[- ("zoom", "Zoom"),- ("teams", "Microsoft Teams"),- ("meet", "Google Meet"),- ("desktop_audio", "Desktop audio"),- ("slack", "Slack huddle"),- ],- max_length=20,- ),- ),- ("meeting_title", models.CharField(blank=True, max_length=255, null=True)),- ("meeting_url", models.URLField(blank=True, null=True)),- ("duration_seconds", models.IntegerField(blank=True, null=True)),- ("participants", models.JSONField(default=list)),- ("video_url", models.URLField(blank=True, null=True)),- ("video_size_bytes", models.BigIntegerField(blank=True, null=True)),- (- "status",- models.CharField(- choices=[- ("recording", "Recording"),- ("uploading", "Uploading"),- ("processing", "Processing"),- ("ready", "Ready"),- ("error", "Error"),- ],- default="recording",- max_length=20,- ),- ),- ("notes", models.TextField(blank=True, null=True)),- ("error_message", models.TextField(blank=True, null=True)),- ("transcript_text", models.TextField(blank=True, default="")),- ("transcript_segments", models.JSONField(default=list)),- ("summary", models.TextField(blank=True, null=True)),- ("extracted_tasks", models.JSONField(default=list)),- ("tasks_generated_at", models.DateTimeField(blank=True, null=True)),- ("summary_generated_at", models.DateTimeField(blank=True, null=True)),- ("started_at", models.DateTimeField(default=django.utils.timezone.now)),- ("completed_at", models.DateTimeField(blank=True, null=True)),- ("created_at", models.DateTimeField(auto_now_add=True)),- ("updated_at", models.DateTimeField(auto_now=True)),- (- "created_by",- models.ForeignKey(- blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL- ),- ),- (- "team",- models.ForeignKey(- on_delete=django.db.models.deletion.CASCADE,- related_name="desktop_recordings",- to="posthog.team",- ),- ),- ],- options={- "db_table": "posthog_desktop_recording",- "ordering": ["-started_at"],- "indexes": [- models.Index(fields=["team", "-started_at"], name="posthog_des_team_id_1db4f6_idx"),- models.Index(fields=["created_by", "-started_at"], name="posthog_des_created_e2ddfc_idx"),- models.Index(fields=["status"], name="posthog_des_status_365bd7_idx"),- ],- },- ),- ]diff --git a/products/desktop_recordings/backend/migrations/__init__.py b/products/desktop_recordings/backend/migrations/__init__.pydeleted file mode 100644index c35de25bc065..000000000000--- a/products/desktop_recordings/backend/migrations/__init__.py+++ /dev/null@@ -1 +0,0 @@-"""Migrations for desktop recordings."""diff --git a/products/desktop_recordings/backend/migrations/max_migration.txt b/products/desktop_recordings/backend/migrations/max_migration.txtdeleted file mode 100644index cbab66dde92a..000000000000--- a/products/desktop_recordings/backend/migrations/max_migration.txt+++ /dev/null@@ -1 +0,0 @@-0001_initialdiff --git a/products/desktop_recordings/backend/models.py b/products/desktop_recordings/backend/models.pydeleted file mode 100644index bcc20d2a31cf..000000000000--- a/products/desktop_recordings/backend/models.py+++ /dev/null@@ -1,66 +0,0 @@-from django.db import models-from django.utils import timezone--from posthog.models.team.team import Team-from posthog.models.user import User-from posthog.models.utils import UUIDModel---class DesktopRecording(UUIDModel):- class Status(models.TextChoices):- RECORDING = "recording", "Recording"- UPLOADING = "uploading", "Uploading"- PROCESSING = "processing", "Processing"- READY = "ready", "Ready"- ERROR = "error", "Error"-- class Platform(models.TextChoices):- ZOOM = "zoom", "Zoom"- TEAMS = "teams", "Microsoft Teams"- MEET = "meet", "Google Meet"- DESKTOP_AUDIO = "desktop_audio", "Desktop audio"- SLACK = "slack", "Slack huddle"-- team = models.ForeignKey(Team, on_delete=models.CASCADE, related_name="desktop_recordings")- created_by = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, blank=True)-- sdk_upload_id = models.UUIDField(unique=True, db_index=True)- recall_recording_id = models.UUIDField(null=True, blank=True, db_index=True)-- platform = models.CharField(max_length=20, choices=Platform)- meeting_title = models.CharField(max_length=255, null=True, blank=True)- meeting_url = models.URLField(null=True, blank=True)- duration_seconds = models.IntegerField(null=True, blank=True)- participants = models.JSONField(default=list)-- video_url = models.URLField(null=True, blank=True)- video_size_bytes = models.BigIntegerField(null=True, blank=True)-- status = models.CharField(max_length=20, choices=Status, default=Status.RECORDING)- notes = models.TextField(null=True, blank=True)- error_message = models.TextField(null=True, blank=True)-- # Transcript fields- transcript_text = models.TextField(default="", blank=True)- transcript_segments = models.JSONField(default=list)- summary = models.TextField(null=True, blank=True)- extracted_tasks = models.JSONField(default=list)- tasks_generated_at = models.DateTimeField(null=True, blank=True)- summary_generated_at = models.DateTimeField(null=True, blank=True)-- started_at = models.DateTimeField(default=timezone.now)- completed_at = models.DateTimeField(null=True, blank=True)- created_at = models.DateTimeField(auto_now_add=True)- updated_at = models.DateTimeField(auto_now=True)-- class Meta:- db_table = "posthog_desktop_recording"- ordering = ["-started_at"]- indexes = [- models.Index(fields=["team", "-started_at"]),- models.Index(fields=["created_by", "-started_at"]),- models.Index(fields=["status"]),- ]-- def __str__(self) -> str:- return f"{self.meeting_title or 'Recording'} ({self.platform})"diff --git a/products/desktop_recordings/backend/routes.py b/products/desktop_recordings/backend/routes.pydeleted file mode 100644index 687108b04215..000000000000--- a/products/desktop_recordings/backend/routes.py+++ /dev/null@@ -1,12 +0,0 @@-from posthog.api.routing import RouterRegistry--from products.desktop_recordings.backend.api import DesktopRecordingViewSet---def register_routes(routers: RouterRegistry) -> None:- routers.register_legacy_dual_route(- r"desktop_recordings",- DesktopRecordingViewSet,- "project_desktop_recordings",- ["team_id"],- )diff --git a/products/desktop_recordings/backend/serializers.py b/products/desktop_recordings/backend/serializers.pydeleted file mode 100644index 206ae49670e0..000000000000--- a/products/desktop_recordings/backend/serializers.py+++ /dev/null@@ -1,102 +0,0 @@-from drf_spectacular.utils import extend_schema_serializer-from rest_framework import serializers--from .models import DesktopRecording---class TranscriptSegmentSerializer(serializers.Serializer):- """Serializer for individual transcript segments from AssemblyAI"""-- timestamp = serializers.FloatField(required=False, allow_null=True, help_text="Milliseconds from recording start")- speaker = serializers.CharField(required=False, allow_null=True, allow_blank=True)- text = serializers.CharField(required=True, allow_blank=False)- confidence = serializers.FloatField(required=False, allow_null=True, help_text="Transcription confidence score")- is_final = serializers.BooleanField(required=False, allow_null=True, help_text="Whether this is the final version")---@extend_schema_serializer(component_name="DesktopRecordingTask")-class TaskSerializer(serializers.Serializer):- """Serializer for extracted tasks"""-- title = serializers.CharField()- description = serializers.CharField(required=False, allow_blank=True)- assignee = serializers.CharField(required=False, allow_null=True, allow_blank=True)---class AppendSegmentsSerializer(serializers.Serializer):- """Serializer for appending transcript segments (supports batched real-time uploads)"""-- segments = serializers.ListField(child=TranscriptSegmentSerializer(), required=True, min_length=1)---class DesktopRecordingSerializer(serializers.ModelSerializer):- # Type hints for JSON fields for proper OpenAPI/TypeScript generation- participants = serializers.ListField(- child=serializers.CharField(), read_only=False, required=False, help_text="List of participant names"- )-- transcript_segments = serializers.ListField(- child=TranscriptSegmentSerializer(), required=False, help_text="Transcript segments with timestamps"- )-- extracted_tasks = serializers.ListField(- child=TaskSerializer(), read_only=False, required=False, help_text="AI-extracted tasks from transcript"- )-- class Meta:- model = DesktopRecording- fields = [- "id",- "team",- "created_by",- "sdk_upload_id",- "recall_recording_id",- "platform",- "meeting_title",- "meeting_url",- "duration_seconds",- "status",- "notes",- "error_message",- "video_url",- "video_size_bytes",- "participants",- "transcript_text",- "transcript_segments",- "summary",- "extracted_tasks",- "tasks_generated_at",- "summary_generated_at",- "started_at",- "completed_at",- "created_at",- "updated_at",- ]- read_only_fields = [- "id",- "team",- "created_by",- "sdk_upload_id",- "created_at",- "updated_at",- "transcript_text",- ]---class CreateRecordingRequestSerializer(serializers.Serializer):- """Request body for creating a new recording"""-- platform = serializers.ChoiceField(- choices=["zoom", "teams", "meet", "desktop_audio", "slack"],- default="desktop_audio",- help_text="Meeting platform being recorded",- )---class CreateRecordingResponseSerializer(DesktopRecordingSerializer):- """Response for creating a new recording (includes upload_token)"""-- upload_token = serializers.CharField(help_text="Recall.ai upload token for the desktop SDK")-- class Meta(DesktopRecordingSerializer.Meta):- fields = [*DesktopRecordingSerializer.Meta.fields, "upload_token"]diff --git a/products/desktop_recordings/backend/services/__init__.py b/products/desktop_recordings/backend/services/__init__.pydeleted file mode 100644index f28d11c58637..000000000000--- a/products/desktop_recordings/backend/services/__init__.py+++ /dev/null@@ -1 +0,0 @@-"""Services for desktop recordings."""diff --git a/products/desktop_recordings/backend/services/recall_client.py b/products/desktop_recordings/backend/services/recall_client.pydeleted file mode 100644index e34377240a27..000000000000--- a/products/desktop_recordings/backend/services/recall_client.py+++ /dev/null@@ -1,25 +0,0 @@-from typing import Any--import requests---class RecallAIClient:- """Client for Recall.ai API - only used to create SDK upload tokens"""-- def __init__(self, api_key: str, api_url: str = "https://us-west-2.recall.ai") -> None:- self.api_key = api_key- self.base_url = api_url.rstrip("/")-- def create_sdk_upload(self, recording_config: dict[str, Any] | None = None) -> dict[str, Any]:- """Create SDK upload and return upload token for Array desktop app"""- payload: dict[str, Any] = {}- if recording_config:- payload["recording_config"] = recording_config-- response = requests.post(- f"{self.base_url}/api/v1/sdk-upload/",- json=payload,- headers={"Authorization": f"Token {self.api_key}"},- )- response.raise_for_status()- return response.json()diff --git a/products/desktop_recordings/backend/tests/__init__.py b/products/desktop_recordings/backend/tests/__init__.pydeleted file mode 100644index c6325d68bb11..000000000000--- a/products/desktop_recordings/backend/tests/__init__.py+++ /dev/null@@ -1 +0,0 @@-"""Tests for desktop recordings."""diff --git a/products/desktop_recordings/backend/tests/test_api.py b/products/desktop_recordings/backend/tests/test_api.pydeleted file mode 100644index 8b56010f0466..000000000000--- a/products/desktop_recordings/backend/tests/test_api.py+++ /dev/null@@ -1,164 +0,0 @@-from uuid import uuid4--from posthog.test.base import APIBaseTest-from unittest.mock import MagicMock, patch--from rest_framework import status--from products.desktop_recordings.backend.models import DesktopRecording---class TestDesktopRecordingAPI(APIBaseTest):- """Test the desktop recording REST API that Array desktop app uses"""-- def test_create_recording_returns_token_and_auto_creates_transcript(self):- """RESTful POST creates recording with upload token and empty transcript"""- mock_recall_response = {"id": str(uuid4()), "upload_token": "test-upload-token-123"}-- with patch("posthog.settings.integrations.RECALL_AI_API_KEY", "test-api-key"):- with patch("products.desktop_recordings.backend.api.RecallAIClient") as mock_client:- mock_instance = MagicMock()- mock_instance.create_sdk_upload.return_value = mock_recall_response- mock_client.return_value = mock_instance-- response = self.client.post(- f"/api/environments/{self.team.id}/desktop_recordings/",- {"platform": "zoom"},- format="json",- )-- assert response.status_code == status.HTTP_201_CREATED- data = response.json()- assert data["upload_token"] == "test-upload-token-123"- assert "id" in data-- # Verify recording created with correct status- recording = DesktopRecording.objects.get(id=data["id"])- assert recording.team == self.team- assert recording.created_by == self.user- assert recording.platform == "zoom"- assert recording.status == DesktopRecording.Status.RECORDING- assert str(recording.sdk_upload_id) == mock_recall_response["id"]-- # Verify empty transcript fields initialized- assert recording.transcript_text == ""- assert recording.transcript_segments == []-- def test_create_recording_returns_503_when_api_key_missing(self):- """Create recording should fail gracefully when Recall.ai API key not configured"""- from unittest.mock import patch-- with patch("posthog.settings.integrations.RECALL_AI_API_KEY", ""):- response = self.client.post(- f"/api/environments/{self.team.id}/desktop_recordings/",- {"platform": "zoom"},- format="json",- )-- assert response.status_code == status.HTTP_503_SERVICE_UNAVAILABLE- assert "not configured" in response.json()["detail"]-- def test_post_append_segments_appends_and_deduplicates(self):- """POST /append_segments/ appends new segments and deduplicates by timestamp"""- recording = DesktopRecording.objects.create(- team=self.team,- created_by=self.user,- sdk_upload_id=uuid4(),- platform="zoom",- status=DesktopRecording.Status.RECORDING,- )-- # First upload- response1 = self.client.post(- f"/api/environments/{self.team.id}/desktop_recordings/{recording.id}/append_segments/",- {"segments": [{"text": "First segment", "timestamp": 0.0}]},- format="json",- )- assert response1.status_code == status.HTTP_200_OK-- # Second upload - should append new segments- response2 = self.client.post(- f"/api/environments/{self.team.id}/desktop_recordings/{recording.id}/append_segments/",- {"segments": [{"text": "Second segment", "timestamp": 1.0}]},- format="json",- )- assert response2.status_code == status.HTTP_200_OK- assert len(response2.json()["transcript_segments"]) == 2-- # Verify segments persisted- recording.refresh_from_db()- assert len(recording.transcript_segments) == 2- assert recording.transcript_text == "First segment Second segment"-- def test_list_recordings_filters_by_team(self):- """Recordings are isolated by team"""- recording1 = DesktopRecording.objects.create(- team=self.team,- created_by=self.user,- sdk_upload_id=uuid4(),- platform="zoom",- status=DesktopRecording.Status.READY,- )-- # Create recording for different team- other_team = self.organization.teams.create(name="Other Team")- DesktopRecording.objects.create(- team=other_team,- created_by=self.user,- sdk_upload_id=uuid4(),- platform="teams",- status=DesktopRecording.Status.READY,- )-- response = self.client.get(f"/api/environments/{self.team.id}/desktop_recordings/")-- assert response.status_code == status.HTTP_200_OK- results = response.json()["results"]- assert len(results) == 1- assert results[0]["id"] == str(recording1.id)-- def test_post_append_segments_validates_segment_structure(self):- """POST /append_segments/ validates segment structure"""- recording = DesktopRecording.objects.create(- team=self.team,- created_by=self.user,- sdk_upload_id=uuid4(),- platform="zoom",- status=DesktopRecording.Status.RECORDING,- )-- # Missing required 'text' field should fail- response = self.client.post(- f"/api/environments/{self.team.id}/desktop_recordings/{recording.id}/append_segments/",- {"segments": [{"timestamp": 0.0}]},- format="json",- )- assert response.status_code == status.HTTP_400_BAD_REQUEST- assert "text" in str(response.json())-- def test_post_append_segments_handles_none_timestamps(self):- """POST /append_segments/ handles segments with None timestamps"""- recording = DesktopRecording.objects.create(- team=self.team,- created_by=self.user,- sdk_upload_id=uuid4(),- platform="zoom",- status=DesktopRecording.Status.RECORDING,- )-- # First upload with None timestamp- response1 = self.client.post(- f"/api/environments/{self.team.id}/desktop_recordings/{recording.id}/append_segments/",- {"segments": [{"text": "First segment", "timestamp": None}]},- format="json",- )- assert response1.status_code == status.HTTP_200_OK-- # Second upload with None timestamp - should add (not deduplicate)- response2 = self.client.post(- f"/api/environments/{self.team.id}/desktop_recordings/{recording.id}/append_segments/",- {"segments": [{"text": "Second segment", "timestamp": None}]},- format="json",- )- assert response2.status_code == status.HTTP_200_OK- assert len(response2.json()["transcript_segments"]) == 2diff --git a/products/desktop_recordings/backend/tests/test_models.py b/products/desktop_recordings/backend/tests/test_models.pydeleted file mode 100644index 38299c1f44ac..000000000000--- a/products/desktop_recordings/backend/tests/test_models.py+++ /dev/null@@ -1,30 +0,0 @@-from uuid import uuid4--from posthog.test.base import BaseTest--from products.desktop_recordings.backend.models import DesktopRecording---class TestDesktopRecordingModel(BaseTest):- """Test desktop recording model business logic"""-- def test_recordings_ordered_by_most_recent(self):- """Recordings should be ordered by started_at descending"""- recording1 = DesktopRecording.objects.create(- team=self.team,- created_by=self.user,- sdk_upload_id=uuid4(),- platform=DesktopRecording.Platform.ZOOM,- )-- recording2 = DesktopRecording.objects.create(- team=self.team,- created_by=self.user,- sdk_upload_id=uuid4(),- platform=DesktopRecording.Platform.TEAMS,- )-- recordings = list(DesktopRecording.objects.filter(team=self.team))- # Most recent first- assert recordings[0].id == recording2.id- assert recordings[1].id == recording1.iddiff --git a/products/desktop_recordings/frontend/generated/api.schemas.ts b/products/desktop_recordings/frontend/generated/api.schemas.tsdeleted file mode 100644index e64eb199b38f..000000000000--- a/products/desktop_recordings/frontend/generated/api.schemas.ts+++ /dev/null@@ -1,325 +0,0 @@-/**- * Auto-generated from the Django backend OpenAPI schema.- * To modify these types, update the Django serializers or views, then run:- * hogli build:openapi- * Questions or issues? #team-devex on Slack- *- * PostHog API - generated- * OpenAPI spec version: 1.0.0- */-/**- * * `zoom` - Zoom- * * `teams` - Microsoft Teams- * * `meet` - Google Meet- * * `desktop_audio` - Desktop audio- * * `slack` - Slack huddle- */-export type MeetingPlatformEnumApi = (typeof MeetingPlatformEnumApi)[keyof typeof MeetingPlatformEnumApi]--export const MeetingPlatformEnumApi = {- Zoom: 'zoom',- Teams: 'teams',- Meet: 'meet',- DesktopAudio: 'desktop_audio',- Slack: 'slack',-} as const--/**- * * `recording` - Recording- * * `uploading` - Uploading- * * `processing` - Processing- * * `ready` - Ready- * * `error` - Error- */-export type DesktopRecordingStatusEnumApi =- (typeof DesktopRecordingStatusEnumApi)[keyof typeof DesktopRecordingStatusEnumApi]--export const DesktopRecordingStatusEnumApi = {- Recording: 'recording',- Uploading: 'uploading',- Processing: 'processing',- Ready: 'ready',- Error: 'error',-} as const--/**- * Serializer for individual transcript segments from AssemblyAI- */-export interface TranscriptSegmentApi {- /**- * Milliseconds from recording start- * @nullable- */- timestamp?: number | null- /** @nullable */- speaker?: string | null- text: string- /**- * Transcription confidence score- * @nullable- */- confidence?: number | null- /**- * Whether this is the final version- * @nullable- */- is_final?: boolean | null-}--/**- * Serializer for extracted tasks- */-export interface DesktopRecordingTaskApi {- title: string- description?: string- /** @nullable */- assignee?: string | null-}--export interface DesktopRecordingApi {- readonly id: string- readonly team: number- /** @nullable */- readonly created_by: number | null- readonly sdk_upload_id: string- /** @nullable */- recall_recording_id?: string | null- platform: MeetingPlatformEnumApi- /**- * @maxLength 255- * @nullable- */- meeting_title?: string | null- /**- * @maxLength 200- * @nullable- */- meeting_url?: string | null- /**- * @minimum -2147483648- * @maximum 2147483647- * @nullable- */- duration_seconds?: number | null- status?: DesktopRecordingStatusEnumApi- /** @nullable */- notes?: string | null- /** @nullable */- error_message?: string | null- /**- * @maxLength 200- * @nullable- */- video_url?: string | null- /**- * @minimum -2147483648- * @maximum 2147483647- * @nullable- */- video_size_bytes?: number | null- /** List of participant names */- participants?: string[]- readonly transcript_text: string- /** Transcript segments with timestamps */- transcript_segments?: TranscriptSegmentApi[]- /** @nullable */- summary?: string | null- /** AI-extracted tasks from transcript */- extracted_tasks?: DesktopRecordingTaskApi[]- /** @nullable */- tasks_generated_at?: string | null- /** @nullable */- summary_generated_at?: string | null- started_at?: string- /** @nullable */- completed_at?: string | null- readonly created_at: string- readonly updated_at: string-}--export interface PaginatedDesktopRecordingListApi {- count: number- /** @nullable */- next?: string | null- /** @nullable */- previous?: string | null- results: DesktopRecordingApi[]-}--/**- * * `zoom` - zoom- * * `teams` - teams- * * `meet` - meet- * * `desktop_audio` - desktop_audio- * * `slack` - slack- */-export type CreateRecordingRequestPlatformEnumApi =- (typeof CreateRecordingRequestPlatformEnumApi)[keyof typeof CreateRecordingRequestPlatformEnumApi]--export const CreateRecordingRequestPlatformEnumApi = {- Zoom: 'zoom',- Teams: 'teams',- Meet: 'meet',- DesktopAudio: 'desktop_audio',- Slack: 'slack',-} as const--/**- * Request body for creating a new recording- */-export interface CreateRecordingRequestApi {- /** Meeting platform being recorded- *- * * `zoom` - zoom- * * `teams` - teams- * * `meet` - meet- * * `desktop_audio` - desktop_audio- * * `slack` - slack */- platform?: CreateRecordingRequestPlatformEnumApi-}--/**- * Response for creating a new recording (includes upload_token)- */-export interface CreateRecordingResponseApi {- readonly id: string- readonly team: number- /** @nullable */- readonly created_by: number | null- readonly sdk_upload_id: string- /** @nullable */- recall_recording_id?: string | null- platform: MeetingPlatformEnumApi- /**- * @maxLength 255- * @nullable- */- meeting_title?: string | null- /**- * @maxLength 200- * @nullable- */- meeting_url?: string | null- /**- * @minimum -2147483648- * @maximum 2147483647- * @nullable- */- duration_seconds?: number | null- status?: DesktopRecordingStatusEnumApi- /** @nullable */- notes?: string | null- /** @nullable */- error_message?: string | null- /**- * @maxLength 200- * @nullable- */- video_url?: string | null- /**- * @minimum -2147483648- * @maximum 2147483647- * @nullable- */- video_size_bytes?: number | null- /** List of participant names */- participants?: string[]- readonly transcript_text: string- /** Transcript segments with timestamps */- transcript_segments?: TranscriptSegmentApi[]- /** @nullable */- summary?: string | null- /** AI-extracted tasks from transcript */- extracted_tasks?: DesktopRecordingTaskApi[]- /** @nullable */- tasks_generated_at?: string | null- /** @nullable */- summary_generated_at?: string | null- started_at?: string- /** @nullable */- completed_at?: string | null- readonly created_at: string- readonly updated_at: string- /** Recall.ai upload token for the desktop SDK */- upload_token: string-}--export interface PatchedDesktopRecordingApi {- readonly id?: string- readonly team?: number- /** @nullable */- readonly created_by?: number | null- readonly sdk_upload_id?: string- /** @nullable */- recall_recording_id?: string | null- platform?: MeetingPlatformEnumApi- /**- * @maxLength 255- * @nullable- */- meeting_title?: string | null- /**- * @maxLength 200- * @nullable- */- meeting_url?: string | null- /**- * @minimum -2147483648- * @maximum 2147483647- * @nullable- */- duration_seconds?: number | null- status?: DesktopRecordingStatusEnumApi- /** @nullable */- notes?: string | null- /** @nullable */- error_message?: string | null- /**- * @maxLength 200- * @nullable- */- video_url?: string | null- /**- * @minimum -2147483648- * @maximum 2147483647- * @nullable- */- video_size_bytes?: number | null- /** List of participant names */- participants?: string[]- readonly transcript_text?: string- /** Transcript segments with timestamps */- transcript_segments?: TranscriptSegmentApi[]- /** @nullable */- summary?: string | null- /** AI-extracted tasks from transcript */- extracted_tasks?: DesktopRecordingTaskApi[]- /** @nullable */- tasks_generated_at?: string | null- /** @nullable */- summary_generated_at?: string | null- started_at?: string- /** @nullable */- completed_at?: string | null- readonly created_at?: string- readonly updated_at?: string-}--/**- * Serializer for appending transcript segments (supports batched real-time uploads)- */-export interface AppendSegmentsApi {- /** @minItems 1 */- segments: TranscriptSegmentApi[]-}--export type DesktopRecordingsListParams = {- /**- * Number of results to return per page.- */- limit?: number- /**- * The initial index from which to return the results.- */- offset?: number-}diff --git a/products/desktop_recordings/frontend/generated/api.ts b/products/desktop_recordings/frontend/generated/api.tsdeleted file mode 100644index d1cfbf512120..000000000000--- a/products/desktop_recordings/frontend/generated/api.ts+++ /dev/null@@ -1,191 +0,0 @@-import { apiMutator } from '../../../../frontend/src/lib/api-orval-mutator'-/**- * Auto-generated from the Django backend OpenAPI schema.- * To modify these types, update the Django serializers or views, then run:- * hogli build:openapi- * Questions or issues? #team-devex on Slack- *- * PostHog API - generated- * OpenAPI spec version: 1.0.0- */-import type {- AppendSegmentsApi,- CreateRecordingRequestApi,- CreateRecordingResponseApi,- DesktopRecordingApi,- DesktopRecordingsListParams,- PaginatedDesktopRecordingListApi,- PatchedDesktopRecordingApi,-} from './api.schemas'--// https://stackoverflow.com/questions/49579094/typescript-conditional-types-filter-out-readonly-properties-pick-only-requir/49579497#49579497-type IfEquals<X, Y, A = X, B = never> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? A : B--type WritableKeys<T> = {- [P in keyof T]-?: IfEquals<{ [Q in P]: T[P] }, { -readonly [Q in P]: T[P] }, P>-}[keyof T]--type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never-type DistributeReadOnlyOverUnions<T> = T extends any ? NonReadonly<T> : never--type Writable<T> = Pick<T, WritableKeys<T>>-type NonReadonly<T> = [T] extends [UnionToIntersection<T>]- ? {- [P in keyof Writable<T>]: T[P] extends object ? NonReadonly<NonNullable<T[P]>> : T[P]- }- : DistributeReadOnlyOverUnions<T>--export const getDesktopRecordingsListUrl = (projectId: string, params?: DesktopRecordingsListParams) => {- const normalizedParams = new URLSearchParams()-- Object.entries(params || {}).forEach(([key, value]) => {- if (value !== undefined) {- normalizedParams.append(key, value === null ? 'null' : String(value))- }- })-- const stringifiedParams = normalizedParams.toString()-- return stringifiedParams.length > 0- ? `/api/projects/${projectId}/desktop_recordings/?${stringifiedParams}`- : `/api/projects/${projectId}/desktop_recordings/`-}--/**- * RESTful API for managing desktop meeting recordings.- *- * Standard CRUD operations plus transcript management as a subresource.- */-export const desktopRecordingsList = async (- projectId: string,- params?: DesktopRecordingsListParams,- options?: RequestInit-): Promise<PaginatedDesktopRecordingListApi> => {- return apiMutator<PaginatedDesktopRecordingListApi>(getDesktopRecordingsListUrl(projectId, params), {- ...options,- method: 'GET',- })-}--export const getDesktopRecordingsCreateUrl = (projectId: string) => {- return `/api/projects/${projectId}/desktop_recordings/`-}--/**- * Create a new recording and get Recall.ai upload token for the desktop SDK- */-export const desktopRecordingsCreate = async (- projectId: string,- createRecordingRequestApi?: CreateRecordingRequestApi,- options?: RequestInit-): Promise<CreateRecordingResponseApi> => {- return apiMutator<CreateRecordingResponseApi>(getDesktopRecordingsCreateUrl(projectId), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(createRecordingRequestApi),- })-}--export const getDesktopRecordingsRetrieveUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/desktop_recordings/${id}/`-}--/**- * RESTful API for managing desktop meeting recordings.- *- * Standard CRUD operations plus transcript management as a subresource.- */-export const desktopRecordingsRetrieve = async (- projectId: string,- id: string,- options?: RequestInit-): Promise<DesktopRecordingApi> => {- return apiMutator<DesktopRecordingApi>(getDesktopRecordingsRetrieveUrl(projectId, id), {- ...options,- method: 'GET',- })-}--export const getDesktopRecordingsUpdateUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/desktop_recordings/${id}/`-}--/**- * RESTful API for managing desktop meeting recordings.- *- * Standard CRUD operations plus transcript management as a subresource.- */-export const desktopRecordingsUpdate = async (- projectId: string,- id: string,- desktopRecordingApi: NonReadonly<DesktopRecordingApi>,- options?: RequestInit-): Promise<DesktopRecordingApi> => {- return apiMutator<DesktopRecordingApi>(getDesktopRecordingsUpdateUrl(projectId, id), {- ...options,- method: 'PUT',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(desktopRecordingApi),- })-}--export const getDesktopRecordingsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/desktop_recordings/${id}/`-}--/**- * RESTful API for managing desktop meeting recordings.- *- * Standard CRUD operations plus transcript management as a subresource.- */-export const desktopRecordingsPartialUpdate = async (- projectId: string,- id: string,- patchedDesktopRecordingApi?: NonReadonly<PatchedDesktopRecordingApi>,- options?: RequestInit-): Promise<DesktopRecordingApi> => {- return apiMutator<DesktopRecordingApi>(getDesktopRecordingsPartialUpdateUrl(projectId, id), {- ...options,- method: 'PATCH',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(patchedDesktopRecordingApi),- })-}--export const getDesktopRecordingsDestroyUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/desktop_recordings/${id}/`-}--/**- * RESTful API for managing desktop meeting recordings.- *- * Standard CRUD operations plus transcript management as a subresource.- */-export const desktopRecordingsDestroy = async (projectId: string, id: string, options?: RequestInit): Promise<void> => {- return apiMutator<void>(getDesktopRecordingsDestroyUrl(projectId, id), {- ...options,- method: 'DELETE',- })-}--export const getDesktopRecordingsAppendSegmentsCreateUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/desktop_recordings/${id}/append_segments/`-}--/**- * Append transcript segments (supports batched real-time streaming)- */-export const desktopRecordingsAppendSegmentsCreate = async (- projectId: string,- id: string,- appendSegmentsApi: AppendSegmentsApi,- options?: RequestInit-): Promise<DesktopRecordingApi> => {- return apiMutator<DesktopRecordingApi>(getDesktopRecordingsAppendSegmentsCreateUrl(projectId, id), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(appendSegmentsApi),- })-}diff --git a/products/desktop_recordings/frontend/generated/api.zod.ts b/products/desktop_recordings/frontend/generated/api.zod.tsdeleted file mode 100644index 1d7d4bef469a..000000000000--- a/products/desktop_recordings/frontend/generated/api.zod.ts+++ /dev/null@@ -1,210 +0,0 @@-/**- * Auto-generated Zod validation schemas from the Django backend OpenAPI schema.- * To modify these schemas, update the Django serializers or views, then run:- * hogli build:openapi- * Questions or issues? #team-devex on Slack- *- * PostHog API - generated- * OpenAPI spec version: 1.0.0- */-import * as zod from 'zod'--/**- * Create a new recording and get Recall.ai upload token for the desktop SDK- */-export const desktopRecordingsCreateBodyPlatformDefault = `desktop_audio`--export const DesktopRecordingsCreateBody = /* @__PURE__ */ zod- .object({- platform: zod- .enum(['zoom', 'teams', 'meet', 'desktop_audio', 'slack'])- .describe(- '\* `zoom` - zoom\n\* `teams` - teams\n\* `meet` - meet\n\* `desktop_audio` - desktop_audio\n\* `slack` - slack'- )- .default(desktopRecordingsCreateBodyPlatformDefault)- .describe(- 'Meeting platform being recorded\n\n\* `zoom` - zoom\n\* `teams` - teams\n\* `meet` - meet\n\* `desktop_audio` - desktop_audio\n\* `slack` - slack'- ),- })- .describe('Request body for creating a new recording')--/**- * RESTful API for managing desktop meeting recordings.- *- * Standard CRUD operations plus transcript management as a subresource.- */-export const desktopRecordingsUpdateBodyMeetingTitleMax = 255--export const desktopRecordingsUpdateBodyMeetingUrlMax = 200--export const desktopRecordingsUpdateBodyDurationSecondsMin = -2147483648-export const desktopRecordingsUpdateBodyDurationSecondsMax = 2147483647--export const desktopRecordingsUpdateBodyVideoUrlMax = 200--export const desktopRecordingsUpdateBodyVideoSizeBytesMin = -2147483648-export const desktopRecordingsUpdateBodyVideoSizeBytesMax = 2147483647--export const DesktopRecordingsUpdateBody = /* @__PURE__ */ zod.object({- recall_recording_id: zod.uuid().nullish(),- platform: zod- .enum(['zoom', 'teams', 'meet', 'desktop_audio', 'slack'])- .describe(- '\* `zoom` - Zoom\n\* `teams` - Microsoft Teams\n\* `meet` - Google Meet\n\* `desktop_audio` - Desktop audio\n\* `slack` - Slack huddle'- ),- meeting_title: zod.string().max(desktopRecordingsUpdateBodyMeetingTitleMax).nullish(),- meeting_url: zod.url().max(desktopRecordingsUpdateBodyMeetingUrlMax).nullish(),- duration_seconds: zod- .number()- .min(desktopRecordingsUpdateBodyDurationSecondsMin)- .max(desktopRecordingsUpdateBodyDurationSecondsMax)- .nullish(),- status: zod- .enum(['recording', 'uploading', 'processing', 'ready', 'error'])- .optional()- .describe(- '\* `recording` - Recording\n\* `uploading` - Uploading\n\* `processing` - Processing\n\* `ready` - Ready\n\* `error` - Error'- ),- notes: zod.string().nullish(),- error_message: zod.string().nullish(),- video_url: zod.url().max(desktopRecordingsUpdateBodyVideoUrlMax).nullish(),- video_size_bytes: zod- .number()- .min(desktopRecordingsUpdateBodyVideoSizeBytesMin)- .max(desktopRecordingsUpdateBodyVideoSizeBytesMax)- .nullish(),- participants: zod.array(zod.string()).optional().describe('List of participant names'),- transcript_segments: zod- .array(- zod- .object({- timestamp: zod.number().nullish().describe('Milliseconds from recording start'),- speaker: zod.string().nullish(),- text: zod.string(),- confidence: zod.number().nullish().describe('Transcription confidence score'),- is_final: zod.boolean().nullish().describe('Whether this is the final version'),- })- .describe('Serializer for individual transcript segments from AssemblyAI')- )- .optional()- .describe('Transcript segments with timestamps'),- summary: zod.string().nullish(),- extracted_tasks: zod- .array(- zod- .object({- title: zod.string(),- description: zod.string().optional(),- assignee: zod.string().nullish(),- })- .describe('Serializer for extracted tasks')- )- .optional()- .describe('AI-extracted tasks from transcript'),- tasks_generated_at: zod.iso.datetime({ offset: true }).nullish(),- summary_generated_at: zod.iso.datetime({ offset: true }).nullish(),- started_at: zod.iso.datetime({ offset: true }).optional(),- completed_at: zod.iso.datetime({ offset: true }).nullish(),-})--/**- * RESTful API for managing desktop meeting recordings.- *- * Standard CRUD operations plus transcript management as a subresource.- */-export const desktopRecordingsPartialUpdateBodyMeetingTitleMax = 255--export const desktopRecordingsPartialUpdateBodyMeetingUrlMax = 200--export const desktopRecordingsPartialUpdateBodyDurationSecondsMin = -2147483648-export const desktopRecordingsPartialUpdateBodyDurationSecondsMax = 2147483647--export const desktopRecordingsPartialUpdateBodyVideoUrlMax = 200--export const desktopRecordingsPartialUpdateBodyVideoSizeBytesMin = -2147483648-export const desktopRecordingsPartialUpdateBodyVideoSizeBytesMax = 2147483647--export const DesktopRecordingsPartialUpdateBody = /* @__PURE__ */ zod.object({- recall_recording_id: zod.uuid().nullish(),- platform: zod- .enum(['zoom', 'teams', 'meet', 'desktop_audio', 'slack'])- .optional()- .describe(- '\* `zoom` - Zoom\n\* `teams` - Microsoft Teams\n\* `meet` - Google Meet\n\* `desktop_audio` - Desktop audio\n\* `slack` - Slack huddle'- ),- meeting_title: zod.string().max(desktopRecordingsPartialUpdateBodyMeetingTitleMax).nullish(),- meeting_url: zod.url().max(desktopRecordingsPartialUpdateBodyMeetingUrlMax).nullish(),- duration_seconds: zod- .number()- .min(desktopRecordingsPartialUpdateBodyDurationSecondsMin)- .max(desktopRecordingsPartialUpdateBodyDurationSecondsMax)- .nullish(),- status: zod- .enum(['recording', 'uploading', 'processing', 'ready', 'error'])- .optional()- .describe(- '\* `recording` - Recording\n\* `uploading` - Uploading\n\* `processing` - Processing\n\* `ready` - Ready\n\* `error` - Error'- ),- notes: zod.string().nullish(),- error_message: zod.string().nullish(),- video_url: zod.url().max(desktopRecordingsPartialUpdateBodyVideoUrlMax).nullish(),- video_size_bytes: zod- .number()- .min(desktopRecordingsPartialUpdateBodyVideoSizeBytesMin)- .max(desktopRecordingsPartialUpdateBodyVideoSizeBytesMax)- .nullish(),- participants: zod.array(zod.string()).optional().describe('List of participant names'),- transcript_segments: zod- .array(- zod- .object({- timestamp: zod.number().nullish().describe('Milliseconds from recording start'),- speaker: zod.string().nullish(),- text: zod.string(),- confidence: zod.number().nullish().describe('Transcription confidence score'),- is_final: zod.boolean().nullish().describe('Whether this is the final version'),- })- .describe('Serializer for individual transcript segments from AssemblyAI')- )- .optional()- .describe('Transcript segments with timestamps'),- summary: zod.string().nullish(),- extracted_tasks: zod- .array(- zod- .object({- title: zod.string(),- description: zod.string().optional(),- assignee: zod.string().nullish(),- })- .describe('Serializer for extracted tasks')- )- .optional()- .describe('AI-extracted tasks from transcript'),- tasks_generated_at: zod.iso.datetime({ offset: true }).nullish(),- summary_generated_at: zod.iso.datetime({ offset: true }).nullish(),- started_at: zod.iso.datetime({ offset: true }).optional(),- completed_at: zod.iso.datetime({ offset: true }).nullish(),-})--/**- * Append transcript segments (supports batched real-time streaming)- */--export const DesktopRecordingsAppendSegmentsCreateBody = /* @__PURE__ */ zod- .object({- segments: zod- .array(- zod- .object({- timestamp: zod.number().nullish().describe('Milliseconds from recording start'),- speaker: zod.string().nullish(),- text: zod.string(),- confidence: zod.number().nullish().describe('Transcription confidence score'),- is_final: zod.boolean().nullish().describe('Whether this is the final version'),- })- .describe('Serializer for individual transcript segments from AssemblyAI')- )- .min(1),- })- .describe('Serializer for appending transcript segments (supports batched real-time uploads)')diff --git a/products/desktop_recordings/package.json b/products/desktop_recordings/package.jsondeleted file mode 100644index 0c94fe5875dc..000000000000--- a/products/desktop_recordings/package.json+++ /dev/null@@ -1,6 +0,0 @@-{- "name": "@posthog/products-desktop_recordings",- "scripts": {- "backend:test": "pytest -c ../../pytest.ini --rootdir ../.. backend/tests -v --tb=short"- }-}diff --git a/products/desktop_recordings/product.yaml b/products/desktop_recordings/product.yamldeleted file mode 100644index cc1a9473f21f..000000000000--- a/products/desktop_recordings/product.yaml+++ /dev/null@@ -1,3 +0,0 @@-name: Desktop recordings-owners:- - team-replaydiff --git a/products/ruff.toml b/products/ruff.tomlindex 3b09f70990a7..a69d9e67471c 100644--- a/products/ruff.toml+++ b/products/ruff.toml@@ -73,7 +73,6 @@ extend-select = ["ANN001", "ANN201", "ANN202", "ANN204"]"data_tools/**" = ["PLC0415"]"data_warehouse/**" = ["PLC0415"]"deployments/**" = ["PLC0415"]-"desktop_recordings/**" = ["PLC0415"]"early_access_features/**" = ["PLC0415"]"endpoints/**" = ["PLC0415"]"error_tracking/**" = ["PLC0415"]diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex ad7e36fc3a6b..c13a6100faef 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -9505,38 +9505,6 @@ export namespace Schemas {totals: AppMetricsTotalsResponseTotals;}- /**- * Serializer for individual transcript segments from AssemblyAI- */- export interface TranscriptSegment {- /**- * Milliseconds from recording start- * @nullable- */- timestamp?: number | null;- /** @nullable */- speaker?: string | null;- text: string;- /**- * Transcription confidence score- * @nullable- */- confidence?: number | null;- /**- * Whether this is the final version- * @nullable- */- is_final?: boolean | null;- }-- /**- * Serializer for appending transcript segments (supports batched real-time uploads)- */- export interface AppendSegments {- /** @minItems 1 */- segments: TranscriptSegment[];- }-export interface ApprovalPolicy {readonly id: string;/** @maxLength 128 */@@ -14104,150 +14072,6 @@ export namespace Schemas {id: string;}- /**- * * `zoom` - zoom- * * `teams` - teams- * * `meet` - meet- * * `desktop_audio` - desktop_audio- * * `slack` - slack- */- export type CreateRecordingRequestPlatformEnum = typeof CreateRecordingRequestPlatformEnum[keyof typeof CreateRecordingRequestPlatformEnum];--- export const CreateRecordingRequestPlatformEnum = {- Zoom: 'zoom',- Teams: 'teams',- Meet: 'meet',- DesktopAudio: 'desktop_audio',- Slack: 'slack',- } as const;-- /**- * Request body for creating a new recording- */- export interface CreateRecordingRequest {- /** Meeting platform being recorded- *- * * `zoom` - zoom- * * `teams` - teams- * * `meet` - meet- * * `desktop_audio` - desktop_audio- * * `slack` - slack */- platform?: CreateRecordingRequestPlatformEnum;- }-- /**- * * `zoom` - Zoom- * * `teams` - Microsoft Teams- * * `meet` - Google Meet- * * `desktop_audio` - Desktop audio- * * `slack` - Slack huddle- */- export type MeetingPlatformEnum = typeof MeetingPlatformEnum[keyof typeof MeetingPlatformEnum];--- export const MeetingPlatformEnum = {- Zoom: 'zoom',- Teams: 'teams',- Meet: 'meet',- DesktopAudio: 'desktop_audio',- Slack: 'slack',- } as const;-- /**- * * `recording` - Recording- * * `uploading` - Uploading- * * `processing` - Processing- * * `ready` - Ready- * * `error` - Error- */- export type DesktopRecordingStatusEnum = typeof DesktopRecordingStatusEnum[keyof typeof DesktopRecordingStatusEnum];--- export const DesktopRecordingStatusEnum = {- Recording: 'recording',- Uploading: 'uploading',- Processing: 'processing',- Ready: 'ready',- Error: 'error',- } as const;-- /**- * Serializer for extracted tasks- */- export interface DesktopRecordingTask {- title: string;- description?: string;- /** @nullable */- assignee?: string | null;- }-- /**- * Response for creating a new recording (includes upload_token)- */- export interface CreateRecordingResponse {- readonly id: string;- readonly team: number;- /** @nullable */- readonly created_by: number | null;- readonly sdk_upload_id: string;- /** @nullable */- recall_recording_id?: string | null;- platform: MeetingPlatformEnum;- /**- * @maxLength 255- * @nullable- */- meeting_title?: string | null;- /**- * @maxLength 200- * @nullable- */- meeting_url?: string | null;- /**- * @minimum -2147483648- * @maximum 2147483647- * @nullable- */- duration_seconds?: number | null;- status?: DesktopRecordingStatusEnum;- /** @nullable */- notes?: string | null;- /** @nullable */- error_message?: string | null;- /**- * @maxLength 200- * @nullable- */- video_url?: string | null;- /**- * @minimum -2147483648- * @maximum 2147483647- * @nullable- */- video_size_bytes?: number | null;- /** List of participant names */- participants?: string[];- readonly transcript_text: string;- /** Transcript segments with timestamps */- transcript_segments?: TranscriptSegment[];- /** @nullable */- summary?: string | null;- /** AI-extracted tasks from transcript */- extracted_tasks?: DesktopRecordingTask[];- /** @nullable */- tasks_generated_at?: string | null;- /** @nullable */- summary_generated_at?: string | null;- started_at?: string;- /** @nullable */- completed_at?: string | null;- readonly created_at: string;- readonly updated_at: string;- /** Recall.ai upload token for the desktop SDK */- upload_token: string;- }-export interface CreateRepoInput {repo_full_name: string;/** @nullable */@@ -17756,67 +17580,6 @@ export namespace Schemas {index?: number;}- export interface DesktopRecording {- readonly id: string;- readonly team: number;- /** @nullable */- readonly created_by: number | null;- readonly sdk_upload_id: string;- /** @nullable */- recall_recording_id?: string | null;- platform: MeetingPlatformEnum;- /**- * @maxLength 255- * @nullable- */- meeting_title?: string | null;- /**- * @maxLength 200- * @nullable- */- meeting_url?: string | null;- /**- * @minimum -2147483648- * @maximum 2147483647- * @nullable- */- duration_seconds?: number | null;- status?: DesktopRecordingStatusEnum;- /** @nullable */- notes?: string | null;- /** @nullable */- error_message?: string | null;- /**- * @maxLength 200- * @nullable- */- video_url?: string | null;- /**- * @minimum -2147483648- * @maximum 2147483647- * @nullable- */- video_size_bytes?: number | null;- /** List of participant names */- participants?: string[];- readonly transcript_text: string;- /** Transcript segments with timestamps */- transcript_segments?: TranscriptSegment[];- /** @nullable */- summary?: string | null;- /** AI-extracted tasks from transcript */- extracted_tasks?: DesktopRecordingTask[];- /** @nullable */- tasks_generated_at?: string | null;- /** @nullable */- summary_generated_at?: string | null;- started_at?: string;- /** @nullable */- completed_at?: string | null;- readonly created_at: string;- readonly updated_at: string;- }-/*** * `Desktop` - Desktop* * `Mobile` - Mobile@@ -31170,15 +30933,6 @@ export namespace Schemas {results: Dataset[];}- export interface PaginatedDesktopRecordingList {- count: number;- /** @nullable */- next?: string | null;- /** @nullable */- previous?: string | null;- results: DesktopRecording[];- }-export interface PaginatedEarlyAccessFeatureList {count: number;/** @nullable */@@ -36646,67 +36400,6 @@ export namespace Schemas {operations?: DesignOperation[];}- export interface PatchedDesktopRecording {- readonly id?: string;- readonly team?: number;- /** @nullable */- readonly created_by?: number | null;- readonly sdk_upload_id?: string;- /** @nullable */- recall_recording_id?: string | null;- platform?: MeetingPlatformEnum;- /**- * @maxLength 255- * @nullable- */- meeting_title?: string | null;- /**- * @maxLength 200- * @nullable- */- meeting_url?: string | null;- /**- * @minimum -2147483648- * @maximum 2147483647- * @nullable- */- duration_seconds?: number | null;- status?: DesktopRecordingStatusEnum;- /** @nullable */- notes?: string | null;- /** @nullable */- error_message?: string | null;- /**- * @maxLength 200- * @nullable- */- video_url?: string | null;- /**- * @minimum -2147483648- * @maximum 2147483647- * @nullable- */- video_size_bytes?: number | null;- /** List of participant names */- participants?: string[];- readonly transcript_text?: string;- /** Transcript segments with timestamps */- transcript_segments?: TranscriptSegment[];- /** @nullable */- summary?: string | null;- /** AI-extracted tasks from transcript */- extracted_tasks?: DesktopRecordingTask[];- /** @nullable */- tasks_generated_at?: string | null;- /** @nullable */- summary_generated_at?: string | null;- started_at?: string;- /** @nullable */- completed_at?: string | null;- readonly created_at?: string;- readonly updated_at?: string;- }-/*** Feature flag payload for this early access feature*/@@ -55065,17 +54758,6 @@ export namespace Schemas {search?: string;};- export type EnvironmentsDesktopRecordingsListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- };-export type EnvironmentsElementsListParams = {/*** Number of results to return per page.@@ -60927,17 +60609,6 @@ export namespace Schemas {offset?: number;};- export type DesktopRecordingsListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- };-export type EarlyAccessFeatureListParams = {/*** Number of results to return per page.diff --git a/services/mcp/src/lib/oauth-scopes.generated.ts b/services/mcp/src/lib/oauth-scopes.generated.tsindex b7816b25f474..93feb84cbf0a 100644--- a/services/mcp/src/lib/oauth-scopes.generated.ts+++ b/services/mcp/src/lib/oauth-scopes.generated.ts@@ -55,8 +55,6 @@ export const OAUTH_SCOPES_SUPPORTED = ['dashboard_template:write','dataset:read','dataset:write',- 'desktop_recording:read',- 'desktop_recording:write','early_access_feature:read','early_access_feature:write','endpoint:read',diff --git a/tach.toml b/tach.tomlindex c7b844110041..ad04245e7fe7 100644--- a/tach.toml+++ b/tach.toml@@ -266,13 +266,6 @@ depends_on = []layer = "modules"-[[modules]]-path = "products.desktop_recordings"-depends_on = [- "posthog",-]-layer = "modules"-[[modules]]path = "products.early_access_features"depends_on = [