@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/server.cjs
CHANGED
|
@@ -844,6 +844,7 @@ var zErrorCode = z__namespace.enum([
|
|
|
844
844
|
"document_too_large",
|
|
845
845
|
"document_too_many_pages",
|
|
846
846
|
"media_format_indeterminate",
|
|
847
|
+
"media_format_unsupported",
|
|
847
848
|
"media_count_invalid",
|
|
848
849
|
"body_too_long",
|
|
849
850
|
"content_missing",
|
|
@@ -890,6 +891,9 @@ var zErrorCode = z__namespace.enum([
|
|
|
890
891
|
"tiktok_media_processing",
|
|
891
892
|
"tiktok_not_authorized",
|
|
892
893
|
"tiktok_rate_limited",
|
|
894
|
+
"tiktok_url_ownership_unverified",
|
|
895
|
+
"tiktok_unaudited_private_only",
|
|
896
|
+
"tiktok_spam_risk",
|
|
893
897
|
"tiktok_publish_failed",
|
|
894
898
|
"post_publish_failed",
|
|
895
899
|
"post_partially_published",
|
|
@@ -1222,6 +1226,7 @@ z__namespace.object({
|
|
|
1222
1226
|
code: z__namespace.enum([
|
|
1223
1227
|
"media_unprobeable",
|
|
1224
1228
|
"media_format_indeterminate",
|
|
1229
|
+
"media_format_unsupported",
|
|
1225
1230
|
"media_too_large",
|
|
1226
1231
|
"media_aspect_ratio_unsupported",
|
|
1227
1232
|
"media_resolution_too_low",
|
|
@@ -1250,7 +1255,8 @@ z__namespace.object({
|
|
|
1250
1255
|
message: z__namespace.string(),
|
|
1251
1256
|
hint: z__namespace.string().optional(),
|
|
1252
1257
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1253
|
-
got: z__namespace.string().optional()
|
|
1258
|
+
got: z__namespace.string().optional(),
|
|
1259
|
+
display_error: z__namespace.string()
|
|
1254
1260
|
}).nullable(),
|
|
1255
1261
|
source: z__namespace.object({
|
|
1256
1262
|
format: z__namespace.string(),
|
|
@@ -1274,6 +1280,7 @@ z__namespace.object({
|
|
|
1274
1280
|
code: z__namespace.enum([
|
|
1275
1281
|
"media_unprobeable",
|
|
1276
1282
|
"media_format_indeterminate",
|
|
1283
|
+
"media_format_unsupported",
|
|
1277
1284
|
"media_too_large",
|
|
1278
1285
|
"media_aspect_ratio_unsupported",
|
|
1279
1286
|
"media_resolution_too_low",
|
|
@@ -1302,12 +1309,14 @@ z__namespace.object({
|
|
|
1302
1309
|
message: z__namespace.string(),
|
|
1303
1310
|
hint: z__namespace.string().optional(),
|
|
1304
1311
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1305
|
-
got: z__namespace.string().optional()
|
|
1312
|
+
got: z__namespace.string().optional(),
|
|
1313
|
+
display_error: z__namespace.string()
|
|
1306
1314
|
})),
|
|
1307
1315
|
errors: z__namespace.array(z__namespace.object({
|
|
1308
1316
|
code: z__namespace.enum([
|
|
1309
1317
|
"media_unprobeable",
|
|
1310
1318
|
"media_format_indeterminate",
|
|
1319
|
+
"media_format_unsupported",
|
|
1311
1320
|
"media_too_large",
|
|
1312
1321
|
"media_aspect_ratio_unsupported",
|
|
1313
1322
|
"media_resolution_too_low",
|
|
@@ -1336,7 +1345,8 @@ z__namespace.object({
|
|
|
1336
1345
|
message: z__namespace.string(),
|
|
1337
1346
|
hint: z__namespace.string().optional(),
|
|
1338
1347
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1339
|
-
got: z__namespace.string().optional()
|
|
1348
|
+
got: z__namespace.string().optional(),
|
|
1349
|
+
display_error: z__namespace.string()
|
|
1340
1350
|
}))
|
|
1341
1351
|
})),
|
|
1342
1352
|
external_id: z__namespace.string().nullable(),
|
|
@@ -1355,13 +1365,6 @@ z__namespace.object({
|
|
|
1355
1365
|
});
|
|
1356
1366
|
z__namespace.object({
|
|
1357
1367
|
profile_id: z__namespace.string(),
|
|
1358
|
-
kind: z__namespace.enum([
|
|
1359
|
-
"image",
|
|
1360
|
-
"video",
|
|
1361
|
-
"gif",
|
|
1362
|
-
"document"
|
|
1363
|
-
]).optional(),
|
|
1364
|
-
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(),
|
|
1365
1368
|
source_url: z__namespace.url().optional(),
|
|
1366
1369
|
targets: z__namespace.array(z__namespace.enum([
|
|
1367
1370
|
"x",
|
|
@@ -1411,6 +1414,7 @@ z__namespace.object({
|
|
|
1411
1414
|
code: z__namespace.enum([
|
|
1412
1415
|
"media_unprobeable",
|
|
1413
1416
|
"media_format_indeterminate",
|
|
1417
|
+
"media_format_unsupported",
|
|
1414
1418
|
"media_too_large",
|
|
1415
1419
|
"media_aspect_ratio_unsupported",
|
|
1416
1420
|
"media_resolution_too_low",
|
|
@@ -1439,7 +1443,8 @@ z__namespace.object({
|
|
|
1439
1443
|
message: z__namespace.string(),
|
|
1440
1444
|
hint: z__namespace.string().optional(),
|
|
1441
1445
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1442
|
-
got: z__namespace.string().optional()
|
|
1446
|
+
got: z__namespace.string().optional(),
|
|
1447
|
+
display_error: z__namespace.string()
|
|
1443
1448
|
}).nullable(),
|
|
1444
1449
|
source: z__namespace.object({
|
|
1445
1450
|
format: z__namespace.string(),
|
|
@@ -1463,6 +1468,7 @@ z__namespace.object({
|
|
|
1463
1468
|
code: z__namespace.enum([
|
|
1464
1469
|
"media_unprobeable",
|
|
1465
1470
|
"media_format_indeterminate",
|
|
1471
|
+
"media_format_unsupported",
|
|
1466
1472
|
"media_too_large",
|
|
1467
1473
|
"media_aspect_ratio_unsupported",
|
|
1468
1474
|
"media_resolution_too_low",
|
|
@@ -1491,12 +1497,14 @@ z__namespace.object({
|
|
|
1491
1497
|
message: z__namespace.string(),
|
|
1492
1498
|
hint: z__namespace.string().optional(),
|
|
1493
1499
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1494
|
-
got: z__namespace.string().optional()
|
|
1500
|
+
got: z__namespace.string().optional(),
|
|
1501
|
+
display_error: z__namespace.string()
|
|
1495
1502
|
})),
|
|
1496
1503
|
errors: z__namespace.array(z__namespace.object({
|
|
1497
1504
|
code: z__namespace.enum([
|
|
1498
1505
|
"media_unprobeable",
|
|
1499
1506
|
"media_format_indeterminate",
|
|
1507
|
+
"media_format_unsupported",
|
|
1500
1508
|
"media_too_large",
|
|
1501
1509
|
"media_aspect_ratio_unsupported",
|
|
1502
1510
|
"media_resolution_too_low",
|
|
@@ -1525,7 +1533,8 @@ z__namespace.object({
|
|
|
1525
1533
|
message: z__namespace.string(),
|
|
1526
1534
|
hint: z__namespace.string().optional(),
|
|
1527
1535
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1528
|
-
got: z__namespace.string().optional()
|
|
1536
|
+
got: z__namespace.string().optional(),
|
|
1537
|
+
display_error: z__namespace.string()
|
|
1529
1538
|
}))
|
|
1530
1539
|
})),
|
|
1531
1540
|
external_id: z__namespace.string().nullable(),
|
|
@@ -1585,6 +1594,7 @@ z__namespace.object({
|
|
|
1585
1594
|
code: z__namespace.enum([
|
|
1586
1595
|
"media_unprobeable",
|
|
1587
1596
|
"media_format_indeterminate",
|
|
1597
|
+
"media_format_unsupported",
|
|
1588
1598
|
"media_too_large",
|
|
1589
1599
|
"media_aspect_ratio_unsupported",
|
|
1590
1600
|
"media_resolution_too_low",
|
|
@@ -1613,7 +1623,8 @@ z__namespace.object({
|
|
|
1613
1623
|
message: z__namespace.string(),
|
|
1614
1624
|
hint: z__namespace.string().optional(),
|
|
1615
1625
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1616
|
-
got: z__namespace.string().optional()
|
|
1626
|
+
got: z__namespace.string().optional(),
|
|
1627
|
+
display_error: z__namespace.string()
|
|
1617
1628
|
}).nullable(),
|
|
1618
1629
|
source: z__namespace.object({
|
|
1619
1630
|
format: z__namespace.string(),
|
|
@@ -1637,6 +1648,7 @@ z__namespace.object({
|
|
|
1637
1648
|
code: z__namespace.enum([
|
|
1638
1649
|
"media_unprobeable",
|
|
1639
1650
|
"media_format_indeterminate",
|
|
1651
|
+
"media_format_unsupported",
|
|
1640
1652
|
"media_too_large",
|
|
1641
1653
|
"media_aspect_ratio_unsupported",
|
|
1642
1654
|
"media_resolution_too_low",
|
|
@@ -1665,12 +1677,14 @@ z__namespace.object({
|
|
|
1665
1677
|
message: z__namespace.string(),
|
|
1666
1678
|
hint: z__namespace.string().optional(),
|
|
1667
1679
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1668
|
-
got: z__namespace.string().optional()
|
|
1680
|
+
got: z__namespace.string().optional(),
|
|
1681
|
+
display_error: z__namespace.string()
|
|
1669
1682
|
})),
|
|
1670
1683
|
errors: z__namespace.array(z__namespace.object({
|
|
1671
1684
|
code: z__namespace.enum([
|
|
1672
1685
|
"media_unprobeable",
|
|
1673
1686
|
"media_format_indeterminate",
|
|
1687
|
+
"media_format_unsupported",
|
|
1674
1688
|
"media_too_large",
|
|
1675
1689
|
"media_aspect_ratio_unsupported",
|
|
1676
1690
|
"media_resolution_too_low",
|
|
@@ -1699,7 +1713,8 @@ z__namespace.object({
|
|
|
1699
1713
|
message: z__namespace.string(),
|
|
1700
1714
|
hint: z__namespace.string().optional(),
|
|
1701
1715
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1702
|
-
got: z__namespace.string().optional()
|
|
1716
|
+
got: z__namespace.string().optional(),
|
|
1717
|
+
display_error: z__namespace.string()
|
|
1703
1718
|
}))
|
|
1704
1719
|
})),
|
|
1705
1720
|
external_id: z__namespace.string().nullable(),
|
|
@@ -1762,6 +1777,7 @@ z__namespace.object({
|
|
|
1762
1777
|
code: z__namespace.enum([
|
|
1763
1778
|
"media_unprobeable",
|
|
1764
1779
|
"media_format_indeterminate",
|
|
1780
|
+
"media_format_unsupported",
|
|
1765
1781
|
"media_too_large",
|
|
1766
1782
|
"media_aspect_ratio_unsupported",
|
|
1767
1783
|
"media_resolution_too_low",
|
|
@@ -1790,7 +1806,8 @@ z__namespace.object({
|
|
|
1790
1806
|
message: z__namespace.string(),
|
|
1791
1807
|
hint: z__namespace.string().optional(),
|
|
1792
1808
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1793
|
-
got: z__namespace.string().optional()
|
|
1809
|
+
got: z__namespace.string().optional(),
|
|
1810
|
+
display_error: z__namespace.string()
|
|
1794
1811
|
}).nullable(),
|
|
1795
1812
|
source: z__namespace.object({
|
|
1796
1813
|
format: z__namespace.string(),
|
|
@@ -1814,6 +1831,7 @@ z__namespace.object({
|
|
|
1814
1831
|
code: z__namespace.enum([
|
|
1815
1832
|
"media_unprobeable",
|
|
1816
1833
|
"media_format_indeterminate",
|
|
1834
|
+
"media_format_unsupported",
|
|
1817
1835
|
"media_too_large",
|
|
1818
1836
|
"media_aspect_ratio_unsupported",
|
|
1819
1837
|
"media_resolution_too_low",
|
|
@@ -1842,12 +1860,14 @@ z__namespace.object({
|
|
|
1842
1860
|
message: z__namespace.string(),
|
|
1843
1861
|
hint: z__namespace.string().optional(),
|
|
1844
1862
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1845
|
-
got: z__namespace.string().optional()
|
|
1863
|
+
got: z__namespace.string().optional(),
|
|
1864
|
+
display_error: z__namespace.string()
|
|
1846
1865
|
})),
|
|
1847
1866
|
errors: z__namespace.array(z__namespace.object({
|
|
1848
1867
|
code: z__namespace.enum([
|
|
1849
1868
|
"media_unprobeable",
|
|
1850
1869
|
"media_format_indeterminate",
|
|
1870
|
+
"media_format_unsupported",
|
|
1851
1871
|
"media_too_large",
|
|
1852
1872
|
"media_aspect_ratio_unsupported",
|
|
1853
1873
|
"media_resolution_too_low",
|
|
@@ -1876,7 +1896,8 @@ z__namespace.object({
|
|
|
1876
1896
|
message: z__namespace.string(),
|
|
1877
1897
|
hint: z__namespace.string().optional(),
|
|
1878
1898
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
1879
|
-
got: z__namespace.string().optional()
|
|
1899
|
+
got: z__namespace.string().optional(),
|
|
1900
|
+
display_error: z__namespace.string()
|
|
1880
1901
|
}))
|
|
1881
1902
|
})),
|
|
1882
1903
|
external_id: z__namespace.string().nullable(),
|
|
@@ -1969,7 +1990,8 @@ z__namespace.object({
|
|
|
1969
1990
|
}).nullable(),
|
|
1970
1991
|
error: z__namespace.object({
|
|
1971
1992
|
code: z__namespace.string(),
|
|
1972
|
-
message: z__namespace.string()
|
|
1993
|
+
message: z__namespace.string(),
|
|
1994
|
+
display_error: z__namespace.string()
|
|
1973
1995
|
}).nullable(),
|
|
1974
1996
|
media: z__namespace.array(z__namespace.object({
|
|
1975
1997
|
media_id: z__namespace.string(),
|
|
@@ -2248,7 +2270,8 @@ z__namespace.object({
|
|
|
2248
2270
|
}).nullable(),
|
|
2249
2271
|
error: z__namespace.object({
|
|
2250
2272
|
code: z__namespace.string(),
|
|
2251
|
-
message: z__namespace.string()
|
|
2273
|
+
message: z__namespace.string(),
|
|
2274
|
+
display_error: z__namespace.string()
|
|
2252
2275
|
}).nullable(),
|
|
2253
2276
|
media: z__namespace.array(z__namespace.object({
|
|
2254
2277
|
media_id: z__namespace.string(),
|
|
@@ -2330,7 +2353,8 @@ z__namespace.object({
|
|
|
2330
2353
|
}).nullable(),
|
|
2331
2354
|
error: z__namespace.object({
|
|
2332
2355
|
code: z__namespace.string(),
|
|
2333
|
-
message: z__namespace.string()
|
|
2356
|
+
message: z__namespace.string(),
|
|
2357
|
+
display_error: z__namespace.string()
|
|
2334
2358
|
}).nullable(),
|
|
2335
2359
|
media: z__namespace.array(z__namespace.object({
|
|
2336
2360
|
media_id: z__namespace.string(),
|
|
@@ -2606,7 +2630,8 @@ z__namespace.object({
|
|
|
2606
2630
|
}).nullable(),
|
|
2607
2631
|
error: z__namespace.object({
|
|
2608
2632
|
code: z__namespace.string(),
|
|
2609
|
-
message: z__namespace.string()
|
|
2633
|
+
message: z__namespace.string(),
|
|
2634
|
+
display_error: z__namespace.string()
|
|
2610
2635
|
}).nullable(),
|
|
2611
2636
|
media: z__namespace.array(z__namespace.object({
|
|
2612
2637
|
media_id: z__namespace.string(),
|
|
@@ -2861,6 +2886,7 @@ z__namespace.object({
|
|
|
2861
2886
|
"document_too_large",
|
|
2862
2887
|
"document_too_many_pages",
|
|
2863
2888
|
"media_format_indeterminate",
|
|
2889
|
+
"media_format_unsupported",
|
|
2864
2890
|
"media_count_invalid",
|
|
2865
2891
|
"body_too_long",
|
|
2866
2892
|
"content_missing",
|
|
@@ -2907,6 +2933,9 @@ z__namespace.object({
|
|
|
2907
2933
|
"tiktok_media_processing",
|
|
2908
2934
|
"tiktok_not_authorized",
|
|
2909
2935
|
"tiktok_rate_limited",
|
|
2936
|
+
"tiktok_url_ownership_unverified",
|
|
2937
|
+
"tiktok_unaudited_private_only",
|
|
2938
|
+
"tiktok_spam_risk",
|
|
2910
2939
|
"tiktok_publish_failed",
|
|
2911
2940
|
"post_publish_failed",
|
|
2912
2941
|
"post_partially_published",
|
|
@@ -2918,7 +2947,8 @@ z__namespace.object({
|
|
|
2918
2947
|
allowed: z__namespace.array(z__namespace.string()).optional(),
|
|
2919
2948
|
got: z__namespace.string().optional(),
|
|
2920
2949
|
variant_index: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
2921
|
-
path: z__namespace.array(z__namespace.union([z__namespace.string(), z__namespace.number()]))
|
|
2950
|
+
path: z__namespace.array(z__namespace.union([z__namespace.string(), z__namespace.number()])),
|
|
2951
|
+
display_error: z__namespace.string()
|
|
2922
2952
|
}))
|
|
2923
2953
|
});
|
|
2924
2954
|
z__namespace.object({
|
|
@@ -4495,7 +4525,8 @@ z__namespace.object({
|
|
|
4495
4525
|
published_at: z__namespace.string().nullable(),
|
|
4496
4526
|
error: z__namespace.object({
|
|
4497
4527
|
code: z__namespace.string(),
|
|
4498
|
-
message: z__namespace.string()
|
|
4528
|
+
message: z__namespace.string(),
|
|
4529
|
+
display_error: z__namespace.string()
|
|
4499
4530
|
}).nullable()
|
|
4500
4531
|
}))
|
|
4501
4532
|
}).nullable(),
|
|
@@ -4578,7 +4609,8 @@ z__namespace.object({
|
|
|
4578
4609
|
published_at: z__namespace.string().nullable(),
|
|
4579
4610
|
error: z__namespace.object({
|
|
4580
4611
|
code: z__namespace.string(),
|
|
4581
|
-
message: z__namespace.string()
|
|
4612
|
+
message: z__namespace.string(),
|
|
4613
|
+
display_error: z__namespace.string()
|
|
4582
4614
|
}).nullable()
|
|
4583
4615
|
}))
|
|
4584
4616
|
}).nullable(),
|