@postrun/js 2.9.0 → 2.11.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.
@@ -1159,25 +1159,1126 @@ var zPostsListResponse = z.object({
1159
1159
  z.number(),
1160
1160
  z.boolean()
1161
1161
  ])),
1162
- variants: z.array(z.object({
1162
+ variants: z.array(z.union([
1163
+ z.object({
1164
+ platform: z.literal("x"),
1165
+ post_type: z.enum([
1166
+ "text",
1167
+ "single_image",
1168
+ "multi_image",
1169
+ "video"
1170
+ ]),
1171
+ settings: z.object({
1172
+ reply_settings: z.enum([
1173
+ "everyone",
1174
+ "following",
1175
+ "mentionedUsers",
1176
+ "subscribers",
1177
+ "verified"
1178
+ ]).optional(),
1179
+ quote_tweet_id: z.string().regex(/^[0-9]{1,19}$/).optional(),
1180
+ poll: z.object({
1181
+ options: z.array(z.string().min(1).max(25)).min(2).max(4),
1182
+ duration_minutes: z.int().gte(5).lte(10080),
1183
+ reply_settings: z.enum([
1184
+ "following",
1185
+ "mentionedUsers",
1186
+ "subscribers",
1187
+ "verified"
1188
+ ]).optional()
1189
+ }).optional(),
1190
+ reply: z.object({
1191
+ in_reply_to_tweet_id: z.string().regex(/^[0-9]{1,19}$/),
1192
+ exclude_reply_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).optional(),
1193
+ auto_populate_reply_metadata: z.boolean().optional()
1194
+ }).optional(),
1195
+ community_id: z.string().regex(/^[0-9]{1,19}$/).optional(),
1196
+ for_super_followers_only: z.boolean().optional(),
1197
+ geo: z.object({
1198
+ place_id: z.string()
1199
+ }).optional(),
1200
+ card_uri: z.string().optional(),
1201
+ media_tagged_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
1202
+ }),
1203
+ id: z.string(),
1204
+ object: z.literal("post_variant"),
1205
+ connection_id: z.string().nullable(),
1206
+ body: z.string().nullable(),
1207
+ status: z.enum([
1208
+ "draft",
1209
+ "scheduled",
1210
+ "publishing",
1211
+ "published",
1212
+ "failed"
1213
+ ]),
1214
+ schedule_at: z.string().nullable(),
1215
+ result: z.object({
1216
+ platform_post_id: z.string(),
1217
+ permalink: z.string().nullable(),
1218
+ published_at: z.string()
1219
+ }).nullable(),
1220
+ error: z.object({
1221
+ code: z.string(),
1222
+ message: z.string(),
1223
+ display_error: z.string()
1224
+ }).nullable(),
1225
+ media: z.array(z.object({
1226
+ media_id: z.string(),
1227
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
1228
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
1229
+ alt_text_override: z.string().nullable()
1230
+ }))
1231
+ }),
1232
+ z.object({
1233
+ platform: z.literal("linkedin"),
1234
+ post_type: z.enum([
1235
+ "text",
1236
+ "single_image",
1237
+ "multi_image",
1238
+ "video"
1239
+ ]),
1240
+ settings: z.object({
1241
+ visibility: z.enum(["PUBLIC", "CONNECTIONS"]),
1242
+ content_kind: z.enum([
1243
+ "text",
1244
+ "single_image",
1245
+ "video",
1246
+ "multi_image",
1247
+ "document",
1248
+ "article",
1249
+ "poll"
1250
+ ]),
1251
+ article: z.object({
1252
+ source: z.url(),
1253
+ title: z.string().max(400).optional(),
1254
+ description: z.string().max(4086).optional(),
1255
+ thumbnail_media_id: z.string().optional()
1256
+ }).optional(),
1257
+ poll: z.object({
1258
+ question: z.string().min(1).max(140),
1259
+ options: z.array(z.string().min(1).max(30)).min(2).max(4),
1260
+ duration: z.enum([
1261
+ "ONE_DAY",
1262
+ "THREE_DAYS",
1263
+ "SEVEN_DAYS",
1264
+ "FOURTEEN_DAYS"
1265
+ ])
1266
+ }).optional(),
1267
+ document: z.object({
1268
+ title: z.string().min(1).max(400)
1269
+ }).optional(),
1270
+ disable_reshare: z.boolean().optional(),
1271
+ mentions: z.array(z.object({
1272
+ type: z.enum(["person", "organization"]),
1273
+ name: z.string().min(1),
1274
+ urn: z.string().regex(/^urn:li:(person|organization):/)
1275
+ })).optional()
1276
+ }),
1277
+ id: z.string(),
1278
+ object: z.literal("post_variant"),
1279
+ connection_id: z.string().nullable(),
1280
+ body: z.string().nullable(),
1281
+ status: z.enum([
1282
+ "draft",
1283
+ "scheduled",
1284
+ "publishing",
1285
+ "published",
1286
+ "failed"
1287
+ ]),
1288
+ schedule_at: z.string().nullable(),
1289
+ result: z.object({
1290
+ platform_post_id: z.string(),
1291
+ permalink: z.string().nullable(),
1292
+ published_at: z.string()
1293
+ }).nullable(),
1294
+ error: z.object({
1295
+ code: z.string(),
1296
+ message: z.string(),
1297
+ display_error: z.string()
1298
+ }).nullable(),
1299
+ media: z.array(z.object({
1300
+ media_id: z.string(),
1301
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
1302
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
1303
+ alt_text_override: z.string().nullable()
1304
+ }))
1305
+ }),
1306
+ z.object({
1307
+ platform: z.literal("facebook_page"),
1308
+ post_type: z.enum([
1309
+ "text",
1310
+ "single_image",
1311
+ "multi_image",
1312
+ "reel"
1313
+ ]),
1314
+ settings: z.object({
1315
+ link: z.url().optional()
1316
+ }),
1317
+ id: z.string(),
1318
+ object: z.literal("post_variant"),
1319
+ connection_id: z.string().nullable(),
1320
+ body: z.string().nullable(),
1321
+ status: z.enum([
1322
+ "draft",
1323
+ "scheduled",
1324
+ "publishing",
1325
+ "published",
1326
+ "failed"
1327
+ ]),
1328
+ schedule_at: z.string().nullable(),
1329
+ result: z.object({
1330
+ platform_post_id: z.string(),
1331
+ permalink: z.string().nullable(),
1332
+ published_at: z.string()
1333
+ }).nullable(),
1334
+ error: z.object({
1335
+ code: z.string(),
1336
+ message: z.string(),
1337
+ display_error: z.string()
1338
+ }).nullable(),
1339
+ media: z.array(z.object({
1340
+ media_id: z.string(),
1341
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
1342
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
1343
+ alt_text_override: z.string().nullable()
1344
+ }))
1345
+ }),
1346
+ z.object({
1347
+ platform: z.literal("instagram"),
1348
+ post_type: z.enum([
1349
+ "single_image",
1350
+ "carousel",
1351
+ "reel"
1352
+ ]),
1353
+ settings: z.object({
1354
+ media_type: z.enum([
1355
+ "IMAGE",
1356
+ "CAROUSEL",
1357
+ "REELS"
1358
+ ]).optional(),
1359
+ location_id: z.string().optional(),
1360
+ user_tags: z.array(z.object({
1361
+ username: z.string().min(1),
1362
+ x: z.number().gte(0).lte(1),
1363
+ y: z.number().gte(0).lte(1)
1364
+ })).optional(),
1365
+ collaborators: z.array(z.string().min(1)).max(3).optional(),
1366
+ share_to_feed: z.boolean().optional(),
1367
+ thumb_offset: z.int().gte(0).lte(9007199254740991).optional(),
1368
+ cover_url: z.url().optional(),
1369
+ audio_name: z.string().optional()
1370
+ }),
1371
+ id: z.string(),
1372
+ object: z.literal("post_variant"),
1373
+ connection_id: z.string().nullable(),
1374
+ body: z.string().nullable(),
1375
+ status: z.enum([
1376
+ "draft",
1377
+ "scheduled",
1378
+ "publishing",
1379
+ "published",
1380
+ "failed"
1381
+ ]),
1382
+ schedule_at: z.string().nullable(),
1383
+ result: z.object({
1384
+ platform_post_id: z.string(),
1385
+ permalink: z.string().nullable(),
1386
+ published_at: z.string()
1387
+ }).nullable(),
1388
+ error: z.object({
1389
+ code: z.string(),
1390
+ message: z.string(),
1391
+ display_error: z.string()
1392
+ }).nullable(),
1393
+ media: z.array(z.object({
1394
+ media_id: z.string(),
1395
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
1396
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
1397
+ alt_text_override: z.string().nullable()
1398
+ }))
1399
+ }),
1400
+ z.object({
1401
+ platform: z.literal("tiktok"),
1402
+ post_type: z.enum([
1403
+ "video",
1404
+ "single_image",
1405
+ "carousel"
1406
+ ]),
1407
+ settings: z.object({
1408
+ privacy_level: z.enum([
1409
+ "PUBLIC_TO_EVERYONE",
1410
+ "MUTUAL_FOLLOW_FRIENDS",
1411
+ "FOLLOWER_OF_CREATOR",
1412
+ "SELF_ONLY"
1413
+ ]).optional(),
1414
+ disable_comment: z.boolean().optional(),
1415
+ disable_duet: z.boolean().optional(),
1416
+ disable_stitch: z.boolean().optional(),
1417
+ video_cover_timestamp_ms: z.int().gte(0).lte(9007199254740991).optional(),
1418
+ photo_cover_index: z.int().gte(0).lte(9007199254740991).optional(),
1419
+ auto_add_music: z.boolean().optional(),
1420
+ brand_content_toggle: z.boolean().optional(),
1421
+ brand_organic_toggle: z.boolean().optional(),
1422
+ is_aigc: z.boolean().optional()
1423
+ }),
1424
+ id: z.string(),
1425
+ object: z.literal("post_variant"),
1426
+ connection_id: z.string().nullable(),
1427
+ body: z.string().nullable(),
1428
+ status: z.enum([
1429
+ "draft",
1430
+ "scheduled",
1431
+ "publishing",
1432
+ "published",
1433
+ "failed"
1434
+ ]),
1435
+ schedule_at: z.string().nullable(),
1436
+ result: z.object({
1437
+ platform_post_id: z.string(),
1438
+ permalink: z.string().nullable(),
1439
+ published_at: z.string()
1440
+ }).nullable(),
1441
+ error: z.object({
1442
+ code: z.string(),
1443
+ message: z.string(),
1444
+ display_error: z.string()
1445
+ }).nullable(),
1446
+ media: z.array(z.object({
1447
+ media_id: z.string(),
1448
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
1449
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
1450
+ alt_text_override: z.string().nullable()
1451
+ }))
1452
+ })
1453
+ ])),
1454
+ created_at: z.string(),
1455
+ updated_at: z.string()
1456
+ })),
1457
+ total: z.int().gte(-9007199254740991).lte(9007199254740991),
1458
+ limit: z.int().gte(-9007199254740991).lte(9007199254740991),
1459
+ offset: z.int().gte(-9007199254740991).lte(9007199254740991),
1460
+ has_more: z.boolean()
1461
+ });
1462
+ var zPostsCreateBody = z.object({
1463
+ profile_id: z.string(),
1464
+ publish: z.enum([
1465
+ "now",
1466
+ "schedule",
1467
+ "draft"
1468
+ ]).optional().default("draft"),
1469
+ schedule_at: z.iso.datetime().optional(),
1470
+ external_id: z.string().min(1).max(255).optional(),
1471
+ metadata: z.record(z.string(), z.union([
1472
+ z.string().max(500),
1473
+ z.number(),
1474
+ z.boolean()
1475
+ ])).optional(),
1476
+ tags: z.array(z.string()).optional(),
1477
+ notes: z.string().optional(),
1478
+ dry_run: z.boolean().optional().default(false),
1479
+ variants: z.array(z.union([
1480
+ z.object({
1481
+ platform: z.literal("x"),
1482
+ post_type: z.enum([
1483
+ "text",
1484
+ "single_image",
1485
+ "multi_image",
1486
+ "video"
1487
+ ]),
1488
+ settings: z.object({
1489
+ reply_settings: z.enum([
1490
+ "everyone",
1491
+ "following",
1492
+ "mentionedUsers",
1493
+ "subscribers",
1494
+ "verified"
1495
+ ]).optional(),
1496
+ quote_tweet_id: z.string().regex(/^[0-9]{1,19}$/).optional(),
1497
+ poll: z.object({
1498
+ options: z.array(z.string().min(1).max(25)).min(2).max(4),
1499
+ duration_minutes: z.int().gte(5).lte(10080),
1500
+ reply_settings: z.enum([
1501
+ "following",
1502
+ "mentionedUsers",
1503
+ "subscribers",
1504
+ "verified"
1505
+ ]).optional()
1506
+ }).optional(),
1507
+ reply: z.object({
1508
+ in_reply_to_tweet_id: z.string().regex(/^[0-9]{1,19}$/),
1509
+ exclude_reply_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).optional(),
1510
+ auto_populate_reply_metadata: z.boolean().optional()
1511
+ }).optional(),
1512
+ community_id: z.string().regex(/^[0-9]{1,19}$/).optional(),
1513
+ for_super_followers_only: z.boolean().optional(),
1514
+ geo: z.object({
1515
+ place_id: z.string()
1516
+ }).optional(),
1517
+ card_uri: z.string().optional(),
1518
+ media_tagged_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
1519
+ }).optional().default({}),
1520
+ connection_id: z.string(),
1521
+ body: z.string().optional(),
1522
+ media: z.array(z.object({
1523
+ media_id: z.string(),
1524
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
1525
+ alt_text_override: z.string().nullish()
1526
+ })).optional().default([])
1527
+ }),
1528
+ z.object({
1529
+ platform: z.literal("linkedin"),
1530
+ post_type: z.enum([
1531
+ "text",
1532
+ "single_image",
1533
+ "multi_image",
1534
+ "video"
1535
+ ]),
1536
+ settings: z.object({
1537
+ visibility: z.enum(["PUBLIC", "CONNECTIONS"]),
1538
+ content_kind: z.enum([
1539
+ "text",
1540
+ "single_image",
1541
+ "video",
1542
+ "multi_image",
1543
+ "document",
1544
+ "article",
1545
+ "poll"
1546
+ ]),
1547
+ article: z.object({
1548
+ source: z.url(),
1549
+ title: z.string().max(400).optional(),
1550
+ description: z.string().max(4086).optional(),
1551
+ thumbnail_media_id: z.string().optional()
1552
+ }).optional(),
1553
+ poll: z.object({
1554
+ question: z.string().min(1).max(140),
1555
+ options: z.array(z.string().min(1).max(30)).min(2).max(4),
1556
+ duration: z.enum([
1557
+ "ONE_DAY",
1558
+ "THREE_DAYS",
1559
+ "SEVEN_DAYS",
1560
+ "FOURTEEN_DAYS"
1561
+ ])
1562
+ }).optional(),
1563
+ document: z.object({
1564
+ title: z.string().min(1).max(400)
1565
+ }).optional(),
1566
+ disable_reshare: z.boolean().optional(),
1567
+ mentions: z.array(z.object({
1568
+ type: z.enum(["person", "organization"]),
1569
+ name: z.string().min(1),
1570
+ urn: z.string().regex(/^urn:li:(person|organization):/)
1571
+ })).optional()
1572
+ }),
1573
+ connection_id: z.string(),
1574
+ body: z.string().optional(),
1575
+ media: z.array(z.object({
1576
+ media_id: z.string(),
1577
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
1578
+ alt_text_override: z.string().nullish()
1579
+ })).optional().default([])
1580
+ }),
1581
+ z.object({
1582
+ platform: z.literal("instagram"),
1583
+ post_type: z.enum([
1584
+ "single_image",
1585
+ "carousel",
1586
+ "reel"
1587
+ ]),
1588
+ settings: z.object({
1589
+ media_type: z.enum([
1590
+ "IMAGE",
1591
+ "CAROUSEL",
1592
+ "REELS"
1593
+ ]).optional(),
1594
+ location_id: z.string().optional(),
1595
+ user_tags: z.array(z.object({
1596
+ username: z.string().min(1),
1597
+ x: z.number().gte(0).lte(1),
1598
+ y: z.number().gte(0).lte(1)
1599
+ })).optional(),
1600
+ collaborators: z.array(z.string().min(1)).max(3).optional(),
1601
+ share_to_feed: z.boolean().optional(),
1602
+ thumb_offset: z.int().gte(0).lte(9007199254740991).optional(),
1603
+ cover_url: z.url().optional(),
1604
+ audio_name: z.string().optional()
1605
+ }),
1606
+ connection_id: z.string(),
1607
+ body: z.string().optional(),
1608
+ media: z.array(z.object({
1609
+ media_id: z.string(),
1610
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
1611
+ alt_text_override: z.string().nullish()
1612
+ })).optional().default([])
1613
+ }),
1614
+ z.object({
1615
+ platform: z.literal("facebook_page"),
1616
+ post_type: z.enum([
1617
+ "text",
1618
+ "single_image",
1619
+ "multi_image",
1620
+ "reel"
1621
+ ]),
1622
+ settings: z.object({
1623
+ link: z.url().optional()
1624
+ }).optional().default({}),
1625
+ connection_id: z.string(),
1626
+ body: z.string().optional(),
1627
+ media: z.array(z.object({
1628
+ media_id: z.string(),
1629
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
1630
+ alt_text_override: z.string().nullish()
1631
+ })).optional().default([])
1632
+ }),
1633
+ z.object({
1634
+ platform: z.literal("tiktok"),
1635
+ post_type: z.enum([
1636
+ "video",
1637
+ "single_image",
1638
+ "carousel"
1639
+ ]),
1640
+ settings: z.object({
1641
+ privacy_level: z.enum([
1642
+ "PUBLIC_TO_EVERYONE",
1643
+ "MUTUAL_FOLLOW_FRIENDS",
1644
+ "FOLLOWER_OF_CREATOR",
1645
+ "SELF_ONLY"
1646
+ ]).optional(),
1647
+ disable_comment: z.boolean().optional(),
1648
+ disable_duet: z.boolean().optional(),
1649
+ disable_stitch: z.boolean().optional(),
1650
+ video_cover_timestamp_ms: z.int().gte(0).lte(9007199254740991).optional(),
1651
+ photo_cover_index: z.int().gte(0).lte(9007199254740991).optional(),
1652
+ auto_add_music: z.boolean().optional(),
1653
+ brand_content_toggle: z.boolean().optional(),
1654
+ brand_organic_toggle: z.boolean().optional(),
1655
+ is_aigc: z.boolean().optional()
1656
+ }).optional().default({}),
1657
+ connection_id: z.string(),
1658
+ body: z.string().optional(),
1659
+ media: z.array(z.object({
1660
+ media_id: z.string(),
1661
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
1662
+ alt_text_override: z.string().nullish()
1663
+ })).optional().default([])
1664
+ })
1665
+ ])).min(1)
1666
+ });
1667
+ var zPostsCreateResponse = z.object({
1668
+ id: z.string(),
1669
+ object: z.literal("post"),
1670
+ profile_id: z.string(),
1671
+ external_id: z.string().nullable(),
1672
+ status: z.enum([
1673
+ "draft",
1674
+ "scheduled",
1675
+ "publishing",
1676
+ "partially_published",
1677
+ "published",
1678
+ "failed"
1679
+ ]),
1680
+ schedule_at: z.string().nullable(),
1681
+ tags: z.array(z.string()),
1682
+ notes: z.string().nullable(),
1683
+ metadata: z.record(z.string(), z.union([
1684
+ z.string().max(500),
1685
+ z.number(),
1686
+ z.boolean()
1687
+ ])),
1688
+ variants: z.array(z.union([
1689
+ z.object({
1690
+ platform: z.literal("x"),
1691
+ post_type: z.enum([
1692
+ "text",
1693
+ "single_image",
1694
+ "multi_image",
1695
+ "video"
1696
+ ]),
1697
+ settings: z.object({
1698
+ reply_settings: z.enum([
1699
+ "everyone",
1700
+ "following",
1701
+ "mentionedUsers",
1702
+ "subscribers",
1703
+ "verified"
1704
+ ]).optional(),
1705
+ quote_tweet_id: z.string().regex(/^[0-9]{1,19}$/).optional(),
1706
+ poll: z.object({
1707
+ options: z.array(z.string().min(1).max(25)).min(2).max(4),
1708
+ duration_minutes: z.int().gte(5).lte(10080),
1709
+ reply_settings: z.enum([
1710
+ "following",
1711
+ "mentionedUsers",
1712
+ "subscribers",
1713
+ "verified"
1714
+ ]).optional()
1715
+ }).optional(),
1716
+ reply: z.object({
1717
+ in_reply_to_tweet_id: z.string().regex(/^[0-9]{1,19}$/),
1718
+ exclude_reply_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).optional(),
1719
+ auto_populate_reply_metadata: z.boolean().optional()
1720
+ }).optional(),
1721
+ community_id: z.string().regex(/^[0-9]{1,19}$/).optional(),
1722
+ for_super_followers_only: z.boolean().optional(),
1723
+ geo: z.object({
1724
+ place_id: z.string()
1725
+ }).optional(),
1726
+ card_uri: z.string().optional(),
1727
+ media_tagged_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
1728
+ }),
1729
+ id: z.string(),
1730
+ object: z.literal("post_variant"),
1731
+ connection_id: z.string().nullable(),
1732
+ body: z.string().nullable(),
1733
+ status: z.enum([
1734
+ "draft",
1735
+ "scheduled",
1736
+ "publishing",
1737
+ "published",
1738
+ "failed"
1739
+ ]),
1740
+ schedule_at: z.string().nullable(),
1741
+ result: z.object({
1742
+ platform_post_id: z.string(),
1743
+ permalink: z.string().nullable(),
1744
+ published_at: z.string()
1745
+ }).nullable(),
1746
+ error: z.object({
1747
+ code: z.string(),
1748
+ message: z.string(),
1749
+ display_error: z.string()
1750
+ }).nullable(),
1751
+ media: z.array(z.object({
1752
+ media_id: z.string(),
1753
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
1754
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
1755
+ alt_text_override: z.string().nullable()
1756
+ }))
1757
+ }),
1758
+ z.object({
1759
+ platform: z.literal("linkedin"),
1760
+ post_type: z.enum([
1761
+ "text",
1762
+ "single_image",
1763
+ "multi_image",
1764
+ "video"
1765
+ ]),
1766
+ settings: z.object({
1767
+ visibility: z.enum(["PUBLIC", "CONNECTIONS"]),
1768
+ content_kind: z.enum([
1769
+ "text",
1770
+ "single_image",
1771
+ "video",
1772
+ "multi_image",
1773
+ "document",
1774
+ "article",
1775
+ "poll"
1776
+ ]),
1777
+ article: z.object({
1778
+ source: z.url(),
1779
+ title: z.string().max(400).optional(),
1780
+ description: z.string().max(4086).optional(),
1781
+ thumbnail_media_id: z.string().optional()
1782
+ }).optional(),
1783
+ poll: z.object({
1784
+ question: z.string().min(1).max(140),
1785
+ options: z.array(z.string().min(1).max(30)).min(2).max(4),
1786
+ duration: z.enum([
1787
+ "ONE_DAY",
1788
+ "THREE_DAYS",
1789
+ "SEVEN_DAYS",
1790
+ "FOURTEEN_DAYS"
1791
+ ])
1792
+ }).optional(),
1793
+ document: z.object({
1794
+ title: z.string().min(1).max(400)
1795
+ }).optional(),
1796
+ disable_reshare: z.boolean().optional(),
1797
+ mentions: z.array(z.object({
1798
+ type: z.enum(["person", "organization"]),
1799
+ name: z.string().min(1),
1800
+ urn: z.string().regex(/^urn:li:(person|organization):/)
1801
+ })).optional()
1802
+ }),
1803
+ id: z.string(),
1804
+ object: z.literal("post_variant"),
1805
+ connection_id: z.string().nullable(),
1806
+ body: z.string().nullable(),
1807
+ status: z.enum([
1808
+ "draft",
1809
+ "scheduled",
1810
+ "publishing",
1811
+ "published",
1812
+ "failed"
1813
+ ]),
1814
+ schedule_at: z.string().nullable(),
1815
+ result: z.object({
1816
+ platform_post_id: z.string(),
1817
+ permalink: z.string().nullable(),
1818
+ published_at: z.string()
1819
+ }).nullable(),
1820
+ error: z.object({
1821
+ code: z.string(),
1822
+ message: z.string(),
1823
+ display_error: z.string()
1824
+ }).nullable(),
1825
+ media: z.array(z.object({
1826
+ media_id: z.string(),
1827
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
1828
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
1829
+ alt_text_override: z.string().nullable()
1830
+ }))
1831
+ }),
1832
+ z.object({
1833
+ platform: z.literal("facebook_page"),
1834
+ post_type: z.enum([
1835
+ "text",
1836
+ "single_image",
1837
+ "multi_image",
1838
+ "reel"
1839
+ ]),
1840
+ settings: z.object({
1841
+ link: z.url().optional()
1842
+ }),
1843
+ id: z.string(),
1844
+ object: z.literal("post_variant"),
1845
+ connection_id: z.string().nullable(),
1846
+ body: z.string().nullable(),
1847
+ status: z.enum([
1848
+ "draft",
1849
+ "scheduled",
1850
+ "publishing",
1851
+ "published",
1852
+ "failed"
1853
+ ]),
1854
+ schedule_at: z.string().nullable(),
1855
+ result: z.object({
1856
+ platform_post_id: z.string(),
1857
+ permalink: z.string().nullable(),
1858
+ published_at: z.string()
1859
+ }).nullable(),
1860
+ error: z.object({
1861
+ code: z.string(),
1862
+ message: z.string(),
1863
+ display_error: z.string()
1864
+ }).nullable(),
1865
+ media: z.array(z.object({
1866
+ media_id: z.string(),
1867
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
1868
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
1869
+ alt_text_override: z.string().nullable()
1870
+ }))
1871
+ }),
1872
+ z.object({
1873
+ platform: z.literal("instagram"),
1874
+ post_type: z.enum([
1875
+ "single_image",
1876
+ "carousel",
1877
+ "reel"
1878
+ ]),
1879
+ settings: z.object({
1880
+ media_type: z.enum([
1881
+ "IMAGE",
1882
+ "CAROUSEL",
1883
+ "REELS"
1884
+ ]).optional(),
1885
+ location_id: z.string().optional(),
1886
+ user_tags: z.array(z.object({
1887
+ username: z.string().min(1),
1888
+ x: z.number().gte(0).lte(1),
1889
+ y: z.number().gte(0).lte(1)
1890
+ })).optional(),
1891
+ collaborators: z.array(z.string().min(1)).max(3).optional(),
1892
+ share_to_feed: z.boolean().optional(),
1893
+ thumb_offset: z.int().gte(0).lte(9007199254740991).optional(),
1894
+ cover_url: z.url().optional(),
1895
+ audio_name: z.string().optional()
1896
+ }),
1897
+ id: z.string(),
1898
+ object: z.literal("post_variant"),
1899
+ connection_id: z.string().nullable(),
1900
+ body: z.string().nullable(),
1901
+ status: z.enum([
1902
+ "draft",
1903
+ "scheduled",
1904
+ "publishing",
1905
+ "published",
1906
+ "failed"
1907
+ ]),
1908
+ schedule_at: z.string().nullable(),
1909
+ result: z.object({
1910
+ platform_post_id: z.string(),
1911
+ permalink: z.string().nullable(),
1912
+ published_at: z.string()
1913
+ }).nullable(),
1914
+ error: z.object({
1915
+ code: z.string(),
1916
+ message: z.string(),
1917
+ display_error: z.string()
1918
+ }).nullable(),
1919
+ media: z.array(z.object({
1920
+ media_id: z.string(),
1921
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
1922
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
1923
+ alt_text_override: z.string().nullable()
1924
+ }))
1925
+ }),
1926
+ z.object({
1927
+ platform: z.literal("tiktok"),
1928
+ post_type: z.enum([
1929
+ "video",
1930
+ "single_image",
1931
+ "carousel"
1932
+ ]),
1933
+ settings: z.object({
1934
+ privacy_level: z.enum([
1935
+ "PUBLIC_TO_EVERYONE",
1936
+ "MUTUAL_FOLLOW_FRIENDS",
1937
+ "FOLLOWER_OF_CREATOR",
1938
+ "SELF_ONLY"
1939
+ ]).optional(),
1940
+ disable_comment: z.boolean().optional(),
1941
+ disable_duet: z.boolean().optional(),
1942
+ disable_stitch: z.boolean().optional(),
1943
+ video_cover_timestamp_ms: z.int().gte(0).lte(9007199254740991).optional(),
1944
+ photo_cover_index: z.int().gte(0).lte(9007199254740991).optional(),
1945
+ auto_add_music: z.boolean().optional(),
1946
+ brand_content_toggle: z.boolean().optional(),
1947
+ brand_organic_toggle: z.boolean().optional(),
1948
+ is_aigc: z.boolean().optional()
1949
+ }),
1950
+ id: z.string(),
1951
+ object: z.literal("post_variant"),
1952
+ connection_id: z.string().nullable(),
1953
+ body: z.string().nullable(),
1954
+ status: z.enum([
1955
+ "draft",
1956
+ "scheduled",
1957
+ "publishing",
1958
+ "published",
1959
+ "failed"
1960
+ ]),
1961
+ schedule_at: z.string().nullable(),
1962
+ result: z.object({
1963
+ platform_post_id: z.string(),
1964
+ permalink: z.string().nullable(),
1965
+ published_at: z.string()
1966
+ }).nullable(),
1967
+ error: z.object({
1968
+ code: z.string(),
1969
+ message: z.string(),
1970
+ display_error: z.string()
1971
+ }).nullable(),
1972
+ media: z.array(z.object({
1973
+ media_id: z.string(),
1974
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
1975
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
1976
+ alt_text_override: z.string().nullable()
1977
+ }))
1978
+ })
1979
+ ])),
1980
+ created_at: z.string(),
1981
+ updated_at: z.string(),
1982
+ dry_run: z.boolean(),
1983
+ executed: z.boolean()
1984
+ });
1985
+ var zPostsDeletePath = z.object({
1986
+ id: z.string()
1987
+ });
1988
+ var zPostsDeleteResponse = z.object({
1989
+ id: z.string(),
1990
+ object: z.literal("post"),
1991
+ deleted: z.literal(true)
1992
+ });
1993
+ var zPostsGetPath = z.object({
1994
+ id: z.string()
1995
+ });
1996
+ var zPostsGetResponse = z.object({
1997
+ id: z.string(),
1998
+ object: z.literal("post"),
1999
+ profile_id: z.string(),
2000
+ external_id: z.string().nullable(),
2001
+ status: z.enum([
2002
+ "draft",
2003
+ "scheduled",
2004
+ "publishing",
2005
+ "partially_published",
2006
+ "published",
2007
+ "failed"
2008
+ ]),
2009
+ schedule_at: z.string().nullable(),
2010
+ tags: z.array(z.string()),
2011
+ notes: z.string().nullable(),
2012
+ metadata: z.record(z.string(), z.union([
2013
+ z.string().max(500),
2014
+ z.number(),
2015
+ z.boolean()
2016
+ ])),
2017
+ variants: z.array(z.union([
2018
+ z.object({
2019
+ platform: z.literal("x"),
2020
+ post_type: z.enum([
2021
+ "text",
2022
+ "single_image",
2023
+ "multi_image",
2024
+ "video"
2025
+ ]),
2026
+ settings: z.object({
2027
+ reply_settings: z.enum([
2028
+ "everyone",
2029
+ "following",
2030
+ "mentionedUsers",
2031
+ "subscribers",
2032
+ "verified"
2033
+ ]).optional(),
2034
+ quote_tweet_id: z.string().regex(/^[0-9]{1,19}$/).optional(),
2035
+ poll: z.object({
2036
+ options: z.array(z.string().min(1).max(25)).min(2).max(4),
2037
+ duration_minutes: z.int().gte(5).lte(10080),
2038
+ reply_settings: z.enum([
2039
+ "following",
2040
+ "mentionedUsers",
2041
+ "subscribers",
2042
+ "verified"
2043
+ ]).optional()
2044
+ }).optional(),
2045
+ reply: z.object({
2046
+ in_reply_to_tweet_id: z.string().regex(/^[0-9]{1,19}$/),
2047
+ exclude_reply_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).optional(),
2048
+ auto_populate_reply_metadata: z.boolean().optional()
2049
+ }).optional(),
2050
+ community_id: z.string().regex(/^[0-9]{1,19}$/).optional(),
2051
+ for_super_followers_only: z.boolean().optional(),
2052
+ geo: z.object({
2053
+ place_id: z.string()
2054
+ }).optional(),
2055
+ card_uri: z.string().optional(),
2056
+ media_tagged_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
2057
+ }),
1163
2058
  id: z.string(),
1164
2059
  object: z.literal("post_variant"),
1165
2060
  connection_id: z.string().nullable(),
1166
- platform: z.enum([
1167
- "x",
1168
- "linkedin",
1169
- "facebook_page",
1170
- "instagram",
1171
- "tiktok"
2061
+ body: z.string().nullable(),
2062
+ status: z.enum([
2063
+ "draft",
2064
+ "scheduled",
2065
+ "publishing",
2066
+ "published",
2067
+ "failed"
2068
+ ]),
2069
+ schedule_at: z.string().nullable(),
2070
+ result: z.object({
2071
+ platform_post_id: z.string(),
2072
+ permalink: z.string().nullable(),
2073
+ published_at: z.string()
2074
+ }).nullable(),
2075
+ error: z.object({
2076
+ code: z.string(),
2077
+ message: z.string(),
2078
+ display_error: z.string()
2079
+ }).nullable(),
2080
+ media: z.array(z.object({
2081
+ media_id: z.string(),
2082
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
2083
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
2084
+ alt_text_override: z.string().nullable()
2085
+ }))
2086
+ }),
2087
+ z.object({
2088
+ platform: z.literal("linkedin"),
2089
+ post_type: z.enum([
2090
+ "text",
2091
+ "single_image",
2092
+ "multi_image",
2093
+ "video"
2094
+ ]),
2095
+ settings: z.object({
2096
+ visibility: z.enum(["PUBLIC", "CONNECTIONS"]),
2097
+ content_kind: z.enum([
2098
+ "text",
2099
+ "single_image",
2100
+ "video",
2101
+ "multi_image",
2102
+ "document",
2103
+ "article",
2104
+ "poll"
2105
+ ]),
2106
+ article: z.object({
2107
+ source: z.url(),
2108
+ title: z.string().max(400).optional(),
2109
+ description: z.string().max(4086).optional(),
2110
+ thumbnail_media_id: z.string().optional()
2111
+ }).optional(),
2112
+ poll: z.object({
2113
+ question: z.string().min(1).max(140),
2114
+ options: z.array(z.string().min(1).max(30)).min(2).max(4),
2115
+ duration: z.enum([
2116
+ "ONE_DAY",
2117
+ "THREE_DAYS",
2118
+ "SEVEN_DAYS",
2119
+ "FOURTEEN_DAYS"
2120
+ ])
2121
+ }).optional(),
2122
+ document: z.object({
2123
+ title: z.string().min(1).max(400)
2124
+ }).optional(),
2125
+ disable_reshare: z.boolean().optional(),
2126
+ mentions: z.array(z.object({
2127
+ type: z.enum(["person", "organization"]),
2128
+ name: z.string().min(1),
2129
+ urn: z.string().regex(/^urn:li:(person|organization):/)
2130
+ })).optional()
2131
+ }),
2132
+ id: z.string(),
2133
+ object: z.literal("post_variant"),
2134
+ connection_id: z.string().nullable(),
2135
+ body: z.string().nullable(),
2136
+ status: z.enum([
2137
+ "draft",
2138
+ "scheduled",
2139
+ "publishing",
2140
+ "published",
2141
+ "failed"
2142
+ ]),
2143
+ schedule_at: z.string().nullable(),
2144
+ result: z.object({
2145
+ platform_post_id: z.string(),
2146
+ permalink: z.string().nullable(),
2147
+ published_at: z.string()
2148
+ }).nullable(),
2149
+ error: z.object({
2150
+ code: z.string(),
2151
+ message: z.string(),
2152
+ display_error: z.string()
2153
+ }).nullable(),
2154
+ media: z.array(z.object({
2155
+ media_id: z.string(),
2156
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
2157
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
2158
+ alt_text_override: z.string().nullable()
2159
+ }))
2160
+ }),
2161
+ z.object({
2162
+ platform: z.literal("facebook_page"),
2163
+ post_type: z.enum([
2164
+ "text",
2165
+ "single_image",
2166
+ "multi_image",
2167
+ "reel"
2168
+ ]),
2169
+ settings: z.object({
2170
+ link: z.url().optional()
2171
+ }),
2172
+ id: z.string(),
2173
+ object: z.literal("post_variant"),
2174
+ connection_id: z.string().nullable(),
2175
+ body: z.string().nullable(),
2176
+ status: z.enum([
2177
+ "draft",
2178
+ "scheduled",
2179
+ "publishing",
2180
+ "published",
2181
+ "failed"
2182
+ ]),
2183
+ schedule_at: z.string().nullable(),
2184
+ result: z.object({
2185
+ platform_post_id: z.string(),
2186
+ permalink: z.string().nullable(),
2187
+ published_at: z.string()
2188
+ }).nullable(),
2189
+ error: z.object({
2190
+ code: z.string(),
2191
+ message: z.string(),
2192
+ display_error: z.string()
2193
+ }).nullable(),
2194
+ media: z.array(z.object({
2195
+ media_id: z.string(),
2196
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
2197
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
2198
+ alt_text_override: z.string().nullable()
2199
+ }))
2200
+ }),
2201
+ z.object({
2202
+ platform: z.literal("instagram"),
2203
+ post_type: z.enum([
2204
+ "single_image",
2205
+ "carousel",
2206
+ "reel"
2207
+ ]),
2208
+ settings: z.object({
2209
+ media_type: z.enum([
2210
+ "IMAGE",
2211
+ "CAROUSEL",
2212
+ "REELS"
2213
+ ]).optional(),
2214
+ location_id: z.string().optional(),
2215
+ user_tags: z.array(z.object({
2216
+ username: z.string().min(1),
2217
+ x: z.number().gte(0).lte(1),
2218
+ y: z.number().gte(0).lte(1)
2219
+ })).optional(),
2220
+ collaborators: z.array(z.string().min(1)).max(3).optional(),
2221
+ share_to_feed: z.boolean().optional(),
2222
+ thumb_offset: z.int().gte(0).lte(9007199254740991).optional(),
2223
+ cover_url: z.url().optional(),
2224
+ audio_name: z.string().optional()
2225
+ }),
2226
+ id: z.string(),
2227
+ object: z.literal("post_variant"),
2228
+ connection_id: z.string().nullable(),
2229
+ body: z.string().nullable(),
2230
+ status: z.enum([
2231
+ "draft",
2232
+ "scheduled",
2233
+ "publishing",
2234
+ "published",
2235
+ "failed"
1172
2236
  ]),
2237
+ schedule_at: z.string().nullable(),
2238
+ result: z.object({
2239
+ platform_post_id: z.string(),
2240
+ permalink: z.string().nullable(),
2241
+ published_at: z.string()
2242
+ }).nullable(),
2243
+ error: z.object({
2244
+ code: z.string(),
2245
+ message: z.string(),
2246
+ display_error: z.string()
2247
+ }).nullable(),
2248
+ media: z.array(z.object({
2249
+ media_id: z.string(),
2250
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
2251
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
2252
+ alt_text_override: z.string().nullable()
2253
+ }))
2254
+ }),
2255
+ z.object({
2256
+ platform: z.literal("tiktok"),
1173
2257
  post_type: z.enum([
1174
- "text",
1175
- "single_image",
1176
- "multi_image",
1177
2258
  "video",
1178
- "reel",
2259
+ "single_image",
1179
2260
  "carousel"
1180
2261
  ]),
2262
+ settings: z.object({
2263
+ privacy_level: z.enum([
2264
+ "PUBLIC_TO_EVERYONE",
2265
+ "MUTUAL_FOLLOW_FRIENDS",
2266
+ "FOLLOWER_OF_CREATOR",
2267
+ "SELF_ONLY"
2268
+ ]).optional(),
2269
+ disable_comment: z.boolean().optional(),
2270
+ disable_duet: z.boolean().optional(),
2271
+ disable_stitch: z.boolean().optional(),
2272
+ video_cover_timestamp_ms: z.int().gte(0).lte(9007199254740991).optional(),
2273
+ photo_cover_index: z.int().gte(0).lte(9007199254740991).optional(),
2274
+ auto_add_music: z.boolean().optional(),
2275
+ brand_content_toggle: z.boolean().optional(),
2276
+ brand_organic_toggle: z.boolean().optional(),
2277
+ is_aigc: z.boolean().optional()
2278
+ }),
2279
+ id: z.string(),
2280
+ object: z.literal("post_variant"),
2281
+ connection_id: z.string().nullable(),
1181
2282
  body: z.string().nullable(),
1182
2283
  status: z.enum([
1183
2284
  "draft",
@@ -1186,7 +2287,6 @@ var zPostsListResponse = z.object({
1186
2287
  "published",
1187
2288
  "failed"
1188
2289
  ]),
1189
- settings: z.record(z.string(), z.unknown()),
1190
2290
  schedule_at: z.string().nullable(),
1191
2291
  result: z.object({
1192
2292
  platform_post_id: z.string(),
@@ -1204,31 +2304,26 @@ var zPostsListResponse = z.object({
1204
2304
  crop_box: z.record(z.string(), z.unknown()).nullable(),
1205
2305
  alt_text_override: z.string().nullable()
1206
2306
  }))
1207
- })),
1208
- created_at: z.string(),
1209
- updated_at: z.string()
1210
- })),
1211
- total: z.int().gte(-9007199254740991).lte(9007199254740991),
1212
- limit: z.int().gte(-9007199254740991).lte(9007199254740991),
1213
- offset: z.int().gte(-9007199254740991).lte(9007199254740991),
1214
- has_more: z.boolean()
2307
+ })
2308
+ ])),
2309
+ created_at: z.string(),
2310
+ updated_at: z.string()
1215
2311
  });
