@deepraxis/sdk 0.1.1-dev.cc34a92 → 0.1.1-dev.d54e526

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.
@@ -1020,9 +1020,9 @@ export type OwnFileCreateFileRequest = {
1020
1020
  */
1021
1021
  file: Blob | File;
1022
1022
  /**
1023
- * Purpose label stored with the file: user_data or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
1023
+ * Purpose label stored with the file: user_data, assistants or vision. The label is stored and returned unchanged; assistants follows the same rules as user_data. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
1024
1024
  */
1025
- purpose: 'user_data' | 'vision';
1025
+ purpose: 'user_data' | 'assistants' | 'vision';
1026
1026
  expires_after?: OwnFileFileExpirationAfter;
1027
1027
  };
1028
1028
  /**
@@ -1058,7 +1058,7 @@ export type OwnFileOpenAiFile = {
1058
1058
  /**
1059
1059
  * Upload purpose. Image references in conversations require user_data.
1060
1060
  */
1061
- purpose: 'user_data' | 'vision';
1061
+ purpose: 'user_data' | 'assistants' | 'vision';
1062
1062
  /**
1063
1063
  * Deprecated. The current status of the file, which can be either `uploaded`, `processed`, or `error`.
1064
1064
  *
@@ -1156,9 +1156,9 @@ export type OwnFilePraxisCreateUpload = {
1156
1156
  */
1157
1157
  mime_type: string;
1158
1158
  /**
1159
- * Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images.
1159
+ * Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.
1160
1160
  */
1161
- purpose: 'user_data' | 'vision';
1161
+ purpose: 'user_data' | 'assistants' | 'vision';
1162
1162
  /**
1163
1163
  * Optional expiry policy for the resulting file; omission retains the file until deletion.
1164
1164
  */
@@ -1203,9 +1203,9 @@ export type OwnFilePraxisUpload = {
1203
1203
  */
1204
1204
  filename: string;
1205
1205
  /**
1206
- * File purpose: user_data for conversation attachments, vision for images.
1206
+ * File purpose: user_data for conversation attachments, assistants for assistant files, vision for images.
1207
1207
  */
1208
- purpose: 'user_data' | 'vision';
1208
+ purpose: 'user_data' | 'assistants' | 'vision';
1209
1209
  /**
1210
1210
  * Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its one-hour lifetime.
1211
1211
  */
@@ -1282,9 +1282,9 @@ export type OwnFileSignedUploadRequest = {
1282
1282
  */
1283
1283
  content_type: string;
1284
1284
  /**
1285
- * user_data stores ordinary files and conversation images; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data.
1285
+ * user_data and assistants store ordinary files and conversation images with their original purpose label; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data.
1286
1286
  */
1287
- purpose?: 'user_data' | 'vision';
1287
+ purpose?: 'user_data' | 'assistants' | 'vision';
1288
1288
  /**
1289
1289
  * Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 3600 for multipart. All part URLs and the completion URL share one expiry. This does not set the resulting file's lifetime.
1290
1290
  */
@@ -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.
13043
+ */
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.
13031
13056
  */
13032
- cause?: string;
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,14 @@ 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>;
14079
+ /**
14080
+ * Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
14081
+ */
14082
+ readonly progress?: MediaUnderstandingProgress;
14042
14083
  /**
14043
14084
  * Search capabilities of this library’s embedding model.
14044
14085
  */
@@ -14119,9 +14160,21 @@ export type MediaMediaModelsInput = {
14119
14160
  */
14120
14161
  embedding?: string | null;
14121
14162
  /**
14122
- * 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.
14123
14164
  */
14124
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;
14174
+ /**
14175
+ * Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges. Null restores this role’s default.
14176
+ */
14177
+ audio?: string | null;
14125
14178
  } | null;
14126
14179
  /**
14127
14180
  * Libraries in this page, ordered by creation time descending.
@@ -14136,6 +14189,25 @@ export type MediaLibraryPage = MediaPage & {
14136
14189
  */
14137
14190
  next_cursor: string | null;
14138
14191
  };
14192
+ export type MediaFrameUrls = {
14193
+ /**
14194
+ * Frame links in the same order as the requested timestamps, including duplicates.
14195
+ */
14196
+ frames: Array<{
14197
+ /**
14198
+ * Requested time in microseconds from the start of the video.
14199
+ */
14200
+ at_micros: number;
14201
+ /**
14202
+ * JPEG delivery URL. Fetch it to extract the frame; authenticated links carry a bearer token and must not be shared beyond intended readers.
14203
+ */
14204
+ url: string;
14205
+ /**
14206
+ * UTC expiry for authenticated frame links, 300 seconds after issuance. Upload asset links remain public and permanent; this timestamp does not expire those URLs.
14207
+ */
14208
+ expires_at: string;
14209
+ }>;
14210
+ };
14139
14211
  /**
14140
14212
  * Receipt confirming permanent removal of a previously deleted library.
14141
14213
  */
@@ -14295,7 +14367,7 @@ export type MediaAsset = {
14295
14367
  */
14296
14368
  url: string;
14297
14369
  /**
14298
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
14370
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
14299
14371
  */
14300
14372
  secure_url: string;
14301
14373
  /**
@@ -14404,6 +14476,10 @@ export type MediaUnderstandingPage = MediaPage & {
14404
14476
  * Opaque token to pass as cursor to listUnderstandings; null means no further page.
14405
14477
  */
14406
14478
  next_cursor: string | null;
14479
+ /**
14480
+ * 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.
14481
+ */
14482
+ readonly shots?: Array<MediaUnderstoodShot>;
14407
14483
  };
14408
14484
  /**
14409
14485
  * Expression-search page with match counts, elapsed time and optional facet counts.
@@ -14487,7 +14563,19 @@ export type MediaFolders = {
14487
14563
  * Number of assets in this folder and all descendant folders.
14488
14564
  */
14489
14565
  asset_count: number;
14566
+ /**
14567
+ * Active ready and partial assets in this folder and every descendant folder.
14568
+ */
14569
+ understood_count: number;
14570
+ /**
14571
+ * Active failed assets in this folder and every descendant folder.
14572
+ */
14573
+ failed_count: number;
14490
14574
  }>;
14575
+ /**
14576
+ * False while historical folder and failure counts are being populated; refresh after backfill completes.
14577
+ */
14578
+ counts_complete: boolean;
14491
14579
  };
14492
14580
  /**
14493
14581
  * Asynchronous batch job with successful and failed item counts.
@@ -14502,9 +14590,9 @@ export type MediaJob = {
14502
14590
  */
14503
14591
  library_id: MediaLibraryId;
14504
14592
  /**
14505
- * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
14593
+ * 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.
14506
14594
  */
14507
- action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete';
14595
+ action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess';
14508
14596
  /**
14509
14597
  * 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.
14510
14598
  */
@@ -14514,7 +14602,7 @@ export type MediaJob = {
14514
14602
  */
14515
14603
  total: number;
14516
14604
  /**
14517
- * Number of items successfully processed; failed items are counted separately.
14605
+ * Number of items successfully processed; failed items are counted separately. For reprocess, this counts accepted launches; inspect asset progress for model completion.
14518
14606
  */
14519
14607
  done: number;
14520
14608
  /**
@@ -14580,6 +14668,15 @@ export type MediaBatchAction = {
14580
14668
  * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
14581
14669
  */
14582
14670
  action: 'delete';
14671
+ } | {
14672
+ /**
14673
+ * reprocess retries recoverable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported, permanent and completed steps remain unchanged.
14674
+ */
14675
+ action: 'reprocess';
14676
+ /**
14677
+ * 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.
14678
+ */
14679
+ kinds?: Array<MediaProcessingKind>;
14583
14680
  };
14584
14681
  /**
14585
14682
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
@@ -14625,6 +14722,20 @@ export type MediaDeliveryToken = {
14625
14722
  */
14626
14723
  expires_at: string;
14627
14724
  };
14725
+ export type MediaFailureSummary = {
14726
+ /**
14727
+ * Number of current failed understanding entries, excluding deleted assets and superseded versions.
14728
+ */
14729
+ total: number;
14730
+ /**
14731
+ * Failure entries grouped by code, output kind and producer model. Each group includes up to five distinct example asset IDs.
14732
+ */
14733
+ groups: Array<MediaFailureGroup>;
14734
+ /**
14735
+ * False while historical failure and folder statistics are being populated. Counts include current writes immediately.
14736
+ */
14737
+ counts_complete: boolean;
14738
+ };
14628
14739
  /**
14629
14740
  * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
14630
14741
  */
