@deepraxis/sdk 0.1.1-dev.eb022f5 → 0.1.1-dev.ec2a9a1

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.
@@ -13006,6 +13022,27 @@ export type CutExport = {
13006
13022
  */
13007
13023
  audio: 'pending' | 'done';
13008
13024
  };
13025
+ /**
13026
+ * Present when normalization was requested; contains requested targets and measured output levels.
13027
+ */
13028
+ loudness?: {
13029
+ /**
13030
+ * Requested integrated loudness target in LUFS.
13031
+ */
13032
+ target_lufs: number;
13033
+ /**
13034
+ * Requested maximum true peak in dBTP.
13035
+ */
13036
+ true_peak_dbtp: number;
13037
+ /**
13038
+ * Measured integrated loudness of the rendered export in LUFS.
13039
+ */
13040
+ integrated_lufs: number;
13041
+ /**
13042
+ * Measured maximum true peak of the rendered export in dBTP.
13043
+ */
13044
+ measured_true_peak_dbtp: number;
13045
+ };
13009
13046
  /**
13010
13047
  * Output media reference, available after the export reaches done.
13011
13048
  */
@@ -13027,9 +13064,22 @@ export type CutExport = {
13027
13064
  */
13028
13065
  chunk?: number;
13029
13066
  /**
13030
- * Optional lower-level explanation of the render failure.
13067
+ * Safe structured downstream failure information; older jobs may contain a string.
13068
+ */
13069
+ cause?: string | {
13070
+ /**
13071
+ * Export stage that failed.
13072
+ */
13073
+ stage: string;
13074
+ /**
13075
+ * Downstream service error code, when available.
13076
+ */
13077
+ code?: string;
13078
+ };
13079
+ /**
13080
+ * Downstream request identifier, when supplied by the service error.
13031
13081
  */
13032
- cause?: string;
13082
+ request_id?: string;
13033
13083
  };
13034
13084
  /**
13035
13085
  * ISO 8601 timestamp when this export was accepted.
@@ -13048,6 +13098,14 @@ export type CutExport = {
13048
13098
  * Start an export from a project revision into a bound library.
13049
13099
  */