1216
- var zPostsCreateBody = z.object({
1217
- profile_id: z.string(),
2312
+ var zPostsUpdateBody = z.object({
1218
2313
  publish: z.enum([
1219
2314
  "now",
1220
2315
  "schedule",
1221
2316
  "draft"
1222
- ]).optional().default("draft"),
1223
- schedule_at: z.iso.datetime().optional(),
1224
- external_id: z.string().min(1).max(255).optional(),
2317
+ ]).optional(),
2318
+ schedule_at: z.iso.datetime().nullish(),
2319
+ external_id: z.string().min(1).max(255).nullish(),
1225
2320
  metadata: z.record(z.string(), z.union([
1226
2321
  z.string().max(500),
1227
2322
  z.number(),
1228
2323
  z.boolean()
1229
2324
  ])).optional(),
1230
2325
  tags: z.array(z.string()).optional(),
1231
- notes: z.string().optional(),
2326
+ notes: z.string().nullish(),
1232
2327
  dry_run: z.boolean().optional().default(false),
1233
2328
  variants: z.array(z.union([
1234
2329
  z.object({
@@ -1239,13 +2334,6 @@ var zPostsCreateBody = z.object({
1239
2334
  "multi_image",
1240
2335
  "video"
1241
2336
  ]),
1242
- connection_id: z.string(),
1243
- body: z.string().optional(),
1244
- media: z.array(z.object({
1245
- media_id: z.string(),
1246
- crop_box: z.record(z.string(), z.unknown()).nullish(),
1247
- alt_text_override: z.string().nullish()
1248
- })).optional().default([]),
1249
2337
  settings: z.object({
1250
2338
  reply_settings: z.enum([
1251
2339
  "everyone",
@@ -1277,7 +2365,14 @@ var zPostsCreateBody = z.object({
1277
2365
  }).optional(),
1278
2366
  card_uri: z.string().optional(),
1279
2367
  media_tagged_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
1280
- }).optional().default({})
2368
+ }).optional().default({}),
2369
+ connection_id: z.string(),
2370
+ body: z.string().optional(),
2371
+ media: z.array(z.object({
2372
+ media_id: z.string(),
2373
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
2374
+ alt_text_override: z.string().nullish()
2375
+ })).optional().default([])
1281
2376
  }),
1282
2377
  z.object({
1283
2378
  platform: z.literal("linkedin"),
@@ -1287,13 +2382,6 @@ var zPostsCreateBody = z.object({
1287
2382
  "multi_image",
1288
2383
  "video"
1289
2384
  ]),
1290
- connection_id: z.string(),
1291
- body: z.string().optional(),
1292
- media: z.array(z.object({
1293
- media_id: z.string(),
1294
- crop_box: z.record(z.string(), z.unknown()).nullish(),
1295
- alt_text_override: z.string().nullish()
1296
- })).optional().default([]),
1297
2385
  settings: z.object({
1298
2386
  visibility: z.enum(["PUBLIC", "CONNECTIONS"]),
1299
2387
  content_kind: z.enum([
@@ -1330,7 +2418,14 @@ var zPostsCreateBody = z.object({
1330
2418
  name: z.string().min(1),
1331
2419
  urn: z.string().regex(/^urn:li:(person|organization):/)
1332
2420
  })).optional()
1333
- })
2421
+ }),
2422
+ connection_id: z.string(),
2423
+ body: z.string().optional(),
2424
+ media: z.array(z.object({
2425
+ media_id: z.string(),
2426
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
2427
+ alt_text_override: z.string().nullish()
2428
+ })).optional().default([])
1334
2429
  }),
1335
2430
  z.object({
1336
2431
  platform: z.literal("instagram"),
@@ -1339,13 +2434,6 @@ var zPostsCreateBody = z.object({
1339
2434
  "carousel",
1340
2435
  "reel"
1341
2436
  ]),
1342
- connection_id: z.string(),
1343
- body: z.string().optional(),
1344
- media: z.array(z.object({
1345
- media_id: z.string(),
1346
- crop_box: z.record(z.string(), z.unknown()).nullish(),
1347
- alt_text_override: z.string().nullish()
1348
- })).optional().default([]),
1349
2437
  settings: z.object({
1350
2438
  media_type: z.enum([
1351
2439
  "IMAGE",
@@ -1363,7 +2451,14 @@ var zPostsCreateBody = z.object({
1363
2451
  thumb_offset: z.int().gte(0).lte(9007199254740991).optional(),
1364
2452
  cover_url: z.url().optional(),
1365
2453
  audio_name: z.string().optional()
1366
- })
2454
+ }),
2455
+ connection_id: z.string(),
2456
+ body: z.string().optional(),
2457
+ media: z.array(z.object({
2458
+ media_id: z.string(),
2459
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
2460
+ alt_text_override: z.string().nullish()
2461
+ })).optional().default([])
1367
2462
  }),
1368
2463
  z.object({
1369
2464
  platform: z.literal("facebook_page"),
@@ -1373,16 +2468,16 @@ var zPostsCreateBody = z.object({
1373
2468
  "multi_image",
1374
2469
  "reel"
1375
2470
  ]),
2471
+ settings: z.object({
2472
+ link: z.url().optional()
2473
+ }).optional().default({}),
1376
2474
  connection_id: z.string(),
1377
2475
  body: z.string().optional(),
1378
2476
  media: z.array(z.object({
1379
2477
  media_id: z.string(),
1380
2478
  crop_box: z.record(z.string(), z.unknown()).nullish(),
1381
2479
  alt_text_override: z.string().nullish()
1382
- })).optional().default([]),
1383
- settings: z.object({
1384
- link: z.url().optional()
1385
- }).optional().default({})
2480
+ })).optional().default([])
1386
2481
  }),
1387
2482
  z.object({
1388
2483
  platform: z.literal("tiktok"),
@@ -1391,13 +2486,6 @@ var zPostsCreateBody = z.object({
1391
2486
  "single_image",
1392
2487
  "carousel"
1393
2488
  ]),
1394
- connection_id: z.string(),
1395
- body: z.string().optional(),
1396
- media: z.array(z.object({
1397
- media_id: z.string(),
1398
- crop_box: z.record(z.string(), z.unknown()).nullish(),
1399
- alt_text_override: z.string().nullish()
1400
- })).optional().default([]),
1401
2489
  settings: z.object({
1402
2490
  privacy_level: z.enum([
1403
2491
  "PUBLIC_TO_EVERYONE",
@@ -1414,94 +2502,21 @@ var zPostsCreateBody = z.object({
1414
2502
  brand_content_toggle: z.boolean().optional(),
1415
2503
  brand_organic_toggle: z.boolean().optional(),
1416
2504
  is_aigc: z.boolean().optional()
1417
- }).optional().default({})
2505
+ }).optional().default({}),
2506
+ connection_id: z.string(),
2507
+ body: z.string().optional(),
2508
+ media: z.array(z.object({
2509
+ media_id: z.string(),
2510
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
2511
+ alt_text_override: z.string().nullish()
2512
+ })).optional().default([])
1418
2513
  })
1419
- ])).min(1)
1420
- });
1421
- var zPostsCreateResponse = z.object({
1422
- id: z.string(),
1423
- object: z.literal("post"),
1424
- profile_id: z.string(),
1425
- external_id: z.string().nullable(),
1426
- status: z.enum([
1427
- "draft",
1428
- "scheduled",
1429
- "publishing",
1430
- "partially_published",
1431
- "published",
1432
- "failed"
1433
- ]),
1434
- schedule_at: z.string().nullable(),
1435
- tags: z.array(z.string()),
1436
- notes: z.string().nullable(),
1437
- metadata: z.record(z.string(), z.union([
1438
- z.string().max(500),
1439
- z.number(),
1440
- z.boolean()
1441
- ])),
1442
- variants: z.array(z.object({
1443
- id: z.string(),
1444
- object: z.literal("post_variant"),
1445
- connection_id: z.string().nullable(),
1446
- platform: z.enum([
1447
- "x",
1448
- "linkedin",
1449
- "facebook_page",
1450
- "instagram",
1451
- "tiktok"
1452
- ]),
1453
- post_type: z.enum([
1454
- "text",
1455
- "single_image",
1456
- "multi_image",
1457
- "video",
1458
- "reel",
1459
- "carousel"
1460
- ]),
1461
- body: z.string().nullable(),
1462
- status: z.enum([
1463
- "draft",
1464
- "scheduled",
1465
- "publishing",
1466
- "published",
1467
- "failed"
1468
- ]),
1469
- settings: z.record(z.string(), z.unknown()),
1470
- schedule_at: z.string().nullable(),
1471
- result: z.object({
1472
- platform_post_id: z.string(),
1473
- permalink: z.string().nullable(),
1474
- published_at: z.string()
1475
- }).nullable(),
1476
- error: z.object({
1477
- code: z.string(),
1478
- message: z.string(),
1479
- display_error: z.string()
1480
- }).nullable(),
1481
- media: z.array(z.object({
1482
- media_id: z.string(),
1483
- position: z.int().gte(-9007199254740991).lte(9007199254740991),
1484
- crop_box: z.record(z.string(), z.unknown()).nullable(),
1485
- alt_text_override: z.string().nullable()
1486
- }))
1487
- })),
1488
- created_at: z.string(),
1489
- updated_at: z.string(),
1490
- dry_run: z.boolean(),
1491
- executed: z.boolean()
1492
- });
1493
- var zPostsDeletePath = z.object({
1494
- id: z.string()
1495
- });
1496
- var zPostsDeleteResponse = z.object({
1497
- id: z.string(),
1498
- object: z.literal("post"),
1499
- deleted: z.literal(true)
2514
+ ])).min(1).optional()
1500
2515
  });
