@cesdk/node 1.63.0-nightly.20251015 → 1.63.0-nightly.20251017

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/index.d.ts CHANGED
@@ -1132,6 +1132,7 @@ export declare type AssetTransformPreset = AssetFixedAspectRatio | AssetFreeAspe
1132
1132
  * - 'duration': The duration in seconds of the final audio.
1133
1133
  * - 'sampleRate': The sample rate of the exported audio.
1134
1134
  * - 'numberOfChannels': The number of channels of the exported audio.
1135
+ * - 'skipEncoding': Skip encoding (audio data will be returned immediately even if not compatible with target MIME type).
1135
1136
  *
1136
1137
  * @public
1137
1138
  */
@@ -1170,6 +1171,16 @@ export declare type AudioExportOptions = {
1170
1171
  * @defaultValue 2
1171
1172
  */
1172
1173
  numberOfChannels?: number;
1174
+ /**
1175
+ * Skip encoding (audio data will be returned immediately even if not compatible with target MIME type).
1176
+ *
1177
+ * @defaultValue false
1178
+ */
1179
+ skipEncoding?: boolean;
1180
+ /**
1181
+ * An AbortSignal that can be used to cancel the audio export operation.
1182
+ */
1183
+ abortSignal?: AbortSignal;
1173
1184
  };
1174
1185
 
1175
1186
  /**
@@ -1178,10 +1189,11 @@ export declare type AudioExportOptions = {
1178
1189
  * @categoryDescription Audio MIME Type
1179
1190
  * Defines the possible audio MIME types used in the editor.
1180
1191
  * - 'audio/wav': WAV audio format.
1192
+ * - 'audio/mp4': MP4 audio format.
1181
1193
  *
1182
1194
  * @public
1183
1195
  */
1184
- export declare type AudioMimeType = Extract<MimeType_2, 'audio/wav'>;
1196
+ export declare type AudioMimeType = Extract<MimeType_2, 'audio/wav' | 'audio/mp4'>;
1185
1197
 
1186
1198
  /**
1187
1199
  * Information about a single audio track from a video.
@@ -1475,10 +1487,10 @@ export declare class BlockAPI {
1475
1487
  * console.log(`Audio export progress: ${Math.round((encodedFrames / totalFrames) * 100)}%`);
1476
1488
  * };
1477
1489
  * const audioOptions = { duration: 10 };
1478
- * const audioBlob = await engine.block.unstable_exportAudio(audioBlock, MimeType.Wav, progressTracker, audioOptions);
1490
+ * const audioBlob = await engine.block.exportAudio(audioBlock, MimeType.Wav, progressTracker, audioOptions);
1479
1491
  * ```
1480
1492
  */
1481
- unstable_exportAudio(handle: DesignBlockId, options?: AudioExportOptions): Promise<Blob>;
1493
+ exportAudio(handle: DesignBlockId, options?: AudioExportOptions): Promise<Blob>;
1482
1494
  /**
1483
1495
  * Loads blocks from a serialized string.
1484
1496
  *
@@ -7090,6 +7102,7 @@ export declare const LogLevel: {
7090
7102
  * - 'image/webp': WebP image format.
7091
7103
  * - 'image/x-tga': TGA image format.
7092
7104
  * - 'audio/wav': WAV audio format.
7105
+ * - 'audio/mp4': MP4 audio format.
7093
7106
  * - 'video/mp4': MP4 video format.
7094
7107
  * - 'video/quicktime': QuickTime video format.
7095
7108
  * - 'application/octet-stream': Binary data format.
@@ -7105,6 +7118,7 @@ declare const MimeType_2: {
7105
7118
  readonly WebP: "image/webp";
7106
7119
  readonly Tga: "image/x-tga";
7107
7120
  readonly Wav: "audio/wav";
7121
+ readonly Mp4Audio: "audio/mp4";
7108
7122
  readonly Mp4: "video/mp4";
7109
7123
  readonly QuickTime: "video/quicktime";
7110
7124
  readonly Binary: "application/octet-stream";
@@ -7122,6 +7136,7 @@ declare const MimeType_2: {
7122
7136
  * - 'image/webp': WebP image format.
7123
7137
  * - 'image/x-tga': TGA image format.
7124
7138
  * - 'audio/wav': WAV audio format.
7139
+ * - 'audio/mp4': MP4 audio format.
7125
7140
  * - 'video/mp4': MP4 video format.
7126
7141
  * - 'video/quicktime': QuickTime video format.
7127
7142
  * - 'application/octet-stream': Binary data format.
@@ -8381,6 +8396,7 @@ export declare type TypefaceDefinition = {
8381
8396
  declare interface UBQExportAudioOptions {
8382
8397
  sampleRate: number;
8383
8398
  numberOfChannels: number;
8399
+ skipEncoding?: boolean;
8384
8400
  }
8385
8401
 
8386
8402
  /**