@deepraxis/sdk 0.1.1-dev.ea9c801 → 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.
@@ -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.
@@ -14109,7 +14180,7 @@ export type MediaLibrary = {
14109
14180
  };
14110
14181
  export type MediaMediaError = {
14111
14182
  error: {
14112
- 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';
14113
14184
  message: string;
14114
14185
  details: string | null;
14115
14186
  };
@@ -14127,7 +14198,7 @@ export type MediaMediaModelsInput = {
14127
14198
  */
14128
14199
  embedding?: string | null;
14129
14200
  /**
14130
- * 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.
14131
14202
  */
14132
14203
  transcription?: string | null;
14133
14204
  /**
@@ -14138,6 +14209,10 @@ export type MediaMediaModelsInput = {
14138
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.
14139
14210
  */
14140
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;
14141
14216
  } | null;
14142
14217
  /**
14143
14218
  * Libraries in this page, ordered by creation time descending.
@@ -14152,6 +14227,25 @@ export type MediaLibraryPage = MediaPage & {
14152
14227
  */
14153
14228
  next_cursor: string | null;
14154
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
+ };
14155
14249
  /**
14156
14250
  * Receipt confirming permanent removal of a previously deleted library.
14157
14251
  */
@@ -14311,7 +14405,7 @@ export type MediaAsset = {
14311
14405
  */
14312
14406
  url: string;
14313
14407
  /**
14314
- * 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.
14315
14409
  */
14316
14410
  secure_url: string;
14317
14411
  /**
@@ -14394,6 +14488,27 @@ export type MediaAsset = {
14394
14488
  };
14395
14489
  };
14396
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
+ };
14397
14512
  };
14398
14513
  /**
14399
14514
  * Receipt confirming that the asset was deleted.
@@ -14507,7 +14622,19 @@ export type MediaFolders = {
14507
14622
  * Number of assets in this folder and all descendant folders.
14508
14623
  */
14509
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;
14510
14633
  }>;
14634
+ /**
14635
+ * False while historical folder and failure counts are being populated; refresh after backfill completes.
14636
+ */
14637
+ counts_complete: boolean;
14511
14638
  };
14512
14639
  /**
14513
14640
  * Asynchronous batch job with successful and failed item counts.
@@ -14522,19 +14649,19 @@ export type MediaJob = {
14522
14649
  */
14523
14650
  library_id: MediaLibraryId;
14524
14651
  /**
14525
- * 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.
14526
14653
  */
14527
- action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete';
14654
+ action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'generate';
14528
14655
  /**
14529
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.
14530
14657
  */
14531
- status: 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed';
14658
+ status: MediaJobStatus;
14532
14659
  /**
14533
14660
  * Number of distinct assets selected when the job was created.
14534
14661
  */
14535
14662
  total: number;
14536
14663
  /**
14537
- * 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.
14538
14665
  */
14539
14666
  done: number;
14540
14667
  /**
@@ -14548,12 +14675,66 @@ export type MediaJob = {
14548
14675
  /**
14549
14676
  * Identifier supplied for the failed item; it may identify a missing asset.
14550
14677
  */
14551
- asset_id: MediaAssetId;
14678
+ asset_id?: MediaAssetId;
14679
+ /**
14680
+ * Zero-based output index for a failed video-generation item.
14681
+ */
14682
+ index?: number;
14552
14683
  /**
14553
14684
  * Domain error code explaining the individual item failure.
14554
14685
  */
14555
14686
  code: MediaMediaErrorCode;
14556
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
+ };
14557
14738
  /**
14558
14739
  * Time the batch job was created, in UTC.
14559
14740
  */
@@ -14600,6 +14781,15 @@ export type MediaBatchAction = {
14600
14781
  * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
14601
14782
  */
14602
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>;
14603
14793
  };
14604
14794
  /**
14605
14795
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
@@ -14645,6 +14835,91 @@ export type MediaDeliveryToken = {
14645
14835
  */
14646
14836
  expires_at: string;
14647
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
+ };
14648
14923
  /**
14649
14924
  * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
14650
14925
  */
@@ -15087,6 +15362,10 @@ export type SandboxTemplateBuildInfo = {
15087
15362
  reason?: SandboxBuildStatusReason;
15088
15363
  };
15089
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'>;
15090
15369
  /**
15091
15370
  * Identifier of the template
15092
15371
  */
