@osdk/foundry.mediasets 2.47.0 → 2.49.0

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.
@@ -15,12 +15,87 @@ export interface AffineTransform {
15
15
  yShear?: number;
16
16
  yScale?: number;
17
17
  }
18
+ /**
19
+ * The geometry for an annotation.
20
+ *
21
+ * Log Safety: UNSAFE
22
+ */
23
+ export type AnnotateGeometry = {
24
+ type: "boundingBox";
25
+ } & BoundingBoxGeometry;
26
+ /**
27
+ * Annotates an image with bounding boxes, labels, and colors.
28
+ *
29
+ * Log Safety: UNSAFE
30
+ */
31
+ export interface AnnotateImageOperation {
32
+ annotations: Array<Annotation>;
33
+ }
34
+ /**
35
+ * An annotation to draw on an image.
36
+ *
37
+ * Log Safety: UNSAFE
38
+ */
39
+ export interface Annotation {
40
+ geometry: AnnotateGeometry;
41
+ label?: string;
42
+ color?: Color;
43
+ thickness?: number;
44
+ fontSize?: number;
45
+ }
46
+ /**
47
+ * The output format for encoding archives.
48
+ *
49
+ * Log Safety: UNSAFE
50
+ */
51
+ export type ArchiveEncodeFormat = {
52
+ type: "tar";
53
+ } & TarFormat;
54
+ /**
55
+ * The audio channel layout configuration.
56
+ *
57
+ * Log Safety: UNSAFE
58
+ */
59
+ export type AudioChannelLayout = {
60
+ type: "numberOfChannels";
61
+ } & NumberOfChannels;
62
+ /**
63
+ * Selects a specific channel from multi-channel audio.
64
+ *
65
+ * Log Safety: UNSAFE
66
+ */
67
+ export interface AudioChannelOperation {
68
+ encodeFormat: AudioEncodeFormat;
69
+ channel: number;
70
+ }
71
+ /**
72
+ * Chunks audio into smaller segments of the specified duration.
73
+ *
74
+ * Log Safety: UNSAFE
75
+ */
76
+ export interface AudioChunkOperation {
77
+ chunkDurationMilliseconds: number;
78
+ encodeFormat: AudioEncodeFormat;
79
+ chunkIndex: number;
80
+ }
18
81
  /**
19
82
  * The format of an audio media item.
20
83
  *
21
84
  * Log Safety: SAFE
22
85
  */
23
86
  export type AudioDecodeFormat = "FLAC" | "MP2" | "MP3" | "MP4" | "NIST_SPHERE" | "OGG" | "WAV" | "WEBM";
87
+ /**
88
+ * The output format for encoding audio.
89
+ *
90
+ * Log Safety: UNSAFE
91
+ */
92
+ export type AudioEncodeFormat = ({
93
+ type: "mp3";
94
+ } & Mp3Format) | ({
95
+ type: "wav";
96
+ } & WavEncodeFormat) | ({
97
+ type: "ts";
98
+ } & TsAudioContainerFormat);
24
99
  /**
25
100
  * Metadata for audio media items.
26
101
  *
@@ -31,6 +106,18 @@ export interface AudioMediaItemMetadata {
31
106
  specification: AudioSpecification;
32
107
  sizeBytes: number;
33
108
  }
109
+ /**
110
+ * The operation to perform on audio.
111
+ *
112
+ * Log Safety: UNSAFE
113
+ */
114
+ export type AudioOperation = ({
115
+ type: "channel";
116
+ } & AudioChannelOperation) | ({
117
+ type: "chunk";
118
+ } & AudioChunkOperation) | ({
119
+ type: "convert";
120
+ } & ConvertAudioOperation);
34
121
  /**
35
122
  * Technical specifications for audio media items.
36
123
  *
@@ -41,6 +128,38 @@ export interface AudioSpecification {
41
128
  durationSeconds: number;
42
129
  numberOfChannels?: number;
43
130
  }
131
+ /**
132
+ * The operation to perform for audio to text conversion.
133
+ *
134
+ * Log Safety: UNSAFE
135
+ */
136
+ export type AudioToTextOperation = ({
137
+ type: "transcribe";
138
+ } & TranscribeOperation) | ({
139
+ type: "waveform";
140
+ } & WaveformOperation);
141
+ /**
142
+ * Converts audio to text.
143
+ *
144
+ * Log Safety: UNSAFE
145
+ */
146
+ export interface AudioToTextTransformation {
147
+ operation: AudioToTextOperation;
148
+ }
149
+ /**
150
+ * Transforms audio media items.
151
+ *
152
+ * Log Safety: UNSAFE
153
+ */
154
+ export interface AudioTransformation {
155
+ operation: AudioOperation;
156
+ }
157
+ /**
158
+ * Available embedding models that can be used with the service.
159
+ *
160
+ * Log Safety: SAFE
161
+ */
162
+ export type AvailableEmbeddingModelIds = "GOOGLE_SIGLIP_2";
44
163
  /**
45
164
  * Information about a band in an image.
46
165
  *
@@ -52,6 +171,25 @@ export interface BandInfo {
52
171
  paletteInterpretation?: PaletteInterpretation;
53
172
  unitInterpretation?: UnitInterpretation;
54
173
  }
174
+ /**
175
+ * A rectangular bounding box for annotations.
176
+ *
177
+ * Log Safety: SAFE
178
+ */
179
+ export interface BoundingBox {
180
+ left: number;
181
+ top: number;
182
+ width: number;
183
+ height: number;
184
+ }
185
+ /**
186
+ * A rectangular bounding box geometry for annotations.
187
+ *
188
+ * Log Safety: SAFE
189
+ */
190
+ export interface BoundingBoxGeometry {
191
+ boundingBox: BoundingBox;
192
+ }
55
193
  /**
56
194
  * A name for a media set branch. Valid branch names must be (a) non-empty, (b) less than 256 characters, and
57
195
  (c) not a valid ResourceIdentifier.
@@ -65,6 +203,17 @@ export type BranchName = LooselyBrandedString<"BranchName">;
65
203
  * Log Safety: SAFE
66
204
  */
67
205
  export type BranchRid = LooselyBrandedString<"BranchRid">;
