@deepraxis/sdk 0.1.1-dev.5c83a98 → 0.1.1-dev.5f78678

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12789,13 +12789,17 @@ export type CutAnalysisResult = {
12789
12789
  */
12790
12790
  version: number;
12791
12791
  /**
12792
- * silence identifies quiet spans; filler identifies filler-word spans; scenes identifies scene ranges.
12792
+ * silence identifies transcript-based speech pauses, not music or loudness; filler identifies filler-word spans; scenes identifies scene ranges.
12793
12793
  */
12794
12794
  kind: 'silence' | 'filler' | 'scenes';
12795
12795
  /**
12796
- * pending means analysis is still running; ready means segments are available; unsupported means this asset or analysis kind is inapplicable; failed means analysis did not complete.
12796
+ * pending means analysis is still running; ready means analysis completed, including an empty no_speech result; unsupported means no usable transcript or this analysis kind is inapplicable; failed means analysis did not complete.
12797
12797
  */
12798
12798
  status: 'pending' | 'ready' | 'unsupported' | 'failed';
12799
+ /**
12800
+ * no_speech means a completed current-version transcript contains no words (ready with empty segments); no_transcript means no completed current-version transcript is available (unsupported). Failed transcriptions remain failed.
12801
+ */
12802
+ reason?: 'no_speech' | 'no_transcript';
12799
12803
  /**
12800
12804
  * Detected source ranges in seconds, available when status is ready.
12801
12805
  */
@@ -12988,6 +12992,14 @@ export type CutExport = {
12988
12992
  * Destination media library identifier.
12989
12993
  */
12990
12994
  library_id: string;
12995
+ /**
12996
+ * Frozen destination path within the library, when supplied.
12997
+ */
12998
+ folder?: string;
12999
+ /**
13000
+ * Frozen sanitized display name, when supplied.
13001
+ */
13002
+ name?: string;
12991
13003
  };
12992
13004
  /**
12993
13005
  * Rendering progress; partial progress is not successful completion.
@@ -13027,9 +13039,22 @@ export type CutExport = {
13027
13039
  */
13028
13040
  chunk?: number;
13029
13041
  /**
13030
- * Optional lower-level explanation of the render failure.
13042
+ * Safe structured downstream failure information; older jobs may contain a string.
13031
13043
  */
13032
- cause?: string;
13044
+ cause?: string | {
13045
+ /**
13046
+ * Export stage that failed.
13047
+ */
13048
+ stage: string;
13049
+ /**
13050
+ * Downstream service error code, when available.
13051
+ */
13052
+ code?: string;
13053
+ };
13054
+ /**
13055
+ * Downstream request identifier, when supplied by the service error.
13056
+ */
13057
+ request_id?: string;
13033
13058
  };
13034
13059
  /**
13035
13060
  * ISO 8601 timestamp when this export was accepted.
@@ -13048,6 +13073,14 @@ export type CutExport = {
13048
13073
  * Start an export from a project revision into a bound library.
13049
13074
  */