@@ -24995,6 +25274,10 @@ export type CutTimeline = {
24995
25274
  * Ordered tracks, topmost visual layer first.
24996
25275
  */
24997
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>;
24998
25281
  /**
24999
25282
  * Named points on the timeline.
25000
25283
  */
@@ -25087,6 +25370,20 @@ export type CutTrackSummary = {
25087
25370
  */
25088
25371
  items: number;
25089
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
+ };
25090
25387
  /**
25091
25388
  * Reference to an asset in a bound library; follows asset overwrites to the latest version rather than pinning a version.
25092
25389
  */
@@ -25309,7 +25606,7 @@ export type KnowledgeKnowledgeModels = {
25309
25606
  */
25310
25607
  query_rewrite: string;
25311
25608
  /**
25312
- * 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.
25313
25610
  */
25314
25611
  ocr: string;
25315
25612
  /**
@@ -25318,14 +25615,9 @@ export type KnowledgeKnowledgeModels = {
25318
25615
  vision: string;
25319
25616
  };
25320
25617
  /**
25321
- * 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.
25322
25619
  */
25323
- export type KnowledgeChunkingInput = {
25324
- /**
25325
- * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
25326
- */
25327
- type: 'auto';
25328
- } | KnowledgeStaticChunking;
25620
+ export type KnowledgeNativeChunkingInput = KnowledgeChunkingInput | KnowledgeHierarchicalChunking;
25329
25621
  /**
25330
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.
25331
25623
  */
@@ -25343,7 +25635,7 @@ export type KnowledgeKnowledgeModelsInput = {
25343
25635
  */
25344
25636
  query_rewrite?: string | null;
25345
25637
  /**
25346
- * 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.
25347
25639
  */
25348
25640
  ocr?: string | null;
25349
25641
  /**
@@ -25380,6 +25672,10 @@ export type KnowledgeNativeSearchResult = {
25380
25672
  * Extracted text of the matched chunk, which may overlap neighboring chunks.
25381
25673
  */
25382
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;
25383
25679
  /**
25384
25680
  * Resource ID.
25385
25681
  */
@@ -25443,14 +25739,9 @@ export type KnowledgeFilter = {
25443
25739
  filters: Array<KnowledgeFilter>;
25444
25740
  };
25445
25741
  /**
25446
- * 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.
25447
25743
  */
25448
- export type KnowledgeChunking = KnowledgeStaticChunking | {
25449
- /**
25450
- * other identifies a stored strategy whose chunk-size settings are unavailable.
25451
- */
25452
- type: 'other';
25453
- };
25744
+ export type KnowledgeNativeChunking = KnowledgeChunking | KnowledgeHierarchicalChunking;
25454
25745
  /**
25455
25746
  * File attributes used by search filters. Up to 16 keys of 64 characters; string values up to 512 characters.
25456
25747
  */
@@ -25574,7 +25865,7 @@ export type MediaMediaModels = {
25574
25865
  */
25575
25866
  embedding: string;
25576
25867
  /**
25577
- * 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.
25578
25869
  */
25579
25870
  transcription: string;
25580
25871
  /**
@@ -25585,6 +25876,10 @@ export type MediaMediaModels = {
25585
25876
  * Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
25586
25877
  */
25587
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;
25588
25883
  };
25589
25884
  /**
25590
25885
  * Identifier of a library belonging to the caller.
@@ -25745,7 +26040,7 @@ export type MediaCloudinaryResource = {
25745
26040
  */
25746
26041
  url: string;
25747
26042
  /**
25748
- * 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.
25749
26044
  */
25750
26045
  secure_url: string;
25751
26046
  /**
@@ -25781,13 +26076,13 @@ export type MediaChunkComplete = MediaCloudinaryResource & {
25781
26076
  done: true;
25782
26077
  };
25783
26078
  /**
25784
- * 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.
25785
26080
  */
25786
26081
  export type MediaProcessing = {
25787
26082
  /**
25788
- * Current understanding stage: probe, frames, shots, visual, transcript, transcript_reference, transcript_correction, 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.
25789
26084
  */
25790
- readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'embedding' | 'finalize' | null;
26085
+ readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
25791
26086
  state: MediaProcessingState;
25792
26087
  /**
25793
26088
  * Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
@@ -25854,7 +26149,7 @@ export type MediaUnderstanding = {
25854
26149
  */
25855
26150
  asset_version: number;
25856
26151
  /**
25857
- * 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.
25858
26153
  */
25859
26154
  kind: MediaUnderstandingKind;
25860
26155
  /**
@@ -25878,7 +26173,7 @@ export type MediaUnderstanding = {
25878
26173
  */
25879
26174
  content: string | null;
25880
26175
  /**
25881
- * 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.
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.
25882
26177
  */
25883
26178
  data: unknown | null;
25884
26179
  /**
@@ -26054,7 +26349,7 @@ export type MediaSearchAsset = {
26054
26349
  */
26055
26350
  url: string;
26056
26351
  /**
26057
- * 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.
26058
26353
  */
26059
26354
  secure_url: string;
26060
26355
  /**
@@ -26137,6 +26432,27 @@ export type MediaSearchAsset = {
26137
26432
  };
26138
26433
  };
26139
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
+ };
26140
26456
  };
26141
26457
  /**
26142
26458
  * A matching asset with its ranking score and supporting matches.
@@ -26159,11 +26475,11 @@ export type MediaSemanticHit = {
26159
26475
  */
26160
26476
  matches: Array<MediaSemanticMatch>;
26161
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';
26162
26479
  /**
26163
- * Identifier returned when a batch job is created.
26480
+ * State of a requested video output.
26164
26481
  */
26165
- export type MediaJobId = string;
26166
- 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';
26167
26483
  /**
26168
26484
  * A recorded library event with a monotonically increasing sequence within that library.
26169
26485
  */
@@ -26207,6 +26523,36 @@ export type MediaMediaEvent = {
26207
26523
  [key: string]: unknown;
26208
26524
  };
26209
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
+ };
26210
26556
  /**
26211
26557
  * Auto-resume configuration for paused sandboxes.
26212
26558
  */
@@ -30533,6 +30879,32 @@ export type CutTrack = {
30533
30879
  */
30534
30880
  items: Array<CutItem>;
30535
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
+ };
30536
30908
  /**
30537
30909
  * A named point on the project timeline.
30538
30910
  */
@@ -30550,23 +30922,39 @@ export type CutMarker = {
30550
30922
  */
30551
30923
  label: string;
30552
30924
  };
30553
- 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 = {
30554
30929
  /**
30555
- * static selects explicit chunk-size and overlap settings.
30930
+ * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
30556
30931
  */
30557
- 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 = {
30558
30938
  /**
30559
- * Chunk-size and overlap limits in estimated tokens.
30939
+ * hierarchical selects smaller child chunks for matching and larger parent chunks for context.
30560
30940
  */
30561
- static: {
30941
+ type: 'hierarchical';
30942
+ /**
30943
+ * Required parent, child and overlap sizes in estimated tokens. All three values must be integers.
30944
+ */
30945
+ hierarchical: {
30562
30946
  /**
30563
- * Estimated tokens per chunk.
30947
+ * Maximum estimated tokens per parent chunk, from 101 through 4096; must exceed child_max_tokens.
30564
30948
  */
30565
- max_chunk_size_tokens: number;
30949
+ parent_max_tokens: number;
30566
30950
  /**
30567
- * 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.
30568
30952
  */
30569
- 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;
30570
30958
  };
30571
30959
  };
30572
30960
  /**
@@ -30606,6 +30994,15 @@ export type KnowledgeSearchExplain = {
30606
30994
  */
30607
30995
  matched_terms: Array<string>;
30608
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
+ };
30609
31006
  /**
30610
31007
  * Aggregate processing state across the asset processing tasks.
30611
31008
  */
@@ -30671,9 +31068,9 @@ export type MediaTranscriptCorrection = {
30671
31068
  */
30672
31069
  export type MediaUnderstandingId = string;
30673
31070
  /**
30674
- * 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.
30675
31072
  */
30676
- export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
31073
+ export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
30677
31074
  /**
30678
31075
  * Time range within the source media, expressed in milliseconds.
30679
31076
  */
@@ -30733,7 +31130,7 @@ export type MediaSemanticMatch = {
30733
31130
  /**
30734
31131
  * Type of change recorded for a library, asset, processing task, search index or batch.
30735
31132
  */
30736
- 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';
30737
31134
  /**
30738
31135
  * Auto-resume enabled flag for paused sandboxes. Default false.
30739
31136
  */
@@ -31365,21 +31762,25 @@ export type AnthropicToolReferenceBlock = {
31365
31762
  */
31366
31763
  export type CutTextStyle = {
31367
31764
  /**
31368
- * 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.
31369
31766
  */
31370
- font_family?: 'Geist' | 'Noto Sans SC';
31767
+ font_family?: string;
31371
31768
  /**
31372
31769
  * Text size in output pixels.
31373
31770
  */
31374
31771
  font_size?: number;
31375
31772
  /**
31376
- * 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.
31377
31774
  */
31378
- font_weight?: 400 | 500 | 700;
31775
+ font_weight?: number;
31379
31776
  /**
31380
31777
  * Text color in #RRGGBB or #RRGGBBAA notation.
31381
31778
  */
31382
31779
  color?: string;
31780
+ /**
31781
+ * Optional solid or gradient glyph fill; gradients span the text box.
31782
+ */
31783
+ fill?: CutFill;
31383
31784
  /**
31384
31785
  * Optional text outline.
31385
31786
  */
@@ -31389,10 +31790,61 @@ export type CutTextStyle = {
31389
31790
  */
31390
31791
  color?: string;
31391
31792
  /**
31392
- * Outline width in output pixels.
31793
+ * Outline width in output pixels; must be non-negative and at most 40 pixels.
31393
31794
  */
31394
31795
  width?: number;
31395
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
+ };
31396
31848
  /**
31397
31849
  * Optional text background color as hexadecimal RGB or RGBA.
31398
31850
  */
@@ -31406,9 +31858,13 @@ export type CutTextStyle = {
31406
31858
  */
31407
31859
  max_width?: number;
31408
31860
  /**
31409
- * 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.
31410
31862
  */
31411
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;
31412
31868
  /**
31413
31869
  * Optional color applied to the currently spoken caption word.
31414
31870
  */
@@ -31520,6 +31976,164 @@ export type CutItem = {
31520
31976
  */
31521
31977
  words?: Array<CutCaptionWord>;
31522
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
+ };
31523
32137
  export type MediaTranscriptEdit = {
31524
32138
  /**
31525
32139
  * Original literal text replaced by this accepted edit.
@@ -31741,6 +32355,51 @@ export type AnthropicCitationsConfig = {
31741
32355
  */
31742
32356
  enabled: boolean;
31743
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
+ };
31744
32403
  /**
31745
32404
  * Visual placement; coordinates are normalized canvas centers.
31746
32405
  */
@@ -32122,6 +32781,28 @@ export type AutomationJsonValueWritable = null | string | number | boolean | Aut
32122
32781
  export type AutomationJsonObjectWritable = {
32123
32782
  [key: string]: AutomationJsonValueWritable;
32124
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
+ };
32125
32806
  /**
32126
32807
  * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
32127
32808
  */
@@ -32324,7 +33005,7 @@ export type MediaAssetWritable = {
32324
33005
  */
32325
33006
  url: string;
32326
33007
  /**
32327
- * 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.
32328
33009
  */
32329
33010
  secure_url: string;
32330
33011
  /**
@@ -32407,6 +33088,27 @@ export type MediaAssetWritable = {
32407
33088
  };
32408
33089
  };
32409
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
+ };
32410
33112
  };
32411
33113
  /**
32412
33114
  * Understanding results in this page, ordered by creation time ascending.
@@ -32514,6 +33216,58 @@ export type AgentManaged193Writable = {
32514
33216
  export type AgentManaged143Writable = {
32515
33217
  [key: string]: string;
32516
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
+ };
32517
33271
  /**
32518
33272
  * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
32519
33273
  */
@@ -32527,7 +33281,7 @@ export type MediaMediaModelsWritable = {
32527
33281
  */
32528
33282
  embedding: string;
32529
33283
  /**
32530
- * Model call ID for speech transcription.
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.
32531
33285
  */
32532
33286
  transcription: string;
32533
33287
  };
@@ -32648,7 +33402,7 @@ export type MediaCloudinaryResourceWritable = {
32648
33402
  */
32649
33403
  url: string;
32650
33404
  /**
32651
- * 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.
32652
33406
  */
32653
33407
  secure_url: string;
32654
33408
  /**
@@ -32671,7 +33425,7 @@ export type MediaChunkCompleteWritable = MediaCloudinaryResourceWritable & {
32671
33425
  done: true;
32672
33426
  };
32673
33427
  /**
32674
- * 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.
32675
33429
  */
32676
33430
  export type MediaProcessingWritable = {
32677
33431
  state: MediaProcessingState;
@@ -32703,7 +33457,7 @@ export type MediaUnderstandingWritable = {
32703
33457
  */
32704
33458
  asset_version: number;
32705
33459
  /**
32706
- * 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.
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.
32707
33461
  */
32708
33462
  kind: MediaUnderstandingKind;
32709
33463
  /**
@@ -32727,7 +33481,7 @@ export type MediaUnderstandingWritable = {
32727
33481
  */
32728
33482
  content: string | null;
32729
33483
  /**
32730
- * 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.
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.
32731
33485
  */
32732
33486
  data: unknown | null;
32733
33487
  /**
@@ -32873,7 +33627,7 @@ export type MediaSearchAssetWritable = {
32873
33627
  */
32874
33628
  url: string;
32875
33629
  /**
32876
- * 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.
32877
33631
  */
32878
33632
  secure_url: string;
32879
33633
  /**
@@ -32956,6 +33710,27 @@ export type MediaSearchAssetWritable = {
32956
33710
  };
32957
33711
  };
32958
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
+ };
32959
33734
  };
32960
33735
  /**
32961
33736
  * A matching asset with its ranking score and supporting matches.
@@ -33201,7 +33976,7 @@ export type ApplyAgentVersionResponses = {
33201
33976
  */
33202
33977
  note: string | null;
33203
33978
  /**
33204
- * 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.
33205
33980
  */
33206
33981
  bindings: Array<{
33207
33982
  /**
@@ -33232,7 +34007,7 @@ export type ApplyAgentVersionResponses = {
33232
34007
  /**
33233
34008
  * Service type. Opens the whole service to codemode; there is no per-resource id.
33234
34009
  */
33235
- type: 'search' | 'browser';
34010
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
33236
34011
  /**
33237
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.
33238
34013
  */
@@ -34418,7 +35193,7 @@ export type UnarchiveAgentResponses = {
34418
35193
  */
34419
35194
  note: string | null;
34420
35195
  /**
34421
- * 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.
34422
35197
  */
34423
35198
  bindings: Array<{
34424
35199
  /**
@@ -34449,7 +35224,7 @@ export type UnarchiveAgentResponses = {
34449
35224
  /**
34450
35225
  * Service type. Opens the whole service to codemode; there is no per-resource id.
34451
35226
  */
34452
- type: 'search' | 'browser';
35227
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
34453
35228
  /**
34454
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.
34455
35230
  */
@@ -45132,31 +45907,29 @@ export type CreateSystemoneResponse = CreateSystemoneResponses[keyof CreateSyste
45132
45907
  export type CreateAudioTranscriptionData = {
45133
45908
  body: {
45134
45909
  /**
45135
- * 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.
45136
45911
  */
45137
45912
  model: string;
45138
45913
  /**
45139
- * 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.
45140
45915
  */
45141
45916
  file: Blob | File;
45142
45917
  /**
45143
- * 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.
45144
45919
  */
45145
45920
  language?: string;
45146
45921
  /**
45147
- * 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.
45148
45923
  */
45149
45924
  prompt?: string;
45150
45925
  /**
45151
- * 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.
45152
45927
  */
45153
- response_format?: 'json' | 'text' | 'verbose_json';
45928
+ response_format?: 'json' | 'text' | 'verbose_json' | 'diarized_json';
45154
45929
  /**
45155
- * 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.
45156
45931
  */
45157
- 'timestamp_granularities[]'?: [
45158
- 'segment'
45159
- ];
45932
+ 'timestamp_granularities[]'?: Array<'word' | 'segment'>;
45160
45933
  /**
45161
45934
  * Both whisper-large-v3-turbo and qwen3-asr-flash return 400.
45162
45935
  */
@@ -45168,11 +45941,11 @@ export type CreateAudioTranscriptionData = {
45168
45941
  };
45169
45942
  export type CreateAudioTranscriptionErrors = {
45170
45943
  /**
45171
- * Unsupported or unrepresentable parameter.
45944
+ * A field
45172
45945
  */
45173
45946
  400: unknown;
45174
45947
  /**
45175
- * No eligible model route.
45948
+ * No provider route supports this request; select an available model and its declared transcription features.
45176
45949
  */
45177
45950
  503: unknown;
45178
45951
  };
@@ -45182,58 +45955,79 @@ export type CreateAudioTranscriptionResponses = {
45182
45955
  */
45183
45956
  200: {
45184
45957
  /**
45185
- * The transcribed text.
45958
+ * Recognized speech text in the original language.
45186
45959
  */
45187
45960
  text: string;
45188
45961
  /**
45189
- * Task performed; always `transcribe`.
45962
+ * transcribe identifies speech-to-text transcription.
45190
45963
  */
45191
45964
  task?: 'transcribe';
45192
45965
  /**
45193
- * Language of the audio as detected or as requested.
45966
+ * Detected or requested source language code.
45194
45967
  */
45195
45968
  language?: string;
45196
45969
  /**
45197
- * Duration of the audio in seconds.
45970
+ * Audio duration in seconds when provided by the model.
45198
45971
  */
45199
45972
  duration?: number;
45200
45973
  /**
45201
- * 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.
45202
45975
  */
45203
45976
  segments?: Array<{
45204
45977
  /**
45205
- * Zero-based index of the segment.
45978
+ * Segment identifier within this transcription response.
45206
45979
  */
45207
45980
  id: number;
45208
45981
  /**
45209
- * Start time of the segment in seconds.
45982
+ * Inclusive start time in seconds from the beginning of the audio.
45210
45983
  */
45211
45984
  start: number;
45212
45985
  /**
45213
- * End time of the segment in seconds.
45986
+ * Exclusive end time in seconds from the beginning of the audio.
45214
45987
  */
45215
45988
  end: number;
45216
45989
  /**
45217
- * The transcribed text.
45990
+ * Recognized speech text in the original language.
45218
45991
  */
45219
45992
  text: string;
45220
45993
  /**
45221
- * 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.
45222
45999
  */
45223
46000
  temperature?: number;
45224
46001
  /**
45225
- * Average log probability of the tokens of the segment; low values mean low confidence.
46002
+ * Average segment token log probability when provided.
45226
46003
  */
45227
46004
  avg_logprob?: number;
45228
46005
  /**
45229
- * Gzip compression ratio of the segment text; high values indicate repetitive output.
46006
+ * Text compression ratio reported for this segment.
45230
46007
  */
45231
46008
  compression_ratio?: number;
45232
46009
  /**
45233
- * Probability that the segment contains no speech.
46010
+ * Probability of no speech reported for this segment.
45234
46011
  */
45235
46012
  no_speech_prob?: number;
45236
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
+ }>;
45237
46031
  };
45238
46032
  };
45239
46033
  export type CreateAudioTranscriptionResponse = CreateAudioTranscriptionResponses[keyof CreateAudioTranscriptionResponses];
@@ -50973,7 +51767,7 @@ export type AgentsListResponses = {
50973
51767
  */
50974
51768
  note: string | null;
50975
51769
  /**
50976
- * 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.
50977
51771
  */
50978
51772
  bindings: Array<{
50979
51773
  /**
@@ -51004,7 +51798,7 @@ export type AgentsListResponses = {
51004
51798
  /**
51005
51799
  * Service type. Opens the whole service to codemode; there is no per-resource id.
51006
51800
  */
51007
- type: 'search' | 'browser';
51801
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
51008
51802
  /**
51009
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.
51010
51804
  */
@@ -51512,7 +52306,7 @@ export type AgentsCreateData = {
51512
52306
  */
51513
52307
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
51514
52308
  /**
51515
- * 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.
51516
52310
  */
51517
52311
  bindings?: Array<{
51518
52312
  /**
@@ -51543,7 +52337,7 @@ export type AgentsCreateData = {
51543
52337
  /**
51544
52338
  * Service type. Opens the whole service to codemode; there is no per-resource id.
51545
52339
  */
51546
- type: 'search' | 'browser';
52340
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
51547
52341
  /**
51548
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.
51549
52343
  */
@@ -52113,7 +52907,7 @@ export type AgentsCreateResponses = {
52113
52907
  */
52114
52908
  note: string | null;
52115
52909
  /**
52116
- * 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.
52117
52911
  */
52118
52912
  bindings: Array<{
52119
52913
  /**
@@ -52144,7 +52938,7 @@ export type AgentsCreateResponses = {
52144
52938
  /**
52145
52939
  * Service type. Opens the whole service to codemode; there is no per-resource id.
52146
52940
  */
52147
- type: 'search' | 'browser';
52941
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
52148
52942
  /**
52149
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.
52150
52944
  */
@@ -52741,7 +53535,7 @@ export type AgentsRetrieveResponses = {
52741
53535
  */
52742
53536
  note: string | null;
52743
53537
  /**
52744
- * 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.
52745
53539
  */
52746
53540
  bindings: Array<{
52747
53541
  /**
@@ -52772,7 +53566,7 @@ export type AgentsRetrieveResponses = {
52772
53566
  /**
52773
53567
  * Service type. Opens the whole service to codemode; there is no per-resource id.
52774
53568
  */
52775
- type: 'search' | 'browser';
53569
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
52776
53570
  /**
52777
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.
52778
53572
  */
@@ -53320,7 +54114,7 @@ export type AgentsUpdateData = {
53320
54114
  /**
53321
54115
  * Service type. Opens the whole service to codemode; there is no per-resource id.
53322
54116
  */
53323
- type: 'search' | 'browser';
54117
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
53324
54118
  /**
53325
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.
53326
54120
  */
@@ -53903,7 +54697,7 @@ export type AgentsUpdateResponses = {
53903
54697
  */
53904
54698
  note: string | null;
53905
54699
  /**
53906
- * 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.
53907
54701
  */
53908
54702
  bindings: Array<{
53909
54703
  /**
@@ -53934,7 +54728,7 @@ export type AgentsUpdateResponses = {
53934
54728
  /**
53935
54729
  * Service type. Opens the whole service to codemode; there is no per-resource id.
53936
54730
  */
53937
- type: 'search' | 'browser';
54731
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
53938
54732
  /**
53939
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.
53940
54734
  */
@@ -54517,7 +55311,7 @@ export type AgentsArchiveResponses = {
54517
55311
  */
54518
55312
  note: string | null;
54519
55313
  /**
54520
- * 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.
54521
55315
  */
54522
55316
  bindings: Array<{
54523
55317
  /**
@@ -54548,7 +55342,7 @@ export type AgentsArchiveResponses = {
54548
55342
  /**
54549
55343
  * Service type. Opens the whole service to codemode; there is no per-resource id.
54550
55344
  */
54551
- type: 'search' | 'browser';
55345
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
54552
55346
  /**
54553
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.
54554
55348
  */
@@ -55149,7 +55943,7 @@ export type AgentsVersionsListResponses = {
55149
55943
  */
55150
55944
  note: string | null;
55151
55945
  /**
55152
- * 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.
55153
55947
  */
55154
55948
  bindings: Array<{
55155
55949
  /**
@@ -55180,7 +55974,7 @@ export type AgentsVersionsListResponses = {
55180
55974
  /**
55181
55975
  * Service type. Opens the whole service to codemode; there is no per-resource id.
55182
55976
  */
55183
- type: 'search' | 'browser';
55977
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
55184
55978
  /**
55185
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.
55186
55980
  */
@@ -68941,7 +69735,7 @@ export type CutExecuteData = {
68941
69735
  };
68942
69736
  export type CutExecuteErrors = {
68943
69737
  /**
68944
- * 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.
68945
69739
  */
68946
69740
  400: CutCutError;
68947
69741
  /**
@@ -69106,7 +69900,7 @@ export type CutListFramesData = {
69106
69900
  */
69107
69901
  at: string;
69108
69902
  /**
69109
- * 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.
69110
69904
  */
69111
69905
  scale?: number;
69112
69906
  /**
@@ -69448,7 +70242,7 @@ export type CutListExportsResponses = {
69448
70242
  export type CutListExportsResponse = CutListExportsResponses[keyof CutListExportsResponses];
69449
70243
  export type CutCreateExportData = {
69450
70244
  /**
69451
- * 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.
69452
70246
  */
69453
70247
  body: CutExportInput;
69454
70248
  path: {
@@ -71260,7 +72054,7 @@ export type KnowledgeListFilesResponses = {
71260
72054
  };
71261
72055
  export type KnowledgeListFilesResponse = KnowledgeListFilesResponses[keyof KnowledgeListFilesResponses];
71262
72056
  export type KnowledgeAttachFileData = {
71263
- body: KnowledgeAttachFile;
72057
+ body: KnowledgeNativeAttachFile;
71264
72058
  path: {
71265
72059
  /**
71266
72060
  * Resource ID.
@@ -71561,7 +72355,7 @@ export type KnowledgeRetrieveFileContentResponses = {
71561
72355
  };
71562
72356
  export type KnowledgeRetrieveFileContentResponse = KnowledgeRetrieveFileContentResponses[keyof KnowledgeRetrieveFileContentResponses];
71563
72357
  export type KnowledgeCreateFileBatchData = {
71564
- body: KnowledgeCreateBatch;
72358
+ body: KnowledgeNativeCreateBatch;
71565
72359
  path: {
71566
72360
  /**
71567
72361
  * Resource ID.
@@ -72249,6 +73043,10 @@ export type MediaListLibrariesErrors = {
72249
73043
  * Request failed; see the error code reference.
72250
73044
  */
72251
73045
  415: MediaMediaError;
73046
+ /**
73047
+ * Request failed; see the error code reference.
73048
+ */
73049
+ 422: MediaMediaError;
72252
73050
  /**
72253
73051
  * Request failed; see the error code reference.
72254
73052
  */
@@ -72343,125 +73141,7 @@ export type MediaCreateLibraryErrors = {
72343
73141
  /**
72344
73142
  * Request failed; see the error code reference.
72345
73143
  */
72346
- 429: MediaMediaError;
72347
- /**
72348
- * Request failed; see the error code reference.
72349
- */
72350
- 501: MediaMediaError;
72351
- /**
72352
- * Request failed; see the error code reference.
72353
- */
72354
- 502: MediaMediaError;
72355
- /**
72356
- * Request failed; see the error code reference.
72357
- */
72358
- 503: MediaMediaError;
72359
- };
72360
- export type MediaCreateLibraryError = MediaCreateLibraryErrors[keyof MediaCreateLibraryErrors];
72361
- export type MediaCreateLibraryResponses = {
72362
- /**
72363
- * Successful response.
72364
- */
72365
- 200: MediaLibrary;
72366
- };
72367
- export type MediaCreateLibraryResponse = MediaCreateLibraryResponses[keyof MediaCreateLibraryResponses];
72368
- export type MediaDeleteLibraryData = {
72369
- body?: never;
72370
- path: {
72371
- /**
72372
- * Library ID returned by creation.
72373
- */
72374
- library_id: string;
72375
- };
72376
- query?: never;
72377
- url: '/media/v1/libraries/{library_id}';
72378
- };
72379
- export type MediaDeleteLibraryErrors = {
72380
- /**
72381
- * Request failed; see the error code reference.
72382
- */
72383
- 400: MediaMediaError;
72384
- /**
72385
- * Request failed; see the error code reference.
72386
- */
72387
- 403: MediaMediaError;
72388
- /**
72389
- * Request failed; see the error code reference.
72390
- */
72391
- 404: MediaMediaError;
72392
- /**
72393
- * Request failed; see the error code reference.
72394
- */
72395
- 409: MediaMediaError;
72396
- /**
72397
- * Request failed; see the error code reference.
72398
- */
72399
- 413: MediaMediaError;
72400
- /**
72401
- * Request failed; see the error code reference.
72402
- */
72403
- 415: MediaMediaError;
72404
- /**
72405
- * Request failed; see the error code reference.
72406
- */
72407
- 429: MediaMediaError;
72408
- /**
72409
- * Request failed; see the error code reference.
72410
- */
72411
- 501: MediaMediaError;
72412
- /**
72413
- * Request failed; see the error code reference.
72414
- */
72415
- 502: MediaMediaError;
72416
- /**
72417
- * Request failed; see the error code reference.
72418
- */
72419
- 503: MediaMediaError;
72420
- };
72421
- export type MediaDeleteLibraryError = MediaDeleteLibraryErrors[keyof MediaDeleteLibraryErrors];
72422
- export type MediaDeleteLibraryResponses = {
72423
- /**
72424
- * Successful response.
72425
- */
72426
- 200: MediaLibrary;
72427
- };
72428
- export type MediaDeleteLibraryResponse = MediaDeleteLibraryResponses[keyof MediaDeleteLibraryResponses];
72429
- export type MediaGetLibraryData = {
72430
- body?: never;
72431
- path: {
72432
- /**
72433
- * Library ID returned by creation.
72434
- */
72435
- library_id: string;
72436
- };
72437
- query?: never;
72438
- url: '/media/v1/libraries/{library_id}';
72439
- };
72440
- export type MediaGetLibraryErrors = {
72441
- /**
72442
- * Request failed; see the error code reference.
72443
- */
72444
- 400: MediaMediaError;
72445
- /**
72446
- * Request failed; see the error code reference.
72447
- */
72448
- 403: MediaMediaError;
72449
- /**
72450
- * Request failed; see the error code reference.
72451
- */
72452
- 404: MediaMediaError;
72453
- /**
72454
- * Request failed; see the error code reference.
72455
- */
72456
- 409: MediaMediaError;
72457
- /**
72458
- * Request failed; see the error code reference.
72459
- */
72460
- 413: MediaMediaError;
72461
- /**
72462
- * Request failed; see the error code reference.
72463
- */
72464
- 415: MediaMediaError;
73144
+ 422: MediaMediaError;
72465
73145
  /**
72466
73146
  * Request failed; see the error code reference.
72467
73147
  */
@@ -72479,136 +73159,49 @@ export type MediaGetLibraryErrors = {
72479
73159
  */
72480
73160
  503: MediaMediaError;
72481
73161
  };
72482
- export type MediaGetLibraryError = MediaGetLibraryErrors[keyof MediaGetLibraryErrors];
72483
- export type MediaGetLibraryResponses = {
73162
+ export type MediaCreateLibraryError = MediaCreateLibraryErrors[keyof MediaCreateLibraryErrors];
73163
+ export type MediaCreateLibraryResponses = {
72484
73164
  /**
72485
73165
  * Successful response.
72486
73166
  */
72487
73167
  200: MediaLibrary;
72488
73168
  };
72489
- export type MediaGetLibraryResponse = MediaGetLibraryResponses[keyof MediaGetLibraryResponses];
72490
- export type MediaUpdateLibraryData = {
72491
- /**
72492
- * Partial update of an active media library.
72493
- */
73169
+ export type MediaCreateLibraryResponse = MediaCreateLibraryResponses[keyof MediaCreateLibraryResponses];
73170
+ export type MediaCreateFrameUrlsData = {
72494
73171
  body: {
72495
73172
  /**
72496
- * 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.
72497
- */
72498
- hotwords?: Array<string>;
72499
- /**
72500
- * 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.
72501
- */
72502
- models?: MediaMediaModelsInput;
72503
- /**
72504
- * Library display name. Must contain a non-whitespace character and be at most 64 UTF-16 code units; duplicates are allowed.
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.
72505
73174
  */
72506
- name?: string;
73175
+ at_micros: Array<number>;
72507
73176
  /**
72508
- * Replacement string-label map; omit to preserve existing labels, or use an empty object to clear them.
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.
72509
73178
  */
72510
- labels?: {
72511
- [key: string]: string;
72512
- };
72513
- /**
72514
- * Partial understanding-settings update; omitted settings are preserved and existing results remain unchanged.
72515
- */
72516
- understanding?: {
72517
- /**
72518
- * Enable captions, tags and OCR for images and video frames.
72519
- */
72520
- visual?: boolean;
72521
- /**
72522
- * Enable speech transcription for audio and video soundtracks.
72523
- */
72524
- transcript?: boolean;
72525
- /**
72526
- * Enable generation of vectors for semantic search.
72527
- */
72528
- embedding?: boolean;
72529
- };
73179
+ width?: 160 | 320 | 640;
72530
73180
  };
72531
73181
  path: {
72532
73182
  /**
72533
- * Library ID returned by creation.
73183
+ * Library identifier returned by library creation or listing; must be accessible to the current credential.
72534
73184
  */
72535
73185
  library_id: string;
72536
- };
72537
- query?: never;
72538
- url: '/media/v1/libraries/{library_id}';
72539
- };
72540
- export type MediaUpdateLibraryErrors = {
72541
- /**
72542
- * Request failed; see the error code reference.
72543
- */
72544
- 400: MediaMediaError;
72545
- /**
72546
- * Request failed; see the error code reference.
72547
- */
72548
- 403: MediaMediaError;
72549
- /**
72550
- * Request failed; see the error code reference.
72551
- */
72552
- 404: MediaMediaError;
72553
- /**
72554
- * Request failed; see the error code reference.
72555
- */
72556
- 409: MediaMediaError;
72557
- /**
72558
- * Request failed; see the error code reference.
72559
- */
72560
- 413: MediaMediaError;
72561
- /**
72562
- * Request failed; see the error code reference.
72563
- */
72564
- 415: MediaMediaError;
72565
- /**
72566
- * Request failed; see the error code reference.
72567
- */
72568
- 429: MediaMediaError;
72569
- /**
72570
- * Request failed; see the error code reference.
72571
- */
72572
- 501: MediaMediaError;
72573
- /**
72574
- * Request failed; see the error code reference.
72575
- */
72576
- 502: MediaMediaError;
72577
- /**
72578
- * Request failed; see the error code reference.
72579
- */
72580
- 503: MediaMediaError;
72581
- };
72582
- export type MediaUpdateLibraryError = MediaUpdateLibraryErrors[keyof MediaUpdateLibraryErrors];
72583
- export type MediaUpdateLibraryResponses = {
72584
- /**
72585
- * Successful response.
72586
- */
72587
- 200: MediaLibrary;
72588
- };
72589
- export type MediaUpdateLibraryResponse = MediaUpdateLibraryResponses[keyof MediaUpdateLibraryResponses];
72590
- export type MediaRestoreLibraryData = {
72591
- body?: never;
72592
- path: {
72593
73186
  /**
72594
- * Library ID returned by creation.
73187
+ * Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps.
72595
73188
  */
72596
- library_id: string;
73189
+ asset_id: string;
72597
73190
  };
72598
73191
  query?: never;
72599
- url: '/media/v1/libraries/{library_id}/restore';
73192
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/frames';
72600
73193
  };
72601
- export type MediaRestoreLibraryErrors = {
73194
+ export type MediaCreateFrameUrlsErrors = {
72602
73195
  /**
72603
- * Request failed; see the error code reference.
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.
72604
73197
  */
72605
73198
  400: MediaMediaError;
72606
73199
  /**
72607
- * Request failed; see the error code reference.
73200
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
72608
73201
  */
72609
73202
  403: MediaMediaError;
72610
73203
  /**
72611
- * Request failed; see the error code reference.
73204
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
72612
73205
  */
72613
73206
  404: MediaMediaError;
72614
73207
  /**
@@ -72616,19 +73209,23 @@ export type MediaRestoreLibraryErrors = {
72616
73209
  */
72617
73210
  409: MediaMediaError;
72618
73211
  /**
72619
- * Request failed; see the error code reference.
73212
+ * The file exceeds an input limit; provide a smaller source file.
72620
73213
  */
72621
73214
  413: MediaMediaError;
72622
73215
  /**
72623
- * Request failed; see the error code reference.
73216
+ * This media format is unsupported; provide a supported format.
72624
73217
  */
72625
73218
  415: MediaMediaError;
72626
73219
  /**
72627
73220
  * Request failed; see the error code reference.
72628
73221
  */
73222
+ 422: MediaMediaError;
73223
+ /**
73224
+ * A rate limit was reached; wait before retrying.
73225
+ */
72629
73226
  429: MediaMediaError;
72630
73227
  /**
72631
- * Request failed; see the error code reference.
73228
+ * The requested operation is unsupported; choose a supported method.
72632
73229
  */
72633
73230
  501: MediaMediaError;
72634
73231
  /**
@@ -72636,19 +73233,19 @@ export type MediaRestoreLibraryErrors = {
72636
73233
  */
72637
73234
  502: MediaMediaError;
72638
73235
  /**
72639
- * Request failed; see the error code reference.
73236
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
72640
73237
  */
72641
73238
  503: MediaMediaError;
72642
73239
  };
72643
- export type MediaRestoreLibraryError = MediaRestoreLibraryErrors[keyof MediaRestoreLibraryErrors];
72644
- export type MediaRestoreLibraryResponses = {
73240
+ export type MediaCreateFrameUrlsError = MediaCreateFrameUrlsErrors[keyof MediaCreateFrameUrlsErrors];
73241
+ export type MediaCreateFrameUrlsResponses = {
72645
73242
  /**
72646
73243
  * Successful response.
72647
73244
  */
72648
- 200: MediaLibrary;
73245
+ 200: MediaFrameUrls;
72649
73246
  };
72650
- export type MediaRestoreLibraryResponse = MediaRestoreLibraryResponses[keyof MediaRestoreLibraryResponses];
72651
- export type MediaPurgeLibraryData = {
73247
+ export type MediaCreateFrameUrlsResponse = MediaCreateFrameUrlsResponses[keyof MediaCreateFrameUrlsResponses];
73248
+ export type MediaDeleteLibraryData = {
72652
73249
  body?: never;
72653
73250
  path: {
72654
73251
  /**
@@ -72657,9 +73254,9 @@ export type MediaPurgeLibraryData = {
72657
73254
  library_id: string;
72658
73255
  };
72659
73256
  query?: never;
72660
- url: '/media/v1/libraries/{library_id}/purge';
73257
+ url: '/media/v1/libraries/{library_id}';
72661
73258
  };
72662
- export type MediaPurgeLibraryErrors = {
73259
+ export type MediaDeleteLibraryErrors = {
72663
73260
  /**
72664
73261
  * Request failed; see the error code reference.
72665
73262
  */
@@ -72684,6 +73281,309 @@ export type MediaPurgeLibraryErrors = {
72684
73281
  * Request failed; see the error code reference.
72685
73282
  */
72686
73283
  415: MediaMediaError;
73284
+ /**
73285
+ * Request failed; see the error code reference.
73286
+ */
73287
+ 422: MediaMediaError;
73288
+ /**
73289
+ * Request failed; see the error code reference.
73290
+ */
73291
+ 429: MediaMediaError;
73292
+ /**
73293
+ * Request failed; see the error code reference.
73294
+ */
73295
+ 501: MediaMediaError;
73296
+ /**
73297
+ * Request failed; see the error code reference.
73298
+ */
73299
+ 502: MediaMediaError;
73300
+ /**
73301
+ * Request failed; see the error code reference.
73302
+ */
73303
+ 503: MediaMediaError;
73304
+ };
73305
+ export type MediaDeleteLibraryError = MediaDeleteLibraryErrors[keyof MediaDeleteLibraryErrors];
73306
+ export type MediaDeleteLibraryResponses = {
73307
+ /**
73308
+ * Successful response.
73309
+ */
73310
+ 200: MediaLibrary;
73311
+ };
73312
+ export type MediaDeleteLibraryResponse = MediaDeleteLibraryResponses[keyof MediaDeleteLibraryResponses];
73313
+ export type MediaGetLibraryData = {
73314
+ body?: never;
73315
+ path: {
73316
+ /**
73317
+ * Library ID returned by creation.
73318
+ */
73319
+ library_id: string;
73320
+ };
73321
+ query?: never;
73322
+ url: '/media/v1/libraries/{library_id}';
73323
+ };
73324
+ export type MediaGetLibraryErrors = {
73325
+ /**
73326
+ * Request failed; see the error code reference.
73327
+ */
73328
+ 400: MediaMediaError;
73329
+ /**
73330
+ * Request failed; see the error code reference.
73331
+ */
73332
+ 403: MediaMediaError;
73333
+ /**
73334
+ * Request failed; see the error code reference.
73335
+ */
73336
+ 404: MediaMediaError;
73337
+ /**
73338
+ * Request failed; see the error code reference.
73339
+ */
73340
+ 409: MediaMediaError;
73341
+ /**
73342
+ * Request failed; see the error code reference.
73343
+ */
73344
+ 413: MediaMediaError;
73345
+ /**
73346
+ * Request failed; see the error code reference.
73347
+ */
73348
+ 415: MediaMediaError;
73349
+ /**
73350
+ * Request failed; see the error code reference.
73351
+ */
73352
+ 422: MediaMediaError;
73353
+ /**
73354
+ * Request failed; see the error code reference.
73355
+ */
73356
+ 429: MediaMediaError;
73357
+ /**
73358
+ * Request failed; see the error code reference.
73359
+ */
73360
+ 501: MediaMediaError;
73361
+ /**
73362
+ * Request failed; see the error code reference.
73363
+ */
73364
+ 502: MediaMediaError;
73365
+ /**
73366
+ * Request failed; see the error code reference.
73367
+ */
73368
+ 503: MediaMediaError;
73369
+ };
73370
+ export type MediaGetLibraryError = MediaGetLibraryErrors[keyof MediaGetLibraryErrors];
73371
+ export type MediaGetLibraryResponses = {
73372
+ /**
73373
+ * Successful response.
73374
+ */
73375
+ 200: MediaLibrary;
73376
+ };
73377
+ export type MediaGetLibraryResponse = MediaGetLibraryResponses[keyof MediaGetLibraryResponses];
73378
+ export type MediaUpdateLibraryData = {
73379
+ /**
73380
+ * Partial update of an active media library.
73381
+ */
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>;
73387
+ /**
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.
73389
+ */
73390
+ models?: MediaMediaModelsInput;
73391
+ /**
73392
+ * Library display name. Must contain a non-whitespace character and be at most 64 UTF-16 code units; duplicates are allowed.
73393
+ */
73394
+ name?: string;
73395
+ /**
73396
+ * Replacement string-label map; omit to preserve existing labels, or use an empty object to clear them.
73397
+ */
73398
+ labels?: {
73399
+ [key: string]: string;
73400
+ };
73401
+ /**
73402
+ * Partial understanding-settings update; omitted settings are preserved and existing results remain unchanged.
73403
+ */
73404
+ understanding?: {
73405
+ /**
73406
+ * Enable captions, tags and OCR for images and video frames.
73407
+ */
73408
+ visual?: boolean;
73409
+ /**
73410
+ * Enable speech transcription for audio and video soundtracks.
73411
+ */
73412
+ transcript?: boolean;
73413
+ /**
73414
+ * Enable generation of vectors for semantic search.
73415
+ */
73416
+ embedding?: boolean;
73417
+ };
73418
+ };
73419
+ path: {
73420
+ /**
73421
+ * Library ID returned by creation.
73422
+ */
73423
+ library_id: string;
73424
+ };
73425
+ query?: never;
73426
+ url: '/media/v1/libraries/{library_id}';
73427
+ };
73428
+ export type MediaUpdateLibraryErrors = {
73429
+ /**
73430
+ * Request failed; see the error code reference.
73431
+ */
73432
+ 400: MediaMediaError;
73433
+ /**
73434
+ * Request failed; see the error code reference.
73435
+ */
73436
+ 403: MediaMediaError;
73437
+ /**
73438
+ * Request failed; see the error code reference.
73439
+ */
73440
+ 404: MediaMediaError;
73441
+ /**
73442
+ * Request failed; see the error code reference.
73443
+ */
73444
+ 409: MediaMediaError;
73445
+ /**
73446
+ * Request failed; see the error code reference.
73447
+ */
73448
+ 413: MediaMediaError;
73449
+ /**
73450
+ * Request failed; see the error code reference.
73451
+ */
73452
+ 415: MediaMediaError;
73453
+ /**
73454
+ * Request failed; see the error code reference.
73455
+ */
73456
+ 422: MediaMediaError;
73457
+ /**
73458
+ * Request failed; see the error code reference.
73459
+ */
73460
+ 429: MediaMediaError;
73461
+ /**
73462
+ * Request failed; see the error code reference.
73463
+ */
73464
+ 501: MediaMediaError;
73465
+ /**
73466
+ * Request failed; see the error code reference.
73467
+ */
73468
+ 502: MediaMediaError;
73469
+ /**
73470
+ * Request failed; see the error code reference.
73471
+ */
73472
+ 503: MediaMediaError;
73473
+ };
73474
+ export type MediaUpdateLibraryError = MediaUpdateLibraryErrors[keyof MediaUpdateLibraryErrors];
73475
+ export type MediaUpdateLibraryResponses = {
73476
+ /**
73477
+ * Successful response.
73478
+ */
73479
+ 200: MediaLibrary;
73480
+ };
73481
+ export type MediaUpdateLibraryResponse = MediaUpdateLibraryResponses[keyof MediaUpdateLibraryResponses];
73482
+ export type MediaRestoreLibraryData = {
73483
+ body?: never;
73484
+ path: {
73485
+ /**
73486
+ * Library ID returned by creation.
73487
+ */
73488
+ library_id: string;
73489
+ };
73490
+ query?: never;
73491
+ url: '/media/v1/libraries/{library_id}/restore';
73492
+ };
73493
+ export type MediaRestoreLibraryErrors = {
73494
+ /**
73495
+ * Request failed; see the error code reference.
73496
+ */
73497
+ 400: MediaMediaError;
73498
+ /**
73499
+ * Request failed; see the error code reference.
73500
+ */
73501
+ 403: MediaMediaError;
73502
+ /**
73503
+ * Request failed; see the error code reference.
73504
+ */
73505
+ 404: MediaMediaError;
73506
+ /**
73507
+ * Request failed; see the error code reference.
73508
+ */
73509
+ 409: MediaMediaError;
73510
+ /**
73511
+ * Request failed; see the error code reference.
73512
+ */
73513
+ 413: MediaMediaError;
73514
+ /**
73515
+ * Request failed; see the error code reference.
73516
+ */
73517
+ 415: MediaMediaError;
73518
+ /**
73519
+ * Request failed; see the error code reference.
73520
+ */
73521
+ 422: MediaMediaError;
73522
+ /**
73523
+ * Request failed; see the error code reference.
73524
+ */
73525
+ 429: MediaMediaError;
73526
+ /**
73527
+ * Request failed; see the error code reference.
73528
+ */
73529
+ 501: MediaMediaError;
73530
+ /**
73531
+ * Request failed; see the error code reference.
73532
+ */
73533
+ 502: MediaMediaError;
73534
+ /**
73535
+ * Request failed; see the error code reference.
73536
+ */
73537
+ 503: MediaMediaError;
73538
+ };
73539
+ export type MediaRestoreLibraryError = MediaRestoreLibraryErrors[keyof MediaRestoreLibraryErrors];
73540
+ export type MediaRestoreLibraryResponses = {
73541
+ /**
73542
+ * Successful response.
73543
+ */
73544
+ 200: MediaLibrary;
73545
+ };
73546
+ export type MediaRestoreLibraryResponse = MediaRestoreLibraryResponses[keyof MediaRestoreLibraryResponses];
73547
+ export type MediaPurgeLibraryData = {
73548
+ body?: never;
73549
+ path: {
73550
+ /**
73551
+ * Library ID returned by creation.
73552
+ */
73553
+ library_id: string;
73554
+ };
73555
+ query?: never;
73556
+ url: '/media/v1/libraries/{library_id}/purge';
73557
+ };
73558
+ export type MediaPurgeLibraryErrors = {
73559
+ /**
73560
+ * Request failed; see the error code reference.
73561
+ */
73562
+ 400: MediaMediaError;
73563
+ /**
73564
+ * Request failed; see the error code reference.
73565
+ */
73566
+ 403: MediaMediaError;
73567
+ /**
73568
+ * Request failed; see the error code reference.
73569
+ */
73570
+ 404: MediaMediaError;
73571
+ /**
73572
+ * Request failed; see the error code reference.
73573
+ */
73574
+ 409: MediaMediaError;
73575
+ /**
73576
+ * Request failed; see the error code reference.
73577
+ */
73578
+ 413: MediaMediaError;
73579
+ /**
73580
+ * Request failed; see the error code reference.
73581
+ */
73582
+ 415: MediaMediaError;
73583
+ /**
73584
+ * Request failed; see the error code reference.
73585
+ */
73586
+ 422: MediaMediaError;
72687
73587
  /**
72688
73588
  * Request failed; see the error code reference.
72689
73589
  */
@@ -72762,6 +73662,10 @@ export type MediaListAssetsErrors = {
72762
73662
  * Request failed; see the error code reference.
72763
73663
  */
72764
73664
  415: MediaMediaError;
73665
+ /**
73666
+ * Request failed; see the error code reference.
73667
+ */
73668
+ 422: MediaMediaError;
72765
73669
  /**
72766
73670
  * Request failed; see the error code reference.
72767
73671
  */
@@ -72809,7 +73713,7 @@ export type MediaUploadAssetData = {
72809
73713
  */
72810
73714
  display_name?: string;
72811
73715
  /**
72812
- * 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.
72813
73717
  */
72814
73718
  asset_folder?: string;
72815
73719
  /**
@@ -72851,7 +73755,7 @@ export type MediaUploadAssetData = {
72851
73755
  */
72852
73756
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
72853
73757
  /**
72854
- * 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.
72855
73759
  */
72856
73760
  type?: MediaDeliveryType;
72857
73761
  };
@@ -72899,6 +73803,10 @@ export type MediaUploadAssetErrors = {
72899
73803
  * Request failed; see the error code reference.
72900
73804
  */
72901
73805
  415: MediaMediaError;
73806
+ /**
73807
+ * Request failed; see the error code reference.
73808
+ */
73809
+ 422: MediaMediaError;
72902
73810
  /**
72903
73811
  * Request failed; see the error code reference.
72904
73812
  */
@@ -72930,7 +73838,7 @@ export type MediaImportAssetData = {
72930
73838
  */
72931
73839
  body: {
72932
73840
  /**
72933
- * 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.
72934
73842
  */
72935
73843
  file_id: string;
72936
73844
  /**
@@ -72946,7 +73854,7 @@ export type MediaImportAssetData = {
72946
73854
  */
72947
73855
  display_name?: string;
72948
73856
  /**
72949
- * 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.
72950
73858
  */
72951
73859
  asset_folder?: string;
72952
73860
  /**
@@ -72988,7 +73896,7 @@ export type MediaImportAssetData = {
72988
73896
  */
72989
73897
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
72990
73898
  /**
72991
- * 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.
72992
73900
  */
72993
73901
  type?: MediaDeliveryType;
72994
73902
  };
@@ -73026,6 +73934,10 @@ export type MediaImportAssetErrors = {
73026
73934
  * Request failed; see the error code reference.
73027
73935
  */
73028
73936
  415: MediaMediaError;
73937
+ /**
73938
+ * Request failed; see the error code reference.
73939
+ */
73940
+ 422: MediaMediaError;
73029
73941
  /**
73030
73942
  * Request failed; see the error code reference.
73031
73943
  */
@@ -73091,6 +74003,10 @@ export type MediaDeleteAssetErrors = {
73091
74003
  * Request failed; see the error code reference.
73092
74004
  */
73093
74005
  415: MediaMediaError;
74006
+ /**
74007
+ * Request failed; see the error code reference.
74008
+ */
74009
+ 422: MediaMediaError;
73094
74010
  /**
73095
74011
  * Request failed; see the error code reference.
73096
74012
  */
@@ -73156,6 +74072,10 @@ export type MediaGetAssetErrors = {
73156
74072
  * Request failed; see the error code reference.
73157
74073
  */
73158
74074
  415: MediaMediaError;
74075
+ /**
74076
+ * Request failed; see the error code reference.
74077
+ */
74078
+ 422: MediaMediaError;
73159
74079
  /**
73160
74080
  * Request failed; see the error code reference.
73161
74081
  */
@@ -73191,7 +74111,7 @@ export type MediaUpdateAssetData = {
73191
74111
  */
73192
74112
  display_name?: string;
73193
74113
  /**
73194
- * 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.
73195
74115
  */
73196
74116
  asset_folder?: string;
73197
74117
  /**
@@ -73243,6 +74163,10 @@ export type MediaUpdateAssetErrors = {
73243
74163
  * Request failed; see the error code reference.
73244
74164
  */
73245
74165
  415: MediaMediaError;
74166
+ /**
74167
+ * Request failed; see the error code reference.
74168
+ */
74169
+ 422: MediaMediaError;
73246
74170
  /**
73247
74171
  * Request failed; see the error code reference.
73248
74172
  */
@@ -73274,7 +74198,7 @@ export type MediaReprocessAssetData = {
73274
74198
  */
73275
74199
  body: {
73276
74200
  /**
73277
- * 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.
73278
74202
  */
73279
74203
  kinds?: Array<MediaProcessingKind>;
73280
74204
  };
@@ -73316,6 +74240,10 @@ export type MediaReprocessAssetErrors = {
73316
74240
  * Request failed; see the error code reference.
73317
74241
  */
73318
74242
  415: MediaMediaError;
74243
+ /**
74244
+ * Request failed; see the error code reference.
74245
+ */
74246
+ 422: MediaMediaError;
73319
74247
  /**
73320
74248
  * Request failed; see the error code reference.
73321
74249
  */
@@ -73359,9 +74287,9 @@ export type MediaListUnderstandingsData = {
73359
74287
  */
73360
74288
  include_superseded?: boolean;
73361
74289
  /**
73362
- * 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.
73363
74291
  */
73364
- kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
74292
+ kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
73365
74293
  /**
73366
74294
  * Cursor from the previous next_cursor.
73367
74295
  */
@@ -73398,6 +74326,10 @@ export type MediaListUnderstandingsErrors = {
73398
74326
  * Request failed; see the error code reference.
73399
74327
  */
73400
74328
  415: MediaMediaError;
74329
+ /**
74330
+ * Request failed; see the error code reference.
74331
+ */
74332
+ 422: MediaMediaError;
73401
74333
  /**
73402
74334
  * Request failed; see the error code reference.
73403
74335
  */
@@ -73429,7 +74361,7 @@ export type MediaExpressionSearchData = {
73429
74361
  */
73430
74362
  body: {
73431
74363
  /**
73432
- * 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.
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.
73433
74365
  */
73434
74366
  expression?: string;
73435
74367
  /**
@@ -73489,6 +74421,10 @@ export type MediaExpressionSearchErrors = {
73489
74421
  * Request failed; see the error code reference.
73490
74422
  */
73491
74423
  415: MediaMediaError;
74424
+ /**
74425
+ * Request failed; see the error code reference.
74426
+ */
74427
+ 422: MediaMediaError;
73492
74428
  /**
73493
74429
  * Request failed; see the error code reference.
73494
74430
  */
@@ -73576,6 +74512,10 @@ export type MediaVisualSearchErrors = {
73576
74512
  * Request failed; see the error code reference.
73577
74513
  */
73578
74514
  415: MediaMediaError;
74515
+ /**
74516
+ * Request failed; see the error code reference.
74517
+ */
74518
+ 422: MediaMediaError;
73579
74519
  /**
73580
74520
  * Request failed; see the error code reference.
73581
74521
  */
@@ -73657,6 +74597,10 @@ export type MediaSemanticSearchErrors = {
73657
74597
  * Request failed; see the error code reference.
73658
74598
  */
73659
74599
  415: MediaMediaError;
74600
+ /**
74601
+ * Request failed; see the error code reference.
74602
+ */
74603
+ 422: MediaMediaError;
73660
74604
  /**
73661
74605
  * Request failed; see the error code reference.
73662
74606
  */
@@ -73738,6 +74682,10 @@ export type MediaSearchErrors = {
73738
74682
  * Request failed; see the error code reference.
73739
74683
  */
73740
74684
  415: MediaMediaError;
74685
+ /**
74686
+ * Request failed; see the error code reference.
74687
+ */
74688
+ 422: MediaMediaError;
73741
74689
  /**
73742
74690
  * Request failed; see the error code reference.
73743
74691
  */
@@ -73804,6 +74752,461 @@ export type MediaListFoldersErrors = {
73804
74752
  * Request failed; see the error code reference.
73805
74753
  */
73806
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;
73807
75210
  /**
73808
75211
  * Request failed; see the error code reference.
73809
75212
  */
@@ -73821,24 +75224,16 @@ export type MediaListFoldersErrors = {
73821
75224
  */
73822
75225
  503: MediaMediaError;
73823
75226
  };
73824
- export type MediaListFoldersError = MediaListFoldersErrors[keyof MediaListFoldersErrors];
73825
- export type MediaListFoldersResponses = {
75227
+ export type MediaCreateDeliveryTokenError = MediaCreateDeliveryTokenErrors[keyof MediaCreateDeliveryTokenErrors];
75228
+ export type MediaCreateDeliveryTokenResponses = {
73826
75229
  /**
73827
75230
  * Successful response.
73828
75231
  */
73829
- 200: MediaFolders;
75232
+ 200: MediaDeliveryToken;
73830
75233
  };
73831
- export type MediaListFoldersResponse = MediaListFoldersResponses[keyof MediaListFoldersResponses];
73832
- export type MediaCreateBatchData = {
73833
- /**
73834
- * Batch action and a selection frozen when the job is created.
73835
- */
73836
- body: MediaBatchAction & {
73837
- /**
73838
- * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
73839
- */
73840
- selector: MediaBatchSelector;
73841
- };
75234
+ export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
75235
+ export type MediaUnderstandingFailureSummaryData = {
75236
+ body?: never;
73842
75237
  path: {
73843
75238
  /**
73844
75239
  * Library ID returned by creation.
@@ -73846,19 +75241,19 @@ export type MediaCreateBatchData = {
73846
75241
  library_id: string;
73847
75242
  };
73848
75243
  query?: never;
73849
- url: '/media/v1/libraries/{library_id}/batches';
75244
+ url: '/media/v1/libraries/{library_id}/understandings/failure_summary';
73850
75245
  };
73851
- export type MediaCreateBatchErrors = {
75246
+ export type MediaUnderstandingFailureSummaryErrors = {
73852
75247
  /**
73853
- * Request failed; see the error code reference.
75248
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
73854
75249
  */
73855
75250
  400: MediaMediaError;
73856
75251
  /**
73857
- * Request failed; see the error code reference.
75252
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73858
75253
  */
73859
75254
  403: MediaMediaError;
73860
75255
  /**
73861
- * 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.
73862
75257
  */
73863
75258
  404: MediaMediaError;
73864
75259
  /**
@@ -73866,19 +75261,23 @@ export type MediaCreateBatchErrors = {
73866
75261
  */
73867
75262
  409: MediaMediaError;
73868
75263
  /**
73869
- * Request failed; see the error code reference.
75264
+ * The file exceeds an input limit; provide a smaller source file.
73870
75265
  */
73871
75266
  413: MediaMediaError;
73872
75267
  /**
73873
- * Request failed; see the error code reference.
75268
+ * This media format is unsupported; provide a supported format.
73874
75269
  */
73875
75270
  415: MediaMediaError;
73876
75271
  /**
73877
75272
  * Request failed; see the error code reference.
73878
75273
  */
75274
+ 422: MediaMediaError;
75275
+ /**
75276
+ * A rate limit was reached; wait before retrying.
75277
+ */
73879
75278
  429: MediaMediaError;
73880
75279
  /**
73881
- * Request failed; see the error code reference.
75280
+ * The requested operation is unsupported; choose a supported method.
73882
75281
  */
73883
75282
  501: MediaMediaError;
73884
75283
  /**
@@ -73886,44 +75285,57 @@ export type MediaCreateBatchErrors = {
73886
75285
  */
73887
75286
  502: MediaMediaError;
73888
75287
  /**
73889
- * 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.
73890
75289
  */
73891
75290
  503: MediaMediaError;
73892
75291
  };
73893
- export type MediaCreateBatchError = MediaCreateBatchErrors[keyof MediaCreateBatchErrors];
73894
- export type MediaCreateBatchResponses = {
75292
+ export type MediaUnderstandingFailureSummaryError = MediaUnderstandingFailureSummaryErrors[keyof MediaUnderstandingFailureSummaryErrors];
75293
+ export type MediaUnderstandingFailureSummaryResponses = {
73895
75294
  /**
73896
75295
  * Successful response.
73897
75296
  */
73898
- 200: MediaJob;
75297
+ 200: MediaFailureSummary;
73899
75298
  };
73900
- export type MediaCreateBatchResponse = MediaCreateBatchResponses[keyof MediaCreateBatchResponses];
73901
- export type MediaGetBatchData = {
75299
+ export type MediaUnderstandingFailureSummaryResponse = MediaUnderstandingFailureSummaryResponses[keyof MediaUnderstandingFailureSummaryResponses];
75300
+ export type MediaListUnderstandingsByLibraryData = {
73902
75301
  body?: never;
73903
75302
  path: {
73904
75303
  /**
73905
75304
  * Library ID returned by creation.
73906
75305
  */
73907
75306
  library_id: string;
75307
+ };
75308
+ query?: {
73908
75309
  /**
73909
- * Batch identifier returned by createBatch or batchAssets; resolved within this library.
75310
+ * Folder path including all descendants; omitted or empty selects the entire library.
73910
75311
  */
73911
- 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;
73912
75325
  };
73913
- query?: never;
73914
- url: '/media/v1/libraries/{library_id}/batches/{job_id}';
75326
+ url: '/media/v1/libraries/{library_id}/understandings';
73915
75327
  };
73916
- export type MediaGetBatchErrors = {
75328
+ export type MediaListUnderstandingsByLibraryErrors = {
73917
75329
  /**
73918
- * Request failed; see the error code reference.
75330
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
73919
75331
  */
73920
75332
  400: MediaMediaError;
73921
75333
  /**
73922
- * Request failed; see the error code reference.
75334
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73923
75335
  */
73924
75336
  403: MediaMediaError;
73925
75337
  /**
73926
- * 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.
73927
75339
  */
73928
75340
  404: MediaMediaError;
73929
75341
  /**
@@ -73931,19 +75343,23 @@ export type MediaGetBatchErrors = {
73931
75343
  */
73932
75344
  409: MediaMediaError;
73933
75345
  /**
73934
- * Request failed; see the error code reference.
75346
+ * The file exceeds an input limit; provide a smaller source file.
73935
75347
  */
73936
75348
  413: MediaMediaError;
73937
75349
  /**
73938
- * Request failed; see the error code reference.
75350
+ * This media format is unsupported; provide a supported format.
73939
75351
  */
73940
75352
  415: MediaMediaError;
73941
75353
  /**
73942
75354
  * Request failed; see the error code reference.
73943
75355
  */
75356
+ 422: MediaMediaError;
75357
+ /**
75358
+ * A rate limit was reached; wait before retrying.
75359
+ */
73944
75360
  429: MediaMediaError;
73945
75361
  /**
73946
- * Request failed; see the error code reference.
75362
+ * The requested operation is unsupported; choose a supported method.
73947
75363
  */
73948
75364
  501: MediaMediaError;
73949
75365
  /**
@@ -73951,27 +75367,73 @@ export type MediaGetBatchErrors = {
73951
75367
  */
73952
75368
  502: MediaMediaError;
73953
75369
  /**
73954
- * 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.
73955
75371
  */
73956
75372
  503: MediaMediaError;
73957
75373
  };
73958
- export type MediaGetBatchError = MediaGetBatchErrors[keyof MediaGetBatchErrors];
73959
- export type MediaGetBatchResponses = {
75374
+ export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
75375
+ export type MediaListUnderstandingsByLibraryResponses = {
73960
75376
  /**
73961
75377
  * Successful response.
73962
75378
  */
73963
- 200: MediaJob;
75379
+ 200: MediaUnderstandingPage;
73964
75380
  };
73965
- export type MediaGetBatchResponse = MediaGetBatchResponses[keyof MediaGetBatchResponses];
73966
- export type MediaBatchAssetsData = {
75381
+ export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
75382
+ export type MediaCreateGenerationData = {
73967
75383
  /**
73968
- * 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.
73969
75385
  */
73970
- body: MediaBatchAction & {
75386
+ body: {
73971
75387
  /**
73972
- * 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.
73973
75389
  */
73974
- 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;
73975
75437
  };
73976
75438
  path: {
73977
75439
  /**
@@ -73980,19 +75442,19 @@ export type MediaBatchAssetsData = {
73980
75442
  library_id: string;
73981
75443
  };
73982
75444
  query?: never;
73983
- url: '/media/v1/libraries/{library_id}/assets:batch';
75445
+ url: '/media/v1/libraries/{library_id}/generations';
73984
75446
  };
73985
- export type MediaBatchAssetsErrors = {
75447
+ export type MediaCreateGenerationErrors = {
73986
75448
  /**
73987
- * Request failed; see the error code reference.
75449
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
73988
75450
  */
73989
75451
  400: MediaMediaError;
73990
75452
  /**
73991
- * Request failed; see the error code reference.
75453
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73992
75454
  */
73993
75455
  403: MediaMediaError;
73994
75456
  /**
73995
- * 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.
73996
75458
  */
73997
75459
  404: MediaMediaError;
73998
75460
  /**
@@ -74000,19 +75462,23 @@ export type MediaBatchAssetsErrors = {
74000
75462
  */
74001
75463
  409: MediaMediaError;
74002
75464
  /**
74003
- * Request failed; see the error code reference.
75465
+ * The file exceeds an input limit; provide a smaller source file.
74004
75466
  */
74005
75467
  413: MediaMediaError;
74006
75468
  /**
74007
- * Request failed; see the error code reference.
75469
+ * This media format is unsupported; provide a supported format.
74008
75470
  */
74009
75471
  415: MediaMediaError;
74010
75472
  /**
74011
75473
  * Request failed; see the error code reference.
74012
75474
  */
75475
+ 422: MediaMediaError;
75476
+ /**
75477
+ * This library already has five queued or running generation jobs; wait until one finishes and retry.
75478
+ */
74013
75479
  429: MediaMediaError;
74014
75480
  /**
74015
- * Request failed; see the error code reference.
75481
+ * The requested operation is unsupported; choose a supported method.
74016
75482
  */
74017
75483
  501: MediaMediaError;
74018
75484
  /**
@@ -74020,44 +75486,53 @@ export type MediaBatchAssetsErrors = {
74020
75486
  */
74021
75487
  502: MediaMediaError;
74022
75488
  /**
74023
- * 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.
74024
75490
  */
74025
75491
  503: MediaMediaError;
74026
75492
  };
74027
- export type MediaBatchAssetsError = MediaBatchAssetsErrors[keyof MediaBatchAssetsErrors];
74028
- export type MediaBatchAssetsResponses = {
75493
+ export type MediaCreateGenerationError = MediaCreateGenerationErrors[keyof MediaCreateGenerationErrors];
75494
+ export type MediaCreateGenerationResponses = {
74029
75495
  /**
74030
75496
  * Successful response.
74031
75497
  */
74032
- 200: MediaJob;
75498
+ 202: MediaJob;
74033
75499
  };
74034
- export type MediaBatchAssetsResponse = MediaBatchAssetsResponses[keyof MediaBatchAssetsResponses];
74035
- export type MediaGetJobData = {
75500
+ export type MediaCreateGenerationResponse = MediaCreateGenerationResponses[keyof MediaCreateGenerationResponses];
75501
+ export type MediaListJobsData = {
74036
75502
  body?: never;
74037
75503
  path: {
74038
75504
  /**
74039
75505
  * Library ID returned by creation.
74040
75506
  */
74041
75507
  library_id: string;
75508
+ };
75509
+ query?: {
74042
75510
  /**
74043
- * Batch identifier returned by createBatch or batchAssets; resolved within this library.
75511
+ * Filter jobs by their current status.
74044
75512
  */
74045
- 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;
74046
75522
  };
74047
- query?: never;
74048
- url: '/media/v1/libraries/{library_id}/jobs/{job_id}';
75523
+ url: '/media/v1/libraries/{library_id}/jobs';
74049
75524
  };
74050
- export type MediaGetJobErrors = {
75525
+ export type MediaListJobsErrors = {
74051
75526
  /**
74052
- * Request failed; see the error code reference.
75527
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
74053
75528
  */
74054
75529
  400: MediaMediaError;
74055
75530
  /**
74056
- * Request failed; see the error code reference.
75531
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
74057
75532
  */
74058
75533
  403: MediaMediaError;
74059
75534
  /**
74060
- * 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.
74061
75536
  */
74062
75537
  404: MediaMediaError;
74063
75538
  /**
@@ -74065,19 +75540,23 @@ export type MediaGetJobErrors = {
74065
75540
  */
74066
75541
  409: MediaMediaError;
74067
75542
  /**
74068
- * Request failed; see the error code reference.
75543
+ * The file exceeds an input limit; provide a smaller source file.
74069
75544
  */
74070
75545
  413: MediaMediaError;
74071
75546
  /**
74072
- * Request failed; see the error code reference.
75547
+ * This media format is unsupported; provide a supported format.
74073
75548
  */
74074
75549
  415: MediaMediaError;
74075
75550
  /**
74076
75551
  * Request failed; see the error code reference.
74077
75552
  */
75553
+ 422: MediaMediaError;
75554
+ /**
75555
+ * A rate limit was reached; wait before retrying.
75556
+ */
74078
75557
  429: MediaMediaError;
74079
75558
  /**
74080
- * Request failed; see the error code reference.
75559
+ * The requested operation is unsupported; choose a supported method.
74081
75560
  */
74082
75561
  501: MediaMediaError;
74083
75562
  /**
@@ -74085,57 +75564,44 @@ export type MediaGetJobErrors = {
74085
75564
  */
74086
75565
  502: MediaMediaError;
74087
75566
  /**
74088
- * 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.
74089
75568
  */
74090
75569
  503: MediaMediaError;
74091
75570
  };
74092
- export type MediaGetJobError = MediaGetJobErrors[keyof MediaGetJobErrors];
74093
- export type MediaGetJobResponses = {
75571
+ export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
75572
+ export type MediaListJobsResponses = {
74094
75573
  /**
74095
75574
  * Successful response.
74096
75575
  */
74097
- 200: MediaJob;
75576
+ 200: MediaJobPage;
74098
75577
  };
74099
- export type MediaGetJobResponse = MediaGetJobResponses[keyof MediaGetJobResponses];
74100
- export type MediaListEventsData = {
75578
+ export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
75579
+ export type MediaCancelJobData = {
74101
75580
  body?: never;
74102
75581
  path: {
74103
75582
  /**
74104
75583
  * Library ID returned by creation.
74105
75584
  */
74106
75585
  library_id: string;
74107
- };
74108
- query?: {
74109
- /**
74110
- * Events with a larger sequence. Use with asc; cannot combine with before_seq.
74111
- */
74112
- after_seq?: number;
74113
- /**
74114
- * Events with a smaller sequence. Use with desc; cannot combine with after_seq.
74115
- */
74116
- before_seq?: number;
74117
- /**
74118
- * Sequence order: asc is increasing; desc is decreasing.
74119
- */
74120
- order?: 'asc' | 'desc';
74121
75586
  /**
74122
- * 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.
74123
75588
  */
74124
- limit?: number;
75589
+ job_id: string;
74125
75590
  };
74126
- url: '/media/v1/libraries/{library_id}/events';
75591
+ query?: never;
75592
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
74127
75593
  };
74128
- export type MediaListEventsErrors = {
75594
+ export type MediaCancelJobErrors = {
74129
75595
  /**
74130
- * Request failed; see the error code reference.
75596
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
74131
75597
  */
74132
75598
  400: MediaMediaError;
74133
75599
  /**
74134
- * Request failed; see the error code reference.
75600
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
74135
75601
  */
74136
75602
  403: MediaMediaError;
74137
75603
  /**
74138
- * 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.
74139
75605
  */
74140
75606
  404: MediaMediaError;
74141
75607
  /**
@@ -74143,19 +75609,23 @@ export type MediaListEventsErrors = {
74143
75609
  */
74144
75610
  409: MediaMediaError;
74145
75611
  /**
74146
- * Request failed; see the error code reference.
75612
+ * The file exceeds an input limit; provide a smaller source file.
74147
75613
  */
74148
75614
  413: MediaMediaError;
74149
75615
  /**
74150
- * Request failed; see the error code reference.
75616
+ * This media format is unsupported; provide a supported format.
74151
75617
  */
74152
75618
  415: MediaMediaError;
74153
75619
  /**
74154
75620
  * Request failed; see the error code reference.
74155
75621
  */
75622
+ 422: MediaMediaError;
75623
+ /**
75624
+ * A rate limit was reached; wait before retrying.
75625
+ */
74156
75626
  429: MediaMediaError;
74157
75627
  /**
74158
- * Request failed; see the error code reference.
75628
+ * The requested operation is unsupported; choose a supported method.
74159
75629
  */
74160
75630
  501: MediaMediaError;
74161
75631
  /**
@@ -74163,52 +75633,68 @@ export type MediaListEventsErrors = {
74163
75633
  */
74164
75634
  502: MediaMediaError;
74165
75635
  /**
74166
- * 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.
74167
75637
  */
74168
75638
  503: MediaMediaError;
74169
75639
  };
74170
- export type MediaListEventsError = MediaListEventsErrors[keyof MediaListEventsErrors];
74171
- export type MediaListEventsResponses = {
75640
+ export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
75641
+ export type MediaCancelJobResponses = {
74172
75642
  /**
74173
75643
  * Successful response.
74174
75644
  */
74175
- 200: MediaMediaEventPage;
75645
+ 200: MediaJob;
74176
75646
  };
74177
- export type MediaListEventsResponse = MediaListEventsResponses[keyof MediaListEventsResponses];
74178
- export type MediaCreateDeliveryTokenData = {
75647
+ export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
75648
+ export type MediaSaveGenerationOutputData = {
74179
75649
  /**
74180
- * Options for authorizing private asset delivery within one active library.
75650
+ * Optional asset metadata and understanding behavior for a successful candidate.
74181
75651
  */
74182
- body: {
75652
+ body?: {
74183
75653
  /**
74184
- * 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.
74185
75655
  */
74186
- acl?: string;
75656
+ public_id?: string;
74187
75657
  /**
74188
- * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900.
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.
74189
75659
  */
74190
- 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';
74191
75669
  };
74192
75670
  path: {
74193
75671
  /**
74194
75672
  * Library ID returned by creation.
74195
75673
  */
74196
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;
74197
75683
  };
74198
75684
  query?: never;
74199
- url: '/media/v1/libraries/{library_id}/delivery_tokens';
75685
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save';
74200
75686
  };
74201
- export type MediaCreateDeliveryTokenErrors = {
75687
+ export type MediaSaveGenerationOutputErrors = {
74202
75688
  /**
74203
- * Request failed; see the error code reference.
75689
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
74204
75690
  */
74205
75691
  400: MediaMediaError;
74206
75692
  /**
74207
- * Request failed; see the error code reference.
75693
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
74208
75694
  */
74209
75695
  403: MediaMediaError;
74210
75696
  /**
74211
- * 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.
74212
75698
  */
74213
75699
  404: MediaMediaError;
74214
75700
  /**
@@ -74216,38 +75702,102 @@ export type MediaCreateDeliveryTokenErrors = {
74216
75702
  */
74217
75703
  409: MediaMediaError;
74218
75704
  /**
74219
- * Request failed; see the error code reference.
75705
+ * The file exceeds an input limit; provide a smaller source file.
74220
75706
  */
74221
75707
  413: MediaMediaError;
74222
75708
  /**
74223
- * Request failed; see the error code reference.
75709
+ * This media format is unsupported; provide a supported format.
74224
75710
  */
74225
75711
  415: MediaMediaError;
74226
75712
  /**
74227
75713
  * Request failed; see the error code reference.
74228
75714
  */
75715
+ 422: MediaMediaError;
75716
+ /**
75717
+ * A rate limit was reached; wait before retrying.
75718
+ */
74229
75719
  429: MediaMediaError;
74230
75720
  /**
74231
- * Request failed; see the error code reference.
75721
+ * The requested operation is unsupported; choose a supported method.
74232
75722
  */
74233
75723
  501: MediaMediaError;
74234
75724
  /**
74235
75725
  * Request failed; see the error code reference.
74236
75726
  */
74237
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;
74238
75784
  /**
74239
75785
  * Request failed; see the error code reference.
74240
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
+ */
74241
75791
  503: MediaMediaError;
74242
75792
  };
74243
- export type MediaCreateDeliveryTokenError = MediaCreateDeliveryTokenErrors[keyof MediaCreateDeliveryTokenErrors];
74244
- export type MediaCreateDeliveryTokenResponses = {
75793
+ export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
75794
+ export type MediaGetGenerationCapabilitiesResponses = {
74245
75795
  /**
74246
75796
  * Successful response.
74247
75797
  */
74248
- 200: MediaDeliveryToken;
75798
+ 200: MediaGenerationCapabilities;
74249
75799
  };
74250
- export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
75800
+ export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
74251
75801
  export type GetSandboxV1SandboxesData = {
74252
75802
  body?: never;
74253
75803
  path?: never;
@@ -74640,6 +76190,10 @@ export type ListSandboxTemplatesResponses = {
74640
76190
  buildCount: number;
74641
76191
  envdVersion: SandboxEnvdVersion;
74642
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'>;
74643
76197
  /**
74644
76198
  * True for an official catalog template; false for your organization's custom templates.
74645
76199
  */
@@ -76843,7 +78397,7 @@ export type TicketGetTicketsData = {
76843
78397
  */
76844
78398
  page_token?: string;
76845
78399
  /**
76846
- * Filter expression.
78400
+ * Filter expression using field:value qualifiers, such as is:open milestone:5.
76847
78401
  */
76848
78402
  filter?: string;
76849
78403
  };
@@ -79262,7 +80816,7 @@ export type TicketGetActivityData = {
79262
80816
  */
79263
80817
  page_token?: string;
79264
80818
  /**
79265
- * Filter expression.
80819
+ * Activity filter expression.
79266
80820
  */
79267
80821
  filter?: string;
79268
80822
  };