@editframe/api 0.23.8-beta.0 → 0.25.0-beta.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.
Files changed (77) hide show
  1. package/dist/CHUNK_SIZE_BYTES.js +4 -0
  2. package/dist/CHUNK_SIZE_BYTES.js.map +1 -0
  3. package/dist/ProgressIterator.d.ts +26 -22
  4. package/dist/ProgressIterator.js +5 -1
  5. package/dist/ProgressIterator.js.map +1 -0
  6. package/dist/StreamEventSource.d.ts +58 -54
  7. package/dist/StreamEventSource.js +6 -1
  8. package/dist/StreamEventSource.js.map +1 -0
  9. package/dist/client.d.ts +13 -8
  10. package/dist/client.js +6 -1
  11. package/dist/client.js.map +1 -0
  12. package/dist/index.d.ts +14 -13
  13. package/dist/index.js +4 -3
  14. package/dist/node.d.ts +22 -7
  15. package/dist/node.js +8 -3
  16. package/dist/node.js.map +1 -0
  17. package/dist/resources/caption-file.d.ts +56 -51
  18. package/dist/resources/caption-file.js +25 -3
  19. package/dist/resources/caption-file.js.map +1 -0
  20. package/dist/resources/image-file.d.ts +109 -104
  21. package/dist/resources/image-file.js +8 -3
  22. package/dist/resources/image-file.js.map +1 -0
  23. package/dist/resources/isobmff-file.d.ts +63 -58
  24. package/dist/resources/isobmff-file.js +7 -2
  25. package/dist/resources/isobmff-file.js.map +1 -0
  26. package/dist/resources/isobmff-track.d.ts +604 -598
  27. package/dist/resources/isobmff-track.js +7 -2
  28. package/dist/resources/isobmff-track.js.map +1 -0
  29. package/dist/resources/process-isobmff.d.ts +16 -11
  30. package/dist/resources/process-isobmff.js +5 -0
  31. package/dist/resources/process-isobmff.js.map +1 -0
  32. package/dist/resources/renders.bundle.d.ts +7 -4
  33. package/dist/resources/renders.bundle.js +6 -1
  34. package/dist/resources/renders.bundle.js.map +1 -0
  35. package/dist/resources/renders.d.ts +229 -367
  36. package/dist/resources/renders.js +13 -8
  37. package/dist/resources/renders.js.map +1 -0
  38. package/dist/resources/transcriptions.d.ts +25 -20
  39. package/dist/resources/transcriptions.js +6 -1
  40. package/dist/resources/transcriptions.js.map +1 -0
  41. package/dist/resources/unprocessed-file.d.ts +36 -35
  42. package/dist/resources/unprocessed-file.js +8 -3
  43. package/dist/resources/unprocessed-file.js.map +1 -0
  44. package/dist/resources/url-token.d.ts +9 -4
  45. package/dist/resources/url-token.js +6 -1
  46. package/dist/resources/url-token.js.map +1 -0
  47. package/dist/streamChunker.js +5 -0
  48. package/dist/streamChunker.js.map +1 -0
  49. package/dist/uploadChunks.d.ts +9 -16
  50. package/dist/uploadChunks.js +7 -2
  51. package/dist/uploadChunks.js.map +1 -0
  52. package/dist/utils/assertTypesMatch.js +4 -0
  53. package/dist/utils/assertTypesMatch.js.map +1 -0
  54. package/dist/utils/createReadableStreamFromReadable.d.ts +8 -3
  55. package/dist/utils/createReadableStreamFromReadable.js +5 -0
  56. package/dist/utils/createReadableStreamFromReadable.js.map +1 -0
  57. package/package.json +14 -33
  58. package/src/resources/renders.bundle.ts +1 -1
  59. package/tsdown.config.ts +10 -0
  60. package/dist/CHUNK_SIZE_BYTES.d.ts +0 -1
  61. package/dist/ProgressIterator.test.d.ts +0 -1
  62. package/dist/StreamEventSource.test.d.ts +0 -1
  63. package/dist/client.test.d.ts +0 -1
  64. package/dist/readableFromBuffers.d.ts +0 -1
  65. package/dist/resources/caption-file.test.d.ts +0 -1
  66. package/dist/resources/image-file.test.d.ts +0 -1
  67. package/dist/resources/isobmff-file.test.d.ts +0 -1
  68. package/dist/resources/isobmff-track.test.d.ts +0 -1
  69. package/dist/resources/process-isobmff.test.d.ts +0 -1
  70. package/dist/resources/renders.test.d.ts +0 -1
  71. package/dist/resources/transcriptions.test.d.ts +0 -1
  72. package/dist/resources/unprocessed-file.test.d.ts +0 -1
  73. package/dist/resources/url-token.test.d.ts +0 -1
  74. package/dist/streamChunker.d.ts +0 -1
  75. package/dist/streamChunker.test.d.ts +0 -1
  76. package/dist/uploadChunks.test.d.ts +0 -1
  77. package/dist/utils/assertTypesMatch.d.ts +0 -3
