@deepraxis/sdk 0.1.1-dev.1de6590 → 0.1.1-dev.24f349c
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.
- package/METHODS.md +20 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +163 -40
- package/dist/generated/sdk.gen.js +202 -39
- package/dist/generated/types.gen.d.ts +1060 -111
- package/dist/operations.generated.d.ts +193 -61
- package/dist/operations.generated.js +228 -57
- package/dist/resources.generated.d.ts +26 -0
- package/dist/resources.generated.js +10 -0
- package/package.json +1 -1
|
@@ -1020,9 +1020,9 @@ export type OwnFileCreateFileRequest = {
|
|
|
1020
1020
|
*/
|
|
1021
1021
|
file: Blob | File;
|
|
1022
1022
|
/**
|
|
1023
|
-
* Purpose label stored with the file: user_data or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
|
|
1023
|
+
* Purpose label stored with the file: user_data, assistants or vision. The label is stored and returned unchanged; assistants follows the same rules as user_data. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
|
|
1024
1024
|
*/
|
|
1025
|
-
purpose: 'user_data' | 'vision';
|
|
1025
|
+
purpose: 'user_data' | 'assistants' | 'vision';
|
|
1026
1026
|
expires_after?: OwnFileFileExpirationAfter;
|
|
1027
1027
|
};
|
|
1028
1028
|
/**
|
|
@@ -1058,7 +1058,7 @@ export type OwnFileOpenAiFile = {
|
|
|
1058
1058
|
/**
|
|
1059
1059
|
* Upload purpose. Image references in conversations require user_data.
|
|
1060
1060
|
*/
|
|
1061
|
-
purpose: 'user_data' | 'vision';
|
|
1061
|
+
purpose: 'user_data' | 'assistants' | 'vision';
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Deprecated. The current status of the file, which can be either `uploaded`, `processed`, or `error`.
|
|
1064
1064
|
*
|
|
@@ -1156,9 +1156,9 @@ export type OwnFilePraxisCreateUpload = {
|
|
|
1156
1156
|
*/
|
|
1157
1157
|
mime_type: string;
|
|
1158
1158
|
/**
|
|
1159
|
-
* Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images.
|
|
1159
|
+
* Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.
|
|
1160
1160
|
*/
|
|
1161
|
-
purpose: 'user_data' | 'vision';
|
|
1161
|
+
purpose: 'user_data' | 'assistants' | 'vision';
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Optional expiry policy for the resulting file; omission retains the file until deletion.
|
|
1164
1164
|
*/
|
|
@@ -1203,9 +1203,9 @@ export type OwnFilePraxisUpload = {
|
|
|
1203
1203
|
*/
|
|
1204
1204
|
filename: string;
|
|
1205
1205
|
/**
|
|
1206
|
-
* File purpose: user_data for conversation attachments, vision for images.
|
|
1206
|
+
* File purpose: user_data for conversation attachments, assistants for assistant files, vision for images.
|
|
1207
1207
|
*/
|
|
1208
|
-
purpose: 'user_data' | 'vision';
|
|
1208
|
+
purpose: 'user_data' | 'assistants' | 'vision';
|
|
1209
1209
|
/**
|
|
1210
1210
|
* Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its one-hour lifetime.
|
|
1211
1211
|
*/
|
|
@@ -1282,9 +1282,9 @@ export type OwnFileSignedUploadRequest = {
|
|
|
1282
1282
|
*/
|
|
1283
1283
|
content_type: string;
|
|
1284
1284
|
/**
|
|
1285
|
-
* user_data
|
|
1285
|
+
* user_data and assistants store ordinary files and conversation images with their original purpose label; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data.
|
|
1286
1286
|
*/
|
|
1287
|
-
purpose?: 'user_data' | 'vision';
|
|
1287
|
+
purpose?: 'user_data' | 'assistants' | 'vision';
|
|
1288
1288
|
/**
|
|
1289
1289
|
* Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 3600 for multipart. All part URLs and the completion URL share one expiry. This does not set the resulting file's lifetime.
|
|
1290
1290
|
*/
|
|
@@ -12789,13 +12789,17 @@ export type CutAnalysisResult = {
|
|
|
12789
12789
|
*/
|
|
12790
12790
|
version: number;
|
|
12791
12791
|
/**
|
|
12792
|
-
* silence identifies
|
|
12792
|
+
* silence identifies transcript-based speech pauses, not music or loudness; filler identifies filler-word spans; scenes identifies scene ranges.
|
|
12793
12793
|
*/
|
|
12794
12794
|
kind: 'silence' | 'filler' | 'scenes';
|
|
12795
12795
|
/**
|
|
12796
|
-
* pending means analysis is still running; ready means
|
|
12796
|
+
* 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
12797
|
*/
|
|
12798
12798
|
status: 'pending' | 'ready' | 'unsupported' | 'failed';
|
|
12799
|
+
/**
|
|
12800
|
+
* 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.
|
|
12801
|
+
*/
|
|
12802
|
+
reason?: 'no_speech' | 'no_transcript';
|
|
12799
12803
|
/**
|
|
12800
12804
|
* Detected source ranges in seconds, available when status is ready.
|
|
12801
12805
|
*/
|
|
@@ -12988,6 +12992,14 @@ export type CutExport = {
|
|
|
12988
12992
|
* Destination media library identifier.
|
|
12989
12993
|
*/
|
|
12990
12994
|
library_id: string;
|
|
12995
|
+
/**
|
|
12996
|
+
* Frozen destination path within the library, when supplied.
|
|
12997
|
+
*/
|
|
12998
|
+
folder?: string;
|
|
12999
|
+
/**
|
|
13000
|
+
* Frozen sanitized display name, when supplied.
|
|
13001
|
+
*/
|
|
13002
|
+
name?: string;
|
|
12991
13003
|
};
|
|
12992
13004
|
/**
|
|
12993
13005
|
* Rendering progress; partial progress is not successful completion.
|
|
@@ -13027,9 +13039,22 @@ export type CutExport = {
|
|
|
13027
13039
|
*/
|
|
13028
13040
|
chunk?: number;
|
|
13029
13041
|
/**
|
|
13030
|
-
*
|
|
13042
|
+
* Safe structured downstream failure information; older jobs may contain a string.
|
|
13031
13043
|
*/
|
|
13032
|
-
cause?: string
|
|
13044
|
+
cause?: string | {
|
|
13045
|
+
/**
|
|
13046
|
+
* Export stage that failed.
|
|
13047
|
+
*/
|
|
13048
|
+
stage: string;
|
|
13049
|
+
/**
|
|
13050
|
+
* Downstream service error code, when available.
|
|
13051
|
+
*/
|
|
13052
|
+
code?: string;
|
|
13053
|
+
};
|
|
13054
|
+
/**
|
|
13055
|
+
* Downstream request identifier, when supplied by the service error.
|
|
13056
|
+
*/
|
|
13057
|
+
request_id?: string;
|
|
13033
13058
|
};
|
|
13034
13059
|
/**
|
|
13035
13060
|
* ISO 8601 timestamp when this export was accepted.
|
|
@@ -13048,6 +13073,14 @@ export type CutExport = {
|
|
|
13048
13073
|
* Start an export from a project revision into a bound library.
|
|
13049
13074
|
*/
|
|
13050
13075
|
export type CutExportInput = {
|
|
13076
|
+
/**
|
|
13077
|
+
* Optional destination path within the bound media library; omitted uses its default folder.
|
|
13078
|
+
*/
|
|
13079
|
+
folder?: string;
|
|
13080
|
+
/**
|
|
13081
|
+
* Nonempty display name, frozen with the export. Path separators and control characters become hyphens; limited to 200 characters. Omitted uses project name and timestamp.
|
|
13082
|
+
*/
|
|
13083
|
+
name?: string;
|
|
13051
13084
|
/**
|
|
13052
13085
|
* Optional render settings; omitted fields use the project export defaults.
|
|
13053
13086
|
*/
|
|
@@ -13583,7 +13616,7 @@ export type KnowledgeNativeCreateVectorStore = {
|
|
|
13583
13616
|
* Existing File IDs to attach; the store allows up to 10,000 files.
|
|
13584
13617
|
*/
|
|
13585
13618
|
file_ids?: Array<string>;
|
|
13586
|
-
chunking_strategy?:
|
|
13619
|
+
chunking_strategy?: KnowledgeNativeChunkingInput;
|
|
13587
13620
|
/**
|
|
13588
13621
|
* Accepted but not saved or returned; its type is not validated.
|
|
13589
13622
|
*/
|
|
@@ -13747,7 +13780,7 @@ export type KnowledgeNativeVectorStoreFile = {
|
|
|
13747
13780
|
* Unix timestamp in seconds.
|
|
13748
13781
|
*/
|
|
13749
13782
|
created_at: number;
|
|
13750
|
-
chunking_strategy:
|
|
13783
|
+
chunking_strategy: KnowledgeNativeChunking;
|
|
13751
13784
|
/**
|
|
13752
13785
|
* File attributes used for search filtering; null means no attributes are set.
|
|
13753
13786
|
*/
|
|
@@ -13757,7 +13790,7 @@ export type KnowledgeNativeVectorStoreFile = {
|
|
|
13757
13790
|
*/
|
|
13758
13791
|
praxis?: {
|
|
13759
13792
|
/**
|
|
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.
|
|
13793
|
+
* 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
13794
|
*/
|
|
13762
13795
|
failure_reason?: 'file_too_large' | 'encrypted' | 'empty' | 'unsupported_type' | 'token_limit' | 'recognition_unavailable' | 'deadline_exceeded' | 'internal';
|
|
13763
13796
|
/**
|
|
@@ -13794,7 +13827,7 @@ export type KnowledgeNativeVectorStoreFile = {
|
|
|
13794
13827
|
chunk_count: number;
|
|
13795
13828
|
};
|
|
13796
13829
|
};
|
|
13797
|
-
export type
|
|
13830
|
+
export type KnowledgeNativeAttachFile = {
|
|
13798
13831
|
/**
|
|
13799
13832
|
* Existing source File ID returned by file upload; the file must be visible to the caller.
|
|
13800
13833
|
*/
|
|
@@ -13803,7 +13836,7 @@ export type KnowledgeAttachFile = {
|
|
|
13803
13836
|
* Search-filter attributes for a newly attached file; omission or null leaves attributes unset. Reattaching an existing file does not change them.
|
|
13804
13837
|
*/
|
|
13805
13838
|
attributes?: KnowledgeAttributes | null;
|
|
13806
|
-
chunking_strategy?:
|
|
13839
|
+
chunking_strategy?: KnowledgeNativeChunkingInput;
|
|
13807
13840
|
};
|
|
13808
13841
|
export type KnowledgeNativeVectorStoreFileList = {
|
|
13809
13842
|
/**
|
|
@@ -13900,7 +13933,7 @@ export type KnowledgeFileBatch = {
|
|
|
13900
13933
|
/**
|
|
13901
13934
|
* Provide exactly one of file_ids or files. Already attached files are reused without changing their attributes or chunking.
|
|
13902
13935
|
*/
|
|
13903
|
-
export type
|
|
13936
|
+
export type KnowledgeNativeCreateBatch = {
|
|
13904
13937
|
/**
|
|
13905
13938
|
* Existing File IDs to attach with shared attributes and chunking settings. Supply file_ids or files, never both.
|
|
13906
13939
|
*/
|
|
@@ -13909,7 +13942,7 @@ export type KnowledgeCreateBatch = {
|
|
|
13909
13942
|
* Search-filter attributes applied to each newly attached file; omission or null leaves them unset.
|
|
13910
13943
|
*/
|
|
13911
13944
|
attributes?: KnowledgeAttributes | null;
|
|
13912
|
-
chunking_strategy?:
|
|
13945
|
+
chunking_strategy?: KnowledgeNativeChunkingInput;
|
|
13913
13946
|
} | {
|
|
13914
13947
|
/**
|
|
13915
13948
|
* Files to attach with individual attributes and chunking settings; top-level attributes and chunking_strategy are ignored.
|
|
@@ -13920,7 +13953,7 @@ export type KnowledgeCreateBatch = {
|
|
|
13920
13953
|
*/
|
|
13921
13954
|
file_id: string;
|
|
13922
13955
|
attributes?: KnowledgeAttributes;
|
|
13923
|
-
chunking_strategy?:
|
|
13956
|
+
chunking_strategy?: KnowledgeNativeChunkingInput;
|
|
13924
13957
|
}>;
|
|
13925
13958
|
/**
|
|
13926
13959
|
* Ignored when files is supplied.
|
|
@@ -14039,6 +14072,10 @@ export type KnowledgeEventList = {
|
|
|
14039
14072
|
* A caller-owned media library with lifecycle, usage, understanding settings and model selections.
|
|
14040
14073
|
*/
|
|
14041
14074
|
export type MediaLibrary = {
|
|
14075
|
+
/**
|
|
14076
|
+
* 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.
|
|
14077
|
+
*/
|
|
14078
|
+
readonly hotwords?: Array<string>;
|
|
14042
14079
|
/**
|
|
14043
14080
|
* Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
|
|
14044
14081
|
*/
|
|
@@ -14123,9 +14160,21 @@ export type MediaMediaModelsInput = {
|
|
|
14123
14160
|
*/
|
|
14124
14161
|
embedding?: string | null;
|
|
14125
14162
|
/**
|
|
14126
|
-
* Model call ID for speech transcription. Null restores the default for this role.
|
|
14163
|
+
* Model call ID for speech transcription. Null restores the default for this role. Defaults to fun-asr with whisper-large-v3-turbo fallback.
|
|
14127
14164
|
*/
|
|
14128
14165
|
transcription?: string | null;
|
|
14166
|
+
/**
|
|
14167
|
+
* 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.
|
|
14168
|
+
*/
|
|
14169
|
+
correction?: string | null;
|
|
14170
|
+
/**
|
|
14171
|
+
* Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction. Null restores this role’s default.
|
|
14172
|
+
*/
|
|
14173
|
+
reference_transcription?: string | null;
|
|
14174
|
+
/**
|
|
14175
|
+
* 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.
|
|
14176
|
+
*/
|
|
14177
|
+
audio?: string | null;
|
|
14129
14178
|
} | null;
|
|
14130
14179
|
/**
|
|
14131
14180
|
* Libraries in this page, ordered by creation time descending.
|
|
@@ -14140,6 +14189,25 @@ export type MediaLibraryPage = MediaPage & {
|
|
|
14140
14189
|
*/
|
|
14141
14190
|
next_cursor: string | null;
|
|
14142
14191
|
};
|
|
14192
|
+
export type MediaFrameUrls = {
|
|
14193
|
+
/**
|
|
14194
|
+
* Frame links in the same order as the requested timestamps, including duplicates.
|
|
14195
|
+
*/
|
|
14196
|
+
frames: Array<{
|
|
14197
|
+
/**
|
|
14198
|
+
* Requested time in microseconds from the start of the video.
|
|
14199
|
+
*/
|
|
14200
|
+
at_micros: number;
|
|
14201
|
+
/**
|
|
14202
|
+
* JPEG delivery URL. Fetch it to extract the frame; authenticated links carry a bearer token and must not be shared beyond intended readers.
|
|
14203
|
+
*/
|
|
14204
|
+
url: string;
|
|
14205
|
+
/**
|
|
14206
|
+
* UTC expiry for authenticated frame links, 300 seconds after issuance. Upload asset links remain public and permanent; this timestamp does not expire those URLs.
|
|
14207
|
+
*/
|
|
14208
|
+
expires_at: string;
|
|
14209
|
+
}>;
|
|
14210
|
+
};
|
|
14143
14211
|
/**
|
|
14144
14212
|
* Receipt confirming permanent removal of a previously deleted library.
|
|
14145
14213
|
*/
|
|
@@ -14299,7 +14367,7 @@ export type MediaAsset = {
|
|
|
14299
14367
|
*/
|
|
14300
14368
|
url: string;
|
|
14301
14369
|
/**
|
|
14302
|
-
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the
|
|
14370
|
+
* 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
14371
|
*/
|
|
14304
14372
|
secure_url: string;
|
|
14305
14373
|
/**
|
|
@@ -14408,6 +14476,10 @@ export type MediaUnderstandingPage = MediaPage & {
|
|
|
14408
14476
|
* Opaque token to pass as cursor to listUnderstandings; null means no further page.
|
|
14409
14477
|
*/
|
|
14410
14478
|
next_cursor: string | null;
|
|
14479
|
+
/**
|
|
14480
|
+
* 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.
|
|
14481
|
+
*/
|
|
14482
|
+
readonly shots?: Array<MediaUnderstoodShot>;
|
|
14411
14483
|
};
|
|
14412
14484
|
/**
|
|
14413
14485
|
* Expression-search page with match counts, elapsed time and optional facet counts.
|
|
@@ -14491,7 +14563,19 @@ export type MediaFolders = {
|
|
|
14491
14563
|
* Number of assets in this folder and all descendant folders.
|
|
14492
14564
|
*/
|
|
14493
14565
|
asset_count: number;
|
|
14566
|
+
/**
|
|
14567
|
+
* Active ready and partial assets in this folder and every descendant folder.
|
|
14568
|
+
*/
|
|
14569
|
+
understood_count: number;
|
|
14570
|
+
/**
|
|
14571
|
+
* Active failed assets in this folder and every descendant folder.
|
|
14572
|
+
*/
|
|
14573
|
+
failed_count: number;
|
|
14494
14574
|
}>;
|
|
14575
|
+
/**
|
|
14576
|
+
* False while historical folder and failure counts are being populated; refresh after backfill completes.
|
|
14577
|
+
*/
|
|
14578
|
+
counts_complete: boolean;
|
|
14495
14579
|
};
|
|
14496
14580
|
/**
|
|
14497
14581
|
* Asynchronous batch job with successful and failed item counts.
|
|
@@ -14506,9 +14590,9 @@ export type MediaJob = {
|
|
|
14506
14590
|
*/
|
|
14507
14591
|
library_id: MediaLibraryId;
|
|
14508
14592
|
/**
|
|
14509
|
-
* Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
|
|
14593
|
+
* 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
14594
|
*/
|
|
14511
|
-
action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete';
|
|
14595
|
+
action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess';
|
|
14512
14596
|
/**
|
|
14513
14597
|
* 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
14598
|
*/
|
|
@@ -14518,7 +14602,7 @@ export type MediaJob = {
|
|
|
14518
14602
|
*/
|
|
14519
14603
|
total: number;
|
|
14520
14604
|
/**
|
|
14521
|
-
* Number of items successfully processed; failed items are counted separately.
|
|
14605
|
+
* Number of items successfully processed; failed items are counted separately. For reprocess, this counts accepted launches; inspect asset progress for model completion.
|
|
14522
14606
|
*/
|
|
14523
14607
|
done: number;
|
|
14524
14608
|
/**
|
|
@@ -14584,6 +14668,15 @@ export type MediaBatchAction = {
|
|
|
14584
14668
|
* Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
|
|
14585
14669
|
*/
|
|
14586
14670
|
action: 'delete';
|
|
14671
|
+
} | {
|
|
14672
|
+
/**
|
|
14673
|
+
* reprocess retries recoverable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported, permanent and completed steps remain unchanged.
|
|
14674
|
+
*/
|
|
14675
|
+
action: 'reprocess';
|
|
14676
|
+
/**
|
|
14677
|
+
* 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.
|
|
14678
|
+
*/
|
|
14679
|
+
kinds?: Array<MediaProcessingKind>;
|
|
14587
14680
|
};
|
|
14588
14681
|
/**
|
|
14589
14682
|
* Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
|
|
@@ -14629,6 +14722,20 @@ export type MediaDeliveryToken = {
|
|
|
14629
14722
|
*/
|
|
14630
14723
|
expires_at: string;
|
|
14631
14724
|
};
|
|
14725
|
+
export type MediaFailureSummary = {
|
|
14726
|
+
/**
|
|
14727
|
+
* Number of current failed understanding entries, excluding deleted assets and superseded versions.
|
|
14728
|
+
*/
|
|
14729
|
+
total: number;
|
|
14730
|
+
/**
|
|
14731
|
+
* Failure entries grouped by code, output kind and producer model. Each group includes up to five distinct example asset IDs.
|
|
14732
|
+
*/
|
|
14733
|
+
groups: Array<MediaFailureGroup>;
|
|
14734
|
+
/**
|
|
14735
|
+
* False while historical failure and folder statistics are being populated. Counts include current writes immediately.
|
|
14736
|
+
*/
|
|
14737
|
+
counts_complete: boolean;
|
|
14738
|
+
};
|
|
14632
14739
|
/**
|
|
14633
14740
|
* Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
|
|
14634
14741
|
*/
|
|
@@ -24979,6 +25086,10 @@ export type CutTimeline = {
|
|
|
24979
25086
|
* Ordered tracks, topmost visual layer first.
|
|
24980
25087
|
*/
|
|
24981
25088
|
tracks: Array<CutTrack>;
|
|
25089
|
+
/**
|
|
25090
|
+
* Clip-to-clip transitions selected by track and overlap window; lengths are seconds and effect fields use snake_case on HTTP.
|
|
25091
|
+
*/
|
|
25092
|
+
joins?: Array<CutJoin>;
|
|
24982
25093
|
/**
|
|
24983
25094
|
* Named points on the timeline.
|
|
24984
25095
|
*/
|
|
@@ -25014,11 +25125,11 @@ export type CutSummary = {
|
|
|
25014
25125
|
lines: Array<string>;
|
|
25015
25126
|
};
|
|
25016
25127
|
/**
|
|
25017
|
-
* Rendered image
|
|
25128
|
+
* Rendered PNG image carried inline as a data URL.
|
|
25018
25129
|
*/
|
|
25019
25130
|
export type CutRenderRef = {
|
|
25020
25131
|
/**
|
|
25021
|
-
*
|
|
25132
|
+
* Inline PNG data URL (data:image/png;base64,...); decode the base64 payload to save the image. This is not a hosted HTTP image link.
|
|
25022
25133
|
*/
|
|
25023
25134
|
url: string;
|
|
25024
25135
|
/**
|
|
@@ -25030,7 +25141,7 @@ export type CutRenderRef = {
|
|
|
25030
25141
|
*/
|
|
25031
25142
|
height: number;
|
|
25032
25143
|
/**
|
|
25033
|
-
* ISO 8601 timestamp
|
|
25144
|
+
* ISO 8601 freshness timestamp for the render result; the inline data URL contains the image bytes and does not require a network refresh.
|
|
25034
25145
|
*/
|
|
25035
25146
|
expires_at: string;
|
|
25036
25147
|
};
|
|
@@ -25302,14 +25413,9 @@ export type KnowledgeKnowledgeModels = {
|
|
|
25302
25413
|
vision: string;
|
|
25303
25414
|
};
|
|
25304
25415
|
/**
|
|
25305
|
-
* auto
|
|
25416
|
+
* 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
25417
|
*/
|
|
25307
|
-
export type
|
|
25308
|
-
/**
|
|
25309
|
-
* auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
|
|
25310
|
-
*/
|
|
25311
|
-
type: 'auto';
|
|
25312
|
-
} | KnowledgeStaticChunking;
|
|
25418
|
+
export type KnowledgeNativeChunkingInput = KnowledgeChunkingInput | KnowledgeHierarchicalChunking;
|
|
25313
25419
|
/**
|
|
25314
25420
|
* 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
25421
|
*/
|
|
@@ -25364,6 +25470,10 @@ export type KnowledgeNativeSearchResult = {
|
|
|
25364
25470
|
* Extracted text of the matched chunk, which may overlap neighboring chunks.
|
|
25365
25471
|
*/
|
|
25366
25472
|
text: string;
|
|
25473
|
+
/**
|
|
25474
|
+
* 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.
|
|
25475
|
+
*/
|
|
25476
|
+
readonly image_file_id?: string;
|
|
25367
25477
|
/**
|
|
25368
25478
|
* Resource ID.
|
|
25369
25479
|
*/
|
|
@@ -25427,14 +25537,9 @@ export type KnowledgeFilter = {
|
|
|
25427
25537
|
filters: Array<KnowledgeFilter>;
|
|
25428
25538
|
};
|
|
25429
25539
|
/**
|
|
25430
|
-
*
|
|
25540
|
+
* Native stored strategy, including hierarchical parent and child settings. auto input resolves to static; the OpenAI-compatible URL projects hierarchical as other.
|
|
25431
25541
|
*/
|
|
25432
|
-
export type
|
|
25433
|
-
/**
|
|
25434
|
-
* other identifies a stored strategy whose chunk-size settings are unavailable.
|
|
25435
|
-
*/
|
|
25436
|
-
type: 'other';
|
|
25437
|
-
};
|
|
25542
|
+
export type KnowledgeNativeChunking = KnowledgeChunking | KnowledgeHierarchicalChunking;
|
|
25438
25543
|
/**
|
|
25439
25544
|
* File attributes used by search filters. Up to 16 keys of 64 characters; string values up to 512 characters.
|
|
25440
25545
|
*/
|
|
@@ -25546,7 +25651,7 @@ export type MediaUnderstandingProgress = {
|
|
|
25546
25651
|
readonly migration_complete: boolean;
|
|
25547
25652
|
};
|
|
25548
25653
|
/**
|
|
25549
|
-
* Resolved model call IDs for
|
|
25654
|
+
* Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
|
|
25550
25655
|
*/
|
|
25551
25656
|
export type MediaMediaModels = {
|
|
25552
25657
|
/**
|
|
@@ -25558,9 +25663,21 @@ export type MediaMediaModels = {
|
|
|
25558
25663
|
*/
|
|
25559
25664
|
embedding: string;
|
|
25560
25665
|
/**
|
|
25561
|
-
* Model call ID for speech transcription.
|
|
25666
|
+
* 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
25667
|
*/
|
|
25563
25668
|
transcription: string;
|
|
25669
|
+
/**
|
|
25670
|
+
* Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
|
|
25671
|
+
*/
|
|
25672
|
+
readonly correction: string;
|
|
25673
|
+
/**
|
|
25674
|
+
* Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
|
|
25675
|
+
*/
|
|
25676
|
+
readonly reference_transcription: string;
|
|
25677
|
+
/**
|
|
25678
|
+
* 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.
|
|
25679
|
+
*/
|
|
25680
|
+
readonly audio: string;
|
|
25564
25681
|
};
|
|
25565
25682
|
/**
|
|
25566
25683
|
* Identifier of a library belonging to the caller.
|
|
@@ -25721,7 +25838,7 @@ export type MediaCloudinaryResource = {
|
|
|
25721
25838
|
*/
|
|
25722
25839
|
url: string;
|
|
25723
25840
|
/**
|
|
25724
|
-
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the
|
|
25841
|
+
* 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
25842
|
*/
|
|
25726
25843
|
secure_url: string;
|
|
25727
25844
|
/**
|
|
@@ -25757,13 +25874,13 @@ export type MediaChunkComplete = MediaCloudinaryResource & {
|
|
|
25757
25874
|
done: true;
|
|
25758
25875
|
};
|
|
25759
25876
|
/**
|
|
25760
|
-
* Per-task processing progress and its aggregate state for the asset.
|
|
25877
|
+
* Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video or audio sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
|
|
25761
25878
|
*/
|
|
25762
25879
|
export type MediaProcessing = {
|
|
25763
25880
|
/**
|
|
25764
|
-
* Current understanding stage: probe, frames, visual, transcript, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
|
|
25881
|
+
* 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
25882
|
*/
|
|
25766
|
-
readonly stage?: 'probe' | 'frames' | 'visual' | 'transcript' | 'embedding' | 'finalize' | null;
|
|
25883
|
+
readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
|
|
25767
25884
|
state: MediaProcessingState;
|
|
25768
25885
|
/**
|
|
25769
25886
|
* Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
|
|
@@ -25805,6 +25922,18 @@ export type MediaStoryboard = {
|
|
|
25805
25922
|
* An immutable understanding result for an asset version, including superseded history when requested.
|
|
25806
25923
|
*/
|
|
25807
25924
|
export type MediaUnderstanding = {
|
|
25925
|
+
/**
|
|
25926
|
+
* Original hallucination-filtered ASR text before correction, present on correction-enabled transcript records. Omitted on legacy records and other kinds.
|
|
25927
|
+
*/
|
|
25928
|
+
readonly text_original?: string;
|
|
25929
|
+
/**
|
|
25930
|
+
* Corrected transcript, also returned as content and used for subtitles and search. Equals text_original when correction fails. Original segment timestamps remain unchanged.
|
|
25931
|
+
*/
|
|
25932
|
+
readonly text?: string;
|
|
25933
|
+
/**
|
|
25934
|
+
* Transcript correction audit, accepted edits and optional reference ASR. Present on correction-enabled transcript records, including failed corrections.
|
|
25935
|
+
*/
|
|
25936
|
+
readonly correction?: MediaTranscriptCorrection;
|
|
25808
25937
|
/**
|
|
25809
25938
|
* Generated identifier of this understanding result.
|
|
25810
25939
|
*/
|
|
@@ -25818,7 +25947,7 @@ export type MediaUnderstanding = {
|
|
|
25818
25947
|
*/
|
|
25819
25948
|
asset_version: number;
|
|
25820
25949
|
/**
|
|
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.
|
|
25950
|
+
* 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
25951
|
*/
|
|
25823
25952
|
kind: MediaUnderstandingKind;
|
|
25824
25953
|
/**
|
|
@@ -25842,7 +25971,7 @@ export type MediaUnderstanding = {
|
|
|
25842
25971
|
*/
|
|
25843
25972
|
content: string | null;
|
|
25844
25973
|
/**
|
|
25845
|
-
* Structured producer output,
|
|
25974
|
+
* 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
25975
|
*/
|
|
25847
25976
|
data: unknown | null;
|
|
25848
25977
|
/**
|
|
@@ -25871,6 +26000,36 @@ export type MediaUnderstanding = {
|
|
|
25871
26000
|
*/
|
|
25872
26001
|
created_at: MediaIsoTimestamp;
|
|
25873
26002
|
};
|
|
26003
|
+
export type MediaUnderstoodShot = {
|
|
26004
|
+
/**
|
|
26005
|
+
* Inclusive shot start in milliseconds.
|
|
26006
|
+
*/
|
|
26007
|
+
readonly start_ms: number;
|
|
26008
|
+
/**
|
|
26009
|
+
* Exclusive shot end in milliseconds.
|
|
26010
|
+
*/
|
|
26011
|
+
readonly end_ms: number;
|
|
26012
|
+
/**
|
|
26013
|
+
* Zero-based shot index in timeline order.
|
|
26014
|
+
*/
|
|
26015
|
+
readonly index: number;
|
|
26016
|
+
/**
|
|
26017
|
+
* One to three sampled frame timestamps in milliseconds within this shot.
|
|
26018
|
+
*/
|
|
26019
|
+
readonly keyframes_ms: Array<number>;
|
|
26020
|
+
/**
|
|
26021
|
+
* Structured interpretation, present after this shot completes visual processing.
|
|
26022
|
+
*/
|
|
26023
|
+
readonly visual?: MediaShotVisual;
|
|
26024
|
+
/**
|
|
26025
|
+
* 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.
|
|
26026
|
+
*/
|
|
26027
|
+
readonly folder_mismatch?: boolean;
|
|
26028
|
+
/**
|
|
26029
|
+
* Vision model that generated this shot interpretation.
|
|
26030
|
+
*/
|
|
26031
|
+
readonly producer?: string;
|
|
26032
|
+
};
|
|
25874
26033
|
/**
|
|
25875
26034
|
* A native asset returned by expression search; tags and context are included only when requested in with_field.
|
|
25876
26035
|
*/
|
|
@@ -25988,7 +26147,7 @@ export type MediaSearchAsset = {
|
|
|
25988
26147
|
*/
|
|
25989
26148
|
url: string;
|
|
25990
26149
|
/**
|
|
25991
|
-
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the
|
|
26150
|
+
* 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
26151
|
*/
|
|
25993
26152
|
secure_url: string;
|
|
25994
26153
|
/**
|
|
@@ -26141,6 +26300,36 @@ export type MediaMediaEvent = {
|
|
|
26141
26300
|
[key: string]: unknown;
|
|
26142
26301
|
};
|
|
26143
26302
|
};
|
|
26303
|
+
export type MediaFailureGroup = {
|
|
26304
|
+
/**
|
|
26305
|
+
* Failure reason code. Unknown codes are retryable.
|
|
26306
|
+
*/
|
|
26307
|
+
code: string;
|
|
26308
|
+
/**
|
|
26309
|
+
* Understanding output kind that failed, such as caption, frame, transcript or embedding.
|
|
26310
|
+
*/
|
|
26311
|
+
kind: string;
|
|
26312
|
+
/**
|
|
26313
|
+
* Producer model that reported this failure; unknown when historical provenance was unavailable.
|
|
26314
|
+
*/
|
|
26315
|
+
model: string;
|
|
26316
|
+
/**
|
|
26317
|
+
* Number of current failed entries in this group; several entries can belong to one asset.
|
|
26318
|
+
*/
|
|
26319
|
+
count: number;
|
|
26320
|
+
/**
|
|
26321
|
+
* 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.
|
|
26322
|
+
*/
|
|
26323
|
+
overflow: boolean;
|
|
26324
|
+
/**
|
|
26325
|
+
* True when a repeated attempt may recover, including unknown error codes. False for unsupported media, limits, missing or corrupt source files.
|
|
26326
|
+
*/
|
|
26327
|
+
retryable: boolean;
|
|
26328
|
+
/**
|
|
26329
|
+
* Up to five distinct asset identifiers from this group, for inspecting original error details.
|
|
26330
|
+
*/
|
|
26331
|
+
sample_asset_ids: Array<MediaAssetId>;
|
|
26332
|
+
};
|
|
26144
26333
|
/**
|
|
26145
26334
|
* Auto-resume configuration for paused sandboxes.
|
|
26146
26335
|
*/
|
|
@@ -30467,6 +30656,32 @@ export type CutTrack = {
|
|
|
30467
30656
|
*/
|
|
30468
30657
|
items: Array<CutItem>;
|
|
30469
30658
|
};
|
|
30659
|
+
/**
|
|
30660
|
+
* Overlap between adjacent visual clips on the same track; creating it shifts the right clip and same-track followers left by its length.
|
|
30661
|
+
*/
|
|
30662
|
+
export type CutJoin = {
|
|
30663
|
+
/**
|
|
30664
|
+
* Join identifier returned by Join; reuse as the id argument to UpdateJoin or DeleteJoin inside execute.
|
|
30665
|
+
*/
|
|
30666
|
+
id: string;
|
|
30667
|
+
/**
|
|
30668
|
+
* Visual track containing both endpoints, from AddTrack or the timeline track id.
|
|
30669
|
+
*/
|
|
30670
|
+
track: string;
|
|
30671
|
+
/**
|
|
30672
|
+
* Outgoing clip identifier, from Insert or the timeline items.
|
|
30673
|
+
*/
|
|
30674
|
+
left: string;
|
|
30675
|
+
/**
|
|
30676
|
+
* Incoming clip identifier, from Insert or the timeline items.
|
|
30677
|
+
*/
|
|
30678
|
+
right: string;
|
|
30679
|
+
/**
|
|
30680
|
+
* Overlap duration in seconds, positive and shorter than each endpoint; incoming plus outgoing lengths may not exceed a clip length.
|
|
30681
|
+
*/
|
|
30682
|
+
length: number;
|
|
30683
|
+
effect: CutJoinEffect;
|
|
30684
|
+
};
|
|
30470
30685
|
/**
|
|
30471
30686
|
* A named point on the project timeline.
|
|
30472
30687
|
*/
|
|
@@ -30484,23 +30699,39 @@ export type CutMarker = {
|
|
|
30484
30699
|
*/
|
|
30485
30700
|
label: string;
|
|
30486
30701
|
};
|
|
30487
|
-
|
|
30702
|
+
/**
|
|
30703
|
+
* 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.
|
|
30704
|
+
*/
|
|
30705
|
+
export type KnowledgeChunkingInput = {
|
|
30488
30706
|
/**
|
|
30489
|
-
*
|
|
30707
|
+
* auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
|
|
30490
30708
|
*/
|
|
30491
|
-
type: '
|
|
30709
|
+
type: 'auto';
|
|
30710
|
+
} | KnowledgeStaticChunking;
|
|
30711
|
+
/**
|
|
30712
|
+
* 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.
|
|
30713
|
+
*/
|
|
30714
|
+
export type KnowledgeHierarchicalChunking = {
|
|
30492
30715
|
/**
|
|
30493
|
-
*
|
|
30716
|
+
* hierarchical selects smaller child chunks for matching and larger parent chunks for context.
|
|
30494
30717
|
*/
|
|
30495
|
-
|
|
30718
|
+
type: 'hierarchical';
|
|
30719
|
+
/**
|
|
30720
|
+
* Required parent, child and overlap sizes in estimated tokens. All three values must be integers.
|
|
30721
|
+
*/
|
|
30722
|
+
hierarchical: {
|
|
30496
30723
|
/**
|
|
30497
|
-
*
|
|
30724
|
+
* Maximum estimated tokens per parent chunk, from 101 through 4096; must exceed child_max_tokens.
|
|
30498
30725
|
*/
|
|
30499
|
-
|
|
30726
|
+
parent_max_tokens: number;
|
|
30500
30727
|
/**
|
|
30501
|
-
*
|
|
30728
|
+
* Maximum estimated tokens per child chunk, at least 100 and strictly smaller than parent_max_tokens.
|
|
30502
30729
|
*/
|
|
30503
|
-
|
|
30730
|
+
child_max_tokens: number;
|
|
30731
|
+
/**
|
|
30732
|
+
* Estimated tokens shared by adjacent children, from zero through floor(child_max_tokens / 2).
|
|
30733
|
+
*/
|
|
30734
|
+
child_overlap_tokens: number;
|
|
30504
30735
|
};
|
|
30505
30736
|
};
|
|
30506
30737
|
/**
|
|
@@ -30540,6 +30771,15 @@ export type KnowledgeSearchExplain = {
|
|
|
30540
30771
|
*/
|
|
30541
30772
|
matched_terms: Array<string>;
|
|
30542
30773
|
};
|
|
30774
|
+
/**
|
|
30775
|
+
* Stored chunking strategy for this attachment; auto input is returned as static settings.
|
|
30776
|
+
*/
|
|
30777
|
+
export type KnowledgeChunking = KnowledgeStaticChunking | {
|
|
30778
|
+
/**
|
|
30779
|
+
* other identifies a stored strategy whose chunk-size settings are unavailable.
|
|
30780
|
+
*/
|
|
30781
|
+
type: 'other';
|
|
30782
|
+
};
|
|
30543
30783
|
/**
|
|
30544
30784
|
* Aggregate processing state across the asset processing tasks.
|
|
30545
30785
|
*/
|
|
@@ -30548,14 +30788,66 @@ export type MediaProcessingState = 'pending' | 'processing' | 'ready' | 'partial
|
|
|
30548
30788
|
* 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
30789
|
*/
|
|
30550
30790
|
export type MediaKindState = 'pending' | 'running' | 'ready' | 'failed' | 'unsupported' | 'skipped';
|
|
30791
|
+
export type MediaTranscriptCorrection = {
|
|
30792
|
+
/**
|
|
30793
|
+
* Accepted local edits, including deterministic Arabic quantity normalization. Unsupported model edits are discarded.
|
|
30794
|
+
*/
|
|
30795
|
+
readonly edits: Array<MediaTranscriptEdit>;
|
|
30796
|
+
/**
|
|
30797
|
+
* ready means correction and validation completed; failed means text is exactly the ASR original, with no accepted edits.
|
|
30798
|
+
*/
|
|
30799
|
+
readonly correction_status: 'ready' | 'failed';
|
|
30800
|
+
/**
|
|
30801
|
+
* Configured correction model call ID; defaults to qwen3.8-flash.
|
|
30802
|
+
*/
|
|
30803
|
+
readonly correction_model: string;
|
|
30804
|
+
/**
|
|
30805
|
+
* ready means reference ASR supplied text; missing means reference failed or was unavailable and correction proceeded without it.
|
|
30806
|
+
*/
|
|
30807
|
+
readonly reference_status: 'ready' | 'missing';
|
|
30808
|
+
/**
|
|
30809
|
+
* Full reference ASR text, present when reference_status is ready. It supplies spelling evidence and has no timestamps.
|
|
30810
|
+
*/
|
|
30811
|
+
readonly reference_text?: string;
|
|
30812
|
+
/**
|
|
30813
|
+
* Model call ID that supplied the reference text; defaults to qwen3-asr-flash.
|
|
30814
|
+
*/
|
|
30815
|
+
readonly reference_model?: string;
|
|
30816
|
+
/**
|
|
30817
|
+
* Correction failure that caused verbatim fallback to the ASR original.
|
|
30818
|
+
*/
|
|
30819
|
+
readonly correction_error?: {
|
|
30820
|
+
/**
|
|
30821
|
+
* Failure code for the optional transcript enhancement step.
|
|
30822
|
+
*/
|
|
30823
|
+
code: string;
|
|
30824
|
+
/**
|
|
30825
|
+
* Failure detail; use reprocess to retry with the library’s current configuration.
|
|
30826
|
+
*/
|
|
30827
|
+
message: string;
|
|
30828
|
+
};
|
|
30829
|
+
/**
|
|
30830
|
+
* Reference failure; it does not block correction.
|
|
30831
|
+
*/
|
|
30832
|
+
readonly reference_error?: {
|
|
30833
|
+
/**
|
|
30834
|
+
* Failure code for the optional transcript enhancement step.
|
|
30835
|
+
*/
|
|
30836
|
+
code: string;
|
|
30837
|
+
/**
|
|
30838
|
+
* Failure detail; use reprocess to retry with the library’s current configuration.
|
|
30839
|
+
*/
|
|
30840
|
+
message: string;
|
|
30841
|
+
};
|
|
30842
|
+
};
|
|
30551
30843
|
/**
|
|
30552
30844
|
* Identifier of an immutable understanding result.
|
|
30553
30845
|
*/
|
|
30554
30846
|
export type MediaUnderstandingId = string;
|
|
30555
30847
|
/**
|
|
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.
|
|
30848
|
+
* 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
30849
|
*/
|
|
30558
|
-
export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
|
|
30850
|
+
export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
|
|
30559
30851
|
/**
|
|
30560
30852
|
* Time range within the source media, expressed in milliseconds.
|
|
30561
30853
|
*/
|
|
@@ -30569,6 +30861,28 @@ export type MediaSegment = {
|
|
|
30569
30861
|
*/
|
|
30570
30862
|
end_ms: number;
|
|
30571
30863
|
};
|
|
30864
|
+
export type MediaShotVisual = {
|
|
30865
|
+
/**
|
|
30866
|
+
* Chinese summary of the entire shot using its keyframes together.
|
|
30867
|
+
*/
|
|
30868
|
+
readonly caption: string;
|
|
30869
|
+
/**
|
|
30870
|
+
* Chinese description of the scene and shooting context.
|
|
30871
|
+
*/
|
|
30872
|
+
readonly scene: string;
|
|
30873
|
+
/**
|
|
30874
|
+
* Location inferred from recognizable landmarks or readable place names; null without evidence.
|
|
30875
|
+
*/
|
|
30876
|
+
readonly location_guess: string | null;
|
|
30877
|
+
/**
|
|
30878
|
+
* Visible text in reading order, preserving the source language.
|
|
30879
|
+
*/
|
|
30880
|
+
readonly on_screen_text: Array<string>;
|
|
30881
|
+
/**
|
|
30882
|
+
* Quality and editing characteristics with confidence for every judgment.
|
|
30883
|
+
*/
|
|
30884
|
+
readonly flags: MediaShotFlags;
|
|
30885
|
+
};
|
|
30572
30886
|
/**
|
|
30573
30887
|
* Evidence contributing to a search hit, optionally linked to an understanding and a source-media segment.
|
|
30574
30888
|
*/
|
|
@@ -30593,7 +30907,7 @@ export type MediaSemanticMatch = {
|
|
|
30593
30907
|
/**
|
|
30594
30908
|
* Type of change recorded for a library, asset, processing task, search index or batch.
|
|
30595
30909
|
*/
|
|
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';
|
|
30910
|
+
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';
|
|
30597
30911
|
/**
|
|
30598
30912
|
* Auto-resume enabled flag for paused sandboxes. Default false.
|
|
30599
30913
|
*/
|
|
@@ -31266,9 +31580,13 @@ export type CutTextStyle = {
|
|
|
31266
31580
|
*/
|
|
31267
31581
|
max_width?: number;
|
|
31268
31582
|
/**
|
|
31269
|
-
*
|
|
31583
|
+
* 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
31584
|
*/
|
|
31271
31585
|
position?: 'top' | 'middle' | 'bottom';
|
|
31586
|
+
/**
|
|
31587
|
+
* Box edge distance from the top or bottom as a fraction of canvas height; middle ignores it.
|
|
31588
|
+
*/
|
|
31589
|
+
margin?: number;
|
|
31272
31590
|
/**
|
|
31273
31591
|
* Optional color applied to the currently spoken caption word.
|
|
31274
31592
|
*/
|
|
@@ -31380,6 +31698,136 @@ export type CutItem = {
|
|
|
31380
31698
|
*/
|
|
31381
31699
|
words?: Array<CutCaptionWord>;
|
|
31382
31700
|
};
|
|
31701
|
+
/**
|
|
31702
|
+
* 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.
|
|
31703
|
+
*/
|
|
31704
|
+
export type CutJoinEffect = {
|
|
31705
|
+
/**
|
|
31706
|
+
* Dissolve: Blend the outgoing shot into the incoming shot.
|
|
31707
|
+
*/
|
|
31708
|
+
kind: 'dissolve';
|
|
31709
|
+
} | {
|
|
31710
|
+
/**
|
|
31711
|
+
* Dip: Fade through a solid color between the two shots.
|
|
31712
|
+
*/
|
|
31713
|
+
kind: 'dip';
|
|
31714
|
+
/**
|
|
31715
|
+
* Solid color shown between shots.
|
|
31716
|
+
*/
|
|
31717
|
+
color?: 'black' | 'white';
|
|
31718
|
+
} | {
|
|
31719
|
+
/**
|
|
31720
|
+
* Push: Slide the incoming shot into view as it pushes the outgoing shot away.
|
|
31721
|
+
*/
|
|
31722
|
+
kind: 'push';
|
|
31723
|
+
/**
|
|
31724
|
+
* Direction in which the transition moves across the frame.
|
|
31725
|
+
*/
|
|
31726
|
+
direction?: 'left' | 'right' | 'up' | 'down';
|
|
31727
|
+
} | {
|
|
31728
|
+
/**
|
|
31729
|
+
* Wipe: Reveal the incoming shot behind an edge moving across the outgoing shot.
|
|
31730
|
+
*/
|
|
31731
|
+
kind: 'wipe';
|
|
31732
|
+
/**
|
|
31733
|
+
* Direction in which the transition moves across the frame.
|
|
31734
|
+
*/
|
|
31735
|
+
direction?: 'left' | 'right' | 'up' | 'down';
|
|
31736
|
+
/**
|
|
31737
|
+
* Edge softness from a sharp boundary to a fully softened blend.
|
|
31738
|
+
*/
|
|
31739
|
+
softness?: number;
|
|
31740
|
+
} | {
|
|
31741
|
+
/**
|
|
31742
|
+
* Iris: Reveal the incoming shot through an expanding circular opening.
|
|
31743
|
+
*/
|
|
31744
|
+
kind: 'iris';
|
|
31745
|
+
/**
|
|
31746
|
+
* Horizontal opening center from the left edge to the right edge.
|
|
31747
|
+
*/
|
|
31748
|
+
center_x?: number;
|
|
31749
|
+
/**
|
|
31750
|
+
* Vertical opening center from the top edge to the bottom edge.
|
|
31751
|
+
*/
|
|
31752
|
+
center_y?: number;
|
|
31753
|
+
} | {
|
|
31754
|
+
/**
|
|
31755
|
+
* Blinds: Reveal the incoming shot through a set of parallel strips.
|
|
31756
|
+
*/
|
|
31757
|
+
kind: 'blinds';
|
|
31758
|
+
/**
|
|
31759
|
+
* Number of strips revealing the incoming shot.
|
|
31760
|
+
*/
|
|
31761
|
+
count?: number;
|
|
31762
|
+
/**
|
|
31763
|
+
* Orientation of the revealing strips.
|
|
31764
|
+
*/
|
|
31765
|
+
orientation?: 'vertical' | 'horizontal';
|
|
31766
|
+
} | {
|
|
31767
|
+
/**
|
|
31768
|
+
* Blur: Blur the outgoing shot into the incoming shot before returning to focus.
|
|
31769
|
+
*/
|
|
31770
|
+
kind: 'blur';
|
|
31771
|
+
/**
|
|
31772
|
+
* Blur radius in pixels at a reference frame height of 1080 pixels.
|
|
31773
|
+
*/
|
|
31774
|
+
radius?: number;
|
|
31775
|
+
};
|
|
31776
|
+
export type KnowledgeStaticChunking = {
|
|
31777
|
+
/**
|
|
31778
|
+
* static selects explicit chunk-size and overlap settings.
|
|
31779
|
+
*/
|
|
31780
|
+
type: 'static';
|
|
31781
|
+
/**
|
|
31782
|
+
* Chunk-size and overlap limits in estimated tokens.
|
|
31783
|
+
*/
|
|
31784
|
+
static: {
|
|
31785
|
+
/**
|
|
31786
|
+
* Estimated tokens per chunk.
|
|
31787
|
+
*/
|
|
31788
|
+
max_chunk_size_tokens: number;
|
|
31789
|
+
/**
|
|
31790
|
+
* Must not exceed half of max_chunk_size_tokens.
|
|
31791
|
+
*/
|
|
31792
|
+
chunk_overlap_tokens: number;
|
|
31793
|
+
};
|
|
31794
|
+
};
|
|
31795
|
+
export type MediaTranscriptEdit = {
|
|
31796
|
+
/**
|
|
31797
|
+
* Original literal text replaced by this accepted edit.
|
|
31798
|
+
*/
|
|
31799
|
+
readonly from: string;
|
|
31800
|
+
/**
|
|
31801
|
+
* 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.
|
|
31802
|
+
*/
|
|
31803
|
+
readonly to: string;
|
|
31804
|
+
/**
|
|
31805
|
+
* Zero-based index in the assembled, hallucination-filtered ASR segments. Segment timestamps do not change.
|
|
31806
|
+
*/
|
|
31807
|
+
readonly segment_id: number;
|
|
31808
|
+
};
|
|
31809
|
+
export type MediaShotFlags = {
|
|
31810
|
+
/**
|
|
31811
|
+
* Slide or screen-recorded picture/text sequence rather than live footage.
|
|
31812
|
+
*/
|
|
31813
|
+
readonly slideshow: MediaShotFlag;
|
|
31814
|
+
/**
|
|
31815
|
+
* Visible watermark.
|
|
31816
|
+
*/
|
|
31817
|
+
readonly watermark: MediaShotFlag;
|
|
31818
|
+
/**
|
|
31819
|
+
* Fingers or hands framing the scene.
|
|
31820
|
+
*/
|
|
31821
|
+
readonly hand_frame: MediaShotFlag;
|
|
31822
|
+
/**
|
|
31823
|
+
* Added text sticker or overlay.
|
|
31824
|
+
*/
|
|
31825
|
+
readonly text_sticker: MediaShotFlag;
|
|
31826
|
+
/**
|
|
31827
|
+
* Blur, severe camera shake, bad exposure or another visible quality defect.
|
|
31828
|
+
*/
|
|
31829
|
+
readonly low_quality: MediaShotFlag;
|
|
31830
|
+
};
|
|
31383
31831
|
export type SandboxSandboxIamToken = {
|
|
31384
31832
|
/**
|
|
31385
31833
|
* Audience of the workload token, stored exactly as provided.
|
|
@@ -31641,6 +32089,16 @@ export type CutCaptionWord = {
|
|
|
31641
32089
|
*/
|
|
31642
32090
|
length: number;
|
|
31643
32091
|
};
|
|
32092
|
+
export type MediaShotFlag = {
|
|
32093
|
+
/**
|
|
32094
|
+
* True when this visual characteristic is present.
|
|
32095
|
+
*/
|
|
32096
|
+
readonly value: boolean;
|
|
32097
|
+
/**
|
|
32098
|
+
* Confidence in this true or false judgment, from 0 to 1.
|
|
32099
|
+
*/
|
|
32100
|
+
readonly confidence: number;
|
|
32101
|
+
};
|
|
31644
32102
|
export type PraxisSdkSseGetBrowserV1SessionsSessionIdStream = BrowserStreamMessage;
|
|
31645
32103
|
/**
|
|
31646
32104
|
* 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 +32394,28 @@ export type AutomationJsonValueWritable = null | string | number | boolean | Aut
|
|
|
31936
32394
|
export type AutomationJsonObjectWritable = {
|
|
31937
32395
|
[key: string]: AutomationJsonValueWritable;
|
|
31938
32396
|
};
|
|
32397
|
+
export type KnowledgeNativeSearchPageWritable = {
|
|
32398
|
+
/**
|
|
32399
|
+
* Object discriminator; vector_store.search_results.page identifies a search result page.
|
|
32400
|
+
*/
|
|
32401
|
+
object: 'vector_store.search_results.page';
|
|
32402
|
+
/**
|
|
32403
|
+
* The queries used for retrieval, one per input query; rewritten when rewrite_query is true, otherwise the input as sent.
|
|
32404
|
+
*/
|
|
32405
|
+
search_query: Array<string>;
|
|
32406
|
+
/**
|
|
32407
|
+
* One result per matched chunk; the same file_id can occur more than once.
|
|
32408
|
+
*/
|
|
32409
|
+
data: Array<KnowledgeNativeSearchResultWritable>;
|
|
32410
|
+
/**
|
|
32411
|
+
* True when filtered chunks exceed max_num_results; next_page remains null.
|
|
32412
|
+
*/
|
|
32413
|
+
has_more: boolean;
|
|
32414
|
+
/**
|
|
32415
|
+
* Always null; no next search page.
|
|
32416
|
+
*/
|
|
32417
|
+
next_page: null;
|
|
32418
|
+
};
|
|
31939
32419
|
/**
|
|
31940
32420
|
* A caller-owned media library with lifecycle, usage, understanding settings and model selections.
|
|
31941
32421
|
*/
|
|
@@ -31943,7 +32423,7 @@ export type MediaLibraryWritable = {
|
|
|
31943
32423
|
/**
|
|
31944
32424
|
* Resolved model call IDs used for new uploads and reprocessing.
|
|
31945
32425
|
*/
|
|
31946
|
-
models:
|
|
32426
|
+
models: MediaMediaModelsWritable;
|
|
31947
32427
|
/**
|
|
31948
32428
|
* Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
|
|
31949
32429
|
*/
|
|
@@ -32138,7 +32618,7 @@ export type MediaAssetWritable = {
|
|
|
32138
32618
|
*/
|
|
32139
32619
|
url: string;
|
|
32140
32620
|
/**
|
|
32141
|
-
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the
|
|
32621
|
+
* 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
32622
|
*/
|
|
32143
32623
|
secure_url: string;
|
|
32144
32624
|
/**
|
|
@@ -32222,6 +32702,19 @@ export type MediaAssetWritable = {
|
|
|
32222
32702
|
};
|
|
32223
32703
|
};
|
|
32224
32704
|
};
|
|
32705
|
+
/**
|
|
32706
|
+
* Understanding results in this page, ordered by creation time ascending.
|
|
32707
|
+
*/
|
|
32708
|
+
export type MediaUnderstandingPageWritable = MediaPage & {
|
|
32709
|
+
/**
|
|
32710
|
+
* Understanding results in this page, ordered by creation time ascending.
|
|
32711
|
+
*/
|
|
32712
|
+
data: Array<MediaUnderstandingWritable>;
|
|
32713
|
+
/**
|
|
32714
|
+
* Opaque token to pass as cursor to listUnderstandings; null means no further page.
|
|
32715
|
+
*/
|
|
32716
|
+
next_cursor: string | null;
|
|
32717
|
+
};
|
|
32225
32718
|
/**
|
|
32226
32719
|
* Expression-search page with match counts, elapsed time and optional facet counts.
|
|
32227
32720
|
*/
|
|
@@ -32315,6 +32808,75 @@ export type AgentManaged193Writable = {
|
|
|
32315
32808
|
export type AgentManaged143Writable = {
|
|
32316
32809
|
[key: string]: string;
|
|
32317
32810
|
};
|
|
32811
|
+
export type KnowledgeNativeSearchResultWritable = {
|
|
32812
|
+
/**
|
|
32813
|
+
* Resource ID.
|
|
32814
|
+
*/
|
|
32815
|
+
file_id: string;
|
|
32816
|
+
/**
|
|
32817
|
+
* Original source filename for the matched file.
|
|
32818
|
+
*/
|
|
32819
|
+
filename: string;
|
|
32820
|
+
/**
|
|
32821
|
+
* Relevance ranking score for this chunk, clamped to the range 0 to 1; not a probability.
|
|
32822
|
+
*/
|
|
32823
|
+
score: number;
|
|
32824
|
+
/**
|
|
32825
|
+
* Current file attributes used for filtering; null when unset.
|
|
32826
|
+
*/
|
|
32827
|
+
attributes: KnowledgeAttributes | null;
|
|
32828
|
+
/**
|
|
32829
|
+
* Matched chunk text and its source coordinates; one chunk per native result.
|
|
32830
|
+
*/
|
|
32831
|
+
content: Array<{
|
|
32832
|
+
/**
|
|
32833
|
+
* text identifies an extracted text chunk.
|
|
32834
|
+
*/
|
|
32835
|
+
type: 'text';
|
|
32836
|
+
/**
|
|
32837
|
+
* Extracted text of the matched chunk, which may overlap neighboring chunks.
|
|
32838
|
+
*/
|
|
32839
|
+
text: string;
|
|
32840
|
+
/**
|
|
32841
|
+
* Resource ID.
|
|
32842
|
+
*/
|
|
32843
|
+
chunk_id?: string;
|
|
32844
|
+
/**
|
|
32845
|
+
* One-based source page containing the start of this chunk; null when no page mapping is available.
|
|
32846
|
+
*/
|
|
32847
|
+
page?: number | null;
|
|
32848
|
+
/**
|
|
32849
|
+
* Start and end offsets in UTF-16 code units.
|
|
32850
|
+
*/
|
|
32851
|
+
span?: [
|
|
32852
|
+
number,
|
|
32853
|
+
number
|
|
32854
|
+
];
|
|
32855
|
+
}>;
|
|
32856
|
+
/**
|
|
32857
|
+
* Native search explanation, included only when praxis.explain is requested.
|
|
32858
|
+
*/
|
|
32859
|
+
praxis?: {
|
|
32860
|
+
explain: KnowledgeSearchExplain;
|
|
32861
|
+
};
|
|
32862
|
+
};
|
|
32863
|
+
/**
|
|
32864
|
+
* Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
|
|
32865
|
+
*/
|
|
32866
|
+
export type MediaMediaModelsWritable = {
|
|
32867
|
+
/**
|
|
32868
|
+
* Model call ID for visual descriptions; the model must support image input.
|
|
32869
|
+
*/
|
|
32870
|
+
vision: string;
|
|
32871
|
+
/**
|
|
32872
|
+
* Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
|
|
32873
|
+
*/
|
|
32874
|
+
embedding: string;
|
|
32875
|
+
/**
|
|
32876
|
+
* 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.
|
|
32877
|
+
*/
|
|
32878
|
+
transcription: string;
|
|
32879
|
+
};
|
|
32318
32880
|
/**
|
|
32319
32881
|
* 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
32882
|
*/
|
|
@@ -32432,7 +32994,7 @@ export type MediaCloudinaryResourceWritable = {
|
|
|
32432
32994
|
*/
|
|
32433
32995
|
url: string;
|
|
32434
32996
|
/**
|
|
32435
|
-
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the
|
|
32997
|
+
* 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
32998
|
*/
|
|
32437
32999
|
secure_url: string;
|
|
32438
33000
|
/**
|
|
@@ -32455,7 +33017,7 @@ export type MediaChunkCompleteWritable = MediaCloudinaryResourceWritable & {
|
|
|
32455
33017
|
done: true;
|
|
32456
33018
|
};
|
|
32457
33019
|
/**
|
|
32458
|
-
* Per-task processing progress and its aggregate state for the asset.
|
|
33020
|
+
* Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video or audio sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
|
|
32459
33021
|
*/
|
|
32460
33022
|
export type MediaProcessingWritable = {
|
|
32461
33023
|
state: MediaProcessingState;
|
|
@@ -32470,6 +33032,76 @@ export type MediaProcessingWritable = {
|
|
|
32470
33032
|
*/
|
|
32471
33033
|
updated_at: MediaIsoTimestamp;
|
|
32472
33034
|
};
|
|
33035
|
+
/**
|
|
33036
|
+
* An immutable understanding result for an asset version, including superseded history when requested.
|
|
33037
|
+
*/
|
|
33038
|
+
export type MediaUnderstandingWritable = {
|
|
33039
|
+
/**
|
|
33040
|
+
* Generated identifier of this understanding result.
|
|
33041
|
+
*/
|
|
33042
|
+
id: MediaUnderstandingId;
|
|
33043
|
+
/**
|
|
33044
|
+
* Identifier of the asset from which this result was produced.
|
|
33045
|
+
*/
|
|
33046
|
+
asset_id: MediaAssetId;
|
|
33047
|
+
/**
|
|
33048
|
+
* Asset version processed to produce this result; compare with the asset’s current version.
|
|
33049
|
+
*/
|
|
33050
|
+
asset_version: number;
|
|
33051
|
+
/**
|
|
33052
|
+
* 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.
|
|
33053
|
+
*/
|
|
33054
|
+
kind: MediaUnderstandingKind;
|
|
33055
|
+
/**
|
|
33056
|
+
* Producer model identifier; a failure may use the configured model when no model response is available.
|
|
33057
|
+
*/
|
|
33058
|
+
producer: string;
|
|
33059
|
+
/**
|
|
33060
|
+
* Version of the producer that generated this understanding result.
|
|
33061
|
+
*/
|
|
33062
|
+
producer_version: string;
|
|
33063
|
+
/**
|
|
33064
|
+
* Source-media time range for a frame or transcript segment; null for results without a segment.
|
|
33065
|
+
*/
|
|
33066
|
+
segment: MediaSegment | null;
|
|
33067
|
+
/**
|
|
33068
|
+
* Result status: ready contains completed output; failed records an error.
|
|
33069
|
+
*/
|
|
33070
|
+
status: 'ready' | 'failed';
|
|
33071
|
+
/**
|
|
33072
|
+
* Text output, such as a caption, recognized text or transcript; null for structured-only or failed results.
|
|
33073
|
+
*/
|
|
33074
|
+
content: string | null;
|
|
33075
|
+
/**
|
|
33076
|
+
* 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.
|
|
33077
|
+
*/
|
|
33078
|
+
data: unknown | null;
|
|
33079
|
+
/**
|
|
33080
|
+
* Confidence value recorded by the producer; null when no confidence value is recorded.
|
|
33081
|
+
*/
|
|
33082
|
+
confidence: number | null;
|
|
33083
|
+
/**
|
|
33084
|
+
* Failure code and message, or null for a successful result.
|
|
33085
|
+
*/
|
|
33086
|
+
error: {
|
|
33087
|
+
/**
|
|
33088
|
+
* Failure code identifying why understanding could not complete.
|
|
33089
|
+
*/
|
|
33090
|
+
code: string;
|
|
33091
|
+
/**
|
|
33092
|
+
* Human-readable explanation of the understanding failure.
|
|
33093
|
+
*/
|
|
33094
|
+
message: string;
|
|
33095
|
+
} | null;
|
|
33096
|
+
/**
|
|
33097
|
+
* Whether a newer result or asset version has replaced this result. Excluded from listing unless include_superseded is true.
|
|
33098
|
+
*/
|
|
33099
|
+
superseded: boolean;
|
|
33100
|
+
/**
|
|
33101
|
+
* Time this immutable result was recorded, in UTC.
|
|
33102
|
+
*/
|
|
33103
|
+
created_at: MediaIsoTimestamp;
|
|
33104
|
+
};
|
|
32473
33105
|
/**
|
|
32474
33106
|
* A native asset returned by expression search; tags and context are included only when requested in with_field.
|
|
32475
33107
|
*/
|
|
@@ -32587,7 +33219,7 @@ export type MediaSearchAssetWritable = {
|
|
|
32587
33219
|
*/
|
|
32588
33220
|
url: string;
|
|
32589
33221
|
/**
|
|
32590
|
-
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the
|
|
33222
|
+
* 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
33223
|
*/
|
|
32592
33224
|
secure_url: string;
|
|
32593
33225
|
/**
|
|
@@ -32695,6 +33327,9 @@ export type MediaSemanticHitWritable = {
|
|
|
32695
33327
|
export type AgentManaged34Writable = {
|
|
32696
33328
|
[key: string]: unknown;
|
|
32697
33329
|
};
|
|
33330
|
+
export type MediaTranscriptCorrectionWritable = {
|
|
33331
|
+
[key: string]: unknown;
|
|
33332
|
+
};
|
|
32698
33333
|
/**
|
|
32699
33334
|
* 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
33335
|
*/
|
|
@@ -43297,7 +43932,7 @@ export type FileCreateSignedUploadResponse = FileCreateSignedUploadResponses[key
|
|
|
43297
43932
|
export type FileCreateContentUrlData = {
|
|
43298
43933
|
body?: {
|
|
43299
43934
|
/**
|
|
43300
|
-
* Download link lifetime in seconds, from 1 through 604800; omitted means
|
|
43935
|
+
* Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.
|
|
43301
43936
|
*/
|
|
43302
43937
|
ttl_seconds?: number;
|
|
43303
43938
|
};
|
|
@@ -44843,31 +45478,29 @@ export type CreateSystemoneResponse = CreateSystemoneResponses[keyof CreateSyste
|
|
|
44843
45478
|
export type CreateAudioTranscriptionData = {
|
|
44844
45479
|
body: {
|
|
44845
45480
|
/**
|
|
44846
|
-
*
|
|
45481
|
+
* Model catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix.
|
|
44847
45482
|
*/
|
|
44848
45483
|
model: string;
|
|
44849
45484
|
/**
|
|
44850
|
-
* Audio
|
|
45485
|
+
* Audio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model.
|
|
44851
45486
|
*/
|
|
44852
45487
|
file: Blob | File;
|
|
44853
45488
|
/**
|
|
44854
|
-
*
|
|
45489
|
+
* Source language code when known; omit to let the model detect the language.
|
|
44855
45490
|
*/
|
|
44856
45491
|
language?: string;
|
|
44857
45492
|
/**
|
|
44858
|
-
*
|
|
45493
|
+
* Optional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model.
|
|
44859
45494
|
*/
|
|
44860
45495
|
prompt?: string;
|
|
44861
45496
|
/**
|
|
44862
|
-
*
|
|
45497
|
+
* 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
45498
|
*/
|
|
44864
|
-
response_format?: 'json' | 'text' | 'verbose_json';
|
|
45499
|
+
response_format?: 'json' | 'text' | 'verbose_json' | 'diarized_json';
|
|
44865
45500
|
/**
|
|
44866
|
-
* Timestamp levels to
|
|
45501
|
+
* 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
45502
|
*/
|
|
44868
|
-
'timestamp_granularities[]'?:
|
|
44869
|
-
'segment'
|
|
44870
|
-
];
|
|
45503
|
+
'timestamp_granularities[]'?: Array<'word' | 'segment'>;
|
|
44871
45504
|
/**
|
|
44872
45505
|
* Both whisper-large-v3-turbo and qwen3-asr-flash return 400.
|
|
44873
45506
|
*/
|
|
@@ -44879,11 +45512,11 @@ export type CreateAudioTranscriptionData = {
|
|
|
44879
45512
|
};
|
|
44880
45513
|
export type CreateAudioTranscriptionErrors = {
|
|
44881
45514
|
/**
|
|
44882
|
-
*
|
|
45515
|
+
* A field
|
|
44883
45516
|
*/
|
|
44884
45517
|
400: unknown;
|
|
44885
45518
|
/**
|
|
44886
|
-
* No
|
|
45519
|
+
* No provider route supports this request; select an available model and its declared transcription features.
|
|
44887
45520
|
*/
|
|
44888
45521
|
503: unknown;
|
|
44889
45522
|
};
|
|
@@ -44893,58 +45526,79 @@ export type CreateAudioTranscriptionResponses = {
|
|
|
44893
45526
|
*/
|
|
44894
45527
|
200: {
|
|
44895
45528
|
/**
|
|
44896
|
-
*
|
|
45529
|
+
* Recognized speech text in the original language.
|
|
44897
45530
|
*/
|
|
44898
45531
|
text: string;
|
|
44899
45532
|
/**
|
|
44900
|
-
*
|
|
45533
|
+
* transcribe identifies speech-to-text transcription.
|
|
44901
45534
|
*/
|
|
44902
45535
|
task?: 'transcribe';
|
|
44903
45536
|
/**
|
|
44904
|
-
*
|
|
45537
|
+
* Detected or requested source language code.
|
|
44905
45538
|
*/
|
|
44906
45539
|
language?: string;
|
|
44907
45540
|
/**
|
|
44908
|
-
*
|
|
45541
|
+
* Audio duration in seconds when provided by the model.
|
|
44909
45542
|
*/
|
|
44910
45543
|
duration?: number;
|
|
44911
45544
|
/**
|
|
44912
|
-
*
|
|
45545
|
+
* Time-aligned speech segments when returned by the selected model and response format.
|
|
44913
45546
|
*/
|
|
44914
45547
|
segments?: Array<{
|
|
44915
45548
|
/**
|
|
44916
|
-
*
|
|
45549
|
+
* Segment identifier within this transcription response.
|
|
44917
45550
|
*/
|
|
44918
45551
|
id: number;
|
|
44919
45552
|
/**
|
|
44920
|
-
*
|
|
45553
|
+
* Inclusive start time in seconds from the beginning of the audio.
|
|
44921
45554
|
*/
|
|
44922
45555
|
start: number;
|
|
44923
45556
|
/**
|
|
44924
|
-
*
|
|
45557
|
+
* Exclusive end time in seconds from the beginning of the audio.
|
|
44925
45558
|
*/
|
|
44926
45559
|
end: number;
|
|
44927
45560
|
/**
|
|
44928
|
-
*
|
|
45561
|
+
* Recognized speech text in the original language.
|
|
44929
45562
|
*/
|
|
44930
45563
|
text: string;
|
|
44931
45564
|
/**
|
|
44932
|
-
*
|
|
45565
|
+
* Speaker label in diarized_json when supported; labels distinguish voices and are not verified identities.
|
|
45566
|
+
*/
|
|
45567
|
+
speaker?: string;
|
|
45568
|
+
/**
|
|
45569
|
+
* Decoding temperature reported by the transcription model.
|
|
44933
45570
|
*/
|
|
44934
45571
|
temperature?: number;
|
|
44935
45572
|
/**
|
|
44936
|
-
* Average
|
|
45573
|
+
* Average segment token log probability when provided.
|
|
44937
45574
|
*/
|
|
44938
45575
|
avg_logprob?: number;
|
|
44939
45576
|
/**
|
|
44940
|
-
*
|
|
45577
|
+
* Text compression ratio reported for this segment.
|
|
44941
45578
|
*/
|
|
44942
45579
|
compression_ratio?: number;
|
|
44943
45580
|
/**
|
|
44944
|
-
* Probability
|
|
45581
|
+
* Probability of no speech reported for this segment.
|
|
44945
45582
|
*/
|
|
44946
45583
|
no_speech_prob?: number;
|
|
44947
45584
|
}>;
|
|
45585
|
+
/**
|
|
45586
|
+
* Per-word source-audio timestamps when word granularity is requested and supported.
|
|
45587
|
+
*/
|
|
45588
|
+
words?: Array<{
|
|
45589
|
+
/**
|
|
45590
|
+
* Recognized word text in its original language.
|
|
45591
|
+
*/
|
|
45592
|
+
word: string;
|
|
45593
|
+
/**
|
|
45594
|
+
* Inclusive word start in seconds from the beginning of the audio.
|
|
45595
|
+
*/
|
|
45596
|
+
start: number;
|
|
45597
|
+
/**
|
|
45598
|
+
* Exclusive word end in seconds from the beginning of the audio.
|
|
45599
|
+
*/
|
|
45600
|
+
end: number;
|
|
45601
|
+
}>;
|
|
44948
45602
|
};
|
|
44949
45603
|
};
|
|
44950
45604
|
export type CreateAudioTranscriptionResponse = CreateAudioTranscriptionResponses[keyof CreateAudioTranscriptionResponses];
|
|
@@ -47791,6 +48445,76 @@ export type CountResponseInputTokensResponses = {
|
|
|
47791
48445
|
};
|
|
47792
48446
|
};
|
|
47793
48447
|
export type CountResponseInputTokensResponse = CountResponseInputTokensResponses[keyof CountResponseInputTokensResponses];
|
|
48448
|
+
export type ListOrganizationMembersData = {
|
|
48449
|
+
body?: never;
|
|
48450
|
+
path?: never;
|
|
48451
|
+
query?: {
|
|
48452
|
+
/**
|
|
48453
|
+
* Maximum members per page, from 1 to 100; defaults to 20.
|
|
48454
|
+
*/
|
|
48455
|
+
limit?: number;
|
|
48456
|
+
/**
|
|
48457
|
+
* Opaque next_page cursor returned by the previous response; omit for the first page.
|
|
48458
|
+
*/
|
|
48459
|
+
page?: string;
|
|
48460
|
+
};
|
|
48461
|
+
url: '/organization/v1/members';
|
|
48462
|
+
};
|
|
48463
|
+
export type ListOrganizationMembersErrors = {
|
|
48464
|
+
/**
|
|
48465
|
+
* Invalid limit or page cursor; use limit 1 to 100 and copy next_page from the previous response.
|
|
48466
|
+
*/
|
|
48467
|
+
400: unknown;
|
|
48468
|
+
/**
|
|
48469
|
+
* Missing or invalid credentials; provide a valid organization API key or runtime token.
|
|
48470
|
+
*/
|
|
48471
|
+
401: unknown;
|
|
48472
|
+
/**
|
|
48473
|
+
* Organization identity was refused; use a credential belonging to the organization.
|
|
48474
|
+
*/
|
|
48475
|
+
403: unknown;
|
|
48476
|
+
};
|
|
48477
|
+
export type ListOrganizationMembersResponses = {
|
|
48478
|
+
/**
|
|
48479
|
+
* Members of the authenticated organization, earliest join first.
|
|
48480
|
+
*/
|
|
48481
|
+
200: {
|
|
48482
|
+
/**
|
|
48483
|
+
* Organization members in ascending join order.
|
|
48484
|
+
*/
|
|
48485
|
+
data: Array<{
|
|
48486
|
+
/**
|
|
48487
|
+
* User identifier (usr_...). Use this id to assign an approver to an approval task.
|
|
48488
|
+
*/
|
|
48489
|
+
id: string;
|
|
48490
|
+
/**
|
|
48491
|
+
* Display name of the member; null when no name is set.
|
|
48492
|
+
*/
|
|
48493
|
+
name: string | null;
|
|
48494
|
+
/**
|
|
48495
|
+
* Email address of a member of your organization.
|
|
48496
|
+
*/
|
|
48497
|
+
email: string;
|
|
48498
|
+
/**
|
|
48499
|
+
* Organization role: owner owns the organization; admin manages it; member is a regular participant.
|
|
48500
|
+
*/
|
|
48501
|
+
role: 'owner' | 'admin' | 'member';
|
|
48502
|
+
/**
|
|
48503
|
+
* UTC ISO 8601 instant when this user joined the organization.
|
|
48504
|
+
*/
|
|
48505
|
+
joined_at: string;
|
|
48506
|
+
}>;
|
|
48507
|
+
/**
|
|
48508
|
+
* Whether another page of members is available.
|
|
48509
|
+
*/
|
|
48510
|
+
has_more: boolean;
|
|
48511
|
+
/**
|
|
48512
|
+
* Cursor to pass as page; null when no more members remain.
|
|
48513
|
+
*/
|
|
48514
|
+
next_page: string | null;
|
|
48515
|
+
};
|
|
48516
|
+
};
|
|
48517
|
+
export type ListOrganizationMembersResponse = ListOrganizationMembersResponses[keyof ListOrganizationMembersResponses];
|
|
47794
48518
|
export type ListOrganizationFeedbackData = {
|
|
47795
48519
|
body?: never;
|
|
47796
48520
|
path?: never;
|
|
@@ -68747,7 +69471,7 @@ export type CutListFramesData = {
|
|
|
68747
69471
|
*/
|
|
68748
69472
|
at: string;
|
|
68749
69473
|
/**
|
|
68750
|
-
*
|
|
69474
|
+
* 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.
|
|
68751
69475
|
*/
|
|
68752
69476
|
scale?: number;
|
|
68753
69477
|
/**
|
|
@@ -69089,7 +69813,7 @@ export type CutListExportsResponses = {
|
|
|
69089
69813
|
export type CutListExportsResponse = CutListExportsResponses[keyof CutListExportsResponses];
|
|
69090
69814
|
export type CutCreateExportData = {
|
|
69091
69815
|
/**
|
|
69092
|
-
* Start an export from a project revision into a bound library.
|
|
69816
|
+
* 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.
|
|
69093
69817
|
*/
|
|
69094
69818
|
body: CutExportInput;
|
|
69095
69819
|
path: {
|
|
@@ -70901,7 +71625,7 @@ export type KnowledgeListFilesResponses = {
|
|
|
70901
71625
|
};
|
|
70902
71626
|
export type KnowledgeListFilesResponse = KnowledgeListFilesResponses[keyof KnowledgeListFilesResponses];
|
|
70903
71627
|
export type KnowledgeAttachFileData = {
|
|
70904
|
-
body:
|
|
71628
|
+
body: KnowledgeNativeAttachFile;
|
|
70905
71629
|
path: {
|
|
70906
71630
|
/**
|
|
70907
71631
|
* Resource ID.
|
|
@@ -71202,7 +71926,7 @@ export type KnowledgeRetrieveFileContentResponses = {
|
|
|
71202
71926
|
};
|
|
71203
71927
|
export type KnowledgeRetrieveFileContentResponse = KnowledgeRetrieveFileContentResponses[keyof KnowledgeRetrieveFileContentResponses];
|
|
71204
71928
|
export type KnowledgeCreateFileBatchData = {
|
|
71205
|
-
body:
|
|
71929
|
+
body: KnowledgeNativeCreateBatch;
|
|
71206
71930
|
path: {
|
|
71207
71931
|
/**
|
|
71208
71932
|
* Resource ID.
|
|
@@ -72006,6 +72730,80 @@ export type MediaCreateLibraryResponses = {
|
|
|
72006
72730
|
200: MediaLibrary;
|
|
72007
72731
|
};
|
|
72008
72732
|
export type MediaCreateLibraryResponse = MediaCreateLibraryResponses[keyof MediaCreateLibraryResponses];
|
|
72733
|
+
export type MediaCreateFrameUrlsData = {
|
|
72734
|
+
body: {
|
|
72735
|
+
/**
|
|
72736
|
+
* 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.
|
|
72737
|
+
*/
|
|
72738
|
+
at_micros: Array<number>;
|
|
72739
|
+
/**
|
|
72740
|
+
* 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.
|
|
72741
|
+
*/
|
|
72742
|
+
width?: 160 | 320 | 640;
|
|
72743
|
+
};
|
|
72744
|
+
path: {
|
|
72745
|
+
/**
|
|
72746
|
+
* Library identifier returned by library creation or listing; must be accessible to the current credential.
|
|
72747
|
+
*/
|
|
72748
|
+
library_id: string;
|
|
72749
|
+
/**
|
|
72750
|
+
* Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps.
|
|
72751
|
+
*/
|
|
72752
|
+
asset_id: string;
|
|
72753
|
+
};
|
|
72754
|
+
query?: never;
|
|
72755
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/frames';
|
|
72756
|
+
};
|
|
72757
|
+
export type MediaCreateFrameUrlsErrors = {
|
|
72758
|
+
/**
|
|
72759
|
+
* INVALID_PARAMS: supply 1–20 nonnegative integer timestamps below video duration and width 160, 320 or 640; images and audio cannot produce video frames.
|
|
72760
|
+
*/
|
|
72761
|
+
400: MediaMediaError;
|
|
72762
|
+
/**
|
|
72763
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
72764
|
+
*/
|
|
72765
|
+
403: MediaMediaError;
|
|
72766
|
+
/**
|
|
72767
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
72768
|
+
*/
|
|
72769
|
+
404: MediaMediaError;
|
|
72770
|
+
/**
|
|
72771
|
+
* Request failed; see the error code reference.
|
|
72772
|
+
*/
|
|
72773
|
+
409: MediaMediaError;
|
|
72774
|
+
/**
|
|
72775
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
72776
|
+
*/
|
|
72777
|
+
413: MediaMediaError;
|
|
72778
|
+
/**
|
|
72779
|
+
* This media format is unsupported; provide a supported format.
|
|
72780
|
+
*/
|
|
72781
|
+
415: MediaMediaError;
|
|
72782
|
+
/**
|
|
72783
|
+
* A rate limit was reached; wait before retrying.
|
|
72784
|
+
*/
|
|
72785
|
+
429: MediaMediaError;
|
|
72786
|
+
/**
|
|
72787
|
+
* The requested operation is unsupported; choose a supported method.
|
|
72788
|
+
*/
|
|
72789
|
+
501: MediaMediaError;
|
|
72790
|
+
/**
|
|
72791
|
+
* Request failed; see the error code reference.
|
|
72792
|
+
*/
|
|
72793
|
+
502: MediaMediaError;
|
|
72794
|
+
/**
|
|
72795
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
72796
|
+
*/
|
|
72797
|
+
503: MediaMediaError;
|
|
72798
|
+
};
|
|
72799
|
+
export type MediaCreateFrameUrlsError = MediaCreateFrameUrlsErrors[keyof MediaCreateFrameUrlsErrors];
|
|
72800
|
+
export type MediaCreateFrameUrlsResponses = {
|
|
72801
|
+
/**
|
|
72802
|
+
* Successful response.
|
|
72803
|
+
*/
|
|
72804
|
+
200: MediaFrameUrls;
|
|
72805
|
+
};
|
|
72806
|
+
export type MediaCreateFrameUrlsResponse = MediaCreateFrameUrlsResponses[keyof MediaCreateFrameUrlsResponses];
|
|
72009
72807
|
export type MediaDeleteLibraryData = {
|
|
72010
72808
|
body?: never;
|
|
72011
72809
|
path: {
|
|
@@ -72133,6 +72931,10 @@ export type MediaUpdateLibraryData = {
|
|
|
72133
72931
|
* Partial update of an active media library.
|
|
72134
72932
|
*/
|
|
72135
72933
|
body: {
|
|
72934
|
+
/**
|
|
72935
|
+
* 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.
|
|
72936
|
+
*/
|
|
72937
|
+
hotwords?: Array<string>;
|
|
72136
72938
|
/**
|
|
72137
72939
|
* 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.
|
|
72138
72940
|
*/
|
|
@@ -72446,7 +73248,7 @@ export type MediaUploadAssetData = {
|
|
|
72446
73248
|
*/
|
|
72447
73249
|
display_name?: string;
|
|
72448
73250
|
/**
|
|
72449
|
-
* Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
|
|
73251
|
+
* 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.
|
|
72450
73252
|
*/
|
|
72451
73253
|
asset_folder?: string;
|
|
72452
73254
|
/**
|
|
@@ -72488,7 +73290,7 @@ export type MediaUploadAssetData = {
|
|
|
72488
73290
|
*/
|
|
72489
73291
|
resource_type?: 'image' | 'video' | 'raw' | 'auto';
|
|
72490
73292
|
/**
|
|
72491
|
-
* Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
|
|
73293
|
+
* 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.
|
|
72492
73294
|
*/
|
|
72493
73295
|
type?: MediaDeliveryType;
|
|
72494
73296
|
};
|
|
@@ -72567,7 +73369,7 @@ export type MediaImportAssetData = {
|
|
|
72567
73369
|
*/
|
|
72568
73370
|
body: {
|
|
72569
73371
|
/**
|
|
72570
|
-
* File ID to copy into this library instead of file bytes. This independent copy defaults to
|
|
73372
|
+
* 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.
|
|
72571
73373
|
*/
|
|
72572
73374
|
file_id: string;
|
|
72573
73375
|
/**
|
|
@@ -72583,7 +73385,7 @@ export type MediaImportAssetData = {
|
|
|
72583
73385
|
*/
|
|
72584
73386
|
display_name?: string;
|
|
72585
73387
|
/**
|
|
72586
|
-
* Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
|
|
73388
|
+
* 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.
|
|
72587
73389
|
*/
|
|
72588
73390
|
asset_folder?: string;
|
|
72589
73391
|
/**
|
|
@@ -72625,7 +73427,7 @@ export type MediaImportAssetData = {
|
|
|
72625
73427
|
*/
|
|
72626
73428
|
resource_type?: 'image' | 'video' | 'raw' | 'auto';
|
|
72627
73429
|
/**
|
|
72628
|
-
* Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
|
|
73430
|
+
* 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.
|
|
72629
73431
|
*/
|
|
72630
73432
|
type?: MediaDeliveryType;
|
|
72631
73433
|
};
|
|
@@ -72828,7 +73630,7 @@ export type MediaUpdateAssetData = {
|
|
|
72828
73630
|
*/
|
|
72829
73631
|
display_name?: string;
|
|
72830
73632
|
/**
|
|
72831
|
-
* Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
|
|
73633
|
+
* 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.
|
|
72832
73634
|
*/
|
|
72833
73635
|
asset_folder?: string;
|
|
72834
73636
|
/**
|
|
@@ -72911,7 +73713,7 @@ export type MediaReprocessAssetData = {
|
|
|
72911
73713
|
*/
|
|
72912
73714
|
body: {
|
|
72913
73715
|
/**
|
|
72914
|
-
* Processing tasks to rerun. Omit to retry failed tasks
|
|
73716
|
+
* 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.
|
|
72915
73717
|
*/
|
|
72916
73718
|
kinds?: Array<MediaProcessingKind>;
|
|
72917
73719
|
};
|
|
@@ -72996,9 +73798,9 @@ export type MediaListUnderstandingsData = {
|
|
|
72996
73798
|
*/
|
|
72997
73799
|
include_superseded?: boolean;
|
|
72998
73800
|
/**
|
|
72999
|
-
*
|
|
73801
|
+
* 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.
|
|
73000
73802
|
*/
|
|
73001
|
-
kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
|
|
73803
|
+
kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
|
|
73002
73804
|
/**
|
|
73003
73805
|
* Cursor from the previous next_cursor.
|
|
73004
73806
|
*/
|
|
@@ -73066,7 +73868,7 @@ export type MediaExpressionSearchData = {
|
|
|
73066
73868
|
*/
|
|
73067
73869
|
body: {
|
|
73068
73870
|
/**
|
|
73069
|
-
* 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.
|
|
73871
|
+
* 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.
|
|
73070
73872
|
*/
|
|
73071
73873
|
expression?: string;
|
|
73072
73874
|
/**
|
|
@@ -73475,6 +74277,10 @@ export type MediaCreateBatchData = {
|
|
|
73475
74277
|
* Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
|
|
73476
74278
|
*/
|
|
73477
74279
|
selector: MediaBatchSelector;
|
|
74280
|
+
/**
|
|
74281
|
+
* Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
|
|
74282
|
+
*/
|
|
74283
|
+
reason?: string;
|
|
73478
74284
|
};
|
|
73479
74285
|
path: {
|
|
73480
74286
|
/**
|
|
@@ -73609,6 +74415,10 @@ export type MediaBatchAssetsData = {
|
|
|
73609
74415
|
* Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
|
|
73610
74416
|
*/
|
|
73611
74417
|
selector: MediaBatchSelector;
|
|
74418
|
+
/**
|
|
74419
|
+
* Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
|
|
74420
|
+
*/
|
|
74421
|
+
reason?: string;
|
|
73612
74422
|
};
|
|
73613
74423
|
path: {
|
|
73614
74424
|
/**
|
|
@@ -73822,7 +74632,7 @@ export type MediaCreateDeliveryTokenData = {
|
|
|
73822
74632
|
*/
|
|
73823
74633
|
acl?: string;
|
|
73824
74634
|
/**
|
|
73825
|
-
* Token lifetime in seconds, from 1 to 604800 inclusive; defaults to
|
|
74635
|
+
* Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900.
|
|
73826
74636
|
*/
|
|
73827
74637
|
expires_in?: number;
|
|
73828
74638
|
};
|
|
@@ -73885,6 +74695,145 @@ export type MediaCreateDeliveryTokenResponses = {
|
|
|
73885
74695
|
200: MediaDeliveryToken;
|
|
73886
74696
|
};
|
|
73887
74697
|
export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
|
|
74698
|
+
export type MediaUnderstandingFailureSummaryData = {
|
|
74699
|
+
body?: never;
|
|
74700
|
+
path: {
|
|
74701
|
+
/**
|
|
74702
|
+
* Library ID returned by creation.
|
|
74703
|
+
*/
|
|
74704
|
+
library_id: string;
|
|
74705
|
+
};
|
|
74706
|
+
query?: never;
|
|
74707
|
+
url: '/media/v1/libraries/{library_id}/understandings/failure_summary';
|
|
74708
|
+
};
|
|
74709
|
+
export type MediaUnderstandingFailureSummaryErrors = {
|
|
74710
|
+
/**
|
|
74711
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
74712
|
+
*/
|
|
74713
|
+
400: MediaMediaError;
|
|
74714
|
+
/**
|
|
74715
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
74716
|
+
*/
|
|
74717
|
+
403: MediaMediaError;
|
|
74718
|
+
/**
|
|
74719
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
74720
|
+
*/
|
|
74721
|
+
404: MediaMediaError;
|
|
74722
|
+
/**
|
|
74723
|
+
* Request failed; see the error code reference.
|
|
74724
|
+
*/
|
|
74725
|
+
409: MediaMediaError;
|
|
74726
|
+
/**
|
|
74727
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
74728
|
+
*/
|
|
74729
|
+
413: MediaMediaError;
|
|
74730
|
+
/**
|
|
74731
|
+
* This media format is unsupported; provide a supported format.
|
|
74732
|
+
*/
|
|
74733
|
+
415: MediaMediaError;
|
|
74734
|
+
/**
|
|
74735
|
+
* A rate limit was reached; wait before retrying.
|
|
74736
|
+
*/
|
|
74737
|
+
429: MediaMediaError;
|
|
74738
|
+
/**
|
|
74739
|
+
* The requested operation is unsupported; choose a supported method.
|
|
74740
|
+
*/
|
|
74741
|
+
501: MediaMediaError;
|
|
74742
|
+
/**
|
|
74743
|
+
* Request failed; see the error code reference.
|
|
74744
|
+
*/
|
|
74745
|
+
502: MediaMediaError;
|
|
74746
|
+
/**
|
|
74747
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
74748
|
+
*/
|
|
74749
|
+
503: MediaMediaError;
|
|
74750
|
+
};
|
|
74751
|
+
export type MediaUnderstandingFailureSummaryError = MediaUnderstandingFailureSummaryErrors[keyof MediaUnderstandingFailureSummaryErrors];
|
|
74752
|
+
export type MediaUnderstandingFailureSummaryResponses = {
|
|
74753
|
+
/**
|
|
74754
|
+
* Successful response.
|
|
74755
|
+
*/
|
|
74756
|
+
200: MediaFailureSummary;
|
|
74757
|
+
};
|
|
74758
|
+
export type MediaUnderstandingFailureSummaryResponse = MediaUnderstandingFailureSummaryResponses[keyof MediaUnderstandingFailureSummaryResponses];
|
|
74759
|
+
export type MediaListUnderstandingsByLibraryData = {
|
|
74760
|
+
body?: never;
|
|
74761
|
+
path: {
|
|
74762
|
+
/**
|
|
74763
|
+
* Library ID returned by creation.
|
|
74764
|
+
*/
|
|
74765
|
+
library_id: string;
|
|
74766
|
+
};
|
|
74767
|
+
query?: {
|
|
74768
|
+
/**
|
|
74769
|
+
* Folder path including all descendants; omitted or empty selects the entire library.
|
|
74770
|
+
*/
|
|
74771
|
+
folder?: string;
|
|
74772
|
+
/**
|
|
74773
|
+
* Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.
|
|
74774
|
+
*/
|
|
74775
|
+
kinds?: string;
|
|
74776
|
+
/**
|
|
74777
|
+
* Cursor from the previous next_cursor.
|
|
74778
|
+
*/
|
|
74779
|
+
cursor?: string;
|
|
74780
|
+
/**
|
|
74781
|
+
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
74782
|
+
*/
|
|
74783
|
+
limit?: number;
|
|
74784
|
+
};
|
|
74785
|
+
url: '/media/v1/libraries/{library_id}/understandings';
|
|
74786
|
+
};
|
|
74787
|
+
export type MediaListUnderstandingsByLibraryErrors = {
|
|
74788
|
+
/**
|
|
74789
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
74790
|
+
*/
|
|
74791
|
+
400: MediaMediaError;
|
|
74792
|
+
/**
|
|
74793
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
74794
|
+
*/
|
|
74795
|
+
403: MediaMediaError;
|
|
74796
|
+
/**
|
|
74797
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
74798
|
+
*/
|
|
74799
|
+
404: MediaMediaError;
|
|
74800
|
+
/**
|
|
74801
|
+
* Request failed; see the error code reference.
|
|
74802
|
+
*/
|
|
74803
|
+
409: MediaMediaError;
|
|
74804
|
+
/**
|
|
74805
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
74806
|
+
*/
|
|
74807
|
+
413: MediaMediaError;
|
|
74808
|
+
/**
|
|
74809
|
+
* This media format is unsupported; provide a supported format.
|
|
74810
|
+
*/
|
|
74811
|
+
415: MediaMediaError;
|
|
74812
|
+
/**
|
|
74813
|
+
* A rate limit was reached; wait before retrying.
|
|
74814
|
+
*/
|
|
74815
|
+
429: MediaMediaError;
|
|
74816
|
+
/**
|
|
74817
|
+
* The requested operation is unsupported; choose a supported method.
|
|
74818
|
+
*/
|
|
74819
|
+
501: MediaMediaError;
|
|
74820
|
+
/**
|
|
74821
|
+
* Request failed; see the error code reference.
|
|
74822
|
+
*/
|
|
74823
|
+
502: MediaMediaError;
|
|
74824
|
+
/**
|
|
74825
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
74826
|
+
*/
|
|
74827
|
+
503: MediaMediaError;
|
|
74828
|
+
};
|
|
74829
|
+
export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
|
|
74830
|
+
export type MediaListUnderstandingsByLibraryResponses = {
|
|
74831
|
+
/**
|
|
74832
|
+
* Successful response.
|
|
74833
|
+
*/
|
|
74834
|
+
200: MediaUnderstandingPage;
|
|
74835
|
+
};
|
|
74836
|
+
export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
|
|
73888
74837
|
export type GetSandboxV1SandboxesData = {
|
|
73889
74838
|
body?: never;
|
|
73890
74839
|
path?: never;
|