13050
13100
  export type CutExportInput = {
13101
+ /**
13102
+ * Optional destination path within the bound media library; omitted uses its default folder.
13103
+ */
13104
+ folder?: string;
13105
+ /**
13106
+ * Nonempty display name, frozen with the export. Path separators and control characters become hyphens; limited to 200 characters. Omitted uses project name and timestamp.
13107
+ */
13108
+ name?: string;
13051
13109
  /**
13052
13110
  * Optional render settings; omitted fields use the project export defaults.
13053
13111
  */
@@ -13057,6 +13115,19 @@ export type CutExportInput = {
13057
13115
  */
13058
13116
  binding?: string;
13059
13117
  revision?: CutRevision;
13118
+ /**
13119
+ * Optional loudness normalization target; normalization adds analysis and rendering work.
13120
+ */
13121
+ loudness?: {
13122
+ /**
13123
+ * Integrated loudness target in LUFS.
13124
+ */
13125
+ target_lufs: number;
13126
+ /**
13127
+ * Maximum true peak in dBTP.
13128
+ */
13129
+ true_peak_dbtp: number;
13130
+ };
13060
13131
  };
13061
13132
  /**
13062
13133
  * One page of organization-accessible exports.
@@ -13583,7 +13654,7 @@ export type KnowledgeNativeCreateVectorStore = {
13583
13654
  * Existing File IDs to attach; the store allows up to 10,000 files.
13584
13655
  */
13585
13656
  file_ids?: Array<string>;
13586
- chunking_strategy?: KnowledgeChunkingInput;
13657
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13587
13658
  /**
13588
13659
  * Accepted but not saved or returned; its type is not validated.
13589
13660
  */
@@ -13747,7 +13818,7 @@ export type KnowledgeNativeVectorStoreFile = {
13747
13818
  * Unix timestamp in seconds.
13748
13819
  */
13749
13820
  created_at: number;
13750
- chunking_strategy: KnowledgeChunking;
13821
+ chunking_strategy: KnowledgeNativeChunking;
13751
13822
  /**
13752
13823
  * File attributes used for search filtering; null means no attributes are set.
13753
13824
  */
@@ -13757,7 +13828,7 @@ export type KnowledgeNativeVectorStoreFile = {
13757
13828
  */
13758
13829
  praxis?: {
13759
13830
  /**
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.
13831
+ * 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
13832
  */
13762
13833
  failure_reason?: 'file_too_large' | 'encrypted' | 'empty' | 'unsupported_type' | 'token_limit' | 'recognition_unavailable' | 'deadline_exceeded' | 'internal';
13763
13834
  /**
@@ -13794,7 +13865,7 @@ export type KnowledgeNativeVectorStoreFile = {
13794
13865
  chunk_count: number;
13795
13866
  };
13796
13867
  };
13797
- export type KnowledgeAttachFile = {
13868
+ export type KnowledgeNativeAttachFile = {
13798
13869
  /**
13799
13870
  * Existing source File ID returned by file upload; the file must be visible to the caller.
13800
13871
  */
@@ -13803,7 +13874,7 @@ export type KnowledgeAttachFile = {
13803
13874
  * Search-filter attributes for a newly attached file; omission or null leaves attributes unset. Reattaching an existing file does not change them.
13804
13875
  */
13805
13876
  attributes?: KnowledgeAttributes | null;
13806
- chunking_strategy?: KnowledgeChunkingInput;
13877
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13807
13878
  };
13808
13879
  export type KnowledgeNativeVectorStoreFileList = {
13809
13880
  /**
@@ -13900,7 +13971,7 @@ export type KnowledgeFileBatch = {
13900
13971
  /**
13901
13972
  * Provide exactly one of file_ids or files. Already attached files are reused without changing their attributes or chunking.
13902
13973
  */
13903
- export type KnowledgeCreateBatch = {
13974
+ export type KnowledgeNativeCreateBatch = {
13904
13975
  /**
13905
13976
  * Existing File IDs to attach with shared attributes and chunking settings. Supply file_ids or files, never both.
13906
13977
  */
@@ -13909,7 +13980,7 @@ export type KnowledgeCreateBatch = {
13909
13980
  * Search-filter attributes applied to each newly attached file; omission or null leaves them unset.
13910
13981
  */
13911
13982
  attributes?: KnowledgeAttributes | null;
13912
- chunking_strategy?: KnowledgeChunkingInput;
13983
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13913
13984
  } | {
13914
13985
  /**
13915
13986
  * Files to attach with individual attributes and chunking settings; top-level attributes and chunking_strategy are ignored.
@@ -13920,7 +13991,7 @@ export type KnowledgeCreateBatch = {
13920
13991
  */
13921
13992
  file_id: string;
13922
13993
  attributes?: KnowledgeAttributes;
13923
- chunking_strategy?: KnowledgeChunkingInput;
13994
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13924
13995
  }>;
13925
13996
  /**
13926
13997
  * Ignored when files is supplied.
@@ -14039,6 +14110,10 @@ export type KnowledgeEventList = {
14039
14110
  * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
14040
14111
  */
14041
14112
  export type MediaLibrary = {
14113
+ /**
14114
+ * 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.
14115
+ */
14116
+ readonly hotwords?: Array<string>;
14042
14117
  /**
14043
14118
  * Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
14044
14119
  */
@@ -14105,7 +14180,7 @@ export type MediaLibrary = {
14105
14180
  };
14106
14181
  export type MediaMediaError = {
14107
14182
  error: {
14108
- 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';
14183
+ 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';
14109
14184
  message: string;
14110
14185
  details: string | null;
14111
14186
  };
@@ -14123,9 +14198,21 @@ export type MediaMediaModelsInput = {
14123
14198
  */
14124
14199
  embedding?: string | null;
14125
14200
  /**
14126
- * Model call ID for speech transcription. Null restores the default for this role.
14201
+ * Model call ID for speech transcription. Null restores the default for this role. Defaults to fun-asr with whisper-large-v3-turbo fallback.
14127
14202
  */
14128
14203
  transcription?: string | null;
14204
+ /**
14205
+ * 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.
14206
+ */
14207
+ correction?: string | null;
14208
+ /**
14209
+ * 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.
14210
+ */
14211
+ reference_transcription?: string | null;
14212
+ /**
14213
+ * 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.
14214
+ */
14215
+ audio?: string | null;
14129
14216
  } | null;
14130
14217
  /**
14131
14218
  * Libraries in this page, ordered by creation time descending.
@@ -14140,6 +14227,25 @@ export type MediaLibraryPage = MediaPage & {
14140
14227
  */
14141
14228
  next_cursor: string | null;
14142
14229
  };
14230
+ export type MediaFrameUrls = {
14231
+ /**
14232
+ * Frame links in the same order as the requested timestamps, including duplicates.
14233
+ */
14234
+ frames: Array<{
14235
+ /**
14236
+ * Requested time in microseconds from the start of the video.
14237
+ */
14238
+ at_micros: number;
14239
+ /**
14240
+ * JPEG delivery URL. Fetch it to extract the frame; authenticated links carry a bearer token and must not be shared beyond intended readers.
14241
+ */
14242
+ url: string;
14243
+ /**
14244
+ * UTC expiry for authenticated frame links, 300 seconds after issuance. Upload asset links remain public and permanent; this timestamp does not expire those URLs.
14245
+ */
14246
+ expires_at: string;
14247
+ }>;
14248
+ };
14143
14249
  /**
14144
14250
  * Receipt confirming permanent removal of a previously deleted library.
14145
14251
  */
@@ -14299,7 +14405,7 @@ export type MediaAsset = {
14299
14405
  */
14300
14406
  url: string;
14301
14407
  /**
14302
- * 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.
14408
+ * 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.
14303
14409
  */
14304
14410
  secure_url: string;
14305
14411
  /**
@@ -14382,6 +14488,27 @@ export type MediaAsset = {
14382
14488
  };
14383
14489
  };
14384
14490
  };
14491
+ /**
14492
+ * Source details for the video-generation job that created this asset.
14493
+ */
14494
+ generation?: {
14495
+ /**
14496
+ * Job id that generated this asset.
14497
+ */
14498
+ job_id: MediaJobId;
14499
+ /**
14500
+ * Generation intent used to create the asset; v1 supports video.generate.
14501
+ */
14502
+ intent: string;
14503
+ /**
14504
+ * Text prompt submitted for the generation job.
14505
+ */
14506
+ prompt: string;
14507
+ /**
14508
+ * Router video-generation model that produced the asset.
14509
+ */
14510
+ model: string;
14511
+ };
14385
14512
  };
14386
14513
  /**
14387
14514
  * Receipt confirming that the asset was deleted.
@@ -14408,6 +14535,10 @@ export type MediaUnderstandingPage = MediaPage & {
14408
14535
  * Opaque token to pass as cursor to listUnderstandings; null means no further page.
14409
14536
  */
14410
14537
  next_cursor: string | null;
14538
+ /**
14539
+ * 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.
14540
+ */
14541
+ readonly shots?: Array<MediaUnderstoodShot>;
14411
14542
  };
14412
14543
  /**
14413
14544
  * Expression-search page with match counts, elapsed time and optional facet counts.
@@ -14491,7 +14622,19 @@ export type MediaFolders = {
14491
14622
  * Number of assets in this folder and all descendant folders.
14492
14623
  */
14493
14624
  asset_count: number;
14625
+ /**
14626
+ * Active ready and partial assets in this folder and every descendant folder.
14627
+ */
14628
+ understood_count: number;
14629
+ /**
14630
+ * Active failed assets in this folder and every descendant folder.
14631
+ */
14632
+ failed_count: number;
14494
14633
  }>;
14634
+ /**
14635
+ * False while historical folder and failure counts are being populated; refresh after backfill completes.
14636
+ */
14637
+ counts_complete: boolean;
14495
14638
  };
14496
14639
  /**
14497
14640
  * Asynchronous batch job with successful and failed item counts.
@@ -14506,19 +14649,19 @@ export type MediaJob = {
14506
14649
  */
14507
14650
  library_id: MediaLibraryId;
14508
14651
  /**
14509
- * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
14652
+ * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets. reprocess starts fenced understanding Workflows for retryable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported and permanent steps remain unchanged.
14510
14653
  */
14511
- action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete';
14654
+ action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'generate';
14512
14655
  /**
14513
14656
  * Job status: queued awaits execution; running is processing items; completed means all items succeeded; completed_with_errors means some succeeded and some failed; failed means all selected items failed. An empty job completes successfully.
14514
14657
  */
14515
- status: 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed';
14658
+ status: MediaJobStatus;
14516
14659
  /**
14517
14660
  * Number of distinct assets selected when the job was created.
14518
14661
  */
14519
14662
  total: number;
14520
14663
  /**
14521
- * Number of items successfully processed; failed items are counted separately.
14664
+ * Number of items successfully processed; failed items are counted separately. For reprocess, this counts accepted launches; inspect asset progress for model completion.
14522
14665
  */
14523
14666
  done: number;
14524
14667
  /**
@@ -14532,12 +14675,66 @@ export type MediaJob = {
14532
14675
  /**
14533
14676
  * Identifier supplied for the failed item; it may identify a missing asset.
14534
14677
  */
14535
- asset_id: MediaAssetId;
14678
+ asset_id?: MediaAssetId;
14679
+ /**
14680
+ * Zero-based output index for a failed video-generation item.
14681
+ */
14682
+ index?: number;
14536
14683
  /**
14537
14684
  * Domain error code explaining the individual item failure.
14538
14685
  */
14539
14686
  code: MediaMediaErrorCode;
14540
14687
  }>;
14688
+ /**
14689
+ * Generation intent used by this job; v1 supports video.generate.
14690
+ */
14691
+ intent?: string;
14692
+ /**
14693
+ * Router video-generation model used for the outputs.
14694
+ */
14695
+ model?: string;
14696
+ /**
14697
+ * Per-video results in index order; save a successful candidate before expires_at.
14698
+ */
14699
+ outputs?: Array<{
14700
+ /**
14701
+ * Zero-based position of this video in the requested count.
14702
+ */
14703
+ index: number;
14704
+ /**
14705
+ * State of this requested video output.
14706
+ */
14707
+ status: MediaGenerationOutputStatus;
14708
+ /**
14709
+ * Short-lived signed URL for previewing this candidate; read the Job again to obtain a fresh URL.
14710
+ */
14711
+ preview_url?: string;
14712
+ /**
14713
+ * Router seed for this video, when returned; it may be absent.
14714
+ */
14715
+ seed?: number | null;
14716
+ /**
14717
+ * Candidate expiry time; after expiry, save returns CANDIDATE_EXPIRED.
14718
+ */
14719
+ expires_at?: MediaIsoTimestamp;
14720
+ /**
14721
+ * Library asset identifier after this candidate has been saved, or when the job requested save=library.
14722
+ */
14723
+ asset_id?: MediaAssetId;
14724
+ }>;
14725
+ /**
14726
+ * Router-reported generation charge for the job.
14727
+ */
14728
+ usage?: {
14729
+ /**
14730
+ * Decimal amount in the currency named by currency; this is not a floating-point value.
14731
+ */
14732
+ amount: string;
14733
+ /**
14734
+ * Currency code for amount.
14735
+ */
14736
+ currency: string;
14737
+ };
14541
14738
  /**
14542
14739
  * Time the batch job was created, in UTC.
14543
14740
  */
@@ -14584,6 +14781,15 @@ export type MediaBatchAction = {
14584
14781
  * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
14585
14782
  */
14586
14783
  action: 'delete';
14784
+ } | {
14785
+ /**
14786
+ * reprocess retries recoverable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported, permanent and completed steps remain unchanged.
14787
+ */
14788
+ action: 'reprocess';
14789
+ /**
14790
+ * 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.
14791
+ */
14792
+ kinds?: Array<MediaProcessingKind>;
14587
14793
  };
14588
14794
  /**
14589
14795
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
@@ -14629,6 +14835,91 @@ export type MediaDeliveryToken = {
14629
14835
  */
14630
14836
  expires_at: string;
14631
14837
  };
14838
+ export type MediaFailureSummary = {
14839
+ /**
14840
+ * Number of current failed understanding entries, excluding deleted assets and superseded versions.
14841
+ */
14842
+ total: number;
14843
+ /**
14844
+ * Failure entries grouped by code, output kind and producer model. Each group includes up to five distinct example asset IDs.
14845
+ */
14846
+ groups: Array<MediaFailureGroup>;
14847
+ /**
14848
+ * False while historical failure and folder statistics are being populated. Counts include current writes immediately.
14849
+ */
14850
+ counts_complete: boolean;
14851
+ };
14852
+ /**
14853
+ * Current state of a batch or video-generation job.
14854
+ */
14855
+ export type MediaJobStatus = 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed' | 'cancelled';
14856
+ /**
14857
+ * Identifier returned when a batch job is created.
14858
+ */
14859
+ export type MediaJobId = string;
14860
+ /**
14861
+ * A page of jobs in a library.
14862
+ */
14863
+ export type MediaJobPage = {
14864
+ /**
14865
+ * Jobs returned in this page.
14866
+ */
14867
+ data: Array<MediaJob>;
14868
+ /**
14869
+ * Cursor for the next page, or null when there are no more jobs.
14870
+ */
14871
+ next_cursor: MediaJobId | null;
14872
+ };
14873
+ /**
14874
+ * Current text-to-video options, concurrency and candidate retention. Generation is charged per second; unsaved candidates expire after 7 days.
14875
+ */
14876
+ export type MediaGenerationCapabilities = {
14877
+ /**
14878
+ * Text-to-video intents currently supported by Media.
14879
+ */
14880
+ intents: Array<string>;
14881
+ /**
14882
+ * Model selected when model is omitted from a generation request.
14883
+ */
14884
+ default_model: string;
14885
+ /**
14886
+ * Allowed number of videos per generation job.
14887
+ */
14888
+ count: {
14889
+ /**
14890
+ * Minimum number of videos in one generation job.
14891
+ */
14892
+ minimum: number;
14893
+ /**
14894
+ * Maximum number of videos in one generation job.
14895
+ */
14896
+ maximum: number;
14897
+ };
14898
+ /**
14899
+ * Durations in seconds supported by the default video model.
14900
+ */
14901
+ duration_seconds: Array<number>;
14902
+ /**
14903
+ * Aspect ratios supported by the default video model.
14904
+ */
14905
+ aspect_ratios: Array<string>;
14906
+ /**
14907
+ * Aspect ratio used when aspect_ratio is omitted.
14908
+ */
14909
+ default_aspect_ratio: string;
14910
+ /**
14911
+ * Maximum number of queued or running generation jobs per library.
14912
+ */
14913
+ concurrency_per_library: number;
14914
+ /**
14915
+ * Unit used to charge video generation; generated duration is billed per second by Router.
14916
+ */
14917
+ price_unit: 'per second';
14918
+ /**
14919
+ * Days an unsaved candidate is retained before its File is deleted.
14920
+ */
14921
+ candidate_retention_days: number;
14922
+ };
14632
14923
  /**
14633
14924
  * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
14634
14925
  */
@@ -15071,6 +15362,10 @@ export type SandboxTemplateBuildInfo = {
15071
15362
  reason?: SandboxBuildStatusReason;
15072
15363
  };
15073
15364
  export type SandboxTemplateWithBuilds = {
15365
+ /**
15366
+ * Lifecycle classes this template can run as. ephemeral: cannot pause, snapshot or mount volumes and is deleted when it stops; persistent: can pause, resume and snapshot.
15367
+ */
15368
+ lifecycles?: Array<'ephemeral' | 'persistent'>;
15074
15369
  /**
15075
15370
  * Identifier of the template
15076
15371
  */
@@ -24979,6 +25274,10 @@ export type CutTimeline = {
24979
25274
  * Ordered tracks, topmost visual layer first.
24980
25275
  */
24981
25276
  tracks: Array<CutTrack>;
25277
+ /**
25278
+ * Clip-to-clip transitions selected by track and overlap window; lengths are seconds and effect fields use snake_case on HTTP.
25279
+ */
25280
+ joins?: Array<CutJoin>;
24982
25281
  /**
24983
25282
  * Named points on the timeline.
24984
25283
  */
@@ -25071,6 +25370,20 @@ export type CutTrackSummary = {
25071
25370
  */
25072
25371
  items: number;
25073
25372
  };
25373
+ export type CutFrameWarning = {
25374
+ /**
25375
+ * FRAME_UNAVAILABLE means a source image could not be fetched for this preview.
25376
+ */
25377
+ code: 'FRAME_UNAVAILABLE';
25378
+ /**
25379
+ * Identifier of the clip whose source frame could not be fetched.
25380
+ */
25381
+ clip_id?: string;
25382
+ /**
25383
+ * Actionable safe explanation; source URLs and credentials are omitted.
25384
+ */
25385
+ message: string;
25386
+ };
25074
25387
  /**
25075
25388
  * Reference to an asset in a bound library; follows asset overwrites to the latest version rather than pinning a version.
25076
25389
  */
@@ -25293,7 +25606,7 @@ export type KnowledgeKnowledgeModels = {
25293
25606
  */
25294
25607
  query_rewrite: string;
25295
25608
  /**
25296
- * Extracts text from scanned PDF pages. Default: glm-ocr, falling back to qwen3.8-flash. A custom model precedes the platform defaults.
25609
+ * 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.
25297
25610
  */
25298
25611
  ocr: string;
25299
25612
  /**
@@ -25302,14 +25615,9 @@ export type KnowledgeKnowledgeModels = {
25302
25615
  vision: string;
25303
25616
  };
25304
25617
  /**
25305
- * auto resolves to static with 800 estimated tokens and 400 overlap tokens. Unlike OpenAI vector stores, token counts are estimates; each Han character counts as one, and other whitespace-delimited words count as their UTF-16 length divided by four, rounded up.
25618
+ * Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy.
25306
25619
  */
25307
- export type KnowledgeChunkingInput = {
25308
- /**
25309
- * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
25310
- */
25311
- type: 'auto';
25312
- } | KnowledgeStaticChunking;
25620
+ export type KnowledgeNativeChunkingInput = KnowledgeChunkingInput | KnowledgeHierarchicalChunking;
25313
25621
  /**
25314
25622
  * Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.
25315
25623
  */
@@ -25327,7 +25635,7 @@ export type KnowledgeKnowledgeModelsInput = {
25327
25635
  */
25328
25636
  query_rewrite?: string | null;
25329
25637
  /**
25330
- * 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.
25638
+ * 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.
25331
25639
  */
25332
25640
  ocr?: string | null;
25333
25641
  /**
@@ -25364,6 +25672,10 @@ export type KnowledgeNativeSearchResult = {
25364
25672
  * Extracted text of the matched chunk, which may overlap neighboring chunks.
25365
25673
  */
25366
25674
  text: string;
25675
+ /**
25676
+ * 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.
25677
+ */
25678
+ readonly image_file_id?: string;
25367
25679
  /**
25368
25680
  * Resource ID.
25369
25681
  */
@@ -25427,14 +25739,9 @@ export type KnowledgeFilter = {
25427
25739
  filters: Array<KnowledgeFilter>;
25428
25740
  };
25429
25741
  /**
25430
- * Stored chunking strategy for this attachment; auto input is returned as static settings.
25742
+ * Native stored strategy, including hierarchical parent and child settings. auto input resolves to static; the OpenAI-compatible URL projects hierarchical as other.
25431
25743
  */
25432
- export type KnowledgeChunking = KnowledgeStaticChunking | {
25433
- /**
25434
- * other identifies a stored strategy whose chunk-size settings are unavailable.
25435
- */
25436
- type: 'other';
25437
- };
25744
+ export type KnowledgeNativeChunking = KnowledgeChunking | KnowledgeHierarchicalChunking;
25438
25745
  /**
25439
25746
  * File attributes used by search filters. Up to 16 keys of 64 characters; string values up to 512 characters.
25440
25747
  */
@@ -25546,7 +25853,7 @@ export type MediaUnderstandingProgress = {
25546
25853
  readonly migration_complete: boolean;
25547
25854
  };
25548
25855
  /**
25549
- * Resolved model call IDs for the library’s vision, embedding and transcription roles.
25856
+ * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
25550
25857
  */
25551
25858
  export type MediaMediaModels = {
25552
25859
  /**
@@ -25558,9 +25865,21 @@ export type MediaMediaModels = {
25558
25865
  */
25559
25866
  embedding: string;
25560
25867
  /**
25561
- * Model call ID for speech transcription.
25868
+ * Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
25562
25869
  */
25563
25870
  transcription: string;
25871
+ /**
25872
+ * Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
25873
+ */
25874
+ readonly correction: string;
25875
+ /**
25876
+ * Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
25877
+ */
25878
+ readonly reference_transcription: string;
25879
+ /**
25880
+ * 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.
25881
+ */
25882
+ readonly audio: string;
25564
25883
  };
25565
25884
  /**
25566
25885
  * Identifier of a library belonging to the caller.
@@ -25721,7 +26040,7 @@ export type MediaCloudinaryResource = {
25721
26040
  */
25722
26041
  url: string;
25723
26042
  /**
25724
- * 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.
26043
+ * 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.
25725
26044
  */
25726
26045
  secure_url: string;
25727
26046
  /**
@@ -25757,13 +26076,13 @@ export type MediaChunkComplete = MediaCloudinaryResource & {
25757
26076
  done: true;
25758
26077
  };
25759
26078
  /**
25760
- * Per-task processing progress and its aggregate state for the asset.
26079
+ * 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.
25761
26080
  */
25762
26081
  export type MediaProcessing = {
25763
26082
  /**
25764
- * Current understanding stage: probe, frames, visual, transcript, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
26083
+ * 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.
25765
26084
  */
25766
- readonly stage?: 'probe' | 'frames' | 'visual' | 'transcript' | 'embedding' | 'finalize' | null;
26085
+ readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
25767
26086
  state: MediaProcessingState;
25768
26087
  /**
25769
26088
  * Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
@@ -25805,6 +26124,18 @@ export type MediaStoryboard = {
25805
26124
  * An immutable understanding result for an asset version, including superseded history when requested.
25806
26125
  */
25807
26126
  export type MediaUnderstanding = {
26127
+ /**
26128
+ * Original hallucination-filtered ASR text before correction, present on correction-enabled transcript records. Omitted on legacy records and other kinds.
26129
+ */
26130
+ readonly text_original?: string;
26131
+ /**
26132
+ * Corrected transcript, also returned as content and used for subtitles and search. Equals text_original when correction fails. Original segment timestamps remain unchanged.
26133
+ */
26134
+ readonly text?: string;
26135
+ /**
26136
+ * Transcript correction audit, accepted edits and optional reference ASR. Present on correction-enabled transcript records, including failed corrections.
26137
+ */
26138
+ readonly correction?: MediaTranscriptCorrection;
25808
26139
  /**
25809
26140
  * Generated identifier of this understanding result.
25810
26141
  */
@@ -25818,7 +26149,7 @@ export type MediaUnderstanding = {
25818
26149
  */
25819
26150
  asset_version: number;
25820
26151
  /**
25821
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment.
26152
+ * 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.
25822
26153
  */
25823
26154
  kind: MediaUnderstandingKind;
25824
26155
  /**
@@ -25842,7 +26173,7 @@ export type MediaUnderstanding = {
25842
26173
  */
25843
26174
  content: string | null;
25844
26175
  /**
25845
- * Structured producer output, such as recognized labels or frame details; null when absent.
26176
+ * 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.
25846
26177
  */
25847
26178
  data: unknown | null;
25848
26179
  /**
@@ -25871,6 +26202,36 @@ export type MediaUnderstanding = {
25871
26202
  */
25872
26203
  created_at: MediaIsoTimestamp;
25873
26204
  };
26205
+ export type MediaUnderstoodShot = {
26206
+ /**
26207
+ * Inclusive shot start in milliseconds.
26208
+ */
26209
+ readonly start_ms: number;
26210
+ /**
26211
+ * Exclusive shot end in milliseconds.
26212
+ */
26213
+ readonly end_ms: number;
26214
+ /**
26215
+ * Zero-based shot index in timeline order.
26216
+ */
26217
+ readonly index: number;
26218
+ /**
26219
+ * One to three sampled frame timestamps in milliseconds within this shot.
26220
+ */
26221
+ readonly keyframes_ms: Array<number>;
26222
+ /**
26223
+ * Structured interpretation, present after this shot completes visual processing.
26224
+ */
26225
+ readonly visual?: MediaShotVisual;
26226
+ /**
26227
+ * 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.
26228
+ */
26229
+ readonly folder_mismatch?: boolean;
26230
+ /**
26231
+ * Vision model that generated this shot interpretation.
26232
+ */
26233
+ readonly producer?: string;
26234
+ };
25874
26235
  /**
25875
26236
  * A native asset returned by expression search; tags and context are included only when requested in with_field.
25876
26237
  */
@@ -25988,7 +26349,7 @@ export type MediaSearchAsset = {
25988
26349
  */
25989
26350
  url: string;
25990
26351
  /**
25991
- * 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.
26352
+ * 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.
25992
26353
  */
25993
26354
  secure_url: string;
25994
26355
  /**
@@ -26071,6 +26432,27 @@ export type MediaSearchAsset = {
26071
26432
  };
26072
26433
  };
26073
26434
  };
26435
+ /**
26436
+ * Source details for the video-generation job that created this asset.
26437
+ */
26438
+ generation?: {
26439
+ /**
26440
+ * Job id that generated this asset.
26441
+ */
26442
+ job_id: MediaJobId;
26443
+ /**
26444
+ * Generation intent used to create the asset; v1 supports video.generate.
26445
+ */
26446
+ intent: string;
26447
+ /**
26448
+ * Text prompt submitted for the generation job.
26449
+ */
26450
+ prompt: string;
26451
+ /**
26452
+ * Router video-generation model that produced the asset.
26453
+ */
26454
+ model: string;
26455
+ };
26074
26456
  };
26075
26457
  /**
26076
26458
  * A matching asset with its ranking score and supporting matches.
@@ -26093,11 +26475,11 @@ export type MediaSemanticHit = {
26093
26475
  */
26094
26476
  matches: Array<MediaSemanticMatch>;
26095
26477
  };
26478
+ 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';
26096
26479
  /**
26097
- * Identifier returned when a batch job is created.
26480
+ * State of a requested video output.
26098
26481
  */
26099
- export type MediaJobId = string;
26100
- 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';
26482
+ export type MediaGenerationOutputStatus = 'pending' | 'succeeded' | 'failed';
26101
26483
  /**
26102
26484
  * A recorded library event with a monotonically increasing sequence within that library.
26103
26485
  */
@@ -26141,6 +26523,36 @@ export type MediaMediaEvent = {
26141
26523
  [key: string]: unknown;
26142
26524
  };
26143
26525
  };
26526
+ export type MediaFailureGroup = {
26527
+ /**
26528
+ * Failure reason code. Unknown codes are retryable.
26529
+ */
26530
+ code: string;
26531
+ /**
26532
+ * Understanding output kind that failed, such as caption, frame, transcript or embedding.
26533
+ */
26534
+ kind: string;
26535
+ /**
26536
+ * Producer model that reported this failure; unknown when historical provenance was unavailable.
26537
+ */
26538
+ model: string;
26539
+ /**
26540
+ * Number of current failed entries in this group; several entries can belong to one asset.
26541
+ */
26542
+ count: number;
26543
+ /**
26544
+ * 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.
26545
+ */
26546
+ overflow: boolean;
26547
+ /**
26548
+ * True when a repeated attempt may recover, including unknown error codes. False for unsupported media, limits, missing or corrupt source files.
26549
+ */
26550
+ retryable: boolean;
26551
+ /**
26552
+ * Up to five distinct asset identifiers from this group, for inspecting original error details.
26553
+ */
26554
+ sample_asset_ids: Array<MediaAssetId>;
26555
+ };
26144
26556
  /**
26145
26557
  * Auto-resume configuration for paused sandboxes.
26146
26558
  */
@@ -30467,6 +30879,32 @@ export type CutTrack = {
30467
30879
  */
30468
30880
  items: Array<CutItem>;
30469
30881
  };
30882
+ /**
30883
+ * Overlap between adjacent visual clips on the same track; creating it shifts the right clip and same-track followers left by its length.
30884
+ */
30885
+ export type CutJoin = {
30886
+ /**
30887
+ * Join identifier returned by Join; reuse as the id argument to UpdateJoin or DeleteJoin inside execute.
30888
+ */
30889
+ id: string;
30890
+ /**
30891
+ * Visual track containing both endpoints, from AddTrack or the timeline track id.
30892
+ */
30893
+ track: string;
30894
+ /**
30895
+ * Outgoing clip identifier, from Insert or the timeline items.
30896
+ */
30897
+ left: string;
30898
+ /**
30899
+ * Incoming clip identifier, from Insert or the timeline items.
30900
+ */
30901
+ right: string;
30902
+ /**
30903
+ * Overlap duration in seconds, positive and shorter than each endpoint; incoming plus outgoing lengths may not exceed a clip length.
30904
+ */
30905
+ length: number;
30906
+ effect: CutJoinEffect;
30907
+ };
30470
30908
  /**
30471
30909
  * A named point on the project timeline.
30472
30910
  */
@@ -30484,23 +30922,39 @@ export type CutMarker = {
30484
30922
  */
30485
30923
  label: string;
30486
30924
  };
30487
- export type KnowledgeStaticChunking = {
30925
+ /**
30926
+ * 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.
30927
+ */
30928
+ export type KnowledgeChunkingInput = {
30488
30929
  /**
30489
- * static selects explicit chunk-size and overlap settings.
30930
+ * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
30490
30931
  */
30491
- type: 'static';
30932
+ type: 'auto';
30933
+ } | KnowledgeStaticChunking;
30934
+ /**
30935
+ * 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.
30936
+ */
30937
+ export type KnowledgeHierarchicalChunking = {
30492
30938
  /**
30493
- * Chunk-size and overlap limits in estimated tokens.
30939
+ * hierarchical selects smaller child chunks for matching and larger parent chunks for context.
30494
30940
  */
30495
- static: {
30941
+ type: 'hierarchical';
30942
+ /**
30943
+ * Required parent, child and overlap sizes in estimated tokens. All three values must be integers.
30944
+ */
30945
+ hierarchical: {
30496
30946
  /**
30497
- * Estimated tokens per chunk.
30947
+ * Maximum estimated tokens per parent chunk, from 101 through 4096; must exceed child_max_tokens.
30498
30948
  */
30499
- max_chunk_size_tokens: number;
30949
+ parent_max_tokens: number;
30500
30950
  /**
30501
- * Must not exceed half of max_chunk_size_tokens.
30951
+ * Maximum estimated tokens per child chunk, at least 100 and strictly smaller than parent_max_tokens.
30502
30952
  */
30503
- chunk_overlap_tokens: number;
30953
+ child_max_tokens: number;
30954
+ /**
30955
+ * Estimated tokens shared by adjacent children, from zero through floor(child_max_tokens / 2).
30956
+ */
30957
+ child_overlap_tokens: number;
30504
30958
  };
30505
30959
  };
30506
30960
  /**
@@ -30540,6 +30994,15 @@ export type KnowledgeSearchExplain = {
30540
30994
  */
30541
30995
  matched_terms: Array<string>;
30542
30996
  };
30997
+ /**
30998
+ * Stored chunking strategy for this attachment; auto input is returned as static settings.
30999
+ */
31000
+ export type KnowledgeChunking = KnowledgeStaticChunking | {
31001
+ /**
31002
+ * other identifies a stored strategy whose chunk-size settings are unavailable.
31003
+ */
31004
+ type: 'other';
31005
+ };
30543
31006
  /**
30544
31007
  * Aggregate processing state across the asset processing tasks.
30545
31008
  */
@@ -30548,14 +31011,66 @@ export type MediaProcessingState = 'pending' | 'processing' | 'ready' | 'partial
30548
31011
  * Task state: pending awaits execution; running is executing; ready succeeded; failed terminated unsuccessfully; unsupported cannot process this input; skipped was disabled or does not apply.
30549
31012
  */
30550
31013
  export type MediaKindState = 'pending' | 'running' | 'ready' | 'failed' | 'unsupported' | 'skipped';
31014
+ export type MediaTranscriptCorrection = {
31015
+ /**
31016
+ * Accepted local edits, including deterministic Arabic quantity normalization. Unsupported model edits are discarded.
31017
+ */
31018
+ readonly edits: Array<MediaTranscriptEdit>;
31019
+ /**
31020
+ * ready means correction and validation completed; failed means text is exactly the ASR original, with no accepted edits.
31021
+ */
31022
+ readonly correction_status: 'ready' | 'failed';
31023
+ /**
31024
+ * Configured correction model call ID; defaults to qwen3.8-flash.
31025
+ */
31026
+ readonly correction_model: string;
31027
+ /**
31028
+ * ready means reference ASR supplied text; missing means reference failed or was unavailable and correction proceeded without it.
31029
+ */
31030
+ readonly reference_status: 'ready' | 'missing';
31031
+ /**
31032
+ * Full reference ASR text, present when reference_status is ready. It supplies spelling evidence and has no timestamps.
31033
+ */
31034
+ readonly reference_text?: string;
31035
+ /**
31036
+ * Model call ID that supplied the reference text; defaults to qwen3-asr-flash.
31037
+ */
31038
+ readonly reference_model?: string;
31039
+ /**
31040
+ * Correction failure that caused verbatim fallback to the ASR original.
31041
+ */
31042
+ readonly correction_error?: {
31043
+ /**
31044
+ * Failure code for the optional transcript enhancement step.
31045
+ */
31046
+ code: string;
31047
+ /**
31048
+ * Failure detail; use reprocess to retry with the library’s current configuration.
31049
+ */
31050
+ message: string;
31051
+ };
31052
+ /**
31053
+ * Reference failure; it does not block correction.
31054
+ */
31055
+ readonly reference_error?: {
31056
+ /**
31057
+ * Failure code for the optional transcript enhancement step.
31058
+ */
31059
+ code: string;
31060
+ /**
31061
+ * Failure detail; use reprocess to retry with the library’s current configuration.
31062
+ */
31063
+ message: string;
31064
+ };
31065
+ };
30551
31066
  /**
30552
31067
  * Identifier of an immutable understanding result.
30553
31068
  */
30554
31069
  export type MediaUnderstandingId = string;
30555
31070
  /**
30556
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment.
31071
+ * 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.
30557
31072
  */
30558
- export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
31073
+ export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
30559
31074
  /**
30560
31075
  * Time range within the source media, expressed in milliseconds.
30561
31076
  */
@@ -30569,6 +31084,28 @@ export type MediaSegment = {
30569
31084
  */
30570
31085
  end_ms: number;
30571
31086
  };
31087
+ export type MediaShotVisual = {
31088
+ /**
31089
+ * Chinese summary of the entire shot using its keyframes together.
31090
+ */
31091
+ readonly caption: string;
31092
+ /**
31093
+ * Chinese description of the scene and shooting context.
31094
+ */
31095
+ readonly scene: string;
31096
+ /**
31097
+ * Location inferred from recognizable landmarks or readable place names; null without evidence.
31098
+ */
31099
+ readonly location_guess: string | null;
31100
+ /**
31101
+ * Visible text in reading order, preserving the source language.
31102
+ */
31103
+ readonly on_screen_text: Array<string>;
31104
+ /**
31105
+ * Quality and editing characteristics with confidence for every judgment.
31106
+ */
31107
+ readonly flags: MediaShotFlags;
31108
+ };
30572
31109
  /**
30573
31110
  * Evidence contributing to a search hit, optionally linked to an understanding and a source-media segment.
30574
31111
  */
@@ -30593,7 +31130,7 @@ export type MediaSemanticMatch = {
30593
31130
  /**
30594
31131
  * Type of change recorded for a library, asset, processing task, search index or batch.
30595
31132
  */
30596
- export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed';
31133
+ 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';
30597
31134
  /**
30598
31135
  * Auto-resume enabled flag for paused sandboxes. Default false.
30599
31136
  */
@@ -31225,21 +31762,25 @@ export type AnthropicToolReferenceBlock = {
31225
31762
  */
31226
31763
  export type CutTextStyle = {
31227
31764
  /**
31228
- * Geist is the Latin typeface; Noto Sans SC is the simplified Chinese typeface.
31765
+ * Canonical font family name; call ListFonts() in the Cut script API to retrieve the available font families.
31229
31766
  */
31230
- font_family?: 'Geist' | 'Noto Sans SC';
31767
+ font_family?: string;
31231
31768
  /**
31232
31769
  * Text size in output pixels.
31233
31770
  */
31234
31771
  font_size?: number;
31235
31772
  /**
31236
- * Font weight: 400 is regular, 500 is medium and 700 is bold.
31773
+ * 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.
31237
31774
  */
31238
- font_weight?: 400 | 500 | 700;
31775
+ font_weight?: number;
31239
31776
  /**
31240
31777
  * Text color in #RRGGBB or #RRGGBBAA notation.
31241
31778
  */
31242
31779
  color?: string;
31780
+ /**
31781
+ * Optional solid or gradient glyph fill; gradients span the text box.
31782
+ */
31783
+ fill?: CutFill;
31243
31784
  /**
31244
31785
  * Optional text outline.
31245
31786
  */
@@ -31249,10 +31790,61 @@ export type CutTextStyle = {
31249
31790
  */
31250
31791
  color?: string;
31251
31792
  /**
31252
- * Outline width in output pixels.
31793
+ * Outline width in output pixels; must be non-negative and at most 40 pixels.
31253
31794
  */
31254
31795
  width?: number;
31255
31796
  };
31797
+ /**
31798
+ * Additional outlines, painted from outermost to innermost; at most 4 strokes.
31799
+ */
31800
+ strokes?: Array<{
31801
+ /**
31802
+ * Outline color in #RRGGBB or #RRGGBBAA notation.
31803
+ */
31804
+ color?: string;
31805
+ /**
31806
+ * Outline width in output pixels, from 0 to 40.
31807
+ */
31808
+ width?: number;
31809
+ }>;
31810
+ /**
31811
+ * Offset text shadows; at most 4 shadows. Offsets are non-negative output pixels; blur is 0 to 100 output pixels.
31812
+ */
31813
+ shadows?: Array<{
31814
+ /**
31815
+ * Shadow color in #RRGGBB or #RRGGBBAA notation.
31816
+ */
31817
+ color?: string;
31818
+ /**
31819
+ * Non-negative horizontal offset in output pixels.
31820
+ */
31821
+ x?: number;
31822
+ /**
31823
+ * Non-negative vertical offset in output pixels.
31824
+ */
31825
+ y?: number;
31826
+ /**
31827
+ * Blur radius in output pixels, from 0 to 100.
31828
+ */
31829
+ blur?: number;
31830
+ }>;
31831
+ /**
31832
+ * Colored glow around glyphs; radius is in output pixels, from 0 to 100, and strength is from 0 to 1.
31833
+ */
31834
+ glow?: {
31835
+ /**
31836
+ * Glow color in #RRGGBB or #RRGGBBAA notation.
31837
+ */
31838
+ color?: string;
31839
+ /**
31840
+ * Glow blur radius in output pixels, from 0 to 100.
31841
+ */
31842
+ radius?: number;
31843
+ /**
31844
+ * Glow opacity multiplier from 0 to 1.
31845
+ */
31846
+ strength?: number;
31847
+ };
31256
31848
  /**
31257
31849
  * Optional text background color as hexadecimal RGB or RGBA.
31258
31850
  */
@@ -31266,9 +31858,13 @@ export type CutTextStyle = {
31266
31858
  */
31267
31859
  max_width?: number;
31268
31860
  /**
31269
- * Caption placement: top is near the upper edge, middle is centered, bottom is near the lower edge.
31861
+ * Text or caption placement: top/middle/bottom center the box at 12%/50%/85% of height without margin; omitted text position preserves its transform.
31270
31862
  */
31271
31863
  position?: 'top' | 'middle' | 'bottom';
31864
+ /**
31865
+ * Box edge distance from the top or bottom as a fraction of canvas height; middle ignores it.
31866
+ */
31867
+ margin?: number;
31272
31868
  /**
31273
31869
  * Optional color applied to the currently spoken caption word.
31274
31870
  */
@@ -31380,6 +31976,200 @@ export type CutItem = {
31380
31976
  */
31381
31977
  words?: Array<CutCaptionWord>;
31382
31978
  };
31979
+ /**
31980
+ * 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.
31981
+ */
31982
+ export type CutJoinEffect = {
31983
+ /**
31984
+ * Dissolve: Blend the outgoing shot into the incoming shot.
31985
+ */
31986
+ kind: 'dissolve';
31987
+ } | {
31988
+ /**
31989
+ * Dip: Fade through a solid color between the two shots.
31990
+ */
31991
+ kind: 'dip';
31992
+ /**
31993
+ * Solid color shown between shots.
31994
+ */
31995
+ color?: 'black' | 'white';
31996
+ } | {
31997
+ /**
31998
+ * Push: Slide the incoming shot into view as it pushes the outgoing shot away.
31999
+ */
32000
+ kind: 'push';
32001
+ /**
32002
+ * Direction in which the transition moves across the frame.
32003
+ */
32004
+ direction?: 'left' | 'right' | 'up' | 'down';
32005
+ } | {
32006
+ /**
32007
+ * Wipe: Reveal the incoming shot behind an edge moving across the outgoing shot.
32008
+ */
32009
+ kind: 'wipe';
32010
+ /**
32011
+ * Direction in which the transition moves across the frame.
32012
+ */
32013
+ direction?: 'left' | 'right' | 'up' | 'down';
32014
+ /**
32015
+ * Edge softness from a sharp boundary to a fully softened blend.
32016
+ */
32017
+ softness?: number;
32018
+ } | {
32019
+ /**
32020
+ * Iris: Reveal the incoming shot through an expanding circular opening.
32021
+ */
32022
+ kind: 'iris';
32023
+ /**
32024
+ * Horizontal opening center from the left edge to the right edge.
32025
+ */
32026
+ center_x?: number;
32027
+ /**
32028
+ * Vertical opening center from the top edge to the bottom edge.
32029
+ */
32030
+ center_y?: number;
32031
+ } | {
32032
+ /**
32033
+ * Blinds: Reveal the incoming shot through a set of parallel strips.
32034
+ */
32035
+ kind: 'blinds';
32036
+ /**
32037
+ * Number of strips revealing the incoming shot.
32038
+ */
32039
+ count?: number;
32040
+ /**
32041
+ * Orientation of the revealing strips.
32042
+ */
32043
+ orientation?: 'vertical' | 'horizontal';
32044
+ } | {
32045
+ /**
32046
+ * Blur: Blur the outgoing shot into the incoming shot before returning to focus.
32047
+ */
32048
+ kind: 'blur';
32049
+ /**
32050
+ * Blur radius in pixels at a reference frame height of 1080 pixels.
32051
+ */
32052
+ radius?: number;
32053
+ } | {
32054
+ /**
32055
+ * Zoom transition.
32056
+ */
32057
+ kind: 'zoom';
32058
+ /**
32059
+ * Zoom in or out.
32060
+ */
32061
+ direction?: 'in' | 'out';
32062
+ /**
32063
+ * Peak scale increase as a multiple of the original scale.
32064
+ */
32065
+ amount?: number;
32066
+ /**
32067
+ * Radial blur strength; zero disables blur sampling.
32068
+ */
32069
+ blur?: number;
32070
+ } | {
32071
+ /**
32072
+ * Clock transition.
32073
+ */
32074
+ kind: 'clock';
32075
+ /**
32076
+ * Sweep direction.
32077
+ */
32078
+ direction?: 'clockwise' | 'counterclockwise';
32079
+ /**
32080
+ * Start angle in degrees, with zero at twelve o'clock.
32081
+ */
32082
+ start_angle?: number;
32083
+ /**
32084
+ * Angular feather width.
32085
+ */
32086
+ softness?: number;
32087
+ } | {
32088
+ /**
32089
+ * Flash transition.
32090
+ */
32091
+ kind: 'flash';
32092
+ /**
32093
+ * Flash color.
32094
+ */
32095
+ color?: 'white' | 'black';
32096
+ /**
32097
+ * Flash strength.
32098
+ */
32099
+ intensity?: number;
32100
+ } | {
32101
+ /**
32102
+ * Luma transition.
32103
+ */
32104
+ kind: 'luma';
32105
+ /**
32106
+ * Built-in map. User maps are not available yet.
32107
+ */
32108
+ map?: 'radial' | 'diagonal' | 'clouds' | 'spiral' | 'honeycomb' | 'bars';
32109
+ /**
32110
+ * Edge feather width.
32111
+ */
32112
+ softness?: number;
32113
+ /**
32114
+ * Reveal order.
32115
+ */
32116
+ invert?: 'normal' | 'inverted';
32117
+ };
32118
+ export type KnowledgeStaticChunking = {
32119
+ /**
32120
+ * static selects explicit chunk-size and overlap settings.
32121
+ */
32122
+ type: 'static';
32123
+ /**
32124
+ * Chunk-size and overlap limits in estimated tokens.
32125
+ */
32126
+ static: {
32127
+ /**
32128
+ * Estimated tokens per chunk.
32129
+ */
32130
+ max_chunk_size_tokens: number;
32131
+ /**
32132
+ * Must not exceed half of max_chunk_size_tokens.
32133
+ */
32134
+ chunk_overlap_tokens: number;
32135
+ };
32136
+ };
32137
+ export type MediaTranscriptEdit = {
32138
+ /**
32139
+ * Original literal text replaced by this accepted edit.
32140
+ */
32141
+ readonly from: string;
32142
+ /**
32143
+ * 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.
32144
+ */
32145
+ readonly to: string;
32146
+ /**
32147
+ * Zero-based index in the assembled, hallucination-filtered ASR segments. Segment timestamps do not change.
32148
+ */
32149
+ readonly segment_id: number;
32150
+ };
32151
+ export type MediaShotFlags = {
32152
+ /**
32153
+ * Slide or screen-recorded picture/text sequence rather than live footage.
32154
+ */
32155
+ readonly slideshow: MediaShotFlag;
32156
+ /**
32157
+ * Visible watermark.
32158
+ */
32159
+ readonly watermark: MediaShotFlag;
32160
+ /**
32161
+ * Fingers or hands framing the scene.
32162
+ */
32163
+ readonly hand_frame: MediaShotFlag;
32164
+ /**
32165
+ * Added text sticker or overlay.
32166
+ */
32167
+ readonly text_sticker: MediaShotFlag;
32168
+ /**
32169
+ * Blur, severe camera shake, bad exposure or another visible quality defect.
32170
+ */
32171
+ readonly low_quality: MediaShotFlag;
32172
+ };
31383
32173
  export type SandboxSandboxIamToken = {
31384
32174
  /**
31385
32175
  * Audience of the workload token, stored exactly as provided.
@@ -31565,6 +32355,51 @@ export type AnthropicCitationsConfig = {
31565
32355
  */
31566
32356
  enabled: boolean;
31567
32357
  };
32358
+ /**
32359
+ * Solid color or a gradient over the styled text box.
32360
+ */
32361
+ export type CutFill = string | {
32362
+ /**
32363
+ * Linear gradient; angle is in degrees and stop positions range from 0 to 1.
32364
+ */
32365
+ linear?: {
32366
+ /**
32367
+ * Gradient angle in degrees; 0 runs left to right.
32368
+ */
32369
+ angle?: number;
32370
+ /**
32371
+ * Gradient color stops; each position is a fraction from 0 to 1.
32372
+ */
32373
+ stops?: Array<{
32374
+ /**
32375
+ * Stop position as a fraction from 0 to 1.
32376
+ */
32377
+ at?: number;
32378
+ /**
32379
+ * Stop color in #RRGGBB or #RRGGBBAA notation.
32380
+ */
32381
+ color?: string;
32382
+ }>;
32383
+ };
32384
+ /**
32385
+ * Radial gradient with stop positions as fractions from 0 to 1.
32386
+ */
32387
+ radial?: {
32388
+ /**
32389
+ * Gradient color stops; each position is a fraction from 0 to 1.
32390
+ */
32391
+ stops?: Array<{
32392
+ /**
32393
+ * Stop position as a fraction from 0 to 1.
32394
+ */
32395
+ at?: number;
32396
+ /**
32397
+ * Stop color in #RRGGBB or #RRGGBBAA notation.
32398
+ */
32399
+ color?: string;
32400
+ }>;
32401
+ };
32402
+ };
31568
32403
  /**
31569
32404
  * Visual placement; coordinates are normalized canvas centers.
31570
32405
  */
@@ -31641,6 +32476,16 @@ export type CutCaptionWord = {
31641
32476
  */
31642
32477
  length: number;
31643
32478
  };
32479
+ export type MediaShotFlag = {
32480
+ /**
32481
+ * True when this visual characteristic is present.
32482
+ */
32483
+ readonly value: boolean;
32484
+ /**
32485
+ * Confidence in this true or false judgment, from 0 to 1.
32486
+ */
32487
+ readonly confidence: number;
32488
+ };
31644
32489
  export type PraxisSdkSseGetBrowserV1SessionsSessionIdStream = BrowserStreamMessage;
31645
32490
  /**
31646
32491
  * One decoded SSE event. The data field contains the decoded JSON payload, or a documented string sentinel. SSE comments are keepalives, not events. Optional id/event fields are absent when the server does not send them.
@@ -31936,6 +32781,28 @@ export type AutomationJsonValueWritable = null | string | number | boolean | Aut
31936
32781
  export type AutomationJsonObjectWritable = {
31937
32782
  [key: string]: AutomationJsonValueWritable;
31938
32783
  };
32784
+ export type KnowledgeNativeSearchPageWritable = {
32785
+ /**
32786
+ * Object discriminator; vector_store.search_results.page identifies a search result page.
32787
+ */
32788
+ object: 'vector_store.search_results.page';
32789
+ /**
32790
+ * The queries used for retrieval, one per input query; rewritten when rewrite_query is true, otherwise the input as sent.
32791
+ */
32792
+ search_query: Array<string>;
32793
+ /**
32794
+ * One result per matched chunk; the same file_id can occur more than once.
32795
+ */
32796
+ data: Array<KnowledgeNativeSearchResultWritable>;
32797
+ /**
32798
+ * True when filtered chunks exceed max_num_results; next_page remains null.
32799
+ */
32800
+ has_more: boolean;
32801
+ /**
32802
+ * Always null; no next search page.
32803
+ */
32804
+ next_page: null;
32805
+ };
31939
32806
  /**
31940
32807
  * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
31941
32808
  */
@@ -31943,7 +32810,7 @@ export type MediaLibraryWritable = {
31943
32810
  /**
31944
32811
  * Resolved model call IDs used for new uploads and reprocessing.
31945
32812
  */
31946
- models: MediaMediaModels;
32813
+ models: MediaMediaModelsWritable;
31947
32814
  /**
31948
32815
  * Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
31949
32816
  */
@@ -32138,7 +33005,7 @@ export type MediaAssetWritable = {
32138
33005
  */
32139
33006
  url: string;
32140
33007
  /**
32141
- * 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.
33008
+ * 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.
32142
33009
  */
32143
33010
  secure_url: string;
32144
33011
  /**
@@ -32221,6 +33088,40 @@ export type MediaAssetWritable = {
32221
33088
  };
32222
33089
  };
32223
33090
  };
33091
+ /**
33092
+ * Source details for the video-generation job that created this asset.
33093
+ */
33094
+ generation?: {
33095
+ /**
33096
+ * Job id that generated this asset.
33097
+ */
33098
+ job_id: MediaJobId;
33099
+ /**
33100
+ * Generation intent used to create the asset; v1 supports video.generate.
33101
+ */
33102
+ intent: string;
33103
+ /**
33104
+ * Text prompt submitted for the generation job.
33105
+ */
33106
+ prompt: string;
33107
+ /**
33108
+ * Router video-generation model that produced the asset.
33109
+ */
33110
+ model: string;
33111
+ };
33112
+ };
33113
+ /**
33114
+ * Understanding results in this page, ordered by creation time ascending.
33115
+ */
33116
+ export type MediaUnderstandingPageWritable = MediaPage & {
33117
+ /**
33118
+ * Understanding results in this page, ordered by creation time ascending.
33119
+ */
33120
+ data: Array<MediaUnderstandingWritable>;
33121
+ /**
33122
+ * Opaque token to pass as cursor to listUnderstandings; null means no further page.
33123
+ */
33124
+ next_cursor: string | null;
32224
33125
  };
32225
33126
  /**
32226
33127
  * Expression-search page with match counts, elapsed time and optional facet counts.
@@ -32315,6 +33216,75 @@ export type AgentManaged193Writable = {
32315
33216
  export type AgentManaged143Writable = {
32316
33217
  [key: string]: string;
32317
33218
  };
33219
+ export type KnowledgeNativeSearchResultWritable = {
33220
+ /**
33221
+ * Resource ID.
33222
+ */
33223
+ file_id: string;
33224
+ /**
33225
+ * Original source filename for the matched file.
33226
+ */
33227
+ filename: string;
33228
+ /**
33229
+ * Relevance ranking score for this chunk, clamped to the range 0 to 1; not a probability.
33230
+ */
33231
+ score: number;
33232
+ /**
33233
+ * Current file attributes used for filtering; null when unset.
33234
+ */
33235
+ attributes: KnowledgeAttributes | null;
33236
+ /**
33237
+ * Matched chunk text and its source coordinates; one chunk per native result.
33238
+ */
33239
+ content: Array<{
33240
+ /**
33241
+ * text identifies an extracted text chunk.
33242
+ */
33243
+ type: 'text';
33244
+ /**
33245
+ * Extracted text of the matched chunk, which may overlap neighboring chunks.
33246
+ */
33247
+ text: string;
33248
+ /**
33249
+ * Resource ID.
33250
+ */
33251
+ chunk_id?: string;
33252
+ /**
33253
+ * One-based source page containing the start of this chunk; null when no page mapping is available.
33254
+ */
33255
+ page?: number | null;
33256
+ /**
33257
+ * Start and end offsets in UTF-16 code units.
33258
+ */
33259
+ span?: [
33260
+ number,
33261
+ number
33262
+ ];
33263
+ }>;
33264
+ /**
33265
+ * Native search explanation, included only when praxis.explain is requested.
33266
+ */
33267
+ praxis?: {
33268
+ explain: KnowledgeSearchExplain;
33269
+ };
33270
+ };
33271
+ /**
33272
+ * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
33273
+ */
33274
+ export type MediaMediaModelsWritable = {
33275
+ /**
33276
+ * Model call ID for visual descriptions; the model must support image input.
33277
+ */
33278
+ vision: string;
33279
+ /**
33280
+ * Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
33281
+ */
33282
+ embedding: string;
33283
+ /**
33284
+ * 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.
33285
+ */
33286
+ transcription: string;
33287
+ };
32318
33288
  /**
32319
33289
  * Cloudinary-compatible resource. processing is present when the asset was uploaded with auto_tagging; otherwise it is omitted. Native Asset responses always include processing.
32320
33290
  */
@@ -32432,7 +33402,7 @@ export type MediaCloudinaryResourceWritable = {
32432
33402
  */
32433
33403
  url: string;
32434
33404
  /**
32435
- * 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.
33405
+ * 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.
32436
33406
  */
32437
33407
  secure_url: string;
32438
33408
  /**
@@ -32455,7 +33425,7 @@ export type MediaChunkCompleteWritable = MediaCloudinaryResourceWritable & {
32455
33425
  done: true;
32456
33426
  };
32457
33427
  /**
32458
- * Per-task processing progress and its aggregate state for the asset.
33428
+ * 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.
32459
33429
  */
32460
33430
  export type MediaProcessingWritable = {
32461
33431
  state: MediaProcessingState;
@@ -32470,6 +33440,76 @@ export type MediaProcessingWritable = {
32470
33440
  */
32471
33441
  updated_at: MediaIsoTimestamp;
32472
33442
  };
33443
+ /**
33444
+ * An immutable understanding result for an asset version, including superseded history when requested.
33445
+ */
33446
+ export type MediaUnderstandingWritable = {
33447
+ /**
33448
+ * Generated identifier of this understanding result.
33449
+ */
33450
+ id: MediaUnderstandingId;
33451
+ /**
33452
+ * Identifier of the asset from which this result was produced.
33453
+ */
33454
+ asset_id: MediaAssetId;
33455
+ /**
33456
+ * Asset version processed to produce this result; compare with the asset’s current version.
33457
+ */
33458
+ asset_version: number;
33459
+ /**
33460
+ * 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.
33461
+ */
33462
+ kind: MediaUnderstandingKind;
33463
+ /**
33464
+ * Producer model identifier; a failure may use the configured model when no model response is available.
33465
+ */
33466
+ producer: string;
33467
+ /**
33468
+ * Version of the producer that generated this understanding result.
33469
+ */
33470
+ producer_version: string;
33471
+ /**
33472
+ * Source-media time range for a frame or transcript segment; null for results without a segment.
33473
+ */
33474
+ segment: MediaSegment | null;
33475
+ /**
33476
+ * Result status: ready contains completed output; failed records an error.
33477
+ */
33478
+ status: 'ready' | 'failed';
33479
+ /**
33480
+ * Text output, such as a caption, recognized text or transcript; null for structured-only or failed results.
33481
+ */
33482
+ content: string | null;
33483
+ /**
33484
+ * 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.
33485
+ */
33486
+ data: unknown | null;
33487
+ /**
33488
+ * Confidence value recorded by the producer; null when no confidence value is recorded.
33489
+ */
33490
+ confidence: number | null;
33491
+ /**
33492
+ * Failure code and message, or null for a successful result.
33493
+ */
33494
+ error: {
33495
+ /**
33496
+ * Failure code identifying why understanding could not complete.
33497
+ */
33498
+ code: string;
33499
+ /**
33500
+ * Human-readable explanation of the understanding failure.
33501
+ */
33502
+ message: string;
33503
+ } | null;
33504
+ /**
33505
+ * Whether a newer result or asset version has replaced this result. Excluded from listing unless include_superseded is true.
33506
+ */
33507
+ superseded: boolean;
33508
+ /**
33509
+ * Time this immutable result was recorded, in UTC.
33510
+ */
33511
+ created_at: MediaIsoTimestamp;
33512
+ };
32473
33513
  /**
32474
33514
  * A native asset returned by expression search; tags and context are included only when requested in with_field.
32475
33515
  */
@@ -32587,7 +33627,7 @@ export type MediaSearchAssetWritable = {
32587
33627
  */
32588
33628
  url: string;
32589
33629
  /**
32590
- * 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.
33630
+ * 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.
32591
33631
  */
32592
33632
  secure_url: string;
32593
33633
  /**
@@ -32670,6 +33710,27 @@ export type MediaSearchAssetWritable = {
32670
33710
  };
32671
33711
  };
32672
33712
  };
33713
+ /**
33714
+ * Source details for the video-generation job that created this asset.
33715
+ */
33716
+ generation?: {
33717
+ /**
33718
+ * Job id that generated this asset.
33719
+ */
33720
+ job_id: MediaJobId;
33721
+ /**
33722
+ * Generation intent used to create the asset; v1 supports video.generate.
33723
+ */
33724
+ intent: string;
33725
+ /**
33726
+ * Text prompt submitted for the generation job.
33727
+ */
33728
+ prompt: string;
33729
+ /**
33730
+ * Router video-generation model that produced the asset.
33731
+ */
33732
+ model: string;
33733
+ };
32673
33734
  };
32674
33735
  /**
32675
33736
  * A matching asset with its ranking score and supporting matches.
@@ -32695,6 +33756,9 @@ export type MediaSemanticHitWritable = {
32695
33756
  export type AgentManaged34Writable = {
32696
33757
  [key: string]: unknown;
32697
33758
  };
33759
+ export type MediaTranscriptCorrectionWritable = {
33760
+ [key: string]: unknown;
33761
+ };
32698
33762
  /**
32699
33763
  * Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
32700
33764
  */
@@ -32912,7 +33976,7 @@ export type ApplyAgentVersionResponses = {
32912
33976
  */
32913
33977
  note: string | null;
32914
33978
  /**
32915
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
33979
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
32916
33980
  */
32917
33981
  bindings: Array<{
32918
33982
  /**
@@ -32943,7 +34007,7 @@ export type ApplyAgentVersionResponses = {
32943
34007
  /**
32944
34008
  * Service type. Opens the whole service to codemode; there is no per-resource id.
32945
34009
  */
32946
- type: 'search' | 'browser';
34010
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
32947
34011
  /**
32948
34012
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
32949
34013
  */
@@ -34129,7 +35193,7 @@ export type UnarchiveAgentResponses = {
34129
35193
  */
34130
35194
  note: string | null;
34131
35195
  /**
34132
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
35196
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
34133
35197
  */
34134
35198
  bindings: Array<{
34135
35199
  /**
@@ -34160,7 +35224,7 @@ export type UnarchiveAgentResponses = {
34160
35224
  /**
34161
35225
  * Service type. Opens the whole service to codemode; there is no per-resource id.
34162
35226
  */
34163
- type: 'search' | 'browser';
35227
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
34164
35228
  /**
34165
35229
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
34166
35230
  */
@@ -43297,7 +44361,7 @@ export type FileCreateSignedUploadResponse = FileCreateSignedUploadResponses[key
43297
44361
  export type FileCreateContentUrlData = {
43298
44362
  body?: {
43299
44363
  /**
43300
- * Download link lifetime in seconds, from 1 through 604800; omitted means 3600. This does not change the file's own expiry.
44364
+ * Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.
43301
44365
  */
43302
44366
  ttl_seconds?: number;
43303
44367
  };
@@ -44843,31 +45907,29 @@ export type CreateSystemoneResponse = CreateSystemoneResponses[keyof CreateSyste
44843
45907
  export type CreateAudioTranscriptionData = {
44844
45908
  body: {
44845
45909
  /**
44846
- * Transcription model id, for example `whisper-large-v3-turbo` or `qwen3-asr-flash`; list candidates with listModels?type=transcription. Router support (supported): Verified to take effect.
45910
+ * Model catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix.
44847
45911
  */
44848
45912
  model: string;
44849
45913
  /**
44850
- * Audio file to transcribe, uploaded as multipart/form-data. Router support (supported): Verified to take effect.
45914
+ * Audio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model.
44851
45915
  */
44852
45916
  file: Blob | File;
44853
45917
  /**
44854
- * Language of the audio as an ISO-639-1 code such as `en` or `zh`. Router support (partial): Both models accept ISO language codes. qwen3-asr-flash may translate output to that language; whisper-large-v3-turbo treats it as an input hint. Non-ISO names may return 502.
45918
+ * Source language code when known; omit to let the model detect the language.
44855
45919
  */
44856
45920
  language?: string;
44857
45921
  /**
44858
- * Text that primes the model with vocabulary or context. Router support (partial): Vocabulary hints work on whisper-large-v3-turbo only; qwen3-asr-flash returns 400.
45922
+ * Optional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model.
44859
45923
  */
44860
45924
  prompt?: string;
44861
45925
  /**
44862
- * Format of the response body. `json` and `text` are the commonly supported formats. Router support (partial): json/text work on both; verbose_json works only on whisper-large-v3-turbo. srt/vtt return 400.
45926
+ * Output format: json returns text in JSON; text returns plain text; verbose_json includes requested timestamps; diarized_json includes speaker-labelled segments when supported. Defaults to json.
44863
45927
  */
44864
- response_format?: 'json' | 'text' | 'verbose_json';
45928
+ response_format?: 'json' | 'text' | 'verbose_json' | 'diarized_json';
44865
45929
  /**
44866
- * Timestamp levels to include with `verbose_json`; only `segment` exists in this schema. Router support (partial): Only whisper-large-v3-turbo supports segment with verbose_json. word returns 400; qwen3-asr-flash does not support timestamps.
45930
+ * Timestamp levels to request as repeated multipart fields: word returns per-word times; segment returns segment times. Omit for the model default. Use verbose_json, or diarized_json on supporting models.
44867
45931
  */
44868
- 'timestamp_granularities[]'?: [
44869
- 'segment'
44870
- ];
45932
+ 'timestamp_granularities[]'?: Array<'word' | 'segment'>;
44871
45933
  /**
44872
45934
  * Both whisper-large-v3-turbo and qwen3-asr-flash return 400.
44873
45935
  */
@@ -44879,11 +45941,11 @@ export type CreateAudioTranscriptionData = {
44879
45941
  };
44880
45942
  export type CreateAudioTranscriptionErrors = {
44881
45943
  /**
44882
- * Unsupported or unrepresentable parameter.
45944
+ * A field
44883
45945
  */
44884
45946
  400: unknown;
44885
45947
  /**
44886
- * No eligible model route.
45948
+ * No provider route supports this request; select an available model and its declared transcription features.
44887
45949
  */
44888
45950
  503: unknown;
44889
45951
  };
@@ -44893,58 +45955,79 @@ export type CreateAudioTranscriptionResponses = {
44893
45955
  */
44894
45956
  200: {
44895
45957
  /**
44896
- * The transcribed text.
45958
+ * Recognized speech text in the original language.
44897
45959
  */
44898
45960
  text: string;
44899
45961
  /**
44900
- * Task performed; always `transcribe`.
45962
+ * transcribe identifies speech-to-text transcription.
44901
45963
  */
44902
45964
  task?: 'transcribe';
44903
45965
  /**
44904
- * Language of the audio as detected or as requested.
45966
+ * Detected or requested source language code.
44905
45967
  */
44906
45968
  language?: string;
44907
45969
  /**
44908
- * Duration of the audio in seconds.
45970
+ * Audio duration in seconds when provided by the model.
44909
45971
  */
44910
45972
  duration?: number;
44911
45973
  /**
44912
- * Segments with timestamps, returned with `verbose_json` on models that support it.
45974
+ * Time-aligned speech segments when returned by the selected model and response format.
44913
45975
  */
44914
45976
  segments?: Array<{
44915
45977
  /**
44916
- * Zero-based index of the segment.
45978
+ * Segment identifier within this transcription response.
44917
45979
  */
44918
45980
  id: number;
44919
45981
  /**
44920
- * Start time of the segment in seconds.
45982
+ * Inclusive start time in seconds from the beginning of the audio.
44921
45983
  */
44922
45984
  start: number;
44923
45985
  /**
44924
- * End time of the segment in seconds.
45986
+ * Exclusive end time in seconds from the beginning of the audio.
44925
45987
  */
44926
45988
  end: number;
44927
45989
  /**
44928
- * The transcribed text.
45990
+ * Recognized speech text in the original language.
44929
45991
  */
44930
45992
  text: string;
44931
45993
  /**
44932
- * Sampling temperature used for the segment.
45994
+ * Speaker label in diarized_json when supported; labels distinguish voices and are not verified identities.
45995
+ */
45996
+ speaker?: string;
45997
+ /**
45998
+ * Decoding temperature reported by the transcription model.
44933
45999
  */
44934
46000
  temperature?: number;
44935
46001
  /**
44936
- * Average log probability of the tokens of the segment; low values mean low confidence.
46002
+ * Average segment token log probability when provided.
44937
46003
  */
44938
46004
  avg_logprob?: number;
44939
46005
  /**
44940
- * Gzip compression ratio of the segment text; high values indicate repetitive output.
46006
+ * Text compression ratio reported for this segment.
44941
46007
  */
44942
46008
  compression_ratio?: number;
44943
46009
  /**
44944
- * Probability that the segment contains no speech.
46010
+ * Probability of no speech reported for this segment.
44945
46011
  */
44946
46012
  no_speech_prob?: number;
44947
46013
  }>;
46014
+ /**
46015
+ * Per-word source-audio timestamps when word granularity is requested and supported.
46016
+ */
46017
+ words?: Array<{
46018
+ /**
46019
+ * Recognized word text in its original language.
46020
+ */
46021
+ word: string;
46022
+ /**
46023
+ * Inclusive word start in seconds from the beginning of the audio.
46024
+ */
46025
+ start: number;
46026
+ /**
46027
+ * Exclusive word end in seconds from the beginning of the audio.
46028
+ */
46029
+ end: number;
46030
+ }>;
44948
46031
  };
44949
46032
  };
44950
46033
  export type CreateAudioTranscriptionResponse = CreateAudioTranscriptionResponses[keyof CreateAudioTranscriptionResponses];
@@ -50684,7 +51767,7 @@ export type AgentsListResponses = {
50684
51767
  */
50685
51768
  note: string | null;
50686
51769
  /**
50687
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
51770
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
50688
51771
  */
50689
51772
  bindings: Array<{
50690
51773
  /**
@@ -50715,7 +51798,7 @@ export type AgentsListResponses = {
50715
51798
  /**
50716
51799
  * Service type. Opens the whole service to codemode; there is no per-resource id.
50717
51800
  */
50718
- type: 'search' | 'browser';
51801
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
50719
51802
  /**
50720
51803
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
50721
51804
  */
@@ -51223,7 +52306,7 @@ export type AgentsCreateData = {
51223
52306
  */
51224
52307
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
51225
52308
  /**
51226
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
52309
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
51227
52310
  */
51228
52311
  bindings?: Array<{
51229
52312
  /**
@@ -51254,7 +52337,7 @@ export type AgentsCreateData = {
51254
52337
  /**
51255
52338
  * Service type. Opens the whole service to codemode; there is no per-resource id.
51256
52339
  */
51257
- type: 'search' | 'browser';
52340
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
51258
52341
  /**
51259
52342
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
51260
52343
  */
@@ -51824,7 +52907,7 @@ export type AgentsCreateResponses = {
51824
52907
  */
51825
52908
  note: string | null;
51826
52909
  /**
51827
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
52910
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
51828
52911
  */
51829
52912
  bindings: Array<{
51830
52913
  /**
@@ -51855,7 +52938,7 @@ export type AgentsCreateResponses = {
51855
52938
  /**
51856
52939
  * Service type. Opens the whole service to codemode; there is no per-resource id.
51857
52940
  */
51858
- type: 'search' | 'browser';
52941
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
51859
52942
  /**
51860
52943
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
51861
52944
  */
@@ -52452,7 +53535,7 @@ export type AgentsRetrieveResponses = {
52452
53535
  */
52453
53536
  note: string | null;
52454
53537
  /**
52455
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
53538
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
52456
53539
  */
52457
53540
  bindings: Array<{
52458
53541
  /**
@@ -52483,7 +53566,7 @@ export type AgentsRetrieveResponses = {
52483
53566
  /**
52484
53567
  * Service type. Opens the whole service to codemode; there is no per-resource id.
52485
53568
  */
52486
- type: 'search' | 'browser';
53569
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
52487
53570
  /**
52488
53571
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
52489
53572
  */
@@ -53031,7 +54114,7 @@ export type AgentsUpdateData = {
53031
54114
  /**
53032
54115
  * Service type. Opens the whole service to codemode; there is no per-resource id.
53033
54116
  */
53034
- type: 'search' | 'browser';
54117
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
53035
54118
  /**
53036
54119
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
53037
54120
  */
@@ -53614,7 +54697,7 @@ export type AgentsUpdateResponses = {
53614
54697
  */
53615
54698
  note: string | null;
53616
54699
  /**
53617
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
54700
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
53618
54701
  */
53619
54702
  bindings: Array<{
53620
54703
  /**
@@ -53645,7 +54728,7 @@ export type AgentsUpdateResponses = {
53645
54728
  /**
53646
54729
  * Service type. Opens the whole service to codemode; there is no per-resource id.
53647
54730
  */
53648
- type: 'search' | 'browser';
54731
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
53649
54732
  /**
53650
54733
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
53651
54734
  */
@@ -54228,7 +55311,7 @@ export type AgentsArchiveResponses = {
54228
55311
  */
54229
55312
  note: string | null;
54230
55313
  /**
54231
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
55314
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
54232
55315
  */
54233
55316
  bindings: Array<{
54234
55317
  /**
@@ -54259,7 +55342,7 @@ export type AgentsArchiveResponses = {
54259
55342
  /**
54260
55343
  * Service type. Opens the whole service to codemode; there is no per-resource id.
54261
55344
  */
54262
- type: 'search' | 'browser';
55345
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
54263
55346
  /**
54264
55347
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
54265
55348
  */
@@ -54860,7 +55943,7 @@ export type AgentsVersionsListResponses = {
54860
55943
  */
54861
55944
  note: string | null;
54862
55945
  /**
54863
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
55946
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
54864
55947
  */
54865
55948
  bindings: Array<{
54866
55949
  /**
@@ -54891,7 +55974,7 @@ export type AgentsVersionsListResponses = {
54891
55974
  /**
54892
55975
  * Service type. Opens the whole service to codemode; there is no per-resource id.
54893
55976
  */
54894
- type: 'search' | 'browser';
55977
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
54895
55978
  /**
54896
55979
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
54897
55980
  */
@@ -68652,7 +69735,7 @@ export type CutExecuteData = {
68652
69735
  };
68653
69736
  export type CutExecuteErrors = {
68654
69737
  /**
68655
- * SCRIPT_ERROR, SCRIPT_LIMIT or OPS_REJECTED means the script failed and its writes rolled back; correct the source using error.details.edit_id and edits when provided. EDIT_EXPIRED means the saved source is older than ten minutes; resubmit corrected script source.
69738
+ * SCRIPT_ERROR, SCRIPT_LIMIT, OPS_REJECTED or INVALID_CAPTION_FILE means the script failed and its writes rolled back; correct the source using error.details.edit_id and edits when provided. EDIT_EXPIRED means the saved source is older than ten minutes; resubmit corrected script source.
68656
69739
  */
68657
69740
  400: CutCutError;
68658
69741
  /**
@@ -68817,7 +69900,7 @@ export type CutListFramesData = {
68817
69900
  */
68818
69901
  at: string;
68819
69902
  /**
68820
- * Positive image size multiplier; 0.5 renders at half the project dimensions.
69903
+ * Image size multiplier, default 0.25, greater than zero and at most 0.5. Larger values return INVALID_PARAMS; pixel-area limits may reduce actual dimensions, reported as width and height.
68821
69904
  */
68822
69905
  scale?: number;
68823
69906
  /**
@@ -69159,7 +70242,7 @@ export type CutListExportsResponses = {
69159
70242
  export type CutListExportsResponse = CutListExportsResponses[keyof CutListExportsResponses];
69160
70243
  export type CutCreateExportData = {
69161
70244
  /**
69162
- * Start an export from a project revision into a bound library.
70245
+ * Start an export from a project revision into a bound library. Output assets carry the cut-export tag and project_id, export_id and duration (seconds) context. Unavailable source metadata rejects creation with MEDIA_UNAVAILABLE and source clip and asset identities before rendering starts. Sources follow current asset versions; the current version is frozen at creation.
69163
70246
  */
69164
70247
  body: CutExportInput;
69165
70248
  path: {
@@ -70971,7 +72054,7 @@ export type KnowledgeListFilesResponses = {
70971
72054
  };
70972
72055
  export type KnowledgeListFilesResponse = KnowledgeListFilesResponses[keyof KnowledgeListFilesResponses];
70973
72056
  export type KnowledgeAttachFileData = {
70974
- body: KnowledgeAttachFile;
72057
+ body: KnowledgeNativeAttachFile;
70975
72058
  path: {
70976
72059
  /**
70977
72060
  * Resource ID.
@@ -71272,7 +72355,7 @@ export type KnowledgeRetrieveFileContentResponses = {
71272
72355
  };
71273
72356
  export type KnowledgeRetrieveFileContentResponse = KnowledgeRetrieveFileContentResponses[keyof KnowledgeRetrieveFileContentResponses];
71274
72357
  export type KnowledgeCreateFileBatchData = {
71275
- body: KnowledgeCreateBatch;
72358
+ body: KnowledgeNativeCreateBatch;
71276
72359
  path: {
71277
72360
  /**
71278
72361
  * Resource ID.
@@ -71960,6 +73043,10 @@ export type MediaListLibrariesErrors = {
71960
73043
  * Request failed; see the error code reference.
71961
73044
  */
71962
73045
  415: MediaMediaError;
73046
+ /**
73047
+ * Request failed; see the error code reference.
73048
+ */
73049
+ 422: MediaMediaError;
71963
73050
  /**
71964
73051
  * Request failed; see the error code reference.
71965
73052
  */
@@ -72051,6 +73138,10 @@ export type MediaCreateLibraryErrors = {
72051
73138
  * Request failed; see the error code reference.
72052
73139
  */
72053
73140
  415: MediaMediaError;
73141
+ /**
73142
+ * Request failed; see the error code reference.
73143
+ */
73144
+ 422: MediaMediaError;
72054
73145
  /**
72055
73146
  * Request failed; see the error code reference.
72056
73147
  */
@@ -72076,6 +73167,84 @@ export type MediaCreateLibraryResponses = {
72076
73167
  200: MediaLibrary;
72077
73168
  };
72078
73169
  export type MediaCreateLibraryResponse = MediaCreateLibraryResponses[keyof MediaCreateLibraryResponses];
73170
+ export type MediaCreateFrameUrlsData = {
73171
+ body: {
73172
+ /**
73173
+ * 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.
73174
+ */
73175
+ at_micros: Array<number>;
73176
+ /**
73177
+ * 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.
73178
+ */
73179
+ width?: 160 | 320 | 640;
73180
+ };
73181
+ path: {
73182
+ /**
73183
+ * Library identifier returned by library creation or listing; must be accessible to the current credential.
73184
+ */
73185
+ library_id: string;
73186
+ /**
73187
+ * Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps.
73188
+ */
73189
+ asset_id: string;
73190
+ };
73191
+ query?: never;
73192
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/frames';
73193
+ };
73194
+ export type MediaCreateFrameUrlsErrors = {
73195
+ /**
73196
+ * INVALID_PARAMS: supply 1–20 nonnegative integer timestamps below video duration and width 160, 320 or 640; images and audio cannot produce video frames.
73197
+ */
73198
+ 400: MediaMediaError;
73199
+ /**
73200
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73201
+ */
73202
+ 403: MediaMediaError;
73203
+ /**
73204
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
73205
+ */
73206
+ 404: MediaMediaError;
73207
+ /**
73208
+ * Request failed; see the error code reference.
73209
+ */
73210
+ 409: MediaMediaError;
73211
+ /**
73212
+ * The file exceeds an input limit; provide a smaller source file.
73213
+ */
73214
+ 413: MediaMediaError;
73215
+ /**
73216
+ * This media format is unsupported; provide a supported format.
73217
+ */
73218
+ 415: MediaMediaError;
73219
+ /**
73220
+ * Request failed; see the error code reference.
73221
+ */
73222
+ 422: MediaMediaError;
73223
+ /**
73224
+ * A rate limit was reached; wait before retrying.
73225
+ */
73226
+ 429: MediaMediaError;
73227
+ /**
73228
+ * The requested operation is unsupported; choose a supported method.
73229
+ */
73230
+ 501: MediaMediaError;
73231
+ /**
73232
+ * Request failed; see the error code reference.
73233
+ */
73234
+ 502: MediaMediaError;
73235
+ /**
73236
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
73237
+ */
73238
+ 503: MediaMediaError;
73239
+ };
73240
+ export type MediaCreateFrameUrlsError = MediaCreateFrameUrlsErrors[keyof MediaCreateFrameUrlsErrors];
73241
+ export type MediaCreateFrameUrlsResponses = {
73242
+ /**
73243
+ * Successful response.
73244
+ */
73245
+ 200: MediaFrameUrls;
73246
+ };
73247
+ export type MediaCreateFrameUrlsResponse = MediaCreateFrameUrlsResponses[keyof MediaCreateFrameUrlsResponses];
72079
73248
  export type MediaDeleteLibraryData = {
72080
73249
  body?: never;
72081
73250
  path: {
@@ -72112,6 +73281,10 @@ export type MediaDeleteLibraryErrors = {
72112
73281
  * Request failed; see the error code reference.
72113
73282
  */
72114
73283
  415: MediaMediaError;
73284
+ /**
73285
+ * Request failed; see the error code reference.
73286
+ */
73287
+ 422: MediaMediaError;
72115
73288
  /**
72116
73289
  * Request failed; see the error code reference.
72117
73290
  */
@@ -72173,6 +73346,10 @@ export type MediaGetLibraryErrors = {
72173
73346
  * Request failed; see the error code reference.
72174
73347
  */
72175
73348
  415: MediaMediaError;
73349
+ /**
73350
+ * Request failed; see the error code reference.
73351
+ */
73352
+ 422: MediaMediaError;
72176
73353
  /**
72177
73354
  * Request failed; see the error code reference.
72178
73355
  */
@@ -72203,6 +73380,10 @@ export type MediaUpdateLibraryData = {
72203
73380
  * Partial update of an active media library.
72204
73381
  */
72205
73382
  body: {
73383
+ /**
73384
+ * 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.
73385
+ */
73386
+ hotwords?: Array<string>;
72206
73387
  /**
72207
73388
  * Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets.
72208
73389
  */
@@ -72269,6 +73450,10 @@ export type MediaUpdateLibraryErrors = {
72269
73450
  * Request failed; see the error code reference.
72270
73451
  */
72271
73452
  415: MediaMediaError;
73453
+ /**
73454
+ * Request failed; see the error code reference.
73455
+ */
73456
+ 422: MediaMediaError;
72272
73457
  /**
72273
73458
  * Request failed; see the error code reference.
72274
73459
  */
@@ -72330,6 +73515,10 @@ export type MediaRestoreLibraryErrors = {
72330
73515
  * Request failed; see the error code reference.
72331
73516
  */
72332
73517
  415: MediaMediaError;
73518
+ /**
73519
+ * Request failed; see the error code reference.
73520
+ */
73521
+ 422: MediaMediaError;
72333
73522
  /**
72334
73523
  * Request failed; see the error code reference.
72335
73524
  */
@@ -72391,6 +73580,10 @@ export type MediaPurgeLibraryErrors = {
72391
73580
  * Request failed; see the error code reference.
72392
73581
  */
72393
73582
  415: MediaMediaError;
73583
+ /**
73584
+ * Request failed; see the error code reference.
73585
+ */
73586
+ 422: MediaMediaError;
72394
73587
  /**
72395
73588
  * Request failed; see the error code reference.
72396
73589
  */
@@ -72469,6 +73662,10 @@ export type MediaListAssetsErrors = {
72469
73662
  * Request failed; see the error code reference.
72470
73663
  */
72471
73664
  415: MediaMediaError;
73665
+ /**
73666
+ * Request failed; see the error code reference.
73667
+ */
73668
+ 422: MediaMediaError;
72472
73669
  /**
72473
73670
  * Request failed; see the error code reference.
72474
73671
  */
@@ -72516,7 +73713,7 @@ export type MediaUploadAssetData = {
72516
73713
  */
72517
73714
  display_name?: string;
72518
73715
  /**
72519
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73716
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
72520
73717
  */
72521
73718
  asset_folder?: string;
72522
73719
  /**
@@ -72558,7 +73755,7 @@ export type MediaUploadAssetData = {
72558
73755
  */
72559
73756
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
72560
73757
  /**
72561
- * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. Defaults to upload.
73758
+ * 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.
72562
73759
  */
72563
73760
  type?: MediaDeliveryType;
72564
73761
  };
@@ -72606,6 +73803,10 @@ export type MediaUploadAssetErrors = {
72606
73803
  * Request failed; see the error code reference.
72607
73804
  */
72608
73805
  415: MediaMediaError;
73806
+ /**
73807
+ * Request failed; see the error code reference.
73808
+ */
73809
+ 422: MediaMediaError;
72609
73810
  /**
72610
73811
  * Request failed; see the error code reference.
72611
73812
  */
@@ -72637,7 +73838,7 @@ export type MediaImportAssetData = {
72637
73838
  */
72638
73839
  body: {
72639
73840
  /**
72640
- * 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.
73841
+ * 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.
72641
73842
  */
72642
73843
  file_id: string;
72643
73844
  /**
@@ -72653,7 +73854,7 @@ export type MediaImportAssetData = {
72653
73854
  */
72654
73855
  display_name?: string;
72655
73856
  /**
72656
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73857
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
72657
73858
  */
72658
73859
  asset_folder?: string;
72659
73860
  /**
@@ -72695,7 +73896,7 @@ export type MediaImportAssetData = {
72695
73896
  */
72696
73897
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
72697
73898
  /**
72698
- * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. Defaults to upload.
73899
+ * 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.
72699
73900
  */
72700
73901
  type?: MediaDeliveryType;
72701
73902
  };
@@ -72733,6 +73934,10 @@ export type MediaImportAssetErrors = {
72733
73934
  * Request failed; see the error code reference.
72734
73935
  */
72735
73936
  415: MediaMediaError;
73937
+ /**
73938
+ * Request failed; see the error code reference.
73939
+ */
73940
+ 422: MediaMediaError;
72736
73941
  /**
72737
73942
  * Request failed; see the error code reference.
72738
73943
  */
@@ -72798,6 +74003,10 @@ export type MediaDeleteAssetErrors = {
72798
74003
  * Request failed; see the error code reference.
72799
74004
  */
72800
74005
  415: MediaMediaError;
74006
+ /**
74007
+ * Request failed; see the error code reference.
74008
+ */
74009
+ 422: MediaMediaError;
72801
74010
  /**
72802
74011
  * Request failed; see the error code reference.
72803
74012
  */
@@ -72863,6 +74072,10 @@ export type MediaGetAssetErrors = {
72863
74072
  * Request failed; see the error code reference.
72864
74073
  */
72865
74074
  415: MediaMediaError;
74075
+ /**
74076
+ * Request failed; see the error code reference.
74077
+ */
74078
+ 422: MediaMediaError;
72866
74079
  /**
72867
74080
  * Request failed; see the error code reference.
72868
74081
  */
@@ -72898,7 +74111,7 @@ export type MediaUpdateAssetData = {
72898
74111
  */
72899
74112
  display_name?: string;
72900
74113
  /**
72901
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
74114
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
72902
74115
  */
72903
74116
  asset_folder?: string;
72904
74117
  /**
@@ -72950,6 +74163,10 @@ export type MediaUpdateAssetErrors = {
72950
74163
  * Request failed; see the error code reference.
72951
74164
  */
72952
74165
  415: MediaMediaError;
74166
+ /**
74167
+ * Request failed; see the error code reference.
74168
+ */
74169
+ 422: MediaMediaError;
72953
74170
  /**
72954
74171
  * Request failed; see the error code reference.
72955
74172
  */
@@ -72981,7 +74198,7 @@ export type MediaReprocessAssetData = {
72981
74198
  */
72982
74199
  body: {
72983
74200
  /**
72984
- * Processing tasks to rerun. Omit to retry failed tasks only; explicit kinds rerun applicable ready, failed or unsupported tasks. Pending and running tasks are unchanged; an empty array does nothing.
74201
+ * Processing tasks to rerun. Omit to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable ready or failed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Pending and running tasks are unchanged; an empty array does nothing.
72985
74202
  */
72986
74203
  kinds?: Array<MediaProcessingKind>;
72987
74204
  };
@@ -73023,6 +74240,10 @@ export type MediaReprocessAssetErrors = {
73023
74240
  * Request failed; see the error code reference.
73024
74241
  */
73025
74242
  415: MediaMediaError;
74243
+ /**
74244
+ * Request failed; see the error code reference.
74245
+ */
74246
+ 422: MediaMediaError;
73026
74247
  /**
73027
74248
  * Request failed; see the error code reference.
73028
74249
  */
@@ -73066,9 +74287,9 @@ export type MediaListUnderstandingsData = {
73066
74287
  */
73067
74288
  include_superseded?: boolean;
73068
74289
  /**
73069
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment.
74290
+ * 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.
73070
74291
  */
73071
- kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
74292
+ kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
73072
74293
  /**
73073
74294
  * Cursor from the previous next_cursor.
73074
74295
  */
@@ -73105,6 +74326,10 @@ export type MediaListUnderstandingsErrors = {
73105
74326
  * Request failed; see the error code reference.
73106
74327
  */
73107
74328
  415: MediaMediaError;
74329
+ /**
74330
+ * Request failed; see the error code reference.
74331
+ */
74332
+ 422: MediaMediaError;
73108
74333
  /**
73109
74334
  * Request failed; see the error code reference.
73110
74335
  */
@@ -73136,7 +74361,7 @@ export type MediaExpressionSearchData = {
73136
74361
  */
73137
74362
  body: {
73138
74363
  /**
73139
- * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context.
74364
+ * 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.
73140
74365
  */
73141
74366
  expression?: string;
73142
74367
  /**
@@ -73196,6 +74421,10 @@ export type MediaExpressionSearchErrors = {
73196
74421
  * Request failed; see the error code reference.
73197
74422
  */
73198
74423
  415: MediaMediaError;
74424
+ /**
74425
+ * Request failed; see the error code reference.
74426
+ */
74427
+ 422: MediaMediaError;
73199
74428
  /**
73200
74429
  * Request failed; see the error code reference.
73201
74430
  */
@@ -73283,6 +74512,10 @@ export type MediaVisualSearchErrors = {
73283
74512
  * Request failed; see the error code reference.
73284
74513
  */
73285
74514
  415: MediaMediaError;
74515
+ /**
74516
+ * Request failed; see the error code reference.
74517
+ */
74518
+ 422: MediaMediaError;
73286
74519
  /**
73287
74520
  * Request failed; see the error code reference.
73288
74521
  */
@@ -73364,6 +74597,10 @@ export type MediaSemanticSearchErrors = {
73364
74597
  * Request failed; see the error code reference.
73365
74598
  */
73366
74599
  415: MediaMediaError;
74600
+ /**
74601
+ * Request failed; see the error code reference.
74602
+ */
74603
+ 422: MediaMediaError;
73367
74604
  /**
73368
74605
  * Request failed; see the error code reference.
73369
74606
  */
@@ -73445,6 +74682,10 @@ export type MediaSearchErrors = {
73445
74682
  * Request failed; see the error code reference.
73446
74683
  */
73447
74684
  415: MediaMediaError;
74685
+ /**
74686
+ * Request failed; see the error code reference.
74687
+ */
74688
+ 422: MediaMediaError;
73448
74689
  /**
73449
74690
  * Request failed; see the error code reference.
73450
74691
  */
@@ -73511,6 +74752,461 @@ export type MediaListFoldersErrors = {
73511
74752
  * Request failed; see the error code reference.
73512
74753
  */
73513
74754
  415: MediaMediaError;
74755
+ /**
74756
+ * Request failed; see the error code reference.
74757
+ */
74758
+ 422: MediaMediaError;
74759
+ /**
74760
+ * Request failed; see the error code reference.
74761
+ */
74762
+ 429: MediaMediaError;
74763
+ /**
74764
+ * Request failed; see the error code reference.
74765
+ */
74766
+ 501: MediaMediaError;
74767
+ /**
74768
+ * Request failed; see the error code reference.
74769
+ */
74770
+ 502: MediaMediaError;
74771
+ /**
74772
+ * Request failed; see the error code reference.
74773
+ */
74774
+ 503: MediaMediaError;
74775
+ };
74776
+ export type MediaListFoldersError = MediaListFoldersErrors[keyof MediaListFoldersErrors];
74777
+ export type MediaListFoldersResponses = {
74778
+ /**
74779
+ * Successful response.
74780
+ */
74781
+ 200: MediaFolders;
74782
+ };
74783
+ export type MediaListFoldersResponse = MediaListFoldersResponses[keyof MediaListFoldersResponses];
74784
+ export type MediaCreateBatchData = {
74785
+ /**
74786
+ * Batch action and a selection frozen when the job is created.
74787
+ */
74788
+ body: MediaBatchAction & {
74789
+ /**
74790
+ * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
74791
+ */
74792
+ selector: MediaBatchSelector;
74793
+ /**
74794
+ * Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
74795
+ */
74796
+ reason?: string;
74797
+ };
74798
+ path: {
74799
+ /**
74800
+ * Library ID returned by creation.
74801
+ */
74802
+ library_id: string;
74803
+ };
74804
+ query?: never;
74805
+ url: '/media/v1/libraries/{library_id}/batches';
74806
+ };
74807
+ export type MediaCreateBatchErrors = {
74808
+ /**
74809
+ * Request failed; see the error code reference.
74810
+ */
74811
+ 400: MediaMediaError;
74812
+ /**
74813
+ * Request failed; see the error code reference.
74814
+ */
74815
+ 403: MediaMediaError;
74816
+ /**
74817
+ * Request failed; see the error code reference.
74818
+ */
74819
+ 404: MediaMediaError;
74820
+ /**
74821
+ * Request failed; see the error code reference.
74822
+ */
74823
+ 409: MediaMediaError;
74824
+ /**
74825
+ * Request failed; see the error code reference.
74826
+ */
74827
+ 413: MediaMediaError;
74828
+ /**
74829
+ * Request failed; see the error code reference.
74830
+ */
74831
+ 415: MediaMediaError;
74832
+ /**
74833
+ * Request failed; see the error code reference.
74834
+ */
74835
+ 422: MediaMediaError;
74836
+ /**
74837
+ * Request failed; see the error code reference.
74838
+ */
74839
+ 429: MediaMediaError;
74840
+ /**
74841
+ * Request failed; see the error code reference.
74842
+ */
74843
+ 501: MediaMediaError;
74844
+ /**
74845
+ * Request failed; see the error code reference.
74846
+ */
74847
+ 502: MediaMediaError;
74848
+ /**
74849
+ * Request failed; see the error code reference.
74850
+ */
74851
+ 503: MediaMediaError;
74852
+ };
74853
+ export type MediaCreateBatchError = MediaCreateBatchErrors[keyof MediaCreateBatchErrors];
74854
+ export type MediaCreateBatchResponses = {
74855
+ /**
74856
+ * Successful response.
74857
+ */
74858
+ 200: MediaJob;
74859
+ };
74860
+ export type MediaCreateBatchResponse = MediaCreateBatchResponses[keyof MediaCreateBatchResponses];
74861
+ export type MediaGetBatchData = {
74862
+ body?: never;
74863
+ path: {
74864
+ /**
74865
+ * Library ID returned by creation.
74866
+ */
74867
+ library_id: string;
74868
+ /**
74869
+ * Batch identifier returned by createBatch or batchAssets; resolved within this library.
74870
+ */
74871
+ job_id: string;
74872
+ };
74873
+ query?: never;
74874
+ url: '/media/v1/libraries/{library_id}/batches/{job_id}';
74875
+ };
74876
+ export type MediaGetBatchErrors = {
74877
+ /**
74878
+ * Request failed; see the error code reference.
74879
+ */
74880
+ 400: MediaMediaError;
74881
+ /**
74882
+ * Request failed; see the error code reference.
74883
+ */
74884
+ 403: MediaMediaError;
74885
+ /**
74886
+ * Request failed; see the error code reference.
74887
+ */
74888
+ 404: MediaMediaError;
74889
+ /**
74890
+ * Request failed; see the error code reference.
74891
+ */
74892
+ 409: MediaMediaError;
74893
+ /**
74894
+ * Request failed; see the error code reference.
74895
+ */
74896
+ 413: MediaMediaError;
74897
+ /**
74898
+ * Request failed; see the error code reference.
74899
+ */
74900
+ 415: MediaMediaError;
74901
+ /**
74902
+ * Request failed; see the error code reference.
74903
+ */
74904
+ 422: MediaMediaError;
74905
+ /**
74906
+ * Request failed; see the error code reference.
74907
+ */
74908
+ 429: MediaMediaError;
74909
+ /**
74910
+ * Request failed; see the error code reference.
74911
+ */
74912
+ 501: MediaMediaError;
74913
+ /**
74914
+ * Request failed; see the error code reference.
74915
+ */
74916
+ 502: MediaMediaError;
74917
+ /**
74918
+ * Request failed; see the error code reference.
74919
+ */
74920
+ 503: MediaMediaError;
74921
+ };
74922
+ export type MediaGetBatchError = MediaGetBatchErrors[keyof MediaGetBatchErrors];
74923
+ export type MediaGetBatchResponses = {
74924
+ /**
74925
+ * Successful response.
74926
+ */
74927
+ 200: MediaJob;
74928
+ };
74929
+ export type MediaGetBatchResponse = MediaGetBatchResponses[keyof MediaGetBatchResponses];
74930
+ export type MediaBatchAssetsData = {
74931
+ /**
74932
+ * Batch action and a selection frozen when the job is created.
74933
+ */
74934
+ body: MediaBatchAction & {
74935
+ /**
74936
+ * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
74937
+ */
74938
+ selector: MediaBatchSelector;
74939
+ /**
74940
+ * Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
74941
+ */
74942
+ reason?: string;
74943
+ };
74944
+ path: {
74945
+ /**
74946
+ * Library ID returned by creation.
74947
+ */
74948
+ library_id: string;
74949
+ };
74950
+ query?: never;
74951
+ url: '/media/v1/libraries/{library_id}/assets:batch';
74952
+ };
74953
+ export type MediaBatchAssetsErrors = {
74954
+ /**
74955
+ * Request failed; see the error code reference.
74956
+ */
74957
+ 400: MediaMediaError;
74958
+ /**
74959
+ * Request failed; see the error code reference.
74960
+ */
74961
+ 403: MediaMediaError;
74962
+ /**
74963
+ * Request failed; see the error code reference.
74964
+ */
74965
+ 404: MediaMediaError;
74966
+ /**
74967
+ * Request failed; see the error code reference.
74968
+ */
74969
+ 409: MediaMediaError;
74970
+ /**
74971
+ * Request failed; see the error code reference.
74972
+ */
74973
+ 413: MediaMediaError;
74974
+ /**
74975
+ * Request failed; see the error code reference.
74976
+ */
74977
+ 415: MediaMediaError;
74978
+ /**
74979
+ * Request failed; see the error code reference.
74980
+ */
74981
+ 422: MediaMediaError;
74982
+ /**
74983
+ * Request failed; see the error code reference.
74984
+ */
74985
+ 429: MediaMediaError;
74986
+ /**
74987
+ * Request failed; see the error code reference.
74988
+ */
74989
+ 501: MediaMediaError;
74990
+ /**
74991
+ * Request failed; see the error code reference.
74992
+ */
74993
+ 502: MediaMediaError;
74994
+ /**
74995
+ * Request failed; see the error code reference.
74996
+ */
74997
+ 503: MediaMediaError;
74998
+ };
74999
+ export type MediaBatchAssetsError = MediaBatchAssetsErrors[keyof MediaBatchAssetsErrors];
75000
+ export type MediaBatchAssetsResponses = {
75001
+ /**
75002
+ * Successful response.
75003
+ */
75004
+ 200: MediaJob;
75005
+ };
75006
+ export type MediaBatchAssetsResponse = MediaBatchAssetsResponses[keyof MediaBatchAssetsResponses];
75007
+ export type MediaGetJobData = {
75008
+ body?: never;
75009
+ path: {
75010
+ /**
75011
+ * Library ID returned by creation.
75012
+ */
75013
+ library_id: string;
75014
+ /**
75015
+ * Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library.
75016
+ */
75017
+ job_id: string;
75018
+ };
75019
+ query?: never;
75020
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}';
75021
+ };
75022
+ export type MediaGetJobErrors = {
75023
+ /**
75024
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75025
+ */
75026
+ 400: MediaMediaError;
75027
+ /**
75028
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75029
+ */
75030
+ 403: MediaMediaError;
75031
+ /**
75032
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75033
+ */
75034
+ 404: MediaMediaError;
75035
+ /**
75036
+ * Request failed; see the error code reference.
75037
+ */
75038
+ 409: MediaMediaError;
75039
+ /**
75040
+ * The file exceeds an input limit; provide a smaller source file.
75041
+ */
75042
+ 413: MediaMediaError;
75043
+ /**
75044
+ * This media format is unsupported; provide a supported format.
75045
+ */
75046
+ 415: MediaMediaError;
75047
+ /**
75048
+ * Request failed; see the error code reference.
75049
+ */
75050
+ 422: MediaMediaError;
75051
+ /**
75052
+ * A rate limit was reached; wait before retrying.
75053
+ */
75054
+ 429: MediaMediaError;
75055
+ /**
75056
+ * The requested operation is unsupported; choose a supported method.
75057
+ */
75058
+ 501: MediaMediaError;
75059
+ /**
75060
+ * Request failed; see the error code reference.
75061
+ */
75062
+ 502: MediaMediaError;
75063
+ /**
75064
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75065
+ */
75066
+ 503: MediaMediaError;
75067
+ };
75068
+ export type MediaGetJobError = MediaGetJobErrors[keyof MediaGetJobErrors];
75069
+ export type MediaGetJobResponses = {
75070
+ /**
75071
+ * Successful response.
75072
+ */
75073
+ 200: MediaJob;
75074
+ };
75075
+ export type MediaGetJobResponse = MediaGetJobResponses[keyof MediaGetJobResponses];
75076
+ export type MediaListEventsData = {
75077
+ body?: never;
75078
+ path: {
75079
+ /**
75080
+ * Library ID returned by creation.
75081
+ */
75082
+ library_id: string;
75083
+ };
75084
+ query?: {
75085
+ /**
75086
+ * Events with a larger sequence. Use with asc; cannot combine with before_seq.
75087
+ */
75088
+ after_seq?: number;
75089
+ /**
75090
+ * Events with a smaller sequence. Use with desc; cannot combine with after_seq.
75091
+ */
75092
+ before_seq?: number;
75093
+ /**
75094
+ * Sequence order: asc is increasing; desc is decreasing.
75095
+ */
75096
+ order?: 'asc' | 'desc';
75097
+ /**
75098
+ * Maximum items per page, from 1 to 200; defaults to 50.
75099
+ */
75100
+ limit?: number;
75101
+ };
75102
+ url: '/media/v1/libraries/{library_id}/events';
75103
+ };
75104
+ export type MediaListEventsErrors = {
75105
+ /**
75106
+ * Request failed; see the error code reference.
75107
+ */
75108
+ 400: MediaMediaError;
75109
+ /**
75110
+ * Request failed; see the error code reference.
75111
+ */
75112
+ 403: MediaMediaError;
75113
+ /**
75114
+ * Request failed; see the error code reference.
75115
+ */
75116
+ 404: MediaMediaError;
75117
+ /**
75118
+ * Request failed; see the error code reference.
75119
+ */
75120
+ 409: MediaMediaError;
75121
+ /**
75122
+ * Request failed; see the error code reference.
75123
+ */
75124
+ 413: MediaMediaError;
75125
+ /**
75126
+ * Request failed; see the error code reference.
75127
+ */
75128
+ 415: MediaMediaError;
75129
+ /**
75130
+ * Request failed; see the error code reference.
75131
+ */
75132
+ 422: MediaMediaError;
75133
+ /**
75134
+ * Request failed; see the error code reference.
75135
+ */
75136
+ 429: MediaMediaError;
75137
+ /**
75138
+ * Request failed; see the error code reference.
75139
+ */
75140
+ 501: MediaMediaError;
75141
+ /**
75142
+ * Request failed; see the error code reference.
75143
+ */
75144
+ 502: MediaMediaError;
75145
+ /**
75146
+ * Request failed; see the error code reference.
75147
+ */
75148
+ 503: MediaMediaError;
75149
+ };
75150
+ export type MediaListEventsError = MediaListEventsErrors[keyof MediaListEventsErrors];
75151
+ export type MediaListEventsResponses = {
75152
+ /**
75153
+ * Successful response.
75154
+ */
75155
+ 200: MediaMediaEventPage;
75156
+ };
75157
+ export type MediaListEventsResponse = MediaListEventsResponses[keyof MediaListEventsResponses];
75158
+ export type MediaCreateDeliveryTokenData = {
75159
+ /**
75160
+ * Options for authorizing private asset delivery within one active library.
75161
+ */
75162
+ body: {
75163
+ /**
75164
+ * Delivery path glob restricted to the library path prefix (a slash, library_id, then a slash). Defaults to that prefix followed by *; * matches any path text. Tildes and control characters are rejected.
75165
+ */
75166
+ acl?: string;
75167
+ /**
75168
+ * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900.
75169
+ */
75170
+ expires_in?: number;
75171
+ };
75172
+ path: {
75173
+ /**
75174
+ * Library ID returned by creation.
75175
+ */
75176
+ library_id: string;
75177
+ };
75178
+ query?: never;
75179
+ url: '/media/v1/libraries/{library_id}/delivery_tokens';
75180
+ };
75181
+ export type MediaCreateDeliveryTokenErrors = {
75182
+ /**
75183
+ * Request failed; see the error code reference.
75184
+ */
75185
+ 400: MediaMediaError;
75186
+ /**
75187
+ * Request failed; see the error code reference.
75188
+ */
75189
+ 403: MediaMediaError;
75190
+ /**
75191
+ * Request failed; see the error code reference.
75192
+ */
75193
+ 404: MediaMediaError;
75194
+ /**
75195
+ * Request failed; see the error code reference.
75196
+ */
75197
+ 409: MediaMediaError;
75198
+ /**
75199
+ * Request failed; see the error code reference.
75200
+ */
75201
+ 413: MediaMediaError;
75202
+ /**
75203
+ * Request failed; see the error code reference.
75204
+ */
75205
+ 415: MediaMediaError;
75206
+ /**
75207
+ * Request failed; see the error code reference.
75208
+ */
75209
+ 422: MediaMediaError;
73514
75210
  /**
73515
75211
  * Request failed; see the error code reference.
73516
75212
  */
@@ -73528,24 +75224,16 @@ export type MediaListFoldersErrors = {
73528
75224
  */
73529
75225
  503: MediaMediaError;
73530
75226
  };
73531
- export type MediaListFoldersError = MediaListFoldersErrors[keyof MediaListFoldersErrors];
73532
- export type MediaListFoldersResponses = {
75227
+ export type MediaCreateDeliveryTokenError = MediaCreateDeliveryTokenErrors[keyof MediaCreateDeliveryTokenErrors];
75228
+ export type MediaCreateDeliveryTokenResponses = {
73533
75229
  /**
73534
75230
  * Successful response.
73535
75231
  */
73536
- 200: MediaFolders;
75232
+ 200: MediaDeliveryToken;
73537
75233
  };
73538
- export type MediaListFoldersResponse = MediaListFoldersResponses[keyof MediaListFoldersResponses];
73539
- export type MediaCreateBatchData = {
73540
- /**
73541
- * Batch action and a selection frozen when the job is created.
73542
- */
73543
- body: MediaBatchAction & {
73544
- /**
73545
- * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
73546
- */
73547
- selector: MediaBatchSelector;
73548
- };
75234
+ export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
75235
+ export type MediaUnderstandingFailureSummaryData = {
75236
+ body?: never;
73549
75237
  path: {
73550
75238
  /**
73551
75239
  * Library ID returned by creation.
@@ -73553,19 +75241,19 @@ export type MediaCreateBatchData = {
73553
75241
  library_id: string;
73554
75242
  };
73555
75243
  query?: never;
73556
- url: '/media/v1/libraries/{library_id}/batches';
75244
+ url: '/media/v1/libraries/{library_id}/understandings/failure_summary';
73557
75245
  };
73558
- export type MediaCreateBatchErrors = {
75246
+ export type MediaUnderstandingFailureSummaryErrors = {
73559
75247
  /**
73560
- * Request failed; see the error code reference.
75248
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
73561
75249
  */
73562
75250
  400: MediaMediaError;
73563
75251
  /**
73564
- * Request failed; see the error code reference.
75252
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73565
75253
  */
73566
75254
  403: MediaMediaError;
73567
75255
  /**
73568
- * Request failed; see the error code reference.
75256
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
73569
75257
  */
73570
75258
  404: MediaMediaError;
73571
75259
  /**
@@ -73573,19 +75261,23 @@ export type MediaCreateBatchErrors = {
73573
75261
  */
73574
75262
  409: MediaMediaError;
73575
75263
  /**
73576
- * Request failed; see the error code reference.
75264
+ * The file exceeds an input limit; provide a smaller source file.
73577
75265
  */
73578
75266
  413: MediaMediaError;
73579
75267
  /**
73580
- * Request failed; see the error code reference.
75268
+ * This media format is unsupported; provide a supported format.
73581
75269
  */
73582
75270
  415: MediaMediaError;
73583
75271
  /**
73584
75272
  * Request failed; see the error code reference.
73585
75273
  */
75274
+ 422: MediaMediaError;
75275
+ /**
75276
+ * A rate limit was reached; wait before retrying.
75277
+ */
73586
75278
  429: MediaMediaError;
73587
75279
  /**
73588
- * Request failed; see the error code reference.
75280
+ * The requested operation is unsupported; choose a supported method.
73589
75281
  */
73590
75282
  501: MediaMediaError;
73591
75283
  /**
@@ -73593,44 +75285,57 @@ export type MediaCreateBatchErrors = {
73593
75285
  */
73594
75286
  502: MediaMediaError;
73595
75287
  /**
73596
- * Request failed; see the error code reference.
75288
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
73597
75289
  */
73598
75290
  503: MediaMediaError;
73599
75291
  };
73600
- export type MediaCreateBatchError = MediaCreateBatchErrors[keyof MediaCreateBatchErrors];
73601
- export type MediaCreateBatchResponses = {
75292
+ export type MediaUnderstandingFailureSummaryError = MediaUnderstandingFailureSummaryErrors[keyof MediaUnderstandingFailureSummaryErrors];
75293
+ export type MediaUnderstandingFailureSummaryResponses = {
73602
75294
  /**
73603
75295
  * Successful response.
73604
75296
  */
73605
- 200: MediaJob;
75297
+ 200: MediaFailureSummary;
73606
75298
  };
73607
- export type MediaCreateBatchResponse = MediaCreateBatchResponses[keyof MediaCreateBatchResponses];
73608
- export type MediaGetBatchData = {
75299
+ export type MediaUnderstandingFailureSummaryResponse = MediaUnderstandingFailureSummaryResponses[keyof MediaUnderstandingFailureSummaryResponses];
75300
+ export type MediaListUnderstandingsByLibraryData = {
73609
75301
  body?: never;
73610
75302
  path: {
73611
75303
  /**
73612
75304
  * Library ID returned by creation.
73613
75305
  */
73614
75306
  library_id: string;
75307
+ };
75308
+ query?: {
73615
75309
  /**
73616
- * Batch identifier returned by createBatch or batchAssets; resolved within this library.
75310
+ * Folder path including all descendants; omitted or empty selects the entire library.
73617
75311
  */
73618
- job_id: string;
75312
+ folder?: string;
75313
+ /**
75314
+ * Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.
75315
+ */
75316
+ kinds?: string;
75317
+ /**
75318
+ * Cursor from the previous next_cursor.
75319
+ */
75320
+ cursor?: string;
75321
+ /**
75322
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
75323
+ */
75324
+ limit?: number;
73619
75325
  };
73620
- query?: never;
73621
- url: '/media/v1/libraries/{library_id}/batches/{job_id}';
75326
+ url: '/media/v1/libraries/{library_id}/understandings';
73622
75327
  };
73623
- export type MediaGetBatchErrors = {
75328
+ export type MediaListUnderstandingsByLibraryErrors = {
73624
75329
  /**
73625
- * Request failed; see the error code reference.
75330
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
73626
75331
  */
73627
75332
  400: MediaMediaError;
73628
75333
  /**
73629
- * Request failed; see the error code reference.
75334
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73630
75335
  */
73631
75336
  403: MediaMediaError;
73632
75337
  /**
73633
- * Request failed; see the error code reference.
75338
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
73634
75339
  */
73635
75340
  404: MediaMediaError;
73636
75341
  /**
@@ -73638,19 +75343,23 @@ export type MediaGetBatchErrors = {
73638
75343
  */
73639
75344
  409: MediaMediaError;
73640
75345
  /**
73641
- * Request failed; see the error code reference.
75346
+ * The file exceeds an input limit; provide a smaller source file.
73642
75347
  */
73643
75348
  413: MediaMediaError;
73644
75349
  /**
73645
- * Request failed; see the error code reference.
75350
+ * This media format is unsupported; provide a supported format.
73646
75351
  */
73647
75352
  415: MediaMediaError;
73648
75353
  /**
73649
75354
  * Request failed; see the error code reference.
73650
75355
  */
75356
+ 422: MediaMediaError;
75357
+ /**
75358
+ * A rate limit was reached; wait before retrying.
75359
+ */
73651
75360
  429: MediaMediaError;
73652
75361
  /**
73653
- * Request failed; see the error code reference.
75362
+ * The requested operation is unsupported; choose a supported method.
73654
75363
  */
73655
75364
  501: MediaMediaError;
73656
75365
  /**
@@ -73658,27 +75367,73 @@ export type MediaGetBatchErrors = {
73658
75367
  */
73659
75368
  502: MediaMediaError;
73660
75369
  /**
73661
- * Request failed; see the error code reference.
75370
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
73662
75371
  */
73663
75372
  503: MediaMediaError;
73664
75373
  };
73665
- export type MediaGetBatchError = MediaGetBatchErrors[keyof MediaGetBatchErrors];
73666
- export type MediaGetBatchResponses = {
75374
+ export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
75375
+ export type MediaListUnderstandingsByLibraryResponses = {
73667
75376
  /**
73668
75377
  * Successful response.
73669
75378
  */
73670
- 200: MediaJob;
75379
+ 200: MediaUnderstandingPage;
73671
75380
  };
73672
- export type MediaGetBatchResponse = MediaGetBatchResponses[keyof MediaGetBatchResponses];
73673
- export type MediaBatchAssetsData = {
75381
+ export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
75382
+ export type MediaCreateGenerationData = {
73674
75383
  /**
73675
- * Batch action and a selection frozen when the job is created.
75384
+ * Text-to-video request. Generation is charged per second; unsaved candidates expire after 7 days.
73676
75385
  */
73677
- body: MediaBatchAction & {
75386
+ body: {
73678
75387
  /**
73679
- * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
75388
+ * Generation operation; v1 accepts only video.generate text-to-video requests.
73680
75389
  */
73681
- selector: MediaBatchSelector;
75390
+ intent: 'video.generate';
75391
+ /**
75392
+ * Text prompt describing the video to generate.
75393
+ */
75394
+ prompt: string;
75395
+ /**
75396
+ * Number of videos to generate; defaults to 1 and must be from 1 to 4.
75397
+ */
75398
+ count?: number;
75399
+ /**
75400
+ * Requested video duration in seconds; Router validates the model-specific supported durations.
75401
+ */
75402
+ duration_seconds?: number;
75403
+ /**
75404
+ * Requested output aspect ratio; defaults to 16:9 and Router validates model support.
75405
+ */
75406
+ aspect_ratio?: string;
75407
+ /**
75408
+ * Router model with video_generation capability; defaults to wan2.7-t2v.
75409
+ */
75410
+ model?: string;
75411
+ /**
75412
+ * candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically.
75413
+ */
75414
+ save?: 'candidate' | 'library';
75415
+ /**
75416
+ * 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.
75417
+ */
75418
+ asset_folder?: string;
75419
+ /**
75420
+ * Tags applied when an output becomes a library asset.
75421
+ */
75422
+ tags?: Array<string>;
75423
+ /**
75424
+ * Understanding behavior when a candidate is saved as an asset; defaults to auto.
75425
+ */
75426
+ understanding?: 'auto' | 'skip';
75427
+ /**
75428
+ * Not supported in v1; omit this field. Only text-to-video is currently available.
75429
+ */
75430
+ references?: Array<unknown>;
75431
+ };
75432
+ headers?: {
75433
+ /**
75434
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected.
75435
+ */
75436
+ 'Idempotency-Key'?: string;
73682
75437
  };
73683
75438
  path: {
73684
75439
  /**
@@ -73687,19 +75442,19 @@ export type MediaBatchAssetsData = {
73687
75442
  library_id: string;
73688
75443
  };
73689
75444
  query?: never;
73690
- url: '/media/v1/libraries/{library_id}/assets:batch';
75445
+ url: '/media/v1/libraries/{library_id}/generations';
73691
75446
  };
73692
- export type MediaBatchAssetsErrors = {
75447
+ export type MediaCreateGenerationErrors = {
73693
75448
  /**
73694
- * Request failed; see the error code reference.
75449
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
73695
75450
  */
73696
75451
  400: MediaMediaError;
73697
75452
  /**
73698
- * Request failed; see the error code reference.
75453
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73699
75454
  */
73700
75455
  403: MediaMediaError;
73701
75456
  /**
73702
- * Request failed; see the error code reference.
75457
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
73703
75458
  */
73704
75459
  404: MediaMediaError;
73705
75460
  /**
@@ -73707,19 +75462,23 @@ export type MediaBatchAssetsErrors = {
73707
75462
  */
73708
75463
  409: MediaMediaError;
73709
75464
  /**
73710
- * Request failed; see the error code reference.
75465
+ * The file exceeds an input limit; provide a smaller source file.
73711
75466
  */
73712
75467
  413: MediaMediaError;
73713
75468
  /**
73714
- * Request failed; see the error code reference.
75469
+ * This media format is unsupported; provide a supported format.
73715
75470
  */
73716
75471
  415: MediaMediaError;
73717
75472
  /**
73718
75473
  * Request failed; see the error code reference.
73719
75474
  */
75475
+ 422: MediaMediaError;
75476
+ /**
75477
+ * This library already has five queued or running generation jobs; wait until one finishes and retry.
75478
+ */
73720
75479
  429: MediaMediaError;
73721
75480
  /**
73722
- * Request failed; see the error code reference.
75481
+ * The requested operation is unsupported; choose a supported method.
73723
75482
  */
73724
75483
  501: MediaMediaError;
73725
75484
  /**
@@ -73727,44 +75486,53 @@ export type MediaBatchAssetsErrors = {
73727
75486
  */
73728
75487
  502: MediaMediaError;
73729
75488
  /**
73730
- * Request failed; see the error code reference.
75489
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
73731
75490
  */
73732
75491
  503: MediaMediaError;
73733
75492
  };
73734
- export type MediaBatchAssetsError = MediaBatchAssetsErrors[keyof MediaBatchAssetsErrors];
73735
- export type MediaBatchAssetsResponses = {
75493
+ export type MediaCreateGenerationError = MediaCreateGenerationErrors[keyof MediaCreateGenerationErrors];
75494
+ export type MediaCreateGenerationResponses = {
73736
75495
  /**
73737
75496
  * Successful response.
73738
75497
  */
73739
- 200: MediaJob;
75498
+ 202: MediaJob;
73740
75499
  };
73741
- export type MediaBatchAssetsResponse = MediaBatchAssetsResponses[keyof MediaBatchAssetsResponses];
73742
- export type MediaGetJobData = {
75500
+ export type MediaCreateGenerationResponse = MediaCreateGenerationResponses[keyof MediaCreateGenerationResponses];
75501
+ export type MediaListJobsData = {
73743
75502
  body?: never;
73744
75503
  path: {
73745
75504
  /**
73746
75505
  * Library ID returned by creation.
73747
75506
  */
73748
75507
  library_id: string;
75508
+ };
75509
+ query?: {
73749
75510
  /**
73750
- * Batch identifier returned by createBatch or batchAssets; resolved within this library.
75511
+ * Filter jobs by their current status.
73751
75512
  */
73752
- job_id: string;
75513
+ status?: MediaJobStatus;
75514
+ /**
75515
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
75516
+ */
75517
+ limit?: number;
75518
+ /**
75519
+ * Job id from the previous page’s next_cursor; omit for the first page.
75520
+ */
75521
+ cursor?: MediaJobId;
73753
75522
  };
73754
- query?: never;
73755
- url: '/media/v1/libraries/{library_id}/jobs/{job_id}';
75523
+ url: '/media/v1/libraries/{library_id}/jobs';
73756
75524
  };
73757
- export type MediaGetJobErrors = {
75525
+ export type MediaListJobsErrors = {
73758
75526
  /**
73759
- * Request failed; see the error code reference.
75527
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
73760
75528
  */
73761
75529
  400: MediaMediaError;
73762
75530
  /**
73763
- * Request failed; see the error code reference.
75531
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73764
75532
  */
73765
75533
  403: MediaMediaError;
73766
75534
  /**
73767
- * Request failed; see the error code reference.
75535
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
73768
75536
  */
73769
75537
  404: MediaMediaError;
73770
75538
  /**
@@ -73772,19 +75540,23 @@ export type MediaGetJobErrors = {
73772
75540
  */
73773
75541
  409: MediaMediaError;
73774
75542
  /**
73775
- * Request failed; see the error code reference.
75543
+ * The file exceeds an input limit; provide a smaller source file.
73776
75544
  */
73777
75545
  413: MediaMediaError;
73778
75546
  /**
73779
- * Request failed; see the error code reference.
75547
+ * This media format is unsupported; provide a supported format.
73780
75548
  */
73781
75549
  415: MediaMediaError;
73782
75550
  /**
73783
75551
  * Request failed; see the error code reference.
73784
75552
  */
75553
+ 422: MediaMediaError;
75554
+ /**
75555
+ * A rate limit was reached; wait before retrying.
75556
+ */
73785
75557
  429: MediaMediaError;
73786
75558
  /**
73787
- * Request failed; see the error code reference.
75559
+ * The requested operation is unsupported; choose a supported method.
73788
75560
  */
73789
75561
  501: MediaMediaError;
73790
75562
  /**
@@ -73792,57 +75564,44 @@ export type MediaGetJobErrors = {
73792
75564
  */
73793
75565
  502: MediaMediaError;
73794
75566
  /**
73795
- * Request failed; see the error code reference.
75567
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
73796
75568
  */
73797
75569
  503: MediaMediaError;
73798
75570
  };
73799
- export type MediaGetJobError = MediaGetJobErrors[keyof MediaGetJobErrors];
73800
- export type MediaGetJobResponses = {
75571
+ export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
75572
+ export type MediaListJobsResponses = {
73801
75573
  /**
73802
75574
  * Successful response.
73803
75575
  */
73804
- 200: MediaJob;
75576
+ 200: MediaJobPage;
73805
75577
  };
73806
- export type MediaGetJobResponse = MediaGetJobResponses[keyof MediaGetJobResponses];
73807
- export type MediaListEventsData = {
75578
+ export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
75579
+ export type MediaCancelJobData = {
73808
75580
  body?: never;
73809
75581
  path: {
73810
75582
  /**
73811
75583
  * Library ID returned by creation.
73812
75584
  */
73813
75585
  library_id: string;
73814
- };
73815
- query?: {
73816
- /**
73817
- * Events with a larger sequence. Use with asc; cannot combine with before_seq.
73818
- */
73819
- after_seq?: number;
73820
- /**
73821
- * Events with a smaller sequence. Use with desc; cannot combine with after_seq.
73822
- */
73823
- before_seq?: number;
73824
- /**
73825
- * Sequence order: asc is increasing; desc is decreasing.
73826
- */
73827
- order?: 'asc' | 'desc';
73828
75586
  /**
73829
- * Maximum items per page, from 1 to 200; defaults to 50.
75587
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
73830
75588
  */
73831
- limit?: number;
75589
+ job_id: string;
73832
75590
  };
73833
- url: '/media/v1/libraries/{library_id}/events';
75591
+ query?: never;
75592
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
73834
75593
  };
73835
- export type MediaListEventsErrors = {
75594
+ export type MediaCancelJobErrors = {
73836
75595
  /**
73837
- * Request failed; see the error code reference.
75596
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
73838
75597
  */
73839
75598
  400: MediaMediaError;
73840
75599
  /**
73841
- * Request failed; see the error code reference.
75600
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73842
75601
  */
73843
75602
  403: MediaMediaError;
73844
75603
  /**
73845
- * Request failed; see the error code reference.
75604
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
73846
75605
  */
73847
75606
  404: MediaMediaError;
73848
75607
  /**
@@ -73850,19 +75609,23 @@ export type MediaListEventsErrors = {
73850
75609
  */
73851
75610
  409: MediaMediaError;
73852
75611
  /**
73853
- * Request failed; see the error code reference.
75612
+ * The file exceeds an input limit; provide a smaller source file.
73854
75613
  */
73855
75614
  413: MediaMediaError;
73856
75615
  /**
73857
- * Request failed; see the error code reference.
75616
+ * This media format is unsupported; provide a supported format.
73858
75617
  */
73859
75618
  415: MediaMediaError;
73860
75619
  /**
73861
75620
  * Request failed; see the error code reference.
73862
75621
  */
75622
+ 422: MediaMediaError;
75623
+ /**
75624
+ * A rate limit was reached; wait before retrying.
75625
+ */
73863
75626
  429: MediaMediaError;
73864
75627
  /**
73865
- * Request failed; see the error code reference.
75628
+ * The requested operation is unsupported; choose a supported method.
73866
75629
  */
73867
75630
  501: MediaMediaError;
73868
75631
  /**
@@ -73870,52 +75633,68 @@ export type MediaListEventsErrors = {
73870
75633
  */
73871
75634
  502: MediaMediaError;
73872
75635
  /**
73873
- * Request failed; see the error code reference.
75636
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
73874
75637
  */
73875
75638
  503: MediaMediaError;
73876
75639
  };
73877
- export type MediaListEventsError = MediaListEventsErrors[keyof MediaListEventsErrors];
73878
- export type MediaListEventsResponses = {
75640
+ export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
75641
+ export type MediaCancelJobResponses = {
73879
75642
  /**
73880
75643
  * Successful response.
73881
75644
  */
73882
- 200: MediaMediaEventPage;
75645
+ 200: MediaJob;
73883
75646
  };
73884
- export type MediaListEventsResponse = MediaListEventsResponses[keyof MediaListEventsResponses];
73885
- export type MediaCreateDeliveryTokenData = {
75647
+ export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
75648
+ export type MediaSaveGenerationOutputData = {
73886
75649
  /**
73887
- * Options for authorizing private asset delivery within one active library.
75650
+ * Optional asset metadata and understanding behavior for a successful candidate.
73888
75651
  */
73889
- body: {
75652
+ body?: {
73890
75653
  /**
73891
- * Delivery path glob restricted to the library path prefix (a slash, library_id, then a slash). Defaults to that prefix followed by *; * matches any path text. Tildes and control characters are rejected.
75654
+ * Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent.
73892
75655
  */
73893
- acl?: string;
75656
+ public_id?: string;
73894
75657
  /**
73895
- * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 3600.
75658
+ * 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.
73896
75659
  */
73897
- expires_in?: number;
75660
+ asset_folder?: string;
75661
+ /**
75662
+ * Tags to apply to the saved asset.
75663
+ */
75664
+ tags?: Array<string>;
75665
+ /**
75666
+ * Understanding behavior for the saved asset; defaults to auto.
75667
+ */
75668
+ understanding?: 'auto' | 'skip';
73898
75669
  };
73899
75670
  path: {
73900
75671
  /**
73901
75672
  * Library ID returned by creation.
73902
75673
  */
73903
75674
  library_id: string;
75675
+ /**
75676
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
75677
+ */
75678
+ job_id: string;
75679
+ /**
75680
+ * Zero-based position of the candidate in the Job outputs array.
75681
+ */
75682
+ index: string;
73904
75683
  };
73905
75684
  query?: never;
73906
- url: '/media/v1/libraries/{library_id}/delivery_tokens';
75685
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save';
73907
75686
  };
73908
- export type MediaCreateDeliveryTokenErrors = {
75687
+ export type MediaSaveGenerationOutputErrors = {
73909
75688
  /**
73910
- * Request failed; see the error code reference.
75689
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
73911
75690
  */
73912
75691
  400: MediaMediaError;
73913
75692
  /**
73914
- * Request failed; see the error code reference.
75693
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73915
75694
  */
73916
75695
  403: MediaMediaError;
73917
75696
  /**
73918
- * Request failed; see the error code reference.
75697
+ * The job or output is inaccessible, missing, or the candidate has expired; verify library ownership and create a new job for an expired candidate.
73919
75698
  */
73920
75699
  404: MediaMediaError;
73921
75700
  /**
@@ -73923,38 +75702,102 @@ export type MediaCreateDeliveryTokenErrors = {
73923
75702
  */
73924
75703
  409: MediaMediaError;
73925
75704
  /**
73926
- * Request failed; see the error code reference.
75705
+ * The file exceeds an input limit; provide a smaller source file.
73927
75706
  */
73928
75707
  413: MediaMediaError;
73929
75708
  /**
73930
- * Request failed; see the error code reference.
75709
+ * This media format is unsupported; provide a supported format.
73931
75710
  */
73932
75711
  415: MediaMediaError;
73933
75712
  /**
73934
75713
  * Request failed; see the error code reference.
73935
75714
  */
75715
+ 422: MediaMediaError;
75716
+ /**
75717
+ * A rate limit was reached; wait before retrying.
75718
+ */
73936
75719
  429: MediaMediaError;
73937
75720
  /**
73938
- * Request failed; see the error code reference.
75721
+ * The requested operation is unsupported; choose a supported method.
73939
75722
  */
73940
75723
  501: MediaMediaError;
73941
75724
  /**
73942
75725
  * Request failed; see the error code reference.
73943
75726
  */
73944
75727
  502: MediaMediaError;
75728
+ /**
75729
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75730
+ */
75731
+ 503: MediaMediaError;
75732
+ };
75733
+ export type MediaSaveGenerationOutputError = MediaSaveGenerationOutputErrors[keyof MediaSaveGenerationOutputErrors];
75734
+ export type MediaSaveGenerationOutputResponses = {
75735
+ /**
75736
+ * Successful response.
75737
+ */
75738
+ 200: MediaAsset;
75739
+ };
75740
+ export type MediaSaveGenerationOutputResponse = MediaSaveGenerationOutputResponses[keyof MediaSaveGenerationOutputResponses];
75741
+ export type MediaGetGenerationCapabilitiesData = {
75742
+ body?: never;
75743
+ path?: never;
75744
+ query?: never;
75745
+ url: '/media/v1/generation/capabilities';
75746
+ };
75747
+ export type MediaGetGenerationCapabilitiesErrors = {
75748
+ /**
75749
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75750
+ */
75751
+ 400: MediaMediaError;
75752
+ /**
75753
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75754
+ */
75755
+ 403: MediaMediaError;
75756
+ /**
75757
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75758
+ */
75759
+ 404: MediaMediaError;
75760
+ /**
75761
+ * Request failed; see the error code reference.
75762
+ */
75763
+ 409: MediaMediaError;
75764
+ /**
75765
+ * The file exceeds an input limit; provide a smaller source file.
75766
+ */
75767
+ 413: MediaMediaError;
75768
+ /**
75769
+ * This media format is unsupported; provide a supported format.
75770
+ */
75771
+ 415: MediaMediaError;
75772
+ /**
75773
+ * Request failed; see the error code reference.
75774
+ */
75775
+ 422: MediaMediaError;
75776
+ /**
75777
+ * A rate limit was reached; wait before retrying.
75778
+ */
75779
+ 429: MediaMediaError;
75780
+ /**
75781
+ * The requested operation is unsupported; choose a supported method.
75782
+ */
75783
+ 501: MediaMediaError;
73945
75784
  /**
73946
75785
  * Request failed; see the error code reference.
73947
75786
  */
75787
+ 502: MediaMediaError;
75788
+ /**
75789
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75790
+ */
73948
75791
  503: MediaMediaError;
73949
75792
  };
73950
- export type MediaCreateDeliveryTokenError = MediaCreateDeliveryTokenErrors[keyof MediaCreateDeliveryTokenErrors];
73951
- export type MediaCreateDeliveryTokenResponses = {
75793
+ export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
75794
+ export type MediaGetGenerationCapabilitiesResponses = {
73952
75795
  /**
73953
75796
  * Successful response.
73954
75797
  */
73955
- 200: MediaDeliveryToken;
75798
+ 200: MediaGenerationCapabilities;
73956
75799
  };
73957
- export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
75800
+ export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
73958
75801
  export type GetSandboxV1SandboxesData = {
73959
75802
  body?: never;
73960
75803
  path?: never;
@@ -74347,6 +76190,10 @@ export type ListSandboxTemplatesResponses = {
74347
76190
  buildCount: number;
74348
76191
  envdVersion: SandboxEnvdVersion;
74349
76192
  buildStatus: SandboxTemplateBuildStatus;
76193
+ /**
76194
+ * Lifecycle classes this template can run as. ephemeral: cannot pause, snapshot or mount volumes and is deleted when it stops; persistent: can pause, resume and snapshot.
76195
+ */
76196
+ lifecycles?: Array<'ephemeral' | 'persistent'>;
74350
76197
  /**
74351
76198
  * True for an official catalog template; false for your organization's custom templates.
74352
76199
  */
@@ -76550,7 +78397,7 @@ export type TicketGetTicketsData = {
76550
78397
  */
76551
78398
  page_token?: string;
76552
78399
  /**
76553
- * Filter expression.
78400
+ * Filter expression using field:value qualifiers, such as is:open milestone:5.
76554
78401
  */
76555
78402
  filter?: string;
76556
78403
  };
@@ -78969,7 +80816,7 @@ export type TicketGetActivityData = {
78969
80816
  */
78970
80817
  page_token?: string;
78971
80818
  /**
78972
- * Filter expression.
80819
+ * Activity filter expression.
78973
80820
  */
78974
80821
  filter?: string;
78975
80822
  };