@@ -1,6 +1,225 @@
1
- import { z } from 'zod';
2
- import { Client } from '../client.js';
3
- export declare const AudioStreamSchema: z.ZodObject<{
1
+ import { Client } from "../client.js";
2
+ import { IteratorWithPromise, UploadChunkEvent } from "../uploadChunks.js";
3
+ import { z } from "zod";
4
+
5
+ //#region src/resources/isobmff-track.d.ts
6
+ declare const AudioStreamSchema: z.ZodObject<{
7
+ index: z.ZodNumber;
8
+ codec_name: z.ZodString;
9
+ codec_long_name: z.ZodString;
10
+ codec_type: z.ZodLiteral<"audio">;
11
+ codec_tag_string: z.ZodString;
12
+ codec_tag: z.ZodString;
13
+ sample_fmt: z.ZodString;
14
+ sample_rate: z.ZodString;
15
+ channels: z.ZodNumber;
16
+ channel_layout: z.ZodOptional<z.ZodString>;
17
+ bits_per_sample: z.ZodNumber;
18
+ initial_padding: z.ZodOptional<z.ZodNumber>;
19
+ r_frame_rate: z.ZodString;
20
+ avg_frame_rate: z.ZodString;
21
+ time_base: z.ZodString;
22
+ start_pts: z.ZodOptional<z.ZodNumber>;
23
+ start_time: z.ZodOptional<z.ZodNumber>;
24
+ duration_ts: z.ZodNumber;
25
+ duration: z.ZodNumber;
26
+ bit_rate: z.ZodString;
27
+ disposition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ index: number;
30
+ codec_name: string;
31
+ codec_long_name: string;
32
+ codec_type: "audio";
33
+ codec_tag_string: string;
34
+ codec_tag: string;
35
+ sample_fmt: string;
36
+ sample_rate: string;
37
+ channels: number;
38
+ bits_per_sample: number;
39
+ r_frame_rate: string;
40
+ avg_frame_rate: string;
41
+ time_base: string;
42
+ duration_ts: number;
43
+ duration: number;
44
+ bit_rate: string;
45
+ disposition: Record<string, unknown>;
46
+ channel_layout?: string | undefined;
47
+ initial_padding?: number | undefined;
48
+ start_pts?: number | undefined;
49
+ start_time?: number | undefined;
50
+ }, {
51
+ index: number;
52
+ codec_name: string;
53
+ codec_long_name: string;
54
+ codec_type: "audio";
55
+ codec_tag_string: string;
56
+ codec_tag: string;
57
+ sample_fmt: string;
58
+ sample_rate: string;
59
+ channels: number;
60
+ bits_per_sample: number;
61
+ r_frame_rate: string;
62
+ avg_frame_rate: string;
63
+ time_base: string;
64
+ duration_ts: number;
65
+ duration: number;
66
+ bit_rate: string;
67
+ disposition: Record<string, unknown>;
68
+ channel_layout?: string | undefined;
69
+ initial_padding?: number | undefined;
70
+ start_pts?: number | undefined;
71
+ start_time?: number | undefined;
72
+ }>;
73
+ interface AudioStreamSchema {
74
+ /** The index of the stream in the file */
75
+ index: number;
76
+ /** The name of the codec */
77
+ codec_name: string;
78
+ /** The long name of the codec */
79
+ codec_long_name: string;
80
+ /** The type of the codec */
81
+ codec_type: "audio";
82
+ /** The tag string of the codec */
83
+ codec_tag_string: string;
84
+ /** The tag of the codec */
85
+ codec_tag: string;
86
+ /** The sample format */
87
+ sample_fmt: string;
88
+ /** The sample rate */
89
+ sample_rate: string;
90
+ /** The number of channels */
91
+ channels: number;
92
+ /** The channel layout */
93
+ channel_layout?: string;
94
+ /** The number of bits per sample */
95
+ bits_per_sample: number;
96
+ /** The initial padding */
97
+ initial_padding?: number;
98
+ /** The frame rate */
99
+ r_frame_rate: string;
100
+ /** The average frame rate */
101
+ avg_frame_rate: string;
102
+ /** The time base */
103
+ time_base: string;
104
+ /** The start presentation timestamp */
105
+ start_pts?: number;
106
+ /** The start time */
107
+ start_time?: number;
108
+ /** The duration timestamp */
109
+ duration_ts: number;
110
+ /** The duration */
111
+ duration: number;
112
+ /** The bit rate */
113
+ bit_rate: string;
114
+ /** The disposition record. Subject to change, not documented. */
115
+ disposition: Record<string, unknown>;
116
+ }
117
+ declare const VideoStreamSchema: z.ZodObject<{
118
+ index: z.ZodNumber;
119
+ codec_name: z.ZodString;
120
+ codec_long_name: z.ZodString;
121
+ codec_type: z.ZodLiteral<"video">;
122
+ codec_tag_string: z.ZodString;
123
+ codec_tag: z.ZodString;
124
+ width: z.ZodNumber;
125
+ height: z.ZodNumber;
126
+ coded_width: z.ZodNumber;
127
+ coded_height: z.ZodNumber;
128
+ r_frame_rate: z.ZodString;
129
+ avg_frame_rate: z.ZodString;
130
+ time_base: z.ZodString;
131
+ start_pts: z.ZodOptional<z.ZodNumber>;
132
+ start_time: z.ZodOptional<z.ZodNumber>;
133
+ duration_ts: z.ZodOptional<z.ZodNumber>;
134
+ duration: z.ZodOptional<z.ZodNumber>;
135
+ bit_rate: z.ZodOptional<z.ZodString>;
136
+ disposition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ height: number;
139
+ width: number;
140
+ index: number;
141
+ codec_name: string;
142
+ codec_long_name: string;
143
+ codec_type: "video";
144
+ codec_tag_string: string;
145
+ codec_tag: string;
146
+ r_frame_rate: string;
147
+ avg_frame_rate: string;
148
+ time_base: string;
149
+ disposition: Record<string, unknown>;
150
+ coded_width: number;
151
+ coded_height: number;
152
+ start_pts?: number | undefined;
153
+ start_time?: number | undefined;
154
+ duration_ts?: number | undefined;
155
+ duration?: number | undefined;
156
+ bit_rate?: string | undefined;
157
+ }, {
158
+ height: number;
159
+ width: number;
160
+ index: number;
161
+ codec_name: string;
162
+ codec_long_name: string;
163
+ codec_type: "video";
164
+ codec_tag_string: string;
165
+ codec_tag: string;
166
+ r_frame_rate: string;
167
+ avg_frame_rate: string;
168
+ time_base: string;
169
+ disposition: Record<string, unknown>;
170
+ coded_width: number;
171
+ coded_height: number;
172
+ start_pts?: number | undefined;
173
+ start_time?: number | undefined;
174
+ duration_ts?: number | undefined;
175
+ duration?: number | undefined;
176
+ bit_rate?: string | undefined;
177
+ }>;
178
+ interface VideoStreamSchema {
179
+ /** The index of the stream in the file */
180
+ index: number;
181
+ /** The name of the codec */
182
+ codec_name: string;
183
+ /** The long name of the codec */
184
+ codec_long_name: string;
185
+ /** The type of the codec */
186
+ codec_type: "video";
187
+ /** The tag string of the codec */
188
+ codec_tag_string: string;
189
+ /** The tag of the codec */
190
+ codec_tag: string;
191
+ /** The width */
192
+ width: number;
193
+ /** The height */
194
+ height: number;
195
+ /** The coded width */
196
+ coded_width: number;
197
+ /** The coded height */
198
+ coded_height: number;
199
+ /** The frame rate */
200
+ r_frame_rate: string;
201
+ /** The average frame rate */
202
+ avg_frame_rate: string;
203
+ /** The time base */
204
+ time_base: string;
205
+ /** The start presentation timestamp */
206
+ start_pts?: number;
207
+ /** The start time */
208
+ start_time?: number;
209
+ /** The duration timestamp */
210
+ duration_ts?: number;
211
+ /** The duration */
212
+ duration?: number;
213
+ /** The bit rate */
214
+ bit_rate?: string;
215
+ /** The disposition record. Subject to change, not documented. */
216
+ disposition: Record<string, unknown>;
217
+ }
218
+ declare const AudioTrackPayload: z.ZodObject<{
219
+ file_id: z.ZodString;
220
+ track_id: z.ZodNumber;
221
+ type: z.ZodLiteral<"audio">;
222
+ probe_info: z.ZodObject<{
4
223
  index: z.ZodNumber;
5
224
  codec_name: z.ZodString;
6
225
  codec_long_name: z.ZodString;
@@ -22,7 +241,7 @@ export declare const AudioStreamSchema: z.ZodObject<{
22
241
  duration: z.ZodNumber;
23
242
  bit_rate: z.ZodString;
24
243
  disposition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
25
- }, "strip", z.ZodTypeAny, {
244
+ }, "strip", z.ZodTypeAny, {
26
245
  index: number;
27
246
  codec_name: string;
28
247
  codec_long_name: string;
@@ -44,7 +263,7 @@ export declare const AudioStreamSchema: z.ZodObject<{
44
263
  initial_padding?: number | undefined;
45
264
  start_pts?: number | undefined;
46
265
  start_time?: number | undefined;
47
- }, {
266
+ }, {
48
267
  index: number;
49
268
  codec_name: string;
50
269
  codec_long_name: string;
@@ -66,52 +285,85 @@ export declare const AudioStreamSchema: z.ZodObject<{
66
285
  initial_padding?: number | undefined;
67
286
  start_pts?: number | undefined;
68
287
  start_time?: number | undefined;
69
- }>;
70
- export interface AudioStreamSchema {
71
- /** The index of the stream in the file */
288
+ }>;
289
+ duration_ms: z.ZodNumber;
290
+ codec_name: z.ZodString;
291
+ byte_size: z.ZodNumber;
292
+ }, "strip", z.ZodTypeAny, {
293
+ byte_size: number;
294
+ type: "audio";
295
+ codec_name: string;
296
+ file_id: string;
297
+ track_id: number;
298
+ probe_info: {
299
+ index: number;
300
+ codec_name: string;
301
+ codec_long_name: string;
302
+ codec_type: "audio";
303
+ codec_tag_string: string;
304
+ codec_tag: string;
305
+ sample_fmt: string;
306
+ sample_rate: string;
307
+ channels: number;
308
+ bits_per_sample: number;
309
+ r_frame_rate: string;
310
+ avg_frame_rate: string;
311
+ time_base: string;
312
+ duration_ts: number;
313
+ duration: number;
314
+ bit_rate: string;
315
+ disposition: Record<string, unknown>;
316
+ channel_layout?: string | undefined;
317
+ initial_padding?: number | undefined;
318
+ start_pts?: number | undefined;
319
+ start_time?: number | undefined;
320
+ };
321
+ duration_ms: number;
322
+ }, {
323
+ byte_size: number;
324
+ type: "audio";
325
+ codec_name: string;
326
+ file_id: string;
327
+ track_id: number;
328
+ probe_info: {
72
329
  index: number;
73
- /** The name of the codec */
74
330
  codec_name: string;
75
- /** The long name of the codec */
76
331
  codec_long_name: string;
77
- /** The type of the codec */
78
332
  codec_type: "audio";
79
- /** The tag string of the codec */
80
333
  codec_tag_string: string;
81
- /** The tag of the codec */
82
334
  codec_tag: string;
83
- /** The sample format */
84
335
  sample_fmt: string;
85
- /** The sample rate */
86
336
  sample_rate: string;
87
- /** The number of channels */
88
337
  channels: number;
89
- /** The channel layout */
90
- channel_layout?: string;
91
- /** The number of bits per sample */
92
338
  bits_per_sample: number;
93
- /** The initial padding */
94
- initial_padding?: number;
95
- /** The frame rate */
96
339
  r_frame_rate: string;
97
- /** The average frame rate */
98
340
  avg_frame_rate: string;
99
- /** The time base */
100
341
  time_base: string;
101
- /** The start presentation timestamp */
102
- start_pts?: number;
103
- /** The start time */
104
- start_time?: number;
105
- /** The duration timestamp */
106
342
  duration_ts: number;
107
- /** The duration */
108
343
  duration: number;
109
- /** The bit rate */
110
344
  bit_rate: string;
111
- /** The disposition record. Subject to change, not documented. */
112
345
  disposition: Record<string, unknown>;
346
+ channel_layout?: string | undefined;
347
+ initial_padding?: number | undefined;
348
+ start_pts?: number | undefined;
349
+ start_time?: number | undefined;
350
+ };
351
+ duration_ms: number;
352
+ }>;
353
+ interface AudioTrackPayload {
354
+ file_id: string;
355
+ track_id: number;
356
+ type: "audio";
357
+ probe_info: AudioStreamSchema;
358
+ duration_ms: number;
359
+ codec_name: string;
360
+ byte_size: number;
113
361
  }
114
- export declare const VideoStreamSchema: z.ZodObject<{
362
+ declare const VideoTrackPayload: z.ZodObject<{
363
+ file_id: z.ZodString;
364
+ track_id: z.ZodNumber;
365
+ type: z.ZodLiteral<"video">;
366
+ probe_info: z.ZodObject<{
115
367
  index: z.ZodNumber;
116
368
  codec_name: z.ZodString;
117
369
  codec_long_name: z.ZodString;
@@ -131,7 +383,9 @@ export declare const VideoStreamSchema: z.ZodObject<{
131
383
  duration: z.ZodOptional<z.ZodNumber>;
132
384
  bit_rate: z.ZodOptional<z.ZodString>;
133
385
  disposition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
134
- }, "strip", z.ZodTypeAny, {
386
+ }, "strip", z.ZodTypeAny, {
387
+ height: number;
388
+ width: number;
135
389
  index: number;
136
390
  codec_name: string;
137
391
  codec_long_name: string;
@@ -142,8 +396,6 @@ export declare const VideoStreamSchema: z.ZodObject<{
142
396
  avg_frame_rate: string;
143
397
  time_base: string;
144
398
  disposition: Record<string, unknown>;
145
- width: number;
146
- height: number;
147
399
  coded_width: number;
148
400
  coded_height: number;
149
401
  start_pts?: number | undefined;
@@ -151,7 +403,9 @@ export declare const VideoStreamSchema: z.ZodObject<{
151
403
  duration_ts?: number | undefined;
152
404
  duration?: number | undefined;
153
405
  bit_rate?: string | undefined;
154
- }, {
406
+ }, {
407
+ height: number;
408
+ width: number;
155
409
  index: number;
156
410
  codec_name: string;
157
411
  codec_long_name: string;
@@ -162,8 +416,6 @@ export declare const VideoStreamSchema: z.ZodObject<{
162
416
  avg_frame_rate: string;
163
417
  time_base: string;
164
418
  disposition: Record<string, unknown>;
165
- width: number;
166
- height: number;
167
419
  coded_width: number;
168
420
  coded_height: number;
169
421
  start_pts?: number | undefined;
@@ -171,591 +423,345 @@ export declare const VideoStreamSchema: z.ZodObject<{
171
423
  duration_ts?: number | undefined;
172
424
  duration?: number | undefined;
173
425
  bit_rate?: string | undefined;
174
- }>;
175
- export interface VideoStreamSchema {
176
- /** The index of the stream in the file */
426
+ }>;
427
+ duration_ms: z.ZodNumber;
428
+ codec_name: z.ZodString;
429
+ byte_size: z.ZodNumber;
430
+ }, "strip", z.ZodTypeAny, {
431
+ byte_size: number;
432
+ type: "video";
433
+ codec_name: string;
434
+ file_id: string;
435
+ track_id: number;
436
+ probe_info: {
437
+ height: number;
438
+ width: number;
177
439
  index: number;
178
- /** The name of the codec */
179
440
  codec_name: string;
180
- /** The long name of the codec */
181
441
  codec_long_name: string;
182
- /** The type of the codec */
183
442
  codec_type: "video";
184
- /** The tag string of the codec */
185
443
  codec_tag_string: string;
186
- /** The tag of the codec */
187
444
  codec_tag: string;
188
- /** The width */
189
- width: number;
190
- /** The height */
191
- height: number;
192
- /** The coded width */
193
- coded_width: number;
194
- /** The coded height */
195
- coded_height: number;
196
- /** The frame rate */
197
445
  r_frame_rate: string;
198
- /** The average frame rate */
199
446
  avg_frame_rate: string;
200
- /** The time base */
201
447
  time_base: string;
202
- /** The start presentation timestamp */
203
- start_pts?: number;
204
- /** The start time */
205
- start_time?: number;
206
- /** The duration timestamp */
207
- duration_ts?: number;
208
- /** The duration */
209
- duration?: number;
210
- /** The bit rate */
211
- bit_rate?: string;
212
- /** The disposition record. Subject to change, not documented. */
213
448
  disposition: Record<string, unknown>;
214
- }
215
- export declare const AudioTrackPayload: z.ZodObject<{
216
- file_id: z.ZodString;
217
- track_id: z.ZodNumber;
218
- type: z.ZodLiteral<"audio">;
219
- probe_info: z.ZodObject<{
220
- index: z.ZodNumber;
221
- codec_name: z.ZodString;
222
- codec_long_name: z.ZodString;
223
- codec_type: z.ZodLiteral<"audio">;
224
- codec_tag_string: z.ZodString;
225
- codec_tag: z.ZodString;
226
- sample_fmt: z.ZodString;
227
- sample_rate: z.ZodString;
228
- channels: z.ZodNumber;
229
- channel_layout: z.ZodOptional<z.ZodString>;
230
- bits_per_sample: z.ZodNumber;
231
- initial_padding: z.ZodOptional<z.ZodNumber>;
232
- r_frame_rate: z.ZodString;
233
- avg_frame_rate: z.ZodString;
234
- time_base: z.ZodString;
235
- start_pts: z.ZodOptional<z.ZodNumber>;
236
- start_time: z.ZodOptional<z.ZodNumber>;
237
- duration_ts: z.ZodNumber;
238
- duration: z.ZodNumber;
239
- bit_rate: z.ZodString;
240
- disposition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
241
- }, "strip", z.ZodTypeAny, {
242
- index: number;
243
- codec_name: string;
244
- codec_long_name: string;
245
- codec_type: "audio";
246
- codec_tag_string: string;
247
- codec_tag: string;
248
- sample_fmt: string;
249
- sample_rate: string;
250
- channels: number;
251
- bits_per_sample: number;
252
- r_frame_rate: string;
253
- avg_frame_rate: string;
254
- time_base: string;
255
- duration_ts: number;
256
- duration: number;
257
- bit_rate: string;
258
- disposition: Record<string, unknown>;
259
- channel_layout?: string | undefined;
260
- initial_padding?: number | undefined;
261
- start_pts?: number | undefined;
262
- start_time?: number | undefined;
263
- }, {
264
- index: number;
265
- codec_name: string;
266
- codec_long_name: string;
267
- codec_type: "audio";
268
- codec_tag_string: string;
269
- codec_tag: string;
270
- sample_fmt: string;
271
- sample_rate: string;
272
- channels: number;
273
- bits_per_sample: number;
274
- r_frame_rate: string;
275
- avg_frame_rate: string;
276
- time_base: string;
277
- duration_ts: number;
278
- duration: number;
279
- bit_rate: string;
280
- disposition: Record<string, unknown>;
281
- channel_layout?: string | undefined;
282
- initial_padding?: number | undefined;
283
- start_pts?: number | undefined;
284
- start_time?: number | undefined;
285
- }>;
286
- duration_ms: z.ZodNumber;
287
- codec_name: z.ZodString;
288
- byte_size: z.ZodNumber;
289
- }, "strip", z.ZodTypeAny, {
290
- codec_name: string;
291
- type: "audio";
292
- byte_size: number;
293
- file_id: string;
294
- track_id: number;
295
- probe_info: {
296
- index: number;
297
- codec_name: string;
298
- codec_long_name: string;
299
- codec_type: "audio";
300
- codec_tag_string: string;
301
- codec_tag: string;
302
- sample_fmt: string;
303
- sample_rate: string;
304
- channels: number;
305
- bits_per_sample: number;
306
- r_frame_rate: string;
307
- avg_frame_rate: string;
308
- time_base: string;
309
- duration_ts: number;
310
- duration: number;
311
- bit_rate: string;
312
- disposition: Record<string, unknown>;
313
- channel_layout?: string | undefined;
314
- initial_padding?: number | undefined;
315
- start_pts?: number | undefined;
316
- start_time?: number | undefined;
317
- };
318
- duration_ms: number;
449
+ coded_width: number;
450
+ coded_height: number;
451
+ start_pts?: number | undefined;
452
+ start_time?: number | undefined;
453
+ duration_ts?: number | undefined;
454
+ duration?: number | undefined;
455
+ bit_rate?: string | undefined;
456
+ };
457
+ duration_ms: number;
319
458
  }, {
459
+ byte_size: number;
460
+ type: "video";
461
+ codec_name: string;
462
+ file_id: string;
463
+ track_id: number;
464
+ probe_info: {
465
+ height: number;
466
+ width: number;
467
+ index: number;
320
468
  codec_name: string;
321
- type: "audio";
322
- byte_size: number;
323
- file_id: string;
324
- track_id: number;
325
- probe_info: {
326
- index: number;
327
- codec_name: string;
328
- codec_long_name: string;
329
- codec_type: "audio";
330
- codec_tag_string: string;
331
- codec_tag: string;
332
- sample_fmt: string;
333
- sample_rate: string;
334
- channels: number;
335
- bits_per_sample: number;
336
- r_frame_rate: string;
337
- avg_frame_rate: string;
338
- time_base: string;
339
- duration_ts: number;
340
- duration: number;
341
- bit_rate: string;
342
- disposition: Record<string, unknown>;
343
- channel_layout?: string | undefined;
344
- initial_padding?: number | undefined;
345
- start_pts?: number | undefined;
346
- start_time?: number | undefined;
347
- };
348
- duration_ms: number;
469
+ codec_long_name: string;
470
+ codec_type: "video";
471
+ codec_tag_string: string;
472
+ codec_tag: string;
473
+ r_frame_rate: string;
474
+ avg_frame_rate: string;
475
+ time_base: string;
476
+ disposition: Record<string, unknown>;
477
+ coded_width: number;
478
+ coded_height: number;
479
+ start_pts?: number | undefined;
480
+ start_time?: number | undefined;
481
+ duration_ts?: number | undefined;
482
+ duration?: number | undefined;
483
+ bit_rate?: string | undefined;
484
+ };
485
+ duration_ms: number;
349
486
  }>;
350
- export interface AudioTrackPayload {
351
- file_id: string;
352
- track_id: number;
353
- type: "audio";
354
- probe_info: AudioStreamSchema;
355
- duration_ms: number;
356
- codec_name: string;
357
- byte_size: number;
487
+ interface VideoTrackPayload {
488
+ file_id: string;
489
+ track_id: number;
490
+ type: "video";
491
+ probe_info: VideoStreamSchema;
492
+ duration_ms: number;
493
+ codec_name: string;
494
+ byte_size: number;
358
495
  }
359
- export declare const VideoTrackPayload: z.ZodObject<{
360
- file_id: z.ZodString;
361
- track_id: z.ZodNumber;
362
- type: z.ZodLiteral<"video">;
363
- probe_info: z.ZodObject<{
364
- index: z.ZodNumber;
365
- codec_name: z.ZodString;
366
- codec_long_name: z.ZodString;
367
- codec_type: z.ZodLiteral<"video">;
368
- codec_tag_string: z.ZodString;
369
- codec_tag: z.ZodString;
370
- width: z.ZodNumber;
371
- height: z.ZodNumber;
372
- coded_width: z.ZodNumber;
373
- coded_height: z.ZodNumber;
374
- r_frame_rate: z.ZodString;
375
- avg_frame_rate: z.ZodString;
376
- time_base: z.ZodString;
377
- start_pts: z.ZodOptional<z.ZodNumber>;
378
- start_time: z.ZodOptional<z.ZodNumber>;
379
- duration_ts: z.ZodOptional<z.ZodNumber>;
380
- duration: z.ZodOptional<z.ZodNumber>;
381
- bit_rate: z.ZodOptional<z.ZodString>;
382
- disposition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
383
- }, "strip", z.ZodTypeAny, {
384
- index: number;
385
- codec_name: string;
386
- codec_long_name: string;
387
- codec_type: "video";
388
- codec_tag_string: string;
389
- codec_tag: string;
390
- r_frame_rate: string;
391
- avg_frame_rate: string;
392
- time_base: string;
393
- disposition: Record<string, unknown>;
394
- width: number;
395
- height: number;
396
- coded_width: number;
397
- coded_height: number;
398
- start_pts?: number | undefined;
399
- start_time?: number | undefined;
400
- duration_ts?: number | undefined;
401
- duration?: number | undefined;
402
- bit_rate?: string | undefined;
403
- }, {
404
- index: number;
405
- codec_name: string;
406
- codec_long_name: string;
407
- codec_type: "video";
408
- codec_tag_string: string;
409
- codec_tag: string;
410
- r_frame_rate: string;
411
- avg_frame_rate: string;
412
- time_base: string;
413
- disposition: Record<string, unknown>;
414
- width: number;
415
- height: number;
416
- coded_width: number;
417
- coded_height: number;
418
- start_pts?: number | undefined;
419
- start_time?: number | undefined;
420
- duration_ts?: number | undefined;
421
- duration?: number | undefined;
422
- bit_rate?: string | undefined;
423
- }>;
424
- duration_ms: z.ZodNumber;
496
+ declare const CreateISOBMFFTrackPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
497
+ file_id: z.ZodString;
498
+ track_id: z.ZodNumber;
499
+ type: z.ZodLiteral<"audio">;
500
+ probe_info: z.ZodObject<{
501
+ index: z.ZodNumber;
425
502
  codec_name: z.ZodString;
426
- byte_size: z.ZodNumber;
427
- }, "strip", z.ZodTypeAny, {
428
- codec_name: string;
429
- type: "video";
430
- byte_size: number;
431
- file_id: string;
432
- track_id: number;
433
- probe_info: {
434
- index: number;
435
- codec_name: string;
436
- codec_long_name: string;
437
- codec_type: "video";
438
- codec_tag_string: string;
439
- codec_tag: string;
440
- r_frame_rate: string;
441
- avg_frame_rate: string;
442
- time_base: string;
443
- disposition: Record<string, unknown>;
444
- width: number;
445
- height: number;
446
- coded_width: number;
447
- coded_height: number;
448
- start_pts?: number | undefined;
449
- start_time?: number | undefined;
450
- duration_ts?: number | undefined;
451
- duration?: number | undefined;
452
- bit_rate?: string | undefined;
453
- };
454
- duration_ms: number;
455
- }, {
503
+ codec_long_name: z.ZodString;
504
+ codec_type: z.ZodLiteral<"audio">;
505
+ codec_tag_string: z.ZodString;
506
+ codec_tag: z.ZodString;
507
+ sample_fmt: z.ZodString;
508
+ sample_rate: z.ZodString;
509
+ channels: z.ZodNumber;
510
+ channel_layout: z.ZodOptional<z.ZodString>;
511
+ bits_per_sample: z.ZodNumber;
512
+ initial_padding: z.ZodOptional<z.ZodNumber>;
513
+ r_frame_rate: z.ZodString;
514
+ avg_frame_rate: z.ZodString;
515
+ time_base: z.ZodString;
516
+ start_pts: z.ZodOptional<z.ZodNumber>;
517
+ start_time: z.ZodOptional<z.ZodNumber>;
518
+ duration_ts: z.ZodNumber;
519
+ duration: z.ZodNumber;
520
+ bit_rate: z.ZodString;
521
+ disposition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
522
+ }, "strip", z.ZodTypeAny, {
523
+ index: number;
456
524
  codec_name: string;
457
- type: "video";
458
- byte_size: number;
459
- file_id: string;
460
- track_id: number;
461
- probe_info: {
462
- index: number;
463
- codec_name: string;
464
- codec_long_name: string;
465
- codec_type: "video";
466
- codec_tag_string: string;
467
- codec_tag: string;
468
- r_frame_rate: string;
469
- avg_frame_rate: string;
470
- time_base: string;
471
- disposition: Record<string, unknown>;
472
- width: number;
473
- height: number;
474
- coded_width: number;
475
- coded_height: number;
476
- start_pts?: number | undefined;
477
- start_time?: number | undefined;
478
- duration_ts?: number | undefined;
479
- duration?: number | undefined;
480
- bit_rate?: string | undefined;
481
- };
482
- duration_ms: number;
483
- }>;
484
- export interface VideoTrackPayload {
485
- file_id: string;
486
- track_id: number;
487
- type: "video";
488
- probe_info: VideoStreamSchema;
489
- duration_ms: number;
525
+ codec_long_name: string;
526
+ codec_type: "audio";
527
+ codec_tag_string: string;
528
+ codec_tag: string;
529
+ sample_fmt: string;
530
+ sample_rate: string;
531
+ channels: number;
532
+ bits_per_sample: number;
533
+ r_frame_rate: string;
534
+ avg_frame_rate: string;
535
+ time_base: string;
536
+ duration_ts: number;
537
+ duration: number;
538
+ bit_rate: string;
539
+ disposition: Record<string, unknown>;
540
+ channel_layout?: string | undefined;
541
+ initial_padding?: number | undefined;
542
+ start_pts?: number | undefined;
543
+ start_time?: number | undefined;
544
+ }, {
545
+ index: number;
490
546
  codec_name: string;
491
- byte_size: number;
492
- }
493
- export declare const CreateISOBMFFTrackPayload: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
494
- file_id: z.ZodString;
495
- track_id: z.ZodNumber;
496
- type: z.ZodLiteral<"audio">;
497
- probe_info: z.ZodObject<{
498
- index: z.ZodNumber;
499
- codec_name: z.ZodString;
500
- codec_long_name: z.ZodString;
501
- codec_type: z.ZodLiteral<"audio">;
502
- codec_tag_string: z.ZodString;
503
- codec_tag: z.ZodString;
504
- sample_fmt: z.ZodString;
505
- sample_rate: z.ZodString;
506
- channels: z.ZodNumber;
507
- channel_layout: z.ZodOptional<z.ZodString>;
508
- bits_per_sample: z.ZodNumber;
509
- initial_padding: z.ZodOptional<z.ZodNumber>;
510
- r_frame_rate: z.ZodString;
511
- avg_frame_rate: z.ZodString;
512
- time_base: z.ZodString;
513
- start_pts: z.ZodOptional<z.ZodNumber>;
514
- start_time: z.ZodOptional<z.ZodNumber>;
515
- duration_ts: z.ZodNumber;
516
- duration: z.ZodNumber;
517
- bit_rate: z.ZodString;
518
- disposition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
519
- }, "strip", z.ZodTypeAny, {
520
- index: number;
521
- codec_name: string;
522
- codec_long_name: string;
523
- codec_type: "audio";
524
- codec_tag_string: string;
525
- codec_tag: string;
526
- sample_fmt: string;
527
- sample_rate: string;
528
- channels: number;
529
- bits_per_sample: number;
530
- r_frame_rate: string;
531
- avg_frame_rate: string;
532
- time_base: string;
533
- duration_ts: number;
534
- duration: number;
535
- bit_rate: string;
536
- disposition: Record<string, unknown>;
537
- channel_layout?: string | undefined;
538
- initial_padding?: number | undefined;
539
- start_pts?: number | undefined;
540
- start_time?: number | undefined;
541
- }, {
542
- index: number;
543
- codec_name: string;
544
- codec_long_name: string;
545
- codec_type: "audio";
546
- codec_tag_string: string;
547
- codec_tag: string;
548
- sample_fmt: string;
549
- sample_rate: string;
550
- channels: number;
551
- bits_per_sample: number;
552
- r_frame_rate: string;
553
- avg_frame_rate: string;
554
- time_base: string;
555
- duration_ts: number;
556
- duration: number;
557
- bit_rate: string;
558
- disposition: Record<string, unknown>;
559
- channel_layout?: string | undefined;
560
- initial_padding?: number | undefined;
561
- start_pts?: number | undefined;
562
- start_time?: number | undefined;
563
- }>;
564
- duration_ms: z.ZodNumber;
565
- codec_name: z.ZodString;
566
- byte_size: z.ZodNumber;
547
+ codec_long_name: string;
548
+ codec_type: "audio";
549
+ codec_tag_string: string;
550
+ codec_tag: string;
551
+ sample_fmt: string;
552
+ sample_rate: string;
553
+ channels: number;
554
+ bits_per_sample: number;
555
+ r_frame_rate: string;
556
+ avg_frame_rate: string;
557
+ time_base: string;
558
+ duration_ts: number;
559
+ duration: number;
560
+ bit_rate: string;
561
+ disposition: Record<string, unknown>;
562
+ channel_layout?: string | undefined;
563
+ initial_padding?: number | undefined;
564
+ start_pts?: number | undefined;
565
+ start_time?: number | undefined;
566
+ }>;
567
+ duration_ms: z.ZodNumber;
568
+ codec_name: z.ZodString;
569
+ byte_size: z.ZodNumber;
567
570
  }, "strip", z.ZodTypeAny, {
571
+ byte_size: number;
572
+ type: "audio";
573
+ codec_name: string;
574
+ file_id: string;
575
+ track_id: number;
576
+ probe_info: {
577
+ index: number;
568
578
  codec_name: string;
569
- type: "audio";
570
- byte_size: number;
571
- file_id: string;
572
- track_id: number;
573
- probe_info: {
574
- index: number;
575
- codec_name: string;
576
- codec_long_name: string;
577
- codec_type: "audio";
578
- codec_tag_string: string;
579
- codec_tag: string;
580
- sample_fmt: string;
581
- sample_rate: string;
582
- channels: number;
583
- bits_per_sample: number;
584
- r_frame_rate: string;
585
- avg_frame_rate: string;
586
- time_base: string;
587
- duration_ts: number;
588
- duration: number;
589
- bit_rate: string;
590
- disposition: Record<string, unknown>;
591
- channel_layout?: string | undefined;
592
- initial_padding?: number | undefined;
593
- start_pts?: number | undefined;
594
- start_time?: number | undefined;
595
- };
596
- duration_ms: number;
579
+ codec_long_name: string;
580
+ codec_type: "audio";
581
+ codec_tag_string: string;
582
+ codec_tag: string;
583
+ sample_fmt: string;
584
+ sample_rate: string;
585
+ channels: number;
586
+ bits_per_sample: number;
587
+ r_frame_rate: string;
588
+ avg_frame_rate: string;
589
+ time_base: string;
590
+ duration_ts: number;
591
+ duration: number;
592
+ bit_rate: string;
593
+ disposition: Record<string, unknown>;
594
+ channel_layout?: string | undefined;
595
+ initial_padding?: number | undefined;
596
+ start_pts?: number | undefined;
597
+ start_time?: number | undefined;
598
+ };
599
+ duration_ms: number;
597
600
  }, {
601
+ byte_size: number;
602
+ type: "audio";
603
+ codec_name: string;
604
+ file_id: string;
605
+ track_id: number;
606
+ probe_info: {
607
+ index: number;
598
608
  codec_name: string;
599
- type: "audio";
600
- byte_size: number;
601
- file_id: string;
602
- track_id: number;
603
- probe_info: {
604
- index: number;
605
- codec_name: string;
606
- codec_long_name: string;
607
- codec_type: "audio";
608
- codec_tag_string: string;
609
- codec_tag: string;
610
- sample_fmt: string;
611
- sample_rate: string;
612
- channels: number;
613
- bits_per_sample: number;
614
- r_frame_rate: string;
615
- avg_frame_rate: string;
616
- time_base: string;
617
- duration_ts: number;
618
- duration: number;
619
- bit_rate: string;
620
- disposition: Record<string, unknown>;
621
- channel_layout?: string | undefined;
622
- initial_padding?: number | undefined;
623
- start_pts?: number | undefined;
624
- start_time?: number | undefined;
625
- };
626
- duration_ms: number;
609
+ codec_long_name: string;
610
+ codec_type: "audio";
611
+ codec_tag_string: string;
612
+ codec_tag: string;
613
+ sample_fmt: string;
614
+ sample_rate: string;
615
+ channels: number;
616
+ bits_per_sample: number;
617
+ r_frame_rate: string;
618
+ avg_frame_rate: string;
619
+ time_base: string;
620
+ duration_ts: number;
621
+ duration: number;
622
+ bit_rate: string;
623
+ disposition: Record<string, unknown>;
624
+ channel_layout?: string | undefined;
625
+ initial_padding?: number | undefined;
626
+ start_pts?: number | undefined;
627
+ start_time?: number | undefined;
628
+ };
629
+ duration_ms: number;
627
630
  }>, z.ZodObject<{
628
- file_id: z.ZodString;
629
- track_id: z.ZodNumber;
630
- type: z.ZodLiteral<"video">;
631
- probe_info: z.ZodObject<{
632
- index: z.ZodNumber;
633
- codec_name: z.ZodString;
634
- codec_long_name: z.ZodString;
635
- codec_type: z.ZodLiteral<"video">;
636
- codec_tag_string: z.ZodString;
637
- codec_tag: z.ZodString;
638
- width: z.ZodNumber;
639
- height: z.ZodNumber;
640
- coded_width: z.ZodNumber;
641
- coded_height: z.ZodNumber;
642
- r_frame_rate: z.ZodString;
643
- avg_frame_rate: z.ZodString;
644
- time_base: z.ZodString;
645
- start_pts: z.ZodOptional<z.ZodNumber>;
646
- start_time: z.ZodOptional<z.ZodNumber>;
647
- duration_ts: z.ZodOptional<z.ZodNumber>;
648
- duration: z.ZodOptional<z.ZodNumber>;
649
- bit_rate: z.ZodOptional<z.ZodString>;
650
- disposition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
651
- }, "strip", z.ZodTypeAny, {
652
- index: number;
653
- codec_name: string;
654
- codec_long_name: string;
655
- codec_type: "video";
656
- codec_tag_string: string;
657
- codec_tag: string;
658
- r_frame_rate: string;
659
- avg_frame_rate: string;
660
- time_base: string;
661
- disposition: Record<string, unknown>;
662
- width: number;
663
- height: number;
664
- coded_width: number;
665
- coded_height: number;
666
- start_pts?: number | undefined;
667
- start_time?: number | undefined;
668
- duration_ts?: number | undefined;
669
- duration?: number | undefined;
670
- bit_rate?: string | undefined;
671
- }, {
672
- index: number;
673
- codec_name: string;
674
- codec_long_name: string;
675
- codec_type: "video";
676
- codec_tag_string: string;
677
- codec_tag: string;
678
- r_frame_rate: string;
679
- avg_frame_rate: string;
680
- time_base: string;
681
- disposition: Record<string, unknown>;
682
- width: number;
683
- height: number;
684
- coded_width: number;
685
- coded_height: number;
686
- start_pts?: number | undefined;
687
- start_time?: number | undefined;
688
- duration_ts?: number | undefined;
689
- duration?: number | undefined;
690
- bit_rate?: string | undefined;
691
- }>;
692
- duration_ms: z.ZodNumber;
631
+ file_id: z.ZodString;
632
+ track_id: z.ZodNumber;
633
+ type: z.ZodLiteral<"video">;
634
+ probe_info: z.ZodObject<{
635
+ index: z.ZodNumber;
693
636
  codec_name: z.ZodString;
694
- byte_size: z.ZodNumber;
637
+ codec_long_name: z.ZodString;
638
+ codec_type: z.ZodLiteral<"video">;
639
+ codec_tag_string: z.ZodString;
640
+ codec_tag: z.ZodString;
641
+ width: z.ZodNumber;
642
+ height: z.ZodNumber;
643
+ coded_width: z.ZodNumber;
644
+ coded_height: z.ZodNumber;
645
+ r_frame_rate: z.ZodString;
646
+ avg_frame_rate: z.ZodString;
647
+ time_base: z.ZodString;
648
+ start_pts: z.ZodOptional<z.ZodNumber>;
649
+ start_time: z.ZodOptional<z.ZodNumber>;
650
+ duration_ts: z.ZodOptional<z.ZodNumber>;
651
+ duration: z.ZodOptional<z.ZodNumber>;
652
+ bit_rate: z.ZodOptional<z.ZodString>;
653
+ disposition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ height: number;
656
+ width: number;
657
+ index: number;
658
+ codec_name: string;
659
+ codec_long_name: string;
660
+ codec_type: "video";
661
+ codec_tag_string: string;
662
+ codec_tag: string;
663
+ r_frame_rate: string;
664
+ avg_frame_rate: string;
665
+ time_base: string;
666
+ disposition: Record<string, unknown>;
667
+ coded_width: number;
668
+ coded_height: number;
669
+ start_pts?: number | undefined;
670
+ start_time?: number | undefined;
671
+ duration_ts?: number | undefined;
672
+ duration?: number | undefined;
673
+ bit_rate?: string | undefined;
674
+ }, {
675
+ height: number;
676
+ width: number;
677
+ index: number;
678
+ codec_name: string;
679
+ codec_long_name: string;
680
+ codec_type: "video";
681
+ codec_tag_string: string;
682
+ codec_tag: string;
683
+ r_frame_rate: string;
684
+ avg_frame_rate: string;
685
+ time_base: string;
686
+ disposition: Record<string, unknown>;
687
+ coded_width: number;
688
+ coded_height: number;
689
+ start_pts?: number | undefined;
690
+ start_time?: number | undefined;
691
+ duration_ts?: number | undefined;
692
+ duration?: number | undefined;
693
+ bit_rate?: string | undefined;
694
+ }>;
695
+ duration_ms: z.ZodNumber;
696
+ codec_name: z.ZodString;
697
+ byte_size: z.ZodNumber;
695
698
  }, "strip", z.ZodTypeAny, {
699
+ byte_size: number;
700
+ type: "video";
701
+ codec_name: string;
702
+ file_id: string;
703
+ track_id: number;
704
+ probe_info: {
705
+ height: number;
706
+ width: number;
707
+ index: number;
696
708
  codec_name: string;
697
- type: "video";
698
- byte_size: number;
699
- file_id: string;
700
- track_id: number;
701
- probe_info: {
702
- index: number;
703
- codec_name: string;
704
- codec_long_name: string;
705
- codec_type: "video";
706
- codec_tag_string: string;
707
- codec_tag: string;
708
- r_frame_rate: string;
709
- avg_frame_rate: string;
710
- time_base: string;
711
- disposition: Record<string, unknown>;
712
- width: number;
713
- height: number;
714
- coded_width: number;
715
- coded_height: number;
716
- start_pts?: number | undefined;
717
- start_time?: number | undefined;
718
- duration_ts?: number | undefined;
719
- duration?: number | undefined;
720
- bit_rate?: string | undefined;
721
- };
722
- duration_ms: number;
709
+ codec_long_name: string;
710
+ codec_type: "video";
711
+ codec_tag_string: string;
712
+ codec_tag: string;
713
+ r_frame_rate: string;
714
+ avg_frame_rate: string;
715
+ time_base: string;
716
+ disposition: Record<string, unknown>;
717
+ coded_width: number;
718
+ coded_height: number;
719
+ start_pts?: number | undefined;
720
+ start_time?: number | undefined;
721
+ duration_ts?: number | undefined;
722
+ duration?: number | undefined;
723
+ bit_rate?: string | undefined;
724
+ };
725
+ duration_ms: number;
723
726
  }, {
727
+ byte_size: number;
728
+ type: "video";
729
+ codec_name: string;
730
+ file_id: string;
731
+ track_id: number;
732
+ probe_info: {
733
+ height: number;
734
+ width: number;
735
+ index: number;
724
736
  codec_name: string;
725
- type: "video";
726
- byte_size: number;
727
- file_id: string;
728
- track_id: number;
729
- probe_info: {
730
- index: number;
731
- codec_name: string;
732
- codec_long_name: string;
733
- codec_type: "video";
734
- codec_tag_string: string;
735
- codec_tag: string;
736
- r_frame_rate: string;
737
- avg_frame_rate: string;
738
- time_base: string;
739
- disposition: Record<string, unknown>;
740
- width: number;
741
- height: number;
742
- coded_width: number;
743
- coded_height: number;
744
- start_pts?: number | undefined;
745
- start_time?: number | undefined;
746
- duration_ts?: number | undefined;
747
- duration?: number | undefined;
748
- bit_rate?: string | undefined;
749
- };
750
- duration_ms: number;
737
+ codec_long_name: string;
738
+ codec_type: "video";
739
+ codec_tag_string: string;
740
+ codec_tag: string;
741
+ r_frame_rate: string;
742
+ avg_frame_rate: string;
743
+ time_base: string;
744
+ disposition: Record<string, unknown>;
745
+ coded_width: number;
746
+ coded_height: number;
747
+ start_pts?: number | undefined;
748
+ start_time?: number | undefined;
749
+ duration_ts?: number | undefined;
750
+ duration?: number | undefined;
751
+ bit_rate?: string | undefined;
752
+ };
753
+ duration_ms: number;
751
754
  }>]>;
752
- export type CreateISOBMFFTrackPayload = VideoTrackPayload | AudioTrackPayload;
753
- export interface CreateISOBMFFTrackResult {
754
- next_byte: number;
755
- byte_size: number;
756
- track_id: number;
757
- file_id: string;
758
- complete: boolean;
755
+ type CreateISOBMFFTrackPayload = VideoTrackPayload | AudioTrackPayload;
756
+ interface CreateISOBMFFTrackResult {
757
+ next_byte: number;
758
+ byte_size: number;
759
+ track_id: number;
760
+ file_id: string;
761
+ complete: boolean;
759
762
  }
760
- export declare const createISOBMFFTrack: (client: Client, payload: CreateISOBMFFTrackPayload) => Promise<CreateISOBMFFTrackResult>;
761
- export declare const uploadISOBMFFTrack: (client: Client, fileId: string, trackId: number, fileStream: ReadableStream, trackSize: number) => import('../uploadChunks.js').IteratorWithPromise<import('../uploadChunks.js').UploadChunkEvent>;
763
+ declare const createISOBMFFTrack: (client: Client, payload: CreateISOBMFFTrackPayload) => Promise<CreateISOBMFFTrackResult>;
764
+ declare const uploadISOBMFFTrack: (client: Client, fileId: string, trackId: number, fileStream: ReadableStream, trackSize: number) => IteratorWithPromise<UploadChunkEvent>;
765
+ //#endregion
766
+ export { AudioStreamSchema, AudioTrackPayload, CreateISOBMFFTrackPayload, CreateISOBMFFTrackResult, VideoStreamSchema, VideoTrackPayload, createISOBMFFTrack, uploadISOBMFFTrack };
767
+ //# sourceMappingURL=isobmff-track.d.ts.map