@deepraxis/sdk 0.1.1-dev.7d20ab6 → 0.1.1-dev.7e14834

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.
@@ -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
  /**
@@ -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
  /**
@@ -1207,13 +1207,38 @@ export type OwnFilePraxisUpload = {
1207
1207
  */
1208
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
  /**
@@ -1286,7 +1311,7 @@ export type OwnFileSignedUploadRequest = {
1286
1311
  */
1287
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.
@@ -13018,6 +13051,27 @@ export type CutExport = {
13018
13051
  */
13019
13052
  audio: 'pending' | 'done';
13020
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
+ };
13021
13075
  /**
13022
13076
  * Output media reference, available after the export reaches done.
13023
13077
  */
@@ -13090,6 +13144,19 @@ export type CutExportInput = {
13090
13144
  */
13091
13145
  binding?: string;
13092
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
+ };
13093
13160
  };
13094
13161
  /**
13095
13162
  * One page of organization-accessible exports.
@@ -13616,7 +13683,7 @@ export type KnowledgeNativeCreateVectorStore = {
13616
13683
  * Existing File IDs to attach; the store allows up to 10,000 files.
13617
13684
  */
13618
13685
  file_ids?: Array<string>;
13619
- chunking_strategy?: KnowledgeChunkingInput;
13686
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13620
13687
  /**
13621
13688
  * Accepted but not saved or returned; its type is not validated.
13622
13689
  */