1501
- var zPostsGetPath = z.object({
2516
+ var zPostsUpdatePath = z.object({
1502
2517
  id: z.string()
1503
2518
  });
1504
- var zPostsGetResponse = z.object({
2519
+ var zPostsUpdateResponse = z.object({
1505
2520
  id: z.string(),
1506
2521
  object: z.literal("post"),
1507
2522
  profile_id: z.string(),
@@ -1522,71 +2537,6 @@ var zPostsGetResponse = z.object({
1522
2537
  z.number(),
1523
2538
  z.boolean()
1524
2539
  ])),
1525
- variants: z.array(z.object({
1526
- id: z.string(),
1527
- object: z.literal("post_variant"),
1528
- connection_id: z.string().nullable(),
1529
- platform: z.enum([
1530
- "x",
1531
- "linkedin",
1532
- "facebook_page",
1533
- "instagram",
1534
- "tiktok"
1535
- ]),
1536
- post_type: z.enum([
1537
- "text",
1538
- "single_image",
1539
- "multi_image",
1540
- "video",
1541
- "reel",
1542
- "carousel"
1543
- ]),
1544
- body: z.string().nullable(),
1545
- status: z.enum([
1546
- "draft",
1547
- "scheduled",
1548
- "publishing",
1549
- "published",
1550
- "failed"
1551
- ]),
1552
- settings: z.record(z.string(), z.unknown()),
1553
- schedule_at: z.string().nullable(),
1554
- result: z.object({
1555
- platform_post_id: z.string(),
1556
- permalink: z.string().nullable(),
1557
- published_at: z.string()
1558
- }).nullable(),
1559
- error: z.object({
1560
- code: z.string(),
1561
- message: z.string(),
1562
- display_error: z.string()
1563
- }).nullable(),
1564
- media: z.array(z.object({
1565
- media_id: z.string(),
1566
- position: z.int().gte(-9007199254740991).lte(9007199254740991),
1567
- crop_box: z.record(z.string(), z.unknown()).nullable(),
1568
- alt_text_override: z.string().nullable()
1569
- }))
1570
- })),
1571
- created_at: z.string(),
1572
- updated_at: z.string()
1573
- });
1574
- var zPostsUpdateBody = z.object({
1575
- publish: z.enum([
1576
- "now",
1577
- "schedule",
1578
- "draft"
1579
- ]).optional(),
1580
- schedule_at: z.iso.datetime().nullish(),
1581
- external_id: z.string().min(1).max(255).nullish(),
1582
- metadata: z.record(z.string(), z.union([
1583
- z.string().max(500),
1584
- z.number(),
1585
- z.boolean()
1586
- ])).optional(),
1587
- tags: z.array(z.string()).optional(),
1588
- notes: z.string().nullish(),
1589
- dry_run: z.boolean().optional().default(false),
1590
2540
  variants: z.array(z.union([
1591
2541
  z.object({
1592
2542
  platform: z.literal("x"),
@@ -1596,13 +2546,6 @@ var zPostsUpdateBody = z.object({
1596
2546
  "multi_image",
1597
2547
  "video"
1598
2548
  ]),
1599
- connection_id: z.string(),
1600
- body: z.string().optional(),
1601
- media: z.array(z.object({
1602
- media_id: z.string(),
1603
- crop_box: z.record(z.string(), z.unknown()).nullish(),
1604
- alt_text_override: z.string().nullish()
1605
- })).optional().default([]),
1606
2549
  settings: z.object({
1607
2550
  reply_settings: z.enum([
1608
2551
  "everyone",
@@ -1634,7 +2577,35 @@ var zPostsUpdateBody = z.object({
1634
2577
  }).optional(),
1635
2578
  card_uri: z.string().optional(),
1636
2579
  media_tagged_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
1637
- }).optional().default({})
2580
+ }),
2581
+ id: z.string(),
2582
+ object: z.literal("post_variant"),
2583
+ connection_id: z.string().nullable(),
2584
+ body: z.string().nullable(),
2585
+ status: z.enum([
2586
+ "draft",
2587
+ "scheduled",
2588
+ "publishing",
2589
+ "published",
2590
+ "failed"
2591
+ ]),
2592
+ schedule_at: z.string().nullable(),
2593
+ result: z.object({
2594
+ platform_post_id: z.string(),
2595
+ permalink: z.string().nullable(),
2596
+ published_at: z.string()
2597
+ }).nullable(),
2598
+ error: z.object({
2599
+ code: z.string(),
2600
+ message: z.string(),
2601
+ display_error: z.string()
2602
+ }).nullable(),
2603
+ media: z.array(z.object({
2604
+ media_id: z.string(),
2605
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
2606
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
2607
+ alt_text_override: z.string().nullable()
2608
+ }))
1638
2609
  }),
1639
2610
  z.object({
1640
2611
  platform: z.literal("linkedin"),
@@ -1642,15 +2613,8 @@ var zPostsUpdateBody = z.object({
1642
2613
  "text",
1643
2614
  "single_image",
1644
2615
  "multi_image",
1645
- "video"
1646
- ]),
1647
- connection_id: z.string(),
1648
- body: z.string().optional(),
1649
- media: z.array(z.object({
1650
- media_id: z.string(),
1651
- crop_box: z.record(z.string(), z.unknown()).nullish(),
1652
- alt_text_override: z.string().nullish()
1653
- })).optional().default([]),
2616
+ "video"
2617
+ ]),
1654
2618
  settings: z.object({
1655
2619
  visibility: z.enum(["PUBLIC", "CONNECTIONS"]),
1656
2620
  content_kind: z.enum([
@@ -1687,22 +2651,83 @@ var zPostsUpdateBody = z.object({
1687
2651
  name: z.string().min(1),
1688
2652
  urn: z.string().regex(/^urn:li:(person|organization):/)
1689
2653
  })).optional()
1690
- })
2654
+ }),
2655
+ id: z.string(),
2656
+ object: z.literal("post_variant"),
2657
+ connection_id: z.string().nullable(),
2658
+ body: z.string().nullable(),
2659
+ status: z.enum([
2660
+ "draft",
2661
+ "scheduled",
2662
+ "publishing",
2663
+ "published",
2664
+ "failed"
2665
+ ]),
2666
+ schedule_at: z.string().nullable(),
2667
+ result: z.object({
2668
+ platform_post_id: z.string(),
2669
+ permalink: z.string().nullable(),
2670
+ published_at: z.string()
2671
+ }).nullable(),
2672
+ error: z.object({
2673
+ code: z.string(),
2674
+ message: z.string(),
2675
+ display_error: z.string()
2676
+ }).nullable(),
2677
+ media: z.array(z.object({
2678
+ media_id: z.string(),
2679
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
2680
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
2681
+ alt_text_override: z.string().nullable()
2682
+ }))
1691
2683
  }),
1692
2684
  z.object({
1693
- platform: z.literal("instagram"),
2685
+ platform: z.literal("facebook_page"),
1694
2686
  post_type: z.enum([
2687
+ "text",
1695
2688
  "single_image",
1696
- "carousel",
2689
+ "multi_image",
1697
2690
  "reel"
1698
2691
  ]),
1699
- connection_id: z.string(),
1700
- body: z.string().optional(),
2692
+ settings: z.object({
2693
+ link: z.url().optional()
2694
+ }),
2695
+ id: z.string(),
2696
+ object: z.literal("post_variant"),
2697
+ connection_id: z.string().nullable(),
2698
+ body: z.string().nullable(),
2699
+ status: z.enum([
2700
+ "draft",
2701
+ "scheduled",
2702
+ "publishing",
2703
+ "published",
2704
+ "failed"
2705
+ ]),
2706
+ schedule_at: z.string().nullable(),
2707
+ result: z.object({
2708
+ platform_post_id: z.string(),
2709
+ permalink: z.string().nullable(),
2710
+ published_at: z.string()
2711
+ }).nullable(),
2712
+ error: z.object({
2713
+ code: z.string(),
2714
+ message: z.string(),
2715
+ display_error: z.string()
2716
+ }).nullable(),
1701
2717
  media: z.array(z.object({
1702
2718
  media_id: z.string(),
1703
- crop_box: z.record(z.string(), z.unknown()).nullish(),
1704
- alt_text_override: z.string().nullish()
1705
- })).optional().default([]),
2719
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
2720
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
2721
+ alt_text_override: z.string().nullable()
2722
+ }))
2723
+ }),
2724
+ z.object({
2725
+ platform: z.literal("instagram"),
2726
+ post_type: z.enum([
2727
+ "single_image",
2728
+ "carousel",
2729
+ "reel"
2730
+ ]),
1706
2731
  settings: z.object({
1707
2732
  media_type: z.enum([
1708
2733
  "IMAGE",
@@ -1720,26 +2745,35 @@ var zPostsUpdateBody = z.object({
1720
2745
  thumb_offset: z.int().gte(0).lte(9007199254740991).optional(),
1721
2746
  cover_url: z.url().optional(),
1722
2747
  audio_name: z.string().optional()
1723
- })
1724
- }),
1725
- z.object({
1726
- platform: z.literal("facebook_page"),
1727
- post_type: z.enum([
1728
- "text",
1729
- "single_image",
1730
- "multi_image",
1731
- "reel"
2748
+ }),
2749
+ id: z.string(),
2750
+ object: z.literal("post_variant"),
2751
+ connection_id: z.string().nullable(),
2752
+ body: z.string().nullable(),
2753
+ status: z.enum([
2754
+ "draft",
2755
+ "scheduled",
2756
+ "publishing",
2757
+ "published",
2758
+ "failed"
1732
2759
  ]),
1733
- connection_id: z.string(),
1734
- body: z.string().optional(),
2760
+ schedule_at: z.string().nullable(),
2761
+ result: z.object({
2762
+ platform_post_id: z.string(),
2763
+ permalink: z.string().nullable(),
2764
+ published_at: z.string()
2765
+ }).nullable(),
2766
+ error: z.object({
2767
+ code: z.string(),
2768
+ message: z.string(),
2769
+ display_error: z.string()
2770
+ }).nullable(),
1735
2771
  media: z.array(z.object({
1736
2772
  media_id: z.string(),
1737
- crop_box: z.record(z.string(), z.unknown()).nullish(),
1738
- alt_text_override: z.string().nullish()
1739
- })).optional().default([]),
1740
- settings: z.object({
1741
- link: z.url().optional()
1742
- }).optional().default({})
2773
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
2774
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
2775
+ alt_text_override: z.string().nullable()
2776
+ }))
1743
2777
  }),
1744
2778
  z.object({
1745
2779
  platform: z.literal("tiktok"),
@@ -1748,13 +2782,6 @@ var zPostsUpdateBody = z.object({
1748
2782
  "single_image",
1749
2783
  "carousel"
1750
2784
  ]),
1751
- connection_id: z.string(),
1752
- body: z.string().optional(),
1753
- media: z.array(z.object({
1754
- media_id: z.string(),
1755
- crop_box: z.record(z.string(), z.unknown()).nullish(),
1756
- alt_text_override: z.string().nullish()
1757
- })).optional().default([]),
1758
2785
  settings: z.object({
1759
2786
  privacy_level: z.enum([
1760
2787
  "PUBLIC_TO_EVERYONE",
@@ -1771,80 +2798,37 @@ var zPostsUpdateBody = z.object({
1771
2798
  brand_content_toggle: z.boolean().optional(),
1772
2799
  brand_organic_toggle: z.boolean().optional(),
1773
2800
  is_aigc: z.boolean().optional()
1774
- }).optional().default({})
2801
+ }),
2802
+ id: z.string(),
2803
+ object: z.literal("post_variant"),
2804
+ connection_id: z.string().nullable(),
2805
+ body: z.string().nullable(),
2806
+ status: z.enum([
2807
+ "draft",
2808
+ "scheduled",
2809
+ "publishing",
2810
+ "published",
2811
+ "failed"
2812
+ ]),
2813
+ schedule_at: z.string().nullable(),
2814
+ result: z.object({
2815
+ platform_post_id: z.string(),
2816
+ permalink: z.string().nullable(),
2817
+ published_at: z.string()
2818
+ }).nullable(),
2819
+ error: z.object({
2820
+ code: z.string(),
2821
+ message: z.string(),
2822
+ display_error: z.string()
2823
+ }).nullable(),
2824
+ media: z.array(z.object({
2825
+ media_id: z.string(),
2826
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
2827
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
2828
+ alt_text_override: z.string().nullable()
2829
+ }))
1775
2830
  })
1776
- ])).min(1).optional()
1777
- });
1778
- var zPostsUpdatePath = z.object({
1779
- id: z.string()
1780
- });
1781
- var zPostsUpdateResponse = z.object({
1782
- id: z.string(),
1783
- object: z.literal("post"),
1784
- profile_id: z.string(),
1785
- external_id: z.string().nullable(),
1786
- status: z.enum([
1787
- "draft",
1788
- "scheduled",
1789
- "publishing",
1790
- "partially_published",
1791
- "published",
1792
- "failed"
1793
- ]),
1794
- schedule_at: z.string().nullable(),
1795
- tags: z.array(z.string()),
1796
- notes: z.string().nullable(),
1797
- metadata: z.record(z.string(), z.union([
1798
- z.string().max(500),
1799
- z.number(),
1800
- z.boolean()
1801
2831
  ])),
1802
- variants: z.array(z.object({
1803
- id: z.string(),
1804
- object: z.literal("post_variant"),
1805
- connection_id: z.string().nullable(),
1806
- platform: z.enum([
1807
- "x",
1808
- "linkedin",
1809
- "facebook_page",
1810
- "instagram",
1811
- "tiktok"
1812
- ]),
1813
- post_type: z.enum([
1814
- "text",
1815
- "single_image",
1816
- "multi_image",
1817
- "video",
1818
- "reel",
1819
- "carousel"
1820
- ]),
1821
- body: z.string().nullable(),
1822
- status: z.enum([
1823
- "draft",
1824
- "scheduled",
1825
- "publishing",
1826
- "published",
1827
- "failed"
1828
- ]),
1829
- settings: z.record(z.string(), z.unknown()),
1830
- schedule_at: z.string().nullable(),
1831
- result: z.object({
1832
- platform_post_id: z.string(),
1833
- permalink: z.string().nullable(),
1834
- published_at: z.string()
1835
- }).nullable(),
1836
- error: z.object({
1837
- code: z.string(),
1838
- message: z.string(),
1839
- display_error: z.string()
1840
- }).nullable(),
1841
- media: z.array(z.object({
1842
- media_id: z.string(),
1843
- position: z.int().gte(-9007199254740991).lte(9007199254740991),
1844
- crop_box: z.record(z.string(), z.unknown()).nullable(),
1845
- alt_text_override: z.string().nullable()
1846
- }))
1847
- })),
1848
2832
  created_at: z.string(),
1849
2833
  updated_at: z.string(),
1850
2834
  dry_run: z.boolean(),
@@ -1861,13 +2845,6 @@ var zPostsValidateBody = z.object({
1861
2845
  "multi_image",
1862
2846
  "video"
1863
2847
  ]),
1864
- connection_id: z.string(),
1865
- body: z.string().optional(),
1866
- media: z.array(z.object({
1867
- media_id: z.string(),
1868
- crop_box: z.record(z.string(), z.unknown()).nullish(),
1869
- alt_text_override: z.string().nullish()
1870
- })).optional().default([]),
1871
2848
  settings: z.object({
1872
2849
  reply_settings: z.enum([
1873
2850
  "everyone",
@@ -1899,7 +2876,14 @@ var zPostsValidateBody = z.object({
1899
2876
  }).optional(),
1900
2877
  card_uri: z.string().optional(),
1901
2878
  media_tagged_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
1902
- }).optional().default({})
2879
+ }).optional().default({}),
2880
+ connection_id: z.string(),
2881
+ body: z.string().optional(),
2882
+ media: z.array(z.object({
2883
+ media_id: z.string(),
2884
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
2885
+ alt_text_override: z.string().nullish()
2886
+ })).optional().default([])
1903
2887
  }),