206
+ /**
207
+ * An RGBA color value.
208
+ *
209
+ * Log Safety: SAFE
210
+ */
211
+ export interface Color {
212
+ r: number;
213
+ g: number;
214
+ b: number;
215
+ a?: number;
216
+ }
68
217
  /**
69
218
  * The color interpretation of a band.
70
219
  *
@@ -86,6 +235,72 @@ export interface CommonDicomDataElements {
86
235
  studyTime?: string;
87
236
  seriesTime?: string;
88
237
  }
238
+ /**
239
+ * Binarize contrast operation.
240
+ *
241
+ * Log Safety: SAFE
242
+ */
243
+ export interface ContrastBinarize {
244
+ threshold?: number;
245
+ }
246
+ /**
247
+ * Equalizes the histogram of an image to improve contrast.
248
+ *
249
+ * Log Safety: SAFE
250
+ */
251
+ export interface ContrastEqualize {
252
+ }
253
+ /**
254
+ * Applies contrast adjustments to an image.
255
+ *
256
+ * Log Safety: UNSAFE
257
+ */
258
+ export interface ContrastImageOperation {
259
+ contrastType: ContrastType;
260
+ }
261
+ /**
262
+ * Applies Rayleigh distribution-based contrast adjustment.
263
+ *
264
+ * Log Safety: SAFE
265
+ */
266
+ export interface ContrastRayleigh {
267
+ sigma: number;
268
+ }
269
+ /**
270
+ * The type of contrast adjustment to apply.
271
+ *
272
+ * Log Safety: UNSAFE
273
+ */
274
+ export type ContrastType = ({
275
+ type: "equalize";
276
+ } & ContrastEqualize) | ({
277
+ type: "rayleigh";
278
+ } & ContrastRayleigh) | ({
279
+ type: "binarize";
280
+ } & ContrastBinarize);
281
+ /**
282
+ * Converts audio to the specified format.
283
+ *
284
+ * Log Safety: UNSAFE
285
+ */
286
+ export interface ConvertAudioOperation {
287
+ encodeFormat: AudioEncodeFormat;
288
+ }
289
+ /**
290
+ * Converts a document to PDF format.
291
+ *
292
+ * Log Safety: SAFE
293
+ */
294
+ export interface ConvertDocumentOperation {
295
+ }
296
+ /**
297
+ * Converts a specified sheet to JSON format.
298
+ *
299
+ * Log Safety: UNSAFE
300
+ */
301
+ export interface ConvertSheetToJsonOperation {
302
+ sheetName: string;
303
+ }
89
304
  /**
90
305
  * The coordinate reference system for geo-referenced imagery.
91
306
  *
@@ -94,12 +309,39 @@ export interface CommonDicomDataElements {
94
309
  export interface CoordinateReferenceSystem {
95
310
  wkt?: string;
96
311
  }
312
+ /**
313
+ * Converts an image to a PDF document.
314
+ *
315
+ * Log Safety: SAFE
316
+ */
317
+ export interface CreatePdfOperation {
318
+ }
319
+ /**
320
+ * Crops an image to a rectangular sub-window.
321
+ *
322
+ * Log Safety: UNSAFE
323
+ */
324
+ export interface CropImageOperation {
325
+ xOffset: number;
326
+ yOffset: number;
327
+ width: number;
328
+ height: number;
329
+ }
97
330
  /**
98
331
  * The data type of a band.
99
332
  *
100
333
  * Log Safety: SAFE
101
334
  */
102
335
  export type DataType = "UNDEFINED" | "BYTE" | "UINT16" | "INT16" | "UINT32" | "INT32" | "FLOAT32" | "FLOAT64" | "COMPLEX_INT16" | "COMPLEX_INT32" | "COMPLEX_FLOAT32" | "COMPLEX_FLOAT64" | "UINT64" | "INT64" | "INT8";
336
+ /**
337
+ * Decrypts bounding boxes in an image using a commutative encryption algorithm.
338
+ *
339
+ * Log Safety: SAFE
340
+ */
341
+ export interface DecryptImageOperation {
342
+ polygons: Array<ImageRegionPolygon>;
343
+ cipherLicenseRid: string;
344
+ }
103
345
  /**
104
346
  * The key of a DICOM data element.
105
347
  *
@@ -142,6 +384,23 @@ export interface DicomMetaInformationV1 {
142
384
  mediaStorageSopInstance: string;
143
385
  transferSyntax: string;
144
386
  }
387
+ /**
388
+ * The operation to perform for DICOM to image conversion.
389
+ *
390
+ * Log Safety: UNSAFE
391
+ */
392
+ export type DicomToImageOperation = {
393
+ type: "renderImageLayer";
394
+ } & RenderImageLayerOperation;
395
+ /**
396
+ * Renders DICOM (Digital Imaging and Communications in Medicine) files as images.
397
+ *
398
+ * Log Safety: UNSAFE
399
+ */
400
+ export interface DicomToImageTransformation {
401
+ encoding: ImageryEncodeFormat;
402
+ operation: DicomToImageOperation;
403
+ }
145
404
  /**
146
405
  * The dimensions of an image.
147
406
  *
@@ -157,6 +416,22 @@ export interface Dimensions {
157
416
  * Log Safety: SAFE
158
417
  */
159
418
  export type DocumentDecodeFormat = "PDF" | "DOCX" | "TXT" | "PPTX";
419
+ /**
420
+ * The output format for encoding documents.
421
+ *
422
+ * Log Safety: UNSAFE
423
+ */
424
+ export type DocumentEncodeFormat = {
425
+ type: "pdf";
426
+ } & PdfFormat;
427
+ /**
428
+ * Extracts content from a document with layout information preserved.
429
+ *
430
+ * Log Safety: SAFE
431
+ */
432
+ export interface DocumentExtractLayoutAwareContentOperation {
433
+ parameters: LayoutAwareExtractionParameters;
434
+ }
160
435
  /**
161
436
  * Metadata for document media items.
162
437
  *
@@ -169,6 +444,76 @@ export interface DocumentMediaItemMetadata {
169
444
  title?: string;
170
445
  author?: string;
171
446
  }
447
+ /**
448
+ * The operation to perform for document to document conversion.
449
+ *
450
+ * Log Safety: UNSAFE
451
+ */
452
+ export type DocumentToDocumentOperation = ({
453
+ type: "slicePdfRange";
454
+ } & SlicePdfRangeOperation) | ({
455
+ type: "convertDocument";
456
+ } & ConvertDocumentOperation);
457
+ /**
458
+ * Transforms documents to documents.
459
+ *
460
+ * Log Safety: UNSAFE
461
+ */
462
+ export interface DocumentToDocumentTransformation {
463
+ encoding: DocumentEncodeFormat;
464
+ operation: DocumentToDocumentOperation;
465
+ }
466
+ /**
467
+ * The operation to perform for document to image conversion.
468
+ *
469
+ * Log Safety: UNSAFE
470
+ */
471
+ export type DocumentToImageOperation = ({
472
+ type: "renderPageToFitBoundingBox";
473
+ } & RenderPageToFitBoundingBoxOperation) | ({
474
+ type: "renderPage";
475
+ } & RenderPageOperation);
476
+ /**
477
+ * Renders document pages as images.
478
+ *
479
+ * Log Safety: UNSAFE
480
+ */
481
+ export interface DocumentToImageTransformation {
482
+ encoding: ImageryEncodeFormat;
483
+ operation: DocumentToImageOperation;
484
+ }
485
+ /**
486
+ * The operation to perform for document to text conversion.
487
+ *
488
+ * Log Safety: UNSAFE
489
+ */
490
+ export type DocumentToTextOperation = ({
491
+ type: "extractTableOfContents";
492
+ } & ExtractTableOfContentsOperation) | ({
493
+ type: "getPdfPageDimensions";
494
+ } & GetPdfPageDimensionsOperation) | ({
495
+ type: "extractAllText";
496
+ } & ExtractAllTextOperation) | ({
497
+ type: "extractTextFromPagesToArray";
498
+ } & ExtractTextFromPagesToArrayOperation) | ({
499
+ type: "ocrOnPage";
500
+ } & OcrOnPageOperation) | ({
501
+ type: "extractFormFields";
502
+ } & ExtractFormFieldsOperation) | ({
503
+ type: "extractUnstructuredTextFromPage";
504
+ } & ExtractUnstructuredTextFromPageOperation) | ({
505
+ type: "extractLayoutAwareContent";
506
+ } & DocumentExtractLayoutAwareContentOperation) | ({
507
+ type: "ocrOnPages";
508
+ } & OcrOnPagesOperation);
509
+ /**
510
+ * Extracts text from documents.
511
+ *
512
+ * Log Safety: UNSAFE
513
+ */
514
+ export interface DocumentToTextTransformation {
515
+ operation: DocumentToTextOperation;
516
+ }
172
517
  /**
173
518
  * Metadata about an email attachment.
174
519
  *
@@ -202,104 +547,358 @@ export interface EmailMediaItemMetadata {
202
547
  attachments: Array<EmailAttachment>;
203
548
  }
204
549
  /**
205
- * The flip axis from EXIF orientation.
550
+ * The operation to perform for email to attachment extraction.
206
551
  *
207
- * Log Safety: SAFE
552
+ * Log Safety: UNSAFE
208
553
  */