13050
13075
  export type CutExportInput = {
13076
+ /**
13077
+ * Optional destination path within the bound media library; omitted uses its default folder.
13078
+ */
13079
+ folder?: string;
13080
+ /**
13081
+ * Nonempty display name, frozen with the export. Path separators and control characters become hyphens; limited to 200 characters. Omitted uses project name and timestamp.
13082
+ */
13083
+ name?: string;
13051
13084
  /**
13052
13085
  * Optional render settings; omitted fields use the project export defaults.
13053
13086
  */
@@ -13583,7 +13616,7 @@ export type KnowledgeNativeCreateVectorStore = {
13583
13616
  * Existing File IDs to attach; the store allows up to 10,000 files.
13584
13617
  */
13585
13618
  file_ids?: Array<string>;
13586
- chunking_strategy?: KnowledgeChunkingInput;
13619
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13587
13620
  /**
13588
13621
  * Accepted but not saved or returned; its type is not validated.
13589
13622
  */
@@ -13747,7 +13780,7 @@ export type KnowledgeNativeVectorStoreFile = {
13747
13780
  * Unix timestamp in seconds.
13748
13781
  */
13749
13782
  created_at: number;
13750
- chunking_strategy: KnowledgeChunking;
13783
+ chunking_strategy: KnowledgeNativeChunking;
13751
13784
  /**
13752
13785
  * File attributes used for search filtering; null means no attributes are set.
13753
13786
  */
@@ -13757,7 +13790,7 @@ export type KnowledgeNativeVectorStoreFile = {
13757
13790
  */
13758
13791
  praxis?: {
13759
13792
  /**
13760
- * Specific ingestion failure: file_too_large exceeds 50 MiB; encrypted requires an unencrypted source; empty has no extractable text; unsupported_type needs a supported format; token_limit exceeds 5000000 estimated tokens; recognition_unavailable exhausted OCR retries; deadline_exceeded reached the ingestion or conversion deadline; internal is an unexpected provider or processing error. last_error retains the compatible code and an actionable message.
13793
+ * Specific ingestion failure: file_too_large exceeds 512 MiB for PDFs or 50 MiB for other formats (the Router conversion limit); encrypted requires an unencrypted source; empty has no extractable text; unsupported_type needs a supported format; token_limit exceeds 5000000 estimated tokens; recognition_unavailable exhausted OCR retries; deadline_exceeded reached the ingestion or conversion deadline; internal is an unexpected provider or processing error. last_error retains the compatible code and an actionable message.
13761
13794
  */
13762
13795
  failure_reason?: 'file_too_large' | 'encrypted' | 'empty' | 'unsupported_type' | 'token_limit' | 'recognition_unavailable' | 'deadline_exceeded' | 'internal';
13763
13796
  /**
@@ -13794,7 +13827,7 @@ export type KnowledgeNativeVectorStoreFile = {
13794
13827
  chunk_count: number;
13795
13828
  };
13796
13829
  };
13797
- export type KnowledgeAttachFile = {
13830
+ export type KnowledgeNativeAttachFile = {
13798
13831
  /**
13799
13832
  * Existing source File ID returned by file upload; the file must be visible to the caller.
13800
13833
  */
@@ -13803,7 +13836,7 @@ export type KnowledgeAttachFile = {
13803
13836
  * Search-filter attributes for a newly attached file; omission or null leaves attributes unset. Reattaching an existing file does not change them.
13804
13837
  */
13805
13838
  attributes?: KnowledgeAttributes | null;
13806
- chunking_strategy?: KnowledgeChunkingInput;
13839
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13807
13840
  };
13808
13841
  export type KnowledgeNativeVectorStoreFileList = {
13809
13842
  /**
@@ -13900,7 +13933,7 @@ export type KnowledgeFileBatch = {
13900
13933
  /**
13901
13934
  * Provide exactly one of file_ids or files. Already attached files are reused without changing their attributes or chunking.
13902
13935
  */
13903
- export type KnowledgeCreateBatch = {
13936
+ export type KnowledgeNativeCreateBatch = {
13904
13937
  /**
13905
13938
  * Existing File IDs to attach with shared attributes and chunking settings. Supply file_ids or files, never both.
13906
13939
  */
@@ -13909,7 +13942,7 @@ export type KnowledgeCreateBatch = {
13909
13942
  * Search-filter attributes applied to each newly attached file; omission or null leaves them unset.
13910
13943
  */
13911
13944
  attributes?: KnowledgeAttributes | null;
13912
- chunking_strategy?: KnowledgeChunkingInput;
13945
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13913
13946
  } | {
13914
13947
  /**
13915
13948
  * Files to attach with individual attributes and chunking settings; top-level attributes and chunking_strategy are ignored.
@@ -13920,7 +13953,7 @@ export type KnowledgeCreateBatch = {
13920
13953
  */
13921
13954
  file_id: string;
13922
13955
  attributes?: KnowledgeAttributes;
13923
- chunking_strategy?: KnowledgeChunkingInput;
13956
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13924
13957
  }>;
13925
13958
  /**
13926
13959
  * Ignored when files is supplied.
@@ -14039,6 +14072,10 @@ export type KnowledgeEventList = {
14039
14072
  * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
14040
14073
  */
14041
14074
  export type MediaLibrary = {
14075
+ /**
14076
+ * Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results.
14077
+ */
14078
+ readonly hotwords?: Array<string>;
14042
14079
  /**
14043
14080
  * Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
14044
14081
  */
@@ -14123,9 +14160,17 @@ export type MediaMediaModelsInput = {
14123
14160
  */
14124
14161
  embedding?: string | null;
14125
14162
  /**
14126
- * Model call ID for speech transcription. Null restores the default for this role.
14163
+ * Model call ID for speech transcription. Null restores the default for this role. Defaults to fun-asr with whisper-large-v3-turbo fallback.
14127
14164
  */
14128
14165
  transcription?: string | null;
14166
+ /**
14167
+ * Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions. Null restores this role’s default.
14168
+ */
14169
+ correction?: string | null;
14170
+ /**
14171
+ * Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction. Null restores this role’s default.
14172
+ */
14173
+ reference_transcription?: string | null;
14129
14174
  } | null;
14130
14175
  /**
14131
14176
  * Libraries in this page, ordered by creation time descending.
@@ -14140,6 +14185,25 @@ export type MediaLibraryPage = MediaPage & {
14140
14185
  */
14141
14186
  next_cursor: string | null;
14142
14187
  };
14188
+ export type MediaFrameUrls = {
14189
+ /**
14190
+ * Frame links in the same order as the requested timestamps, including duplicates.
14191
+ */
14192
+ frames: Array<{
14193
+ /**
14194
+ * Requested time in microseconds from the start of the video.
14195
+ */
14196
+ at_micros: number;
14197
+ /**
14198
+ * JPEG delivery URL. Fetch it to extract the frame; authenticated links carry a bearer token and must not be shared beyond intended readers.
14199
+ */
14200
+ url: string;
14201
+ /**
14202
+ * UTC expiry for authenticated frame links, 300 seconds after issuance. Upload asset links remain public and permanent; this timestamp does not expire those URLs.
14203
+ */
14204
+ expires_at: string;
14205
+ }>;
14206
+ };
14143
14207
  /**
14144
14208
  * Receipt confirming permanent removal of a previously deleted library.
14145
14209
  */
@@ -14408,6 +14472,10 @@ export type MediaUnderstandingPage = MediaPage & {
14408
14472
  * Opaque token to pass as cursor to listUnderstandings; null means no further page.
14409
14473
  */
14410
14474
  next_cursor: string | null;
14475
+ /**
14476
+ * Current-version video shots, repeated on every understanding page. Absent on legacy records, images and audio. New video processing with image-capable embedding samples at 1 fps, at most 600 frames, and produces at most 60 shots. Long clips increase the interval and merge adjacent short shots; sub-second cuts may be missed. Each shot uses one to three keyframes in one vision call. Text-only legacy embedding profiles retain frame-based processing.
14477
+ */
14478
+ readonly shots?: Array<MediaUnderstoodShot>;
14411
14479
  };
14412
14480
  /**
14413
14481
  * Expression-search page with match counts, elapsed time and optional facet counts.
@@ -14491,7 +14559,19 @@ export type MediaFolders = {
14491
14559
  * Number of assets in this folder and all descendant folders.
14492
14560
  */
14493
14561
  asset_count: number;
14562
+ /**
14563
+ * Active ready and partial assets in this folder and every descendant folder.
14564
+ */
14565
+ understood_count: number;
14566
+ /**
14567
+ * Active failed assets in this folder and every descendant folder.
14568
+ */
14569
+ failed_count: number;
14494
14570
  }>;
14571
+ /**
14572
+ * False while historical folder and failure counts are being populated; refresh after backfill completes.
14573
+ */
14574
+ counts_complete: boolean;
14495
14575
  };
14496
14576
  /**
14497
14577
  * Asynchronous batch job with successful and failed item counts.
@@ -14506,9 +14586,9 @@ export type MediaJob = {
14506
14586
  */
14507
14587
  library_id: MediaLibraryId;
14508
14588
  /**
14509
- * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
14589
+ * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets. reprocess starts fenced understanding Workflows for retryable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported and permanent steps remain unchanged.
14510
14590
  */
14511
- action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete';
14591
+ action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess';
14512
14592
  /**
14513
14593
  * Job status: queued awaits execution; running is processing items; completed means all items succeeded; completed_with_errors means some succeeded and some failed; failed means all selected items failed. An empty job completes successfully.
14514
14594
  */
@@ -14518,7 +14598,7 @@ export type MediaJob = {
14518
14598
  */
14519
14599
  total: number;
14520
14600
  /**
14521
- * Number of items successfully processed; failed items are counted separately.
14601
+ * Number of items successfully processed; failed items are counted separately. For reprocess, this counts accepted launches; inspect asset progress for model completion.
14522
14602
  */
14523
14603
  done: number;
14524
14604
  /**
@@ -14584,6 +14664,15 @@ export type MediaBatchAction = {
14584
14664
  * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
14585
14665
  */
14586
14666
  action: 'delete';
14667
+ } | {
14668
+ /**
14669
+ * reprocess retries recoverable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported, permanent and completed steps remain unchanged.
14670
+ */
14671
+ action: 'reprocess';
14672
+ /**
14673
+ * Optional subset of processing kinds to inspect. Only retryable failed steps and legacy source-size unsupported steps run. Other unsupported, permanent and completed steps remain unchanged. Omit to inspect all recoverable steps.
14674
+ */
14675
+ kinds?: Array<MediaProcessingKind>;
14587
14676
  };
14588
14677
  /**
14589
14678
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
@@ -14629,6 +14718,20 @@ export type MediaDeliveryToken = {
14629
14718
  */
14630
14719
  expires_at: string;
14631
14720
  };
14721
+ export type MediaFailureSummary = {
14722
+ /**
14723
+ * Number of current failed understanding entries, excluding deleted assets and superseded versions.
14724
+ */
14725
+ total: number;
14726
+ /**
14727
+ * Failure entries grouped by code, output kind and producer model. Each group includes up to five distinct example asset IDs.
14728
+ */
14729
+ groups: Array<MediaFailureGroup>;
14730
+ /**
14731
+ * False while historical failure and folder statistics are being populated. Counts include current writes immediately.
14732
+ */
14733
+ counts_complete: boolean;
14734
+ };
14632
14735
  /**
14633
14736
  * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
14634
14737
  */
@@ -24979,6 +25082,10 @@ export type CutTimeline = {
24979
25082
  * Ordered tracks, topmost visual layer first.
24980
25083
  */
24981
25084
  tracks: Array<CutTrack>;
25085
+ /**
25086
+ * Clip-to-clip transitions selected by track and overlap window; lengths are seconds and effect fields use snake_case on HTTP.
25087
+ */
25088
+ joins?: Array<CutJoin>;
24982
25089
  /**
24983
25090
  * Named points on the timeline.
24984
25091
  */
@@ -25302,14 +25409,9 @@ export type KnowledgeKnowledgeModels = {
25302
25409
  vision: string;
25303
25410
  };
25304
25411
  /**
25305
- * auto resolves to static with 800 estimated tokens and 400 overlap tokens. Unlike OpenAI vector stores, token counts are estimates; each Han character counts as one, and other whitespace-delimited words count as their UTF-16 length divided by four, rounded up.
25412
+ * Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy.
25306
25413
  */
25307
- export type KnowledgeChunkingInput = {
25308
- /**
25309
- * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
25310
- */
25311
- type: 'auto';
25312
- } | KnowledgeStaticChunking;
25414
+ export type KnowledgeNativeChunkingInput = KnowledgeChunkingInput | KnowledgeHierarchicalChunking;
25313
25415
  /**
25314
25416
  * Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.
25315
25417
  */
@@ -25364,6 +25466,10 @@ export type KnowledgeNativeSearchResult = {
25364
25466
  * Extracted text of the matched chunk, which may overlap neighboring chunks.
25365
25467
  */
25366
25468
  text: string;
25469
+ /**
25470
+ * Optional source image File ID for this matched chunk. Use the File service to read the image; absent for chunks without an image source and omitted by the OpenAI-compatible URL.
25471
+ */
25472
+ readonly image_file_id?: string;
25367
25473
  /**
25368
25474
  * Resource ID.
25369
25475
  */
@@ -25427,14 +25533,9 @@ export type KnowledgeFilter = {
25427
25533
  filters: Array<KnowledgeFilter>;
25428
25534
  };
25429
25535
  /**
25430
- * Stored chunking strategy for this attachment; auto input is returned as static settings.
25536
+ * Native stored strategy, including hierarchical parent and child settings. auto input resolves to static; the OpenAI-compatible URL projects hierarchical as other.
25431
25537
  */
25432
- export type KnowledgeChunking = KnowledgeStaticChunking | {
25433
- /**
25434
- * other identifies a stored strategy whose chunk-size settings are unavailable.
25435
- */
25436
- type: 'other';
25437
- };
25538
+ export type KnowledgeNativeChunking = KnowledgeChunking | KnowledgeHierarchicalChunking;
25438
25539
  /**
25439
25540
  * File attributes used by search filters. Up to 16 keys of 64 characters; string values up to 512 characters.
25440
25541
  */
@@ -25546,7 +25647,7 @@ export type MediaUnderstandingProgress = {
25546
25647
  readonly migration_complete: boolean;
25547
25648
  };
25548
25649
  /**
25549
- * Resolved model call IDs for the library’s vision, embedding and transcription roles.
25650
+ * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
25550
25651
  */
25551
25652
  export type MediaMediaModels = {
25552
25653
  /**
@@ -25558,9 +25659,17 @@ export type MediaMediaModels = {
25558
25659
  */
25559
25660
  embedding: string;
25560
25661
  /**
25561
- * Model call ID for speech transcription.
25662
+ * Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
25562
25663
  */
25563
25664
  transcription: string;
25665
+ /**
25666
+ * Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
25667
+ */
25668
+ readonly correction: string;
25669
+ /**
25670
+ * Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
25671
+ */
25672
+ readonly reference_transcription: string;
25564
25673
  };
25565
25674
  /**
25566
25675
  * Identifier of a library belonging to the caller.
@@ -25757,13 +25866,13 @@ export type MediaChunkComplete = MediaCloudinaryResource & {
25757
25866
  done: true;
25758
25867
  };
25759
25868
  /**
25760
- * Per-task processing progress and its aggregate state for the asset.
25869
+ * Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video or audio sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
25761
25870
  */
25762
25871
  export type MediaProcessing = {
25763
25872
  /**
25764
- * Current understanding stage: probe, frames, visual, transcript, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
25873
+ * Current understanding stage: probe, frames, shots, visual, transcript, transcript_reference, transcript_correction, overview, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
25765
25874
  */
25766
- readonly stage?: 'probe' | 'frames' | 'visual' | 'transcript' | 'embedding' | 'finalize' | null;
25875
+ readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'overview' | 'embedding' | 'finalize' | null;
25767
25876
  state: MediaProcessingState;
25768
25877
  /**
25769
25878
  * Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
@@ -25805,6 +25914,18 @@ export type MediaStoryboard = {
25805
25914
  * An immutable understanding result for an asset version, including superseded history when requested.
25806
25915
  */
25807
25916
  export type MediaUnderstanding = {
25917
+ /**
25918
+ * Original hallucination-filtered ASR text before correction, present on correction-enabled transcript records. Omitted on legacy records and other kinds.
25919
+ */
25920
+ readonly text_original?: string;
25921
+ /**
25922
+ * Corrected transcript, also returned as content and used for subtitles and search. Equals text_original when correction fails. Original segment timestamps remain unchanged.
25923
+ */
25924
+ readonly text?: string;
25925
+ /**
25926
+ * Transcript correction audit, accepted edits and optional reference ASR. Present on correction-enabled transcript records, including failed corrections.
25927
+ */
25928
+ readonly correction?: MediaTranscriptCorrection;
25808
25929
  /**
25809
25930
  * Generated identifier of this understanding result.
25810
25931
  */
@@ -25818,7 +25939,7 @@ export type MediaUnderstanding = {
25818
25939
  */
25819
25940
  asset_version: number;
25820
25941
  /**
25821
- * 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 description of a video segment.
25942
+ * 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 description of a video segment. overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
25822
25943
  */
25823
25944
  kind: MediaUnderstandingKind;
25824
25945
  /**
@@ -25842,7 +25963,7 @@ export type MediaUnderstanding = {
25842
25963
  */
25843
25964
  content: string | null;
25844
25965
  /**
25845
- * Structured producer output, such as recognized labels or frame details; null when absent.
25966
+ * Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape. Transcript segments may contain speaker (a diarization label, not a verified identity), words (text, start_ms and end_ms in source-media milliseconds) and producer (the actual fallback model when different from the record producer). Overview data contains chapters (first_shot, title, summary, start_ms, end_ms), iab (tier1, optional tier2, confidence from 0 to 1), and location (an unverified place guess or null); content is the full-video summary.
25846
25967
  */
25847
25968
  data: unknown | null;
25848
25969
  /**
@@ -25871,6 +25992,36 @@ export type MediaUnderstanding = {
25871
25992
  */
25872
25993
  created_at: MediaIsoTimestamp;
25873
25994
  };
25995
+ export type MediaUnderstoodShot = {
25996
+ /**
25997
+ * Inclusive shot start in milliseconds.
25998
+ */
25999
+ readonly start_ms: number;
26000
+ /**
26001
+ * Exclusive shot end in milliseconds.
26002
+ */
26003
+ readonly end_ms: number;
26004
+ /**
26005
+ * Zero-based shot index in timeline order.
26006
+ */
26007
+ readonly index: number;
26008
+ /**
26009
+ * One to three sampled frame timestamps in milliseconds within this shot.
26010
+ */
26011
+ readonly keyframes_ms: Array<number>;
26012
+ /**
26013
+ * Structured interpretation, present after this shot completes visual processing.
26014
+ */
26015
+ readonly visual?: MediaShotVisual;
26016
+ /**
26017
+ * Lexical location hint: true if the leaf folder and location guess share no place-name token. Unknown locations abstain; this is not a verified geolocation.
26018
+ */
26019
+ readonly folder_mismatch?: boolean;
26020
+ /**
26021
+ * Vision model that generated this shot interpretation.
26022
+ */
26023
+ readonly producer?: string;
26024
+ };
25874
26025
  /**
25875
26026
  * A native asset returned by expression search; tags and context are included only when requested in with_field.
25876
26027
  */
@@ -26141,6 +26292,36 @@ export type MediaMediaEvent = {
26141
26292
  [key: string]: unknown;
26142
26293
  };
26143
26294
  };
26295
+ export type MediaFailureGroup = {
26296
+ /**
26297
+ * Failure reason code. Unknown codes are retryable.
26298
+ */
26299
+ code: string;
26300
+ /**
26301
+ * Understanding output kind that failed, such as caption, frame, transcript or embedding.
26302
+ */
26303
+ kind: string;
26304
+ /**
26305
+ * Producer model that reported this failure; unknown when historical provenance was unavailable.
26306
+ */
26307
+ model: string;
26308
+ /**
26309
+ * Number of current failed entries in this group; several entries can belong to one asset.
26310
+ */
26311
+ count: number;
26312
+ /**
26313
+ * True for a rollup of additional code, kind and model combinations after 1024 detailed groups. OTHER_RETRYABLE and OTHER_UNRECOVERABLE preserve retryability; original codes remain on each understanding and match failure_code expressions.
26314
+ */
26315
+ overflow: boolean;
26316
+ /**
26317
+ * True when a repeated attempt may recover, including unknown error codes. False for unsupported media, limits, missing or corrupt source files.
26318
+ */
26319
+ retryable: boolean;
26320
+ /**
26321
+ * Up to five distinct asset identifiers from this group, for inspecting original error details.
26322
+ */
26323
+ sample_asset_ids: Array<MediaAssetId>;
26324
+ };
26144
26325
  /**
26145
26326
  * Auto-resume configuration for paused sandboxes.
26146
26327
  */
@@ -30467,6 +30648,32 @@ export type CutTrack = {
30467
30648
  */
30468
30649
  items: Array<CutItem>;
30469
30650
  };
30651
+ /**
30652
+ * Overlap between adjacent visual clips on the same track; creating it shifts the right clip and same-track followers left by its length.
30653
+ */
30654
+ export type CutJoin = {
30655
+ /**
30656
+ * Join identifier returned by Join; reuse as the id argument to UpdateJoin or DeleteJoin inside execute.
30657
+ */
30658
+ id: string;
30659
+ /**
30660
+ * Visual track containing both endpoints, from AddTrack or the timeline track id.
30661
+ */
30662
+ track: string;
30663
+ /**
30664
+ * Outgoing clip identifier, from Insert or the timeline items.
30665
+ */
30666
+ left: string;
30667
+ /**
30668
+ * Incoming clip identifier, from Insert or the timeline items.
30669
+ */
30670
+ right: string;
30671
+ /**
30672
+ * Overlap duration in seconds, positive and shorter than each endpoint; incoming plus outgoing lengths may not exceed a clip length.
30673
+ */
30674
+ length: number;
30675
+ effect: CutJoinEffect;
30676
+ };
30470
30677
  /**
30471
30678
  * A named point on the project timeline.
30472
30679
  */
@@ -30484,23 +30691,39 @@ export type CutMarker = {
30484
30691
  */
30485
30692
  label: string;
30486
30693
  };
30487
- export type KnowledgeStaticChunking = {
30694
+ /**
30695
+ * auto resolves to static with 800 estimated tokens and 400 overlap tokens. Unlike OpenAI vector stores, token counts are estimates; each Han character counts as one, and other whitespace-delimited words count as their UTF-16 length divided by four, rounded up.
30696
+ */
30697
+ export type KnowledgeChunkingInput = {
30488
30698
  /**
30489
- * static selects explicit chunk-size and overlap settings.
30699
+ * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
30490
30700
  */
30491
- type: 'static';
30701
+ type: 'auto';
30702
+ } | KnowledgeStaticChunking;
30703
+ /**
30704
+ * Native strategy that indexes small child chunks and returns bounded parent context for retrieval. Unlike OpenAI vector stores, this strategy is available only through /knowledge/v1; compatible writes reject it and compatible reads project its type as other.
30705
+ */
30706
+ export type KnowledgeHierarchicalChunking = {
30492
30707
  /**
30493
- * Chunk-size and overlap limits in estimated tokens.
30708
+ * hierarchical selects smaller child chunks for matching and larger parent chunks for context.
30494
30709
  */
30495
- static: {
30710
+ type: 'hierarchical';
30711
+ /**
30712
+ * Required parent, child and overlap sizes in estimated tokens. All three values must be integers.
30713
+ */
30714
+ hierarchical: {
30496
30715
  /**
30497
- * Estimated tokens per chunk.
30716
+ * Maximum estimated tokens per parent chunk, from 101 through 4096; must exceed child_max_tokens.
30498
30717
  */
30499
- max_chunk_size_tokens: number;
30718
+ parent_max_tokens: number;
30500
30719
  /**
30501
- * Must not exceed half of max_chunk_size_tokens.
30720
+ * Maximum estimated tokens per child chunk, at least 100 and strictly smaller than parent_max_tokens.
30502
30721
  */
30503
- chunk_overlap_tokens: number;
30722
+ child_max_tokens: number;
30723
+ /**
30724
+ * Estimated tokens shared by adjacent children, from zero through floor(child_max_tokens / 2).
30725
+ */
30726
+ child_overlap_tokens: number;
30504
30727
  };
30505
30728
  };
30506
30729
  /**
@@ -30540,6 +30763,15 @@ export type KnowledgeSearchExplain = {
30540
30763
  */
30541
30764
  matched_terms: Array<string>;
30542
30765
  };
30766
+ /**
30767
+ * Stored chunking strategy for this attachment; auto input is returned as static settings.
30768
+ */
30769
+ export type KnowledgeChunking = KnowledgeStaticChunking | {
30770
+ /**
30771
+ * other identifies a stored strategy whose chunk-size settings are unavailable.
30772
+ */
30773
+ type: 'other';
30774
+ };
30543
30775
  /**
30544
30776
  * Aggregate processing state across the asset processing tasks.
30545
30777
  */
@@ -30548,14 +30780,66 @@ export type MediaProcessingState = 'pending' | 'processing' | 'ready' | 'partial
30548
30780
  * Task state: pending awaits execution; running is executing; ready succeeded; failed terminated unsuccessfully; unsupported cannot process this input; skipped was disabled or does not apply.
30549
30781
  */
30550
30782
  export type MediaKindState = 'pending' | 'running' | 'ready' | 'failed' | 'unsupported' | 'skipped';
30783
+ export type MediaTranscriptCorrection = {
30784
+ /**
30785
+ * Accepted local edits, including deterministic Arabic quantity normalization. Unsupported model edits are discarded.
30786
+ */
30787
+ readonly edits: Array<MediaTranscriptEdit>;
30788
+ /**
30789
+ * ready means correction and validation completed; failed means text is exactly the ASR original, with no accepted edits.
30790
+ */
30791
+ readonly correction_status: 'ready' | 'failed';
30792
+ /**
30793
+ * Configured correction model call ID; defaults to qwen3.8-flash.
30794
+ */
30795
+ readonly correction_model: string;
30796
+ /**
30797
+ * ready means reference ASR supplied text; missing means reference failed or was unavailable and correction proceeded without it.
30798
+ */
30799
+ readonly reference_status: 'ready' | 'missing';
30800
+ /**
30801
+ * Full reference ASR text, present when reference_status is ready. It supplies spelling evidence and has no timestamps.
30802
+ */
30803
+ readonly reference_text?: string;
30804
+ /**
30805
+ * Model call ID that supplied the reference text; defaults to qwen3-asr-flash.
30806
+ */
30807
+ readonly reference_model?: string;
30808
+ /**
30809
+ * Correction failure that caused verbatim fallback to the ASR original.
30810
+ */
30811
+ readonly correction_error?: {
30812
+ /**
30813
+ * Failure code for the optional transcript enhancement step.
30814
+ */
30815
+ code: string;
30816
+ /**
30817
+ * Failure detail; use reprocess to retry with the library’s current configuration.
30818
+ */
30819
+ message: string;
30820
+ };
30821
+ /**
30822
+ * Reference failure; it does not block correction.
30823
+ */
30824
+ readonly reference_error?: {
30825
+ /**
30826
+ * Failure code for the optional transcript enhancement step.
30827
+ */
30828
+ code: string;
30829
+ /**
30830
+ * Failure detail; use reprocess to retry with the library’s current configuration.
30831
+ */
30832
+ message: string;
30833
+ };
30834
+ };
30551
30835
  /**
30552
30836
  * Identifier of an immutable understanding result.
30553
30837
  */
30554
30838
  export type MediaUnderstandingId = string;
30555
30839
  /**
30556
- * 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 description of a video segment.
30840
+ * 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 description of a video segment. overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
30557
30841
  */
30558
- export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
30842
+ export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'embedding';
30559
30843
  /**
30560
30844
  * Time range within the source media, expressed in milliseconds.
30561
30845
  */
@@ -30569,6 +30853,28 @@ export type MediaSegment = {
30569
30853
  */
30570
30854
  end_ms: number;
30571
30855
  };
30856
+ export type MediaShotVisual = {
30857
+ /**
30858
+ * Chinese summary of the entire shot using its keyframes together.
30859
+ */
30860
+ readonly caption: string;
30861
+ /**
30862
+ * Chinese description of the scene and shooting context.
30863
+ */
30864
+ readonly scene: string;
30865
+ /**
30866
+ * Location inferred from recognizable landmarks or readable place names; null without evidence.
30867
+ */
30868
+ readonly location_guess: string | null;
30869
+ /**
30870
+ * Visible text in reading order, preserving the source language.
30871
+ */
30872
+ readonly on_screen_text: Array<string>;
30873
+ /**
30874
+ * Quality and editing characteristics with confidence for every judgment.
30875
+ */
30876
+ readonly flags: MediaShotFlags;
30877
+ };
30572
30878
  /**
30573
30879
  * Evidence contributing to a search hit, optionally linked to an understanding and a source-media segment.
30574
30880
  */
@@ -30593,7 +30899,7 @@ export type MediaSemanticMatch = {
30593
30899
  /**
30594
30900
  * Type of change recorded for a library, asset, processing task, search index or batch.
30595
30901
  */
30596
- export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed';
30902
+ export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created';
30597
30903
  /**
30598
30904
  * Auto-resume enabled flag for paused sandboxes. Default false.
30599
30905
  */
@@ -31266,9 +31572,13 @@ export type CutTextStyle = {
31266
31572
  */
31267
31573
  max_width?: number;
31268
31574
  /**
31269
- * Caption placement: top is near the upper edge, middle is centered, bottom is near the lower edge.
31575
+ * Text or caption placement: top/middle/bottom center the box at 12%/50%/85% of height without margin; omitted text position preserves its transform.
31270
31576
  */
31271
31577
  position?: 'top' | 'middle' | 'bottom';
31578
+ /**
31579
+ * Box edge distance from the top or bottom as a fraction of canvas height; middle ignores it.
31580
+ */
31581
+ margin?: number;
31272
31582
  /**
31273
31583
  * Optional color applied to the currently spoken caption word.
31274
31584
  */
@@ -31380,6 +31690,136 @@ export type CutItem = {
31380
31690
  */
31381
31691
  words?: Array<CutCaptionWord>;
31382
31692
  };
31693
+ /**
31694
+ * Transition between two joined visual clips. The kind identifies an effect from ListTransitions; omitted parameters use that effect's defaults. Unknown fields and invalid values are rejected.
31695
+ */
31696
+ export type CutJoinEffect = {
31697
+ /**
31698
+ * Dissolve: Blend the outgoing shot into the incoming shot.
31699
+ */
31700
+ kind: 'dissolve';
31701
+ } | {
31702
+ /**
31703
+ * Dip: Fade through a solid color between the two shots.
31704
+ */
31705
+ kind: 'dip';
31706
+ /**
31707
+ * Solid color shown between shots.
31708
+ */
31709
+ color?: 'black' | 'white';
31710
+ } | {
31711
+ /**
31712
+ * Push: Slide the incoming shot into view as it pushes the outgoing shot away.
31713
+ */
31714
+ kind: 'push';
31715
+ /**
31716
+ * Direction in which the transition moves across the frame.
31717
+ */
31718
+ direction?: 'left' | 'right' | 'up' | 'down';
31719
+ } | {
31720
+ /**
31721
+ * Wipe: Reveal the incoming shot behind an edge moving across the outgoing shot.
31722
+ */
31723
+ kind: 'wipe';
31724
+ /**
31725
+ * Direction in which the transition moves across the frame.
31726
+ */
31727
+ direction?: 'left' | 'right' | 'up' | 'down';
31728
+ /**
31729
+ * Edge softness from a sharp boundary to a fully softened blend.
31730
+ */
31731
+ softness?: number;
31732
+ } | {
31733
+ /**
31734
+ * Iris: Reveal the incoming shot through an expanding circular opening.
31735
+ */
31736
+ kind: 'iris';
31737
+ /**
31738
+ * Horizontal opening center from the left edge to the right edge.
31739
+ */
31740
+ center_x?: number;
31741
+ /**
31742
+ * Vertical opening center from the top edge to the bottom edge.
31743
+ */
31744
+ center_y?: number;
31745
+ } | {
31746
+ /**
31747
+ * Blinds: Reveal the incoming shot through a set of parallel strips.
31748
+ */
31749
+ kind: 'blinds';
31750
+ /**
31751
+ * Number of strips revealing the incoming shot.
31752
+ */
31753
+ count?: number;
31754
+ /**
31755
+ * Orientation of the revealing strips.
31756
+ */
31757
+ orientation?: 'vertical' | 'horizontal';
31758
+ } | {
31759
+ /**
31760
+ * Blur: Blur the outgoing shot into the incoming shot before returning to focus.
31761
+ */
31762
+ kind: 'blur';
31763
+ /**
31764
+ * Blur radius in pixels at a reference frame height of 1080 pixels.
31765
+ */
31766
+ radius?: number;
31767
+ };
31768
+ export type KnowledgeStaticChunking = {
31769
+ /**
31770
+ * static selects explicit chunk-size and overlap settings.
31771
+ */
31772
+ type: 'static';
31773
+ /**
31774
+ * Chunk-size and overlap limits in estimated tokens.
31775
+ */
31776
+ static: {
31777
+ /**
31778
+ * Estimated tokens per chunk.
31779
+ */
31780
+ max_chunk_size_tokens: number;
31781
+ /**
31782
+ * Must not exceed half of max_chunk_size_tokens.
31783
+ */
31784
+ chunk_overlap_tokens: number;
31785
+ };
31786
+ };
31787
+ export type MediaTranscriptEdit = {
31788
+ /**
31789
+ * Original literal text replaced by this accepted edit.
31790
+ */
31791
+ readonly from: string;
31792
+ /**
31793
+ * Replacement text. Model edits require a length difference of at most two Unicode characters, or a target present in hotwords or the reference transcript. Arabic quantity normalization is deterministic.
31794
+ */
31795
+ readonly to: string;
31796
+ /**
31797
+ * Zero-based index in the assembled, hallucination-filtered ASR segments. Segment timestamps do not change.
31798
+ */
31799
+ readonly segment_id: number;
31800
+ };
31801
+ export type MediaShotFlags = {
31802
+ /**
31803
+ * Slide or screen-recorded picture/text sequence rather than live footage.
31804
+ */
31805
+ readonly slideshow: MediaShotFlag;
31806
+ /**
31807
+ * Visible watermark.
31808
+ */
31809
+ readonly watermark: MediaShotFlag;
31810
+ /**
31811
+ * Fingers or hands framing the scene.
31812
+ */
31813
+ readonly hand_frame: MediaShotFlag;
31814
+ /**
31815
+ * Added text sticker or overlay.
31816
+ */
31817
+ readonly text_sticker: MediaShotFlag;
31818
+ /**
31819
+ * Blur, severe camera shake, bad exposure or another visible quality defect.
31820
+ */
31821
+ readonly low_quality: MediaShotFlag;
31822
+ };
31383
31823
  export type SandboxSandboxIamToken = {
31384
31824
  /**
31385
31825
  * Audience of the workload token, stored exactly as provided.
@@ -31641,6 +32081,16 @@ export type CutCaptionWord = {
31641
32081
  */
31642
32082
  length: number;
31643
32083
  };
32084
+ export type MediaShotFlag = {
32085
+ /**
32086
+ * True when this visual characteristic is present.
32087
+ */
32088
+ readonly value: boolean;
32089
+ /**
32090
+ * Confidence in this true or false judgment, from 0 to 1.
32091
+ */
32092
+ readonly confidence: number;
32093
+ };
31644
32094
  export type PraxisSdkSseGetBrowserV1SessionsSessionIdStream = BrowserStreamMessage;
31645
32095
  /**
31646
32096
  * One decoded SSE event. The data field contains the decoded JSON payload, or a documented string sentinel. SSE comments are keepalives, not events. Optional id/event fields are absent when the server does not send them.
@@ -31936,6 +32386,28 @@ export type AutomationJsonValueWritable = null | string | number | boolean | Aut
31936
32386
  export type AutomationJsonObjectWritable = {
31937
32387
  [key: string]: AutomationJsonValueWritable;
31938
32388
  };
32389
+ export type KnowledgeNativeSearchPageWritable = {
32390
+ /**
32391
+ * Object discriminator; vector_store.search_results.page identifies a search result page.
32392
+ */
32393
+ object: 'vector_store.search_results.page';
32394
+ /**
32395
+ * The queries used for retrieval, one per input query; rewritten when rewrite_query is true, otherwise the input as sent.
32396
+ */
32397
+ search_query: Array<string>;
32398
+ /**
32399
+ * One result per matched chunk; the same file_id can occur more than once.
32400
+ */
32401
+ data: Array<KnowledgeNativeSearchResultWritable>;
32402
+ /**
32403
+ * True when filtered chunks exceed max_num_results; next_page remains null.
32404
+ */
32405
+ has_more: boolean;
32406
+ /**
32407
+ * Always null; no next search page.
32408
+ */
32409
+ next_page: null;
32410
+ };
31939
32411
  /**
31940
32412
  * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
31941
32413
  */
@@ -31943,7 +32415,7 @@ export type MediaLibraryWritable = {
31943
32415
  /**
31944
32416
  * Resolved model call IDs used for new uploads and reprocessing.
31945
32417
  */
31946
- models: MediaMediaModels;
32418
+ models: MediaMediaModelsWritable;
31947
32419
  /**
31948
32420
  * Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
31949
32421
  */
@@ -32222,6 +32694,19 @@ export type MediaAssetWritable = {
32222
32694
  };
32223
32695
  };
32224
32696
  };
32697
+ /**
32698
+ * Understanding results in this page, ordered by creation time ascending.
32699
+ */
32700
+ export type MediaUnderstandingPageWritable = MediaPage & {
32701
+ /**
32702
+ * Understanding results in this page, ordered by creation time ascending.
32703
+ */
32704
+ data: Array<MediaUnderstandingWritable>;
32705
+ /**
32706
+ * Opaque token to pass as cursor to listUnderstandings; null means no further page.
32707
+ */
32708
+ next_cursor: string | null;
32709
+ };
32225
32710
  /**
32226
32711
  * Expression-search page with match counts, elapsed time and optional facet counts.
32227
32712
  */
@@ -32315,6 +32800,75 @@ export type AgentManaged193Writable = {
32315
32800
  export type AgentManaged143Writable = {
32316
32801
  [key: string]: string;
32317
32802
  };
32803
+ export type KnowledgeNativeSearchResultWritable = {
32804
+ /**
32805
+ * Resource ID.
32806
+ */
32807
+ file_id: string;
32808
+ /**
32809
+ * Original source filename for the matched file.
32810
+ */
32811
+ filename: string;
32812
+ /**
32813
+ * Relevance ranking score for this chunk, clamped to the range 0 to 1; not a probability.
32814
+ */
32815
+ score: number;
32816
+ /**
32817
+ * Current file attributes used for filtering; null when unset.
32818
+ */
32819
+ attributes: KnowledgeAttributes | null;
32820
+ /**
32821
+ * Matched chunk text and its source coordinates; one chunk per native result.
32822
+ */
32823
+ content: Array<{
32824
+ /**
32825
+ * text identifies an extracted text chunk.
32826
+ */
32827
+ type: 'text';
32828
+ /**
32829
+ * Extracted text of the matched chunk, which may overlap neighboring chunks.
32830
+ */
32831
+ text: string;
32832
+ /**
32833
+ * Resource ID.
32834
+ */
32835
+ chunk_id?: string;
32836
+ /**
32837
+ * One-based source page containing the start of this chunk; null when no page mapping is available.
32838
+ */
32839
+ page?: number | null;
32840
+ /**
32841
+ * Start and end offsets in UTF-16 code units.
32842
+ */
32843
+ span?: [
32844
+ number,
32845
+ number
32846
+ ];
32847
+ }>;
32848
+ /**
32849
+ * Native search explanation, included only when praxis.explain is requested.
32850
+ */
32851
+ praxis?: {
32852
+ explain: KnowledgeSearchExplain;
32853
+ };
32854
+ };
32855
+ /**
32856
+ * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
32857
+ */
32858
+ export type MediaMediaModelsWritable = {
32859
+ /**
32860
+ * Model call ID for visual descriptions; the model must support image input.
32861
+ */
32862
+ vision: string;
32863
+ /**
32864
+ * Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
32865
+ */
32866
+ embedding: string;
32867
+ /**
32868
+ * Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
32869
+ */
32870
+ transcription: string;
32871
+ };
32318
32872
  /**
32319
32873
  * Cloudinary-compatible resource. processing is present when the asset was uploaded with auto_tagging; otherwise it is omitted. Native Asset responses always include processing.
32320
32874
  */
@@ -32455,7 +33009,7 @@ export type MediaChunkCompleteWritable = MediaCloudinaryResourceWritable & {
32455
33009
  done: true;
32456
33010
  };
32457
33011
  /**
32458
- * Per-task processing progress and its aggregate state for the asset.
33012
+ * Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video or audio sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
32459
33013
  */
32460
33014
  export type MediaProcessingWritable = {
32461
33015
  state: MediaProcessingState;
@@ -32470,6 +33024,76 @@ export type MediaProcessingWritable = {
32470
33024
  */
32471
33025
  updated_at: MediaIsoTimestamp;
32472
33026
  };
33027
+ /**
33028
+ * An immutable understanding result for an asset version, including superseded history when requested.
33029
+ */
33030
+ export type MediaUnderstandingWritable = {
33031
+ /**
33032
+ * Generated identifier of this understanding result.
33033
+ */
33034
+ id: MediaUnderstandingId;
33035
+ /**
33036
+ * Identifier of the asset from which this result was produced.
33037
+ */
33038
+ asset_id: MediaAssetId;
33039
+ /**
33040
+ * Asset version processed to produce this result; compare with the asset’s current version.
33041
+ */
33042
+ asset_version: number;
33043
+ /**
33044
+ * 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 description of a video segment. overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
33045
+ */
33046
+ kind: MediaUnderstandingKind;
33047
+ /**
33048
+ * Producer model identifier; a failure may use the configured model when no model response is available.
33049
+ */
33050
+ producer: string;
33051
+ /**
33052
+ * Version of the producer that generated this understanding result.
33053
+ */
33054
+ producer_version: string;
33055
+ /**
33056
+ * Source-media time range for a frame or transcript segment; null for results without a segment.
33057
+ */
33058
+ segment: MediaSegment | null;
33059
+ /**
33060
+ * Result status: ready contains completed output; failed records an error.
33061
+ */
33062
+ status: 'ready' | 'failed';
33063
+ /**
33064
+ * Text output, such as a caption, recognized text or transcript; null for structured-only or failed results.
33065
+ */
33066
+ content: string | null;
33067
+ /**
33068
+ * Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape. Transcript segments may contain speaker (a diarization label, not a verified identity), words (text, start_ms and end_ms in source-media milliseconds) and producer (the actual fallback model when different from the record producer). Overview data contains chapters (first_shot, title, summary, start_ms, end_ms), iab (tier1, optional tier2, confidence from 0 to 1), and location (an unverified place guess or null); content is the full-video summary.
33069
+ */
33070
+ data: unknown | null;
33071
+ /**
33072
+ * Confidence value recorded by the producer; null when no confidence value is recorded.
33073
+ */
33074
+ confidence: number | null;
33075
+ /**
33076
+ * Failure code and message, or null for a successful result.
33077
+ */
33078
+ error: {
33079
+ /**
33080
+ * Failure code identifying why understanding could not complete.
33081
+ */
33082
+ code: string;
33083
+ /**
33084
+ * Human-readable explanation of the understanding failure.
33085
+ */
33086
+ message: string;
33087
+ } | null;
33088
+ /**
33089
+ * Whether a newer result or asset version has replaced this result. Excluded from listing unless include_superseded is true.
33090
+ */
33091
+ superseded: boolean;
33092
+ /**
33093
+ * Time this immutable result was recorded, in UTC.
33094
+ */
33095
+ created_at: MediaIsoTimestamp;
33096
+ };
32473
33097
  /**
32474
33098
  * A native asset returned by expression search; tags and context are included only when requested in with_field.
32475
33099
  */
@@ -32695,6 +33319,9 @@ export type MediaSemanticHitWritable = {
32695
33319
  export type AgentManaged34Writable = {
32696
33320
  [key: string]: unknown;
32697
33321
  };
33322
+ export type MediaTranscriptCorrectionWritable = {
33323
+ [key: string]: unknown;
33324
+ };
32698
33325
  /**
32699
33326
  * Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
32700
33327
  */
@@ -43297,7 +43924,7 @@ export type FileCreateSignedUploadResponse = FileCreateSignedUploadResponses[key
43297
43924
  export type FileCreateContentUrlData = {
43298
43925
  body?: {
43299
43926
  /**
43300
- * Download link lifetime in seconds, from 1 through 604800; omitted means 3600. This does not change the file's own expiry.
43927
+ * Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.
43301
43928
  */
43302
43929
  ttl_seconds?: number;
43303
43930
  };
@@ -44843,31 +45470,29 @@ export type CreateSystemoneResponse = CreateSystemoneResponses[keyof CreateSyste
44843
45470
  export type CreateAudioTranscriptionData = {
44844
45471
  body: {
44845
45472
  /**
44846
- * Transcription model id, for example `whisper-large-v3-turbo` or `qwen3-asr-flash`; list candidates with listModels?type=transcription. Router support (supported): Verified to take effect.
45473
+ * Model catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix.
44847
45474
  */
44848
45475
  model: string;
44849
45476
  /**
44850
- * Audio file to transcribe, uploaded as multipart/form-data. Router support (supported): Verified to take effect.
45477
+ * Audio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model.
44851
45478
  */
44852
45479
  file: Blob | File;
44853
45480
  /**
44854
- * Language of the audio as an ISO-639-1 code such as `en` or `zh`. Router support (partial): Both models accept ISO language codes. qwen3-asr-flash may translate output to that language; whisper-large-v3-turbo treats it as an input hint. Non-ISO names may return 502.
45481
+ * Source language code when known; omit to let the model detect the language.
44855
45482
  */
44856
45483
  language?: string;
44857
45484
  /**
44858
- * Text that primes the model with vocabulary or context. Router support (partial): Vocabulary hints work on whisper-large-v3-turbo only; qwen3-asr-flash returns 400.
45485
+ * Optional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model.
44859
45486
  */
44860
45487
  prompt?: string;
44861
45488
  /**
44862
- * Format of the response body. `json` and `text` are the commonly supported formats. Router support (partial): json/text work on both; verbose_json works only on whisper-large-v3-turbo. srt/vtt return 400.
45489
+ * Output format: json returns text in JSON; text returns plain text; verbose_json includes requested timestamps; diarized_json includes speaker-labelled segments when supported. Defaults to json.
44863
45490
  */
44864
- response_format?: 'json' | 'text' | 'verbose_json';
45491
+ response_format?: 'json' | 'text' | 'verbose_json' | 'diarized_json';
44865
45492
  /**
44866
- * Timestamp levels to include with `verbose_json`; only `segment` exists in this schema. Router support (partial): Only whisper-large-v3-turbo supports segment with verbose_json. word returns 400; qwen3-asr-flash does not support timestamps.
45493
+ * Timestamp levels to request as repeated multipart fields: word returns per-word times; segment returns segment times. Omit for the model default. Use verbose_json, or diarized_json on supporting models.
44867
45494
  */
44868
- 'timestamp_granularities[]'?: [
44869
- 'segment'
44870
- ];
45495
+ 'timestamp_granularities[]'?: Array<'word' | 'segment'>;
44871
45496
  /**
44872
45497
  * Both whisper-large-v3-turbo and qwen3-asr-flash return 400.
44873
45498
  */
@@ -44879,11 +45504,11 @@ export type CreateAudioTranscriptionData = {
44879
45504
  };
44880
45505
  export type CreateAudioTranscriptionErrors = {
44881
45506
  /**
44882
- * Unsupported or unrepresentable parameter.
45507
+ * A field
44883
45508
  */
44884
45509
  400: unknown;
44885
45510
  /**
44886
- * No eligible model route.
45511
+ * No provider route supports this request; select an available model and its declared transcription features.
44887
45512
  */
44888
45513
  503: unknown;
44889
45514
  };
@@ -44893,58 +45518,79 @@ export type CreateAudioTranscriptionResponses = {
44893
45518
  */
44894
45519
  200: {
44895
45520
  /**
44896
- * The transcribed text.
45521
+ * Recognized speech text in the original language.
44897
45522
  */
44898
45523
  text: string;
44899
45524
  /**
44900
- * Task performed; always `transcribe`.
45525
+ * transcribe identifies speech-to-text transcription.
44901
45526
  */
44902
45527
  task?: 'transcribe';
44903
45528
  /**
44904
- * Language of the audio as detected or as requested.
45529
+ * Detected or requested source language code.
44905
45530
  */
44906
45531
  language?: string;
44907
45532
  /**
44908
- * Duration of the audio in seconds.
45533
+ * Audio duration in seconds when provided by the model.
44909
45534
  */
44910
45535
  duration?: number;
44911
45536
  /**
44912
- * Segments with timestamps, returned with `verbose_json` on models that support it.
45537
+ * Time-aligned speech segments when returned by the selected model and response format.
44913
45538
  */
44914
45539
  segments?: Array<{
44915
45540
  /**
44916
- * Zero-based index of the segment.
45541
+ * Segment identifier within this transcription response.
44917
45542
  */
44918
45543
  id: number;
44919
45544
  /**
44920
- * Start time of the segment in seconds.
45545
+ * Inclusive start time in seconds from the beginning of the audio.
44921
45546
  */
44922
45547
  start: number;
44923
45548
  /**
44924
- * End time of the segment in seconds.
45549
+ * Exclusive end time in seconds from the beginning of the audio.
44925
45550
  */
44926
45551
  end: number;
44927
45552
  /**
44928
- * The transcribed text.
45553
+ * Recognized speech text in the original language.
44929
45554
  */
44930
45555
  text: string;
44931
45556
  /**
44932
- * Sampling temperature used for the segment.
45557
+ * Speaker label in diarized_json when supported; labels distinguish voices and are not verified identities.
45558
+ */
45559
+ speaker?: string;
45560
+ /**
45561
+ * Decoding temperature reported by the transcription model.
44933
45562
  */
44934
45563
  temperature?: number;
44935
45564
  /**
44936
- * Average log probability of the tokens of the segment; low values mean low confidence.
45565
+ * Average segment token log probability when provided.
44937
45566
  */
44938
45567
  avg_logprob?: number;
44939
45568
  /**
44940
- * Gzip compression ratio of the segment text; high values indicate repetitive output.
45569
+ * Text compression ratio reported for this segment.
44941
45570
  */
44942
45571
  compression_ratio?: number;
44943
45572
  /**
44944
- * Probability that the segment contains no speech.
45573
+ * Probability of no speech reported for this segment.
44945
45574
  */
44946
45575
  no_speech_prob?: number;
44947
45576
  }>;
45577
+ /**
45578
+ * Per-word source-audio timestamps when word granularity is requested and supported.
45579
+ */
45580
+ words?: Array<{
45581
+ /**
45582
+ * Recognized word text in its original language.
45583
+ */
45584
+ word: string;
45585
+ /**
45586
+ * Inclusive word start in seconds from the beginning of the audio.
45587
+ */
45588
+ start: number;
45589
+ /**
45590
+ * Exclusive word end in seconds from the beginning of the audio.
45591
+ */
45592
+ end: number;
45593
+ }>;
44948
45594
  };
44949
45595
  };
44950
45596
  export type CreateAudioTranscriptionResponse = CreateAudioTranscriptionResponses[keyof CreateAudioTranscriptionResponses];
@@ -68817,7 +69463,7 @@ export type CutListFramesData = {
68817
69463
  */
68818
69464
  at: string;
68819
69465
  /**
68820
- * Positive image size multiplier; 0.5 renders at half the project dimensions.
69466
+ * Image size multiplier, default 0.25, greater than zero and at most 0.5. Larger values return INVALID_PARAMS; pixel-area limits may reduce actual dimensions, reported as width and height.
68821
69467
  */
68822
69468
  scale?: number;
68823
69469
  /**
@@ -69159,7 +69805,7 @@ export type CutListExportsResponses = {
69159
69805
  export type CutListExportsResponse = CutListExportsResponses[keyof CutListExportsResponses];
69160
69806
  export type CutCreateExportData = {
69161
69807
  /**
69162
- * Start an export from a project revision into a bound library.
69808
+ * Start an export from a project revision into a bound library. Output assets carry the cut-export tag and project_id, export_id and duration (seconds) context. Unavailable source metadata rejects creation with MEDIA_UNAVAILABLE and source clip and asset identities before rendering starts. Sources follow current asset versions; the current version is frozen at creation.
69163
69809
  */
69164
69810
  body: CutExportInput;
69165
69811
  path: {
@@ -70971,7 +71617,7 @@ export type KnowledgeListFilesResponses = {
70971
71617
  };
70972
71618
  export type KnowledgeListFilesResponse = KnowledgeListFilesResponses[keyof KnowledgeListFilesResponses];
70973
71619
  export type KnowledgeAttachFileData = {
70974
- body: KnowledgeAttachFile;
71620
+ body: KnowledgeNativeAttachFile;
70975
71621
  path: {
70976
71622
  /**
70977
71623
  * Resource ID.
@@ -71272,7 +71918,7 @@ export type KnowledgeRetrieveFileContentResponses = {
71272
71918
  };
71273
71919
  export type KnowledgeRetrieveFileContentResponse = KnowledgeRetrieveFileContentResponses[keyof KnowledgeRetrieveFileContentResponses];
71274
71920
  export type KnowledgeCreateFileBatchData = {
71275
- body: KnowledgeCreateBatch;
71921
+ body: KnowledgeNativeCreateBatch;
71276
71922
  path: {
71277
71923
  /**
71278
71924
  * Resource ID.
@@ -72076,6 +72722,80 @@ export type MediaCreateLibraryResponses = {
72076
72722
  200: MediaLibrary;
72077
72723
  };
72078
72724
  export type MediaCreateLibraryResponse = MediaCreateLibraryResponses[keyof MediaCreateLibraryResponses];
72725
+ export type MediaCreateFrameUrlsData = {
72726
+ body: {
72727
+ /**
72728
+ * One to twenty timestamps in microseconds from the start of the video. Each must be a nonnegative safe integer strictly below the video duration; order and duplicates are preserved.
72729
+ */
72730
+ at_micros: Array<number>;
72731
+ /**
72732
+ * Maximum JPEG width in pixels: 160 is a small thumbnail, 320 a preview and 640 a larger preview. Defaults to 640; larger widths are unavailable.
72733
+ */
72734
+ width?: 160 | 320 | 640;
72735
+ };
72736
+ path: {
72737
+ /**
72738
+ * Library identifier returned by library creation or listing; must be accessible to the current credential.
72739
+ */
72740
+ library_id: string;
72741
+ /**
72742
+ * Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps.
72743
+ */
72744
+ asset_id: string;
72745
+ };
72746
+ query?: never;
72747
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/frames';
72748
+ };
72749
+ export type MediaCreateFrameUrlsErrors = {
72750
+ /**
72751
+ * INVALID_PARAMS: supply 1–20 nonnegative integer timestamps below video duration and width 160, 320 or 640; images and audio cannot produce video frames.
72752
+ */
72753
+ 400: MediaMediaError;
72754
+ /**
72755
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
72756
+ */
72757
+ 403: MediaMediaError;
72758
+ /**
72759
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
72760
+ */
72761
+ 404: MediaMediaError;
72762
+ /**
72763
+ * Request failed; see the error code reference.
72764
+ */
72765
+ 409: MediaMediaError;
72766
+ /**
72767
+ * The file exceeds an input limit; provide a smaller source file.
72768
+ */
72769
+ 413: MediaMediaError;
72770
+ /**
72771
+ * This media format is unsupported; provide a supported format.
72772
+ */
72773
+ 415: MediaMediaError;
72774
+ /**
72775
+ * A rate limit was reached; wait before retrying.
72776
+ */
72777
+ 429: MediaMediaError;
72778
+ /**
72779
+ * The requested operation is unsupported; choose a supported method.
72780
+ */
72781
+ 501: MediaMediaError;
72782
+ /**
72783
+ * Request failed; see the error code reference.
72784
+ */
72785
+ 502: MediaMediaError;
72786
+ /**
72787
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
72788
+ */
72789
+ 503: MediaMediaError;
72790
+ };
72791
+ export type MediaCreateFrameUrlsError = MediaCreateFrameUrlsErrors[keyof MediaCreateFrameUrlsErrors];
72792
+ export type MediaCreateFrameUrlsResponses = {
72793
+ /**
72794
+ * Successful response.
72795
+ */
72796
+ 200: MediaFrameUrls;
72797
+ };
72798
+ export type MediaCreateFrameUrlsResponse = MediaCreateFrameUrlsResponses[keyof MediaCreateFrameUrlsResponses];
72079
72799
  export type MediaDeleteLibraryData = {
72080
72800
  body?: never;
72081
72801
  path: {
@@ -72203,6 +72923,10 @@ export type MediaUpdateLibraryData = {
72203
72923
  * Partial update of an active media library.
72204
72924
  */
72205
72925
  body: {
72926
+ /**
72927
+ * Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results.
72928
+ */
72929
+ hotwords?: Array<string>;
72206
72930
  /**
72207
72931
  * Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets.
72208
72932
  */
@@ -72516,7 +73240,7 @@ export type MediaUploadAssetData = {
72516
73240
  */
72517
73241
  display_name?: string;
72518
73242
  /**
72519
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73243
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
72520
73244
  */
72521
73245
  asset_folder?: string;
72522
73246
  /**
@@ -72653,7 +73377,7 @@ export type MediaImportAssetData = {
72653
73377
  */
72654
73378
  display_name?: string;
72655
73379
  /**
72656
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73380
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
72657
73381
  */
72658
73382
  asset_folder?: string;
72659
73383
  /**
@@ -72898,7 +73622,7 @@ export type MediaUpdateAssetData = {
72898
73622
  */
72899
73623
  display_name?: string;
72900
73624
  /**
72901
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73625
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
72902
73626
  */
72903
73627
  asset_folder?: string;
72904
73628
  /**
@@ -72981,7 +73705,7 @@ export type MediaReprocessAssetData = {
72981
73705
  */
72982
73706
  body: {
72983
73707
  /**
72984
- * Processing tasks to rerun. Omit to retry failed tasks only; explicit kinds rerun applicable ready, failed or unsupported tasks. Pending and running tasks are unchanged; an empty array does nothing.
73708
+ * Processing tasks to rerun. Omit to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable ready or failed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Pending and running tasks are unchanged; an empty array does nothing.
72985
73709
  */
72986
73710
  kinds?: Array<MediaProcessingKind>;
72987
73711
  };
@@ -73066,9 +73790,9 @@ export type MediaListUnderstandingsData = {
73066
73790
  */
73067
73791
  include_superseded?: boolean;
73068
73792
  /**
73069
- * 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 description of a video segment.
73793
+ * Return one output kind: caption is a visual description, tags are generated labels, ocr is visible text, transcript is speech, frame is a video shot, overview is a video summary, and embedding reports a failed embedding step.
73070
73794
  */
73071
- kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
73795
+ kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'embedding';
73072
73796
  /**
73073
73797
  * Cursor from the previous next_cursor.
73074
73798
  */
@@ -73136,7 +73860,7 @@ export type MediaExpressionSearchData = {
73136
73860
  */
73137
73861
  body: {
73138
73862
  /**
73139
- * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context.
73863
+ * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial.
73140
73864
  */
73141
73865
  expression?: string;
73142
73866
  /**
@@ -73545,6 +74269,10 @@ export type MediaCreateBatchData = {
73545
74269
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
73546
74270
  */
73547
74271
  selector: MediaBatchSelector;
74272
+ /**
74273
+ * Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
74274
+ */
74275
+ reason?: string;
73548
74276
  };
73549
74277
  path: {
73550
74278
  /**
@@ -73679,6 +74407,10 @@ export type MediaBatchAssetsData = {
73679
74407
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
73680
74408
  */
73681
74409
  selector: MediaBatchSelector;
74410
+ /**
74411
+ * Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
74412
+ */
74413
+ reason?: string;
73682
74414
  };
73683
74415
  path: {
73684
74416
  /**
@@ -73892,7 +74624,7 @@ export type MediaCreateDeliveryTokenData = {
73892
74624
  */
73893
74625
  acl?: string;
73894
74626
  /**
73895
- * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 3600.
74627
+ * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900.
73896
74628
  */
73897
74629
  expires_in?: number;
73898
74630
  };
@@ -73955,6 +74687,145 @@ export type MediaCreateDeliveryTokenResponses = {
73955
74687
  200: MediaDeliveryToken;
73956
74688
  };
73957
74689
  export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
74690
+ export type MediaUnderstandingFailureSummaryData = {
74691
+ body?: never;
74692
+ path: {
74693
+ /**
74694
+ * Library ID returned by creation.
74695
+ */
74696
+ library_id: string;
74697
+ };
74698
+ query?: never;
74699
+ url: '/media/v1/libraries/{library_id}/understandings/failure_summary';
74700
+ };
74701
+ export type MediaUnderstandingFailureSummaryErrors = {
74702
+ /**
74703
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
74704
+ */
74705
+ 400: MediaMediaError;
74706
+ /**
74707
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
74708
+ */
74709
+ 403: MediaMediaError;
74710
+ /**
74711
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
74712
+ */
74713
+ 404: MediaMediaError;
74714
+ /**
74715
+ * Request failed; see the error code reference.
74716
+ */
74717
+ 409: MediaMediaError;
74718
+ /**
74719
+ * The file exceeds an input limit; provide a smaller source file.
74720
+ */
74721
+ 413: MediaMediaError;
74722
+ /**
74723
+ * This media format is unsupported; provide a supported format.
74724
+ */
74725
+ 415: MediaMediaError;
74726
+ /**
74727
+ * A rate limit was reached; wait before retrying.
74728
+ */
74729
+ 429: MediaMediaError;
74730
+ /**
74731
+ * The requested operation is unsupported; choose a supported method.
74732
+ */
74733
+ 501: MediaMediaError;
74734
+ /**
74735
+ * Request failed; see the error code reference.
74736
+ */
74737
+ 502: MediaMediaError;
74738
+ /**
74739
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
74740
+ */
74741
+ 503: MediaMediaError;
74742
+ };
74743
+ export type MediaUnderstandingFailureSummaryError = MediaUnderstandingFailureSummaryErrors[keyof MediaUnderstandingFailureSummaryErrors];
74744
+ export type MediaUnderstandingFailureSummaryResponses = {
74745
+ /**
74746
+ * Successful response.
74747
+ */
74748
+ 200: MediaFailureSummary;
74749
+ };
74750
+ export type MediaUnderstandingFailureSummaryResponse = MediaUnderstandingFailureSummaryResponses[keyof MediaUnderstandingFailureSummaryResponses];
74751
+ export type MediaListUnderstandingsByLibraryData = {
74752
+ body?: never;
74753
+ path: {
74754
+ /**
74755
+ * Library ID returned by creation.
74756
+ */
74757
+ library_id: string;
74758
+ };
74759
+ query?: {
74760
+ /**
74761
+ * Folder path including all descendants; omitted or empty selects the entire library.
74762
+ */
74763
+ folder?: string;
74764
+ /**
74765
+ * Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, embedding. Omit or empty to include every kind.
74766
+ */
74767
+ kinds?: string;
74768
+ /**
74769
+ * Cursor from the previous next_cursor.
74770
+ */
74771
+ cursor?: string;
74772
+ /**
74773
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
74774
+ */
74775
+ limit?: number;
74776
+ };
74777
+ url: '/media/v1/libraries/{library_id}/understandings';
74778
+ };
74779
+ export type MediaListUnderstandingsByLibraryErrors = {
74780
+ /**
74781
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
74782
+ */
74783
+ 400: MediaMediaError;
74784
+ /**
74785
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
74786
+ */
74787
+ 403: MediaMediaError;
74788
+ /**
74789
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
74790
+ */
74791
+ 404: MediaMediaError;
74792
+ /**
74793
+ * Request failed; see the error code reference.
74794
+ */
74795
+ 409: MediaMediaError;
74796
+ /**
74797
+ * The file exceeds an input limit; provide a smaller source file.
74798
+ */
74799
+ 413: MediaMediaError;
74800
+ /**
74801
+ * This media format is unsupported; provide a supported format.
74802
+ */
74803
+ 415: MediaMediaError;
74804
+ /**
74805
+ * A rate limit was reached; wait before retrying.
74806
+ */
74807
+ 429: MediaMediaError;
74808
+ /**
74809
+ * The requested operation is unsupported; choose a supported method.
74810
+ */
74811
+ 501: MediaMediaError;
74812
+ /**
74813
+ * Request failed; see the error code reference.
74814
+ */
74815
+ 502: MediaMediaError;
74816
+ /**
74817
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
74818
+ */
74819
+ 503: MediaMediaError;
74820
+ };
74821
+ export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
74822
+ export type MediaListUnderstandingsByLibraryResponses = {
74823
+ /**
74824
+ * Successful response.
74825
+ */
74826
+ 200: MediaUnderstandingPage;
74827
+ };
74828
+ export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
73958
74829
  export type GetSandboxV1SandboxesData = {
73959
74830
  body?: never;
73960
74831
  path?: never;