@deepraxis/sdk 0.1.1-dev.414edb9 → 0.1.1-dev.41a24b1
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 +7 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +91 -10
- package/dist/generated/sdk.gen.js +102 -9
- package/dist/generated/types.gen.d.ts +381 -18
- package/dist/operations.generated.d.ts +38 -11
- package/dist/operations.generated.js +43 -8
- package/dist/resources.generated.d.ts +13 -0
- package/dist/resources.generated.js +3 -0
- package/package.json +1 -1
|
@@ -1020,9 +1020,9 @@ export type OwnFileCreateFileRequest = {
|
|
|
1020
1020
|
*/
|
|
1021
1021
|
file: Blob | File;
|
|
1022
1022
|
/**
|
|
1023
|
-
* Purpose label stored with the file: user_data or vision. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
|
|
1023
|
+
* Purpose label stored with the file: user_data, assistants or vision. The label is stored and returned unchanged; assistants follows the same rules as user_data. The vision purpose accepts only PNG, JPEG, GIF and WebP images. Conversation image references require user_data.
|
|
1024
1024
|
*/
|
|
1025
|
-
purpose: 'user_data' | 'vision';
|
|
1025
|
+
purpose: 'user_data' | 'assistants' | 'vision';
|
|
1026
1026
|
expires_after?: OwnFileFileExpirationAfter;
|
|
1027
1027
|
};
|
|
1028
1028
|
/**
|
|
@@ -1058,7 +1058,7 @@ export type OwnFileOpenAiFile = {
|
|
|
1058
1058
|
/**
|
|
1059
1059
|
* Upload purpose. Image references in conversations require user_data.
|
|
1060
1060
|
*/
|
|
1061
|
-
purpose: 'user_data' | 'vision';
|
|
1061
|
+
purpose: 'user_data' | 'assistants' | 'vision';
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Deprecated. The current status of the file, which can be either `uploaded`, `processed`, or `error`.
|
|
1064
1064
|
*
|
|
@@ -1156,9 +1156,9 @@ export type OwnFilePraxisCreateUpload = {
|
|
|
1156
1156
|
*/
|
|
1157
1157
|
mime_type: string;
|
|
1158
1158
|
/**
|
|
1159
|
-
* Use user_data for conversation attachments, or vision for PNG, JPEG, GIF and WebP images.
|
|
1159
|
+
* Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.
|
|
1160
1160
|
*/
|
|
1161
|
-
purpose: 'user_data' | 'vision';
|
|
1161
|
+
purpose: 'user_data' | 'assistants' | 'vision';
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Optional expiry policy for the resulting file; omission retains the file until deletion.
|
|
1164
1164
|
*/
|
|
@@ -1203,9 +1203,9 @@ export type OwnFilePraxisUpload = {
|
|
|
1203
1203
|
*/
|
|
1204
1204
|
filename: string;
|
|
1205
1205
|
/**
|
|
1206
|
-
* File purpose: user_data for conversation attachments, vision for images.
|
|
1206
|
+
* File purpose: user_data for conversation attachments, assistants for assistant files, vision for images.
|
|
1207
1207
|
*/
|
|
1208
|
-
purpose: 'user_data' | 'vision';
|
|
1208
|
+
purpose: 'user_data' | 'assistants' | 'vision';
|
|
1209
1209
|
/**
|
|
1210
1210
|
* Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its one-hour lifetime.
|
|
1211
1211
|
*/
|
|
@@ -1282,9 +1282,9 @@ export type OwnFileSignedUploadRequest = {
|
|
|
1282
1282
|
*/
|
|
1283
1283
|
content_type: string;
|
|
1284
1284
|
/**
|
|
1285
|
-
* user_data
|
|
1285
|
+
* user_data and assistants store ordinary files and conversation images with their original purpose label; vision accepts PNG, JPEG, GIF or WebP images only. Omitted means user_data.
|
|
1286
1286
|
*/
|
|
1287
|
-
purpose?: 'user_data' | 'vision';
|
|
1287
|
+
purpose?: 'user_data' | 'assistants' | 'vision';
|
|
1288
1288
|
/**
|
|
1289
1289
|
* Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 3600 for multipart. All part URLs and the completion URL share one expiry. This does not set the resulting file's lifetime.
|
|
1290
1290
|
*/
|
|
@@ -14039,6 +14039,10 @@ export type KnowledgeEventList = {
|
|
|
14039
14039
|
* A caller-owned media library with lifecycle, usage, understanding settings and model selections.
|
|
14040
14040
|
*/
|
|
14041
14041
|
export type MediaLibrary = {
|
|
14042
|
+
/**
|
|
14043
|
+
* 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.
|
|
14044
|
+
*/
|
|
14045
|
+
readonly hotwords?: Array<string>;
|
|
14042
14046
|
/**
|
|
14043
14047
|
* Current understanding progress for active and deleting libraries. Counts exclude deleted assets; migration_complete is false until historical assets have been counted.
|
|
14044
14048
|
*/
|
|
@@ -14126,6 +14130,14 @@ export type MediaMediaModelsInput = {
|
|
|
14126
14130
|
* Model call ID for speech transcription. Null restores the default for this role.
|
|
14127
14131
|
*/
|
|
14128
14132
|
transcription?: string | null;
|
|
14133
|
+
/**
|
|
14134
|
+
* 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.
|
|
14135
|
+
*/
|
|
14136
|
+
correction?: string | null;
|
|
14137
|
+
/**
|
|
14138
|
+
* 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.
|
|
14139
|
+
*/
|
|
14140
|
+
reference_transcription?: string | null;
|
|
14129
14141
|
} | null;
|
|
14130
14142
|
/**
|
|
14131
14143
|
* Libraries in this page, ordered by creation time descending.
|
|
@@ -14408,6 +14420,10 @@ export type MediaUnderstandingPage = MediaPage & {
|
|
|
14408
14420
|
* Opaque token to pass as cursor to listUnderstandings; null means no further page.
|
|
14409
14421
|
*/
|
|
14410
14422
|
next_cursor: string | null;
|
|
14423
|
+
/**
|
|
14424
|
+
* Current-version video shots, repeated on every understanding page. Absent on legacy records, images and audio. New video processing with image-capable embedding samples at 1 fps, at most 600 frames, and produces at most 60 shots. Long clips increase the interval and merge adjacent short shots; sub-second cuts may be missed. Each shot uses one to three keyframes in one vision call. Text-only legacy embedding profiles retain frame-based processing.
|
|
14425
|
+
*/
|
|
14426
|
+
readonly shots?: Array<MediaUnderstoodShot>;
|
|
14411
14427
|
};
|
|
14412
14428
|
/**
|
|
14413
14429
|
* Expression-search page with match counts, elapsed time and optional facet counts.
|
|
@@ -25014,11 +25030,11 @@ export type CutSummary = {
|
|
|
25014
25030
|
lines: Array<string>;
|
|
25015
25031
|
};
|
|
25016
25032
|
/**
|
|
25017
|
-
* Rendered image
|
|
25033
|
+
* Rendered PNG image carried inline as a data URL.
|
|
25018
25034
|
*/
|
|
25019
25035
|
export type CutRenderRef = {
|
|
25020
25036
|
/**
|
|
25021
|
-
*
|
|
25037
|
+
* Inline PNG data URL (data:image/png;base64,...); decode the base64 payload to save the image. This is not a hosted HTTP image link.
|
|
25022
25038
|
*/
|
|
25023
25039
|
url: string;
|
|
25024
25040
|
/**
|
|
@@ -25030,7 +25046,7 @@ export type CutRenderRef = {
|
|
|
25030
25046
|
*/
|
|
25031
25047
|
height: number;
|
|
25032
25048
|
/**
|
|
25033
|
-
* ISO 8601 timestamp
|
|
25049
|
+
* ISO 8601 freshness timestamp for the render result; the inline data URL contains the image bytes and does not require a network refresh.
|
|
25034
25050
|
*/
|
|
25035
25051
|
expires_at: string;
|
|
25036
25052
|
};
|
|
@@ -25546,7 +25562,7 @@ export type MediaUnderstandingProgress = {
|
|
|
25546
25562
|
readonly migration_complete: boolean;
|
|
25547
25563
|
};
|
|
25548
25564
|
/**
|
|
25549
|
-
* Resolved model call IDs for
|
|
25565
|
+
* Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
|
|
25550
25566
|
*/
|
|
25551
25567
|
export type MediaMediaModels = {
|
|
25552
25568
|
/**
|
|
@@ -25561,6 +25577,14 @@ export type MediaMediaModels = {
|
|
|
25561
25577
|
* Model call ID for speech transcription.
|
|
25562
25578
|
*/
|
|
25563
25579
|
transcription: string;
|
|
25580
|
+
/**
|
|
25581
|
+
* Model call ID for conservative transcript spelling correction; defaults to qwen3.8-flash. The model must support chat completions.
|
|
25582
|
+
*/
|
|
25583
|
+
readonly correction: string;
|
|
25584
|
+
/**
|
|
25585
|
+
* Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
|
|
25586
|
+
*/
|
|
25587
|
+
readonly reference_transcription: string;
|
|
25564
25588
|
};
|
|
25565
25589
|
/**
|
|
25566
25590
|
* Identifier of a library belonging to the caller.
|
|
@@ -25761,9 +25785,9 @@ export type MediaChunkComplete = MediaCloudinaryResource & {
|
|
|
25761
25785
|
*/
|
|
25762
25786
|
export type MediaProcessing = {
|
|
25763
25787
|
/**
|
|
25764
|
-
* Current understanding stage: probe, frames, visual, transcript, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
|
|
25788
|
+
* Current understanding stage: probe, frames, shots, visual, transcript, transcript_reference, transcript_correction, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
|
|
25765
25789
|
*/
|
|
25766
|
-
readonly stage?: 'probe' | 'frames' | 'visual' | 'transcript' | 'embedding' | 'finalize' | null;
|
|
25790
|
+
readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'embedding' | 'finalize' | null;
|
|
25767
25791
|
state: MediaProcessingState;
|
|
25768
25792
|
/**
|
|
25769
25793
|
* Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
|
|
@@ -25805,6 +25829,18 @@ export type MediaStoryboard = {
|
|
|
25805
25829
|
* An immutable understanding result for an asset version, including superseded history when requested.
|
|
25806
25830
|
*/
|
|
25807
25831
|
export type MediaUnderstanding = {
|
|
25832
|
+
/**
|
|
25833
|
+
* Original hallucination-filtered ASR text before correction, present on correction-enabled transcript records. Omitted on legacy records and other kinds.
|
|
25834
|
+
*/
|
|
25835
|
+
readonly text_original?: string;
|
|
25836
|
+
/**
|
|
25837
|
+
* Corrected transcript, also returned as content and used for subtitles and search. Equals text_original when correction fails. Original segment timestamps remain unchanged.
|
|
25838
|
+
*/
|
|
25839
|
+
readonly text?: string;
|
|
25840
|
+
/**
|
|
25841
|
+
* Transcript correction audit, accepted edits and optional reference ASR. Present on correction-enabled transcript records, including failed corrections.
|
|
25842
|
+
*/
|
|
25843
|
+
readonly correction?: MediaTranscriptCorrection;
|
|
25808
25844
|
/**
|
|
25809
25845
|
* Generated identifier of this understanding result.
|
|
25810
25846
|
*/
|
|
@@ -25842,7 +25878,7 @@ export type MediaUnderstanding = {
|
|
|
25842
25878
|
*/
|
|
25843
25879
|
content: string | null;
|
|
25844
25880
|
/**
|
|
25845
|
-
* Structured producer output
|
|
25881
|
+
* 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.
|
|
25846
25882
|
*/
|
|
25847
25883
|
data: unknown | null;
|
|
25848
25884
|
/**
|
|
@@ -25871,6 +25907,36 @@ export type MediaUnderstanding = {
|
|
|
25871
25907
|
*/
|
|
25872
25908
|
created_at: MediaIsoTimestamp;
|
|
25873
25909
|
};
|
|
25910
|
+
export type MediaUnderstoodShot = {
|
|
25911
|
+
/**
|
|
25912
|
+
* Inclusive shot start in milliseconds.
|
|
25913
|
+
*/
|
|
25914
|
+
readonly start_ms: number;
|
|
25915
|
+
/**
|
|
25916
|
+
* Exclusive shot end in milliseconds.
|
|
25917
|
+
*/
|
|
25918
|
+
readonly end_ms: number;
|
|
25919
|
+
/**
|
|
25920
|
+
* Zero-based shot index in timeline order.
|
|
25921
|
+
*/
|
|
25922
|
+
readonly index: number;
|
|
25923
|
+
/**
|
|
25924
|
+
* One to three sampled frame timestamps in milliseconds within this shot.
|
|
25925
|
+
*/
|
|
25926
|
+
readonly keyframes_ms: Array<number>;
|
|
25927
|
+
/**
|
|
25928
|
+
* Structured interpretation, present after this shot completes visual processing.
|
|
25929
|
+
*/
|
|
25930
|
+
readonly visual?: MediaShotVisual;
|
|
25931
|
+
/**
|
|
25932
|
+
* Lexical location hint: true if the leaf folder and location guess share no place-name token. Unknown locations abstain; this is not a verified geolocation.
|
|
25933
|
+
*/
|
|
25934
|
+
readonly folder_mismatch?: boolean;
|
|
25935
|
+
/**
|
|
25936
|
+
* Vision model that generated this shot interpretation.
|
|
25937
|
+
*/
|
|
25938
|
+
readonly producer?: string;
|
|
25939
|
+
};
|
|
25874
25940
|
/**
|
|
25875
25941
|
* A native asset returned by expression search; tags and context are included only when requested in with_field.
|
|
25876
25942
|
*/
|
|
@@ -30548,6 +30614,58 @@ export type MediaProcessingState = 'pending' | 'processing' | 'ready' | 'partial
|
|
|
30548
30614
|
* Task state: pending awaits execution; running is executing; ready succeeded; failed terminated unsuccessfully; unsupported cannot process this input; skipped was disabled or does not apply.
|
|
30549
30615
|
*/
|
|
30550
30616
|
export type MediaKindState = 'pending' | 'running' | 'ready' | 'failed' | 'unsupported' | 'skipped';
|
|
30617
|
+
export type MediaTranscriptCorrection = {
|
|
30618
|
+
/**
|
|
30619
|
+
* Accepted local edits, including deterministic Arabic quantity normalization. Unsupported model edits are discarded.
|
|
30620
|
+
*/
|
|
30621
|
+
readonly edits: Array<MediaTranscriptEdit>;
|
|
30622
|
+
/**
|
|
30623
|
+
* ready means correction and validation completed; failed means text is exactly the ASR original, with no accepted edits.
|
|
30624
|
+
*/
|
|
30625
|
+
readonly correction_status: 'ready' | 'failed';
|
|
30626
|
+
/**
|
|
30627
|
+
* Configured correction model call ID; defaults to qwen3.8-flash.
|
|
30628
|
+
*/
|
|
30629
|
+
readonly correction_model: string;
|
|
30630
|
+
/**
|
|
30631
|
+
* ready means reference ASR supplied text; missing means reference failed or was unavailable and correction proceeded without it.
|
|
30632
|
+
*/
|
|
30633
|
+
readonly reference_status: 'ready' | 'missing';
|
|
30634
|
+
/**
|
|
30635
|
+
* Full reference ASR text, present when reference_status is ready. It supplies spelling evidence and has no timestamps.
|
|
30636
|
+
*/
|
|
30637
|
+
readonly reference_text?: string;
|
|
30638
|
+
/**
|
|
30639
|
+
* Model call ID that supplied the reference text; defaults to qwen3-asr-flash.
|
|
30640
|
+
*/
|
|
30641
|
+
readonly reference_model?: string;
|
|
30642
|
+
/**
|
|
30643
|
+
* Correction failure that caused verbatim fallback to the ASR original.
|
|
30644
|
+
*/
|
|
30645
|
+
readonly correction_error?: {
|
|
30646
|
+
/**
|
|
30647
|
+
* Failure code for the optional transcript enhancement step.
|
|
30648
|
+
*/
|
|
30649
|
+
code: string;
|
|
30650
|
+
/**
|
|
30651
|
+
* Failure detail; use reprocess to retry with the library’s current configuration.
|
|
30652
|
+
*/
|
|
30653
|
+
message: string;
|
|
30654
|
+
};
|
|
30655
|
+
/**
|
|
30656
|
+
* Reference failure; it does not block correction.
|
|
30657
|
+
*/
|
|
30658
|
+
readonly reference_error?: {
|
|
30659
|
+
/**
|
|
30660
|
+
* Failure code for the optional transcript enhancement step.
|
|
30661
|
+
*/
|
|
30662
|
+
code: string;
|
|
30663
|
+
/**
|
|
30664
|
+
* Failure detail; use reprocess to retry with the library’s current configuration.
|
|
30665
|
+
*/
|
|
30666
|
+
message: string;
|
|
30667
|
+
};
|
|
30668
|
+
};
|
|
30551
30669
|
/**
|
|
30552
30670
|
* Identifier of an immutable understanding result.
|
|
30553
30671
|
*/
|
|
@@ -30569,6 +30687,28 @@ export type MediaSegment = {
|
|
|
30569
30687
|
*/
|
|
30570
30688
|
end_ms: number;
|
|
30571
30689
|
};
|
|
30690
|
+
export type MediaShotVisual = {
|
|
30691
|
+
/**
|
|
30692
|
+
* Chinese summary of the entire shot using its keyframes together.
|
|
30693
|
+
*/
|
|
30694
|
+
readonly caption: string;
|
|
30695
|
+
/**
|
|
30696
|
+
* Chinese description of the scene and shooting context.
|
|
30697
|
+
*/
|
|
30698
|
+
readonly scene: string;
|
|
30699
|
+
/**
|
|
30700
|
+
* Location inferred from recognizable landmarks or readable place names; null without evidence.
|
|
30701
|
+
*/
|
|
30702
|
+
readonly location_guess: string | null;
|
|
30703
|
+
/**
|
|
30704
|
+
* Visible text in reading order, preserving the source language.
|
|
30705
|
+
*/
|
|
30706
|
+
readonly on_screen_text: Array<string>;
|
|
30707
|
+
/**
|
|
30708
|
+
* Quality and editing characteristics with confidence for every judgment.
|
|
30709
|
+
*/
|
|
30710
|
+
readonly flags: MediaShotFlags;
|
|
30711
|
+
};
|
|
30572
30712
|
/**
|
|
30573
30713
|
* Evidence contributing to a search hit, optionally linked to an understanding and a source-media segment.
|
|
30574
30714
|
*/
|
|
@@ -31380,6 +31520,42 @@ export type CutItem = {
|
|
|
31380
31520
|
*/
|
|
31381
31521
|
words?: Array<CutCaptionWord>;
|
|
31382
31522
|
};
|
|
31523
|
+
export type MediaTranscriptEdit = {
|
|
31524
|
+
/**
|
|
31525
|
+
* Original literal text replaced by this accepted edit.
|
|
31526
|
+
*/
|
|
31527
|
+
readonly from: string;
|
|
31528
|
+
/**
|
|
31529
|
+
* 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.
|
|
31530
|
+
*/
|
|
31531
|
+
readonly to: string;
|
|
31532
|
+
/**
|
|
31533
|
+
* Zero-based index in the assembled, hallucination-filtered ASR segments. Segment timestamps do not change.
|
|
31534
|
+
*/
|
|
31535
|
+
readonly segment_id: number;
|
|
31536
|
+
};
|
|
31537
|
+
export type MediaShotFlags = {
|
|
31538
|
+
/**
|
|
31539
|
+
* Slide or screen-recorded picture/text sequence rather than live footage.
|
|
31540
|
+
*/
|
|
31541
|
+
readonly slideshow: MediaShotFlag;
|
|
31542
|
+
/**
|
|
31543
|
+
* Visible watermark.
|
|
31544
|
+
*/
|
|
31545
|
+
readonly watermark: MediaShotFlag;
|
|
31546
|
+
/**
|
|
31547
|
+
* Fingers or hands framing the scene.
|
|
31548
|
+
*/
|
|
31549
|
+
readonly hand_frame: MediaShotFlag;
|
|
31550
|
+
/**
|
|
31551
|
+
* Added text sticker or overlay.
|
|
31552
|
+
*/
|
|
31553
|
+
readonly text_sticker: MediaShotFlag;
|
|
31554
|
+
/**
|
|
31555
|
+
* Blur, severe camera shake, bad exposure or another visible quality defect.
|
|
31556
|
+
*/
|
|
31557
|
+
readonly low_quality: MediaShotFlag;
|
|
31558
|
+
};
|
|
31383
31559
|
export type SandboxSandboxIamToken = {
|
|
31384
31560
|
/**
|
|
31385
31561
|
* Audience of the workload token, stored exactly as provided.
|
|
@@ -31641,6 +31817,16 @@ export type CutCaptionWord = {
|
|
|
31641
31817
|
*/
|
|
31642
31818
|
length: number;
|
|
31643
31819
|
};
|
|
31820
|
+
export type MediaShotFlag = {
|
|
31821
|
+
/**
|
|
31822
|
+
* True when this visual characteristic is present.
|
|
31823
|
+
*/
|
|
31824
|
+
readonly value: boolean;
|
|
31825
|
+
/**
|
|
31826
|
+
* Confidence in this true or false judgment, from 0 to 1.
|
|
31827
|
+
*/
|
|
31828
|
+
readonly confidence: number;
|
|
31829
|
+
};
|
|
31644
31830
|
export type PraxisSdkSseGetBrowserV1SessionsSessionIdStream = BrowserStreamMessage;
|
|
31645
31831
|
/**
|
|
31646
31832
|
* One decoded SSE event. The data field contains the decoded JSON payload, or a documented string sentinel. SSE comments are keepalives, not events. Optional id/event fields are absent when the server does not send them.
|
|
@@ -31943,7 +32129,7 @@ export type MediaLibraryWritable = {
|
|
|
31943
32129
|
/**
|
|
31944
32130
|
* Resolved model call IDs used for new uploads and reprocessing.
|
|
31945
32131
|
*/
|
|
31946
|
-
models:
|
|
32132
|
+
models: MediaMediaModelsWritable;
|
|
31947
32133
|
/**
|
|
31948
32134
|
* Generated library identifier: lib_ followed by 32 lowercase hexadecimal characters.
|
|
31949
32135
|
*/
|
|
@@ -32222,6 +32408,19 @@ export type MediaAssetWritable = {
|
|
|
32222
32408
|
};
|
|
32223
32409
|
};
|
|
32224
32410
|
};
|
|
32411
|
+
/**
|
|
32412
|
+
* Understanding results in this page, ordered by creation time ascending.
|
|
32413
|
+
*/
|
|
32414
|
+
export type MediaUnderstandingPageWritable = MediaPage & {
|
|
32415
|
+
/**
|
|
32416
|
+
* Understanding results in this page, ordered by creation time ascending.
|
|
32417
|
+
*/
|
|
32418
|
+
data: Array<MediaUnderstandingWritable>;
|
|
32419
|
+
/**
|
|
32420
|
+
* Opaque token to pass as cursor to listUnderstandings; null means no further page.
|
|
32421
|
+
*/
|
|
32422
|
+
next_cursor: string | null;
|
|
32423
|
+
};
|
|
32225
32424
|
/**
|
|
32226
32425
|
* Expression-search page with match counts, elapsed time and optional facet counts.
|
|
32227
32426
|
*/
|
|
@@ -32315,6 +32514,23 @@ export type AgentManaged193Writable = {
|
|
|
32315
32514
|
export type AgentManaged143Writable = {
|
|
32316
32515
|
[key: string]: string;
|
|
32317
32516
|
};
|
|
32517
|
+
/**
|
|
32518
|
+
* Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
|
|
32519
|
+
*/
|
|
32520
|
+
export type MediaMediaModelsWritable = {
|
|
32521
|
+
/**
|
|
32522
|
+
* Model call ID for visual descriptions; the model must support image input.
|
|
32523
|
+
*/
|
|
32524
|
+
vision: string;
|
|
32525
|
+
/**
|
|
32526
|
+
* Model call ID for search embeddings; must produce compatible vectors and cannot change while assets exist.
|
|
32527
|
+
*/
|
|
32528
|
+
embedding: string;
|
|
32529
|
+
/**
|
|
32530
|
+
* Model call ID for speech transcription.
|
|
32531
|
+
*/
|
|
32532
|
+
transcription: string;
|
|
32533
|
+
};
|
|
32318
32534
|
/**
|
|
32319
32535
|
* Cloudinary-compatible resource. processing is present when the asset was uploaded with auto_tagging; otherwise it is omitted. Native Asset responses always include processing.
|
|
32320
32536
|
*/
|
|
@@ -32470,6 +32686,76 @@ export type MediaProcessingWritable = {
|
|
|
32470
32686
|
*/
|
|
32471
32687
|
updated_at: MediaIsoTimestamp;
|
|
32472
32688
|
};
|
|
32689
|
+
/**
|
|
32690
|
+
* An immutable understanding result for an asset version, including superseded history when requested.
|
|
32691
|
+
*/
|
|
32692
|
+
export type MediaUnderstandingWritable = {
|
|
32693
|
+
/**
|
|
32694
|
+
* Generated identifier of this understanding result.
|
|
32695
|
+
*/
|
|
32696
|
+
id: MediaUnderstandingId;
|
|
32697
|
+
/**
|
|
32698
|
+
* Identifier of the asset from which this result was produced.
|
|
32699
|
+
*/
|
|
32700
|
+
asset_id: MediaAssetId;
|
|
32701
|
+
/**
|
|
32702
|
+
* Asset version processed to produce this result; compare with the asset’s current version.
|
|
32703
|
+
*/
|
|
32704
|
+
asset_version: number;
|
|
32705
|
+
/**
|
|
32706
|
+
* 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.
|
|
32707
|
+
*/
|
|
32708
|
+
kind: MediaUnderstandingKind;
|
|
32709
|
+
/**
|
|
32710
|
+
* Producer model identifier; a failure may use the configured model when no model response is available.
|
|
32711
|
+
*/
|
|
32712
|
+
producer: string;
|
|
32713
|
+
/**
|
|
32714
|
+
* Version of the producer that generated this understanding result.
|
|
32715
|
+
*/
|
|
32716
|
+
producer_version: string;
|
|
32717
|
+
/**
|
|
32718
|
+
* Source-media time range for a frame or transcript segment; null for results without a segment.
|
|
32719
|
+
*/
|
|
32720
|
+
segment: MediaSegment | null;
|
|
32721
|
+
/**
|
|
32722
|
+
* Result status: ready contains completed output; failed records an error.
|
|
32723
|
+
*/
|
|
32724
|
+
status: 'ready' | 'failed';
|
|
32725
|
+
/**
|
|
32726
|
+
* Text output, such as a caption, recognized text or transcript; null for structured-only or failed results.
|
|
32727
|
+
*/
|
|
32728
|
+
content: string | null;
|
|
32729
|
+
/**
|
|
32730
|
+
* 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.
|
|
32731
|
+
*/
|
|
32732
|
+
data: unknown | null;
|
|
32733
|
+
/**
|
|
32734
|
+
* Confidence value recorded by the producer; null when no confidence value is recorded.
|
|
32735
|
+
*/
|
|
32736
|
+
confidence: number | null;
|
|
32737
|
+
/**
|
|
32738
|
+
* Failure code and message, or null for a successful result.
|
|
32739
|
+
*/
|
|
32740
|
+
error: {
|
|
32741
|
+
/**
|
|
32742
|
+
* Failure code identifying why understanding could not complete.
|
|
32743
|
+
*/
|
|
32744
|
+
code: string;
|
|
32745
|
+
/**
|
|
32746
|
+
* Human-readable explanation of the understanding failure.
|
|
32747
|
+
*/
|
|
32748
|
+
message: string;
|
|
32749
|
+
} | null;
|
|
32750
|
+
/**
|
|
32751
|
+
* Whether a newer result or asset version has replaced this result. Excluded from listing unless include_superseded is true.
|
|
32752
|
+
*/
|
|
32753
|
+
superseded: boolean;
|
|
32754
|
+
/**
|
|
32755
|
+
* Time this immutable result was recorded, in UTC.
|
|
32756
|
+
*/
|
|
32757
|
+
created_at: MediaIsoTimestamp;
|
|
32758
|
+
};
|
|
32473
32759
|
/**
|
|
32474
32760
|
* A native asset returned by expression search; tags and context are included only when requested in with_field.
|
|
32475
32761
|
*/
|
|
@@ -32695,6 +32981,9 @@ export type MediaSemanticHitWritable = {
|
|
|
32695
32981
|
export type AgentManaged34Writable = {
|
|
32696
32982
|
[key: string]: unknown;
|
|
32697
32983
|
};
|
|
32984
|
+
export type MediaTranscriptCorrectionWritable = {
|
|
32985
|
+
[key: string]: unknown;
|
|
32986
|
+
};
|
|
32698
32987
|
/**
|
|
32699
32988
|
* Id of the sandbox, the `sandboxID` returned by the create call (or listed by listSandboxes). Another team's sandbox and an unknown id both answer 404.
|
|
32700
32989
|
*/
|
|
@@ -47791,6 +48080,76 @@ export type CountResponseInputTokensResponses = {
|
|
|
47791
48080
|
};
|
|
47792
48081
|
};
|
|
47793
48082
|
export type CountResponseInputTokensResponse = CountResponseInputTokensResponses[keyof CountResponseInputTokensResponses];
|
|
48083
|
+
export type ListOrganizationMembersData = {
|
|
48084
|
+
body?: never;
|
|
48085
|
+
path?: never;
|
|
48086
|
+
query?: {
|
|
48087
|
+
/**
|
|
48088
|
+
* Maximum members per page, from 1 to 100; defaults to 20.
|
|
48089
|
+
*/
|
|
48090
|
+
limit?: number;
|
|
48091
|
+
/**
|
|
48092
|
+
* Opaque next_page cursor returned by the previous response; omit for the first page.
|
|
48093
|
+
*/
|
|
48094
|
+
page?: string;
|
|
48095
|
+
};
|
|
48096
|
+
url: '/organization/v1/members';
|
|
48097
|
+
};
|
|
48098
|
+
export type ListOrganizationMembersErrors = {
|
|
48099
|
+
/**
|
|
48100
|
+
* Invalid limit or page cursor; use limit 1 to 100 and copy next_page from the previous response.
|
|
48101
|
+
*/
|
|
48102
|
+
400: unknown;
|
|
48103
|
+
/**
|
|
48104
|
+
* Missing or invalid credentials; provide a valid organization API key or runtime token.
|
|
48105
|
+
*/
|
|
48106
|
+
401: unknown;
|
|
48107
|
+
/**
|
|
48108
|
+
* Organization identity was refused; use a credential belonging to the organization.
|
|
48109
|
+
*/
|
|
48110
|
+
403: unknown;
|
|
48111
|
+
};
|
|
48112
|
+
export type ListOrganizationMembersResponses = {
|
|
48113
|
+
/**
|
|
48114
|
+
* Members of the authenticated organization, earliest join first.
|
|
48115
|
+
*/
|
|
48116
|
+
200: {
|
|
48117
|
+
/**
|
|
48118
|
+
* Organization members in ascending join order.
|
|
48119
|
+
*/
|
|
48120
|
+
data: Array<{
|
|
48121
|
+
/**
|
|
48122
|
+
* User identifier (usr_...). Use this id to assign an approver to an approval task.
|
|
48123
|
+
*/
|
|
48124
|
+
id: string;
|
|
48125
|
+
/**
|
|
48126
|
+
* Display name of the member; null when no name is set.
|
|
48127
|
+
*/
|
|
48128
|
+
name: string | null;
|
|
48129
|
+
/**
|
|
48130
|
+
* Email address of a member of your organization.
|
|
48131
|
+
*/
|
|
48132
|
+
email: string;
|
|
48133
|
+
/**
|
|
48134
|
+
* Organization role: owner owns the organization; admin manages it; member is a regular participant.
|
|
48135
|
+
*/
|
|
48136
|
+
role: 'owner' | 'admin' | 'member';
|
|
48137
|
+
/**
|
|
48138
|
+
* UTC ISO 8601 instant when this user joined the organization.
|
|
48139
|
+
*/
|
|
48140
|
+
joined_at: string;
|
|
48141
|
+
}>;
|
|
48142
|
+
/**
|
|
48143
|
+
* Whether another page of members is available.
|
|
48144
|
+
*/
|
|
48145
|
+
has_more: boolean;
|
|
48146
|
+
/**
|
|
48147
|
+
* Cursor to pass as page; null when no more members remain.
|
|
48148
|
+
*/
|
|
48149
|
+
next_page: string | null;
|
|
48150
|
+
};
|
|
48151
|
+
};
|
|
48152
|
+
export type ListOrganizationMembersResponse = ListOrganizationMembersResponses[keyof ListOrganizationMembersResponses];
|
|
47794
48153
|
export type ListOrganizationFeedbackData = {
|
|
47795
48154
|
body?: never;
|
|
47796
48155
|
path?: never;
|
|
@@ -72133,6 +72492,10 @@ export type MediaUpdateLibraryData = {
|
|
|
72133
72492
|
* Partial update of an active media library.
|
|
72134
72493
|
*/
|
|
72135
72494
|
body: {
|
|
72495
|
+
/**
|
|
72496
|
+
* 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.
|
|
72497
|
+
*/
|
|
72498
|
+
hotwords?: Array<string>;
|
|
72136
72499
|
/**
|
|
72137
72500
|
* Model role overrides. Omitted roles keep their current values on update and use defaults on creation; null restores all defaults, and a null role restores that role’s default. Changing embedding is rejected while the library contains assets.
|
|
72138
72501
|
*/
|
|
@@ -73066,7 +73429,7 @@ export type MediaExpressionSearchData = {
|
|
|
73066
73429
|
*/
|
|
73067
73430
|
body: {
|
|
73068
73431
|
/**
|
|
73069
|
-
* Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context.
|
|
73432
|
+
* 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.
|
|
73070
73433
|
*/
|
|
73071
73434
|
expression?: string;
|
|
73072
73435
|
/**
|