@deepraxis/sdk 0.1.1-dev.5c83a98 → 0.1.1-dev.5ce75d1

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.
@@ -12789,13 +12822,17 @@ export type CutAnalysisResult = {
12789
12822
  */
12790
12823
  version: number;
12791
12824
  /**
12792
- * silence identifies quiet spans; filler identifies filler-word spans; scenes identifies scene ranges.
12825
+ * silence identifies transcript-based speech pauses, not music or loudness; filler identifies filler-word spans; scenes identifies scene ranges.
12793
12826
  */
12794
12827
  kind: 'silence' | 'filler' | 'scenes';
12795
12828
  /**
12796
- * pending means analysis is still running; ready means segments are available; unsupported means this asset or analysis kind is inapplicable; failed means analysis did not complete.
12829
+ * pending means analysis is still running; ready means analysis completed, including an empty no_speech result; unsupported means no usable transcript or this analysis kind is inapplicable; failed means analysis did not complete.
12797
12830
  */
12798
12831
  status: 'pending' | 'ready' | 'unsupported' | 'failed';
12832
+ /**
12833
+ * no_speech means a completed current-version transcript contains no words (ready with empty segments); no_transcript means no completed current-version transcript is available (unsupported). Failed transcriptions remain failed.
12834
+ */
12835
+ reason?: 'no_speech' | 'no_transcript';
12799
12836
  /**
12800
12837
  * Detected source ranges in seconds, available when status is ready.
12801
12838
  */
@@ -12988,6 +13025,14 @@ export type CutExport = {
12988
13025
  * Destination media library identifier.
12989
13026
  */
12990
13027
  library_id: string;
13028
+ /**
13029
+ * Frozen destination path within the library, when supplied.
13030
+ */
13031
+ folder?: string;
13032
+ /**
13033
+ * Frozen sanitized display name, when supplied.
13034
+ */
13035
+ name?: string;
12991
13036
  };
12992
13037
  /**
12993
13038
  * Rendering progress; partial progress is not successful completion.
@@ -13006,6 +13051,27 @@ export type CutExport = {
13006
13051
  */
13007
13052
  audio: 'pending' | 'done';
13008
13053
  };
13054
+ /**
13055
+ * Present when normalization was requested; contains requested targets and measured output levels.
13056
+ */
13057
+ loudness?: {
13058
+ /**
13059
+ * Requested integrated loudness target in LUFS.
13060
+ */
13061
+ target_lufs: number;
13062
+ /**
13063
+ * Requested maximum true peak in dBTP.
13064
+ */
13065
+ true_peak_dbtp: number;
13066
+ /**
13067
+ * Measured integrated loudness of the rendered export in LUFS.
13068
+ */
13069
+ integrated_lufs: number;
13070
+ /**
13071
+ * Measured maximum true peak of the rendered export in dBTP.
13072
+ */
13073
+ measured_true_peak_dbtp: number;
13074
+ };
13009
13075
  /**
13010
13076
  * Output media reference, available after the export reaches done.
13011
13077
  */
@@ -13027,9 +13093,22 @@ export type CutExport = {
13027
13093
  */
13028
13094
  chunk?: number;
13029
13095
  /**
13030
- * Optional lower-level explanation of the render failure.
13096
+ * Safe structured downstream failure information; older jobs may contain a string.
13031
13097
  */
13032
- cause?: string;
13098
+ cause?: string | {
13099
+ /**
13100
+ * Export stage that failed.
13101
+ */
13102
+ stage: string;
13103
+ /**
13104
+ * Downstream service error code, when available.
13105
+ */
13106
+ code?: string;
13107
+ };
13108
+ /**
13109
+ * Downstream request identifier, when supplied by the service error.
13110
+ */
13111
+ request_id?: string;
13033
13112
  };
13034
13113
  /**
13035
13114
  * ISO 8601 timestamp when this export was accepted.
@@ -13048,6 +13127,14 @@ export type CutExport = {
13048
13127
  * Start an export from a project revision into a bound library.
13049
13128
  */