209
- export type FlipAxis = "HORIZONTAL" | "VERTICAL" | "UNKNOWN";
554
+ export type EmailToAttachmentOperation = {
555
+ type: "getEmailAttachment";
556
+ } & GetEmailAttachmentOperation;
210
557
  /**
211
- * A list of ground control points for geo-referencing.
558
+ * Extracts attachments from email.
212
559
  *
213
- * Log Safety: SAFE
560
+ * Log Safety: UNSAFE
214
561
  */
215
- export interface GcpList {
216
- gcps: Array<GroundControlPoint>;
562
+ export interface EmailToAttachmentTransformation {
563
+ operation: EmailToAttachmentOperation;
217
564
  }
218
565
  /**
219
- * Embedded geo-referencing data for an image.
566
+ * The output format for email body extraction.
567
+ *
568
+ * Log Safety: SAFE
569
+ */
570
+ export type EmailToTextEncodeFormat = "TEXT" | "HTML";
571
+ /**
572
+ * The operation to perform for email to text extraction.
220
573
  *
221
574
  * Log Safety: UNSAFE
222
575
  */
223
- export interface GeoMetadata {
224
- crs?: CoordinateReferenceSystem;
225
- geotransform?: AffineTransform;
226
- gcpInfo?: GcpList;
227
- gpsData?: GpsMetadata;
228
- }
576
+ export type EmailToTextOperation = {
577
+ type: "getEmailBody";
578
+ } & GetEmailBodyOperation;
229
579
  /**
580
+ * Extracts text content from email.
581
+ *
230
582
  * Log Safety: UNSAFE
231
583
  */
232
- export interface GetMediaItemInfoResponse {
233
- viewRid: _Core.MediaSetViewRid;
234
- path?: _Core.MediaItemPath;
235
- logicalTimestamp: LogicalTimestamp;
236
- attribution?: MediaAttribution;
584
+ export interface EmailToTextTransformation {
585
+ operation: EmailToTextOperation;
237
586
  }
238
587
  /**
588
+ * Encrypts bounding boxes in an image using a commutative encryption algorithm.
589
+ *
239
590
  * Log Safety: SAFE
240
591
  */
241
- export interface GetMediaItemRidByPathResponse {
242
- mediaItemRid?: _Core.MediaItemRid;
592
+ export interface EncryptImageOperation {
593
+ polygons: Array<ImageRegionPolygon>;
594
+ cipherLicenseRid: string;
243
595
  }
244
596
  /**
245
- * GPS location metadata extracted from EXIF data embedded in the image.
597
+ * Extracts text across all pages of the document.
598
+ For PDF documents, includes all text. For DocX documents, includes only regular paragraphs.
599
+ *
600
+ * Log Safety: SAFE
601
+ */
602
+ export interface ExtractAllTextOperation {
603
+ }
604
+ /**
605
+ * Extracts the first audio stream from the video unchanged.
246
606
  *
247
- * Log Safety: UNSAFE
607
+ * Log Safety: SAFE
248
608
  */
249
- export interface GpsMetadata {
250
- latitude?: number;
251
- longitude?: number;
252
- altitude?: number;
609
+ export interface ExtractAudioOperation {
253
610
  }
254
611
  /**
255
- * A ground control point for geo-referencing.
612
+ * Extracts the first full scene frame from the video.
613
+ If both width and height are not specified, preserves the original size.
614
+ If only one dimension is specified, the other is calculated to preserve aspect ratio.
615
+ *
616
+ * Log Safety: SAFE
617
+ */
618
+ export interface ExtractFirstFrameOperation {
619
+ height?: number;
620
+ width?: number;
621
+ }
622
+ /**
623
+ * Extracts form field data from a PDF document.
256
624
  *
257
625
  * Log Safety: SAFE
258
626
  */
259
- export interface GroundControlPoint {
260
- pixX?: number;
261
- pixY?: number;
262
- projX?: number;
263
- projY?: number;
264
- projZ?: number;
627
+ export interface ExtractFormFieldsOperation {
265
628
  }
266
629
  /**
267
- * A named group of mailboxes.
630
+ * Extracts frames from the video at specified timestamps.
631
+ If only one dimension is specified, the other is calculated to preserve aspect ratio.
632
+ *
633
+ * Log Safety: UNSAFE
634
+ */
635
+ export interface ExtractFramesAtTimestampsOperation {
636
+ height?: number;
637
+ width?: number;
638
+ timestamp: number;
639
+ }
640
+ /**
641
+ * Extracts all scene frames from a video as images in an archive.
268
642
  *
269
643
  * Log Safety: UNSAFE
270
644
  */
271
- export interface Group {
272
- groupName: string;
273
- mailboxes: Array<Mailbox>;
645
+ export interface ExtractSceneFramesOperation {
646
+ encoding: ImageryEncodeFormat;
647
+ sceneScore?: SceneScore;
274
648
  }
275
649
  /**
276
- * A wrapper for a group in the MailboxOrGroup union.
650
+ * Extracts the table of contents from a document.
277
651
  *
278
- * Log Safety: UNSAFE
652
+ * Log Safety: SAFE
279
653
  */
280
- export interface GroupWrapper {
281
- group: Group;
654
+ export interface ExtractTableOfContentsOperation {
282
655
  }
283
656
  /**
284
- * The domain of an image attribute.
657
+ * Extracts text from multiple pages into a list of strings.
285
658
  *
286
- * Log Safety: UNSAFE
659
+ * Log Safety: SAFE
287
660
  */
288
- export type ImageAttributeDomain = LooselyBrandedString<"ImageAttributeDomain">;
661
+ export interface ExtractTextFromPagesToArrayOperation {
662
+ startPage?: number;
663
+ endPage?: number;
664
+ }
289
665
  /**
290
- * The key of an image attribute within a domain.
666
+ * Extracts unstructured text from a specified page.
291
667
  *
292
668
  * Log Safety: UNSAFE
293
669
  */
294
- export type ImageAttributeKey = LooselyBrandedString<"ImageAttributeKey">;
670
+ export interface ExtractUnstructuredTextFromPageOperation {
671
+ pageNumber: number;
672
+ }
295
673
  /**
296
- * The format of an imagery media item.
674
+ * The flip axis from EXIF orientation.
297
675
  *
298
676
  * Log Safety: SAFE
299
677
  */
300
- export type ImageryDecodeFormat = "BMP" | "TIFF" | "NITF" | "JP2K" | "JPG" | "PNG" | "WEBP";
678
+ export type FlipAxis = "HORIZONTAL" | "VERTICAL" | "UNKNOWN";
301
679
  /**
302
- * Metadata for imagery (image) media items.
680
+ * A list of ground control points for geo-referencing.
681
+ *
682
+ * Log Safety: SAFE
683
+ */
684
+ export interface GcpList {
685
+ gcps: Array<GroundControlPoint>;
686
+ }
687
+ /**
688
+ * Generates a vector embedding for an image using the specified model.
689
+ *
690
+ * Log Safety: SAFE
691
+ */
692
+ export interface GenerateEmbeddingOperation {
693
+ modelId: AvailableEmbeddingModelIds;
694
+ }
695
+ /**
696
+ * Embedded geo-referencing data for an image.
697
+ *
698
+ * Log Safety: UNSAFE
699
+ */
700
+ export interface GeoMetadata {
701
+ crs?: CoordinateReferenceSystem;
702
+ geotransform?: AffineTransform;
703
+ gcpInfo?: GcpList;
704
+ gpsData?: GpsMetadata;
705
+ }
706
+ /**
707
+ * Retrieves the bytes of an email attachment by index.
708
+ *
709
+ * Log Safety: UNSAFE
710
+ */
711
+ export interface GetEmailAttachmentOperation {
712
+ mimeType: string;
713
+ attachmentIndex: number;
714
+ }
715
+ /**
716
+ * Gets the email body in the specified format.
717
+ *
718
+ * Log Safety: SAFE
719
+ */
720
+ export interface GetEmailBodyOperation {
721
+ outputFormat: EmailToTextEncodeFormat;
722
+ }
723
+ /**
724
+ * Log Safety: UNSAFE
725
+ */
726
+ export interface GetMediaItemInfoResponse {
727
+ viewRid: _Core.MediaSetViewRid;
728
+ path?: _Core.MediaItemPath;
729
+ logicalTimestamp: LogicalTimestamp;
730
+ attribution?: MediaAttribution;
731
+ originallyUploadedFileMimeType?: _Core.MediaType;
732
+ }
733
+ /**
734
+ * Log Safety: SAFE
735
+ */
736
+ export interface GetMediaItemRidByPathResponse {
737
+ mediaItemRid?: _Core.MediaItemRid;
738
+ }
739
+ /**
740
+ * Returns the dimensions of each page in a PDF document as JSON (in points).
741
+ *
742
+ * Log Safety: SAFE
743
+ */
744
+ export interface GetPdfPageDimensionsOperation {
745
+ }
746
+ /**
747
+ * Returns a list of timestamps for scene frames in the video as JSON.
748
+ *
749
+ * Log Safety: SAFE
750
+ */
751
+ export interface GetTimestampsForSceneFramesOperation {
752
+ sceneScore?: SceneScore;
753
+ }
754
+ /**
755
+ * Response containing the status of a transformation job.
756
+ *
757
+ * Log Safety: UNSAFE
758
+ */
759
+ export interface GetTransformationJobStatusResponse {
760
+ status: TransformationJobStatus;
761
+ jobId: TransformationJobId;
762
+ }
763
+ /**
764
+ * GPS location metadata extracted from EXIF data embedded in the image.
765
+ *
766
+ * Log Safety: UNSAFE
767
+ */
768
+ export interface GpsMetadata {
769
+ latitude?: number;
770
+ longitude?: number;
771
+ altitude?: number;
772
+ }
773
+ /**
774
+ * Converts an image to grayscale.
775
+ *
776
+ * Log Safety: SAFE
777
+ */
778
+ export interface GrayscaleImageOperation {
779
+ }
780
+ /**
781
+ * A ground control point for geo-referencing.
782
+ *
783
+ * Log Safety: SAFE
784
+ */
785
+ export interface GroundControlPoint {
786
+ pixX?: number;
787
+ pixY?: number;
788
+ projX?: number;
789
+ projY?: number;
790
+ projZ?: number;
791
+ }
792
+ /**
793
+ * A named group of mailboxes.
794
+ *
795
+ * Log Safety: UNSAFE
796
+ */
797
+ export interface Group {
798
+ groupName: string;
799
+ mailboxes: Array<Mailbox>;
800
+ }
801
+ /**
802
+ * A wrapper for a group in the MailboxOrGroup union.
803
+ *
804
+ * Log Safety: UNSAFE
805
+ */
806
+ export interface GroupWrapper {
807
+ group: Group;
808
+ }
809
+ /**
810
+ * The domain of an image attribute.
811
+ *
812
+ * Log Safety: UNSAFE
813
+ */
814
+ export type ImageAttributeDomain = LooselyBrandedString<"ImageAttributeDomain">;
815
+ /**
816
+ * The key of an image attribute within a domain.
817
+ *
818
+ * Log Safety: UNSAFE
819
+ */
820
+ export type ImageAttributeKey = LooselyBrandedString<"ImageAttributeKey">;
821
+ /**
822
+ * Extracts text from an image with layout information preserved.
823
+ *
824
+ * Log Safety: SAFE
825
+ */
826
+ export interface ImageExtractLayoutAwareContentOperation {
827
+ parameters: LayoutAwareExtractionParameters;
828
+ }
829
+ /**
830
+ * Performs OCR (Optical Character Recognition) on an image.
831
+ *
832
+ * Log Safety: UNSAFE
833
+ */
834
+ export interface ImageOcrOperation {
835
+ parameters: OcrParameters;
836
+ }
837
+ /**
838
+ * An operation to perform on an image.
839
+ *
840
+ * Log Safety: UNSAFE
841
+ */
842
+ export type ImageOperation = ({
843
+ type: "rotate";
844
+ } & RotateImageOperation) | ({
845
+ type: "resizeToFitBoundingBox";
846
+ } & ResizeToFitBoundingBoxOperation) | ({
847
+ type: "encrypt";
848
+ } & EncryptImageOperation) | ({
849
+ type: "contrast";
850
+ } & ContrastImageOperation) | ({
851
+ type: "tile";
852
+ } & TileImageOperation) | ({
853
+ type: "resize";
854
+ } & ResizeImageOperation) | ({
855
+ type: "annotate";
856
+ } & AnnotateImageOperation) | ({
857
+ type: "decrypt";
858
+ } & DecryptImageOperation) | ({
859
+ type: "crop";
860
+ } & CropImageOperation) | ({
861
+ type: "grayscale";
862
+ } & GrayscaleImageOperation);
863
+ /**
864
+ * Coordinate of a pixel in an image (x, y). Top left corner of the image is (0, 0).
865
+ *
866
+ * Log Safety: SAFE
867
+ */
868
+ export interface ImagePixelCoordinate {
869
+ x: number;
870
+ y: number;
871
+ }
872
+ /**
873
+ * Polygon drawn by connecting adjacent coordinates in the list with straight lines.
874
+ A line is drawn between the last and first coordinates in the list to create a closed shape.
875
+ Used to define regions in an image for operations like encryption/decryption.
876
+ *
877
+ * Log Safety: SAFE
878
+ */
879
+ export type ImageRegionPolygon = Array<ImagePixelCoordinate>;
880
+ /**
881
+ * The format of an imagery media item.
882
+ *
883
+ * Log Safety: SAFE
884
+ */
885
+ export type ImageryDecodeFormat = "BMP" | "TIFF" | "NITF" | "JP2K" | "JPG" | "PNG" | "WEBP";
886
+ /**
887
+ * The output format for encoding imagery.
888
+ *
889
+ * Log Safety: UNSAFE
890
+ */
891
+ export type ImageryEncodeFormat = ({
892
+ type: "jpg";
893
+ } & JpgFormat) | ({
894
+ type: "tiff";
895
+ } & TiffFormat) | ({
896
+ type: "png";
897
+ } & PngFormat) | ({
898
+ type: "webp";
899
+ } & WebpFormat);
900
+ /**
901
+ * Metadata for imagery (image) media items.
303
902
  *
304
903
  * Log Safety: UNSAFE
305
904
  */
@@ -314,6 +913,81 @@ export interface ImageryMediaItemMetadata {
314
913
  orientation?: Orientation;
315
914
  sizeBytes: number;
316
915
  }
916
+ /**
917
+ * The operation to perform for image to document conversion.
918
+ *
919
+ * Log Safety: UNSAFE
920
+ */
921
+ export type ImageToDocumentOperation = {
922
+ type: "createPdf";
923
+ } & CreatePdfOperation;
924
+ /**
925
+ * Converts images to documents.
926
+ *
927
+ * Log Safety: UNSAFE
928
+ */
929
+ export interface ImageToDocumentTransformation {
930
+ operation: ImageToDocumentOperation;
931
+ }
932
+ /**
933
+ * The operation to perform for image to embedding conversion.
934
+ *
935
+ * Log Safety: UNSAFE
936
+ */
937
+ export type ImageToEmbeddingOperation = {
938
+ type: "generateEmbedding";
939
+ } & GenerateEmbeddingOperation;
940
+ /**
941
+ * Generates embeddings from images.
942
+ *
943
+ * Log Safety: UNSAFE
944
+ */
945
+ export interface ImageToEmbeddingTransformation {
946
+ operation: ImageToEmbeddingOperation;
947
+ }
948
+ /**
949
+ * The operation to perform for image to text conversion.
950
+ *
951
+ * Log Safety: UNSAFE
952
+ */
953
+ export type ImageToTextOperation = ({
954
+ type: "extractLayoutAwareContent";
955
+ } & ImageExtractLayoutAwareContentOperation) | ({
956
+ type: "ocr";
957
+ } & ImageOcrOperation);
958
+ /**
959
+ * Extracts text from images.
960
+ *
961
+ * Log Safety: UNSAFE
962
+ */
963
+ export interface ImageToTextTransformation {
964
+ operation: ImageToTextOperation;
965
+ }
966
+ /**
967
+ * Transforms images with multiple operations applied in sequence.
968
+ Operations are applied in the order they appear in the list.
969
+ *
970
+ * Log Safety: UNSAFE
971
+ */
972
+ export interface ImageTransformation {
973
+ encoding: ImageryEncodeFormat;
974
+ operations: Array<ImageOperation>;
975
+ }
976
+ /**
977
+ * JPEG image format.
978
+ *
979
+ * Log Safety: SAFE
980
+ */
981
+ export interface JpgFormat {
982
+ }
983
+ /**
984
+ * Parameters for layout-aware content extraction.
985
+ *
986
+ * Log Safety: SAFE
987
+ */
988
+ export interface LayoutAwareExtractionParameters {
989
+ languages: Array<OcrLanguage>;
990
+ }
317
991
  /**
318
992
  * A number representing a logical ordering to be used for transactions, etc.
319
993
  This can be interpreted as a timestamp in microseconds, but may differ slightly from system clock time due
@@ -374,6 +1048,8 @@ export type MediaItemMetadata = ({
374
1048
  } & UntypedMediaItemMetadata) | ({
375
1049
  type: "audio";
376
1050
  } & AudioMediaItemMetadata) | ({
1051
+ type: "model3d";
1052
+ } & Model3dMediaItemMetadata) | ({
377
1053
  type: "video";
378
1054
  } & VideoMediaItemMetadata) | ({
379
1055
  type: "dicom";
@@ -398,6 +1074,13 @@ export interface MediaSet {
398
1074
  * Log Safety: UNSAFE
399
1075
  */
400
1076
  export type MediaSetName = LooselyBrandedString<"MediaSetName">;
1077
+ /**
1078
+ * MKV (Matroska) video container format.
1079
+ *
1080
+ * Log Safety: SAFE
1081
+ */
1082
+ export interface MkvVideoContainerFormat {
1083
+ }
401
1084
  /**
402
1085
  * DICOM modality code. A list of modalities and their meanings can be found in the DICOM specification.
403
1086
  https://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.7.3.html#sect_C.7.3.1.1.1
@@ -405,6 +1088,146 @@ https://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.7.3.html
405
1088
  * Log Safety: SAFE
406
1089
  */
407
1090
  export type Modality = "AR" | "ASMT" | "AU" | "BDUS" | "BI" | "BMD" | "CR" | "CT" | "CTPROTOCOL" | "DG" | "DOC" | "DX" | "ECG" | "EPS" | "ES" | "FID" | "GM" | "HC" | "HD" | "IO" | "IOL" | "IVOCT" | "IVUS" | "KER" | "KO" | "LEN" | "LS" | "MG" | "MR" | "M3D" | "NM" | "OAM" | "OCT" | "OP" | "OPM" | "OPT" | "OPTBSV" | "OPTENF" | "OPV" | "OSS" | "OT" | "PLAN" | "PR" | "PT" | "PX" | "REG" | "RESP" | "RF" | "RG" | "RTDOSE" | "RTIMAGE" | "RTINTENT" | "RTPLAN" | "RTRAD" | "RTRECORD" | "RTSEGANN" | "RTSTRUCT" | "RWV" | "SEG" | "SM" | "SMR" | "SR" | "SRF" | "STAIN" | "TEXTUREMAP" | "TG" | "US" | "VA" | "XA" | "XC" | "AS" | "CD" | "CF" | "CP" | "CS" | "DD" | "DF" | "DM" | "DS" | "EC" | "FA" | "FS" | "LP" | "MA" | "MS" | "OPR" | "ST" | "VF";
1091
+ /**
1092
+ * The format of a 3D model media item.
1093
+ *
1094
+ * Log Safety: SAFE
1095
+ */
1096
+ export type Model3dDecodeFormat = "LAS" | "PLY" | "OBJ";
1097
+ /**
1098
+ * Metadata for 3D model media items.
1099
+ *
1100
+ * Log Safety: SAFE
1101
+ */
1102
+ export interface Model3dMediaItemMetadata {
1103
+ format: Model3dDecodeFormat;
1104
+ modelType: Model3dType;
1105
+ sizeBytes: number;
1106
+ }
1107
+ /**
1108
+ * The type of 3D model representation.
1109
+ *
1110
+ * Log Safety: SAFE
1111
+ */
1112
+ export type Model3dType = "POINT_CLOUD" | "MESH";
1113
+ /**
1114
+ * MOV (QuickTime) video container format.
1115
+ *
1116
+ * Log Safety: SAFE
1117
+ */
1118
+ export interface MovVideoContainerFormat {
1119
+ }
1120
+ /**
1121
+ * MP3 audio format.
1122
+ *
1123
+ * Log Safety: SAFE
1124
+ */
1125
+ export interface Mp3Format {
1126
+ }
1127
+ /**
1128
+ * MP4 video container format.
1129
+ *
1130
+ * Log Safety: SAFE
1131
+ */
1132
+ export interface Mp4VideoContainerFormat {
1133
+ }
1134
+ /**
1135
+ * Specifies the number of audio channels. Defaults to 2 (stereo).
1136
+ *
1137
+ * Log Safety: SAFE
1138
+ */
1139
+ export interface NumberOfChannels {
1140
+ numberOfChannels: number;
1141
+ }
1142
+ /**
1143
+ * hOCR (HTML-based OCR) output format.
1144
+ *
1145
+ * Log Safety: SAFE
1146
+ */
1147
+ export interface OcrHocrOutputFormat {
1148
+ }
1149
+ /**
1150
+ * Language codes for OCR.
1151
+ *
1152
+ * Log Safety: SAFE
1153
+ */
1154
+ 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";
1155
+ /**
1156
+ * Either a specific language or a script for OCR.
1157
+ *
1158
+ * Log Safety: UNSAFE
1159
+ */
1160
+ export type OcrLanguageOrScript = ({
1161
+ type: "language";
1162
+ } & OcrLanguageWrapper) | ({
1163
+ type: "script";
1164
+ } & OcrScriptWrapper);
1165
+ /**
1166
+ * Wrapper for an OCR language.
1167
+ *
1168
+ * Log Safety: SAFE
1169
+ */
1170
+ export interface OcrLanguageWrapper {
1171
+ language: OcrLanguage;
1172
+ }
1173
+ /**
1174
+ * Performs OCR (Optical Character Recognition) on a specific page of a document.
1175
+ *
1176
+ * Log Safety: UNSAFE
1177
+ */
1178
+ export interface OcrOnPageOperation {
1179
+ pageNumber: number;
1180
+ parameters: OcrParameters;
1181
+ }
1182
+ /**
1183
+ * Creates access patterns for OCR across pages of a document.
1184
+ *
1185
+ * Log Safety: UNSAFE
1186
+ */
1187
+ export interface OcrOnPagesOperation {
1188
+ parameters: OcrParameters;
1189
+ pageNumber: number;
1190
+ }
1191
+ /**
1192
+ * The output format for OCR results.
1193
+ *
1194
+ * Log Safety: UNSAFE
1195
+ */
1196
+ export type OcrOutputFormat = ({
1197
+ type: "hocr";
1198
+ } & OcrHocrOutputFormat) | ({
1199
+ type: "text";
1200
+ } & OcrTextOutputFormat);
1201
+ /**
1202
+ * Parameters for OCR (Optical Character Recognition) operations.
1203
+ *
1204
+ * Log Safety: UNSAFE
1205
+ */
1206
+ export interface OcrParameters {
1207
+ outputFormat: OcrOutputFormat;
1208
+ languages: Array<OcrLanguageOrScript>;
1209
+ }
1210
+ /**
1211
+ * Script codes for OCR.
1212
+ *
1213
+ * Log Safety: SAFE
1214
+ */
1215
+ 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";
1216
+ /**
1217
+ * Wrapper for an OCR script.
1218
+ *
1219
+ * Log Safety: SAFE
1220
+ */
1221
+ export interface OcrScriptWrapper {
1222
+ script: OcrScript;
1223
+ }
1224
+ /**
1225
+ * Plain text output format for OCR.
1226
+ *
1227
+ * Log Safety: SAFE
1228
+ */
1229
+ export interface OcrTextOutputFormat {
1230
+ }
408
1231
  /**
409
1232
  * The orientation information as encoded in EXIF metadata.
410
1233
  *
@@ -420,18 +1243,129 @@ export interface Orientation {
420
1243
  * Log Safety: SAFE
421
1244
  */
422
1245
  export type PaletteInterpretation = "GRAY" | "RGB" | "RGBA" | "CMYK" | "HLS";
1246
+ /**
1247
+ * PDF document format.
1248
+ *
1249
+ * Log Safety: SAFE
1250
+ */
1251
+ export interface PdfFormat {
1252
+ }
1253
+ /**
1254
+ * The performance mode for transcription.
1255
+ *
1256
+ * Log Safety: SAFE
1257
+ */
1258
+ export type PerformanceMode = "MORE_ECONOMICAL" | "MORE_PERFORMANT";
1259
+ /**
1260
+ * Plain text transcription output format.
1261
+ *
1262
+ * Log Safety: SAFE
1263
+ */
1264
+ export interface PlainTextNoSegmentData {
1265
+ addTimestamps: boolean;
1266
+ }
1267
+ /**
1268
+ * PNG image format.
1269
+ *
1270
+ * Log Safety: SAFE
1271
+ */
1272
+ export interface PngFormat {
1273
+ }
1274
+ /**
1275
+ * PTTML (Palantir Timed Text Markup Language) transcription output format.
1276
+ *
1277
+ * Log Safety: SAFE
1278
+ */
1279
+ export interface Pttml {
1280
+ }
423
1281
  /**
424
1282
  * Log Safety: SAFE
425
1283
  */
426
1284
  export interface PutMediaItemResponse {
427
1285
  mediaItemRid: _Core.MediaItemRid;
428
1286
  }
1287
+ /**
1288
+ * Renders a frame of a DICOM file as an image.
1289
+ If only one dimension is specified, the other is calculated to preserve aspect ratio.
1290
+ *
1291
+ * Log Safety: SAFE
1292
+ */
1293
+ export interface RenderImageLayerOperation {
1294
+ layerNumber?: number;
1295
+ height?: number;
1296
+ width?: number;
1297
+ }
1298
+ /**
1299
+ * Renders a PDF page as an image.
1300
+ If only one dimension is specified, the other is calculated to preserve aspect ratio.
1301
+ *
1302
+ * Log Safety: SAFE
1303
+ */
1304
+ export interface RenderPageOperation {
1305
+ pageNumber?: number;
1306
+ height?: number;
1307
+ width?: number;
1308
+ }
1309
+ /**
1310
+ * Renders a PDF page to maximally fit within a bounding box while preserving aspect ratio.
1311
+ *
1312
+ * Log Safety: SAFE
1313
+ */
1314
+ export interface RenderPageToFitBoundingBoxOperation {
1315
+ pageNumber?: number;
1316
+ width: number;
1317
+ height: number;
1318
+ }
1319
+ /**
1320
+ * Resizes an image to the specified dimensions.
1321
+ If only one dimension is specified, the other is calculated to preserve aspect ratio.
1322
+ *
1323
+ * Log Safety: SAFE
1324
+ */
1325
+ export interface ResizeImageOperation {
1326
+ height?: number;
1327
+ width?: number;
1328
+ autoOrient?: boolean;
1329
+ }
1330
+ /**
1331
+ * Resizes an image to maximally fit within a bounding box while preserving aspect ratio.
1332
+ *
1333
+ * Log Safety: SAFE
1334
+ */
1335
+ export interface ResizeToFitBoundingBoxOperation {
1336
+ width: number;
1337
+ height: number;
1338
+ }
1339
+ /**
1340
+ * Rotates an image clockwise by the specified angle.
1341
+ *
1342
+ * Log Safety: SAFE
1343
+ */
1344
+ export interface RotateImageOperation {
1345
+ angle: RotationAngle;
1346
+ }
429
1347
  /**
430
1348
  * The rotation angle from EXIF orientation.
431
1349
  *
432
1350
  * Log Safety: SAFE
433
1351
  */
434
1352
  export type RotationAngle = "DEGREE_90" | "DEGREE_180" | "DEGREE_270" | "UNKNOWN";
1353
+ /**
1354
+ * The sensitivity threshold for scene detection.
1355
+ *
1356
+ * Log Safety: SAFE
1357
+ */
1358
+ export type SceneScore = "MORE_SENSITIVE" | "STANDARD" | "LESS_SENSITIVE";
1359
+ /**
1360
+ * Slices a PDF to a specified page range.
1361
+ *
1362
+ * Log Safety: SAFE
1363
+ */
1364
+ export interface SlicePdfRangeOperation {
1365
+ startPageInclusive: number;
1366
+ endPageExclusive: number;
1367
+ strictlyEnforceEndPage?: boolean;
1368
+ }
435
1369
  /**
436
1370
  * The format of a spreadsheet media item.
437
1371
  *
@@ -450,6 +1384,47 @@ export interface SpreadsheetMediaItemMetadata {
450
1384
  title?: string;
451
1385
  author?: string;
452
1386
  }
1387
+ /**
1388
+ * The operation to perform for spreadsheet to text conversion.
1389
+ *
1390
+ * Log Safety: UNSAFE
1391
+ */
1392
+ export type SpreadsheetToTextOperation = {
1393
+ type: "convertSheetToJson";
1394
+ } & ConvertSheetToJsonOperation;
1395
+ /**
1396
+ * Converts spreadsheet data to text/JSON.
1397
+ *
1398
+ * Log Safety: UNSAFE
1399
+ */
1400
+ export interface SpreadsheetToTextTransformation {
1401
+ operation: SpreadsheetToTextOperation;
1402
+ }
1403
+ /**
1404
+ * TAR archive format.
1405
+ *
1406
+ * Log Safety: SAFE
1407
+ */
1408
+ export interface TarFormat {
1409
+ }
1410
+ /**
1411
+ * TIFF image format.
1412
+ *
1413
+ * Log Safety: SAFE
1414
+ */
1415
+ export interface TiffFormat {
1416
+ }
1417
+ /**
1418
+ * Generates Slippy map tiles (EPSG 3857) from a geo-embedded image.
1419
+ Only supported for geo-embedded TIFF and NITF images with at most 100M square pixels.
1420
+ *
1421
+ * Log Safety: UNSAFE
1422
+ */
1423
+ export interface TileImageOperation {
1424
+ zoom: number;
1425
+ x: number;
1426
+ y: number;
1427
+ }
453
1428
  /**
454
1429
  * Log Safety: SAFE
455
1430
  */
@@ -481,6 +1456,136 @@ export interface TrackedTransformationSuccessfulResponse {
481
1456
  * Log Safety: SAFE
482
1457
  */
483
1458
  export type TransactionId = string;
1459
+ /**
1460
+ * Encodes video to the specified format.
1461
+ *
1462
+ * Log Safety: SAFE
1463
+ */
1464
+ export interface TranscodeOperation {
1465
+ }
1466
+ /**
1467
+ * JSON transcription output format.
1468
+ *
1469
+ * Log Safety: SAFE
1470
+ */
1471
+ export interface TranscribeJson {
1472
+ }
1473
+ /**
1474
+ * Transcribes speech in audio to text.
1475
+ *
1476
+ * Log Safety: UNSAFE
1477
+ */
1478
+ export interface TranscribeOperation {
1479
+ language?: TranscriptionLanguage;
1480
+ diarize?: boolean;
1481
+ outputFormat?: TranscribeTextEncodeFormat;
1482
+ performanceMode?: PerformanceMode;
1483
+ }
1484
+ /**
1485
+ * The output format for transcription results.
1486
+ *
1487
+ * Log Safety: UNSAFE
1488
+ */
1489
+ export type TranscribeTextEncodeFormat = ({
1490
+ type: "plainTextNoSegmentData";
1491
+ } & PlainTextNoSegmentData) | ({
1492
+ type: "json";
1493
+ } & TranscribeJson) | ({
1494
+ type: "pttml";
1495
+ } & Pttml);
1496
+ /**
1497
+ * Language codes for audio transcription.
1498
+ If not specified, the language will be auto-detected from the first 30 seconds of audio.
1499
+ *
1500
+ * Log Safety: SAFE
1501
+ */
1502
+ 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" | "false" | "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";
1503
+ /**
1504
+ * A transformation to apply to a media item. Each variant specifies the type of transformation
1505
+ and any parameters required for the operation.
1506
+ *
1507
+ * Log Safety: UNSAFE
1508
+ */
1509
+ export type Transformation = ({
1510
+ type: "emailToText";
1511
+ } & EmailToTextTransformation) | ({
1512
+ type: "image";
1513
+ } & ImageTransformation) | ({
1514
+ type: "spreadsheetToText";
1515
+ } & SpreadsheetToTextTransformation) | ({
1516
+ type: "videoToAudio";
1517
+ } & VideoToAudioTransformation) | ({
1518
+ type: "audioToText";
1519
+ } & AudioToTextTransformation) | ({
1520
+ type: "emailToAttachment";
1521
+ } & EmailToAttachmentTransformation) | ({
1522
+ type: "videoToArchive";
1523
+ } & VideoToArchiveTransformation) | ({
1524
+ type: "videoToText";
1525
+ } & VideoToTextTransformation) | ({
1526
+ type: "imageToText";
1527
+ } & ImageToTextTransformation) | ({
1528
+ type: "videoToImage";
1529
+ } & VideoToImageTransformation) | ({
1530
+ type: "video";
1531
+ } & VideoTransformation) | ({
1532
+ type: "imageToDocument";
1533
+ } & ImageToDocumentTransformation) | ({
1534
+ type: "dicomToImage";
1535
+ } & DicomToImageTransformation) | ({
1536
+ type: "documentToDocument";
1537
+ } & DocumentToDocumentTransformation) | ({
1538
+ type: "documentToImage";
1539
+ } & DocumentToImageTransformation) | ({
1540
+ type: "imageToEmbedding";
1541
+ } & ImageToEmbeddingTransformation) | ({
1542
+ type: "audio";
1543
+ } & AudioTransformation) | ({
1544
+ type: "documentToText";
1545
+ } & DocumentToTextTransformation);
1546
+ /**
1547
+ * An identifier for a media item transformation job.
1548
+ *
1549
+ * Log Safety: UNSAFE
1550
+ */
1551
+ export type TransformationJobId = LooselyBrandedString<"TransformationJobId">;
1552
+ /**
1553
+ * The status of a transformation job.
1554
+ *
1555
+ * Log Safety: SAFE
1556
+ */
1557
+ export type TransformationJobStatus = "PENDING" | "FAILED" | "SUCCESSFUL";
1558
+ /**
1559
+ * Request to transform a media item.
1560
+ *
1561
+ * Log Safety: UNSAFE
1562
+ */
1563
+ export interface TransformMediaItemRequest {
1564
+ transformation: Transformation;
1565
+ }
1566
+ /**
1567
+ * Response from initiating a media item transformation.
1568
+ *
1569
+ * Log Safety: UNSAFE
1570
+ */
1571
+ export interface TransformMediaItemResponse {
1572
+ status: TransformationJobStatus;
1573
+ jobId: TransformationJobId;
1574
+ }
1575
+ /**
1576
+ * MPEG Transport Stream audio container format.
1577
+ *
1578
+ * Log Safety: SAFE
1579
+ */
1580
+ export interface TsAudioContainerFormat {
1581
+ }
1582
+ /**
1583
+ * MPEG Transport Stream video container format.
1584
+ *
1585
+ * Log Safety: SAFE
1586
+ */
1587
+ export interface TsVideoContainerFormat {
1588
+ }
484
1589
  /**
485
1590
  * The unit interpretation for a band.
486
1591
  *
@@ -499,12 +1604,36 @@ export interface UnitInterpretation {
499
1604
  export interface UntypedMediaItemMetadata {
500
1605
  sizeBytes: number;
501
1606
  }
1607
+ /**
1608
+ * Chunks video into smaller segments of the specified duration.
1609
+ The final chunk may be smaller than the specified duration.
1610
+ *
1611
+ * Log Safety: UNSAFE
1612
+ */
1613
+ export interface VideoChunkOperation {
1614
+ chunkDurationMilliseconds: number;
1615
+ chunkIndex: number;
1616
+ }
502
1617
  /**
503
1618
  * The format of a video media item.
504
1619
  *
505
1620
  * Log Safety: SAFE
506
1621
  */
507
1622
  export type VideoDecodeFormat = "MP4" | "MKV" | "MOV" | "TS";
1623
+ /**
1624
+ * The output format for encoding video.
1625
+ *
1626
+ * Log Safety: UNSAFE
1627
+ */
1628
+ export type VideoEncodeFormat = ({
1629
+ type: "mp4";
1630
+ } & Mp4VideoContainerFormat) | ({
1631
+ type: "mov";
1632
+ } & MovVideoContainerFormat) | ({
1633
+ type: "mkv";
1634
+ } & MkvVideoContainerFormat) | ({
1635
+ type: "ts";
1636
+ } & TsVideoContainerFormat);
508
1637
  /**
509
1638
  * Metadata for video media items.
510
1639
  *
@@ -515,6 +1644,16 @@ export interface VideoMediaItemMetadata {
515
1644
  specification: VideoSpecification;
516
1645
  sizeBytes: number;
517
1646
  }
1647
+ /**
1648
+ * The operation to perform on the video.
1649
+ *
1650
+ * Log Safety: UNSAFE
1651
+ */
1652
+ export type VideoOperation = ({
1653
+ type: "transcode";
1654
+ } & TranscodeOperation) | ({
1655
+ type: "chunk";
1656
+ } & VideoChunkOperation);
518
1657
  /**
519
1658
  * Technical specifications for video media items.
520
1659
  *
@@ -524,4 +1663,107 @@ export interface VideoSpecification {
524
1663
  bitRate: number;
525
1664
  durationSeconds: number;
526
1665
  }
1666
+ /**
1667
+ * The operation to perform for video to archive conversion.
1668
+ *
1669
+ * Log Safety: UNSAFE
1670
+ */
1671
+ export type VideoToArchiveOperation = {
1672
+ type: "extractSceneFrames";
1673
+ } & ExtractSceneFramesOperation;
1674
+ /**
1675
+ * Extracts video frames to an archive format.
1676
+ *
1677
+ * Log Safety: UNSAFE
1678
+ */
1679
+ export interface VideoToArchiveTransformation {
1680
+ encoding: ArchiveEncodeFormat;
1681
+ operation: VideoToArchiveOperation;
1682
+ }
1683
+ /**
1684
+ * The operation to perform for video to audio conversion.
1685
+ *
1686
+ * Log Safety: UNSAFE
1687
+ */
1688
+ export type VideoToAudioOperation = {
1689
+ type: "extractAudio";
1690
+ } & ExtractAudioOperation;
1691
+ /**
1692
+ * Extracts audio from video.
1693
+ *
1694
+ * Log Safety: UNSAFE
1695
+ */
1696
+ export interface VideoToAudioTransformation {
1697
+ encoding: AudioEncodeFormat;
1698
+ operation: VideoToAudioOperation;
1699
+ }
1700
+ /**
1701
+ * The operation to perform for video to image conversion.
1702
+ *
1703
+ * Log Safety: UNSAFE
1704
+ */
1705
+ export type VideoToImageOperation = ({
1706
+ type: "extractFirstFrame";
1707
+ } & ExtractFirstFrameOperation) | ({
1708
+ type: "extractFramesAtTimestamps";
1709
+ } & ExtractFramesAtTimestampsOperation);
1710
+ /**
1711
+ * Extracts video frames as images.
1712
+ *
1713
+ * Log Safety: UNSAFE
1714
+ */
1715
+ export interface VideoToImageTransformation {
1716
+ encoding: ImageryEncodeFormat;
1717
+ operation: VideoToImageOperation;
1718
+ }
1719
+ /**
1720
+ * The operation to perform for video to text conversion.
1721
+ *
1722
+ * Log Safety: UNSAFE
1723
+ */
1724
+ export type VideoToTextOperation = {
1725
+ type: "getTimestampsForSceneFrames";
1726
+ } & GetTimestampsForSceneFramesOperation;
1727
+ /**
1728
+ * Extracts metadata from video as text/JSON.
1729
+ *
1730
+ * Log Safety: UNSAFE
1731
+ */
1732
+ export interface VideoToTextTransformation {
1733
+ operation: VideoToTextOperation;
1734
+ }
1735
+ /**
1736
+ * Transforms video media items.
1737
+ *
1738
+ * Log Safety: UNSAFE
1739
+ */
1740
+ export interface VideoTransformation {
1741
+ encoding: VideoEncodeFormat;
1742
+ operation: VideoOperation;
1743
+ }
1744
+ /**
1745
+ * Generates waveform visualization data from audio.
1746
+ Returns JSON with normalized doubles (0-1) representing amplitude.
1747
+ *
1748
+ * Log Safety: UNSAFE
1749
+ */
1750
+ export interface WaveformOperation {
1751
+ peaksPerSecond: number;
1752
+ }
1753
+ /**
1754
+ * WAV audio format with optional sample rate and channel layout.
1755
+ *
1756
+ * Log Safety: UNSAFE
1757
+ */
1758
+ export interface WavEncodeFormat {
1759
+ sampleRate?: number;
1760
+ audioChannelLayout?: AudioChannelLayout;
1761
+ }
1762
+ /**
1763
+ * WebP image format.
1764
+ *
1765
+ * Log Safety: SAFE
1766
+ */
1767
+ export interface WebpFormat {
1768
+ }
527
1769
  //# sourceMappingURL=_components.d.ts.map