@deepraxis/sdk 0.1.1-dev.e5614a0 → 0.1.1-dev.e5db771

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
  */
@@ -12774,6 +12774,10 @@ export type CutFramesResult = {
12774
12774
  images: {
12775
12775
  [key: string]: CutRenderRef;
12776
12776
  };
12777
+ /**
12778
+ * Frame delivery warnings; empty when every requested source frame was available.
12779
+ */
12780
+ warnings: Array<CutFrameWarning>;
12777
12781
  };
12778
12782
  /**
12779
12783
  * Analysis status and available ranges for each source asset and kind.
@@ -12789,13 +12793,17 @@ export type CutAnalysisResult = {
12789
12793
  */
12790
12794
  version: number;
12791
12795
  /**
12792
- * silence identifies quiet spans; filler identifies filler-word spans; scenes identifies scene ranges.
12796
+ * silence identifies transcript-based speech pauses, not music or loudness; filler identifies filler-word spans; scenes identifies scene ranges.
12793
12797
  */
12794
12798
  kind: 'silence' | 'filler' | 'scenes';
12795
12799
  /**
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.
12800
+ * 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
12801
  */
12798
12802
  status: 'pending' | 'ready' | 'unsupported' | 'failed';
12803
+ /**
12804
+ * 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.
12805
+ */
12806
+ reason?: 'no_speech' | 'no_transcript';
12799
12807
  /**
12800
12808
  * Detected source ranges in seconds, available when status is ready.
12801
12809
  */
@@ -12988,6 +12996,14 @@ export type CutExport = {
12988
12996
  * Destination media library identifier.
12989
12997
  */
12990
12998
  library_id: string;
12999
+ /**
13000
+ * Frozen destination path within the library, when supplied.
13001
+ */
13002
+ folder?: string;
13003
+ /**
13004
+ * Frozen sanitized display name, when supplied.
13005
+ */
13006
+ name?: string;
12991
13007
  };
12992
13008
  /**
12993
13009
  * Rendering progress; partial progress is not successful completion.
@@ -13027,9 +13043,22 @@ export type CutExport = {
13027
13043
  */
13028
13044
  chunk?: number;
13029
13045
  /**
13030
- * Optional lower-level explanation of the render failure.
13046
+ * Safe structured downstream failure information; older jobs may contain a string.
13031
13047
  */
13032
- cause?: string;
13048
+ cause?: string | {
13049
+ /**
13050
+ * Export stage that failed.
13051
+ */
13052
+ stage: string;
13053
+ /**
13054
+ * Downstream service error code, when available.
13055
+ */
13056
+ code?: string;
13057
+ };
13058
+ /**
13059
+ * Downstream request identifier, when supplied by the service error.
13060
+ */
13061
+ request_id?: string;
13033
13062
  };
13034
13063
  /**
13035
13064
  * ISO 8601 timestamp when this export was accepted.
@@ -13048,6 +13077,14 @@ export type CutExport = {
13048
13077
  * Start an export from a project revision into a bound library.
13049
13078
  */