13050
13129
  export type CutExportInput = {
13130
+ /**
13131
+ * Optional destination path within the bound media library; omitted uses its default folder.
13132
+ */
13133
+ folder?: string;
13134
+ /**
13135
+ * Nonempty display name, frozen with the export. Path separators and control characters become hyphens; limited to 200 characters. Omitted uses project name and timestamp.
13136
+ */
13137
+ name?: string;
13051
13138
  /**
13052
13139
  * Optional render settings; omitted fields use the project export defaults.
13053
13140
  */
@@ -13057,6 +13144,19 @@ export type CutExportInput = {
13057
13144
  */
13058
13145
  binding?: string;
13059
13146
  revision?: CutRevision;
13147
+ /**
13148
+ * Optional loudness normalization target; normalization adds analysis and rendering work.
13149
+ */
13150
+ loudness?: {
13151
+ /**
13152
+ * Integrated loudness target in LUFS.
13153
+ */
13154
+ target_lufs: number;
13155
+ /**
13156
+ * Maximum true peak in dBTP.
13157
+ */
13158
+ true_peak_dbtp: number;
13159
+ };
13060
13160
  };
13061
13161
  /**
13062
13162
  * One page of organization-accessible exports.
@@ -13583,7 +13683,7 @@ export type KnowledgeNativeCreateVectorStore = {
13583
13683
  * Existing File IDs to attach; the store allows up to 10,000 files.
13584
13684
  */
13585
13685
  file_ids?: Array<string>;
13586
- chunking_strategy?: KnowledgeChunkingInput;
13686
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13587
13687
  /**
13588
13688
  * Accepted but not saved or returned; its type is not validated.
13589
13689
  */
@@ -13747,7 +13847,7 @@ export type KnowledgeNativeVectorStoreFile = {
13747
13847
  * Unix timestamp in seconds.
13748
13848
  */
13749
13849
  created_at: number;
13750
- chunking_strategy: KnowledgeChunking;
13850
+ chunking_strategy: KnowledgeNativeChunking;
13751
13851
  /**
13752
13852
  * File attributes used for search filtering; null means no attributes are set.
13753
13853
  */
@@ -13757,7 +13857,7 @@ export type KnowledgeNativeVectorStoreFile = {
13757
13857
  */
13758
13858
  praxis?: {
13759
13859
  /**
13760
- * Specific ingestion failure: file_too_large exceeds 50 MiB; encrypted requires an unencrypted source; empty has no extractable text; unsupported_type needs a supported format; token_limit exceeds 5000000 estimated tokens; recognition_unavailable exhausted OCR retries; deadline_exceeded reached the ingestion or conversion deadline; internal is an unexpected provider or processing error. last_error retains the compatible code and an actionable message.
13860
+ * Specific ingestion failure: file_too_large exceeds 512 MiB for PDFs or 50 MiB for other formats (the Router conversion limit); encrypted requires an unencrypted source; empty has no extractable text; unsupported_type needs a supported format; token_limit exceeds 5000000 estimated tokens; recognition_unavailable exhausted OCR retries; deadline_exceeded reached the ingestion or conversion deadline; internal is an unexpected provider or processing error. last_error retains the compatible code and an actionable message.
13761
13861
  */
13762
13862
  failure_reason?: 'file_too_large' | 'encrypted' | 'empty' | 'unsupported_type' | 'token_limit' | 'recognition_unavailable' | 'deadline_exceeded' | 'internal';
13763
13863
  /**
@@ -13794,7 +13894,7 @@ export type KnowledgeNativeVectorStoreFile = {
13794
13894
  chunk_count: number;
13795
13895
  };
13796
13896
  };
13797
- export type KnowledgeAttachFile = {
13897
+ export type KnowledgeNativeAttachFile = {
13798
13898
  /**
13799
13899
  * Existing source File ID returned by file upload; the file must be visible to the caller.
13800
13900
  */
@@ -13803,7 +13903,7 @@ export type KnowledgeAttachFile = {
13803
13903
  * Search-filter attributes for a newly attached file; omission or null leaves attributes unset. Reattaching an existing file does not change them.
13804
13904
  */
13805
13905
  attributes?: KnowledgeAttributes | null;
13806
- chunking_strategy?: KnowledgeChunkingInput;
13906
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13807
13907
  };
13808
13908
  export type KnowledgeNativeVectorStoreFileList = {
13809
13909
  /**
@@ -13900,7 +14000,7 @@ export type KnowledgeFileBatch = {
13900
14000
  /**
13901
14001
  * Provide exactly one of file_ids or files. Already attached files are reused without changing their attributes or chunking.
13902
14002
  */
13903
- export type KnowledgeCreateBatch = {
14003
+ export type KnowledgeNativeCreateBatch = {
13904
14004
  /**
13905
14005
  * Existing File IDs to attach with shared attributes and chunking settings. Supply file_ids or files, never both.
13906
14006
  */
@@ -13909,7 +14009,7 @@ export type KnowledgeCreateBatch = {
13909
14009
  * Search-filter attributes applied to each newly attached file; omission or null leaves them unset.
13910
14010
  */
13911
14011
  attributes?: KnowledgeAttributes | null;
13912
- chunking_strategy?: KnowledgeChunkingInput;
14012
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13913
14013
  } | {
13914
14014
  /**
13915
14015
  * Files to attach with individual attributes and chunking settings; top-level attributes and chunking_strategy are ignored.
@@ -13920,7 +14020,7 @@ export type KnowledgeCreateBatch = {
13920
14020
  */
13921
14021
  file_id: string;
13922
14022
  attributes?: KnowledgeAttributes;
13923
- chunking_strategy?: KnowledgeChunkingInput;
14023
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13924
14024
  }>;
13925
14025
  /**
13926
14026
  * Ignored when files is supplied.
@@ -14039,6 +14139,10 @@ export type KnowledgeEventList = {
14039
14139
  * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
14040
14140
  */
14041
14141
  export type MediaLibrary = {
14142
+ /**
14143
+ * Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results.
14144
+ */
14145
+ readonly hotwords?: Array<string>;
14042
14146
  /**
14043
14147
  * Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
14044
14148
  */
@@ -14105,7 +14209,7 @@ export type MediaLibrary = {
14105
14209
  };
14106
14210
  export type MediaMediaError = {
14107
14211
  error: {
14108
- code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'BINDING_READ_ONLY';
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';
14109
14213
  message: string;
14110
14214
  details: string | null;
14111
14215
  };
@@ -14123,9 +14227,21 @@ export type MediaMediaModelsInput = {
14123
14227
  */
14124
14228
  embedding?: string | null;
14125
14229
  /**
14126
- * 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.
14127
14231
  */
14128
14232
  transcription?: string | null;
14233
+ /**
14234
+ * Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions. Null restores this role’s default.
14235
+ */
14236
+ correction?: string | null;
14237
+ /**
14238
+ * Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction. Null restores this role’s default.
14239
+ */
14240
+ reference_transcription?: string | null;
14241
+ /**
14242
+ * Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges. Null restores this role’s default.
14243
+ */
14244
+ audio?: string | null;
14129
14245
  } | null;
14130
14246
  /**
14131
14247
  * Libraries in this page, ordered by creation time descending.
@@ -14140,6 +14256,25 @@ export type MediaLibraryPage = MediaPage & {
14140
14256
  */
14141
14257
  next_cursor: string | null;
14142
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
+ };
14143
14278
  /**
14144
14279
  * Receipt confirming permanent removal of a previously deleted library.
14145
14280
  */
@@ -14299,7 +14434,7 @@ export type MediaAsset = {
14299
14434
  */
14300
14435
  url: string;
14301
14436
  /**
14302
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
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.
14303
14438
  */
14304
14439
  secure_url: string;
14305
14440
  /**
@@ -14326,6 +14461,10 @@ export type MediaAsset = {
14326
14461
  * Resource status; active identifies an asset that has not been deleted.
14327
14462
  */
14328
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;
14329
14468
  /**
14330
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.
14331
14470
  */
@@ -14382,6 +14521,27 @@ export type MediaAsset = {
14382
14521
  };
14383
14522
  };
14384
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
+ };
14385
14545
  };
14386
14546
  /**
14387
14547
  * Receipt confirming that the asset was deleted.
@@ -14408,6 +14568,10 @@ export type MediaUnderstandingPage = MediaPage & {
14408
14568
  * Opaque token to pass as cursor to listUnderstandings; null means no further page.
14409
14569
  */
14410
14570
  next_cursor: string | null;
14571
+ /**
14572
+ * Current-version video shots, repeated on every understanding page. Absent on legacy records, images and audio. New video processing with image-capable embedding samples at 1 fps, at most 600 frames, and produces at most 60 shots. Long clips increase the interval and merge adjacent short shots; sub-second cuts may be missed. Each shot uses one to three keyframes in one vision call. Text-only legacy embedding profiles retain frame-based processing.
14573
+ */
14574
+ readonly shots?: Array<MediaUnderstoodShot>;
14411
14575
  };
14412
14576
  /**
14413
14577
  * Expression-search page with match counts, elapsed time and optional facet counts.
@@ -14491,7 +14655,19 @@ export type MediaFolders = {
14491
14655
  * Number of assets in this folder and all descendant folders.
14492
14656
  */
14493
14657
  asset_count: number;
14658
+ /**
14659
+ * Active ready and partial assets in this folder and every descendant folder.
14660
+ */
14661
+ understood_count: number;
14662
+ /**
14663
+ * Active failed assets in this folder and every descendant folder.
14664
+ */
14665
+ failed_count: number;
14494
14666
  }>;
14667
+ /**
14668
+ * False while historical folder and failure counts are being populated; refresh after backfill completes.
14669
+ */
14670
+ counts_complete: boolean;
14495
14671
  };
14496
14672
  /**
14497
14673
  * Asynchronous batch job with successful and failed item counts.
@@ -14506,19 +14682,19 @@ export type MediaJob = {
14506
14682
  */
14507
14683
  library_id: MediaLibraryId;
14508
14684
  /**
14509
- * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
14685
+ * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets. reprocess starts fenced understanding Workflows for retryable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported and permanent steps remain unchanged.
14510
14686
  */
14511
- action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete';
14687
+ action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'generate';
14512
14688
  /**
14513
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.
14514
14690
  */
14515
- status: 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed';
14691
+ status: MediaJobStatus;
14516
14692
  /**
14517
14693
  * Number of distinct assets selected when the job was created.
14518
14694
  */
14519
14695
  total: number;
14520
14696
  /**
14521
- * Number of items successfully processed; failed items are counted separately.
14697
+ * Number of items successfully processed; failed items are counted separately. For reprocess, this counts accepted launches; inspect asset progress for model completion.
14522
14698
  */
14523
14699
  done: number;
14524
14700
  /**
@@ -14532,12 +14708,66 @@ export type MediaJob = {
14532
14708
  /**
14533
14709
  * Identifier supplied for the failed item; it may identify a missing asset.
14534
14710
  */
14535
- asset_id: MediaAssetId;
14711
+ asset_id?: MediaAssetId;
14712
+ /**
14713
+ * Zero-based output index for a failed video-generation item.
14714
+ */
14715
+ index?: number;
14536
14716
  /**
14537
14717
  * Domain error code explaining the individual item failure.
14538
14718
  */
14539
14719
  code: MediaMediaErrorCode;
14540
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
+ };
14541
14771
  /**
14542
14772
  * Time the batch job was created, in UTC.
14543
14773
  */
@@ -14584,6 +14814,15 @@ export type MediaBatchAction = {
14584
14814
  * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
14585
14815
  */
14586
14816
  action: 'delete';
14817
+ } | {
14818
+ /**
14819
+ * reprocess retries recoverable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported, permanent and completed steps remain unchanged.
14820
+ */
14821
+ action: 'reprocess';
14822
+ /**
14823
+ * Optional subset of processing kinds to inspect. Only retryable failed steps and legacy source-size unsupported steps run. Other unsupported, permanent and completed steps remain unchanged. Omit to inspect all recoverable steps.
14824
+ */
14825
+ kinds?: Array<MediaProcessingKind>;
14587
14826
  };
14588
14827
  /**
14589
14828
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
@@ -14629,6 +14868,538 @@ export type MediaDeliveryToken = {
14629
14868
  */
14630
14869
  expires_at: string;
14631
14870
  };
14871
+ export type MediaFailureSummary = {
14872
+ /**
14873
+ * Number of current failed understanding entries, excluding deleted assets and superseded versions.
14874
+ */
14875
+ total: number;
14876
+ /**
14877
+ * Failure entries grouped by code, output kind and producer model. Each group includes up to five distinct example asset IDs.
14878
+ */
14879
+ groups: Array<MediaFailureGroup>;
14880
+ /**
14881
+ * False while historical failure and folder statistics are being populated. Counts include current writes immediately.
14882
+ */
14883
+ counts_complete: boolean;
14884
+ };
14885
+ /**
14886
+ * Current state of a batch or video-generation job.
14887
+ */
14888
+ export type MediaJobStatus = 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed' | 'cancelled';
14889
+ /**
14890
+ * Identifier returned when a batch job is created.
14891
+ */
14892
+ export type MediaJobId = string;
14893
+ /**
14894
+ * A page of jobs in a library.
14895
+ */
14896
+ export type MediaJobPage = {
14897
+ /**
14898
+ * Jobs returned in this page.
14899
+ */
14900
+ data: Array<MediaJob>;
14901
+ /**
14902
+ * Cursor for the next page, or null when there are no more jobs.
14903
+ */
14904
+ next_cursor: MediaJobId | null;
14905
+ };
14906
+ /**
14907
+ * Current text-to-video options, concurrency and candidate retention. Generation is charged per second; unsaved candidates expire after 7 days.
14908
+ */
14909
+ export type MediaGenerationCapabilities = {
14910
+ /**
14911
+ * Text-to-video intents currently supported by Media.
14912
+ */
14913
+ intents: Array<string>;
14914
+ /**
14915
+ * Model selected when model is omitted from a generation request.
14916
+ */
14917
+ default_model: string;
14918
+ /**
14919
+ * Allowed number of videos per generation job.
14920
+ */
14921
+ count: {
14922
+ /**
14923
+ * Minimum number of videos in one generation job.
14924
+ */
14925
+ minimum: number;
14926
+ /**
14927
+ * Maximum number of videos in one generation job.
14928
+ */
14929
+ maximum: number;
14930
+ };
14931
+ /**
14932
+ * Durations in seconds supported by the default video model.
14933
+ */
14934
+ duration_seconds: Array<number>;
14935
+ /**
14936
+ * Aspect ratios supported by the default video model.
14937
+ */
14938
+ aspect_ratios: Array<string>;
14939
+ /**
14940
+ * Aspect ratio used when aspect_ratio is omitted.
14941
+ */
14942
+ default_aspect_ratio: string;
14943
+ /**
14944
+ * Maximum number of queued or running generation jobs per library.
14945
+ */
14946
+ concurrency_per_library: number;
14947
+ /**
14948
+ * Unit used to charge video generation; generated duration is billed per second by Router.
14949
+ */
14950
+ price_unit: 'per second';
14951
+ /**
14952
+ * Days an unsaved candidate is retained before its File is deleted.
14953
+ */
14954
+ candidate_retention_days: number;
14955
+ };
14956
+ /**
14957
+ * One page of type registrations; types are few enough that this face returns them in a single page.
14958
+ */
14959
+ export type OntologyTypeRegistrationPage = {
14960
+ /**
14961
+ * The registrations in force for this organization.
14962
+ */
14963
+ data: Array<OntologyTypeRegistration>;
14964
+ /**
14965
+ * Always null here; the field is present so every list on this face has the same shape.
14966
+ */
14967
+ next_cursor: string;
14968
+ };
14969
+ /**
14970
+ * One service's registered types for this organization, as shipped by that service and stored by the deploy gate.
14971
+ */
14972
+ export type OntologyTypeRegistration = {
14973
+ /**
14974
+ * Service that registered these types, for example file or ticket; it is the registrant a later change to a type is checked against.
14975
+ */
14976
+ owner: string;
14977
+ /**
14978
+ * Monotonic version of this owner's registration; a later registration must extend this one without removing or narrowing anything.
14979
+ */
14980
+ version: number;
14981
+ /**
14982
+ * Node types this owner registers.
14983
+ */
14984
+ nodes: Array<OntologyNodeType>;
14985
+ /**
14986
+ * Relation types this owner registers.
14987
+ */
14988
+ edges: Array<OntologyEdgeType>;
14989
+ };
14990
+ export type OntologyOntologyError = {
14991
+ /**
14992
+ * Failure details for a non-2xx response; choose a recovery action using the operation's status and code description.
14993
+ */
14994
+ error: {
14995
+ /**
14996
+ * Machine-readable failure category; see this operation's error responses for triggering conditions and recovery actions.
14997
+ */
14998
+ code: string;
14999
+ /**
15000
+ * Human-readable explanation of why the request failed; it names the offending field or condition and the action to take.
15001
+ */
15002
+ message: string;
15003
+ /**
15004
+ * Optional error-specific context, present when the failure names particular items; absent for failures that concern the request as a whole.
15005
+ */
15006
+ details?: {
15007
+ [key: string]: unknown;
15008
+ };
15009
+ };
15010
+ };
15011
+ /**
15012
+ * One registered type, with the registration it belongs to and whether it is a node or a relation type.
15013
+ */
15014
+ export type OntologyTypeLookup = {
15015
+ /**
15016
+ * Service that registered this type; a change to the type is checked against that registrant.
15017
+ */
15018
+ owner: string;
15019
+ /**
15020
+ * Version of the registration this type came from, so a caller can tell when a definition moved on.
15021
+ */
15022
+ version: number;
15023
+ /**
15024
+ * Whether the type describes an entity or a fact, which decides whether it is used when creating a node or a relation.
15025
+ */
15026
+ kind: 'node' | 'edge';
15027
+ /**
15028
+ * The full registered definition — the same object as the entry in its registration's nodes or edges array.
15029
+ */
15030
+ definition: {
15031
+ [key: string]: unknown;
15032
+ };
15033
+ };
15034
+ /**
15035
+ * One page of nodes; a restricted entry carries only id, type, name and restricted.
15036
+ */
15037
+ export type OntologyNodePage = {
15038
+ /**
15039
+ * The nodes on this page, ordered by node id.
15040
+ */
15041
+ data: Array<OntologyNode | OntologyRestrictedNode>;
15042
+ /**
15043
+ * Opaque cursor for the next page, or null when this is the last page; copy it into the next request's cursor unchanged.
15044
+ */
15045
+ next_cursor: string;
15046
+ };
15047
+ /**
15048
+ * The entity to record; type must be registered and ref must match that type's prefix.
15049
+ */
15050
+ export type OntologyCreateNodeInput = {
15051
+ /**
15052
+ * Registered node type name from types.list; an unregistered name is refused and nothing is written.
15053
+ */
15054
+ type: string;
15055
+ /**
15056
+ * Id of the mirrored record in the owning service, which must start with the type's ref_prefix; omit or null for a concept with no external record.
15057
+ */
15058
+ ref?: string;
15059
+ /**
15060
+ * Display name of the entity, at most 200 characters.
15061
+ */
15062
+ name: string;
15063
+ /**
15064
+ * Other names this entity is known by; they are matched by search alongside the name.
15065
+ */
15066
+ aliases?: Array<string>;
15067
+ /**
15068
+ * Profile of the entity, at most 500 characters; omit or null for none.
15069
+ */
15070
+ description?: string;
15071
+ /**
15072
+ * Member id whose content this is, restricting it to that member; omit or null to make it readable organization-wide.
15073
+ */
15074
+ owner?: string;
15075
+ };
15076
+ /**
15077
+ * One entity in the graph, with when it was recorded and last changed.
15078
+ */
15079
+ export type OntologyNode = {
15080
+ /**
15081
+ * Node id, used by relations, merges and later reads; treat it as opaque and do not parse it.
15082
+ */
15083
+ id: string;
15084
+ /**
15085
+ * Registered node type this entity was recorded as; it never changes after creation.
15086
+ */
15087
+ type: string;
15088
+ /**
15089
+ * Id of the mirrored record in the service that owns it, matching the type's ref_prefix; null for a concept with no external record.
15090
+ */
15091
+ ref?: string;
15092
+ /**
15093
+ * Display name of the entity, at most 200 characters.
15094
+ */
15095
+ name: string;
15096
+ /**
15097
+ * Other names this entity is known by; they are matched by search alongside the name.
15098
+ */
15099
+ aliases: Array<string>;
15100
+ /**
15101
+ * Profile of the entity, at most 500 characters; null when none was recorded.
15102
+ */
15103
+ description?: string;
15104
+ /**
15105
+ * Member id whose content this is; null means it is readable organization-wide. Another member's node comes back restricted.
15106
+ */
15107
+ owner: string;
15108
+ /**
15109
+ * When this node was merged into another, that survivor's id; reads of a merged node resolve to the survivor.
15110
+ */
15111
+ merged_into?: string;
15112
+ /**
15113
+ * System time when the node was first recorded, in ISO 8601 UTC.
15114
+ */
15115
+ created_at: string;
15116
+ /**
15117
+ * System time of the last change to this node's content, in ISO 8601 UTC.
15118
+ */
15119
+ updated_at: string;
15120
+ /**
15121
+ * System time the mirrored record was deleted, when that is known; kept so history stays answerable.
15122
+ */
15123
+ deleted_at?: string;
15124
+ };
15125
+ export type OntologyNodeWithRelations = OntologyNode & {
15126
+ /**
15127
+ * Relations on and around this node that the caller may read, ordered by relation id; present only when expand=relations was sent.
15128
+ */
15129
+ relations?: Array<OntologyRelation>;
15130
+ };
15131
+ /**
15132
+ * The fields to change; omitted fields keep their current values.
15133
+ */
15134
+ export type OntologyUpdateNodeInput = {
15135
+ /**
15136
+ * New display name, at most 200 characters; omit to keep the current name.
15137
+ */
15138
+ name?: string;
15139
+ /**
15140
+ * Replacement alias list; an empty array clears the aliases and omitting the field keeps them.
15141
+ */
15142
+ aliases?: Array<string>;
15143
+ /**
15144
+ * Replacement profile, at most 500 characters; an explicit null clears it and omitting the field keeps it.
15145
+ */
15146
+ description?: string;
15147
+ };
15148
+ /**
15149
+ * The survivor the merged node folds into.
15150
+ */
15151
+ export type OntologyMergeNodeInput = {
15152
+ /**
15153
+ * Node id that should survive, from nodes.list or search; the merged node's relations and aliases move to it.
15154
+ */
15155
+ into: string;
15156
+ };
15157
+ /**
15158
+ * One page of relations.
15159
+ */
15160
+ export type OntologyRelationPage = {
15161
+ /**
15162
+ * The relations on this page, ordered by relation id.
15163
+ */
15164
+ data: Array<OntologyRelation>;
15165
+ /**
15166
+ * Opaque cursor for the next page, or null when this is the last page; copy it into the next request's cursor unchanged.
15167
+ */
15168
+ next_cursor: string;
15169
+ };
15170
+ /**
15171
+ * The fact to record between two existing nodes of this organization.
15172
+ */
15173
+ export type OntologyCreateRelationInput = {
15174
+ /**
15175
+ * Registered relation type name from types.list; it must admit both endpoints or the write is refused.
15176
+ */
15177
+ type: string;
15178
+ /**
15179
+ * Node id the fact starts from, from nodes.list or nodes.create.
15180
+ */
15181
+ source: string;
15182
+ /**
15183
+ * Node id the fact points at, from nodes.list or nodes.create.
15184
+ */
15185
+ target: string;
15186
+ /**
15187
+ * The relationship in one sentence, at most 280 characters, written to read back on its own.
15188
+ */
15189
+ fact: string;
15190
+ /**
15191
+ * World time the fact became true, when the mirrored record dates it; omit to leave it undated.
15192
+ */
15193
+ valid_at?: string;
15194
+ /**
15195
+ * Member id whose content this fact is, restricting it to that member; omit or null for organization-wide.
15196
+ */
15197
+ owner?: string;
15198
+ };
15199
+ /**
15200
+ * One fact between two nodes, with two clocks — when it was true in the world and when it was recorded.
15201
+ */
15202
+ export type OntologyRelation = {
15203
+ /**
15204
+ * Relation id, used by invalidation and later reads; treat it as opaque and do not parse it.
15205
+ */
15206
+ id: string;
15207
+ /**
15208
+ * Registered relation type this fact was recorded as; it must admit both endpoints.
15209
+ */
15210
+ type: string;
15211
+ /**
15212
+ * Node id the fact starts from.
15213
+ */
15214
+ source: string;
15215
+ /**
15216
+ * Node id the fact points at.
15217
+ */
15218
+ target: string;
15219
+ /**
15220
+ * The relationship in one sentence, at most 280 characters, as it should be read back.
15221
+ */
15222
+ fact: string;
15223
+ /**
15224
+ * Where this fact was learned, oldest first; each entry names the scope it came from and an optional time range.
15225
+ */
15226
+ episodes?: Array<{
15227
+ /**
15228
+ * Scope the experience belonged to, normally a session id.
15229
+ */
15230
+ scope?: string;
15231
+ /**
15232
+ * Start of the period the experience covered, when known; omit for a single moment.
15233
+ */
15234
+ from?: string;
15235
+ /**
15236
+ * End of the period the experience covered, when known; omit for a single moment.
15237
+ */
15238
+ to?: string;
15239
+ }>;
15240
+ /**
15241
+ * Where the fact came from; the relation type must list this origin among the ones it accepts.
15242
+ */
15243
+ origin: 'platform' | 'stated' | 'observed' | 'inferred';
15244
+ /**
15245
+ * How strongly the fact is held, from 0 to 1; 1 is fully held and lower values fade faster.
15246
+ */
15247
+ confidence: number;
15248
+ /**
15249
+ * Member id whose content this fact is; null means it is readable organization-wide. Another member's relation reads as not found.
15250
+ */
15251
+ owner?: string;
15252
+ /**
15253
+ * World time the fact became true; null when it was never dated, in which case treat it as true since it was recorded.
15254
+ */
15255
+ valid_at?: string;
15256
+ /**
15257
+ * World time the fact stopped being true; null while it still holds. The relation is kept and reads at an earlier as_of.
15258
+ */
15259
+ invalid_at?: string;
15260
+ /**
15261
+ * System time the fact was recorded, in ISO 8601 UTC.
15262
+ */
15263
+ created_at: string;
15264
+ /**
15265
+ * System time the fact was judged no longer true, which trails invalid_at; null while it still holds.
15266
+ */
15267
+ expired_at?: string;
15268
+ /**
15269
+ * Relation id that replaced this one, when the invalidation named a successor; null when nothing replaced it.
15270
+ */
15271
+ superseded_by?: string;
15272
+ /**
15273
+ * System time the fact was archived out of spreading; null while it still spreads, and reads by time still reach it either way.
15274
+ */
15275
+ archived_at?: string;
15276
+ };
15277
+ /**
15278
+ * When the fact stopped being true, and optionally what replaced it.
15279
+ */
15280
+ export type OntologyInvalidateRelationInput = {
15281
+ /**
15282
+ * World time the fact stopped being true, in ISO 8601 UTC; reads at an earlier as_of still return the relation.
15283
+ */
15284
+ invalid_at: string;
15285
+ /**
15286
+ * Relation id that replaces this one, when a successor was recorded; omit or null when nothing replaced it.
15287
+ */
15288
+ superseded_by?: string;
15289
+ /**
15290
+ * Why it stopped being true, for people reading the history later; not enforced and safe to omit.
15291
+ */
15292
+ reason?: string;
15293
+ };
15294
+ /**
15295
+ * A batch of graph operations applied as one transaction; every operation succeeds or none is applied.
15296
+ */
15297
+ export type OntologyChangesetInput = {
15298
+ /**
15299
+ * World time the batch describes, in ISO 8601 UTC; operations without their own time are dated by it.
15300
+ */
15301
+ at: string;
15302
+ /**
15303
+ * Scope the batch came from, normally the session id it was observed in; it is stored with the operations for later reading.
15304
+ */
15305
+ scope?: string;
15306
+ /**
15307
+ * At most 500 operations, applied in order; each names its kind in op and the fields that kind requires.
15308
+ */
15309
+ ops: Array<OntologyChangesetOp>;
15310
+ };
15311
+ /**
15312
+ * What the batch did, including the ids it assigned and anything it refused.
15313
+ */
15314
+ export type OntologyChangesetResult = {
15315
+ /**
15316
+ * Number of operations that changed the graph; zero when the key had been seen before.
15317
+ */
15318
+ applied: number;
15319
+ /**
15320
+ * Map from each key used in the batch to the node or relation id it produced or matched.
15321
+ */
15322
+ ids: {
15323
+ [key: string]: string;
15324
+ };
15325
+ /**
15326
+ * Relations that already held the same meaning and were refreshed instead of duplicated.
15327
+ */
15328
+ refreshed: Array<string>;
15329
+ /**
15330
+ * Operations refused within the batch, each with its index and reason; empty when the batch applied whole.
15331
+ */
15332
+ rejected: Array<{
15333
+ /**
15334
+ * Zero-based position of the operation in the submitted ops array.
15335
+ */
15336
+ index?: number;
15337
+ /**
15338
+ * Failure category for this operation, such as ONTOLOGY_TYPE_UNKNOWN for an unregistered type.
15339
+ */
15340
+ code?: string;
15341
+ /**
15342
+ * Why this operation was refused, naming the offending field.
15343
+ */
15344
+ message?: string;
15345
+ }>;
15346
+ /**
15347
+ * True when the Idempotency-Key had been seen before, so nothing changed and the first result is returned.
15348
+ */
15349
+ replayed: boolean;
15350
+ };
15351
+ /**
15352
+ * The text to resolve, optionally narrowed to types and a result count.
15353
+ */
15354
+ export type OntologySearchInput = {
15355
+ /**
15356
+ * Text to find nodes for, matched against names, aliases, descriptions and relation facts; an empty string is refused.
15357
+ */
15358
+ text: string;
15359
+ /**
15360
+ * Registered node type names to search within; omit to search every type.
15361
+ */
15362
+ types?: Array<string>;
15363
+ /**
15364
+ * Restrict matches to facts recorded within a period; omit to search all time.
15365
+ */
15366
+ window?: {
15367
+ /**
15368
+ * Start of the period, inclusive, in ISO 8601 UTC; omit to leave the start open.
15369
+ */
15370
+ from?: string;
15371
+ /**
15372
+ * End of the period, exclusive, in ISO 8601 UTC; omit to leave the end open.
15373
+ */
15374
+ to?: string;
15375
+ };
15376
+ /**
15377
+ * Maximum candidate nodes to return, from 1 to 50; defaults to 20 when omitted.
15378
+ */
15379
+ limit?: number;
15380
+ };
15381
+ /**
15382
+ * Ranked candidate nodes for the searched text, best match first.
15383
+ */
15384
+ export type OntologySearchResult = {
15385
+ /**
15386
+ * The candidate nodes, strongest match first; an empty array means nothing matched.
15387
+ */
15388
+ hits: Array<{
15389
+ /**
15390
+ * Node id of the candidate; pass it to nodes.retrieve to confirm before writing with it.
15391
+ */
15392
+ node?: string;
15393
+ /**
15394
+ * Match strength from 0 to 1; compare candidates within one response rather than across queries.
15395
+ */
15396
+ score?: number;
15397
+ /**
15398
+ * Which field matched, so a weak fact match can be checked against the node itself.
15399
+ */
15400
+ matched?: 'name' | 'alias' | 'description' | 'fact';
15401
+ }>;
15402
+ };
14632
15403
  /**
14633
15404
  * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
14634
15405
  */
@@ -15071,6 +15842,10 @@ export type SandboxTemplateBuildInfo = {
15071
15842
  reason?: SandboxBuildStatusReason;
15072
15843
  };
15073
15844
  export type SandboxTemplateWithBuilds = {
15845
+ /**
15846
+ * 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.
15847
+ */
15848
+ lifecycles?: Array<'ephemeral' | 'persistent'>;
15074
15849
  /**
15075
15850
  * Identifier of the template
15076
15851
  */
@@ -24979,6 +25754,10 @@ export type CutTimeline = {
24979
25754
  * Ordered tracks, topmost visual layer first.
24980
25755
  */
24981
25756
  tracks: Array<CutTrack>;
25757
+ /**
25758
+ * Clip-to-clip transitions selected by track and overlap window; lengths are seconds and effect fields use snake_case on HTTP.
25759
+ */
25760
+ joins?: Array<CutJoin>;
24982
25761
  /**
24983
25762
  * Named points on the timeline.
24984
25763
  */
@@ -25071,6 +25850,20 @@ export type CutTrackSummary = {
25071
25850
  */
25072
25851
  items: number;
25073
25852
  };
25853
+ export type CutFrameWarning = {
25854
+ /**
25855
+ * FRAME_UNAVAILABLE means a source image could not be fetched for this preview.
25856
+ */
25857
+ code: 'FRAME_UNAVAILABLE';
25858
+ /**
25859
+ * Identifier of the clip whose source frame could not be fetched.
25860
+ */
25861
+ clip_id?: string;
25862
+ /**
25863
+ * Actionable safe explanation; source URLs and credentials are omitted.
25864
+ */
25865
+ message: string;
25866
+ };
25074
25867
  /**
25075
25868
  * Reference to an asset in a bound library; follows asset overwrites to the latest version rather than pinning a version.
25076
25869
  */
@@ -25293,7 +26086,7 @@ export type KnowledgeKnowledgeModels = {
25293
26086
  */
25294
26087
  query_rewrite: string;
25295
26088
  /**
25296
- * Extracts text from scanned PDF pages. Default: glm-ocr, falling back to qwen3.8-flash. A custom model precedes the platform defaults.
26089
+ * Extracts text from scanned PDF pages through the OCR API. Default: qwen-vl-ocr-2025-11-20, falling back to glm-ocr and qwen3.8-flash. A custom model precedes these defaults. OCR is billed by pages processed.
25297
26090
  */
25298
26091
  ocr: string;
25299
26092
  /**
@@ -25302,14 +26095,9 @@ export type KnowledgeKnowledgeModels = {
25302
26095
  vision: string;
25303
26096
  };
25304
26097
  /**
25305
- * auto resolves to static with 800 estimated tokens and 400 overlap tokens. Unlike OpenAI vector stores, token counts are estimates; each Han character counts as one, and other whitespace-delimited words count as their UTF-16 length divided by four, rounded up.
26098
+ * Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy.
25306
26099
  */
25307
- export type KnowledgeChunkingInput = {
25308
- /**
25309
- * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
25310
- */
25311
- type: 'auto';
25312
- } | KnowledgeStaticChunking;
26100
+ export type KnowledgeNativeChunkingInput = KnowledgeChunkingInput | KnowledgeHierarchicalChunking;
25313
26101
  /**
25314
26102
  * Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.
25315
26103
  */
@@ -25327,7 +26115,7 @@ export type KnowledgeKnowledgeModelsInput = {
25327
26115
  */
25328
26116
  query_rewrite?: string | null;
25329
26117
  /**
25330
- * Scanned PDF text extraction model; requires mistral.ocr or pdf_input capability. null restores glm-ocr. The preference leads the fallback chain glm-ocr, qwen3.8-flash with duplicates removed.
26118
+ * Scanned PDF text extraction model; requires mistral.ocr or pdf_input capability. null restores qwen-vl-ocr-2025-11-20. The preference leads the OCR API fallback chain qwen-vl-ocr-2025-11-20, glm-ocr, qwen3.8-flash with duplicates removed.
25331
26119
  */
25332
26120
  ocr?: string | null;
25333
26121
  /**
@@ -25364,6 +26152,10 @@ export type KnowledgeNativeSearchResult = {
25364
26152
  * Extracted text of the matched chunk, which may overlap neighboring chunks.
25365
26153
  */
25366
26154
  text: string;
26155
+ /**
26156
+ * 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.
26157
+ */
26158
+ readonly image_file_id?: string;
25367
26159
  /**
25368
26160
  * Resource ID.
25369
26161
  */
@@ -25427,14 +26219,9 @@ export type KnowledgeFilter = {
25427
26219
  filters: Array<KnowledgeFilter>;
25428
26220
  };
25429
26221
  /**
25430
- * Stored chunking strategy for this attachment; auto input is returned as static settings.
26222
+ * Native stored strategy, including hierarchical parent and child settings. auto input resolves to static; the OpenAI-compatible URL projects hierarchical as other.
25431
26223
  */
25432
- export type KnowledgeChunking = KnowledgeStaticChunking | {
25433
- /**
25434
- * other identifies a stored strategy whose chunk-size settings are unavailable.
25435
- */
25436
- type: 'other';
25437
- };
26224
+ export type KnowledgeNativeChunking = KnowledgeChunking | KnowledgeHierarchicalChunking;
25438
26225
  /**
25439
26226
  * File attributes used by search filters. Up to 16 keys of 64 characters; string values up to 512 characters.
25440
26227
  */
@@ -25546,7 +26333,7 @@ export type MediaUnderstandingProgress = {
25546
26333
  readonly migration_complete: boolean;
25547
26334
  };
25548
26335
  /**
25549
- * Resolved model call IDs for the library’s vision, embedding and transcription roles.
26336
+ * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
25550
26337
  */
25551
26338
  export type MediaMediaModels = {
25552
26339
  /**
@@ -25558,9 +26345,21 @@ export type MediaMediaModels = {
25558
26345
  */
25559
26346
  embedding: string;
25560
26347
  /**
25561
- * Model call ID for speech transcription.
26348
+ * Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
25562
26349
  */
25563
26350
  transcription: string;
26351
+ /**
26352
+ * Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
26353
+ */
26354
+ readonly correction: string;
26355
+ /**
26356
+ * Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
26357
+ */
26358
+ readonly reference_transcription: string;
26359
+ /**
26360
+ * 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.
26361
+ */
26362
+ readonly audio: string;
25564
26363
  };
25565
26364
  /**
25566
26365
  * Identifier of a library belonging to the caller.
@@ -25721,7 +26520,7 @@ export type MediaCloudinaryResource = {
25721
26520
  */
25722
26521
  url: string;
25723
26522
  /**
25724
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
26523
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
25725
26524
  */
25726
26525
  secure_url: string;
25727
26526
  /**
@@ -25757,13 +26556,13 @@ export type MediaChunkComplete = MediaCloudinaryResource & {
25757
26556
  done: true;
25758
26557
  };
25759
26558
  /**
25760
- * Per-task processing progress and its aggregate state for the asset.
26559
+ * 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.
25761
26560
  */
25762
26561
  export type MediaProcessing = {
25763
26562
  /**
25764
- * Current understanding stage: probe, frames, visual, transcript, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
26563
+ * Current understanding stage: probe, frames, shots, visual, transcript, transcript_reference, transcript_correction, audio_profile, overview, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
25765
26564
  */
25766
- readonly stage?: 'probe' | 'frames' | 'visual' | 'transcript' | 'embedding' | 'finalize' | null;
26565
+ readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
25767
26566
  state: MediaProcessingState;
25768
26567
  /**
25769
26568
  * Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
@@ -25805,6 +26604,18 @@ export type MediaStoryboard = {
25805
26604
  * An immutable understanding result for an asset version, including superseded history when requested.
25806
26605
  */
25807
26606
  export type MediaUnderstanding = {
26607
+ /**
26608
+ * Original hallucination-filtered ASR text before correction, present on correction-enabled transcript records. Omitted on legacy records and other kinds.
26609
+ */
26610
+ readonly text_original?: string;
26611
+ /**
26612
+ * Corrected transcript, also returned as content and used for subtitles and search. Equals text_original when correction fails. Original segment timestamps remain unchanged.
26613
+ */
26614
+ readonly text?: string;
26615
+ /**
26616
+ * Transcript correction audit, accepted edits and optional reference ASR. Present on correction-enabled transcript records, including failed corrections.
26617
+ */
26618
+ readonly correction?: MediaTranscriptCorrection;
25808
26619
  /**
25809
26620
  * Generated identifier of this understanding result.
25810
26621
  */
@@ -25818,7 +26629,7 @@ export type MediaUnderstanding = {
25818
26629
  */
25819
26630
  asset_version: number;
25820
26631
  /**
25821
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment.
26632
+ * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
25822
26633
  */
25823
26634
  kind: MediaUnderstandingKind;
25824
26635
  /**
@@ -25842,7 +26653,7 @@ export type MediaUnderstanding = {
25842
26653
  */
25843
26654
  content: string | null;
25844
26655
  /**
25845
- * Structured producer output, such as recognized labels or frame details; null when absent.
26656
+ * Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape. Transcript segments may contain speaker (a diarization label, not a verified identity), words (text, start_ms and end_ms in source-media milliseconds) and producer (the actual fallback model when different from the record producer). Overview data contains chapters (first_shot, title, summary, start_ms, end_ms), iab (tier1, optional tier2, confidence from 0 to 1), and location (an unverified place guess or null); content is the full-video summary. Audio data contains segments (start_s and end_s in source-media seconds; type is speech, music, ambient or silence), has_music, genre, mood, bpm_estimate (nullable), bpm_is_estimate=true and analyzed_ranges (start_s, end_s in seconds). Genre and mood are nullable model labels. Audio understanding samples only the first 120 seconds in at most three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate, not an exact tempo; has_music=false only means no music was detected within analyzed_ranges.
25846
26657
  */
25847
26658
  data: unknown | null;
25848
26659
  /**
@@ -25871,6 +26682,36 @@ export type MediaUnderstanding = {
25871
26682
  */
25872
26683
  created_at: MediaIsoTimestamp;
25873
26684
  };
26685
+ export type MediaUnderstoodShot = {
26686
+ /**
26687
+ * Inclusive shot start in milliseconds.
26688
+ */
26689
+ readonly start_ms: number;
26690
+ /**
26691
+ * Exclusive shot end in milliseconds.
26692
+ */
26693
+ readonly end_ms: number;
26694
+ /**
26695
+ * Zero-based shot index in timeline order.
26696
+ */
26697
+ readonly index: number;
26698
+ /**
26699
+ * One to three sampled frame timestamps in milliseconds within this shot.
26700
+ */
26701
+ readonly keyframes_ms: Array<number>;
26702
+ /**
26703
+ * Structured interpretation, present after this shot completes visual processing.
26704
+ */
26705
+ readonly visual?: MediaShotVisual;
26706
+ /**
26707
+ * Lexical location hint: true if the leaf folder and location guess share no place-name token. Unknown locations abstain; this is not a verified geolocation.
26708
+ */
26709
+ readonly folder_mismatch?: boolean;
26710
+ /**
26711
+ * Vision model that generated this shot interpretation.
26712
+ */
26713
+ readonly producer?: string;
26714
+ };
25874
26715
  /**
25875
26716
  * A native asset returned by expression search; tags and context are included only when requested in with_field.
25876
26717
  */
@@ -25988,7 +26829,7 @@ export type MediaSearchAsset = {
25988
26829
  */
25989
26830
  url: string;
25990
26831
  /**
25991
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
26832
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
25992
26833
  */
25993
26834
  secure_url: string;
25994
26835
  /**
@@ -26015,6 +26856,10 @@ export type MediaSearchAsset = {
26015
26856
  * Resource status; active identifies an asset that has not been deleted.
26016
26857
  */
26017
26858
  status: 'active';
26859
+ /**
26860
+ * 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.
26861
+ */
26862
+ has_alpha?: boolean;
26018
26863
  /**
26019
26864
  * 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.
26020
26865
  */
@@ -26071,6 +26916,27 @@ export type MediaSearchAsset = {
26071
26916
  };
26072
26917
  };
26073
26918
  };
26919
+ /**
26920
+ * Source details for the video-generation job that created this asset.
26921
+ */
26922
+ generation?: {
26923
+ /**
26924
+ * Job id that generated this asset.
26925
+ */
26926
+ job_id: MediaJobId;
26927
+ /**
26928
+ * Generation intent used to create the asset; v1 supports video.generate.
26929
+ */
26930
+ intent: string;
26931
+ /**
26932
+ * Text prompt submitted for the generation job.
26933
+ */
26934
+ prompt: string;
26935
+ /**
26936
+ * Router video-generation model that produced the asset.
26937
+ */
26938
+ model: string;
26939
+ };
26074
26940
  };
26075
26941
  /**
26076
26942
  * A matching asset with its ranking score and supporting matches.
@@ -26093,11 +26959,11 @@ export type MediaSemanticHit = {
26093
26959
  */
26094
26960
  matches: Array<MediaSemanticMatch>;
26095
26961
  };
26962
+ export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'CANDIDATE_EXPIRED' | 'BINDING_READ_ONLY';
26096
26963
  /**
26097
- * Identifier returned when a batch job is created.
26964
+ * State of a requested video output.
26098
26965
  */
26099
- export type MediaJobId = string;
26100
- export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'BINDING_READ_ONLY';
26966
+ export type MediaGenerationOutputStatus = 'pending' | 'succeeded' | 'failed';
26101
26967
  /**
26102
26968
  * A recorded library event with a monotonically increasing sequence within that library.
26103
26969
  */
@@ -26141,6 +27007,200 @@ export type MediaMediaEvent = {
26141
27007
  [key: string]: unknown;
26142
27008
  };
26143
27009
  };
27010
+ export type MediaFailureGroup = {
27011
+ /**
27012
+ * Failure reason code. Unknown codes are retryable.
27013
+ */
27014
+ code: string;
27015
+ /**
27016
+ * Understanding output kind that failed, such as caption, frame, transcript or embedding.
27017
+ */
27018
+ kind: string;
27019
+ /**
27020
+ * Producer model that reported this failure; unknown when historical provenance was unavailable.
27021
+ */
27022
+ model: string;
27023
+ /**
27024
+ * Number of current failed entries in this group; several entries can belong to one asset.
27025
+ */
27026
+ count: number;
27027
+ /**
27028
+ * True for a rollup of additional code, kind and model combinations after 1024 detailed groups. OTHER_RETRYABLE and OTHER_UNRECOVERABLE preserve retryability; original codes remain on each understanding and match failure_code expressions.
27029
+ */
27030
+ overflow: boolean;
27031
+ /**
27032
+ * True when a repeated attempt may recover, including unknown error codes. False for unsupported media, limits, missing or corrupt source files.
27033
+ */
27034
+ retryable: boolean;
27035
+ /**
27036
+ * Up to five distinct asset identifiers from this group, for inspecting original error details.
27037
+ */
27038
+ sample_asset_ids: Array<MediaAssetId>;
27039
+ };
27040
+ /**
27041
+ * A kind of entity the graph accepts, for example a file or a customer.
27042
+ */
27043
+ export type OntologyNodeType = {
27044
+ /**
27045
+ * Globally unique type name, used as a node's type when creating it; a dotted name marks a namespaced subtype.
27046
+ */
27047
+ name: string;
27048
+ /**
27049
+ * Required prefix of the external record id when a node of this type carries a ref, for example file_ for the file type; omit for types that are pure concepts.
27050
+ */
27051
+ ref_prefix?: string;
27052
+ /**
27053
+ * Type significance from 0 to 1, used when ranking how strongly reaching this kind of node matters.
27054
+ */
27055
+ weight: number;
27056
+ /**
27057
+ * Whether the graph may continue through a node of this type; false makes it a stopping point that is reached but never expanded.
27058
+ */
27059
+ passable: boolean;
27060
+ /**
27061
+ * What this type means in the registering service, used to choose the right type when writing.
27062
+ */
27063
+ description: string;
27064
+ };
27065
+ /**
27066
+ * A kind of fact the graph accepts between two nodes.
27067
+ */
27068
+ export type OntologyEdgeType = {
27069
+ /**
27070
+ * Globally unique relation type name, used as a relation's type when creating it.
27071
+ */
27072
+ name: string;
27073
+ /**
27074
+ * Node type names this relation may start from; the single entry * admits every type.
27075
+ */
27076
+ source: Array<string>;
27077
+ /**
27078
+ * Node type names this relation may point at; the single entry * admits every type.
27079
+ */
27080
+ target: Array<string>;
27081
+ /**
27082
+ * Whether the fact reads one way or the same in both directions, which decides how it renders on each endpoint.
27083
+ */
27084
+ direction: 'forward' | 'both';
27085
+ /**
27086
+ * Whether spreading may continue through this relation; false makes it a stopping point that is reached but never traversed.
27087
+ */
27088
+ passable: boolean;
27089
+ /**
27090
+ * Relation significance from 0 to 1, used when ranking how strongly reaching through this relation matters.
27091
+ */
27092
+ weight: number;
27093
+ /**
27094
+ * Whether a source may have at most one valid relation of this type at a time; true makes a new one supersede the old.
27095
+ */
27096
+ functional: boolean;
27097
+ /**
27098
+ * How long the relation stays strong while valid, from 0 to 1; 1 never fades and lower values decay faster. Omit for the default decay.
27099
+ */
27100
+ persistence?: number;
27101
+ /**
27102
+ * Origins a relation of this type may carry; each value names where the fact came from and they are checked when writing.
27103
+ */
27104
+ origins: Array<'platform' | 'stated' | 'observed' | 'inferred'>;
27105
+ /**
27106
+ * What this fact means in the registering service, used to choose the right type when writing.
27107
+ */
27108
+ description: string;
27109
+ };
27110
+ /**
27111
+ * A node the caller may reach but not read, because its content belongs to another member; its name confirms what was reached while the content stays withheld.
27112
+ */
27113
+ export type OntologyRestrictedNode = {
27114
+ /**
27115
+ * Node id, usable to relate this entity to others; treat it as opaque.
27116
+ */
27117
+ id: string;
27118
+ /**
27119
+ * Registered node type of the hidden entity, which is not itself restricted content.
27120
+ */
27121
+ type: string;
27122
+ /**
27123
+ * Display name of the hidden entity, shown so a caller can tell whether the reached node is the one it meant.
27124
+ */
27125
+ name: string;
27126
+ /**
27127
+ * Always true; its presence is how a caller tells a withheld node from a readable one.
27128
+ */
27129
+ restricted: boolean;
27130
+ };
27131
+ /**
27132
+ * One operation of a changeset, discriminated by op; it names new nodes and relations by caller-local keys reused within the same batch.
27133
+ */
27134
+ export type OntologyChangesetOp = {
27135
+ /**
27136
+ * Which operation to apply; the remaining required fields follow from this value.
27137
+ */
27138
+ op: 'upsert_node' | 'relate' | 'invalidate' | 'merge' | 'alias';
27139
+ /**
27140
+ * Caller-local name for the node or relation this operation creates, reused by later operations in the same batch; it is not an id.
27141
+ */
27142
+ key?: string;
27143
+ /**
27144
+ * Registered type name for upsert_node and relate; an unregistered name refuses the whole batch.
27145
+ */
27146
+ type?: string;
27147
+ /**
27148
+ * Mirrored record id for upsert_node, which must start with the type's ref_prefix; omit for a concept.
27149
+ */
27150
+ ref?: string;
27151
+ /**
27152
+ * Display name for upsert_node, at most 200 characters.
27153
+ */
27154
+ name?: string;
27155
+ /**
27156
+ * Start of a relate fact; a key from this batch or an existing node id.
27157
+ */
27158
+ source?: string;
27159
+ /**
27160
+ * End of a relate fact; a key from this batch or an existing node id.
27161
+ */
27162
+ target?: string;
27163
+ /**
27164
+ * The relationship in one sentence for relate, at most 280 characters.
27165
+ */
27166
+ fact?: string;
27167
+ /**
27168
+ * Where a relate fact came from; the relation type must accept this origin.
27169
+ */
27170
+ origin?: 'platform' | 'stated' | 'observed' | 'inferred';
27171
+ /**
27172
+ * Relation id an invalidate operation acts on, from relations.list or an earlier operation in this batch.
27173
+ */
27174
+ edge?: string;
27175
+ /**
27176
+ * World time an invalidate operation marks the fact as no longer true.
27177
+ */
27178
+ invalid_at?: string;
27179
+ /**
27180
+ * Relation id that replaces the invalidated one, when a successor was recorded; omit when nothing replaced it.
27181
+ */
27182
+ by?: string;
27183
+ /**
27184
+ * Why the operation was applied, kept for people reading the history; not enforced.
27185
+ */
27186
+ reason?: string;
27187
+ /**
27188
+ * Node id a merge operation folds away, resolving to the into node afterwards.
27189
+ */
27190
+ from?: string;
27191
+ /**
27192
+ * Node id a merge operation keeps, receiving the merged node's relations and aliases.
27193
+ */
27194
+ into?: string;
27195
+ /**
27196
+ * Node id an alias operation adds a name to.
27197
+ */
27198
+ node?: string;
27199
+ /**
27200
+ * The additional name an alias operation records for its node.
27201
+ */
27202
+ alias?: string;
27203
+ };
26144
27204
  /**
26145
27205
  * Auto-resume configuration for paused sandboxes.
26146
27206
  */
@@ -30467,6 +31527,32 @@ export type CutTrack = {
30467
31527
  */
30468
31528
  items: Array<CutItem>;
30469
31529
  };
31530
+ /**
31531
+ * Overlap between adjacent visual clips on the same track; creating it shifts the right clip and same-track followers left by its length.
31532
+ */
31533
+ export type CutJoin = {
31534
+ /**
31535
+ * Join identifier returned by Join; reuse as the id argument to UpdateJoin or DeleteJoin inside execute.
31536
+ */
31537
+ id: string;
31538
+ /**
31539
+ * Visual track containing both endpoints, from AddTrack or the timeline track id.
31540
+ */
31541
+ track: string;
31542
+ /**
31543
+ * Outgoing clip identifier, from Insert or the timeline items.
31544
+ */
31545
+ left: string;
31546
+ /**
31547
+ * Incoming clip identifier, from Insert or the timeline items.
31548
+ */
31549
+ right: string;
31550
+ /**
31551
+ * Overlap duration in seconds, positive and shorter than each endpoint; incoming plus outgoing lengths may not exceed a clip length.
31552
+ */
31553
+ length: number;
31554
+ effect: CutJoinEffect;
31555
+ };
30470
31556
  /**
30471
31557
  * A named point on the project timeline.
30472
31558
  */
@@ -30484,23 +31570,39 @@ export type CutMarker = {
30484
31570
  */
30485
31571
  label: string;
30486
31572
  };
30487
- export type KnowledgeStaticChunking = {
31573
+ /**
31574
+ * 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.
31575
+ */
31576
+ export type KnowledgeChunkingInput = {
30488
31577
  /**
30489
- * static selects explicit chunk-size and overlap settings.
31578
+ * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
30490
31579
  */
30491
- type: 'static';
31580
+ type: 'auto';
31581
+ } | KnowledgeStaticChunking;
31582
+ /**
31583
+ * 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.
31584
+ */
31585
+ export type KnowledgeHierarchicalChunking = {
30492
31586
  /**
30493
- * Chunk-size and overlap limits in estimated tokens.
31587
+ * hierarchical selects smaller child chunks for matching and larger parent chunks for context.
30494
31588
  */
30495
- static: {
31589
+ type: 'hierarchical';
31590
+ /**
31591
+ * Required parent, child and overlap sizes in estimated tokens. All three values must be integers.
31592
+ */
31593
+ hierarchical: {
30496
31594
  /**
30497
- * Estimated tokens per chunk.
31595
+ * Maximum estimated tokens per parent chunk, from 101 through 4096; must exceed child_max_tokens.
30498
31596
  */
30499
- max_chunk_size_tokens: number;
31597
+ parent_max_tokens: number;
30500
31598
  /**
30501
- * Must not exceed half of max_chunk_size_tokens.
31599
+ * Maximum estimated tokens per child chunk, at least 100 and strictly smaller than parent_max_tokens.
30502
31600
  */
30503
- chunk_overlap_tokens: number;
31601
+ child_max_tokens: number;
31602
+ /**
31603
+ * Estimated tokens shared by adjacent children, from zero through floor(child_max_tokens / 2).
31604
+ */
31605
+ child_overlap_tokens: number;
30504
31606
  };
30505
31607
  };
30506
31608
  /**
@@ -30540,6 +31642,15 @@ export type KnowledgeSearchExplain = {
30540
31642
  */
30541
31643
  matched_terms: Array<string>;
30542
31644
  };
31645
+ /**
31646
+ * Stored chunking strategy for this attachment; auto input is returned as static settings.
31647
+ */
31648
+ export type KnowledgeChunking = KnowledgeStaticChunking | {
31649
+ /**
31650
+ * other identifies a stored strategy whose chunk-size settings are unavailable.
31651
+ */
31652
+ type: 'other';
31653
+ };
30543
31654
  /**
30544
31655
  * Aggregate processing state across the asset processing tasks.
30545
31656
  */
@@ -30548,14 +31659,66 @@ export type MediaProcessingState = 'pending' | 'processing' | 'ready' | 'partial
30548
31659
  * Task state: pending awaits execution; running is executing; ready succeeded; failed terminated unsuccessfully; unsupported cannot process this input; skipped was disabled or does not apply.
30549
31660
  */
30550
31661
  export type MediaKindState = 'pending' | 'running' | 'ready' | 'failed' | 'unsupported' | 'skipped';
31662
+ export type MediaTranscriptCorrection = {
31663
+ /**
31664
+ * Accepted local edits, including deterministic Arabic quantity normalization. Unsupported model edits are discarded.
31665
+ */
31666
+ readonly edits: Array<MediaTranscriptEdit>;
31667
+ /**
31668
+ * ready means correction and validation completed; failed means text is exactly the ASR original, with no accepted edits.
31669
+ */
31670
+ readonly correction_status: 'ready' | 'failed';
31671
+ /**
31672
+ * Configured correction model call ID; defaults to qwen3.8-flash.
31673
+ */
31674
+ readonly correction_model: string;
31675
+ /**
31676
+ * ready means reference ASR supplied text; missing means reference failed or was unavailable and correction proceeded without it.
31677
+ */
31678
+ readonly reference_status: 'ready' | 'missing';
31679
+ /**
31680
+ * Full reference ASR text, present when reference_status is ready. It supplies spelling evidence and has no timestamps.
31681
+ */
31682
+ readonly reference_text?: string;
31683
+ /**
31684
+ * Model call ID that supplied the reference text; defaults to qwen3-asr-flash.
31685
+ */
31686
+ readonly reference_model?: string;
31687
+ /**
31688
+ * Correction failure that caused verbatim fallback to the ASR original.
31689
+ */
31690
+ readonly correction_error?: {
31691
+ /**
31692
+ * Failure code for the optional transcript enhancement step.
31693
+ */
31694
+ code: string;
31695
+ /**
31696
+ * Failure detail; use reprocess to retry with the library’s current configuration.
31697
+ */
31698
+ message: string;
31699
+ };
31700
+ /**
31701
+ * Reference failure; it does not block correction.
31702
+ */
31703
+ readonly reference_error?: {
31704
+ /**
31705
+ * Failure code for the optional transcript enhancement step.
31706
+ */
31707
+ code: string;
31708
+ /**
31709
+ * Failure detail; use reprocess to retry with the library’s current configuration.
31710
+ */
31711
+ message: string;
31712
+ };
31713
+ };
30551
31714
  /**
30552
31715
  * Identifier of an immutable understanding result.
30553
31716
  */
30554
31717
  export type MediaUnderstandingId = string;
30555
31718
  /**
30556
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment.
31719
+ * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
30557
31720
  */
30558
- export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
31721
+ export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
30559
31722
  /**
30560
31723
  * Time range within the source media, expressed in milliseconds.
30561
31724
  */
@@ -30569,6 +31732,28 @@ export type MediaSegment = {
30569
31732
  */
30570
31733
  end_ms: number;
30571
31734
  };
31735
+ export type MediaShotVisual = {
31736
+ /**
31737
+ * Chinese summary of the entire shot using its keyframes together.
31738
+ */
31739
+ readonly caption: string;
31740
+ /**
31741
+ * Chinese description of the scene and shooting context.
31742
+ */
31743
+ readonly scene: string;
31744
+ /**
31745
+ * Location inferred from recognizable landmarks or readable place names; null without evidence.
31746
+ */
31747
+ readonly location_guess: string | null;
31748
+ /**
31749
+ * Visible text in reading order, preserving the source language.
31750
+ */
31751
+ readonly on_screen_text: Array<string>;
31752
+ /**
31753
+ * Quality and editing characteristics with confidence for every judgment.
31754
+ */
31755
+ readonly flags: MediaShotFlags;
31756
+ };
30572
31757
  /**
30573
31758
  * Evidence contributing to a search hit, optionally linked to an understanding and a source-media segment.
30574
31759
  */
@@ -30593,7 +31778,7 @@ export type MediaSemanticMatch = {
30593
31778
  /**
30594
31779
  * Type of change recorded for a library, asset, processing task, search index or batch.
30595
31780
  */
30596
- export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed';
31781
+ export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
30597
31782
  /**
30598
31783
  * Auto-resume enabled flag for paused sandboxes. Default false.
30599
31784
  */
@@ -31225,21 +32410,25 @@ export type AnthropicToolReferenceBlock = {
31225
32410
  */
31226
32411
  export type CutTextStyle = {
31227
32412
  /**
31228
- * Geist is the Latin typeface; Noto Sans SC is the simplified Chinese typeface.
32413
+ * Canonical font family name; call ListFonts() in the Cut script API to retrieve the available font families.
31229
32414
  */
31230
- font_family?: 'Geist' | 'Noto Sans SC';
32415
+ font_family?: string;
31231
32416
  /**
31232
32417
  * Text size in output pixels.
31233
32418
  */
31234
32419
  font_size?: number;
31235
32420
  /**
31236
- * Font weight: 400 is regular, 500 is medium and 700 is bold.
32421
+ * Positive requested font weight; each family has its own available catalog weights, and unsupported values resolve to the nearest available weight, preferring the heavier weight on a tie.
31237
32422
  */
31238
- font_weight?: 400 | 500 | 700;
32423
+ font_weight?: number;
31239
32424
  /**
31240
32425
  * Text color in #RRGGBB or #RRGGBBAA notation.
31241
32426
  */
31242
32427
  color?: string;
32428
+ /**
32429
+ * Optional solid or gradient glyph fill; gradients span the text box.
32430
+ */
32431
+ fill?: CutFill;
31243
32432
  /**
31244
32433
  * Optional text outline.
31245
32434
  */
@@ -31249,10 +32438,61 @@ export type CutTextStyle = {
31249
32438
  */
31250
32439
  color?: string;
31251
32440
  /**
31252
- * Outline width in output pixels.
32441
+ * Outline width in output pixels; must be non-negative and at most 40 pixels.
31253
32442
  */
31254
32443
  width?: number;
31255
32444
  };
32445
+ /**
32446
+ * Additional outlines, painted from outermost to innermost; at most 4 strokes.
32447
+ */
32448
+ strokes?: Array<{
32449
+ /**
32450
+ * Outline color in #RRGGBB or #RRGGBBAA notation.
32451
+ */
32452
+ color?: string;
32453
+ /**
32454
+ * Outline width in output pixels, from 0 to 40.
32455
+ */
32456
+ width?: number;
32457
+ }>;
32458
+ /**
32459
+ * Offset text shadows; at most 4 shadows. Offsets are non-negative output pixels; blur is 0 to 100 output pixels.
32460
+ */
32461
+ shadows?: Array<{
32462
+ /**
32463
+ * Shadow color in #RRGGBB or #RRGGBBAA notation.
32464
+ */
32465
+ color?: string;
32466
+ /**
32467
+ * Non-negative horizontal offset in output pixels.
32468
+ */
32469
+ x?: number;
32470
+ /**
32471
+ * Non-negative vertical offset in output pixels.
32472
+ */
32473
+ y?: number;
32474
+ /**
32475
+ * Blur radius in output pixels, from 0 to 100.
32476
+ */
32477
+ blur?: number;
32478
+ }>;
32479
+ /**
32480
+ * Colored glow around glyphs; radius is in output pixels, from 0 to 100, and strength is from 0 to 1.
32481
+ */
32482
+ glow?: {
32483
+ /**
32484
+ * Glow color in #RRGGBB or #RRGGBBAA notation.
32485
+ */
32486
+ color?: string;
32487
+ /**
32488
+ * Glow blur radius in output pixels, from 0 to 100.
32489
+ */
32490
+ radius?: number;
32491
+ /**
32492
+ * Glow opacity multiplier from 0 to 1.
32493
+ */
32494
+ strength?: number;
32495
+ };
31256
32496
  /**
31257
32497
  * Optional text background color as hexadecimal RGB or RGBA.
31258
32498
  */
@@ -31266,9 +32506,13 @@ export type CutTextStyle = {
31266
32506
  */
31267
32507
  max_width?: number;
31268
32508
  /**
31269
- * Caption placement: top is near the upper edge, middle is centered, bottom is near the lower edge.
32509
+ * Text or caption placement: top/middle/bottom center the box at 12%/50%/85% of height without margin; omitted text position preserves its transform.
31270
32510
  */
31271
32511
  position?: 'top' | 'middle' | 'bottom';
32512
+ /**
32513
+ * Box edge distance from the top or bottom as a fraction of canvas height; middle ignores it.
32514
+ */
32515
+ margin?: number;
31272
32516
  /**
31273
32517
  * Optional color applied to the currently spoken caption word.
31274
32518
  */
@@ -31380,6 +32624,200 @@ export type CutItem = {
31380
32624
  */
31381
32625
  words?: Array<CutCaptionWord>;
31382
32626
  };
32627
+ /**
32628
+ * Transition between two joined visual clips. The kind identifies an effect from ListTransitions; omitted parameters use that effect's defaults. Unknown fields and invalid values are rejected.
32629
+ */
32630
+ export type CutJoinEffect = {
32631
+ /**
32632
+ * Dissolve: Blend the outgoing shot into the incoming shot.
32633
+ */
32634
+ kind: 'dissolve';
32635
+ } | {
32636
+ /**
32637
+ * Dip: Fade through a solid color between the two shots.
32638
+ */
32639
+ kind: 'dip';
32640
+ /**
32641
+ * Solid color shown between shots.
32642
+ */
32643
+ color?: 'black' | 'white';
32644
+ } | {
32645
+ /**
32646
+ * Push: Slide the incoming shot into view as it pushes the outgoing shot away.
32647
+ */
32648
+ kind: 'push';
32649
+ /**
32650
+ * Direction in which the transition moves across the frame.
32651
+ */
32652
+ direction?: 'left' | 'right' | 'up' | 'down';
32653
+ } | {
32654
+ /**
32655
+ * Wipe: Reveal the incoming shot behind an edge moving across the outgoing shot.
32656
+ */
32657
+ kind: 'wipe';
32658
+ /**
32659
+ * Direction in which the transition moves across the frame.
32660
+ */
32661
+ direction?: 'left' | 'right' | 'up' | 'down';
32662
+ /**
32663
+ * Edge softness from a sharp boundary to a fully softened blend.
32664
+ */
32665
+ softness?: number;
32666
+ } | {
32667
+ /**
32668
+ * Iris: Reveal the incoming shot through an expanding circular opening.
32669
+ */
32670
+ kind: 'iris';
32671
+ /**
32672
+ * Horizontal opening center from the left edge to the right edge.
32673
+ */
32674
+ center_x?: number;
32675
+ /**
32676
+ * Vertical opening center from the top edge to the bottom edge.
32677
+ */
32678
+ center_y?: number;
32679
+ } | {
32680
+ /**
32681
+ * Blinds: Reveal the incoming shot through a set of parallel strips.
32682
+ */
32683
+ kind: 'blinds';
32684
+ /**
32685
+ * Number of strips revealing the incoming shot.
32686
+ */
32687
+ count?: number;
32688
+ /**
32689
+ * Orientation of the revealing strips.
32690
+ */
32691
+ orientation?: 'vertical' | 'horizontal';
32692
+ } | {
32693
+ /**
32694
+ * Blur: Blur the outgoing shot into the incoming shot before returning to focus.
32695
+ */
32696
+ kind: 'blur';
32697
+ /**
32698
+ * Blur radius in pixels at a reference frame height of 1080 pixels.
32699
+ */
32700
+ radius?: number;
32701
+ } | {
32702
+ /**
32703
+ * Zoom transition.
32704
+ */
32705
+ kind: 'zoom';
32706
+ /**
32707
+ * Zoom in or out.
32708
+ */
32709
+ direction?: 'in' | 'out';
32710
+ /**
32711
+ * Peak scale increase as a multiple of the original scale.
32712
+ */
32713
+ amount?: number;
32714
+ /**
32715
+ * Radial blur strength; zero disables blur sampling.
32716
+ */
32717
+ blur?: number;
32718
+ } | {
32719
+ /**
32720
+ * Clock transition.
32721
+ */
32722
+ kind: 'clock';
32723
+ /**
32724
+ * Sweep direction.
32725
+ */
32726
+ direction?: 'clockwise' | 'counterclockwise';
32727
+ /**
32728
+ * Start angle in degrees, with zero at twelve o'clock.
32729
+ */
32730
+ start_angle?: number;
32731
+ /**
32732
+ * Angular feather width.
32733
+ */
32734
+ softness?: number;
32735
+ } | {
32736
+ /**
32737
+ * Flash transition.
32738
+ */
32739
+ kind: 'flash';
32740
+ /**
32741
+ * Flash color.
32742
+ */
32743
+ color?: 'white' | 'black';
32744
+ /**
32745
+ * Flash strength.
32746
+ */
32747
+ intensity?: number;
32748
+ } | {
32749
+ /**
32750
+ * Luma transition.
32751
+ */
32752
+ kind: 'luma';
32753
+ /**
32754
+ * Built-in map. User maps are not available yet.
32755
+ */
32756
+ map?: 'radial' | 'diagonal' | 'clouds' | 'spiral' | 'honeycomb' | 'bars';
32757
+ /**
32758
+ * Edge feather width.
32759
+ */
32760
+ softness?: number;
32761
+ /**
32762
+ * Reveal order.
32763
+ */
32764
+ invert?: 'normal' | 'inverted';
32765
+ };
32766
+ export type KnowledgeStaticChunking = {
32767
+ /**
32768
+ * static selects explicit chunk-size and overlap settings.
32769
+ */
32770
+ type: 'static';
32771
+ /**
32772
+ * Chunk-size and overlap limits in estimated tokens.
32773
+ */
32774
+ static: {
32775
+ /**
32776
+ * Estimated tokens per chunk.
32777
+ */
32778
+ max_chunk_size_tokens: number;
32779
+ /**
32780
+ * Must not exceed half of max_chunk_size_tokens.
32781
+ */
32782
+ chunk_overlap_tokens: number;
32783
+ };
32784
+ };
32785
+ export type MediaTranscriptEdit = {
32786
+ /**
32787
+ * Original literal text replaced by this accepted edit.
32788
+ */
32789
+ readonly from: string;
32790
+ /**
32791
+ * Replacement text. Model edits require a length difference of at most two Unicode characters, or a target present in hotwords or the reference transcript. Arabic quantity normalization is deterministic.
32792
+ */
32793
+ readonly to: string;
32794
+ /**
32795
+ * Zero-based index in the assembled, hallucination-filtered ASR segments. Segment timestamps do not change.
32796
+ */
32797
+ readonly segment_id: number;
32798
+ };
32799
+ export type MediaShotFlags = {
32800
+ /**
32801
+ * Slide or screen-recorded picture/text sequence rather than live footage.
32802
+ */
32803
+ readonly slideshow: MediaShotFlag;
32804
+ /**
32805
+ * Visible watermark.
32806
+ */
32807
+ readonly watermark: MediaShotFlag;
32808
+ /**
32809
+ * Fingers or hands framing the scene.
32810
+ */
32811
+ readonly hand_frame: MediaShotFlag;
32812
+ /**
32813
+ * Added text sticker or overlay.
32814
+ */
32815
+ readonly text_sticker: MediaShotFlag;
32816
+ /**
32817
+ * Blur, severe camera shake, bad exposure or another visible quality defect.
32818
+ */
32819
+ readonly low_quality: MediaShotFlag;
32820
+ };
31383
32821
  export type SandboxSandboxIamToken = {
31384
32822
  /**
31385
32823
  * Audience of the workload token, stored exactly as provided.
@@ -31565,6 +33003,51 @@ export type AnthropicCitationsConfig = {
31565
33003
  */
31566
33004
  enabled: boolean;
31567
33005
  };
33006
+ /**
33007
+ * Solid color or a gradient over the styled text box.
33008
+ */
33009
+ export type CutFill = string | {
33010
+ /**
33011
+ * Linear gradient; angle is in degrees and stop positions range from 0 to 1.
33012
+ */
33013
+ linear?: {
33014
+ /**
33015
+ * Gradient angle in degrees; 0 runs left to right.
33016
+ */
33017
+ angle?: number;
33018
+ /**
33019
+ * Gradient color stops; each position is a fraction from 0 to 1.
33020
+ */
33021
+ stops?: Array<{
33022
+ /**
33023
+ * Stop position as a fraction from 0 to 1.
33024
+ */
33025
+ at?: number;
33026
+ /**
33027
+ * Stop color in #RRGGBB or #RRGGBBAA notation.
33028
+ */
33029
+ color?: string;
33030
+ }>;
33031
+ };
33032
+ /**
33033
+ * Radial gradient with stop positions as fractions from 0 to 1.
33034
+ */
33035
+ radial?: {
33036
+ /**
33037
+ * Gradient color stops; each position is a fraction from 0 to 1.
33038
+ */
33039
+ stops?: Array<{
33040
+ /**
33041
+ * Stop position as a fraction from 0 to 1.
33042
+ */
33043
+ at?: number;
33044
+ /**
33045
+ * Stop color in #RRGGBB or #RRGGBBAA notation.
33046
+ */
33047
+ color?: string;
33048
+ }>;
33049
+ };
33050
+ };
31568
33051
  /**
31569
33052
  * Visual placement; coordinates are normalized canvas centers.
31570
33053
  */
@@ -31641,6 +33124,16 @@ export type CutCaptionWord = {
31641
33124
  */
31642
33125
  length: number;
31643
33126
  };
33127
+ export type MediaShotFlag = {
33128
+ /**
33129
+ * True when this visual characteristic is present.
33130
+ */
33131
+ readonly value: boolean;
33132
+ /**
33133
+ * Confidence in this true or false judgment, from 0 to 1.
33134
+ */
33135
+ readonly confidence: number;
33136
+ };
31644
33137
  export type PraxisSdkSseGetBrowserV1SessionsSessionIdStream = BrowserStreamMessage;
31645
33138
  /**
31646
33139
  * One decoded SSE event. The data field contains the decoded JSON payload, or a documented string sentinel. SSE comments are keepalives, not events. Optional id/event fields are absent when the server does not send them.
@@ -31936,6 +33429,28 @@ export type AutomationJsonValueWritable = null | string | number | boolean | Aut
31936
33429
  export type AutomationJsonObjectWritable = {
31937
33430
  [key: string]: AutomationJsonValueWritable;
31938
33431
  };
33432
+ export type KnowledgeNativeSearchPageWritable = {
33433
+ /**
33434
+ * Object discriminator; vector_store.search_results.page identifies a search result page.
33435
+ */
33436
+ object: 'vector_store.search_results.page';
33437
+ /**
33438
+ * The queries used for retrieval, one per input query; rewritten when rewrite_query is true, otherwise the input as sent.
33439
+ */
33440
+ search_query: Array<string>;
33441
+ /**
33442
+ * One result per matched chunk; the same file_id can occur more than once.
33443
+ */
33444
+ data: Array<KnowledgeNativeSearchResultWritable>;
33445
+ /**
33446
+ * True when filtered chunks exceed max_num_results; next_page remains null.
33447
+ */
33448
+ has_more: boolean;
33449
+ /**
33450
+ * Always null; no next search page.
33451
+ */
33452
+ next_page: null;
33453
+ };
31939
33454
  /**
31940
33455
  * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
31941
33456
  */
@@ -31943,7 +33458,7 @@ export type MediaLibraryWritable = {
31943
33458
  /**
31944
33459
  * Resolved model call IDs used for new uploads and reprocessing.
31945
33460
  */
31946
- models: MediaMediaModels;
33461
+ models: MediaMediaModelsWritable;
31947
33462
  /**
31948
33463
  * Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
31949
33464
  */
@@ -32138,7 +33653,7 @@ export type MediaAssetWritable = {
32138
33653
  */
32139
33654
  url: string;
32140
33655
  /**
32141
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
33656
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
32142
33657
  */
32143
33658
  secure_url: string;
32144
33659
  /**
@@ -32165,6 +33680,10 @@ export type MediaAssetWritable = {
32165
33680
  * Resource status; active identifies an asset that has not been deleted.
32166
33681
  */
32167
33682
  status: 'active';
33683
+ /**
33684
+ * 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.
33685
+ */
33686
+ has_alpha?: boolean;
32168
33687
  /**
32169
33688
  * 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.
32170
33689
  */
@@ -32221,6 +33740,40 @@ export type MediaAssetWritable = {
32221
33740
  };
32222
33741
  };
32223
33742
  };
33743
+ /**
33744
+ * Source details for the video-generation job that created this asset.
33745
+ */
33746
+ generation?: {
33747
+ /**
33748
+ * Job id that generated this asset.
33749
+ */
33750
+ job_id: MediaJobId;
33751
+ /**
33752
+ * Generation intent used to create the asset; v1 supports video.generate.
33753
+ */
33754
+ intent: string;
33755
+ /**
33756
+ * Text prompt submitted for the generation job.
33757
+ */
33758
+ prompt: string;
33759
+ /**
33760
+ * Router video-generation model that produced the asset.
33761
+ */
33762
+ model: string;
33763
+ };
33764
+ };
33765
+ /**
33766
+ * Understanding results in this page, ordered by creation time ascending.
33767
+ */
33768
+ export type MediaUnderstandingPageWritable = MediaPage & {
33769
+ /**
33770
+ * Understanding results in this page, ordered by creation time ascending.
33771
+ */
33772
+ data: Array<MediaUnderstandingWritable>;
33773
+ /**
33774
+ * Opaque token to pass as cursor to listUnderstandings; null means no further page.
33775
+ */
33776
+ next_cursor: string | null;
32224
33777
  };
32225
33778
  /**
32226
33779
  * Expression-search page with match counts, elapsed time and optional facet counts.
@@ -32315,6 +33868,75 @@ export type AgentManaged193Writable = {
32315
33868
  export type AgentManaged143Writable = {
32316
33869
  [key: string]: string;
32317
33870
  };
33871
+ export type KnowledgeNativeSearchResultWritable = {
33872
+ /**
33873
+ * Resource ID.
33874
+ */
33875
+ file_id: string;
33876
+ /**
33877
+ * Original source filename for the matched file.
33878
+ */
33879
+ filename: string;
33880
+ /**
33881
+ * Relevance ranking score for this chunk, clamped to the range 0 to 1; not a probability.
33882
+ */
33883
+ score: number;
33884
+ /**
33885
+ * Current file attributes used for filtering; null when unset.
33886
+ */
33887
+ attributes: KnowledgeAttributes | null;
33888
+ /**
33889
+ * Matched chunk text and its source coordinates; one chunk per native result.
33890
+ */
33891
+ content: Array<{
33892
+ /**
33893
+ * text identifies an extracted text chunk.
33894
+ */
33895
+ type: 'text';
33896
+ /**
33897
+ * Extracted text of the matched chunk, which may overlap neighboring chunks.
33898
+ */
33899
+ text: string;
33900
+ /**
33901
+ * Resource ID.
33902
+ */
33903
+ chunk_id?: string;
33904
+ /**
33905
+ * One-based source page containing the start of this chunk; null when no page mapping is available.
33906
+ */
33907
+ page?: number | null;
33908
+ /**
33909
+ * Start and end offsets in UTF-16 code units.
33910
+ */
33911
+ span?: [
33912
+ number,
33913
+ number
33914
+ ];
33915
+ }>;
33916
+ /**
33917
+ * Native search explanation, included only when praxis.explain is requested.
33918
+ */
33919
+ praxis?: {
33920
+ explain: KnowledgeSearchExplain;
33921
+ };
33922
+ };
33923
+ /**
33924
+ * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
33925
+ */
33926
+ export type MediaMediaModelsWritable = {
33927
+ /**
33928
+ * Model call ID for visual descriptions; the model must support image input.
33929
+ */
33930
+ vision: string;
33931
+ /**
33932
+ * Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
33933
+ */
33934
+ embedding: string;
33935
+ /**
33936
+ * 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.
33937
+ */
33938
+ transcription: string;
33939
+ };
32318
33940
  /**
32319
33941
  * Cloudinary-compatible resource. processing is present when the asset was uploaded with auto_tagging; otherwise it is omitted. Native Asset responses always include processing.
32320
33942
  */
@@ -32432,7 +34054,7 @@ export type MediaCloudinaryResourceWritable = {
32432
34054
  */
32433
34055
  url: string;
32434
34056
  /**
32435
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
34057
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
32436
34058
  */
32437
34059
  secure_url: string;
32438
34060
  /**
@@ -32455,7 +34077,7 @@ export type MediaChunkCompleteWritable = MediaCloudinaryResourceWritable & {
32455
34077
  done: true;
32456
34078
  };
32457
34079
  /**
32458
- * Per-task processing progress and its aggregate state for the asset.
34080
+ * 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.
32459
34081
  */
32460
34082
  export type MediaProcessingWritable = {
32461
34083
  state: MediaProcessingState;
@@ -32470,6 +34092,76 @@ export type MediaProcessingWritable = {
32470
34092
  */
32471
34093
  updated_at: MediaIsoTimestamp;
32472
34094
  };
34095
+ /**
34096
+ * An immutable understanding result for an asset version, including superseded history when requested.
34097
+ */
34098
+ export type MediaUnderstandingWritable = {
34099
+ /**
34100
+ * Generated identifier of this understanding result.
34101
+ */
34102
+ id: MediaUnderstandingId;
34103
+ /**
34104
+ * Identifier of the asset from which this result was produced.
34105
+ */
34106
+ asset_id: MediaAssetId;
34107
+ /**
34108
+ * Asset version processed to produce this result; compare with the asset’s current version.
34109
+ */
34110
+ asset_version: number;
34111
+ /**
34112
+ * 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.
34113
+ */
34114
+ kind: MediaUnderstandingKind;
34115
+ /**
34116
+ * Producer model identifier; a failure may use the configured model when no model response is available.
34117
+ */
34118
+ producer: string;
34119
+ /**
34120
+ * Version of the producer that generated this understanding result.
34121
+ */
34122
+ producer_version: string;
34123
+ /**
34124
+ * Source-media time range for a frame or transcript segment; null for results without a segment.
34125
+ */
34126
+ segment: MediaSegment | null;
34127
+ /**
34128
+ * Result status: ready contains completed output; failed records an error.
34129
+ */
34130
+ status: 'ready' | 'failed';
34131
+ /**
34132
+ * Text output, such as a caption, recognized text or transcript; null for structured-only or failed results.
34133
+ */
34134
+ content: string | null;
34135
+ /**
34136
+ * 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.
34137
+ */
34138
+ data: unknown | null;
34139
+ /**
34140
+ * Confidence value recorded by the producer; null when no confidence value is recorded.
34141
+ */
34142
+ confidence: number | null;
34143
+ /**
34144
+ * Failure code and message, or null for a successful result.
34145
+ */
34146
+ error: {
34147
+ /**
34148
+ * Failure code identifying why understanding could not complete.
34149
+ */
34150
+ code: string;
34151
+ /**
34152
+ * Human-readable explanation of the understanding failure.
34153
+ */
34154
+ message: string;
34155
+ } | null;
34156
+ /**
34157
+ * Whether a newer result or asset version has replaced this result. Excluded from listing unless include_superseded is true.
34158
+ */
34159
+ superseded: boolean;
34160
+ /**
34161
+ * Time this immutable result was recorded, in UTC.
34162
+ */
34163
+ created_at: MediaIsoTimestamp;
34164
+ };
32473
34165
  /**
32474
34166
  * A native asset returned by expression search; tags and context are included only when requested in with_field.
32475
34167
  */
@@ -32587,7 +34279,7 @@ export type MediaSearchAssetWritable = {
32587
34279
  */
32588
34280
  url: string;
32589
34281
  /**
32590
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
34282
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
32591
34283
  */
32592
34284
  secure_url: string;
32593
34285
  /**
@@ -32614,6 +34306,10 @@ export type MediaSearchAssetWritable = {
32614
34306
  * Resource status; active identifies an asset that has not been deleted.
32615
34307
  */
32616
34308
  status: 'active';
34309
+ /**
34310
+ * 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.
34311
+ */
34312
+ has_alpha?: boolean;
32617
34313
  /**
32618
34314
  * 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.
32619
34315
  */
@@ -32670,6 +34366,27 @@ export type MediaSearchAssetWritable = {
32670
34366
  };
32671
34367
  };
32672
34368
  };
34369
+ /**
34370
+ * Source details for the video-generation job that created this asset.
34371
+ */
34372
+ generation?: {
34373
+ /**
34374
+ * Job id that generated this asset.
34375
+ */
34376
+ job_id: MediaJobId;
34377
+ /**
34378
+ * Generation intent used to create the asset; v1 supports video.generate.
34379
+ */
34380
+ intent: string;
34381
+ /**
34382
+ * Text prompt submitted for the generation job.
34383
+ */
34384
+ prompt: string;
34385
+ /**
34386
+ * Router video-generation model that produced the asset.
34387
+ */
34388
+ model: string;
34389
+ };
32673
34390
  };
32674
34391
  /**
32675
34392
  * A matching asset with its ranking score and supporting matches.
@@ -32695,6 +34412,9 @@ export type MediaSemanticHitWritable = {
32695
34412
  export type AgentManaged34Writable = {
32696
34413
  [key: string]: unknown;
32697
34414
  };
34415
+ export type MediaTranscriptCorrectionWritable = {
34416
+ [key: string]: unknown;
34417
+ };
32698
34418
  /**
32699
34419
  * Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
32700
34420
  */
@@ -32723,6 +34443,26 @@ export type CutExportId = string;
32723
34443
  * Version identifier returned by its create or list operation; use the id, not a display name.
32724
34444
  */
32725
34445
  export type CutVersionId = string;
34446
+ /**
34447
+ * A type name from types.list, with its dots preserved — a display label is not accepted.
34448
+ */
34449
+ export type OntologyTypeName = string;
34450
+ /**
34451
+ * Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.
34452
+ */
34453
+ export type OntologyLimit = number;
34454
+ /**
34455
+ * Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
34456
+ */
34457
+ export type OntologyCursor = string;
34458
+ /**
34459
+ * Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted.
34460
+ */
34461
+ export type OntologyNodeId = string;
34462
+ /**
34463
+ * Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted.
34464
+ */
34465
+ export type OntologyRelationId = string;
32726
34466
  /**
32727
34467
  * Cursor to start the list from
32728
34468
  */
@@ -32912,7 +34652,7 @@ export type ApplyAgentVersionResponses = {
32912
34652
  */
32913
34653
  note: string | null;
32914
34654
  /**
32915
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
34655
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
32916
34656
  */
32917
34657
  bindings: Array<{
32918
34658
  /**
@@ -32943,7 +34683,7 @@ export type ApplyAgentVersionResponses = {
32943
34683
  /**
32944
34684
  * Service type. Opens the whole service to codemode; there is no per-resource id.
32945
34685
  */
32946
- type: 'search' | 'browser';
34686
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
32947
34687
  /**
32948
34688
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
32949
34689
  */
@@ -34129,7 +35869,7 @@ export type UnarchiveAgentResponses = {
34129
35869
  */
34130
35870
  note: string | null;
34131
35871
  /**
34132
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
35872
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
34133
35873
  */
34134
35874
  bindings: Array<{
34135
35875
  /**
@@ -34160,7 +35900,7 @@ export type UnarchiveAgentResponses = {
34160
35900
  /**
34161
35901
  * Service type. Opens the whole service to codemode; there is no per-resource id.
34162
35902
  */
34163
- type: 'search' | 'browser';
35903
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
34164
35904
  /**
34165
35905
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
34166
35906
  */
@@ -43267,6 +45007,42 @@ export type FileCancelUploadResponses = {
43267
45007
  200: OwnFilePraxisUpload;
43268
45008
  };
43269
45009
  export type FileCancelUploadResponse = FileCancelUploadResponses[keyof FileCancelUploadResponses];
45010
+ export type FileRetrieveUploadData = {
45011
+ body?: never;
45012
+ path: {
45013
+ /**
45014
+ * Upload identifier returned by create on this face; the upload belongs to your organization.
45015
+ */
45016
+ upload_id: string;
45017
+ };
45018
+ query?: never;
45019
+ url: '/file/v1/uploads/{upload_id}';
45020
+ };
45021
+ export type FileRetrieveUploadErrors = {
45022
+ /**
45023
+ * INVALID_PARAMS: correct the upload_id before retrying.
45024
+ */
45025
+ 400: unknown;
45026
+ /**
45027
+ * UNAUTHENTICATED: supply a valid organization API key or signed-in session.
45028
+ */
45029
+ 401: unknown;
45030
+ /**
45031
+ * UPLOAD_NOT_FOUND: the upload is missing or belongs to another organization; create a new upload and send its parts.
45032
+ */
45033
+ 404: unknown;
45034
+ /**
45035
+ * UPLOAD_INVALID_STATE: the upload was cancelled or expired; create a new upload and send its parts again.
45036
+ */
45037
+ 409: unknown;
45038
+ };
45039
+ export type FileRetrieveUploadResponses = {
45040
+ /**
45041
+ * The upload state plus part_size and the received_parts list; complete once every part is present.
45042
+ */
45043
+ 200: OwnFilePraxisUpload;
45044
+ };
45045
+ export type FileRetrieveUploadResponse = FileRetrieveUploadResponses[keyof FileRetrieveUploadResponses];
43270
45046
  export type FileCreateSignedUploadData = {
43271
45047
  body: OwnFileSignedUploadRequest;
43272
45048
  path?: never;
@@ -43297,7 +45073,7 @@ export type FileCreateSignedUploadResponse = FileCreateSignedUploadResponses[key
43297
45073
  export type FileCreateContentUrlData = {
43298
45074
  body?: {
43299
45075
  /**
43300
- * Download link lifetime in seconds, from 1 through 604800; omitted means 3600. This does not change the file's own expiry.
45076
+ * Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.
43301
45077
  */
43302
45078
  ttl_seconds?: number;
43303
45079
  };
@@ -44843,31 +46619,29 @@ export type CreateSystemoneResponse = CreateSystemoneResponses[keyof CreateSyste
44843
46619
  export type CreateAudioTranscriptionData = {
44844
46620
  body: {
44845
46621
  /**
44846
- * Transcription model id, for example `whisper-large-v3-turbo` or `qwen3-asr-flash`; list candidates with listModels?type=transcription. Router support (supported): Verified to take effect.
46622
+ * Model catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix.
44847
46623
  */
44848
46624
  model: string;
44849
46625
  /**
44850
- * Audio file to transcribe, uploaded as multipart/form-data. Router support (supported): Verified to take effect.
46626
+ * Audio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model.
44851
46627
  */
44852
46628
  file: Blob | File;
44853
46629
  /**
44854
- * Language of the audio as an ISO-639-1 code such as `en` or `zh`. Router support (partial): Both models accept ISO language codes. qwen3-asr-flash may translate output to that language; whisper-large-v3-turbo treats it as an input hint. Non-ISO names may return 502.
46630
+ * Source language code when known; omit to let the model detect the language.
44855
46631
  */
44856
46632
  language?: string;
44857
46633
  /**
44858
- * Text that primes the model with vocabulary or context. Router support (partial): Vocabulary hints work on whisper-large-v3-turbo only; qwen3-asr-flash returns 400.
46634
+ * Optional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model.
44859
46635
  */
44860
46636
  prompt?: string;
44861
46637
  /**
44862
- * Format of the response body. `json` and `text` are the commonly supported formats. Router support (partial): json/text work on both; verbose_json works only on whisper-large-v3-turbo. srt/vtt return 400.
46638
+ * Output format: json returns text in JSON; text returns plain text; verbose_json includes requested timestamps; diarized_json includes speaker-labelled segments when supported. Defaults to json.
44863
46639
  */
44864
- response_format?: 'json' | 'text' | 'verbose_json';
46640
+ response_format?: 'json' | 'text' | 'verbose_json' | 'diarized_json';
44865
46641
  /**
44866
- * Timestamp levels to include with `verbose_json`; only `segment` exists in this schema. Router support (partial): Only whisper-large-v3-turbo supports segment with verbose_json. word returns 400; qwen3-asr-flash does not support timestamps.
46642
+ * Timestamp levels to request as repeated multipart fields: word returns per-word times; segment returns segment times. Omit for the model default. Use verbose_json, or diarized_json on supporting models.
44867
46643
  */
44868
- 'timestamp_granularities[]'?: [
44869
- 'segment'
44870
- ];
46644
+ 'timestamp_granularities[]'?: Array<'word' | 'segment'>;
44871
46645
  /**
44872
46646
  * Both whisper-large-v3-turbo and qwen3-asr-flash return 400.
44873
46647
  */
@@ -44879,11 +46653,11 @@ export type CreateAudioTranscriptionData = {
44879
46653
  };
44880
46654
  export type CreateAudioTranscriptionErrors = {
44881
46655
  /**
44882
- * Unsupported or unrepresentable parameter.
46656
+ * A field
44883
46657
  */
44884
46658
  400: unknown;
44885
46659
  /**
44886
- * No eligible model route.
46660
+ * No provider route supports this request; select an available model and its declared transcription features.
44887
46661
  */
44888
46662
  503: unknown;
44889
46663
  };
@@ -44893,58 +46667,79 @@ export type CreateAudioTranscriptionResponses = {
44893
46667
  */
44894
46668
  200: {
44895
46669
  /**
44896
- * The transcribed text.
46670
+ * Recognized speech text in the original language.
44897
46671
  */
44898
46672
  text: string;
44899
46673
  /**
44900
- * Task performed; always `transcribe`.
46674
+ * transcribe identifies speech-to-text transcription.
44901
46675
  */
44902
46676
  task?: 'transcribe';
44903
46677
  /**
44904
- * Language of the audio as detected or as requested.
46678
+ * Detected or requested source language code.
44905
46679
  */
44906
46680
  language?: string;
44907
46681
  /**
44908
- * Duration of the audio in seconds.
46682
+ * Audio duration in seconds when provided by the model.
44909
46683
  */
44910
46684
  duration?: number;
44911
46685
  /**
44912
- * Segments with timestamps, returned with `verbose_json` on models that support it.
46686
+ * Time-aligned speech segments when returned by the selected model and response format.
44913
46687
  */
44914
46688
  segments?: Array<{
44915
46689
  /**
44916
- * Zero-based index of the segment.
46690
+ * Segment identifier within this transcription response.
44917
46691
  */
44918
46692
  id: number;
44919
46693
  /**
44920
- * Start time of the segment in seconds.
46694
+ * Inclusive start time in seconds from the beginning of the audio.
44921
46695
  */
44922
46696
  start: number;
44923
46697
  /**
44924
- * End time of the segment in seconds.
46698
+ * Exclusive end time in seconds from the beginning of the audio.
44925
46699
  */
44926
46700
  end: number;
44927
46701
  /**
44928
- * The transcribed text.
46702
+ * Recognized speech text in the original language.
44929
46703
  */
44930
46704
  text: string;
44931
46705
  /**
44932
- * Sampling temperature used for the segment.
46706
+ * Speaker label in diarized_json when supported; labels distinguish voices and are not verified identities.
46707
+ */
46708
+ speaker?: string;
46709
+ /**
46710
+ * Decoding temperature reported by the transcription model.
44933
46711
  */
44934
46712
  temperature?: number;
44935
46713
  /**
44936
- * Average log probability of the tokens of the segment; low values mean low confidence.
46714
+ * Average segment token log probability when provided.
44937
46715
  */
44938
46716
  avg_logprob?: number;
44939
46717
  /**
44940
- * Gzip compression ratio of the segment text; high values indicate repetitive output.
46718
+ * Text compression ratio reported for this segment.
44941
46719
  */
44942
46720
  compression_ratio?: number;
44943
46721
  /**
44944
- * Probability that the segment contains no speech.
46722
+ * Probability of no speech reported for this segment.
44945
46723
  */
44946
46724
  no_speech_prob?: number;
44947
46725
  }>;
46726
+ /**
46727
+ * Per-word source-audio timestamps when word granularity is requested and supported.
46728
+ */
46729
+ words?: Array<{
46730
+ /**
46731
+ * Recognized word text in its original language.
46732
+ */
46733
+ word: string;
46734
+ /**
46735
+ * Inclusive word start in seconds from the beginning of the audio.
46736
+ */
46737
+ start: number;
46738
+ /**
46739
+ * Exclusive word end in seconds from the beginning of the audio.
46740
+ */
46741
+ end: number;
46742
+ }>;
44948
46743
  };
44949
46744
  };
44950
46745
  export type CreateAudioTranscriptionResponse = CreateAudioTranscriptionResponses[keyof CreateAudioTranscriptionResponses];
@@ -50684,7 +52479,7 @@ export type AgentsListResponses = {
50684
52479
  */
50685
52480
  note: string | null;
50686
52481
  /**
50687
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
52482
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
50688
52483
  */
50689
52484
  bindings: Array<{
50690
52485
  /**
@@ -50715,7 +52510,7 @@ export type AgentsListResponses = {
50715
52510
  /**
50716
52511
  * Service type. Opens the whole service to codemode; there is no per-resource id.
50717
52512
  */
50718
- type: 'search' | 'browser';
52513
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
50719
52514
  /**
50720
52515
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
50721
52516
  */
@@ -51223,7 +53018,7 @@ export type AgentsCreateData = {
51223
53018
  */
51224
53019
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
51225
53020
  /**
51226
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
53021
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
51227
53022
  */
51228
53023
  bindings?: Array<{
51229
53024
  /**
@@ -51254,7 +53049,7 @@ export type AgentsCreateData = {
51254
53049
  /**
51255
53050
  * Service type. Opens the whole service to codemode; there is no per-resource id.
51256
53051
  */
51257
- type: 'search' | 'browser';
53052
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
51258
53053
  /**
51259
53054
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
51260
53055
  */
@@ -51824,7 +53619,7 @@ export type AgentsCreateResponses = {
51824
53619
  */
51825
53620
  note: string | null;
51826
53621
  /**
51827
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
53622
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
51828
53623
  */
51829
53624
  bindings: Array<{
51830
53625
  /**
@@ -51855,7 +53650,7 @@ export type AgentsCreateResponses = {
51855
53650
  /**
51856
53651
  * Service type. Opens the whole service to codemode; there is no per-resource id.
51857
53652
  */
51858
- type: 'search' | 'browser';
53653
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
51859
53654
  /**
51860
53655
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
51861
53656
  */
@@ -52452,7 +54247,7 @@ export type AgentsRetrieveResponses = {
52452
54247
  */
52453
54248
  note: string | null;
52454
54249
  /**
52455
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
54250
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
52456
54251
  */
52457
54252
  bindings: Array<{
52458
54253
  /**
@@ -52483,7 +54278,7 @@ export type AgentsRetrieveResponses = {
52483
54278
  /**
52484
54279
  * Service type. Opens the whole service to codemode; there is no per-resource id.
52485
54280
  */
52486
- type: 'search' | 'browser';
54281
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
52487
54282
  /**
52488
54283
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
52489
54284
  */
@@ -53031,7 +54826,7 @@ export type AgentsUpdateData = {
53031
54826
  /**
53032
54827
  * Service type. Opens the whole service to codemode; there is no per-resource id.
53033
54828
  */
53034
- type: 'search' | 'browser';
54829
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
53035
54830
  /**
53036
54831
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
53037
54832
  */
@@ -53614,7 +55409,7 @@ export type AgentsUpdateResponses = {
53614
55409
  */
53615
55410
  note: string | null;
53616
55411
  /**
53617
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
55412
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
53618
55413
  */
53619
55414
  bindings: Array<{
53620
55415
  /**
@@ -53645,7 +55440,7 @@ export type AgentsUpdateResponses = {
53645
55440
  /**
53646
55441
  * Service type. Opens the whole service to codemode; there is no per-resource id.
53647
55442
  */
53648
- type: 'search' | 'browser';
55443
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
53649
55444
  /**
53650
55445
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
53651
55446
  */
@@ -54228,7 +56023,7 @@ export type AgentsArchiveResponses = {
54228
56023
  */
54229
56024
  note: string | null;
54230
56025
  /**
54231
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
56026
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
54232
56027
  */
54233
56028
  bindings: Array<{
54234
56029
  /**
@@ -54259,7 +56054,7 @@ export type AgentsArchiveResponses = {
54259
56054
  /**
54260
56055
  * Service type. Opens the whole service to codemode; there is no per-resource id.
54261
56056
  */
54262
- type: 'search' | 'browser';
56057
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
54263
56058
  /**
54264
56059
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
54265
56060
  */
@@ -54860,7 +56655,7 @@ export type AgentsVersionsListResponses = {
54860
56655
  */
54861
56656
  note: string | null;
54862
56657
  /**
54863
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
56658
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
54864
56659
  */
54865
56660
  bindings: Array<{
54866
56661
  /**
@@ -54891,7 +56686,7 @@ export type AgentsVersionsListResponses = {
54891
56686
  /**
54892
56687
  * Service type. Opens the whole service to codemode; there is no per-resource id.
54893
56688
  */
54894
- type: 'search' | 'browser';
56689
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
54895
56690
  /**
54896
56691
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
54897
56692
  */
@@ -68652,7 +70447,7 @@ export type CutExecuteData = {
68652
70447
  };
68653
70448
  export type CutExecuteErrors = {
68654
70449
  /**
68655
- * SCRIPT_ERROR, SCRIPT_LIMIT or OPS_REJECTED means the script failed and its writes rolled back; correct the source using error.details.edit_id and edits when provided. EDIT_EXPIRED means the saved source is older than ten minutes; resubmit corrected script source.
70450
+ * SCRIPT_ERROR, SCRIPT_LIMIT, OPS_REJECTED or INVALID_CAPTION_FILE means the script failed and its writes rolled back; correct the source using error.details.edit_id and edits when provided. EDIT_EXPIRED means the saved source is older than ten minutes; resubmit corrected script source.
68656
70451
  */
68657
70452
  400: CutCutError;
68658
70453
  /**
@@ -68817,7 +70612,7 @@ export type CutListFramesData = {
68817
70612
  */
68818
70613
  at: string;
68819
70614
  /**
68820
- * Positive image size multiplier; 0.5 renders at half the project dimensions.
70615
+ * Image size multiplier, default 0.25, greater than zero and at most 0.5. Larger values return INVALID_PARAMS; pixel-area limits may reduce actual dimensions, reported as width and height.
68821
70616
  */
68822
70617
  scale?: number;
68823
70618
  /**
@@ -69159,7 +70954,7 @@ export type CutListExportsResponses = {
69159
70954
  export type CutListExportsResponse = CutListExportsResponses[keyof CutListExportsResponses];
69160
70955
  export type CutCreateExportData = {
69161
70956
  /**
69162
- * Start an export from a project revision into a bound library.
70957
+ * Start an export from a project revision into a bound library. Output assets carry the cut-export tag and project_id, export_id and duration (seconds) context. Unavailable source metadata rejects creation with MEDIA_UNAVAILABLE and source clip and asset identities before rendering starts. Sources follow current asset versions; the current version is frozen at creation.
69163
70958
  */
69164
70959
  body: CutExportInput;
69165
70960
  path: {
@@ -70971,7 +72766,7 @@ export type KnowledgeListFilesResponses = {
70971
72766
  };
70972
72767
  export type KnowledgeListFilesResponse = KnowledgeListFilesResponses[keyof KnowledgeListFilesResponses];
70973
72768
  export type KnowledgeAttachFileData = {
70974
- body: KnowledgeAttachFile;
72769
+ body: KnowledgeNativeAttachFile;
70975
72770
  path: {
70976
72771
  /**
70977
72772
  * Resource ID.
@@ -71272,7 +73067,7 @@ export type KnowledgeRetrieveFileContentResponses = {
71272
73067
  };
71273
73068
  export type KnowledgeRetrieveFileContentResponse = KnowledgeRetrieveFileContentResponses[keyof KnowledgeRetrieveFileContentResponses];
71274
73069
  export type KnowledgeCreateFileBatchData = {
71275
- body: KnowledgeCreateBatch;
73070
+ body: KnowledgeNativeCreateBatch;
71276
73071
  path: {
71277
73072
  /**
71278
73073
  * Resource ID.
@@ -71960,6 +73755,10 @@ export type MediaListLibrariesErrors = {
71960
73755
  * Request failed; see the error code reference.
71961
73756
  */
71962
73757
  415: MediaMediaError;
73758
+ /**
73759
+ * Request failed; see the error code reference.
73760
+ */
73761
+ 422: MediaMediaError;
71963
73762
  /**
71964
73763
  * Request failed; see the error code reference.
71965
73764
  */
@@ -72051,6 +73850,10 @@ export type MediaCreateLibraryErrors = {
72051
73850
  * Request failed; see the error code reference.
72052
73851
  */
72053
73852
  415: MediaMediaError;
73853
+ /**
73854
+ * Request failed; see the error code reference.
73855
+ */
73856
+ 422: MediaMediaError;
72054
73857
  /**
72055
73858
  * Request failed; see the error code reference.
72056
73859
  */
@@ -72076,6 +73879,84 @@ export type MediaCreateLibraryResponses = {
72076
73879
  200: MediaLibrary;
72077
73880
  };
72078
73881
  export type MediaCreateLibraryResponse = MediaCreateLibraryResponses[keyof MediaCreateLibraryResponses];
73882
+ export type MediaCreateFrameUrlsData = {
73883
+ body: {
73884
+ /**
73885
+ * 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.
73886
+ */
73887
+ at_micros: Array<number>;
73888
+ /**
73889
+ * 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.
73890
+ */
73891
+ width?: 160 | 320 | 640;
73892
+ };
73893
+ path: {
73894
+ /**
73895
+ * Library identifier returned by library creation or listing; must be accessible to the current credential.
73896
+ */
73897
+ library_id: string;
73898
+ /**
73899
+ * Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps.
73900
+ */
73901
+ asset_id: string;
73902
+ };
73903
+ query?: never;
73904
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/frames';
73905
+ };
73906
+ export type MediaCreateFrameUrlsErrors = {
73907
+ /**
73908
+ * INVALID_PARAMS: supply 1–20 nonnegative integer timestamps below video duration and width 160, 320 or 640; images and audio cannot produce video frames.
73909
+ */
73910
+ 400: MediaMediaError;
73911
+ /**
73912
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73913
+ */
73914
+ 403: MediaMediaError;
73915
+ /**
73916
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
73917
+ */
73918
+ 404: MediaMediaError;
73919
+ /**
73920
+ * Request failed; see the error code reference.
73921
+ */
73922
+ 409: MediaMediaError;
73923
+ /**
73924
+ * The file exceeds an input limit; provide a smaller source file.
73925
+ */
73926
+ 413: MediaMediaError;
73927
+ /**
73928
+ * This media format is unsupported; provide a supported format.
73929
+ */
73930
+ 415: MediaMediaError;
73931
+ /**
73932
+ * Request failed; see the error code reference.
73933
+ */
73934
+ 422: MediaMediaError;
73935
+ /**
73936
+ * A rate limit was reached; wait before retrying.
73937
+ */
73938
+ 429: MediaMediaError;
73939
+ /**
73940
+ * The requested operation is unsupported; choose a supported method.
73941
+ */
73942
+ 501: MediaMediaError;
73943
+ /**
73944
+ * Request failed; see the error code reference.
73945
+ */
73946
+ 502: MediaMediaError;
73947
+ /**
73948
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
73949
+ */
73950
+ 503: MediaMediaError;
73951
+ };
73952
+ export type MediaCreateFrameUrlsError = MediaCreateFrameUrlsErrors[keyof MediaCreateFrameUrlsErrors];
73953
+ export type MediaCreateFrameUrlsResponses = {
73954
+ /**
73955
+ * Successful response.
73956
+ */
73957
+ 200: MediaFrameUrls;
73958
+ };
73959
+ export type MediaCreateFrameUrlsResponse = MediaCreateFrameUrlsResponses[keyof MediaCreateFrameUrlsResponses];
72079
73960
  export type MediaDeleteLibraryData = {
72080
73961
  body?: never;
72081
73962
  path: {
@@ -72112,6 +73993,10 @@ export type MediaDeleteLibraryErrors = {
72112
73993
  * Request failed; see the error code reference.
72113
73994
  */
72114
73995
  415: MediaMediaError;
73996
+ /**
73997
+ * Request failed; see the error code reference.
73998
+ */
73999
+ 422: MediaMediaError;
72115
74000
  /**
72116
74001
  * Request failed; see the error code reference.
72117
74002
  */
@@ -72173,6 +74058,10 @@ export type MediaGetLibraryErrors = {
72173
74058
  * Request failed; see the error code reference.
72174
74059
  */
72175
74060
  415: MediaMediaError;
74061
+ /**
74062
+ * Request failed; see the error code reference.
74063
+ */
74064
+ 422: MediaMediaError;
72176
74065
  /**
72177
74066
  * Request failed; see the error code reference.
72178
74067
  */
@@ -72203,6 +74092,10 @@ export type MediaUpdateLibraryData = {
72203
74092
  * Partial update of an active media library.
72204
74093
  */
72205
74094
  body: {
74095
+ /**
74096
+ * Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results.
74097
+ */
74098
+ hotwords?: Array<string>;
72206
74099
  /**
72207
74100
  * Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets.
72208
74101
  */
@@ -72269,6 +74162,10 @@ export type MediaUpdateLibraryErrors = {
72269
74162
  * Request failed; see the error code reference.
72270
74163
  */
72271
74164
  415: MediaMediaError;
74165
+ /**
74166
+ * Request failed; see the error code reference.
74167
+ */
74168
+ 422: MediaMediaError;
72272
74169
  /**
72273
74170
  * Request failed; see the error code reference.
72274
74171
  */
@@ -72330,6 +74227,10 @@ export type MediaRestoreLibraryErrors = {
72330
74227
  * Request failed; see the error code reference.
72331
74228
  */
72332
74229
  415: MediaMediaError;
74230
+ /**
74231
+ * Request failed; see the error code reference.
74232
+ */
74233
+ 422: MediaMediaError;
72333
74234
  /**
72334
74235
  * Request failed; see the error code reference.
72335
74236
  */
@@ -72391,6 +74292,10 @@ export type MediaPurgeLibraryErrors = {
72391
74292
  * Request failed; see the error code reference.
72392
74293
  */
72393
74294
  415: MediaMediaError;
74295
+ /**
74296
+ * Request failed; see the error code reference.
74297
+ */
74298
+ 422: MediaMediaError;
72394
74299
  /**
72395
74300
  * Request failed; see the error code reference.
72396
74301
  */
@@ -72469,6 +74374,10 @@ export type MediaListAssetsErrors = {
72469
74374
  * Request failed; see the error code reference.
72470
74375
  */
72471
74376
  415: MediaMediaError;
74377
+ /**
74378
+ * Request failed; see the error code reference.
74379
+ */
74380
+ 422: MediaMediaError;
72472
74381
  /**
72473
74382
  * Request failed; see the error code reference.
72474
74383
  */
@@ -72516,7 +74425,7 @@ export type MediaUploadAssetData = {
72516
74425
  */
72517
74426
  display_name?: string;
72518
74427
  /**
72519
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
74428
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
72520
74429
  */
72521
74430
  asset_folder?: string;
72522
74431
  /**
@@ -72558,7 +74467,7 @@ export type MediaUploadAssetData = {
72558
74467
  */
72559
74468
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
72560
74469
  /**
72561
- * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. Defaults to upload.
74470
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. New assets default to authenticated. Omitting type on overwrite preserves the current type. Unlike Cloudinary, public delivery requires explicit type=upload.
72562
74471
  */
72563
74472
  type?: MediaDeliveryType;
72564
74473
  };
@@ -72606,6 +74515,10 @@ export type MediaUploadAssetErrors = {
72606
74515
  * Request failed; see the error code reference.
72607
74516
  */
72608
74517
  415: MediaMediaError;
74518
+ /**
74519
+ * Request failed; see the error code reference.
74520
+ */
74521
+ 422: MediaMediaError;
72609
74522
  /**
72610
74523
  * Request failed; see the error code reference.
72611
74524
  */
@@ -72637,7 +74550,7 @@ export type MediaImportAssetData = {
72637
74550
  */
72638
74551
  body: {
72639
74552
  /**
72640
- * File ID to copy into this library instead of file bytes. This independent copy defaults to public delivery; set type=authenticated for private delivery. Deleting the source File does not delete this asset.
74553
+ * File ID to copy into this library instead of file bytes. This independent copy defaults to organization-private delivery (type=authenticated); explicitly set type=upload for public delivery. Deleting the source File does not delete this asset.
72641
74554
  */
72642
74555
  file_id: string;
72643
74556
  /**
@@ -72653,7 +74566,7 @@ export type MediaImportAssetData = {
72653
74566
  */
72654
74567
  display_name?: string;
72655
74568
  /**
72656
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
74569
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
72657
74570
  */
72658
74571
  asset_folder?: string;
72659
74572
  /**
@@ -72695,7 +74608,7 @@ export type MediaImportAssetData = {
72695
74608
  */
72696
74609
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
72697
74610
  /**
72698
- * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. Defaults to upload.
74611
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. New assets default to authenticated. Omitting type on overwrite preserves the current type. Unlike Cloudinary, public delivery requires explicit type=upload.
72699
74612
  */
72700
74613
  type?: MediaDeliveryType;
72701
74614
  };
@@ -72733,6 +74646,10 @@ export type MediaImportAssetErrors = {
72733
74646
  * Request failed; see the error code reference.
72734
74647
  */
72735
74648
  415: MediaMediaError;
74649
+ /**
74650
+ * Request failed; see the error code reference.
74651
+ */
74652
+ 422: MediaMediaError;
72736
74653
  /**
72737
74654
  * Request failed; see the error code reference.
72738
74655
  */
@@ -72798,6 +74715,10 @@ export type MediaDeleteAssetErrors = {
72798
74715
  * Request failed; see the error code reference.
72799
74716
  */
72800
74717
  415: MediaMediaError;
74718
+ /**
74719
+ * Request failed; see the error code reference.
74720
+ */
74721
+ 422: MediaMediaError;
72801
74722
  /**
72802
74723
  * Request failed; see the error code reference.
72803
74724
  */
@@ -72863,6 +74784,10 @@ export type MediaGetAssetErrors = {
72863
74784
  * Request failed; see the error code reference.
72864
74785
  */
72865
74786
  415: MediaMediaError;
74787
+ /**
74788
+ * Request failed; see the error code reference.
74789
+ */
74790
+ 422: MediaMediaError;
72866
74791
  /**
72867
74792
  * Request failed; see the error code reference.
72868
74793
  */
@@ -72898,7 +74823,7 @@ export type MediaUpdateAssetData = {
72898
74823
  */
72899
74824
  display_name?: string;
72900
74825
  /**
72901
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
74826
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
72902
74827
  */
72903
74828
  asset_folder?: string;
72904
74829
  /**
@@ -72950,6 +74875,10 @@ export type MediaUpdateAssetErrors = {
72950
74875
  * Request failed; see the error code reference.
72951
74876
  */
72952
74877
  415: MediaMediaError;
74878
+ /**
74879
+ * Request failed; see the error code reference.
74880
+ */
74881
+ 422: MediaMediaError;
72953
74882
  /**
72954
74883
  * Request failed; see the error code reference.
72955
74884
  */
@@ -72981,7 +74910,7 @@ export type MediaReprocessAssetData = {
72981
74910
  */
72982
74911
  body: {
72983
74912
  /**
72984
- * Processing tasks to rerun. Omit to retry failed tasks only; explicit kinds rerun applicable ready, failed or unsupported tasks. Pending and running tasks are unchanged; an empty array does nothing.
74913
+ * Processing tasks to rerun. Omit to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable ready or failed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Pending and running tasks are unchanged; an empty array does nothing.
72985
74914
  */
72986
74915
  kinds?: Array<MediaProcessingKind>;
72987
74916
  };
@@ -73023,6 +74952,10 @@ export type MediaReprocessAssetErrors = {
73023
74952
  * Request failed; see the error code reference.
73024
74953
  */
73025
74954
  415: MediaMediaError;
74955
+ /**
74956
+ * Request failed; see the error code reference.
74957
+ */
74958
+ 422: MediaMediaError;
73026
74959
  /**
73027
74960
  * Request failed; see the error code reference.
73028
74961
  */
@@ -73066,9 +74999,9 @@ export type MediaListUnderstandingsData = {
73066
74999
  */
73067
75000
  include_superseded?: boolean;
73068
75001
  /**
73069
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment.
75002
+ * Return one output kind: caption is a visual description, tags are generated labels, ocr is visible text, transcript is speech, frame is a video shot, overview is a video summary, audio is sampled audio understanding, and embedding reports a failed embedding step.
73070
75003
  */
73071
- kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
75004
+ kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
73072
75005
  /**
73073
75006
  * Cursor from the previous next_cursor.
73074
75007
  */
@@ -73105,6 +75038,10 @@ export type MediaListUnderstandingsErrors = {
73105
75038
  * Request failed; see the error code reference.
73106
75039
  */
73107
75040
  415: MediaMediaError;
75041
+ /**
75042
+ * Request failed; see the error code reference.
75043
+ */
75044
+ 422: MediaMediaError;
73108
75045
  /**
73109
75046
  * Request failed; see the error code reference.
73110
75047
  */
@@ -73136,7 +75073,7 @@ export type MediaExpressionSearchData = {
73136
75073
  */
73137
75074
  body: {
73138
75075
  /**
73139
- * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context.
75076
+ * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters. has_music:true AND audio_genre:jazz AND audio_mood:calm selects current-version audio profiles with music and matching model labels; has_music:false applies only to sampled ranges, not the entire source. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial.
73140
75077
  */
73141
75078
  expression?: string;
73142
75079
  /**
@@ -73196,6 +75133,10 @@ export type MediaExpressionSearchErrors = {
73196
75133
  * Request failed; see the error code reference.
73197
75134
  */
73198
75135
  415: MediaMediaError;
75136
+ /**
75137
+ * Request failed; see the error code reference.
75138
+ */
75139
+ 422: MediaMediaError;
73199
75140
  /**
73200
75141
  * Request failed; see the error code reference.
73201
75142
  */
@@ -73283,6 +75224,10 @@ export type MediaVisualSearchErrors = {
73283
75224
  * Request failed; see the error code reference.
73284
75225
  */
73285
75226
  415: MediaMediaError;
75227
+ /**
75228
+ * Request failed; see the error code reference.
75229
+ */
75230
+ 422: MediaMediaError;
73286
75231
  /**
73287
75232
  * Request failed; see the error code reference.
73288
75233
  */
@@ -73364,6 +75309,10 @@ export type MediaSemanticSearchErrors = {
73364
75309
  * Request failed; see the error code reference.
73365
75310
  */
73366
75311
  415: MediaMediaError;
75312
+ /**
75313
+ * Request failed; see the error code reference.
75314
+ */
75315
+ 422: MediaMediaError;
73367
75316
  /**
73368
75317
  * Request failed; see the error code reference.
73369
75318
  */
@@ -73445,6 +75394,10 @@ export type MediaSearchErrors = {
73445
75394
  * Request failed; see the error code reference.
73446
75395
  */
73447
75396
  415: MediaMediaError;
75397
+ /**
75398
+ * Request failed; see the error code reference.
75399
+ */
75400
+ 422: MediaMediaError;
73448
75401
  /**
73449
75402
  * Request failed; see the error code reference.
73450
75403
  */
@@ -73511,6 +75464,10 @@ export type MediaListFoldersErrors = {
73511
75464
  * Request failed; see the error code reference.
73512
75465
  */
73513
75466
  415: MediaMediaError;
75467
+ /**
75468
+ * Request failed; see the error code reference.
75469
+ */
75470
+ 422: MediaMediaError;
73514
75471
  /**
73515
75472
  * Request failed; see the error code reference.
73516
75473
  */
@@ -73545,6 +75502,10 @@ export type MediaCreateBatchData = {
73545
75502
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
73546
75503
  */
73547
75504
  selector: MediaBatchSelector;
75505
+ /**
75506
+ * Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
75507
+ */
75508
+ reason?: string;
73548
75509
  };
73549
75510
  path: {
73550
75511
  /**
@@ -73580,6 +75541,10 @@ export type MediaCreateBatchErrors = {
73580
75541
  * Request failed; see the error code reference.
73581
75542
  */
73582
75543
  415: MediaMediaError;
75544
+ /**
75545
+ * Request failed; see the error code reference.
75546
+ */
75547
+ 422: MediaMediaError;
73583
75548
  /**
73584
75549
  * Request failed; see the error code reference.
73585
75550
  */
@@ -73645,6 +75610,10 @@ export type MediaGetBatchErrors = {
73645
75610
  * Request failed; see the error code reference.
73646
75611
  */
73647
75612
  415: MediaMediaError;
75613
+ /**
75614
+ * Request failed; see the error code reference.
75615
+ */
75616
+ 422: MediaMediaError;
73648
75617
  /**
73649
75618
  * Request failed; see the error code reference.
73650
75619
  */
@@ -73679,6 +75648,10 @@ export type MediaBatchAssetsData = {
73679
75648
  * Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
73680
75649
  */
73681
75650
  selector: MediaBatchSelector;
75651
+ /**
75652
+ * Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
75653
+ */
75654
+ reason?: string;
73682
75655
  };
73683
75656
  path: {
73684
75657
  /**
@@ -73714,6 +75687,10 @@ export type MediaBatchAssetsErrors = {
73714
75687
  * Request failed; see the error code reference.
73715
75688
  */
73716
75689
  415: MediaMediaError;
75690
+ /**
75691
+ * Request failed; see the error code reference.
75692
+ */
75693
+ 422: MediaMediaError;
73717
75694
  /**
73718
75695
  * Request failed; see the error code reference.
73719
75696
  */
@@ -73747,7 +75724,7 @@ export type MediaGetJobData = {
73747
75724
  */
73748
75725
  library_id: string;
73749
75726
  /**
73750
- * Batch identifier returned by createBatch or batchAssets; resolved within this library.
75727
+ * Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library.
73751
75728
  */
73752
75729
  job_id: string;
73753
75730
  };
@@ -73756,15 +75733,15 @@ export type MediaGetJobData = {
73756
75733
  };
73757
75734
  export type MediaGetJobErrors = {
73758
75735
  /**
73759
- * Request failed; see the error code reference.
75736
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
73760
75737
  */
73761
75738
  400: MediaMediaError;
73762
75739
  /**
73763
- * Request failed; see the error code reference.
75740
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
73764
75741
  */
73765
75742
  403: MediaMediaError;
73766
75743
  /**
73767
- * Request failed; see the error code reference.
75744
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
73768
75745
  */
73769
75746
  404: MediaMediaError;
73770
75747
  /**
@@ -73772,19 +75749,23 @@ export type MediaGetJobErrors = {
73772
75749
  */
73773
75750
  409: MediaMediaError;
73774
75751
  /**
73775
- * Request failed; see the error code reference.
75752
+ * The file exceeds an input limit; provide a smaller source file.
73776
75753
  */
73777
75754
  413: MediaMediaError;
73778
75755
  /**
73779
- * Request failed; see the error code reference.
75756
+ * This media format is unsupported; provide a supported format.
73780
75757
  */
73781
75758
  415: MediaMediaError;
73782
75759
  /**
73783
75760
  * Request failed; see the error code reference.
73784
75761
  */
75762
+ 422: MediaMediaError;
75763
+ /**
75764
+ * A rate limit was reached; wait before retrying.
75765
+ */
73785
75766
  429: MediaMediaError;
73786
75767
  /**
73787
- * Request failed; see the error code reference.
75768
+ * The requested operation is unsupported; choose a supported method.
73788
75769
  */
73789
75770
  501: MediaMediaError;
73790
75771
  /**
@@ -73792,7 +75773,7 @@ export type MediaGetJobErrors = {
73792
75773
  */
73793
75774
  502: MediaMediaError;
73794
75775
  /**
73795
- * Request failed; see the error code reference.
75776
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
73796
75777
  */
73797
75778
  503: MediaMediaError;
73798
75779
  };
@@ -73857,6 +75838,10 @@ export type MediaListEventsErrors = {
73857
75838
  * Request failed; see the error code reference.
73858
75839
  */
73859
75840
  415: MediaMediaError;
75841
+ /**
75842
+ * Request failed; see the error code reference.
75843
+ */
75844
+ 422: MediaMediaError;
73860
75845
  /**
73861
75846
  * Request failed; see the error code reference.
73862
75847
  */
@@ -73892,7 +75877,7 @@ export type MediaCreateDeliveryTokenData = {
73892
75877
  */
73893
75878
  acl?: string;
73894
75879
  /**
73895
- * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 3600.
75880
+ * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900.
73896
75881
  */
73897
75882
  expires_in?: number;
73898
75883
  };
@@ -73930,6 +75915,10 @@ export type MediaCreateDeliveryTokenErrors = {
73930
75915
  * Request failed; see the error code reference.
73931
75916
  */
73932
75917
  415: MediaMediaError;
75918
+ /**
75919
+ * Request failed; see the error code reference.
75920
+ */
75921
+ 422: MediaMediaError;
73933
75922
  /**
73934
75923
  * Request failed; see the error code reference.
73935
75924
  */
@@ -73955,6 +75944,1212 @@ export type MediaCreateDeliveryTokenResponses = {
73955
75944
  200: MediaDeliveryToken;
73956
75945
  };
73957
75946
  export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
75947
+ export type MediaUnderstandingFailureSummaryData = {
75948
+ body?: never;
75949
+ path: {
75950
+ /**
75951
+ * Library ID returned by creation.
75952
+ */
75953
+ library_id: string;
75954
+ };
75955
+ query?: never;
75956
+ url: '/media/v1/libraries/{library_id}/understandings/failure_summary';
75957
+ };
75958
+ export type MediaUnderstandingFailureSummaryErrors = {
75959
+ /**
75960
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75961
+ */
75962
+ 400: MediaMediaError;
75963
+ /**
75964
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75965
+ */
75966
+ 403: MediaMediaError;
75967
+ /**
75968
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75969
+ */
75970
+ 404: MediaMediaError;
75971
+ /**
75972
+ * Request failed; see the error code reference.
75973
+ */
75974
+ 409: MediaMediaError;
75975
+ /**
75976
+ * The file exceeds an input limit; provide a smaller source file.
75977
+ */
75978
+ 413: MediaMediaError;
75979
+ /**
75980
+ * This media format is unsupported; provide a supported format.
75981
+ */
75982
+ 415: MediaMediaError;
75983
+ /**
75984
+ * Request failed; see the error code reference.
75985
+ */
75986
+ 422: MediaMediaError;
75987
+ /**
75988
+ * A rate limit was reached; wait before retrying.
75989
+ */
75990
+ 429: MediaMediaError;
75991
+ /**
75992
+ * The requested operation is unsupported; choose a supported method.
75993
+ */
75994
+ 501: MediaMediaError;
75995
+ /**
75996
+ * Request failed; see the error code reference.
75997
+ */
75998
+ 502: MediaMediaError;
75999
+ /**
76000
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
76001
+ */
76002
+ 503: MediaMediaError;
76003
+ };
76004
+ export type MediaUnderstandingFailureSummaryError = MediaUnderstandingFailureSummaryErrors[keyof MediaUnderstandingFailureSummaryErrors];
76005
+ export type MediaUnderstandingFailureSummaryResponses = {
76006
+ /**
76007
+ * Successful response.
76008
+ */
76009
+ 200: MediaFailureSummary;
76010
+ };
76011
+ export type MediaUnderstandingFailureSummaryResponse = MediaUnderstandingFailureSummaryResponses[keyof MediaUnderstandingFailureSummaryResponses];
76012
+ export type MediaListUnderstandingsByLibraryData = {
76013
+ body?: never;
76014
+ path: {
76015
+ /**
76016
+ * Library ID returned by creation.
76017
+ */
76018
+ library_id: string;
76019
+ };
76020
+ query?: {
76021
+ /**
76022
+ * Folder path including all descendants; omitted or empty selects the entire library.
76023
+ */
76024
+ folder?: string;
76025
+ /**
76026
+ * Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.
76027
+ */
76028
+ kinds?: string;
76029
+ /**
76030
+ * Cursor from the previous next_cursor.
76031
+ */
76032
+ cursor?: string;
76033
+ /**
76034
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
76035
+ */
76036
+ limit?: number;
76037
+ };
76038
+ url: '/media/v1/libraries/{library_id}/understandings';
76039
+ };
76040
+ export type MediaListUnderstandingsByLibraryErrors = {
76041
+ /**
76042
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
76043
+ */
76044
+ 400: MediaMediaError;
76045
+ /**
76046
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
76047
+ */
76048
+ 403: MediaMediaError;
76049
+ /**
76050
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
76051
+ */
76052
+ 404: MediaMediaError;
76053
+ /**
76054
+ * Request failed; see the error code reference.
76055
+ */
76056
+ 409: MediaMediaError;
76057
+ /**
76058
+ * The file exceeds an input limit; provide a smaller source file.
76059
+ */
76060
+ 413: MediaMediaError;
76061
+ /**
76062
+ * This media format is unsupported; provide a supported format.
76063
+ */
76064
+ 415: MediaMediaError;
76065
+ /**
76066
+ * Request failed; see the error code reference.
76067
+ */
76068
+ 422: MediaMediaError;
76069
+ /**
76070
+ * A rate limit was reached; wait before retrying.
76071
+ */
76072
+ 429: MediaMediaError;
76073
+ /**
76074
+ * The requested operation is unsupported; choose a supported method.
76075
+ */
76076
+ 501: MediaMediaError;
76077
+ /**
76078
+ * Request failed; see the error code reference.
76079
+ */
76080
+ 502: MediaMediaError;
76081
+ /**
76082
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
76083
+ */
76084
+ 503: MediaMediaError;
76085
+ };
76086
+ export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
76087
+ export type MediaListUnderstandingsByLibraryResponses = {
76088
+ /**
76089
+ * Successful response.
76090
+ */
76091
+ 200: MediaUnderstandingPage;
76092
+ };
76093
+ export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
76094
+ export type MediaCreateGenerationData = {
76095
+ /**
76096
+ * Text-to-video request. Generation is charged per second; unsaved candidates expire after 7 days.
76097
+ */
76098
+ body: {
76099
+ /**
76100
+ * Generation operation; v1 accepts only video.generate text-to-video requests.
76101
+ */
76102
+ intent: 'video.generate';
76103
+ /**
76104
+ * Text prompt describing the video to generate.
76105
+ */
76106
+ prompt: string;
76107
+ /**
76108
+ * Number of videos to generate; defaults to 1 and must be from 1 to 4.
76109
+ */
76110
+ count?: number;
76111
+ /**
76112
+ * Requested video duration in seconds; Router validates the model-specific supported durations.
76113
+ */
76114
+ duration_seconds?: number;
76115
+ /**
76116
+ * Requested output aspect ratio; defaults to 16:9 and Router validates model support.
76117
+ */
76118
+ aspect_ratio?: string;
76119
+ /**
76120
+ * Router model with video_generation capability; defaults to wan2.7-t2v.
76121
+ */
76122
+ model?: string;
76123
+ /**
76124
+ * candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically.
76125
+ */
76126
+ save?: 'candidate' | 'library';
76127
+ /**
76128
+ * 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.
76129
+ */
76130
+ asset_folder?: string;
76131
+ /**
76132
+ * Tags applied when an output becomes a library asset.
76133
+ */
76134
+ tags?: Array<string>;
76135
+ /**
76136
+ * Understanding behavior when a candidate is saved as an asset; defaults to auto.
76137
+ */
76138
+ understanding?: 'auto' | 'skip';
76139
+ /**
76140
+ * Not supported in v1; omit this field. Only text-to-video is currently available.
76141
+ */
76142
+ references?: Array<unknown>;
76143
+ };
76144
+ headers?: {
76145
+ /**
76146
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected.
76147
+ */
76148
+ 'Idempotency-Key'?: string;
76149
+ };
76150
+ path: {
76151
+ /**
76152
+ * Library ID returned by creation.
76153
+ */
76154
+ library_id: string;
76155
+ };
76156
+ query?: never;
76157
+ url: '/media/v1/libraries/{library_id}/generations';
76158
+ };
76159
+ export type MediaCreateGenerationErrors = {
76160
+ /**
76161
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
76162
+ */
76163
+ 400: MediaMediaError;
76164
+ /**
76165
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
76166
+ */
76167
+ 403: MediaMediaError;
76168
+ /**
76169
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
76170
+ */
76171
+ 404: MediaMediaError;
76172
+ /**
76173
+ * Request failed; see the error code reference.
76174
+ */
76175
+ 409: MediaMediaError;
76176
+ /**
76177
+ * The file exceeds an input limit; provide a smaller source file.
76178
+ */
76179
+ 413: MediaMediaError;
76180
+ /**
76181
+ * This media format is unsupported; provide a supported format.
76182
+ */
76183
+ 415: MediaMediaError;
76184
+ /**
76185
+ * Request failed; see the error code reference.
76186
+ */
76187
+ 422: MediaMediaError;
76188
+ /**
76189
+ * This library already has five queued or running generation jobs; wait until one finishes and retry.
76190
+ */
76191
+ 429: MediaMediaError;
76192
+ /**
76193
+ * The requested operation is unsupported; choose a supported method.
76194
+ */
76195
+ 501: MediaMediaError;
76196
+ /**
76197
+ * Request failed; see the error code reference.
76198
+ */
76199
+ 502: MediaMediaError;
76200
+ /**
76201
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
76202
+ */
76203
+ 503: MediaMediaError;
76204
+ };
76205
+ export type MediaCreateGenerationError = MediaCreateGenerationErrors[keyof MediaCreateGenerationErrors];
76206
+ export type MediaCreateGenerationResponses = {
76207
+ /**
76208
+ * Successful response.
76209
+ */
76210
+ 202: MediaJob;
76211
+ };
76212
+ export type MediaCreateGenerationResponse = MediaCreateGenerationResponses[keyof MediaCreateGenerationResponses];
76213
+ export type MediaListJobsData = {
76214
+ body?: never;
76215
+ path: {
76216
+ /**
76217
+ * Library ID returned by creation.
76218
+ */
76219
+ library_id: string;
76220
+ };
76221
+ query?: {
76222
+ /**
76223
+ * Filter jobs by their current status.
76224
+ */
76225
+ status?: MediaJobStatus;
76226
+ /**
76227
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
76228
+ */
76229
+ limit?: number;
76230
+ /**
76231
+ * Job id from the previous page’s next_cursor; omit for the first page.
76232
+ */
76233
+ cursor?: MediaJobId;
76234
+ };
76235
+ url: '/media/v1/libraries/{library_id}/jobs';
76236
+ };
76237
+ export type MediaListJobsErrors = {
76238
+ /**
76239
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
76240
+ */
76241
+ 400: MediaMediaError;
76242
+ /**
76243
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
76244
+ */
76245
+ 403: MediaMediaError;
76246
+ /**
76247
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
76248
+ */
76249
+ 404: MediaMediaError;
76250
+ /**
76251
+ * Request failed; see the error code reference.
76252
+ */
76253
+ 409: MediaMediaError;
76254
+ /**
76255
+ * The file exceeds an input limit; provide a smaller source file.
76256
+ */
76257
+ 413: MediaMediaError;
76258
+ /**
76259
+ * This media format is unsupported; provide a supported format.
76260
+ */
76261
+ 415: MediaMediaError;
76262
+ /**
76263
+ * Request failed; see the error code reference.
76264
+ */
76265
+ 422: MediaMediaError;
76266
+ /**
76267
+ * A rate limit was reached; wait before retrying.
76268
+ */
76269
+ 429: MediaMediaError;
76270
+ /**
76271
+ * The requested operation is unsupported; choose a supported method.
76272
+ */
76273
+ 501: MediaMediaError;
76274
+ /**
76275
+ * Request failed; see the error code reference.
76276
+ */
76277
+ 502: MediaMediaError;
76278
+ /**
76279
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
76280
+ */
76281
+ 503: MediaMediaError;
76282
+ };
76283
+ export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
76284
+ export type MediaListJobsResponses = {
76285
+ /**
76286
+ * Successful response.
76287
+ */
76288
+ 200: MediaJobPage;
76289
+ };
76290
+ export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
76291
+ export type MediaCancelJobData = {
76292
+ body?: never;
76293
+ path: {
76294
+ /**
76295
+ * Library ID returned by creation.
76296
+ */
76297
+ library_id: string;
76298
+ /**
76299
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
76300
+ */
76301
+ job_id: string;
76302
+ };
76303
+ query?: never;
76304
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
76305
+ };
76306
+ export type MediaCancelJobErrors = {
76307
+ /**
76308
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
76309
+ */
76310
+ 400: MediaMediaError;
76311
+ /**
76312
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
76313
+ */
76314
+ 403: MediaMediaError;
76315
+ /**
76316
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
76317
+ */
76318
+ 404: MediaMediaError;
76319
+ /**
76320
+ * Request failed; see the error code reference.
76321
+ */
76322
+ 409: MediaMediaError;
76323
+ /**
76324
+ * The file exceeds an input limit; provide a smaller source file.
76325
+ */
76326
+ 413: MediaMediaError;
76327
+ /**
76328
+ * This media format is unsupported; provide a supported format.
76329
+ */
76330
+ 415: MediaMediaError;
76331
+ /**
76332
+ * Request failed; see the error code reference.
76333
+ */
76334
+ 422: MediaMediaError;
76335
+ /**
76336
+ * A rate limit was reached; wait before retrying.
76337
+ */
76338
+ 429: MediaMediaError;
76339
+ /**
76340
+ * The requested operation is unsupported; choose a supported method.
76341
+ */
76342
+ 501: MediaMediaError;
76343
+ /**
76344
+ * Request failed; see the error code reference.
76345
+ */
76346
+ 502: MediaMediaError;
76347
+ /**
76348
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
76349
+ */
76350
+ 503: MediaMediaError;
76351
+ };
76352
+ export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
76353
+ export type MediaCancelJobResponses = {
76354
+ /**
76355
+ * Successful response.
76356
+ */
76357
+ 200: MediaJob;
76358
+ };
76359
+ export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
76360
+ export type MediaSaveGenerationOutputData = {
76361
+ /**
76362
+ * Optional asset metadata and understanding behavior for a successful candidate.
76363
+ */
76364
+ body?: {
76365
+ /**
76366
+ * Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent.
76367
+ */
76368
+ public_id?: string;
76369
+ /**
76370
+ * 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.
76371
+ */
76372
+ asset_folder?: string;
76373
+ /**
76374
+ * Tags to apply to the saved asset.
76375
+ */
76376
+ tags?: Array<string>;
76377
+ /**
76378
+ * Understanding behavior for the saved asset; defaults to auto.
76379
+ */
76380
+ understanding?: 'auto' | 'skip';
76381
+ };
76382
+ path: {
76383
+ /**
76384
+ * Library ID returned by creation.
76385
+ */
76386
+ library_id: string;
76387
+ /**
76388
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
76389
+ */
76390
+ job_id: string;
76391
+ /**
76392
+ * Zero-based position of the candidate in the Job outputs array.
76393
+ */
76394
+ index: string;
76395
+ };
76396
+ query?: never;
76397
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save';
76398
+ };
76399
+ export type MediaSaveGenerationOutputErrors = {
76400
+ /**
76401
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
76402
+ */
76403
+ 400: MediaMediaError;
76404
+ /**
76405
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
76406
+ */
76407
+ 403: MediaMediaError;
76408
+ /**
76409
+ * The job or output is inaccessible, missing, or the candidate has expired; verify library ownership and create a new job for an expired candidate.
76410
+ */
76411
+ 404: MediaMediaError;
76412
+ /**
76413
+ * Request failed; see the error code reference.
76414
+ */
76415
+ 409: MediaMediaError;
76416
+ /**
76417
+ * The file exceeds an input limit; provide a smaller source file.
76418
+ */
76419
+ 413: MediaMediaError;
76420
+ /**
76421
+ * This media format is unsupported; provide a supported format.
76422
+ */
76423
+ 415: MediaMediaError;
76424
+ /**
76425
+ * Request failed; see the error code reference.
76426
+ */
76427
+ 422: MediaMediaError;
76428
+ /**
76429
+ * A rate limit was reached; wait before retrying.
76430
+ */
76431
+ 429: MediaMediaError;
76432
+ /**
76433
+ * The requested operation is unsupported; choose a supported method.
76434
+ */
76435
+ 501: MediaMediaError;
76436
+ /**
76437
+ * Request failed; see the error code reference.
76438
+ */
76439
+ 502: MediaMediaError;
76440
+ /**
76441
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
76442
+ */
76443
+ 503: MediaMediaError;
76444
+ };
76445
+ export type MediaSaveGenerationOutputError = MediaSaveGenerationOutputErrors[keyof MediaSaveGenerationOutputErrors];
76446
+ export type MediaSaveGenerationOutputResponses = {
76447
+ /**
76448
+ * Successful response.
76449
+ */
76450
+ 200: MediaAsset;
76451
+ };
76452
+ export type MediaSaveGenerationOutputResponse = MediaSaveGenerationOutputResponses[keyof MediaSaveGenerationOutputResponses];
76453
+ export type MediaGetGenerationCapabilitiesData = {
76454
+ body?: never;
76455
+ path?: never;
76456
+ query?: never;
76457
+ url: '/media/v1/generation/capabilities';
76458
+ };
76459
+ export type MediaGetGenerationCapabilitiesErrors = {
76460
+ /**
76461
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
76462
+ */
76463
+ 400: MediaMediaError;
76464
+ /**
76465
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
76466
+ */
76467
+ 403: MediaMediaError;
76468
+ /**
76469
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
76470
+ */
76471
+ 404: MediaMediaError;
76472
+ /**
76473
+ * Request failed; see the error code reference.
76474
+ */
76475
+ 409: MediaMediaError;
76476
+ /**
76477
+ * The file exceeds an input limit; provide a smaller source file.
76478
+ */
76479
+ 413: MediaMediaError;
76480
+ /**
76481
+ * This media format is unsupported; provide a supported format.
76482
+ */
76483
+ 415: MediaMediaError;
76484
+ /**
76485
+ * Request failed; see the error code reference.
76486
+ */
76487
+ 422: MediaMediaError;
76488
+ /**
76489
+ * A rate limit was reached; wait before retrying.
76490
+ */
76491
+ 429: MediaMediaError;
76492
+ /**
76493
+ * The requested operation is unsupported; choose a supported method.
76494
+ */
76495
+ 501: MediaMediaError;
76496
+ /**
76497
+ * Request failed; see the error code reference.
76498
+ */
76499
+ 502: MediaMediaError;
76500
+ /**
76501
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
76502
+ */
76503
+ 503: MediaMediaError;
76504
+ };
76505
+ export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
76506
+ export type MediaGetGenerationCapabilitiesResponses = {
76507
+ /**
76508
+ * Successful response.
76509
+ */
76510
+ 200: MediaGenerationCapabilities;
76511
+ };
76512
+ export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
76513
+ export type OntologyListTypesData = {
76514
+ body?: never;
76515
+ path?: never;
76516
+ query?: never;
76517
+ url: '/ontology/v1/types';
76518
+ };
76519
+ export type OntologyListTypesErrors = {
76520
+ /**
76521
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76522
+ */
76523
+ 401: OntologyOntologyError;
76524
+ /**
76525
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76526
+ */
76527
+ 403: OntologyOntologyError;
76528
+ /**
76529
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76530
+ */
76531
+ 500: OntologyOntologyError;
76532
+ };
76533
+ export type OntologyListTypesError = OntologyListTypesErrors[keyof OntologyListTypesErrors];
76534
+ export type OntologyListTypesResponses = {
76535
+ /**
76536
+ * Every registration in force for this organization, in registration order.
76537
+ */
76538
+ 200: OntologyTypeRegistrationPage;
76539
+ };
76540
+ export type OntologyListTypesResponse = OntologyListTypesResponses[keyof OntologyListTypesResponses];
76541
+ export type OntologyRegisterTypeData = {
76542
+ /**
76543
+ * The registration to add; the same shape one registrant ships as its ontology.types.json.
76544
+ */
76545
+ body: OntologyTypeRegistration;
76546
+ path?: never;
76547
+ query?: never;
76548
+ url: '/ontology/v1/types';
76549
+ };
76550
+ export type OntologyRegisterTypeErrors = {
76551
+ /**
76552
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76553
+ */
76554
+ 400: OntologyOntologyError;
76555
+ /**
76556
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76557
+ */
76558
+ 401: OntologyOntologyError;
76559
+ /**
76560
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76561
+ */
76562
+ 403: OntologyOntologyError;
76563
+ /**
76564
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76565
+ */
76566
+ 500: OntologyOntologyError;
76567
+ /**
76568
+ * NOT_IMPLEMENTED means runtime registration is not open; the deploy gate registers types. Nothing was written.
76569
+ */
76570
+ 501: OntologyOntologyError;
76571
+ };
76572
+ export type OntologyRegisterTypeError = OntologyRegisterTypeErrors[keyof OntologyRegisterTypeErrors];
76573
+ export type OntologyRetrieveTypeData = {
76574
+ body?: never;
76575
+ path: {
76576
+ /**
76577
+ * A type name from types.list, with its dots preserved — a display label is not accepted.
76578
+ */
76579
+ name: string;
76580
+ };
76581
+ query?: never;
76582
+ url: '/ontology/v1/types/{name}';
76583
+ };
76584
+ export type OntologyRetrieveTypeErrors = {
76585
+ /**
76586
+ * ONTOLOGY_TYPE_UNKNOWN means the named type is not registered for this organization; call types.list for the names in force before writing records of it.
76587
+ */
76588
+ 400: OntologyOntologyError;
76589
+ /**
76590
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76591
+ */
76592
+ 401: OntologyOntologyError;
76593
+ /**
76594
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76595
+ */
76596
+ 403: OntologyOntologyError;
76597
+ /**
76598
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76599
+ */
76600
+ 500: OntologyOntologyError;
76601
+ };
76602
+ export type OntologyRetrieveTypeError = OntologyRetrieveTypeErrors[keyof OntologyRetrieveTypeErrors];
76603
+ export type OntologyRetrieveTypeResponses = {
76604
+ /**
76605
+ * The registration that carries this type, with its kind and definition.
76606
+ */
76607
+ 200: OntologyTypeLookup;
76608
+ };
76609
+ export type OntologyRetrieveTypeResponse = OntologyRetrieveTypeResponses[keyof OntologyRetrieveTypeResponses];
76610
+ export type OntologyListNodesData = {
76611
+ body?: never;
76612
+ path?: never;
76613
+ query?: {
76614
+ /**
76615
+ * Repeat to filter to any of several registered node type names, for example type=file&type=ticket; omit to list every type.
76616
+ */
76617
+ type?: Array<string>;
76618
+ /**
76619
+ * Free text matched against node names, aliases and descriptions; omit to list without a text filter.
76620
+ */
76621
+ q?: string;
76622
+ /**
76623
+ * Filter to nodes owned by this member id, or omit to list nodes of every owner; organization-wide nodes carry no owner.
76624
+ */
76625
+ owner?: string;
76626
+ /**
76627
+ * ISO 8601 timestamp; return the graph as it was then, so a node recorded later is absent. Omit to read current state.
76628
+ */
76629
+ as_of?: string;
76630
+ /**
76631
+ * Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.
76632
+ */
76633
+ limit?: number;
76634
+ /**
76635
+ * Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
76636
+ */
76637
+ cursor?: string;
76638
+ };
76639
+ url: '/ontology/v1/nodes';
76640
+ };
76641
+ export type OntologyListNodesErrors = {
76642
+ /**
76643
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76644
+ */
76645
+ 400: OntologyOntologyError;
76646
+ /**
76647
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76648
+ */
76649
+ 401: OntologyOntologyError;
76650
+ /**
76651
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76652
+ */
76653
+ 403: OntologyOntologyError;
76654
+ /**
76655
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76656
+ */
76657
+ 500: OntologyOntologyError;
76658
+ };
76659
+ export type OntologyListNodesError = OntologyListNodesErrors[keyof OntologyListNodesErrors];
76660
+ export type OntologyListNodesResponses = {
76661
+ /**
76662
+ * One page of nodes, ordered by node id, with next_cursor null on the last page.
76663
+ */
76664
+ 200: OntologyNodePage;
76665
+ };
76666
+ export type OntologyListNodesResponse = OntologyListNodesResponses[keyof OntologyListNodesResponses];
76667
+ export type OntologyCreateNodeData = {
76668
+ /**
76669
+ * The entity to record; name, type and the optional identity of the mirrored record.
76670
+ */
76671
+ body: OntologyCreateNodeInput;
76672
+ headers: {
76673
+ /**
76674
+ * Unique key for this write, at most 255 characters; resend the same key to replay the first result instead of writing twice. A missing or blank key is refused 400.
76675
+ */
76676
+ 'Idempotency-Key': string;
76677
+ };
76678
+ path?: never;
76679
+ query?: never;
76680
+ url: '/ontology/v1/nodes';
76681
+ };
76682
+ export type OntologyCreateNodeErrors = {
76683
+ /**
76684
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76685
+ */
76686
+ 400: OntologyOntologyError;
76687
+ /**
76688
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76689
+ */
76690
+ 401: OntologyOntologyError;
76691
+ /**
76692
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76693
+ */
76694
+ 403: OntologyOntologyError;
76695
+ /**
76696
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
76697
+ */
76698
+ 409: OntologyOntologyError;
76699
+ /**
76700
+ * ONTOLOGY_CAPACITY means this organization's graph is at its size budget; free space by invalidating facts that are no longer true before retrying.
76701
+ */
76702
+ 429: OntologyOntologyError;
76703
+ /**
76704
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76705
+ */
76706
+ 500: OntologyOntologyError;
76707
+ };
76708
+ export type OntologyCreateNodeError = OntologyCreateNodeErrors[keyof OntologyCreateNodeErrors];
76709
+ export type OntologyCreateNodeResponses = {
76710
+ /**
76711
+ * The recorded node, with the id later reads, updates and relations use.
76712
+ */
76713
+ 201: OntologyNode;
76714
+ };
76715
+ export type OntologyCreateNodeResponse = OntologyCreateNodeResponses[keyof OntologyCreateNodeResponses];
76716
+ export type OntologyRetrieveNodeData = {
76717
+ body?: never;
76718
+ path: {
76719
+ /**
76720
+ * Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted.
76721
+ */
76722
+ node_id: string;
76723
+ };
76724
+ query?: {
76725
+ /**
76726
+ * Set to relations to include the node's incoming and outgoing relations in the same response; omit for the node alone.
76727
+ */
76728
+ expand?: 'relations';
76729
+ /**
76730
+ * ISO 8601 timestamp; read the node and its relations as they were then, including relations invalidated since. Omit to read current state.
76731
+ */
76732
+ as_of?: string;
76733
+ };
76734
+ url: '/ontology/v1/nodes/{node_id}';
76735
+ };
76736
+ export type OntologyRetrieveNodeErrors = {
76737
+ /**
76738
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76739
+ */
76740
+ 400: OntologyOntologyError;
76741
+ /**
76742
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76743
+ */
76744
+ 401: OntologyOntologyError;
76745
+ /**
76746
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76747
+ */
76748
+ 403: OntologyOntologyError;
76749
+ /**
76750
+ * ONTOLOGY_NODE_NOT_FOUND means the node does not exist in this organization — never created, or owned by another organization; list nodes to find an id you can read.
76751
+ */
76752
+ 404: OntologyOntologyError;
76753
+ /**
76754
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76755
+ */
76756
+ 500: OntologyOntologyError;
76757
+ };
76758
+ export type OntologyRetrieveNodeError = OntologyRetrieveNodeErrors[keyof OntologyRetrieveNodeErrors];
76759
+ export type OntologyRetrieveNodeResponses = {
76760
+ /**
76761
+ * The node, plus a relations array when expand=relations was requested.
76762
+ */
76763
+ 200: OntologyNodeWithRelations;
76764
+ };
76765
+ export type OntologyRetrieveNodeResponse = OntologyRetrieveNodeResponses[keyof OntologyRetrieveNodeResponses];
76766
+ export type OntologyUpdateNodeData = {
76767
+ /**
76768
+ * The fields to change; at least one of name, aliases or description.
76769
+ */
76770
+ body: OntologyUpdateNodeInput;
76771
+ path: {
76772
+ /**
76773
+ * Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted.
76774
+ */
76775
+ node_id: string;
76776
+ };
76777
+ query?: never;
76778
+ url: '/ontology/v1/nodes/{node_id}';
76779
+ };
76780
+ export type OntologyUpdateNodeErrors = {
76781
+ /**
76782
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76783
+ */
76784
+ 400: OntologyOntologyError;
76785
+ /**
76786
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76787
+ */
76788
+ 401: OntologyOntologyError;
76789
+ /**
76790
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76791
+ */
76792
+ 403: OntologyOntologyError;
76793
+ /**
76794
+ * ONTOLOGY_NODE_NOT_FOUND means the node does not exist in this organization — never created, or owned by another organization; list nodes to find an id you can read.
76795
+ */
76796
+ 404: OntologyOntologyError;
76797
+ /**
76798
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76799
+ */
76800
+ 500: OntologyOntologyError;
76801
+ };
76802
+ export type OntologyUpdateNodeError = OntologyUpdateNodeErrors[keyof OntologyUpdateNodeErrors];
76803
+ export type OntologyUpdateNodeResponses = {
76804
+ /**
76805
+ * The node after the update, with its new updated_at.
76806
+ */
76807
+ 200: OntologyNode;
76808
+ };
76809
+ export type OntologyUpdateNodeResponse = OntologyUpdateNodeResponses[keyof OntologyUpdateNodeResponses];
76810
+ export type OntologyMergeNodeData = {
76811
+ /**
76812
+ * The node the merged one folds into.
76813
+ */
76814
+ body: OntologyMergeNodeInput;
76815
+ headers: {
76816
+ /**
76817
+ * Unique key for this merge, at most 255 characters; resend the same key to replay the first result instead of merging twice.
76818
+ */
76819
+ 'Idempotency-Key': string;
76820
+ };
76821
+ path: {
76822
+ /**
76823
+ * Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted.
76824
+ */
76825
+ node_id: string;
76826
+ };
76827
+ query?: never;
76828
+ url: '/ontology/v1/nodes/{node_id}/merge';
76829
+ };
76830
+ export type OntologyMergeNodeErrors = {
76831
+ /**
76832
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76833
+ */
76834
+ 400: OntologyOntologyError;
76835
+ /**
76836
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76837
+ */
76838
+ 401: OntologyOntologyError;
76839
+ /**
76840
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76841
+ */
76842
+ 403: OntologyOntologyError;
76843
+ /**
76844
+ * ONTOLOGY_NODE_NOT_FOUND means the node does not exist in this organization — never created, or owned by another organization; list nodes to find an id you can read.
76845
+ */
76846
+ 404: OntologyOntologyError;
76847
+ /**
76848
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
76849
+ */
76850
+ 409: OntologyOntologyError;
76851
+ /**
76852
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76853
+ */
76854
+ 500: OntologyOntologyError;
76855
+ };
76856
+ export type OntologyMergeNodeError = OntologyMergeNodeErrors[keyof OntologyMergeNodeErrors];
76857
+ export type OntologyMergeNodeResponses = {
76858
+ /**
76859
+ * The surviving node that the merged id now resolves to.
76860
+ */
76861
+ 200: OntologyNode;
76862
+ };
76863
+ export type OntologyMergeNodeResponse = OntologyMergeNodeResponses[keyof OntologyMergeNodeResponses];
76864
+ export type OntologyListRelationsData = {
76865
+ body?: never;
76866
+ path?: never;
76867
+ query?: {
76868
+ /**
76869
+ * A node id from nodes.list or nodes.create; returns the relations this node takes part in, narrowed by direction. Omit to list relations between every node.
76870
+ */
76871
+ node?: string;
76872
+ /**
76873
+ * Repeat to filter to any of several registered relation type names, for example type=references&type=serves; omit to list every type.
76874
+ */
76875
+ type?: Array<string>;
76876
+ /**
76877
+ * Which side of node to follow; out returns relations the node is the source of, in returns those it is the target of. Only meaningful together with node.
76878
+ */
76879
+ direction?: 'out' | 'in' | 'both';
76880
+ /**
76881
+ * ISO 8601 timestamp; read relations as they were then, so one recorded or invalidated later is judged by that time. Omit to read current state.
76882
+ */
76883
+ as_of?: string;
76884
+ /**
76885
+ * Set true to include relations whose invalid_at has passed, which is how a relation that stopped being true stays readable. Omit or false for currently valid relations only.
76886
+ */
76887
+ include_invalid?: boolean;
76888
+ /**
76889
+ * Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.
76890
+ */
76891
+ limit?: number;
76892
+ /**
76893
+ * Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
76894
+ */
76895
+ cursor?: string;
76896
+ };
76897
+ url: '/ontology/v1/relations';
76898
+ };
76899
+ export type OntologyListRelationsErrors = {
76900
+ /**
76901
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76902
+ */
76903
+ 400: OntologyOntologyError;
76904
+ /**
76905
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76906
+ */
76907
+ 401: OntologyOntologyError;
76908
+ /**
76909
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76910
+ */
76911
+ 403: OntologyOntologyError;
76912
+ /**
76913
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76914
+ */
76915
+ 500: OntologyOntologyError;
76916
+ };
76917
+ export type OntologyListRelationsError = OntologyListRelationsErrors[keyof OntologyListRelationsErrors];
76918
+ export type OntologyListRelationsResponses = {
76919
+ /**
76920
+ * One page of relations, ordered by relation id, with next_cursor null on the last page.
76921
+ */
76922
+ 200: OntologyRelationPage;
76923
+ };
76924
+ export type OntologyListRelationsResponse = OntologyListRelationsResponses[keyof OntologyListRelationsResponses];
76925
+ export type OntologyCreateRelationData = {
76926
+ /**
76927
+ * The fact to record, between two node ids from this organization's graph.
76928
+ */
76929
+ body: OntologyCreateRelationInput;
76930
+ headers: {
76931
+ /**
76932
+ * Unique key for this write, at most 255 characters; resend the same key to replay the first result instead of writing twice. A missing or blank key is refused 400.
76933
+ */
76934
+ 'Idempotency-Key': string;
76935
+ };
76936
+ path?: never;
76937
+ query?: never;
76938
+ url: '/ontology/v1/relations';
76939
+ };
76940
+ export type OntologyCreateRelationErrors = {
76941
+ /**
76942
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76943
+ */
76944
+ 400: OntologyOntologyError;
76945
+ /**
76946
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76947
+ */
76948
+ 401: OntologyOntologyError;
76949
+ /**
76950
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76951
+ */
76952
+ 403: OntologyOntologyError;
76953
+ /**
76954
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
76955
+ */
76956
+ 409: OntologyOntologyError;
76957
+ /**
76958
+ * ONTOLOGY_CAPACITY means this organization's graph is at its size budget; free space by invalidating facts that are no longer true before retrying.
76959
+ */
76960
+ 429: OntologyOntologyError;
76961
+ /**
76962
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76963
+ */
76964
+ 500: OntologyOntologyError;
76965
+ };
76966
+ export type OntologyCreateRelationError = OntologyCreateRelationErrors[keyof OntologyCreateRelationErrors];
76967
+ export type OntologyCreateRelationResponses = {
76968
+ /**
76969
+ * The recorded relation, with the id later reads and invalidation use.
76970
+ */
76971
+ 201: OntologyRelation;
76972
+ };
76973
+ export type OntologyCreateRelationResponse = OntologyCreateRelationResponses[keyof OntologyCreateRelationResponses];
76974
+ export type OntologyRetrieveRelationData = {
76975
+ body?: never;
76976
+ path: {
76977
+ /**
76978
+ * Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted.
76979
+ */
76980
+ relation_id: string;
76981
+ };
76982
+ query?: never;
76983
+ url: '/ontology/v1/relations/{relation_id}';
76984
+ };
76985
+ export type OntologyRetrieveRelationErrors = {
76986
+ /**
76987
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76988
+ */
76989
+ 400: OntologyOntologyError;
76990
+ /**
76991
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76992
+ */
76993
+ 401: OntologyOntologyError;
76994
+ /**
76995
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76996
+ */
76997
+ 403: OntologyOntologyError;
76998
+ /**
76999
+ * ONTOLOGY_EDGE_NOT_FOUND means the relation does not exist in this organization, or its content belongs to another member; list relations for the ids you may read.
77000
+ */
77001
+ 404: OntologyOntologyError;
77002
+ /**
77003
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
77004
+ */
77005
+ 500: OntologyOntologyError;
77006
+ };
77007
+ export type OntologyRetrieveRelationError = OntologyRetrieveRelationErrors[keyof OntologyRetrieveRelationErrors];
77008
+ export type OntologyRetrieveRelationResponses = {
77009
+ /**
77010
+ * The relation, including its fact, endpoints and both clocks.
77011
+ */
77012
+ 200: OntologyRelation;
77013
+ };
77014
+ export type OntologyRetrieveRelationResponse = OntologyRetrieveRelationResponses[keyof OntologyRetrieveRelationResponses];
77015
+ export type OntologyInvalidateRelationData = {
77016
+ /**
77017
+ * When the fact stopped being true, and optionally what replaced it and why.
77018
+ */
77019
+ body: OntologyInvalidateRelationInput;
77020
+ headers: {
77021
+ /**
77022
+ * Unique key for this invalidation, at most 255 characters; resend the same key to replay the first result instead of invalidating twice.
77023
+ */
77024
+ 'Idempotency-Key': string;
77025
+ };
77026
+ path: {
77027
+ /**
77028
+ * Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted.
77029
+ */
77030
+ relation_id: string;
77031
+ };
77032
+ query?: never;
77033
+ url: '/ontology/v1/relations/{relation_id}/invalidate';
77034
+ };
77035
+ export type OntologyInvalidateRelationErrors = {
77036
+ /**
77037
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
77038
+ */
77039
+ 400: OntologyOntologyError;
77040
+ /**
77041
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
77042
+ */
77043
+ 401: OntologyOntologyError;
77044
+ /**
77045
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
77046
+ */
77047
+ 403: OntologyOntologyError;
77048
+ /**
77049
+ * ONTOLOGY_EDGE_NOT_FOUND means the relation does not exist in this organization, or its content belongs to another member; list relations for the ids you may read.
77050
+ */
77051
+ 404: OntologyOntologyError;
77052
+ /**
77053
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
77054
+ */
77055
+ 409: OntologyOntologyError;
77056
+ /**
77057
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
77058
+ */
77059
+ 500: OntologyOntologyError;
77060
+ };
77061
+ export type OntologyInvalidateRelationError = OntologyInvalidateRelationErrors[keyof OntologyInvalidateRelationErrors];
77062
+ export type OntologyInvalidateRelationResponses = {
77063
+ /**
77064
+ * The relation after invalidation, with invalid_at set to the given time.
77065
+ */
77066
+ 200: OntologyRelation;
77067
+ };
77068
+ export type OntologyInvalidateRelationResponse = OntologyInvalidateRelationResponses[keyof OntologyInvalidateRelationResponses];
77069
+ export type OntologyApplyChangesetData = {
77070
+ /**
77071
+ * The operations to apply together, with the world time they describe.
77072
+ */
77073
+ body: OntologyChangesetInput;
77074
+ headers: {
77075
+ /**
77076
+ * Unique key for this batch, at most 255 characters; resend the same key to replay the first result instead of writing the batch twice.
77077
+ */
77078
+ 'Idempotency-Key': string;
77079
+ };
77080
+ path?: never;
77081
+ query?: never;
77082
+ url: '/ontology/v1/changesets';
77083
+ };
77084
+ export type OntologyApplyChangesetErrors = {
77085
+ /**
77086
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
77087
+ */
77088
+ 400: OntologyOntologyError;
77089
+ /**
77090
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
77091
+ */
77092
+ 401: OntologyOntologyError;
77093
+ /**
77094
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
77095
+ */
77096
+ 403: OntologyOntologyError;
77097
+ /**
77098
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
77099
+ */
77100
+ 409: OntologyOntologyError;
77101
+ /**
77102
+ * ONTOLOGY_CAPACITY means this organization's graph is at its size budget; free space by invalidating facts that are no longer true before retrying.
77103
+ */
77104
+ 429: OntologyOntologyError;
77105
+ /**
77106
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
77107
+ */
77108
+ 500: OntologyOntologyError;
77109
+ };
77110
+ export type OntologyApplyChangesetError = OntologyApplyChangesetErrors[keyof OntologyApplyChangesetErrors];
77111
+ export type OntologyApplyChangesetResponses = {
77112
+ /**
77113
+ * The applied count, the ids assigned to the batch's keys, and replayed true when the key had been seen before.
77114
+ */
77115
+ 200: OntologyChangesetResult;
77116
+ };
77117
+ export type OntologyApplyChangesetResponse = OntologyApplyChangesetResponses[keyof OntologyApplyChangesetResponses];
77118
+ export type OntologySearchData = {
77119
+ /**
77120
+ * The text to resolve, optionally narrowed to particular node types and a result count.
77121
+ */
77122
+ body: OntologySearchInput;
77123
+ path?: never;
77124
+ query?: never;
77125
+ url: '/ontology/v1/search';
77126
+ };
77127
+ export type OntologySearchErrors = {
77128
+ /**
77129
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
77130
+ */
77131
+ 400: OntologyOntologyError;
77132
+ /**
77133
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
77134
+ */
77135
+ 401: OntologyOntologyError;
77136
+ /**
77137
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
77138
+ */
77139
+ 403: OntologyOntologyError;
77140
+ /**
77141
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
77142
+ */
77143
+ 500: OntologyOntologyError;
77144
+ };
77145
+ export type OntologySearchError = OntologySearchErrors[keyof OntologySearchErrors];
77146
+ export type OntologySearchResponses = {
77147
+ /**
77148
+ * Ranked candidate nodes, best match first, with the field each one matched on.
77149
+ */
77150
+ 200: OntologySearchResult;
77151
+ };
77152
+ export type OntologySearchResponse = OntologySearchResponses[keyof OntologySearchResponses];
73958
77153
  export type GetSandboxV1SandboxesData = {
73959
77154
  body?: never;
73960
77155
  path?: never;
@@ -74347,6 +77542,10 @@ export type ListSandboxTemplatesResponses = {
74347
77542
  buildCount: number;
74348
77543
  envdVersion: SandboxEnvdVersion;
74349
77544
  buildStatus: SandboxTemplateBuildStatus;
77545
+ /**
77546
+ * 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.
77547
+ */
77548
+ lifecycles?: Array<'ephemeral' | 'persistent'>;
74350
77549
  /**
74351
77550
  * True for an official catalog template; false for your organization's custom templates.
74352
77551
  */
@@ -76550,7 +79749,7 @@ export type TicketGetTicketsData = {
76550
79749
  */
76551
79750
  page_token?: string;
76552
79751
  /**
76553
- * Filter expression.
79752
+ * Filter expression using field:value qualifiers, such as is:open milestone:5.
76554
79753
  */
76555
79754
  filter?: string;
76556
79755
  };
@@ -78969,7 +82168,7 @@ export type TicketGetActivityData = {
78969
82168
  */
78970
82169
  page_token?: string;
78971
82170
  /**
78972
- * Filter expression.
82171
+ * Activity filter expression.
78973
82172
  */
78974
82173
  filter?: string;
78975
82174
  };