@deepraxis/sdk 0.1.1-dev.6454a0a → 0.1.1-dev.66a3ed8
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 +35 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +159 -52
- package/dist/generated/sdk.gen.js +242 -51
- package/dist/generated/types.gen.d.ts +2094 -267
- package/dist/operations.generated.d.ts +384 -65
- package/dist/operations.generated.js +472 -64
- package/dist/resources.generated.d.ts +38 -8
- package/dist/resources.generated.js +23 -0
- package/package.json +1 -1
|
@@ -1144,7 +1144,7 @@ export type OwnFileDeleteFileResponse = {
|
|
|
1144
1144
|
};
|
|
1145
1145
|
export type OwnFilePraxisCreateUpload = {
|
|
1146
1146
|
/**
|
|
1147
|
-
* Exact complete file length in bytes, from 1 through
|
|
1147
|
+
* Exact complete file length in bytes, from 1 through 21474836480 (20 GiB); the sum of completed parts must match.
|
|
1148
1148
|
*/
|
|
1149
1149
|
bytes: number;
|
|
1150
1150
|
/**
|
|
@@ -1195,7 +1195,7 @@ export type OwnFilePraxisUpload = {
|
|
|
1195
1195
|
*/
|
|
1196
1196
|
created_at: number;
|
|
1197
1197
|
/**
|
|
1198
|
-
* Expiry time as Unix seconds; unfinished uploads expire after
|
|
1198
|
+
* Expiry time as Unix seconds; unfinished uploads expire after 7 days.
|
|
1199
1199
|
*/
|
|
1200
1200
|
expires_at: number;
|
|
1201
1201
|
/**
|
|
@@ -1207,13 +1207,38 @@ export type OwnFilePraxisUpload = {
|
|
|
1207
1207
|
*/
|
|
1208
1208
|
purpose: 'user_data' | 'assistants' | 'vision';
|
|
1209
1209
|
/**
|
|
1210
|
-
* Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its
|
|
1210
|
+
* Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its seven-day lifetime.
|
|
1211
1211
|
*/
|
|
1212
1212
|
status: 'pending' | 'completed' | 'cancelled' | 'expired';
|
|
1213
1213
|
/**
|
|
1214
1214
|
* Present after complete. A file with status uploaded is still processing; poll files.retrieve until processed before use.
|
|
1215
1215
|
*/
|
|
1216
1216
|
file?: OwnFileOpenAiFile | null;
|
|
1217
|
+
/**
|
|
1218
|
+
* Fixed part length in bytes for a fixed-size upload, or null for a general upload. Send exactly this many bytes per numbered part except for the final remainder.
|
|
1219
|
+
*/
|
|
1220
|
+
part_size?: number | null;
|
|
1221
|
+
/**
|
|
1222
|
+
* Parts the upload already holds, in resume order: numbered parts by number, then a general upload's parts by arrival. Query GET /file/v1/uploads/{upload_id} after a break and resend only the numbers missing here.
|
|
1223
|
+
*/
|
|
1224
|
+
received_parts?: Array<{
|
|
1225
|
+
/**
|
|
1226
|
+
* Fixed part number, or null for a part of a general upload.
|
|
1227
|
+
*/
|
|
1228
|
+
part_number: number | null;
|
|
1229
|
+
/**
|
|
1230
|
+
* Part identifier to pass to complete for this content.
|
|
1231
|
+
*/
|
|
1232
|
+
id: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* Accepted length of this part in bytes.
|
|
1235
|
+
*/
|
|
1236
|
+
bytes: number;
|
|
1237
|
+
/**
|
|
1238
|
+
* Part content digest prefixed sha256:.
|
|
1239
|
+
*/
|
|
1240
|
+
sha256: string;
|
|
1241
|
+
}>;
|
|
1217
1242
|
/**
|
|
1218
1243
|
* Declared MIME type, verified during assembly.
|
|
1219
1244
|
*/
|
|
@@ -1274,7 +1299,7 @@ export type OwnFileSignedUploadRequest = {
|
|
|
1274
1299
|
*/
|
|
1275
1300
|
filename: string;
|
|
1276
1301
|
/**
|
|
1277
|
-
* Exact local file size in bytes, from 1 through
|
|
1302
|
+
* Exact local file size in bytes, from 1 through 21474836480 (20 GiB). Up to 104857600 bytes returns one PUT URL; larger files return numbered part URLs, a completion URL and a status URL. Every PUT requires its exact signed Content-Length.
|
|
1278
1303
|
*/
|
|
1279
1304
|
bytes: number;
|
|
1280
1305
|
/**
|
|
@@ -1286,7 +1311,7 @@ export type OwnFileSignedUploadRequest = {
|
|
|
1286
1311
|
*/
|
|
1287
1312
|
purpose?: 'user_data' | 'assistants' | 'vision';
|
|
1288
1313
|
/**
|
|
1289
|
-
* Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or
|
|
1314
|
+
* Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 604800 (7 days) for multipart. All part URLs, the status URL and the completion URL share one expiry. This does not set the resulting file's lifetime.
|
|
1290
1315
|
*/
|
|
1291
1316
|
expires_in?: number;
|
|
1292
1317
|
/**
|
|
@@ -1337,6 +1362,10 @@ export type OwnFileSignedUploadResponse = {
|
|
|
1337
1362
|
* Bearer URL to POST without a body after every chunk is acknowledged. Returns 201 with the file object; missing chunks return 400 and successful completion replays return 410 CAPABILITY_USED.
|
|
1338
1363
|
*/
|
|
1339
1364
|
complete_url: string;
|
|
1365
|
+
/**
|
|
1366
|
+
* Read-only bearer URL for GET that answers the same body as GET /file/v1/uploads/{upload_id}: status, part_size and the received_parts. Use it after a break to resend only the missing chunks; it needs no API key and every write on it is refused.
|
|
1367
|
+
*/
|
|
1368
|
+
status_url: string;
|
|
1340
1369
|
};
|
|
1341
1370
|
/**
|
|
1342
1371
|
* Problem document returned by the Meta method catalog on failure.
|
|
@@ -12774,6 +12803,10 @@ export type CutFramesResult = {
|
|
|
12774
12803
|
images: {
|
|
12775
12804
|
[key: string]: CutRenderRef;
|
|
12776
12805
|
};
|
|
12806
|
+
/**
|
|
12807
|
+
* Frame delivery warnings; empty when every requested source frame was available.
|
|
12808
|
+
*/
|
|
12809
|
+
warnings: Array<CutFrameWarning>;
|
|
12777
12810
|
};
|
|
12778
12811
|
/**
|
|
12779
12812
|
* Analysis status and available ranges for each source asset and kind.
|
|
@@ -12789,13 +12822,17 @@ export type CutAnalysisResult = {
|
|
|
12789
12822
|
*/
|
|
12790
12823
|
version: number;
|
|
12791
12824
|
/**
|
|
12792
|
-
* silence identifies
|
|
12825
|
+
* silence identifies transcript-based speech pauses, not music or loudness; filler identifies filler-word spans; scenes identifies scene ranges.
|
|
12793
12826
|
*/
|
|
12794
12827
|
kind: 'silence' | 'filler' | 'scenes';
|
|
12795
12828
|
/**
|
|
12796
|
-
* pending means analysis is still running; ready means
|
|
12829
|
+
* pending means analysis is still running; ready means analysis completed, including an empty no_speech result; unsupported means no usable transcript or this analysis kind is inapplicable; failed means analysis did not complete.
|
|
12797
12830
|
*/
|
|
12798
12831
|
status: 'pending' | 'ready' | 'unsupported' | 'failed';
|
|
12832
|
+
/**
|
|
12833
|
+
* no_speech means a completed current-version transcript contains no words (ready with empty segments); no_transcript means no completed current-version transcript is available (unsupported). Failed transcriptions remain failed.
|
|
12834
|
+
*/
|
|
12835
|
+
reason?: 'no_speech' | 'no_transcript';
|
|
12799
12836
|
/**
|
|
12800
12837
|
* Detected source ranges in seconds, available when status is ready.
|
|
12801
12838
|
*/
|
|
@@ -12988,6 +13025,14 @@ export type CutExport = {
|
|
|
12988
13025
|
* Destination media library identifier.
|
|
12989
13026
|
*/
|
|
12990
13027
|
library_id: string;
|
|
13028
|
+
/**
|
|
13029
|
+
* Frozen destination path within the library, when supplied.
|
|
13030
|
+
*/
|
|
13031
|
+
folder?: string;
|
|
13032
|
+
/**
|
|
13033
|
+
* Frozen sanitized display name, when supplied.
|
|
13034
|
+
*/
|
|
13035
|
+
name?: string;
|
|
12991
13036
|
};
|
|
12992
13037
|
/**
|
|
12993
13038
|
* Rendering progress; partial progress is not successful completion.
|
|
@@ -13006,6 +13051,27 @@ export type CutExport = {
|
|
|
13006
13051
|
*/
|
|
13007
13052
|
audio: 'pending' | 'done';
|
|
13008
13053
|
};
|
|
13054
|
+
/**
|
|
13055
|
+
* Present when normalization was requested; contains requested targets and measured output levels.
|
|
13056
|
+
*/
|
|
13057
|
+
loudness?: {
|
|
13058
|
+
/**
|
|
13059
|
+
* Requested integrated loudness target in LUFS.
|
|
13060
|
+
*/
|
|
13061
|
+
target_lufs: number;
|
|
13062
|
+
/**
|
|
13063
|
+
* Requested maximum true peak in dBTP.
|
|
13064
|
+
*/
|
|
13065
|
+
true_peak_dbtp: number;
|
|
13066
|
+
/**
|
|
13067
|
+
* Measured integrated loudness of the rendered export in LUFS.
|
|
13068
|
+
*/
|
|
13069
|
+
integrated_lufs: number;
|
|
13070
|
+
/**
|
|
13071
|
+
* Measured maximum true peak of the rendered export in dBTP.
|
|
13072
|
+
*/
|
|
13073
|
+
measured_true_peak_dbtp: number;
|
|
13074
|
+
};
|
|
13009
13075
|
/**
|
|
13010
13076
|
* Output media reference, available after the export reaches done.
|
|
13011
13077
|
*/
|
|
@@ -13027,9 +13093,22 @@ export type CutExport = {
|
|
|
13027
13093
|
*/
|
|
13028
13094
|
chunk?: number;
|
|
13029
13095
|
/**
|
|
13030
|
-
*
|
|
13096
|
+
* Safe structured downstream failure information; older jobs may contain a string.
|
|
13031
13097
|
*/
|
|
13032
|
-
cause?: string
|
|
13098
|
+
cause?: string | {
|
|
13099
|
+
/**
|
|
13100
|
+
* Export stage that failed.
|
|
13101
|
+
*/
|
|
13102
|
+
stage: string;
|
|
13103
|
+
/**
|
|
13104
|
+
* Downstream service error code, when available.
|
|
13105
|
+
*/
|
|
13106
|
+
code?: string;
|
|
13107
|
+
};
|
|
13108
|
+
/**
|
|
13109
|
+
* Downstream request identifier, when supplied by the service error.
|
|
13110
|
+
*/
|
|
13111
|
+
request_id?: string;
|
|
13033
13112
|
};
|
|
13034
13113
|
/**
|
|
13035
13114
|
* ISO 8601 timestamp when this export was accepted.
|
|
@@ -13048,6 +13127,14 @@ export type CutExport = {
|
|
|
13048
13127
|
* Start an export from a project revision into a bound library.
|
|
13049
13128
|
*/
|
|
13050
13129
|
export type CutExportInput = {
|
|
13130
|
+
/**
|
|
13131
|
+
* Optional destination path within the bound media library; omitted uses its default folder.
|
|
13132
|
+
*/
|
|
13133
|
+
folder?: string;
|
|
13134
|
+
/**
|
|
13135
|
+
* Nonempty display name, frozen with the export. Path separators and control characters become hyphens; limited to 200 characters. Omitted uses project name and timestamp.
|
|
13136
|
+
*/
|
|
13137
|
+
name?: string;
|
|
13051
13138
|
/**
|
|
13052
13139
|
* Optional render settings; omitted fields use the project export defaults.
|
|
13053
13140
|
*/
|
|
@@ -13057,6 +13144,19 @@ export type CutExportInput = {
|
|
|
13057
13144
|
*/
|
|
13058
13145
|
binding?: string;
|
|
13059
13146
|
revision?: CutRevision;
|
|
13147
|
+
/**
|
|
13148
|
+
* Optional loudness normalization target; normalization adds analysis and rendering work.
|
|
13149
|
+
*/
|
|
13150
|
+
loudness?: {
|
|
13151
|
+
/**
|
|
13152
|
+
* Integrated loudness target in LUFS.
|
|
13153
|
+
*/
|
|
13154
|
+
target_lufs: number;
|
|
13155
|
+
/**
|
|
13156
|
+
* Maximum true peak in dBTP.
|
|
13157
|
+
*/
|
|
13158
|
+
true_peak_dbtp: number;
|
|
13159
|
+
};
|
|
13060
13160
|
};
|
|
13061
13161
|
/**
|
|
13062
13162
|
* One page of organization-accessible exports.
|
|
@@ -13583,7 +13683,7 @@ export type KnowledgeNativeCreateVectorStore = {
|
|
|
13583
13683
|
* Existing File IDs to attach; the store allows up to 10,000 files.
|
|
13584
13684
|
*/
|
|
13585
13685
|
file_ids?: Array<string>;
|
|
13586
|
-
chunking_strategy?:
|
|
13686
|
+
chunking_strategy?: KnowledgeNativeChunkingInput;
|
|
13587
13687
|
/**
|
|
13588
13688
|
* Accepted but not saved or returned; its type is not validated.
|
|
13589
13689
|
*/
|
|
@@ -13747,7 +13847,7 @@ export type KnowledgeNativeVectorStoreFile = {
|
|
|
13747
13847
|
* Unix timestamp in seconds.
|
|
13748
13848
|
*/
|
|
13749
13849
|
created_at: number;
|
|
13750
|
-
chunking_strategy:
|
|
13850
|
+
chunking_strategy: KnowledgeNativeChunking;
|
|
13751
13851
|
/**
|
|
13752
13852
|
* File attributes used for search filtering; null means no attributes are set.
|
|
13753
13853
|
*/
|
|
@@ -13757,7 +13857,7 @@ export type KnowledgeNativeVectorStoreFile = {
|
|
|
13757
13857
|
*/
|
|
13758
13858
|
praxis?: {
|
|
13759
13859
|
/**
|
|
13760
|
-
* Specific ingestion failure: file_too_large exceeds 50 MiB; encrypted requires an unencrypted source; empty has no extractable text; unsupported_type needs a supported format; token_limit exceeds 5000000 estimated tokens; recognition_unavailable exhausted OCR retries; deadline_exceeded reached the ingestion or conversion deadline; internal is an unexpected provider or processing error. last_error retains the compatible code and an actionable message.
|
|
13860
|
+
* Specific ingestion failure: file_too_large exceeds 512 MiB for PDFs or 50 MiB for other formats (the Router conversion limit); encrypted requires an unencrypted source; empty has no extractable text; unsupported_type needs a supported format; token_limit exceeds 5000000 estimated tokens; recognition_unavailable exhausted OCR retries; deadline_exceeded reached the ingestion or conversion deadline; internal is an unexpected provider or processing error. last_error retains the compatible code and an actionable message.
|
|
13761
13861
|
*/
|
|
13762
13862
|
failure_reason?: 'file_too_large' | 'encrypted' | 'empty' | 'unsupported_type' | 'token_limit' | 'recognition_unavailable' | 'deadline_exceeded' | 'internal';
|
|
13763
13863
|
/**
|
|
@@ -13794,7 +13894,7 @@ export type KnowledgeNativeVectorStoreFile = {
|
|
|
13794
13894
|
chunk_count: number;
|
|
13795
13895
|
};
|
|
13796
13896
|
};
|
|
13797
|
-
export type
|
|
13897
|
+
export type KnowledgeNativeAttachFile = {
|
|
13798
13898
|
/**
|
|
13799
13899
|
* Existing source File ID returned by file upload; the file must be visible to the caller.
|
|
13800
13900
|
*/
|
|
@@ -13803,7 +13903,7 @@ export type KnowledgeAttachFile = {
|
|
|
13803
13903
|
* Search-filter attributes for a newly attached file; omission or null leaves attributes unset. Reattaching an existing file does not change them.
|
|
13804
13904
|
*/
|
|
13805
13905
|
attributes?: KnowledgeAttributes | null;
|
|
13806
|
-
chunking_strategy?:
|
|
13906
|
+
chunking_strategy?: KnowledgeNativeChunkingInput;
|
|
13807
13907
|
};
|
|
13808
13908
|
export type KnowledgeNativeVectorStoreFileList = {
|
|
13809
13909
|
/**
|
|
@@ -13900,7 +14000,7 @@ export type KnowledgeFileBatch = {
|
|
|
13900
14000
|
/**
|
|
13901
14001
|
* Provide exactly one of file_ids or files. Already attached files are reused without changing their attributes or chunking.
|
|
13902
14002
|
*/
|
|
13903
|
-
export type
|
|
14003
|
+
export type KnowledgeNativeCreateBatch = {
|
|
13904
14004
|
/**
|
|
13905
14005
|
* Existing File IDs to attach with shared attributes and chunking settings. Supply file_ids or files, never both.
|
|
13906
14006
|
*/
|
|
@@ -13909,7 +14009,7 @@ export type KnowledgeCreateBatch = {
|
|
|
13909
14009
|
* Search-filter attributes applied to each newly attached file; omission or null leaves them unset.
|
|
13910
14010
|
*/
|
|
13911
14011
|
attributes?: KnowledgeAttributes | null;
|
|
13912
|
-
chunking_strategy?:
|
|
14012
|
+
chunking_strategy?: KnowledgeNativeChunkingInput;
|
|
13913
14013
|
} | {
|
|
13914
14014
|
/**
|
|
13915
14015
|
* Files to attach with individual attributes and chunking settings; top-level attributes and chunking_strategy are ignored.
|
|
@@ -13920,7 +14020,7 @@ export type KnowledgeCreateBatch = {
|
|
|
13920
14020
|
*/
|
|
13921
14021
|
file_id: string;
|
|
13922
14022
|
attributes?: KnowledgeAttributes;
|
|
13923
|
-
chunking_strategy?:
|
|
14023
|
+
chunking_strategy?: KnowledgeNativeChunkingInput;
|
|
13924
14024
|
}>;
|
|
13925
14025
|
/**
|
|
13926
14026
|
* Ignored when files is supplied.
|
|
@@ -14039,6 +14139,10 @@ export type KnowledgeEventList = {
|
|
|
14039
14139
|
* A caller-owned media library with lifecycle, usage, understanding settings and model selections.
|
|
14040
14140
|
*/
|
|
14041
14141
|
export type MediaLibrary = {
|
|
14142
|
+
/**
|
|
14143
|
+
* Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results.
|
|
14144
|
+
*/
|
|
14145
|
+
readonly hotwords?: Array<string>;
|
|
14042
14146
|
/**
|
|
14043
14147
|
* Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
|
|
14044
14148
|
*/
|
|
@@ -14105,7 +14209,7 @@ export type MediaLibrary = {
|
|
|
14105
14209
|
};
|
|
14106
14210
|
export type MediaMediaError = {
|
|
14107
14211
|
error: {
|
|
14108
|
-
code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'BINDING_READ_ONLY';
|
|
14212
|
+
code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'CANDIDATE_EXPIRED' | 'BINDING_READ_ONLY';
|
|
14109
14213
|
message: string;
|
|
14110
14214
|
details: string | null;
|
|
14111
14215
|
};
|
|
@@ -14123,9 +14227,21 @@ export type MediaMediaModelsInput = {
|
|
|
14123
14227
|
*/
|
|
14124
14228
|
embedding?: string | null;
|
|
14125
14229
|
/**
|
|
14126
|
-
* Model call ID for speech transcription. Null restores the default for this role.
|
|
14230
|
+
* Model call ID for speech transcription. Null restores the default for this role. Defaults to fun-asr with whisper-large-v3-turbo fallback.
|
|
14127
14231
|
*/
|
|
14128
14232
|
transcription?: string | null;
|
|
14233
|
+
/**
|
|
14234
|
+
* Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions. Null restores this role’s default.
|
|
14235
|
+
*/
|
|
14236
|
+
correction?: string | null;
|
|
14237
|
+
/**
|
|
14238
|
+
* Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction. Null restores this role’s default.
|
|
14239
|
+
*/
|
|
14240
|
+
reference_transcription?: string | null;
|
|
14241
|
+
/**
|
|
14242
|
+
* Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges. Null restores this role’s default.
|
|
14243
|
+
*/
|
|
14244
|
+
audio?: string | null;
|
|
14129
14245
|
} | null;
|
|
14130
14246
|
/**
|
|
14131
14247
|
* Libraries in this page, ordered by creation time descending.
|
|
@@ -14140,6 +14256,25 @@ export type MediaLibraryPage = MediaPage & {
|
|
|
14140
14256
|
*/
|
|
14141
14257
|
next_cursor: string | null;
|
|
14142
14258
|
};
|
|
14259
|
+
export type MediaFrameUrls = {
|
|
14260
|
+
/**
|
|
14261
|
+
* Frame links in the same order as the requested timestamps, including duplicates.
|
|
14262
|
+
*/
|
|
14263
|
+
frames: Array<{
|
|
14264
|
+
/**
|
|
14265
|
+
* Requested time in microseconds from the start of the video.
|
|
14266
|
+
*/
|
|
14267
|
+
at_micros: number;
|
|
14268
|
+
/**
|
|
14269
|
+
* JPEG delivery URL. Fetch it to extract the frame; authenticated links carry a bearer token and must not be shared beyond intended readers.
|
|
14270
|
+
*/
|
|
14271
|
+
url: string;
|
|
14272
|
+
/**
|
|
14273
|
+
* UTC expiry for authenticated frame links, 300 seconds after issuance. Upload asset links remain public and permanent; this timestamp does not expire those URLs.
|
|
14274
|
+
*/
|
|
14275
|
+
expires_at: string;
|
|
14276
|
+
}>;
|
|
14277
|
+
};
|
|
14143
14278
|
/**
|
|
14144
14279
|
* Receipt confirming permanent removal of a previously deleted library.
|
|
14145
14280
|
*/
|
|
@@ -14299,7 +14434,7 @@ export type MediaAsset = {
|
|
|
14299
14434
|
*/
|
|
14300
14435
|
url: string;
|
|
14301
14436
|
/**
|
|
14302
|
-
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the
|
|
14437
|
+
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
|
|
14303
14438
|
*/
|
|
14304
14439
|
secure_url: string;
|
|
14305
14440
|
/**
|
|
@@ -14326,6 +14461,10 @@ export type MediaAsset = {
|
|
|
14326
14461
|
* Resource status; active identifies an asset that has not been deleted.
|
|
14327
14462
|
*/
|
|
14328
14463
|
status: 'active';
|
|
14464
|
+
/**
|
|
14465
|
+
* True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
|
|
14466
|
+
*/
|
|
14467
|
+
has_alpha?: boolean;
|
|
14329
14468
|
/**
|
|
14330
14469
|
* Search-vector status: pending awaits vector generation or reprocessing; ready has searchable vectors; unavailable indicates disabled, unsupported or failed embedding. Existing vectors may still serve searches while reprocessing is pending.
|
|
14331
14470
|
*/
|
|
@@ -14382,6 +14521,27 @@ export type MediaAsset = {
|
|
|
14382
14521
|
};
|
|
14383
14522
|
};
|
|
14384
14523
|
};
|
|
14524
|
+
/**
|
|
14525
|
+
* Source details for the video-generation job that created this asset.
|
|
14526
|
+
*/
|
|
14527
|
+
generation?: {
|
|
14528
|
+
/**
|
|
14529
|
+
* Job id that generated this asset.
|
|
14530
|
+
*/
|
|
14531
|
+
job_id: MediaJobId;
|
|
14532
|
+
/**
|
|
14533
|
+
* Generation intent used to create the asset; v1 supports video.generate.
|
|
14534
|
+
*/
|
|
14535
|
+
intent: string;
|
|
14536
|
+
/**
|
|
14537
|
+
* Text prompt submitted for the generation job.
|
|
14538
|
+
*/
|
|
14539
|
+
prompt: string;
|
|
14540
|
+
/**
|
|
14541
|
+
* Router video-generation model that produced the asset.
|
|
14542
|
+
*/
|
|
14543
|
+
model: string;
|
|
14544
|
+
};
|
|
14385
14545
|
};
|
|
14386
14546
|
/**
|
|
14387
14547
|
* Receipt confirming that the asset was deleted.
|
|
@@ -14495,7 +14655,19 @@ export type MediaFolders = {
|
|
|
14495
14655
|
* Number of assets in this folder and all descendant folders.
|
|
14496
14656
|
*/
|
|
14497
14657
|
asset_count: number;
|
|
14658
|
+
/**
|
|
14659
|
+
* Active ready and partial assets in this folder and every descendant folder.
|
|
14660
|
+
*/
|
|
14661
|
+
understood_count: number;
|
|
14662
|
+
/**
|
|
14663
|
+
* Active failed assets in this folder and every descendant folder.
|
|
14664
|
+
*/
|
|
14665
|
+
failed_count: number;
|
|
14498
14666
|
}>;
|
|
14667
|
+
/**
|
|
14668
|
+
* False while historical folder and failure counts are being populated; refresh after backfill completes.
|
|
14669
|
+
*/
|
|
14670
|
+
counts_complete: boolean;
|
|
14499
14671
|
};
|
|
14500
14672
|
/**
|
|
14501
14673
|
* Asynchronous batch job with successful and failed item counts.
|
|
@@ -14510,19 +14682,19 @@ export type MediaJob = {
|
|
|
14510
14682
|
*/
|
|
14511
14683
|
library_id: MediaLibraryId;
|
|
14512
14684
|
/**
|
|
14513
|
-
* Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
|
|
14685
|
+
* Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets. reprocess starts fenced understanding Workflows for retryable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported and permanent steps remain unchanged.
|
|
14514
14686
|
*/
|
|
14515
|
-
action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete';
|
|
14687
|
+
action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'generate';
|
|
14516
14688
|
/**
|
|
14517
14689
|
* Job status: queued awaits execution; running is processing items; completed means all items succeeded; completed_with_errors means some succeeded and some failed; failed means all selected items failed. An empty job completes successfully.
|
|
14518
14690
|
*/
|
|
14519
|
-
status:
|
|
14691
|
+
status: MediaJobStatus;
|
|
14520
14692
|
/**
|
|
14521
14693
|
* Number of distinct assets selected when the job was created.
|
|
14522
14694
|
*/
|
|
14523
14695
|
total: number;
|
|
14524
14696
|
/**
|
|
14525
|
-
* Number of items successfully processed; failed items are counted separately.
|
|
14697
|
+
* Number of items successfully processed; failed items are counted separately. For reprocess, this counts accepted launches; inspect asset progress for model completion.
|
|
14526
14698
|
*/
|
|
14527
14699
|
done: number;
|
|
14528
14700
|
/**
|
|
@@ -14536,12 +14708,66 @@ export type MediaJob = {
|
|
|
14536
14708
|
/**
|
|
14537
14709
|
* Identifier supplied for the failed item; it may identify a missing asset.
|
|
14538
14710
|
*/
|
|
14539
|
-
asset_id
|
|
14711
|
+
asset_id?: MediaAssetId;
|
|
14712
|
+
/**
|
|
14713
|
+
* Zero-based output index for a failed video-generation item.
|
|
14714
|
+
*/
|
|
14715
|
+
index?: number;
|
|
14540
14716
|
/**
|
|
14541
14717
|
* Domain error code explaining the individual item failure.
|
|
14542
14718
|
*/
|
|
14543
14719
|
code: MediaMediaErrorCode;
|
|
14544
14720
|
}>;
|
|
14721
|
+
/**
|
|
14722
|
+
* Generation intent used by this job; v1 supports video.generate.
|
|
14723
|
+
*/
|
|
14724
|
+
intent?: string;
|
|
14725
|
+
/**
|
|
14726
|
+
* Router video-generation model used for the outputs.
|
|
14727
|
+
*/
|
|
14728
|
+
model?: string;
|
|
14729
|
+
/**
|
|
14730
|
+
* Per-video results in index order; save a successful candidate before expires_at.
|
|
14731
|
+
*/
|
|
14732
|
+
outputs?: Array<{
|
|
14733
|
+
/**
|
|
14734
|
+
* Zero-based position of this video in the requested count.
|
|
14735
|
+
*/
|
|
14736
|
+
index: number;
|
|
14737
|
+
/**
|
|
14738
|
+
* State of this requested video output.
|
|
14739
|
+
*/
|
|
14740
|
+
status: MediaGenerationOutputStatus;
|
|
14741
|
+
/**
|
|
14742
|
+
* Short-lived signed URL for previewing this candidate; read the Job again to obtain a fresh URL.
|
|
14743
|
+
*/
|
|
14744
|
+
preview_url?: string;
|
|
14745
|
+
/**
|
|
14746
|
+
* Router seed for this video, when returned; it may be absent.
|
|
14747
|
+
*/
|
|
14748
|
+
seed?: number | null;
|
|
14749
|
+
/**
|
|
14750
|
+
* Candidate expiry time; after expiry, save returns CANDIDATE_EXPIRED.
|
|
14751
|
+
*/
|
|
14752
|
+
expires_at?: MediaIsoTimestamp;
|
|
14753
|
+
/**
|
|
14754
|
+
* Library asset identifier after this candidate has been saved, or when the job requested save=library.
|
|
14755
|
+
*/
|
|
14756
|
+
asset_id?: MediaAssetId;
|
|
14757
|
+
}>;
|
|
14758
|
+
/**
|
|
14759
|
+
* Router-reported generation charge for the job.
|
|
14760
|
+
*/
|
|
14761
|
+
usage?: {
|
|
14762
|
+
/**
|
|
14763
|
+
* Decimal amount in the currency named by currency; this is not a floating-point value.
|
|
14764
|
+
*/
|
|
14765
|
+
amount: string;
|
|
14766
|
+
/**
|
|
14767
|
+
* Currency code for amount.
|
|
14768
|
+
*/
|
|
14769
|
+
currency: string;
|
|
14770
|
+
};
|
|
14545
14771
|
/**
|
|
14546
14772
|
* Time the batch job was created, in UTC.
|
|
14547
14773
|
*/
|
|
@@ -14588,6 +14814,15 @@ export type MediaBatchAction = {
|
|
|
14588
14814
|
* Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets.
|
|
14589
14815
|
*/
|
|
14590
14816
|
action: 'delete';
|
|
14817
|
+
} | {
|
|
14818
|
+
/**
|
|
14819
|
+
* reprocess retries recoverable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported, permanent and completed steps remain unchanged.
|
|
14820
|
+
*/
|
|
14821
|
+
action: 'reprocess';
|
|
14822
|
+
/**
|
|
14823
|
+
* Optional subset of processing kinds to inspect. Only retryable failed steps and legacy source-size unsupported steps run. Other unsupported, permanent and completed steps remain unchanged. Omit to inspect all recoverable steps.
|
|
14824
|
+
*/
|
|
14825
|
+
kinds?: Array<MediaProcessingKind>;
|
|
14591
14826
|
};
|
|
14592
14827
|
/**
|
|
14593
14828
|
* Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
|
|
@@ -14633,6 +14868,91 @@ export type MediaDeliveryToken = {
|
|
|
14633
14868
|
*/
|
|
14634
14869
|
expires_at: string;
|
|
14635
14870
|
};
|
|
14871
|
+
export type MediaFailureSummary = {
|
|
14872
|
+
/**
|
|
14873
|
+
* Number of current failed understanding entries, excluding deleted assets and superseded versions.
|
|
14874
|
+
*/
|
|
14875
|
+
total: number;
|
|
14876
|
+
/**
|
|
14877
|
+
* Failure entries grouped by code, output kind and producer model. Each group includes up to five distinct example asset IDs.
|
|
14878
|
+
*/
|
|
14879
|
+
groups: Array<MediaFailureGroup>;
|
|
14880
|
+
/**
|
|
14881
|
+
* False while historical failure and folder statistics are being populated. Counts include current writes immediately.
|
|
14882
|
+
*/
|
|
14883
|
+
counts_complete: boolean;
|
|
14884
|
+
};
|
|
14885
|
+
/**
|
|
14886
|
+
* Current state of a batch or video-generation job.
|
|
14887
|
+
*/
|
|
14888
|
+
export type MediaJobStatus = 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed' | 'cancelled';
|
|
14889
|
+
/**
|
|
14890
|
+
* Identifier returned when a batch job is created.
|
|
14891
|
+
*/
|
|
14892
|
+
export type MediaJobId = string;
|
|
14893
|
+
/**
|
|
14894
|
+
* A page of jobs in a library.
|
|
14895
|
+
*/
|
|
14896
|
+
export type MediaJobPage = {
|
|
14897
|
+
/**
|
|
14898
|
+
* Jobs returned in this page.
|
|
14899
|
+
*/
|
|
14900
|
+
data: Array<MediaJob>;
|
|
14901
|
+
/**
|
|
14902
|
+
* Cursor for the next page, or null when there are no more jobs.
|
|
14903
|
+
*/
|
|
14904
|
+
next_cursor: MediaJobId | null;
|
|
14905
|
+
};
|
|
14906
|
+
/**
|
|
14907
|
+
* Current text-to-video options, concurrency and candidate retention. Generation is charged per second; unsaved candidates expire after 7 days.
|
|
14908
|
+
*/
|
|
14909
|
+
export type MediaGenerationCapabilities = {
|
|
14910
|
+
/**
|
|
14911
|
+
* Text-to-video intents currently supported by Media.
|
|
14912
|
+
*/
|
|
14913
|
+
intents: Array<string>;
|
|
14914
|
+
/**
|
|
14915
|
+
* Model selected when model is omitted from a generation request.
|
|
14916
|
+
*/
|
|
14917
|
+
default_model: string;
|
|
14918
|
+
/**
|
|
14919
|
+
* Allowed number of videos per generation job.
|
|
14920
|
+
*/
|
|
14921
|
+
count: {
|
|
14922
|
+
/**
|
|
14923
|
+
* Minimum number of videos in one generation job.
|
|
14924
|
+
*/
|
|
14925
|
+
minimum: number;
|
|
14926
|
+
/**
|
|
14927
|
+
* Maximum number of videos in one generation job.
|
|
14928
|
+
*/
|
|
14929
|
+
maximum: number;
|
|
14930
|
+
};
|
|
14931
|
+
/**
|
|
14932
|
+
* Durations in seconds supported by the default video model.
|
|
14933
|
+
*/
|
|
14934
|
+
duration_seconds: Array<number>;
|
|
14935
|
+
/**
|
|
14936
|
+
* Aspect ratios supported by the default video model.
|
|
14937
|
+
*/
|
|
14938
|
+
aspect_ratios: Array<string>;
|
|
14939
|
+
/**
|
|
14940
|
+
* Aspect ratio used when aspect_ratio is omitted.
|
|
14941
|
+
*/
|
|
14942
|
+
default_aspect_ratio: string;
|
|
14943
|
+
/**
|
|
14944
|
+
* Maximum number of queued or running generation jobs per library.
|
|
14945
|
+
*/
|
|
14946
|
+
concurrency_per_library: number;
|
|
14947
|
+
/**
|
|
14948
|
+
* Unit used to charge video generation; generated duration is billed per second by Router.
|
|
14949
|
+
*/
|
|
14950
|
+
price_unit: 'per second';
|
|
14951
|
+
/**
|
|
14952
|
+
* Days an unsaved candidate is retained before its File is deleted.
|
|
14953
|
+
*/
|
|
14954
|
+
candidate_retention_days: number;
|
|
14955
|
+
};
|
|
14636
14956
|
/**
|
|
14637
14957
|
* Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
|
|
14638
14958
|
*/
|
|
@@ -15075,6 +15395,10 @@ export type SandboxTemplateBuildInfo = {
|
|
|
15075
15395
|
reason?: SandboxBuildStatusReason;
|
|
15076
15396
|
};
|
|
15077
15397
|
export type SandboxTemplateWithBuilds = {
|
|
15398
|
+
/**
|
|
15399
|
+
* Lifecycle classes this template can run as. ephemeral: cannot pause, snapshot or mount volumes and is deleted when it stops; persistent: can pause, resume and snapshot.
|
|
15400
|
+
*/
|
|
15401
|
+
lifecycles?: Array<'ephemeral' | 'persistent'>;
|
|
15078
15402
|
/**
|
|
15079
15403
|
* Identifier of the template
|
|
15080
15404
|
*/
|
|
@@ -24983,6 +25307,10 @@ export type CutTimeline = {
|
|
|
24983
25307
|
* Ordered tracks, topmost visual layer first.
|
|
24984
25308
|
*/
|
|
24985
25309
|
tracks: Array<CutTrack>;
|
|
25310
|
+
/**
|
|
25311
|
+
* Clip-to-clip transitions selected by track and overlap window; lengths are seconds and effect fields use snake_case on HTTP.
|
|
25312
|
+
*/
|
|
25313
|
+
joins?: Array<CutJoin>;
|
|
24986
25314
|
/**
|
|
24987
25315
|
* Named points on the timeline.
|
|
24988
25316
|
*/
|
|
@@ -25075,6 +25403,20 @@ export type CutTrackSummary = {
|
|
|
25075
25403
|
*/
|
|
25076
25404
|
items: number;
|
|
25077
25405
|
};
|
|
25406
|
+
export type CutFrameWarning = {
|
|
25407
|
+
/**
|
|
25408
|
+
* FRAME_UNAVAILABLE means a source image could not be fetched for this preview.
|
|
25409
|
+
*/
|
|
25410
|
+
code: 'FRAME_UNAVAILABLE';
|
|
25411
|
+
/**
|
|
25412
|
+
* Identifier of the clip whose source frame could not be fetched.
|
|
25413
|
+
*/
|
|
25414
|
+
clip_id?: string;
|
|
25415
|
+
/**
|
|
25416
|
+
* Actionable safe explanation; source URLs and credentials are omitted.
|
|
25417
|
+
*/
|
|
25418
|
+
message: string;
|
|
25419
|
+
};
|
|
25078
25420
|
/**
|
|
25079
25421
|
* Reference to an asset in a bound library; follows asset overwrites to the latest version rather than pinning a version.
|
|
25080
25422
|
*/
|
|
@@ -25297,7 +25639,7 @@ export type KnowledgeKnowledgeModels = {
|
|
|
25297
25639
|
*/
|
|
25298
25640
|
query_rewrite: string;
|
|
25299
25641
|
/**
|
|
25300
|
-
* Extracts text from scanned PDF pages. Default:
|
|
25642
|
+
* Extracts text from scanned PDF pages through the OCR API. Default: qwen-vl-ocr-2025-11-20, falling back to glm-ocr and qwen3.8-flash. A custom model precedes these defaults. OCR is billed by pages processed.
|
|
25301
25643
|
*/
|
|
25302
25644
|
ocr: string;
|
|
25303
25645
|
/**
|
|
@@ -25306,14 +25648,9 @@ export type KnowledgeKnowledgeModels = {
|
|
|
25306
25648
|
vision: string;
|
|
25307
25649
|
};
|
|
25308
25650
|
/**
|
|
25309
|
-
* auto
|
|
25651
|
+
* Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy.
|
|
25310
25652
|
*/
|
|
25311
|
-
export type
|
|
25312
|
-
/**
|
|
25313
|
-
* auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
|
|
25314
|
-
*/
|
|
25315
|
-
type: 'auto';
|
|
25316
|
-
} | KnowledgeStaticChunking;
|
|
25653
|
+
export type KnowledgeNativeChunkingInput = KnowledgeChunkingInput | KnowledgeHierarchicalChunking;
|
|
25317
25654
|
/**
|
|
25318
25655
|
* Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.
|
|
25319
25656
|
*/
|
|
@@ -25331,7 +25668,7 @@ export type KnowledgeKnowledgeModelsInput = {
|
|
|
25331
25668
|
*/
|
|
25332
25669
|
query_rewrite?: string | null;
|
|
25333
25670
|
/**
|
|
25334
|
-
* Scanned PDF text extraction model; requires mistral.ocr or pdf_input capability. null restores
|
|
25671
|
+
* Scanned PDF text extraction model; requires mistral.ocr or pdf_input capability. null restores qwen-vl-ocr-2025-11-20. The preference leads the OCR API fallback chain qwen-vl-ocr-2025-11-20, glm-ocr, qwen3.8-flash with duplicates removed.
|
|
25335
25672
|
*/
|
|
25336
25673
|
ocr?: string | null;
|
|
25337
25674
|
/**
|
|
@@ -25368,6 +25705,10 @@ export type KnowledgeNativeSearchResult = {
|
|
|
25368
25705
|
* Extracted text of the matched chunk, which may overlap neighboring chunks.
|
|
25369
25706
|
*/
|
|
25370
25707
|
text: string;
|
|
25708
|
+
/**
|
|
25709
|
+
* Optional source image File ID for this matched chunk. Use the File service to read the image; absent for chunks without an image source and omitted by the OpenAI-compatible URL.
|
|
25710
|
+
*/
|
|
25711
|
+
readonly image_file_id?: string;
|
|
25371
25712
|
/**
|
|
25372
25713
|
* Resource ID.
|
|
25373
25714
|
*/
|
|
@@ -25431,14 +25772,9 @@ export type KnowledgeFilter = {
|
|
|
25431
25772
|
filters: Array<KnowledgeFilter>;
|
|
25432
25773
|
};
|
|
25433
25774
|
/**
|
|
25434
|
-
*
|
|
25775
|
+
* Native stored strategy, including hierarchical parent and child settings. auto input resolves to static; the OpenAI-compatible URL projects hierarchical as other.
|
|
25435
25776
|
*/
|
|
25436
|
-
export type
|
|
25437
|
-
/**
|
|
25438
|
-
* other identifies a stored strategy whose chunk-size settings are unavailable.
|
|
25439
|
-
*/
|
|
25440
|
-
type: 'other';
|
|
25441
|
-
};
|
|
25777
|
+
export type KnowledgeNativeChunking = KnowledgeChunking | KnowledgeHierarchicalChunking;
|
|
25442
25778
|
/**
|
|
25443
25779
|
* File attributes used by search filters. Up to 16 keys of 64 characters; string values up to 512 characters.
|
|
25444
25780
|
*/
|
|
@@ -25550,7 +25886,7 @@ export type MediaUnderstandingProgress = {
|
|
|
25550
25886
|
readonly migration_complete: boolean;
|
|
25551
25887
|
};
|
|
25552
25888
|
/**
|
|
25553
|
-
* Resolved model call IDs for
|
|
25889
|
+
* Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
|
|
25554
25890
|
*/
|
|
25555
25891
|
export type MediaMediaModels = {
|
|
25556
25892
|
/**
|
|
@@ -25562,9 +25898,21 @@ export type MediaMediaModels = {
|
|
|
25562
25898
|
*/
|
|
25563
25899
|
embedding: string;
|
|
25564
25900
|
/**
|
|
25565
|
-
* Model call ID for speech transcription.
|
|
25901
|
+
* Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
|
|
25566
25902
|
*/
|
|
25567
25903
|
transcription: string;
|
|
25904
|
+
/**
|
|
25905
|
+
* Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
|
|
25906
|
+
*/
|
|
25907
|
+
readonly correction: string;
|
|
25908
|
+
/**
|
|
25909
|
+
* Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
|
|
25910
|
+
*/
|
|
25911
|
+
readonly reference_transcription: string;
|
|
25912
|
+
/**
|
|
25913
|
+
* Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges.
|
|
25914
|
+
*/
|
|
25915
|
+
readonly audio: string;
|
|
25568
25916
|
};
|
|
25569
25917
|
/**
|
|
25570
25918
|
* Identifier of a library belonging to the caller.
|
|
@@ -25725,7 +26073,7 @@ export type MediaCloudinaryResource = {
|
|
|
25725
26073
|
*/
|
|
25726
26074
|
url: string;
|
|
25727
26075
|
/**
|
|
25728
|
-
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the
|
|
26076
|
+
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
|
|
25729
26077
|
*/
|
|
25730
26078
|
secure_url: string;
|
|
25731
26079
|
/**
|
|
@@ -25761,13 +26109,13 @@ export type MediaChunkComplete = MediaCloudinaryResource & {
|
|
|
25761
26109
|
done: true;
|
|
25762
26110
|
};
|
|
25763
26111
|
/**
|
|
25764
|
-
* Per-task processing progress and its aggregate state for the asset.
|
|
26112
|
+
* Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
|
|
25765
26113
|
*/
|
|
25766
26114
|
export type MediaProcessing = {
|
|
25767
26115
|
/**
|
|
25768
|
-
* Current understanding stage: probe, frames, shots, visual, transcript, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
|
|
26116
|
+
* Current understanding stage: probe, frames, shots, visual, transcript, transcript_reference, transcript_correction, audio_profile, overview, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
|
|
25769
26117
|
*/
|
|
25770
|
-
readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'embedding' | 'finalize' | null;
|
|
26118
|
+
readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
|
|
25771
26119
|
state: MediaProcessingState;
|
|
25772
26120
|
/**
|
|
25773
26121
|
* Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
|
|
@@ -25809,6 +26157,18 @@ export type MediaStoryboard = {
|
|
|
25809
26157
|
* An immutable understanding result for an asset version, including superseded history when requested.
|
|
25810
26158
|
*/
|
|
25811
26159
|
export type MediaUnderstanding = {
|
|
26160
|
+
/**
|
|
26161
|
+
* Original hallucination-filtered ASR text before correction, present on correction-enabled transcript records. Omitted on legacy records and other kinds.
|
|
26162
|
+
*/
|
|
26163
|
+
readonly text_original?: string;
|
|
26164
|
+
/**
|
|
26165
|
+
* Corrected transcript, also returned as content and used for subtitles and search. Equals text_original when correction fails. Original segment timestamps remain unchanged.
|
|
26166
|
+
*/
|
|
26167
|
+
readonly text?: string;
|
|
26168
|
+
/**
|
|
26169
|
+
* Transcript correction audit, accepted edits and optional reference ASR. Present on correction-enabled transcript records, including failed corrections.
|
|
26170
|
+
*/
|
|
26171
|
+
readonly correction?: MediaTranscriptCorrection;
|
|
25812
26172
|
/**
|
|
25813
26173
|
* Generated identifier of this understanding result.
|
|
25814
26174
|
*/
|
|
@@ -25822,7 +26182,7 @@ export type MediaUnderstanding = {
|
|
|
25822
26182
|
*/
|
|
25823
26183
|
asset_version: number;
|
|
25824
26184
|
/**
|
|
25825
|
-
* Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment.
|
|
26185
|
+
* Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
|
|
25826
26186
|
*/
|
|
25827
26187
|
kind: MediaUnderstandingKind;
|
|
25828
26188
|
/**
|
|
@@ -25846,7 +26206,7 @@ export type MediaUnderstanding = {
|
|
|
25846
26206
|
*/
|
|
25847
26207
|
content: string | null;
|
|
25848
26208
|
/**
|
|
25849
|
-
* Structured producer output,
|
|
26209
|
+
* Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape. Transcript segments may contain speaker (a diarization label, not a verified identity), words (text, start_ms and end_ms in source-media milliseconds) and producer (the actual fallback model when different from the record producer). Overview data contains chapters (first_shot, title, summary, start_ms, end_ms), iab (tier1, optional tier2, confidence from 0 to 1), and location (an unverified place guess or null); content is the full-video summary. Audio data contains segments (start_s and end_s in source-media seconds; type is speech, music, ambient or silence), has_music, genre, mood, bpm_estimate (nullable), bpm_is_estimate=true and analyzed_ranges (start_s, end_s in seconds). Genre and mood are nullable model labels. Audio understanding samples only the first 120 seconds in at most three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate, not an exact tempo; has_music=false only means no music was detected within analyzed_ranges.
|
|
25850
26210
|
*/
|
|
25851
26211
|
data: unknown | null;
|
|
25852
26212
|
/**
|
|
@@ -26022,7 +26382,7 @@ export type MediaSearchAsset = {
|
|
|
26022
26382
|
*/
|
|
26023
26383
|
url: string;
|
|
26024
26384
|
/**
|
|
26025
|
-
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the
|
|
26385
|
+
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
|
|
26026
26386
|
*/
|
|
26027
26387
|
secure_url: string;
|
|
26028
26388
|
/**
|
|
@@ -26049,6 +26409,10 @@ export type MediaSearchAsset = {
|
|
|
26049
26409
|
* Resource status; active identifies an asset that has not been deleted.
|
|
26050
26410
|
*/
|
|
26051
26411
|
status: 'active';
|
|
26412
|
+
/**
|
|
26413
|
+
* True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
|
|
26414
|
+
*/
|
|
26415
|
+
has_alpha?: boolean;
|
|
26052
26416
|
/**
|
|
26053
26417
|
* Search-vector status: pending awaits vector generation or reprocessing; ready has searchable vectors; unavailable indicates disabled, unsupported or failed embedding. Existing vectors may still serve searches while reprocessing is pending.
|
|
26054
26418
|
*/
|
|
@@ -26105,6 +26469,27 @@ export type MediaSearchAsset = {
|
|
|
26105
26469
|
};
|
|
26106
26470
|
};
|
|
26107
26471
|
};
|
|
26472
|
+
/**
|
|
26473
|
+
* Source details for the video-generation job that created this asset.
|
|
26474
|
+
*/
|
|
26475
|
+
generation?: {
|
|
26476
|
+
/**
|
|
26477
|
+
* Job id that generated this asset.
|
|
26478
|
+
*/
|
|
26479
|
+
job_id: MediaJobId;
|
|
26480
|
+
/**
|
|
26481
|
+
* Generation intent used to create the asset; v1 supports video.generate.
|
|
26482
|
+
*/
|
|
26483
|
+
intent: string;
|
|
26484
|
+
/**
|
|
26485
|
+
* Text prompt submitted for the generation job.
|
|
26486
|
+
*/
|
|
26487
|
+
prompt: string;
|
|
26488
|
+
/**
|
|
26489
|
+
* Router video-generation model that produced the asset.
|
|
26490
|
+
*/
|
|
26491
|
+
model: string;
|
|
26492
|
+
};
|
|
26108
26493
|
};
|
|
26109
26494
|
/**
|
|
26110
26495
|
* A matching asset with its ranking score and supporting matches.
|
|
@@ -26127,11 +26512,11 @@ export type MediaSemanticHit = {
|
|
|
26127
26512
|
*/
|
|
26128
26513
|
matches: Array<MediaSemanticMatch>;
|
|
26129
26514
|
};
|
|
26515
|
+
export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'CANDIDATE_EXPIRED' | 'BINDING_READ_ONLY';
|
|
26130
26516
|
/**
|
|
26131
|
-
*
|
|
26517
|
+
* State of a requested video output.
|
|
26132
26518
|
*/
|
|
26133
|
-
export type
|
|
26134
|
-
export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'BINDING_READ_ONLY';
|
|
26519
|
+
export type MediaGenerationOutputStatus = 'pending' | 'succeeded' | 'failed';
|
|
26135
26520
|
/**
|
|
26136
26521
|
* A recorded library event with a monotonically increasing sequence within that library.
|
|
26137
26522
|
*/
|
|
@@ -26175,6 +26560,36 @@ export type MediaMediaEvent = {
|
|
|
26175
26560
|
[key: string]: unknown;
|
|
26176
26561
|
};
|
|
26177
26562
|
};
|
|
26563
|
+
export type MediaFailureGroup = {
|
|
26564
|
+
/**
|
|
26565
|
+
* Failure reason code. Unknown codes are retryable.
|
|
26566
|
+
*/
|
|
26567
|
+
code: string;
|
|
26568
|
+
/**
|
|
26569
|
+
* Understanding output kind that failed, such as caption, frame, transcript or embedding.
|
|
26570
|
+
*/
|
|
26571
|
+
kind: string;
|
|
26572
|
+
/**
|
|
26573
|
+
* Producer model that reported this failure; unknown when historical provenance was unavailable.
|
|
26574
|
+
*/
|
|
26575
|
+
model: string;
|
|
26576
|
+
/**
|
|
26577
|
+
* Number of current failed entries in this group; several entries can belong to one asset.
|
|
26578
|
+
*/
|
|
26579
|
+
count: number;
|
|
26580
|
+
/**
|
|
26581
|
+
* True for a rollup of additional code, kind and model combinations after 1024 detailed groups. OTHER_RETRYABLE and OTHER_UNRECOVERABLE preserve retryability; original codes remain on each understanding and match failure_code expressions.
|
|
26582
|
+
*/
|
|
26583
|
+
overflow: boolean;
|
|
26584
|
+
/**
|
|
26585
|
+
* True when a repeated attempt may recover, including unknown error codes. False for unsupported media, limits, missing or corrupt source files.
|
|
26586
|
+
*/
|
|
26587
|
+
retryable: boolean;
|
|
26588
|
+
/**
|
|
26589
|
+
* Up to five distinct asset identifiers from this group, for inspecting original error details.
|
|
26590
|
+
*/
|
|
26591
|
+
sample_asset_ids: Array<MediaAssetId>;
|
|
26592
|
+
};
|
|
26178
26593
|
/**
|
|
26179
26594
|
* Auto-resume configuration for paused sandboxes.
|
|
26180
26595
|
*/
|
|
@@ -30501,6 +30916,32 @@ export type CutTrack = {
|
|
|
30501
30916
|
*/
|
|
30502
30917
|
items: Array<CutItem>;
|
|
30503
30918
|
};
|
|
30919
|
+
/**
|
|
30920
|
+
* Overlap between adjacent visual clips on the same track; creating it shifts the right clip and same-track followers left by its length.
|
|
30921
|
+
*/
|
|
30922
|
+
export type CutJoin = {
|
|
30923
|
+
/**
|
|
30924
|
+
* Join identifier returned by Join; reuse as the id argument to UpdateJoin or DeleteJoin inside execute.
|
|
30925
|
+
*/
|
|
30926
|
+
id: string;
|
|
30927
|
+
/**
|
|
30928
|
+
* Visual track containing both endpoints, from AddTrack or the timeline track id.
|
|
30929
|
+
*/
|
|
30930
|
+
track: string;
|
|
30931
|
+
/**
|
|
30932
|
+
* Outgoing clip identifier, from Insert or the timeline items.
|
|
30933
|
+
*/
|
|
30934
|
+
left: string;
|
|
30935
|
+
/**
|
|
30936
|
+
* Incoming clip identifier, from Insert or the timeline items.
|
|
30937
|
+
*/
|
|
30938
|
+
right: string;
|
|
30939
|
+
/**
|
|
30940
|
+
* Overlap duration in seconds, positive and shorter than each endpoint; incoming plus outgoing lengths may not exceed a clip length.
|
|
30941
|
+
*/
|
|
30942
|
+
length: number;
|
|
30943
|
+
effect: CutJoinEffect;
|
|
30944
|
+
};
|
|
30504
30945
|
/**
|
|
30505
30946
|
* A named point on the project timeline.
|
|
30506
30947
|
*/
|
|
@@ -30518,23 +30959,39 @@ export type CutMarker = {
|
|
|
30518
30959
|
*/
|
|
30519
30960
|
label: string;
|
|
30520
30961
|
};
|
|
30521
|
-
|
|
30962
|
+
/**
|
|
30963
|
+
* auto resolves to static with 800 estimated tokens and 400 overlap tokens. Unlike OpenAI vector stores, token counts are estimates; each Han character counts as one, and other whitespace-delimited words count as their UTF-16 length divided by four, rounded up.
|
|
30964
|
+
*/
|
|
30965
|
+
export type KnowledgeChunkingInput = {
|
|
30522
30966
|
/**
|
|
30523
|
-
*
|
|
30967
|
+
* auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
|
|
30524
30968
|
*/
|
|
30525
|
-
type: '
|
|
30969
|
+
type: 'auto';
|
|
30970
|
+
} | KnowledgeStaticChunking;
|
|
30971
|
+
/**
|
|
30972
|
+
* Native strategy that indexes small child chunks and returns bounded parent context for retrieval. Unlike OpenAI vector stores, this strategy is available only through /knowledge/v1; compatible writes reject it and compatible reads project its type as other.
|
|
30973
|
+
*/
|
|
30974
|
+
export type KnowledgeHierarchicalChunking = {
|
|
30526
30975
|
/**
|
|
30527
|
-
*
|
|
30976
|
+
* hierarchical selects smaller child chunks for matching and larger parent chunks for context.
|
|
30528
30977
|
*/
|
|
30529
|
-
|
|
30978
|
+
type: 'hierarchical';
|
|
30979
|
+
/**
|
|
30980
|
+
* Required parent, child and overlap sizes in estimated tokens. All three values must be integers.
|
|
30981
|
+
*/
|
|
30982
|
+
hierarchical: {
|
|
30530
30983
|
/**
|
|
30531
|
-
*
|
|
30984
|
+
* Maximum estimated tokens per parent chunk, from 101 through 4096; must exceed child_max_tokens.
|
|
30532
30985
|
*/
|
|
30533
|
-
|
|
30986
|
+
parent_max_tokens: number;
|
|
30534
30987
|
/**
|
|
30535
|
-
*
|
|
30988
|
+
* Maximum estimated tokens per child chunk, at least 100 and strictly smaller than parent_max_tokens.
|
|
30536
30989
|
*/
|
|
30537
|
-
|
|
30990
|
+
child_max_tokens: number;
|
|
30991
|
+
/**
|
|
30992
|
+
* Estimated tokens shared by adjacent children, from zero through floor(child_max_tokens / 2).
|
|
30993
|
+
*/
|
|
30994
|
+
child_overlap_tokens: number;
|
|
30538
30995
|
};
|
|
30539
30996
|
};
|
|
30540
30997
|
/**
|
|
@@ -30574,6 +31031,15 @@ export type KnowledgeSearchExplain = {
|
|
|
30574
31031
|
*/
|
|
30575
31032
|
matched_terms: Array<string>;
|
|
30576
31033
|
};
|
|
31034
|
+
/**
|
|
31035
|
+
* Stored chunking strategy for this attachment; auto input is returned as static settings.
|
|
31036
|
+
*/
|
|
31037
|
+
export type KnowledgeChunking = KnowledgeStaticChunking | {
|
|
31038
|
+
/**
|
|
31039
|
+
* other identifies a stored strategy whose chunk-size settings are unavailable.
|
|
31040
|
+
*/
|
|
31041
|
+
type: 'other';
|
|
31042
|
+
};
|
|
30577
31043
|
/**
|
|
30578
31044
|
* Aggregate processing state across the asset processing tasks.
|
|
30579
31045
|
*/
|
|
@@ -30582,14 +31048,66 @@ export type MediaProcessingState = 'pending' | 'processing' | 'ready' | 'partial
|
|
|
30582
31048
|
* Task state: pending awaits execution; running is executing; ready succeeded; failed terminated unsuccessfully; unsupported cannot process this input; skipped was disabled or does not apply.
|
|
30583
31049
|
*/
|
|
30584
31050
|
export type MediaKindState = 'pending' | 'running' | 'ready' | 'failed' | 'unsupported' | 'skipped';
|
|
31051
|
+
export type MediaTranscriptCorrection = {
|
|
31052
|
+
/**
|
|
31053
|
+
* Accepted local edits, including deterministic Arabic quantity normalization. Unsupported model edits are discarded.
|
|
31054
|
+
*/
|
|
31055
|
+
readonly edits: Array<MediaTranscriptEdit>;
|
|
31056
|
+
/**
|
|
31057
|
+
* ready means correction and validation completed; failed means text is exactly the ASR original, with no accepted edits.
|
|
31058
|
+
*/
|
|
31059
|
+
readonly correction_status: 'ready' | 'failed';
|
|
31060
|
+
/**
|
|
31061
|
+
* Configured correction model call ID; defaults to qwen3.8-flash.
|
|
31062
|
+
*/
|
|
31063
|
+
readonly correction_model: string;
|
|
31064
|
+
/**
|
|
31065
|
+
* ready means reference ASR supplied text; missing means reference failed or was unavailable and correction proceeded without it.
|
|
31066
|
+
*/
|
|
31067
|
+
readonly reference_status: 'ready' | 'missing';
|
|
31068
|
+
/**
|
|
31069
|
+
* Full reference ASR text, present when reference_status is ready. It supplies spelling evidence and has no timestamps.
|
|
31070
|
+
*/
|
|
31071
|
+
readonly reference_text?: string;
|
|
31072
|
+
/**
|
|
31073
|
+
* Model call ID that supplied the reference text; defaults to qwen3-asr-flash.
|
|
31074
|
+
*/
|
|
31075
|
+
readonly reference_model?: string;
|
|
31076
|
+
/**
|
|
31077
|
+
* Correction failure that caused verbatim fallback to the ASR original.
|
|
31078
|
+
*/
|
|
31079
|
+
readonly correction_error?: {
|
|
31080
|
+
/**
|
|
31081
|
+
* Failure code for the optional transcript enhancement step.
|
|
31082
|
+
*/
|
|
31083
|
+
code: string;
|
|
31084
|
+
/**
|
|
31085
|
+
* Failure detail; use reprocess to retry with the library’s current configuration.
|
|
31086
|
+
*/
|
|
31087
|
+
message: string;
|
|
31088
|
+
};
|
|
31089
|
+
/**
|
|
31090
|
+
* Reference failure; it does not block correction.
|
|
31091
|
+
*/
|
|
31092
|
+
readonly reference_error?: {
|
|
31093
|
+
/**
|
|
31094
|
+
* Failure code for the optional transcript enhancement step.
|
|
31095
|
+
*/
|
|
31096
|
+
code: string;
|
|
31097
|
+
/**
|
|
31098
|
+
* Failure detail; use reprocess to retry with the library’s current configuration.
|
|
31099
|
+
*/
|
|
31100
|
+
message: string;
|
|
31101
|
+
};
|
|
31102
|
+
};
|
|
30585
31103
|
/**
|
|
30586
31104
|
* Identifier of an immutable understanding result.
|
|
30587
31105
|
*/
|
|
30588
31106
|
export type MediaUnderstandingId = string;
|
|
30589
31107
|
/**
|
|
30590
|
-
* Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment.
|
|
31108
|
+
* Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
|
|
30591
31109
|
*/
|
|
30592
|
-
export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
|
|
31110
|
+
export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
|
|
30593
31111
|
/**
|
|
30594
31112
|
* Time range within the source media, expressed in milliseconds.
|
|
30595
31113
|
*/
|
|
@@ -30649,7 +31167,7 @@ export type MediaSemanticMatch = {
|
|
|
30649
31167
|
/**
|
|
30650
31168
|
* Type of change recorded for a library, asset, processing task, search index or batch.
|
|
30651
31169
|
*/
|
|
30652
|
-
export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed';
|
|
31170
|
+
export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
|
|
30653
31171
|
/**
|
|
30654
31172
|
* Auto-resume enabled flag for paused sandboxes. Default false.
|
|
30655
31173
|
*/
|
|
@@ -31281,21 +31799,25 @@ export type AnthropicToolReferenceBlock = {
|
|
|
31281
31799
|
*/
|
|
31282
31800
|
export type CutTextStyle = {
|
|
31283
31801
|
/**
|
|
31284
|
-
*
|
|
31802
|
+
* Canonical font family name; call ListFonts() in the Cut script API to retrieve the available font families.
|
|
31285
31803
|
*/
|
|
31286
|
-
font_family?:
|
|
31804
|
+
font_family?: string;
|
|
31287
31805
|
/**
|
|
31288
31806
|
* Text size in output pixels.
|
|
31289
31807
|
*/
|
|
31290
31808
|
font_size?: number;
|
|
31291
31809
|
/**
|
|
31292
|
-
*
|
|
31810
|
+
* Positive requested font weight; each family has its own available catalog weights, and unsupported values resolve to the nearest available weight, preferring the heavier weight on a tie.
|
|
31293
31811
|
*/
|
|
31294
|
-
font_weight?:
|
|
31812
|
+
font_weight?: number;
|
|
31295
31813
|
/**
|
|
31296
31814
|
* Text color in #RRGGBB or #RRGGBBAA notation.
|
|
31297
31815
|
*/
|
|
31298
31816
|
color?: string;
|
|
31817
|
+
/**
|
|
31818
|
+
* Optional solid or gradient glyph fill; gradients span the text box.
|
|
31819
|
+
*/
|
|
31820
|
+
fill?: CutFill;
|
|
31299
31821
|
/**
|
|
31300
31822
|
* Optional text outline.
|
|
31301
31823
|
*/
|
|
@@ -31305,10 +31827,61 @@ export type CutTextStyle = {
|
|
|
31305
31827
|
*/
|
|
31306
31828
|
color?: string;
|
|
31307
31829
|
/**
|
|
31308
|
-
* Outline width in output pixels.
|
|
31830
|
+
* Outline width in output pixels; must be non-negative and at most 40 pixels.
|
|
31309
31831
|
*/
|
|
31310
31832
|
width?: number;
|
|
31311
31833
|
};
|
|
31834
|
+
/**
|
|
31835
|
+
* Additional outlines, painted from outermost to innermost; at most 4 strokes.
|
|
31836
|
+
*/
|
|
31837
|
+
strokes?: Array<{
|
|
31838
|
+
/**
|
|
31839
|
+
* Outline color in #RRGGBB or #RRGGBBAA notation.
|
|
31840
|
+
*/
|
|
31841
|
+
color?: string;
|
|
31842
|
+
/**
|
|
31843
|
+
* Outline width in output pixels, from 0 to 40.
|
|
31844
|
+
*/
|
|
31845
|
+
width?: number;
|
|
31846
|
+
}>;
|
|
31847
|
+
/**
|
|
31848
|
+
* Offset text shadows; at most 4 shadows. Offsets are non-negative output pixels; blur is 0 to 100 output pixels.
|
|
31849
|
+
*/
|
|
31850
|
+
shadows?: Array<{
|
|
31851
|
+
/**
|
|
31852
|
+
* Shadow color in #RRGGBB or #RRGGBBAA notation.
|
|
31853
|
+
*/
|
|
31854
|
+
color?: string;
|
|
31855
|
+
/**
|
|
31856
|
+
* Non-negative horizontal offset in output pixels.
|
|
31857
|
+
*/
|
|
31858
|
+
x?: number;
|
|
31859
|
+
/**
|
|
31860
|
+
* Non-negative vertical offset in output pixels.
|
|
31861
|
+
*/
|
|
31862
|
+
y?: number;
|
|
31863
|
+
/**
|
|
31864
|
+
* Blur radius in output pixels, from 0 to 100.
|
|
31865
|
+
*/
|
|
31866
|
+
blur?: number;
|
|
31867
|
+
}>;
|
|
31868
|
+
/**
|
|
31869
|
+
* Colored glow around glyphs; radius is in output pixels, from 0 to 100, and strength is from 0 to 1.
|
|
31870
|
+
*/
|
|
31871
|
+
glow?: {
|
|
31872
|
+
/**
|
|
31873
|
+
* Glow color in #RRGGBB or #RRGGBBAA notation.
|
|
31874
|
+
*/
|
|
31875
|
+
color?: string;
|
|
31876
|
+
/**
|
|
31877
|
+
* Glow blur radius in output pixels, from 0 to 100.
|
|
31878
|
+
*/
|
|
31879
|
+
radius?: number;
|
|
31880
|
+
/**
|
|
31881
|
+
* Glow opacity multiplier from 0 to 1.
|
|
31882
|
+
*/
|
|
31883
|
+
strength?: number;
|
|
31884
|
+
};
|
|
31312
31885
|
/**
|
|
31313
31886
|
* Optional text background color as hexadecimal RGB or RGBA.
|
|
31314
31887
|
*/
|
|
@@ -31322,9 +31895,13 @@ export type CutTextStyle = {
|
|
|
31322
31895
|
*/
|
|
31323
31896
|
max_width?: number;
|
|
31324
31897
|
/**
|
|
31325
|
-
*
|
|
31898
|
+
* Text or caption placement: top/middle/bottom center the box at 12%/50%/85% of height without margin; omitted text position preserves its transform.
|
|
31326
31899
|
*/
|
|
31327
31900
|
position?: 'top' | 'middle' | 'bottom';
|
|
31901
|
+
/**
|
|
31902
|
+
* Box edge distance from the top or bottom as a fraction of canvas height; middle ignores it.
|
|
31903
|
+
*/
|
|
31904
|
+
margin?: number;
|
|
31328
31905
|
/**
|
|
31329
31906
|
* Optional color applied to the currently spoken caption word.
|
|
31330
31907
|
*/
|
|
@@ -31436,6 +32013,178 @@ export type CutItem = {
|
|
|
31436
32013
|
*/
|
|
31437
32014
|
words?: Array<CutCaptionWord>;
|
|
31438
32015
|
};
|
|
32016
|
+
/**
|
|
32017
|
+
* Transition between two joined visual clips. The kind identifies an effect from ListTransitions; omitted parameters use that effect's defaults. Unknown fields and invalid values are rejected.
|
|
32018
|
+
*/
|
|
32019
|
+
export type CutJoinEffect = {
|
|
32020
|
+
/**
|
|
32021
|
+
* Dissolve: Blend the outgoing shot into the incoming shot.
|
|
32022
|
+
*/
|
|
32023
|
+
kind: 'dissolve';
|
|
32024
|
+
} | {
|
|
32025
|
+
/**
|
|
32026
|
+
* Dip: Fade through a solid color between the two shots.
|
|
32027
|
+
*/
|
|
32028
|
+
kind: 'dip';
|
|
32029
|
+
/**
|
|
32030
|
+
* Solid color shown between shots.
|
|
32031
|
+
*/
|
|
32032
|
+
color?: 'black' | 'white';
|
|
32033
|
+
} | {
|
|
32034
|
+
/**
|
|
32035
|
+
* Push: Slide the incoming shot into view as it pushes the outgoing shot away.
|
|
32036
|
+
*/
|
|
32037
|
+
kind: 'push';
|
|
32038
|
+
/**
|
|
32039
|
+
* Direction in which the transition moves across the frame.
|
|
32040
|
+
*/
|
|
32041
|
+
direction?: 'left' | 'right' | 'up' | 'down';
|
|
32042
|
+
} | {
|
|
32043
|
+
/**
|
|
32044
|
+
* Wipe: Reveal the incoming shot behind an edge moving across the outgoing shot.
|
|
32045
|
+
*/
|
|
32046
|
+
kind: 'wipe';
|
|
32047
|
+
/**
|
|
32048
|
+
* Direction in which the transition moves across the frame.
|
|
32049
|
+
*/
|
|
32050
|
+
direction?: 'left' | 'right' | 'up' | 'down';
|
|
32051
|
+
/**
|
|
32052
|
+
* Edge softness from a sharp boundary to a fully softened blend.
|
|
32053
|
+
*/
|
|
32054
|
+
softness?: number;
|
|
32055
|
+
} | {
|
|
32056
|
+
/**
|
|
32057
|
+
* Iris: Reveal the incoming shot through an expanding circular opening.
|
|
32058
|
+
*/
|
|
32059
|
+
kind: 'iris';
|
|
32060
|
+
/**
|
|
32061
|
+
* Horizontal opening center from the left edge to the right edge.
|
|
32062
|
+
*/
|
|
32063
|
+
center_x?: number;
|
|
32064
|
+
/**
|
|
32065
|
+
* Vertical opening center from the top edge to the bottom edge.
|
|
32066
|
+
*/
|
|
32067
|
+
center_y?: number;
|
|
32068
|
+
} | {
|
|
32069
|
+
/**
|
|
32070
|
+
* Blinds: Reveal the incoming shot through a set of parallel strips.
|
|
32071
|
+
*/
|
|
32072
|
+
kind: 'blinds';
|
|
32073
|
+
/**
|
|
32074
|
+
* Number of strips revealing the incoming shot.
|
|
32075
|
+
*/
|
|
32076
|
+
count?: number;
|
|
32077
|
+
/**
|
|
32078
|
+
* Orientation of the revealing strips.
|
|
32079
|
+
*/
|
|
32080
|
+
orientation?: 'vertical' | 'horizontal';
|
|
32081
|
+
} | {
|
|
32082
|
+
/**
|
|
32083
|
+
* Blur: Blur the outgoing shot into the incoming shot before returning to focus.
|
|
32084
|
+
*/
|
|
32085
|
+
kind: 'blur';
|
|
32086
|
+
/**
|
|
32087
|
+
* Blur radius in pixels at a reference frame height of 1080 pixels.
|
|
32088
|
+
*/
|
|
32089
|
+
radius?: number;
|
|
32090
|
+
} | {
|
|
32091
|
+
/**
|
|
32092
|
+
* Zoom transition.
|
|
32093
|
+
*/
|
|
32094
|
+
kind: 'zoom';
|
|
32095
|
+
/**
|
|
32096
|
+
* Zoom in or out.
|
|
32097
|
+
*/
|
|
32098
|
+
direction?: 'in' | 'out';
|
|
32099
|
+
/**
|
|
32100
|
+
* Peak scale increase as a multiple of the original scale.
|
|
32101
|
+
*/
|
|
32102
|
+
amount?: number;
|
|
32103
|
+
/**
|
|
32104
|
+
* Radial blur strength; zero disables blur sampling.
|
|
32105
|
+
*/
|
|
32106
|
+
blur?: number;
|
|
32107
|
+
} | {
|
|
32108
|
+
/**
|
|
32109
|
+
* Clock transition.
|
|
32110
|
+
*/
|
|
32111
|
+
kind: 'clock';
|
|
32112
|
+
/**
|
|
32113
|
+
* Sweep direction.
|
|
32114
|
+
*/
|
|
32115
|
+
direction?: 'clockwise' | 'counterclockwise';
|
|
32116
|
+
/**
|
|
32117
|
+
* Start angle in degrees, with zero at twelve o'clock.
|
|
32118
|
+
*/
|
|
32119
|
+
start_angle?: number;
|
|
32120
|
+
/**
|
|
32121
|
+
* Angular feather width.
|
|
32122
|
+
*/
|
|
32123
|
+
softness?: number;
|
|
32124
|
+
} | {
|
|
32125
|
+
/**
|
|
32126
|
+
* Flash transition.
|
|
32127
|
+
*/
|
|
32128
|
+
kind: 'flash';
|
|
32129
|
+
/**
|
|
32130
|
+
* Flash color.
|
|
32131
|
+
*/
|
|
32132
|
+
color?: 'white' | 'black';
|
|
32133
|
+
/**
|
|
32134
|
+
* Flash strength.
|
|
32135
|
+
*/
|
|
32136
|
+
intensity?: number;
|
|
32137
|
+
} | {
|
|
32138
|
+
/**
|
|
32139
|
+
* Luma transition.
|
|
32140
|
+
*/
|
|
32141
|
+
kind: 'luma';
|
|
32142
|
+
/**
|
|
32143
|
+
* Built-in map. User maps are not available yet.
|
|
32144
|
+
*/
|
|
32145
|
+
map?: 'radial' | 'diagonal' | 'clouds' | 'spiral' | 'honeycomb' | 'bars';
|
|
32146
|
+
/**
|
|
32147
|
+
* Edge feather width.
|
|
32148
|
+
*/
|
|
32149
|
+
softness?: number;
|
|
32150
|
+
/**
|
|
32151
|
+
* Reveal order.
|
|
32152
|
+
*/
|
|
32153
|
+
invert?: 'normal' | 'inverted';
|
|
32154
|
+
};
|
|
32155
|
+
export type KnowledgeStaticChunking = {
|
|
32156
|
+
/**
|
|
32157
|
+
* static selects explicit chunk-size and overlap settings.
|
|
32158
|
+
*/
|
|
32159
|
+
type: 'static';
|
|
32160
|
+
/**
|
|
32161
|
+
* Chunk-size and overlap limits in estimated tokens.
|
|
32162
|
+
*/
|
|
32163
|
+
static: {
|
|
32164
|
+
/**
|
|
32165
|
+
* Estimated tokens per chunk.
|
|
32166
|
+
*/
|
|
32167
|
+
max_chunk_size_tokens: number;
|
|
32168
|
+
/**
|
|
32169
|
+
* Must not exceed half of max_chunk_size_tokens.
|
|
32170
|
+
*/
|
|
32171
|
+
chunk_overlap_tokens: number;
|
|
32172
|
+
};
|
|
32173
|
+
};
|
|
32174
|
+
export type MediaTranscriptEdit = {
|
|
32175
|
+
/**
|
|
32176
|
+
* Original literal text replaced by this accepted edit.
|
|
32177
|
+
*/
|
|
32178
|
+
readonly from: string;
|
|
32179
|
+
/**
|
|
32180
|
+
* Replacement text. Model edits require a length difference of at most two Unicode characters, or a target present in hotwords or the reference transcript. Arabic quantity normalization is deterministic.
|
|
32181
|
+
*/
|
|
32182
|
+
readonly to: string;
|
|
32183
|
+
/**
|
|
32184
|
+
* Zero-based index in the assembled, hallucination-filtered ASR segments. Segment timestamps do not change.
|
|
32185
|
+
*/
|
|
32186
|
+
readonly segment_id: number;
|
|
32187
|
+
};
|
|
31439
32188
|
export type MediaShotFlags = {
|
|
31440
32189
|
/**
|
|
31441
32190
|
* Slide or screen-recorded picture/text sequence rather than live footage.
|
|
@@ -31643,6 +32392,51 @@ export type AnthropicCitationsConfig = {
|
|
|
31643
32392
|
*/
|
|
31644
32393
|
enabled: boolean;
|
|
31645
32394
|
};
|
|
32395
|
+
/**
|
|
32396
|
+
* Solid color or a gradient over the styled text box.
|
|
32397
|
+
*/
|
|
32398
|
+
export type CutFill = string | {
|
|
32399
|
+
/**
|
|
32400
|
+
* Linear gradient; angle is in degrees and stop positions range from 0 to 1.
|
|
32401
|
+
*/
|
|
32402
|
+
linear?: {
|
|
32403
|
+
/**
|
|
32404
|
+
* Gradient angle in degrees; 0 runs left to right.
|
|
32405
|
+
*/
|
|
32406
|
+
angle?: number;
|
|
32407
|
+
/**
|
|
32408
|
+
* Gradient color stops; each position is a fraction from 0 to 1.
|
|
32409
|
+
*/
|
|
32410
|
+
stops?: Array<{
|
|
32411
|
+
/**
|
|
32412
|
+
* Stop position as a fraction from 0 to 1.
|
|
32413
|
+
*/
|
|
32414
|
+
at?: number;
|
|
32415
|
+
/**
|
|
32416
|
+
* Stop color in #RRGGBB or #RRGGBBAA notation.
|
|
32417
|
+
*/
|
|
32418
|
+
color?: string;
|
|
32419
|
+
}>;
|
|
32420
|
+
};
|
|
32421
|
+
/**
|
|
32422
|
+
* Radial gradient with stop positions as fractions from 0 to 1.
|
|
32423
|
+
*/
|
|
32424
|
+
radial?: {
|
|
32425
|
+
/**
|
|
32426
|
+
* Gradient color stops; each position is a fraction from 0 to 1.
|
|
32427
|
+
*/
|
|
32428
|
+
stops?: Array<{
|
|
32429
|
+
/**
|
|
32430
|
+
* Stop position as a fraction from 0 to 1.
|
|
32431
|
+
*/
|
|
32432
|
+
at?: number;
|
|
32433
|
+
/**
|
|
32434
|
+
* Stop color in #RRGGBB or #RRGGBBAA notation.
|
|
32435
|
+
*/
|
|
32436
|
+
color?: string;
|
|
32437
|
+
}>;
|
|
32438
|
+
};
|
|
32439
|
+
};
|
|
31646
32440
|
/**
|
|
31647
32441
|
* Visual placement; coordinates are normalized canvas centers.
|
|
31648
32442
|
*/
|
|
@@ -32024,6 +32818,28 @@ export type AutomationJsonValueWritable = null | string | number | boolean | Aut
|
|
|
32024
32818
|
export type AutomationJsonObjectWritable = {
|
|
32025
32819
|
[key: string]: AutomationJsonValueWritable;
|
|
32026
32820
|
};
|
|
32821
|
+
export type KnowledgeNativeSearchPageWritable = {
|
|
32822
|
+
/**
|
|
32823
|
+
* Object discriminator; vector_store.search_results.page identifies a search result page.
|
|
32824
|
+
*/
|
|
32825
|
+
object: 'vector_store.search_results.page';
|
|
32826
|
+
/**
|
|
32827
|
+
* The queries used for retrieval, one per input query; rewritten when rewrite_query is true, otherwise the input as sent.
|
|
32828
|
+
*/
|
|
32829
|
+
search_query: Array<string>;
|
|
32830
|
+
/**
|
|
32831
|
+
* One result per matched chunk; the same file_id can occur more than once.
|
|
32832
|
+
*/
|
|
32833
|
+
data: Array<KnowledgeNativeSearchResultWritable>;
|
|
32834
|
+
/**
|
|
32835
|
+
* True when filtered chunks exceed max_num_results; next_page remains null.
|
|
32836
|
+
*/
|
|
32837
|
+
has_more: boolean;
|
|
32838
|
+
/**
|
|
32839
|
+
* Always null; no next search page.
|
|
32840
|
+
*/
|
|
32841
|
+
next_page: null;
|
|
32842
|
+
};
|
|
32027
32843
|
/**
|
|
32028
32844
|
* A caller-owned media library with lifecycle, usage, understanding settings and model selections.
|
|
32029
32845
|
*/
|
|
@@ -32031,7 +32847,7 @@ export type MediaLibraryWritable = {
|
|
|
32031
32847
|
/**
|
|
32032
32848
|
* Resolved model call IDs used for new uploads and reprocessing.
|
|
32033
32849
|
*/
|
|
32034
|
-
models:
|
|
32850
|
+
models: MediaMediaModelsWritable;
|
|
32035
32851
|
/**
|
|
32036
32852
|
* Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
|
|
32037
32853
|
*/
|
|
@@ -32226,7 +33042,7 @@ export type MediaAssetWritable = {
|
|
|
32226
33042
|
*/
|
|
32227
33043
|
url: string;
|
|
32228
33044
|
/**
|
|
32229
|
-
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the
|
|
33045
|
+
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
|
|
32230
33046
|
*/
|
|
32231
33047
|
secure_url: string;
|
|
32232
33048
|
/**
|
|
@@ -32253,6 +33069,10 @@ export type MediaAssetWritable = {
|
|
|
32253
33069
|
* Resource status; active identifies an asset that has not been deleted.
|
|
32254
33070
|
*/
|
|
32255
33071
|
status: 'active';
|
|
33072
|
+
/**
|
|
33073
|
+
* True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
|
|
33074
|
+
*/
|
|
33075
|
+
has_alpha?: boolean;
|
|
32256
33076
|
/**
|
|
32257
33077
|
* Search-vector status: pending awaits vector generation or reprocessing; ready has searchable vectors; unavailable indicates disabled, unsupported or failed embedding. Existing vectors may still serve searches while reprocessing is pending.
|
|
32258
33078
|
*/
|
|
@@ -32309,6 +33129,27 @@ export type MediaAssetWritable = {
|
|
|
32309
33129
|
};
|
|
32310
33130
|
};
|
|
32311
33131
|
};
|
|
33132
|
+
/**
|
|
33133
|
+
* Source details for the video-generation job that created this asset.
|
|
33134
|
+
*/
|
|
33135
|
+
generation?: {
|
|
33136
|
+
/**
|
|
33137
|
+
* Job id that generated this asset.
|
|
33138
|
+
*/
|
|
33139
|
+
job_id: MediaJobId;
|
|
33140
|
+
/**
|
|
33141
|
+
* Generation intent used to create the asset; v1 supports video.generate.
|
|
33142
|
+
*/
|
|
33143
|
+
intent: string;
|
|
33144
|
+
/**
|
|
33145
|
+
* Text prompt submitted for the generation job.
|
|
33146
|
+
*/
|
|
33147
|
+
prompt: string;
|
|
33148
|
+
/**
|
|
33149
|
+
* Router video-generation model that produced the asset.
|
|
33150
|
+
*/
|
|
33151
|
+
model: string;
|
|
33152
|
+
};
|
|
32312
33153
|
};
|
|
32313
33154
|
/**
|
|
32314
33155
|
* Understanding results in this page, ordered by creation time ascending.
|
|
@@ -32317,7 +33158,7 @@ export type MediaUnderstandingPageWritable = MediaPage & {
|
|
|
32317
33158
|
/**
|
|
32318
33159
|
* Understanding results in this page, ordered by creation time ascending.
|
|
32319
33160
|
*/
|
|
32320
|
-
data: Array<
|
|
33161
|
+
data: Array<MediaUnderstandingWritable>;
|
|
32321
33162
|
/**
|
|
32322
33163
|
* Opaque token to pass as cursor to listUnderstandings; null means no further page.
|
|
32323
33164
|
*/
|
|
@@ -32416,6 +33257,75 @@ export type AgentManaged193Writable = {
|
|
|
32416
33257
|
export type AgentManaged143Writable = {
|
|
32417
33258
|
[key: string]: string;
|
|
32418
33259
|
};
|
|
33260
|
+
export type KnowledgeNativeSearchResultWritable = {
|
|
33261
|
+
/**
|
|
33262
|
+
* Resource ID.
|
|
33263
|
+
*/
|
|
33264
|
+
file_id: string;
|
|
33265
|
+
/**
|
|
33266
|
+
* Original source filename for the matched file.
|
|
33267
|
+
*/
|
|
33268
|
+
filename: string;
|
|
33269
|
+
/**
|
|
33270
|
+
* Relevance ranking score for this chunk, clamped to the range 0 to 1; not a probability.
|
|
33271
|
+
*/
|
|
33272
|
+
score: number;
|
|
33273
|
+
/**
|
|
33274
|
+
* Current file attributes used for filtering; null when unset.
|
|
33275
|
+
*/
|
|
33276
|
+
attributes: KnowledgeAttributes | null;
|
|
33277
|
+
/**
|
|
33278
|
+
* Matched chunk text and its source coordinates; one chunk per native result.
|
|
33279
|
+
*/
|
|
33280
|
+
content: Array<{
|
|
33281
|
+
/**
|
|
33282
|
+
* text identifies an extracted text chunk.
|
|
33283
|
+
*/
|
|
33284
|
+
type: 'text';
|
|
33285
|
+
/**
|
|
33286
|
+
* Extracted text of the matched chunk, which may overlap neighboring chunks.
|
|
33287
|
+
*/
|
|
33288
|
+
text: string;
|
|
33289
|
+
/**
|
|
33290
|
+
* Resource ID.
|
|
33291
|
+
*/
|
|
33292
|
+
chunk_id?: string;
|
|
33293
|
+
/**
|
|
33294
|
+
* One-based source page containing the start of this chunk; null when no page mapping is available.
|
|
33295
|
+
*/
|
|
33296
|
+
page?: number | null;
|
|
33297
|
+
/**
|
|
33298
|
+
* Start and end offsets in UTF-16 code units.
|
|
33299
|
+
*/
|
|
33300
|
+
span?: [
|
|
33301
|
+
number,
|
|
33302
|
+
number
|
|
33303
|
+
];
|
|
33304
|
+
}>;
|
|
33305
|
+
/**
|
|
33306
|
+
* Native search explanation, included only when praxis.explain is requested.
|
|
33307
|
+
*/
|
|
33308
|
+
praxis?: {
|
|
33309
|
+
explain: KnowledgeSearchExplain;
|
|
33310
|
+
};
|
|
33311
|
+
};
|
|
33312
|
+
/**
|
|
33313
|
+
* Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
|
|
33314
|
+
*/
|
|
33315
|
+
export type MediaMediaModelsWritable = {
|
|
33316
|
+
/**
|
|
33317
|
+
* Model call ID for visual descriptions; the model must support image input.
|
|
33318
|
+
*/
|
|
33319
|
+
vision: string;
|
|
33320
|
+
/**
|
|
33321
|
+
* Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
|
|
33322
|
+
*/
|
|
33323
|
+
embedding: string;
|
|
33324
|
+
/**
|
|
33325
|
+
* Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
|
|
33326
|
+
*/
|
|
33327
|
+
transcription: string;
|
|
33328
|
+
};
|
|
32419
33329
|
/**
|
|
32420
33330
|
* Cloudinary-compatible resource. processing is present when the asset was uploaded with auto_tagging; otherwise it is omitted. Native Asset responses always include processing.
|
|
32421
33331
|
*/
|
|
@@ -32533,7 +33443,7 @@ export type MediaCloudinaryResourceWritable = {
|
|
|
32533
33443
|
*/
|
|
32534
33444
|
url: string;
|
|
32535
33445
|
/**
|
|
32536
|
-
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the
|
|
33446
|
+
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
|
|
32537
33447
|
*/
|
|
32538
33448
|
secure_url: string;
|
|
32539
33449
|
/**
|
|
@@ -32556,7 +33466,7 @@ export type MediaChunkCompleteWritable = MediaCloudinaryResourceWritable & {
|
|
|
32556
33466
|
done: true;
|
|
32557
33467
|
};
|
|
32558
33468
|
/**
|
|
32559
|
-
* Per-task processing progress and its aggregate state for the asset.
|
|
33469
|
+
* Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
|
|
32560
33470
|
*/
|
|
32561
33471
|
export type MediaProcessingWritable = {
|
|
32562
33472
|
state: MediaProcessingState;
|
|
@@ -32571,6 +33481,76 @@ export type MediaProcessingWritable = {
|
|
|
32571
33481
|
*/
|
|
32572
33482
|
updated_at: MediaIsoTimestamp;
|
|
32573
33483
|
};
|
|
33484
|
+
/**
|
|
33485
|
+
* An immutable understanding result for an asset version, including superseded history when requested.
|
|
33486
|
+
*/
|
|
33487
|
+
export type MediaUnderstandingWritable = {
|
|
33488
|
+
/**
|
|
33489
|
+
* Generated identifier of this understanding result.
|
|
33490
|
+
*/
|
|
33491
|
+
id: MediaUnderstandingId;
|
|
33492
|
+
/**
|
|
33493
|
+
* Identifier of the asset from which this result was produced.
|
|
33494
|
+
*/
|
|
33495
|
+
asset_id: MediaAssetId;
|
|
33496
|
+
/**
|
|
33497
|
+
* Asset version processed to produce this result; compare with the asset’s current version.
|
|
33498
|
+
*/
|
|
33499
|
+
asset_version: number;
|
|
33500
|
+
/**
|
|
33501
|
+
* Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
|
|
33502
|
+
*/
|
|
33503
|
+
kind: MediaUnderstandingKind;
|
|
33504
|
+
/**
|
|
33505
|
+
* Producer model identifier; a failure may use the configured model when no model response is available.
|
|
33506
|
+
*/
|
|
33507
|
+
producer: string;
|
|
33508
|
+
/**
|
|
33509
|
+
* Version of the producer that generated this understanding result.
|
|
33510
|
+
*/
|
|
33511
|
+
producer_version: string;
|
|
33512
|
+
/**
|
|
33513
|
+
* Source-media time range for a frame or transcript segment; null for results without a segment.
|
|
33514
|
+
*/
|
|
33515
|
+
segment: MediaSegment | null;
|
|
33516
|
+
/**
|
|
33517
|
+
* Result status: ready contains completed output; failed records an error.
|
|
33518
|
+
*/
|
|
33519
|
+
status: 'ready' | 'failed';
|
|
33520
|
+
/**
|
|
33521
|
+
* Text output, such as a caption, recognized text or transcript; null for structured-only or failed results.
|
|
33522
|
+
*/
|
|
33523
|
+
content: string | null;
|
|
33524
|
+
/**
|
|
33525
|
+
* Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape. Transcript segments may contain speaker (a diarization label, not a verified identity), words (text, start_ms and end_ms in source-media milliseconds) and producer (the actual fallback model when different from the record producer). Overview data contains chapters (first_shot, title, summary, start_ms, end_ms), iab (tier1, optional tier2, confidence from 0 to 1), and location (an unverified place guess or null); content is the full-video summary. Audio data contains segments (start_s and end_s in source-media seconds; type is speech, music, ambient or silence), has_music, genre, mood, bpm_estimate (nullable), bpm_is_estimate=true and analyzed_ranges (start_s, end_s in seconds). Genre and mood are nullable model labels. Audio understanding samples only the first 120 seconds in at most three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate, not an exact tempo; has_music=false only means no music was detected within analyzed_ranges.
|
|
33526
|
+
*/
|
|
33527
|
+
data: unknown | null;
|
|
33528
|
+
/**
|
|
33529
|
+
* Confidence value recorded by the producer; null when no confidence value is recorded.
|
|
33530
|
+
*/
|
|
33531
|
+
confidence: number | null;
|
|
33532
|
+
/**
|
|
33533
|
+
* Failure code and message, or null for a successful result.
|
|
33534
|
+
*/
|
|
33535
|
+
error: {
|
|
33536
|
+
/**
|
|
33537
|
+
* Failure code identifying why understanding could not complete.
|
|
33538
|
+
*/
|
|
33539
|
+
code: string;
|
|
33540
|
+
/**
|
|
33541
|
+
* Human-readable explanation of the understanding failure.
|
|
33542
|
+
*/
|
|
33543
|
+
message: string;
|
|
33544
|
+
} | null;
|
|
33545
|
+
/**
|
|
33546
|
+
* Whether a newer result or asset version has replaced this result. Excluded from listing unless include_superseded is true.
|
|
33547
|
+
*/
|
|
33548
|
+
superseded: boolean;
|
|
33549
|
+
/**
|
|
33550
|
+
* Time this immutable result was recorded, in UTC.
|
|
33551
|
+
*/
|
|
33552
|
+
created_at: MediaIsoTimestamp;
|
|
33553
|
+
};
|
|
32574
33554
|
/**
|
|
32575
33555
|
* A native asset returned by expression search; tags and context are included only when requested in with_field.
|
|
32576
33556
|
*/
|
|
@@ -32688,7 +33668,7 @@ export type MediaSearchAssetWritable = {
|
|
|
32688
33668
|
*/
|
|
32689
33669
|
url: string;
|
|
32690
33670
|
/**
|
|
32691
|
-
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the
|
|
33671
|
+
* HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
|
|
32692
33672
|
*/
|
|
32693
33673
|
secure_url: string;
|
|
32694
33674
|
/**
|
|
@@ -32715,6 +33695,10 @@ export type MediaSearchAssetWritable = {
|
|
|
32715
33695
|
* Resource status; active identifies an asset that has not been deleted.
|
|
32716
33696
|
*/
|
|
32717
33697
|
status: 'active';
|
|
33698
|
+
/**
|
|
33699
|
+
* True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
|
|
33700
|
+
*/
|
|
33701
|
+
has_alpha?: boolean;
|
|
32718
33702
|
/**
|
|
32719
33703
|
* Search-vector status: pending awaits vector generation or reprocessing; ready has searchable vectors; unavailable indicates disabled, unsupported or failed embedding. Existing vectors may still serve searches while reprocessing is pending.
|
|
32720
33704
|
*/
|
|
@@ -32771,6 +33755,27 @@ export type MediaSearchAssetWritable = {
|
|
|
32771
33755
|
};
|
|
32772
33756
|
};
|
|
32773
33757
|
};
|
|
33758
|
+
/**
|
|
33759
|
+
* Source details for the video-generation job that created this asset.
|
|
33760
|
+
*/
|
|
33761
|
+
generation?: {
|
|
33762
|
+
/**
|
|
33763
|
+
* Job id that generated this asset.
|
|
33764
|
+
*/
|
|
33765
|
+
job_id: MediaJobId;
|
|
33766
|
+
/**
|
|
33767
|
+
* Generation intent used to create the asset; v1 supports video.generate.
|
|
33768
|
+
*/
|
|
33769
|
+
intent: string;
|
|
33770
|
+
/**
|
|
33771
|
+
* Text prompt submitted for the generation job.
|
|
33772
|
+
*/
|
|
33773
|
+
prompt: string;
|
|
33774
|
+
/**
|
|
33775
|
+
* Router video-generation model that produced the asset.
|
|
33776
|
+
*/
|
|
33777
|
+
model: string;
|
|
33778
|
+
};
|
|
32774
33779
|
};
|
|
32775
33780
|
/**
|
|
32776
33781
|
* A matching asset with its ranking score and supporting matches.
|
|
@@ -32796,6 +33801,9 @@ export type MediaSemanticHitWritable = {
|
|
|
32796
33801
|
export type AgentManaged34Writable = {
|
|
32797
33802
|
[key: string]: unknown;
|
|
32798
33803
|
};
|
|
33804
|
+
export type MediaTranscriptCorrectionWritable = {
|
|
33805
|
+
[key: string]: unknown;
|
|
33806
|
+
};
|
|
32799
33807
|
/**
|
|
32800
33808
|
* Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
|
|
32801
33809
|
*/
|
|
@@ -33013,7 +34021,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
33013
34021
|
*/
|
|
33014
34022
|
note: string | null;
|
|
33015
34023
|
/**
|
|
33016
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or
|
|
34024
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
33017
34025
|
*/
|
|
33018
34026
|
bindings: Array<{
|
|
33019
34027
|
/**
|
|
@@ -33044,7 +34052,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
33044
34052
|
/**
|
|
33045
34053
|
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
33046
34054
|
*/
|
|
33047
|
-
type: 'search' | 'browser';
|
|
34055
|
+
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
|
|
33048
34056
|
/**
|
|
33049
34057
|
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
33050
34058
|
*/
|
|
@@ -34230,7 +35238,7 @@ export type UnarchiveAgentResponses = {
|
|
|
34230
35238
|
*/
|
|
34231
35239
|
note: string | null;
|
|
34232
35240
|
/**
|
|
34233
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or
|
|
35241
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
34234
35242
|
*/
|
|
34235
35243
|
bindings: Array<{
|
|
34236
35244
|
/**
|
|
@@ -34261,7 +35269,7 @@ export type UnarchiveAgentResponses = {
|
|
|
34261
35269
|
/**
|
|
34262
35270
|
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
34263
35271
|
*/
|
|
34264
|
-
type: 'search' | 'browser';
|
|
35272
|
+
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
|
|
34265
35273
|
/**
|
|
34266
35274
|
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
34267
35275
|
*/
|
|
@@ -43368,6 +44376,42 @@ export type FileCancelUploadResponses = {
|
|
|
43368
44376
|
200: OwnFilePraxisUpload;
|
|
43369
44377
|
};
|
|
43370
44378
|
export type FileCancelUploadResponse = FileCancelUploadResponses[keyof FileCancelUploadResponses];
|
|
44379
|
+
export type FileRetrieveUploadData = {
|
|
44380
|
+
body?: never;
|
|
44381
|
+
path: {
|
|
44382
|
+
/**
|
|
44383
|
+
* Upload identifier returned by create on this face; the upload belongs to your organization.
|
|
44384
|
+
*/
|
|
44385
|
+
upload_id: string;
|
|
44386
|
+
};
|
|
44387
|
+
query?: never;
|
|
44388
|
+
url: '/file/v1/uploads/{upload_id}';
|
|
44389
|
+
};
|
|
44390
|
+
export type FileRetrieveUploadErrors = {
|
|
44391
|
+
/**
|
|
44392
|
+
* INVALID_PARAMS: correct the upload_id before retrying.
|
|
44393
|
+
*/
|
|
44394
|
+
400: unknown;
|
|
44395
|
+
/**
|
|
44396
|
+
* UNAUTHENTICATED: supply a valid organization API key or signed-in session.
|
|
44397
|
+
*/
|
|
44398
|
+
401: unknown;
|
|
44399
|
+
/**
|
|
44400
|
+
* UPLOAD_NOT_FOUND: the upload is missing or belongs to another organization; create a new upload and send its parts.
|
|
44401
|
+
*/
|
|
44402
|
+
404: unknown;
|
|
44403
|
+
/**
|
|
44404
|
+
* UPLOAD_INVALID_STATE: the upload was cancelled or expired; create a new upload and send its parts again.
|
|
44405
|
+
*/
|
|
44406
|
+
409: unknown;
|
|
44407
|
+
};
|
|
44408
|
+
export type FileRetrieveUploadResponses = {
|
|
44409
|
+
/**
|
|
44410
|
+
* The upload state plus part_size and the received_parts list; complete once every part is present.
|
|
44411
|
+
*/
|
|
44412
|
+
200: OwnFilePraxisUpload;
|
|
44413
|
+
};
|
|
44414
|
+
export type FileRetrieveUploadResponse = FileRetrieveUploadResponses[keyof FileRetrieveUploadResponses];
|
|
43371
44415
|
export type FileCreateSignedUploadData = {
|
|
43372
44416
|
body: OwnFileSignedUploadRequest;
|
|
43373
44417
|
path?: never;
|
|
@@ -43398,7 +44442,7 @@ export type FileCreateSignedUploadResponse = FileCreateSignedUploadResponses[key
|
|
|
43398
44442
|
export type FileCreateContentUrlData = {
|
|
43399
44443
|
body?: {
|
|
43400
44444
|
/**
|
|
43401
|
-
* Download link lifetime in seconds, from 1 through 604800; omitted means
|
|
44445
|
+
* Download link lifetime in seconds, from 1 through 604800; omitted means 900. This does not change the file's own expiry.
|
|
43402
44446
|
*/
|
|
43403
44447
|
ttl_seconds?: number;
|
|
43404
44448
|
};
|
|
@@ -44944,31 +45988,29 @@ export type CreateSystemoneResponse = CreateSystemoneResponses[keyof CreateSyste
|
|
|
44944
45988
|
export type CreateAudioTranscriptionData = {
|
|
44945
45989
|
body: {
|
|
44946
45990
|
/**
|
|
44947
|
-
*
|
|
45991
|
+
* Model catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix.
|
|
44948
45992
|
*/
|
|
44949
45993
|
model: string;
|
|
44950
45994
|
/**
|
|
44951
|
-
* Audio
|
|
45995
|
+
* Audio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model.
|
|
44952
45996
|
*/
|
|
44953
45997
|
file: Blob | File;
|
|
44954
45998
|
/**
|
|
44955
|
-
*
|
|
45999
|
+
* Source language code when known; omit to let the model detect the language.
|
|
44956
46000
|
*/
|
|
44957
46001
|
language?: string;
|
|
44958
46002
|
/**
|
|
44959
|
-
*
|
|
46003
|
+
* Optional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model.
|
|
44960
46004
|
*/
|
|
44961
46005
|
prompt?: string;
|
|
44962
46006
|
/**
|
|
44963
|
-
*
|
|
46007
|
+
* Output format: json returns text in JSON; text returns plain text; verbose_json includes requested timestamps; diarized_json includes speaker-labelled segments when supported. Defaults to json.
|
|
44964
46008
|
*/
|
|
44965
|
-
response_format?: 'json' | 'text' | 'verbose_json';
|
|
46009
|
+
response_format?: 'json' | 'text' | 'verbose_json' | 'diarized_json';
|
|
44966
46010
|
/**
|
|
44967
|
-
* Timestamp levels to
|
|
46011
|
+
* Timestamp levels to request as repeated multipart fields: word returns per-word times; segment returns segment times. Omit for the model default. Use verbose_json, or diarized_json on supporting models.
|
|
44968
46012
|
*/
|
|
44969
|
-
'timestamp_granularities[]'?:
|
|
44970
|
-
'segment'
|
|
44971
|
-
];
|
|
46013
|
+
'timestamp_granularities[]'?: Array<'word' | 'segment'>;
|
|
44972
46014
|
/**
|
|
44973
46015
|
* Both whisper-large-v3-turbo and qwen3-asr-flash return 400.
|
|
44974
46016
|
*/
|
|
@@ -44980,11 +46022,11 @@ export type CreateAudioTranscriptionData = {
|
|
|
44980
46022
|
};
|
|
44981
46023
|
export type CreateAudioTranscriptionErrors = {
|
|
44982
46024
|
/**
|
|
44983
|
-
*
|
|
46025
|
+
* A field
|
|
44984
46026
|
*/
|
|
44985
46027
|
400: unknown;
|
|
44986
46028
|
/**
|
|
44987
|
-
* No
|
|
46029
|
+
* No provider route supports this request; select an available model and its declared transcription features.
|
|
44988
46030
|
*/
|
|
44989
46031
|
503: unknown;
|
|
44990
46032
|
};
|
|
@@ -44994,58 +46036,79 @@ export type CreateAudioTranscriptionResponses = {
|
|
|
44994
46036
|
*/
|
|
44995
46037
|
200: {
|
|
44996
46038
|
/**
|
|
44997
|
-
*
|
|
46039
|
+
* Recognized speech text in the original language.
|
|
44998
46040
|
*/
|
|
44999
46041
|
text: string;
|
|
45000
46042
|
/**
|
|
45001
|
-
*
|
|
46043
|
+
* transcribe identifies speech-to-text transcription.
|
|
45002
46044
|
*/
|
|
45003
46045
|
task?: 'transcribe';
|
|
45004
46046
|
/**
|
|
45005
|
-
*
|
|
46047
|
+
* Detected or requested source language code.
|
|
45006
46048
|
*/
|
|
45007
46049
|
language?: string;
|
|
45008
46050
|
/**
|
|
45009
|
-
*
|
|
46051
|
+
* Audio duration in seconds when provided by the model.
|
|
45010
46052
|
*/
|
|
45011
46053
|
duration?: number;
|
|
45012
46054
|
/**
|
|
45013
|
-
*
|
|
46055
|
+
* Time-aligned speech segments when returned by the selected model and response format.
|
|
45014
46056
|
*/
|
|
45015
46057
|
segments?: Array<{
|
|
45016
46058
|
/**
|
|
45017
|
-
*
|
|
46059
|
+
* Segment identifier within this transcription response.
|
|
45018
46060
|
*/
|
|
45019
46061
|
id: number;
|
|
45020
46062
|
/**
|
|
45021
|
-
*
|
|
46063
|
+
* Inclusive start time in seconds from the beginning of the audio.
|
|
45022
46064
|
*/
|
|
45023
46065
|
start: number;
|
|
45024
46066
|
/**
|
|
45025
|
-
*
|
|
46067
|
+
* Exclusive end time in seconds from the beginning of the audio.
|
|
45026
46068
|
*/
|
|
45027
46069
|
end: number;
|
|
45028
46070
|
/**
|
|
45029
|
-
*
|
|
46071
|
+
* Recognized speech text in the original language.
|
|
45030
46072
|
*/
|
|
45031
46073
|
text: string;
|
|
45032
46074
|
/**
|
|
45033
|
-
*
|
|
46075
|
+
* Speaker label in diarized_json when supported; labels distinguish voices and are not verified identities.
|
|
46076
|
+
*/
|
|
46077
|
+
speaker?: string;
|
|
46078
|
+
/**
|
|
46079
|
+
* Decoding temperature reported by the transcription model.
|
|
45034
46080
|
*/
|
|
45035
46081
|
temperature?: number;
|
|
45036
46082
|
/**
|
|
45037
|
-
* Average
|
|
46083
|
+
* Average segment token log probability when provided.
|
|
45038
46084
|
*/
|
|
45039
46085
|
avg_logprob?: number;
|
|
45040
46086
|
/**
|
|
45041
|
-
*
|
|
46087
|
+
* Text compression ratio reported for this segment.
|
|
45042
46088
|
*/
|
|
45043
46089
|
compression_ratio?: number;
|
|
45044
46090
|
/**
|
|
45045
|
-
* Probability
|
|
46091
|
+
* Probability of no speech reported for this segment.
|
|
45046
46092
|
*/
|
|
45047
46093
|
no_speech_prob?: number;
|
|
45048
46094
|
}>;
|
|
46095
|
+
/**
|
|
46096
|
+
* Per-word source-audio timestamps when word granularity is requested and supported.
|
|
46097
|
+
*/
|
|
46098
|
+
words?: Array<{
|
|
46099
|
+
/**
|
|
46100
|
+
* Recognized word text in its original language.
|
|
46101
|
+
*/
|
|
46102
|
+
word: string;
|
|
46103
|
+
/**
|
|
46104
|
+
* Inclusive word start in seconds from the beginning of the audio.
|
|
46105
|
+
*/
|
|
46106
|
+
start: number;
|
|
46107
|
+
/**
|
|
46108
|
+
* Exclusive word end in seconds from the beginning of the audio.
|
|
46109
|
+
*/
|
|
46110
|
+
end: number;
|
|
46111
|
+
}>;
|
|
45049
46112
|
};
|
|
45050
46113
|
};
|
|
45051
46114
|
export type CreateAudioTranscriptionResponse = CreateAudioTranscriptionResponses[keyof CreateAudioTranscriptionResponses];
|
|
@@ -50785,7 +51848,7 @@ export type AgentsListResponses = {
|
|
|
50785
51848
|
*/
|
|
50786
51849
|
note: string | null;
|
|
50787
51850
|
/**
|
|
50788
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or
|
|
51851
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
50789
51852
|
*/
|
|
50790
51853
|
bindings: Array<{
|
|
50791
51854
|
/**
|
|
@@ -50816,7 +51879,7 @@ export type AgentsListResponses = {
|
|
|
50816
51879
|
/**
|
|
50817
51880
|
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
50818
51881
|
*/
|
|
50819
|
-
type: 'search' | 'browser';
|
|
51882
|
+
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
|
|
50820
51883
|
/**
|
|
50821
51884
|
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
50822
51885
|
*/
|
|
@@ -51324,7 +52387,7 @@ export type AgentsCreateData = {
|
|
|
51324
52387
|
*/
|
|
51325
52388
|
tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
|
|
51326
52389
|
/**
|
|
51327
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or
|
|
52390
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
51328
52391
|
*/
|
|
51329
52392
|
bindings?: Array<{
|
|
51330
52393
|
/**
|
|
@@ -51355,7 +52418,7 @@ export type AgentsCreateData = {
|
|
|
51355
52418
|
/**
|
|
51356
52419
|
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
51357
52420
|
*/
|
|
51358
|
-
type: 'search' | 'browser';
|
|
52421
|
+
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
|
|
51359
52422
|
/**
|
|
51360
52423
|
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
51361
52424
|
*/
|
|
@@ -51925,7 +52988,7 @@ export type AgentsCreateResponses = {
|
|
|
51925
52988
|
*/
|
|
51926
52989
|
note: string | null;
|
|
51927
52990
|
/**
|
|
51928
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or
|
|
52991
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
51929
52992
|
*/
|
|
51930
52993
|
bindings: Array<{
|
|
51931
52994
|
/**
|
|
@@ -51956,7 +53019,7 @@ export type AgentsCreateResponses = {
|
|
|
51956
53019
|
/**
|
|
51957
53020
|
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
51958
53021
|
*/
|
|
51959
|
-
type: 'search' | 'browser';
|
|
53022
|
+
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
|
|
51960
53023
|
/**
|
|
51961
53024
|
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
51962
53025
|
*/
|
|
@@ -52553,7 +53616,7 @@ export type AgentsRetrieveResponses = {
|
|
|
52553
53616
|
*/
|
|
52554
53617
|
note: string | null;
|
|
52555
53618
|
/**
|
|
52556
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or
|
|
53619
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
52557
53620
|
*/
|
|
52558
53621
|
bindings: Array<{
|
|
52559
53622
|
/**
|
|
@@ -52584,7 +53647,7 @@ export type AgentsRetrieveResponses = {
|
|
|
52584
53647
|
/**
|
|
52585
53648
|
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
52586
53649
|
*/
|
|
52587
|
-
type: 'search' | 'browser';
|
|
53650
|
+
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
|
|
52588
53651
|
/**
|
|
52589
53652
|
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
52590
53653
|
*/
|
|
@@ -53132,7 +54195,7 @@ export type AgentsUpdateData = {
|
|
|
53132
54195
|
/**
|
|
53133
54196
|
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
53134
54197
|
*/
|
|
53135
|
-
type: 'search' | 'browser';
|
|
54198
|
+
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
|
|
53136
54199
|
/**
|
|
53137
54200
|
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
53138
54201
|
*/
|
|
@@ -53715,7 +54778,7 @@ export type AgentsUpdateResponses = {
|
|
|
53715
54778
|
*/
|
|
53716
54779
|
note: string | null;
|
|
53717
54780
|
/**
|
|
53718
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or
|
|
54781
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
53719
54782
|
*/
|
|
53720
54783
|
bindings: Array<{
|
|
53721
54784
|
/**
|
|
@@ -53746,7 +54809,7 @@ export type AgentsUpdateResponses = {
|
|
|
53746
54809
|
/**
|
|
53747
54810
|
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
53748
54811
|
*/
|
|
53749
|
-
type: 'search' | 'browser';
|
|
54812
|
+
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
|
|
53750
54813
|
/**
|
|
53751
54814
|
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
53752
54815
|
*/
|
|
@@ -54329,7 +55392,7 @@ export type AgentsArchiveResponses = {
|
|
|
54329
55392
|
*/
|
|
54330
55393
|
note: string | null;
|
|
54331
55394
|
/**
|
|
54332
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or
|
|
55395
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
54333
55396
|
*/
|
|
54334
55397
|
bindings: Array<{
|
|
54335
55398
|
/**
|
|
@@ -54360,7 +55423,7 @@ export type AgentsArchiveResponses = {
|
|
|
54360
55423
|
/**
|
|
54361
55424
|
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
54362
55425
|
*/
|
|
54363
|
-
type: 'search' | 'browser';
|
|
55426
|
+
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
|
|
54364
55427
|
/**
|
|
54365
55428
|
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
54366
55429
|
*/
|
|
@@ -54961,7 +56024,7 @@ export type AgentsVersionsListResponses = {
|
|
|
54961
56024
|
*/
|
|
54962
56025
|
note: string | null;
|
|
54963
56026
|
/**
|
|
54964
|
-
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or
|
|
56027
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
|
|
54965
56028
|
*/
|
|
54966
56029
|
bindings: Array<{
|
|
54967
56030
|
/**
|
|
@@ -54992,7 +56055,7 @@ export type AgentsVersionsListResponses = {
|
|
|
54992
56055
|
/**
|
|
54993
56056
|
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
54994
56057
|
*/
|
|
54995
|
-
type: 'search' | 'browser';
|
|
56058
|
+
type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
|
|
54996
56059
|
/**
|
|
54997
56060
|
* Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
|
|
54998
56061
|
*/
|
|
@@ -68753,7 +69816,7 @@ export type CutExecuteData = {
|
|
|
68753
69816
|
};
|
|
68754
69817
|
export type CutExecuteErrors = {
|
|
68755
69818
|
/**
|
|
68756
|
-
* SCRIPT_ERROR, SCRIPT_LIMIT or
|
|
69819
|
+
* SCRIPT_ERROR, SCRIPT_LIMIT, OPS_REJECTED or INVALID_CAPTION_FILE means the script failed and its writes rolled back; correct the source using error.details.edit_id and edits when provided. EDIT_EXPIRED means the saved source is older than ten minutes; resubmit corrected script source.
|
|
68757
69820
|
*/
|
|
68758
69821
|
400: CutCutError;
|
|
68759
69822
|
/**
|
|
@@ -68918,7 +69981,7 @@ export type CutListFramesData = {
|
|
|
68918
69981
|
*/
|
|
68919
69982
|
at: string;
|
|
68920
69983
|
/**
|
|
68921
|
-
*
|
|
69984
|
+
* Image size multiplier, default 0.25, greater than zero and at most 0.5. Larger values return INVALID_PARAMS; pixel-area limits may reduce actual dimensions, reported as width and height.
|
|
68922
69985
|
*/
|
|
68923
69986
|
scale?: number;
|
|
68924
69987
|
/**
|
|
@@ -69260,7 +70323,7 @@ export type CutListExportsResponses = {
|
|
|
69260
70323
|
export type CutListExportsResponse = CutListExportsResponses[keyof CutListExportsResponses];
|
|
69261
70324
|
export type CutCreateExportData = {
|
|
69262
70325
|
/**
|
|
69263
|
-
* Start an export from a project revision into a bound library.
|
|
70326
|
+
* Start an export from a project revision into a bound library. Output assets carry the cut-export tag and project_id, export_id and duration (seconds) context. Unavailable source metadata rejects creation with MEDIA_UNAVAILABLE and source clip and asset identities before rendering starts. Sources follow current asset versions; the current version is frozen at creation.
|
|
69264
70327
|
*/
|
|
69265
70328
|
body: CutExportInput;
|
|
69266
70329
|
path: {
|
|
@@ -71072,7 +72135,7 @@ export type KnowledgeListFilesResponses = {
|
|
|
71072
72135
|
};
|
|
71073
72136
|
export type KnowledgeListFilesResponse = KnowledgeListFilesResponses[keyof KnowledgeListFilesResponses];
|
|
71074
72137
|
export type KnowledgeAttachFileData = {
|
|
71075
|
-
body:
|
|
72138
|
+
body: KnowledgeNativeAttachFile;
|
|
71076
72139
|
path: {
|
|
71077
72140
|
/**
|
|
71078
72141
|
* Resource ID.
|
|
@@ -71373,7 +72436,7 @@ export type KnowledgeRetrieveFileContentResponses = {
|
|
|
71373
72436
|
};
|
|
71374
72437
|
export type KnowledgeRetrieveFileContentResponse = KnowledgeRetrieveFileContentResponses[keyof KnowledgeRetrieveFileContentResponses];
|
|
71375
72438
|
export type KnowledgeCreateFileBatchData = {
|
|
71376
|
-
body:
|
|
72439
|
+
body: KnowledgeNativeCreateBatch;
|
|
71377
72440
|
path: {
|
|
71378
72441
|
/**
|
|
71379
72442
|
* Resource ID.
|
|
@@ -72061,6 +73124,10 @@ export type MediaListLibrariesErrors = {
|
|
|
72061
73124
|
* Request failed; see the error code reference.
|
|
72062
73125
|
*/
|
|
72063
73126
|
415: MediaMediaError;
|
|
73127
|
+
/**
|
|
73128
|
+
* Request failed; see the error code reference.
|
|
73129
|
+
*/
|
|
73130
|
+
422: MediaMediaError;
|
|
72064
73131
|
/**
|
|
72065
73132
|
* Request failed; see the error code reference.
|
|
72066
73133
|
*/
|
|
@@ -72152,6 +73219,10 @@ export type MediaCreateLibraryErrors = {
|
|
|
72152
73219
|
* Request failed; see the error code reference.
|
|
72153
73220
|
*/
|
|
72154
73221
|
415: MediaMediaError;
|
|
73222
|
+
/**
|
|
73223
|
+
* Request failed; see the error code reference.
|
|
73224
|
+
*/
|
|
73225
|
+
422: MediaMediaError;
|
|
72155
73226
|
/**
|
|
72156
73227
|
* Request failed; see the error code reference.
|
|
72157
73228
|
*/
|
|
@@ -72177,6 +73248,84 @@ export type MediaCreateLibraryResponses = {
|
|
|
72177
73248
|
200: MediaLibrary;
|
|
72178
73249
|
};
|
|
72179
73250
|
export type MediaCreateLibraryResponse = MediaCreateLibraryResponses[keyof MediaCreateLibraryResponses];
|
|
73251
|
+
export type MediaCreateFrameUrlsData = {
|
|
73252
|
+
body: {
|
|
73253
|
+
/**
|
|
73254
|
+
* One to twenty timestamps in microseconds from the start of the video. Each must be a nonnegative safe integer strictly below the video duration; order and duplicates are preserved.
|
|
73255
|
+
*/
|
|
73256
|
+
at_micros: Array<number>;
|
|
73257
|
+
/**
|
|
73258
|
+
* Maximum JPEG width in pixels: 160 is a small thumbnail, 320 a preview and 640 a larger preview. Defaults to 640; larger widths are unavailable.
|
|
73259
|
+
*/
|
|
73260
|
+
width?: 160 | 320 | 640;
|
|
73261
|
+
};
|
|
73262
|
+
path: {
|
|
73263
|
+
/**
|
|
73264
|
+
* Library identifier returned by library creation or listing; must be accessible to the current credential.
|
|
73265
|
+
*/
|
|
73266
|
+
library_id: string;
|
|
73267
|
+
/**
|
|
73268
|
+
* Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps.
|
|
73269
|
+
*/
|
|
73270
|
+
asset_id: string;
|
|
73271
|
+
};
|
|
73272
|
+
query?: never;
|
|
73273
|
+
url: '/media/v1/libraries/{library_id}/assets/{asset_id}/frames';
|
|
73274
|
+
};
|
|
73275
|
+
export type MediaCreateFrameUrlsErrors = {
|
|
73276
|
+
/**
|
|
73277
|
+
* INVALID_PARAMS: supply 1–20 nonnegative integer timestamps below video duration and width 160, 320 or 640; images and audio cannot produce video frames.
|
|
73278
|
+
*/
|
|
73279
|
+
400: MediaMediaError;
|
|
73280
|
+
/**
|
|
73281
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
73282
|
+
*/
|
|
73283
|
+
403: MediaMediaError;
|
|
73284
|
+
/**
|
|
73285
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
73286
|
+
*/
|
|
73287
|
+
404: MediaMediaError;
|
|
73288
|
+
/**
|
|
73289
|
+
* Request failed; see the error code reference.
|
|
73290
|
+
*/
|
|
73291
|
+
409: MediaMediaError;
|
|
73292
|
+
/**
|
|
73293
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
73294
|
+
*/
|
|
73295
|
+
413: MediaMediaError;
|
|
73296
|
+
/**
|
|
73297
|
+
* This media format is unsupported; provide a supported format.
|
|
73298
|
+
*/
|
|
73299
|
+
415: MediaMediaError;
|
|
73300
|
+
/**
|
|
73301
|
+
* Request failed; see the error code reference.
|
|
73302
|
+
*/
|
|
73303
|
+
422: MediaMediaError;
|
|
73304
|
+
/**
|
|
73305
|
+
* A rate limit was reached; wait before retrying.
|
|
73306
|
+
*/
|
|
73307
|
+
429: MediaMediaError;
|
|
73308
|
+
/**
|
|
73309
|
+
* The requested operation is unsupported; choose a supported method.
|
|
73310
|
+
*/
|
|
73311
|
+
501: MediaMediaError;
|
|
73312
|
+
/**
|
|
73313
|
+
* Request failed; see the error code reference.
|
|
73314
|
+
*/
|
|
73315
|
+
502: MediaMediaError;
|
|
73316
|
+
/**
|
|
73317
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
73318
|
+
*/
|
|
73319
|
+
503: MediaMediaError;
|
|
73320
|
+
};
|
|
73321
|
+
export type MediaCreateFrameUrlsError = MediaCreateFrameUrlsErrors[keyof MediaCreateFrameUrlsErrors];
|
|
73322
|
+
export type MediaCreateFrameUrlsResponses = {
|
|
73323
|
+
/**
|
|
73324
|
+
* Successful response.
|
|
73325
|
+
*/
|
|
73326
|
+
200: MediaFrameUrls;
|
|
73327
|
+
};
|
|
73328
|
+
export type MediaCreateFrameUrlsResponse = MediaCreateFrameUrlsResponses[keyof MediaCreateFrameUrlsResponses];
|
|
72180
73329
|
export type MediaDeleteLibraryData = {
|
|
72181
73330
|
body?: never;
|
|
72182
73331
|
path: {
|
|
@@ -72213,6 +73362,10 @@ export type MediaDeleteLibraryErrors = {
|
|
|
72213
73362
|
* Request failed; see the error code reference.
|
|
72214
73363
|
*/
|
|
72215
73364
|
415: MediaMediaError;
|
|
73365
|
+
/**
|
|
73366
|
+
* Request failed; see the error code reference.
|
|
73367
|
+
*/
|
|
73368
|
+
422: MediaMediaError;
|
|
72216
73369
|
/**
|
|
72217
73370
|
* Request failed; see the error code reference.
|
|
72218
73371
|
*/
|
|
@@ -72274,6 +73427,10 @@ export type MediaGetLibraryErrors = {
|
|
|
72274
73427
|
* Request failed; see the error code reference.
|
|
72275
73428
|
*/
|
|
72276
73429
|
415: MediaMediaError;
|
|
73430
|
+
/**
|
|
73431
|
+
* Request failed; see the error code reference.
|
|
73432
|
+
*/
|
|
73433
|
+
422: MediaMediaError;
|
|
72277
73434
|
/**
|
|
72278
73435
|
* Request failed; see the error code reference.
|
|
72279
73436
|
*/
|
|
@@ -72304,6 +73461,10 @@ export type MediaUpdateLibraryData = {
|
|
|
72304
73461
|
* Partial update of an active media library.
|
|
72305
73462
|
*/
|
|
72306
73463
|
body: {
|
|
73464
|
+
/**
|
|
73465
|
+
* Correction vocabulary, at most 200 nonblank terms of at most 32 Unicode characters each. Omitted on an unconfigured library: correction derives up to 200 distinct names from the library name and every folder level, excluding generic names such as 原始素材 and 混剪成品. An explicit empty array disables this vocabulary. Updating affects subsequent understanding and explicit reprocessing, not existing results.
|
|
73466
|
+
*/
|
|
73467
|
+
hotwords?: Array<string>;
|
|
72307
73468
|
/**
|
|
72308
73469
|
* Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets.
|
|
72309
73470
|
*/
|
|
@@ -72370,6 +73531,10 @@ export type MediaUpdateLibraryErrors = {
|
|
|
72370
73531
|
* Request failed; see the error code reference.
|
|
72371
73532
|
*/
|
|
72372
73533
|
415: MediaMediaError;
|
|
73534
|
+
/**
|
|
73535
|
+
* Request failed; see the error code reference.
|
|
73536
|
+
*/
|
|
73537
|
+
422: MediaMediaError;
|
|
72373
73538
|
/**
|
|
72374
73539
|
* Request failed; see the error code reference.
|
|
72375
73540
|
*/
|
|
@@ -72431,6 +73596,10 @@ export type MediaRestoreLibraryErrors = {
|
|
|
72431
73596
|
* Request failed; see the error code reference.
|
|
72432
73597
|
*/
|
|
72433
73598
|
415: MediaMediaError;
|
|
73599
|
+
/**
|
|
73600
|
+
* Request failed; see the error code reference.
|
|
73601
|
+
*/
|
|
73602
|
+
422: MediaMediaError;
|
|
72434
73603
|
/**
|
|
72435
73604
|
* Request failed; see the error code reference.
|
|
72436
73605
|
*/
|
|
@@ -72492,6 +73661,10 @@ export type MediaPurgeLibraryErrors = {
|
|
|
72492
73661
|
* Request failed; see the error code reference.
|
|
72493
73662
|
*/
|
|
72494
73663
|
415: MediaMediaError;
|
|
73664
|
+
/**
|
|
73665
|
+
* Request failed; see the error code reference.
|
|
73666
|
+
*/
|
|
73667
|
+
422: MediaMediaError;
|
|
72495
73668
|
/**
|
|
72496
73669
|
* Request failed; see the error code reference.
|
|
72497
73670
|
*/
|
|
@@ -72570,6 +73743,10 @@ export type MediaListAssetsErrors = {
|
|
|
72570
73743
|
* Request failed; see the error code reference.
|
|
72571
73744
|
*/
|
|
72572
73745
|
415: MediaMediaError;
|
|
73746
|
+
/**
|
|
73747
|
+
* Request failed; see the error code reference.
|
|
73748
|
+
*/
|
|
73749
|
+
422: MediaMediaError;
|
|
72573
73750
|
/**
|
|
72574
73751
|
* Request failed; see the error code reference.
|
|
72575
73752
|
*/
|
|
@@ -72617,7 +73794,7 @@ export type MediaUploadAssetData = {
|
|
|
72617
73794
|
*/
|
|
72618
73795
|
display_name?: string;
|
|
72619
73796
|
/**
|
|
72620
|
-
* Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
|
|
73797
|
+
* Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
|
|
72621
73798
|
*/
|
|
72622
73799
|
asset_folder?: string;
|
|
72623
73800
|
/**
|
|
@@ -72659,7 +73836,7 @@ export type MediaUploadAssetData = {
|
|
|
72659
73836
|
*/
|
|
72660
73837
|
resource_type?: 'image' | 'video' | 'raw' | 'auto';
|
|
72661
73838
|
/**
|
|
72662
|
-
* Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
|
|
73839
|
+
* Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. New assets default to authenticated. Omitting type on overwrite preserves the current type. Unlike Cloudinary, public delivery requires explicit type=upload.
|
|
72663
73840
|
*/
|
|
72664
73841
|
type?: MediaDeliveryType;
|
|
72665
73842
|
};
|
|
@@ -72707,6 +73884,10 @@ export type MediaUploadAssetErrors = {
|
|
|
72707
73884
|
* Request failed; see the error code reference.
|
|
72708
73885
|
*/
|
|
72709
73886
|
415: MediaMediaError;
|
|
73887
|
+
/**
|
|
73888
|
+
* Request failed; see the error code reference.
|
|
73889
|
+
*/
|
|
73890
|
+
422: MediaMediaError;
|
|
72710
73891
|
/**
|
|
72711
73892
|
* Request failed; see the error code reference.
|
|
72712
73893
|
*/
|
|
@@ -72738,7 +73919,7 @@ export type MediaImportAssetData = {
|
|
|
72738
73919
|
*/
|
|
72739
73920
|
body: {
|
|
72740
73921
|
/**
|
|
72741
|
-
* File ID to copy into this library instead of file bytes. This independent copy defaults to
|
|
73922
|
+
* File ID to copy into this library instead of file bytes. This independent copy defaults to organization-private delivery (type=authenticated); explicitly set type=upload for public delivery. Deleting the source File does not delete this asset.
|
|
72742
73923
|
*/
|
|
72743
73924
|
file_id: string;
|
|
72744
73925
|
/**
|
|
@@ -72754,7 +73935,7 @@ export type MediaImportAssetData = {
|
|
|
72754
73935
|
*/
|
|
72755
73936
|
display_name?: string;
|
|
72756
73937
|
/**
|
|
72757
|
-
* Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
|
|
73938
|
+
* Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
|
|
72758
73939
|
*/
|
|
72759
73940
|
asset_folder?: string;
|
|
72760
73941
|
/**
|
|
@@ -72796,7 +73977,7 @@ export type MediaImportAssetData = {
|
|
|
72796
73977
|
*/
|
|
72797
73978
|
resource_type?: 'image' | 'video' | 'raw' | 'auto';
|
|
72798
73979
|
/**
|
|
72799
|
-
* Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported.
|
|
73980
|
+
* Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. New assets default to authenticated. Omitting type on overwrite preserves the current type. Unlike Cloudinary, public delivery requires explicit type=upload.
|
|
72800
73981
|
*/
|
|
72801
73982
|
type?: MediaDeliveryType;
|
|
72802
73983
|
};
|
|
@@ -72834,6 +74015,10 @@ export type MediaImportAssetErrors = {
|
|
|
72834
74015
|
* Request failed; see the error code reference.
|
|
72835
74016
|
*/
|
|
72836
74017
|
415: MediaMediaError;
|
|
74018
|
+
/**
|
|
74019
|
+
* Request failed; see the error code reference.
|
|
74020
|
+
*/
|
|
74021
|
+
422: MediaMediaError;
|
|
72837
74022
|
/**
|
|
72838
74023
|
* Request failed; see the error code reference.
|
|
72839
74024
|
*/
|
|
@@ -72899,6 +74084,10 @@ export type MediaDeleteAssetErrors = {
|
|
|
72899
74084
|
* Request failed; see the error code reference.
|
|
72900
74085
|
*/
|
|
72901
74086
|
415: MediaMediaError;
|
|
74087
|
+
/**
|
|
74088
|
+
* Request failed; see the error code reference.
|
|
74089
|
+
*/
|
|
74090
|
+
422: MediaMediaError;
|
|
72902
74091
|
/**
|
|
72903
74092
|
* Request failed; see the error code reference.
|
|
72904
74093
|
*/
|
|
@@ -72964,6 +74153,10 @@ export type MediaGetAssetErrors = {
|
|
|
72964
74153
|
* Request failed; see the error code reference.
|
|
72965
74154
|
*/
|
|
72966
74155
|
415: MediaMediaError;
|
|
74156
|
+
/**
|
|
74157
|
+
* Request failed; see the error code reference.
|
|
74158
|
+
*/
|
|
74159
|
+
422: MediaMediaError;
|
|
72967
74160
|
/**
|
|
72968
74161
|
* Request failed; see the error code reference.
|
|
72969
74162
|
*/
|
|
@@ -72999,7 +74192,7 @@ export type MediaUpdateAssetData = {
|
|
|
72999
74192
|
*/
|
|
73000
74193
|
display_name?: string;
|
|
73001
74194
|
/**
|
|
73002
|
-
* Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
|
|
74195
|
+
* Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
|
|
73003
74196
|
*/
|
|
73004
74197
|
asset_folder?: string;
|
|
73005
74198
|
/**
|
|
@@ -73051,6 +74244,10 @@ export type MediaUpdateAssetErrors = {
|
|
|
73051
74244
|
* Request failed; see the error code reference.
|
|
73052
74245
|
*/
|
|
73053
74246
|
415: MediaMediaError;
|
|
74247
|
+
/**
|
|
74248
|
+
* Request failed; see the error code reference.
|
|
74249
|
+
*/
|
|
74250
|
+
422: MediaMediaError;
|
|
73054
74251
|
/**
|
|
73055
74252
|
* Request failed; see the error code reference.
|
|
73056
74253
|
*/
|
|
@@ -73082,7 +74279,7 @@ export type MediaReprocessAssetData = {
|
|
|
73082
74279
|
*/
|
|
73083
74280
|
body: {
|
|
73084
74281
|
/**
|
|
73085
|
-
* Processing tasks to rerun. Omit to retry failed tasks
|
|
74282
|
+
* Processing tasks to rerun. Omit to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable ready or failed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Pending and running tasks are unchanged; an empty array does nothing.
|
|
73086
74283
|
*/
|
|
73087
74284
|
kinds?: Array<MediaProcessingKind>;
|
|
73088
74285
|
};
|
|
@@ -73124,6 +74321,10 @@ export type MediaReprocessAssetErrors = {
|
|
|
73124
74321
|
* Request failed; see the error code reference.
|
|
73125
74322
|
*/
|
|
73126
74323
|
415: MediaMediaError;
|
|
74324
|
+
/**
|
|
74325
|
+
* Request failed; see the error code reference.
|
|
74326
|
+
*/
|
|
74327
|
+
422: MediaMediaError;
|
|
73127
74328
|
/**
|
|
73128
74329
|
* Request failed; see the error code reference.
|
|
73129
74330
|
*/
|
|
@@ -73167,9 +74368,9 @@ export type MediaListUnderstandingsData = {
|
|
|
73167
74368
|
*/
|
|
73168
74369
|
include_superseded?: boolean;
|
|
73169
74370
|
/**
|
|
73170
|
-
*
|
|
74371
|
+
* Return one output kind: caption is a visual description, tags are generated labels, ocr is visible text, transcript is speech, frame is a video shot, overview is a video summary, audio is sampled audio understanding, and embedding reports a failed embedding step.
|
|
73171
74372
|
*/
|
|
73172
|
-
kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame';
|
|
74373
|
+
kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
|
|
73173
74374
|
/**
|
|
73174
74375
|
* Cursor from the previous next_cursor.
|
|
73175
74376
|
*/
|
|
@@ -73206,6 +74407,10 @@ export type MediaListUnderstandingsErrors = {
|
|
|
73206
74407
|
* Request failed; see the error code reference.
|
|
73207
74408
|
*/
|
|
73208
74409
|
415: MediaMediaError;
|
|
74410
|
+
/**
|
|
74411
|
+
* Request failed; see the error code reference.
|
|
74412
|
+
*/
|
|
74413
|
+
422: MediaMediaError;
|
|
73209
74414
|
/**
|
|
73210
74415
|
* Request failed; see the error code reference.
|
|
73211
74416
|
*/
|
|
@@ -73237,7 +74442,7 @@ export type MediaExpressionSearchData = {
|
|
|
73237
74442
|
*/
|
|
73238
74443
|
body: {
|
|
73239
74444
|
/**
|
|
73240
|
-
* 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.
|
|
74445
|
+
* Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters. has_music:true AND audio_genre:jazz AND audio_mood:calm selects current-version audio profiles with music and matching model labels; has_music:false applies only to sampled ranges, not the entire source. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial.
|
|
73241
74446
|
*/
|
|
73242
74447
|
expression?: string;
|
|
73243
74448
|
/**
|
|
@@ -73297,6 +74502,10 @@ export type MediaExpressionSearchErrors = {
|
|
|
73297
74502
|
* Request failed; see the error code reference.
|
|
73298
74503
|
*/
|
|
73299
74504
|
415: MediaMediaError;
|
|
74505
|
+
/**
|
|
74506
|
+
* Request failed; see the error code reference.
|
|
74507
|
+
*/
|
|
74508
|
+
422: MediaMediaError;
|
|
73300
74509
|
/**
|
|
73301
74510
|
* Request failed; see the error code reference.
|
|
73302
74511
|
*/
|
|
@@ -73384,6 +74593,10 @@ export type MediaVisualSearchErrors = {
|
|
|
73384
74593
|
* Request failed; see the error code reference.
|
|
73385
74594
|
*/
|
|
73386
74595
|
415: MediaMediaError;
|
|
74596
|
+
/**
|
|
74597
|
+
* Request failed; see the error code reference.
|
|
74598
|
+
*/
|
|
74599
|
+
422: MediaMediaError;
|
|
73387
74600
|
/**
|
|
73388
74601
|
* Request failed; see the error code reference.
|
|
73389
74602
|
*/
|
|
@@ -73465,6 +74678,10 @@ export type MediaSemanticSearchErrors = {
|
|
|
73465
74678
|
* Request failed; see the error code reference.
|
|
73466
74679
|
*/
|
|
73467
74680
|
415: MediaMediaError;
|
|
74681
|
+
/**
|
|
74682
|
+
* Request failed; see the error code reference.
|
|
74683
|
+
*/
|
|
74684
|
+
422: MediaMediaError;
|
|
73468
74685
|
/**
|
|
73469
74686
|
* Request failed; see the error code reference.
|
|
73470
74687
|
*/
|
|
@@ -73546,6 +74763,10 @@ export type MediaSearchErrors = {
|
|
|
73546
74763
|
* Request failed; see the error code reference.
|
|
73547
74764
|
*/
|
|
73548
74765
|
415: MediaMediaError;
|
|
74766
|
+
/**
|
|
74767
|
+
* Request failed; see the error code reference.
|
|
74768
|
+
*/
|
|
74769
|
+
422: MediaMediaError;
|
|
73549
74770
|
/**
|
|
73550
74771
|
* Request failed; see the error code reference.
|
|
73551
74772
|
*/
|
|
@@ -73612,6 +74833,461 @@ export type MediaListFoldersErrors = {
|
|
|
73612
74833
|
* Request failed; see the error code reference.
|
|
73613
74834
|
*/
|
|
73614
74835
|
415: MediaMediaError;
|
|
74836
|
+
/**
|
|
74837
|
+
* Request failed; see the error code reference.
|
|
74838
|
+
*/
|
|
74839
|
+
422: MediaMediaError;
|
|
74840
|
+
/**
|
|
74841
|
+
* Request failed; see the error code reference.
|
|
74842
|
+
*/
|
|
74843
|
+
429: MediaMediaError;
|
|
74844
|
+
/**
|
|
74845
|
+
* Request failed; see the error code reference.
|
|
74846
|
+
*/
|
|
74847
|
+
501: MediaMediaError;
|
|
74848
|
+
/**
|
|
74849
|
+
* Request failed; see the error code reference.
|
|
74850
|
+
*/
|
|
74851
|
+
502: MediaMediaError;
|
|
74852
|
+
/**
|
|
74853
|
+
* Request failed; see the error code reference.
|
|
74854
|
+
*/
|
|
74855
|
+
503: MediaMediaError;
|
|
74856
|
+
};
|
|
74857
|
+
export type MediaListFoldersError = MediaListFoldersErrors[keyof MediaListFoldersErrors];
|
|
74858
|
+
export type MediaListFoldersResponses = {
|
|
74859
|
+
/**
|
|
74860
|
+
* Successful response.
|
|
74861
|
+
*/
|
|
74862
|
+
200: MediaFolders;
|
|
74863
|
+
};
|
|
74864
|
+
export type MediaListFoldersResponse = MediaListFoldersResponses[keyof MediaListFoldersResponses];
|
|
74865
|
+
export type MediaCreateBatchData = {
|
|
74866
|
+
/**
|
|
74867
|
+
* Batch action and a selection frozen when the job is created.
|
|
74868
|
+
*/
|
|
74869
|
+
body: MediaBatchAction & {
|
|
74870
|
+
/**
|
|
74871
|
+
* Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
|
|
74872
|
+
*/
|
|
74873
|
+
selector: MediaBatchSelector;
|
|
74874
|
+
/**
|
|
74875
|
+
* Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
|
|
74876
|
+
*/
|
|
74877
|
+
reason?: string;
|
|
74878
|
+
};
|
|
74879
|
+
path: {
|
|
74880
|
+
/**
|
|
74881
|
+
* Library ID returned by creation.
|
|
74882
|
+
*/
|
|
74883
|
+
library_id: string;
|
|
74884
|
+
};
|
|
74885
|
+
query?: never;
|
|
74886
|
+
url: '/media/v1/libraries/{library_id}/batches';
|
|
74887
|
+
};
|
|
74888
|
+
export type MediaCreateBatchErrors = {
|
|
74889
|
+
/**
|
|
74890
|
+
* Request failed; see the error code reference.
|
|
74891
|
+
*/
|
|
74892
|
+
400: MediaMediaError;
|
|
74893
|
+
/**
|
|
74894
|
+
* Request failed; see the error code reference.
|
|
74895
|
+
*/
|
|
74896
|
+
403: MediaMediaError;
|
|
74897
|
+
/**
|
|
74898
|
+
* Request failed; see the error code reference.
|
|
74899
|
+
*/
|
|
74900
|
+
404: MediaMediaError;
|
|
74901
|
+
/**
|
|
74902
|
+
* Request failed; see the error code reference.
|
|
74903
|
+
*/
|
|
74904
|
+
409: MediaMediaError;
|
|
74905
|
+
/**
|
|
74906
|
+
* Request failed; see the error code reference.
|
|
74907
|
+
*/
|
|
74908
|
+
413: MediaMediaError;
|
|
74909
|
+
/**
|
|
74910
|
+
* Request failed; see the error code reference.
|
|
74911
|
+
*/
|
|
74912
|
+
415: MediaMediaError;
|
|
74913
|
+
/**
|
|
74914
|
+
* Request failed; see the error code reference.
|
|
74915
|
+
*/
|
|
74916
|
+
422: MediaMediaError;
|
|
74917
|
+
/**
|
|
74918
|
+
* Request failed; see the error code reference.
|
|
74919
|
+
*/
|
|
74920
|
+
429: MediaMediaError;
|
|
74921
|
+
/**
|
|
74922
|
+
* Request failed; see the error code reference.
|
|
74923
|
+
*/
|
|
74924
|
+
501: MediaMediaError;
|
|
74925
|
+
/**
|
|
74926
|
+
* Request failed; see the error code reference.
|
|
74927
|
+
*/
|
|
74928
|
+
502: MediaMediaError;
|
|
74929
|
+
/**
|
|
74930
|
+
* Request failed; see the error code reference.
|
|
74931
|
+
*/
|
|
74932
|
+
503: MediaMediaError;
|
|
74933
|
+
};
|
|
74934
|
+
export type MediaCreateBatchError = MediaCreateBatchErrors[keyof MediaCreateBatchErrors];
|
|
74935
|
+
export type MediaCreateBatchResponses = {
|
|
74936
|
+
/**
|
|
74937
|
+
* Successful response.
|
|
74938
|
+
*/
|
|
74939
|
+
200: MediaJob;
|
|
74940
|
+
};
|
|
74941
|
+
export type MediaCreateBatchResponse = MediaCreateBatchResponses[keyof MediaCreateBatchResponses];
|
|
74942
|
+
export type MediaGetBatchData = {
|
|
74943
|
+
body?: never;
|
|
74944
|
+
path: {
|
|
74945
|
+
/**
|
|
74946
|
+
* Library ID returned by creation.
|
|
74947
|
+
*/
|
|
74948
|
+
library_id: string;
|
|
74949
|
+
/**
|
|
74950
|
+
* Batch identifier returned by createBatch or batchAssets; resolved within this library.
|
|
74951
|
+
*/
|
|
74952
|
+
job_id: string;
|
|
74953
|
+
};
|
|
74954
|
+
query?: never;
|
|
74955
|
+
url: '/media/v1/libraries/{library_id}/batches/{job_id}';
|
|
74956
|
+
};
|
|
74957
|
+
export type MediaGetBatchErrors = {
|
|
74958
|
+
/**
|
|
74959
|
+
* Request failed; see the error code reference.
|
|
74960
|
+
*/
|
|
74961
|
+
400: MediaMediaError;
|
|
74962
|
+
/**
|
|
74963
|
+
* Request failed; see the error code reference.
|
|
74964
|
+
*/
|
|
74965
|
+
403: MediaMediaError;
|
|
74966
|
+
/**
|
|
74967
|
+
* Request failed; see the error code reference.
|
|
74968
|
+
*/
|
|
74969
|
+
404: MediaMediaError;
|
|
74970
|
+
/**
|
|
74971
|
+
* Request failed; see the error code reference.
|
|
74972
|
+
*/
|
|
74973
|
+
409: MediaMediaError;
|
|
74974
|
+
/**
|
|
74975
|
+
* Request failed; see the error code reference.
|
|
74976
|
+
*/
|
|
74977
|
+
413: MediaMediaError;
|
|
74978
|
+
/**
|
|
74979
|
+
* Request failed; see the error code reference.
|
|
74980
|
+
*/
|
|
74981
|
+
415: MediaMediaError;
|
|
74982
|
+
/**
|
|
74983
|
+
* Request failed; see the error code reference.
|
|
74984
|
+
*/
|
|
74985
|
+
422: MediaMediaError;
|
|
74986
|
+
/**
|
|
74987
|
+
* Request failed; see the error code reference.
|
|
74988
|
+
*/
|
|
74989
|
+
429: MediaMediaError;
|
|
74990
|
+
/**
|
|
74991
|
+
* Request failed; see the error code reference.
|
|
74992
|
+
*/
|
|
74993
|
+
501: MediaMediaError;
|
|
74994
|
+
/**
|
|
74995
|
+
* Request failed; see the error code reference.
|
|
74996
|
+
*/
|
|
74997
|
+
502: MediaMediaError;
|
|
74998
|
+
/**
|
|
74999
|
+
* Request failed; see the error code reference.
|
|
75000
|
+
*/
|
|
75001
|
+
503: MediaMediaError;
|
|
75002
|
+
};
|
|
75003
|
+
export type MediaGetBatchError = MediaGetBatchErrors[keyof MediaGetBatchErrors];
|
|
75004
|
+
export type MediaGetBatchResponses = {
|
|
75005
|
+
/**
|
|
75006
|
+
* Successful response.
|
|
75007
|
+
*/
|
|
75008
|
+
200: MediaJob;
|
|
75009
|
+
};
|
|
75010
|
+
export type MediaGetBatchResponse = MediaGetBatchResponses[keyof MediaGetBatchResponses];
|
|
75011
|
+
export type MediaBatchAssetsData = {
|
|
75012
|
+
/**
|
|
75013
|
+
* Batch action and a selection frozen when the job is created.
|
|
75014
|
+
*/
|
|
75015
|
+
body: MediaBatchAction & {
|
|
75016
|
+
/**
|
|
75017
|
+
* Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
|
|
75018
|
+
*/
|
|
75019
|
+
selector: MediaBatchSelector;
|
|
75020
|
+
/**
|
|
75021
|
+
* Audit reason for the operation; required for staff Admin reprocessing and recorded with the initiating actor. Nonblank, at most 2000 characters.
|
|
75022
|
+
*/
|
|
75023
|
+
reason?: string;
|
|
75024
|
+
};
|
|
75025
|
+
path: {
|
|
75026
|
+
/**
|
|
75027
|
+
* Library ID returned by creation.
|
|
75028
|
+
*/
|
|
75029
|
+
library_id: string;
|
|
75030
|
+
};
|
|
75031
|
+
query?: never;
|
|
75032
|
+
url: '/media/v1/libraries/{library_id}/assets:batch';
|
|
75033
|
+
};
|
|
75034
|
+
export type MediaBatchAssetsErrors = {
|
|
75035
|
+
/**
|
|
75036
|
+
* Request failed; see the error code reference.
|
|
75037
|
+
*/
|
|
75038
|
+
400: MediaMediaError;
|
|
75039
|
+
/**
|
|
75040
|
+
* Request failed; see the error code reference.
|
|
75041
|
+
*/
|
|
75042
|
+
403: MediaMediaError;
|
|
75043
|
+
/**
|
|
75044
|
+
* Request failed; see the error code reference.
|
|
75045
|
+
*/
|
|
75046
|
+
404: MediaMediaError;
|
|
75047
|
+
/**
|
|
75048
|
+
* Request failed; see the error code reference.
|
|
75049
|
+
*/
|
|
75050
|
+
409: MediaMediaError;
|
|
75051
|
+
/**
|
|
75052
|
+
* Request failed; see the error code reference.
|
|
75053
|
+
*/
|
|
75054
|
+
413: MediaMediaError;
|
|
75055
|
+
/**
|
|
75056
|
+
* Request failed; see the error code reference.
|
|
75057
|
+
*/
|
|
75058
|
+
415: MediaMediaError;
|
|
75059
|
+
/**
|
|
75060
|
+
* Request failed; see the error code reference.
|
|
75061
|
+
*/
|
|
75062
|
+
422: MediaMediaError;
|
|
75063
|
+
/**
|
|
75064
|
+
* Request failed; see the error code reference.
|
|
75065
|
+
*/
|
|
75066
|
+
429: MediaMediaError;
|
|
75067
|
+
/**
|
|
75068
|
+
* Request failed; see the error code reference.
|
|
75069
|
+
*/
|
|
75070
|
+
501: MediaMediaError;
|
|
75071
|
+
/**
|
|
75072
|
+
* Request failed; see the error code reference.
|
|
75073
|
+
*/
|
|
75074
|
+
502: MediaMediaError;
|
|
75075
|
+
/**
|
|
75076
|
+
* Request failed; see the error code reference.
|
|
75077
|
+
*/
|
|
75078
|
+
503: MediaMediaError;
|
|
75079
|
+
};
|
|
75080
|
+
export type MediaBatchAssetsError = MediaBatchAssetsErrors[keyof MediaBatchAssetsErrors];
|
|
75081
|
+
export type MediaBatchAssetsResponses = {
|
|
75082
|
+
/**
|
|
75083
|
+
* Successful response.
|
|
75084
|
+
*/
|
|
75085
|
+
200: MediaJob;
|
|
75086
|
+
};
|
|
75087
|
+
export type MediaBatchAssetsResponse = MediaBatchAssetsResponses[keyof MediaBatchAssetsResponses];
|
|
75088
|
+
export type MediaGetJobData = {
|
|
75089
|
+
body?: never;
|
|
75090
|
+
path: {
|
|
75091
|
+
/**
|
|
75092
|
+
* Library ID returned by creation.
|
|
75093
|
+
*/
|
|
75094
|
+
library_id: string;
|
|
75095
|
+
/**
|
|
75096
|
+
* Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library.
|
|
75097
|
+
*/
|
|
75098
|
+
job_id: string;
|
|
75099
|
+
};
|
|
75100
|
+
query?: never;
|
|
75101
|
+
url: '/media/v1/libraries/{library_id}/jobs/{job_id}';
|
|
75102
|
+
};
|
|
75103
|
+
export type MediaGetJobErrors = {
|
|
75104
|
+
/**
|
|
75105
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
75106
|
+
*/
|
|
75107
|
+
400: MediaMediaError;
|
|
75108
|
+
/**
|
|
75109
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
75110
|
+
*/
|
|
75111
|
+
403: MediaMediaError;
|
|
75112
|
+
/**
|
|
75113
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
75114
|
+
*/
|
|
75115
|
+
404: MediaMediaError;
|
|
75116
|
+
/**
|
|
75117
|
+
* Request failed; see the error code reference.
|
|
75118
|
+
*/
|
|
75119
|
+
409: MediaMediaError;
|
|
75120
|
+
/**
|
|
75121
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
75122
|
+
*/
|
|
75123
|
+
413: MediaMediaError;
|
|
75124
|
+
/**
|
|
75125
|
+
* This media format is unsupported; provide a supported format.
|
|
75126
|
+
*/
|
|
75127
|
+
415: MediaMediaError;
|
|
75128
|
+
/**
|
|
75129
|
+
* Request failed; see the error code reference.
|
|
75130
|
+
*/
|
|
75131
|
+
422: MediaMediaError;
|
|
75132
|
+
/**
|
|
75133
|
+
* A rate limit was reached; wait before retrying.
|
|
75134
|
+
*/
|
|
75135
|
+
429: MediaMediaError;
|
|
75136
|
+
/**
|
|
75137
|
+
* The requested operation is unsupported; choose a supported method.
|
|
75138
|
+
*/
|
|
75139
|
+
501: MediaMediaError;
|
|
75140
|
+
/**
|
|
75141
|
+
* Request failed; see the error code reference.
|
|
75142
|
+
*/
|
|
75143
|
+
502: MediaMediaError;
|
|
75144
|
+
/**
|
|
75145
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
75146
|
+
*/
|
|
75147
|
+
503: MediaMediaError;
|
|
75148
|
+
};
|
|
75149
|
+
export type MediaGetJobError = MediaGetJobErrors[keyof MediaGetJobErrors];
|
|
75150
|
+
export type MediaGetJobResponses = {
|
|
75151
|
+
/**
|
|
75152
|
+
* Successful response.
|
|
75153
|
+
*/
|
|
75154
|
+
200: MediaJob;
|
|
75155
|
+
};
|
|
75156
|
+
export type MediaGetJobResponse = MediaGetJobResponses[keyof MediaGetJobResponses];
|
|
75157
|
+
export type MediaListEventsData = {
|
|
75158
|
+
body?: never;
|
|
75159
|
+
path: {
|
|
75160
|
+
/**
|
|
75161
|
+
* Library ID returned by creation.
|
|
75162
|
+
*/
|
|
75163
|
+
library_id: string;
|
|
75164
|
+
};
|
|
75165
|
+
query?: {
|
|
75166
|
+
/**
|
|
75167
|
+
* Events with a larger sequence. Use with asc; cannot combine with before_seq.
|
|
75168
|
+
*/
|
|
75169
|
+
after_seq?: number;
|
|
75170
|
+
/**
|
|
75171
|
+
* Events with a smaller sequence. Use with desc; cannot combine with after_seq.
|
|
75172
|
+
*/
|
|
75173
|
+
before_seq?: number;
|
|
75174
|
+
/**
|
|
75175
|
+
* Sequence order: asc is increasing; desc is decreasing.
|
|
75176
|
+
*/
|
|
75177
|
+
order?: 'asc' | 'desc';
|
|
75178
|
+
/**
|
|
75179
|
+
* Maximum items per page, from 1 to 200; defaults to 50.
|
|
75180
|
+
*/
|
|
75181
|
+
limit?: number;
|
|
75182
|
+
};
|
|
75183
|
+
url: '/media/v1/libraries/{library_id}/events';
|
|
75184
|
+
};
|
|
75185
|
+
export type MediaListEventsErrors = {
|
|
75186
|
+
/**
|
|
75187
|
+
* Request failed; see the error code reference.
|
|
75188
|
+
*/
|
|
75189
|
+
400: MediaMediaError;
|
|
75190
|
+
/**
|
|
75191
|
+
* Request failed; see the error code reference.
|
|
75192
|
+
*/
|
|
75193
|
+
403: MediaMediaError;
|
|
75194
|
+
/**
|
|
75195
|
+
* Request failed; see the error code reference.
|
|
75196
|
+
*/
|
|
75197
|
+
404: MediaMediaError;
|
|
75198
|
+
/**
|
|
75199
|
+
* Request failed; see the error code reference.
|
|
75200
|
+
*/
|
|
75201
|
+
409: MediaMediaError;
|
|
75202
|
+
/**
|
|
75203
|
+
* Request failed; see the error code reference.
|
|
75204
|
+
*/
|
|
75205
|
+
413: MediaMediaError;
|
|
75206
|
+
/**
|
|
75207
|
+
* Request failed; see the error code reference.
|
|
75208
|
+
*/
|
|
75209
|
+
415: MediaMediaError;
|
|
75210
|
+
/**
|
|
75211
|
+
* Request failed; see the error code reference.
|
|
75212
|
+
*/
|
|
75213
|
+
422: MediaMediaError;
|
|
75214
|
+
/**
|
|
75215
|
+
* Request failed; see the error code reference.
|
|
75216
|
+
*/
|
|
75217
|
+
429: MediaMediaError;
|
|
75218
|
+
/**
|
|
75219
|
+
* Request failed; see the error code reference.
|
|
75220
|
+
*/
|
|
75221
|
+
501: MediaMediaError;
|
|
75222
|
+
/**
|
|
75223
|
+
* Request failed; see the error code reference.
|
|
75224
|
+
*/
|
|
75225
|
+
502: MediaMediaError;
|
|
75226
|
+
/**
|
|
75227
|
+
* Request failed; see the error code reference.
|
|
75228
|
+
*/
|
|
75229
|
+
503: MediaMediaError;
|
|
75230
|
+
};
|
|
75231
|
+
export type MediaListEventsError = MediaListEventsErrors[keyof MediaListEventsErrors];
|
|
75232
|
+
export type MediaListEventsResponses = {
|
|
75233
|
+
/**
|
|
75234
|
+
* Successful response.
|
|
75235
|
+
*/
|
|
75236
|
+
200: MediaMediaEventPage;
|
|
75237
|
+
};
|
|
75238
|
+
export type MediaListEventsResponse = MediaListEventsResponses[keyof MediaListEventsResponses];
|
|
75239
|
+
export type MediaCreateDeliveryTokenData = {
|
|
75240
|
+
/**
|
|
75241
|
+
* Options for authorizing private asset delivery within one active library.
|
|
75242
|
+
*/
|
|
75243
|
+
body: {
|
|
75244
|
+
/**
|
|
75245
|
+
* Delivery path glob restricted to the library path prefix (a slash, library_id, then a slash). Defaults to that prefix followed by *; * matches any path text. Tildes and control characters are rejected.
|
|
75246
|
+
*/
|
|
75247
|
+
acl?: string;
|
|
75248
|
+
/**
|
|
75249
|
+
* Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900.
|
|
75250
|
+
*/
|
|
75251
|
+
expires_in?: number;
|
|
75252
|
+
};
|
|
75253
|
+
path: {
|
|
75254
|
+
/**
|
|
75255
|
+
* Library ID returned by creation.
|
|
75256
|
+
*/
|
|
75257
|
+
library_id: string;
|
|
75258
|
+
};
|
|
75259
|
+
query?: never;
|
|
75260
|
+
url: '/media/v1/libraries/{library_id}/delivery_tokens';
|
|
75261
|
+
};
|
|
75262
|
+
export type MediaCreateDeliveryTokenErrors = {
|
|
75263
|
+
/**
|
|
75264
|
+
* Request failed; see the error code reference.
|
|
75265
|
+
*/
|
|
75266
|
+
400: MediaMediaError;
|
|
75267
|
+
/**
|
|
75268
|
+
* Request failed; see the error code reference.
|
|
75269
|
+
*/
|
|
75270
|
+
403: MediaMediaError;
|
|
75271
|
+
/**
|
|
75272
|
+
* Request failed; see the error code reference.
|
|
75273
|
+
*/
|
|
75274
|
+
404: MediaMediaError;
|
|
75275
|
+
/**
|
|
75276
|
+
* Request failed; see the error code reference.
|
|
75277
|
+
*/
|
|
75278
|
+
409: MediaMediaError;
|
|
75279
|
+
/**
|
|
75280
|
+
* Request failed; see the error code reference.
|
|
75281
|
+
*/
|
|
75282
|
+
413: MediaMediaError;
|
|
75283
|
+
/**
|
|
75284
|
+
* Request failed; see the error code reference.
|
|
75285
|
+
*/
|
|
75286
|
+
415: MediaMediaError;
|
|
75287
|
+
/**
|
|
75288
|
+
* Request failed; see the error code reference.
|
|
75289
|
+
*/
|
|
75290
|
+
422: MediaMediaError;
|
|
73615
75291
|
/**
|
|
73616
75292
|
* Request failed; see the error code reference.
|
|
73617
75293
|
*/
|
|
@@ -73629,24 +75305,16 @@ export type MediaListFoldersErrors = {
|
|
|
73629
75305
|
*/
|
|
73630
75306
|
503: MediaMediaError;
|
|
73631
75307
|
};
|
|
73632
|
-
export type
|
|
73633
|
-
export type
|
|
75308
|
+
export type MediaCreateDeliveryTokenError = MediaCreateDeliveryTokenErrors[keyof MediaCreateDeliveryTokenErrors];
|
|
75309
|
+
export type MediaCreateDeliveryTokenResponses = {
|
|
73634
75310
|
/**
|
|
73635
75311
|
* Successful response.
|
|
73636
75312
|
*/
|
|
73637
|
-
200:
|
|
75313
|
+
200: MediaDeliveryToken;
|
|
73638
75314
|
};
|
|
73639
|
-
export type
|
|
73640
|
-
export type
|
|
73641
|
-
|
|
73642
|
-
* Batch action and a selection frozen when the job is created.
|
|
73643
|
-
*/
|
|
73644
|
-
body: MediaBatchAction & {
|
|
73645
|
-
/**
|
|
73646
|
-
* Select assets by ids or by expression, never both. Expression results and exclusions are resolved when the job is created.
|
|
73647
|
-
*/
|
|
73648
|
-
selector: MediaBatchSelector;
|
|
73649
|
-
};
|
|
75315
|
+
export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
|
|
75316
|
+
export type MediaUnderstandingFailureSummaryData = {
|
|
75317
|
+
body?: never;
|
|
73650
75318
|
path: {
|
|
73651
75319
|
/**
|
|
73652
75320
|
* Library ID returned by creation.
|
|
@@ -73654,19 +75322,19 @@ export type MediaCreateBatchData = {
|
|
|
73654
75322
|
library_id: string;
|
|
73655
75323
|
};
|
|
73656
75324
|
query?: never;
|
|
73657
|
-
url: '/media/v1/libraries/{library_id}/
|
|
75325
|
+
url: '/media/v1/libraries/{library_id}/understandings/failure_summary';
|
|
73658
75326
|
};
|
|
73659
|
-
export type
|
|
75327
|
+
export type MediaUnderstandingFailureSummaryErrors = {
|
|
73660
75328
|
/**
|
|
73661
|
-
*
|
|
75329
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
73662
75330
|
*/
|
|
73663
75331
|
400: MediaMediaError;
|
|
73664
75332
|
/**
|
|
73665
|
-
*
|
|
75333
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
73666
75334
|
*/
|
|
73667
75335
|
403: MediaMediaError;
|
|
73668
75336
|
/**
|
|
73669
|
-
*
|
|
75337
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
73670
75338
|
*/
|
|
73671
75339
|
404: MediaMediaError;
|
|
73672
75340
|
/**
|
|
@@ -73674,19 +75342,23 @@ export type MediaCreateBatchErrors = {
|
|
|
73674
75342
|
*/
|
|
73675
75343
|
409: MediaMediaError;
|
|
73676
75344
|
/**
|
|
73677
|
-
*
|
|
75345
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
73678
75346
|
*/
|
|
73679
75347
|
413: MediaMediaError;
|
|
73680
75348
|
/**
|
|
73681
|
-
*
|
|
75349
|
+
* This media format is unsupported; provide a supported format.
|
|
73682
75350
|
*/
|
|
73683
75351
|
415: MediaMediaError;
|
|
73684
75352
|
/**
|
|
73685
75353
|
* Request failed; see the error code reference.
|
|
73686
75354
|
*/
|
|
75355
|
+
422: MediaMediaError;
|
|
75356
|
+
/**
|
|
75357
|
+
* A rate limit was reached; wait before retrying.
|
|
75358
|
+
*/
|
|
73687
75359
|
429: MediaMediaError;
|
|
73688
75360
|
/**
|
|
73689
|
-
*
|
|
75361
|
+
* The requested operation is unsupported; choose a supported method.
|
|
73690
75362
|
*/
|
|
73691
75363
|
501: MediaMediaError;
|
|
73692
75364
|
/**
|
|
@@ -73694,44 +75366,57 @@ export type MediaCreateBatchErrors = {
|
|
|
73694
75366
|
*/
|
|
73695
75367
|
502: MediaMediaError;
|
|
73696
75368
|
/**
|
|
73697
|
-
*
|
|
75369
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
73698
75370
|
*/
|
|
73699
75371
|
503: MediaMediaError;
|
|
73700
75372
|
};
|
|
73701
|
-
export type
|
|
73702
|
-
export type
|
|
75373
|
+
export type MediaUnderstandingFailureSummaryError = MediaUnderstandingFailureSummaryErrors[keyof MediaUnderstandingFailureSummaryErrors];
|
|
75374
|
+
export type MediaUnderstandingFailureSummaryResponses = {
|
|
73703
75375
|
/**
|
|
73704
75376
|
* Successful response.
|
|
73705
75377
|
*/
|
|
73706
|
-
200:
|
|
75378
|
+
200: MediaFailureSummary;
|
|
73707
75379
|
};
|
|
73708
|
-
export type
|
|
73709
|
-
export type
|
|
75380
|
+
export type MediaUnderstandingFailureSummaryResponse = MediaUnderstandingFailureSummaryResponses[keyof MediaUnderstandingFailureSummaryResponses];
|
|
75381
|
+
export type MediaListUnderstandingsByLibraryData = {
|
|
73710
75382
|
body?: never;
|
|
73711
75383
|
path: {
|
|
73712
75384
|
/**
|
|
73713
75385
|
* Library ID returned by creation.
|
|
73714
75386
|
*/
|
|
73715
75387
|
library_id: string;
|
|
75388
|
+
};
|
|
75389
|
+
query?: {
|
|
73716
75390
|
/**
|
|
73717
|
-
*
|
|
75391
|
+
* Folder path including all descendants; omitted or empty selects the entire library.
|
|
73718
75392
|
*/
|
|
73719
|
-
|
|
75393
|
+
folder?: string;
|
|
75394
|
+
/**
|
|
75395
|
+
* Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.
|
|
75396
|
+
*/
|
|
75397
|
+
kinds?: string;
|
|
75398
|
+
/**
|
|
75399
|
+
* Cursor from the previous next_cursor.
|
|
75400
|
+
*/
|
|
75401
|
+
cursor?: string;
|
|
75402
|
+
/**
|
|
75403
|
+
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
75404
|
+
*/
|
|
75405
|
+
limit?: number;
|
|
73720
75406
|
};
|
|
73721
|
-
|
|
73722
|
-
url: '/media/v1/libraries/{library_id}/batches/{job_id}';
|
|
75407
|
+
url: '/media/v1/libraries/{library_id}/understandings';
|
|
73723
75408
|
};
|
|
73724
|
-
export type
|
|
75409
|
+
export type MediaListUnderstandingsByLibraryErrors = {
|
|
73725
75410
|
/**
|
|
73726
|
-
*
|
|
75411
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
73727
75412
|
*/
|
|
73728
75413
|
400: MediaMediaError;
|
|
73729
75414
|
/**
|
|
73730
|
-
*
|
|
75415
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
73731
75416
|
*/
|
|
73732
75417
|
403: MediaMediaError;
|
|
73733
75418
|
/**
|
|
73734
|
-
*
|
|
75419
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
73735
75420
|
*/
|
|
73736
75421
|
404: MediaMediaError;
|
|
73737
75422
|
/**
|
|
@@ -73739,19 +75424,23 @@ export type MediaGetBatchErrors = {
|
|
|
73739
75424
|
*/
|
|
73740
75425
|
409: MediaMediaError;
|
|
73741
75426
|
/**
|
|
73742
|
-
*
|
|
75427
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
73743
75428
|
*/
|
|
73744
75429
|
413: MediaMediaError;
|
|
73745
75430
|
/**
|
|
73746
|
-
*
|
|
75431
|
+
* This media format is unsupported; provide a supported format.
|
|
73747
75432
|
*/
|
|
73748
75433
|
415: MediaMediaError;
|
|
73749
75434
|
/**
|
|
73750
75435
|
* Request failed; see the error code reference.
|
|
73751
75436
|
*/
|
|
75437
|
+
422: MediaMediaError;
|
|
75438
|
+
/**
|
|
75439
|
+
* A rate limit was reached; wait before retrying.
|
|
75440
|
+
*/
|
|
73752
75441
|
429: MediaMediaError;
|
|
73753
75442
|
/**
|
|
73754
|
-
*
|
|
75443
|
+
* The requested operation is unsupported; choose a supported method.
|
|
73755
75444
|
*/
|
|
73756
75445
|
501: MediaMediaError;
|
|
73757
75446
|
/**
|
|
@@ -73759,27 +75448,73 @@ export type MediaGetBatchErrors = {
|
|
|
73759
75448
|
*/
|
|
73760
75449
|
502: MediaMediaError;
|
|
73761
75450
|
/**
|
|
73762
|
-
*
|
|
75451
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
73763
75452
|
*/
|
|
73764
75453
|
503: MediaMediaError;
|
|
73765
75454
|
};
|
|
73766
|
-
export type
|
|
73767
|
-
export type
|
|
75455
|
+
export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
|
|
75456
|
+
export type MediaListUnderstandingsByLibraryResponses = {
|
|
73768
75457
|
/**
|
|
73769
75458
|
* Successful response.
|
|
73770
75459
|
*/
|
|
73771
|
-
200:
|
|
75460
|
+
200: MediaUnderstandingPage;
|
|
73772
75461
|
};
|
|
73773
|
-
export type
|
|
73774
|
-
export type
|
|
75462
|
+
export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
|
|
75463
|
+
export type MediaCreateGenerationData = {
|
|
73775
75464
|
/**
|
|
73776
|
-
*
|
|
75465
|
+
* Text-to-video request. Generation is charged per second; unsaved candidates expire after 7 days.
|
|
73777
75466
|
*/
|
|
73778
|
-
body:
|
|
75467
|
+
body: {
|
|
73779
75468
|
/**
|
|
73780
|
-
*
|
|
75469
|
+
* Generation operation; v1 accepts only video.generate text-to-video requests.
|
|
73781
75470
|
*/
|
|
73782
|
-
|
|
75471
|
+
intent: 'video.generate';
|
|
75472
|
+
/**
|
|
75473
|
+
* Text prompt describing the video to generate.
|
|
75474
|
+
*/
|
|
75475
|
+
prompt: string;
|
|
75476
|
+
/**
|
|
75477
|
+
* Number of videos to generate; defaults to 1 and must be from 1 to 4.
|
|
75478
|
+
*/
|
|
75479
|
+
count?: number;
|
|
75480
|
+
/**
|
|
75481
|
+
* Requested video duration in seconds; Router validates the model-specific supported durations.
|
|
75482
|
+
*/
|
|
75483
|
+
duration_seconds?: number;
|
|
75484
|
+
/**
|
|
75485
|
+
* Requested output aspect ratio; defaults to 16:9 and Router validates model support.
|
|
75486
|
+
*/
|
|
75487
|
+
aspect_ratio?: string;
|
|
75488
|
+
/**
|
|
75489
|
+
* Router model with video_generation capability; defaults to wan2.7-t2v.
|
|
75490
|
+
*/
|
|
75491
|
+
model?: string;
|
|
75492
|
+
/**
|
|
75493
|
+
* candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically.
|
|
75494
|
+
*/
|
|
75495
|
+
save?: 'candidate' | 'library';
|
|
75496
|
+
/**
|
|
75497
|
+
* Folder for assets saved automatically or by later save calls; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
|
|
75498
|
+
*/
|
|
75499
|
+
asset_folder?: string;
|
|
75500
|
+
/**
|
|
75501
|
+
* Tags applied when an output becomes a library asset.
|
|
75502
|
+
*/
|
|
75503
|
+
tags?: Array<string>;
|
|
75504
|
+
/**
|
|
75505
|
+
* Understanding behavior when a candidate is saved as an asset; defaults to auto.
|
|
75506
|
+
*/
|
|
75507
|
+
understanding?: 'auto' | 'skip';
|
|
75508
|
+
/**
|
|
75509
|
+
* Not supported in v1; omit this field. Only text-to-video is currently available.
|
|
75510
|
+
*/
|
|
75511
|
+
references?: Array<unknown>;
|
|
75512
|
+
};
|
|
75513
|
+
headers?: {
|
|
75514
|
+
/**
|
|
75515
|
+
* Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected.
|
|
75516
|
+
*/
|
|
75517
|
+
'Idempotency-Key'?: string;
|
|
73783
75518
|
};
|
|
73784
75519
|
path: {
|
|
73785
75520
|
/**
|
|
@@ -73788,19 +75523,19 @@ export type MediaBatchAssetsData = {
|
|
|
73788
75523
|
library_id: string;
|
|
73789
75524
|
};
|
|
73790
75525
|
query?: never;
|
|
73791
|
-
url: '/media/v1/libraries/{library_id}/
|
|
75526
|
+
url: '/media/v1/libraries/{library_id}/generations';
|
|
73792
75527
|
};
|
|
73793
|
-
export type
|
|
75528
|
+
export type MediaCreateGenerationErrors = {
|
|
73794
75529
|
/**
|
|
73795
|
-
*
|
|
75530
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
73796
75531
|
*/
|
|
73797
75532
|
400: MediaMediaError;
|
|
73798
75533
|
/**
|
|
73799
|
-
*
|
|
75534
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
73800
75535
|
*/
|
|
73801
75536
|
403: MediaMediaError;
|
|
73802
75537
|
/**
|
|
73803
|
-
*
|
|
75538
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
73804
75539
|
*/
|
|
73805
75540
|
404: MediaMediaError;
|
|
73806
75541
|
/**
|
|
@@ -73808,19 +75543,23 @@ export type MediaBatchAssetsErrors = {
|
|
|
73808
75543
|
*/
|
|
73809
75544
|
409: MediaMediaError;
|
|
73810
75545
|
/**
|
|
73811
|
-
*
|
|
75546
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
73812
75547
|
*/
|
|
73813
75548
|
413: MediaMediaError;
|
|
73814
75549
|
/**
|
|
73815
|
-
*
|
|
75550
|
+
* This media format is unsupported; provide a supported format.
|
|
73816
75551
|
*/
|
|
73817
75552
|
415: MediaMediaError;
|
|
73818
75553
|
/**
|
|
73819
75554
|
* Request failed; see the error code reference.
|
|
73820
75555
|
*/
|
|
75556
|
+
422: MediaMediaError;
|
|
75557
|
+
/**
|
|
75558
|
+
* This library already has five queued or running generation jobs; wait until one finishes and retry.
|
|
75559
|
+
*/
|
|
73821
75560
|
429: MediaMediaError;
|
|
73822
75561
|
/**
|
|
73823
|
-
*
|
|
75562
|
+
* The requested operation is unsupported; choose a supported method.
|
|
73824
75563
|
*/
|
|
73825
75564
|
501: MediaMediaError;
|
|
73826
75565
|
/**
|
|
@@ -73828,44 +75567,53 @@ export type MediaBatchAssetsErrors = {
|
|
|
73828
75567
|
*/
|
|
73829
75568
|
502: MediaMediaError;
|
|
73830
75569
|
/**
|
|
73831
|
-
*
|
|
75570
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
73832
75571
|
*/
|
|
73833
75572
|
503: MediaMediaError;
|
|
73834
75573
|
};
|
|
73835
|
-
export type
|
|
73836
|
-
export type
|
|
75574
|
+
export type MediaCreateGenerationError = MediaCreateGenerationErrors[keyof MediaCreateGenerationErrors];
|
|
75575
|
+
export type MediaCreateGenerationResponses = {
|
|
73837
75576
|
/**
|
|
73838
75577
|
* Successful response.
|
|
73839
75578
|
*/
|
|
73840
|
-
|
|
75579
|
+
202: MediaJob;
|
|
73841
75580
|
};
|
|
73842
|
-
export type
|
|
73843
|
-
export type
|
|
75581
|
+
export type MediaCreateGenerationResponse = MediaCreateGenerationResponses[keyof MediaCreateGenerationResponses];
|
|
75582
|
+
export type MediaListJobsData = {
|
|
73844
75583
|
body?: never;
|
|
73845
75584
|
path: {
|
|
73846
75585
|
/**
|
|
73847
75586
|
* Library ID returned by creation.
|
|
73848
75587
|
*/
|
|
73849
75588
|
library_id: string;
|
|
75589
|
+
};
|
|
75590
|
+
query?: {
|
|
73850
75591
|
/**
|
|
73851
|
-
*
|
|
75592
|
+
* Filter jobs by their current status.
|
|
73852
75593
|
*/
|
|
73853
|
-
|
|
75594
|
+
status?: MediaJobStatus;
|
|
75595
|
+
/**
|
|
75596
|
+
* Maximum entries in this page, from 1 through 100; defaults to 100.
|
|
75597
|
+
*/
|
|
75598
|
+
limit?: number;
|
|
75599
|
+
/**
|
|
75600
|
+
* Job id from the previous page’s next_cursor; omit for the first page.
|
|
75601
|
+
*/
|
|
75602
|
+
cursor?: MediaJobId;
|
|
73854
75603
|
};
|
|
73855
|
-
|
|
73856
|
-
url: '/media/v1/libraries/{library_id}/jobs/{job_id}';
|
|
75604
|
+
url: '/media/v1/libraries/{library_id}/jobs';
|
|
73857
75605
|
};
|
|
73858
|
-
export type
|
|
75606
|
+
export type MediaListJobsErrors = {
|
|
73859
75607
|
/**
|
|
73860
|
-
*
|
|
75608
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
73861
75609
|
*/
|
|
73862
75610
|
400: MediaMediaError;
|
|
73863
75611
|
/**
|
|
73864
|
-
*
|
|
75612
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
73865
75613
|
*/
|
|
73866
75614
|
403: MediaMediaError;
|
|
73867
75615
|
/**
|
|
73868
|
-
*
|
|
75616
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
73869
75617
|
*/
|
|
73870
75618
|
404: MediaMediaError;
|
|
73871
75619
|
/**
|
|
@@ -73873,19 +75621,23 @@ export type MediaGetJobErrors = {
|
|
|
73873
75621
|
*/
|
|
73874
75622
|
409: MediaMediaError;
|
|
73875
75623
|
/**
|
|
73876
|
-
*
|
|
75624
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
73877
75625
|
*/
|
|
73878
75626
|
413: MediaMediaError;
|
|
73879
75627
|
/**
|
|
73880
|
-
*
|
|
75628
|
+
* This media format is unsupported; provide a supported format.
|
|
73881
75629
|
*/
|
|
73882
75630
|
415: MediaMediaError;
|
|
73883
75631
|
/**
|
|
73884
75632
|
* Request failed; see the error code reference.
|
|
73885
75633
|
*/
|
|
75634
|
+
422: MediaMediaError;
|
|
75635
|
+
/**
|
|
75636
|
+
* A rate limit was reached; wait before retrying.
|
|
75637
|
+
*/
|
|
73886
75638
|
429: MediaMediaError;
|
|
73887
75639
|
/**
|
|
73888
|
-
*
|
|
75640
|
+
* The requested operation is unsupported; choose a supported method.
|
|
73889
75641
|
*/
|
|
73890
75642
|
501: MediaMediaError;
|
|
73891
75643
|
/**
|
|
@@ -73893,57 +75645,44 @@ export type MediaGetJobErrors = {
|
|
|
73893
75645
|
*/
|
|
73894
75646
|
502: MediaMediaError;
|
|
73895
75647
|
/**
|
|
73896
|
-
*
|
|
75648
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
73897
75649
|
*/
|
|
73898
75650
|
503: MediaMediaError;
|
|
73899
75651
|
};
|
|
73900
|
-
export type
|
|
73901
|
-
export type
|
|
75652
|
+
export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
|
|
75653
|
+
export type MediaListJobsResponses = {
|
|
73902
75654
|
/**
|
|
73903
75655
|
* Successful response.
|
|
73904
75656
|
*/
|
|
73905
|
-
200:
|
|
75657
|
+
200: MediaJobPage;
|
|
73906
75658
|
};
|
|
73907
|
-
export type
|
|
73908
|
-
export type
|
|
75659
|
+
export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
|
|
75660
|
+
export type MediaCancelJobData = {
|
|
73909
75661
|
body?: never;
|
|
73910
75662
|
path: {
|
|
73911
75663
|
/**
|
|
73912
75664
|
* Library ID returned by creation.
|
|
73913
75665
|
*/
|
|
73914
75666
|
library_id: string;
|
|
73915
|
-
};
|
|
73916
|
-
query?: {
|
|
73917
|
-
/**
|
|
73918
|
-
* Events with a larger sequence. Use with asc; cannot combine with before_seq.
|
|
73919
|
-
*/
|
|
73920
|
-
after_seq?: number;
|
|
73921
|
-
/**
|
|
73922
|
-
* Events with a smaller sequence. Use with desc; cannot combine with after_seq.
|
|
73923
|
-
*/
|
|
73924
|
-
before_seq?: number;
|
|
73925
|
-
/**
|
|
73926
|
-
* Sequence order: asc is increasing; desc is decreasing.
|
|
73927
|
-
*/
|
|
73928
|
-
order?: 'asc' | 'desc';
|
|
73929
75667
|
/**
|
|
73930
|
-
*
|
|
75668
|
+
* Job identifier returned by batch or generation creation; the job is resolved within the specified library.
|
|
73931
75669
|
*/
|
|
73932
|
-
|
|
75670
|
+
job_id: string;
|
|
73933
75671
|
};
|
|
73934
|
-
|
|
75672
|
+
query?: never;
|
|
75673
|
+
url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
|
|
73935
75674
|
};
|
|
73936
|
-
export type
|
|
75675
|
+
export type MediaCancelJobErrors = {
|
|
73937
75676
|
/**
|
|
73938
|
-
*
|
|
75677
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
73939
75678
|
*/
|
|
73940
75679
|
400: MediaMediaError;
|
|
73941
75680
|
/**
|
|
73942
|
-
*
|
|
75681
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
73943
75682
|
*/
|
|
73944
75683
|
403: MediaMediaError;
|
|
73945
75684
|
/**
|
|
73946
|
-
*
|
|
75685
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
73947
75686
|
*/
|
|
73948
75687
|
404: MediaMediaError;
|
|
73949
75688
|
/**
|
|
@@ -73951,19 +75690,23 @@ export type MediaListEventsErrors = {
|
|
|
73951
75690
|
*/
|
|
73952
75691
|
409: MediaMediaError;
|
|
73953
75692
|
/**
|
|
73954
|
-
*
|
|
75693
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
73955
75694
|
*/
|
|
73956
75695
|
413: MediaMediaError;
|
|
73957
75696
|
/**
|
|
73958
|
-
*
|
|
75697
|
+
* This media format is unsupported; provide a supported format.
|
|
73959
75698
|
*/
|
|
73960
75699
|
415: MediaMediaError;
|
|
73961
75700
|
/**
|
|
73962
75701
|
* Request failed; see the error code reference.
|
|
73963
75702
|
*/
|
|
75703
|
+
422: MediaMediaError;
|
|
75704
|
+
/**
|
|
75705
|
+
* A rate limit was reached; wait before retrying.
|
|
75706
|
+
*/
|
|
73964
75707
|
429: MediaMediaError;
|
|
73965
75708
|
/**
|
|
73966
|
-
*
|
|
75709
|
+
* The requested operation is unsupported; choose a supported method.
|
|
73967
75710
|
*/
|
|
73968
75711
|
501: MediaMediaError;
|
|
73969
75712
|
/**
|
|
@@ -73971,52 +75714,68 @@ export type MediaListEventsErrors = {
|
|
|
73971
75714
|
*/
|
|
73972
75715
|
502: MediaMediaError;
|
|
73973
75716
|
/**
|
|
73974
|
-
*
|
|
75717
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
73975
75718
|
*/
|
|
73976
75719
|
503: MediaMediaError;
|
|
73977
75720
|
};
|
|
73978
|
-
export type
|
|
73979
|
-
export type
|
|
75721
|
+
export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
|
|
75722
|
+
export type MediaCancelJobResponses = {
|
|
73980
75723
|
/**
|
|
73981
75724
|
* Successful response.
|
|
73982
75725
|
*/
|
|
73983
|
-
200:
|
|
75726
|
+
200: MediaJob;
|
|
73984
75727
|
};
|
|
73985
|
-
export type
|
|
73986
|
-
export type
|
|
75728
|
+
export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
|
|
75729
|
+
export type MediaSaveGenerationOutputData = {
|
|
73987
75730
|
/**
|
|
73988
|
-
*
|
|
75731
|
+
* Optional asset metadata and understanding behavior for a successful candidate.
|
|
73989
75732
|
*/
|
|
73990
|
-
body
|
|
75733
|
+
body?: {
|
|
73991
75734
|
/**
|
|
73992
|
-
* Delivery
|
|
75735
|
+
* Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent.
|
|
73993
75736
|
*/
|
|
73994
|
-
|
|
75737
|
+
public_id?: string;
|
|
73995
75738
|
/**
|
|
73996
|
-
*
|
|
75739
|
+
* Destination folder for the saved asset; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
|
|
73997
75740
|
*/
|
|
73998
|
-
|
|
75741
|
+
asset_folder?: string;
|
|
75742
|
+
/**
|
|
75743
|
+
* Tags to apply to the saved asset.
|
|
75744
|
+
*/
|
|
75745
|
+
tags?: Array<string>;
|
|
75746
|
+
/**
|
|
75747
|
+
* Understanding behavior for the saved asset; defaults to auto.
|
|
75748
|
+
*/
|
|
75749
|
+
understanding?: 'auto' | 'skip';
|
|
73999
75750
|
};
|
|
74000
75751
|
path: {
|
|
74001
75752
|
/**
|
|
74002
75753
|
* Library ID returned by creation.
|
|
74003
75754
|
*/
|
|
74004
75755
|
library_id: string;
|
|
75756
|
+
/**
|
|
75757
|
+
* Job identifier returned by batch or generation creation; the job is resolved within the specified library.
|
|
75758
|
+
*/
|
|
75759
|
+
job_id: string;
|
|
75760
|
+
/**
|
|
75761
|
+
* Zero-based position of the candidate in the Job outputs array.
|
|
75762
|
+
*/
|
|
75763
|
+
index: string;
|
|
74005
75764
|
};
|
|
74006
75765
|
query?: never;
|
|
74007
|
-
url: '/media/v1/libraries/{library_id}/
|
|
75766
|
+
url: '/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save';
|
|
74008
75767
|
};
|
|
74009
|
-
export type
|
|
75768
|
+
export type MediaSaveGenerationOutputErrors = {
|
|
74010
75769
|
/**
|
|
74011
|
-
*
|
|
75770
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
74012
75771
|
*/
|
|
74013
75772
|
400: MediaMediaError;
|
|
74014
75773
|
/**
|
|
74015
|
-
*
|
|
75774
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
74016
75775
|
*/
|
|
74017
75776
|
403: MediaMediaError;
|
|
74018
75777
|
/**
|
|
74019
|
-
*
|
|
75778
|
+
* The job or output is inaccessible, missing, or the candidate has expired; verify library ownership and create a new job for an expired candidate.
|
|
74020
75779
|
*/
|
|
74021
75780
|
404: MediaMediaError;
|
|
74022
75781
|
/**
|
|
@@ -74024,38 +75783,102 @@ export type MediaCreateDeliveryTokenErrors = {
|
|
|
74024
75783
|
*/
|
|
74025
75784
|
409: MediaMediaError;
|
|
74026
75785
|
/**
|
|
74027
|
-
*
|
|
75786
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
74028
75787
|
*/
|
|
74029
75788
|
413: MediaMediaError;
|
|
74030
75789
|
/**
|
|
74031
|
-
*
|
|
75790
|
+
* This media format is unsupported; provide a supported format.
|
|
74032
75791
|
*/
|
|
74033
75792
|
415: MediaMediaError;
|
|
74034
75793
|
/**
|
|
74035
75794
|
* Request failed; see the error code reference.
|
|
74036
75795
|
*/
|
|
75796
|
+
422: MediaMediaError;
|
|
75797
|
+
/**
|
|
75798
|
+
* A rate limit was reached; wait before retrying.
|
|
75799
|
+
*/
|
|
74037
75800
|
429: MediaMediaError;
|
|
74038
75801
|
/**
|
|
74039
|
-
*
|
|
75802
|
+
* The requested operation is unsupported; choose a supported method.
|
|
74040
75803
|
*/
|
|
74041
75804
|
501: MediaMediaError;
|
|
74042
75805
|
/**
|
|
74043
75806
|
* Request failed; see the error code reference.
|
|
74044
75807
|
*/
|
|
74045
75808
|
502: MediaMediaError;
|
|
75809
|
+
/**
|
|
75810
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
75811
|
+
*/
|
|
75812
|
+
503: MediaMediaError;
|
|
75813
|
+
};
|
|
75814
|
+
export type MediaSaveGenerationOutputError = MediaSaveGenerationOutputErrors[keyof MediaSaveGenerationOutputErrors];
|
|
75815
|
+
export type MediaSaveGenerationOutputResponses = {
|
|
75816
|
+
/**
|
|
75817
|
+
* Successful response.
|
|
75818
|
+
*/
|
|
75819
|
+
200: MediaAsset;
|
|
75820
|
+
};
|
|
75821
|
+
export type MediaSaveGenerationOutputResponse = MediaSaveGenerationOutputResponses[keyof MediaSaveGenerationOutputResponses];
|
|
75822
|
+
export type MediaGetGenerationCapabilitiesData = {
|
|
75823
|
+
body?: never;
|
|
75824
|
+
path?: never;
|
|
75825
|
+
query?: never;
|
|
75826
|
+
url: '/media/v1/generation/capabilities';
|
|
75827
|
+
};
|
|
75828
|
+
export type MediaGetGenerationCapabilitiesErrors = {
|
|
75829
|
+
/**
|
|
75830
|
+
* A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
|
|
75831
|
+
*/
|
|
75832
|
+
400: MediaMediaError;
|
|
75833
|
+
/**
|
|
75834
|
+
* This credential has read-only access to the library; use a write-capable binding for mutations.
|
|
75835
|
+
*/
|
|
75836
|
+
403: MediaMediaError;
|
|
75837
|
+
/**
|
|
75838
|
+
* The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
|
|
75839
|
+
*/
|
|
75840
|
+
404: MediaMediaError;
|
|
75841
|
+
/**
|
|
75842
|
+
* Request failed; see the error code reference.
|
|
75843
|
+
*/
|
|
75844
|
+
409: MediaMediaError;
|
|
75845
|
+
/**
|
|
75846
|
+
* The file exceeds an input limit; provide a smaller source file.
|
|
75847
|
+
*/
|
|
75848
|
+
413: MediaMediaError;
|
|
75849
|
+
/**
|
|
75850
|
+
* This media format is unsupported; provide a supported format.
|
|
75851
|
+
*/
|
|
75852
|
+
415: MediaMediaError;
|
|
75853
|
+
/**
|
|
75854
|
+
* Request failed; see the error code reference.
|
|
75855
|
+
*/
|
|
75856
|
+
422: MediaMediaError;
|
|
75857
|
+
/**
|
|
75858
|
+
* A rate limit was reached; wait before retrying.
|
|
75859
|
+
*/
|
|
75860
|
+
429: MediaMediaError;
|
|
75861
|
+
/**
|
|
75862
|
+
* The requested operation is unsupported; choose a supported method.
|
|
75863
|
+
*/
|
|
75864
|
+
501: MediaMediaError;
|
|
74046
75865
|
/**
|
|
74047
75866
|
* Request failed; see the error code reference.
|
|
74048
75867
|
*/
|
|
75868
|
+
502: MediaMediaError;
|
|
75869
|
+
/**
|
|
75870
|
+
* Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
|
|
75871
|
+
*/
|
|
74049
75872
|
503: MediaMediaError;
|
|
74050
75873
|
};
|
|
74051
|
-
export type
|
|
74052
|
-
export type
|
|
75874
|
+
export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
|
|
75875
|
+
export type MediaGetGenerationCapabilitiesResponses = {
|
|
74053
75876
|
/**
|
|
74054
75877
|
* Successful response.
|
|
74055
75878
|
*/
|
|
74056
|
-
200:
|
|
75879
|
+
200: MediaGenerationCapabilities;
|
|
74057
75880
|
};
|
|
74058
|
-
export type
|
|
75881
|
+
export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
|
|
74059
75882
|
export type GetSandboxV1SandboxesData = {
|
|
74060
75883
|
body?: never;
|
|
74061
75884
|
path?: never;
|
|
@@ -74448,6 +76271,10 @@ export type ListSandboxTemplatesResponses = {
|
|
|
74448
76271
|
buildCount: number;
|
|
74449
76272
|
envdVersion: SandboxEnvdVersion;
|
|
74450
76273
|
buildStatus: SandboxTemplateBuildStatus;
|
|
76274
|
+
/**
|
|
76275
|
+
* Lifecycle classes this template can run as. ephemeral: cannot pause, snapshot or mount volumes and is deleted when it stops; persistent: can pause, resume and snapshot.
|
|
76276
|
+
*/
|
|
76277
|
+
lifecycles?: Array<'ephemeral' | 'persistent'>;
|
|
74451
76278
|
/**
|
|
74452
76279
|
* True for an official catalog template; false for your organization's custom templates.
|
|
74453
76280
|
*/
|
|
@@ -76651,7 +78478,7 @@ export type TicketGetTicketsData = {
|
|
|
76651
78478
|
*/
|
|
76652
78479
|
page_token?: string;
|
|
76653
78480
|
/**
|
|
76654
|
-
* Filter expression.
|
|
78481
|
+
* Filter expression using field:value qualifiers, such as is:open milestone:5.
|
|
76655
78482
|
*/
|
|
76656
78483
|
filter?: string;
|
|
76657
78484
|
};
|
|
@@ -79070,7 +80897,7 @@ export type TicketGetActivityData = {
|
|
|
79070
80897
|
*/
|
|
79071
80898
|
page_token?: string;
|
|
79072
80899
|
/**
|
|
79073
|
-
*
|
|
80900
|
+
* Activity filter expression.
|
|
79074
80901
|
*/
|
|
79075
80902
|
filter?: string;
|
|
79076
80903
|
};
|