@postrun/js 2.2.1 → 2.4.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.
@@ -70,6 +70,7 @@ var zErrorCode = z__namespace.enum([
70
70
  "document_too_large",
71
71
  "document_too_many_pages",
72
72
  "media_format_indeterminate",
73
+ "media_format_unsupported",
73
74
  "media_count_invalid",
74
75
  "body_too_long",
75
76
  "content_missing",
@@ -116,6 +117,9 @@ var zErrorCode = z__namespace.enum([
116
117
  "tiktok_media_processing",
117
118
  "tiktok_not_authorized",
118
119
  "tiktok_rate_limited",
120
+ "tiktok_url_ownership_unverified",
121
+ "tiktok_unaudited_private_only",
122
+ "tiktok_spam_risk",
119
123
  "tiktok_publish_failed",
120
124
  "post_publish_failed",
121
125
  "post_partially_published",
@@ -378,6 +382,7 @@ var zConnectionsConnectBody = z__namespace.object({
378
382
  "x",
379
383
  "linkedin",
380
384
  "facebook_page",
385
+ "instagram",
381
386
  "tiktok"
382
387
  ])
383
388
  });
@@ -448,6 +453,7 @@ var zMediaListResponse = z__namespace.object({
448
453
  code: z__namespace.enum([
449
454
  "media_unprobeable",
450
455
  "media_format_indeterminate",
456
+ "media_format_unsupported",
451
457
  "media_too_large",
452
458
  "media_aspect_ratio_unsupported",
453
459
  "media_resolution_too_low",
@@ -476,7 +482,8 @@ var zMediaListResponse = z__namespace.object({
476
482
  message: z__namespace.string(),
477
483
  hint: z__namespace.string().optional(),
478
484
  allowed: z__namespace.array(z__namespace.string()).optional(),
479
- got: z__namespace.string().optional()
485
+ got: z__namespace.string().optional(),
486
+ display_error: z__namespace.string()
480
487
  }).nullable(),
481
488
  source: z__namespace.object({
482
489
  format: z__namespace.string(),
@@ -500,6 +507,7 @@ var zMediaListResponse = z__namespace.object({
500
507
  code: z__namespace.enum([
501
508
  "media_unprobeable",
502
509
  "media_format_indeterminate",
510
+ "media_format_unsupported",
503
511
  "media_too_large",
504
512
  "media_aspect_ratio_unsupported",
505
513
  "media_resolution_too_low",
@@ -528,12 +536,14 @@ var zMediaListResponse = z__namespace.object({
528
536
  message: z__namespace.string(),
529
537
  hint: z__namespace.string().optional(),
530
538
  allowed: z__namespace.array(z__namespace.string()).optional(),
531
- got: z__namespace.string().optional()
539
+ got: z__namespace.string().optional(),
540
+ display_error: z__namespace.string()
532
541
  })),
533
542
  errors: z__namespace.array(z__namespace.object({
534
543
  code: z__namespace.enum([
535
544
  "media_unprobeable",
536
545
  "media_format_indeterminate",
546
+ "media_format_unsupported",
537
547
  "media_too_large",
538
548
  "media_aspect_ratio_unsupported",
539
549
  "media_resolution_too_low",
@@ -562,7 +572,8 @@ var zMediaListResponse = z__namespace.object({
562
572
  message: z__namespace.string(),
563
573
  hint: z__namespace.string().optional(),
564
574
  allowed: z__namespace.array(z__namespace.string()).optional(),
565
- got: z__namespace.string().optional()
575
+ got: z__namespace.string().optional(),
576
+ display_error: z__namespace.string()
566
577
  }))
567
578
  })),
568
579
  external_id: z__namespace.string().nullable(),
@@ -581,13 +592,6 @@ var zMediaListResponse = z__namespace.object({
581
592
  });
582
593
  var zMediaCreateBody = z__namespace.object({
583
594
  profile_id: z__namespace.string(),
584
- kind: z__namespace.enum([
585
- "image",
586
- "video",
587
- "gif",
588
- "document"
589
- ]).optional(),
590
- 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(),
591
595
  source_url: z__namespace.url().optional(),
592
596
  targets: z__namespace.array(z__namespace.enum([
593
597
  "x",
@@ -637,6 +641,7 @@ var zMediaCreateResponse = z__namespace.object({
637
641
  code: z__namespace.enum([
638
642
  "media_unprobeable",
639
643
  "media_format_indeterminate",
644
+ "media_format_unsupported",
640
645
  "media_too_large",
641
646
  "media_aspect_ratio_unsupported",
642
647
  "media_resolution_too_low",
@@ -665,7 +670,8 @@ var zMediaCreateResponse = z__namespace.object({
665
670
  message: z__namespace.string(),
666
671
  hint: z__namespace.string().optional(),
667
672
  allowed: z__namespace.array(z__namespace.string()).optional(),
668
- got: z__namespace.string().optional()
673
+ got: z__namespace.string().optional(),
674
+ display_error: z__namespace.string()
669
675
  }).nullable(),
670
676
  source: z__namespace.object({
671
677
  format: z__namespace.string(),
@@ -689,6 +695,7 @@ var zMediaCreateResponse = z__namespace.object({
689
695
  code: z__namespace.enum([
690
696
  "media_unprobeable",
691
697
  "media_format_indeterminate",
698
+ "media_format_unsupported",
692
699
  "media_too_large",
693
700
  "media_aspect_ratio_unsupported",
694
701
  "media_resolution_too_low",
@@ -717,12 +724,14 @@ var zMediaCreateResponse = z__namespace.object({
717
724
  message: z__namespace.string(),
718
725
  hint: z__namespace.string().optional(),
719
726
  allowed: z__namespace.array(z__namespace.string()).optional(),
720
- got: z__namespace.string().optional()
727
+ got: z__namespace.string().optional(),
728
+ display_error: z__namespace.string()
721
729
  })),
722
730
  errors: z__namespace.array(z__namespace.object({
723
731
  code: z__namespace.enum([
724
732
  "media_unprobeable",
725
733
  "media_format_indeterminate",
734
+ "media_format_unsupported",
726
735
  "media_too_large",
727
736
  "media_aspect_ratio_unsupported",
728
737
  "media_resolution_too_low",
@@ -751,7 +760,8 @@ var zMediaCreateResponse = z__namespace.object({
751
760
  message: z__namespace.string(),
752
761
  hint: z__namespace.string().optional(),
753
762
  allowed: z__namespace.array(z__namespace.string()).optional(),
754
- got: z__namespace.string().optional()
763
+ got: z__namespace.string().optional(),
764
+ display_error: z__namespace.string()
755
765
  }))
756
766
  })),
757
767
  external_id: z__namespace.string().nullable(),
@@ -811,6 +821,7 @@ var zMediaGetResponse = z__namespace.object({
811
821
  code: z__namespace.enum([
812
822
  "media_unprobeable",
813
823
  "media_format_indeterminate",
824
+ "media_format_unsupported",
814
825
  "media_too_large",
815
826
  "media_aspect_ratio_unsupported",
816
827
  "media_resolution_too_low",
@@ -839,7 +850,8 @@ var zMediaGetResponse = z__namespace.object({
839
850
  message: z__namespace.string(),
840
851
  hint: z__namespace.string().optional(),
841
852
  allowed: z__namespace.array(z__namespace.string()).optional(),
842
- got: z__namespace.string().optional()
853
+ got: z__namespace.string().optional(),
854
+ display_error: z__namespace.string()
843
855
  }).nullable(),
844
856
  source: z__namespace.object({
845
857
  format: z__namespace.string(),
@@ -863,6 +875,7 @@ var zMediaGetResponse = z__namespace.object({
863
875
  code: z__namespace.enum([
864
876
  "media_unprobeable",
865
877
  "media_format_indeterminate",
878
+ "media_format_unsupported",
866
879
  "media_too_large",
867
880
  "media_aspect_ratio_unsupported",
868
881
  "media_resolution_too_low",
@@ -891,12 +904,14 @@ var zMediaGetResponse = z__namespace.object({
891
904
  message: z__namespace.string(),
892
905
  hint: z__namespace.string().optional(),
893
906
  allowed: z__namespace.array(z__namespace.string()).optional(),
894
- got: z__namespace.string().optional()
907
+ got: z__namespace.string().optional(),
908
+ display_error: z__namespace.string()
895
909
  })),
896
910
  errors: z__namespace.array(z__namespace.object({
897
911
  code: z__namespace.enum([
898
912
  "media_unprobeable",
899
913
  "media_format_indeterminate",
914
+ "media_format_unsupported",
900
915
  "media_too_large",
901
916
  "media_aspect_ratio_unsupported",
902
917
  "media_resolution_too_low",
@@ -925,7 +940,8 @@ var zMediaGetResponse = z__namespace.object({
925
940
  message: z__namespace.string(),
926
941
  hint: z__namespace.string().optional(),
927
942
  allowed: z__namespace.array(z__namespace.string()).optional(),
928
- got: z__namespace.string().optional()
943
+ got: z__namespace.string().optional(),
944
+ display_error: z__namespace.string()
929
945
  }))
930
946
  })),
931
947
  external_id: z__namespace.string().nullable(),
@@ -988,6 +1004,7 @@ var zMediaUpdateResponse = z__namespace.object({
988
1004
  code: z__namespace.enum([
989
1005
  "media_unprobeable",
990
1006
  "media_format_indeterminate",
1007
+ "media_format_unsupported",
991
1008
  "media_too_large",
992
1009
  "media_aspect_ratio_unsupported",
993
1010
  "media_resolution_too_low",
@@ -1016,7 +1033,8 @@ var zMediaUpdateResponse = z__namespace.object({
1016
1033
  message: z__namespace.string(),
1017
1034
  hint: z__namespace.string().optional(),
1018
1035
  allowed: z__namespace.array(z__namespace.string()).optional(),
1019
- got: z__namespace.string().optional()
1036
+ got: z__namespace.string().optional(),
1037
+ display_error: z__namespace.string()
1020
1038
  }).nullable(),
1021
1039
  source: z__namespace.object({
1022
1040
  format: z__namespace.string(),
@@ -1040,6 +1058,7 @@ var zMediaUpdateResponse = z__namespace.object({
1040
1058
  code: z__namespace.enum([
1041
1059
  "media_unprobeable",
1042
1060
  "media_format_indeterminate",
1061
+ "media_format_unsupported",
1043
1062
  "media_too_large",
1044
1063
  "media_aspect_ratio_unsupported",
1045
1064
  "media_resolution_too_low",
@@ -1068,12 +1087,14 @@ var zMediaUpdateResponse = z__namespace.object({
1068
1087
  message: z__namespace.string(),
1069
1088
  hint: z__namespace.string().optional(),
1070
1089
  allowed: z__namespace.array(z__namespace.string()).optional(),
1071
- got: z__namespace.string().optional()
1090
+ got: z__namespace.string().optional(),
1091
+ display_error: z__namespace.string()
1072
1092
  })),
1073
1093
  errors: z__namespace.array(z__namespace.object({
1074
1094
  code: z__namespace.enum([
1075
1095
  "media_unprobeable",
1076
1096
  "media_format_indeterminate",
1097
+ "media_format_unsupported",
1077
1098
  "media_too_large",
1078
1099
  "media_aspect_ratio_unsupported",
1079
1100
  "media_resolution_too_low",
@@ -1102,7 +1123,8 @@ var zMediaUpdateResponse = z__namespace.object({
1102
1123
  message: z__namespace.string(),
1103
1124
  hint: z__namespace.string().optional(),
1104
1125
  allowed: z__namespace.array(z__namespace.string()).optional(),
1105
- got: z__namespace.string().optional()
1126
+ got: z__namespace.string().optional(),
1127
+ display_error: z__namespace.string()
1106
1128
  }))
1107
1129
  })),
1108
1130
  external_id: z__namespace.string().nullable(),
@@ -1195,7 +1217,8 @@ var zPostsListResponse = z__namespace.object({
1195
1217
  }).nullable(),
1196
1218
  error: z__namespace.object({
1197
1219
  code: z__namespace.string(),
1198
- message: z__namespace.string()
1220
+ message: z__namespace.string(),
1221
+ display_error: z__namespace.string()
1199
1222
  }).nullable(),
1200
1223
  media: z__namespace.array(z__namespace.object({
1201
1224
  media_id: z__namespace.string(),
@@ -1474,7 +1497,8 @@ var zPostsCreateResponse = z__namespace.object({
1474
1497
  }).nullable(),
1475
1498
  error: z__namespace.object({
1476
1499
  code: z__namespace.string(),
1477
- message: z__namespace.string()
1500
+ message: z__namespace.string(),
1501
+ display_error: z__namespace.string()
1478
1502
  }).nullable(),
1479
1503
  media: z__namespace.array(z__namespace.object({
1480
1504
  media_id: z__namespace.string(),
@@ -1556,7 +1580,8 @@ var zPostsGetResponse = z__namespace.object({
1556
1580
  }).nullable(),
1557
1581
  error: z__namespace.object({
1558
1582
  code: z__namespace.string(),
1559
- message: z__namespace.string()
1583
+ message: z__namespace.string(),
1584
+ display_error: z__namespace.string()
1560
1585
  }).nullable(),
1561
1586
  media: z__namespace.array(z__namespace.object({
1562
1587
  media_id: z__namespace.string(),
@@ -1832,7 +1857,8 @@ var zPostsUpdateResponse = z__namespace.object({
1832
1857
  }).nullable(),
1833
1858
  error: z__namespace.object({
1834
1859
  code: z__namespace.string(),
1835
- message: z__namespace.string()
1860
+ message: z__namespace.string(),
1861
+ display_error: z__namespace.string()
1836
1862
  }).nullable(),
1837
1863
  media: z__namespace.array(z__namespace.object({
1838
1864
  media_id: z__namespace.string(),
@@ -2087,6 +2113,7 @@ var zPostsValidateResponse = z__namespace.object({
2087
2113
  "document_too_large",
2088
2114
  "document_too_many_pages",
2089
2115
  "media_format_indeterminate",
2116
+ "media_format_unsupported",
2090
2117
  "media_count_invalid",
2091
2118
  "body_too_long",
2092
2119
  "content_missing",
@@ -2133,6 +2160,9 @@ var zPostsValidateResponse = z__namespace.object({
2133
2160
  "tiktok_media_processing",
2134
2161
  "tiktok_not_authorized",
2135
2162
  "tiktok_rate_limited",
2163
+ "tiktok_url_ownership_unverified",
2164
+ "tiktok_unaudited_private_only",
2165
+ "tiktok_spam_risk",
2136
2166
  "tiktok_publish_failed",
2137
2167
  "post_publish_failed",
2138
2168
  "post_partially_published",
@@ -2144,7 +2174,15 @@ var zPostsValidateResponse = z__namespace.object({
2144
2174
  allowed: z__namespace.array(z__namespace.string()).optional(),
2145
2175
  got: z__namespace.string().optional(),
2146
2176
  variant_index: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2147
- path: z__namespace.array(z__namespace.union([z__namespace.string(), z__namespace.number()]))
2177
+ path: z__namespace.array(z__namespace.union([z__namespace.string(), z__namespace.number()])),
2178
+ platform: z__namespace.enum([
2179
+ "x",
2180
+ "linkedin",
2181
+ "facebook_page",
2182
+ "instagram",
2183
+ "tiktok"
2184
+ ]).optional(),
2185
+ display_error: z__namespace.string()
2148
2186
  }))
2149
2187
  });
2150
2188
  var zMetaAccountPath = z__namespace.object({
@@ -3721,7 +3759,8 @@ var zLogsListResponse = z__namespace.object({
3721
3759
  published_at: z__namespace.string().nullable(),
3722
3760
  error: z__namespace.object({
3723
3761
  code: z__namespace.string(),
3724
- message: z__namespace.string()
3762
+ message: z__namespace.string(),
3763
+ display_error: z__namespace.string()
3725
3764
  }).nullable()
3726
3765
  }))
3727
3766
  }).nullable(),
@@ -3804,7 +3843,8 @@ var zLogsGetResponse = z__namespace.object({
3804
3843
  published_at: z__namespace.string().nullable(),
3805
3844
  error: z__namespace.object({
3806
3845
  code: z__namespace.string(),
3807
- message: z__namespace.string()
3846
+ message: z__namespace.string(),
3847
+ display_error: z__namespace.string()
3808
3848
  }).nullable()
3809
3849
  }))
3810
3850
  }).nullable(),