@osdk/api 2.60.0 → 2.61.0-main-34cb7e0f9aacae2172c7a172aaccdbd863c76bf4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @osdk/api
2
2
 
3
+ ## 2.61.0-main-34cb7e0f9aacae2172c7a172aaccdbd863c76bf4
4
+
5
+ ### Minor Changes
6
+
7
+ - 34cb7e0: Type the OCR and transcription language parameters on the experimental media transformation surface as the closed enums the platform actually declares, and export the encoding types that were previously unreachable.
8
+
9
+ These four parameters were previously `string`, so this narrows a shipped public type on the `@osdk/api/unstable` entrypoint. Existing call sites holding a `string` in those positions no longer compile, and a language the pinned platform SDK does not list must be cast until the pin moves.
10
+
3
11
  ## 2.60.0
4
12
 
5
13
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"MediaTransformation.js","names":["MediaTransformation","OcrOutputFormat","OcrLanguageOrScript","TranscribeOutputFormat","VlmPreprocessingConfig","AnnotateGeometry","ContrastType","ImageOperation","VideoOperation","AudioOperation","VideoToAudioOperation","AudioToTextOperation","EmailToTextOperation","EmailToAttachmentOperation","SpreadsheetToTextOperation","VideoToArchiveOperation","VideoToTextOperation","ImageToTextOperation","VideoToImageOperation","ImageToDocumentOperation","DicomToImageOperation","DocumentToDocumentOperation","DocumentToImageOperation","ImageToEmbeddingOperation","DocumentToTextOperation"],"sources":["MediaTransformation.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Just } from \"../aggregate/Just.js\";\n\n// ─── Top-level transformation ─────────────────────────────────────────────────\n\n/**\n * A media transformation request. The `$`-prefixed key selects the\n * transformation kind, and each variant requires specific encoding and\n * operation fields.\n *\n * @see {@link https://www.palantir.com/docs/foundry/api/v2/media-sets-v2-resources/media-sets/transform-media-item/ | Transform Media Item}\n * @experimental\n */\nexport interface MediaTransformationOptions {\n $image: {\n $encoding: ImageryEncoding;\n $operations: Array<ImageOperation>;\n };\n $video: { $encoding: VideoEncoding; $operation: VideoOperation };\n $audio: { $operation: AudioOperation };\n $emailToText: { $operation: EmailToTextOperation };\n $spreadsheetToText: { $operation: SpreadsheetToTextOperation };\n $videoToAudio: {\n $encoding: AudioEncoding;\n $operation: VideoToAudioOperation;\n };\n $audioToText: { $operation: AudioToTextOperation };\n $emailToAttachment: { $operation: EmailToAttachmentOperation };\n $videoToArchive: {\n $encoding: ArchiveEncoding;\n $operation: VideoToArchiveOperation;\n };\n $videoToText: { $operation: VideoToTextOperation };\n $imageToText: { $operation: ImageToTextOperation };\n $videoToImage: {\n $encoding: ImageryEncoding;\n $operation: VideoToImageOperation;\n };\n $imageToDocument: { $operation: ImageToDocumentOperation };\n $dicomToImage: {\n $encoding: ImageryEncoding;\n $operation: DicomToImageOperation;\n };\n $documentToDocument: {\n $encoding: DocumentEncoding;\n $operation: DocumentToDocumentOperation;\n };\n $documentToImage: {\n $encoding: ImageryEncoding;\n $operation: DocumentToImageOperation;\n };\n $imageToEmbedding: { $operation: ImageToEmbeddingOperation };\n $documentToText: { $operation: DocumentToTextOperation };\n}\n\n/**\n * @experimental\n */\nexport namespace MediaTransformation {\n export interface $image extends Just<\"$image\", MediaTransformationOptions> {}\n export interface $video extends Just<\"$video\", MediaTransformationOptions> {}\n export interface $audio extends Just<\"$audio\", MediaTransformationOptions> {}\n export interface $emailToText extends Just<\n \"$emailToText\",\n MediaTransformationOptions\n > {}\n export interface $spreadsheetToText extends Just<\n \"$spreadsheetToText\",\n MediaTransformationOptions\n > {}\n export interface $videoToAudio extends Just<\n \"$videoToAudio\",\n MediaTransformationOptions\n > {}\n export interface $audioToText extends Just<\n \"$audioToText\",\n MediaTransformationOptions\n > {}\n export interface $emailToAttachment extends Just<\n \"$emailToAttachment\",\n MediaTransformationOptions\n > {}\n export interface $videoToArchive extends Just<\n \"$videoToArchive\",\n MediaTransformationOptions\n > {}\n export interface $videoToText extends Just<\n \"$videoToText\",\n MediaTransformationOptions\n > {}\n export interface $imageToText extends Just<\n \"$imageToText\",\n MediaTransformationOptions\n > {}\n export interface $videoToImage extends Just<\n \"$videoToImage\",\n MediaTransformationOptions\n > {}\n export interface $imageToDocument extends Just<\n \"$imageToDocument\",\n MediaTransformationOptions\n > {}\n export interface $dicomToImage extends Just<\n \"$dicomToImage\",\n MediaTransformationOptions\n > {}\n export interface $documentToDocument extends Just<\n \"$documentToDocument\",\n MediaTransformationOptions\n > {}\n export interface $documentToImage extends Just<\n \"$documentToImage\",\n MediaTransformationOptions\n > {}\n export interface $imageToEmbedding extends Just<\n \"$imageToEmbedding\",\n MediaTransformationOptions\n > {}\n export interface $documentToText extends Just<\n \"$documentToText\",\n MediaTransformationOptions\n > {}\n}\n\n/**\n * @experimental\n */\nexport type MediaTransformation =\n | MediaTransformation.$image\n | MediaTransformation.$video\n | MediaTransformation.$audio\n | MediaTransformation.$emailToText\n | MediaTransformation.$spreadsheetToText\n | MediaTransformation.$videoToAudio\n | MediaTransformation.$audioToText\n | MediaTransformation.$emailToAttachment\n | MediaTransformation.$videoToArchive\n | MediaTransformation.$videoToText\n | MediaTransformation.$imageToText\n | MediaTransformation.$videoToImage\n | MediaTransformation.$imageToDocument\n | MediaTransformation.$dicomToImage\n | MediaTransformation.$documentToDocument\n | MediaTransformation.$documentToImage\n | MediaTransformation.$imageToEmbedding\n | MediaTransformation.$documentToText;\n\n// ─── Encoding types ───────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport type ImageryEncoding = \"jpg\" | \"png\" | \"tiff\" | \"webp\";\n\n/**\n * @experimental\n */\nexport type VideoEncoding = \"mp4\" | \"mov\" | \"mkv\" | \"ts\";\n\n/**\n * @experimental\n */\nexport type AudioEncoding =\n | \"mp3\"\n | \"ts\"\n | {\n $wav: {\n $sampleRate?: number;\n $audioChannelLayout?: { $numberOfChannels: number };\n };\n };\n\n/**\n * @experimental\n */\nexport type ArchiveEncoding = \"tar\";\n\n/**\n * @experimental\n */\nexport type DocumentEncoding = \"pdf\";\n\n// ─── Shared sub-types ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface PageRange {\n $startPageInclusive?: number;\n $endPageExclusive?: number;\n}\n\n/**\n * @experimental\n */\nexport interface OcrOutputFormatOptions {\n $hocr: {};\n $text: {};\n}\n\nexport namespace OcrOutputFormat {\n export interface $hocr extends Just<\"$hocr\", OcrOutputFormatOptions> {}\n export interface $text extends Just<\"$text\", OcrOutputFormatOptions> {}\n}\n\nexport type OcrOutputFormat = OcrOutputFormat.$hocr | OcrOutputFormat.$text;\n\n/**\n * @experimental\n */\nexport interface OcrLanguageOrScriptOptions {\n $language: string;\n $script: string;\n}\n\nexport namespace OcrLanguageOrScript {\n export interface $language extends Just<\n \"$language\",\n OcrLanguageOrScriptOptions\n > {}\n export interface $script extends Just<\n \"$script\",\n OcrLanguageOrScriptOptions\n > {}\n}\n\nexport type OcrLanguageOrScript =\n | OcrLanguageOrScript.$language\n | OcrLanguageOrScript.$script;\n\n/**\n * @experimental\n */\nexport interface OcrParameters {\n $outputFormat: OcrOutputFormat;\n $languages: Array<OcrLanguageOrScript>;\n}\n\n/**\n * @experimental\n */\nexport interface LayoutAwareExtractionParameters {\n $languages: Array<string>;\n}\n\n/**\n * @experimental\n */\nexport interface DocumentTextExtractionConfig {\n $format?: \"TEXT\" | \"MARKDOWN\" | \"HTML\";\n $mode?: \"AUTO\" | \"ELECTRONIC\" | \"SCAN\";\n $languages: Array<OcrLanguageOrScript>;\n}\n\n/**\n * @experimental\n */\nexport interface TranscribeOutputFormatOptions {\n $plainTextNoSegmentData: { $addTimestamps: boolean };\n $json: {};\n $pttml: {};\n}\n\nexport namespace TranscribeOutputFormat {\n export interface $plainTextNoSegmentData extends Just<\n \"$plainTextNoSegmentData\",\n TranscribeOutputFormatOptions\n > {}\n export interface $json extends Just<\"$json\", TranscribeOutputFormatOptions> {}\n export interface $pttml extends Just<\n \"$pttml\",\n TranscribeOutputFormatOptions\n > {}\n}\n\nexport type TranscribeOutputFormat =\n | TranscribeOutputFormat.$plainTextNoSegmentData\n | TranscribeOutputFormat.$json\n | TranscribeOutputFormat.$pttml;\n\n/**\n * @experimental\n */\nexport interface LlmSpec {\n $chat: {\n $modelLocator: string;\n $systemPrompt: string;\n $userPrompt: string;\n $maxTokens?: number;\n };\n}\n\n/**\n * @experimental\n */\nexport interface VlmPreprocessingConfigOptions {\n $layoutAware: {\n $transformationConfig: DocumentTextExtractionConfig;\n $cropConfig?: { $tablePrompt: string };\n };\n $extractText: DocumentTextExtractionConfig;\n}\n\nexport namespace VlmPreprocessingConfig {\n export interface $layoutAware extends Just<\n \"$layoutAware\",\n VlmPreprocessingConfigOptions\n > {}\n export interface $extractText extends Just<\n \"$extractText\",\n VlmPreprocessingConfigOptions\n > {}\n}\n\nexport type VlmPreprocessingConfig =\n | VlmPreprocessingConfig.$layoutAware\n | VlmPreprocessingConfig.$extractText;\n\n/**\n * @experimental\n */\nexport interface ImageSpec {\n $resizingMode: \"RESIZING\" | \"FIT_INTO_BOUNDING_BOX\";\n $height?: number;\n $width?: number;\n $mimeType: \"BMP\" | \"TIFF\" | \"NITF\" | \"JP2K\" | \"JPG\" | \"PNG\" | \"WEBP\";\n}\n\n/**\n * @experimental\n */\nexport interface Annotation {\n $geometry: AnnotateGeometry;\n $label?: string;\n $color?: Color;\n $thickness?: number;\n $fontSize?: number;\n}\n\n/**\n * @experimental\n */\nexport interface AnnotateGeometryOptions {\n $boundingBox: BoundingBox;\n}\n\nexport namespace AnnotateGeometry {\n export interface $boundingBox extends Just<\n \"$boundingBox\",\n AnnotateGeometryOptions\n > {}\n}\n\nexport type AnnotateGeometry = AnnotateGeometry.$boundingBox;\n\n/**\n * @experimental\n */\nexport interface BoundingBox {\n $left: number;\n $top: number;\n $width: number;\n $height: number;\n}\n\n/**\n * @experimental\n */\nexport interface Color {\n $r: number;\n $g: number;\n $b: number;\n $a?: number;\n}\n\n/**\n * @experimental\n */\nexport interface ContrastTypeOptions {\n $equalize: {};\n $rayleigh: { $sigma: number };\n $binarize: { $threshold?: number };\n}\n\nexport namespace ContrastType {\n export interface $equalize extends Just<\"$equalize\", ContrastTypeOptions> {}\n export interface $rayleigh extends Just<\"$rayleigh\", ContrastTypeOptions> {}\n export interface $binarize extends Just<\"$binarize\", ContrastTypeOptions> {}\n}\n\nexport type ContrastType =\n | ContrastType.$equalize\n | ContrastType.$rayleigh\n | ContrastType.$binarize;\n\n/**\n * @experimental\n */\nexport interface ImagePixelCoordinate {\n $x: number;\n $y: number;\n}\n\n/**\n * @experimental\n */\nexport type ImageRegionPolygon = Array<ImagePixelCoordinate>;\n\n// ─── Image operations ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface ImageOperationOptions {\n $resize: { $width?: number; $height?: number; $autoOrient?: boolean };\n $resizeToFitBoundingBox: { $width: number; $height: number };\n $rotate: { $angle: \"DEGREE_90\" | \"DEGREE_180\" | \"DEGREE_270\" };\n $crop: {\n $xOffset: number;\n $yOffset: number;\n $width: number;\n $height: number;\n };\n $grayscale: {};\n $tile: { $zoom: number; $x: number; $y: number };\n $annotate: { $annotations: Array<Annotation> };\n $contrast: { $contrastType: ContrastType };\n $encrypt: {\n $polygons: Array<ImageRegionPolygon>;\n $cipherLicenseRid: string;\n };\n $decrypt: {\n $polygons: Array<ImageRegionPolygon>;\n $cipherLicenseRid: string;\n };\n}\n\n/**\n * @experimental\n */\nexport namespace ImageOperation {\n export interface $resize extends Just<\"$resize\", ImageOperationOptions> {}\n export interface $resizeToFitBoundingBox extends Just<\n \"$resizeToFitBoundingBox\",\n ImageOperationOptions\n > {}\n export interface $rotate extends Just<\"$rotate\", ImageOperationOptions> {}\n export interface $crop extends Just<\"$crop\", ImageOperationOptions> {}\n export interface $grayscale extends Just<\n \"$grayscale\",\n ImageOperationOptions\n > {}\n export interface $tile extends Just<\"$tile\", ImageOperationOptions> {}\n export interface $annotate extends Just<\"$annotate\", ImageOperationOptions> {}\n export interface $contrast extends Just<\"$contrast\", ImageOperationOptions> {}\n export interface $encrypt extends Just<\"$encrypt\", ImageOperationOptions> {}\n export interface $decrypt extends Just<\"$decrypt\", ImageOperationOptions> {}\n}\n\n/**\n * @experimental\n */\nexport type ImageOperation =\n | ImageOperation.$resize\n | ImageOperation.$resizeToFitBoundingBox\n | ImageOperation.$rotate\n | ImageOperation.$crop\n | ImageOperation.$grayscale\n | ImageOperation.$tile\n | ImageOperation.$annotate\n | ImageOperation.$contrast\n | ImageOperation.$encrypt\n | ImageOperation.$decrypt;\n\n// ─── Video operations ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface VideoOperationOptions {\n $transcode: {};\n $chunk: { $chunkDurationMilliseconds: number; $chunkIndex: number };\n}\n\n/**\n * @experimental\n */\nexport namespace VideoOperation {\n export interface $transcode extends Just<\n \"$transcode\",\n VideoOperationOptions\n > {}\n export interface $chunk extends Just<\"$chunk\", VideoOperationOptions> {}\n}\n\n/**\n * @experimental\n */\nexport type VideoOperation = VideoOperation.$transcode | VideoOperation.$chunk;\n\n// ─── Audio operations ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface AudioOperationOptions {\n $channel: { $encodeFormat: AudioEncoding; $channel: number };\n $chunk: {\n $encodeFormat: AudioEncoding;\n $chunkDurationMilliseconds: number;\n $chunkIndex: number;\n };\n $convert: { $encodeFormat: AudioEncoding };\n}\n\n/**\n * @experimental\n */\nexport namespace AudioOperation {\n export interface $channel extends Just<\"$channel\", AudioOperationOptions> {}\n export interface $chunk extends Just<\"$chunk\", AudioOperationOptions> {}\n export interface $convert extends Just<\"$convert\", AudioOperationOptions> {}\n}\n\n/**\n * @experimental\n */\nexport type AudioOperation =\n | AudioOperation.$channel\n | AudioOperation.$chunk\n | AudioOperation.$convert;\n\n// ─── Other operation types ────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface VideoToAudioOperationOptions {\n $extractAudio: {};\n}\n\nexport namespace VideoToAudioOperation {\n export interface $extractAudio extends Just<\n \"$extractAudio\",\n VideoToAudioOperationOptions\n > {}\n}\n\nexport type VideoToAudioOperation = VideoToAudioOperation.$extractAudio;\n\n/**\n * @experimental\n */\nexport interface AudioToTextOperationOptions {\n $transcribe: {\n $language?: string;\n $diarize?: boolean;\n $outputFormat?: TranscribeOutputFormat;\n $performanceMode?: \"MORE_ECONOMICAL\" | \"MORE_PERFORMANT\";\n };\n $waveform: { $peaksPerSecond: number };\n}\n\nexport namespace AudioToTextOperation {\n export interface $transcribe extends Just<\n \"$transcribe\",\n AudioToTextOperationOptions\n > {}\n export interface $waveform extends Just<\n \"$waveform\",\n AudioToTextOperationOptions\n > {}\n}\n\nexport type AudioToTextOperation =\n | AudioToTextOperation.$transcribe\n | AudioToTextOperation.$waveform;\n\n/**\n * @experimental\n */\nexport interface EmailToTextOperationOptions {\n $getEmailBody: { $outputFormat: \"TEXT\" | \"HTML\" };\n}\n\nexport namespace EmailToTextOperation {\n export interface $getEmailBody extends Just<\n \"$getEmailBody\",\n EmailToTextOperationOptions\n > {}\n}\n\nexport type EmailToTextOperation = EmailToTextOperation.$getEmailBody;\n\n/**\n * @experimental\n */\nexport interface EmailToAttachmentOperationOptions {\n $getEmailAttachment: { $mimeType: string; $attachmentIndex: number };\n}\n\nexport namespace EmailToAttachmentOperation {\n export interface $getEmailAttachment extends Just<\n \"$getEmailAttachment\",\n EmailToAttachmentOperationOptions\n > {}\n}\n\nexport type EmailToAttachmentOperation =\n EmailToAttachmentOperation.$getEmailAttachment;\n\n/**\n * @experimental\n */\nexport interface SpreadsheetToTextOperationOptions {\n $convertSheetToJson: { $sheetName: string };\n}\n\nexport namespace SpreadsheetToTextOperation {\n export interface $convertSheetToJson extends Just<\n \"$convertSheetToJson\",\n SpreadsheetToTextOperationOptions\n > {}\n}\n\nexport type SpreadsheetToTextOperation =\n SpreadsheetToTextOperation.$convertSheetToJson;\n\n/**\n * @experimental\n */\nexport interface VideoToArchiveOperationOptions {\n $extractSceneFrames: {\n $encoding: ImageryEncoding;\n $sceneScore?: \"MORE_SENSITIVE\" | \"STANDARD\" | \"LESS_SENSITIVE\";\n };\n}\n\nexport namespace VideoToArchiveOperation {\n export interface $extractSceneFrames extends Just<\n \"$extractSceneFrames\",\n VideoToArchiveOperationOptions\n > {}\n}\n\nexport type VideoToArchiveOperation =\n VideoToArchiveOperation.$extractSceneFrames;\n\n/**\n * @experimental\n */\nexport interface VideoToTextOperationOptions {\n $getTimestampsForSceneFrames: {\n $sceneScore?: \"MORE_SENSITIVE\" | \"STANDARD\" | \"LESS_SENSITIVE\";\n };\n}\n\nexport namespace VideoToTextOperation {\n export interface $getTimestampsForSceneFrames extends Just<\n \"$getTimestampsForSceneFrames\",\n VideoToTextOperationOptions\n > {}\n}\n\nexport type VideoToTextOperation =\n VideoToTextOperation.$getTimestampsForSceneFrames;\n\n/**\n * @experimental\n */\nexport interface ImageToTextOperationOptions {\n $extractLayoutAwareContent: {\n $parameters: LayoutAwareExtractionParameters;\n };\n $ocr: { $parameters: OcrParameters };\n}\n\nexport namespace ImageToTextOperation {\n export interface $extractLayoutAwareContent extends Just<\n \"$extractLayoutAwareContent\",\n ImageToTextOperationOptions\n > {}\n export interface $ocr extends Just<\"$ocr\", ImageToTextOperationOptions> {}\n}\n\nexport type ImageToTextOperation =\n | ImageToTextOperation.$extractLayoutAwareContent\n | ImageToTextOperation.$ocr;\n\n/**\n * @experimental\n */\nexport interface VideoToImageOperationOptions {\n $extractFirstFrame: { $height?: number; $width?: number };\n $extractFramesAtTimestamps: {\n $height?: number;\n $width?: number;\n $timestamp: number;\n };\n}\n\nexport namespace VideoToImageOperation {\n export interface $extractFirstFrame extends Just<\n \"$extractFirstFrame\",\n VideoToImageOperationOptions\n > {}\n export interface $extractFramesAtTimestamps extends Just<\n \"$extractFramesAtTimestamps\",\n VideoToImageOperationOptions\n > {}\n}\n\nexport type VideoToImageOperation =\n | VideoToImageOperation.$extractFirstFrame\n | VideoToImageOperation.$extractFramesAtTimestamps;\n\n/**\n * @experimental\n */\nexport interface ImageToDocumentOperationOptions {\n $createPdf: {};\n}\n\nexport namespace ImageToDocumentOperation {\n export interface $createPdf extends Just<\n \"$createPdf\",\n ImageToDocumentOperationOptions\n > {}\n}\n\nexport type ImageToDocumentOperation = ImageToDocumentOperation.$createPdf;\n\n/**\n * @experimental\n */\nexport interface DicomToImageOperationOptions {\n $renderImageLayer: {\n $layerNumber?: number;\n $height?: number;\n $width?: number;\n };\n}\n\nexport namespace DicomToImageOperation {\n export interface $renderImageLayer extends Just<\n \"$renderImageLayer\",\n DicomToImageOperationOptions\n > {}\n}\n\nexport type DicomToImageOperation = DicomToImageOperation.$renderImageLayer;\n\n/**\n * @experimental\n */\nexport interface DocumentToDocumentOperationOptions {\n $slicePdfRange: {\n $startPageInclusive: number;\n $endPageExclusive: number;\n $strictlyEnforceEndPage?: boolean;\n };\n $convertDocument: {};\n}\n\nexport namespace DocumentToDocumentOperation {\n export interface $slicePdfRange extends Just<\n \"$slicePdfRange\",\n DocumentToDocumentOperationOptions\n > {}\n export interface $convertDocument extends Just<\n \"$convertDocument\",\n DocumentToDocumentOperationOptions\n > {}\n}\n\nexport type DocumentToDocumentOperation =\n | DocumentToDocumentOperation.$slicePdfRange\n | DocumentToDocumentOperation.$convertDocument;\n\n/**\n * @experimental\n */\nexport interface DocumentToImageOperationOptions {\n $renderPage: { $pageNumber?: number; $height?: number; $width?: number };\n $renderPageToFitBoundingBox: {\n $pageNumber?: number;\n $width: number;\n $height: number;\n };\n}\n\nexport namespace DocumentToImageOperation {\n export interface $renderPage extends Just<\n \"$renderPage\",\n DocumentToImageOperationOptions\n > {}\n export interface $renderPageToFitBoundingBox extends Just<\n \"$renderPageToFitBoundingBox\",\n DocumentToImageOperationOptions\n > {}\n}\n\nexport type DocumentToImageOperation =\n | DocumentToImageOperation.$renderPage\n | DocumentToImageOperation.$renderPageToFitBoundingBox;\n\n/**\n * @experimental\n */\nexport interface ImageToEmbeddingOperationOptions {\n $generateEmbedding: { $modelId: string };\n}\n\nexport namespace ImageToEmbeddingOperation {\n export interface $generateEmbedding extends Just<\n \"$generateEmbedding\",\n ImageToEmbeddingOperationOptions\n > {}\n}\n\nexport type ImageToEmbeddingOperation =\n ImageToEmbeddingOperation.$generateEmbedding;\n\n/**\n * @experimental\n */\nexport interface DocumentToTextOperationOptions {\n $extractAllText: {};\n $extractTableOfContents: {};\n $getPdfPageDimensions: {};\n $extractFormFields: {};\n $extractUnstructuredTextFromPage: { $pageNumber: number };\n $extractTextFromPagesToArray: {\n $startPage?: number;\n $endPage?: number;\n };\n $ocrOnPage: {\n $pageNumber: number;\n $parameters: OcrParameters;\n };\n $ocrOnPages: {\n $pageNumber: number;\n $parameters: OcrParameters;\n };\n $extractLayoutAwareContent: {\n $parameters: LayoutAwareExtractionParameters;\n };\n $extractLayoutAwareTextV2: {\n $pageRange?: PageRange;\n $config: DocumentTextExtractionConfig;\n };\n $extractTextV2: {\n $pageRange?: PageRange;\n $config: DocumentTextExtractionConfig;\n };\n $extractVlmText: {\n $llmSpec: LlmSpec;\n $preprocessingConfiguration?: VlmPreprocessingConfig;\n $imageSpec?: ImageSpec;\n $outputFormat: \"TEXT\" | \"MARKDOWN\" | \"HTML\";\n $pageRange?: PageRange;\n };\n}\n\nexport namespace DocumentToTextOperation {\n export interface $extractAllText extends Just<\n \"$extractAllText\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractTableOfContents extends Just<\n \"$extractTableOfContents\",\n DocumentToTextOperationOptions\n > {}\n export interface $getPdfPageDimensions extends Just<\n \"$getPdfPageDimensions\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractFormFields extends Just<\n \"$extractFormFields\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractUnstructuredTextFromPage extends Just<\n \"$extractUnstructuredTextFromPage\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractTextFromPagesToArray extends Just<\n \"$extractTextFromPagesToArray\",\n DocumentToTextOperationOptions\n > {}\n export interface $ocrOnPage extends Just<\n \"$ocrOnPage\",\n DocumentToTextOperationOptions\n > {}\n export interface $ocrOnPages extends Just<\n \"$ocrOnPages\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractLayoutAwareContent extends Just<\n \"$extractLayoutAwareContent\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractLayoutAwareTextV2 extends Just<\n \"$extractLayoutAwareTextV2\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractTextV2 extends Just<\n \"$extractTextV2\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractVlmText extends Just<\n \"$extractVlmText\",\n DocumentToTextOperationOptions\n > {}\n}\n\nexport type DocumentToTextOperation =\n | DocumentToTextOperation.$extractAllText\n | DocumentToTextOperation.$extractTableOfContents\n | DocumentToTextOperation.$getPdfPageDimensions\n | DocumentToTextOperation.$extractFormFields\n | DocumentToTextOperation.$extractUnstructuredTextFromPage\n | DocumentToTextOperation.$extractTextFromPagesToArray\n | DocumentToTextOperation.$ocrOnPage\n | DocumentToTextOperation.$ocrOnPages\n | DocumentToTextOperation.$extractLayoutAwareContent\n | DocumentToTextOperation.$extractLayoutAwareTextV2\n | DocumentToTextOperation.$extractTextV2\n | DocumentToTextOperation.$extractVlmText;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA2CA;AACA;AACA;AAFA,WAGiBA,mBAAmB;AAkEpC;AACA;AACA;AAqBA;AAEA;AACA;AACA;AAGA;AACA;AACA;AAGA;AACA;AACA;AAWA;AAC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yCiBC,uBAAuB","ignoreList":[]}
1
+ {"version":3,"file":"MediaTransformation.js","names":["MediaTransformation","OcrOutputFormat","OcrLanguageOrScript","TranscribeOutputFormat","VlmPreprocessingConfig","AnnotateGeometry","ContrastType","ImageOperation","VideoOperation","AudioOperation","VideoToAudioOperation","AudioToTextOperation","EmailToTextOperation","EmailToAttachmentOperation","SpreadsheetToTextOperation","VideoToArchiveOperation","VideoToTextOperation","ImageToTextOperation","VideoToImageOperation","ImageToDocumentOperation","DicomToImageOperation","DocumentToDocumentOperation","DocumentToImageOperation","ImageToEmbeddingOperation","DocumentToTextOperation"],"sources":["MediaTransformation.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Just } from \"../aggregate/Just.js\";\nimport type {\n OcrLanguage,\n OcrScript,\n TranscriptionLanguage,\n} from \"./MediaTransformationLanguages.js\";\n\nexport type { OcrLanguage, OcrScript, TranscriptionLanguage };\n\n// ─── Top-level transformation ─────────────────────────────────────────────────\n\n/**\n * A media transformation request. The `$`-prefixed key selects the\n * transformation kind, and each variant requires specific encoding and\n * operation fields.\n *\n * @see {@link https://www.palantir.com/docs/foundry/api/v2/media-sets-v2-resources/media-sets/transform-media-item/ | Transform Media Item}\n * @experimental\n */\nexport interface MediaTransformationOptions {\n $image: {\n $encoding: ImageryEncoding;\n $operations: Array<ImageOperation>;\n };\n $video: { $encoding: VideoEncoding; $operation: VideoOperation };\n $audio: { $operation: AudioOperation };\n $emailToText: { $operation: EmailToTextOperation };\n $spreadsheetToText: { $operation: SpreadsheetToTextOperation };\n $videoToAudio: {\n $encoding: AudioEncoding;\n $operation: VideoToAudioOperation;\n };\n $audioToText: { $operation: AudioToTextOperation };\n $emailToAttachment: { $operation: EmailToAttachmentOperation };\n $videoToArchive: {\n $encoding: ArchiveEncoding;\n $operation: VideoToArchiveOperation;\n };\n $videoToText: { $operation: VideoToTextOperation };\n $imageToText: { $operation: ImageToTextOperation };\n $videoToImage: {\n $encoding: ImageryEncoding;\n $operation: VideoToImageOperation;\n };\n $imageToDocument: { $operation: ImageToDocumentOperation };\n $dicomToImage: {\n $encoding: ImageryEncoding;\n $operation: DicomToImageOperation;\n };\n $documentToDocument: {\n $encoding: DocumentEncoding;\n $operation: DocumentToDocumentOperation;\n };\n $documentToImage: {\n $encoding: ImageryEncoding;\n $operation: DocumentToImageOperation;\n };\n $imageToEmbedding: { $operation: ImageToEmbeddingOperation };\n $documentToText: { $operation: DocumentToTextOperation };\n}\n\n/**\n * @experimental\n */\nexport namespace MediaTransformation {\n export interface $image extends Just<\"$image\", MediaTransformationOptions> {}\n export interface $video extends Just<\"$video\", MediaTransformationOptions> {}\n export interface $audio extends Just<\"$audio\", MediaTransformationOptions> {}\n export interface $emailToText extends Just<\n \"$emailToText\",\n MediaTransformationOptions\n > {}\n export interface $spreadsheetToText extends Just<\n \"$spreadsheetToText\",\n MediaTransformationOptions\n > {}\n export interface $videoToAudio extends Just<\n \"$videoToAudio\",\n MediaTransformationOptions\n > {}\n export interface $audioToText extends Just<\n \"$audioToText\",\n MediaTransformationOptions\n > {}\n export interface $emailToAttachment extends Just<\n \"$emailToAttachment\",\n MediaTransformationOptions\n > {}\n export interface $videoToArchive extends Just<\n \"$videoToArchive\",\n MediaTransformationOptions\n > {}\n export interface $videoToText extends Just<\n \"$videoToText\",\n MediaTransformationOptions\n > {}\n export interface $imageToText extends Just<\n \"$imageToText\",\n MediaTransformationOptions\n > {}\n export interface $videoToImage extends Just<\n \"$videoToImage\",\n MediaTransformationOptions\n > {}\n export interface $imageToDocument extends Just<\n \"$imageToDocument\",\n MediaTransformationOptions\n > {}\n export interface $dicomToImage extends Just<\n \"$dicomToImage\",\n MediaTransformationOptions\n > {}\n export interface $documentToDocument extends Just<\n \"$documentToDocument\",\n MediaTransformationOptions\n > {}\n export interface $documentToImage extends Just<\n \"$documentToImage\",\n MediaTransformationOptions\n > {}\n export interface $imageToEmbedding extends Just<\n \"$imageToEmbedding\",\n MediaTransformationOptions\n > {}\n export interface $documentToText extends Just<\n \"$documentToText\",\n MediaTransformationOptions\n > {}\n}\n\n/**\n * @experimental\n */\nexport type MediaTransformation =\n | MediaTransformation.$image\n | MediaTransformation.$video\n | MediaTransformation.$audio\n | MediaTransformation.$emailToText\n | MediaTransformation.$spreadsheetToText\n | MediaTransformation.$videoToAudio\n | MediaTransformation.$audioToText\n | MediaTransformation.$emailToAttachment\n | MediaTransformation.$videoToArchive\n | MediaTransformation.$videoToText\n | MediaTransformation.$imageToText\n | MediaTransformation.$videoToImage\n | MediaTransformation.$imageToDocument\n | MediaTransformation.$dicomToImage\n | MediaTransformation.$documentToDocument\n | MediaTransformation.$documentToImage\n | MediaTransformation.$imageToEmbedding\n | MediaTransformation.$documentToText;\n\n// ─── Encoding types ───────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport type ImageryEncoding = \"jpg\" | \"png\" | \"tiff\" | \"webp\";\n\n/**\n * @experimental\n */\nexport type VideoEncoding = \"mp4\" | \"mov\" | \"mkv\" | \"ts\";\n\n/**\n * @experimental\n */\nexport type AudioEncoding =\n | \"mp3\"\n | \"ts\"\n | {\n $wav: {\n $sampleRate?: number;\n $audioChannelLayout?: { $numberOfChannels: number };\n };\n };\n\n/**\n * @experimental\n */\nexport type ArchiveEncoding = \"tar\";\n\n/**\n * @experimental\n */\nexport type DocumentEncoding = \"pdf\";\n\n// ─── Shared sub-types ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface PageRange {\n $startPageInclusive?: number;\n $endPageExclusive?: number;\n}\n\n/**\n * @experimental\n */\nexport interface OcrOutputFormatOptions {\n $hocr: {};\n $text: {};\n}\n\nexport namespace OcrOutputFormat {\n export interface $hocr extends Just<\"$hocr\", OcrOutputFormatOptions> {}\n export interface $text extends Just<\"$text\", OcrOutputFormatOptions> {}\n}\n\nexport type OcrOutputFormat = OcrOutputFormat.$hocr | OcrOutputFormat.$text;\n\n/**\n * @experimental\n */\nexport interface OcrLanguageOrScriptOptions {\n $language: OcrLanguage;\n $script: OcrScript;\n}\n\nexport namespace OcrLanguageOrScript {\n export interface $language extends Just<\n \"$language\",\n OcrLanguageOrScriptOptions\n > {}\n export interface $script extends Just<\n \"$script\",\n OcrLanguageOrScriptOptions\n > {}\n}\n\nexport type OcrLanguageOrScript =\n | OcrLanguageOrScript.$language\n | OcrLanguageOrScript.$script;\n\n/**\n * @experimental\n */\nexport interface OcrParameters {\n $outputFormat: OcrOutputFormat;\n $languages: Array<OcrLanguageOrScript>;\n}\n\n/**\n * @experimental\n */\nexport interface LayoutAwareExtractionParameters {\n $languages: Array<OcrLanguage>;\n}\n\n/**\n * @experimental\n */\nexport interface DocumentTextExtractionConfig {\n $format?: \"TEXT\" | \"MARKDOWN\" | \"HTML\";\n $mode?: \"AUTO\" | \"ELECTRONIC\" | \"SCAN\";\n $languages: Array<OcrLanguageOrScript>;\n}\n\n/**\n * @experimental\n */\nexport interface TranscribeOutputFormatOptions {\n $plainTextNoSegmentData: { $addTimestamps: boolean };\n $json: {};\n $pttml: {};\n}\n\nexport namespace TranscribeOutputFormat {\n export interface $plainTextNoSegmentData extends Just<\n \"$plainTextNoSegmentData\",\n TranscribeOutputFormatOptions\n > {}\n export interface $json extends Just<\"$json\", TranscribeOutputFormatOptions> {}\n export interface $pttml extends Just<\n \"$pttml\",\n TranscribeOutputFormatOptions\n > {}\n}\n\nexport type TranscribeOutputFormat =\n | TranscribeOutputFormat.$plainTextNoSegmentData\n | TranscribeOutputFormat.$json\n | TranscribeOutputFormat.$pttml;\n\n/**\n * @experimental\n */\nexport interface LlmSpec {\n $chat: {\n $modelLocator: string;\n $systemPrompt: string;\n $userPrompt: string;\n $maxTokens?: number;\n };\n}\n\n/**\n * @experimental\n */\nexport interface VlmPreprocessingConfigOptions {\n $layoutAware: {\n $transformationConfig: DocumentTextExtractionConfig;\n $cropConfig?: { $tablePrompt: string };\n };\n $extractText: DocumentTextExtractionConfig;\n}\n\nexport namespace VlmPreprocessingConfig {\n export interface $layoutAware extends Just<\n \"$layoutAware\",\n VlmPreprocessingConfigOptions\n > {}\n export interface $extractText extends Just<\n \"$extractText\",\n VlmPreprocessingConfigOptions\n > {}\n}\n\nexport type VlmPreprocessingConfig =\n | VlmPreprocessingConfig.$layoutAware\n | VlmPreprocessingConfig.$extractText;\n\n/**\n * @experimental\n */\nexport interface ImageSpec {\n $resizingMode: \"RESIZING\" | \"FIT_INTO_BOUNDING_BOX\";\n $height?: number;\n $width?: number;\n $mimeType: \"BMP\" | \"TIFF\" | \"NITF\" | \"JP2K\" | \"JPG\" | \"PNG\" | \"WEBP\";\n}\n\n/**\n * @experimental\n */\nexport interface Annotation {\n $geometry: AnnotateGeometry;\n $label?: string;\n $color?: Color;\n $thickness?: number;\n $fontSize?: number;\n}\n\n/**\n * @experimental\n */\nexport interface AnnotateGeometryOptions {\n $boundingBox: BoundingBox;\n}\n\nexport namespace AnnotateGeometry {\n export interface $boundingBox extends Just<\n \"$boundingBox\",\n AnnotateGeometryOptions\n > {}\n}\n\nexport type AnnotateGeometry = AnnotateGeometry.$boundingBox;\n\n/**\n * @experimental\n */\nexport interface BoundingBox {\n $left: number;\n $top: number;\n $width: number;\n $height: number;\n}\n\n/**\n * @experimental\n */\nexport interface Color {\n $r: number;\n $g: number;\n $b: number;\n $a?: number;\n}\n\n/**\n * @experimental\n */\nexport interface ContrastTypeOptions {\n $equalize: {};\n $rayleigh: { $sigma: number };\n $binarize: { $threshold?: number };\n}\n\nexport namespace ContrastType {\n export interface $equalize extends Just<\"$equalize\", ContrastTypeOptions> {}\n export interface $rayleigh extends Just<\"$rayleigh\", ContrastTypeOptions> {}\n export interface $binarize extends Just<\"$binarize\", ContrastTypeOptions> {}\n}\n\nexport type ContrastType =\n | ContrastType.$equalize\n | ContrastType.$rayleigh\n | ContrastType.$binarize;\n\n/**\n * @experimental\n */\nexport interface ImagePixelCoordinate {\n $x: number;\n $y: number;\n}\n\n/**\n * @experimental\n */\nexport type ImageRegionPolygon = Array<ImagePixelCoordinate>;\n\n// ─── Image operations ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface ImageOperationOptions {\n $resize: { $width?: number; $height?: number; $autoOrient?: boolean };\n $resizeToFitBoundingBox: { $width: number; $height: number };\n $rotate: { $angle: \"DEGREE_90\" | \"DEGREE_180\" | \"DEGREE_270\" };\n $crop: {\n $xOffset: number;\n $yOffset: number;\n $width: number;\n $height: number;\n };\n $grayscale: {};\n $tile: { $zoom: number; $x: number; $y: number };\n $annotate: { $annotations: Array<Annotation> };\n $contrast: { $contrastType: ContrastType };\n $encrypt: {\n $polygons: Array<ImageRegionPolygon>;\n $cipherLicenseRid: string;\n };\n $decrypt: {\n $polygons: Array<ImageRegionPolygon>;\n $cipherLicenseRid: string;\n };\n}\n\n/**\n * @experimental\n */\nexport namespace ImageOperation {\n export interface $resize extends Just<\"$resize\", ImageOperationOptions> {}\n export interface $resizeToFitBoundingBox extends Just<\n \"$resizeToFitBoundingBox\",\n ImageOperationOptions\n > {}\n export interface $rotate extends Just<\"$rotate\", ImageOperationOptions> {}\n export interface $crop extends Just<\"$crop\", ImageOperationOptions> {}\n export interface $grayscale extends Just<\n \"$grayscale\",\n ImageOperationOptions\n > {}\n export interface $tile extends Just<\"$tile\", ImageOperationOptions> {}\n export interface $annotate extends Just<\"$annotate\", ImageOperationOptions> {}\n export interface $contrast extends Just<\"$contrast\", ImageOperationOptions> {}\n export interface $encrypt extends Just<\"$encrypt\", ImageOperationOptions> {}\n export interface $decrypt extends Just<\"$decrypt\", ImageOperationOptions> {}\n}\n\n/**\n * @experimental\n */\nexport type ImageOperation =\n | ImageOperation.$resize\n | ImageOperation.$resizeToFitBoundingBox\n | ImageOperation.$rotate\n | ImageOperation.$crop\n | ImageOperation.$grayscale\n | ImageOperation.$tile\n | ImageOperation.$annotate\n | ImageOperation.$contrast\n | ImageOperation.$encrypt\n | ImageOperation.$decrypt;\n\n// ─── Video operations ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface VideoOperationOptions {\n $transcode: {};\n $chunk: { $chunkDurationMilliseconds: number; $chunkIndex: number };\n}\n\n/**\n * @experimental\n */\nexport namespace VideoOperation {\n export interface $transcode extends Just<\n \"$transcode\",\n VideoOperationOptions\n > {}\n export interface $chunk extends Just<\"$chunk\", VideoOperationOptions> {}\n}\n\n/**\n * @experimental\n */\nexport type VideoOperation = VideoOperation.$transcode | VideoOperation.$chunk;\n\n// ─── Audio operations ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface AudioOperationOptions {\n $channel: { $encodeFormat: AudioEncoding; $channel: number };\n $chunk: {\n $encodeFormat: AudioEncoding;\n $chunkDurationMilliseconds: number;\n $chunkIndex: number;\n };\n $convert: { $encodeFormat: AudioEncoding };\n}\n\n/**\n * @experimental\n */\nexport namespace AudioOperation {\n export interface $channel extends Just<\"$channel\", AudioOperationOptions> {}\n export interface $chunk extends Just<\"$chunk\", AudioOperationOptions> {}\n export interface $convert extends Just<\"$convert\", AudioOperationOptions> {}\n}\n\n/**\n * @experimental\n */\nexport type AudioOperation =\n | AudioOperation.$channel\n | AudioOperation.$chunk\n | AudioOperation.$convert;\n\n// ─── Other operation types ────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface VideoToAudioOperationOptions {\n $extractAudio: {};\n}\n\nexport namespace VideoToAudioOperation {\n export interface $extractAudio extends Just<\n \"$extractAudio\",\n VideoToAudioOperationOptions\n > {}\n}\n\nexport type VideoToAudioOperation = VideoToAudioOperation.$extractAudio;\n\n/**\n * @experimental\n */\nexport interface AudioToTextOperationOptions {\n $transcribe: {\n $language?: TranscriptionLanguage;\n $diarize?: boolean;\n $outputFormat?: TranscribeOutputFormat;\n $performanceMode?: \"MORE_ECONOMICAL\" | \"MORE_PERFORMANT\";\n };\n $waveform: { $peaksPerSecond: number };\n}\n\nexport namespace AudioToTextOperation {\n export interface $transcribe extends Just<\n \"$transcribe\",\n AudioToTextOperationOptions\n > {}\n export interface $waveform extends Just<\n \"$waveform\",\n AudioToTextOperationOptions\n > {}\n}\n\nexport type AudioToTextOperation =\n | AudioToTextOperation.$transcribe\n | AudioToTextOperation.$waveform;\n\n/**\n * @experimental\n */\nexport interface EmailToTextOperationOptions {\n $getEmailBody: { $outputFormat: \"TEXT\" | \"HTML\" };\n}\n\nexport namespace EmailToTextOperation {\n export interface $getEmailBody extends Just<\n \"$getEmailBody\",\n EmailToTextOperationOptions\n > {}\n}\n\nexport type EmailToTextOperation = EmailToTextOperation.$getEmailBody;\n\n/**\n * @experimental\n */\nexport interface EmailToAttachmentOperationOptions {\n $getEmailAttachment: { $mimeType: string; $attachmentIndex: number };\n}\n\nexport namespace EmailToAttachmentOperation {\n export interface $getEmailAttachment extends Just<\n \"$getEmailAttachment\",\n EmailToAttachmentOperationOptions\n > {}\n}\n\nexport type EmailToAttachmentOperation =\n EmailToAttachmentOperation.$getEmailAttachment;\n\n/**\n * @experimental\n */\nexport interface SpreadsheetToTextOperationOptions {\n $convertSheetToJson: { $sheetName: string };\n}\n\nexport namespace SpreadsheetToTextOperation {\n export interface $convertSheetToJson extends Just<\n \"$convertSheetToJson\",\n SpreadsheetToTextOperationOptions\n > {}\n}\n\nexport type SpreadsheetToTextOperation =\n SpreadsheetToTextOperation.$convertSheetToJson;\n\n/**\n * @experimental\n */\nexport interface VideoToArchiveOperationOptions {\n $extractSceneFrames: {\n $encoding: ImageryEncoding;\n $sceneScore?: \"MORE_SENSITIVE\" | \"STANDARD\" | \"LESS_SENSITIVE\";\n };\n}\n\nexport namespace VideoToArchiveOperation {\n export interface $extractSceneFrames extends Just<\n \"$extractSceneFrames\",\n VideoToArchiveOperationOptions\n > {}\n}\n\nexport type VideoToArchiveOperation =\n VideoToArchiveOperation.$extractSceneFrames;\n\n/**\n * @experimental\n */\nexport interface VideoToTextOperationOptions {\n $getTimestampsForSceneFrames: {\n $sceneScore?: \"MORE_SENSITIVE\" | \"STANDARD\" | \"LESS_SENSITIVE\";\n };\n}\n\nexport namespace VideoToTextOperation {\n export interface $getTimestampsForSceneFrames extends Just<\n \"$getTimestampsForSceneFrames\",\n VideoToTextOperationOptions\n > {}\n}\n\nexport type VideoToTextOperation =\n VideoToTextOperation.$getTimestampsForSceneFrames;\n\n/**\n * @experimental\n */\nexport interface ImageToTextOperationOptions {\n $extractLayoutAwareContent: {\n $parameters: LayoutAwareExtractionParameters;\n };\n $ocr: { $parameters: OcrParameters };\n}\n\nexport namespace ImageToTextOperation {\n export interface $extractLayoutAwareContent extends Just<\n \"$extractLayoutAwareContent\",\n ImageToTextOperationOptions\n > {}\n export interface $ocr extends Just<\"$ocr\", ImageToTextOperationOptions> {}\n}\n\nexport type ImageToTextOperation =\n | ImageToTextOperation.$extractLayoutAwareContent\n | ImageToTextOperation.$ocr;\n\n/**\n * @experimental\n */\nexport interface VideoToImageOperationOptions {\n $extractFirstFrame: { $height?: number; $width?: number };\n $extractFramesAtTimestamps: {\n $height?: number;\n $width?: number;\n $timestamp: number;\n };\n}\n\nexport namespace VideoToImageOperation {\n export interface $extractFirstFrame extends Just<\n \"$extractFirstFrame\",\n VideoToImageOperationOptions\n > {}\n export interface $extractFramesAtTimestamps extends Just<\n \"$extractFramesAtTimestamps\",\n VideoToImageOperationOptions\n > {}\n}\n\nexport type VideoToImageOperation =\n | VideoToImageOperation.$extractFirstFrame\n | VideoToImageOperation.$extractFramesAtTimestamps;\n\n/**\n * @experimental\n */\nexport interface ImageToDocumentOperationOptions {\n $createPdf: {};\n}\n\nexport namespace ImageToDocumentOperation {\n export interface $createPdf extends Just<\n \"$createPdf\",\n ImageToDocumentOperationOptions\n > {}\n}\n\nexport type ImageToDocumentOperation = ImageToDocumentOperation.$createPdf;\n\n/**\n * @experimental\n */\nexport interface DicomToImageOperationOptions {\n $renderImageLayer: {\n $layerNumber?: number;\n $height?: number;\n $width?: number;\n };\n}\n\nexport namespace DicomToImageOperation {\n export interface $renderImageLayer extends Just<\n \"$renderImageLayer\",\n DicomToImageOperationOptions\n > {}\n}\n\nexport type DicomToImageOperation = DicomToImageOperation.$renderImageLayer;\n\n/**\n * @experimental\n */\nexport interface DocumentToDocumentOperationOptions {\n $slicePdfRange: {\n $startPageInclusive: number;\n $endPageExclusive: number;\n $strictlyEnforceEndPage?: boolean;\n };\n $convertDocument: {};\n}\n\nexport namespace DocumentToDocumentOperation {\n export interface $slicePdfRange extends Just<\n \"$slicePdfRange\",\n DocumentToDocumentOperationOptions\n > {}\n export interface $convertDocument extends Just<\n \"$convertDocument\",\n DocumentToDocumentOperationOptions\n > {}\n}\n\nexport type DocumentToDocumentOperation =\n | DocumentToDocumentOperation.$slicePdfRange\n | DocumentToDocumentOperation.$convertDocument;\n\n/**\n * @experimental\n */\nexport interface DocumentToImageOperationOptions {\n $renderPage: { $pageNumber?: number; $height?: number; $width?: number };\n $renderPageToFitBoundingBox: {\n $pageNumber?: number;\n $width: number;\n $height: number;\n };\n}\n\nexport namespace DocumentToImageOperation {\n export interface $renderPage extends Just<\n \"$renderPage\",\n DocumentToImageOperationOptions\n > {}\n export interface $renderPageToFitBoundingBox extends Just<\n \"$renderPageToFitBoundingBox\",\n DocumentToImageOperationOptions\n > {}\n}\n\nexport type DocumentToImageOperation =\n | DocumentToImageOperation.$renderPage\n | DocumentToImageOperation.$renderPageToFitBoundingBox;\n\n/**\n * @experimental\n */\nexport interface ImageToEmbeddingOperationOptions {\n $generateEmbedding: { $modelId: string };\n}\n\nexport namespace ImageToEmbeddingOperation {\n export interface $generateEmbedding extends Just<\n \"$generateEmbedding\",\n ImageToEmbeddingOperationOptions\n > {}\n}\n\nexport type ImageToEmbeddingOperation =\n ImageToEmbeddingOperation.$generateEmbedding;\n\n/**\n * @experimental\n */\nexport interface DocumentToTextOperationOptions {\n $extractAllText: {};\n $extractTableOfContents: {};\n $getPdfPageDimensions: {};\n $extractFormFields: {};\n $extractUnstructuredTextFromPage: { $pageNumber: number };\n $extractTextFromPagesToArray: {\n $startPage?: number;\n $endPage?: number;\n };\n $ocrOnPage: {\n $pageNumber: number;\n $parameters: OcrParameters;\n };\n $ocrOnPages: {\n $pageNumber: number;\n $parameters: OcrParameters;\n };\n $extractLayoutAwareContent: {\n $parameters: LayoutAwareExtractionParameters;\n };\n $extractLayoutAwareTextV2: {\n $pageRange?: PageRange;\n $config: DocumentTextExtractionConfig;\n };\n $extractTextV2: {\n $pageRange?: PageRange;\n $config: DocumentTextExtractionConfig;\n };\n $extractVlmText: {\n $llmSpec: LlmSpec;\n $preprocessingConfiguration?: VlmPreprocessingConfig;\n $imageSpec?: ImageSpec;\n $outputFormat: \"TEXT\" | \"MARKDOWN\" | \"HTML\";\n $pageRange?: PageRange;\n };\n}\n\nexport namespace DocumentToTextOperation {\n export interface $extractAllText extends Just<\n \"$extractAllText\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractTableOfContents extends Just<\n \"$extractTableOfContents\",\n DocumentToTextOperationOptions\n > {}\n export interface $getPdfPageDimensions extends Just<\n \"$getPdfPageDimensions\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractFormFields extends Just<\n \"$extractFormFields\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractUnstructuredTextFromPage extends Just<\n \"$extractUnstructuredTextFromPage\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractTextFromPagesToArray extends Just<\n \"$extractTextFromPagesToArray\",\n DocumentToTextOperationOptions\n > {}\n export interface $ocrOnPage extends Just<\n \"$ocrOnPage\",\n DocumentToTextOperationOptions\n > {}\n export interface $ocrOnPages extends Just<\n \"$ocrOnPages\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractLayoutAwareContent extends Just<\n \"$extractLayoutAwareContent\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractLayoutAwareTextV2 extends Just<\n \"$extractLayoutAwareTextV2\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractTextV2 extends Just<\n \"$extractTextV2\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractVlmText extends Just<\n \"$extractVlmText\",\n DocumentToTextOperationOptions\n > {}\n}\n\nexport type DocumentToTextOperation =\n | DocumentToTextOperation.$extractAllText\n | DocumentToTextOperation.$extractTableOfContents\n | DocumentToTextOperation.$getPdfPageDimensions\n | DocumentToTextOperation.$extractFormFields\n | DocumentToTextOperation.$extractUnstructuredTextFromPage\n | DocumentToTextOperation.$extractTextFromPagesToArray\n | DocumentToTextOperation.$ocrOnPage\n | DocumentToTextOperation.$ocrOnPages\n | DocumentToTextOperation.$extractLayoutAwareContent\n | DocumentToTextOperation.$extractLayoutAwareTextV2\n | DocumentToTextOperation.$extractTextV2\n | DocumentToTextOperation.$extractVlmText;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAWA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA2CA;AACA;AACA;AAFA,WAGiBA,mBAAmB;AAkEpC;AACA;AACA;AAqBA;AAEA;AACA;AACA;AAGA;AACA;AACA;AAGA;AACA;AACA;AAWA;AACA;AACA;AAGA;AACA;AACA;AAGA;AAEA;AACA;AACA;AAMA;AACA;AACA;AAFA,WAQiBC,eAAe;AAOhC;AACA;AACA;AAFA,WAQiBC,mBAAmB;AAepC;AACA;AACA;AAMA;AACA;AACA;AAKA;AACA;AACA;AAOA;AACA;AACA;AAFA,WASiBC,sBAAsB;AAiBvC;AACA;AACA;AAUA;AACA;AACA;AAFA,WAWiBC,sBAAsB;AAevC;AACA;AACA;AAQA;AACA;AACA;AASA;AACA;AACA;AAFA,WAOiBC,gBAAgB;AASjC;AACA;AACA;AAQA;AACA;AACA;AAQA;AACA;AACA;AAFA,WASiBC,YAAY;AAW7B;AACA;AACA;AAMA;AACA;AACA;AAGA;AAEA;AACA;AACA;AAyBA;AACA;AACA;AAFA,WAGiBC,cAAc;AAmB/B;AACA;AACA;AAaA;AAEA;AACA;AACA;AAMA;AACA;AACA;AAFA,WAGiBC,cAAc;AAQ/B;AACA;AACA;AAGA;AAEA;AACA;AACA;AAWA;AACA;AACA;AAFA,WAGiBC,cAAc;AAM/B;AACA;AACA;AAMA;AAEA;AACA;AACA;AAFA,WAOiBC,qBAAqB;AAStC;AACA;AACA;AAFA,WAaiBC,oBAAoB;AAerC;AACA;AACA;AAFA,WAOiBC,oBAAoB;AASrC;AACA;AACA;AAFA,WAOiBC,0BAA0B;AAU3C;AACA;AACA;AAFA,WAOiBC,0BAA0B;AAU3C;AACA;AACA;AAFA,WAUiBC,uBAAuB;AAUxC;AACA;AACA;AAFA,WASiBC,oBAAoB;AAUrC;AACA;AACA;AAFA,WAUiBC,oBAAoB;AAYrC;AACA;AACA;AAFA,WAYiBC,qBAAqB;AAetC;AACA;AACA;AAFA,WAOiBC,wBAAwB;AASzC;AACA;AACA;AAFA,WAWiBC,qBAAqB;AAStC;AACA;AACA;AAFA,WAYiBC,2BAA2B;AAe5C;AACA;AACA;AAFA,WAYiBC,wBAAwB;AAezC;AACA;AACA;AAFA,WAOiBC,yBAAyB;AAU1C;AACA;AACA;AAFA,WAyCiBC,uBAAuB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MediaTransformationLanguages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaTransformationLanguages.js","names":[],"sources":["MediaTransformationLanguages.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// cspell:disable\n// Every identifier below is a language or script code defined by the platform, not prose. Disabling\n// for the whole file keeps a platform bump that adds an exotic language name from failing\n// check-spelling and needing a new dictionary entry.\n\n// Mirrors the closed enums declared by the platform in `@osdk/foundry.mediasets`\n// (`OcrLanguage`, `OcrScript`, `TranscriptionLanguage`). They are copied rather than re-exported\n// because `@osdk/api` does not depend on any `@osdk/foundry.*` package; see the note in\n// `actions/ActionResults.ts`. The `AssertPlatformParity` aliases at the top of\n// `makeMediaTransformation.ts` in `@osdk/client` keep these equal to the generated unions, and are\n// what fails when a platform bump changes a value.\n\n/**\n * A language for OCR (Optical Character Recognition) operations.\n *\n * @experimental\n */\nexport type OcrLanguage =\n | \"AFR\"\n | \"AMH\"\n | \"ARA\"\n | \"ASM\"\n | \"AZE\"\n | \"AZE_CYRL\"\n | \"BEL\"\n | \"BEN\"\n | \"BOD\"\n | \"BOS\"\n | \"BRE\"\n | \"BUL\"\n | \"CAT\"\n | \"CEB\"\n | \"CES\"\n | \"CHI_SIM\"\n | \"CHI_SIM_VERT\"\n | \"CHI_TRA\"\n | \"CHI_TRA_VERT\"\n | \"CHR\"\n | \"COS\"\n | \"CYM\"\n | \"DAN\"\n | \"DEU\"\n | \"DIV\"\n | \"DZO\"\n | \"ELL\"\n | \"ENG\"\n | \"ENM\"\n | \"EPO\"\n | \"EST\"\n | \"EUS\"\n | \"FAO\"\n | \"FAS\"\n | \"FIL\"\n | \"FIN\"\n | \"FRA\"\n | \"FRM\"\n | \"FRY\"\n | \"GLA\"\n | \"GLE\"\n | \"GLG\"\n | \"GRC\"\n | \"GUJ\"\n | \"HAT\"\n | \"HEB\"\n | \"HIN\"\n | \"HRV\"\n | \"HUN\"\n | \"HYE\"\n | \"IKU\"\n | \"IND\"\n | \"ISL\"\n | \"ITA\"\n | \"ITA_OLD\"\n | \"JAV\"\n | \"JPN\"\n | \"JPN_VERT\"\n | \"KAN\"\n | \"KAT\"\n | \"KAT_OLD\"\n | \"KAZ\"\n | \"KHM\"\n | \"KIR\"\n | \"KMR\"\n | \"KOR\"\n | \"KOR_VERT\"\n | \"LAO\"\n | \"LAT\"\n | \"LAV\"\n | \"LIT\"\n | \"LTZ\"\n | \"MAL\"\n | \"MAR\"\n | \"MKD\"\n | \"MLT\"\n | \"MON\"\n | \"MRI\"\n | \"MSA\"\n | \"MYA\"\n | \"NEP\"\n | \"NLD\"\n | \"NOR\"\n | \"OCI\"\n | \"ORI\"\n | \"OSD\"\n | \"PAN\"\n | \"POL\"\n | \"POR\"\n | \"PUS\"\n | \"QUE\"\n | \"RON\"\n | \"RUS\"\n | \"SAN\"\n | \"SIN\"\n | \"SLK\"\n | \"SLV\"\n | \"SND\"\n | \"SPA\"\n | \"SPA_OLD\"\n | \"SQI\"\n | \"SRP\"\n | \"SRP_LATN\"\n | \"SUN\"\n | \"SWA\"\n | \"SWE\"\n | \"SYR\"\n | \"TAM\"\n | \"TAT\"\n | \"TEL\"\n | \"TGK\"\n | \"THA\"\n | \"TIR\"\n | \"TON\"\n | \"TUR\"\n | \"UIG\"\n | \"UKR\"\n | \"URD\"\n | \"UZB\"\n | \"UZB_CYRL\"\n | \"VIE\"\n | \"YID\"\n | \"YOR\";\n\n/**\n * A script for OCR (Optical Character Recognition) operations.\n *\n * @experimental\n */\nexport type OcrScript =\n | \"ARABIC\"\n | \"ARMENIAN\"\n | \"BENGALI\"\n | \"CANADIAN_ABORIGINAL\"\n | \"CHEROKEE\"\n | \"CYRILLIC\"\n | \"DEVANAGARI\"\n | \"ETHIOPIC\"\n | \"FRAKTUR\"\n | \"GEORGIAN\"\n | \"GREEK\"\n | \"GUJARATI\"\n | \"GURMUKHI\"\n | \"HAN_SIMPLIFIED\"\n | \"HAN_SIMPLIFIED_VERT\"\n | \"HAN_TRADITIONAL\"\n | \"HAN_TRADITIONAL_VERT\"\n | \"HANGUL\"\n | \"HANGUL_VERT\"\n | \"HEBREW\"\n | \"JAPANESE\"\n | \"JAPANESE_VERT\"\n | \"KANNADA\"\n | \"KHMER\"\n | \"LAO\"\n | \"LATIN\"\n | \"MALAYALAM\"\n | \"MYANMAR\"\n | \"ORIYA\"\n | \"SINHALA\"\n | \"SYRIAC\"\n | \"TAMIL\"\n | \"TELUGU\"\n | \"THAANA\"\n | \"THAI\"\n | \"TIBETAN\"\n | \"VIETNAMESE\";\n\n/**\n * A language for audio transcription operations.\n *\n * @experimental\n */\nexport type TranscriptionLanguage =\n | \"AF\"\n | \"AM\"\n | \"AR\"\n | \"AS\"\n | \"AZ\"\n | \"BA\"\n | \"BE\"\n | \"BG\"\n | \"BN\"\n | \"BO\"\n | \"BR\"\n | \"BS\"\n | \"CA\"\n | \"CS\"\n | \"CY\"\n | \"DA\"\n | \"DE\"\n | \"EL\"\n | \"EN\"\n | \"ES\"\n | \"ET\"\n | \"EU\"\n | \"FA\"\n | \"FI\"\n | \"FO\"\n | \"FR\"\n | \"GL\"\n | \"GU\"\n | \"HA\"\n | \"HAW\"\n | \"HE\"\n | \"HI\"\n | \"HR\"\n | \"HT\"\n | \"HU\"\n | \"HY\"\n | \"ID\"\n | \"IS\"\n | \"IT\"\n | \"JA\"\n | \"JW\"\n | \"KA\"\n | \"KK\"\n | \"KM\"\n | \"KN\"\n | \"KO\"\n | \"LA\"\n | \"LB\"\n | \"LN\"\n | \"LO\"\n | \"LT\"\n | \"LV\"\n | \"MG\"\n | \"MI\"\n | \"MK\"\n | \"ML\"\n | \"MN\"\n | \"MR\"\n | \"MS\"\n | \"MT\"\n | \"MY\"\n | \"NE\"\n | \"NL\"\n | \"NN\"\n | \"NO\"\n | \"OC\"\n | \"PA\"\n | \"PL\"\n | \"PS\"\n | \"PT\"\n | \"RO\"\n | \"RU\"\n | \"SA\"\n | \"SD\"\n | \"SI\"\n | \"SK\"\n | \"SL\"\n | \"SN\"\n | \"SO\"\n | \"SQ\"\n | \"SR\"\n | \"SU\"\n | \"SV\"\n | \"SW\"\n | \"TA\"\n | \"TE\"\n | \"TG\"\n | \"TH\"\n | \"TK\"\n | \"TL\"\n | \"TR\"\n | \"TT\"\n | \"UK\"\n | \"UR\"\n | \"UZ\"\n | \"VI\"\n | \"YI\"\n | \"YO\"\n | \"YUE\"\n | \"ZH\"\n | \"AFRIKAANS\"\n | \"ALBANIAN\"\n | \"AMHARIC\"\n | \"ARABIC\"\n | \"ARMENIAN\"\n | \"ASSAMESE\"\n | \"AZERBAIJANI\"\n | \"BASHKIR\"\n | \"BASQUE\"\n | \"BELARUSIAN\"\n | \"BENGALI\"\n | \"BOSNIAN\"\n | \"BRETON\"\n | \"BULGARIAN\"\n | \"BURMESE\"\n | \"CANTONESE\"\n | \"CASTILIAN\"\n | \"CATALAN\"\n | \"CHINESE\"\n | \"CROATIAN\"\n | \"CZECH\"\n | \"DANISH\"\n | \"DUTCH\"\n | \"ENGLISH\"\n | \"ESTONIAN\"\n | \"FAROESE\"\n | \"FINNISH\"\n | \"FLEMISH\"\n | \"FRENCH\"\n | \"GALICIAN\"\n | \"GEORGIAN\"\n | \"GERMAN\"\n | \"GREEK\"\n | \"GUJARATI\"\n | \"HAITIAN\"\n | \"HAITIAN_CREOLE\"\n | \"HAUSA\"\n | \"HAWAIIAN\"\n | \"HEBREW\"\n | \"HINDI\"\n | \"HUNGARIAN\"\n | \"ICELANDIC\"\n | \"INDONESIAN\"\n | \"ITALIAN\"\n | \"JAPANESE\"\n | \"JAVANESE\"\n | \"KANNADA\"\n | \"KAZAKH\"\n | \"KHMER\"\n | \"KOREAN\"\n | \"LAO\"\n | \"LATIN\"\n | \"LATVIAN\"\n | \"LETZEBURGESCH\"\n | \"LINGALA\"\n | \"LITHUANIAN\"\n | \"LUXEMBOURGISH\"\n | \"MACEDONIAN\"\n | \"MALAGASY\"\n | \"MALAY\"\n | \"MALAYALAM\"\n | \"MALTESE\"\n | \"MANDARIN\"\n | \"MAORI\"\n | \"MARATHI\"\n | \"MOLDAVIAN\"\n | \"MOLDOVAN\"\n | \"MONGOLIAN\"\n | \"MYANMAR\"\n | \"NEPALI\"\n | \"NORWEGIAN\"\n | \"NYNORSK\"\n | \"OCCITAN\"\n | \"PANJABI\"\n | \"PASHTO\"\n | \"PERSIAN\"\n | \"POLISH\"\n | \"PORTUGUESE\"\n | \"PUNJABI\"\n | \"PUSHTO\"\n | \"ROMANIAN\"\n | \"RUSSIAN\"\n | \"SANSKRIT\"\n | \"SERBIAN\"\n | \"SHONA\"\n | \"SINDHI\"\n | \"SINHALA\"\n | \"SINHALESE\"\n | \"SLOVAK\"\n | \"SLOVENIAN\"\n | \"SOMALI\"\n | \"SPANISH\"\n | \"SUNDANESE\"\n | \"SWAHILI\"\n | \"SWEDISH\"\n | \"TAGALOG\"\n | \"TAJIK\"\n | \"TAMIL\"\n | \"TATAR\"\n | \"TELUGU\"\n | \"THAI\"\n | \"TIBETAN\"\n | \"TURKISH\"\n | \"TURKMEN\"\n | \"UKRAINIAN\"\n | \"URDU\"\n | \"UZBEK\"\n | \"VALENCIAN\"\n | \"VIETNAMESE\"\n | \"WELSH\"\n | \"YIDDISH\"\n | \"YORUBA\";\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"unstable.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks","__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet","transformAndWait","MediaTransformationError","MediaTransformationFailedError","MediaTransformationTimeoutError","configToShapeDefinition","createShapeBuilder","isSourcePkSymbol","ShapeNullabilityError","SourcePrimaryKeySymbol"],"sources":["unstable.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type { Experiment, ExperimentFns } from \"../experimental/Experiment.js\";\n\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction } from \"../experimental/executeStreamingFunction.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid } from \"../experimental/fetchOneByRid.js\";\nexport {\n __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid,\n type FetchPageByRidPayload,\n} from \"../experimental/fetchPageByRid.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from \"../experimental/getBulkLinks.js\";\nexport type {\n AnnotateGeometry,\n Annotation,\n AudioEncoding,\n AudioOperation,\n AudioToTextOperation,\n BoundingBox,\n Color,\n ContrastType,\n DicomToImageOperation,\n DocumentTextExtractionConfig,\n DocumentToDocumentOperation,\n DocumentToImageOperation,\n DocumentToTextOperation,\n EmailToAttachmentOperation,\n EmailToTextOperation,\n ImageOperation,\n ImagePixelCoordinate,\n ImageRegionPolygon,\n ImageSpec,\n ImageToDocumentOperation,\n ImageToEmbeddingOperation,\n ImageToTextOperation,\n LayoutAwareExtractionParameters,\n LlmSpec,\n MediaTransformation,\n OcrLanguageOrScript,\n OcrOutputFormat,\n OcrParameters,\n PageRange,\n SpreadsheetToTextOperation,\n TranscribeOutputFormat,\n VideoOperation,\n VideoToArchiveOperation,\n VideoToAudioOperation,\n VideoToImageOperation,\n VideoToTextOperation,\n VlmPreprocessingConfig,\n} from \"../experimental/MediaTransformation.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet } from \"../experimental/subscribeToNoTypeObjectSet.js\";\nexport {\n transformAndWait,\n type TransformOptions,\n} from \"../experimental/transformAndWait.js\";\nexport {\n MediaTransformationError,\n MediaTransformationFailedError,\n MediaTransformationTimeoutError,\n} from \"../object/MediaTransformationErrors.js\";\n\nexport type { EXPERIMENTAL_BulkLinkResult } from \"../objectSet/BulkLinkResult.js\";\nexport type { MinimalObjectSet } from \"../objectSet/ObjectSet.js\";\n\n// Shapes (unstable — will graduate to @osdk/api/shapes when stable)\nexport {\n configToShapeDefinition,\n createShapeBuilder,\n isSourcePkSymbol,\n ShapeNullabilityError,\n SourcePrimaryKeySymbol,\n} from \"../shapes/index.js\";\n\nexport type {\n InferShapeDefinition,\n InlineLinkConfig,\n InlineShapeConfig,\n LinkLoadConfig,\n LinkStatus,\n NullabilityViolation,\n PropertyType,\n RequiredProperty,\n ShapeBaseType,\n ShapeBuilder,\n ShapeDefinition,\n ShapeDerivedLinks,\n ShapeInstance,\n ShapeLinkBuilder,\n ShapeLinkResult,\n} from \"../shapes/index.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,2DAA2D,QAAQ,6CAA6C;AACzH,SAASC,gDAAgD,QAAQ,kCAAkC;AACnG,SACEC,iDAAiD,QAE5C,mCAAmC;AAC1C,SAASC,+CAA+C,QAAQ,iCAAiC;AAwCjG,SAASC,6DAA6D,QAAQ,+CAA+C;AAC7H,SACEC,gBAAgB,QAEX,qCAAqC;AAC5C,SACEC,wBAAwB,EACxBC,8BAA8B,EAC9BC,+BAA+B,QAC1B,wCAAwC;AAK/C;AACA,SACEC,uBAAuB,EACvBC,kBAAkB,EAClBC,gBAAgB,EAChBC,qBAAqB,EACrBC,sBAAsB,QACjB,oBAAoB","ignoreList":[]}
1
+ {"version":3,"file":"unstable.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks","__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet","transformAndWait","MediaTransformationError","MediaTransformationFailedError","MediaTransformationTimeoutError","configToShapeDefinition","createShapeBuilder","isSourcePkSymbol","ShapeNullabilityError","SourcePrimaryKeySymbol"],"sources":["unstable.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type { Experiment, ExperimentFns } from \"../experimental/Experiment.js\";\n\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction } from \"../experimental/executeStreamingFunction.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid } from \"../experimental/fetchOneByRid.js\";\nexport {\n __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid,\n type FetchPageByRidPayload,\n} from \"../experimental/fetchPageByRid.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from \"../experimental/getBulkLinks.js\";\nexport type {\n AnnotateGeometry,\n Annotation,\n ArchiveEncoding,\n AudioEncoding,\n AudioOperation,\n AudioToTextOperation,\n BoundingBox,\n Color,\n ContrastType,\n DicomToImageOperation,\n DocumentEncoding,\n DocumentTextExtractionConfig,\n DocumentToDocumentOperation,\n DocumentToImageOperation,\n DocumentToTextOperation,\n EmailToAttachmentOperation,\n EmailToTextOperation,\n ImageOperation,\n ImagePixelCoordinate,\n ImageRegionPolygon,\n ImageryEncoding,\n ImageSpec,\n ImageToDocumentOperation,\n ImageToEmbeddingOperation,\n ImageToTextOperation,\n LayoutAwareExtractionParameters,\n LlmSpec,\n MediaTransformation,\n OcrLanguage,\n OcrLanguageOrScript,\n OcrOutputFormat,\n OcrParameters,\n OcrScript,\n PageRange,\n SpreadsheetToTextOperation,\n TranscribeOutputFormat,\n TranscriptionLanguage,\n VideoEncoding,\n VideoOperation,\n VideoToArchiveOperation,\n VideoToAudioOperation,\n VideoToImageOperation,\n VideoToTextOperation,\n VlmPreprocessingConfig,\n} from \"../experimental/MediaTransformation.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet } from \"../experimental/subscribeToNoTypeObjectSet.js\";\nexport {\n transformAndWait,\n type TransformOptions,\n} from \"../experimental/transformAndWait.js\";\nexport {\n MediaTransformationError,\n MediaTransformationFailedError,\n MediaTransformationTimeoutError,\n} from \"../object/MediaTransformationErrors.js\";\n\nexport type { EXPERIMENTAL_BulkLinkResult } from \"../objectSet/BulkLinkResult.js\";\nexport type { MinimalObjectSet } from \"../objectSet/ObjectSet.js\";\n\n// Shapes (unstable — will graduate to @osdk/api/shapes when stable)\nexport {\n configToShapeDefinition,\n createShapeBuilder,\n isSourcePkSymbol,\n ShapeNullabilityError,\n SourcePrimaryKeySymbol,\n} from \"../shapes/index.js\";\n\nexport type {\n InferShapeDefinition,\n InlineLinkConfig,\n InlineShapeConfig,\n LinkLoadConfig,\n LinkStatus,\n NullabilityViolation,\n PropertyType,\n RequiredProperty,\n ShapeBaseType,\n ShapeBuilder,\n ShapeDefinition,\n ShapeDerivedLinks,\n ShapeInstance,\n ShapeLinkBuilder,\n ShapeLinkResult,\n} from \"../shapes/index.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,2DAA2D,QAAQ,6CAA6C;AACzH,SAASC,gDAAgD,QAAQ,kCAAkC;AACnG,SACEC,iDAAiD,QAE5C,mCAAmC;AAC1C,SAASC,+CAA+C,QAAQ,iCAAiC;AA+CjG,SAASC,6DAA6D,QAAQ,+CAA+C;AAC7H,SACEC,gBAAgB,QAEX,qCAAqC;AAC5C,SACEC,wBAAwB,EACxBC,8BAA8B,EAC9BC,+BAA+B,QAC1B,wCAAwC;AAK/C;AACA,SACEC,uBAAuB,EACvBC,kBAAkB,EAClBC,gBAAgB,EAChBC,qBAAqB,EACrBC,sBAAsB,QACjB,oBAAoB","ignoreList":[]}
@@ -54,6 +54,25 @@ declare const __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks: Experiment<"2.0.8
54
54
  getBulkLinks: getBulkLinksFn;
55
55
  }>;
56
56
 
57
+ /**
58
+ * A language for OCR (Optical Character Recognition) operations.
59
+ *
60
+ * @experimental
61
+ */
62
+ type OcrLanguage = "AFR" | "AMH" | "ARA" | "ASM" | "AZE" | "AZE_CYRL" | "BEL" | "BEN" | "BOD" | "BOS" | "BRE" | "BUL" | "CAT" | "CEB" | "CES" | "CHI_SIM" | "CHI_SIM_VERT" | "CHI_TRA" | "CHI_TRA_VERT" | "CHR" | "COS" | "CYM" | "DAN" | "DEU" | "DIV" | "DZO" | "ELL" | "ENG" | "ENM" | "EPO" | "EST" | "EUS" | "FAO" | "FAS" | "FIL" | "FIN" | "FRA" | "FRM" | "FRY" | "GLA" | "GLE" | "GLG" | "GRC" | "GUJ" | "HAT" | "HEB" | "HIN" | "HRV" | "HUN" | "HYE" | "IKU" | "IND" | "ISL" | "ITA" | "ITA_OLD" | "JAV" | "JPN" | "JPN_VERT" | "KAN" | "KAT" | "KAT_OLD" | "KAZ" | "KHM" | "KIR" | "KMR" | "KOR" | "KOR_VERT" | "LAO" | "LAT" | "LAV" | "LIT" | "LTZ" | "MAL" | "MAR" | "MKD" | "MLT" | "MON" | "MRI" | "MSA" | "MYA" | "NEP" | "NLD" | "NOR" | "OCI" | "ORI" | "OSD" | "PAN" | "POL" | "POR" | "PUS" | "QUE" | "RON" | "RUS" | "SAN" | "SIN" | "SLK" | "SLV" | "SND" | "SPA" | "SPA_OLD" | "SQI" | "SRP" | "SRP_LATN" | "SUN" | "SWA" | "SWE" | "SYR" | "TAM" | "TAT" | "TEL" | "TGK" | "THA" | "TIR" | "TON" | "TUR" | "UIG" | "UKR" | "URD" | "UZB" | "UZB_CYRL" | "VIE" | "YID" | "YOR";
63
+ /**
64
+ * A script for OCR (Optical Character Recognition) operations.
65
+ *
66
+ * @experimental
67
+ */
68
+ type OcrScript = "ARABIC" | "ARMENIAN" | "BENGALI" | "CANADIAN_ABORIGINAL" | "CHEROKEE" | "CYRILLIC" | "DEVANAGARI" | "ETHIOPIC" | "FRAKTUR" | "GEORGIAN" | "GREEK" | "GUJARATI" | "GURMUKHI" | "HAN_SIMPLIFIED" | "HAN_SIMPLIFIED_VERT" | "HAN_TRADITIONAL" | "HAN_TRADITIONAL_VERT" | "HANGUL" | "HANGUL_VERT" | "HEBREW" | "JAPANESE" | "JAPANESE_VERT" | "KANNADA" | "KHMER" | "LAO" | "LATIN" | "MALAYALAM" | "MYANMAR" | "ORIYA" | "SINHALA" | "SYRIAC" | "TAMIL" | "TELUGU" | "THAANA" | "THAI" | "TIBETAN" | "VIETNAMESE";
69
+ /**
70
+ * A language for audio transcription operations.
71
+ *
72
+ * @experimental
73
+ */
74
+ type TranscriptionLanguage = "AF" | "AM" | "AR" | "AS" | "AZ" | "BA" | "BE" | "BG" | "BN" | "BO" | "BR" | "BS" | "CA" | "CS" | "CY" | "DA" | "DE" | "EL" | "EN" | "ES" | "ET" | "EU" | "FA" | "FI" | "FO" | "FR" | "GL" | "GU" | "HA" | "HAW" | "HE" | "HI" | "HR" | "HT" | "HU" | "HY" | "ID" | "IS" | "IT" | "JA" | "JW" | "KA" | "KK" | "KM" | "KN" | "KO" | "LA" | "LB" | "LN" | "LO" | "LT" | "LV" | "MG" | "MI" | "MK" | "ML" | "MN" | "MR" | "MS" | "MT" | "MY" | "NE" | "NL" | "NN" | "NO" | "OC" | "PA" | "PL" | "PS" | "PT" | "RO" | "RU" | "SA" | "SD" | "SI" | "SK" | "SL" | "SN" | "SO" | "SQ" | "SR" | "SU" | "SV" | "SW" | "TA" | "TE" | "TG" | "TH" | "TK" | "TL" | "TR" | "TT" | "UK" | "UR" | "UZ" | "VI" | "YI" | "YO" | "YUE" | "ZH" | "AFRIKAANS" | "ALBANIAN" | "AMHARIC" | "ARABIC" | "ARMENIAN" | "ASSAMESE" | "AZERBAIJANI" | "BASHKIR" | "BASQUE" | "BELARUSIAN" | "BENGALI" | "BOSNIAN" | "BRETON" | "BULGARIAN" | "BURMESE" | "CANTONESE" | "CASTILIAN" | "CATALAN" | "CHINESE" | "CROATIAN" | "CZECH" | "DANISH" | "DUTCH" | "ENGLISH" | "ESTONIAN" | "FAROESE" | "FINNISH" | "FLEMISH" | "FRENCH" | "GALICIAN" | "GEORGIAN" | "GERMAN" | "GREEK" | "GUJARATI" | "HAITIAN" | "HAITIAN_CREOLE" | "HAUSA" | "HAWAIIAN" | "HEBREW" | "HINDI" | "HUNGARIAN" | "ICELANDIC" | "INDONESIAN" | "ITALIAN" | "JAPANESE" | "JAVANESE" | "KANNADA" | "KAZAKH" | "KHMER" | "KOREAN" | "LAO" | "LATIN" | "LATVIAN" | "LETZEBURGESCH" | "LINGALA" | "LITHUANIAN" | "LUXEMBOURGISH" | "MACEDONIAN" | "MALAGASY" | "MALAY" | "MALAYALAM" | "MALTESE" | "MANDARIN" | "MAORI" | "MARATHI" | "MOLDAVIAN" | "MOLDOVAN" | "MONGOLIAN" | "MYANMAR" | "NEPALI" | "NORWEGIAN" | "NYNORSK" | "OCCITAN" | "PANJABI" | "PASHTO" | "PERSIAN" | "POLISH" | "PORTUGUESE" | "PUNJABI" | "PUSHTO" | "ROMANIAN" | "RUSSIAN" | "SANSKRIT" | "SERBIAN" | "SHONA" | "SINDHI" | "SINHALA" | "SINHALESE" | "SLOVAK" | "SLOVENIAN" | "SOMALI" | "SPANISH" | "SUNDANESE" | "SWAHILI" | "SWEDISH" | "TAGALOG" | "TAJIK" | "TAMIL" | "TATAR" | "TELUGU" | "THAI" | "TIBETAN" | "TURKISH" | "TURKMEN" | "UKRAINIAN" | "URDU" | "UZBEK" | "VALENCIAN" | "VIETNAMESE" | "WELSH" | "YIDDISH" | "YORUBA";
75
+
57
76
  /**
58
77
  * A media transformation request. The `$`-prefixed key selects the
59
78
  * transformation kind, and each variant requires specific encoding and
@@ -223,8 +242,8 @@ type OcrOutputFormat = OcrOutputFormat.$hocr | OcrOutputFormat.$text;
223
242
  * @experimental
224
243
  */
225
244
  interface OcrLanguageOrScriptOptions {
226
- $language: string;
227
- $script: string;
245
+ $language: OcrLanguage;
246
+ $script: OcrScript;
228
247
  }
229
248
  declare namespace OcrLanguageOrScript {
230
249
  interface $language extends Just<"$language", OcrLanguageOrScriptOptions> {
@@ -244,7 +263,7 @@ interface OcrParameters {
244
263
  * @experimental
245
264
  */
246
265
  interface LayoutAwareExtractionParameters {
247
- $languages: Array<string>;
266
+ $languages: Array<OcrLanguage>;
248
267
  }
249
268
  /**
250
269
  * @experimental
@@ -526,7 +545,7 @@ type VideoToAudioOperation = VideoToAudioOperation.$extractAudio;
526
545
  */
527
546
  interface AudioToTextOperationOptions {
528
547
  $transcribe: {
529
- $language?: string;
548
+ $language?: TranscriptionLanguage;
530
549
  $diarize?: boolean;
531
550
  $outputFormat?: TranscribeOutputFormat;
532
551
  $performanceMode?: "MORE_ECONOMICAL" | "MORE_PERFORMANT";
@@ -910,4 +929,4 @@ declare function createShapeBuilder<BASE extends ObjectOrInterfaceDefinition>(ba
910
929
 
911
930
  declare function configToShapeDefinition<BASE extends ObjectOrInterfaceDefinition, const C extends InlineShapeConfig<BASE>>(baseType: BASE, config: C): InferShapeDefinition<BASE, C>;
912
931
 
913
- export { AnnotateGeometry, type Annotation, type AudioEncoding, AudioOperation, AudioToTextOperation, type BoundingBox, type Color, ContrastType, DicomToImageOperation, type DocumentTextExtractionConfig, DocumentToDocumentOperation, DocumentToImageOperation, DocumentToTextOperation, type EXPERIMENTAL_BulkLinkResult, EmailToAttachmentOperation, EmailToTextOperation, type Experiment, type ExperimentFns, type FetchPageByRidPayload, ImageOperation, type ImagePixelCoordinate, type ImageRegionPolygon, type ImageSpec, ImageToDocumentOperation, ImageToEmbeddingOperation, ImageToTextOperation, type InferShapeDefinition, type InlineLinkConfig, type InlineShapeConfig, type LayoutAwareExtractionParameters, type LlmSpec, MediaTransformation, MediaTransformationError, MediaTransformationFailedError, MediaTransformationTimeoutError, OcrLanguageOrScript, OcrOutputFormat, type OcrParameters, type PageRange, PropertyType, RequiredProperty, ShapeBuilder, ShapeDefinition, ShapeLinkBuilder, SpreadsheetToTextOperation, TranscribeOutputFormat, type TransformOptions, VideoOperation, VideoToArchiveOperation, VideoToAudioOperation, VideoToImageOperation, VideoToTextOperation, VlmPreprocessingConfig, __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction, __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid, __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid, __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks, __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet, configToShapeDefinition, createShapeBuilder, transformAndWait };
932
+ export { AnnotateGeometry, type Annotation, type ArchiveEncoding, type AudioEncoding, AudioOperation, AudioToTextOperation, type BoundingBox, type Color, ContrastType, DicomToImageOperation, type DocumentEncoding, type DocumentTextExtractionConfig, DocumentToDocumentOperation, DocumentToImageOperation, DocumentToTextOperation, type EXPERIMENTAL_BulkLinkResult, EmailToAttachmentOperation, EmailToTextOperation, type Experiment, type ExperimentFns, type FetchPageByRidPayload, ImageOperation, type ImagePixelCoordinate, type ImageRegionPolygon, type ImageSpec, ImageToDocumentOperation, ImageToEmbeddingOperation, ImageToTextOperation, type ImageryEncoding, type InferShapeDefinition, type InlineLinkConfig, type InlineShapeConfig, type LayoutAwareExtractionParameters, type LlmSpec, MediaTransformation, MediaTransformationError, MediaTransformationFailedError, MediaTransformationTimeoutError, type OcrLanguage, OcrLanguageOrScript, OcrOutputFormat, type OcrParameters, type OcrScript, type PageRange, PropertyType, RequiredProperty, ShapeBuilder, ShapeDefinition, ShapeLinkBuilder, SpreadsheetToTextOperation, TranscribeOutputFormat, type TranscriptionLanguage, type TransformOptions, type VideoEncoding, VideoOperation, VideoToArchiveOperation, VideoToAudioOperation, VideoToImageOperation, VideoToTextOperation, VlmPreprocessingConfig, __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction, __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid, __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid, __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks, __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet, configToShapeDefinition, createShapeBuilder, transformAndWait };
@@ -1 +1 @@
1
- {"version":3,"file":"MediaTransformation.js","names":["MediaTransformation","OcrOutputFormat","OcrLanguageOrScript","TranscribeOutputFormat","VlmPreprocessingConfig","AnnotateGeometry","ContrastType","ImageOperation","VideoOperation","AudioOperation","VideoToAudioOperation","AudioToTextOperation","EmailToTextOperation","EmailToAttachmentOperation","SpreadsheetToTextOperation","VideoToArchiveOperation","VideoToTextOperation","ImageToTextOperation","VideoToImageOperation","ImageToDocumentOperation","DicomToImageOperation","DocumentToDocumentOperation","DocumentToImageOperation","ImageToEmbeddingOperation","DocumentToTextOperation"],"sources":["MediaTransformation.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Just } from \"../aggregate/Just.js\";\n\n// ─── Top-level transformation ─────────────────────────────────────────────────\n\n/**\n * A media transformation request. The `$`-prefixed key selects the\n * transformation kind, and each variant requires specific encoding and\n * operation fields.\n *\n * @see {@link https://www.palantir.com/docs/foundry/api/v2/media-sets-v2-resources/media-sets/transform-media-item/ | Transform Media Item}\n * @experimental\n */\nexport interface MediaTransformationOptions {\n $image: {\n $encoding: ImageryEncoding;\n $operations: Array<ImageOperation>;\n };\n $video: { $encoding: VideoEncoding; $operation: VideoOperation };\n $audio: { $operation: AudioOperation };\n $emailToText: { $operation: EmailToTextOperation };\n $spreadsheetToText: { $operation: SpreadsheetToTextOperation };\n $videoToAudio: {\n $encoding: AudioEncoding;\n $operation: VideoToAudioOperation;\n };\n $audioToText: { $operation: AudioToTextOperation };\n $emailToAttachment: { $operation: EmailToAttachmentOperation };\n $videoToArchive: {\n $encoding: ArchiveEncoding;\n $operation: VideoToArchiveOperation;\n };\n $videoToText: { $operation: VideoToTextOperation };\n $imageToText: { $operation: ImageToTextOperation };\n $videoToImage: {\n $encoding: ImageryEncoding;\n $operation: VideoToImageOperation;\n };\n $imageToDocument: { $operation: ImageToDocumentOperation };\n $dicomToImage: {\n $encoding: ImageryEncoding;\n $operation: DicomToImageOperation;\n };\n $documentToDocument: {\n $encoding: DocumentEncoding;\n $operation: DocumentToDocumentOperation;\n };\n $documentToImage: {\n $encoding: ImageryEncoding;\n $operation: DocumentToImageOperation;\n };\n $imageToEmbedding: { $operation: ImageToEmbeddingOperation };\n $documentToText: { $operation: DocumentToTextOperation };\n}\n\n/**\n * @experimental\n */\nexport namespace MediaTransformation {\n export interface $image extends Just<\"$image\", MediaTransformationOptions> {}\n export interface $video extends Just<\"$video\", MediaTransformationOptions> {}\n export interface $audio extends Just<\"$audio\", MediaTransformationOptions> {}\n export interface $emailToText extends Just<\n \"$emailToText\",\n MediaTransformationOptions\n > {}\n export interface $spreadsheetToText extends Just<\n \"$spreadsheetToText\",\n MediaTransformationOptions\n > {}\n export interface $videoToAudio extends Just<\n \"$videoToAudio\",\n MediaTransformationOptions\n > {}\n export interface $audioToText extends Just<\n \"$audioToText\",\n MediaTransformationOptions\n > {}\n export interface $emailToAttachment extends Just<\n \"$emailToAttachment\",\n MediaTransformationOptions\n > {}\n export interface $videoToArchive extends Just<\n \"$videoToArchive\",\n MediaTransformationOptions\n > {}\n export interface $videoToText extends Just<\n \"$videoToText\",\n MediaTransformationOptions\n > {}\n export interface $imageToText extends Just<\n \"$imageToText\",\n MediaTransformationOptions\n > {}\n export interface $videoToImage extends Just<\n \"$videoToImage\",\n MediaTransformationOptions\n > {}\n export interface $imageToDocument extends Just<\n \"$imageToDocument\",\n MediaTransformationOptions\n > {}\n export interface $dicomToImage extends Just<\n \"$dicomToImage\",\n MediaTransformationOptions\n > {}\n export interface $documentToDocument extends Just<\n \"$documentToDocument\",\n MediaTransformationOptions\n > {}\n export interface $documentToImage extends Just<\n \"$documentToImage\",\n MediaTransformationOptions\n > {}\n export interface $imageToEmbedding extends Just<\n \"$imageToEmbedding\",\n MediaTransformationOptions\n > {}\n export interface $documentToText extends Just<\n \"$documentToText\",\n MediaTransformationOptions\n > {}\n}\n\n/**\n * @experimental\n */\nexport type MediaTransformation =\n | MediaTransformation.$image\n | MediaTransformation.$video\n | MediaTransformation.$audio\n | MediaTransformation.$emailToText\n | MediaTransformation.$spreadsheetToText\n | MediaTransformation.$videoToAudio\n | MediaTransformation.$audioToText\n | MediaTransformation.$emailToAttachment\n | MediaTransformation.$videoToArchive\n | MediaTransformation.$videoToText\n | MediaTransformation.$imageToText\n | MediaTransformation.$videoToImage\n | MediaTransformation.$imageToDocument\n | MediaTransformation.$dicomToImage\n | MediaTransformation.$documentToDocument\n | MediaTransformation.$documentToImage\n | MediaTransformation.$imageToEmbedding\n | MediaTransformation.$documentToText;\n\n// ─── Encoding types ───────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport type ImageryEncoding = \"jpg\" | \"png\" | \"tiff\" | \"webp\";\n\n/**\n * @experimental\n */\nexport type VideoEncoding = \"mp4\" | \"mov\" | \"mkv\" | \"ts\";\n\n/**\n * @experimental\n */\nexport type AudioEncoding =\n | \"mp3\"\n | \"ts\"\n | {\n $wav: {\n $sampleRate?: number;\n $audioChannelLayout?: { $numberOfChannels: number };\n };\n };\n\n/**\n * @experimental\n */\nexport type ArchiveEncoding = \"tar\";\n\n/**\n * @experimental\n */\nexport type DocumentEncoding = \"pdf\";\n\n// ─── Shared sub-types ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface PageRange {\n $startPageInclusive?: number;\n $endPageExclusive?: number;\n}\n\n/**\n * @experimental\n */\nexport interface OcrOutputFormatOptions {\n $hocr: {};\n $text: {};\n}\n\nexport namespace OcrOutputFormat {\n export interface $hocr extends Just<\"$hocr\", OcrOutputFormatOptions> {}\n export interface $text extends Just<\"$text\", OcrOutputFormatOptions> {}\n}\n\nexport type OcrOutputFormat = OcrOutputFormat.$hocr | OcrOutputFormat.$text;\n\n/**\n * @experimental\n */\nexport interface OcrLanguageOrScriptOptions {\n $language: string;\n $script: string;\n}\n\nexport namespace OcrLanguageOrScript {\n export interface $language extends Just<\n \"$language\",\n OcrLanguageOrScriptOptions\n > {}\n export interface $script extends Just<\n \"$script\",\n OcrLanguageOrScriptOptions\n > {}\n}\n\nexport type OcrLanguageOrScript =\n | OcrLanguageOrScript.$language\n | OcrLanguageOrScript.$script;\n\n/**\n * @experimental\n */\nexport interface OcrParameters {\n $outputFormat: OcrOutputFormat;\n $languages: Array<OcrLanguageOrScript>;\n}\n\n/**\n * @experimental\n */\nexport interface LayoutAwareExtractionParameters {\n $languages: Array<string>;\n}\n\n/**\n * @experimental\n */\nexport interface DocumentTextExtractionConfig {\n $format?: \"TEXT\" | \"MARKDOWN\" | \"HTML\";\n $mode?: \"AUTO\" | \"ELECTRONIC\" | \"SCAN\";\n $languages: Array<OcrLanguageOrScript>;\n}\n\n/**\n * @experimental\n */\nexport interface TranscribeOutputFormatOptions {\n $plainTextNoSegmentData: { $addTimestamps: boolean };\n $json: {};\n $pttml: {};\n}\n\nexport namespace TranscribeOutputFormat {\n export interface $plainTextNoSegmentData extends Just<\n \"$plainTextNoSegmentData\",\n TranscribeOutputFormatOptions\n > {}\n export interface $json extends Just<\"$json\", TranscribeOutputFormatOptions> {}\n export interface $pttml extends Just<\n \"$pttml\",\n TranscribeOutputFormatOptions\n > {}\n}\n\nexport type TranscribeOutputFormat =\n | TranscribeOutputFormat.$plainTextNoSegmentData\n | TranscribeOutputFormat.$json\n | TranscribeOutputFormat.$pttml;\n\n/**\n * @experimental\n */\nexport interface LlmSpec {\n $chat: {\n $modelLocator: string;\n $systemPrompt: string;\n $userPrompt: string;\n $maxTokens?: number;\n };\n}\n\n/**\n * @experimental\n */\nexport interface VlmPreprocessingConfigOptions {\n $layoutAware: {\n $transformationConfig: DocumentTextExtractionConfig;\n $cropConfig?: { $tablePrompt: string };\n };\n $extractText: DocumentTextExtractionConfig;\n}\n\nexport namespace VlmPreprocessingConfig {\n export interface $layoutAware extends Just<\n \"$layoutAware\",\n VlmPreprocessingConfigOptions\n > {}\n export interface $extractText extends Just<\n \"$extractText\",\n VlmPreprocessingConfigOptions\n > {}\n}\n\nexport type VlmPreprocessingConfig =\n | VlmPreprocessingConfig.$layoutAware\n | VlmPreprocessingConfig.$extractText;\n\n/**\n * @experimental\n */\nexport interface ImageSpec {\n $resizingMode: \"RESIZING\" | \"FIT_INTO_BOUNDING_BOX\";\n $height?: number;\n $width?: number;\n $mimeType: \"BMP\" | \"TIFF\" | \"NITF\" | \"JP2K\" | \"JPG\" | \"PNG\" | \"WEBP\";\n}\n\n/**\n * @experimental\n */\nexport interface Annotation {\n $geometry: AnnotateGeometry;\n $label?: string;\n $color?: Color;\n $thickness?: number;\n $fontSize?: number;\n}\n\n/**\n * @experimental\n */\nexport interface AnnotateGeometryOptions {\n $boundingBox: BoundingBox;\n}\n\nexport namespace AnnotateGeometry {\n export interface $boundingBox extends Just<\n \"$boundingBox\",\n AnnotateGeometryOptions\n > {}\n}\n\nexport type AnnotateGeometry = AnnotateGeometry.$boundingBox;\n\n/**\n * @experimental\n */\nexport interface BoundingBox {\n $left: number;\n $top: number;\n $width: number;\n $height: number;\n}\n\n/**\n * @experimental\n */\nexport interface Color {\n $r: number;\n $g: number;\n $b: number;\n $a?: number;\n}\n\n/**\n * @experimental\n */\nexport interface ContrastTypeOptions {\n $equalize: {};\n $rayleigh: { $sigma: number };\n $binarize: { $threshold?: number };\n}\n\nexport namespace ContrastType {\n export interface $equalize extends Just<\"$equalize\", ContrastTypeOptions> {}\n export interface $rayleigh extends Just<\"$rayleigh\", ContrastTypeOptions> {}\n export interface $binarize extends Just<\"$binarize\", ContrastTypeOptions> {}\n}\n\nexport type ContrastType =\n | ContrastType.$equalize\n | ContrastType.$rayleigh\n | ContrastType.$binarize;\n\n/**\n * @experimental\n */\nexport interface ImagePixelCoordinate {\n $x: number;\n $y: number;\n}\n\n/**\n * @experimental\n */\nexport type ImageRegionPolygon = Array<ImagePixelCoordinate>;\n\n// ─── Image operations ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface ImageOperationOptions {\n $resize: { $width?: number; $height?: number; $autoOrient?: boolean };\n $resizeToFitBoundingBox: { $width: number; $height: number };\n $rotate: { $angle: \"DEGREE_90\" | \"DEGREE_180\" | \"DEGREE_270\" };\n $crop: {\n $xOffset: number;\n $yOffset: number;\n $width: number;\n $height: number;\n };\n $grayscale: {};\n $tile: { $zoom: number; $x: number; $y: number };\n $annotate: { $annotations: Array<Annotation> };\n $contrast: { $contrastType: ContrastType };\n $encrypt: {\n $polygons: Array<ImageRegionPolygon>;\n $cipherLicenseRid: string;\n };\n $decrypt: {\n $polygons: Array<ImageRegionPolygon>;\n $cipherLicenseRid: string;\n };\n}\n\n/**\n * @experimental\n */\nexport namespace ImageOperation {\n export interface $resize extends Just<\"$resize\", ImageOperationOptions> {}\n export interface $resizeToFitBoundingBox extends Just<\n \"$resizeToFitBoundingBox\",\n ImageOperationOptions\n > {}\n export interface $rotate extends Just<\"$rotate\", ImageOperationOptions> {}\n export interface $crop extends Just<\"$crop\", ImageOperationOptions> {}\n export interface $grayscale extends Just<\n \"$grayscale\",\n ImageOperationOptions\n > {}\n export interface $tile extends Just<\"$tile\", ImageOperationOptions> {}\n export interface $annotate extends Just<\"$annotate\", ImageOperationOptions> {}\n export interface $contrast extends Just<\"$contrast\", ImageOperationOptions> {}\n export interface $encrypt extends Just<\"$encrypt\", ImageOperationOptions> {}\n export interface $decrypt extends Just<\"$decrypt\", ImageOperationOptions> {}\n}\n\n/**\n * @experimental\n */\nexport type ImageOperation =\n | ImageOperation.$resize\n | ImageOperation.$resizeToFitBoundingBox\n | ImageOperation.$rotate\n | ImageOperation.$crop\n | ImageOperation.$grayscale\n | ImageOperation.$tile\n | ImageOperation.$annotate\n | ImageOperation.$contrast\n | ImageOperation.$encrypt\n | ImageOperation.$decrypt;\n\n// ─── Video operations ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface VideoOperationOptions {\n $transcode: {};\n $chunk: { $chunkDurationMilliseconds: number; $chunkIndex: number };\n}\n\n/**\n * @experimental\n */\nexport namespace VideoOperation {\n export interface $transcode extends Just<\n \"$transcode\",\n VideoOperationOptions\n > {}\n export interface $chunk extends Just<\"$chunk\", VideoOperationOptions> {}\n}\n\n/**\n * @experimental\n */\nexport type VideoOperation = VideoOperation.$transcode | VideoOperation.$chunk;\n\n// ─── Audio operations ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface AudioOperationOptions {\n $channel: { $encodeFormat: AudioEncoding; $channel: number };\n $chunk: {\n $encodeFormat: AudioEncoding;\n $chunkDurationMilliseconds: number;\n $chunkIndex: number;\n };\n $convert: { $encodeFormat: AudioEncoding };\n}\n\n/**\n * @experimental\n */\nexport namespace AudioOperation {\n export interface $channel extends Just<\"$channel\", AudioOperationOptions> {}\n export interface $chunk extends Just<\"$chunk\", AudioOperationOptions> {}\n export interface $convert extends Just<\"$convert\", AudioOperationOptions> {}\n}\n\n/**\n * @experimental\n */\nexport type AudioOperation =\n | AudioOperation.$channel\n | AudioOperation.$chunk\n | AudioOperation.$convert;\n\n// ─── Other operation types ────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface VideoToAudioOperationOptions {\n $extractAudio: {};\n}\n\nexport namespace VideoToAudioOperation {\n export interface $extractAudio extends Just<\n \"$extractAudio\",\n VideoToAudioOperationOptions\n > {}\n}\n\nexport type VideoToAudioOperation = VideoToAudioOperation.$extractAudio;\n\n/**\n * @experimental\n */\nexport interface AudioToTextOperationOptions {\n $transcribe: {\n $language?: string;\n $diarize?: boolean;\n $outputFormat?: TranscribeOutputFormat;\n $performanceMode?: \"MORE_ECONOMICAL\" | \"MORE_PERFORMANT\";\n };\n $waveform: { $peaksPerSecond: number };\n}\n\nexport namespace AudioToTextOperation {\n export interface $transcribe extends Just<\n \"$transcribe\",\n AudioToTextOperationOptions\n > {}\n export interface $waveform extends Just<\n \"$waveform\",\n AudioToTextOperationOptions\n > {}\n}\n\nexport type AudioToTextOperation =\n | AudioToTextOperation.$transcribe\n | AudioToTextOperation.$waveform;\n\n/**\n * @experimental\n */\nexport interface EmailToTextOperationOptions {\n $getEmailBody: { $outputFormat: \"TEXT\" | \"HTML\" };\n}\n\nexport namespace EmailToTextOperation {\n export interface $getEmailBody extends Just<\n \"$getEmailBody\",\n EmailToTextOperationOptions\n > {}\n}\n\nexport type EmailToTextOperation = EmailToTextOperation.$getEmailBody;\n\n/**\n * @experimental\n */\nexport interface EmailToAttachmentOperationOptions {\n $getEmailAttachment: { $mimeType: string; $attachmentIndex: number };\n}\n\nexport namespace EmailToAttachmentOperation {\n export interface $getEmailAttachment extends Just<\n \"$getEmailAttachment\",\n EmailToAttachmentOperationOptions\n > {}\n}\n\nexport type EmailToAttachmentOperation =\n EmailToAttachmentOperation.$getEmailAttachment;\n\n/**\n * @experimental\n */\nexport interface SpreadsheetToTextOperationOptions {\n $convertSheetToJson: { $sheetName: string };\n}\n\nexport namespace SpreadsheetToTextOperation {\n export interface $convertSheetToJson extends Just<\n \"$convertSheetToJson\",\n SpreadsheetToTextOperationOptions\n > {}\n}\n\nexport type SpreadsheetToTextOperation =\n SpreadsheetToTextOperation.$convertSheetToJson;\n\n/**\n * @experimental\n */\nexport interface VideoToArchiveOperationOptions {\n $extractSceneFrames: {\n $encoding: ImageryEncoding;\n $sceneScore?: \"MORE_SENSITIVE\" | \"STANDARD\" | \"LESS_SENSITIVE\";\n };\n}\n\nexport namespace VideoToArchiveOperation {\n export interface $extractSceneFrames extends Just<\n \"$extractSceneFrames\",\n VideoToArchiveOperationOptions\n > {}\n}\n\nexport type VideoToArchiveOperation =\n VideoToArchiveOperation.$extractSceneFrames;\n\n/**\n * @experimental\n */\nexport interface VideoToTextOperationOptions {\n $getTimestampsForSceneFrames: {\n $sceneScore?: \"MORE_SENSITIVE\" | \"STANDARD\" | \"LESS_SENSITIVE\";\n };\n}\n\nexport namespace VideoToTextOperation {\n export interface $getTimestampsForSceneFrames extends Just<\n \"$getTimestampsForSceneFrames\",\n VideoToTextOperationOptions\n > {}\n}\n\nexport type VideoToTextOperation =\n VideoToTextOperation.$getTimestampsForSceneFrames;\n\n/**\n * @experimental\n */\nexport interface ImageToTextOperationOptions {\n $extractLayoutAwareContent: {\n $parameters: LayoutAwareExtractionParameters;\n };\n $ocr: { $parameters: OcrParameters };\n}\n\nexport namespace ImageToTextOperation {\n export interface $extractLayoutAwareContent extends Just<\n \"$extractLayoutAwareContent\",\n ImageToTextOperationOptions\n > {}\n export interface $ocr extends Just<\"$ocr\", ImageToTextOperationOptions> {}\n}\n\nexport type ImageToTextOperation =\n | ImageToTextOperation.$extractLayoutAwareContent\n | ImageToTextOperation.$ocr;\n\n/**\n * @experimental\n */\nexport interface VideoToImageOperationOptions {\n $extractFirstFrame: { $height?: number; $width?: number };\n $extractFramesAtTimestamps: {\n $height?: number;\n $width?: number;\n $timestamp: number;\n };\n}\n\nexport namespace VideoToImageOperation {\n export interface $extractFirstFrame extends Just<\n \"$extractFirstFrame\",\n VideoToImageOperationOptions\n > {}\n export interface $extractFramesAtTimestamps extends Just<\n \"$extractFramesAtTimestamps\",\n VideoToImageOperationOptions\n > {}\n}\n\nexport type VideoToImageOperation =\n | VideoToImageOperation.$extractFirstFrame\n | VideoToImageOperation.$extractFramesAtTimestamps;\n\n/**\n * @experimental\n */\nexport interface ImageToDocumentOperationOptions {\n $createPdf: {};\n}\n\nexport namespace ImageToDocumentOperation {\n export interface $createPdf extends Just<\n \"$createPdf\",\n ImageToDocumentOperationOptions\n > {}\n}\n\nexport type ImageToDocumentOperation = ImageToDocumentOperation.$createPdf;\n\n/**\n * @experimental\n */\nexport interface DicomToImageOperationOptions {\n $renderImageLayer: {\n $layerNumber?: number;\n $height?: number;\n $width?: number;\n };\n}\n\nexport namespace DicomToImageOperation {\n export interface $renderImageLayer extends Just<\n \"$renderImageLayer\",\n DicomToImageOperationOptions\n > {}\n}\n\nexport type DicomToImageOperation = DicomToImageOperation.$renderImageLayer;\n\n/**\n * @experimental\n */\nexport interface DocumentToDocumentOperationOptions {\n $slicePdfRange: {\n $startPageInclusive: number;\n $endPageExclusive: number;\n $strictlyEnforceEndPage?: boolean;\n };\n $convertDocument: {};\n}\n\nexport namespace DocumentToDocumentOperation {\n export interface $slicePdfRange extends Just<\n \"$slicePdfRange\",\n DocumentToDocumentOperationOptions\n > {}\n export interface $convertDocument extends Just<\n \"$convertDocument\",\n DocumentToDocumentOperationOptions\n > {}\n}\n\nexport type DocumentToDocumentOperation =\n | DocumentToDocumentOperation.$slicePdfRange\n | DocumentToDocumentOperation.$convertDocument;\n\n/**\n * @experimental\n */\nexport interface DocumentToImageOperationOptions {\n $renderPage: { $pageNumber?: number; $height?: number; $width?: number };\n $renderPageToFitBoundingBox: {\n $pageNumber?: number;\n $width: number;\n $height: number;\n };\n}\n\nexport namespace DocumentToImageOperation {\n export interface $renderPage extends Just<\n \"$renderPage\",\n DocumentToImageOperationOptions\n > {}\n export interface $renderPageToFitBoundingBox extends Just<\n \"$renderPageToFitBoundingBox\",\n DocumentToImageOperationOptions\n > {}\n}\n\nexport type DocumentToImageOperation =\n | DocumentToImageOperation.$renderPage\n | DocumentToImageOperation.$renderPageToFitBoundingBox;\n\n/**\n * @experimental\n */\nexport interface ImageToEmbeddingOperationOptions {\n $generateEmbedding: { $modelId: string };\n}\n\nexport namespace ImageToEmbeddingOperation {\n export interface $generateEmbedding extends Just<\n \"$generateEmbedding\",\n ImageToEmbeddingOperationOptions\n > {}\n}\n\nexport type ImageToEmbeddingOperation =\n ImageToEmbeddingOperation.$generateEmbedding;\n\n/**\n * @experimental\n */\nexport interface DocumentToTextOperationOptions {\n $extractAllText: {};\n $extractTableOfContents: {};\n $getPdfPageDimensions: {};\n $extractFormFields: {};\n $extractUnstructuredTextFromPage: { $pageNumber: number };\n $extractTextFromPagesToArray: {\n $startPage?: number;\n $endPage?: number;\n };\n $ocrOnPage: {\n $pageNumber: number;\n $parameters: OcrParameters;\n };\n $ocrOnPages: {\n $pageNumber: number;\n $parameters: OcrParameters;\n };\n $extractLayoutAwareContent: {\n $parameters: LayoutAwareExtractionParameters;\n };\n $extractLayoutAwareTextV2: {\n $pageRange?: PageRange;\n $config: DocumentTextExtractionConfig;\n };\n $extractTextV2: {\n $pageRange?: PageRange;\n $config: DocumentTextExtractionConfig;\n };\n $extractVlmText: {\n $llmSpec: LlmSpec;\n $preprocessingConfiguration?: VlmPreprocessingConfig;\n $imageSpec?: ImageSpec;\n $outputFormat: \"TEXT\" | \"MARKDOWN\" | \"HTML\";\n $pageRange?: PageRange;\n };\n}\n\nexport namespace DocumentToTextOperation {\n export interface $extractAllText extends Just<\n \"$extractAllText\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractTableOfContents extends Just<\n \"$extractTableOfContents\",\n DocumentToTextOperationOptions\n > {}\n export interface $getPdfPageDimensions extends Just<\n \"$getPdfPageDimensions\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractFormFields extends Just<\n \"$extractFormFields\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractUnstructuredTextFromPage extends Just<\n \"$extractUnstructuredTextFromPage\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractTextFromPagesToArray extends Just<\n \"$extractTextFromPagesToArray\",\n DocumentToTextOperationOptions\n > {}\n export interface $ocrOnPage extends Just<\n \"$ocrOnPage\",\n DocumentToTextOperationOptions\n > {}\n export interface $ocrOnPages extends Just<\n \"$ocrOnPages\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractLayoutAwareContent extends Just<\n \"$extractLayoutAwareContent\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractLayoutAwareTextV2 extends Just<\n \"$extractLayoutAwareTextV2\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractTextV2 extends Just<\n \"$extractTextV2\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractVlmText extends Just<\n \"$extractVlmText\",\n DocumentToTextOperationOptions\n > {}\n}\n\nexport type DocumentToTextOperation =\n | DocumentToTextOperation.$extractAllText\n | DocumentToTextOperation.$extractTableOfContents\n | DocumentToTextOperation.$getPdfPageDimensions\n | DocumentToTextOperation.$extractFormFields\n | DocumentToTextOperation.$extractUnstructuredTextFromPage\n | DocumentToTextOperation.$extractTextFromPagesToArray\n | DocumentToTextOperation.$ocrOnPage\n | DocumentToTextOperation.$ocrOnPages\n | DocumentToTextOperation.$extractLayoutAwareContent\n | DocumentToTextOperation.$extractLayoutAwareTextV2\n | DocumentToTextOperation.$extractTextV2\n | DocumentToTextOperation.$extractVlmText;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA2CA;AACA;AACA;AAFA,WAGiBA,mBAAmB;AAkEpC;AACA;AACA;AAqBA;AAEA;AACA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FA,WAOiBC,yBAAyB;AAU1C;AACA;AACA;AAFA,WAyCiBC,uBAAuB","ignoreList":[]}
1
+ {"version":3,"file":"MediaTransformation.js","names":["MediaTransformation","OcrOutputFormat","OcrLanguageOrScript","TranscribeOutputFormat","VlmPreprocessingConfig","AnnotateGeometry","ContrastType","ImageOperation","VideoOperation","AudioOperation","VideoToAudioOperation","AudioToTextOperation","EmailToTextOperation","EmailToAttachmentOperation","SpreadsheetToTextOperation","VideoToArchiveOperation","VideoToTextOperation","ImageToTextOperation","VideoToImageOperation","ImageToDocumentOperation","DicomToImageOperation","DocumentToDocumentOperation","DocumentToImageOperation","ImageToEmbeddingOperation","DocumentToTextOperation"],"sources":["MediaTransformation.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Just } from \"../aggregate/Just.js\";\nimport type {\n OcrLanguage,\n OcrScript,\n TranscriptionLanguage,\n} from \"./MediaTransformationLanguages.js\";\n\nexport type { OcrLanguage, OcrScript, TranscriptionLanguage };\n\n// ─── Top-level transformation ─────────────────────────────────────────────────\n\n/**\n * A media transformation request. The `$`-prefixed key selects the\n * transformation kind, and each variant requires specific encoding and\n * operation fields.\n *\n * @see {@link https://www.palantir.com/docs/foundry/api/v2/media-sets-v2-resources/media-sets/transform-media-item/ | Transform Media Item}\n * @experimental\n */\nexport interface MediaTransformationOptions {\n $image: {\n $encoding: ImageryEncoding;\n $operations: Array<ImageOperation>;\n };\n $video: { $encoding: VideoEncoding; $operation: VideoOperation };\n $audio: { $operation: AudioOperation };\n $emailToText: { $operation: EmailToTextOperation };\n $spreadsheetToText: { $operation: SpreadsheetToTextOperation };\n $videoToAudio: {\n $encoding: AudioEncoding;\n $operation: VideoToAudioOperation;\n };\n $audioToText: { $operation: AudioToTextOperation };\n $emailToAttachment: { $operation: EmailToAttachmentOperation };\n $videoToArchive: {\n $encoding: ArchiveEncoding;\n $operation: VideoToArchiveOperation;\n };\n $videoToText: { $operation: VideoToTextOperation };\n $imageToText: { $operation: ImageToTextOperation };\n $videoToImage: {\n $encoding: ImageryEncoding;\n $operation: VideoToImageOperation;\n };\n $imageToDocument: { $operation: ImageToDocumentOperation };\n $dicomToImage: {\n $encoding: ImageryEncoding;\n $operation: DicomToImageOperation;\n };\n $documentToDocument: {\n $encoding: DocumentEncoding;\n $operation: DocumentToDocumentOperation;\n };\n $documentToImage: {\n $encoding: ImageryEncoding;\n $operation: DocumentToImageOperation;\n };\n $imageToEmbedding: { $operation: ImageToEmbeddingOperation };\n $documentToText: { $operation: DocumentToTextOperation };\n}\n\n/**\n * @experimental\n */\nexport namespace MediaTransformation {\n export interface $image extends Just<\"$image\", MediaTransformationOptions> {}\n export interface $video extends Just<\"$video\", MediaTransformationOptions> {}\n export interface $audio extends Just<\"$audio\", MediaTransformationOptions> {}\n export interface $emailToText extends Just<\n \"$emailToText\",\n MediaTransformationOptions\n > {}\n export interface $spreadsheetToText extends Just<\n \"$spreadsheetToText\",\n MediaTransformationOptions\n > {}\n export interface $videoToAudio extends Just<\n \"$videoToAudio\",\n MediaTransformationOptions\n > {}\n export interface $audioToText extends Just<\n \"$audioToText\",\n MediaTransformationOptions\n > {}\n export interface $emailToAttachment extends Just<\n \"$emailToAttachment\",\n MediaTransformationOptions\n > {}\n export interface $videoToArchive extends Just<\n \"$videoToArchive\",\n MediaTransformationOptions\n > {}\n export interface $videoToText extends Just<\n \"$videoToText\",\n MediaTransformationOptions\n > {}\n export interface $imageToText extends Just<\n \"$imageToText\",\n MediaTransformationOptions\n > {}\n export interface $videoToImage extends Just<\n \"$videoToImage\",\n MediaTransformationOptions\n > {}\n export interface $imageToDocument extends Just<\n \"$imageToDocument\",\n MediaTransformationOptions\n > {}\n export interface $dicomToImage extends Just<\n \"$dicomToImage\",\n MediaTransformationOptions\n > {}\n export interface $documentToDocument extends Just<\n \"$documentToDocument\",\n MediaTransformationOptions\n > {}\n export interface $documentToImage extends Just<\n \"$documentToImage\",\n MediaTransformationOptions\n > {}\n export interface $imageToEmbedding extends Just<\n \"$imageToEmbedding\",\n MediaTransformationOptions\n > {}\n export interface $documentToText extends Just<\n \"$documentToText\",\n MediaTransformationOptions\n > {}\n}\n\n/**\n * @experimental\n */\nexport type MediaTransformation =\n | MediaTransformation.$image\n | MediaTransformation.$video\n | MediaTransformation.$audio\n | MediaTransformation.$emailToText\n | MediaTransformation.$spreadsheetToText\n | MediaTransformation.$videoToAudio\n | MediaTransformation.$audioToText\n | MediaTransformation.$emailToAttachment\n | MediaTransformation.$videoToArchive\n | MediaTransformation.$videoToText\n | MediaTransformation.$imageToText\n | MediaTransformation.$videoToImage\n | MediaTransformation.$imageToDocument\n | MediaTransformation.$dicomToImage\n | MediaTransformation.$documentToDocument\n | MediaTransformation.$documentToImage\n | MediaTransformation.$imageToEmbedding\n | MediaTransformation.$documentToText;\n\n// ─── Encoding types ───────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport type ImageryEncoding = \"jpg\" | \"png\" | \"tiff\" | \"webp\";\n\n/**\n * @experimental\n */\nexport type VideoEncoding = \"mp4\" | \"mov\" | \"mkv\" | \"ts\";\n\n/**\n * @experimental\n */\nexport type AudioEncoding =\n | \"mp3\"\n | \"ts\"\n | {\n $wav: {\n $sampleRate?: number;\n $audioChannelLayout?: { $numberOfChannels: number };\n };\n };\n\n/**\n * @experimental\n */\nexport type ArchiveEncoding = \"tar\";\n\n/**\n * @experimental\n */\nexport type DocumentEncoding = \"pdf\";\n\n// ─── Shared sub-types ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface PageRange {\n $startPageInclusive?: number;\n $endPageExclusive?: number;\n}\n\n/**\n * @experimental\n */\nexport interface OcrOutputFormatOptions {\n $hocr: {};\n $text: {};\n}\n\nexport namespace OcrOutputFormat {\n export interface $hocr extends Just<\"$hocr\", OcrOutputFormatOptions> {}\n export interface $text extends Just<\"$text\", OcrOutputFormatOptions> {}\n}\n\nexport type OcrOutputFormat = OcrOutputFormat.$hocr | OcrOutputFormat.$text;\n\n/**\n * @experimental\n */\nexport interface OcrLanguageOrScriptOptions {\n $language: OcrLanguage;\n $script: OcrScript;\n}\n\nexport namespace OcrLanguageOrScript {\n export interface $language extends Just<\n \"$language\",\n OcrLanguageOrScriptOptions\n > {}\n export interface $script extends Just<\n \"$script\",\n OcrLanguageOrScriptOptions\n > {}\n}\n\nexport type OcrLanguageOrScript =\n | OcrLanguageOrScript.$language\n | OcrLanguageOrScript.$script;\n\n/**\n * @experimental\n */\nexport interface OcrParameters {\n $outputFormat: OcrOutputFormat;\n $languages: Array<OcrLanguageOrScript>;\n}\n\n/**\n * @experimental\n */\nexport interface LayoutAwareExtractionParameters {\n $languages: Array<OcrLanguage>;\n}\n\n/**\n * @experimental\n */\nexport interface DocumentTextExtractionConfig {\n $format?: \"TEXT\" | \"MARKDOWN\" | \"HTML\";\n $mode?: \"AUTO\" | \"ELECTRONIC\" | \"SCAN\";\n $languages: Array<OcrLanguageOrScript>;\n}\n\n/**\n * @experimental\n */\nexport interface TranscribeOutputFormatOptions {\n $plainTextNoSegmentData: { $addTimestamps: boolean };\n $json: {};\n $pttml: {};\n}\n\nexport namespace TranscribeOutputFormat {\n export interface $plainTextNoSegmentData extends Just<\n \"$plainTextNoSegmentData\",\n TranscribeOutputFormatOptions\n > {}\n export interface $json extends Just<\"$json\", TranscribeOutputFormatOptions> {}\n export interface $pttml extends Just<\n \"$pttml\",\n TranscribeOutputFormatOptions\n > {}\n}\n\nexport type TranscribeOutputFormat =\n | TranscribeOutputFormat.$plainTextNoSegmentData\n | TranscribeOutputFormat.$json\n | TranscribeOutputFormat.$pttml;\n\n/**\n * @experimental\n */\nexport interface LlmSpec {\n $chat: {\n $modelLocator: string;\n $systemPrompt: string;\n $userPrompt: string;\n $maxTokens?: number;\n };\n}\n\n/**\n * @experimental\n */\nexport interface VlmPreprocessingConfigOptions {\n $layoutAware: {\n $transformationConfig: DocumentTextExtractionConfig;\n $cropConfig?: { $tablePrompt: string };\n };\n $extractText: DocumentTextExtractionConfig;\n}\n\nexport namespace VlmPreprocessingConfig {\n export interface $layoutAware extends Just<\n \"$layoutAware\",\n VlmPreprocessingConfigOptions\n > {}\n export interface $extractText extends Just<\n \"$extractText\",\n VlmPreprocessingConfigOptions\n > {}\n}\n\nexport type VlmPreprocessingConfig =\n | VlmPreprocessingConfig.$layoutAware\n | VlmPreprocessingConfig.$extractText;\n\n/**\n * @experimental\n */\nexport interface ImageSpec {\n $resizingMode: \"RESIZING\" | \"FIT_INTO_BOUNDING_BOX\";\n $height?: number;\n $width?: number;\n $mimeType: \"BMP\" | \"TIFF\" | \"NITF\" | \"JP2K\" | \"JPG\" | \"PNG\" | \"WEBP\";\n}\n\n/**\n * @experimental\n */\nexport interface Annotation {\n $geometry: AnnotateGeometry;\n $label?: string;\n $color?: Color;\n $thickness?: number;\n $fontSize?: number;\n}\n\n/**\n * @experimental\n */\nexport interface AnnotateGeometryOptions {\n $boundingBox: BoundingBox;\n}\n\nexport namespace AnnotateGeometry {\n export interface $boundingBox extends Just<\n \"$boundingBox\",\n AnnotateGeometryOptions\n > {}\n}\n\nexport type AnnotateGeometry = AnnotateGeometry.$boundingBox;\n\n/**\n * @experimental\n */\nexport interface BoundingBox {\n $left: number;\n $top: number;\n $width: number;\n $height: number;\n}\n\n/**\n * @experimental\n */\nexport interface Color {\n $r: number;\n $g: number;\n $b: number;\n $a?: number;\n}\n\n/**\n * @experimental\n */\nexport interface ContrastTypeOptions {\n $equalize: {};\n $rayleigh: { $sigma: number };\n $binarize: { $threshold?: number };\n}\n\nexport namespace ContrastType {\n export interface $equalize extends Just<\"$equalize\", ContrastTypeOptions> {}\n export interface $rayleigh extends Just<\"$rayleigh\", ContrastTypeOptions> {}\n export interface $binarize extends Just<\"$binarize\", ContrastTypeOptions> {}\n}\n\nexport type ContrastType =\n | ContrastType.$equalize\n | ContrastType.$rayleigh\n | ContrastType.$binarize;\n\n/**\n * @experimental\n */\nexport interface ImagePixelCoordinate {\n $x: number;\n $y: number;\n}\n\n/**\n * @experimental\n */\nexport type ImageRegionPolygon = Array<ImagePixelCoordinate>;\n\n// ─── Image operations ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface ImageOperationOptions {\n $resize: { $width?: number; $height?: number; $autoOrient?: boolean };\n $resizeToFitBoundingBox: { $width: number; $height: number };\n $rotate: { $angle: \"DEGREE_90\" | \"DEGREE_180\" | \"DEGREE_270\" };\n $crop: {\n $xOffset: number;\n $yOffset: number;\n $width: number;\n $height: number;\n };\n $grayscale: {};\n $tile: { $zoom: number; $x: number; $y: number };\n $annotate: { $annotations: Array<Annotation> };\n $contrast: { $contrastType: ContrastType };\n $encrypt: {\n $polygons: Array<ImageRegionPolygon>;\n $cipherLicenseRid: string;\n };\n $decrypt: {\n $polygons: Array<ImageRegionPolygon>;\n $cipherLicenseRid: string;\n };\n}\n\n/**\n * @experimental\n */\nexport namespace ImageOperation {\n export interface $resize extends Just<\"$resize\", ImageOperationOptions> {}\n export interface $resizeToFitBoundingBox extends Just<\n \"$resizeToFitBoundingBox\",\n ImageOperationOptions\n > {}\n export interface $rotate extends Just<\"$rotate\", ImageOperationOptions> {}\n export interface $crop extends Just<\"$crop\", ImageOperationOptions> {}\n export interface $grayscale extends Just<\n \"$grayscale\",\n ImageOperationOptions\n > {}\n export interface $tile extends Just<\"$tile\", ImageOperationOptions> {}\n export interface $annotate extends Just<\"$annotate\", ImageOperationOptions> {}\n export interface $contrast extends Just<\"$contrast\", ImageOperationOptions> {}\n export interface $encrypt extends Just<\"$encrypt\", ImageOperationOptions> {}\n export interface $decrypt extends Just<\"$decrypt\", ImageOperationOptions> {}\n}\n\n/**\n * @experimental\n */\nexport type ImageOperation =\n | ImageOperation.$resize\n | ImageOperation.$resizeToFitBoundingBox\n | ImageOperation.$rotate\n | ImageOperation.$crop\n | ImageOperation.$grayscale\n | ImageOperation.$tile\n | ImageOperation.$annotate\n | ImageOperation.$contrast\n | ImageOperation.$encrypt\n | ImageOperation.$decrypt;\n\n// ─── Video operations ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface VideoOperationOptions {\n $transcode: {};\n $chunk: { $chunkDurationMilliseconds: number; $chunkIndex: number };\n}\n\n/**\n * @experimental\n */\nexport namespace VideoOperation {\n export interface $transcode extends Just<\n \"$transcode\",\n VideoOperationOptions\n > {}\n export interface $chunk extends Just<\"$chunk\", VideoOperationOptions> {}\n}\n\n/**\n * @experimental\n */\nexport type VideoOperation = VideoOperation.$transcode | VideoOperation.$chunk;\n\n// ─── Audio operations ─────────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface AudioOperationOptions {\n $channel: { $encodeFormat: AudioEncoding; $channel: number };\n $chunk: {\n $encodeFormat: AudioEncoding;\n $chunkDurationMilliseconds: number;\n $chunkIndex: number;\n };\n $convert: { $encodeFormat: AudioEncoding };\n}\n\n/**\n * @experimental\n */\nexport namespace AudioOperation {\n export interface $channel extends Just<\"$channel\", AudioOperationOptions> {}\n export interface $chunk extends Just<\"$chunk\", AudioOperationOptions> {}\n export interface $convert extends Just<\"$convert\", AudioOperationOptions> {}\n}\n\n/**\n * @experimental\n */\nexport type AudioOperation =\n | AudioOperation.$channel\n | AudioOperation.$chunk\n | AudioOperation.$convert;\n\n// ─── Other operation types ────────────────────────────────────────────────────\n\n/**\n * @experimental\n */\nexport interface VideoToAudioOperationOptions {\n $extractAudio: {};\n}\n\nexport namespace VideoToAudioOperation {\n export interface $extractAudio extends Just<\n \"$extractAudio\",\n VideoToAudioOperationOptions\n > {}\n}\n\nexport type VideoToAudioOperation = VideoToAudioOperation.$extractAudio;\n\n/**\n * @experimental\n */\nexport interface AudioToTextOperationOptions {\n $transcribe: {\n $language?: TranscriptionLanguage;\n $diarize?: boolean;\n $outputFormat?: TranscribeOutputFormat;\n $performanceMode?: \"MORE_ECONOMICAL\" | \"MORE_PERFORMANT\";\n };\n $waveform: { $peaksPerSecond: number };\n}\n\nexport namespace AudioToTextOperation {\n export interface $transcribe extends Just<\n \"$transcribe\",\n AudioToTextOperationOptions\n > {}\n export interface $waveform extends Just<\n \"$waveform\",\n AudioToTextOperationOptions\n > {}\n}\n\nexport type AudioToTextOperation =\n | AudioToTextOperation.$transcribe\n | AudioToTextOperation.$waveform;\n\n/**\n * @experimental\n */\nexport interface EmailToTextOperationOptions {\n $getEmailBody: { $outputFormat: \"TEXT\" | \"HTML\" };\n}\n\nexport namespace EmailToTextOperation {\n export interface $getEmailBody extends Just<\n \"$getEmailBody\",\n EmailToTextOperationOptions\n > {}\n}\n\nexport type EmailToTextOperation = EmailToTextOperation.$getEmailBody;\n\n/**\n * @experimental\n */\nexport interface EmailToAttachmentOperationOptions {\n $getEmailAttachment: { $mimeType: string; $attachmentIndex: number };\n}\n\nexport namespace EmailToAttachmentOperation {\n export interface $getEmailAttachment extends Just<\n \"$getEmailAttachment\",\n EmailToAttachmentOperationOptions\n > {}\n}\n\nexport type EmailToAttachmentOperation =\n EmailToAttachmentOperation.$getEmailAttachment;\n\n/**\n * @experimental\n */\nexport interface SpreadsheetToTextOperationOptions {\n $convertSheetToJson: { $sheetName: string };\n}\n\nexport namespace SpreadsheetToTextOperation {\n export interface $convertSheetToJson extends Just<\n \"$convertSheetToJson\",\n SpreadsheetToTextOperationOptions\n > {}\n}\n\nexport type SpreadsheetToTextOperation =\n SpreadsheetToTextOperation.$convertSheetToJson;\n\n/**\n * @experimental\n */\nexport interface VideoToArchiveOperationOptions {\n $extractSceneFrames: {\n $encoding: ImageryEncoding;\n $sceneScore?: \"MORE_SENSITIVE\" | \"STANDARD\" | \"LESS_SENSITIVE\";\n };\n}\n\nexport namespace VideoToArchiveOperation {\n export interface $extractSceneFrames extends Just<\n \"$extractSceneFrames\",\n VideoToArchiveOperationOptions\n > {}\n}\n\nexport type VideoToArchiveOperation =\n VideoToArchiveOperation.$extractSceneFrames;\n\n/**\n * @experimental\n */\nexport interface VideoToTextOperationOptions {\n $getTimestampsForSceneFrames: {\n $sceneScore?: \"MORE_SENSITIVE\" | \"STANDARD\" | \"LESS_SENSITIVE\";\n };\n}\n\nexport namespace VideoToTextOperation {\n export interface $getTimestampsForSceneFrames extends Just<\n \"$getTimestampsForSceneFrames\",\n VideoToTextOperationOptions\n > {}\n}\n\nexport type VideoToTextOperation =\n VideoToTextOperation.$getTimestampsForSceneFrames;\n\n/**\n * @experimental\n */\nexport interface ImageToTextOperationOptions {\n $extractLayoutAwareContent: {\n $parameters: LayoutAwareExtractionParameters;\n };\n $ocr: { $parameters: OcrParameters };\n}\n\nexport namespace ImageToTextOperation {\n export interface $extractLayoutAwareContent extends Just<\n \"$extractLayoutAwareContent\",\n ImageToTextOperationOptions\n > {}\n export interface $ocr extends Just<\"$ocr\", ImageToTextOperationOptions> {}\n}\n\nexport type ImageToTextOperation =\n | ImageToTextOperation.$extractLayoutAwareContent\n | ImageToTextOperation.$ocr;\n\n/**\n * @experimental\n */\nexport interface VideoToImageOperationOptions {\n $extractFirstFrame: { $height?: number; $width?: number };\n $extractFramesAtTimestamps: {\n $height?: number;\n $width?: number;\n $timestamp: number;\n };\n}\n\nexport namespace VideoToImageOperation {\n export interface $extractFirstFrame extends Just<\n \"$extractFirstFrame\",\n VideoToImageOperationOptions\n > {}\n export interface $extractFramesAtTimestamps extends Just<\n \"$extractFramesAtTimestamps\",\n VideoToImageOperationOptions\n > {}\n}\n\nexport type VideoToImageOperation =\n | VideoToImageOperation.$extractFirstFrame\n | VideoToImageOperation.$extractFramesAtTimestamps;\n\n/**\n * @experimental\n */\nexport interface ImageToDocumentOperationOptions {\n $createPdf: {};\n}\n\nexport namespace ImageToDocumentOperation {\n export interface $createPdf extends Just<\n \"$createPdf\",\n ImageToDocumentOperationOptions\n > {}\n}\n\nexport type ImageToDocumentOperation = ImageToDocumentOperation.$createPdf;\n\n/**\n * @experimental\n */\nexport interface DicomToImageOperationOptions {\n $renderImageLayer: {\n $layerNumber?: number;\n $height?: number;\n $width?: number;\n };\n}\n\nexport namespace DicomToImageOperation {\n export interface $renderImageLayer extends Just<\n \"$renderImageLayer\",\n DicomToImageOperationOptions\n > {}\n}\n\nexport type DicomToImageOperation = DicomToImageOperation.$renderImageLayer;\n\n/**\n * @experimental\n */\nexport interface DocumentToDocumentOperationOptions {\n $slicePdfRange: {\n $startPageInclusive: number;\n $endPageExclusive: number;\n $strictlyEnforceEndPage?: boolean;\n };\n $convertDocument: {};\n}\n\nexport namespace DocumentToDocumentOperation {\n export interface $slicePdfRange extends Just<\n \"$slicePdfRange\",\n DocumentToDocumentOperationOptions\n > {}\n export interface $convertDocument extends Just<\n \"$convertDocument\",\n DocumentToDocumentOperationOptions\n > {}\n}\n\nexport type DocumentToDocumentOperation =\n | DocumentToDocumentOperation.$slicePdfRange\n | DocumentToDocumentOperation.$convertDocument;\n\n/**\n * @experimental\n */\nexport interface DocumentToImageOperationOptions {\n $renderPage: { $pageNumber?: number; $height?: number; $width?: number };\n $renderPageToFitBoundingBox: {\n $pageNumber?: number;\n $width: number;\n $height: number;\n };\n}\n\nexport namespace DocumentToImageOperation {\n export interface $renderPage extends Just<\n \"$renderPage\",\n DocumentToImageOperationOptions\n > {}\n export interface $renderPageToFitBoundingBox extends Just<\n \"$renderPageToFitBoundingBox\",\n DocumentToImageOperationOptions\n > {}\n}\n\nexport type DocumentToImageOperation =\n | DocumentToImageOperation.$renderPage\n | DocumentToImageOperation.$renderPageToFitBoundingBox;\n\n/**\n * @experimental\n */\nexport interface ImageToEmbeddingOperationOptions {\n $generateEmbedding: { $modelId: string };\n}\n\nexport namespace ImageToEmbeddingOperation {\n export interface $generateEmbedding extends Just<\n \"$generateEmbedding\",\n ImageToEmbeddingOperationOptions\n > {}\n}\n\nexport type ImageToEmbeddingOperation =\n ImageToEmbeddingOperation.$generateEmbedding;\n\n/**\n * @experimental\n */\nexport interface DocumentToTextOperationOptions {\n $extractAllText: {};\n $extractTableOfContents: {};\n $getPdfPageDimensions: {};\n $extractFormFields: {};\n $extractUnstructuredTextFromPage: { $pageNumber: number };\n $extractTextFromPagesToArray: {\n $startPage?: number;\n $endPage?: number;\n };\n $ocrOnPage: {\n $pageNumber: number;\n $parameters: OcrParameters;\n };\n $ocrOnPages: {\n $pageNumber: number;\n $parameters: OcrParameters;\n };\n $extractLayoutAwareContent: {\n $parameters: LayoutAwareExtractionParameters;\n };\n $extractLayoutAwareTextV2: {\n $pageRange?: PageRange;\n $config: DocumentTextExtractionConfig;\n };\n $extractTextV2: {\n $pageRange?: PageRange;\n $config: DocumentTextExtractionConfig;\n };\n $extractVlmText: {\n $llmSpec: LlmSpec;\n $preprocessingConfiguration?: VlmPreprocessingConfig;\n $imageSpec?: ImageSpec;\n $outputFormat: \"TEXT\" | \"MARKDOWN\" | \"HTML\";\n $pageRange?: PageRange;\n };\n}\n\nexport namespace DocumentToTextOperation {\n export interface $extractAllText extends Just<\n \"$extractAllText\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractTableOfContents extends Just<\n \"$extractTableOfContents\",\n DocumentToTextOperationOptions\n > {}\n export interface $getPdfPageDimensions extends Just<\n \"$getPdfPageDimensions\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractFormFields extends Just<\n \"$extractFormFields\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractUnstructuredTextFromPage extends Just<\n \"$extractUnstructuredTextFromPage\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractTextFromPagesToArray extends Just<\n \"$extractTextFromPagesToArray\",\n DocumentToTextOperationOptions\n > {}\n export interface $ocrOnPage extends Just<\n \"$ocrOnPage\",\n DocumentToTextOperationOptions\n > {}\n export interface $ocrOnPages extends Just<\n \"$ocrOnPages\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractLayoutAwareContent extends Just<\n \"$extractLayoutAwareContent\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractLayoutAwareTextV2 extends Just<\n \"$extractLayoutAwareTextV2\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractTextV2 extends Just<\n \"$extractTextV2\",\n DocumentToTextOperationOptions\n > {}\n export interface $extractVlmText extends Just<\n \"$extractVlmText\",\n DocumentToTextOperationOptions\n > {}\n}\n\nexport type DocumentToTextOperation =\n | DocumentToTextOperation.$extractAllText\n | DocumentToTextOperation.$extractTableOfContents\n | DocumentToTextOperation.$getPdfPageDimensions\n | DocumentToTextOperation.$extractFormFields\n | DocumentToTextOperation.$extractUnstructuredTextFromPage\n | DocumentToTextOperation.$extractTextFromPagesToArray\n | DocumentToTextOperation.$ocrOnPage\n | DocumentToTextOperation.$ocrOnPages\n | DocumentToTextOperation.$extractLayoutAwareContent\n | DocumentToTextOperation.$extractLayoutAwareTextV2\n | DocumentToTextOperation.$extractTextV2\n | DocumentToTextOperation.$extractVlmText;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAWA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA2CA;AACA;AACA;AAFA,WAGiBA,mBAAmB;AAkEpC;AACA;AACA;AAqBA;AAEA;AACA;AACA;AAGA;AACA;AACA;AAGA;AACA;AACA;AAWA;AACA;AACA;AAGA;AACA;AACA;AAGA;AAEA;AACA;AACA;AAMA;AACA;AACA;AAFA,WAQiBC,eAAe;AAOhC;AACA;AACA;AAFA,WAQiBC,mBAAmB;AAepC;AACA;AACA;AAMA;AACA;AACA;AAKA;AACA;AACA;AAOA;AACA;AACA;AAFA,WASiBC,sBAAsB;AAiBvC;AACA;AACA;AAUA;AACA;AACA;AAFA,WAWiBC,sBAAsB;AAevC;AACA;AACA;AAQA;AACA;AACA;AASA;AACA;AACA;AAFA,WAOiBC,gBAAgB;AASjC;AACA;AACA;AAQA;AACA;AACA;AAQA;AACA;AACA;AAFA,WASiBC,YAAY;AAW7B;AACA;AACA;AAMA;AACA;AACA;AAGA;AAEA;AACA;AACA;AAyBA;AACA;AACA;AAFA,WAGiBC,cAAc;AAmB/B;AACA;AACA;AAaA;AAEA;AACA;AACA;AAMA;AACA;AACA;AAFA,WAGiBC,cAAc;AAQ/B;AACA;AACA;AAGA;AAEA;AACA;AACA;AAWA;AACA;AACA;AAFA,WAGiBC,cAAc;AAM/B;AACA;AACA;AAMA;AAEA;AACA;AACA;AAFA,WAOiBC,qBAAqB;AAStC;AACA;AACA;AAFA,WAaiBC,oBAAoB;AAerC;AACA;AACA;AAFA,WAOiBC,oBAAoB;AASrC;AACA;AACA;AAFA,WAOiBC,0BAA0B;AAU3C;AACA;AACA;AAFA,WAOiBC,0BAA0B;AAU3C;AACA;AACA;AAFA,WAUiBC,uBAAuB;AAUxC;AACA;AACA;AAFA,WASiBC,oBAAoB;AAUrC;AACA;AACA;AAFA,WAUiBC,oBAAoB;AAYrC;AACA;AACA;AAFA,WAYiBC,qBAAqB;AAetC;AACA;AACA;AAFA,WAOiBC,wBAAwB;AASzC;AACA;AACA;AAFA,WAWiBC,qBAAqB;AAStC;AACA;AACA;AAFA,WAYiBC,2BAA2B;AAe5C;AACA;AACA;AAFA,WAYiBC,wBAAwB;AAezC;AACA;AACA;AAFA,WAOiBC,yBAAyB;AAU1C;AACA;AACA;AAFA,WAyCiBC,uBAAuB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MediaTransformationLanguages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaTransformationLanguages.js","names":[],"sources":["MediaTransformationLanguages.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// cspell:disable\n// Every identifier below is a language or script code defined by the platform, not prose. Disabling\n// for the whole file keeps a platform bump that adds an exotic language name from failing\n// check-spelling and needing a new dictionary entry.\n\n// Mirrors the closed enums declared by the platform in `@osdk/foundry.mediasets`\n// (`OcrLanguage`, `OcrScript`, `TranscriptionLanguage`). They are copied rather than re-exported\n// because `@osdk/api` does not depend on any `@osdk/foundry.*` package; see the note in\n// `actions/ActionResults.ts`. The `AssertPlatformParity` aliases at the top of\n// `makeMediaTransformation.ts` in `@osdk/client` keep these equal to the generated unions, and are\n// what fails when a platform bump changes a value.\n\n/**\n * A language for OCR (Optical Character Recognition) operations.\n *\n * @experimental\n */\nexport type OcrLanguage =\n | \"AFR\"\n | \"AMH\"\n | \"ARA\"\n | \"ASM\"\n | \"AZE\"\n | \"AZE_CYRL\"\n | \"BEL\"\n | \"BEN\"\n | \"BOD\"\n | \"BOS\"\n | \"BRE\"\n | \"BUL\"\n | \"CAT\"\n | \"CEB\"\n | \"CES\"\n | \"CHI_SIM\"\n | \"CHI_SIM_VERT\"\n | \"CHI_TRA\"\n | \"CHI_TRA_VERT\"\n | \"CHR\"\n | \"COS\"\n | \"CYM\"\n | \"DAN\"\n | \"DEU\"\n | \"DIV\"\n | \"DZO\"\n | \"ELL\"\n | \"ENG\"\n | \"ENM\"\n | \"EPO\"\n | \"EST\"\n | \"EUS\"\n | \"FAO\"\n | \"FAS\"\n | \"FIL\"\n | \"FIN\"\n | \"FRA\"\n | \"FRM\"\n | \"FRY\"\n | \"GLA\"\n | \"GLE\"\n | \"GLG\"\n | \"GRC\"\n | \"GUJ\"\n | \"HAT\"\n | \"HEB\"\n | \"HIN\"\n | \"HRV\"\n | \"HUN\"\n | \"HYE\"\n | \"IKU\"\n | \"IND\"\n | \"ISL\"\n | \"ITA\"\n | \"ITA_OLD\"\n | \"JAV\"\n | \"JPN\"\n | \"JPN_VERT\"\n | \"KAN\"\n | \"KAT\"\n | \"KAT_OLD\"\n | \"KAZ\"\n | \"KHM\"\n | \"KIR\"\n | \"KMR\"\n | \"KOR\"\n | \"KOR_VERT\"\n | \"LAO\"\n | \"LAT\"\n | \"LAV\"\n | \"LIT\"\n | \"LTZ\"\n | \"MAL\"\n | \"MAR\"\n | \"MKD\"\n | \"MLT\"\n | \"MON\"\n | \"MRI\"\n | \"MSA\"\n | \"MYA\"\n | \"NEP\"\n | \"NLD\"\n | \"NOR\"\n | \"OCI\"\n | \"ORI\"\n | \"OSD\"\n | \"PAN\"\n | \"POL\"\n | \"POR\"\n | \"PUS\"\n | \"QUE\"\n | \"RON\"\n | \"RUS\"\n | \"SAN\"\n | \"SIN\"\n | \"SLK\"\n | \"SLV\"\n | \"SND\"\n | \"SPA\"\n | \"SPA_OLD\"\n | \"SQI\"\n | \"SRP\"\n | \"SRP_LATN\"\n | \"SUN\"\n | \"SWA\"\n | \"SWE\"\n | \"SYR\"\n | \"TAM\"\n | \"TAT\"\n | \"TEL\"\n | \"TGK\"\n | \"THA\"\n | \"TIR\"\n | \"TON\"\n | \"TUR\"\n | \"UIG\"\n | \"UKR\"\n | \"URD\"\n | \"UZB\"\n | \"UZB_CYRL\"\n | \"VIE\"\n | \"YID\"\n | \"YOR\";\n\n/**\n * A script for OCR (Optical Character Recognition) operations.\n *\n * @experimental\n */\nexport type OcrScript =\n | \"ARABIC\"\n | \"ARMENIAN\"\n | \"BENGALI\"\n | \"CANADIAN_ABORIGINAL\"\n | \"CHEROKEE\"\n | \"CYRILLIC\"\n | \"DEVANAGARI\"\n | \"ETHIOPIC\"\n | \"FRAKTUR\"\n | \"GEORGIAN\"\n | \"GREEK\"\n | \"GUJARATI\"\n | \"GURMUKHI\"\n | \"HAN_SIMPLIFIED\"\n | \"HAN_SIMPLIFIED_VERT\"\n | \"HAN_TRADITIONAL\"\n | \"HAN_TRADITIONAL_VERT\"\n | \"HANGUL\"\n | \"HANGUL_VERT\"\n | \"HEBREW\"\n | \"JAPANESE\"\n | \"JAPANESE_VERT\"\n | \"KANNADA\"\n | \"KHMER\"\n | \"LAO\"\n | \"LATIN\"\n | \"MALAYALAM\"\n | \"MYANMAR\"\n | \"ORIYA\"\n | \"SINHALA\"\n | \"SYRIAC\"\n | \"TAMIL\"\n | \"TELUGU\"\n | \"THAANA\"\n | \"THAI\"\n | \"TIBETAN\"\n | \"VIETNAMESE\";\n\n/**\n * A language for audio transcription operations.\n *\n * @experimental\n */\nexport type TranscriptionLanguage =\n | \"AF\"\n | \"AM\"\n | \"AR\"\n | \"AS\"\n | \"AZ\"\n | \"BA\"\n | \"BE\"\n | \"BG\"\n | \"BN\"\n | \"BO\"\n | \"BR\"\n | \"BS\"\n | \"CA\"\n | \"CS\"\n | \"CY\"\n | \"DA\"\n | \"DE\"\n | \"EL\"\n | \"EN\"\n | \"ES\"\n | \"ET\"\n | \"EU\"\n | \"FA\"\n | \"FI\"\n | \"FO\"\n | \"FR\"\n | \"GL\"\n | \"GU\"\n | \"HA\"\n | \"HAW\"\n | \"HE\"\n | \"HI\"\n | \"HR\"\n | \"HT\"\n | \"HU\"\n | \"HY\"\n | \"ID\"\n | \"IS\"\n | \"IT\"\n | \"JA\"\n | \"JW\"\n | \"KA\"\n | \"KK\"\n | \"KM\"\n | \"KN\"\n | \"KO\"\n | \"LA\"\n | \"LB\"\n | \"LN\"\n | \"LO\"\n | \"LT\"\n | \"LV\"\n | \"MG\"\n | \"MI\"\n | \"MK\"\n | \"ML\"\n | \"MN\"\n | \"MR\"\n | \"MS\"\n | \"MT\"\n | \"MY\"\n | \"NE\"\n | \"NL\"\n | \"NN\"\n | \"NO\"\n | \"OC\"\n | \"PA\"\n | \"PL\"\n | \"PS\"\n | \"PT\"\n | \"RO\"\n | \"RU\"\n | \"SA\"\n | \"SD\"\n | \"SI\"\n | \"SK\"\n | \"SL\"\n | \"SN\"\n | \"SO\"\n | \"SQ\"\n | \"SR\"\n | \"SU\"\n | \"SV\"\n | \"SW\"\n | \"TA\"\n | \"TE\"\n | \"TG\"\n | \"TH\"\n | \"TK\"\n | \"TL\"\n | \"TR\"\n | \"TT\"\n | \"UK\"\n | \"UR\"\n | \"UZ\"\n | \"VI\"\n | \"YI\"\n | \"YO\"\n | \"YUE\"\n | \"ZH\"\n | \"AFRIKAANS\"\n | \"ALBANIAN\"\n | \"AMHARIC\"\n | \"ARABIC\"\n | \"ARMENIAN\"\n | \"ASSAMESE\"\n | \"AZERBAIJANI\"\n | \"BASHKIR\"\n | \"BASQUE\"\n | \"BELARUSIAN\"\n | \"BENGALI\"\n | \"BOSNIAN\"\n | \"BRETON\"\n | \"BULGARIAN\"\n | \"BURMESE\"\n | \"CANTONESE\"\n | \"CASTILIAN\"\n | \"CATALAN\"\n | \"CHINESE\"\n | \"CROATIAN\"\n | \"CZECH\"\n | \"DANISH\"\n | \"DUTCH\"\n | \"ENGLISH\"\n | \"ESTONIAN\"\n | \"FAROESE\"\n | \"FINNISH\"\n | \"FLEMISH\"\n | \"FRENCH\"\n | \"GALICIAN\"\n | \"GEORGIAN\"\n | \"GERMAN\"\n | \"GREEK\"\n | \"GUJARATI\"\n | \"HAITIAN\"\n | \"HAITIAN_CREOLE\"\n | \"HAUSA\"\n | \"HAWAIIAN\"\n | \"HEBREW\"\n | \"HINDI\"\n | \"HUNGARIAN\"\n | \"ICELANDIC\"\n | \"INDONESIAN\"\n | \"ITALIAN\"\n | \"JAPANESE\"\n | \"JAVANESE\"\n | \"KANNADA\"\n | \"KAZAKH\"\n | \"KHMER\"\n | \"KOREAN\"\n | \"LAO\"\n | \"LATIN\"\n | \"LATVIAN\"\n | \"LETZEBURGESCH\"\n | \"LINGALA\"\n | \"LITHUANIAN\"\n | \"LUXEMBOURGISH\"\n | \"MACEDONIAN\"\n | \"MALAGASY\"\n | \"MALAY\"\n | \"MALAYALAM\"\n | \"MALTESE\"\n | \"MANDARIN\"\n | \"MAORI\"\n | \"MARATHI\"\n | \"MOLDAVIAN\"\n | \"MOLDOVAN\"\n | \"MONGOLIAN\"\n | \"MYANMAR\"\n | \"NEPALI\"\n | \"NORWEGIAN\"\n | \"NYNORSK\"\n | \"OCCITAN\"\n | \"PANJABI\"\n | \"PASHTO\"\n | \"PERSIAN\"\n | \"POLISH\"\n | \"PORTUGUESE\"\n | \"PUNJABI\"\n | \"PUSHTO\"\n | \"ROMANIAN\"\n | \"RUSSIAN\"\n | \"SANSKRIT\"\n | \"SERBIAN\"\n | \"SHONA\"\n | \"SINDHI\"\n | \"SINHALA\"\n | \"SINHALESE\"\n | \"SLOVAK\"\n | \"SLOVENIAN\"\n | \"SOMALI\"\n | \"SPANISH\"\n | \"SUNDANESE\"\n | \"SWAHILI\"\n | \"SWEDISH\"\n | \"TAGALOG\"\n | \"TAJIK\"\n | \"TAMIL\"\n | \"TATAR\"\n | \"TELUGU\"\n | \"THAI\"\n | \"TIBETAN\"\n | \"TURKISH\"\n | \"TURKMEN\"\n | \"UKRAINIAN\"\n | \"URDU\"\n | \"UZBEK\"\n | \"VALENCIAN\"\n | \"VIETNAMESE\"\n | \"WELSH\"\n | \"YIDDISH\"\n | \"YORUBA\";\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"unstable.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks","__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet","transformAndWait","MediaTransformationError","MediaTransformationFailedError","MediaTransformationTimeoutError","configToShapeDefinition","createShapeBuilder","isSourcePkSymbol","ShapeNullabilityError","SourcePrimaryKeySymbol"],"sources":["unstable.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type { Experiment, ExperimentFns } from \"../experimental/Experiment.js\";\n\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction } from \"../experimental/executeStreamingFunction.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid } from \"../experimental/fetchOneByRid.js\";\nexport {\n __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid,\n type FetchPageByRidPayload,\n} from \"../experimental/fetchPageByRid.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from \"../experimental/getBulkLinks.js\";\nexport type {\n AnnotateGeometry,\n Annotation,\n AudioEncoding,\n AudioOperation,\n AudioToTextOperation,\n BoundingBox,\n Color,\n ContrastType,\n DicomToImageOperation,\n DocumentTextExtractionConfig,\n DocumentToDocumentOperation,\n DocumentToImageOperation,\n DocumentToTextOperation,\n EmailToAttachmentOperation,\n EmailToTextOperation,\n ImageOperation,\n ImagePixelCoordinate,\n ImageRegionPolygon,\n ImageSpec,\n ImageToDocumentOperation,\n ImageToEmbeddingOperation,\n ImageToTextOperation,\n LayoutAwareExtractionParameters,\n LlmSpec,\n MediaTransformation,\n OcrLanguageOrScript,\n OcrOutputFormat,\n OcrParameters,\n PageRange,\n SpreadsheetToTextOperation,\n TranscribeOutputFormat,\n VideoOperation,\n VideoToArchiveOperation,\n VideoToAudioOperation,\n VideoToImageOperation,\n VideoToTextOperation,\n VlmPreprocessingConfig,\n} from \"../experimental/MediaTransformation.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet } from \"../experimental/subscribeToNoTypeObjectSet.js\";\nexport {\n transformAndWait,\n type TransformOptions,\n} from \"../experimental/transformAndWait.js\";\nexport {\n MediaTransformationError,\n MediaTransformationFailedError,\n MediaTransformationTimeoutError,\n} from \"../object/MediaTransformationErrors.js\";\n\nexport type { EXPERIMENTAL_BulkLinkResult } from \"../objectSet/BulkLinkResult.js\";\nexport type { MinimalObjectSet } from \"../objectSet/ObjectSet.js\";\n\n// Shapes (unstable — will graduate to @osdk/api/shapes when stable)\nexport {\n configToShapeDefinition,\n createShapeBuilder,\n isSourcePkSymbol,\n ShapeNullabilityError,\n SourcePrimaryKeySymbol,\n} from \"../shapes/index.js\";\n\nexport type {\n InferShapeDefinition,\n InlineLinkConfig,\n InlineShapeConfig,\n LinkLoadConfig,\n LinkStatus,\n NullabilityViolation,\n PropertyType,\n RequiredProperty,\n ShapeBaseType,\n ShapeBuilder,\n ShapeDefinition,\n ShapeDerivedLinks,\n ShapeInstance,\n ShapeLinkBuilder,\n ShapeLinkResult,\n} from \"../shapes/index.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,2DAA2D,QAAQ,6CAA6C;AACzH,SAASC,gDAAgD,QAAQ,kCAAkC;AACnG,SACEC,iDAAiD,QAE5C,mCAAmC;AAC1C,SAASC,+CAA+C,QAAQ,iCAAiC;AAwCjG,SAASC,6DAA6D,QAAQ,+CAA+C;AAC7H,SACEC,gBAAgB,QAEX,qCAAqC;AAC5C,SACEC,wBAAwB,EACxBC,8BAA8B,EAC9BC,+BAA+B,QAC1B,wCAAwC;AAK/C;AACA,SACEC,uBAAuB,EACvBC,kBAAkB,EAClBC,gBAAgB,EAChBC,qBAAqB,EACrBC,sBAAsB,QACjB,oBAAoB","ignoreList":[]}
1
+ {"version":3,"file":"unstable.js","names":["__EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid","__EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks","__EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet","transformAndWait","MediaTransformationError","MediaTransformationFailedError","MediaTransformationTimeoutError","configToShapeDefinition","createShapeBuilder","isSourcePkSymbol","ShapeNullabilityError","SourcePrimaryKeySymbol"],"sources":["unstable.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type { Experiment, ExperimentFns } from \"../experimental/Experiment.js\";\n\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction } from \"../experimental/executeStreamingFunction.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid } from \"../experimental/fetchOneByRid.js\";\nexport {\n __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid,\n type FetchPageByRidPayload,\n} from \"../experimental/fetchPageByRid.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from \"../experimental/getBulkLinks.js\";\nexport type {\n AnnotateGeometry,\n Annotation,\n ArchiveEncoding,\n AudioEncoding,\n AudioOperation,\n AudioToTextOperation,\n BoundingBox,\n Color,\n ContrastType,\n DicomToImageOperation,\n DocumentEncoding,\n DocumentTextExtractionConfig,\n DocumentToDocumentOperation,\n DocumentToImageOperation,\n DocumentToTextOperation,\n EmailToAttachmentOperation,\n EmailToTextOperation,\n ImageOperation,\n ImagePixelCoordinate,\n ImageRegionPolygon,\n ImageryEncoding,\n ImageSpec,\n ImageToDocumentOperation,\n ImageToEmbeddingOperation,\n ImageToTextOperation,\n LayoutAwareExtractionParameters,\n LlmSpec,\n MediaTransformation,\n OcrLanguage,\n OcrLanguageOrScript,\n OcrOutputFormat,\n OcrParameters,\n OcrScript,\n PageRange,\n SpreadsheetToTextOperation,\n TranscribeOutputFormat,\n TranscriptionLanguage,\n VideoEncoding,\n VideoOperation,\n VideoToArchiveOperation,\n VideoToAudioOperation,\n VideoToImageOperation,\n VideoToTextOperation,\n VlmPreprocessingConfig,\n} from \"../experimental/MediaTransformation.js\";\nexport { __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet } from \"../experimental/subscribeToNoTypeObjectSet.js\";\nexport {\n transformAndWait,\n type TransformOptions,\n} from \"../experimental/transformAndWait.js\";\nexport {\n MediaTransformationError,\n MediaTransformationFailedError,\n MediaTransformationTimeoutError,\n} from \"../object/MediaTransformationErrors.js\";\n\nexport type { EXPERIMENTAL_BulkLinkResult } from \"../objectSet/BulkLinkResult.js\";\nexport type { MinimalObjectSet } from \"../objectSet/ObjectSet.js\";\n\n// Shapes (unstable — will graduate to @osdk/api/shapes when stable)\nexport {\n configToShapeDefinition,\n createShapeBuilder,\n isSourcePkSymbol,\n ShapeNullabilityError,\n SourcePrimaryKeySymbol,\n} from \"../shapes/index.js\";\n\nexport type {\n InferShapeDefinition,\n InlineLinkConfig,\n InlineShapeConfig,\n LinkLoadConfig,\n LinkStatus,\n NullabilityViolation,\n PropertyType,\n RequiredProperty,\n ShapeBaseType,\n ShapeBuilder,\n ShapeDefinition,\n ShapeDerivedLinks,\n ShapeInstance,\n ShapeLinkBuilder,\n ShapeLinkResult,\n} from \"../shapes/index.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,2DAA2D,QAAQ,6CAA6C;AACzH,SAASC,gDAAgD,QAAQ,kCAAkC;AACnG,SACEC,iDAAiD,QAE5C,mCAAmC;AAC1C,SAASC,+CAA+C,QAAQ,iCAAiC;AA+CjG,SAASC,6DAA6D,QAAQ,+CAA+C;AAC7H,SACEC,gBAAgB,QAEX,qCAAqC;AAC5C,SACEC,wBAAwB,EACxBC,8BAA8B,EAC9BC,+BAA+B,QAC1B,wCAAwC;AAK/C;AACA,SACEC,uBAAuB,EACvBC,kBAAkB,EAClBC,gBAAgB,EAChBC,qBAAqB,EACrBC,sBAAsB,QACjB,oBAAoB","ignoreList":[]}
@@ -1,4 +1,6 @@
1
1
  import type { Just } from "../aggregate/Just.js";
2
+ import type { OcrLanguage, OcrScript, TranscriptionLanguage } from "./MediaTransformationLanguages.js";
3
+ export type { OcrLanguage, OcrScript, TranscriptionLanguage };
2
4
  /**
3
5
  * A media transformation request. The `$`-prefixed key selects the
4
6
  * transformation kind, and each variant requires specific encoding and
@@ -148,8 +150,8 @@ export type OcrOutputFormat = OcrOutputFormat.$hocr | OcrOutputFormat.$text;
148
150
  * @experimental
149
151
  */
150
152
  export interface OcrLanguageOrScriptOptions {
151
- $language: string;
152
- $script: string;
153
+ $language: OcrLanguage;
154
+ $script: OcrScript;
153
155
  }
154
156
  export declare namespace OcrLanguageOrScript {
155
157
  interface $language extends Just<"$language", OcrLanguageOrScriptOptions> {}
@@ -167,7 +169,7 @@ export interface OcrParameters {
167
169
  * @experimental
168
170
  */
169
171
  export interface LayoutAwareExtractionParameters {
170
- $languages: Array<string>;
172
+ $languages: Array<OcrLanguage>;
171
173
  }
172
174
  /**
173
175
  * @experimental
@@ -424,7 +426,7 @@ export type VideoToAudioOperation = VideoToAudioOperation.$extractAudio;
424
426
  */
425
427
  export interface AudioToTextOperationOptions {
426
428
  $transcribe: {
427
- $language?: string
429
+ $language?: TranscriptionLanguage
428
430
  $diarize?: boolean
429
431
  $outputFormat?: TranscribeOutputFormat
430
432
  $performanceMode?: "MORE_ECON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AAE;WACa,mBAAmB,KAClC,cACA,gCACA,CAAE;WACa,oBAAoB,KACnC,eACA,gCACA,CAAE;WACa,mCAAmC,KAClD,8BACA,gCACA,CAAE;WACa,kCAAkC,KACjD,6BACA,gCACA,CAAE;WACa,uBAAuB,KACtC,kBACA,gCACA,CAAE;WACa,wBAAwB,KACvC,mBACA,gCACA,CAAE;;AAGN,YAAY,0BACR,wBAAwB,kBACxB,wBAAwB,0BACxB,wBAAwB,wBACxB,wBAAwB,qBACxB,wBAAwB,mCACxB,wBAAwB,+BACxB,wBAAwB,aACxB,wBAAwB,cACxB,wBAAwB,6BACxB,wBAAwB,4BACxB,wBAAwB,iBACxB,wBAAwB","names":[],"sources":["../../../src/experimental/MediaTransformation.ts"],"version":3,"file":"MediaTransformation.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,YAAY,sBAAuB;AACjD,cACE,aACA,WACA,6BACK,mCAAoC;AAE3C,cAAc,aAAa,WAAW;;;;;;;;;AAYtC,iBAAiB,2BAA2B;CAC1C,QAAQ;EACN,WAAW;EACX,aAAa,MAAM;CACpB;CACD,QAAQ;EAAE,WAAW;EAAe,YAAY;CAAgB;CAChE,QAAQ;EAAE,YAAY;CAAgB;CACtC,cAAc;EAAE,YAAY;CAAsB;CAClD,oBAAoB;EAAE,YAAY;CAA4B;CAC9D,eAAe;EACb,WAAW;EACX,YAAY;CACb;CACD,cAAc;EAAE,YAAY;CAAsB;CAClD,oBAAoB;EAAE,YAAY;CAA4B;CAC9D,iBAAiB;EACf,WAAW;EACX,YAAY;CACb;CACD,cAAc;EAAE,YAAY;CAAsB;CAClD,cAAc;EAAE,YAAY;CAAsB;CAClD,eAAe;EACb,WAAW;EACX,YAAY;CACb;CACD,kBAAkB;EAAE,YAAY;CAA0B;CAC1D,eAAe;EACb,WAAW;EACX,YAAY;CACb;CACD,qBAAqB;EACnB,WAAW;EACX,YAAY;CACb;CACD,kBAAkB;EAChB,WAAW;EACX,YAAY;CACb;CACD,mBAAmB;EAAE,Y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CACzD,8BAA8B;EAC5B;EACA;CACD;CACD,YAAY;EACV;EACA,aAAa;CACd;CACD,aAAa;EACX;EACA,aAAa;CACd;CACD,4BAA4B;EAC1B,aAAa;CACd;CACD,2BAA2B;EACzB,aAAa;EACb,SAAS;CACV;CACD,gBAAgB;EACd,aAAa;EACb,SAAS;CACV;CACD,iBAAiB;EACf,UAAU;EACV,8BAA8B;EAC9B,aAAa;EACb,eAAe,SAAS,aAAa;EACrC,aAAa;CACd;AACF;AAED,yBAAiB;WACE,wBAAwB,KACvC,mBACA,gCACA,CAAE;WACa,gCAAgC,KAC/C,2BACA,gCACA,CAAE;WACa,8BAA8B,KAC7C,yBACA,gCACA,CAAE;WACa,2BAA2B,KAC1C,sBACA,gCACA,CAAE;WACa,yCAAyC,KACxD,oCACA,gCACA,CAAE;WACa,qCAAqC,KACpD,gCACA,gCACA,CAAE;WACa,mBAAmB,KAClC,cACA,gCACA,CAAE;WACa,oBAAoB,KACnC,eACA,gCACA,CAAE;WACa,mCAAmC,KAClD,8BACA,gCACA,CAAE;WACa,kCAAkC,KACjD,6BACA,gCACA,CAAE;WACa,uBAAuB,KACtC,kBACA,gCACA,CAAE;WACa,wBAAwB,KACvC,mBACA,gCACA,CAAE;;AAGN,YAAY,0BACR,wBAAwB,kBACxB,wBAAwB,0BACxB,wBAAwB,wBACxB,wBAAwB,qBACxB,wBAAwB,mCACxB,wBAAwB,+BACxB,wBAAwB,aACxB,wBAAwB,cACxB,wBAAwB,6BACxB,wBAAwB,4BACxB,wBAAwB,iBACxB,wBAAwB","names":[],"sources":["../../../src/experimental/MediaTransformation.ts"],"version":3,"file":"MediaTransformation.d.ts"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * A language for OCR (Optical Character Recognition) operations.
3
+ *
4
+ * @experimental
5
+ */
6
+ export type OcrLanguage = "AFR" | "AMH" | "ARA" | "ASM" | "AZE" | "AZE_CYRL" | "BEL" | "BEN" | "BOD" | "BOS" | "BRE" | "BUL" | "CAT" | "CEB" | "CES" | "CHI_SIM" | "CHI_SIM_VERT" | "CHI_TRA" | "CHI_TRA_VERT" | "CHR" | "COS" | "CYM" | "DAN" | "DEU" | "DIV" | "DZO" | "ELL" | "ENG" | "ENM" | "EPO" | "EST" | "EUS" | "FAO" | "FAS" | "FIL" | "FIN" | "FRA" | "FRM" | "FRY" | "GLA" | "GLE" | "GLG" | "GRC" | "GUJ" | "HAT" | "HEB" | "HIN" | "HRV" | "HUN" | "HYE" | "IKU" | "IND" | "ISL" | "ITA" | "ITA_OLD" | "JAV" | "JPN" | "JPN_VERT" | "KAN" | "KAT" | "KAT_OLD" | "KAZ" | "KHM" | "KIR" | "KMR" | "KOR" | "KOR_VERT" | "LAO" | "LAT" | "LAV" | "LIT" | "LTZ" | "MAL" | "MAR" | "MKD" | "MLT" | "MON" | "MRI" | "MSA" | "MYA" | "NEP" | "NLD" | "NOR" | "OCI" | "ORI" | "OSD" | "PAN" | "POL" | "POR" | "PUS" | "QUE" | "RON" | "RUS" | "SAN" | "SIN" | "SLK" | "SLV" | "SND" | "SPA" | "SPA_OLD" | "SQI" | "SRP" | "SRP_LATN" | "SUN" | "SWA" | "SWE" | "SYR" | "TAM" | "TAT" | "TEL" | "TGK" | "THA" | "TIR" | "TON" | "TUR" | "UIG" | "UKR" | "URD" | "UZB" | "UZB_CYRL" | "VIE" | "YID" | "YOR";
7
+ /**
8
+ * A script for OCR (Optical Character Recognition) operations.
9
+ *
10
+ * @experimental
11
+ */
12
+ export type OcrScript = "ARABIC" | "ARMENIAN" | "BENGALI" | "CANADIAN_ABORIGINAL" | "CHEROKEE" | "CYRILLIC" | "DEVANAGARI" | "ETHIOPIC" | "FRAKTUR" | "GEORGIAN" | "GREEK" | "GUJARATI" | "GURMUKHI" | "HAN_SIMPLIFIED" | "HAN_SIMPLIFIED_VERT" | "HAN_TRADITIONAL" | "HAN_TRADITIONAL_VERT" | "HANGUL" | "HANGUL_VERT" | "HEBREW" | "JAPANESE" | "JAPANESE_VERT" | "KANNADA" | "KHMER" | "LAO" | "LATIN" | "MALAYALAM" | "MYANMAR" | "ORIYA" | "SINHALA" | "SYRIAC" | "TAMIL" | "TELUGU" | "THAANA" | "THAI" | "TIBETAN" | "VIETNAMESE";
13
+ /**
14
+ * A language for audio transcription operations.
15
+ *
16
+ * @experimental
17
+ */
18
+ export type TranscriptionLanguage = "AF" | "AM" | "AR" | "AS" | "AZ" | "BA" | "BE" | "BG" | "BN" | "BO" | "BR" | "BS" | "CA" | "CS" | "CY" | "DA" | "DE" | "EL" | "EN" | "ES" | "ET" | "EU" | "FA" | "FI" | "FO" | "FR" | "GL" | "GU" | "HA" | "HAW" | "HE" | "HI" | "HR" | "HT" | "HU" | "HY" | "ID" | "IS" | "IT" | "JA" | "JW" | "KA" | "KK" | "KM" | "KN" | "KO" | "LA" | "LB" | "LN" | "LO" | "LT" | "LV" | "MG" | "MI" | "MK" | "ML" | "MN" | "MR" | "MS" | "MT" | "MY" | "NE" | "NL" | "NN" | "NO" | "OC" | "PA" | "PL" | "PS" | "PT" | "RO" | "RU" | "SA" | "SD" | "SI" | "SK" | "SL" | "SN" | "SO" | "SQ" | "SR" | "SU" | "SV" | "SW" | "TA" | "TE" | "TG" | "TH" | "TK" | "TL" | "TR" | "TT" | "UK" | "UR" | "UZ" | "VI" | "YI" | "YO" | "YUE" | "ZH" | "AFRIKAANS" | "ALBANIAN" | "AMHARIC" | "ARABIC" | "ARMENIAN" | "ASSAMESE" | "AZERBAIJANI" | "BASHKIR" | "BASQUE" | "BELARUSIAN" | "BENGALI" | "BOSNIAN" | "BRETON" | "BULGARIAN" | "BURMESE" | "CANTONESE" | "CASTILIAN" | "CATALAN" | "CHINESE" | "CROATIAN" | "CZECH" | "DANISH" | "DUTCH" | "ENGLISH" | "ESTONIAN" | "FAROESE" | "FINNISH" | "FLEMISH" | "FRENCH" | "GALICIAN" | "GEORGIAN" | "GERMAN" | "GREEK" | "GUJARATI" | "HAITIAN" | "HAITIAN_CREOLE" | "HAUSA" | "HAWAIIAN" | "HEBREW" | "HINDI" | "HUNGARIAN" | "ICELANDIC" | "INDONESIAN" | "ITALIAN" | "JAPANESE" | "JAVANESE" | "KANNADA" | "KAZAKH" | "KHMER" | "KOREAN" | "LAO" | "LATIN" | "LATVIAN" | "LETZEBURGESCH" | "LINGALA" | "LITHUANIAN" | "LUXEMBOURGISH" | "MACEDONIAN" | "MALAGASY" | "MALAY" | "MALAYALAM" | "MALTESE" | "MANDARIN" | "MAORI" | "MARATHI" | "MOLDAVIAN" | "MOLDOVAN" | "MONGOLIAN" | "MYANMAR" | "NEPALI" | "NORWEGIAN" | "NYNORSK" | "OCCITAN" | "PANJABI" | "PASHTO" | "PERSIAN" | "POLISH" | "PORTUGUESE" | "PUNJABI" | "PUSHTO" | "ROMANIAN" | "RUSSIAN" | "SANSKRIT" | "SERBIAN" | "SHONA" | "SINDHI" | "SINHALA" | "SINHALESE" | "SLOVAK" | "SLOVENIAN" | "SOMALI" | "SPANISH" | "SUNDANESE" | "SWAHILI" | "SWEDISH" | "TAGALOG" | "TAJIK" | "TAMIL" | "TATAR" | "TELUGU" | "THAI" | "TIBETAN" | "TURKISH" | "TURKMEN" | "UKRAINIAN" | "URDU" | "UZBEK" | "VALENCIAN" | "VIETNAMESE" | "WELSH" | "YIDDISH" | "YORUBA";
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;AAiCA,YAAY,cACR,QACA,QACA,QACA,QACA,QACA,aACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,YACA,iBACA,YACA,iBACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,YACA,QACA,QACA,aACA,QACA,QACA,YACA,QACA,QACA,QACA,QACA,QACA,aACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,YACA,QACA,QACA,aACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,aACA,QACA,QACA;;;;;;AAOJ,YAAY,YACR,WACA,aACA,YACA,wBACA,aACA,aACA,eACA,aACA,YACA,aACA,UACA,aACA,aACA,mBACA,wBACA,oBACA,yBACA,WACA,gBACA,WACA,aACA,kBACA,YACA,UACA,QACA,UACA,cACA,YACA,UACA,YACA,WACA,UACA,WACA,WACA,SACA,YACA;;;;;;AAOJ,YAAY,wBACR,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,QACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,QACA,OACA,cACA,aACA,YACA,WACA,aACA,aACA,gBACA,YACA,WACA,eACA,YACA,YACA,WACA,cACA,YACA,cACA,cACA,YACA,YACA,aACA,UACA,WACA,UACA,YACA,aACA,YACA,YACA,YACA,WACA,aACA,aACA,WACA,UACA,aACA,YACA,mBACA,UACA,aACA,WACA,UACA,cACA,cACA,eACA,YACA,aACA,aACA,YACA,WACA,UACA,WACA,QACA,UACA,YACA,kBACA,YACA,eACA,kBACA,eACA,aACA,UACA,cACA,YACA,aACA,UACA,YACA,cACA,aACA,cACA,YACA,WACA,cACA,YACA,YACA,YACA,WACA,YACA,WACA,eACA,YACA,WACA,aACA,YACA,aACA,YACA,UACA,WACA,YACA,cACA,WACA,cACA,WACA,YACA,cACA,YACA,YACA,YACA,UACA,UACA,UACA,WACA,SACA,YACA,YACA,YACA,cACA,SACA,UACA,cACA,eACA,UACA,YACA","names":[],"sources":["../../../src/experimental/MediaTransformationLanguages.ts"],"version":3,"file":"MediaTransformationLanguages.d.ts"}
@@ -3,7 +3,7 @@ export { __EXPERIMENTAL__NOT_SUPPORTED_YET__executeStreamingFunction } from "../
3
3
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchOneByRid } from "../experimental/fetchOneByRid.js";
4
4
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid, type FetchPageByRidPayload } from "../experimental/fetchPageByRid.js";
5
5
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__getBulkLinks } from "../experimental/getBulkLinks.js";
6
- export type { AnnotateGeometry, Annotation, AudioEncoding, AudioOperation, AudioToTextOperation, BoundingBox, Color, ContrastType, DicomToImageOperation, DocumentTextExtractionConfig, DocumentToDocumentOperation, DocumentToImageOperation, DocumentToTextOperation, EmailToAttachmentOperation, EmailToTextOperation, ImageOperation, ImagePixelCoordinate, ImageRegionPolygon, ImageSpec, ImageToDocumentOperation, ImageToEmbeddingOperation, ImageToTextOperation, LayoutAwareExtractionParameters, LlmSpec, MediaTransformation, OcrLanguageOrScript, OcrOutputFormat, OcrParameters, PageRange, SpreadsheetToTextOperation, TranscribeOutputFormat, VideoOperation, VideoToArchiveOperation, VideoToAudioOperation, VideoToImageOperation, VideoToTextOperation, VlmPreprocessingConfig } from "../experimental/MediaTransformation.js";
6
+ export type { AnnotateGeometry, Annotation, ArchiveEncoding, AudioEncoding, AudioOperation, AudioToTextOperation, BoundingBox, Color, ContrastType, DicomToImageOperation, DocumentEncoding, DocumentTextExtractionConfig, DocumentToDocumentOperation, DocumentToImageOperation, DocumentToTextOperation, EmailToAttachmentOperation, EmailToTextOperation, ImageOperation, ImagePixelCoordinate, ImageRegionPolygon, ImageryEncoding, ImageSpec, ImageToDocumentOperation, ImageToEmbeddingOperation, ImageToTextOperation, LayoutAwareExtractionParameters, LlmSpec, MediaTransformation, OcrLanguage, OcrLanguageOrScript, OcrOutputFormat, OcrParameters, OcrScript, PageRange, SpreadsheetToTextOperation, TranscribeOutputFormat, TranscriptionLanguage, VideoEncoding, VideoOperation, VideoToArchiveOperation, VideoToAudioOperation, VideoToImageOperation, VideoToTextOperation, VlmPreprocessingConfig } from "../experimental/MediaTransformation.js";
7
7
  export { __EXPERIMENTAL__NOT_SUPPORTED_YET__subscribeToNoTypeObjectSet } from "../experimental/subscribeToNoTypeObjectSet.js";
8
8
  export { transformAndWait, type TransformOptions } from "../experimental/transformAndWait.js";
9
9
  export { MediaTransformationError, MediaTransformationFailedError, MediaTransformationTimeoutError } from "../object/MediaTransformationErrors.js";
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,YAAY,qBAAqB;AAE/C,SAAS,mEAAmE;AAC5E,SAAS,wDAAwD;AACjE,SACE,wDACK,6BACA;AACP,SAAS,uDAAuD;AAChE,cACE,kBACA,YACA,eACA,gBACA,sBACA,aACA,OACA,cACA,uBACA,8BACA,6BACA,0BACA,yBACA,4BACA,sBACA,gBACA,sBACA,oBACA,WACA,0BACA,2BACA,sBACA,iCACA,SACA,qBACA,qBACA,iBACA,eACA,WACA,4BACA,wBACA,gBACA,yBACA,uBACA,uBACA,sBACA,8BACK;AACP,SAAS,qEAAqE;AAC9E,SACE,uBACK,wBACA;AACP,SACE,0BACA,gCACA,uCACK;AAEP,cAAc,mCAAmC;AACjD,cAAc,wBAAwB;AAGtC,SACE,yBACA,oBACA,kBACA,uBACA,8BACK;AAEP,cACE,sBACA,kBACA,mBACA,gBACA,YACA,sBACA,cACA,kBACA,eACA,cACA,iBACA,mBACA,eACA,kBACA,uBACK","names":[],"sources":["../../../src/public/unstable.ts"],"version":3,"file":"unstable.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,YAAY,qBAAqB;AAE/C,SAAS,mEAAmE;AAC5E,SAAS,wDAAwD;AACjE,SACE,wDACK,6BACA;AACP,SAAS,uDAAuD;AAChE,cACE,kBACA,YACA,iBACA,eACA,gBACA,sBACA,aACA,OACA,cACA,uBACA,kBACA,8BACA,6BACA,0BACA,yBACA,4BACA,sBACA,gBACA,sBACA,oBACA,iBACA,WACA,0BACA,2BACA,sBACA,iCACA,SACA,qBACA,aACA,qBACA,iBACA,eACA,WACA,WACA,4BACA,wBACA,uBACA,eACA,gBACA,yBACA,uBACA,uBACA,sBACA,8BACK;AACP,SAAS,qEAAqE;AAC9E,SACE,uBACK,wBACA;AACP,SACE,0BACA,gCACA,uCACK;AAEP,cAAc,mCAAmC;AACjD,cAAc,wBAAwB;AAGtC,SACE,yBACA,oBACA,kBACA,uBACA,8BACK;AAEP,cACE,sBACA,kBACA,mBACA,gBACA,YACA,sBACA,cACA,kBACA,eACA,cACA,iBACA,mBACA,eACA,kBACA,uBACK","names":[],"sources":["../../../src/public/unstable.ts"],"version":3,"file":"unstable.d.ts"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/api",
3
- "version": "2.60.0",
3
+ "version": "2.61.0-main-34cb7e0f9aacae2172c7a172aaccdbd863c76bf4",
4
4
  "description": "",
5
5
  "access": "public",
6
6
  "license": "Apache-2.0",
@@ -57,8 +57,8 @@
57
57
  "@microsoft/api-extractor": "^7.52.11",
58
58
  "ts-expect": "^1.3.0",
59
59
  "typescript": "~5.5.4",
60
- "@osdk/monorepo.tsconfig": "~0.7.0",
61
- "@osdk/monorepo.api-extractor": "~0.7.0"
60
+ "@osdk/monorepo.api-extractor": "~0.7.0",
61
+ "@osdk/monorepo.tsconfig": "~0.7.0"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"