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

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.
@@ -13616,7 +13616,7 @@ export type KnowledgeNativeCreateVectorStore = {
13616
13616
  * Existing File IDs to attach; the store allows up to 10,000 files.
13617
13617
  */
13618
13618
  file_ids?: Array<string>;
13619
- chunking_strategy?: KnowledgeChunkingInput;
13619
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13620
13620
  /**
13621
13621
  * Accepted but not saved or returned; its type is not validated.
13622
13622
  */
@@ -13780,7 +13780,7 @@ export type KnowledgeNativeVectorStoreFile = {
13780
13780
  * Unix timestamp in seconds.
13781
13781
  */
13782
13782
  created_at: number;
13783
- chunking_strategy: KnowledgeChunking;
13783
+ chunking_strategy: KnowledgeNativeChunking;
13784
13784
  /**
13785
13785
  * File attributes used for search filtering; null means no attributes are set.
13786
13786
  */
@@ -13790,7 +13790,7 @@ export type KnowledgeNativeVectorStoreFile = {
13790
13790
  */
13791
13791
  praxis?: {
13792
13792
  /**
13793
- * Specific ingestion failure: file_too_large exceeds 50 MiB; encrypted requires an unencrypted source; empty has no extractable text; unsupported_type needs a supported format; token_limit exceeds 5000000 estimated tokens; recognition_unavailable exhausted OCR retries; deadline_exceeded reached the ingestion or conversion deadline; internal is an unexpected provider or processing error. last_error retains the compatible code and an actionable message.
13793
+ * Specific ingestion failure: file_too_large exceeds 512 MiB for PDFs or 50 MiB for other formats (the Router conversion limit); encrypted requires an unencrypted source; empty has no extractable text; unsupported_type needs a supported format; token_limit exceeds 5000000 estimated tokens; recognition_unavailable exhausted OCR retries; deadline_exceeded reached the ingestion or conversion deadline; internal is an unexpected provider or processing error. last_error retains the compatible code and an actionable message.
13794
13794
  */
13795
13795
  failure_reason?: 'file_too_large' | 'encrypted' | 'empty' | 'unsupported_type' | 'token_limit' | 'recognition_unavailable' | 'deadline_exceeded' | 'internal';
13796
13796
  /**
@@ -13827,7 +13827,7 @@ export type KnowledgeNativeVectorStoreFile = {
13827
13827
  chunk_count: number;
13828
13828
  };
13829
13829
  };
13830
- export type KnowledgeAttachFile = {
13830
+ export type KnowledgeNativeAttachFile = {
13831
13831
  /**
13832
13832
  * Existing source File ID returned by file upload; the file must be visible to the caller.
13833
13833
  */
@@ -13836,7 +13836,7 @@ export type KnowledgeAttachFile = {
13836
13836
  * Search-filter attributes for a newly attached file; omission or null leaves attributes unset. Reattaching an existing file does not change them.
13837
13837
  */
13838
13838
  attributes?: KnowledgeAttributes | null;
13839
- chunking_strategy?: KnowledgeChunkingInput;
13839
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13840
13840
  };
13841
13841
  export type KnowledgeNativeVectorStoreFileList = {
13842
13842
  /**
@@ -13933,7 +13933,7 @@ export type KnowledgeFileBatch = {
13933
13933
  /**
13934
13934
  * Provide exactly one of file_ids or files. Already attached files are reused without changing their attributes or chunking.
13935
13935
  */
13936
- export type KnowledgeCreateBatch = {
13936
+ export type KnowledgeNativeCreateBatch = {
13937
13937
  /**
13938
13938
  * Existing File IDs to attach with shared attributes and chunking settings. Supply file_ids or files, never both.
13939
13939
  */
@@ -13942,7 +13942,7 @@ export type KnowledgeCreateBatch = {
13942
13942
  * Search-filter attributes applied to each newly attached file; omission or null leaves them unset.
13943
13943
  */
13944
13944
  attributes?: KnowledgeAttributes | null;
13945
- chunking_strategy?: KnowledgeChunkingInput;
13945
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13946
13946
  } | {
13947
13947
  /**
13948
13948
  * Files to attach with individual attributes and chunking settings; top-level attributes and chunking_strategy are ignored.
@@ -13953,7 +13953,7 @@ export type KnowledgeCreateBatch = {
13953
13953
  */
13954
13954
  file_id: string;
13955
13955
  attributes?: KnowledgeAttributes;
13956
- chunking_strategy?: KnowledgeChunkingInput;
13956
+ chunking_strategy?: KnowledgeNativeChunkingInput;
13957
13957
  }>;
13958
13958
  /**
13959
13959
  * Ignored when files is supplied.
@@ -14160,7 +14160,7 @@ export type MediaMediaModelsInput = {
14160
14160
  */
14161
14161
  embedding?: string | null;
14162
14162
  /**
14163
- * Model call ID for speech transcription. Null restores the default for this role.
14163
+ * Model call ID for speech transcription. Null restores the default for this role. Defaults to fun-asr with whisper-large-v3-turbo fallback.
14164
14164
  */
14165
14165
  transcription?: string | null;
14166
14166
  /**
@@ -14171,6 +14171,10 @@ export type MediaMediaModelsInput = {
14171
14171
  * Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction. Null restores this role’s default.
14172
14172
  */
14173
14173
  reference_transcription?: string | null;
14174
+ /**
14175
+ * Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges. Null restores this role’s default.
14176
+ */
14177
+ audio?: string | null;
14174
14178
  } | null;
14175
14179
  /**
14176
14180
  * Libraries in this page, ordered by creation time descending.
@@ -14185,6 +14189,25 @@ export type MediaLibraryPage = MediaPage & {
14185
14189
  */
14186
14190
  next_cursor: string | null;
14187
14191
  };
14192
+ export type MediaFrameUrls = {
14193
+ /**
14194
+ * Frame links in the same order as the requested timestamps, including duplicates.
14195
+ */
14196
+ frames: Array<{
14197
+ /**
14198
+ * Requested time in microseconds from the start of the video.
14199
+ */
14200
+ at_micros: number;
14201
+ /**
14202
+ * JPEG delivery URL. Fetch it to extract the frame; authenticated links carry a bearer token and must not be shared beyond intended readers.
14203
+ */
14204
+ url: string;
14205
+ /**
14206
+ * UTC expiry for authenticated frame links, 300 seconds after issuance. Upload asset links remain public and permanent; this timestamp does not expire those URLs.
14207
+ */
14208
+ expires_at: string;
14209
+ }>;
14210
+ };
14188
14211
  /**
14189
14212
  * Receipt confirming permanent removal of a previously deleted library.
14190
14213
  */
@@ -14344,7 +14367,7 @@ export type MediaAsset = {
14344
14367
  */
14345
14368
  url: string;
14346
14369
  /**
14347
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
14370
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
14348
14371
  */
14349
14372
  secure_url: string;
14350
14373
  /**
@@ -14567,7 +14590,7 @@ export type MediaJob = {
14567
14590
  */
14568
14591
  library_id: MediaLibraryId;
14569
14592
  /**
14570
- * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets. reprocess starts fenced understanding Workflows, retrying only retryable failed steps; kinds narrows the selection.
14593
+ * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets. reprocess starts fenced understanding Workflows for retryable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported and permanent steps remain unchanged.
14571
14594
  */
14572
14595
  action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess';
14573
14596
  /**
@@ -14647,11 +14670,11 @@ export type MediaBatchAction = {
14647
14670
  action: 'delete';
14648
14671
  } | {
14649
14672
  /**
14650
- * reprocess retries only retryable failed steps; kinds narrows the selection.
14673
+ * reprocess retries recoverable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported, permanent and completed steps remain unchanged.
14651
14674
  */
14652
14675
  action: 'reprocess';
14653
14676
  /**
14654
- * Optional subset of failed processing kinds to inspect. Only retryable failed steps run; unsupported, permanent and completed steps remain unchanged. Omit to inspect all failed steps.
14677
+ * Optional subset of processing kinds to inspect. Only retryable failed steps and legacy source-size unsupported steps run. Other unsupported, permanent and completed steps remain unchanged. Omit to inspect all recoverable steps.
14655
14678
  */
14656
14679
  kinds?: Array<MediaProcessingKind>;
14657
14680
  };
@@ -25381,7 +25404,7 @@ export type KnowledgeKnowledgeModels = {
25381
25404
  */
25382
25405
  query_rewrite: string;
25383
25406
  /**
25384
- * Extracts text from scanned PDF pages. Default: glm-ocr, falling back to qwen3.8-flash. A custom model precedes the platform defaults.
25407
+ * Extracts text from scanned PDF pages through the OCR API. Default: qwen-vl-ocr-2025-11-20, falling back to glm-ocr and qwen3.8-flash. A custom model precedes these defaults. OCR is billed by pages processed.
25385
25408
  */
25386
25409
  ocr: string;
25387
25410
  /**
@@ -25390,14 +25413,9 @@ export type KnowledgeKnowledgeModels = {
25390
25413
  vision: string;
25391
25414
  };
25392
25415
  /**
25393
- * auto resolves to static with 800 estimated tokens and 400 overlap tokens. Unlike OpenAI vector stores, token counts are estimates; each Han character counts as one, and other whitespace-delimited words count as their UTF-16 length divided by four, rounded up.
25416
+ * Native attachment strategy. auto uses static chunks of 800 estimated tokens with 400 overlap; static supplies explicit chunk sizes; hierarchical indexes child chunks and supplies bounded parent context. Existing attachments are reused unchanged; remove and reattach a file to change its strategy.
25394
25417
  */
25395
- export type KnowledgeChunkingInput = {
25396
- /**
25397
- * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
25398
- */
25399
- type: 'auto';
25400
- } | KnowledgeStaticChunking;
25418
+ export type KnowledgeNativeChunkingInput = KnowledgeChunkingInput | KnowledgeHierarchicalChunking;
25401
25419
  /**
25402
25420
  * Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400.
25403
25421
  */
@@ -25415,7 +25433,7 @@ export type KnowledgeKnowledgeModelsInput = {
25415
25433
  */
25416
25434
  query_rewrite?: string | null;
25417
25435
  /**
25418
- * Scanned PDF text extraction model; requires mistral.ocr or pdf_input capability. null restores glm-ocr. The preference leads the fallback chain glm-ocr, qwen3.8-flash with duplicates removed.
25436
+ * Scanned PDF text extraction model; requires mistral.ocr or pdf_input capability. null restores qwen-vl-ocr-2025-11-20. The preference leads the OCR API fallback chain qwen-vl-ocr-2025-11-20, glm-ocr, qwen3.8-flash with duplicates removed.
25419
25437
  */
25420
25438
  ocr?: string | null;
25421
25439
  /**
@@ -25452,6 +25470,10 @@ export type KnowledgeNativeSearchResult = {
25452
25470
  * Extracted text of the matched chunk, which may overlap neighboring chunks.
25453
25471
  */
25454
25472
  text: string;
25473
+ /**
25474
+ * Optional source image File ID for this matched chunk. Use the File service to read the image; absent for chunks without an image source and omitted by the OpenAI-compatible URL.
25475
+ */
25476
+ readonly image_file_id?: string;
25455
25477
  /**
25456
25478
  * Resource ID.
25457
25479
  */
@@ -25515,14 +25537,9 @@ export type KnowledgeFilter = {
25515
25537
  filters: Array<KnowledgeFilter>;
25516
25538
  };
25517
25539
  /**
25518
- * Stored chunking strategy for this attachment; auto input is returned as static settings.
25540
+ * Native stored strategy, including hierarchical parent and child settings. auto input resolves to static; the OpenAI-compatible URL projects hierarchical as other.
25519
25541
  */
25520
- export type KnowledgeChunking = KnowledgeStaticChunking | {
25521
- /**
25522
- * other identifies a stored strategy whose chunk-size settings are unavailable.
25523
- */
25524
- type: 'other';
25525
- };
25542
+ export type KnowledgeNativeChunking = KnowledgeChunking | KnowledgeHierarchicalChunking;
25526
25543
  /**
25527
25544
  * File attributes used by search filters. Up to 16 keys of 64 characters; string values up to 512 characters.
25528
25545
  */
@@ -25646,7 +25663,7 @@ export type MediaMediaModels = {
25646
25663
  */
25647
25664
  embedding: string;
25648
25665
  /**
25649
- * Model call ID for speech transcription.
25666
+ * Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
25650
25667
  */
25651
25668
  transcription: string;
25652
25669
  /**
@@ -25657,6 +25674,10 @@ export type MediaMediaModels = {
25657
25674
  * Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
25658
25675
  */
25659
25676
  readonly reference_transcription: string;
25677
+ /**
25678
+ * Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges.
25679
+ */
25680
+ readonly audio: string;
25660
25681
  };
25661
25682
  /**
25662
25683
  * Identifier of a library belonging to the caller.
@@ -25817,7 +25838,7 @@ export type MediaCloudinaryResource = {
25817
25838
  */
25818
25839
  url: string;
25819
25840
  /**
25820
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
25841
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
25821
25842
  */
25822
25843
  secure_url: string;
25823
25844
  /**
@@ -25853,13 +25874,13 @@ export type MediaChunkComplete = MediaCloudinaryResource & {
25853
25874
  done: true;
25854
25875
  };
25855
25876
  /**
25856
- * Per-task processing progress and its aggregate state for the asset.
25877
+ * Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
25857
25878
  */
25858
25879
  export type MediaProcessing = {
25859
25880
  /**
25860
- * Current understanding stage: probe, frames, shots, visual, transcript, transcript_reference, transcript_correction, overview, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
25881
+ * Current understanding stage: probe, frames, shots, visual, transcript, transcript_reference, transcript_correction, audio_profile, overview, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
25861
25882
  */
25862
- readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'overview' | 'embedding' | 'finalize' | null;
25883
+ readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
25863
25884
  state: MediaProcessingState;
25864
25885
  /**
25865
25886
  * Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
@@ -25926,7 +25947,7 @@ export type MediaUnderstanding = {
25926
25947
  */
25927
25948
  asset_version: number;
25928
25949
  /**
25929
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment.
25950
+ * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
25930
25951
  */
25931
25952
  kind: MediaUnderstandingKind;
25932
25953
  /**
@@ -25950,7 +25971,7 @@ export type MediaUnderstanding = {
25950
25971
  */
25951
25972
  content: string | null;
25952
25973
  /**
25953
- * Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape.
25974
+ * Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape. Transcript segments may contain speaker (a diarization label, not a verified identity), words (text, start_ms and end_ms in source-media milliseconds) and producer (the actual fallback model when different from the record producer). Overview data contains chapters (first_shot, title, summary, start_ms, end_ms), iab (tier1, optional tier2, confidence from 0 to 1), and location (an unverified place guess or null); content is the full-video summary. Audio data contains segments (start_s and end_s in source-media seconds; type is speech, music, ambient or silence), has_music, genre, mood, bpm_estimate (nullable), bpm_is_estimate=true and analyzed_ranges (start_s, end_s in seconds). Genre and mood are nullable model labels. Audio understanding samples only the first 120 seconds in at most three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate, not an exact tempo; has_music=false only means no music was detected within analyzed_ranges.
25954
25975
  */
25955
25976
  data: unknown | null;
25956
25977
  /**
@@ -26126,7 +26147,7 @@ export type MediaSearchAsset = {
26126
26147
  */
26127
26148
  url: string;
26128
26149
  /**
26129
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
26150
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
26130
26151
  */
26131
26152
  secure_url: string;
26132
26153
  /**
@@ -30678,23 +30699,39 @@ export type CutMarker = {
30678
30699
  */
30679
30700
  label: string;
30680
30701
  };
30681
- export type KnowledgeStaticChunking = {
30702
+ /**
30703
+ * auto resolves to static with 800 estimated tokens and 400 overlap tokens. Unlike OpenAI vector stores, token counts are estimates; each Han character counts as one, and other whitespace-delimited words count as their UTF-16 length divided by four, rounded up.
30704
+ */
30705
+ export type KnowledgeChunkingInput = {
30682
30706
  /**
30683
- * static selects explicit chunk-size and overlap settings.
30707
+ * auto uses the default static chunk size of 800 estimated tokens with 400 overlap tokens.
30684
30708
  */
30685
- type: 'static';
30709
+ type: 'auto';
30710
+ } | KnowledgeStaticChunking;
30711
+ /**
30712
+ * Native strategy that indexes small child chunks and returns bounded parent context for retrieval. Unlike OpenAI vector stores, this strategy is available only through /knowledge/v1; compatible writes reject it and compatible reads project its type as other.
30713
+ */
30714
+ export type KnowledgeHierarchicalChunking = {
30686
30715
  /**
30687
- * Chunk-size and overlap limits in estimated tokens.
30716
+ * hierarchical selects smaller child chunks for matching and larger parent chunks for context.
30688
30717
  */
30689
- static: {
30718
+ type: 'hierarchical';
30719
+ /**
30720
+ * Required parent, child and overlap sizes in estimated tokens. All three values must be integers.
30721
+ */
30722
+ hierarchical: {
30690
30723
  /**
30691
- * Estimated tokens per chunk.
30724
+ * Maximum estimated tokens per parent chunk, from 101 through 4096; must exceed child_max_tokens.
30692
30725
  */
30693
- max_chunk_size_tokens: number;
30726
+ parent_max_tokens: number;
30694
30727
  /**
30695
- * Must not exceed half of max_chunk_size_tokens.
30728
+ * Maximum estimated tokens per child chunk, at least 100 and strictly smaller than parent_max_tokens.
30696
30729
  */
30697
- chunk_overlap_tokens: number;
30730
+ child_max_tokens: number;
30731
+ /**
30732
+ * Estimated tokens shared by adjacent children, from zero through floor(child_max_tokens / 2).
30733
+ */
30734
+ child_overlap_tokens: number;
30698
30735
  };
30699
30736
  };
30700
30737
  /**
@@ -30734,6 +30771,15 @@ export type KnowledgeSearchExplain = {
30734
30771
  */
30735
30772
  matched_terms: Array<string>;
30736
30773
  };
30774
+ /**
30775
+ * Stored chunking strategy for this attachment; auto input is returned as static settings.
30776
+ */
30777
+ export type KnowledgeChunking = KnowledgeStaticChunking | {
30778
+ /**
30779
+ * other identifies a stored strategy whose chunk-size settings are unavailable.
30780
+ */
30781
+ type: 'other';
30782
+ };
30737
30783
  /**
30738
30784
  * Aggregate processing state across the asset processing tasks.
30739
30785
  */
@@ -30799,9 +30845,9 @@ export type MediaTranscriptCorrection = {
30799
30845
  */
30800
30846
  export type MediaUnderstandingId = string;
30801
30847
  /**
30802
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment.
30848
+ * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
30803
30849
  */
30804
- export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'embedding';
30850
+ export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
30805
30851
  /**
30806
30852
  * Time range within the source media, expressed in milliseconds.
30807
30853
  */
@@ -31727,6 +31773,25 @@ export type CutJoinEffect = {
31727
31773
  */
31728
31774
  radius?: number;
31729
31775
  };
31776
+ export type KnowledgeStaticChunking = {
31777
+ /**
31778
+ * static selects explicit chunk-size and overlap settings.
31779
+ */
31780
+ type: 'static';
31781
+ /**
31782
+ * Chunk-size and overlap limits in estimated tokens.
31783
+ */
31784
+ static: {
31785
+ /**
31786
+ * Estimated tokens per chunk.
31787
+ */
31788
+ max_chunk_size_tokens: number;
31789
+ /**
31790
+ * Must not exceed half of max_chunk_size_tokens.
31791
+ */
31792
+ chunk_overlap_tokens: number;
31793
+ };
31794
+ };
31730
31795
  export type MediaTranscriptEdit = {
31731
31796
  /**
31732
31797
  * Original literal text replaced by this accepted edit.
@@ -32329,6 +32394,28 @@ export type AutomationJsonValueWritable = null | string | number | boolean | Aut
32329
32394
  export type AutomationJsonObjectWritable = {
32330
32395
  [key: string]: AutomationJsonValueWritable;
32331
32396
  };
32397
+ export type KnowledgeNativeSearchPageWritable = {
32398
+ /**
32399
+ * Object discriminator; vector_store.search_results.page identifies a search result page.
32400
+ */
32401
+ object: 'vector_store.search_results.page';
32402
+ /**
32403
+ * The queries used for retrieval, one per input query; rewritten when rewrite_query is true, otherwise the input as sent.
32404
+ */
32405
+ search_query: Array<string>;
32406
+ /**
32407
+ * One result per matched chunk; the same file_id can occur more than once.
32408
+ */
32409
+ data: Array<KnowledgeNativeSearchResultWritable>;
32410
+ /**
32411
+ * True when filtered chunks exceed max_num_results; next_page remains null.
32412
+ */
32413
+ has_more: boolean;
32414
+ /**
32415
+ * Always null; no next search page.
32416
+ */
32417
+ next_page: null;
32418
+ };
32332
32419
  /**
32333
32420
  * A caller-owned media library with lifecycle, usage, understanding settings and model selections.
32334
32421
  */
@@ -32531,7 +32618,7 @@ export type MediaAssetWritable = {
32531
32618
  */
32532
32619
  url: string;
32533
32620
  /**
32534
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
32621
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
32535
32622
  */
32536
32623
  secure_url: string;
32537
32624
  /**
@@ -32721,6 +32808,58 @@ export type AgentManaged193Writable = {
32721
32808
  export type AgentManaged143Writable = {
32722
32809
  [key: string]: string;
32723
32810
  };
32811
+ export type KnowledgeNativeSearchResultWritable = {
32812
+ /**
32813
+ * Resource ID.
32814
+ */
32815
+ file_id: string;
32816
+ /**
32817
+ * Original source filename for the matched file.
32818
+ */
32819
+ filename: string;
32820
+ /**
32821
+ * Relevance ranking score for this chunk, clamped to the range 0 to 1; not a probability.
32822
+ */
32823
+ score: number;
32824
+ /**
32825
+ * Current file attributes used for filtering; null when unset.
32826
+ */
32827
+ attributes: KnowledgeAttributes | null;
32828
+ /**
32829
+ * Matched chunk text and its source coordinates; one chunk per native result.
32830
+ */
32831
+ content: Array<{
32832
+ /**
32833
+ * text identifies an extracted text chunk.
32834
+ */
32835
+ type: 'text';
32836
+ /**
32837
+ * Extracted text of the matched chunk, which may overlap neighboring chunks.
32838
+ */
32839
+ text: string;
32840
+ /**
32841
+ * Resource ID.
32842
+ */
32843
+ chunk_id?: string;
32844
+ /**
32845
+ * One-based source page containing the start of this chunk; null when no page mapping is available.
32846
+ */
32847
+ page?: number | null;
32848
+ /**
32849
+ * Start and end offsets in UTF-16 code units.
32850
+ */
32851
+ span?: [
32852
+ number,
32853
+ number
32854
+ ];
32855
+ }>;
32856
+ /**
32857
+ * Native search explanation, included only when praxis.explain is requested.
32858
+ */
32859
+ praxis?: {
32860
+ explain: KnowledgeSearchExplain;
32861
+ };
32862
+ };
32724
32863
  /**
32725
32864
  * Resolved model call IDs for vision, embedding, timestamped transcription, reference transcription and correction.
32726
32865
  */
@@ -32734,7 +32873,7 @@ export type MediaMediaModelsWritable = {
32734
32873
  */
32735
32874
  embedding: string;
32736
32875
  /**
32737
- * Model call ID for speech transcription.
32876
+ * Model call ID for speech transcription. Defaults to fun-asr; failed default ASR requests fall back to whisper-large-v3-turbo. Speaker and word availability depend on the actual producer.
32738
32877
  */
32739
32878
  transcription: string;
32740
32879
  };
@@ -32855,7 +32994,7 @@ export type MediaCloudinaryResourceWritable = {
32855
32994
  */
32856
32995
  url: string;
32857
32996
  /**
32858
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
32997
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
32859
32998
  */
32860
32999
  secure_url: string;
32861
33000
  /**
@@ -32878,7 +33017,7 @@ export type MediaChunkCompleteWritable = MediaCloudinaryResourceWritable & {
32878
33017
  done: true;
32879
33018
  };
32880
33019
  /**
32881
- * Per-task processing progress and its aggregate state for the asset.
33020
+ * Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video sources of 25 MB or more and audio-only sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
32882
33021
  */
32883
33022
  export type MediaProcessingWritable = {
32884
33023
  state: MediaProcessingState;
@@ -32910,7 +33049,7 @@ export type MediaUnderstandingWritable = {
32910
33049
  */
32911
33050
  asset_version: number;
32912
33051
  /**
32913
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment.
33052
+ * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
32914
33053
  */
32915
33054
  kind: MediaUnderstandingKind;
32916
33055
  /**
@@ -32934,7 +33073,7 @@ export type MediaUnderstandingWritable = {
32934
33073
  */
32935
33074
  content: string | null;
32936
33075
  /**
32937
- * Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape.
33076
+ * Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape. Transcript segments may contain speaker (a diarization label, not a verified identity), words (text, start_ms and end_ms in source-media milliseconds) and producer (the actual fallback model when different from the record producer). Overview data contains chapters (first_shot, title, summary, start_ms, end_ms), iab (tier1, optional tier2, confidence from 0 to 1), and location (an unverified place guess or null); content is the full-video summary. Audio data contains segments (start_s and end_s in source-media seconds; type is speech, music, ambient or silence), has_music, genre, mood, bpm_estimate (nullable), bpm_is_estimate=true and analyzed_ranges (start_s, end_s in seconds). Genre and mood are nullable model labels. Audio understanding samples only the first 120 seconds in at most three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate, not an exact tempo; has_music=false only means no music was detected within analyzed_ranges.
32938
33077
  */
32939
33078
  data: unknown | null;
32940
33079
  /**
@@ -33080,7 +33219,7 @@ export type MediaSearchAssetWritable = {
33080
33219
  */
33081
33220
  url: string;
33082
33221
  /**
33083
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
33222
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
33084
33223
  */
33085
33224
  secure_url: string;
33086
33225
  /**
@@ -45339,31 +45478,29 @@ export type CreateSystemoneResponse = CreateSystemoneResponses[keyof CreateSyste
45339
45478
  export type CreateAudioTranscriptionData = {
45340
45479
  body: {
45341
45480
  /**
45342
- * Transcription model id, for example `whisper-large-v3-turbo` or `qwen3-asr-flash`; list candidates with listModels?type=transcription. Router support (supported): Verified to take effect.
45481
+ * Model catalog identifier declaring openai.audio.transcriptions; use it unchanged, including any creator prefix.
45343
45482
  */
45344
45483
  model: string;
45345
45484
  /**
45346
- * Audio file to transcribe, uploaded as multipart/form-data. Router support (supported): Verified to take effect.
45485
+ * Audio bytes uploaded as a multipart file; supported formats and input limits depend on the selected model.
45347
45486
  */
45348
45487
  file: Blob | File;
45349
45488
  /**
45350
- * Language of the audio as an ISO-639-1 code such as `en` or `zh`. Router support (partial): Both models accept ISO language codes. qwen3-asr-flash may translate output to that language; whisper-large-v3-turbo treats it as an input hint. Non-ISO names may return 502.
45489
+ * Source language code when known; omit to let the model detect the language.
45351
45490
  */
45352
45491
  language?: string;
45353
45492
  /**
45354
- * Text that primes the model with vocabulary or context. Router support (partial): Vocabulary hints work on whisper-large-v3-turbo only; qwen3-asr-flash returns 400.
45493
+ * Optional vocabulary or contextual guidance for recognizing the audio; support depends on the selected model.
45355
45494
  */
45356
45495
  prompt?: string;
45357
45496
  /**
45358
- * Format of the response body. `json` and `text` are the commonly supported formats. Router support (partial): json/text work on both; verbose_json works only on whisper-large-v3-turbo. srt/vtt return 400.
45497
+ * Output format: json returns text in JSON; text returns plain text; verbose_json includes requested timestamps; diarized_json includes speaker-labelled segments when supported. Defaults to json.
45359
45498
  */
45360
- response_format?: 'json' | 'text' | 'verbose_json';
45499
+ response_format?: 'json' | 'text' | 'verbose_json' | 'diarized_json';
45361
45500
  /**
45362
- * Timestamp levels to include with `verbose_json`; only `segment` exists in this schema. Router support (partial): Only whisper-large-v3-turbo supports segment with verbose_json. word returns 400; qwen3-asr-flash does not support timestamps.
45501
+ * Timestamp levels to request as repeated multipart fields: word returns per-word times; segment returns segment times. Omit for the model default. Use verbose_json, or diarized_json on supporting models.
45363
45502
  */
45364
- 'timestamp_granularities[]'?: [
45365
- 'segment'
45366
- ];
45503
+ 'timestamp_granularities[]'?: Array<'word' | 'segment'>;
45367
45504
  /**
45368
45505
  * Both whisper-large-v3-turbo and qwen3-asr-flash return 400.
45369
45506
  */
@@ -45375,11 +45512,11 @@ export type CreateAudioTranscriptionData = {
45375
45512
  };
45376
45513
  export type CreateAudioTranscriptionErrors = {
45377
45514
  /**
45378
- * Unsupported or unrepresentable parameter.
45515
+ * A field
45379
45516
  */
45380
45517
  400: unknown;
45381
45518
  /**
45382
- * No eligible model route.
45519
+ * No provider route supports this request; select an available model and its declared transcription features.
45383
45520
  */
45384
45521
  503: unknown;
45385
45522
  };
@@ -45389,58 +45526,79 @@ export type CreateAudioTranscriptionResponses = {
45389
45526
  */
45390
45527
  200: {
45391
45528
  /**
45392
- * The transcribed text.
45529
+ * Recognized speech text in the original language.
45393
45530
  */
45394
45531
  text: string;
45395
45532
  /**
45396
- * Task performed; always `transcribe`.
45533
+ * transcribe identifies speech-to-text transcription.
45397
45534
  */
45398
45535
  task?: 'transcribe';
45399
45536
  /**
45400
- * Language of the audio as detected or as requested.
45537
+ * Detected or requested source language code.
45401
45538
  */
45402
45539
  language?: string;
45403
45540
  /**
45404
- * Duration of the audio in seconds.
45541
+ * Audio duration in seconds when provided by the model.
45405
45542
  */
45406
45543
  duration?: number;
45407
45544
  /**
45408
- * Segments with timestamps, returned with `verbose_json` on models that support it.
45545
+ * Time-aligned speech segments when returned by the selected model and response format.
45409
45546
  */
45410
45547
  segments?: Array<{
45411
45548
  /**
45412
- * Zero-based index of the segment.
45549
+ * Segment identifier within this transcription response.
45413
45550
  */
45414
45551
  id: number;
45415
45552
  /**
45416
- * Start time of the segment in seconds.
45553
+ * Inclusive start time in seconds from the beginning of the audio.
45417
45554
  */
45418
45555
  start: number;
45419
45556
  /**
45420
- * End time of the segment in seconds.
45557
+ * Exclusive end time in seconds from the beginning of the audio.
45421
45558
  */
45422
45559
  end: number;
45423
45560
  /**
45424
- * The transcribed text.
45561
+ * Recognized speech text in the original language.
45425
45562
  */
45426
45563
  text: string;
45427
45564
  /**
45428
- * Sampling temperature used for the segment.
45565
+ * Speaker label in diarized_json when supported; labels distinguish voices and are not verified identities.
45566
+ */
45567
+ speaker?: string;
45568
+ /**
45569
+ * Decoding temperature reported by the transcription model.
45429
45570
  */
45430
45571
  temperature?: number;
45431
45572
  /**
45432
- * Average log probability of the tokens of the segment; low values mean low confidence.
45573
+ * Average segment token log probability when provided.
45433
45574
  */
45434
45575
  avg_logprob?: number;
45435
45576
  /**
45436
- * Gzip compression ratio of the segment text; high values indicate repetitive output.
45577
+ * Text compression ratio reported for this segment.
45437
45578
  */
45438
45579
  compression_ratio?: number;
45439
45580
  /**
45440
- * Probability that the segment contains no speech.
45581
+ * Probability of no speech reported for this segment.
45441
45582
  */
45442
45583
  no_speech_prob?: number;
45443
45584
  }>;
45585
+ /**
45586
+ * Per-word source-audio timestamps when word granularity is requested and supported.
45587
+ */
45588
+ words?: Array<{
45589
+ /**
45590
+ * Recognized word text in its original language.
45591
+ */
45592
+ word: string;
45593
+ /**
45594
+ * Inclusive word start in seconds from the beginning of the audio.
45595
+ */
45596
+ start: number;
45597
+ /**
45598
+ * Exclusive word end in seconds from the beginning of the audio.
45599
+ */
45600
+ end: number;
45601
+ }>;
45444
45602
  };
45445
45603
  };
45446
45604
  export type CreateAudioTranscriptionResponse = CreateAudioTranscriptionResponses[keyof CreateAudioTranscriptionResponses];
@@ -71467,7 +71625,7 @@ export type KnowledgeListFilesResponses = {
71467
71625
  };
71468
71626
  export type KnowledgeListFilesResponse = KnowledgeListFilesResponses[keyof KnowledgeListFilesResponses];
71469
71627
  export type KnowledgeAttachFileData = {
71470
- body: KnowledgeAttachFile;
71628
+ body: KnowledgeNativeAttachFile;
71471
71629
  path: {
71472
71630
  /**
71473
71631
  * Resource ID.
@@ -71768,7 +71926,7 @@ export type KnowledgeRetrieveFileContentResponses = {
71768
71926
  };
71769
71927
  export type KnowledgeRetrieveFileContentResponse = KnowledgeRetrieveFileContentResponses[keyof KnowledgeRetrieveFileContentResponses];
71770
71928
  export type KnowledgeCreateFileBatchData = {
71771
- body: KnowledgeCreateBatch;
71929
+ body: KnowledgeNativeCreateBatch;
71772
71930
  path: {
71773
71931
  /**
71774
71932
  * Resource ID.
@@ -72572,6 +72730,80 @@ export type MediaCreateLibraryResponses = {
72572
72730
  200: MediaLibrary;
72573
72731
  };
72574
72732
  export type MediaCreateLibraryResponse = MediaCreateLibraryResponses[keyof MediaCreateLibraryResponses];
72733
+ export type MediaCreateFrameUrlsData = {
72734
+ body: {
72735
+ /**
72736
+ * One to twenty timestamps in microseconds from the start of the video. Each must be a nonnegative safe integer strictly below the video duration; order and duplicates are preserved.
72737
+ */
72738
+ at_micros: Array<number>;
72739
+ /**
72740
+ * Maximum JPEG width in pixels: 160 is a small thumbnail, 320 a preview and 640 a larger preview. Defaults to 640; larger widths are unavailable.
72741
+ */
72742
+ width?: 160 | 320 | 640;
72743
+ };
72744
+ path: {
72745
+ /**
72746
+ * Library identifier returned by library creation or listing; must be accessible to the current credential.
72747
+ */
72748
+ library_id: string;
72749
+ /**
72750
+ * Video asset identifier returned by asset upload or listing in this library; read its duration before choosing timestamps.
72751
+ */
72752
+ asset_id: string;
72753
+ };
72754
+ query?: never;
72755
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/frames';
72756
+ };
72757
+ export type MediaCreateFrameUrlsErrors = {
72758
+ /**
72759
+ * INVALID_PARAMS: supply 1–20 nonnegative integer timestamps below video duration and width 160, 320 or 640; images and audio cannot produce video frames.
72760
+ */
72761
+ 400: MediaMediaError;
72762
+ /**
72763
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
72764
+ */
72765
+ 403: MediaMediaError;
72766
+ /**
72767
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
72768
+ */
72769
+ 404: MediaMediaError;
72770
+ /**
72771
+ * Request failed; see the error code reference.
72772
+ */
72773
+ 409: MediaMediaError;
72774
+ /**
72775
+ * The file exceeds an input limit; provide a smaller source file.
72776
+ */
72777
+ 413: MediaMediaError;
72778
+ /**
72779
+ * This media format is unsupported; provide a supported format.
72780
+ */
72781
+ 415: MediaMediaError;
72782
+ /**
72783
+ * A rate limit was reached; wait before retrying.
72784
+ */
72785
+ 429: MediaMediaError;
72786
+ /**
72787
+ * The requested operation is unsupported; choose a supported method.
72788
+ */
72789
+ 501: MediaMediaError;
72790
+ /**
72791
+ * Request failed; see the error code reference.
72792
+ */
72793
+ 502: MediaMediaError;
72794
+ /**
72795
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
72796
+ */
72797
+ 503: MediaMediaError;
72798
+ };
72799
+ export type MediaCreateFrameUrlsError = MediaCreateFrameUrlsErrors[keyof MediaCreateFrameUrlsErrors];
72800
+ export type MediaCreateFrameUrlsResponses = {
72801
+ /**
72802
+ * Successful response.
72803
+ */
72804
+ 200: MediaFrameUrls;
72805
+ };
72806
+ export type MediaCreateFrameUrlsResponse = MediaCreateFrameUrlsResponses[keyof MediaCreateFrameUrlsResponses];
72575
72807
  export type MediaDeleteLibraryData = {
72576
72808
  body?: never;
72577
72809
  path: {
@@ -73016,7 +73248,7 @@ export type MediaUploadAssetData = {
73016
73248
  */
73017
73249
  display_name?: string;
73018
73250
  /**
73019
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73251
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
73020
73252
  */
73021
73253
  asset_folder?: string;
73022
73254
  /**
@@ -73058,7 +73290,7 @@ export type MediaUploadAssetData = {
73058
73290
  */
73059
73291
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
73060
73292
  /**
73061
- * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. Defaults to upload.
73293
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. New assets default to authenticated. Omitting type on overwrite preserves the current type. Unlike Cloudinary, public delivery requires explicit type=upload.
73062
73294
  */
73063
73295
  type?: MediaDeliveryType;
73064
73296
  };
@@ -73137,7 +73369,7 @@ export type MediaImportAssetData = {
73137
73369
  */
73138
73370
  body: {
73139
73371
  /**
73140
- * File ID to copy into this library instead of file bytes. This independent copy defaults to public delivery; set type=authenticated for private delivery. Deleting the source File does not delete this asset.
73372
+ * File ID to copy into this library instead of file bytes. This independent copy defaults to organization-private delivery (type=authenticated); explicitly set type=upload for public delivery. Deleting the source File does not delete this asset.
73141
73373
  */
73142
73374
  file_id: string;
73143
73375
  /**
@@ -73153,7 +73385,7 @@ export type MediaImportAssetData = {
73153
73385
  */
73154
73386
  display_name?: string;
73155
73387
  /**
73156
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73388
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
73157
73389
  */
73158
73390
  asset_folder?: string;
73159
73391
  /**
@@ -73195,7 +73427,7 @@ export type MediaImportAssetData = {
73195
73427
  */
73196
73428
  resource_type?: 'image' | 'video' | 'raw' | 'auto';
73197
73429
  /**
73198
- * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. Defaults to upload.
73430
+ * Asset delivery mode: upload is public; authenticated requires a signed URL or delivery token for originals and derivatives. private is unsupported. New assets default to authenticated. Omitting type on overwrite preserves the current type. Unlike Cloudinary, public delivery requires explicit type=upload.
73199
73431
  */
73200
73432
  type?: MediaDeliveryType;
73201
73433
  };
@@ -73398,7 +73630,7 @@ export type MediaUpdateAssetData = {
73398
73630
  */
73399
73631
  display_name?: string;
73400
73632
  /**
73401
- * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected.
73633
+ * Organizational folder path, separate from public_id. Empty selects the root; leading or trailing slashes, empty path segments, and . or .. segments are rejected. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
73402
73634
  */
73403
73635
  asset_folder?: string;
73404
73636
  /**
@@ -73481,7 +73713,7 @@ export type MediaReprocessAssetData = {
73481
73713
  */
73482
73714
  body: {
73483
73715
  /**
73484
- * Processing tasks to rerun. Omit to retry failed tasks only; explicit kinds rerun applicable ready, failed or unsupported tasks. Pending and running tasks are unchanged; an empty array does nothing.
73716
+ * Processing tasks to rerun. Omit to retry failed tasks and legacy source-size unsupported tasks; explicit kinds rerun applicable ready or failed tasks and recoverable source-size unsupported tasks. Other unsupported causes remain unchanged. Pending and running tasks are unchanged; an empty array does nothing.
73485
73717
  */
73486
73718
  kinds?: Array<MediaProcessingKind>;
73487
73719
  };
@@ -73566,9 +73798,9 @@ export type MediaListUnderstandingsData = {
73566
73798
  */
73567
73799
  include_superseded?: boolean;
73568
73800
  /**
73569
- * Return one output kind: caption is a visual description, tags are generated labels, ocr is visible text, transcript is speech, frame is a video shot, overview is a video summary, and embedding reports a failed embedding step.
73801
+ * Return one output kind: caption is a visual description, tags are generated labels, ocr is visible text, transcript is speech, frame is a video shot, overview is a video summary, audio is sampled audio understanding, and embedding reports a failed embedding step.
73570
73802
  */
73571
- kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'embedding';
73803
+ kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
73572
73804
  /**
73573
73805
  * Cursor from the previous next_cursor.
73574
73806
  */
@@ -73636,7 +73868,7 @@ export type MediaExpressionSearchData = {
73636
73868
  */
73637
73869
  body: {
73638
73870
  /**
73639
- * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial.
73871
+ * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters. has_music:true AND audio_genre:jazz AND audio_mood:calm selects current-version audio profiles with music and matching model labels; has_music:false applies only to sampled ranges, not the entire source. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial.
73640
73872
  */
73641
73873
  expression?: string;
73642
73874
  /**
@@ -74538,7 +74770,7 @@ export type MediaListUnderstandingsByLibraryData = {
74538
74770
  */
74539
74771
  folder?: string;
74540
74772
  /**
74541
- * Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, embedding. Omit or empty to include every kind.
74773
+ * Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.
74542
74774
  */
74543
74775
  kinds?: string;
74544
74776
  /**
@@ -77197,7 +77429,7 @@ export type TicketGetTicketsData = {
77197
77429
  */
77198
77430
  page_token?: string;
77199
77431
  /**
77200
- * Filter expression.
77432
+ * Filter expression using field:value qualifiers, such as is:open milestone:5.
77201
77433
  */
77202
77434
  filter?: string;
77203
77435
  };
@@ -79616,7 +79848,7 @@ export type TicketGetActivityData = {
79616
79848
  */
79617
79849
  page_token?: string;
79618
79850
  /**
79619
- * Filter expression.
79851
+ * Activity filter expression.
79620
79852
  */
79621
79853
  filter?: string;
79622
79854
  };