@@ -13780,7 +13847,7 @@ export type KnowledgeNativeVectorStoreFile = {
13780
13847
  * Unix timestamp in seconds.
13781
13848
  */
13782
13849
  created_at: number;
13783
- chunking_strategy: KnowledgeChunking;
13850
+ chunking_strategy: KnowledgeNativeChunking;
13784
13851
  /**
13785
13852
  * File attributes used for search filtering; null means no attributes are set.
13786
13853
  */
@@ -13790,7 +13857,7 @@ export type KnowledgeNativeVectorStoreFile = {
13790
13857
  */
13791
13858
  praxis?: {
13792
13859
  /**
13793
- * 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.
13794
13861
  */
13795
13862
  failure_reason?: 'file_too_large' | 'encrypted' | 'empty' | 'unsupported_type' | 'token_limit' | 'recognition_unavailable' | 'deadline_exceeded' | 'internal';
13796
13863
  /**
@@ -13827,7 +13894,7 @@ export type KnowledgeNativeVectorStoreFile = {
13827
13894
  chunk_count: number;
13828
13895
  };
13829
13896
  };
13830
- export type KnowledgeAttachFile = {
13897
+ export type KnowledgeNativeAttachFile = {
13831
13898
  /**
13832
13899
  * Existing source File ID returned by file upload; the file must be visible to the caller.
13833
13900
  */
@@ -13836,7 +13903,7 @@ export type KnowledgeAttachFile = {
13836
13903
  * Search-filter attributes for a newly attached file; omission or null leaves attributes unset. Reattaching an existing file does not change them.
13837
13904
  */
13838
13905
  attributes?: KnowledgeAttributes | null;
13839
- chunking_strategy?: KnowledgeChunkingInput;
13906
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13840
13907
  };
13841
13908
  export type KnowledgeNativeVectorStoreFileList = {
13842
13909
  /**
@@ -13933,7 +14000,7 @@ export type KnowledgeFileBatch = {
13933
14000
  /**
13934
14001
  * Provide exactly one of file_ids or files. Already attached files are reused without changing their attributes or chunking.
13935
14002
  */
13936
- export type KnowledgeCreateBatch = {
14003
+ export type KnowledgeNativeCreateBatch = {
13937
14004
  /**
13938
14005
  * Existing File IDs to attach with shared attributes and chunking settings. Supply file_ids or files, never both.
13939
14006
  */
@@ -13942,7 +14009,7 @@ export type KnowledgeCreateBatch = {
13942
14009
  * Search-filter attributes applied to each newly attached file; omission or null leaves them unset.
13943
14010
  */
13944
14011
  attributes?: KnowledgeAttributes | null;
13945
- chunking_strategy?: KnowledgeChunkingInput;
14012
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13946
14013
  } | {
13947
14014
  /**
13948
14015
  * Files to attach with individual attributes and chunking settings; top-level attributes and chunking_strategy are ignored.
@@ -13953,7 +14020,7 @@ export type KnowledgeCreateBatch = {
13953
14020
  */
13954
14021
  file_id: string;
13955
14022
  attributes?: KnowledgeAttributes;
13956
- chunking_strategy?: KnowledgeChunkingInput;
14023
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13957
14024
  }>;
13958
14025
  /**
13959
14026
  * Ignored when files is supplied.
@@ -14142,7 +14209,7 @@ export type MediaLibrary = {
14142
14209
  };
14143
14210
  export type MediaMediaError = {
14144
14211
  error: {
14145
- 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';
14146
14213
  message: string;
14147
14214
  details: string | null;
14148
14215
  };
@@ -14160,7 +14227,7 @@ export type MediaMediaModelsInput = {
14160
14227
  */
14161
14228
  embedding?: string | null;
14162
14229
  /**
14163
- * 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.
14164
14231
  */
14165
14232
  transcription?: string | null;
14166
14233
  /**
@@ -14171,6 +14238,10 @@ export type MediaMediaModelsInput = {
14171
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.
14172
14239
  */
14173
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;
14174
14245
  } | null;
14175
14246
  /**
14176
14247
  * Libraries in this page, ordered by creation time descending.
@@ -14185,6 +14256,25 @@ export type MediaLibraryPage = MediaPage & {
14185
14256
  */
14186
14257
  next_cursor: string | null;
14187
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
+ };
14188
14278
  /**
14189
14279
  * Receipt confirming permanent removal of a previously deleted library.
14190
14280
  */
@@ -14344,7 +14434,7 @@ export type MediaAsset = {
14344
14434
  */
14345
14435
  url: string;
14346
14436
  /**
14347
- * 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.
14348
14438
  */
14349
14439
  secure_url: string;
14350
14440
  /**
@@ -14371,6 +14461,10 @@ export type MediaAsset = {
14371
14461
  * Resource status; active identifies an asset that has not been deleted.
14372
14462
  */
14373
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;
14374
14468
  /**
14375
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.
14376
14470
  */
@@ -14427,6 +14521,27 @@ export type MediaAsset = {
14427
14521
  };
14428
14522
  };
14429
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
+ };
14430
14545
  };
14431
14546
  /**
14432
14547
  * Receipt confirming that the asset was deleted.
@@ -14567,13 +14682,13 @@ export type MediaJob = {
14567
14682
  */
14568
14683
  library_id: MediaLibraryId;
14569
14684
  /**
14570
- * 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, retrying only retryable failed steps; kinds narrows the selection.
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.
14571
14686
  */
14572
- action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess';
14687
+ action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'generate';
14573
14688
  /**
14574
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.
14575
14690
  */
14576
- status: 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed';
14691
+ status: MediaJobStatus;
14577
14692
  /**
14578
14693
  * Number of distinct assets selected when the job was created.
14579
14694
  */
@@ -14593,12 +14708,66 @@ export type MediaJob = {
14593
14708
  /**
14594
14709
  * Identifier supplied for the failed item; it may identify a missing asset.
14595
14710
  */
14596
- asset_id: MediaAssetId;
14711
+ asset_id?: MediaAssetId;
14712
+ /**
14713
+ * Zero-based output index for a failed video-generation item.
14714
+ */
14715
+ index?: number;
14597
14716
  /**
14598
14717
  * Domain error code explaining the individual item failure.
14599
14718
  */
14600
14719
  code: MediaMediaErrorCode;
14601
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
+ };
14602
14771
  /**
14603
14772
  * Time the batch job was created, in UTC.
14604
14773
  */
@@ -14647,11 +14816,11 @@ export type MediaBatchAction = {
14647
14816
  action: 'delete';
14648
14817
  } | {
14649
14818
  /**
14650
- * reprocess retries only retryable failed steps; kinds narrows the selection.
14819
+ * reprocess retries recoverable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported, permanent and completed steps remain unchanged.
14651
14820
  */
14652
14821
  action: 'reprocess';
14653
14822
  /**
14654
- * Optional subset of failed processing kinds to inspect. Only retryable failed steps run; unsupported, permanent and completed steps remain unchanged. Omit to inspect all failed steps.
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.
14655
14824
  */
14656
14825
  kinds?: Array<MediaProcessingKind>;
14657
14826
  };
@@ -14713,6 +14882,77 @@ export type MediaFailureSummary = {
14713
14882
  */
14714
14883
  counts_complete: boolean;
14715
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
+ };
14716
14956
  /**
14717
14957
  * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
14718
14958
  */
@@ -15155,6 +15395,10 @@ export type SandboxTemplateBuildInfo = {
15155
15395
  reason?: SandboxBuildStatusReason;
15156
15396
  };
15157
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'>;
15158
15402
  /**
15159
15403
  * Identifier of the template
15160
15404
  */
@@ -25159,6 +25403,20 @@ export type CutTrackSummary = {
25159
25403
  */
25160
25404
  items: number;
25161
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
+ };
25162
25420
  /**
25163
25421
  * Reference to an asset in a bound library; follows asset overwrites to the latest version rather than pinning a version.
25164
25422
  */
@@ -25381,7 +25639,7 @@ export type KnowledgeKnowledgeModels = {
25381
25639
  */
25382
25640
  query_rewrite: string;
25383
25641
  /**
25384
- * 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.
25385
25643
  */
25386
25644
  ocr: string;
25387
25645
  /**
@@ -25390,14 +25648,9 @@ export type KnowledgeKnowledgeModels = {
25390
25648
  vision: string;
25391
25649
  };
25392
25650
  /**
25393
- * 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.
25394
25652
  */
25395
- export type KnowledgeChunkingInput = {
25396
- /**
25397
- * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
25398
- */
25399
- type: 'auto';
25400
- } | KnowledgeStaticChunking;
25653
+ export type KnowledgeNativeChunkingInput = KnowledgeChunkingInput | KnowledgeHierarchicalChunking;
25401
25654
  /**
25402
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.
25403
25656
  */
@@ -25415,7 +25668,7 @@ export type KnowledgeKnowledgeModelsInput = {
25415
25668
  */
25416
25669
  query_rewrite?: string | null;
25417
25670
  /**
25418
- * 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.
25419
25672
  */
25420
25673
  ocr?: string | null;
25421
25674
  /**
@@ -25452,6 +25705,10 @@ export type KnowledgeNativeSearchResult = {
25452
25705
  * Extracted text of the matched chunk, which may overlap neighboring chunks.
25453
25706
  */
25454
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;
25455
25712
  /**
25456
25713
  * Resource ID.
25457
25714
  */
@@ -25515,14 +25772,9 @@ export type KnowledgeFilter = {
25515
25772
  filters: Array<KnowledgeFilter>;
25516
25773
  };
25517
25774
  /**
25518
- * 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.
25519
25776
  */
25520
- export type KnowledgeChunking = KnowledgeStaticChunking | {
25521
- /**
25522
- * other identifies a stored strategy whose chunk-size settings are unavailable.
25523
- */
25524
- type: 'other';
25525
- };
25777
+ export type KnowledgeNativeChunking = KnowledgeChunking | KnowledgeHierarchicalChunking;
25526
25778
  /**
25527
25779
  * File attributes used by search filters. Up to 16 keys of 64 characters; string values up to 512 characters.
25528
25780
  */
@@ -25646,7 +25898,7 @@ export type MediaMediaModels = {
25646
25898
  */
25647
25899
  embedding: string;
25648
25900
  /**
25649
- * 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.
25650
25902
  */
25651
25903
  transcription: string;
25652
25904
  /**
@@ -25657,6 +25909,10 @@ export type MediaMediaModels = {
25657
25909
  * Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
25658
25910
  */
25659
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;
25660
25916
  };
25661
25917
  /**
25662
25918
  * Identifier of a library belonging to the caller.
@@ -25817,7 +26073,7 @@ export type MediaCloudinaryResource = {
25817
26073
  */
25818
26074
  url: string;
25819
26075
  /**
25820
- * 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.
25821
26077
  */
25822
26078
  secure_url: string;
25823
26079
  /**
@@ -25853,13 +26109,13 @@ export type MediaChunkComplete = MediaCloudinaryResource & {
25853
26109
  done: true;
25854
26110
  };
25855
26111
  /**
25856
- * 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 or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
25857
26113
  */
25858
26114
  export type MediaProcessing = {
25859
26115
  /**
25860
- * Current understanding stage: probe, frames, shots, visual, transcript, transcript_reference, transcript_correction, overview, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
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.
25861
26117
  */
25862
- readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'overview' | 'embedding' | 'finalize' | null;
26118
+ readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
25863
26119
  state: MediaProcessingState;
25864
26120
  /**
25865
26121
  * Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
@@ -25926,7 +26182,7 @@ export type MediaUnderstanding = {
25926
26182
  */
25927
26183
  asset_version: number;
25928
26184
  /**
25929
- * 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.
25930
26186
  */
25931
26187
  kind: MediaUnderstandingKind;
25932
26188
  /**
@@ -25950,7 +26206,7 @@ export type MediaUnderstanding = {
25950
26206
  */
25951
26207
  content: string | null;
25952
26208
  /**
25953
- * 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.
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.
25954
26210
  */
25955
26211
  data: unknown | null;
25956
26212
  /**
@@ -26126,7 +26382,7 @@ export type MediaSearchAsset = {
26126
26382
  */
26127
26383
  url: string;
26128
26384
  /**
26129
- * 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.
26130
26386
  */
26131
26387
  secure_url: string;
26132
26388
  /**
@@ -26153,6 +26409,10 @@ export type MediaSearchAsset = {
26153
26409
  * Resource status; active identifies an asset that has not been deleted.
26154
26410
  */
26155
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;
26156
26416
  /**
26157
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.
26158
26418
  */
@@ -26209,6 +26469,27 @@ export type MediaSearchAsset = {
26209
26469
  };
26210
26470
  };
26211
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
+ };
26212
26493
  };
26213
26494
  /**
26214
26495
  * A matching asset with its ranking score and supporting matches.
@@ -26231,11 +26512,11 @@ export type MediaSemanticHit = {
26231
26512
  */
26232
26513
  matches: Array<MediaSemanticMatch>;
26233
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';
26234
26516
  /**
26235
- * Identifier returned when a batch job is created.
26517
+ * State of a requested video output.
26236
26518
  */
26237
- export type MediaJobId = string;
26238
- 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';
26239
26520
  /**
26240
26521
  * A recorded library event with a monotonically increasing sequence within that library.
26241
26522
  */
@@ -30678,23 +30959,39 @@ export type CutMarker = {
30678
30959
  */
30679
30960
  label: string;
30680
30961
  };
30681
- 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 = {
30682
30966
  /**
30683
- * static selects explicit chunk-size and overlap settings.
30967
+ * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
30684
30968
  */
30685
- 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 = {
30686
30975
  /**
30687
- * Chunk-size and overlap limits in estimated tokens.
30976
+ * hierarchical selects smaller child chunks for matching and larger parent chunks for context.
30688
30977
  */
30689
- static: {
30978
+ type: 'hierarchical';
30979
+ /**
30980
+ * Required parent, child and overlap sizes in estimated tokens. All three values must be integers.
30981
+ */
30982
+ hierarchical: {
30690
30983
  /**
30691
- * Estimated tokens per chunk.
30984
+ * Maximum estimated tokens per parent chunk, from 101 through 4096; must exceed child_max_tokens.
30692
30985
  */
30693
- max_chunk_size_tokens: number;
30986
+ parent_max_tokens: number;
30694
30987
  /**
30695
- * 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.
30696
30989
  */
30697
- 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;
30698
30995
  };
30699
30996
  };
30700
30997
  /**
@@ -30734,6 +31031,15 @@ export type KnowledgeSearchExplain = {
30734
31031
  */
30735
31032
  matched_terms: Array<string>;
30736
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
+ };
30737
31043
  /**
30738
31044
  * Aggregate processing state across the asset processing tasks.
30739
31045
  */
@@ -30799,9 +31105,9 @@ export type MediaTranscriptCorrection = {
30799
31105
  */
30800
31106
  export type MediaUnderstandingId = string;
30801
31107
  /**
30802
- * 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.
30803
31109
  */
30804
- export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'embedding';
31110
+ export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
30805
31111
  /**
30806
31112
  * Time range within the source media, expressed in milliseconds.
30807
31113
  */
@@ -30861,7 +31167,7 @@ export type MediaSemanticMatch = {
30861
31167
  /**
30862
31168
  * Type of change recorded for a library, asset, processing task, search index or batch.
30863
31169
  */
30864
- 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';
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';
30865
31171
  /**
30866
31172
  * Auto-resume enabled flag for paused sandboxes. Default false.
30867
31173
  */
@@ -31493,21 +31799,25 @@ export type AnthropicToolReferenceBlock = {
31493
31799
  */
31494
31800
  export type CutTextStyle = {
31495
31801
  /**
31496
- * 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.
31497
31803
  */
31498
- font_family?: 'Geist' | 'Noto Sans SC';
31804
+ font_family?: string;
31499
31805
  /**
31500
31806
  * Text size in output pixels.
31501
31807
  */
31502
31808
  font_size?: number;
31503
31809
  /**
31504
- * 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.
31505
31811
  */
31506
- font_weight?: 400 | 500 | 700;
31812
+ font_weight?: number;
31507
31813
  /**
31508
31814
  * Text color in #RRGGBB or #RRGGBBAA notation.
31509
31815
  */
31510
31816
  color?: string;
31817
+ /**
31818
+ * Optional solid or gradient glyph fill; gradients span the text box.
31819
+ */
31820
+ fill?: CutFill;
31511
31821
  /**
31512
31822
  * Optional text outline.
31513
31823
  */
@@ -31517,10 +31827,61 @@ export type CutTextStyle = {
31517
31827
  */
31518
31828
  color?: string;
31519
31829
  /**
31520
- * Outline width in output pixels.
31830
+ * Outline width in output pixels; must be non-negative and at most 40 pixels.
31521
31831
  */
31522
31832
  width?: number;
31523
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
+ };
31524
31885
  /**
31525
31886
  * Optional text background color as hexadecimal RGB or RGBA.
31526
31887
  */
@@ -31726,6 +32087,89 @@ export type CutJoinEffect = {
31726
32087
  * Blur radius in pixels at a reference frame height of 1080 pixels.
31727
32088
  */
31728
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
+ };
31729
32173
  };
31730
32174
  export type MediaTranscriptEdit = {
31731
32175
  /**
@@ -31948,6 +32392,51 @@ export type AnthropicCitationsConfig = {
31948
32392
  */
31949
32393
  enabled: boolean;
31950
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
+ };
31951
32440
  /**
31952
32441
  * Visual placement; coordinates are normalized canvas centers.
31953
32442
  */
@@ -32329,6 +32818,28 @@ export type AutomationJsonValueWritable = null | string | number | boolean | Aut
32329
32818
  export type AutomationJsonObjectWritable = {
32330
32819
  [key: string]: AutomationJsonValueWritable;
32331
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
+ };
32332
32843
  /**
32333
32844
  * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
32334
32845
  */
@@ -32531,7 +33042,7 @@ export type MediaAssetWritable = {
32531
33042
  */
32532
33043
  url: string;
32533
33044
  /**
32534
- * 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.
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.
32535
33046
  */
32536
33047
  secure_url: string;
32537
33048
  /**
@@ -32558,6 +33069,10 @@ export type MediaAssetWritable = {
32558
33069
  * Resource status; active identifies an asset that has not been deleted.
32559
33070
  */
32560
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;
32561
33076
  /**
32562
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.
32563
33078
  */
@@ -32614,6 +33129,27 @@ export type MediaAssetWritable = {
32614
33129
  };
32615
33130
  };
32616
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
+ };
32617
33153
  };
32618
33154
  /**
32619
33155
  * Understanding results in this page, ordered by creation time ascending.
@@ -32721,6 +33257,58 @@ export type AgentManaged193Writable = {
32721
33257
  export type AgentManaged143Writable = {
32722
33258
  [key: string]: string;
32723
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
+ };
32724
33312
  /**
32725
33313
  * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
32726
33314
  */
@@ -32734,7 +33322,7 @@ export type MediaMediaModelsWritable = {
32734
33322
  */
32735
33323
  embedding: string;
32736
33324
  /**
32737
- * Model call ID for speech transcription.
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.
32738
33326
  */
32739
33327
  transcription: string;
32740
33328
  };
@@ -32855,7 +33443,7 @@ export type MediaCloudinaryResourceWritable = {
32855
33443
  */
32856
33444
  url: string;
32857
33445
  /**
32858
- * 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.
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.
32859
33447
  */
32860
33448
  secure_url: string;
32861
33449
  /**
@@ -32878,7 +33466,7 @@ export type MediaChunkCompleteWritable = MediaCloudinaryResourceWritable & {
32878
33466
  done: true;
32879
33467
  };
32880
33468
  /**
32881
- * Per-task processing progress and its aggregate state for the asset.
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 or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
32882
33470
  */
32883
33471
  export type MediaProcessingWritable = {
32884
33472
  state: MediaProcessingState;
@@ -32910,7 +33498,7 @@ export type MediaUnderstandingWritable = {
32910
33498
  */
32911
33499
  asset_version: number;
32912
33500
  /**
32913
- * 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.
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.
32914
33502
  */
32915
33503
  kind: MediaUnderstandingKind;
32916
33504
  /**
@@ -32934,7 +33522,7 @@ export type MediaUnderstandingWritable = {
32934
33522
  */
32935
33523
  content: string | null;
32936
33524
  /**
32937
- * 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.
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.
32938
33526
  */
32939
33527
  data: unknown | null;
32940
33528
  /**
@@ -33080,7 +33668,7 @@ export type MediaSearchAssetWritable = {
33080
33668
  */
33081
33669
  url: string;
33082
33670
  /**
33083
- * 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.
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.
33084
33672
  */
33085
33673
  secure_url: string;
33086
33674
  /**
@@ -33107,6 +33695,10 @@ export type MediaSearchAssetWritable = {
33107
33695
  * Resource status; active identifies an asset that has not been deleted.
33108
33696
  */
33109
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;
33110
33702
  /**
33111
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.
33112
33704
  */
@@ -33163,6 +33755,27 @@ export type MediaSearchAssetWritable = {
33163
33755
  };
33164
33756
  };
33165
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
+ };
33166
33779
  };
33167
33780
  /**
33168
33781
  * A matching asset with its ranking score and supporting matches.
@@ -33408,7 +34021,7 @@ export type ApplyAgentVersionResponses = {
33408
34021
  */
33409
34022
  note: string | null;
33410
34023
  /**
33411
- * 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.
33412
34025
  */
33413
34026
  bindings: Array<{
33414
34027
  /**
@@ -33439,7 +34052,7 @@ export type ApplyAgentVersionResponses = {
33439
34052
  /**
33440
34053
  * Service type. Opens the whole service to codemode; there is no per-resource id.
33441
34054
  */
33442
- type: 'search' | 'browser';
34055
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
33443
34056
  /**
33444
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.
33445
34058
  */
@@ -34625,7 +35238,7 @@ export type UnarchiveAgentResponses = {
34625
35238
  */
34626
35239
  note: string | null;
34627
35240
  /**
34628
- * 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.
34629
35242
  */
34630
35243
  bindings: Array<{
34631
35244
  /**
@@ -34656,7 +35269,7 @@ export type UnarchiveAgentResponses = {
34656
35269
  /**
34657
35270
  * Service type. Opens the whole service to codemode; there is no per-resource id.
34658
35271
  */
34659
- type: 'search' | 'browser';
35272
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
34660
35273
  /**
34661
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.
34662
35275
  */
@@ -43763,6 +44376,42 @@ export type FileCancelUploadResponses = {
43763
44376
  200: OwnFilePraxisUpload;
43764
44377
  };
43765
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];
43766
44415
  export type FileCreateSignedUploadData = {
43767
44416
  body: OwnFileSignedUploadRequest;
43768
44417
  path?: never;
@@ -45339,31 +45988,29 @@ export type CreateSystemoneResponse = CreateSystemoneResponses[keyof CreateSyste
45339
45988
  export type CreateAudioTranscriptionData = {
45340
45989
  body: {
45341
45990
  /**
45342
- * 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.
45343
45992
  */
45344
45993
  model: string;
45345
45994
  /**
45346
- * 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.
45347
45996
  */
45348
45997
  file: Blob | File;
45349
45998
  /**
45350
- * 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.
45351
46000
  */
45352
46001
  language?: string;
45353
46002
  /**
45354
- * 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.
45355
46004
  */
45356
46005
  prompt?: string;
45357
46006
  /**
45358
- * 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.
45359
46008
  */
45360
- response_format?: 'json' | 'text' | 'verbose_json';
46009
+ response_format?: 'json' | 'text' | 'verbose_json' | 'diarized_json';
45361
46010
  /**
45362
- * 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.
45363
46012
  */
45364
- 'timestamp_granularities[]'?: [
45365
- 'segment'
45366
- ];
46013
+ 'timestamp_granularities[]'?: Array<'word' | 'segment'>;
45367
46014
  /**
45368
46015
  * Both whisper-large-v3-turbo and qwen3-asr-flash return 400.
45369
46016
  */
@@ -45375,11 +46022,11 @@ export type CreateAudioTranscriptionData = {
45375
46022
  };
45376
46023
  export type CreateAudioTranscriptionErrors = {
45377
46024
  /**
45378
- * Unsupported or unrepresentable parameter.
46025
+ * A field
45379
46026
  */
45380
46027
  400: unknown;
45381
46028
  /**
45382
- * No eligible model route.
46029
+ * No provider route supports this request; select an available model and its declared transcription features.
45383
46030
  */
45384
46031
  503: unknown;
45385
46032
  };
@@ -45389,58 +46036,79 @@ export type CreateAudioTranscriptionResponses = {
45389
46036
  */
45390
46037
  200: {
45391
46038
  /**
45392
- * The transcribed text.
46039
+ * Recognized speech text in the original language.
45393
46040
  */
45394
46041
  text: string;
45395
46042
  /**
45396
- * Task performed; always `transcribe`.
46043
+ * transcribe identifies speech-to-text transcription.
45397
46044
  */
45398
46045
  task?: 'transcribe';
45399
46046
  /**
45400
- * Language of the audio as detected or as requested.
46047
+ * Detected or requested source language code.
45401
46048
  */
45402
46049
  language?: string;
45403
46050
  /**
45404
- * Duration of the audio in seconds.
46051
+ * Audio duration in seconds when provided by the model.
45405
46052
  */
45406
46053
  duration?: number;
45407
46054
  /**
45408
- * 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.
45409
46056
  */
45410
46057
  segments?: Array<{
45411
46058
  /**
45412
- * Zero-based index of the segment.
46059
+ * Segment identifier within this transcription response.
45413
46060
  */
45414
46061
  id: number;
45415
46062
  /**
45416
- * Start time of the segment in seconds.
46063
+ * Inclusive start time in seconds from the beginning of the audio.
45417
46064
  */
45418
46065
  start: number;
45419
46066
  /**
45420
- * End time of the segment in seconds.
46067
+ * Exclusive end time in seconds from the beginning of the audio.
45421
46068
  */
45422
46069
  end: number;
45423
46070
  /**
45424
- * The transcribed text.
46071
+ * Recognized speech text in the original language.
45425
46072
  */
45426
46073
  text: string;
45427
46074
  /**
45428
- * 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.
45429
46080
  */
45430
46081
  temperature?: number;
45431
46082
  /**
45432
- * Average log probability of the tokens of the segment; low values mean low confidence.
46083
+ * Average segment token log probability when provided.
45433
46084
  */
45434
46085
  avg_logprob?: number;
45435
46086
  /**
45436
- * Gzip compression ratio of the segment text; high values indicate repetitive output.
46087
+ * Text compression ratio reported for this segment.
45437
46088
  */
45438
46089
  compression_ratio?: number;
45439
46090
  /**
45440
- * Probability that the segment contains no speech.
46091
+ * Probability of no speech reported for this segment.
45441
46092
  */
45442
46093
  no_speech_prob?: number;
45443
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
+ }>;
45444
46112
  };
45445
46113
  };
45446
46114
  export type CreateAudioTranscriptionResponse = CreateAudioTranscriptionResponses[keyof CreateAudioTranscriptionResponses];
@@ -51180,7 +51848,7 @@ export type AgentsListResponses = {
51180
51848
  */
51181
51849
  note: string | null;
51182
51850
  /**
51183
- * 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.
51184
51852
  */
51185
51853
  bindings: Array<{
51186
51854
  /**
@@ -51211,7 +51879,7 @@ export type AgentsListResponses = {
51211
51879
  /**
51212
51880
  * Service type. Opens the whole service to codemode; there is no per-resource id.
51213
51881
  */
51214
- type: 'search' | 'browser';
51882
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
51215
51883
  /**
51216
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.
51217
51885
  */
@@ -51719,7 +52387,7 @@ export type AgentsCreateData = {
51719
52387
  */
51720
52388
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
51721
52389
  /**
51722
- * 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.
51723
52391
  */
51724
52392
  bindings?: Array<{
51725
52393
  /**
@@ -51750,7 +52418,7 @@ export type AgentsCreateData = {
51750
52418
  /**
51751
52419
  * Service type. Opens the whole service to codemode; there is no per-resource id.
51752
52420
  */
51753
- type: 'search' | 'browser';
52421
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
51754
52422
  /**
51755
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.
51756
52424
  */
@@ -52320,7 +52988,7 @@ export type AgentsCreateResponses = {
52320
52988
  */
52321
52989
  note: string | null;
52322
52990
  /**
52323
- * 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.
52324
52992
  */
52325
52993
  bindings: Array<{
52326
52994
  /**
@@ -52351,7 +53019,7 @@ export type AgentsCreateResponses = {
52351
53019
  /**
52352
53020
  * Service type. Opens the whole service to codemode; there is no per-resource id.
52353
53021
  */
52354
- type: 'search' | 'browser';
53022
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
52355
53023
  /**
52356
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.
52357
53025
  */
@@ -52948,7 +53616,7 @@ export type AgentsRetrieveResponses = {
52948
53616
  */
52949
53617
  note: string | null;
52950
53618
  /**
52951
- * 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.
52952
53620
  */
52953
53621
  bindings: Array<{
52954
53622
  /**
@@ -52979,7 +53647,7 @@ export type AgentsRetrieveResponses = {
52979
53647
  /**
52980
53648
  * Service type. Opens the whole service to codemode; there is no per-resource id.
52981
53649
  */
52982
- type: 'search' | 'browser';
53650
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
52983
53651
  /**
52984
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.
52985
53653
  */
@@ -53527,7 +54195,7 @@ export type AgentsUpdateData = {
53527
54195
  /**
53528
54196
  * Service type. Opens the whole service to codemode; there is no per-resource id.
53529
54197
  */
53530
- type: 'search' | 'browser';
54198
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
53531
54199
  /**
53532
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.
53533
54201
  */
@@ -54110,7 +54778,7 @@ export type AgentsUpdateResponses = {
54110
54778
  */
54111
54779
  note: string | null;
54112
54780
  /**
54113
- * 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.
54114
54782
  */
54115
54783
  bindings: Array<{
54116
54784
  /**
@@ -54141,7 +54809,7 @@ export type AgentsUpdateResponses = {
54141
54809
  /**
54142
54810
  * Service type. Opens the whole service to codemode; there is no per-resource id.
54143
54811
  */
54144
- type: 'search' | 'browser';
54812
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
54145
54813
  /**
54146
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.
54147
54815
  */
@@ -54724,7 +55392,7 @@ export type AgentsArchiveResponses = {
54724
55392
  */
54725
55393
  note: string | null;
54726
55394
  /**
54727
- * 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.
54728
55396
  */
54729
55397
  bindings: Array<{
54730
55398
  /**
@@ -54755,7 +55423,7 @@ export type AgentsArchiveResponses = {
54755
55423
  /**
54756
55424
  * Service type. Opens the whole service to codemode; there is no per-resource id.
54757
55425
  */
54758
- type: 'search' | 'browser';
55426
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
54759
55427
  /**
54760
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.
54761
55429
  */
@@ -55356,7 +56024,7 @@ export type AgentsVersionsListResponses = {
55356
56024
  */
55357
56025
  note: string | null;
55358
56026
  /**
55359
- * 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.
55360
56028
  */
55361
56029
  bindings: Array<{
55362
56030
  /**
@@ -55387,7 +56055,7 @@ export type AgentsVersionsListResponses = {
55387
56055
  /**
55388
56056
  * Service type. Opens the whole service to codemode; there is no per-resource id.
55389
56057
  */
55390
- type: 'search' | 'browser';
56058
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
55391
56059
  /**
55392
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.
55393
56061
  */
@@ -69148,7 +69816,7 @@ export type CutExecuteData = {
69148
69816
  };
69149
69817
  export type CutExecuteErrors = {
69150
69818
  /**
69151
- * 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.
69152
69820
  */
69153
69821
  400: CutCutError;
69154
69822
  /**
@@ -71467,7 +72135,7 @@ export type KnowledgeListFilesResponses = {
71467
72135
  };
71468
72136
  export type KnowledgeListFilesResponse = KnowledgeListFilesResponses[keyof KnowledgeListFilesResponses];
71469
72137
  export type KnowledgeAttachFileData = {
71470
- body: KnowledgeAttachFile;
72138
+ body: KnowledgeNativeAttachFile;
71471
72139
  path: {
71472
72140
  /**
71473
72141
  * Resource ID.
@@ -71768,7 +72436,7 @@ export type KnowledgeRetrieveFileContentResponses = {
71768
72436
  };
71769
72437
  export type KnowledgeRetrieveFileContentResponse = KnowledgeRetrieveFileContentResponses[keyof KnowledgeRetrieveFileContentResponses];
71770
72438
  export type KnowledgeCreateFileBatchData = {
71771
- body: KnowledgeCreateBatch;
72439
+ body: KnowledgeNativeCreateBatch;
71772
72440
  path: {
71773
72441
  /**
71774
72442
  * Resource ID.
@@ -72456,6 +73124,10 @@ export type MediaListLibrariesErrors = {
72456
73124
  * Request failed; see the error code reference.
72457
73125
  */
72458
73126
  415: MediaMediaError;
73127
+ /**
73128
+ * Request failed; see the error code reference.
73129
+ */
73130
+ 422: MediaMediaError;
72459
73131
  /**
72460
73132
  * Request failed; see the error code reference.
72461
73133
  */
@@ -72547,6 +73219,10 @@ export type MediaCreateLibraryErrors = {
72547
73219
  * Request failed; see the error code reference.
72548
73220
  */
72549
73221
  415: MediaMediaError;
73222
+ /**
73223
+ * Request failed; see the error code reference.
73224
+ */
73225
+ 422: MediaMediaError;
72550
73226
  /**
72551
73227
  * Request failed; see the error code reference.
72552
73228
  */
@@ -72572,6 +73248,84 @@ export type MediaCreateLibraryResponses = {
72572
73248
  200: MediaLibrary;
72573
73249
  };
72574
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];
72575
73329
  export type MediaDeleteLibraryData = {
72576
73330
  body?: never;
72577
73331
  path: {
@@ -72608,6 +73362,10 @@ export type MediaDeleteLibraryErrors = {
72608
73362
  * Request failed; see the error code reference.
72609
73363
  */
72610
73364
  415: MediaMediaError;
73365
+ /**
73366
+ * Request failed; see the error code reference.
73367
+ */
73368
+ 422: MediaMediaError;
72611
73369
  /**
72612
73370
  * Request failed; see the error code reference.
72613
73371
  */
@@ -72669,6 +73427,10 @@ export type MediaGetLibraryErrors = {
72669
73427
  * Request failed; see the error code reference.
72670
73428
  */
72671
73429
  415: MediaMediaError;
73430
+ /**
73431
+ * Request failed; see the error code reference.
73432
+ */
73433
+ 422: MediaMediaError;
72672
73434
  /**
72673
73435
  * Request failed; see the error code reference.
72674
73436
  */
@@ -72769,6 +73531,10 @@ export type MediaUpdateLibraryErrors = {
72769
73531
  * Request failed; see the error code reference.
72770
73532
  */
72771
73533
  415: MediaMediaError;
73534
+ /**
73535
+ * Request failed; see the error code reference.
73536
+ */
73537
+ 422: MediaMediaError;
72772
73538
  /**
72773
73539
  * Request failed; see the error code reference.
72774
73540
  */
@@ -72830,6 +73596,10 @@ export type MediaRestoreLibraryErrors = {
72830
73596
  * Request failed; see the error code reference.
72831
73597
  */
72832
73598
  415: MediaMediaError;
73599
+ /**
73600
+ * Request failed; see the error code reference.
73601
+ */
73602
+ 422: MediaMediaError;
72833
73603
  /**
72834
73604
  * Request failed; see the error code reference.
72835
73605
  */
@@ -72891,6 +73661,10 @@ export type MediaPurgeLibraryErrors = {
72891
73661
  * Request failed; see the error code reference.
72892
73662
  */
72893
73663
  415: MediaMediaError;
73664
+ /**
73665
+ * Request failed; see the error code reference.
73666
+ */
73667
+ 422: MediaMediaError;
72894
73668
  /**
72895
73669
  * Request failed; see the error code reference.
72896
73670
  */
@@ -72969,6 +73743,10 @@ export type MediaListAssetsErrors = {
72969
73743
  * Request failed; see the error code reference.
72970
73744
  */
72971
73745
  415: MediaMediaError;
73746
+ /**
73747
+ * Request failed; see the error code reference.
73748
+ */
73749
+ 422: MediaMediaError;
72972
73750
  /**
72973
73751
  * Request failed; see the error code reference.
72974
73752
  */
@@ -73016,7 +73794,7 @@ export type MediaUploadAssetData = {
73016
73794
  */
73017
73795
  display_name?: string;
73018
73796
  /**
73019
- * 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.
73020
73798
  */
73021
73799
  asset_folder?: string;
73022
73800
  /**
@@ -73058,7 +73836,7 @@ export type MediaUploadAssetData = {
73058
73836
  */
73059
73837
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
73060
73838
  /**
73061
- * 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.
73062
73840
  */
73063
73841
  type?: MediaDeliveryType;
73064
73842
  };
@@ -73106,6 +73884,10 @@ export type MediaUploadAssetErrors = {
73106
73884
  * Request failed; see the error code reference.
73107
73885
  */
73108
73886
  415: MediaMediaError;
73887
+ /**
73888
+ * Request failed; see the error code reference.
73889
+ */
73890
+ 422: MediaMediaError;
73109
73891
  /**
73110
73892
  * Request failed; see the error code reference.
73111
73893
  */
@@ -73137,7 +73919,7 @@ export type MediaImportAssetData = {
73137
73919
  */
73138
73920
  body: {
73139
73921
  /**
73140
- * 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.
73141
73923
  */
73142
73924
  file_id: string;
73143
73925
  /**
@@ -73153,7 +73935,7 @@ export type MediaImportAssetData = {
73153
73935
  */
73154
73936
  display_name?: string;
73155
73937
  /**
73156
- * 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.
73157
73939
  */
73158
73940
  asset_folder?: string;
73159
73941
  /**
@@ -73195,7 +73977,7 @@ export type MediaImportAssetData = {
73195
73977
  */
73196
73978
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
73197
73979
  /**
73198
- * 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.
73199
73981
  */
73200
73982
  type?: MediaDeliveryType;
73201
73983
  };
@@ -73233,6 +74015,10 @@ export type MediaImportAssetErrors = {
73233
74015
  * Request failed; see the error code reference.
73234
74016
  */
73235
74017
  415: MediaMediaError;
74018
+ /**
74019
+ * Request failed; see the error code reference.
74020
+ */
74021
+ 422: MediaMediaError;
73236
74022
  /**
73237
74023
  * Request failed; see the error code reference.
73238
74024
  */
@@ -73298,6 +74084,10 @@ export type MediaDeleteAssetErrors = {
73298
74084
  * Request failed; see the error code reference.
73299
74085
  */
73300
74086
  415: MediaMediaError;
74087
+ /**
74088
+ * Request failed; see the error code reference.
74089
+ */
74090
+ 422: MediaMediaError;
73301
74091
  /**
73302
74092
  * Request failed; see the error code reference.
73303
74093
  */
@@ -73363,6 +74153,10 @@ export type MediaGetAssetErrors = {
73363
74153
  * Request failed; see the error code reference.
73364
74154
  */
73365
74155
  415: MediaMediaError;
74156
+ /**
74157
+ * Request failed; see the error code reference.
74158
+ */
74159
+ 422: MediaMediaError;
73366
74160
  /**
73367
74161
  * Request failed; see the error code reference.
73368
74162
  */
@@ -73398,7 +74192,7 @@ export type MediaUpdateAssetData = {
73398
74192
  */
73399
74193
  display_name?: string;
73400
74194
  /**
73401
- * 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.
73402
74196
  */
73403
74197
  asset_folder?: string;
73404
74198
  /**
@@ -73450,6 +74244,10 @@ export type MediaUpdateAssetErrors = {
73450
74244
  * Request failed; see the error code reference.
73451
74245
  */
73452
74246
  415: MediaMediaError;
74247
+ /**
74248
+ * Request failed; see the error code reference.
74249
+ */
74250
+ 422: MediaMediaError;
73453
74251
  /**
73454
74252
  * Request failed; see the error code reference.
73455
74253
  */
@@ -73481,7 +74279,7 @@ export type MediaReprocessAssetData = {
73481
74279
  */
73482
74280
  body: {
73483
74281
  /**
73484
- * 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.
73485
74283
  */
73486
74284
  kinds?: Array<MediaProcessingKind>;
73487
74285
  };
@@ -73523,6 +74321,10 @@ export type MediaReprocessAssetErrors = {
73523
74321
  * Request failed; see the error code reference.
73524
74322
  */
73525
74323
  415: MediaMediaError;
74324
+ /**
74325
+ * Request failed; see the error code reference.
74326
+ */
74327
+ 422: MediaMediaError;
73526
74328
  /**
73527
74329
  * Request failed; see the error code reference.
73528
74330
  */
@@ -73566,9 +74368,9 @@ export type MediaListUnderstandingsData = {
73566
74368
  */
73567
74369
  include_superseded?: boolean;
73568
74370
  /**
73569
- * 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, and embedding reports a failed embedding step.
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.
73570
74372
  */
73571
- kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'embedding';
74373
+ kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
73572
74374
  /**
73573
74375
  * Cursor from the previous next_cursor.
73574
74376
  */
@@ -73605,6 +74407,10 @@ export type MediaListUnderstandingsErrors = {
73605
74407
  * Request failed; see the error code reference.
73606
74408
  */
73607
74409
  415: MediaMediaError;
74410
+ /**
74411
+ * Request failed; see the error code reference.
74412
+ */
74413
+ 422: MediaMediaError;
73608
74414
  /**
73609
74415
  * Request failed; see the error code reference.
73610
74416
  */
@@ -73636,7 +74442,7 @@ export type MediaExpressionSearchData = {
73636
74442
  */
73637
74443
  body: {
73638
74444
  /**
73639
- * 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. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial.
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.
73640
74446
  */
73641
74447
  expression?: string;
73642
74448
  /**
@@ -73696,6 +74502,10 @@ export type MediaExpressionSearchErrors = {
73696
74502
  * Request failed; see the error code reference.
73697
74503
  */
73698
74504
  415: MediaMediaError;
74505
+ /**
74506
+ * Request failed; see the error code reference.
74507
+ */
74508
+ 422: MediaMediaError;
73699
74509
  /**
73700
74510
  * Request failed; see the error code reference.
73701
74511
  */
@@ -73783,6 +74593,10 @@ export type MediaVisualSearchErrors = {
73783
74593
  * Request failed; see the error code reference.
73784
74594
  */
73785
74595
  415: MediaMediaError;
74596
+ /**
74597
+ * Request failed; see the error code reference.
74598
+ */
74599
+ 422: MediaMediaError;
73786
74600
  /**
73787
74601
  * Request failed; see the error code reference.
73788
74602
  */
@@ -73864,6 +74678,10 @@ export type MediaSemanticSearchErrors = {
73864
74678
  * Request failed; see the error code reference.
73865
74679
  */
73866
74680
  415: MediaMediaError;
74681
+ /**
74682
+ * Request failed; see the error code reference.
74683
+ */
74684
+ 422: MediaMediaError;
73867
74685
  /**
73868
74686
  * Request failed; see the error code reference.
73869
74687
  */
@@ -73945,6 +74763,10 @@ export type MediaSearchErrors = {
73945
74763
  * Request failed; see the error code reference.
73946
74764
  */
73947
74765
  415: MediaMediaError;
74766
+ /**
74767
+ * Request failed; see the error code reference.
74768
+ */
74769
+ 422: MediaMediaError;
73948
74770
  /**
73949
74771
  * Request failed; see the error code reference.
73950
74772
  */
@@ -74011,6 +74833,10 @@ export type MediaListFoldersErrors = {
74011
74833
  * Request failed; see the error code reference.
74012
74834
  */
74013
74835
  415: MediaMediaError;
74836
+ /**
74837
+ * Request failed; see the error code reference.
74838
+ */
74839
+ 422: MediaMediaError;
74014
74840
  /**
74015
74841
  * Request failed; see the error code reference.
74016
74842
  */
@@ -74084,6 +74910,10 @@ export type MediaCreateBatchErrors = {
74084
74910
  * Request failed; see the error code reference.
74085
74911
  */
74086
74912
  415: MediaMediaError;
74913
+ /**
74914
+ * Request failed; see the error code reference.
74915
+ */
74916
+ 422: MediaMediaError;
74087
74917
  /**
74088
74918
  * Request failed; see the error code reference.
74089
74919
  */
@@ -74149,6 +74979,10 @@ export type MediaGetBatchErrors = {
74149
74979
  * Request failed; see the error code reference.
74150
74980
  */
74151
74981
  415: MediaMediaError;
74982
+ /**
74983
+ * Request failed; see the error code reference.
74984
+ */
74985
+ 422: MediaMediaError;
74152
74986
  /**
74153
74987
  * Request failed; see the error code reference.
74154
74988
  */
@@ -74222,6 +75056,10 @@ export type MediaBatchAssetsErrors = {
74222
75056
  * Request failed; see the error code reference.
74223
75057
  */
74224
75058
  415: MediaMediaError;
75059
+ /**
75060
+ * Request failed; see the error code reference.
75061
+ */
75062
+ 422: MediaMediaError;
74225
75063
  /**
74226
75064
  * Request failed; see the error code reference.
74227
75065
  */
@@ -74255,7 +75093,7 @@ export type MediaGetJobData = {
74255
75093
  */
74256
75094
  library_id: string;
74257
75095
  /**
74258
- * Batch identifier returned by createBatch or batchAssets; resolved within this library.
75096
+ * Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library.
74259
75097
  */
74260
75098
  job_id: string;
74261
75099
  };
@@ -74264,15 +75102,15 @@ export type MediaGetJobData = {
74264
75102
  };
74265
75103
  export type MediaGetJobErrors = {
74266
75104
  /**
74267
- * Request failed; see the error code reference.
75105
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
74268
75106
  */
74269
75107
  400: MediaMediaError;
74270
75108
  /**
74271
- * Request failed; see the error code reference.
75109
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
74272
75110
  */
74273
75111
  403: MediaMediaError;
74274
75112
  /**
74275
- * Request failed; see the error code reference.
75113
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
74276
75114
  */
74277
75115
  404: MediaMediaError;
74278
75116
  /**
@@ -74280,19 +75118,23 @@ export type MediaGetJobErrors = {
74280
75118
  */
74281
75119
  409: MediaMediaError;
74282
75120
  /**
74283
- * Request failed; see the error code reference.
75121
+ * The file exceeds an input limit; provide a smaller source file.
74284
75122
  */
74285
75123
  413: MediaMediaError;
74286
75124
  /**
74287
- * Request failed; see the error code reference.
75125
+ * This media format is unsupported; provide a supported format.
74288
75126
  */
74289
75127
  415: MediaMediaError;
74290
75128
  /**
74291
75129
  * Request failed; see the error code reference.
74292
75130
  */
75131
+ 422: MediaMediaError;
75132
+ /**
75133
+ * A rate limit was reached; wait before retrying.
75134
+ */
74293
75135
  429: MediaMediaError;
74294
75136
  /**
74295
- * Request failed; see the error code reference.
75137
+ * The requested operation is unsupported; choose a supported method.
74296
75138
  */
74297
75139
  501: MediaMediaError;
74298
75140
  /**
@@ -74300,7 +75142,7 @@ export type MediaGetJobErrors = {
74300
75142
  */
74301
75143
  502: MediaMediaError;
74302
75144
  /**
74303
- * Request failed; see the error code reference.
75145
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
74304
75146
  */
74305
75147
  503: MediaMediaError;
74306
75148
  };
@@ -74365,6 +75207,10 @@ export type MediaListEventsErrors = {
74365
75207
  * Request failed; see the error code reference.
74366
75208
  */
74367
75209
  415: MediaMediaError;
75210
+ /**
75211
+ * Request failed; see the error code reference.
75212
+ */
75213
+ 422: MediaMediaError;
74368
75214
  /**
74369
75215
  * Request failed; see the error code reference.
74370
75216
  */
@@ -74438,6 +75284,10 @@ export type MediaCreateDeliveryTokenErrors = {
74438
75284
  * Request failed; see the error code reference.
74439
75285
  */
74440
75286
  415: MediaMediaError;
75287
+ /**
75288
+ * Request failed; see the error code reference.
75289
+ */
75290
+ 422: MediaMediaError;
74441
75291
  /**
74442
75292
  * Request failed; see the error code reference.
74443
75293
  */
@@ -74499,6 +75349,10 @@ export type MediaUnderstandingFailureSummaryErrors = {
74499
75349
  * This media format is unsupported; provide a supported format.
74500
75350
  */
74501
75351
  415: MediaMediaError;
75352
+ /**
75353
+ * Request failed; see the error code reference.
75354
+ */
75355
+ 422: MediaMediaError;
74502
75356
  /**
74503
75357
  * A rate limit was reached; wait before retrying.
74504
75358
  */
@@ -74538,7 +75392,7 @@ export type MediaListUnderstandingsByLibraryData = {
74538
75392
  */
74539
75393
  folder?: string;
74540
75394
  /**
74541
- * Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, embedding. Omit or empty to include every kind.
75395
+ * Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.
74542
75396
  */
74543
75397
  kinds?: string;
74544
75398
  /**
@@ -74577,6 +75431,10 @@ export type MediaListUnderstandingsByLibraryErrors = {
74577
75431
  * This media format is unsupported; provide a supported format.
74578
75432
  */
74579
75433
  415: MediaMediaError;
75434
+ /**
75435
+ * Request failed; see the error code reference.
75436
+ */
75437
+ 422: MediaMediaError;
74580
75438
  /**
74581
75439
  * A rate limit was reached; wait before retrying.
74582
75440
  */
@@ -74602,6 +75460,425 @@ export type MediaListUnderstandingsByLibraryResponses = {
74602
75460
  200: MediaUnderstandingPage;
74603
75461
  };
74604
75462
  export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
75463
+ export type MediaCreateGenerationData = {
75464
+ /**
75465
+ * Text-to-video request. Generation is charged per second; unsaved candidates expire after 7 days.
75466
+ */
75467
+ body: {
75468
+ /**
75469
+ * Generation operation; v1 accepts only video.generate text-to-video requests.
75470
+ */
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;
75518
+ };
75519
+ path: {
75520
+ /**
75521
+ * Library ID returned by creation.
75522
+ */
75523
+ library_id: string;
75524
+ };
75525
+ query?: never;
75526
+ url: '/media/v1/libraries/{library_id}/generations';
75527
+ };
75528
+ export type MediaCreateGenerationErrors = {
75529
+ /**
75530
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75531
+ */
75532
+ 400: MediaMediaError;
75533
+ /**
75534
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75535
+ */
75536
+ 403: MediaMediaError;
75537
+ /**
75538
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75539
+ */
75540
+ 404: MediaMediaError;
75541
+ /**
75542
+ * Request failed; see the error code reference.
75543
+ */
75544
+ 409: MediaMediaError;
75545
+ /**
75546
+ * The file exceeds an input limit; provide a smaller source file.
75547
+ */
75548
+ 413: MediaMediaError;
75549
+ /**
75550
+ * This media format is unsupported; provide a supported format.
75551
+ */
75552
+ 415: MediaMediaError;
75553
+ /**
75554
+ * Request failed; see the error code reference.
75555
+ */
75556
+ 422: MediaMediaError;
75557
+ /**
75558
+ * This library already has five queued or running generation jobs; wait until one finishes and retry.
75559
+ */
75560
+ 429: MediaMediaError;
75561
+ /**
75562
+ * The requested operation is unsupported; choose a supported method.
75563
+ */
75564
+ 501: MediaMediaError;
75565
+ /**
75566
+ * Request failed; see the error code reference.
75567
+ */
75568
+ 502: MediaMediaError;
75569
+ /**
75570
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75571
+ */
75572
+ 503: MediaMediaError;
75573
+ };
75574
+ export type MediaCreateGenerationError = MediaCreateGenerationErrors[keyof MediaCreateGenerationErrors];
75575
+ export type MediaCreateGenerationResponses = {
75576
+ /**
75577
+ * Successful response.
75578
+ */
75579
+ 202: MediaJob;
75580
+ };
75581
+ export type MediaCreateGenerationResponse = MediaCreateGenerationResponses[keyof MediaCreateGenerationResponses];
75582
+ export type MediaListJobsData = {
75583
+ body?: never;
75584
+ path: {
75585
+ /**
75586
+ * Library ID returned by creation.
75587
+ */
75588
+ library_id: string;
75589
+ };
75590
+ query?: {
75591
+ /**
75592
+ * Filter jobs by their current status.
75593
+ */
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;
75603
+ };
75604
+ url: '/media/v1/libraries/{library_id}/jobs';
75605
+ };
75606
+ export type MediaListJobsErrors = {
75607
+ /**
75608
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75609
+ */
75610
+ 400: MediaMediaError;
75611
+ /**
75612
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75613
+ */
75614
+ 403: MediaMediaError;
75615
+ /**
75616
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75617
+ */
75618
+ 404: MediaMediaError;
75619
+ /**
75620
+ * Request failed; see the error code reference.
75621
+ */
75622
+ 409: MediaMediaError;
75623
+ /**
75624
+ * The file exceeds an input limit; provide a smaller source file.
75625
+ */
75626
+ 413: MediaMediaError;
75627
+ /**
75628
+ * This media format is unsupported; provide a supported format.
75629
+ */
75630
+ 415: MediaMediaError;
75631
+ /**
75632
+ * Request failed; see the error code reference.
75633
+ */
75634
+ 422: MediaMediaError;
75635
+ /**
75636
+ * A rate limit was reached; wait before retrying.
75637
+ */
75638
+ 429: MediaMediaError;
75639
+ /**
75640
+ * The requested operation is unsupported; choose a supported method.
75641
+ */
75642
+ 501: MediaMediaError;
75643
+ /**
75644
+ * Request failed; see the error code reference.
75645
+ */
75646
+ 502: MediaMediaError;
75647
+ /**
75648
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75649
+ */
75650
+ 503: MediaMediaError;
75651
+ };
75652
+ export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
75653
+ export type MediaListJobsResponses = {
75654
+ /**
75655
+ * Successful response.
75656
+ */
75657
+ 200: MediaJobPage;
75658
+ };
75659
+ export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
75660
+ export type MediaCancelJobData = {
75661
+ body?: never;
75662
+ path: {
75663
+ /**
75664
+ * Library ID returned by creation.
75665
+ */
75666
+ library_id: string;
75667
+ /**
75668
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
75669
+ */
75670
+ job_id: string;
75671
+ };
75672
+ query?: never;
75673
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
75674
+ };
75675
+ export type MediaCancelJobErrors = {
75676
+ /**
75677
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75678
+ */
75679
+ 400: MediaMediaError;
75680
+ /**
75681
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75682
+ */
75683
+ 403: MediaMediaError;
75684
+ /**
75685
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75686
+ */
75687
+ 404: MediaMediaError;
75688
+ /**
75689
+ * Request failed; see the error code reference.
75690
+ */
75691
+ 409: MediaMediaError;
75692
+ /**
75693
+ * The file exceeds an input limit; provide a smaller source file.
75694
+ */
75695
+ 413: MediaMediaError;
75696
+ /**
75697
+ * This media format is unsupported; provide a supported format.
75698
+ */
75699
+ 415: MediaMediaError;
75700
+ /**
75701
+ * Request failed; see the error code reference.
75702
+ */
75703
+ 422: MediaMediaError;
75704
+ /**
75705
+ * A rate limit was reached; wait before retrying.
75706
+ */
75707
+ 429: MediaMediaError;
75708
+ /**
75709
+ * The requested operation is unsupported; choose a supported method.
75710
+ */
75711
+ 501: MediaMediaError;
75712
+ /**
75713
+ * Request failed; see the error code reference.
75714
+ */
75715
+ 502: MediaMediaError;
75716
+ /**
75717
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75718
+ */
75719
+ 503: MediaMediaError;
75720
+ };
75721
+ export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
75722
+ export type MediaCancelJobResponses = {
75723
+ /**
75724
+ * Successful response.
75725
+ */
75726
+ 200: MediaJob;
75727
+ };
75728
+ export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
75729
+ export type MediaSaveGenerationOutputData = {
75730
+ /**
75731
+ * Optional asset metadata and understanding behavior for a successful candidate.
75732
+ */
75733
+ body?: {
75734
+ /**
75735
+ * Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent.
75736
+ */
75737
+ public_id?: string;
75738
+ /**
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.
75740
+ */
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';
75750
+ };
75751
+ path: {
75752
+ /**
75753
+ * Library ID returned by creation.
75754
+ */
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;
75764
+ };
75765
+ query?: never;
75766
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save';
75767
+ };
75768
+ export type MediaSaveGenerationOutputErrors = {
75769
+ /**
75770
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75771
+ */
75772
+ 400: MediaMediaError;
75773
+ /**
75774
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75775
+ */
75776
+ 403: MediaMediaError;
75777
+ /**
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.
75779
+ */
75780
+ 404: MediaMediaError;
75781
+ /**
75782
+ * Request failed; see the error code reference.
75783
+ */
75784
+ 409: MediaMediaError;
75785
+ /**
75786
+ * The file exceeds an input limit; provide a smaller source file.
75787
+ */
75788
+ 413: MediaMediaError;
75789
+ /**
75790
+ * This media format is unsupported; provide a supported format.
75791
+ */
75792
+ 415: MediaMediaError;
75793
+ /**
75794
+ * Request failed; see the error code reference.
75795
+ */
75796
+ 422: MediaMediaError;
75797
+ /**
75798
+ * A rate limit was reached; wait before retrying.
75799
+ */
75800
+ 429: MediaMediaError;
75801
+ /**
75802
+ * The requested operation is unsupported; choose a supported method.
75803
+ */
75804
+ 501: MediaMediaError;
75805
+ /**
75806
+ * Request failed; see the error code reference.
75807
+ */
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;
75865
+ /**
75866
+ * Request failed; see the error code reference.
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
+ */
75872
+ 503: MediaMediaError;
75873
+ };
75874
+ export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
75875
+ export type MediaGetGenerationCapabilitiesResponses = {
75876
+ /**
75877
+ * Successful response.
75878
+ */
75879
+ 200: MediaGenerationCapabilities;
75880
+ };
75881
+ export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
74605
75882
  export type GetSandboxV1SandboxesData = {
74606
75883
  body?: never;
74607
75884
  path?: never;
@@ -74994,6 +76271,10 @@ export type ListSandboxTemplatesResponses = {
74994
76271
  buildCount: number;
74995
76272
  envdVersion: SandboxEnvdVersion;
74996
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'>;
74997
76278
  /**
74998
76279
  * True for an official catalog template; false for your organization's custom templates.
74999
76280
  */
@@ -77197,7 +78478,7 @@ export type TicketGetTicketsData = {
77197
78478
  */
77198
78479
  page_token?: string;
77199
78480
  /**
77200
- * Filter expression.
78481
+ * Filter expression using field:value qualifiers, such as is:open milestone:5.
77201
78482
  */
77202
78483
  filter?: string;
77203
78484
  };
@@ -79616,7 +80897,7 @@ export type TicketGetActivityData = {
79616
80897
  */
79617
80898
  page_token?: string;
79618
80899
  /**
79619
- * Filter expression.
80900
+ * Activity filter expression.
79620
80901
  */
79621
80902
  filter?: string;
79622
80903
  };