Ir al contenido
DevLab

Generada de los tipos publicados de @neurologyca/capture 0.45.0 y @neurologyca/capture-server 0.20.1. Cada export lleva su firma y, si la tiene, la página que lo explica. Los nombres son los del paquete, en inglés. Esta página se genera con npm run docs:gen; no se edita a mano.

  • abandonUpload · function · Diferido (en servidor)
    declare function abandonUpload(captureId: string, opts: AbandonUploadOptions): Promise<void>;
  • captureCacheStatus · function · En el dispositivo (tiempo real)
    declare function captureCacheStatus(opts?: CaptureCacheStatusOptions): Promise<PrepareCacheStatus>;
  • classifyMediaError · function · Steps y marcado
    declare function classifyMediaError(e: unknown, env?: { isSecureContext?: boolean; hasMediaDevices?: boolean; }): MediaProblem | null;
  • consumeSse · function · En el dispositivo (tiempo real)
    declare function consumeSse(body: ReadableStream<Uint8Array>, onEvent: (event: string, data: unknown) => void): Promise<void>;
  • createGazeTracker · function · sin guía
    declare function createGazeTracker(opts?: GazeTrackerOptions): GazeTracker;
  • createProtocolClient · function · En el dispositivo (tiempo real)
    declare function createProtocolClient(config: ProtocolClientConfig): ProtocolClientHandle;
  • createRecordingClient · function · Diferido (en servidor)
    declare function createRecordingClient(config: RecordingClientConfig): RecordingClientHandle;
  • defineTenantConfig · function · En el dispositivo (tiempo real)
    declare function defineTenantConfig(config: TenantConfig): TenantConfig;
  • describeStep · function · Steps y marcado
    declare function describeStep(step: PlanStep, opts?: { lang?: string; }): StepFacts;
  • forgetTranscriptionVeto · function · En el dispositivo (tiempo real)
    declare function forgetTranscriptionVeto(kodec: VideoVetoTarget): Promise<unknown | null>;
  • guardUnload · function · Steps y marcado
    declare function guardUnload(isUnsafe?: () => boolean): () => void;
  • keepScreenOn · function · Steps y marcado
    declare function keepScreenOn(): Promise<{ supported: boolean; release(): void; }>;
  • listPendingRecordings · function · Diferido (en servidor)
    declare function listPendingRecordings(opts?: ListPendingRecordingsOptions): Promise<RecordingResult[]>;
  • makeKodecStt · function · En el dispositivo (tiempo real)
    declare function makeKodecStt(host: KodecSttHost, opts?: KodecSttOptions): (cfg: TranscribeConfig) => SttProvider;
  • normalizeSource · function · En el dispositivo (tiempo real)
    declare function normalizeSource(src: MediaStream | HTMLVideoElement | CaptureSource): CaptureSource;
  • prepareCapture · function · En el dispositivo (tiempo real)
    declare function prepareCapture(opts: PrepareCaptureOptions): Promise<PrepareResult>;
  • readScoreIndex · function · HCIs y resultados
    declare function readScoreIndex(structured: unknown, key?: ScoreIndexKey, opts?: ReadScoreIndexOptions): ScoreIndex | null;
  • readTranscriptionVeto · function · En el dispositivo (tiempo real)
    declare function readTranscriptionVeto(kodec: VideoVetoTarget): Promise<{ veto: unknown | null; learned: unknown; }>;
  • resolveTaxonomy · function · En el dispositivo (tiempo real)
    declare function resolveTaxonomy(config: TenantConfig, mechanicName?: string): Taxonomy2;
  • startOrAsk · function · Steps y marcado
    declare function startOrAsk<T>(start: (discardPending: boolean) => Promise<T>, ask: (holder: PositionHolder | null) => Promise<boolean>): Promise<T | null>;
  • sttBlockerOf · function · En el dispositivo (tiempo real)
    declare function sttBlockerOf(e: unknown): SttBlocker | undefined;
  • uploadRecording · function · Diferido (en servidor)
    declare function uploadRecording(rec: RecordingResult, opts: UploadRecordingOptions): Promise<UploadRecordingResult>;
  • urlTokenProvider · function · En el dispositivo (tiempo real)
    declare function urlTokenProvider(tokenUrl: string, opts?: { method?: 'GET' | 'POST'; timeoutMs?: number; credentials?: RequestCredentials; }): TokenProvider;
  • validateManifest · function · Diferido (en servidor)
    declare function validateManifest(m: RecordingManifest, opts?: { durationMs?: number | null; }): string[];
  • waitForPortraitOrientation · function · Steps y marcado
    declare function waitForPortraitOrientation(opts?: { handheld?: boolean; signal?: AbortSignal; }): Promise<{ handheld: boolean | null; waited: boolean; }>;
  • AbandonUploadOptions · interface · Diferido (en servidor)
    interface AbandonUploadOptions
    miembros: credentials · headers · signal · url
  • AnalyzeAnswer · interface · Errores, avisos y reintentos
    interface AnalyzeAnswer
    miembros: fromCache · inProgress · interpretation · raw · retryAfterMs
  • BackendFrame · interface · En el dispositivo (tiempo real)
    interface BackendFrame
    miembros: audio · blendshapes · body · clientTsMs · featuresMeta · gaze · hands · headPose · landmarks · mediaTimeMs · rppg
  • Baseline2Info · interface · Baseline
    interface Baseline2Info
    miembros: expiryDays · isValid · lastUpdatedAt
  • BaselineCaptureOpts · interface · Baseline
    interface BaselineCaptureOpts
    miembros: durationMs · onProgress · onStarted · signal · source · userId
  • BaselineCaptureResult · interface · Baseline
    interface BaselineCaptureResult
    miembros: complete · framesReceived · framesReceivedWithoutFeaturesMeta · framesSent · framesSentWithoutFeaturesMeta · framesWithoutPose · missingOrders · packets · packetsExpected · packetsReceived
  • BaselineProgress · interface · Baseline
    interface BaselineProgress
    miembros: elapsedMs · fraction · totalMs
  • CalibrateOptions · interface · sin guía
    interface CalibrateOptions
    miembros: managedBySdk · onNotice · onTarget · points · signal
  • CalibrationReport · interface · sin guía
    interface CalibrationReport
    miembros: attempts · centered · endedAt · gainY · offset · ok · points · quality · reason · repeatedFor · samples · startedAt · warnings
  • CalibrationTarget · interface · sin guía
    interface CalibrationTarget
    miembros: index · phase · total · x · y
  • CaptureOutcome · interface · HCIs y resultados
    interface CaptureOutcome
    miembros: frameCount · hcis · hcisByStep · interpretation · status · structured
  • CaptureProtocolOpts · interface · En el dispositivo (tiempo real)
    interface CaptureProtocolOpts
    miembros: captureId · dangerouslyIgnoreCadence · discardPending · gaze · interpretation · mediaClock · onStarted · protocolMechanicId · signal · sleepBand · source · taxonomy · transcribe · triggerAnalysis · userProtocolId
  • CaptureQualitySummary · interface · HCIs y resultados
    interface CaptureQualitySummary
    miembros: capture · delegate · droppedTotal · fps · maxFps · minFps · windows
  • ChannelSelection · interface · En el dispositivo (tiempo real)
    interface ChannelSelection
    miembros: audio · body · hands · pulse
  • ConflictDetail · interface · Errores, avisos y reintentos
    interface ConflictDetail
    miembros: captureId · capturedAt · earliestAt · expected · expired · goToPosition · hint · holder · latestAnalysedAt · raw · reason · rule
  • DeviceCheck · interface · En el dispositivo (tiempo real)
    interface DeviceCheck
    miembros: id · measured · reason · status
  • EngineToken · interface · En el dispositivo (tiempo real)
    interface EngineToken
    miembros: expiresAt · token
  • FrameClockStats · interface · En el dispositivo (tiempo real)
    interface FrameClockStats
    miembros: head · iqr · max · mean · min · n · overflow · p25 · p50 · p75 · saturated · slopeMsPerSec · tail · underflow
  • FrameGaze · interface · sin guía
    interface FrameGaze
    miembros: isFixating · point · region · spread · stimulus
  • FrameSource · interface · En el dispositivo (tiempo real)
    interface FrameSource
    miembros: kodecSessionId · ownsLoadClock · start · stop
  • FrameSourceCallbacks · interface · En el dispositivo (tiempo real)
    interface FrameSourceCallbacks
    miembros: onCameraReady · onCodecError · onCodecEvent · onFrame · onLandmarks · onLive · onSignals · onStarted · onTranscriptionCut
  • GazeFrame · interface · sin guía
    interface GazeFrame
    miembros: clientTsMs · featuresMeta · headPose · landmarks
  • GazePoint · interface · sin guía
    interface GazePoint
    miembros: x · y
  • GazeSample · interface · sin guía
    interface GazeSample
    miembros: fixating · point · region · spread · tMs
  • GazeTracker · interface · sin guía
    interface GazeTracker
    miembros: calibrate · calibrated · forFrame · history · last · push · recalibrate · setGlasses · setStimulus
  • GazeTrackerOptions · interface · sin guía
    interface GazeTrackerOptions
    miembros: glasses · now · onGaze
  • KodecSttHost · interface · En el dispositivo (tiempo real)
    interface KodecSttHost
    miembros: kodec · mediaStream
  • KodecSttOptions · interface · En el dispositivo (tiempo real)
    interface KodecSttOptions
    miembros: awaitVideoProof · canTranscribe · enable · flushTimeoutMs · limits
  • KodecSttTarget · interface · En el dispositivo (tiempo real)
    interface KodecSttTarget
    miembros: captureQuality · disableLocalTranscription · enableLocalTranscription · flushLocalTranscription · models · pauseLocalTranscription · resumeLocalTranscription · sessionSpeech · takeTranscriptDelta · transcriptionCutBy · transcriptionLoad · transcriptionStats
  • KodecTuning · interface · En el dispositivo (tiempo real)
    interface KodecTuning
    miembros: capture · delegate · faceModel · handModel · poseModel · visionUrl · wasmUrl
  • ListPendingRecordingsOptions · interface · Diferido (en servidor)
    interface ListPendingRecordingsOptions
    miembros: onWarning
  • LiveSignal · interface · En el dispositivo (tiempo real)
    interface LiveSignal
    miembros: clientTsMs · headPose
  • ManifestStep · interface · Steps y marcado
    interface ManifestStep
    miembros: endMediaMs · endedBy · mediaPid · order · startMediaMs · type
  • ModeDecision · interface · En el dispositivo (tiempo real)
    interface ModeDecision
    miembros: by · mode · probeFps · reason
  • ModelDownload · interface · En el dispositivo (tiempo real)
    interface ModelDownload
    miembros: files · filesDone · loadedBytes · totalBytes · totalKnown
  • ModelSelection · interface · En el dispositivo (tiempo real)
    interface ModelSelection
    miembros: body · hands
  • PlanStep · interface · Steps y marcado
    interface PlanStep
    miembros: category · delivery · description · expectsSpeech · maxTimeSeconds · media · minTimeSeconds · optional · order · phases · presentationSeconds · rounds · targetConstellationHciId · type
  • PositionHolder · interface · En el dispositivo (tiempo real)
    interface PositionHolder
    miembros: captureId · capturedAt · deferred · finished · receivingPackets · recordingEndedAt
  • PositionState · interface · En el dispositivo (tiempo real)
    interface PositionState
    miembros: completed · mechanicName · position · protocolMechanicId
  • PrepareCacheStatus · interface · En el dispositivo (tiempo real)
    interface PrepareCacheStatus
    miembros: faceModel · speechWeights · sttLibrary · sttRuntime · visionRuntime
  • PrepareCaptureOptions · interface · En el dispositivo (tiempo real)
    interface PrepareCaptureOptions
    miembros: kodec · level · models · onStartupStage · onWarning · prepare · signal · startup · tenant · throwOnFailure · transcribe
  • PrepareOptions · interface · En el dispositivo (tiempo real)
    interface PrepareOptions
    miembros: level · models · signal · throwOnFailure · timeouts
  • PrepareResult · interface · En el dispositivo (tiempo real)
    interface PrepareResult
    miembros: cache · capture · cutBy · device · estimatedSpeechMs · face · level · messageKey · outcome · partialReason · report · stages · transcription · transcriptionGate · userMessage
  • PreparedBlock · interface · En el dispositivo (tiempo real)
    interface PreparedBlock
    miembros: face · faceReloaded · level · origin · prepareId · speech
  • ProtocolClientConfig · interface · En el dispositivo (tiempo real)
    interface ProtocolClientConfig
    miembros: analyzeTimeoutMs · baseUrl · batchMs · channels · correlationId · credentials · fps · getToken · keepPrepared · kodec · makeStt · mode · models · onCodecEvent · onError · onInterpretation · onInterpretationDetails · onLandmarks · onLive · onProgress · onRecording · onReport · onResult · onSignals · onStartupStage · onStatus · onTranscript · onWarning · outcomeDeadlineMs · query · recording · requestTimeoutMs · sleepBand · startup · stepDurations · taxonomy · tenant · transcribe · transcribeSteps
  • ProtocolClientHandle · interface · En el dispositivo (tiempo real)
    interface ProtocolClientHandle
    miembros: analyze · cacheStatus · captureBaseline · captureProtocol · correlationPrefix · getBaselineInfo · getProtocolState · prepare · release · retrieveResults
  • ProtocolError · interface · Errores, avisos y reintentos
    interface ProtocolError
    miembros: code · conflict · message · reason · recoverable · stepOrder
  • ProtocolInterpretationDetailsEvent · interface · HCIs y resultados
    interface ProtocolInterpretationDetailsEvent
    miembros: metadata · protocolMechanicId · raw · structured · userProtocolId
  • ProtocolInterpretationEvent · interface · HCIs y resultados
    interface ProtocolInterpretationEvent
    miembros: fromCache · interpretation · metadata · protocolMechanicId · raw · structured · userProtocolId
  • ProtocolPlan · interface · Steps y marcado
    interface ProtocolPlan
    miembros: flowMode · mechanicName · position · steps · timeBetweenSessionsSeconds
  • ProtocolProgressEvent · interface · En el dispositivo (tiempo real)
    interface ProtocolProgressEvent
    miembros: phase · route
  • ProtocolResultEvent · interface · HCIs y resultados
    interface ProtocolResultEvent
    miembros: frameCount · hcis · hcisByStep · protocolMechanicId · raw · userProtocolId
  • ProtocolSessionHandle · interface · En el dispositivo (tiempo real)
    interface ProtocolSessionHandle
    miembros: abort · captureId · correlationId · plan · step · stepTiming · stop
  • ProtocolState · interface · En el dispositivo (tiempo real)
    interface ProtocolState
    miembros: asOf · availability · baselineWarning · next · positions · progress
  • ProtocolStatusEvent · interface · En el dispositivo (tiempo real)
    interface ProtocolStatusEvent
    miembros: status · stepOrder
  • ProtocolStepHandle · interface · Steps y marcado
    interface ProtocolStepHandle
    miembros: end · run · start
  • ProtocolWarningEvent · interface · Errores, avisos y reintentos
    interface ProtocolWarningEvent
    miembros: blocker · captureId · code · cut · fields · hci · message · messageKey · part · reason · stage · stepOrder · subStage · userMessage
  • ReadScoreIndexOptions · interface · HCIs y resultados
    interface ReadScoreIndexOptions
    miembros: onWarning · onWarning
  • RecalibrateOptions · interface · sin guía
    interface RecalibrateOptions
    miembros: correct · onTarget · points · signal
  • RecalibrationPoint · interface · sin guía
    interface RecalibrationPoint
    miembros: deviation · dx · dy · measured · samples · target
  • RecalibrationReport · interface · sin guía
    interface RecalibrationReport
    miembros: corrected · endedAt · glasses · meanDeviation · offsetAfter · offsetBefore · points · startedAt
  • RecordingClientConfig · interface · Diferido (en servidor)
    interface RecordingClientConfig
    miembros: analyzeTimeoutMs · baseUrl · credentials · getToken · onError · onRecording · onStartupStage · onWarning · recording · requestTimeoutMs · startup · stepDurations · taxonomy · tenant
  • RecordingClientHandle · interface · Diferido (en servidor)
    interface RecordingClientHandle
    miembros: analyze · captureProtocol · getBaselineInfo · getProtocolState · prepare · release · retrieveResults
  • RecordingManifest · interface · Diferido (en servidor)
    interface RecordingManifest
    miembros: audioGaps · captureId · client · hidden · interpreted · orientation · orientationChanges · prerollMs · protocolMechanicId · recorder · recordingStartedAtMs · recordingStartedAtPrecisionMs · serverClockSkewMs · steps · stimulus · stopMediaMs · triggerAnalysis · userProtocolId · version · videoGaps
  • RecordingOptions · interface · Diferido (en servidor)
    interface RecordingOptions
    miembros: handheld · maxFps · postrollMs · prerollMs · reserve · videoBitsPerSecond
  • RecordingPrepareOptions · interface · Diferido (en servidor)
    interface RecordingPrepareOptions
    miembros: signal · throwOnFailure · timeouts
  • RecordingResult · interface · Diferido (en servidor)
    interface RecordingResult
    miembros: blob · manifest · release · storage
  • RecordingSessionHandle · interface · Diferido (en servidor)
    interface RecordingSessionHandle extends Omit<ProtocolSessionHandle, 'stop'>
    miembros: result · stop · trackStimulus · abort · captureId · correlationId · plan · step · stepTiming · stop
  • ReplayReport · interface · Servicio de procesado
    interface ReplayReport
    miembros: cost · origin · outsideSteps · steps · transcription
  • ScoreIndex · interface · HCIs y resultados
    interface ScoreIndex
    miembros: band · degradedSignals · indicatorsUsed · label · status · value · band · degradedSignals · indicatorsUsed · label · status · value
  • SessionAttempt · interface · En el dispositivo (tiempo real)
    interface SessionAttempt
    miembros: captureId · createdAt · status
  • SessionReport · interface · HCIs y resultados
    interface SessionReport
    miembros: alignmentMisses · cancel · captureId · captureQuality · clock · codecErrors · correlationId · endedBy · finalGapWaitMs · framesBeforeFirstPacket · hiddenMs · interpretationMode · interpretationSource · kodecSessionId · modelDownload · replay · speech · startup · steps · streamDropsDuringWait · transcription · transcriptionLoad · transcriptionSetup · triggerAnalysis
  • SourceOpts · interface · En el dispositivo (tiempo real)
    interface SourceOpts
    miembros: audio · channels · gaze · kodec · mediaClock · models
  • SpeechSlice · interface · En el dispositivo (tiempo real)
    interface SpeechSlice
    miembros: endMs · language · spokenMs · startMs · step · sttModel · text
  • StartupOptions · interface · En el dispositivo (tiempo real)
    interface StartupOptions
    miembros: includeUserAgent · locale · messages · report · timeouts
  • StartupReport · interface · En el dispositivo (tiempo real)
    interface StartupReport
    miembros: at · capture · context · cutBy · device · estimatedSpeechMs · kept · kind · kodecVersion · learned · level · mode · outcome · partialReason · prepared · schema · sdkVersion · seq · stages · startupId · totalMs · transcription · transcriptionGate · uaVersionToken · userAgent
  • StartupReportOptions · interface · En el dispositivo (tiempo real)
    interface StartupReportOptions
    miembros: context · on · url
  • StartupStageEvent · interface · En el dispositivo (tiempo real)
    interface StartupStageEvent
    miembros: blocker · bytes · bytesPerSec · kind · messageKey · ms · parent · pending · reason · source · stage · startupId · status · total · userMessage
  • StartupStageRecord · interface · En el dispositivo (tiempo real)
    interface StartupStageRecord
    miembros: blocker · bytes · ms · parent · pending · reason · source · stage · status · total
  • StartupTimeoutGroup · interface · En el dispositivo (tiempo real)
    interface StartupTimeoutGroup
    miembros: stallMs · totalMs
  • StepFacts · interface · Steps y marcado
    interface StepFacts
    miembros: assets · bands · deliveryMode · expectsSpeech · maxSeconds · minSeconds · optional · order · phases · responseClock · rounds · text · texts · type · unknown
  • StepMedia · interface · Steps y marcado
    interface StepMedia
    miembros: body · kind · location · pid
  • StepPhase · interface · Steps y marcado
    interface StepPhase
    miembros: mediaPid · order · phase · seconds
  • StepRunOpts · interface · Steps y marcado
    interface StepRunOpts extends StepStartOpts
    miembros: durationMs · mediaPid
  • StepStartOpts · interface · Steps y marcado
    interface StepStartOpts
    miembros: mediaPid
  • StepTiming · interface · Steps y marcado
    interface StepTiming
    miembros: elapsedMs · maxMs · maxReached · minMs · minReached · order · remainingMs
  • StepTranscription · interface · En el dispositivo (tiempo real)
    interface StepTranscription
    miembros: cutsMaxLength · discarded · discardedAntiStuckMs · discardedMs · emitted · order · recoveredMs · retriedSplit · spokenMs · transcribed · type
  • StimulusSample · interface · Steps y marcado
    interface StimulusSample
    miembros: atMediaMs · event · stimulusTimeMs
  • SttDelta · interface · En el dispositivo (tiempo real)
    interface SttDelta
    miembros: endMs · items · spokenMs · startMs · text
  • SttDiagnostics · interface · En el dispositivo (tiempo real)
    interface SttDiagnostics
    miembros: confidenceFilter · confidenceMeasured · confidenceUnmeasurable · cutBy · discardedAnnotationOnly · discardedBySilero · discardedEmpty · discardedLowConfidence · discardedRepetitionLoop · emitted · inferenceErrors · lostOnClose · modelLoad · pending · recoveredMs · retriedSplit · usesWorker · vad · workerBlockedByCsp · workerFailedBecause
  • SttProvider · interface · En el dispositivo (tiempo real)
    interface SttProvider
    miembros: diagnostics · dispose · flush · ownsLoadClock · pause · result · resume · start · stop · takeDelta
  • SttResult · interface · En el dispositivo (tiempo real)
    interface SttResult
    miembros: accuracy · endMs · language · list · spokenMs · startMs · text
  • SttUtterance · interface · En el dispositivo (tiempo real)
    interface SttUtterance
    miembros: avgLogprob · closedBy · endMs · final · lang · latencyMs · retried · silero · spokenMs · startMs · text · utteranceSeq
  • SttWord · interface · En el dispositivo (tiempo real)
    interface SttWord
    miembros: timestamp · word
  • Taxonomy2 · interface · En el dispositivo (tiempo real)
    interface Taxonomy2
    miembros: contextId · hciId · situationId · subcontextId
  • TenantConfig · interface · En el dispositivo (tiempo real)
    interface TenantConfig
    miembros: batchMs · engineBaseUrl · fps · taxonomy · transcribe · transcribeSteps
  • TranscribeConfig · interface · En el dispositivo (tiempo real)
    interface TranscribeConfig
    miembros: allowWasmWorker · device · diarization · dtype · language · minAvgLogprob · model · progress · repetitionLoop · selfHost · sileroVad · transformers · vad
  • TranscriptEvent · interface · En el dispositivo (tiempo real)
    interface TranscriptEvent
    miembros: endMs · items · spokenMs · startMs · stepOrder · text
  • TranscriptionSetup · interface · En el dispositivo (tiempo real)
    interface TranscriptionSetup
    miembros: artifact · backend · deviceFellBackFrom · diarization · dtype · language · languageSource · model · modelReason · provisionalVetoLifted · sileroReady · usesWorker
  • UploadRecordingOptions · interface · Diferido (en servidor)
    interface UploadRecordingOptions
    miembros: credentials · headers · onProgress · onWarning · retries · signal · url
  • UploadRecordingResult · interface · Diferido (en servidor)
    interface UploadRecordingResult
    miembros: captureId · released · size
  • VideoVetoTarget · interface · En el dispositivo (tiempo real)
    interface VideoVetoTarget
    miembros: forgetMemoryLimit · forgetVideoVeto · learnedState
  • Availability · type · En el dispositivo (tiempo real)
    type Availability = { canCapture: true; } | { canCapture: false; reason: 'cadence'; availableAt: Date; } | { canCapture: false; reason: 'cadence-unknown'; } | { canCapture: false; reason: 'dirty'; since: Date; } | { canCapture: false; reason: 'complete'; };
  • CacheState · type · En el dispositivo (tiempo real)
    type CacheState = 'cached' | 'not-cached' | 'unknown';
  • CalibrationNotice · type · sin guía
    type CalibrationNotice = { kind: 'instructions'; } | { kind: 'repeat'; reasons: CalibrationWarning[]; attempt: number; };
  • CalibrationWarning · type · sin guía
    type CalibrationWarning = 'low-frame-rate' | 'weak-vertical-signal' | 'glasses' | 'head-moved';
  • CaptureCacheStatusOptions · type · En el dispositivo (tiempo real)
    type CaptureCacheStatusOptions = Omit<PrepareCaptureOptions, 'level' | 'prepare' | 'signal' | 'throwOnFailure'>;
  • CaptureSource · type · En el dispositivo (tiempo real)
    type CaptureSource = { type: 'webcam'; } | { type: 'video'; el: HTMLVideoElement; } | { type: 'stream'; stream: MediaStream; } | { type: 'frames'; };
  • CaptureStartReason · type · Errores, avisos y reintentos
    type CaptureStartReason = 'timeout' | 'error' | 'paused' | 'metadata';
  • CaptureStartStage · type · Errores, avisos y reintentos
    type CaptureStartStage = 'camera' | 'face-model' | 'first-frame' | 'source';
  • CaptureStartSubStage · type · Errores, avisos y reintentos
    type CaptureStartSubStage = 'vision-runtime' | 'face-asset' | 'vision-create';
  • ConflictReason · type · Errores, avisos y reintentos
    type ConflictReason = (typeof CONFLICT_REASONS)[number];
  • ConflictRule · type · Errores, avisos y reintentos
    type ConflictRule = 'date_window' | 'time_of_day' | 'spacing' | 'start_order' | 'start_weekday';
  • ConflictWarning · type · Errores, avisos y reintentos
    type ConflictWarning = (typeof CONFLICT_WARNINGS)[number];
  • DeviceCheckId · type · En el dispositivo (tiempo real)
    type DeviceCheckId = 'secure-context' | 'get-user-media' | 'capture-route' | 'webgpu-adapter' | 'jspi' | 'wasm-simd' | 'audio-worklet' | 'storage-persisted' | 'media-recorder-mp4' | 'indexeddb' | 'storage-quota';
  • HciMeans · type · HCIs y resultados
    type HciMeans = Record<string, number>;
  • InterpretationMode · type · En el dispositivo (tiempo real)
    type InterpretationMode = 'engine' | 'stream';
  • InterpretationSource · type · HCIs y resultados
    type InterpretationSource = 'sse' | 'analyze-cache' | 'analyze-generated' | 'analyze' | 'stream';
  • MediaProblem · type · Steps y marcado
    type MediaProblem = 'denied' | 'no-device' | 'in-use' | 'constraints' | 'insecure-context' | 'no-frames' | 'recorder-unsupported' | 'model-load';
  • PartialReason · type · En el dispositivo (tiempo real)
    type PartialReason = 'speech-timeout' | 'speech-error' | 'speech-unavailable' | 'speech-not-prepared' | 'speech-gate-timeout';
  • PrepareErrorReason · type · Errores, avisos y reintentos
    type PrepareErrorReason = 'failed' | 'aborted' | 'capture-in-progress';
  • PrepareLevel · type · En el dispositivo (tiempo real)
    type PrepareLevel = 'memory' | 'cache';
  • PreparedOrigin · type · En el dispositivo (tiempo real)
    type PreparedOrigin = 'prepare' | 'previous-session';
  • PreparedPartUse · type · En el dispositivo (tiempo real)
    type PreparedPartUse = 'adopted' | 'stale' | 'unused' | 'not-prepared';
  • ProtocolErrorCode · type · Errores, avisos y reintentos
    type ProtocolErrorCode = 'E_HTTP' | 'E_RESULTS_TIMEOUT' | 'E_RESULTS_EMPTY' | 'E_INTERPRETATION_TIMEOUT' | 'E_ANALYSIS_IN_PROGRESS' | 'E_PROCESSING' | 'E_FRAMES_DISCARDED' | 'E_UPLOAD_FAILED' | 'E_STEP_LOST' | 'E_CAPTURE_LOST' | 'E_RECORDING_LOST' | 'E_AXES_MISSING' | 'E_NARRATIVE_REJECTED' | 'E_TAXONOMY_REJECTED' | 'E_TENANT_UNKNOWN' | 'E_ANALYSIS_FAILED' | 'E_CONFLICT';
  • ProtocolStatus · type · En el dispositivo (tiempo real)
    type ProtocolStatus = 'authenticating' | 'streaming-open' | 'capturing' | 'transcribing' | 'step-started' | 'step-complete' | 'processing' | 'results-ready' | 'interpretation-ready' | 'complete' | 'timeout' | 'cancelled' | 'invalidated';
  • ScoreIndexKey · type · HCIs y resultados
    type ScoreIndexKey = 'wellness_index' | (string & {});
  • ScoreIndexStatus · type · HCIs y resultados
    type ScoreIndexStatus = 'ok' | 'degraded' | 'not_shown';
  • StartupFailReason · type · En el dispositivo (tiempo real)
    type StartupFailReason = 'timeout' | 'network' | 'aborted' | 'refused' | 'unsupported' | 'error';
  • StartupLocale · type · En el dispositivo (tiempo real)
    type StartupLocale = 'es' | 'en';
  • StartupMessageKey · type · En el dispositivo (tiempo real)
    type StartupMessageKey = 'startup.preparing' | 'face-model.running' | 'face-model.cached' | 'speech.running' | 'speech.stalled' | 'speech.timeout' | 'speech.unavailable' | 'face-model.stalled' | 'face-model.timeout' | 'face-model.error' | 'first-frame.timeout' | 'first-frame.timeout-media' | 'first-frame.face-reload-failed' | 'camera.timeout' | 'capture.aborted' | 'startup.ready' | 'prepare.speech-timeout' | 'prepare.speech-error' | 'prepare.aborted' | 'prepare.record-unsupported';
  • StartupOutcome · type · En el dispositivo (tiempo real)
    type StartupOutcome = 'ready' | 'partial' | 'failed' | 'aborted' | 'unfinished';
  • StartupStage · type · En el dispositivo (tiempo real)
    type StartupStage = 'engine-setup' | 'device' | 'camera' | 'face-model' | 'first-frame' | 'speech' | 'engine-session';
  • StartupStagePending · type · En el dispositivo (tiempo real)
    type StartupStagePending = 'provisional-video-veto' | 'another-load';
  • StartupStageStatus · type · En el dispositivo (tiempo real)
    type StartupStageStatus = 'pending' | 'running' | 'stalled' | 'done' | 'failed' | 'skipped';
  • StartupSubStage · type · En el dispositivo (tiempo real)
    type StartupSubStage = 'vision-runtime' | 'face-asset' | 'vision-create' | 'stt-library' | 'stt-weights' | 'stt-runtime' | 'stt-session' | 'vad';
  • StepDelivery · type · En el dispositivo (tiempo real)
    type StepDelivery = { response_clock?: string; mode?: string; } & Record<string, unknown>;
  • StepDurationsMode · type · Steps y marcado
    type StepDurationsMode = 'warn' | 'enforce' | 'off';
  • StimulusElement · type · sin guía
    type StimulusElement = HTMLVideoElement | HTMLImageElement;
  • SttBlocker · type · En el dispositivo (tiempo real)
    type SttBlocker = (typeof STT_BLOCKERS)[number];
  • SttSileroMeasure · type · En el dispositivo (tiempo real)
    type SttSileroMeasure = { windows: number; voiced?: number; ratio: number | null; mean: number | null; max: number | null; accepted: boolean; } | { error: string; };
  • TokenProvider · type · En el dispositivo (tiempo real)
    type TokenProvider = () => Promise<EngineToken>;
  • TranscriptionCut · type · En el dispositivo (tiempo real)
    type TranscriptionCut = unknown;
  • UploadRecordingErrorCode · type · Errores, avisos y reintentos
    type UploadRecordingErrorCode = 'E_UPLOAD_NETWORK' | 'E_UPLOAD_NOT_NOTIFIED' | 'E_UPLOAD_AUTH' | 'E_UPLOAD_REJECTED' | 'E_UPLOAD_CONFLICT' | 'E_UPLOAD_TOO_LARGE' | 'E_UPLOAD_LOCAL_UNREADABLE' | 'E_UPLOAD_PROTOCOL' | 'E_UPLOAD_ABORTED';
  • CONFLICT_REASONS · const · Errores, avisos y reintentos
    declare const CONFLICT_REASONS: readonly ["SESSION_ABANDONED", "POSITION_ALREADY_COMPLETED", "MECHANIC_EXPIRED", "MECHANIC_NOT_YET_AVAILABLE", "MUST_START_AT_FIRST_POSITION", "PROTOCOL_DEPRECATED", "POSITION_RESERVED", "CAPTURE_DISCARDED", "CAPTURE_OUT_OF_ORDER", "PROTOCOL_NOT_ANALYSED", "CAPTURE_CANCELLED"];
  • CONFLICT_WARNINGS · const · Errores, avisos y reintentos
    declare const CONFLICT_WARNINGS: readonly ["conflict.unknown-reason", "conflict.ambiguous-goto", "conflict.earliestAt-assumed-utc"];
  • DEFAULT_CALIBRATION_POINTS · const · sin guía
    declare const DEFAULT_CALIBRATION_POINTS: GazePoint[];
  • DEFAULT_RECALIBRATION_POINTS · const · sin guía
    declare const DEFAULT_RECALIBRATION_POINTS: GazePoint[];
  • FORWARDED_CODEC_EVENTS · const · En el dispositivo (tiempo real)
    declare const FORWARDED_CODEC_EVENTS: readonly string[];
  • STARTUP_MESSAGES · const · En el dispositivo (tiempo real)
    declare const STARTUP_MESSAGES: Readonly<Record<StartupLocale, Readonly<Record<StartupMessageKey, string>>>>;
  • STARTUP_MESSAGE_KEYS · const · En el dispositivo (tiempo real)
    declare const STARTUP_MESSAGE_KEYS: readonly StartupMessageKey[];
  • STARTUP_STAGES · const · En el dispositivo (tiempo real)
    declare const STARTUP_STAGES: readonly StartupStage[];
  • STARTUP_SUB_STAGES · const · En el dispositivo (tiempo real)
    declare const STARTUP_SUB_STAGES: readonly StartupSubStage[];
  • STT_BLOCKERS · const · En el dispositivo (tiempo real)
    declare const STT_BLOCKERS: readonly ["no-webgpu", "ladder-exhausted", "video-cost-veto", "no-memory-to-learn", "dtype-required"];
  • FeatureMeta · re-exportado de @neurologyca/kodec
  • LiveLandmarks · re-exportado de @neurologyca/kodec
  • LiveSignals · re-exportado de @neurologyca/kodec
  • kodec · re-exportado de @neurologyca/kodec
  • abandonUpload · function · Diferido (en servidor)
    declare function abandonUpload(captureId: string, opts: AbandonUploadOptions): Promise<void>;
  • createRecordingClient · function · Diferido (en servidor)
    declare function createRecordingClient(config: RecordingClientConfig): RecordingClientHandle;
  • defineTenantConfig · function · En el dispositivo (tiempo real)
    declare function defineTenantConfig(config: TenantConfig): TenantConfig;
  • describeStep · function · Steps y marcado
    declare function describeStep(step: PlanStep, opts?: { lang?: string; }): StepFacts;
  • listPendingRecordings · function · Diferido (en servidor)
    declare function listPendingRecordings(opts?: ListPendingRecordingsOptions): Promise<RecordingResult[]>;
  • uploadRecording · function · Diferido (en servidor)
    declare function uploadRecording(rec: RecordingResult, opts: UploadRecordingOptions): Promise<UploadRecordingResult>;
  • urlTokenProvider · function · En el dispositivo (tiempo real)
    declare function urlTokenProvider(tokenUrl: string, opts?: { method?: 'GET' | 'POST'; timeoutMs?: number; credentials?: RequestCredentials; }): TokenProvider;
  • validateManifest · function · Diferido (en servidor)
    declare function validateManifest(m: RecordingManifest, opts?: { durationMs?: number | null; }): string[];
  • AbandonUploadOptions · interface · Diferido (en servidor)
    interface AbandonUploadOptions
    miembros: credentials · headers · signal · url
  • AnalyzeAnswer · interface · Errores, avisos y reintentos
    interface AnalyzeAnswer
    miembros: fromCache · inProgress · interpretation · raw · retryAfterMs
  • Baseline2Info · interface · Baseline
    interface Baseline2Info
    miembros: expiryDays · isValid · lastUpdatedAt
  • CalibrateOptions · interface · sin guía
    interface CalibrateOptions
    miembros: managedBySdk · onNotice · onTarget · points · signal
  • CalibrationReport · interface · sin guía
    interface CalibrationReport
    miembros: attempts · centered · endedAt · gainY · offset · ok · points · quality · reason · repeatedFor · samples · startedAt · warnings
  • CalibrationTarget · interface · sin guía
    interface CalibrationTarget
    miembros: index · phase · total · x · y
  • CaptureOutcome · interface · HCIs y resultados
    interface CaptureOutcome
    miembros: frameCount · hcis · hcisByStep · interpretation · status · structured
  • CaptureProtocolOpts · interface · En el dispositivo (tiempo real)
    interface CaptureProtocolOpts
    miembros: captureId · dangerouslyIgnoreCadence · discardPending · gaze · interpretation · mediaClock · onStarted · protocolMechanicId · signal · sleepBand · source · taxonomy · transcribe · triggerAnalysis · userProtocolId
  • ConflictDetail · interface · Errores, avisos y reintentos
    interface ConflictDetail
    miembros: captureId · capturedAt · earliestAt · expected · expired · goToPosition · hint · holder · latestAnalysedAt · raw · reason · rule
  • DeviceCheck · interface · En el dispositivo (tiempo real)
    interface DeviceCheck
    miembros: id · measured · reason · status
  • EngineToken · interface · En el dispositivo (tiempo real)
    interface EngineToken
    miembros: expiresAt · token
  • FrameGaze · interface · sin guía
    interface FrameGaze
    miembros: isFixating · point · region · spread · stimulus
  • GazeFrame · interface · sin guía
    interface GazeFrame
    miembros: clientTsMs · featuresMeta · headPose · landmarks
  • GazePoint · interface · sin guía
    interface GazePoint
    miembros: x · y
  • GazeSample · interface · sin guía
    interface GazeSample
    miembros: fixating · point · region · spread · tMs
  • GazeTracker · interface · sin guía
    interface GazeTracker
    miembros: calibrate · calibrated · forFrame · history · last · push · recalibrate · setGlasses · setStimulus
  • ListPendingRecordingsOptions · interface · Diferido (en servidor)
    interface ListPendingRecordingsOptions
    miembros: onWarning
  • ManifestStep · interface · Steps y marcado
    interface ManifestStep
    miembros: endMediaMs · endedBy · mediaPid · order · startMediaMs · type
  • ModeDecision · interface · En el dispositivo (tiempo real)
    interface ModeDecision
    miembros: by · mode · probeFps · reason
  • PlanStep · interface · Steps y marcado
    interface PlanStep
    miembros: category · delivery · description · expectsSpeech · maxTimeSeconds · media · minTimeSeconds · optional · order · phases · presentationSeconds · rounds · targetConstellationHciId · type
  • PositionHolder · interface · En el dispositivo (tiempo real)
    interface PositionHolder
    miembros: captureId · capturedAt · deferred · finished · receivingPackets · recordingEndedAt
  • PositionState · interface · En el dispositivo (tiempo real)
    interface PositionState
    miembros: completed · mechanicName · position · protocolMechanicId
  • PrepareCacheStatus · interface · En el dispositivo (tiempo real)
    interface PrepareCacheStatus
    miembros: faceModel · speechWeights · sttLibrary · sttRuntime · visionRuntime
  • PrepareResult · interface · En el dispositivo (tiempo real)
    interface PrepareResult
    miembros: cache · capture · cutBy · device · estimatedSpeechMs · face · level · messageKey · outcome · partialReason · report · stages · transcription · transcriptionGate · userMessage
  • PreparedBlock · interface · En el dispositivo (tiempo real)
    interface PreparedBlock
    miembros: face · faceReloaded · level · origin · prepareId · speech
  • ProtocolError · interface · Errores, avisos y reintentos
    interface ProtocolError
    miembros: code · conflict · message · reason · recoverable · stepOrder
  • ProtocolPlan · interface · Steps y marcado
    interface ProtocolPlan
    miembros: flowMode · mechanicName · position · steps · timeBetweenSessionsSeconds
  • ProtocolSessionHandle · interface · En el dispositivo (tiempo real)
    interface ProtocolSessionHandle
    miembros: abort · captureId · correlationId · plan · step · stepTiming · stop
  • ProtocolState · interface · En el dispositivo (tiempo real)
    interface ProtocolState
    miembros: asOf · availability · baselineWarning · next · positions · progress
  • ProtocolStepHandle · interface · Steps y marcado
    interface ProtocolStepHandle
    miembros: end · run · start
  • ProtocolWarningEvent · interface · Errores, avisos y reintentos
    interface ProtocolWarningEvent
    miembros: blocker · captureId · code · cut · fields · hci · message · messageKey · part · reason · stage · stepOrder · subStage · userMessage
  • RecalibrateOptions · interface · sin guía
    interface RecalibrateOptions
    miembros: correct · onTarget · points · signal
  • RecalibrationPoint · interface · sin guía
    interface RecalibrationPoint
    miembros: deviation · dx · dy · measured · samples · target
  • RecalibrationReport · interface · sin guía
    interface RecalibrationReport
    miembros: corrected · endedAt · glasses · meanDeviation · offsetAfter · offsetBefore · points · startedAt
  • RecordingClientConfig · interface · Diferido (en servidor)
    interface RecordingClientConfig
    miembros: analyzeTimeoutMs · baseUrl · credentials · getToken · onError · onRecording · onStartupStage · onWarning · recording · requestTimeoutMs · startup · stepDurations · taxonomy · tenant
  • RecordingClientHandle · interface · Diferido (en servidor)
    interface RecordingClientHandle
    miembros: analyze · captureProtocol · getBaselineInfo · getProtocolState · prepare · release · retrieveResults
  • RecordingManifest · interface · Diferido (en servidor)
    interface RecordingManifest
    miembros: audioGaps · captureId · client · hidden · interpreted · orientation · orientationChanges · prerollMs · protocolMechanicId · recorder · recordingStartedAtMs · recordingStartedAtPrecisionMs · serverClockSkewMs · steps · stimulus · stopMediaMs · triggerAnalysis · userProtocolId · version · videoGaps
  • RecordingOptions · interface · Diferido (en servidor)
    interface RecordingOptions
    miembros: handheld · maxFps · postrollMs · prerollMs · reserve · videoBitsPerSecond
  • RecordingPrepareOptions · interface · Diferido (en servidor)
    interface RecordingPrepareOptions
    miembros: signal · throwOnFailure · timeouts
  • RecordingResult · interface · Diferido (en servidor)
    interface RecordingResult
    miembros: blob · manifest · release · storage
  • RecordingSessionHandle · interface · Diferido (en servidor)
    interface RecordingSessionHandle extends Omit<ProtocolSessionHandle, 'stop'>
    miembros: result · stop · trackStimulus · abort · captureId · correlationId · plan · step · stepTiming · stop
  • StartupOptions · interface · En el dispositivo (tiempo real)
    interface StartupOptions
    miembros: includeUserAgent · locale · messages · report · timeouts
  • StartupReport · interface · En el dispositivo (tiempo real)
    interface StartupReport
    miembros: at · capture · context · cutBy · device · estimatedSpeechMs · kept · kind · kodecVersion · learned · level · mode · outcome · partialReason · prepared · schema · sdkVersion · seq · stages · startupId · totalMs · transcription · transcriptionGate · uaVersionToken · userAgent
  • StartupReportOptions · interface · En el dispositivo (tiempo real)
    interface StartupReportOptions
    miembros: context · on · url
  • StartupStageEvent · interface · En el dispositivo (tiempo real)
    interface StartupStageEvent
    miembros: blocker · bytes · bytesPerSec · kind · messageKey · ms · parent · pending · reason · source · stage · startupId · status · total · userMessage
  • StartupStageRecord · interface · En el dispositivo (tiempo real)
    interface StartupStageRecord
    miembros: blocker · bytes · ms · parent · pending · reason · source · stage · status · total
  • StartupTimeoutGroup · interface · En el dispositivo (tiempo real)
    interface StartupTimeoutGroup
    miembros: stallMs · totalMs
  • StepFacts · interface · Steps y marcado
    interface StepFacts
    miembros: assets · bands · deliveryMode · expectsSpeech · maxSeconds · minSeconds · optional · order · phases · responseClock · rounds · text · texts · type · unknown
  • StepMedia · interface · Steps y marcado
    interface StepMedia
    miembros: body · kind · location · pid
  • StepPhase · interface · Steps y marcado
    interface StepPhase
    miembros: mediaPid · order · phase · seconds
  • StepRunOpts · interface · Steps y marcado
    interface StepRunOpts extends StepStartOpts
    miembros: durationMs · mediaPid
  • StepStartOpts · interface · Steps y marcado
    interface StepStartOpts
    miembros: mediaPid
  • StepTiming · interface · Steps y marcado
    interface StepTiming
    miembros: elapsedMs · maxMs · maxReached · minMs · minReached · order · remainingMs
  • StimulusSample · interface · Steps y marcado
    interface StimulusSample
    miembros: atMediaMs · event · stimulusTimeMs
  • Taxonomy2 · interface · En el dispositivo (tiempo real)
    interface Taxonomy2
    miembros: contextId · hciId · situationId · subcontextId
  • TenantConfig · interface · En el dispositivo (tiempo real)
    interface TenantConfig
    miembros: batchMs · engineBaseUrl · fps · taxonomy · transcribe · transcribeSteps
  • TranscribeConfig · interface · En el dispositivo (tiempo real)
    interface TranscribeConfig
    miembros: allowWasmWorker · device · diarization · dtype · language · minAvgLogprob · model · progress · repetitionLoop · selfHost · sileroVad · transformers · vad
  • UploadRecordingOptions · interface · Diferido (en servidor)
    interface UploadRecordingOptions
    miembros: credentials · headers · onProgress · onWarning · retries · signal · url
  • UploadRecordingResult · interface · Diferido (en servidor)
    interface UploadRecordingResult
    miembros: captureId · released · size
  • Availability · type · En el dispositivo (tiempo real)
    type Availability = { canCapture: true; } | { canCapture: false; reason: 'cadence'; availableAt: Date; } | { canCapture: false; reason: 'cadence-unknown'; } | { canCapture: false; reason: 'dirty'; since: Date; } | { canCapture: false; reason: 'complete'; };
  • CacheState · type · En el dispositivo (tiempo real)
    type CacheState = 'cached' | 'not-cached' | 'unknown';
  • CalibrationNotice · type · sin guía
    type CalibrationNotice = { kind: 'instructions'; } | { kind: 'repeat'; reasons: CalibrationWarning[]; attempt: number; };
  • CalibrationWarning · type · sin guía
    type CalibrationWarning = 'low-frame-rate' | 'weak-vertical-signal' | 'glasses' | 'head-moved';
  • CaptureSource · type · En el dispositivo (tiempo real)
    type CaptureSource = { type: 'webcam'; } | { type: 'video'; el: HTMLVideoElement; } | { type: 'stream'; stream: MediaStream; } | { type: 'frames'; };
  • CaptureStartReason · type · Errores, avisos y reintentos
    type CaptureStartReason = 'timeout' | 'error' | 'paused' | 'metadata';
  • CaptureStartStage · type · Errores, avisos y reintentos
    type CaptureStartStage = 'camera' | 'face-model' | 'first-frame' | 'source';
  • CaptureStartSubStage · type · Errores, avisos y reintentos
    type CaptureStartSubStage = 'vision-runtime' | 'face-asset' | 'vision-create';
  • ConflictReason · type · Errores, avisos y reintentos
    type ConflictReason = (typeof CONFLICT_REASONS)[number];
  • ConflictRule · type · Errores, avisos y reintentos
    type ConflictRule = 'date_window' | 'time_of_day' | 'spacing' | 'start_order' | 'start_weekday';
  • ConflictWarning · type · Errores, avisos y reintentos
    type ConflictWarning = (typeof CONFLICT_WARNINGS)[number];
  • DeviceCheckId · type · En el dispositivo (tiempo real)
    type DeviceCheckId = 'secure-context' | 'get-user-media' | 'capture-route' | 'webgpu-adapter' | 'jspi' | 'wasm-simd' | 'audio-worklet' | 'storage-persisted' | 'media-recorder-mp4' | 'indexeddb' | 'storage-quota';
  • HciMeans · type · HCIs y resultados
    type HciMeans = Record<string, number>;
  • InterpretationMode · type · En el dispositivo (tiempo real)
    type InterpretationMode = 'engine' | 'stream';
  • PartialReason · type · En el dispositivo (tiempo real)
    type PartialReason = 'speech-timeout' | 'speech-error' | 'speech-unavailable' | 'speech-not-prepared' | 'speech-gate-timeout';
  • PrepareErrorReason · type · Errores, avisos y reintentos
    type PrepareErrorReason = 'failed' | 'aborted' | 'capture-in-progress';
  • PrepareLevel · type · En el dispositivo (tiempo real)
    type PrepareLevel = 'memory' | 'cache';
  • PreparedOrigin · type · En el dispositivo (tiempo real)
    type PreparedOrigin = 'prepare' | 'previous-session';
  • PreparedPartUse · type · En el dispositivo (tiempo real)
    type PreparedPartUse = 'adopted' | 'stale' | 'unused' | 'not-prepared';
  • ProtocolErrorCode · type · Errores, avisos y reintentos
    type ProtocolErrorCode = 'E_HTTP' | 'E_RESULTS_TIMEOUT' | 'E_RESULTS_EMPTY' | 'E_INTERPRETATION_TIMEOUT' | 'E_ANALYSIS_IN_PROGRESS' | 'E_PROCESSING' | 'E_FRAMES_DISCARDED' | 'E_UPLOAD_FAILED' | 'E_STEP_LOST' | 'E_CAPTURE_LOST' | 'E_RECORDING_LOST' | 'E_AXES_MISSING' | 'E_NARRATIVE_REJECTED' | 'E_TAXONOMY_REJECTED' | 'E_TENANT_UNKNOWN' | 'E_ANALYSIS_FAILED' | 'E_CONFLICT';
  • StartupFailReason · type · En el dispositivo (tiempo real)
    type StartupFailReason = 'timeout' | 'network' | 'aborted' | 'refused' | 'unsupported' | 'error';
  • StartupLocale · type · En el dispositivo (tiempo real)
    type StartupLocale = 'es' | 'en';
  • StartupMessageKey · type · En el dispositivo (tiempo real)
    type StartupMessageKey = 'startup.preparing' | 'face-model.running' | 'face-model.cached' | 'speech.running' | 'speech.stalled' | 'speech.timeout' | 'speech.unavailable' | 'face-model.stalled' | 'face-model.timeout' | 'face-model.error' | 'first-frame.timeout' | 'first-frame.timeout-media' | 'first-frame.face-reload-failed' | 'camera.timeout' | 'capture.aborted' | 'startup.ready' | 'prepare.speech-timeout' | 'prepare.speech-error' | 'prepare.aborted' | 'prepare.record-unsupported';
  • StartupOutcome · type · En el dispositivo (tiempo real)
    type StartupOutcome = 'ready' | 'partial' | 'failed' | 'aborted' | 'unfinished';
  • StartupStage · type · En el dispositivo (tiempo real)
    type StartupStage = 'engine-setup' | 'device' | 'camera' | 'face-model' | 'first-frame' | 'speech' | 'engine-session';
  • StartupStagePending · type · En el dispositivo (tiempo real)
    type StartupStagePending = 'provisional-video-veto' | 'another-load';
  • StartupStageStatus · type · En el dispositivo (tiempo real)
    type StartupStageStatus = 'pending' | 'running' | 'stalled' | 'done' | 'failed' | 'skipped';
  • StartupSubStage · type · En el dispositivo (tiempo real)
    type StartupSubStage = 'vision-runtime' | 'face-asset' | 'vision-create' | 'stt-library' | 'stt-weights' | 'stt-runtime' | 'stt-session' | 'vad';
  • StepDelivery · type · En el dispositivo (tiempo real)
    type StepDelivery = { response_clock?: string; mode?: string; } & Record<string, unknown>;
  • StepDurationsMode · type · Steps y marcado
    type StepDurationsMode = 'warn' | 'enforce' | 'off';
  • StimulusElement · type · sin guía
    type StimulusElement = HTMLVideoElement | HTMLImageElement;
  • SttBlocker · type · En el dispositivo (tiempo real)
    type SttBlocker = (typeof STT_BLOCKERS)[number];
  • TokenProvider · type · En el dispositivo (tiempo real)
    type TokenProvider = () => Promise<EngineToken>;
  • UploadRecordingErrorCode · type · Errores, avisos y reintentos
    type UploadRecordingErrorCode = 'E_UPLOAD_NETWORK' | 'E_UPLOAD_NOT_NOTIFIED' | 'E_UPLOAD_AUTH' | 'E_UPLOAD_REJECTED' | 'E_UPLOAD_CONFLICT' | 'E_UPLOAD_TOO_LARGE' | 'E_UPLOAD_LOCAL_UNREADABLE' | 'E_UPLOAD_PROTOCOL' | 'E_UPLOAD_ABORTED';
  • CONFLICT_REASONS · const · Errores, avisos y reintentos
    declare const CONFLICT_REASONS: readonly ["SESSION_ABANDONED", "POSITION_ALREADY_COMPLETED", "MECHANIC_EXPIRED", "MECHANIC_NOT_YET_AVAILABLE", "MUST_START_AT_FIRST_POSITION", "PROTOCOL_DEPRECATED", "POSITION_RESERVED", "CAPTURE_DISCARDED", "CAPTURE_OUT_OF_ORDER", "PROTOCOL_NOT_ANALYSED", "CAPTURE_CANCELLED"];
  • CONFLICT_WARNINGS · const · Errores, avisos y reintentos
    declare const CONFLICT_WARNINGS: readonly ["conflict.unknown-reason", "conflict.ambiguous-goto", "conflict.earliestAt-assumed-utc"];
  • STARTUP_MESSAGES · const · En el dispositivo (tiempo real)
    declare const STARTUP_MESSAGES: Readonly<Record<StartupLocale, Readonly<Record<StartupMessageKey, string>>>>;
  • STARTUP_MESSAGE_KEYS · const · En el dispositivo (tiempo real)
    declare const STARTUP_MESSAGE_KEYS: readonly StartupMessageKey[];
  • STARTUP_STAGES · const · En el dispositivo (tiempo real)
    declare const STARTUP_STAGES: readonly StartupStage[];
  • STARTUP_SUB_STAGES · const · En el dispositivo (tiempo real)
    declare const STARTUP_SUB_STAGES: readonly StartupSubStage[];
  • classifyMediaError · function · Steps y marcado
    declare function classifyMediaError(e: unknown, env?: { isSecureContext?: boolean; hasMediaDevices?: boolean; }): MediaProblem | null;
  • guardUnload · function · Steps y marcado
    declare function guardUnload(isUnsafe?: () => boolean): () => void;
  • keepScreenOn · function · Steps y marcado
    declare function keepScreenOn(): Promise<{ supported: boolean; release(): void; }>;
  • readScoreIndex · function · HCIs y resultados
    declare function readScoreIndex(structured: unknown, key?: ScoreIndexKey, opts?: ReadScoreIndexOptions): ScoreIndex | null;
  • startOrAsk · function · Steps y marcado
    declare function startOrAsk<T>(start: (discardPending: boolean) => Promise<T>, ask: (holder: PositionHolder | null) => Promise<boolean>): Promise<T | null>;
  • waitForPortraitOrientation · function · Steps y marcado
    declare function waitForPortraitOrientation(opts?: { handheld?: boolean; signal?: AbortSignal; }): Promise<{ handheld: boolean | null; waited: boolean; }>;
  • PositionHolder · interface · En el dispositivo (tiempo real)
    interface PositionHolder
    miembros: captureId · capturedAt · deferred · finished · receivingPackets · recordingEndedAt
  • ReadScoreIndexOptions · interface · HCIs y resultados
    interface ReadScoreIndexOptions
    miembros: onWarning · onWarning
  • ScoreIndex · interface · HCIs y resultados
    interface ScoreIndex
    miembros: band · degradedSignals · indicatorsUsed · label · status · value · band · degradedSignals · indicatorsUsed · label · status · value
  • MediaProblem · type · Steps y marcado
    type MediaProblem = 'denied' | 'no-device' | 'in-use' | 'constraints' | 'insecure-context' | 'no-frames' | 'recorder-unsupported' | 'model-load';
  • ScoreIndexKey · type · HCIs y resultados
    type ScoreIndexKey = 'wellness_index' | (string & {});
  • ScoreIndexStatus · type · HCIs y resultados
    type ScoreIndexStatus = 'ok' | 'degraded' | 'not_shown';
  • releaseOwnReservation · function · Servicio de procesado
    declare function releaseOwnReservation(c: ReleaseOwnReservationConfig, t: ReleaseOwnReservationTarget): Promise<ReleaseOwnReservationResult>;
  • replayRecording · function · Servicio de procesado
    declare function replayRecording(config: ReplayConfig, input: ReplayInput): Promise<ReplayResult>;
  • urlTokenProvider · function · En el dispositivo (tiempo real)
    declare function urlTokenProvider(tokenUrl: string, opts?: { method?: 'GET' | 'POST'; timeoutMs?: number; credentials?: RequestCredentials; }): TokenProvider;
  • validateManifest · function · Diferido (en servidor)
    declare function validateManifest(m: RecordingManifest, opts?: { durationMs?: number | null; }): string[];
  • CaptureQualitySummary · interface · HCIs y resultados
    interface CaptureQualitySummary
    miembros: capture · delegate · droppedTotal · fps · maxFps · minFps · windows
  • ConflictDetail · interface · Errores, avisos y reintentos
    interface ConflictDetail
    miembros: captureId · capturedAt · earliestAt · expected · expired · goToPosition · hint · holder · latestAnalysedAt · raw · reason · rule
  • DeviceCheck · interface · En el dispositivo (tiempo real)
    interface DeviceCheck
    miembros: id · measured · reason · status
  • EngineToken · interface · En el dispositivo (tiempo real)
    interface EngineToken
    miembros: expiresAt · token
  • FrameClockStats · interface · En el dispositivo (tiempo real)
    interface FrameClockStats
    miembros: head · iqr · max · mean · min · n · overflow · p25 · p50 · p75 · saturated · slopeMsPerSec · tail · underflow
  • ManifestStep · interface · Steps y marcado
    interface ManifestStep
    miembros: endMediaMs · endedBy · mediaPid · order · startMediaMs · type
  • ModeDecision · interface · En el dispositivo (tiempo real)
    interface ModeDecision
    miembros: by · mode · probeFps · reason
  • ModelDownload · interface · En el dispositivo (tiempo real)
    interface ModelDownload
    miembros: files · filesDone · loadedBytes · totalBytes · totalKnown
  • OwnReleaseError · interface · Errores, avisos y reintentos
    interface OwnReleaseError
    miembros: code · message
  • PositionHolder · interface · En el dispositivo (tiempo real)
    interface PositionHolder
    miembros: captureId · capturedAt · deferred · finished · receivingPackets · recordingEndedAt
  • PreparedBlock · interface · En el dispositivo (tiempo real)
    interface PreparedBlock
    miembros: face · faceReloaded · level · origin · prepareId · speech
  • ProtocolError · interface · Errores, avisos y reintentos
    interface ProtocolError
    miembros: code · conflict · message · reason · recoverable · stepOrder
  • ProtocolResultEvent · interface · HCIs y resultados
    interface ProtocolResultEvent
    miembros: frameCount · hcis · hcisByStep · protocolMechanicId · raw · userProtocolId
  • ProtocolWarningEvent · interface · Errores, avisos y reintentos
    interface ProtocolWarningEvent
    miembros: blocker · captureId · code · cut · fields · hci · message · messageKey · part · reason · stage · stepOrder · subStage · userMessage
  • RecordingManifest · interface · Diferido (en servidor)
    interface RecordingManifest
    miembros: audioGaps · captureId · client · hidden · interpreted · orientation · orientationChanges · prerollMs · protocolMechanicId · recorder · recordingStartedAtMs · recordingStartedAtPrecisionMs · serverClockSkewMs · steps · stimulus · stopMediaMs · triggerAnalysis · userProtocolId · version · videoGaps
  • ReleaseOwnReservationConfig · interface · Servicio de procesado
    interface ReleaseOwnReservationConfig
    miembros: engineBaseUrl · getToken
  • ReleaseOwnReservationResult · interface · Servicio de procesado
    interface ReleaseOwnReservationResult
    miembros: error · reason · released
  • ReleaseOwnReservationTarget · interface · Servicio de procesado
    interface ReleaseOwnReservationTarget
    miembros: captureId · protocolMechanicId · userProtocolId
  • ReplayConfig · interface · Servicio de procesado
    interface ReplayConfig
    miembros: awaitInterpretation · engineBaseUrl · getToken · onError · onWarning · outcomeDeadlineMs · stepDeadlineMs · sttFlushDeadlineMs · taxonomy · tokenUrl · transcribeSteps
  • ReplayInput · interface · Servicio de procesado
    interface ReplayInput
    miembros: durationMs · frames · kodec · manifest · ptsOffsetMs · signal · transcript
  • ReplayKodecOptions · interface · Servicio de procesado
    interface ReplayKodecOptions
    miembros: delegate · faceModel · visionUrl · wasmUrl
  • ReplayReport · interface · Servicio de procesado
    interface ReplayReport
    miembros: cost · origin · outsideSteps · steps · transcription
  • ReplayResult · interface · Servicio de procesado
    interface ReplayResult
    miembros: captureId · report · results
  • ReplaySegment · interface · Servicio de procesado
    interface ReplaySegment
    miembros: endMs · startMs · text
  • ReplayTranscript · interface · Servicio de procesado
    interface ReplayTranscript
    miembros: language · model · segments
  • SessionReport · interface · HCIs y resultados
    interface SessionReport
    miembros: alignmentMisses · cancel · captureId · captureQuality · clock · codecErrors · correlationId · endedBy · finalGapWaitMs · framesBeforeFirstPacket · hiddenMs · interpretationMode · interpretationSource · kodecSessionId · modelDownload · replay · speech · startup · steps · streamDropsDuringWait · transcription · transcriptionLoad · transcriptionSetup · triggerAnalysis
  • SpeechSlice · interface · En el dispositivo (tiempo real)
    interface SpeechSlice
    miembros: endMs · language · spokenMs · startMs · step · sttModel · text
  • StartupReport · interface · En el dispositivo (tiempo real)
    interface StartupReport
    miembros: at · capture · context · cutBy · device · estimatedSpeechMs · kept · kind · kodecVersion · learned · level · mode · outcome · partialReason · prepared · schema · sdkVersion · seq · stages · startupId · totalMs · transcription · transcriptionGate · uaVersionToken · userAgent
  • StartupStageRecord · interface · En el dispositivo (tiempo real)
    interface StartupStageRecord
    miembros: blocker · bytes · ms · parent · pending · reason · source · stage · status · total
  • StepTranscription · interface · En el dispositivo (tiempo real)
    interface StepTranscription
    miembros: cutsMaxLength · discarded · discardedAntiStuckMs · discardedMs · emitted · order · recoveredMs · retriedSplit · spokenMs · transcribed · type
  • StimulusSample · interface · Steps y marcado
    interface StimulusSample
    miembros: atMediaMs · event · stimulusTimeMs
  • Taxonomy2 · interface · En el dispositivo (tiempo real)
    interface Taxonomy2
    miembros: contextId · hciId · situationId · subcontextId
  • TranscriptionSetup · interface · En el dispositivo (tiempo real)
    interface TranscriptionSetup
    miembros: artifact · backend · deviceFellBackFrom · diarization · dtype · language · languageSource · model · modelReason · provisionalVetoLifted · sileroReady · usesWorker
  • ConflictReason · type · Errores, avisos y reintentos
    type ConflictReason = (typeof CONFLICT_REASONS)[number];
  • ConflictRule · type · Errores, avisos y reintentos
    type ConflictRule = 'date_window' | 'time_of_day' | 'spacing' | 'start_order' | 'start_weekday';
  • ConflictWarning · type · Errores, avisos y reintentos
    type ConflictWarning = (typeof CONFLICT_WARNINGS)[number];
  • DeviceCheckId · type · En el dispositivo (tiempo real)
    type DeviceCheckId = 'secure-context' | 'get-user-media' | 'capture-route' | 'webgpu-adapter' | 'jspi' | 'wasm-simd' | 'audio-worklet' | 'storage-persisted' | 'media-recorder-mp4' | 'indexeddb' | 'storage-quota';
  • HciMeans · type · HCIs y resultados
    type HciMeans = Record<string, number>;
  • InterpretationMode · type · En el dispositivo (tiempo real)
    type InterpretationMode = 'engine' | 'stream';
  • InterpretationSource · type · HCIs y resultados
    type InterpretationSource = 'sse' | 'analyze-cache' | 'analyze-generated' | 'analyze' | 'stream';
  • OwnReleaseReason · type · Errores, avisos y reintentos
    type OwnReleaseReason = 'cancelled' | 'nothing-open' | 'not-ours' | 'not-sending' | 'check-failed' | 'cancel-failed';
  • PartialReason · type · En el dispositivo (tiempo real)
    type PartialReason = 'speech-timeout' | 'speech-error' | 'speech-unavailable' | 'speech-not-prepared' | 'speech-gate-timeout';
  • PrepareLevel · type · En el dispositivo (tiempo real)
    type PrepareLevel = 'memory' | 'cache';
  • PreparedOrigin · type · En el dispositivo (tiempo real)
    type PreparedOrigin = 'prepare' | 'previous-session';
  • PreparedPartUse · type · En el dispositivo (tiempo real)
    type PreparedPartUse = 'adopted' | 'stale' | 'unused' | 'not-prepared';
  • ProtocolErrorCode · type · Errores, avisos y reintentos
    type ProtocolErrorCode = 'E_HTTP' | 'E_RESULTS_TIMEOUT' | 'E_RESULTS_EMPTY' | 'E_INTERPRETATION_TIMEOUT' | 'E_ANALYSIS_IN_PROGRESS' | 'E_PROCESSING' | 'E_FRAMES_DISCARDED' | 'E_UPLOAD_FAILED' | 'E_STEP_LOST' | 'E_CAPTURE_LOST' | 'E_RECORDING_LOST' | 'E_AXES_MISSING' | 'E_NARRATIVE_REJECTED' | 'E_TAXONOMY_REJECTED' | 'E_TENANT_UNKNOWN' | 'E_ANALYSIS_FAILED' | 'E_CONFLICT';
  • StartupFailReason · type · En el dispositivo (tiempo real)
    type StartupFailReason = 'timeout' | 'network' | 'aborted' | 'refused' | 'unsupported' | 'error';
  • StartupMessageKey · type · En el dispositivo (tiempo real)
    type StartupMessageKey = 'startup.preparing' | 'face-model.running' | 'face-model.cached' | 'speech.running' | 'speech.stalled' | 'speech.timeout' | 'speech.unavailable' | 'face-model.stalled' | 'face-model.timeout' | 'face-model.error' | 'first-frame.timeout' | 'first-frame.timeout-media' | 'first-frame.face-reload-failed' | 'camera.timeout' | 'capture.aborted' | 'startup.ready' | 'prepare.speech-timeout' | 'prepare.speech-error' | 'prepare.aborted' | 'prepare.record-unsupported';
  • StartupOutcome · type · En el dispositivo (tiempo real)
    type StartupOutcome = 'ready' | 'partial' | 'failed' | 'aborted' | 'unfinished';
  • StartupStage · type · En el dispositivo (tiempo real)
    type StartupStage = 'engine-setup' | 'device' | 'camera' | 'face-model' | 'first-frame' | 'speech' | 'engine-session';
  • StartupStagePending · type · En el dispositivo (tiempo real)
    type StartupStagePending = 'provisional-video-veto' | 'another-load';
  • StartupStageStatus · type · En el dispositivo (tiempo real)
    type StartupStageStatus = 'pending' | 'running' | 'stalled' | 'done' | 'failed' | 'skipped';
  • StartupSubStage · type · En el dispositivo (tiempo real)
    type StartupSubStage = 'vision-runtime' | 'face-asset' | 'vision-create' | 'stt-library' | 'stt-weights' | 'stt-runtime' | 'stt-session' | 'vad';
  • SttBlocker · type · En el dispositivo (tiempo real)
    type SttBlocker = (typeof STT_BLOCKERS)[number];
  • TokenProvider · type · En el dispositivo (tiempo real)
    type TokenProvider = () => Promise<EngineToken>;
  • TranscriptionCut · type · En el dispositivo (tiempo real)
    type TranscriptionCut = unknown;
  • CONFLICT_REASONS · const · Errores, avisos y reintentos
    declare const CONFLICT_REASONS: readonly ["SESSION_ABANDONED", "POSITION_ALREADY_COMPLETED", "MECHANIC_EXPIRED", "MECHANIC_NOT_YET_AVAILABLE", "MUST_START_AT_FIRST_POSITION", "PROTOCOL_DEPRECATED", "POSITION_RESERVED", "CAPTURE_DISCARDED", "CAPTURE_OUT_OF_ORDER", "PROTOCOL_NOT_ANALYSED", "CAPTURE_CANCELLED"];
  • CONFLICT_WARNINGS · const · Errores, avisos y reintentos
    declare const CONFLICT_WARNINGS: readonly ["conflict.unknown-reason", "conflict.ambiguous-goto", "conflict.earliestAt-assumed-utc"];
  • REPLAY_MAX_BUFFERED · const · Servicio de procesado
    declare const REPLAY_MAX_BUFFERED = 600;
  • REPLAY_OUTCOME_DEADLINE_MS · const · Servicio de procesado
    declare const REPLAY_OUTCOME_DEADLINE_MS = 600000;
  • REPLAY_STEP_DEADLINE_MS · const · Servicio de procesado
    declare const REPLAY_STEP_DEADLINE_MS = 150000;
  • STT_BLOCKERS · const · En el dispositivo (tiempo real)
    declare const STT_BLOCKERS: readonly ["no-webgpu", "ladder-exhausted", "video-cost-veto", "no-memory-to-learn", "dtype-required"];
  • analyze · function · Los resultados en tu backend
    declare function analyze(http: Http, ref: Pick<AnalysisRef, 'userProtocolId' | 'protocolMechanicId'>, opts?: AnalyzeOptions): Promise<AnalyzeResult>;
  • analyzeForAudiences · function · Los resultados en tu backend
    declare function analyzeForAudiences(http: Http, ref: AnalysisRef, audiences: readonly [string, ...string[]], opts?: AnalyzeForAudiencesOptions): Promise<AudienceReading[]>;
  • assertServerEnvironment · function · Tu backend
    declare function assertServerEnvironment(): void;
  • buildTenantKit · function · sin guía
    declare function buildTenantKit(http: Http, protocolPid: string, opts: BuildTenantKitOptions): Promise<TenantKit>;
  • createEngineAdmin · function · Los resultados en tu backend
    declare function createEngineAdmin(opts: CreateEngineAdminOptions): { createUser: (input: CreateUserInput) => Promise<AppUser>; updateUser: (externalId: string, input: UpdateUserInput) => Promise<void>; listUsers: (listOpts?: ListUsersOptions) => Promise<ListUsersResult>; deleteUser: (externalId: string) => Promise<DeleteUserResult>; listProtocolLibrary: () => Promise<ProtocolSummary[]>; enrol: (externalId: string, protocolPid: string, enrolOpts?: EnrolOptions) => Promise<{ userProtocolId: string; status: string; }>; listEnrolments: (externalId: string) => Promise<Enrolment[]>; getNextPosition: (userProtocolId: string) => Promise<NextPosition | null>; getResults: (ref: Pick<AnalysisRef, "userProtocolId" | "protocolMechanicId">) => Promise<GetResultsResult>; getProtocolResults: (ref: Pick<AnalysisRef, "userProtocolId">) => Promise<GetProtocolResultsResult>; listSessions: (ref: Pick<AnalysisRef, "userProtocolId" | "protocolMechanicId">) => Promise<unknown[]>; analyze: (ref: Pick<AnalysisRef, "userProtocolId" | "protocolMechanicId">, analyzeOpts?: AnalyzeOptions) => Promise<AnalyzeResult>; analyzeForAudiences: (ref: AnalysisRef, audiences: readonly [string, ...string[]], forOpts?: AnalyzeForAudiencesOptions) => Promise<AudienceReading[]>; buildTenantKit: (protocolPid: string, kitOpts?: Omit<BuildTenantKitOptions, "engineBase">) => Promise<TenantKit>; };
  • createEngineProxy · function · Tu backend
    declare function createEngineProxy(opts: CreateEngineProxyOptions): (req: Request) => Promise<Response>;
  • createEnrolmentHandler · function · sin guía
    declare function createEnrolmentHandler(opts: CreateEnrolmentHandlerOptions): (req: Request) => Promise<Response>;
  • createHttp · function · Tu backend
    declare function createHttp(opts: { baseUrl: string; apiKey: string; cache?: TokenCache; tokens?: TokenSource; fetch?: typeof fetch; }): { request(method: string, path: string, body?: unknown, reqOpts?: RequestOptions): Promise<unknown>; };
  • createProcessorClient · function · Servicio de procesado
    declare function createProcessorClient(opts: CreateProcessorClientOptions): ProcessorClient;
  • createProcessorTokenHandler · function · Servicio de procesado
    declare function createProcessorTokenHandler(opts: CreateProcessorTokenHandlerOptions): (req: Request) => Promise<Response>;
  • createStartupReportReceiver · function · Tu backend
    declare function createStartupReportReceiver(opts: CreateStartupReportReceiverOptions): StartupReportReceiver;
  • createTokenHandler · function · Tu backend
    declare function createTokenHandler(opts: CreateTokenHandlerOptions): (req: Request) => Promise<Response>;
  • createTokenSource · function · Tu backend
    declare function createTokenSource(opts: CreateTokenSourceOptions): TokenSource;
  • createUploadReceiver · function · Tu backend
    declare function createUploadReceiver(opts: CreateUploadReceiverOptions): UploadReceiver;
  • createUser · function · Los resultados en tu backend
    declare function createUser(http: Http, input: CreateUserInput): Promise<AppUser>;
  • createWebhookHandler · function · Servicio de procesado
    declare function createWebhookHandler(opts: CreateWebhookHandlerOptions): (req: Request) => Promise<Response>;
  • deleteUser · function · Los resultados en tu backend
    declare function deleteUser(http: Http, externalId: string): Promise<DeleteUserResult>;
  • enrol · function · Los resultados en tu backend
    declare function enrol(http: Http, externalId: string, protocolPid: string, opts?: EnrolOptions): Promise<{ userProtocolId: string; status: string; protocolNotice?: unknown; }>;
  • getNextPosition · function · Los resultados en tu backend
    declare function getNextPosition(http: Http, userProtocolId: string): Promise<NextPosition | null>;
  • getProtocolResults · function · Los resultados en tu backend
    declare function getProtocolResults(http: Http, ref: Pick<AnalysisRef, 'userProtocolId'>): Promise<GetProtocolResultsResult>;
  • getResults · function · Los resultados en tu backend
    declare function getResults(http: Http, ref: Pick<AnalysisRef, 'userProtocolId' | 'protocolMechanicId'>): Promise<GetResultsResult>;
  • listEnrolments · function · Los resultados en tu backend
    declare function listEnrolments(http: Http, externalId: string): Promise<Enrolment[]>;
  • listProtocolLibrary · function · Los resultados en tu backend
    declare function listProtocolLibrary(http: Http): Promise<ProtocolSummary[]>;
  • listSessions · function · Los resultados en tu backend
    declare function listSessions(http: Http, ref: Pick<AnalysisRef, 'userProtocolId' | 'protocolMechanicId'>): Promise<unknown[]>;
  • listUsers · function · Los resultados en tu backend
    declare function listUsers(http: Http, opts?: ListUsersOptions): Promise<ListUsersResult>;
  • memoryNonceStore · function · Servicio de procesado
    declare function memoryNonceStore(ttlMs?: number): NonceStore;
  • ownsAll · function · Tu backend
    declare function ownsAll(route: EngineRoute, checks: { userProtocol: (userProtocolId: string, protocolMechanicId: string | null) => Promise<boolean>; user: (userId: string) => Promise<boolean>; }): Promise<boolean>;
  • proxyTimeoutMs · function · Tu backend
    declare function proxyTimeoutMs(spec: EngineRouteSpec): number | null;
  • readScoreIndex · function · HCIs y resultados
    declare function readScoreIndex(structured: unknown, key?: ScoreIndexKey, opts?: ReadScoreIndexOptions): ScoreIndex | null;
  • updateUser · function · Los resultados en tu backend
    declare function updateUser(http: Http, externalId: string, input: UpdateUserInput): Promise<void>;
  • validateNarrative · function · sin guía
    declare function validateNarrative(n: NarrativeInput): NarrativeValidation;
  • verifyProcessorSignature · function · Servicio de procesado
    declare function verifyProcessorSignature(headers: Headers, rawBody: Uint8Array, secret: string, nonces: NonceStore, now: number, purpose: ProcessorPurpose): Promise<SignatureVerdict>;
  • AnalysisRef · interface · Los resultados en tu backend
    interface AnalysisRef
    miembros: protocolMechanicId · userProtocolId
  • AnalyzeForAudiencesOptions · interface · Los resultados en tu backend
    interface AnalyzeForAudiencesOptions
    miembros: correlationId · onWarning
  • AnalyzeOptions · interface · Los resultados en tu backend
    interface AnalyzeOptions
    miembros: audience · correlationId · onWarning · reAnalyze
  • AnalyzeResult · interface · Los resultados en tu backend
    interface AnalyzeResult
    miembros: audienceEvidence · audienceRequested · fromCache · inProgress · interpretation · keptPrevious · metadata · raw · reAnalyzed · retryAfterMs · structured
  • AppUser · interface · Los resultados en tu backend
    interface AppUser
    miembros: audience · createdAt · externalId · name · narrative · role · timezone
  • AudienceReading · interface · Los resultados en tu backend
    interface AudienceReading
    miembros: audience · fromCache · inProgress · interpretation · metadata · retryAfterMs
  • BuildTenantKitOptions · interface · sin guía
    interface BuildTenantKitOptions
    miembros: engineBase · onWarning · proxyPath
  • CorsOptions · interface · Tu backend
    interface CorsOptions
    miembros: credentials · headers · origins
  • CreateEngineAdminOptions · interface · Los resultados en tu backend
    interface CreateEngineAdminOptions
    miembros: apiKey · baseUrl · cache · fetch · onWarning · tokens
  • CreateEngineProxyOptions · interface · Tu backend
    interface CreateEngineProxyOptions
    miembros: authorize · baseUrl · cors · fetch · maxBodyBytes · mountPath · onError · tokens
  • CreateEnrolmentHandlerOptions · interface · sin guía
    interface CreateEnrolmentHandlerOptions
    miembros: admin · getSessionUser · rateLimit
  • CreateProcessorClientOptions · interface · Servicio de procesado
    interface CreateProcessorClientOptions
    miembros: apiKey · fetch · timeoutMs · url
  • CreateProcessorTokenHandlerOptions · interface · Servicio de procesado
    interface CreateProcessorTokenHandlerOptions
    miembros: authorize · captureToken · nonces · onError · secret · tokens
  • CreateStartupReportReceiverOptions · interface · Tu backend
    interface CreateStartupReportReceiverOptions
    miembros: allowedOrigins · authorize · clientKey · maxBodyBytes · maxBytes · maxPerClientPerMinute · maxPerMinute · now · onError · retentionMs · storage
  • CreateTokenHandlerOptions · interface · Tu backend
    interface CreateTokenHandlerOptions
    miembros: authorize · onError · tokens
  • CreateTokenSourceOptions · interface · Tu backend
    interface CreateTokenSourceOptions
    miembros: apiKey · baseUrl · cache · fetch · mintTimeoutMs · refreshMarginMs
  • CreateUploadReceiverOptions · interface · Tu backend
    interface CreateUploadReceiverOptions
    miembros: abandonedAfterMs · authorize · busyRetryAfterSec · checkManifest · checkManifestTimeoutMs · cors · leaseMs · lockWaitMs · maxBytes · maxOpenPerSubject · mountPath · notifyRetryAfterSec · onComplete · onCompleteTimeoutMs · onError · storage · tombstoneTtlMs · urlSecret
  • CreateUserInput · interface · Los resultados en tu backend
    interface CreateUserInput
    miembros: allowNonUuidExternalId · audience · externalId · name · narrative · role · timezone
  • CreateWebhookHandlerOptions · interface · Servicio de procesado
    interface CreateWebhookHandlerOptions
    miembros: nonces · onError · onEvent · secret
  • DeleteUserResult · interface · Los resultados en tu backend
    interface DeleteUserResult
    miembros: counts · deleted · tenantPid
  • EngineAdmin · interface · Los resultados en tu backend
    type EngineAdmin = ReturnType<typeof createEngineAdmin>;
  • EngineRoute · interface · Tu backend
    interface EngineRoute
    miembros: method · name · protocolMechanicId · userId · userProtocolId
  • EngineRouteSpec · interface · Tu backend
    interface EngineRouteSpec
    miembros: body · idsFrom · method · name · stream · template
  • EnrolOptions · interface · Los resultados en tu backend
    interface EnrolOptions
    miembros: onWarning
  • Enrolment · interface · Los resultados en tu backend
    interface Enrolment
    miembros: createdAt · progressPct · protocol · sessionsCompleted · status · totalSessions · userProtocolId
  • GetProtocolResultsResult · interface · Los resultados en tu backend
    interface GetProtocolResultsResult
    miembros: mechanics
  • GetResultsResult · interface · Los resultados en tu backend
    interface GetResultsResult
    miembros: aggResults · rawResults · speech
  • HandlerErrorContext · interface · Tu backend
    interface HandlerErrorContext
    miembros: captureId · piece · route
  • KitGap · interface · sin guía
    interface KitGap
    miembros: candidates · field · why
  • ListUsersOptions · interface · Los resultados en tu backend
    interface ListUsersOptions
    miembros: limit
  • ListUsersResult · interface · Los resultados en tu backend
    interface ListUsersResult
    miembros: total · users
  • ListedUser · interface · Los resultados en tu backend
    interface ListedUser
    miembros: audience · blocked · blockedAt · createdAt · createdBy · externalId · name · protocolsAssigned · role · timezone
  • MechanicResults · interface · Los resultados en tu backend
    interface MechanicResults extends GetResultsResult
    miembros: order · protocolMechanicId · aggResults · rawResults · speech
  • NarrativeInput · interface · Tu backend
    interface NarrativeInput
    miembros: depth · language · voice
  • NextPosition · interface · Los resultados en tu backend
    interface NextPosition
    miembros: mechanicName · order · protocolMechanicId · userProtocolId
  • NonceStore · interface · Servicio de procesado
    interface NonceStore
    miembros: seen
  • ProcessorCallOptions · interface · Servicio de procesado
    interface ProcessorCallOptions
    miembros: signal
  • ProcessorClient · interface · Servicio de procesado
    interface ProcessorClient
    miembros: getJob · retry · submit
  • ProcessorJob · interface · Servicio de procesado
    interface ProcessorJob
    miembros: attempt · captureId · errorCode · errorMessage · interimWebhook · interpretation · jobId · outcome · processor · report · retryable · status · waits · webhook
  • ProcessorJobTaxonomy · interface · Servicio de procesado
    interface ProcessorJobTaxonomy
    miembros: contextId · hciId · subcontextId
  • ProcessorSubmit · interface · Servicio de procesado
    interface ProcessorSubmit
    miembros: engineBaseUrl · interimWebhook · language · manifest · taxonomy · tokenUrl · transcribeSteps · videoUrl · webhookUrl
  • ProcessorTokenRequest · interface · Servicio de procesado
    interface ProcessorTokenRequest
    miembros: captureId · jobId · protocolMechanicId · userProtocolId
  • ProcessorWebhookDelivery · interface · Servicio de procesado
    interface ProcessorWebhookDelivery
    miembros: attempts · status
  • ProcessorWebhookEvent · interface · Servicio de procesado
    interface ProcessorWebhookEvent
    miembros: captureId · deliveryId · errorCode · errorMessage · interpretation · jobId · outcome · processor · report · retryable · status
  • ProtocolSummary · interface · Los resultados en tu backend
    interface ProtocolSummary
    miembros: group · interpreted · name · objective · pid · positions · status
  • ReadScoreIndexOptions · interface · HCIs y resultados
    interface ReadScoreIndexOptions
    miembros: onWarning · onWarning
  • ScoreIndex · interface · HCIs y resultados
    interface ScoreIndex
    miembros: band · degradedSignals · indicatorsUsed · label · status · value · band · degradedSignals · indicatorsUsed · label · status · value
  • StartupReportReceiver · interface · Tu backend
    interface StartupReportReceiver
    miembros: handler · read · sweep
  • StartupReportRecord · interface · Tu backend
    interface StartupReportRecord
    miembros: receivedAt · report · unvalidated
  • StartupReportStorage · interface · Tu backend
    interface StartupReportStorage
    miembros: append · bytes · read · sweep
  • StepSpeech · interface · Los resultados en tu backend
    interface StepSpeech
    miembros: questionText · transcript
  • TenantConfigShape · interface · sin guía
    interface TenantConfigShape
    miembros: batchMs · engineBaseUrl · fps · taxonomy · transcribe · transcribeSteps
  • TenantKit · interface · sin guía
    interface TenantKit
    miembros: config · env · kind · notices · pending
  • TokenCache · interface · Tu backend
    interface TokenCache
    miembros: get · set
  • TokenSource · interface · Tu backend
    interface TokenSource
    miembros: get · invalidate
  • UpdateUserInput · interface · Los resultados en tu backend
    interface UpdateUserInput
    miembros: audience · name · narrative · role · timezone
  • UploadLease · interface · Tu backend
    interface UploadLease
    miembros: release · renew · token
  • UploadReceiver · interface · Tu backend
    interface UploadReceiver
    miembros: handler · manifest · markNotified · mediaHandler · notify · pendingNotifications · remove · signedUrl · sweep
  • UploadState · interface · Tu backend
    interface UploadState
    miembros: bytes · committed · manifest · mimeType · notified · owner · size · touchedAt
  • UploadStorage · interface · Tu backend
    interface UploadStorage
    miembros: append · commit · create · get · lease · list · markNotified · partBytes · presign · read · remove · sweep
  • UploadTombstone · interface · Tu backend
    interface UploadTombstone
    miembros: expiresAt · removedAt
  • AdminErrorCode · type · Errores, avisos y reintentos
    type AdminErrorCode = 'E_ROLE_UNKNOWN' | 'E_NARRATIVE_INVALID' | 'E_PROTOCOL_DRAFT' | 'E_PROTOCOL_UNKNOWN' | 'E_USER_EXISTS' | 'E_USER_UNKNOWN' | 'E_RATE_LIMITED' | 'E_ENGINE_HTTP' | 'E_MINT_TIMEOUT' | 'E_USER_BLOCKED' | 'E_CREDENTIAL_FORBIDDEN' | 'E_PROTOCOL_BASELINE' | 'E_CONTEXT_NOT_ASSIGNED' | 'E_USER_AMBIGUOUS' | 'E_PROTOCOL_STATE_CHANGED' | 'E_KIT_NO_CONTEXT' | 'E_KIT_TAXONOMY_UNREADABLE' | 'E_AUDIENCE_KEPT_PREVIOUS' | 'E_AUDIENCE_INVALID' | 'E_PROTOCOL_DEPRECATED' | 'E_CATALOGUE_NO_PID';
  • EngineRouteName · type · Tu backend
    type EngineRouteName = 'protocol' | 'plan' | 'sessions' | 'baseline-get' | 'baseline-post' | 'stream' | 'context' | 'query' | 'frames' | 'results' | 'analyze-stream' | 'analyze' | 'cancel';
  • HandlerErrorHook · type · Tu backend
    type HandlerErrorHook = (error: unknown, context: HandlerErrorContext) => void;
  • NarrativeValidation · type · sin guía
    type NarrativeValidation = { ok: true; } | { ok: false; field: string; got: string; allowed: string[]; };
  • ProcessorInterpretation · type · Servicio de procesado
    type ProcessorInterpretation = 'ready' | 'degraded' | 'failed' | 'timeout' | 'unknown' | 'not-requested';
  • ProcessorJobStatus · type · Servicio de procesado
    type ProcessorJobStatus = 'queued' | 'downloading' | 'preparing' | 'transcribing' | 'replaying' | 'waiting' | 'interpreting' | 'succeeded' | 'failed';
  • ProcessorPurpose · type · Servicio de procesado
    type ProcessorPurpose = 'webhook' | 'token';
  • ProcessorWebhookStatus · type · Servicio de procesado
    type ProcessorWebhookStatus = 'none' | 'pending' | 'delivered' | 'failed';
  • ProxyCors · type · Tu backend
    type ProxyCors = CorsOptions;
  • ScoreIndexKey · type · HCIs y resultados
    type ScoreIndexKey = 'wellness_index' | (string & {});
  • ScoreIndexStatus · type · HCIs y resultados
    type ScoreIndexStatus = 'ok' | 'degraded' | 'not_shown';
  • SignatureVerdict · type · Servicio de procesado
    type SignatureVerdict = { ok: true; } | { ok: false; reason: 'missing' | 'malformed' | 'stale' | 'bad-signature' | 'replayed'; };
  • SpeechByStep · type · Los resultados en tu backend
    type SpeechByStep = Record<string, StepSpeech>;
  • UploadAppendResult · type · Tu backend
    type UploadAppendResult = { ok: true; bytes: number; } | { ok: false; bytes: number | null; };
  • UploadCreateResult · type · Tu backend
    type UploadCreateResult = { ok: true; state: UploadState; } | { ok: false; reason: 'exists' | 'quota'; state?: UploadState | UploadTombstone; };
  • UploadInit · type · Tu backend
    type UploadInit = Omit<UploadState, 'bytes' | 'committed' | 'notified' | 'touchedAt'>;
  • UploadStateCode · type · Tu backend
    type UploadStateCode = 'E_NOT_FOUND' | 'E_UPLOAD_GONE' | 'E_NOT_COMMITTED';
  • ANALYZE_TIMEOUT_MS · const · Los resultados en tu backend
    declare const ANALYZE_TIMEOUT_MS = 300000;
  • CLOCK_TOLERANCE_MS · const · Servicio de procesado
    declare const CLOCK_TOLERANCE_MS = 300000;
  • DEFAULT_NARRATIVE · const · Tu backend
    declare const DEFAULT_NARRATIVE: { readonly voice: "third"; readonly depth: "professional"; readonly language: "en"; };
  • ENGINE_ROUTES · const · Tu backend
    declare const ENGINE_ROUTES: readonly EngineRouteSpec[];
  • MEASUREMENT_CONTEXT_ID · const · sin guía
    declare const MEASUREMENT_CONTEXT_ID = "measurement";
  • NONCE_TTL_MS · const · Servicio de procesado
    declare const NONCE_TTL_MS = 600000;
  • PROCESSOR_ERROR_BODY_MAX_BYTES · const · Servicio de procesado
    declare const PROCESSOR_ERROR_BODY_MAX_BYTES: number;
  • PROCESSOR_TIMEOUT_MS · const · Servicio de procesado
    declare const PROCESSOR_TIMEOUT_MS = 30000;
  • PROXY_TIMEOUT_MS · const · Tu backend
    declare const PROXY_TIMEOUT_MS = 120000;
  • TOKEN_BODY_MAX · const · Tu backend
    declare const TOKEN_BODY_MAX: number;
  • TOKEN_CACHE_TIMEOUT_MS · const · Tu backend
    declare const TOKEN_CACHE_TIMEOUT_MS = 2000;
  • TOKEN_MINT_TIMEOUT_MS · const · Tu backend
    declare const TOKEN_MINT_TIMEOUT_MS = 20000;
  • WEBHOOK_BODY_MAX · const · Servicio de procesado
    declare const WEBHOOK_BODY_MAX: number;
  • localDiskStartupReports · function · Tu backend
    declare function localDiskStartupReports(opts: LocalDiskStartupReportsOptions): StartupReportStorage;
  • localDiskStorage · function · Tu backend
    declare function localDiskStorage(opts: LocalDiskStorageOptions): UploadStorage;
  • toNodeListener · function · Tu backend
    declare function toNodeListener(handler: (req: Request) => Promise<Response>): (req: IncomingMessage, res: ServerResponse, next?: (err?: unknown) => void) => void;
  • LocalDiskStartupReportsOptions · interface · Tu backend
    interface LocalDiskStartupReportsOptions
    miembros: dir · maxFileBytes
  • LocalDiskStorageOptions · interface · Tu backend
    interface LocalDiskStorageOptions
    miembros: dir · partBytes