@deepraxis/sdk 0.1.1-dev.6dcf6a1 → 0.1.1-dev.7567028

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1020,9 +1020,9 @@ export type OwnFileCreateFileRequest = {
1020
1020
  */
1021
1021
  file: Blob | File;
1022
1022
  /**
1023
- * Purpose label stored with the file: user_data or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
1023
+ * Purpose label stored with the file: user_data, assistants or vision. The label is stored and returned unchanged; assistants follows the same rules as user_data. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
1024
1024
  */
1025
- purpose: 'user_data' | 'vision';
1025
+ purpose: 'user_data' | 'assistants' | 'vision';
1026
1026
  expires_after?: OwnFileFileExpirationAfter;
1027
1027
  };
1028
1028
  /**
@@ -1058,7 +1058,7 @@ export type OwnFileOpenAiFile = {
1058
1058
  /**
1059
1059
  * Upload purpose. Image references in conversations require user_data.
1060
1060
  */
1061
- purpose: 'user_data' | 'vision';
1061
+ purpose: 'user_data' | 'assistants' | 'vision';
1062
1062
  /**
1063
1063
  * Deprecated. The current status of the file, which can be either `uploaded`, `processed`, or `error`.
1064
1064
  *
@@ -1144,7 +1144,7 @@ export type OwnFileDeleteFileResponse = {
1144
1144
  };
1145
1145
  export type OwnFilePraxisCreateUpload = {
1146
1146
  /**
1147
- * Exact complete file length in bytes, from 1 through 2147483648 (2 GiB); the sum of completed parts must match.
1147
+ * Exact complete file length in bytes, from 1 through 21474836480 (20 GiB); the sum of completed parts must match.
1148
1148
  */
1149
1149
  bytes: number;
1150
1150
  /**
@@ -1156,9 +1156,9 @@ export type OwnFilePraxisCreateUpload = {
1156
1156
  */
1157
1157
  mime_type: string;
1158
1158
  /**
1159
- * Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images.
1159
+ * Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.
1160
1160
  */
1161
- purpose: 'user_data' | 'vision';
1161
+ purpose: 'user_data' | 'assistants' | 'vision';
1162
1162
  /**
1163
1163
  * Optional expiry policy for the resulting file; omission retains the file until deletion.
1164
1164
  */
@@ -1195,7 +1195,7 @@ export type OwnFilePraxisUpload = {
1195
1195
  */
1196
1196
  created_at: number;
1197
1197
  /**
1198
- * Expiry time as Unix seconds; unfinished uploads expire after one hour.
1198
+ * Expiry time as Unix seconds; unfinished uploads expire after 7 days.
1199
1199
  */
1200
1200
  expires_at: number;
1201
1201
  /**
@@ -1203,17 +1203,42 @@ export type OwnFilePraxisUpload = {
1203
1203
  */
1204
1204
  filename: string;
1205
1205
  /**
1206
- * File purpose: user_data for conversation attachments, vision for images.
1206
+ * File purpose: user_data for conversation attachments, assistants for assistant files, vision for images.
1207
1207
  */
1208
- purpose: 'user_data' | 'vision';
1208
+ purpose: 'user_data' | 'assistants' | 'vision';
1209
1209
  /**
1210
- * Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its one-hour lifetime.
1210
+ * Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its seven-day lifetime.
1211
1211
  */
1212
1212
  status: 'pending' | 'completed' | 'cancelled' | 'expired';
1213
1213
  /**
1214
1214
  * Present after complete. A file with status uploaded is still processing; poll files.retrieve until processed before use.
1215
1215
  */
1216
1216
  file?: OwnFileOpenAiFile | null;
1217
+ /**
1218
+ * Fixed part length in bytes for a fixed-size upload, or null for a general upload. Send exactly this many bytes per numbered part except for the final remainder.
1219
+ */
1220
+ part_size?: number | null;
1221
+ /**
1222
+ * Parts the upload already holds, in resume order: numbered parts by number, then a general upload's parts by arrival. Query GET /file/v1/uploads/{upload_id} after a break and resend only the numbers missing here.
1223
+ */
1224
+ received_parts?: Array<{
1225
+ /**
1226
+ * Fixed part number, or null for a part of a general upload.
1227
+ */
1228
+ part_number: number | null;
1229
+ /**
1230
+ * Part identifier to pass to complete for this content.
1231
+ */
1232
+ id: string;
1233
+ /**
1234
+ * Accepted length of this part in bytes.
1235
+ */
1236
+ bytes: number;
1237
+ /**
1238
+ * Part content digest prefixed sha256:.
1239
+ */
1240
+ sha256: string;
1241
+ }>;
1217
1242
  /**
1218
1243
  * Declared MIME type, verified during assembly.
1219
1244
  */
@@ -1274,7 +1299,7 @@ export type OwnFileSignedUploadRequest = {
1274
1299
  */
1275
1300
  filename: string;
1276
1301
  /**
1277
- * Exact local file size in bytes, from 1 through 2147483648 (2 GiB). Up to 104857600 bytes returns one PUT URL; larger files return numbered part URLs and a completion URL. Every PUT requires its exact signed Content-Length.
1302
+ * Exact local file size in bytes, from 1 through 21474836480 (20 GiB). Up to 104857600 bytes returns one PUT URL; larger files return numbered part URLs, a completion URL and a status URL. Every PUT requires its exact signed Content-Length.
1278
1303
  */
1279
1304
  bytes: number;
1280
1305
  /**
@@ -1282,11 +1307,11 @@ export type OwnFileSignedUploadRequest = {
1282
1307
  */
1283
1308
  content_type: string;
1284
1309
  /**
1285
- * user_data stores ordinary files and conversation images; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data.
1310
+ * user_data and assistants store ordinary files and conversation images with their original purpose label; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data.
1286
1311
  */
1287
- purpose?: 'user_data' | 'vision';
1312
+ purpose?: 'user_data' | 'assistants' | 'vision';
1288
1313
  /**
1289
- * Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 3600 for multipart. All part URLs and the completion URL share one expiry. This does not set the resulting file's lifetime.
1314
+ * Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 604800 (7 days) for multipart. All part URLs, the status URL and the completion URL share one expiry. This does not set the resulting file's lifetime.
1290
1315
  */
1291
1316
  expires_in?: number;
1292
1317
  /**
@@ -1337,6 +1362,10 @@ export type OwnFileSignedUploadResponse = {
1337
1362
  * Bearer URL to POST without a body after every chunk is acknowledged. Returns 201 with the file object; missing chunks return 400 and successful completion replays return 410 CAPABILITY_USED.
1338
1363
  */
1339
1364
  complete_url: string;
1365
+ /**
1366
+ * Read-only bearer URL for GET that answers the same body as GET /file/v1/uploads/{upload_id}: status, part_size and the received_parts. Use it after a break to resend only the missing chunks; it needs no API key and every write on it is refused.
1367
+ */
1368
+ status_url: string;
1340
1369
  };
1341
1370
  /**
1342
1371
  * Problem document returned by the Meta method catalog on failure.
@@ -12774,6 +12803,10 @@ export type CutFramesResult = {
12774
12803
  images: {
12775
12804
  [key: string]: CutRenderRef;
12776
12805
  };
12806
+ /**
12807
+ * Frame delivery warnings; empty when every requested source frame was available.
12808
+ */
12809
+ warnings: Array<CutFrameWarning>;
12777
12810
  };
12778
12811
  /**
12779
12812
  * Analysis status and available ranges for each source asset and kind.
@@ -12789,13 +12822,17 @@ export type CutAnalysisResult = {
12789
12822
  */
12790
12823
  version: number;
12791
12824
  /**
12792
- * silence identifies quiet spans; filler identifies filler-word spans; scenes identifies scene ranges.
12825
+ * silence identifies transcript-based speech pauses, not music or loudness; filler identifies filler-word spans; scenes identifies scene ranges.
12793
12826
  */
12794
12827
  kind: 'silence' | 'filler' | 'scenes';
12795
12828
  /**
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.
12829
+ * 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
12830
  */
12798
12831
  status: 'pending' | 'ready' | 'unsupported' | 'failed';
12832
+ /**
12833
+ * 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.
12834
+ */
12835
+ reason?: 'no_speech' | 'no_transcript';
12799
12836
  /**
12800
12837
  * Detected source ranges in seconds, available when status is ready.
12801
12838
  */
@@ -12988,6 +13025,14 @@ export type CutExport = {
12988
13025
  * Destination media library identifier.
12989
13026
  */
12990
13027
  library_id: string;
13028
+ /**
13029
+ * Frozen destination path within the library, when supplied.
13030
+ */
13031
+ folder?: string;
13032
+ /**
13033
+ * Frozen sanitized display name, when supplied.
13034
+ */
13035
+ name?: string;
12991
13036
  };
12992
13037
  /**
12993
13038
  * Rendering progress; partial progress is not successful completion.
@@ -13006,6 +13051,27 @@ export type CutExport = {
13006
13051
  */
13007
13052
  audio: 'pending' | 'done';
13008
13053
  };
13054
+ /**
13055
+ * Present when normalization was requested; contains requested targets and measured output levels.
13056
+ */
13057
+ loudness?: {
13058
+ /**
13059
+ * Requested integrated loudness target in LUFS.
13060
+ */
13061
+ target_lufs: number;
13062
+ /**
13063
+ * Requested maximum true peak in dBTP.
13064
+ */
13065
+ true_peak_dbtp: number;
13066
+ /**
13067
+ * Measured integrated loudness of the rendered export in LUFS.
13068
+ */
13069
+ integrated_lufs: number;
13070
+ /**
13071
+ * Measured maximum true peak of the rendered export in dBTP.
13072
+ */
13073
+ measured_true_peak_dbtp: number;
13074
+ };
13009
13075
  /**
13010
13076
  * Output media reference, available after the export reaches done.
13011
13077
  */
@@ -13027,9 +13093,22 @@ export type CutExport = {
13027
13093
  */
13028
13094
  chunk?: number;
13029
13095
  /**
13030
- * Optional lower-level explanation of the render failure.
13096
+ * Safe structured downstream failure information; older jobs may contain a string.
13031
13097
  */
13032
- cause?: string;
13098
+ cause?: string | {
13099
+ /**
13100
+ * Export stage that failed.
13101
+ */
13102
+ stage: string;
13103
+ /**
13104
+ * Downstream service error code, when available.
13105
+ */
13106
+ code?: string;
13107
+ };
13108
+ /**
13109
+ * Downstream request identifier, when supplied by the service error.
13110
+ */
13111
+ request_id?: string;
13033
13112
  };
13034
13113
  /**
13035
13114
  * ISO 8601 timestamp when this export was accepted.
@@ -13048,6 +13127,14 @@ export type CutExport = {
13048
13127
  * Start an export from a project revision into a bound library.
13049
13128
  */