@@ -24975,6 +25086,10 @@ export type CutTimeline = {
24975
25086
  * Ordered tracks, topmost visual layer first.
24976
25087
  */
24977
25088
  tracks: Array<CutTrack>;
25089
+ /**
25090
+ * Clip-to-clip transitions selected by track and overlap window; lengths are seconds and effect fields use snake_case on HTTP.
25091
+ */
25092
+ joins?: Array<CutJoin>;
24978
25093
  /**
24979
25094
  * Named points on the timeline.
24980
25095
  */
@@ -25010,11 +25125,11 @@ export type CutSummary = {
25010
25125
  lines: Array<string>;
25011
25126
  };
25012
25127
  /**
25013
- * Rendered image available until its signed URL expires.
25128
+ * Rendered PNG image carried inline as a data URL.
25014
25129
  */
25015
25130
  export type CutRenderRef = {
25016
25131
  /**
25017
- * Fetchable image URL for this render result.
25132
+ * Inline PNG data URL (data:image/png;base64,...); decode the base64 payload to save the image. This is not a hosted HTTP image link.
25018
25133
  */
25019
25134
  url: string;
25020
25135
  /**
@@ -25026,7 +25141,7 @@ export type CutRenderRef = {
25026
25141
  */
25027
25142
  height: number;
25028
25143
  /**
25029
- * ISO 8601 timestamp after which the image URL must be refreshed.
25144
+ * ISO 8601 freshness timestamp for the render result; the inline data URL contains the image bytes and does not require a network refresh.
25030
25145
  */
25031
25146
  expires_at: string;
25032
25147
  };
@@ -25298,14 +25413,9 @@ export type KnowledgeKnowledgeModels = {
25298
25413
  vision: string;
25299
25414
  };
25300
25415
  /**
25301
- * 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.
25416
+ * 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.
25302
25417
  */
25303
- export type KnowledgeChunkingInput = {
25304
- /**
25305
- * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
25306
- */
25307
- type: 'auto';
25308
- } | KnowledgeStaticChunking;
25418
+ export type KnowledgeNativeChunkingInput = KnowledgeChunkingInput | KnowledgeHierarchicalChunking;
25309
25419
  /**
25310
25420
  * 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.
25311
25421
  */
@@ -25360,6 +25470,10 @@ export type KnowledgeNativeSearchResult = {
25360
25470
  * Extracted text of the matched chunk, which may overlap neighboring chunks.
25361
25471
  */
25362
25472
  text: string;
25473
+ /**
25474
+ * 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.
25475
+ */
25476
+ readonly image_file_id?: string;
25363
25477
  /**
25364
25478
  * Resource ID.
25365
25479
  */
@@ -25423,14 +25537,9 @@ export type KnowledgeFilter = {
25423
25537
  filters: Array<KnowledgeFilter>;
25424
25538
  };
25425
25539
  /**
25426
- * Stored chunking strategy for this attachment; auto input is returned as static settings.
25540
+ * Native stored strategy, including hierarchical parent and child settings. auto input resolves to static; the OpenAI-compatible URL projects hierarchical as other.
25427
25541
  */
25428
- export type KnowledgeChunking = KnowledgeStaticChunking | {
25429
- /**
25430
- * other identifies a stored strategy whose chunk-size settings are unavailable.
25431
- */
25432
- type: 'other';
25433
- };
25542
+ export type KnowledgeNativeChunking = KnowledgeChunking | KnowledgeHierarchicalChunking;
25434
25543
  /**
25435
25544
  * File attributes used by search filters. Up to 16 keys of 64 characters; string values up to 512 characters.
25436
25545
  */
@@ -25515,7 +25624,34 @@ export type KnowledgeEvent = {
25515
25624
  };
25516
25625
  };
25517
25626
  /**
25518
- * Resolved model call IDs for the library’s vision, embedding and transcription roles.
25627
+ * Asset understanding progress. Completion rate counts assets reaching ready, partial or failed in the last 60 minute buckets, including reprocessing completions.
25628
+ */
25629
+ export type MediaUnderstandingProgress = {
25630
+ /**
25631
+ * Number of active assets in each aggregate processing state: pending, processing, ready, partial and failed. Historical counts are complete when migration_complete is true.
25632
+ */
25633
+ readonly counts: {
25634
+ [key: string]: number;
25635
+ };
25636
+ /**
25637
+ * Assets reaching a terminal processing state in the last 60 minute buckets. Reprocessing can complete an asset again.
25638
+ */
25639
+ readonly completed_last_hour: number;
25640
+ /**
25641
+ * Observed completion rate in assets per hour, equal to completed_last_hour.
25642
+ */
25643
+ readonly completion_rate_per_hour: number;
25644
+ /**
25645
+ * Estimated UTC completion time: now plus pending and processing assets divided by the observed hourly rate. Null while historical counts are incomplete, no work remains, or the rate is zero.
25646
+ */
25647
+ readonly estimated_completion_at: MediaIsoTimestamp | null;
25648
+ /**
25649
+ * True after historical assets have been counted and their pending understanding instances dispatched.
25650
+ */
25651
+ readonly migration_complete: boolean;
25652
+ };
25653
+ /**
25654
+ * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
25519
25655
  */
25520
25656
  export type MediaMediaModels = {
25521
25657
  /**
@@ -25527,9 +25663,21 @@ export type MediaMediaModels = {
25527
25663
  */
25528
25664
  embedding: string;
25529
25665
  /**
25530
- * Model call ID for speech transcription.
25666
+ * 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.
25531
25667
  */
25532
25668
  transcription: string;
25669
+ /**
25670
+ * Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
25671
+ */
25672
+ readonly correction: string;
25673
+ /**
25674
+ * Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
25675
+ */
25676
+ readonly reference_transcription: string;
25677
+ /**
25678
+ * Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges.
25679
+ */
25680
+ readonly audio: string;
25533
25681
  };
25534
25682
  /**
25535
25683
  * Identifier of a library belonging to the caller.
@@ -25690,7 +25838,7 @@ export type MediaCloudinaryResource = {
25690
25838
  */
25691
25839
  url: string;
25692
25840
  /**
25693
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
25841
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
25694
25842
  */
25695
25843
  secure_url: string;
25696
25844
  /**
@@ -25726,9 +25874,13 @@ export type MediaChunkComplete = MediaCloudinaryResource & {
25726
25874
  done: true;
25727
25875
  };
25728
25876
  /**
25729
- * Per-task processing progress and its aggregate state for the asset.
25877
+ * Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only 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.
25730
25878
  */
25731
25879
  export type MediaProcessing = {
25880
+ /**
25881
+ * Current understanding stage: probe, frames, shots, visual, transcript, transcript_reference, transcript_correction, audio_profile, overview, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
25882
+ */
25883
+ readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
25732
25884
  state: MediaProcessingState;
25733
25885
  /**
25734
25886
  * Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
@@ -25770,6 +25922,18 @@ export type MediaStoryboard = {
25770
25922
  * An immutable understanding result for an asset version, including superseded history when requested.
25771
25923
  */
25772
25924
  export type MediaUnderstanding = {
25925
+ /**
25926
+ * Original hallucination-filtered ASR text before correction, present on correction-enabled transcript records. Omitted on legacy records and other kinds.
25927
+ */
25928
+ readonly text_original?: string;
25929
+ /**
25930
+ * Corrected transcript, also returned as content and used for subtitles and search. Equals text_original when correction fails. Original segment timestamps remain unchanged.
25931
+ */
25932
+ readonly text?: string;
25933
+ /**
25934
+ * Transcript correction audit, accepted edits and optional reference ASR. Present on correction-enabled transcript records, including failed corrections.
25935
+ */
25936
+ readonly correction?: MediaTranscriptCorrection;
25773
25937
  /**
25774
25938
  * Generated identifier of this understanding result.
25775
25939
  */
@@ -25783,7 +25947,7 @@ export type MediaUnderstanding = {
25783
25947
  */
25784
25948
  asset_version: number;
25785
25949
  /**
25786
- * 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.
25950
+ * 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. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
25787
25951
  */
25788
25952
  kind: MediaUnderstandingKind;
25789
25953
  /**
@@ -25807,7 +25971,7 @@ export type MediaUnderstanding = {
25807
25971
  */
25808
25972
  content: string | null;
25809
25973
  /**
25810
- * Structured producer output, such as recognized labels or frame details; null when absent.
25974
+ * 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. Audio data contains segments (start_s and end_s in source-media seconds; type is speech, music, ambient or silence), has_music, genre, mood, bpm_estimate (nullable), bpm_is_estimate=true and analyzed_ranges (start_s, end_s in seconds). Genre and mood are nullable model labels. Audio understanding samples only the first 120 seconds in at most three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate, not an exact tempo; has_music=false only means no music was detected within analyzed_ranges.
25811
25975
  */
25812
25976
  data: unknown | null;
25813
25977
  /**
@@ -25836,6 +26000,36 @@ export type MediaUnderstanding = {
25836
26000
  */
25837
26001
  created_at: MediaIsoTimestamp;
25838
26002
  };
26003
+ export type MediaUnderstoodShot = {
26004
+ /**
26005
+ * Inclusive shot start in milliseconds.
26006
+ */
26007
+ readonly start_ms: number;
26008
+ /**
26009
+ * Exclusive shot end in milliseconds.
26010
+ */
26011
+ readonly end_ms: number;
26012
+ /**
26013
+ * Zero-based shot index in timeline order.
26014
+ */
26015
+ readonly index: number;
26016
+ /**
26017
+ * One to three sampled frame timestamps in milliseconds within this shot.
26018
+ */
26019
+ readonly keyframes_ms: Array<number>;
26020
+ /**
26021
+ * Structured interpretation, present after this shot completes visual processing.
26022
+ */
26023
+ readonly visual?: MediaShotVisual;
26024
+ /**
26025
+ * 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.
26026
+ */
26027
+ readonly folder_mismatch?: boolean;
26028
+ /**
26029
+ * Vision model that generated this shot interpretation.
26030
+ */
26031
+ readonly producer?: string;
26032
+ };
25839
26033
  /**
25840
26034
  * A native asset returned by expression search; tags and context are included only when requested in with_field.
25841
26035
  */
@@ -25953,7 +26147,7 @@ export type MediaSearchAsset = {
25953
26147
  */
25954
26148
  url: string;
25955
26149
  /**
25956
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
26150
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
25957
26151
  */
25958
26152
  secure_url: string;
25959
26153
  /**
@@ -26106,6 +26300,36 @@ export type MediaMediaEvent = {
26106
26300
  [key: string]: unknown;
26107
26301
  };
26108
26302
  };
26303
+ export type MediaFailureGroup = {
26304
+ /**
26305
+ * Failure reason code. Unknown codes are retryable.
26306
+ */
26307
+ code: string;
26308
+ /**
26309
+ * Understanding output kind that failed, such as caption, frame, transcript or embedding.
26310
+ */
26311
+ kind: string;
26312
+ /**
26313
+ * Producer model that reported this failure; unknown when historical provenance was unavailable.
26314
+ */
26315
+ model: string;
26316
+ /**
26317
+ * Number of current failed entries in this group; several entries can belong to one asset.
26318
+ */
26319
+ count: number;
26320
+ /**
26321
+ * 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.
26322
+ */
26323
+ overflow: boolean;
26324
+ /**
26325
+ * True when a repeated attempt may recover, including unknown error codes. False for unsupported media, limits, missing or corrupt source files.
26326
+ */
26327
+ retryable: boolean;
26328
+ /**
26329
+ * Up to five distinct asset identifiers from this group, for inspecting original error details.
26330
+ */
26331
+ sample_asset_ids: Array<MediaAssetId>;
26332
+ };
26109
26333
  /**
26110
26334
  * Auto-resume configuration for paused sandboxes.
26111
26335
  */
@@ -30432,6 +30656,32 @@ export type CutTrack = {
30432
30656
  */
30433
30657
  items: Array<CutItem>;
30434
30658
  };
30659
+ /**
30660
+ * Overlap between adjacent visual clips on the same track; creating it shifts the right clip and same-track followers left by its length.
30661
+ */
30662
+ export type CutJoin = {
30663
+ /**
30664
+ * Join identifier returned by Join; reuse as the id argument to UpdateJoin or DeleteJoin inside execute.
30665
+ */
30666
+ id: string;
30667
+ /**
30668
+ * Visual track containing both endpoints, from AddTrack or the timeline track id.
30669
+ */
30670
+ track: string;
30671
+ /**
30672
+ * Outgoing clip identifier, from Insert or the timeline items.
30673
+ */
30674
+ left: string;
30675
+ /**
30676
+ * Incoming clip identifier, from Insert or the timeline items.
30677
+ */
30678
+ right: string;
30679
+ /**
30680
+ * Overlap duration in seconds, positive and shorter than each endpoint; incoming plus outgoing lengths may not exceed a clip length.
30681
+ */
30682
+ length: number;
30683
+ effect: CutJoinEffect;
30684
+ };
30435
30685
  /**
30436
30686
  * A named point on the project timeline.
30437
30687
  */
@@ -30449,23 +30699,39 @@ export type CutMarker = {
30449
30699
  */
30450
30700
  label: string;
30451
30701
  };
30452
- export type KnowledgeStaticChunking = {
30702
+ /**
30703
+ * 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.
30704
+ */
30705
+ export type KnowledgeChunkingInput = {
30453
30706
  /**
30454
- * static selects explicit chunk-size and overlap settings.
30707
+ * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
30455
30708
  */
30456
- type: 'static';
30709
+ type: 'auto';
30710
+ } | KnowledgeStaticChunking;
30711
+ /**
30712
+ * 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.
30713
+ */
30714
+ export type KnowledgeHierarchicalChunking = {
30457
30715
  /**
30458
- * Chunk-size and overlap limits in estimated tokens.
30716
+ * hierarchical selects smaller child chunks for matching and larger parent chunks for context.
30459
30717
  */
30460
- static: {
30718
+ type: 'hierarchical';
30719
+ /**
30720
+ * Required parent, child and overlap sizes in estimated tokens. All three values must be integers.
30721
+ */
30722
+ hierarchical: {
30461
30723
  /**
30462
- * Estimated tokens per chunk.
30724
+ * Maximum estimated tokens per parent chunk, from 101 through 4096; must exceed child_max_tokens.
30463
30725
  */
30464
- max_chunk_size_tokens: number;
30726
+ parent_max_tokens: number;
30465
30727
  /**
30466
- * Must not exceed half of max_chunk_size_tokens.
30728
+ * Maximum estimated tokens per child chunk, at least 100 and strictly smaller than parent_max_tokens.
30467
30729
  */
30468
- chunk_overlap_tokens: number;
30730
+ child_max_tokens: number;
30731
+ /**
30732
+ * Estimated tokens shared by adjacent children, from zero through floor(child_max_tokens / 2).
30733
+ */
30734
+ child_overlap_tokens: number;
30469
30735
  };
30470
30736
  };
30471
30737
  /**
@@ -30505,6 +30771,15 @@ export type KnowledgeSearchExplain = {
30505
30771
  */
30506
30772
  matched_terms: Array<string>;
30507
30773
  };
30774
+ /**
30775
+ * Stored chunking strategy for this attachment; auto input is returned as static settings.
30776
+ */
30777
+ export type KnowledgeChunking = KnowledgeStaticChunking | {
30778
+ /**
30779
+ * other identifies a stored strategy whose chunk-size settings are unavailable.
30780
+ */
30781
+ type: 'other';
30782
+ };
30508
30783
  /**
30509
30784
  * Aggregate processing state across the asset processing tasks.
30510
30785
  */
@@ -30513,14 +30788,66 @@ export type MediaProcessingState = 'pending' | 'processing' | 'ready' | 'partial
30513
30788
  * 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.
30514
30789
  */
30515
30790
  export type MediaKindState = 'pending' | 'running' | 'ready' | 'failed' | 'unsupported' | 'skipped';
30791
+ export type MediaTranscriptCorrection = {
30792
+ /**
30793
+ * Accepted local edits, including deterministic Arabic quantity normalization. Unsupported model edits are discarded.
30794
+ */
30795
+ readonly edits: Array<MediaTranscriptEdit>;
30796
+ /**
30797
+ * ready means correction and validation completed; failed means text is exactly the ASR original, with no accepted edits.
30798
+ */
30799
+ readonly correction_status: 'ready' | 'failed';
30800
+ /**
30801
+ * Configured correction model call ID; defaults to qwen3.8-flash.
30802
+ */
30803
+ readonly correction_model: string;
30804
+ /**
30805
+ * ready means reference ASR supplied text; missing means reference failed or was unavailable and correction proceeded without it.
30806
+ */
30807
+ readonly reference_status: 'ready' | 'missing';
30808
+ /**
30809
+ * Full reference ASR text, present when reference_status is ready. It supplies spelling evidence and has no timestamps.
30810
+ */
30811
+ readonly reference_text?: string;
30812
+ /**
30813
+ * Model call ID that supplied the reference text; defaults to qwen3-asr-flash.
30814
+ */
30815
+ readonly reference_model?: string;
30816
+ /**
30817
+ * Correction failure that caused verbatim fallback to the ASR original.
30818
+ */
30819
+ readonly correction_error?: {
30820
+ /**
30821
+ * Failure code for the optional transcript enhancement step.
30822
+ */
30823
+ code: string;
30824
+ /**
30825
+ * Failure detail; use reprocess to retry with the library’s current configuration.
30826
+ */
30827
+ message: string;
30828
+ };
30829
+ /**
30830
+ * Reference failure; it does not block correction.
30831
+ */
30832
+ readonly reference_error?: {
30833
+ /**
30834
+ * Failure code for the optional transcript enhancement step.
30835
+ */
30836
+ code: string;
30837
+ /**
30838
+ * Failure detail; use reprocess to retry with the library’s current configuration.
30839
+ */
30840
+ message: string;
30841
+ };
30842
+ };
30516
30843
  /**
30517
30844
  * Identifier of an immutable understanding result.
30518
30845
  */
30519
30846
  export type MediaUnderstandingId = string;
30520
30847
  /**
30521
- * 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.
30848
+ * 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. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
30522
30849
  */
30523
- export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
30850
+ export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
30524
30851
  /**
30525
30852
  * Time range within the source media, expressed in milliseconds.
30526
30853
  */
@@ -30534,6 +30861,28 @@ export type MediaSegment = {
30534
30861
  */
30535
30862
  end_ms: number;
30536
30863
  };
30864
+ export type MediaShotVisual = {
30865
+ /**
30866
+ * Chinese summary of the entire shot using its keyframes together.
30867
+ */
30868
+ readonly caption: string;
30869
+ /**
30870
+ * Chinese description of the scene and shooting context.
30871
+ */
30872
+ readonly scene: string;
30873
+ /**
30874
+ * Location inferred from recognizable landmarks or readable place names; null without evidence.
30875
+ */
30876
+ readonly location_guess: string | null;
30877
+ /**
30878
+ * Visible text in reading order, preserving the source language.
30879
+ */
30880
+ readonly on_screen_text: Array<string>;
30881
+ /**
30882
+ * Quality and editing characteristics with confidence for every judgment.
30883
+ */
30884
+ readonly flags: MediaShotFlags;
30885
+ };
30537
30886
  /**
30538
30887
  * Evidence contributing to a search hit, optionally linked to an understanding and a source-media segment.
30539
30888
  */
@@ -30558,7 +30907,7 @@ export type MediaSemanticMatch = {
30558
30907
  /**
30559
30908
  * Type of change recorded for a library, asset, processing task, search index or batch.
30560
30909
  */
30561
- 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';
30910
+ 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';
30562
30911
  /**
30563
30912
  * Auto-resume enabled flag for paused sandboxes. Default false.
30564
30913
  */
@@ -31231,9 +31580,13 @@ export type CutTextStyle = {
31231
31580
  */
31232
31581
  max_width?: number;
31233
31582
  /**
31234
- * Caption placement: top is near the upper edge, middle is centered, bottom is near the lower edge.
31583
+ * Text or caption placement: top/middle/bottom center the box at 12%/50%/85% of height without margin; omitted text position preserves its transform.
31235
31584
  */
31236
31585
  position?: 'top' | 'middle' | 'bottom';
31586
+ /**
31587
+ * Box edge distance from the top or bottom as a fraction of canvas height; middle ignores it.
31588
+ */
31589
+ margin?: number;
31237
31590
  /**
31238
31591
  * Optional color applied to the currently spoken caption word.
31239
31592
  */
@@ -31345,6 +31698,136 @@ export type CutItem = {
31345
31698
  */
31346
31699
  words?: Array<CutCaptionWord>;
31347
31700
  };
31701
+ /**
31702
+ * 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.
31703
+ */
31704
+ export type CutJoinEffect = {
31705
+ /**
31706
+ * Dissolve: Blend the outgoing shot into the incoming shot.
31707
+ */
31708
+ kind: 'dissolve';
31709
+ } | {
31710
+ /**
31711
+ * Dip: Fade through a solid color between the two shots.
31712
+ */
31713
+ kind: 'dip';
31714
+ /**
31715
+ * Solid color shown between shots.
31716
+ */
31717
+ color?: 'black' | 'white';
31718
+ } | {
31719
+ /**
31720
+ * Push: Slide the incoming shot into view as it pushes the outgoing shot away.
31721
+ */
31722
+ kind: 'push';
31723
+ /**
31724
+ * Direction in which the transition moves across the frame.
31725
+ */
31726
+ direction?: 'left' | 'right' | 'up' | 'down';
31727
+ } | {
31728
+ /**
31729
+ * Wipe: Reveal the incoming shot behind an edge moving across the outgoing shot.
31730
+ */
31731
+ kind: 'wipe';
31732
+ /**
31733
+ * Direction in which the transition moves across the frame.
31734
+ */
31735
+ direction?: 'left' | 'right' | 'up' | 'down';
31736
+ /**
31737
+ * Edge softness from a sharp boundary to a fully softened blend.
31738
+ */
31739
+ softness?: number;
31740
+ } | {
31741
+ /**
31742
+ * Iris: Reveal the incoming shot through an expanding circular opening.
31743
+ */
31744
+ kind: 'iris';
31745
+ /**
31746
+ * Horizontal opening center from the left edge to the right edge.
31747
+ */
31748
+ center_x?: number;
31749
+ /**
31750
+ * Vertical opening center from the top edge to the bottom edge.
31751
+ */
31752
+ center_y?: number;
31753
+ } | {
31754
+ /**
31755
+ * Blinds: Reveal the incoming shot through a set of parallel strips.
31756
+ */
31757
+ kind: 'blinds';
31758
+ /**
31759
+ * Number of strips revealing the incoming shot.
31760
+ */
31761
+ count?: number;
31762
+ /**
31763
+ * Orientation of the revealing strips.
31764
+ */
31765
+ orientation?: 'vertical' | 'horizontal';
31766
+ } | {
31767
+ /**
31768
+ * Blur: Blur the outgoing shot into the incoming shot before returning to focus.
31769
+ */
31770
+ kind: 'blur';
31771
+ /**
31772
+ * Blur radius in pixels at a reference frame height of 1080 pixels.
31773
+ */
31774
+ radius?: number;
31775
+ };
31776
+ export type KnowledgeStaticChunking = {
31777
+ /**
31778
+ * static selects explicit chunk-size and overlap settings.
31779
+ */
31780
+ type: 'static';
31781
+ /**
31782
+ * Chunk-size and overlap limits in estimated tokens.
31783
+ */
31784
+ static: {
31785
+ /**
31786
+ * Estimated tokens per chunk.
31787
+ */
31788
+ max_chunk_size_tokens: number;
31789
+ /**
31790
+ * Must not exceed half of max_chunk_size_tokens.
31791
+ */
31792
+ chunk_overlap_tokens: number;
31793
+ };
31794
+ };
31795
+ export type MediaTranscriptEdit = {
31796
+ /**
31797
+ * Original literal text replaced by this accepted edit.
31798
+ */
31799
+ readonly from: string;
31800
+ /**
31801
+ * 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.
31802
+ */
31803
+ readonly to: string;
31804
+ /**
31805
+ * Zero-based index in the assembled, hallucination-filtered ASR segments. Segment timestamps do not change.
31806
+ */
31807
+ readonly segment_id: number;
31808
+ };
31809
+ export type MediaShotFlags = {
31810
+ /**
31811
+ * Slide or screen-recorded picture/text sequence rather than live footage.
31812
+ */
31813
+ readonly slideshow: MediaShotFlag;
31814
+ /**
31815
+ * Visible watermark.
31816
+ */
31817
+ readonly watermark: MediaShotFlag;
31818
+ /**
31819
+ * Fingers or hands framing the scene.
31820
+ */
31821
+ readonly hand_frame: MediaShotFlag;
31822
+ /**
31823
+ * Added text sticker or overlay.
31824
+ */
31825
+ readonly text_sticker: MediaShotFlag;
31826
+ /**
31827
+ * Blur, severe camera shake, bad exposure or another visible quality defect.
31828
+ */
31829
+ readonly low_quality: MediaShotFlag;
31830
+ };
31348
31831
  export type SandboxSandboxIamToken = {
31349
31832
  /**
31350
31833
  * Audience of the workload token, stored exactly as provided.
@@ -31606,6 +32089,16 @@ export type CutCaptionWord = {
31606
32089
  */
31607
32090
  length: number;
31608
32091
  };
32092
+ export type MediaShotFlag = {
32093
+ /**
32094
+ * True when this visual characteristic is present.
32095
+ */
32096
+ readonly value: boolean;
32097
+ /**
32098
+ * Confidence in this true or false judgment, from 0 to 1.
32099
+ */
32100
+ readonly confidence: number;
32101
+ };
31609
32102
  export type PraxisSdkSseGetBrowserV1SessionsSessionIdStream = BrowserStreamMessage;
31610
32103
  /**
31611
32104
  * 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.
@@ -31793,222 +32286,1048 @@ export type PraxisSdkSseGetAutomationV1RunsIdLogs = ({
31793
32286
  /**
31794
32287
  * Always an empty object for the end event.
31795
32288
  */
31796
- data?: {
31797
- [key: string]: unknown;
32289
+ data?: {
32290
+ [key: string]: unknown;
32291
+ };
32292
+ }) & {
32293
+ /**
32294
+ * Resume cursor of this entry; send it back as Last-Event-ID, or as cursor on the JSON form, to continue after it. Absent on the end event.
32295
+ */
32296
+ id?: string;
32297
+ /**
32298
+ * SSE event name: log carries one log line in data; end is sent once when the run has reached a terminal status and closes the stream.
32299
+ */
32300
+ event: 'log' | 'end';
32301
+ /**
32302
+ * Decoded JSON of one log line; for the end event, an empty object.
32303
+ */
32304
+ data: AutomationLogLine | {
32305
+ [key: string]: unknown;
32306
+ };
32307
+ };
32308
+ /**
32309
+ * Free-form string key/value pairs stored with the agent for your own bookkeeping.
32310
+ */
32311
+ export type AgentManaged37Writable = {
32312
+ [key: string]: string;
32313
+ };
32314
+ /**
32315
+ * Models to use for completion
32316
+ */
32317
+ export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
32318
+ /**
32319
+ * Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
32320
+ */
32321
+ export type AgentManaged173Writable = {
32322
+ [key: string]: string;
32323
+ };
32324
+ export type AgentManaged183Writable = {
32325
+ [key: string]: null | string;
32326
+ };
32327
+ /**
32328
+ * Free-form string key/value pairs.
32329
+ */
32330
+ export type AgentManaged8Writable = {
32331
+ [key: string]: string;
32332
+ };
32333
+ export type AgentManaged58Writable = {
32334
+ [key: string]: null | string;
32335
+ };
32336
+ /**
32337
+ * Free-form string key/value pairs.
32338
+ */
32339
+ export type AgentManaged168Writable = {
32340
+ [key: string]: string;
32341
+ };
32342
+ /**
32343
+ * Arguments the model passed to the tool.
32344
+ */
32345
+ export type AgentManaged197Writable = {
32346
+ [key: string]: unknown;
32347
+ };
32348
+ /**
32349
+ * Arguments the model passed to the tool.
32350
+ */
32351
+ export type AgentManaged206Writable = {
32352
+ [key: string]: unknown;
32353
+ };
32354
+ /**
32355
+ * Session metadata after the change.
32356
+ */
32357
+ export type AgentManaged246Writable = {
32358
+ [key: string]: string;
32359
+ };
32360
+ /**
32361
+ * Free-form string key/value pairs.
32362
+ */
32363
+ export type AgentManaged144Writable = {
32364
+ [key: string]: null | string;
32365
+ };
32366
+ /**
32367
+ * Free-form string key/value pairs.
32368
+ */
32369
+ export type AgentManaged137Writable = {
32370
+ [key: string]: string;
32371
+ };
32372
+ /**
32373
+ * Free-form string key/value pairs.
32374
+ */
32375
+ export type AgentManaged91Writable = {
32376
+ [key: string]: string;
32377
+ };
32378
+ /**
32379
+ * Free-form string key/value pairs.
32380
+ */
32381
+ export type AgentManaged78Writable = {
32382
+ [key: string]: string;
32383
+ };
32384
+ export type AgentManaged112Writable = {
32385
+ [key: string]: null | string;
32386
+ };
32387
+ /**
32388
+ * Any JSON value: null, boolean, number, string, array or object.
32389
+ */
32390
+ export type AutomationJsonValueWritable = null | string | number | boolean | AutomationJsonObjectWritable | Array<AutomationJsonValueWritable>;
32391
+ /**
32392
+ * Any JSON object whose keys are strings and whose values are any JSON value.
32393
+ */
32394
+ export type AutomationJsonObjectWritable = {
32395
+ [key: string]: AutomationJsonValueWritable;
32396
+ };
32397
+ export type KnowledgeNativeSearchPageWritable = {
32398
+ /**
32399
+ * Object discriminator; vector_store.search_results.page identifies a search result page.
32400
+ */
32401
+ object: 'vector_store.search_results.page';
32402
+ /**
32403
+ * The queries used for retrieval, one per input query; rewritten when rewrite_query is true, otherwise the input as sent.
32404
+ */
32405
+ search_query: Array<string>;
32406
+ /**
32407
+ * One result per matched chunk; the same file_id can occur more than once.
32408
+ */
32409
+ data: Array<KnowledgeNativeSearchResultWritable>;
32410
+ /**
32411
+ * True when filtered chunks exceed max_num_results; next_page remains null.
32412
+ */
32413
+ has_more: boolean;
32414
+ /**
32415
+ * Always null; no next search page.
32416
+ */
32417
+ next_page: null;
32418
+ };
32419
+ /**
32420
+ * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
32421
+ */
32422
+ export type MediaLibraryWritable = {
32423
+ /**
32424
+ * Resolved model call IDs used for new uploads and reprocessing.
32425
+ */
32426
+ models: MediaMediaModelsWritable;
32427
+ /**
32428
+ * Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
32429
+ */
32430
+ id: MediaLibraryId;
32431
+ /**
32432
+ * Display name of the library; duplicate names are allowed.
32433
+ */
32434
+ name: string;
32435
+ /**
32436
+ * Caller-defined string labels used to organize and filter libraries.
32437
+ */
32438
+ labels: {
32439
+ [key: string]: string;
32440
+ };
32441
+ /**
32442
+ * Library lifecycle: provisioning initializes the library; active permits asset operations; deleting awaits purge and may be restored before purge_at; deleted has been purged; failed indicates initialization failure.
32443
+ */
32444
+ status: MediaLibraryStatus;
32445
+ /**
32446
+ * Number of assets currently stored in the library.
32447
+ */
32448
+ asset_count: number;
32449
+ /**
32450
+ * Total source-content size of the library’s assets, in bytes.
32451
+ */
32452
+ bytes: number;
32453
+ /**
32454
+ * Settings controlling understanding tasks for new uploads.
32455
+ */
32456
+ understanding: MediaUnderstandingSettings;
32457
+ /**
32458
+ * Time the library was created, in UTC.
32459
+ */
32460
+ created_at: MediaIsoTimestamp;
32461
+ /**
32462
+ * Time library settings, lifecycle or usage were last updated, in UTC.
32463
+ */
32464
+ updated_at: MediaIsoTimestamp;
32465
+ /**
32466
+ * Time the library entered deleting, or null when active or restored.
32467
+ */
32468
+ deleted_at: MediaIsoTimestamp | null;
32469
+ /**
32470
+ * Scheduled purge time while the library is deleting; null for an active or restored library.
32471
+ */
32472
+ purge_at: MediaIsoTimestamp | null;
32473
+ };
32474
+ /**
32475
+ * Libraries in this page, ordered by creation time descending.
32476
+ */
32477
+ export type MediaLibraryPageWritable = MediaPage & {
32478
+ /**
32479
+ * Libraries in this page, ordered by creation time descending.
32480
+ */
32481
+ data: Array<MediaLibraryWritable>;
32482
+ /**
32483
+ * Opaque token to pass as cursor to listLibraries; null means no further page.
32484
+ */
32485
+ next_cursor: string | null;
32486
+ };
32487
+ /**
32488
+ * Assets in this page, ordered by creation time descending.
32489
+ */
32490
+ export type MediaAssetPageWritable = MediaPage & {
32491
+ /**
32492
+ * Assets in this page, ordered by creation time descending.
32493
+ */
32494
+ data: Array<MediaAssetWritable>;
32495
+ /**
32496
+ * Opaque token to pass as cursor to listAssets; null means no further page.
32497
+ */
32498
+ next_cursor: string | null;
32499
+ };
32500
+ /**
32501
+ * Upload response: a resource for a normal upload, an acknowledgement for an incomplete chunk, or a resource with done=true for the final chunk.
32502
+ */
32503
+ export type MediaUploadResultWritable = MediaCloudinaryResourceWritable | MediaChunkPending | MediaChunkCompleteWritable;
32504
+ /**
32505
+ * A media resource with its library, content hash, processing progress and semantic-search availability.
32506
+ */
32507
+ export type MediaAssetWritable = {
32508
+ /**
32509
+ * Generated asset identifier: 32 lowercase hexadecimal characters, preserved across overwrites.
32510
+ */
32511
+ asset_id: MediaAssetId;
32512
+ /**
32513
+ * Delivery identifier unique within this library, used in asset URLs.
32514
+ */
32515
+ public_id: string;
32516
+ /**
32517
+ * Human-readable asset name, independent of its delivery identifier.
32518
+ */
32519
+ display_name: string;
32520
+ /**
32521
+ * Organizational folder path; the empty string denotes the root folder.
32522
+ */
32523
+ asset_folder: string;
32524
+ /**
32525
+ * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
32526
+ */
32527
+ resource_type: MediaResourceType;
32528
+ /**
32529
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
32530
+ */
32531
+ type: MediaDeliveryType;
32532
+ /**
32533
+ * Detected file format used as the delivery URL extension.
32534
+ */
32535
+ format: string;
32536
+ /**
32537
+ * Monotonically increasing asset version used in delivery URLs; based on upload time in Unix seconds and advanced on overwrite.
32538
+ */
32539
+ version: number;
32540
+ /**
32541
+ * Identifier for this asset version, regenerated on overwrite.
32542
+ */
32543
+ version_id: string;
32544
+ /**
32545
+ * Size of the original source content, in bytes.
32546
+ */
32547
+ bytes: number;
32548
+ /**
32549
+ * MD5 digest of the source bytes, as 32 lowercase hexadecimal characters.
32550
+ */
32551
+ etag: string;
32552
+ /**
32553
+ * Source image or video width in pixels, when known.
32554
+ */
32555
+ width?: number;
32556
+ /**
32557
+ * Source image or video height in pixels, when known.
32558
+ */
32559
+ height?: number;
32560
+ /**
32561
+ * Source audio or video duration in seconds, when known.
32562
+ */
32563
+ duration?: number;
32564
+ /**
32565
+ * Number of pages recorded for the asset; omitted when no page count is stored.
32566
+ */
32567
+ pages?: number;
32568
+ /**
32569
+ * True for audio-only media, which uses resource_type video.
32570
+ */
32571
+ is_audio?: boolean;
32572
+ /**
32573
+ * Detected audio track metadata, omitted when no audio track information is available.
32574
+ */
32575
+ audio?: {
32576
+ /**
32577
+ * Detected audio codec identifier, when known.
32578
+ */
32579
+ codec?: string;
32580
+ /**
32581
+ * Number of audio channels in the detected track, when known.
32582
+ */
32583
+ channels?: number;
32584
+ /**
32585
+ * Audio sampling frequency in hertz, when known.
32586
+ */
32587
+ frequency?: number;
32588
+ };
32589
+ /**
32590
+ * False when the video is known to contain no audio track; omitted when audio presence is unknown or an audio track exists.
32591
+ */
32592
+ has_audio?: false;
32593
+ /**
32594
+ * Original or overridden source filename with its final extension removed.
32595
+ */
32596
+ original_filename?: string;
32597
+ /**
32598
+ * Labels attached to the asset.
32599
+ */
32600
+ tags: Array<string>;
32601
+ /**
32602
+ * Custom string metadata; omitted when empty or excluded by the search projection.
32603
+ */
32604
+ context?: {
32605
+ /**
32606
+ * Caller-supplied metadata entries with string values.
32607
+ */
32608
+ custom: {
32609
+ [key: string]: string;
32610
+ };
32611
+ };
32612
+ /**
32613
+ * Time this asset identity was created, in UTC.
32614
+ */
32615
+ created_at: MediaIsoTimestamp;
32616
+ /**
32617
+ * URL for retrieving this version of the asset’s original content.
32618
+ */
32619
+ url: string;
32620
+ /**
32621
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
32622
+ */
32623
+ secure_url: string;
32624
+ /**
32625
+ * False because this response represents stored source content.
32626
+ */
32627
+ placeholder: false;
32628
+ /**
32629
+ * True when overwrite is false and the public_id already exists; the existing resource is returned.
32630
+ */
32631
+ existing?: boolean;
32632
+ /**
32633
+ * Progress of understanding and embedding tasks for the asset.
32634
+ */
32635
+ processing: MediaProcessingWritable;
32636
+ /**
32637
+ * Identifier of the library containing this asset.
32638
+ */
32639
+ library_id: MediaLibraryId;
32640
+ /**
32641
+ * SHA-256 digest of the source bytes, as 64 lowercase hexadecimal characters.
32642
+ */
32643
+ sha256: string;
32644
+ /**
32645
+ * Resource status; active identifies an asset that has not been deleted.
32646
+ */
32647
+ status: 'active';
32648
+ /**
32649
+ * Search-vector status: pending awaits vector generation or reprocessing; ready has searchable vectors; unavailable indicates disabled, unsupported or failed embedding. Existing vectors may still serve searches while reprocessing is pending.
32650
+ */
32651
+ semantic: 'pending' | 'ready' | 'unavailable';
32652
+ /**
32653
+ * Generated video previews, present once preview generation succeeds.
32654
+ */
32655
+ preview?: {
32656
+ /**
32657
+ * Delivery URL of the video’s first-frame poster.
32658
+ */
32659
+ poster_url?: string;
32660
+ /**
32661
+ * Preview sprite sheet with tile dimensions and sample spacing.
32662
+ */
32663
+ storyboard?: MediaStoryboard;
32664
+ /**
32665
+ * Low-bitrate proxy renditions for smooth playback while editing; exports use the original source.
32666
+ */
32667
+ proxy?: {
32668
+ /**
32669
+ * Proxy audio rendition, present once it has been generated.
32670
+ */
32671
+ audio?: {
32672
+ /**
32673
+ * Delivery URL of the proxy audio rendition.
32674
+ */
32675
+ url: string;
32676
+ /**
32677
+ * Proxy audio bitrate in bits per second.
32678
+ */
32679
+ bitrate: number;
32680
+ };
32681
+ /**
32682
+ * Proxy video rendition, present once it has been generated.
32683
+ */
32684
+ video?: {
32685
+ /**
32686
+ * Delivery URL of the proxy video rendition.
32687
+ */
32688
+ url: string;
32689
+ /**
32690
+ * Proxy video bitrate in bits per second.
32691
+ */
32692
+ bitrate: number;
32693
+ /**
32694
+ * Proxy video frame width in pixels.
32695
+ */
32696
+ width: number;
32697
+ /**
32698
+ * Proxy video frame height in pixels.
32699
+ */
32700
+ height: number;
32701
+ };
32702
+ };
32703
+ };
32704
+ };
32705
+ /**
32706
+ * Understanding results in this page, ordered by creation time ascending.
32707
+ */
32708
+ export type MediaUnderstandingPageWritable = MediaPage & {
32709
+ /**
32710
+ * Understanding results in this page, ordered by creation time ascending.
32711
+ */
32712
+ data: Array<MediaUnderstandingWritable>;
32713
+ /**
32714
+ * Opaque token to pass as cursor to listUnderstandings; null means no further page.
32715
+ */
32716
+ next_cursor: string | null;
32717
+ };
32718
+ /**
32719
+ * Expression-search page with match counts, elapsed time and optional facet counts.
32720
+ */
32721
+ export type MediaExpressionSearchResultWritable = {
32722
+ /**
32723
+ * Number of matching assets across pages; a lower bound when total_count_exact is false.
32724
+ */
32725
+ total_count: number;
32726
+ /**
32727
+ * Elapsed search time in whole milliseconds.
32728
+ */
32729
+ time: number;
32730
+ /**
32731
+ * Continuation token for the next page; omitted when no further page is available.
32732
+ */
32733
+ next_cursor?: string;
32734
+ /**
32735
+ * Assets in this page, ordered by sort_by; tags and context follow with_field.
32736
+ */
32737
+ resources: Array<MediaSearchAssetWritable>;
32738
+ /**
32739
+ * Requested facet counts, keyed by facet name and then by field value.
32740
+ */
32741
+ aggregations?: {
32742
+ [key: string]: {
32743
+ [key: string]: number;
32744
+ };
32745
+ };
32746
+ /**
32747
+ * Whether total_count covers all matches; false indicates a bounded partial count.
32748
+ */
32749
+ total_count_exact?: boolean;
32750
+ /**
32751
+ * Whether the returned facet counts cover all matching assets.
32752
+ */
32753
+ aggregations_exact?: boolean;
32754
+ };
32755
+ /**
32756
+ * Ranked search hits and the embedding producer used for the query.
32757
+ */
32758
+ export type MediaSemanticSearchResultWritable = {
32759
+ /**
32760
+ * Ranked assets up to top_k; an empty array means no eligible matches were found.
32761
+ */
32762
+ hits: Array<MediaSemanticHitWritable>;
32763
+ /**
32764
+ * Embedding model identifier used for the query, or for the source asset embedding in an asset-based visual query.
32765
+ */
32766
+ embedding_producer: string;
32767
+ /**
32768
+ * Number of distinct candidate asset identifiers, or unresolved vector identifiers, excluded because their vectors or assets were missing, deleted or stale; not a count of all pending assets in the library.
32769
+ */
32770
+ not_ready_excluded: number;
32771
+ };
32772
+ /**
32773
+ * Configuration for the openrouter:files server tool
32774
+ */
32775
+ export type OpenaiFilesServerToolConfigWritable = {
32776
+ [key: string]: unknown;
32777
+ };
32778
+ export type AnthropicAnonymousWritable = {
32779
+ [key: string]: unknown;
32780
+ };
32781
+ export type AnthropicAnonymous140Writable = {
32782
+ [key: string]: unknown;
32783
+ };
32784
+ export type AnthropicAnonymous142Writable = {
32785
+ [key: string]: unknown;
32786
+ };
32787
+ export type AnthropicAnonymous181Writable = {
32788
+ [key: string]: unknown;
32789
+ };
32790
+ export type AnthropicAnonymous202Writable = {
32791
+ [key: string]: unknown;
32792
+ };
32793
+ export type AnthropicAnonymous204Writable = {
32794
+ [key: string]: unknown;
32795
+ };
32796
+ export type AnthropicAnonymous206Writable = {
32797
+ [key: string]: unknown;
32798
+ };
32799
+ /**
32800
+ * Arguments the model passed to the tool.
32801
+ */
32802
+ export type AgentManaged193Writable = {
32803
+ [key: string]: unknown;
32804
+ };
32805
+ /**
32806
+ * Free-form string key/value pairs.
32807
+ */
32808
+ export type AgentManaged143Writable = {
32809
+ [key: string]: string;
32810
+ };
32811
+ export type KnowledgeNativeSearchResultWritable = {
32812
+ /**
32813
+ * Resource ID.
32814
+ */
32815
+ file_id: string;
32816
+ /**
32817
+ * Original source filename for the matched file.
32818
+ */
32819
+ filename: string;
32820
+ /**
32821
+ * Relevance ranking score for this chunk, clamped to the range 0 to 1; not a probability.
32822
+ */
32823
+ score: number;
32824
+ /**
32825
+ * Current file attributes used for filtering; null when unset.
32826
+ */
32827
+ attributes: KnowledgeAttributes | null;
32828
+ /**
32829
+ * Matched chunk text and its source coordinates; one chunk per native result.
32830
+ */
32831
+ content: Array<{
32832
+ /**
32833
+ * text identifies an extracted text chunk.
32834
+ */
32835
+ type: 'text';
32836
+ /**
32837
+ * Extracted text of the matched chunk, which may overlap neighboring chunks.
32838
+ */
32839
+ text: string;
32840
+ /**
32841
+ * Resource ID.
32842
+ */
32843
+ chunk_id?: string;
32844
+ /**
32845
+ * One-based source page containing the start of this chunk; null when no page mapping is available.
32846
+ */
32847
+ page?: number | null;
32848
+ /**
32849
+ * Start and end offsets in UTF-16 code units.
32850
+ */
32851
+ span?: [
32852
+ number,
32853
+ number
32854
+ ];
32855
+ }>;
32856
+ /**
32857
+ * Native search explanation, included only when praxis.explain is requested.
32858
+ */
32859
+ praxis?: {
32860
+ explain: KnowledgeSearchExplain;
32861
+ };
32862
+ };
32863
+ /**
32864
+ * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
32865
+ */
32866
+ export type MediaMediaModelsWritable = {
32867
+ /**
32868
+ * Model call ID for visual descriptions; the model must support image input.
32869
+ */
32870
+ vision: string;
32871
+ /**
32872
+ * Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
32873
+ */
32874
+ embedding: string;
32875
+ /**
32876
+ * 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.
32877
+ */
32878
+ transcription: string;
32879
+ };
32880
+ /**
32881
+ * Cloudinary-compatible resource. processing is present when the asset was uploaded with auto_tagging; otherwise it is omitted. Native Asset responses always include processing.
32882
+ */
32883
+ export type MediaCloudinaryResourceWritable = {
32884
+ /**
32885
+ * Generated asset identifier: 32 lowercase hexadecimal characters, preserved across overwrites.
32886
+ */
32887
+ asset_id: MediaAssetId;
32888
+ /**
32889
+ * Delivery identifier unique within this library, used in asset URLs.
32890
+ */
32891
+ public_id: string;
32892
+ /**
32893
+ * Human-readable asset name, independent of its delivery identifier.
32894
+ */
32895
+ display_name: string;
32896
+ /**
32897
+ * Organizational folder path; the empty string denotes the root folder.
32898
+ */
32899
+ asset_folder: string;
32900
+ /**
32901
+ * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
32902
+ */
32903
+ resource_type: MediaResourceType;
32904
+ /**
32905
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
32906
+ */
32907
+ type: MediaDeliveryType;
32908
+ /**
32909
+ * Detected file format used as the delivery URL extension.
32910
+ */
32911
+ format: string;
32912
+ /**
32913
+ * Monotonically increasing asset version used in delivery URLs; based on upload time in Unix seconds and advanced on overwrite.
32914
+ */
32915
+ version: number;
32916
+ /**
32917
+ * Identifier for this asset version, regenerated on overwrite.
32918
+ */
32919
+ version_id: string;
32920
+ /**
32921
+ * Size of the original source content, in bytes.
32922
+ */
32923
+ bytes: number;
32924
+ /**
32925
+ * MD5 digest of the source bytes, as 32 lowercase hexadecimal characters.
32926
+ */
32927
+ etag: string;
32928
+ /**
32929
+ * Source image or video width in pixels, when known.
32930
+ */
32931
+ width?: number;
32932
+ /**
32933
+ * Source image or video height in pixels, when known.
32934
+ */
32935
+ height?: number;
32936
+ /**
32937
+ * Source audio or video duration in seconds, when known.
32938
+ */
32939
+ duration?: number;
32940
+ /**
32941
+ * Number of pages recorded for the asset; omitted when no page count is stored.
32942
+ */
32943
+ pages?: number;
32944
+ /**
32945
+ * True for audio-only media, which uses resource_type video.
32946
+ */
32947
+ is_audio?: boolean;
32948
+ /**
32949
+ * Detected audio track metadata, omitted when no audio track information is available.
32950
+ */
32951
+ audio?: {
32952
+ /**
32953
+ * Detected audio codec identifier, when known.
32954
+ */
32955
+ codec?: string;
32956
+ /**
32957
+ * Number of audio channels in the detected track, when known.
32958
+ */
32959
+ channels?: number;
32960
+ /**
32961
+ * Audio sampling frequency in hertz, when known.
32962
+ */
32963
+ frequency?: number;
32964
+ };
32965
+ /**
32966
+ * False when the video is known to contain no audio track; omitted when audio presence is unknown or an audio track exists.
32967
+ */
32968
+ has_audio?: false;
32969
+ /**
32970
+ * Original or overridden source filename with its final extension removed.
32971
+ */
32972
+ original_filename?: string;
32973
+ /**
32974
+ * Labels attached to the asset.
32975
+ */
32976
+ tags: Array<string>;
32977
+ /**
32978
+ * Custom string metadata; omitted when empty or excluded by the search projection.
32979
+ */
32980
+ context?: {
32981
+ /**
32982
+ * Caller-supplied metadata entries with string values.
32983
+ */
32984
+ custom: {
32985
+ [key: string]: string;
32986
+ };
32987
+ };
32988
+ /**
32989
+ * Time this asset identity was created, in UTC.
32990
+ */
32991
+ created_at: MediaIsoTimestamp;
32992
+ /**
32993
+ * URL for retrieving this version of the asset’s original content.
32994
+ */
32995
+ url: string;
32996
+ /**
32997
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
32998
+ */
32999
+ secure_url: string;
33000
+ /**
33001
+ * False because this response represents stored source content.
33002
+ */
33003
+ placeholder: false;
33004
+ /**
33005
+ * True when overwrite=false returns the asset already stored under the requested public_id.
33006
+ */
33007
+ existing?: boolean;
33008
+ /**
33009
+ * Processing progress, included when auto_tagging was requested.
33010
+ */
33011
+ processing?: MediaProcessingWritable;
33012
+ };
33013
+ export type MediaChunkCompleteWritable = MediaCloudinaryResourceWritable & {
33014
+ /**
33015
+ * True when the final chunk has completed the asset upload.
33016
+ */
33017
+ done: true;
33018
+ };
33019
+ /**
33020
+ * Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only 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.
33021
+ */
33022
+ export type MediaProcessingWritable = {
33023
+ state: MediaProcessingState;
33024
+ /**
33025
+ * Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
33026
+ */
33027
+ kinds: {
33028
+ [key: string]: MediaKindState;
33029
+ };
33030
+ /**
33031
+ * Time the processing state was last updated, in UTC.
33032
+ */
33033
+ updated_at: MediaIsoTimestamp;
33034
+ };
33035
+ /**
33036
+ * An immutable understanding result for an asset version, including superseded history when requested.
33037
+ */
33038
+ export type MediaUnderstandingWritable = {
33039
+ /**
33040
+ * Generated identifier of this understanding result.
33041
+ */
33042
+ id: MediaUnderstandingId;
33043
+ /**
33044
+ * Identifier of the asset from which this result was produced.
33045
+ */
33046
+ asset_id: MediaAssetId;
33047
+ /**
33048
+ * Asset version processed to produce this result; compare with the asset’s current version.
33049
+ */
33050
+ asset_version: number;
33051
+ /**
33052
+ * 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. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
33053
+ */
33054
+ kind: MediaUnderstandingKind;
33055
+ /**
33056
+ * Producer model identifier; a failure may use the configured model when no model response is available.
33057
+ */
33058
+ producer: string;
33059
+ /**
33060
+ * Version of the producer that generated this understanding result.
33061
+ */
33062
+ producer_version: string;
33063
+ /**
33064
+ * Source-media time range for a frame or transcript segment; null for results without a segment.
33065
+ */
33066
+ segment: MediaSegment | null;
33067
+ /**
33068
+ * Result status: ready contains completed output; failed records an error.
33069
+ */
33070
+ status: 'ready' | 'failed';
33071
+ /**
33072
+ * Text output, such as a caption, recognized text or transcript; null for structured-only or failed results.
33073
+ */
33074
+ content: string | null;
33075
+ /**
33076
+ * 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. Audio data contains segments (start_s and end_s in source-media seconds; type is speech, music, ambient or silence), has_music, genre, mood, bpm_estimate (nullable), bpm_is_estimate=true and analyzed_ranges (start_s, end_s in seconds). Genre and mood are nullable model labels. Audio understanding samples only the first 120 seconds in at most three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate, not an exact tempo; has_music=false only means no music was detected within analyzed_ranges.
33077
+ */
33078
+ data: unknown | null;
33079
+ /**
33080
+ * Confidence value recorded by the producer; null when no confidence value is recorded.
33081
+ */
33082
+ confidence: number | null;
33083
+ /**
33084
+ * Failure code and message, or null for a successful result.
33085
+ */
33086
+ error: {
33087
+ /**
33088
+ * Failure code identifying why understanding could not complete.
33089
+ */
33090
+ code: string;
33091
+ /**
33092
+ * Human-readable explanation of the understanding failure.
33093
+ */
33094
+ message: string;
33095
+ } | null;
33096
+ /**
33097
+ * Whether a newer result or asset version has replaced this result. Excluded from listing unless include_superseded is true.
33098
+ */
33099
+ superseded: boolean;
33100
+ /**
33101
+ * Time this immutable result was recorded, in UTC.
33102
+ */
33103
+ created_at: MediaIsoTimestamp;
33104
+ };
33105
+ /**
33106
+ * A native asset returned by expression search; tags and context are included only when requested in with_field.
33107
+ */
33108
+ export type MediaSearchAssetWritable = {
33109
+ /**
33110
+ * Generated asset identifier: 32 lowercase hexadecimal characters, preserved across overwrites.
33111
+ */
33112
+ asset_id: MediaAssetId;
33113
+ /**
33114
+ * Delivery identifier unique within this library, used in asset URLs.
33115
+ */
33116
+ public_id: string;
33117
+ /**
33118
+ * Human-readable asset name, independent of its delivery identifier.
33119
+ */
33120
+ display_name: string;
33121
+ /**
33122
+ * Organizational folder path; the empty string denotes the root folder.
33123
+ */
33124
+ asset_folder: string;
33125
+ /**
33126
+ * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
33127
+ */
33128
+ resource_type: MediaResourceType;
33129
+ /**
33130
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
33131
+ */
33132
+ type: MediaDeliveryType;
33133
+ /**
33134
+ * Detected file format used as the delivery URL extension.
33135
+ */
33136
+ format: string;
33137
+ /**
33138
+ * Monotonically increasing asset version used in delivery URLs; based on upload time in Unix seconds and advanced on overwrite.
33139
+ */
33140
+ version: number;
33141
+ /**
33142
+ * Identifier for this asset version, regenerated on overwrite.
33143
+ */
33144
+ version_id: string;
33145
+ /**
33146
+ * Size of the original source content, in bytes.
33147
+ */
33148
+ bytes: number;
33149
+ /**
33150
+ * MD5 digest of the source bytes, as 32 lowercase hexadecimal characters.
33151
+ */
33152
+ etag: string;
33153
+ /**
33154
+ * Source image or video width in pixels, when known.
33155
+ */
33156
+ width?: number;
33157
+ /**
33158
+ * Source image or video height in pixels, when known.
33159
+ */
33160
+ height?: number;
33161
+ /**
33162
+ * Source audio or video duration in seconds, when known.
33163
+ */
33164
+ duration?: number;
33165
+ /**
33166
+ * Number of pages recorded for the asset; omitted when no page count is stored.
33167
+ */
33168
+ pages?: number;
33169
+ /**
33170
+ * True for audio-only media, which uses resource_type video.
33171
+ */
33172
+ is_audio?: boolean;
33173
+ /**
33174
+ * Detected audio track metadata, omitted when no audio track information is available.
33175
+ */
33176
+ audio?: {
33177
+ /**
33178
+ * Detected audio codec identifier, when known.
33179
+ */
33180
+ codec?: string;
33181
+ /**
33182
+ * Number of audio channels in the detected track, when known.
33183
+ */
33184
+ channels?: number;
33185
+ /**
33186
+ * Audio sampling frequency in hertz, when known.
33187
+ */
33188
+ frequency?: number;
31798
33189
  };
31799
- }) & {
31800
33190
  /**
31801
- * Resume cursor of this entry; send it back as Last-Event-ID, or as cursor on the JSON form, to continue after it. Absent on the end event.
33191
+ * False when the video is known to contain no audio track; omitted when audio presence is unknown or an audio track exists.
31802
33192
  */
31803
- id?: string;
33193
+ has_audio?: false;
31804
33194
  /**
31805
- * SSE event name: log carries one log line in data; end is sent once when the run has reached a terminal status and closes the stream.
33195
+ * Original or overridden source filename with its final extension removed.
31806
33196
  */
31807
- event: 'log' | 'end';
33197
+ original_filename?: string;
31808
33198
  /**
31809
- * Decoded JSON of one log line; for the end event, an empty object.
33199
+ * Labels attached to the asset.
31810
33200
  */
31811
- data: AutomationLogLine | {
31812
- [key: string]: unknown;
31813
- };
31814
- };
31815
- /**
31816
- * Free-form string key/value pairs stored with the agent for your own bookkeeping.
31817
- */
31818
- export type AgentManaged37Writable = {
31819
- [key: string]: string;
31820
- };
31821
- /**
31822
- * Models to use for completion
31823
- */
31824
- export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
31825
- /**
31826
- * Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
31827
- */
31828
- export type AgentManaged173Writable = {
31829
- [key: string]: string;
31830
- };
31831
- export type AgentManaged183Writable = {
31832
- [key: string]: null | string;
31833
- };
31834
- /**
31835
- * Free-form string key/value pairs.
31836
- */
31837
- export type AgentManaged8Writable = {
31838
- [key: string]: string;
31839
- };
31840
- export type AgentManaged58Writable = {
31841
- [key: string]: null | string;
31842
- };
31843
- /**
31844
- * Free-form string key/value pairs.
31845
- */
31846
- export type AgentManaged168Writable = {
31847
- [key: string]: string;
31848
- };
31849
- /**
31850
- * Arguments the model passed to the tool.
31851
- */
31852
- export type AgentManaged197Writable = {
31853
- [key: string]: unknown;
31854
- };
31855
- /**
31856
- * Arguments the model passed to the tool.
31857
- */
31858
- export type AgentManaged206Writable = {
31859
- [key: string]: unknown;
31860
- };
31861
- /**
31862
- * Session metadata after the change.
31863
- */
31864
- export type AgentManaged246Writable = {
31865
- [key: string]: string;
31866
- };
31867
- /**
31868
- * Free-form string key/value pairs.
31869
- */
31870
- export type AgentManaged144Writable = {
31871
- [key: string]: null | string;
31872
- };
31873
- /**
31874
- * Free-form string key/value pairs.
31875
- */
31876
- export type AgentManaged137Writable = {
31877
- [key: string]: string;
31878
- };
31879
- /**
31880
- * Free-form string key/value pairs.
31881
- */
31882
- export type AgentManaged91Writable = {
31883
- [key: string]: string;
31884
- };
31885
- /**
31886
- * Free-form string key/value pairs.
31887
- */
31888
- export type AgentManaged78Writable = {
31889
- [key: string]: string;
31890
- };
31891
- export type AgentManaged112Writable = {
31892
- [key: string]: null | string;
31893
- };
31894
- /**
31895
- * Any JSON value: null, boolean, number, string, array or object.
31896
- */
31897
- export type AutomationJsonValueWritable = null | string | number | boolean | AutomationJsonObjectWritable | Array<AutomationJsonValueWritable>;
31898
- /**
31899
- * Any JSON object whose keys are strings and whose values are any JSON value.
31900
- */
31901
- export type AutomationJsonObjectWritable = {
31902
- [key: string]: AutomationJsonValueWritable;
31903
- };
31904
- /**
31905
- * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
31906
- */
31907
- export type MediaLibraryWritable = {
33201
+ tags?: Array<string>;
31908
33202
  /**
31909
- * Resolved model call IDs used for new uploads and reprocessing.
33203
+ * Custom string metadata; omitted when empty or excluded by the search projection.
31910
33204
  */
31911
- models: MediaMediaModels;
33205
+ context?: {
33206
+ /**
33207
+ * Caller-supplied metadata entries with string values.
33208
+ */
33209
+ custom: {
33210
+ [key: string]: string;
33211
+ };
33212
+ };
31912
33213
  /**
31913
- * Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
33214
+ * Time this asset identity was created, in UTC.
31914
33215
  */
31915
- id: MediaLibraryId;
33216
+ created_at: MediaIsoTimestamp;
31916
33217
  /**
31917
- * Display name of the library; duplicate names are allowed.
33218
+ * URL for retrieving this version of the asset’s original content.
31918
33219
  */
31919
- name: string;
33220
+ url: string;
31920
33221
  /**
31921
- * Caller-defined string labels used to organize and filter libraries.
33222
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
31922
33223
  */
31923
- labels: {
31924
- [key: string]: string;
31925
- };
33224
+ secure_url: string;
31926
33225
  /**
31927
- * Library lifecycle: provisioning initializes the library; active permits asset operations; deleting awaits purge and may be restored before purge_at; deleted has been purged; failed indicates initialization failure.
33226
+ * False because this response represents stored source content.
31928
33227
  */
31929
- status: MediaLibraryStatus;
33228
+ placeholder: false;
31930
33229
  /**
31931
- * Number of assets currently stored in the library.
33230
+ * True when overwrite is false and the public_id already exists; the existing resource is returned.
31932
33231
  */
31933
- asset_count: number;
33232
+ existing?: boolean;
31934
33233
  /**
31935
- * Total source-content size of the library’s assets, in bytes.
33234
+ * Progress of understanding and embedding tasks for the asset.
31936
33235
  */
31937
- bytes: number;
33236
+ processing: MediaProcessingWritable;
31938
33237
  /**
31939
- * Settings controlling understanding tasks for new uploads.
33238
+ * Identifier of the library containing this asset.
31940
33239
  */
31941
- understanding: MediaUnderstandingSettings;
33240
+ library_id: MediaLibraryId;
31942
33241
  /**
31943
- * Time the library was created, in UTC.
33242
+ * SHA-256 digest of the source bytes, as 64 lowercase hexadecimal characters.
31944
33243
  */
31945
- created_at: MediaIsoTimestamp;
33244
+ sha256: string;
31946
33245
  /**
31947
- * Time library settings, lifecycle or usage were last updated, in UTC.
33246
+ * Resource status; active identifies an asset that has not been deleted.
31948
33247
  */
31949
- updated_at: MediaIsoTimestamp;
33248
+ status: 'active';
31950
33249
  /**
31951
- * Time the library entered deleting, or null when active or restored.
33250
+ * Search-vector status: pending awaits vector generation or reprocessing; ready has searchable vectors; unavailable indicates disabled, unsupported or failed embedding. Existing vectors may still serve searches while reprocessing is pending.
31952
33251
  */
31953
- deleted_at: MediaIsoTimestamp | null;
33252
+ semantic: 'pending' | 'ready' | 'unavailable';
31954
33253
  /**
31955
- * Scheduled purge time while the library is deleting; null for an active or restored library.
33254
+ * Generated video previews, present once preview generation succeeds.
31956
33255
  */
31957
- purge_at: MediaIsoTimestamp | null;
33256
+ preview?: {
33257
+ /**
33258
+ * Delivery URL of the video’s first-frame poster.
33259
+ */
33260
+ poster_url?: string;
33261
+ /**
33262
+ * Preview sprite sheet with tile dimensions and sample spacing.
33263
+ */
33264
+ storyboard?: MediaStoryboard;
33265
+ /**
33266
+ * Low-bitrate proxy renditions for smooth playback while editing; exports use the original source.
33267
+ */
33268
+ proxy?: {
33269
+ /**
33270
+ * Proxy audio rendition, present once it has been generated.
33271
+ */
33272
+ audio?: {
33273
+ /**
33274
+ * Delivery URL of the proxy audio rendition.
33275
+ */
33276
+ url: string;
33277
+ /**
33278
+ * Proxy audio bitrate in bits per second.
33279
+ */
33280
+ bitrate: number;
33281
+ };
33282
+ /**
33283
+ * Proxy video rendition, present once it has been generated.
33284
+ */
33285
+ video?: {
33286
+ /**
33287
+ * Delivery URL of the proxy video rendition.
33288
+ */
33289
+ url: string;
33290
+ /**
33291
+ * Proxy video bitrate in bits per second.
33292
+ */
33293
+ bitrate: number;
33294
+ /**
33295
+ * Proxy video frame width in pixels.
33296
+ */
33297
+ width: number;
33298
+ /**
33299
+ * Proxy video frame height in pixels.
33300
+ */
33301
+ height: number;
33302
+ };
33303
+ };
33304
+ };
31958
33305
  };
31959
33306
  /**
31960
- * Libraries in this page, ordered by creation time descending.
33307
+ * A matching asset with its ranking score and supporting matches.
31961
33308
  */
31962
- export type MediaLibraryPageWritable = MediaPage & {
33309
+ export type MediaSemanticHitWritable = {
31963
33310
  /**
31964
- * Libraries in this page, ordered by creation time descending.
33311
+ * Asset matched by the query.
31965
33312
  */
31966
- data: Array<MediaLibraryWritable>;
33313
+ asset: MediaAssetWritable;
31967
33314
  /**
31968
- * Opaque token to pass as cursor to listLibraries; null means no further page.
33315
+ * Ranking score: cosine similarity for semantic or visual search; normalized rank-fusion score for hybrid search. Higher values rank first; hybrid scores are not probabilities or confidence.
31969
33316
  */
31970
- next_cursor: string | null;
31971
- };
31972
- /**
31973
- * Configuration for the openrouter:files server tool
31974
- */
31975
- export type OpenaiFilesServerToolConfigWritable = {
31976
- [key: string]: unknown;
31977
- };
31978
- export type AnthropicAnonymousWritable = {
31979
- [key: string]: unknown;
31980
- };
31981
- export type AnthropicAnonymous140Writable = {
31982
- [key: string]: unknown;
31983
- };
31984
- export type AnthropicAnonymous142Writable = {
31985
- [key: string]: unknown;
31986
- };
31987
- export type AnthropicAnonymous181Writable = {
31988
- [key: string]: unknown;
31989
- };
31990
- export type AnthropicAnonymous202Writable = {
31991
- [key: string]: unknown;
31992
- };
31993
- export type AnthropicAnonymous204Writable = {
31994
- [key: string]: unknown;
31995
- };
31996
- export type AnthropicAnonymous206Writable = {
31997
- [key: string]: unknown;
33317
+ score: number;
33318
+ /**
33319
+ * Cosine similarity for hybrid hits with a semantic match; null for keyword-only hybrid hits. Omitted outside hybrid mode.
33320
+ */
33321
+ semantic_score?: number | null;
33322
+ /**
33323
+ * Supporting content or metadata matches contributing to this asset’s hit.
33324
+ */
33325
+ matches: Array<MediaSemanticMatch>;
31998
33326
  };
31999
- /**
32000
- * Arguments the model passed to the tool.
32001
- */
32002
- export type AgentManaged193Writable = {
33327
+ export type AgentManaged34Writable = {
32003
33328
  [key: string]: unknown;
32004
33329
  };
32005
- /**
32006
- * Free-form string key/value pairs.
32007
- */
32008
- export type AgentManaged143Writable = {
32009
- [key: string]: string;
32010
- };
32011
- export type AgentManaged34Writable = {
33330
+ export type MediaTranscriptCorrectionWritable = {
32012
33331
  [key: string]: unknown;
32013
33332
  };
32014
33333
  /**
@@ -42613,7 +43932,7 @@ export type FileCreateSignedUploadResponse = FileCreateSignedUploadResponses[key
42613
43932
  export type FileCreateContentUrlData = {
42614
43933
  body?: {
42615
43934
  /**
42616
- * Download link lifetime in seconds, from 1 through 604800; omitted means 3600. This does not change the file's own expiry.
43935
+ * Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.
42617
43936
  */
42618
43937
  ttl_seconds?: number;
42619
43938
  };
@@ -44159,31 +45478,29 @@ export type CreateSystemoneResponse = CreateSystemoneResponses[keyof CreateSyste
44159
45478
  export type CreateAudioTranscriptionData = {
44160
45479
  body: {
44161
45480
  /**
44162
- * 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.
45481
+ * Model catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix.
44163
45482
  */
44164
45483
  model: string;
44165
45484
  /**
44166
- * Audio file to transcribe, uploaded as multipart/form-data. Router support (supported): Verified to take effect.
45485
+ * Audio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model.
44167
45486
  */
44168
45487
  file: Blob | File;
44169
45488
  /**
44170
- * 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.
45489
+ * Source language code when known; omit to let the model detect the language.
44171
45490
  */
44172
45491
  language?: string;
44173
45492
  /**
44174
- * 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.
45493
+ * Optional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model.
44175
45494
  */
44176
45495
  prompt?: string;
44177
45496
  /**
44178
- * 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.
45497
+ * 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.
44179
45498
  */
44180
- response_format?: 'json' | 'text' | 'verbose_json';
45499
+ response_format?: 'json' | 'text' | 'verbose_json' | 'diarized_json';
44181
45500
  /**
44182
- * 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.
45501
+ * 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.
44183
45502
  */
44184
- 'timestamp_granularities[]'?: [
44185
- 'segment'
44186
- ];
45503
+ 'timestamp_granularities[]'?: Array<'word' | 'segment'>;
44187
45504
  /**
44188
45505
  * Both whisper-large-v3-turbo and qwen3-asr-flash return 400.
44189
45506
  */
@@ -44195,11 +45512,11 @@ export type CreateAudioTranscriptionData = {
44195
45512
  };
44196
45513
  export type CreateAudioTranscriptionErrors = {
44197
45514
  /**
44198
- * Unsupported or unrepresentable parameter.
45515
+ * A field
44199
45516
  */
44200
45517
  400: unknown;
44201
45518
  /**
44202
- * No eligible model route.
45519
+ * No provider route supports this request; select an available model and its declared transcription features.
44203
45520
  */
44204
45521
  503: unknown;
44205
45522
  };
@@ -44209,58 +45526,79 @@ export type CreateAudioTranscriptionResponses = {
44209
45526
  */
44210
45527
  200: {
44211
45528
  /**
44212
- * The transcribed text.
45529
+ * Recognized speech text in the original language.
44213
45530
  */
44214
45531
  text: string;
44215
45532
  /**
44216
- * Task performed; always `transcribe`.
45533
+ * transcribe identifies speech-to-text transcription.
44217
45534
  */
44218
45535
  task?: 'transcribe';
44219
45536
  /**
44220
- * Language of the audio as detected or as requested.
45537
+ * Detected or requested source language code.
44221
45538
  */
44222
45539
  language?: string;
44223
45540
  /**
44224
- * Duration of the audio in seconds.
45541
+ * Audio duration in seconds when provided by the model.
44225
45542
  */
44226
45543
  duration?: number;
44227
45544
  /**
44228
- * Segments with timestamps, returned with `verbose_json` on models that support it.
45545
+ * Time-aligned speech segments when returned by the selected model and response format.
44229
45546
  */
44230
45547
  segments?: Array<{
44231
45548
  /**
44232
- * Zero-based index of the segment.
45549
+ * Segment identifier within this transcription response.
44233
45550
  */
44234
45551
  id: number;
44235
45552
  /**
44236
- * Start time of the segment in seconds.
45553
+ * Inclusive start time in seconds from the beginning of the audio.
44237
45554
  */
44238
45555
  start: number;
44239
45556
  /**
44240
- * End time of the segment in seconds.
45557
+ * Exclusive end time in seconds from the beginning of the audio.
44241
45558
  */
44242
45559
  end: number;
44243
45560
  /**
44244
- * The transcribed text.
45561
+ * Recognized speech text in the original language.
44245
45562
  */
44246
45563
  text: string;
44247
45564
  /**
44248
- * Sampling temperature used for the segment.
45565
+ * Speaker label in diarized_json when supported; labels distinguish voices and are not verified identities.
45566
+ */
45567
+ speaker?: string;
45568
+ /**
45569
+ * Decoding temperature reported by the transcription model.
44249
45570
  */
44250
45571
  temperature?: number;
44251
45572
  /**
44252
- * Average log probability of the tokens of the segment; low values mean low confidence.
45573
+ * Average segment token log probability when provided.
44253
45574
  */
44254
45575
  avg_logprob?: number;
44255
45576
  /**
44256
- * Gzip compression ratio of the segment text; high values indicate repetitive output.
45577
+ * Text compression ratio reported for this segment.
44257
45578
  */
44258
45579
  compression_ratio?: number;
44259
45580
  /**
44260
- * Probability that the segment contains no speech.
45581
+ * Probability of no speech reported for this segment.
44261
45582
  */
44262
45583
  no_speech_prob?: number;
44263
45584
  }>;
45585
+ /**
45586
+ * Per-word source-audio timestamps when word granularity is requested and supported.
45587
+ */
45588
+ words?: Array<{
45589
+ /**
45590
+ * Recognized word text in its original language.
45591
+ */
45592
+ word: string;
45593
+ /**
45594
+ * Inclusive word start in seconds from the beginning of the audio.
45595
+ */
45596
+ start: number;
45597
+ /**
45598
+ * Exclusive word end in seconds from the beginning of the audio.
45599
+ */
45600
+ end: number;
45601
+ }>;
44264
45602
  };
44265
45603
  };
44266
45604
  export type CreateAudioTranscriptionResponse = CreateAudioTranscriptionResponses[keyof CreateAudioTranscriptionResponses];
@@ -47107,6 +48445,76 @@ export type CountResponseInputTokensResponses = {
47107
48445
  };
47108
48446
  };
47109
48447
  export type CountResponseInputTokensResponse = CountResponseInputTokensResponses[keyof CountResponseInputTokensResponses];
48448
+ export type ListOrganizationMembersData = {
48449
+ body?: never;
48450
+ path?: never;
48451
+ query?: {
48452
+ /**
48453
+ * Maximum members per page, from 1 to 100; defaults to 20.
48454
+ */
48455
+ limit?: number;
48456
+ /**
48457
+ * Opaque next_page cursor returned by the previous response; omit for the first page.
48458
+ */
48459
+ page?: string;
48460
+ };
48461
+ url: '/organization/v1/members';
48462
+ };
48463
+ export type ListOrganizationMembersErrors = {
48464
+ /**
48465
+ * Invalid limit or page cursor; use limit 1 to 100 and copy next_page from the previous response.
48466
+ */
48467
+ 400: unknown;
48468
+ /**
48469
+ * Missing or invalid credentials; provide a valid organization API key or runtime token.
48470
+ */
48471
+ 401: unknown;
48472
+ /**
48473
+ * Organization identity was refused; use a credential belonging to the organization.
48474
+ */
48475
+ 403: unknown;
48476
+ };
48477
+ export type ListOrganizationMembersResponses = {
48478
+ /**
48479
+ * Members of the authenticated organization, earliest join first.
48480
+ */
48481
+ 200: {
48482
+ /**
48483
+ * Organization members in ascending join order.
48484
+ */
48485
+ data: Array<{
48486
+ /**
48487
+ * User identifier (usr_...). Use this id to assign an approver to an approval task.
48488
+ */
48489
+ id: string;
48490
+ /**
48491
+ * Display name of the member; null when no name is set.
48492
+ */
48493
+ name: string | null;
48494
+ /**
48495
+ * Email address of a member of your organization.
48496
+ */
48497
+ email: string;
48498
+ /**
48499
+ * Organization role: owner owns the organization; admin manages it; member is a regular participant.
48500
+ */
48501
+ role: 'owner' | 'admin' | 'member';
48502
+ /**
48503
+ * UTC ISO 8601 instant when this user joined the organization.
48504
+ */
48505
+ joined_at: string;
48506
+ }>;
48507
+ /**
48508
+ * Whether another page of members is available.
48509
+ */
48510
+ has_more: boolean;
48511
+ /**
48512
+ * Cursor to pass as page; null when no more members remain.
48513
+ */
48514
+ next_page: string | null;
48515
+ };
48516
+ };
48517
+ export type ListOrganizationMembersResponse = ListOrganizationMembersResponses[keyof ListOrganizationMembersResponses];
47110
48518
  export type ListOrganizationFeedbackData = {
47111
48519
  body?: never;
47112
48520
  path?: never;
@@ -68063,7 +69471,7 @@ export type CutListFramesData = {
68063
69471
  */
68064
69472
  at: string;
68065
69473
  /**
68066
- * Positive image size multiplier; 0.5 renders at half the project dimensions.
69474
+ * 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.
68067
69475
  */
68068
69476
  scale?: number;
68069
69477
  /**
@@ -68405,7 +69813,7 @@ export type CutListExportsResponses = {
68405
69813
  export type CutListExportsResponse = CutListExportsResponses[keyof CutListExportsResponses];
68406
69814
  export type CutCreateExportData = {
68407
69815
  /**
68408
- * Start an export from a project revision into a bound library.
69816
+ * 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.
68409
69817
  */
68410
69818
  body: CutExportInput;
68411
69819
  path: {
@@ -70217,7 +71625,7 @@ export type KnowledgeListFilesResponses = {
70217
71625
  };
70218
71626
  export type KnowledgeListFilesResponse = KnowledgeListFilesResponses[keyof KnowledgeListFilesResponses];
70219
71627
  export type KnowledgeAttachFileData = {
70220
- body: KnowledgeAttachFile;
71628
+ body: KnowledgeNativeAttachFile;
70221
71629
  path: {
70222
71630
  /**
70223
71631
  * Resource ID.
@@ -70518,7 +71926,7 @@ export type KnowledgeRetrieveFileContentResponses = {
70518
71926
  };
70519
71927
  export type KnowledgeRetrieveFileContentResponse = KnowledgeRetrieveFileContentResponses[keyof KnowledgeRetrieveFileContentResponses];
70520
71928
  export type KnowledgeCreateFileBatchData = {
70521
- body: KnowledgeCreateBatch;
71929
+ body: KnowledgeNativeCreateBatch;
70522
71930
  path: {
70523
71931
  /**
70524
71932
  * Resource ID.
@@ -71322,6 +72730,80 @@ export type MediaCreateLibraryResponses = {
71322
72730
  200: MediaLibrary;
71323
72731
  };
71324
72732
  export type MediaCreateLibraryResponse = MediaCreateLibraryResponses[keyof MediaCreateLibraryResponses];
72733
+ export type MediaCreateFrameUrlsData = {
72734
+ body: {
72735
+ /**
72736
+ * 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.
72737
+ */
72738
+ at_micros: Array<number>;
72739
+ /**
72740
+ * 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.
72741
+ */
72742
+ width?: 160 | 320 | 640;
72743
+ };
72744
+ path: {
72745
+ /**
72746
+ * Library identifier returned by library creation or listing; must be accessible to the current credential.
72747
+ */
72748
+ library_id: string;
72749
+ /**
72750
+ * Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps.
72751
+ */
72752
+ asset_id: string;
72753
+ };
72754
+ query?: never;
72755
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/frames';
72756
+ };
72757
+ export type MediaCreateFrameUrlsErrors = {
72758
+ /**
72759
+ * INVALID_PARAMS: supply 1–20 nonnegative integer timestamps below video duration and width 160, 320 or 640; images and audio cannot produce video frames.
72760
+ */
72761
+ 400: MediaMediaError;
72762
+ /**
72763
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
72764
+ */
72765
+ 403: MediaMediaError;
72766
+ /**
72767
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
72768
+ */
72769
+ 404: MediaMediaError;
72770
+ /**
72771
+ * Request failed; see the error code reference.
72772
+ */
72773
+ 409: MediaMediaError;
72774
+ /**
72775
+ * The file exceeds an input limit; provide a smaller source file.
72776
+ */
72777
+ 413: MediaMediaError;
72778
+ /**
72779
+ * This media format is unsupported; provide a supported format.
72780
+ */
72781
+ 415: MediaMediaError;
72782
+ /**
72783
+ * A rate limit was reached; wait before retrying.
72784
+ */
72785
+ 429: MediaMediaError;
72786
+ /**
72787
+ * The requested operation is unsupported; choose a supported method.
72788
+ */
72789
+ 501: MediaMediaError;
72790
+ /**
72791
+ * Request failed; see the error code reference.
72792
+ */
72793
+ 502: MediaMediaError;
72794
+ /**
72795
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
72796
+ */
72797
+ 503: MediaMediaError;
72798
+ };
72799
+ export type MediaCreateFrameUrlsError = MediaCreateFrameUrlsErrors[keyof MediaCreateFrameUrlsErrors];
72800
+ export type MediaCreateFrameUrlsResponses = {
72801
+ /**
72802
+ * Successful response.
72803
+ */
72804
+ 200: MediaFrameUrls;
72805
+ };
72806
+ export type MediaCreateFrameUrlsResponse = MediaCreateFrameUrlsResponses[keyof MediaCreateFrameUrlsResponses];
71325
72807
  export type MediaDeleteLibraryData = {
71326
72808
  body?: never;
71327
72809
  path: {
@@ -71449,6 +72931,10 @@ export type MediaUpdateLibraryData = {
71449
72931
  * Partial update of an active media library.
71450
72932
  */
71451
72933
  body: {
72934
+ /**
72935
+ * 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.
72936
+ */
72937
+ hotwords?: Array<string>;
71452
72938
  /**
71453
72939
  * 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.
71454
72940
  */
@@ -71762,7 +73248,7 @@ export type MediaUploadAssetData = {
71762
73248
  */
71763
73249
  display_name?: string;
71764
73250
  /**
71765
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73251
+ * 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.
71766
73252
  */
71767
73253
  asset_folder?: string;
71768
73254
  /**
@@ -71804,7 +73290,7 @@ export type MediaUploadAssetData = {
71804
73290
  */
71805
73291
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
71806
73292
  /**
71807
- * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. Defaults to upload.
73293
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. New assets default to authenticated. Omitting type on overwrite preserves the current type. Unlike Cloudinary, public delivery requires explicit type=upload.
71808
73294
  */
71809
73295
  type?: MediaDeliveryType;
71810
73296
  };
@@ -71883,7 +73369,7 @@ export type MediaImportAssetData = {
71883
73369
  */
71884
73370
  body: {
71885
73371
  /**
71886
- * File ID to copy into this library instead of file bytes. This independent copy defaults to public delivery; set type=authenticated for private delivery. Deleting the source File does not delete this asset.
73372
+ * File ID to copy into this library instead of file bytes. This independent copy defaults to organization-private delivery (type=authenticated); explicitly set type=upload for public delivery. Deleting the source File does not delete this asset.
71887
73373
  */
71888
73374
  file_id: string;
71889
73375
  /**
@@ -71899,7 +73385,7 @@ export type MediaImportAssetData = {
71899
73385
  */
71900
73386
  display_name?: string;
71901
73387
  /**
71902
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73388
+ * 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.
71903
73389
  */
71904
73390
  asset_folder?: string;
71905
73391
  /**
@@ -71941,7 +73427,7 @@ export type MediaImportAssetData = {
71941
73427
  */
71942
73428
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
71943
73429
  /**
71944
- * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. Defaults to upload.
73430
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. New assets default to authenticated. Omitting type on overwrite preserves the current type. Unlike Cloudinary, public delivery requires explicit type=upload.
71945
73431
  */
71946
73432
  type?: MediaDeliveryType;
71947
73433
  };
@@ -72144,7 +73630,7 @@ export type MediaUpdateAssetData = {
72144
73630
  */
72145
73631
  display_name?: string;
72146
73632
  /**
72147
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73633
+ * 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.
72148
73634
  */
72149
73635
  asset_folder?: string;
72150
73636
  /**
@@ -72227,7 +73713,7 @@ export type MediaReprocessAssetData = {
72227
73713
  */
72228
73714
  body: {
72229
73715
  /**
72230
- * 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.
73716
+ * 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.
72231
73717
  */
72232
73718
  kinds?: Array<MediaProcessingKind>;
72233
73719
  };
@@ -72312,9 +73798,9 @@ export type MediaListUnderstandingsData = {
72312
73798
  */
72313
73799
  include_superseded?: boolean;
72314
73800
  /**
72315
- * 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.
73801
+ * 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, audio is sampled audio understanding, and embedding reports a failed embedding step.
72316
73802
  */
72317
- kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
73803
+ kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
72318
73804
  /**
72319
73805
  * Cursor from the previous next_cursor.
72320
73806
  */
@@ -72382,7 +73868,7 @@ export type MediaExpressionSearchData = {
72382
73868
  */
72383
73869
  body: {
72384
73870
  /**
72385
- * 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.
73871
+ * 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. has_music:true AND audio_genre:jazz AND audio_mood:calm selects current-version audio profiles with music and matching model labels; has_music:false applies only to sampled ranges, not the entire source. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial.
72386
73872
  */
72387
73873
  expression?: string;
72388
73874
  /**
@@ -72791,6 +74277,10 @@ export type MediaCreateBatchData = {
72791
74277
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
72792
74278
  */
72793
74279
  selector: MediaBatchSelector;
74280
+ /**
74281
+ * Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
74282
+ */
74283
+ reason?: string;
72794
74284
  };
72795
74285
  path: {
72796
74286
  /**
@@ -72925,6 +74415,10 @@ export type MediaBatchAssetsData = {
72925
74415
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
72926
74416
  */
72927
74417
  selector: MediaBatchSelector;
74418
+ /**
74419
+ * Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
74420
+ */
74421
+ reason?: string;
72928
74422
  };
72929
74423
  path: {
72930
74424
  /**
@@ -73138,7 +74632,7 @@ export type MediaCreateDeliveryTokenData = {
73138
74632
  */
73139
74633
  acl?: string;
73140
74634
  /**
73141
- * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 3600.
74635
+ * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900.
73142
74636
  */
73143
74637
  expires_in?: number;
73144
74638
  };
@@ -73201,6 +74695,145 @@ export type MediaCreateDeliveryTokenResponses = {
73201
74695
  200: MediaDeliveryToken;
73202
74696
  };
73203
74697
  export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
74698
+ export type MediaUnderstandingFailureSummaryData = {
74699
+ body?: never;
74700
+ path: {
74701
+ /**
74702
+ * Library ID returned by creation.
74703
+ */
74704
+ library_id: string;
74705
+ };
74706
+ query?: never;
74707
+ url: '/media/v1/libraries/{library_id}/understandings/failure_summary';
74708
+ };
74709
+ export type MediaUnderstandingFailureSummaryErrors = {
74710
+ /**
74711
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
74712
+ */
74713
+ 400: MediaMediaError;
74714
+ /**
74715
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
74716
+ */
74717
+ 403: MediaMediaError;
74718
+ /**
74719
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
74720
+ */
74721
+ 404: MediaMediaError;
74722
+ /**
74723
+ * Request failed; see the error code reference.
74724
+ */
74725
+ 409: MediaMediaError;
74726
+ /**
74727
+ * The file exceeds an input limit; provide a smaller source file.
74728
+ */
74729
+ 413: MediaMediaError;
74730
+ /**
74731
+ * This media format is unsupported; provide a supported format.
74732
+ */
74733
+ 415: MediaMediaError;
74734
+ /**
74735
+ * A rate limit was reached; wait before retrying.
74736
+ */
74737
+ 429: MediaMediaError;
74738
+ /**
74739
+ * The requested operation is unsupported; choose a supported method.
74740
+ */
74741
+ 501: MediaMediaError;
74742
+ /**
74743
+ * Request failed; see the error code reference.
74744
+ */
74745
+ 502: MediaMediaError;
74746
+ /**
74747
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
74748
+ */
74749
+ 503: MediaMediaError;
74750
+ };
74751
+ export type MediaUnderstandingFailureSummaryError = MediaUnderstandingFailureSummaryErrors[keyof MediaUnderstandingFailureSummaryErrors];
74752
+ export type MediaUnderstandingFailureSummaryResponses = {
74753
+ /**
74754
+ * Successful response.
74755
+ */
74756
+ 200: MediaFailureSummary;
74757
+ };
74758
+ export type MediaUnderstandingFailureSummaryResponse = MediaUnderstandingFailureSummaryResponses[keyof MediaUnderstandingFailureSummaryResponses];
74759
+ export type MediaListUnderstandingsByLibraryData = {
74760
+ body?: never;
74761
+ path: {
74762
+ /**
74763
+ * Library ID returned by creation.
74764
+ */
74765
+ library_id: string;
74766
+ };
74767
+ query?: {
74768
+ /**
74769
+ * Folder path including all descendants; omitted or empty selects the entire library.
74770
+ */
74771
+ folder?: string;
74772
+ /**
74773
+ * Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.
74774
+ */
74775
+ kinds?: string;
74776
+ /**
74777
+ * Cursor from the previous next_cursor.
74778
+ */
74779
+ cursor?: string;
74780
+ /**
74781
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
74782
+ */
74783
+ limit?: number;
74784
+ };
74785
+ url: '/media/v1/libraries/{library_id}/understandings';
74786
+ };
74787
+ export type MediaListUnderstandingsByLibraryErrors = {
74788
+ /**
74789
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
74790
+ */
74791
+ 400: MediaMediaError;
74792
+ /**
74793
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
74794
+ */
74795
+ 403: MediaMediaError;
74796
+ /**
74797
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
74798
+ */
74799
+ 404: MediaMediaError;
74800
+ /**
74801
+ * Request failed; see the error code reference.
74802
+ */
74803
+ 409: MediaMediaError;
74804
+ /**
74805
+ * The file exceeds an input limit; provide a smaller source file.
74806
+ */
74807
+ 413: MediaMediaError;
74808
+ /**
74809
+ * This media format is unsupported; provide a supported format.
74810
+ */
74811
+ 415: MediaMediaError;
74812
+ /**
74813
+ * A rate limit was reached; wait before retrying.
74814
+ */
74815
+ 429: MediaMediaError;
74816
+ /**
74817
+ * The requested operation is unsupported; choose a supported method.
74818
+ */
74819
+ 501: MediaMediaError;
74820
+ /**
74821
+ * Request failed; see the error code reference.
74822
+ */
74823
+ 502: MediaMediaError;
74824
+ /**
74825
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
74826
+ */
74827
+ 503: MediaMediaError;
74828
+ };
74829
+ export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
74830
+ export type MediaListUnderstandingsByLibraryResponses = {
74831
+ /**
74832
+ * Successful response.
74833
+ */
74834
+ 200: MediaUnderstandingPage;
74835
+ };
74836
+ export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
73204
74837
  export type GetSandboxV1SandboxesData = {
73205
74838
  body?: never;
73206
74839
  path?: never;