@postrun/js 2.2.1 → 2.3.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-GOQVIAPL.js → chunk-ASEHCVE5.js} +60 -28
- package/dist/chunk-ASEHCVE5.js.map +1 -0
- package/dist/{chunk-YVCFLH5K.js → chunk-YHCKVA2K.js} +3 -3
- package/dist/{chunk-YVCFLH5K.js.map → chunk-YHCKVA2K.js.map} +1 -1
- package/dist/index.cjs +193 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +131 -3
- package/dist/index.d.ts +131 -3
- package/dist/index.js +117 -3
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +58 -26
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +40 -8
- package/dist/schemas/index.d.ts +40 -8
- package/dist/schemas/index.js +1 -1
- package/dist/server.cjs +58 -26
- 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-CzxuwPxe.d.cts → types.gen-DozfBQoz.d.cts} +97 -29
- package/dist/{types.gen-CzxuwPxe.d.ts → types.gen-DozfBQoz.d.ts} +97 -29
- package/package.json +1 -1
- package/dist/chunk-GOQVIAPL.js.map +0 -1
package/dist/schemas/index.cjs
CHANGED
|
@@ -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",
|
|
@@ -448,6 +452,7 @@ var zMediaListResponse = z__namespace.object({
|
|
|
448
452
|
code: z__namespace.enum([
|
|
449
453
|
"media_unprobeable",
|
|
450
454
|
"media_format_indeterminate",
|
|
455
|
+
"media_format_unsupported",
|
|
451
456
|
"media_too_large",
|
|
452
457
|
"media_aspect_ratio_unsupported",
|
|
453
458
|
"media_resolution_too_low",
|
|
@@ -476,7 +481,8 @@ var zMediaListResponse = z__namespace.object({
|
|
|
476
481
|
message: z__namespace.string(),
|
|
477
482
|
hint: z__namespace.string().optional(),
|
|
478
483
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
479
|
-
got: z__namespace.string().optional()
|
|
484
|
+
got: z__namespace.string().optional(),
|
|
485
|
+
display_error: z__namespace.string()
|
|
480
486
|
}).nullable(),
|
|
481
487
|
source: z__namespace.object({
|
|
482
488
|
format: z__namespace.string(),
|
|
@@ -500,6 +506,7 @@ var zMediaListResponse = z__namespace.object({
|
|
|
500
506
|
code: z__namespace.enum([
|
|
501
507
|
"media_unprobeable",
|
|
502
508
|
"media_format_indeterminate",
|
|
509
|
+
"media_format_unsupported",
|
|
503
510
|
"media_too_large",
|
|
504
511
|
"media_aspect_ratio_unsupported",
|
|
505
512
|
"media_resolution_too_low",
|
|
@@ -528,12 +535,14 @@ var zMediaListResponse = z__namespace.object({
|
|
|
528
535
|
message: z__namespace.string(),
|
|
529
536
|
hint: z__namespace.string().optional(),
|
|
530
537
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
531
|
-
got: z__namespace.string().optional()
|
|
538
|
+
got: z__namespace.string().optional(),
|
|
539
|
+
display_error: z__namespace.string()
|
|
532
540
|
})),
|
|
533
541
|
errors: z__namespace.array(z__namespace.object({
|
|
534
542
|
code: z__namespace.enum([
|
|
535
543
|
"media_unprobeable",
|
|
536
544
|
"media_format_indeterminate",
|
|
545
|
+
"media_format_unsupported",
|
|
537
546
|
"media_too_large",
|
|
538
547
|
"media_aspect_ratio_unsupported",
|
|
539
548
|
"media_resolution_too_low",
|
|
@@ -562,7 +571,8 @@ var zMediaListResponse = z__namespace.object({
|
|
|
562
571
|
message: z__namespace.string(),
|
|
563
572
|
hint: z__namespace.string().optional(),
|
|
564
573
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
565
|
-
got: z__namespace.string().optional()
|
|
574
|
+
got: z__namespace.string().optional(),
|
|
575
|
+
display_error: z__namespace.string()
|
|
566
576
|
}))
|
|
567
577
|
})),
|
|
568
578
|
external_id: z__namespace.string().nullable(),
|
|
@@ -581,13 +591,6 @@ var zMediaListResponse = z__namespace.object({
|
|
|
581
591
|
});
|
|
582
592
|
var zMediaCreateBody = z__namespace.object({
|
|
583
593
|
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
594
|
source_url: z__namespace.url().optional(),
|
|
592
595
|
targets: z__namespace.array(z__namespace.enum([
|
|
593
596
|
"x",
|
|
@@ -637,6 +640,7 @@ var zMediaCreateResponse = z__namespace.object({
|
|
|
637
640
|
code: z__namespace.enum([
|
|
638
641
|
"media_unprobeable",
|
|
639
642
|
"media_format_indeterminate",
|
|
643
|
+
"media_format_unsupported",
|
|
640
644
|
"media_too_large",
|
|
641
645
|
"media_aspect_ratio_unsupported",
|
|
642
646
|
"media_resolution_too_low",
|
|
@@ -665,7 +669,8 @@ var zMediaCreateResponse = z__namespace.object({
|
|
|
665
669
|
message: z__namespace.string(),
|
|
666
670
|
hint: z__namespace.string().optional(),
|
|
667
671
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
668
|
-
got: z__namespace.string().optional()
|
|
672
|
+
got: z__namespace.string().optional(),
|
|
673
|
+
display_error: z__namespace.string()
|
|
669
674
|
}).nullable(),
|
|
670
675
|
source: z__namespace.object({
|
|
671
676
|
format: z__namespace.string(),
|
|
@@ -689,6 +694,7 @@ var zMediaCreateResponse = z__namespace.object({
|
|
|
689
694
|
code: z__namespace.enum([
|
|
690
695
|
"media_unprobeable",
|
|
691
696
|
"media_format_indeterminate",
|
|
697
|
+
"media_format_unsupported",
|
|
692
698
|
"media_too_large",
|
|
693
699
|
"media_aspect_ratio_unsupported",
|
|
694
700
|
"media_resolution_too_low",
|
|
@@ -717,12 +723,14 @@ var zMediaCreateResponse = z__namespace.object({
|
|
|
717
723
|
message: z__namespace.string(),
|
|
718
724
|
hint: z__namespace.string().optional(),
|
|
719
725
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
720
|
-
got: z__namespace.string().optional()
|
|
726
|
+
got: z__namespace.string().optional(),
|
|
727
|
+
display_error: z__namespace.string()
|
|
721
728
|
})),
|
|
722
729
|
errors: z__namespace.array(z__namespace.object({
|
|
723
730
|
code: z__namespace.enum([
|
|
724
731
|
"media_unprobeable",
|
|
725
732
|
"media_format_indeterminate",
|
|
733
|
+
"media_format_unsupported",
|
|
726
734
|
"media_too_large",
|
|
727
735
|
"media_aspect_ratio_unsupported",
|
|
728
736
|
"media_resolution_too_low",
|
|
@@ -751,7 +759,8 @@ var zMediaCreateResponse = z__namespace.object({
|
|
|
751
759
|
message: z__namespace.string(),
|
|
752
760
|
hint: z__namespace.string().optional(),
|
|
753
761
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
754
|
-
got: z__namespace.string().optional()
|
|
762
|
+
got: z__namespace.string().optional(),
|
|
763
|
+
display_error: z__namespace.string()
|
|
755
764
|
}))
|
|
756
765
|
})),
|
|
757
766
|
external_id: z__namespace.string().nullable(),
|
|
@@ -811,6 +820,7 @@ var zMediaGetResponse = z__namespace.object({
|
|
|
811
820
|
code: z__namespace.enum([
|
|
812
821
|
"media_unprobeable",
|
|
813
822
|
"media_format_indeterminate",
|
|
823
|
+
"media_format_unsupported",
|
|
814
824
|
"media_too_large",
|
|
815
825
|
"media_aspect_ratio_unsupported",
|
|
816
826
|
"media_resolution_too_low",
|
|
@@ -839,7 +849,8 @@ var zMediaGetResponse = z__namespace.object({
|
|
|
839
849
|
message: z__namespace.string(),
|
|
840
850
|
hint: z__namespace.string().optional(),
|
|
841
851
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
842
|
-
got: z__namespace.string().optional()
|
|
852
|
+
got: z__namespace.string().optional(),
|
|
853
|
+
display_error: z__namespace.string()
|
|
843
854
|
}).nullable(),
|
|
844
855
|
source: z__namespace.object({
|
|
845
856
|
format: z__namespace.string(),
|
|
@@ -863,6 +874,7 @@ var zMediaGetResponse = z__namespace.object({
|
|
|
863
874
|
code: z__namespace.enum([
|
|
864
875
|
"media_unprobeable",
|
|
865
876
|
"media_format_indeterminate",
|
|
877
|
+
"media_format_unsupported",
|
|
866
878
|
"media_too_large",
|
|
867
879
|
"media_aspect_ratio_unsupported",
|
|
868
880
|
"media_resolution_too_low",
|
|
@@ -891,12 +903,14 @@ var zMediaGetResponse = z__namespace.object({
|
|
|
891
903
|
message: z__namespace.string(),
|
|
892
904
|
hint: z__namespace.string().optional(),
|
|
893
905
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
894
|
-
got: z__namespace.string().optional()
|
|
906
|
+
got: z__namespace.string().optional(),
|
|
907
|
+
display_error: z__namespace.string()
|
|
895
908
|
})),
|
|
896
909
|
errors: z__namespace.array(z__namespace.object({
|
|
897
910
|
code: z__namespace.enum([
|
|
898
911
|
"media_unprobeable",
|
|
899
912
|
"media_format_indeterminate",
|
|
913
|
+
"media_format_unsupported",
|
|
900
914
|
"media_too_large",
|
|
901
915
|
"media_aspect_ratio_unsupported",
|
|
902
916
|
"media_resolution_too_low",
|
|
@@ -925,7 +939,8 @@ var zMediaGetResponse = z__namespace.object({
|
|
|
925
939
|
message: z__namespace.string(),
|
|
926
940
|
hint: z__namespace.string().optional(),
|
|
927
941
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
928
|
-
got: z__namespace.string().optional()
|
|
942
|
+
got: z__namespace.string().optional(),
|
|
943
|
+
display_error: z__namespace.string()
|
|
929
944
|
}))
|
|
930
945
|
})),
|
|
931
946
|
external_id: z__namespace.string().nullable(),
|
|
@@ -988,6 +1003,7 @@ var zMediaUpdateResponse = z__namespace.object({
|
|
|
988
1003
|
code: z__namespace.enum([
|
|
989
1004
|
"media_unprobeable",
|
|
990
1005
|
"media_format_indeterminate",
|
|
1006
|
+
"media_format_unsupported",
|
|
991
1007
|
"media_too_large",
|
|
992
1008
|
"media_aspect_ratio_unsupported",
|
|
993
1009
|
"media_resolution_too_low",
|
|
@@ -1016,7 +1032,8 @@ var zMediaUpdateResponse = z__namespace.object({
|
|
|
1016
1032
|
message: z__namespace.string(),
|
|
1017
1033
|
hint: z__namespace.string().optional(),
|
|
1018
1034
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1019
|
-
got: z__namespace.string().optional()
|
|
1035
|
+
got: z__namespace.string().optional(),
|
|
1036
|
+
display_error: z__namespace.string()
|
|
1020
1037
|
}).nullable(),
|
|
1021
1038
|
source: z__namespace.object({
|
|
1022
1039
|
format: z__namespace.string(),
|
|
@@ -1040,6 +1057,7 @@ var zMediaUpdateResponse = z__namespace.object({
|
|
|
1040
1057
|
code: z__namespace.enum([
|
|
1041
1058
|
"media_unprobeable",
|
|
1042
1059
|
"media_format_indeterminate",
|
|
1060
|
+
"media_format_unsupported",
|
|
1043
1061
|
"media_too_large",
|
|
1044
1062
|
"media_aspect_ratio_unsupported",
|
|
1045
1063
|
"media_resolution_too_low",
|
|
@@ -1068,12 +1086,14 @@ var zMediaUpdateResponse = z__namespace.object({
|
|
|
1068
1086
|
message: z__namespace.string(),
|
|
1069
1087
|
hint: z__namespace.string().optional(),
|
|
1070
1088
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1071
|
-
got: z__namespace.string().optional()
|
|
1089
|
+
got: z__namespace.string().optional(),
|
|
1090
|
+
display_error: z__namespace.string()
|
|
1072
1091
|
})),
|
|
1073
1092
|
errors: z__namespace.array(z__namespace.object({
|
|
1074
1093
|
code: z__namespace.enum([
|
|
1075
1094
|
"media_unprobeable",
|
|
1076
1095
|
"media_format_indeterminate",
|
|
1096
|
+
"media_format_unsupported",
|
|
1077
1097
|
"media_too_large",
|
|
1078
1098
|
"media_aspect_ratio_unsupported",
|
|
1079
1099
|
"media_resolution_too_low",
|
|
@@ -1102,7 +1122,8 @@ var zMediaUpdateResponse = z__namespace.object({
|
|
|
1102
1122
|
message: z__namespace.string(),
|
|
1103
1123
|
hint: z__namespace.string().optional(),
|
|
1104
1124
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1105
|
-
got: z__namespace.string().optional()
|
|
1125
|
+
got: z__namespace.string().optional(),
|
|
1126
|
+
display_error: z__namespace.string()
|
|
1106
1127
|
}))
|
|
1107
1128
|
})),
|
|
1108
1129
|
external_id: z__namespace.string().nullable(),
|
|
@@ -1195,7 +1216,8 @@ var zPostsListResponse = z__namespace.object({
|
|
|
1195
1216
|
}).nullable(),
|
|
1196
1217
|
error: z__namespace.object({
|
|
1197
1218
|
code: z__namespace.string(),
|
|
1198
|
-
message: z__namespace.string()
|
|
1219
|
+
message: z__namespace.string(),
|
|
1220
|
+
display_error: z__namespace.string()
|
|
1199
1221
|
}).nullable(),
|
|
1200
1222
|
media: z__namespace.array(z__namespace.object({
|
|
1201
1223
|
media_id: z__namespace.string(),
|
|
@@ -1474,7 +1496,8 @@ var zPostsCreateResponse = z__namespace.object({
|
|
|
1474
1496
|
}).nullable(),
|
|
1475
1497
|
error: z__namespace.object({
|
|
1476
1498
|
code: z__namespace.string(),
|
|
1477
|
-
message: z__namespace.string()
|
|
1499
|
+
message: z__namespace.string(),
|
|
1500
|
+
display_error: z__namespace.string()
|
|
1478
1501
|
}).nullable(),
|
|
1479
1502
|
media: z__namespace.array(z__namespace.object({
|
|
1480
1503
|
media_id: z__namespace.string(),
|
|
@@ -1556,7 +1579,8 @@ var zPostsGetResponse = z__namespace.object({
|
|
|
1556
1579
|
}).nullable(),
|
|
1557
1580
|
error: z__namespace.object({
|
|
1558
1581
|
code: z__namespace.string(),
|
|
1559
|
-
message: z__namespace.string()
|
|
1582
|
+
message: z__namespace.string(),
|
|
1583
|
+
display_error: z__namespace.string()
|
|
1560
1584
|
}).nullable(),
|
|
1561
1585
|
media: z__namespace.array(z__namespace.object({
|
|
1562
1586
|
media_id: z__namespace.string(),
|
|
@@ -1832,7 +1856,8 @@ var zPostsUpdateResponse = z__namespace.object({
|
|
|
1832
1856
|
}).nullable(),
|
|
1833
1857
|
error: z__namespace.object({
|
|
1834
1858
|
code: z__namespace.string(),
|
|
1835
|
-
message: z__namespace.string()
|
|
1859
|
+
message: z__namespace.string(),
|
|
1860
|
+
display_error: z__namespace.string()
|
|
1836
1861
|
}).nullable(),
|
|
1837
1862
|
media: z__namespace.array(z__namespace.object({
|
|
1838
1863
|
media_id: z__namespace.string(),
|
|
@@ -2087,6 +2112,7 @@ var zPostsValidateResponse = z__namespace.object({
|
|
|
2087
2112
|
"document_too_large",
|
|
2088
2113
|
"document_too_many_pages",
|
|
2089
2114
|
"media_format_indeterminate",
|
|
2115
|
+
"media_format_unsupported",
|
|
2090
2116
|
"media_count_invalid",
|
|
2091
2117
|
"body_too_long",
|
|
2092
2118
|
"content_missing",
|
|
@@ -2133,6 +2159,9 @@ var zPostsValidateResponse = z__namespace.object({
|
|
|
2133
2159
|
"tiktok_media_processing",
|
|
2134
2160
|
"tiktok_not_authorized",
|
|
2135
2161
|
"tiktok_rate_limited",
|
|
2162
|
+
"tiktok_url_ownership_unverified",
|
|
2163
|
+
"tiktok_unaudited_private_only",
|
|
2164
|
+
"tiktok_spam_risk",
|
|
2136
2165
|
"tiktok_publish_failed",
|
|
2137
2166
|
"post_publish_failed",
|
|
2138
2167
|
"post_partially_published",
|
|
@@ -2144,7 +2173,8 @@ var zPostsValidateResponse = z__namespace.object({
|
|
|
2144
2173
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
2145
2174
|
got: z__namespace.string().optional(),
|
|
2146
2175
|
variant_index: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
2147
|
-
path: z__namespace.array(z__namespace.union([z__namespace.string(), z__namespace.number()]))
|
|
2176
|
+
path: z__namespace.array(z__namespace.union([z__namespace.string(), z__namespace.number()])),
|
|
2177
|
+
display_error: z__namespace.string()
|
|
2148
2178
|
}))
|
|
2149
2179
|
});
|
|
2150
2180
|
var zMetaAccountPath = z__namespace.object({
|
|
@@ -3721,7 +3751,8 @@ var zLogsListResponse = z__namespace.object({
|
|
|
3721
3751
|
published_at: z__namespace.string().nullable(),
|
|
3722
3752
|
error: z__namespace.object({
|
|
3723
3753
|
code: z__namespace.string(),
|
|
3724
|
-
message: z__namespace.string()
|
|
3754
|
+
message: z__namespace.string(),
|
|
3755
|
+
display_error: z__namespace.string()
|
|
3725
3756
|
}).nullable()
|
|
3726
3757
|
}))
|
|
3727
3758
|
}).nullable(),
|
|
@@ -3804,7 +3835,8 @@ var zLogsGetResponse = z__namespace.object({
|
|
|
3804
3835
|
published_at: z__namespace.string().nullable(),
|
|
3805
3836
|
error: z__namespace.object({
|
|
3806
3837
|
code: z__namespace.string(),
|
|
3807
|
-
message: z__namespace.string()
|
|
3838
|
+
message: z__namespace.string(),
|
|
3839
|
+
display_error: z__namespace.string()
|
|
3808
3840
|
}).nullable()
|
|
3809
3841
|
}))
|
|
3810
3842
|
}).nullable(),
|