跳转到内容
EN

List understanding results across a library

Code Mode: praxis.media.libraries.understandings.list

HTTP: GET /media/v1/libraries/{library_id}/understandings

Read current understanding entries across one library without fetching every asset separately. Use library_id from creation or listing. folder includes descendants; kinds is a comma-separated list of output kinds. Entries are ordered by asset_id and then understanding id. Continue with next_cursor and the same folder and kinds; limit defaults to 100 and cannot exceed 100. Superseded, deleted and old-version entries are excluded. During historical backfill, this method returns 503 CAPACITY rather than incomplete pages; poll failureSummary until counts_complete is true, then start pagination. Example: GET /media/v1/libraries/lib_example/understandings?folder=travel&kinds=caption,transcript&limit=100.

签名

praxis.media.libraries.understandings.list(args:{path:{library_id:string};query?:{folder?:string;kinds?:string;cursor?:string;limit?:number}}):Promise<{/** Understanding results in this page, ordered by creation time ascending. */ data:Array<{/** Original hallucination-filtered ASR text before correction, present on correction-enabled transcript records. */ text_original?:string;/** Corrected transcript, also returned as content and used for subtitles and search. */ text?:string;/** Transcript correction audit, accepted edits and optional reference ASR. */ correction?:{/** Accepted local edits, including deterministic Arabic quantity normalization. */ edits:Array<{/** Original literal text replaced by this accepted edit. */ from:string;/** Replacement text. */ to:string;/** Zero-based index in the assembled, hallucination-filtered ASR segments. */ segment_id:number;reason?:"homophone"|"term"|"number"|"other"}>;/** ready means correction and validation completed; failed means text is exactly the ASR original, with no accepted edits. */ correction_status:"ready"|"partial"|"failed";/** Configured correction model call ID; defaults to qwen3.8-flash. */ correction_model:string;/** ready means reference ASR supplied text; missing means reference failed or was unavailable and correction proceeded without it. */ reference_status:"ready"|"missing";/** Full reference ASR text, present when reference_status is ready. */ reference_text?:string;/** Model call ID that supplied the reference text; defaults to qwen3-asr-flash. */ reference_model?:string;/** Correction failure that caused verbatim fallback to the ASR original. */ correction_error?:{/** Failure code for the optional transcript enhancement step. */ code:string;/** Failure detail; use reprocess to retry with the library’s current configuration. */ message:string};/** Reference failure; it does not block correction. */ reference_error?:{/** Failure code for the optional transcript enhancement step. */ code:string;/** Failure detail; use reprocess to retry with the library’s current configuration. */ message:string};/** Whole-transcript readthrough run once before batching: it supplies every batch with the topic and glossary evidence and its failure never blocks correction. */ readthrough?:{/** ready means the readthrough answered with a topic; failed means it timed out or answered badly and correction proceeded without it. */ status:"ready"|"failed";/** One sentence on what the content is about and its domain; absent after a failed readthrough. */ topic?:string;/** Up to 50 proper nouns and terms in their correct spelling, given to every correction batch as spelling evidence; absent after a failed readthrough. */ glossary?:Array<string>};/** Words the model flagged as possibly wrong without an accepted edit; the reason is here while each word carries only the suspect boolean. */ suspects?:Array<{/** Zero-based index of the segment the doubted word belongs to. */ segment_id:number;/** The word or phrase the model doubted, located in the segment text; a suspect that names no word is dropped. */ text:string;/** Why the model thinks the text may be wrong. */ reason:string}>};/** Generated identifier of this understanding result. */ id:string;/** Identifier of the asset from which this result was produced. */ asset_id:string;/** Asset version processed to produce this result; compare with the asset’s current version. */ asset_version:number;/** Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a descrip */ kind:"caption"|"tags"|"ocr"|"transcript"|"frame"|"overview"|"audio"|"loudness"|"beats"|"content"|"embedding"|"colors";/** Producer model identifier; a failure may use the configured model when no model response is available. */ producer:string;/** Version of the producer that generated this understanding result. */ producer_version:string;/** Source-media time range for a frame or transcript segment; null for results without a segment. */ segment:{/** Start offset of the segment from the beginning of the source media, in milliseconds. */ start_ms:number;/** End offset of the segment from the beginning of the source media, in milliseconds. */ end_ms:number}|null;/** Result status: ready contains completed output; failed records an error. */ status:"ready"|"failed";/** Text output, such as a caption, recognized text or transcript; null for structured-only or failed results. */ content:string|null;/** Structured producer output; null when absent. */ data:unknown|null;/** Confidence value recorded by the producer; null when no confidence value is recorded. */ confidence:number|null;/** Failure code and message, or null for a successful result. */ error:{/** Failure code identifying why understanding could not complete. */ code:string;/** Human-readable explanation of the understanding failure. */ message:string}|null;/** Whether a newer result or asset version has replaced this result. */ superseded:boolean;/** Time this immutable result was recorded, in UTC. */ created_at:string}>;/** Opaque token to pass as cursor to listUnderstandings; null means no further page. */ next_cursor:string|null;/** Current-version video shots, repeated on every understanding page. */ shots?:Array<{/** Inclusive shot start in milliseconds. */ start_ms:number;/** Exclusive shot end in milliseconds. */ end_ms:number;/** Zero-based shot index in timeline order. */ index:number;/** One to three sampled frame timestamps in milliseconds within this shot. */ keyframes_ms:Array<number>;/** Structured interpretation, present after this shot completes visual processing. */ visual?:{/** Chinese summary of the entire shot using its keyframes together. */ caption:string;/** Chinese description of the scene and shooting context. */ scene:string;/** Location inferred from recognizable landmarks or readable place names; null without evidence. */ location_guess:string|null;/** Visible text in reading order, preserving the source language. */ on_screen_text:Array<string>;/** Quality and editing characteristics with confidence for every judgment. */ flags:{/** Slide or screen-recorded picture/text sequence rather than live footage. */ slideshow:{/** True when this visual characteristic is present. */ value:boolean;/** Confidence in this true or false judgment, from 0 to 1. */ confidence:number};/** Visible watermark. */ watermark:{/** True when this visual characteristic is present. */ value:boolean;/** Confidence in this true or false judgment, from 0 to 1. */ confidence:number};/** Fingers or hands framing the scene. */ hand_frame:{/** True when this visual characteristic is present. */ value:boolean;/** Confidence in this true or false judgment, from 0 to 1. */ confidence:number};/** Added text sticker or overlay. */ text_sticker:{/** True when this visual characteristic is present. */ value:boolean;/** Confidence in this true or false judgment, from 0 to 1. */ confidence:number};/** Blur, severe camera shake, bad exposure or another visible quality defect. */ low_quality:{/** True when this visual characteristic is present. */ value:boolean;/** Confidence in this true or false judgment, from 0 to 1. */ confidence:number}}};/** Lexical location hint: true if the leaf folder and location guess share no place-name token. */ folder_mismatch?:boolean;/** Vision model that generated this shot interpretation. */ producer?:string}>}&({/** Items returned in the current result page. */ data:Array<unknown>;/** Continuation token for this listing; null means no further page. */ next_cursor:string|null})>;

参数

名称位置类型必填说明
library_idpathstring是Library ID returned by creation.
folderquerystring否Folder path including all descendants; omitted or empty selects the entire library.
kindsquerystring否Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, loudness, beats, content, embedding. Omit or empty to include every kind.
cursorquerystring否Cursor from the previous next_cursor.
limitquerynumber否Maximum entries in this page, from 1 through 100; defaults to 100.

响应

状态码内容类型说明
200application/jsonSuccessful response.
400application/jsonA selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
402application/jsonRequest failed; see the error code reference.
403application/jsonThis credential has read-only access to the library; use a write-capable binding for mutations.
404application/jsonThe library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
409application/jsonRequest failed; see the error code reference.
413application/jsonThe file exceeds an input limit; provide a smaller source file.
415application/jsonThis media format is unsupported; provide a supported format.
422application/jsonRequest failed; see the error code reference.
429application/jsonA rate limit was reached; wait before retrying.
501application/jsonThe requested operation is unsupported; choose a supported method.
502application/jsonRequest failed; see the error code reference.
503application/jsonHistorical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.