1904
2888
  z.object({
1905
2889
  platform: z.literal("linkedin"),
@@ -1909,13 +2893,6 @@ var zPostsValidateBody = z.object({
1909
2893
  "multi_image",
1910
2894
  "video"
1911
2895
  ]),
1912
- connection_id: z.string(),
1913
- body: z.string().optional(),
1914
- media: z.array(z.object({
1915
- media_id: z.string(),
1916
- crop_box: z.record(z.string(), z.unknown()).nullish(),
1917
- alt_text_override: z.string().nullish()
1918
- })).optional().default([]),
1919
2896
  settings: z.object({
1920
2897
  visibility: z.enum(["PUBLIC", "CONNECTIONS"]),
1921
2898
  content_kind: z.enum([
@@ -1952,7 +2929,14 @@ var zPostsValidateBody = z.object({
1952
2929
  name: z.string().min(1),
1953
2930
  urn: z.string().regex(/^urn:li:(person|organization):/)
1954
2931
  })).optional()
1955
- })
2932
+ }),
2933
+ connection_id: z.string(),
2934
+ body: z.string().optional(),
2935
+ media: z.array(z.object({
2936
+ media_id: z.string(),
2937
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
2938
+ alt_text_override: z.string().nullish()
2939
+ })).optional().default([])
1956
2940
  }),
