@wix/auto_sdk_media_files 1.0.77 → 1.0.78

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.
@@ -479,6 +479,183 @@ declare enum IdentityType {
479
479
  }
480
480
  /** @enumType */
481
481
  type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
482
+ /**
483
+ * Internal-only metadata preserved from the raw PM contract that has no
484
+ * representation in the domain model. Populated during toDomain and used
485
+ * by fromDomain to reconstruct a lossless raw PM file.
486
+ */
487
+ interface FileAdditionalProperties extends FileAdditionalPropertiesMediaAdditionalPropertiesOneOf {
488
+ /** Set when the file is an audio file; preserves PM-specific audio fields. */
489
+ audio?: AudioAdditionalProperties;
490
+ /** Set when the file is a video file; preserves PM-specific video fields. */
491
+ video?: VideoAdditionalProperties;
492
+ /** Set when the file is a font file; preserves PM-specific font fields. */
493
+ font?: FontAdditionalProperties;
494
+ /** Set when the file is a document file; preserves PM-specific document fields. */
495
+ document?: DocumentAdditionalProperties;
496
+ /** Set when the file is a 3D model file; preserves PM-specific model3d fields. */
497
+ model3d?: Model3dAdditionalProperties;
498
+ /** Set when the file is an image file; preserves PM-specific image fields. */
499
+ image?: ImageAdditionalProperties;
500
+ }
501
+ /** @oneof */
502
+ interface FileAdditionalPropertiesMediaAdditionalPropertiesOneOf {
503
+ /** Set when the file is an audio file; preserves PM-specific audio fields. */
504
+ audio?: AudioAdditionalProperties;
505
+ /** Set when the file is a video file; preserves PM-specific video fields. */
506
+ video?: VideoAdditionalProperties;
507
+ /** Set when the file is a font file; preserves PM-specific font fields. */
508
+ font?: FontAdditionalProperties;
509
+ /** Set when the file is a document file; preserves PM-specific document fields. */
510
+ document?: DocumentAdditionalProperties;
511
+ /** Set when the file is a 3D model file; preserves PM-specific model3d fields. */
512
+ model3d?: Model3dAdditionalProperties;
513
+ /** Set when the file is an image file; preserves PM-specific image fields. */
514
+ image?: ImageAdditionalProperties;
515
+ }
516
+ interface AudioAdditionalProperties {
517
+ /** From PmAudioInfo.file_input.sample_rate, in Hz (e.g. 44100). */
518
+ sampleRate?: number | null;
519
+ /** From PmAudioInfo.file_input.channels (e.g. 2 for stereo). */
520
+ channels?: number | null;
521
+ /**
522
+ * Parallel array to AudioV2.assets, same sort order.
523
+ * @maxSize 10
524
+ */
525
+ assets?: AudioAssetAdditionalProperties[];
526
+ }
527
+ interface AudioAssetAdditionalProperties {
528
+ /**
529
+ * From PmAudioInfo.file_output.audio[].tag (e.g. "high").
530
+ * @maxLength 100
531
+ */
532
+ tag?: string | null;
533
+ /** From PmAudioInfo.file_output.audio[].audio_bitrate, in bits per second. */
534
+ audioBitrate?: number | null;
535
+ /**
536
+ * From PmAudioInfo.file_output.audio[].status (e.g. "READY").
537
+ * @maxLength 30
538
+ */
539
+ status?: string | null;
540
+ /**
541
+ * From PmAudioInfo.file_output.audio[].url (only populated for secure assets where PM omits the URL).
542
+ * @format WEB_URL
543
+ */
544
+ url?: string | null;
545
+ }
546
+ interface VideoAdditionalProperties {
547
+ /**
548
+ * From PmVideoInfo.file_input.fps (e.g. "25/1").
549
+ * @maxLength 10
550
+ */
551
+ fps?: string | null;
552
+ /** From PmVideoInfo.file_input.video_bitrate, in bits per second. */
553
+ videoBitrate?: number | null;
554
+ /** From PmVideoInfo.file_input.rotation, in degrees (e.g. 0, 90, 180, 270). */
555
+ rotation?: number | null;
556
+ /**
557
+ * From PmVideoInfo.file_input.display_aspect_ratio (e.g. "16:9").
558
+ * @maxLength 10
559
+ */
560
+ displayAspectRatio?: string | null;
561
+ /** From PmVideoInfo.file_input.audio_bitrate, in bits per second. */
562
+ audioBitrate?: number | null;
563
+ /**
564
+ * From PmVideoInfo.file_input.sample_aspect_ration (e.g. "1:1").
565
+ * @maxLength 10
566
+ */
567
+ sampleAspectRatio?: string | null;
568
+ /**
569
+ * Keyed by VideoResolution.assetKey (e.g. "720p.mp4", "storyboard-00001.jpg").
570
+ * Covers both file_output.video[] and file_output.storyboard[] on the raw side.
571
+ */
572
+ resolutions?: Record<string, VideoResolutionAdditionalProperties>;
573
+ /**
574
+ * Parallel array to VideoV2.posters, same sort order.
575
+ * @maxSize 10
576
+ */
577
+ posters?: ImageOutputAdditionalProperties[];
578
+ }
579
+ interface VideoResolutionAdditionalProperties {
580
+ /** From PmVideoInfo.file_output.video[].audio_bitrate or storyboard[].audio_bitrate, in bits per second. */
581
+ audioBitrate?: number | null;
582
+ /**
583
+ * From PmVideoInfo.file_output.video[].display_aspect_ratio or storyboard[].display_aspect_ratio (e.g. "16:9").
584
+ * @maxLength 10
585
+ */
586
+ displayAspectRatio?: string | null;
587
+ /**
588
+ * From PmVideoInfo.file_output.video[].fps or storyboard[].fps (e.g. "25/1").
589
+ * @maxLength 10
590
+ */
591
+ fps?: string | null;
592
+ /**
593
+ * From PmVideoInfo.file_output.video[].status or storyboard[].status (e.g. "READY").
594
+ * @maxLength 20
595
+ */
596
+ status?: string | null;
597
+ /**
598
+ * From PmVideoInfo.file_output.video[].tag or storyboard[].tag (e.g. "HD").
599
+ * @maxLength 100
600
+ */
601
+ tag?: string | null;
602
+ /** From PmVideoInfo.file_output.video[].video_bitrate or storyboard[].video_bitrate, in bits per second. */
603
+ videoBitrate?: number | null;
604
+ }
605
+ /**
606
+ * Shared additional properties for any ImageOutput in the raw PM contract
607
+ * (video poster outputs and preview outputs for document/model3d/image files).
608
+ */
609
+ interface ImageOutputAdditionalProperties {
610
+ /**
611
+ * From ImageOutput.key (e.g. "poster.0", "image.preview").
612
+ * @maxLength 100
613
+ */
614
+ key?: string | null;
615
+ /** From ImageOutput.secure. */
616
+ secure?: boolean | null;
617
+ /**
618
+ * From ImageOutput.status (e.g. "READY").
619
+ * @maxLength 30
620
+ */
621
+ status?: string | null;
622
+ /**
623
+ * From ImageOutput.format (e.g. "jpg", "png"). Absent when original raw had no format field.
624
+ * @maxLength 10
625
+ */
626
+ format?: string | null;
627
+ /**
628
+ * From ImageOutput.name. Present for model3d and some document previews; absent for video posters.
629
+ * @maxLength 200
630
+ */
631
+ name?: string | null;
632
+ }
633
+ interface FontAdditionalProperties {
634
+ /**
635
+ * Parallel array to FontMedia.assets, same sort order.
636
+ * @maxSize 10
637
+ */
638
+ assets?: FontAssetAdditionalProperties[];
639
+ }
640
+ interface FontAssetAdditionalProperties {
641
+ /**
642
+ * From PmFontInfo.file_output.font[].status (e.g. "READY").
643
+ * @maxLength 30
644
+ */
645
+ status?: string | null;
646
+ }
647
+ interface DocumentAdditionalProperties {
648
+ /** From PmDocumentInfo.file_output.image[] preview entry; preserves raw PM image-output metadata. */
649
+ preview?: ImageOutputAdditionalProperties;
650
+ }
651
+ interface Model3dAdditionalProperties {
652
+ /** From PmModel3dInfo.file_output.image[] preview entry; preserves raw PM image-output metadata. */
653
+ preview?: ImageOutputAdditionalProperties;
654
+ }
655
+ interface ImageAdditionalProperties {
656
+ /** From PmImageInfo.file_output.image[] preview entry; preserves raw PM image-output metadata. */
657
+ preview?: ImageOutputAdditionalProperties;
658
+ }
482
659
  interface DraftFilePublished {
483
660
  /** The file after it was published */
484
661
  file?: FileDescriptor;
@@ -2583,4 +2760,4 @@ declare const utils: {
2583
2760
  };
2584
2761
  };
