@postrun/js 0.1.0 → 1.0.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.
- package/dist/{chunk-IMU3SG45.js → chunk-4AAUQJXR.js} +377 -12
- package/dist/chunk-4AAUQJXR.js.map +1 -0
- package/dist/{chunk-A545VJ5X.js → chunk-YMVIGQGW.js} +17 -4
- package/dist/chunk-YMVIGQGW.js.map +1 -0
- package/dist/index.cjs +432 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -8
- package/dist/index.d.ts +52 -8
- package/dist/index.js +46 -11
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +376 -9
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +383 -13
- package/dist/schemas/index.d.ts +383 -13
- package/dist/schemas/index.js +1 -1
- package/dist/server.cjs +374 -9
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/{types.gen-DGCs7eB8.d.cts → types.gen-BHE-5ice.d.cts} +842 -91
- package/dist/{types.gen-DGCs7eB8.d.ts → types.gen-BHE-5ice.d.ts} +842 -91
- package/package.json +1 -1
- package/dist/chunk-A545VJ5X.js.map +0 -1
- package/dist/chunk-IMU3SG45.js.map +0 -1
package/dist/schemas/index.cjs
CHANGED
|
@@ -34,13 +34,15 @@ var zErrorCode = z__namespace.enum([
|
|
|
34
34
|
"idempotency_key_invalid",
|
|
35
35
|
"idempotency_key_reused",
|
|
36
36
|
"idempotency_request_in_progress",
|
|
37
|
-
"source_url_unsupported",
|
|
38
37
|
"account_not_available",
|
|
39
38
|
"connection_reauth_required",
|
|
40
39
|
"connection_not_pending",
|
|
40
|
+
"connection_in_use",
|
|
41
41
|
"not_implemented",
|
|
42
|
+
"connection_discovery_failed",
|
|
42
43
|
"media_processing",
|
|
43
44
|
"not_publishable",
|
|
45
|
+
"profile_scope_invalid",
|
|
44
46
|
"media_unprobeable",
|
|
45
47
|
"media_too_large",
|
|
46
48
|
"media_aspect_ratio_unsupported",
|
|
@@ -60,9 +62,12 @@ var zErrorCode = z__namespace.enum([
|
|
|
60
62
|
"video_aspect_unsupported",
|
|
61
63
|
"video_duration_too_short",
|
|
62
64
|
"video_duration_exceeds_max",
|
|
65
|
+
"video_transform_failed",
|
|
66
|
+
"media_fetch_failed",
|
|
63
67
|
"document_format_unsupported",
|
|
64
68
|
"document_too_large",
|
|
65
69
|
"document_too_many_pages",
|
|
70
|
+
"media_format_indeterminate",
|
|
66
71
|
"media_count_invalid",
|
|
67
72
|
"body_too_long",
|
|
68
73
|
"content_missing",
|
|
@@ -72,6 +77,7 @@ var zErrorCode = z__namespace.enum([
|
|
|
72
77
|
"media_type_mismatch",
|
|
73
78
|
"tag_limit_exceeded",
|
|
74
79
|
"reel_field_on_non_reel",
|
|
80
|
+
"field_placement_invalid",
|
|
75
81
|
"media_not_ready",
|
|
76
82
|
"media_failed",
|
|
77
83
|
"media_unsupported",
|
|
@@ -99,6 +105,12 @@ var zErrorCode = z__namespace.enum([
|
|
|
99
105
|
"facebook_rate_limited",
|
|
100
106
|
"facebook_not_authorized",
|
|
101
107
|
"facebook_publish_failed",
|
|
108
|
+
"tiktok_privacy_not_allowed",
|
|
109
|
+
"tiktok_duration_exceeds_max",
|
|
110
|
+
"tiktok_media_processing",
|
|
111
|
+
"tiktok_not_authorized",
|
|
112
|
+
"tiktok_rate_limited",
|
|
113
|
+
"tiktok_publish_failed",
|
|
102
114
|
"connection_platform_mismatch"
|
|
103
115
|
]);
|
|
104
116
|
var zProfilesListQuery = z__namespace.object({
|
|
@@ -209,7 +221,14 @@ var zConnectionsListByProfilePath = z__namespace.object({
|
|
|
209
221
|
});
|
|
210
222
|
var zConnectionsListByProfileQuery = z__namespace.object({
|
|
211
223
|
limit: z__namespace.int().gte(1).lte(100).optional().default(20),
|
|
212
|
-
offset: z__namespace.int().gte(0).lte(9007199254740991).optional().default(0)
|
|
224
|
+
offset: z__namespace.int().gte(0).lte(9007199254740991).optional().default(0),
|
|
225
|
+
nango_connection_id: z__namespace.string().min(1).optional(),
|
|
226
|
+
kind: z__namespace.enum(["posting", "ads"]).optional(),
|
|
227
|
+
status: z__namespace.enum([
|
|
228
|
+
"pending",
|
|
229
|
+
"active",
|
|
230
|
+
"needs_reauth"
|
|
231
|
+
]).optional()
|
|
213
232
|
});
|
|
214
233
|
var zConnectionsListByProfileResponse = z__namespace.object({
|
|
215
234
|
object: z__namespace.literal("list"),
|
|
@@ -226,8 +245,18 @@ var zConnectionsListByProfileResponse = z__namespace.object({
|
|
|
226
245
|
"instagram",
|
|
227
246
|
"tiktok"
|
|
228
247
|
]),
|
|
248
|
+
kind: z__namespace.enum(["posting", "ads"]),
|
|
249
|
+
status: z__namespace.enum([
|
|
250
|
+
"pending",
|
|
251
|
+
"active",
|
|
252
|
+
"needs_reauth"
|
|
253
|
+
]),
|
|
229
254
|
external_account_id: z__namespace.string().nullable(),
|
|
230
255
|
external_account_name: z__namespace.string().nullable(),
|
|
256
|
+
username: z__namespace.string().nullable(),
|
|
257
|
+
avatar_url: z__namespace.string().nullable(),
|
|
258
|
+
profile_url: z__namespace.string().nullable(),
|
|
259
|
+
reauth_at: z__namespace.string().nullable(),
|
|
231
260
|
currency: z__namespace.string().nullable(),
|
|
232
261
|
created_at: z__namespace.string().nullable(),
|
|
233
262
|
updated_at: z__namespace.string().nullable()
|
|
@@ -261,8 +290,18 @@ var zConnectionsGetResponse = z__namespace.object({
|
|
|
261
290
|
"instagram",
|
|
262
291
|
"tiktok"
|
|
263
292
|
]),
|
|
293
|
+
kind: z__namespace.enum(["posting", "ads"]),
|
|
294
|
+
status: z__namespace.enum([
|
|
295
|
+
"pending",
|
|
296
|
+
"active",
|
|
297
|
+
"needs_reauth"
|
|
298
|
+
]),
|
|
264
299
|
external_account_id: z__namespace.string().nullable(),
|
|
265
300
|
external_account_name: z__namespace.string().nullable(),
|
|
301
|
+
username: z__namespace.string().nullable(),
|
|
302
|
+
avatar_url: z__namespace.string().nullable(),
|
|
303
|
+
profile_url: z__namespace.string().nullable(),
|
|
304
|
+
reauth_at: z__namespace.string().nullable(),
|
|
266
305
|
currency: z__namespace.string().nullable(),
|
|
267
306
|
created_at: z__namespace.string().nullable(),
|
|
268
307
|
updated_at: z__namespace.string().nullable()
|
|
@@ -286,8 +325,18 @@ var zConnectionsSelectResponse = z__namespace.object({
|
|
|
286
325
|
"instagram",
|
|
287
326
|
"tiktok"
|
|
288
327
|
]),
|
|
328
|
+
kind: z__namespace.enum(["posting", "ads"]),
|
|
329
|
+
status: z__namespace.enum([
|
|
330
|
+
"pending",
|
|
331
|
+
"active",
|
|
332
|
+
"needs_reauth"
|
|
333
|
+
]),
|
|
289
334
|
external_account_id: z__namespace.string().nullable(),
|
|
290
335
|
external_account_name: z__namespace.string().nullable(),
|
|
336
|
+
username: z__namespace.string().nullable(),
|
|
337
|
+
avatar_url: z__namespace.string().nullable(),
|
|
338
|
+
profile_url: z__namespace.string().nullable(),
|
|
339
|
+
reauth_at: z__namespace.string().nullable(),
|
|
291
340
|
currency: z__namespace.string().nullable(),
|
|
292
341
|
created_at: z__namespace.string().nullable(),
|
|
293
342
|
updated_at: z__namespace.string().nullable()
|
|
@@ -301,9 +350,15 @@ var zConnectionsListAccountsResponse = z__namespace.object({
|
|
|
301
350
|
external_account_id: z__namespace.string(),
|
|
302
351
|
name: z__namespace.string().nullable(),
|
|
303
352
|
currency: z__namespace.string().nullable(),
|
|
353
|
+
username: z__namespace.string().nullish(),
|
|
354
|
+
avatar_url: z__namespace.string().nullish(),
|
|
355
|
+
profile_url: z__namespace.string().nullish(),
|
|
304
356
|
instagram: z__namespace.object({
|
|
305
357
|
external_account_id: z__namespace.string(),
|
|
306
|
-
name: z__namespace.string().nullable()
|
|
358
|
+
name: z__namespace.string().nullable(),
|
|
359
|
+
username: z__namespace.string().nullish(),
|
|
360
|
+
avatar_url: z__namespace.string().nullish(),
|
|
361
|
+
profile_url: z__namespace.string().nullish()
|
|
307
362
|
}).nullish()
|
|
308
363
|
}))
|
|
309
364
|
});
|
|
@@ -311,7 +366,6 @@ var zConnectionsConnectBody = z__namespace.object({
|
|
|
311
366
|
platform: z__namespace.enum([
|
|
312
367
|
"meta_ads",
|
|
313
368
|
"google_ads",
|
|
314
|
-
"tiktok_ads",
|
|
315
369
|
"x",
|
|
316
370
|
"linkedin",
|
|
317
371
|
"facebook_page",
|
|
@@ -322,10 +376,200 @@ var zConnectionsConnectPath = z__namespace.object({
|
|
|
322
376
|
id: z__namespace.string()
|
|
323
377
|
});
|
|
324
378
|
var zConnectionsConnectResponse = z__namespace.object({
|
|
379
|
+
hosted_connect_url: z__namespace.string(),
|
|
380
|
+
connect_token: z__namespace.string(),
|
|
325
381
|
connect_session_token: z__namespace.string(),
|
|
326
|
-
|
|
382
|
+
provider_config_key: z__namespace.string(),
|
|
383
|
+
nango_host: z__namespace.string(),
|
|
327
384
|
expires_at: z__namespace.string()
|
|
328
385
|
});
|
|
386
|
+
var zMediaListQuery = z__namespace.object({
|
|
387
|
+
limit: z__namespace.int().gte(1).lte(100).optional().default(20),
|
|
388
|
+
offset: z__namespace.int().gte(0).lte(9007199254740991).optional().default(0),
|
|
389
|
+
profile_id: z__namespace.string().optional(),
|
|
390
|
+
status: z__namespace.enum([
|
|
391
|
+
"uploading",
|
|
392
|
+
"processing",
|
|
393
|
+
"ready",
|
|
394
|
+
"failed"
|
|
395
|
+
]).optional(),
|
|
396
|
+
kind: z__namespace.enum([
|
|
397
|
+
"image",
|
|
398
|
+
"video",
|
|
399
|
+
"gif",
|
|
400
|
+
"document"
|
|
401
|
+
]).optional(),
|
|
402
|
+
external_id: z__namespace.string().optional(),
|
|
403
|
+
metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
|
|
404
|
+
z__namespace.string().max(500),
|
|
405
|
+
z__namespace.number(),
|
|
406
|
+
z__namespace.boolean()
|
|
407
|
+
])).optional()
|
|
408
|
+
});
|
|
409
|
+
var zMediaListResponse = z__namespace.object({
|
|
410
|
+
object: z__namespace.literal("list"),
|
|
411
|
+
data: z__namespace.array(z__namespace.object({
|
|
412
|
+
id: z__namespace.string(),
|
|
413
|
+
object: z__namespace.literal("media"),
|
|
414
|
+
profile_id: z__namespace.string(),
|
|
415
|
+
kind: z__namespace.enum([
|
|
416
|
+
"image",
|
|
417
|
+
"video",
|
|
418
|
+
"gif",
|
|
419
|
+
"document"
|
|
420
|
+
]).nullable(),
|
|
421
|
+
content_type: z__namespace.string().nullable(),
|
|
422
|
+
status: z__namespace.enum([
|
|
423
|
+
"uploading",
|
|
424
|
+
"processing",
|
|
425
|
+
"ready",
|
|
426
|
+
"failed"
|
|
427
|
+
]),
|
|
428
|
+
progress: z__namespace.object({
|
|
429
|
+
stage: z__namespace.enum([
|
|
430
|
+
"queued",
|
|
431
|
+
"analyzing",
|
|
432
|
+
"transcoding",
|
|
433
|
+
"done"
|
|
434
|
+
]),
|
|
435
|
+
percent: z__namespace.int().gte(0).lte(100)
|
|
436
|
+
}),
|
|
437
|
+
raw: z__namespace.boolean(),
|
|
438
|
+
error: z__namespace.object({
|
|
439
|
+
code: z__namespace.enum([
|
|
440
|
+
"media_unprobeable",
|
|
441
|
+
"media_format_indeterminate",
|
|
442
|
+
"media_too_large",
|
|
443
|
+
"media_aspect_ratio_unsupported",
|
|
444
|
+
"media_resolution_too_low",
|
|
445
|
+
"media_gif_unsupported",
|
|
446
|
+
"media_format_recompressed",
|
|
447
|
+
"media_resolution_downscaled",
|
|
448
|
+
"video_container_unsupported",
|
|
449
|
+
"video_codec_unsupported",
|
|
450
|
+
"video_audio_codec_unsupported",
|
|
451
|
+
"video_too_large",
|
|
452
|
+
"video_too_small",
|
|
453
|
+
"video_dimensions_unsupported",
|
|
454
|
+
"video_dimensions_too_large",
|
|
455
|
+
"video_fps_unsupported",
|
|
456
|
+
"video_fps_too_low",
|
|
457
|
+
"video_aspect_unsupported",
|
|
458
|
+
"video_duration_too_short",
|
|
459
|
+
"video_duration_exceeds_max",
|
|
460
|
+
"video_transform_failed",
|
|
461
|
+
"media_fetch_failed",
|
|
462
|
+
"document_format_unsupported",
|
|
463
|
+
"document_too_large",
|
|
464
|
+
"document_too_many_pages",
|
|
465
|
+
"media_unsupported"
|
|
466
|
+
]),
|
|
467
|
+
message: z__namespace.string(),
|
|
468
|
+
hint: z__namespace.string().optional(),
|
|
469
|
+
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
470
|
+
got: z__namespace.string().optional()
|
|
471
|
+
}).nullable(),
|
|
472
|
+
source: z__namespace.object({
|
|
473
|
+
format: z__namespace.string(),
|
|
474
|
+
bytes: z__namespace.int().gte(0).lte(9007199254740991),
|
|
475
|
+
width: z__namespace.int().gt(0).lte(9007199254740991).nullable(),
|
|
476
|
+
height: z__namespace.int().gt(0).lte(9007199254740991).nullable(),
|
|
477
|
+
duration_ms: z__namespace.int().gte(0).lte(9007199254740991).nullable()
|
|
478
|
+
}).nullable(),
|
|
479
|
+
alt_text: z__namespace.string().max(1e3).nullable(),
|
|
480
|
+
per_platform: z__namespace.record(z__namespace.string(), z__namespace.object({
|
|
481
|
+
status: z__namespace.enum([
|
|
482
|
+
"processing",
|
|
483
|
+
"ready",
|
|
484
|
+
"failed"
|
|
485
|
+
]),
|
|
486
|
+
url: z__namespace.string().nullable(),
|
|
487
|
+
width: z__namespace.int().gt(0).lte(9007199254740991).nullable(),
|
|
488
|
+
height: z__namespace.int().gt(0).lte(9007199254740991).nullable(),
|
|
489
|
+
bytes: z__namespace.int().gte(0).lte(9007199254740991).nullable(),
|
|
490
|
+
warnings: z__namespace.array(z__namespace.object({
|
|
491
|
+
code: z__namespace.enum([
|
|
492
|
+
"media_unprobeable",
|
|
493
|
+
"media_format_indeterminate",
|
|
494
|
+
"media_too_large",
|
|
495
|
+
"media_aspect_ratio_unsupported",
|
|
496
|
+
"media_resolution_too_low",
|
|
497
|
+
"media_gif_unsupported",
|
|
498
|
+
"media_format_recompressed",
|
|
499
|
+
"media_resolution_downscaled",
|
|
500
|
+
"video_container_unsupported",
|
|
501
|
+
"video_codec_unsupported",
|
|
502
|
+
"video_audio_codec_unsupported",
|
|
503
|
+
"video_too_large",
|
|
504
|
+
"video_too_small",
|
|
505
|
+
"video_dimensions_unsupported",
|
|
506
|
+
"video_dimensions_too_large",
|
|
507
|
+
"video_fps_unsupported",
|
|
508
|
+
"video_fps_too_low",
|
|
509
|
+
"video_aspect_unsupported",
|
|
510
|
+
"video_duration_too_short",
|
|
511
|
+
"video_duration_exceeds_max",
|
|
512
|
+
"video_transform_failed",
|
|
513
|
+
"media_fetch_failed",
|
|
514
|
+
"document_format_unsupported",
|
|
515
|
+
"document_too_large",
|
|
516
|
+
"document_too_many_pages",
|
|
517
|
+
"media_unsupported"
|
|
518
|
+
]),
|
|
519
|
+
message: z__namespace.string(),
|
|
520
|
+
hint: z__namespace.string().optional(),
|
|
521
|
+
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
522
|
+
got: z__namespace.string().optional()
|
|
523
|
+
})),
|
|
524
|
+
errors: z__namespace.array(z__namespace.object({
|
|
525
|
+
code: z__namespace.enum([
|
|
526
|
+
"media_unprobeable",
|
|
527
|
+
"media_format_indeterminate",
|
|
528
|
+
"media_too_large",
|
|
529
|
+
"media_aspect_ratio_unsupported",
|
|
530
|
+
"media_resolution_too_low",
|
|
531
|
+
"media_gif_unsupported",
|
|
532
|
+
"media_format_recompressed",
|
|
533
|
+
"media_resolution_downscaled",
|
|
534
|
+
"video_container_unsupported",
|
|
535
|
+
"video_codec_unsupported",
|
|
536
|
+
"video_audio_codec_unsupported",
|
|
537
|
+
"video_too_large",
|
|
538
|
+
"video_too_small",
|
|
539
|
+
"video_dimensions_unsupported",
|
|
540
|
+
"video_dimensions_too_large",
|
|
541
|
+
"video_fps_unsupported",
|
|
542
|
+
"video_fps_too_low",
|
|
543
|
+
"video_aspect_unsupported",
|
|
544
|
+
"video_duration_too_short",
|
|
545
|
+
"video_duration_exceeds_max",
|
|
546
|
+
"video_transform_failed",
|
|
547
|
+
"media_fetch_failed",
|
|
548
|
+
"document_format_unsupported",
|
|
549
|
+
"document_too_large",
|
|
550
|
+
"document_too_many_pages",
|
|
551
|
+
"media_unsupported"
|
|
552
|
+
]),
|
|
553
|
+
message: z__namespace.string(),
|
|
554
|
+
hint: z__namespace.string().optional(),
|
|
555
|
+
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
556
|
+
got: z__namespace.string().optional()
|
|
557
|
+
}))
|
|
558
|
+
})),
|
|
559
|
+
external_id: z__namespace.string().nullable(),
|
|
560
|
+
metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
|
|
561
|
+
z__namespace.string().max(500),
|
|
562
|
+
z__namespace.number(),
|
|
563
|
+
z__namespace.boolean()
|
|
564
|
+
])),
|
|
565
|
+
created_at: z__namespace.string(),
|
|
566
|
+
updated_at: z__namespace.string()
|
|
567
|
+
})),
|
|
568
|
+
total: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
569
|
+
limit: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
570
|
+
offset: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
571
|
+
has_more: z__namespace.boolean()
|
|
572
|
+
});
|
|
329
573
|
var zMediaCreateBody = z__namespace.object({
|
|
330
574
|
profile_id: z__namespace.string(),
|
|
331
575
|
kind: z__namespace.enum([
|
|
@@ -333,7 +577,7 @@ var zMediaCreateBody = z__namespace.object({
|
|
|
333
577
|
"video",
|
|
334
578
|
"gif",
|
|
335
579
|
"document"
|
|
336
|
-
]),
|
|
580
|
+
]).optional(),
|
|
337
581
|
content_type: z__namespace.string().min(1).regex(/^(?:(?:image|video)\/[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]*|application\/pdf|application\/msword|application\/vnd\.openxmlformats-officedocument\.wordprocessingml\.document|application\/vnd\.ms-powerpoint|application\/vnd\.openxmlformats-officedocument\.presentationml\.presentation)$/).optional(),
|
|
338
582
|
source_url: z__namespace.url().optional(),
|
|
339
583
|
targets: z__namespace.array(z__namespace.enum([
|
|
@@ -362,17 +606,28 @@ var zMediaCreateResponse = z__namespace.object({
|
|
|
362
606
|
"video",
|
|
363
607
|
"gif",
|
|
364
608
|
"document"
|
|
365
|
-
]),
|
|
609
|
+
]).nullable(),
|
|
610
|
+
content_type: z__namespace.string().nullable(),
|
|
366
611
|
status: z__namespace.enum([
|
|
367
612
|
"uploading",
|
|
368
613
|
"processing",
|
|
369
614
|
"ready",
|
|
370
615
|
"failed"
|
|
371
616
|
]),
|
|
617
|
+
progress: z__namespace.object({
|
|
618
|
+
stage: z__namespace.enum([
|
|
619
|
+
"queued",
|
|
620
|
+
"analyzing",
|
|
621
|
+
"transcoding",
|
|
622
|
+
"done"
|
|
623
|
+
]),
|
|
624
|
+
percent: z__namespace.int().gte(0).lte(100)
|
|
625
|
+
}),
|
|
372
626
|
raw: z__namespace.boolean(),
|
|
373
627
|
error: z__namespace.object({
|
|
374
628
|
code: z__namespace.enum([
|
|
375
629
|
"media_unprobeable",
|
|
630
|
+
"media_format_indeterminate",
|
|
376
631
|
"media_too_large",
|
|
377
632
|
"media_aspect_ratio_unsupported",
|
|
378
633
|
"media_resolution_too_low",
|
|
@@ -391,6 +646,8 @@ var zMediaCreateResponse = z__namespace.object({
|
|
|
391
646
|
"video_aspect_unsupported",
|
|
392
647
|
"video_duration_too_short",
|
|
393
648
|
"video_duration_exceeds_max",
|
|
649
|
+
"video_transform_failed",
|
|
650
|
+
"media_fetch_failed",
|
|
394
651
|
"document_format_unsupported",
|
|
395
652
|
"document_too_large",
|
|
396
653
|
"document_too_many_pages",
|
|
@@ -422,6 +679,7 @@ var zMediaCreateResponse = z__namespace.object({
|
|
|
422
679
|
warnings: z__namespace.array(z__namespace.object({
|
|
423
680
|
code: z__namespace.enum([
|
|
424
681
|
"media_unprobeable",
|
|
682
|
+
"media_format_indeterminate",
|
|
425
683
|
"media_too_large",
|
|
426
684
|
"media_aspect_ratio_unsupported",
|
|
427
685
|
"media_resolution_too_low",
|
|
@@ -440,6 +698,8 @@ var zMediaCreateResponse = z__namespace.object({
|
|
|
440
698
|
"video_aspect_unsupported",
|
|
441
699
|
"video_duration_too_short",
|
|
442
700
|
"video_duration_exceeds_max",
|
|
701
|
+
"video_transform_failed",
|
|
702
|
+
"media_fetch_failed",
|
|
443
703
|
"document_format_unsupported",
|
|
444
704
|
"document_too_large",
|
|
445
705
|
"document_too_many_pages",
|
|
@@ -453,6 +713,7 @@ var zMediaCreateResponse = z__namespace.object({
|
|
|
453
713
|
errors: z__namespace.array(z__namespace.object({
|
|
454
714
|
code: z__namespace.enum([
|
|
455
715
|
"media_unprobeable",
|
|
716
|
+
"media_format_indeterminate",
|
|
456
717
|
"media_too_large",
|
|
457
718
|
"media_aspect_ratio_unsupported",
|
|
458
719
|
"media_resolution_too_low",
|
|
@@ -471,6 +732,8 @@ var zMediaCreateResponse = z__namespace.object({
|
|
|
471
732
|
"video_aspect_unsupported",
|
|
472
733
|
"video_duration_too_short",
|
|
473
734
|
"video_duration_exceeds_max",
|
|
735
|
+
"video_transform_failed",
|
|
736
|
+
"media_fetch_failed",
|
|
474
737
|
"document_format_unsupported",
|
|
475
738
|
"document_too_large",
|
|
476
739
|
"document_too_many_pages",
|
|
@@ -517,17 +780,28 @@ var zMediaGetResponse = z__namespace.object({
|
|
|
517
780
|
"video",
|
|
518
781
|
"gif",
|
|
519
782
|
"document"
|
|
520
|
-
]),
|
|
783
|
+
]).nullable(),
|
|
784
|
+
content_type: z__namespace.string().nullable(),
|
|
521
785
|
status: z__namespace.enum([
|
|
522
786
|
"uploading",
|
|
523
787
|
"processing",
|
|
524
788
|
"ready",
|
|
525
789
|
"failed"
|
|
526
790
|
]),
|
|
791
|
+
progress: z__namespace.object({
|
|
792
|
+
stage: z__namespace.enum([
|
|
793
|
+
"queued",
|
|
794
|
+
"analyzing",
|
|
795
|
+
"transcoding",
|
|
796
|
+
"done"
|
|
797
|
+
]),
|
|
798
|
+
percent: z__namespace.int().gte(0).lte(100)
|
|
799
|
+
}),
|
|
527
800
|
raw: z__namespace.boolean(),
|
|
528
801
|
error: z__namespace.object({
|
|
529
802
|
code: z__namespace.enum([
|
|
530
803
|
"media_unprobeable",
|
|
804
|
+
"media_format_indeterminate",
|
|
531
805
|
"media_too_large",
|
|
532
806
|
"media_aspect_ratio_unsupported",
|
|
533
807
|
"media_resolution_too_low",
|
|
@@ -546,6 +820,8 @@ var zMediaGetResponse = z__namespace.object({
|
|
|
546
820
|
"video_aspect_unsupported",
|
|
547
821
|
"video_duration_too_short",
|
|
548
822
|
"video_duration_exceeds_max",
|
|
823
|
+
"video_transform_failed",
|
|
824
|
+
"media_fetch_failed",
|
|
549
825
|
"document_format_unsupported",
|
|
550
826
|
"document_too_large",
|
|
551
827
|
"document_too_many_pages",
|
|
@@ -577,6 +853,7 @@ var zMediaGetResponse = z__namespace.object({
|
|
|
577
853
|
warnings: z__namespace.array(z__namespace.object({
|
|
578
854
|
code: z__namespace.enum([
|
|
579
855
|
"media_unprobeable",
|
|
856
|
+
"media_format_indeterminate",
|
|
580
857
|
"media_too_large",
|
|
581
858
|
"media_aspect_ratio_unsupported",
|
|
582
859
|
"media_resolution_too_low",
|
|
@@ -595,6 +872,8 @@ var zMediaGetResponse = z__namespace.object({
|
|
|
595
872
|
"video_aspect_unsupported",
|
|
596
873
|
"video_duration_too_short",
|
|
597
874
|
"video_duration_exceeds_max",
|
|
875
|
+
"video_transform_failed",
|
|
876
|
+
"media_fetch_failed",
|
|
598
877
|
"document_format_unsupported",
|
|
599
878
|
"document_too_large",
|
|
600
879
|
"document_too_many_pages",
|
|
@@ -608,6 +887,7 @@ var zMediaGetResponse = z__namespace.object({
|
|
|
608
887
|
errors: z__namespace.array(z__namespace.object({
|
|
609
888
|
code: z__namespace.enum([
|
|
610
889
|
"media_unprobeable",
|
|
890
|
+
"media_format_indeterminate",
|
|
611
891
|
"media_too_large",
|
|
612
892
|
"media_aspect_ratio_unsupported",
|
|
613
893
|
"media_resolution_too_low",
|
|
@@ -626,6 +906,8 @@ var zMediaGetResponse = z__namespace.object({
|
|
|
626
906
|
"video_aspect_unsupported",
|
|
627
907
|
"video_duration_too_short",
|
|
628
908
|
"video_duration_exceeds_max",
|
|
909
|
+
"video_transform_failed",
|
|
910
|
+
"media_fetch_failed",
|
|
629
911
|
"document_format_unsupported",
|
|
630
912
|
"document_too_large",
|
|
631
913
|
"document_too_many_pages",
|
|
@@ -675,17 +957,28 @@ var zMediaUpdateResponse = z__namespace.object({
|
|
|
675
957
|
"video",
|
|
676
958
|
"gif",
|
|
677
959
|
"document"
|
|
678
|
-
]),
|
|
960
|
+
]).nullable(),
|
|
961
|
+
content_type: z__namespace.string().nullable(),
|
|
679
962
|
status: z__namespace.enum([
|
|
680
963
|
"uploading",
|
|
681
964
|
"processing",
|
|
682
965
|
"ready",
|
|
683
966
|
"failed"
|
|
684
967
|
]),
|
|
968
|
+
progress: z__namespace.object({
|
|
969
|
+
stage: z__namespace.enum([
|
|
970
|
+
"queued",
|
|
971
|
+
"analyzing",
|
|
972
|
+
"transcoding",
|
|
973
|
+
"done"
|
|
974
|
+
]),
|
|
975
|
+
percent: z__namespace.int().gte(0).lte(100)
|
|
976
|
+
}),
|
|
685
977
|
raw: z__namespace.boolean(),
|
|
686
978
|
error: z__namespace.object({
|
|
687
979
|
code: z__namespace.enum([
|
|
688
980
|
"media_unprobeable",
|
|
981
|
+
"media_format_indeterminate",
|
|
689
982
|
"media_too_large",
|
|
690
983
|
"media_aspect_ratio_unsupported",
|
|
691
984
|
"media_resolution_too_low",
|
|
@@ -704,6 +997,8 @@ var zMediaUpdateResponse = z__namespace.object({
|
|
|
704
997
|
"video_aspect_unsupported",
|
|
705
998
|
"video_duration_too_short",
|
|
706
999
|
"video_duration_exceeds_max",
|
|
1000
|
+
"video_transform_failed",
|
|
1001
|
+
"media_fetch_failed",
|
|
707
1002
|
"document_format_unsupported",
|
|
708
1003
|
"document_too_large",
|
|
709
1004
|
"document_too_many_pages",
|
|
@@ -735,6 +1030,7 @@ var zMediaUpdateResponse = z__namespace.object({
|
|
|
735
1030
|
warnings: z__namespace.array(z__namespace.object({
|
|
736
1031
|
code: z__namespace.enum([
|
|
737
1032
|
"media_unprobeable",
|
|
1033
|
+
"media_format_indeterminate",
|
|
738
1034
|
"media_too_large",
|
|
739
1035
|
"media_aspect_ratio_unsupported",
|
|
740
1036
|
"media_resolution_too_low",
|
|
@@ -753,6 +1049,8 @@ var zMediaUpdateResponse = z__namespace.object({
|
|
|
753
1049
|
"video_aspect_unsupported",
|
|
754
1050
|
"video_duration_too_short",
|
|
755
1051
|
"video_duration_exceeds_max",
|
|
1052
|
+
"video_transform_failed",
|
|
1053
|
+
"media_fetch_failed",
|
|
756
1054
|
"document_format_unsupported",
|
|
757
1055
|
"document_too_large",
|
|
758
1056
|
"document_too_many_pages",
|
|
@@ -766,6 +1064,7 @@ var zMediaUpdateResponse = z__namespace.object({
|
|
|
766
1064
|
errors: z__namespace.array(z__namespace.object({
|
|
767
1065
|
code: z__namespace.enum([
|
|
768
1066
|
"media_unprobeable",
|
|
1067
|
+
"media_format_indeterminate",
|
|
769
1068
|
"media_too_large",
|
|
770
1069
|
"media_aspect_ratio_unsupported",
|
|
771
1070
|
"media_resolution_too_low",
|
|
@@ -784,6 +1083,8 @@ var zMediaUpdateResponse = z__namespace.object({
|
|
|
784
1083
|
"video_aspect_unsupported",
|
|
785
1084
|
"video_duration_too_short",
|
|
786
1085
|
"video_duration_exceeds_max",
|
|
1086
|
+
"video_transform_failed",
|
|
1087
|
+
"media_fetch_failed",
|
|
787
1088
|
"document_format_unsupported",
|
|
788
1089
|
"document_too_large",
|
|
789
1090
|
"document_too_many_pages",
|
|
@@ -1072,6 +1373,38 @@ var zPostsCreateBody = z__namespace.object({
|
|
|
1072
1373
|
settings: z__namespace.object({
|
|
1073
1374
|
link: z__namespace.url().optional()
|
|
1074
1375
|
}).optional().default({})
|
|
1376
|
+
}),
|
|
1377
|
+
z__namespace.object({
|
|
1378
|
+
platform: z__namespace.literal("tiktok"),
|
|
1379
|
+
post_type: z__namespace.enum([
|
|
1380
|
+
"video",
|
|
1381
|
+
"single_image",
|
|
1382
|
+
"carousel"
|
|
1383
|
+
]),
|
|
1384
|
+
connection_id: z__namespace.string(),
|
|
1385
|
+
body: z__namespace.string().optional(),
|
|
1386
|
+
media: z__namespace.array(z__namespace.object({
|
|
1387
|
+
media_id: z__namespace.string(),
|
|
1388
|
+
crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
|
|
1389
|
+
alt_text_override: z__namespace.string().nullish()
|
|
1390
|
+
})).optional().default([]),
|
|
1391
|
+
settings: z__namespace.object({
|
|
1392
|
+
privacy_level: z__namespace.enum([
|
|
1393
|
+
"PUBLIC_TO_EVERYONE",
|
|
1394
|
+
"MUTUAL_FOLLOW_FRIENDS",
|
|
1395
|
+
"FOLLOWER_OF_CREATOR",
|
|
1396
|
+
"SELF_ONLY"
|
|
1397
|
+
]).optional(),
|
|
1398
|
+
disable_comment: z__namespace.boolean().optional(),
|
|
1399
|
+
disable_duet: z__namespace.boolean().optional(),
|
|
1400
|
+
disable_stitch: z__namespace.boolean().optional(),
|
|
1401
|
+
video_cover_timestamp_ms: z__namespace.int().gte(0).lte(9007199254740991).optional(),
|
|
1402
|
+
photo_cover_index: z__namespace.int().gte(0).lte(9007199254740991).optional(),
|
|
1403
|
+
auto_add_music: z__namespace.boolean().optional(),
|
|
1404
|
+
brand_content_toggle: z__namespace.boolean().optional(),
|
|
1405
|
+
brand_organic_toggle: z__namespace.boolean().optional(),
|
|
1406
|
+
is_aigc: z__namespace.boolean().optional()
|
|
1407
|
+
}).optional().default({})
|
|
1075
1408
|
})
|
|
1076
1409
|
])).min(1)
|
|
1077
1410
|
});
|
|
@@ -1395,6 +1728,38 @@ var zPostsUpdateBody = z__namespace.object({
|
|
|
1395
1728
|
settings: z__namespace.object({
|
|
1396
1729
|
link: z__namespace.url().optional()
|
|
1397
1730
|
}).optional().default({})
|
|
1731
|
+
}),
|
|
1732
|
+
z__namespace.object({
|
|
1733
|
+
platform: z__namespace.literal("tiktok"),
|
|
1734
|
+
post_type: z__namespace.enum([
|
|
1735
|
+
"video",
|
|
1736
|
+
"single_image",
|
|
1737
|
+
"carousel"
|
|
1738
|
+
]),
|
|
1739
|
+
connection_id: z__namespace.string(),
|
|
1740
|
+
body: z__namespace.string().optional(),
|
|
1741
|
+
media: z__namespace.array(z__namespace.object({
|
|
1742
|
+
media_id: z__namespace.string(),
|
|
1743
|
+
crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
|
|
1744
|
+
alt_text_override: z__namespace.string().nullish()
|
|
1745
|
+
})).optional().default([]),
|
|
1746
|
+
settings: z__namespace.object({
|
|
1747
|
+
privacy_level: z__namespace.enum([
|
|
1748
|
+
"PUBLIC_TO_EVERYONE",
|
|
1749
|
+
"MUTUAL_FOLLOW_FRIENDS",
|
|
1750
|
+
"FOLLOWER_OF_CREATOR",
|
|
1751
|
+
"SELF_ONLY"
|
|
1752
|
+
]).optional(),
|
|
1753
|
+
disable_comment: z__namespace.boolean().optional(),
|
|
1754
|
+
disable_duet: z__namespace.boolean().optional(),
|
|
1755
|
+
disable_stitch: z__namespace.boolean().optional(),
|
|
1756
|
+
video_cover_timestamp_ms: z__namespace.int().gte(0).lte(9007199254740991).optional(),
|
|
1757
|
+
photo_cover_index: z__namespace.int().gte(0).lte(9007199254740991).optional(),
|
|
1758
|
+
auto_add_music: z__namespace.boolean().optional(),
|
|
1759
|
+
brand_content_toggle: z__namespace.boolean().optional(),
|
|
1760
|
+
brand_organic_toggle: z__namespace.boolean().optional(),
|
|
1761
|
+
is_aigc: z__namespace.boolean().optional()
|
|
1762
|
+
}).optional().default({})
|
|
1398
1763
|
})
|
|
1399
1764
|
])).min(1).optional()
|
|
1400
1765
|
});
|
|
@@ -3320,6 +3685,8 @@ exports.zMediaDeletePath = zMediaDeletePath;
|
|
|
3320
3685
|
exports.zMediaDeleteResponse = zMediaDeleteResponse;
|
|
3321
3686
|
exports.zMediaGetPath = zMediaGetPath;
|
|
3322
3687
|
exports.zMediaGetResponse = zMediaGetResponse;
|
|
3688
|
+
exports.zMediaListQuery = zMediaListQuery;
|
|
3689
|
+
exports.zMediaListResponse = zMediaListResponse;
|
|
3323
3690
|
exports.zMediaUpdateBody = zMediaUpdateBody;
|
|
3324
3691
|
exports.zMediaUpdatePath = zMediaUpdatePath;
|
|
3325
3692
|
exports.zMediaUpdateResponse = zMediaUpdateResponse;
|