1957
2941
  z.object({
1958
2942
  platform: z.literal("instagram"),
@@ -1961,13 +2945,6 @@ var zPostsValidateBody = z.object({
1961
2945
  "carousel",
1962
2946
  "reel"
1963
2947
  ]),
1964
- connection_id: z.string(),
1965
- body: z.string().optional(),
1966
- media: z.array(z.object({
1967
- media_id: z.string(),
1968
- crop_box: z.record(z.string(), z.unknown()).nullish(),
1969
- alt_text_override: z.string().nullish()
1970
- })).optional().default([]),
1971
2948
  settings: z.object({
1972
2949
  media_type: z.enum([
1973
2950
  "IMAGE",
@@ -1985,7 +2962,14 @@ var zPostsValidateBody = z.object({
1985
2962
  thumb_offset: z.int().gte(0).lte(9007199254740991).optional(),
1986
2963
  cover_url: z.url().optional(),
1987
2964
  audio_name: z.string().optional()
1988
- })
2965
+ }),
2966
+ connection_id: z.string(),
2967
+ body: z.string().optional(),
2968
+ media: z.array(z.object({
2969
+ media_id: z.string(),
2970
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
2971
+ alt_text_override: z.string().nullish()
2972
+ })).optional().default([])
1989
2973
  }),
1990
2974
  z.object({
1991
2975
  platform: z.literal("facebook_page"),
@@ -1995,16 +2979,16 @@ var zPostsValidateBody = z.object({
1995
2979
  "multi_image",
1996
2980
  "reel"
1997
2981
  ]),
2982
+ settings: z.object({
2983
+ link: z.url().optional()
2984
+ }).optional().default({}),
1998
2985
  connection_id: z.string(),
1999
2986
  body: z.string().optional(),
2000
2987
  media: z.array(z.object({
2001
2988
  media_id: z.string(),
2002
2989
  crop_box: z.record(z.string(), z.unknown()).nullish(),
2003
2990
  alt_text_override: z.string().nullish()
2004
- })).optional().default([]),
2005
- settings: z.object({
2006
- link: z.url().optional()
2007
- }).optional().default({})
2991
+ })).optional().default([])
2008
2992
  }),