2585
2762
 
2586
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type ApplicationError, type Archive, type AudioV2, type BaseEventMetadata, type BulkActionMetadata, type BulkAnnotateImageResult, type BulkAnnotateImagesRequest, type BulkAnnotateImagesResponse, type BulkDeleteFilesOptions, type BulkDeleteFilesRequest, type BulkDeleteFilesResponse, type BulkImportFileOptions, type BulkImportFileRequest, type BulkImportFileResponse, type BulkImportFileResult, type BulkImportFilesRequest, type BulkImportFilesResponse, type BulkInternalImportFilesRequest, type BulkInternalImportFilesResponse, type BulkPublishDraftFileResult, type BulkPublishDraftFilesRequest, type BulkPublishDraftFilesResponse, type BulkRestoreFilesFromTrashBinRequest, type BulkRestoreFilesFromTrashBinResponse, type Color, type ColorRGB, type Colors, type CommonQueryWithEntityContext, CommonSortOrder, type CommonSortOrderWithLiterals, type CommonSorting, ContentDisposition, type ContentDispositionWithLiterals, type CursorPaging, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type DownloadUrl, type DraftFilePublished, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExternalInfo, type FaceRecognition, type FileDescriptor, type FileDescriptorFileFailedEnvelope, type FileDescriptorFileReadyEnvelope, type FileDescriptorQuery, type FileDescriptorQuerySpec, type FileFailed, type FileMedia, type FileMediaMediaOneOf, type FileReady, type FilesQueryBuilder, type FilesQueryResult, type FocalPoint, type FontAsset, type FontMedia, type GenerateAnimatedVectorRequest, type GenerateAnimatedVectorResponse, type GenerateFileDownloadUrlOptions, type GenerateFileDownloadUrlRequest, type GenerateFileDownloadUrlResponse, type GenerateFileDownloadUrlValidationErrors, type GenerateFileResumableUploadUrlOptions, type GenerateFileResumableUploadUrlRequest, type GenerateFileResumableUploadUrlResponse, type GenerateFileResumableUploadUrlValidationErrors, type GenerateFileUploadUrlOptions, type GenerateFileUploadUrlRequest, type GenerateFileUploadUrlResponse, type GenerateFileUploadUrlValidationErrors, type GenerateFilesDownloadUrlRequest, type GenerateFilesDownloadUrlResponse, type GenerateVideoStreamingUrlOptions, type GenerateVideoStreamingUrlRequest, type GenerateVideoStreamingUrlResponse, type GenerateWebSocketTokenRequest, type GenerateWebSocketTokenResponse, type GetFileDescriptorRequest, type GetFileDescriptorResponse, type GetFileDescriptorValidationErrors, type GetFileDescriptorsRequest, type GetFileDescriptorsResponse, type GetFileDescriptorsValidationErrors, type GetSiteFileDescriptorsRequest, type GetSiteFileDescriptorsResponse, type IdentificationData, type IdentificationDataIdOneOf, type IdentityInfo, IdentityType, type IdentityTypeWithLiterals, type ImageAnnotationConfigurations, ImageAnnotationType, type ImageAnnotationTypeWithLiterals, type ImageMedia, type ImportFileOptions, type ImportFileRequest, type ImportFileResponse, type ImportFileValidationErrors, type ItemMetadata, type ListDeletedFilesOptions, type ListDeletedFilesRequest, type ListDeletedFilesResponse, type ListDeletedFilesValidationErrors, type ListFilesOptions, type ListFilesRequest, type ListFilesResponse, type ListFilesValidationErrors, type ListRecentItemsRequest, type ListRecentItemsResponse, MediaType, type MediaTypeWithLiterals, type MessageEnvelope, type Model3D, Namespace, type NamespaceWithLiterals, OperationStatus, type OperationStatusWithLiterals, type OtherMedia, type PagingMetadataV2, type Plan, type Plans, type QueryFileDescriptorsRequest, type QueryFileDescriptorsResponse, type RestoreInfo, RootFolder, type RootFolderWithLiterals, type SearchFilesOptions, type SearchFilesRequest, type SearchFilesResponse, type SearchFilesValidationErrors, type ServiceError, type SiteQuotaExceededError, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, StreamFormat, type StreamFormatWithLiterals, type SyncImportFileDescriptorRequest, type SyncImportFileDescriptorResponse, type SyncImportFileRequest, type SyncImportFileResponse, type TotalQuota, type UnsupportedRequestValueError, type UpdateFileDescriptorRequest, type UpdateFileDescriptorResponse, type UpdateFileDescriptorValidationErrors, type UpdateFileRequest, type UpdateFileResponse, UploadProtocol, type UploadProtocolWithLiterals, type VideoResolution, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkDeleteFiles, bulkImportFile, bulkImportFiles, bulkRestoreFilesFromTrashBin, generateFileDownloadUrl, generateFileResumableUploadUrl, generateFileUploadUrl, generateFilesDownloadUrl, generateVideoStreamingUrl, getFileDescriptor, getFileDescriptors, importFile, listDeletedFiles, listFiles, onFileDescriptorFileFailed, onFileDescriptorFileReady, queryFileDescriptors, searchFiles, typedQueryFileDescriptors, updateFileDescriptor, utils };
2763
+ export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type ApplicationError, type Archive, type AudioAdditionalProperties, type AudioAssetAdditionalProperties, type AudioV2, type BaseEventMetadata, type BulkActionMetadata, type BulkAnnotateImageResult, type BulkAnnotateImagesRequest, type BulkAnnotateImagesResponse, type BulkDeleteFilesOptions, type BulkDeleteFilesRequest, type BulkDeleteFilesResponse, type BulkImportFileOptions, type BulkImportFileRequest, type BulkImportFileResponse, type BulkImportFileResult, type BulkImportFilesRequest, type BulkImportFilesResponse, type BulkInternalImportFilesRequest, type BulkInternalImportFilesResponse, type BulkPublishDraftFileResult, type BulkPublishDraftFilesRequest, type BulkPublishDraftFilesResponse, type BulkRestoreFilesFromTrashBinRequest, type BulkRestoreFilesFromTrashBinResponse, type Color, type ColorRGB, type Colors, type CommonQueryWithEntityContext, CommonSortOrder, type CommonSortOrderWithLiterals, type CommonSorting, ContentDisposition, type ContentDispositionWithLiterals, type CursorPaging, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DocumentAdditionalProperties, type DomainEvent, type DomainEventBodyOneOf, type DownloadUrl, type DraftFilePublished, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExternalInfo, type FaceRecognition, type FileAdditionalProperties, type FileAdditionalPropertiesMediaAdditionalPropertiesOneOf, type FileDescriptor, type FileDescriptorFileFailedEnvelope, type FileDescriptorFileReadyEnvelope, type FileDescriptorQuery, type FileDescriptorQuerySpec, type FileFailed, type FileMedia, type FileMediaMediaOneOf, type FileReady, type FilesQueryBuilder, type FilesQueryResult, type FocalPoint, type FontAdditionalProperties, type FontAsset, type FontAssetAdditionalProperties, type FontMedia, type GenerateAnimatedVectorRequest, type GenerateAnimatedVectorResponse, type GenerateFileDownloadUrlOptions, type GenerateFileDownloadUrlRequest, type GenerateFileDownloadUrlResponse, type GenerateFileDownloadUrlValidationErrors, type GenerateFileResumableUploadUrlOptions, type GenerateFileResumableUploadUrlRequest, type GenerateFileResumableUploadUrlResponse, type GenerateFileResumableUploadUrlValidationErrors, type GenerateFileUploadUrlOptions, type GenerateFileUploadUrlRequest, type GenerateFileUploadUrlResponse, type GenerateFileUploadUrlValidationErrors, type GenerateFilesDownloadUrlRequest, type GenerateFilesDownloadUrlResponse, type GenerateVideoStreamingUrlOptions, type GenerateVideoStreamingUrlRequest, type GenerateVideoStreamingUrlResponse, type GenerateWebSocketTokenRequest, type GenerateWebSocketTokenResponse, type GetFileDescriptorRequest, type GetFileDescriptorResponse, type GetFileDescriptorValidationErrors, type GetFileDescriptorsRequest, type GetFileDescriptorsResponse, type GetFileDescriptorsValidationErrors, type GetSiteFileDescriptorsRequest, type GetSiteFileDescriptorsResponse, type IdentificationData, type IdentificationDataIdOneOf, type IdentityInfo, IdentityType, type IdentityTypeWithLiterals, type ImageAdditionalProperties, type ImageAnnotationConfigurations, ImageAnnotationType, type ImageAnnotationTypeWithLiterals, type ImageMedia, type ImageOutputAdditionalProperties, type ImportFileOptions, type ImportFileRequest, type ImportFileResponse, type ImportFileValidationErrors, type ItemMetadata, type ListDeletedFilesOptions, type ListDeletedFilesRequest, type ListDeletedFilesResponse, type ListDeletedFilesValidationErrors, type ListFilesOptions, type ListFilesRequest, type ListFilesResponse, type ListFilesValidationErrors, type ListRecentItemsRequest, type ListRecentItemsResponse, MediaType, type MediaTypeWithLiterals, type MessageEnvelope, type Model3D, type Model3dAdditionalProperties, Namespace, type NamespaceWithLiterals, OperationStatus, type OperationStatusWithLiterals, type OtherMedia, type PagingMetadataV2, type Plan, type Plans, type QueryFileDescriptorsRequest, type QueryFileDescriptorsResponse, type RestoreInfo, RootFolder, type RootFolderWithLiterals, type SearchFilesOptions, type SearchFilesRequest, type SearchFilesResponse, type SearchFilesValidationErrors, type ServiceError, type SiteQuotaExceededError, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, StreamFormat, type StreamFormatWithLiterals, type SyncImportFileDescriptorRequest, type SyncImportFileDescriptorResponse, type SyncImportFileRequest, type SyncImportFileResponse, type TotalQuota, type UnsupportedRequestValueError, type UpdateFileDescriptorRequest, type UpdateFileDescriptorResponse, type UpdateFileDescriptorValidationErrors, type UpdateFileRequest, type UpdateFileResponse, UploadProtocol, type UploadProtocolWithLiterals, type VideoAdditionalProperties, type VideoResolution, type VideoResolutionAdditionalProperties, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkDeleteFiles, bulkImportFile, bulkImportFiles, bulkRestoreFilesFromTrashBin, generateFileDownloadUrl, generateFileResumableUploadUrl, generateFileUploadUrl, generateFilesDownloadUrl, generateVideoStreamingUrl, getFileDescriptor, getFileDescriptors, importFile, listDeletedFiles, listFiles, onFileDescriptorFileFailed, onFileDescriptorFileReady, queryFileDescriptors, searchFiles, typedQueryFileDescriptors, updateFileDescriptor, utils };