13050
13079
  export type CutExportInput = {
13080
+ /**
13081
+ * Optional destination path within the bound media library; omitted uses its default folder.
13082
+ */
13083
+ folder?: string;
13084
+ /**
13085
+ * Nonempty display name, frozen with the export. Path separators and control characters become hyphens; limited to 200 characters. Omitted uses project name and timestamp.
13086
+ */
13087
+ name?: string;
13051
13088
  /**
13052
13089
  * Optional render settings; omitted fields use the project export defaults.
13053
13090
  */
@@ -13583,7 +13620,7 @@ export type KnowledgeNativeCreateVectorStore = {
13583
13620
  * Existing File IDs to attach; the store allows up to 10,000 files.
13584
13621
  */
13585
13622
  file_ids?: Array<string>;
13586
- chunking_strategy?: KnowledgeChunkingInput;
13623
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13587
13624
  /**
13588
13625
  * Accepted but not saved or returned; its type is not validated.
13589
13626
  */
@@ -13747,7 +13784,7 @@ export type KnowledgeNativeVectorStoreFile = {
13747
13784
  * Unix timestamp in seconds.
13748
13785
  */
13749
13786
  created_at: number;
13750
- chunking_strategy: KnowledgeChunking;
13787
+ chunking_strategy: KnowledgeNativeChunking;
13751
13788
  /**
13752
13789
  * File attributes used for search filtering; null means no attributes are set.
13753
13790
  */
@@ -13757,7 +13794,7 @@ export type KnowledgeNativeVectorStoreFile = {
13757
13794
  */
13758
13795
  praxis?: {
13759
13796
  /**
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.
13797
+ * 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
13798
  */
13762
13799
  failure_reason?: 'file_too_large' | 'encrypted' | 'empty' | 'unsupported_type' | 'token_limit' | 'recognition_unavailable' | 'deadline_exceeded' | 'internal';
13763
13800
  /**
@@ -13794,7 +13831,7 @@ export type KnowledgeNativeVectorStoreFile = {
13794
13831
  chunk_count: number;
13795
13832
  };
13796
13833
  };
13797
- export type KnowledgeAttachFile = {
13834
+ export type KnowledgeNativeAttachFile = {
13798
13835
  /**
13799
13836
  * Existing source File ID returned by file upload; the file must be visible to the caller.
13800
13837
  */
@@ -13803,7 +13840,7 @@ export type KnowledgeAttachFile = {
13803
13840
  * Search-filter attributes for a newly attached file; omission or null leaves attributes unset. Reattaching an existing file does not change them.
13804
13841
  */
13805
13842
  attributes?: KnowledgeAttributes | null;
13806
- chunking_strategy?: KnowledgeChunkingInput;
13843
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13807
13844
  };
13808
13845
  export type KnowledgeNativeVectorStoreFileList = {
13809
13846
  /**
@@ -13900,7 +13937,7 @@ export type KnowledgeFileBatch = {
13900
13937
  /**
13901
13938
  * Provide exactly one of file_ids or files. Already attached files are reused without changing their attributes or chunking.
13902
13939
  */
13903
- export type KnowledgeCreateBatch = {
13940
+ export type KnowledgeNativeCreateBatch = {
13904
13941
  /**
13905
13942
  * Existing File IDs to attach with shared attributes and chunking settings. Supply file_ids or files, never both.
13906
13943
  */
@@ -13909,7 +13946,7 @@ export type KnowledgeCreateBatch = {
13909
13946
  * Search-filter attributes applied to each newly attached file; omission or null leaves them unset.
13910
13947
  */
13911
13948
  attributes?: KnowledgeAttributes | null;
13912
- chunking_strategy?: KnowledgeChunkingInput;
13949
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13913
13950
  } | {
13914
13951
  /**
13915
13952
  * Files to attach with individual attributes and chunking settings; top-level attributes and chunking_strategy are ignored.
@@ -13920,7 +13957,7 @@ export type KnowledgeCreateBatch = {
13920
13957
  */
13921
13958
  file_id: string;
13922
13959
  attributes?: KnowledgeAttributes;
13923
- chunking_strategy?: KnowledgeChunkingInput;
13960
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13924
13961
  }>;
13925
13962
  /**
13926
13963
  * Ignored when files is supplied.
@@ -14039,6 +14076,14 @@ export type KnowledgeEventList = {
14039
14076
  * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
14040
14077
  */
14041
14078
  export type MediaLibrary = {
14079
+ /**
14080
+ * 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.
14081
+ */
14082
+ readonly hotwords?: Array<string>;
14083
+ /**
14084
+ * Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
14085
+ */
14086
+ readonly progress?: MediaUnderstandingProgress;
14042
14087
  /**
14043
14088
  * Search capabilities of this library’s embedding model.
14044
14089
  */
@@ -14101,7 +14146,7 @@ export type MediaLibrary = {
14101
14146
  };
14102
14147
  export type MediaMediaError = {
14103
14148
  error: {
14104
- code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'BINDING_READ_ONLY';
14149
+ code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'CANDIDATE_EXPIRED' | 'BINDING_READ_ONLY';
14105
14150
  message: string;
14106
14151
  details: string | null;
14107
14152
  };
@@ -14119,9 +14164,21 @@ export type MediaMediaModelsInput = {
14119
14164
  */
14120
14165
  embedding?: string | null;
14121
14166
  /**
14122
- * Model call ID for speech transcription. Null restores the default for this role.
14167
+ * Model call ID for speech transcription. Null restores the default for this role. Defaults to fun-asr with whisper-large-v3-turbo fallback.
14123
14168
  */
14124
14169
  transcription?: string | null;
14170
+ /**
14171
+ * 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.
14172
+ */
14173
+ correction?: string | null;
14174
+ /**
14175
+ * 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.
14176
+ */
14177
+ reference_transcription?: string | null;
14178
+ /**
14179
+ * 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.
14180
+ */
14181
+ audio?: string | null;
14125
14182
  } | null;
14126
14183
  /**
14127
14184
  * Libraries in this page, ordered by creation time descending.
@@ -14136,6 +14193,25 @@ export type MediaLibraryPage = MediaPage & {
14136
14193
  */
14137
14194
  next_cursor: string | null;
14138
14195
  };
14196
+ export type MediaFrameUrls = {
14197
+ /**
14198
+ * Frame links in the same order as the requested timestamps, including duplicates.
14199
+ */
14200
+ frames: Array<{
14201
+ /**
14202
+ * Requested time in microseconds from the start of the video.
14203
+ */
14204
+ at_micros: number;
14205
+ /**
14206
+ * JPEG delivery URL. Fetch it to extract the frame; authenticated links carry a bearer token and must not be shared beyond intended readers.
14207
+ */
14208
+ url: string;
14209
+ /**
14210
+ * UTC expiry for authenticated frame links, 300 seconds after issuance. Upload asset links remain public and permanent; this timestamp does not expire those URLs.
14211
+ */
14212
+ expires_at: string;
14213
+ }>;
14214
+ };
14139
14215
  /**
14140
14216
  * Receipt confirming permanent removal of a previously deleted library.
14141
14217
  */
@@ -14295,7 +14371,7 @@ export type MediaAsset = {
14295
14371
  */
14296
14372
  url: string;
14297
14373
  /**
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.
14374
+ * 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
14375
  */
14300
14376
  secure_url: string;
14301
14377
  /**
@@ -14378,6 +14454,27 @@ export type MediaAsset = {
14378
14454
  };
14379
14455
  };
14380
14456
  };
14457
+ /**
14458
+ * Source details for the video-generation job that created this asset.
14459
+ */
14460
+ generation?: {
14461
+ /**
14462
+ * Job id that generated this asset.
14463
+ */
14464
+ job_id: MediaJobId;
14465
+ /**
14466
+ * Generation intent used to create the asset; v1 supports video.generate.
14467
+ */
14468
+ intent: string;
14469
+ /**
14470
+ * Text prompt submitted for the generation job.
14471
+ */
14472
+ prompt: string;
14473
+ /**
14474
+ * Router video-generation model that produced the asset.
14475
+ */
14476
+ model: string;
14477
+ };
14381
14478
  };
14382
14479
  /**
14383
14480
  * Receipt confirming that the asset was deleted.
@@ -14404,6 +14501,10 @@ export type MediaUnderstandingPage = MediaPage & {
14404
14501
  * Opaque token to pass as cursor to listUnderstandings; null means no further page.
14405
14502
  */
14406
14503
  next_cursor: string | null;
14504
+ /**
14505
+ * 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.
14506
+ */
14507
+ readonly shots?: Array<MediaUnderstoodShot>;
14407
14508
  };
14408
14509
  /**
14409
14510
  * Expression-search page with match counts, elapsed time and optional facet counts.
@@ -14487,7 +14588,19 @@ export type MediaFolders = {
14487
14588
  * Number of assets in this folder and all descendant folders.
14488
14589
  */
14489
14590
  asset_count: number;
14591
+ /**
14592
+ * Active ready and partial assets in this folder and every descendant folder.
14593
+ */
14594
+ understood_count: number;
14595
+ /**
14596
+ * Active failed assets in this folder and every descendant folder.
14597
+ */
14598
+ failed_count: number;
14490
14599
  }>;
14600
+ /**
14601
+ * False while historical folder and failure counts are being populated; refresh after backfill completes.
14602
+ */
14603
+ counts_complete: boolean;
14491
14604
  };
14492
14605
  /**
14493
14606
  * Asynchronous batch job with successful and failed item counts.
@@ -14502,19 +14615,19 @@ export type MediaJob = {
14502
14615
  */
14503
14616
  library_id: MediaLibraryId;
14504
14617
  /**
14505
- * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
14618
+ * 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
14619
  */
14507
- action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete';
14620
+ action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'generate';
14508
14621
  /**
14509
14622
  * 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
14623
  */
14511
- status: 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed';
14624
+ status: MediaJobStatus;
14512
14625
  /**
14513
14626
  * Number of distinct assets selected when the job was created.
14514
14627
  */
14515
14628
  total: number;
14516
14629
  /**
14517
- * Number of items successfully processed; failed items are counted separately.
14630
+ * Number of items successfully processed; failed items are counted separately. For reprocess, this counts accepted launches; inspect asset progress for model completion.
14518
14631
  */
14519
14632
  done: number;
14520
14633
  /**
@@ -14528,12 +14641,66 @@ export type MediaJob = {
14528
14641
  /**
14529
14642
  * Identifier supplied for the failed item; it may identify a missing asset.
14530
14643
  */
14531
- asset_id: MediaAssetId;
14644
+ asset_id?: MediaAssetId;
14645
+ /**
14646
+ * Zero-based output index for a failed video-generation item.
14647
+ */
14648
+ index?: number;
14532
14649
  /**
14533
14650
  * Domain error code explaining the individual item failure.
14534
14651
  */
14535
14652
  code: MediaMediaErrorCode;
14536
14653
  }>;
14654
+ /**
14655
+ * Generation intent used by this job; v1 supports video.generate.
14656
+ */
14657
+ intent?: string;
14658
+ /**
14659
+ * Router video-generation model used for the outputs.
14660
+ */
14661
+ model?: string;
14662
+ /**
14663
+ * Per-video results in index order; save a successful candidate before expires_at.
14664
+ */
14665
+ outputs?: Array<{
14666
+ /**
14667
+ * Zero-based position of this video in the requested count.
14668
+ */
14669
+ index: number;
14670
+ /**
14671
+ * State of this requested video output.
14672
+ */
14673
+ status: MediaGenerationOutputStatus;
14674
+ /**
14675
+ * Short-lived signed URL for previewing this candidate; read the Job again to obtain a fresh URL.
14676
+ */
14677
+ preview_url?: string;
14678
+ /**
14679
+ * Router seed for this video, when returned; it may be absent.
14680
+ */
14681
+ seed?: number | null;
14682
+ /**
14683
+ * Candidate expiry time; after expiry, save returns CANDIDATE_EXPIRED.
14684
+ */
14685
+ expires_at?: MediaIsoTimestamp;
14686
+ /**
14687
+ * Library asset identifier after this candidate has been saved, or when the job requested save=library.
14688
+ */
14689
+ asset_id?: MediaAssetId;
14690
+ }>;
14691
+ /**
14692
+ * Router-reported generation charge for the job.
14693
+ */
14694
+ usage?: {
14695
+ /**
14696
+ * Decimal amount in the currency named by currency; this is not a floating-point value.
14697
+ */
14698
+ amount: string;
14699
+ /**
14700
+ * Currency code for amount.
14701
+ */
14702
+ currency: string;
14703
+ };
14537
14704
  /**
14538
14705
  * Time the batch job was created, in UTC.
14539
14706
  */
@@ -14580,6 +14747,15 @@ export type MediaBatchAction = {
14580
14747
  * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
14581
14748
  */
14582
14749
  action: 'delete';
14750
+ } | {
14751
+ /**
14752
+ * reprocess retries recoverable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported, permanent and completed steps remain unchanged.
14753
+ */
14754
+ action: 'reprocess';
14755
+ /**
14756
+ * 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.
14757
+ */
14758
+ kinds?: Array<MediaProcessingKind>;
14583
14759
  };
14584
14760
  /**
14585
14761
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
@@ -14625,6 +14801,91 @@ export type MediaDeliveryToken = {
14625
14801
  */
14626
14802
  expires_at: string;
14627
14803
  };
14804
+ export type MediaFailureSummary = {
14805
+ /**
14806
+ * Number of current failed understanding entries, excluding deleted assets and superseded versions.
14807
+ */
14808
+ total: number;
14809
+ /**
14810
+ * Failure entries grouped by code, output kind and producer model. Each group includes up to five distinct example asset IDs.
14811
+ */
14812
+ groups: Array<MediaFailureGroup>;
14813
+ /**
14814
+ * False while historical failure and folder statistics are being populated. Counts include current writes immediately.
14815
+ */
14816
+ counts_complete: boolean;
14817
+ };
14818
+ /**
14819
+ * Current state of a batch or video-generation job.
14820
+ */
14821
+ export type MediaJobStatus = 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed' | 'cancelled';
14822
+ /**
14823
+ * Identifier returned when a batch job is created.
14824
+ */
14825
+ export type MediaJobId = string;
14826
+ /**
14827
+ * A page of jobs in a library.
14828
+ */
14829
+ export type MediaJobPage = {
14830
+ /**
14831
+ * Jobs returned in this page.
14832
+ */
14833
+ data: Array<MediaJob>;
14834
+ /**
14835
+ * Cursor for the next page, or null when there are no more jobs.
14836
+ */
14837
+ next_cursor: MediaJobId | null;
14838
+ };
14839
+ /**
14840
+ * Current text-to-video options, concurrency and candidate retention. Generation is charged per second; unsaved candidates expire after 7 days.
14841
+ */
14842
+ export type MediaGenerationCapabilities = {
14843
+ /**
14844
+ * Text-to-video intents currently supported by Media.
14845
+ */
14846
+ intents: Array<string>;
14847
+ /**
14848
+ * Model selected when model is omitted from a generation request.
14849
+ */
14850
+ default_model: string;
14851
+ /**
14852
+ * Allowed number of videos per generation job.
14853
+ */
14854
+ count: {
14855
+ /**
14856
+ * Minimum number of videos in one generation job.
14857
+ */
14858
+ minimum: number;
14859
+ /**
14860
+ * Maximum number of videos in one generation job.
14861
+ */
14862
+ maximum: number;
14863
+ };
14864
+ /**
14865
+ * Durations in seconds supported by the default video model.
14866
+ */
14867
+ duration_seconds: Array<number>;
14868
+ /**
14869
+ * Aspect ratios supported by the default video model.
14870
+ */
14871
+ aspect_ratios: Array<string>;
14872
+ /**
14873
+ * Aspect ratio used when aspect_ratio is omitted.
14874
+ */
14875
+ default_aspect_ratio: string;
14876
+ /**
14877
+ * Maximum number of queued or running generation jobs per library.
14878
+ */
14879
+ concurrency_per_library: number;
14880
+ /**
14881
+ * Unit used to charge video generation; generated duration is billed per second by Router.
14882
+ */
14883
+ price_unit: 'per second';
14884
+ /**
14885
+ * Days an unsaved candidate is retained before its File is deleted.
14886
+ */
14887
+ candidate_retention_days: number;
14888
+ };
14628
14889
  /**
14629
14890
  * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
14630
14891
  */
@@ -24975,6 +25236,10 @@ export type CutTimeline = {
24975
25236
  * Ordered tracks, topmost visual layer first.
24976
25237
  */
24977
25238
  tracks: Array<CutTrack>;
25239
+ /**
25240
+ * Clip-to-clip transitions selected by track and overlap window; lengths are seconds and effect fields use snake_case on HTTP.
25241
+ */
25242
+ joins?: Array<CutJoin>;
24978
25243
  /**
24979
25244
  * Named points on the timeline.
24980
25245
  */
@@ -25010,11 +25275,11 @@ export type CutSummary = {
25010
25275
  lines: Array<string>;
25011
25276
  };
25012
25277
  /**
25013
- * Rendered image available until its signed URL expires.
25278
+ * Rendered PNG image carried inline as a data URL.
25014
25279
  */
25015
25280
  export type CutRenderRef = {
25016
25281
  /**
25017
- * Fetchable image URL for this render result.
25282
+ * 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
25283
  */
25019
25284
  url: string;
25020
25285
  /**
@@ -25026,7 +25291,7 @@ export type CutRenderRef = {
25026
25291
  */
25027
25292
  height: number;
25028
25293
  /**
25029
- * ISO 8601 timestamp after which the image URL must be refreshed.
25294
+ * ISO 8601 freshness timestamp for the render result; the inline data URL contains the image bytes and does not require a network refresh.
25030
25295
  */
25031
25296
  expires_at: string;
25032
25297
  };
@@ -25067,6 +25332,20 @@ export type CutTrackSummary = {
25067
25332
  */
25068
25333
  items: number;
25069
25334
  };
25335
+ export type CutFrameWarning = {
25336
+ /**
25337
+ * FRAME_UNAVAILABLE means a source image could not be fetched for this preview.
25338
+ */
25339
+ code: 'FRAME_UNAVAILABLE';
25340
+ /**
25341
+ * Identifier of the clip whose source frame could not be fetched.
25342
+ */
25343
+ clip_id?: string;
25344
+ /**
25345
+ * Actionable safe explanation; source URLs and credentials are omitted.
25346
+ */
25347
+ message: string;
25348
+ };
25070
25349
  /**
25071
25350
  * Reference to an asset in a bound library; follows asset overwrites to the latest version rather than pinning a version.
25072
25351
  */
@@ -25289,7 +25568,7 @@ export type KnowledgeKnowledgeModels = {
25289
25568
  */
25290
25569
  query_rewrite: string;
25291
25570
  /**
25292
- * Extracts text from scanned PDF pages. Default: glm-ocr, falling back to qwen3.8-flash. A custom model precedes the platform defaults.
25571
+ * Extracts text from scanned PDF pages through the OCR API. Default: qwen-vl-ocr-2025-11-20, falling back to glm-ocr and qwen3.8-flash. A custom model precedes these defaults. OCR is billed by pages processed.
25293
25572
  */
25294
25573
  ocr: string;
25295
25574
  /**
@@ -25298,14 +25577,9 @@ export type KnowledgeKnowledgeModels = {
25298
25577
  vision: string;
25299
25578
  };
25300
25579
  /**
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.
25580
+ * 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
25581
  */
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;
25582
+ export type KnowledgeNativeChunkingInput = KnowledgeChunkingInput | KnowledgeHierarchicalChunking;
25309
25583
  /**
25310
25584
  * 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
25585
  */
@@ -25323,7 +25597,7 @@ export type KnowledgeKnowledgeModelsInput = {
25323
25597
  */
25324
25598
  query_rewrite?: string | null;
25325
25599
  /**
25326
- * Scanned PDF text extraction model; requires mistral.ocr or pdf_input capability. null restores glm-ocr. The preference leads the fallback chain glm-ocr, qwen3.8-flash with duplicates removed.
25600
+ * Scanned PDF text extraction model; requires mistral.ocr or pdf_input capability. null restores qwen-vl-ocr-2025-11-20. The preference leads the OCR API fallback chain qwen-vl-ocr-2025-11-20, glm-ocr, qwen3.8-flash with duplicates removed.
25327
25601
  */
25328
25602
  ocr?: string | null;
25329
25603
  /**
@@ -25360,6 +25634,10 @@ export type KnowledgeNativeSearchResult = {
25360
25634
  * Extracted text of the matched chunk, which may overlap neighboring chunks.
25361
25635
  */
25362
25636
  text: string;
25637
+ /**
25638
+ * 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.
25639
+ */
25640
+ readonly image_file_id?: string;
25363
25641
  /**
25364
25642
  * Resource ID.
25365
25643
  */
@@ -25423,14 +25701,9 @@ export type KnowledgeFilter = {
25423
25701
  filters: Array<KnowledgeFilter>;
25424
25702
  };
25425
25703
  /**
25426
- * Stored chunking strategy for this attachment; auto input is returned as static settings.
25704
+ * Native stored strategy, including hierarchical parent and child settings. auto input resolves to static; the OpenAI-compatible URL projects hierarchical as other.
25427
25705
  */
25428
- export type KnowledgeChunking = KnowledgeStaticChunking | {
25429
- /**
25430
- * other identifies a stored strategy whose chunk-size settings are unavailable.
25431
- */
25432
- type: 'other';
25433
- };
25706
+ export type KnowledgeNativeChunking = KnowledgeChunking | KnowledgeHierarchicalChunking;
25434
25707
  /**
25435
25708
  * File attributes used by search filters. Up to 16 keys of 64 characters; string values up to 512 characters.
25436
25709
  */
@@ -25515,7 +25788,34 @@ export type KnowledgeEvent = {
25515
25788
  };
25516
25789
  };
25517
25790
  /**
25518
- * Resolved model call IDs for the library’s vision, embedding and transcription roles.
25791
+ * Asset understanding progress. Completion rate counts assets reaching ready, partial or failed in the last 60 minute buckets, including reprocessing completions.
25792
+ */
25793
+ export type MediaUnderstandingProgress = {
25794
+ /**
25795
+ * Number of active assets in each aggregate processing state: pending, processing, ready, partial and failed. Historical counts are complete when migration_complete is true.
25796
+ */
25797
+ readonly counts: {
25798
+ [key: string]: number;
25799
+ };
25800
+ /**
25801
+ * Assets reaching a terminal processing state in the last 60 minute buckets. Reprocessing can complete an asset again.
25802
+ */
25803
+ readonly completed_last_hour: number;
25804
+ /**
25805
+ * Observed completion rate in assets per hour, equal to completed_last_hour.
25806
+ */
25807
+ readonly completion_rate_per_hour: number;
25808
+ /**
25809
+ * 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.
25810
+ */
25811
+ readonly estimated_completion_at: MediaIsoTimestamp | null;
25812
+ /**
25813
+ * True after historical assets have been counted and their pending understanding instances dispatched.
25814
+ */
25815
+ readonly migration_complete: boolean;
25816
+ };
25817
+ /**
25818
+ * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
25519
25819
  */
25520
25820
  export type MediaMediaModels = {
25521
25821
  /**
@@ -25527,9 +25827,21 @@ export type MediaMediaModels = {
25527
25827
  */
25528
25828
  embedding: string;
25529
25829
  /**
25530
- * Model call ID for speech transcription.
25830
+ * 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
25831
  */
25532
25832
  transcription: string;
25833
+ /**
25834
+ * Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
25835
+ */
25836
+ readonly correction: string;
25837
+ /**
25838
+ * Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
25839
+ */
25840
+ readonly reference_transcription: string;
25841
+ /**
25842
+ * 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.
25843
+ */
25844
+ readonly audio: string;
25533
25845
  };
25534
25846
  /**
25535
25847
  * Identifier of a library belonging to the caller.
@@ -25690,7 +26002,7 @@ export type MediaCloudinaryResource = {
25690
26002
  */
25691
26003
  url: string;
25692
26004
  /**
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.
26005
+ * 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
26006
  */
25695
26007
  secure_url: string;
25696
26008
  /**
@@ -25726,9 +26038,13 @@ export type MediaChunkComplete = MediaCloudinaryResource & {
25726
26038
  done: true;
25727
26039
  };
25728
26040
  /**
25729
- * Per-task processing progress and its aggregate state for the asset.
26041
+ * 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
26042
  */
25731
26043
  export type MediaProcessing = {
26044
+ /**
26045
+ * 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.
26046
+ */
26047
+ readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
25732
26048
  state: MediaProcessingState;
25733
26049
  /**
25734
26050
  * Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
@@ -25770,6 +26086,18 @@ export type MediaStoryboard = {
25770
26086
  * An immutable understanding result for an asset version, including superseded history when requested.
25771
26087
  */
25772
26088
  export type MediaUnderstanding = {
26089
+ /**
26090
+ * Original hallucination-filtered ASR text before correction, present on correction-enabled transcript records. Omitted on legacy records and other kinds.
26091
+ */
26092
+ readonly text_original?: string;
26093
+ /**
26094
+ * Corrected transcript, also returned as content and used for subtitles and search. Equals text_original when correction fails. Original segment timestamps remain unchanged.
26095
+ */
26096
+ readonly text?: string;
26097
+ /**
26098
+ * Transcript correction audit, accepted edits and optional reference ASR. Present on correction-enabled transcript records, including failed corrections.
26099
+ */
26100
+ readonly correction?: MediaTranscriptCorrection;
25773
26101
  /**
25774
26102
  * Generated identifier of this understanding result.
25775
26103
  */
@@ -25783,7 +26111,7 @@ export type MediaUnderstanding = {
25783
26111
  */
25784
26112
  asset_version: number;
25785
26113
  /**
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.
26114
+ * 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
26115
  */
25788
26116
  kind: MediaUnderstandingKind;
25789
26117
  /**
@@ -25807,7 +26135,7 @@ export type MediaUnderstanding = {
25807
26135
  */
25808
26136
  content: string | null;
25809
26137
  /**
25810
- * Structured producer output, such as recognized labels or frame details; null when absent.
26138
+ * 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
26139
  */
25812
26140
  data: unknown | null;
25813
26141
  /**
@@ -25836,6 +26164,36 @@ export type MediaUnderstanding = {
25836
26164
  */
25837
26165
  created_at: MediaIsoTimestamp;
25838
26166
  };
26167
+ export type MediaUnderstoodShot = {
26168
+ /**
26169
+ * Inclusive shot start in milliseconds.
26170
+ */
26171
+ readonly start_ms: number;
26172
+ /**
26173
+ * Exclusive shot end in milliseconds.
26174
+ */
26175
+ readonly end_ms: number;
26176
+ /**
26177
+ * Zero-based shot index in timeline order.
26178
+ */
26179
+ readonly index: number;
26180
+ /**
26181
+ * One to three sampled frame timestamps in milliseconds within this shot.
26182
+ */
26183
+ readonly keyframes_ms: Array<number>;
26184
+ /**
26185
+ * Structured interpretation, present after this shot completes visual processing.
26186
+ */
26187
+ readonly visual?: MediaShotVisual;
26188
+ /**
26189
+ * 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.
26190
+ */
26191
+ readonly folder_mismatch?: boolean;
26192
+ /**
26193
+ * Vision model that generated this shot interpretation.
26194
+ */
26195
+ readonly producer?: string;
26196
+ };
25839
26197
  /**
25840
26198
  * A native asset returned by expression search; tags and context are included only when requested in with_field.
25841
26199
  */
@@ -25953,7 +26311,7 @@ export type MediaSearchAsset = {
25953
26311
  */
25954
26312
  url: string;
25955
26313
  /**
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.
26314
+ * 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
26315
  */
25958
26316
  secure_url: string;
25959
26317
  /**
@@ -26036,6 +26394,27 @@ export type MediaSearchAsset = {
26036
26394
  };
26037
26395
  };
26038
26396
  };
26397
+ /**
26398
+ * Source details for the video-generation job that created this asset.
26399
+ */
26400
+ generation?: {
26401
+ /**
26402
+ * Job id that generated this asset.
26403
+ */
26404
+ job_id: MediaJobId;
26405
+ /**
26406
+ * Generation intent used to create the asset; v1 supports video.generate.
26407
+ */
26408
+ intent: string;
26409
+ /**
26410
+ * Text prompt submitted for the generation job.
26411
+ */
26412
+ prompt: string;
26413
+ /**
26414
+ * Router video-generation model that produced the asset.
26415
+ */
26416
+ model: string;
26417
+ };
26039
26418
  };
26040
26419
  /**
26041
26420
  * A matching asset with its ranking score and supporting matches.
@@ -26058,11 +26437,11 @@ export type MediaSemanticHit = {
26058
26437
  */
26059
26438
  matches: Array<MediaSemanticMatch>;
26060
26439
  };
26440
+ export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'CANDIDATE_EXPIRED' | 'BINDING_READ_ONLY';
26061
26441
  /**
26062
- * Identifier returned when a batch job is created.
26442
+ * State of a requested video output.
26063
26443
  */
26064
- export type MediaJobId = string;
26065
- export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'BINDING_READ_ONLY';
26444
+ export type MediaGenerationOutputStatus = 'pending' | 'succeeded' | 'failed';
26066
26445
  /**
26067
26446
  * A recorded library event with a monotonically increasing sequence within that library.
26068
26447
  */
@@ -26106,6 +26485,36 @@ export type MediaMediaEvent = {
26106
26485
  [key: string]: unknown;
26107
26486
  };
26108
26487
  };
26488
+ export type MediaFailureGroup = {
26489
+ /**
26490
+ * Failure reason code. Unknown codes are retryable.
26491
+ */
26492
+ code: string;
26493
+ /**
26494
+ * Understanding output kind that failed, such as caption, frame, transcript or embedding.
26495
+ */
26496
+ kind: string;
26497
+ /**
26498
+ * Producer model that reported this failure; unknown when historical provenance was unavailable.
26499
+ */
26500
+ model: string;
26501
+ /**
26502
+ * Number of current failed entries in this group; several entries can belong to one asset.
26503
+ */
26504
+ count: number;
26505
+ /**
26506
+ * 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.
26507
+ */
26508
+ overflow: boolean;
26509
+ /**
26510
+ * True when a repeated attempt may recover, including unknown error codes. False for unsupported media, limits, missing or corrupt source files.
26511
+ */
26512
+ retryable: boolean;
26513
+ /**
26514
+ * Up to five distinct asset identifiers from this group, for inspecting original error details.
26515
+ */
26516
+ sample_asset_ids: Array<MediaAssetId>;
26517
+ };
26109
26518
  /**
26110
26519
  * Auto-resume configuration for paused sandboxes.
26111
26520
  */
@@ -30432,6 +30841,32 @@ export type CutTrack = {
30432
30841
  */
30433
30842
  items: Array<CutItem>;
30434
30843
  };
30844
+ /**
30845
+ * Overlap between adjacent visual clips on the same track; creating it shifts the right clip and same-track followers left by its length.
30846
+ */
30847
+ export type CutJoin = {
30848
+ /**
30849
+ * Join identifier returned by Join; reuse as the id argument to UpdateJoin or DeleteJoin inside execute.
30850
+ */
30851
+ id: string;
30852
+ /**
30853
+ * Visual track containing both endpoints, from AddTrack or the timeline track id.
30854
+ */
30855
+ track: string;
30856
+ /**
30857
+ * Outgoing clip identifier, from Insert or the timeline items.
30858
+ */
30859
+ left: string;
30860
+ /**
30861
+ * Incoming clip identifier, from Insert or the timeline items.
30862
+ */
30863
+ right: string;
30864
+ /**
30865
+ * Overlap duration in seconds, positive and shorter than each endpoint; incoming plus outgoing lengths may not exceed a clip length.
30866
+ */
30867
+ length: number;
30868
+ effect: CutJoinEffect;
30869
+ };
30435
30870
  /**
30436
30871
  * A named point on the project timeline.
30437
30872
  */
@@ -30449,23 +30884,39 @@ export type CutMarker = {
30449
30884
  */
30450
30885
  label: string;
30451
30886
  };
30452
- export type KnowledgeStaticChunking = {
30887
+ /**
30888
+ * 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.
30889
+ */
30890
+ export type KnowledgeChunkingInput = {
30453
30891
  /**
30454
- * static selects explicit chunk-size and overlap settings.
30892
+ * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
30455
30893
  */
30456
- type: 'static';
30894
+ type: 'auto';
30895
+ } | KnowledgeStaticChunking;
30896
+ /**
30897
+ * 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.
30898
+ */
30899
+ export type KnowledgeHierarchicalChunking = {
30457
30900
  /**
30458
- * Chunk-size and overlap limits in estimated tokens.
30901
+ * hierarchical selects smaller child chunks for matching and larger parent chunks for context.
30459
30902
  */
30460
- static: {
30903
+ type: 'hierarchical';
30904
+ /**
30905
+ * Required parent, child and overlap sizes in estimated tokens. All three values must be integers.
30906
+ */
30907
+ hierarchical: {
30461
30908
  /**
30462
- * Estimated tokens per chunk.
30909
+ * Maximum estimated tokens per parent chunk, from 101 through 4096; must exceed child_max_tokens.
30463
30910
  */
30464
- max_chunk_size_tokens: number;
30911
+ parent_max_tokens: number;
30465
30912
  /**
30466
- * Must not exceed half of max_chunk_size_tokens.
30913
+ * Maximum estimated tokens per child chunk, at least 100 and strictly smaller than parent_max_tokens.
30467
30914
  */
30468
- chunk_overlap_tokens: number;
30915
+ child_max_tokens: number;
30916
+ /**
30917
+ * Estimated tokens shared by adjacent children, from zero through floor(child_max_tokens / 2).
30918
+ */
30919
+ child_overlap_tokens: number;
30469
30920
  };
30470
30921
  };
30471
30922
  /**
@@ -30505,6 +30956,15 @@ export type KnowledgeSearchExplain = {
30505
30956
  */
30506
30957
  matched_terms: Array<string>;
30507
30958
  };
30959
+ /**
30960
+ * Stored chunking strategy for this attachment; auto input is returned as static settings.
30961
+ */
30962
+ export type KnowledgeChunking = KnowledgeStaticChunking | {
30963
+ /**
30964
+ * other identifies a stored strategy whose chunk-size settings are unavailable.
30965
+ */
30966
+ type: 'other';
30967
+ };
30508
30968
  /**
30509
30969
  * Aggregate processing state across the asset processing tasks.
30510
30970
  */
@@ -30513,14 +30973,66 @@ export type MediaProcessingState = 'pending' | 'processing' | 'ready' | 'partial
30513
30973
  * 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
30974
  */
30515
30975
  export type MediaKindState = 'pending' | 'running' | 'ready' | 'failed' | 'unsupported' | 'skipped';
30976
+ export type MediaTranscriptCorrection = {
30977
+ /**
30978
+ * Accepted local edits, including deterministic Arabic quantity normalization. Unsupported model edits are discarded.
30979
+ */
30980
+ readonly edits: Array<MediaTranscriptEdit>;
30981
+ /**
30982
+ * ready means correction and validation completed; failed means text is exactly the ASR original, with no accepted edits.
30983
+ */
30984
+ readonly correction_status: 'ready' | 'failed';
30985
+ /**
30986
+ * Configured correction model call ID; defaults to qwen3.8-flash.
30987
+ */
30988
+ readonly correction_model: string;
30989
+ /**
30990
+ * ready means reference ASR supplied text; missing means reference failed or was unavailable and correction proceeded without it.
30991
+ */
30992
+ readonly reference_status: 'ready' | 'missing';
30993
+ /**
30994
+ * Full reference ASR text, present when reference_status is ready. It supplies spelling evidence and has no timestamps.
30995
+ */
30996
+ readonly reference_text?: string;
30997
+ /**
30998
+ * Model call ID that supplied the reference text; defaults to qwen3-asr-flash.
30999
+ */
31000
+ readonly reference_model?: string;
31001
+ /**
31002
+ * Correction failure that caused verbatim fallback to the ASR original.
31003
+ */
31004
+ readonly correction_error?: {
31005
+ /**
31006
+ * Failure code for the optional transcript enhancement step.
31007
+ */
31008
+ code: string;
31009
+ /**
31010
+ * Failure detail; use reprocess to retry with the library’s current configuration.
31011
+ */
31012
+ message: string;
31013
+ };
31014
+ /**
31015
+ * Reference failure; it does not block correction.
31016
+ */
31017
+ readonly reference_error?: {
31018
+ /**
31019
+ * Failure code for the optional transcript enhancement step.
31020
+ */
31021
+ code: string;
31022
+ /**
31023
+ * Failure detail; use reprocess to retry with the library’s current configuration.
31024
+ */
31025
+ message: string;
31026
+ };
31027
+ };
30516
31028
  /**
30517
31029
  * Identifier of an immutable understanding result.
30518
31030
  */
30519
31031
  export type MediaUnderstandingId = string;
30520
31032
  /**
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.
31033
+ * 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
31034
  */
30523
- export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
31035
+ export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
30524
31036
  /**
30525
31037
  * Time range within the source media, expressed in milliseconds.
30526
31038
  */
@@ -30534,6 +31046,28 @@ export type MediaSegment = {
30534
31046
  */
30535
31047
  end_ms: number;
30536
31048
  };
31049
+ export type MediaShotVisual = {
31050
+ /**
31051
+ * Chinese summary of the entire shot using its keyframes together.
31052
+ */
31053
+ readonly caption: string;
31054
+ /**
31055
+ * Chinese description of the scene and shooting context.
31056
+ */
31057
+ readonly scene: string;
31058
+ /**
31059
+ * Location inferred from recognizable landmarks or readable place names; null without evidence.
31060
+ */
31061
+ readonly location_guess: string | null;
31062
+ /**
31063
+ * Visible text in reading order, preserving the source language.
31064
+ */
31065
+ readonly on_screen_text: Array<string>;
31066
+ /**
31067
+ * Quality and editing characteristics with confidence for every judgment.
31068
+ */
31069
+ readonly flags: MediaShotFlags;
31070
+ };
30537
31071
  /**
30538
31072
  * Evidence contributing to a search hit, optionally linked to an understanding and a source-media segment.
30539
31073
  */
@@ -30558,7 +31092,7 @@ export type MediaSemanticMatch = {
30558
31092
  /**
30559
31093
  * Type of change recorded for a library, asset, processing task, search index or batch.
30560
31094
  */
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';
31095
+ 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' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
30562
31096
  /**
30563
31097
  * Auto-resume enabled flag for paused sandboxes. Default false.
30564
31098
  */
@@ -31190,21 +31724,25 @@ export type AnthropicToolReferenceBlock = {
31190
31724
  */
31191
31725
  export type CutTextStyle = {
31192
31726
  /**
31193
- * Geist is the Latin typeface; Noto Sans SC is the simplified Chinese typeface.
31727
+ * Canonical font family name; call ListFonts() in the Cut script API to retrieve the available font families.
31194
31728
  */
31195
- font_family?: 'Geist' | 'Noto Sans SC';
31729
+ font_family?: string;
31196
31730
  /**
31197
31731
  * Text size in output pixels.
31198
31732
  */
31199
31733
  font_size?: number;
31200
31734
  /**
31201
- * Font weight: 400 is regular, 500 is medium and 700 is bold.
31735
+ * Positive requested font weight; each family has its own available catalog weights, and unsupported values resolve to the nearest available weight, preferring the heavier weight on a tie.
31202
31736
  */
31203
- font_weight?: 400 | 500 | 700;
31737
+ font_weight?: number;
31204
31738
  /**
31205
31739
  * Text color in #RRGGBB or #RRGGBBAA notation.
31206
31740
  */
31207
31741
  color?: string;
31742
+ /**
31743
+ * Optional solid or gradient glyph fill; gradients span the text box.
31744
+ */
31745
+ fill?: CutFill;
31208
31746
  /**
31209
31747
  * Optional text outline.
31210
31748
  */
@@ -31214,9 +31752,60 @@ export type CutTextStyle = {
31214
31752
  */
31215
31753
  color?: string;
31216
31754
  /**
31217
- * Outline width in output pixels.
31755
+ * Outline width in output pixels; must be non-negative and at most 40 pixels.
31756
+ */
31757
+ width?: number;
31758
+ };
31759
+ /**
31760
+ * Additional outlines, painted from outermost to innermost; at most 4 strokes.
31761
+ */
31762
+ strokes?: Array<{
31763
+ /**
31764
+ * Outline color in #RRGGBB or #RRGGBBAA notation.
31765
+ */
31766
+ color?: string;
31767
+ /**
31768
+ * Outline width in output pixels, from 0 to 40.
31218
31769
  */
31219
31770
  width?: number;
31771
+ }>;
31772
+ /**
31773
+ * Offset text shadows; at most 4 shadows. Offsets are non-negative output pixels; blur is 0 to 100 output pixels.
31774
+ */
31775
+ shadows?: Array<{
31776
+ /**
31777
+ * Shadow color in #RRGGBB or #RRGGBBAA notation.
31778
+ */
31779
+ color?: string;
31780
+ /**
31781
+ * Non-negative horizontal offset in output pixels.
31782
+ */
31783
+ x?: number;
31784
+ /**
31785
+ * Non-negative vertical offset in output pixels.
31786
+ */
31787
+ y?: number;
31788
+ /**
31789
+ * Blur radius in output pixels, from 0 to 100.
31790
+ */
31791
+ blur?: number;
31792
+ }>;
31793
+ /**
31794
+ * Colored glow around glyphs; radius is in output pixels, from 0 to 100, and strength is from 0 to 1.
31795
+ */
31796
+ glow?: {
31797
+ /**
31798
+ * Glow color in #RRGGBB or #RRGGBBAA notation.
31799
+ */
31800
+ color?: string;
31801
+ /**
31802
+ * Glow blur radius in output pixels, from 0 to 100.
31803
+ */
31804
+ radius?: number;
31805
+ /**
31806
+ * Glow opacity multiplier from 0 to 1.
31807
+ */
31808
+ strength?: number;
31220
31809
  };
31221
31810
  /**
31222
31811
  * Optional text background color as hexadecimal RGB or RGBA.
@@ -31231,9 +31820,13 @@ export type CutTextStyle = {
31231
31820
  */
31232
31821
  max_width?: number;
31233
31822
  /**
31234
- * Caption placement: top is near the upper edge, middle is centered, bottom is near the lower edge.
31823
+ * 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
31824
  */
31236
31825
  position?: 'top' | 'middle' | 'bottom';
31826
+ /**
31827
+ * Box edge distance from the top or bottom as a fraction of canvas height; middle ignores it.
31828
+ */
31829
+ margin?: number;
31237
31830
  /**
31238
31831
  * Optional color applied to the currently spoken caption word.
31239
31832
  */
@@ -31345,6 +31938,183 @@ export type CutItem = {
31345
31938
  */
31346
31939
  words?: Array<CutCaptionWord>;
31347
31940
  };
31941
+ /**
31942
+ * 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.
31943
+ */
31944
+ export type CutJoinEffect = {
31945
+ /**
31946
+ * Dissolve: Blend the outgoing shot into the incoming shot.
31947
+ */
31948
+ kind: 'dissolve';
31949
+ } | {
31950
+ /**
31951
+ * Dip: Fade through a solid color between the two shots.
31952
+ */
31953
+ kind: 'dip';
31954
+ /**
31955
+ * Solid color shown between shots.
31956
+ */
31957
+ color?: 'black' | 'white';
31958
+ } | {
31959
+ /**
31960
+ * Push: Slide the incoming shot into view as it pushes the outgoing shot away.
31961
+ */
31962
+ kind: 'push';
31963
+ /**
31964
+ * Direction in which the transition moves across the frame.
31965
+ */
31966
+ direction?: 'left' | 'right' | 'up' | 'down';
31967
+ } | {
31968
+ /**
31969
+ * Wipe: Reveal the incoming shot behind an edge moving across the outgoing shot.
31970
+ */
31971
+ kind: 'wipe';
31972
+ /**
31973
+ * Direction in which the transition moves across the frame.
31974
+ */
31975
+ direction?: 'left' | 'right' | 'up' | 'down';
31976
+ /**
31977
+ * Edge softness from a sharp boundary to a fully softened blend.
31978
+ */
31979
+ softness?: number;
31980
+ } | {
31981
+ /**
31982
+ * Iris: Reveal the incoming shot through an expanding circular opening.
31983
+ */
31984
+ kind: 'iris';
31985
+ /**
31986
+ * Horizontal opening center from the left edge to the right edge.
31987
+ */
31988
+ center_x?: number;
31989
+ /**
31990
+ * Vertical opening center from the top edge to the bottom edge.
31991
+ */
31992
+ center_y?: number;
31993
+ } | {
31994
+ /**
31995
+ * Blinds: Reveal the incoming shot through a set of parallel strips.
31996
+ */
31997
+ kind: 'blinds';
31998
+ /**
31999
+ * Number of strips revealing the incoming shot.
32000
+ */
32001
+ count?: number;
32002
+ /**
32003
+ * Orientation of the revealing strips.
32004
+ */
32005
+ orientation?: 'vertical' | 'horizontal';
32006
+ } | {
32007
+ /**
32008
+ * Blur: Blur the outgoing shot into the incoming shot before returning to focus.
32009
+ */
32010
+ kind: 'blur';
32011
+ /**
32012
+ * Blur radius in pixels at a reference frame height of 1080 pixels.
32013
+ */
32014
+ radius?: number;
32015
+ } | {
32016
+ /**
32017
+ * Zoom transition.
32018
+ */
32019
+ kind: 'zoom';
32020
+ /**
32021
+ * Zoom in or out.
32022
+ */
32023
+ direction?: 'in' | 'out';
32024
+ /**
32025
+ * Peak scale increase as a multiple of the original scale.
32026
+ */
32027
+ amount?: number;
32028
+ /**
32029
+ * Radial blur strength; zero disables blur sampling.
32030
+ */
32031
+ blur?: number;
32032
+ } | {
32033
+ /**
32034
+ * Clock transition.
32035
+ */
32036
+ kind: 'clock';
32037
+ /**
32038
+ * Sweep direction.
32039
+ */
32040
+ direction?: 'clockwise' | 'counterclockwise';
32041
+ /**
32042
+ * Start angle in degrees, with zero at twelve o'clock.
32043
+ */
32044
+ start_angle?: number;
32045
+ /**
32046
+ * Angular feather width.
32047
+ */
32048
+ softness?: number;
32049
+ } | {
32050
+ /**
32051
+ * Flash transition.
32052
+ */
32053
+ kind: 'flash';
32054
+ /**
32055
+ * Flash color.
32056
+ */
32057
+ color?: 'white' | 'black';
32058
+ /**
32059
+ * Flash strength.
32060
+ */
32061
+ intensity?: number;
32062
+ };
32063
+ export type KnowledgeStaticChunking = {
32064
+ /**
32065
+ * static selects explicit chunk-size and overlap settings.
32066
+ */
32067
+ type: 'static';
32068
+ /**
32069
+ * Chunk-size and overlap limits in estimated tokens.
32070
+ */
32071
+ static: {
32072
+ /**
32073
+ * Estimated tokens per chunk.
32074
+ */
32075
+ max_chunk_size_tokens: number;
32076
+ /**
32077
+ * Must not exceed half of max_chunk_size_tokens.
32078
+ */
32079
+ chunk_overlap_tokens: number;
32080
+ };
32081
+ };
32082
+ export type MediaTranscriptEdit = {
32083
+ /**
32084
+ * Original literal text replaced by this accepted edit.
32085
+ */
32086
+ readonly from: string;
32087
+ /**
32088
+ * 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.
32089
+ */
32090
+ readonly to: string;
32091
+ /**
32092
+ * Zero-based index in the assembled, hallucination-filtered ASR segments. Segment timestamps do not change.
32093
+ */
32094
+ readonly segment_id: number;
32095
+ };
32096
+ export type MediaShotFlags = {
32097
+ /**
32098
+ * Slide or screen-recorded picture/text sequence rather than live footage.
32099
+ */
32100
+ readonly slideshow: MediaShotFlag;
32101
+ /**
32102
+ * Visible watermark.
32103
+ */
32104
+ readonly watermark: MediaShotFlag;
32105
+ /**
32106
+ * Fingers or hands framing the scene.
32107
+ */
32108
+ readonly hand_frame: MediaShotFlag;
32109
+ /**
32110
+ * Added text sticker or overlay.
32111
+ */
32112
+ readonly text_sticker: MediaShotFlag;
32113
+ /**
32114
+ * Blur, severe camera shake, bad exposure or another visible quality defect.
32115
+ */
32116
+ readonly low_quality: MediaShotFlag;
32117
+ };
31348
32118
  export type SandboxSandboxIamToken = {
31349
32119
  /**
31350
32120
  * Audience of the workload token, stored exactly as provided.
@@ -31530,6 +32300,51 @@ export type AnthropicCitationsConfig = {
31530
32300
  */
31531
32301
  enabled: boolean;
31532
32302
  };
32303
+ /**
32304
+ * Solid color or a gradient over the styled text box.
32305
+ */
32306
+ export type CutFill = string | {
32307
+ /**
32308
+ * Linear gradient; angle is in degrees and stop positions range from 0 to 1.
32309
+ */
32310
+ linear?: {
32311
+ /**
32312
+ * Gradient angle in degrees; 0 runs left to right.
32313
+ */
32314
+ angle?: number;
32315
+ /**
32316
+ * Gradient color stops; each position is a fraction from 0 to 1.
32317
+ */
32318
+ stops?: Array<{
32319
+ /**
32320
+ * Stop position as a fraction from 0 to 1.
32321
+ */
32322
+ at?: number;
32323
+ /**
32324
+ * Stop color in #RRGGBB or #RRGGBBAA notation.
32325
+ */
32326
+ color?: string;
32327
+ }>;
32328
+ };
32329
+ /**
32330
+ * Radial gradient with stop positions as fractions from 0 to 1.
32331
+ */
32332
+ radial?: {
32333
+ /**
32334
+ * Gradient color stops; each position is a fraction from 0 to 1.
32335
+ */
32336
+ stops?: Array<{
32337
+ /**
32338
+ * Stop position as a fraction from 0 to 1.
32339
+ */
32340
+ at?: number;
32341
+ /**
32342
+ * Stop color in #RRGGBB or #RRGGBBAA notation.
32343
+ */
32344
+ color?: string;
32345
+ }>;
32346
+ };
32347
+ };
31533
32348
  /**
31534
32349
  * Visual placement; coordinates are normalized canvas centers.
31535
32350
  */
@@ -31606,6 +32421,16 @@ export type CutCaptionWord = {
31606
32421
  */
31607
32422
  length: number;
31608
32423
  };
32424
+ export type MediaShotFlag = {
32425
+ /**
32426
+ * True when this visual characteristic is present.
32427
+ */
32428
+ readonly value: boolean;
32429
+ /**
32430
+ * Confidence in this true or false judgment, from 0 to 1.
32431
+ */
32432
+ readonly confidence: number;
32433
+ };
31609
32434
  export type PraxisSdkSseGetBrowserV1SessionsSessionIdStream = BrowserStreamMessage;
31610
32435
  /**
31611
32436
  * 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.
@@ -31736,279 +32561,1147 @@ export type PraxisSdkSsePostModelV1Messages = {
31736
32561
  */
31737
32562
  id?: string;
31738
32563
  /**
31739
- * Name of the server-sent event.
32564
+ * Name of the server-sent event.
32565
+ */
32566
+ event?: string;
32567
+ /**
32568
+ * 完整 SDK RawMessageStreamEvent union
32569
+ */
32570
+ data: AnthropicRawMessageDeltaEvent | AnthropicRawContentBlockDeltaEvent | AnthropicRawMessageStartEvent | AnthropicRawMessageStopEvent | AnthropicRawContentBlockStartEvent | AnthropicRawContentBlockStopEvent;
32571
+ };
32572
+ export type PraxisSdkSseGetAgentV1SessionsSessionIdEventsStream = AgentSseEvent;
32573
+ export type PraxisSdkSseGetAgentV1SessionsSessionIdThreadsThreadIdStream = AgentSseEvent;
32574
+ export type PraxisSdkSseGetAutomationV1RunsIdEvents = ({
32575
+ /**
32576
+ * SSE event name: one of ai.praxis.automation.run.status, ai.praxis.automation.run.progress, ai.praxis.automation.call.started, ai.praxis.automation.call.completed, ai.praxis.automation.task.started, ai.praxis.automation.task.completed, ai.praxis.automation.wait.created, ai.praxis.automation.wait.resolved, naming the RunEvent type carried in data.
32577
+ */
32578
+ event?: 'ai.praxis.automation.run.status' | 'ai.praxis.automation.run.progress' | 'ai.praxis.automation.call.started' | 'ai.praxis.automation.call.completed' | 'ai.praxis.automation.task.started' | 'ai.praxis.automation.task.completed' | 'ai.praxis.automation.wait.created' | 'ai.praxis.automation.wait.resolved';
32579
+ data?: AutomationRunEvent;
32580
+ } | {
32581
+ /**
32582
+ * SSE event name end: sent once when the run has reached a terminal status, and the stream then closes.
32583
+ */
32584
+ event?: 'end';
32585
+ /**
32586
+ * Always an empty object for the end event.
32587
+ */
32588
+ data?: {
32589
+ [key: string]: unknown;
32590
+ };
32591
+ }) & {
32592
+ /**
32593
+ * 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.
32594
+ */
32595
+ id?: string;
32596
+ /**
32597
+ * SSE event name: one of ai.praxis.automation.run.status, ai.praxis.automation.run.progress, ai.praxis.automation.call.started, ai.praxis.automation.call.completed, ai.praxis.automation.task.started, ai.praxis.automation.task.completed, ai.praxis.automation.wait.created, ai.praxis.automation.wait.resolved, naming the RunEvent type carried in data; end is sent once when the run has reached a terminal status and closes the stream.
32598
+ */
32599
+ event: 'ai.praxis.automation.run.status' | 'ai.praxis.automation.run.progress' | 'ai.praxis.automation.call.started' | 'ai.praxis.automation.call.completed' | 'ai.praxis.automation.task.started' | 'ai.praxis.automation.task.completed' | 'ai.praxis.automation.wait.created' | 'ai.praxis.automation.wait.resolved' | 'end';
32600
+ /**
32601
+ * Decoded JSON of one run event, whose shape is selected by its type; for the end event, an empty object.
32602
+ */
32603
+ data: AutomationRunEvent | {
32604
+ [key: string]: unknown;
32605
+ };
32606
+ };
32607
+ export type PraxisSdkSseGetAutomationV1RunsIdLogs = ({
32608
+ /**
32609
+ * SSE event name: log, one log line is carried in data.
32610
+ */
32611
+ event?: 'log';
32612
+ data?: AutomationLogLine;
32613
+ } | {
32614
+ /**
32615
+ * SSE event name end: sent once when the run has reached a terminal status, and the stream then closes.
32616
+ */
32617
+ event?: 'end';
32618
+ /**
32619
+ * Always an empty object for the end event.
32620
+ */
32621
+ data?: {
32622
+ [key: string]: unknown;
32623
+ };
32624
+ }) & {
32625
+ /**
32626
+ * 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.
32627
+ */
32628
+ id?: string;
32629
+ /**
32630
+ * 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.
32631
+ */
32632
+ event: 'log' | 'end';
32633
+ /**
32634
+ * Decoded JSON of one log line; for the end event, an empty object.
32635
+ */
32636
+ data: AutomationLogLine | {
32637
+ [key: string]: unknown;
32638
+ };
32639
+ };
32640
+ /**
32641
+ * Free-form string key/value pairs stored with the agent for your own bookkeeping.
32642
+ */
32643
+ export type AgentManaged37Writable = {
32644
+ [key: string]: string;
32645
+ };
32646
+ /**
32647
+ * Models to use for completion
32648
+ */
32649
+ export type OpenaiChatModelNamesWritable = Array<OpenaiModelName & unknown>;
32650
+ /**
32651
+ * Free-form string key/value pairs stored with the session, changed through sessions.update patch semantics.
32652
+ */
32653
+ export type AgentManaged173Writable = {
32654
+ [key: string]: string;
32655
+ };
32656
+ export type AgentManaged183Writable = {
32657
+ [key: string]: null | string;
32658
+ };
32659
+ /**
32660
+ * Free-form string key/value pairs.
32661
+ */
32662
+ export type AgentManaged8Writable = {
32663
+ [key: string]: string;
32664
+ };
32665
+ export type AgentManaged58Writable = {
32666
+ [key: string]: null | string;
32667
+ };
32668
+ /**
32669
+ * Free-form string key/value pairs.
32670
+ */
32671
+ export type AgentManaged168Writable = {
32672
+ [key: string]: string;
32673
+ };
32674
+ /**
32675
+ * Arguments the model passed to the tool.
32676
+ */
32677
+ export type AgentManaged197Writable = {
32678
+ [key: string]: unknown;
32679
+ };
32680
+ /**
32681
+ * Arguments the model passed to the tool.
32682
+ */
32683
+ export type AgentManaged206Writable = {
32684
+ [key: string]: unknown;
32685
+ };
32686
+ /**
32687
+ * Session metadata after the change.
32688
+ */
32689
+ export type AgentManaged246Writable = {
32690
+ [key: string]: string;
32691
+ };
32692
+ /**
32693
+ * Free-form string key/value pairs.
32694
+ */
32695
+ export type AgentManaged144Writable = {
32696
+ [key: string]: null | string;
32697
+ };
32698
+ /**
32699
+ * Free-form string key/value pairs.
32700
+ */
32701
+ export type AgentManaged137Writable = {
32702
+ [key: string]: string;
32703
+ };
32704
+ /**
32705
+ * Free-form string key/value pairs.
32706
+ */
32707
+ export type AgentManaged91Writable = {
32708
+ [key: string]: string;
32709
+ };
32710
+ /**
32711
+ * Free-form string key/value pairs.
32712
+ */
32713
+ export type AgentManaged78Writable = {
32714
+ [key: string]: string;
32715
+ };
32716
+ export type AgentManaged112Writable = {
32717
+ [key: string]: null | string;
32718
+ };
32719
+ /**
32720
+ * Any JSON value: null, boolean, number, string, array or object.
32721
+ */
32722
+ export type AutomationJsonValueWritable = null | string | number | boolean | AutomationJsonObjectWritable | Array<AutomationJsonValueWritable>;
32723
+ /**
32724
+ * Any JSON object whose keys are strings and whose values are any JSON value.
32725
+ */
32726
+ export type AutomationJsonObjectWritable = {
32727
+ [key: string]: AutomationJsonValueWritable;
32728
+ };
32729
+ export type KnowledgeNativeSearchPageWritable = {
32730
+ /**
32731
+ * Object discriminator; vector_store.search_results.page identifies a search result page.
32732
+ */
32733
+ object: 'vector_store.search_results.page';
32734
+ /**
32735
+ * The queries used for retrieval, one per input query; rewritten when rewrite_query is true, otherwise the input as sent.
32736
+ */
32737
+ search_query: Array<string>;
32738
+ /**
32739
+ * One result per matched chunk; the same file_id can occur more than once.
32740
+ */
32741
+ data: Array<KnowledgeNativeSearchResultWritable>;
32742
+ /**
32743
+ * True when filtered chunks exceed max_num_results; next_page remains null.
32744
+ */
32745
+ has_more: boolean;
32746
+ /**
32747
+ * Always null; no next search page.
32748
+ */
32749
+ next_page: null;
32750
+ };
32751
+ /**
32752
+ * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
32753
+ */
32754
+ export type MediaLibraryWritable = {
32755
+ /**
32756
+ * Resolved model call IDs used for new uploads and reprocessing.
32757
+ */
32758
+ models: MediaMediaModelsWritable;
32759
+ /**
32760
+ * Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
32761
+ */
32762
+ id: MediaLibraryId;
32763
+ /**
32764
+ * Display name of the library; duplicate names are allowed.
32765
+ */
32766
+ name: string;
32767
+ /**
32768
+ * Caller-defined string labels used to organize and filter libraries.
32769
+ */
32770
+ labels: {
32771
+ [key: string]: string;
32772
+ };
32773
+ /**
32774
+ * 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.
32775
+ */
32776
+ status: MediaLibraryStatus;
32777
+ /**
32778
+ * Number of assets currently stored in the library.
32779
+ */
32780
+ asset_count: number;
32781
+ /**
32782
+ * Total source-content size of the library’s assets, in bytes.
32783
+ */
32784
+ bytes: number;
32785
+ /**
32786
+ * Settings controlling understanding tasks for new uploads.
32787
+ */
32788
+ understanding: MediaUnderstandingSettings;
32789
+ /**
32790
+ * Time the library was created, in UTC.
32791
+ */
32792
+ created_at: MediaIsoTimestamp;
32793
+ /**
32794
+ * Time library settings, lifecycle or usage were last updated, in UTC.
32795
+ */
32796
+ updated_at: MediaIsoTimestamp;
32797
+ /**
32798
+ * Time the library entered deleting, or null when active or restored.
32799
+ */
32800
+ deleted_at: MediaIsoTimestamp | null;
32801
+ /**
32802
+ * Scheduled purge time while the library is deleting; null for an active or restored library.
32803
+ */
32804
+ purge_at: MediaIsoTimestamp | null;
32805
+ };
32806
+ /**
32807
+ * Libraries in this page, ordered by creation time descending.
32808
+ */
32809
+ export type MediaLibraryPageWritable = MediaPage & {
32810
+ /**
32811
+ * Libraries in this page, ordered by creation time descending.
32812
+ */
32813
+ data: Array<MediaLibraryWritable>;
32814
+ /**
32815
+ * Opaque token to pass as cursor to listLibraries; null means no further page.
32816
+ */
32817
+ next_cursor: string | null;
32818
+ };
32819
+ /**
32820
+ * Assets in this page, ordered by creation time descending.
32821
+ */
32822
+ export type MediaAssetPageWritable = MediaPage & {
32823
+ /**
32824
+ * Assets in this page, ordered by creation time descending.
32825
+ */
32826
+ data: Array<MediaAssetWritable>;
32827
+ /**
32828
+ * Opaque token to pass as cursor to listAssets; null means no further page.
32829
+ */
32830
+ next_cursor: string | null;
32831
+ };
32832
+ /**
32833
+ * Upload response: a resource for a normal upload, an acknowledgement for an incomplete chunk, or a resource with done=true for the final chunk.
32834
+ */
32835
+ export type MediaUploadResultWritable = MediaCloudinaryResourceWritable | MediaChunkPending | MediaChunkCompleteWritable;
32836
+ /**
32837
+ * A media resource with its library, content hash, processing progress and semantic-search availability.
32838
+ */
32839
+ export type MediaAssetWritable = {
32840
+ /**
32841
+ * Generated asset identifier: 32 lowercase hexadecimal characters, preserved across overwrites.
32842
+ */
32843
+ asset_id: MediaAssetId;
32844
+ /**
32845
+ * Delivery identifier unique within this library, used in asset URLs.
32846
+ */
32847
+ public_id: string;
32848
+ /**
32849
+ * Human-readable asset name, independent of its delivery identifier.
32850
+ */
32851
+ display_name: string;
32852
+ /**
32853
+ * Organizational folder path; the empty string denotes the root folder.
32854
+ */
32855
+ asset_folder: string;
32856
+ /**
32857
+ * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
32858
+ */
32859
+ resource_type: MediaResourceType;
32860
+ /**
32861
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
32862
+ */
32863
+ type: MediaDeliveryType;
32864
+ /**
32865
+ * Detected file format used as the delivery URL extension.
32866
+ */
32867
+ format: string;
32868
+ /**
32869
+ * Monotonically increasing asset version used in delivery URLs; based on upload time in Unix seconds and advanced on overwrite.
32870
+ */
32871
+ version: number;
32872
+ /**
32873
+ * Identifier for this asset version, regenerated on overwrite.
32874
+ */
32875
+ version_id: string;
32876
+ /**
32877
+ * Size of the original source content, in bytes.
32878
+ */
32879
+ bytes: number;
32880
+ /**
32881
+ * MD5 digest of the source bytes, as 32 lowercase hexadecimal characters.
32882
+ */
32883
+ etag: string;
32884
+ /**
32885
+ * Source image or video width in pixels, when known.
32886
+ */
32887
+ width?: number;
32888
+ /**
32889
+ * Source image or video height in pixels, when known.
32890
+ */
32891
+ height?: number;
32892
+ /**
32893
+ * Source audio or video duration in seconds, when known.
32894
+ */
32895
+ duration?: number;
32896
+ /**
32897
+ * Number of pages recorded for the asset; omitted when no page count is stored.
32898
+ */
32899
+ pages?: number;
32900
+ /**
32901
+ * True for audio-only media, which uses resource_type video.
32902
+ */
32903
+ is_audio?: boolean;
32904
+ /**
32905
+ * Detected audio track metadata, omitted when no audio track information is available.
32906
+ */
32907
+ audio?: {
32908
+ /**
32909
+ * Detected audio codec identifier, when known.
32910
+ */
32911
+ codec?: string;
32912
+ /**
32913
+ * Number of audio channels in the detected track, when known.
32914
+ */
32915
+ channels?: number;
32916
+ /**
32917
+ * Audio sampling frequency in hertz, when known.
32918
+ */
32919
+ frequency?: number;
32920
+ };
32921
+ /**
32922
+ * False when the video is known to contain no audio track; omitted when audio presence is unknown or an audio track exists.
32923
+ */
32924
+ has_audio?: false;
32925
+ /**
32926
+ * Original or overridden source filename with its final extension removed.
32927
+ */
32928
+ original_filename?: string;
32929
+ /**
32930
+ * Labels attached to the asset.
32931
+ */
32932
+ tags: Array<string>;
32933
+ /**
32934
+ * Custom string metadata; omitted when empty or excluded by the search projection.
32935
+ */
32936
+ context?: {
32937
+ /**
32938
+ * Caller-supplied metadata entries with string values.
32939
+ */
32940
+ custom: {
32941
+ [key: string]: string;
32942
+ };
32943
+ };
32944
+ /**
32945
+ * Time this asset identity was created, in UTC.
32946
+ */
32947
+ created_at: MediaIsoTimestamp;
32948
+ /**
32949
+ * URL for retrieving this version of the asset’s original content.
32950
+ */
32951
+ url: string;
32952
+ /**
32953
+ * 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.
32954
+ */
32955
+ secure_url: string;
32956
+ /**
32957
+ * False because this response represents stored source content.
32958
+ */
32959
+ placeholder: false;
32960
+ /**
32961
+ * True when overwrite is false and the public_id already exists; the existing resource is returned.
32962
+ */
32963
+ existing?: boolean;
32964
+ /**
32965
+ * Progress of understanding and embedding tasks for the asset.
32966
+ */
32967
+ processing: MediaProcessingWritable;
32968
+ /**
32969
+ * Identifier of the library containing this asset.
32970
+ */
32971
+ library_id: MediaLibraryId;
32972
+ /**
32973
+ * SHA-256 digest of the source bytes, as 64 lowercase hexadecimal characters.
32974
+ */
32975
+ sha256: string;
32976
+ /**
32977
+ * Resource status; active identifies an asset that has not been deleted.
32978
+ */
32979
+ status: 'active';
32980
+ /**
32981
+ * 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.
32982
+ */
32983
+ semantic: 'pending' | 'ready' | 'unavailable';
32984
+ /**
32985
+ * Generated video previews, present once preview generation succeeds.
32986
+ */
32987
+ preview?: {
32988
+ /**
32989
+ * Delivery URL of the video’s first-frame poster.
32990
+ */
32991
+ poster_url?: string;
32992
+ /**
32993
+ * Preview sprite sheet with tile dimensions and sample spacing.
32994
+ */
32995
+ storyboard?: MediaStoryboard;
32996
+ /**
32997
+ * Low-bitrate proxy renditions for smooth playback while editing; exports use the original source.
32998
+ */
32999
+ proxy?: {
33000
+ /**
33001
+ * Proxy audio rendition, present once it has been generated.
33002
+ */
33003
+ audio?: {
33004
+ /**
33005
+ * Delivery URL of the proxy audio rendition.
33006
+ */
33007
+ url: string;
33008
+ /**
33009
+ * Proxy audio bitrate in bits per second.
33010
+ */
33011
+ bitrate: number;
33012
+ };
33013
+ /**
33014
+ * Proxy video rendition, present once it has been generated.
33015
+ */
33016
+ video?: {
33017
+ /**
33018
+ * Delivery URL of the proxy video rendition.
33019
+ */
33020
+ url: string;
33021
+ /**
33022
+ * Proxy video bitrate in bits per second.
33023
+ */
33024
+ bitrate: number;
33025
+ /**
33026
+ * Proxy video frame width in pixels.
33027
+ */
33028
+ width: number;
33029
+ /**
33030
+ * Proxy video frame height in pixels.
33031
+ */
33032
+ height: number;
33033
+ };
33034
+ };
33035
+ };
33036
+ /**
33037
+ * Source details for the video-generation job that created this asset.
33038
+ */
33039
+ generation?: {
33040
+ /**
33041
+ * Job id that generated this asset.
33042
+ */
33043
+ job_id: MediaJobId;
33044
+ /**
33045
+ * Generation intent used to create the asset; v1 supports video.generate.
33046
+ */
33047
+ intent: string;
33048
+ /**
33049
+ * Text prompt submitted for the generation job.
33050
+ */
33051
+ prompt: string;
33052
+ /**
33053
+ * Router video-generation model that produced the asset.
33054
+ */
33055
+ model: string;
33056
+ };
33057
+ };
33058
+ /**
33059
+ * Understanding results in this page, ordered by creation time ascending.
33060
+ */
33061
+ export type MediaUnderstandingPageWritable = MediaPage & {
33062
+ /**
33063
+ * Understanding results in this page, ordered by creation time ascending.
33064
+ */
33065
+ data: Array<MediaUnderstandingWritable>;
33066
+ /**
33067
+ * Opaque token to pass as cursor to listUnderstandings; null means no further page.
33068
+ */
33069
+ next_cursor: string | null;
33070
+ };
33071
+ /**
33072
+ * Expression-search page with match counts, elapsed time and optional facet counts.
33073
+ */
33074
+ export type MediaExpressionSearchResultWritable = {
33075
+ /**
33076
+ * Number of matching assets across pages; a lower bound when total_count_exact is false.
33077
+ */
33078
+ total_count: number;
33079
+ /**
33080
+ * Elapsed search time in whole milliseconds.
33081
+ */
33082
+ time: number;
33083
+ /**
33084
+ * Continuation token for the next page; omitted when no further page is available.
33085
+ */
33086
+ next_cursor?: string;
33087
+ /**
33088
+ * Assets in this page, ordered by sort_by; tags and context follow with_field.
33089
+ */
33090
+ resources: Array<MediaSearchAssetWritable>;
33091
+ /**
33092
+ * Requested facet counts, keyed by facet name and then by field value.
33093
+ */
33094
+ aggregations?: {
33095
+ [key: string]: {
33096
+ [key: string]: number;
33097
+ };
33098
+ };
33099
+ /**
33100
+ * Whether total_count covers all matches; false indicates a bounded partial count.
33101
+ */
33102
+ total_count_exact?: boolean;
33103
+ /**
33104
+ * Whether the returned facet counts cover all matching assets.
33105
+ */
33106
+ aggregations_exact?: boolean;
33107
+ };
33108
+ /**
33109
+ * Ranked search hits and the embedding producer used for the query.
33110
+ */
33111
+ export type MediaSemanticSearchResultWritable = {
33112
+ /**
33113
+ * Ranked assets up to top_k; an empty array means no eligible matches were found.
33114
+ */
33115
+ hits: Array<MediaSemanticHitWritable>;
33116
+ /**
33117
+ * Embedding model identifier used for the query, or for the source asset embedding in an asset-based visual query.
33118
+ */
33119
+ embedding_producer: string;
33120
+ /**
33121
+ * 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.
33122
+ */
33123
+ not_ready_excluded: number;
33124
+ };
33125
+ /**
33126
+ * Configuration for the openrouter:files server tool
33127
+ */
33128
+ export type OpenaiFilesServerToolConfigWritable = {
33129
+ [key: string]: unknown;
33130
+ };
33131
+ export type AnthropicAnonymousWritable = {
33132
+ [key: string]: unknown;
33133
+ };
33134
+ export type AnthropicAnonymous140Writable = {
33135
+ [key: string]: unknown;
33136
+ };
33137
+ export type AnthropicAnonymous142Writable = {
33138
+ [key: string]: unknown;
33139
+ };
33140
+ export type AnthropicAnonymous181Writable = {
33141
+ [key: string]: unknown;
33142
+ };
33143
+ export type AnthropicAnonymous202Writable = {
33144
+ [key: string]: unknown;
33145
+ };
33146
+ export type AnthropicAnonymous204Writable = {
33147
+ [key: string]: unknown;
33148
+ };
33149
+ export type AnthropicAnonymous206Writable = {
33150
+ [key: string]: unknown;
33151
+ };
33152
+ /**
33153
+ * Arguments the model passed to the tool.
33154
+ */
33155
+ export type AgentManaged193Writable = {
33156
+ [key: string]: unknown;
33157
+ };
33158
+ /**
33159
+ * Free-form string key/value pairs.
33160
+ */
33161
+ export type AgentManaged143Writable = {
33162
+ [key: string]: string;
33163
+ };
33164
+ export type KnowledgeNativeSearchResultWritable = {
33165
+ /**
33166
+ * Resource ID.
33167
+ */
33168
+ file_id: string;
33169
+ /**
33170
+ * Original source filename for the matched file.
33171
+ */
33172
+ filename: string;
33173
+ /**
33174
+ * Relevance ranking score for this chunk, clamped to the range 0 to 1; not a probability.
33175
+ */
33176
+ score: number;
33177
+ /**
33178
+ * Current file attributes used for filtering; null when unset.
33179
+ */
33180
+ attributes: KnowledgeAttributes | null;
33181
+ /**
33182
+ * Matched chunk text and its source coordinates; one chunk per native result.
33183
+ */
33184
+ content: Array<{
33185
+ /**
33186
+ * text identifies an extracted text chunk.
33187
+ */
33188
+ type: 'text';
33189
+ /**
33190
+ * Extracted text of the matched chunk, which may overlap neighboring chunks.
33191
+ */
33192
+ text: string;
33193
+ /**
33194
+ * Resource ID.
33195
+ */
33196
+ chunk_id?: string;
33197
+ /**
33198
+ * One-based source page containing the start of this chunk; null when no page mapping is available.
33199
+ */
33200
+ page?: number | null;
33201
+ /**
33202
+ * Start and end offsets in UTF-16 code units.
33203
+ */
33204
+ span?: [
33205
+ number,
33206
+ number
33207
+ ];
33208
+ }>;
33209
+ /**
33210
+ * Native search explanation, included only when praxis.explain is requested.
33211
+ */
33212
+ praxis?: {
33213
+ explain: KnowledgeSearchExplain;
33214
+ };
33215
+ };
33216
+ /**
33217
+ * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
33218
+ */
33219
+ export type MediaMediaModelsWritable = {
33220
+ /**
33221
+ * Model call ID for visual descriptions; the model must support image input.
33222
+ */
33223
+ vision: string;
33224
+ /**
33225
+ * Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
33226
+ */
33227
+ embedding: string;
33228
+ /**
33229
+ * 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.
33230
+ */
33231
+ transcription: string;
33232
+ };
33233
+ /**
33234
+ * Cloudinary-compatible resource. processing is present when the asset was uploaded with auto_tagging; otherwise it is omitted. Native Asset responses always include processing.
33235
+ */
33236
+ export type MediaCloudinaryResourceWritable = {
33237
+ /**
33238
+ * Generated asset identifier: 32 lowercase hexadecimal characters, preserved across overwrites.
33239
+ */
33240
+ asset_id: MediaAssetId;
33241
+ /**
33242
+ * Delivery identifier unique within this library, used in asset URLs.
33243
+ */
33244
+ public_id: string;
33245
+ /**
33246
+ * Human-readable asset name, independent of its delivery identifier.
33247
+ */
33248
+ display_name: string;
33249
+ /**
33250
+ * Organizational folder path; the empty string denotes the root folder.
33251
+ */
33252
+ asset_folder: string;
33253
+ /**
33254
+ * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
33255
+ */
33256
+ resource_type: MediaResourceType;
33257
+ /**
33258
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
33259
+ */
33260
+ type: MediaDeliveryType;
33261
+ /**
33262
+ * Detected file format used as the delivery URL extension.
33263
+ */
33264
+ format: string;
33265
+ /**
33266
+ * Monotonically increasing asset version used in delivery URLs; based on upload time in Unix seconds and advanced on overwrite.
33267
+ */
33268
+ version: number;
33269
+ /**
33270
+ * Identifier for this asset version, regenerated on overwrite.
33271
+ */
33272
+ version_id: string;
33273
+ /**
33274
+ * Size of the original source content, in bytes.
33275
+ */
33276
+ bytes: number;
33277
+ /**
33278
+ * MD5 digest of the source bytes, as 32 lowercase hexadecimal characters.
33279
+ */
33280
+ etag: string;
33281
+ /**
33282
+ * Source image or video width in pixels, when known.
33283
+ */
33284
+ width?: number;
33285
+ /**
33286
+ * Source image or video height in pixels, when known.
33287
+ */
33288
+ height?: number;
33289
+ /**
33290
+ * Source audio or video duration in seconds, when known.
33291
+ */
33292
+ duration?: number;
33293
+ /**
33294
+ * Number of pages recorded for the asset; omitted when no page count is stored.
33295
+ */
33296
+ pages?: number;
33297
+ /**
33298
+ * True for audio-only media, which uses resource_type video.
33299
+ */
33300
+ is_audio?: boolean;
33301
+ /**
33302
+ * Detected audio track metadata, omitted when no audio track information is available.
33303
+ */
33304
+ audio?: {
33305
+ /**
33306
+ * Detected audio codec identifier, when known.
33307
+ */
33308
+ codec?: string;
33309
+ /**
33310
+ * Number of audio channels in the detected track, when known.
33311
+ */
33312
+ channels?: number;
33313
+ /**
33314
+ * Audio sampling frequency in hertz, when known.
33315
+ */
33316
+ frequency?: number;
33317
+ };
33318
+ /**
33319
+ * False when the video is known to contain no audio track; omitted when audio presence is unknown or an audio track exists.
33320
+ */
33321
+ has_audio?: false;
33322
+ /**
33323
+ * Original or overridden source filename with its final extension removed.
33324
+ */
33325
+ original_filename?: string;
33326
+ /**
33327
+ * Labels attached to the asset.
33328
+ */
33329
+ tags: Array<string>;
33330
+ /**
33331
+ * Custom string metadata; omitted when empty or excluded by the search projection.
33332
+ */
33333
+ context?: {
33334
+ /**
33335
+ * Caller-supplied metadata entries with string values.
33336
+ */
33337
+ custom: {
33338
+ [key: string]: string;
33339
+ };
33340
+ };
33341
+ /**
33342
+ * Time this asset identity was created, in UTC.
33343
+ */
33344
+ created_at: MediaIsoTimestamp;
33345
+ /**
33346
+ * URL for retrieving this version of the asset’s original content.
33347
+ */
33348
+ url: string;
33349
+ /**
33350
+ * 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.
33351
+ */
33352
+ secure_url: string;
33353
+ /**
33354
+ * False because this response represents stored source content.
33355
+ */
33356
+ placeholder: false;
33357
+ /**
33358
+ * True when overwrite=false returns the asset already stored under the requested public_id.
33359
+ */
33360
+ existing?: boolean;
33361
+ /**
33362
+ * Processing progress, included when auto_tagging was requested.
33363
+ */
33364
+ processing?: MediaProcessingWritable;
33365
+ };
33366
+ export type MediaChunkCompleteWritable = MediaCloudinaryResourceWritable & {
33367
+ /**
33368
+ * True when the final chunk has completed the asset upload.
33369
+ */
33370
+ done: true;
33371
+ };
33372
+ /**
33373
+ * 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.
33374
+ */
33375
+ export type MediaProcessingWritable = {
33376
+ state: MediaProcessingState;
33377
+ /**
33378
+ * Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
33379
+ */
33380
+ kinds: {
33381
+ [key: string]: MediaKindState;
33382
+ };
33383
+ /**
33384
+ * Time the processing state was last updated, in UTC.
33385
+ */
33386
+ updated_at: MediaIsoTimestamp;
33387
+ };
33388
+ /**
33389
+ * An immutable understanding result for an asset version, including superseded history when requested.
33390
+ */
33391
+ export type MediaUnderstandingWritable = {
33392
+ /**
33393
+ * Generated identifier of this understanding result.
33394
+ */
33395
+ id: MediaUnderstandingId;
33396
+ /**
33397
+ * Identifier of the asset from which this result was produced.
33398
+ */
33399
+ asset_id: MediaAssetId;
33400
+ /**
33401
+ * Asset version processed to produce this result; compare with the asset’s current version.
33402
+ */
33403
+ asset_version: number;
33404
+ /**
33405
+ * 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.
33406
+ */
33407
+ kind: MediaUnderstandingKind;
33408
+ /**
33409
+ * Producer model identifier; a failure may use the configured model when no model response is available.
33410
+ */
33411
+ producer: string;
33412
+ /**
33413
+ * Version of the producer that generated this understanding result.
33414
+ */
33415
+ producer_version: string;
33416
+ /**
33417
+ * Source-media time range for a frame or transcript segment; null for results without a segment.
33418
+ */
33419
+ segment: MediaSegment | null;
33420
+ /**
33421
+ * Result status: ready contains completed output; failed records an error.
33422
+ */
33423
+ status: 'ready' | 'failed';
33424
+ /**
33425
+ * Text output, such as a caption, recognized text or transcript; null for structured-only or failed results.
33426
+ */
33427
+ content: string | null;
33428
+ /**
33429
+ * 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.
33430
+ */
33431
+ data: unknown | null;
33432
+ /**
33433
+ * Confidence value recorded by the producer; null when no confidence value is recorded.
33434
+ */
33435
+ confidence: number | null;
33436
+ /**
33437
+ * Failure code and message, or null for a successful result.
33438
+ */
33439
+ error: {
33440
+ /**
33441
+ * Failure code identifying why understanding could not complete.
33442
+ */
33443
+ code: string;
33444
+ /**
33445
+ * Human-readable explanation of the understanding failure.
33446
+ */
33447
+ message: string;
33448
+ } | null;
33449
+ /**
33450
+ * Whether a newer result or asset version has replaced this result. Excluded from listing unless include_superseded is true.
33451
+ */
33452
+ superseded: boolean;
33453
+ /**
33454
+ * Time this immutable result was recorded, in UTC.
33455
+ */
33456
+ created_at: MediaIsoTimestamp;
33457
+ };
33458
+ /**
33459
+ * A native asset returned by expression search; tags and context are included only when requested in with_field.
33460
+ */
33461
+ export type MediaSearchAssetWritable = {
33462
+ /**
33463
+ * Generated asset identifier: 32 lowercase hexadecimal characters, preserved across overwrites.
33464
+ */
33465
+ asset_id: MediaAssetId;
33466
+ /**
33467
+ * Delivery identifier unique within this library, used in asset URLs.
33468
+ */
33469
+ public_id: string;
33470
+ /**
33471
+ * Human-readable asset name, independent of its delivery identifier.
33472
+ */
33473
+ display_name: string;
33474
+ /**
33475
+ * Organizational folder path; the empty string denotes the root folder.
33476
+ */
33477
+ asset_folder: string;
33478
+ /**
33479
+ * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
33480
+ */
33481
+ resource_type: MediaResourceType;
33482
+ /**
33483
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
33484
+ */
33485
+ type: MediaDeliveryType;
33486
+ /**
33487
+ * Detected file format used as the delivery URL extension.
31740
33488
  */
31741
- event?: string;
33489
+ format: string;
31742
33490
  /**
31743
- * 完整 SDK RawMessageStreamEvent union
33491
+ * Monotonically increasing asset version used in delivery URLs; based on upload time in Unix seconds and advanced on overwrite.
31744
33492
  */
31745
- data: AnthropicRawMessageDeltaEvent | AnthropicRawContentBlockDeltaEvent | AnthropicRawMessageStartEvent | AnthropicRawMessageStopEvent | AnthropicRawContentBlockStartEvent | AnthropicRawContentBlockStopEvent;
31746
- };
31747
- export type PraxisSdkSseGetAgentV1SessionsSessionIdEventsStream = AgentSseEvent;
31748
- export type PraxisSdkSseGetAgentV1SessionsSessionIdThreadsThreadIdStream = AgentSseEvent;
31749
- export type PraxisSdkSseGetAutomationV1RunsIdEvents = ({
33493
+ version: number;
31750
33494
  /**
31751
- * SSE event name: one of ai.praxis.automation.run.status, ai.praxis.automation.run.progress, ai.praxis.automation.call.started, ai.praxis.automation.call.completed, ai.praxis.automation.task.started, ai.praxis.automation.task.completed, ai.praxis.automation.wait.created, ai.praxis.automation.wait.resolved, naming the RunEvent type carried in data.
33495
+ * Identifier for this asset version, regenerated on overwrite.
31752
33496
  */
31753
- event?: 'ai.praxis.automation.run.status' | 'ai.praxis.automation.run.progress' | 'ai.praxis.automation.call.started' | 'ai.praxis.automation.call.completed' | 'ai.praxis.automation.task.started' | 'ai.praxis.automation.task.completed' | 'ai.praxis.automation.wait.created' | 'ai.praxis.automation.wait.resolved';
31754
- data?: AutomationRunEvent;
31755
- } | {
33497
+ version_id: string;
31756
33498
  /**
31757
- * SSE event name end: sent once when the run has reached a terminal status, and the stream then closes.
33499
+ * Size of the original source content, in bytes.
31758
33500
  */
31759
- event?: 'end';
33501
+ bytes: number;
31760
33502
  /**
31761
- * Always an empty object for the end event.
33503
+ * MD5 digest of the source bytes, as 32 lowercase hexadecimal characters.
31762
33504
  */
31763
- data?: {
31764
- [key: string]: unknown;
31765
- };
31766
- }) & {
33505
+ etag: string;
31767
33506
  /**
31768
- * 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.
33507
+ * Source image or video width in pixels, when known.
31769
33508
  */
31770
- id?: string;
33509
+ width?: number;
31771
33510
  /**
31772
- * SSE event name: one of ai.praxis.automation.run.status, ai.praxis.automation.run.progress, ai.praxis.automation.call.started, ai.praxis.automation.call.completed, ai.praxis.automation.task.started, ai.praxis.automation.task.completed, ai.praxis.automation.wait.created, ai.praxis.automation.wait.resolved, naming the RunEvent type carried in data; end is sent once when the run has reached a terminal status and closes the stream.
33511
+ * Source image or video height in pixels, when known.
31773
33512
  */
31774
- event: 'ai.praxis.automation.run.status' | 'ai.praxis.automation.run.progress' | 'ai.praxis.automation.call.started' | 'ai.praxis.automation.call.completed' | 'ai.praxis.automation.task.started' | 'ai.praxis.automation.task.completed' | 'ai.praxis.automation.wait.created' | 'ai.praxis.automation.wait.resolved' | 'end';
33513
+ height?: number;
31775
33514
  /**
31776
- * Decoded JSON of one run event, whose shape is selected by its type; for the end event, an empty object.
33515
+ * Source audio or video duration in seconds, when known.
31777
33516
  */
31778
- data: AutomationRunEvent | {
31779
- [key: string]: unknown;
31780
- };
31781
- };
31782
- export type PraxisSdkSseGetAutomationV1RunsIdLogs = ({
33517
+ duration?: number;
31783
33518
  /**
31784
- * SSE event name: log, one log line is carried in data.
33519
+ * Number of pages recorded for the asset; omitted when no page count is stored.
31785
33520
  */
31786
- event?: 'log';
31787
- data?: AutomationLogLine;
31788
- } | {
33521
+ pages?: number;
31789
33522
  /**
31790
- * SSE event name end: sent once when the run has reached a terminal status, and the stream then closes.
33523
+ * True for audio-only media, which uses resource_type video.
31791
33524
  */
31792
- event?: 'end';
33525
+ is_audio?: boolean;
31793
33526
  /**
31794
- * Always an empty object for the end event.
33527
+ * Detected audio track metadata, omitted when no audio track information is available.
31795
33528
  */
31796
- data?: {
31797
- [key: string]: unknown;
33529
+ audio?: {
33530
+ /**
33531
+ * Detected audio codec identifier, when known.
33532
+ */
33533
+ codec?: string;
33534
+ /**
33535
+ * Number of audio channels in the detected track, when known.
33536
+ */
33537
+ channels?: number;
33538
+ /**
33539
+ * Audio sampling frequency in hertz, when known.
33540
+ */
33541
+ frequency?: number;
31798
33542
  };
31799
- }) & {
31800
33543
  /**
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.
33544
+ * False when the video is known to contain no audio track; omitted when audio presence is unknown or an audio track exists.
31802
33545
  */
31803
- id?: string;
33546
+ has_audio?: false;
31804
33547
  /**
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.
33548
+ * Original or overridden source filename with its final extension removed.
31806
33549
  */
31807
- event: 'log' | 'end';
33550
+ original_filename?: string;
31808
33551
  /**
31809
- * Decoded JSON of one log line; for the end event, an empty object.
33552
+ * Labels attached to the asset.
31810
33553
  */
31811
- data: AutomationLogLine | {
31812
- [key: string]: unknown;
33554
+ tags?: Array<string>;
33555
+ /**
33556
+ * Custom string metadata; omitted when empty or excluded by the search projection.
33557
+ */
33558
+ context?: {
33559
+ /**
33560
+ * Caller-supplied metadata entries with string values.
33561
+ */
33562
+ custom: {
33563
+ [key: string]: string;
33564
+ };
31813
33565
  };
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 = {
31908
33566
  /**
31909
- * Resolved model call IDs used for new uploads and reprocessing.
33567
+ * Time this asset identity was created, in UTC.
31910
33568
  */
31911
- models: MediaMediaModels;
33569
+ created_at: MediaIsoTimestamp;
31912
33570
  /**
31913
- * Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
33571
+ * URL for retrieving this version of the asset’s original content.
31914
33572
  */
31915
- id: MediaLibraryId;
33573
+ url: string;
31916
33574
  /**
31917
- * Display name of the library; duplicate names are allowed.
33575
+ * 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.
31918
33576
  */
31919
- name: string;
33577
+ secure_url: string;
31920
33578
  /**
31921
- * Caller-defined string labels used to organize and filter libraries.
33579
+ * False because this response represents stored source content.
31922
33580
  */
31923
- labels: {
31924
- [key: string]: string;
31925
- };
33581
+ placeholder: false;
31926
33582
  /**
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.
33583
+ * True when overwrite is false and the public_id already exists; the existing resource is returned.
31928
33584
  */
31929
- status: MediaLibraryStatus;
33585
+ existing?: boolean;
31930
33586
  /**
31931
- * Number of assets currently stored in the library.
33587
+ * Progress of understanding and embedding tasks for the asset.
31932
33588
  */
31933
- asset_count: number;
33589
+ processing: MediaProcessingWritable;
31934
33590
  /**
31935
- * Total source-content size of the library’s assets, in bytes.
33591
+ * Identifier of the library containing this asset.
31936
33592
  */
31937
- bytes: number;
33593
+ library_id: MediaLibraryId;
31938
33594
  /**
31939
- * Settings controlling understanding tasks for new uploads.
33595
+ * SHA-256 digest of the source bytes, as 64 lowercase hexadecimal characters.
31940
33596
  */
31941
- understanding: MediaUnderstandingSettings;
33597
+ sha256: string;
31942
33598
  /**
31943
- * Time the library was created, in UTC.
33599
+ * Resource status; active identifies an asset that has not been deleted.
31944
33600
  */
31945
- created_at: MediaIsoTimestamp;
33601
+ status: 'active';
31946
33602
  /**
31947
- * Time library settings, lifecycle or usage were last updated, in UTC.
33603
+ * 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.
31948
33604
  */
31949
- updated_at: MediaIsoTimestamp;
33605
+ semantic: 'pending' | 'ready' | 'unavailable';
31950
33606
  /**
31951
- * Time the library entered deleting, or null when active or restored.
33607
+ * Generated video previews, present once preview generation succeeds.
31952
33608
  */
31953
- deleted_at: MediaIsoTimestamp | null;
33609
+ preview?: {
33610
+ /**
33611
+ * Delivery URL of the video’s first-frame poster.
33612
+ */
33613
+ poster_url?: string;
33614
+ /**
33615
+ * Preview sprite sheet with tile dimensions and sample spacing.
33616
+ */
33617
+ storyboard?: MediaStoryboard;
33618
+ /**
33619
+ * Low-bitrate proxy renditions for smooth playback while editing; exports use the original source.
33620
+ */
33621
+ proxy?: {
33622
+ /**
33623
+ * Proxy audio rendition, present once it has been generated.
33624
+ */
33625
+ audio?: {
33626
+ /**
33627
+ * Delivery URL of the proxy audio rendition.
33628
+ */
33629
+ url: string;
33630
+ /**
33631
+ * Proxy audio bitrate in bits per second.
33632
+ */
33633
+ bitrate: number;
33634
+ };
33635
+ /**
33636
+ * Proxy video rendition, present once it has been generated.
33637
+ */
33638
+ video?: {
33639
+ /**
33640
+ * Delivery URL of the proxy video rendition.
33641
+ */
33642
+ url: string;
33643
+ /**
33644
+ * Proxy video bitrate in bits per second.
33645
+ */
33646
+ bitrate: number;
33647
+ /**
33648
+ * Proxy video frame width in pixels.
33649
+ */
33650
+ width: number;
33651
+ /**
33652
+ * Proxy video frame height in pixels.
33653
+ */
33654
+ height: number;
33655
+ };
33656
+ };
33657
+ };
31954
33658
  /**
31955
- * Scheduled purge time while the library is deleting; null for an active or restored library.
33659
+ * Source details for the video-generation job that created this asset.
31956
33660
  */
31957
- purge_at: MediaIsoTimestamp | null;
33661
+ generation?: {
33662
+ /**
33663
+ * Job id that generated this asset.
33664
+ */
33665
+ job_id: MediaJobId;
33666
+ /**
33667
+ * Generation intent used to create the asset; v1 supports video.generate.
33668
+ */
33669
+ intent: string;
33670
+ /**
33671
+ * Text prompt submitted for the generation job.
33672
+ */
33673
+ prompt: string;
33674
+ /**
33675
+ * Router video-generation model that produced the asset.
33676
+ */
33677
+ model: string;
33678
+ };
31958
33679
  };
31959
33680
  /**
31960
- * Libraries in this page, ordered by creation time descending.
33681
+ * A matching asset with its ranking score and supporting matches.
31961
33682
  */
31962
- export type MediaLibraryPageWritable = MediaPage & {
33683
+ export type MediaSemanticHitWritable = {
31963
33684
  /**
31964
- * Libraries in this page, ordered by creation time descending.
33685
+ * Asset matched by the query.
31965
33686
  */
31966
- data: Array<MediaLibraryWritable>;
33687
+ asset: MediaAssetWritable;
31967
33688
  /**
31968
- * Opaque token to pass as cursor to listLibraries; null means no further page.
33689
+ * 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
33690
  */
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;
33691
+ score: number;
33692
+ /**
33693
+ * Cosine similarity for hybrid hits with a semantic match; null for keyword-only hybrid hits. Omitted outside hybrid mode.
33694
+ */
33695
+ semantic_score?: number | null;
33696
+ /**
33697
+ * Supporting content or metadata matches contributing to this asset’s hit.
33698
+ */
33699
+ matches: Array<MediaSemanticMatch>;
31998
33700
  };
31999
- /**
32000
- * Arguments the model passed to the tool.
32001
- */
32002
- export type AgentManaged193Writable = {
33701
+ export type AgentManaged34Writable = {
32003
33702
  [key: string]: unknown;
32004
33703
  };
32005
- /**
32006
- * Free-form string key/value pairs.
32007
- */
32008
- export type AgentManaged143Writable = {
32009
- [key: string]: string;
32010
- };
32011
- export type AgentManaged34Writable = {
33704
+ export type MediaTranscriptCorrectionWritable = {
32012
33705
  [key: string]: unknown;
32013
33706
  };
32014
33707
  /**
@@ -42613,7 +44306,7 @@ export type FileCreateSignedUploadResponse = FileCreateSignedUploadResponses[key
42613
44306
  export type FileCreateContentUrlData = {
42614
44307
  body?: {
42615
44308
  /**
42616
- * Download link lifetime in seconds, from 1 through 604800; omitted means 3600. This does not change the file's own expiry.
44309
+ * Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.
42617
44310
  */
42618
44311
  ttl_seconds?: number;
42619
44312
  };
@@ -44159,31 +45852,29 @@ export type CreateSystemoneResponse = CreateSystemoneResponses[keyof CreateSyste
44159
45852
  export type CreateAudioTranscriptionData = {
44160
45853
  body: {
44161
45854
  /**
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.
45855
+ * Model catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix.
44163
45856
  */
44164
45857
  model: string;
44165
45858
  /**
44166
- * Audio file to transcribe, uploaded as multipart/form-data. Router support (supported): Verified to take effect.
45859
+ * Audio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model.
44167
45860
  */
44168
45861
  file: Blob | File;
44169
45862
  /**
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.
45863
+ * Source language code when known; omit to let the model detect the language.
44171
45864
  */
44172
45865
  language?: string;
44173
45866
  /**
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.
45867
+ * Optional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model.
44175
45868
  */
44176
45869
  prompt?: string;
44177
45870
  /**
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.
45871
+ * 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
45872
  */
44180
- response_format?: 'json' | 'text' | 'verbose_json';
45873
+ response_format?: 'json' | 'text' | 'verbose_json' | 'diarized_json';
44181
45874
  /**
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.
45875
+ * 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
45876
  */
44184
- 'timestamp_granularities[]'?: [
44185
- 'segment'
44186
- ];
45877
+ 'timestamp_granularities[]'?: Array<'word' | 'segment'>;
44187
45878
  /**
44188
45879
  * Both whisper-large-v3-turbo and qwen3-asr-flash return 400.
44189
45880
  */
@@ -44195,11 +45886,11 @@ export type CreateAudioTranscriptionData = {
44195
45886
  };
44196
45887
  export type CreateAudioTranscriptionErrors = {
44197
45888
  /**
44198
- * Unsupported or unrepresentable parameter.
45889
+ * A field
44199
45890
  */
44200
45891
  400: unknown;
44201
45892
  /**
44202
- * No eligible model route.
45893
+ * No provider route supports this request; select an available model and its declared transcription features.
44203
45894
  */
44204
45895
  503: unknown;
44205
45896
  };
@@ -44209,58 +45900,79 @@ export type CreateAudioTranscriptionResponses = {
44209
45900
  */
44210
45901
  200: {
44211
45902
  /**
44212
- * The transcribed text.
45903
+ * Recognized speech text in the original language.
44213
45904
  */
44214
45905
  text: string;
44215
45906
  /**
44216
- * Task performed; always `transcribe`.
45907
+ * transcribe identifies speech-to-text transcription.
44217
45908
  */
44218
45909
  task?: 'transcribe';
44219
45910
  /**
44220
- * Language of the audio as detected or as requested.
45911
+ * Detected or requested source language code.
44221
45912
  */
44222
45913
  language?: string;
44223
45914
  /**
44224
- * Duration of the audio in seconds.
45915
+ * Audio duration in seconds when provided by the model.
44225
45916
  */
44226
45917
  duration?: number;
44227
45918
  /**
44228
- * Segments with timestamps, returned with `verbose_json` on models that support it.
45919
+ * Time-aligned speech segments when returned by the selected model and response format.
44229
45920
  */
44230
45921
  segments?: Array<{
44231
45922
  /**
44232
- * Zero-based index of the segment.
45923
+ * Segment identifier within this transcription response.
44233
45924
  */
44234
45925
  id: number;
44235
45926
  /**
44236
- * Start time of the segment in seconds.
45927
+ * Inclusive start time in seconds from the beginning of the audio.
44237
45928
  */
44238
45929
  start: number;
44239
45930
  /**
44240
- * End time of the segment in seconds.
45931
+ * Exclusive end time in seconds from the beginning of the audio.
44241
45932
  */
44242
45933
  end: number;
44243
45934
  /**
44244
- * The transcribed text.
45935
+ * Recognized speech text in the original language.
44245
45936
  */
44246
45937
  text: string;
44247
45938
  /**
44248
- * Sampling temperature used for the segment.
45939
+ * Speaker label in diarized_json when supported; labels distinguish voices and are not verified identities.
45940
+ */
45941
+ speaker?: string;
45942
+ /**
45943
+ * Decoding temperature reported by the transcription model.
44249
45944
  */
44250
45945
  temperature?: number;
44251
45946
  /**
44252
- * Average log probability of the tokens of the segment; low values mean low confidence.
45947
+ * Average segment token log probability when provided.
44253
45948
  */
44254
45949
  avg_logprob?: number;
44255
45950
  /**
44256
- * Gzip compression ratio of the segment text; high values indicate repetitive output.
45951
+ * Text compression ratio reported for this segment.
44257
45952
  */
44258
45953
  compression_ratio?: number;
44259
45954
  /**
44260
- * Probability that the segment contains no speech.
45955
+ * Probability of no speech reported for this segment.
44261
45956
  */
44262
45957
  no_speech_prob?: number;
44263
45958
  }>;
45959
+ /**
45960
+ * Per-word source-audio timestamps when word granularity is requested and supported.
45961
+ */
45962
+ words?: Array<{
45963
+ /**
45964
+ * Recognized word text in its original language.
45965
+ */
45966
+ word: string;
45967
+ /**
45968
+ * Inclusive word start in seconds from the beginning of the audio.
45969
+ */
45970
+ start: number;
45971
+ /**
45972
+ * Exclusive word end in seconds from the beginning of the audio.
45973
+ */
45974
+ end: number;
45975
+ }>;
44264
45976
  };
44265
45977
  };
44266
45978
  export type CreateAudioTranscriptionResponse = CreateAudioTranscriptionResponses[keyof CreateAudioTranscriptionResponses];
@@ -47107,6 +48819,76 @@ export type CountResponseInputTokensResponses = {
47107
48819
  };
47108
48820
  };
47109
48821
  export type CountResponseInputTokensResponse = CountResponseInputTokensResponses[keyof CountResponseInputTokensResponses];
48822
+ export type ListOrganizationMembersData = {
48823
+ body?: never;
48824
+ path?: never;
48825
+ query?: {
48826
+ /**
48827
+ * Maximum members per page, from 1 to 100; defaults to 20.
48828
+ */
48829
+ limit?: number;
48830
+ /**
48831
+ * Opaque next_page cursor returned by the previous response; omit for the first page.
48832
+ */
48833
+ page?: string;
48834
+ };
48835
+ url: '/organization/v1/members';
48836
+ };
48837
+ export type ListOrganizationMembersErrors = {
48838
+ /**
48839
+ * Invalid limit or page cursor; use limit 1 to 100 and copy next_page from the previous response.
48840
+ */
48841
+ 400: unknown;
48842
+ /**
48843
+ * Missing or invalid credentials; provide a valid organization API key or runtime token.
48844
+ */
48845
+ 401: unknown;
48846
+ /**
48847
+ * Organization identity was refused; use a credential belonging to the organization.
48848
+ */
48849
+ 403: unknown;
48850
+ };
48851
+ export type ListOrganizationMembersResponses = {
48852
+ /**
48853
+ * Members of the authenticated organization, earliest join first.
48854
+ */
48855
+ 200: {
48856
+ /**
48857
+ * Organization members in ascending join order.
48858
+ */
48859
+ data: Array<{
48860
+ /**
48861
+ * User identifier (usr_...). Use this id to assign an approver to an approval task.
48862
+ */
48863
+ id: string;
48864
+ /**
48865
+ * Display name of the member; null when no name is set.
48866
+ */
48867
+ name: string | null;
48868
+ /**
48869
+ * Email address of a member of your organization.
48870
+ */
48871
+ email: string;
48872
+ /**
48873
+ * Organization role: owner owns the organization; admin manages it; member is a regular participant.
48874
+ */
48875
+ role: 'owner' | 'admin' | 'member';
48876
+ /**
48877
+ * UTC ISO 8601 instant when this user joined the organization.
48878
+ */
48879
+ joined_at: string;
48880
+ }>;
48881
+ /**
48882
+ * Whether another page of members is available.
48883
+ */
48884
+ has_more: boolean;
48885
+ /**
48886
+ * Cursor to pass as page; null when no more members remain.
48887
+ */
48888
+ next_page: string | null;
48889
+ };
48890
+ };
48891
+ export type ListOrganizationMembersResponse = ListOrganizationMembersResponses[keyof ListOrganizationMembersResponses];
47110
48892
  export type ListOrganizationFeedbackData = {
47111
48893
  body?: never;
47112
48894
  path?: never;
@@ -68063,7 +69845,7 @@ export type CutListFramesData = {
68063
69845
  */
68064
69846
  at: string;
68065
69847
  /**
68066
- * Positive image size multiplier; 0.5 renders at half the project dimensions.
69848
+ * 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
69849
  */
68068
69850
  scale?: number;
68069
69851
  /**
@@ -68405,7 +70187,7 @@ export type CutListExportsResponses = {
68405
70187
  export type CutListExportsResponse = CutListExportsResponses[keyof CutListExportsResponses];
68406
70188
  export type CutCreateExportData = {
68407
70189
  /**
68408
- * Start an export from a project revision into a bound library.
70190
+ * 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
70191
  */
68410
70192
  body: CutExportInput;
68411
70193
  path: {
@@ -70217,7 +71999,7 @@ export type KnowledgeListFilesResponses = {
70217
71999
  };
70218
72000
  export type KnowledgeListFilesResponse = KnowledgeListFilesResponses[keyof KnowledgeListFilesResponses];
70219
72001
  export type KnowledgeAttachFileData = {
70220
- body: KnowledgeAttachFile;
72002
+ body: KnowledgeNativeAttachFile;
70221
72003
  path: {
70222
72004
  /**
70223
72005
  * Resource ID.
@@ -70518,7 +72300,7 @@ export type KnowledgeRetrieveFileContentResponses = {
70518
72300
  };
70519
72301
  export type KnowledgeRetrieveFileContentResponse = KnowledgeRetrieveFileContentResponses[keyof KnowledgeRetrieveFileContentResponses];
70520
72302
  export type KnowledgeCreateFileBatchData = {
70521
- body: KnowledgeCreateBatch;
72303
+ body: KnowledgeNativeCreateBatch;
70522
72304
  path: {
70523
72305
  /**
70524
72306
  * Resource ID.
@@ -71206,6 +72988,10 @@ export type MediaListLibrariesErrors = {
71206
72988
  * Request failed; see the error code reference.
71207
72989
  */
71208
72990
  415: MediaMediaError;
72991
+ /**
72992
+ * Request failed; see the error code reference.
72993
+ */
72994
+ 422: MediaMediaError;
71209
72995
  /**
71210
72996
  * Request failed; see the error code reference.
71211
72997
  */
@@ -71297,6 +73083,10 @@ export type MediaCreateLibraryErrors = {
71297
73083
  * Request failed; see the error code reference.
71298
73084
  */
71299
73085
  415: MediaMediaError;
73086
+ /**
73087
+ * Request failed; see the error code reference.
73088
+ */
73089
+ 422: MediaMediaError;
71300
73090
  /**
71301
73091
  * Request failed; see the error code reference.
71302
73092
  */
@@ -71322,6 +73112,84 @@ export type MediaCreateLibraryResponses = {
71322
73112
  200: MediaLibrary;
71323
73113
  };
71324
73114
  export type MediaCreateLibraryResponse = MediaCreateLibraryResponses[keyof MediaCreateLibraryResponses];
73115
+ export type MediaCreateFrameUrlsData = {
73116
+ body: {
73117
+ /**
73118
+ * 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.
73119
+ */
73120
+ at_micros: Array<number>;
73121
+ /**
73122
+ * 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.
73123
+ */
73124
+ width?: 160 | 320 | 640;
73125
+ };
73126
+ path: {
73127
+ /**
73128
+ * Library identifier returned by library creation or listing; must be accessible to the current credential.
73129
+ */
73130
+ library_id: string;
73131
+ /**
73132
+ * Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps.
73133
+ */
73134
+ asset_id: string;
73135
+ };
73136
+ query?: never;
73137
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/frames';
73138
+ };
73139
+ export type MediaCreateFrameUrlsErrors = {
73140
+ /**
73141
+ * INVALID_PARAMS: supply 1–20 nonnegative integer timestamps below video duration and width 160, 320 or 640; images and audio cannot produce video frames.
73142
+ */
73143
+ 400: MediaMediaError;
73144
+ /**
73145
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73146
+ */
73147
+ 403: MediaMediaError;
73148
+ /**
73149
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
73150
+ */
73151
+ 404: MediaMediaError;
73152
+ /**
73153
+ * Request failed; see the error code reference.
73154
+ */
73155
+ 409: MediaMediaError;
73156
+ /**
73157
+ * The file exceeds an input limit; provide a smaller source file.
73158
+ */
73159
+ 413: MediaMediaError;
73160
+ /**
73161
+ * This media format is unsupported; provide a supported format.
73162
+ */
73163
+ 415: MediaMediaError;
73164
+ /**
73165
+ * Request failed; see the error code reference.
73166
+ */
73167
+ 422: MediaMediaError;
73168
+ /**
73169
+ * A rate limit was reached; wait before retrying.
73170
+ */
73171
+ 429: MediaMediaError;
73172
+ /**
73173
+ * The requested operation is unsupported; choose a supported method.
73174
+ */
73175
+ 501: MediaMediaError;
73176
+ /**
73177
+ * Request failed; see the error code reference.
73178
+ */
73179
+ 502: MediaMediaError;
73180
+ /**
73181
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
73182
+ */
73183
+ 503: MediaMediaError;
73184
+ };
73185
+ export type MediaCreateFrameUrlsError = MediaCreateFrameUrlsErrors[keyof MediaCreateFrameUrlsErrors];
73186
+ export type MediaCreateFrameUrlsResponses = {
73187
+ /**
73188
+ * Successful response.
73189
+ */
73190
+ 200: MediaFrameUrls;
73191
+ };
73192
+ export type MediaCreateFrameUrlsResponse = MediaCreateFrameUrlsResponses[keyof MediaCreateFrameUrlsResponses];
71325
73193
  export type MediaDeleteLibraryData = {
71326
73194
  body?: never;
71327
73195
  path: {
@@ -71358,6 +73226,10 @@ export type MediaDeleteLibraryErrors = {
71358
73226
  * Request failed; see the error code reference.
71359
73227
  */
71360
73228
  415: MediaMediaError;
73229
+ /**
73230
+ * Request failed; see the error code reference.
73231
+ */
73232
+ 422: MediaMediaError;
71361
73233
  /**
71362
73234
  * Request failed; see the error code reference.
71363
73235
  */
@@ -71419,6 +73291,10 @@ export type MediaGetLibraryErrors = {
71419
73291
  * Request failed; see the error code reference.
71420
73292
  */
71421
73293
  415: MediaMediaError;
73294
+ /**
73295
+ * Request failed; see the error code reference.
73296
+ */
73297
+ 422: MediaMediaError;
71422
73298
  /**
71423
73299
  * Request failed; see the error code reference.
71424
73300
  */
@@ -71449,6 +73325,10 @@ export type MediaUpdateLibraryData = {
71449
73325
  * Partial update of an active media library.
71450
73326
  */
71451
73327
  body: {
73328
+ /**
73329
+ * 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.
73330
+ */
73331
+ hotwords?: Array<string>;
71452
73332
  /**
71453
73333
  * 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
73334
  */
@@ -71515,6 +73395,10 @@ export type MediaUpdateLibraryErrors = {
71515
73395
  * Request failed; see the error code reference.
71516
73396
  */
71517
73397
  415: MediaMediaError;
73398
+ /**
73399
+ * Request failed; see the error code reference.
73400
+ */
73401
+ 422: MediaMediaError;
71518
73402
  /**
71519
73403
  * Request failed; see the error code reference.
71520
73404
  */
@@ -71576,6 +73460,10 @@ export type MediaRestoreLibraryErrors = {
71576
73460
  * Request failed; see the error code reference.
71577
73461
  */
71578
73462
  415: MediaMediaError;
73463
+ /**
73464
+ * Request failed; see the error code reference.
73465
+ */
73466
+ 422: MediaMediaError;
71579
73467
  /**
71580
73468
  * Request failed; see the error code reference.
71581
73469
  */
@@ -71637,6 +73525,10 @@ export type MediaPurgeLibraryErrors = {
71637
73525
  * Request failed; see the error code reference.
71638
73526
  */
71639
73527
  415: MediaMediaError;
73528
+ /**
73529
+ * Request failed; see the error code reference.
73530
+ */
73531
+ 422: MediaMediaError;
71640
73532
  /**
71641
73533
  * Request failed; see the error code reference.
71642
73534
  */
@@ -71715,6 +73607,10 @@ export type MediaListAssetsErrors = {
71715
73607
  * Request failed; see the error code reference.
71716
73608
  */
71717
73609
  415: MediaMediaError;
73610
+ /**
73611
+ * Request failed; see the error code reference.
73612
+ */
73613
+ 422: MediaMediaError;
71718
73614
  /**
71719
73615
  * Request failed; see the error code reference.
71720
73616
  */
@@ -71762,7 +73658,7 @@ export type MediaUploadAssetData = {
71762
73658
  */
71763
73659
  display_name?: string;
71764
73660
  /**
71765
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73661
+ * 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
73662
  */
71767
73663
  asset_folder?: string;
71768
73664
  /**
@@ -71804,7 +73700,7 @@ export type MediaUploadAssetData = {
71804
73700
  */
71805
73701
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
71806
73702
  /**
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.
73703
+ * 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
73704
  */
71809
73705
  type?: MediaDeliveryType;
71810
73706
  };
@@ -71852,6 +73748,10 @@ export type MediaUploadAssetErrors = {
71852
73748
  * Request failed; see the error code reference.
71853
73749
  */
71854
73750
  415: MediaMediaError;
73751
+ /**
73752
+ * Request failed; see the error code reference.
73753
+ */
73754
+ 422: MediaMediaError;
71855
73755
  /**
71856
73756
  * Request failed; see the error code reference.
71857
73757
  */
@@ -71883,7 +73783,7 @@ export type MediaImportAssetData = {
71883
73783
  */
71884
73784
  body: {
71885
73785
  /**
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.
73786
+ * 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
73787
  */
71888
73788
  file_id: string;
71889
73789
  /**
@@ -71899,7 +73799,7 @@ export type MediaImportAssetData = {
71899
73799
  */
71900
73800
  display_name?: string;
71901
73801
  /**
71902
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73802
+ * 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
73803
  */
71904
73804
  asset_folder?: string;
71905
73805
  /**
@@ -71941,7 +73841,7 @@ export type MediaImportAssetData = {
71941
73841
  */
71942
73842
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
71943
73843
  /**
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.
73844
+ * 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
73845
  */
71946
73846
  type?: MediaDeliveryType;
71947
73847
  };
@@ -71979,6 +73879,10 @@ export type MediaImportAssetErrors = {
71979
73879
  * Request failed; see the error code reference.
71980
73880
  */
71981
73881
  415: MediaMediaError;
73882
+ /**
73883
+ * Request failed; see the error code reference.
73884
+ */
73885
+ 422: MediaMediaError;
71982
73886
  /**
71983
73887
  * Request failed; see the error code reference.
71984
73888
  */
@@ -72044,6 +73948,10 @@ export type MediaDeleteAssetErrors = {
72044
73948
  * Request failed; see the error code reference.
72045
73949
  */
72046
73950
  415: MediaMediaError;
73951
+ /**
73952
+ * Request failed; see the error code reference.
73953
+ */
73954
+ 422: MediaMediaError;
72047
73955
  /**
72048
73956
  * Request failed; see the error code reference.
72049
73957
  */
@@ -72109,6 +74017,10 @@ export type MediaGetAssetErrors = {
72109
74017
  * Request failed; see the error code reference.
72110
74018
  */
72111
74019
  415: MediaMediaError;
74020
+ /**
74021
+ * Request failed; see the error code reference.
74022
+ */
74023
+ 422: MediaMediaError;
72112
74024
  /**
72113
74025
  * Request failed; see the error code reference.
72114
74026
  */
@@ -72144,7 +74056,7 @@ export type MediaUpdateAssetData = {
72144
74056
  */
72145
74057
  display_name?: string;
72146
74058
  /**
72147
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
74059
+ * 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
74060
  */
72149
74061
  asset_folder?: string;
72150
74062
  /**
@@ -72196,6 +74108,10 @@ export type MediaUpdateAssetErrors = {
72196
74108
  * Request failed; see the error code reference.
72197
74109
  */
72198
74110
  415: MediaMediaError;
74111
+ /**
74112
+ * Request failed; see the error code reference.
74113
+ */
74114
+ 422: MediaMediaError;
72199
74115
  /**
72200
74116
  * Request failed; see the error code reference.
72201
74117
  */
@@ -72227,7 +74143,7 @@ export type MediaReprocessAssetData = {
72227
74143
  */
72228
74144
  body: {
72229
74145
  /**
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.
74146
+ * 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
74147
  */
72232
74148
  kinds?: Array<MediaProcessingKind>;
72233
74149
  };
@@ -72269,6 +74185,10 @@ export type MediaReprocessAssetErrors = {
72269
74185
  * Request failed; see the error code reference.
72270
74186
  */
72271
74187
  415: MediaMediaError;
74188
+ /**
74189
+ * Request failed; see the error code reference.
74190
+ */
74191
+ 422: MediaMediaError;
72272
74192
  /**
72273
74193
  * Request failed; see the error code reference.
72274
74194
  */
@@ -72312,9 +74232,9 @@ export type MediaListUnderstandingsData = {
72312
74232
  */
72313
74233
  include_superseded?: boolean;
72314
74234
  /**
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.
74235
+ * 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
74236
  */
72317
- kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
74237
+ kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
72318
74238
  /**
72319
74239
  * Cursor from the previous next_cursor.
72320
74240
  */
@@ -72351,6 +74271,10 @@ export type MediaListUnderstandingsErrors = {
72351
74271
  * Request failed; see the error code reference.
72352
74272
  */
72353
74273
  415: MediaMediaError;
74274
+ /**
74275
+ * Request failed; see the error code reference.
74276
+ */
74277
+ 422: MediaMediaError;
72354
74278
  /**
72355
74279
  * Request failed; see the error code reference.
72356
74280
  */
@@ -72382,7 +74306,7 @@ export type MediaExpressionSearchData = {
72382
74306
  */
72383
74307
  body: {
72384
74308
  /**
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.
74309
+ * 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
74310
  */
72387
74311
  expression?: string;
72388
74312
  /**
@@ -72442,6 +74366,10 @@ export type MediaExpressionSearchErrors = {
72442
74366
  * Request failed; see the error code reference.
72443
74367
  */
72444
74368
  415: MediaMediaError;
74369
+ /**
74370
+ * Request failed; see the error code reference.
74371
+ */
74372
+ 422: MediaMediaError;
72445
74373
  /**
72446
74374
  * Request failed; see the error code reference.
72447
74375
  */
@@ -72529,6 +74457,10 @@ export type MediaVisualSearchErrors = {
72529
74457
  * Request failed; see the error code reference.
72530
74458
  */
72531
74459
  415: MediaMediaError;
74460
+ /**
74461
+ * Request failed; see the error code reference.
74462
+ */
74463
+ 422: MediaMediaError;
72532
74464
  /**
72533
74465
  * Request failed; see the error code reference.
72534
74466
  */
@@ -72610,6 +74542,10 @@ export type MediaSemanticSearchErrors = {
72610
74542
  * Request failed; see the error code reference.
72611
74543
  */
72612
74544
  415: MediaMediaError;
74545
+ /**
74546
+ * Request failed; see the error code reference.
74547
+ */
74548
+ 422: MediaMediaError;
72613
74549
  /**
72614
74550
  * Request failed; see the error code reference.
72615
74551
  */
@@ -72691,6 +74627,10 @@ export type MediaSearchErrors = {
72691
74627
  * Request failed; see the error code reference.
72692
74628
  */
72693
74629
  415: MediaMediaError;
74630
+ /**
74631
+ * Request failed; see the error code reference.
74632
+ */
74633
+ 422: MediaMediaError;
72694
74634
  /**
72695
74635
  * Request failed; see the error code reference.
72696
74636
  */
@@ -72757,6 +74697,10 @@ export type MediaListFoldersErrors = {
72757
74697
  * Request failed; see the error code reference.
72758
74698
  */
72759
74699
  415: MediaMediaError;
74700
+ /**
74701
+ * Request failed; see the error code reference.
74702
+ */
74703
+ 422: MediaMediaError;
72760
74704
  /**
72761
74705
  * Request failed; see the error code reference.
72762
74706
  */
@@ -72791,6 +74735,10 @@ export type MediaCreateBatchData = {
72791
74735
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
72792
74736
  */
72793
74737
  selector: MediaBatchSelector;
74738
+ /**
74739
+ * Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
74740
+ */
74741
+ reason?: string;
72794
74742
  };
72795
74743
  path: {
72796
74744
  /**
@@ -72826,6 +74774,10 @@ export type MediaCreateBatchErrors = {
72826
74774
  * Request failed; see the error code reference.
72827
74775
  */
72828
74776
  415: MediaMediaError;
74777
+ /**
74778
+ * Request failed; see the error code reference.
74779
+ */
74780
+ 422: MediaMediaError;
72829
74781
  /**
72830
74782
  * Request failed; see the error code reference.
72831
74783
  */
@@ -72891,6 +74843,10 @@ export type MediaGetBatchErrors = {
72891
74843
  * Request failed; see the error code reference.
72892
74844
  */
72893
74845
  415: MediaMediaError;
74846
+ /**
74847
+ * Request failed; see the error code reference.
74848
+ */
74849
+ 422: MediaMediaError;
72894
74850
  /**
72895
74851
  * Request failed; see the error code reference.
72896
74852
  */
@@ -72925,6 +74881,10 @@ export type MediaBatchAssetsData = {
72925
74881
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
72926
74882
  */
72927
74883
  selector: MediaBatchSelector;
74884
+ /**
74885
+ * Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
74886
+ */
74887
+ reason?: string;
72928
74888
  };
72929
74889
  path: {
72930
74890
  /**
@@ -72960,6 +74920,10 @@ export type MediaBatchAssetsErrors = {
72960
74920
  * Request failed; see the error code reference.
72961
74921
  */
72962
74922
  415: MediaMediaError;
74923
+ /**
74924
+ * Request failed; see the error code reference.
74925
+ */
74926
+ 422: MediaMediaError;
72963
74927
  /**
72964
74928
  * Request failed; see the error code reference.
72965
74929
  */
@@ -72993,7 +74957,7 @@ export type MediaGetJobData = {
72993
74957
  */
72994
74958
  library_id: string;
72995
74959
  /**
72996
- * Batch identifier returned by createBatch or batchAssets; resolved within this library.
74960
+ * Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library.
72997
74961
  */
72998
74962
  job_id: string;
72999
74963
  };
@@ -73002,15 +74966,15 @@ export type MediaGetJobData = {
73002
74966
  };
73003
74967
  export type MediaGetJobErrors = {
73004
74968
  /**
73005
- * Request failed; see the error code reference.
74969
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
73006
74970
  */
73007
74971
  400: MediaMediaError;
73008
74972
  /**
73009
- * Request failed; see the error code reference.
74973
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73010
74974
  */
73011
74975
  403: MediaMediaError;
73012
74976
  /**
73013
- * Request failed; see the error code reference.
74977
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
73014
74978
  */
73015
74979
  404: MediaMediaError;
73016
74980
  /**
@@ -73018,19 +74982,23 @@ export type MediaGetJobErrors = {
73018
74982
  */
73019
74983
  409: MediaMediaError;
73020
74984
  /**
73021
- * Request failed; see the error code reference.
74985
+ * The file exceeds an input limit; provide a smaller source file.
73022
74986
  */
73023
74987
  413: MediaMediaError;
73024
74988
  /**
73025
- * Request failed; see the error code reference.
74989
+ * This media format is unsupported; provide a supported format.
73026
74990
  */
73027
74991
  415: MediaMediaError;
73028
74992
  /**
73029
74993
  * Request failed; see the error code reference.
73030
74994
  */
74995
+ 422: MediaMediaError;
74996
+ /**
74997
+ * A rate limit was reached; wait before retrying.
74998
+ */
73031
74999
  429: MediaMediaError;
73032
75000
  /**
73033
- * Request failed; see the error code reference.
75001
+ * The requested operation is unsupported; choose a supported method.
73034
75002
  */
73035
75003
  501: MediaMediaError;
73036
75004
  /**
@@ -73038,7 +75006,7 @@ export type MediaGetJobErrors = {
73038
75006
  */
73039
75007
  502: MediaMediaError;
73040
75008
  /**
73041
- * Request failed; see the error code reference.
75009
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
73042
75010
  */
73043
75011
  503: MediaMediaError;
73044
75012
  };
@@ -73103,6 +75071,10 @@ export type MediaListEventsErrors = {
73103
75071
  * Request failed; see the error code reference.
73104
75072
  */
73105
75073
  415: MediaMediaError;
75074
+ /**
75075
+ * Request failed; see the error code reference.
75076
+ */
75077
+ 422: MediaMediaError;
73106
75078
  /**
73107
75079
  * Request failed; see the error code reference.
73108
75080
  */
@@ -73138,7 +75110,7 @@ export type MediaCreateDeliveryTokenData = {
73138
75110
  */
73139
75111
  acl?: string;
73140
75112
  /**
73141
- * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 3600.
75113
+ * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900.
73142
75114
  */
73143
75115
  expires_in?: number;
73144
75116
  };
@@ -73176,6 +75148,10 @@ export type MediaCreateDeliveryTokenErrors = {
73176
75148
  * Request failed; see the error code reference.
73177
75149
  */
73178
75150
  415: MediaMediaError;
75151
+ /**
75152
+ * Request failed; see the error code reference.
75153
+ */
75154
+ 422: MediaMediaError;
73179
75155
  /**
73180
75156
  * Request failed; see the error code reference.
73181
75157
  */
@@ -73201,6 +75177,572 @@ export type MediaCreateDeliveryTokenResponses = {
73201
75177
  200: MediaDeliveryToken;
73202
75178
  };
73203
75179
  export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
75180
+ export type MediaUnderstandingFailureSummaryData = {
75181
+ body?: never;
75182
+ path: {
75183
+ /**
75184
+ * Library ID returned by creation.
75185
+ */
75186
+ library_id: string;
75187
+ };
75188
+ query?: never;
75189
+ url: '/media/v1/libraries/{library_id}/understandings/failure_summary';
75190
+ };
75191
+ export type MediaUnderstandingFailureSummaryErrors = {
75192
+ /**
75193
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75194
+ */
75195
+ 400: MediaMediaError;
75196
+ /**
75197
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75198
+ */
75199
+ 403: MediaMediaError;
75200
+ /**
75201
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75202
+ */
75203
+ 404: MediaMediaError;
75204
+ /**
75205
+ * Request failed; see the error code reference.
75206
+ */
75207
+ 409: MediaMediaError;
75208
+ /**
75209
+ * The file exceeds an input limit; provide a smaller source file.
75210
+ */
75211
+ 413: MediaMediaError;
75212
+ /**
75213
+ * This media format is unsupported; provide a supported format.
75214
+ */
75215
+ 415: MediaMediaError;
75216
+ /**
75217
+ * Request failed; see the error code reference.
75218
+ */
75219
+ 422: MediaMediaError;
75220
+ /**
75221
+ * A rate limit was reached; wait before retrying.
75222
+ */
75223
+ 429: MediaMediaError;
75224
+ /**
75225
+ * The requested operation is unsupported; choose a supported method.
75226
+ */
75227
+ 501: MediaMediaError;
75228
+ /**
75229
+ * Request failed; see the error code reference.
75230
+ */
75231
+ 502: MediaMediaError;
75232
+ /**
75233
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75234
+ */
75235
+ 503: MediaMediaError;
75236
+ };
75237
+ export type MediaUnderstandingFailureSummaryError = MediaUnderstandingFailureSummaryErrors[keyof MediaUnderstandingFailureSummaryErrors];
75238
+ export type MediaUnderstandingFailureSummaryResponses = {
75239
+ /**
75240
+ * Successful response.
75241
+ */
75242
+ 200: MediaFailureSummary;
75243
+ };
75244
+ export type MediaUnderstandingFailureSummaryResponse = MediaUnderstandingFailureSummaryResponses[keyof MediaUnderstandingFailureSummaryResponses];
75245
+ export type MediaListUnderstandingsByLibraryData = {
75246
+ body?: never;
75247
+ path: {
75248
+ /**
75249
+ * Library ID returned by creation.
75250
+ */
75251
+ library_id: string;
75252
+ };
75253
+ query?: {
75254
+ /**
75255
+ * Folder path including all descendants; omitted or empty selects the entire library.
75256
+ */
75257
+ folder?: string;
75258
+ /**
75259
+ * Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.
75260
+ */
75261
+ kinds?: string;
75262
+ /**
75263
+ * Cursor from the previous next_cursor.
75264
+ */
75265
+ cursor?: string;
75266
+ /**
75267
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
75268
+ */
75269
+ limit?: number;
75270
+ };
75271
+ url: '/media/v1/libraries/{library_id}/understandings';
75272
+ };
75273
+ export type MediaListUnderstandingsByLibraryErrors = {
75274
+ /**
75275
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75276
+ */
75277
+ 400: MediaMediaError;
75278
+ /**
75279
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75280
+ */
75281
+ 403: MediaMediaError;
75282
+ /**
75283
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75284
+ */
75285
+ 404: MediaMediaError;
75286
+ /**
75287
+ * Request failed; see the error code reference.
75288
+ */
75289
+ 409: MediaMediaError;
75290
+ /**
75291
+ * The file exceeds an input limit; provide a smaller source file.
75292
+ */
75293
+ 413: MediaMediaError;
75294
+ /**
75295
+ * This media format is unsupported; provide a supported format.
75296
+ */
75297
+ 415: MediaMediaError;
75298
+ /**
75299
+ * Request failed; see the error code reference.
75300
+ */
75301
+ 422: MediaMediaError;
75302
+ /**
75303
+ * A rate limit was reached; wait before retrying.
75304
+ */
75305
+ 429: MediaMediaError;
75306
+ /**
75307
+ * The requested operation is unsupported; choose a supported method.
75308
+ */
75309
+ 501: MediaMediaError;
75310
+ /**
75311
+ * Request failed; see the error code reference.
75312
+ */
75313
+ 502: MediaMediaError;
75314
+ /**
75315
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75316
+ */
75317
+ 503: MediaMediaError;
75318
+ };
75319
+ export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
75320
+ export type MediaListUnderstandingsByLibraryResponses = {
75321
+ /**
75322
+ * Successful response.
75323
+ */
75324
+ 200: MediaUnderstandingPage;
75325
+ };
75326
+ export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
75327
+ export type MediaCreateGenerationData = {
75328
+ /**
75329
+ * Text-to-video request. Generation is charged per second; unsaved candidates expire after 7 days.
75330
+ */
75331
+ body: {
75332
+ /**
75333
+ * Generation operation; v1 accepts only video.generate text-to-video requests.
75334
+ */
75335
+ intent: 'video.generate';
75336
+ /**
75337
+ * Text prompt describing the video to generate.
75338
+ */
75339
+ prompt: string;
75340
+ /**
75341
+ * Number of videos to generate; defaults to 1 and must be from 1 to 4.
75342
+ */
75343
+ count?: number;
75344
+ /**
75345
+ * Requested video duration in seconds; Router validates the model-specific supported durations.
75346
+ */
75347
+ duration_seconds?: number;
75348
+ /**
75349
+ * Requested output aspect ratio; defaults to 16:9 and Router validates model support.
75350
+ */
75351
+ aspect_ratio?: string;
75352
+ /**
75353
+ * Router model with video_generation capability; defaults to wan2.7-t2v.
75354
+ */
75355
+ model?: string;
75356
+ /**
75357
+ * candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically.
75358
+ */
75359
+ save?: 'candidate' | 'library';
75360
+ /**
75361
+ * Folder for assets saved automatically or by later save calls; defaults to the library root. 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.
75362
+ */
75363
+ asset_folder?: string;
75364
+ /**
75365
+ * Tags applied when an output becomes a library asset.
75366
+ */
75367
+ tags?: Array<string>;
75368
+ /**
75369
+ * Understanding behavior when a candidate is saved as an asset; defaults to auto.
75370
+ */
75371
+ understanding?: 'auto' | 'skip';
75372
+ /**
75373
+ * Not supported in v1; omit this field. Only text-to-video is currently available.
75374
+ */
75375
+ references?: Array<unknown>;
75376
+ };
75377
+ headers?: {
75378
+ /**
75379
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected.
75380
+ */
75381
+ 'Idempotency-Key'?: string;
75382
+ };
75383
+ path: {
75384
+ /**
75385
+ * Library ID returned by creation.
75386
+ */
75387
+ library_id: string;
75388
+ };
75389
+ query?: never;
75390
+ url: '/media/v1/libraries/{library_id}/generations';
75391
+ };
75392
+ export type MediaCreateGenerationErrors = {
75393
+ /**
75394
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75395
+ */
75396
+ 400: MediaMediaError;
75397
+ /**
75398
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75399
+ */
75400
+ 403: MediaMediaError;
75401
+ /**
75402
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75403
+ */
75404
+ 404: MediaMediaError;
75405
+ /**
75406
+ * Request failed; see the error code reference.
75407
+ */
75408
+ 409: MediaMediaError;
75409
+ /**
75410
+ * The file exceeds an input limit; provide a smaller source file.
75411
+ */
75412
+ 413: MediaMediaError;
75413
+ /**
75414
+ * This media format is unsupported; provide a supported format.
75415
+ */
75416
+ 415: MediaMediaError;
75417
+ /**
75418
+ * Request failed; see the error code reference.
75419
+ */
75420
+ 422: MediaMediaError;
75421
+ /**
75422
+ * This library already has five queued or running generation jobs; wait until one finishes and retry.
75423
+ */
75424
+ 429: MediaMediaError;
75425
+ /**
75426
+ * The requested operation is unsupported; choose a supported method.
75427
+ */
75428
+ 501: MediaMediaError;
75429
+ /**
75430
+ * Request failed; see the error code reference.
75431
+ */
75432
+ 502: MediaMediaError;
75433
+ /**
75434
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75435
+ */
75436
+ 503: MediaMediaError;
75437
+ };
75438
+ export type MediaCreateGenerationError = MediaCreateGenerationErrors[keyof MediaCreateGenerationErrors];
75439
+ export type MediaCreateGenerationResponses = {
75440
+ /**
75441
+ * Successful response.
75442
+ */
75443
+ 202: MediaJob;
75444
+ };
75445
+ export type MediaCreateGenerationResponse = MediaCreateGenerationResponses[keyof MediaCreateGenerationResponses];
75446
+ export type MediaListJobsData = {
75447
+ body?: never;
75448
+ path: {
75449
+ /**
75450
+ * Library ID returned by creation.
75451
+ */
75452
+ library_id: string;
75453
+ };
75454
+ query?: {
75455
+ /**
75456
+ * Filter jobs by their current status.
75457
+ */
75458
+ status?: MediaJobStatus;
75459
+ /**
75460
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
75461
+ */
75462
+ limit?: number;
75463
+ /**
75464
+ * Job id from the previous page’s next_cursor; omit for the first page.
75465
+ */
75466
+ cursor?: MediaJobId;
75467
+ };
75468
+ url: '/media/v1/libraries/{library_id}/jobs';
75469
+ };
75470
+ export type MediaListJobsErrors = {
75471
+ /**
75472
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75473
+ */
75474
+ 400: MediaMediaError;
75475
+ /**
75476
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75477
+ */
75478
+ 403: MediaMediaError;
75479
+ /**
75480
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75481
+ */
75482
+ 404: MediaMediaError;
75483
+ /**
75484
+ * Request failed; see the error code reference.
75485
+ */
75486
+ 409: MediaMediaError;
75487
+ /**
75488
+ * The file exceeds an input limit; provide a smaller source file.
75489
+ */
75490
+ 413: MediaMediaError;
75491
+ /**
75492
+ * This media format is unsupported; provide a supported format.
75493
+ */
75494
+ 415: MediaMediaError;
75495
+ /**
75496
+ * Request failed; see the error code reference.
75497
+ */
75498
+ 422: MediaMediaError;
75499
+ /**
75500
+ * A rate limit was reached; wait before retrying.
75501
+ */
75502
+ 429: MediaMediaError;
75503
+ /**
75504
+ * The requested operation is unsupported; choose a supported method.
75505
+ */
75506
+ 501: MediaMediaError;
75507
+ /**
75508
+ * Request failed; see the error code reference.
75509
+ */
75510
+ 502: MediaMediaError;
75511
+ /**
75512
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75513
+ */
75514
+ 503: MediaMediaError;
75515
+ };
75516
+ export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
75517
+ export type MediaListJobsResponses = {
75518
+ /**
75519
+ * Successful response.
75520
+ */
75521
+ 200: MediaJobPage;
75522
+ };
75523
+ export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
75524
+ export type MediaCancelJobData = {
75525
+ body?: never;
75526
+ path: {
75527
+ /**
75528
+ * Library ID returned by creation.
75529
+ */
75530
+ library_id: string;
75531
+ /**
75532
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
75533
+ */
75534
+ job_id: string;
75535
+ };
75536
+ query?: never;
75537
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
75538
+ };
75539
+ export type MediaCancelJobErrors = {
75540
+ /**
75541
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75542
+ */
75543
+ 400: MediaMediaError;
75544
+ /**
75545
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75546
+ */
75547
+ 403: MediaMediaError;
75548
+ /**
75549
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75550
+ */
75551
+ 404: MediaMediaError;
75552
+ /**
75553
+ * Request failed; see the error code reference.
75554
+ */
75555
+ 409: MediaMediaError;
75556
+ /**
75557
+ * The file exceeds an input limit; provide a smaller source file.
75558
+ */
75559
+ 413: MediaMediaError;
75560
+ /**
75561
+ * This media format is unsupported; provide a supported format.
75562
+ */
75563
+ 415: MediaMediaError;
75564
+ /**
75565
+ * Request failed; see the error code reference.
75566
+ */
75567
+ 422: MediaMediaError;
75568
+ /**
75569
+ * A rate limit was reached; wait before retrying.
75570
+ */
75571
+ 429: MediaMediaError;
75572
+ /**
75573
+ * The requested operation is unsupported; choose a supported method.
75574
+ */
75575
+ 501: MediaMediaError;
75576
+ /**
75577
+ * Request failed; see the error code reference.
75578
+ */
75579
+ 502: MediaMediaError;
75580
+ /**
75581
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75582
+ */
75583
+ 503: MediaMediaError;
75584
+ };
75585
+ export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
75586
+ export type MediaCancelJobResponses = {
75587
+ /**
75588
+ * Successful response.
75589
+ */
75590
+ 200: MediaJob;
75591
+ };
75592
+ export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
75593
+ export type MediaSaveGenerationOutputData = {
75594
+ /**
75595
+ * Optional asset metadata and understanding behavior for a successful candidate.
75596
+ */
75597
+ body?: {
75598
+ /**
75599
+ * Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent.
75600
+ */
75601
+ public_id?: string;
75602
+ /**
75603
+ * Destination folder for the saved asset; defaults to the library root. 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.
75604
+ */
75605
+ asset_folder?: string;
75606
+ /**
75607
+ * Tags to apply to the saved asset.
75608
+ */
75609
+ tags?: Array<string>;
75610
+ /**
75611
+ * Understanding behavior for the saved asset; defaults to auto.
75612
+ */
75613
+ understanding?: 'auto' | 'skip';
75614
+ };
75615
+ path: {
75616
+ /**
75617
+ * Library ID returned by creation.
75618
+ */
75619
+ library_id: string;
75620
+ /**
75621
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
75622
+ */
75623
+ job_id: string;
75624
+ /**
75625
+ * Zero-based position of the candidate in the Job outputs array.
75626
+ */
75627
+ index: string;
75628
+ };
75629
+ query?: never;
75630
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save';
75631
+ };
75632
+ export type MediaSaveGenerationOutputErrors = {
75633
+ /**
75634
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75635
+ */
75636
+ 400: MediaMediaError;
75637
+ /**
75638
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75639
+ */
75640
+ 403: MediaMediaError;
75641
+ /**
75642
+ * The job or output is inaccessible, missing, or the candidate has expired; verify library ownership and create a new job for an expired candidate.
75643
+ */
75644
+ 404: MediaMediaError;
75645
+ /**
75646
+ * Request failed; see the error code reference.
75647
+ */
75648
+ 409: MediaMediaError;
75649
+ /**
75650
+ * The file exceeds an input limit; provide a smaller source file.
75651
+ */
75652
+ 413: MediaMediaError;
75653
+ /**
75654
+ * This media format is unsupported; provide a supported format.
75655
+ */
75656
+ 415: MediaMediaError;
75657
+ /**
75658
+ * Request failed; see the error code reference.
75659
+ */
75660
+ 422: MediaMediaError;
75661
+ /**
75662
+ * A rate limit was reached; wait before retrying.
75663
+ */
75664
+ 429: MediaMediaError;
75665
+ /**
75666
+ * The requested operation is unsupported; choose a supported method.
75667
+ */
75668
+ 501: MediaMediaError;
75669
+ /**
75670
+ * Request failed; see the error code reference.
75671
+ */
75672
+ 502: MediaMediaError;
75673
+ /**
75674
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75675
+ */
75676
+ 503: MediaMediaError;
75677
+ };
75678
+ export type MediaSaveGenerationOutputError = MediaSaveGenerationOutputErrors[keyof MediaSaveGenerationOutputErrors];
75679
+ export type MediaSaveGenerationOutputResponses = {
75680
+ /**
75681
+ * Successful response.
75682
+ */
75683
+ 200: MediaAsset;
75684
+ };
75685
+ export type MediaSaveGenerationOutputResponse = MediaSaveGenerationOutputResponses[keyof MediaSaveGenerationOutputResponses];
75686
+ export type MediaGetGenerationCapabilitiesData = {
75687
+ body?: never;
75688
+ path?: never;
75689
+ query?: never;
75690
+ url: '/media/v1/generation/capabilities';
75691
+ };
75692
+ export type MediaGetGenerationCapabilitiesErrors = {
75693
+ /**
75694
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75695
+ */
75696
+ 400: MediaMediaError;
75697
+ /**
75698
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75699
+ */
75700
+ 403: MediaMediaError;
75701
+ /**
75702
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75703
+ */
75704
+ 404: MediaMediaError;
75705
+ /**
75706
+ * Request failed; see the error code reference.
75707
+ */
75708
+ 409: MediaMediaError;
75709
+ /**
75710
+ * The file exceeds an input limit; provide a smaller source file.
75711
+ */
75712
+ 413: MediaMediaError;
75713
+ /**
75714
+ * This media format is unsupported; provide a supported format.
75715
+ */
75716
+ 415: MediaMediaError;
75717
+ /**
75718
+ * Request failed; see the error code reference.
75719
+ */
75720
+ 422: MediaMediaError;
75721
+ /**
75722
+ * A rate limit was reached; wait before retrying.
75723
+ */
75724
+ 429: MediaMediaError;
75725
+ /**
75726
+ * The requested operation is unsupported; choose a supported method.
75727
+ */
75728
+ 501: MediaMediaError;
75729
+ /**
75730
+ * Request failed; see the error code reference.
75731
+ */
75732
+ 502: MediaMediaError;
75733
+ /**
75734
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75735
+ */
75736
+ 503: MediaMediaError;
75737
+ };
75738
+ export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
75739
+ export type MediaGetGenerationCapabilitiesResponses = {
75740
+ /**
75741
+ * Successful response.
75742
+ */
75743
+ 200: MediaGenerationCapabilities;
75744
+ };
75745
+ export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
73204
75746
  export type GetSandboxV1SandboxesData = {
73205
75747
  body?: never;
73206
75748
  path?: never;
@@ -75796,7 +78338,7 @@ export type TicketGetTicketsData = {
75796
78338
  */
75797
78339
  page_token?: string;
75798
78340
  /**
75799
- * Filter expression.
78341
+ * Filter expression using field:value qualifiers, such as is:open milestone:5.
75800
78342
  */
75801
78343
  filter?: string;
75802
78344
  };
@@ -78215,7 +80757,7 @@ export type TicketGetActivityData = {
78215
80757
  */
78216
80758
  page_token?: string;
78217
80759
  /**
78218
- * Filter expression.
80760
+ * Activity filter expression.
78219
80761
  */
78220
80762
  filter?: string;
78221
80763
  };