2009
2993
  z.object({
2010
2994
  platform: z.literal("tiktok"),
@@ -2013,13 +2997,6 @@ var zPostsValidateBody = z.object({
2013
2997
  "single_image",
2014
2998
  "carousel"
2015
2999
  ]),
2016
- connection_id: z.string(),
2017
- body: z.string().optional(),
2018
- media: z.array(z.object({
2019
- media_id: z.string(),
2020
- crop_box: z.record(z.string(), z.unknown()).nullish(),
2021
- alt_text_override: z.string().nullish()
2022
- })).optional().default([]),
2023
3000
  settings: z.object({
2024
3001
  privacy_level: z.enum([
2025
3002
  "PUBLIC_TO_EVERYONE",
@@ -2036,7 +3013,14 @@ var zPostsValidateBody = z.object({
2036
3013
  brand_content_toggle: z.boolean().optional(),
2037
3014
  brand_organic_toggle: z.boolean().optional(),
2038
3015
  is_aigc: z.boolean().optional()
2039
- }).optional().default({})
3016
+ }).optional().default({}),
3017
+ connection_id: z.string(),
3018
+ body: z.string().optional(),
3019
+ media: z.array(z.object({
3020
+ media_id: z.string(),
3021
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
3022
+ alt_text_override: z.string().nullish()
3023
+ })).optional().default([])
2040
3024
  })
2041
3025
  ])).min(1)