13050
13129
  export type CutExportInput = {
13130
+ /**
13131
+ * Optional destination path within the bound media library; omitted uses its default folder.
13132
+ */
13133
+ folder?: string;
13134
+ /**
13135
+ * Nonempty display name, frozen with the export. Path separators and control characters become hyphens; limited to 200 characters. Omitted uses project name and timestamp.
13136
+ */
13137
+ name?: string;
13051
13138
  /**
13052
13139
  * Optional render settings; omitted fields use the project export defaults.
13053
13140
  */
@@ -13057,6 +13144,19 @@ export type CutExportInput = {
13057
13144
  */
13058
13145
  binding?: string;
13059
13146
  revision?: CutRevision;
13147
+ /**
13148
+ * Optional loudness normalization target; normalization adds analysis and rendering work.
13149
+ */
13150
+ loudness?: {
13151
+ /**
13152
+ * Integrated loudness target in LUFS.
13153
+ */
13154
+ target_lufs: number;
13155
+ /**
13156
+ * Maximum true peak in dBTP.
13157
+ */
13158
+ true_peak_dbtp: number;
13159
+ };
13060
13160
  };
13061
13161
  /**
13062
13162
  * One page of organization-accessible exports.
@@ -13583,7 +13683,7 @@ export type KnowledgeNativeCreateVectorStore = {
13583
13683
  * Existing File IDs to attach; the store allows up to 10,000 files.
13584
13684
  */
13585
13685
  file_ids?: Array<string>;
13586
- chunking_strategy?: KnowledgeChunkingInput;
13686
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13587
13687
  /**
13588
13688
  * Accepted but not saved or returned; its type is not validated.
13589
13689
  */
@@ -13747,7 +13847,7 @@ export type KnowledgeNativeVectorStoreFile = {
13747
13847
  * Unix timestamp in seconds.
13748
13848
  */
13749
13849
  created_at: number;
13750
- chunking_strategy: KnowledgeChunking;
13850
+ chunking_strategy: KnowledgeNativeChunking;
13751
13851
  /**
13752
13852
  * File attributes used for search filtering; null means no attributes are set.
13753
13853
  */
@@ -13757,7 +13857,7 @@ export type KnowledgeNativeVectorStoreFile = {
13757
13857
  */
13758
13858
  praxis?: {
13759
13859
  /**
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.
13860
+ * 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
13861
  */
13762
13862
  failure_reason?: 'file_too_large' | 'encrypted' | 'empty' | 'unsupported_type' | 'token_limit' | 'recognition_unavailable' | 'deadline_exceeded' | 'internal';
13763
13863
  /**
@@ -13794,7 +13894,7 @@ export type KnowledgeNativeVectorStoreFile = {
13794
13894
  chunk_count: number;
13795
13895
  };
13796
13896
  };
13797
- export type KnowledgeAttachFile = {
13897
+ export type KnowledgeNativeAttachFile = {
13798
13898
  /**
13799
13899
  * Existing source File ID returned by file upload; the file must be visible to the caller.
13800
13900
  */
@@ -13803,7 +13903,7 @@ export type KnowledgeAttachFile = {
13803
13903
  * Search-filter attributes for a newly attached file; omission or null leaves attributes unset. Reattaching an existing file does not change them.
13804
13904
  */
13805
13905
  attributes?: KnowledgeAttributes | null;
13806
- chunking_strategy?: KnowledgeChunkingInput;
13906
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13807
13907
  };
13808
13908
  export type KnowledgeNativeVectorStoreFileList = {
13809
13909
  /**
@@ -13900,7 +14000,7 @@ export type KnowledgeFileBatch = {
13900
14000
  /**
13901
14001
  * Provide exactly one of file_ids or files. Already attached files are reused without changing their attributes or chunking.
13902
14002
  */
13903
- export type KnowledgeCreateBatch = {
14003
+ export type KnowledgeNativeCreateBatch = {
13904
14004
  /**
13905
14005
  * Existing File IDs to attach with shared attributes and chunking settings. Supply file_ids or files, never both.
13906
14006
  */
@@ -13909,7 +14009,7 @@ export type KnowledgeCreateBatch = {
13909
14009
  * Search-filter attributes applied to each newly attached file; omission or null leaves them unset.
13910
14010
  */
13911
14011
  attributes?: KnowledgeAttributes | null;
13912
- chunking_strategy?: KnowledgeChunkingInput;
14012
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13913
14013
  } | {
13914
14014
  /**
13915
14015
  * Files to attach with individual attributes and chunking settings; top-level attributes and chunking_strategy are ignored.
@@ -13920,7 +14020,7 @@ export type KnowledgeCreateBatch = {
13920
14020
  */
13921
14021
  file_id: string;
13922
14022
  attributes?: KnowledgeAttributes;
13923
- chunking_strategy?: KnowledgeChunkingInput;
14023
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13924
14024
  }>;
13925
14025
  /**
13926
14026
  * Ignored when files is supplied.
@@ -14039,6 +14139,14 @@ export type KnowledgeEventList = {
14039
14139
  * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
14040
14140
  */
14041
14141
  export type MediaLibrary = {
14142
+ /**
14143
+ * 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.
14144
+ */
14145
+ readonly hotwords?: Array<string>;
14146
+ /**
14147
+ * Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
14148
+ */
14149
+ readonly progress?: MediaUnderstandingProgress;
14042
14150
  /**
14043
14151
  * Search capabilities of this library’s embedding model.
14044
14152
  */
@@ -14101,7 +14209,7 @@ export type MediaLibrary = {
14101
14209
  };
14102
14210
  export type MediaMediaError = {
14103
14211
  error: {
14104
- code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'BINDING_READ_ONLY';
14212
+ code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'CANDIDATE_EXPIRED' | 'BINDING_READ_ONLY';
14105
14213
  message: string;
14106
14214
  details: string | null;
14107
14215
  };
@@ -14119,9 +14227,21 @@ export type MediaMediaModelsInput = {
14119
14227
  */
14120
14228
  embedding?: string | null;
14121
14229
  /**
14122
- * Model call ID for speech transcription. Null restores the default for this role.
14230
+ * Model call ID for speech transcription. Null restores the default for this role. Defaults to fun-asr with whisper-large-v3-turbo fallback.
14123
14231
  */
14124
14232
  transcription?: string | null;
14233
+ /**
14234
+ * Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions. Null restores this role’s default.
14235
+ */
14236
+ correction?: string | null;
14237
+ /**
14238
+ * 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.
14239
+ */
14240
+ reference_transcription?: string | null;
14241
+ /**
14242
+ * 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.
14243
+ */
14244
+ audio?: string | null;
14125
14245
  } | null;
14126
14246
  /**
14127
14247
  * Libraries in this page, ordered by creation time descending.
@@ -14136,6 +14256,25 @@ export type MediaLibraryPage = MediaPage & {
14136
14256
  */
14137
14257
  next_cursor: string | null;
14138
14258
  };
14259
+ export type MediaFrameUrls = {
14260
+ /**
14261
+ * Frame links in the same order as the requested timestamps, including duplicates.
14262
+ */
14263
+ frames: Array<{
14264
+ /**
14265
+ * Requested time in microseconds from the start of the video.
14266
+ */
14267
+ at_micros: number;
14268
+ /**
14269
+ * JPEG delivery URL. Fetch it to extract the frame; authenticated links carry a bearer token and must not be shared beyond intended readers.
14270
+ */
14271
+ url: string;
14272
+ /**
14273
+ * UTC expiry for authenticated frame links, 300 seconds after issuance. Upload asset links remain public and permanent; this timestamp does not expire those URLs.
14274
+ */
14275
+ expires_at: string;
14276
+ }>;
14277
+ };
14139
14278
  /**
14140
14279
  * Receipt confirming permanent removal of a previously deleted library.
14141
14280
  */
@@ -14295,7 +14434,7 @@ export type MediaAsset = {
14295
14434
  */
14296
14435
  url: string;
14297
14436
  /**
14298
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
14437
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
14299
14438
  */
14300
14439
  secure_url: string;
14301
14440
  /**
@@ -14322,6 +14461,10 @@ export type MediaAsset = {
14322
14461
  * Resource status; active identifies an asset that has not been deleted.
14323
14462
  */
14324
14463
  status: 'active';
14464
+ /**
14465
+ * True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
14466
+ */
14467
+ has_alpha?: boolean;
14325
14468
  /**
14326
14469
  * Search-vector status: pending awaits vector generation or reprocessing; ready has searchable vectors; unavailable indicates disabled, unsupported or failed embedding. Existing vectors may still serve searches while reprocessing is pending.
14327
14470
  */
@@ -14378,6 +14521,27 @@ export type MediaAsset = {
14378
14521
  };
14379
14522
  };
14380
14523
  };
14524
+ /**
14525
+ * Source details for the video-generation job that created this asset.
14526
+ */
14527
+ generation?: {
14528
+ /**
14529
+ * Job id that generated this asset.
14530
+ */
14531
+ job_id: MediaJobId;
14532
+ /**
14533
+ * Generation intent used to create the asset; v1 supports video.generate.
14534
+ */
14535
+ intent: string;
14536
+ /**
14537
+ * Text prompt submitted for the generation job.
14538
+ */
14539
+ prompt: string;
14540
+ /**
14541
+ * Router video-generation model that produced the asset.
14542
+ */
14543
+ model: string;
14544
+ };
14381
14545
  };
14382
14546
  /**
14383
14547
  * Receipt confirming that the asset was deleted.
@@ -14404,6 +14568,10 @@ export type MediaUnderstandingPage = MediaPage & {
14404
14568
  * Opaque token to pass as cursor to listUnderstandings; null means no further page.
14405
14569
  */
14406
14570
  next_cursor: string | null;
14571
+ /**
14572
+ * Current-version video shots, repeated on every understanding page. Absent on legacy records, images and audio. New video processing with image-capable embedding samples at 1 fps, at most 600 frames, and produces at most 60 shots. Long clips increase the interval and merge adjacent short shots; sub-second cuts may be missed. Each shot uses one to three keyframes in one vision call. Text-only legacy embedding profiles retain frame-based processing.
14573
+ */
14574
+ readonly shots?: Array<MediaUnderstoodShot>;
14407
14575
  };
14408
14576
  /**
14409
14577
  * Expression-search page with match counts, elapsed time and optional facet counts.
@@ -14487,7 +14655,19 @@ export type MediaFolders = {
14487
14655
  * Number of assets in this folder and all descendant folders.
14488
14656
  */
14489
14657
  asset_count: number;
14658
+ /**
14659
+ * Active ready and partial assets in this folder and every descendant folder.
14660
+ */
14661
+ understood_count: number;
14662
+ /**
14663
+ * Active failed assets in this folder and every descendant folder.
14664
+ */
14665
+ failed_count: number;
14490
14666
  }>;
14667
+ /**
14668
+ * False while historical folder and failure counts are being populated; refresh after backfill completes.
14669
+ */
14670
+ counts_complete: boolean;
14491
14671
  };
14492
14672
  /**
14493
14673
  * Asynchronous batch job with successful and failed item counts.
@@ -14502,19 +14682,19 @@ export type MediaJob = {
14502
14682
  */
14503
14683
  library_id: MediaLibraryId;
14504
14684
  /**
14505
- * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
14685
+ * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets. reprocess starts fenced understanding Workflows for retryable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported and permanent steps remain unchanged.
14506
14686
  */
14507
- action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete';
14687
+ action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'generate';
14508
14688
  /**
14509
14689
  * Job status: queued awaits execution; running is processing items; completed means all items succeeded; completed_with_errors means some succeeded and some failed; failed means all selected items failed. An empty job completes successfully.
14510
14690
  */
14511
- status: 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed';
14691
+ status: MediaJobStatus;
14512
14692
  /**
14513
14693
  * Number of distinct assets selected when the job was created.
14514
14694
  */
14515
14695
  total: number;
14516
14696
  /**
14517
- * Number of items successfully processed; failed items are counted separately.
14697
+ * Number of items successfully processed; failed items are counted separately. For reprocess, this counts accepted launches; inspect asset progress for model completion.
14518
14698
  */
14519
14699
  done: number;
14520
14700
  /**
@@ -14528,12 +14708,66 @@ export type MediaJob = {
14528
14708
  /**
14529
14709
  * Identifier supplied for the failed item; it may identify a missing asset.
14530
14710
  */
14531
- asset_id: MediaAssetId;
14711
+ asset_id?: MediaAssetId;
14712
+ /**
14713
+ * Zero-based output index for a failed video-generation item.
14714
+ */
14715
+ index?: number;
14532
14716
  /**
14533
14717
  * Domain error code explaining the individual item failure.
14534
14718
  */
14535
14719
  code: MediaMediaErrorCode;
14536
14720
  }>;
14721
+ /**
14722
+ * Generation intent used by this job; v1 supports video.generate.
14723
+ */
14724
+ intent?: string;
14725
+ /**
14726
+ * Router video-generation model used for the outputs.
14727
+ */
14728
+ model?: string;
14729
+ /**
14730
+ * Per-video results in index order; save a successful candidate before expires_at.
14731
+ */
14732
+ outputs?: Array<{
14733
+ /**
14734
+ * Zero-based position of this video in the requested count.
14735
+ */
14736
+ index: number;
14737
+ /**
14738
+ * State of this requested video output.
14739
+ */
14740
+ status: MediaGenerationOutputStatus;
14741
+ /**
14742
+ * Short-lived signed URL for previewing this candidate; read the Job again to obtain a fresh URL.
14743
+ */
14744
+ preview_url?: string;
14745
+ /**
14746
+ * Router seed for this video, when returned; it may be absent.
14747
+ */
14748
+ seed?: number | null;
14749
+ /**
14750
+ * Candidate expiry time; after expiry, save returns CANDIDATE_EXPIRED.
14751
+ */
14752
+ expires_at?: MediaIsoTimestamp;
14753
+ /**
14754
+ * Library asset identifier after this candidate has been saved, or when the job requested save=library.
14755
+ */
14756
+ asset_id?: MediaAssetId;
14757
+ }>;
14758
+ /**
14759
+ * Router-reported generation charge for the job.
14760
+ */
14761
+ usage?: {
14762
+ /**
14763
+ * Decimal amount in the currency named by currency; this is not a floating-point value.
14764
+ */
14765
+ amount: string;
14766
+ /**
14767
+ * Currency code for amount.
14768
+ */
14769
+ currency: string;
14770
+ };
14537
14771
  /**
14538
14772
  * Time the batch job was created, in UTC.
14539
14773
  */
@@ -14580,6 +14814,15 @@ export type MediaBatchAction = {
14580
14814
  * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
14581
14815
  */
14582
14816
  action: 'delete';
14817
+ } | {
14818
+ /**
14819
+ * reprocess retries recoverable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported, permanent and completed steps remain unchanged.
14820
+ */
14821
+ action: 'reprocess';
14822
+ /**
14823
+ * 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.
14824
+ */
14825
+ kinds?: Array<MediaProcessingKind>;
14583
14826
  };
14584
14827
  /**
14585
14828
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
@@ -14625,6 +14868,91 @@ export type MediaDeliveryToken = {
14625
14868
  */
14626
14869
  expires_at: string;
14627
14870
  };
14871
+ export type MediaFailureSummary = {
14872
+ /**
14873
+ * Number of current failed understanding entries, excluding deleted assets and superseded versions.
14874
+ */
14875
+ total: number;
14876
+ /**
14877
+ * Failure entries grouped by code, output kind and producer model. Each group includes up to five distinct example asset IDs.
14878
+ */
14879
+ groups: Array<MediaFailureGroup>;
14880
+ /**
14881
+ * False while historical failure and folder statistics are being populated. Counts include current writes immediately.
14882
+ */
14883
+ counts_complete: boolean;
14884
+ };
14885
+ /**
14886
+ * Current state of a batch or video-generation job.
14887
+ */
14888
+ export type MediaJobStatus = 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed' | 'cancelled';
14889
+ /**
14890
+ * Identifier returned when a batch job is created.
14891
+ */
14892
+ export type MediaJobId = string;
14893
+ /**
14894
+ * A page of jobs in a library.
14895
+ */
14896
+ export type MediaJobPage = {
14897
+ /**
14898
+ * Jobs returned in this page.
14899
+ */
14900
+ data: Array<MediaJob>;
14901
+ /**
14902
+ * Cursor for the next page, or null when there are no more jobs.
14903
+ */
14904
+ next_cursor: MediaJobId | null;
14905
+ };
14906
+ /**
14907
+ * Current text-to-video options, concurrency and candidate retention. Generation is charged per second; unsaved candidates expire after 7 days.
14908
+ */
14909
+ export type MediaGenerationCapabilities = {
14910
+ /**
14911
+ * Text-to-video intents currently supported by Media.
14912
+ */
14913
+ intents: Array<string>;
14914
+ /**
14915
+ * Model selected when model is omitted from a generation request.
14916
+ */
14917
+ default_model: string;
14918
+ /**
14919
+ * Allowed number of videos per generation job.
14920
+ */
14921
+ count: {
14922
+ /**
14923
+ * Minimum number of videos in one generation job.
14924
+ */
14925
+ minimum: number;
14926
+ /**
14927
+ * Maximum number of videos in one generation job.
14928
+ */
14929
+ maximum: number;
14930
+ };
14931
+ /**
14932
+ * Durations in seconds supported by the default video model.
14933
+ */
14934
+ duration_seconds: Array<number>;
14935
+ /**
14936
+ * Aspect ratios supported by the default video model.
14937
+ */
14938
+ aspect_ratios: Array<string>;
14939
+ /**
14940
+ * Aspect ratio used when aspect_ratio is omitted.
14941
+ */
14942
+ default_aspect_ratio: string;
14943
+ /**
14944
+ * Maximum number of queued or running generation jobs per library.
14945
+ */
14946
+ concurrency_per_library: number;
14947
+ /**
14948
+ * Unit used to charge video generation; generated duration is billed per second by Router.
14949
+ */
14950
+ price_unit: 'per second';
14951
+ /**
14952
+ * Days an unsaved candidate is retained before its File is deleted.
14953
+ */
14954
+ candidate_retention_days: number;
14955
+ };
14628
14956
  /**
14629
14957
  * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
14630
14958
  */
@@ -15067,6 +15395,10 @@ export type SandboxTemplateBuildInfo = {
15067
15395
  reason?: SandboxBuildStatusReason;
15068
15396
  };
15069
15397
  export type SandboxTemplateWithBuilds = {
15398
+ /**
15399
+ * 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.
15400
+ */
15401
+ lifecycles?: Array<'ephemeral' | 'persistent'>;
15070
15402
  /**
15071
15403
  * Identifier of the template
15072
15404
  */
@@ -24975,6 +25307,10 @@ export type CutTimeline = {
24975
25307
  * Ordered tracks, topmost visual layer first.
24976
25308
  */
24977
25309
  tracks: Array<CutTrack>;
25310
+ /**
25311
+ * Clip-to-clip transitions selected by track and overlap window; lengths are seconds and effect fields use snake_case on HTTP.
25312
+ */
25313
+ joins?: Array<CutJoin>;
24978
25314
  /**
24979
25315
  * Named points on the timeline.
24980
25316
  */
@@ -25010,11 +25346,11 @@ export type CutSummary = {
25010
25346
  lines: Array<string>;
25011
25347
  };
25012
25348
  /**
25013
- * Rendered image available until its signed URL expires.
25349
+ * Rendered PNG image carried inline as a data URL.
25014
25350
  */
25015
25351
  export type CutRenderRef = {
25016
25352
  /**
25017
- * Fetchable image URL for this render result.
25353
+ * Inline PNG data URL (data:image/png;base64,...); decode the base64 payload to save the image. This is not a hosted HTTP image link.
25018
25354
  */
25019
25355
  url: string;
25020
25356
  /**
@@ -25026,7 +25362,7 @@ export type CutRenderRef = {
25026
25362
  */
25027
25363
  height: number;
25028
25364
  /**
25029
- * ISO 8601 timestamp after which the image URL must be refreshed.
25365
+ * ISO 8601 freshness timestamp for the render result; the inline data URL contains the image bytes and does not require a network refresh.
25030
25366
  */
25031
25367
  expires_at: string;
25032
25368
  };
@@ -25067,6 +25403,20 @@ export type CutTrackSummary = {
25067
25403
  */
25068
25404
  items: number;
25069
25405
  };
25406
+ export type CutFrameWarning = {
25407
+ /**
25408
+ * FRAME_UNAVAILABLE means a source image could not be fetched for this preview.
25409
+ */
25410
+ code: 'FRAME_UNAVAILABLE';
25411
+ /**
25412
+ * Identifier of the clip whose source frame could not be fetched.
25413
+ */
25414
+ clip_id?: string;
25415
+ /**
25416
+ * Actionable safe explanation; source URLs and credentials are omitted.
25417
+ */
25418
+ message: string;
25419
+ };
25070
25420
  /**
25071
25421
  * Reference to an asset in a bound library; follows asset overwrites to the latest version rather than pinning a version.
25072
25422
  */
@@ -25289,7 +25639,7 @@ export type KnowledgeKnowledgeModels = {
25289
25639
  */
25290
25640
  query_rewrite: string;
25291
25641
  /**
25292
- * Extracts text from scanned PDF pages. Default: glm-ocr, falling back to qwen3.8-flash. A custom model precedes the platform defaults.
25642
+ * Extracts text from scanned PDF pages through the OCR API. Default: qwen-vl-ocr-2025-11-20, falling back to glm-ocr and qwen3.8-flash. A custom model precedes these defaults. OCR is billed by pages processed.
25293
25643
  */
25294
25644
  ocr: string;
25295
25645
  /**
@@ -25298,14 +25648,9 @@ export type KnowledgeKnowledgeModels = {
25298
25648
  vision: string;
25299
25649
  };
25300
25650
  /**
25301
- * auto resolves to static with 800 estimated tokens and 400 overlap tokens. Unlike OpenAI vector stores, token counts are estimates; each Han character counts as one, and other whitespace-delimited words count as their UTF-16 length divided by four, rounded up.
25651
+ * Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy.
25302
25652
  */
25303
- export type KnowledgeChunkingInput = {
25304
- /**
25305
- * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
25306
- */
25307
- type: 'auto';
25308
- } | KnowledgeStaticChunking;
25653
+ export type KnowledgeNativeChunkingInput = KnowledgeChunkingInput | KnowledgeHierarchicalChunking;
25309
25654
  /**
25310
25655
  * Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.
25311
25656
  */
@@ -25323,7 +25668,7 @@ export type KnowledgeKnowledgeModelsInput = {
25323
25668
  */
25324
25669
  query_rewrite?: string | null;
25325
25670
  /**
25326
- * Scanned PDF text extraction model; requires mistral.ocr or pdf_input capability. null restores glm-ocr. The preference leads the fallback chain glm-ocr, qwen3.8-flash with duplicates removed.
25671
+ * Scanned PDF text extraction model; requires mistral.ocr or pdf_input capability. null restores qwen-vl-ocr-2025-11-20. The preference leads the OCR API fallback chain qwen-vl-ocr-2025-11-20, glm-ocr, qwen3.8-flash with duplicates removed.
25327
25672
  */
25328
25673
  ocr?: string | null;
25329
25674
  /**
@@ -25360,6 +25705,10 @@ export type KnowledgeNativeSearchResult = {
25360
25705
  * Extracted text of the matched chunk, which may overlap neighboring chunks.
25361
25706
  */
25362
25707
  text: string;
25708
+ /**
25709
+ * 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.
25710
+ */
25711
+ readonly image_file_id?: string;
25363
25712
  /**
25364
25713
  * Resource ID.
25365
25714
  */
@@ -25423,14 +25772,9 @@ export type KnowledgeFilter = {
25423
25772
  filters: Array<KnowledgeFilter>;
25424
25773
  };
25425
25774
  /**
25426
- * Stored chunking strategy for this attachment; auto input is returned as static settings.
25775
+ * Native stored strategy, including hierarchical parent and child settings. auto input resolves to static; the OpenAI-compatible URL projects hierarchical as other.
25427
25776
  */
25428
- export type KnowledgeChunking = KnowledgeStaticChunking | {
25429
- /**
25430
- * other identifies a stored strategy whose chunk-size settings are unavailable.
25431
- */
25432
- type: 'other';
25433
- };
25777
+ export type KnowledgeNativeChunking = KnowledgeChunking | KnowledgeHierarchicalChunking;
25434
25778
  /**
25435
25779
  * File attributes used by search filters. Up to 16 keys of 64 characters; string values up to 512 characters.
25436
25780
  */
@@ -25515,7 +25859,34 @@ export type KnowledgeEvent = {
25515
25859
  };
25516
25860
  };
25517
25861
  /**
25518
- * Resolved model call IDs for the library’s vision, embedding and transcription roles.
25862
+ * Asset understanding progress. Completion rate counts assets reaching ready, partial or failed in the last 60 minute buckets, including reprocessing completions.
25863
+ */
25864
+ export type MediaUnderstandingProgress = {
25865
+ /**
25866
+ * Number of active assets in each aggregate processing state: pending, processing, ready, partial and failed. Historical counts are complete when migration_complete is true.
25867
+ */
25868
+ readonly counts: {
25869
+ [key: string]: number;
25870
+ };
25871
+ /**
25872
+ * Assets reaching a terminal processing state in the last 60 minute buckets. Reprocessing can complete an asset again.
25873
+ */
25874
+ readonly completed_last_hour: number;
25875
+ /**
25876
+ * Observed completion rate in assets per hour, equal to completed_last_hour.
25877
+ */
25878
+ readonly completion_rate_per_hour: number;
25879
+ /**
25880
+ * Estimated UTC completion time: now plus pending and processing assets divided by the observed hourly rate. Null while historical counts are incomplete, no work remains, or the rate is zero.
25881
+ */
25882
+ readonly estimated_completion_at: MediaIsoTimestamp | null;
25883
+ /**
25884
+ * True after historical assets have been counted and their pending understanding instances dispatched.
25885
+ */
25886
+ readonly migration_complete: boolean;
25887
+ };
25888
+ /**
25889
+ * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
25519
25890
  */
25520
25891
  export type MediaMediaModels = {
25521
25892
  /**
@@ -25527,9 +25898,21 @@ export type MediaMediaModels = {
25527
25898
  */
25528
25899
  embedding: string;
25529
25900
  /**
25530
- * Model call ID for speech transcription.
25901
+ * Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
25531
25902
  */
25532
25903
  transcription: string;
25904
+ /**
25905
+ * Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
25906
+ */
25907
+ readonly correction: string;
25908
+ /**
25909
+ * Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
25910
+ */
25911
+ readonly reference_transcription: string;
25912
+ /**
25913
+ * 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.
25914
+ */
25915
+ readonly audio: string;
25533
25916
  };
25534
25917
  /**
25535
25918
  * Identifier of a library belonging to the caller.
@@ -25690,7 +26073,7 @@ export type MediaCloudinaryResource = {
25690
26073
  */
25691
26074
  url: string;
25692
26075
  /**
25693
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
26076
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
25694
26077
  */
25695
26078
  secure_url: string;
25696
26079
  /**
@@ -25726,9 +26109,13 @@ export type MediaChunkComplete = MediaCloudinaryResource & {
25726
26109
  done: true;
25727
26110
  };
25728
26111
  /**
25729
- * Per-task processing progress and its aggregate state for the asset.
26112
+ * Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
25730
26113
  */
25731
26114
  export type MediaProcessing = {
26115
+ /**
26116
+ * 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.
26117
+ */
26118
+ readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
25732
26119
  state: MediaProcessingState;
25733
26120
  /**
25734
26121
  * Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
@@ -25770,6 +26157,18 @@ export type MediaStoryboard = {
25770
26157
  * An immutable understanding result for an asset version, including superseded history when requested.
25771
26158
  */
25772
26159
  export type MediaUnderstanding = {
26160
+ /**
26161
+ * Original hallucination-filtered ASR text before correction, present on correction-enabled transcript records. Omitted on legacy records and other kinds.
26162
+ */
26163
+ readonly text_original?: string;
26164
+ /**
26165
+ * Corrected transcript, also returned as content and used for subtitles and search. Equals text_original when correction fails. Original segment timestamps remain unchanged.
26166
+ */
26167
+ readonly text?: string;
26168
+ /**
26169
+ * Transcript correction audit, accepted edits and optional reference ASR. Present on correction-enabled transcript records, including failed corrections.
26170
+ */
26171
+ readonly correction?: MediaTranscriptCorrection;
25773
26172
  /**
25774
26173
  * Generated identifier of this understanding result.
25775
26174
  */
@@ -25783,7 +26182,7 @@ export type MediaUnderstanding = {
25783
26182
  */
25784
26183
  asset_version: number;
25785
26184
  /**
25786
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment.
26185
+ * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
25787
26186
  */
25788
26187
  kind: MediaUnderstandingKind;
25789
26188
  /**
@@ -25807,7 +26206,7 @@ export type MediaUnderstanding = {
25807
26206
  */
25808
26207
  content: string | null;
25809
26208
  /**
25810
- * Structured producer output, such as recognized labels or frame details; null when absent.
26209
+ * Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape. Transcript segments may contain speaker (a diarization label, not a verified identity), words (text, start_ms and end_ms in source-media milliseconds) and producer (the actual fallback model when different from the record producer). Overview data contains chapters (first_shot, title, summary, start_ms, end_ms), iab (tier1, optional tier2, confidence from 0 to 1), and location (an unverified place guess or null); content is the full-video summary. Audio data contains segments (start_s and end_s in source-media seconds; type is speech, music, ambient or silence), has_music, genre, mood, bpm_estimate (nullable), bpm_is_estimate=true and analyzed_ranges (start_s, end_s in seconds). Genre and mood are nullable model labels. Audio understanding samples only the first 120 seconds in at most three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate, not an exact tempo; has_music=false only means no music was detected within analyzed_ranges.
25811
26210
  */
25812
26211
  data: unknown | null;
25813
26212
  /**
@@ -25836,6 +26235,36 @@ export type MediaUnderstanding = {
25836
26235
  */
25837
26236
  created_at: MediaIsoTimestamp;
25838
26237
  };
26238
+ export type MediaUnderstoodShot = {
26239
+ /**
26240
+ * Inclusive shot start in milliseconds.
26241
+ */
26242
+ readonly start_ms: number;
26243
+ /**
26244
+ * Exclusive shot end in milliseconds.
26245
+ */
26246
+ readonly end_ms: number;
26247
+ /**
26248
+ * Zero-based shot index in timeline order.
26249
+ */
26250
+ readonly index: number;
26251
+ /**
26252
+ * One to three sampled frame timestamps in milliseconds within this shot.
26253
+ */
26254
+ readonly keyframes_ms: Array<number>;
26255
+ /**
26256
+ * Structured interpretation, present after this shot completes visual processing.
26257
+ */
26258
+ readonly visual?: MediaShotVisual;
26259
+ /**
26260
+ * Lexical location hint: true if the leaf folder and location guess share no place-name token. Unknown locations abstain; this is not a verified geolocation.
26261
+ */
26262
+ readonly folder_mismatch?: boolean;
26263
+ /**
26264
+ * Vision model that generated this shot interpretation.
26265
+ */
26266
+ readonly producer?: string;
26267
+ };
25839
26268
  /**
25840
26269
  * A native asset returned by expression search; tags and context are included only when requested in with_field.
25841
26270
  */
@@ -25953,7 +26382,7 @@ export type MediaSearchAsset = {
25953
26382
  */
25954
26383
  url: string;
25955
26384
  /**
25956
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
26385
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
25957
26386
  */
25958
26387
  secure_url: string;
25959
26388
  /**
@@ -25980,6 +26409,10 @@ export type MediaSearchAsset = {
25980
26409
  * Resource status; active identifies an asset that has not been deleted.
25981
26410
  */
25982
26411
  status: 'active';
26412
+ /**
26413
+ * True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
26414
+ */
26415
+ has_alpha?: boolean;
25983
26416
  /**
25984
26417
  * Search-vector status: pending awaits vector generation or reprocessing; ready has searchable vectors; unavailable indicates disabled, unsupported or failed embedding. Existing vectors may still serve searches while reprocessing is pending.
25985
26418
  */
@@ -26036,6 +26469,27 @@ export type MediaSearchAsset = {
26036
26469
  };
26037
26470
  };
26038
26471
  };
26472
+ /**
26473
+ * Source details for the video-generation job that created this asset.
26474
+ */
26475
+ generation?: {
26476
+ /**
26477
+ * Job id that generated this asset.
26478
+ */
26479
+ job_id: MediaJobId;
26480
+ /**
26481
+ * Generation intent used to create the asset; v1 supports video.generate.
26482
+ */
26483
+ intent: string;
26484
+ /**
26485
+ * Text prompt submitted for the generation job.
26486
+ */
26487
+ prompt: string;
26488
+ /**
26489
+ * Router video-generation model that produced the asset.
26490
+ */
26491
+ model: string;
26492
+ };
26039
26493
  };
26040
26494
  /**
26041
26495
  * A matching asset with its ranking score and supporting matches.
@@ -26058,11 +26512,11 @@ export type MediaSemanticHit = {
26058
26512
  */
26059
26513
  matches: Array<MediaSemanticMatch>;
26060
26514
  };
26515
+ export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'CANDIDATE_EXPIRED' | 'BINDING_READ_ONLY';
26061
26516
  /**
26062
- * Identifier returned when a batch job is created.
26517
+ * State of a requested video output.
26063
26518
  */
26064
- export type MediaJobId = string;
26065
- export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'BINDING_READ_ONLY';
26519
+ export type MediaGenerationOutputStatus = 'pending' | 'succeeded' | 'failed';
26066
26520
  /**
26067
26521
  * A recorded library event with a monotonically increasing sequence within that library.
26068
26522
  */
@@ -26106,6 +26560,36 @@ export type MediaMediaEvent = {
26106
26560
  [key: string]: unknown;
26107
26561
  };
26108
26562
  };
26563
+ export type MediaFailureGroup = {
26564
+ /**
26565
+ * Failure reason code. Unknown codes are retryable.
26566
+ */
26567
+ code: string;
26568
+ /**
26569
+ * Understanding output kind that failed, such as caption, frame, transcript or embedding.
26570
+ */
26571
+ kind: string;
26572
+ /**
26573
+ * Producer model that reported this failure; unknown when historical provenance was unavailable.
26574
+ */
26575
+ model: string;
26576
+ /**
26577
+ * Number of current failed entries in this group; several entries can belong to one asset.
26578
+ */
26579
+ count: number;
26580
+ /**
26581
+ * 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.
26582
+ */
26583
+ overflow: boolean;
26584
+ /**
26585
+ * True when a repeated attempt may recover, including unknown error codes. False for unsupported media, limits, missing or corrupt source files.
26586
+ */
26587
+ retryable: boolean;
26588
+ /**
26589
+ * Up to five distinct asset identifiers from this group, for inspecting original error details.
26590
+ */
26591
+ sample_asset_ids: Array<MediaAssetId>;
26592
+ };
26109
26593
  /**
26110
26594
  * Auto-resume configuration for paused sandboxes.
26111
26595
  */
@@ -30432,6 +30916,32 @@ export type CutTrack = {
30432
30916
  */
30433
30917
  items: Array<CutItem>;
30434
30918
  };
30919
+ /**
30920
+ * Overlap between adjacent visual clips on the same track; creating it shifts the right clip and same-track followers left by its length.
30921
+ */
30922
+ export type CutJoin = {
30923
+ /**
30924
+ * Join identifier returned by Join; reuse as the id argument to UpdateJoin or DeleteJoin inside execute.
30925
+ */
30926
+ id: string;
30927
+ /**
30928
+ * Visual track containing both endpoints, from AddTrack or the timeline track id.
30929
+ */
30930
+ track: string;
30931
+ /**
30932
+ * Outgoing clip identifier, from Insert or the timeline items.
30933
+ */
30934
+ left: string;
30935
+ /**
30936
+ * Incoming clip identifier, from Insert or the timeline items.
30937
+ */
30938
+ right: string;
30939
+ /**
30940
+ * Overlap duration in seconds, positive and shorter than each endpoint; incoming plus outgoing lengths may not exceed a clip length.
30941
+ */
30942
+ length: number;
30943
+ effect: CutJoinEffect;
30944
+ };
30435
30945
  /**
30436
30946
  * A named point on the project timeline.
30437
30947
  */
@@ -30449,23 +30959,39 @@ export type CutMarker = {
30449
30959
  */
30450
30960
  label: string;
30451
30961
  };
30452
- export type KnowledgeStaticChunking = {
30962
+ /**
30963
+ * 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.
30964
+ */
30965
+ export type KnowledgeChunkingInput = {
30453
30966
  /**
30454
- * static selects explicit chunk-size and overlap settings.
30967
+ * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
30455
30968
  */
30456
- type: 'static';
30969
+ type: 'auto';
30970
+ } | KnowledgeStaticChunking;
30971
+ /**
30972
+ * 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.
30973
+ */
30974
+ export type KnowledgeHierarchicalChunking = {
30457
30975
  /**
30458
- * Chunk-size and overlap limits in estimated tokens.
30976
+ * hierarchical selects smaller child chunks for matching and larger parent chunks for context.
30459
30977
  */
30460
- static: {
30978
+ type: 'hierarchical';
30979
+ /**
30980
+ * Required parent, child and overlap sizes in estimated tokens. All three values must be integers.
30981
+ */
30982
+ hierarchical: {
30461
30983
  /**
30462
- * Estimated tokens per chunk.
30984
+ * Maximum estimated tokens per parent chunk, from 101 through 4096; must exceed child_max_tokens.
30463
30985
  */
30464
- max_chunk_size_tokens: number;
30986
+ parent_max_tokens: number;
30465
30987
  /**
30466
- * Must not exceed half of max_chunk_size_tokens.
30988
+ * Maximum estimated tokens per child chunk, at least 100 and strictly smaller than parent_max_tokens.
30467
30989
  */
30468
- chunk_overlap_tokens: number;
30990
+ child_max_tokens: number;
30991
+ /**
30992
+ * Estimated tokens shared by adjacent children, from zero through floor(child_max_tokens / 2).
30993
+ */
30994
+ child_overlap_tokens: number;
30469
30995
  };
30470
30996
  };
30471
30997
  /**
@@ -30505,6 +31031,15 @@ export type KnowledgeSearchExplain = {
30505
31031
  */
30506
31032
  matched_terms: Array<string>;
30507
31033
  };
31034
+ /**
31035
+ * Stored chunking strategy for this attachment; auto input is returned as static settings.
31036
+ */
31037
+ export type KnowledgeChunking = KnowledgeStaticChunking | {
31038
+ /**
31039
+ * other identifies a stored strategy whose chunk-size settings are unavailable.
31040
+ */
31041
+ type: 'other';
31042
+ };
30508
31043
  /**
30509
31044
  * Aggregate processing state across the asset processing tasks.
30510
31045
  */
@@ -30513,14 +31048,66 @@ export type MediaProcessingState = 'pending' | 'processing' | 'ready' | 'partial
30513
31048
  * Task state: pending awaits execution; running is executing; ready succeeded; failed terminated unsuccessfully; unsupported cannot process this input; skipped was disabled or does not apply.
30514
31049
  */
30515
31050
  export type MediaKindState = 'pending' | 'running' | 'ready' | 'failed' | 'unsupported' | 'skipped';
31051
+ export type MediaTranscriptCorrection = {
31052
+ /**
31053
+ * Accepted local edits, including deterministic Arabic quantity normalization. Unsupported model edits are discarded.
31054
+ */
31055
+ readonly edits: Array<MediaTranscriptEdit>;
31056
+ /**
31057
+ * ready means correction and validation completed; failed means text is exactly the ASR original, with no accepted edits.
31058
+ */
31059
+ readonly correction_status: 'ready' | 'failed';
31060
+ /**
31061
+ * Configured correction model call ID; defaults to qwen3.8-flash.
31062
+ */
31063
+ readonly correction_model: string;
31064
+ /**
31065
+ * ready means reference ASR supplied text; missing means reference failed or was unavailable and correction proceeded without it.
31066
+ */
31067
+ readonly reference_status: 'ready' | 'missing';
31068
+ /**
31069
+ * Full reference ASR text, present when reference_status is ready. It supplies spelling evidence and has no timestamps.
31070
+ */
31071
+ readonly reference_text?: string;
31072
+ /**
31073
+ * Model call ID that supplied the reference text; defaults to qwen3-asr-flash.
31074
+ */
31075
+ readonly reference_model?: string;
31076
+ /**
31077
+ * Correction failure that caused verbatim fallback to the ASR original.
31078
+ */
31079
+ readonly correction_error?: {
31080
+ /**
31081
+ * Failure code for the optional transcript enhancement step.
31082
+ */
31083
+ code: string;
31084
+ /**
31085
+ * Failure detail; use reprocess to retry with the library’s current configuration.
31086
+ */
31087
+ message: string;
31088
+ };
31089
+ /**
31090
+ * Reference failure; it does not block correction.
31091
+ */
31092
+ readonly reference_error?: {
31093
+ /**
31094
+ * Failure code for the optional transcript enhancement step.
31095
+ */
31096
+ code: string;
31097
+ /**
31098
+ * Failure detail; use reprocess to retry with the library’s current configuration.
31099
+ */
31100
+ message: string;
31101
+ };
31102
+ };
30516
31103
  /**
30517
31104
  * Identifier of an immutable understanding result.
30518
31105
  */
30519
31106
  export type MediaUnderstandingId = string;
30520
31107
  /**
30521
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment.
31108
+ * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
30522
31109
  */
30523
- export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
31110
+ export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
30524
31111
  /**
30525
31112
  * Time range within the source media, expressed in milliseconds.
30526
31113
  */
@@ -30534,6 +31121,28 @@ export type MediaSegment = {
30534
31121
  */
30535
31122
  end_ms: number;
30536
31123
  };
31124
+ export type MediaShotVisual = {
31125
+ /**
31126
+ * Chinese summary of the entire shot using its keyframes together.
31127
+ */
31128
+ readonly caption: string;
31129
+ /**
31130
+ * Chinese description of the scene and shooting context.
31131
+ */
31132
+ readonly scene: string;
31133
+ /**
31134
+ * Location inferred from recognizable landmarks or readable place names; null without evidence.
31135
+ */
31136
+ readonly location_guess: string | null;
31137
+ /**
31138
+ * Visible text in reading order, preserving the source language.
31139
+ */
31140
+ readonly on_screen_text: Array<string>;
31141
+ /**
31142
+ * Quality and editing characteristics with confidence for every judgment.
31143
+ */
31144
+ readonly flags: MediaShotFlags;
31145
+ };
30537
31146
  /**
30538
31147
  * Evidence contributing to a search hit, optionally linked to an understanding and a source-media segment.
30539
31148
  */
@@ -30558,7 +31167,7 @@ export type MediaSemanticMatch = {
30558
31167
  /**
30559
31168
  * Type of change recorded for a library, asset, processing task, search index or batch.
30560
31169
  */
30561
- export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed';
31170
+ export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
30562
31171
  /**
30563
31172
  * Auto-resume enabled flag for paused sandboxes. Default false.
30564
31173
  */
@@ -31190,21 +31799,25 @@ export type AnthropicToolReferenceBlock = {
31190
31799
  */
31191
31800
  export type CutTextStyle = {
31192
31801
  /**
31193
- * Geist is the Latin typeface; Noto Sans SC is the simplified Chinese typeface.
31802
+ * Canonical font family name; call ListFonts() in the Cut script API to retrieve the available font families.
31194
31803
  */
31195
- font_family?: 'Geist' | 'Noto Sans SC';
31804
+ font_family?: string;
31196
31805
  /**
31197
31806
  * Text size in output pixels.
31198
31807
  */
31199
31808
  font_size?: number;
31200
31809
  /**
31201
- * Font weight: 400 is regular, 500 is medium and 700 is bold.
31810
+ * Positive requested font weight; each family has its own available catalog weights, and unsupported values resolve to the nearest available weight, preferring the heavier weight on a tie.
31202
31811
  */
31203
- font_weight?: 400 | 500 | 700;
31812
+ font_weight?: number;
31204
31813
  /**
31205
31814
  * Text color in #RRGGBB or #RRGGBBAA notation.
31206
31815
  */
31207
31816
  color?: string;
31817
+ /**
31818
+ * Optional solid or gradient glyph fill; gradients span the text box.
31819
+ */
31820
+ fill?: CutFill;
31208
31821
  /**
31209
31822
  * Optional text outline.
31210
31823
  */
@@ -31214,10 +31827,61 @@ export type CutTextStyle = {
31214
31827
  */
31215
31828
  color?: string;
31216
31829
  /**
31217
- * Outline width in output pixels.
31830
+ * Outline width in output pixels; must be non-negative and at most 40 pixels.
31218
31831
  */
31219
31832
  width?: number;
31220
31833
  };
31834
+ /**
31835
+ * Additional outlines, painted from outermost to innermost; at most 4 strokes.
31836
+ */
31837
+ strokes?: Array<{
31838
+ /**
31839
+ * Outline color in #RRGGBB or #RRGGBBAA notation.
31840
+ */
31841
+ color?: string;
31842
+ /**
31843
+ * Outline width in output pixels, from 0 to 40.
31844
+ */
31845
+ width?: number;
31846
+ }>;
31847
+ /**
31848
+ * Offset text shadows; at most 4 shadows. Offsets are non-negative output pixels; blur is 0 to 100 output pixels.
31849
+ */
31850
+ shadows?: Array<{
31851
+ /**
31852
+ * Shadow color in #RRGGBB or #RRGGBBAA notation.
31853
+ */
31854
+ color?: string;
31855
+ /**
31856
+ * Non-negative horizontal offset in output pixels.
31857
+ */
31858
+ x?: number;
31859
+ /**
31860
+ * Non-negative vertical offset in output pixels.
31861
+ */
31862
+ y?: number;
31863
+ /**
31864
+ * Blur radius in output pixels, from 0 to 100.
31865
+ */
31866
+ blur?: number;
31867
+ }>;
31868
+ /**
31869
+ * Colored glow around glyphs; radius is in output pixels, from 0 to 100, and strength is from 0 to 1.
31870
+ */
31871
+ glow?: {
31872
+ /**
31873
+ * Glow color in #RRGGBB or #RRGGBBAA notation.
31874
+ */
31875
+ color?: string;
31876
+ /**
31877
+ * Glow blur radius in output pixels, from 0 to 100.
31878
+ */
31879
+ radius?: number;
31880
+ /**
31881
+ * Glow opacity multiplier from 0 to 1.
31882
+ */
31883
+ strength?: number;
31884
+ };
31221
31885
  /**
31222
31886
  * Optional text background color as hexadecimal RGB or RGBA.
31223
31887
  */
@@ -31231,9 +31895,13 @@ export type CutTextStyle = {
31231
31895
  */
31232
31896
  max_width?: number;
31233
31897
  /**
31234
- * Caption placement: top is near the upper edge, middle is centered, bottom is near the lower edge.
31898
+ * Text or caption placement: top/middle/bottom center the box at 12%/50%/85% of height without margin; omitted text position preserves its transform.
31235
31899
  */
31236
31900
  position?: 'top' | 'middle' | 'bottom';
31901
+ /**
31902
+ * Box edge distance from the top or bottom as a fraction of canvas height; middle ignores it.
31903
+ */
31904
+ margin?: number;
31237
31905
  /**
31238
31906
  * Optional color applied to the currently spoken caption word.
31239
31907
  */
@@ -31345,6 +32013,200 @@ export type CutItem = {
31345
32013
  */
31346
32014
  words?: Array<CutCaptionWord>;
31347
32015
  };
32016
+ /**
32017
+ * 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.
32018
+ */
32019
+ export type CutJoinEffect = {
32020
+ /**
32021
+ * Dissolve: Blend the outgoing shot into the incoming shot.
32022
+ */
32023
+ kind: 'dissolve';
32024
+ } | {
32025
+ /**
32026
+ * Dip: Fade through a solid color between the two shots.
32027
+ */
32028
+ kind: 'dip';
32029
+ /**
32030
+ * Solid color shown between shots.
32031
+ */
32032
+ color?: 'black' | 'white';
32033
+ } | {
32034
+ /**
32035
+ * Push: Slide the incoming shot into view as it pushes the outgoing shot away.
32036
+ */
32037
+ kind: 'push';
32038
+ /**
32039
+ * Direction in which the transition moves across the frame.
32040
+ */
32041
+ direction?: 'left' | 'right' | 'up' | 'down';
32042
+ } | {
32043
+ /**
32044
+ * Wipe: Reveal the incoming shot behind an edge moving across the outgoing shot.
32045
+ */
32046
+ kind: 'wipe';
32047
+ /**
32048
+ * Direction in which the transition moves across the frame.
32049
+ */
32050
+ direction?: 'left' | 'right' | 'up' | 'down';
32051
+ /**
32052
+ * Edge softness from a sharp boundary to a fully softened blend.
32053
+ */
32054
+ softness?: number;
32055
+ } | {
32056
+ /**
32057
+ * Iris: Reveal the incoming shot through an expanding circular opening.
32058
+ */
32059
+ kind: 'iris';
32060
+ /**
32061
+ * Horizontal opening center from the left edge to the right edge.
32062
+ */
32063
+ center_x?: number;
32064
+ /**
32065
+ * Vertical opening center from the top edge to the bottom edge.
32066
+ */
32067
+ center_y?: number;
32068
+ } | {
32069
+ /**
32070
+ * Blinds: Reveal the incoming shot through a set of parallel strips.
32071
+ */
32072
+ kind: 'blinds';
32073
+ /**
32074
+ * Number of strips revealing the incoming shot.
32075
+ */
32076
+ count?: number;
32077
+ /**
32078
+ * Orientation of the revealing strips.
32079
+ */
32080
+ orientation?: 'vertical' | 'horizontal';
32081
+ } | {
32082
+ /**
32083
+ * Blur: Blur the outgoing shot into the incoming shot before returning to focus.
32084
+ */
32085
+ kind: 'blur';
32086
+ /**
32087
+ * Blur radius in pixels at a reference frame height of 1080 pixels.
32088
+ */
32089
+ radius?: number;
32090
+ } | {
32091
+ /**
32092
+ * Zoom transition.
32093
+ */
32094
+ kind: 'zoom';
32095
+ /**
32096
+ * Zoom in or out.
32097
+ */
32098
+ direction?: 'in' | 'out';
32099
+ /**
32100
+ * Peak scale increase as a multiple of the original scale.
32101
+ */
32102
+ amount?: number;
32103
+ /**
32104
+ * Radial blur strength; zero disables blur sampling.
32105
+ */
32106
+ blur?: number;
32107
+ } | {
32108
+ /**
32109
+ * Clock transition.
32110
+ */
32111
+ kind: 'clock';
32112
+ /**
32113
+ * Sweep direction.
32114
+ */
32115
+ direction?: 'clockwise' | 'counterclockwise';
32116
+ /**
32117
+ * Start angle in degrees, with zero at twelve o'clock.
32118
+ */
32119
+ start_angle?: number;
32120
+ /**
32121
+ * Angular feather width.
32122
+ */
32123
+ softness?: number;
32124
+ } | {
32125
+ /**
32126
+ * Flash transition.
32127
+ */
32128
+ kind: 'flash';
32129
+ /**
32130
+ * Flash color.
32131
+ */
32132
+ color?: 'white' | 'black';
32133
+ /**
32134
+ * Flash strength.
32135
+ */
32136
+ intensity?: number;
32137
+ } | {
32138
+ /**
32139
+ * Luma transition.
32140
+ */
32141
+ kind: 'luma';
32142
+ /**
32143
+ * Built-in map. User maps are not available yet.
32144
+ */
32145
+ map?: 'radial' | 'diagonal' | 'clouds' | 'spiral' | 'honeycomb' | 'bars';
32146
+ /**
32147
+ * Edge feather width.
32148
+ */
32149
+ softness?: number;
32150
+ /**
32151
+ * Reveal order.
32152
+ */
32153
+ invert?: 'normal' | 'inverted';
32154
+ };
32155
+ export type KnowledgeStaticChunking = {
32156
+ /**
32157
+ * static selects explicit chunk-size and overlap settings.
32158
+ */
32159
+ type: 'static';
32160
+ /**
32161
+ * Chunk-size and overlap limits in estimated tokens.
32162
+ */
32163
+ static: {
32164
+ /**
32165
+ * Estimated tokens per chunk.
32166
+ */
32167
+ max_chunk_size_tokens: number;
32168
+ /**
32169
+ * Must not exceed half of max_chunk_size_tokens.
32170
+ */
32171
+ chunk_overlap_tokens: number;
32172
+ };
32173
+ };
32174
+ export type MediaTranscriptEdit = {
32175
+ /**
32176
+ * Original literal text replaced by this accepted edit.
32177
+ */
32178
+ readonly from: string;
32179
+ /**
32180
+ * Replacement text. Model edits require a length difference of at most two Unicode characters, or a target present in hotwords or the reference transcript. Arabic quantity normalization is deterministic.
32181
+ */
32182
+ readonly to: string;
32183
+ /**
32184
+ * Zero-based index in the assembled, hallucination-filtered ASR segments. Segment timestamps do not change.
32185
+ */
32186
+ readonly segment_id: number;
32187
+ };
32188
+ export type MediaShotFlags = {
32189
+ /**
32190
+ * Slide or screen-recorded picture/text sequence rather than live footage.
32191
+ */
32192
+ readonly slideshow: MediaShotFlag;
32193
+ /**
32194
+ * Visible watermark.
32195
+ */
32196
+ readonly watermark: MediaShotFlag;
32197
+ /**
32198
+ * Fingers or hands framing the scene.
32199
+ */
32200
+ readonly hand_frame: MediaShotFlag;
32201
+ /**
32202
+ * Added text sticker or overlay.
32203
+ */
32204
+ readonly text_sticker: MediaShotFlag;
32205
+ /**
32206
+ * Blur, severe camera shake, bad exposure or another visible quality defect.
32207
+ */
32208
+ readonly low_quality: MediaShotFlag;
32209
+ };
31348
32210
  export type SandboxSandboxIamToken = {
31349
32211
  /**
31350
32212
  * Audience of the workload token, stored exactly as provided.
@@ -31530,6 +32392,51 @@ export type AnthropicCitationsConfig = {
31530
32392
  */
31531
32393
  enabled: boolean;
31532
32394
  };
32395
+ /**
32396
+ * Solid color or a gradient over the styled text box.
32397
+ */
32398
+ export type CutFill = string | {
32399
+ /**
32400
+ * Linear gradient; angle is in degrees and stop positions range from 0 to 1.
32401
+ */
32402
+ linear?: {
32403
+ /**
32404
+ * Gradient angle in degrees; 0 runs left to right.
32405
+ */
32406
+ angle?: number;
32407
+ /**
32408
+ * Gradient color stops; each position is a fraction from 0 to 1.
32409
+ */
32410
+ stops?: Array<{
32411
+ /**
32412
+ * Stop position as a fraction from 0 to 1.
32413
+ */
32414
+ at?: number;
32415
+ /**
32416
+ * Stop color in #RRGGBB or #RRGGBBAA notation.
32417
+ */
32418
+ color?: string;
32419
+ }>;
32420
+ };
32421
+ /**
32422
+ * Radial gradient with stop positions as fractions from 0 to 1.
32423
+ */
32424
+ radial?: {
32425
+ /**
32426
+ * Gradient color stops; each position is a fraction from 0 to 1.
32427
+ */
32428
+ stops?: Array<{
32429
+ /**
32430
+ * Stop position as a fraction from 0 to 1.
32431
+ */
32432
+ at?: number;
32433
+ /**
32434
+ * Stop color in #RRGGBB or #RRGGBBAA notation.
32435
+ */
32436
+ color?: string;
32437
+ }>;
32438
+ };
32439
+ };
31533
32440
  /**
31534
32441
  * Visual placement; coordinates are normalized canvas centers.
31535
32442
  */
@@ -31606,6 +32513,16 @@ export type CutCaptionWord = {
31606
32513
  */
31607
32514
  length: number;
31608
32515
  };
32516
+ export type MediaShotFlag = {
32517
+ /**
32518
+ * True when this visual characteristic is present.
32519
+ */
32520
+ readonly value: boolean;
32521
+ /**
32522
+ * Confidence in this true or false judgment, from 0 to 1.
32523
+ */
32524
+ readonly confidence: number;
32525
+ };
31609
32526
  export type PraxisSdkSseGetBrowserV1SessionsSessionIdStream = BrowserStreamMessage;
31610
32527
  /**
31611
32528
  * One decoded SSE event. The data field contains the decoded JSON payload, or a documented string sentinel. SSE comments are keepalives, not events. Optional id/event fields are absent when the server does not send them.
@@ -31901,6 +32818,28 @@ export type AutomationJsonValueWritable = null | string | number | boolean | Aut
31901
32818
  export type AutomationJsonObjectWritable = {
31902
32819
  [key: string]: AutomationJsonValueWritable;
31903
32820
  };
32821
+ export type KnowledgeNativeSearchPageWritable = {
32822
+ /**
32823
+ * Object discriminator; vector_store.search_results.page identifies a search result page.
32824
+ */
32825
+ object: 'vector_store.search_results.page';
32826
+ /**
32827
+ * The queries used for retrieval, one per input query; rewritten when rewrite_query is true, otherwise the input as sent.
32828
+ */
32829
+ search_query: Array<string>;
32830
+ /**
32831
+ * One result per matched chunk; the same file_id can occur more than once.
32832
+ */
32833
+ data: Array<KnowledgeNativeSearchResultWritable>;
32834
+ /**
32835
+ * True when filtered chunks exceed max_num_results; next_page remains null.
32836
+ */
32837
+ has_more: boolean;
32838
+ /**
32839
+ * Always null; no next search page.
32840
+ */
32841
+ next_page: null;
32842
+ };
31904
32843
  /**
31905
32844
  * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
31906
32845
  */
@@ -31908,7 +32847,7 @@ export type MediaLibraryWritable = {
31908
32847
  /**
31909
32848
  * Resolved model call IDs used for new uploads and reprocessing.
31910
32849
  */
31911
- models: MediaMediaModels;
32850
+ models: MediaMediaModelsWritable;
31912
32851
  /**
31913
32852
  * Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
31914
32853
  */
@@ -31969,6 +32908,316 @@ export type MediaLibraryPageWritable = MediaPage & {
31969
32908
  */
31970
32909
  next_cursor: string | null;
31971
32910
  };
32911
+ /**
32912
+ * Assets in this page, ordered by creation time descending.
32913
+ */
32914
+ export type MediaAssetPageWritable = MediaPage & {
32915
+ /**
32916
+ * Assets in this page, ordered by creation time descending.
32917
+ */
32918
+ data: Array<MediaAssetWritable>;
32919
+ /**
32920
+ * Opaque token to pass as cursor to listAssets; null means no further page.
32921
+ */
32922
+ next_cursor: string | null;
32923
+ };
32924
+ /**
32925
+ * Upload response: a resource for a normal upload, an acknowledgement for an incomplete chunk, or a resource with done=true for the final chunk.
32926
+ */
32927
+ export type MediaUploadResultWritable = MediaCloudinaryResourceWritable | MediaChunkPending | MediaChunkCompleteWritable;
32928
+ /**
32929
+ * A media resource with its library, content hash, processing progress and semantic-search availability.
32930
+ */
32931
+ export type MediaAssetWritable = {
32932
+ /**
32933
+ * Generated asset identifier: 32 lowercase hexadecimal characters, preserved across overwrites.
32934
+ */
32935
+ asset_id: MediaAssetId;
32936
+ /**
32937
+ * Delivery identifier unique within this library, used in asset URLs.
32938
+ */
32939
+ public_id: string;
32940
+ /**
32941
+ * Human-readable asset name, independent of its delivery identifier.
32942
+ */
32943
+ display_name: string;
32944
+ /**
32945
+ * Organizational folder path; the empty string denotes the root folder.
32946
+ */
32947
+ asset_folder: string;
32948
+ /**
32949
+ * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
32950
+ */
32951
+ resource_type: MediaResourceType;
32952
+ /**
32953
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
32954
+ */
32955
+ type: MediaDeliveryType;
32956
+ /**
32957
+ * Detected file format used as the delivery URL extension.
32958
+ */
32959
+ format: string;
32960
+ /**
32961
+ * Monotonically increasing asset version used in delivery URLs; based on upload time in Unix seconds and advanced on overwrite.
32962
+ */
32963
+ version: number;
32964
+ /**
32965
+ * Identifier for this asset version, regenerated on overwrite.
32966
+ */
32967
+ version_id: string;
32968
+ /**
32969
+ * Size of the original source content, in bytes.
32970
+ */
32971
+ bytes: number;
32972
+ /**
32973
+ * MD5 digest of the source bytes, as 32 lowercase hexadecimal characters.
32974
+ */
32975
+ etag: string;
32976
+ /**
32977
+ * Source image or video width in pixels, when known.
32978
+ */
32979
+ width?: number;
32980
+ /**
32981
+ * Source image or video height in pixels, when known.
32982
+ */
32983
+ height?: number;
32984
+ /**
32985
+ * Source audio or video duration in seconds, when known.
32986
+ */
32987
+ duration?: number;
32988
+ /**
32989
+ * Number of pages recorded for the asset; omitted when no page count is stored.
32990
+ */
32991
+ pages?: number;
32992
+ /**
32993
+ * True for audio-only media, which uses resource_type video.
32994
+ */
32995
+ is_audio?: boolean;
32996
+ /**
32997
+ * Detected audio track metadata, omitted when no audio track information is available.
32998
+ */
32999
+ audio?: {
33000
+ /**
33001
+ * Detected audio codec identifier, when known.
33002
+ */
33003
+ codec?: string;
33004
+ /**
33005
+ * Number of audio channels in the detected track, when known.
33006
+ */
33007
+ channels?: number;
33008
+ /**
33009
+ * Audio sampling frequency in hertz, when known.
33010
+ */
33011
+ frequency?: number;
33012
+ };
33013
+ /**
33014
+ * False when the video is known to contain no audio track; omitted when audio presence is unknown or an audio track exists.
33015
+ */
33016
+ has_audio?: false;
33017
+ /**
33018
+ * Original or overridden source filename with its final extension removed.
33019
+ */
33020
+ original_filename?: string;
33021
+ /**
33022
+ * Labels attached to the asset.
33023
+ */
33024
+ tags: Array<string>;
33025
+ /**
33026
+ * Custom string metadata; omitted when empty or excluded by the search projection.
33027
+ */
33028
+ context?: {
33029
+ /**
33030
+ * Caller-supplied metadata entries with string values.
33031
+ */
33032
+ custom: {
33033
+ [key: string]: string;
33034
+ };
33035
+ };
33036
+ /**
33037
+ * Time this asset identity was created, in UTC.
33038
+ */
33039
+ created_at: MediaIsoTimestamp;
33040
+ /**
33041
+ * URL for retrieving this version of the asset’s original content.
33042
+ */
33043
+ url: string;
33044
+ /**
33045
+ * 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.
33046
+ */
33047
+ secure_url: string;
33048
+ /**
33049
+ * False because this response represents stored source content.
33050
+ */
33051
+ placeholder: false;
33052
+ /**
33053
+ * True when overwrite is false and the public_id already exists; the existing resource is returned.
33054
+ */
33055
+ existing?: boolean;
33056
+ /**
33057
+ * Progress of understanding and embedding tasks for the asset.
33058
+ */
33059
+ processing: MediaProcessingWritable;
33060
+ /**
33061
+ * Identifier of the library containing this asset.
33062
+ */
33063
+ library_id: MediaLibraryId;
33064
+ /**
33065
+ * SHA-256 digest of the source bytes, as 64 lowercase hexadecimal characters.
33066
+ */
33067
+ sha256: string;
33068
+ /**
33069
+ * Resource status; active identifies an asset that has not been deleted.
33070
+ */
33071
+ status: 'active';
33072
+ /**
33073
+ * True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
33074
+ */
33075
+ has_alpha?: boolean;
33076
+ /**
33077
+ * Search-vector status: pending awaits vector generation or reprocessing; ready has searchable vectors; unavailable indicates disabled, unsupported or failed embedding. Existing vectors may still serve searches while reprocessing is pending.
33078
+ */
33079
+ semantic: 'pending' | 'ready' | 'unavailable';
33080
+ /**
33081
+ * Generated video previews, present once preview generation succeeds.
33082
+ */
33083
+ preview?: {
33084
+ /**
33085
+ * Delivery URL of the video’s first-frame poster.
33086
+ */
33087
+ poster_url?: string;
33088
+ /**
33089
+ * Preview sprite sheet with tile dimensions and sample spacing.
33090
+ */
33091
+ storyboard?: MediaStoryboard;
33092
+ /**
33093
+ * Low-bitrate proxy renditions for smooth playback while editing; exports use the original source.
33094
+ */
33095
+ proxy?: {
33096
+ /**
33097
+ * Proxy audio rendition, present once it has been generated.
33098
+ */
33099
+ audio?: {
33100
+ /**
33101
+ * Delivery URL of the proxy audio rendition.
33102
+ */
33103
+ url: string;
33104
+ /**
33105
+ * Proxy audio bitrate in bits per second.
33106
+ */
33107
+ bitrate: number;
33108
+ };
33109
+ /**
33110
+ * Proxy video rendition, present once it has been generated.
33111
+ */
33112
+ video?: {
33113
+ /**
33114
+ * Delivery URL of the proxy video rendition.
33115
+ */
33116
+ url: string;
33117
+ /**
33118
+ * Proxy video bitrate in bits per second.
33119
+ */
33120
+ bitrate: number;
33121
+ /**
33122
+ * Proxy video frame width in pixels.
33123
+ */
33124
+ width: number;
33125
+ /**
33126
+ * Proxy video frame height in pixels.
33127
+ */
33128
+ height: number;
33129
+ };
33130
+ };
33131
+ };
33132
+ /**
33133
+ * Source details for the video-generation job that created this asset.
33134
+ */
33135
+ generation?: {
33136
+ /**
33137
+ * Job id that generated this asset.
33138
+ */
33139
+ job_id: MediaJobId;
33140
+ /**
33141
+ * Generation intent used to create the asset; v1 supports video.generate.
33142
+ */
33143
+ intent: string;
33144
+ /**
33145
+ * Text prompt submitted for the generation job.
33146
+ */
33147
+ prompt: string;
33148
+ /**
33149
+ * Router video-generation model that produced the asset.
33150
+ */
33151
+ model: string;
33152
+ };
33153
+ };
33154
+ /**
33155
+ * Understanding results in this page, ordered by creation time ascending.
33156
+ */
33157
+ export type MediaUnderstandingPageWritable = MediaPage & {
33158
+ /**
33159
+ * Understanding results in this page, ordered by creation time ascending.
33160
+ */
33161
+ data: Array<MediaUnderstandingWritable>;
33162
+ /**
33163
+ * Opaque token to pass as cursor to listUnderstandings; null means no further page.
33164
+ */
33165
+ next_cursor: string | null;
33166
+ };
33167
+ /**
33168
+ * Expression-search page with match counts, elapsed time and optional facet counts.
33169
+ */
33170
+ export type MediaExpressionSearchResultWritable = {
33171
+ /**
33172
+ * Number of matching assets across pages; a lower bound when total_count_exact is false.
33173
+ */
33174
+ total_count: number;
33175
+ /**
33176
+ * Elapsed search time in whole milliseconds.
33177
+ */
33178
+ time: number;
33179
+ /**
33180
+ * Continuation token for the next page; omitted when no further page is available.
33181
+ */
33182
+ next_cursor?: string;
33183
+ /**
33184
+ * Assets in this page, ordered by sort_by; tags and context follow with_field.
33185
+ */
33186
+ resources: Array<MediaSearchAssetWritable>;
33187
+ /**
33188
+ * Requested facet counts, keyed by facet name and then by field value.
33189
+ */
33190
+ aggregations?: {
33191
+ [key: string]: {
33192
+ [key: string]: number;
33193
+ };
33194
+ };
33195
+ /**
33196
+ * Whether total_count covers all matches; false indicates a bounded partial count.
33197
+ */
33198
+ total_count_exact?: boolean;
33199
+ /**
33200
+ * Whether the returned facet counts cover all matching assets.
33201
+ */
33202
+ aggregations_exact?: boolean;
33203
+ };
33204
+ /**
33205
+ * Ranked search hits and the embedding producer used for the query.
33206
+ */
33207
+ export type MediaSemanticSearchResultWritable = {
33208
+ /**
33209
+ * Ranked assets up to top_k; an empty array means no eligible matches were found.
33210
+ */
33211
+ hits: Array<MediaSemanticHitWritable>;
33212
+ /**
33213
+ * Embedding model identifier used for the query, or for the source asset embedding in an asset-based visual query.
33214
+ */
33215
+ embedding_producer: string;
33216
+ /**
33217
+ * Number of distinct candidate asset identifiers, or unresolved vector identifiers, excluded because their vectors or assets were missing, deleted or stale; not a count of all pending assets in the library.
33218
+ */
33219
+ not_ready_excluded: number;
33220
+ };
31972
33221
  /**
31973
33222
  * Configuration for the openrouter:files server tool
31974
33223
  */
@@ -32008,9 +33257,553 @@ export type AgentManaged193Writable = {
32008
33257
  export type AgentManaged143Writable = {
32009
33258
  [key: string]: string;
32010
33259
  };
33260
+ export type KnowledgeNativeSearchResultWritable = {
33261
+ /**
33262
+ * Resource ID.
33263
+ */
33264
+ file_id: string;
33265
+ /**
33266
+ * Original source filename for the matched file.
33267
+ */
33268
+ filename: string;
33269
+ /**
33270
+ * Relevance ranking score for this chunk, clamped to the range 0 to 1; not a probability.
33271
+ */
33272
+ score: number;
33273
+ /**
33274
+ * Current file attributes used for filtering; null when unset.
33275
+ */
33276
+ attributes: KnowledgeAttributes | null;
33277
+ /**
33278
+ * Matched chunk text and its source coordinates; one chunk per native result.
33279
+ */
33280
+ content: Array<{
33281
+ /**
33282
+ * text identifies an extracted text chunk.
33283
+ */
33284
+ type: 'text';
33285
+ /**
33286
+ * Extracted text of the matched chunk, which may overlap neighboring chunks.
33287
+ */
33288
+ text: string;
33289
+ /**
33290
+ * Resource ID.
33291
+ */
33292
+ chunk_id?: string;
33293
+ /**
33294
+ * One-based source page containing the start of this chunk; null when no page mapping is available.
33295
+ */
33296
+ page?: number | null;
33297
+ /**
33298
+ * Start and end offsets in UTF-16 code units.
33299
+ */
33300
+ span?: [
33301
+ number,
33302
+ number
33303
+ ];
33304
+ }>;
33305
+ /**
33306
+ * Native search explanation, included only when praxis.explain is requested.
33307
+ */
33308
+ praxis?: {
33309
+ explain: KnowledgeSearchExplain;
33310
+ };
33311
+ };
33312
+ /**
33313
+ * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
33314
+ */
33315
+ export type MediaMediaModelsWritable = {
33316
+ /**
33317
+ * Model call ID for visual descriptions; the model must support image input.
33318
+ */
33319
+ vision: string;
33320
+ /**
33321
+ * Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
33322
+ */
33323
+ embedding: string;
33324
+ /**
33325
+ * 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.
33326
+ */
33327
+ transcription: string;
33328
+ };
33329
+ /**
33330
+ * Cloudinary-compatible resource. processing is present when the asset was uploaded with auto_tagging; otherwise it is omitted. Native Asset responses always include processing.
33331
+ */
33332
+ export type MediaCloudinaryResourceWritable = {
33333
+ /**
33334
+ * Generated asset identifier: 32 lowercase hexadecimal characters, preserved across overwrites.
33335
+ */
33336
+ asset_id: MediaAssetId;
33337
+ /**
33338
+ * Delivery identifier unique within this library, used in asset URLs.
33339
+ */
33340
+ public_id: string;
33341
+ /**
33342
+ * Human-readable asset name, independent of its delivery identifier.
33343
+ */
33344
+ display_name: string;
33345
+ /**
33346
+ * Organizational folder path; the empty string denotes the root folder.
33347
+ */
33348
+ asset_folder: string;
33349
+ /**
33350
+ * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
33351
+ */
33352
+ resource_type: MediaResourceType;
33353
+ /**
33354
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
33355
+ */
33356
+ type: MediaDeliveryType;
33357
+ /**
33358
+ * Detected file format used as the delivery URL extension.
33359
+ */
33360
+ format: string;
33361
+ /**
33362
+ * Monotonically increasing asset version used in delivery URLs; based on upload time in Unix seconds and advanced on overwrite.
33363
+ */
33364
+ version: number;
33365
+ /**
33366
+ * Identifier for this asset version, regenerated on overwrite.
33367
+ */
33368
+ version_id: string;
33369
+ /**
33370
+ * Size of the original source content, in bytes.
33371
+ */
33372
+ bytes: number;
33373
+ /**
33374
+ * MD5 digest of the source bytes, as 32 lowercase hexadecimal characters.
33375
+ */
33376
+ etag: string;
33377
+ /**
33378
+ * Source image or video width in pixels, when known.
33379
+ */
33380
+ width?: number;
33381
+ /**
33382
+ * Source image or video height in pixels, when known.
33383
+ */
33384
+ height?: number;
33385
+ /**
33386
+ * Source audio or video duration in seconds, when known.
33387
+ */
33388
+ duration?: number;
33389
+ /**
33390
+ * Number of pages recorded for the asset; omitted when no page count is stored.
33391
+ */
33392
+ pages?: number;
33393
+ /**
33394
+ * True for audio-only media, which uses resource_type video.
33395
+ */
33396
+ is_audio?: boolean;
33397
+ /**
33398
+ * Detected audio track metadata, omitted when no audio track information is available.
33399
+ */
33400
+ audio?: {
33401
+ /**
33402
+ * Detected audio codec identifier, when known.
33403
+ */
33404
+ codec?: string;
33405
+ /**
33406
+ * Number of audio channels in the detected track, when known.
33407
+ */
33408
+ channels?: number;
33409
+ /**
33410
+ * Audio sampling frequency in hertz, when known.
33411
+ */
33412
+ frequency?: number;
33413
+ };
33414
+ /**
33415
+ * False when the video is known to contain no audio track; omitted when audio presence is unknown or an audio track exists.
33416
+ */
33417
+ has_audio?: false;
33418
+ /**
33419
+ * Original or overridden source filename with its final extension removed.
33420
+ */
33421
+ original_filename?: string;
33422
+ /**
33423
+ * Labels attached to the asset.
33424
+ */
33425
+ tags: Array<string>;
33426
+ /**
33427
+ * Custom string metadata; omitted when empty or excluded by the search projection.
33428
+ */
33429
+ context?: {
33430
+ /**
33431
+ * Caller-supplied metadata entries with string values.
33432
+ */
33433
+ custom: {
33434
+ [key: string]: string;
33435
+ };
33436
+ };
33437
+ /**
33438
+ * Time this asset identity was created, in UTC.
33439
+ */
33440
+ created_at: MediaIsoTimestamp;
33441
+ /**
33442
+ * URL for retrieving this version of the asset’s original content.
33443
+ */
33444
+ url: string;
33445
+ /**
33446
+ * 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.
33447
+ */
33448
+ secure_url: string;
33449
+ /**
33450
+ * False because this response represents stored source content.
33451
+ */
33452
+ placeholder: false;
33453
+ /**
33454
+ * True when overwrite=false returns the asset already stored under the requested public_id.
33455
+ */
33456
+ existing?: boolean;
33457
+ /**
33458
+ * Processing progress, included when auto_tagging was requested.
33459
+ */
33460
+ processing?: MediaProcessingWritable;
33461
+ };
33462
+ export type MediaChunkCompleteWritable = MediaCloudinaryResourceWritable & {
33463
+ /**
33464
+ * True when the final chunk has completed the asset upload.
33465
+ */
33466
+ done: true;
33467
+ };
33468
+ /**
33469
+ * 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.
33470
+ */
33471
+ export type MediaProcessingWritable = {
33472
+ state: MediaProcessingState;
33473
+ /**
33474
+ * Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
33475
+ */
33476
+ kinds: {
33477
+ [key: string]: MediaKindState;
33478
+ };
33479
+ /**
33480
+ * Time the processing state was last updated, in UTC.
33481
+ */
33482
+ updated_at: MediaIsoTimestamp;
33483
+ };
33484
+ /**
33485
+ * An immutable understanding result for an asset version, including superseded history when requested.
33486
+ */
33487
+ export type MediaUnderstandingWritable = {
33488
+ /**
33489
+ * Generated identifier of this understanding result.
33490
+ */
33491
+ id: MediaUnderstandingId;
33492
+ /**
33493
+ * Identifier of the asset from which this result was produced.
33494
+ */
33495
+ asset_id: MediaAssetId;
33496
+ /**
33497
+ * Asset version processed to produce this result; compare with the asset’s current version.
33498
+ */
33499
+ asset_version: number;
33500
+ /**
33501
+ * 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.
33502
+ */
33503
+ kind: MediaUnderstandingKind;
33504
+ /**
33505
+ * Producer model identifier; a failure may use the configured model when no model response is available.
33506
+ */
33507
+ producer: string;
33508
+ /**
33509
+ * Version of the producer that generated this understanding result.
33510
+ */
33511
+ producer_version: string;
33512
+ /**
33513
+ * Source-media time range for a frame or transcript segment; null for results without a segment.
33514
+ */
33515
+ segment: MediaSegment | null;
33516
+ /**
33517
+ * Result status: ready contains completed output; failed records an error.
33518
+ */
33519
+ status: 'ready' | 'failed';
33520
+ /**
33521
+ * Text output, such as a caption, recognized text or transcript; null for structured-only or failed results.
33522
+ */
33523
+ content: string | null;
33524
+ /**
33525
+ * 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.
33526
+ */
33527
+ data: unknown | null;
33528
+ /**
33529
+ * Confidence value recorded by the producer; null when no confidence value is recorded.
33530
+ */
33531
+ confidence: number | null;
33532
+ /**
33533
+ * Failure code and message, or null for a successful result.
33534
+ */
33535
+ error: {
33536
+ /**
33537
+ * Failure code identifying why understanding could not complete.
33538
+ */
33539
+ code: string;
33540
+ /**
33541
+ * Human-readable explanation of the understanding failure.
33542
+ */
33543
+ message: string;
33544
+ } | null;
33545
+ /**
33546
+ * Whether a newer result or asset version has replaced this result. Excluded from listing unless include_superseded is true.
33547
+ */
33548
+ superseded: boolean;
33549
+ /**
33550
+ * Time this immutable result was recorded, in UTC.
33551
+ */
33552
+ created_at: MediaIsoTimestamp;
33553
+ };
33554
+ /**
33555
+ * A native asset returned by expression search; tags and context are included only when requested in with_field.
33556
+ */
33557
+ export type MediaSearchAssetWritable = {
33558
+ /**
33559
+ * Generated asset identifier: 32 lowercase hexadecimal characters, preserved across overwrites.
33560
+ */
33561
+ asset_id: MediaAssetId;
33562
+ /**
33563
+ * Delivery identifier unique within this library, used in asset URLs.
33564
+ */
33565
+ public_id: string;
33566
+ /**
33567
+ * Human-readable asset name, independent of its delivery identifier.
33568
+ */
33569
+ display_name: string;
33570
+ /**
33571
+ * Organizational folder path; the empty string denotes the root folder.
33572
+ */
33573
+ asset_folder: string;
33574
+ /**
33575
+ * Stored media category: image for images, video for video or audio, and raw for other files. Upload also accepts auto for detection.
33576
+ */
33577
+ resource_type: MediaResourceType;
33578
+ /**
33579
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
33580
+ */
33581
+ type: MediaDeliveryType;
33582
+ /**
33583
+ * Detected file format used as the delivery URL extension.
33584
+ */
33585
+ format: string;
33586
+ /**
33587
+ * Monotonically increasing asset version used in delivery URLs; based on upload time in Unix seconds and advanced on overwrite.
33588
+ */
33589
+ version: number;
33590
+ /**
33591
+ * Identifier for this asset version, regenerated on overwrite.
33592
+ */
33593
+ version_id: string;
33594
+ /**
33595
+ * Size of the original source content, in bytes.
33596
+ */
33597
+ bytes: number;
33598
+ /**
33599
+ * MD5 digest of the source bytes, as 32 lowercase hexadecimal characters.
33600
+ */
33601
+ etag: string;
33602
+ /**
33603
+ * Source image or video width in pixels, when known.
33604
+ */
33605
+ width?: number;
33606
+ /**
33607
+ * Source image or video height in pixels, when known.
33608
+ */
33609
+ height?: number;
33610
+ /**
33611
+ * Source audio or video duration in seconds, when known.
33612
+ */
33613
+ duration?: number;
33614
+ /**
33615
+ * Number of pages recorded for the asset; omitted when no page count is stored.
33616
+ */
33617
+ pages?: number;
33618
+ /**
33619
+ * True for audio-only media, which uses resource_type video.
33620
+ */
33621
+ is_audio?: boolean;
33622
+ /**
33623
+ * Detected audio track metadata, omitted when no audio track information is available.
33624
+ */
33625
+ audio?: {
33626
+ /**
33627
+ * Detected audio codec identifier, when known.
33628
+ */
33629
+ codec?: string;
33630
+ /**
33631
+ * Number of audio channels in the detected track, when known.
33632
+ */
33633
+ channels?: number;
33634
+ /**
33635
+ * Audio sampling frequency in hertz, when known.
33636
+ */
33637
+ frequency?: number;
33638
+ };
33639
+ /**
33640
+ * False when the video is known to contain no audio track; omitted when audio presence is unknown or an audio track exists.
33641
+ */
33642
+ has_audio?: false;
33643
+ /**
33644
+ * Original or overridden source filename with its final extension removed.
33645
+ */
33646
+ original_filename?: string;
33647
+ /**
33648
+ * Labels attached to the asset.
33649
+ */
33650
+ tags?: Array<string>;
33651
+ /**
33652
+ * Custom string metadata; omitted when empty or excluded by the search projection.
33653
+ */
33654
+ context?: {
33655
+ /**
33656
+ * Caller-supplied metadata entries with string values.
33657
+ */
33658
+ custom: {
33659
+ [key: string]: string;
33660
+ };
33661
+ };
33662
+ /**
33663
+ * Time this asset identity was created, in UTC.
33664
+ */
33665
+ created_at: MediaIsoTimestamp;
33666
+ /**
33667
+ * URL for retrieving this version of the asset’s original content.
33668
+ */
33669
+ url: string;
33670
+ /**
33671
+ * 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.
33672
+ */
33673
+ secure_url: string;
33674
+ /**
33675
+ * False because this response represents stored source content.
33676
+ */
33677
+ placeholder: false;
33678
+ /**
33679
+ * True when overwrite is false and the public_id already exists; the existing resource is returned.
33680
+ */
33681
+ existing?: boolean;
33682
+ /**
33683
+ * Progress of understanding and embedding tasks for the asset.
33684
+ */
33685
+ processing: MediaProcessingWritable;
33686
+ /**
33687
+ * Identifier of the library containing this asset.
33688
+ */
33689
+ library_id: MediaLibraryId;
33690
+ /**
33691
+ * SHA-256 digest of the source bytes, as 64 lowercase hexadecimal characters.
33692
+ */
33693
+ sha256: string;
33694
+ /**
33695
+ * Resource status; active identifies an asset that has not been deleted.
33696
+ */
33697
+ status: 'active';
33698
+ /**
33699
+ * True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
33700
+ */
33701
+ has_alpha?: boolean;
33702
+ /**
33703
+ * Search-vector status: pending awaits vector generation or reprocessing; ready has searchable vectors; unavailable indicates disabled, unsupported or failed embedding. Existing vectors may still serve searches while reprocessing is pending.
33704
+ */
33705
+ semantic: 'pending' | 'ready' | 'unavailable';
33706
+ /**
33707
+ * Generated video previews, present once preview generation succeeds.
33708
+ */
33709
+ preview?: {
33710
+ /**
33711
+ * Delivery URL of the video’s first-frame poster.
33712
+ */
33713
+ poster_url?: string;
33714
+ /**
33715
+ * Preview sprite sheet with tile dimensions and sample spacing.
33716
+ */
33717
+ storyboard?: MediaStoryboard;
33718
+ /**
33719
+ * Low-bitrate proxy renditions for smooth playback while editing; exports use the original source.
33720
+ */
33721
+ proxy?: {
33722
+ /**
33723
+ * Proxy audio rendition, present once it has been generated.
33724
+ */
33725
+ audio?: {
33726
+ /**
33727
+ * Delivery URL of the proxy audio rendition.
33728
+ */
33729
+ url: string;
33730
+ /**
33731
+ * Proxy audio bitrate in bits per second.
33732
+ */
33733
+ bitrate: number;
33734
+ };
33735
+ /**
33736
+ * Proxy video rendition, present once it has been generated.
33737
+ */
33738
+ video?: {
33739
+ /**
33740
+ * Delivery URL of the proxy video rendition.
33741
+ */
33742
+ url: string;
33743
+ /**
33744
+ * Proxy video bitrate in bits per second.
33745
+ */
33746
+ bitrate: number;
33747
+ /**
33748
+ * Proxy video frame width in pixels.
33749
+ */
33750
+ width: number;
33751
+ /**
33752
+ * Proxy video frame height in pixels.
33753
+ */
33754
+ height: number;
33755
+ };
33756
+ };
33757
+ };
33758
+ /**
33759
+ * Source details for the video-generation job that created this asset.
33760
+ */
33761
+ generation?: {
33762
+ /**
33763
+ * Job id that generated this asset.
33764
+ */
33765
+ job_id: MediaJobId;
33766
+ /**
33767
+ * Generation intent used to create the asset; v1 supports video.generate.
33768
+ */
33769
+ intent: string;
33770
+ /**
33771
+ * Text prompt submitted for the generation job.
33772
+ */
33773
+ prompt: string;
33774
+ /**
33775
+ * Router video-generation model that produced the asset.
33776
+ */
33777
+ model: string;
33778
+ };
33779
+ };
33780
+ /**
33781
+ * A matching asset with its ranking score and supporting matches.
33782
+ */
33783
+ export type MediaSemanticHitWritable = {
33784
+ /**
33785
+ * Asset matched by the query.
33786
+ */
33787
+ asset: MediaAssetWritable;
33788
+ /**
33789
+ * Ranking score: cosine similarity for semantic or visual search; normalized rank-fusion score for hybrid search. Higher values rank first; hybrid scores are not probabilities or confidence.
33790
+ */
33791
+ score: number;
33792
+ /**
33793
+ * Cosine similarity for hybrid hits with a semantic match; null for keyword-only hybrid hits. Omitted outside hybrid mode.
33794
+ */
33795
+ semantic_score?: number | null;
33796
+ /**
33797
+ * Supporting content or metadata matches contributing to this asset’s hit.
33798
+ */
33799
+ matches: Array<MediaSemanticMatch>;
33800
+ };
32011
33801
  export type AgentManaged34Writable = {
32012
33802
  [key: string]: unknown;
32013
33803
  };
33804
+ export type MediaTranscriptCorrectionWritable = {
33805
+ [key: string]: unknown;
33806
+ };
32014
33807
  /**
32015
33808
  * Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
32016
33809
  */
@@ -32228,7 +34021,7 @@ export type ApplyAgentVersionResponses = {
32228
34021
  */
32229
34022
  note: string | null;
32230
34023
  /**
32231
- * 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.
34024
+ * 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.
32232
34025
  */
32233
34026
  bindings: Array<{
32234
34027
  /**
@@ -32259,7 +34052,7 @@ export type ApplyAgentVersionResponses = {
32259
34052
  /**
32260
34053
  * Service type. Opens the whole service to codemode; there is no per-resource id.
32261
34054
  */
32262
- type: 'search' | 'browser';
34055
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
32263
34056
  /**
32264
34057
  * 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.
32265
34058
  */
@@ -33445,7 +35238,7 @@ export type UnarchiveAgentResponses = {
33445
35238
  */
33446
35239
  note: string | null;
33447
35240
  /**
33448
- * 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.
35241
+ * 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.
33449
35242
  */
33450
35243
  bindings: Array<{
33451
35244
  /**
@@ -33476,7 +35269,7 @@ export type UnarchiveAgentResponses = {
33476
35269
  /**
33477
35270
  * Service type. Opens the whole service to codemode; there is no per-resource id.
33478
35271
  */
33479
- type: 'search' | 'browser';
35272
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
33480
35273
  /**
33481
35274
  * 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.
33482
35275
  */
@@ -42583,6 +44376,42 @@ export type FileCancelUploadResponses = {
42583
44376
  200: OwnFilePraxisUpload;
42584
44377
  };
42585
44378
  export type FileCancelUploadResponse = FileCancelUploadResponses[keyof FileCancelUploadResponses];
44379
+ export type FileRetrieveUploadData = {
44380
+ body?: never;
44381
+ path: {
44382
+ /**
44383
+ * Upload identifier returned by create on this face; the upload belongs to your organization.
44384
+ */
44385
+ upload_id: string;
44386
+ };
44387
+ query?: never;
44388
+ url: '/file/v1/uploads/{upload_id}';
44389
+ };
44390
+ export type FileRetrieveUploadErrors = {
44391
+ /**
44392
+ * INVALID_PARAMS: correct the upload_id before retrying.
44393
+ */
44394
+ 400: unknown;
44395
+ /**
44396
+ * UNAUTHENTICATED: supply a valid organization API key or signed-in session.
44397
+ */
44398
+ 401: unknown;
44399
+ /**
44400
+ * UPLOAD_NOT_FOUND: the upload is missing or belongs to another organization; create a new upload and send its parts.
44401
+ */
44402
+ 404: unknown;
44403
+ /**
44404
+ * UPLOAD_INVALID_STATE: the upload was cancelled or expired; create a new upload and send its parts again.
44405
+ */
44406
+ 409: unknown;
44407
+ };
44408
+ export type FileRetrieveUploadResponses = {
44409
+ /**
44410
+ * The upload state plus part_size and the received_parts list; complete once every part is present.
44411
+ */
44412
+ 200: OwnFilePraxisUpload;
44413
+ };
44414
+ export type FileRetrieveUploadResponse = FileRetrieveUploadResponses[keyof FileRetrieveUploadResponses];
42586
44415
  export type FileCreateSignedUploadData = {
42587
44416
  body: OwnFileSignedUploadRequest;
42588
44417
  path?: never;
@@ -42613,7 +44442,7 @@ export type FileCreateSignedUploadResponse = FileCreateSignedUploadResponses[key
42613
44442
  export type FileCreateContentUrlData = {
42614
44443
  body?: {
42615
44444
  /**
42616
- * Download link lifetime in seconds, from 1 through 604800; omitted means 3600. This does not change the file's own expiry.
44445
+ * Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.
42617
44446
  */
42618
44447
  ttl_seconds?: number;
42619
44448
  };
@@ -44159,31 +45988,29 @@ export type CreateSystemoneResponse = CreateSystemoneResponses[keyof CreateSyste
44159
45988
  export type CreateAudioTranscriptionData = {
44160
45989
  body: {
44161
45990
  /**
44162
- * Transcription model id, for example `whisper-large-v3-turbo` or `qwen3-asr-flash`; list candidates with listModels?type=transcription. Router support (supported): Verified to take effect.
45991
+ * Model catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix.
44163
45992
  */
44164
45993
  model: string;
44165
45994
  /**
44166
- * Audio file to transcribe, uploaded as multipart/form-data. Router support (supported): Verified to take effect.
45995
+ * Audio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model.
44167
45996
  */
44168
45997
  file: Blob | File;
44169
45998
  /**
44170
- * Language of the audio as an ISO-639-1 code such as `en` or `zh`. Router support (partial): Both models accept ISO language codes. qwen3-asr-flash may translate output to that language; whisper-large-v3-turbo treats it as an input hint. Non-ISO names may return 502.
45999
+ * Source language code when known; omit to let the model detect the language.
44171
46000
  */
44172
46001
  language?: string;
44173
46002
  /**
44174
- * Text that primes the model with vocabulary or context. Router support (partial): Vocabulary hints work on whisper-large-v3-turbo only; qwen3-asr-flash returns 400.
46003
+ * Optional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model.
44175
46004
  */
44176
46005
  prompt?: string;
44177
46006
  /**
44178
- * Format of the response body. `json` and `text` are the commonly supported formats. Router support (partial): json/text work on both; verbose_json works only on whisper-large-v3-turbo. srt/vtt return 400.
46007
+ * Output format: json returns text in JSON; text returns plain text; verbose_json includes requested timestamps; diarized_json includes speaker-labelled segments when supported. Defaults to json.
44179
46008
  */
44180
- response_format?: 'json' | 'text' | 'verbose_json';
46009
+ response_format?: 'json' | 'text' | 'verbose_json' | 'diarized_json';
44181
46010
  /**
44182
- * Timestamp levels to include with `verbose_json`; only `segment` exists in this schema. Router support (partial): Only whisper-large-v3-turbo supports segment with verbose_json. word returns 400; qwen3-asr-flash does not support timestamps.
46011
+ * Timestamp levels to request as repeated multipart fields: word returns per-word times; segment returns segment times. Omit for the model default. Use verbose_json, or diarized_json on supporting models.
44183
46012
  */
44184
- 'timestamp_granularities[]'?: [
44185
- 'segment'
44186
- ];
46013
+ 'timestamp_granularities[]'?: Array<'word' | 'segment'>;
44187
46014
  /**
44188
46015
  * Both whisper-large-v3-turbo and qwen3-asr-flash return 400.
44189
46016
  */
@@ -44195,11 +46022,11 @@ export type CreateAudioTranscriptionData = {
44195
46022
  };
44196
46023
  export type CreateAudioTranscriptionErrors = {
44197
46024
  /**
44198
- * Unsupported or unrepresentable parameter.
46025
+ * A field
44199
46026
  */
44200
46027
  400: unknown;
44201
46028
  /**
44202
- * No eligible model route.
46029
+ * No provider route supports this request; select an available model and its declared transcription features.
44203
46030
  */
44204
46031
  503: unknown;
44205
46032
  };
@@ -44209,58 +46036,79 @@ export type CreateAudioTranscriptionResponses = {
44209
46036
  */
44210
46037
  200: {
44211
46038
  /**
44212
- * The transcribed text.
46039
+ * Recognized speech text in the original language.
44213
46040
  */
44214
46041
  text: string;
44215
46042
  /**
44216
- * Task performed; always `transcribe`.
46043
+ * transcribe identifies speech-to-text transcription.
44217
46044
  */
44218
46045
  task?: 'transcribe';
44219
46046
  /**
44220
- * Language of the audio as detected or as requested.
46047
+ * Detected or requested source language code.
44221
46048
  */
44222
46049
  language?: string;
44223
46050
  /**
44224
- * Duration of the audio in seconds.
46051
+ * Audio duration in seconds when provided by the model.
44225
46052
  */
44226
46053
  duration?: number;
44227
46054
  /**
44228
- * Segments with timestamps, returned with `verbose_json` on models that support it.
46055
+ * Time-aligned speech segments when returned by the selected model and response format.
44229
46056
  */
44230
46057
  segments?: Array<{
44231
46058
  /**
44232
- * Zero-based index of the segment.
46059
+ * Segment identifier within this transcription response.
44233
46060
  */
44234
46061
  id: number;
44235
46062
  /**
44236
- * Start time of the segment in seconds.
46063
+ * Inclusive start time in seconds from the beginning of the audio.
44237
46064
  */
44238
46065
  start: number;
44239
46066
  /**
44240
- * End time of the segment in seconds.
46067
+ * Exclusive end time in seconds from the beginning of the audio.
44241
46068
  */
44242
46069
  end: number;
44243
46070
  /**
44244
- * The transcribed text.
46071
+ * Recognized speech text in the original language.
44245
46072
  */
44246
46073
  text: string;
44247
46074
  /**
44248
- * Sampling temperature used for the segment.
46075
+ * Speaker label in diarized_json when supported; labels distinguish voices and are not verified identities.
46076
+ */
46077
+ speaker?: string;
46078
+ /**
46079
+ * Decoding temperature reported by the transcription model.
44249
46080
  */
44250
46081
  temperature?: number;
44251
46082
  /**
44252
- * Average log probability of the tokens of the segment; low values mean low confidence.
46083
+ * Average segment token log probability when provided.
44253
46084
  */
44254
46085
  avg_logprob?: number;
44255
46086
  /**
44256
- * Gzip compression ratio of the segment text; high values indicate repetitive output.
46087
+ * Text compression ratio reported for this segment.
44257
46088
  */
44258
46089
  compression_ratio?: number;
44259
46090
  /**
44260
- * Probability that the segment contains no speech.
46091
+ * Probability of no speech reported for this segment.
44261
46092
  */
44262
46093
  no_speech_prob?: number;
44263
46094
  }>;
46095
+ /**
46096
+ * Per-word source-audio timestamps when word granularity is requested and supported.
46097
+ */
46098
+ words?: Array<{
46099
+ /**
46100
+ * Recognized word text in its original language.
46101
+ */
46102
+ word: string;
46103
+ /**
46104
+ * Inclusive word start in seconds from the beginning of the audio.
46105
+ */
46106
+ start: number;
46107
+ /**
46108
+ * Exclusive word end in seconds from the beginning of the audio.
46109
+ */
46110
+ end: number;
46111
+ }>;
44264
46112
  };
44265
46113
  };
44266
46114
  export type CreateAudioTranscriptionResponse = CreateAudioTranscriptionResponses[keyof CreateAudioTranscriptionResponses];
@@ -47107,6 +48955,76 @@ export type CountResponseInputTokensResponses = {
47107
48955
  };
47108
48956
  };
47109
48957
  export type CountResponseInputTokensResponse = CountResponseInputTokensResponses[keyof CountResponseInputTokensResponses];
48958
+ export type ListOrganizationMembersData = {
48959
+ body?: never;
48960
+ path?: never;
48961
+ query?: {
48962
+ /**
48963
+ * Maximum members per page, from 1 to 100; defaults to 20.
48964
+ */
48965
+ limit?: number;
48966
+ /**
48967
+ * Opaque next_page cursor returned by the previous response; omit for the first page.
48968
+ */
48969
+ page?: string;
48970
+ };
48971
+ url: '/organization/v1/members';
48972
+ };
48973
+ export type ListOrganizationMembersErrors = {
48974
+ /**
48975
+ * Invalid limit or page cursor; use limit 1 to 100 and copy next_page from the previous response.
48976
+ */
48977
+ 400: unknown;
48978
+ /**
48979
+ * Missing or invalid credentials; provide a valid organization API key or runtime token.
48980
+ */
48981
+ 401: unknown;
48982
+ /**
48983
+ * Organization identity was refused; use a credential belonging to the organization.
48984
+ */
48985
+ 403: unknown;
48986
+ };
48987
+ export type ListOrganizationMembersResponses = {
48988
+ /**
48989
+ * Members of the authenticated organization, earliest join first.
48990
+ */
48991
+ 200: {
48992
+ /**
48993
+ * Organization members in ascending join order.
48994
+ */
48995
+ data: Array<{
48996
+ /**
48997
+ * User identifier (usr_...). Use this id to assign an approver to an approval task.
48998
+ */
48999
+ id: string;
49000
+ /**
49001
+ * Display name of the member; null when no name is set.
49002
+ */
49003
+ name: string | null;
49004
+ /**
49005
+ * Email address of a member of your organization.
49006
+ */
49007
+ email: string;
49008
+ /**
49009
+ * Organization role: owner owns the organization; admin manages it; member is a regular participant.
49010
+ */
49011
+ role: 'owner' | 'admin' | 'member';
49012
+ /**
49013
+ * UTC ISO 8601 instant when this user joined the organization.
49014
+ */
49015
+ joined_at: string;
49016
+ }>;
49017
+ /**
49018
+ * Whether another page of members is available.
49019
+ */
49020
+ has_more: boolean;
49021
+ /**
49022
+ * Cursor to pass as page; null when no more members remain.
49023
+ */
49024
+ next_page: string | null;
49025
+ };
49026
+ };
49027
+ export type ListOrganizationMembersResponse = ListOrganizationMembersResponses[keyof ListOrganizationMembersResponses];
47110
49028
  export type ListOrganizationFeedbackData = {
47111
49029
  body?: never;
47112
49030
  path?: never;
@@ -49930,7 +51848,7 @@ export type AgentsListResponses = {
49930
51848
  */
49931
51849
  note: string | null;
49932
51850
  /**
49933
- * 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.
51851
+ * 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.
49934
51852
  */
49935
51853
  bindings: Array<{
49936
51854
  /**
@@ -49961,7 +51879,7 @@ export type AgentsListResponses = {
49961
51879
  /**
49962
51880
  * Service type. Opens the whole service to codemode; there is no per-resource id.
49963
51881
  */
49964
- type: 'search' | 'browser';
51882
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
49965
51883
  /**
49966
51884
  * 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.
49967
51885
  */
@@ -50469,7 +52387,7 @@ export type AgentsCreateData = {
50469
52387
  */
50470
52388
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
50471
52389
  /**
50472
- * 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.
52390
+ * 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.
50473
52391
  */
50474
52392
  bindings?: Array<{
50475
52393
  /**
@@ -50500,7 +52418,7 @@ export type AgentsCreateData = {
50500
52418
  /**
50501
52419
  * Service type. Opens the whole service to codemode; there is no per-resource id.
50502
52420
  */
50503
- type: 'search' | 'browser';
52421
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
50504
52422
  /**
50505
52423
  * 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.
50506
52424
  */
@@ -51070,7 +52988,7 @@ export type AgentsCreateResponses = {
51070
52988
  */
51071
52989
  note: string | null;
51072
52990
  /**
51073
- * 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.
52991
+ * 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.
51074
52992
  */
51075
52993
  bindings: Array<{
51076
52994
  /**
@@ -51101,7 +53019,7 @@ export type AgentsCreateResponses = {
51101
53019
  /**
51102
53020
  * Service type. Opens the whole service to codemode; there is no per-resource id.
51103
53021
  */
51104
- type: 'search' | 'browser';
53022
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
51105
53023
  /**
51106
53024
  * 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.
51107
53025
  */
@@ -51698,7 +53616,7 @@ export type AgentsRetrieveResponses = {
51698
53616
  */
51699
53617
  note: string | null;
51700
53618
  /**
51701
- * 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.
53619
+ * 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.
51702
53620
  */
51703
53621
  bindings: Array<{
51704
53622
  /**
@@ -51729,7 +53647,7 @@ export type AgentsRetrieveResponses = {
51729
53647
  /**
51730
53648
  * Service type. Opens the whole service to codemode; there is no per-resource id.
51731
53649
  */
51732
- type: 'search' | 'browser';
53650
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
51733
53651
  /**
51734
53652
  * 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.
51735
53653
  */
@@ -52277,7 +54195,7 @@ export type AgentsUpdateData = {
52277
54195
  /**
52278
54196
  * Service type. Opens the whole service to codemode; there is no per-resource id.
52279
54197
  */
52280
- type: 'search' | 'browser';
54198
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
52281
54199
  /**
52282
54200
  * 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.
52283
54201
  */
@@ -52860,7 +54778,7 @@ export type AgentsUpdateResponses = {
52860
54778
  */
52861
54779
  note: string | null;
52862
54780
  /**
52863
- * 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.
54781
+ * 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.
52864
54782
  */
52865
54783
  bindings: Array<{
52866
54784
  /**
@@ -52891,7 +54809,7 @@ export type AgentsUpdateResponses = {
52891
54809
  /**
52892
54810
  * Service type. Opens the whole service to codemode; there is no per-resource id.
52893
54811
  */
52894
- type: 'search' | 'browser';
54812
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
52895
54813
  /**
52896
54814
  * 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.
52897
54815
  */
@@ -53474,7 +55392,7 @@ export type AgentsArchiveResponses = {
53474
55392
  */
53475
55393
  note: string | null;
53476
55394
  /**
53477
- * 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.
55395
+ * 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.
53478
55396
  */
53479
55397
  bindings: Array<{
53480
55398
  /**
@@ -53505,7 +55423,7 @@ export type AgentsArchiveResponses = {
53505
55423
  /**
53506
55424
  * Service type. Opens the whole service to codemode; there is no per-resource id.
53507
55425
  */
53508
- type: 'search' | 'browser';
55426
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
53509
55427
  /**
53510
55428
  * 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.
53511
55429
  */
@@ -54106,7 +56024,7 @@ export type AgentsVersionsListResponses = {
54106
56024
  */
54107
56025
  note: string | null;
54108
56026
  /**
54109
- * 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.
56027
+ * 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.
54110
56028
  */
54111
56029
  bindings: Array<{
54112
56030
  /**
@@ -54137,7 +56055,7 @@ export type AgentsVersionsListResponses = {
54137
56055
  /**
54138
56056
  * Service type. Opens the whole service to codemode; there is no per-resource id.
54139
56057
  */
54140
- type: 'search' | 'browser';
56058
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
54141
56059
  /**
54142
56060
  * 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.
54143
56061
  */
@@ -67898,7 +69816,7 @@ export type CutExecuteData = {
67898
69816
  };
67899
69817
  export type CutExecuteErrors = {
67900
69818
  /**
67901
- * 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.
69819
+ * 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.
67902
69820
  */
67903
69821
  400: CutCutError;
67904
69822
  /**
@@ -68063,7 +69981,7 @@ export type CutListFramesData = {
68063
69981
  */
68064
69982
  at: string;
68065
69983
  /**
68066
- * Positive image size multiplier; 0.5 renders at half the project dimensions.
69984
+ * Image size multiplier, default 0.25, greater than zero and at most 0.5. Larger values return INVALID_PARAMS; pixel-area limits may reduce actual dimensions, reported as width and height.
68067
69985
  */
68068
69986
  scale?: number;
68069
69987
  /**
@@ -68405,7 +70323,7 @@ export type CutListExportsResponses = {
68405
70323
  export type CutListExportsResponse = CutListExportsResponses[keyof CutListExportsResponses];
68406
70324
  export type CutCreateExportData = {
68407
70325
  /**
68408
- * Start an export from a project revision into a bound library.
70326
+ * Start an export from a project revision into a bound library. Output assets carry the cut-export tag and project_id, export_id and duration (seconds) context. Unavailable source metadata rejects creation with MEDIA_UNAVAILABLE and source clip and asset identities before rendering starts. Sources follow current asset versions; the current version is frozen at creation.
68409
70327
  */
68410
70328
  body: CutExportInput;
68411
70329
  path: {
@@ -70217,7 +72135,7 @@ export type KnowledgeListFilesResponses = {
70217
72135
  };
70218
72136
  export type KnowledgeListFilesResponse = KnowledgeListFilesResponses[keyof KnowledgeListFilesResponses];
70219
72137
  export type KnowledgeAttachFileData = {
70220
- body: KnowledgeAttachFile;
72138
+ body: KnowledgeNativeAttachFile;
70221
72139
  path: {
70222
72140
  /**
70223
72141
  * Resource ID.
@@ -70518,7 +72436,7 @@ export type KnowledgeRetrieveFileContentResponses = {
70518
72436
  };
70519
72437
  export type KnowledgeRetrieveFileContentResponse = KnowledgeRetrieveFileContentResponses[keyof KnowledgeRetrieveFileContentResponses];
70520
72438
  export type KnowledgeCreateFileBatchData = {
70521
- body: KnowledgeCreateBatch;
72439
+ body: KnowledgeNativeCreateBatch;
70522
72440
  path: {
70523
72441
  /**
70524
72442
  * Resource ID.
@@ -71206,6 +73124,10 @@ export type MediaListLibrariesErrors = {
71206
73124
  * Request failed; see the error code reference.
71207
73125
  */
71208
73126
  415: MediaMediaError;
73127
+ /**
73128
+ * Request failed; see the error code reference.
73129
+ */
73130
+ 422: MediaMediaError;
71209
73131
  /**
71210
73132
  * Request failed; see the error code reference.
71211
73133
  */
@@ -71297,6 +73219,10 @@ export type MediaCreateLibraryErrors = {
71297
73219
  * Request failed; see the error code reference.
71298
73220
  */
71299
73221
  415: MediaMediaError;
73222
+ /**
73223
+ * Request failed; see the error code reference.
73224
+ */
73225
+ 422: MediaMediaError;
71300
73226
  /**
71301
73227
  * Request failed; see the error code reference.
71302
73228
  */
@@ -71322,6 +73248,84 @@ export type MediaCreateLibraryResponses = {
71322
73248
  200: MediaLibrary;
71323
73249
  };
71324
73250
  export type MediaCreateLibraryResponse = MediaCreateLibraryResponses[keyof MediaCreateLibraryResponses];
73251
+ export type MediaCreateFrameUrlsData = {
73252
+ body: {
73253
+ /**
73254
+ * 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.
73255
+ */
73256
+ at_micros: Array<number>;
73257
+ /**
73258
+ * 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.
73259
+ */
73260
+ width?: 160 | 320 | 640;
73261
+ };
73262
+ path: {
73263
+ /**
73264
+ * Library identifier returned by library creation or listing; must be accessible to the current credential.
73265
+ */
73266
+ library_id: string;
73267
+ /**
73268
+ * Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps.
73269
+ */
73270
+ asset_id: string;
73271
+ };
73272
+ query?: never;
73273
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/frames';
73274
+ };
73275
+ export type MediaCreateFrameUrlsErrors = {
73276
+ /**
73277
+ * INVALID_PARAMS: supply 1–20 nonnegative integer timestamps below video duration and width 160, 320 or 640; images and audio cannot produce video frames.
73278
+ */
73279
+ 400: MediaMediaError;
73280
+ /**
73281
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73282
+ */
73283
+ 403: MediaMediaError;
73284
+ /**
73285
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
73286
+ */
73287
+ 404: MediaMediaError;
73288
+ /**
73289
+ * Request failed; see the error code reference.
73290
+ */
73291
+ 409: MediaMediaError;
73292
+ /**
73293
+ * The file exceeds an input limit; provide a smaller source file.
73294
+ */
73295
+ 413: MediaMediaError;
73296
+ /**
73297
+ * This media format is unsupported; provide a supported format.
73298
+ */
73299
+ 415: MediaMediaError;
73300
+ /**
73301
+ * Request failed; see the error code reference.
73302
+ */
73303
+ 422: MediaMediaError;
73304
+ /**
73305
+ * A rate limit was reached; wait before retrying.
73306
+ */
73307
+ 429: MediaMediaError;
73308
+ /**
73309
+ * The requested operation is unsupported; choose a supported method.
73310
+ */
73311
+ 501: MediaMediaError;
73312
+ /**
73313
+ * Request failed; see the error code reference.
73314
+ */
73315
+ 502: MediaMediaError;
73316
+ /**
73317
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
73318
+ */
73319
+ 503: MediaMediaError;
73320
+ };
73321
+ export type MediaCreateFrameUrlsError = MediaCreateFrameUrlsErrors[keyof MediaCreateFrameUrlsErrors];
73322
+ export type MediaCreateFrameUrlsResponses = {
73323
+ /**
73324
+ * Successful response.
73325
+ */
73326
+ 200: MediaFrameUrls;
73327
+ };
73328
+ export type MediaCreateFrameUrlsResponse = MediaCreateFrameUrlsResponses[keyof MediaCreateFrameUrlsResponses];
71325
73329
  export type MediaDeleteLibraryData = {
71326
73330
  body?: never;
71327
73331
  path: {
@@ -71358,6 +73362,10 @@ export type MediaDeleteLibraryErrors = {
71358
73362
  * Request failed; see the error code reference.
71359
73363
  */
71360
73364
  415: MediaMediaError;
73365
+ /**
73366
+ * Request failed; see the error code reference.
73367
+ */
73368
+ 422: MediaMediaError;
71361
73369
  /**
71362
73370
  * Request failed; see the error code reference.
71363
73371
  */
@@ -71419,6 +73427,10 @@ export type MediaGetLibraryErrors = {
71419
73427
  * Request failed; see the error code reference.
71420
73428
  */
71421
73429
  415: MediaMediaError;
73430
+ /**
73431
+ * Request failed; see the error code reference.
73432
+ */
73433
+ 422: MediaMediaError;
71422
73434
  /**
71423
73435
  * Request failed; see the error code reference.
71424
73436
  */
@@ -71449,6 +73461,10 @@ export type MediaUpdateLibraryData = {
71449
73461
  * Partial update of an active media library.
71450
73462
  */
71451
73463
  body: {
73464
+ /**
73465
+ * 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.
73466
+ */
73467
+ hotwords?: Array<string>;
71452
73468
  /**
71453
73469
  * Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets.
71454
73470
  */
@@ -71515,6 +73531,10 @@ export type MediaUpdateLibraryErrors = {
71515
73531
  * Request failed; see the error code reference.
71516
73532
  */
71517
73533
  415: MediaMediaError;
73534
+ /**
73535
+ * Request failed; see the error code reference.
73536
+ */
73537
+ 422: MediaMediaError;
71518
73538
  /**
71519
73539
  * Request failed; see the error code reference.
71520
73540
  */
@@ -71576,6 +73596,10 @@ export type MediaRestoreLibraryErrors = {
71576
73596
  * Request failed; see the error code reference.
71577
73597
  */
71578
73598
  415: MediaMediaError;
73599
+ /**
73600
+ * Request failed; see the error code reference.
73601
+ */
73602
+ 422: MediaMediaError;
71579
73603
  /**
71580
73604
  * Request failed; see the error code reference.
71581
73605
  */
@@ -71637,6 +73661,10 @@ export type MediaPurgeLibraryErrors = {
71637
73661
  * Request failed; see the error code reference.
71638
73662
  */
71639
73663
  415: MediaMediaError;
73664
+ /**
73665
+ * Request failed; see the error code reference.
73666
+ */
73667
+ 422: MediaMediaError;
71640
73668
  /**
71641
73669
  * Request failed; see the error code reference.
71642
73670
  */
@@ -71715,6 +73743,10 @@ export type MediaListAssetsErrors = {
71715
73743
  * Request failed; see the error code reference.
71716
73744
  */
71717
73745
  415: MediaMediaError;
73746
+ /**
73747
+ * Request failed; see the error code reference.
73748
+ */
73749
+ 422: MediaMediaError;
71718
73750
  /**
71719
73751
  * Request failed; see the error code reference.
71720
73752
  */
@@ -71762,7 +73794,7 @@ export type MediaUploadAssetData = {
71762
73794
  */
71763
73795
  display_name?: string;
71764
73796
  /**
71765
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73797
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
71766
73798
  */
71767
73799
  asset_folder?: string;
71768
73800
  /**
@@ -71804,7 +73836,7 @@ export type MediaUploadAssetData = {
71804
73836
  */
71805
73837
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
71806
73838
  /**
71807
- * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. Defaults to upload.
73839
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. New assets default to authenticated. Omitting type on overwrite preserves the current type. Unlike Cloudinary, public delivery requires explicit type=upload.
71808
73840
  */
71809
73841
  type?: MediaDeliveryType;
71810
73842
  };
@@ -71852,6 +73884,10 @@ export type MediaUploadAssetErrors = {
71852
73884
  * Request failed; see the error code reference.
71853
73885
  */
71854
73886
  415: MediaMediaError;
73887
+ /**
73888
+ * Request failed; see the error code reference.
73889
+ */
73890
+ 422: MediaMediaError;
71855
73891
  /**
71856
73892
  * Request failed; see the error code reference.
71857
73893
  */
@@ -71883,7 +73919,7 @@ export type MediaImportAssetData = {
71883
73919
  */
71884
73920
  body: {
71885
73921
  /**
71886
- * File ID to copy into this library instead of file bytes. This independent copy defaults to public delivery; set type=authenticated for private delivery. Deleting the source File does not delete this asset.
73922
+ * File ID to copy into this library instead of file bytes. This independent copy defaults to organization-private delivery (type=authenticated); explicitly set type=upload for public delivery. Deleting the source File does not delete this asset.
71887
73923
  */
71888
73924
  file_id: string;
71889
73925
  /**
@@ -71899,7 +73935,7 @@ export type MediaImportAssetData = {
71899
73935
  */
71900
73936
  display_name?: string;
71901
73937
  /**
71902
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73938
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
71903
73939
  */
71904
73940
  asset_folder?: string;
71905
73941
  /**
@@ -71941,7 +73977,7 @@ export type MediaImportAssetData = {
71941
73977
  */
71942
73978
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
71943
73979
  /**
71944
- * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. Defaults to upload.
73980
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. New assets default to authenticated. Omitting type on overwrite preserves the current type. Unlike Cloudinary, public delivery requires explicit type=upload.
71945
73981
  */
71946
73982
  type?: MediaDeliveryType;
71947
73983
  };
@@ -71979,6 +74015,10 @@ export type MediaImportAssetErrors = {
71979
74015
  * Request failed; see the error code reference.
71980
74016
  */
71981
74017
  415: MediaMediaError;
74018
+ /**
74019
+ * Request failed; see the error code reference.
74020
+ */
74021
+ 422: MediaMediaError;
71982
74022
  /**
71983
74023
  * Request failed; see the error code reference.
71984
74024
  */
@@ -72044,6 +74084,10 @@ export type MediaDeleteAssetErrors = {
72044
74084
  * Request failed; see the error code reference.
72045
74085
  */
72046
74086
  415: MediaMediaError;
74087
+ /**
74088
+ * Request failed; see the error code reference.
74089
+ */
74090
+ 422: MediaMediaError;
72047
74091
  /**
72048
74092
  * Request failed; see the error code reference.
72049
74093
  */
@@ -72109,6 +74153,10 @@ export type MediaGetAssetErrors = {
72109
74153
  * Request failed; see the error code reference.
72110
74154
  */
72111
74155
  415: MediaMediaError;
74156
+ /**
74157
+ * Request failed; see the error code reference.
74158
+ */
74159
+ 422: MediaMediaError;
72112
74160
  /**
72113
74161
  * Request failed; see the error code reference.
72114
74162
  */
@@ -72144,7 +74192,7 @@ export type MediaUpdateAssetData = {
72144
74192
  */
72145
74193
  display_name?: string;
72146
74194
  /**
72147
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
74195
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
72148
74196
  */
72149
74197
  asset_folder?: string;
72150
74198
  /**
@@ -72196,6 +74244,10 @@ export type MediaUpdateAssetErrors = {
72196
74244
  * Request failed; see the error code reference.
72197
74245
  */
72198
74246
  415: MediaMediaError;
74247
+ /**
74248
+ * Request failed; see the error code reference.
74249
+ */
74250
+ 422: MediaMediaError;
72199
74251
  /**
72200
74252
  * Request failed; see the error code reference.
72201
74253
  */
@@ -72227,7 +74279,7 @@ export type MediaReprocessAssetData = {
72227
74279
  */
72228
74280
  body: {
72229
74281
  /**
72230
- * Processing tasks to rerun. Omit to retry failed tasks only; explicit kinds rerun applicable ready, failed or unsupported tasks. Pending and running tasks are unchanged; an empty array does nothing.
74282
+ * Processing tasks to rerun. Omit to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable ready or failed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Pending and running tasks are unchanged; an empty array does nothing.
72231
74283
  */
72232
74284
  kinds?: Array<MediaProcessingKind>;
72233
74285
  };
@@ -72269,6 +74321,10 @@ export type MediaReprocessAssetErrors = {
72269
74321
  * Request failed; see the error code reference.
72270
74322
  */
72271
74323
  415: MediaMediaError;
74324
+ /**
74325
+ * Request failed; see the error code reference.
74326
+ */
74327
+ 422: MediaMediaError;
72272
74328
  /**
72273
74329
  * Request failed; see the error code reference.
72274
74330
  */
@@ -72312,9 +74368,9 @@ export type MediaListUnderstandingsData = {
72312
74368
  */
72313
74369
  include_superseded?: boolean;
72314
74370
  /**
72315
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment.
74371
+ * Return one output kind: caption is a visual description, tags are generated labels, ocr is visible text, transcript is speech, frame is a video shot, overview is a video summary, audio is sampled audio understanding, and embedding reports a failed embedding step.
72316
74372
  */
72317
- kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
74373
+ kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
72318
74374
  /**
72319
74375
  * Cursor from the previous next_cursor.
72320
74376
  */
@@ -72351,6 +74407,10 @@ export type MediaListUnderstandingsErrors = {
72351
74407
  * Request failed; see the error code reference.
72352
74408
  */
72353
74409
  415: MediaMediaError;
74410
+ /**
74411
+ * Request failed; see the error code reference.
74412
+ */
74413
+ 422: MediaMediaError;
72354
74414
  /**
72355
74415
  * Request failed; see the error code reference.
72356
74416
  */
@@ -72382,7 +74442,7 @@ export type MediaExpressionSearchData = {
72382
74442
  */
72383
74443
  body: {
72384
74444
  /**
72385
- * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context.
74445
+ * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters. has_music:true AND audio_genre:jazz AND audio_mood:calm selects current-version audio profiles with music and matching model labels; has_music:false applies only to sampled ranges, not the entire source. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial.
72386
74446
  */
72387
74447
  expression?: string;
72388
74448
  /**
@@ -72442,6 +74502,10 @@ export type MediaExpressionSearchErrors = {
72442
74502
  * Request failed; see the error code reference.
72443
74503
  */
72444
74504
  415: MediaMediaError;
74505
+ /**
74506
+ * Request failed; see the error code reference.
74507
+ */
74508
+ 422: MediaMediaError;
72445
74509
  /**
72446
74510
  * Request failed; see the error code reference.
72447
74511
  */
@@ -72529,6 +74593,10 @@ export type MediaVisualSearchErrors = {
72529
74593
  * Request failed; see the error code reference.
72530
74594
  */
72531
74595
  415: MediaMediaError;
74596
+ /**
74597
+ * Request failed; see the error code reference.
74598
+ */
74599
+ 422: MediaMediaError;
72532
74600
  /**
72533
74601
  * Request failed; see the error code reference.
72534
74602
  */
@@ -72610,6 +74678,10 @@ export type MediaSemanticSearchErrors = {
72610
74678
  * Request failed; see the error code reference.
72611
74679
  */
72612
74680
  415: MediaMediaError;
74681
+ /**
74682
+ * Request failed; see the error code reference.
74683
+ */
74684
+ 422: MediaMediaError;
72613
74685
  /**
72614
74686
  * Request failed; see the error code reference.
72615
74687
  */
@@ -72691,6 +74763,10 @@ export type MediaSearchErrors = {
72691
74763
  * Request failed; see the error code reference.
72692
74764
  */
72693
74765
  415: MediaMediaError;
74766
+ /**
74767
+ * Request failed; see the error code reference.
74768
+ */
74769
+ 422: MediaMediaError;
72694
74770
  /**
72695
74771
  * Request failed; see the error code reference.
72696
74772
  */
@@ -72757,6 +74833,461 @@ export type MediaListFoldersErrors = {
72757
74833
  * Request failed; see the error code reference.
72758
74834
  */
72759
74835
  415: MediaMediaError;
74836
+ /**
74837
+ * Request failed; see the error code reference.
74838
+ */
74839
+ 422: MediaMediaError;
74840
+ /**
74841
+ * Request failed; see the error code reference.
74842
+ */
74843
+ 429: MediaMediaError;
74844
+ /**
74845
+ * Request failed; see the error code reference.
74846
+ */
74847
+ 501: MediaMediaError;
74848
+ /**
74849
+ * Request failed; see the error code reference.
74850
+ */
74851
+ 502: MediaMediaError;
74852
+ /**
74853
+ * Request failed; see the error code reference.
74854
+ */
74855
+ 503: MediaMediaError;
74856
+ };
74857
+ export type MediaListFoldersError = MediaListFoldersErrors[keyof MediaListFoldersErrors];
74858
+ export type MediaListFoldersResponses = {
74859
+ /**
74860
+ * Successful response.
74861
+ */
74862
+ 200: MediaFolders;
74863
+ };
74864
+ export type MediaListFoldersResponse = MediaListFoldersResponses[keyof MediaListFoldersResponses];
74865
+ export type MediaCreateBatchData = {
74866
+ /**
74867
+ * Batch action and a selection frozen when the job is created.
74868
+ */
74869
+ body: MediaBatchAction & {
74870
+ /**
74871
+ * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
74872
+ */
74873
+ selector: MediaBatchSelector;
74874
+ /**
74875
+ * Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
74876
+ */
74877
+ reason?: string;
74878
+ };
74879
+ path: {
74880
+ /**
74881
+ * Library ID returned by creation.
74882
+ */
74883
+ library_id: string;
74884
+ };
74885
+ query?: never;
74886
+ url: '/media/v1/libraries/{library_id}/batches';
74887
+ };
74888
+ export type MediaCreateBatchErrors = {
74889
+ /**
74890
+ * Request failed; see the error code reference.
74891
+ */
74892
+ 400: MediaMediaError;
74893
+ /**
74894
+ * Request failed; see the error code reference.
74895
+ */
74896
+ 403: MediaMediaError;
74897
+ /**
74898
+ * Request failed; see the error code reference.
74899
+ */
74900
+ 404: MediaMediaError;
74901
+ /**
74902
+ * Request failed; see the error code reference.
74903
+ */
74904
+ 409: MediaMediaError;
74905
+ /**
74906
+ * Request failed; see the error code reference.
74907
+ */
74908
+ 413: MediaMediaError;
74909
+ /**
74910
+ * Request failed; see the error code reference.
74911
+ */
74912
+ 415: MediaMediaError;
74913
+ /**
74914
+ * Request failed; see the error code reference.
74915
+ */
74916
+ 422: MediaMediaError;
74917
+ /**
74918
+ * Request failed; see the error code reference.
74919
+ */
74920
+ 429: MediaMediaError;
74921
+ /**
74922
+ * Request failed; see the error code reference.
74923
+ */
74924
+ 501: MediaMediaError;
74925
+ /**
74926
+ * Request failed; see the error code reference.
74927
+ */
74928
+ 502: MediaMediaError;
74929
+ /**
74930
+ * Request failed; see the error code reference.
74931
+ */
74932
+ 503: MediaMediaError;
74933
+ };
74934
+ export type MediaCreateBatchError = MediaCreateBatchErrors[keyof MediaCreateBatchErrors];
74935
+ export type MediaCreateBatchResponses = {
74936
+ /**
74937
+ * Successful response.
74938
+ */
74939
+ 200: MediaJob;
74940
+ };
74941
+ export type MediaCreateBatchResponse = MediaCreateBatchResponses[keyof MediaCreateBatchResponses];
74942
+ export type MediaGetBatchData = {
74943
+ body?: never;
74944
+ path: {
74945
+ /**
74946
+ * Library ID returned by creation.
74947
+ */
74948
+ library_id: string;
74949
+ /**
74950
+ * Batch identifier returned by createBatch or batchAssets; resolved within this library.
74951
+ */
74952
+ job_id: string;
74953
+ };
74954
+ query?: never;
74955
+ url: '/media/v1/libraries/{library_id}/batches/{job_id}';
74956
+ };
74957
+ export type MediaGetBatchErrors = {
74958
+ /**
74959
+ * Request failed; see the error code reference.
74960
+ */
74961
+ 400: MediaMediaError;
74962
+ /**
74963
+ * Request failed; see the error code reference.
74964
+ */
74965
+ 403: MediaMediaError;
74966
+ /**
74967
+ * Request failed; see the error code reference.
74968
+ */
74969
+ 404: MediaMediaError;
74970
+ /**
74971
+ * Request failed; see the error code reference.
74972
+ */
74973
+ 409: MediaMediaError;
74974
+ /**
74975
+ * Request failed; see the error code reference.
74976
+ */
74977
+ 413: MediaMediaError;
74978
+ /**
74979
+ * Request failed; see the error code reference.
74980
+ */
74981
+ 415: MediaMediaError;
74982
+ /**
74983
+ * Request failed; see the error code reference.
74984
+ */
74985
+ 422: MediaMediaError;
74986
+ /**
74987
+ * Request failed; see the error code reference.
74988
+ */
74989
+ 429: MediaMediaError;
74990
+ /**
74991
+ * Request failed; see the error code reference.
74992
+ */
74993
+ 501: MediaMediaError;
74994
+ /**
74995
+ * Request failed; see the error code reference.
74996
+ */
74997
+ 502: MediaMediaError;
74998
+ /**
74999
+ * Request failed; see the error code reference.
75000
+ */
75001
+ 503: MediaMediaError;
75002
+ };
75003
+ export type MediaGetBatchError = MediaGetBatchErrors[keyof MediaGetBatchErrors];
75004
+ export type MediaGetBatchResponses = {
75005
+ /**
75006
+ * Successful response.
75007
+ */
75008
+ 200: MediaJob;
75009
+ };
75010
+ export type MediaGetBatchResponse = MediaGetBatchResponses[keyof MediaGetBatchResponses];
75011
+ export type MediaBatchAssetsData = {
75012
+ /**
75013
+ * Batch action and a selection frozen when the job is created.
75014
+ */
75015
+ body: MediaBatchAction & {
75016
+ /**
75017
+ * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
75018
+ */
75019
+ selector: MediaBatchSelector;
75020
+ /**
75021
+ * Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
75022
+ */
75023
+ reason?: string;
75024
+ };
75025
+ path: {
75026
+ /**
75027
+ * Library ID returned by creation.
75028
+ */
75029
+ library_id: string;
75030
+ };
75031
+ query?: never;
75032
+ url: '/media/v1/libraries/{library_id}/assets:batch';
75033
+ };
75034
+ export type MediaBatchAssetsErrors = {
75035
+ /**
75036
+ * Request failed; see the error code reference.
75037
+ */
75038
+ 400: MediaMediaError;
75039
+ /**
75040
+ * Request failed; see the error code reference.
75041
+ */
75042
+ 403: MediaMediaError;
75043
+ /**
75044
+ * Request failed; see the error code reference.
75045
+ */
75046
+ 404: MediaMediaError;
75047
+ /**
75048
+ * Request failed; see the error code reference.
75049
+ */
75050
+ 409: MediaMediaError;
75051
+ /**
75052
+ * Request failed; see the error code reference.
75053
+ */
75054
+ 413: MediaMediaError;
75055
+ /**
75056
+ * Request failed; see the error code reference.
75057
+ */
75058
+ 415: MediaMediaError;
75059
+ /**
75060
+ * Request failed; see the error code reference.
75061
+ */
75062
+ 422: MediaMediaError;
75063
+ /**
75064
+ * Request failed; see the error code reference.
75065
+ */
75066
+ 429: MediaMediaError;
75067
+ /**
75068
+ * Request failed; see the error code reference.
75069
+ */
75070
+ 501: MediaMediaError;
75071
+ /**
75072
+ * Request failed; see the error code reference.
75073
+ */
75074
+ 502: MediaMediaError;
75075
+ /**
75076
+ * Request failed; see the error code reference.
75077
+ */
75078
+ 503: MediaMediaError;
75079
+ };
75080
+ export type MediaBatchAssetsError = MediaBatchAssetsErrors[keyof MediaBatchAssetsErrors];
75081
+ export type MediaBatchAssetsResponses = {
75082
+ /**
75083
+ * Successful response.
75084
+ */
75085
+ 200: MediaJob;
75086
+ };
75087
+ export type MediaBatchAssetsResponse = MediaBatchAssetsResponses[keyof MediaBatchAssetsResponses];
75088
+ export type MediaGetJobData = {
75089
+ body?: never;
75090
+ path: {
75091
+ /**
75092
+ * Library ID returned by creation.
75093
+ */
75094
+ library_id: string;
75095
+ /**
75096
+ * Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library.
75097
+ */
75098
+ job_id: string;
75099
+ };
75100
+ query?: never;
75101
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}';
75102
+ };
75103
+ export type MediaGetJobErrors = {
75104
+ /**
75105
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75106
+ */
75107
+ 400: MediaMediaError;
75108
+ /**
75109
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75110
+ */
75111
+ 403: MediaMediaError;
75112
+ /**
75113
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75114
+ */
75115
+ 404: MediaMediaError;
75116
+ /**
75117
+ * Request failed; see the error code reference.
75118
+ */
75119
+ 409: MediaMediaError;
75120
+ /**
75121
+ * The file exceeds an input limit; provide a smaller source file.
75122
+ */
75123
+ 413: MediaMediaError;
75124
+ /**
75125
+ * This media format is unsupported; provide a supported format.
75126
+ */
75127
+ 415: MediaMediaError;
75128
+ /**
75129
+ * Request failed; see the error code reference.
75130
+ */
75131
+ 422: MediaMediaError;
75132
+ /**
75133
+ * A rate limit was reached; wait before retrying.
75134
+ */
75135
+ 429: MediaMediaError;
75136
+ /**
75137
+ * The requested operation is unsupported; choose a supported method.
75138
+ */
75139
+ 501: MediaMediaError;
75140
+ /**
75141
+ * Request failed; see the error code reference.
75142
+ */
75143
+ 502: MediaMediaError;
75144
+ /**
75145
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75146
+ */
75147
+ 503: MediaMediaError;
75148
+ };
75149
+ export type MediaGetJobError = MediaGetJobErrors[keyof MediaGetJobErrors];
75150
+ export type MediaGetJobResponses = {
75151
+ /**
75152
+ * Successful response.
75153
+ */
75154
+ 200: MediaJob;
75155
+ };
75156
+ export type MediaGetJobResponse = MediaGetJobResponses[keyof MediaGetJobResponses];
75157
+ export type MediaListEventsData = {
75158
+ body?: never;
75159
+ path: {
75160
+ /**
75161
+ * Library ID returned by creation.
75162
+ */
75163
+ library_id: string;
75164
+ };
75165
+ query?: {
75166
+ /**
75167
+ * Events with a larger sequence. Use with asc; cannot combine with before_seq.
75168
+ */
75169
+ after_seq?: number;
75170
+ /**
75171
+ * Events with a smaller sequence. Use with desc; cannot combine with after_seq.
75172
+ */
75173
+ before_seq?: number;
75174
+ /**
75175
+ * Sequence order: asc is increasing; desc is decreasing.
75176
+ */
75177
+ order?: 'asc' | 'desc';
75178
+ /**
75179
+ * Maximum items per page, from 1 to 200; defaults to 50.
75180
+ */
75181
+ limit?: number;
75182
+ };
75183
+ url: '/media/v1/libraries/{library_id}/events';
75184
+ };
75185
+ export type MediaListEventsErrors = {
75186
+ /**
75187
+ * Request failed; see the error code reference.
75188
+ */
75189
+ 400: MediaMediaError;
75190
+ /**
75191
+ * Request failed; see the error code reference.
75192
+ */
75193
+ 403: MediaMediaError;
75194
+ /**
75195
+ * Request failed; see the error code reference.
75196
+ */
75197
+ 404: MediaMediaError;
75198
+ /**
75199
+ * Request failed; see the error code reference.
75200
+ */
75201
+ 409: MediaMediaError;
75202
+ /**
75203
+ * Request failed; see the error code reference.
75204
+ */
75205
+ 413: MediaMediaError;
75206
+ /**
75207
+ * Request failed; see the error code reference.
75208
+ */
75209
+ 415: MediaMediaError;
75210
+ /**
75211
+ * Request failed; see the error code reference.
75212
+ */
75213
+ 422: MediaMediaError;
75214
+ /**
75215
+ * Request failed; see the error code reference.
75216
+ */
75217
+ 429: MediaMediaError;
75218
+ /**
75219
+ * Request failed; see the error code reference.
75220
+ */
75221
+ 501: MediaMediaError;
75222
+ /**
75223
+ * Request failed; see the error code reference.
75224
+ */
75225
+ 502: MediaMediaError;
75226
+ /**
75227
+ * Request failed; see the error code reference.
75228
+ */
75229
+ 503: MediaMediaError;
75230
+ };
75231
+ export type MediaListEventsError = MediaListEventsErrors[keyof MediaListEventsErrors];
75232
+ export type MediaListEventsResponses = {
75233
+ /**
75234
+ * Successful response.
75235
+ */
75236
+ 200: MediaMediaEventPage;
75237
+ };
75238
+ export type MediaListEventsResponse = MediaListEventsResponses[keyof MediaListEventsResponses];
75239
+ export type MediaCreateDeliveryTokenData = {
75240
+ /**
75241
+ * Options for authorizing private asset delivery within one active library.
75242
+ */
75243
+ body: {
75244
+ /**
75245
+ * 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.
75246
+ */
75247
+ acl?: string;
75248
+ /**
75249
+ * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900.
75250
+ */
75251
+ expires_in?: number;
75252
+ };
75253
+ path: {
75254
+ /**
75255
+ * Library ID returned by creation.
75256
+ */
75257
+ library_id: string;
75258
+ };
75259
+ query?: never;
75260
+ url: '/media/v1/libraries/{library_id}/delivery_tokens';
75261
+ };
75262
+ export type MediaCreateDeliveryTokenErrors = {
75263
+ /**
75264
+ * Request failed; see the error code reference.
75265
+ */
75266
+ 400: MediaMediaError;
75267
+ /**
75268
+ * Request failed; see the error code reference.
75269
+ */
75270
+ 403: MediaMediaError;
75271
+ /**
75272
+ * Request failed; see the error code reference.
75273
+ */
75274
+ 404: MediaMediaError;
75275
+ /**
75276
+ * Request failed; see the error code reference.
75277
+ */
75278
+ 409: MediaMediaError;
75279
+ /**
75280
+ * Request failed; see the error code reference.
75281
+ */
75282
+ 413: MediaMediaError;
75283
+ /**
75284
+ * Request failed; see the error code reference.
75285
+ */
75286
+ 415: MediaMediaError;
75287
+ /**
75288
+ * Request failed; see the error code reference.
75289
+ */
75290
+ 422: MediaMediaError;
72760
75291
  /**
72761
75292
  * Request failed; see the error code reference.
72762
75293
  */
@@ -72774,24 +75305,16 @@ export type MediaListFoldersErrors = {
72774
75305
  */
72775
75306
  503: MediaMediaError;
72776
75307
  };
72777
- export type MediaListFoldersError = MediaListFoldersErrors[keyof MediaListFoldersErrors];
72778
- export type MediaListFoldersResponses = {
75308
+ export type MediaCreateDeliveryTokenError = MediaCreateDeliveryTokenErrors[keyof MediaCreateDeliveryTokenErrors];
75309
+ export type MediaCreateDeliveryTokenResponses = {
72779
75310
  /**
72780
75311
  * Successful response.
72781
75312
  */
72782
- 200: MediaFolders;
75313
+ 200: MediaDeliveryToken;
72783
75314
  };
72784
- export type MediaListFoldersResponse = MediaListFoldersResponses[keyof MediaListFoldersResponses];
72785
- export type MediaCreateBatchData = {
72786
- /**
72787
- * Batch action and a selection frozen when the job is created.
72788
- */
72789
- body: MediaBatchAction & {
72790
- /**
72791
- * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
72792
- */
72793
- selector: MediaBatchSelector;
72794
- };
75315
+ export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
75316
+ export type MediaUnderstandingFailureSummaryData = {
75317
+ body?: never;
72795
75318
  path: {
72796
75319
  /**
72797
75320
  * Library ID returned by creation.
@@ -72799,19 +75322,19 @@ export type MediaCreateBatchData = {
72799
75322
  library_id: string;
72800
75323
  };
72801
75324
  query?: never;
72802
- url: '/media/v1/libraries/{library_id}/batches';
75325
+ url: '/media/v1/libraries/{library_id}/understandings/failure_summary';
72803
75326
  };
72804
- export type MediaCreateBatchErrors = {
75327
+ export type MediaUnderstandingFailureSummaryErrors = {
72805
75328
  /**
72806
- * Request failed; see the error code reference.
75329
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
72807
75330
  */
72808
75331
  400: MediaMediaError;
72809
75332
  /**
72810
- * Request failed; see the error code reference.
75333
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
72811
75334
  */
72812
75335
  403: MediaMediaError;
72813
75336
  /**
72814
- * Request failed; see the error code reference.
75337
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
72815
75338
  */
72816
75339
  404: MediaMediaError;
72817
75340
  /**
@@ -72819,19 +75342,23 @@ export type MediaCreateBatchErrors = {
72819
75342
  */
72820
75343
  409: MediaMediaError;
72821
75344
  /**
72822
- * Request failed; see the error code reference.
75345
+ * The file exceeds an input limit; provide a smaller source file.
72823
75346
  */
72824
75347
  413: MediaMediaError;
72825
75348
  /**
72826
- * Request failed; see the error code reference.
75349
+ * This media format is unsupported; provide a supported format.
72827
75350
  */
72828
75351
  415: MediaMediaError;
72829
75352
  /**
72830
75353
  * Request failed; see the error code reference.
72831
75354
  */
75355
+ 422: MediaMediaError;
75356
+ /**
75357
+ * A rate limit was reached; wait before retrying.
75358
+ */
72832
75359
  429: MediaMediaError;
72833
75360
  /**
72834
- * Request failed; see the error code reference.
75361
+ * The requested operation is unsupported; choose a supported method.
72835
75362
  */
72836
75363
  501: MediaMediaError;
72837
75364
  /**
@@ -72839,44 +75366,57 @@ export type MediaCreateBatchErrors = {
72839
75366
  */
72840
75367
  502: MediaMediaError;
72841
75368
  /**
72842
- * Request failed; see the error code reference.
75369
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
72843
75370
  */
72844
75371
  503: MediaMediaError;
72845
75372
  };
72846
- export type MediaCreateBatchError = MediaCreateBatchErrors[keyof MediaCreateBatchErrors];
72847
- export type MediaCreateBatchResponses = {
75373
+ export type MediaUnderstandingFailureSummaryError = MediaUnderstandingFailureSummaryErrors[keyof MediaUnderstandingFailureSummaryErrors];
75374
+ export type MediaUnderstandingFailureSummaryResponses = {
72848
75375
  /**
72849
75376
  * Successful response.
72850
75377
  */
72851
- 200: MediaJob;
75378
+ 200: MediaFailureSummary;
72852
75379
  };
72853
- export type MediaCreateBatchResponse = MediaCreateBatchResponses[keyof MediaCreateBatchResponses];
72854
- export type MediaGetBatchData = {
75380
+ export type MediaUnderstandingFailureSummaryResponse = MediaUnderstandingFailureSummaryResponses[keyof MediaUnderstandingFailureSummaryResponses];
75381
+ export type MediaListUnderstandingsByLibraryData = {
72855
75382
  body?: never;
72856
75383
  path: {
72857
75384
  /**
72858
75385
  * Library ID returned by creation.
72859
75386
  */
72860
75387
  library_id: string;
75388
+ };
75389
+ query?: {
72861
75390
  /**
72862
- * Batch identifier returned by createBatch or batchAssets; resolved within this library.
75391
+ * Folder path including all descendants; omitted or empty selects the entire library.
72863
75392
  */
72864
- job_id: string;
75393
+ folder?: string;
75394
+ /**
75395
+ * Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.
75396
+ */
75397
+ kinds?: string;
75398
+ /**
75399
+ * Cursor from the previous next_cursor.
75400
+ */
75401
+ cursor?: string;
75402
+ /**
75403
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
75404
+ */
75405
+ limit?: number;
72865
75406
  };
72866
- query?: never;
72867
- url: '/media/v1/libraries/{library_id}/batches/{job_id}';
75407
+ url: '/media/v1/libraries/{library_id}/understandings';
72868
75408
  };
72869
- export type MediaGetBatchErrors = {
75409
+ export type MediaListUnderstandingsByLibraryErrors = {
72870
75410
  /**
72871
- * Request failed; see the error code reference.
75411
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
72872
75412
  */
72873
75413
  400: MediaMediaError;
72874
75414
  /**
72875
- * Request failed; see the error code reference.
75415
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
72876
75416
  */
72877
75417
  403: MediaMediaError;
72878
75418
  /**
72879
- * Request failed; see the error code reference.
75419
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
72880
75420
  */
72881
75421
  404: MediaMediaError;
72882
75422
  /**
@@ -72884,19 +75424,23 @@ export type MediaGetBatchErrors = {
72884
75424
  */
72885
75425
  409: MediaMediaError;
72886
75426
  /**
72887
- * Request failed; see the error code reference.
75427
+ * The file exceeds an input limit; provide a smaller source file.
72888
75428
  */
72889
75429
  413: MediaMediaError;
72890
75430
  /**
72891
- * Request failed; see the error code reference.
75431
+ * This media format is unsupported; provide a supported format.
72892
75432
  */
72893
75433
  415: MediaMediaError;
72894
75434
  /**
72895
75435
  * Request failed; see the error code reference.
72896
75436
  */
75437
+ 422: MediaMediaError;
75438
+ /**
75439
+ * A rate limit was reached; wait before retrying.
75440
+ */
72897
75441
  429: MediaMediaError;
72898
75442
  /**
72899
- * Request failed; see the error code reference.
75443
+ * The requested operation is unsupported; choose a supported method.
72900
75444
  */
72901
75445
  501: MediaMediaError;
72902
75446
  /**
@@ -72904,27 +75448,73 @@ export type MediaGetBatchErrors = {
72904
75448
  */
72905
75449
  502: MediaMediaError;
72906
75450
  /**
72907
- * Request failed; see the error code reference.
75451
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
72908
75452
  */
72909
75453
  503: MediaMediaError;
72910
75454
  };
72911
- export type MediaGetBatchError = MediaGetBatchErrors[keyof MediaGetBatchErrors];
72912
- export type MediaGetBatchResponses = {
75455
+ export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
75456
+ export type MediaListUnderstandingsByLibraryResponses = {
72913
75457
  /**
72914
75458
  * Successful response.
72915
75459
  */
72916
- 200: MediaJob;
75460
+ 200: MediaUnderstandingPage;
72917
75461
  };
72918
- export type MediaGetBatchResponse = MediaGetBatchResponses[keyof MediaGetBatchResponses];
72919
- export type MediaBatchAssetsData = {
75462
+ export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
75463
+ export type MediaCreateGenerationData = {
72920
75464
  /**
72921
- * Batch action and a selection frozen when the job is created.
75465
+ * Text-to-video request. Generation is charged per second; unsaved candidates expire after 7 days.
72922
75466
  */
72923
- body: MediaBatchAction & {
75467
+ body: {
72924
75468
  /**
72925
- * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
75469
+ * Generation operation; v1 accepts only video.generate text-to-video requests.
72926
75470
  */
72927
- selector: MediaBatchSelector;
75471
+ intent: 'video.generate';
75472
+ /**
75473
+ * Text prompt describing the video to generate.
75474
+ */
75475
+ prompt: string;
75476
+ /**
75477
+ * Number of videos to generate; defaults to 1 and must be from 1 to 4.
75478
+ */
75479
+ count?: number;
75480
+ /**
75481
+ * Requested video duration in seconds; Router validates the model-specific supported durations.
75482
+ */
75483
+ duration_seconds?: number;
75484
+ /**
75485
+ * Requested output aspect ratio; defaults to 16:9 and Router validates model support.
75486
+ */
75487
+ aspect_ratio?: string;
75488
+ /**
75489
+ * Router model with video_generation capability; defaults to wan2.7-t2v.
75490
+ */
75491
+ model?: string;
75492
+ /**
75493
+ * candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically.
75494
+ */
75495
+ save?: 'candidate' | 'library';
75496
+ /**
75497
+ * 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.
75498
+ */
75499
+ asset_folder?: string;
75500
+ /**
75501
+ * Tags applied when an output becomes a library asset.
75502
+ */
75503
+ tags?: Array<string>;
75504
+ /**
75505
+ * Understanding behavior when a candidate is saved as an asset; defaults to auto.
75506
+ */
75507
+ understanding?: 'auto' | 'skip';
75508
+ /**
75509
+ * Not supported in v1; omit this field. Only text-to-video is currently available.
75510
+ */
75511
+ references?: Array<unknown>;
75512
+ };
75513
+ headers?: {
75514
+ /**
75515
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected.
75516
+ */
75517
+ 'Idempotency-Key'?: string;
72928
75518
  };
72929
75519
  path: {
72930
75520
  /**
@@ -72933,19 +75523,19 @@ export type MediaBatchAssetsData = {
72933
75523
  library_id: string;
72934
75524
  };
72935
75525
  query?: never;
72936
- url: '/media/v1/libraries/{library_id}/assets:batch';
75526
+ url: '/media/v1/libraries/{library_id}/generations';
72937
75527
  };
72938
- export type MediaBatchAssetsErrors = {
75528
+ export type MediaCreateGenerationErrors = {
72939
75529
  /**
72940
- * Request failed; see the error code reference.
75530
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
72941
75531
  */
72942
75532
  400: MediaMediaError;
72943
75533
  /**
72944
- * Request failed; see the error code reference.
75534
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
72945
75535
  */
72946
75536
  403: MediaMediaError;
72947
75537
  /**
72948
- * Request failed; see the error code reference.
75538
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
72949
75539
  */
72950
75540
  404: MediaMediaError;
72951
75541
  /**
@@ -72953,19 +75543,23 @@ export type MediaBatchAssetsErrors = {
72953
75543
  */
72954
75544
  409: MediaMediaError;
72955
75545
  /**
72956
- * Request failed; see the error code reference.
75546
+ * The file exceeds an input limit; provide a smaller source file.
72957
75547
  */
72958
75548
  413: MediaMediaError;
72959
75549
  /**
72960
- * Request failed; see the error code reference.
75550
+ * This media format is unsupported; provide a supported format.
72961
75551
  */
72962
75552
  415: MediaMediaError;
72963
75553
  /**
72964
75554
  * Request failed; see the error code reference.
72965
75555
  */
75556
+ 422: MediaMediaError;
75557
+ /**
75558
+ * This library already has five queued or running generation jobs; wait until one finishes and retry.
75559
+ */
72966
75560
  429: MediaMediaError;
72967
75561
  /**
72968
- * Request failed; see the error code reference.
75562
+ * The requested operation is unsupported; choose a supported method.
72969
75563
  */
72970
75564
  501: MediaMediaError;
72971
75565
  /**
@@ -72973,44 +75567,53 @@ export type MediaBatchAssetsErrors = {
72973
75567
  */
72974
75568
  502: MediaMediaError;
72975
75569
  /**
72976
- * Request failed; see the error code reference.
75570
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
72977
75571
  */
72978
75572
  503: MediaMediaError;
72979
75573
  };
72980
- export type MediaBatchAssetsError = MediaBatchAssetsErrors[keyof MediaBatchAssetsErrors];
72981
- export type MediaBatchAssetsResponses = {
75574
+ export type MediaCreateGenerationError = MediaCreateGenerationErrors[keyof MediaCreateGenerationErrors];
75575
+ export type MediaCreateGenerationResponses = {
72982
75576
  /**
72983
75577
  * Successful response.
72984
75578
  */
72985
- 200: MediaJob;
75579
+ 202: MediaJob;
72986
75580
  };
72987
- export type MediaBatchAssetsResponse = MediaBatchAssetsResponses[keyof MediaBatchAssetsResponses];
72988
- export type MediaGetJobData = {
75581
+ export type MediaCreateGenerationResponse = MediaCreateGenerationResponses[keyof MediaCreateGenerationResponses];
75582
+ export type MediaListJobsData = {
72989
75583
  body?: never;
72990
75584
  path: {
72991
75585
  /**
72992
75586
  * Library ID returned by creation.
72993
75587
  */
72994
75588
  library_id: string;
75589
+ };
75590
+ query?: {
72995
75591
  /**
72996
- * Batch identifier returned by createBatch or batchAssets; resolved within this library.
75592
+ * Filter jobs by their current status.
72997
75593
  */
72998
- job_id: string;
75594
+ status?: MediaJobStatus;
75595
+ /**
75596
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
75597
+ */
75598
+ limit?: number;
75599
+ /**
75600
+ * Job id from the previous page’s next_cursor; omit for the first page.
75601
+ */
75602
+ cursor?: MediaJobId;
72999
75603
  };
73000
- query?: never;
73001
- url: '/media/v1/libraries/{library_id}/jobs/{job_id}';
75604
+ url: '/media/v1/libraries/{library_id}/jobs';
73002
75605
  };
73003
- export type MediaGetJobErrors = {
75606
+ export type MediaListJobsErrors = {
73004
75607
  /**
73005
- * Request failed; see the error code reference.
75608
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
73006
75609
  */
73007
75610
  400: MediaMediaError;
73008
75611
  /**
73009
- * Request failed; see the error code reference.
75612
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73010
75613
  */
73011
75614
  403: MediaMediaError;
73012
75615
  /**
73013
- * Request failed; see the error code reference.
75616
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
73014
75617
  */
73015
75618
  404: MediaMediaError;
73016
75619
  /**
@@ -73018,19 +75621,23 @@ export type MediaGetJobErrors = {
73018
75621
  */
73019
75622
  409: MediaMediaError;
73020
75623
  /**
73021
- * Request failed; see the error code reference.
75624
+ * The file exceeds an input limit; provide a smaller source file.
73022
75625
  */
73023
75626
  413: MediaMediaError;
73024
75627
  /**
73025
- * Request failed; see the error code reference.
75628
+ * This media format is unsupported; provide a supported format.
73026
75629
  */
73027
75630
  415: MediaMediaError;
73028
75631
  /**
73029
75632
  * Request failed; see the error code reference.
73030
75633
  */
75634
+ 422: MediaMediaError;
75635
+ /**
75636
+ * A rate limit was reached; wait before retrying.
75637
+ */
73031
75638
  429: MediaMediaError;
73032
75639
  /**
73033
- * Request failed; see the error code reference.
75640
+ * The requested operation is unsupported; choose a supported method.
73034
75641
  */
73035
75642
  501: MediaMediaError;
73036
75643
  /**
@@ -73038,57 +75645,44 @@ export type MediaGetJobErrors = {
73038
75645
  */
73039
75646
  502: MediaMediaError;
73040
75647
  /**
73041
- * Request failed; see the error code reference.
75648
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
73042
75649
  */
73043
75650
  503: MediaMediaError;
73044
75651
  };
73045
- export type MediaGetJobError = MediaGetJobErrors[keyof MediaGetJobErrors];
73046
- export type MediaGetJobResponses = {
75652
+ export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
75653
+ export type MediaListJobsResponses = {
73047
75654
  /**
73048
75655
  * Successful response.
73049
75656
  */
73050
- 200: MediaJob;
75657
+ 200: MediaJobPage;
73051
75658
  };
73052
- export type MediaGetJobResponse = MediaGetJobResponses[keyof MediaGetJobResponses];
73053
- export type MediaListEventsData = {
75659
+ export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
75660
+ export type MediaCancelJobData = {
73054
75661
  body?: never;
73055
75662
  path: {
73056
75663
  /**
73057
75664
  * Library ID returned by creation.
73058
75665
  */
73059
75666
  library_id: string;
73060
- };
73061
- query?: {
73062
- /**
73063
- * Events with a larger sequence. Use with asc; cannot combine with before_seq.
73064
- */
73065
- after_seq?: number;
73066
- /**
73067
- * Events with a smaller sequence. Use with desc; cannot combine with after_seq.
73068
- */
73069
- before_seq?: number;
73070
- /**
73071
- * Sequence order: asc is increasing; desc is decreasing.
73072
- */
73073
- order?: 'asc' | 'desc';
73074
75667
  /**
73075
- * Maximum items per page, from 1 to 200; defaults to 50.
75668
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
73076
75669
  */
73077
- limit?: number;
75670
+ job_id: string;
73078
75671
  };
73079
- url: '/media/v1/libraries/{library_id}/events';
75672
+ query?: never;
75673
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
73080
75674
  };
73081
- export type MediaListEventsErrors = {
75675
+ export type MediaCancelJobErrors = {
73082
75676
  /**
73083
- * Request failed; see the error code reference.
75677
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
73084
75678
  */
73085
75679
  400: MediaMediaError;
73086
75680
  /**
73087
- * Request failed; see the error code reference.
75681
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73088
75682
  */
73089
75683
  403: MediaMediaError;
73090
75684
  /**
73091
- * Request failed; see the error code reference.
75685
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
73092
75686
  */
73093
75687
  404: MediaMediaError;
73094
75688
  /**
@@ -73096,19 +75690,23 @@ export type MediaListEventsErrors = {
73096
75690
  */
73097
75691
  409: MediaMediaError;
73098
75692
  /**
73099
- * Request failed; see the error code reference.
75693
+ * The file exceeds an input limit; provide a smaller source file.
73100
75694
  */
73101
75695
  413: MediaMediaError;
73102
75696
  /**
73103
- * Request failed; see the error code reference.
75697
+ * This media format is unsupported; provide a supported format.
73104
75698
  */
73105
75699
  415: MediaMediaError;
73106
75700
  /**
73107
75701
  * Request failed; see the error code reference.
73108
75702
  */
75703
+ 422: MediaMediaError;
75704
+ /**
75705
+ * A rate limit was reached; wait before retrying.
75706
+ */
73109
75707
  429: MediaMediaError;
73110
75708
  /**
73111
- * Request failed; see the error code reference.
75709
+ * The requested operation is unsupported; choose a supported method.
73112
75710
  */
73113
75711
  501: MediaMediaError;
73114
75712
  /**
@@ -73116,52 +75714,68 @@ export type MediaListEventsErrors = {
73116
75714
  */
73117
75715
  502: MediaMediaError;
73118
75716
  /**
73119
- * Request failed; see the error code reference.
75717
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
73120
75718
  */
73121
75719
  503: MediaMediaError;
73122
75720
  };
73123
- export type MediaListEventsError = MediaListEventsErrors[keyof MediaListEventsErrors];
73124
- export type MediaListEventsResponses = {
75721
+ export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
75722
+ export type MediaCancelJobResponses = {
73125
75723
  /**
73126
75724
  * Successful response.
73127
75725
  */
73128
- 200: MediaMediaEventPage;
75726
+ 200: MediaJob;
73129
75727
  };
73130
- export type MediaListEventsResponse = MediaListEventsResponses[keyof MediaListEventsResponses];
73131
- export type MediaCreateDeliveryTokenData = {
75728
+ export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
75729
+ export type MediaSaveGenerationOutputData = {
73132
75730
  /**
73133
- * Options for authorizing private asset delivery within one active library.
75731
+ * Optional asset metadata and understanding behavior for a successful candidate.
73134
75732
  */
73135
- body: {
75733
+ body?: {
73136
75734
  /**
73137
- * 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.
75735
+ * Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent.
73138
75736
  */
73139
- acl?: string;
75737
+ public_id?: string;
73140
75738
  /**
73141
- * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 3600.
75739
+ * 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.
73142
75740
  */
73143
- expires_in?: number;
75741
+ asset_folder?: string;
75742
+ /**
75743
+ * Tags to apply to the saved asset.
75744
+ */
75745
+ tags?: Array<string>;
75746
+ /**
75747
+ * Understanding behavior for the saved asset; defaults to auto.
75748
+ */
75749
+ understanding?: 'auto' | 'skip';
73144
75750
  };
73145
75751
  path: {
73146
75752
  /**
73147
75753
  * Library ID returned by creation.
73148
75754
  */
73149
75755
  library_id: string;
75756
+ /**
75757
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
75758
+ */
75759
+ job_id: string;
75760
+ /**
75761
+ * Zero-based position of the candidate in the Job outputs array.
75762
+ */
75763
+ index: string;
73150
75764
  };
73151
75765
  query?: never;
73152
- url: '/media/v1/libraries/{library_id}/delivery_tokens';
75766
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save';
73153
75767
  };
73154
- export type MediaCreateDeliveryTokenErrors = {
75768
+ export type MediaSaveGenerationOutputErrors = {
73155
75769
  /**
73156
- * Request failed; see the error code reference.
75770
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
73157
75771
  */
73158
75772
  400: MediaMediaError;
73159
75773
  /**
73160
- * Request failed; see the error code reference.
75774
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73161
75775
  */
73162
75776
  403: MediaMediaError;
73163
75777
  /**
73164
- * Request failed; see the error code reference.
75778
+ * The job or output is inaccessible, missing, or the candidate has expired; verify library ownership and create a new job for an expired candidate.
73165
75779
  */
73166
75780
  404: MediaMediaError;
73167
75781
  /**
@@ -73169,38 +75783,102 @@ export type MediaCreateDeliveryTokenErrors = {
73169
75783
  */
73170
75784
  409: MediaMediaError;
73171
75785
  /**
73172
- * Request failed; see the error code reference.
75786
+ * The file exceeds an input limit; provide a smaller source file.
73173
75787
  */
73174
75788
  413: MediaMediaError;
73175
75789
  /**
73176
- * Request failed; see the error code reference.
75790
+ * This media format is unsupported; provide a supported format.
73177
75791
  */
73178
75792
  415: MediaMediaError;
73179
75793
  /**
73180
75794
  * Request failed; see the error code reference.
73181
75795
  */
75796
+ 422: MediaMediaError;
75797
+ /**
75798
+ * A rate limit was reached; wait before retrying.
75799
+ */
73182
75800
  429: MediaMediaError;
73183
75801
  /**
73184
- * Request failed; see the error code reference.
75802
+ * The requested operation is unsupported; choose a supported method.
73185
75803
  */
73186
75804
  501: MediaMediaError;
73187
75805
  /**
73188
75806
  * Request failed; see the error code reference.
73189
75807
  */
73190
75808
  502: MediaMediaError;
75809
+ /**
75810
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75811
+ */
75812
+ 503: MediaMediaError;
75813
+ };
75814
+ export type MediaSaveGenerationOutputError = MediaSaveGenerationOutputErrors[keyof MediaSaveGenerationOutputErrors];
75815
+ export type MediaSaveGenerationOutputResponses = {
75816
+ /**
75817
+ * Successful response.
75818
+ */
75819
+ 200: MediaAsset;
75820
+ };
75821
+ export type MediaSaveGenerationOutputResponse = MediaSaveGenerationOutputResponses[keyof MediaSaveGenerationOutputResponses];
75822
+ export type MediaGetGenerationCapabilitiesData = {
75823
+ body?: never;
75824
+ path?: never;
75825
+ query?: never;
75826
+ url: '/media/v1/generation/capabilities';
75827
+ };
75828
+ export type MediaGetGenerationCapabilitiesErrors = {
75829
+ /**
75830
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75831
+ */
75832
+ 400: MediaMediaError;
75833
+ /**
75834
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75835
+ */
75836
+ 403: MediaMediaError;
75837
+ /**
75838
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75839
+ */
75840
+ 404: MediaMediaError;
75841
+ /**
75842
+ * Request failed; see the error code reference.
75843
+ */
75844
+ 409: MediaMediaError;
75845
+ /**
75846
+ * The file exceeds an input limit; provide a smaller source file.
75847
+ */
75848
+ 413: MediaMediaError;
75849
+ /**
75850
+ * This media format is unsupported; provide a supported format.
75851
+ */
75852
+ 415: MediaMediaError;
75853
+ /**
75854
+ * Request failed; see the error code reference.
75855
+ */
75856
+ 422: MediaMediaError;
75857
+ /**
75858
+ * A rate limit was reached; wait before retrying.
75859
+ */
75860
+ 429: MediaMediaError;
75861
+ /**
75862
+ * The requested operation is unsupported; choose a supported method.
75863
+ */
75864
+ 501: MediaMediaError;
73191
75865
  /**
73192
75866
  * Request failed; see the error code reference.
73193
75867
  */
75868
+ 502: MediaMediaError;
75869
+ /**
75870
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75871
+ */
73194
75872
  503: MediaMediaError;
73195
75873
  };
73196
- export type MediaCreateDeliveryTokenError = MediaCreateDeliveryTokenErrors[keyof MediaCreateDeliveryTokenErrors];
73197
- export type MediaCreateDeliveryTokenResponses = {
75874
+ export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
75875
+ export type MediaGetGenerationCapabilitiesResponses = {
73198
75876
  /**
73199
75877
  * Successful response.
73200
75878
  */
73201
- 200: MediaDeliveryToken;
75879
+ 200: MediaGenerationCapabilities;
73202
75880
  };
73203
- export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
75881
+ export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
73204
75882
  export type GetSandboxV1SandboxesData = {
73205
75883
  body?: never;
73206
75884
  path?: never;
@@ -73593,6 +76271,10 @@ export type ListSandboxTemplatesResponses = {
73593
76271
  buildCount: number;
73594
76272
  envdVersion: SandboxEnvdVersion;
73595
76273
  buildStatus: SandboxTemplateBuildStatus;
76274
+ /**
76275
+ * 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.
76276
+ */
76277
+ lifecycles?: Array<'ephemeral' | 'persistent'>;
73596
76278
  /**
73597
76279
  * True for an official catalog template; false for your organization's custom templates.
73598
76280
  */
@@ -75796,7 +78478,7 @@ export type TicketGetTicketsData = {
75796
78478
  */
75797
78479
  page_token?: string;
75798
78480
  /**
75799
- * Filter expression.
78481
+ * Filter expression using field:value qualifiers, such as is:open milestone:5.
75800
78482
  */
75801
78483
  filter?: string;
75802
78484
  };
@@ -78215,7 +80897,7 @@ export type TicketGetActivityData = {
78215
80897
  */
78216
80898
  page_token?: string;
78217
80899
  /**
78218
- * Filter expression.
80900
+ * Activity filter expression.
78219
80901
  */
78220
80902
  filter?: string;
78221
80903
  };