YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: update OpenAPI spec from live server — remove dead pipe endpoints, clean names
Louis Beaumontc14bfc4b9bcb
diff --git a/content/docs-mintlify-mig-tmp/openapi.yaml b/content/docs-mintlify-mig-tmp/openapi.yamlindex 4515e10c3..e680c41b6 100644--- a/content/docs-mintlify-mig-tmp/openapi.yaml+++ b/content/docs-mintlify-mig-tmp/openapi.yaml@@ -1,68 +1,32 @@openapi: 3.0.3info:- title: 'Screenpipe API'- version: '1.0.0'- description: |- # Screenpipe API-- Screenpipe is the context layer for AGI - a bridge between context-free AI and context-aware super intelligence.-- ## Core Functionality-- - **Context Retrieval**: Search through screen recordings and audio transcriptions- - **Real-time Streams**: Stream OCR, UI elements, and audio transcriptions- - **Device Management**: Control audio and video recording devices- - **Pipes System**: Extend functionality with pluggable pipes-- ## Getting Started-- The most commonly used endpoints are:-- 1. `/search` - Main endpoint for retrieving contextual data- 2. `/health` - Health check endpoint-+ title: screenpipe API+ description: local API for querying screen recordings, audio transcriptions, and UI events. runs on localhost:3030.+ version: 2.0.0+servers:+ - url: http://localhost:3030+ description: local screenpipe server+tags:+ - name: search+ description: search screen recordings, audio, and UI events+ - name: frames+ description: access captured screen frames+ - name: audio+ description: manage audio recording devices+ - name: vision+ description: manage screen capture monitors+ - name: speakers+ description: manage speaker identification+ - name: tags+ description: tag content for organization+ - name: system+ description: health checks and admin operationspaths:/search:get:- x-order: 1- x-typescript-method: 'queryScreenpipe'- tags: ['Context Retrieval']- summary: 'Search screen and audio content with various filters'- description: |- Query Screenpipe for content based on various filters.-- ## Use Cases-- - Search for specific text across all applications- - Find content from a specific application or window- - Get screenshots from a particular time period- - Retrieve all visits to a specific website-- ## Examples-- ### Basic search for recent browser activity:- ```js- const githubActivity = await pipe.queryScreenpipe({- browserUrl: "github.com",- contentType: "ocr",- limit: 20,- includeFrames: true- });- ```-- ### Search for specific text with date filters:- ```js- const searchResults = await pipe.queryScreenpipe({- q: "authentication",- browserUrl: "auth0.com",- appName: "Chrome",- contentType: "ocr",- startTime: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString(),- endTime: new Date().toISOString(),- limit: 50- });- ```- operationId: server_search+ operationId: search+ tags:+ - searchparameters:- name: qschema:@@ -70,13 +34,6 @@ paths:type: stringin: querystyle: form- examples:- browserSearch:- summary: 'Find recent GitHub activity'- value: null- specificTextSearch:- summary: 'Search for authentication-related content'- value: "authentication"- name: limitschema:type: integer@@ -161,20 +118,32 @@ paths:type: stringin: querystyle: form+ - name: speaker_name+ schema:+ nullable: true+ type: string+ in: query+ style: form+ - name: include_cloud+ schema:+ type: boolean+ in: query+ style: formresponses:'200':- description: ''+ description: OKcontent:application/json:schema:$ref: '#/components/schemas/SearchResponse'-/audio/list:get:- operationId: server_api_list_audio_devices+ operationId: list-audio-devices+ tags:+ - audioresponses:'200':- description: ''+ description: OKcontent:application/json:schema:@@ -183,10 +152,12 @@ paths:$ref: '#/components/schemas/ListDeviceResponse'/vision/list:get:- operationId: server_api_list_monitors+ operationId: list-monitors+ tags:+ - visionresponses:'200':- description: ''+ description: OKcontent:application/json:schema:@@ -195,10 +166,20 @@ paths:$ref: '#/components/schemas/MonitorInfo'/tags/{content_type}/{id}:post:- operationId: server_add_tags+ operationId: add-tags+ tags:+ - tagsparameters:- - $ref: '#/components/parameters/ContentTypeParam'- - $ref: '#/components/parameters/IdParam'+ - name: content_type+ schema:+ type: string+ in: path+ style: simple+ - name: id+ schema:+ type: integer+ in: path+ style: simplerequestBody:content:application/json:@@ -207,198 +188,131 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:$ref: '#/components/schemas/AddTagsResponse'delete:- operationId: server_remove_tags- parameters:- - $ref: '#/components/parameters/ContentTypeParam'- - $ref: '#/components/parameters/IdParam'- responses:- '200':- description: ''- content:- application/json:- schema:- $ref: '#/components/schemas/RemoveTagsResponse'-- /pipes/info/{pipe_id}:- get:- operationId: server_get_pipe_info_handler+ operationId: remove-tags+ tags:+ - tagsparameters:- - $ref: '#/components/parameters/PipeIdParam'- responses:- '200':- description: ''- content:- application/json:- schema:- type: object- /pipes/list:- get:- operationId: server_list_pipes_handler- responses:- '200':- description: ''- content:- application/json:- schema:- type: object- /pipes/download:- post:- operationId: server_download_pipe_handler- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/DownloadPipeRequest'- required: true- responses:- '200':- description: ''- content:- application/json:- schema:- type: object- /pipes/download-private:- post:- operationId: server_download_pipe_private_handler- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/DownloadPipePrivateRequest'- required: true- responses:- '200':- description: ''- content:- application/json:- schema:- type: object- /pipes/enable:- post:- operationId: server_run_pipe_handler- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/RunPipeRequest'- required: true- responses:- '200':- description: ''- content:- application/json:- schema:- type: object- /pipes/disable:- post:- operationId: server_stop_pipe_handler- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/RunPipeRequest'- required: true- responses:- '200':- description: ''- content:- application/json:- schema:- type: object- /pipes/update:- post:- operationId: server_update_pipe_config_handler- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/UpdatePipeConfigRequest'- required: true- responses:- '200':- description: ''- content:- application/json:- schema:- type: object- /pipes/update-version:- post:- operationId: server_update_pipe_version_handler+ - name: content_type+ schema:+ type: string+ in: path+ style: simple+ - name: id+ schema:+ type: integer+ in: path+ style: simplerequestBody:content:application/json:schema:- $ref: '#/components/schemas/UpdatePipeVersionRequest'+ $ref: '#/components/schemas/RemoveTagsRequest'required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:- type: object- /pipes/delete:- post:- operationId: server_delete_pipe_handler- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/DeletePipeRequest'- required: true+ $ref: '#/components/schemas/RemoveTagsResponse'+ /frames/{frame_id}:+ get:+ operationId: get-frame+ tags:+ - frames+ parameters:+ - name: frame_id+ schema:+ type: integer+ in: path+ style: simple+ - name: redact_pii+ schema:+ type: boolean+ in: query+ style: formresponses:'200':- description: ''+ description: OKcontent:application/json:- schema:- type: object- /pipes/purge:- post:- operationId: server_purge_pipe_handler- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/PurgePipeRequest'- required: true+ schema: {}+ /frames/{frame_id}/ocr:+ get:+ description: |-+ Get OCR text positions with bounding boxes for a specific frame.+ This enables text selection overlay on screenshots.+ operationId: get-frame-ocr+ tags:+ - frames+ parameters:+ - name: frame_id+ schema:+ type: integer+ in: path+ style: simpleresponses:'200':- description: ''+ description: OKcontent:application/json:schema:- type: object- /frames/{frame_id}:+ $ref: '#/components/schemas/FrameOcrResponse'+ /frames/next-valid:get:- operationId: server_get_frame_data+ description: |-+ Find the next frame that has a valid video file on disk.+ This allows the frontend to skip directly to a valid frame instead of+ trying each frame one-by-one when frames fail to load.+ operationId: get-next-valid-frame+ tags:+ - framesparameters:- - $ref: '#/components/parameters/FrameIdParam'+ - name: frame_id+ schema:+ type: integer+ in: query+ style: form+ - name: direction+ schema:+ type: string+ in: query+ style: form+ - name: limit+ schema:+ type: integer+ in: query+ style: formresponses:'200':- description: ''+ description: OKcontent:application/json:- schema: {}+ schema:+ $ref: '#/components/schemas/NextValidFrameResponse'/health:get:- operationId: server_health_check+ operationId: health-check+ tags:+ - systemresponses:'200':- description: ''+ description: OKcontent:application/json:schema:$ref: '#/components/schemas/HealthCheckResponse'/raw_sql:post:- operationId: server_execute_raw_sql+ operationId: execute-raw-sql+ tags:+ - systemrequestBody:content:application/json:@@ -407,14 +321,16 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:type: object/add:post:- operationId: server_add_to_database+ operationId: add-content+ tags:+ - systemrequestBody:content:application/json:@@ -423,17 +339,16 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:$ref: '#/components/schemas/AddContentResponse'-- # Speaker management endpoints/speakers/unnamed:get:- tags: ['Speaker Management']- operationId: server_get_unnamed_speakers_handler+ operationId: get-unnamed-speakers+ tags:+ - speakersparameters:- name: limitschema:@@ -455,7 +370,7 @@ paths:style: formresponses:'200':- description: ''+ description: OKcontent:application/json:schema:@@ -464,8 +379,9 @@ paths:$ref: '#/components/schemas/Speaker'/speakers/update:post:- tags: ['Speaker Management']- operationId: server_update_speaker_handler+ operationId: update-speaker+ tags:+ - speakersrequestBody:content:application/json:@@ -474,15 +390,16 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:$ref: '#/components/schemas/Speaker'/speakers/search:get:- tags: ['Speaker Management']- operationId: server_search_speakers_handler+ operationId: search-speakers+ tags:+ - searchparameters:- name: nameschema:@@ -492,7 +409,7 @@ paths:style: formresponses:'200':- description: ''+ description: OKcontent:application/json:schema:@@ -501,8 +418,9 @@ paths:$ref: '#/components/schemas/Speaker'/speakers/delete:post:- tags: ['Speaker Management']- operationId: server_delete_speaker_handler+ operationId: delete-speaker+ tags:+ - speakersrequestBody:content:application/json:@@ -511,15 +429,16 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:type: object/speakers/hallucination:post:- tags: ['Speaker Management']- operationId: server_mark_as_hallucination_handler+ operationId: mark-speaker-hallucination+ tags:+ - speakersrequestBody:content:application/json:@@ -528,15 +447,16 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:type: object/speakers/merge:post:- tags: ['Speaker Management']- operationId: server_merge_speakers_handler+ operationId: merge-speakers+ tags:+ - speakersrequestBody:content:application/json:@@ -545,15 +465,16 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:type: object/speakers/similar:get:- tags: ['Speaker Management']- operationId: server_get_similar_speakers_handler+ operationId: get-similar-speakers+ tags:+ - speakersparameters:- name: speaker_idschema:@@ -567,139 +488,144 @@ paths:style: formresponses:'200':- description: ''+ description: OKcontent:application/json:schema:type: arrayitems:$ref: '#/components/schemas/Speaker'-- # Experimental features- /experimental/frames/merge:+ /speakers/reassign:post:- operationId: server_merge_frames_handler+ operationId: reassign-speaker+ tags:+ - speakersrequestBody:content:application/json:schema:- $ref: '#/components/schemas/MergeVideosRequest'+ $ref: '#/components/schemas/ReassignSpeakerRequest'required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:- $ref: '#/components/schemas/MergeVideosResponse'- /experimental/validate/media:- get:- operationId: server_validate_media_handler- parameters:- - name: file_path- schema:- type: string- in: query- style: form+ $ref: '#/components/schemas/ReassignSpeakerResponse'+ /speakers/undo-reassign:+ post:+ operationId: undo-speaker-reassign+ tags:+ - speakers+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UndoSpeakerReassignRequest'+ required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:- type: object-- /experimental/input_control:+ $ref: '#/components/schemas/UndoSpeakerReassignResponse'+ /experimental/frames/merge:post:- tags: ['Computer Automation']- operationId: server_input_control_handler+ operationId: merge-frames+ tags:+ - framesrequestBody:content:application/json:schema:- $ref: '#/components/schemas/InputControlRequest'+ $ref: '#/components/schemas/MergeVideosRequest'required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:- $ref: '#/components/schemas/InputControlResponse'-- # Audio control endpoints- /audio/start:- post:- tags: ['Audio Control']- operationId: server_start_audio+ $ref: '#/components/schemas/MergeVideosResponse'+ /experimental/validate/media:+ get:+ operationId: validate-media+ tags:+ - system+ parameters:+ - name: file_path+ schema:+ type: string+ in: query+ style: formresponses:'200':- description: ''+ description: OKcontent:application/json:- schema: {}- /audio/stop:+ schema:+ type: object+ /audio/start:post:- tags: ['Audio Control']- operationId: server_stop_audio+ operationId: start-audio+ tags:+ - audioresponses:'200':- description: ''+ description: OKcontent:application/json:schema: {}- /audio/device/start:- post:- tags: ['Audio Control']- operationId: server_start_audio_device- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/AudioDeviceControlRequest'- required: true- responses:- '200':- description: ''- content:- application/json:- schema:- $ref: '#/components/schemas/AudioDeviceControlResponse'- /audio/device/stop:+ /audio/stop:post:- tags: ['Audio Control']- operationId: server_stop_audio_device- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/AudioDeviceControlRequest'- required: true+ operationId: stop-audio+ tags:+ - audioresponses:'200':- description: ''+ description: OKcontent:application/json:- schema:- $ref: '#/components/schemas/AudioDeviceControlResponse'-- /pipes/build-status/{pipe_id}:+ schema: {}+ /semantic-search:get:- operationId: server_get_pipe_build_status+ operationId: semantic-search+ tags:+ - searchparameters:- - $ref: '#/components/parameters/PipeIdParam'+ - name: text+ schema:+ type: string+ in: query+ style: form+ - name: limit+ schema:+ nullable: true+ type: integer+ in: query+ style: form+ - name: threshold+ schema:+ nullable: true+ type: number+ in: query+ style: formresponses:'200':- description: ''+ description: OKcontent:application/json:schema:- type: object+ type: array+ items:+ $ref: '#/components/schemas/OCRResult'/search/keyword:get:- tags: ['Context Retrieval']- summary: 'Keyword-based search'- operationId: server_keyword_search_handler+ operationId: keyword-search+ tags:+ - searchparameters:- name: queryschema:@@ -750,7 +676,7 @@ paths:style: formresponses:'200':- description: ''+ description: OKcontent:application/json:schema:@@ -759,8 +685,9 @@ paths:$ref: '#/components/schemas/SearchMatch'/v1/embeddings:post:- x-typescript-method: 'deduplicateText'- operationId: embedding_embedding_endpoint_create_embeddings+ operationId: create-embeddings+ tags:+ - searchrequestBody:content:application/json:@@ -769,39 +696,64 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:$ref: '#/components/schemas/EmbeddingResponse'--components:- schemas:- ActionResponse:- type: object- properties:- success:- type: boolean- message:- type: string- required:- - success- - message- AddContentData:- type: object- properties:- content_type:- type: string- data:- $ref: '#/components/schemas/ContentData'- required:- - content_type- - data- AddContentRequest:- type: object- properties:- device_name:- type: string+ /audio/device/start:+ post:+ operationId: start-audio-device+ tags:+ - audio+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AudioDeviceControlRequest'+ required: true+ responses:+ '200':+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AudioDeviceControlResponse'+ /audio/device/stop:+ post:+ operationId: stop-audio-device+ tags:+ - audio+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AudioDeviceControlRequest'+ required: true+ responses:+ '200':+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AudioDeviceControlResponse'+components:+ schemas:+ AddContentData:+ type: object+ properties:+ content_type:+ type: string+ data:+ $ref: '#/components/schemas/ContentData'+ required:+ - content_type+ - data+ AddContentRequest:+ type: object+ properties:+ device_name:+ type: stringcontent:$ref: '#/components/schemas/AddContentData'required:@@ -952,12 +904,31 @@ components:type: stringduration_secs:type: number+ audio_chunk_id:+ type: integer+ speaker_id:+ nullable: true+ type: integer+ speaker_name:+ nullable: true+ type: string+ start_time:+ nullable: true+ type: number+ end_time:+ nullable: true+ type: numberrequired:- transcription- device_name- is_input- audio_file_path- duration_secs+ - audio_chunk_id+ - speaker_id+ - speaker_name+ - start_time+ - end_timeAudioResult:type: objectproperties:@@ -1013,30 +984,31 @@ components:required:- transcription- transcription_engine- ClickByIndexRequest:- type: object- properties:- element_index:- type: integer- required:- - element_index- ClickByIndexResponse:+ CloudSearchMetadata:+ description: Metadata about cloud search to include in responses.type: objectproperties:- success:+ cloudSearchAvailable:type: boolean- message:+ cloudHasRelevantData:+ type: boolean+ cloudQueryHint:+ nullable: truetype: string+ status:+ $ref: '#/components/schemas/CloudStatus'required:- - success- - message- ClickElementRequest:- type: object- properties:- selector:- $ref: '#/components/schemas/ElementSelector'- required:- - selector+ - cloudSearchAvailable+ - cloudHasRelevantData+ - cloudQueryHint+ - status+ CloudStatus:+ type: string+ enum:+ - available+ - disabled+ - not_initialized+ - errorContentData:oneOf:- type: array@@ -1123,6 +1095,8 @@ components:focused:nullable: truetype: boolean+ device_name:+ type: stringrequired:- frame_id- text@@ -1136,6 +1110,7 @@ components:- frame_name- browser_url- focused+ - device_namerequired:- type- content@@ -1238,6 +1213,70 @@ components:required:- type- content+ - type: object+ properties:+ type:+ type: string+ enum:+ - Input+ content:+ description: User input event content (clicks, keystrokes, clipboard, etc.)+ type: object+ properties:+ id:+ type: integer+ timestamp:+ type: string+ format: date-time+ event_type:+ type: string+ app_name:+ nullable: true+ type: string+ window_title:+ nullable: true+ type: string+ browser_url:+ nullable: true+ type: string+ text_content:+ nullable: true+ type: string+ x:+ nullable: true+ type: integer+ y:+ nullable: true+ type: integer+ key_code:+ nullable: true+ type: integer+ modifiers:+ nullable: true+ type: integer+ element_role:+ nullable: true+ type: string+ element_name:+ nullable: true+ type: string+ required:+ - id+ - timestamp+ - event_type+ - app_name+ - window_title+ - browser_url+ - text_content+ - x+ - y+ - key_code+ - modifiers+ - element_role+ - element_name+ required:+ - type+ - contentContentSource:type: stringenum:@@ -1245,15 +1284,19 @@ components:- AudioContentType:type: string- description: 'Type of content to search for. "all" returns all content types.'enum:- all+ - vision+ - input- ocr- audio- ui- audio+ui- ocr+ui- audio+ocr+ - vision+audio+input+ - vision+input+ - audio+inputCustomOcrConfig:type: objectproperties:@@ -1267,13 +1310,6 @@ components:- api_url- api_key- timeout_ms- DeletePipeRequest:- type: object- properties:- pipe_id:- type: string- required:- - pipe_idDeleteSpeakerRequest:type: objectproperties:@@ -1296,287 +1332,366 @@ components:enum:- Input- Output- DownloadPipePrivateRequest:- type: object- properties:- url:- type: string- pipe_name:- type: string- pipe_id:- type: string- required:- - url- - pipe_name- - pipe_id- DownloadPipeRequest:- type: object- properties:- url:- type: string- required:- - url- ElementCacheInfo:+ EmbeddingData:type: objectproperties:- cache_id:- type: string- timestamp:- type: string- expires_at:+ object:type: string- element_count:- type: integer- ttl_seconds:+ embedding:+ type: array+ items:+ type: number+ index:type: integerrequired:- - cache_id- - timestamp- - expires_at- - element_count- - ttl_seconds- ElementInfo:- type: object- properties:- id:- type: string- title:- type: string- role:+ - object+ - embedding+ - index+ EmbeddingInput:+ oneOf:+ - type: string+ - type: array+ items:type: string- enabled:- type: boolean- attributes:- nullable: true- type: object- additionalProperties: true- required:- - id- - title- - role- - enabled- ElementSelector:+ EmbeddingRequest:type: objectproperties:- id:+ model:type: string- app:- nullable: true+ input:+ $ref: '#/components/schemas/EmbeddingInput'+ encoding_format:type: string- activateApp:+ user:nullable: true- type: boolean- required:- - id- EmbeddingRequest:- type: object- properties:- input:- type: array- items:- type: string+ type: stringrequired:+ - model- input+ - encoding_format+ - userEmbeddingResponse:type: objectproperties:+ object:+ type: stringdata:type: arrayitems:- type: object- properties:- embedding:- type: array- items:- type: number- index:- type: integer- object:- type: string- required:- - embedding- - index- - object+ $ref: '#/components/schemas/EmbeddingData'model:type: string- object:- type: stringusage:- type: object- properties:- prompt_tokens:- type: integer- total_tokens:- type: integer- required:- - prompt_tokens- - total_tokens+ $ref: '#/components/schemas/Usage'required:+ - object- data- model- - object- usage- FindElementsRequest:+ EventsQuery:type: objectproperties:- role:+ images:+ nullable: true+ type: boolean+ required:+ - images+ FrameContent:+ type: object+ properties:+ file_path:type: string- app:+ timestamp:nullable: truetype: string- strict:+ format: date-time+ app_name:nullable: true- type: boolean- activateApp:+ type: string+ window_name:nullable: true- type: boolean+ type: string+ ocr_results:+ nullable: true+ type: array+ items:+ $ref: '#/components/schemas/OCRResult'+ tags:+ nullable: true+ type: array+ items:+ type: stringrequired:- - role- FindElementsResponse:+ - file_path+ - timestamp+ - app_name+ - window_name+ - ocr_results+ - tags+ FrameData:type: objectproperties:- elements:+ frame_id:+ type: integer+ timestamp:+ type: string+ format: date-time+ offset_index:+ type: integer+ fps:+ type: number+ ocr_entries:+ type: array+ items:+ $ref: '#/components/schemas/OCREntry'+ audio_entries:type: arrayitems:- $ref: '#/components/schemas/ElementInfo'- cache:- $ref: '#/components/schemas/ElementCacheInfo'+ $ref: '#/components/schemas/AudioEntry'required:- - elements- - cache- GetTextRequest:+ - frame_id+ - timestamp+ - offset_index+ - fps+ - ocr_entries+ - audio_entries+ FrameOcrResponse:+ description: Response type for frame OCR data endpointtype: objectproperties:- selector:- $ref: '#/components/schemas/ElementSelector'+ frame_id:+ type: integer+ text_positions:+ type: array+ items:+ $ref: '#/components/schemas/TextPosition'required:- - selector- GetTextResponse:+ - frame_id+ - text_positions+ GetFrameQuery:+ description: Query parameters for frame retrievaltype: objectproperties:- text:- type: string+ redact_pii:+ type: booleanrequired:- - text- HealthCheckResponse:+ - redact_pii+ GetSimilarSpeakersRequest:type: objectproperties:- status:- type: string+ speaker_id:+ type: integer+ limit:+ type: integerrequired:- - status- InputControlRequest:+ - speaker_id+ - limit+ GetUnnamedSpeakersRequest:type: objectproperties:- type:- type: string- key:- nullable: true- type: string- modifiers:+ limit:+ type: integer+ offset:+ type: integer+ speaker_ids:nullable: truetype: arrayitems:- type: string- position:- nullable: true- $ref: '#/components/schemas/Position'- text:- nullable: true- type: string+ type: integerrequired:- - type- InputControlResponse:+ - limit+ - offset+ - speaker_ids+ HealthCheckResponse:type: objectproperties:status:type: string+ status_code:+ type: integer+ last_frame_timestamp:+ nullable: true+ type: string+ format: date-time+ last_audio_timestamp:+ nullable: true+ type: string+ format: date-time+ frame_status:+ type: string+ audio_status:+ type: string+ message:+ type: string+ verbose_instructions:+ nullable: true+ type: string+ device_status_details:+ nullable: true+ type: string+ monitors:+ nullable: true+ type: array+ items:+ type: stringrequired:- status- ListDeviceResponse:+ - status_code+ - last_frame_timestamp+ - last_audio_timestamp+ - frame_status+ - audio_status+ - message+ - verbose_instructions+ - device_status_details+ InputContent:+ description: User input event content (clicks, keystrokes, clipboard, etc.)type: objectproperties:id:type: integer- name:+ timestamp:+ type: string+ format: date-time+ event_type:+ type: string+ app_name:+ nullable: true+ type: string+ window_title:+ nullable: true+ type: string+ browser_url:+ nullable: true+ type: string+ text_content:+ nullable: true+ type: string+ x:+ nullable: true+ type: integer+ y:+ nullable: true+ type: integer+ key_code:+ nullable: true+ type: integer+ modifiers:+ nullable: true+ type: integer+ element_role:+ nullable: true+ type: string+ element_name:+ nullable: truetype: string- device_type:- $ref: '#/components/schemas/DeviceType'- device_control:- $ref: '#/components/schemas/DeviceControl'required:- id- - name- - device_type- - device_control- ListInteractableElementsRequest:+ - timestamp+ - event_type+ - app_name+ - window_title+ - browser_url+ - text_content+ - x+ - y+ - key_code+ - modifiers+ - element_role+ - element_name+ KeywordSearchRequest:type: objectproperties:- app:+ query:+ type: string+ limit:+ type: integer+ offset:+ type: integer+ start_time:nullable: truetype: string- ListInteractableElementsResponse:- type: object- properties:- elements:+ format: date-time+ end_time:+ nullable: true+ type: string+ format: date-time+ fuzzy_match:+ type: boolean+ order:+ $ref: '#/components/schemas/Order'+ app_names:+ nullable: truetype: arrayitems:- type: object- properties:- index:- type: integer- role:- type: string- title:- type: string- required:- - index- - role- - title+ type: string+ required:+ - query+ - limit+ - offset+ - start_time+ - end_time+ - fuzzy_match+ - order+ - app_names+ ListDeviceResponse:+ type: object+ properties:+ name:+ type: string+ is_default:+ type: booleanrequired:- - elements+ - name+ - is_defaultMarkAsHallucinationRequest:type: objectproperties:- id:+ speaker_id:type: integerrequired:- - id+ - speaker_idMergeSpeakersRequest:type: objectproperties:- source_id:+ speaker_to_keep_id:type: integer- target_id:+ speaker_to_merge_id:type: integerrequired:- - source_id- - target_id+ - speaker_to_keep_id+ - speaker_to_merge_idMergeVideosRequest:type: objectproperties:- frame_ids:+ video_tags:+ - name: search+ description: search screen recordings, audio, and UI events+ - name: frames+ description: access captured screen frames+ - name: audio+ description: manage audio recording devices+ - name: vision+ description: manage screen capture monitors+ - name: speakers+ description: manage speaker identification+ - name: tags+ description: tag content for organization+ - name: system+ description: health checks and admin operations+paths:type: arrayitems:- type: integer- output_path:- nullable: true- type: string+ type: stringrequired:- - frame_ids+ - video_pathsMergeVideosResponse:type: objectproperties:- success:- type: boolean- message:- type: string- output_path:+ video_path:type: stringrequired:- - success- - message- - output_path+ - video_pathMonitorInfo:type: objectproperties:@@ -1588,25 +1703,44 @@ components:type: integerheight:type: integer- recording:+ is_default:type: booleanrequired:- id- name- width- height- - recording- OCRResult:+ - is_default+ NextValidFrameQuery:+ description: Query parameters for finding the next valid frametype: objectproperties:- text:+ frame_id:+ type: integer+ direction:type: string- confidence:- type: number+ limit:+ type: integerrequired:- - text- - confidence- OCRSearchMatch:+ - frame_id+ - direction+ - limit+ NextValidFrameResponse:+ description: Response for next valid frame endpoint+ type: object+ properties:+ frame_id:+ type: integer+ timestamp:+ type: string+ format: date-time+ skipped_count:+ type: integer+ required:+ - frame_id+ - timestamp+ - skipped_count+ OCRContent:type: objectproperties:frame_id:@@ -1640,6 +1774,8 @@ components:focused:nullable: truetype: boolean+ device_name:+ type: stringrequired:- frame_id- text@@ -1653,118 +1789,144 @@ components:- frame_name- browser_url- focused- OpenApplicationRequest:+ - device_name+ OCREntry:type: objectproperties:- appName:+ text:type: string- required:- - appName- OpenApplicationResponse:- type: object- properties:- success:- type: boolean- required:- - success- OpenUrlRequest:- type: object- properties:- url:+ app_name:+ type: string+ window_name:+ type: string+ device_name:type: string- browser:+ video_file_path:+ type: string+ browser_url:nullable: truetype: stringrequired:- - url- OpenUrlResponse:+ - text+ - app_name+ - window_name+ - device_name+ - video_file_path+ - browser_url+ OCRResult:type: objectproperties:- success:+ text:+ type: string+ text_json:+ nullable: true+ type: string+ ocr_engine:+ nullable: true+ type: string+ focused:+ nullable: truetype: booleanrequired:- - success+ - text+ - text_json+ - ocr_engine+ - focused+ OcrEngine:+ oneOf:+ - type: object+ properties:+ Custom:+ type: object+ properties:+ api_url:+ type: string+ api_key:+ type: string+ timeout_ms:+ type: integer+ required:+ - api_url+ - api_key+ - timeout_ms+ required:+ - Custom+ - type: string+ enum:+ - Unstructured+ - Tesseract+ - WindowsNative+ - AppleNativeOrder:type: stringenum:- - timestamp_asc- - timestamp_desc- - relevance- Position:+ - ascending+ - descending+ PaginationInfo:type: objectproperties:- x:+ limit:type: integer- y:+ offset:+ type: integer+ total:type: integerrequired:- - x- - y- PressKeyByIndexRequest:+ - limit+ - offset+ - total+ PaginationQuery:type: objectproperties:- element_index:+ limit:type: integer- key:+ offset:+ type: integer+ required:+ - limit+ - offset+ RawSqlQuery:+ type: object+ properties:+ query:type: string- modifiers:- nullable: true- type: array- items:- type: stringrequired:- - element_index- - key- PressKeyByIndexResponse:+ - query+ ReassignSpeakerRequest:type: objectproperties:- success:- type: boolean- message:+ audio_chunk_id:+ type: integer+ new_speaker_name:type: string+ propagate_similar:+ type: booleanrequired:- - success- - message- PressKeyRequest:+ - audio_chunk_id+ - new_speaker_name+ - propagate_similar+ ReassignSpeakerResponse:type: objectproperties:- selector:- $ref: '#/components/schemas/ElementSelector'- key:+ new_speaker_id:+ type: integer+ new_speaker_name:type: string- modifiers:- nullable: true+ transcriptions_updated:+ type: integer+ embeddings_moved:+ type: integer+ old_assignments:type: arrayitems:- type: string+ $ref: '#/components/schemas/SpeakerOldAssignment'required:- - selector- - key- PressKeyResponse:- type: object- properties:- success:- type: boolean- message:- type: string- required:- - success- - message- PurgePipeRequest:- type: object- properties:- pipe_id:- type: string- required:- - pipe_id- RawSqlQuery:- type: object- properties:- query:- type: string- required:- - query- RemoveTagsRequest:+ - new_speaker_id+ - new_speaker_name+ - transcriptions_updated+ - embeddings_moved+ - old_assignments+ RemoveTagsRequest:type: objectproperties:tags:@@ -1780,58 +1942,38 @@ components:type: booleanrequired:- success- RunPipeRequest:- type: object- properties:- pipe_id:- type: string- required:- - pipe_id- ScrollElementRequest:- type: object- properties:- selector:- $ref: '#/components/schemas/ElementSelector'- direction:- type: string- amount:- type: integer- required:- - selector- - direction- - amount- ScrollElementResponse:- type: object- properties:- success:- type: boolean- message:- type: string- required:- - success- - messageSearchMatch:type: objectproperties:- id:+ frame_id:type: integertimestamp:type: stringformat: date-time- snippet:- type: string+ text_positions:+ type: array+ items:+ $ref: '#/components/schemas/TextPosition'app_name:- nullable: truetype: string- score:+ window_name:+ type: string+ confidence:type: number+ text:+ type: string+ url:+ type: stringrequired:- - id+ - frame_id- timestamp- - snippet+ - text_positions- app_name- - score- SearchRequest:+ - window_name+ - confidence+ - text+ - url+ SearchQuery:type: objectproperties:q:@@ -1876,65 +2018,382 @@ components:focused:nullable: truetype: boolean+ browser_url:+ nullable: true+ type: string+ speaker_name:+ nullable: true+ type: string+ include_cloud:+ type: booleanrequired:+ - q- limit- offset- content_type+ - start_time+ - end_time+ - app_name+ - window_name+ - frame_name- include_frames+ - min_length+ - max_length+ - speaker_ids+ - focused+ - browser_url+ - speaker_name+ - include_cloudSearchResponse:type: objectproperties:- results:+ data:type: arrayitems:$ref: '#/components/schemas/ContentItem'- total:+ pagination:+ $ref: '#/components/schemas/PaginationInfo'+ cloud:+ $ref: '#/components/schemas/CloudSearchMetadata'+ required:+ - data+ - pagination+ SearchResult:+ oneOf:+ - type: object+ properties:+ OCR:+ type: object+ properties:+ frame_id:+ type: integer+ frame_name:+ type: string+ ocr_text:+ type: string+ text_json:+ type: string+ timestamp:+ type: string+ format: date-time+ file_path:+ type: string+ offset_index:+ type: integer+ app_name:+ type: string+ ocr_engine:+ type: string+ window_name:+ type: string+ tags:+ type: array+ items:+ type: string+ browser_url:+ nullable: true+ type: string+ focused:+ nullable: true+ type: boolean+ device_name:+ type: string+ required:+ - frame_id+ - frame_name+ - ocr_text+ - text_json+ - timestamp+ - file_path+ - offset_index+ - app_name+ - ocr_engine+ - window_name+ - tags+ - browser_url+ - focused+ - device_name+ required:+ - OCR+ - type: object+ properties:+ Audio:+ type: object+ properties:+ audio_chunk_id:+ type: integer+ transcription:+ type: string+ timestamp:+ type: string+ format: date-time+ file_path:+ type: string+ offset_index:+ type: integer+ transcription_engine:+ type: string+ tags:+ type: array+ items:+ type: string+ device_name:+ type: string+ device_type:+ $ref: '#/components/schemas/DeviceType'+ speaker:+ $ref: '#/components/schemas/Speaker'+ start_time:+ nullable: true+ type: number+ end_time:+ nullable: true+ type: number+ required:+ - audio_chunk_id+ - transcription+ - timestamp+ - file_path+ - offset_index+ - transcription_engine+ - tags+ - device_name+ - device_type+ - speaker+ - start_time+ - end_time+ required:+ - Audio+ - type: object+ properties:+ UI:+ type: object+ properties:+ id:+ type: integer+ text:+ type: string+ timestamp:+ type: string+ format: date-time+ app_name:+ type: string+ window_name:+ type: string+ initial_traversal_at:+ nullable: true+ type: string+ format: date-time+ file_path:+ type: string+ offset_index:+ type: integer+ frame_name:+ nullable: true+ type: string+ browser_url:+ nullable: true+ type: string+ required:+ - id+ - text+ - timestamp+ - app_name+ - window_name+ - initial_traversal_at+ - file_path+ - offset_index+ - frame_name+ - browser_url+ required:+ - UI+ - type: object+ properties:+ Input:+ description: A UI input event stored in the database+ type: object+ properties:+ id:+ type: integer+ timestamp:+ type: string+ format: date-time+ session_id:+ nullable: true+ type: string+ relative_ms:+ type: integer+ event_type:+ $ref: '#/components/schemas/UiEventType'+ x:+ nullable: true+ type: integer+ y:+ nullable: true+ type: integer+ delta_x:+ nullable: true+ type: integer+ delta_y:+ nullable: true+ type: integer+ button:+ nullable: true+ type: integer+ click_count:+ nullable: true+ type: integer+ key_code:+ nullable: true+ type: integer+ modifiers:+ nullable: true+ type: integer+ text_content:+ nullable: true+ type: string+ text_length:+ nullable: true+ type: integer+ app_name:+ nullable: true+ type: string+ app_pid:+ nullable: true+ type: integer+ window_title:+ nullable: true+ type: string+ browser_url:+ nullable: true+ type: string+ element:+ $ref: '#/components/schemas/UiElementContext'+ frame_id:+ nullable: true+ type: integer+ required:+ - id+ - timestamp+ - session_id+ - relative_ms+ - event_type+ - x+ - y+ - delta_x+ - delta_y+ - button+ - click_count+ - key_code+ - modifiers+ - text_content+ - text_length+ - app_name+ - app_pid+ - window_title+ - browser_url+ - element+ - frame_id+ required:+ - Input+ SearchSpeakersRequest:+ type: object+ properties:+ name:+ nullable: true+ type: string+ required:+ - name+ SemanticSearchQuery:+ type: object+ properties:+ text:+ type: string+ limit:+ nullable: truetype: integer+ threshold:+ nullable: true+ type: numberrequired:- - results- - total+ - text+ - limit+ - thresholdSpeaker:type: objectproperties:id:type: integername:- nullable: true+ type: string+ metadata:type: stringrequired:- id- name- TypeByIndexRequest:+ - metadata+ SpeakerOldAssignment:type: objectproperties:- element_index:+ transcription_id:+ type: integer+ old_speaker_id:type: integer- text:- type: stringrequired:- - element_index- - text- TypeByIndexResponse:+ - transcription_id+ - old_speaker_id+ TagContentType:+ type: string+ enum:+ - vision+ - audio+ TextBounds:type: objectproperties:- success:- type: boolean- message:- type: string+ left:+ type: number+ top:+ type: number+ width:+ type: number+ height:+ type: numberrequired:- - success- - message- TypeTextRequest:+ - left+ - top+ - width+ - height+ TextPosition:type: objectproperties:- selector:- $ref: '#/components/schemas/ElementSelector'text:type: string+ confidence:+ type: number+ bounds:+ $ref: '#/components/schemas/TextBounds'required:- - selector- text- UIResult:+ - confidence+ - bounds+ TimeSeriesChunk:+ type: object+ properties:+ frames:+ type: array+ items:+ $ref: '#/components/schemas/FrameData'+ start_time:+ type: string+ format: date-time+ end_time:+ type: string+ format: date-time+ required:+ - frames+ - start_time+ - end_time+ UiContent:type: objectproperties:id:@@ -1973,68 +2432,205 @@ components:- offset_index- frame_name- browser_url- UpdatePipeConfigRequest:+ UiElementContext:+ description: Element context from accessibility APIstype: objectproperties:- pipe_id:+ role:+ nullable: true+ type: string+ name:+ nullable: true+ type: string+ value:+ nullable: true+ type: string+ description:+ nullable: true+ type: string+ automation_id:+ nullable: true+ type: string+ bounds:+ nullable: truetype: string- config:- type: objectrequired:- - pipe_id- - config- UpdatePipeVersionRequest:+ - role+ - name+ - value+ - description+ - automation_id+ - bounds+ UiEventRecord:+ description: A UI input event stored in the databasetype: objectproperties:- pipe_id:+ id:+ type: integer+ timestamp:+ type: string+ format: date-time+ session_id:+ nullable: true+ type: string+ relative_ms:+ type: integer+ event_type:+ $ref: '#/components/schemas/UiEventType'+ x:+ nullable: true+ type: integer+ y:+ nullable: true+ type: integer+ delta_x:+ nullable: true+ type: integer+ delta_y:+ nullable: true+ type: integer+ button:+ nullable: true+ type: integer+ click_count:+ nullable: true+ type: integer+ key_code:+ nullable: true+ type: integer+ modifiers:+ nullable: true+ type: integer+ text_content:+ nullable: truetype: string- version:+ text_length:+ nullable: true+ type: integer+ app_name:+ nullable: truetype: string+ app_pid:+ nullable: true+ type: integer+ window_title:+ nullable: true+ type: string+ browser_url:+ nullable: true+ type: string+ element:+ $ref: '#/components/schemas/UiElementContext'+ frame_id:+ nullable: true+ type: integerrequired:- - pipe_id- - version+ - id+ - timestamp+ - session_id+ - relative_ms+ - event_type+ - x+ - y+ - delta_x+ - delta_y+ - button+ - click_count+ - key_code+ - modifiers+ - text_content+ - text_length+ - app_name+ - app_pid+ - window_title+ - browser_url+ - element+ - frame_id+ UiEventType:+ type: string+ enum:+ - click+ - move+ - scroll+ - key+ - text+ - app_switch+ - window_focus+ - clipboard+ UndoSpeakerReassignRequest:+ type: object+ properties:+ old_assignments:+ type: array+ items:+ $ref: '#/components/schemas/SpeakerOldAssignment'+ required:+ - old_assignments+ UndoSpeakerReassignResponse:+ type: object+ properties:+ restored:+ type: integer+ required:+ - restoredUpdateSpeakerRequest:type: objectproperties:id:type: integername:+ nullable: true+ type: string+ metadata:+ nullable: truetype: stringrequired:- id- name-- parameters:- ContentTypeParam:- name: content_type- description: Type of content- schema:- type: string- enum:- - ocr- - audio- - ui- in: path- required: true- FrameIdParam:- name: frame_id- description: ID of the frame- schema:- type: integer- in: path- required: true- IdParam:- name: id- description: ID of the content item- schema:- type: integer- in: path- required: true- PipeIdParam:- name: pipe_id- description: ID of the pipe- schema:- type: string- in: path- required: true-+ - metadata+ Usage:+ type: object+ properties:+ prompt_tokens:+ type: integer+ total_tokens:+ type: integer+ required:+ - prompt_tokens+ - total_tokens+ ValidateMediaParams:+ type: object+ properties:+ file_path:+ type: string+ required:+ - file_path+ VideoMetadata:+ type: object+ properties:+ creation_time:+ type: string+ format: date-time+ fps:+ type: number+ duration:+ type: number+ device_name:+ nullable: true+ type: string+ name:+ nullable: true+ type: string+ required:+ - creation_time+ - fps+ - duration+ - device_name+ - name+ VisionDeviceControlRequest:+ type: object+ properties:+ device_id:+ type: integer+ required:+ - device_iddiff --git a/docs/mintlify/docs-mintlify-mig-tmp/openapi.yaml b/docs/mintlify/docs-mintlify-mig-tmp/openapi.yamlindex 4515e10c3..e680c41b6 100644--- a/docs/mintlify/docs-mintlify-mig-tmp/openapi.yaml+++ b/docs/mintlify/docs-mintlify-mig-tmp/openapi.yaml@@ -1,68 +1,32 @@openapi: 3.0.3info:- title: 'Screenpipe API'- version: '1.0.0'- description: |- # Screenpipe API-- Screenpipe is the context layer for AGI - a bridge between context-free AI and context-aware super intelligence.-- ## Core Functionality-- - **Context Retrieval**: Search through screen recordings and audio transcriptions- - **Real-time Streams**: Stream OCR, UI elements, and audio transcriptions- - **Device Management**: Control audio and video recording devices- - **Pipes System**: Extend functionality with pluggable pipes-- ## Getting Started-- The most commonly used endpoints are:-- 1. `/search` - Main endpoint for retrieving contextual data- 2. `/health` - Health check endpoint-+ title: screenpipe API+ description: local API for querying screen recordings, audio transcriptions, and UI events. runs on localhost:3030.+ version: 2.0.0+servers:+ - url: http://localhost:3030+ description: local screenpipe server+tags:+ - name: search+ description: search screen recordings, audio, and UI events+ - name: frames+ description: access captured screen frames+ - name: audio+ description: manage audio recording devices+ - name: vision+ description: manage screen capture monitors+ - name: speakers+ description: manage speaker identification+ - name: tags+ description: tag content for organization+ - name: system+ description: health checks and admin operationspaths:/search:get:- x-order: 1- x-typescript-method: 'queryScreenpipe'- tags: ['Context Retrieval']- summary: 'Search screen and audio content with various filters'- description: |- Query Screenpipe for content based on various filters.-- ## Use Cases-- - Search for specific text across all applications- - Find content from a specific application or window- - Get screenshots from a particular time period- - Retrieve all visits to a specific website-- ## Examples-- ### Basic search for recent browser activity:- ```js- const githubActivity = await pipe.queryScreenpipe({- browserUrl: "github.com",- contentType: "ocr",- limit: 20,- includeFrames: true- });- ```-- ### Search for specific text with date filters:- ```js- const searchResults = await pipe.queryScreenpipe({- q: "authentication",- browserUrl: "auth0.com",- appName: "Chrome",- contentType: "ocr",- startTime: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString(),- endTime: new Date().toISOString(),- limit: 50- });- ```- operationId: server_search+ operationId: search+ tags:+ - searchparameters:- name: qschema:@@ -70,13 +34,6 @@ paths:type: stringin: querystyle: form- examples:- browserSearch:- summary: 'Find recent GitHub activity'- value: null- specificTextSearch:- summary: 'Search for authentication-related content'- value: "authentication"- name: limitschema:type: integer@@ -161,20 +118,32 @@ paths:type: stringin: querystyle: form+ - name: speaker_name+ schema:+ nullable: true+ type: string+ in: query+ style: form+ - name: include_cloud+ schema:+ type: boolean+ in: query+ style: formresponses:'200':- description: ''+ description: OKcontent:application/json:schema:$ref: '#/components/schemas/SearchResponse'-/audio/list:get:- operationId: server_api_list_audio_devices+ operationId: list-audio-devices+ tags:+ - audioresponses:'200':- description: ''+ description: OKcontent:application/json:schema:@@ -183,10 +152,12 @@ paths:$ref: '#/components/schemas/ListDeviceResponse'/vision/list:get:- operationId: server_api_list_monitors+ operationId: list-monitors+ tags:+ - visionresponses:'200':- description: ''+ description: OKcontent:application/json:schema:@@ -195,10 +166,20 @@ paths:$ref: '#/components/schemas/MonitorInfo'/tags/{content_type}/{id}:post:- operationId: server_add_tags+ operationId: add-tags+ tags:+ - tagsparameters:- - $ref: '#/components/parameters/ContentTypeParam'- - $ref: '#/components/parameters/IdParam'+ - name: content_type+ schema:+ type: string+ in: path+ style: simple+ - name: id+ schema:+ type: integer+ in: path+ style: simplerequestBody:content:application/json:@@ -207,198 +188,131 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:$ref: '#/components/schemas/AddTagsResponse'delete:- operationId: server_remove_tags- parameters:- - $ref: '#/components/parameters/ContentTypeParam'- - $ref: '#/components/parameters/IdParam'- responses:- '200':- description: ''- content:- application/json:- schema:- $ref: '#/components/schemas/RemoveTagsResponse'-- /pipes/info/{pipe_id}:- get:- operationId: server_get_pipe_info_handler+ operationId: remove-tags+ tags:+ - tagsparameters:- - $ref: '#/components/parameters/PipeIdParam'- responses:- '200':- description: ''- content:- application/json:- schema:- type: object- /pipes/list:- get:- operationId: server_list_pipes_handler- responses:- '200':- description: ''- content:- application/json:- schema:- type: object- /pipes/download:- post:- operationId: server_download_pipe_handler- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/DownloadPipeRequest'- required: true- responses:- '200':- description: ''- content:- application/json:- schema:- type: object- /pipes/download-private:- post:- operationId: server_download_pipe_private_handler- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/DownloadPipePrivateRequest'- required: true- responses:- '200':- description: ''- content:- application/json:- schema:- type: object- /pipes/enable:- post:- operationId: server_run_pipe_handler- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/RunPipeRequest'- required: true- responses:- '200':- description: ''- content:- application/json:- schema:- type: object- /pipes/disable:- post:- operationId: server_stop_pipe_handler- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/RunPipeRequest'- required: true- responses:- '200':- description: ''- content:- application/json:- schema:- type: object- /pipes/update:- post:- operationId: server_update_pipe_config_handler- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/UpdatePipeConfigRequest'- required: true- responses:- '200':- description: ''- content:- application/json:- schema:- type: object- /pipes/update-version:- post:- operationId: server_update_pipe_version_handler+ - name: content_type+ schema:+ type: string+ in: path+ style: simple+ - name: id+ schema:+ type: integer+ in: path+ style: simplerequestBody:content:application/json:schema:- $ref: '#/components/schemas/UpdatePipeVersionRequest'+ $ref: '#/components/schemas/RemoveTagsRequest'required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:- type: object- /pipes/delete:- post:- operationId: server_delete_pipe_handler- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/DeletePipeRequest'- required: true+ $ref: '#/components/schemas/RemoveTagsResponse'+ /frames/{frame_id}:+ get:+ operationId: get-frame+ tags:+ - frames+ parameters:+ - name: frame_id+ schema:+ type: integer+ in: path+ style: simple+ - name: redact_pii+ schema:+ type: boolean+ in: query+ style: formresponses:'200':- description: ''+ description: OKcontent:application/json:- schema:- type: object- /pipes/purge:- post:- operationId: server_purge_pipe_handler- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/PurgePipeRequest'- required: true+ schema: {}+ /frames/{frame_id}/ocr:+ get:+ description: |-+ Get OCR text positions with bounding boxes for a specific frame.+ This enables text selection overlay on screenshots.+ operationId: get-frame-ocr+ tags:+ - frames+ parameters:+ - name: frame_id+ schema:+ type: integer+ in: path+ style: simpleresponses:'200':- description: ''+ description: OKcontent:application/json:schema:- type: object- /frames/{frame_id}:+ $ref: '#/components/schemas/FrameOcrResponse'+ /frames/next-valid:get:- operationId: server_get_frame_data+ description: |-+ Find the next frame that has a valid video file on disk.+ This allows the frontend to skip directly to a valid frame instead of+ trying each frame one-by-one when frames fail to load.+ operationId: get-next-valid-frame+ tags:+ - framesparameters:- - $ref: '#/components/parameters/FrameIdParam'+ - name: frame_id+ schema:+ type: integer+ in: query+ style: form+ - name: direction+ schema:+ type: string+ in: query+ style: form+ - name: limit+ schema:+ type: integer+ in: query+ style: formresponses:'200':- description: ''+ description: OKcontent:application/json:- schema: {}+ schema:+ $ref: '#/components/schemas/NextValidFrameResponse'/health:get:- operationId: server_health_check+ operationId: health-check+ tags:+ - systemresponses:'200':- description: ''+ description: OKcontent:application/json:schema:$ref: '#/components/schemas/HealthCheckResponse'/raw_sql:post:- operationId: server_execute_raw_sql+ operationId: execute-raw-sql+ tags:+ - systemrequestBody:content:application/json:@@ -407,14 +321,16 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:type: object/add:post:- operationId: server_add_to_database+ operationId: add-content+ tags:+ - systemrequestBody:content:application/json:@@ -423,17 +339,16 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:$ref: '#/components/schemas/AddContentResponse'-- # Speaker management endpoints/speakers/unnamed:get:- tags: ['Speaker Management']- operationId: server_get_unnamed_speakers_handler+ operationId: get-unnamed-speakers+ tags:+ - speakersparameters:- name: limitschema:@@ -455,7 +370,7 @@ paths:style: formresponses:'200':- description: ''+ description: OKcontent:application/json:schema:@@ -464,8 +379,9 @@ paths:$ref: '#/components/schemas/Speaker'/speakers/update:post:- tags: ['Speaker Management']- operationId: server_update_speaker_handler+ operationId: update-speaker+ tags:+ - speakersrequestBody:content:application/json:@@ -474,15 +390,16 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:$ref: '#/components/schemas/Speaker'/speakers/search:get:- tags: ['Speaker Management']- operationId: server_search_speakers_handler+ operationId: search-speakers+ tags:+ - searchparameters:- name: nameschema:@@ -492,7 +409,7 @@ paths:style: formresponses:'200':- description: ''+ description: OKcontent:application/json:schema:@@ -501,8 +418,9 @@ paths:$ref: '#/components/schemas/Speaker'/speakers/delete:post:- tags: ['Speaker Management']- operationId: server_delete_speaker_handler+ operationId: delete-speaker+ tags:+ - speakersrequestBody:content:application/json:@@ -511,15 +429,16 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:type: object/speakers/hallucination:post:- tags: ['Speaker Management']- operationId: server_mark_as_hallucination_handler+ operationId: mark-speaker-hallucination+ tags:+ - speakersrequestBody:content:application/json:@@ -528,15 +447,16 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:type: object/speakers/merge:post:- tags: ['Speaker Management']- operationId: server_merge_speakers_handler+ operationId: merge-speakers+ tags:+ - speakersrequestBody:content:application/json:@@ -545,15 +465,16 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:type: object/speakers/similar:get:- tags: ['Speaker Management']- operationId: server_get_similar_speakers_handler+ operationId: get-similar-speakers+ tags:+ - speakersparameters:- name: speaker_idschema:@@ -567,139 +488,144 @@ paths:style: formresponses:'200':- description: ''+ description: OKcontent:application/json:schema:type: arrayitems:$ref: '#/components/schemas/Speaker'-- # Experimental features- /experimental/frames/merge:+ /speakers/reassign:post:- operationId: server_merge_frames_handler+ operationId: reassign-speaker+ tags:+ - speakersrequestBody:content:application/json:schema:- $ref: '#/components/schemas/MergeVideosRequest'+ $ref: '#/components/schemas/ReassignSpeakerRequest'required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:- $ref: '#/components/schemas/MergeVideosResponse'- /experimental/validate/media:- get:- operationId: server_validate_media_handler- parameters:- - name: file_path- schema:- type: string- in: query- style: form+ $ref: '#/components/schemas/ReassignSpeakerResponse'+ /speakers/undo-reassign:+ post:+ operationId: undo-speaker-reassign+ tags:+ - speakers+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UndoSpeakerReassignRequest'+ required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:- type: object-- /experimental/input_control:+ $ref: '#/components/schemas/UndoSpeakerReassignResponse'+ /experimental/frames/merge:post:- tags: ['Computer Automation']- operationId: server_input_control_handler+ operationId: merge-frames+ tags:+ - framesrequestBody:content:application/json:schema:- $ref: '#/components/schemas/InputControlRequest'+ $ref: '#/components/schemas/MergeVideosRequest'required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:- $ref: '#/components/schemas/InputControlResponse'-- # Audio control endpoints- /audio/start:- post:- tags: ['Audio Control']- operationId: server_start_audio+ $ref: '#/components/schemas/MergeVideosResponse'+ /experimental/validate/media:+ get:+ operationId: validate-media+ tags:+ - system+ parameters:+ - name: file_path+ schema:+ type: string+ in: query+ style: formresponses:'200':- description: ''+ description: OKcontent:application/json:- schema: {}- /audio/stop:+ schema:+ type: object+ /audio/start:post:- tags: ['Audio Control']- operationId: server_stop_audio+ operationId: start-audio+ tags:+ - audioresponses:'200':- description: ''+ description: OKcontent:application/json:schema: {}- /audio/device/start:- post:- tags: ['Audio Control']- operationId: server_start_audio_device- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/AudioDeviceControlRequest'- required: true- responses:- '200':- description: ''- content:- application/json:- schema:- $ref: '#/components/schemas/AudioDeviceControlResponse'- /audio/device/stop:+ /audio/stop:post:- tags: ['Audio Control']- operationId: server_stop_audio_device- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/AudioDeviceControlRequest'- required: true+ operationId: stop-audio+ tags:+ - audioresponses:'200':- description: ''+ description: OKcontent:application/json:- schema:- $ref: '#/components/schemas/AudioDeviceControlResponse'-- /pipes/build-status/{pipe_id}:+ schema: {}+ /semantic-search:get:- operationId: server_get_pipe_build_status+ operationId: semantic-search+ tags:+ - searchparameters:- - $ref: '#/components/parameters/PipeIdParam'+ - name: text+ schema:+ type: string+ in: query+ style: form+ - name: limit+ schema:+ nullable: true+ type: integer+ in: query+ style: form+ - name: threshold+ schema:+ nullable: true+ type: number+ in: query+ style: formresponses:'200':- description: ''+ description: OKcontent:application/json:schema:- type: object+ type: array+ items:+ $ref: '#/components/schemas/OCRResult'/search/keyword:get:- tags: ['Context Retrieval']- summary: 'Keyword-based search'- operationId: server_keyword_search_handler+ operationId: keyword-search+ tags:+ - searchparameters:- name: queryschema:@@ -750,7 +676,7 @@ paths:style: formresponses:'200':- description: ''+ description: OKcontent:application/json:schema:@@ -759,8 +685,9 @@ paths:$ref: '#/components/schemas/SearchMatch'/v1/embeddings:post:- x-typescript-method: 'deduplicateText'- operationId: embedding_embedding_endpoint_create_embeddings+ operationId: create-embeddings+ tags:+ - searchrequestBody:content:application/json:@@ -769,39 +696,64 @@ paths:required: trueresponses:'200':- description: ''+ description: OKcontent:application/json:schema:$ref: '#/components/schemas/EmbeddingResponse'--components:- schemas:- ActionResponse:- type: object- properties:- success:- type: boolean- message:- type: string- required:- - success- - message- AddContentData:- type: object- properties:- content_type:- type: string- data:- $ref: '#/components/schemas/ContentData'- required:- - content_type- - data- AddContentRequest:- type: object- properties:- device_name:- type: string+ /audio/device/start:+ post:+ operationId: start-audio-device+ tags:+ - audio+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AudioDeviceControlRequest'+ required: true+ responses:+ '200':+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AudioDeviceControlResponse'+ /audio/device/stop:+ post:+ operationId: stop-audio-device+ tags:+ - audio+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AudioDeviceControlRequest'+ required: true+ responses:+ '200':+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AudioDeviceControlResponse'+components:+ schemas:+ AddContentData:+ type: object+ properties:+ content_type:+ type: string+ data:+ $ref: '#/components/schemas/ContentData'+ required:+ - content_type+ - data+ AddContentRequest:+ type: object+ properties:+ device_name:+ type: stringcontent:$ref: '#/components/schemas/AddContentData'required:@@ -952,12 +904,31 @@ components:type: stringduration_secs:type: number+ audio_chunk_id:+ type: integer+ speaker_id:+ nullable: true+ type: integer+ speaker_name:+ nullable: true+ type: string+ start_time:+ nullable: true+ type: number+ end_time:+ nullable: true+ type: numberrequired:- transcription- device_name- is_input- audio_file_path- duration_secs+ - audio_chunk_id+ - speaker_id+ - speaker_name+ - start_time+ - end_timeAudioResult:type: objectproperties:@@ -1013,30 +984,31 @@ components:required:- transcription- transcription_engine- ClickByIndexRequest:- type: object- properties:- element_index:- type: integer- required:- - element_index- ClickByIndexResponse:+ CloudSearchMetadata:+ description: Metadata about cloud search to include in responses.type: objectproperties:- success:+ cloudSearchAvailable:type: boolean- message:+ cloudHasRelevantData:+ type: boolean+ cloudQueryHint:+ nullable: truetype: string+ status:+ $ref: '#/components/schemas/CloudStatus'required:- - success- - message- ClickElementRequest:- type: object- properties:- selector:- $ref: '#/components/schemas/ElementSelector'- required:- - selector+ - cloudSearchAvailable+ - cloudHasRelevantData+ - cloudQueryHint+ - status+ CloudStatus:+ type: string+ enum:+ - available+ - disabled+ - not_initialized+ - errorContentData:oneOf:- type: array@@ -1123,6 +1095,8 @@ components:focused:nullable: truetype: boolean+ device_name:+ type: stringrequired:- frame_id- text@@ -1136,6 +1110,7 @@ components:- frame_name- browser_url- focused+ - device_namerequired:- type- content@@ -1238,6 +1213,70 @@ components:required:- type- content+ - type: object+ properties:+ type:+ type: string+ enum:+ - Input+ content:+ description: User input event content (clicks, keystrokes, clipboard, etc.)+ type: object+ properties:+ id:+ type: integer+ timestamp:+ type: string+ format: date-time+ event_type:+ type: string+ app_name:+ nullable: true+ type: string+ window_title:+ nullable: true+ type: string+ browser_url:+ nullable: true+ type: string+ text_content:+ nullable: true+ type: string+ x:+ nullable: true+ type: integer+ y:+ nullable: true+ type: integer+ key_code:+ nullable: true+ type: integer+ modifiers:+ nullable: true+ type: integer+ element_role:+ nullable: true+ type: string+ element_name:+ nullable: true+ type: string+ required:+ - id+ - timestamp+ - event_type+ - app_name+ - window_title+ - browser_url+ - text_content+ - x+ - y+ - key_code+ - modifiers+ - element_role+ - element_name+ required:+ - type+ - contentContentSource:type: stringenum:@@ -1245,15 +1284,19 @@ components:- AudioContentType:type: string- description: 'Type of content to search for. "all" returns all content types.'enum:- all+ - vision+ - input- ocr- audio- ui- audio+ui- ocr+ui- audio+ocr+ - vision+audio+input+ - vision+input+ - audio+inputCustomOcrConfig:type: objectproperties:@@ -1267,13 +1310,6 @@ components:- api_url- api_key- timeout_ms- DeletePipeRequest:- type: object- properties:- pipe_id:- type: string- required:- - pipe_idDeleteSpeakerRequest:type: objectproperties:@@ -1296,287 +1332,366 @@ components:enum:- Input- Output- DownloadPipePrivateRequest:- type: object- properties:- url:- type: string- pipe_name:- type: string- pipe_id:- type: string- required:- - url- - pipe_name- - pipe_id- DownloadPipeRequest:- type: object- properties:- url:- type: string- required:- - url- ElementCacheInfo:+ EmbeddingData:type: objectproperties:- cache_id:- type: string- timestamp:- type: string- expires_at:+ object:type: string- element_count:- type: integer- ttl_seconds:+ embedding:+ type: array+ items:+ type: number+ index:type: integerrequired:- - cache_id- - timestamp- - expires_at- - element_count- - ttl_seconds- ElementInfo:- type: object- properties:- id:- type: string- title:- type: string- role:+ - object+ - embedding+ - index+ EmbeddingInput:+ oneOf:+ - type: string+ - type: array+ items:type: string- enabled:- type: boolean- attributes:- nullable: true- type: object- additionalProperties: true- required:- - id- - title- - role- - enabled- ElementSelector:+ EmbeddingRequest:type: objectproperties:- id:+ model:type: string- app:- nullable: true+ input:+ $ref: '#/components/schemas/EmbeddingInput'+ encoding_format:type: string- activateApp:+ user:nullable: true- type: boolean- required:- - id- EmbeddingRequest:- type: object- properties:- input:- type: array- items:- type: string+ type: stringrequired:+ - model- input+ - encoding_format+ - userEmbeddingResponse:type: objectproperties:+ object:+ type: stringdata:type: arrayitems:- type: object- properties:- embedding:- type: array- items:- type: number- index:- type: integer- object:- type: string- required:- - embedding- - index- - object+ $ref: '#/components/schemas/EmbeddingData'model:type: string- object:- type: stringusage:- type: object- properties:- prompt_tokens:- type: integer- total_tokens:- type: integer- required:- - prompt_tokens- - total_tokens+ $ref: '#/components/schemas/Usage'required:+ - object- data- model- - object- usage- FindElementsRequest:+ EventsQuery:type: objectproperties:- role:+ images:+ nullable: true+ type: boolean+ required:+ - images+ FrameContent:+ type: object+ properties:+ file_path:type: string- app:+ timestamp:nullable: truetype: string- strict:+ format: date-time+ app_name:nullable: true- type: boolean- activateApp:+ type: string+ window_name:nullable: true- type: boolean+ type: string+ ocr_results:+ nullable: true+ type: array+ items:+ $ref: '#/components/schemas/OCRResult'+ tags:+ nullable: true+ type: array+ items:+ type: stringrequired:- - role- FindElementsResponse:+ - file_path+ - timestamp+ - app_name+ - window_name+ - ocr_results+ - tags+ FrameData:type: objectproperties:- elements:+ frame_id:+ type: integer+ timestamp:+ type: string+ format: date-time+ offset_index:+ type: integer+ fps:+ type: number+ ocr_entries:+ type: array+ items:+ $ref: '#/components/schemas/OCREntry'+ audio_entries:type: arrayitems:- $ref: '#/components/schemas/ElementInfo'- cache:- $ref: '#/components/schemas/ElementCacheInfo'+ $ref: '#/components/schemas/AudioEntry'required:- - elements- - cache- GetTextRequest:+ - frame_id+ - timestamp+ - offset_index+ - fps+ - ocr_entries+ - audio_entries+ FrameOcrResponse:+ description: Response type for frame OCR data endpointtype: objectproperties:- selector:- $ref: '#/components/schemas/ElementSelector'+ frame_id:+ type: integer+ text_positions:+ type: array+ items:+ $ref: '#/components/schemas/TextPosition'required:- - selector- GetTextResponse:+ - frame_id+ - text_positions+ GetFrameQuery:+ description: Query parameters for frame retrievaltype: objectproperties:- text:- type: string+ redact_pii:+ type: booleanrequired:- - text- HealthCheckResponse:+ - redact_pii+ GetSimilarSpeakersRequest:type: objectproperties:- status:- type: string+ speaker_id:+ type: integer+ limit:+ type: integerrequired:- - status- InputControlRequest:+ - speaker_id+ - limit+ GetUnnamedSpeakersRequest:type: objectproperties:- type:- type: string- key:- nullable: true- type: string- modifiers:+ limit:+ type: integer+ offset:+ type: integer+ speaker_ids:nullable: truetype: arrayitems:- type: string- position:- nullable: true- $ref: '#/components/schemas/Position'- text:- nullable: true- type: string+ type: integerrequired:- - type- InputControlResponse:+ - limit+ - offset+ - speaker_ids+ HealthCheckResponse:type: objectproperties:status:type: string+ status_code:+ type: integer+ last_frame_timestamp:+ nullable: true+ type: string+ format: date-time+ last_audio_timestamp:+ nullable: true+ type: string+ format: date-time+ frame_status:+ type: string+ audio_status:+ type: string+ message:+ type: string+ verbose_instructions:+ nullable: true+ type: string+ device_status_details:+ nullable: true+ type: string+ monitors:+ nullable: true+ type: array+ items:+ type: stringrequired:- status- ListDeviceResponse:+ - status_code+ - last_frame_timestamp+ - last_audio_timestamp+ - frame_status+ - audio_status+ - message+ - verbose_instructions+ - device_status_details+ InputContent:+ description: User input event content (clicks, keystrokes, clipboard, etc.)type: objectproperties:id:type: integer- name:+ timestamp:+ type: string+ format: date-time+ event_type:+ type: string+ app_name:+ nullable: true+ type: string+ window_title:+ nullable: true+ type: string+ browser_url:+ nullable: true+ type: string+ text_content:+ nullable: true+ type: string+ x:+ nullable: true+ type: integer+ y:+ nullable: true+ type: integer+ key_code:+ nullable: true+ type: integer+ modifiers:+ nullable: true+ type: integer+ element_role:+ nullable: true+ type: string+ element_name:+ nullable: truetype: string- device_type:- $ref: '#/components/schemas/DeviceType'- device_control:- $ref: '#/components/schemas/DeviceControl'required:- id- - name- - device_type- - device_control- ListInteractableElementsRequest:+ - timestamp+ - event_type+ - app_name+ - window_title+ - browser_url+ - text_content+ - x+ - y+ - key_code+ - modifiers+ - element_role+ - element_name+ KeywordSearchRequest:type: objectproperties:- app:+ query:+ type: string+ limit:+ type: integer+ offset:+ type: integer+ start_time:nullable: truetype: string- ListInteractableElementsResponse:- type: object- properties:- elements:+ format: date-time+ end_time:+ nullable: true+ type: string+ format: date-time+ fuzzy_match:+ type: boolean+ order:+ $ref: '#/components/schemas/Order'+ app_names:+ nullable: truetype: arrayitems:- type: object- properties:- index:- type: integer- role:- type: string- title:- type: string- required:- - index- - role- - title+ type: string+ required:+ - query+ - limit+ - offset+ - start_time+ - end_time+ - fuzzy_match+ - order+ - app_names+ ListDeviceResponse:+ type: object+ properties:+ name:+ type: string+ is_default:+ type: booleanrequired:- - elements+ - name+ - is_defaultMarkAsHallucinationRequest:type: objectproperties:- id:+ speaker_id:type: integerrequired:- - id+ - speaker_idMergeSpeakersRequest:type: objectproperties:- source_id:+ speaker_to_keep_id:type: integer- target_id:+ speaker_to_merge_id:type: integerrequired:- - source_id- - target_id+ - speaker_to_keep_id+ - speaker_to_merge_idMergeVideosRequest:type: objectproperties:- frame_ids:+ video_tags:+ - name: search+ description: search screen recordings, audio, and UI events+ - name: frames+ description: access captured screen frames+ - name: audio+ description: manage audio recording devices+ - name: vision+ description: manage screen capture monitors+ - name: speakers+ description: manage speaker identification+ - name: tags+ description: tag content for organization+ - name: system+ description: health checks and admin operations+paths:type: arrayitems:- type: integer- output_path:- nullable: true- type: string+ type: stringrequired:- - frame_ids+ - video_pathsMergeVideosResponse:type: objectproperties:- success:- type: boolean- message:- type: string- output_path:+ video_path:type: stringrequired:- - success- - message- - output_path+ - video_pathMonitorInfo:type: objectproperties:@@ -1588,25 +1703,44 @@ components:type: integerheight:type: integer- recording:+ is_default:type: booleanrequired:- id- name- width- height- - recording- OCRResult:+ - is_default+ NextValidFrameQuery:+ description: Query parameters for finding the next valid frametype: objectproperties:- text:+ frame_id:+ type: integer+ direction:type: string- confidence:- type: number+ limit:+ type: integerrequired:- - text- - confidence- OCRSearchMatch:+ - frame_id+ - direction+ - limit+ NextValidFrameResponse:+ description: Response for next valid frame endpoint+ type: object+ properties:+ frame_id:+ type: integer+ timestamp:+ type: string+ format: date-time+ skipped_count:+ type: integer+ required:+ - frame_id+ - timestamp+ - skipped_count+ OCRContent:type: objectproperties:frame_id:@@ -1640,6 +1774,8 @@ components:focused:nullable: truetype: boolean+ device_name:+ type: stringrequired:- frame_id- text@@ -1653,118 +1789,144 @@ components:- frame_name- browser_url- focused- OpenApplicationRequest:+ - device_name+ OCREntry:type: objectproperties:- appName:+ text:type: string- required:- - appName- OpenApplicationResponse:- type: object- properties:- success:- type: boolean- required:- - success- OpenUrlRequest:- type: object- properties:- url:+ app_name:+ type: string+ window_name:+ type: string+ device_name:type: string- browser:+ video_file_path:+ type: string+ browser_url:nullable: truetype: stringrequired:- - url- OpenUrlResponse:+ - text+ - app_name+ - window_name+ - device_name+ - video_file_path+ - browser_url+ OCRResult:type: objectproperties:- success:+ text:+ type: string+ text_json:+ nullable: true+ type: string+ ocr_engine:+ nullable: true+ type: string+ focused:+ nullable: truetype: booleanrequired:- - success+ - text+ - text_json+ - ocr_engine+ - focused+ OcrEngine:+ oneOf:+ - type: object+ properties:+ Custom:+ type: object+ properties:+ api_url:+ type: string+ api_key:+ type: string+ timeout_ms:+ type: integer+ required:+ - api_url+ - api_key+ - timeout_ms+ required:+ - Custom+ - type: string+ enum:+ - Unstructured+ - Tesseract+ - WindowsNative+ - AppleNativeOrder:type: stringenum:- - timestamp_asc- - timestamp_desc- - relevance- Position:+ - ascending+ - descending+ PaginationInfo:type: objectproperties:- x:+ limit:type: integer- y:+ offset:+ type: integer+ total:type: integerrequired:- - x- - y- PressKeyByIndexRequest:+ - limit+ - offset+ - total+ PaginationQuery:type: objectproperties:- element_index:+ limit:type: integer- key:+ offset:+ type: integer+ required:+ - limit+ - offset+ RawSqlQuery:+ type: object+ properties:+ query:type: string- modifiers:- nullable: true- type: array- items:- type: stringrequired:- - element_index- - key- PressKeyByIndexResponse:+ - query+ ReassignSpeakerRequest:type: objectproperties:- success:- type: boolean- message:+ audio_chunk_id:+ type: integer+ new_speaker_name:type: string+ propagate_similar:+ type: booleanrequired:- - success- - message- PressKeyRequest:+ - audio_chunk_id+ - new_speaker_name+ - propagate_similar+ ReassignSpeakerResponse:type: objectproperties:- selector:- $ref: '#/components/schemas/ElementSelector'- key:+ new_speaker_id:+ type: integer+ new_speaker_name:type: string- modifiers:- nullable: true+ transcriptions_updated:+ type: integer+ embeddings_moved:+ type: integer+ old_assignments:type: arrayitems:- type: string+ $ref: '#/components/schemas/SpeakerOldAssignment'required:- - selector- - key- PressKeyResponse:- type: object- properties:- success:- type: boolean- message:- type: string- required:- - success- - message- PurgePipeRequest:- type: object- properties:- pipe_id:- type: string- required:- - pipe_id- RawSqlQuery:- type: object- properties:- query:- type: string- required:- - query- RemoveTagsRequest:+ - new_speaker_id+ - new_speaker_name+ - transcriptions_updated+ - embeddings_moved+ - old_assignments+ RemoveTagsRequest:type: objectproperties:tags:@@ -1780,58 +1942,38 @@ components:type: booleanrequired:- success- RunPipeRequest:- type: object- properties:- pipe_id:- type: string- required:- - pipe_id- ScrollElementRequest:- type: object- properties:- selector:- $ref: '#/components/schemas/ElementSelector'- direction:- type: string- amount:- type: integer- required:- - selector- - direction- - amount- ScrollElementResponse:- type: object- properties:- success:- type: boolean- message:- type: string- required:- - success- - messageSearchMatch:type: objectproperties:- id:+ frame_id:type: integertimestamp:type: stringformat: date-time- snippet:- type: string+ text_positions:+ type: array+ items:+ $ref: '#/components/schemas/TextPosition'app_name:- nullable: truetype: string- score:+ window_name:+ type: string+ confidence:type: number+ text:+ type: string+ url:+ type: stringrequired:- - id+ - frame_id- timestamp- - snippet+ - text_positions- app_name- - score- SearchRequest:+ - window_name+ - confidence+ - text+ - url+ SearchQuery:type: objectproperties:q:@@ -1876,65 +2018,382 @@ components:focused:nullable: truetype: boolean+ browser_url:+ nullable: true+ type: string+ speaker_name:+ nullable: true+ type: string+ include_cloud:+ type: booleanrequired:+ - q- limit- offset- content_type+ - start_time+ - end_time+ - app_name+ - window_name+ - frame_name- include_frames+ - min_length+ - max_length+ - speaker_ids+ - focused+ - browser_url+ - speaker_name+ - include_cloudSearchResponse:type: objectproperties:- results:+ data:type: arrayitems:$ref: '#/components/schemas/ContentItem'- total:+ pagination:+ $ref: '#/components/schemas/PaginationInfo'+ cloud:+ $ref: '#/components/schemas/CloudSearchMetadata'+ required:+ - data+ - pagination+ SearchResult:+ oneOf:+ - type: object+ properties:+ OCR:+ type: object+ properties:+ frame_id:+ type: integer+ frame_name:+ type: string+ ocr_text:+ type: string+ text_json:+ type: string+ timestamp:+ type: string+ format: date-time+ file_path:+ type: string+ offset_index:+ type: integer+ app_name:+ type: string+ ocr_engine:+ type: string+ window_name:+ type: string+ tags:+ type: array+ items:+ type: string+ browser_url:+ nullable: true+ type: string+ focused:+ nullable: true+ type: boolean+ device_name:+ type: string+ required:+ - frame_id+ - frame_name+ - ocr_text+ - text_json+ - timestamp+ - file_path+ - offset_index+ - app_name+ - ocr_engine+ - window_name+ - tags+ - browser_url+ - focused+ - device_name+ required:+ - OCR+ - type: object+ properties:+ Audio:+ type: object+ properties:+ audio_chunk_id:+ type: integer+ transcription:+ type: string+ timestamp:+ type: string+ format: date-time+ file_path:+ type: string+ offset_index:+ type: integer+ transcription_engine:+ type: string+ tags:+ type: array+ items:+ type: string+ device_name:+ type: string+ device_type:+ $ref: '#/components/schemas/DeviceType'+ speaker:+ $ref: '#/components/schemas/Speaker'+ start_time:+ nullable: true+ type: number+ end_time:+ nullable: true+ type: number+ required:+ - audio_chunk_id+ - transcription+ - timestamp+ - file_path+ - offset_index+ - transcription_engine+ - tags+ - device_name+ - device_type+ - speaker+ - start_time+ - end_time+ required:+ - Audio+ - type: object+ properties:+ UI:+ type: object+ properties:+ id:+ type: integer+ text:+ type: string+ timestamp:+ type: string+ format: date-time+ app_name:+ type: string+ window_name:+ type: string+ initial_traversal_at:+ nullable: true+ type: string+ format: date-time+ file_path:+ type: string+ offset_index:+ type: integer+ frame_name:+ nullable: true+ type: string+ browser_url:+ nullable: true+ type: string+ required:+ - id+ - text+ - timestamp+ - app_name+ - window_name+ - initial_traversal_at+ - file_path+ - offset_index+ - frame_name+ - browser_url+ required:+ - UI+ - type: object+ properties:+ Input:+ description: A UI input event stored in the database+ type: object+ properties:+ id:+ type: integer+ timestamp:+ type: string+ format: date-time+ session_id:+ nullable: true+ type: string+ relative_ms:+ type: integer+ event_type:+ $ref: '#/components/schemas/UiEventType'+ x:+ nullable: true+ type: integer+ y:+ nullable: true+ type: integer+ delta_x:+ nullable: true+ type: integer+ delta_y:+ nullable: true+ type: integer+ button:+ nullable: true+ type: integer+ click_count:+ nullable: true+ type: integer+ key_code:+ nullable: true+ type: integer+ modifiers:+ nullable: true+ type: integer+ text_content:+ nullable: true+ type: string+ text_length:+ nullable: true+ type: integer+ app_name:+ nullable: true+ type: string+ app_pid:+ nullable: true+ type: integer+ window_title:+ nullable: true+ type: string+ browser_url:+ nullable: true+ type: string+ element:+ $ref: '#/components/schemas/UiElementContext'+ frame_id:+ nullable: true+ type: integer+ required:+ - id+ - timestamp+ - session_id+ - relative_ms+ - event_type+ - x+ - y+ - delta_x+ - delta_y+ - button+ - click_count+ - key_code+ - modifiers+ - text_content+ - text_length+ - app_name+ - app_pid+ - window_title+ - browser_url+ - element+ - frame_id+ required:+ - Input+ SearchSpeakersRequest:+ type: object+ properties:+ name:+ nullable: true+ type: string+ required:+ - name+ SemanticSearchQuery:+ type: object+ properties:+ text:+ type: string+ limit:+ nullable: truetype: integer+ threshold:+ nullable: true+ type: numberrequired:- - results- - total+ - text+ - limit+ - thresholdSpeaker:type: objectproperties:id:type: integername:- nullable: true+ type: string+ metadata:type: stringrequired:- id- name- TypeByIndexRequest:+ - metadata+ SpeakerOldAssignment:type: objectproperties:- element_index:+ transcription_id:+ type: integer+ old_speaker_id:type: integer- text:- type: stringrequired:- - element_index- - text- TypeByIndexResponse:+ - transcription_id+ - old_speaker_id+ TagContentType:+ type: string+ enum:+ - vision+ - audio+ TextBounds:type: objectproperties:- success:- type: boolean- message:- type: string+ left:+ type: number+ top:+ type: number+ width:+ type: number+ height:+ type: numberrequired:- - success- - message- TypeTextRequest:+ - left+ - top+ - width+ - height+ TextPosition:type: objectproperties:- selector:- $ref: '#/components/schemas/ElementSelector'text:type: string+ confidence:+ type: number+ bounds:+ $ref: '#/components/schemas/TextBounds'required:- - selector- text- UIResult:+ - confidence+ - bounds+ TimeSeriesChunk:+ type: object+ properties:+ frames:+ type: array+ items:+ $ref: '#/components/schemas/FrameData'+ start_time:+ type: string+ format: date-time+ end_time:+ type: string+ format: date-time+ required:+ - frames+ - start_time+ - end_time+ UiContent:type: objectproperties:id:@@ -1973,68 +2432,205 @@ components:- offset_index- frame_name- browser_url- UpdatePipeConfigRequest:+ UiElementContext:+ description: Element context from accessibility APIstype: objectproperties:- pipe_id:+ role:+ nullable: true+ type: string+ name:+ nullable: true+ type: string+ value:+ nullable: true+ type: string+ description:+ nullable: true+ type: string+ automation_id:+ nullable: true+ type: string+ bounds:+ nullable: truetype: string- config:- type: objectrequired:- - pipe_id- - config- UpdatePipeVersionRequest:+ - role+ - name+ - value+ - description+ - automation_id+ - bounds+ UiEventRecord:+ description: A UI input event stored in the databasetype: objectproperties:- pipe_id:+ id:+ type: integer+ timestamp:+ type: string+ format: date-time+ session_id:+ nullable: true+ type: string+ relative_ms:+ type: integer+ event_type:+ $ref: '#/components/schemas/UiEventType'+ x:+ nullable: true+ type: integer+ y:+ nullable: true+ type: integer+ delta_x:+ nullable: true+ type: integer+ delta_y:+ nullable: true+ type: integer+ button:+ nullable: true+ type: integer+ click_count:+ nullable: true+ type: integer+ key_code:+ nullable: true+ type: integer+ modifiers:+ nullable: true+ type: integer+ text_content:+ nullable: truetype: string- version:+ text_length:+ nullable: true+ type: integer+ app_name:+ nullable: truetype: string+ app_pid:+ nullable: true+ type: integer+ window_title:+ nullable: true+ type: string+ browser_url:+ nullable: true+ type: string+ element:+ $ref: '#/components/schemas/UiElementContext'+ frame_id:+ nullable: true+ type: integerrequired:- - pipe_id- - version+ - id+ - timestamp+ - session_id+ - relative_ms+ - event_type+ - x+ - y+ - delta_x+ - delta_y+ - button+ - click_count+ - key_code+ - modifiers+ - text_content+ - text_length+ - app_name+ - app_pid+ - window_title+ - browser_url+ - element+ - frame_id+ UiEventType:+ type: string+ enum:+ - click+ - move+ - scroll+ - key+ - text+ - app_switch+ - window_focus+ - clipboard+ UndoSpeakerReassignRequest:+ type: object+ properties:+ old_assignments:+ type: array+ items:+ $ref: '#/components/schemas/SpeakerOldAssignment'+ required:+ - old_assignments+ UndoSpeakerReassignResponse:+ type: object+ properties:+ restored:+ type: integer+ required:+ - restoredUpdateSpeakerRequest:type: objectproperties:id:type: integername:+ nullable: true+ type: string+ metadata:+ nullable: truetype: stringrequired:- id- name-- parameters:- ContentTypeParam:- name: content_type- description: Type of content- schema:- type: string- enum:- - ocr- - audio- - ui- in: path- required: true- FrameIdParam:- name: frame_id- description: ID of the frame- schema:- type: integer- in: path- required: true- IdParam:- name: id- description: ID of the content item- schema:- type: integer- in: path- required: true- PipeIdParam:- name: pipe_id- description: ID of the pipe- schema:- type: string- in: path- required: true-+ - metadata+ Usage:+ type: object+ properties:+ prompt_tokens:+ type: integer+ total_tokens:+ type: integer+ required:+ - prompt_tokens+ - total_tokens+ ValidateMediaParams:+ type: object+ properties:+ file_path:+ type: string+ required:+ - file_path+ VideoMetadata:+ type: object+ properties:+ creation_time:+ type: string+ format: date-time+ fps:+ type: number+ duration:+ type: number+ device_name:+ nullable: true+ type: string+ name:+ nullable: true+ type: string+ required:+ - creation_time+ - fps+ - duration+ - device_name+ - name+ VisionDeviceControlRequest:+ type: object+ properties:+ device_id:+ type: integer+ required:+ - device_id