2042
3026
  });
@@ -3966,5 +4950,5 @@ var zTokensMintResponse = z.object({
3966
4950
  });
3967
4951
 
3968
4952
  export { zConnectionsConnectBody, zConnectionsConnectPath, zConnectionsConnectResponse, zConnectionsDeletePath, zConnectionsDeleteResponse, zConnectionsGetPath, zConnectionsGetResponse, zConnectionsListAccountsPath, zConnectionsListAccountsResponse, zConnectionsListByProfilePath, zConnectionsListByProfileQuery, zConnectionsListByProfileResponse, zConnectionsSelectBody, zConnectionsSelectPath, zConnectionsSelectResponse, zErrorCode, zGoogleCreateAdBody, zGoogleCreateAdGroupBody, zGoogleCreateAdGroupPath, zGoogleCreateAdGroupResponse, zGoogleCreateAdPath, zGoogleCreateAdResponse, zGoogleCreateBudgetBody, zGoogleCreateBudgetPath, zGoogleCreateBudgetResponse, zGoogleCreateCampaignBody, zGoogleCreateCampaignPath, zGoogleCreateCampaignResponse, zGoogleCreateConversionActionBody, zGoogleCreateConversionActionPath, zGoogleCreateConversionActionResponse, zGoogleCreateDisplayAdBody, zGoogleCreateDisplayAdPath, zGoogleCreateDisplayAdResponse, zGoogleCreateKeywordBody, zGoogleCreateKeywordPath, zGoogleCreateKeywordResponse, zGoogleDeleteAdBody, zGoogleDeleteAdGroupBody, zGoogleDeleteAdGroupPath, zGoogleDeleteAdGroupResponse, zGoogleDeleteAdPath, zGoogleDeleteAdResponse, zGoogleDeleteBudgetBody, zGoogleDeleteBudgetPath, zGoogleDeleteBudgetResponse, zGoogleDeleteCampaignBody, zGoogleDeleteCampaignPath, zGoogleDeleteCampaignResponse, zGoogleDeleteKeywordBody, zGoogleDeleteKeywordPath, zGoogleDeleteKeywordResponse, zGoogleEditAdGroupBody, zGoogleEditAdGroupPath, zGoogleEditAdGroupResponse, zGoogleEditBudgetBody, zGoogleEditBudgetPath, zGoogleEditBudgetResponse, zGoogleEditCampaignBody, zGoogleEditCampaignPath, zGoogleEditCampaignResponse, zGoogleEnableAdBody, zGoogleEnableAdGroupBody, zGoogleEnableAdGroupPath, zGoogleEnableAdGroupResponse, zGoogleEnableAdPath, zGoogleEnableAdResponse, zGoogleEnableCampaignBody, zGoogleEnableCampaignPath, zGoogleEnableCampaignResponse, zGoogleEnableKeywordBody, zGoogleEnableKeywordPath, zGoogleEnableKeywordResponse, zGoogleGetAccountPath, zGoogleGetAccountResponse, zGoogleGetAdGroupPath, zGoogleGetAdGroupResponse, zGoogleGetAdPath, zGoogleGetAdResponse, zGoogleGetCampaignPath, zGoogleGetCampaignResponse, zGoogleGetConversionActionPath, zGoogleGetConversionActionResponse, zGoogleGetInsightsBody, zGoogleGetInsightsPath, zGoogleGetInsightsResponse, zGoogleGetKeywordPath, zGoogleGetKeywordResponse, zGoogleListAdGroupsPath, zGoogleListAdGroupsResponse, zGoogleListAdsPath, zGoogleListAdsResponse, zGoogleListCampaignsPath, zGoogleListCampaignsResponse, zGoogleListConversionActionsPath, zGoogleListConversionActionsResponse, zGoogleListConversionGoalsPath, zGoogleListConversionGoalsResponse, zGoogleListKeywordsPath, zGoogleListKeywordsResponse, zGooglePauseAdBody, zGooglePauseAdGroupBody, zGooglePauseAdGroupPath, zGooglePauseAdGroupResponse, zGooglePauseAdPath, zGooglePauseAdResponse, zGooglePauseCampaignBody, zGooglePauseCampaignPath, zGooglePauseCampaignResponse, zGooglePauseKeywordBody, zGooglePauseKeywordPath, zGooglePauseKeywordResponse, zGoogleRunGaqlBody, zGoogleRunGaqlPath, zGoogleRunGaqlResponse, zGoogleSetAdGroupBidsBody, zGoogleSetAdGroupBidsPath, zGoogleSetAdGroupBidsResponse, zGoogleSetConversionGoalBody, zGoogleSetConversionGoalPath, zGoogleSetConversionGoalResponse, zGoogleSetKeywordBidBody, zGoogleSetKeywordBidPath, zGoogleSetKeywordBidResponse, zGoogleUploadConversionsBody, zGoogleUploadConversionsPath, zGoogleUploadConversionsResponse, zGoogleUploadImageAssetBody, zGoogleUploadImageAssetPath, zGoogleUploadImageAssetResponse, zLogsGetPath, zLogsGetResponse, zLogsListQuery, zLogsListResponse, zMediaCreateBody, zMediaCreateResponse, zMediaDeletePath, zMediaDeleteResponse, zMediaGetPath, zMediaGetResponse, zMediaListQuery, zMediaListResponse, zMediaUpdateBody, zMediaUpdatePath, zMediaUpdateResponse, zMetaAccountPath, zMetaAccountResponse, zMetaAdPath, zMetaAdResponse, zMetaAdsPath, zMetaAdsResponse, zMetaAdsetPath, zMetaAdsetResponse, zMetaAdsetsPath, zMetaAdsetsResponse, zMetaCampaignPath, zMetaCampaignResponse, zMetaCampaignsPath, zMetaCampaignsResponse, zMetaInsightsPath, zMetaInsightsQuery, zMetaInsightsResponse, zPostsCreateBody, zPostsCreateResponse, zPostsDeletePath, zPostsDeleteResponse, zPostsGetPath, zPostsGetResponse, zPostsListQuery, zPostsListResponse, zPostsUpdateBody, zPostsUpdatePath, zPostsUpdateResponse, zPostsValidateBody, zPostsValidateResponse, zProfilesCreateBody, zProfilesCreateResponse, zProfilesDeletePath, zProfilesDeleteResponse, zProfilesGetPath, zProfilesGetResponse, zProfilesListQuery, zProfilesListResponse, zProfilesUpdateBody, zProfilesUpdatePath, zProfilesUpdateResponse, zTiktokCreatorInfoPath, zTiktokCreatorInfoResponse, zTokensMintBody, zTokensMintResponse, zWebhooksCreateEndpointBody, zWebhooksCreateEndpointResponse, zWebhooksCreatePortalResponse, zWebhooksDeleteEndpointPath, zWebhooksDeleteEndpointResponse, zWebhooksGetEndpointPath, zWebhooksGetEndpointResponse, zWebhooksListEndpointsQuery, zWebhooksListEndpointsResponse, zWebhooksListEventTypesResponse, zWebhooksPingBody, zWebhooksPingResponse, zWebhooksUpdateEndpointBody, zWebhooksUpdateEndpointPath, zWebhooksUpdateEndpointResponse };
3969
- //# sourceMappingURL=chunk-LATXGVUG.js.map
3970
- //# sourceMappingURL=chunk-LATXGVUG.js.map
4953
+ //# sourceMappingURL=chunk-T4V4M2WL.js.map
4954
+ //# sourceMappingURL=chunk-T4V4M2WL.js.map