@postrun/js 0.1.0 → 0.2.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.
@@ -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,188 @@ var zConnectionsConnectPath = z__namespace.object({
322
376
  id: z__namespace.string()
323
377
  });
324
378
  var zConnectionsConnectResponse = z__namespace.object({
325
- connect_session_token: z__namespace.string(),
326
- connect_url: z__namespace.string(),
379
+ hosted_connect_url: z__namespace.string(),
380
+ connect_token: z__namespace.string(),
327
381
  expires_at: z__namespace.string()
328
382
  });
383
+ var zMediaListQuery = z__namespace.object({
384
+ limit: z__namespace.int().gte(1).lte(100).optional().default(20),
385
+ offset: z__namespace.int().gte(0).lte(9007199254740991).optional().default(0),
386
+ profile_id: z__namespace.string().optional(),
387
+ status: z__namespace.enum([
388
+ "uploading",
389
+ "processing",
390
+ "ready",
391
+ "failed"
392
+ ]).optional(),
393
+ kind: z__namespace.enum([
394
+ "image",
395
+ "video",
396
+ "gif",
397
+ "document"
398
+ ]).optional(),
399
+ external_id: z__namespace.string().optional(),
400
+ metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
401
+ z__namespace.string().max(500),
402
+ z__namespace.number(),
403
+ z__namespace.boolean()
404
+ ])).optional()
405
+ });
406
+ var zMediaListResponse = z__namespace.object({
407
+ object: z__namespace.literal("list"),
408
+ data: z__namespace.array(z__namespace.object({
409
+ id: z__namespace.string(),
410
+ object: z__namespace.literal("media"),
411
+ profile_id: z__namespace.string(),
412
+ kind: z__namespace.enum([
413
+ "image",
414
+ "video",
415
+ "gif",
416
+ "document"
417
+ ]).nullable(),
418
+ content_type: z__namespace.string().nullable(),
419
+ status: z__namespace.enum([
420
+ "uploading",
421
+ "processing",
422
+ "ready",
423
+ "failed"
424
+ ]),
425
+ raw: z__namespace.boolean(),
426
+ error: z__namespace.object({
427
+ code: z__namespace.enum([
428
+ "media_unprobeable",
429
+ "media_format_indeterminate",
430
+ "media_too_large",
431
+ "media_aspect_ratio_unsupported",
432
+ "media_resolution_too_low",
433
+ "media_gif_unsupported",
434
+ "media_format_recompressed",
435
+ "media_resolution_downscaled",
436
+ "video_container_unsupported",
437
+ "video_codec_unsupported",
438
+ "video_audio_codec_unsupported",
439
+ "video_too_large",
440
+ "video_too_small",
441
+ "video_dimensions_unsupported",
442
+ "video_dimensions_too_large",
443
+ "video_fps_unsupported",
444
+ "video_fps_too_low",
445
+ "video_aspect_unsupported",
446
+ "video_duration_too_short",
447
+ "video_duration_exceeds_max",
448
+ "video_transform_failed",
449
+ "media_fetch_failed",
450
+ "document_format_unsupported",
451
+ "document_too_large",
452
+ "document_too_many_pages",
453
+ "media_unsupported"
454
+ ]),
455
+ message: z__namespace.string(),
456
+ hint: z__namespace.string().optional(),
457
+ allowed: z__namespace.array(z__namespace.string()).optional(),
458
+ got: z__namespace.string().optional()
459
+ }).nullable(),
460
+ source: z__namespace.object({
461
+ format: z__namespace.string(),
462
+ bytes: z__namespace.int().gte(0).lte(9007199254740991),
463
+ width: z__namespace.int().gt(0).lte(9007199254740991).nullable(),
464
+ height: z__namespace.int().gt(0).lte(9007199254740991).nullable(),
465
+ duration_ms: z__namespace.int().gte(0).lte(9007199254740991).nullable()
466
+ }).nullable(),
467
+ alt_text: z__namespace.string().max(1e3).nullable(),
468
+ per_platform: z__namespace.record(z__namespace.string(), z__namespace.object({
469
+ status: z__namespace.enum([
470
+ "processing",
471
+ "ready",
472
+ "failed"
473
+ ]),
474
+ url: z__namespace.string().nullable(),
475
+ width: z__namespace.int().gt(0).lte(9007199254740991).nullable(),
476
+ height: z__namespace.int().gt(0).lte(9007199254740991).nullable(),
477
+ bytes: z__namespace.int().gte(0).lte(9007199254740991).nullable(),
478
+ warnings: z__namespace.array(z__namespace.object({
479
+ code: z__namespace.enum([
480
+ "media_unprobeable",
481
+ "media_format_indeterminate",
482
+ "media_too_large",
483
+ "media_aspect_ratio_unsupported",
484
+ "media_resolution_too_low",
485
+ "media_gif_unsupported",
486
+ "media_format_recompressed",
487
+ "media_resolution_downscaled",
488
+ "video_container_unsupported",
489
+ "video_codec_unsupported",
490
+ "video_audio_codec_unsupported",
491
+ "video_too_large",
492
+ "video_too_small",
493
+ "video_dimensions_unsupported",
494
+ "video_dimensions_too_large",
495
+ "video_fps_unsupported",
496
+ "video_fps_too_low",
497
+ "video_aspect_unsupported",
498
+ "video_duration_too_short",
499
+ "video_duration_exceeds_max",
500
+ "video_transform_failed",
501
+ "media_fetch_failed",
502
+ "document_format_unsupported",
503
+ "document_too_large",
504
+ "document_too_many_pages",
505
+ "media_unsupported"
506
+ ]),
507
+ message: z__namespace.string(),
508
+ hint: z__namespace.string().optional(),
509
+ allowed: z__namespace.array(z__namespace.string()).optional(),
510
+ got: z__namespace.string().optional()
511
+ })),
512
+ errors: z__namespace.array(z__namespace.object({
513
+ code: z__namespace.enum([
514
+ "media_unprobeable",
515
+ "media_format_indeterminate",
516
+ "media_too_large",
517
+ "media_aspect_ratio_unsupported",
518
+ "media_resolution_too_low",
519
+ "media_gif_unsupported",
520
+ "media_format_recompressed",
521
+ "media_resolution_downscaled",
522
+ "video_container_unsupported",
523
+ "video_codec_unsupported",
524
+ "video_audio_codec_unsupported",
525
+ "video_too_large",
526
+ "video_too_small",
527
+ "video_dimensions_unsupported",
528
+ "video_dimensions_too_large",
529
+ "video_fps_unsupported",
530
+ "video_fps_too_low",
531
+ "video_aspect_unsupported",
532
+ "video_duration_too_short",
533
+ "video_duration_exceeds_max",
534
+ "video_transform_failed",
535
+ "media_fetch_failed",
536
+ "document_format_unsupported",
537
+ "document_too_large",
538
+ "document_too_many_pages",
539
+ "media_unsupported"
540
+ ]),
541
+ message: z__namespace.string(),
542
+ hint: z__namespace.string().optional(),
543
+ allowed: z__namespace.array(z__namespace.string()).optional(),
544
+ got: z__namespace.string().optional()
545
+ }))
546
+ })),
547
+ external_id: z__namespace.string().nullable(),
548
+ metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
549
+ z__namespace.string().max(500),
550
+ z__namespace.number(),
551
+ z__namespace.boolean()
552
+ ])),
553
+ created_at: z__namespace.string(),
554
+ updated_at: z__namespace.string()
555
+ })),
556
+ total: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
557
+ limit: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
558
+ offset: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
559
+ has_more: z__namespace.boolean()
560
+ });
329
561
  var zMediaCreateBody = z__namespace.object({
330
562
  profile_id: z__namespace.string(),
331
563
  kind: z__namespace.enum([
@@ -333,7 +565,7 @@ var zMediaCreateBody = z__namespace.object({
333
565
  "video",
334
566
  "gif",
335
567
  "document"
336
- ]),
568
+ ]).optional(),
337
569
  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
570
  source_url: z__namespace.url().optional(),
339
571
  targets: z__namespace.array(z__namespace.enum([
@@ -362,7 +594,8 @@ var zMediaCreateResponse = z__namespace.object({
362
594
  "video",
363
595
  "gif",
364
596
  "document"
365
- ]),
597
+ ]).nullable(),
598
+ content_type: z__namespace.string().nullable(),
366
599
  status: z__namespace.enum([
367
600
  "uploading",
368
601
  "processing",
@@ -373,6 +606,7 @@ var zMediaCreateResponse = z__namespace.object({
373
606
  error: z__namespace.object({
374
607
  code: z__namespace.enum([
375
608
  "media_unprobeable",
609
+ "media_format_indeterminate",
376
610
  "media_too_large",
377
611
  "media_aspect_ratio_unsupported",
378
612
  "media_resolution_too_low",
@@ -391,6 +625,8 @@ var zMediaCreateResponse = z__namespace.object({
391
625
  "video_aspect_unsupported",
392
626
  "video_duration_too_short",
393
627
  "video_duration_exceeds_max",
628
+ "video_transform_failed",
629
+ "media_fetch_failed",
394
630
  "document_format_unsupported",
395
631
  "document_too_large",
396
632
  "document_too_many_pages",
@@ -422,6 +658,7 @@ var zMediaCreateResponse = z__namespace.object({
422
658
  warnings: z__namespace.array(z__namespace.object({
423
659
  code: z__namespace.enum([
424
660
  "media_unprobeable",
661
+ "media_format_indeterminate",
425
662
  "media_too_large",
426
663
  "media_aspect_ratio_unsupported",
427
664
  "media_resolution_too_low",
@@ -440,6 +677,8 @@ var zMediaCreateResponse = z__namespace.object({
440
677
  "video_aspect_unsupported",
441
678
  "video_duration_too_short",
442
679
  "video_duration_exceeds_max",
680
+ "video_transform_failed",
681
+ "media_fetch_failed",
443
682
  "document_format_unsupported",
444
683
  "document_too_large",
445
684
  "document_too_many_pages",
@@ -453,6 +692,7 @@ var zMediaCreateResponse = z__namespace.object({
453
692
  errors: z__namespace.array(z__namespace.object({
454
693
  code: z__namespace.enum([
455
694
  "media_unprobeable",
695
+ "media_format_indeterminate",
456
696
  "media_too_large",
457
697
  "media_aspect_ratio_unsupported",
458
698
  "media_resolution_too_low",
@@ -471,6 +711,8 @@ var zMediaCreateResponse = z__namespace.object({
471
711
  "video_aspect_unsupported",
472
712
  "video_duration_too_short",
473
713
  "video_duration_exceeds_max",
714
+ "video_transform_failed",
715
+ "media_fetch_failed",
474
716
  "document_format_unsupported",
475
717
  "document_too_large",
476
718
  "document_too_many_pages",
@@ -517,7 +759,8 @@ var zMediaGetResponse = z__namespace.object({
517
759
  "video",
518
760
  "gif",
519
761
  "document"
520
- ]),
762
+ ]).nullable(),
763
+ content_type: z__namespace.string().nullable(),
521
764
  status: z__namespace.enum([
522
765
  "uploading",
523
766
  "processing",
@@ -528,6 +771,7 @@ var zMediaGetResponse = z__namespace.object({
528
771
  error: z__namespace.object({
529
772
  code: z__namespace.enum([
530
773
  "media_unprobeable",
774
+ "media_format_indeterminate",
531
775
  "media_too_large",
532
776
  "media_aspect_ratio_unsupported",
533
777
  "media_resolution_too_low",
@@ -546,6 +790,8 @@ var zMediaGetResponse = z__namespace.object({
546
790
  "video_aspect_unsupported",
547
791
  "video_duration_too_short",
548
792
  "video_duration_exceeds_max",
793
+ "video_transform_failed",
794
+ "media_fetch_failed",
549
795
  "document_format_unsupported",
550
796
  "document_too_large",
551
797
  "document_too_many_pages",
@@ -577,6 +823,7 @@ var zMediaGetResponse = z__namespace.object({
577
823
  warnings: z__namespace.array(z__namespace.object({
578
824
  code: z__namespace.enum([
579
825
  "media_unprobeable",
826
+ "media_format_indeterminate",
580
827
  "media_too_large",
581
828
  "media_aspect_ratio_unsupported",
582
829
  "media_resolution_too_low",
@@ -595,6 +842,8 @@ var zMediaGetResponse = z__namespace.object({
595
842
  "video_aspect_unsupported",
596
843
  "video_duration_too_short",
597
844
  "video_duration_exceeds_max",
845
+ "video_transform_failed",
846
+ "media_fetch_failed",
598
847
  "document_format_unsupported",
599
848
  "document_too_large",
600
849
  "document_too_many_pages",
@@ -608,6 +857,7 @@ var zMediaGetResponse = z__namespace.object({
608
857
  errors: z__namespace.array(z__namespace.object({
609
858
  code: z__namespace.enum([
610
859
  "media_unprobeable",
860
+ "media_format_indeterminate",
611
861
  "media_too_large",
612
862
  "media_aspect_ratio_unsupported",
613
863
  "media_resolution_too_low",
@@ -626,6 +876,8 @@ var zMediaGetResponse = z__namespace.object({
626
876
  "video_aspect_unsupported",
627
877
  "video_duration_too_short",
628
878
  "video_duration_exceeds_max",
879
+ "video_transform_failed",
880
+ "media_fetch_failed",
629
881
  "document_format_unsupported",
630
882
  "document_too_large",
631
883
  "document_too_many_pages",
@@ -675,7 +927,8 @@ var zMediaUpdateResponse = z__namespace.object({
675
927
  "video",
676
928
  "gif",
677
929
  "document"
678
- ]),
930
+ ]).nullable(),
931
+ content_type: z__namespace.string().nullable(),
679
932
  status: z__namespace.enum([
680
933
  "uploading",
681
934
  "processing",
@@ -686,6 +939,7 @@ var zMediaUpdateResponse = z__namespace.object({
686
939
  error: z__namespace.object({
687
940
  code: z__namespace.enum([
688
941
  "media_unprobeable",
942
+ "media_format_indeterminate",
689
943
  "media_too_large",
690
944
  "media_aspect_ratio_unsupported",
691
945
  "media_resolution_too_low",
@@ -704,6 +958,8 @@ var zMediaUpdateResponse = z__namespace.object({
704
958
  "video_aspect_unsupported",
705
959
  "video_duration_too_short",
706
960
  "video_duration_exceeds_max",
961
+ "video_transform_failed",
962
+ "media_fetch_failed",
707
963
  "document_format_unsupported",
708
964
  "document_too_large",
709
965
  "document_too_many_pages",
@@ -735,6 +991,7 @@ var zMediaUpdateResponse = z__namespace.object({
735
991
  warnings: z__namespace.array(z__namespace.object({
736
992
  code: z__namespace.enum([
737
993
  "media_unprobeable",
994
+ "media_format_indeterminate",
738
995
  "media_too_large",
739
996
  "media_aspect_ratio_unsupported",
740
997
  "media_resolution_too_low",
@@ -753,6 +1010,8 @@ var zMediaUpdateResponse = z__namespace.object({
753
1010
  "video_aspect_unsupported",
754
1011
  "video_duration_too_short",
755
1012
  "video_duration_exceeds_max",
1013
+ "video_transform_failed",
1014
+ "media_fetch_failed",
756
1015
  "document_format_unsupported",
757
1016
  "document_too_large",
758
1017
  "document_too_many_pages",
@@ -766,6 +1025,7 @@ var zMediaUpdateResponse = z__namespace.object({
766
1025
  errors: z__namespace.array(z__namespace.object({
767
1026
  code: z__namespace.enum([
768
1027
  "media_unprobeable",
1028
+ "media_format_indeterminate",
769
1029
  "media_too_large",
770
1030
  "media_aspect_ratio_unsupported",
771
1031
  "media_resolution_too_low",
@@ -784,6 +1044,8 @@ var zMediaUpdateResponse = z__namespace.object({
784
1044
  "video_aspect_unsupported",
785
1045
  "video_duration_too_short",
786
1046
  "video_duration_exceeds_max",
1047
+ "video_transform_failed",
1048
+ "media_fetch_failed",
787
1049
  "document_format_unsupported",
788
1050
  "document_too_large",
789
1051
  "document_too_many_pages",
@@ -1072,6 +1334,38 @@ var zPostsCreateBody = z__namespace.object({
1072
1334
  settings: z__namespace.object({
1073
1335
  link: z__namespace.url().optional()
1074
1336
  }).optional().default({})
1337
+ }),
1338
+ z__namespace.object({
1339
+ platform: z__namespace.literal("tiktok"),
1340
+ post_type: z__namespace.enum([
1341
+ "video",
1342
+ "single_image",
1343
+ "carousel"
1344
+ ]),
1345
+ connection_id: z__namespace.string(),
1346
+ body: z__namespace.string().optional(),
1347
+ media: z__namespace.array(z__namespace.object({
1348
+ media_id: z__namespace.string(),
1349
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1350
+ alt_text_override: z__namespace.string().nullish()
1351
+ })).optional().default([]),
1352
+ settings: z__namespace.object({
1353
+ privacy_level: z__namespace.enum([
1354
+ "PUBLIC_TO_EVERYONE",
1355
+ "MUTUAL_FOLLOW_FRIENDS",
1356
+ "FOLLOWER_OF_CREATOR",
1357
+ "SELF_ONLY"
1358
+ ]).optional(),
1359
+ disable_comment: z__namespace.boolean().optional(),
1360
+ disable_duet: z__namespace.boolean().optional(),
1361
+ disable_stitch: z__namespace.boolean().optional(),
1362
+ video_cover_timestamp_ms: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1363
+ photo_cover_index: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1364
+ auto_add_music: z__namespace.boolean().optional(),
1365
+ brand_content_toggle: z__namespace.boolean().optional(),
1366
+ brand_organic_toggle: z__namespace.boolean().optional(),
1367
+ is_aigc: z__namespace.boolean().optional()
1368
+ }).optional().default({})
1075
1369
  })
1076
1370
  ])).min(1)
1077
1371
  });
@@ -1395,6 +1689,38 @@ var zPostsUpdateBody = z__namespace.object({
1395
1689
  settings: z__namespace.object({
1396
1690
  link: z__namespace.url().optional()
1397
1691
  }).optional().default({})
1692
+ }),
1693
+ z__namespace.object({
1694
+ platform: z__namespace.literal("tiktok"),
1695
+ post_type: z__namespace.enum([
1696
+ "video",
1697
+ "single_image",
1698
+ "carousel"
1699
+ ]),
1700
+ connection_id: z__namespace.string(),
1701
+ body: z__namespace.string().optional(),
1702
+ media: z__namespace.array(z__namespace.object({
1703
+ media_id: z__namespace.string(),
1704
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
1705
+ alt_text_override: z__namespace.string().nullish()
1706
+ })).optional().default([]),
1707
+ settings: z__namespace.object({
1708
+ privacy_level: z__namespace.enum([
1709
+ "PUBLIC_TO_EVERYONE",
1710
+ "MUTUAL_FOLLOW_FRIENDS",
1711
+ "FOLLOWER_OF_CREATOR",
1712
+ "SELF_ONLY"
1713
+ ]).optional(),
1714
+ disable_comment: z__namespace.boolean().optional(),
1715
+ disable_duet: z__namespace.boolean().optional(),
1716
+ disable_stitch: z__namespace.boolean().optional(),
1717
+ video_cover_timestamp_ms: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1718
+ photo_cover_index: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1719
+ auto_add_music: z__namespace.boolean().optional(),
1720
+ brand_content_toggle: z__namespace.boolean().optional(),
1721
+ brand_organic_toggle: z__namespace.boolean().optional(),
1722
+ is_aigc: z__namespace.boolean().optional()
1723
+ }).optional().default({})
1398
1724
  })
1399
1725
  ])).min(1).optional()
1400
1726
  });
@@ -3320,6 +3646,8 @@ exports.zMediaDeletePath = zMediaDeletePath;
3320
3646
  exports.zMediaDeleteResponse = zMediaDeleteResponse;
3321
3647
  exports.zMediaGetPath = zMediaGetPath;
3322
3648
  exports.zMediaGetResponse = zMediaGetResponse;
3649
+ exports.zMediaListQuery = zMediaListQuery;
3650
+ exports.zMediaListResponse = zMediaListResponse;
3323
3651
  exports.zMediaUpdateBody = zMediaUpdateBody;
3324
3652
  exports.zMediaUpdatePath = zMediaUpdatePath;
3325
3653
  exports.zMediaUpdateResponse = zMediaUpdateResponse;